Skip to content

Instantly share code, notes, and snippets.

@aninde
Created May 13, 2021 11:24
Show Gist options
  • Select an option

  • Save aninde/756fd1afb4f6cab52f7c33c5bac4ef07 to your computer and use it in GitHub Desktop.

Select an option

Save aninde/756fd1afb4f6cab52f7c33c5bac4ef07 to your computer and use it in GitHub Desktop.
This file has been truncated, but you can view the full file.
/*!
* Copyright (c) HANDSONCODE sp. z o. o.
*
* HANDSONTABLE is a software distributed by HANDSONCODE sp. z o. o.,
* a Polish corporation, based in Gdynia, Poland, at 96/98 Aleja Zwycięstwa,
* registered with the National Court Register under number 538651,
* EU tax ID number: PL5862294002, share capital: PLN 62,800.00.
*
* This software is protected by applicable copyright laws, including
* international treaties, and dual-licensed – depending on whether
* your use is intended for or may result in commercial advantage
* or monetary compensation (commercial purposes), or not.
*
* If your use involves only such purposes as research, private study,
* evaluation and the like, you agree to be bound by the terms included
* in the "handsontable-non-commercial-license.pdf" file, available
* in the main directory of this software repository.
*
* By installing, copying, or otherwise using this software for
* commercial purposes, you agree to be bound by the terms included
* in the "handsontable-general-terms.pdf" file, available in the main
* directory of this software repository.
*
* HANDSONCODE PROVIDES THIS SOFTWARE ON AN "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND. IN NO EVENT
* AND UNDER NO LEGAL THEORY, SHALL HANDSONCODE BE LIABLE
* TO YOU FOR DAMAGES, INCLUDING ANY DIRECT, INDIRECT, SPECIAL,
* INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING
* FROM USE OR INABILITY TO USE THIS SOFTWARE.
*
* Version: 8.3.2
* Release date: 16/03/2021 (built at 13/05/2021 10:50:19)
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Handsontable",[],t):"object"==typeof exports?exports.Handsontable=t():e.Handsontable=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=473)}([function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";function r(e,t,n,r){var o=-1,i=e,a=n;Array.isArray(e)||(i=Array.from(e));var s=i.length;for(r&&s&&(a=i[o+=1]),o+=1;o<s;)a=t(a,i[o],o,i),o+=1;return a}function o(e,t){var n=0,r=e;Array.isArray(e)||(r=Array.from(e));for(var o=r.length;n<o&&!1!==t(r[n],n,r);)n+=1;return e}function i(e){return r(e,(function(e,t){return e+t}),0)}t.__esModule=!0,t.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,r=0;for(;r<n;)e.push(t[r]),r+=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,r=e[0].length,o=0;o<n;o++)for(var i=0;i<r;i++)t[i]||(t[i]=[]),t[i][o]=e[o][i];return t},t.arrayReduce=r,t.arrayFilter=function(e,t){var n=0,r=e;Array.isArray(e)||(r=Array.from(e));var o=r.length,i=[],a=-1;for(;n<o;){var s=r[n];t(s,n,r)&&(i[a+=1]=s),n+=1}return i},t.arrayMap=function(e,t){var n=0,r=e;Array.isArray(e)||(r=Array.from(e));var o=r.length,i=[],a=-1;for(;n<o;){var s=r[n];i[a+=1]=t(s,n,r),n+=1}return i},t.arrayEach=o,t.arraySum=i,t.arrayMax=function(e){return r(e,(function(e,t){return e>t?e:t}),Array.isArray(e)?e[0]:void 0)},t.arrayMin=function(e){return r(e,(function(e,t){return e<t?e:t}),Array.isArray(e)?e[0]:void 0)},t.arrayAvg=function(e){if(!e.length)return 0;return i(e)/e.length},t.arrayFlatten=function e(t){return r(t,(function(t,n){return t.concat(Array.isArray(n)?e(n):n)}),[])},t.arrayUnique=function(e){var t=[];return o(e,(function(e){-1===t.indexOf(e)&&t.push(e)})),t},t.getDifferenceOfArrays=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=[].concat(t),i=r[0],a=r.slice(1),s=i;return o(a,(function(e){s=s.filter((function(t){return!e.includes(t)}))})),s},t.getIntersectionOfArrays=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=[].concat(t),i=r[0],a=r.slice(1),s=i;return o(a,(function(e){s=s.filter((function(t){return e.includes(t)}))})),s},t.getUnionOfArrays=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=[].concat(t),i=r[0],a=r.slice(1),s=new Set(i);return o(a,(function(e){o(e,(function(e){s.has(e)||s.add(e)}))})),Array.from(s)},t.stringToArray=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";return e.split(t)},n(43),n(11),n(19),n(17),n(33),n(30),n(26),n(34),n(12),n(9),n(62),n(13),n(29),n(61)},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.default=e.exports,e.exports.__esModule=!0,n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.duckSchema=function e(t){var n;Array.isArray(t)?n=[]:(n={},u(t,(function(t,r){"__children"!==r&&(t&&"object"===(0,i.default)(t)&&!Array.isArray(t)?n[r]=e(t):Array.isArray(t)?t.length&&"object"===(0,i.default)(t[0])&&!Array.isArray(t[0])?n[r]=[e(t[0])]:n[r]=[]:n[r]=null)})));return n},t.inherit=function(e,t){return t.prototype.constructor=t,e.prototype=new t,e.prototype.constructor=e,e},t.extend=function(e,t,n){var r=Array.isArray(n);return u(t,(function(t,o){(!1===r||n.includes(o))&&(e[o]=t)})),e},t.deepExtend=function e(t,n){u(n,(function(r,o){n[o]&&"object"===(0,i.default)(n[o])?(t[o]||(Array.isArray(n[o])?t[o]=[]:"[object Date]"===Object.prototype.toString.call(n[o])?t[o]=n[o]:t[o]={}),e(t[o],n[o])):t[o]=n[o]}))},t.deepClone=s,t.clone=function(e){var t={};return u(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,a.arrayEach)(n,(function(t){e.MIXINS.push(t.MIXIN_NAME),u(t,(function(t,n){if(void 0!==e.prototype[n])throw new Error("Mixin conflict. Property '".concat(n,"' already exist and cannot be overwritten."));if("function"==typeof t)e.prototype[n]=t;else{Object.defineProperty(e.prototype,n,{get:(r=n,o=t,i="_".concat(r),function(){var e;return void 0===this[i]&&(this[i]=(e=o,(Array.isArray(e)||l(e))&&(e=s(e)),e)),this[i]}),set:function(e){var t="_".concat(e);return function(e){this[t]=e}}(n),configurable:!0})}var r,o,i}))})),e},t.isObjectEqual=function(e,t){return JSON.stringify(e)===JSON.stringify(t)},t.isObject=l,t.defineGetter=function(e,t,n,r){r.value=n,r.writable=!1!==r.writable,r.enumerable=!1!==r.enumerable,r.configurable=!1!==r.configurable,Object.defineProperty(e,t,r)},t.objectEach=u,t.getProperty=function(e,t){var n=t.split("."),r=e;return u(n,(function(e){if(void 0===(r=r[e]))return r=void 0,!1})),r},t.setProperty=function(e,t,n){var r=t.split("."),o=e;r.forEach((function(e,t){t!==r.length-1?(c(o,e)||(o[e]={}),o=o[e]):o[e]=n}))},t.deepObjectSize=function(e){if(!l(e))return 0;return function e(t){var n=0;return l(t)?u(t,(function(t,r){"__children"!==r&&(n+=e(t))})):n+=1,n}(e)},t.createObjectPropListener=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value",r="_".concat(n),i=(t={_touched:!1},(0,o.default)(t,r,e),(0,o.default)(t,"isTouched",(function(){return this._touched})),t);return Object.defineProperty(i,n,{get:function(){return this[r]},set:function(e){this._touched=!0,this[r]=e},enumerable:!0,configurable:!0}),i},t.hasOwnProperty=c,n(26),n(34),n(9),n(29),n(61),n(23);var o=r(n(37)),i=r(n(56)),a=n(3);function s(e){return"object"===(0,i.default)(e)?JSON.parse(JSON.stringify(e)):e}function l(e){return"[object Object]"===Object.prototype.toString.call(e)}function u(e,t){for(var n in e)if((!e.hasOwnProperty||e.hasOwnProperty&&Object.prototype.hasOwnProperty.call(e,n))&&!1===t(e[n],n,e))break;return e}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},function(e,t,n){var r=n(21),o=n(106),i=n(107),a=n(47),s=n(46),l=n(109),u=n(503),c=n(32),d=o("Reflect","construct"),h=c((function(){function e(){}return!(d((function(){}),[],e)instanceof e)})),f=!c((function(){d((function(){}))})),v=h||f;r({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(e,t){i(e),a(t);var n=arguments.length<3?e:i(arguments[2]);if(f&&!h)return d(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(u.apply(e,r))}var o=n.prototype,c=l(s(o)?o:Object.prototype),v=Function.apply.call(e,c,t);return s(v)?v:c}})},function(e,t,n){var r=n(395);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(56).default,o=n(28);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(187),o=n(83),i=n(496);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getParent=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,r=null,o=e;for(;null!==o;){if(n===t){r=o;break}o.host&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE?o=o.host:(n+=1,o=o.parentNode)}return r},t.getFrameElement=d,t.getParentWindow=function(e){return d(e)&&e.parent},t.hasAccessToParentWindow=function(e){return!!Object.getPrototypeOf(e.parent)},t.closest=h,t.closestDown=function(e,t,n){var r=[],o=e;for(;o&&(o=h(o,t,n))&&(!n||n.contains(o));)r.push(o),o=o.host&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE?o.host:o.parentNode;var i=r.length;return i?r[i-1]:null},t.isChildOf=function(e,t){var n=e.parentNode,r=[];"string"==typeof t?r=e.defaultView?Array.prototype.slice.call(e.querySelectorAll(t),0):Array.prototype.slice.call(e.ownerDocument.querySelectorAll(t),0):r.push(t);for(;null!==n;){if(r.indexOf(n)>-1)return!0;n=n.parentNode}return!1},t.index=function(e){var t=0,n=e;if(n.previousSibling)for(;n=n.previousSibling;)t+=1;return t},t.overlayContainsElement=function(e,t,n){var r=n.parentElement.querySelector(".ht_clone_".concat(e));return r?r.contains(t):null},t.hasClass=function(e,t){return i(e,t)},t.addClass=function(e,t){a(e,t)},t.removeClass=function(e,t){s(e,t)},t.removeTextNodes=function e(t){if(3===t.nodeType)t.parentNode.removeChild(t);else if(["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(t.nodeName)>-1)for(var n=t.childNodes,r=n.length-1;r>=0;r--)e(n[r],t)},t.empty=g,t.fastInnerHTML=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];y.test(t)?e.innerHTML=n?(0,c.sanitize)(t):t:E(e,t)},t.fastInnerText=E,t.isVisible=function e(t){var n=t.ownerDocument.documentElement,r=t;for(;r!==n;){if(null===r)return!1;if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(r.host){if(r.host.impl)return e(r.host.impl);if(r.host)return e(r.host);throw new Error("Lost in Web Components world")}return!1}if(r.style&&"none"===r.style.display)return!1;r=r.parentNode}return!0},t.offset=function(e){var t,n,r,o,i=e.ownerDocument,a=i.defaultView,s=i.documentElement,u=e;if((0,l.hasCaptionProblem)()&&u.firstChild&&"CAPTION"===u.firstChild.nodeName)return{top:(o=u.getBoundingClientRect()).top+(a.pageYOffset||s.scrollTop)-(s.clientTop||0),left:o.left+(a.pageXOffset||s.scrollLeft)-(s.clientLeft||0)};t=u.offsetLeft,n=u.offsetTop,r=u;for(;(u=u.offsetParent)&&u!==i.body;)t+=u.offsetLeft,n+=u.offsetTop,r=u;r&&"fixed"===r.style.position&&(t+=a.pageXOffset||s.scrollLeft,n+=a.pageYOffset||s.scrollTop);return{left:t,top:n}},t.getWindowScrollTop=w,t.getWindowScrollLeft=C,t.getScrollTop=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return w(t);return e.scrollTop},t.getScrollLeft=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return C(t);return e.scrollLeft},t.getScrollableElement=function(e){var t=e.ownerDocument,n=t?t.defaultView:void 0;t||(t=e.document?e.document:e,n=t.defaultView);var r=["auto","scroll"],o=(0,l.isGetComputedStyleSupported)(),i=e.parentNode;for(;i&&i.style&&t.body!==i;){var a=i.style,s=a.overflow,u=a.overflowX,c=a.overflowY;if([s,u,c].includes("scroll"))return i;if(o){var d=n.getComputedStyle(i);if(s=d.overflow,u=d.overflowX,c=d.overflowY,r.includes(s)||r.includes(u)||r.includes(c))return i}if(i.clientHeight<=i.scrollHeight+1&&(r.includes(c)||r.includes(s)))return i;if(i.clientWidth<=i.scrollWidth+1&&(r.includes(u)||r.includes(s)))return i;i=i.parentNode}return n},t.getTrimmingContainer=function(e){var t=e.ownerDocument,n=t.defaultView,r=e.parentNode;for(;r&&r.style&&t.body!==r;){if("visible"!==r.style.overflow&&""!==r.style.overflow)return r;var o=R(r,n),i=["scroll","hidden","auto"],a=o.getPropertyValue("overflow"),s=o.getPropertyValue("overflow-y"),l=o.getPropertyValue("overflow-x");if(i.includes(a)||i.includes(s)||i.includes(l))return r;r=r.parentNode}return n},t.getStyle=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;if(!e)return;if(e===n)return"width"===t?"".concat(n.innerWidth,"px"):"height"===t?"".concat(n.innerHeight,"px"):void 0;var r=e.style[t];if(""!==r&&void 0!==r)return r;var o=R(e,n);if(""!==o[t]&&void 0!==o[t])return o[t]},t.matchesCSSRules=function(e,t){var n=t.selectorText,r=!1;t.type===CSSRule.STYLE_RULE&&n&&(e.msMatchesSelector?r=e.msMatchesSelector(n):e.matches&&(r=e.matches(n)));return r},t.getComputedStyle=R,t.outerWidth=function(e){return Math.ceil(e.getBoundingClientRect().width)},t.outerHeight=function(e){if((0,l.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){e.addEventListener(t,n,!1)},t.removeEvent=function(e,t,n){e.removeEventListener(t,n,!1)},t.getCaretPosition=function(e){var t=e.ownerDocument;if(e.selectionStart)return e.selectionStart;if(t.selection){e.focus();var n=t.selection.createRange();if(null===n)return 0;var r=e.createTextRange(),o=r.duplicate();return r.moveToBookmark(n.getBookmark()),o.setEndPoint("EndToStart",r),o.text.length}return 0},t.getSelectionEndPosition=function(e){var t=e.ownerDocument;if(e.selectionEnd)return e.selectionEnd;if(t.selection){var n=t.selection.createRange();return null===n?0:e.createTextRange().text.indexOf(n.text)+n.text.length}return 0},t.getSelectionText=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.document,n="";e.getSelection?n=e.getSelection().toString():t.selection&&"Control"!==t.selection.type&&(n=t.selection.createRange().text);return n},t.clearTextSelection=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.document;e.getSelection?e.getSelection().empty?e.getSelection().empty():e.getSelection().removeAllRanges&&e.getSelection().removeAllRanges():t.selection&&t.selection.empty()},t.setCaretPosition=function(e,t,n){void 0===n&&(n=t);if(e.setSelectionRange){e.focus();try{e.setSelectionRange(t,n)}catch(i){var r=e.parentNode,o=r.style.display;r.style.display="block",e.setSelectionRange(t,n),r.style.display=o}}},t.getScrollbarWidth=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;void 0===m&&(m=T(e));return m},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,u.isIE9)()?(e.style.top=n,e.style.left=t):(0,u.isSafari)()?(e.style["-webkit-transform"]="translate3d(".concat(t,",").concat(n,",0)"),e.style["-webkit-transform"]="translate3d(".concat(t,",").concat(n,",0)")):e.style.transform="translate3d(".concat(t,",").concat(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=b,t.isOutsideInput=S,t.selectElementIfAllowed=function(e){S(e.ownerDocument.activeElement)||e.select()},t.isDetached=function(e){return!e.parentNode},t.HTML_CHARACTERS=void 0;var o=r(n(25));n(192),n(26),n(34),n(33),n(17),n(30),n(29),n(61),n(128),n(52),n(73),n(129),n(51),n(9),n(19);var i,a,s,l=n(97),u=n(84),c=n(75);function d(e){return Object.getPrototypeOf(e.parent)&&e.frameElement}function h(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=Node,o=r.ELEMENT_NODE,i=r.DOCUMENT_FRAGMENT_NODE,a=e;null!=a&&a!==n;){var s=a,l=s.nodeType,u=s.nodeName;if(l===o&&(t.includes(u)||t.includes(a)))return a;var c=a,d=c.host;a=d&&l===i?d:a.parentNode}return null}function f(e){return e&&e.length?e.filter((function(e){return!!e})):[]}if((0,l.isClassListSupported)()){var v=function(e){var t=e.createElement("div");return t.classList.add("test","test2"),t.classList.contains("test2")};i=function(e,t){return void 0!==e.classList&&"string"==typeof t&&""!==t&&e.classList.contains(t)},a=function(e,t){var n,r=e.ownerDocument,i=t;if("string"==typeof i&&(i=i.split(" ")),(i=f(i)).length>0)if(v(r))(n=e.classList).add.apply(n,(0,o.default)(i));else for(var a=0;i&&i[a];)e.classList.add(i[a]),a+=1},s=function(e,t){var n,r=e.ownerDocument,i=t;if("string"==typeof i&&(i=i.split(" ")),(i=f(i)).length>0)if(v(r))(n=e.classList).remove.apply(n,(0,o.default)(i));else for(var a=0;i&&i[a];)e.classList.remove(i[a]),a+=1}}else{var p=function(e){return new RegExp("(\\s|^)".concat(e,"(\\s|$)"))};i=function(e,t){return void 0!==e.className&&p(t).test(e.className)},a=function(e,t){var n=e.className,r=t;if("string"==typeof r&&(r=r.split(" ")),r=f(r),""===n)n=r.join(" ");else for(var o=0;o<r.length;o++)r[o]&&!p(r[o]).test(n)&&(n+=" ".concat(r[o]));e.className=n},s=function(e,t){var n=0,r=e.className,o=t;for("string"==typeof o&&(o=o.split(" ")),o=f(o);o&&o[n];)r=r.replace(p(o[n])," ").trim(),n+=1;e.className!==r&&(e.className=r)}}function g(e){for(var t;t=e.lastChild;)e.removeChild(t)}var m,y=/(<(.*)>|&(.*);)/;function E(e,t){var n=e.firstChild;n&&3===n.nodeType&&null===n.nextSibling?l.isTextContentSupported?n.textContent=t:n.data=t:(g(e),e.appendChild(e.ownerDocument.createTextNode(t)))}function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.scrollY;return void 0===t&&(t=e.document.documentElement.scrollTop),t}function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.scrollX;return void 0===t&&(t=e.document.documentElement.scrollLeft),t}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return e.currentStyle||t.getComputedStyle(e)}function T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=e.createElement("div");t.style.height="200px",t.style.width="100%";var n=e.createElement("div");n.style.boxSizing="content-box",n.style.height="150px",n.style.left="0px",n.style.overflow="hidden",n.style.position="absolute",n.style.top="0px",n.style.width="200px",n.style.visibility="hidden",n.appendChild(t),(e.body||e.documentElement).appendChild(n);var r=t.offsetWidth;n.style.overflow="scroll";var o=t.offsetWidth;return r===o&&(o=n.clientWidth),(e.body||e.documentElement).removeChild(n),r-o}function b(e){return e&&(["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function S(e){return b(e)&&!1===e.hasAttribute("data-hot-input")}t.HTML_CHARACTERS=y},function(e,t,n){"use strict";var r=n(186).charAt,o=n(95),i=n(188),a=o.set,s=o.getterFor("String Iterator");i(String,"String",(function(e){a(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=s(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},function(e,t,n){"use strict";var r=n(74),o=n(127),i=n(126),a=n(95),s=n(188),l=a.set,u=a.getterFor("Array Iterator");e.exports=s(Array,"Array",(function(e,t){l(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){var r=n(40),o=n(250),i=n(12),a=n(82),s=n(42),l=s("iterator"),u=s("toStringTag"),c=i.values;for(var d in o){var h=r[d],f=h&&h.prototype;if(f){if(f[l]!==c)try{a(f,l,c)}catch(e){f[l]=c}if(f[u]||a(f,u,d),o[d])for(var v in i)if(f[v]!==i[v])try{a(f,v,i[v])}catch(e){f[v]=i[v]}}}},function(e,t,n){var r=n(56).default;function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}e.exports=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n},e.exports.default=e.exports,e.exports.__esModule=!0},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.CONTEXTMENU_ITEMS_NO_ITEMS=t.CONTEXT_MENU_ITEMS_NAMESPACE=void 0;t.CONTEXT_MENU_ITEMS_NAMESPACE="ContextMenu:items";var r="".concat("ContextMenu:items",".noItems");t.CONTEXTMENU_ITEMS_NO_ITEMS=r;var o="".concat("ContextMenu:items",".insertRowAbove");t.CONTEXTMENU_ITEMS_ROW_ABOVE=o;var i="".concat("ContextMenu:items",".insertRowBelow");t.CONTEXTMENU_ITEMS_ROW_BELOW=i;var a="".concat("ContextMenu:items",".insertColumnOnTheLeft");t.CONTEXTMENU_ITEMS_INSERT_LEFT=a;var s="".concat("ContextMenu:items",".insertColumnOnTheRight");t.CONTEXTMENU_ITEMS_INSERT_RIGHT=s;var l="".concat("ContextMenu:items",".removeRow");t.CONTEXTMENU_ITEMS_REMOVE_ROW=l;var u="".concat("ContextMenu:items",".removeColumn");t.CONTEXTMENU_ITEMS_REMOVE_COLUMN=u;var c="".concat("ContextMenu:items",".undo");t.CONTEXTMENU_ITEMS_UNDO=c;var d="".concat("ContextMenu:items",".redo");t.CONTEXTMENU_ITEMS_REDO=d;var h="".concat("ContextMenu:items",".readOnly");t.CONTEXTMENU_ITEMS_READ_ONLY=h;var f="".concat("ContextMenu:items",".clearColumn");t.CONTEXTMENU_ITEMS_CLEAR_COLUMN=f;var v="".concat("ContextMenu:items",".copy");t.CONTEXTMENU_ITEMS_COPY=v;var p="".concat("ContextMenu:items",".cut");t.CONTEXTMENU_ITEMS_CUT=p;var g="".concat("ContextMenu:items",".freezeColumn");t.CONTEXTMENU_ITEMS_FREEZE_COLUMN=g;var m="".concat("ContextMenu:items",".unfreezeColumn");t.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN=m;var y="".concat("ContextMenu:items",".mergeCells");t.CONTEXTMENU_ITEMS_MERGE_CELLS=y;var E="".concat("ContextMenu:items",".unmergeCells");t.CONTEXTMENU_ITEMS_UNMERGE_CELLS=E;var w="".concat("ContextMenu:items",".addComment");t.CONTEXTMENU_ITEMS_ADD_COMMENT=w;var C="".concat("ContextMenu:items",".editComment");t.CONTEXTMENU_ITEMS_EDIT_COMMENT=C;var R="".concat("ContextMenu:items",".removeComment");t.CONTEXTMENU_ITEMS_REMOVE_COMMENT=R;var T="".concat("ContextMenu:items",".readOnlyComment");t.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT=T;var b="".concat("ContextMenu:items",".align");t.CONTEXTMENU_ITEMS_ALIGNMENT=b;var S="".concat("ContextMenu:items",".align.left");t.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT=S;var O="".concat("ContextMenu:items",".align.center");t.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER=O;var _="".concat("ContextMenu:items",".align.right");t.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT=_;var I="".concat("ContextMenu:items",".align.justify");t.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY=I;var M="".concat("ContextMenu:items",".align.top");t.CONTEXTMENU_ITEMS_ALIGNMENT_TOP=M;var N="".concat("ContextMenu:items",".align.middle");t.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE=N;var k="".concat("ContextMenu:items",".align.bottom");t.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM=k;var A="".concat("ContextMenu:items",".borders");t.CONTEXTMENU_ITEMS_BORDERS=A;var P="".concat("ContextMenu:items",".borders.top");t.CONTEXTMENU_ITEMS_BORDERS_TOP=P;var x="".concat("ContextMenu:items",".borders.right");t.CONTEXTMENU_ITEMS_BORDERS_RIGHT=x;var D="".concat("ContextMenu:items",".borders.bottom");t.CONTEXTMENU_ITEMS_BORDERS_BOTTOM=D;var L="".concat("ContextMenu:items",".borders.left");t.CONTEXTMENU_ITEMS_BORDERS_LEFT=L;var H="".concat("ContextMenu:items",".borders.remove");t.CONTEXTMENU_ITEMS_REMOVE_BORDERS=H;var F="".concat("ContextMenu:items",".nestedHeaders.insertChildRow");t.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD=F;var U="".concat("ContextMenu:items",".nestedHeaders.detachFromParent");t.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD=U;var B="".concat("ContextMenu:items",".hideColumn");t.CONTEXTMENU_ITEMS_HIDE_COLUMN=B;var V="".concat("ContextMenu:items",".showColumn");t.CONTEXTMENU_ITEMS_SHOW_COLUMN=V;var Y="".concat("ContextMenu:items",".hideRow");t.CONTEXTMENU_ITEMS_HIDE_ROW=Y;var W="".concat("ContextMenu:items",".showRow");t.CONTEXTMENU_ITEMS_SHOW_ROW=W;t.FILTERS_NAMESPACE="Filters:";var G="".concat("Filters:","conditions");t.FILTERS_CONDITIONS_NAMESPACE=G;var j="".concat(G,".none");t.FILTERS_CONDITIONS_NONE=j;var z="".concat(G,".isEmpty");t.FILTERS_CONDITIONS_EMPTY=z;var K="".concat(G,".isNotEmpty");t.FILTERS_CONDITIONS_NOT_EMPTY=K;var X="".concat(G,".isEqualTo");t.FILTERS_CONDITIONS_EQUAL=X;var q="".concat(G,".isNotEqualTo");t.FILTERS_CONDITIONS_NOT_EQUAL=q;var $="".concat(G,".beginsWith");t.FILTERS_CONDITIONS_BEGINS_WITH=$;var Q="".concat(G,".endsWith");t.FILTERS_CONDITIONS_ENDS_WITH=Q;var Z="".concat(G,".contains");t.FILTERS_CONDITIONS_CONTAINS=Z;var J="".concat(G,".doesNotContain");t.FILTERS_CONDITIONS_NOT_CONTAIN=J;var ee="".concat(G,".byValue");t.FILTERS_CONDITIONS_BY_VALUE=ee;var te="".concat(G,".greaterThan");t.FILTERS_CONDITIONS_GREATER_THAN=te;var ne="".concat(G,".greaterThanOrEqualTo");t.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL=ne;var re="".concat(G,".lessThan");t.FILTERS_CONDITIONS_LESS_THAN=re;var oe="".concat(G,".lessThanOrEqualTo");t.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL=oe;var ie="".concat(G,".isBetween");t.FILTERS_CONDITIONS_BETWEEN=ie;var ae="".concat(G,".isNotBetween");t.FILTERS_CONDITIONS_NOT_BETWEEN=ae;var se="".concat(G,".after");t.FILTERS_CONDITIONS_AFTER=se;var le="".concat(G,".before");t.FILTERS_CONDITIONS_BEFORE=le;var ue="".concat(G,".today");t.FILTERS_CONDITIONS_TODAY=ue;var ce="".concat(G,".tomorrow");t.FILTERS_CONDITIONS_TOMORROW=ce;var de="".concat(G,".yesterday");t.FILTERS_CONDITIONS_YESTERDAY=de;var he="".concat("Filters:","labels.filterByCondition");t.FILTERS_DIVS_FILTER_BY_CONDITION=he;var fe="".concat("Filters:","labels.filterByValue");t.FILTERS_DIVS_FILTER_BY_VALUE=fe;var ve="".concat("Filters:","labels.conjunction");t.FILTERS_LABELS_CONJUNCTION=ve;var pe="".concat("Filters:","labels.disjunction");t.FILTERS_LABELS_DISJUNCTION=pe;var ge="".concat("Filters:","values.blankCells");t.FILTERS_VALUES_BLANK_CELLS=ge;var me="".concat("Filters:","buttons.selectAll");t.FILTERS_BUTTONS_SELECT_ALL=me;var ye="".concat("Filters:","buttons.clear");t.FILTERS_BUTTONS_CLEAR=ye;var Ee="".concat("Filters:","buttons.ok");t.FILTERS_BUTTONS_OK=Ee;var we="".concat("Filters:","buttons.cancel");t.FILTERS_BUTTONS_CANCEL=we;var Ce="".concat("Filters:","buttons.placeholder.search");t.FILTERS_BUTTONS_PLACEHOLDER_SEARCH=Ce;var Re="".concat("Filters:","buttons.placeholder.value");t.FILTERS_BUTTONS_PLACEHOLDER_VALUE=Re;var Te="".concat("Filters:","buttons.placeholder.secondValue");t.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE=Te},function(e,t,n){var r=n(544);function o(t,n,i){return"undefined"!=typeof Reflect&&Reflect.get?(e.exports=o=Reflect.get,e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=o=function(e,t,n){var o=r(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(n):i.value}},e.exports.default=e.exports,e.exports.__esModule=!0),o(t,n,i||t)}e.exports=o,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=n(21),o=n(175).indexOf,i=n(108),a=[].indexOf,s=!!a&&1/[1].indexOf(1,-0)<0,l=i("indexOf");r({target:"Array",proto:!0,forced:s||!l},{indexOf:function(e){return s?a.apply(this,arguments)||0:o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(251),o=n(491),i=n(191),a=n(253);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=n(21),o=n(32),i=n(121),a=n(46),s=n(68),l=n(58),u=n(122),c=n(178),d=n(123),h=n(42),f=n(153),v=h("isConcatSpreadable"),p=f>=51||!o((function(){var e=[];return e[v]=!1,e.concat()[0]!==e})),g=d("concat"),m=function(e){if(!a(e))return!1;var t=e[v];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,forced:!p||!g},{concat:function(e){var t,n,r,o,i,a=s(this),d=c(a,0),h=0;for(t=-1,r=arguments.length;t<r;t++)if(m(i=-1===t?a:arguments[t])){if(h+(o=l(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,h++)n in i&&u(d,h,i[n])}else{if(h>=9007199254740991)throw TypeError("Maximum allowed index exceeded");u(d,h++,i)}return d.length=h,d}})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.stringify=function(e){var t;switch((0,d.default)(e)){case"string":case"number":t="".concat(e);break;case"object":t=null===e?"":e.toString();break;case"undefined":t="";break;default:t=e.toString()}return t},t.isDefined=function(e){return void 0!==e},t.isUndefined=v,t.isEmpty=p,t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t._injectProductInfo=function(e,t){var n,r=!p(e),o="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),i="invalid",a="invalid",s=function(e){var t=[][g],n=t;if(e[g]!==w("Z"))return!1;for(var r="",o="B<H4P+".split(""),i=w(o.shift());i;i=w(o.shift()||"A"))--i<""[g]?n|=(y("".concat(y(m(r)+(m(E(e,Math.abs(i),2))+[]).padStart(2,"0"))))%97||2)>>1:r=E(e,i,i?1===o[g]?9:8:6);return n===t}(e=C(e||""));if(r||o||s)if(s){var l=(0,h.default)("16/03/2021","DD/MM/YYYY"),u=Math.floor(l.toDate().getTime()/864e5),c=m(E(C(f=e),m("12"),w("F")))/(m(E(C(f),w("B"),~~![][g]))||9);if(n=(0,h.default)(864e5*(c+1),"x").format("MMMM DD, YYYY"),u>c){var d=(0,h.default)().diff(l,"days");i=d<=1?"valid":"expired",a=d<=15?"valid":"expired"}else i="valid",a="valid"}else o?(i="non_commercial",a="valid"):(i="invalid",a="invalid");else i="missing",a="missing";var f;"undefined"!=typeof location&&/^([a-z0-9\-]+\.)?\x68\x61\x6E\x64\x73\x6F\x6E\x74\x61\x62\x6C\x65\x2E\x63\x6F\x6D$/i.test(location.host)&&(i="valid",a="valid");if(!R&&"valid"!==i){T[i]({keyValidityDate:n,hotVersion:"8.3.2"})&&console["non_commercial"===i?"info":"warn"](T[i]({keyValidityDate:n,hotVersion:"8.3.2"})),R=!0}if("valid"!==a&&t.parentNode){if(b[a]({keyValidityDate:n,hotVersion:"8.3.2"})){var v=document.createElement("div");v.id="hot-display-license-info",v.innerHTML=b[a]({keyValidityDate:n,hotVersion:"8.3.2"}),t.parentNode.insertBefore(v,t.nextSibling)}}};var o=r(n(63));n(9),n(52),n(497),n(29),n(51),n(61),n(259);var i,a,s,l,u,c,d=r(n(56)),h=r(n(76)),f=n(64);function v(e){return void 0===e}function p(e){return null===e||""===e||v(e)}var g="length",m=function(e){return parseInt(e,16)},y=function(e){return parseInt(e,10)},E=function(e,t,n){return e.substr(t,n)},w=function(e){return e.codePointAt(0)-65},C=function(e){return"".concat(e).replace(/\-/g,"")},R=!1,T={invalid:function(){return(0,f.toSingleLine)(i||(i=(0,o.default)(["\n The license key for Handsontable is invalid. \n If you need any help, contact us at [email protected]."],["\n The license key for Handsontable is invalid.\\x20\n If you need any help, contact us at [email protected]."])))},expired:function(e){var t=e.keyValidityDate,n=e.hotVersion;return(0,f.toSingleLine)(a||(a=(0,o.default)(["\n The license key for Handsontable expired on ",", and is not valid for the installed \n version ",". Renew your license key at handsontable.com or downgrade to a version released prior \n to ",". If you need any help, contact us at [email protected]."],["\n The license key for Handsontable expired on ",", and is not valid for the installed\\x20\n version ",". Renew your license key at handsontable.com or downgrade to a version released prior\\x20\n to ",". If you need any help, contact us at [email protected]."])),t,n,t)},missing:function(){return(0,f.toSingleLine)(s||(s=(0,o.default)(["\n The license key for Handsontable is missing. Use your purchased key to activate the product. \n Alternatively, you can activate Handsontable to use for non-commercial purposes by \n passing the key: 'non-commercial-and-evaluation'. If you need any help, contact \n us at [email protected]."],["\n The license key for Handsontable is missing. Use your purchased key to activate the product.\\x20\n Alternatively, you can activate Handsontable to use for non-commercial purposes by\\x20\n passing the key: 'non-commercial-and-evaluation'. If you need any help, contact\\x20\n us at [email protected]."])))},non_commercial:function(){return""}},b={invalid:function(){return(0,f.toSingleLine)(l||(l=(0,o.default)(['\n The license key for Handsontable is invalid. \n <a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> on how to \n install it properly or contact us at <a href="mailto:[email protected]">[email protected]</a>.'],['\n The license key for Handsontable is invalid.\\x20\n <a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> on how to\\x20\n install it properly or contact us at <a href="mailto:[email protected]">[email protected]</a>.'])))},expired:function(e){var t=e.keyValidityDate,n=e.hotVersion;return(0,f.toSingleLine)(u||(u=(0,o.default)(["\n The license key for Handsontable expired on ",", and is not valid for the installed \n version ",'. <a href="https://handsontable.com/pricing" target="_blank">Renew</a> your \n license key or downgrade to a version released prior to ','. If you need any \n help, contact us at <a href="mailto:[email protected]">[email protected]</a>.'],["\n The license key for Handsontable expired on ",", and is not valid for the installed\\x20\n version ",'. <a href="https://handsontable.com/pricing" target="_blank">Renew</a> your\\x20\n license key or downgrade to a version released prior to ','. If you need any\\x20\n help, contact us at <a href="mailto:[email protected]">[email protected]</a>.'])),t,n,t)},missing:function(){return(0,f.toSingleLine)(c||(c=(0,o.default)(['\n The license key for Handsontable is missing. Use your purchased key to activate the product. \n Alternatively, you can activate Handsontable to use for non-commercial purposes by \n passing the key: \'non-commercial-and-evaluation\'. \n <a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> about it in \n the documentation or contact us at <a href="mailto:[email protected]">[email protected]</a>.'],['\n The license key for Handsontable is missing. Use your purchased key to activate the product.\\x20\n Alternatively, you can activate Handsontable to use for non-commercial purposes by\\x20\n passing the key: \'non-commercial-and-evaluation\'.\\x20\n <a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> about it in\\x20\n the documentation or contact us at <a href="mailto:[email protected]">[email protected]</a>.'])))},non_commercial:function(){return""}}},function(e,t,n){var r=n(40),o=n(93).f,i=n(82),a=n(83),s=n(173),l=n(232),u=n(152);e.exports=function(e,t){var n,c,d,h,f,v=e.target,p=e.global,g=e.stat;if(n=p?r:g?r[v]||s(v,{}):(r[v]||{}).prototype)for(c in t){if(h=t[c],d=e.noTargetGet?(f=o(n,c))&&f.value:n[c],!u(p?c:v+(g?".":"#")+c,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(e.sham||d&&d.sham)&&i(h,"sham",!0),a(n,c,h,e)}}},function(e,t,n){"use strict";var r,o=n(40),i=n(198),a=n(130),s=n(158),l=n(388),u=n(46),c=n(95).enforce,d=n(231),h=!o.ActiveXObject&&"ActiveXObject"in o,f=Object.isExtensible,v=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},p=e.exports=s("WeakMap",v,l);if(d&&h){r=l.getConstructor(v,"WeakMap",!0),a.REQUIRED=!0;var g=p.prototype,m=g.delete,y=g.has,E=g.get,w=g.set;i(g,{delete:function(e){if(u(e)&&!f(e)){var t=c(this);return t.frozen||(t.frozen=new r),m.call(this,e)||t.frozen.delete(e)}return m.call(this,e)},has:function(e){if(u(e)&&!f(e)){var t=c(this);return t.frozen||(t.frozen=new r),y.call(this,e)||t.frozen.has(e)}return y.call(this,e)},get:function(e){if(u(e)&&!f(e)){var t=c(this);return t.frozen||(t.frozen=new r),y.call(this,e)?E.call(this,e):t.frozen.get(e)}return E.call(this,e)},set:function(e,t){if(u(e)&&!f(e)){var n=c(this);n.frozen||(n.frozen=new r),y.call(this,e)?w.call(this,e,t):n.frozen.set(e,t)}else w.call(this,e,t);return this}})}},function(e,t,n){var r=n(40),o=n(250),i=n(487),a=n(82);for(var s in o){var l=r[s],u=l&&l.prototype;if(u&&u.forEach!==i)try{a(u,"forEach",i)}catch(e){u.forEach=i}}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.isNumeric=function(e){var t=(0,o.default)(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 r=-1;"function"==typeof t?(n=t,t=e):r=e-1;for(;++r<=t&&!1!==n(r););},t.rangeEachReverse=function(e,t,n){var r=e+1;"function"==typeof t&&(n=t,t=0);for(;--r>=t&&!1!==n(r););},t.valueAccordingPercent=function(e,t){return t=parseInt(t.toString().replace("%",""),10),t=parseInt(e*t/100,10)},n(29),n(51),n(9),n(52);var o=r(n(56))},function(e,t,n){var r=n(492),o=n(254),i=n(191),a=n(493);e.exports=function(e){return r(e)||o(e)||i(e)||a()},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=n(21),o=n(175).includes,i=n(127);r({target:"Array",proto:!0},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},function(e,t,n){"use strict";t.__esModule=!0,t.BasePlugin=t.PLUGIN_KEY=void 0;var r=n(630);t.PLUGIN_KEY=r.PLUGIN_KEY,t.BasePlugin=r.BasePlugin},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=n(21),o=n(182);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(e,t,n){"use strict";var r=n(21),o=n(102).filter;r({target:"Array",proto:!0,forced:!n(123)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getListenersCounter=function(){return l},t.default=void 0,n(41);var o=r(n(1)),i=r(n(2)),a=n(97),s=n(45),l=0;function u(e){var t=e.stopImmediatePropagation;return e.stopImmediatePropagation=function(){t.apply(this),(0,s.stopImmediatePropagation)(this)},e}var c=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,o.default)(this,e),this.context=t||this,this.context.eventListeners||(this.context.eventListeners=[])}return(0,i.default)(e,[{key:"addEventListener",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];function i(e){n.call(this,u(e))}return"boolean"==typeof o||(0,a.isPassiveEventSupported)()||(o=!1),this.context.eventListeners.push({element:e,event:t,callback:n,callbackProxy:i,options:o,eventManager:this}),e.addEventListener(t,i,o),l+=1,function(){r.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){for(var r,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=this.context.eventListeners.length;i;)if(i-=1,(r=this.context.eventListeners[i]).event===t&&r.element===e){if(n&&n!==r.callback)continue;if(o&&r.eventManager!==this)continue;this.context.eventListeners.splice(i,1),r.element.removeEventListener(r.event,r.callbackProxy,r.options),l-=1}}},{key:"clearEvents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.context)for(var t=this.context.eventListeners.length;t;){t-=1;var n=this.context.eventListeners[t];n&&this.removeEventListener(n.element,n.event,n.callback,e)}}},{key:"clear",value:function(){this.clearEvents()}},{key:"destroy",value:function(){this.clearEvents(),this.context=null}},{key:"destroyWithOwnEventsOnly",value:function(){this.clearEvents(!0),this.context=null}},{key:"fireEvent",value:function(e,t){var n=e.document,r=e;n||(r=(n=e.ownerDocument?e.ownerDocument:e).defaultView);var o,i={bubbles:!0,cancelable:"mousemove"!==t,view:r,detail:0,screenX:0,screenY:0,clientX:1,clientY:1,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:void 0};n.createEvent?(o=n.createEvent("MouseEvents")).initMouseEvent(t,i.bubbles,i.cancelable,i.view,i.detail,i.screenX,i.screenY,i.clientX,i.clientY,i.ctrlKey,i.altKey,i.shiftKey,i.metaKey,i.button,i.relatedTarget||n.body.parentNode):o=n.createEventObject(),e.dispatchEvent?e.dispatchEvent(o):e.fireEvent("on".concat(t),o)}}]),e}();t.default=c},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";var r=n(21),o=n(46),i=n(121),a=n(151),s=n(58),l=n(74),u=n(122),c=n(42),d=n(123)("slice"),h=c("species"),f=[].slice,v=Math.max;r({target:"Array",proto:!0,forced:!d},{slice:function(e,t){var n,r,c,d=l(this),p=s(d.length),g=a(e,p),m=a(void 0===t?p:t,p);if(i(d)&&("function"!=typeof(n=d.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[h])&&(n=void 0):n=void 0,n===Array||void 0===n))return f.call(d,g,m);for(r=new(void 0===n?Array:n)(v(m-g,0)),c=0;g<m;g++,c++)g in d&&u(r,c,d[g]);return r.length=c,r}})},function(e,t,n){"use strict";var r=n(21),o=n(193),i=n(67);r({target:"String",proto:!0,forced:!n(195)("includes")},{includes:function(e){return!!~String(i(this)).indexOf(o(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(21),o=n(68),i=n(124);r({target:"Object",stat:!0,forced:n(32)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},function(e,t,n){"use strict";t.__esModule=!0,t.getCondition=function(e,t){if(!r[e])throw Error('Filter condition "'.concat(e,'" does not exist.'));var n=r[e],o=n.condition,i=n.descriptor,a=t;i.inputValuesDecorator&&(a=i.inputValuesDecorator(a));return function(e){return o.apply(e.meta.instance,[].concat([e],[a]))}},t.getConditionDescriptor=function(e){if(!r[e])throw Error('Filter condition "'.concat(e,'" does not exist.'));return r[e].descriptor},t.registerCondition=function(e,t,n){n.key=e,r[e]={condition:t,descriptor:n}},t.conditions=void 0,n(19);var r={};t.conditions=r},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=n(14),o=n(0);t.__esModule=!0,t.Renderer=void 0;var i=o(n(389));t.ViewportColumnsCalculator=i.default;var a=o(n(390));t.ViewportRowsCalculator=a.default;var s=o(n(131));t.CellCoords=s.default;var l=o(n(391));t.CellRange=l.default;var u=o(n(392));t.ColumnFilter=u.default;var c=o(n(393));t.RowFilter=c.default;var d=o(n(394));t.MasterTable=d.default;var h=n(401);t.LeftOverlay=h.LeftOverlay,t.TopOverlay=h.TopOverlay,t.TopLeftCornerOverlay=h.TopLeftCornerOverlay,t.BottomOverlay=h.BottomOverlay,t.BottomLeftCornerOverlay=h.BottomLeftCornerOverlay;var f=o(n(404));t.Border=f.default;var v=o(n(527));t.default=v.default,t.Core=v.default;var p=o(n(405));t.Event=p.default;var g=o(n(406));t.Overlays=g.default;var m=o(n(407));t.Scroll=m.default;var y=o(n(529));t.Selection=y.default;var E=o(n(408));t.Settings=E.default;var w=r(n(396));t.Renderer=w;var C=n(159);t.OrderView=C.OrderView,t.SharedOrderView=C.SharedOrderView;var R=o(n(409));t.Viewport=R.default;var T=n(31);t.getListenersCounter=T.getListenersCounter},function(e,t,n){"use strict";var r=n(158),o=n(257);e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},function(e,t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof global&&global)||function(){return this}()||Function("return this")()},function(e,t,n){"use strict";var r=n(21),o=n(151),i=n(96),a=n(58),s=n(68),l=n(178),u=n(122),c=n(123)("splice"),d=Math.max,h=Math.min;r({target:"Array",proto:!0,forced:!c},{splice:function(e,t){var n,r,c,f,v,p,g=s(this),m=a(g.length),y=o(e,m),E=arguments.length;if(0===E?n=r=0:1===E?(n=0,r=m-y):(n=E-2,r=h(d(i(t),0),m-y)),m+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(c=l(g,r),f=0;f<r;f++)(v=y+f)in g&&u(c,f,g[v]);if(c.length=r,n<r){for(f=y;f<m-r;f++)p=f+n,(v=f+r)in g?g[p]=g[v]:delete g[p];for(f=m;f>m-r+n;f--)delete g[f-1]}else if(n>r)for(f=m-r;f>y;f--)p=f+n-1,(v=f+r-1)in g?g[p]=g[v]:delete g[p];for(f=0;f<n;f++)g[f+y]=arguments[f+2];return g.length=m-r+n,c}})},function(e,t,n){var r=n(40),o=n(149),i=n(65),a=n(150),s=n(179),l=n(238),u=o("wks"),c=r.Symbol,d=l?c:c&&c.withoutSetter||a;e.exports=function(e){return i(u,e)&&(s||"string"==typeof u[e])||(s&&i(c,e)?u[e]=c[e]:u[e]=d("Symbol."+e)),u[e]}},function(e,t,n){var r=n(21),o=n(484);r({target:"Array",stat:!0,forced:!n(247)((function(e){Array.from(e)}))},{from:o})},function(e,t,n){var r=n(21),o=n(40),i=n(154),a=[].slice,s=function(e){return function(t,n){var r=arguments.length>2,o=r?a.call(arguments,2):void 0;return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,o)}:t,n)}};r({global:!0,bind:!0,forced:/MSIE .\./.test(i)},{setTimeout:s(o.setTimeout),setInterval:s(o.setInterval)})},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.isRightClick=function(e){return 2===e.button},t.isLeftClick=function(e){return 0===e.button}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(46);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(12),n(39),n(9),n(11),n(13),n(17),n(41);var o,i=r(n(1)),a=r(n(2)),s=r(n(63)),l=n(3),u=n(5),c=n(75),d=n(69),h=n(64),f=["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","afterSetSourceDataAtCell","afterUpdateSettings","afterValidate","beforeLanguageChange","afterLanguageChange","beforeAutofill","afterAutofill","beforeCellAlignment","beforeChange","beforeChangeRender","beforeDrawBorders","beforeGetCellMeta","beforeRemoveCellMeta","beforeInit","beforeInitWalkontable","beforeLoadData","beforeKeyDown","beforeOnCellMouseDown","beforeOnCellMouseUp","beforeOnCellContextMenu","beforeOnCellMouseOver","beforeOnCellMouseOut","beforeRemoveCol","beforeRemoveRow","beforeRender","beforeSetCellMeta","beforeSetRangeStartOnly","beforeSetRangeStart","beforeSetRangeEnd","beforeTouchScroll","beforeValidate","beforeValueRender","construct","init","modifyColHeader","modifyColWidth","modifyRowHeader","modifyRowHeight","modifyData","modifySourceData","modifyRowData","modifyGetCellCoords","beforeHighlightingRowHeader","beforeHighlightingColumnHeader","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","beforeUndoStackChange","afterUndo","afterUndoStackChange","beforeRedo","beforeRedoStackChange","afterRedo","afterRedoStackChange","modifyRowHeaderWidth","beforeAutofillInsidePopulate","modifyTransformStart","modifyTransformEnd","afterModifyTransformStart","afterModifyTransformEnd","afterViewportRowCalculatorOverride","afterViewportColumnCalculatorOverride","afterPluginsInitialized","beforeHideRows","afterHideRows","beforeUnhideRows","afterUnhideRows","beforeHideColumns","afterHideColumns","beforeUnhideColumns","afterUnhideColumns","beforeTrimRow","afterTrimRow","beforeUntrimRow","afterUntrimRow","beforeDropdownMenuShow","afterDropdownMenuShow","afterDropdownMenuHide","beforeAddChild","afterAddChild","beforeDetachChild","afterDetachChild","afterBeginEditing","beforeMergeCells","afterMergeCells","beforeUnmergeCells","afterUnmergeCells","afterListen","afterUnlisten","afterRefreshDimensions","beforeRefreshDimensions","beforeColumnCollapse","afterColumnCollapse","beforeColumnExpand","afterColumnExpand","modifyAutoColumnSizeSeed"],v=(0,h.toSingleLine)(o||(o=(0,s.default)(['The plugin hook "[hookName]" was removed in Handsontable [removedInVersion]. \n Please consult release notes https://github.com/handsontable/handsontable/releases/tag/[removedInVersion] to \n learn about the migration path.'],['The plugin hook "[hookName]" was removed in Handsontable [removedInVersion].\\x20\n Please consult release notes https://github.com/handsontable/handsontable/releases/tag/[removedInVersion] to\\x20\n learn about the migration path.']))),p=new Map([["modifyRow","8.0.0"],["modifyCol","8.0.0"],["unmodifyRow","8.0.0"],["unmodifyCol","8.0.0"],["skipLengthCache","8.0.0"],["hiddenColumn","8.0.0"],["hiddenRow","8.0.0"]]),g=new Map([]),m=function(){function e(){(0,i.default)(this,e),this.globalBucket=this.createEmptyBucket()}return(0,a.default)(e,[{key:"createEmptyBucket",value:function(){var e=Object.create(null);return(0,l.arrayEach)(f,(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,l.arrayEach)(t,(function(t){return n.add(e,t,r)}));else{p.has(e)&&(0,d.warn)((0,c.substitute)(v,{hookName:e,removedInVersion:p.get(e)})),g.has(e)&&(0,d.warn)(g.get(e));var o=this.getBucket(r);if(void 0===o[e]&&(this.register(e),o[e]=[]),t.skip=!1,-1===o[e].indexOf(t)){var i=!1;t.initialHook&&(0,l.arrayEach)(o[e],(function(n,r){if(n.initialHook)return o[e][r]=t,i=!0,!1})),i||o[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,l.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,r=this.getBucket(n);return void 0!==r[e]&&r[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,r,o,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 d=l[c].call(e,n,r,o,i,a,s);void 0!==d&&(n=d),l[c]&&l[c].runOnce&&this.remove(t,l[c]),c+=1}else c+=1;var h=this.getBucket(e)[t],f=h?h.length:0,v=0;if(f)for(;v<f;)if(h[v]&&!h[v].skip){var p=h[v].call(e,n,r,o,i,a,s);void 0!==p&&(n=p),h[v]&&h[v].runOnce&&this.remove(t,h[v],e),v+=1}else v+=1;return n}},{key:"destroy",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,u.objectEach)(this.getBucket(e),(function(e,t,n){return n[t].length=0}))}},{key:"register",value:function(e){this.isRegistered(e)||f.push(e)}},{key:"deregister",value:function(e){this.isRegistered(e)&&f.splice(f.indexOf(e),1)}},{key:"isDeprecated",value:function(e){return g.has(e)||p.has(e)}},{key:"isRegistered",value:function(e){return f.indexOf(e)>=0}},{key:"getRegistered",value:function(){return f}}],[{key:"getSingleton",value:function(){return y}}]),e}(),y=new m;var E=m;t.default=E},function(e,t,n){"use strict";var r=n(21),o=n(40),i=n(106),a=n(105),s=n(57),l=n(179),u=n(238),c=n(32),d=n(65),h=n(121),f=n(46),v=n(47),p=n(68),g=n(74),m=n(118),y=n(116),E=n(109),w=n(124),C=n(120),R=n(236),T=n(177),b=n(93),S=n(66),O=n(147),_=n(82),I=n(83),M=n(149),N=n(148),k=n(119),A=n(150),P=n(42),x=n(419),D=n(420),L=n(157),H=n(95),F=n(102).forEach,U=N("hidden"),B=P("toPrimitive"),V=H.set,Y=H.getterFor("Symbol"),W=Object.prototype,G=o.Symbol,j=i("JSON","stringify"),z=b.f,K=S.f,X=R.f,q=O.f,$=M("symbols"),Q=M("op-symbols"),Z=M("string-to-symbol-registry"),J=M("symbol-to-string-registry"),ee=M("wks"),te=o.QObject,ne=!te||!te.prototype||!te.prototype.findChild,re=s&&c((function(){return 7!=E(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=z(W,t);r&&delete W[t],K(e,t,n),r&&e!==W&&K(W,t,r)}:K,oe=function(e,t){var n=$[e]=E(G.prototype);return V(n,{type:"Symbol",tag:e,description:t}),s||(n.description=t),n},ie=u?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof G},ae=function(e,t,n){e===W&&ae(Q,t,n),v(e);var r=m(t,!0);return v(n),d($,r)?(n.enumerable?(d(e,U)&&e[U][r]&&(e[U][r]=!1),n=E(n,{enumerable:y(0,!1)})):(d(e,U)||K(e,U,y(1,{})),e[U][r]=!0),re(e,r,n)):K(e,r,n)},se=function(e,t){v(e);var n=g(t),r=w(n).concat(de(n));return F(r,(function(t){s&&!le.call(n,t)||ae(e,t,n[t])})),e},le=function(e){var t=m(e,!0),n=q.call(this,t);return!(this===W&&d($,t)&&!d(Q,t))&&(!(n||!d(this,t)||!d($,t)||d(this,U)&&this[U][t])||n)},ue=function(e,t){var n=g(e),r=m(t,!0);if(n!==W||!d($,r)||d(Q,r)){var o=z(n,r);return!o||!d($,r)||d(n,U)&&n[U][r]||(o.enumerable=!0),o}},ce=function(e){var t=X(g(e)),n=[];return F(t,(function(e){d($,e)||d(k,e)||n.push(e)})),n},de=function(e){var t=e===W,n=X(t?Q:g(e)),r=[];return F(n,(function(e){!d($,e)||t&&!d(W,e)||r.push($[e])})),r};(l||(I((G=function(){if(this instanceof G)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=A(e),n=function(e){this===W&&n.call(Q,e),d(this,U)&&d(this[U],t)&&(this[U][t]=!1),re(this,t,y(1,e))};return s&&ne&&re(W,t,{configurable:!0,set:n}),oe(t,e)}).prototype,"toString",(function(){return Y(this).tag})),I(G,"withoutSetter",(function(e){return oe(A(e),e)})),O.f=le,S.f=ae,b.f=ue,C.f=R.f=ce,T.f=de,x.f=function(e){return oe(P(e),e)},s&&(K(G.prototype,"description",{configurable:!0,get:function(){return Y(this).description}}),a||I(W,"propertyIsEnumerable",le,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:G}),F(w(ee),(function(e){D(e)})),r({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=String(e);if(d(Z,t))return Z[t];var n=G(t);return Z[t]=n,J[n]=t,n},keyFor:function(e){if(!ie(e))throw TypeError(e+" is not a symbol");if(d(J,e))return J[e]},useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!s},{create:function(e,t){return void 0===t?E(e):se(E(e),t)},defineProperty:ae,defineProperties:se,getOwnPropertyDescriptor:ue}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:ce,getOwnPropertySymbols:de}),r({target:"Object",stat:!0,forced:c((function(){T.f(1)}))},{getOwnPropertySymbols:function(e){return T.f(p(e))}}),j)&&r({target:"JSON",stat:!0,forced:!l||c((function(){var e=G();return"[null]"!=j([e])||"{}"!=j({a:e})||"{}"!=j(Object(e))}))},{stringify:function(e,t,n){for(var r,o=[e],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=t,(f(t)||void 0!==e)&&!ie(e))return h(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!ie(t))return t}),o[1]=t,j.apply(null,o)}});G.prototype[B]||_(G.prototype,B,G.prototype.valueOf),L(G,"Symbol"),k[U]=!0},function(e,t,n){"use strict";var r;function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.r(t),n.d(t,"ERROR",(function(){return i})),n.d(t,"ERROR_DIV_ZERO",(function(){return a})),n.d(t,"ERROR_NAME",(function(){return s})),n.d(t,"ERROR_NOT_AVAILABLE",(function(){return l})),n.d(t,"ERROR_NULL",(function(){return u})),n.d(t,"ERROR_NUM",(function(){return c})),n.d(t,"ERROR_REF",(function(){return d})),n.d(t,"ERROR_VALUE",(function(){return h})),n.d(t,"default",(function(){return v})),n.d(t,"isValidStrict",(function(){return p}));var i="ERROR",a="DIV/0",s="NAME",l="N/A",u="NULL",c="NUM",d="REF",h="VALUE",f=(o(r={},i,"#ERROR!"),o(r,a,"#DIV/0!"),o(r,s,"#NAME?"),o(r,l,"#N/A"),o(r,u,"#NULL!"),o(r,c,"#NUM!"),o(r,d,"#REF!"),o(r,h,"#VALUE!"),r);function v(e){var t;return e=(e+"").replace(/#|!|\?/g,""),f[e]&&(t=f[e]),t||null}function p(e){var t=!1;for(var n in f)if(Object.prototype.hasOwnProperty.call(f,n)&&f[n]===e){t=!0;break}return t}},function(e,t,n){"use strict";var r=n(155),o=n(47),i=n(58),a=n(96),s=n(67),l=n(185),u=n(483),c=n(156),d=Math.max,h=Math.min;r("replace",2,(function(e,t,n,r){var f=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,v=r.REPLACE_KEEPS_$0,p=f?"$":"$0";return[function(n,r){var o=s(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):t.call(String(o),n,r)},function(e,r){if(!f&&v||"string"==typeof r&&-1===r.indexOf(p)){var s=n(t,e,this,r);if(s.done)return s.value}var g=o(e),m=String(this),y="function"==typeof r;y||(r=String(r));var E=g.global;if(E){var w=g.unicode;g.lastIndex=0}for(var C=[];;){var R=c(g,m);if(null===R)break;if(C.push(R),!E)break;""===String(R[0])&&(g.lastIndex=l(m,i(g.lastIndex),w))}for(var T,b="",S=0,O=0;O<C.length;O++){R=C[O];for(var _=String(R[0]),I=d(h(a(R.index),m.length),0),M=[],N=1;N<R.length;N++)M.push(void 0===(T=R[N])?T:String(T));var k=R.groups;if(y){var A=[_].concat(M,I,m);void 0!==k&&A.push(k);var P=String(r.apply(void 0,A))}else P=u(_,m,I,M,k,r);I>=S&&(b+=m.slice(S,I)+P,S=I+_.length)}return b+m.slice(S)}]}))},function(e,t,n){"use strict";var r=n(83),o=n(47),i=n(32),a=n(183),s=RegExp.prototype,l=s.toString,u=i((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),c="toString"!=l.name;(u||c)&&r(RegExp.prototype,"toString",(function(){var e=o(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in s)?a.call(e):n)}),{unsafe:!0})},function(e,t,n){"use strict";t.__esModule=!0,t.isFunction=function(e){return"function"==typeof e},t.throttle=o,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,r=o(e,t),i=n;function a(){i=n}function s(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return i?(i-=1,e.apply(this,n)):r.apply(this,n)}return s.clearHits=a,s},t.debounce=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=null;function o(){for(var o=this,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r&&clearTimeout(r),r=setTimeout((function(){t=e.apply(o,a)}),n),t}return o},t.pipe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=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,r.arrayReduce)(i,(function(e,t){return t(e)}),o.apply(this,t))}},t.partial=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 function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e.apply(this,n.concat(r))}},t.curry=function(e){var t=e.length;return function n(r){return function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var s=r.concat(i);return s.length>=t?e.apply(this,s):n(s)}}([])},t.curryRight=function(e){var t=e.length;return function n(r){return function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var s=r.concat(i.reverse());return s.length>=t?e.apply(this,s):n(s)}}([])},n(44),n(33),n(19),n(190);var r=n(3);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=0,r={lastCallThrottled:!0},o=null;function i(){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;r.lastCallThrottled=!0,n||(n=u,c=!0);var d=t-(u-n);return c?(r.lastCallThrottled=!1,e.apply(this,s)):(o&&clearTimeout(o),o=setTimeout((function(){r.lastCallThrottled=!1,e.apply(i,s),n=0,o=void 0}),d)),r}return i}},function(e,t,n){"use strict";n(23),n(35),t.__esModule=!0;var r={IndexMapper:!0,getRegisteredMapsCounter:!0,getIncreasedIndexes:!0,getDecreasedIndexes:!0,alterUtilsFactory:!0};t.alterUtilsFactory=t.getDecreasedIndexes=t.getIncreasedIndexes=t.getRegisteredMapsCounter=t.IndexMapper=void 0;var o=n(541);t.IndexMapper=o.IndexMapper;var i=n(207);t.getRegisteredMapsCounter=i.getRegisteredMapsCounter;var a=n(416);t.getIncreasedIndexes=a.getIncreasedIndexes,t.getDecreasedIndexes=a.getDecreasedIndexes,t.alterUtilsFactory=a.alterUtilsFactory;var s=n(414);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===s[e]||(t[e]=s[e]))}))},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(3),o=n(5),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,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];this._localHooks[e]&&(0,r.arrayEach)(this._localHooks[e],(function(e){return e.apply(t,o)}))},clearLocalHooks:function(){return this._localHooks={},this}};(0,o.defineGetter)(i,"MIXIN_NAME","localHooks",{writable:!1,enumerable:!1});var a=i;t.default=a},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(32);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){var r=n(96),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){n(21)({target:"Number",stat:!0},{isInteger:n(480)})},function(e,t,n){"use strict";var r=n(57),o=n(40),i=n(152),a=n(83),s=n(65),l=n(94),u=n(181),c=n(118),d=n(32),h=n(109),f=n(120).f,v=n(93).f,p=n(66).f,g=n(241).trim,m=o.Number,y=m.prototype,E="Number"==l(h(y)),w=function(e){var t,n,r,o,i,a,s,l,u=c(e,!1);if("string"==typeof u&&u.length>2)if(43===(t=(u=g(u)).charCodeAt(0))||45===t){if(88===(n=u.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(u.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+u}for(a=(i=u.slice(2)).length,s=0;s<a;s++)if((l=i.charCodeAt(s))<48||l>o)return NaN;return parseInt(i,r)}return+u};if(i("Number",!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var C,R=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof R&&(E?d((function(){y.valueOf.call(n)})):"Number"!=l(n))?u(new m(w(t)),n,R):w(t)},T=r?f(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),b=0;T.length>b;b++)s(m,C=T[b])&&!s(R,C)&&p(R,C,v(m,C));R.prototype=y,y.constructor=R,a(o,"Number",R)}},function(e,t,n){"use strict";var r=n(155),o=n(194),i=n(47),a=n(67),s=n(494),l=n(185),u=n(58),c=n(156),d=n(182),h=n(184).UNSUPPORTED_Y,f=[].push,v=Math.min;r("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(a(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===e)return[r];if(!o(e))return t.call(r,e,i);for(var s,l,u,c=[],h=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),v=0,p=new RegExp(e.source,h+"g");(s=d.call(p,r))&&!((l=p.lastIndex)>v&&(c.push(r.slice(v,s.index)),s.length>1&&s.index<r.length&&f.apply(c,s.slice(1)),u=s[0].length,v=l,c.length>=i));)p.lastIndex===s.index&&p.lastIndex++;return v===r.length?!u&&p.test("")||c.push(""):c.push(r.slice(v)),c.length>i?c.slice(0,i):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=a(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,o,n):r.call(String(o),t,n)},function(e,o){var a=n(r,e,this,o,r!==t);if(a.done)return a.value;var d=i(e),f=String(this),p=s(d,RegExp),g=d.unicode,m=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(h?"g":"y"),y=new p(h?"^(?:"+d.source+")":d,m),E=void 0===o?4294967295:o>>>0;if(0===E)return[];if(0===f.length)return null===c(y,f)?[f]:[];for(var w=0,C=0,R=[];C<f.length;){y.lastIndex=h?0:C;var T,b=c(y,h?f.slice(C):f);if(null===b||(T=v(u(y.lastIndex+(h?C:0)),f.length))===w)C=l(f,C,g);else{if(R.push(f.slice(w,C)),R.length===E)return R;for(var S=1;S<=b.length-1;S++)if(R.push(b[S]),R.length===E)return R;C=w=T}}return R.push(f.slice(w)),R}]}),h)},function(e,t,n){"use strict";var r=n(158),o=n(257);e.exports=r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},e.exports.default=e.exports,e.exports.__esModule=!0},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),o=1;o<t;o++)n[o-1]=arguments[o];var i=(0,r.arrayReduce)(e,(function(e,t,r){return e+t.replace(/\r?\n\s*/g,"")+(n[r]?n[r]:"")}),"");return i.trim()},n(29),n(51),n(129);var r=n(3)},function(e,t,n){var r=n(68),o={}.hasOwnProperty;e.exports=function(e,t){return o.call(r(e),t)}},function(e,t,n){var r=n(57),o=n(229),i=n(47),a=n(118),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(i(e),t=a(t,!0),i(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(67);e.exports=function(e){return Object(r(e))}},function(e,t,n){"use strict";t.__esModule=!0,t.log=function(){var e;(0,r.isDefined)(console)&&(e=console).log.apply(e,arguments)},t.warn=function(){var e;(0,r.isDefined)(console)&&(e=console).warn.apply(e,arguments)},t.info=function(){var e;(0,r.isDefined)(console)&&(e=console).info.apply(e,arguments)},t.error=function(){var e;(0,r.isDefined)(console)&&(e=console).error.apply(e,arguments)};var r=n(20)},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!==[o.ARROW_DOWN,o.ARROW_UP,o.ARROW_LEFT,o.ARROW_RIGHT,o.HOME,o.END,o.DELETE,o.BACKSPACE,o.F1,o.F2,o.F3,o.F4,o.F5,o.F6,o.F7,o.F8,o.F9,o.F10,o.F11,o.F12,o.TAB,o.PAGE_DOWN,o.PAGE_UP,o.ENTER,o.ESCAPE,o.SHIFT,o.CAPS_LOCK,o.ALT].indexOf(e)},t.isCtrlKey=function(e){var t=[];navigator.platform.includes("Mac")?t.push(o.COMMAND_LEFT,o.COMMAND_RIGHT,o.COMMAND_FIREFOX):t.push(o.CONTROL);return t.includes(e)},t.isCtrlMetaKey=function(e){return[o.CONTROL,o.COMMAND_LEFT,o.COMMAND_RIGHT,o.COMMAND_FIREFOX].includes(e)},t.isKey=function(e,t){var n=t.split("|"),i=!1;return(0,r.arrayEach)(n,(function(t){if(e===o[t])return i=!0,!1})),i},t.KEY_CODES=void 0,n(17),n(26),n(34),n(29),n(61);var r=n(3),o={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=o},function(e,t,n){var r=n(21),o=n(32),i=n(74),a=n(93).f,s=n(57),l=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!s||l,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},function(e,t,n){var r=n(21),o=n(57),i=n(233),a=n(74),s=n(93),l=n(122);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),o=s.f,u=i(r),c={},d=0;u.length>d;)void 0!==(n=o(r,t=u[d++]))&&l(c,t,n);return c}})},function(e,t,n){"use strict";var r=n(21),o=n(117),i=n(74),a=n(108),s=[].join,l=o!=Object,u=a("join",",");r({target:"Array",proto:!0,forced:l||!u},{join:function(e){return s.call(i(this),void 0===e?",":e)}})},function(e,t,n){var r=n(117),o=n(67);e.exports=function(e){return r(o(e))}},function(e,t,n){"use strict";var r=n(0);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 o=n.length;for(;o;){o-=1;var a=(0,i.stringify)(n[o]).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 a("".concat(e),{ALLOWED_TAGS:[]})},t.sanitize=a,n(17),n(9),n(52),n(29),n(51);var o=r(n(258)),i=n(20);function a(e,t){return o.default.sanitize(e,t)}},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function o(){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,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function h(e,t){for(var n in t)d(t,n)&&(e[n]=t[n]);return d(t,"toString")&&(e.toString=t.toString),d(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,r){return bt(e,t,n,r,!0).utc()}function v(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 p(e){if(null==e._isValid){var t=v(e),n=r.call(t.parsedDateParts,(function(e){return null!=e})),o=!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&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return o;e._isValid=o}return e._isValid}function g(e){var t=f(NaN);return null!=e?h(v(t),e):v(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var m=o.momentProperties=[];function y(e,t){var n,r,o;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=v(t)),s(t._locale)||(e._locale=t._locale),m.length>0)for(n=0;n<m.length;n++)s(o=t[r=m[n]])||(e[r]=o);return e}var E=!1;function w(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===E&&(E=!0,o.updateOffset(this),E=!1)}function C(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function R(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function T(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=R(t)),n}function b(e,t,n){var r,o=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(r=0;r<o;r++)(n&&e[r]!==t[r]||!n&&T(e[r])!==T(t[r]))&&a++;return a+i}function S(e){!1===o.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function O(e,t){var n=!0;return h((function(){if(null!=o.deprecationHandler&&o.deprecationHandler(null,e),n){for(var r,i=[],a=0;a<arguments.length;a++){if(r="","object"==typeof arguments[a]){for(var s in r+="\n["+a+"] ",arguments[0])r+=s+": "+arguments[0][s]+", ";r=r.slice(0,-2)}else r=arguments[a];i.push(r)}S(e+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var _,I={};function M(e,t){null!=o.deprecationHandler&&o.deprecationHandler(e,t),I[e]||(S(t),I[e]=!0)}function N(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function k(e,t){var n,r=h({},e);for(n in t)d(t,n)&&(a(e[n])&&a(t[n])?(r[n]={},h(r[n],e[n]),h(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)d(e,n)&&!d(t,n)&&a(e[n])&&(r[n]=h({},r[n]));return r}function A(e){null!=e&&this.set(e)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,_=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)d(e,t)&&n.push(t);return n};var P={};function x(e,t){var n=e.toLowerCase();P[n]=P[n+"s"]=P[t]=e}function D(e){return"string"==typeof e?P[e]||P[e.toLowerCase()]:void 0}function L(e){var t,n,r={};for(n in e)d(e,n)&&(t=D(n))&&(r[t]=e[n]);return r}var H={};function F(e,t){H[e]=t}function U(e,t,n){var r=""+Math.abs(e),o=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var B=/(\[[^\[]*\])|(\\)?([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,V=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Y={},W={};function G(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(W[e]=o),t&&(W[t[0]]=function(){return U(o.apply(this,arguments),t[1],t[2])}),n&&(W[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function j(e,t){return e.isValid()?(t=z(t,e.localeData()),Y[t]=Y[t]||function(e){var t,n,r,o=e.match(B);for(t=0,n=o.length;t<n;t++)W[o[t]]?o[t]=W[o[t]]:o[t]=(r=o[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");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),Y[t](e)):e.localeData().invalidDate()}function z(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(V.lastIndex=0;n>=0&&V.test(e);)e=e.replace(V,r),V.lastIndex=0,n-=1;return e}var K=/\d/,X=/\d\d/,q=/\d{3}/,$=/\d{4}/,Q=/[+-]?\d{6}/,Z=/\d\d?/,J=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,re=/[+-]?\d{1,6}/,oe=/\d+/,ie=/[+-]?\d+/,ae=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,le=/[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,ue={};function ce(e,t,n){ue[e]=N(t)?t:function(e,r){return e&&n?n:t}}function de(e,t){return d(ue,e)?ue[e](t._strict,t._locale):new RegExp(he(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,o){return t||n||r||o}))))}function he(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var fe={};function ve(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),l(t)&&(r=function(e,n){n[t]=T(e)}),n=0;n<e.length;n++)fe[e[n]]=r}function pe(e,t){ve(e,(function(e,n,r,o){r._w=r._w||{},t(e,r._w,r,o)}))}function ge(e,t,n){null!=t&&d(fe,e)&&fe[e](t,n._a,n,e)}function me(e){return ye(e)?366:365}function ye(e){return e%4==0&&e%100!=0||e%400==0}G("Y",0,0,(function(){var e=this.year();return e<=9999?""+e:"+"+e})),G(0,["YY",2],0,(function(){return this.year()%100})),G(0,["YYYY",4],0,"year"),G(0,["YYYYY",5],0,"year"),G(0,["YYYYYY",6,!0],0,"year"),x("year","y"),F("year",1),ce("Y",ie),ce("YY",Z,X),ce("YYYY",ne,$),ce("YYYYY",re,Q),ce("YYYYYY",re,Q),ve(["YYYYY","YYYYYY"],0),ve("YYYY",(function(e,t){t[0]=2===e.length?o.parseTwoDigitYear(e):T(e)})),ve("YY",(function(e,t){t[0]=o.parseTwoDigitYear(e)})),ve("Y",(function(e,t){t[0]=parseInt(e,10)})),o.parseTwoDigitYear=function(e){return T(e)+(T(e)>68?1900:2e3)};var Ee,we=Ce("FullYear",!0);function Ce(e,t){return function(n){return null!=n?(Te(this,e,n),o.updateOffset(this,t),this):Re(this,e)}}function Re(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Te(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ye(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),be(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function be(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?ye(e)?29:28:31-r%7%2}Ee=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},G("M",["MM",2],"Mo",(function(){return this.month()+1})),G("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),G("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),x("month","M"),F("month",8),ce("M",Z),ce("MM",Z,X),ce("MMM",(function(e,t){return t.monthsShortRegex(e)})),ce("MMMM",(function(e,t){return t.monthsRegex(e)})),ve(["M","MM"],(function(e,t){t[1]=T(e)-1})),ve(["MMM","MMMM"],(function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);null!=o?t[1]=o:v(n).invalidMonth=e}));var Se=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Oe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),_e="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Ie(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=f([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=Ee.call(this._shortMonthsParse,a))?o:null:-1!==(o=Ee.call(this._longMonthsParse,a))?o:null:"MMM"===t?-1!==(o=Ee.call(this._shortMonthsParse,a))||-1!==(o=Ee.call(this._longMonthsParse,a))?o:null:-1!==(o=Ee.call(this._longMonthsParse,a))||-1!==(o=Ee.call(this._shortMonthsParse,a))?o:null}function Me(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=T(t);else if(!l(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),be(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Ne(e){return null!=e?(Me(this,e),o.updateOffset(this,!0),this):Re(this,"Month")}var ke=le,Ae=le;function Pe(){function e(e,t){return t.length-e.length}var t,n,r=[],o=[],i=[];for(t=0;t<12;t++)n=f([2e3,t]),r.push(this.monthsShort(n,"")),o.push(this.months(n,"")),i.push(this.months(n,"")),i.push(this.monthsShort(n,""));for(r.sort(e),o.sort(e),i.sort(e),t=0;t<12;t++)r[t]=he(r[t]),o[t]=he(o[t]);for(t=0;t<24;t++)i[t]=he(i[t]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function xe(e,t,n,r,o,i,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,o,i,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,i,a),s}function De(e){var t;if(e<100&&e>=0){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function Le(e,t,n){var r=7+t-n;return-(7+De(e,0,r).getUTCDay()-t)%7+r-1}function He(e,t,n,r,o){var i,a,s=1+7*(t-1)+(7+n-r)%7+Le(e,r,o);return s<=0?a=me(i=e-1)+s:s>me(e)?(i=e+1,a=s-me(e)):(i=e,a=s),{year:i,dayOfYear:a}}function Fe(e,t,n){var r,o,i=Le(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?r=a+Ue(o=e.year()-1,t,n):a>Ue(e.year(),t,n)?(r=a-Ue(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function Ue(e,t,n){var r=Le(e,t,n),o=Le(e+1,t,n);return(me(e)-r+o)/7}function Be(e,t){return e.slice(t,7).concat(e.slice(0,t))}G("w",["ww",2],"wo","week"),G("W",["WW",2],"Wo","isoWeek"),x("week","w"),x("isoWeek","W"),F("week",5),F("isoWeek",5),ce("w",Z),ce("ww",Z,X),ce("W",Z),ce("WW",Z,X),pe(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=T(e)})),G("d",0,"do","day"),G("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),G("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),G("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),G("e",0,0,"weekday"),G("E",0,0,"isoWeekday"),x("day","d"),x("weekday","e"),x("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),ce("d",Z),ce("e",Z),ce("E",Z),ce("dd",(function(e,t){return t.weekdaysMinRegex(e)})),ce("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),ce("dddd",(function(e,t){return t.weekdaysRegex(e)})),pe(["dd","ddd","dddd"],(function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:v(n).invalidWeekday=e})),pe(["d","e","E"],(function(e,t,n,r){t[r]=T(e)}));var Ve="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ye="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),We="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Ge(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=Ee.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Ee.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=Ee.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=Ee.call(this._weekdaysParse,a))||-1!==(o=Ee.call(this._shortWeekdaysParse,a))||-1!==(o=Ee.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Ee.call(this._shortWeekdaysParse,a))||-1!==(o=Ee.call(this._weekdaysParse,a))||-1!==(o=Ee.call(this._minWeekdaysParse,a))?o:null:-1!==(o=Ee.call(this._minWeekdaysParse,a))||-1!==(o=Ee.call(this._weekdaysParse,a))||-1!==(o=Ee.call(this._shortWeekdaysParse,a))?o:null}var je=le,ze=le,Ke=le;function Xe(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),r=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),i=this.weekdays(n,""),a.push(r),s.push(o),l.push(i),u.push(r),u.push(o),u.push(i);for(a.sort(e),s.sort(e),l.sort(e),u.sort(e),t=0;t<7;t++)s[t]=he(s[t]),l[t]=he(l[t]),u[t]=he(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 qe(){return this.hours()%12||12}function $e(e,t){G(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Qe(e,t){return t._meridiemParse}G("H",["HH",2],0,"hour"),G("h",["hh",2],0,qe),G("k",["kk",2],0,(function(){return this.hours()||24})),G("hmm",0,0,(function(){return""+qe.apply(this)+U(this.minutes(),2)})),G("hmmss",0,0,(function(){return""+qe.apply(this)+U(this.minutes(),2)+U(this.seconds(),2)})),G("Hmm",0,0,(function(){return""+this.hours()+U(this.minutes(),2)})),G("Hmmss",0,0,(function(){return""+this.hours()+U(this.minutes(),2)+U(this.seconds(),2)})),$e("a",!0),$e("A",!1),x("hour","h"),F("hour",13),ce("a",Qe),ce("A",Qe),ce("H",Z),ce("h",Z),ce("k",Z),ce("HH",Z,X),ce("hh",Z,X),ce("kk",Z,X),ce("hmm",J),ce("hmmss",ee),ce("Hmm",J),ce("Hmmss",ee),ve(["H","HH"],3),ve(["k","kk"],(function(e,t,n){var r=T(e);t[3]=24===r?0:r})),ve(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ve(["h","hh"],(function(e,t,n){t[3]=T(e),v(n).bigHour=!0})),ve("hmm",(function(e,t,n){var r=e.length-2;t[3]=T(e.substr(0,r)),t[4]=T(e.substr(r)),v(n).bigHour=!0})),ve("hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=T(e.substr(0,r)),t[4]=T(e.substr(r,2)),t[5]=T(e.substr(o)),v(n).bigHour=!0})),ve("Hmm",(function(e,t,n){var r=e.length-2;t[3]=T(e.substr(0,r)),t[4]=T(e.substr(r))})),ve("Hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=T(e.substr(0,r)),t[4]=T(e.substr(r,2)),t[5]=T(e.substr(o))}));var Ze,Je=Ce("Hours",!0),et={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:Oe,monthsShort:_e,week:{dow:0,doy:6},weekdays:Ve,weekdaysMin:We,weekdaysShort:Ye,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function rt(e){return e?e.toLowerCase().replace("_","-"):e}function ot(t){var r=null;if(!tt[t]&&void 0!==e&&e&&e.exports)try{r=Ze._abbr,n(501)("./"+t),it(r)}catch(e){}return tt[t]}function it(e,t){var n;return e&&((n=s(t)?st(e):at(e,t))?Ze=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ze._abbr}function at(e,t){if(null!==t){var n,r=et;if(t.abbr=e,null!=tt[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."),r=tt[e]._config;else if(null!=t.parentLocale)if(null!=tt[t.parentLocale])r=tt[t.parentLocale]._config;else{if(null==(n=ot(t.parentLocale)))return nt[t.parentLocale]||(nt[t.parentLocale]=[]),nt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return tt[e]=new A(k(r,t)),nt[e]&&nt[e].forEach((function(e){at(e.name,e.config)})),it(e),tt[e]}return delete tt[e],null}function st(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ze;if(!i(e)){if(t=ot(e))return t;e=[e]}return function(e){for(var t,n,r,o,i=0;i<e.length;){for(t=(o=rt(e[i]).split("-")).length,n=(n=rt(e[i+1]))?n.split("-"):null;t>0;){if(r=ot(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&b(o,n,!0)>=t-1)break;t--}i++}return Ze}(e)}function lt(e){var t,n=e._a;return n&&-2===v(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>be(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,v(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),v(e)._overflowWeeks&&-1===t&&(t=7),v(e)._overflowWeekday&&-1===t&&(t=8),v(e).overflow=t),e}function ut(e,t,n){return null!=e?e:null!=t?t:n}function ct(e){var t,n,r,i,a,s=[];if(!e._d){for(r=function(e){var t=new Date(o.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,r,o,i,a,s,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)i=1,a=4,n=ut(t.GG,e._a[0],Fe(St(),1,4).year),r=ut(t.W,1),((o=ut(t.E,1))<1||o>7)&&(l=!0);else{i=e._locale._week.dow,a=e._locale._week.doy;var u=Fe(St(),i,a);n=ut(t.gg,e._a[0],u.year),r=ut(t.w,u.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(l=!0)):o=i}r<1||r>Ue(n,i,a)?v(e)._overflowWeeks=!0:null!=l?v(e)._overflowWeekday=!0:(s=He(n,r,o,i,a),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=ut(e._a[0],r[0]),(e._dayOfYear>me(a)||0===e._dayOfYear)&&(v(e)._overflowDayOfYear=!0),n=De(a,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?De:xe).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[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(v(e).weekdayMismatch=!0)}}var dt=/^\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)?)?$/,ht=/^\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)?)?$/,ft=/Z|[+-]\d\d(?::?\d\d)?/,vt=[["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}/]],pt=[["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/]],gt=/^\/?Date\((\-?\d+)/i;function mt(e){var t,n,r,o,i,a,s=e._i,l=dt.exec(s)||ht.exec(s);if(l){for(v(e).iso=!0,t=0,n=vt.length;t<n;t++)if(vt[t][1].exec(l[1])){o=vt[t][0],r=!1!==vt[t][2];break}if(null==o)return void(e._isValid=!1);if(l[3]){for(t=0,n=pt.length;t<n;t++)if(pt[t][1].exec(l[3])){i=(l[2]||" ")+pt[t][0];break}if(null==i)return void(e._isValid=!1)}if(!r&&null!=i)return void(e._isValid=!1);if(l[4]){if(!ft.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=o+(i||"")+(a||""),Rt(e)}else e._isValid=!1}var yt=/^(?:(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 Et(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}var wt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ct(e){var t,n,r,o,i,a,s,l=yt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(l){var u=(t=l[4],n=l[3],r=l[2],o=l[5],i=l[6],a=l[7],s=[Et(t),_e.indexOf(n),parseInt(r,10),parseInt(o,10),parseInt(i,10)],a&&s.push(parseInt(a,10)),s);if(!function(e,t,n){return!e||Ye.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(v(n).weekdayMismatch=!0,n._isValid=!1,!1)}(l[1],u,e))return;e._a=u,e._tzm=function(e,t,n){if(e)return wt[e];if(t)return 0;var r=parseInt(n,10),o=r%100;return(r-o)/100*60+o}(l[8],l[9],l[10]),e._d=De.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),v(e).rfc2822=!0}else e._isValid=!1}function Rt(e){if(e._f!==o.ISO_8601)if(e._f!==o.RFC_2822){e._a=[],v(e).empty=!0;var t,n,r,i,a,s=""+e._i,l=s.length,u=0;for(r=z(e._f,e._locale).match(B)||[],t=0;t<r.length;t++)i=r[t],(n=(s.match(de(i,e))||[])[0])&&((a=s.substr(0,s.indexOf(n))).length>0&&v(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),u+=n.length),W[i]?(n?v(e).empty=!1:v(e).unusedTokens.push(i),ge(i,n,e)):e._strict&&!n&&v(e).unusedTokens.push(i);v(e).charsLeftOver=l-u,s.length>0&&v(e).unusedInput.push(s),e._a[3]<=12&&!0===v(e).bigHour&&e._a[3]>0&&(v(e).bigHour=void 0),v(e).parsedDateParts=e._a.slice(0),v(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),ct(e),lt(e)}else Ct(e);else mt(e)}function Tt(e){var t=e._i,n=e._f;return e._locale=e._locale||st(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),C(t)?new w(lt(t)):(u(t)?e._d=t:i(n)?function(e){var t,n,r,o,i;if(0===e._f.length)return v(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<e._f.length;o++)i=0,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],Rt(t),p(t)&&(i+=v(t).charsLeftOver,i+=10*v(t).unusedTokens.length,v(t).score=i,(null==r||i<r)&&(r=i,n=t));h(e,n||t)}(e):n?Rt(e):function(e){var t=e._i;s(t)?e._d=new Date(o.now()):u(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=gt.exec(e._i);null===t?(mt(e),!1===e._isValid&&(delete e._isValid,Ct(e),!1===e._isValid&&(delete e._isValid,o.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):i(t)?(e._a=c(t.slice(0),(function(e){return parseInt(e,10)})),ct(e)):a(t)?function(e){if(!e._d){var t=L(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)})),ct(e)}}(e):l(t)?e._d=new Date(t):o.createFromInputFallback(e)}(e),p(e)||(e._d=null),e))}function bt(e,t,n,r,o){var s,l={};return!0!==n&&!1!==n||(r=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),l._isAMomentObject=!0,l._useUTC=l._isUTC=o,l._l=n,l._i=e,l._f=t,l._strict=r,(s=new w(lt(Tt(l))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function St(e,t,n,r){return bt(e,t,n,r,!1)}o.createFromInputFallback=O("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":""))})),o.ISO_8601=function(){},o.RFC_2822=function(){};var Ot=O("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=St.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()})),_t=O("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=St.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()}));function It(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return St();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Mt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Nt(e){var t=L(e),n=t.year||0,r=t.quarter||0,o=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===Ee.call(Mt,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,r=0;r<Mt.length;++r)if(e[Mt[r]]){if(n)return!1;parseFloat(e[Mt[r]])!==T(e[Mt[r]])&&(n=!0)}return!0}(t),this._milliseconds=+c+1e3*u+6e4*l+1e3*s*60*60,this._days=+a+7*i,this._months=+o+3*r+12*n,this._data={},this._locale=st(),this._bubble()}function kt(e){return e instanceof Nt}function At(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Pt(e,t){G(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+U(~~(e/60),2)+t+U(~~e%60,2)}))}Pt("Z",":"),Pt("ZZ",""),ce("Z",se),ce("ZZ",se),ve(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=Dt(se,e)}));var xt=/([\+\-]|\d\d)/gi;function Dt(e,t){var n=(t||"").match(e);if(null===n)return null;var r=((n[n.length-1]||[])+"").match(xt)||["-",0,0],o=60*r[1]+T(r[2]);return 0===o?0:"+"===r[0]?o:-o}function Lt(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(C(e)||u(e)?e.valueOf():St(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),o.updateOffset(n,!1),n):St(e).local()}function Ht(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ft(){return!!this.isValid()&&this._isUTC&&0===this._offset}o.updateOffset=function(){};var Ut=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Bt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Vt(e,t){var n,r,o,i,a,s,u=e,c=null;return kt(e)?u={ms:e._milliseconds,d:e._days,M:e._months}:l(e)?(u={},t?u[t]=e:u.milliseconds=e):(c=Ut.exec(e))?(n="-"===c[1]?-1:1,u={y:0,d:T(c[2])*n,h:T(c[3])*n,m:T(c[4])*n,s:T(c[5])*n,ms:T(At(1e3*c[6]))*n}):(c=Bt.exec(e))?(n="-"===c[1]?-1:1,u={y:Yt(c[2],n),M:Yt(c[3],n),w:Yt(c[4],n),d:Yt(c[5],n),h:Yt(c[6],n),m:Yt(c[7],n),s:Yt(c[8],n)}):null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(i=St(u.from),a=St(u.to),o=i.isValid()&&a.isValid()?(a=Lt(a,i),i.isBefore(a)?s=Wt(i,a):((s=Wt(a,i)).milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0},(u={}).ms=o.milliseconds,u.M=o.months),r=new Nt(u),kt(e)&&d(e,"_locale")&&(r._locale=e._locale),r}function Yt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Wt(e,t){var n={};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 Gt(e,t){return function(n,r){var o;return null===r||isNaN(+r)||(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."),o=n,n=r,r=o),jt(this,Vt(n="string"==typeof n?+n:n,r),e),this}}function jt(e,t,n,r){var i=t._milliseconds,a=At(t._days),s=At(t._months);e.isValid()&&(r=null==r||r,s&&Me(e,Re(e,"Month")+s*n),a&&Te(e,"Date",Re(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&o.updateOffset(e,a||s))}Vt.fn=Nt.prototype,Vt.invalid=function(){return Vt(NaN)};var zt=Gt(1,"add"),Kt=Gt(-1,"subtract");function Xt(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function qt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=st(e))&&(this._locale=t),this)}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var $t=O("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 Qt(){return this._locale}function Zt(e,t){return(e%t+t)%t}function Jt(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function en(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function tn(e,t){G(0,[e,e.length],0,t)}function nn(e,t,n,r,o){var i;return null==e?Fe(this,r,o).year:(t>(i=Ue(e,r,o))&&(t=i),rn.call(this,e,t,n,r,o))}function rn(e,t,n,r,o){var i=He(e,t,n,r,o),a=De(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}G(0,["gg",2],0,(function(){return this.weekYear()%100})),G(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),tn("gggg","weekYear"),tn("ggggg","weekYear"),tn("GGGG","isoWeekYear"),tn("GGGGG","isoWeekYear"),x("weekYear","gg"),x("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),ce("G",ie),ce("g",ie),ce("GG",Z,X),ce("gg",Z,X),ce("GGGG",ne,$),ce("gggg",ne,$),ce("GGGGG",re,Q),ce("ggggg",re,Q),pe(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=T(e)})),pe(["gg","GG"],(function(e,t,n,r){t[r]=o.parseTwoDigitYear(e)})),G("Q",0,"Qo","quarter"),x("quarter","Q"),F("quarter",7),ce("Q",K),ve("Q",(function(e,t){t[1]=3*(T(e)-1)})),G("D",["DD",2],"Do","date"),x("date","D"),F("date",9),ce("D",Z),ce("DD",Z,X),ce("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ve(["D","DD"],2),ve("Do",(function(e,t){t[2]=T(e.match(Z)[0])}));var on=Ce("Date",!0);G("DDD",["DDDD",3],"DDDo","dayOfYear"),x("dayOfYear","DDD"),F("dayOfYear",4),ce("DDD",te),ce("DDDD",q),ve(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=T(e)})),G("m",["mm",2],0,"minute"),x("minute","m"),F("minute",14),ce("m",Z),ce("mm",Z,X),ve(["m","mm"],4);var an=Ce("Minutes",!1);G("s",["ss",2],0,"second"),x("second","s"),F("second",15),ce("s",Z),ce("ss",Z,X),ve(["s","ss"],5);var sn,ln=Ce("Seconds",!1);for(G("S",0,0,(function(){return~~(this.millisecond()/100)})),G(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),G(0,["SSS",3],0,"millisecond"),G(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),G(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),G(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),G(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),G(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),G(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),x("millisecond","ms"),F("millisecond",16),ce("S",te,K),ce("SS",te,X),ce("SSS",te,q),sn="SSSS";sn.length<=9;sn+="S")ce(sn,oe);function un(e,t){t[6]=T(1e3*("0."+e))}for(sn="S";sn.length<=9;sn+="S")ve(sn,un);var cn=Ce("Milliseconds",!1);G("z",0,0,"zoneAbbr"),G("zz",0,0,"zoneName");var dn=w.prototype;function hn(e){return e}dn.add=zt,dn.calendar=function(e,t){var n=e||St(),r=Lt(n,this).startOf("day"),i=o.calendarFormat(this,r)||"sameElse",a=t&&(N(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,St(n)))},dn.clone=function(){return new w(this)},dn.diff=function(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(!(r=Lt(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=D(t)){case"year":i=Xt(this,r)/12;break;case"month":i=Xt(this,r);break;case"quarter":i=Xt(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:R(i)},dn.endOf=function(e){var t;if(void 0===(e=D(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?en:Jt;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-Zt(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-Zt(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-Zt(t,1e3)-1}return this._d.setTime(t),o.updateOffset(this,!0),this},dn.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=j(this,e);return this.localeData().postformat(t)},dn.from=function(e,t){return this.isValid()&&(C(e)&&e.isValid()||St(e).isValid())?Vt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.fromNow=function(e){return this.from(St(),e)},dn.to=function(e,t){return this.isValid()&&(C(e)&&e.isValid()||St(e).isValid())?Vt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.toNow=function(e){return this.to(St(),e)},dn.get=function(e){return N(this[e=D(e)])?this[e]():this},dn.invalidAt=function(){return v(this).overflow},dn.isAfter=function(e,t){var n=C(e)?e:St(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=D(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},dn.isBefore=function(e,t){var n=C(e)?e:St(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=D(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},dn.isBetween=function(e,t,n,r){var o=C(e)?e:St(e),i=C(t)?t:St(t);return!!(this.isValid()&&o.isValid()&&i.isValid())&&("("===(r=r||"()")[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===r[1]?this.isBefore(i,n):!this.isAfter(i,n))},dn.isSame=function(e,t){var n,r=C(e)?e:St(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=D(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.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 p(this)},dn.lang=$t,dn.locale=qt,dn.localeData=Qt,dn.max=_t,dn.min=Ot,dn.parsingFlags=function(){return h({},v(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:H[n]});return t.sort((function(e,t){return e.priority-t.priority})),t}(e=L(e)),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit]);else if(N(this[e=D(e)]))return this[e](t);return this},dn.startOf=function(e){var t;if(void 0===(e=D(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?en:Jt;switch(e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Zt(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=Zt(t,6e4);break;case"second":t=this._d.valueOf(),t-=Zt(t,1e3)}return this._d.setTime(t),o.updateOffset(this,!0),this},dn.subtract=Kt,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?j(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",j(n,"Z")):j(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+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+o)},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=we,dn.isLeapYear=function(){return ye(this.year())},dn.weekYear=function(e){return nn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},dn.isoWeekYear=function(e){return nn.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=Ne,dn.daysInMonth=function(){return be(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=Fe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},dn.weeksInYear=function(){var e=this.localeData()._week;return Ue(this.year(),e.dow,e.doy)},dn.isoWeeksInYear=function(){return Ue(this.year(),1,4)},dn.date=on,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=Je,dn.minute=dn.minutes=an,dn.second=dn.seconds=ln,dn.millisecond=dn.milliseconds=cn,dn.utcOffset=function(e,t,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Dt(se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Ht(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?jt(this,Vt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:Ht(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(Ht(this),"m")),this},dn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Dt(ae,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},dn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?St(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=Ft,dn.isUTC=Ft,dn.zoneAbbr=function(){return this._isUTC?"UTC":""},dn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},dn.dates=O("dates accessor is deprecated. Use date instead.",on),dn.months=O("months accessor is deprecated. Use month instead",Ne),dn.years=O("years accessor is deprecated. Use year instead",we),dn.zone=O("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=O("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(y(e,this),(e=Tt(e))._a){var t=e._isUTC?f(e._a):St(e._a);this._isDSTShifted=this.isValid()&&b(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var fn=A.prototype;function vn(e,t,n,r){var o=st(),i=f().set(r,t);return o[n](i,e)}function pn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return vn(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=vn(e,r,n,"month");return o}function gn(e,t,n,r){"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 o,i=st(),a=e?i._week.dow:0;if(null!=n)return vn(t,(n+a)%7,r,"day");var s=[];for(o=0;o<7;o++)s[o]=vn(t,(o+a)%7,r,"day");return s}fn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return N(r)?r.call(t,n):r},fn.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])},fn.invalidDate=function(){return this._invalidDate},fn.ordinal=function(e){return this._ordinal.replace("%d",e)},fn.preparse=hn,fn.postformat=hn,fn.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return N(o)?o(e,t,n,r):o.replace(/%d/i,e)},fn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return N(n)?n(t):n.replace(/%s/i,t)},fn.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)},fn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Se).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},fn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Se.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},fn.monthsParse=function(e,t,n){var r,o,i;if(this._monthsParseExact)return Ie.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=f([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},fn.monthsRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Pe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=Ae),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},fn.monthsShortRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Pe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=ke),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},fn.week=function(e){return Fe(e,this._week.dow,this._week.doy).week},fn.firstDayOfYear=function(){return this._week.doy},fn.firstDayOfWeek=function(){return this._week.dow},fn.weekdays=function(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Be(n,this._week.dow):e?n[e.day()]:n},fn.weekdaysMin=function(e){return!0===e?Be(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},fn.weekdaysShort=function(e){return!0===e?Be(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},fn.weekdaysParse=function(e,t,n){var r,o,i;if(this._weekdaysParseExact)return Ge.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=f([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},fn.weekdaysRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=je),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},fn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ze),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},fn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ke),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},fn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},fn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},it("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===T(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),o.lang=O("moment.lang is deprecated. Use moment.locale instead.",it),o.langData=O("moment.langData is deprecated. Use moment.localeData instead.",st);var mn=Math.abs;function yn(e,t,n,r){var o=Vt(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function En(e){return e<0?Math.floor(e):Math.ceil(e)}function wn(e){return 4800*e/146097}function Cn(e){return 146097*e/4800}function Rn(e){return function(){return this.as(e)}}var Tn=Rn("ms"),bn=Rn("s"),Sn=Rn("m"),On=Rn("h"),_n=Rn("d"),In=Rn("w"),Mn=Rn("M"),Nn=Rn("Q"),kn=Rn("y");function An(e){return function(){return this.isValid()?this._data[e]:NaN}}var Pn=An("milliseconds"),xn=An("seconds"),Dn=An("minutes"),Ln=An("hours"),Hn=An("days"),Fn=An("months"),Un=An("years"),Bn=Math.round,Vn={ss:44,s:45,m:45,h:22,d:26,M:11};function Yn(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}var Wn=Math.abs;function Gn(e){return(e>0)-(e<0)||+e}function jn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Wn(this._milliseconds)/1e3,r=Wn(this._days),o=Wn(this._months);e=R(n/60),t=R(e/60),n%=60,e%=60;var i=R(o/12),a=o%=12,s=r,l=t,u=e,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var h=d<0?"-":"",f=Gn(this._months)!==Gn(d)?"-":"",v=Gn(this._days)!==Gn(d)?"-":"",p=Gn(this._milliseconds)!==Gn(d)?"-":"";return h+"P"+(i?f+i+"Y":"")+(a?f+a+"M":"")+(s?v+s+"D":"")+(l||u||c?"T":"")+(l?p+l+"H":"")+(u?p+u+"M":"")+(c?p+c+"S":"")}var zn=Nt.prototype;return zn.isValid=function(){return this._isValid},zn.abs=function(){var e=this._data;return this._milliseconds=mn(this._milliseconds),this._days=mn(this._days),this._months=mn(this._months),e.milliseconds=mn(e.milliseconds),e.seconds=mn(e.seconds),e.minutes=mn(e.minutes),e.hours=mn(e.hours),e.months=mn(e.months),e.years=mn(e.years),this},zn.add=function(e,t){return yn(this,e,t,1)},zn.subtract=function(e,t){return yn(this,e,t,-1)},zn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=D(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+wn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Cn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},zn.asMilliseconds=Tn,zn.asSeconds=bn,zn.asMinutes=Sn,zn.asHours=On,zn.asDays=_n,zn.asWeeks=In,zn.asMonths=Mn,zn.asQuarters=Nn,zn.asYears=kn,zn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*T(this._months/12):NaN},zn._bubble=function(){var e,t,n,r,o,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*En(Cn(s)+a),a=0,s=0),l.milliseconds=i%1e3,e=R(i/1e3),l.seconds=e%60,t=R(e/60),l.minutes=t%60,n=R(t/60),l.hours=n%24,a+=R(n/24),o=R(wn(a)),s+=o,a-=En(Cn(o)),r=R(s/12),s%=12,l.days=a,l.months=s,l.years=r,this},zn.clone=function(){return Vt(this)},zn.get=function(e){return e=D(e),this.isValid()?this[e+"s"]():NaN},zn.milliseconds=Pn,zn.seconds=xn,zn.minutes=Dn,zn.hours=Ln,zn.days=Hn,zn.weeks=function(){return R(this.days()/7)},zn.months=Fn,zn.years=Un,zn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Vt(e).abs(),o=Bn(r.as("s")),i=Bn(r.as("m")),a=Bn(r.as("h")),s=Bn(r.as("d")),l=Bn(r.as("M")),u=Bn(r.as("y")),c=o<=Vn.ss&&["s",o]||o<Vn.s&&["ss",o]||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,Yn.apply(null,c)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},zn.toISOString=jn,zn.toString=jn,zn.toJSON=jn,zn.locale=qt,zn.localeData=Qt,zn.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",jn),zn.lang=$t,G("X",0,0,"unix"),G("x",0,0,"valueOf"),ce("x",ie),ce("X",/[+-]?\d+(\.\d{1,3})?/),ve("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))})),ve("x",(function(e,t,n){n._d=new Date(T(e))})),o.version="2.24.0",t=St,o.fn=dn,o.min=function(){var e=[].slice.call(arguments,0);return It("isBefore",e)},o.max=function(){var e=[].slice.call(arguments,0);return It("isAfter",e)},o.now=function(){return Date.now?Date.now():+new Date},o.utc=f,o.unix=function(e){return St(1e3*e)},o.months=function(e,t){return pn(e,t,"months")},o.isDate=u,o.locale=it,o.invalid=g,o.duration=Vt,o.isMoment=C,o.weekdays=function(e,t,n){return gn(e,t,n,"weekdays")},o.parseZone=function(){return St.apply(null,arguments).parseZone()},o.localeData=st,o.isDuration=kt,o.monthsShort=function(e,t){return pn(e,t,"monthsShort")},o.weekdaysMin=function(e,t,n){return gn(e,t,n,"weekdaysMin")},o.defineLocale=at,o.updateLocale=function(e,t){if(null!=t){var n,r,o=et;null!=(r=ot(e))&&(o=r._config),t=k(o,t),(n=new A(t)).parentLocale=tt[e],tt[e]=n,it(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?tt[e]=tt[e].parentLocale:null!=tt[e]&&delete tt[e]);return tt[e]},o.locales=function(){return _(tt)},o.weekdaysShort=function(e,t,n){return gn(e,t,n,"weekdaysShort")},o.normalizeUnits=D,o.relativeTimeRounding=function(e){return void 0===e?Bn:"function"==typeof e&&(Bn=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==Vn[e]&&(void 0===t?Vn[e]:(Vn[e]=t,"s"===e&&(Vn.ss=t-1),!0))},o.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"},o.prototype=dn,o.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"},o}(),window.moment=n(76)}).call(this,n(500)(e))},function(e,t,n){"use strict";var r=n(21),o=n(102).map;r({target:"Array",proto:!0,forced:!n(123)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";t.__esModule=!0,t.normalizeSelection=function(e){return(0,r.arrayMap)(e,(function(e){return{start:e.getTopLeftCorner(),end:e.getBottomRightCorner()}}))},t.isSeparator=function(e){return(0,o.hasClass)(e,"htSeparator")},t.hasSubMenu=function(e){return(0,o.hasClass)(e,"htSubmenu")},t.isDisabled=function(e){return(0,o.hasClass)(e,"htDisabled")},t.isSelectionDisabled=function(e){return(0,o.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,r.arrayEach)(e,(function(e){e.forAll((function(e,r){e>=0&&r>=0&&(n[e]||(n[e]=[]),n[e][r]=t(e,r))}))})),n},t.align=function(e,t,n,o,i){(0,r.arrayEach)(e,(function(e){e.forAll((function(e,r){e>=0&&r>=0&&function(e,t,n,r,o,i){var l=o(e,t),u=r;l.className&&(u="vertical"===n?a(l.className,r):s(l.className,r));i(e,t,"className",u)}(e,r,t,n,o,i)}))}))},t.checkSelectionConsistency=function(e,t){var n=!1;Array.isArray(e)&&(0,r.arrayEach)(e,(function(e){return e.forAll((function(e,r){if(e>=0&&r>=0&&t(e,r))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=c(n=u(n=l(n,t),t))},n(17),n(29),n(51),n(19),n(33),n(79),n(190);var r=n(3),o=n(10),i=n(217);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){for(var n=e.slice(0);0<n.length&&n[0].name===t;)n.shift();return n}function u(e,t){var n=e.slice(0);return n.reverse(),(n=l(n,t)).reverse(),n}function c(e){var t=[];return(0,r.arrayEach)(e,(function(e,n){n>0?t[t.length-1].name!==e.name&&t.push(e):t.push(e)})),t}},function(e,t,n){var r=n(57),o=n(66).f,i=Function.prototype,a=i.toString,s=/^\s*function ([^ (]*)/;r&&!("name"in i)&&o(i,"name",{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(e){return""}}})},function(e,t){t.nil=new Error("#NULL!"),t.div0=new Error("#DIV/0!"),t.value=new Error("#VALUE!"),t.ref=new Error("#REF!"),t.name=new Error("#NAME?"),t.num=new Error("#NUM!"),t.na=new Error("#N/A"),t.error=new Error("#ERROR!"),t.data=new Error("#GETTING_DATA")},function(e,t,n){"use strict";var r=n(21),o=n(107),i=n(68),a=n(32),s=n(108),l=[],u=l.sort,c=a((function(){l.sort(void 0)})),d=a((function(){l.sort(null)})),h=s("sort");r({target:"Array",proto:!0,forced:c||!d||!h},{sort:function(e){return void 0===e?u.call(i(this)):u.call(i(this),o(e))}})},function(e,t,n){var r=n(57),o=n(66),i=n(116);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(40),o=n(82),i=n(65),a=n(173),s=n(230),l=n(95),u=l.get,c=l.enforce,d=String(String).split("String");(e.exports=function(e,t,n,s){var l,u=!!s&&!!s.unsafe,h=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||o(n,"name",t),(l=c(n)).source||(l.source=d.join("string"==typeof t?t:""))),e!==r?(u?!f&&e[t]&&(h=!0):delete e[t],h?e[t]=n:o(e,t,n)):h?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||s(this)}))},function(e,t,n){"use strict";t.__esModule=!0,t.setBrowserMeta=s,t.setPlatformMeta=l,t.isChrome=function(){return i.chrome.value},t.isEdge=function(){return i.edge.value},t.isIE=function(){return i.ie.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.isIOS=function(){return a.ios.value},t.isIpadOS=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator,t=e.maxTouchPoints;return t>2&&a.mac.value},t.isSafari=function(){return i.safari.value},t.isFirefox=function(){return i.firefox.value},t.isWindowsOS=function(){return a.win.value},t.isMacOS=function(){return a.mac.value},t.isLinuxOS=function(){return a.linux.value};var r=n(5),o=function(e){var t={value:!1,test:function(n,r){t.value=e(n,r)}};return t},i={chrome:o((function(e,t){return/Chrome/.test(e)&&/Google/.test(t)})),edge:o((function(e){return/Edge/.test(e)})),firefox:o((function(e){return/Firefox/.test(e)})),ie:o((function(e){return/Trident/.test(e)})),ie9:o((function(){return!!document.documentMode})),mobile:o((function(e){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)})),safari:o((function(e,t){return/Safari/.test(e)&&/Apple Computer/.test(t)}))},a={mac:o((function(e){return/^Mac/.test(e)})),win:o((function(e){return/^Win/.test(e)})),linux:o((function(e){return/^Linux/.test(e)})),ios:o((function(e){return/iPhone|iPad|iPod/i.test(e)}))};function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.userAgent,n=void 0===t?navigator.userAgent:t,o=e.vendor,a=void 0===o?navigator.vendor:o;(0,r.objectEach)(i,(function(e){(0,e.test)(n,a)}))}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.platform,n=void 0===t?navigator.platform:t;(0,r.objectEach)(a,(function(e){(0,e.test)(n)}))}s(),l()},function(e,t,n){"use strict";t.__esModule=!0,t.CUSTOM_SELECTION_TYPE=t.HEADER_TYPE=t.FILL_TYPE=t.CELL_TYPE=t.AREA_TYPE=t.ACTIVE_HEADER_TYPE=void 0;t.ACTIVE_HEADER_TYPE="active-header";t.AREA_TYPE="area";t.CELL_TYPE="cell";t.FILL_TYPE="fill";t.HEADER_TYPE="header";t.CUSTOM_SELECTION_TYPE="custom-selection"},function(e,t,n){var r=n(80);t.flattenShallow=function(e){return e&&e.reduce?e.reduce((function(e,t){var n=Array.isArray(e),r=Array.isArray(t);return n&&r?e.concat(t):n?(e.push(t),e):r?[e].concat(t):[e,t]})):e},t.isFlat=function(e){if(!e)return!1;for(var t=0;t<e.length;++t)if(Array.isArray(e[t]))return!1;return!0},t.flatten=function(){for(var e=t.argsToArray.apply(null,arguments);!t.isFlat(e);)e=t.flattenShallow(e);return e},t.argsToArray=function(e){var n=[];return t.arrayEach(e,(function(e){n.push(e)})),n},t.numbers=function(){var e=this.flatten.apply(null,arguments);return e.filter((function(e){return"number"==typeof e}))},t.cleanFloat=function(e){return Math.round(1e14*e)/1e14},t.parseBool=function(e){if("boolean"==typeof e)return e;if(e instanceof Error)return e;if("number"==typeof e)return 0!==e;if("string"==typeof e){var t=e.toUpperCase();if("TRUE"===t)return!0;if("FALSE"===t)return!1}return e instanceof Date&&!isNaN(e)||r.value},t.parseNumber=function(e){return void 0===e||""===e||isNaN(e)?r.value:parseFloat(e)},t.parseNumberArray=function(e){var n,o;if(!e||0===(n=e.length))return r.value;for(;n--;){if((o=t.parseNumber(e[n]))===r.value)return o;e[n]=o}return e},t.parseMatrix=function(e){var n;if(!e||0===e.length)return r.value;for(var o=0;o<e.length;o++)if(n=t.parseNumberArray(e[o]),e[o]=n,n instanceof Error)return n;return e};var o=new Date(Date.UTC(1900,0,1));t.parseDate=function(e){if(!isNaN(e)){if(e instanceof Date)return new Date(e);var t=parseInt(e,10);return t<0?r.num:t<=60?new Date(o.getTime()+864e5*(t-1)):new Date(o.getTime()+864e5*(t-2))}return"string"!=typeof e||(e=new Date(e),isNaN(e))?r.value:e},t.parseDateArray=function(e){for(var t,n=e.length;n--;){if((t=this.parseDate(e[n]))===r.value)return t;e[n]=t}return e},t.anyIsError=function(){for(var e=arguments.length;e--;)if(arguments[e]instanceof Error)return!0;return!1},t.arrayValuesToNumbers=function(e){for(var t,n=e.length;n--;)if("number"!=typeof(t=e[n]))if(!0!==t)if(!1!==t){if("string"==typeof t){var r=this.parseNumber(t);r instanceof Error?e[n]=0:e[n]=r}}else e[n]=0;else e[n]=1;return e},t.rest=function(e,t){return t=t||1,e&&"function"==typeof e.slice?e.slice(t):e},t.initial=function(e,t){return t=t||1,e&&"function"==typeof e.slice?e.slice(0,e.length-t):e},t.arrayEach=function(e,t){for(var n=-1,r=e.length;++n<r&&!1!==t(e[n],n,e););return e},t.transpose=function(e){return e?e[0].map((function(t,n){return e.map((function(e){return e[n]}))})):r.value}},function(e,t,n){"use strict";t.__esModule=!0,t.CLONE_TYPES=t.CLONE_BOTTOM_LEFT_CORNER=t.CLONE_TOP_LEFT_CORNER=t.CLONE_LEFT=t.CLONE_BOTTOM=t.CLONE_TOP=void 0;t.CLONE_TOP="top";t.CLONE_BOTTOM="bottom";t.CLONE_LEFT="left";t.CLONE_TOP_LEFT_CORNER="top_left_corner";t.CLONE_BOTTOM_LEFT_CORNER="bottom_left_corner";var r=["top","bottom","left","top_left_corner","bottom_left_corner"];t.CLONE_TYPES=r},function(e,t,n){var r=n(551),o=n(417);e.exports=function(e,t){var n=o(e,t,"get");return r(e,n)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(552),o=n(417);e.exports=function(e,t,n){var i=o(e,t,"set");return r(e,i,n),n},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(560);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=n(0),o=n(14);t.__esModule=!0,t.predefinedItems=function(){var e={};return(0,a.objectEach)(R,(function(t,n){e[n]=t()})),e},t.addItem=function(e,t){-1===C.indexOf(e)&&(R[e]=t)},t.ITEMS=t.UNDO=t.NO_ITEMS=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,n(17);var i=r(n(37)),a=n(5),s=o(n(658));t.ALIGNMENT=s.KEY;var l=o(n(659));t.CLEAR_COLUMN=l.KEY;var u=o(n(660));t.COLUMN_LEFT=u.KEY;var c=o(n(661));t.COLUMN_RIGHT=c.KEY;var d=o(n(662));t.READ_ONLY=d.KEY;var h=o(n(663));t.REDO=h.KEY;var f=o(n(664));t.REMOVE_COLUMN=f.KEY;var v=o(n(665));t.REMOVE_ROW=v.KEY;var p=o(n(666));t.ROW_ABOVE=p.KEY;var g=o(n(667));t.ROW_BELOW=g.KEY;var m=o(n(217));t.SEPARATOR=m.KEY;var y=o(n(668));t.NO_ITEMS=y.KEY;var E,w=o(n(669));t.UNDO=w.KEY;var C=[p.KEY,g.KEY,u.KEY,c.KEY,l.KEY,v.KEY,f.KEY,w.KEY,h.KEY,d.KEY,s.KEY,m.KEY,y.KEY];t.ITEMS=C;var R=(E={},(0,i.default)(E,m.KEY,m.default),(0,i.default)(E,y.KEY,y.default),(0,i.default)(E,p.KEY,p.default),(0,i.default)(E,g.KEY,g.default),(0,i.default)(E,u.KEY,u.default),(0,i.default)(E,c.KEY,c.default),(0,i.default)(E,l.KEY,l.default),(0,i.default)(E,v.KEY,v.default),(0,i.default)(E,f.KEY,f.default),(0,i.default)(E,w.KEY,w.default),(0,i.default)(E,h.KEY,h.default),(0,i.default)(E,d.KEY,d.default),(0,i.default)(E,s.KEY,s.default),E)},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.default=void 0,n(17);var o=r(n(1)),i=r(n(2)),a=r(n(7)),s=r(n(8)),l=r(n(4)),u=n(145),c=n(3),d=r(n(467));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var f=[1,2,3],v=function(e){(0,a.default)(n,e);var t=h(n);function n(e,r){var i;return(0,o.default)(this,n),(i=t.call(this,e,r)).precedents=[],i.value=null,i.error=null,i.state=n.STATE_UP_TO_DATE,i}return(0,i.default)(n,[{key:"setValue",value:function(e){this.value=e}},{key:"getValue",value:function(){return this.value}},{key:"setError",value:function(e){this.error=e}},{key:"getError",value:function(){return this.error}},{key:"hasError",value:function(){return null!==this.error}},{key:"setState",value:function(e){if(-1===f.indexOf(e))throw Error("Unrecognized state: ".concat(e));this.state=e}},{key:"isState",value:function(e){return this.state===e}},{key:"addPrecedent",value:function(e){if(this.isEqual(e))throw Error(u.ERROR_REF);this.hasPrecedent(e)||this.precedents.push(e)}},{key:"removePrecedent",value:function(e){if(this.isEqual(e))throw Error(u.ERROR_REF);this.precedents=(0,c.arrayFilter)(this.precedents,(function(t){return!t.isEqual(e)}))}},{key:"clearPrecedents",value:function(){this.precedents.length=0}},{key:"getPrecedents",value:function(){return this.precedents}},{key:"hasPrecedents",value:function(){return this.precedents.length>0}},{key:"hasPrecedent",value:function(e){return(0,c.arrayFilter)(this.precedents,(function(t){return t.isEqual(e)})).length>0}}],[{key:"STATE_OUT_OFF_DATE",get:function(){return 1}},{key:"STATE_COMPUTING",get:function(){return 2}},{key:"STATE_UP_TO_DATE",get:function(){return 3}}]),n}(d.default);t.default=v},function(e,t,n){var r=n(57),o=n(147),i=n(116),a=n(74),s=n(118),l=n(65),u=n(229),c=Object.getOwnPropertyDescriptor;t.f=r?c:function(e,t){if(e=a(e),t=s(t,!0),u)try{return c(e,t)}catch(e){}if(l(e,t))return i(!o.f.call(e,t),e[t])}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r,o,i,a=n(231),s=n(40),l=n(46),u=n(82),c=n(65),d=n(174),h=n(148),f=n(119),v=s.WeakMap;if(a){var p=d.state||(d.state=new v),g=p.get,m=p.has,y=p.set;r=function(e,t){if(m.call(p,e))throw new TypeError("Object already initialized");return t.facade=e,y.call(p,e,t),t},o=function(e){return g.call(p,e)||{}},i=function(e){return m.call(p,e)}}else{var E=h("state");f[E]=!0,r=function(e,t){if(c(e,E))throw new TypeError("Object already initialized");return t.facade=e,u(e,E,t),t},o=function(e){return c(e,E)?e[E]:{}},i=function(e){return c(e,E)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.requestAnimationFrame=function(e){return c.call(window,e)},t.isClassListSupported=function(){return!!document.documentElement.classList},t.isTextContentSupported=function(){return!!document.createTextNode("test").textContent},t.isGetComputedStyleSupported=function(){return!!window.getComputedStyle},t.cancelAnimationFrame=function(e){d.call(window,e)},t.isTouchSupported=function(){return"ontouchstart"in window},t.hasCaptionProblem=function(){void 0===i&&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),i=e.offsetHeight<2*e.lastChild.offsetHeight,document.body.removeChild(e)}();return i},t.getComparisonFunction=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(a)return a;a="object"===("undefined"==typeof Intl?"undefined":(0,o.default)(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 a},t.isPassiveEventSupported=function(){if(void 0!==s)return s;try{var e={get passive(){s=!0}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){s=!1}return s};var o=r(n(56));n(44);for(var i,a,s,l=0,u=["ms","moz","webkit","o"],c=window.requestAnimationFrame,d=window.cancelAnimationFrame,h=0;h<u.length&&!c;++h)c=window["".concat(u[h],"RequestAnimationFrame")],d=window["".concat(u[h],"CancelAnimationFrame")]||window["".concat(u[h],"CancelRequestAnimationFrame")];c||(c=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-l)),r=window.setTimeout((function(){e(t+n)}),n);return l=t+n,r}),d||(d=function(e){clearTimeout(e)})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"common";i.has(e)||i.set(e,new Map);var t=i.get(e);function n(e,n){t.set(e,n)}function r(e){return t.get(e)}function a(e){return t.has(e)}function s(){return(0,o.default)(t.keys())}function l(){return(0,o.default)(t.values())}return{register:n,getItem:r,hasItem:a,getNames:s,getValues:l}},t.collection=void 0;var o=r(n(25));n(12),n(39),n(9),n(11),n(13);var i=new Map;t.collection=i},function(e,t,n){"use strict";n(81),t.__esModule=!0;var r=n(446);t.registerRootComparator=r.registerRootComparator,t.getRootComparator=r.getRootComparator,t.getCompareFunctionFactory=r.getCompareFunctionFactory;var o=n(648);t.FIRST_AFTER_SECOND=o.FIRST_AFTER_SECOND,t.FIRST_BEFORE_SECOND=o.FIRST_BEFORE_SECOND,t.DO_NOT_SWAP=o.DO_NOT_SWAP,t.sort=o.sort},function(e,t,n){"use strict";function r(e){return"string"==typeof e&&"'"===e.charAt(0)&&"="===e.charAt(1)}t.__esModule=!0,t.isFormulaExpression=function(e){return"string"==typeof e&&e.length>=2&&"="===e.charAt(0)},t.isFormulaExpressionEscaped=r,t.unescapeFormulaExpression=function(e){return r(e)?e.substr(1):e},t.toUpperCaseFormula=function(e){var t=/(\\"|"(?:\\"|[^"])*"|(\+))|(\\'|'(?:\\'|[^'])*'|(\+))/g,n=e.match(t)||[],r=-1;return e.toUpperCase().replace(t,(function(){return n[r+=1]}))},t.cellCoordFactory=function(e,t){return function(n){return{row:"row"===e?t:n.row,column:"column"===e?t:n.column}}},n(29),n(135),n(51)},function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e){var t=parseInt(e,10);return t=isNaN(t)?-1:Math.max(t-1,-1)}function a(e){var t="";return e>=0&&(t="".concat(e+1)),t}n.r(t),n.d(t,"rowLabelToIndex",(function(){return i})),n.d(t,"rowIndexToLabel",(function(){return a})),n.d(t,"columnLabelToIndex",(function(){return l})),n.d(t,"columnIndexToLabel",(function(){return u})),n.d(t,"extractLabel",(function(){return d})),n.d(t,"toLabel",(function(){return h}));var s="ABCDEFGHIJKLMNOPQRSTUVWXYZ".length;function l(e){var t=0;if("string"==typeof e)for(var n=0,r=(e=e.toUpperCase()).length-1;n<e.length;n+=1,r-=1)t+=Math.pow(s,r)*("ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf(e[n])+1);return--t}function u(e){for(var t="";e>=0;)t=String.fromCharCode(e%s+97)+t,e=Math.floor(e/s)-1;return t.toUpperCase()}var c=/^([$])?([A-Za-z]+)([$])?([0-9]+)$/;function d(e){if("string"!=typeof e||!c.test(e))return[];var t=r(e.toUpperCase().match(c),5),n=t[1],o=t[2],a=t[3],s=t[4];return[{index:i(s),label:s,isAbsolute:"$"===a},{index:l(o),label:o,isAbsolute:"$"===n}]}function h(e,t){var n=(e.isAbsolute?"$":"")+a(e.index);return(t.isAbsolute?"$":"")+u(t.index)+n}},function(e,t,n){var r=n(125),o=n(117),i=n(68),a=n(58),s=n(178),l=[].push,u=function(e){var t=1==e,n=2==e,u=3==e,c=4==e,d=6==e,h=7==e,f=5==e||d;return function(v,p,g,m){for(var y,E,w=i(v),C=o(w),R=r(p,g,3),T=a(C.length),b=0,S=m||s,O=t?S(v,T):n||h?S(v,0):void 0;T>b;b++)if((f||b in C)&&(E=R(y=C[b],b,w),e))if(t)O[b]=E;else if(E)switch(e){case 3:return!0;case 5:return y;case 6:return b;case 2:l.call(O,y)}else switch(e){case 4:return!1;case 7:l.call(O,y)}return d?-1:u||c?c:O}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterOut:u(7)}},function(e,t,n){"use strict";t.__esModule=!0,t.TextEditor=t.EDITOR_TYPE=void 0;var r=n(578);t.EDITOR_TYPE=r.EDITOR_TYPE,t.TextEditor=r.TextEditor},function(e,t,n){"use strict";t.__esModule=!0,t.textRenderer=t.RENDERER_TYPE=void 0;var r=n(581);t.RENDERER_TYPE=r.RENDERER_TYPE,t.textRenderer=r.textRenderer},function(e,t){e.exports=!1},function(e,t,n){var r=n(234),o=n(40),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){"use strict";var r=n(32);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},function(e,t,n){var r,o=n(47),i=n(482),a=n(176),s=n(119),l=n(240),u=n(172),c=n(148),d=c("IE_PROTO"),h=function(){},f=function(e){return"<script>"+e+"<\/script>"},v=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;v=r?function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=u("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete v.prototype[a[n]];return v()};s[d]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(h.prototype=o(e),n=new h,h.prototype=null,n[d]=e):n=v(),void 0===t?n:i(n,t)}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(43),n(11),n(26),n(23);var o=r(n(25)),i=r(n(18)),a=r(n(1)),s=r(n(2)),l=n(10),u=n(53),c=r(n(131)),d=r(n(392)),h=r(n(393)),f=n(396),v=r(n(514)),p=r(n(515)),g=n(399),m=n(87),y=function(){function e(t,n){var r=this;(0,a.default)(this,e),this.isMaster=!t.cloneOverlay,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,this.hasTableHeight=!0,this.hasTableWidth=!0,this.isTableVisible=!1,(0,l.removeTextNodes)(this.TABLE),this.spreader=this.createSpreader(this.TABLE),this.hider=this.createHider(this.spreader),this.holder=this.createHolder(this.hider),this.wtRootElement=this.holder.parentNode,this.isMaster&&this.alignOverlaysWithTrimmingContainer(),this.fixTableDomTree(),this.rowFilter=null,this.columnFilter=null,this.correctHeaderWidth=!1;var o=this.wot.wtSettings.settings.rowHeaderWidth;this.wot.wtSettings.settings.rowHeaderWidth=function(){return r._modifyRowHeaderWidth(o)},this.rowUtils=new p.default(this.wot),this.columnUtils=new v.default(this.wot),this.tableRenderer=new f.Renderer({TABLE:this.TABLE,THEAD:this.THEAD,COLGROUP:this.COLGROUP,TBODY:this.TBODY,rowUtils:this.rowUtils,columnUtils:this.columnUtils,cellRenderer:this.wot.wtSettings.settings.cellRenderer})}return(0,s.default)(e,[{key:"is",value:function(e){return(0,g.isOverlayTypeOf)(this.wot.cloneOverlay,e)}},{key:"fixTableDomTree",value:function(){var e=this.wot.rootDocument;this.TBODY=this.TABLE.querySelector("tbody"),this.TBODY||(this.TBODY=e.createElement("tbody"),this.TABLE.appendChild(this.TBODY)),this.THEAD=this.TABLE.querySelector("thead"),this.THEAD||(this.THEAD=e.createElement("thead"),this.TABLE.insertBefore(this.THEAD,this.TBODY)),this.COLGROUP=this.TABLE.querySelector("colgroup"),this.COLGROUP||(this.COLGROUP=e.createElement("colgroup"),this.TABLE.insertBefore(this.COLGROUP,this.THEAD)),this.wot.getSetting("columnHeaders").length&&!this.THEAD.childNodes.length&&this.THEAD.appendChild(e.createElement("TR"))}},{key:"createSpreader",value:function(e){var t,n=e.parentNode;return n&&n.nodeType===Node.ELEMENT_NODE&&(0,l.hasClass)(n,"wtHolder")||((t=this.wot.rootDocument.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&&n.nodeType===Node.ELEMENT_NODE&&(0,l.hasClass)(n,"wtHolder")||((t=this.wot.rootDocument.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&&n.nodeType===Node.ELEMENT_NODE&&(0,l.hasClass)(n,"wtHolder")||((t=this.wot.rootDocument.createElement("div")).style.position="relative",t.className="wtHolder",n&&n.insertBefore(t,e),this.isMaster&&(t.parentNode.className+="ht_master handsontable"),t.appendChild(e)),t}},{key:"draw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.wot,n=t.wtOverlays,r=t.wtViewport,o=t.getSetting("totalRows"),i=t.getSetting("totalColumns"),a=t.getSetting("rowHeaders"),s=a.length,u=t.getSetting("columnHeaders"),c=u.length,f=!1,v=e;if(this.isMaster&&(this.holderOffset=(0,l.offset)(this.holder),v=r.createRenderCalculators(v),s&&!t.getSetting("fixedColumnsLeft"))){var p=n.leftOverlay.getScrollPosition(),g=this.correctHeaderWidth;this.correctHeaderWidth=p>0,g!==this.correctHeaderWidth&&(v=!1)}if(this.isMaster&&(f=n.prepareOverlays()),v)this.isMaster&&r.createVisibleCalculators(),n&&n.refresh(!0);else{this.isMaster?this.tableOffset=(0,l.offset)(this.TABLE):this.tableOffset=this.wot.cloneSource.wtTable.tableOffset;var y=o>0?this.getFirstRenderedRow():0,E=i>0?this.getFirstRenderedColumn():0;this.rowFilter=new h.default(y,o,c),this.columnFilter=new d.default(E,i,s);var w,C=!0;if(this.isMaster){this.alignOverlaysWithTrimmingContainer();var R={};this.wot.getSetting("beforeDraw",!0,R),C=!0!==R.skipRender}if(C)if(this.tableRenderer.setHeaderContentRenderers(a,u),(this.is(m.CLONE_BOTTOM)||this.is(m.CLONE_BOTTOM_LEFT_CORNER))&&this.tableRenderer.setHeaderContentRenderers(a,[]),this.resetOversizedRows(),this.tableRenderer.setViewportSize(this.getRenderedRowsCount(),this.getRenderedColumnsCount()).setFilters(this.rowFilter,this.columnFilter).render(),this.isMaster&&(w=this.wot.wtViewport.getWorkspaceWidth(),this.wot.wtViewport.containerWidth=null,this.markOversizedColumnHeaders()),this.adjustColumnHeaderHeights(),(this.isMaster||this.is(m.CLONE_BOTTOM))&&this.markOversizedRows(),this.isMaster){this.wot.wtViewport.createVisibleCalculators(),this.wot.wtOverlays.refresh(!1),this.wot.wtOverlays.applyToDOM();var T=(0,l.outerWidth)(this.hider),b=(0,l.outerWidth)(this.TABLE);0!==T&&b!==T&&(this.columnUtils.calculateWidths(),this.tableRenderer.renderer.colGroup.render()),w!==this.wot.wtViewport.getWorkspaceWidth()&&(this.wot.wtViewport.containerWidth=null,this.columnUtils.calculateWidths(),this.tableRenderer.renderer.colGroup.render()),this.wot.getSetting("onDraw",!0)}else this.is(m.CLONE_BOTTOM)&&this.wot.cloneSource.wtOverlays.adjustElementsSize()}if(this.isMaster){var S=n.topOverlay.resetFixedPosition();n.bottomOverlay.clone&&(S=n.bottomOverlay.resetFixedPosition()||S),S=n.leftOverlay.resetFixedPosition()||S,n.topLeftCornerOverlay&&n.topLeftCornerOverlay.resetFixedPosition(),n.bottomLeftCornerOverlay&&n.bottomLeftCornerOverlay.clone&&n.bottomLeftCornerOverlay.resetFixedPosition(),S&&(n.refreshAll(),n.adjustElementsSize())}return this.refreshSelections(v),f&&n.syncScrollWithMaster(),t.drawn=!0,this}},{key:"markIfOversizedColumnHeader",value:function(e){for(var t,n,r,o=this.wot.wtTable.columnFilter.renderedToSource(e),i=this.wot.getSetting("columnHeaders").length,a=this.wot.wtSettings.settings.defaultRowHeight,s=this.wot.getSetting("columnHeaderHeight")||[];i;)i-=1,t=this.wot.wtTable.getColumnHeaderHeight(i),(n=this.wot.wtTable.getColumnHeader(o,i))&&(r=(0,l.innerHeight)(n),(!t&&a<r||t<r)&&(this.wot.wtViewport.oversizedColumnHeaders[i]=r),Array.isArray(s)?null!==s[i]&&void 0!==s[i]&&(this.wot.wtViewport.oversizedColumnHeaders[i]=s[i]):isNaN(s)||(this.wot.wtViewport.oversizedColumnHeaders[i]=s),this.wot.wtViewport.oversizedColumnHeaders[i]<(s[i]||s)&&(this.wot.wtViewport.oversizedColumnHeaders[i]=s[i]||s))}},{key:"adjustColumnHeaderHeights",value:function(){for(var e=this.wot,t=e.wtTable.THEAD.childNodes,n=e.wtViewport.oversizedColumnHeaders,r=0,o=e.getSetting("columnHeaders").length;r<o;r++)if(n[r]){if(!t[r]||0===t[r].childNodes.length)return;t[r].childNodes[0].style.height="".concat(n[r],"px")}}},{key:"resetOversizedRows",value:function(){var e=this.wot;if((this.isMaster||this.is(m.CLONE_BOTTOM))&&!e.getSetting("externalRowCalculator"))for(var t=this.getRenderedRowsCount(),n=0;n<t;n++){var r=this.rowFilter.renderedToSource(n);e.wtViewport.oversizedRows&&e.wtViewport.oversizedRows[r]&&(e.wtViewport.oversizedRows[r]=void 0)}}},{key:"removeClassFromCells",value:function(e){for(var t=this.TABLE.querySelectorAll(".".concat(e)),n=0,r=t.length;n<r;n++)(0,l.removeClass)(t[n],e)}},{key:"refreshSelections",value:function(e){var t=this.wot;if(t.selections){var n=Array.from(t.selections),r=n.length;if(e){for(var o=[],i=0;i<r;i++){for(var a=n[i].settings,s=a.highlightHeaderClassName,l=a.highlightRowClassName,u=a.highlightColumnClassName,c=n[i].classNames,d=c.length,h=0;h<d;h++)o.includes(c[h])||o.push(c[h]);s&&!o.includes(s)&&o.push(s),l&&!o.includes(l)&&o.push(l),u&&!o.includes(u)&&o.push(u)}var f=t.getSetting("onBeforeRemoveCellClassNames");if(Array.isArray(f))for(var v=0;v<f.length;v++)o.push(f[v]);for(var p=o.length,g=0;g<p;g++)this.removeClassFromCells(o[g])}for(var m=0;m<r;m++)n[m].draw(t,e)}}},{key:"getCell",value:function(e){var t,n=e.row,r=e.col,o=this.wot.getSetting("onModifyGetCellCoords",n,r);if(o&&Array.isArray(o)){var a=(0,i.default)(o,2);n=a[0],r=a[1]}if(this.isRowBeforeRenderedRows(n))return-1;if(this.isRowAfterRenderedRows(n))return-2;if(this.isColumnBeforeRenderedColumns(r))return-3;if(this.isColumnAfterRenderedColumns(r))return-4;if(!(t=n<0?this.THEAD.childNodes[this.rowFilter.sourceRowToVisibleColHeadedRow(n)]:this.TBODY.childNodes[this.rowFilter.sourceToRendered(n)])&&n>=0)throw new Error("TR was expected to be rendered but is not");var s=t.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(r)];if(!s&&r>=0)throw new Error("TD or TH was expected to be rendered but is not");return s}},{key:"getColumnHeader",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.THEAD.childNodes[t];return null==n?void 0:n.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e)]}},{key:"getColumnHeaders",value:function(e){var t=[],n=this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e);return this.THEAD.childNodes.forEach((function(e){var r=e.childNodes[n];r&&t.push(r)})),t}},{key:"getRowHeader",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0!==this.columnFilter.sourceColumnToVisibleRowHeadedColumn(0)){var n=this.wot.getSetting("rowHeaders").length;if(!(t>=n)){var r=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)];return null==r?void 0:r.childNodes[t]}}}},{key:"getRowHeaders",value:function(e){if(0===this.columnFilter.sourceColumnToVisibleRowHeadedColumn(0))return[];for(var t=[],n=this.wot.getSetting("rowHeaders").length,r=0;r<n;r++){var o=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)],i=null==o?void 0:o.childNodes[r];i&&t.push(i)}return t}},{key:"getCoords",value:function(e){var t=e;if("TD"!==t.nodeName&&"TH"!==t.nodeName&&(t=(0,l.closest)(t,["TD","TH"])),null===t)return null;var n=t.parentNode,r=n.parentNode,o=(0,l.index)(n),i=t.cellIndex;if((0,l.overlayContainsElement)(m.CLONE_TOP_LEFT_CORNER,t,this.wtRootElement)||(0,l.overlayContainsElement)(m.CLONE_TOP,t,this.wtRootElement))"THEAD"===r.nodeName&&(o-=r.childNodes.length);else if((0,l.overlayContainsElement)(m.CLONE_BOTTOM_LEFT_CORNER,t,this.wtRootElement)||(0,l.overlayContainsElement)(m.CLONE_BOTTOM,t,this.wtRootElement)){o=this.wot.getSetting("totalRows")-r.childNodes.length+o}else o=r===this.THEAD?this.rowFilter.visibleColHeadedRowToSourceRow(o):this.rowFilter.renderedToSource(o);return i=(0,l.overlayContainsElement)(m.CLONE_TOP_LEFT_CORNER,t,this.wtRootElement)||(0,l.overlayContainsElement)(m.CLONE_LEFT,t,this.wtRootElement)||(0,l.overlayContainsElement)(m.CLONE_BOTTOM_LEFT_CORNER,t,this.wtRootElement)?this.columnFilter.offsettedTH(i):this.columnFilter.visibleRowHeadedColumnToSourceColumn(i),new c.default(o,i)}},{key:"markOversizedRows",value:function(){if(!this.wot.getSetting("externalRowCalculator")){var e,t,n,r,o,i=this.TBODY.childNodes.length;if(i*this.wot.wtSettings.settings.defaultRowHeight!==(0,l.innerHeight)(this.TBODY)-1||this.wot.getSetting("fixedRowsBottom"))for(;i;)i-=1,n=this.rowFilter.renderedToSource(i),e=this.getRowHeight(n),t=(o=(r=this.getTrForRow(n)).querySelector("th"))?(0,l.innerHeight)(o):(0,l.innerHeight)(r)-1,(!e&&this.wot.wtSettings.settings.defaultRowHeight<t||e<t)&&(t+=1,this.wot.wtViewport.oversizedRows[n]=t)}}},{key:"getTrForRow",value:function(e){return this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)]}},{key:"isColumnHeaderRendered",value:function(e){if(e>=0)return!1;var t=this.wot.getSetting("rowHeaders").length;return Math.abs(e)<=t}},{key:"isRowHeaderRendered",value:function(e){if(e>=0)return!1;var t=this.wot.getSetting("columnHeaders").length;return Math.abs(e)<=t}},{key:"isRowBeforeRenderedRows",value:function(e){var t=this.getFirstRenderedRow();return e<0&&t<=0?!this.isRowHeaderRendered(e):e<t}},{key:"isRowAfterRenderedRows",value:function(e){return e>this.getLastRenderedRow()}},{key:"isColumnBeforeRenderedColumns",value:function(e){var t=this.getFirstRenderedColumn();return e<0&&t<=0?!this.isColumnHeaderRendered(e):e<t}},{key:"isColumnAfterRenderedColumns",value:function(e){return this.columnFilter&&e>this.getLastRenderedColumn()}},{key:"isColumnAfterViewport",value:function(e){return this.columnFilter&&e>this.getLastVisibleColumn()}},{key:"isRowAfterViewport",value:function(e){return this.rowFilter&&e>this.getLastVisibleRow()}},{key:"isColumnBeforeViewport",value:function(e){return this.columnFilter&&this.columnFilter.sourceToRendered(e)<0&&e>=0}},{key:"isLastRowFullyVisible",value:function(){return this.getLastVisibleRow()===this.getLastRenderedRow()}},{key:"isLastColumnFullyVisible",value:function(){return this.getLastVisibleColumn()===this.getLastRenderedColumn()}},{key:"allRowsInViewport",value:function(){return this.wot.getSetting("totalRows")===this.getVisibleRowsCount()}},{key:"allColumnsInViewport",value:function(){return this.wot.getSetting("totalColumns")===this.getVisibleColumnsCount()}},{key:"getRowHeight",value:function(e){return this.rowUtils.getHeight(e)}},{key:"getColumnHeaderHeight",value:function(e){return this.columnUtils.getHeaderHeight(e)}},{key:"getColumnWidth",value:function(e){return this.columnUtils.getWidth(e)}},{key:"getStretchedColumnWidth",value:function(e){return this.columnUtils.getStretchedColumnWidth(e)}},{key:"hasDefinedSize",value:function(){return this.hasTableHeight&&this.hasTableWidth}},{key:"isVisible",value:function(){return(0,l.isVisible)(this.TABLE)}},{key:"_modifyRowHeaderWidth",value:function(e){var t=(0,u.isFunction)(e)?e():null;return Array.isArray(t)?(t=(0,o.default)(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=y},function(e,t,n){var r=n(395),o=n(517);function i(t,n,a){return o()?(e.exports=i=Reflect.construct,e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=i=function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&r(i,n.prototype),i},e.exports.default=e.exports,e.exports.__esModule=!0),i.apply(null,arguments)}e.exports=i,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.Overlay=void 0,n(17);var o=r(n(1)),i=r(n(2)),a=n(10),s=n(5),l=n(3),u=n(69),c=r(n(31)),d=n(87),h=function(){function e(t){(0,o.default)(this,e),(0,s.defineGetter)(this,"wot",t,{writable:!1});var n=this.wot.wtTable,r=n.TABLE,i=n.hider,l=n.spreader,u=n.holder,c=n.wtRootElement;this.instance=this.wot,this.type="",this.mainTableScrollableElement=null,this.TABLE=r,this.hider=i,this.spreader=l,this.holder=u,this.wtRootElement=c,this.trimmingContainer=(0,a.getTrimmingContainer)(this.hider.parentNode.parentNode),this.updateStateOfRendering()}return(0,i.default)(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,a.getTrimmingContainer)(this.hider.parentNode.parentNode)}},{key:"updateMainScrollableElement",value:function(){var e=this.wot,t=e.wtTable;"hidden"===e.rootWindow.getComputedStyle(t.wtRootElement.parentNode).getPropertyValue("overflow")?this.mainTableScrollableElement=this.wot.wtTable.holder:this.mainTableScrollableElement=(0,a.getScrollableElement)(t.TABLE)}},{key:"getRelativeCellPosition",value:function(e,t,n){if(!1!==this.clone.wtTable.holder.contains(e)){var r=this.mainTableScrollableElement===this.wot.rootWindow,o=n<this.wot.getSetting("fixedColumnsLeft"),i=t<this.wot.getSetting("fixedRowsTop"),a=t>=this.wot.getSetting("totalRows")-this.wot.getSetting("fixedRowsBottom"),s={left:this.clone.wtTable.spreader.offsetLeft,top:this.clone.wtTable.spreader.offsetTop},l={left:e.offsetLeft,top:e.offsetTop};return r?this.getRelativeCellPositionWithinWindow(i,o,l,s):this.getRelativeCellPositionWithinHolder(i,a,o,l,s)}(0,u.warn)("The provided element is not a child of the ".concat(this.type," overlay"))}},{key:"getRelativeCellPositionWithinWindow",value:function(e,t,n,r){var o=this.wot.wtTable.wtRootElement.getBoundingClientRect(),i=0,a=0;(i=t?o.left<=0?-1*o.left:0:r.left,e)?a=this.clone.wtTable.TABLE.getBoundingClientRect().top-o.top:a=r.top;return{left:n.left+i,top:n.top+a}}},{key:"getRelativeCellPositionWithinHolder",value:function(e,t,n,r,o){var i=this.clone.cloneSource.wtOverlays.leftOverlay.getScrollPosition(),a=this.clone.cloneSource.wtOverlays.topOverlay.getScrollPosition(),s=0,l=0;if(n||(s=i-o.left),t){var u=this.wot.wtTable.wtRootElement.getBoundingClientRect();l=-1*this.clone.wtTable.TABLE.getBoundingClientRect().top+u.top}else e||(l=a-o.top);return{left:r.left-s,top:r.top-l}}},{key:"makeClone",value:function(e){if(-1===d.CLONE_TYPES.indexOf(e))throw new Error('Clone type "'.concat(e,'" is not supported.'));var t=this.wot,n=t.wtTable,r=t.rootDocument,o=t.rootWindow,i=r.createElement("DIV"),s=r.createElement("TABLE"),l=n.wtRootElement.parentNode;i.className="ht_clone_".concat(e," handsontable"),i.style.position="absolute",i.style.top=0,i.style.left=0,i.style.overflow="visible",s.className=n.TABLE.className,i.appendChild(s),this.type=e,l.appendChild(i);var u=this.wot.getSetting("preventOverflow");return!0===u||"horizontal"===u&&this.type===d.CLONE_TOP||"vertical"===u&&this.type===d.CLONE_LEFT?this.mainTableScrollableElement=o:"hidden"===o.getComputedStyle(l).getPropertyValue("overflow")?this.mainTableScrollableElement=n.holder:this.mainTableScrollableElement=(0,a.getScrollableElement)(n.TABLE),new this.wot.constructor({cloneSource:this.wot,cloneOverlay:this,table:s})}},{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,r=t.style,o=e.parentNode.style;(0,l.arrayEach)([n,r,o],(function(e){e.width="",e.height=""}))}}},{key:"destroy",value:function(){new c.default(this.clone).destroy()}}]),e}();t.Overlay=h},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(18)),i=r(n(1)),a=r(n(2)),s=r(n(16)),l=r(n(7)),u=r(n(8)),c=r(n(4)),d=n(38);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var f=function(e){(0,l.default)(n,e);var t=h(n);function n(e,r){var o;return(0,i.default)(this,n),(o=t.call(this,e,null)).visualCellRange=r||null,o.commit(),o}return(0,a.default)(n,[{key:"add",value:function(e){return null===this.visualCellRange?this.visualCellRange=new d.CellRange(e):this.visualCellRange.expand(e),this}},{key:"clear",value:function(){return this.visualCellRange=null,(0,s.default)((0,c.default)(n.prototype),"clear",this).call(this)}},{key:"findVisibleCoordsInRange",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n,o=this.findVisibleCoordsInRowsRange(e.row,t.row,n);if(null===o)return null;var i=this.findVisibleCoordsInColumnsRange(e.col,t.col,r);return null===i?null:new d.CellCoords(o,i)}},{key:"findVisibleCoordsInRowsRange",value:function(e,t,n){var r=this.settings.visualToRenderableCoords({row:e,col:-1}).row;return t===e&&null===r?null:null===r?this.findVisibleCoordsInRowsRange(e+n,t,n):e}},{key:"findVisibleCoordsInColumnsRange",value:function(e,t,n){var r=this.settings.visualToRenderableCoords({row:-1,col:e}).col;return t===e&&null===r?null:null===r?this.findVisibleCoordsInColumnsRange(e+n,t,n):e}},{key:"findVisibleHeaderRange",value:function(e,t,n,r){var o=this.findVisibleCoordsInRowsRange(e.row,t.row,n),i=this.findVisibleCoordsInRowsRange(t.row,e.row,-n),a=this.findVisibleCoordsInColumnsRange(e.col,t.col,r),s=this.findVisibleCoordsInColumnsRange(t.col,e.col,-r);return null===o&&null===i&&null===a&&null===s?null:[new d.CellCoords(o,a),new d.CellCoords(i,s)]}},{key:"commit",value:function(){if(null===this.visualCellRange)return this;var e=this.visualCellRange,t=e.from,n=e.to,r=this.getRowSearchDirection(this.visualCellRange),i=this.getColumnSearchDirection(this.visualCellRange),a=this.findVisibleCoordsInRange(t,n,r,i),s=this.findVisibleCoordsInRange(n,t,-r,-i);if(null===a||null===s){var l=null;if("header"===this.settings.type){var u=this.findVisibleHeaderRange(t,n,r,i),c=(0,o.default)(u,2),d=c[0],h=c[1];l=this.createRenderableCellRange(d,h)}this.cellRange=l}else this.cellRange=this.createRenderableCellRange(a,s);return this}},{key:"adjustCoordinates",value:function(e){var t=this.getRowSearchDirection(e),n=this.getColumnSearchDirection(e),r=e.from.clone().normalize(),o=e.to.clone().normalize(),i=this.findVisibleCoordsInRange(r,o,t,n);if(null!==i){if(null===this.cellRange){var a=this.settings.visualToRenderableCoords(i);this.cellRange=new d.CellRange(a)}return e.setHighlight(i),this}return e.setHighlight(e.from),this}},{key:"getCorners",value:function(){var e=this.cellRange,t=e.from,n=e.to,r=null===t.row||null===n.row,o=null===t.col||null===n.col,i=new d.CellCoords(r?null:Math.min(t.row,n.row),o?null:Math.min(t.col,n.col)),a=new d.CellCoords(r?null:Math.max(t.row,n.row),o?null:Math.max(t.col,n.col));return[i.row,i.col,a.row,a.col]}},{key:"getVisualCorners",value:function(){var e=this.settings.renderableToVisualCoords(this.cellRange.getTopLeftCorner()),t=this.settings.renderableToVisualCoords(this.cellRange.getBottomRightCorner());return[e.row,e.col,t.row,t.col]}},{key:"createRenderableCellRange",value:function(e,t){var n=this.settings.visualToRenderableCoords(e),r=this.settings.visualToRenderableCoords(t);return new d.CellRange(n,n,r)}},{key:"getRowSearchDirection",value:function(e){return e.from.row<e.to.row?1:-1}},{key:"getColumnSearchDirection",value:function(e){return e.from.col<e.to.col?1:-1}}]),n}(d.Selection);t.default=f},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,r.hasOwnProperty)(t,"border")&&(e.border=t.border);(0,r.hasOwnProperty)(t,"top")&&(t.top?((0,r.isObject)(t.top)||(t.top={width:1,color:"#000"}),e.top=t.top):(t.top={hide:!0},e.top=t.top));(0,r.hasOwnProperty)(t,"right")&&(t.right?((0,r.isObject)(t.right)||(t.right={width:1,color:"#000"}),e.right=t.right):(t.right={hide:!0},e.right=t.right));(0,r.hasOwnProperty)(t,"bottom")&&(t.bottom?((0,r.isObject)(t.bottom)||(t.bottom={width:1,color:"#000"}),e.bottom=t.bottom):(t.bottom={hide:!0},e.bottom=t.bottom));(0,r.hasOwnProperty)(t,"left")&&(t.left?((0,r.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,o.arrayEach)(e.getSelectedRange(),(function(o){o.forAll((function(o,i){if(!(o<0||i<0)){var a=e.getCellMeta(o,i).borders;if(a){if(!t)return n=!0,!1;if(!(0,r.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)},n(19);var r=n(5),o=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){"use strict";function r(e){var t;return"number"==typeof e?t=e:"string"==typeof e&&(t=e.indexOf(".")>-1?parseFloat(e):parseInt(e,10)),t}function o(e){return-1*r(e)}n.r(t),n.d(t,"toNumber",(function(){return r})),n.d(t,"invertNumber",(function(){return o}))},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(32),o=n(94),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},function(e,t,n){var r=n(46);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports={}},function(e,t,n){var r=n(235),o=n(176).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(94);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r=n(118),o=n(66),i=n(116);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},function(e,t,n){var r=n(32),o=n(42),i=n(153),a=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){var r=n(235),o=n(176);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(107);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports={}},function(e,t,n){var r=n(42),o=n(109),i=n(66),a=r("unscopables"),s=Array.prototype;null==s[a]&&i.f(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},function(e,t,n){var r=n(57),o=n(40),i=n(152),a=n(181),s=n(66).f,l=n(120).f,u=n(194),c=n(183),d=n(184),h=n(83),f=n(32),v=n(95).enforce,p=n(255),g=n(42)("match"),m=o.RegExp,y=m.prototype,E=/a/g,w=/a/g,C=new m(E)!==E,R=d.UNSUPPORTED_Y;if(r&&i("RegExp",!C||R||f((function(){return w[g]=!1,m(E)!=E||m(w)==w||"/a/i"!=m(E,"i")})))){for(var T=function(e,t){var n,r=this instanceof T,o=u(e),i=void 0===t;if(!r&&o&&e.constructor===T&&i)return e;C?o&&!i&&(e=e.source):e instanceof T&&(i&&(t=c.call(e)),e=e.source),R&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var s=a(C?new m(e,t):m(e,t),r?this:y,T);R&&n&&(v(s).sticky=!0);return s},b=function(e){e in T||s(T,e,{configurable:!0,get:function(){return m[e]},set:function(t){m[e]=t}})},S=l(m),O=0;S.length>O;)b(S[O++]);y.constructor=T,T.prototype=y,h(o,"RegExp",T)}p("RegExp")},function(e,t,n){"use strict";var r=n(21),o=n(241).trim;r({target:"String",proto:!0,forced:n(495)("trim")},{trim:function(){return o(this)}})},function(e,t,n){var r=n(119),o=n(46),i=n(65),a=n(66).f,s=n(150),l=n(256),u=s("meta"),c=0,d=Object.isExtensible||function(){return!0},h=function(e){a(e,u,{value:{objectID:"O"+ ++c,weakData:{}}})},f=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,u)){if(!d(e))return"F";if(!t)return"E";h(e)}return e[u].objectID},getWeakData:function(e,t){if(!i(e,u)){if(!d(e))return!0;if(!t)return!1;h(e)}return e[u].weakData},onFreeze:function(e){return l&&f.REQUIRED&&d(e)&&!i(e,u)&&h(e),e}};r[u]=!0},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=r(n(2)),a=function(){function e(t,n){(0,o.default)(this,e),this.row=null,this.col=null,void 0!==t&&void 0!==n&&(this.row=t,this.col=n)}return(0,i.default)(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:"normalize",value:function(){return this.row=null===this.row?this.row:Math.max(this.row,0),this.col=null===this.col?this.col:Math.max(this.col,0),this}},{key:"clone",value:function(){return new e(this.row,this.col)}},{key:"toObject",value:function(){return{row:this.row,col:this.col}}}]),e}();t.default=a},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(508)),s=function(){function e(t,n){(0,o.default)(this,e),this.nodesPool="string"==typeof t?new a.default(t):null,this.nodeType=t,this.rootNode=n,this.table=null,this.renderedNodes=0}return(0,i.default)(e,[{key:"setTable",value:function(e){this.nodesPool&&this.nodesPool.setRootDocument(e.rootDocument),this.table=e}},{key:"adjust",value:function(){}},{key:"render",value:function(){}}]),e}();t.default=s},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.RegisteredEditor=f,t.getEditorInstance=t._getEditorInstance=function(e,t){var n;if("function"==typeof e)a.get(e)||v(null,e),n=a.get(e);else{if("string"!=typeof e)throw Error('Only strings and functions can be passed as "editor" parameter');n=u(e)}if(!n)throw Error('No editor registered under name "'.concat(e,'"'));return n.getInstance(t)},t.registerEditor=v,t.getEditor=function(e){if(!c(e))throw Error('No registered editor found under "'.concat(e,'" name'));return u(e).getConstructor()},t.getRegisteredEditors=t.getRegisteredEditorNames=t.hasEditor=void 0,n(12),n(9),n(11),n(22),n(13);var o=r(n(48)),i=r(n(98)),a=new WeakMap,s=(0,i.default)("editors"),l=s.register,u=s.getItem,c=s.hasItem,d=s.getNames,h=s.getValues;function f(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]},o.default.getSingleton().add("afterDestroy",(function(){t[this.guid]=null}))}function v(e,t){e&&"string"!=typeof e&&(e=(t=e).EDITOR_TYPE);var n=new f(t);"string"==typeof e&&l(e,n),a.set(t,n)}t.getRegisteredEditors=h,t.getRegisteredEditorNames=d,t.hasEditor=c},function(e,t,n){"use strict";t.__esModule=!0,t.BaseEditor=t.EDITOR_TYPE=t.EDITOR_STATE=void 0;var r=n(531);t.EDITOR_STATE=r.EDITOR_STATE,t.EDITOR_TYPE=r.EDITOR_TYPE,t.BaseEditor=r.BaseEditor},function(e,t,n){"use strict";var r=n(155),o=n(47),i=n(58),a=n(67),s=n(185),l=n(156);r("match",1,(function(e,t,n){return[function(t){var n=a(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var a=o(e),u=String(this);if(!a.global)return l(a,u);var c=a.unicode;a.lastIndex=0;for(var d,h=[],f=0;null!==(d=l(a,u));){var v=String(d[0]);h[f]=v,""===v&&(a.lastIndex=s(u,i(a.lastIndex),c)),f++}return 0===f?null:h}]}))},function(e,t,n){"use strict";t.__esModule=!0,t.spreadsheetColumnLabel=a,t.spreadsheetColumnIndex=function(e){var t=0;if(e)for(var n=0,r=e.length-1;n<e.length;n+=1,r-=1)t+=Math.pow(i,r)*("ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf(e[n])+1);return t-=1},t.createSpreadsheetData=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,o=[];for(e=0;e<n;e++){var i=[];for(t=0;t<r;t++)i.push(a(t)+(e+1));o.push(i)}return o},t.createSpreadsheetObjectData=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,o=[];for(e=0;e<n;e++){var i={};for(t=0;t<r;t++)i["prop".concat(t)]=a(t)+(e+1);o.push(i)}return o},t.createEmptySpreadsheetData=function(e,t){for(var n,r=[],o=0;o<e;o++){n=[];for(var i=0;i<t;i++)n.push("");r.push(n)}return r},t.translateRowsToColumns=function(e){var t,n,r,o,i=[],a=0;for(t=0,n=e.length;t<n;t++)for(r=0,o=e[t].length;r<o;r++)r===a&&(i.push([]),a+=1),i[r].push(e[t][r]);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,o.hasOwnProperty)(i,e)&&void 0!==i[e])return i[e];if((0,o.hasOwnProperty)(i,"type")&&i.type){if("string"!=typeof i.type)throw new Error('Cell "type" must be a string');var a=(0,r.getCellType)(i.type);if((0,o.hasOwnProperty)(a,e))return a[e];if(n)return}return t(Object.getPrototypeOf(i))}}("number"==typeof t?this.getCellMeta(t,i):t)}},t.dataRowToChangesArray=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e,r=[];Array.isArray(e)&&Array.isArray(e[0])||(n=[e]);return n.forEach((function(e,n){Array.isArray(e)?e.forEach((function(e,o){r.push([n+t,o,e])})):Object.keys(e).forEach((function(o){r.push([n+t,o,e[o]])}))})),r},t.countFirstRowKeys=function(e){var t=0;Array.isArray(e)&&(e[0]&&Array.isArray(e[0])?t=e[0].length:e[0]&&(0,o.isObject)(e[0])&&(t=(0,o.deepObjectSize)(e[0])));return t},n(192),n(23),n(35);var r=n(137),o=n(5),i="ABCDEFGHIJKLMNOPQRSTUVWXYZ".length;function a(e){for(var t,n=e+1,r="";n>0;)t=(n-1)%i,r=String.fromCharCode(65+t)+r,n=parseInt((n-t)/i,10);return r}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.registerCellType=function(e,t){"string"!=typeof e&&(e=(t=e).CELL_TYPE);var n=t,r=n.editor,o=n.renderer,l=n.validator;r&&(0,i.registerEditor)(e,r);o&&(0,a.registerRenderer)(e,o);l&&(0,s.registerValidator)(e,l);u(e,t)},t.getCellType=function(e){if(!d(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\n "Handsontable.cellTypes.registerCellType" method'));return c(e)},t.getRegisteredCellTypes=t.getRegisteredCellTypeNames=t.hasCellType=void 0;var o=r(n(98)),i=n(133),a=n(161),s=n(162),l=(0,o.default)("cellTypes"),u=l.register,c=l.getItem,d=l.hasItem,h=l.getNames,f=l.getValues;t.getRegisteredCellTypes=f,t.getRegisteredCellTypeNames=h,t.hasCellType=d},function(e,t,n){"use strict";var r=n(21),o=n(57),i=n(40),a=n(65),s=n(46),l=n(66).f,u=n(232),c=i.Symbol;if(o&&"function"==typeof c&&(!("description"in c.prototype)||void 0!==c().description)){var d={},h=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof h?new c(e):void 0===e?c():c(e);return""===e&&(d[t]=!0),t};u(h,c);var f=h.prototype=c.prototype;f.constructor=h;var v=f.toString,p="Symbol(test)"==String(c("test")),g=/^Symbol\((.*)\)[^)]+$/;l(f,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=v.call(e);if(a(d,e))return"";var n=p?t.slice(7,-1):t.replace(g,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:h})}},function(e,t,n){"use strict";var r,o=n(21),i=n(93).f,a=n(58),s=n(193),l=n(67),u=n(195),c=n(105),d="".startsWith,h=Math.min,f=u("startsWith");o({target:"String",proto:!0,forced:!!(c||f||(r=i(String.prototype,"startsWith"),!r||r.writable))&&!f},{startsWith:function(e){var t=String(l(this));s(e);var n=a(h(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return d?d.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){"use strict";t.__esModule=!0,t.expandMetaType=function(e,t){var n="string"==typeof e?(0,o.getCellType)(e):e;if(!(0,r.isObject)(n))return;var i=(0,r.isObject)(t),a={};return(0,r.objectEach)(n,(function(e,n){"CELL_TYPE"===n||i&&(!i||(0,r.hasOwnProperty)(t,n))||(a[n]=e)})),a},t.columnFactory=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];function n(){}(0,r.inherit)(n,e);for(var o=0;o<t.length;o++)n.prototype[t[o]]=void 0;return n},t.isUnsignedNumber=function(e){return Number.isInteger(e)&&e>=0},t.assert=function(e,t){if(!e())throw new Error("Assertion failed: ".concat(t))},t.isNullish=function(e){return null==e},n(59),n(60);var r=n(5),o=n(137)},function(e,t,n){"use strict";t.__esModule=!0,t.autocompleteRenderer=t.RENDERER_TYPE=void 0;var r=n(597);t.RENDERER_TYPE=r.RENDERER_TYPE,t.autocompleteRenderer=r.autocompleteRenderer},function(e,t,n){"use strict";t.__esModule=!0,t.sortComparison=function(e,t){if("number"==typeof e&&"number"==typeof t)return e-t;return i(e,t)},t.toVisualValue=a,t.createArrayAssertion=u,t.toEmptyString=function(e){return null==e?"":e},t.unifyColumnValues=function(e){var t=e;t=l?Array.from(new Set(t)):(0,o.arrayUnique)(t);return t=t.sort((function(e,t){return"number"==typeof e&&"number"==typeof t?e-t:e===t?0:e>t?1:-1}))},t.intersectValues=function(e,t,n,r){var i,s=[],l=e===t;l||(i=u(t));return(0,o.arrayEach)(e,(function(e){var t=!1;(l||i(e))&&(t=!0);var o={checked:t,value:e,visualValue:a(e,n)};r&&r(o),s.push(o)})),s},n(12),n(9),n(62),n(11),n(13),n(43),n(17),n(81);var r=n(97),o=n(3),i=(0,r.getComparisonFunction)();function a(e,t){var n=e;return""===n&&(n="(".concat(t,")")),n}var s=new Set([1]).has(1),l=s&&"function"==typeof Array.from;function u(e){var t=e;return s&&(t=new Set(t)),function(e){return s?t.has(e):!!~t.indexOf(e)}}},function(e,t,n){"use strict";t.__esModule=!0,t.getOperationFunc=function(e){if(!r[e])throw Error('Operation with id "'.concat(e,'" does not exist.'));var t=r[e].func;return function(e,n){return t(e,n)}},t.getOperationName=function(e){return r[e].name},t.registerOperation=function(e,t,n){r[e]={name:t,func:n}},t.operations=void 0,n(79);var r={};t.operations=r},function(e,t,n){"use strict";var r=n(14),o=n(0);t.__esModule=!0,t.default=void 0,n(139);var i=o(n(1)),a=o(n(2)),s=n(5),l=o(n(55)),u=o(n(31)),c=n(10),d=n(3),h=r(n(15)),f=["click","input","keydown","keypress","keyup","focus","blur","change"],v=function(){function e(t,n){(0,i.default)(this,e),this.hot=t,this.eventManager=new u.default(this),this.options=(0,s.extend)(e.DEFAULTS,n),this._element=this.hot.rootDocument.createElement(this.options.wrapIt?"div":this.options.tagName),this.buildState=!1}return(0,a.default)(e,[{key:"setValue",value:function(e){this.options.value=e,this.update()}},{key:"getValue",value:function(){return this.options.value}},{key:"element",get:function(){return"building"===this.buildState?this._element:"built"===this.buildState?(this.update(),this._element):(this.buildState="building",this.build(),this.buildState="built",this._element)}},{key:"isBuilt",value:function(){return"built"===this.buildState}},{key:"translateIfPossible",value:function(e){return"string"==typeof e&&e.startsWith(h.FILTERS_NAMESPACE)?this.hot.getTranslatedPhrase(e):e}},{key:"build",value:function(){var e=this,t=function(t,n){e.eventManager.addEventListener(t,n,(function(t){return e.runLocalHooks(n,t,e)}))};if(this.buildState||(this.buildState="building"),this.options.className&&(0,c.addClass)(this._element,this.options.className),this.options.children.length)(0,d.arrayEach)(this.options.children,(function(t){return e._element.appendChild(t.element)}));else if(this.options.wrapIt){var n=this.hot.rootDocument.createElement(this.options.tagName);(0,s.objectEach)(this.options,(function(t,r){void 0!==n[r]&&"className"!==r&&"tagName"!==r&&"children"!==r&&(n[r]=e.translateIfPossible(t))})),this._element.appendChild(n),(0,d.arrayEach)(f,(function(e){return t(n,e)}))}else(0,d.arrayEach)(f,(function(n){return t(e._element,n)}))}},{key:"update",value:function(){}},{key:"reset",value:function(){this.options.value="",this.update()}},{key:"show",value:function(){this.element.style.display=""}},{key:"hide",value:function(){this.element.style.display="none"}},{key:"focus",value:function(){}},{key:"destroy",value:function(){this.eventManager.destroy(),this.eventManager=null,this.hot=null,this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null}}],[{key:"DEFAULTS",get:function(){return(0,s.clone)({className:"",value:"",tagName:"div",children:[],wrapIt:!0})}}]),e}();(0,s.mixin)(v,l.default);var p=v;t.default=p},function(e,t,n){"use strict";n.r(t);var r=n(463);n.d(t,"Parser",(function(){return r.default}));var o=n(227);n.d(t,"SUPPORTED_FORMULAS",(function(){return o.default}));var i=n(50);n.d(t,"ERROR",(function(){return i.ERROR})),n.d(t,"ERROR_DIV_ZERO",(function(){return i.ERROR_DIV_ZERO})),n.d(t,"ERROR_NAME",(function(){return i.ERROR_NAME})),n.d(t,"ERROR_NOT_AVAILABLE",(function(){return i.ERROR_NOT_AVAILABLE})),n.d(t,"ERROR_NULL",(function(){return i.ERROR_NULL})),n.d(t,"ERROR_NUM",(function(){return i.ERROR_NUM})),n.d(t,"ERROR_REF",(function(){return i.ERROR_REF})),n.d(t,"ERROR_VALUE",(function(){return i.ERROR_VALUE})),n.d(t,"error",(function(){return i.default}));var a=n(101);n.d(t,"extractLabel",(function(){return a.extractLabel})),n.d(t,"toLabel",(function(){return a.toLabel})),n.d(t,"columnIndexToLabel",(function(){return a.columnIndexToLabel})),n.d(t,"columnLabelToIndex",(function(){return a.columnLabelToIndex})),n.d(t,"rowIndexToLabel",(function(){return a.rowIndexToLabel})),n.d(t,"rowLabelToIndex",(function(){return a.rowLabelToIndex}))},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(29),n(51),n(17),n(139),n(135),n(61);var o=r(n(18)),i=r(n(1)),a=r(n(2)),s=n(145),l=n(3),u=n(5),c=r(n(55)),d=n(100),h=/^\$?[A-Z]+\$?\d+$/,f=/\$?[A-Z]+\$?\d+/,v=/(?:[^0-9A-Z$: ]|^)\s*(\$?[A-Z]+\$?\d+)\s*(?![0-9A-Z_: ])/g,p=/\$?[A-Z]+\$?\d+\s*:\s*\$?[A-Z]+\$?\d+/g,g=/((?:[^0-9A-Z$: ]|^)\s*(\$?[A-Z]+\$?\d+)\s*(?![0-9A-Z_: ]))|(\$?[A-Z]+\$?\d+\s*:\s*\$?[A-Z]+\$?\d+)/g,m=function(){function e(t){(0,i.default)(this,e),this.expression="",this.cells=[],this.customModifier=null,"string"==typeof t&&this.setExpression(t)}return(0,a.default)(e,[{key:"setExpression",value:function(e){return this.cells.length=0,this.expression=(0,d.toUpperCaseFormula)(e),this._extractCells(),this._extractCellsRange(),this}},{key:"useCustomModifier",value:function(e){this.customModifier=e}},{key:"translate",value:function(e){var t=this,n=e.row,r=e.column,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,l.arrayEach)(this.cells,(function(e){null!=n&&t._translateCell(e,"row",n,o.row),null!=r&&t._translateCell(e,"column",r,o.column)})),this}},{key:"toString",value:function(){var e=this,t=this.expression.replace(g,(function(t,n,r){var o=-1===t.indexOf(":"),i=t,a=t,l=null;o&&(a=h.test(n)?n:r);var u=e._searchCell(a);return u&&(l=u.refError?(0,s.error)(s.ERROR_REF):u.toLabel(),i=o?t.replace(a,l):l),i}));return t.startsWith("=")||(t="=".concat(t)),t}},{key:"_translateCell",value:function(e,t,n,r){var i=e.start,a=e.end,s=i[t].index,l=a[t].index,u=n,c=n,d=!1;if(this.customModifier){var h=this.customModifier(e,t,n,r),f=(0,o.default)(h,3);u=f[0],c=f[1],d=f[2]}else i[t].isAbsolute&&(u=0),a[t].isAbsolute&&(c=0);u&&!d&&(s+u<0&&(d=!0),i[t].index=Math.max(s+u,0)),c&&!d&&(l+c<0&&(d=!0),a[t].index=Math.max(l+c,0)),d&&(e.refError=!0)}},{key:"_extractCells",value:function(){var e=this,t=this.expression.match(v);t&&(0,l.arrayEach)(t,(function(t){var n=t.match(f);if(n){var r=(0,s.extractLabel)(n[0]),i=(0,o.default)(r,2),a=i[0],l=i[1];e.cells.push(e._createCell({row:a,column:l},{row:a,column:l},n[0]))}}))}},{key:"_extractCellsRange",value:function(){var e=this,t=this.expression.match(p);t&&(0,l.arrayEach)(t,(function(t){var n=t.split(":"),r=(0,o.default)(n,2),i=r[0],a=r[1],l=(0,s.extractLabel)(i),u=(0,o.default)(l,2),c=u[0],d=u[1],h=(0,s.extractLabel)(a),f=(0,o.default)(h,2),v={row:c,column:d},p={row:f[0],column:f[1]};e.cells.push(e._createCell(v,p,t))}))}},{key:"_searchCell",value:function(e){var t=(0,l.arrayFilter)(this.cells,(function(t){return t.origLabel===e}));return(0,o.default)(t,1)[0]||null}},{key:"_createCell",value:function(e,t,n){return{start:e,end:t,origLabel:n,type:-1===n.indexOf(":")?"cell":"range",refError:!1,toLabel:function(){var e=(0,s.toLabel)(this.start.row,this.start.column);return"range"===this.type&&(e+=":".concat((0,s.toLabel)(this.end.row,this.end.column))),e}}}}]),e}();(0,u.mixin)(m,c.default);var y=m;t.default=y},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},function(e,t,n){var r=n(149),o=n(150),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t,n){var r=n(105),o=n(174);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.11.1",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t,n){var r=n(96),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},function(e,t,n){var r=n(32),o=/#|\.prototype\./,i=function(e,t){var n=s[a(e)];return n==u||n!=l&&("function"==typeof t?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},s=i.data={},l=i.NATIVE="N",u=i.POLYFILL="P";e.exports=i},function(e,t,n){var r,o,i=n(40),a=n(154),s=i.process,l=s&&s.versions,u=l&&l.v8;u?o=(r=u.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=r[1]),e.exports=o&&+o},function(e,t,n){var r=n(106);e.exports=r("navigator","userAgent")||""},function(e,t,n){"use strict";n(29);var r=n(83),o=n(32),i=n(42),a=n(82),s=i("species"),l=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),u="$0"==="a".replace(/./,"$0"),c=i("replace"),d=!!/./[c]&&""===/./[c]("a","$0"),h=!o((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,c){var f=i(e),v=!o((function(){var t={};return t[f]=function(){return 7},7!=""[e](t)})),p=v&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[s]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return t=!0,null},n[f](""),!t}));if(!v||!p||"replace"===e&&(!l||!u||d)||"split"===e&&!h){var g=/./[f],m=n(f,""[e],(function(e,t,n,r,o){return t.exec===RegExp.prototype.exec?v&&!o?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),y=m[0],E=m[1];r(String.prototype,e,y),r(RegExp.prototype,f,2==t?function(e,t){return E.call(e,this,t)}:function(e){return E.call(e,this)})}c&&a(RegExp.prototype[f],"sham",!0)}},function(e,t,n){var r=n(94),o=n(182);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},function(e,t,n){var r=n(66).f,o=n(65),i=n(42)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){"use strict";var r=n(21),o=n(40),i=n(152),a=n(83),s=n(130),l=n(196),u=n(197),c=n(46),d=n(32),h=n(247),f=n(157),v=n(181);e.exports=function(e,t,n){var p=-1!==e.indexOf("Map"),g=-1!==e.indexOf("Weak"),m=p?"set":"add",y=o[e],E=y&&y.prototype,w=y,C={},R=function(e){var t=E[e];a(E,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(g&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return g&&!c(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(g&&!c(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(i(e,"function"!=typeof y||!(g||E.forEach&&!d((function(){(new y).entries().next()})))))w=n.getConstructor(t,e,p,m),s.REQUIRED=!0;else if(i(e,!0)){var T=new w,b=T[m](g?{}:-0,1)!=T,S=d((function(){T.has(1)})),O=h((function(e){new y(e)})),_=!g&&d((function(){for(var e=new y,t=5;t--;)e[m](t,t);return!e.has(-0)}));O||((w=t((function(t,n){u(t,w,e);var r=v(new y,t,w);return null!=n&&l(n,r[m],{that:r,AS_ENTRIES:p}),r}))).prototype=E,E.constructor=w),(S||_)&&(R("delete"),R("has"),p&&R("get")),(_||b)&&R(m),g&&E.clear&&delete E.clear}return C[e]=w,r({global:!0,forced:w!=y},C),f(w,e),g||n.setStrong(w,e,p),w}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0;var o=r(n(397));t.OrderView=o.default;var i=r(n(507));t.SharedOrderView=i.default},function(e,t,n){"use strict";var r=n(21),o=n(102).find,i=n(127),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("find")},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.registerRenderer=function(e,t){"string"!=typeof e&&(e=(t=e).RENDERER_TYPE);i(e,t)},t.getRenderer=function(e){if("function"==typeof e)return e;if(!s(e))throw Error('No registered renderer found under "'.concat(e,'" name'));return a(e)},t.getRegisteredRenderers=t.getRegisteredRendererNames=t.hasRenderer=void 0;var o=(0,r(n(98)).default)("renderers"),i=o.register,a=o.getItem,s=o.hasItem,l=o.getNames,u=o.getValues;t.getRegisteredRenderers=u,t.getRegisteredRendererNames=l,t.hasRenderer=s},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.registerValidator=function(e,t){"string"!=typeof e&&(e=(t=e).VALIDATOR_TYPE);i(e,t)},t.getValidator=function(e){if("function"==typeof e)return e;if(!s(e))throw Error('No registered validator found under "'.concat(e,'" name'));return a(e)},t.getRegisteredValidators=t.getRegisteredValidatorNames=t.hasValidator=void 0;var o=(0,r(n(98)).default)("validators"),i=o.register,a=o.getItem,s=o.hasItem,l=o.getNames,u=o.getValues;t.getRegisteredValidators=u,t.getRegisteredValidatorNames=l,t.hasValidator=s},function(e,t,n){var r=n(21),o=n(542),i=n(127);r({target:"Array",proto:!0},{fill:o}),i("fill")},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.IndexMap=void 0,n(33);var o=r(n(1)),i=r(n(2)),a=n(24),s=n(5),l=n(53),u=r(n(55)),c=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,o.default)(this,e),this.indexedValues=[],this.initValueOrFn=t}return(0,i.default)(e,[{key:"getValues",value:function(){return this.indexedValues}},{key:"getValueAtIndex",value:function(e){var t=this.indexedValues;if(e<t.length)return t[e]}},{key:"setValues",value:function(e){this.indexedValues=e.slice(),this.runLocalHooks("change")}},{key:"setValueAtIndex",value:function(e,t){return e<this.indexedValues.length&&(this.indexedValues[e]=t,this.runLocalHooks("change"),!0)}},{key:"clear",value:function(){this.setDefaultValues()}},{key:"getLength",value:function(){return this.getValues().length}},{key:"setDefaultValues",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.indexedValues.length=0,(0,l.isFunction)(this.initValueOrFn)?(0,a.rangeEach)(t-1,(function(t){return e.indexedValues.push(e.initValueOrFn(t))})):(0,a.rangeEach)(t-1,(function(){return e.indexedValues.push(e.initValueOrFn)})),this.runLocalHooks("change")}},{key:"init",value:function(e){return this.setDefaultValues(e),this.runLocalHooks("init"),this}},{key:"insert",value:function(){this.runLocalHooks("change")}},{key:"remove",value:function(){this.runLocalHooks("change")}},{key:"destroy",value:function(){this.clearLocalHooks(),this.indexedValues=null,this.initValueOrFn=null}}]),e}();t.IndexMap=c,(0,s.mixin)(c,u.default)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getListWithInsertedItems=function(e,t,n){return[].concat((0,o.default)(e.slice(0,t)),(0,o.default)(n),(0,o.default)(e.slice(t)))},t.getListWithRemovedItems=function(e,t){return(0,i.arrayFilter)(e,(function(e){return!1===t.includes(e)}))},n(19),n(33),n(26),n(34);var o=r(n(25)),i=n(3)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t._getRefCount=function(){return l},t._resetState=u,t.isPressed=function(e){return Array.from(s.values()).some((function(t){return(0,i.isKey)(t,e)}))},t.isPressedCtrlKey=function(){return Array.from(s.values()).some((function(e){return(0,i.isCtrlMetaKey)(e)}))},t.startObserving=function(e){0===l&&(a.addEventListener(e,"keydown",(function(e){s.has(e.keyCode)||s.add(e.keyCode)})),a.addEventListener(e,"keyup",(function(e){s.has(e.keyCode)&&s.delete(e.keyCode)})),a.addEventListener(e,"visibilitychange",(function(){e.hidden&&s.clear()})),a.addEventListener(e.defaultView,"blur",(function(){s.clear()})));l+=1},t.stopObserving=function(){l>0&&(l-=1);0===l&&u()},n(12),n(9),n(62),n(11),n(13),n(43);var o=r(n(31)),i=n(70),a=new o.default,s=new Set,l=0;function u(){a.clearEvents(),s.clear(),l=0}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.detectSelectionType=f,t.normalizeSelectionFactory=v,t.transformSelectionToColumnDistance=function(e){var t=f(e);if(0===t||1===t)return[];var n=v(t),r=new Set;(0,s.arrayEach)(e,(function(e){var t=n(e),i=(0,o.default)(t,4),a=i[1],l=i[3],u=Math.max(a,0),c=l-u+1;(0,s.arrayEach)(Array.from(new Array(c),(function(e,t){return u+t})),(function(e){r.has(e)||r.add(e)}))}));var i=Array.from(r).sort((function(e,t){return e-t}));return(0,s.arrayReduce)(i,(function(e,t,n,r){return 0!==n&&t===r[n-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e}),[])},t.transformSelectionToRowDistance=function(e){var t=f(e);if(0===t||1===t)return[];var n=v(t),r=new Set;(0,s.arrayEach)(e,(function(e){var t=n(e),i=(0,o.default)(t,3),a=i[0],l=i[2],u=Math.max(a,0),c=l-u+1;(0,s.arrayEach)(Array.from(new Array(c),(function(e,t){return u+t})),(function(e){r.has(e)||r.add(e)}))}));var i=Array.from(r).sort((function(e,t){return e-t}));return(0,s.arrayReduce)(i,(function(e,t,n,r){return 0!==n&&t===r[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=r(n(18)),i=r(n(56));n(49),n(138),n(9),n(26),n(34),n(12),n(62),n(11),n(13),n(43),n(81);var a=n(38),s=n(3),l=n(20);t.SELECTION_TYPE_UNRECOGNIZED=0;t.SELECTION_TYPE_EMPTY=1;t.SELECTION_TYPE_ARRAY=2;t.SELECTION_TYPE_OBJECT=3;var u=[3,2];t.SELECTION_TYPES=u;var c=[["number"],["number","string"],["number","undefined"],["number","string","undefined"]],d=Symbol("root"),h=Symbol("child");function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d;if(t!==d&&t!==h)throw new Error("The second argument is used internally only and cannot be overwritten.");var n=Array.isArray(e),r=t===d,o=0;if(n){var s=e[0];if(0===e.length)o=1;else if(r&&s instanceof a.CellRange)o=3;else if(r&&Array.isArray(s))o=f(s,h);else if(e.length>=2&&e.length<=4){var l=!e.some((function(e,t){return!c[t].includes((0,i.default)(e))}));l&&(o=2)}}return o}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.keepDirection,r=void 0!==n&&n,o=t.propToCol;if(!u.includes(e))throw new Error("Unsupported selection ranges schema type was provided.");return function(t){var n=3===e,i=n?t.from.row:t[0],a=n?t.from.col:t[1],s=n?t.to.row:t[2],u=n?t.to.col:t[3];if("function"==typeof o&&("string"==typeof a&&(a=o(a)),"string"==typeof u&&(u=o(u))),(0,l.isUndefined)(s)&&(s=i),(0,l.isUndefined)(u)&&(u=a),!r){var c=i,d=a,h=s,f=u;i=Math.min(c,h),a=Math.min(d,f),s=Math.max(c,h),u=Math.max(d,f)}return[i,a,s,u]}}},function(e,t,n){"use strict";t.__esModule=!0,t.baseRenderer=t.RENDERER_TYPE=void 0;var r=n(582);t.RENDERER_TYPE=r.RENDERER_TYPE,t.baseRenderer=r.baseRenderer},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=r(n(2)),a=n(3),s=n(5),l=r(n(55)),u=n(54),c=function(){function e(t,n){var r=n.id,i=n.stateless,a=void 0===i||i;(0,o.default)(this,e),this.hot=t,this.id=r,this.elements=[],this.hidden=!1,this.stateId="Filters.component.".concat(this.id),this.state=a?null:this.hot.columnIndexMapper.registerMap(this.stateId,new u.LinkedPhysicalIndexToValueMap)}return(0,i.default)(e,[{key:"reset",value:function(){(0,a.arrayEach)(this.elements,(function(e){return e.reset()}))}},{key:"hide",value:function(){this.hidden=!0}},{key:"show",value:function(){this.hidden=!1}},{key:"isHidden",value:function(){return null===this.hot||this.hidden}},{key:"restoreState",value:function(e){this.state&&this.setState(this.state.getValueAtIndex(e))}},{key:"setState",value:function(){throw new Error("The state setting logic is not implemented")}},{key:"saveState",value:function(e){this.state&&this.state.setValueAtIndex(e,this.getState())}},{key:"getState",value:function(){throw new Error("The state gathering logic is not implemented")}},{key:"destroy",value:function(){this.hot.columnIndexMapper.unregisterMap(this.stateId),this.clearLocalHooks(),(0,a.arrayEach)(this.elements,(function(e){return e.destroy()})),this.state=null,this.elements=null,this.hot=null}}]),e}();(0,s.mixin)(c,l.default);var d=c;t.default=d},function(e,t,n){var r=n(86),o=n(80),i=n(171),a=n(225),s=n(224);t.ABS=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.abs(e)},t.ACOS=function(e){if((e=r.parseNumber(e))instanceof Error)return e;var t=Math.acos(e);return isNaN(t)&&(t=o.num),t},t.ACOSH=function(e){if((e=r.parseNumber(e))instanceof Error)return e;var t=Math.log(e+Math.sqrt(e*e-1));return isNaN(t)&&(t=o.num),t},t.ACOT=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.atan(1/e)},t.ACOTH=function(e){if((e=r.parseNumber(e))instanceof Error)return e;var t=.5*Math.log((e+1)/(e-1));return isNaN(t)&&(t=o.num),t},t.AGGREGATE=function(e,n,a,s){if(e=r.parseNumber(e),n=r.parseNumber(e),r.anyIsError(e,n))return o.value;switch(e){case 1:return i.AVERAGE(a);case 2:return i.COUNT(a);case 3:return i.COUNTA(a);case 4:return i.MAX(a);case 5:return i.MIN(a);case 6:return t.PRODUCT(a);case 7:return i.STDEV.S(a);case 8:return i.STDEV.P(a);case 9:return t.SUM(a);case 10:return i.VAR.S(a);case 11:return i.VAR.P(a);case 12:return i.MEDIAN(a);case 13:return i.MODE.SNGL(a);case 14:return i.LARGE(a,s);case 15:return i.SMALL(a,s);case 16:return i.PERCENTILE.INC(a,s);case 17:return i.QUARTILE.INC(a,s);case 18:return i.PERCENTILE.EXC(a,s);case 19:return i.QUARTILE.EXC(a,s)}},t.ARABIC=function(e){if(!/^M*(?:D?C{0,3}|C[MD])(?:L?X{0,3}|X[CL])(?:V?I{0,3}|I[XV])$/.test(e))return o.value;var t=0;return e.replace(/[MDLV]|C[MD]?|X[CL]?|I[XV]?/g,(function(e){t+={M:1e3,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1}[e]})),t},t.ASIN=function(e){if((e=r.parseNumber(e))instanceof Error)return e;var t=Math.asin(e);return isNaN(t)&&(t=o.num),t},t.ASINH=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.log(e+Math.sqrt(e*e+1))},t.ATAN=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.atan(e)},t.ATAN2=function(e,t){return e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?o.value:Math.atan2(e,t)},t.ATANH=function(e){if((e=r.parseNumber(e))instanceof Error)return e;var t=Math.log((1+e)/(1-e))/2;return isNaN(t)&&(t=o.num),t},t.BASE=function(e,t,n){if(n=n||0,e=r.parseNumber(e),t=r.parseNumber(t),n=r.parseNumber(n),r.anyIsError(e,t,n))return o.value;n=void 0===n?0:n;var i=e.toString(t);return new Array(Math.max(n+1-i.length,0)).join("0")+i},t.CEILING=function(e,n,i){if(n=void 0===n?1:Math.abs(n),i=i||0,e=r.parseNumber(e),n=r.parseNumber(n),i=r.parseNumber(i),r.anyIsError(e,n,i))return o.value;if(0===n)return 0;var a=-Math.floor(Math.log(n)/Math.log(10));return e>=0?t.ROUND(Math.ceil(e/n)*n,a):0===i?-t.ROUND(Math.floor(Math.abs(e)/n)*n,a):-t.ROUND(Math.ceil(Math.abs(e)/n)*n,a)},t.CEILING.MATH=t.CEILING,t.CEILING.PRECISE=t.CEILING,t.COMBIN=function(e,n){return e=r.parseNumber(e),n=r.parseNumber(n),r.anyIsError(e,n)?o.value:t.FACT(e)/(t.FACT(n)*t.FACT(e-n))},t.COMBINA=function(e,n){return e=r.parseNumber(e),n=r.parseNumber(n),r.anyIsError(e,n)?o.value:0===e&&0===n?1:t.COMBIN(e+n-1,e-1)},t.COS=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.cos(e)},t.COSH=function(e){return(e=r.parseNumber(e))instanceof Error?e:(Math.exp(e)+Math.exp(-e))/2},t.COT=function(e){return(e=r.parseNumber(e))instanceof Error?e:1/Math.tan(e)},t.COTH=function(e){if((e=r.parseNumber(e))instanceof Error)return e;var t=Math.exp(2*e);return(t+1)/(t-1)},t.CSC=function(e){return(e=r.parseNumber(e))instanceof Error?e:1/Math.sin(e)},t.CSCH=function(e){return(e=r.parseNumber(e))instanceof Error?e:2/(Math.exp(e)-Math.exp(-e))},t.DECIMAL=function(e,t){return arguments.length<1?o.value:parseInt(e,t)},t.DEGREES=function(e){return(e=r.parseNumber(e))instanceof Error?e:180*e/Math.PI},t.EVEN=function(e){return(e=r.parseNumber(e))instanceof Error?e:t.CEILING(e,-2,-1)},t.EXP=function(e){return arguments.length<1?o.na:"number"!=typeof e||arguments.length>1?o.error:e=Math.exp(e)};var l=[];t.FACT=function(e){if((e=r.parseNumber(e))instanceof Error)return e;var n=Math.floor(e);return 0===n||1===n?1:(l[n]>0||(l[n]=t.FACT(n-1)*n),l[n])},t.FACTDOUBLE=function(e){if((e=r.parseNumber(e))instanceof Error)return e;var n=Math.floor(e);return n<=0?1:n*t.FACTDOUBLE(n-2)},t.FLOOR=function(e,n){if(e=r.parseNumber(e),n=r.parseNumber(n),r.anyIsError(e,n))return o.value;if(0===n)return 0;if(!(e>0&&n>0||e<0&&n<0))return o.num;n=Math.abs(n);var i=-Math.floor(Math.log(n)/Math.log(10));return e>=0?t.ROUND(Math.floor(e/n)*n,i):-t.ROUND(Math.ceil(Math.abs(e)/n),i)},t.FLOOR.MATH=function(e,n,i){if(n=void 0===n?1:n,i=void 0===i?0:i,e=r.parseNumber(e),n=r.parseNumber(n),i=r.parseNumber(i),r.anyIsError(e,n,i))return o.value;if(0===n)return 0;n=n?Math.abs(n):1;var a=-Math.floor(Math.log(n)/Math.log(10));return e>=0?t.ROUND(Math.floor(e/n)*n,a):0===i||void 0===i?-t.ROUND(Math.ceil(Math.abs(e)/n)*n,a):-t.ROUND(Math.floor(Math.abs(e)/n)*n,a)},t.FLOOR.PRECISE=t.FLOOR.MATH,t.GCD=function(){var e=r.parseNumberArray(r.flatten(arguments));if(e instanceof Error)return e;for(var t=e.length,n=e[0],o=n<0?-n:n,i=1;i<t;i++){for(var a=e[i],s=a<0?-a:a;o&&s;)o>s?o%=s:s%=o;o+=s}return o},t.INT=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.floor(e)},t.ISO={CEILING:t.CEILING},t.LCM=function(){var e=r.parseNumberArray(r.flatten(arguments));if(e instanceof Error)return e;for(var t,n,o,i,a=1;void 0!==(o=e.pop());)for(;o>1;){if(o%2){for(t=3,n=Math.floor(Math.sqrt(o));t<=n&&o%t;t+=2);i=t<=n?t:o}else i=2;for(o/=i,a*=i,t=e.length;t;e[--t]%i==0&&1==(e[t]/=i)&&e.splice(t,1));}return a},t.LN=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.log(e)},t.LN10=function(){return Math.log(10)},t.LN2=function(){return Math.log(2)},t.LOG10E=function(){return Math.LOG10E},t.LOG2E=function(){return Math.LOG2E},t.LOG=function(e,t){return e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?o.value:(t=void 0===t?10:t,Math.log(e)/Math.log(t))},t.LOG10=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.log(e)/Math.log(10)},t.MOD=function(e,t){if(e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t))return o.value;if(0===t)return o.div0;var n=Math.abs(e%t);return t>0?n:-n},t.MROUND=function(e,t){return e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?o.value:e*t<0?o.num:Math.round(e/t)*t},t.MULTINOMIAL=function(){var e=r.parseNumberArray(r.flatten(arguments));if(e instanceof Error)return e;for(var n=0,o=1,i=0;i<e.length;i++)n+=e[i],o*=t.FACT(e[i]);return t.FACT(n)/o},t.ODD=function(e){if((e=r.parseNumber(e))instanceof Error)return e;var t=Math.ceil(Math.abs(e));return t=1&t?t:t+1,e>0?t:-t},t.PI=function(){return Math.PI},t.E=function(){return Math.E},t.POWER=function(e,t){if(e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t))return o.value;var n=Math.pow(e,t);return isNaN(n)?o.num:n},t.PRODUCT=function(){var e=r.parseNumberArray(r.flatten(arguments));if(e instanceof Error)return e;for(var t=1,n=0;n<e.length;n++)t*=e[n];return t},t.QUOTIENT=function(e,t){return e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?o.value:parseInt(e/t,10)},t.RADIANS=function(e){return(e=r.parseNumber(e))instanceof Error?e:e*Math.PI/180},t.RAND=function(){return Math.random()},t.RANDBETWEEN=function(e,t){return e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?o.value:e+Math.ceil((t-e+1)*Math.random())-1},t.ROMAN=function(e){if((e=r.parseNumber(e))instanceof Error)return e;for(var t=String(e).split(""),n=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"],o="",i=3;i--;)o=(n[+t.pop()+10*i]||"")+o;return new Array(+t.join("")+1).join("M")+o},t.ROUND=function(e,t){return e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?o.value:Math.round(e*Math.pow(10,t))/Math.pow(10,t)},t.ROUNDDOWN=function(e,t){return e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?o.value:(e>0?1:-1)*Math.floor(Math.abs(e)*Math.pow(10,t))/Math.pow(10,t)},t.ROUNDUP=function(e,t){return e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?o.value:(e>0?1:-1)*Math.ceil(Math.abs(e)*Math.pow(10,t))/Math.pow(10,t)},t.SEC=function(e){return(e=r.parseNumber(e))instanceof Error?e:1/Math.cos(e)},t.SECH=function(e){return(e=r.parseNumber(e))instanceof Error?e:2/(Math.exp(e)+Math.exp(-e))},t.SERIESSUM=function(e,t,n,i){if(e=r.parseNumber(e),t=r.parseNumber(t),n=r.parseNumber(n),i=r.parseNumberArray(i),r.anyIsError(e,t,n,i))return o.value;for(var a=i[0]*Math.pow(e,t),s=1;s<i.length;s++)a+=i[s]*Math.pow(e,t+s*n);return a},t.SIGN=function(e){return(e=r.parseNumber(e))instanceof Error?e:e<0?-1:0===e?0:1},t.SIN=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.sin(e)},t.SINH=function(e){return(e=r.parseNumber(e))instanceof Error?e:(Math.exp(e)-Math.exp(-e))/2},t.SQRT=function(e){return(e=r.parseNumber(e))instanceof Error?e:e<0?o.num:Math.sqrt(e)},t.SQRTPI=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.sqrt(e*Math.PI)},t.SQRT1_2=function(){return 1/Math.sqrt(2)},t.SQRT2=function(){return Math.sqrt(2)},t.SUBTOTAL=function(e,n){if((e=r.parseNumber(e))instanceof Error)return e;switch(e){case 1:return i.AVERAGE(n);case 2:return i.COUNT(n);case 3:return i.COUNTA(n);case 4:return i.MAX(n);case 5:return i.MIN(n);case 6:return t.PRODUCT(n);case 7:return i.STDEV.S(n);case 8:return i.STDEV.P(n);case 9:return t.SUM(n);case 10:return i.VAR.S(n);case 11:return i.VAR.P(n);case 101:return i.AVERAGE(n);case 102:return i.COUNT(n);case 103:return i.COUNTA(n);case 104:return i.MAX(n);case 105:return i.MIN(n);case 106:return t.PRODUCT(n);case 107:return i.STDEV.S(n);case 108:return i.STDEV.P(n);case 109:return t.SUM(n);case 110:return i.VAR.S(n);case 111:return i.VAR.P(n)}},t.ADD=function(e,t){return 2!==arguments.length?o.na:(e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?o.value:e+t)},t.MINUS=function(e,t){return 2!==arguments.length?o.na:(e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?o.value:e-t)},t.DIVIDE=function(e,t){return 2!==arguments.length?o.na:(e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?o.value:0===t?o.div0:e/t)},t.MULTIPLY=function(e,t){return 2!==arguments.length?o.na:(e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?o.value:e*t)},t.GTE=function(e,t){return 2!==arguments.length?o.na:(e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?o.error:e>=t)},t.LT=function(e,t){return 2!==arguments.length?o.na:(e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?o.error:e<t)},t.LTE=function(e,t){return 2!==arguments.length?o.na:(e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?o.error:e<=t)},t.EQ=function(e,t){return 2!==arguments.length?o.na:e===t},t.NE=function(e,t){return 2!==arguments.length?o.na:e!==t},t.POW=function(e,n){return 2!==arguments.length?o.na:(e=r.parseNumber(e),n=r.parseNumber(n),r.anyIsError(e,n)?o.error:t.POWER(e,n))},t.SUM=function(){var e=0;return r.arrayEach(r.argsToArray(arguments),(function(n){if("number"==typeof n)e+=n;else if("string"==typeof n){var r=parseFloat(n);!isNaN(r)&&(e+=r)}else Array.isArray(n)&&(e+=t.SUM.apply(null,n))})),e},t.SUMIF=function(e,t){if((e=r.parseNumberArray(r.flatten(e)))instanceof Error)return e;for(var n=0,o=void 0===t||"*"===t,i=o?null:s.parse(t+""),a=0;a<e.length;a++){var l=e[a];if(o)n+=l;else{var u=[s.createToken(l,s.TOKEN_TYPE_LITERAL)].concat(i);n+=s.compute(u)?l:0}}return n},t.SUMIFS=function(){var e=r.argsToArray(arguments),t=r.parseNumberArray(r.flatten(e.shift()));if(t instanceof Error)return t;for(var n=e,o=t.length,i=n.length,a=0,l=0;l<o;l++){for(var u=t[l],c=!1,d=0;d<i;d++){var h=n[d],f=void 0===h||"*"===h,v=!1;if(f)v=!0;else{var p=s.parse(h+""),g=[s.createToken(u,s.TOKEN_TYPE_LITERAL)].concat(p);v=s.compute(g)}if(!v){c=!1;break}c=!0}c&&(a+=u)}return a},t.SUMPRODUCT=function(){if(!arguments||0===arguments.length)return o.value;for(var e,t,n,i,a=arguments.length+1,s=0,l=0;l<arguments[0].length;l++)if(arguments[0][l]instanceof Array)for(var u=0;u<arguments[0][l].length;u++){for(e=1,t=1;t<a;t++){if((i=r.parseNumber(arguments[t-1][l][u]))instanceof Error)return i;e*=i}s+=e}else{for(e=1,t=1;t<a;t++){if((n=r.parseNumber(arguments[t-1][l]))instanceof Error)return n;e*=n}s+=e}return s},t.SUMSQ=function(){var e=r.parseNumberArray(r.flatten(arguments));if(e instanceof Error)return e;for(var t=0,n=e.length,o=0;o<n;o++)t+=a.ISNUMBER(e[o])?e[o]*e[o]:0;return t},t.SUMX2MY2=function(e,t){if(e=r.parseNumberArray(r.flatten(e)),t=r.parseNumberArray(r.flatten(t)),r.anyIsError(e,t))return o.value;for(var n=0,i=0;i<e.length;i++)n+=e[i]*e[i]-t[i]*t[i];return n},t.SUMX2PY2=function(e,t){if(e=r.parseNumberArray(r.flatten(e)),t=r.parseNumberArray(r.flatten(t)),r.anyIsError(e,t))return o.value;var n=0;e=r.parseNumberArray(r.flatten(e)),t=r.parseNumberArray(r.flatten(t));for(var i=0;i<e.length;i++)n+=e[i]*e[i]+t[i]*t[i];return n},t.SUMXMY2=function(e,t){if(e=r.parseNumberArray(r.flatten(e)),t=r.parseNumberArray(r.flatten(t)),r.anyIsError(e,t))return o.value;var n=0;e=r.flatten(e),t=r.flatten(t);for(var i=0;i<e.length;i++)n+=Math.pow(e[i]-t[i],2);return n},t.TAN=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.tan(e)},t.TANH=function(e){if((e=r.parseNumber(e))instanceof Error)return e;var t=Math.exp(2*e);return(t-1)/(t+1)},t.TRUNC=function(e,t){return t=void 0===t?0:t,e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?o.value:(e>0?1:-1)*Math.floor(Math.abs(e)*Math.pow(10,t))/Math.pow(10,t)}},function(e,t,n){var r=n(170),o=n(223),i=n(464),a=n(86),s=n(224),l=n(80),u=n(465);t.AVEDEV=function(){var e=a.parseNumberArray(a.flatten(arguments));return e instanceof Error?e:i.sum(i(e).subtract(i.mean(e)).abs()[0])/e.length},t.AVERAGE=function(){for(var e,t=a.numbers(a.flatten(arguments)),n=t.length,r=0,o=0,i=0;i<n;i++)r+=t[i],o+=1;return e=r/o,isNaN(e)&&(e=l.num),e},t.AVERAGEA=function(){for(var e,t=a.flatten(arguments),n=t.length,r=0,o=0,i=0;i<n;i++){var s=t[i];"number"==typeof s&&(r+=s),!0===s&&r++,null!==s&&o++}return e=r/o,isNaN(e)&&(e=l.num),e},t.AVERAGEIF=function(e,t,n){if(arguments.length<=1)return l.na;if(n=n||e,e=a.flatten(e),(n=a.parseNumberArray(a.flatten(n)))instanceof Error)return n;for(var r=0,o=0,i=void 0===t||"*"===t,u=i?null:s.parse(t+""),c=0;c<e.length;c++){var d=e[c];if(i)o+=n[c],r++;else{var h=[s.createToken(d,s.TOKEN_TYPE_LITERAL)].concat(u);s.compute(h)&&(o+=n[c],r++)}}return o/r},t.AVERAGEIFS=function(){for(var e=a.argsToArray(arguments),t=(e.length-1)/2,n=a.flatten(e[0]),r=0,o=0,i=0;i<n.length;i++){for(var l=!1,u=0;u<t;u++){var c=e[2*u+1][i],d=e[2*u+2],h=void 0===d||"*"===d,f=!1;if(h)f=!0;else{var v=s.parse(d+""),p=[s.createToken(c,s.TOKEN_TYPE_LITERAL)].concat(v);f=s.compute(p)}if(!f){l=!1;break}l=!0}l&&(o+=n[i],r++)}var g=o/r;return isNaN(g)?0:g},t.BETA={},t.BETA.DIST=function(e,t,n,r,o,s){return arguments.length<4?l.value:(o=void 0===o?0:o,s=void 0===s?1:s,e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),o=a.parseNumber(o),s=a.parseNumber(s),a.anyIsError(e,t,n,o,s)?l.value:(e=(e-o)/(s-o),r?i.beta.cdf(e,t,n):i.beta.pdf(e,t,n)))},t.BETA.INV=function(e,t,n,r,o){return r=void 0===r?0:r,o=void 0===o?1:o,e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),r=a.parseNumber(r),o=a.parseNumber(o),a.anyIsError(e,t,n,r,o)?l.value:i.beta.inv(e,t,n)*(o-r)+r},t.BINOM={},t.BINOM.DIST=function(e,t,n,r){return e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),r=a.parseNumber(r),a.anyIsError(e,t,n,r)?l.value:r?i.binomial.cdf(e,t,n):i.binomial.pdf(e,t,n)},t.BINOM.DIST.RANGE=function(e,t,n,o){if(o=void 0===o?n:o,e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),o=a.parseNumber(o),a.anyIsError(e,t,n,o))return l.value;for(var i=0,s=n;s<=o;s++)i+=r.COMBIN(e,s)*Math.pow(t,s)*Math.pow(1-t,e-s);return i},t.BINOM.INV=function(e,t,n){if(e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),a.anyIsError(e,t,n))return l.value;for(var r=0;r<=e;){if(i.binomial.cdf(r,e,t)>=n)return r;r++}},t.CHISQ={},t.CHISQ.DIST=function(e,t,n){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?l.value:n?i.chisquare.cdf(e,t):i.chisquare.pdf(e,t)},t.CHISQ.DIST.RT=function(e,t){return!e|!t?l.na:e<1||t>Math.pow(10,10)?l.num:"number"!=typeof e||"number"!=typeof t?l.value:1-i.chisquare.cdf(e,t)},t.CHISQ.INV=function(e,t){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?l.value:i.chisquare.inv(e,t)},t.CHISQ.INV.RT=function(e,t){return!e|!t?l.na:e<0||e>1||t<1||t>Math.pow(10,10)?l.num:"number"!=typeof e||"number"!=typeof t?l.value:i.chisquare.inv(1-e,t)},t.CHISQ.TEST=function(e,t){if(2!==arguments.length)return l.na;if(!(e instanceof Array&&t instanceof Array))return l.value;if(e.length!==t.length)return l.value;if(e[0]&&t[0]&&e[0].length!==t[0].length)return l.value;var n,r,o,i=e.length;for(r=0;r<i;r++)e[r]instanceof Array||(n=e[r],e[r]=[],e[r].push(n)),t[r]instanceof Array||(n=t[r],t[r]=[],t[r].push(n));var a=e[0].length,s=1===a?i-1:(i-1)*(a-1),u=0,c=Math.PI;for(r=0;r<i;r++)for(o=0;o<a;o++)u+=Math.pow(e[r][o]-t[r][o],2)/t[r][o];function d(e,t){var n=Math.exp(-.5*e);t%2==1&&(n*=Math.sqrt(2*e/c));for(var r=t;r>=2;)n=n*e/r,r-=2;for(var o=n,i=t;o>1e-10*n;)n+=o=o*e/(i+=2);return 1-n}return Math.round(1e6*d(u,s))/1e6},t.COLUMN=function(e,t){return 2!==arguments.length?l.na:t<0?l.num:e instanceof Array&&"number"==typeof t?0!==e.length?i.col(e,t):void 0:l.value},t.COLUMNS=function(e){return 1!==arguments.length?l.na:e instanceof Array?0===e.length?0:i.cols(e):l.value},t.CONFIDENCE={},t.CONFIDENCE.NORM=function(e,t,n){return e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),a.anyIsError(e,t,n)?l.value:i.normalci(1,e,t,n)[1]-1},t.CONFIDENCE.T=function(e,t,n){return e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),a.anyIsError(e,t,n)?l.value:i.tci(1,e,t,n)[1]-1},t.CORREL=function(e,t){return e=a.parseNumberArray(a.flatten(e)),t=a.parseNumberArray(a.flatten(t)),a.anyIsError(e,t)?l.value:i.corrcoeff(e,t)},t.COUNT=function(){return a.numbers(a.flatten(arguments)).length},t.COUNTA=function(){var e=a.flatten(arguments);return e.length-t.COUNTBLANK(e)},t.COUNTIN=function(e,t){var n=0;e=a.flatten(e);for(var r=0;r<e.length;r++)e[r]===t&&n++;return n},t.COUNTBLANK=function(){for(var e,t=a.flatten(arguments),n=0,r=0;r<t.length;r++)null!==(e=t[r])&&""!==e||n++;return n},t.COUNTIF=function(e,t){if(e=a.flatten(e),void 0===t||"*"===t)return e.length;for(var n=0,r=s.parse(t+""),o=0;o<e.length;o++){var i=e[o],l=[s.createToken(i,s.TOKEN_TYPE_LITERAL)].concat(r);s.compute(l)&&n++}return n},t.COUNTIFS=function(){for(var e=a.argsToArray(arguments),t=new Array(a.flatten(e[0]).length),n=0;n<t.length;n++)t[n]=!0;for(n=0;n<e.length;n+=2){var r=a.flatten(e[n]),o=e[n+1],i=void 0===o||"*"===o;if(!i)for(var l=s.parse(o+""),u=0;u<r.length;u++){var c=r[u],d=[s.createToken(c,s.TOKEN_TYPE_LITERAL)].concat(l);t[u]=t[u]&&s.compute(d)}}var h=0;for(n=0;n<t.length;n++)t[n]&&h++;return h},t.COUNTUNIQUE=function(){return u.UNIQUE.apply(null,a.flatten(arguments)).length},t.COVARIANCE={},t.COVARIANCE.P=function(e,t){if(e=a.parseNumberArray(a.flatten(e)),t=a.parseNumberArray(a.flatten(t)),a.anyIsError(e,t))return l.value;for(var n=i.mean(e),r=i.mean(t),o=0,s=e.length,u=0;u<s;u++)o+=(e[u]-n)*(t[u]-r);return o/s},t.COVARIANCE.S=function(e,t){return e=a.parseNumberArray(a.flatten(e)),t=a.parseNumberArray(a.flatten(t)),a.anyIsError(e,t)?l.value:i.covariance(e,t)},t.DEVSQ=function(){var e=a.parseNumberArray(a.flatten(arguments));if(e instanceof Error)return e;for(var t=i.mean(e),n=0,r=0;r<e.length;r++)n+=Math.pow(e[r]-t,2);return n},t.EXPON={},t.EXPON.DIST=function(e,t,n){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?l.value:n?i.exponential.cdf(e,t):i.exponential.pdf(e,t)},t.F={},t.F.DIST=function(e,t,n,r){return e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),a.anyIsError(e,t,n)?l.value:r?i.centralF.cdf(e,t,n):i.centralF.pdf(e,t,n)},t.F.DIST.RT=function(e,t,n){return 3!==arguments.length?l.na:e<0||t<1||n<1?l.num:"number"!=typeof e||"number"!=typeof t||"number"!=typeof n?l.value:1-i.centralF.cdf(e,t,n)},t.F.INV=function(e,t,n){return e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),a.anyIsError(e,t,n)?l.value:e<=0||e>1?l.num:i.centralF.inv(e,t,n)},t.F.INV.RT=function(e,t,n){return 3!==arguments.length?l.na:e<0||e>1||t<1||t>Math.pow(10,10)||n<1||n>Math.pow(10,10)?l.num:"number"!=typeof e||"number"!=typeof t||"number"!=typeof n?l.value:i.centralF.inv(1-e,t,n)},t.F.TEST=function(e,t){if(!e||!t)return l.na;if(!(e instanceof Array&&t instanceof Array))return l.na;if(e.length<2||t.length<2)return l.div0;var n=function(e,t){for(var n=0,r=0;r<e.length;r++)n+=Math.pow(e[r]-t,2);return n},o=r.SUM(e)/e.length,i=r.SUM(t)/t.length;return n(e,o)/(e.length-1)/(n(t,i)/(t.length-1))},t.FISHER=function(e){return(e=a.parseNumber(e))instanceof Error?e:Math.log((1+e)/(1-e))/2},t.FISHERINV=function(e){if((e=a.parseNumber(e))instanceof Error)return e;var t=Math.exp(2*e);return(t-1)/(t+1)},t.FORECAST=function(e,t,n){if(e=a.parseNumber(e),t=a.parseNumberArray(a.flatten(t)),n=a.parseNumberArray(a.flatten(n)),a.anyIsError(e,t,n))return l.value;for(var r=i.mean(n),o=i.mean(t),s=n.length,u=0,c=0,d=0;d<s;d++)u+=(n[d]-r)*(t[d]-o),c+=Math.pow(n[d]-r,2);var h=u/c;return o-h*r+h*e},t.FREQUENCY=function(e,t){if(e=a.parseNumberArray(a.flatten(e)),t=a.parseNumberArray(a.flatten(t)),a.anyIsError(e,t))return l.value;for(var n=e.length,r=t.length,o=[],i=0;i<=r;i++){o[i]=0;for(var s=0;s<n;s++)0===i?e[s]<=t[0]&&(o[0]+=1):i<r?e[s]>t[i-1]&&e[s]<=t[i]&&(o[i]+=1):i===r&&e[s]>t[r-1]&&(o[r]+=1)}return o},t.GAMMA=function(e){return(e=a.parseNumber(e))instanceof Error?e:0===e||parseInt(e,10)===e&&e<0?l.num:i.gammafn(e)},t.GAMMA.DIST=function(e,t,n,r){return 4!==arguments.length?l.na:e<0||t<=0||n<=0||"number"!=typeof e||"number"!=typeof t||"number"!=typeof n?l.value:r?i.gamma.cdf(e,t,n,!0):i.gamma.pdf(e,t,n,!1)},t.GAMMA.INV=function(e,t,n){return 3!==arguments.length?l.na:e<0||e>1||t<=0||n<=0?l.num:"number"!=typeof e||"number"!=typeof t||"number"!=typeof n?l.value:i.gamma.inv(e,t,n)},t.GAMMALN=function(e){return(e=a.parseNumber(e))instanceof Error?e:i.gammaln(e)},t.GAMMALN.PRECISE=function(e){return 1!==arguments.length?l.na:e<=0?l.num:"number"!=typeof e?l.value:i.gammaln(e)},t.GAUSS=function(e){return(e=a.parseNumber(e))instanceof Error?e:i.normal.cdf(e,0,1)-.5},t.GEOMEAN=function(){var e=a.parseNumberArray(a.flatten(arguments));return e instanceof Error?e:i.geomean(e)},t.GROWTH=function(e,t,n,r){if((e=a.parseNumberArray(e))instanceof Error)return e;var o;if(void 0===t)for(t=[],o=1;o<=e.length;o++)t.push(o);if(void 0===n)for(n=[],o=1;o<=e.length;o++)n.push(o);if(t=a.parseNumberArray(t),n=a.parseNumberArray(n),a.anyIsError(t,n))return l.value;void 0===r&&(r=!0);var i,s,u=e.length,c=0,d=0,h=0,f=0;for(o=0;o<u;o++){var v=t[o],p=Math.log(e[o]);c+=v,d+=p,h+=v*p,f+=v*v}c/=u,d/=u,h/=u,f/=u,r?s=d-(i=(h-c*d)/(f-c*c))*c:(i=h/f,s=0);var g=[];for(o=0;o<n.length;o++)g.push(Math.exp(s+i*n[o]));return g},t.HARMEAN=function(){var e=a.parseNumberArray(a.flatten(arguments));if(e instanceof Error)return e;for(var t=e.length,n=0,r=0;r<t;r++)n+=1/e[r];return t/n},t.HYPGEOM={},t.HYPGEOM.DIST=function(e,t,n,o,i){if(e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),o=a.parseNumber(o),a.anyIsError(e,t,n,o))return l.value;function s(e,t,n,o){return r.COMBIN(n,e)*r.COMBIN(o-n,t-e)/r.COMBIN(o,t)}return i?function(e,t,n,r){for(var o=0,i=0;i<=e;i++)o+=s(i,t,n,r);return o}(e,t,n,o):s(e,t,n,o)},t.INTERCEPT=function(e,n){return e=a.parseNumberArray(e),n=a.parseNumberArray(n),a.anyIsError(e,n)?l.value:e.length!==n.length?l.na:t.FORECAST(0,e,n)},t.KURT=function(){var e=a.parseNumberArray(a.flatten(arguments));if(e instanceof Error)return e;for(var t=i.mean(e),n=e.length,r=0,o=0;o<n;o++)r+=Math.pow(e[o]-t,4);return n*(n+1)/((n-1)*(n-2)*(n-3))*(r/=Math.pow(i.stdev(e,!0),4))-3*(n-1)*(n-1)/((n-2)*(n-3))},t.LARGE=function(e,t){return e=a.parseNumberArray(a.flatten(e)),t=a.parseNumber(t),a.anyIsError(e,t)?e:e.sort((function(e,t){return t-e}))[t-1]},t.LINEST=function(e,t){if(e=a.parseNumberArray(a.flatten(e)),t=a.parseNumberArray(a.flatten(t)),a.anyIsError(e,t))return l.value;for(var n=i.mean(e),r=i.mean(t),o=t.length,s=0,u=0,c=0;c<o;c++)s+=(t[c]-r)*(e[c]-n),u+=Math.pow(t[c]-r,2);var d=s/u;return[d,n-d*r]},t.LOGEST=function(e,n){if(e=a.parseNumberArray(a.flatten(e)),n=a.parseNumberArray(a.flatten(n)),a.anyIsError(e,n))return l.value;for(var r=0;r<e.length;r++)e[r]=Math.log(e[r]);var o=t.LINEST(e,n);return o[0]=Math.round(1e6*Math.exp(o[0]))/1e6,o[1]=Math.round(1e6*Math.exp(o[1]))/1e6,o},t.LOGNORM={},t.LOGNORM.DIST=function(e,t,n,r){return e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),a.anyIsError(e,t,n)?l.value:r?i.lognormal.cdf(e,t,n):i.lognormal.pdf(e,t,n)},t.LOGNORM.INV=function(e,t,n){return e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),a.anyIsError(e,t,n)?l.value:i.lognormal.inv(e,t,n)},t.MAX=function(){var e=a.numbers(a.flatten(arguments));return 0===e.length?0:Math.max.apply(Math,e)},t.MAXA=function(){var e=a.arrayValuesToNumbers(a.flatten(arguments));return 0===e.length?0:Math.max.apply(Math,e)},t.MEDIAN=function(){var e=a.arrayValuesToNumbers(a.flatten(arguments)),t=i.median(e);return isNaN(t)&&(t=l.num),t},t.MIN=function(){var e=a.numbers(a.flatten(arguments));return 0===e.length?0:Math.min.apply(Math,e)},t.MINA=function(){var e=a.arrayValuesToNumbers(a.flatten(arguments));return 0===e.length?0:Math.min.apply(Math,e)},t.MODE={},t.MODE.MULT=function(){var e=a.parseNumberArray(a.flatten(arguments));if(e instanceof Error)return e;for(var t,n=e.length,r={},o=[],i=0,s=0;s<n;s++)r[t=e[s]]=r[t]?r[t]+1:1,r[t]>i&&(i=r[t],o=[]),r[t]===i&&(o[o.length]=t);return o},t.MODE.SNGL=function(){var e=a.parseNumberArray(a.flatten(arguments));return e instanceof Error?e:t.MODE.MULT(e).sort((function(e,t){return e-t}))[0]},t.NEGBINOM={},t.NEGBINOM.DIST=function(e,t,n,r){return e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),a.anyIsError(e,t,n)?l.value:r?i.negbin.cdf(e,t,n):i.negbin.pdf(e,t,n)},t.NORM={},t.NORM.DIST=function(e,t,n,r){return e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),a.anyIsError(e,t,n)?l.value:n<=0?l.num:r?i.normal.cdf(e,t,n):i.normal.pdf(e,t,n)},t.NORM.INV=function(e,t,n){return e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),a.anyIsError(e,t,n)?l.value:i.normal.inv(e,t,n)},t.NORM.S={},t.NORM.S.DIST=function(e,t){return(e=a.parseNumber(e))instanceof Error?l.value:t?i.normal.cdf(e,0,1):i.normal.pdf(e,0,1)},t.NORM.S.INV=function(e){return(e=a.parseNumber(e))instanceof Error?l.value:i.normal.inv(e,0,1)},t.PEARSON=function(e,t){if(t=a.parseNumberArray(a.flatten(t)),e=a.parseNumberArray(a.flatten(e)),a.anyIsError(t,e))return l.value;for(var n=i.mean(e),r=i.mean(t),o=e.length,s=0,u=0,c=0,d=0;d<o;d++)s+=(e[d]-n)*(t[d]-r),u+=Math.pow(e[d]-n,2),c+=Math.pow(t[d]-r,2);return s/Math.sqrt(u*c)},t.PERCENTILE={},t.PERCENTILE.EXC=function(e,t){if(e=a.parseNumberArray(a.flatten(e)),t=a.parseNumber(t),a.anyIsError(e,t))return l.value;var n=(e=e.sort((function(e,t){return e-t}))).length;if(t<1/(n+1)||t>1-1/(n+1))return l.num;var r=t*(n+1)-1,o=Math.floor(r);return a.cleanFloat(r===o?e[r]:e[o]+(r-o)*(e[o+1]-e[o]))},t.PERCENTILE.INC=function(e,t){if(e=a.parseNumberArray(a.flatten(e)),t=a.parseNumber(t),a.anyIsError(e,t))return l.value;var n=t*((e=e.sort((function(e,t){return e-t}))).length-1),r=Math.floor(n);return a.cleanFloat(n===r?e[n]:e[r]+(n-r)*(e[r+1]-e[r]))},t.PERCENTRANK={},t.PERCENTRANK.EXC=function(e,t,n){if(n=void 0===n?3:n,e=a.parseNumberArray(a.flatten(e)),t=a.parseNumber(t),n=a.parseNumber(n),a.anyIsError(e,t,n))return l.value;e=e.sort((function(e,t){return e-t}));for(var r=u.UNIQUE.apply(null,e),o=e.length,i=r.length,s=Math.pow(10,n),c=0,d=!1,h=0;!d&&h<i;)t===r[h]?(c=(e.indexOf(r[h])+1)/(o+1),d=!0):t>=r[h]&&(t<r[h+1]||h===i-1)&&(c=(e.indexOf(r[h])+1+(t-r[h])/(r[h+1]-r[h]))/(o+1),d=!0),h++;return Math.floor(c*s)/s},t.PERCENTRANK.INC=function(e,t,n){if(n=void 0===n?3:n,e=a.parseNumberArray(a.flatten(e)),t=a.parseNumber(t),n=a.parseNumber(n),a.anyIsError(e,t,n))return l.value;e=e.sort((function(e,t){return e-t}));for(var r=u.UNIQUE.apply(null,e),o=e.length,i=r.length,s=Math.pow(10,n),c=0,d=!1,h=0;!d&&h<i;)t===r[h]?(c=e.indexOf(r[h])/(o-1),d=!0):t>=r[h]&&(t<r[h+1]||h===i-1)&&(c=(e.indexOf(r[h])+(t-r[h])/(r[h+1]-r[h]))/(o-1),d=!0),h++;return Math.floor(c*s)/s},t.PERMUT=function(e,t){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?l.value:r.FACT(e)/r.FACT(e-t)},t.PERMUTATIONA=function(e,t){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?l.value:Math.pow(e,t)},t.PHI=function(e){return(e=a.parseNumber(e))instanceof Error?l.value:Math.exp(-.5*e*e)/2.5066282746310002},t.POISSON={},t.POISSON.DIST=function(e,t,n){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?l.value:n?i.poisson.cdf(e,t):i.poisson.pdf(e,t)},t.PROB=function(e,t,n,r){if(void 0===n)return 0;if(r=void 0===r?n:r,e=a.parseNumberArray(a.flatten(e)),t=a.parseNumberArray(a.flatten(t)),n=a.parseNumber(n),r=a.parseNumber(r),a.anyIsError(e,t,n,r))return l.value;if(n===r)return e.indexOf(n)>=0?t[e.indexOf(n)]:0;for(var o=e.sort((function(e,t){return e-t})),i=o.length,s=0,u=0;u<i;u++)o[u]>=n&&o[u]<=r&&(s+=t[e.indexOf(o[u])]);return s},t.QUARTILE={},t.QUARTILE.EXC=function(e,n){if(e=a.parseNumberArray(a.flatten(e)),n=a.parseNumber(n),a.anyIsError(e,n))return l.value;switch(n){case 1:return t.PERCENTILE.EXC(e,.25);case 2:return t.PERCENTILE.EXC(e,.5);case 3:return t.PERCENTILE.EXC(e,.75);default:return l.num}},t.QUARTILE.INC=function(e,n){if(e=a.parseNumberArray(a.flatten(e)),n=a.parseNumber(n),a.anyIsError(e,n))return l.value;switch(n){case 1:return t.PERCENTILE.INC(e,.25);case 2:return t.PERCENTILE.INC(e,.5);case 3:return t.PERCENTILE.INC(e,.75);default:return l.num}},t.RANK={},t.RANK.AVG=function(e,t,n){if(e=a.parseNumber(e),t=a.parseNumberArray(a.flatten(t)),a.anyIsError(e,t))return l.value;for(var r=(n=n||!1)?function(e,t){return e-t}:function(e,t){return t-e},o=(t=(t=a.flatten(t)).sort(r)).length,i=0,s=0;s<o;s++)t[s]===e&&i++;return i>1?(2*t.indexOf(e)+i+1)/2:t.indexOf(e)+1},t.RANK.EQ=function(e,t,n){if(e=a.parseNumber(e),t=a.parseNumberArray(a.flatten(t)),a.anyIsError(e,t))return l.value;var r=(n=n||!1)?function(e,t){return e-t}:function(e,t){return t-e};return(t=t.sort(r)).indexOf(e)+1},t.ROW=function(e,t){return 2!==arguments.length?l.na:t<0?l.num:e instanceof Array&&"number"==typeof t?0!==e.length?i.row(e,t):void 0:l.value},t.ROWS=function(e){return 1!==arguments.length?l.na:e instanceof Array?0===e.length?0:i.rows(e):l.value},t.RSQ=function(e,n){return e=a.parseNumberArray(a.flatten(e)),n=a.parseNumberArray(a.flatten(n)),a.anyIsError(e,n)?l.value:Math.pow(t.PEARSON(e,n),2)},t.SKEW=function(){var e=a.parseNumberArray(a.flatten(arguments));if(e instanceof Error)return e;for(var t=i.mean(e),n=e.length,r=0,o=0;o<n;o++)r+=Math.pow(e[o]-t,3);return n*r/((n-1)*(n-2)*Math.pow(i.stdev(e,!0),3))},t.SKEW.P=function(){var e=a.parseNumberArray(a.flatten(arguments));if(e instanceof Error)return e;for(var t=i.mean(e),n=e.length,r=0,o=0,s=0;s<n;s++)o+=Math.pow(e[s]-t,3),r+=Math.pow(e[s]-t,2);return r/=n,(o/=n)/Math.pow(r,1.5)},t.SLOPE=function(e,t){if(e=a.parseNumberArray(a.flatten(e)),t=a.parseNumberArray(a.flatten(t)),a.anyIsError(e,t))return l.value;for(var n=i.mean(t),r=i.mean(e),o=t.length,s=0,u=0,c=0;c<o;c++)s+=(t[c]-n)*(e[c]-r),u+=Math.pow(t[c]-n,2);return s/u},t.SMALL=function(e,t){return e=a.parseNumberArray(a.flatten(e)),t=a.parseNumber(t),a.anyIsError(e,t)?e:e.sort((function(e,t){return e-t}))[t-1]},t.STANDARDIZE=function(e,t,n){return e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),a.anyIsError(e,t,n)?l.value:(e-t)/n},t.STDEV={},t.STDEV.P=function(){var e=t.VAR.P.apply(this,arguments),n=Math.sqrt(e);return isNaN(n)&&(n=l.num),n},t.STDEV.S=function(){var e=t.VAR.S.apply(this,arguments),n=Math.sqrt(e);return n},t.STDEVA=function(){var e=t.VARA.apply(this,arguments),n=Math.sqrt(e);return n},t.STDEVPA=function(){var e=t.VARPA.apply(this,arguments),n=Math.sqrt(e);return isNaN(n)&&(n=l.num),n},t.STEYX=function(e,t){if(e=a.parseNumberArray(a.flatten(e)),t=a.parseNumberArray(a.flatten(t)),a.anyIsError(e,t))return l.value;for(var n=i.mean(t),r=i.mean(e),o=t.length,s=0,u=0,c=0,d=0;d<o;d++)s+=Math.pow(e[d]-r,2),u+=(t[d]-n)*(e[d]-r),c+=Math.pow(t[d]-n,2);return Math.sqrt((s-u*u/c)/(o-2))},t.TRANSPOSE=function(e){return e?i.transpose(e):l.na},t.T=o.T,t.T.DIST=function(e,t,n){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?l.value:n?i.studentt.cdf(e,t):i.studentt.pdf(e,t)},t.T.DIST["2T"]=function(e,t){return 2!==arguments.length?l.na:e<0||t<1?l.num:"number"!=typeof e||"number"!=typeof t?l.value:2*(1-i.studentt.cdf(e,t))},t.T.DIST.RT=function(e,t){return 2!==arguments.length?l.na:e<0||t<1?l.num:"number"!=typeof e||"number"!=typeof t?l.value:1-i.studentt.cdf(e,t)},t.T.INV=function(e,t){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?l.value:i.studentt.inv(e,t)},t.T.INV["2T"]=function(e,t){return e=a.parseNumber(e),t=a.parseNumber(t),e<=0||e>1||t<1?l.num:a.anyIsError(e,t)?l.value:Math.abs(i.studentt.inv(e/2,t))},t.T.TEST=function(e,n){if(e=a.parseNumberArray(a.flatten(e)),n=a.parseNumberArray(a.flatten(n)),a.anyIsError(e,n))return l.value;var r,o=i.mean(e),s=i.mean(n),u=0,c=0;for(r=0;r<e.length;r++)u+=Math.pow(e[r]-o,2);for(r=0;r<n.length;r++)c+=Math.pow(n[r]-s,2);u/=e.length-1,c/=n.length-1;var d=Math.abs(o-s)/Math.sqrt(u/e.length+c/n.length);return t.T.DIST["2T"](d,e.length+n.length-2)},t.TREND=function(e,n,r){if(e=a.parseNumberArray(a.flatten(e)),n=a.parseNumberArray(a.flatten(n)),r=a.parseNumberArray(a.flatten(r)),a.anyIsError(e,n,r))return l.value;var o=t.LINEST(e,n),i=o[0],s=o[1],u=[];return r.forEach((function(e){u.push(i*e+s)})),u},t.TRIMMEAN=function(e,t){if(e=a.parseNumberArray(a.flatten(e)),t=a.parseNumber(t),a.anyIsError(e,t))return l.value;var n=r.FLOOR(e.length*t,2)/2;return i.mean(a.initial(a.rest(e.sort((function(e,t){return e-t})),n),n))},t.VAR={},t.VAR.P=function(){for(var e,n=a.numbers(a.flatten(arguments)),r=n.length,o=0,i=t.AVERAGE(n),s=0;s<r;s++)o+=Math.pow(n[s]-i,2);return e=o/r,isNaN(e)&&(e=l.num),e},t.VAR.S=function(){for(var e=a.numbers(a.flatten(arguments)),n=e.length,r=0,o=t.AVERAGE(e),i=0;i<n;i++)r+=Math.pow(e[i]-o,2);return r/(n-1)},t.VARA=function(){for(var e=a.flatten(arguments),n=e.length,r=0,o=0,i=t.AVERAGEA(e),s=0;s<n;s++){var l=e[s];r+="number"==typeof l?Math.pow(l-i,2):!0===l?Math.pow(1-i,2):Math.pow(0-i,2),null!==l&&o++}return r/(o-1)},t.VARPA=function(){for(var e,n=a.flatten(arguments),r=n.length,o=0,i=0,s=t.AVERAGEA(n),u=0;u<r;u++){var c=n[u];o+="number"==typeof c?Math.pow(c-s,2):!0===c?Math.pow(1-s,2):Math.pow(0-s,2),null!==c&&i++}return e=o/i,isNaN(e)&&(e=l.num),e},t.WEIBULL={},t.WEIBULL.DIST=function(e,t,n,r){return e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),a.anyIsError(e,t,n)?l.value:r?1-Math.exp(-Math.pow(e/n,t)):Math.pow(e,t-1)*Math.exp(-Math.pow(e/n,t))*t/Math.pow(n,t)},t.Z={},t.Z.TEST=function(e,n,r){if(e=a.parseNumberArray(a.flatten(e)),n=a.parseNumber(n),a.anyIsError(e,n))return l.value;r=r||t.STDEV.S(e);var o=e.length;return 1-t.NORM.S.DIST((t.AVERAGE(e)-n)/(r/Math.sqrt(o)),!0)}},function(e,t,n){var r=n(40),o=n(46),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,n){var r=n(40),o=n(82);e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(40),o=n(173),i=r["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=i},function(e,t,n){var r=n(74),o=n(58),i=n(151),a=function(e){return function(t,n,a){var s,l=r(t),u=o(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}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(46),o=n(121),i=n(42)("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){var r=n(180),o=n(153),i=n(32);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){return!Symbol.sham&&(r?38===o:o>37&&o<41)}))},function(e,t,n){var r=n(94),o=n(40);e.exports="process"==r(o.process)},function(e,t,n){var r=n(46),o=n(239);e.exports=function(e,t,n){var i,a;return o&&"function"==typeof(i=t.constructor)&&i!==n&&r(a=i.prototype)&&a!==n.prototype&&o(e,a),e}},function(e,t,n){"use strict";var r,o,i=n(183),a=n(184),s=n(149),l=RegExp.prototype.exec,u=s("native-string-replace",String.prototype.replace),c=l,d=(r=/a/,o=/b*/g,l.call(r,"a"),l.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),h=a.UNSUPPORTED_Y||a.BROKEN_CARET,f=void 0!==/()??/.exec("")[1];(d||f||h)&&(c=function(e){var t,n,r,o,a=this,s=h&&a.sticky,c=i.call(a),v=a.source,p=0,g=e;return s&&(-1===(c=c.replace("y","")).indexOf("g")&&(c+="g"),g=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(v="(?: "+v+")",g=" "+g,p++),n=new RegExp("^(?:"+v+")",c)),f&&(n=new RegExp("^"+v+"$(?!\\s)",c)),d&&(t=a.lastIndex),r=l.call(s?n:a,g),s?r?(r.input=r.input.slice(p),r[0]=r[0].slice(p),r.index=a.lastIndex,a.lastIndex+=r[0].length):a.lastIndex=0:d&&r&&(a.lastIndex=a.global?r.index+r[0].length:t),f&&r&&r.length>1&&u.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),e.exports=c},function(e,t,n){"use strict";var r=n(47);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var r=n(32);function o(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},function(e,t,n){"use strict";var r=n(186).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){var r=n(96),o=n(67),i=function(e){return function(t,n){var i,a,s=String(o(t)),l=r(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}};e.exports={codeAt:i(!1),charAt:i(!0)}},function(e,t,n){var r={};r[n(42)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){"use strict";var r=n(21),o=n(486),i=n(189),a=n(239),s=n(157),l=n(82),u=n(83),c=n(42),d=n(105),h=n(126),f=n(248),v=f.IteratorPrototype,p=f.BUGGY_SAFARI_ITERATORS,g=c("iterator"),m=function(){return this};e.exports=function(e,t,n,c,f,y,E){o(n,t,c);var w,C,R,T=function(e){if(e===f&&I)return I;if(!p&&e in O)return O[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},b=t+" Iterator",S=!1,O=e.prototype,_=O[g]||O["@@iterator"]||f&&O[f],I=!p&&_||T(f),M="Array"==t&&O.entries||_;if(M&&(w=i(M.call(new e)),v!==Object.prototype&&w.next&&(d||i(w)===v||(a?a(w,v):"function"!=typeof w[g]&&l(w,g,m)),s(w,b,!0,!0),d&&(h[b]=m))),"values"==f&&_&&"values"!==_.name&&(S=!0,I=function(){return _.call(this)}),d&&!E||O[g]===I||l(O,g,I),h[t]=I,f)if(C={values:T("values"),keys:y?I:T("keys"),entries:T("entries")},E)for(R in C)(p||S||!(R in O))&&u(O,R,C[R]);else r({target:t,proto:!0,forced:p||S},C);return C}},function(e,t,n){var r=n(65),o=n(68),i=n(148),a=n(249),s=i("IE_PROTO"),l=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=o(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},function(e,t,n){"use strict";var r=n(21),o=n(121),i=[].reverse,a=[1,2];r({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),i.call(this)}})},function(e,t,n){var r=n(252);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(21),o=n(32),i=n(68),a=n(189),s=n(249);r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(i(e))}})},function(e,t,n){var r=n(194);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){var r=n(46),o=n(94),i=n(42)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},function(e,t,n){var r=n(42)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,n){var r=n(47),o=n(244),i=n(58),a=n(125),s=n(245),l=n(243),u=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var c,d,h,f,v,p,g,m=n&&n.that,y=!(!n||!n.AS_ENTRIES),E=!(!n||!n.IS_ITERATOR),w=!(!n||!n.INTERRUPTED),C=a(t,m,1+y+w),R=function(e){return c&&l(c),new u(!0,e)},T=function(e){return y?(r(e),w?C(e[0],e[1],R):C(e[0],e[1])):w?C(e,R):C(e)};if(E)c=e;else{if("function"!=typeof(d=s(e)))throw TypeError("Target is not iterable");if(o(d)){for(h=0,f=i(e.length);f>h;h++)if((v=T(e[h]))&&v instanceof u)return v;return new u(!1)}c=d.call(e)}for(p=c.next;!(g=p.call(c)).done;){try{v=T(g.value)}catch(e){throw l(c),e}if("object"==typeof v&&v&&v instanceof u)return v}return new u(!1)}},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){var r=n(83);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},function(e,t,n){"use strict";t.__esModule=!0,t.PARTIALLY_VISIBLE_TYPE=t.FULLY_VISIBLE_TYPE=t.RENDER_TYPE=void 0;t.RENDER_TYPE=1;t.FULLY_VISIBLE_TYPE=2;t.PARTIALLY_VISIBLE_TYPE=3},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r={getFirstRenderedColumn:function(){var e=this.wot.wtViewport.columnsRenderCalculator.startColumn;return null===e?-1:e},getFirstVisibleColumn:function(){var e=this.wot.wtViewport.columnsVisibleCalculator.startColumn;return null===e?-1:e},getLastRenderedColumn:function(){var e=this.wot.wtViewport.columnsRenderCalculator.endColumn;return null===e?-1:e},getLastVisibleColumn:function(){var e=this.wot.wtViewport.columnsVisibleCalculator.endColumn;return null===e?-1:e},getRenderedColumnsCount:function(){return this.wot.wtViewport.columnsRenderCalculator.count},getVisibleColumnsCount:function(){return this.wot.wtViewport.columnsVisibleCalculator.count}};(0,n(5).defineGetter)(r,"MIXIN_NAME","calculatedColumns",{writable:!1,enumerable:!1});var o=r;t.default=o},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r={getFirstRenderedColumn:function(){return 0===this.wot.getSetting("totalColumns")?-1:0},getFirstVisibleColumn:function(){return this.getFirstRenderedColumn()},getLastRenderedColumn:function(){return this.getRenderedColumnsCount()-1},getLastVisibleColumn:function(){return this.getLastRenderedColumn()},getRenderedColumnsCount:function(){var e=this.wot.getSetting("totalColumns");return Math.min(this.wot.getSetting("fixedColumnsLeft"),e)},getVisibleColumnsCount:function(){return this.getRenderedColumnsCount()}};(0,n(5).defineGetter)(r,"MIXIN_NAME","stickyColumnsLeft",{writable:!1,enumerable:!1});var o=r;t.default=o},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.instanceToHTML=function(e){for(var t=e.hasColHeaders(),n=e.hasRowHeaders(),r=[t?-1:0,n?-1:0,e.countRows()-1,e.countCols()-1],o=e.getData.apply(e,r),a=o.length,s=a>0?o[0].length:0,l=["<table>","</table>"],u=t?["<thead>","</thead>"]:[],c=["<tbody>","</tbody>"],d=n?1:0,h=t?1:0,f=0;f<a;f+=1){for(var v=t&&0===f,p=[],g=0;g<s;g+=1){var m=!v&&n&&0===g,y="";if(v)y="<th>".concat(e.getColHeader(g-d),"</th>");else if(m)y="<th>".concat(e.getRowHeader(f-h),"</th>");else{var E=o[f][g],w=e.getCellMeta(f-d,g-h),C=w.hidden,R=w.rowspan,T=w.colspan;if(!C){var b=[];if(R&&b.push('rowspan="'.concat(R,'"')),T&&b.push('colspan="'.concat(T,'"')),(0,i.isEmpty)(E))y="<td ".concat(b.join(" "),"></td>");else{var S=E.toString().replace("<","&lt;").replace(">","&gt;").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20/gi,"&nbsp;").replace(/\t/gi,"&#9;");y="<td ".concat(b.join(" "),">").concat(S,"</td>")}}}p.push(y)}var O=["<tr>"].concat(p,["</tr>"]).join("");v?u.splice(1,0,O):c.splice(-1,0,O)}return l.splice(1,0,u.join(""),c.join("")),l.join("")},t._dataToHTML=function(e){for(var t=e.length,n=["<table>"],r=0;r<t;r+=1){var o=e[r],a=o.length,s=[];0===r&&n.push("<tbody>");for(var l=0;l<a;l+=1){var u=o[l],c=(0,i.isEmpty)(u)?"":u.toString().replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20/gi,"&nbsp;").replace(/\t/gi,"&#9;");s.push("<td>".concat(c,"</td>"))}n.push.apply(n,["<tr>"].concat(s,["</tr>"])),r+1===t&&n.push("</tbody>")}return n.push("</table>"),n.join("")},t.htmlToGridSettings=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,n={},r=t.createDocumentFragment(),i=t.createElement("div");r.appendChild(i);var u=e;if("string"==typeof u){var c=u.replace(/<td\b[^>]*?>([\s\S]*?)<\/\s*td>/g,(function(e){var t=e.match(/<td\b[^>]*?>/g)[0],n=e.substring(t.length,e.lastIndexOf("<")).replace(/(<(?!br)([^>]+)>)/gi,"");return"".concat(t).concat(n).concat("</td>")}));i.insertAdjacentHTML("afterbegin","".concat(c)),u=i.querySelector("table")}if(!u||!l(u))return;var d=i.querySelector('meta[name$="enerator"]'),h=null!==u.querySelector("tbody th"),f=u.querySelector("tr"),v=f?Array.from(f.cells).reduce((function(e,t){return e+t.colSpan}),0)-(h?1:0):0,p=u.tFoot&&Array.from(u.tFoot.rows)||[],g=[],m=!1,y=0,E=0;if(u.tHead){var w=Array.from(u.tHead.rows).filter((function(e){var t=null!==e.querySelector("td");return t&&g.push(e),!t}));y=w.length,m=y>0,y>1?n.nestedHeaders=Array.from(w).reduce((function(e,t){var n=Array.from(t.cells).reduce((function(e,t,n){if(h&&0===n)return e;var r=t.colSpan,o=t.innerHTML,i=r>1?{label:o,colspan:r}:o;return e.push(i),e}),[]);return e.push(n),e}),[]):m&&(n.colHeaders=Array.from(w[0].children).reduce((function(e,t,n){return h&&0===n||e.push(t.innerHTML),e}),[]))}g.length&&(n.fixedRowsTop=g.length);p.length&&(n.fixedRowsBottom=p.length);var C=[].concat(g,(0,o.default)(Array.from(u.tBodies).reduce((function(e,t){return e.push.apply(e,(0,o.default)(Array.from(t.rows))),e}),[])),(0,o.default)(p));E=C.length;for(var R=new Array(E),T=0;T<E;T++)R[T]=new Array(v);for(var b=[],S=[],O=0;O<E;O++)for(var _=C[O],I=Array.from(_.cells),M=I.length,N=0;N<M;N++){var k=I[N],A=k.nodeName,P=k.innerHTML,x=k.rowSpan,D=k.colSpan,L=R[O].findIndex((function(e){return void 0===e}));if("TD"===A){if(x>1||D>1){for(var H=O;H<O+x;H++)if(H<E)for(var F=L;F<L+D;F++)R[H][F]=null;var U=k.getAttribute("style"),B=U&&U.includes("mso-ignore:colspan");B||b.push({col:L,row:O,rowspan:x,colspan:D})}var V="";V=d&&/excel/gi.test(d.content)?P.replace(/[\r\n][\x20]{0,2}/g," ").replace(/<br(\s*|\/)>[\r\n]?[\x20]{0,3}/gim,"\r\n"):P.replace(/<br(\s*|\/)>[\r\n]?/gim,"\r\n"),R[O][L]=V.replace(s,(function(e){return a[e]}))}else S.push(P)}b.length&&(n.mergeCells=b);S.length&&(n.rowHeaders=S);R.length&&(n.data=R);return n};var o=r(n(25));n(128),n(29),n(52),n(73),n(77),n(35),n(51),n(9),n(19),n(41),n(135),n(534),n(203),n(43),n(11),n(30),n(411),n(26),n(34);var i=n(20),a={"&nbsp;":" ","&amp;":"&","&lt;":"<","&gt;":">"},s=new RegExp(Object.keys(a).map((function(e){return"(".concat(e,")")})).join("|"),"gi");function l(e){return"TABLE"===(e&&e.nodeName||"")}},function(e,t,n){"use strict";var r=n(21),o=n(536).left,i=n(108),a=n(153),s=n(180);r({target:"Array",proto:!0,forced:!i("reduce")||!s&&a>79&&a<83},{reduce:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getPluginsNames=function(){return[].concat((0,i.default)(d.getItems()),(0,i.default)(h.getItems()))},t.getPlugin=v,t.hasPlugin=function(e){return!!v(e)},t.registerPlugin=function(e,t,n){var r=function(e,t,n){"function"==typeof e&&(e=(t=e).PLUGIN_KEY,n=t.PLUGIN_PRIORITY);return[e,t,n]}(e,t,n),i=(0,o.default)(r,3);e=i[0],t=i[1],n=i[2],void 0===v(e)&&function(e,t,n){var r=(0,a.toUpperCaseFirst)(e);if(f.hasItem(r))throw new Error(c(r));void 0===n?h.addItem(r):d.addItem(n,r);f.addItem(r,t)}(e,t,n)},n(19);var o=r(n(18)),i=r(n(25)),a=n(75),s=n(537),l=n(412),u=n(538),c=function(e){return'There is already registered "'.concat(e,'" plugin.')},d=(0,s.createPriorityMap)({errorPriorityExists:function(e){return'There is already registered plugin on priority "'.concat(e,'".')},errorPriorityNaN:function(e){return'The priority "'.concat(e,'" is not a number.')}}),h=(0,u.createUniqueSet)({errorItemExists:c}),f=(0,l.createUniqueMap)({errorIdExists:c});function v(e){var t=(0,a.toUpperCaseFirst)(e);return f.getItem(t)}},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.PhysicalIndexToValueMap=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(16)),s=r(n(7)),l=r(n(8)),u=r(n(4)),c=n(164),d=n(206);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var f=function(e){(0,s.default)(n,e);var t=h(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"insert",value:function(e,t){this.indexedValues=(0,d.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),(0,a.default)((0,u.default)(n.prototype),"insert",this).call(this,e,t)}},{key:"remove",value:function(e){this.indexedValues=(0,d.getListWithRemovedItems)(this.indexedValues,e),(0,a.default)((0,u.default)(n.prototype),"remove",this).call(this,e)}}]),n}(c.IndexMap);t.PhysicalIndexToValueMap=f},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getListWithInsertedItems=function(e,t,n,r){var a=n.length?n[0]:void 0;return[].concat((0,o.default)(e.slice(0,a)),(0,o.default)(n.map((function(e,t){return(0,i.isFunction)(r)?r(e,t):r}))),(0,o.default)(void 0===a?[]:e.slice(a)))},t.getListWithRemovedItems=function(e,t){return(0,a.arrayFilter)(e,(function(e,n){return!1===t.includes(n)}))},n(19),n(33),n(77),n(26),n(34);var o=r(n(25)),i=n(53),a=n(3)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getRegisteredMapsCounter=function(){return u},t.MapCollection=void 0,n(12),n(39),n(9),n(11),n(13),n(23),n(43);var o=r(n(1)),i=r(n(2)),a=n(20),s=n(5),l=r(n(55)),u=0,c=function(){function e(){(0,o.default)(this,e),this.collection=new Map}return(0,i.default)(e,[{key:"register",value:function(e,t){var n=this;!1===this.collection.has(e)&&(this.collection.set(e,t),t.addLocalHook("change",(function(){return n.runLocalHooks("change",t)})),u+=1)}},{key:"unregister",value:function(e){var t=this.collection.get(e);(0,a.isDefined)(t)&&(t.destroy(),this.collection.delete(e),this.runLocalHooks("change",t),u-=1)}},{key:"unregisterAll",value:function(){var e=this;this.collection.forEach((function(t,n){return e.unregister(n)})),this.collection.clear()}},{key:"get",value:function(e){return(0,a.isUndefined)(e)?Array.from(this.collection.values()):this.collection.get(e)}},{key:"getLength",value:function(){return this.collection.size}},{key:"removeFromEvery",value:function(e){this.collection.forEach((function(t){t.remove(e)}))}},{key:"insertToEvery",value:function(e,t){this.collection.forEach((function(n){n.insert(e,t)}))}},{key:"initEvery",value:function(e){this.collection.forEach((function(t){t.init(e)}))}}]),e}();t.MapCollection=c,(0,s.mixin)(c,l.default)},function(e,t,n){"use strict";n(23),n(35);var r=n(0);t.__esModule=!0;var o={Highlight:!0,Selection:!0,handleMouseEvent:!0,detectSelectionType:!0,normalizeSelectionFactory:!0},i=r(n(423));t.Highlight=i.default;var a=r(n(567));t.Selection=a.default;var s=n(413);t.handleMouseEvent=s.handleMouseEvent;var l=n(167);t.detectSelectionType=l.detectSelectionType,t.normalizeSelectionFactory=l.normalizeSelectionFactory;var u=n(85);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===u[e]||(t[e]=u[e]))}))},function(e,t,n){n(420)("iterator")},function(e,t,n){var r=n(21),o=n(565);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(23),n(129);var o=r(n(18)),i=r(n(1)),a=r(n(2)),s=n(10),l=n(3),u=function(){function e(t){(0,i.default)(this,e),this.hot=t,this.container=null,this.injected=!1,this.rows=[],this.columns=[],this.samples=null,this.settings={useHeaders:!0}}return(0,a.default)(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){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.appendColumnHeadersRow(),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,l.arrayEach)(this.rows,(function(t){e(t.row,(0,s.outerHeight)(t.table)-1)}))}},{key:"getWidths",value:function(e){this.injected||this.injectTable(),(0,l.arrayEach)(this.columns,(function(t){e(t.col,(0,s.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=this.hot.rootDocument.createDocumentFragment();return this.hot.hasRowHeaders()&&t.appendChild(this.createColElement(-1)),this.samples.forEach((function(n){(0,l.arrayEach)(n.strings,(function(n){t.appendChild(e.createColElement(n.col))}))})),t}},{key:"createRow",value:function(e){var t=this,n=this.hot.rootDocument,r=n.createDocumentFragment(),o=n.createElement("th");return this.hot.hasRowHeaders()&&(this.hot.view.appendRowHeader(e,o),r.appendChild(o)),this.samples.forEach((function(o){(0,l.arrayEach)(o.strings,(function(o){var i=o.col,a=t.hot.getCellMeta(e,i);a.col=i,a.row=e;var s=t.hot.getCellRenderer(a),l=n.createElement("td");l.setAttribute("ghost-table",1),s(t.hot,l,e,i,t.hot.colToProp(i),o.value,a),r.appendChild(l)}))})),r}},{key:"appendColumnHeadersRow",value:function(){var e=this,t=this.hot.rootDocument,n=t.createDocumentFragment(),r=[];if(this.hot.hasRowHeaders()){var i=t.createElement("th");r.push([-1,i]),n.appendChild(i)}this.samples.forEach((function(e){(0,l.arrayEach)(e.strings,(function(e){var o=e.col,i=t.createElement("th");r.push([o,i]),n.appendChild(i)}))})),this.table.tHead.appendChild(n),(0,l.arrayEach)(r,(function(t){var n=(0,o.default)(t,2),r=n[0],i=n[1];e.hot.view.appendColHeader(r,i)}))}},{key:"createCol",value:function(e){var t=this,n=this.hot.rootDocument,r=n.createDocumentFragment();return this.samples.forEach((function(o){(0,l.arrayEach)(o.strings,(function(o){var i=o.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),o.value,a),u.appendChild(l),r.appendChild(u)}))})),r}},{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=this.hot.rootDocument.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=this.hot.rootDocument,n=t.createDocumentFragment(),r=t.createElement("table"),o=t.createElement("thead"),i=t.createElement("tbody"),a=t.createElement("colgroup"),l=t.createElement("tr"),u=t.createElement("th");return this.isVertical()&&r.appendChild(a),this.isHorizontal()&&(l.appendChild(u),o.appendChild(l),r.style.tableLayout="auto",r.style.width="auto"),r.appendChild(o),this.isVertical()&&i.appendChild(l),r.appendChild(i),(0,s.addClass)(r,e),n.appendChild(r),{fragment:n,table:r,tHead:o,tBody:i,colGroup:a,tr:l,th:u}}},{key:"createContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.hot.rootDocument,n=t.createDocumentFragment(),r=t.createElement("div"),o="htGhostTable htAutoSize ".concat(e.trim());return(0,s.addClass)(r,o),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=u},function(e,t,n){"use strict";t.__esModule=!0,t.AutocompleteEditor=t.EDITOR_TYPE=void 0;var r=n(585);t.EDITOR_TYPE=r.EDITOR_TYPE,t.AutocompleteEditor=r.AutocompleteEditor},function(e,t,n){"use strict";t.__esModule=!0,t.HandsontableEditor=t.EDITOR_TYPE=void 0;var r=n(586);t.EDITOR_TYPE=r.EDITOR_TYPE,t.HandsontableEditor=r.HandsontableEditor},function(e,t,n){"use strict";t.__esModule=!0,t.DateEditor=t.EDITOR_TYPE=void 0;var r=n(588);t.EDITOR_TYPE=r.EDITOR_TYPE,t.DateEditor=r.DateEditor},function(e,t,n){"use strict";t.__esModule=!0,t.autocompleteValidator=t.VALIDATOR_TYPE=void 0;var r=n(605);t.VALIDATOR_TYPE=r.VALIDATOR_TYPE,t.autocompleteValidator=r.autocompleteValidator},function(e,t,n){"use strict";t.__esModule=!0,t.areValidSortStates=function(e){if(e.some((function(e){return!1===function(e){if(!1===(0,r.isObject)(e))return!1;var t=e.column,n=e.sortOrder;return Number.isInteger(t)&&[i,a].includes(n)}(e)})))return!1;var t=e.map((function(e){return e.column}));return new Set(t).size===t.length},t.getNextSortOrder=function(e){if(e===a)return;if(e===i)return a;return i},t.getHeaderSpanElement=function(e){return e.querySelector(".".concat("colHeader"))},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,o.isRightClick)(n)},t.HEADER_SPAN_CLASS=t.DESC_SORT_STATE=t.ASC_SORT_STATE=void 0,n(59),n(60),n(26),n(77),n(12),n(9),n(62),n(11),n(13),n(17),n(43);var r=n(5),o=n(45),i="asc";t.ASC_SORT_STATE=i;var a="desc";t.DESC_SORT_STATE=a;t.HEADER_SPAN_CLASS="colHeader"},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){return{name:"---------"}},t.KEY=void 0;t.KEY="---------"},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(79),n(35),n(128),n(29),n(52),n(9),n(51),n(19);var o=r(n(1)),i=r(n(2)),a=r(n(670)),s=n(91),l=n(78),u=r(n(237)),c=r(n(31)),d=n(3),h=n(84),f=n(10),v=n(45),p=n(53),g=n(20),m=n(5),y=n(70),E=r(n(55)),w=function(){function e(t,n){(0,o.default)(this,e),this.hot=t,this.options=n||{parent:null,name:null,className:"",keepInViewport:!0,standalone:!1,minWidth:215,container:this.hot.rootDocument.documentElement},this.eventManager=new c.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(0,i.default)(e,[{key:"registerEvents",value:function(){for(var e=this,t=this.hot.rootWindow;t;)this.eventManager.addEventListener(t.document,"mousedown",(function(t){return e.onDocumentMouseDown(t)})),this.eventManager.addEventListener(t.document,"contextmenu",(function(t){return e.onDocumentContextMenu(t)})),t=(0,f.getParentWindow)(t)}},{key:"setMenuItems",value:function(e){this.menuItems=e}},{key:"getSelectedItem",value:function(){return this.hasSelectedItem()?this.hotMenu.getSourceDataAtRow(this.hotMenu.getSelectedLast()[0]):null}},{key:"hasSelectedItem",value:function(){return Array.isArray(this.hotMenu.getSelectedLast())}},{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,p.debounce)((function(t){return e.openSubMenu(t)}),300),n=this.options.minWidth||215,r=!1,o=(0,d.arrayFilter)(this.menuItems,(function(t){return t.key===s.NO_ITEMS&&(r=!0),(0,l.isItemHidden)(t,e.hot)}));if(o.length<1&&!r)o.push((0,s.predefinedItems)()[s.NO_ITEMS]);else if(0===o.length)return;o=(0,l.filterSeparators)(o,s.SEPARATOR);var i=!1,a={data:o,colHeaders:!1,autoColumnSize:!0,autoWrapRow:!1,modifyColWidth:function(e){return(0,g.isDefined)(e)&&e<n?n:e},autoRowSize:!1,readOnly:!0,editor:!1,copyPaste:!1,maxCols:1,columns:[{data:"name",renderer:function(t,n,r,o,i,a){return e.menuItemRenderer(t,n,r,o,i,a)}}],renderAllRows:!0,fragmentSelection:!1,outsideClickDeselects:!1,disableVisualSelection:"area",beforeKeyDown:function(t){return e.onBeforeKeyDown(t)},afterOnCellMouseOver:function(n,r){e.isAllSubMenusClosed()?t(r.row):e.openSubMenu(r.row)},rowHeights:function(e){return o[e].name===s.SEPARATOR?1:23},afterOnCellContextMenu:function(t){t.preventDefault(),(0,h.isWindowsOS)()&&i&&e.hasSelectedItem()&&e.close(!0)},beforeOnCellMouseUp:function(t){e.hasSelectedItem()&&(i=!e.isCommandPassive(e.getSelectedItem()),e.executeCommand(t))},afterOnCellMouseUp:function(t){(0,h.isWindowsOS)()&&(0,v.isRightClick)(t)||!i||!e.hasSelectedItem()||e.close(!0)},afterUnlisten:function(){!e.hasSelectedItem()&&e.isOpened()&&e.hotMenu.listen()}};this.origOutsideClickDeselects=this.hot.getSettings().outsideClickDeselects,this.hot.getSettings().outsideClickDeselects=!1,this.hotMenu=new u.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,l.hasSubMenu)(n))return!1;var r=this.hotMenu.getSourceDataAtRow(t),o=new e(this.hot,{parent:this,name:r.name,className:this.options.className,keepInViewport:!0,container:this.options.container});return o.setMenuItems(r.submenu.items),o.open(),o.setPosition(n.getBoundingClientRect()),this.hotSubMenus[r.key]=o,o}},{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,d.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(){var e=this.container.parentNode;this.clearLocalHooks(),this.close(),this.parentMenu=null,this.eventManager.destroy(),e&&e.removeChild(this.container)}},{key:"isOpened",value:function(){return null!==this.hotMenu}},{key:"executeCommand",value:function(e){if(this.isOpened()&&this.hasSelectedItem()){var t=this.getSelectedItem();if(this.runLocalHooks("select",t,e),!this.isCommandPassive(t)){var n=this.hot.getSelectedRange(),r=n?(0,l.normalizeSelection)(n):[];this.runLocalHooks("executeCommand",t.key,r,e),this.isSubMenu()&&this.parentMenu.runLocalHooks("executeCommand",t.key,r,e)}}}},{key:"isCommandPassive",value:function(e){var t=e.isCommand,n=e.name,r=e.disabled,o=e.submenu,i=!0===r||"function"==typeof r&&!0===r.call(this.hot);return!1===t||n===s.SEPARATOR||!0===i||o}},{key:"setPosition",value:function(e){var t=new a.default(e,this.container.ownerDocument.defaultView);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+1;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=(0,f.getScrollbarWidth)(this.hot.rootDocument),n=this.offset.left+e.left-this.container.offsetWidth+t+4;this.container.style.left="".concat(n,"px")}},{key:"selectFirstCell",value:function(){var e=this.hotMenu.getCell(0,0);(0,l.isSeparator)(e)||(0,l.isDisabled)(e)||(0,l.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,l.isSeparator)(t)||(0,l.isDisabled)(t)||(0,l.isSelectionDisabled)(t)?this.selectPrevCell(e,0):this.hotMenu.selectCell(e,0)}},{key:"selectNextCell",value:function(e,t){var n=e+1,r=n<this.hotMenu.countRows()?this.hotMenu.getCell(n,t):null;r&&((0,l.isSeparator)(r)||(0,l.isDisabled)(r)||(0,l.isSelectionDisabled)(r)?this.selectNextCell(n,t):this.hotMenu.selectCell(n,t))}},{key:"selectPrevCell",value:function(e,t){var n=e-1,r=n>=0?this.hotMenu.getCell(n,t):null;r&&((0,l.isSeparator)(r)||(0,l.isDisabled)(r)||(0,l.isSelectionDisabled)(r)?this.selectPrevCell(n,t):this.hotMenu.selectCell(n,t))}},{key:"menuItemRenderer",value:function(e,t,n,r,o,i){var a,l=this,u=e.getSourceDataAtRow(n),c=this.hot.rootDocument.createElement("div"),d=function(e){return e.disableSelection},h=i;"function"==typeof h&&(h=h.call(this.hot)),(0,f.empty)(t),(0,f.addClass)(c,"htItemWrapper"),t.appendChild(c),a=u,new RegExp(s.SEPARATOR,"i").test(a.name)?(0,f.addClass)(t,"htSeparator"):"function"==typeof u.renderer?((0,f.addClass)(t,"htCustomMenuRenderer"),t.appendChild(u.renderer(e,c,n,r,o,h))):(0,f.fastInnerHTML)(c,h),!function(e){return!0===e.disabled||"function"==typeof e.disabled&&!0===e.disabled.call(l.hot)}(u)?d(u)?((0,f.addClass)(t,"htSelectionDisabled"),this.eventManager.addEventListener(t,"mouseenter",(function(){return e.deselectCell()}))):!function(e){return(0,m.hasOwnProperty)(e,"submenu")}(u)?((0,f.removeClass)(t,["htSubmenu","htDisabled"]),d(u)?this.eventManager.addEventListener(t,"mouseenter",(function(){return e.deselectCell()})):this.eventManager.addEventListener(t,"mouseenter",(function(){return e.selectCell(n,r,void 0,void 0,!1,!1)}))):((0,f.addClass)(t,"htSubmenu"),d(u)?this.eventManager.addEventListener(t,"mouseenter",(function(){return e.deselectCell()})):this.eventManager.addEventListener(t,"mouseenter",(function(){return e.selectCell(n,r,void 0,void 0,!1,!1)}))):((0,f.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,n=this.options.container.ownerDocument,r=t;return r&&((0,p.isFunction)(r)&&(r=null===(r=r.call(this.hot))||(0,g.isUndefined)(r)?"":r.toString()),r=r.replace(/[^A-z0-9]/g,"_"),r="".concat(this.options.className,"Sub_").concat(r),e=n.querySelector(".".concat(this.options.className,".").concat(r))),e||(e=n.createElement("div"),(0,f.addClass)(e,"htMenu ".concat(this.options.className)),r&&(0,f.addClass)(e,r),this.options.container.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){if((0,f.isInput)(e.target)&&this.container.contains(e.target))(0,v.stopImmediatePropagation)(e);else{var t=this.hotMenu.getSelectedLast(),n=!1;switch(this.keyEvent=!0,e.keyCode){case y.KEY_CODES.ESCAPE:this.close(),n=!0;break;case y.KEY_CODES.ENTER:t&&(this.hotMenu.getSourceDataAtRow(t[0]).submenu?n=!0:(this.executeCommand(e),this.close(!0)));break;case y.KEY_CODES.ARROW_DOWN:t?this.selectNextCell(t[0],t[1]):this.selectFirstCell(),n=!0;break;case y.KEY_CODES.ARROW_UP:t?this.selectPrevCell(t[0],t[1]):this.selectLastCell(),n=!0;break;case y.KEY_CODES.ARROW_RIGHT:if(t){var r=this.openSubMenu(t[0]);r&&r.selectFirstCell()}n=!0;break;case y.KEY_CODES.ARROW_LEFT:t&&this.isSubMenu()&&(this.close(),this.parentMenu&&this.parentMenu.hotMenu.listen(),n=!0)}n&&(e.preventDefault(),(0,v.stopImmediatePropagation)(e)),this.keyEvent=!1}}},{key:"onAfterInit",value:function(){var e=this.hotMenu.view.wt.wtTable,t=this.hotMenu.getSettings().data,n=e.hider.style,r=e.holder.style,o=parseInt(n.width,10),i=(0,d.arrayReduce)(t,(function(e,t){return e+(t.name===s.SEPARATOR?1:26)}),0);r.width="".concat(o+3,"px"),r.height="".concat(i+3,"px"),n.height=r.height}},{key:"onAfterSelection",value:function(e,t,n,r,o){!1===this.keyEvent&&(o.value=!0)}},{key:"onDocumentMouseDown",value:function(e){this.isOpened()&&(this.options.standalone&&this.hotMenu&&!(0,f.isChildOf)(e.target,this.hotMenu.rootElement)?this.close(!0):!this.isAllSubMenusClosed()&&!this.isSubMenu()||(0,f.isChildOf)(e.target,".htMenu")||!(0,f.isChildOf)(e.target,this.container.ownerDocument)&&!(0,f.isChildOf)(e.target,this.hot.rootDocument)||this.close(!0))}},{key:"onDocumentContextMenu",value:function(e){this.isOpened()&&(0,f.hasClass)(e.target,"htCore")&&(0,f.isChildOf)(e.target,this.hotMenu.rootElement)&&e.preventDefault()}}]),e}();(0,m.mixin)(w,E.default);var C=w;t.default=C},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o,i,a,s,l=r(n(63)),u=r(n(1)),c=r(n(2)),d=n(38),h=n(64),f=function(){function e(t,n,r,o){(0,u.default)(this,e),this.row=t,this.col=n,this.rowspan=r,this.colspan=o,this.removed=!1}return(0,c.default)(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],r=t+Math.abs(e[0]||e[1])-1,o=e[0]?"colspan":"rowspan",i=e[0]?"col":"row",a=Math.min(t,r),s=Math.max(t,r),l=this[i],u=this[i]+this[o]-1;if(l>=t&&(this[i]+=n),n>0)t<=u&&t>l&&(this[o]+=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,d=Math.abs(n)-c;this[i]-=d+n,this[o]-=c}else if(l<=a&&u>=s)this[o]+=n;else if(l<=a&&u>=a&&u<s){var h=u-a+1;this[o]-=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 d.CellRange(new d.CellCoords(this.row,this.col),new d.CellCoords(this.row,this.col),new d.CellCoords(this.getLastRow(),this.getLastColumn()))}}],[{key:"NEGATIVE_VALUES_WARNING",value:function(e){return(0,h.toSingleLine)(o||(o=(0,l.default)(["The merged cell declared with {row: ",", col: ",", \n rowspan: ",", colspan: ","} contains negative values, which is \n not supported. It will not be added to the collection."],["The merged cell declared with {row: ",", col: ",",\\x20\n rowspan: ",", colspan: ","} contains negative values, which is\\x20\n not supported. It will not be added to the collection."])),e.row,e.col,e.rowspan,e.colspan)}},{key:"IS_OUT_OF_BOUNDS_WARNING",value:function(e){return(0,h.toSingleLine)(i||(i=(0,l.default)(["The merged cell declared at [",", ","] is positioned \n (or positioned partially) outside of the table range. It was not added to the table, please fix your setup."],["The merged cell declared at [",", ","] is positioned\\x20\n (or positioned partially) outside of the table range. It was not added to the table, please fix your setup."])),e.row,e.col)}},{key:"IS_SINGLE_CELL",value:function(e){return(0,h.toSingleLine)(a||(a=(0,l.default)(["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.'],["The merged cell declared at [",", ",'] has both "rowspan"\\x20\n and "colspan" declared as "1", which makes it a single cell. It cannot be added to the collection.'])),e.row,e.col)}},{key:"ZERO_SPAN_WARNING",value:function(e){return(0,h.toSingleLine)(s||(s=(0,l.default)(["The merged cell declared at [",", ",'] has "rowspan" \n or "colspan" declared as "0", which is not supported. It cannot be added to the collection.'],["The merged cell declared at [",", ",'] has "rowspan"\\x20\n or "colspan" declared as "0", which is not supported. It cannot be added to the collection.'])),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";var r=n(0);t.__esModule=!0,t.default=function(e){var t=[],n=e;L[n]||(n="text");return(0,a.arrayEach)(L[n],(function(e){var n;n=e===s.SEPARATOR?{name:s.SEPARATOR}:(0,i.clone)((0,l.getConditionDescriptor)(e)),t.push(n)})),t},t.TYPES=t.TYPE_DATE=t.TYPE_TEXT=t.TYPE_NUMERIC=void 0;var o=r(n(37)),i=n(5),a=n(3),s=n(91),l=n(36),u=n(755);t.CONDITION_NONE=u.CONDITION_NAME;var c=n(453);t.CONDITION_EMPTY=c.CONDITION_NAME;var d=n(756);t.CONDITION_NOT_EMPTY=d.CONDITION_NAME;var h=n(454);t.CONDITION_EQUAL=h.CONDITION_NAME;var f=n(757);t.CONDITION_NOT_EQUAL=f.CONDITION_NAME;var v=n(758);t.CONDITION_GREATER_THAN=v.CONDITION_NAME;var p=n(759);t.CONDITION_GREATER_THAN_OR_EQUAL=p.CONDITION_NAME;var g=n(760);t.CONDITION_LESS_THAN=g.CONDITION_NAME;var m=n(761);t.CONDITION_LESS_THAN_OR_EQUAL=m.CONDITION_NAME;var y=n(455);t.CONDITION_BETWEEN=y.CONDITION_NAME;var E=n(762);t.CONDITION_NOT_BETWEEN=E.CONDITION_NAME;var w=n(763);t.CONDITION_BEGINS_WITH=w.CONDITION_NAME;var C=n(764);t.CONDITION_ENDS_WITH=C.CONDITION_NAME;var R=n(458);t.CONDITION_CONTAINS=R.CONDITION_NAME;var T=n(766);t.CONDITION_NOT_CONTAINS=T.CONDITION_NAME;var b=n(457);t.CONDITION_DATE_BEFORE=b.CONDITION_NAME;var S=n(456);t.CONDITION_DATE_AFTER=S.CONDITION_NAME;var O=n(767);t.CONDITION_TOMORROW=O.CONDITION_NAME;var _=n(768);t.CONDITION_TODAY=_.CONDITION_NAME;var I=n(769);t.CONDITION_YESTERDAY=I.CONDITION_NAME;var M=n(770);t.CONDITION_BY_VALUE=M.CONDITION_NAME;var N=n(771);t.CONDITION_TRUE=N.CONDITION_NAME;var k=n(772);t.CONDITION_FALSE=k.CONDITION_NAME;var A=n(221);t.OPERATION_AND=A.OPERATION_ID;var P=n(459);t.OPERATION_OR=P.OPERATION_ID;var x,D=n(460);t.OPERATION_OR_THEN_VARIABLE=D.OPERATION_ID;t.TYPE_NUMERIC="numeric";t.TYPE_TEXT="text";t.TYPE_DATE="date";var L=(x={},(0,o.default)(x,"numeric",[u.CONDITION_NAME,s.SEPARATOR,c.CONDITION_NAME,d.CONDITION_NAME,s.SEPARATOR,h.CONDITION_NAME,f.CONDITION_NAME,s.SEPARATOR,v.CONDITION_NAME,p.CONDITION_NAME,g.CONDITION_NAME,m.CONDITION_NAME,y.CONDITION_NAME,E.CONDITION_NAME]),(0,o.default)(x,"text",[u.CONDITION_NAME,s.SEPARATOR,c.CONDITION_NAME,d.CONDITION_NAME,s.SEPARATOR,h.CONDITION_NAME,f.CONDITION_NAME,s.SEPARATOR,w.CONDITION_NAME,C.CONDITION_NAME,s.SEPARATOR,R.CONDITION_NAME,T.CONDITION_NAME]),(0,o.default)(x,"date",[u.CONDITION_NAME,s.SEPARATOR,c.CONDITION_NAME,d.CONDITION_NAME,s.SEPARATOR,h.CONDITION_NAME,f.CONDITION_NAME,s.SEPARATOR,b.CONDITION_NAME,S.CONDITION_NAME,y.CONDITION_NAME,s.SEPARATOR,O.CONDITION_NAME,_.CONDITION_NAME,I.CONDITION_NAME]),x);t.TYPES=L},function(e,t,n){"use strict";var r=n(14);t.__esModule=!0,t.operationResult=s,t.SHORT_NAME_FOR_COMPONENT=t.OPERATION_ID=void 0;var o=r(n(15)),i=n(143);t.OPERATION_ID="conjunction";var a=o.FILTERS_LABELS_CONJUNCTION;function s(e,t){return e.every((function(e){return e.func(t)}))}t.SHORT_NAME_FOR_COMPONENT=a,(0,i.registerOperation)("conjunction",a,s)},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(28)),s=r(n(16)),l=r(n(7)),u=r(n(8)),c=r(n(4));n(12),n(9),n(11),n(22),n(13);var d=n(10),h=n(5),f=r(n(144));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var p=new WeakMap,g=function(e){(0,l.default)(n,e);var t=v(n);function n(e,r){var i;return(0,o.default)(this,n),i=t.call(this,e,(0,h.extend)(n.DEFAULTS,r)),p.set((0,a.default)(i),{}),i.registerHooks(),i}return(0,i.default)(n,[{key:"registerHooks",value:function(){var e=this;this.addLocalHook("click",(function(){return e.onClick()})),this.addLocalHook("keyup",(function(t){return e.onKeyup(t)}))}},{key:"build",value:function(){(0,s.default)((0,c.default)(n.prototype),"build",this).call(this);var e=p.get(this),t=this.hot.rootDocument.createElement("div");e.input=this._element.firstChild,(0,d.addClass)(this._element,"htUIInput"),(0,d.addClass)(t,"htUIInputIcon"),this._element.appendChild(t),this.update()}},{key:"update",value:function(){if(this.isBuilt()){var e=p.get(this).input;e.type=this.options.type,e.placeholder=this.translateIfPossible(this.options.placeholder),e.value=this.translateIfPossible(this.options.value)}}},{key:"focus",value:function(){this.isBuilt()&&p.get(this).input.focus()}},{key:"onClick",value:function(){}},{key:"onKeyup",value:function(e){this.options.value=e.target.value}}],[{key:"DEFAULTS",get:function(){return(0,h.clone)({placeholder:"",type:"text",tagName:"input"})}}]),n}(f.default);t.default=g},function(e,t,n){var r=n(86),o=n(80);t.ASC=function(){throw new Error("ASC is not implemented")},t.BAHTTEXT=function(){throw new Error("BAHTTEXT is not implemented")},t.CHAR=function(e){return(e=r.parseNumber(e))instanceof Error?e:String.fromCharCode(e)},t.CLEAN=function(e){return(e=e||"").replace(/[\0-\x1F]/g,"")},t.CODE=function(e){var t=(e=e||"").charCodeAt(0);return isNaN(t)&&(t=o.na),t},t.CONCATENATE=function(){for(var e=r.flatten(arguments),t=0;(t=e.indexOf(!0))>-1;)e[t]="TRUE";for(var n=0;(n=e.indexOf(!1))>-1;)e[n]="FALSE";return e.join("")},t.DBCS=function(){throw new Error("DBCS is not implemented")},t.DOLLAR=function(){throw new Error("DOLLAR is not implemented")},t.EXACT=function(e,t){return 2!==arguments.length?o.na:e===t},t.FIND=function(e,t,n){return arguments.length<2?o.na:(n=void 0===n?0:n,t?t.indexOf(e,n-1)+1:null)},t.FIXED=function(){throw new Error("FIXED is not implemented")},t.HTML2TEXT=function(e){var t="";return e&&(e instanceof Array?e.forEach((function(e){""!==t&&(t+="\n"),t+=e.replace(/<(?:.|\n)*?>/gm,"")})):t=e.replace(/<(?:.|\n)*?>/gm,"")),t},t.LEFT=function(e,t){return t=void 0===t?1:t,(t=r.parseNumber(t))instanceof Error||"string"!=typeof e?o.value:e?e.substring(0,t):null},t.LEN=function(e){return 0===arguments.length?o.error:"string"==typeof e?e?e.length:0:e.length?e.length:o.value},t.LOWER=function(e){return"string"!=typeof e?o.value:e?e.toLowerCase():e},t.MID=function(e,t,n){if(t=r.parseNumber(t),n=r.parseNumber(n),r.anyIsError(t,n)||"string"!=typeof e)return n;var o=t-1,i=o+n;return e.substring(o,i)},t.NUMBERVALUE=function(e,t,n){return t=void 0===t?".":t,n=void 0===n?",":n,Number(e.replace(t,".").replace(n,""))},t.PRONETIC=function(){throw new Error("PRONETIC is not implemented")},t.PROPER=function(e){return void 0===e||0===e.length?o.value:(!0===e&&(e="TRUE"),!1===e&&(e="FALSE"),isNaN(e)&&"number"==typeof e?o.value:("number"==typeof e&&(e=""+e),e.replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}))))},t.REGEXEXTRACT=function(e,t){if(arguments.length<2)return o.na;var n=e.match(new RegExp(t));return n?n[n.length>1?n.length-1:0]:null},t.REGEXMATCH=function(e,t,n){if(arguments.length<2)return o.na;var r=e.match(new RegExp(t));return n?r:!!r},t.REGEXREPLACE=function(e,t,n){return arguments.length<3?o.na:e.replace(new RegExp(t),n)},t.REPLACE=function(e,t,n,i){return t=r.parseNumber(t),n=r.parseNumber(n),r.anyIsError(t,n)||"string"!=typeof e||"string"!=typeof i?o.value:e.substr(0,t-1)+i+e.substr(t-1+n)},t.REPT=function(e,t){return(t=r.parseNumber(t))instanceof Error?t:new Array(t+1).join(e)},t.RIGHT=function(e,t){return t=void 0===t?1:t,(t=r.parseNumber(t))instanceof Error?t:e?e.substring(e.length-t):o.na},t.SEARCH=function(e,t,n){var r;return"string"!=typeof e||"string"!=typeof t?o.value:(n=void 0===n?0:n,0===(r=t.toLowerCase().indexOf(e.toLowerCase(),n-1)+1)?o.value:r)},t.SPLIT=function(e,t){return e.split(t)},t.SUBSTITUTE=function(e,t,n,r){if(arguments.length<2)return o.na;if(!(e&&t&&n))return e;if(void 0===r)return e.replace(new RegExp(t,"g"),n);for(var i=0,a=0;e.indexOf(t,i)>0;)if(i=e.indexOf(t,i+1),++a===r)return e.substring(0,i)+n+e.substring(i+t.length)},t.T=function(e){return"string"==typeof e?e:""},t.TEXT=function(){throw new Error("TEXT is not implemented")},t.TRIM=function(e){return"string"!=typeof e?o.value:e.replace(/ +/g," ").trim()},t.UNICHAR=t.CHAR,t.UNICODE=t.CODE,t.UPPER=function(e){return"string"!=typeof e?o.value:e.toUpperCase()},t.VALUE=function(){throw new Error("VALUE is not implemented")}},function(e,t){var n=[">",">=","<","<=","=","<>"],r=["operator","literal"];function o(e,t){if(-1===r.indexOf(t))throw new Error("Unsupported token type: "+t);return{value:e,type:t}}function i(e){for(var t,r="",i=[],a=0;a<e.length;a++){var s=e[a];0===a&&n.indexOf(s)>=0?i.push(o(s,"operator")):r+=s}return r.length>0&&i.push(o(("string"!=typeof(t=r)||/^\d+(\.\d+)?$/.test(t)&&(t=-1===t.indexOf(".")?parseInt(t,10):parseFloat(t)),t),"literal")),i.length>0&&"operator"!==i[0].type&&i.unshift(o("=","operator")),i}t.TOKEN_TYPE_OPERATOR="operator",t.TOKEN_TYPE_LITERAL="literal",t.parse=function(e){return i(function(e){for(var t=e.length,n=[],r=0,o="",i="";r<t;){var a=e.charAt(r);switch(a){case">":case"<":case"=":i+=a,o.length>0&&(n.push(o),o="");break;default:i.length>0&&(n.push(i),i=""),o+=a}r++}return o.length>0&&n.push(o),i.length>0&&n.push(i),n}(e))},t.createToken=o,t.compute=function(e){for(var t,n=[],r=0;r<e.length;r++){var o=e[r];switch(o.type){case"operator":t=o.value;break;case"literal":n.push(o.value)}}return function(e,t){var n=!1;switch(t){case">":n=e[0]>e[1];break;case">=":n=e[0]>=e[1];break;case"<":n=e[0]<e[1];break;case"<=":n=e[0]<=e[1];break;case"=":n=e[0]==e[1];break;case"<>":n=e[0]!=e[1]}return n}(n,t)}},function(e,t,n){var r=n(80);t.CELL=function(){throw new Error("CELL is not implemented")},t.ERROR={},t.ERROR.TYPE=function(e){switch(e){case r.nil:return 1;case r.div0:return 2;case r.value:return 3;case r.ref:return 4;case r.name:return 5;case r.num:return 6;case r.na:return 7;case r.data:return 8}return r.na},t.INFO=function(){throw new Error("INFO is not implemented")},t.ISBLANK=function(e){return null===e},t.ISBINARY=function(e){return/^[01]{1,10}$/.test(e)},t.ISERR=function(e){return[r.value,r.ref,r.div0,r.num,r.name,r.nil].indexOf(e)>=0||"number"==typeof e&&(isNaN(e)||!isFinite(e))},t.ISERROR=function(e){return t.ISERR(e)||e===r.na},t.ISEVEN=function(e){return!(1&Math.floor(Math.abs(e)))},t.ISFORMULA=function(){throw new Error("ISFORMULA is not implemented")},t.ISLOGICAL=function(e){return!0===e||!1===e},t.ISNA=function(e){return e===r.na},t.ISNONTEXT=function(e){return"string"!=typeof e},t.ISNUMBER=function(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)},t.ISODD=function(e){return!!(1&Math.floor(Math.abs(e)))},t.ISREF=function(){throw new Error("ISREF is not implemented")},t.ISTEXT=function(e){return"string"==typeof e},t.N=function(e){return this.ISNUMBER(e)?e:e instanceof Date?e.getTime():!0===e?1:!1===e?0:this.ISERROR(e)?e:0},t.NA=function(){return r.na},t.SHEET=function(){throw new Error("SHEET is not implemented")},t.SHEETS=function(){throw new Error("SHEETS is not implemented")},t.TYPE=function(e){return this.ISNUMBER(e)?1:this.ISTEXT(e)?2:this.ISLOGICAL(e)?4:this.ISERROR(e)?16:Array.isArray(e)?64:void 0}},function(e,t,n){var r=n(80),o=n(86),i=new Date(Date.UTC(1900,0,1)),a=[void 0,0,1,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,1,2,3,4,5,6,0],s=[[],[1,2,3,4,5,6,7],[7,1,2,3,4,5,6],[6,0,1,2,3,4,5],[],[],[],[],[],[],[],[7,1,2,3,4,5,6],[6,7,1,2,3,4,5],[5,6,7,1,2,3,4],[4,5,6,7,1,2,3],[3,4,5,6,7,1,2],[2,3,4,5,6,7,1],[1,2,3,4,5,6,7]],l=[[],[6,0],[0,1],[1,2],[2,3],[3,4],[4,5],[5,6],void 0,void 0,void 0,[0,0],[1,1],[2,2],[3,3],[4,4],[5,5],[6,6]];function u(e){return 1===new Date(e,1,29).getMonth()}function c(e,t){return Math.ceil((t-e)/1e3/60/60/24)}function d(e){var t=e>-22038912e5?2:1;return Math.ceil((e-i)/864e5)+t}t.DATE=function(e,t,n){return e=o.parseNumber(e),t=o.parseNumber(t),n=o.parseNumber(n),o.anyIsError(e,t,n)?r.value:e<0||t<0||n<0?r.num:new Date(e,t-1,n)},t.DATEVALUE=function(e){var t,n=2;return"string"!=typeof e?r.value:(t=Date.parse(e),isNaN(t)?r.value:(t<=-22038912e5&&(n=1),Math.ceil((t-i)/864e5)+n))},t.DAY=function(e){var t=o.parseDate(e);return t instanceof Error?t:t.getDate()},t.DAYS=function(e,t){return e=o.parseDate(e),t=o.parseDate(t),e instanceof Error?e:t instanceof Error?t:d(e)-d(t)},t.DAYS360=function(e,t,n){if(n=o.parseBool(n),e=o.parseDate(e),t=o.parseDate(t),e instanceof Error)return e;if(t instanceof Error)return t;if(n instanceof Error)return n;var r,i,a=e.getMonth(),s=t.getMonth();if(n)r=31===e.getDate()?30:e.getDate(),i=31===t.getDate()?30:t.getDate();else{var l=new Date(e.getFullYear(),a+1,0).getDate(),u=new Date(t.getFullYear(),s+1,0).getDate();r=e.getDate()===l?30:e.getDate(),t.getDate()===u?r<30?(s++,i=1):i=30:i=t.getDate()}return 360*(t.getFullYear()-e.getFullYear())+30*(s-a)+(i-r)},t.EDATE=function(e,t){return(e=o.parseDate(e))instanceof Error?e:isNaN(t)?r.value:(t=parseInt(t,10),e.setMonth(e.getMonth()+t),d(e))},t.EOMONTH=function(e,t){return(e=o.parseDate(e))instanceof Error?e:isNaN(t)?r.value:(t=parseInt(t,10),d(new Date(e.getFullYear(),e.getMonth()+t+1,0)))},t.HOUR=function(e){return(e=o.parseDate(e))instanceof Error?e:e.getHours()},t.INTERVAL=function(e){if("number"!=typeof e&&"string"!=typeof e)return r.value;e=parseInt(e,10);var t=Math.floor(e/94608e4);e%=94608e4;var n=Math.floor(e/2592e3);e%=2592e3;var o=Math.floor(e/86400);e%=86400;var i=Math.floor(e/3600);e%=3600;var a=Math.floor(e/60),s=e%=60;return"P"+(t=t>0?t+"Y":"")+(n=n>0?n+"M":"")+(o=o>0?o+"D":"")+"T"+(i=i>0?i+"H":"")+(a=a>0?a+"M":"")+(s=s>0?s+"S":"")},t.ISOWEEKNUM=function(e){if((e=o.parseDate(e))instanceof Error)return e;e.setHours(0,0,0),e.setDate(e.getDate()+4-(e.getDay()||7));var t=new Date(e.getFullYear(),0,1);return Math.ceil(((e-t)/864e5+1)/7)},t.MINUTE=function(e){return(e=o.parseDate(e))instanceof Error?e:e.getMinutes()},t.MONTH=function(e){return(e=o.parseDate(e))instanceof Error?e:e.getMonth()+1},t.NETWORKDAYS=function(e,t,n){return this.NETWORKDAYS.INTL(e,t,1,n)},t.NETWORKDAYS.INTL=function(e,t,n,i){if((e=o.parseDate(e))instanceof Error)return e;if((t=o.parseDate(t))instanceof Error)return t;if(!((n=void 0===n?l[1]:l[n])instanceof Array))return r.value;void 0===i?i=[]:i instanceof Array||(i=[i]);for(var a=0;a<i.length;a++){var s=o.parseDate(i[a]);if(s instanceof Error)return s;i[a]=s}var u=(t-e)/864e5+1,c=u,d=e;for(a=0;a<u;a++){var h=(new Date).getTimezoneOffset()>0?d.getUTCDay():d.getDay(),f=!1;h!==n[0]&&h!==n[1]||(f=!0);for(var v=0;v<i.length;v++){var p=i[v];if(p.getDate()===d.getDate()&&p.getMonth()===d.getMonth()&&p.getFullYear()===d.getFullYear()){f=!0;break}}f&&c--,d.setDate(d.getDate()+1)}return c},t.NOW=function(){return new Date},t.SECOND=function(e){return(e=o.parseDate(e))instanceof Error?e:e.getSeconds()},t.TIME=function(e,t,n){return e=o.parseNumber(e),t=o.parseNumber(t),n=o.parseNumber(n),o.anyIsError(e,t,n)?r.value:e<0||t<0||n<0?r.num:(3600*e+60*t+n)/86400},t.TIMEVALUE=function(e){return(e=o.parseDate(e))instanceof Error?e:(3600*e.getHours()+60*e.getMinutes()+e.getSeconds())/86400},t.TODAY=function(){return new Date},t.WEEKDAY=function(e,t){if((e=o.parseDate(e))instanceof Error)return e;void 0===t&&(t=1);var n=e.getDay();return s[t][n]},t.WEEKNUM=function(e,t){if((e=o.parseDate(e))instanceof Error)return e;if(void 0===t&&(t=1),21===t)return this.ISOWEEKNUM(e);var n=a[t],r=new Date(e.getFullYear(),0,1),i=r.getDay()<n?1:0;return r-=24*Math.abs(r.getDay()-n)*60*60*1e3,Math.floor((e-r)/864e5/7+1)+i},t.WORKDAY=function(e,t,n){return this.WORKDAY.INTL(e,t,1,n)},t.WORKDAY.INTL=function(e,t,n,i){if((e=o.parseDate(e))instanceof Error)return e;if((t=o.parseNumber(t))instanceof Error)return t;if(t<0)return r.num;if(!((n=void 0===n?l[1]:l[n])instanceof Array))return r.value;void 0===i?i=[]:i instanceof Array||(i=[i]);for(var a=0;a<i.length;a++){var s=o.parseDate(i[a]);if(s instanceof Error)return s;i[a]=s}for(var u=0;u<t;){e.setDate(e.getDate()+1);var c=e.getDay();if(c!==n[0]&&c!==n[1]){for(var d=0;d<i.length;d++){var h=i[d];if(h.getDate()===e.getDate()&&h.getMonth()===e.getMonth()&&h.getFullYear()===e.getFullYear()){u--;break}}u++}}return e},t.YEAR=function(e){return(e=o.parseDate(e))instanceof Error?e:e.getFullYear()},t.YEARFRAC=function(e,t,n){if((e=o.parseDate(e))instanceof Error)return e;if((t=o.parseDate(t))instanceof Error)return t;n=n||0;var r=e.getDate(),i=e.getMonth()+1,a=e.getFullYear(),s=t.getDate(),l=t.getMonth()+1,d=t.getFullYear();switch(n){case 0:return 31===r&&31===s?(r=30,s=30):31===r?r=30:30===r&&31===s&&(s=30),(s+30*l+360*d-(r+30*i+360*a))/360;case 1:var h=365;if(a===d||a+1===d&&(i>l||i===l&&r>=s))return(a===d&&u(a)||function(e,t){var n=e.getFullYear(),r=new Date(n,2,1);if(u(n)&&e<r&&t>=r)return!0;var o=t.getFullYear(),i=new Date(o,2,1);return u(o)&&t>=i&&e<i}(e,t)||1===l&&29===s)&&(h=366),c(e,t)/h;var f=d-a+1,v=(new Date(d+1,0,1)-new Date(a,0,1))/1e3/60/60/24/f;return c(e,t)/v;case 2:return c(e,t)/360;case 3:return c(e,t)/365;case 4:return(s+30*l+360*d-(r+30*i+360*a))/360}}},function(e,t,n){"use strict";n.r(t);t.default=["ABS","ACCRINT","ACOS","ACOSH","ACOT","ACOTH","ADD","AGGREGATE","AND","ARABIC","ARGS2ARRAY","ASIN","ASINH","ATAN","ATAN2","ATANH","AVEDEV","AVERAGE","AVERAGEA","AVERAGEIF","AVERAGEIFS","BASE","BESSELI","BESSELJ","BESSELK","BESSELY","BETA.DIST","BETA.INV","BETADIST","BETAINV","BIN2DEC","BIN2HEX","BIN2OCT","BINOM.DIST","BINOM.DIST.RANGE","BINOM.INV","BINOMDIST","BITAND","BITLSHIFT","BITOR","BITRSHIFT","BITXOR","CEILING","CEILINGMATH","CEILINGPRECISE","CHAR","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","CHOOSE","CHOOSE","CLEAN","CODE","COLUMN","COLUMNS","COMBIN","COMBINA","COMPLEX","CONCATENATE","CONFIDENCE","CONFIDENCE.NORM","CONFIDENCE.T","CONVERT","CORREL","COS","COSH","COT","COTH","COUNT","COUNTA","COUNTBLANK","COUNTIF","COUNTIFS","COUNTIN","COUNTUNIQUE","COVARIANCE.P","COVARIANCE.S","CSC","CSCH","CUMIPMT","CUMPRINC","DATE","DATEVALUE","DAY","DAYS","DAYS360","DB","DDB","DEC2BIN","DEC2HEX","DEC2OCT","DECIMAL","DEGREES","DELTA","DEVSQ","DIVIDE","DOLLARDE","DOLLARFR","E","EDATE","EFFECT","EOMONTH","EQ","ERF","ERFC","EVEN","EXACT","EXP","EXPON.DIST","EXPONDIST","F.DIST","F.DIST.RT","F.INV","F.INV.RT","FACT","FACTDOUBLE","FALSE","FDIST","FDISTRT","FIND","FINV","FINVRT","FISHER","FISHERINV","FLATTEN","FLOOR","FORECAST","FREQUENCY","FV","FVSCHEDULE","GAMMA","GAMMA.DIST","GAMMA.INV","GAMMADIST","GAMMAINV","GAMMALN","GAMMALN.PRECISE","GAUSS","GCD","GEOMEAN","GESTEP","GROWTH","GTE","HARMEAN","HEX2BIN","HEX2DEC","HEX2OCT","HOUR","HTML2TEXT","HYPGEOM.DIST","HYPGEOMDIST","IF","IMABS","IMAGINARY","IMARGUMENT","IMCONJUGATE","IMCOS","IMCOSH","IMCOT","IMCSC","IMCSCH","IMDIV","IMEXP","IMLN","IMLOG10","IMLOG2","IMPOWER","IMPRODUCT","IMREAL","IMSEC","IMSECH","IMSIN","IMSINH","IMSQRT","IMSUB","IMSUM","IMTAN","INT","INTERCEPT","INTERVAL","IPMT","IRR","ISBINARY","ISBLANK","ISEVEN","ISLOGICAL","ISNONTEXT","ISNUMBER","ISODD","ISODD","ISOWEEKNUM","ISPMT","ISTEXT","JOIN","KURT","LARGE","LCM","LEFT","LEN","LINEST","LN","LOG","LOG10","LOGEST","LOGNORM.DIST","LOGNORM.INV","LOGNORMDIST","LOGNORMINV","LOWER","LT","LTE","MATCH","MAX","MAXA","MEDIAN","MID","MIN","MINA","MINUS","MINUTE","MIRR","MOD","MODE.MULT","MODE.SNGL","MODEMULT","MODESNGL","MONTH","MROUND","MULTINOMIAL","MULTIPLY","NE","NEGBINOM.DIST","NEGBINOMDIST","NETWORKDAYS","NOMINAL","NORM.DIST","NORM.INV","NORM.S.DIST","NORM.S.INV","NORMDIST","NORMINV","NORMSDIST","NORMSINV","NOT","NOW","NPER","NPV","NUMBERS","OCT2BIN","OCT2DEC","OCT2HEX","ODD","OR","PDURATION","PEARSON","PERCENTILEEXC","PERCENTILEINC","PERCENTRANKEXC","PERCENTRANKINC","PERMUT","PERMUTATIONA","PHI","PI","PMT","POISSON.DIST","POISSONDIST","POW","POWER","PPMT","PROB","PRODUCT","PROPER","PV","QUARTILE.EXC","QUARTILE.INC","QUARTILEEXC","QUARTILEINC","QUOTIENT","RADIANS","RAND","RANDBETWEEN","RANK.AVG","RANK.EQ","RANKAVG","RANKEQ","RATE","REFERENCE","REGEXEXTRACT","REGEXMATCH","REGEXREPLACE","REPLACE","REPT","RIGHT","ROMAN","ROUND","ROUNDDOWN","ROUNDUP","ROW","ROWS","RRI","RSQ","SEARCH","SEC","SECH","SECOND","SERIESSUM","SIGN","SIN","SINH","SKEW","SKEW.P","SKEWP","SLN","SLOPE","SMALL","SPLIT","SPLIT","SQRT","SQRTPI","STANDARDIZE","STDEV.P","STDEV.S","STDEVA","STDEVP","STDEVPA","STDEVS","STEYX","SUBSTITUTE","SUBTOTAL","SUM","SUMIF","SUMIFS","SUMPRODUCT","SUMSQ","SUMX2MY2","SUMX2PY2","SUMXMY2","SWITCH","SYD","T","T.DIST","T.DIST.2T","T.DIST.RT","T.INV","T.INV.2T","TAN","TANH","TBILLEQ","TBILLPRICE","TBILLYIELD","TDIST","TDIST2T","TDISTRT","TIME","TIMEVALUE","TINV","TINV2T","TODAY","TRANSPOSE","TREND","TRIM","TRIMMEAN","TRUE","TRUNC","UNICHAR","UNICODE","UNIQUE","UPPER","VAR.P","VAR.S","VARA","VARP","VARPA","VARS","WEEKDAY","WEEKNUM","WEIBULL.DIST","WEIBULLDIST","WORKDAY","XIRR","XNPV","XOR","YEAR","YEARFRAC"]},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=function e(t,n){(0,o.default)(this,e),this.hot=n,this.plugin=t};t.default=i},function(e,t,n){var r=n(57),o=n(32),i=n(172);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(174),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},function(e,t,n){var r=n(40),o=n(230),i=r.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},function(e,t,n){var r=n(65),o=n(233),i=n(93),a=n(66);e.exports=function(e,t){for(var n=o(t),s=a.f,l=i.f,u=0;u<n.length;u++){var c=n[u];r(e,c)||s(e,c,l(t,c))}}},function(e,t,n){var r=n(106),o=n(120),i=n(177),a=n(47);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=i.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(40);e.exports=r},function(e,t,n){var r=n(65),o=n(74),i=n(175).indexOf,a=n(119);e.exports=function(e,t){var n,s=o(e),l=0,u=[];for(n in s)!r(a,n)&&r(s,n)&&u.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){var r=n(74),o=n(120).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 o(e)}catch(e){return a.slice()}}(e):o(r(e))}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=function(e,t){var n,r,D,L,H=this,F=arguments.length>2&&void 0!==arguments[2]&&arguments[2],U=!1,B=this,V=new h.default(B),Y=!0;t.language=(0,I.getValidLanguageCode)(t.language);var W=new A.MetaManager(t),G=W.getTableMeta(),j=W.getGlobalMeta(),z=(0,P.createUniqueMap)();(0,S.hasValidParameter)(F)&&(0,S.registerAsRootInstance)(this);this.rootElement=e,this.rootDocument=e.ownerDocument,this.rootWindow=this.rootDocument.defaultView,this.isDestroyed=!1,this.renderSuspendedCounter=0,this.executionSuspendedCounter=0,(0,N.startObserving)(this.rootDocument),this.container=this.rootDocument.createElement("div"),this.renderCall=!1,e.insertBefore(this.container,e.firstChild),(0,S.isRootInstance)(this)&&(0,u._injectProductInfo)(t.licenseKey,e);this.guid="ht_".concat((0,E.randomString)()),this.columnIndexMapper=new b.IndexMapper,this.rowIndexMapper=new b.IndexMapper,r=new R.default(B),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid);var K=function(e){var t=e.row,n=e.col;return new O.CellCoords(t>=0?B.rowIndexMapper.getRenderableFromVisualIndex(t):t,n>=0?B.columnIndexMapper.getRenderableFromVisualIndex(n):n)},X=function(e){var t=e.row,n=e.col;return new O.CellCoords(t>=0?B.rowIndexMapper.getVisualFromRenderableIndex(t):t,n>=0?B.columnIndexMapper.getVisualFromRenderableIndex(n):n)},q=new k.Selection(G,{countCols:function(){return B.countCols()},countRows:function(){return B.countRows()},propToCol:function(e){return n.propToCol(e)},isEditorOpened:function(){return!!B.getActiveEditor()&&B.getActiveEditor().isOpened()},countColsTranslated:function(){return H.view.countRenderableColumns()},countRowsTranslated:function(){return H.view.countRenderableRows()},visualToRenderableCoords:K,renderableToVisualCoords:X,isDisabledCellSelection:function(e,t){return B.getCellMeta(e,t).disableVisualSelection}});this.selection=q;var $=function(e){e.hiddenIndexesChanged&&H.selection.refresh()};function Q(e){var t=(0,M.normalizeLanguageCode)(e);(0,I.hasLanguageDictionary)(t)?(B.runHooks("beforeLanguageChange",t),j.language=t,B.runHooks("afterLanguageChange",t)):(0,M.warnUserAboutLanguageRegistration)(e)}function Z(e,t){var n="className"===e?B.rootElement:B.table;if(Y)(0,s.addClass)(n,t);else{var r=[],o=[];j[e]&&(r=Array.isArray(j[e])?j[e]:(0,v.stringToArray)(j[e])),t&&(o=Array.isArray(t)?t:(0,v.stringToArray)(t));var i=(0,v.getDifferenceOfArrays)(r,o),a=(0,v.getDifferenceOfArrays)(o,r);i.length&&(0,s.removeClass)(n,i),a.length&&(0,s.addClass)(n,a)}j[e]=t}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 ee(e){var t=e.replace(",",".");return!1===isNaN(parseFloat(t))?parseFloat(t):e}function te(e,t,r){if(e.length){var o=B.getActiveEditor(),a=B.runHooks("beforeChange",e,t||"edit"),l=!0;if(!1!==a){var u,c=new J;c.onQueueEmpty=function(e){o&&l&&o.cancelChanges(),r(e)};for(var d=e.length-1;d>=0;d--)if(null===e[d])e.splice(d,1);else{var h=(0,i.default)(e[d],4),f=h[0],v=h[1],p=h[3],g=n.propToCol(v),m=B.getCellMeta(f,g);"numeric"===m.type&&"string"==typeof p&&((u=p).length>0&&/^\s*[+-.]?\s*(?:(?:\d+(?:(\.|,)\d+)?(?:e[+-]?\d+)?)|(?:0x[a-f\d]+))\s*$/.test(u))&&(e[d][3]=ee(p)),B.getCellValidator(m)&&(c.addValidatorToQueue(),B.validateCell(e[d][3],m,function(t,n){return function(r){if("boolean"!=typeof r)throw new Error("Validation error: result is not boolean");if(!1===r&&!1===n.allowInvalid){l=!1,e.splice(t,1),n.valid=!0;var o=B.getCell(n.visualRow,n.visualCol);null!==o&&(0,s.removeClass)(o,G.invalidCellClassName)}c.removeValidatorFormQueue()}}(d,m),t))}c.checkIfQueueIsEmpty()}else o&&o.cancelChanges()}}function ne(e,t){var r=e.length-1;if(!(r<0)){for(;r>=0;r--){var o=!1;if(null!==e[r]){if(null!==e[r][2]&&void 0!==e[r][2]||null!==e[r][3]&&void 0!==e[r][3]){if(G.allowInsertRow)for(;e[r][0]>B.countRows()-1;){var i=n.createRow(void 0,void 0,t);if(!(i>=1)){o=!0;break}W.createRow(null,i)}if("array"===B.dataType&&(!G.columns||0===G.columns.length)&&G.allowInsertColumn)for(;n.propToCol(e[r][1])>B.countCols()-1;){var a=n.createCol(void 0,void 0,t);if(!(a>=1)){o=!0;break}W.createColumn(null,a)}o||n.set(e[r][0],e[r][1],e[r][3])}}else e.splice(r,1)}B.forceFullRender=!0,D.adjustRowsAndCols(),B.runHooks("beforeChangeRender",e,t),L.lockEditor(),B._refreshBorders(null),L.unlockEditor(),B.view.adjustElementsSize(),B.runHooks("afterChange",e,t||"edit");var s=B.getActiveEditor();s&&(0,u.isDefined)(s.refreshValue)&&s.refreshValue()}}function re(e,t,n){return Array.isArray(e)?e:[[e,t,n]]}this.columnIndexMapper.addLocalHook("cacheUpdated",$),this.rowIndexMapper.addLocalHook("cacheUpdated",$),this.selection.addLocalHook("beforeSetRangeStart",(function(e){H.runHooks("beforeSetRangeStart",e)})),this.selection.addLocalHook("beforeSetRangeStartOnly",(function(e){H.runHooks("beforeSetRangeStartOnly",e)})),this.selection.addLocalHook("beforeSetRangeEnd",(function(e){H.runHooks("beforeSetRangeEnd",e),e.row<0&&(e.row=H.view.wt.wtTable.getFirstVisibleRow()),e.col<0&&(e.col=H.view.wt.wtTable.getFirstVisibleColumn())})),this.selection.addLocalHook("afterSetRangeEnd",(function(e){var t=(0,f.createObjectPropListener)(!1),n=H.selection.getSelectedRange(),r=n.current(),o=r.from,i=r.to,a=n.size()-1;H.runHooks("afterSelection",o.row,o.col,i.row,i.col,t,a),H.runHooks("afterSelectionByProp",o.row,B.colToProp(o.col),i.row,B.colToProp(i.col),t,a);var l=H.selection.isSelectedByAnyHeader(),u=H.selection.selectedRange.current(),c=!0;U&&(c=!1),t.isTouched()&&(c=!t.value);var d=H.selection.isSelectedByRowHeader(),h=H.selection.isSelectedByColumnHeader();!1!==c&&(l?d?H.view.scrollViewportVertically(B.rowIndexMapper.getRenderableFromVisualIndex(e.row)):h&&H.view.scrollViewportHorizontally(B.columnIndexMapper.getRenderableFromVisualIndex(e.col)):u&&!H.selection.isMultiple()?H.view.scrollViewport(K(u.from)):H.view.scrollViewport(K(e))),d&&h?(0,s.addClass)(H.rootElement,["ht__selection--rows","ht__selection--columns"]):d?((0,s.removeClass)(H.rootElement,"ht__selection--columns"),(0,s.addClass)(H.rootElement,"ht__selection--rows")):h?((0,s.removeClass)(H.rootElement,"ht__selection--rows"),(0,s.addClass)(H.rootElement,"ht__selection--columns")):(0,s.removeClass)(H.rootElement,["ht__selection--rows","ht__selection--columns"]),H._refreshBorders(null)})),this.selection.addLocalHook("afterSelectionFinished",(function(e){var t=e.length-1,n=e[t],r=n.from,o=n.to;H.runHooks("afterSelectionEnd",r.row,r.col,o.row,o.col,t),H.runHooks("afterSelectionEndByProp",r.row,B.colToProp(r.col),o.row,B.colToProp(o.col),t)})),this.selection.addLocalHook("afterIsMultipleSelection",(function(e){var t=H.runHooks("afterIsMultipleSelection",e.value);e.value&&(e.value=t)})),this.selection.addLocalHook("beforeModifyTransformStart",(function(e){H.runHooks("modifyTransformStart",e)})),this.selection.addLocalHook("afterModifyTransformStart",(function(e,t,n){H.runHooks("afterModifyTransformStart",e,t,n)})),this.selection.addLocalHook("beforeModifyTransformEnd",(function(e){H.runHooks("modifyTransformEnd",e)})),this.selection.addLocalHook("afterModifyTransformEnd",(function(e,t,n){H.runHooks("afterModifyTransformEnd",e,t,n)})),this.selection.addLocalHook("afterDeselect",(function(){L.destroyEditor(),H._refreshBorders(),(0,s.removeClass)(H.rootElement,["ht__selection--rows","ht__selection--columns"]),H.runHooks("afterDeselect")})),this.selection.addLocalHook("insertRowRequire",(function(e){H.alter("insert_row",e,1,"auto")})),this.selection.addLocalHook("insertColRequire",(function(e){H.alter("insert_col",e,1,"auto")})),D={alter:function(e,t){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3?arguments[3]:void 0,l=arguments.length>4?arguments[4]:void 0,c=function(e){if(0===e.length)return[];var t=(0,a.default)(e);return t.sort((function(e,t){var n=(0,i.default)(e,1)[0],r=(0,i.default)(t,1)[0];return n===r?0:n>r?1:-1})),(0,v.arrayReduce)(t,(function(e,t){var n=(0,i.default)(t,2),r=n[0],o=n[1],a=e[e.length-1],s=(0,i.default)(a,2),l=s[0]+s[1];if(r<=l){var u=Math.max(o-(l-r),0);a[1]+=u}else e.push([r,o]);return e}),[t[0]])};switch(e){case"insert_row":var d=B.countSourceRows();if(G.maxRows===d)return;if(t=(0,u.isDefined)(t)?t:d,r=n.createRow(t,o,s)){W.createRow(B.toPhysicalRow(t),o);var h=q.selectedRange.current(),f=null==h?void 0:h.from,p=null==f?void 0:f.row;if((0,u.isDefined)(p)&&p>=t){var g=h.to,m=g.row,y=g.col,E=f.col;q.isSelectedByRowHeader()&&(E=-1),q.getSelectedRange().pop(),q.setRangeStartOnly(new O.CellCoords(p+r,E),!0),q.setRangeEnd(new O.CellCoords(m+r,y))}else B._refreshBorders()}break;case"insert_col":if(r=n.createCol(t,o,s)){if(W.createColumn(B.toPhysicalColumn(t),o),Array.isArray(G.colHeaders)){var w=[t,0];w.length+=r,Array.prototype.splice.apply(G.colHeaders,w)}var C=q.selectedRange.current(),R=null==C?void 0:C.from,T=null==R?void 0:R.col;if((0,u.isDefined)(T)&&T>=t){var b=C.to,S=b.row,_=b.col,I=R.row;q.isSelectedByColumnHeader()&&(I=-1),q.getSelectedRange().pop(),q.setRangeStartOnly(new O.CellCoords(I,T+r),!0),q.setRangeEnd(new O.CellCoords(S,_+r))}else B._refreshBorders()}break;case"remove_row":var M=function(e){var t=0;(0,v.arrayEach)(e,(function(e){var r=(0,i.default)(e,2),o=r[0],a=r[1],l=(0,u.isEmpty)(o)?B.countRows()-1:Math.max(o-t,0);if(Number.isInteger(o)&&(o=Math.max(o-t,0)),n.removeRow(o,a,s)){W.removeRow(B.toPhysicalRow(l),a);var c=B.countRows(),d=G.fixedRowsTop;d>=l+1&&(G.fixedRowsTop-=Math.min(a,d-l));var h=G.fixedRowsBottom;h&&l>=c-h&&(G.fixedRowsBottom-=Math.min(a,h)),t+=a}}))};Array.isArray(t)?M(c(t)):M([[t,o]]),D.adjustRowsAndCols(),B._refreshBorders();break;case"remove_col":var N=function(e){var t=0;(0,v.arrayEach)(e,(function(e){var r=(0,i.default)(e,2),o=r[0],a=r[1],l=(0,u.isEmpty)(o)?B.countCols()-1:Math.max(o-t,0),c=B.toPhysicalColumn(l);if(Number.isInteger(o)&&(o=Math.max(o-t,0)),n.removeCol(o,a,s)){W.removeColumn(c,a);var d=G.fixedColumnsLeft;d>=l+1&&(G.fixedColumnsLeft-=Math.min(a,d-l)),Array.isArray(G.colHeaders)&&(void 0===c&&(c=-1),G.colHeaders.splice(c,a)),t+=a}}))};Array.isArray(t)?N(c(t)):N([[t,o]]),D.adjustRowsAndCols(),B._refreshBorders();break;default:throw new Error('There is no such action "'.concat(e,'"'))}l||D.adjustRowsAndCols()},adjustRowsAndCols:function(){var e,t=G.minRows,r=G.minSpareRows,o=G.minCols,i=G.minSpareCols;if(t){var a=B.countRows();a<t&&n.createRow(a,t-a,"auto")}if(r){var s=B.countEmptyRows(!0);if(s<r){var l=r-s,u=Math.min(l,G.maxRows-B.countSourceRows());n.createRow(B.countRows(),u,"auto")}}(o||i)&&(e=B.countEmptyCols(!0));var c=B.countCols();if(o&&!G.columns&&c<o){var d=o-c;e+=d,n.createCol(c,d,"auto")}if(i&&!G.columns&&"array"===B.dataType&&e<i){c=B.countCols();var h=i-e,f=Math.min(h,G.maxCols-c);n.createCol(c,f,"auto")}var p=B.countRows(),g=B.countCols();0!==p&&0!==g||q.deselect(),q.isSelected()&&(0,v.arrayEach)(q.selectedRange,(function(e){var t=!1,n=e.from.row,r=e.from.col,o=e.to.row,i=e.to.col;n>p-1?(t=!0,o>(n=p-1)&&(o=n)):o>p-1&&(t=!0,n>(o=p-1)&&(n=o)),r>g-1?(t=!0,i>(r=g-1)&&(i=r)):i>g-1&&(t=!0,r>(i=g-1)&&(r=i)),t&&B.selectCell(n,r,o,i)})),B.view&&B.view.adjustElementsSize()},populateFromArray:function(e,t,n,r,i,s,l){var c,d,h,v,p,g,m,y,E=[],w={};if(0===(d=t.length))return!1;switch(i){case"shift_down":for(p=n?n.col-e.col+1:0,g=n?n.row-e.row+1:0,h=0,v=(t=(0,T.translateRowsToColumns)(t)).length,m=Math.max(v,p);h<m;h++)if(h<v){var C;for(c=0,d=t[h].length;c<g-d;c++)t[h].push(t[h][c%d]);t[h].unshift(e.col+h,e.row,0),(C=B).spliceCol.apply(C,(0,a.default)(t[h]))}else{var R;t[h%v][0]=e.col+h,(R=B).spliceCol.apply(R,(0,a.default)(t[h%v]))}break;case"shift_right":for(p=n?n.col-e.col+1:0,g=n?n.row-e.row+1:0,c=0,d=t.length,y=Math.max(d,g);c<y;c++)if(c<d){var b;for(h=0,v=t[c].length;h<p-v;h++)t[c].push(t[c][h%v]);t[c].unshift(e.row+c,e.col,0),(b=B).spliceRow.apply(b,(0,a.default)(t[c]))}else{var S;t[c%d][0]=e.row+c,(S=B).spliceRow.apply(S,(0,a.default)(t[c%d]))}break;case"overwrite":default:w.row=e.row,w.col=e.col;var O,_={row:n&&e?n.row-e.row+1:1,col:n&&e?n.col-e.col+1:1},I=0,M=0,N=!0,k=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=t[e%t.length];return null!==n?r[n%r.length]:r},A=t.length,P=n?n.row-e.row+1:0;for(d=n?P:Math.max(A,P),c=0;c<d&&!(n&&w.row>n.row&&P>A||!G.allowInsertRow&&w.row>B.countRows()-1||w.row>=G.maxRows);c++){var x=c-I,D=k(x).length,L=n?n.col-e.col+1:0;if(v=n?L:Math.max(D,L),w.col=e.col,O=B.getCellMeta(w.row,w.col),"CopyPaste.paste"!==r&&"Autofill.fill"!==r||!O.skipRowOnPaste){for(M=0,h=0;h<v&&!(n&&w.col>n.col&&L>D||!G.allowInsertColumn&&w.col>B.countCols()-1||w.col>=G.maxCols);h++)if(O=B.getCellMeta(w.row,w.col),"CopyPaste.paste"!==r&&"Autofill.fill"!==r||!O.skipColumnOnPaste)if(O.readOnly&&"UndoRedo.undo"!==r)w.col+=1;else{var H=h-M,F=k(x,H),U=B.getDataAtCell(w.row,w.col),V={row:x,col:H};if("Autofill.fill"===r){var Y=B.runHooks("beforeAutofillInsidePopulate",V,s,t,l,{},_);Y&&(F=(0,u.isUndefined)(Y.value)?F:Y.value)}if(null!==F&&"object"===(0,o.default)(F))if(Array.isArray(F)&&null===U&&(U=[]),null===U||"object"!==(0,o.default)(U))N=!1;else{var W=(0,f.duckSchema)(Array.isArray(U)?U:U[0]||U),j=(0,f.duckSchema)(Array.isArray(F)?F:F[0]||F);(0,f.isObjectEqual)(W,j)?F=(0,f.deepClone)(F):N=!1}else null!==U&&"object"===(0,o.default)(U)&&(N=!1);N&&E.push([w.row,w.col,F]),N=!0,w.col+=1}else M+=1,w.col+=1,v+=1;w.row+=1}else I+=1,w.row+=1,d+=1}B.setDataAtCell(E,null,null,r||"populateFromArray")}}},this.init=function(){r.setData(G.data),B.runHooks("beforeInit"),((0,c.isMobileBrowser)()||(0,c.isIpadOS)())&&(0,s.addClass)(B.rootElement,"mobile"),this.updateSettings(G,!0),this.view=new C.default(this),L=d.default.getInstance(B,G,q),B.runHooks("init"),this.forceFullRender=!0,this.view.render(),"object"===(0,o.default)(Y)&&(B.runHooks("afterChange",Y[0],Y[1]),Y=!1),B.runHooks("afterInit")},this.validateCell=function(e,t,n,r){var o,i=B.getCellValidator(t);function a(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(r&&!0!==t.hidden){var o=t.visualCol,i=t.visualRow,a=B.getCell(i,o,!0);if(a&&"TH"!==a.nodeName){var s=B.rowIndexMapper.getRenderableFromVisualIndex(i),l=B.columnIndexMapper.getRenderableFromVisualIndex(o);B.view.wt.wtSettings.settings.cellRenderer(s,l,a)}n(e)}else n(e)}(0,u.isRegExp)(i)&&(o=i,i=function(e,t){t(o.test(e))}),(0,l.isFunction)(i)?(e=B.runHooks("beforeValidate",e,t.visualRow,t.prop,r),B._registerImmediate((function(){i.call(t,e,(function(n){B&&(n=B.runHooks("afterValidate",n,e,t.visualRow,t.prop,r),t.valid=n,a(n),B.runHooks("postAfterValidate",n,e,t.visualRow,t.prop,r))}))}))):B._registerImmediate((function(){t.valid=!0,a(t.valid,!1)}))},this.setDataAtCell=function(e,t,i,a){var s,l,u,c=re(e,t,i),d=[],h=a;for(s=0,l=c.length;s<l;s++){if("object"!==(0,o.default)(c[s]))throw new Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof c[s][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`");u=c[s][1]>=this.countCols()?c[s][1]:n.colToProp(c[s][1]),d.push([c[s][0],u,r.getAtCell(this.toPhysicalRow(c[s][0]),c[s][1]),c[s][2]])}h||"object"!==(0,o.default)(e)||(h=t),B.runHooks("afterSetDataAtCell",d,h),te(d,h,(function(){ne(d,h)}))},this.setDataAtRowProp=function(e,t,n,i){var a,s,l=re(e,t,n),u=[],c=i;for(a=0,s=l.length;a<s;a++)u.push([l[a][0],l[a][1],r.getAtCell(this.toPhysicalRow(l[a][0]),l[a][1]),l[a][2]]);c||"object"!==(0,o.default)(e)||(c=t),B.runHooks("afterSetDataAtRowProp",u,c),te(u,c,(function(){ne(u,c)}))},this.listen=function(){B&&!B.isListening()&&(x=B.guid,B.runHooks("afterListen"))},this.unlisten=function(){this.isListening()&&(x=null,B.runHooks("afterUnlisten"))},this.isListening=function(){return x===B.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];B._refreshBorders(e,t)},this.populateFromArray=function(e,t,n,r,i,a,s,l,u){if("object"!==(0,o.default)(n)||"object"!==(0,o.default)(n[0]))throw new Error("populateFromArray parameter `input` must be an array of arrays");var c="number"==typeof r?new O.CellCoords(r,i):null;return D.populateFromArray(new O.CellCoords(e,t),n,c,a,s,l,u)},this.spliceCol=function(e,t,r){for(var o,i=arguments.length,a=new Array(i>3?i-3:0),s=3;s<i;s++)a[s-3]=arguments[s];return(o=n).spliceCol.apply(o,[e,t,r].concat(a))},this.spliceRow=function(e,t,r){for(var o,i=arguments.length,a=new Array(i>3?i-3:0),s=3;s<i;s++)a[s-3]=arguments[s];return(o=n).spliceRow.apply(o,[e,t,r].concat(a))},this.getSelected=function(){if(q.isSelected())return(0,v.arrayMap)(q.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(q.isSelected())return Array.from(q.getSelectedRange())},this.getSelectedRangeLast=function(){var e,t=this.getSelectedRange();return t&&t.length>0&&(e=t[t.length-1]),e},this.emptySelectedCells=function(e){var t=this;if(q.isSelected()&&0!==this.countRows()&&0!==this.countCols()){var n=[];(0,v.arrayEach)(q.getSelectedRange(),(function(e){var r=e.getTopLeftCorner(),o=e.getBottomRightCorner();(0,w.rangeEach)(r.row,o.row,(function(e){(0,w.rangeEach)(r.col,o.col,(function(r){t.getCellMeta(e,r).readOnly||n.push([e,r,null])}))}))})),n.length>0&&this.setDataAtCell(n,e)}},this.isRenderSuspended=function(){return this.renderSuspendedCounter>0},this.suspendRender=function(){this.renderSuspendedCounter+=1},this.resumeRender=function(){var e=this.renderSuspendedCounter-1;this.renderSuspendedCounter=Math.max(e,0),this.isRenderSuspended()||e!==this.renderSuspendedCounter||(this.renderCall?this.render():this._refreshBorders(null))},this.render=function(){this.view&&(this.renderCall=!0,this.forceFullRender=!0,this.isRenderSuspended()||(L.lockEditor(),this._refreshBorders(null),L.unlockEditor()))},this.batchRender=function(e){this.suspendRender();var t=e();return this.resumeRender(),t},this.isExecutionSuspended=function(){return this.executionSuspendedCounter>0},this.suspendExecution=function(){this.executionSuspendedCounter+=1,this.columnIndexMapper.suspendOperations(),this.rowIndexMapper.suspendOperations()},this.resumeExecution=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.executionSuspendedCounter-1;this.executionSuspendedCounter=Math.max(t,0),(!this.isExecutionSuspended()&&t===this.executionSuspendedCounter||e)&&(this.columnIndexMapper.resumeOperations(),this.rowIndexMapper.resumeOperations())},this.batchExecution=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.suspendExecution();var n=e();return this.resumeExecution(t),n},this.batch=function(e){this.suspendRender(),this.suspendExecution();var t=e();return this.resumeExecution(),this.resumeRender(),t},this.refreshDimensions=function(){if(B.view){var e=B.view.getLastSize(),t=e.width,n=e.height,r=B.rootElement.getBoundingClientRect(),o=r.width,i=r.height,a=o!==t||i!==n;!1===B.runHooks("beforeRefreshDimensions",{width:t,height:n},{width:o,height:i},a)||((a||B.view.wt.wtOverlays.scrollableElement===B.rootWindow)&&(B.view.setLastSize(o,i),B.render()),B.runHooks("afterRefreshDimensions",{width:t,height:n},{width:o,height:i},a))}},this.loadData=function(e){if(Array.isArray(G.dataSchema)?B.dataType="array":(0,l.isFunction)(G.dataSchema)?B.dataType="function":B.dataType="object",n&&n.destroy(),n=new A.DataMap(B,e,G),"object"===(0,o.default)(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((0,o.default)(e)," given)"));var t,i=n.getSchema();e=[];var a,s=0;for(s=0,a=G.startRows;s<a;s++)if("object"!==B.dataType&&"function"!==B.dataType||!G.dataSchema)if("array"===B.dataType)t=(0,f.deepClone)(i[0]),e.push(t);else{t=[];for(var u=0,c=G.startCols;u<c;u++)t.push(null);e.push(t)}else t=(0,f.deepClone)(i),e.push(t)}Array.isArray(e[0])&&(B.dataType="array"),G.data=e,B.runHooks("beforeLoadData",e,Y),n.dataSource=e,r.data=e,r.dataType=B.dataType,r.colToProp=n.colToProp.bind(n),r.propToCol=n.propToCol.bind(n),r.countCachedColumns=n.countCachedColumns.bind(n),W.clearCellsCache(),B.initIndexMappers(),D.adjustRowsAndCols(),B.runHooks("afterLoadData",e,Y),Y?Y=[null,"loadData"]:(B.runHooks("afterChange",null,"loadData"),B.render())},this.initIndexMappers=function(){var e=G.columns,t=0;if(Array.isArray(e))t=e.length;else if((0,l.isFunction)(e))if("array"===B.dataType)for(var r=this.countSourceCols(),o=0;o<r;o+=1)e(o)&&(t+=1);else"object"!==B.dataType&&"function"!==B.dataType||(t=n.colToPropCache.length);else if((0,u.isDefined)(G.dataSchema)){var i=n.getSchema();t=Array.isArray(i)?i.length:(0,f.deepObjectSize)(i)}else t=this.countSourceCols();this.columnIndexMapper.initToLength(t),this.rowIndexMapper.initToLength(this.countSourceRows())},this.getData=function(e,t,r,o){return(0,u.isUndefined)(e)?n.getAll():n.getRange(new O.CellCoords(e,t),new O.CellCoords(r,o),n.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,r,o){return n.getCopyableText(new O.CellCoords(e,t),new O.CellCoords(r,o))},this.getCopyableData=function(e,t){return n.getCopyable(e,n.colToProp(t))},this.getSchema=function(){return n.getSchema()},this.updateSettings=function(e){var t,r,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=!1;if((0,u.isDefined)(e.rows))throw new Error('The "rows" setting is no longer supported. Do you mean startRows, minRows or maxRows?');if((0,u.isDefined)(e.cols))throw new Error('The "cols" setting is no longer supported. Do you mean startCols, minCols or maxCols?');if((0,u.isDefined)(e.ganttChart))throw new Error('Since 8.0.0 the "ganttChart" setting is no longer supported.');for(t in e)"data"!==t&&("language"!==t?"className"===t?Z("className",e.className):"tableClassName"===t&&B.table?(Z("tableClassName",e.tableClassName),B.view.wt.wtOverlays.syncOverlayTableClassNames()):_.default.getSingleton().isRegistered(t)||_.default.getSingleton().isDeprecated(t)?((0,l.isFunction)(e[t])||Array.isArray(e[t]))&&(e[t].initialHook=!0,B.addHook(t,e[t])):!o&&(0,f.hasOwnProperty)(e,t)&&(j[t]=e[t]):Q(e.language));void 0===e.data&&void 0===G.data?B.loadData(null):void 0!==e.data?B.loadData(e.data):void 0!==e.columns&&(n.createMap(),B.initIndexMappers());var a=B.countCols(),s=G.columns;if(s&&(0,l.isFunction)(s)&&(i=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||W.clearCache(),a>0)for(t=0,r=0;t<a;t++){if(s){var c=i?s(t):s[r];c&&W.updateColumnMeta(r,c)}r+=1}(0,u.isDefined)(e.cell)&&(0,f.objectEach)(e.cell,(function(e){B.setCellMetaObject(e.row,e.col,e)})),B.runHooks("afterCellMetaReset");var d=B.rootElement.style.height;""!==d&&(d=parseInt(B.rootElement.style.height,10));var h=e.height;if((0,l.isFunction)(h)&&(h=h()),o){var v=B.rootElement.getAttribute("style");v&&B.rootElement.setAttribute("data-initialstyle",B.rootElement.getAttribute("style"))}if(null===h){var p=B.rootElement.getAttribute("data-initialstyle");p&&(p.indexOf("height")>-1||p.indexOf("overflow")>-1)?B.rootElement.setAttribute("style",p):(B.rootElement.style.height="",B.rootElement.style.overflow="")}else void 0!==h&&(B.rootElement.style.height=isNaN(h)?"".concat(h):"".concat(h,"px"),B.rootElement.style.overflow="hidden");if(void 0!==e.width){var g=e.width;(0,l.isFunction)(g)&&(g=g()),B.rootElement.style.width=isNaN(g)?"".concat(g):"".concat(g,"px")}o||(B.view&&(B.view.wt.wtViewport.resetHasOversizedColumnHeadersMarked(),B.view.wt.exportSettingsAsClassNames()),B.runHooks("afterUpdateSettings",e)),D.adjustRowsAndCols(),B.view&&!Y&&(B.forceFullRender=!0,L.lockEditor(),B._refreshBorders(null),L.unlockEditor()),o||!B.view||""!==d&&""!==h&&void 0!==h||d===h||B.view.wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){var e=B.getSelectedLast();if(G.getValue){if((0,l.isFunction)(G.getValue))return G.getValue.call(B);if(e)return B.getData()[e[0][0]][G.getValue]}else if(e)return B.getDataAtCell(e[0],e[1])},this.getSettings=function(){return G},this.clear=function(){this.selectAll(),this.emptySelectedCells()},this.alter=function(e,t,n,r,o){D.alter(e,t,n,r,o)},this.getCell=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t,o=e;if(t>=0){if(this.columnIndexMapper.isHidden(this.toPhysicalColumn(t)))return null;r=this.columnIndexMapper.getRenderableFromVisualIndex(t)}if(e>=0){if(this.rowIndexMapper.isHidden(this.toPhysicalRow(e)))return null;o=this.rowIndexMapper.getRenderableFromVisualIndex(e)}return null===o||null===r?null:B.view.getCellAtCoords(new O.CellCoords(o,r),n)},this.getCoords=function(e){var t=this.view.wt.wtTable.getCoords(e);if(null===t)return null;var n=t.row,r=t.col,o=n,i=r;return n>=0&&(o=this.rowIndexMapper.getVisualFromRenderableIndex(n)),r>=0&&(i=this.columnIndexMapper.getVisualFromRenderableIndex(r)),new O.CellCoords(o,i)},this.colToProp=function(e){return n.colToProp(e)},this.propToCol=function(e){return n.propToCol(e)},this.toVisualRow=function(e){return H.rowIndexMapper.getVisualFromPhysicalIndex(e)},this.toVisualColumn=function(e){return H.columnIndexMapper.getVisualFromPhysicalIndex(e)},this.toPhysicalRow=function(e){return H.rowIndexMapper.getPhysicalFromVisualIndex(e)},this.toPhysicalColumn=function(e){return H.columnIndexMapper.getPhysicalFromVisualIndex(e)},this.getDataAtCell=function(e,t){return n.get(e,n.colToProp(t))},this.getDataAtRowProp=function(e,t){return n.get(e,t)},this.getDataAtCol=function(e){var t;return(t=[]).concat.apply(t,(0,a.default)(n.getRange(new O.CellCoords(0,e),new O.CellCoords(G.data.length-1,e),n.DESTINATION_RENDERER)))},this.getDataAtProp=function(e){var t,r=n.getRange(new O.CellCoords(0,n.propToCol(e)),new O.CellCoords(G.data.length-1,n.propToCol(e)),n.DESTINATION_RENDERER);return(t=[]).concat.apply(t,(0,a.default)(r))},this.getSourceData=function(e,t,n,o){return void 0===e?r.getData():r.getByRange(new O.CellCoords(e,t),new O.CellCoords(n,o))},this.getSourceDataArray=function(e,t,n,o){return void 0===e?r.getData(!0):r.getByRange(new O.CellCoords(e,t),new O.CellCoords(n,o),!0)},this.getSourceDataAtCol=function(e){return r.getAtColumn(e)},this.setSourceDataAtCell=function(e,t,n,o){var a=re(e,t,n),s=this.hasHook("afterSetSourceDataAtCell"),l=[];s&&(0,v.arrayEach)(a,(function(e){var t=(0,i.default)(e,3),n=t[0],o=t[1],a=t[2];l.push([n,o,r.getAtCell(n,o),a])})),(0,v.arrayEach)(a,(function(e){var t=(0,i.default)(e,3),n=t[0],o=t[1],a=t[2];r.setAtCell(n,o,a)})),s&&this.runHooks("afterSetSourceDataAtCell",l,o),this.render();var c=B.getActiveEditor();c&&(0,u.isDefined)(c.refreshValue)&&c.refreshValue()},this.getSourceDataAtRow=function(e){return r.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return r.getAtCell(e,t)},this.getDataAtRow=function(e){return n.getRange(new O.CellCoords(e,0),new O.CellCoords(e,this.countCols()-1),n.DESTINATION_RENDERER)[0]||[]},this.getDataType=function(e,t,n,r){var o=this,i=void 0===e?[0,0,this.countRows(),this.countCols()]:[e,t,n,r],a=i[0],s=i[1],l=i[2],u=i[3],c=null,d=null;void 0===l&&(l=a),void 0===u&&(u=s);var h="mixed";return(0,w.rangeEach)(Math.max(Math.min(a,l),0),Math.max(a,l),(function(e){var t=!0;return(0,w.rangeEach)(Math.max(Math.min(s,u),0),Math.max(s,u),(function(n){var r=o.getCellMeta(e,n);return d=r.type,c?t=c===d:c=d,t})),h=t?d:"mixed",t})),h},this.removeCellMeta=function(e,t,n){var r=[this.toPhysicalRow(e),this.toPhysicalColumn(t)],o=r[0],i=r[1],a=W.getCellMeta(o,i,n);!1!==B.runHooks("beforeRemoveCellMeta",e,t,n,a)&&(W.removeCellMeta(o,i,n),B.runHooks("afterRemoveCellMeta",e,t,n,a)),a=null},this.spliceCellsMeta=function(e){for(var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];if(o.length>0&&!Array.isArray(o[0]))throw new Error("The 3rd argument (cellMetaRows) has to be passed as an array of cell meta objects array.");n>0&&W.removeRow(this.toPhysicalRow(e),n),o.length>0&&(0,v.arrayEach)(o.reverse(),(function(n){W.createRow(t.toPhysicalRow(e)),(0,v.arrayEach)(n,(function(n,r){return t.setCellMetaObject(e,r,n)}))}))},this.setCellMetaObject=function(e,t,n){var r=this;"object"===(0,o.default)(n)&&(0,f.objectEach)(n,(function(n,o){r.setCellMeta(e,t,o,n)}))},this.setCellMeta=function(e,t,n,r){if(!1!==B.runHooks("beforeSetCellMeta",e,t,n,r)){var o=e,i=t;e<this.countRows()&&(o=this.toPhysicalRow(e)),t<this.countCols()&&(i=this.toPhysicalColumn(t)),W.setCellMeta(o,i,n,r),B.runHooks("afterSetCellMeta",e,t,n,r)}},this.getCellsMeta=function(){return W.getCellsMeta()},this.getCellMeta=function(e,t){var r=this.toPhysicalRow(e),o=this.toPhysicalColumn(t);null===r&&(r=e),null===o&&(o=t);var i=n.colToProp(t),a=W.getCellMeta(r,o);if(a.row=r,a.col=o,a.visualRow=e,a.visualCol=t,a.prop=i,a.instance=B,B.runHooks("beforeGetCellMeta",e,t,a),B.hasHook("beforeGetCellMeta")&&(0,f.hasOwnProperty)(a,"type")&&W.updateCellMeta(r,o,{type:a.type}),a.cells){var s=a.cells(r,o,i);s&&W.updateCellMeta(r,o,s)}return B.runHooks("afterGetCellMeta",e,t,a),a},this.getCellMetaAtRow=function(e){return W.getCellsMetaAtRow(e)},this.isColumnModificationAllowed=function(){return!("object"===B.dataType||G.columns)};var oe=(0,T.cellMethodLookupFactory)("renderer");this.getCellRenderer=function(e,t){return(0,m.getRenderer)(oe.call(this,e,t))},this.getCellEditor=(0,T.cellMethodLookupFactory)("editor");var ie=(0,T.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 r=new J;e&&(r.onQueueEmpty=e);for(var o=B.countRows()-1;o>=0;)if(void 0===t||-1!==t.indexOf(o)){for(var i=B.countCols()-1;i>=0;)void 0===n||-1!==n.indexOf(i)?(r.addValidatorToQueue(),B.validateCell(B.getDataAtCell(o,i),B.getCellMeta(o,i),(function(e){if("boolean"!=typeof e)throw new Error("Validation error: result is not boolean");!1===e&&(r.valid=!1),r.removeValidatorFormQueue()}),"validateCells"),i-=1):i-=1;o-=1}else o-=1;r.checkIfQueueIsEmpty()},this.getRowHeader=function(e){var t=G.rowHeaders,n=e;return void 0!==n&&(n=B.runHooks("modifyRowHeader",n)),void 0===n?(t=[],(0,w.rangeEach)(B.countRows()-1,(function(e){t.push(B.getRowHeader(e))}))):Array.isArray(t)&&void 0!==t[n]?t=t[n]:(0,l.isFunction)(t)?t=t(n):t&&"string"!=typeof t&&"number"!=typeof t&&(t=n+1),t},this.hasRowHeaders=function(){return!!G.rowHeaders},this.hasColHeaders=function(){if(void 0!==G.colHeaders&&null!==G.colHeaders)return!!G.colHeaders;for(var e=0,t=B.countCols();e<t;e++)if(B.getColHeader(e))return!0;return!1},this.getColHeader=function(e){var t=B.runHooks("modifyColHeader",e),n=G.colHeaders;if(void 0===t){for(var r=[],o=B.countCols(),i=0;i<o;i++)r.push(B.getColHeader(i));n=r}else{var a=B.toPhysicalColumn(t),s=function(e){for(var t=[],n=B.countCols(),r=0;r<n;r++)(0,l.isFunction)(G.columns)&&G.columns(r)&&t.push(r);return t[e]}(a);!1===G.colHeaders?n=null:G.columns&&(0,l.isFunction)(G.columns)&&G.columns(s)&&G.columns(s).title?n=G.columns(s).title:G.columns&&G.columns[a]&&G.columns[a].title?n=G.columns[a].title:Array.isArray(G.colHeaders)&&void 0!==G.colHeaders[a]?n=G.colHeaders[a]:(0,l.isFunction)(G.colHeaders)?n=G.colHeaders(a):G.colHeaders&&"string"!=typeof G.colHeaders&&"number"!=typeof G.colHeaders&&(n=(0,T.spreadsheetColumnLabel)(t))}return n},this._getColWidthFromSettings=function(e){var t;e>=0&&(t=B.getCellMeta(0,e).width);if(void 0!==t&&t!==G.width||(t=G.colWidths),null!=t){switch((0,o.default)(t)){case"object":t=t[e];break;case"function":t=t(e)}"string"==typeof t&&(t=parseInt(t,10))}return t},this.getColWidth=function(e){var t=B._getColWidthFromSettings(e);return void 0===(t=B.runHooks("modifyColWidth",t,e))&&(t=O.ViewportColumnsCalculator.DEFAULT_WIDTH),t},this._getRowHeightFromSettings=function(e){var t=G.rowHeights;if(null!=t){switch((0,o.default)(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=B._getRowHeightFromSettings(e);return t=B.runHooks("modifyRowHeight",t,e)},this.countSourceRows=function(){return r.countRows()},this.countSourceCols=function(){return r.countFirstRowKeys()},this.countRows=function(){return n.getLength()},this.countCols=function(){var e=G.maxCols,t=this.columnIndexMapper.getNotTrimmedIndexesLength();return Math.min(e,t)},this.countRenderedRows=function(){return B.view.wt.drawn?B.view.wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return B.view.wt.drawn?B.view.wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return B.view.wt.drawn?B.view.wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return B.view.wt.drawn?B.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)(B.countRows()-1,(function(n){if(B.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(B.countRows()<1)return 0;var t=0;return(0,w.rangeEachReverse)(B.countCols()-1,(function(n){if(B.isEmptyCol(n))t+=1;else if(!0===e)return!1})),t},this.isEmptyRow=function(e){return G.isEmptyRow.call(B,e)},this.isEmptyCol=function(e){return G.isEmptyCol.call(B,e)},this.selectCell=function(e,t,n,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return!(0,u.isUndefined)(e)&&!(0,u.isUndefined)(t)&&this.selectCells([[e,t,n,r]],o,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&&(U=!0);var r=q.selectCells(e);return r&&n&&B.listen(),U=!1,r},this.selectColumns=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return q.selectColumns(e,t)},this.selectRows=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return q.selectRows(e,t)},this.deselectCell=function(){q.deselect()},this.selectAll=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e&&this.hasRowHeaders(),n=e&&this.hasColHeaders();U=!0,q.selectAll(t,n),U=!1};var ae=function(e,t){return e.getFirstNotHiddenIndex(t,1,!0)};function se(e){return function(){throw new Error('The "'.concat(e,'" method cannot be called because this Handsontable instance has been destroyed'))}}this.scrollViewportTo=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=!n,a=!r,s=e,l=t;if(o){var u=Number.isInteger(e),c=Number.isInteger(t),d=u?ae(this.rowIndexMapper,e):void 0,h=c?ae(this.columnIndexMapper,t):void 0;if(null===d||null===h)return!1;s=u?B.rowIndexMapper.getRenderableFromVisualIndex(d):void 0,l=c?B.columnIndexMapper.getRenderableFromVisualIndex(h):void 0}var f=Number.isInteger(s),v=Number.isInteger(l);return f&&v?B.view.scrollViewport(new O.CellCoords(s,l),i,r,n,a):f&&!1===v?B.view.scrollViewportVertically(s,i,n):!(!v||!1!==f)&&B.view.scrollViewportHorizontally(l,r,a)},this.destroy=function(){if(B._clearTimeouts(),B._clearImmediates(),B.view&&B.view.destroy(),r&&r.destroy(),r=null,W.clearCache(),(0,N.stopObserving)(),(0,S.isRootInstance)(B)){var e=this.rootDocument.querySelector("#hot-display-license-info");e&&e.parentNode.removeChild(e)}(0,s.empty)(B.rootElement),V.destroy(),L&&L.destroy(),B.batchExecution((function(){B.rowIndexMapper.unregisterAll(),B.columnIndexMapper.unregisterAll(),z.getItems().forEach((function(e){(0,i.default)(e,2)[1].destroy()})),z.clear(),B.runHooks("afterDestroy")}),!0),_.default.getSingleton().destroy(B),(0,f.objectEach)(B,(function(e,t,n){(0,l.isFunction)(e)?n[t]=se(t):"guid"!==t&&(n[t]=null)})),B.isDestroyed=!0,n&&n.destroy(),B.rowIndexMapper=null,B.columnIndexMapper=null,n=null,D=null,q=null,L=null,B=null},this.getActiveEditor=function(){return L.getActiveEditor()},this.getPlugin=function(e){var t=(0,E.toUpperCaseFirst)(e);return"UndoRedo"===t?this.undoRedo:z.getItem(t)},this.getPluginName=function(e){return e===this.undoRedo?this.undoRedo.constructor.PLUGIN_KEY:z.getId(e)},this.getInstance=function(){return B},this.addHook=function(e,t){_.default.getSingleton().add(e,t,B)},this.hasHook=function(e){return _.default.getSingleton().has(e,B)},this.addHookOnce=function(e,t){_.default.getSingleton().once(e,t,B)},this.removeHook=function(e,t){_.default.getSingleton().remove(e,t,B)},this.runHooks=function(e,t,n,r,o,i,a){return _.default.getSingleton().run(B,e,t,n,r,o,i,a)},this.getTranslatedPhrase=function(e,t){return(0,I.getTranslatedPhrase)(G.language,e,t)},this.toHTML=function(){return(0,p.instanceToHTML)(H)},this.toTableElement=function(){var e=H.rootDocument.createElement("div");return e.insertAdjacentHTML("afterbegin",(0,p.instanceToHTML)(H)),e.firstElementChild},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,v.arrayEach)(this.timeouts,(function(e){clearTimeout(e)}))},this.immediates=[],this._registerImmediate=function(e){this.immediates.push(setImmediate(e))},this._clearImmediates=function(){(0,v.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];L.destroyEditor(e),B.view.render(),t&&q.isSelected()&&L.prepareEditor()},(0,g.getPluginsNames)().forEach((function(e){var t=(0,g.getPlugin)(e);z.addItem(e,new t(H))})),_.default.getSingleton().run(B,"construct")},n(81),n(41),n(59),n(60),n(29),n(51),n(19),n(43),n(11),n(17),n(190),n(23),n(44),n(488);var o=r(n(56)),i=r(n(18)),a=r(n(25)),s=n(10),l=n(53),u=n(20),c=n(84),d=r(n(502)),h=r(n(31)),f=n(5),v=n(3),p=n(202),g=n(204),m=n(161),y=n(162),E=n(75),w=n(24),C=r(n(539)),R=r(n(540)),T=n(136),b=n(54),S=n(418),O=n(38),_=r(n(48)),I=n(421),M=n(422),N=n(166),k=n(208),A=n(424),P=n(412),x=null},function(e,t,n){var r=n(179);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var r=n(47),o=n(481);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return r(n),o(i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},function(e,t,n){var r=n(106);e.exports=r("document","documentElement")},function(e,t,n){var r=n(67),o="["+n(242)+"]",i=RegExp("^"+o+o+"*"),a=RegExp(o+o+"*$"),s=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(i,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:s(1),end:s(2),trim:s(3)}},function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(e,t,n){var r=n(47);e.exports=function(e){var t=e.return;if(void 0!==t)return r(t.call(e)).value}},function(e,t,n){var r=n(42),o=n(126),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},function(e,t,n){var r=n(246),o=n(126),i=n(42)("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t,n){var r=n(187),o=n(94),i=n(42)("toStringTag"),a="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:a?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},function(e,t,n){var r=n(42)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},function(e,t,n){"use strict";var r,o,i,a=n(32),s=n(189),l=n(82),u=n(65),c=n(42),d=n(105),h=c("iterator"),f=!1;[].keys&&("next"in(i=[].keys())?(o=s(s(i)))!==Object.prototype&&(r=o):f=!0);var v=null==r||a((function(){var e={};return r[h].call(e)!==e}));v&&(r={}),d&&!v||u(r,h)||l(r,h,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}},function(e,t,n){var r=n(32);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=n(106),o=n(66),i=n(42),a=n(57),s=i("species");e.exports=function(e){var t=r(e),n=o.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(32);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){"use strict";var r=n(66).f,o=n(109),i=n(198),a=n(125),s=n(197),l=n(196),u=n(188),c=n(255),d=n(57),h=n(130).fastKey,f=n(95),v=f.set,p=f.getterFor;e.exports={getConstructor:function(e,t,n,u){var c=e((function(e,r){s(e,c,t),v(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),d||(e.size=0),null!=r&&l(r,e[u],{that:e,AS_ENTRIES:n})})),f=p(t),g=function(e,t,n){var r,o,i=f(e),a=m(e,t);return a?a.value=n:(i.last=a={index:o=h(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),d?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},m=function(e,t){var n,r=f(e),o=h(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return i(c.prototype,{clear:function(){for(var e=f(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,d?e.size=0:this.size=0},delete:function(e){var t=f(this),n=m(this,e);if(n){var r=n.next,o=n.previous;delete t.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),t.first==n&&(t.first=r),t.last==n&&(t.last=o),d?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=f(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!m(this,e)}}),i(c.prototype,n?{get:function(e){var t=m(this,e);return t&&t.value},set:function(e,t){return g(this,0===e?0:e,t)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),d&&r(c.prototype,"size",{get:function(){return f(this).size}}),c},setStrong:function(e,t,n){var r=t+" Iterator",o=p(t),i=p(r);u(e,t,(function(e,t){v(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),c(t)}}},function(e,t,n){e.exports=function(){"use strict";var e=Object.hasOwnProperty,t=Object.setPrototypeOf,n=Object.isFrozen,r=Object.getPrototypeOf,o=Object.getOwnPropertyDescriptor,i=Object.freeze,a=Object.seal,s=Object.create,l="undefined"!=typeof Reflect&&Reflect,u=l.apply,c=l.construct;u||(u=function(e,t,n){return e.apply(t,n)}),i||(i=function(e){return e}),a||(a=function(e){return e}),c||(c=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(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)}(t))))});var d,h=R(Array.prototype.forEach),f=R(Array.prototype.pop),v=R(Array.prototype.push),p=R(String.prototype.toLowerCase),g=R(String.prototype.match),m=R(String.prototype.replace),y=R(String.prototype.indexOf),E=R(String.prototype.trim),w=R(RegExp.prototype.test),C=(d=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return c(d,t)});function R(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return u(e,t,r)}}function T(e,r){t&&t(e,null);for(var o=r.length;o--;){var i=r[o];if("string"==typeof i){var a=p(i);a!==i&&(n(r)||(r[o]=a),i=a)}e[i]=!0}return e}function b(t){var n=s(null),r=void 0;for(r in t)u(e,t,[r])&&(n[r]=t[r]);return n}function S(e,t){for(;null!==e;){var n=o(e,t);if(n){if(n.get)return R(n.get);if("function"==typeof n.value)return R(n.value)}e=r(e)}return function(e){return console.warn("fallback value for",e),null}}var O=i(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),_=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),I=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),M=i(["animate","color-profile","cursor","discard","fedropshadow","feimage","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),N=i(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),k=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),A=i(["#text"]),P=i(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),x=i(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),D=i(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),L=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),H=a(/\{\{[\s\S]*|[\s\S]*\}\}/gm),F=a(/<%[\s\S]*|[\s\S]*%>/gm),U=a(/^data-[\-\w.\u00B7-\uFFFF]/),B=a(/^aria-[\-\w]+$/),V=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=a(/^(?:\w+script|data):/i),W=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),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};function j(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)}var z=function(){return"undefined"==typeof window?null:window},K=function(e,t){if("object"!==(void 0===e?"undefined":G(e))||"function"!=typeof e.createPolicy)return null;var n=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=t.currentScript.getAttribute("data-tt-policy-suffix"));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:z(),n=function(t){return e(t)};if(n.version="2.2.8",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,o=t.document,a=t.DocumentFragment,s=t.HTMLTemplateElement,l=t.Node,u=t.Element,c=t.NodeFilter,d=t.NamedNodeMap,R=void 0===d?t.NamedNodeMap||t.MozNamedAttrMap:d,X=t.Text,q=t.Comment,$=t.DOMParser,Q=t.trustedTypes,Z=u.prototype,J=S(Z,"cloneNode"),ee=S(Z,"nextSibling"),te=S(Z,"childNodes"),ne=S(Z,"parentNode");if("function"==typeof s){var re=o.createElement("template");re.content&&re.content.ownerDocument&&(o=re.content.ownerDocument)}var oe=K(Q,r),ie=oe&&Le?oe.createHTML(""):"",ae=o,se=ae.implementation,le=ae.createNodeIterator,ue=ae.createDocumentFragment,ce=r.importNode,de={};try{de=b(o).documentMode?o.documentMode:{}}catch(e){}var he={};n.isSupported="function"==typeof ne&&se&&void 0!==se.createHTMLDocument&&9!==de;var fe=H,ve=F,pe=U,ge=B,me=Y,ye=W,Ee=V,we=null,Ce=T({},[].concat(j(O),j(_),j(I),j(N),j(A))),Re=null,Te=T({},[].concat(j(P),j(x),j(D),j(L))),be=null,Se=null,Oe=!0,_e=!0,Ie=!1,Me=!1,Ne=!1,ke=!1,Ae=!1,Pe=!1,xe=!1,De=!0,Le=!1,He=!0,Fe=!0,Ue=!1,Be={},Ve=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ye=null,We=T({},["audio","video","img","source","image","track"]),Ge=null,je=T({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),ze="http://www.w3.org/1998/Math/MathML",Ke="http://www.w3.org/2000/svg",Xe="http://www.w3.org/1999/xhtml",qe=Xe,$e=null,Qe=o.createElement("form"),Ze=function(e){$e&&$e===e||(e&&"object"===(void 0===e?"undefined":G(e))||(e={}),e=b(e),we="ALLOWED_TAGS"in e?T({},e.ALLOWED_TAGS):Ce,Re="ALLOWED_ATTR"in e?T({},e.ALLOWED_ATTR):Te,Ge="ADD_URI_SAFE_ATTR"in e?T(b(je),e.ADD_URI_SAFE_ATTR):je,Ye="ADD_DATA_URI_TAGS"in e?T(b(We),e.ADD_DATA_URI_TAGS):We,be="FORBID_TAGS"in e?T({},e.FORBID_TAGS):{},Se="FORBID_ATTR"in e?T({},e.FORBID_ATTR):{},Be="USE_PROFILES"in e&&e.USE_PROFILES,Oe=!1!==e.ALLOW_ARIA_ATTR,_e=!1!==e.ALLOW_DATA_ATTR,Ie=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=e.SAFE_FOR_TEMPLATES||!1,Ne=e.WHOLE_DOCUMENT||!1,Pe=e.RETURN_DOM||!1,xe=e.RETURN_DOM_FRAGMENT||!1,De=!1!==e.RETURN_DOM_IMPORT,Le=e.RETURN_TRUSTED_TYPE||!1,Ae=e.FORCE_BODY||!1,He=!1!==e.SANITIZE_DOM,Fe=!1!==e.KEEP_CONTENT,Ue=e.IN_PLACE||!1,Ee=e.ALLOWED_URI_REGEXP||Ee,qe=e.NAMESPACE||qe,Me&&(_e=!1),xe&&(Pe=!0),Be&&(we=T({},[].concat(j(A))),Re=[],!0===Be.html&&(T(we,O),T(Re,P)),!0===Be.svg&&(T(we,_),T(Re,x),T(Re,L)),!0===Be.svgFilters&&(T(we,I),T(Re,x),T(Re,L)),!0===Be.mathMl&&(T(we,N),T(Re,D),T(Re,L))),e.ADD_TAGS&&(we===Ce&&(we=b(we)),T(we,e.ADD_TAGS)),e.ADD_ATTR&&(Re===Te&&(Re=b(Re)),T(Re,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&T(Ge,e.ADD_URI_SAFE_ATTR),Fe&&(we["#text"]=!0),Ne&&T(we,["html","head","body"]),we.table&&(T(we,["tbody"]),delete be.tbody),i&&i(e),$e=e)},Je=T({},["mi","mo","mn","ms","mtext"]),et=T({},["foreignobject","desc","title","annotation-xml"]),tt=T({},_);T(tt,I),T(tt,M);var nt=T({},N);T(nt,k);var rt=function(e){var t=ne(e);t&&t.tagName||(t={namespaceURI:Xe,tagName:"template"});var n=p(e.tagName),r=p(t.tagName);if(e.namespaceURI===Ke)return t.namespaceURI===Xe?"svg"===n:t.namespaceURI===ze?"svg"===n&&("annotation-xml"===r||Je[r]):Boolean(tt[n]);if(e.namespaceURI===ze)return t.namespaceURI===Xe?"math"===n:t.namespaceURI===Ke?"math"===n&&et[r]:Boolean(nt[n]);if(e.namespaceURI===Xe){if(t.namespaceURI===Ke&&!et[r])return!1;if(t.namespaceURI===ze&&!Je[r])return!1;var o=T({},["title","style","font","a","script"]);return!nt[n]&&(o[n]||!tt[n])}return!1},ot=function(e){v(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},it=function(e,t){try{v(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){v(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Re[e])if(Pe||xe)try{ot(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},at=function(e){var t=void 0,n=void 0;if(Ae)e="<remove></remove>"+e;else{var r=g(e,/^[\r\n\t ]+/);n=r&&r[0]}var i=oe?oe.createHTML(e):e;if(qe===Xe)try{t=(new $).parseFromString(i,"text/html")}catch(e){}t&&t.documentElement||((t=se.createDocument(qe,"template",null)).documentElement.innerHTML=i);var a=t.body||t.documentElement;return e&&n&&a.insertBefore(o.createTextNode(n),a.childNodes[0]||null),Ne?t.documentElement:a},st=function(e){return le.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,(function(){return c.FILTER_ACCEPT}),!1)},lt=function(e){return!(e instanceof X||e instanceof q||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof R&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI&&"function"==typeof e.insertBefore)},ut=function(e){return"object"===(void 0===l?"undefined":G(l))?e instanceof l:e&&"object"===(void 0===e?"undefined":G(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},ct=function(e,t,r){he[e]&&h(he[e],(function(e){e.call(n,t,r,$e)}))},dt=function(e){var t=void 0;if(ct("beforeSanitizeElements",e,null),lt(e))return ot(e),!0;if(g(e.nodeName,/[\u0080-\uFFFF]/))return ot(e),!0;var r=p(e.nodeName);if(ct("uponSanitizeElement",e,{tagName:r,allowedTags:we}),!ut(e.firstElementChild)&&(!ut(e.content)||!ut(e.content.firstElementChild))&&w(/<[/\w]/g,e.innerHTML)&&w(/<[/\w]/g,e.textContent))return ot(e),!0;if(!we[r]||be[r]){if(Fe&&!Ve[r]){var o=ne(e)||e.parentNode,i=te(e)||e.childNodes;if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(J(i[a],!0),ee(e))}return ot(e),!0}return e instanceof u&&!rt(e)?(ot(e),!0):"noscript"!==r&&"noembed"!==r||!w(/<\/no(script|embed)/i,e.innerHTML)?(Me&&3===e.nodeType&&(t=e.textContent,t=m(t,fe," "),t=m(t,ve," "),e.textContent!==t&&(v(n.removed,{element:e.cloneNode()}),e.textContent=t)),ct("afterSanitizeElements",e,null),!1):(ot(e),!0)},ht=function(e,t,n){if(He&&("id"===t||"name"===t)&&(n in o||n in Qe))return!1;if(_e&&w(pe,t));else if(Oe&&w(ge,t));else{if(!Re[t]||Se[t])return!1;if(Ge[t]);else if(w(Ee,m(n,ye,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==y(n,"data:")||!Ye[e])if(Ie&&!w(me,m(n,ye,"")));else if(n)return!1}return!0},ft=function(e){var t=void 0,r=void 0,o=void 0,i=void 0;ct("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Re};for(i=a.length;i--;){var l=t=a[i],u=l.name,c=l.namespaceURI;if(r=E(t.value),o=p(u),s.attrName=o,s.attrValue=r,s.keepAttr=!0,s.forceKeepAttr=void 0,ct("uponSanitizeAttribute",e,s),r=s.attrValue,!s.forceKeepAttr&&(it(u,e),s.keepAttr))if(w(/\/>/i,r))it(u,e);else{Me&&(r=m(r,fe," "),r=m(r,ve," "));var d=e.nodeName.toLowerCase();if(ht(d,o,r))try{c?e.setAttributeNS(c,u,r):e.setAttribute(u,r),f(n.removed)}catch(e){}}}ct("afterSanitizeAttributes",e,null)}},vt=function e(t){var n=void 0,r=st(t);for(ct("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)ct("uponSanitizeShadowNode",n,null),dt(n)||(n.content instanceof a&&e(n.content),ft(n));ct("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,o){var i=void 0,s=void 0,u=void 0,c=void 0,d=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!ut(e)){if("function"!=typeof e.toString)throw C("toString is not a function");if("string"!=typeof(e=e.toString()))throw C("dirty is not a string, aborting")}if(!n.isSupported){if("object"===G(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(ut(e))return t.toStaticHTML(e.outerHTML)}return e}if(ke||Ze(o),n.removed=[],"string"==typeof e&&(Ue=!1),Ue);else if(e instanceof l)1===(s=(i=at("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?i=s:i.appendChild(s);else{if(!Pe&&!Me&&!Ne&&-1===e.indexOf("<"))return oe&&Le?oe.createHTML(e):e;if(!(i=at(e)))return Pe?null:ie}i&&Ae&&ot(i.firstChild);for(var h=st(Ue?e:i);u=h.nextNode();)3===u.nodeType&&u===c||dt(u)||(u.content instanceof a&&vt(u.content),ft(u),c=u);if(c=null,Ue)return e;if(Pe){if(xe)for(d=ue.call(i.ownerDocument);i.firstChild;)d.appendChild(i.firstChild);else d=i;return De&&(d=ce.call(r,d,!0)),d}var f=Ne?i.outerHTML:i.innerHTML;return Me&&(f=m(f,fe," "),f=m(f,ve," ")),oe&&Le?oe.createHTML(f):f},n.setConfig=function(e){Ze(e),ke=!0},n.clearConfig=function(){$e=null,ke=!1},n.isValidAttribute=function(e,t,n){$e||Ze({});var r=p(e),o=p(t);return ht(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(he[e]=he[e]||[],v(he[e],t))},n.removeHook=function(e){he[e]&&f(he[e])},n.removeHooks=function(e){he[e]&&(he[e]=[])},n.removeAllHooks=function(){he={}},n}()}(),window.DOMPurify=n(258)},function(e,t,n){"use strict";var r=n(21),o=n(498).start;r({target:"String",proto:!0,forced:n(499)},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(96),o=n(67);e.exports=function(e){var t=String(o(this)),n="",i=r(e);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},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";var r=n(198),o=n(130).getWeakData,i=n(47),a=n(46),s=n(197),l=n(196),u=n(102),c=n(65),d=n(95),h=d.set,f=d.getterFor,v=u.find,p=u.findIndex,g=0,m=function(e){return e.frozen||(e.frozen=new y)},y=function(){this.entries=[]},E=function(e,t){return v(e.entries,(function(e){return e[0]===t}))};y.prototype={get:function(e){var t=E(this,e);if(t)return t[1]},has:function(e){return!!E(this,e)},set:function(e,t){var n=E(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=p(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,u){var d=e((function(e,r){s(e,d,t),h(e,{type:t,id:g++,frozen:void 0}),null!=r&&l(r,e[u],{that:e,AS_ENTRIES:n})})),v=f(t),p=function(e,t,n){var r=v(e),a=o(i(t),!0);return!0===a?m(r).set(t,n):a[r.id]=n,e};return r(d.prototype,{delete:function(e){var t=v(this);if(!a(e))return!1;var n=o(e);return!0===n?m(t).delete(e):n&&c(n,t.id)&&delete n[t.id]},has:function(e){var t=v(this);if(!a(e))return!1;var n=o(e);return!0===n?m(t).has(e):n&&c(n,t.id)}}),r(d.prototype,n?{get:function(e){var t=v(this);if(a(e)){var n=o(e);return!0===n?m(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return p(this,e,t)}}:{add:function(e){return p(this,e,!0)}}),d}}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=r(n(2));n(12),n(9),n(11),n(22),n(13);var a=n(199),s=new WeakMap,l=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.viewportSize,r=t.scrollOffset,i=t.totalItems,a=t.itemSizeFn,l=t.overrideFn,u=t.calculationType,c=t.stretchMode,d=t.stretchingItemWidthFn,h=void 0===d?function(e){return e}:d;(0,o.default)(this,e),s.set(this,{viewportWidth:n,scrollOffset:r,totalColumns:i,columnWidthFn:a,overrideFn:l,calculationType:u,stretchingColumnWidthFn:h}),this.count=0,this.startColumn=null,this.endColumn=null,this.startPosition=null,this.stretchAllRatio=0,this.stretchLastWidth=0,this.stretch=c,this.totalTargetWidth=0,this.needVerifyLastColumnWidth=!0,this.stretchAllColumnsWidth=[],this.calculate()}return(0,i.default)(e,[{key:"calculate",value:function(){for(var e,t=0,n=!0,r=[],o=s.get(this),i=o.calculationType,l=o.overrideFn,u=o.scrollOffset,c=o.totalColumns,d=o.viewportWidth,h=0;h<c;h++){e=this._getColumnWidth(h),t<=u&&i!==a.FULLY_VISIBLE_TYPE&&(this.startColumn=h);var f=u>0?d+1:d;if(t>=u&&t+(i===a.FULLY_VISIBLE_TYPE?e:0)<=u+f&&(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=h),this.endColumn=h),r.push(t),t+=e,i!==a.FULLY_VISIBLE_TYPE&&(this.endColumn=h),t>=u+d){n=!1;break}}if(this.endColumn===c-1&&n)for(this.startColumn=this.endColumn;this.startColumn>0;){var v=r[this.endColumn]+e-r[this.startColumn-1];if((v<=d||i!==a.FULLY_VISIBLE_TYPE)&&(this.startColumn-=1),v>d)break}i===a.RENDER_TYPE&&null!==this.startColumn&&l&&l(this),this.startPosition=r[this.startColumn],void 0===this.startPosition&&(this.startPosition=null),c<this.endColumn&&(this.endColumn=c-1),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=s.get(this),r=n.totalColumns,o=0,i=0;i<r;i++){var a=this._getColumnWidth(i),l=n.stretchingColumnWidthFn(void 0,i);"number"==typeof l?t-=l:o+=a}var u=t-o;if("all"===this.stretch&&u>0)this.stretchAllRatio=t/o,this.stretchAllColumnsWidth=[],this.needVerifyLastColumnWidth=!0;else if("last"===this.stretch&&t!==1/0){var c=this._getColumnWidth(r-1),d=u+c;this.stretchLastWidth=d>=0?d: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,r=s.get(this),o=r.totalColumns;if(!this.stretchAllColumnsWidth[e]){var i=Math.round(t*this.stretchAllRatio),a=r.stretchingColumnWidthFn(i,e);this.stretchAllColumnsWidth[e]=void 0===a?i:isNaN(a)?this._getColumnWidth(e):a}if(this.stretchAllColumnsWidth.length===o&&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===s.get(this).totalColumns-1?this.stretchLastWidth:null}},{key:"_getColumnWidth",value:function(t){var n=s.get(this).columnWidthFn(t);return isNaN(n)&&(n=e.DEFAULT_WIDTH),n}}],[{key:"DEFAULT_WIDTH",get:function(){return 50}}]),e}();t.default=l},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=r(n(2));n(12),n(9),n(11),n(22),n(13);var a=n(199),s=new WeakMap,l=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.viewportSize,r=t.scrollOffset,i=t.totalItems,a=t.itemSizeFn,l=t.overrideFn,u=t.calculationType,c=t.scrollbarHeight;(0,o.default)(this,e),s.set(this,{viewportHeight:n,scrollOffset:r,totalRows:i,rowHeightFn:a,overrideFn:l,calculationType:u,horizontalScrollbarHeight:c}),this.count=0,this.startRow=null,this.endRow=null,this.startPosition=null,this.calculate()}return(0,i.default)(e,[{key:"calculate",value:function(){for(var t,n=0,r=!0,o=[],i=s.get(this),l=i.calculationType,u=i.overrideFn,c=i.rowHeightFn,d=i.scrollOffset,h=i.totalRows,f=i.viewportHeight,v=i.horizontalScrollbarHeight||0,p=0;p<h;p++)if(t=c(p),isNaN(t)&&(t=e.DEFAULT_HEIGHT),n<=d&&l!==a.FULLY_VISIBLE_TYPE&&(this.startRow=p),n>=d&&n+(l===a.FULLY_VISIBLE_TYPE?t:0)<=d+f-v&&(null===this.startRow&&(this.startRow=p),this.endRow=p),o.push(n),n+=t,l!==a.FULLY_VISIBLE_TYPE&&(this.endRow=p),n>=d+f-v){r=!1;break}if(this.endRow===h-1&&r)for(this.startRow=this.endRow;this.startRow>0;){var g=o[this.endRow]+t-o[this.startRow-1];if((g<=f-v||l!==a.FULLY_VISIBLE_TYPE)&&(this.startRow-=1),g>=f-v)break}l===a.RENDER_TYPE&&null!==this.startRow&&u&&u(this),this.startPosition=o[this.startRow],void 0===this.startPosition&&(this.startPosition=null),h<this.endRow&&(this.endRow=h-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}],[{key:"DEFAULT_HEIGHT",get:function(){return 23}}]),e}();t.default=l},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(26),n(34),n(17);var o=r(n(1)),i=r(n(2)),a=r(n(131)),s=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;(0,o.default)(this,e),this.highlight=t.clone().normalize(),this.from=n.clone(),this.to=r.clone()}return(0,i.default)(e,[{key:"setHighlight",value:function(e){return this.highlight=e.clone().normalize(),this}},{key:"setFrom",value:function(e){return this.from=e.clone(),this}},{key:"setTo",value:function(e){return this.to=e.clone(),this}},{key:"isValid",value:function(e){return this.from.isValid(e)&&this.to.isValid(e)}},{key:"isSingle",value:function(){return this.from.row>=0&&this.from.row===this.to.row&&this.from.col>=0&&this.from.col===this.to.col}},{key:"getOuterHeight",value:function(){return Math.max(this.from.row,this.to.row)-Math.min(this.from.row,this.to.row)+1}},{key:"getOuterWidth",value:function(){return Math.max(this.from.col,this.to.col)-Math.min(this.from.col,this.to.col)+1}},{key:"getHeight",value:function(){var e=Math.max(this.from.row,0),t=Math.max(this.to.row,0);return Math.max(e,t)-Math.min(e,t)+1}},{key:"getWidth",value:function(){var e=Math.max(this.from.col,0),t=Math.max(this.to.col,0);return Math.max(e,t)-Math.min(e,t)+1}},{key:"includes",value:function(e){var t=e.row,n=e.col,r=this.getOuterTopLeftCorner(),o=this.getOuterBottomRightCorner();return r.row<=t&&o.row>=t&&r.col<=n&&o.col>=n}},{key:"includesRange",value:function(e){return this.includes(e.getOuterTopLeftCorner())&&this.includes(e.getOuterBottomRightCorner())}},{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.getOuterTopLeftCorner())&&e.isNorthWestOf(this.getOuterBottomRightCorner())}},{key:"isSouthEastOf",value:function(e){return this.getOuterTopLeftCorner().isSouthEastOf(e)||this.getOuterBottomRightCorner().isSouthEastOf(e)}},{key:"isNorthWestOf",value:function(e){return this.getOuterTopLeftCorner().isNorthWestOf(e)||this.getOuterBottomRightCorner().isNorthWestOf(e)}},{key:"isOverlappingHorizontally",value:function(e){return this.getOuterTopRightCorner().col>=e.getOuterTopLeftCorner().col&&this.getOuterTopRightCorner().col<=e.getOuterTopRightCorner().col||this.getOuterTopLeftCorner().col<=e.getOuterTopRightCorner().col&&this.getOuterTopLeftCorner().col>=e.getOuterTopLeftCorner().col}},{key:"isOverlappingVertically",value:function(e){return this.getOuterBottomRightCorner().row>=e.getOuterTopRightCorner().row&&this.getOuterBottomRightCorner().row<=e.getOuterBottomRightCorner().row||this.getOuterTopRightCorner().row<=e.getOuterBottomRightCorner().row&&this.getOuterTopRightCorner().row>=e.getOuterTopRightCorner().row}},{key:"expand",value:function(e){var t=this.getOuterTopLeftCorner(),n=this.getOuterBottomRightCorner();return(e.row<t.row||e.col<t.col||e.row>n.row||e.col>n.col)&&(this.from=new a.default(Math.min(t.row,e.row),Math.min(t.col,e.col)),this.to=new a.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.getOuterTopLeftCorner(),n=this.getOuterBottomRightCorner(),r=this.getDirection(),o=e.getOuterTopLeftCorner(),i=e.getOuterBottomRightCorner(),s=Math.min(t.row,o.row),l=Math.min(t.col,o.col),u=Math.max(n.row,i.row),c=Math.max(n.col,i.col),d=new a.default(s,l),h=new a.default(u,c);return this.from=d,this.to=h,this.setDirection(r),this.highlight.row===this.getOuterBottomRightCorner().row&&"N-S"===this.getVerticalDirection()&&this.flipDirectionVertically(),this.highlight.col===this.getOuterTopRightCorner().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.getOuterTopLeftCorner(),this.getOuterBottomRightCorner()];this.from=t[0],this.to=t[1];break;case"NE-SW":var n=[this.getOuterTopRightCorner(),this.getOuterBottomLeftCorner()];this.from=n[0],this.to=n[1];break;case"SE-NW":var r=[this.getOuterBottomRightCorner(),this.getOuterTopLeftCorner()];this.from=r[0],this.to=r[1];break;case"SW-NE":var o=[this.getOuterBottomLeftCorner(),this.getOuterTopRightCorner()];this.from=o[0],this.to=o[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 a.default(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}},{key:"getBottomRightCorner",value:function(){return new a.default(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}},{key:"getTopRightCorner",value:function(){return new a.default(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}},{key:"getBottomLeftCorner",value:function(){return new a.default(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}},{key:"getOuterTopLeftCorner",value:function(){return new a.default(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}},{key:"getOuterBottomRightCorner",value:function(){return new a.default(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}},{key:"getOuterTopRightCorner",value:function(){return new a.default(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}},{key:"getOuterBottomLeftCorner",value:function(){return new a.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.getOuterTopLeftCorner().isEqual(new a.default(t.from.row,t.from.col))||this.getOuterTopRightCorner().isEqual(new a.default(t.from.row,t.to.col))||this.getOuterBottomLeftCorner().isEqual(new a.default(t.to.row,t.from.col))||this.getOuterBottomRightCorner().isEqual(new a.default(t.to.row,t.to.col))))||(e.isEqual(this.getOuterTopLeftCorner())||e.isEqual(this.getOuterTopRightCorner())||e.isEqual(this.getOuterBottomLeftCorner())||e.isEqual(this.getOuterBottomRightCorner()))}},{key:"getOppositeCorner",value:function(e,t){if(!(e instanceof a.default))return!1;if(t&&t.includes(e)){if(this.getOuterTopLeftCorner().isEqual(new a.default(t.from.row,t.from.col)))return this.getOuterBottomRightCorner();if(this.getOuterTopRightCorner().isEqual(new a.default(t.from.row,t.to.col)))return this.getOuterBottomLeftCorner();if(this.getOuterBottomLeftCorner().isEqual(new a.default(t.to.row,t.from.col)))return this.getOuterTopRightCorner();if(this.getOuterBottomRightCorner().isEqual(new a.default(t.to.row,t.to.col)))return this.getOuterTopLeftCorner()}return e.isEqual(this.getOuterBottomRightCorner())?this.getOuterTopLeftCorner():e.isEqual(this.getOuterTopLeftCorner())?this.getOuterBottomRightCorner():e.isEqual(this.getOuterTopRightCorner())?this.getOuterBottomLeftCorner():e.isEqual(this.getOuterBottomLeftCorner())?this.getOuterTopRightCorner():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),r=Math.min(this.from.col,this.to.col),o=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"),o===l&&u.push("right"),n===a&&u.push("bottom"),r===s&&u.push("left"),u}},{key:"getInner",value:function(){for(var e=this.getOuterTopLeftCorner(),t=this.getOuterBottomRightCorner(),n=[],r=e.row;r<=t.row;r++)for(var o=e.col;o<=t.col;o++)this.from.row===r&&this.from.col===o||this.to.row===r&&this.to.col===o||n.push(new a.default(r,o));return n}},{key:"getAll",value:function(){for(var e=this.getOuterTopLeftCorner(),t=this.getOuterBottomRightCorner(),n=[],r=e.row;r<=t.row;r++)for(var o=e.col;o<=t.col;o++)e.row===r&&e.col===o?n.push(e):t.row===r&&t.col===o?n.push(t):n.push(new a.default(r,o));return n}},{key:"forAll",value:function(e){for(var t=this.getOuterTopLeftCorner(),n=this.getOuterBottomRightCorner(),r=t.row;r<=n.row;r++)for(var o=t.col;o<=n.col;o++){if(!1===e(r,o))return}}},{key:"clone",value:function(){return new e(this.highlight,this.from,this.to)}},{key:"toObject",value:function(){return{from:this.from.toObject(),to:this.to.toObject()}}}]),e}();t.default=s},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=r(n(2)),a=function(){function e(t,n,r){(0,o.default)(this,e),this.offset=t,this.total=n,this.countTH=r}return(0,i.default)(e,[{key:"offsetted",value:function(e){return e+this.offset}},{key:"unOffsetted",value:function(e){return e-this.offset}},{key:"renderedToSource",value:function(e){return this.offsetted(e)}},{key:"sourceToRendered",value:function(e){return this.unOffsetted(e)}},{key:"offsettedTH",value:function(e){return e-this.countTH}},{key:"unOffsettedTH",value:function(e){return e+this.countTH}},{key:"visibleRowHeadedColumnToSourceColumn",value:function(e){return this.renderedToSource(this.offsettedTH(e))}},{key:"sourceColumnToVisibleRowHeadedColumn",value:function(e){return this.unOffsettedTH(this.sourceToRendered(e))}}]),e}();t.default=a},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=r(n(2)),a=function(){function e(t,n,r){(0,o.default)(this,e),this.offset=t,this.total=n,this.countTH=r}return(0,i.default)(e,[{key:"offsetted",value:function(e){return e+this.offset}},{key:"unOffsetted",value:function(e){return e-this.offset}},{key:"renderedToSource",value:function(e){return this.offsetted(e)}},{key:"sourceToRendered",value:function(e){return this.unOffsetted(e)}},{key:"offsettedTH",value:function(e){return e-this.countTH}},{key:"unOffsettedTH",value:function(e){return e+this.countTH}},{key:"visibleColHeadedRowToSourceRow",value:function(e){return this.renderedToSource(this.offsettedTH(e))}},{key:"sourceRowToVisibleColHeadedRow",value:function(e){return this.unOffsettedTH(this.sourceToRendered(e))}}]),e}();t.default=a},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.default=void 0,n(26);var o=r(n(1)),i=r(n(2)),a=r(n(7)),s=r(n(8)),l=r(n(4)),u=n(10),c=r(n(110)),d=r(n(400)),h=r(n(200)),f=n(5);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var p=function(e){(0,a.default)(n,e);var t=v(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"alignOverlaysWithTrimmingContainer",value:function(){var e=(0,u.getTrimmingContainer)(this.wtRootElement),t=this.wot.rootWindow;if(e===t){this.wot.getSetting("preventOverflow")||(this.holder.style.overflow="visible",this.wtRootElement.style.overflow="visible")}else{var n=e.parentElement,r=(0,u.getStyle)(e,"height",t),o=(0,u.getStyle)(e,"overflow",t),i=this.holder.style,a=e.scrollWidth,s=e.scrollHeight,l=e.getBoundingClientRect(),c=l.width,d=l.height;if(n&&["auto","hidden","scroll"].includes(o)){var h=e.cloneNode(!1);h.style.overflow="auto",e.nextElementSibling?n.insertBefore(h,e.nextElementSibling):n.appendChild(h);var f=parseInt((0,u.getComputedStyle)(h,t).height,10);n.removeChild(h),0===f&&(d=0)}d=Math.min(d,s),i.height="auto"===r?"auto":"".concat(d,"px"),c=Math.min(c,a),i.width="".concat(c,"px"),i.overflow="",this.hasTableHeight="auto"===i.height||d>0,this.hasTableWidth=c>0}this.isTableVisible=(0,u.isVisible)(this.TABLE)}},{key:"markOversizedColumnHeaders",value:function(){var e=this.wot,t=e.getOverlayName(),n=e.getSetting("columnHeaders").length;if(n&&!e.wtViewport.hasOversizedColumnHeadersMarked[t]){for(var r=e.getSetting("rowHeaders").length,o=this.getRenderedColumnsCount(),i=0;i<n;i++)for(var a=-1*r;a<o;a++)this.markIfOversizedColumnHeader(a);e.wtViewport.hasOversizedColumnHeadersMarked[t]=!0}}}]),n}(c.default);(0,f.mixin)(p,d.default),(0,f.mixin)(p,h.default);var g=p;t.default=g},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,n(t,r)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.Renderer=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(504));t.RowHeadersRenderer=a.default;var s=r(n(509));t.ColumnHeadersRenderer=s.default;var l=r(n(510));t.ColGroupRenderer=l.default;var u=r(n(511));t.RowsRenderer=u.default;var c=r(n(512));t.CellsRenderer=c.default;var d=r(n(513));t.TableRenderer=d.default;var h=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.TABLE,r=t.THEAD,i=t.COLGROUP,h=t.TBODY,f=t.rowUtils,v=t.columnUtils,p=t.cellRenderer;(0,o.default)(this,e),this.renderer=new d.default(n,{cellRenderer:p}),this.renderer.setRenderers({rowHeaders:new a.default,columnHeaders:new s.default(r),colGroup:new l.default(i),rows:new u.default(h),cells:new c.default}),this.renderer.setAxisUtils(f,v)}return(0,i.default)(e,[{key:"setFilters",value:function(e,t){return this.renderer.setFilters(e,t),this}},{key:"setViewportSize",value:function(e,t){return this.renderer.setViewportSize(e,t),this}},{key:"setHeaderContentRenderers",value:function(e,t){return this.renderer.setHeaderContentRenderers(e,t),this}},{key:"adjust",value:function(){this.renderer.adjust()}},{key:"render",value:function(){this.renderer.render()}}]),e}();t.Renderer=h},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=r(n(2)),a=n(398),s=r(n(505)),l=function(){function e(t,n,r){(0,o.default)(this,e),this.rootNode=t,this.nodesPool=n,this.sizeSet=new s.default,this.childNodeType=r.toUpperCase(),this.visualIndex=0,this.collectedNodes=[]}return(0,i.default)(e,[{key:"setSize",value:function(e){return this.sizeSet.setSize(e),this}},{key:"setOffset",value:function(e){return this.sizeSet.setOffset(e),this}},{key:"isSharedViewSet",value:function(){return this.sizeSet.isShared()}},{key:"getNode",value:function(e){return e<this.collectedNodes.length?this.collectedNodes[e]:null}},{key:"getCurrentNode",value:function(){var e=this.collectedNodes.length;return e>0?this.collectedNodes[e-1]:null}},{key:"getRenderedChildCount",value:function(){var e=this.rootNode,t=this.sizeSet,n=0;if(this.isSharedViewSet())for(var r=e.firstElementChild;r;){if(r.tagName===this.childNodeType)n+=1;else if(t.isPlaceOn(a.WORKING_SPACE_TOP))break;r=r.nextElementSibling}else n=e.childElementCount;return n}},{key:"start",value:function(){this.collectedNodes.length=0,this.visualIndex=0;for(var e=this.rootNode,t=this.sizeSet,n=this.isSharedViewSet(),r=t.getViewSize().nextSize,o=this.getRenderedChildCount();o<r;){var i=this.nodesPool();!n||n&&t.isPlaceOn(a.WORKING_SPACE_BOTTOM)?e.appendChild(i):e.insertBefore(i,e.firstChild),o+=1}for(var s=n&&t.isPlaceOn(a.WORKING_SPACE_TOP);o>r;)e.removeChild(s?e.firstChild:e.lastChild),o-=1}},{key:"render",value:function(){var e=this.rootNode,t=this.sizeSet,n=this.visualIndex;this.isSharedViewSet()&&t.isPlaceOn(a.WORKING_SPACE_BOTTOM)&&(n+=t.sharedSize.nextSize);var r=e.childNodes[n];if(r.tagName!==this.childNodeType){var o=this.nodesPool();e.replaceChild(o,r),r=o}this.collectedNodes.push(r),this.visualIndex+=1}},{key:"end",value:function(){}}]),e}();t.default=l},function(e,t,n){"use strict";t.__esModule=!0,t.WORKING_SPACE_BOTTOM=t.WORKING_SPACE_TOP=t.WORKING_SPACE_ALL=void 0;t.WORKING_SPACE_ALL=0;t.WORKING_SPACE_TOP=1;t.WORKING_SPACE_BOTTOM=2},function(e,t,n){"use strict";t.__esModule=!0,t.registerOverlayOnce=function(e){var t=e.OVERLAY_NAME;if(-1===r.CLONE_TYPES.indexOf(t))throw new Error("Unsupported overlay (".concat(t,")."));i(t)||(o[t]=e)},t.createOverlay=function(e,t){return new o[e](t)},t.hasOverlay=i,t.isOverlayTypeOf=function(e,t){if(!e||!o[t])return!1;return e instanceof o[t]},n(17);var r=n(87),o={};function i(e){return void 0!==o[e]}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r={getFirstRenderedRow:function(){var e=this.wot.wtViewport.rowsRenderCalculator.startRow;return null===e?-1:e},getFirstVisibleRow:function(){var e=this.wot.wtViewport.rowsVisibleCalculator.startRow;return null===e?-1:e},getLastRenderedRow:function(){var e=this.wot.wtViewport.rowsRenderCalculator.endRow;return null===e?-1:e},getLastVisibleRow:function(){var e=this.wot.wtViewport.rowsVisibleCalculator.endRow;return null===e?-1:e},getRenderedRowsCount:function(){return this.wot.wtViewport.rowsRenderCalculator.count},getVisibleRowsCount:function(){return this.wot.wtViewport.rowsVisibleCalculator.count}};(0,n(5).defineGetter)(r,"MIXIN_NAME","calculatedRows",{writable:!1,enumerable:!1});var o=r;t.default=o},function(e,t,n){"use strict";n(23),n(35),t.__esModule=!0;var r={BottomLeftCornerOverlay:!0,BottomOverlay:!0,LeftOverlay:!0,Overlay:!0,TopLeftCornerOverlay:!0,TopOverlay:!0};t.TopOverlay=t.TopLeftCornerOverlay=t.Overlay=t.LeftOverlay=t.BottomOverlay=t.BottomLeftCornerOverlay=void 0;var o=n(516);t.BottomLeftCornerOverlay=o.BottomLeftCornerOverlay;var i=n(519);t.BottomOverlay=i.BottomOverlay;var a=n(521);t.LeftOverlay=a.LeftOverlay;var s=n(112);t.Overlay=s.Overlay;var l=n(523);t.TopLeftCornerOverlay=l.TopLeftCornerOverlay;var u=n(525);t.TopOverlay=u.TopOverlay;var c=n(87);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===c[e]||(t[e]=c[e]))}));var d=n(399);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===d[e]||(t[e]=d[e]))}))},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r={getFirstRenderedRow:function(){var e=this.wot.getSetting("totalRows"),t=this.wot.getSetting("fixedRowsBottom"),n=e-t;return 0===e||0===t?-1:n<0?0:n},getFirstVisibleRow:function(){return this.getFirstRenderedRow()},getLastRenderedRow:function(){return this.wot.getSetting("totalRows")-1},getLastVisibleRow:function(){return this.getLastRenderedRow()},getRenderedRowsCount:function(){var e=this.wot.getSetting("totalRows");return Math.min(this.wot.getSetting("fixedRowsBottom"),e)},getVisibleRowsCount:function(){return this.getRenderedRowsCount()}};(0,n(5).defineGetter)(r,"MIXIN_NAME","stickyRowsBottom",{writable:!1,enumerable:!1});var o=r;t.default=o},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r={getFirstRenderedRow:function(){return 0===this.wot.getSetting("totalRows")?-1:0},getFirstVisibleRow:function(){return this.getFirstRenderedRow()},getLastRenderedRow:function(){return this.getRenderedRowsCount()-1},getLastVisibleRow:function(){return this.getLastRenderedRow()},getRenderedRowsCount:function(){var e=this.wot.getSetting("totalRows");return Math.min(this.wot.getSetting("fixedRowsTop"),e)},getVisibleRowsCount:function(){return this.getRenderedRowsCount()}};(0,n(5).defineGetter)(r,"MIXIN_NAME","stickyRowsTop",{writable:!1,enumerable:!1});var o=r;t.default=o},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(73);var o=r(n(18)),i=r(n(1)),a=r(n(2)),s=n(10),l=n(45),u=n(5),c=n(84),d=r(n(31)),h=r(n(131)),f=function(){function e(t,n){(0,i.default)(this,e),n&&(this.eventManager=new d.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.cornerCenterPointOffset=-parseInt(this.cornerDefaultStyle.width,10)/2,this.corner=null,this.cornerStyle=null,this.createBorders(n),this.registerListeners())}return(0,a.default)(e,[{key:"registerListeners",value:function(){var e=this,t=this.wot.rootDocument.body;this.eventManager.addEventListener(t,"mousedown",(function(){return e.onMouseDown()})),this.eventManager.addEventListener(t,"mouseup",(function(){return e.onMouseUp()}));for(var n=function(t,n){var r=e.main.childNodes[t];e.eventManager.addEventListener(r,"mouseenter",(function(n){return e.onMouseEnter(n,e.main.childNodes[t])}))},r=0,o=this.main.childNodes.length;r<o;r++)n(r)}},{key:"onMouseDown",value:function(){this.mouseDown=!0}},{key:"onMouseUp",value:function(){this.mouseDown=!1}},{key:"onMouseEnter",value:function(e,t){if(this.mouseDown&&this.wot.getSetting("hideBorderOnMouseDownOver")){e.preventDefault(),(0,l.stopImmediatePropagation)(e);var n=this,r=this.wot.rootDocument.body,o=t.getBoundingClientRect();t.style.display="none",this.eventManager.addEventListener(r,"mousemove",(function e(i){var a;((a=i).clientY<Math.floor(o.top)||a.clientY>Math.ceil(o.top+o.height)||a.clientX<Math.floor(o.left)||a.clientX>Math.ceil(o.left+o.width))&&(n.eventManager.removeEventListener(r,"mousemove",e),t.style.display="block")}))}}},{key:"createBorders",value:function(e){var t=this.wot.rootDocument;this.main=t.createElement("div");var n=["top","left","bottom","right","corner"],r=this.main.style;r.position="absolute",r.top=0,r.left=0;for(var o=0;o<5;o++){var i=n[o],a=t.createElement("div");a.className="wtBorder ".concat(this.settings.className||""),this.settings[i]&&this.settings[i].hide&&(a.className+=" hidden"),(r=a.style).backgroundColor=this.settings[i]&&this.settings[i].color?this.settings[i].color:e.border.color,r.height=this.settings[i]&&this.settings[i].width?"".concat(this.settings[i].width,"px"):"".concat(e.border.width,"px"),r.width=this.settings[i]&&this.settings[i].width?"".concat(this.settings[i].width,"px"):"".concat(e.border.width,"px"),this.main.appendChild(a)}this.top=this.main.childNodes[0],this.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,c.isMobileBrowser)()&&this.createMultipleSelectorHandles(),this.disappear();var s=this.wot.wtTable,l=s.bordersHolder;l||((l=t.createElement("div")).className="htBorders",s.bordersHolder=l,s.spreader.appendChild(l)),l.appendChild(this.main)}},{key:"createMultipleSelectorHandles",value:function(){var e=this,t=this.wot.rootDocument;this.selectionHandles={topLeft:t.createElement("DIV"),topLeftHitArea:t.createElement("DIV"),bottomRight:t.createElement("DIV"),bottomRightHitArea:t.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 n={position:"absolute",height:"".concat(40,"px"),width:"".concat(40,"px"),"border-radius":"".concat(parseInt(40/1.5,10),"px")};(0,u.objectEach)(n,(function(t,n){e.selectionHandles.styles.bottomRightHitArea[n]=t,e.selectionHandles.styles.topLeftHitArea[n]=t}));var r={position:"absolute",height:"".concat(10,"px"),width:"".concat(10,"px"),"border-radius":"".concat(parseInt(10/1.5,10),"px"),background:"#F5F5FF",border:"1px solid #4285c8"};(0,u.objectEach)(r,(function(t,n){e.selectionHandles.styles.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,r,o,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(r-a,10),"px"),this.selectionHandles.styles.topLeftHitArea.top="".concat(parseInt(n-s/4*3,10),"px"),this.selectionHandles.styles.topLeftHitArea.left="".concat(parseInt(r-s/4*3,10),"px"),this.selectionHandles.styles.bottomRight.top="".concat(parseInt(n+i,10),"px"),this.selectionHandles.styles.bottomRight.left="".concat(parseInt(r+o,10),"px"),this.selectionHandles.styles.bottomRightHitArea.top="".concat(parseInt(n+i-s/4,10),"px"),this.selectionHandles.styles.bottomRightHitArea.left="".concat(parseInt(r+o-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,a,l,u=this.wot,d=u.wtTable,f=u.rootDocument,v=u.rootWindow,p=d.getRenderedRowsCount(),g=0;g<p;g+=1){var m=d.rowFilter.renderedToSource(g);if(m>=e[0]&&m<=e[2]){t=m,a=e[0];break}}for(var y=p-1;y>=0;y-=1){var E=d.rowFilter.renderedToSource(y);if(E>=e[0]&&E<=e[2]){n=E;break}}for(var w=d.getRenderedColumnsCount(),C=0;C<w;C+=1){var R=d.columnFilter.renderedToSource(C);if(R>=e[1]&&R<=e[3]){r=R,l=e[1];break}}for(var T=w-1;T>=0;T-=1){var b=d.columnFilter.renderedToSource(T);if(b>=e[1]&&b<=e[3]){i=b;break}}if(void 0!==t&&void 0!==r){var S=d.getCell(new h.default(t,r)),O=t!==n||r!==i,_=O?d.getCell(new h.default(n,i)):S,I=(0,s.offset)(S),M=O?(0,s.offset)(_):I,N=(0,s.offset)(d.TABLE),k=I.top,A=I.left,P=A-N.left-1,x=M.left+(0,s.outerWidth)(_)-A;if(this.isEntireColumnSelected(t,n)){var D=this.getDimensionsFromHeader("columns",r,i,a,N),L=null;if(D){var H=(0,o.default)(D,3);L=H[0],P=H[1],x=H[2]}L&&(S=L)}var F=k-N.top-1,U=M.top+(0,s.outerHeight)(_)-k;if(this.isEntireRowSelected(r,i)){var B=this.getDimensionsFromHeader("rows",t,n,l,N),V=null;if(B){var Y=(0,o.default)(B,3);V=Y[0],F=Y[1],U=Y[2]}V&&(S=V)}var W=(0,s.getComputedStyle)(S,v);parseInt(W.borderTopWidth,10)>0&&(F+=1,U=U>0?U-1:0),parseInt(W.borderLeftWidth,10)>0&&(P+=1,x=x>0?x-1:0),this.topStyle.top="".concat(F,"px"),this.topStyle.left="".concat(P,"px"),this.topStyle.width="".concat(x,"px"),this.topStyle.display="block",this.leftStyle.top="".concat(F,"px"),this.leftStyle.left="".concat(P,"px"),this.leftStyle.height="".concat(U,"px"),this.leftStyle.display="block";var G=Math.floor(this.settings.border.width/2);this.bottomStyle.top="".concat(F+U-G,"px"),this.bottomStyle.left="".concat(P,"px"),this.bottomStyle.width="".concat(x,"px"),this.bottomStyle.display="block",this.rightStyle.top="".concat(F,"px"),this.rightStyle.left="".concat(P+x-G,"px"),this.rightStyle.height="".concat(U+1,"px"),this.rightStyle.display="block";var j=this.settings.border.cornerVisible;j="function"==typeof j?j(this.settings.layerLevel):j;var z=this.wot.getSetting("onModifyGetCellCoords",n,i),K=n,X=i;if(z&&Array.isArray(z)){var q=(0,o.default)(z,4);K=q[2],X=q[3]}if((0,c.isMobileBrowser)()||!j||this.isPartRange(K,X))this.cornerStyle.display="none";else{this.cornerStyle.top="".concat(F+U+this.cornerCenterPointOffset-1,"px"),this.cornerStyle.left="".concat(P+x+this.cornerCenterPointOffset-1,"px"),this.cornerStyle.borderRightWidth=this.cornerDefaultStyle.borderWidth,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.display="none";var $=(0,s.getTrimmingContainer)(d.TABLE),Q=$===v;if(Q&&($=f.documentElement),i===this.wot.getSetting("totalColumns")-1)(Q?_.getBoundingClientRect().left:_.offsetLeft)+(0,s.outerWidth)(_)+parseInt(this.cornerDefaultStyle.width,10)/2>=(0,s.innerWidth)($)&&(this.cornerStyle.left="".concat(Math.floor(P+x+this.cornerCenterPointOffset-parseInt(this.cornerDefaultStyle.width,10)/2),"px"),this.cornerStyle.borderRightWidth=0);if(n===this.wot.getSetting("totalRows")-1)(Q?_.getBoundingClientRect().top:_.offsetTop)+(0,s.outerHeight)(_)+parseInt(this.cornerDefaultStyle.height,10)/2>=(0,s.innerHeight)($)&&(this.cornerStyle.top="".concat(Math.floor(F+U+this.cornerCenterPointOffset-parseInt(this.cornerDefaultStyle.height,10)/2),"px"),this.cornerStyle.borderBottomWidth=0);this.cornerStyle.display="block"}(0,c.isMobileBrowser)()&&this.updateMultipleSelectionHandlesPosition(n,i,F,P,x,U)}else this.disappear()}}},{key:"isEntireColumnSelected",value:function(e,t){return e===this.wot.wtTable.getFirstRenderedRow()&&t===this.wot.wtTable.getLastRenderedRow()}},{key:"isEntireRowSelected",value:function(e,t){return e===this.wot.wtTable.getFirstRenderedColumn()&&t===this.wot.wtTable.getLastRenderedColumn()}},{key:"getDimensionsFromHeader",value:function(e,t,n,r,o){var i=this.wot.wtTable,a=i.wtRootElement.parentNode,l=null,u=null,c=null,d=null,h=null,f=null,v=null,p=null;switch(e){case"rows":l=function(){return i.getRowHeader.apply(i,arguments)},u=function(){return s.outerHeight.apply(void 0,arguments)},c="ht__selection--rows",f="top";break;case"columns":l=function(){return i.getColumnHeader.apply(i,arguments)},u=function(){return s.outerWidth.apply(void 0,arguments)},c="ht__selection--columns",f="left"}if(a.classList.contains(c)){var g=this.wot.getSetting("columnHeaders").length;if(v=l(t,g-r),p=l(n,g-r),!v||!p)return!1;var m=(0,s.offset)(v),y=(0,s.offset)(p);return v&&p&&(d=m[f]-o[f]-1,h=y[f]+u(p)-m[f]),[v,d,h]}return!1}},{key:"changeBorderStyle",value:function(e,t){var n=this[e].style,r=t[e];!r||r.hide?(0,s.addClass)(this[e],"hidden"):((0,s.hasClass)(this[e],"hidden")&&(0,s.removeClass)(this[e],"hidden"),n.backgroundColor=r.color,"top"!==e&&"bottom"!==e||(n.height="".concat(r.width,"px")),"right"!==e&&"left"!==e||(n.width="".concat(r.width,"px")))}},{key:"changeBorderToDefaultStyle",value:function(e){var t=1,n="#000",r=this[e].style;r.backgroundColor=n,r.width="".concat(t,"px"),r.height="".concat(t,"px")}},{key:"toggleHiddenClass",value:function(e,t){this.changeBorderToDefaultStyle(e),t?(0,s.addClass)(this[e],"hidden"):(0,s.removeClass)(this[e],"hidden")}},{key:"disappear",value:function(){this.topStyle.display="none",this.leftStyle.display="none",this.bottomStyle.display="none",this.rightStyle.display="none",this.cornerStyle.display="none",(0,c.isMobileBrowser)()&&(this.selectionHandles.styles.topLeft.display="none",this.selectionHandles.styles.bottomRight.display="none")}},{key:"destroy",value:function(){this.eventManager.destroyWithOwnEventsOnly(),this.main.parentNode.removeChild(this.main)}}]),e}();t.default=f},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=r(n(2));n(12),n(9),n(11),n(22),n(13),n(44),n(26);var a=n(10),s=n(53),l=n(97),u=n(84),c=r(n(31)),d=n(20),h=new WeakMap,f=function(){function e(t){(0,o.default)(this,e),this.instance=t,this.eventManager=new c.default(t),h.set(this,{selectedCellBeforeTouchEnd:void 0,dblClickTimeout:[null,null],dblClickOrigin:[null,null]}),this.registerEvents()}return(0,i.default)(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,u.isMobileBrowser)()?t():((0,l.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)})))}},{key:"selectedCellWasTouched",value:function(e){var t=h.get(this),n=this.parentCell(e).coords;if(t.selectedCellBeforeTouchEnd&&n){var r=[n.row,t.selectedCellBeforeTouchEnd.from.row],o=r[0],i=r[1],a=[n.col,t.selectedCellBeforeTouchEnd.from.col];return o===i&&a[0]===a[1]}return!1}},{key:"parentCell",value:function(e){var t={},n=this.instance.wtTable.TABLE,r=(0,a.closestDown)(e,["TD","TH"],n);return r?(t.coords=this.instance.wtTable.getCoords(r),t.TD=r):(0,a.hasClass)(e,"wtBorder")&&(0,a.hasClass)(e,"current")?(t.coords=this.instance.selections.getCell().cellRange.highlight,t.TD=this.instance.wtTable.getCell(t.coords)):(0,a.hasClass)(e,"wtBorder")&&(0,a.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=h.get(this),n=this.instance.rootDocument.activeElement,r=(0,s.partial)(a.getParent,e.target),o=e.target;if(o!==n&&r(0)!==n&&r(1)!==n){var i=this.parentCell(o);(0,a.hasClass)(o,"corner")?this.instance.getSetting("onCellCornerMouseDown",e,o):i.TD&&this.instance.hasSetting("onCellMouseDown")&&this.instance.getSetting("onCellMouseDown",e,i.coords,i.TD,this.instance),(0===e.button||this.instance.touchApplied)&&i.TD&&(t.dblClickOrigin[0]=i.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.target);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,a.closestDown)(e.target,["TD","TH"],t),r=this.instance.cloneSource||this.instance;n&&n!==r.lastMouseOver&&(0,a.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,a.closestDown)(e.target,["TD","TH"],t),r=(0,a.closestDown)(e.relatedTarget,["TD","TH"],t);n&&n!==r&&(0,a.isChildOf)(n,t)&&this.instance.getSetting("onCellMouseOut",e,this.instance.wtTable.getCoords(n),n,this.instance)}}},{key:"onMouseUp",value:function(e){var t=h.get(this),n=this.parentCell(e.target);n.TD&&this.instance.hasSetting("onCellMouseUp")&&this.instance.getSetting("onCellMouseUp",e,n.coords,n.TD,this.instance),(0===e.button||this.instance.touchApplied)&&(n.TD===t.dblClickOrigin[0]&&n.TD===t.dblClickOrigin[1]?((0,a.hasClass)(e.target,"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){h.get(this).selectedCellBeforeTouchEnd=this.instance.selections.getCell().cellRange,this.instance.touchApplied=!0,this.onMouseDown(e)}},{key:"onTouchEnd",value:function(e){var t,n=e.target,r=null===(t=this.parentCell(n))||void 0===t?void 0:t.coords,o=(0,d.isDefined)(r)&&(r.row<0||r.col<0);!e.cancelable||o||["A","BUTTON","INPUT"].includes(n.tagName)&&this.selectedCellWasTouched(n)||e.preventDefault(),this.onMouseUp(e),this.instance.touchApplied=!1}},{key:"destroy",value:function(){var e=h.get(this);clearTimeout(e.dblClickTimeout[0]),clearTimeout(e.dblClickTimeout[1]),this.eventManager.destroy()}}]),e}();t.default=f},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(23),n(44);var o=r(n(1)),i=r(n(2)),a=n(10),s=n(3),l=n(70),u=n(84),c=r(n(31)),d=n(401);(0,d.registerOverlayOnce)(d.BottomLeftCornerOverlay),(0,d.registerOverlayOnce)(d.BottomOverlay),(0,d.registerOverlayOnce)(d.LeftOverlay),(0,d.registerOverlayOnce)(d.TopLeftCornerOverlay),(0,d.registerOverlayOnce)(d.TopOverlay);var h=function(){function e(t){(0,o.default)(this,e),this.wot=t;var n=this.wot,r=n.rootDocument,i=n.rootWindow,s=n.wtTable,l=parseInt(i.getComputedStyle(r.body).lineHeight,10),u=1.2*parseInt(i.getComputedStyle(r.body).fontSize,10);this.instance=this.wot,this.eventManager=new c.default(this.wot),this.scrollbarSize=(0,a.getScrollbarWidth)(r),this.wot.update("scrollbarWidth",this.scrollbarSize),this.wot.update("scrollbarHeight",this.scrollbarSize);var d="hidden"===i.getComputedStyle(s.wtRootElement.parentNode).getPropertyValue("overflow");this.scrollableElement=d?s.holder:(0,a.getScrollableElement)(s.TABLE),this.topOverlay=void 0,this.bottomOverlay=void 0,this.leftOverlay=void 0,this.topLeftCornerOverlay=void 0,this.bottomLeftCornerOverlay=void 0,this.prepareOverlays(),this.hasScrollbarBottom=!1,this.hasScrollbarRight=!1,this.destroyed=!1,this.keyPressed=!1,this.spreaderLastSize={width:null,height:null},this.verticalScrolling=!1,this.horizontalScrolling=!1,this.browserLineHeight=l||u,this.registerListeners(),this.lastScrollX=i.scrollX,this.lastScrollY=i.scrollY}return(0,i.default)(e,[{key:"prepareOverlays",value:function(){var e=!1;return this.topOverlay?e=this.topOverlay.updateStateOfRendering()||e:this.topOverlay=(0,d.createOverlay)(d.CLONE_TOP,this.wot),(0,d.hasOverlay)(d.CLONE_BOTTOM)||(this.bottomOverlay={needFullRender:!1,updateStateOfRendering:function(){return!1}}),(0,d.hasOverlay)(d.CLONE_BOTTOM_LEFT_CORNER)||(this.bottomLeftCornerOverlay={needFullRender:!1,updateStateOfRendering:function(){return!1}}),this.bottomOverlay?e=this.bottomOverlay.updateStateOfRendering()||e:this.bottomOverlay=(0,d.createOverlay)(d.CLONE_BOTTOM,this.wot),this.leftOverlay?e=this.leftOverlay.updateStateOfRendering()||e:this.leftOverlay=(0,d.createOverlay)(d.CLONE_LEFT,this.wot),this.topOverlay.needFullRender&&this.leftOverlay.needFullRender&&(this.topLeftCornerOverlay?e=this.topLeftCornerOverlay.updateStateOfRendering()||e:this.topLeftCornerOverlay=(0,d.createOverlay)(d.CLONE_TOP_LEFT_CORNER,this.wot)),this.bottomOverlay.needFullRender&&this.leftOverlay.needFullRender&&(this.bottomLeftCornerOverlay?e=this.bottomLeftCornerOverlay.updateStateOfRendering()||e:this.bottomLeftCornerOverlay=(0,d.createOverlay)(d.CLONE_BOTTOM_LEFT_CORNER,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.wot,n=t.rootDocument,r=t.rootWindow,o=this.topOverlay.mainTableScrollableElement,i=this.leftOverlay.mainTableScrollableElement;this.eventManager.addEventListener(n.documentElement,"keydown",(function(t){return e.onKeyDown(t)})),this.eventManager.addEventListener(n.documentElement,"keyup",(function(){return e.onKeyUp()})),this.eventManager.addEventListener(n,"visibilitychange",(function(){return e.onKeyUp()})),this.eventManager.addEventListener(o,"scroll",(function(t){return e.onTableScroll(t)}),{passive:!0}),o!==i&&this.eventManager.addEventListener(i,"scroll",(function(t){return e.onTableScroll(t)}),{passive:!0});var a,s=r.devicePixelRatio&&r.devicePixelRatio>1,l=this.scrollableElement===r,c=this.wot.wtSettings.getSetting("preventWheel"),d={passive:l};(c||s||!(0,u.isChrome)())&&this.eventManager.addEventListener(this.wot.wtTable.wtRootElement,"wheel",(function(t){return e.onCloneWheel(t,c)}),d),[this.topOverlay,this.bottomOverlay,this.leftOverlay,this.topLeftCornerOverlay,this.bottomLeftCornerOverlay].forEach((function(t){if(t&&t.needFullRender){var n=t.clone.wtTable.holder;e.eventManager.addEventListener(n,"wheel",(function(t){return e.onCloneWheel(t,c)}),d)}})),this.eventManager.addEventListener(r,"resize",(function(){clearTimeout(a),a=setTimeout((function(){e.wot.getSetting("onWindowResize")}),200)}))}},{key:"deregisterListeners",value:function(){this.eventManager.clearEvents(!0)}},{key:"onTableScroll",value:function(e){var t=this.wot.rootWindow,n=this.leftOverlay.mainTableScrollableElement,r=this.topOverlay.mainTableScrollableElement,o=e.target;this.keyPressed&&(r!==t&&o!==t&&!e.target.contains(r)||n!==t&&o!==t&&!e.target.contains(n))||this.syncScrollPositions(e)}},{key:"onCloneWheel",value:function(e,t){var n=this.wot.rootWindow,r=this.leftOverlay.mainTableScrollableElement,o=this.topOverlay.mainTableScrollableElement,i=e.target,a=o!==n&&i!==n&&!i.contains(o),s=r!==n&&i!==n&&!i.contains(r);if(!this.keyPressed||!a&&!s){var l=this.translateMouseWheelToScroll(e);(t||this.scrollableElement!==n&&l)&&e.preventDefault()}}},{key:"onKeyDown",value:function(e){this.keyPressed=(0,l.isKey)(e.keyCode,"ARROW_UP|ARROW_RIGHT|ARROW_DOWN|ARROW_LEFT")}},{key:"onKeyUp",value:function(){this.keyPressed=!1}},{key:"translateMouseWheelToScroll",value:function(e){var t=this.browserLineHeight,n=isNaN(e.deltaY)?-1*e.wheelDeltaY:e.deltaY,r=isNaN(e.deltaX)?-1*e.wheelDeltaX:e.deltaX;1===e.deltaMode&&(r+=r*t,n+=n*t);var o=this.scrollVertically(n),i=this.scrollHorizontally(r);return o||i}},{key:"scrollVertically",value:function(e){var t=this.scrollableElement.scrollTop;return this.scrollableElement.scrollTop+=e,t!==this.scrollableElement.scrollTop}},{key:"scrollHorizontally",value:function(e){var t=this.scrollableElement.scrollLeft;return this.scrollableElement.scrollLeft+=e,t!==this.scrollableElement.scrollLeft}},{key:"syncScrollPositions",value:function(){if(!this.destroyed){var e=this.wot.rootWindow,t=this.topOverlay.clone.wtTable.holder,n=this.leftOverlay.clone.wtTable.holder,r=[this.scrollableElement.scrollLeft,this.scrollableElement.scrollTop],o=r[0],i=r[1];if(this.horizontalScrolling=t.scrollLeft!==o||this.lastScrollX!==e.scrollX,this.verticalScrolling=n.scrollTop!==i||this.lastScrollY!==e.scrollY,this.lastScrollX=e.scrollX,this.lastScrollY=e.scrollY,this.horizontalScrolling){t.scrollLeft=o;var a=this.bottomOverlay.needFullRender?this.bottomOverlay.clone.wtTable.holder:null;a&&(a.scrollLeft=o)}this.verticalScrolling&&(n.scrollTop=i),this.refreshAll()}}},{key:"syncScrollWithMaster",value:function(){var e=this.topOverlay.mainTableScrollableElement,t=e.scrollLeft,n=e.scrollTop;this.topOverlay.needFullRender&&(this.topOverlay.clone.wtTable.holder.scrollLeft=t),this.bottomOverlay.needFullRender&&(this.bottomOverlay.clone.wtTable.holder.scrollLeft=t),this.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();var e=this.wot,t=e.rootWindow,n=e.wtTable;"hidden"===t.getComputedStyle(n.wtRootElement.parentNode).getPropertyValue("overflow")?this.scrollableElement=n.holder:this.scrollableElement=(0,a.getScrollableElement)(n.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.destroyed=!0}},{key:"refresh",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.wot.wtTable.spreader,n=t.clientWidth,r=t.clientHeight;n===this.spreaderLastSize.width&&r===this.spreaderLastSize.height||(this.spreaderLastSize.width=n,this.spreaderLastSize.height=r,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)}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.wot,n=t.wtViewport,r=t.wtTable,o=this.wot.getSetting("totalColumns"),i=this.wot.getSetting("totalRows"),a=n.getRowHeaderWidth(),s=n.getColumnHeaderHeight(),l=r.hider.style;if(l.width="".concat(a+this.leftOverlay.sumCellSizes(0,o),"px"),l.height="".concat(s+this.topOverlay.sumCellSizes(0,i)+1,"px"),this.scrollbarSize>0){var u=r.wtRootElement,c=u.scrollHeight,d=u.scrollWidth,h=r.holder,f=h.scrollHeight,v=h.scrollWidth;this.hasScrollbarRight=c<f,this.hasScrollbarBottom=d<v,this.hasScrollbarRight&&r.hider.scrollWidth+this.scrollbarSize>d?this.hasScrollbarBottom=!0:this.hasScrollbarBottom&&r.hider.scrollHeight+this.scrollbarSize>c&&(this.hasScrollbarRight=!0)}this.topOverlay.adjustElementsSize(e),this.leftOverlay.adjustElementsSize(e),this.bottomOverlay.adjustElementsSize(e)}},{key:"applyToDOM",value:function(){this.wot.wtTable.isVisible()&&(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,s.arrayEach)(t,(function(t){t&&t.clone&&t.clone.wtTable.TABLE.contains(e)&&(n=t.clone)})),n}},{key:"syncOverlayTableClassNames",value:function(){var e=this.instance.wtTable.TABLE,t=[this.topOverlay,this.leftOverlay,this.bottomOverlay,this.topLeftCornerOverlay,this.bottomLeftCornerOverlay];(0,s.arrayEach)(t,(function(t){t&&(t.clone.wtTable.TABLE.className=e.className)}))}}]),e}();t.default=h},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=r(n(2)),a=n(10),s=function(){function e(t){(0,o.default)(this,e),this.wot=t}return(0,i.default)(e,[{key:"scrollViewport",value:function(e,t,n,r,o){if(e.col<0||e.row<0)return!1;var i=this.scrollViewportHorizontally(e.col,n,o),a=this.scrollViewportVertically(e.row,t,r);return i||a}},{key:"scrollViewportHorizontally",value:function(e,t,n){if(!this.wot.drawn)return!1;var r=this._getVariables(),o=r.fixedColumnsLeft,i=r.leftOverlay,a=r.totalColumns,s=!1;if(e>=0&&e<=Math.max(a-1,0)){var l=this.getFirstVisibleColumn(),u=this.getLastVisibleColumn();e>=o&&l>-1&&(e<l||n)?s=i.scrollTo(e):(-1===u||u>-1&&(e>u||t))&&(s=i.scrollTo(e,!0))}return s}},{key:"scrollViewportVertically",value:function(e,t,n){if(!this.wot.drawn)return!1;var r=this._getVariables(),o=r.fixedRowsBottom,i=r.fixedRowsTop,a=r.topOverlay,s=r.totalRows,l=!1;if(e>=0&&e<=Math.max(s-1,0)){var u=this.getFirstVisibleRow(),c=this.getLastVisibleRow();e>=i&&u>-1&&(e<u||t)?l=a.scrollTo(e):(-1===c||c>-1&&(e>c&&e<s-o||n))&&(l=a.scrollTo(e,!0))}return l}},{key:"getFirstVisibleRow",value:function(){var e=this._getVariables(),t=e.topOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalRows,i=e.fixedRowsTop,s=this.wot.rootWindow,l=n.getFirstVisibleRow();if(t.mainTableScrollableElement===s){var u=(0,a.offset)(n.wtRootElement),c=(0,a.innerHeight)(n.hider),d=(0,a.innerHeight)(s),h=(0,a.getScrollTop)(s,s);if(u.top+c-d<=h){var f=r.getColumnHeaderHeight();f+=t.sumCellSizes(0,i);for(var v=o;v>0;v--)if(f+=t.sumCellSizes(v-1,v),u.top+c-f<=h){l=v;break}}}return l}},{key:"getLastVisibleRow",value:function(){var e=this._getVariables(),t=e.topOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalRows,i=this.wot.rootWindow,s=n.getLastVisibleRow();if(t.mainTableScrollableElement===i){var l=(0,a.offset)(n.wtRootElement),u=(0,a.getScrollTop)(i,i);if(l.top>u)for(var c=(0,a.innerHeight)(i),d=r.getColumnHeaderHeight(),h=1;h<=o;h++)if(d+=t.sumCellSizes(h-1,h),l.top+d-u>=c){s=h-2;break}}return s}},{key:"getFirstVisibleColumn",value:function(){var e=this._getVariables(),t=e.leftOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalColumns,i=this.wot.rootWindow,s=n.getFirstVisibleColumn();if(t.mainTableScrollableElement===i){var l=(0,a.offset)(n.wtRootElement),u=(0,a.innerWidth)(n.hider),c=(0,a.innerWidth)(i),d=(0,a.getScrollLeft)(i,i);if(l.left+u-c<=d)for(var h=r.getRowHeaderWidth(),f=o;f>0;f--)if(h+=t.sumCellSizes(f-1,f),l.left+u-h<=d){s=f;break}}return s}},{key:"getLastVisibleColumn",value:function(){var e=this._getVariables(),t=e.leftOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalColumns,i=this.wot.rootWindow,s=n.getLastVisibleColumn();if(t.mainTableScrollableElement===i){var l=(0,a.offset)(n.wtRootElement),u=(0,a.getScrollLeft)(i,i);if(l.left>u)for(var c=(0,a.innerWidth)(i),d=r.getRowHeaderWidth(),h=1;h<=o;h++)if(d+=t.sumCellSizes(h-1,h),l.left+d-u>=c){s=h-2;break}}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=s},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=r(n(2)),a=n(10),s=n(5),l=function(){function e(t,n){var r=this;(0,o.default)(this,e),this.wot=t,this.instance=t,this.defaults={table:void 0,externalRowCalculator:!1,stretchH:"none",currentRowClassName:null,currentColumnClassName:null,preventOverflow:function(){return!1},preventWheel:!1,data:void 0,freezeOverlays:!1,fixedColumnsLeft:0,fixedRowsTop:0,fixedRowsBottom:0,shouldRenderLeftOverlay:function(){return r.getSetting("fixedColumnsLeft")>0||r.getSetting("rowHeaders").length>0},shouldRenderTopOverlay:function(){return r.getSetting("fixedRowsTop")>0||r.getSetting("columnHeaders").length>0},shouldRenderBottomOverlay:function(){return r.getSetting("fixedRowsBottom")>0},minSpareRows:0,rowHeaders:function(){return[]},columnHeaders:function(){return[]},totalRows:void 0,totalColumns:void 0,cellRenderer:function(e,t,n){var o=r.getSetting("data",e,t);(0,a.fastInnerText)(n,null==o?"":o)},columnWidth:function(){},rowHeight:function(){},defaultRowHeight:23,defaultColumnWidth:50,selections:null,hideBorderOnMouseDownOver:!1,viewportRowCalculatorOverride:null,viewportColumnCalculatorOverride:null,onCellMouseDown:null,onCellContextMenu:null,onCellMouseOver:null,onCellMouseOut:null,onCellMouseUp:null,onCellDblClick:null,onCellCornerMouseDown:null,onCellCornerDblClick:null,beforeDraw:null,onDraw:null,onBeforeRemoveCellClassNames:null,onAfterDrawSelection:null,onBeforeDrawBorders:null,onScrollVertically:null,onScrollHorizontally:null,onBeforeTouchScroll:null,onAfterMomentumScroll:null,onBeforeStretchingColumnWidth:function(e){return e},onModifyRowHeaderWidth:null,onModifyGetCellCoords:null,onBeforeHighlightingRowHeader:function(e){return e},onBeforeHighlightingColumnHeader:function(e){return e},onWindowResize:null,scrollbarWidth:10,scrollbarHeight:10,renderAllRows:!1,groups:!1,rowHeaderWidth:null,columnHeaderHeight:null,headerClassName:null},this.settings={},(0,s.objectEach)(this.defaults,(function(e,t){if(void 0!==n[t])r.settings[t]=n[t];else{if(void 0===e)throw new Error('A required setting "'.concat(t,'" was not provided'));r.settings[t]=e}}))}return(0,i.default)(e,[{key:"update",value:function(e,t){var n=this;return void 0===t?(0,s.objectEach)(e,(function(e,t){n.settings[t]=e})):this.settings[e]=t,this.wot}},{key:"getSetting",value:function(e,t,n,r,o){return"function"==typeof this.settings[e]?this.settings[e](t,n,r,o):void 0!==t&&Array.isArray(this.settings[e])?this.settings[e][t]:this.settings[e]}},{key:"has",value:function(e){return!!this.settings[e]}}]),e}();t.default=l},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=r(n(2)),a=n(10),s=n(5),l=r(n(31)),u=n(528),c=function(){function e(t){var n=this;(0,o.default)(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 l.default(this.wot),this.eventManager.addEventListener(this.wot.rootWindow,"resize",(function(){n.clientHeight=n.getWorkspaceHeight()}))}return(0,i.default)(e,[{key:"getWorkspaceHeight",value:function(){var e=this.wot.rootDocument,t=this.instance.wtOverlays.topOverlay.trimmingContainer,n=0;t===this.wot.rootWindow?n=e.documentElement.clientHeight:n=(0,a.outerHeight)(t)>0&&t.clientHeight>0?t.clientHeight:1/0;return n}},{key:"getWorkspaceWidth",value:function(){var e,t,n=this.wot,r=n.rootDocument,o=n.rootWindow,i=this.instance.wtOverlays.leftOverlay.trimmingContainer,s=r.documentElement.offsetWidth,l=n.getSetting("totalColumns");if(n.getSetting("preventOverflow"))return(0,a.outerWidth)(this.instance.wtTable.wtRootElement);if(e=n.getSetting("freezeOverlays")?Math.min(s-this.getWorkspaceOffset().left,s):Math.min(this.getContainerFillWidth(),s-this.getWorkspaceOffset().left,s),i===o&&l>0&&this.sumColumnWidths(0,l-1)>e)return r.documentElement.clientWidth;if(i!==o&&("scroll"===(t=(0,a.getStyle)(this.instance.wtOverlays.leftOverlay.trimmingContainer,"overflow",o))||"hidden"===t||"auto"===t))return Math.max(e,i.clientWidth);var u=n.getSetting("stretchH");return"none"!==u&&u?e:Math.max(e,(0,a.outerWidth)(this.instance.wtTable.TABLE))}},{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,r=0,o=e;o<t;)r+=n.getColumnWidth(o),o+=1;return r}},{key:"getContainerFillWidth",value:function(){if(this.containerWidth)return this.containerWidth;var e=this.instance.wtTable.holder,t=this.wot.rootDocument.createElement("div");t.style.width="100%",t.style.height="1px",e.appendChild(t);var n=t.offsetWidth;return this.containerWidth=n,e.removeChild(t),n}},{key:"getWorkspaceOffset",value:function(){return(0,a.offset)(this.wot.wtTable.TABLE)}},{key:"getWorkspaceActualHeight",value:function(){return(0,a.outerHeight)(this.wot.wtTable.TABLE)}},{key:"getWorkspaceActualWidth",value:function(){var e=this.wot.wtTable;return(0,a.outerWidth)(e.TABLE)||(0,a.outerWidth)(e.TBODY)||(0,a.outerWidth)(e.THEAD)}},{key:"getColumnHeaderHeight",value:function(){return this.instance.getSetting("columnHeaders").length?isNaN(this.columnHeaderHeight)&&(this.columnHeaderHeight=(0,a.outerHeight)(this.wot.wtTable.THEAD)):this.columnHeaderHeight=0,this.columnHeaderHeight}},{key:"getViewportHeight",value:function(){var e=this.getWorkspaceHeight();if(e===1/0)return e;var t=this.getColumnHeaderHeight();return t>0&&(e-=t),e}},{key:"getRowHeaderWidth",value:function(){var e=this.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 o=this.instance.wtTable.TABLE.querySelector("TH");this.rowHeaderWidth=0;for(var i=0,s=t.length;i<s;i++)o?(this.rowHeaderWidth+=(0,a.outerWidth)(o),o=o.nextSibling):this.rowHeaderWidth+=50}else this.rowHeaderWidth=0;return this.rowHeaderWidth=this.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=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.RENDER_TYPE,o=this.wot,i=o.wtSettings,s=o.wtOverlays,l=o.wtTable,c=o.rootDocument;this.rowHeaderWidth=NaN,e=i.settings.renderAllRows&&r===u.RENDER_TYPE?1/0:this.getViewportHeight();var d=s.topOverlay.getScrollPosition()-s.topOverlay.getTableParentOffset();d<0&&(d=0);var h=o.getSetting("fixedRowsTop"),f=o.getSetting("fixedRowsBottom"),v=o.getSetting("totalRows");return h&&(d+=n=s.topOverlay.sumCellSizes(0,h),e-=n),f&&s.bottomOverlay.clone&&(e-=n=s.bottomOverlay.sumCellSizes(v-f,v)),t=l.holder.clientHeight===l.holder.offsetHeight?0:(0,a.getScrollbarWidth)(c),new u.ViewportRowsCalculator({viewportSize:e,scrollOffset:d,totalItems:o.getSetting("totalRows"),itemSizeFn:function(e){return l.getRowHeight(e)},overrideFn:i.settings.viewportRowCalculatorOverride,calculationType:r,scrollbarHeight:t})}},{key:"createColumnsCalculator",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.RENDER_TYPE,t=this.wot,n=t.wtSettings,r=t.wtOverlays,o=t.wtTable,i=t.rootDocument,s=this.getViewportWidth(),l=r.leftOverlay.getScrollPosition()-r.leftOverlay.getTableParentOffset();this.columnHeaderHeight=NaN,l<0&&(l=0);var c=t.getSetting("fixedColumnsLeft");if(c){var d=r.leftOverlay.sumCellSizes(0,c);l+=d,s-=d}return o.holder.clientWidth!==o.holder.offsetWidth&&(s-=(0,a.getScrollbarWidth)(i)),new u.ViewportColumnsCalculator({viewportSize:s,scrollOffset:l,totalItems:t.getSetting("totalColumns"),itemSizeFn:function(e){return t.wtTable.getColumnWidth(e)},overrideFn:n.settings.viewportColumnCalculatorOverride,calculationType:e,stretchMode:t.getSetting("stretchH"),stretchingItemWidthFn:function(e,n){return t.getSetting("onBeforeStretchingColumnWidth",e,n)}})}},{key:"createRenderCalculators",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=e;if(t){var n=this.createRowsCalculator(u.FULLY_VISIBLE_TYPE),r=this.createColumnsCalculator(u.FULLY_VISIBLE_TYPE);this.areAllProposedVisibleRowsAlreadyRendered(n)&&this.areAllProposedVisibleColumnsAlreadyRendered(r)||(t=!1)}return t||(this.rowsRenderCalculator=this.createRowsCalculator(u.RENDER_TYPE),this.columnsRenderCalculator=this.createColumnsCalculator(u.RENDER_TYPE)),this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,t}},{key:"createVisibleCalculators",value:function(){this.rowsVisibleCalculator=this.createRowsCalculator(u.FULLY_VISIBLE_TYPE),this.columnsVisibleCalculator=this.createColumnsCalculator(u.FULLY_VISIBLE_TYPE)}},{key:"areAllProposedVisibleRowsAlreadyRendered",value:function(e){if(!this.rowsVisibleCalculator)return!1;var t=e.startRow,n=e.endRow,r=this.rowsRenderCalculator,o=r.startRow,i=r.endRow;return!(t<o||t===o&&t>0)&&!(n>i||n===i&&n<this.wot.getSetting("totalRows")-1)}},{key:"areAllProposedVisibleColumnsAlreadyRendered",value:function(e){if(!this.columnsVisibleCalculator)return!1;var t=e.startColumn,n=e.endColumn,r=this.columnsRenderCalculator,o=r.startColumn,i=r.endColumn;return!(t<o||t===o&&t>0)&&!(n>i||n===i&&n<this.wot.getSetting("totalColumns")-1)}},{key:"resetHasOversizedColumnHeadersMarked",value:function(){(0,s.objectEach)(this.hasOversizedColumnHeadersMarked,(function(e,t,n){n[t]=void 0}))}}]),e}();t.default=c},function(e,t,n){var r=n(21),o=n(530).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},function(e,t,n){"use strict";var r=n(21),o=n(102).findIndex,i=n(127),a=!0;"findIndex"in[]&&Array(1).findIndex((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("findIndex")},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.createUniqueMap=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.errorIdExists,n=new Map;function r(e,r){if(h(e))throw new Error(t(e));n.set(e,r)}function l(){n.clear()}function u(e){var t=d().find((function(t){var n=(0,i.default)(t,2),r=n[0],o=n[1];return e===o&&r}))||[null];return(0,i.default)(t,1)[0]}function c(e){return n.get(e)}function d(){return(0,o.default)(n)}function h(e){return n.has(e)}return t=(0,a.isFunction)(t)?t:s,{addItem:r,clear:l,getId:u,getItem:c,getItems:d,hasItem:h}};var o=r(n(25)),i=r(n(18));n(12),n(39),n(9),n(11),n(13),n(160);var a=n(53),s=function(e){return"The id '".concat(e,"' is already declared in a map.")}},function(e,t,n){"use strict";t.__esModule=!0,t.mouseDown=i,t.mouseOver=a,t.handleMouseEvent=function(e,t){var n=t.coords,o=t.selection,i=t.controller;s.get(e.type)({coords:n,selection:o,controller:i,isShiftKey:e.shiftKey,isLeftClick:(0,r.isLeftClick)(e)||"touchstart"===e.type,isRightClick:(0,r.isRightClick)(e)})},n(12),n(39),n(9),n(11),n(13);var r=n(45),o=n(38);function i(e){var t=e.isShiftKey,n=e.isLeftClick,r=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 o.CellCoords(i.row,i.col)):u&&i.row<0&&!s.column?a.setRangeEnd(new o.CellCoords(l.to.row,i.col)):c&&i.col<0&&!s.row?a.setRangeEnd(new o.CellCoords(i.row,l.to.col)):(!u&&!c&&i.col<0||u&&i.col<0)&&!s.row?a.selectRows(Math.max(l.from.row,0),i.row,i.col):(!u&&!c&&i.row<0||c&&i.row<0)&&!s.column&&a.selectColumns(Math.max(l.from.col,0),i.col,i.row);else{var d=!a.inInSelection(i),h=n||r&&d;i.row<0&&i.col>=0&&!s.column?h&&a.selectColumns(i.col,i.col,i.row):i.col<0&&i.row>=0&&!s.row?h&&a.selectRows(i.row,i.row,i.col):i.col>=0&&i.row>=0&&!s.cells?h&&a.setRangeStart(i):i.col<0&&i.row<0&&a.selectAll(!0,!0)}}function a(e){var t=e.isLeftClick,n=e.coords,r=e.selection,i=e.controller;if(t){var a=r.isSelectedByRowHeader(),s=r.isSelectedByColumnHeader(),l=r.tableProps.countCols(),u=r.tableProps.countRows();s&&!i.column?r.setRangeEnd(new o.CellCoords(u-1,n.col)):a&&!i.row?r.setRangeEnd(new o.CellCoords(n.row,l-1)):i.cell||r.setRangeEnd(n)}}var s=new Map([["mousedown",i],["mouseover",a],["touchstart",i]])},function(e,t,n){"use strict";n(23),n(35),t.__esModule=!0;var r={createIndexMap:!0,HidingMap:!0,IndexMap:!0,LinkedPhysicalIndexToValueMap:!0,PhysicalIndexToValueMap:!0,TrimmingMap:!0};t.createIndexMap=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!d.has(e))throw new Error('The provided map type ("'.concat(e,'") does not exist.'));return new(d.get(e))(t)},n(12),n(39),n(9),n(11),n(13);var o=n(543);t.HidingMap=o.HidingMap;var i=n(164);t.IndexMap=i.IndexMap;var a=n(545);t.LinkedPhysicalIndexToValueMap=a.LinkedPhysicalIndexToValueMap;var s=n(205);t.PhysicalIndexToValueMap=s.PhysicalIndexToValueMap;var l=n(546);t.TrimmingMap=l.TrimmingMap;var u=n(547);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===u[e]||(t[e]=u[e]))}));var c=n(165);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===c[e]||(t[e]=c[e]))}));var d=new Map([["hiding",o.HidingMap],["index",i.IndexMap],["linkedPhysicalIndexToValue",a.LinkedPhysicalIndexToValueMap],["physicalIndexToValue",s.PhysicalIndexToValueMap],["trimming",l.TrimmingMap]])},function(e,t,n){"use strict";t.__esModule=!0,t.getDecreasedIndexes=function(e,t){return(0,r.arrayMap)(e,(function(e){return e-t.filter((function(t){return t<e})).length}))},t.getIncreasedIndexes=function(e,t){var n=t[0],o=t.length;return(0,r.arrayMap)(e,(function(e){return e>=n?e+o:e}))},n(30);var r=n(3)},function(e,t,n){"use strict";t.__esModule=!0,t.alterUtilsFactory=void 0,n(12),n(39),n(9),n(11),n(13);var r=n(415);t.getDecreasedIndexes=r.getDecreasedIndexes,t.getIncreasedIndexes=r.getIncreasedIndexes;var o=n(165),i=n(206),a=new Map([["indexesSequence",{getListWithInsertedItems:o.getListWithInsertedItems,getListWithRemovedItems:o.getListWithRemovedItems}],["physicallyIndexed",{getListWithInsertedItems:i.getListWithInsertedItems,getListWithRemovedItems:i.getListWithRemovedItems}]]);t.alterUtilsFactory=function(e){if(!1===a.has(e))throw new Error("Alter strategy with ID '".concat(e,"' does not exist."));return a.get(e)}},function(e,t){e.exports=function(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";t.__esModule=!0,t.registerAsRootInstance=function(e){r.set(e,!0)},t.hasValidParameter=function(e){return e===o},t.isRootInstance=function(e){return r.has(e)},t.rootInstanceSymbol=t.holder=void 0,n(12),n(9),n(11),n(22),n(13),n(49),n(138);var r=new WeakMap;t.holder=r;var o=Symbol("rootInstance");t.rootInstanceSymbol=o},function(e,t,n){var r=n(42);t.f=r},function(e,t,n){var r=n(234),o=n(65),i=n(419),a=n(66).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},function(e,t,n){"use strict";var r=n(14),o=n(0);t.__esModule=!0,t.registerLanguageDictionary=E,t.getLanguageDictionary=w,t.hasLanguageDictionary=C,t.getDefaultLanguageDictionary=function(){return d.default},t.getLanguagesDictionaries=function(){return y()},t.getTranslatedPhrase=function(e,t,n){var r=w(e);if(null===r)return null;var o=r[t];if((0,s.isUndefined)(o))return null;var i=function(e,t){var n=e;return(0,a.arrayEach)((0,c.getPhraseFormatters)(),(function(r){n=r(e,t)})),n}(o,n);if(Array.isArray(i))return i[0];return i},t.getValidLanguageCode=function(e){var t=(0,l.normalizeLanguageCode)(e);C(t)||(t=f,(0,l.warnUserAboutLanguageRegistration)(e));return t},t.dictionaryKeys=t.DEFAULT_LANGUAGE_CODE=void 0;var i=n(5),a=n(3),s=n(20),l=n(422),u=o(n(98)),c=n(555),d=o(n(557)),h=r(n(15));t.dictionaryKeys=h;var f=d.default.languageCode;t.DEFAULT_LANGUAGE_CODE=f;var v=(0,u.default)("languagesDictionaries"),p=v.register,g=v.getItem,m=v.hasItem,y=v.getValues;function E(e,t){var n=e,r=t;return(0,i.isObject)(e)&&(n=(r=e).languageCode),function(e,t){e!==f&&(0,l.extendNotExistingKeys)(t,g(f))}(n,r),p(n,(0,i.deepClone)(r)),(0,i.deepClone)(r)}function w(e){return C(e)?(0,i.deepClone)(g(e)):null}function C(e){return m(e)}E(d.default)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.extendNotExistingKeys=function(e,t){return(0,s.objectEach)(t,(function(t,n){(0,a.isUndefined)(e[n])&&(e[n]=t)})),e},t.createCellHeadersRange=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,o=n,i=r;if(e>t){var a=[i,o];o=a[0],i=a[1]}return"".concat(o,"-").concat(i)},t.normalizeLanguageCode=function(e){var t=/^([a-zA-Z]{2})-([a-zA-Z]{2})$/.exec(e);if(t)return"".concat(t[1].toLowerCase(),"-").concat(t[2].toUpperCase());return e},t.warnUserAboutLanguageRegistration=function(e){(0,a.isDefined)(e)&&(0,l.error)((0,u.toSingleLine)(i||(i=(0,o.default)(['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.'],['Language with code "','" was not found. You should register particular language\\x20\n before using it. Read more about this issue at: https://docs.handsontable.com/i18n/missing-language-code.'])),e))};var o=r(n(63));n(19),n(29);var i,a=n(20),s=n(5),l=n(69),u=n(64)},function(e,t,n){"use strict";n(35),n(30),n(71),n(23),n(72);var r=n(0);t.__esModule=!0,t.default=void 0,n(163),n(12),n(39),n(9),n(11),n(13),n(26),n(34),n(209),n(49),n(138),n(19);var o=r(n(25)),i=r(n(37)),a=r(n(1)),s=r(n(2)),l=n(558),u=n(85),c=n(3);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=function(){function e(t){(0,a.default)(this,e),this.options=t,this.layerLevel=0,this.cell=(0,l.createHighlight)(u.CELL_TYPE,t),this.fill=(0,l.createHighlight)(u.FILL_TYPE,t),this.areas=new Map,this.headers=new Map,this.activeHeaders=new Map,this.customSelections=[]}return(0,s.default)(e,[{key:"isEnabledFor",value:function(e,t){var n=e;e===u.CELL_TYPE&&(n="current");var r=this.options.disabledCellSelection(t.row,t.col);return"string"==typeof r&&(r=[r]),!1===r||Array.isArray(r)&&!r.includes(n)}},{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,l.createHighlight)(u.AREA_TYPE,h({layerLevel:t},this.options)),this.areas.set(t,e)),e}},{key:"getAreas",value:function(){return(0,o.default)(this.areas.values())}},{key:"createOrGetHeader",value:function(){var e,t=this.layerLevel;return this.headers.has(t)?e=this.headers.get(t):(e=(0,l.createHighlight)(u.HEADER_TYPE,h({},this.options)),this.headers.set(t,e)),e}},{key:"getHeaders",value:function(){return(0,o.default)(this.headers.values())}},{key:"createOrGetActiveHeader",value:function(){var e,t=this.layerLevel;return this.activeHeaders.has(t)?e=this.activeHeaders.get(t):(e=(0,l.createHighlight)(u.ACTIVE_HEADER_TYPE,h({},this.options)),this.activeHeaders.set(t,e)),e}},{key:"getActiveHeaders",value:function(){return(0,o.default)(this.activeHeaders.values())}},{key:"getCustomSelections",value:function(){return(0,o.default)(this.customSelections.values())}},{key:"addCustomSelection",value:function(e){this.customSelections.push((0,l.createHighlight)(u.CUSTOM_SELECTION_TYPE,h(h({},this.options),e)))}},{key:"clear",value:function(){this.cell.clear(),this.fill.clear(),(0,c.arrayEach)(this.areas.values(),(function(e){e.clear()})),(0,c.arrayEach)(this.headers.values(),(function(e){e.clear()})),(0,c.arrayEach)(this.activeHeaders.values(),(function(e){e.clear()}))}},{key:Symbol.iterator,value:function(){return[this.cell,this.fill].concat((0,o.default)(this.areas.values()),(0,o.default)(this.headers.values()),(0,o.default)(this.activeHeaders.values()),(0,o.default)(this.customSelections))[Symbol.iterator]()}}]),e}();t.default=f},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0;var o=r(n(570));t.DataMap=o.default;var i=r(n(572));t.MetaManager=i.default;var a=r(n(426));t.metaSchemaFactory=a.default},function(e,t,n){"use strict";t.__esModule=!0,t.stringify=t.parse=void 0;var r=n(571);t.parse=r.parse,t.stringify=r.stringify},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(56)),i=n(20),a=n(5);t.default=function(){return{licenseKey:void 0,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:{col:0,row:1},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,r,s;for(t=0,n=this.countCols();t<n;t++)if(r=this.getDataAtCell(e,t),!1===(0,i.isEmpty)(r))return"object"===(0,o.default)(r)&&(s=this.getCellMeta(e,t),(0,a.isObjectEqual)(this.getSchema()[s.prop],r));return!0},isEmptyCol:function(e){var t,n,r;for(t=0,n=this.countRows();t<n;t++)if(r=this.getDataAtCell(t,e),!1===(0,i.isEmpty)(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,skipRowOnPaste:!1,search:!1,type:"text",copyable:!0,editor:void 0,visibleRows:10,trimDropdown:!0,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,preventWheel:!1,bindRowsWithHeaders:void 0,collapsibleColumns:void 0,columnSummary:void 0,dropdownMenu:void 0,filters:void 0,formulas: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}}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(12),n(9),n(62),n(11),n(13),n(41),n(19),n(209),n(49),n(138),n(17);var o=r(n(1)),i=r(n(2)),a=n(3),s=n(140),l=function(){function e(t){(0,o.default)(this,e),this.valueFactory=t,this.data=[],this.index=[],this.holes=new Set}return(0,i.default)(e,[{key:"obtain",value:function(e){(0,s.assert)((function(){return(0,s.isUnsignedNumber)(e)}),"Expecting an unsigned number.");var t,n=this._getStorageIndexByKey(e);if(n>=0)void 0===(t=this.data[n])&&(t=this.valueFactory(e),this.data[n]=t);else if(t=this.valueFactory(e),this.holes.size>0){var r=this.holes.values().next().value;this.holes.delete(r),this.data[r]=t,this.index[e]=r}else this.data.push(t),this.index[e]=this.data.length-1;return t}},{key:"insert",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;(0,s.assert)((function(){return(0,s.isUnsignedNumber)(e)||(0,s.isNullish)(e)}),"Expecting an unsigned number or null/undefined argument.");for(var r=[],o=this.data.length,i=0;i<n;i++)r.push(o+i),this.data.push(void 0);(t=this.index).splice.apply(t,[(0,s.isNullish)(e)?this.index.length:e,0].concat(r))}},{key:"remove",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;(0,s.assert)((function(){return(0,s.isUnsignedNumber)(e)||(0,s.isNullish)(e)}),"Expecting an unsigned number or null/undefined argument.");for(var n=this.index.splice((0,s.isNullish)(e)?this.index.length-t:e,t),r=0;r<n.length;r++){var o=n[r];"number"==typeof o&&this.holes.add(o)}}},{key:"size",value:function(){return this.data.length-this.holes.size}},{key:"values",value:function(){var e=this;return(0,a.arrayFilter)(this.data,(function(t,n){return!e.holes.has(n)}))[Symbol.iterator]()}},{key:"entries",value:function(){for(var e=[],t=0;t<this.data.length;t++){var n=this._getKeyByStorageIndex(t);-1!==n&&e.push([n,this.data[t]])}var r=0;return{next:function(){if(r<e.length){var t=e[r];return r+=1,{value:t,done:!1}}return{done:!0}}}}},{key:"clear",value:function(){this.data=[],this.index=[],this.holes.clear()}},{key:"_getStorageIndexByKey",value:function(e){return this.index.length>e?this.index[e]:-1}},{key:"_getKeyByStorageIndex",value:function(e){return this.index.indexOf(e)}},{key:Symbol.iterator,value:function(){return this.entries()}}]),e}();t.default=l},function(e,t,n){"use strict";t.__esModule=!0,t.TextCellType=t.CELL_TYPE=void 0;var r=n(577);t.CELL_TYPE=r.CELL_TYPE,t.TextCellType=r.TextCellType},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";t.__esModule=!0,t.CheckboxEditor=t.EDITOR_TYPE=void 0;var r=n(587);t.EDITOR_TYPE=r.EDITOR_TYPE,t.CheckboxEditor=r.CheckboxEditor},function(e,t,n){"use strict";t.__esModule=!0,t.DropdownEditor=t.EDITOR_TYPE=void 0;var r=n(591);t.EDITOR_TYPE=r.EDITOR_TYPE,t.DropdownEditor=r.DropdownEditor},function(e,t,n){"use strict";t.__esModule=!0,t.NumericEditor=t.EDITOR_TYPE=void 0;var r=n(592);t.EDITOR_TYPE=r.EDITOR_TYPE,t.NumericEditor=r.NumericEditor},function(e,t,n){"use strict";t.__esModule=!0,t.PasswordEditor=t.EDITOR_TYPE=void 0;var r=n(593);t.EDITOR_TYPE=r.EDITOR_TYPE,t.PasswordEditor=r.PasswordEditor},function(e,t,n){"use strict";t.__esModule=!0,t.htmlRenderer=t.RENDERER_TYPE=void 0;var r=n(598);t.RENDERER_TYPE=r.RENDERER_TYPE,t.htmlRenderer=r.htmlRenderer},function(e,t,n){"use strict";t.__esModule=!0,t.checkboxRenderer=t.RENDERER_TYPE=void 0;var r=n(600);t.RENDERER_TYPE=r.RENDERER_TYPE,t.checkboxRenderer=r.checkboxRenderer},function(e,t,n){"use strict";t.__esModule=!0,t.numericRenderer=t.RENDERER_TYPE=void 0;var r=n(602);t.RENDERER_TYPE=r.RENDERER_TYPE,t.numericRenderer=r.numericRenderer},function(e,t,n){e.exports=function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){if(i)return i(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[a]={exports:{}};t[a][0].call(u.exports,(function(e){return o(t[a][1][e]||e)}),u,u.exports,e,t,n,r)}return n[a].exports}for(var i=!1,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){!function(e){"use strict";var n,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,o=Math.ceil,i=Math.floor,a="[BigNumber Error] ",s=a+"Number primitive has more than 15 significant digits: ",l=1e14,u=14,c=9007199254740991,d=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],h=1e7,f=1e9;function v(e){var t=0|e;return 0<e||e===t?t:t-1}function p(e){for(var t,n,r=1,o=e.length,i=e[0]+"";r<o;){for(t=e[r++]+"",n=u-t.length;n--;t="0"+t);i+=t}for(o=i.length;48===i.charCodeAt(--o););return i.slice(0,o+1||1)}function g(e,t){var n,r,o=e.c,i=t.c,a=e.s,s=t.s,l=e.e,u=t.e;if(!a||!s)return null;if(n=o&&!o[0],r=i&&!i[0],n||r)return n?r?0:-s:a;if(a!=s)return a;if(n=a<0,r=l==u,!o||!i)return r?0:!o^n?1:-1;if(!r)return u<l^n?1:-1;for(s=(l=o.length)<(u=i.length)?l:u,a=0;a<s;a++)if(o[a]!=i[a])return o[a]>i[a]^n?1:-1;return l==u?0:u<l^n?1:-1}function m(e,t,n,r){if(e<t||n<e||e!==(e<0?o(e):i(e)))throw Error(a+(r||"Argument")+("number"==typeof e?e<t||n<e?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function y(e){var t=e.c.length-1;return v(e.e/u)==t&&e.c[t]%2!=0}function E(e,t){return(1<e.length?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function w(e,t,n){var r,o;if(t<0){for(o=n+".";++t;o+=n);e=o+e}else if(++t>(r=e.length)){for(o=n,t-=r;--t;o+=n);e+=o}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}(n=function e(t){var n,C,R,T,b,S,O,_,I,M,N=W.prototype={constructor:W,toString:null,valueOf:null},k=new W(1),A=20,P=4,x=-7,D=21,L=-1e7,H=1e7,F=!1,U=1,B=0,V={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},Y="0123456789abcdefghijklmnopqrstuvwxyz";function W(e,t){var n,o,a,l,d,h,f,v,p=this;if(!(p instanceof W))return new W(e,t);if(null==t){if(e instanceof W)return p.s=e.s,p.e=e.e,void(p.c=(e=e.c)?e.slice():e);if((h="number"==typeof e)&&0*e==0){if(p.s=1/e<0?(e=-e,-1):1,e===~~e){for(l=0,d=e;10<=d;d/=10,l++);return p.e=l,void(p.c=[e])}v=String(e)}else{if(v=String(e),!r.test(v))return R(p,v,h);p.s=45==v.charCodeAt(0)?(v=v.slice(1),-1):1}-1<(l=v.indexOf("."))&&(v=v.replace(".","")),0<(d=v.search(/e/i))?(l<0&&(l=d),l+=+v.slice(d+1),v=v.substring(0,d)):l<0&&(l=v.length)}else{if(m(t,2,Y.length,"Base"),v=String(e),10==t)return K(p=new W(e instanceof W?e:v),A+p.e+1,P);if(h="number"==typeof e){if(0*e!=0)return R(p,v,h,t);if(p.s=1/e<0?(v=v.slice(1),-1):1,W.DEBUG&&15<v.replace(/^0\.0*|\./,"").length)throw Error(s+e);h=!1}else p.s=45===v.charCodeAt(0)?(v=v.slice(1),-1):1;for(n=Y.slice(0,t),l=d=0,f=v.length;d<f;d++)if(n.indexOf(o=v.charAt(d))<0){if("."==o){if(l<d){l=f;continue}}else if(!a&&(v==v.toUpperCase()&&(v=v.toLowerCase())||v==v.toLowerCase()&&(v=v.toUpperCase()))){a=!0,d=-1,l=0;continue}return R(p,String(e),h,t)}-1<(l=(v=C(v,t,10,p.s)).indexOf("."))?v=v.replace(".",""):l=v.length}for(d=0;48===v.charCodeAt(d);d++);for(f=v.length;48===v.charCodeAt(--f););if(v=v.slice(d,++f)){if(f-=d,h&&W.DEBUG&&15<f&&(c<e||e!==i(e)))throw Error(s+p.s*e);if(H<(l=l-d-1))p.c=p.e=null;else if(l<L)p.c=[p.e=0];else{if(p.e=l,p.c=[],d=(l+1)%u,l<0&&(d+=u),d<f){for(d&&p.c.push(+v.slice(0,d)),f-=u;d<f;)p.c.push(+v.slice(d,d+=u));v=v.slice(d),d=u-v.length}else d-=f;for(;d--;v+="0");p.c.push(+v)}}else p.c=[p.e=0]}function G(e,t,n,r){var o,i,a,s,l;if(null==n?n=P:m(n,0,8),!e.c)return e.toString();if(o=e.c[0],a=e.e,null==t)l=p(e.c),l=1==r||2==r&&(a<=x||D<=a)?E(l,a):w(l,a,"0");else if(i=(e=K(new W(e),t,n)).e,s=(l=p(e.c)).length,1==r||2==r&&(t<=i||i<=x)){for(;s<t;l+="0",s++);l=E(l,i)}else if(t-=a,l=w(l,i,"0"),s<i+1){if(0<--t)for(l+=".";t--;l+="0");}else if(0<(t+=i-s))for(i+1==s&&(l+=".");t--;l+="0");return e.s<0&&o?"-"+l:l}function j(e,t){for(var n,r=1,o=new W(e[0]);r<e.length;r++){if(!(n=new W(e[r])).s){o=n;break}t.call(o,n)&&(o=n)}return o}function z(e,t,n){for(var r=1,o=t.length;!t[--o];t.pop());for(o=t[0];10<=o;o/=10,r++);return(n=r+n*u-1)>H?e.c=e.e=null:e.c=n<L?[e.e=0]:(e.e=n,t),e}function K(e,t,n,r){var a,s,c,h,f,v,p,g=e.c,m=d;if(g){e:{for(a=1,h=g[0];10<=h;h/=10,a++);if((s=t-a)<0)s+=u,c=t,p=(f=g[v=0])/m[a-c-1]%10|0;else if((v=o((s+1)/u))>=g.length){if(!r)break e;for(;g.length<=v;g.push(0));f=p=0,c=(s%=u)-u+(a=1)}else{for(f=h=g[v],a=1;10<=h;h/=10,a++);p=(c=(s%=u)-u+a)<0?0:f/m[a-c-1]%10|0}if(r=r||t<0||null!=g[v+1]||(c<0?f:f%m[a-c-1]),r=n<4?(p||r)&&(0==n||n==(e.s<0?3:2)):5<p||5==p&&(4==n||r||6==n&&(0<s?0<c?f/m[a-c]:0:g[v-1])%10&1||n==(e.s<0?8:7)),t<1||!g[0])return g.length=0,r?(t-=e.e+1,g[0]=m[(u-t%u)%u],e.e=-t||0):g[0]=e.e=0,e;if(0==s?(g.length=v,h=1,v--):(g.length=v+1,h=m[u-s],g[v]=0<c?i(f/m[a-c]%m[c])*h:0),r)for(;;){if(0==v){for(s=1,c=g[0];10<=c;c/=10,s++);for(c=g[0]+=h,h=1;10<=c;c/=10,h++);s!=h&&(e.e++,g[0]==l&&(g[0]=1));break}if(g[v]+=h,g[v]!=l)break;g[v--]=0,h=1}for(s=g.length;0===g[--s];g.pop());}e.e>H?e.c=e.e=null:e.e<L&&(e.c=[e.e=0])}return e}function X(e){var t,n=e.e;return null===n?e.toString():(t=p(e.c),t=n<=x||D<=n?E(t,n):w(t,n,"0"),e.s<0?"-"+t:t)}return W.clone=e,W.ROUND_UP=0,W.ROUND_DOWN=1,W.ROUND_CEIL=2,W.ROUND_FLOOR=3,W.ROUND_HALF_UP=4,W.ROUND_HALF_DOWN=5,W.ROUND_HALF_EVEN=6,W.ROUND_HALF_CEIL=7,W.ROUND_HALF_FLOOR=8,W.EUCLID=9,W.config=W.set=function(e){var t,n;if(null!=e){if("object"!=typeof e)throw Error(a+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(m(n=e[t],0,f,t),A=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(m(n=e[t],0,8,t),P=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(m(n[0],-f,0,t),m(n[1],0,f,t),x=n[0],D=n[1]):(m(n,-f,f,t),x=-(D=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)m(n[0],-f,-1,t),m(n[1],1,f,t),L=n[0],H=n[1];else{if(m(n,-f,f,t),!n)throw Error(a+t+" cannot be zero: "+n);L=-(H=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if((n=e[t])!==!!n)throw Error(a+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw F=!n,Error(a+"crypto unavailable");F=n}else F=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(m(n=e[t],0,9,t),U=n),e.hasOwnProperty(t="POW_PRECISION")&&(m(n=e[t],0,f,t),B=n),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(n=e[t]))throw Error(a+t+" not an object: "+n);V=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.$|[+-.\s]|(.).*\1/.test(n))throw Error(a+t+" invalid: "+n);Y=n}}return{DECIMAL_PLACES:A,ROUNDING_MODE:P,EXPONENTIAL_AT:[x,D],RANGE:[L,H],CRYPTO:F,MODULO_MODE:U,POW_PRECISION:B,FORMAT:V,ALPHABET:Y}},W.isBigNumber=function(e){return e instanceof W||e&&!0===e._isBigNumber||!1},W.maximum=W.max=function(){return j(arguments,N.lt)},W.minimum=W.min=function(){return j(arguments,N.gt)},W.random=(T=9007199254740992,b=Math.random()*T&2097151?function(){return i(Math.random()*T)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,n,r,s,l,c=0,h=[],v=new W(k);if(null==e?e=A:m(e,0,f),s=o(e/u),F)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(s*=2));c<s;)9e15<=(l=131072*t[c]+(t[c+1]>>>11))?(n=crypto.getRandomValues(new Uint32Array(2)),t[c]=n[0],t[c+1]=n[1]):(h.push(l%1e14),c+=2);c=s/2}else{if(!crypto.randomBytes)throw F=!1,Error(a+"crypto unavailable");for(t=crypto.randomBytes(s*=7);c<s;)9e15<=(l=281474976710656*(31&t[c])+1099511627776*t[c+1]+4294967296*t[c+2]+16777216*t[c+3]+(t[c+4]<<16)+(t[c+5]<<8)+t[c+6])?crypto.randomBytes(7).copy(t,c):(h.push(l%1e14),c+=7);c=s/7}if(!F)for(;c<s;)(l=b())<9e15&&(h[c++]=l%1e14);for(s=h[--c],e%=u,s&&e&&(l=d[u-e],h[c]=i(s/l)*l);0===h[c];h.pop(),c--);if(c<0)h=[r=0];else{for(r=-1;0===h[0];h.splice(0,1),r-=u);for(c=1,l=h[0];10<=l;l/=10,c++);c<u&&(r-=u-c)}return v.e=r,v.c=h,v}),W.sum=function(){for(var e=1,t=arguments,n=new W(t[0]);e<t.length;)n=n.plus(t[e++]);return n},C=function(){var e="0123456789";function t(e,t,n,r){for(var o,i,a=[0],s=0,l=e.length;s<l;){for(i=a.length;i--;a[i]*=t);for(a[0]+=r.indexOf(e.charAt(s++)),o=0;o<a.length;o++)a[o]>n-1&&(null==a[o+1]&&(a[o+1]=0),a[o+1]+=a[o]/n|0,a[o]%=n)}return a.reverse()}return function(r,o,i,a,s){var l,u,c,d,h,f,v,g,m=r.indexOf("."),y=A,E=P;for(0<=m&&(d=B,B=0,r=r.replace(".",""),f=(g=new W(o)).pow(r.length-m),B=d,g.c=t(w(p(f.c),f.e,"0"),10,i,e),g.e=g.c.length),c=d=(v=t(r,o,i,s?(l=Y,e):(l=e,Y))).length;0==v[--d];v.pop());if(!v[0])return l.charAt(0);if(m<0?--c:(f.c=v,f.e=c,f.s=a,v=(f=n(f,g,y,E,i)).c,h=f.r,c=f.e),m=v[u=c+y+1],d=i/2,h=h||u<0||null!=v[u+1],h=E<4?(null!=m||h)&&(0==E||E==(f.s<0?3:2)):d<m||m==d&&(4==E||h||6==E&&1&v[u-1]||E==(f.s<0?8:7)),u<1||!v[0])r=h?w(l.charAt(1),-y,l.charAt(0)):l.charAt(0);else{if(v.length=u,h)for(--i;++v[--u]>i;)v[u]=0,u||(++c,v=[1].concat(v));for(d=v.length;!v[--d];);for(m=0,r="";m<=d;r+=l.charAt(v[m++]));r=w(r,c,l.charAt(0))}return r}}(),n=function(){function e(e,t,n){var r,o,i,a,s=0,l=e.length,u=t%h,c=t/h|0;for(e=e.slice();l--;)s=((o=u*(i=e[l]%h)+(r=c*i+(a=e[l]/h|0)*u)%h*h+s)/n|0)+(r/h|0)+c*a,e[l]=o%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var o,i;if(n!=r)i=r<n?1:-1;else for(o=i=0;o<n;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function n(e,t,n,r){for(var o=0;n--;)e[n]-=o,o=e[n]<t[n]?1:0,e[n]=o*r+e[n]-t[n];for(;!e[0]&&1<e.length;e.splice(0,1));}return function(r,o,a,s,c){var d,h,f,p,g,m,y,E,w,C,R,T,b,S,O,_,I,M=r.s==o.s?1:-1,N=r.c,k=o.c;if(!(N&&N[0]&&k&&k[0]))return new W(r.s&&o.s&&(N?!k||N[0]!=k[0]:k)?N&&0==N[0]||!k?0*M:M/0:NaN);for(w=(E=new W(M)).c=[],M=a+(h=r.e-o.e)+1,c||(c=l,h=v(r.e/u)-v(o.e/u),M=M/u|0),f=0;k[f]==(N[f]||0);f++);if(k[f]>(N[f]||0)&&h--,M<0)w.push(1),p=!0;else{for(S=N.length,_=k.length,M+=2,1<(g=i(c/(k[f=0]+1)))&&(k=e(k,g,c),N=e(N,g,c),_=k.length,S=N.length),b=_,R=(C=N.slice(0,_)).length;R<_;C[R++]=0);I=k.slice(),I=[0].concat(I),O=k[0],k[1]>=c/2&&O++;do{if(g=0,(d=t(k,C,_,R))<0){if(T=C[0],_!=R&&(T=T*c+(C[1]||0)),1<(g=i(T/O)))for(c<=g&&(g=c-1),y=(m=e(k,g,c)).length,R=C.length;1==t(m,C,y,R);)g--,n(m,_<y?I:k,y,c),y=m.length,d=1;else 0==g&&(d=g=1),y=(m=k.slice()).length;if(y<R&&(m=[0].concat(m)),n(C,m,R,c),R=C.length,-1==d)for(;t(k,C,_,R)<1;)g++,n(C,_<R?I:k,R,c),R=C.length}else 0===d&&(g++,C=[0]);w[f++]=g,C[0]?C[R++]=N[b]||0:(C=[N[b]],R=1)}while((b++<S||null!=C[0])&&M--);p=null!=C[0],w[0]||w.splice(0,1)}if(c==l){for(f=1,M=w[0];10<=M;M/=10,f++);K(E,a+(E.e=f+h*u-1)+1,s,p)}else E.e=h,E.r=+p;return E}}(),S=/^(-?)0([xbo])(?=\w[\w.]*$)/i,O=/^([^.]+)\.$/,_=/^\.([^.]+)$/,I=/^-?(Infinity|NaN)$/,M=/^\s*\+(?=[\w.])|^\s+|\s+$/g,R=function(e,t,n,r){var o,i=n?t:t.replace(M,"");if(I.test(i))e.s=isNaN(i)?null:i<0?-1:1,e.c=e.e=null;else{if(!n&&(i=i.replace(S,(function(e,t,n){return o="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r&&r!=o?e:t})),r&&(o=r,i=i.replace(O,"$1").replace(_,"0.$1")),t!=i))return new W(i,o);if(W.DEBUG)throw Error(a+"Not a"+(r?" base "+r:"")+" number: "+t);e.c=e.e=e.s=null}},N.absoluteValue=N.abs=function(){var e=new W(this);return e.s<0&&(e.s=1),e},N.comparedTo=function(e,t){return g(this,new W(e,t))},N.decimalPlaces=N.dp=function(e,t){var n,r,o;if(null!=e)return m(e,0,f),null==t?t=P:m(t,0,8),K(new W(this),e+this.e+1,t);if(!(n=this.c))return null;if(r=((o=n.length-1)-v(this.e/u))*u,o=n[o])for(;o%10==0;o/=10,r--);return r<0&&(r=0),r},N.dividedBy=N.div=function(e,t){return n(this,new W(e,t),A,P)},N.dividedToIntegerBy=N.idiv=function(e,t){return n(this,new W(e,t),0,1)},N.exponentiatedBy=N.pow=function(e,t){var n,r,s,l,c,d,h,f,v=this;if((e=new W(e)).c&&!e.isInteger())throw Error(a+"Exponent not an integer: "+X(e));if(null!=t&&(t=new W(t)),c=14<e.e,!v.c||!v.c[0]||1==v.c[0]&&!v.e&&1==v.c.length||!e.c||!e.c[0])return f=new W(Math.pow(+X(v),c?2-y(e):+X(e))),t?f.mod(t):f;if(d=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new W(NaN);(r=!d&&v.isInteger()&&t.isInteger())&&(v=v.mod(t))}else{if(9<e.e&&(0<v.e||v.e<-1||(0==v.e?1<v.c[0]||c&&24e7<=v.c[1]:v.c[0]<8e13||c&&v.c[0]<=9999975e7)))return l=v.s<0&&y(e)?-0:0,-1<v.e&&(l=1/l),new W(d?1/l:l);B&&(l=o(B/u+2))}for(h=c?(n=new W(.5),d&&(e.s=1),y(e)):(s=Math.abs(+X(e)))%2,f=new W(k);;){if(h){if(!(f=f.times(v)).c)break;l?f.c.length>l&&(f.c.length=l):r&&(f=f.mod(t))}if(s){if(0===(s=i(s/2)))break;h=s%2}else if(K(e=e.times(n),e.e+1,1),14<e.e)h=y(e);else{if(0==(s=+X(e)))break;h=s%2}v=v.times(v),l?v.c&&v.c.length>l&&(v.c.length=l):r&&(v=v.mod(t))}return r?f:(d&&(f=k.div(f)),t?f.mod(t):l?K(f,B,P,void 0):f)},N.integerValue=function(e){var t=new W(this);return null==e?e=P:m(e,0,8),K(t,t.e+1,e)},N.isEqualTo=N.eq=function(e,t){return 0===g(this,new W(e,t))},N.isFinite=function(){return!!this.c},N.isGreaterThan=N.gt=function(e,t){return 0<g(this,new W(e,t))},N.isGreaterThanOrEqualTo=N.gte=function(e,t){return 1===(t=g(this,new W(e,t)))||0===t},N.isInteger=function(){return!!this.c&&v(this.e/u)>this.c.length-2},N.isLessThan=N.lt=function(e,t){return g(this,new W(e,t))<0},N.isLessThanOrEqualTo=N.lte=function(e,t){return-1===(t=g(this,new W(e,t)))||0===t},N.isNaN=function(){return!this.s},N.isNegative=function(){return this.s<0},N.isPositive=function(){return 0<this.s},N.isZero=function(){return!!this.c&&0==this.c[0]},N.minus=function(e,t){var n,r,o,i,a=this,s=a.s;if(t=(e=new W(e,t)).s,!s||!t)return new W(NaN);if(s!=t)return e.s=-t,a.plus(e);var c=a.e/u,d=e.e/u,h=a.c,f=e.c;if(!c||!d){if(!h||!f)return h?(e.s=-t,e):new W(f?a:NaN);if(!h[0]||!f[0])return f[0]?(e.s=-t,e):new W(h[0]?a:3==P?-0:0)}if(c=v(c),d=v(d),h=h.slice(),s=c-d){for((o=(i=s<0)?(s=-s,h):(d=c,f)).reverse(),t=s;t--;o.push(0));o.reverse()}else for(r=(i=(s=h.length)<(t=f.length))?s:t,s=t=0;t<r;t++)if(h[t]!=f[t]){i=h[t]<f[t];break}if(i&&(o=h,h=f,f=o,e.s=-e.s),0<(t=(r=f.length)-(n=h.length)))for(;t--;h[n++]=0);for(t=l-1;s<r;){if(h[--r]<f[r]){for(n=r;n&&!h[--n];h[n]=t);--h[n],h[r]+=l}h[r]-=f[r]}for(;0==h[0];h.splice(0,1),--d);return h[0]?z(e,h,d):(e.s=3==P?-1:1,e.c=[e.e=0],e)},N.modulo=N.mod=function(e,t){var r,o,i=this;return e=new W(e,t),!i.c||!e.s||e.c&&!e.c[0]?new W(NaN):!e.c||i.c&&!i.c[0]?new W(i):(9==U?(o=e.s,e.s=1,r=n(i,e,0,3),e.s=o,r.s*=o):r=n(i,e,0,U),(e=i.minus(r.times(e))).c[0]||1!=U||(e.s=i.s),e)},N.multipliedBy=N.times=function(e,t){var n,r,o,i,a,s,c,d,f,p,g,m,y,E,w,C=this,R=C.c,T=(e=new W(e,t)).c;if(!(R&&T&&R[0]&&T[0]))return!C.s||!e.s||R&&!R[0]&&!T||T&&!T[0]&&!R?e.c=e.e=e.s=null:(e.s*=C.s,R&&T?(e.c=[0],e.e=0):e.c=e.e=null),e;for(r=v(C.e/u)+v(e.e/u),e.s*=C.s,(c=R.length)<(p=T.length)&&(y=R,R=T,T=y,o=c,c=p,p=o),o=c+p,y=[];o--;y.push(0));for(E=l,w=h,o=p;0<=--o;){for(n=0,g=T[o]%w,m=T[o]/w|0,i=o+(a=c);o<i;)n=((d=g*(d=R[--a]%w)+(s=m*d+(f=R[a]/w|0)*g)%w*w+y[i]+n)/E|0)+(s/w|0)+m*f,y[i--]=d%E;y[i]=n}return n?++r:y.splice(0,1),z(e,y,r)},N.negated=function(){var e=new W(this);return e.s=-e.s||null,e},N.plus=function(e,t){var n,r=this,o=r.s;if(t=(e=new W(e,t)).s,!o||!t)return new W(NaN);if(o!=t)return e.s=-t,r.minus(e);var i=r.e/u,a=e.e/u,s=r.c,c=e.c;if(!i||!a){if(!s||!c)return new W(o/0);if(!s[0]||!c[0])return c[0]?e:new W(s[0]?r:0*o)}if(i=v(i),a=v(a),s=s.slice(),o=i-a){for((n=0<o?(a=i,c):(o=-o,s)).reverse();o--;n.push(0));n.reverse()}for((o=s.length)-(t=c.length)<0&&(n=c,c=s,s=n,t=o),o=0;t;)o=(s[--t]=s[t]+c[t]+o)/l|0,s[t]=l===s[t]?0:s[t]%l;return o&&(s=[o].concat(s),++a),z(e,s,a)},N.precision=N.sd=function(e,t){var n,r,o;if(null!=e&&e!==!!e)return m(e,1,f),null==t?t=P:m(t,0,8),K(new W(this),e,t);if(!(n=this.c))return null;if(r=(o=n.length-1)*u+1,o=n[o]){for(;o%10==0;o/=10,r--);for(o=n[0];10<=o;o/=10,r++);}return e&&this.e+1>r&&(r=this.e+1),r},N.shiftedBy=function(e){return m(e,-c,c),this.times("1e"+e)},N.squareRoot=N.sqrt=function(){var e,t,r,o,i,a=this,s=a.c,l=a.s,u=a.e,c=A+4,d=new W("0.5");if(1!==l||!s||!s[0])return new W(!l||l<0&&(!s||s[0])?NaN:s?a:1/0);if((r=0==(l=Math.sqrt(+X(a)))||l==1/0?(((t=p(s)).length+u)%2==0&&(t+="0"),l=Math.sqrt(+t),u=v((u+1)/2)-(u<0||u%2),new W(t=l==1/0?"1e"+u:(t=l.toExponential()).slice(0,t.indexOf("e")+1)+u)):new W(l+"")).c[0])for((l=(u=r.e)+c)<3&&(l=0);;)if(i=r,r=d.times(i.plus(n(a,i,c,1))),p(i.c).slice(0,l)===(t=p(r.c)).slice(0,l)){if(r.e<u&&--l,"9999"!=(t=t.slice(l-3,l+1))&&(o||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(K(r,r.e+A+2,1),e=!r.times(r).eq(a));break}if(!o&&(K(i,i.e+A+2,0),i.times(i).eq(a))){r=i;break}c+=4,l+=4,o=1}return K(r,r.e+A+1,P,e)},N.toExponential=function(e,t){return null!=e&&(m(e,0,f),e++),G(this,e,t,1)},N.toFixed=function(e,t){return null!=e&&(m(e,0,f),e=e+this.e+1),G(this,e,t)},N.toFormat=function(e,t,n){var r;if(null==n)null!=e&&t&&"object"==typeof t?(n=t,t=null):e&&"object"==typeof e?(n=e,e=t=null):n=V;else if("object"!=typeof n)throw Error(a+"Argument not an object: "+n);if(r=this.toFixed(e,t),this.c){var o,i=r.split("."),s=+n.groupSize,l=+n.secondaryGroupSize,u=n.groupSeparator||"",c=i[0],d=i[1],h=this.s<0,f=h?c.slice(1):c,v=f.length;if(l&&(o=s,s=l,v-=l=o),0<s&&0<v){for(o=v%s||s,c=f.substr(0,o);o<v;o+=s)c+=u+f.substr(o,s);0<l&&(c+=u+f.slice(o)),h&&(c="-"+c)}r=d?c+(n.decimalSeparator||"")+((l=+n.fractionGroupSize)?d.replace(new RegExp("\\d{"+l+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):d):c}return(n.prefix||"")+r+(n.suffix||"")},N.toFraction=function(e){var t,r,o,i,s,l,c,h,f,v,g,m,y=this,E=y.c;if(null!=e&&(!(c=new W(e)).isInteger()&&(c.c||1!==c.s)||c.lt(k)))throw Error(a+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+X(c));if(!E)return new W(y);for(t=new W(k),f=r=new W(k),o=h=new W(k),m=p(E),s=t.e=m.length-y.e-1,t.c[0]=d[(l=s%u)<0?u+l:l],e=!e||0<c.comparedTo(t)?0<s?t:f:c,l=H,H=1/0,c=new W(m),h.c[0]=0;v=n(c,t,0,1),1!=(i=r.plus(v.times(o))).comparedTo(e);)r=o,o=i,f=h.plus(v.times(i=f)),h=i,t=c.minus(v.times(i=t)),c=i;return i=n(e.minus(r),o,0,1),h=h.plus(i.times(f)),r=r.plus(i.times(o)),h.s=f.s=y.s,g=n(f,o,s*=2,P).minus(y).abs().comparedTo(n(h,r,s,P).minus(y).abs())<1?[f,o]:[h,r],H=l,g},N.toNumber=function(){return+X(this)},N.toPrecision=function(e,t){return null!=e&&m(e,1,f),G(this,e,t,2)},N.toString=function(e){var t,n=this,r=n.s,o=n.e;return null===o?r?(t="Infinity",r<0&&(t="-"+t)):t="NaN":(t=null==e?o<=x||D<=o?E(p(n.c),o):w(p(n.c),o,"0"):10===e?w(p((n=K(new W(n),A+o+1,P)).c),n.e,"0"):(m(e,2,Y.length,"Base"),C(w(p(n.c),o,"0"),10,e,r,!0)),r<0&&n.c[0]&&(t="-"+t)),t},N.valueOf=N.toJSON=function(){return X(this)},N._isBigNumber=!0,"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator&&(N[Symbol.toStringTag]="BigNumber",N[Symbol.for("nodejs.util.inspect.custom")]=N.valueOf),null!=t&&W.set(t),W}()).default=n.BigNumber=n,void 0!==t&&t.exports?t.exports=n:(e||(e="undefined"!=typeof self&&self?self:window),e.BigNumber=n)}(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 r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var o=e("./globalState"),i=e("./validating"),a=e("./parsing"),s=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],l={general:{scale:1024,suffixes:s,marker:"bd"},binary:{scale:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],marker:"b"},decimal:{scale:1e3,suffixes:s,marker:"d"}},u={totalLength:0,characteristic:0,forceAverage:!1,average:!1,mantissa:-1,optionalMantissa:!0,thousandSeparated:!1,spaceSeparated:!1,negative:"sign",forceSign:!1};function c(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=2<arguments.length?arguments[2]:void 0;if("string"==typeof t&&(t=a.parseFormat(t)),!i.validateFormat(t))return"ERROR: invalid format";var r=t.prefix||"",s=t.postfix||"",c=function(e,t,n){switch(t.output){case"currency":return function(e,t,n){var r=n.currentCurrency(),o=Object.assign({},u,t),i=void 0,a="",s=!!o.totalLength||!!o.forceAverage||o.average,l=t.currencyPosition||r.position,c=t.currencySymbol||r.symbol;o.spaceSeparated&&(a=" "),"infix"===l&&(i=a+c+a);var d=v({instance:e,providedFormat:t,state:n,decimalSeparator:i});return"prefix"===l&&(d=e._value<0&&"sign"===o.negative?"-".concat(a).concat(c).concat(d.slice(1)):c+a+d),l&&"postfix"!==l||(d=d+(a=s?"":a)+c),d}(e,t=p(t,o.currentCurrencyDefaultFormat()),o);case"percent":return function(e,t,n,r){var o=t.prefixSymbol,i=v({instance:r(100*e._value),providedFormat:t,state:n}),a=Object.assign({},u,t);return o?"%".concat(a.spaceSeparated?" ":"").concat(i):"".concat(i).concat(a.spaceSeparated?" ":"","%")}(e,t=p(t,o.currentPercentageDefaultFormat()),o,n);case"byte":return t=p(t,o.currentByteDefaultFormat()),w=e,R=o,T=n,b=(C=t).base||"binary",S=l[b],_=(O=d(w._value,S.suffixes,S.scale)).value,I=O.suffix,M=v({instance:T(_),providedFormat:C,state:R,defaults:R.currentByteDefaultFormat()}),N=R.currentAbbreviations(),"".concat(M).concat(N.spaced?" ":"").concat(I);case"time":return t=p(t,o.currentTimeDefaultFormat()),g=e,m=Math.floor(g._value/60/60),y=Math.floor((g._value-60*m*60)/60),E=Math.round(g._value-60*m*60-60*y),"".concat(m,":").concat(y<10?"0":"").concat(y,":").concat(E<10?"0":"").concat(E);case"ordinal":return r=e,i=t=p(t,o.currentOrdinalDefaultFormat()),s=(a=o).currentOrdinal(),c=Object.assign({},u,i),h=v({instance:r,providedFormat:i,state:a}),f=s(r._value),"".concat(h).concat(c.spaceSeparated?" ":"").concat(f);case"number":default:return v({instance:e,providedFormat:t,numbro:n})}var r,i,a,s,c,h,f,g,m,y,E,w,C,R,T,b,S,O,_,I,M,N}(e,t,n);return(c=r+c)+s}function d(e,t,n){var r=t[0],o=Math.abs(e);if(n<=o){for(var i=1;i<t.length;++i){var a=Math.pow(n,i),s=Math.pow(n,i+1);if(a<=o&&o<s){r=t[i],e/=a;break}}r===t[0]&&(e/=Math.pow(n,t.length-1),r=t[t.length-1])}return{value:e,suffix:r}}function h(e){for(var t="",n=0;n<e;n++)t+="0";return t}function f(e,t){return-1!==e.toString().indexOf("e")?function(e,t){var n=e.toString(),o=r(n.split("e"),2),i=o[0],a=o[1],s=r(i.split("."),2),l=s[0],u=s[1],c=void 0===u?"":u;if(0<+a)n=l+c+h(a-c.length);else{var d=".";d=+l<0?"-0".concat(d):"0".concat(d);var f=(h(-a-1)+Math.abs(l)+c).substr(0,t);f.length<t&&(f+=h(t-f.length)),n=d+f}return 0<+a&&0<t&&(n+=".".concat(h(t))),n}(e,t):(Math.round(+"".concat(e,"e+").concat(t))/Math.pow(10,t)).toFixed(t)}function v(e){var t=e.instance,n=e.providedFormat,i=e.state,a=void 0===i?o:i,s=e.decimalSeparator,l=e.defaults,c=void 0===l?a.currentDefaults():l,d=t._value;if(0===d&&a.hasZeroFormat())return a.getZeroFormat();if(!isFinite(d))return d.toString();var h,v,p,g,m,y,E,w,C=Object.assign({},u,c,n),R=C.totalLength,T=R?0:C.characteristic,b=C.optionalCharacteristic,S=C.forceAverage,O=!!R||!!S||C.average,_=R?-1:O&&void 0===n.mantissa?0:C.mantissa,I=!R&&(void 0===n.optionalMantissa?-1===_:C.optionalMantissa),M=C.trimMantissa,N=C.thousandSeparated,k=C.spaceSeparated,A=C.negative,P=C.forceSign,x=C.exponential,D="";if(O){var L=function(e){var t=e.value,n=e.forceAverage,r=e.abbreviations,o=e.spaceSeparated,i=void 0!==o&&o,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=r.trillion,t/=Math.pow(10,12)):u<Math.pow(10,12)&&u>=Math.pow(10,9)&&!n||"billion"===n?(l=r.billion,t/=Math.pow(10,9)):u<Math.pow(10,9)&&u>=Math.pow(10,6)&&!n||"million"===n?(l=r.million,t/=Math.pow(10,6)):(u<Math.pow(10,6)&&u>=Math.pow(10,3)&&!n||"thousand"===n)&&(l=r.thousand,t/=Math.pow(10,3)),l&&(l=(i?" ":"")+l),s){var d=t.toString().split(".")[0];c=Math.max(s-d.length,0)}return{value:t,abbreviation:l,mantissaPrecision:c}}({value:d,forceAverage:S,abbreviations:a.currentAbbreviations(),spaceSeparated:k,totalLength:R});d=L.value,D+=L.abbreviation,R&&(_=L.mantissaPrecision)}if(x){var H=(v=(h={value:d,characteristicPrecision:T}).value,g=void 0===(p=h.characteristicPrecision)?0:p,y=(m=r(v.toExponential().split("e"),2))[0],E=m[1],w=+y,g&&1<g&&(w*=Math.pow(10,g-1),E=0<=(E=+E-(g-1))?"+".concat(E):E),{value:w,abbreviation:"e".concat(E)});d=H.value,D=H.abbreviation+D}var F,U,B,V=function(e,t,n,o,i){if(-1===o)return e;var a=f(t,o),s=r(a.toString().split("."),2),l=s[0],u=s[1],c=void 0===u?"":u;if(c.match(/^0+$/)&&(n||i))return l;var d=c.match(/0+$/);return i&&d?"".concat(l,".").concat(c.toString().slice(0,d.index)):a.toString()}(d.toString(),d,I,_,M);return V=function(e,t,n,r,o){var i=r.currentDelimiters(),a=i.thousands;o=o||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=[],r=0,o=e;0<o;o--)r===t&&(n.unshift(o),r=0),r++;return n}(u.length,s).forEach((function(e,t){u=u.slice(0,e+t)+a+u.slice(e+t)})),t<0&&(u="-".concat(u))),c?u+o+c:u}(V=function(e,t,n,o){var i=e,a=r(i.toString().split("."),2),s=a[0],l=a[1];if(s.match(/^-?0$/)&&n)return l?"".concat(s.replace("0",""),".").concat(l):s.replace("0","");if(s.length<o)for(var u=o-s.length,c=0;c<u;c++)i="0".concat(i);return i.toString()}(V,0,b,T),d,N,a,s),(O||x)&&(V+=D),(P||d<0)&&(F=V,B=A,V=0===(U=d)?F:0==+F?F.replace("-",""):0<U?"+".concat(F):"sign"===B?F:"(".concat(F.replace("-",""),")")),V}function p(e,t){if(!e)return t;var n=Object.keys(e);return 1===n.length&&"output"===n[0]?t:e}t.exports=function(e){return{format:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c.apply(void 0,n.concat([e]))},getByteUnit:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e){var t=l.general;return d(e._value,t.suffixes,t.scale).suffix}.apply(void 0,n.concat([e]))},getBinaryByteUnit:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e){var t=l.binary;return d(e._value,t.suffixes,t.scale).suffix}.apply(void 0,n.concat([e]))},getDecimalByteUnit:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e){var t=l.decimal;return d(e._value,t.suffixes,t.scale).suffix}.apply(void 0,n.concat([e]))},formatOrDefault:p}}},{"./globalState":4,"./parsing":8,"./validating":10}],4:[function(e,t,n){"use strict";var r=e("./en-US"),o=e("./validating"),i=e("./parsing"),a={},s=void 0,l={},u=null,c={};function d(e){s=e}function h(){return l[s]}a.languages=function(){return Object.assign({},l)},a.currentLanguage=function(){return s},a.currentCurrency=function(){return h().currency},a.currentAbbreviations=function(){return h().abbreviations},a.currentDelimiters=function(){return h().delimiters},a.currentOrdinal=function(){return h().ordinal},a.currentDefaults=function(){return Object.assign({},h().defaults,c)},a.currentOrdinalDefaultFormat=function(){return Object.assign({},a.currentDefaults(),h().ordinalFormat)},a.currentByteDefaultFormat=function(){return Object.assign({},a.currentDefaults(),h().byteFormat)},a.currentPercentageDefaultFormat=function(){return Object.assign({},a.currentDefaults(),h().percentageFormat)},a.currentCurrencyDefaultFormat=function(){return Object.assign({},a.currentDefaults(),h().currencyFormat)},a.currentTimeDefaultFormat=function(){return Object.assign({},a.currentDefaults(),h().timeFormat)},a.setDefaults=function(e){e=i.parseFormat(e),o.validateFormat(e)&&(c=e)},a.getZeroFormat=function(){return u},a.setZeroFormat=function(e){return u="string"==typeof e?e:null},a.hasZeroFormat=function(){return null!==u},a.languageData=function(e){if(e){if(l[e])return l[e];throw new Error('Unknown tag "'.concat(e,'"'))}return h()},a.registerLanguage=function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];if(!o.validateLanguage(e))throw new Error("Invalid language data");l[e.languageTag]=e,t&&d(e.languageTag)},a.setLanguage=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:r.languageTag;if(!l[e]){var n=e.split("-")[0],o=Object.keys(l).find((function(e){return e.split("-")[0]===n}));return l[o]?void d(o):void d(t)}d(e)},a.registerLanguage(r),s=r.languageTag,t.exports=a},{"./en-US":2,"./parsing":8,"./validating":10}],5:[function(e,t,n){"use strict";t.exports=function(t){return{loadLanguagesInNode:function(n){return r=t,void n.forEach((function(t){var n=void 0;try{n=e("../languages/".concat(t))}catch(n){console.error('Unable to load "'.concat(t,'". No matching language file found.'))}n&&r.registerLanguage(n)}));var r}}}},{}],6:[function(e,t,n){"use strict";var r=e("bignumber.js");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}t.exports=function(e){return{add:function(t,n){return i=n,a=e,s=new r((o=t)._value),l=i,a.isNumbro(i)&&(l=i._value),l=new r(l),o._value=s.plus(l).toNumber(),o;var o,i,a,s,l},subtract:function(t,n){return o(t,n,e)},multiply:function(t,n){return i=n,a=e,s=new r((o=t)._value),l=i,a.isNumbro(i)&&(l=i._value),l=new r(l),o._value=s.times(l).toNumber(),o;var o,i,a,s,l},divide:function(t,n){return i=n,a=e,s=new r((o=t)._value),l=i,a.isNumbro(i)&&(l=i._value),l=new r(l),o._value=s.dividedBy(l).toNumber(),o;var o,i,a,s,l},set:function(t,n){return r=t,i=o=n,e.isNumbro(o)&&(i=o._value),r._value=i,r;var r,o,i},difference:function(t,n){return r=n,o(a=(i=e)(t._value),r,i),Math.abs(a._value);var r,i,a}}}},{"bignumber.js":1}],7:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=e("./globalState"),i=e("./validating"),a=e("./loading")(f),s=e("./unformatting"),l=e("./formatting")(f),u=e("./manipulating")(f),c=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}var t,n;return t=e,(n=[{key:"clone",value:function(){return f(this._value)}},{key:"format",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return l.format(this,e)}},{key:"formatCurrency",value:function(e){return"string"==typeof e&&(e=c.parseFormat(e)),(e=l.formatOrDefault(e,o.currentCurrencyDefaultFormat())).output="currency",l.format(this,e)}},{key:"formatTime",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return e.output="time",l.format(this,e)}},{key:"binaryByteUnits",value:function(){return l.getBinaryByteUnit(this)}},{key:"decimalByteUnits",value:function(){return l.getDecimalByteUnit(this)}},{key:"byteUnits",value:function(){return l.getByteUnit(this)}},{key:"difference",value:function(e){return u.difference(this,e)}},{key:"add",value:function(e){return u.add(this,e)}},{key:"subtract",value:function(e){return u.subtract(this,e)}},{key:"multiply",value:function(e){return u.multiply(this,e)}},{key:"divide",value:function(e){return u.divide(this,e)}},{key:"set",value:function(e){return u.set(this,h(e))}},{key:"value",value:function(){return this._value}},{key:"valueOf",value:function(){return this._value}}])&&r(t.prototype,n),e}();function h(e){var t=e;return f.isNumbro(e)?t=e._value:"string"==typeof e?t=f.unformat(e):isNaN(e)&&(t=NaN),t}function f(e){return new d(h(e))}f.version="2.1.2",f.isNumbro=function(e){return e instanceof d},f.language=o.currentLanguage,f.registerLanguage=o.registerLanguage,f.setLanguage=o.setLanguage,f.languages=o.languages,f.languageData=o.languageData,f.zeroFormat=o.setZeroFormat,f.defaultFormat=o.currentDefaults,f.setDefaults=o.setDefaults,f.defaultCurrencyFormat=o.currentCurrencyDefaultFormat,f.validate=i.validate,f.loadLanguagesInNode=a.loadLanguagesInNode,f.unformat=s.unformat,t.exports=f},{"./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,n,r,o,i,a,s,l,u,c,d,h,f,v,p,g,m,y,E,w,C=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return"string"!=typeof e?e:(n=C,i=C,function(e,t){if(-1===e.indexOf("$")){if(-1===e.indexOf("%"))return-1!==e.indexOf("bd")?(t.output="byte",t.base="general"):-1!==e.indexOf("b")?(t.output="byte",t.base="binary"):-1!==e.indexOf("d")?(t.output="byte",t.base="decimal"):-1===e.indexOf(":")?-1!==e.indexOf("o")&&(t.output="ordinal"):t.output="time";t.output="percent"}else t.output="currency"}(e=(a=(o=e=(r=(t=e).match(/^{([^}]*)}/))?(n.prefix=r[1],t.slice(r[0].length)):t).match(/{([^}]*)}$/))?(i.postfix=a[1],o.slice(0,-a[0].length)):o,C),s=C,(l=e.match(/[1-9]+[0-9]*/))&&(s.totalLength=+l[0]),u=C,(c=e.split(".")[0].match(/0+/))&&(u.characteristic=c[0].length),function(e,t){if(-1!==e.indexOf(".")){var n=e.split(".")[0];t.optionalCharacteristic=-1===n.indexOf("0")}}(e,C),d=C,-1!==e.indexOf("a")&&(d.average=!0),f=C,-1!==(h=e).indexOf("K")?f.forceAverage="thousand":-1!==h.indexOf("M")?f.forceAverage="million":-1!==h.indexOf("B")?f.forceAverage="billion":-1!==h.indexOf("T")&&(f.forceAverage="trillion"),function(e,t){var n=e.split(".")[1];if(n){var r=n.match(/0+/);r&&(t.mantissa=r[0].length)}}(e,C),p=C,(v=e).match(/\[\.]/)?p.optionalMantissa=!0:v.match(/\./)&&(p.optionalMantissa=!1),g=C,-1!==e.indexOf(",")&&(g.thousandSeparated=!0),m=C,-1!==e.indexOf(" ")&&(m.spaceSeparated=!0),E=C,(y=e).match(/^\+?\([^)]*\)$/)&&(E.negative="parenthesis"),y.match(/^\+?-/)&&(E.negative="sign"),w=C,e.match(/^\+/)&&(w.forceSign=!0),C)}}},{}],9:[function(e,t,n){"use strict";var r=[{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}];function o(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}t.exports={unformat:function(t,n){var i,a,s,l=e("./globalState"),u=l.currentDelimiters(),c=l.currentCurrency().symbol,d=l.currentOrdinal(),h=l.getZeroFormat(),f=l.currentAbbreviations(),v=void 0;if("string"==typeof t)v=function(e,t){if(!e.indexOf(":")||":"===t.thousands)return!1;var n=e.split(":");if(3!==n.length)return!1;var r=+n[0],o=+n[1],i=+n[2];return!isNaN(r)&&!isNaN(o)&&!isNaN(i)}(t,u)?(a=+(i=t.split(":"))[0],s=+i[1],+i[2]+60*s+3600*a):function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"",i=3<arguments.length?arguments[3]:void 0,a=4<arguments.length?arguments[4]:void 0,s=5<arguments.length?arguments[5]:void 0,l=6<arguments.length?arguments[6]:void 0;if(""!==e)return e===a?0:function e(t,n){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"",a=3<arguments.length?arguments[3]:void 0,s=4<arguments.length?arguments[4]:void 0,l=5<arguments.length?arguments[5]:void 0,u=6<arguments.length?arguments[6]:void 0;if(!isNaN(+t))return+t;var c="",d=t.replace(/(^[^(]*)\((.*)\)([^)]*$)/,"$1$2$3");if(d!==t)return-1*e(d,n,i,a,s,l,u);for(var h=0;h<r.length;h++){var f=r[h];if((c=t.replace(f.key,""))!==t)return e(c,n,i,a,s,l,u)*f.factor}if((c=t.replace("%",""))!==t)return e(c,n,i,a,s,l,u)/100;var v=parseFloat(t);if(!isNaN(v)){var p=a(v);if(p&&"."!==p&&(c=t.replace(new RegExp("".concat(o(p),"$")),""))!==t)return e(c,n,i,a,s,l,u);var g={};Object.keys(l).forEach((function(e){g[l[e]]=e}));for(var m=Object.keys(g).sort().reverse(),y=m.length,E=0;E<y;E++){var w=m[E],C=g[w];if((c=t.replace(w,""))!==t){var R=void 0;switch(C){case"thousand":R=Math.pow(10,3);break;case"million":R=Math.pow(10,6);break;case"billion":R=Math.pow(10,9);break;case"trillion":R=Math.pow(10,12)}return e(c,n,i,a,s,l,u)*R}}}}(function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"",r=e.replace(n,"");return(r=r.replace(new RegExp("([0-9])".concat(o(t.thousands),"([0-9])"),"g"),"$1$2")).replace(t.decimal,".")}(e,t,n),t,n,i,a,s,l)}(t,u,c,d,h,f,n);else{if("number"!=typeof t)return;v=t}if(void 0!==v)return v}}},{"./globalState":4}],10:[function(e,t,n){"use strict";function r(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 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)}var i=e("./unformatting"),a=/^[a-z]{2,3}(-[a-zA-Z]{4})?(-([A-Z]{2}|[0-9]{3}))?$/,s={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 0<=e},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 0<=e},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 0<=e},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`"}},l={languageTag:{type:"string",mandatory:!0,restriction:function(e){return e.match(a)},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}}}};function u(e){return!!i.unformat(e)}function c(e,t,n){var i=3<arguments.length&&void 0!==arguments[3]&&arguments[3],a=Object.keys(e).map((function(r){if(!t[r])return console.error("".concat(n," Invalid key: ").concat(r)),!1;var i=e[r],a=t[r];if("string"==typeof a&&(a={type:a}),"format"===a.type){if(!c(i,s,"[Validate ".concat(r,"]"),!0))return!1}else if(o(i)!==a.type)return console.error("".concat(n," ").concat(r,' type mismatched: "').concat(a.type,'" expected, "').concat(o(i),'" provided')),!1;if(a.restrictions&&a.restrictions.length)for(var l=a.restrictions.length,u=0;u<l;u++){var d=a.restrictions[u],h=d.restriction,f=d.message;if(!h(i,e))return console.error("".concat(n," ").concat(r," invalid value: ").concat(f)),!1}return a.restriction&&!a.restriction(i,e)?(console.error("".concat(n," ").concat(r," invalid value: ").concat(a.message)),!1):a.validValues&&-1===a.validValues.indexOf(i)?(console.error("".concat(n," ").concat(r," invalid value: must be among ").concat(JSON.stringify(a.validValues),', "').concat(i,'" provided')),!1):!(a.children&&!c(i,a.children,"[Validate ".concat(r,"]")))}));return i||a.push.apply(a,r(Object.keys(t).map((function(r){var o=t[r];if("string"==typeof o&&(o={type:o}),o.mandatory){var i=o.mandatory;if("function"==typeof i&&(i=i(e)),i&&void 0===e[r])return console.error("".concat(n,' Missing mandatory key "').concat(r,'"')),!1}return!0})))),a.reduce((function(e,t){return e&&t}),!0)}function d(e){return c(e,s,"[Validate format]")}t.exports={validate:function(e,t){var n=u(e),r=d(t);return n&&r},validateFormat:d,validateInput:u,validateLanguage:function(e){return c(e,l,"[Validate language]")}}},{"./unformatting":9}]},{},[7])(7),window.numbro=n(437)},function(e,t,n){"use strict";t.__esModule=!0,t.passwordRenderer=t.RENDERER_TYPE=void 0;var r=n(603);t.RENDERER_TYPE=r.RENDERER_TYPE,t.passwordRenderer=r.passwordRenderer},function(e,t,n){"use strict";t.__esModule=!0,t.dateValidator=t.correctFormat=t.VALIDATOR_TYPE=void 0;var r=n(606);t.VALIDATOR_TYPE=r.VALIDATOR_TYPE,t.correctFormat=r.correctFormat,t.dateValidator=r.dateValidator},function(e,t,n){"use strict";var r=n(155),o=n(47),i=n(67),a=n(607),s=n(156);r("search",1,(function(e,t,n){return[function(t){var n=i(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var i=o(e),l=String(this),u=i.lastIndex;a(u,0)||(i.lastIndex=0);var c=s(i,l);return a(i.lastIndex,u)||(i.lastIndex=u),null===c?-1:c.index}]}))},function(e,t,n){"use strict";t.__esModule=!0,t.numericValidator=t.VALIDATOR_TYPE=void 0;var r=n(608);t.VALIDATOR_TYPE=r.VALIDATOR_TYPE,t.numericValidator=r.numericValidator},function(e,t,n){"use strict";t.__esModule=!0,t.timeValidator=t.VALIDATOR_TYPE=void 0;var r=n(609);t.VALIDATOR_TYPE=r.VALIDATOR_TYPE,t.timeValidator=r.timeValidator},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(12),n(39),n(9),n(11),n(13),n(35),n(17);var o=r(n(37)),i=r(n(1)),a=r(n(2)),s=n(5),l=n(24),u=n(20),c=function(){function e(t){(0,i.default)(this,e),this.samples=null,this.dataFactory=t,this.customSampleCount=null,this.allowDuplicates=!1}return(0,a.default)(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 r=this,o=new Map,i="number"==typeof n?{from:n,to:n}:n,a=i.from,s=i.to;return(0,l.rangeEach)(a,s,(function(n){var i=r.generateSample(e,t,n);o.set(n,i)})),o}},{key:"generateSample",value:function(e,t,n){var r=this;if("row"!==e&&"col"!==e)throw new Error("Unsupported sample type");var i=new Map,a="row"===e?"col":"row",c=[];return(0,l.rangeEach)(t.from,t.to,(function(t){var l,d="row"===e?r.dataFactory(n,t):r.dataFactory(t,n),h=d.value,f=d.bundleSeed,v="string"==typeof f&&f.length>0;l=v?f:(0,s.isObject)(h)?"".concat(Object.keys(h).length):Array.isArray(h)?"".concat(h.length):"".concat((0,u.stringify)(h).length),i.has(l)||i.set(l,{needed:r.getSampleCount(),strings:[]});var p=i.get(l);p.needed&&((!(c.indexOf(h)>-1)||r.allowDuplicates||v)&&(p.strings.push((0,o.default)({value:h},a,t)),c.push(h),p.needed-=1))})),i}}],[{key:"SAMPLE_COUNT",get:function(){return 3}}]),e}();t.default=c},function(e,t,n){"use strict";t.__esModule=!0,t.ColumnSorting=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0;var r=n(641);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ColumnSorting=r.ColumnSorting},function(e,t,n){var r=n(251),o=n(254),i=n(191),a=n(253);e.exports=function(e){return r(e)||o(e)||i(e)||a()},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getCompareFunctionFactory=function(e){if(h(e))return d(e);return d(o.COLUMN_DATA_TYPE)},t.getRootComparator=t.registerRootComparator=void 0;var o=n(447),i=n(645),a=n(646),s=n(647),l=r(n(98)),u=(0,l.default)("sorting.compareFunctionFactory"),c=u.register,d=u.getItem,h=u.hasItem,f=(0,l.default)("sorting.mainSortComparator"),v=f.register,p=f.getItem;t.getRootComparator=p,t.registerRootComparator=v,c(i.COLUMN_DATA_TYPE,i.compareFunctionFactory),c(a.COLUMN_DATA_TYPE,a.compareFunctionFactory),c(s.COLUMN_DATA_TYPE,s.compareFunctionFactory),c(o.COLUMN_DATA_TYPE,o.compareFunctionFactory)},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?o.DO_NOT_SWAP:(0,r.isEmpty)(t)?(0,r.isEmpty)(i)?o.DO_NOT_SWAP:a&&"asc"===e?o.FIRST_BEFORE_SECOND:o.FIRST_AFTER_SECOND:(0,r.isEmpty)(i)?a&&"asc"===e?o.FIRST_AFTER_SECOND:o.FIRST_BEFORE_SECOND:isNaN(t)&&!isNaN(i)?"asc"===e?o.FIRST_AFTER_SECOND:o.FIRST_BEFORE_SECOND:!isNaN(t)&&isNaN(i)?"asc"===e?o.FIRST_BEFORE_SECOND:o.FIRST_AFTER_SECOND:(isNaN(t)||isNaN(i)||(t=parseFloat(t),i=parseFloat(i)),t<i?"asc"===e?o.FIRST_BEFORE_SECOND:o.FIRST_AFTER_SECOND:t>i?"asc"===e?o.FIRST_AFTER_SECOND:o.FIRST_BEFORE_SECOND:o.DO_NOT_SWAP)}},t.COLUMN_DATA_TYPE=void 0;var r=n(20),o=n(99);t.COLUMN_DATA_TYPE="default"},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(29),n(61),n(73);var o=r(n(1)),i=r(n(2)),a=n(3),s=n(5);function l(e,t){var n;return(0,a.arrayEach)(t,(function(t){var r=t.key?t.key.split(":"):null;if(Array.isArray(r)&&r[1]===e)return n=t,!1})),n}var u=function(){function e(t){(0,o.default)(this,e),this.hot=t,this.commands={},this.commonCallback=null}return(0,i.default)(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,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=e.split(":"),u=i[0],c=2===i.length?i[1]:null,d=this.commands[u];if(!d)throw new Error("Menu command '".concat(u,"' not exists."));if(c&&d.submenu&&(d=l(c,d.submenu.items)),!0!==d.disabled&&("function"!=typeof d.disabled||!0!==d.disabled.call(this.hot))&&!(0,s.hasOwnProperty)(d,"submenu")){var h=[];"function"==typeof d.callback&&h.push(d.callback),"function"==typeof this.commonCallback&&h.push(this.commonCallback),r.unshift(i.join(":")),(0,a.arrayEach)(h,(function(e){return e.apply(t.hot,r)}))}}}]),e}();t.default=u},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(79),n(17);var o=r(n(1)),i=r(n(2)),a=n(5),s=n(3),l=n(91);function u(){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]:{},r=[],o=e;return o&&o.items?o=o.items:Array.isArray(o)||(o=t),(0,a.isObject)(o)?(0,a.objectEach)(o,(function(e,t){var o=n["string"==typeof e?e:t];o||(o=e),(0,a.isObject)(e)?(0,a.extend)(o,e):"string"==typeof o&&(o={name:o}),void 0===o.key&&(o.key=t),r.push(o)})):(0,s.arrayEach)(o,(function(e,t){var o=n[e];!o&&l.ITEMS.indexOf(e)>=0||(o||(o={name:e,key:"".concat(t)}),(0,a.isObject)(e)&&(0,a.extend)(o,e),void 0===o.key&&(o.key=t),r.push(o))})),r}var c=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,o.default)(this,e),this.hot=t,this.predefinedItems=(0,l.predefinedItems)(),this.defaultOrderPattern=n}return(0,i.default)(e,[{key:"setPredefinedItems",value:function(e){var t=this,n={};this.defaultOrderPattern.length=0,(0,a.objectEach)(e,(function(e,r){var o="";e.name===l.SEPARATOR?(n[l.SEPARATOR]=e,o=l.SEPARATOR):isNaN(parseInt(r,10))?(e.key=void 0===e.key?r:e.key,n[r]=e,o=e.key):(n[e.key]=e,o=e.key),t.defaultOrderPattern.push(o)})),this.predefinedItems=n}},{key:"getItems",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return u(e,this.defaultOrderPattern,this.predefinedItems)}}]),e}();t.default=c},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=r(n(2)),a=n(24),s=function(){function e(t){(0,o.default)(this,e),this.hot=t,this._element=null,this.state=0}return(0,i.default)(e,[{key:"appendTo",value:function(e){e.appendChild(this._element),this.state=2}},{key:"build",value:function(){0===this.state&&(this._element=this.hot.rootDocument.createElement("div"),this.state=1)}},{key:"destroy",value:function(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=0}},{key:"isAppended",value:function(){return 2===this.state}},{key:"isBuilt",value:function(){return this.state>=1}},{key:"setPosition",value:function(e,t){(0,a.isNumeric)(e)&&(this._element.style.top=e+"px"),(0,a.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,a.isNumeric)(e)&&(this._element.style.width=e+"px"),(0,a.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,a.isNumeric)(e)&&(this._element.style.marginTop=e+"px"),(0,a.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=s},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=r(n(2)),a=function(){function e(t){(0,o.default)(this,e),this.hot=t,this._element=null,this.state=0}return(0,i.default)(e,[{key:"appendTo",value:function(e){e.appendChild(this._element),this.state=2}},{key:"build",value:function(){0===this.state&&(this._element=this.hot.rootDocument.createElement("div"),this.state=1)}},{key:"destroy",value:function(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=0}},{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=a},function(e,t,n){"use strict";t.__esModule=!0,t.applySpanProperties=function(e,t,n,r){t?t.row===n&&t.col===r?(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="")},n(9),n(52)},function(e,t,n){"use strict";var r=n(14);t.__esModule=!0,t.condition=s,t.CONDITION_NAME=void 0;var o=r(n(15)),i=n(36),a=n(20);function s(e){return(0,a.isEmpty)(e.value)}t.CONDITION_NAME="empty",(0,i.registerCondition)("empty",s,{name:o.FILTERS_CONDITIONS_EMPTY,inputsCount:0,showOperators:!0})},function(e,t,n){"use strict";var r=n(14),o=n(0);t.__esModule=!0,t.condition=u,t.CONDITION_NAME=void 0;var i=o(n(18)),a=r(n(15)),s=n(20),l=n(36);function u(e,t){var n=(0,i.default)(t,1)[0];return(0,s.stringify)(e.value).toLowerCase()===(0,s.stringify)(n)}t.CONDITION_NAME="eq",(0,l.registerCondition)("eq",u,{name:a.FILTERS_CONDITIONS_EQUAL,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";var r=n(14),o=n(0);t.__esModule=!0,t.condition=c,t.CONDITION_NAME=void 0;var i=o(n(18)),a=r(n(15)),s=n(36),l=n(456),u=n(457);function c(e,t){var n=(0,i.default)(t,2),r=n[0],o=n[1];if("numeric"===e.meta.type){var a=parseFloat(r,10),c=parseFloat(o,10);r=Math.min(a,c),o=Math.max(a,c)}else if("date"===e.meta.type){var d=(0,s.getCondition)(u.CONDITION_NAME,[o]),h=(0,s.getCondition)(l.CONDITION_NAME,[r]);return d(e)&&h(e)}return e.value>=r&&e.value<=o}t.CONDITION_NAME="between",(0,s.registerCondition)("between",c,{name:a.FILTERS_CONDITIONS_BETWEEN,inputsCount:2,showOperators:!0})},function(e,t,n){"use strict";var r=n(14),o=n(0);t.__esModule=!0,t.condition=u,t.CONDITION_NAME=void 0;var i=o(n(18)),a=o(n(76)),s=r(n(15)),l=n(36);function u(e,t){var n=(0,i.default)(t,1)[0],r=(0,a.default)(e.value,e.meta.dateFormat),o=(0,a.default)(n,e.meta.dateFormat);return!(!r.isValid()||!o.isValid())&&r.diff(o)>=0}t.CONDITION_NAME="date_after",(0,l.registerCondition)("date_after",u,{name:s.FILTERS_CONDITIONS_AFTER,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";var r=n(14),o=n(0);t.__esModule=!0,t.condition=u,t.CONDITION_NAME=void 0;var i=o(n(18)),a=o(n(76)),s=r(n(15)),l=n(36);function u(e,t){var n=(0,i.default)(t,1)[0],r=(0,a.default)(e.value,e.meta.dateFormat),o=(0,a.default)(n,e.meta.dateFormat);return!(!r.isValid()||!o.isValid())&&r.diff(o)<=0}t.CONDITION_NAME="date_before",(0,l.registerCondition)("date_before",u,{name:s.FILTERS_CONDITIONS_BEFORE,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";var r=n(14),o=n(0);t.__esModule=!0,t.condition=u,t.CONDITION_NAME=void 0,n(17);var i=o(n(18)),a=r(n(15)),s=n(20),l=n(36);function u(e,t){var n=(0,i.default)(t,1)[0];return(0,s.stringify)(e.value).toLowerCase().indexOf((0,s.stringify)(n))>=0}t.CONDITION_NAME="contains",(0,l.registerCondition)("contains",u,{name:a.FILTERS_CONDITIONS_CONTAINS,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";var r=n(14);t.__esModule=!0,t.operationResult=s,t.SHORT_NAME_FOR_COMPONENT=t.OPERATION_ID=void 0;var o=r(n(15)),i=n(143);t.OPERATION_ID="disjunction";var a=o.FILTERS_LABELS_DISJUNCTION;function s(e,t){return e.some((function(e){return e.func(t)}))}t.SHORT_NAME_FOR_COMPONENT=a,(0,i.registerOperation)("disjunction",a,s)},function(e,t,n){"use strict";var r=n(14);t.__esModule=!0,t.operationResult=s,t.SHORT_NAME_FOR_COMPONENT=t.OPERATION_ID=void 0,n(33);var o=r(n(15)),i=n(143);t.OPERATION_ID="disjunctionWithExtraCondition";var a=o.FILTERS_LABELS_DISJUNCTION;function s(e,t){if(e.length<3)throw Error("Operation doesn't work on less then three conditions.");return e.slice(0,e.length-1).some((function(e){return e.func(t)}))&&e[e.length-1].func(t)}t.SHORT_NAME_FOR_COMPONENT=a,(0,i.registerOperation)("disjunctionWithExtraCondition",a,s)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(18)),i=r(n(63));n(79),n(77),n(17);var a,s,l=r(n(1)),u=r(n(2)),c=n(3),d=n(5),h=n(64),f=r(n(55)),v=n(36),p=n(221),g=n(143),m=n(20),y=n(54),E="ConditionCollection.filteringStates",w=function(){function e(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];(0,l.default)(this,e),this.hot=t,this.isMapRegistrable=n,this.filteringStates=new y.LinkedPhysicalIndexToValueMap,!0===this.isMapRegistrable?this.hot.columnIndexMapper.registerMap(E,this.filteringStates):this.filteringStates.init(this.hot.columnIndexMapper.getNumberOfIndexes())}return(0,u.default)(e,[{key:"isEmpty",value:function(){return 0===this.getFilteredColumns().length}},{key:"isMatch",value:function(e,t){var n,r=this.filteringStates.getValueAtIndex(t),o=null!==(n=null==r?void 0:r.conditions)&&void 0!==n?n:[],i=null==r?void 0:r.operation;return this.isMatchInConditions(o,e,i)}},{key:"isMatchInConditions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.OPERATION_ID;return!e.length||(0,g.getOperationFunc)(n)(e,t)}},{key:"addCondition",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.OPERATION_ID,r=arguments.length>3?arguments[3]:void 0,o=(0,c.arrayMap)(t.args,(function(e){return"string"==typeof e?e.toLowerCase():e})),l=t.name||t.command.key;this.runLocalHooks("beforeAdd",e);var u=this.getOperation(e);if(u){if(u!==n)throw Error((0,h.toSingleLine)(a||(a=(0,i.default)(["The column of index "," has been already applied with a `","` \n filter operation. Use `removeConditions` to clear the current conditions and then add new ones. \n Mind that you cannot mix different types of operations (for instance, if you use `conjunction`, \n use it consequently for a particular column)."],["The column of index "," has been already applied with a \\`","\\`\\x20\n filter operation. Use \\`removeConditions\\` to clear the current conditions and then add new ones.\\x20\n Mind that you cannot mix different types of operations (for instance, if you use \\`conjunction\\`,\\x20\n use it consequently for a particular column)."])),e,u))}else if((0,m.isUndefined)(g.operations[n]))throw new Error((0,h.toSingleLine)(s||(s=(0,i.default)(["Unexpected operation named `","`. Possible ones are \n `disjunction` and `conjunction`."],["Unexpected operation named \\`","\\`. Possible ones are\\x20\n \\`disjunction\\` and \\`conjunction\\`."])),n));var d=this.getConditions(e);0===d.length?this.filteringStates.setValueAtIndex(e,{operation:n,conditions:[{name:l,args:o,func:(0,v.getCondition)(l,o)}]},r):d.push({name:l,args:o,func:(0,v.getCondition)(l,o)}),this.runLocalHooks("afterAdd",e)}},{key:"getConditions",value:function(e){var t,n;return null!==(t=null===(n=this.filteringStates.getValueAtIndex(e))||void 0===n?void 0:n.conditions)&&void 0!==t?t:[]}},{key:"getOperation",value:function(e){var t;return null===(t=this.filteringStates.getValueAtIndex(e))||void 0===t?void 0:t.operation}},{key:"getFilteredColumns",value:function(){return this.filteringStates.getEntries().map((function(e){return(0,o.default)(e,1)[0]}))}},{key:"getColumnStackPosition",value:function(e){return this.getFilteredColumns().indexOf(e)}},{key:"exportAllConditions",value:function(){return(0,c.arrayReduce)(this.filteringStates.getEntries(),(function(e,t){var n=(0,o.default)(t,2),r=n[0],i=n[1],a=i.operation,s=i.conditions;return e.push({column:r,operation:a,conditions:(0,c.arrayMap)(s,(function(e){return{name:e.name,args:e.args}}))}),e}),[])}},{key:"importAllConditions",value:function(e){var t=this;this.clean(),(0,c.arrayEach)(e,(function(e){(0,c.arrayEach)(e.conditions,(function(n){return t.addCondition(e.column,n)}))}))}},{key:"removeConditions",value:function(e){this.runLocalHooks("beforeRemove",e),this.filteringStates.clearValue(e),this.runLocalHooks("afterRemove",e)}},{key:"clean",value:function(){this.runLocalHooks("beforeClean"),this.filteringStates.clear(),this.runLocalHooks("afterClean")}},{key:"hasConditions",value:function(e,t){var n=this.getConditions(e);return t?n.some((function(e){return e.name===t})):n.length>0}},{key:"destroy",value:function(){this.isMapRegistrable&&this.hot.columnIndexMapper.unregisterMap(E),this.filteringStates=null,this.clearLocalHooks()}}]),e}();(0,d.mixin)(w,f.default);var C=w;t.default=C},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=r(n(2)),a=n(3),s=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return[]};(0,o.default)(this,e),this.conditionCollection=t,this.columnDataFactory=n}return(0,i.default)(e,[{key:"filter",value:function(){var e=this,t=[];return(0,a.arrayEach)(this.conditionCollection.getFilteredColumns(),(function(n,r){var o=e.columnDataFactory(n);r&&(o=e._getIntersectData(o,t)),t=e.filterByColumn(n,o)})),t}},{key:"filterByColumn",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[];return(0,a.arrayEach)(n,(function(n){void 0!==n&&t.conditionCollection.isMatch(n,e)&&r.push(n)})),r}},{key:"_getIntersectData",value:function(e,t){var n=[];return(0,a.arrayEach)(t,(function(t){var r=t.meta.visualRow;void 0!==e[r]&&(n[r]=e[r])})),n}}]),e}();t.default=s},function(e,t,n){"use strict";n.r(t);var r=n(788),o=n(789),i=n(810),a=n(811),s=n(115),l=n(50),u=n(101);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 d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(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 m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=function(e){!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)}(h,e);var t,n,r,c=p(h);function h(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),(e=c.call(this)).parser=new i.Parser,e.parser.yy={toNumber:s.toNumber,trimEdges:a.trimEdges,invertNumber:s.invertNumber,throwError:function(t){return e._throwError(t)},callVariable:function(t){return e._callVariable(t)},evaluateByOperator:o.default,callFunction:function(t,n){return e._callFunction(t,n)},cellValue:function(t){return e._callCellValue(t)},rangeValue:function(t,n){return e._callRangeValue(t,n)}},e.variables=Object.create(null),e.functions=Object.create(null),e.setVariable("TRUE",!0).setVariable("FALSE",!1).setVariable("NULL",null),e}return t=h,(n=[{key:"parse",value:function(e){var t=null,n=null;try{t=""===e?"":this.parser.parse(e)}catch(e){var r=Object(l.default)(e.message);n=r||Object(l.default)(l.ERROR)}return t instanceof Error&&(n=Object(l.default)(t.message)||Object(l.default)(l.ERROR),t=null),{error:n,result:t}}},{key:"setVariable",value:function(e,t){return this.variables[e]=t,this}},{key:"getVariable",value:function(e){return this.variables[e]}},{key:"_callVariable",value:function(e){var t=this.getVariable(e);if(this.emit("callVariable",e,(function(e){void 0!==e&&(t=e)})),void 0===t)throw Error(l.ERROR_NAME);return t}},{key:"setFunction",value:function(e,t){return this.functions[e]=t,this}},{key:"getFunction",value:function(e){return this.functions[e]}},{key:"_callFunction",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=this.getFunction(e);return r&&(t=r(n)),this.emit("callFunction",e,n,(function(e){void 0!==e&&(t=e)})),void 0===t?Object(o.default)(e,n):t}},{key:"_callCellValue",value:function(e){e=e.toUpperCase();var t=d(Object(u.extractLabel)(e),2),n=t[0],r=t[1],o=void 0;return this.emit("callCellValue",{label:e,row:n,column:r},(function(e){o=e})),o}},{key:"_callRangeValue",value:function(e,t){e=e.toUpperCase(),t=t.toUpperCase();var n=d(Object(u.extractLabel)(e),2),r=n[0],o=n[1],i=d(Object(u.extractLabel)(t),2),a=i[0],s=i[1],l={},c={};r.index<=a.index?(l.row=r,c.row=a):(l.row=a,c.row=r),o.index<=s.index?(l.column=o,c.column=s):(l.column=s,c.column=o),l.label=Object(u.toLabel)(l.row,l.column),c.label=Object(u.toLabel)(c.row,c.column);var h=[];return this.emit("callRangeValue",l,c,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];h=e})),h}},{key:"_throwError",value:function(e){if(Object(l.isValidStrict)(e))throw Error(e);throw Error(l.ERROR)}}])&&f(t.prototype,n),r&&f(t,r),h}(r);t.default=y},function(e,t,n){var r;e.exports=(function(e,t){var n=e.utils.isFunction;function r(e,t){return e-t}function o(e,n,r){return t.max(n,t.min(e,r))}e.sum=function(e){for(var t=0,n=e.length;--n>=0;)t+=e[n];return t},e.sumsqrd=function(e){for(var t=0,n=e.length;--n>=0;)t+=e[n]*e[n];return t},e.sumsqerr=function(t){for(var n,r=e.mean(t),o=0,i=t.length;--i>=0;)o+=(n=t[i]-r)*n;return o},e.sumrow=function(e){for(var t=0,n=e.length;--n>=0;)t+=e[n];return t},e.product=function(e){for(var t=1,n=e.length;--n>=0;)t*=e[n];return t},e.min=function(e){for(var t=e[0],n=0;++n<e.length;)e[n]<t&&(t=e[n]);return t},e.max=function(e){for(var t=e[0],n=0;++n<e.length;)e[n]>t&&(t=e[n]);return t},e.unique=function(e){for(var t={},n=[],r=0;r<e.length;r++)t[e[r]]||(t[e[r]]=!0,n.push(e[r]));return n},e.mean=function(t){return e.sum(t)/t.length},e.meansqerr=function(t){return e.sumsqerr(t)/t.length},e.geomean=function(n){return t.pow(e.product(n),1/n.length)},e.median=function(e){var t=e.length,n=e.slice().sort(r);return 1&t?n[t/2|0]:(n[t/2-1]+n[t/2])/2},e.cumsum=function(t){return e.cumreduce(t,(function(e,t){return e+t}))},e.cumprod=function(t){return e.cumreduce(t,(function(e,t){return e*t}))},e.diff=function(e){var t,n=[],r=e.length;for(t=1;t<r;t++)n.push(e[t]-e[t-1]);return n},e.rank=function(e){var t,n=[],o={};for(t=0;t<e.length;t++)o[l=e[t]]?o[l]++:(o[l]=1,n.push(l));var i=n.sort(r),a={},s=1;for(t=0;t<i.length;t++){var l,u=o[l=i[t]],c=(s+(s+u-1))/2;a[l]=c,s+=u}return e.map((function(e){return a[e]}))},e.mode=function(e){var t,n=e.length,o=e.slice().sort(r),i=1,a=0,s=0,l=[];for(t=0;t<n;t++)o[t]===o[t+1]?i++:(i>a?(l=[o[t]],a=i,s=0):i===a&&(l.push(o[t]),s++),i=1);return 0===s?l[0]:l},e.range=function(t){return e.max(t)-e.min(t)},e.variance=function(t,n){return e.sumsqerr(t)/(t.length-(n?1:0))},e.pooledvariance=function(t){return t.reduce((function(t,n){return t+e.sumsqerr(n)}),0)/(t.reduce((function(e,t){return e+t.length}),0)-t.length)},e.deviation=function(t){for(var n=e.mean(t),r=t.length,o=new Array(r),i=0;i<r;i++)o[i]=t[i]-n;return o},e.stdev=function(n,r){return t.sqrt(e.variance(n,r))},e.pooledstdev=function(n){return t.sqrt(e.pooledvariance(n))},e.meandev=function(n){for(var r=e.mean(n),o=[],i=n.length-1;i>=0;i--)o.push(t.abs(n[i]-r));return e.mean(o)},e.meddev=function(n){for(var r=e.median(n),o=[],i=n.length-1;i>=0;i--)o.push(t.abs(n[i]-r));return e.median(o)},e.coeffvar=function(t){return e.stdev(t)/e.mean(t)},e.quartiles=function(e){var n=e.length,o=e.slice().sort(r);return[o[t.round(n/4)-1],o[t.round(n/2)-1],o[t.round(3*n/4)-1]]},e.quantiles=function(e,n,i,a){var s,l,u,c,d,h=e.slice().sort(r),f=[n.length],v=e.length;for(void 0===i&&(i=3/8),void 0===a&&(a=3/8),s=0;s<n.length;s++)u=v*(l=n[s])+(i+l*(1-i-a)),c=t.floor(o(u,1,v-1)),d=o(u-c,0,1),f[s]=(1-d)*h[c-1]+d*h[c];return f},e.percentile=function(e,t,n){var o=e.slice().sort(r),i=t*(o.length+(n?1:-1))+(n?0:1),a=parseInt(i),s=i-a;return a+1<o.length?o[a-1]+s*(o[a]-o[a-1]):o[a-1]},e.percentileOfScore=function(e,t,n){var r,o,i=0,a=e.length,s=!1;for("strict"===n&&(s=!0),o=0;o<a;o++)r=e[o],(s&&r<t||!s&&r<=t)&&i++;return i/a},e.histogram=function(n,r){r=r||4;var o,i=e.min(n),a=(e.max(n)-i)/r,s=n.length,l=[];for(o=0;o<r;o++)l[o]=0;for(o=0;o<s;o++)l[t.min(t.floor((n[o]-i)/a),r-1)]+=1;return l},e.covariance=function(t,n){var r,o=e.mean(t),i=e.mean(n),a=t.length,s=new Array(a);for(r=0;r<a;r++)s[r]=(t[r]-o)*(n[r]-i);return e.sum(s)/(a-1)},e.corrcoeff=function(t,n){return e.covariance(t,n)/e.stdev(t,1)/e.stdev(n,1)},e.spearmancoeff=function(t,n){return t=e.rank(t),n=e.rank(n),e.corrcoeff(t,n)},e.stanMoment=function(n,r){for(var o=e.mean(n),i=e.stdev(n),a=n.length,s=0,l=0;l<a;l++)s+=t.pow((n[l]-o)/i,r);return s/n.length},e.skewness=function(t){return e.stanMoment(t,3)},e.kurtosis=function(t){return e.stanMoment(t,4)-3};var i=e.prototype;!function(t){for(var r=0;r<t.length;r++)!function(t){i[t]=function(r,o){var a=[],s=0,l=this;if(n(r)&&(o=r,r=!1),o)return setTimeout((function(){o.call(l,i[t].call(l,r))})),this;if(this.length>1){for(l=!0===r?this:this.transpose();s<l.length;s++)a[s]=e[t](l[s]);return a}return e[t](this[0],r)}}(t[r])}("cumsum cumprod".split(" ")),function(t){for(var r=0;r<t.length;r++)!function(t){i[t]=function(r,o){var a=[],s=0,l=this;if(n(r)&&(o=r,r=!1),o)return setTimeout((function(){o.call(l,i[t].call(l,r))})),this;if(this.length>1){for("sumrow"!==t&&(l=!0===r?this:this.transpose());s<l.length;s++)a[s]=e[t](l[s]);return!0===r?e[t](e.utils.toVector(a)):a}return e[t](this[0],r)}}(t[r])}("sum sumsqrd sumsqerr sumrow product min max unique mean meansqerr geomean median diff rank mode range variance deviation stdev meandev meddev coeffvar quartiles histogram skewness kurtosis".split(" ")),function(t){for(var r=0;r<t.length;r++)!function(t){i[t]=function(){var r,o=[],a=0,s=this,l=Array.prototype.slice.call(arguments);if(n(l[l.length-1])){r=l[l.length-1];var u=l.slice(0,l.length-1);return setTimeout((function(){r.call(s,i[t].apply(s,u))})),this}r=void 0;var c=function(n){return e[t].apply(s,[n].concat(l))};if(this.length>1){for(s=s.transpose();a<s.length;a++)o[a]=c(s[a]);return o}return c(this[0])}}(t[r])}("quantiles percentileOfScore".split(" "))}(r=function(e,t){var n=Array.prototype.concat,r=Array.prototype.slice,o=Object.prototype.toString;function i(t,n){var r=t>n?t:n;return e.pow(10,17-~~(e.log(r>0?r:-r)*e.LOG10E))}var a=Array.isArray||function(e){return"[object Array]"===o.call(e)};function s(e){return"[object Function]"===o.call(e)}function l(e){return"number"==typeof e&&e-e==0}function u(){return new u._init(arguments)}function c(){return 0}function d(){return 1}function h(e,t){return e===t?1:0}u.fn=u.prototype,u._init=function(e){if(a(e[0]))if(a(e[0][0])){s(e[1])&&(e[0]=u.map(e[0],e[1]));for(var t=0;t<e[0].length;t++)this[t]=e[0][t];this.length=e[0].length}else this[0]=s(e[1])?u.map(e[0],e[1]):e[0],this.length=1;else if(l(e[0]))this[0]=u.seq.apply(null,e),this.length=1;else{if(e[0]instanceof u)return u(e[0].toArray());this[0]=[],this.length=1}return this},u._init.prototype=u.prototype,u._init.constructor=u,u.utils={calcRdx:i,isArray:a,isFunction:s,isNumber:l,toVector:function(e){return n.apply([],e)}},u._random_fn=e.random,u.setRandom=function(e){if("function"!=typeof e)throw new TypeError("fn is not a function");u._random_fn=e},u.extend=function(e){var t,n;if(1===arguments.length){for(n in e)u[n]=e[n];return this}for(t=1;t<arguments.length;t++)for(n in arguments[t])e[n]=arguments[t][n];return e},u.rows=function(e){return e.length||1},u.cols=function(e){return e[0].length||1},u.dimensions=function(e){return{rows:u.rows(e),cols:u.cols(e)}},u.row=function(e,t){return a(t)?t.map((function(t){return u.row(e,t)})):e[t]},u.rowa=function(e,t){return u.row(e,t)},u.col=function(e,t){if(a(t)){var n=u.arange(e.length).map((function(){return new Array(t.length)}));return t.forEach((function(t,r){u.arange(e.length).forEach((function(o){n[o][r]=e[o][t]}))})),n}for(var r=new Array(e.length),o=0;o<e.length;o++)r[o]=[e[o][t]];return r},u.cola=function(e,t){return u.col(e,t).map((function(e){return e[0]}))},u.diag=function(e){for(var t=u.rows(e),n=new Array(t),r=0;r<t;r++)n[r]=[e[r][r]];return n},u.antidiag=function(e){for(var t=u.rows(e)-1,n=new Array(t),r=0;t>=0;t--,r++)n[r]=[e[r][t]];return n},u.transpose=function(e){var t,n,r,o,i,s=[];for(a(e[0])||(e=[e]),n=e.length,r=e[0].length,i=0;i<r;i++){for(t=new Array(n),o=0;o<n;o++)t[o]=e[o][i];s.push(t)}return 1===s.length?s[0]:s},u.map=function(e,t,n){var r,o,i,s,l;for(a(e[0])||(e=[e]),o=e.length,i=e[0].length,s=n?e:new Array(o),r=0;r<o;r++)for(s[r]||(s[r]=new Array(i)),l=0;l<i;l++)s[r][l]=t(e[r][l],r,l);return 1===s.length?s[0]:s},u.cumreduce=function(e,t,n){var r,o,i,s,l;for(a(e[0])||(e=[e]),o=e.length,i=e[0].length,s=n?e:new Array(o),r=0;r<o;r++)for(s[r]||(s[r]=new Array(i)),i>0&&(s[r][0]=e[r][0]),l=1;l<i;l++)s[r][l]=t(s[r][l-1],e[r][l]);return 1===s.length?s[0]:s},u.alter=function(e,t){return u.map(e,t,!0)},u.create=function(e,t,n){var r,o,i=new Array(e);for(s(t)&&(n=t,t=e),r=0;r<e;r++)for(i[r]=new Array(t),o=0;o<t;o++)i[r][o]=n(r,o);return i},u.zeros=function(e,t){return l(t)||(t=e),u.create(e,t,c)},u.ones=function(e,t){return l(t)||(t=e),u.create(e,t,d)},u.rand=function(e,t){return l(t)||(t=e),u.create(e,t,u._random_fn)},u.identity=function(e,t){return l(t)||(t=e),u.create(e,t,h)},u.symmetric=function(e){var t,n,r=e.length;if(e.length!==e[0].length)return!1;for(t=0;t<r;t++)for(n=0;n<r;n++)if(e[n][t]!==e[t][n])return!1;return!0},u.clear=function(e){return u.alter(e,c)},u.seq=function(e,t,n,r){s(r)||(r=!1);var o,a=[],l=i(e,t),u=(t*l-e*l)/((n-1)*l),c=e;for(o=0;c<=t&&o<n;c=(e*l+u*l*++o)/l)a.push(r?r(c,o):c);return a},u.arange=function(e,t,n){var r,o=[];if(n=n||1,void 0===t&&(t=e,e=0),e===t||0===n)return[];if(e<t&&n<0)return[];if(e>t&&n>0)return[];if(n>0)for(r=e;r<t;r+=n)o.push(r);else for(r=e;r>t;r+=n)o.push(r);return o},u.slice=function(){function e(e,t,n,r){var o,i=[],a=e.length;if(void 0===t&&void 0===n&&void 0===r)return u.copy(e);if(r=r||1,(t=(t=t||0)>=0?t:a+t)===(n=(n=n||e.length)>=0?n:a+n)||0===r)return[];if(t<n&&r<0)return[];if(t>n&&r>0)return[];if(r>0)for(o=t;o<n;o+=r)i.push(e[o]);else for(o=t;o>n;o+=r)i.push(e[o]);return i}return function(t,n){var r,o;return l((n=n||{}).row)?l(n.col)?t[n.row][n.col]:e(u.rowa(t,n.row),(r=n.col||{}).start,r.end,r.step):l(n.col)?e(u.cola(t,n.col),(o=n.row||{}).start,o.end,o.step):(o=n.row||{},r=n.col||{},e(t,o.start,o.end,o.step).map((function(t){return e(t,r.start,r.end,r.step)})))}}(),u.sliceAssign=function(t,n,r){var o,i;if(l(n.row)){if(l(n.col))return t[n.row][n.col]=r;n.col=n.col||{},n.col.start=n.col.start||0,n.col.end=n.col.end||t[0].length,n.col.step=n.col.step||1,o=u.arange(n.col.start,e.min(t.length,n.col.end),n.col.step);var a=n.row;return o.forEach((function(e,n){t[a][e]=r[n]})),t}if(l(n.col)){n.row=n.row||{},n.row.start=n.row.start||0,n.row.end=n.row.end||t.length,n.row.step=n.row.step||1,i=u.arange(n.row.start,e.min(t[0].length,n.row.end),n.row.step);var s=n.col;return i.forEach((function(e,n){t[e][s]=r[n]})),t}return void 0===r[0].length&&(r=[r]),n.row.start=n.row.start||0,n.row.end=n.row.end||t.length,n.row.step=n.row.step||1,n.col.start=n.col.start||0,n.col.end=n.col.end||t[0].length,n.col.step=n.col.step||1,i=u.arange(n.row.start,e.min(t.length,n.row.end),n.row.step),o=u.arange(n.col.start,e.min(t[0].length,n.col.end),n.col.step),i.forEach((function(e,n){o.forEach((function(o,i){t[e][o]=r[n][i]}))})),t},u.diagonal=function(e){var t=u.zeros(e.length,e.length);return e.forEach((function(e,n){t[n][n]=e})),t},u.copy=function(e){return e.map((function(e){return l(e)?e:e.map((function(e){return e}))}))};var f=u.prototype;return f.length=0,f.push=Array.prototype.push,f.sort=Array.prototype.sort,f.splice=Array.prototype.splice,f.slice=Array.prototype.slice,f.toArray=function(){return this.length>1?r.call(this):r.call(this)[0]},f.map=function(e,t){return u(u.map(this,e,t))},f.cumreduce=function(e,t){return u(u.cumreduce(this,e,t))},f.alter=function(e){return u.alter(this,e),this},function(e){for(var t=0;t<e.length;t++)!function(e){f[e]=function(t){var n,r=this;return t?(setTimeout((function(){t.call(r,f[e].call(r))})),this):(n=u[e](this),a(n)?u(n):n)}}(e[t])}("transpose clear symmetric rows cols dimensions diag antidiag".split(" ")),function(e){for(var t=0;t<e.length;t++)!function(e){f[e]=function(t,n){var r=this;return n?(setTimeout((function(){n.call(r,f[e].call(r,t))})),this):u(u[e](this,t))}}(e[t])}("row col".split(" ")),function(e){for(var t=0;t<e.length;t++)!function(e){f[e]=function(){return u(u[e].apply(null,arguments))}}(e[t])}("create zeros ones rand identity".split(" ")),u}(Math),Math),function(e,t){e.gammaln=function(e){var n,r,o,i=0,a=[76.18009172947146,-86.50532032941678,24.01409824083091,-1.231739572450155,.001208650973866179,-5395239384953e-18],s=1.000000000190015;for(o=(r=n=e)+5.5,o-=(n+.5)*t.log(o);i<6;i++)s+=a[i]/++r;return t.log(2.5066282746310007*s/n)-o},e.loggam=function(e){var n,r,o,i,a,s,l,u=[.08333333333333333,-.002777777777777778,.0007936507936507937,-.0005952380952380952,.0008417508417508418,-.001917526917526918,.00641025641025641,-.02955065359477124,.1796443723688307,-1.3924322169059];if(n=e,l=0,1==e||2==e)return 0;for(e<=7&&(n=e+(l=t.floor(7-e))),r=1/(n*n),o=2*t.PI,a=u[9],s=8;s>=0;s--)a*=r,a+=u[s];if(i=a/n+.5*t.log(o)+(n-.5)*t.log(n)-n,e<=7)for(s=1;s<=l;s++)i-=t.log(n-1),n-=1;return i},e.gammafn=function(e){var n,r,o,i,a=[-1.716185138865495,24.76565080557592,-379.80425647094563,629.3311553128184,866.9662027904133,-31451.272968848367,-36144.413418691176,66456.14382024054],s=[-30.8402300119739,315.35062697960416,-1015.1563674902192,-3107.771671572311,22538.11842098015,4755.846277527881,-134659.9598649693,-115132.2596755535],l=!1,u=0,c=0,d=0,h=e;if(e>171.6243769536076)return 1/0;if(h<=0){if(!(i=h%1+36e-17))return 1/0;l=(1&h?-1:1)*t.PI/t.sin(t.PI*i),h=1-h}for(o=h,r=h<1?h++:(h-=u=(0|h)-1)-1,n=0;n<8;++n)d=(d+a[n])*r,c=c*r+s[n];if(i=d/c+1,o<h)i/=o;else if(o>h)for(n=0;n<u;++n)i*=h,h++;return l&&(i=l/i),i},e.gammap=function(t,n){return e.lowRegGamma(t,n)*e.gammafn(t)},e.lowRegGamma=function(n,r){var o,i=e.gammaln(n),a=n,s=1/n,l=s,u=r+1-n,c=1/1e-30,d=1/u,h=d,f=1,v=-~(8.5*t.log(n>=1?n:1/n)+.4*n+17);if(r<0||n<=0)return NaN;if(r<n+1){for(;f<=v;f++)s+=l*=r/++a;return s*t.exp(-r+n*t.log(r)-i)}for(;f<=v;f++)h*=(d=1/(d=(o=-f*(f-n))*d+(u+=2)))*(c=u+o/c);return 1-h*t.exp(-r+n*t.log(r)-i)},e.factorialln=function(t){return t<0?NaN:e.gammaln(t+1)},e.factorial=function(t){return t<0?NaN:e.gammafn(t+1)},e.combination=function(n,r){return n>170||r>170?t.exp(e.combinationln(n,r)):e.factorial(n)/e.factorial(r)/e.factorial(n-r)},e.combinationln=function(t,n){return e.factorialln(t)-e.factorialln(n)-e.factorialln(t-n)},e.permutation=function(t,n){return e.factorial(t)/e.factorial(t-n)},e.betafn=function(n,r){if(!(n<=0||r<=0))return n+r>170?t.exp(e.betaln(n,r)):e.gammafn(n)*e.gammafn(r)/e.gammafn(n+r)},e.betaln=function(t,n){return e.gammaln(t)+e.gammaln(n)-e.gammaln(t+n)},e.betacf=function(e,n,r){var o,i,a,s,l=1,u=n+r,c=n+1,d=n-1,h=1,f=1-u*e/c;for(t.abs(f)<1e-30&&(f=1e-30),s=f=1/f;l<=100&&(f=1+(i=l*(r-l)*e/((d+(o=2*l))*(n+o)))*f,t.abs(f)<1e-30&&(f=1e-30),h=1+i/h,t.abs(h)<1e-30&&(h=1e-30),s*=(f=1/f)*h,f=1+(i=-(n+l)*(u+l)*e/((n+o)*(c+o)))*f,t.abs(f)<1e-30&&(f=1e-30),h=1+i/h,t.abs(h)<1e-30&&(h=1e-30),s*=a=(f=1/f)*h,!(t.abs(a-1)<3e-7));l++);return s},e.gammapinv=function(n,r){var o,i,a,s,l,u,c=0,d=r-1,h=e.gammaln(r);if(n>=1)return t.max(100,r+100*t.sqrt(r));if(n<=0)return 0;for(r>1?(l=t.log(d),u=t.exp(d*(l-1)-h),s=n<.5?n:1-n,o=(2.30753+.27061*(i=t.sqrt(-2*t.log(s))))/(1+i*(.99229+.04481*i))-i,n<.5&&(o=-o),o=t.max(.001,r*t.pow(1-1/(9*r)-o/(3*t.sqrt(r)),3))):o=n<(i=1-r*(.253+.12*r))?t.pow(n/i,1/r):1-t.log(1-(n-i)/(1-i));c<12;c++){if(o<=0)return 0;if((o-=i=(a=(e.lowRegGamma(r,o)-n)/(i=r>1?u*t.exp(-(o-d)+d*(t.log(o)-l)):t.exp(-o+d*t.log(o)-h)))/(1-.5*t.min(1,a*((r-1)/o-1))))<=0&&(o=.5*(o+i)),t.abs(i)<1e-8*o)break}return o},e.erf=function(e){var n,r,o,i,a=[-1.3026537197817094,.6419697923564902,.019476473204185836,-.00956151478680863,-.000946595344482036,.000366839497852761,42523324806907e-18,-20278578112534e-18,-1624290004647e-18,130365583558e-17,1.5626441722e-8,-8.5238095915e-8,6.529054439e-9,5.059343495e-9,-9.91364156e-10,-2.27365122e-10,96467911e-18,2394038e-18,-6886027e-18,894487e-18,313092e-18,-112708e-18,381e-18,7106e-18,-1523e-18,-94e-18,121e-18,-28e-18],s=a.length-1,l=!1,u=0,c=0;for(e<0&&(e=-e,l=!0),r=4*(n=2/(2+e))-2;s>0;s--)o=u,u=r*u-c+a[s],c=o;return i=n*t.exp(-e*e+.5*(a[0]+r*u)-c),l?i-1:1-i},e.erfc=function(t){return 1-e.erf(t)},e.erfcinv=function(n){var r,o,i,a,s=0;if(n>=2)return-100;if(n<=0)return 100;for(a=n<1?n:2-n,r=-.70711*((2.30753+.27061*(i=t.sqrt(-2*t.log(a/2))))/(1+i*(.99229+.04481*i))-i);s<2;s++)r+=(o=e.erfc(r)-a)/(1.1283791670955126*t.exp(-r*r)-r*o);return n<1?r:-r},e.ibetainv=function(n,r,o){var i,a,s,l,u,c,d,h,f,v,p=r-1,g=o-1,m=0;if(n<=0)return 0;if(n>=1)return 1;for(r>=1&&o>=1?(s=n<.5?n:1-n,c=(2.30753+.27061*(l=t.sqrt(-2*t.log(s))))/(1+l*(.99229+.04481*l))-l,n<.5&&(c=-c),d=(c*c-3)/6,h=2/(1/(2*r-1)+1/(2*o-1)),f=c*t.sqrt(d+h)/h-(1/(2*o-1)-1/(2*r-1))*(d+5/6-2/(3*h)),c=r/(r+o*t.exp(2*f))):(i=t.log(r/(r+o)),a=t.log(o/(r+o)),c=n<(l=t.exp(r*i)/r)/(f=l+(u=t.exp(o*a)/o))?t.pow(r*f*n,1/r):1-t.pow(o*f*(1-n),1/o)),v=-e.gammaln(r)-e.gammaln(o)+e.gammaln(r+o);m<10;m++){if(0===c||1===c)return c;if((c-=l=(u=(e.ibeta(c,r,o)-n)/(l=t.exp(p*t.log(c)+g*t.log(1-c)+v)))/(1-.5*t.min(1,u*(p/c-g/(1-c)))))<=0&&(c=.5*(c+l)),c>=1&&(c=.5*(c+l+1)),t.abs(l)<1e-8*c&&m>0)break}return c},e.ibeta=function(n,r,o){var i=0===n||1===n?0:t.exp(e.gammaln(r+o)-e.gammaln(r)-e.gammaln(o)+r*t.log(n)+o*t.log(1-n));return!(n<0||n>1)&&(n<(r+1)/(r+o+2)?i*e.betacf(n,r,o)/r:1-i*e.betacf(1-n,o,r)/o)},e.randn=function(n,r){var o,i,a,s,l;if(r||(r=n),n)return e.create(n,r,(function(){return e.randn()}));do{o=e._random_fn(),i=1.7156*(e._random_fn()-.5),l=(a=o-.449871)*a+(s=t.abs(i)+.386595)*(.196*s-.25472*a)}while(l>.27597&&(l>.27846||i*i>-4*t.log(o)*o*o));return i/o},e.randg=function(n,r,o){var i,a,s,l,u,c,d=n;if(o||(o=r),n||(n=1),r)return(c=e.zeros(r,o)).alter((function(){return e.randg(n)})),c;n<1&&(n+=1),i=n-1/3,a=1/t.sqrt(9*i);do{do{l=1+a*(u=e.randn())}while(l<=0);l*=l*l,s=e._random_fn()}while(s>1-.331*t.pow(u,4)&&t.log(s)>.5*u*u+i*(1-l+t.log(l)));if(n==d)return i*l;do{s=e._random_fn()}while(0===s);return t.pow(s,1/d)*i*l},function(t){for(var n=0;n<t.length;n++)!function(t){e.fn[t]=function(){return e(e.map(this,(function(n){return e[t](n)})))}}(t[n])}("gammaln gammafn factorial factorialln".split(" ")),function(t){for(var n=0;n<t.length;n++)!function(t){e.fn[t]=function(){return e(e[t].apply(null,arguments))}}(t[n])}("randn".split(" "))}(r,Math),function(e,t){function n(e,n,r,o){for(var i,a=0,s=1,l=1,u=1,c=0,d=0;t.abs((l-d)/l)>o;)d=l,s=u+(i=-(n+c)*(n+r+c)*e/(n+2*c)/(n+2*c+1))*s,l=(a=l+i*a)+(i=(c+=1)*(r-c)*e/(n+2*c-1)/(n+2*c))*l,a/=u=s+i*u,s/=u,l/=u,u=1;return l/n}function r(n,r,o){var i=[.9815606342467192,.9041172563704749,.7699026741943047,.5873179542866175,.3678314989981802,.1252334085114689],a=[.04717533638651183,.10693932599531843,.16007832854334622,.20316742672306592,.2334925365383548,.24914704581340277],s=.5*n;if(s>=8)return 1;var l,u=2*e.normal.cdf(s,0,1,1,0)-1;u=u>=t.exp(-50/o)?t.pow(u,o):0;for(var c=s,d=(8-s)/(l=n>3?2:3),h=c+d,f=0,v=o-1,p=1;p<=l;p++){for(var g=0,m=.5*(h+c),y=.5*(h-c),E=1;E<=12;E++){var w,C=m+y*(6<E?i[(w=12-E+1)-1]:-i[(w=E)-1]),R=C*C;if(R>60)break;var T=2*e.normal.cdf(C,0,1,1,0)*.5-2*e.normal.cdf(C,n,1,1,0)*.5;T>=t.exp(-30/v)&&(g+=T=a[w-1]*t.exp(-.5*R)*t.pow(T,v))}f+=g*=2*y*o/t.sqrt(2*t.PI),c=h,h+=d}return(u+=f)<=t.exp(-30/r)?0:(u=t.pow(u,r))>=1?1:u}!function(t){for(var n=0;n<t.length;n++)!function(t){e[t]=function e(t,n,r){return this instanceof e?(this._a=t,this._b=n,this._c=r,this):new e(t,n,r)},e.fn[t]=function(n,r,o){var i=e[t](n,r,o);return i.data=this,i},e[t].prototype.sample=function(n){var r=this._a,o=this._b,i=this._c;return n?e.alter(n,(function(){return e[t].sample(r,o,i)})):e[t].sample(r,o,i)},function(n){for(var r=0;r<n.length;r++)!function(n){e[t].prototype[n]=function(r){var o=this._a,i=this._b,a=this._c;return r||0===r||(r=this.data),"number"!=typeof r?e.fn.map.call(r,(function(r){return e[t][n](r,o,i,a)})):e[t][n](r,o,i,a)}}(n[r])}("pdf cdf inv".split(" ")),function(n){for(var r=0;r<n.length;r++)!function(n){e[t].prototype[n]=function(){return e[t][n](this._a,this._b,this._c)}}(n[r])}("mean median mode variance".split(" "))}(t[n])}("beta centralF cauchy chisquare exponential gamma invgamma kumaraswamy laplace lognormal noncentralt normal pareto studentt weibull uniform binomial negbin hypgeom poisson triangular tukey arcsine".split(" ")),e.extend(e.beta,{pdf:function(n,r,o){return n>1||n<0?0:1==r&&1==o?1:r<512&&o<512?t.pow(n,r-1)*t.pow(1-n,o-1)/e.betafn(r,o):t.exp((r-1)*t.log(n)+(o-1)*t.log(1-n)-e.betaln(r,o))},cdf:function(t,n,r){return t>1||t<0?1*(t>1):e.ibeta(t,n,r)},inv:function(t,n,r){return e.ibetainv(t,n,r)},mean:function(e,t){return e/(e+t)},median:function(t,n){return e.ibetainv(.5,t,n)},mode:function(e,t){return(e-1)/(e+t-2)},sample:function(t,n){var r=e.randg(t);return r/(r+e.randg(n))},variance:function(e,n){return e*n/(t.pow(e+n,2)*(e+n+1))}}),e.extend(e.centralF,{pdf:function(n,r,o){var i;return n<0?0:r<=2?0===n&&r<2?1/0:0===n&&2===r?1:1/e.betafn(r/2,o/2)*t.pow(r/o,r/2)*t.pow(n,r/2-1)*t.pow(1+r/o*n,-(r+o)/2):(i=r*n/(o+n*r),r*(o/(o+n*r))/2*e.binomial.pdf((r-2)/2,(r+o-2)/2,i))},cdf:function(t,n,r){return t<0?0:e.ibeta(n*t/(n*t+r),n/2,r/2)},inv:function(t,n,r){return r/(n*(1/e.ibetainv(t,n/2,r/2)-1))},mean:function(e,t){return t>2?t/(t-2):void 0},mode:function(e,t){return e>2?t*(e-2)/(e*(t+2)):void 0},sample:function(t,n){return 2*e.randg(t/2)/t/(2*e.randg(n/2)/n)},variance:function(e,t){if(!(t<=4))return 2*t*t*(e+t-2)/(e*(t-2)*(t-2)*(t-4))}}),e.extend(e.cauchy,{pdf:function(e,n,r){return r<0?0:r/(t.pow(e-n,2)+t.pow(r,2))/t.PI},cdf:function(e,n,r){return t.atan((e-n)/r)/t.PI+.5},inv:function(e,n,r){return n+r*t.tan(t.PI*(e-.5))},median:function(e){return e},mode:function(e){return e},sample:function(n,r){return e.randn()*t.sqrt(1/(2*e.randg(.5)))*r+n}}),e.extend(e.chisquare,{pdf:function(n,r){return n<0?0:0===n&&2===r?.5:t.exp((r/2-1)*t.log(n)-n/2-r/2*t.log(2)-e.gammaln(r/2))},cdf:function(t,n){return t<0?0:e.lowRegGamma(n/2,t/2)},inv:function(t,n){return 2*e.gammapinv(t,.5*n)},mean:function(e){return e},median:function(e){return e*t.pow(1-2/(9*e),3)},mode:function(e){return e-2>0?e-2:0},sample:function(t){return 2*e.randg(t/2)},variance:function(e){return 2*e}}),e.extend(e.exponential,{pdf:function(e,n){return e<0?0:n*t.exp(-n*e)},cdf:function(e,n){return e<0?0:1-t.exp(-n*e)},inv:function(e,n){return-t.log(1-e)/n},mean:function(e){return 1/e},median:function(e){return 1/e*t.log(2)},mode:function(){return 0},sample:function(n){return-1/n*t.log(e._random_fn())},variance:function(e){return t.pow(e,-2)}}),e.extend(e.gamma,{pdf:function(n,r,o){return n<0?0:0===n&&1===r?1/o:t.exp((r-1)*t.log(n)-n/o-e.gammaln(r)-r*t.log(o))},cdf:function(t,n,r){return t<0?0:e.lowRegGamma(n,t/r)},inv:function(t,n,r){return e.gammapinv(t,n)*r},mean:function(e,t){return e*t},mode:function(e,t){if(e>1)return(e-1)*t},sample:function(t,n){return e.randg(t)*n},variance:function(e,t){return e*t*t}}),e.extend(e.invgamma,{pdf:function(n,r,o){return n<=0?0:t.exp(-(r+1)*t.log(n)-o/n-e.gammaln(r)+r*t.log(o))},cdf:function(t,n,r){return t<=0?0:1-e.lowRegGamma(n,r/t)},inv:function(t,n,r){return r/e.gammapinv(1-t,n)},mean:function(e,t){return e>1?t/(e-1):void 0},mode:function(e,t){return t/(e+1)},sample:function(t,n){return n/e.randg(t)},variance:function(e,t){if(!(e<=2))return t*t/((e-1)*(e-1)*(e-2))}}),e.extend(e.kumaraswamy,{pdf:function(e,n,r){return 0===e&&1===n?r:1===e&&1===r?n:t.exp(t.log(n)+t.log(r)+(n-1)*t.log(e)+(r-1)*t.log(1-t.pow(e,n)))},cdf:function(e,n,r){return e<0?0:e>1?1:1-t.pow(1-t.pow(e,n),r)},inv:function(e,n,r){return t.pow(1-t.pow(1-e,1/r),1/n)},mean:function(t,n){return n*e.gammafn(1+1/t)*e.gammafn(n)/e.gammafn(1+1/t+n)},median:function(e,n){return t.pow(1-t.pow(2,-1/n),1/e)},mode:function(e,n){if(e>=1&&n>=1&&1!==e&&1!==n)return t.pow((e-1)/(e*n-1),1/e)},variance:function(){throw new Error("variance not yet implemented")}}),e.extend(e.lognormal,{pdf:function(e,n,r){return e<=0?0:t.exp(-t.log(e)-.5*t.log(2*t.PI)-t.log(r)-t.pow(t.log(e)-n,2)/(2*r*r))},cdf:function(n,r,o){return n<0?0:.5+.5*e.erf((t.log(n)-r)/t.sqrt(2*o*o))},inv:function(n,r,o){return t.exp(-1.4142135623730951*o*e.erfcinv(2*n)+r)},mean:function(e,n){return t.exp(e+n*n/2)},median:function(e){return t.exp(e)},mode:function(e,n){return t.exp(e-n*n)},sample:function(n,r){return t.exp(e.randn()*r+n)},variance:function(e,n){return(t.exp(n*n)-1)*t.exp(2*e+n*n)}}),e.extend(e.noncentralt,{pdf:function(n,r,o){return t.abs(o)<1e-14?e.studentt.pdf(n,r):t.abs(n)<1e-14?t.exp(e.gammaln((r+1)/2)-o*o/2-.5*t.log(t.PI*r)-e.gammaln(r/2)):r/n*(e.noncentralt.cdf(n*t.sqrt(1+2/r),r+2,o)-e.noncentralt.cdf(n,r,o))},cdf:function(n,r,o){if(t.abs(o)<1e-14)return e.studentt.cdf(n,r);var i=!1;n<0&&(i=!0,o=-o);for(var a=e.normal.cdf(-o,0,1),s=1e-14+1,l=s,u=n*n/(n*n+r),c=0,d=t.exp(-o*o/2),h=t.exp(-o*o/2-.5*t.log(2)-e.gammaln(1.5))*o;c<200||l>1e-14||s>1e-14;)l=s,c>0&&(d*=o*o/(2*c),h*=o*o/(2*(c+.5))),a+=.5*(s=d*e.beta.cdf(u,c+.5,r/2)+h*e.beta.cdf(u,c+1,r/2)),c++;return i?1-a:a}}),e.extend(e.normal,{pdf:function(e,n,r){return t.exp(-.5*t.log(2*t.PI)-t.log(r)-t.pow(e-n,2)/(2*r*r))},cdf:function(n,r,o){return.5*(1+e.erf((n-r)/t.sqrt(2*o*o)))},inv:function(t,n,r){return-1.4142135623730951*r*e.erfcinv(2*t)+n},mean:function(e){return e},median:function(e){return e},mode:function(e){return e},sample:function(t,n){return e.randn()*n+t},variance:function(e,t){return t*t}}),e.extend(e.pareto,{pdf:function(e,n,r){return e<n?0:r*t.pow(n,r)/t.pow(e,r+1)},cdf:function(e,n,r){return e<n?0:1-t.pow(n/e,r)},inv:function(e,n,r){return n/t.pow(1-e,1/r)},mean:function(e,n){if(!(n<=1))return n*t.pow(e,n)/(n-1)},median:function(e,n){return e*(n*t.SQRT2)},mode:function(e){return e},variance:function(e,n){if(!(n<=2))return e*e*n/(t.pow(n-1,2)*(n-2))}}),e.extend(e.studentt,{pdf:function(n,r){return r=r>1e100?1e100:r,1/(t.sqrt(r)*e.betafn(.5,r/2))*t.pow(1+n*n/r,-(r+1)/2)},cdf:function(n,r){var o=r/2;return e.ibeta((n+t.sqrt(n*n+r))/(2*t.sqrt(n*n+r)),o,o)},inv:function(n,r){var o=e.ibetainv(2*t.min(n,1-n),.5*r,.5);return o=t.sqrt(r*(1-o)/o),n>.5?o:-o},mean:function(e){return e>1?0:void 0},median:function(){return 0},mode:function(){return 0},sample:function(n){return e.randn()*t.sqrt(n/(2*e.randg(n/2)))},variance:function(e){return e>2?e/(e-2):e>1?1/0:void 0}}),e.extend(e.weibull,{pdf:function(e,n,r){return e<0||n<0||r<0?0:r/n*t.pow(e/n,r-1)*t.exp(-t.pow(e/n,r))},cdf:function(e,n,r){return e<0?0:1-t.exp(-t.pow(e/n,r))},inv:function(e,n,r){return n*t.pow(-t.log(1-e),1/r)},mean:function(t,n){return t*e.gammafn(1+1/n)},median:function(e,n){return e*t.pow(t.log(2),1/n)},mode:function(e,n){return n<=1?0:e*t.pow((n-1)/n,1/n)},sample:function(n,r){return n*t.pow(-t.log(e._random_fn()),1/r)},variance:function(n,r){return n*n*e.gammafn(1+2/r)-t.pow(e.weibull.mean(n,r),2)}}),e.extend(e.uniform,{pdf:function(e,t,n){return e<t||e>n?0:1/(n-t)},cdf:function(e,t,n){return e<t?0:e<n?(e-t)/(n-t):1},inv:function(e,t,n){return t+e*(n-t)},mean:function(e,t){return.5*(e+t)},median:function(t,n){return e.mean(t,n)},mode:function(){throw new Error("mode is not yet implemented")},sample:function(t,n){return t/2+n/2+(n/2-t/2)*(2*e._random_fn()-1)},variance:function(e,n){return t.pow(n-e,2)/12}}),e.extend(e.binomial,{pdf:function(n,r,o){return 0===o||1===o?r*o===n?1:0:e.combination(r,n)*t.pow(o,n)*t.pow(1-o,r-n)},cdf:function(r,o,i){var a;if(r<0)return 0;if(r>=o)return 1;if(i<0||i>1||o<=0)return NaN;var s=i,l=(r=t.floor(r))+1,u=o-r,c=l+u,d=t.exp(e.gammaln(c)-e.gammaln(u)-e.gammaln(l)+l*t.log(s)+u*t.log(1-s));return a=s<(l+1)/(c+2)?d*n(s,l,u,1e-10):1-d*n(1-s,u,l,1e-10),t.round(1/1e-10*(1-a))/(1/1e-10)}}),e.extend(e.negbin,{pdf:function(n,r,o){return n===n>>>0&&(n<0?0:e.combination(n+r-1,r-1)*t.pow(1-o,n)*t.pow(o,r))},cdf:function(t,n,r){var o=0,i=0;if(t<0)return 0;for(;i<=t;i++)o+=e.negbin.pdf(i,n,r);return o}}),e.extend(e.hypgeom,{pdf:function(n,r,o,i){if(n!=n|0)return!1;if(n<0||n<o-(r-i))return 0;if(n>i||n>o)return 0;if(2*o>r)return 2*i>r?e.hypgeom.pdf(r-o-i+n,r,r-o,r-i):e.hypgeom.pdf(i-n,r,r-o,i);if(2*i>r)return e.hypgeom.pdf(o-n,r,o,r-i);if(o<i)return e.hypgeom.pdf(n,r,i,o);for(var a=1,s=0,l=0;l<n;l++){for(;a>1&&s<i;)a*=1-o/(r-s),s++;a*=(i-l)*(o-l)/((l+1)*(r-o-i+l+1))}for(;s<i;s++)a*=1-o/(r-s);return t.min(1,t.max(0,a))},cdf:function(n,r,o,i){if(n<0||n<o-(r-i))return 0;if(n>=i||n>=o)return 1;if(2*o>r)return 2*i>r?e.hypgeom.cdf(r-o-i+n,r,r-o,r-i):1-e.hypgeom.cdf(i-n-1,r,r-o,i);if(2*i>r)return 1-e.hypgeom.cdf(o-n-1,r,o,r-i);if(o<i)return e.hypgeom.cdf(n,r,i,o);for(var a=1,s=1,l=0,u=0;u<n;u++){for(;a>1&&l<i;){var c=1-o/(r-l);s*=c,a*=c,l++}a+=s*=(i-u)*(o-u)/((u+1)*(r-o-i+u+1))}for(;l<i;l++)a*=1-o/(r-l);return t.min(1,t.max(0,a))}}),e.extend(e.poisson,{pdf:function(n,r){return r<0||n%1!=0||n<0?0:t.pow(r,n)*t.exp(-r)/e.factorial(n)},cdf:function(t,n){var r=[],o=0;if(t<0)return 0;for(;o<=t;o++)r.push(e.poisson.pdf(o,n));return e.sum(r)},mean:function(e){return e},variance:function(e){return e},sampleSmall:function(n){var r=1,o=0,i=t.exp(-n);do{o++,r*=e._random_fn()}while(r>i);return o-1},sampleLarge:function(n){var r,o,i,a,s,l,u,c,d,h,f=n;for(a=t.sqrt(f),s=t.log(f),l=.02483*(u=.931+2.53*a)-.059,c=1.1239+1.1328/(u-3.4),d=.9277-3.6224/(u-2);;){if(o=t.random()-.5,i=t.random(),h=.5-t.abs(o),r=t.floor((2*l/h+u)*o+f+.43),h>=.07&&i<=d)return r;if(!(r<0||h<.013&&i>h)&&t.log(i)+t.log(c)-t.log(l/(h*h)+u)<=r*s-f-e.loggam(r+1))return r}},sample:function(e){return e<10?this.sampleSmall(e):this.sampleLarge(e)}}),e.extend(e.triangular,{pdf:function(e,t,n,r){return n<=t||r<t||r>n?NaN:e<t||e>n?0:e<r?2*(e-t)/((n-t)*(r-t)):e===r?2/(n-t):2*(n-e)/((n-t)*(n-r))},cdf:function(e,n,r,o){return r<=n||o<n||o>r?NaN:e<=n?0:e>=r?1:e<=o?t.pow(e-n,2)/((r-n)*(o-n)):1-t.pow(r-e,2)/((r-n)*(r-o))},inv:function(e,n,r,o){return r<=n||o<n||o>r?NaN:e<=(o-n)/(r-n)?n+(r-n)*t.sqrt(e*((o-n)/(r-n))):n+(r-n)*(1-t.sqrt((1-e)*(1-(o-n)/(r-n))))},mean:function(e,t,n){return(e+t+n)/3},median:function(e,n,r){return r<=(e+n)/2?n-t.sqrt((n-e)*(n-r))/t.sqrt(2):r>(e+n)/2?e+t.sqrt((n-e)*(r-e))/t.sqrt(2):void 0},mode:function(e,t,n){return n},sample:function(n,r,o){var i=e._random_fn();return i<(o-n)/(r-n)?n+t.sqrt(i*(r-n)*(o-n)):r-t.sqrt((1-i)*(r-n)*(r-o))},variance:function(e,t,n){return(e*e+t*t+n*n-e*t-e*n-t*n)/18}}),e.extend(e.arcsine,{pdf:function(e,n,r){return r<=n?NaN:e<=n||e>=r?0:2/t.PI*t.pow(t.pow(r-n,2)-t.pow(2*e-n-r,2),-.5)},cdf:function(e,n,r){return e<n?0:e<r?2/t.PI*t.asin(t.sqrt((e-n)/(r-n))):1},inv:function(e,n,r){return n+(.5-.5*t.cos(t.PI*e))*(r-n)},mean:function(e,t){return t<=e?NaN:(e+t)/2},median:function(e,t){return t<=e?NaN:(e+t)/2},mode:function(){throw new Error("mode is not yet implemented")},sample:function(n,r){return(n+r)/2+(r-n)/2*t.sin(2*t.PI*e.uniform.sample(0,1))},variance:function(e,n){return n<=e?NaN:t.pow(n-e,2)/8}}),e.extend(e.laplace,{pdf:function(e,n,r){return r<=0?0:t.exp(-t.abs(e-n)/r)/(2*r)},cdf:function(e,n,r){return r<=0?0:e<n?.5*t.exp((e-n)/r):1-.5*t.exp(-(e-n)/r)},mean:function(e){return e},median:function(e){return e},mode:function(e){return e},variance:function(e,t){return 2*t*t},sample:function(n,r){var o,i=e._random_fn()-.5;return n-r*((o=i)/t.abs(o))*t.log(1-2*t.abs(i))}}),e.extend(e.tukey,{cdf:function(n,o,i){var a=o,s=[.9894009349916499,.9445750230732326,.8656312023878318,.755404408355003,.6178762444026438,.45801677765722737,.2816035507792589,.09501250983763744],l=[.027152459411754096,.062253523938647894,.09515851168249279,.12462897125553388,.14959598881657674,.16915651939500254,.18260341504492358,.1894506104550685];if(n<=0)return 0;if(i<2||a<2)return NaN;if(!Number.isFinite(n))return 1;if(i>25e3)return r(n,1,a);var u,c=.5*i,d=c*t.log(i)-i*t.log(2)-e.gammaln(c),h=c-1,f=.25*i;u=i<=100?1:i<=800?.5:i<=5e3?.25:.125,d+=t.log(u);for(var v=0,p=1;p<=50;p++){for(var g=0,m=(2*p-1)*u,y=1;y<=16;y++){var E,w;8<y?(E=y-8-1,w=d+h*t.log(m+s[E]*u)-(s[E]*u+m)*f):(E=y-1,w=d+h*t.log(m-s[E]*u)+(s[E]*u-m)*f),w>=-30&&(g+=r(8<y?n*t.sqrt(.5*(s[E]*u+m)):n*t.sqrt(.5*(-s[E]*u+m)),1,a)*l[E]*t.exp(w))}if(p*u>=1&&g<=1e-14)break;v+=g}if(g>1e-14)throw new Error("tukey.cdf failed to converge");return v>1&&(v=1),v},inv:function(n,r,o){if(o<2||r<2)return NaN;if(n<0||n>1)return NaN;if(0===n)return 0;if(1===n)return 1/0;var i,a=function(e,n,r){var o=.5-.5*e,i=t.sqrt(t.log(1/(o*o))),a=i+((((-453642210148e-16*i-.204231210125)*i-.342242088547)*i-1)*i+.322232421088)/((((.0038560700634*i+.10353775285)*i+.531103462366)*i+.588581570495)*i+.099348462606);r<120&&(a+=(a*a*a+a)/r/4);var s=.8832-.2368*a;return r<120&&(s+=-1.214/r+1.208*a/r),a*(s*t.log(n-1)+1.4142)}(n,r,o),s=e.tukey.cdf(a,r,o)-n;i=s>0?t.max(0,a-1):a+1;for(var l,u=e.tukey.cdf(i,r,o)-n,c=1;c<50;c++)if(l=i-u*(i-a)/(u-s),s=u,a=i,l<0&&(l=0,u=-n),u=e.tukey.cdf(l,r,o)-n,i=l,t.abs(i-a)<1e-4)return l;throw new Error("tukey.inv failed to converge")}})}(r,Math),function(e,t){var n,r,o=Array.prototype.push,i=e.utils.isArray;function a(t){return i(t)||t instanceof e}e.extend({add:function(t,n){return a(n)?(a(n[0])||(n=[n]),e.map(t,(function(e,t,r){return e+n[t][r]}))):e.map(t,(function(e){return e+n}))},subtract:function(t,n){return a(n)?(a(n[0])||(n=[n]),e.map(t,(function(e,t,r){return e-n[t][r]||0}))):e.map(t,(function(e){return e-n}))},divide:function(t,n){return a(n)?(a(n[0])||(n=[n]),e.multiply(t,e.inv(n))):e.map(t,(function(e){return e/n}))},multiply:function(t,n){var r,o,i,s,l,u,c,d;if(void 0===t.length&&void 0===n.length)return t*n;if(l=t.length,u=t[0].length,c=e.zeros(l,i=a(n)?n[0].length:u),d=0,a(n)){for(;d<i;d++)for(r=0;r<l;r++){for(s=0,o=0;o<u;o++)s+=t[r][o]*n[o][d];c[r][d]=s}return 1===l&&1===d?c[0][0]:c}return e.map(t,(function(e){return e*n}))},outer:function(t,n){return e.multiply(t.map((function(e){return[e]})),[n])},dot:function(t,n){a(t[0])||(t=[t]),a(n[0])||(n=[n]);for(var r,o,i=1===t[0].length&&1!==t.length?e.transpose(t):t,s=1===n[0].length&&1!==n.length?e.transpose(n):n,l=[],u=0,c=i.length,d=i[0].length;u<c;u++){for(l[u]=[],r=0,o=0;o<d;o++)r+=i[u][o]*s[u][o];l[u]=r}return 1===l.length?l[0]:l},pow:function(n,r){return e.map(n,(function(e){return t.pow(e,r)}))},exp:function(n){return e.map(n,(function(e){return t.exp(e)}))},log:function(n){return e.map(n,(function(e){return t.log(e)}))},abs:function(n){return e.map(n,(function(e){return t.abs(e)}))},norm:function(e,n){var r=0,o=0;for(isNaN(n)&&(n=2),a(e[0])&&(e=e[0]);o<e.length;o++)r+=t.pow(t.abs(e[o]),n);return t.pow(r,1/n)},angle:function(n,r){return t.acos(e.dot(n,r)/(e.norm(n)*e.norm(r)))},aug:function(e,t){var n,r=[];for(n=0;n<e.length;n++)r.push(e[n].slice());for(n=0;n<r.length;n++)o.apply(r[n],t[n]);return r},inv:function(t){for(var n,r=t.length,o=t[0].length,i=e.identity(r,o),a=e.gauss_jordan(t,i),s=[],l=0;l<r;l++)for(s[l]=[],n=o;n<a[0].length;n++)s[l][n-o]=a[l][n];return s},det:function(e){var t,n=e.length,r=2*n,o=new Array(r),i=n-1,a=r-1,s=i-n+1,l=a,u=0,c=0;if(2===n)return e[0][0]*e[1][1]-e[0][1]*e[1][0];for(;u<r;u++)o[u]=1;for(u=0;u<n;u++){for(t=0;t<n;t++)o[s<0?s+n:s]*=e[u][t],o[l<n?l+n:l]*=e[u][t],s++,l--;s=--i-n+1,l=--a}for(u=0;u<n;u++)c+=o[u];for(;u<r;u++)c-=o[u];return c},gauss_elimination:function(n,r){var o,i,a,s,l=0,u=0,c=n.length,d=n[0].length,h=1,f=0,v=[];for(o=(n=e.aug(n,r))[0].length,l=0;l<c;l++){for(i=n[l][l],u=l,s=l+1;s<d;s++)i<t.abs(n[s][l])&&(i=n[s][l],u=s);if(u!=l)for(s=0;s<o;s++)a=n[l][s],n[l][s]=n[u][s],n[u][s]=a;for(u=l+1;u<c;u++)for(h=n[u][l]/n[l][l],s=l;s<o;s++)n[u][s]=n[u][s]-h*n[l][s]}for(l=c-1;l>=0;l--){for(f=0,u=l+1;u<=c-1;u++)f+=v[u]*n[l][u];v[l]=(n[l][o-1]-f)/n[l][l]}return v},gauss_jordan:function(n,r){var o,i,a,s=e.aug(n,r),l=s.length,u=s[0].length,c=0;for(i=0;i<l;i++){var d=i;for(a=i+1;a<l;a++)t.abs(s[a][i])>t.abs(s[d][i])&&(d=a);var h=s[i];for(s[i]=s[d],s[d]=h,a=i+1;a<l;a++)for(c=s[a][i]/s[i][i],o=i;o<u;o++)s[a][o]-=s[i][o]*c}for(i=l-1;i>=0;i--){for(c=s[i][i],a=0;a<i;a++)for(o=u-1;o>i-1;o--)s[a][o]-=s[i][o]*s[a][i]/c;for(s[i][i]/=c,o=l;o<u;o++)s[i][o]/=c}return s},triaUpSolve:function(t,n){var r,o=t[0].length,i=e.zeros(1,o)[0],a=!1;return null!=n[0].length&&(n=n.map((function(e){return e[0]})),a=!0),e.arange(o-1,-1,-1).forEach((function(a){r=e.arange(a+1,o).map((function(e){return i[e]*t[a][e]})),i[a]=(n[a]-e.sum(r))/t[a][a]})),a?i.map((function(e){return[e]})):i},triaLowSolve:function(t,n){var r,o=t[0].length,i=e.zeros(1,o)[0],a=!1;return null!=n[0].length&&(n=n.map((function(e){return e[0]})),a=!0),e.arange(o).forEach((function(o){r=e.arange(o).map((function(e){return t[o][e]*i[e]})),i[o]=(n[o]-e.sum(r))/t[o][o]})),a?i.map((function(e){return[e]})):i},lu:function(t){var n,r=t.length,o=e.identity(r),i=e.zeros(t.length,t[0].length);return e.arange(r).forEach((function(e){i[0][e]=t[0][e]})),e.arange(1,r).forEach((function(a){e.arange(a).forEach((function(r){n=e.arange(r).map((function(e){return o[a][e]*i[e][r]})),o[a][r]=(t[a][r]-e.sum(n))/i[r][r]})),e.arange(a,r).forEach((function(r){n=e.arange(a).map((function(e){return o[a][e]*i[e][r]})),i[a][r]=t[n.length][r]-e.sum(n)}))})),[o,i]},cholesky:function(n){var r,o=n.length,i=e.zeros(n.length,n[0].length);return e.arange(o).forEach((function(a){r=e.arange(a).map((function(e){return t.pow(i[a][e],2)})),i[a][a]=t.sqrt(n[a][a]-e.sum(r)),e.arange(a+1,o).forEach((function(t){r=e.arange(a).map((function(e){return i[a][e]*i[t][e]})),i[t][a]=(n[a][t]-e.sum(r))/i[a][a]}))})),i},gauss_jacobi:function(n,r,o,i){for(var a,s,l,u,c=0,d=0,h=n.length,f=[],v=[],p=[];c<h;c++)for(f[c]=[],v[c]=[],p[c]=[],d=0;d<h;d++)c>d?(f[c][d]=n[c][d],v[c][d]=p[c][d]=0):c<d?(v[c][d]=n[c][d],f[c][d]=p[c][d]=0):(p[c][d]=n[c][d],f[c][d]=v[c][d]=0);for(l=e.multiply(e.multiply(e.inv(p),e.add(f,v)),-1),s=e.multiply(e.inv(p),r),a=o,u=e.add(e.multiply(l,o),s),c=2;t.abs(e.norm(e.subtract(u,a)))>i;)a=u,u=e.add(e.multiply(l,a),s),c++;return u},gauss_seidel:function(n,r,o,i){for(var a,s,l,u,c,d=0,h=n.length,f=[],v=[],p=[];d<h;d++)for(f[d]=[],v[d]=[],p[d]=[],a=0;a<h;a++)d>a?(f[d][a]=n[d][a],v[d][a]=p[d][a]=0):d<a?(v[d][a]=n[d][a],f[d][a]=p[d][a]=0):(p[d][a]=n[d][a],f[d][a]=v[d][a]=0);for(u=e.multiply(e.multiply(e.inv(e.add(p,f)),v),-1),l=e.multiply(e.inv(e.add(p,f)),r),s=o,c=e.add(e.multiply(u,o),l),d=2;t.abs(e.norm(e.subtract(c,s)))>i;)s=c,c=e.add(e.multiply(u,s),l),d+=1;return c},SOR:function(n,r,o,i,a){for(var s,l,u,c,d,h=0,f=n.length,v=[],p=[],g=[];h<f;h++)for(v[h]=[],p[h]=[],g[h]=[],s=0;s<f;s++)h>s?(v[h][s]=n[h][s],p[h][s]=g[h][s]=0):h<s?(p[h][s]=n[h][s],v[h][s]=g[h][s]=0):(g[h][s]=n[h][s],v[h][s]=p[h][s]=0);for(c=e.multiply(e.inv(e.add(g,e.multiply(v,a))),e.subtract(e.multiply(g,1-a),e.multiply(p,a))),u=e.multiply(e.multiply(e.inv(e.add(g,e.multiply(v,a))),r),a),l=o,d=e.add(e.multiply(c,o),u),h=2;t.abs(e.norm(e.subtract(d,l)))>i;)l=d,d=e.add(e.multiply(c,l),u),h++;return d},householder:function(n){for(var r,o,i,a,s=n.length,l=n[0].length,u=0,c=[],d=[];u<s-1;u++){for(r=0,a=u+1;a<l;a++)r+=n[a][u]*n[a][u];for(r=(n[u+1][u]>0?-1:1)*t.sqrt(r),o=t.sqrt((r*r-n[u+1][u]*r)/2),(c=e.zeros(s,1))[u+1][0]=(n[u+1][u]-r)/(2*o),i=u+2;i<s;i++)c[i][0]=n[i][u]/(2*o);d=e.subtract(e.identity(s,l),e.multiply(e.multiply(c,e.transpose(c)),2)),n=e.multiply(d,e.multiply(n,d))}return n},QR:(n=e.sum,r=e.arange,function(o){var i,a,s,l=o.length,u=o[0].length,c=e.zeros(u,u);for(o=e.copy(o),a=0;a<u;a++){for(c[a][a]=t.sqrt(n(r(l).map((function(e){return o[e][a]*o[e][a]})))),i=0;i<l;i++)o[i][a]=o[i][a]/c[a][a];for(s=a+1;s<u;s++)for(c[a][s]=n(r(l).map((function(e){return o[e][a]*o[e][s]}))),i=0;i<l;i++)o[i][s]=o[i][s]-o[i][a]*c[a][s]}return[o,c]}),lstsq:function(t,n){var r=!1;void 0===n[0].length&&(n=n.map((function(e){return[e]})),r=!0);var o=e.QR(t),i=o[0],a=o[1],s=t[0].length,l=e.slice(i,{col:{end:s}}),u=function(t){var n=(t=e.copy(t)).length,r=e.identity(n);return e.arange(n-1,-1,-1).forEach((function(n){e.sliceAssign(r,{row:n},e.divide(e.slice(r,{row:n}),t[n][n])),e.sliceAssign(t,{row:n},e.divide(e.slice(t,{row:n}),t[n][n])),e.arange(n).forEach((function(o){var i=e.multiply(t[o][n],-1),a=e.slice(t,{row:o}),s=e.multiply(e.slice(t,{row:n}),i);e.sliceAssign(t,{row:o},e.add(a,s));var l=e.slice(r,{row:o}),u=e.multiply(e.slice(r,{row:n}),i);e.sliceAssign(r,{row:o},e.add(l,u))}))})),r}(e.slice(a,{row:{end:s}})),c=e.transpose(l);void 0===c[0].length&&(c=[c]);var d=e.multiply(e.multiply(u,c),n);return void 0===d.length&&(d=[[d]]),r?d.map((function(e){return e[0]})):d},jacobi:function(n){for(var r,o,i,a,s,l,u,c=1,d=n.length,h=e.identity(d,d),f=[];1===c;){for(s=n[0][1],i=0,a=1,r=0;r<d;r++)for(o=0;o<d;o++)r!=o&&s<t.abs(n[r][o])&&(s=t.abs(n[r][o]),i=r,a=o);for(l=n[i][i]===n[a][a]?n[i][a]>0?t.PI/4:-t.PI/4:t.atan(2*n[i][a]/(n[i][i]-n[a][a]))/2,(u=e.identity(d,d))[i][i]=t.cos(l),u[i][a]=-t.sin(l),u[a][i]=t.sin(l),u[a][a]=t.cos(l),h=e.multiply(h,u),n=e.multiply(e.multiply(e.inv(u),n),u),c=0,r=1;r<d;r++)for(o=1;o<d;o++)r!=o&&t.abs(n[r][o])>.001&&(c=1)}for(r=0;r<d;r++)f.push(n[r][r]);return[h,f]},rungekutta:function(e,t,n,r,o,i){var a,s,l;if(2===i)for(;r<=n;)o+=((a=t*e(r,o))+(s=t*e(r+t,o+a)))/2,r+=t;if(4===i)for(;r<=n;)o+=((a=t*e(r,o))+2*(s=t*e(r+t/2,o+a/2))+2*(l=t*e(r+t/2,o+s/2))+t*e(r+t,o+l))/6,r+=t;return o},romberg:function(e,n,r,o){for(var i,a,s,l,u,c=0,d=(r-n)/2,h=[],f=[],v=[];c<o/2;){for(u=e(n),s=n,l=0;s<=r;s+=d,l++)h[l]=s;for(i=h.length,s=1;s<i-1;s++)u+=(s%2!=0?4:2)*e(h[s]);u=d/3*(u+e(r)),v[c]=u,d/=2,c++}for(a=v.length,i=1;1!==a;){for(s=0;s<a-1;s++)f[s]=(t.pow(4,i)*v[s+1]-v[s])/(t.pow(4,i)-1);a=f.length,v=f,f=[],i++}return v},richardson:function(e,n,r,o){function i(e,t){for(var n,r=0,o=e.length;r<o;r++)e[r]===t&&(n=r);return n}for(var a,s,l,u,c,d=t.abs(r-e[i(e,r)+1]),h=0,f=[],v=[];o>=d;)a=i(e,r+o),s=i(e,r),f[h]=(n[a]-2*n[s]+n[2*s-a])/(o*o),o/=2,h++;for(u=f.length,l=1;1!=u;){for(c=0;c<u-1;c++)v[c]=(t.pow(4,l)*f[c+1]-f[c])/(t.pow(4,l)-1);u=v.length,f=v,v=[],l++}return f},simpson:function(e,t,n,r){for(var o,i=(n-t)/r,a=e(t),s=[],l=t,u=0,c=1;l<=n;l+=i,u++)s[u]=l;for(o=s.length;c<o-1;c++)a+=(c%2!=0?4:2)*e(s[c]);return i/3*(a+e(n))},hermite:function(e,t,n,r){for(var o,i=e.length,a=0,s=0,l=[],u=[],c=[],d=[];s<i;s++){for(l[s]=1,o=0;o<i;o++)s!=o&&(l[s]*=(r-e[o])/(e[s]-e[o]));for(u[s]=0,o=0;o<i;o++)s!=o&&(u[s]+=1/(e[s]-e[o]));c[s]=(1-2*(r-e[s])*u[s])*(l[s]*l[s]),d[s]=(r-e[s])*(l[s]*l[s]),a+=c[s]*t[s]+d[s]*n[s]}return a},lagrange:function(e,t,n){for(var r,o,i=0,a=0,s=e.length;a<s;a++){for(o=t[a],r=0;r<s;r++)a!=r&&(o*=(n-e[r])/(e[a]-e[r]));i+=o}return i},cubic_spline:function(t,n,r){for(var o,i,a=t.length,s=0,l=[],u=[],c=[],d=[],h=[],f=[];s<a-1;s++)d[s]=t[s+1]-t[s];for(c[0]=0,s=1;s<a-1;s++)c[s]=3/d[s]*(n[s+1]-n[s])-3/d[s-1]*(n[s]-n[s-1]);for(s=1;s<a-1;s++)l[s]=[],u[s]=[],l[s][s-1]=d[s-1],l[s][s]=2*(d[s-1]+d[s]),l[s][s+1]=d[s],u[s][0]=c[s];for(i=e.multiply(e.inv(l),u),o=0;o<a-1;o++)h[o]=(n[o+1]-n[o])/d[o]-d[o]*(i[o+1][0]+2*i[o][0])/3,f[o]=(i[o+1][0]-i[o][0])/(3*d[o]);for(o=0;o<a&&!(t[o]>r);o++);return n[o-=1]+(r-t[o])*h[o]+e.sq(r-t[o])*i[o]+(r-t[o])*e.sq(r-t[o])*f[o]},gauss_quadrature:function(){throw new Error("gauss_quadrature not yet implemented")},PCA:function(t){var n,r,o,i,a,s=t.length,l=t[0].length,u=0,c=[],d=[],h=[],f=[],v=[],p=[],g=[];for(u=0;u<s;u++)c[u]=e.sum(t[u])/l;for(u=0;u<l;u++)for(v[u]=[],n=0;n<s;n++)v[u][n]=t[n][u]-c[n];for(v=e.transpose(v),u=0;u<s;u++)for(p[u]=[],n=0;n<s;n++)p[u][n]=e.dot([v[u]],[v[n]])/(l-1);for(a=(o=e.jacobi(p))[0],d=o[1],g=e.transpose(a),u=0;u<d.length;u++)for(n=u;n<d.length;n++)d[u]<d[n]&&(r=d[u],d[u]=d[n],d[n]=r,h=g[u],g[u]=g[n],g[n]=h);for(i=e.transpose(v),u=0;u<s;u++)for(f[u]=[],n=0;n<i.length;n++)f[u][n]=e.dot([g[u]],[i[n]]);return[t,d,g,f]}}),function(t){for(var n=0;n<t.length;n++)!function(t){e.fn[t]=function(n,r){var o=this;return r?(setTimeout((function(){r.call(o,e.fn[t].call(o,n))}),15),this):"number"==typeof e[t](this,n)?e[t](this,n):e(e[t](this,n))}}(t[n])}("add divide multiply subtract dot pow exp log abs norm angle".split(" "))}(r,Math),function(e,t){var n=[].slice,r=e.utils.isNumber,o=e.utils.isArray;function i(e,n,r,o){if(e>1||r>1||e<=0||r<=0)throw new Error("Proportions should be greater than 0 and less than 1");var i=(e*n+r*o)/(n+o);return(e-r)/t.sqrt(i*(1-i)*(1/n+1/o))}e.extend({zscore:function(){var t=n.call(arguments);return r(t[1])?(t[0]-t[1])/t[2]:(t[0]-e.mean(t[1]))/e.stdev(t[1],t[2])},ztest:function(){var r,i=n.call(arguments);return o(i[1])?(r=e.zscore(i[0],i[1],i[3]),1===i[2]?e.normal.cdf(-t.abs(r),0,1):2*e.normal.cdf(-t.abs(r),0,1)):i.length>2?(r=e.zscore(i[0],i[1],i[2]),1===i[3]?e.normal.cdf(-t.abs(r),0,1):2*e.normal.cdf(-t.abs(r),0,1)):(r=i[0],1===i[1]?e.normal.cdf(-t.abs(r),0,1):2*e.normal.cdf(-t.abs(r),0,1))}}),e.extend(e.fn,{zscore:function(e,t){return(e-this.mean())/this.stdev(t)},ztest:function(n,r,o){var i=t.abs(this.zscore(n,o));return 1===r?e.normal.cdf(-i,0,1):2*e.normal.cdf(-i,0,1)}}),e.extend({tscore:function(){var r=n.call(arguments);return 4===r.length?(r[0]-r[1])/(r[2]/t.sqrt(r[3])):(r[0]-e.mean(r[1]))/(e.stdev(r[1],!0)/t.sqrt(r[1].length))},ttest:function(){var o,i=n.call(arguments);return 5===i.length?(o=t.abs(e.tscore(i[0],i[1],i[2],i[3])),1===i[4]?e.studentt.cdf(-o,i[3]-1):2*e.studentt.cdf(-o,i[3]-1)):r(i[1])?(o=t.abs(i[0]),1==i[2]?e.studentt.cdf(-o,i[1]-1):2*e.studentt.cdf(-o,i[1]-1)):(o=t.abs(e.tscore(i[0],i[1])),1==i[2]?e.studentt.cdf(-o,i[1].length-1):2*e.studentt.cdf(-o,i[1].length-1))}}),e.extend(e.fn,{tscore:function(e){return(e-this.mean())/(this.stdev(!0)/t.sqrt(this.cols()))},ttest:function(n,r){return 1===r?1-e.studentt.cdf(t.abs(this.tscore(n)),this.cols()-1):2*e.studentt.cdf(-t.abs(this.tscore(n)),this.cols()-1)}}),e.extend({anovafscore:function(){var r,o,i,a,s,l,u,c,d=n.call(arguments);if(1===d.length){for(s=new Array(d[0].length),u=0;u<d[0].length;u++)s[u]=d[0][u];d=s}for(o=new Array,u=0;u<d.length;u++)o=o.concat(d[u]);for(i=e.mean(o),r=0,u=0;u<d.length;u++)r+=d[u].length*t.pow(e.mean(d[u])-i,2);for(r/=d.length-1,l=0,u=0;u<d.length;u++)for(a=e.mean(d[u]),c=0;c<d[u].length;c++)l+=t.pow(d[u][c]-a,2);return r/(l/=o.length-d.length)},anovaftest:function(){var t,o,i,a,s=n.call(arguments);if(r(s[0]))return 1-e.centralF.cdf(s[0],s[1],s[2]);var l=e.anovafscore(s);for(t=s.length-1,i=0,a=0;a<s.length;a++)i+=s[a].length;return o=i-t-1,1-e.centralF.cdf(l,t,o)},ftest:function(t,n,r){return 1-e.centralF.cdf(t,n,r)}}),e.extend(e.fn,{anovafscore:function(){return e.anovafscore(this.toArray())},anovaftes:function(){var t,n=0;for(t=0;t<this.length;t++)n+=this[t].length;return e.ftest(this.anovafscore(),this.length-1,n-this.length)}}),e.extend({qscore:function(){var o,i,a,s,l,u=n.call(arguments);return r(u[0])?(o=u[0],i=u[1],a=u[2],s=u[3],l=u[4]):(o=e.mean(u[0]),i=e.mean(u[1]),a=u[0].length,s=u[1].length,l=u[2]),t.abs(o-i)/(l*t.sqrt((1/a+1/s)/2))},qtest:function(){var t,r=n.call(arguments);3===r.length?(t=r[0],r=r.slice(1)):7===r.length?(t=e.qscore(r[0],r[1],r[2],r[3],r[4]),r=r.slice(5)):(t=e.qscore(r[0],r[1],r[2]),r=r.slice(3));var o=r[0],i=r[1];return 1-e.tukey.cdf(t,i,o-i)},tukeyhsd:function(t){for(var n=e.pooledstdev(t),r=t.map((function(t){return e.mean(t)})),o=t.reduce((function(e,t){return e+t.length}),0),i=[],a=0;a<t.length;++a)for(var s=a+1;s<t.length;++s){var l=e.qtest(r[a],r[s],t[a].length,t[s].length,n,o,t.length);i.push([[a,s],l])}return i}}),e.extend({normalci:function(){var r,o=n.call(arguments),i=new Array(2);return r=4===o.length?t.abs(e.normal.inv(o[1]/2,0,1)*o[2]/t.sqrt(o[3])):t.abs(e.normal.inv(o[1]/2,0,1)*e.stdev(o[2])/t.sqrt(o[2].length)),i[0]=o[0]-r,i[1]=o[0]+r,i},tci:function(){var r,o=n.call(arguments),i=new Array(2);return r=4===o.length?t.abs(e.studentt.inv(o[1]/2,o[3]-1)*o[2]/t.sqrt(o[3])):t.abs(e.studentt.inv(o[1]/2,o[2].length-1)*e.stdev(o[2],!0)/t.sqrt(o[2].length)),i[0]=o[0]-r,i[1]=o[0]+r,i},significant:function(e,t){return e<t}}),e.extend(e.fn,{normalci:function(t,n){return e.normalci(t,n,this.toArray())},tci:function(t,n){return e.tci(t,n,this.toArray())}}),e.extend(e.fn,{oneSidedDifferenceOfProportions:function(t,n,r,o){var a=i(t,n,r,o);return e.ztest(a,1)},twoSidedDifferenceOfProportions:function(t,n,r,o){var a=i(t,n,r,o);return e.ztest(a,2)}})}(r,Math),r.models=function(){function e(e,t){var n=e.length,o=t[0].length-1,i=n-o-1,a=r.lstsq(t,e),s=r.multiply(t,a.map((function(e){return[e]}))).map((function(e){return e[0]})),l=r.subtract(e,s),u=r.mean(e),c=r.sum(s.map((function(e){return Math.pow(e-u,2)}))),d=r.sum(e.map((function(e,t){return Math.pow(e-s[t],2)}))),h=c+d;return{exog:t,endog:e,nobs:n,df_model:o,df_resid:i,coef:a,predict:s,resid:l,ybar:u,SST:h,SSE:c,SSR:d,R2:c/h}}function t(t){var n,o,i=(n=t.exog,o=n[0].length,r.arange(o).map((function(t){var i=r.arange(o).filter((function(e){return e!==t}));return e(r.col(n,t).map((function(e){return e[0]})),r.col(n,i))}))),a=Math.sqrt(t.SSR/t.df_resid),s=i.map((function(e){var t=e.SST,n=e.R2;return a/Math.sqrt(t*(1-n))})),l=t.coef.map((function(e,t){return(e-0)/s[t]})),u=l.map((function(e){var n=r.studentt.cdf(e,t.df_resid);return 2*(n>.5?1-n:n)})),c=r.studentt.inv(.975,t.df_resid),d=t.coef.map((function(e,t){var n=c*s[t];return[e-n,e+n]}));return{se:s,t:l,p:u,sigmaHat:a,interval95:d}}return{ols:function(n,o){var i=e(n,o),a=t(i),s=function(e){var t,n,o,i=e.R2/e.df_model/((1-e.R2)/e.df_resid);return{F_statistic:i,pvalue:1-(t=i,n=e.df_model,o=e.df_resid,r.beta.cdf(t/(o/n+t),n/2,o/2))}}(i),l=1-(1-i.R2)*((i.nobs-1)/i.df_resid);return i.t=a,i.f=s,i.adjust_R2=l,i}}}(),r.extend({buildxmatrix:function(){for(var e=new Array(arguments.length),t=0;t<arguments.length;t++){var n=[1];e[t]=n.concat(arguments[t])}return r(e)},builddxmatrix:function(){for(var e=new Array(arguments[0].length),t=0;t<arguments[0].length;t++){var n=[1];e[t]=n.concat(arguments[0][t])}return r(e)},buildjxmatrix:function(e){for(var t=new Array(e.length),n=0;n<e.length;n++)t[n]=e[n];return r.builddxmatrix(t)},buildymatrix:function(e){return r(e).transpose()},buildjymatrix:function(e){return e.transpose()},matrixmult:function(e,t){var n,o,i,a,s;if(e.cols()==t.rows()){if(t.rows()>1){for(a=[],n=0;n<e.rows();n++)for(a[n]=[],o=0;o<t.cols();o++){for(s=0,i=0;i<e.cols();i++)s+=e.toArray()[n][i]*t.toArray()[i][o];a[n][o]=s}return r(a)}for(a=[],n=0;n<e.rows();n++)for(a[n]=[],o=0;o<t.cols();o++){for(s=0,i=0;i<e.cols();i++)s+=e.toArray()[n][i]*t.toArray()[o];a[n][o]=s}return r(a)}},regress:function(e,t){var n=r.xtranspxinv(e),o=e.transpose(),i=r.matrixmult(r(n),o);return r.matrixmult(i,t)},regresst:function(e,t,n){var o=r.regress(e,t),i={anova:{}},a=r.jMatYBar(e,o);i.yBar=a;var s=t.mean();i.anova.residuals=r.residuals(t,a),i.anova.ssr=r.ssr(a,s),i.anova.msr=i.anova.ssr/(e[0].length-1),i.anova.sse=r.sse(t,a),i.anova.mse=i.anova.sse/(t.length-(e[0].length-1)-1),i.anova.sst=r.sst(t,s),i.anova.mst=i.anova.sst/(t.length-1),i.anova.r2=1-i.anova.sse/i.anova.sst,i.anova.r2<0&&(i.anova.r2=0),i.anova.fratio=i.anova.msr/i.anova.mse,i.anova.pvalue=r.anovaftest(i.anova.fratio,e[0].length-1,t.length-(e[0].length-1)-1),i.anova.rmse=Math.sqrt(i.anova.mse),i.anova.r2adj=1-i.anova.mse/i.anova.mst,i.anova.r2adj<0&&(i.anova.r2adj=0),i.stats=new Array(e[0].length);for(var l,u,c,d=r.xtranspxinv(e),h=0;h<o.length;h++)l=Math.sqrt(i.anova.mse*Math.abs(d[h][h])),u=Math.abs(o[h]/l),c=r.ttest(u,t.length-e[0].length-1,n),i.stats[h]=[o[h],l,u,c];return i.regress=o,i},xtranspx:function(e){return r.matrixmult(e.transpose(),e)},xtranspxinv:function(e){var t=r.matrixmult(e.transpose(),e);return r.inv(t)},jMatYBar:function(e,t){var n=r.matrixmult(e,t);return new r(n)},residuals:function(e,t){return r.matrixsubtract(e,t)},ssr:function(e,t){for(var n=0,r=0;r<e.length;r++)n+=Math.pow(e[r]-t,2);return n},sse:function(e,t){for(var n=0,r=0;r<e.length;r++)n+=Math.pow(e[r]-t[r],2);return n},sst:function(e,t){for(var n=0,r=0;r<e.length;r++)n+=Math.pow(e[r]-t,2);return n},matrixsubtract:function(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++){n[o]=new Array(e[o].length);for(var i=0;i<e[o].length;i++)n[o][i]=e[o][i]-t[o][i]}return r(n)}}),r.jStat=r,r)},function(e,t,n){var r=n(86),o=n(80);t.UNIQUE=function(){for(var e=[],t=0;t<arguments.length;++t){for(var n=!1,r=arguments[t],o=0;o<e.length&&!(n=e[o]===r);++o);n||e.push(r)}return e},t.FLATTEN=r.flatten,t.ARGS2ARRAY=function(){return Array.prototype.slice.call(arguments,0)},t.REFERENCE=function(e,t){if(!arguments.length)return o.error;try{for(var n=t.split("."),r=e,i=0;i<n.length;++i){var a=n[i];if("]"===a[a.length-1]){var s=a.indexOf("["),l=a.substring(s+1,a.length-1);r=r[a.substring(0,s)][l]}else r=r[a]}return r}catch(e){}},t.JOIN=function(e,t){return e.join(t)},t.NUMBERS=function(){var e=r.flatten(arguments);return e.filter((function(e){return"number"==typeof e}))}},function(e,t,n){var r=n(80),o=n(464),i=n(223),a=n(86),s=n(797);function l(e){return/^[01]{1,10}$/.test(e)}t.BESSELI=function(e,t){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?r.value:s.besseli(e,t)},t.BESSELJ=function(e,t){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?r.value:s.besselj(e,t)},t.BESSELK=function(e,t){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?r.value:s.besselk(e,t)},t.BESSELY=function(e,t){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?r.value:s.bessely(e,t)},t.BIN2DEC=function(e){if(!l(e))return r.num;var t=parseInt(e,2),n=e.toString();return 10===n.length&&"1"===n.substring(0,1)?parseInt(n.substring(1),2)-512:t},t.BIN2HEX=function(e,t){if(!l(e))return r.num;var n=e.toString();if(10===n.length&&"1"===n.substring(0,1))return(0xfffffffe00+parseInt(n.substring(1),2)).toString(16);var o=parseInt(e,2).toString(16);return void 0===t?o:isNaN(t)?r.value:t<0?r.num:(t=Math.floor(t))>=o.length?i.REPT("0",t-o.length)+o:r.num},t.BIN2OCT=function(e,t){if(!l(e))return r.num;var n=e.toString();if(10===n.length&&"1"===n.substring(0,1))return(1073741312+parseInt(n.substring(1),2)).toString(8);var o=parseInt(e,2).toString(8);return void 0===t?o:isNaN(t)?r.value:t<0?r.num:(t=Math.floor(t))>=o.length?i.REPT("0",t-o.length)+o:r.num},t.BITAND=function(e,t){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?r.value:e<0||t<0||Math.floor(e)!==e||Math.floor(t)!==t||e>0xffffffffffff||t>0xffffffffffff?r.num:e&t},t.BITLSHIFT=function(e,t){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?r.value:e<0||Math.floor(e)!==e||e>0xffffffffffff||Math.abs(t)>53?r.num:t>=0?e<<t:e>>-t},t.BITOR=function(e,t){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?r.value:e<0||t<0||Math.floor(e)!==e||Math.floor(t)!==t||e>0xffffffffffff||t>0xffffffffffff?r.num:e|t},t.BITRSHIFT=function(e,t){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?r.value:e<0||Math.floor(e)!==e||e>0xffffffffffff||Math.abs(t)>53?r.num:t>=0?e>>t:e<<-t},t.BITXOR=function(e,t){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?r.value:e<0||t<0||Math.floor(e)!==e||Math.floor(t)!==t||e>0xffffffffffff||t>0xffffffffffff?r.num:e^t},t.COMPLEX=function(e,t,n){if(e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t))return e;if("i"!==(n=void 0===n?"i":n)&&"j"!==n)return r.value;if(0===e&&0===t)return 0;if(0===e)return 1===t?n:t.toString()+n;if(0===t)return e.toString();var o=t>0?"+":"";return e.toString()+o+(1===t?n:t.toString()+n)},t.CONVERT=function(e,t,n){if((e=a.parseNumber(e))instanceof Error)return e;for(var o,i=[["a.u. of action","?",null,"action",!1,!1,105457168181818e-48],["a.u. of charge","e",null,"electric_charge",!1,!1,160217653141414e-33],["a.u. of energy","Eh",null,"energy",!1,!1,435974417757576e-32],["a.u. of length","a?",null,"length",!1,!1,529177210818182e-25],["a.u. of mass","m?",null,"mass",!1,!1,910938261616162e-45],["a.u. of time","?/Eh",null,"time",!1,!1,241888432650516e-31],["admiralty knot","admkn",null,"speed",!1,!0,.514773333],["ampere","A",null,"electric_current",!0,!1,1],["ampere per meter","A/m",null,"magnetic_field_intensity",!0,!1,1],["ångström","Å",["ang"],"length",!1,!0,1e-10],["are","ar",null,"area",!1,!0,100],["astronomical unit","ua",null,"length",!1,!1,149597870691667e-25],["bar","bar",null,"pressure",!1,!1,1e5],["barn","b",null,"area",!1,!1,1e-28],["becquerel","Bq",null,"radioactivity",!0,!1,1],["bit","bit",["b"],"information",!1,!0,1],["btu","BTU",["btu"],"energy",!1,!0,1055.05585262],["byte","byte",null,"information",!1,!0,8],["candela","cd",null,"luminous_intensity",!0,!1,1],["candela per square metre","cd/m?",null,"luminance",!0,!1,1],["coulomb","C",null,"electric_charge",!0,!1,1],["cubic ångström","ang3",["ang^3"],"volume",!1,!0,1e-30],["cubic foot","ft3",["ft^3"],"volume",!1,!0,.028316846592],["cubic inch","in3",["in^3"],"volume",!1,!0,16387064e-12],["cubic light-year","ly3",["ly^3"],"volume",!1,!0,846786664623715e-61],["cubic metre","m?",null,"volume",!0,!0,1],["cubic mile","mi3",["mi^3"],"volume",!1,!0,4168181825.44058],["cubic nautical mile","Nmi3",["Nmi^3"],"volume",!1,!0,6352182208],["cubic Pica","Pica3",["Picapt3","Pica^3","Picapt^3"],"volume",!1,!0,7.58660370370369e-8],["cubic yard","yd3",["yd^3"],"volume",!1,!0,.764554857984],["cup","cup",null,"volume",!1,!0,.0002365882365],["dalton","Da",["u"],"mass",!1,!1,166053886282828e-41],["day","d",["day"],"time",!1,!0,86400],["degree","°",null,"angle",!1,!1,.0174532925199433],["degrees Rankine","Rank",null,"temperature",!1,!0,.555555555555556],["dyne","dyn",["dy"],"force",!1,!0,1e-5],["electronvolt","eV",["ev"],"energy",!1,!0,1.60217656514141],["ell","ell",null,"length",!1,!0,1.143],["erg","erg",["e"],"energy",!1,!0,1e-7],["farad","F",null,"electric_capacitance",!0,!1,1],["fluid ounce","oz",null,"volume",!1,!0,295735295625e-16],["foot","ft",null,"length",!1,!0,.3048],["foot-pound","flb",null,"energy",!1,!0,1.3558179483314],["gal","Gal",null,"acceleration",!1,!1,.01],["gallon","gal",null,"volume",!1,!0,.003785411784],["gauss","G",["ga"],"magnetic_flux_density",!1,!0,1],["grain","grain",null,"mass",!1,!0,647989e-10],["gram","g",null,"mass",!1,!0,.001],["gray","Gy",null,"absorbed_dose",!0,!1,1],["gross registered ton","GRT",["regton"],"volume",!1,!0,2.8316846592],["hectare","ha",null,"area",!1,!0,1e4],["henry","H",null,"inductance",!0,!1,1],["hertz","Hz",null,"frequency",!0,!1,1],["horsepower","HP",["h"],"power",!1,!0,745.69987158227],["horsepower-hour","HPh",["hh","hph"],"energy",!1,!0,2684519.538],["hour","h",["hr"],"time",!1,!0,3600],["imperial gallon (U.K.)","uk_gal",null,"volume",!1,!0,.00454609],["imperial hundredweight","lcwt",["uk_cwt","hweight"],"mass",!1,!0,50.802345],["imperial quart (U.K)","uk_qt",null,"volume",!1,!0,.0011365225],["imperial ton","brton",["uk_ton","LTON"],"mass",!1,!0,1016.046909],["inch","in",null,"length",!1,!0,.0254],["international acre","uk_acre",null,"area",!1,!0,4046.8564224],["IT calorie","cal",null,"energy",!1,!0,4.1868],["joule","J",null,"energy",!0,!0,1],["katal","kat",null,"catalytic_activity",!0,!1,1],["kelvin","K",["kel"],"temperature",!0,!0,1],["kilogram","kg",null,"mass",!0,!0,1],["knot","kn",null,"speed",!1,!0,.514444444444444],["light-year","ly",null,"length",!1,!0,9460730472580800],["litre","L",["l","lt"],"volume",!1,!0,.001],["lumen","lm",null,"luminous_flux",!0,!1,1],["lux","lx",null,"illuminance",!0,!1,1],["maxwell","Mx",null,"magnetic_flux",!1,!1,1e-18],["measurement ton","MTON",null,"volume",!1,!0,1.13267386368],["meter per hour","m/h",["m/hr"],"speed",!1,!0,.00027777777777778],["meter per second","m/s",["m/sec"],"speed",!0,!0,1],["meter per second squared","m?s??",null,"acceleration",!0,!1,1],["parsec","pc",["parsec"],"length",!1,!0,0x6da012f958ee1c],["meter squared per second","m?/s",null,"kinematic_viscosity",!0,!1,1],["metre","m",null,"length",!0,!0,1],["miles per hour","mph",null,"speed",!1,!0,.44704],["millimetre of mercury","mmHg",null,"pressure",!1,!1,133.322],["minute","?",null,"angle",!1,!1,.000290888208665722],["minute","min",["mn"],"time",!1,!0,60],["modern teaspoon","tspm",null,"volume",!1,!0,5e-6],["mole","mol",null,"amount_of_substance",!0,!1,1],["morgen","Morgen",null,"area",!1,!0,2500],["n.u. of action","?",null,"action",!1,!1,105457168181818e-48],["n.u. of mass","m?",null,"mass",!1,!1,910938261616162e-45],["n.u. of speed","c?",null,"speed",!1,!1,299792458],["n.u. of time","?/(me?c??)",null,"time",!1,!1,128808866778687e-35],["nautical mile","M",["Nmi"],"length",!1,!0,1852],["newton","N",null,"force",!0,!0,1],["œrsted","Oe ",null,"magnetic_field_intensity",!1,!1,79.5774715459477],["ohm","Ω",null,"electric_resistance",!0,!1,1],["ounce mass","ozm",null,"mass",!1,!0,.028349523125],["pascal","Pa",null,"pressure",!0,!1,1],["pascal second","Pa?s",null,"dynamic_viscosity",!0,!1,1],["pferdestärke","PS",null,"power",!1,!0,735.49875],["phot","ph",null,"illuminance",!1,!1,1e-4],["pica (1/6 inch)","pica",null,"length",!1,!0,.00035277777777778],["pica (1/72 inch)","Pica",["Picapt"],"length",!1,!0,.00423333333333333],["poise","P",null,"dynamic_viscosity",!1,!1,.1],["pond","pond",null,"force",!1,!0,.00980665],["pound force","lbf",null,"force",!1,!0,4.4482216152605],["pound mass","lbm",null,"mass",!1,!0,.45359237],["quart","qt",null,"volume",!1,!0,.000946352946],["radian","rad",null,"angle",!0,!1,1],["second","?",null,"angle",!1,!1,484813681109536e-20],["second","s",["sec"],"time",!0,!0,1],["short hundredweight","cwt",["shweight"],"mass",!1,!0,45.359237],["siemens","S",null,"electrical_conductance",!0,!1,1],["sievert","Sv",null,"equivalent_dose",!0,!1,1],["slug","sg",null,"mass",!1,!0,14.59390294],["square ångström","ang2",["ang^2"],"area",!1,!0,1e-20],["square foot","ft2",["ft^2"],"area",!1,!0,.09290304],["square inch","in2",["in^2"],"area",!1,!0,64516e-8],["square light-year","ly2",["ly^2"],"area",!1,!0,895054210748189e17],["square meter","m?",null,"area",!0,!0,1],["square mile","mi2",["mi^2"],"area",!1,!0,2589988.110336],["square nautical mile","Nmi2",["Nmi^2"],"area",!1,!0,3429904],["square Pica","Pica2",["Picapt2","Pica^2","Picapt^2"],"area",!1,!0,1792111111111e-17],["square yard","yd2",["yd^2"],"area",!1,!0,.83612736],["statute mile","mi",null,"length",!1,!0,1609.344],["steradian","sr",null,"solid_angle",!0,!1,1],["stilb","sb",null,"luminance",!1,!1,1e-4],["stokes","St",null,"kinematic_viscosity",!1,!1,1e-4],["stone","stone",null,"mass",!1,!0,6.35029318],["tablespoon","tbs",null,"volume",!1,!0,147868e-10],["teaspoon","tsp",null,"volume",!1,!0,492892e-11],["tesla","T",null,"magnetic_flux_density",!0,!0,1],["thermodynamic calorie","c",null,"energy",!1,!0,4.184],["ton","ton",null,"mass",!1,!0,907.18474],["tonne","t",null,"mass",!1,!1,1e3],["U.K. pint","uk_pt",null,"volume",!1,!0,.00056826125],["U.S. bushel","bushel",null,"volume",!1,!0,.03523907],["U.S. oil barrel","barrel",null,"volume",!1,!0,.158987295],["U.S. pint","pt",["us_pt"],"volume",!1,!0,.000473176473],["U.S. survey mile","survey_mi",null,"length",!1,!0,1609.347219],["U.S. survey/statute acre","us_acre",null,"area",!1,!0,4046.87261],["volt","V",null,"voltage",!0,!1,1],["watt","W",null,"power",!0,!0,1],["watt-hour","Wh",["wh"],"energy",!1,!0,3600],["weber","Wb",null,"magnetic_flux",!0,!1,1],["yard","yd",null,"length",!1,!0,.9144],["year","yr",null,"time",!1,!0,31557600]],s={Yi:["yobi",80,12089258196146292e8,"Yi","yotta"],Zi:["zebi",70,11805916207174113e5,"Zi","zetta"],Ei:["exbi",60,0x1000000000000000,"Ei","exa"],Pi:["pebi",50,0x4000000000000,"Pi","peta"],Ti:["tebi",40,1099511627776,"Ti","tera"],Gi:["gibi",30,1073741824,"Gi","giga"],Mi:["mebi",20,1048576,"Mi","mega"],ki:["kibi",10,1024,"ki","kilo"]},l={Y:["yotta",1e24,"Y"],Z:["zetta",1e21,"Z"],E:["exa",1e18,"E"],P:["peta",1e15,"P"],T:["tera",1e12,"T"],G:["giga",1e9,"G"],M:["mega",1e6,"M"],k:["kilo",1e3,"k"],h:["hecto",100,"h"],e:["dekao",10,"e"],d:["deci",.1,"d"],c:["centi",.01,"c"],m:["milli",.001,"m"],u:["micro",1e-6,"u"],n:["nano",1e-9,"n"],p:["pico",1e-12,"p"],f:["femto",1e-15,"f"],a:["atto",1e-18,"a"],z:["zepto",1e-21,"z"],y:["yocto",1e-24,"y"]},u=null,c=null,d=t,h=n,f=1,v=1,p=0;p<i.length;p++)o=null===i[p][2]?[]:i[p][2],(i[p][1]===d||o.indexOf(d)>=0)&&(u=i[p]),(i[p][1]===h||o.indexOf(h)>=0)&&(c=i[p]);if(null===u){var g=s[t.substring(0,2)],m=l[t.substring(0,1)];"da"===t.substring(0,2)&&(m=["dekao",10,"da"]),g?(f=g[2],d=t.substring(2)):m&&(f=m[1],d=t.substring(m[2].length));for(var y=0;y<i.length;y++)o=null===i[y][2]?[]:i[y][2],(i[y][1]===d||o.indexOf(d)>=0)&&(u=i[y])}if(null===c){var E=s[n.substring(0,2)],w=l[n.substring(0,1)];"da"===n.substring(0,2)&&(w=["dekao",10,"da"]),E?(v=E[2],h=n.substring(2)):w&&(v=w[1],h=n.substring(w[2].length));for(var C=0;C<i.length;C++)o=null===i[C][2]?[]:i[C][2],(i[C][1]===h||o.indexOf(h)>=0)&&(c=i[C])}return null===u||null===c||u[3]!==c[3]?r.na:e*u[6]*f/(c[6]*v)},t.DEC2BIN=function(e,t){if((e=a.parseNumber(e))instanceof Error)return e;if(!/^-?[0-9]{1,3}$/.test(e)||e<-512||e>511)return r.num;if(e<0)return"1"+i.REPT("0",9-(512+e).toString(2).length)+(512+e).toString(2);var n=parseInt(e,10).toString(2);return void 0===t?n:isNaN(t)?r.value:t<0?r.num:(t=Math.floor(t))>=n.length?i.REPT("0",t-n.length)+n:r.num},t.DEC2HEX=function(e,t){if((e=a.parseNumber(e))instanceof Error)return e;if(!/^-?[0-9]{1,12}$/.test(e)||e<-549755813888||e>549755813887)return r.num;if(e<0)return(1099511627776+e).toString(16);var n=parseInt(e,10).toString(16);return void 0===t?n:isNaN(t)?r.value:t<0?r.num:(t=Math.floor(t))>=n.length?i.REPT("0",t-n.length)+n:r.num},t.DEC2OCT=function(e,t){if((e=a.parseNumber(e))instanceof Error)return e;if(!/^-?[0-9]{1,9}$/.test(e)||e<-536870912||e>536870911)return r.num;if(e<0)return(1073741824+e).toString(8);var n=parseInt(e,10).toString(8);return void 0===t?n:isNaN(t)?r.value:t<0?r.num:(t=Math.floor(t))>=n.length?i.REPT("0",t-n.length)+n:r.num},t.DELTA=function(e,t){return t=void 0===t?0:t,e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?r.value:e===t?1:0},t.ERF=function(e,t){return t=void 0===t?0:t,e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?r.value:o.erf(e)},t.ERF.PRECISE=function(){throw new Error("ERF.PRECISE is not implemented")},t.ERFC=function(e){return isNaN(e)?r.value:o.erfc(e)},t.ERFC.PRECISE=function(){throw new Error("ERFC.PRECISE is not implemented")},t.GESTEP=function(e,t){return t=t||0,e=a.parseNumber(e),a.anyIsError(t,e)?e:e>=t?1:0},t.HEX2BIN=function(e,t){if(!/^[0-9A-Fa-f]{1,10}$/.test(e))return r.num;var n=10===e.length&&"f"===e.substring(0,1).toLowerCase(),o=n?parseInt(e,16)-1099511627776:parseInt(e,16);if(o<-512||o>511)return r.num;if(n)return"1"+i.REPT("0",9-(512+o).toString(2).length)+(512+o).toString(2);var a=o.toString(2);return void 0===t?a:isNaN(t)?r.value:t<0?r.num:(t=Math.floor(t))>=a.length?i.REPT("0",t-a.length)+a:r.num},t.HEX2DEC=function(e){if(!/^[0-9A-Fa-f]{1,10}$/.test(e))return r.num;var t=parseInt(e,16);return t>=549755813888?t-1099511627776:t},t.HEX2OCT=function(e,t){if(!/^[0-9A-Fa-f]{1,10}$/.test(e))return r.num;var n=parseInt(e,16);if(n>536870911&&n<0xffe0000000)return r.num;if(n>=0xffe0000000)return(n-0xffc0000000).toString(8);var o=n.toString(8);return void 0===t?o:isNaN(t)?r.value:t<0?r.num:(t=Math.floor(t))>=o.length?i.REPT("0",t-o.length)+o:r.num},t.IMABS=function(e){var n=t.IMREAL(e),o=t.IMAGINARY(e);return a.anyIsError(n,o)?r.value:Math.sqrt(Math.pow(n,2)+Math.pow(o,2))},t.IMAGINARY=function(e){if(void 0===e||!0===e||!1===e)return r.value;if(0===e||"0"===e)return 0;if(["i","j"].indexOf(e)>=0)return 1;var t=(e=e.replace("+i","+1i").replace("-i","-1i").replace("+j","+1j").replace("-j","-1j")).indexOf("+"),n=e.indexOf("-");0===t&&(t=e.indexOf("+",1)),0===n&&(n=e.indexOf("-",1));var o=e.substring(e.length-1,e.length),i="i"===o||"j"===o;return t>=0||n>=0?i?t>=0?isNaN(e.substring(0,t))||isNaN(e.substring(t+1,e.length-1))?r.num:Number(e.substring(t+1,e.length-1)):isNaN(e.substring(0,n))||isNaN(e.substring(n+1,e.length-1))?r.num:-Number(e.substring(n+1,e.length-1)):r.num:i?isNaN(e.substring(0,e.length-1))?r.num:e.substring(0,e.length-1):isNaN(e)?r.num:0},t.IMARGUMENT=function(e){var n=t.IMREAL(e),o=t.IMAGINARY(e);return a.anyIsError(n,o)?r.value:0===n&&0===o?r.div0:0===n&&o>0?Math.PI/2:0===n&&o<0?-Math.PI/2:0===o&&n>0?0:0===o&&n<0?-Math.PI:n>0?Math.atan(o/n):n<0&&o>=0?Math.atan(o/n)+Math.PI:Math.atan(o/n)-Math.PI},t.IMCONJUGATE=function(e){var n=t.IMREAL(e),o=t.IMAGINARY(e);if(a.anyIsError(n,o))return r.value;var i=e.substring(e.length-1);return i="i"===i||"j"===i?i:"i",0!==o?t.COMPLEX(n,-o,i):e},t.IMCOS=function(e){var n=t.IMREAL(e),o=t.IMAGINARY(e);if(a.anyIsError(n,o))return r.value;var i=e.substring(e.length-1);return i="i"===i||"j"===i?i:"i",t.COMPLEX(Math.cos(n)*(Math.exp(o)+Math.exp(-o))/2,-Math.sin(n)*(Math.exp(o)-Math.exp(-o))/2,i)},t.IMCOSH=function(e){var n=t.IMREAL(e),o=t.IMAGINARY(e);if(a.anyIsError(n,o))return r.value;var i=e.substring(e.length-1);return i="i"===i||"j"===i?i:"i",t.COMPLEX(Math.cos(o)*(Math.exp(n)+Math.exp(-n))/2,Math.sin(o)*(Math.exp(n)-Math.exp(-n))/2,i)},t.IMCOT=function(e){var n=t.IMREAL(e),o=t.IMAGINARY(e);return a.anyIsError(n,o)?r.value:t.IMDIV(t.IMCOS(e),t.IMSIN(e))},t.IMDIV=function(e,n){var o=t.IMREAL(e),i=t.IMAGINARY(e),s=t.IMREAL(n),l=t.IMAGINARY(n);if(a.anyIsError(o,i,s,l))return r.value;var u=e.substring(e.length-1),c=n.substring(n.length-1),d="i";if(("j"===u||"j"===c)&&(d="j"),0===s&&0===l)return r.num;var h=s*s+l*l;return t.COMPLEX((o*s+i*l)/h,(i*s-o*l)/h,d)},t.IMEXP=function(e){var n=t.IMREAL(e),o=t.IMAGINARY(e);if(a.anyIsError(n,o))return r.value;var i=e.substring(e.length-1);i="i"===i||"j"===i?i:"i";var s=Math.exp(n);return t.COMPLEX(s*Math.cos(o),s*Math.sin(o),i)},t.IMLN=function(e){var n=t.IMREAL(e),o=t.IMAGINARY(e);if(a.anyIsError(n,o))return r.value;var i=e.substring(e.length-1);return i="i"===i||"j"===i?i:"i",t.COMPLEX(Math.log(Math.sqrt(n*n+o*o)),Math.atan(o/n),i)},t.IMLOG10=function(e){var n=t.IMREAL(e),o=t.IMAGINARY(e);if(a.anyIsError(n,o))return r.value;var i=e.substring(e.length-1);return i="i"===i||"j"===i?i:"i",t.COMPLEX(Math.log(Math.sqrt(n*n+o*o))/Math.log(10),Math.atan(o/n)/Math.log(10),i)},t.IMLOG2=function(e){var n=t.IMREAL(e),o=t.IMAGINARY(e);if(a.anyIsError(n,o))return r.value;var i=e.substring(e.length-1);return i="i"===i||"j"===i?i:"i",t.COMPLEX(Math.log(Math.sqrt(n*n+o*o))/Math.log(2),Math.atan(o/n)/Math.log(2),i)},t.IMPOWER=function(e,n){n=a.parseNumber(n);var o=t.IMREAL(e),i=t.IMAGINARY(e);if(a.anyIsError(n,o,i))return r.value;var s=e.substring(e.length-1);s="i"===s||"j"===s?s:"i";var l=Math.pow(t.IMABS(e),n),u=t.IMARGUMENT(e);return t.COMPLEX(l*Math.cos(n*u),l*Math.sin(n*u),s)},t.IMPRODUCT=function(){var e=arguments[0];if(!arguments.length)return r.value;for(var n=1;n<arguments.length;n++){var o=t.IMREAL(e),i=t.IMAGINARY(e),s=t.IMREAL(arguments[n]),l=t.IMAGINARY(arguments[n]);if(a.anyIsError(o,i,s,l))return r.value;e=t.COMPLEX(o*s-i*l,o*l+i*s)}return e},t.IMREAL=function(e){if(void 0===e||!0===e||!1===e)return r.value;if(0===e||"0"===e)return 0;if(["i","+i","1i","+1i","-i","-1i","j","+j","1j","+1j","-j","-1j"].indexOf(e)>=0)return 0;var t=e.indexOf("+"),n=e.indexOf("-");0===t&&(t=e.indexOf("+",1)),0===n&&(n=e.indexOf("-",1));var o=e.substring(e.length-1,e.length),i="i"===o||"j"===o;return t>=0||n>=0?i?t>=0?isNaN(e.substring(0,t))||isNaN(e.substring(t+1,e.length-1))?r.num:Number(e.substring(0,t)):isNaN(e.substring(0,n))||isNaN(e.substring(n+1,e.length-1))?r.num:Number(e.substring(0,n)):r.num:i?isNaN(e.substring(0,e.length-1))?r.num:0:isNaN(e)?r.num:e},t.IMSEC=function(e){if(!0===e||!1===e)return r.value;var n=t.IMREAL(e),o=t.IMAGINARY(e);return a.anyIsError(n,o)?r.value:t.IMDIV("1",t.IMCOS(e))},t.IMSECH=function(e){var n=t.IMREAL(e),o=t.IMAGINARY(e);return a.anyIsError(n,o)?r.value:t.IMDIV("1",t.IMCOSH(e))},t.IMSIN=function(e){var n=t.IMREAL(e),o=t.IMAGINARY(e);if(a.anyIsError(n,o))return r.value;var i=e.substring(e.length-1);return i="i"===i||"j"===i?i:"i",t.COMPLEX(Math.sin(n)*(Math.exp(o)+Math.exp(-o))/2,Math.cos(n)*(Math.exp(o)-Math.exp(-o))/2,i)},t.IMSINH=function(e){var n=t.IMREAL(e),o=t.IMAGINARY(e);if(a.anyIsError(n,o))return r.value;var i=e.substring(e.length-1);return i="i"===i||"j"===i?i:"i",t.COMPLEX(Math.cos(o)*(Math.exp(n)-Math.exp(-n))/2,Math.sin(o)*(Math.exp(n)+Math.exp(-n))/2,i)},t.IMSQRT=function(e){var n=t.IMREAL(e),o=t.IMAGINARY(e);if(a.anyIsError(n,o))return r.value;var i=e.substring(e.length-1);i="i"===i||"j"===i?i:"i";var s=Math.sqrt(t.IMABS(e)),l=t.IMARGUMENT(e);return t.COMPLEX(s*Math.cos(l/2),s*Math.sin(l/2),i)},t.IMCSC=function(e){if(!0===e||!1===e)return r.value;var n=t.IMREAL(e),o=t.IMAGINARY(e);return a.anyIsError(n,o)?r.num:t.IMDIV("1",t.IMSIN(e))},t.IMCSCH=function(e){if(!0===e||!1===e)return r.value;var n=t.IMREAL(e),o=t.IMAGINARY(e);return a.anyIsError(n,o)?r.num:t.IMDIV("1",t.IMSINH(e))},t.IMSUB=function(e,t){var n=this.IMREAL(e),o=this.IMAGINARY(e),i=this.IMREAL(t),s=this.IMAGINARY(t);if(a.anyIsError(n,o,i,s))return r.value;var l=e.substring(e.length-1),u=t.substring(t.length-1),c="i";return("j"===l||"j"===u)&&(c="j"),this.COMPLEX(n-i,o-s,c)},t.IMSUM=function(){if(!arguments.length)return r.value;for(var e=a.flatten(arguments),t=e[0],n=1;n<e.length;n++){var o=this.IMREAL(t),i=this.IMAGINARY(t),s=this.IMREAL(e[n]),l=this.IMAGINARY(e[n]);if(a.anyIsError(o,i,s,l))return r.value;t=this.COMPLEX(o+s,i+l)}return t},t.IMTAN=function(e){if(!0===e||!1===e)return r.value;var n=t.IMREAL(e),o=t.IMAGINARY(e);return a.anyIsError(n,o)?r.value:this.IMDIV(this.IMSIN(e),this.IMCOS(e))},t.OCT2BIN=function(e,t){if(!/^[0-7]{1,10}$/.test(e))return r.num;var n=10===e.length&&"7"===e.substring(0,1),o=n?parseInt(e,8)-1073741824:parseInt(e,8);if(o<-512||o>511)return r.num;if(n)return"1"+i.REPT("0",9-(512+o).toString(2).length)+(512+o).toString(2);var a=o.toString(2);return void 0===t?a:isNaN(t)?r.value:t<0?r.num:(t=Math.floor(t))>=a.length?i.REPT("0",t-a.length)+a:r.num},t.OCT2DEC=function(e){if(!/^[0-7]{1,10}$/.test(e))return r.num;var t=parseInt(e,8);return t>=536870912?t-1073741824:t},t.OCT2HEX=function(e,t){if(!/^[0-7]{1,10}$/.test(e))return r.num;var n=parseInt(e,8);if(n>=536870912)return"ff"+(n+3221225472).toString(16);var o=n.toString(16);return void 0===t?o:isNaN(t)?r.value:t<0?r.num:(t=Math.floor(t))>=o.length?i.REPT("0",t-o.length)+o:r.num}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=r(n(2)),a=n(145),s=n(5),l=function(){function e(t,n){(0,o.default)(this,e);var r=(0,s.isObject)(t),i=(0,s.isObject)(n);this._row=r?t.index:t,this.rowAbsolute=!r||t.isAbsolute,this._column=i?n.index:n,this.columnAbsolute=!i||n.isAbsolute,this.rowOffset=0,this.columnOffset=0,Object.defineProperty(this,"row",{get:function(){return this.rowOffset+this._row},set:function(e){this._row=e},enumerable:!0,configurable:!0}),Object.defineProperty(this,"column",{get:function(){return this.columnOffset+this._column},set:function(e){this._column=e},enumerable:!0,configurable:!0})}return(0,i.default)(e,[{key:"translateTo",value:function(e,t){this.row=this.row+e,this.column=this.column+t}},{key:"isEqual",value:function(e){return e.row===this.row&&e.column===this.column}},{key:"toString",value:function(){return(0,a.toLabel)({index:this.row,isAbsolute:this.rowAbsolute},{index:this.column,isAbsolute:this.columnAbsolute})}}]),e}();t.default=l},function(e,t,n){"use strict";t.__esModule=!0,t.createDefaultHeaderSettings=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.label,n=void 0===t?"":t,r=e.colspan,o=void 0===r?1:r,i=e.origColspan,a=void 0===i?1:i,s=e.collapsible,l=void 0!==s&&s,u=e.crossHiddenColumns,c=void 0===u?[]:u,d=e.isCollapsed,h=void 0!==d&&d,f=e.isHidden,v=void 0!==f&&f,p=e.isRoot,g=void 0!==p&&p,m=e.isPlaceholder,y=void 0!==m&&m;return{label:n,colspan:o,origColspan:a,collapsible:l,isCollapsed:h,crossHiddenColumns:c,isHidden:v,isRoot:g,isPlaceholder:y}},t.createPlaceholderHeaderSettings=function(){return{label:"",isPlaceholder:!0}}},function(e,t,n){"use strict";t.__esModule=!0,t.collapseNode=function e(t){var n,a=t.data,s=t.childs;if(a.isCollapsed||a.isHidden||a.origColspan<=1)return{rollbackModification:function(){},affectedColumns:[],colspanCompensation:0};if((0,i.isNodeReflectsFirstChildColspan)(t))return e(s[0]);a.isCollapsed=!0;var l=s.slice(1),u=new Set;if(l.length>0)(0,r.arrayEach)(l,(function(e){(0,i.traverseHiddenNodeColumnIndexes)(e,(function(e){u.add(e)})),e.data.clonedTree=e.cloneTree(),e.walkDown((function(e){e.data.isHidden=!0}))}));else for(var c=a.origColspan,d=a.columnIndex,h=1;h<c;h++){var f=d+h;u.add(f)}var v=a.colspan-(null!==(n=(0,i.getFirstChildProperty)(t,"colspan"))&&void 0!==n?n:1);return t.walkUp((function(e){var t=e.data;t.colspan-=v,t.colspan<=1?(t.colspan=1,t.isCollapsed=!0):(0,i.isNodeReflectsFirstChildColspan)(e)&&(t.isCollapsed=(0,i.getFirstChildProperty)(e,"isCollapsed"))})),{rollbackModification:function(){return(0,o.expandNode)(t)},affectedColumns:Array.from(u),colspanCompensation:v}},n(33),n(12),n(9),n(62),n(11),n(13),n(43);var r=n(3),o=n(470),i=n(471)},function(e,t,n){"use strict";t.__esModule=!0,t.expandNode=function e(t){var n=t.data,a=t.childs;if(!n.isCollapsed||n.isHidden||n.origColspan<=1)return{rollbackModification:function(){},affectedColumns:[],colspanCompensation:0};if((0,i.isNodeReflectsFirstChildColspan)(t))return e(a[0]);n.isCollapsed=!1;var s=a.slice(1),l=new Set,u=0;if(s.length>0)(0,r.arrayEach)(s,(function(e){e.replaceTreeWith(e.data.clonedTree),e.data.clonedTree=null;var t=e.data;u+=t.colspan,(0,i.traverseHiddenNodeColumnIndexes)(e,(function(e){l.add(e)}))}));else{var c=n.colspan,d=n.origColspan,h=n.columnIndex;u=d-c;for(var f=1;f<d;f++)l.add(h+f)}return t.walkUp((function(e){var t=e.data;t.colspan+=u,t.colspan>=t.origColspan?(t.colspan=t.origColspan,t.isCollapsed=!1):(0,i.isNodeReflectsFirstChildColspan)(e)&&(t.isCollapsed=(0,i.getFirstChildProperty)(e,"isCollapsed"))})),{rollbackModification:function(){return(0,o.collapseNode)(t)},affectedColumns:Array.from(l),colspanCompensation:u}},n(33),n(12),n(9),n(62),n(11),n(13),n(43);var r=n(3),o=n(469),i=n(471)},function(e,t,n){"use strict";function r(e,t){var n=e.childs;if(0!==n.length)return n[0].data[t]}t.__esModule=!0,t.traverseHiddenNodeColumnIndexes=function(e,t){e.walkDown((function(e){var n=e.data,r=e.childs;if(!n.isHidden&&(t(n.columnIndex),0===r.length))for(var o=1;o<n.colspan;o++)t(n.columnIndex+o)}))},t.getFirstChildProperty=r,t.isNodeReflectsFirstChildColspan=function(e){return r(e,"origColspan")===e.data.origColspan}},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.default=void 0,n(19);var o=r(n(1)),i=r(n(2)),a=r(n(7)),s=r(n(8)),l=r(n(4)),u=n(3),c=n(24),d=n(10);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var f=function(e){(0,a.default)(n,e);var t=h(n);function n(e,r){var i;return(0,o.default)(this,n),(i=t.call(this,e,r)).dataManager=i.plugin.dataManager,i.collapsingUI=i.plugin.collapsingUI,i.rowHeaderWidthCache=null,i}return(0,i.default)(n,[{key:"appendLevelIndicators",value:function(e,t){var r=this.hot.toPhysicalRow(e),o=this.dataManager.getRowLevel(r),i=this.dataManager.getDataObject(r),a=t.getElementsByTagName("DIV")[0],s=a.querySelector("span.rowHeader"),l=a.querySelectorAll('[class^="ht_nesting"]');if((0,u.arrayEach)(l,(function(e){e&&a.removeChild(e)})),(0,d.addClass)(t,n.CSS_CLASSES.indicatorContainer),o){var h=this.hot.rootDocument,f=s.cloneNode(!0);a.innerHTML="",(0,c.rangeEach)(0,o-1,(function(){var e=h.createElement("SPAN");(0,d.addClass)(e,n.CSS_CLASSES.emptyIndicator),a.appendChild(e)})),a.appendChild(f)}if(this.dataManager.hasChildren(i)){var v=this.hot.rootDocument.createElement("DIV");(0,d.addClass)(t,n.CSS_CLASSES.parent),this.collapsingUI.areChildrenCollapsed(r)?(0,d.addClass)(v,"".concat(n.CSS_CLASSES.button," ").concat(n.CSS_CLASSES.expandButton)):(0,d.addClass)(v,"".concat(n.CSS_CLASSES.button," ").concat(n.CSS_CLASSES.collapseButton)),a.appendChild(v)}}},{key:"updateRowHeaderWidth",value:function(e){var t=e;t||(t=this.dataManager.cache.levelCount),this.rowHeaderWidthCache=Math.max(50,11+10*t+25),this.hot.render()}}],[{key:"CSS_CLASSES",get:function(){return{indicatorContainer:"ht_nestingLevels",parent:"ht_nestingParent",indicator:"ht_nestingLevel",emptyIndicator:"ht_nestingLevel_empty",button:"ht_nestingButton",expandButton:"ht_nestingExpand",collapseButton:"ht_nestingCollapse"}}}]),n}(r(n(228)).default);t.default=f},function(e,t,n){"use strict";var r=n(14),o=n(0);t.__esModule=!0,t.default=void 0,n(474);var i=o(n(475)),a=r(n(31)),s=n(54),l=o(n(48)),u=n(424),c=o(n(583)),d=o(n(211)),h=r(n(202)),f=r(n(3)),v=r(n(84)),p=r(n(136)),g=r(n(429)),m=r(n(97)),y=r(n(53)),E=r(n(20)),w=r(n(24)),C=r(n(5)),R=r(n(75)),T=r(n(70)),b=r(n(10)),S=r(n(45)),O=n(584),_=n(596),I=n(604),M=n(610),N=n(627);(0,O.registerEditor)(O.BaseEditor),(0,O.registerEditor)(O.AutocompleteEditor),(0,O.registerEditor)(O.CheckboxEditor),(0,O.registerEditor)(O.DateEditor),(0,O.registerEditor)(O.DropdownEditor),(0,O.registerEditor)(O.HandsontableEditor),(0,O.registerEditor)(O.NumericEditor),(0,O.registerEditor)(O.PasswordEditor),(0,O.registerEditor)(O.SelectEditor),(0,O.registerEditor)(O.TextEditor),(0,_.registerRenderer)(_.baseRenderer),(0,_.registerRenderer)(_.autocompleteRenderer),(0,_.registerRenderer)(_.checkboxRenderer),(0,_.registerRenderer)(_.htmlRenderer),(0,_.registerRenderer)(_.numericRenderer),(0,_.registerRenderer)(_.passwordRenderer),(0,_.registerRenderer)(_.textRenderer),(0,I.registerValidator)(I.autocompleteValidator),(0,I.registerValidator)(I.dateValidator),(0,I.registerValidator)(I.numericValidator),(0,I.registerValidator)(I.timeValidator),(0,M.registerCellType)(M.AutocompleteCellType),(0,M.registerCellType)(M.CheckboxCellType),(0,M.registerCellType)(M.DateCellType),(0,M.registerCellType)(M.DropdownCellType),(0,M.registerCellType)(M.HandsontableCellType),(0,M.registerCellType)(M.NumericCellType),(0,M.registerCellType)(M.PasswordCellType),(0,M.registerCellType)(M.TimeCellType),(0,M.registerCellType)(M.TextCellType),(0,c.default)(i.default),(0,N.registerPlugin)(N.AutoColumnSize),(0,N.registerPlugin)(N.Autofill),(0,N.registerPlugin)(N.AutoRowSize),(0,N.registerPlugin)(N.BindRowsWithHeaders),(0,N.registerPlugin)(N.CollapsibleColumns),(0,N.registerPlugin)(N.ColumnSorting),(0,N.registerPlugin)(N.ColumnSummary),(0,N.registerPlugin)(N.Comments),(0,N.registerPlugin)(N.ContextMenu),(0,N.registerPlugin)(N.CopyPaste),(0,N.registerPlugin)(N.CustomBorders),(0,N.registerPlugin)(N.DragToScroll),(0,N.registerPlugin)(N.DropdownMenu),(0,N.registerPlugin)(N.ExportFile),(0,N.registerPlugin)(N.Filters),(0,N.registerPlugin)(N.Formulas),(0,N.registerPlugin)(N.HeaderTooltips),(0,N.registerPlugin)(N.HiddenColumns),(0,N.registerPlugin)(N.HiddenRows),(0,N.registerPlugin)(N.ManualColumnFreeze),(0,N.registerPlugin)(N.ManualColumnMove),(0,N.registerPlugin)(N.ManualColumnResize),(0,N.registerPlugin)(N.ManualRowMove),(0,N.registerPlugin)(N.ManualRowResize),(0,N.registerPlugin)(N.MergeCells),(0,N.registerPlugin)(N.MultiColumnSorting),(0,N.registerPlugin)(N.MultipleSelectionHandles),(0,N.registerPlugin)(N.NestedHeaders),(0,N.registerPlugin)(N.NestedRows),(0,N.registerPlugin)(N.ObserveChanges),(0,N.registerPlugin)(N.PersistentState),(0,N.registerPlugin)(N.Search),(0,N.registerPlugin)(N.TouchScroll),(0,N.registerPlugin)(N.TrimRows),(0,N.registerPlugin)(N.UndoRedo),i.default.__GhostTable=d.default,i.default._getListenersCounter=a.getListenersCounter,i.default._getRegisteredMapsCounter=s.getRegisteredMapsCounter,i.default.DefaultSettings=(0,u.metaSchemaFactory)(),i.default.EventManager=a.default,i.default.hooks=l.default.getSingleton();var k=[f,v,p,g,m,y,E,w,C,R,T,h],A=[b,S];i.default.helper={},i.default.dom={},f.arrayEach(k,(function(e){f.arrayEach(Object.getOwnPropertyNames(e),(function(t){"_"!==t.charAt(0)&&(i.default.helper[t]=e[t])}))})),f.arrayEach(A,(function(e){f.arrayEach(Object.getOwnPropertyNames(e),(function(t){"_"!==t.charAt(0)&&(i.default.dom[t]=e[t])}))})),i.default.cellTypes={},f.arrayEach((0,M.getRegisteredCellTypeNames)(),(function(e){i.default.cellTypes[e]=(0,M.getCellType)(e)})),i.default.cellTypes.registerCellType=M.registerCellType,i.default.cellTypes.getCellType=M.getCellType,i.default.editors={},f.arrayEach((0,O.getRegisteredEditorNames)(),(function(e){i.default.editors["".concat(R.toUpperCaseFirst(e),"Editor")]=(0,O.getEditor)(e)})),i.default.editors.registerEditor=O.registerEditor,i.default.editors.getEditor=O.getEditor,i.default.renderers={},f.arrayEach((0,_.getRegisteredRendererNames)(),(function(e){var t=(0,_.getRenderer)(e);"base"===e&&(i.default.renderers.cellDecorator=t),i.default.renderers["".concat(R.toUpperCaseFirst(e),"Renderer")]=t})),i.default.renderers.registerRenderer=_.registerRenderer,i.default.renderers.getRenderer=_.getRenderer,i.default.validators={},f.arrayEach((0,I.getRegisteredValidatorNames)(),(function(e){i.default.validators["".concat(R.toUpperCaseFirst(e),"Validator")]=(0,I.getValidator)(e)})),i.default.validators.registerValidator=I.registerValidator,i.default.validators.getValidator=I.getValidator,i.default.plugins={},f.arrayEach((0,N.getPluginsNames)(),(function(e){i.default.plugins[e]=(0,N.getPlugin)(e)})),i.default.plugins["".concat(R.toUpperCaseFirst(N.BasePlugin.PLUGIN_KEY),"Plugin")]=N.BasePlugin,i.default.plugins.registerPlugin=N.registerPlugin,i.default.plugins.getPlugin=N.getPlugin;var P=i.default;t.default=P},function(e,t,n){var r=n(21),o=n(32),i=n(236).f;r({target:"Object",stat:!0,forced:o((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(476),n(477),n(478),n(479);var o=r(n(237)),i=n(418),a=n(421),s=n(137),l=n(428);function u(e,t){var n=new o.default(e,t||{},i.rootInstanceSymbol);return n.init(),n}(0,s.registerCellType)(l.TextCellType),u.Core=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new o.default(e,t,i.rootInstanceSymbol)},u.packageName="handsontable",u.buildDate="13/05/2021 10:50:19",u.version="8.3.2",u.languages={dictionaryKeys:a.dictionaryKeys,getLanguageDictionary:a.getLanguageDictionary,getLanguagesDictionaries:a.getLanguagesDictionaries,registerLanguageDictionary:a.registerLanguageDictionary,getTranslatedPhrase:a.getTranslatedPhrase};var c=u;t.default=c},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){var r=n(46),o=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&o(e)===e}},function(e,t,n){var r=n(46);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){var r=n(57),o=n(66),i=n(47),a=n(124);e.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=a(t),s=r.length,l=0;s>l;)o.f(e,n=r[l++],t[n]);return e}},function(e,t,n){var r=n(68),o=Math.floor,i="".replace,a=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,l,u,c){var d=n+e.length,h=l.length,f=s;return void 0!==u&&(u=r(u),f=a),i.call(c,f,(function(r,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(d);case"<":a=u[i.slice(1,-1)];break;default:var s=+i;if(0===s)return r;if(s>h){var c=o(s/10);return 0===c?r:c<=h?void 0===l[c-1]?i.charAt(1):l[c-1]+i.charAt(1):r}a=l[s-1]}return void 0===a?"":a}))}},function(e,t,n){"use strict";var r=n(125),o=n(68),i=n(485),a=n(244),s=n(58),l=n(122),u=n(245);e.exports=function(e){var t,n,c,d,h,f,v=o(e),p="function"==typeof this?this:Array,g=arguments.length,m=g>1?arguments[1]:void 0,y=void 0!==m,E=u(v),w=0;if(y&&(m=r(m,g>2?arguments[2]:void 0,2)),null==E||p==Array&&a(E))for(n=new p(t=s(v.length));t>w;w++)f=y?m(v[w],w):v[w],l(n,w,f);else for(h=(d=E.call(v)).next,n=new p;!(c=h.call(d)).done;w++)f=y?i(d,m,[c.value,w],!0):c.value,l(n,w,f);return n.length=w,n}},function(e,t,n){var r=n(47),o=n(243);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){throw o(e),t}}},function(e,t,n){"use strict";var r=n(248).IteratorPrototype,o=n(109),i=n(116),a=n(157),s=n(126),l=function(){return this};e.exports=function(e,t,n){var u=t+" Iterator";return e.prototype=o(r,{next:i(1,n)}),a(e,u,!1,!0),s[u]=l,e}},function(e,t,n){"use strict";var r=n(102).forEach,o=n(108)("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){var r=n(21),o=n(40),i=n(489);r({global:!0,bind:!0,enumerable:!0,forced:!o.setImmediate||!o.clearImmediate},{setImmediate:i.set,clearImmediate:i.clear})},function(e,t,n){var r,o,i,a=n(40),s=n(32),l=n(125),u=n(240),c=n(172),d=n(490),h=n(180),f=a.location,v=a.setImmediate,p=a.clearImmediate,g=a.process,m=a.MessageChannel,y=a.Dispatch,E=0,w={},C=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},R=function(e){return function(){C(e)}},T=function(e){C(e.data)},b=function(e){a.postMessage(e+"",f.protocol+"//"+f.host)};v&&p||(v=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return w[++E]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(E),E},p=function(e){delete w[e]},h?r=function(e){g.nextTick(R(e))}:y&&y.now?r=function(e){y.now(R(e))}:m&&!d?(i=(o=new m).port2,o.port1.onmessage=T,r=l(i.postMessage,i,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts&&f&&"file:"!==f.protocol&&!s(b)?(r=b,a.addEventListener("message",T,!1)):r="onreadystatechange"in c("script")?function(e){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),C(e)}}:function(e){setTimeout(R(e),0)}),e.exports={set:v,clear:p}},function(e,t,n){var r=n(154);e.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(r)},function(e,t){e.exports=function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(252);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(47),o=n(107),i=n(42)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[i])?t:o(n)}},function(e,t,n){var r=n(32),o=n(242);e.exports=function(e){return r((function(){return!!o[e]()||"​…᠎"!="​…᠎"[e]()||o[e].name!==e}))}},function(e,t,n){"use strict";var r=n(187),o=n(246);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(e,t,n){"use strict";var r=n(21),o=n(186).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return o(this,e)}})},function(e,t,n){var r=n(58),o=n(260),i=n(67),a=Math.ceil,s=function(e){return function(t,n,s){var l,u,c=String(i(t)),d=c.length,h=void 0===s?" ":String(s),f=r(n);return f<=d||""==h?c:(l=f-d,(u=o.call(h,a(l/h.length))).length>l&&(u=u.slice(0,l)),e?c+u:u+c)}};e.exports={start:s(!1),end:s(!0)}},function(e,t,n){var r=n(154);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r={"./af":261,"./af.js":261,"./ar":262,"./ar-dz":263,"./ar-dz.js":263,"./ar-kw":264,"./ar-kw.js":264,"./ar-ly":265,"./ar-ly.js":265,"./ar-ma":266,"./ar-ma.js":266,"./ar-sa":267,"./ar-sa.js":267,"./ar-tn":268,"./ar-tn.js":268,"./ar.js":262,"./az":269,"./az.js":269,"./be":270,"./be.js":270,"./bg":271,"./bg.js":271,"./bm":272,"./bm.js":272,"./bn":273,"./bn.js":273,"./bo":274,"./bo.js":274,"./br":275,"./br.js":275,"./bs":276,"./bs.js":276,"./ca":277,"./ca.js":277,"./cs":278,"./cs.js":278,"./cv":279,"./cv.js":279,"./cy":280,"./cy.js":280,"./da":281,"./da.js":281,"./de":282,"./de-at":283,"./de-at.js":283,"./de-ch":284,"./de-ch.js":284,"./de.js":282,"./dv":285,"./dv.js":285,"./el":286,"./el.js":286,"./en-SG":287,"./en-SG.js":287,"./en-au":288,"./en-au.js":288,"./en-ca":289,"./en-ca.js":289,"./en-gb":290,"./en-gb.js":290,"./en-ie":291,"./en-ie.js":291,"./en-il":292,"./en-il.js":292,"./en-nz":293,"./en-nz.js":293,"./eo":294,"./eo.js":294,"./es":295,"./es-do":296,"./es-do.js":296,"./es-us":297,"./es-us.js":297,"./es.js":295,"./et":298,"./et.js":298,"./eu":299,"./eu.js":299,"./fa":300,"./fa.js":300,"./fi":301,"./fi.js":301,"./fo":302,"./fo.js":302,"./fr":303,"./fr-ca":304,"./fr-ca.js":304,"./fr-ch":305,"./fr-ch.js":305,"./fr.js":303,"./fy":306,"./fy.js":306,"./ga":307,"./ga.js":307,"./gd":308,"./gd.js":308,"./gl":309,"./gl.js":309,"./gom-latn":310,"./gom-latn.js":310,"./gu":311,"./gu.js":311,"./he":312,"./he.js":312,"./hi":313,"./hi.js":313,"./hr":314,"./hr.js":314,"./hu":315,"./hu.js":315,"./hy-am":316,"./hy-am.js":316,"./id":317,"./id.js":317,"./is":318,"./is.js":318,"./it":319,"./it-ch":320,"./it-ch.js":320,"./it.js":319,"./ja":321,"./ja.js":321,"./jv":322,"./jv.js":322,"./ka":323,"./ka.js":323,"./kk":324,"./kk.js":324,"./km":325,"./km.js":325,"./kn":326,"./kn.js":326,"./ko":327,"./ko.js":327,"./ku":328,"./ku.js":328,"./ky":329,"./ky.js":329,"./lb":330,"./lb.js":330,"./lo":331,"./lo.js":331,"./lt":332,"./lt.js":332,"./lv":333,"./lv.js":333,"./me":334,"./me.js":334,"./mi":335,"./mi.js":335,"./mk":336,"./mk.js":336,"./ml":337,"./ml.js":337,"./mn":338,"./mn.js":338,"./mr":339,"./mr.js":339,"./ms":340,"./ms-my":341,"./ms-my.js":341,"./ms.js":340,"./mt":342,"./mt.js":342,"./my":343,"./my.js":343,"./nb":344,"./nb.js":344,"./ne":345,"./ne.js":345,"./nl":346,"./nl-be":347,"./nl-be.js":347,"./nl.js":346,"./nn":348,"./nn.js":348,"./pa-in":349,"./pa-in.js":349,"./pl":350,"./pl.js":350,"./pt":351,"./pt-br":352,"./pt-br.js":352,"./pt.js":351,"./ro":353,"./ro.js":353,"./ru":354,"./ru.js":354,"./sd":355,"./sd.js":355,"./se":356,"./se.js":356,"./si":357,"./si.js":357,"./sk":358,"./sk.js":358,"./sl":359,"./sl.js":359,"./sq":360,"./sq.js":360,"./sr":361,"./sr-cyrl":362,"./sr-cyrl.js":362,"./sr.js":361,"./ss":363,"./ss.js":363,"./sv":364,"./sv.js":364,"./sw":365,"./sw.js":365,"./ta":366,"./ta.js":366,"./te":367,"./te.js":367,"./tet":368,"./tet.js":368,"./tg":369,"./tg.js":369,"./th":370,"./th.js":370,"./tl-ph":371,"./tl-ph.js":371,"./tlh":372,"./tlh.js":372,"./tr":373,"./tr.js":373,"./tzl":374,"./tzl.js":374,"./tzm":375,"./tzm-latn":376,"./tzm-latn.js":376,"./tzm.js":375,"./ug-cn":377,"./ug-cn.js":377,"./uk":378,"./uk.js":378,"./ur":379,"./ur.js":379,"./uz":380,"./uz-latn":381,"./uz-latn.js":381,"./uz.js":380,"./vi":382,"./vi.js":382,"./x-pseudo":383,"./x-pseudo.js":383,"./yo":384,"./yo.js":384,"./zh-cn":385,"./zh-cn.js":385,"./zh-hk":386,"./zh-hk.js":386,"./zh-tw":387,"./zh-tw.js":387};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=501},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(12),n(9),n(11),n(22),n(13);var o=r(n(18)),i=r(n(1)),a=r(n(2)),s=n(38),l=n(70),u=n(45),c=n(133),d=r(n(31)),h=n(134),f=n(10),v=function(){function e(t,n,r){var o=this;(0,i.default)(this,e),this.instance=t,this.tableMeta=n,this.selection=r,this.eventManager=new d.default(t),this.destroyed=!1,this.lock=!1,this.activeEditor=void 0,this.cellProperties=void 0,this.lastKeyCode=void 0,this.instance.addHook("afterDocumentKeyDown",(function(e){return o.onAfterDocumentKeyDown(e)}));for(var a=this.instance.rootWindow;a;)this.eventManager.addEventListener(a.document.documentElement,"keydown",(function(e){o.destroyed||o.instance.runHooks("afterDocumentKeyDown",e)})),a=(0,f.getParentWindow)(a);this.eventManager.addEventListener(this.instance.rootDocument.documentElement,"compositionstart",(function(e){!o.destroyed&&o.activeEditor&&!o.activeEditor.isOpened()&&o.instance.isListening()&&o.openEditor("",e)})),this.instance.view.wt.update("onCellDblClick",(function(e,t,n){return o.onCellDblClick(e,t,n)}))}return(0,a.default)(e,[{key:"lockEditor",value:function(){this.lock=!0}},{key:"unlockEditor",value:function(){this.lock=!1}},{key:"destroyEditor",value:function(e){this.lock||this.closeEditor(e)}},{key:"getActiveEditor",value:function(){return this.activeEditor}},{key:"prepareEditor",value:function(){var e=this;if(!this.lock)if(this.activeEditor&&this.activeEditor.isWaiting())this.closeEditor(!1,!1,(function(t){t&&e.prepareEditor()}));else{var t=this.instance.selection.selectedRange.current().highlight,n=t.row,r=t.col,i=this.instance.runHooks("modifyGetCellCoords",n,r),a=n,s=r;if(Array.isArray(i)){var l=(0,o.default)(i,2);a=l[0],s=l[1]}this.cellProperties=this.instance.getCellMeta(a,s);var u=this.instance.rootDocument.activeElement;if(u&&u.blur(),this.cellProperties.readOnly)this.clearActiveEditor();else{var d=this.instance.getCellEditor(this.cellProperties),h=this.instance.getCell(n,r,!0);if(d&&h){var f=this.instance.colToProp(s),v=this.instance.getSourceDataAtCell(this.instance.toPhysicalRow(a),s);this.activeEditor=(0,c.getEditorInstance)(d,this.instance),this.activeEditor.prepare(n,r,f,h,v,this.cellProperties)}else this.clearActiveEditor()}}}},{key:"isEditorOpened",value:function(){return this.activeEditor&&this.activeEditor.isOpened()}},{key:"openEditor",value:function(e,t){this.activeEditor&&this.activeEditor.beginEditing(e,t)}},{key:"closeEditor",value:function(e,t,n){this.activeEditor?this.activeEditor.finishEditing(e,t,n):n&&n(!1)}},{key:"closeEditorAndSaveChanges",value:function(e){this.closeEditor(!1,e)}},{key:"closeEditorAndRestoreOriginalValue",value:function(e){this.closeEditor(!0,e)}},{key:"clearActiveEditor",value:function(){this.activeEditor=void 0}},{key:"moveSelectionAfterEnter",value:function(e){var t="function"==typeof this.tableMeta.enterMoves?this.tableMeta.enterMoves(event):this.tableMeta.enterMoves;e?this.selection.transformStart(-t.row,-t.col):this.selection.transformStart(t.row,t.col,!0)}},{key:"moveSelectionUp",value:function(e){e?this.selection.transformEnd(-1,0):this.selection.transformStart(-1,0)}},{key:"moveSelectionDown",value:function(e){e?this.selection.transformEnd(1,0):this.selection.transformStart(1,0)}},{key:"moveSelectionRight",value:function(e){e?this.selection.transformEnd(0,1):this.selection.transformStart(0,1)}},{key:"moveSelectionLeft",value:function(e){e?this.selection.transformEnd(0,-1):this.selection.transformStart(0,-1)}},{key:"onAfterDocumentKeyDown",value:function(e){if(this.instance.isListening()&&(this.instance.runHooks("beforeKeyDown",e),!this.destroyed&&229!==e.keyCode&&!(0,u.isImmediatePropagationStopped)(e)&&(this.lastKeyCode=e.keyCode,this.selection.isSelected()))){var t=(e.ctrlKey||e.metaKey)&&!e.altKey;if(!this.activeEditor||this.activeEditor.isWaiting()||(0,l.isMetaKey)(e.keyCode)||(0,l.isCtrlMetaKey)(e.keyCode)||t||this.isEditorOpened()){var n,r=e.shiftKey,o=r?this.selection.setRangeEnd:this.selection.setRangeStart;switch(e.keyCode){case l.KEY_CODES.A:!this.isEditorOpened()&&t&&(this.instance.selectAll(),e.preventDefault(),e.stopPropagation());break;case l.KEY_CODES.ARROW_UP:this.isEditorOpened()&&!this.activeEditor.isWaiting()&&this.closeEditorAndSaveChanges(t),this.moveSelectionUp(r),e.preventDefault(),e.stopPropagation();break;case l.KEY_CODES.ARROW_DOWN:this.isEditorOpened()&&!this.activeEditor.isWaiting()&&this.closeEditorAndSaveChanges(t),this.moveSelectionDown(r),e.preventDefault(),e.stopPropagation();break;case l.KEY_CODES.ARROW_RIGHT:this.isEditorOpened()&&!this.activeEditor.isWaiting()&&this.closeEditorAndSaveChanges(t),this.moveSelectionRight(r),e.preventDefault(),e.stopPropagation();break;case l.KEY_CODES.ARROW_LEFT:this.isEditorOpened()&&!this.activeEditor.isWaiting()&&this.closeEditorAndSaveChanges(t),this.moveSelectionLeft(r),e.preventDefault(),e.stopPropagation();break;case l.KEY_CODES.TAB:n="function"==typeof this.tableMeta.tabMoves?this.tableMeta.tabMoves(e):this.tableMeta.tabMoves,r?this.selection.transformStart(-n.row,-n.col):this.selection.transformStart(n.row,n.col,!0),e.preventDefault(),e.stopPropagation();break;case l.KEY_CODES.BACKSPACE:case l.KEY_CODES.DELETE:this.instance.emptySelectedCells(),this.prepareEditor(),e.preventDefault();break;case l.KEY_CODES.F2:this.activeEditor&&this.activeEditor.enableFullEditMode(),this.openEditor(null,e),e.preventDefault();break;case l.KEY_CODES.ENTER:this.isEditorOpened()?(this.activeEditor&&this.activeEditor.state!==h.EDITOR_STATE.WAITING&&this.closeEditorAndSaveChanges(t),this.moveSelectionAfterEnter(r)):this.instance.getSettings().enterBeginsEditing?this.cellProperties.readOnly?this.moveSelectionAfterEnter():this.activeEditor&&(this.activeEditor.enableFullEditMode(),this.openEditor(null,e)):this.moveSelectionAfterEnter(r),e.preventDefault(),(0,u.stopImmediatePropagation)(e);break;case l.KEY_CODES.ESCAPE:this.isEditorOpened()&&(this.closeEditorAndRestoreOriginalValue(t),this.activeEditor.focus()),e.preventDefault();break;case l.KEY_CODES.HOME:e.ctrlKey||e.metaKey?o.call(this.selection,new s.CellCoords(this.instance.rowIndexMapper.getFirstNotHiddenIndex(0,1),this.selection.selectedRange.current().from.col)):o.call(this.selection,new s.CellCoords(this.selection.selectedRange.current().from.row,this.instance.columnIndexMapper.getFirstNotHiddenIndex(0,1))),e.preventDefault(),e.stopPropagation();break;case l.KEY_CODES.END:e.ctrlKey||e.metaKey?o.call(this.selection,new s.CellCoords(this.instance.rowIndexMapper.getFirstNotHiddenIndex(this.instance.countRows()-1,-1),this.selection.selectedRange.current().from.col)):o.call(this.selection,new s.CellCoords(this.selection.selectedRange.current().from.row,this.instance.columnIndexMapper.getFirstNotHiddenIndex(this.instance.countCols()-1,-1))),e.preventDefault(),e.stopPropagation();break;case l.KEY_CODES.PAGE_UP:this.selection.transformStart(-this.instance.countVisibleRows(),0),e.preventDefault(),e.stopPropagation();break;case l.KEY_CODES.PAGE_DOWN:this.selection.transformStart(this.instance.countVisibleRows(),0),e.preventDefault(),e.stopPropagation()}}else this.openEditor("",e)}}},{key:"onCellDblClick",value:function(e,t,n){"TD"===n.nodeName&&(this.activeEditor&&this.activeEditor.enableFullEditMode(),this.openEditor(null,e))}},{key:"destroy",value:function(){this.destroyed=!0,this.eventManager.destroy()}}]),e}(),p=new WeakMap;v.getInstance=function(e,t,n){var r=p.get(e);return r||(r=new v(e,t,n),p.set(e,r)),r};var g=v;t.default=g},function(e,t,n){"use strict";var r=n(107),o=n(46),i=[].slice,a={},s=function(e,t,n){if(!(t in a)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";a[t]=Function("C,a","return new C("+r.join(",")+")")}return a[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=i.call(arguments,1),a=function(){var r=n.concat(i.call(arguments));return this instanceof a?s(t,r.length,r):t.apply(e,r)};return o(t.prototype)&&(a.prototype=t.prototype),a}},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.default=void 0,n(12),n(9),n(11),n(22),n(13);var o=r(n(1)),i=r(n(2)),a=r(n(7)),s=r(n(8)),l=r(n(4)),u=n(159);function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var d=function(e){(0,a.default)(n,e);var t=c(n);function n(){var e;return(0,o.default)(this,n),(e=t.call(this,"TH")).orderViews=new WeakMap,e.sourceRowIndex=0,e}return(0,i.default)(n,[{key:"obtainOrderView",value:function(e){var t,n=this;return this.orderViews.has(e)?t=this.orderViews.get(e):(t=new u.SharedOrderView(e,(function(e){return n.nodesPool.obtain(n.sourceRowIndex,e)}),this.nodeType),this.orderViews.set(e,t)),t}},{key:"render",value:function(){for(var e=this.table,t=e.rowsToRender,n=e.rowHeaderFunctions,r=e.rowHeadersCount,o=e.rows,i=e.cells,a=0;a<t;a++){var s=this.table.renderedRowToSource(a),l=o.getRenderedNode(a);this.sourceRowIndex=s;var u=this.obtainOrderView(l),c=i.obtainOrderView(l);u.appendView(c).setSize(r).setOffset(this.table.renderedColumnToSource(0)).start();for(var d=0;d<r;d++){u.render();var h=u.getCurrentNode();h.className="",h.removeAttribute("style"),n[d](s,h,d)}u.end()}}}]),n}(r(n(132)).default);t.default=d},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(506)),s=n(398),l=function(){function e(){(0,o.default)(this,e),this.size=new a.default,this.workingSpace=s.WORKING_SPACE_ALL,this.sharedSize=null}return(0,i.default)(e,[{key:"setSize",value:function(e){this.size.setSize(e)}},{key:"setOffset",value:function(e){this.size.setOffset(e)}},{key:"getViewSize",value:function(){return this.size}},{key:"isShared",value:function(){return this.sharedSize instanceof a.default}},{key:"isPlaceOn",value:function(e){return this.workingSpace===e}},{key:"append",value:function(e){this.workingSpace=s.WORKING_SPACE_TOP,e.workingSpace=s.WORKING_SPACE_BOTTOM,this.sharedSize=e.getViewSize()}},{key:"prepend",value:function(e){this.workingSpace=s.WORKING_SPACE_BOTTOM,e.workingSpace=s.WORKING_SPACE_TOP,this.sharedSize=e.getViewSize()}}]),e}();t.default=l},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=r(n(2)),a=function(){function e(){(0,o.default)(this,e),this.currentSize=0,this.nextSize=0,this.currentOffset=0,this.nextOffset=0}return(0,i.default)(e,[{key:"setSize",value:function(e){this.currentSize=this.nextSize,this.nextSize=e}},{key:"setOffset",value:function(e){this.currentOffset=this.nextOffset,this.nextOffset=e}}]),e}();t.default=a},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(7)),s=r(n(8)),l=r(n(4));function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var c=function(e){(0,a.default)(n,e);var t=u(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"prependView",value:function(e){return this.sizeSet.prepend(e.sizeSet),e.sizeSet.append(this.sizeSet),this}},{key:"appendView",value:function(e){return this.sizeSet.append(e.sizeSet),e.sizeSet.prepend(this.sizeSet),this}}]),n}(r(n(397)).default);t.default=c},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=r(n(2)),a=function(){function e(t){(0,o.default)(this,e),this.nodeType=t.toUpperCase()}return(0,i.default)(e,[{key:"setRootDocument",value:function(e){this.rootDocument=e}},{key:"obtain",value:function(){return this.rootDocument.createElement(this.nodeType)}}]),e}();t.default=a},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(7)),s=r(n(8)),l=r(n(4)),u=n(10);function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var d=function(e){(0,a.default)(n,e);var t=c(n);function n(e){return(0,o.default)(this,n),t.call(this,null,e)}return(0,i.default)(n,[{key:"adjust",value:function(){var e=this.table,t=e.columnHeadersCount,n=e.rowHeadersCount,r=this.rootNode.firstChild;if(t){for(var o=this.table.columnsToRender+n,i=0,a=t;i<a;i++){for((r=this.rootNode.childNodes[i])||(r=this.table.rootDocument.createElement("tr"),this.rootNode.appendChild(r)),this.renderedNodes=r.childNodes.length;this.renderedNodes<o;)r.appendChild(this.table.rootDocument.createElement("th")),this.renderedNodes+=1;for(;this.renderedNodes>o;)r.removeChild(r.lastChild),this.renderedNodes-=1}var s=this.rootNode.childNodes.length;if(s>t)for(var l=t;l<s;l++)this.rootNode.removeChild(this.rootNode.lastChild)}else r&&(0,u.empty)(r)}},{key:"render",value:function(){for(var e=this.table.columnHeadersCount,t=0;t<e;t+=1)for(var n=this.table,r=n.columnHeaderFunctions,o=n.columnsToRender,i=n.rowHeadersCount,a=this.rootNode.childNodes[t],s=-1*i;s<o;s+=1){var l=this.table.renderedColumnToSource(s),u=a.childNodes[s+i];u.className="",u.removeAttribute("style"),r[t](l,u,t)}}}]),n}(r(n(132)).default);t.default=d},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(7)),s=r(n(8)),l=r(n(4)),u=r(n(132)),c=n(10);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var h=function(e){(0,a.default)(n,e);var t=d(n);function n(e){return(0,o.default)(this,n),t.call(this,null,e)}return(0,i.default)(n,[{key:"adjust",value:function(){for(var e=this.table,t=e.columnsToRender+e.rowHeadersCount;this.renderedNodes<t;)this.rootNode.appendChild(this.table.rootDocument.createElement("col")),this.renderedNodes+=1;for(;this.renderedNodes>t;)this.rootNode.removeChild(this.rootNode.lastChild),this.renderedNodes-=1}},{key:"render",value:function(){this.adjust();for(var e=this.table,t=e.columnsToRender,n=e.rowHeadersCount,r=0;r<n;r++){var o=this.table.renderedColumnToSource(r),i=this.table.columnUtils.getHeaderWidth(o);this.rootNode.childNodes[r].style.width="".concat(i,"px")}for(var a=0;a<t;a++){var s=this.table.renderedColumnToSource(a),l=this.table.columnUtils.getStretchedColumnWidth(s);this.rootNode.childNodes[a+n].style.width="".concat(l,"px")}var u=this.rootNode.firstChild;u&&(0,c.addClass)(u,"rowHeader")}}]),n}(u.default);t.default=h},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.default=void 0;var o,i=r(n(63)),a=r(n(1)),s=r(n(2)),l=r(n(7)),u=r(n(8)),c=r(n(4)),d=n(69),h=n(64),f=n(159),v=r(n(132));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var g=!1,m=function(e){(0,l.default)(n,e);var t=p(n);function n(e){var r;return(0,a.default)(this,n),(r=t.call(this,"TR",e)).orderView=new f.OrderView(e,(function(e){return r.nodesPool.obtain(e)}),r.nodeType),r}return(0,s.default)(n,[{key:"getRenderedNode",value:function(e){return this.orderView.getNode(e)}},{key:"render",value:function(){var e=this.table.rowsToRender;!g&&e>1e3&&(g=!0,(0,d.warn)((0,h.toSingleLine)(o||(o=(0,i.default)(['Performance tip: Handsontable rendered more than 1000 visible rows. Consider limiting \n the number of rendered rows by specifying the table height and/or turning off the "renderAllRows" option.'],['Performance tip: Handsontable rendered more than 1000 visible rows. Consider limiting\\x20\n the number of rendered rows by specifying the table height and/or turning off the "renderAllRows" option.']))))),this.orderView.setSize(e).setOffset(this.table.renderedRowToSource(0)).start();for(var t=0;t<e;t++)this.orderView.render();this.orderView.end()}}]),n}(v.default);t.default=m},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.default=void 0,n(12),n(9),n(11),n(22),n(13);var o=r(n(1)),i=r(n(2)),a=r(n(7)),s=r(n(8)),l=r(n(4)),u=n(10),c=n(159);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var h=function(e){(0,a.default)(n,e);var t=d(n);function n(){var e;return(0,o.default)(this,n),(e=t.call(this,"TD")).orderViews=new WeakMap,e.sourceRowIndex=0,e}return(0,i.default)(n,[{key:"obtainOrderView",value:function(e){var t,n=this;return this.orderViews.has(e)?t=this.orderViews.get(e):(t=new c.SharedOrderView(e,(function(e){return n.nodesPool.obtain(n.sourceRowIndex,e)}),this.nodeType),this.orderViews.set(e,t)),t}},{key:"render",value:function(){for(var e=this.table,t=e.rowsToRender,n=e.columnsToRender,r=e.rows,o=e.rowHeaders,i=0;i<t;i++){var a=this.table.renderedRowToSource(i),s=r.getRenderedNode(i);this.sourceRowIndex=a;var l=this.obtainOrderView(s),c=o.obtainOrderView(s);l.prependView(c).setSize(n).setOffset(this.table.renderedColumnToSource(0)).start();for(var d=0;d<n;d++){l.render();var h=l.getCurrentNode(),f=this.table.renderedColumnToSource(d);(0,u.hasClass)(h,"hide")||(h.className=""),h.removeAttribute("style"),this.table.cellRenderer(a,f,h)}l.end()}}}]),n}(r(n(132)).default);t.default=h},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=r(n(2)),a=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.cellRenderer;(0,o.default)(this,e),this.rootNode=t,this.rootDocument=this.rootNode.ownerDocument,this.rowHeaders=null,this.columnHeaders=null,this.colGroup=null,this.rows=null,this.cells=null,this.rowFilter=null,this.columnFilter=null,this.rowUtils=null,this.columnUtils=null,this.rowsToRender=0,this.columnsToRender=0,this.rowHeaderFunctions=[],this.rowHeadersCount=0,this.columnHeaderFunctions=[],this.columnHeadersCount=0,this.cellRenderer=r}return(0,i.default)(e,[{key:"setAxisUtils",value:function(e,t){this.rowUtils=e,this.columnUtils=t}},{key:"setViewportSize",value:function(e,t){this.rowsToRender=e,this.columnsToRender=t}},{key:"setFilters",value:function(e,t){this.rowFilter=e,this.columnFilter=t}},{key:"setHeaderContentRenderers",value:function(e,t){this.rowHeaderFunctions=e,this.rowHeadersCount=e.length,this.columnHeaderFunctions=t,this.columnHeadersCount=t.length}},{key:"setRenderers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.rowHeaders,n=e.columnHeaders,r=e.colGroup,o=e.rows,i=e.cells;t.setTable(this),n.setTable(this),r.setTable(this),o.setTable(this),i.setTable(this),this.rowHeaders=t,this.columnHeaders=n,this.colGroup=r,this.rows=o,this.cells=i}},{key:"renderedRowToSource",value:function(e){return this.rowFilter.renderedToSource(e)}},{key:"renderedColumnToSource",value:function(e){return this.columnFilter.renderedToSource(e)}},{key:"render",value:function(){this.colGroup.adjust(),this.columnHeaders.adjust(),this.rows.adjust(),this.rowHeaders.adjust(),this.columnHeaders.render(),this.rows.render(),this.rowHeaders.render(),this.cells.render(),this.columnUtils.calculateWidths(),this.colGroup.render();for(var e=this.rowsToRender,t=this.rows,n=0;n<e;n++){var r=t.getRenderedNode(n);if(r.firstChild){var o=this.renderedRowToSource(n),i=this.rowUtils.getHeight(o);r.firstChild.style.height=i?"".concat(i-1,"px"):""}}}}]),e}();t.default=a},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(12),n(39),n(9),n(11),n(13);var o=r(n(56)),i=r(n(1)),a=r(n(2)),s=n(10),l=function(){function e(t){(0,i.default)(this,e),this.wot=t,this.headerWidths=new Map}return(0,a.default)(e,[{key:"getWidth",value:function(e){var t=this.wot.wtSettings.settings.columnWidth;return"function"==typeof t?t=t(e):"object"===(0,o.default)(t)&&(t=t[e]),t||this.wot.wtSettings.settings.defaultColumnWidth}},{key:"getStretchedColumnWidth",value:function(e){var t=this.getWidth(e),n=this.wot.wtViewport.columnsRenderCalculator,r=null!=t?t:this.wot.wtSettings.settings.defaultColumnWidth;if(n){var o=n.getStretchedColumnWidth(e,r);o&&(r=o)}return r}},{key:"getHeaderHeight",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:"getHeaderWidth",value:function(e){return this.headerWidths.get(this.wot.wtTable.columnFilter.sourceToRendered(e))}},{key:"calculateWidths",value:function(){var e=this.wot,t=e.wtTable,n=e.wtViewport,r=e.cloneSource,o=r?r.wtTable.holder:t.holder,i=o.offsetHeight<o.scrollHeight?(0,s.getScrollbarWidth)():0,a=e.getSetting("rowHeaderWidth");if(n.columnsRenderCalculator.refreshStretching(n.getViewportWidth()-i),null!=(a=e.getSetting("onModifyRowHeaderWidth",a)))for(var l=e.getSetting("rowHeaders").length,u=e.getSetting("defaultColumnWidth"),c=0;c<l;c++){var d=Array.isArray(a)?a[c]:a;d=null==d?u:d,this.headerWidths.set(c,d)}}}]),e}();t.default=l},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=r(n(2)),a=function(){function e(t){(0,o.default)(this,e),this.wot=t}return(0,i.default)(e,[{key:"getHeight",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}}]),e}();t.default=a},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.BottomLeftCornerOverlay=void 0;var o=r(n(111)),i=r(n(1)),a=r(n(2)),s=r(n(7)),l=r(n(8)),u=r(n(4)),c=n(10),d=r(n(518)),h=n(112),f=n(87);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var p=function(e){(0,s.default)(n,e);var t=v(n);function n(e){var r;return(0,i.default)(this,n),(r=t.call(this,e)).clone=r.makeClone(f.CLONE_BOTTOM_LEFT_CORNER),r}return(0,a.default)(n,[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.default)(d.default,t)}},{key:"shouldBeRendered",value:function(){var e=this.wot;return e.getSetting("shouldRenderBottomOverlay")&&e.getSetting("shouldRenderLeftOverlay")}},{key:"resetFixedPosition",value:function(){var e=this.wot;if(this.updateTrimmingContainer(),e.wtTable.holder.parentNode){var t=this.clone.wtTable.holder.parentNode;if(t.style.top="",this.trimmingContainer===e.rootWindow){var n,r,o=this.wot,i=o.rootDocument,a=o.wtTable.hider.getBoundingClientRect(),s=Math.ceil(a.bottom),l=Math.ceil(a.left),u=i.documentElement.clientHeight;n=l<0?-l:0,r=s>u?s-u:0,r+="px",n+="px",t.style.left=n,t.style.bottom=r}else(0,c.resetCssTransform)(t),this.repositionOverlay();var d=(0,c.outerHeight)(this.clone.wtTable.TABLE),h=(0,c.outerWidth)(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(d=0),t.style.height="".concat(d,"px"),t.style.width="".concat(h,"px"),!1}}},{key:"repositionOverlay",value:function(){var e=this.wot,t=e.wtTable,n=e.rootDocument,r=this.clone.wtTable.holder.parentNode,o=(0,c.getScrollbarWidth)(n);t.holder.clientHeight===t.holder.offsetHeight&&(o=0),r.style.bottom="".concat(o,"px")}}],[{key:"OVERLAY_NAME",get:function(){return f.CLONE_BOTTOM_LEFT_CORNER}}]),n}(h.Overlay);t.BottomLeftCornerOverlay=p},function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=r(n(7)),a=r(n(8)),s=r(n(4)),l=r(n(110)),u=r(n(402)),c=r(n(201)),d=n(5);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,s.default)(e);if(t){var o=(0,s.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,a.default)(this,n)}}var f=function(e){(0,i.default)(n,e);var t=h(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return n}(l.default);(0,d.mixin)(f,u.default),(0,d.mixin)(f,c.default);var v=f;t.default=v},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.BottomOverlay=void 0;var o=r(n(111)),i=r(n(1)),a=r(n(2)),s=r(n(28)),l=r(n(7)),u=r(n(8)),c=r(n(4)),d=r(n(37)),h=n(10),f=r(n(520)),v=n(112),p=n(87);function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var m=function(e){(0,l.default)(n,e);var t=g(n);function n(e){var r;return(0,i.default)(this,n),r=t.call(this,e),(0,d.default)((0,s.default)(r),"cachedFixedRowsBottom",-1),r.clone=r.makeClone(p.CLONE_BOTTOM),r.cachedFixedRowsBottom=r.wot.getSetting("fixedRowsBottom"),r}return(0,a.default)(n,[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.default)(f.default,t)}},{key:"shouldBeRendered",value:function(){return this.wot.getSetting("shouldRenderBottomOverlay")}},{key:"resetFixedPosition",value:function(){if(this.needFullRender&&this.wot.wtTable.holder.parentNode){var e=this.clone.wtTable.holder.parentNode;e.style.top="";var t=0,n=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==this.wot.rootWindow||n&&"vertical"===n)t=this.getScrollPosition(),this.repositionOverlay();else{var r,o,i=this.wot,a=i.rootDocument,s=i.wtTable,l=s.hider.getBoundingClientRect(),u=Math.ceil(l.bottom),c=a.documentElement.clientHeight;r=""===(r=s.hider.style.left)?0:r,t=o=u>c?u-c:0,o+="px",e.style.left=r,e.style.bottom=o}var d=this.adjustHeaderBordersPosition(t);return this.adjustElementsSize(),d}}},{key:"repositionOverlay",value:function(){var e=this.wot,t=e.wtTable,n=e.rootDocument,r=this.clone.wtTable.holder.parentNode,o=(0,h.getScrollbarWidth)(n);t.holder.clientHeight===t.holder.offsetHeight&&(o=0),r.style.bottom="".concat(o,"px")}},{key:"setScrollPosition",value:function(e){var t=this.wot.rootWindow,n=!1;return this.mainTableScrollableElement===t?(t.scrollTo((0,h.getWindowScrollLeft)(t),e),n=!0):this.mainTableScrollableElement.scrollTop!==e&&(this.mainTableScrollableElement.scrollTop=e,n=!0),n}},{key:"onScroll",value:function(){this.wot.getSetting("onScrollHorizontally")}},{key:"sumCellSizes",value:function(e,t){for(var n=this.wot,r=n.wtTable,o=n.wtSettings.settings.defaultRowHeight,i=e,a=0;i<t;){var s=r.getRowHeight(i);a+=void 0===s?o:s,i+=1}return a}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}},{key:"adjustRootElementSize",value:function(){var e=this.wot,t=e.wtTable,n=e.wtViewport,r=e.rootWindow,o=(0,h.getScrollbarWidth)(this.wot.rootDocument),i=this.clone.wtTable.holder.parentNode.style,a=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==r||"horizontal"===a){var s=n.getWorkspaceWidth();this.wot.wtOverlays.hasScrollbarRight&&(s-=o),s=Math.min(s,t.wtRootElement.scrollWidth),i.width="".concat(s,"px")}else i.width="";this.clone.wtTable.holder.style.width=i.width;var l=(0,h.outerHeight)(this.clone.wtTable.TABLE);this.wot.wtTable.hasDefinedSize()||(l=0),i.height="".concat(l,"px")}},{key:"adjustRootChildrenSize",value:function(){var e=this.clone.wtTable.holder;this.clone.wtTable.hider.style.width=this.hider.style.width,e.style.width=e.parentNode.style.width,e.style.height=e.parentNode.style.height}},{key:"applyToDOM",value:function(){var e=this.wot.getSetting("totalRows");if("number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top="".concat(this.wot.wtViewport.rowsRenderCalculator.startPosition,"px");else{if(0!==e)throw new Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="",this.needFullRender&&this.syncOverlayOffset()}},{key:"syncOverlayOffset",value:function(){"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,o=0;t&&r.offsetHeight!==r.clientHeight&&(o=(0,h.getScrollbarWidth)(this.wot.rootDocument)),t?(n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportHeight(),n+=1):n+=this.sumCellSizes(this.wot.getSetting("fixedRowsBottom"),e),n+=o,this.setScrollPosition(n)}},{key:"getTableParentOffset",value:function(){return this.mainTableScrollableElement===this.wot.rootWindow?this.wot.wtTable.holderOffset.top:0}},{key:"getScrollPosition",value:function(){return(0,h.getScrollTop)(this.mainTableScrollableElement,this.wot.rootWindow)}},{key:"adjustHeaderBordersPosition",value:function(e){var t=this.wot.getSetting("fixedRowsBottom"),n=this.cachedFixedRowsBottom!==t,r=this.wot.getSetting("columnHeaders"),o=!1;if((n||0===t)&&r.length>0){var i=this.wot.wtTable.holder.parentNode,a=(0,h.hasClass)(i,"innerBorderBottom");this.cachedFixedRowsBottom=this.wot.getSetting("fixedRowsBottom"),e||0===this.wot.getSetting("totalRows")?((0,h.addClass)(i,"innerBorderBottom"),o=!a):((0,h.removeClass)(i,"innerBorderBottom"),o=a)}return o}}],[{key:"OVERLAY_NAME",get:function(){return p.CLONE_BOTTOM}}]),n}(v.Overlay);t.BottomOverlay=m},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=r(n(7)),a=r(n(8)),s=r(n(4)),l=r(n(110)),u=r(n(402)),c=r(n(200)),d=n(5);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,s.default)(e);if(t){var o=(0,s.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,a.default)(this,n)}}var f=function(e){(0,i.default)(n,e);var t=h(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return n}(l.default);(0,d.mixin)(f,u.default),(0,d.mixin)(f,c.default);var v=f;t.default=v},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.LeftOverlay=void 0;var o=r(n(111)),i=r(n(1)),a=r(n(2)),s=r(n(7)),l=r(n(8)),u=r(n(4)),c=n(10),d=r(n(522)),h=n(112),f=n(87);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var p=function(e){(0,s.default)(n,e);var t=v(n);function n(e){var r;return(0,i.default)(this,n),(r=t.call(this,e)).clone=r.makeClone(f.CLONE_LEFT),r}return(0,a.default)(n,[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.default)(d.default,t)}},{key:"shouldBeRendered",value:function(){return this.wot.getSetting("shouldRenderLeftOverlay")}},{key:"resetFixedPosition",value:function(){var e=this.wot.wtTable;if(this.needFullRender&&e.holder.parentNode){var t=this.clone.wtTable.holder.parentNode,n=0,r=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==this.wot.rootWindow||r&&"horizontal"===r)n=this.getScrollPosition(),(0,c.resetCssTransform)(t);else{var o,i,a=e.hider.getBoundingClientRect(),s=Math.ceil(a.left),l=Math.ceil(a.right);i=""===(i=e.hider.style.top)?0:i,n=o=s<0&&l-t.offsetWidth>0?-s:0,o+="px",(0,c.setOverlayPosition)(t,o,i)}var u=this.adjustHeaderBordersPosition(n);return this.adjustElementsSize(),u}}},{key:"setScrollPosition",value:function(e){var t=this.wot.rootWindow,n=!1;return this.mainTableScrollableElement===t&&t.scrollX!==e?(t.scrollTo(e,(0,c.getWindowScrollTop)(t)),n=!0):this.mainTableScrollableElement.scrollLeft!==e&&(this.mainTableScrollableElement.scrollLeft=e,n=!0),n}},{key:"onScroll",value:function(){this.wot.getSetting("onScrollVertically")}},{key:"sumCellSizes",value:function(e,t){for(var n=this.wot.wtSettings.defaultColumnWidth,r=e,o=0;r<t;)o+=this.wot.wtTable.getStretchedColumnWidth(r)||n,r+=1;return o}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}},{key:"adjustRootElementSize",value:function(){var e=this.wot,t=e.wtTable,n=e.rootDocument,r=e.rootWindow,o=(0,c.getScrollbarWidth)(n),i=this.clone.wtTable.holder.parentNode.style,a=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==r||"vertical"===a){var s=this.wot.wtViewport.getWorkspaceHeight();this.wot.wtOverlays.hasScrollbarBottom&&(s-=o),s=Math.min(s,t.wtRootElement.scrollHeight),i.height="".concat(s,"px")}else i.height="";this.clone.wtTable.holder.style.height=i.height;var l=(0,c.outerWidth)(this.clone.wtTable.TABLE);i.width="".concat(l,"px")}},{key:"adjustRootChildrenSize",value:function(){var e,t=this.clone.wtTable.holder,n=this.wot.selections,r=Math.abs(null!==(e=null==n?void 0:n.getCell().getBorder(this.wot).cornerCenterPointOffset)&&void 0!==e?e:0);this.clone.wtTable.hider.style.height=this.hider.style.height,t.style.height=t.parentNode.style.height,t.style.width="".concat(parseInt(t.parentNode.style.width,10)+r,"px")}},{key:"applyToDOM",value:function(){var e=this.wot.getSetting("totalColumns");if("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,o=0;return t&&r.offsetWidth!==r.clientWidth&&(o=(0,c.getScrollbarWidth)(this.wot.rootDocument)),t?(n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportWidth()):n+=this.sumCellSizes(this.wot.getSetting("fixedColumnsLeft"),e),n+=o,this.setScrollPosition(n)}},{key:"getTableParentOffset",value:function(){var e=0;return this.wot.getSetting("preventOverflow")||this.trimmingContainer!==this.wot.rootWindow||(e=this.wot.wtTable.holderOffset.left),e}},{key:"getScrollPosition",value:function(){return(0,c.getScrollLeft)(this.mainTableScrollableElement,this.wot.rootWindow)}},{key:"adjustHeaderBordersPosition",value:function(e){var t=this.wot.wtTable.holder.parentNode,n=this.wot.getSetting("rowHeaders"),r=this.wot.getSetting("fixedColumnsLeft");this.wot.getSetting("totalRows")?(0,c.removeClass)(t,"emptyRows"):(0,c.addClass)(t,"emptyRows");var o=!1;if(r&&!n.length)(0,c.addClass)(t,"innerBorderLeft");else if(!r&&n.length){var i=(0,c.hasClass)(t,"innerBorderLeft");e?((0,c.addClass)(t,"innerBorderLeft"),o=!i):((0,c.removeClass)(t,"innerBorderLeft"),o=i)}return o}}],[{key:"OVERLAY_NAME",get:function(){return f.CLONE_LEFT}}]),n}(h.Overlay);t.LeftOverlay=p},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=r(n(7)),a=r(n(8)),s=r(n(4)),l=r(n(110)),u=r(n(400)),c=r(n(201)),d=n(5);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,s.default)(e);if(t){var o=(0,s.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,a.default)(this,n)}}var f=function(e){(0,i.default)(n,e);var t=h(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return n}(l.default);(0,d.mixin)(f,u.default),(0,d.mixin)(f,c.default);var v=f;t.default=v},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.TopLeftCornerOverlay=void 0;var o=r(n(111)),i=r(n(1)),a=r(n(2)),s=r(n(7)),l=r(n(8)),u=r(n(4)),c=n(10),d=r(n(524)),h=n(112),f=n(87);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var p=function(e){(0,s.default)(n,e);var t=v(n);function n(e){var r;return(0,i.default)(this,n),(r=t.call(this,e)).clone=r.makeClone(f.CLONE_TOP_LEFT_CORNER),r}return(0,a.default)(n,[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.default)(d.default,t)}},{key:"shouldBeRendered",value:function(){var e=this.wot;return e.getSetting("shouldRenderTopOverlay")&&e.getSetting("shouldRenderLeftOverlay")}},{key:"resetFixedPosition",value:function(){if(this.updateTrimmingContainer(),this.wot.wtTable.holder.parentNode){var e=this.clone.wtTable.holder.parentNode,t=this.wot.getSetting("preventOverflow");if(this.trimmingContainer===this.wot.rootWindow){var n=this.wot.wtTable.hider.getBoundingClientRect(),r=Math.ceil(n.top),o=Math.ceil(n.left),i=Math.ceil(n.bottom),a=Math.ceil(n.right),s="0",l="0";t&&"vertical"!==t||o<0&&a-e.offsetWidth>0&&(s="".concat(-o,"px")),t&&"horizontal"!==t||r<0&&i-e.offsetHeight>0&&(l="".concat(-r,"px")),(0,c.setOverlayPosition)(e,s,l)}else(0,c.resetCssTransform)(e);var u=(0,c.outerHeight)(this.clone.wtTable.TABLE),d=(0,c.outerWidth)(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(u=0),e.style.height="".concat(u,"px"),e.style.width="".concat(d,"px"),!1}}}],[{key:"OVERLAY_NAME",get:function(){return f.CLONE_TOP_LEFT_CORNER}}]),n}(h.Overlay);t.TopLeftCornerOverlay=p},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=r(n(7)),a=r(n(8)),s=r(n(4)),l=r(n(110)),u=r(n(403)),c=r(n(201)),d=n(5);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,s.default)(e);if(t){var o=(0,s.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,a.default)(this,n)}}var f=function(e){(0,i.default)(n,e);var t=h(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return n}(l.default);(0,d.mixin)(f,u.default),(0,d.mixin)(f,c.default);var v=f;t.default=v},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.TopOverlay=void 0;var o=r(n(111)),i=r(n(1)),a=r(n(2)),s=r(n(28)),l=r(n(7)),u=r(n(8)),c=r(n(4)),d=r(n(37)),h=n(10),f=r(n(526)),v=n(112),p=n(87);function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var m=function(e){(0,l.default)(n,e);var t=g(n);function n(e){var r;return(0,i.default)(this,n),r=t.call(this,e),(0,d.default)((0,s.default)(r),"cachedFixedRowsTop",-1),r.clone=r.makeClone(p.CLONE_TOP),r.cachedFixedRowsTop=r.wot.getSetting("fixedRowsTop"),r}return(0,a.default)(n,[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.default)(f.default,t)}},{key:"shouldBeRendered",value:function(){return this.wot.getSetting("shouldRenderTopOverlay")}},{key:"resetFixedPosition",value:function(){if(this.needFullRender&&this.wot.wtTable.holder.parentNode){var e=this.clone.wtTable.holder.parentNode,t=this.wot.getSetting("preventOverflow"),n=0,r=!1;if(this.trimmingContainer!==this.wot.rootWindow||t&&"vertical"===t)n=this.getScrollPosition(),(0,h.resetCssTransform)(e);else{var o,i,a=this.wot.wtTable,s=a.hider.getBoundingClientRect(),l=Math.ceil(s.top),u=Math.ceil(s.bottom),c=e.offsetHeight;r=u===c,o=""===(o=a.hider.style.left)?0:o,n=i=l<0&&u-c>0?-l:0,i+="px",(0,h.setOverlayPosition)(e,o,i)}var d=this.adjustHeaderBordersPosition(n,r);return this.adjustElementsSize(),d}}},{key:"setScrollPosition",value:function(e){var t=this.wot.rootWindow,n=!1;return this.mainTableScrollableElement===t&&t.scrollY!==e?(t.scrollTo((0,h.getWindowScrollLeft)(t),e),n=!0):this.mainTableScrollableElement.scrollTop!==e&&(this.mainTableScrollableElement.scrollTop=e,n=!0),n}},{key:"onScroll",value:function(){this.wot.getSetting("onScrollHorizontally")}},{key:"sumCellSizes",value:function(e,t){for(var n=this.wot.wtSettings.settings.defaultRowHeight,r=e,o=0;r<t;){var i=this.wot.wtTable.getRowHeight(r);o+=void 0===i?n:i,r+=1}return o}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}},{key:"adjustRootElementSize",value:function(){var e=this.wot,t=e.wtTable,n=e.rootDocument,r=e.rootWindow,o=(0,h.getScrollbarWidth)(n),i=this.clone.wtTable.holder.parentNode.style,a=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==r||"horizontal"===a){var s=this.wot.wtViewport.getWorkspaceWidth();this.wot.wtOverlays.hasScrollbarRight&&(s-=o),s=Math.min(s,t.wtRootElement.scrollWidth),i.width="".concat(s,"px")}else i.width="";this.clone.wtTable.holder.style.width=i.width;var l=(0,h.outerHeight)(this.clone.wtTable.TABLE);this.wot.wtTable.hasDefinedSize()||(l=0),i.height="".concat(l,"px")}},{key:"adjustRootChildrenSize",value:function(){var e,t=this.clone.wtTable.holder,n=this.wot.selections,r=Math.abs(null!==(e=null==n?void 0:n.getCell().getBorder(this.wot).cornerCenterPointOffset)&&void 0!==e?e:0);this.clone.wtTable.hider.style.width=this.hider.style.width,t.style.width=t.parentNode.style.width,t.style.height="".concat(parseInt(t.parentNode.style.height,10)+r,"px")}},{key:"applyToDOM",value:function(){var e=this.wot.getSetting("totalRows");if("number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top="".concat(this.wot.wtViewport.rowsRenderCalculator.startPosition,"px");else{if(0!==e)throw new Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="",this.needFullRender&&this.syncOverlayOffset()}},{key:"syncOverlayOffset",value:function(){"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.wot,r=(n.cloneSource?n.cloneSource:n).wtTable.holder,o=this.getTableParentOffset(),i=0;if(t&&r.offsetHeight!==r.clientHeight&&(i=(0,h.getScrollbarWidth)(n.rootDocument)),t){var a=n.getSetting("fixedRowsBottom"),s=n.getSetting("totalRows");o+=this.sumCellSizes(0,e+1),o-=n.wtViewport.getViewportHeight()-this.sumCellSizes(s-a,s),o+=1}else o+=this.sumCellSizes(n.getSetting("fixedRowsTop"),e);return o+=i,this.setScrollPosition(o)}},{key:"getTableParentOffset",value:function(){return this.mainTableScrollableElement===this.wot.rootWindow?this.wot.wtTable.holderOffset.top:0}},{key:"getScrollPosition",value:function(){return(0,h.getScrollTop)(this.mainTableScrollableElement,this.wot.rootWindow)}},{key:"adjustHeaderBordersPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.wot.wtTable.holder.parentNode,r=this.wot.getSetting("totalColumns");r?(0,h.removeClass)(n,"emptyColumns"):(0,h.addClass)(n,"emptyColumns");var o=!1;if(!t){var i=this.wot.getSetting("fixedRowsTop"),a=this.cachedFixedRowsTop!==i,s=this.wot.getSetting("columnHeaders");if((a||0===i)&&s.length>0){var l=(0,h.hasClass)(n,"innerBorderTop");this.cachedFixedRowsTop=this.wot.getSetting("fixedRowsTop"),e||0===this.wot.getSetting("totalRows")?((0,h.addClass)(n,"innerBorderTop"),o=!l):((0,h.removeClass)(n,"innerBorderTop"),o=l)}}if(0===this.wot.getSetting("rowHeaders").length){var u=this.clone.wtTable.THEAD.querySelectorAll("th:nth-of-type(2)");if(u)for(var c=0;c<u.length;c++)u[c].style["border-left-width"]=0}return o}}],[{key:"OVERLAY_NAME",get:function(){return p.CLONE_TOP}}]),n}(v.Overlay);t.TopOverlay=m},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=r(n(7)),a=r(n(8)),s=r(n(4)),l=r(n(110)),u=r(n(403)),c=r(n(200)),d=n(5);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,s.default)(e);if(t){var o=(0,s.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,a.default)(this,n)}}var f=function(e){(0,i.default)(n,e);var t=h(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return n}(l.default);(0,d.mixin)(f,u.default),(0,d.mixin)(f,c.default);var v=f;t.default=v},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=r(n(2)),a=n(10),s=n(5),l=n(75),u=r(n(405)),c=r(n(406)),d=r(n(407)),h=r(n(408)),f=r(n(394)),v=r(n(409)),p=function(){function e(t){(0,o.default)(this,e);var n=[];if(this.guid="wt_".concat((0,l.randomString)()),this.rootDocument=t.table.ownerDocument,this.rootWindow=this.rootDocument.defaultView,t.cloneSource?(this.cloneSource=t.cloneSource,this.cloneOverlay=t.cloneOverlay,this.wtSettings=t.cloneSource.wtSettings,this.wtTable=this.cloneOverlay.createTable(this,t.table),this.wtScroll=new d.default(this),this.wtViewport=t.cloneSource.wtViewport,this.wtEvent=new u.default(this),this.selections=this.cloneSource.selections):(this.wtSettings=new h.default(this,t),this.wtTable=new f.default(this,t.table),this.wtScroll=new d.default(this),this.wtViewport=new v.default(this),this.wtEvent=new u.default(this),this.selections=this.getSetting("selections"),this.wtOverlays=new c.default(this),this.exportSettingsAsClassNames()),this.wtTable.THEAD.childNodes.length&&this.wtTable.THEAD.childNodes[0].childNodes.length){for(var r=0,i=this.wtTable.THEAD.childNodes[0].childNodes.length;r<i;r++)n.push(this.wtTable.THEAD.childNodes[0].childNodes[r].innerHTML);this.getSetting("columnHeaders").length||this.update("columnHeaders",[function(e,t){(0,a.fastInnerText)(t,n[e])}])}this.drawn=!1,this.drawInterrupted=!1}return(0,i.default)(e,[{key:"draw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.drawInterrupted=!1,e||this.wtTable.isVisible()?this.wtTable.draw(e):this.drawInterrupted=!0,this}},{key:"getCell",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t)return this.wtTable.getCell(e);var n=this.wtSettings.getSetting("totalRows"),r=this.wtSettings.getSetting("fixedRowsTop"),o=this.wtSettings.getSetting("fixedRowsBottom"),i=this.wtSettings.getSetting("fixedColumnsLeft");if(e.row<r&&e.col<i)return this.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell(e);if(e.row<r)return this.wtOverlays.topOverlay.clone.wtTable.getCell(e);if(e.col<i&&e.row>=n-o){if(this.wtOverlays.bottomLeftCornerOverlay&&this.wtOverlays.bottomLeftCornerOverlay.clone)return this.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.getCell(e)}else{if(e.col<i)return this.wtOverlays.leftOverlay.clone.wtTable.getCell(e);if(e.row<n&&e.row>=n-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,r,o){return!(e.col<0||e.row<0)&&this.wtScroll.scrollViewport(e,t,n,r,o)}},{key:"scrollViewportHorizontally",value:function(e,t,n){return!(e<0)&&this.wtScroll.scrollViewportHorizontally(e,t,n)}},{key:"scrollViewportVertically",value:function(e,t,n){return!(e<0)&&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:"exportSettingsAsClassNames",value:function(){var e=this,t=[],n=[];(0,s.objectEach)({rowHeaders:"htRowHeaders",columnHeaders:"htColumnHeaders"},(function(r,o){e.getSetting(o).length&&n.push(r),t.push(r)})),(0,a.removeClass)(this.wtTable.wtRootElement.parentNode,t),(0,a.addClass)(this.wtTable.wtRootElement.parentNode,n)}},{key:"getSetting",value:function(e,t,n,r,o){return this.wtSettings.getSetting(e,t,n,r,o)}},{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,n){"use strict";n(23),n(35);var r=n(0);t.__esModule=!0;var o={ViewportColumnsCalculator:!0,ViewportRowsCalculator:!0},i=r(n(389));t.ViewportColumnsCalculator=i.default;var a=r(n(390));t.ViewportRowsCalculator=a.default;var s=n(199);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===s[e]||(t[e]=s[e]))}))},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(26),n(34),n(19),n(23),n(410);var o=r(n(18)),i=r(n(56)),a=r(n(1)),s=r(n(2)),l=n(10),u=r(n(404)),c=r(n(131)),d=r(n(391)),h=function(){function e(t,n){(0,a.default)(this,e),this.settings=t,this.cellRange=n||null,this.instanceBorders={},this.classNames=[this.settings.className],this.classNameGenerator=this.linearClassNameGenerator(this.settings.className,this.settings.layerLevel)}return(0,s.default)(e,[{key:"getBorder",value:function(e){return this.instanceBorders[e.guid]||(this.instanceBorders[e.guid]=new u.default(e,this.settings)),this.instanceBorders[e.guid]}},{key:"isEmpty",value:function(){return null===this.cellRange}},{key:"add",value:function(e){return this.isEmpty()?this.cellRange=new d.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.getOuterTopLeftCorner(),t=this.cellRange.getOuterBottomRightCorner();return[e.row,e.col,t.row,t.col]}},{key:"addClassAtCoords",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=e.wtTable.getCell(new c.default(t,n));if("object"===(0,i.default)(a)){var s=r;o&&(s=this.classNameGenerator(a),this.classNames.includes(s)||this.classNames.push(s)),(0,l.addClass)(a,s)}return this}},{key:"linearClassNameGenerator",value:function(e,t){return function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(0===t||0===o)return e;var i=o>=0?o:t,a=e,s=0===(i-=1)?e:"".concat(e,"-").concat(i);if((0,l.hasClass)(r,s)){var u=i+1;a="".concat(e,"-").concat(u)}else a=n(r,i);return a}}},{key:"draw",value:function(e){if(this.isEmpty())this.settings.border&&this.getBorder(e).disappear();else{var t=e.wtTable.getRenderedRowsCount(),n=e.wtTable.getRenderedColumnsCount(),r=this.getCorners(),i=(0,o.default)(r,4),a=i[0],s=i[1],u=i[2],c=i[3],d=this.settings,h=d.highlightHeaderClassName,f=d.highlightColumnClassName,v=d.highlightRowClassName,p=d.highlightOnlyClosestHeader,g=d.selectionType,m=void 0===g||["active-header","header"].includes(g);if(m&&null!==s&&null!==c)for(var y=0,E=0;E<n;E+=1){var w=e.wtTable.columnFilter.renderedToSource(E);if(w>=s&&w<=c){var C=e.wtTable.getColumnHeaders(w),R=C.length-1;p&&C.length>1&&(C=[C[R]]);for(var T=0;T<C.length;T+=1){var b=[],S=C[T];h&&b.push(h),f&&b.push(f),T=p?R:T;var O=e.getSetting("onBeforeHighlightingColumnHeader",w,T,{selectionType:g,columnCursor:y,selectionWidth:c-s+1,classNames:b});O!==w&&(S=e.wtTable.getColumnHeader(O,T)),(0,l.addClass)(S,b)}y+=1}}if(null!==a&&null!==u)for(var _=0,I=0;I<t;I+=1){var M=e.wtTable.rowFilter.renderedToSource(I);if(m&&M>=a&&M<=u){var N=e.wtTable.getRowHeaders(M),k=N.length-1;p&&N.length>1&&(N=[N[k]]);for(var A=0;A<N.length;A+=1){var P=[],x=N[A];h&&P.push(h),v&&P.push(v),A=p?k:A;var D=e.getSetting("onBeforeHighlightingRowHeader",M,A,{selectionType:g,rowCursor:_,selectionHeight:u-a+1,classNames:P});D!==M&&(x=e.wtTable.getRowHeader(D,A)),(0,l.addClass)(x,P)}_+=1}if(null!==s&&null!==c)for(var L=0;L<n;L+=1){var H=e.wtTable.columnFilter.renderedToSource(L);M>=a&&M<=u&&H>=s&&H<=c?this.settings.className&&this.addClassAtCoords(e,M,H,this.settings.className,this.settings.markIntersections):M>=a&&M<=u?v&&this.addClassAtCoords(e,M,H,v):H>=s&&H<=c&&f&&this.addClassAtCoords(e,M,H,f);var F=e.getSetting("onAfterDrawSelection",M,H,this.settings.layerLevel);"string"==typeof F&&this.addClassAtCoords(e,M,H,F)}}e.getSetting("onBeforeDrawBorders",r,this.settings.className),this.settings.border&&this.getBorder(e).appear(r)}}},{key:"destroy",value:function(){Object.values(this.instanceBorders).forEach((function(e){return e.destroy()}))}}]),e}();t.default=h},function(e,t,n){var r=n(57),o=n(124),i=n(74),a=n(147).f,s=function(e){return function(t){for(var n,s=i(t),l=o(s),u=l.length,c=0,d=[];u>c;)n=l[c++],r&&!a.call(s,n)||d.push(e?[n,s[n]]:s[n]);return d}};e.exports={entries:s(!0),values:s(!1)}},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.BaseEditor=t.EDITOR_STATE=t.EDITOR_TYPE=void 0;var o=r(n(18)),i=r(n(7)),a=r(n(8)),s=r(n(4)),l=r(n(1)),u=r(n(2));n(532),n(129);var c=n(38),d=n(20),h=n(5),f=r(n(533));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,s.default)(e);if(t){var o=(0,s.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,a.default)(this,n)}}t.EDITOR_TYPE="base";var p=Object.freeze({VIRGIN:"STATE_VIRGIN",EDITING:"STATE_EDITING",WAITING:"STATE_WAITING",FINISHED:"STATE_FINISHED"});t.EDITOR_STATE=p;var g=function(){function e(t){(0,l.default)(this,e),this.hot=t,this.instance=t,this.state=p.VIRGIN,this._opened=!1,this._fullEditMode=!1,this._closeCallback=null,this.TD=null,this.row=null,this.col=null,this.prop=null,this.originalValue=null,this.cellProperties=null,this.init()}return(0,u.default)(e,[{key:"_fireCallbacks",value:function(e){this._closeCallback&&(this._closeCallback(e),this._closeCallback=null)}},{key:"init",value:function(){}},{key:"getValue",value:function(){throw Error("Editor getValue() method unimplemented")}},{key:"setValue",value:function(){throw Error("Editor setValue() method unimplemented")}},{key:"open",value:function(){throw Error("Editor open() method unimplemented")}},{key:"close",value:function(){throw Error("Editor close() method unimplemented")}},{key:"prepare",value:function(e,t,n,r,o,i){this.TD=r,this.row=e,this.col=t,this.prop=n,this.originalValue=o,this.cellProperties=i,this.state=p.VIRGIN}},{key:"extend",value:function(){return function(e){(0,i.default)(n,e);var t=v(n);function n(){return(0,l.default)(this,n),t.apply(this,arguments)}return n}(this.constructor)}},{key:"saveValue",value:function(e,t){var n,r,i,a;if(t){var s=this.hot.getSelectedLast();n=Math.max(Math.min(s[0],s[2]),0),r=Math.max(Math.min(s[1],s[3]),0),i=Math.max(s[0],s[2]),a=Math.max(s[1],s[3])}else{var l=[this.row,this.col,null,null];n=l[0],r=l[1],i=l[2],a=l[3]}var u=this.hot.runHooks("modifyGetCellCoords",n,r);if(Array.isArray(u)){var c=(0,o.default)(u,2);n=c[0],r=c[1]}this.hot.populateFromArray(n,r,e,i,a,"edit")}},{key:"beginEditing",value:function(e,t){if(this.state===p.VIRGIN){var n=this.hot,r=n.rowIndexMapper.getRenderableFromVisualIndex(this.row),o=n.columnIndexMapper.getRenderableFromVisualIndex(this.col);if(n.view.scrollViewport(new c.CellCoords(r,o)),this.state=p.EDITING,this.isInFullEditMode()){var i="string"==typeof e?e:(0,d.stringify)(this.originalValue);this.setValue(i)}this.open(t),this._opened=!0,this.focus(),n.view.render(),n.runHooks("afterBeginEditing",this.row,this.col)}}},{key:"finishEditing",value:function(e,t,n){var r,o=this;if(n){var i=this._closeCallback;this._closeCallback=function(e){i&&i(e),n(e),o.hot.view.render()}}if(!this.isWaiting())if(this.state!==p.VIRGIN){if(this.state===p.EDITING){if(e)return this.cancelChanges(),void this.hot.view.render();var a=this.getValue();r=this.hot.getSettings().trimWhitespace?[["string"==typeof a?String.prototype.trim.call(a||""):a]]:[[a]],this.state=p.WAITING,this.saveValue(r,t),this.hot.getCellValidator(this.cellProperties)?this.hot.addHookOnce("postAfterValidate",(function(e){o.state=p.FINISHED,o.discardEditor(e)})):(this.state=p.FINISHED,this.discardEditor(!0))}}else this.hot._registerTimeout((function(){o._fireCallbacks(!0)}))}},{key:"cancelChanges",value:function(){this.state=p.FINISHED,this.discardEditor()}},{key:"discardEditor",value:function(e){this.state===p.FINISHED&&(!1===e&&!0!==this.cellProperties.allowInvalid?(this.hot.selectCell(this.row,this.col),this.focus(),this.state=p.EDITING,this._fireCallbacks(!1)):(this.close(),this._opened=!1,this._fullEditMode=!1,this.state=p.VIRGIN,this._fireCallbacks(!0)))}},{key:"enableFullEditMode",value:function(){this._fullEditMode=!0}},{key:"isInFullEditMode",value:function(){return this._fullEditMode}},{key:"isOpened",value:function(){return this._opened}},{key:"isWaiting",value:function(){return this.state===p.WAITING}},{key:"getEditedCellsLayerClass",value:function(){switch(this.checkEditorSection()){case"right":return"ht_clone_right";case"left":return"ht_clone_left";case"bottom":return"ht_clone_bottom";case"bottom-right-corner":return"ht_clone_bottom_right_corner";case"bottom-left-corner":return"ht_clone_bottom_left_corner";case"top":return"ht_clone_top";case"top-right-corner":return"ht_clone_top_right_corner";case"top-left-corner":return"ht_clone_top_left_corner";default:return"ht_clone_master"}}},{key:"getEditedCell",value:function(){return this.hot.getCell(this.row,this.col,!0)}},{key:"checkEditorSection",value:function(){var e=this.hot.countRows(),t="";return this.row<this.hot.getSettings().fixedRowsTop?t=this.col<this.hot.getSettings().fixedColumnsLeft?"top-left-corner":"top":this.hot.getSettings().fixedRowsBottom&&this.row>=e-this.hot.getSettings().fixedRowsBottom?t=this.col<this.hot.getSettings().fixedColumnsLeft?"bottom-left-corner":"bottom":this.col<this.hot.getSettings().fixedColumnsLeft&&(t="left"),t}}],[{key:"EDITOR_TYPE",get:function(){return"base"}}]),e}();t.BaseEditor=g,(0,h.mixin)(g,f.default)},function(e,t,n){var r=n(21),o=n(256),i=n(32),a=n(46),s=n(130).onFreeze,l=Object.freeze;r({target:"Object",stat:!0,forced:i((function(){l(1)})),sham:!o},{freeze:function(e){return l&&a(e)?l(s(e)):e}})},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(3),o=n(5),i={_hooksStorage:Object.create(null),addHook:function(e,t){return this._hooksStorage[e]||(this._hooksStorage[e]=[]),this.hot.addHook(e,t),this._hooksStorage[e].push(t),this},removeHooksByKey:function(e){var t=this;(0,r.arrayEach)(this._hooksStorage[e]||[],(function(n){t.hot.removeHook(e,n)}))},clearHooks:function(){var e=this;(0,o.objectEach)(this._hooksStorage,(function(t,n){return e.removeHooksByKey(n)})),this._hooksStorage={}}};(0,o.defineGetter)(i,"MIXIN_NAME","hooksRefRegisterer",{writable:!1,enumerable:!1});var a=i;t.default=a},function(e,t,n){var r=n(21),o=n(535);r({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},function(e,t,n){"use strict";var r=n(74),o=n(96),i=n(58),a=n(108),s=Math.min,l=[].lastIndexOf,u=!!l&&1/[1].lastIndexOf(1,-0)<0,c=a("lastIndexOf"),d=u||!c;e.exports=d?function(e){if(u)return l.apply(this,arguments)||0;var t=r(this),n=i(t.length),a=n-1;for(arguments.length>1&&(a=s(a,o(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in t&&t[a]===e)return a||0;return-1}:l},function(e,t,n){var r=n(107),o=n(68),i=n(117),a=n(58),s=function(e){return function(t,n,s,l){r(n);var u=o(t),c=i(u),d=a(u.length),h=e?d-1:0,f=e?-1:1;if(s<2)for(;;){if(h in c){l=c[h],h+=f;break}if(h+=f,e?h<0:d<=h)throw TypeError("Reduce of empty array with no initial value")}for(;e?h>=0:d>h;h+=f)h in c&&(l=n(l,c[h],h,u));return l}};e.exports={left:s(!1),right:s(!0)}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.createPriorityMap=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.errorPriorityExists,n=e.errorPriorityNaN,r=new Map;function h(e,o){if(!(0,a.isNumeric)(e))throw new Error(n(e));if(r.has(e))throw new Error(t(e));r.set(e,o)}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=u.get(e)||u.get(l),n=(0,i.default)(t,2),a=n[0],s=n[1];return(0,o.default)(r).sort((function(e,t){return e[0]<t[0]?a:s})).map((function(e){return e[1]}))}return t=(0,s.isFunction)(t)?t:c,n=(0,s.isFunction)(n)?n:d,{addItem:h,getItems:f}},t.DESC=t.ASC=void 0;var o=r(n(25)),i=r(n(18));n(12),n(39),n(9),n(11),n(13),n(77),n(81);var a=n(24),s=n(53),l="asc";t.ASC=l;t.DESC="desc";var u=new Map([[l,[-1,1]],["desc",[1,-1]]]),c=function(e){return"The priority '".concat(e,"' is already declared in a map.")},d=function(e){return"The priority '".concat(e,"' is not a number.")}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.createUniqueSet=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.errorItemExists,n=new Set;function r(e){if(n.has(e))throw new Error(t(e));n.add(e)}function s(){return(0,o.default)(n)}return t=(0,i.isFunction)(t)?t:a,{addItem:r,getItems:s}};var o=r(n(25));n(12),n(9),n(62),n(11),n(13);var i=n(53),a=function(e){return"'".concat(e,"' value is already declared in a unique set.")}},function(e,t,n){"use strict";var r=n(14),o=n(0);t.__esModule=!0,t.default=void 0;var i=o(n(18)),a=o(n(111)),s=o(n(25)),l=o(n(1)),u=o(n(2));n(12),n(9),n(11),n(22),n(13),n(59),n(60);var c=n(10),d=o(n(31)),h=n(45),f=r(n(38)),v=n(413),p=new WeakMap,g=function(){function e(t){(0,l.default)(this,e),this.instance=t,this.eventManager=new d.default(t),this.settings=t.getSettings(),this.THEAD=void 0,this.TBODY=void 0,this.wt=void 0,this.activeWt=void 0,this.postponedAdjustElementsSize=!1,p.set(this,{selectionMouseDown:!1,mouseDown:void 0,table:void 0,lastWidth:0,lastHeight:0}),this.createElements(),this.registerEvents(),this.initializeWalkontable()}return(0,u.default)(e,[{key:"render",value:function(){this.instance.isRenderSuspended()||(this.postponedAdjustElementsSize&&(this.postponedAdjustElementsSize=!1,this.adjustElementsSize(!0)),this.wt.draw(!this.instance.forceFullRender),this.instance.forceFullRender=!1,this.instance.renderCall=!1)}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.instance.isRenderSuspended()?this.postponedAdjustElementsSize=!0:this.wt.wtOverlays.adjustElementsSize(e)}},{key:"getCellAtCoords",value:function(e,t){var n=this.wt.getCell(e,t);return n<0?null:n}},{key:"scrollViewport",value:function(e,t,n,r,o){return this.wt.scrollViewport(e,t,n,r,o)}},{key:"scrollViewportHorizontally",value:function(e,t,n){return this.wt.scrollViewportHorizontally(e,t,n)}},{key:"scrollViewportVertically",value:function(e,t,n){return this.wt.scrollViewportVertically(e,t,n)}},{key:"createElements",value:function(){var e=p.get(this),t=this.instance,n=t.rootElement,r=t.rootDocument,o=n.getAttribute("style");o&&n.setAttribute("data-originalstyle",o),(0,c.addClass)(n,"handsontable"),e.table=r.createElement("TABLE"),(0,c.addClass)(e.table,"htCore"),this.instance.getSettings().tableClassName&&(0,c.addClass)(e.table,this.instance.getSettings().tableClassName),this.THEAD=r.createElement("THEAD"),e.table.appendChild(this.THEAD),this.TBODY=r.createElement("TBODY"),e.table.appendChild(this.TBODY),this.instance.table=e.table,this.instance.container.insertBefore(e.table,this.instance.container.firstChild)}},{key:"registerEvents",value:function(){var e=this,t=p.get(this),n=this.instance,r=n.rootElement,o=n.rootDocument,i=n.selection,a=o.documentElement;this.eventManager.addEventListener(r,"mousedown",(function(n){if(t.selectionMouseDown=!0,!e.isTextSelectionAllowed(n.target)){var r=e.instance.rootWindow;(0,c.clearTextSelection)(r),n.preventDefault(),r.focus()}})),this.eventManager.addEventListener(r,"mouseup",(function(){t.selectionMouseDown=!1})),this.eventManager.addEventListener(r,"mousemove",(function(n){t.selectionMouseDown&&!e.isTextSelectionAllowed(n.target)&&(e.settings.fragmentSelection&&(0,c.clearTextSelection)(e.instance.rootWindow),n.preventDefault())})),this.eventManager.addEventListener(a,"keyup",(function(e){i.isInProgress()&&!e.shiftKey&&i.finish()})),this.eventManager.addEventListener(a,"mouseup",(function(n){i.isInProgress()&&(0,h.isLeftClick)(n)&&i.finish(),t.mouseDown=!1,!(0,c.isOutsideInput)(o.activeElement)&&(i.isSelected()||i.isSelectedByAnyHeader()||r.contains(n.target)||(0,h.isRightClick)(n))||e.instance.unlisten()})),this.eventManager.addEventListener(a,"contextmenu",(function(e){i.isInProgress()&&(0,h.isRightClick)(e)&&(i.finish(),t.mouseDown=!1)})),this.eventManager.addEventListener(a,"touchend",(function(){i.isInProgress()&&i.finish(),t.mouseDown=!1})),this.eventManager.addEventListener(a,"mousedown",(function(n){var i=n.target,s=n.x||n.clientX,l=n.y||n.clientY,u=n.target;if(!t.mouseDown&&r&&e.instance.view){var d=e.instance.view.wt.wtTable.holder;if(u===d){var h=(0,c.getScrollbarWidth)(o);if(o.elementFromPoint(s+h,l)!==d||o.elementFromPoint(s,l+h)!==d)return}else for(;u!==a;){if(null===u){if(n.isTargetWebComponent)break;return}if(u===r)return;u=u.parentNode}("function"==typeof e.settings.outsideClickDeselects?e.settings.outsideClickDeselects(i):e.settings.outsideClickDeselects)?e.instance.deselectCell():e.instance.destroyEditor(!1,!1)}})),this.eventManager.addEventListener(t.table,"selectstart",(function(t){e.settings.fragmentSelection||(0,c.isInput)(t.target)||t.preventDefault()}))}},{key:"translateFromRenderableToVisualCoords",value:function(e){var t=e.row,n=e.col;return(0,a.default)(f.CellCoords,(0,s.default)(this.translateFromRenderableToVisualIndex(t,n)))}},{key:"translateFromRenderableToVisualIndex",value:function(e,t){var n=e>=0?this.instance.rowIndexMapper.getVisualFromRenderableIndex(e):e,r=t>=0?this.instance.columnIndexMapper.getVisualFromRenderableIndex(t):t;return null===n&&(n=e),null===r&&(r=t),[n,r]}},{key:"countRenderableIndexes",value:function(e,t){var n=Math.min(e.getNotTrimmedIndexesLength(),t),r=e.getFirstNotHiddenIndex(n-1,-1);return null===r?0:e.getRenderableFromVisualIndex(r)+1}},{key:"countRenderableColumns",value:function(){return this.countRenderableIndexes(this.instance.columnIndexMapper,this.settings.maxCols)}},{key:"countRenderableRows",value:function(){return this.countRenderableIndexes(this.instance.rowIndexMapper,this.settings.maxRows)}},{key:"countNotHiddenRowIndexes",value:function(e,t){return this.countNotHiddenIndexes(e,t,this.instance.rowIndexMapper,this.countRenderableRows())}},{key:"countNotHiddenColumnIndexes",value:function(e,t){return this.countNotHiddenIndexes(e,t,this.instance.columnIndexMapper,this.countRenderableColumns())}},{key:"countNotHiddenIndexes",value:function(e,t,n,r){if(isNaN(e)||e<0)return 0;var o=n.getFirstNotHiddenIndex(e,t),i=n.getRenderableFromVisualIndex(o);if(!Number.isInteger(i))return 0;var a=0;return t<0?a=i+1:t>0&&(a=r-i),a}},{key:"initializeWalkontable",value:function(){var e=this,t=p.get(this),n={externalRowCalculator:this.instance.getPlugin("autoRowSize")&&this.instance.getPlugin("autoRowSize").isEnabled(),table:t.table,preventOverflow:function(){return e.settings.preventOverflow},preventWheel:function(){return e.settings.preventWheel},stretchH:function(){return e.settings.stretchH},data:function(t,n){var r;return(r=e.instance).getDataAtCell.apply(r,(0,s.default)(e.translateFromRenderableToVisualIndex(t,n)))},totalRows:function(){return e.countRenderableRows()},totalColumns:function(){return e.countRenderableColumns()},fixedColumnsLeft:function(){var t=e.instance.countCols(),n=Math.min(parseInt(e.settings.fixedColumnsLeft,10),t)-1;return e.countNotHiddenColumnIndexes(n,-1)},fixedRowsTop:function(){var t=e.instance.countRows(),n=Math.min(parseInt(e.settings.fixedRowsTop,10),t)-1;return e.countNotHiddenRowIndexes(n,-1)},fixedRowsBottom:function(){var t=e.instance.countRows(),n=Math.max(t-parseInt(e.settings.fixedRowsBottom,10),0);return e.countNotHiddenRowIndexes(n,1)},shouldRenderLeftOverlay:function(){return e.settings.fixedColumnsLeft>0||n.rowHeaders().length>0},shouldRenderTopOverlay:function(){return e.settings.fixedRowsTop>0||n.columnHeaders().length>0},shouldRenderBottomOverlay:function(){return e.settings.fixedRowsBottom>0},minSpareRows:function(){return e.settings.minSpareRows},renderAllRows:this.settings.renderAllRows,rowHeaders:function(){var t=[];return e.instance.hasRowHeaders()&&t.push((function(t,n){var r=t>=0?e.instance.rowIndexMapper.getVisualFromRenderableIndex(t):t;e.appendRowHeader(r,n)})),e.instance.runHooks("afterGetRowHeaderRenderers",t),t},columnHeaders:function(){var t=[];return e.instance.hasColHeaders()&&t.push((function(t,n){var r=t>=0?e.instance.columnIndexMapper.getVisualFromRenderableIndex(t):t;e.appendColHeader(r,n)})),e.instance.runHooks("afterGetColumnHeaderRenderers",t),t},columnWidth:function(t){var n=e.instance.columnIndexMapper.getVisualFromRenderableIndex(t);return e.instance.getColWidth(null===n?t:n)},rowHeight:function(t){var n=e.instance.rowIndexMapper.getVisualFromRenderableIndex(t);return e.instance.getRowHeight(null===n?t:n)},cellRenderer:function(t,n,r){var o=e.translateFromRenderableToVisualIndex(t,n),a=(0,i.default)(o,2),s=a[0],l=a[1],u=e.instance.runHooks("modifyGetCellCoords",s,l),c=s,d=l;if(Array.isArray(u)){var h=(0,i.default)(u,2);c=h[0],d=h[1]}var f=e.instance.getCellMeta(c,d),v=e.instance.colToProp(d),p=e.instance.getDataAtRowProp(c,v);e.instance.hasHook("beforeValueRender")&&(p=e.instance.runHooks("beforeValueRender",p,f)),e.instance.runHooks("beforeRenderer",r,s,l,v,p,f),e.instance.getCellRenderer(f)(e.instance,r,s,l,v,p,f),e.instance.runHooks("afterRenderer",r,s,l,v,p,f)},selections:this.instance.selection.highlight,hideBorderOnMouseDownOver:function(){return e.settings.fragmentSelection},onWindowResize:function(){e.instance&&!e.instance.isDestroyed&&e.instance.refreshDimensions()},onCellMouseDown:function(n,r,o,i){var a=e.translateFromRenderableToVisualCoords(r),s={row:!1,column:!1,cell:!1};e.instance.listen(),e.activeWt=i,t.mouseDown=!0,e.instance.runHooks("beforeOnCellMouseDown",n,a,o,s),(0,h.isImmediatePropagationStopped)(n)||((0,v.handleMouseEvent)(n,{coords:a,selection:e.instance.selection,controller:s}),e.instance.runHooks("afterOnCellMouseDown",n,a,o),e.activeWt=e.wt)},onCellContextMenu:function(n,r,o,i){var a=e.translateFromRenderableToVisualCoords(r);e.activeWt=i,t.mouseDown=!1,e.instance.selection.isInProgress()&&e.instance.selection.finish(),e.instance.runHooks("beforeOnCellContextMenu",n,a,o),(0,h.isImmediatePropagationStopped)(n)||(e.instance.runHooks("afterOnCellContextMenu",n,a,o),e.activeWt=e.wt)},onCellMouseOut:function(t,n,r,o){var i=e.translateFromRenderableToVisualCoords(n);e.activeWt=o,e.instance.runHooks("beforeOnCellMouseOut",t,i,r),(0,h.isImmediatePropagationStopped)(t)||(e.instance.runHooks("afterOnCellMouseOut",t,i,r),e.activeWt=e.wt)},onCellMouseOver:function(n,r,o,i){var a=e.translateFromRenderableToVisualCoords(r),s={row:!1,column:!1,cell:!1};e.activeWt=i,e.instance.runHooks("beforeOnCellMouseOver",n,a,o,s),(0,h.isImmediatePropagationStopped)(n)||(t.mouseDown&&(0,v.handleMouseEvent)(n,{coords:a,selection:e.instance.selection,controller:s}),e.instance.runHooks("afterOnCellMouseOver",n,a,o),e.activeWt=e.wt)},onCellMouseUp:function(t,n,r,o){var i=e.translateFromRenderableToVisualCoords(n);e.activeWt=o,e.instance.runHooks("beforeOnCellMouseUp",t,i,r),(0,h.isImmediatePropagationStopped)(t)||e.instance.isDestroyed||(e.instance.runHooks("afterOnCellMouseUp",t,i,r),e.activeWt=e.wt)},onCellCornerMouseDown:function(t){t.preventDefault(),e.instance.runHooks("afterOnCellCornerMouseDown",t)},onCellCornerDblClick:function(t){t.preventDefault(),e.instance.runHooks("afterOnCellCornerDblClick",t)},beforeDraw:function(t,n){return e.beforeRender(t,n)},onDraw:function(t){return e.onDraw(t)},onScrollVertically:function(){return e.instance.runHooks("afterScrollVertically")},onScrollHorizontally:function(){return e.instance.runHooks("afterScrollHorizontally")},onBeforeRemoveCellClassNames:function(){return e.instance.runHooks("beforeRemoveCellClassNames")},onBeforeHighlightingRowHeader:function(t,n,r){var o=e.instance.rowIndexMapper,i=o.getVisualFromRenderableIndex(t),a=e.instance.runHooks("beforeHighlightingRowHeader",i,n,r);return o.getRenderableFromVisualIndex(o.getFirstNotHiddenIndex(a,1))},onBeforeHighlightingColumnHeader:function(t,n,r){var o=e.instance.columnIndexMapper,i=o.getVisualFromRenderableIndex(t),a=e.instance.runHooks("beforeHighlightingColumnHeader",i,n,r);return o.getRenderableFromVisualIndex(o.getFirstNotHiddenIndex(a,1))},onAfterDrawSelection:function(t,n,r){var o,a=e.translateFromRenderableToVisualIndex(t,n),s=(0,i.default)(a,2),l=s[0],u=s[1],c=e.instance.selection.getSelectedRange(),d=c.size();if(d>0){var h=(null!=r?r:0)+1-d,f=c.peekByIndex(h);o=[f.from.row,f.from.col,f.to.row,f.to.col]}return e.instance.runHooks("afterDrawSelection",l,u,o,r)},onBeforeDrawBorders:function(t,n){var r=(0,i.default)(t,4),o=r[0],a=r[1],s=r[2],l=r[3],u=[e.instance.rowIndexMapper.getVisualFromRenderableIndex(o),e.instance.columnIndexMapper.getVisualFromRenderableIndex(a),e.instance.rowIndexMapper.getVisualFromRenderableIndex(s),e.instance.columnIndexMapper.getVisualFromRenderableIndex(l)];return e.instance.runHooks("beforeDrawBorders",u,n)},onBeforeTouchScroll:function(){return e.instance.runHooks("beforeTouchScroll")},onAfterMomentumScroll:function(){return e.instance.runHooks("afterMomentumScroll")},onBeforeStretchingColumnWidth:function(t,n){var r=e.instance.columnIndexMapper.getVisualFromRenderableIndex(n);return e.instance.runHooks("beforeStretchingColumnWidth",t,r)},onModifyRowHeaderWidth:function(t){return e.instance.runHooks("modifyRowHeaderWidth",t)},onModifyGetCellCoords:function(t,n,r){var o=e.instance.rowIndexMapper,a=e.instance.columnIndexMapper,s=n>=0?a.getVisualFromRenderableIndex(n):n,l=t>=0?o.getVisualFromRenderableIndex(t):t,u=e.instance.runHooks("modifyGetCellCoords",l,s,r);if(Array.isArray(u)){var c=(0,i.default)(u,4),d=c[0],h=c[1],f=c[2],v=c[3];return[d>=0?o.getRenderableFromVisualIndex(o.getFirstNotHiddenIndex(d,1)):d,h>=0?a.getRenderableFromVisualIndex(a.getFirstNotHiddenIndex(h,1)):h,f>=0?o.getRenderableFromVisualIndex(o.getFirstNotHiddenIndex(f,-1)):f,v>=0?a.getRenderableFromVisualIndex(a.getFirstNotHiddenIndex(v,-1)):v]}},viewportRowCalculatorOverride:function(t){var n=e.settings.viewportRowRenderingOffset;if("auto"===n&&e.settings.fixedRowsTop&&(n=10),n>0||"auto"===n){var r=e.countRenderableRows(),o=t.startRow,i=t.endRow;if("number"==typeof n)t.startRow=Math.max(o-n,0),t.endRow=Math.min(i+n,r-1);else if("auto"===n){var a=Math.ceil(i/r*12);t.startRow=Math.max(o-a,0),t.endRow=Math.min(i+a,r-1)}}e.instance.runHooks("afterViewportRowCalculatorOverride",t)},viewportColumnCalculatorOverride:function(t){var n=e.settings.viewportColumnRenderingOffset;if("auto"===n&&e.settings.fixedColumnsLeft&&(n=10),n>0||"auto"===n){var r=e.countRenderableColumns(),o=t.startColumn,i=t.endColumn;if("number"==typeof n&&(t.startColumn=Math.max(o-n,0),t.endColumn=Math.min(i+n,r-1)),"auto"===n){var a=Math.ceil(i/r*6);t.startColumn=Math.max(o-a,0),t.endColumn=Math.min(i+a,r-1)}}e.instance.runHooks("afterViewportColumnCalculatorOverride",t)},rowHeaderWidth:function(){return e.settings.rowHeaderWidth},columnHeaderHeight:function(){var t=e.instance.runHooks("modifyColumnHeaderHeight");return e.settings.columnHeaderHeight||t}};this.instance.runHooks("beforeInitWalkontable",n),this.wt=new f.default(n),this.activeWt=this.wt;var r=this.wt.wtTable.spreader,o=this.instance.rootElement.getBoundingClientRect(),a=o.width,l=o.height;this.setLastSize(a,l),this.eventManager.addEventListener(r,"mousedown",(function(e){e.target===r&&3===e.which&&e.stopPropagation()})),this.eventManager.addEventListener(r,"contextmenu",(function(e){e.target===r&&3===e.which&&e.stopPropagation()})),this.eventManager.addEventListener(this.instance.rootDocument.documentElement,"click",(function(){e.settings.observeDOMVisibility&&e.wt.drawInterrupted&&(e.instance.forceFullRender=!0,e.render())}))}},{key:"isTextSelectionAllowed",value:function(e){if((0,c.isInput)(e))return!0;var t=(0,c.isChildOf)(e,this.instance.view.wt.wtTable.spreader);return!(!0!==this.settings.fragmentSelection||!t)||(!("cell"!==this.settings.fragmentSelection||!this.isSelectedOnlyCell()||!t)||!(this.settings.fragmentSelection||!this.isCellEdited()||!this.isSelectedOnlyCell()))}},{key:"isMouseDown",value:function(){return p.get(this).mouseDown}},{key:"isSelectedOnlyCell",value:function(){var e,t;return null!==(e=null===(t=this.instance.getSelectedRangeLast())||void 0===t?void 0:t.isSingle())&&void 0!==e&&e}},{key:"isCellEdited",value:function(){var e=this.instance.getActiveEditor();return e&&e.isOpened()}},{key:"beforeRender",value:function(e,t){e&&this.instance.runHooks("beforeRender",this.instance.forceFullRender,t)}},{key:"onDraw",value:function(e){e&&this.instance.runHooks("afterRender",this.instance.forceFullRender)}},{key:"appendRowHeader",value:function(e,t){if(t.firstChild){var n=t.firstChild;if(!(0,c.hasClass)(n,"relative"))return(0,c.empty)(t),void this.appendRowHeader(e,t);this.updateCellHeader(n.querySelector(".rowHeader"),e,this.instance.getRowHeader)}else{var r=this.instance,o=r.rootDocument,i=r.getRowHeader,a=o.createElement("div"),s=o.createElement("span");a.className="relative",s.className="rowHeader",this.updateCellHeader(s,e,i),a.appendChild(s),t.appendChild(a)}this.instance.runHooks("afterGetRowHeader",e,t)}},{key:"appendColHeader",value:function(e,t){if(t.firstChild){var n=t.firstChild;(0,c.hasClass)(n,"relative")?this.updateCellHeader(n.querySelector(".colHeader"),e,this.instance.getColHeader):((0,c.empty)(t),this.appendColHeader(e,t))}else{var r=this.instance.rootDocument,o=r.createElement("div"),i=r.createElement("span");o.className="relative",i.className="colHeader",this.updateCellHeader(i,e,this.instance.getColHeader),o.appendChild(i),t.appendChild(o)}this.instance.runHooks("afterGetColHeader",e,t)}},{key:"updateCellHeader",value:function(e,t,n){var r=t,o=this.wt.wtOverlays.getParentOverlay(e)||this.wt;e.parentNode&&((0,c.hasClass)(e,"colHeader")?r=o.wtTable.columnFilter.sourceToRendered(t):(0,c.hasClass)(e,"rowHeader")&&(r=o.wtTable.rowFilter.sourceToRendered(t))),r>-1?(0,c.fastInnerHTML)(e,n(t)):((0,c.fastInnerText)(e,String.fromCharCode(160)),(0,c.addClass)(e,"cornerHeader"))}},{key:"maximumVisibleElementWidth",value:function(e){var t=this.wt.wtViewport.getWorkspaceWidth()-e;return t>0?t:0}},{key:"maximumVisibleElementHeight",value:function(e){var t=this.wt.wtViewport.getWorkspaceHeight()-e;return t>0?t:0}},{key:"setLastSize",value:function(e,t){var n=p.get(this),r=[e,t];n.lastWidth=r[0],n.lastHeight=r[1]}},{key:"getLastSize",value:function(){var e=p.get(this);return{width:e.lastWidth,height:e.lastHeight}}},{key:"mainViewIsActive",value:function(){return this.wt===this.activeWt}},{key:"destroy",value:function(){this.wt.destroy(),this.eventManager.destroy()}}]),e}();t.default=g},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(59),n(60),n(23);var o=r(n(1)),i=r(n(2)),a=n(5),s=n(136),l=n(3),u=n(24),c=n(53),d=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];(0,o.default)(this,e),this.hot=t,this.data=n,this.dataType="array",this.colToProp=function(){},this.propToCol=function(){}}return(0,i.default)(e,[{key:"modifyRowData",value:function(e){var t;return this.hot.hasHook("modifyRowData")&&(t=this.hot.runHooks("modifyRowData",e)),void 0===t||Number.isInteger(t)?this.data[e]:t}},{key:"getData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.data&&0!==this.data.length?this.getByRange(null,null,e):this.data}},{key:"setData",value:function(e){this.data=e}},{key:"getAtColumn",value:function(e){var t=this,n=[];return(0,l.arrayEach)(this.data,(function(r,o){var i=t.getAtCell(o,e);n.push(i)})),n}},{key:"getAtRow",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=void 0===t&&void 0===n,s=null,l=null;if(s=this.modifyRowData(e),Array.isArray(s))l=[],i?s.forEach((function(t,n){l[n]=r.getAtPhysicalCell(e,n,s)})):(0,u.rangeEach)(t,n,(function(n){l[n-t]=r.getAtPhysicalCell(e,n,s)}));else if((0,a.isObject)(s)||(0,c.isFunction)(s))if(l=o?[]:{},!i||o){var d=0,h=this.countFirstRowKeys()-1;(0,u.rangeEach)(d,h,(function(i){var u=r.colToProp(i);if(i>=(t||d)&&i<=(n||h)&&!Number.isInteger(u)){var c=r.getAtPhysicalCell(e,u,s);o?l.push(c):(0,a.setProperty)(l,u,c)}}))}else(0,a.objectEach)(s,(function(t,n){(0,a.setProperty)(l,n,r.getAtPhysicalCell(e,n,s))}));return l}},{key:"setAtCell",value:function(e,t,n){if(!(e>=this.countRows()||t>=this.countFirstRowKeys())){if(this.hot.hasHook("modifySourceData")){var r=(0,a.createObjectPropListener)(n);this.hot.runHooks("modifySourceData",e,this.propToCol(t),r,"set"),r.isTouched()&&(n=r.value)}Number.isInteger(t)?this.data[e][t]=n:(0,a.setProperty)(this.data[e],t,n)}}},{key:"getAtPhysicalCell",value:function(e,t,n){var r=null;if(n&&(r="string"==typeof t?(0,a.getProperty)(n,t):"function"==typeof t?t(n):n[t]),this.hot.hasHook("modifySourceData")){var o=(0,a.createObjectPropListener)(r);this.hot.runHooks("modifySourceData",e,this.colToProp(t),o,"get"),o.isTouched()&&(r=o.value)}return r}},{key:"getAtCell",value:function(e,t){var n=this.modifyRowData(e);return this.getAtPhysicalCell(e,this.colToProp(t),n)}},{key:"getByRange",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=!1,i=null,a=null,s=null,l=null;null===t||null===n?(o=!0,i=0,s=this.countRows()-1):(i=Math.min(t.row,n.row),a=Math.min(t.col,n.col),s=Math.max(t.row,n.row),l=Math.max(t.col,n.col));var c=[];return(0,u.rangeEach)(i,s,(function(t){c.push(o?e.getAtRow(t,void 0,void 0,r):e.getAtRow(t,a,l,r))})),c}},{key:"countRows",value:function(){if(this.hot.hasHook("modifySourceLength")){var e=this.hot.runHooks("modifySourceLength");if(Number.isInteger(e))return e}return this.data.length}},{key:"countFirstRowKeys",value:function(){return(0,s.countFirstRowKeys)(this.data)}},{key:"destroy",value:function(){this.data=null,this.hot=null}}]),e}();t.default=d},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.IndexMapper=void 0,n(12),n(39),n(9),n(11),n(13),n(30),n(17),n(26),n(34),n(163);var o=r(n(25)),i=r(n(1)),a=r(n(2)),s=n(3),l=n(414),u=n(548),c=r(n(55)),d=n(5),h=n(20),f=n(550),v=function(){function e(){var t=this;(0,i.default)(this,e),this.indexesSequence=new l.IndexesSequence,this.trimmingMapsCollection=new u.AggregatedCollection((function(e){return e.some((function(e){return!0===e}))}),!1),this.hidingMapsCollection=new u.AggregatedCollection((function(e){return e.some((function(e){return!0===e}))}),!1),this.variousMapsCollection=new u.MapCollection,this.hidingChangesObservable=new f.ChangesObservable({initialIndexValue:!1}),this.notTrimmedIndexesCache=[],this.notHiddenIndexesCache=[],this.isBatched=!1,this.indexesSequenceChanged=!1,this.trimmedIndexesChanged=!1,this.hiddenIndexesChanged=!1,this.renderablePhysicalIndexesCache=[],this.fromPhysicalToVisualIndexesCache=new Map,this.fromVisualToRenderableIndexesCache=new Map,this.indexesSequence.addLocalHook("change",(function(){t.indexesSequenceChanged=!0,t.updateCache(),t.runLocalHooks("change",t.indexesSequence,null)})),this.trimmingMapsCollection.addLocalHook("change",(function(e){t.trimmedIndexesChanged=!0,t.updateCache(),t.runLocalHooks("change",e,t.trimmingMapsCollection)})),this.hidingMapsCollection.addLocalHook("change",(function(e){t.hiddenIndexesChanged=!0,t.updateCache(),t.runLocalHooks("change",e,t.hidingMapsCollection)})),this.variousMapsCollection.addLocalHook("change",(function(e){t.runLocalHooks("change",e,t.variousMapsCollection)}))}return(0,a.default)(e,[{key:"suspendOperations",value:function(){this.isBatched=!0}},{key:"resumeOperations",value:function(){this.isBatched=!1,this.updateCache()}},{key:"createChangesObserver",value:function(e){if("hiding"!==e)throw new Error('Unsupported index map type "'.concat(e,'".'));return this.hidingChangesObservable.createObserver()}},{key:"createAndRegisterIndexMap",value:function(e,t,n){return this.registerMap(e,(0,l.createIndexMap)(t,n))}},{key:"registerMap",value:function(e,t){if(this.trimmingMapsCollection.get(e)||this.hidingMapsCollection.get(e)||this.variousMapsCollection.get(e))throw Error('Map with name "'.concat(e,'" has been already registered.'));t instanceof l.TrimmingMap?this.trimmingMapsCollection.register(e,t):t instanceof l.HidingMap?this.hidingMapsCollection.register(e,t):this.variousMapsCollection.register(e,t);var n=this.getNumberOfIndexes();return n>0&&t.init(n),t}},{key:"unregisterMap",value:function(e){this.trimmingMapsCollection.unregister(e),this.hidingMapsCollection.unregister(e),this.variousMapsCollection.unregister(e)}},{key:"unregisterAll",value:function(){this.trimmingMapsCollection.unregisterAll(),this.hidingMapsCollection.unregisterAll(),this.variousMapsCollection.unregisterAll()}},{key:"getPhysicalFromVisualIndex",value:function(e){var t=this.notTrimmedIndexesCache[e];return(0,h.isDefined)(t)?t:null}},{key:"getPhysicalFromRenderableIndex",value:function(e){var t=this.renderablePhysicalIndexesCache[e];return(0,h.isDefined)(t)?t:null}},{key:"getVisualFromPhysicalIndex",value:function(e){var t=this.fromPhysicalToVisualIndexesCache.get(e);return(0,h.isDefined)(t)?t:null}},{key:"getVisualFromRenderableIndex",value:function(e){return this.getVisualFromPhysicalIndex(this.getPhysicalFromRenderableIndex(e))}},{key:"getRenderableFromVisualIndex",value:function(e){var t=this.fromVisualToRenderableIndexesCache.get(e);return(0,h.isDefined)(t)?t:null}},{key:"getFirstNotHiddenIndex",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e-t,o=this.getPhysicalFromVisualIndex(e);return null===o?!0===n&&r!==e-t?this.getFirstNotHiddenIndex(r,-t,!1,r):null:!1===this.isHidden(o)?e:this.getFirstNotHiddenIndex(e+t,t,n,r)}},{key:"initToLength",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getNumberOfIndexes();this.notTrimmedIndexesCache=(0,o.default)(new Array(e).keys()),this.notHiddenIndexesCache=(0,o.default)(new Array(e).keys()),this.suspendOperations(),this.indexesSequence.init(e),this.trimmingMapsCollection.initEvery(e),this.resumeOperations(),this.suspendOperations(),this.hidingMapsCollection.initEvery(e),this.variousMapsCollection.initEvery(e),this.resumeOperations(),this.runLocalHooks("init")}},{key:"getIndexesSequence",value:function(){return this.indexesSequence.getValues()}},{key:"setIndexesSequence",value:function(e){this.indexesSequence.setValues(e)}},{key:"getNotTrimmedIndexes",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===t)return this.notTrimmedIndexesCache;var n=this.getIndexesSequence();return n.filter((function(t){return!1===e.isTrimmed(t)}))}},{key:"getNotTrimmedIndexesLength",value:function(){return this.getNotTrimmedIndexes().length}},{key:"getNotHiddenIndexes",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===t)return this.notHiddenIndexesCache;var n=this.getIndexesSequence();return n.filter((function(t){return!1===e.isHidden(t)}))}},{key:"getNotHiddenIndexesLength",value:function(){return this.getNotHiddenIndexes().length}},{key:"getRenderableIndexes",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===t)return this.renderablePhysicalIndexesCache;var n=this.getNotTrimmedIndexes();return n.filter((function(t){return!1===e.isHidden(t)}))}},{key:"getRenderableIndexesLength",value:function(){return this.getRenderableIndexes().length}},{key:"getNumberOfIndexes",value:function(){return this.getIndexesSequence().length}},{key:"moveIndexes",value:function(e,t){var n=this;"number"==typeof e&&(e=[e]);var r=(0,s.arrayMap)(e,(function(e){return n.getPhysicalFromVisualIndex(e)})),o=this.getNotTrimmedIndexesLength(),i=e.length,a=(0,l.getListWithRemovedItems)(this.getIndexesSequence(),r),u=o-i;if(t+i<o){var c=a.filter((function(e){return!1===n.isTrimmed(e)}))[t];u=a.indexOf(c)}this.setIndexesSequence((0,l.getListWithInsertedItems)(a,u,r))}},{key:"isTrimmed",value:function(e){return this.trimmingMapsCollection.getMergedValueAtIndex(e)}},{key:"isHidden",value:function(e){return this.hidingMapsCollection.getMergedValueAtIndex(e)}},{key:"insertIndexes",value:function(e,t){var n=this.getNotTrimmedIndexes()[e],r=(0,h.isDefined)(n)?n:this.getNumberOfIndexes(),o=this.getIndexesSequence().includes(n)?this.getIndexesSequence().indexOf(n):this.getNumberOfIndexes(),i=(0,s.arrayMap)(new Array(t).fill(r),(function(e,t){return e+t}));this.suspendOperations(),this.indexesSequence.insert(o,i),this.trimmingMapsCollection.insertToEvery(o,i),this.hidingMapsCollection.insertToEvery(o,i),this.variousMapsCollection.insertToEvery(o,i),this.resumeOperations()}},{key:"removeIndexes",value:function(e){this.suspendOperations(),this.indexesSequence.remove(e),this.trimmingMapsCollection.removeFromEvery(e),this.hidingMapsCollection.removeFromEvery(e),this.variousMapsCollection.removeFromEvery(e),this.resumeOperations()}},{key:"updateCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.indexesSequenceChanged||this.trimmedIndexesChanged||this.hiddenIndexesChanged;(!0===e||!1===this.isBatched&&!0===t)&&(this.trimmingMapsCollection.updateCache(),this.hidingMapsCollection.updateCache(),this.notTrimmedIndexesCache=this.getNotTrimmedIndexes(!1),this.notHiddenIndexesCache=this.getNotHiddenIndexes(!1),this.renderablePhysicalIndexesCache=this.getRenderableIndexes(!1),this.cacheFromPhysicalToVisualIndexes(),this.cacheFromVisualToRenderabIendexes(),this.hiddenIndexesChanged&&this.hidingChangesObservable.emit(this.hidingMapsCollection.getMergedValues()),this.runLocalHooks("cacheUpdated",{indexesSequenceChanged:this.indexesSequenceChanged,trimmedIndexesChanged:this.trimmedIndexesChanged,hiddenIndexesChanged:this.hiddenIndexesChanged}),this.indexesSequenceChanged=!1,this.trimmedIndexesChanged=!1,this.hiddenIndexesChanged=!1)}},{key:"cacheFromPhysicalToVisualIndexes",value:function(){var e=this.getNotTrimmedIndexesLength();this.fromPhysicalToVisualIndexesCache.clear();for(var t=0;t<e;t+=1){var n=this.getPhysicalFromVisualIndex(t);this.fromPhysicalToVisualIndexesCache.set(n,t)}}},{key:"cacheFromVisualToRenderabIendexes",value:function(){var e=this.getRenderableIndexesLength();this.fromVisualToRenderableIndexesCache.clear();for(var t=0;t<e;t+=1){var n=this.getPhysicalFromRenderableIndex(t),r=this.getVisualFromPhysicalIndex(n);this.fromVisualToRenderableIndexesCache.set(r,t)}}}]),e}();t.IndexMapper=v,(0,d.mixin)(v,c.default)},function(e,t,n){"use strict";var r=n(68),o=n(151),i=n(58);e.exports=function(e){for(var t=r(this),n=i(t.length),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,u=void 0===l?n:o(l,n);u>s;)t[s++]=e;return t}},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.HidingMap=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(7)),s=r(n(8)),l=r(n(4)),u=n(205),c=n(3);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var h=function(e){(0,a.default)(n,e);var t=d(n);function n(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,o.default)(this,n),t.call(this,e)}return(0,i.default)(n,[{key:"getHiddenIndexes",value:function(){return(0,c.arrayReduce)(this.getValues(),(function(e,t,n){return t&&e.push(n),e}),[])}}]),n}(u.PhysicalIndexToValueMap);t.HidingMap=h},function(e,t,n){var r=n(4);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.LinkedPhysicalIndexToValueMap=void 0,n(19),n(77),n(12),n(9),n(13),n(26),n(34),n(41);var o=r(n(25)),i=r(n(1)),a=r(n(2)),s=r(n(28)),l=r(n(16)),u=r(n(7)),c=r(n(8)),d=r(n(4)),h=r(n(37)),f=n(164),v=n(206),p=n(165),g=n(415),m=n(53);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,d.default)(e);if(t){var o=(0,d.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}var E=function(e){(0,u.default)(n,e);var t=y(n);function n(){var e;(0,i.default)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,h.default)((0,s.default)(e),"orderOfIndexes",[]),e}return(0,a.default)(n,[{key:"getValues",value:function(){var e=this;return this.orderOfIndexes.map((function(t){return e.indexedValues[t]}))}},{key:"setValues",value:function(e){this.orderOfIndexes=(0,o.default)(Array(e.length).keys()),(0,l.default)((0,d.default)(n.prototype),"setValues",this).call(this,e)}},{key:"setValueAtIndex",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.orderOfIndexes.length;return e<this.indexedValues.length&&(this.indexedValues[e]=t,!1===this.orderOfIndexes.includes(e)&&this.orderOfIndexes.splice(n,0,e),this.runLocalHooks("change"),!0)}},{key:"clearValue",value:function(e){this.orderOfIndexes=(0,p.getListWithRemovedItems)(this.orderOfIndexes,[e]),(0,m.isFunction)(this.initValueOrFn)?(0,l.default)((0,d.default)(n.prototype),"setValueAtIndex",this).call(this,e,this.initValueOrFn(e)):(0,l.default)((0,d.default)(n.prototype),"setValueAtIndex",this).call(this,e,this.initValueOrFn)}},{key:"getLength",value:function(){return this.orderOfIndexes.length}},{key:"setDefaultValues",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.orderOfIndexes.length=0,(0,l.default)((0,d.default)(n.prototype),"setDefaultValues",this).call(this,e)}},{key:"insert",value:function(e,t){this.indexedValues=(0,v.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),this.orderOfIndexes=(0,g.getIncreasedIndexes)(this.orderOfIndexes,t),(0,l.default)((0,d.default)(n.prototype),"insert",this).call(this,e,t)}},{key:"remove",value:function(e){this.indexedValues=(0,v.getListWithRemovedItems)(this.indexedValues,e),this.orderOfIndexes=(0,p.getListWithRemovedItems)(this.orderOfIndexes,e),this.orderOfIndexes=(0,g.getDecreasedIndexes)(this.orderOfIndexes,e),(0,l.default)((0,d.default)(n.prototype),"remove",this).call(this,e)}},{key:"getEntries",value:function(){var e=this;return this.orderOfIndexes.map((function(t){return[t,e.getValueAtIndex(t)]}))}}]),n}(f.IndexMap);t.LinkedPhysicalIndexToValueMap=E},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.TrimmingMap=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(7)),s=r(n(8)),l=r(n(4)),u=n(205),c=n(3);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var h=function(e){(0,a.default)(n,e);var t=d(n);function n(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,o.default)(this,n),t.call(this,e)}return(0,i.default)(n,[{key:"getTrimmedIndexes",value:function(){return(0,c.arrayReduce)(this.getValues(),(function(e,t,n){return t&&e.push(n),e}),[])}}]),n}(u.PhysicalIndexToValueMap);t.TrimmingMap=h},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.IndexesSequence=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(16)),s=r(n(7)),l=r(n(8)),u=r(n(4)),c=n(164),d=n(165),h=n(416);function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var v=function(e){(0,s.default)(n,e);var t=f(n);function n(){return(0,o.default)(this,n),t.call(this,(function(e){return e}))}return(0,i.default)(n,[{key:"insert",value:function(e,t){var r=(0,h.getIncreasedIndexes)(this.indexedValues,t);this.indexedValues=(0,d.getListWithInsertedItems)(r,e,t),(0,a.default)((0,u.default)(n.prototype),"insert",this).call(this,e,t)}},{key:"remove",value:function(e){var t=(0,d.getListWithRemovedItems)(this.indexedValues,e);this.indexedValues=(0,h.getDecreasedIndexes)(t,e),(0,a.default)((0,u.default)(n.prototype),"remove",this).call(this,e)}}]),n}(c.IndexMap);t.IndexesSequence=v},function(e,t,n){"use strict";n(23),n(35),t.__esModule=!0;var r=n(549);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(207);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}))},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.AggregatedCollection=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(7)),s=r(n(8)),l=r(n(4)),u=n(207),c=n(3),d=n(20);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var f=function(e){(0,a.default)(n,e);var t=h(n);function n(e,r){var i;return(0,o.default)(this,n),(i=t.call(this)).mergedValuesCache=[],i.aggregationFunction=e,i.fallbackValue=r,i}return(0,i.default)(n,[{key:"getMergedValues",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===e)return this.mergedValuesCache;if(0===this.getLength())return[];for(var t=(0,c.arrayMap)(this.get(),(function(e){return e.getValues()})),n=[],r=(0,d.isDefined)(t[0])&&t[0].length||0,o=0;o<r;o+=1){for(var i=[],a=0;a<this.getLength();a+=1)i.push(t[a][o]);n.push(i)}return(0,c.arrayMap)(n,this.aggregationFunction)}},{key:"getMergedValueAtIndex",value:function(e,t){var n=this.getMergedValues(t)[e];return(0,d.isDefined)(n)?n:this.fallbackValue}},{key:"updateCache",value:function(){this.mergedValuesCache=this.getMergedValues(!1)}}]),n}(u.MapCollection);t.AggregatedCollection=f},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.ChangesObservable=void 0,n(12),n(9),n(62),n(11),n(13),n(163),n(23),n(22);var o=r(n(1)),i=r(n(2)),a=r(n(88)),s=r(n(89)),l=n(553),u=n(554),c=new WeakMap,d=new WeakMap,h=new WeakMap,f=new WeakMap,v=new WeakMap,p=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.initialIndexValue;(0,o.default)(this,e),c.set(this,{writable:!0,value:new Set}),d.set(this,{writable:!0,value:[]}),h.set(this,{writable:!0,value:[]}),f.set(this,{writable:!0,value:!1}),v.set(this,{writable:!0,value:!1}),(0,s.default)(this,v,null!=n&&n)}return(0,i.default)(e,[{key:"createObserver",value:function(){var e=this,t=new l.ChangesObserver;return(0,a.default)(this,c).add(t),t.addLocalHook("unsubscribe",(function(){(0,a.default)(e,c).delete(t)})),t._writeInitialChanges((0,u.arrayDiff)((0,a.default)(this,d),(0,a.default)(this,h))),t}},{key:"emit",value:function(e){var t=(0,a.default)(this,h);(0,a.default)(this,f)&&(0,a.default)(this,d).length===e.length||(0===e.length?e=new Array(t.length).fill((0,a.default)(this,v)):(0,s.default)(this,d,new Array(e.length).fill((0,a.default)(this,v))),(0,a.default)(this,f)||((0,s.default)(this,f,!0),t=(0,a.default)(this,d)));var n=(0,u.arrayDiff)(t,e);(0,a.default)(this,c).forEach((function(e){return e._write(n)})),(0,s.default)(this,h,e)}}]),e}();t.ChangesObservable=p},function(e,t){e.exports=function(e,t){return t.get?t.get.call(e):t.value},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.ChangesObserver=void 0,n(12),n(9),n(11),n(22),n(13);var o=r(n(1)),i=r(n(2)),a=r(n(89)),s=r(n(88)),l=n(5),u=r(n(55)),c=new WeakMap,d=function(){function e(){(0,o.default)(this,e),c.set(this,{writable:!0,value:[]})}return(0,i.default)(e,[{key:"subscribe",value:function(e){return this.addLocalHook("change",e),this._write((0,s.default)(this,c)),this}},{key:"unsubscribe",value:function(){return this.runLocalHooks("unsubscribe"),this.clearLocalHooks(),this}},{key:"_write",value:function(e){return e.length>0&&this.runLocalHooks("change",e),this}},{key:"_writeInitialChanges",value:function(e){(0,a.default)(this,c,e)}}]),e}();t.ChangesObserver=d,(0,l.mixin)(d,u.default)},function(e,t,n){"use strict";t.__esModule=!0,t.arrayDiff=function(e,t){for(var n=[],r=0,o=0;r<e.length&&o<t.length;r++,o++)e[r]!==t[o]&&n.push({op:"replace",index:o,oldValue:e[r],newValue:t[o]});for(;r<t.length;r++)n.push({op:"insert",index:r,oldValue:void 0,newValue:t[r]});for(;o<e.length;o++)n.push({op:"remove",index:o,oldValue:e[o],newValue:void 0});return n}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.registerPhraseFormatter=t.register=u,t.getPhraseFormatters=t.getAll=function(){return l()};var o=r(n(98)),i=r(n(556)),a=(0,o.default)("phraseFormatters"),s=a.register,l=a.getValues;function u(e,t){s(e,t)}u("pluralize",i.default)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(Array.isArray(e)&&Number.isInteger(t))return e[t];return e},n(59),n(60)},function(e,t,n){"use strict";var r=n(0),o=n(14);t.__esModule=!0,t.default=void 0;var i,a=r(n(37)),s=o(n(15)),l=(i={languageCode:"en-US"},(0,a.default)(i,s.CONTEXTMENU_ITEMS_NO_ITEMS,"No available options"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ROW_ABOVE,"Insert row above"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ROW_BELOW,"Insert row below"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_INSERT_LEFT,"Insert column left"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_INSERT_RIGHT,"Insert column right"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_REMOVE_ROW,["Remove row","Remove rows"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_REMOVE_COLUMN,["Remove column","Remove columns"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_UNDO,"Undo"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_REDO,"Redo"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_READ_ONLY,"Read only"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_CLEAR_COLUMN,"Clear column"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT,"Alignment"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT,"Left"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER,"Center"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT,"Right"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY,"Justify"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT_TOP,"Top"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE,"Middle"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM,"Bottom"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_FREEZE_COLUMN,"Freeze column"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN,"Unfreeze column"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_BORDERS,"Borders"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_BORDERS_TOP,"Top"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_BORDERS_RIGHT,"Right"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_BORDERS_BOTTOM,"Bottom"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_BORDERS_LEFT,"Left"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_REMOVE_BORDERS,"Remove border(s)"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_ADD_COMMENT,"Add comment"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_EDIT_COMMENT,"Edit comment"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_REMOVE_COMMENT,"Delete comment"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT,"Read-only comment"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_MERGE_CELLS,"Merge cells"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_UNMERGE_CELLS,"Unmerge cells"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_COPY,"Copy"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_CUT,"Cut"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD,"Insert child row"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD,"Detach from parent"),(0,a.default)(i,s.CONTEXTMENU_ITEMS_HIDE_COLUMN,["Hide column","Hide columns"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_SHOW_COLUMN,["Show column","Show columns"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_HIDE_ROW,["Hide row","Hide rows"]),(0,a.default)(i,s.CONTEXTMENU_ITEMS_SHOW_ROW,["Show row","Show rows"]),(0,a.default)(i,s.FILTERS_CONDITIONS_NONE,"None"),(0,a.default)(i,s.FILTERS_CONDITIONS_EMPTY,"Is empty"),(0,a.default)(i,s.FILTERS_CONDITIONS_NOT_EMPTY,"Is not empty"),(0,a.default)(i,s.FILTERS_CONDITIONS_EQUAL,"Is equal to"),(0,a.default)(i,s.FILTERS_CONDITIONS_NOT_EQUAL,"Is not equal to"),(0,a.default)(i,s.FILTERS_CONDITIONS_BEGINS_WITH,"Begins with"),(0,a.default)(i,s.FILTERS_CONDITIONS_ENDS_WITH,"Ends with"),(0,a.default)(i,s.FILTERS_CONDITIONS_CONTAINS,"Contains"),(0,a.default)(i,s.FILTERS_CONDITIONS_NOT_CONTAIN,"Does not contain"),(0,a.default)(i,s.FILTERS_CONDITIONS_GREATER_THAN,"Greater than"),(0,a.default)(i,s.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL,"Greater than or equal to"),(0,a.default)(i,s.FILTERS_CONDITIONS_LESS_THAN,"Less than"),(0,a.default)(i,s.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL,"Less than or equal to"),(0,a.default)(i,s.FILTERS_CONDITIONS_BETWEEN,"Is between"),(0,a.default)(i,s.FILTERS_CONDITIONS_NOT_BETWEEN,"Is not between"),(0,a.default)(i,s.FILTERS_CONDITIONS_AFTER,"After"),(0,a.default)(i,s.FILTERS_CONDITIONS_BEFORE,"Before"),(0,a.default)(i,s.FILTERS_CONDITIONS_TODAY,"Today"),(0,a.default)(i,s.FILTERS_CONDITIONS_TOMORROW,"Tomorrow"),(0,a.default)(i,s.FILTERS_CONDITIONS_YESTERDAY,"Yesterday"),(0,a.default)(i,s.FILTERS_VALUES_BLANK_CELLS,"Blank cells"),(0,a.default)(i,s.FILTERS_DIVS_FILTER_BY_CONDITION,"Filter by condition"),(0,a.default)(i,s.FILTERS_DIVS_FILTER_BY_VALUE,"Filter by value"),(0,a.default)(i,s.FILTERS_LABELS_CONJUNCTION,"And"),(0,a.default)(i,s.FILTERS_LABELS_DISJUNCTION,"Or"),(0,a.default)(i,s.FILTERS_BUTTONS_SELECT_ALL,"Select all"),(0,a.default)(i,s.FILTERS_BUTTONS_CLEAR,"Clear"),(0,a.default)(i,s.FILTERS_BUTTONS_OK,"OK"),(0,a.default)(i,s.FILTERS_BUTTONS_CANCEL,"Cancel"),(0,a.default)(i,s.FILTERS_BUTTONS_PLACEHOLDER_SEARCH,"Search"),(0,a.default)(i,s.FILTERS_BUTTONS_PLACEHOLDER_VALUE,"Value"),(0,a.default)(i,s.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE,"Second value"),i);t.default=l},function(e,t,n){"use strict";n(35),n(49),n(30),n(71),n(23),n(72);var r=n(0);t.__esModule=!0,t.createHighlight=function(e,t){return g(e)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({type:e},t))};var o=r(n(37)),i=r(n(98)),a=n(85),s=r(n(559)),l=r(n(561)),u=r(n(562)),c=r(n(563)),d=r(n(564)),h=r(n(566));function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var v=(0,i.default)("highlight/types"),p=v.register,g=v.getItem;p(a.ACTIVE_HEADER_TYPE,s.default),p(a.AREA_TYPE,l.default),p(a.CELL_TYPE,u.default),p(a.CUSTOM_SELECTION_TYPE,c.default),p(a.FILL_TYPE,d.default),p(a.HEADER_TYPE,h.default)},function(e,t,n){"use strict";n(35),n(49),n(30),n(71),n(23),n(72);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(37)),i=r(n(90)),a=n(85),s=r(n(113));function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var c=function(e){var t=e.activeHeaderClassName,n=(0,i.default)(e,["activeHeaderClassName"]);return new s.default(u(u({highlightHeaderClassName:t},n),{},{selectionType:a.ACTIVE_HEADER_TYPE}))};t.default=c},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n(35),n(49),n(30),n(71),n(23),n(72);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(37)),i=r(n(90)),a=n(85),s=r(n(113));function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var c=function(e){var t=e.layerLevel,n=e.areaCornerVisible,r=(0,i.default)(e,["layerLevel","areaCornerVisible"]);return new s.default(u(u({className:"area",markIntersections:!0,layerLevel:Math.min(t,7),border:{width:1,color:"#4b89ff",cornerVisible:n}},r),{},{selectionType:a.AREA_TYPE}))};t.default=c},function(e,t,n){"use strict";n(35),n(49),n(30),n(71),n(23),n(72);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(37)),i=r(n(90)),a=n(85),s=r(n(113));function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var c=function(e){var t=e.cellCornerVisible,n=(0,i.default)(e,["cellCornerVisible"]);return new s.default(u(u({className:"current",border:{width:2,color:"#4b89ff",cornerVisible:t}},n),{},{selectionType:a.CELL_TYPE}))};t.default=c},function(e,t,n){"use strict";n(35),n(49),n(30),n(71),n(23),n(72);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(37)),i=r(n(90)),a=n(85),s=r(n(113));function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var c=function(e){var t=e.border,n=e.visualCellRange,r=(0,i.default)(e,["border","visualCellRange"]);return new s.default(u(u(u({},t),r),{},{selectionType:a.CUSTOM_SELECTION_TYPE}),n)};t.default=c},function(e,t,n){"use strict";n(35),n(49),n(30),n(71),n(23),n(72);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(37));n(210);var i=n(85),a=r(n(113));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u=function(e){var t=Object.assign({},e);return new a.default(l(l({className:"fill",border:{width:1,color:"#ff0000"}},t),{},{selectionType:i.FILL_TYPE}))};t.default=u},function(e,t,n){"use strict";var r=n(57),o=n(32),i=n(124),a=n(177),s=n(147),l=n(68),u=n(117),c=Object.assign,d=Object.defineProperty;e.exports=!c||o((function(){if(r&&1!==c({b:1},c(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||"abcdefghijklmnopqrst"!=i(c({},t)).join("")}))?function(e,t){for(var n=l(e),o=arguments.length,c=1,d=a.f,h=s.f;o>c;)for(var f,v=u(arguments[c++]),p=d?i(v).concat(d(v)):i(v),g=p.length,m=0;g>m;)f=p[m++],r&&!h.call(v,f)||(n[f]=v[f]);return n}:c},function(e,t,n){"use strict";n(35),n(49),n(30),n(71),n(23),n(72);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(37)),i=r(n(90)),a=n(85),s=r(n(113));function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var c=function(e){var t=e.headerClassName,n=e.rowClassName,r=e.columnClassName,o=(0,i.default)(e,["headerClassName","rowClassName","columnClassName"]);return new s.default(u(u({className:"highlight",highlightHeaderClassName:t,highlightRowClassName:n,highlightColumnClassName:r},o),{},{highlightOnlyClosestHeader:!0,selectionType:a.HEADER_TYPE}))};t.default=c},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(18)),i=r(n(63));n(12),n(9),n(62),n(11),n(13),n(19),n(43),n(26),n(34),n(59),n(60),n(23);var a,s=r(n(1)),l=r(n(2)),u=r(n(423)),c=n(85),d=r(n(568)),h=n(38),f=n(166),v=n(5),p=n(20),g=n(3),m=r(n(55)),y=r(n(569)),E=n(167),w=n(64),C=function(){function e(t,n){var r=this;(0,s.default)(this,e),this.settings=t,this.tableProps=n,this.inProgress=!1,this.selectedByCorner=!1,this.selectedByRowHeader=new Set,this.selectedByColumnHeader=new Set,this.selectedRange=new d.default,this.highlight=new u.default({headerClassName:t.currentHeaderClassName,activeHeaderClassName:t.activeHeaderClassName,rowClassName:t.currentRowClassName,columnClassName:t.currentColClassName,disabledCellSelection:function(e,t){return r.tableProps.isDisabledCellSelection(e,t)},cellCornerVisible:function(){return r.isCellCornerVisible.apply(r,arguments)},areaCornerVisible:function(){return r.isAreaCornerVisible.apply(r,arguments)},visualToRenderableCoords:function(e){return r.tableProps.visualToRenderableCoords(e)},renderableToVisualCoords:function(e){return r.tableProps.renderableToVisualCoords(e)}}),this.transformation=new y.default(this.selectedRange,{countRows:function(){return r.tableProps.countRowsTranslated()},countCols:function(){return r.tableProps.countColsTranslated()},visualToRenderableCoords:function(e){return r.tableProps.visualToRenderableCoords(e)},renderableToVisualCoords:function(e){return r.tableProps.renderableToVisualCoords(e)},fixedRowsBottom:function(){return t.fixedRowsBottom},minSpareRows:function(){return t.minSpareRows},minSpareCols:function(){return t.minSpareCols},autoWrapRow:function(){return t.autoWrapRow},autoWrapCol:function(){return t.autoWrapCol}}),this.transformation.addLocalHook("beforeTransformStart",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runLocalHooks.apply(r,["beforeModifyTransformStart"].concat(t))})),this.transformation.addLocalHook("afterTransformStart",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runLocalHooks.apply(r,["afterModifyTransformStart"].concat(t))})),this.transformation.addLocalHook("beforeTransformEnd",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runLocalHooks.apply(r,["beforeModifyTransformEnd"].concat(t))})),this.transformation.addLocalHook("afterTransformEnd",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runLocalHooks.apply(r,["afterModifyTransformEnd"].concat(t))})),this.transformation.addLocalHook("insertRowRequire",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runLocalHooks.apply(r,["insertRowRequire"].concat(t))})),this.transformation.addLocalHook("insertColRequire",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runLocalHooks.apply(r,["insertColRequire"].concat(t))}))}return(0,l.default)(e,[{key:"getSelectedRange",value:function(){return this.selectedRange}},{key:"begin",value:function(){this.inProgress=!0}},{key:"finish",value:function(){this.runLocalHooks("afterSelectionFinished",Array.from(this.selectedRange)),this.inProgress=!1}},{key:"isInProgress",value:function(){return this.inProgress}},{key:"setRangeStart",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r="multiple"===this.settings.selectionMode,o=(0,p.isUndefined)(t)?(0,f.isPressedCtrlKey)():t,i=e.row<0,a=e.col<0,s=i&&a;this.selectedByCorner=s,this.runLocalHooks("beforeSetRangeStart".concat(n?"Only":""),e),(!r||r&&!o&&(0,p.isUndefined)(t))&&this.selectedRange.clear(),this.selectedRange.add(e),0===this.getLayerLevel()&&(this.selectedByRowHeader.clear(),this.selectedByColumnHeader.clear()),!s&&a&&this.selectedByRowHeader.add(this.getLayerLevel()),!s&&i&&this.selectedByColumnHeader.add(this.getLayerLevel()),n||this.setRangeEnd(e)}},{key:"setRangeStartOnly",value:function(e,t){this.setRangeStart(e,t,!0)}},{key:"setRangeEnd",value:function(e){if(!this.selectedRange.isEmpty()){this.runLocalHooks("beforeSetRangeEnd",e),this.begin();var t=this.selectedRange.current();"single"!==this.settings.selectionMode&&t.setTo(new h.CellCoords(e.row,e.col)),this.highlight.getCell().clear(),this.highlight.isEnabledFor(c.CELL_TYPE,t.highlight)&&this.highlight.getCell().add(this.selectedRange.current().highlight).commit().adjustCoordinates(t);var n=this.getLayerLevel();n<this.highlight.layerLevel&&((0,g.arrayEach)(this.highlight.getAreas(),(function(e){e.clear()})),(0,g.arrayEach)(this.highlight.getHeaders(),(function(e){e.clear()})),(0,g.arrayEach)(this.highlight.getActiveHeaders(),(function(e){e.clear()}))),this.highlight.useLayerLevel(n);var r=this.highlight.createOrGetArea(),o=this.highlight.createOrGetHeader(),i=this.highlight.createOrGetActiveHeader();if(r.clear(),o.clear(),i.clear(),this.highlight.isEnabledFor(c.AREA_TYPE,t.highlight)&&(this.isMultiple()||n>=1)&&(r.add(t.from).add(t.to).commit(),1===n)){var a=this.selectedRange.previous();this.highlight.useLayerLevel(n-1).createOrGetArea().add(a.from).commit().adjustCoordinates(a),this.highlight.useLayerLevel(n)}if(this.highlight.isEnabledFor(c.HEADER_TYPE,t.highlight)){var s=0===this.tableProps.countRowsTranslated(),l=0===this.tableProps.countColsTranslated(),u=t;if((s||l)&&(u=t.clone()),s&&(u.from.row=-1),l&&(u.from.col=-1),"single"===this.settings.selectionMode?(this.isSelectedByAnyHeader()&&u.from.normalize(),o.add(u.from).commit()):o.add(u.from).add(u.to).commit(),this.isEntireRowSelected())this.tableProps.countCols()===t.getWidth()&&i.add(new h.CellCoords(t.from.row,-1)).add(new h.CellCoords(t.to.row,-1)).commit();if(this.isEntireColumnSelected())this.tableProps.countRows()===t.getHeight()&&i.add(new h.CellCoords(-1,t.from.col)).add(new h.CellCoords(-1,t.to.col)).commit()}this.runLocalHooks("afterSetRangeEnd",e)}}},{key:"isMultiple",value:function(){var e=(0,v.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!this.isSelectedByCorner(e)&&this.isEntireRowSelected(e)}},{key:"isEntireRowSelected",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return-1===e?this.selectedByRowHeader.size>0:this.selectedByRowHeader.has(e)}},{key:"isSelectedByColumnHeader",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return!this.isSelectedByCorner()&&this.isEntireColumnSelected(e)}},{key:"isEntireColumnSelected",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return-1===e?this.selectedByColumnHeader.size>0:this.selectedByColumnHeader.has(e)}},{key:"isSelectedByAnyHeader",value:function(){return this.isSelectedByRowHeader(-1)||this.isSelectedByColumnHeader(-1)||this.isSelectedByCorner()}},{key:"isSelectedByCorner",value:function(){return this.selectedByCorner}},{key:"inInSelection",value:function(e){return this.selectedRange.includes(e)}},{key:"isCellCornerVisible",value:function(){return this.settings.fillHandle&&!this.tableProps.isEditorOpened()&&!this.isMultiple()}},{key:"isAreaCornerVisible",value:function(e){return(!Number.isInteger(e)||e===this.getLayerLevel())&&(this.settings.fillHandle&&!this.tableProps.isEditorOpened()&&this.isMultiple())}},{key:"clear",value:function(){this.selectedRange.clear(),this.highlight.clear()}},{key:"deselect",value:function(){this.isSelected()&&(this.inProgress=!1,this.clear(),this.runLocalHooks("afterDeselect"))}},{key:"selectAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.tableProps.countRows(),r=this.tableProps.countCols();if(e||t||0!==n&&0!==r){var o=new h.CellCoords(t?-1:0,e?-1:0);this.clear(),this.setRangeStartOnly(o),this.selectedByRowHeader.add(this.getLayerLevel()),this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(new h.CellCoords(n-1,r-1)),this.finish()}}},{key:"selectCells",value:function(e){var t=this,n=(0,E.detectSelectionType)(e);if(n===E.SELECTION_TYPE_EMPTY)return!1;if(n===E.SELECTION_TYPE_UNRECOGNIZED)throw new Error((0,w.toSingleLine)(a||(a=(0,i.default)(["Unsupported format of the selection ranges was passed. To select cells pass \n the coordinates as an array of arrays ([[rowStart, columnStart/columnPropStart, rowEnd, \n columnEnd/columnPropEnd]]) or as an array of CellRange objects."],["Unsupported format of the selection ranges was passed. To select cells pass\\x20\n the coordinates as an array of arrays ([[rowStart, columnStart/columnPropStart, rowEnd,\\x20\n columnEnd/columnPropEnd]]) or as an array of CellRange objects."]))));var r=(0,E.normalizeSelectionFactory)(n,{propToCol:function(e){return t.tableProps.propToCol(e)},keepDirection:!0}),s=this.tableProps.countRows(),l=this.tableProps.countCols(),u=!e.some((function(e){var t=r(e),n=(0,o.default)(t,4),i=n[0],a=n[1],u=n[2],c=n[3];return!((0,E.isValidCoord)(i,s)&&(0,E.isValidCoord)(a,l)&&(0,E.isValidCoord)(u,s)&&(0,E.isValidCoord)(c,l))}));return u&&(this.clear(),(0,g.arrayEach)(e,(function(e){var n=r(e),i=(0,o.default)(n,4),a=i[0],s=i[1],l=i[2],u=i[3];t.setRangeStartOnly(new h.CellCoords(a,s),!1),t.setRangeEnd(new h.CellCoords(l,u)),t.finish()}))),u}},{key:"selectColumns",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r="string"==typeof e?this.tableProps.propToCol(e):e,o="string"==typeof t?this.tableProps.propToCol(t):t,i=this.tableProps.countCols(),a=this.tableProps.countRows(),s=(0,E.isValidCoord)(r,i)&&(0,E.isValidCoord)(o,i);return s&&(this.setRangeStartOnly(new h.CellCoords(n,r)),this.setRangeEnd(new h.CellCoords(a-1,o)),this.finish()),s}},{key:"selectRows",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=this.tableProps.countRows(),o=this.tableProps.countCols(),i=(0,E.isValidCoord)(e,r)&&(0,E.isValidCoord)(t,r);return i&&(this.setRangeStartOnly(new h.CellCoords(e,n)),this.setRangeEnd(new h.CellCoords(t,o-1)),this.finish()),i}},{key:"refresh",value:function(){if(this.highlight.getCustomSelections().forEach((function(e){e.commit()})),this.isSelected()){var e=this.highlight.getCell(),t=this.getLayerLevel();e.commit().adjustCoordinates(this.selectedRange.current());for(var n=0;n<this.selectedRange.size();n+=1){this.highlight.useLayerLevel(n);var r=this.highlight.createOrGetArea(),o=this.highlight.createOrGetHeader(),i=this.highlight.createOrGetActiveHeader();r.commit(),o.commit(),i.commit()}this.highlight.useLayerLevel(t)}}}]),e}();(0,v.mixin)(C,m.default);var R=C;t.default=R},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(26),n(34),n(209),n(12),n(9),n(11),n(13),n(49),n(138);var o=r(n(1)),i=r(n(2)),a=n(38),s=function(){function e(){(0,o.default)(this,e),this.ranges=[]}return(0,i.default)(e,[{key:"isEmpty",value:function(){return 0===this.size()}},{key:"set",value:function(e){return this.clear(),this.ranges.push(new a.CellRange(e)),this}},{key:"add",value:function(e){return this.ranges.push(new a.CellRange(e)),this}},{key:"pop",value:function(){return this.ranges.pop(),this}},{key:"current",value:function(){return this.peekByIndex(0)}},{key:"previous",value:function(){return this.peekByIndex(-1)}},{key:"includes",value:function(e){return this.ranges.some((function(t){return t.includes(e)}))}},{key:"clear",value:function(){return this.ranges.length=0,this}},{key:"size",value:function(){return this.ranges.length}},{key:"peekByIndex",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=this.size()+t-1;return n>=0&&(e=this.ranges[n]),e}},{key:Symbol.iterator,value:function(){return this.ranges[Symbol.iterator]()}}]),e}();t.default=s},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=r(n(2)),a=n(38),s=n(5),l=r(n(55)),u=function(){function e(t,n){(0,o.default)(this,e),this.range=t,this.options=n}return(0,i.default)(e,[{key:"transformStart",value:function(e,t,n){var r=new a.CellCoords(e,t),o=this.range.current().highlight,i=this.options.visualToRenderableCoords(o),s=i.row,l=i.col,u=o,c=0,d=0;if(this.runLocalHooks("beforeTransformStart",r),null!==s&&null!==l){var h=this.options.countRows(),f=this.options.countCols(),v=this.options.fixedRowsBottom(),p=this.options.minSpareRows(),g=this.options.minSpareCols(),m=this.options.autoWrapRow(),y=this.options.autoWrapCol();s+e>h-1?n&&p>0&&!(v&&s>=h-v-1)?(this.runLocalHooks("insertRowRequire",h),h=this.options.countRows()):y&&(r.row=1-h,r.col=l+r.col===f-1?1-f:1):y&&s+r.row<0&&l+r.col>=0&&(r.row=h-1,r.col=l+r.col===0?f-1:-1),l+r.col>f-1?n&&g>0?(this.runLocalHooks("insertColRequire",f),f=this.options.countCols()):m&&(r.row=s+r.row===h-1?1-h:1,r.col=1-f):m&&l+r.col<0&&s+r.row>=0&&(r.row=s+r.row===0?h-1:-1,r.col=f-1);var E=new a.CellCoords(s+r.row,l+r.col);c=0,d=0,E.row<0?(c=-1,E.row=0):E.row>0&&E.row>=h&&(c=1,E.row=h-1),E.col<0?(d=-1,E.col=0):E.col>0&&E.col>=f&&(d=1,E.col=f-1),u=this.options.renderableToVisualCoords(E)}return this.runLocalHooks("afterTransformStart",u,c,d),u}},{key:"transformEnd",value:function(e,t){var n=new a.CellCoords(e,t),r=this.range.current(),o=r.to,i=0,s=0;this.runLocalHooks("beforeTransformEnd",n);var l=this.options.visualToRenderableCoords(r.highlight),u=l.row,c=l.col;if(null!==u&&null!==c){var d=this.options.countRows(),h=this.options.countCols(),f=this.options.visualToRenderableCoords(r.to),v=f.row,p=f.col,g=new a.CellCoords(v+n.row,p+n.col);i=0,s=0,g.row<0?(i=-1,g.row=0):g.row>0&&g.row>=d&&(i=1,g.row=d-1),g.col<0?(s=-1,g.col=0):g.col>0&&g.col>=h&&(s=1,g.col=h-1),o=this.options.renderableToVisualCoords(g)}return this.runLocalHooks("afterTransformEnd",o,i,s),o}}]),e}();(0,s.mixin)(u,l.default);var c=u;t.default=c},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(12),n(39),n(9),n(11),n(13),n(59),n(60),n(19),n(41),n(81),n(33),n(30),n(17),n(29),n(61);var o=r(n(56)),i=r(n(1)),a=r(n(2)),s=n(425),l=n(136),u=n(5),c=n(3),d=n(24),h=n(20),f=(0,l.cellMethodLookupFactory)("copyable",!1),v=function(){function e(t,n,r){(0,i.default)(this,e),this.instance=t,this.tableMeta=r,this.dataSource=n,this.duckSchema=this.dataSource&&this.dataSource[0]?(0,u.duckSchema)(this.dataSource[0]):{},this.colToPropCache=void 0,this.propToColCache=void 0,this.createMap()}return(0,a.default)(e,[{key:"createMap",value:function(){var e=this.getSchema();if(void 0===e)throw new Error("trying to create `columns` definition but you didn't provide `schema` nor `data`");var t,n=this.tableMeta.columns;if(this.colToPropCache=[],this.propToColCache=new Map,n){var r=0,o=0,i=!1;if("function"==typeof n){var a=(0,u.deepObjectSize)(e);r=a>0?a:this.countFirstRowKeys(),i=!0}else{var s=this.tableMeta.maxCols;r=Math.min(s,n.length)}for(t=0;t<r;t++){var l=i?n(t):n[t];if((0,u.isObject)(l)){if(void 0!==l.data){var c=i?o:t;this.colToPropCache[c]=l.data,this.propToColCache.set(l.data,c)}o+=1}}}else this.recursiveDuckColumns(e)}},{key:"countFirstRowKeys",value:function(){return(0,l.countFirstRowKeys)(this.dataSource)}},{key:"recursiveDuckColumns",value:function(e,t,n){var r,i=this,a=t,s=n;return void 0===a&&(a=0,s=""),"object"!==(0,o.default)(e)||Array.isArray(e)||(0,u.objectEach)(e,(function(e,t){null===e?(r=s+t,i.colToPropCache.push(r),i.propToColCache.set(r,a),a+=1):a=i.recursiveDuckColumns(e,a,"".concat(t,"."))})),a}},{key:"colToProp",value:function(e){if(!1===Number.isInteger(e))return e;var t=this.instance.toPhysicalColumn(e);return null===t?e:this.colToPropCache&&(0,h.isDefined)(this.colToPropCache[t])?this.colToPropCache[t]:t}},{key:"propToCol",value:function(e){var t=this.propToColCache.get(e);if((0,h.isDefined)(t))return this.instance.toVisualColumn(t);var n=this.instance.toVisualColumn(e);return null===n?e:n}},{key:"getSchema",value:function(){var e=this.tableMeta.dataSchema;return e?"function"==typeof e?e():e:this.duckSchema}},{key:"createRow",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2?arguments[2]:void 0,o=this.instance.countSourceRows(),i=o,a=0,s=e;("number"!=typeof s||s>=o)&&(s=o),s<this.instance.countRows()&&(i=this.instance.toPhysicalRow(s));var l=this.instance.runHooks("beforeCreateRow",s,n,r);if(!1===l||null===i)return 0;for(var c=this.tableMeta.maxRows,h=this.instance.countCols(),f=[],v=function(){var e=null;"array"===t.instance.dataType?t.tableMeta.dataSchema?e=(0,u.deepClone)(t.getSchema()):(e=[],(0,d.rangeEach)(h-1,(function(){return e.push(null)}))):"function"===t.instance.dataType?e=t.tableMeta.dataSchema(s+a):(e={},(0,u.deepExtend)(e,t.getSchema())),f.push(e),a+=1};a<n&&o+a<c;)v();return this.instance.rowIndexMapper.insertIndexes(s,a),this.spliceData.apply(this,[i,0].concat(f)),this.instance.runHooks("afterCreateRow",s,a,r),this.instance.forceFullRender=!0,a}},{key:"createCol",value: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 r=this.dataSource,o=this.tableMeta.maxCols,i=e;("number"!=typeof i||i>=this.instance.countSourceCols())&&(i=this.instance.countSourceCols());var a=this.instance.runHooks("beforeCreateCol",i,t,n);if(!1===a)return 0;var s=this.instance.countSourceCols();i<this.instance.countCols()&&(s=this.instance.toPhysicalColumn(i));for(var l=this.instance.countSourceRows(),u=this.instance.countCols(),c=0,d=s;c<t&&u<o;){if("number"!=typeof i||i>=u)if(l>0)for(var h=0;h<l;h+=1)void 0===r[h]&&(r[h]=[]),r[h].push(null);else r.push([null]);else for(var f=0;f<l;f++)r[f].splice(d,0,null);c+=1,d+=1,u+=1}return this.instance.columnIndexMapper.insertIndexes(i,c),this.instance.runHooks("afterCreateCol",i,c,n),this.instance.forceFullRender=!0,c}},{key:"removeRow",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0,r=Number.isInteger(e)?e:-t,o=this.visualRowsToPhysical(r,t),i=this.instance.countSourceRows();r=(i+r)%i;var a=this.instance.runHooks("beforeRemoveRow",r,o.length,o,n);if(!1===a)return!1;var s=this.dataSource,l=o.length,u=this.filterData(r,l,o);if(u&&(s.length=0,Array.prototype.push.apply(s,u)),r<this.instance.countRows()){this.instance.rowIndexMapper.removeIndexes(o);var c=(0,h.isDefined)(this.tableMeta.columns)||(0,h.isDefined)(this.tableMeta.dataSchema);0===this.instance.rowIndexMapper.getNotTrimmedIndexesLength()&&!1===c&&this.instance.columnIndexMapper.setIndexesSequence([])}return this.instance.runHooks("afterRemoveRow",r,l,o,n),this.instance.forceFullRender=!0,!0}},{key:"removeCol",value: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.tableMeta.columns)throw new Error("cannot remove column with object data source or columns option specified");var r="number"!=typeof e?-t:e;r=(this.instance.countCols()+r)%this.instance.countCols();var o=this.visualColumnsToPhysical(r,t),i=o.slice(0).sort((function(e,t){return t-e})),a=this.instance.runHooks("beforeRemoveCol",r,t,o,n);if(!1===a)return!1;for(var s=!0,l=i.length,u=this.dataSource,c=0;c<l;c++)s&&o[0]!==o[c]-c&&(s=!1);if(s)for(var d=0,h=this.instance.countSourceRows();d<h;d++)u[d].splice(o[0],t);else for(var f=0,v=this.instance.countSourceRows();f<v;f++)for(var p=0;p<l;p++)u[f].splice(i[p],1);return r<this.instance.countCols()&&(this.instance.columnIndexMapper.removeIndexes(o),0===this.instance.columnIndexMapper.getNotTrimmedIndexesLength()&&this.instance.rowIndexMapper.setIndexesSequence([])),this.instance.runHooks("afterRemoveCol",r,t,o,n),this.instance.forceFullRender=!0,!0}},{key:"spliceCol",value:function(e,t,n){for(var r=this.instance.getDataAtCol(e),o=r.slice(t,t+n),i=r.slice(t+n),a=arguments.length,s=new Array(a>3?a-3:0),l=3;l<a;l++)s[l-3]=arguments[l];(0,c.extendArray)(s,i);for(var u=0;u<n;)s.push(null),u+=1;return(0,c.to2dArray)(s),this.instance.populateFromArray(t,e,s,null,null,"spliceCol"),o}},{key:"spliceRow",value:function(e,t,n){for(var r=this.instance.getSourceDataAtRow(e),o=r.slice(t,t+n),i=r.slice(t+n),a=arguments.length,s=new Array(a>3?a-3:0),l=3;l<a;l++)s[l-3]=arguments[l];(0,c.extendArray)(s,i);for(var u=0;u<n;)s.push(null),u+=1;return this.instance.populateFromArray(e,t,[s],null,null,"spliceRow"),o}},{key:"spliceData",value:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i,a=this.instance.runHooks("beforeDataSplice",e,t,r);!1!==a&&(i=this.dataSource).splice.apply(i,[e,t].concat(r))}},{key:"filterData",value:function(e,t,n){if(!1!==this.instance.runHooks("beforeDataFilter",e,t,n))return this.dataSource.filter((function(e,t){return-1===n.indexOf(t)}))}},{key:"get",value:function(e,t){var n=this.instance.toPhysicalRow(e),r=this.dataSource[n],o=this.instance.runHooks("modifyRowData",n),i=null;if((r=isNaN(o)?o:r)&&r.hasOwnProperty&&(0,u.hasOwnProperty)(r,t))i=r[t];else if("string"==typeof t&&t.indexOf(".")>-1){var a=t.split("."),s=r;if(!s)return null;for(var l=0,c=a.length;l<c;l++)if(void 0===(s=s[a[l]]))return null;i=s}else"function"==typeof t&&(i=t(this.dataSource.slice(n,n+1)[0]));if(this.instance.hasHook("modifyData")){var d=(0,u.createObjectPropListener)(i);this.instance.runHooks("modifyData",n,this.propToCol(t),d,"get"),d.isTouched()&&(i=d.value)}return i}},{key:"getCopyable",value:function(e,t){return f.call(this.instance,e,this.propToCol(t))?this.get(e,t):""}},{key:"set",value:function(e,t,n){var r=this.instance.toPhysicalRow(e),o=n,i=this.dataSource[r],a=this.instance.runHooks("modifyRowData",r);if(i=isNaN(a)?a:i,this.instance.hasHook("modifyData")){var s=(0,u.createObjectPropListener)(o);this.instance.runHooks("modifyData",r,this.propToCol(t),s,"set"),s.isTouched()&&(o=s.value)}if(i&&i.hasOwnProperty&&(0,u.hasOwnProperty)(i,t))i[t]=o;else if("string"==typeof t&&t.indexOf(".")>-1){var l,c=t.split("."),d=i,h=0;for(h=0,l=c.length-1;h<l;h++)void 0===d[c[h]]&&(d[c[h]]={}),d=d[c[h]];d[c[h]]=o}else"function"==typeof t?t(this.dataSource.slice(r,r+1)[0],o):i[t]=o}},{key:"visualRowsToPhysical",value:function(e,t){for(var n,r=this.instance.countSourceRows(),o=[],i=(r+e)%r,a=t;i<r&&a;)n=this.instance.toPhysicalRow(i),o.push(n),a-=1,i+=1;return o}},{key:"visualColumnsToPhysical",value:function(e,t){for(var n=this.instance.countCols(),r=[],o=(n+e)%n,i=t;o<n&&i;){var a=this.instance.toPhysicalColumn(o);r.push(a),i-=1,o+=1}return r}},{key:"clear",value: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),"")}},{key:"getLength",value:function(){var e,t=this.tableMeta.maxRows;e=t<0||0===t?0:t||1/0;var n=this.instance.rowIndexMapper.getNotTrimmedIndexesLength();return Math.min(n,e)}},{key:"getAll",value:function(){var t={row:0,col:0},n={row:Math.max(this.instance.countRows()-1,0),col:Math.max(this.instance.countCols()-1,0)};return t.row-n.row!=0||this.instance.countSourceRows()?this.getRange(t,n,e.DESTINATION_RENDERER):[]}},{key:"countCachedColumns",value:function(){return this.colToPropCache.length}},{key:"getRange",value:function(t,n,r){var o,i,a,s=[],l=this.tableMeta.maxRows,u=this.tableMeta.maxCols;if(0===l||0===u)return[];var c=r===e.DESTINATION_CLIPBOARD_GENERATOR?this.getCopyable:this.get,d=Math.min(Math.max(l-1,0),Math.max(t.row,n.row)),h=Math.min(Math.max(u-1,0),Math.max(t.col,n.col));for(o=Math.min(t.row,n.row);o<=d;o++){a=[];var f=o>=0?this.instance.toPhysicalRow(o):o;for(i=Math.min(t.col,n.col);i<=h&&null!==f;i++)a.push(c.call(this,o,this.colToProp(i)));null!==f&&s.push(a)}return s}},{key:"getText",value:function(t,n){return(0,s.stringify)(this.getRange(t,n,e.DESTINATION_RENDERER))}},{key:"getCopyableText",value:function(t,n){return(0,s.stringify)(this.getRange(t,n,e.DESTINATION_CLIPBOARD_GENERATOR))}},{key:"destroy",value:function(){this.instance=null,this.tableMeta=null,this.dataSource=null,this.duckSchema=null,this.colToPropCache.length=0,this.propToColCache.clear(),this.propToColCache=void 0}}],[{key:"DESTINATION_RENDERER",get:function(){return 1}},{key:"DESTINATION_CLIPBOARD_GENERATOR",get:function(){return 2}}]),e}();t.default=v},function(e,t,n){"use strict";t.__esModule=!0,t.parse=function(e){var t=[[""]];if(0===e.length)return t;var n,a=0,s=0;for(;e.length>0&&n!==e.length;)if(n=e.length,e.match(i))e=e.replace(i,""),a+=1,t[s][a]="";else if(e.match(r))e=e.replace(r,""),a=0,t[s+=1]=[""];else{var l="";if(e.startsWith('"')){for(var u=0,c=!0;c;){var d=e.slice(0,1);'"'===d&&(u+=1),l+=d,(0===(e=e.slice(1)).length||e.match(/^[\t\r\n]/)&&u%2==0)&&(c=!1)}l=l.replace(/^"/,"").replace(/"$/,"").replace(/["]*/g,(function(e){return new Array(Math.floor(e.length/2)).fill('"').join("")}))}else{var h=e.match(o);l=h?h[0]:"",e=e.slice(l.length)}t[s][a]=l}return t},t.stringify=function(e){var t,n,r,o,i,a="";for(t=0,n=e.length;t<n;t+=1){for(o=e[t].length,r=0;r<o;r+=1)r>0&&(a+="\t"),"string"==typeof(i=e[t][r])?i.indexOf("\n")>-1?a+='"'.concat(i.replace(/"/g,'""'),'"'):a+=i:a+=null==i?"":i;t!==n-1&&(a+="\n")}return a},n(29),n(135),n(51),n(139),n(33),n(73),n(163),n(17);var r=/^(\r\n|\n\r|\r|\n)/,o=/^[^\t\r\n]+/,i=/^\t/},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(573)),s=r(n(574)),l=r(n(575)),u=r(n(576)),c=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.default)(this,e),this.globalMeta=new a.default,this.globalMeta.updateMeta(t),this.tableMeta=new s.default(this.globalMeta),this.columnMeta=new l.default(this.globalMeta),this.cellMeta=new u.default(this.columnMeta)}return(0,i.default)(e,[{key:"getGlobalMeta",value:function(){return this.globalMeta.getMeta()}},{key:"updateGlobalMeta",value:function(e){this.globalMeta.updateMeta(e)}},{key:"getTableMeta",value:function(){return this.tableMeta.getMeta()}},{key:"updateTableMeta",value:function(e){this.tableMeta.updateMeta(e)}},{key:"getColumnMeta",value:function(e){return this.columnMeta.getMeta(e)}},{key:"updateColumnMeta",value:function(e,t){this.columnMeta.updateMeta(e,t)}},{key:"getCellMeta",value:function(e,t,n){return this.cellMeta.getMeta(e,t,n)}},{key:"setCellMeta",value:function(e,t,n,r){this.cellMeta.setMeta(e,t,n,r)}},{key:"updateCellMeta",value:function(e,t,n){this.cellMeta.updateMeta(e,t,n)}},{key:"removeCellMeta",value:function(e,t,n){this.cellMeta.removeMeta(e,t,n)}},{key:"getCellsMeta",value:function(){return this.cellMeta.getMetas()}},{key:"getCellsMetaAtRow",value:function(e){return this.cellMeta.getMetasAtRow(e)}},{key:"createRow",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.createRow(e,t)}},{key:"removeRow",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.removeRow(e,t)}},{key:"createColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.createColumn(e,t),this.columnMeta.createColumn(e,t)}},{key:"removeColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.removeColumn(e,t),this.columnMeta.removeColumn(e,t)}},{key:"clearCellsCache",value:function(){this.cellMeta.clearCache()}},{key:"clearCache",value:function(){this.cellMeta.clearCache(),this.columnMeta.clearCache()}}]),e}();t.default=c},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(1)),a=n(5),s=n(140),l=r(n(426));var u=function(){function e(){(0,i.default)(this,e),this.metaCtor=function e(){(0,i.default)(this,e)},this.meta=this.metaCtor.prototype,(0,a.extend)(this.meta,(0,l.default)())}return(0,o.default)(e,[{key:"getMetaConstructor",value:function(){return this.metaCtor}},{key:"getMeta",value:function(){return this.meta}},{key:"updateMeta",value:function(e){(0,a.extend)(this.meta,e),(0,a.extend)(this.meta,(0,s.expandMetaType)(e.type,e))}}]),e}();t.default=u},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=r(n(2)),a=n(5),s=n(140),l=function(){function e(t){(0,o.default)(this,e);var n=t.getMetaConstructor();this.meta=new n}return(0,i.default)(e,[{key:"getMeta",value:function(){return this.meta}},{key:"updateMeta",value:function(e){(0,a.extend)(this.meta,e),(0,a.extend)(this.meta,(0,s.expandMetaType)(e.type,e))}}]),e}();t.default=l},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=r(n(2)),a=n(5),s=n(140),l=r(n(427)),u=["data","width"],c=function(){function e(t){var n=this;(0,o.default)(this,e),this.globalMeta=t,this.metas=new l.default((function(){return n._createMeta()}))}return(0,i.default)(e,[{key:"updateMeta",value:function(e,t){var n=this.getMeta(e);(0,a.extend)(n,t),(0,a.extend)(n,(0,s.expandMetaType)(t.type,n))}},{key:"createColumn",value:function(e,t){this.metas.insert(e,t)}},{key:"removeColumn",value:function(e,t){this.metas.remove(e,t)}},{key:"getMeta",value:function(e){return this.metas.obtain(e)}},{key:"getMetaConstructor",value:function(e){return this.metas.obtain(e).constructor}},{key:"clearCache",value:function(){this.metas.clear()}},{key:"_createMeta",value:function(){return(0,s.columnFactory)(this.globalMeta.getMetaConstructor(),u).prototype}}]),e}();t.default=c},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(43),n(11),n(12),n(9),n(13),n(39);var o=r(n(25)),i=r(n(1)),a=r(n(2)),s=n(5),l=n(140),u=r(n(427)),c=function(){function e(t){var n=this;(0,i.default)(this,e),this.columnMeta=t,this.metas=new u.default((function(){return n._createRow()}))}return(0,a.default)(e,[{key:"updateMeta",value:function(e,t,n){var r=this.getMeta(e,t);(0,s.extend)(r,n),(0,s.extend)(r,(0,l.expandMetaType)(n.type,r))}},{key:"createRow",value:function(e,t){this.metas.insert(e,t)}},{key:"createColumn",value:function(e,t){for(var n=0;n<this.metas.size();n++)this.metas.obtain(n).insert(e,t)}},{key:"removeRow",value:function(e,t){this.metas.remove(e,t)}},{key:"removeColumn",value:function(e,t){for(var n=0;n<this.metas.size();n++)this.metas.obtain(n).remove(e,t)}},{key:"getMeta",value:function(e,t,n){var r=this.metas.obtain(e).obtain(t);return void 0===n?r:r[n]}},{key:"setMeta",value:function(e,t,n,r){this.metas.obtain(e).obtain(t)[n]=r}},{key:"removeMeta",value:function(e,t,n){delete this.metas.obtain(e).obtain(t)[n]}},{key:"getMetas",value:function(){for(var e=[],t=Array.from(this.metas.values()),n=0;n<t.length;n++)e.push.apply(e,(0,o.default)(t[n].values()));return e}},{key:"getMetasAtRow",value:function(e){(0,l.assert)((function(){return(0,l.isUnsignedNumber)(e)}),"Expecting an unsigned number.");var t=new Map(this.metas);return t.has(e)?Array.from(t.get(e).values()):[]}},{key:"clearCache",value:function(){this.metas.clear()}},{key:"_createRow",value:function(){var e=this;return new u.default((function(t){return e._createMeta(t)}))}},{key:"_createMeta",value:function(e){return new(this.columnMeta.getMetaConstructor(e))}}]),e}();t.default=c},function(e,t,n){"use strict";t.__esModule=!0,t.TextCellType=t.CELL_TYPE=void 0;var r=n(103),o=n(104);t.CELL_TYPE="text";var i={CELL_TYPE:"text",editor:r.TextEditor,renderer:o.textRenderer};t.TextCellType=i},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.TextEditor=t.EDITOR_TYPE=void 0,n(26),n(19),n(33),n(17);var o=r(n(1)),i=r(n(2)),a=r(n(28)),s=r(n(16)),l=r(n(7)),u=r(n(8)),c=r(n(4)),d=n(134),h=r(n(31)),f=n(84),v=n(10),p=n(45),g=n(24),m=n(70),y=n(579);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}t.EDITOR_TYPE="text";var w=function(e){(0,l.default)(n,e);var t=E(n);function n(e){var r;return(0,o.default)(this,n),(r=t.call(this,e)).eventManager=new h.default((0,a.default)(r)),r.autoResize=(0,y.autoResize)(),r.TEXTAREA=void 0,r.textareaStyle=void 0,r.TEXTAREA_PARENT=void 0,r.textareaParentStyle=void 0,r.layerClass=void 0,r.createElements(),r.bindEvents(),r.hot.addHookOnce("afterDestroy",(function(){return r.destroy()})),r}return(0,i.default)(n,[{key:"getValue",value:function(){return this.TEXTAREA.value}},{key:"setValue",value:function(e){this.TEXTAREA.value=e}},{key:"open",value:function(){var e=this;this.refreshDimensions(),this.showEditableElement(),this.addHook("beforeKeyDown",(function(t){return e.onBeforeKeyDown(t)}))}},{key:"close",value:function(){this.autoResize.unObserve(),this.hot.rootDocument.activeElement===this.TEXTAREA&&this.hot.listen(),this.hideEditableElement(),this.removeHooksByKey("beforeKeyDown")}},{key:"prepare",value:function(e,t,r,o,i,a){var l=this.state;if((0,s.default)((0,c.default)(n.prototype),"prepare",this).call(this,e,t,r,o,i,a),!a.readOnly){this.refreshDimensions(!0);var u=a.allowInvalid,h=a.fragmentSelection;u&&(this.TEXTAREA.value=""),l!==d.EDITOR_STATE.FINISHED&&this.hideEditableElement(),!h&&!(0,f.isMobileBrowser)()&&this.focus()}}},{key:"beginEditing",value:function(e,t){this.state===d.EDITOR_STATE.VIRGIN&&(this.TEXTAREA.value="",(0,s.default)((0,c.default)(n.prototype),"beginEditing",this).call(this,e,t))}},{key:"focus",value:function(){this.TEXTAREA.select(),(0,v.setCaretPosition)(this.TEXTAREA,this.TEXTAREA.value.length)}},{key:"createElements",value:function(){var e=this.hot.rootDocument;this.TEXTAREA=e.createElement("TEXTAREA"),this.TEXTAREA.setAttribute("data-hot-input",""),this.TEXTAREA.tabIndex=-1,(0,v.addClass)(this.TEXTAREA,"handsontableInput"),this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,this.textareaStyle.overflowY="visible",this.TEXTAREA_PARENT=e.createElement("DIV"),(0,v.addClass)(this.TEXTAREA_PARENT,"handsontableInputHolder"),(0,v.hasClass)(this.TEXTAREA_PARENT,this.layerClass)&&(0,v.removeClass)(this.TEXTAREA_PARENT,this.layerClass),(0,v.addClass)(this.TEXTAREA_PARENT,"ht_editor_hidden"),this.textareaParentStyle=this.TEXTAREA_PARENT.style,this.TEXTAREA_PARENT.appendChild(this.TEXTAREA),this.hot.rootElement.appendChild(this.TEXTAREA_PARENT)}},{key:"hideEditableElement",value:function(){((0,f.isIE)()||(0,f.isEdge)())&&(this.textareaStyle.textIndent="-99999px"),this.textareaStyle.overflowY="visible",this.textareaParentStyle.opacity="0",this.textareaParentStyle.height="1px",(0,v.hasClass)(this.TEXTAREA_PARENT,this.layerClass)&&(0,v.removeClass)(this.TEXTAREA_PARENT,this.layerClass),(0,v.addClass)(this.TEXTAREA_PARENT,"ht_editor_hidden")}},{key:"showEditableElement",value:function(){this.textareaParentStyle.height="",this.textareaParentStyle.overflow="",this.textareaParentStyle.position="",this.textareaParentStyle.right="auto",this.textareaParentStyle.opacity="1",this.textareaStyle.textIndent="",this.textareaStyle.overflowY="hidden";var e=this.TEXTAREA_PARENT.childNodes,t=!1;(0,g.rangeEach)(e.length-1,(function(n){var r=e[n];if((0,v.hasClass)(r,"handsontableEditor"))return t=!0,!1})),(0,v.hasClass)(this.TEXTAREA_PARENT,"ht_editor_hidden")&&(0,v.removeClass)(this.TEXTAREA_PARENT,"ht_editor_hidden"),t?(this.layerClass="ht_editor_visible",(0,v.addClass)(this.TEXTAREA_PARENT,this.layerClass)):(this.layerClass=this.getEditedCellsLayerClass(),(0,v.addClass)(this.TEXTAREA_PARENT,this.layerClass))}},{key:"refreshValue",value:function(){var e=this.hot.toPhysicalRow(this.row),t=this.hot.getSourceDataAtCell(e,this.col);this.originalValue=t,this.setValue(t),this.refreshDimensions()}},{key:"refreshDimensions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.state===d.EDITOR_STATE.EDITING||e)if(this.TD=this.getEditedCell(),this.TD){var t,n=this.hot.view.wt,r=n.wtOverlays,o=n.wtViewport,i=(0,v.offset)(this.TD),a=(0,v.offset)(this.hot.rootElement),s=r.topOverlay.holder,l=r.leftOverlay.holder,u=s!==this.hot.rootWindow?s.scrollTop:0,c=l!==this.hot.rootWindow?l.scrollLeft:0,h=this.checkEditorSection(),f=["","left"].includes(h)?u:0,p=["","top","bottom"].includes(h)?c:0,g=i.top===a.top?0:1,m=this.TD.style.backgroundColor,y=i.top-a.top-g-f,E=i.left-a.left-1-p;switch(h){case"top":t=(0,v.getCssTransform)(r.topOverlay.clone.wtTable.holder.parentNode);break;case"left":t=(0,v.getCssTransform)(r.leftOverlay.clone.wtTable.holder.parentNode);break;case"top-left-corner":t=(0,v.getCssTransform)(r.topLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom-left-corner":t=(0,v.getCssTransform)(r.bottomLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom":t=(0,v.getCssTransform)(r.bottomOverlay.clone.wtTable.holder.parentNode)}var w=this.hot.hasColHeaders(),C=this.hot.rowIndexMapper.getRenderableFromVisualIndex(this.row),R=this.hot.columnIndexMapper.getRenderableFromVisualIndex(this.col),T=this.hot.rowIndexMapper.getRenderableIndexesLength(),b=T-this.hot.view.wt.getSetting("fixedRowsBottom");(w&&C<=0||C===b)&&(y+=1),R<=0&&(E+=1),t&&-1!==t?this.textareaParentStyle[t[0]]=t[1]:(0,v.resetCssTransform)(this.TEXTAREA_PARENT),this.textareaParentStyle.top="".concat(y,"px"),this.textareaParentStyle.left="".concat(E,"px"),this.showEditableElement();var S=o.rowsRenderCalculator.startPosition,O=o.columnsRenderCalculator.startPosition,_=r.leftOverlay.getScrollPosition(),I=r.topOverlay.getScrollPosition(),M=(0,v.getScrollbarWidth)(this.hot.rootDocument),N=this.TD.offsetTop+S-I,k=this.TD.offsetLeft+O-_,A=(0,v.innerWidth)(this.TD)-8,P=(0,v.hasVerticalScrollbar)(s)?M:0,x=(0,v.hasHorizontalScrollbar)(l)?M:0,D=this.hot.view.maximumVisibleElementWidth(k)-9-P,L=this.TD.scrollHeight+1,H=Math.max(this.hot.view.maximumVisibleElementHeight(N)-x,23),F=(0,v.getComputedStyle)(this.TD,this.hot.rootWindow);this.TEXTAREA.style.fontSize=F.fontSize,this.TEXTAREA.style.fontFamily=F.fontFamily,this.TEXTAREA.style.backgroundColor=m,this.autoResize.init(this.TEXTAREA,{minHeight:Math.min(L,H),maxHeight:H,minWidth:Math.min(A,D),maxWidth:D},!0)}else e||this.close()}},{key:"bindEvents",value:function(){var e=this;this.eventManager.addEventListener(this.TEXTAREA,"cut",(function(e){return e.stopPropagation()})),this.eventManager.addEventListener(this.TEXTAREA,"paste",(function(e){return e.stopPropagation()})),(0,f.isIOS)()&&this.eventManager.addEventListener(this.TEXTAREA,"focusout",(function(){return e.finishEditing(!1)})),this.addHook("afterScrollHorizontally",(function(){return e.refreshDimensions()})),this.addHook("afterScrollVertically",(function(){return e.refreshDimensions()})),this.addHook("afterColumnResize",(function(){e.refreshDimensions(),e.focus()})),this.addHook("afterRowResize",(function(){e.refreshDimensions(),e.focus()}))}},{key:"allowKeyEventPropagation",value:function(){}},{key:"destroy",value:function(){this.eventManager.destroy(),this.clearHooks()}},{key:"onBeforeKeyDown",value:function(e){var t=(e.ctrlKey||e.metaKey)&&!e.altKey;if(e.target===this.TEXTAREA&&!(0,p.isImmediatePropagationStopped)(e)){switch(e.keyCode){case m.KEY_CODES.ARROW_RIGHT:case m.KEY_CODES.ARROW_LEFT:this.isInFullEditMode()&&(this.isWaiting()||this.allowKeyEventPropagation(e.keyCode)||(0,p.stopImmediatePropagation)(e));break;case m.KEY_CODES.ARROW_UP:case m.KEY_CODES.ARROW_DOWN:this.isInFullEditMode()&&(this.isWaiting()||this.allowKeyEventPropagation(e.keyCode)||(0,p.stopImmediatePropagation)(e));break;case m.KEY_CODES.ENTER:var n=this.hot.selection.isMultiple();if(t&&!n||e.altKey){if(this.isOpened()){var r=(0,v.getCaretPosition)(this.TEXTAREA),o=this.getValue(),i="".concat(o.slice(0,r),"\n").concat(o.slice(r));this.setValue(i),(0,v.setCaretPosition)(this.TEXTAREA,r+1)}else this.beginEditing("".concat(this.originalValue,"\n"));(0,p.stopImmediatePropagation)(e)}e.preventDefault();break;case m.KEY_CODES.BACKSPACE:case m.KEY_CODES.DELETE:case m.KEY_CODES.HOME:case m.KEY_CODES.END:(0,p.stopImmediatePropagation)(e)}-1===[m.KEY_CODES.ARROW_UP,m.KEY_CODES.ARROW_RIGHT,m.KEY_CODES.ARROW_DOWN,m.KEY_CODES.ARROW_LEFT].indexOf(e.keyCode)&&this.autoResize.resize(String.fromCharCode(e.keyCode))}}}],[{key:"EDITOR_TYPE",get:function(){return"text"}}]),n}(d.BaseEditor);t.TextEditor=w},function(e,t,n){"use strict";t.__esModule=!0,t.autoResize=void 0;var r=n(580);t.autoResize=r.autoResize},function(e,t,n){"use strict";t.__esModule=!0,t.autoResize=function(){var e,t={minHeight:200,maxHeight:300,minWidth:100,maxWidth:300},n=document.body,r=document.createTextNode(""),o=document.createElement("SPAN"),i=function(e,t,n){e.addEventListener(t,n,!1)},a=function(e,t,n){e.removeEventListener(t,n,!1)},s=function(i){var a,s;i?/^[a-zA-Z \.,\\\/\|0-9]$/.test(i)||(i="."):i="",void 0!==r.textContent?r.textContent=e.value+i:r.data=e.value+i,o.style.fontSize=c(e).fontSize,o.style.fontFamily=c(e).fontFamily,o.style.whiteSpace="pre",n.appendChild(o),a=o.clientWidth+2,n.removeChild(o),e.style.height=t.minHeight+"px",t.minWidth>a?e.style.width=t.minWidth+"px":a>t.maxWidth?e.style.width=t.maxWidth+"px":e.style.width=a+"px",s=e.scrollHeight?e.scrollHeight-1:0,t.minHeight>s?e.style.height=t.minHeight+"px":t.maxHeight<s?(e.style.height=t.maxHeight+"px",e.style.overflowY="visible"):e.style.height=s+"px"},l=function(){window.setTimeout(s,0)},u=function(n,a,u){e=n,function(n){if(n&&n.minHeight)if("inherit"==n.minHeight)t.minHeight=e.clientHeight;else{var i=parseInt(n.minHeight);isNaN(i)||(t.minHeight=i)}if(n&&n.maxHeight)if("inherit"==n.maxHeight)t.maxHeight=e.clientHeight;else{var a=parseInt(n.maxHeight);isNaN(a)||(t.maxHeight=a)}if(n&&n.minWidth)if("inherit"==n.minWidth)t.minWidth=e.clientWidth;else{var s=parseInt(n.minWidth);isNaN(s)||(t.minWidth=s)}if(n&&n.maxWidth)if("inherit"==n.maxWidth)t.maxWidth=e.clientWidth;else{var l=parseInt(n.maxWidth);isNaN(l)||(t.maxWidth=l)}o.firstChild||(o.className="autoResize",o.style.display="inline-block",o.appendChild(r))}(a),"TEXTAREA"==e.nodeName&&(e.style.resize="none",e.style.overflowY="",e.style.height=t.minHeight+"px",e.style.minWidth=t.minWidth+"px",e.style.maxWidth=t.maxWidth+"px",e.style.overflowY="hidden"),u&&(i(e,"change",s),i(e,"cut",l),i(e,"paste",l),i(e,"drop",l),i(e,"keydown",l),i(e,"focus",s),i(e,"compositionstart",l),i(e,"compositionupdate",l),i(e,"compositionend",l)),s()};function c(e){return e.currentStyle||document.defaultView.getComputedStyle(e)}return{init:function(e,t,n){u(e,t,n)},unObserve:function(){a(e,"change",s),a(e,"cut",l),a(e,"paste",l),a(e,"drop",l),a(e,"keydown",l),a(e,"focus",s),a(e,"compositionstart",l),a(e,"compositionupdate",l),a(e,"compositionend",l)},resize:s}},n(44)},function(e,t,n){"use strict";t.__esModule=!0,t.textRenderer=a,t.RENDERER_TYPE=void 0,n(129);var r=n(168),o=n(10),i=n(20);function a(e,t,n,a,s,l,u){r.baseRenderer.apply(this,[e,t,n,a,s,l,u]);var c=l;if(!c&&u.placeholder&&(c=u.placeholder),c=(0,i.stringify)(c),e.getSettings().trimWhitespace&&(c=c.trim()),u.rendererTemplate){(0,o.empty)(t);var d=e.rootDocument.createElement("TEMPLATE");d.setAttribute("bind","{{}}"),d.innerHTML=u.rendererTemplate,HTMLTemplateElement.decorate(d),d.model=e.getSourceDataAtRow(n),t.appendChild(d)}else(0,o.fastInnerText)(t,c)}t.RENDERER_TYPE="text",a.RENDERER_TYPE="text"},function(e,t,n){"use strict";t.__esModule=!0,t.baseRenderer=o,t.RENDERER_TYPE=void 0;var r=n(10);function o(e,t,n,o,i,a,s){var l=[],u=[];s.className&&(0,r.addClass)(t,s.className),s.readOnly&&l.push(s.readOnlyCellClassName),!1===s.valid&&s.invalidCellClassName?l.push(s.invalidCellClassName):u.push(s.invalidCellClassName),!1===s.wordWrap&&s.noWordWrapClassName&&l.push(s.noWordWrapClassName),!a&&s.placeholder&&l.push(s.placeholderCellClassName),(0,r.removeClass)(t,u),(0,r.addClass)(t,l)}t.RENDERER_TYPE="base",o.RENDERER_TYPE="base"},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t="undefined"!=typeof window&&window.jQuery;if(!t)return;t.fn.handsontable=function(t){var n,r=this.first(),o=r.data("handsontable");if("string"!=typeof t){var i=t||{};return o?o.updateSettings(i):(o=new e.Core(r[0],i),r.data("handsontable",o),o.init()),r}if(o){if(void 0===o[t])throw new Error("Handsontable do not provide action: ".concat(t));for(var a,s=arguments.length,l=new Array(s>1?s-1:0),u=1;u<s;u++)l[u-1]=arguments[u];n=(a=o[t]).call.apply(a,[o].concat(l)),"destroy"===t&&r.removeData()}return n}},n(19)},function(e,t,n){"use strict";t.__esModule=!0,t.registerEditor=t.hasEditor=t.getRegisteredEditors=t.getRegisteredEditorNames=t.getEditorInstance=t.getEditor=t._getEditorInstance=t.RegisteredEditor=t.TextEditor=t.SelectEditor=t.PasswordEditor=t.NumericEditor=t.HandsontableEditor=t.DropdownEditor=t.DateEditor=t.CheckboxEditor=t.BaseEditor=t.TEXT_EDITOR=t.SELECT_EDITOR=t.PASSWORD_EDITOR=t.NUMERIC_EDITOR=t.HANDSONTABLE_EDITOR=t.DROPDOWN_EDITOR=t.DATE_EDITOR=t.CHECKBOX_EDITOR=t.BASE_EDITOR=t.AUTOCOMPLETE_EDITOR=t.AutocompleteEditor=void 0;var r=n(212);t.AutocompleteEditor=r.AutocompleteEditor,t.AUTOCOMPLETE_EDITOR=r.EDITOR_TYPE;var o=n(134);t.BaseEditor=o.BaseEditor,t.BASE_EDITOR=o.EDITOR_TYPE;var i=n(430);t.CheckboxEditor=i.CheckboxEditor,t.CHECKBOX_EDITOR=i.EDITOR_TYPE;var a=n(214);t.DateEditor=a.DateEditor,t.DATE_EDITOR=a.EDITOR_TYPE;var s=n(431);t.DropdownEditor=s.DropdownEditor,t.DROPDOWN_EDITOR=s.EDITOR_TYPE;var l=n(213);t.HandsontableEditor=l.HandsontableEditor,t.HANDSONTABLE_EDITOR=l.EDITOR_TYPE;var u=n(432);t.NumericEditor=u.NumericEditor,t.NUMERIC_EDITOR=u.EDITOR_TYPE;var c=n(433);t.PasswordEditor=c.PasswordEditor,t.PASSWORD_EDITOR=c.EDITOR_TYPE;var d=n(594);t.SelectEditor=d.SelectEditor,t.SELECT_EDITOR=d.EDITOR_TYPE;var h=n(103);t.TextEditor=h.TextEditor,t.TEXT_EDITOR=h.EDITOR_TYPE;var f=n(133);t.RegisteredEditor=f.RegisteredEditor,t._getEditorInstance=f._getEditorInstance,t.getEditor=f.getEditor,t.getEditorInstance=f.getEditorInstance,t.getRegisteredEditorNames=f.getRegisteredEditorNames,t.getRegisteredEditors=f.getRegisteredEditors,t.hasEditor=f.hasEditor,t.registerEditor=f.registerEditor},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.AutocompleteEditor=t.EDITOR_TYPE=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(28)),s=r(n(16)),l=r(n(7)),u=r(n(8)),c=r(n(4));n(12),n(9),n(11),n(22),n(13),n(17),n(160),n(29),n(51),n(30),n(81);var d=n(213),h=n(3),f=n(10),v=n(20),p=n(75),g=n(70),m=n(104);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var E=new WeakMap;t.EDITOR_TYPE="autocomplete";var w=function(e){(0,l.default)(n,e);var t=y(n);function n(e){var r;return(0,o.default)(this,n),(r=t.call(this,e)).query=null,r.strippedChoices=[],r.rawChoices=[],E.set((0,a.default)(r),{skipOne:!1,isMacOS:r.hot.rootWindow.navigator.platform.indexOf("Mac")>-1}),r}return(0,i.default)(n,[{key:"getValue",value:function(){var e=this,t=this.rawChoices.find((function(t){return e.stripValueIfNeeded(t)===e.TEXTAREA.value}));return(0,v.isDefined)(t)?t:this.TEXTAREA.value}},{key:"createElements",value:function(){(0,s.default)((0,c.default)(n.prototype),"createElements",this).call(this),(0,f.addClass)(this.htContainer,"autocompleteEditor"),(0,f.addClass)(this.htContainer,-1===this.hot.rootWindow.navigator.platform.indexOf("Mac")?"":"htMacScroll")}},{key:"open",value:function(){var e=this,t=E.get(this);(0,s.default)((0,c.default)(n.prototype),"open",this).call(this);var r=this.htEditor.getInstance(),o=void 0===this.cellProperties.trimDropdown||this.cellProperties.trimDropdown;this.showEditableElement(),this.focus();var i=(0,f.getScrollbarWidth)();0===i&&t.isMacOS&&(i+=15),r.updateSettings({colWidths:o?[(0,f.outerWidth)(this.TEXTAREA)-2]:void 0,width:o?(0,f.outerWidth)(this.TEXTAREA)+i:void 0,renderer:function(t,n,r,o,i,a,s){(0,m.textRenderer)(t,n,r,o,i,a,s);var l,u,c=e.cellProperties,d=c.filteringCaseSensitive,h=c.allowHtml,f=e.query,p=(0,v.stringify)(a);p&&!h&&-1!==(l=!0===d?p.indexOf(f):p.toLowerCase().indexOf(f.toLowerCase()))&&(u=p.substr(l,f.length),p=p.replace(u,"<strong>".concat(u,"</strong>"))),n.innerHTML=p},autoColumnSize:!0}),t.skipOne&&(t.skipOne=!1),this.hot._registerTimeout((function(){e.queryChoices(e.TEXTAREA.value)}))}},{key:"close",value:function(){this.removeHooksByKey("beforeKeyDown"),(0,s.default)((0,c.default)(n.prototype),"close",this).call(this)}},{key:"discardEditor",value:function(e){(0,s.default)((0,c.default)(n.prototype),"discardEditor",this).call(this,e),this.hot.view.render()}},{key:"queryChoices",value:function(e){var t=this,n=this.cellProperties.source;this.query=e,"function"==typeof n?n.call(this.cellProperties,e,(function(e){t.rawChoices=e,t.updateChoicesList(t.stripValuesIfNeeded(e))})):Array.isArray(n)?(this.rawChoices=n,this.updateChoicesList(this.stripValuesIfNeeded(n))):this.updateChoicesList([])}},{key:"updateChoicesList",value:function(e){var t=(0,f.getCaretPosition)(this.TEXTAREA),r=(0,f.getSelectionEndPosition)(this.TEXTAREA),o=this.cellProperties.sortByRelevance,i=this.cellProperties.filter,a=null,s=null,l=e;o&&(a=n.sortByRelevance(this.stripValueIfNeeded(this.getValue()),l,this.cellProperties.filteringCaseSensitive));var u=Array.isArray(a)?a.length:0;if(!1===i)u&&(s=a[0]);else{for(var c=[],d=0,v=l.length;d<v&&!(o&&u<=d);d++)u?c.push(l[a[d]]):c.push(l[d]);s=0,l=c}this.strippedChoices=l,this.htEditor.loadData((0,h.pivot)([l])),this.updateDropdownHeight(),this.flipDropdownIfNeeded(),!0===this.cellProperties.strict&&this.highlightBestMatchingChoice(s),this.hot.listen(),(0,f.setCaretPosition)(this.TEXTAREA,t,t===r?void 0:r)}},{key:"flipDropdownIfNeeded",value:function(){var e=(0,f.offset)(this.TEXTAREA),t=(0,f.outerHeight)(this.TEXTAREA),n=this.getDropdownHeight(),r=(0,f.getTrimmingContainer)(this.hot.view.wt.wtTable.TABLE),o=r.scrollTop,i=(0,f.outerHeight)(this.hot.view.wt.wtTable.THEAD),a={row:0,col:0};r!==this.hot.rootWindow&&(a=(0,f.offset)(r));var s=e.top-a.top-i+o,l=r.scrollHeight-s-i-t,u=n>l&&s>l;return u?this.flipDropdown(n):this.unflipDropdown(),this.limitDropdownIfNeeded(u?s:l,n),u}},{key:"limitDropdownIfNeeded",value:function(e,t){if(t>e){var n,r=0,o=0,i=0;do{r+=i=this.htEditor.getRowHeight(o)||this.htEditor.view.wt.wtSettings.settings.defaultRowHeight,o+=1}while(r<e);n=r-i,this.htEditor.flipped&&(this.htEditor.rootElement.style.top="".concat(parseInt(this.htEditor.rootElement.style.top,10)+t-n,"px")),this.setDropdownHeight(r-i)}}},{key:"flipDropdown",value:function(e){var t=this.htEditor.rootElement.style;t.position="absolute",t.top="".concat(-e,"px"),this.htEditor.flipped=!0}},{key:"unflipDropdown",value:function(){var e=this.htEditor.rootElement.style;"absolute"===e.position&&(e.position="",e.top=""),this.htEditor.flipped=void 0}},{key:"updateDropdownHeight",value:function(){var e=this.htEditor.getColWidth(0)+(0,f.getScrollbarWidth)(this.hot.rootDocument)+2,t=this.cellProperties.trimDropdown;this.htEditor.updateSettings({height:this.getDropdownHeight(),width:t?void 0:e}),this.htEditor.view.wt.wtTable.alignOverlaysWithTrimmingContainer()}},{key:"setDropdownHeight",value:function(e){this.htEditor.updateSettings({height:e})}},{key:"highlightBestMatchingChoice",value:function(e){"number"==typeof e?this.htEditor.selectCell(e,0,void 0,void 0,void 0,!1):this.htEditor.deselectCell()}},{key:"getDropdownHeight",value:function(){var e=this.htEditor.getInstance().getRowHeight(0)||23,t=this.cellProperties.visibleRows;return this.strippedChoices.length>=t?t*e:this.strippedChoices.length*e+8}},{key:"stripValueIfNeeded",value:function(e){return this.stripValuesIfNeeded([e])[0]}},{key:"stripValuesIfNeeded",value:function(e){var t=this.cellProperties.allowHtml,n=(0,h.arrayMap)(e,(function(e){return(0,v.stringify)(e)}));return(0,h.arrayMap)(n,(function(e){return t?e:(0,p.stripTags)(e)}))}},{key:"allowKeyEventPropagation",value:function(e){var t=this.htEditor.getSelectedRangeLast(),n=t?t.from.row:-1,r=!1;return e===g.KEY_CODES.ARROW_DOWN&&n>0&&n<this.htEditor.countRows()-1&&(r=!0),e===g.KEY_CODES.ARROW_UP&&n>-1&&(r=!0),r}},{key:"onBeforeKeyDown",value:function(e){var t=this,r=E.get(this);if(r.skipOne=!1,(0,g.isPrintableChar)(e.keyCode)||e.keyCode===g.KEY_CODES.BACKSPACE||e.keyCode===g.KEY_CODES.DELETE||e.keyCode===g.KEY_CODES.INSERT){var o=0;if(e.keyCode===g.KEY_CODES.C&&(e.ctrlKey||e.metaKey))return;this.isOpened()||(o+=10),this.htEditor&&this.hot._registerTimeout((function(){t.queryChoices(t.TEXTAREA.value),r.skipOne=!0}),o)}(0,s.default)((0,c.default)(n.prototype),"onBeforeKeyDown",this).call(this,e)}}],[{key:"EDITOR_TYPE",get:function(){return"autocomplete"}}]),n}(d.HandsontableEditor);t.AutocompleteEditor=w,w.sortByRelevance=function(e,t,n){var r,o,i,a,s=[],l=[],u=e.length,c=t.length;if(0===u){for(i=0;i<c;i++)l.push(i);return l}for(i=0;i<c;i++)o=(0,p.stripTags)((0,v.stringify)(t[i])),-1!==(a=n?o.indexOf(e):o.toLowerCase().indexOf(e.toLowerCase()))&&(r=o.length-a-u,s.push({baseIndex:i,index:a,charsLeft:r,value:o}));for(s.sort((function(e,t){if(-1===t.index)return-1;if(-1===e.index)return 1;if(e.index<t.index)return-1;if(t.index<e.index)return 1;if(e.index===t.index){if(e.charsLeft<t.charsLeft)return-1;if(e.charsLeft>t.charsLeft)return 1}return 0})),i=0,c=s.length;i<c;i++)l.push(s[i].baseIndex);return l}},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.HandsontableEditor=t.EDITOR_TYPE=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(16)),s=r(n(7)),l=r(n(8)),u=r(n(4)),c=n(103),d=n(10),h=n(45),f=n(70),v=n(5);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}t.EDITOR_TYPE="handsontable";var g=function(e){(0,s.default)(n,e);var t=p(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"open",value:function(){(0,a.default)((0,u.default)(n.prototype),"open",this).call(this),this.htEditor&&this.htEditor.destroy(),"none"===this.htContainer.style.display&&(this.htContainer.style.display=""),this.htEditor=new this.hot.constructor(this.htContainer,this.htOptions),this.htEditor.init(),this.htEditor.rootElement.style.display="",this.cellProperties.strict?this.htEditor.selectCell(0,0):this.htEditor.deselectCell(),(0,d.setCaretPosition)(this.TEXTAREA,0,this.TEXTAREA.value.length)}},{key:"close",value:function(){this.htEditor&&(this.htEditor.rootElement.style.display="none"),this.removeHooksByKey("beforeKeyDown"),(0,a.default)((0,u.default)(n.prototype),"close",this).call(this)}},{key:"prepare",value:function(e,t,r,o,i,s){(0,a.default)((0,u.default)(n.prototype),"prepare",this).call(this,e,t,r,o,i,s);var l=this,c={startRows:0,startCols:0,minRows:0,minCols:0,className:"listbox",copyPaste:!1,autoColumnSize:!1,autoRowSize:!1,readOnly:!0,fillHandle:!1,autoWrapCol:!1,autoWrapRow:!1,afterOnCellMouseDown:function(e,t){var n=this.getSourceData(t.row,t.col);void 0!==n&&l.setValue(n),l.instance.destroyEditor()},preventWheel:!0};this.cellProperties.handsontable&&(0,v.extend)(c,s.handsontable),this.htOptions=c}},{key:"beginEditing",value:function(e,t){var r=this.hot.getSettings().onBeginEditing;r&&!1===r()||(0,a.default)((0,u.default)(n.prototype),"beginEditing",this).call(this,e,t)}},{key:"createElements",value:function(){(0,a.default)((0,u.default)(n.prototype),"createElements",this).call(this);var e=this.hot.rootDocument.createElement("DIV");e.className="handsontableEditor",this.TEXTAREA_PARENT.appendChild(e),this.htContainer=e,this.assignHooks()}},{key:"finishEditing",value:function(e,t,r){if(this.htEditor&&this.htEditor.isListening()&&this.hot.listen(),this.htEditor&&this.htEditor.getSelectedLast()){var o=this.htEditor.getInstance().getValue();void 0!==o&&this.setValue(o)}(0,a.default)((0,u.default)(n.prototype),"finishEditing",this).call(this,e,t,r)}},{key:"assignHooks",value:function(){var e=this;this.hot.addHook("afterDestroy",(function(){e.htEditor&&e.htEditor.destroy()}))}},{key:"onBeforeKeyDown",value:function(e){if(!(0,h.isImmediatePropagationStopped)(e)){var t,r,o=this.htEditor.getInstance();if(e.keyCode===f.KEY_CODES.ARROW_DOWN)if(o.getSelectedLast()||o.flipped){if(o.getSelectedLast())if(o.flipped)t=o.getSelectedLast()[0]+1;else if(!o.flipped){var i=o.countRows()-1;r=o.getSelectedLast()[0],t=Math.min(i,r+1)}}else t=0;else e.keyCode===f.KEY_CODES.ARROW_UP&&(!o.getSelectedLast()&&o.flipped?t=o.countRows()-1:o.getSelectedLast()&&(o.flipped?(r=o.getSelectedLast()[0],t=Math.max(0,r-1)):t=(r=o.getSelectedLast()[0])-1));void 0!==t&&(t<0||o.flipped&&t>o.countRows()-1?o.deselectCell():o.selectCell(t,0),o.getData().length&&(e.preventDefault(),(0,h.stopImmediatePropagation)(e),this.hot.listen(),this.TEXTAREA.focus())),(0,a.default)((0,u.default)(n.prototype),"onBeforeKeyDown",this).call(this,e)}}}],[{key:"EDITOR_TYPE",get:function(){return"handsontable"}}]),n}(c.TextEditor);t.HandsontableEditor=g},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.CheckboxEditor=t.EDITOR_TYPE=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(7)),s=r(n(8)),l=r(n(4)),u=n(134),c=n(10);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}t.EDITOR_TYPE="checkbox";var h=function(e){(0,a.default)(n,e);var t=d(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"beginEditing",value:function(e,t){if(t&&"mouseup"===t.type){var n=this.TD.querySelector('input[type="checkbox"]');(0,c.hasClass)(n,"htBadValue")||n.click()}}},{key:"finishEditing",value:function(){}},{key:"init",value:function(){}},{key:"open",value:function(){}},{key:"close",value:function(){}},{key:"getValue",value:function(){}},{key:"setValue",value:function(){}},{key:"focus",value:function(){}}],[{key:"EDITOR_TYPE",get:function(){return"checkbox"}}]),n}(u.BaseEditor);t.CheckboxEditor=h},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.DateEditor=t.EDITOR_TYPE=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(16)),s=r(n(7)),l=r(n(8)),u=r(n(4)),c=r(n(76)),d=r(n(589));n(590);var h=n(103),f=r(n(31)),v=n(10),p=n(5),g=n(70);function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}t.EDITOR_TYPE="date";var y=function(e){(0,s.default)(n,e);var t=m(n);function n(e){var r;return(0,o.default)(this,n),(r=t.call(this,e)).defaultDateFormat="DD/MM/YYYY",r.isCellEdited=!1,r.parentDestroyed=!1,r}return(0,i.default)(n,[{key:"init",value:function(){var e=this;if("function"!=typeof c.default)throw new Error("You need to include moment.js to your project.");if("function"!=typeof d.default)throw new Error("You need to include Pikaday to your project.");(0,a.default)((0,u.default)(n.prototype),"init",this).call(this),this.instance.addHook("afterDestroy",(function(){e.parentDestroyed=!0,e.destroyElements()}))}},{key:"createElements",value:function(){(0,a.default)((0,u.default)(n.prototype),"createElements",this).call(this),this.datePicker=this.hot.rootDocument.createElement("DIV"),this.datePickerStyle=this.datePicker.style,this.datePickerStyle.position="absolute",this.datePickerStyle.top=0,this.datePickerStyle.left=0,this.datePickerStyle.zIndex=9999,(0,v.addClass)(this.datePicker,"htDatepickerHolder"),this.hot.rootDocument.body.appendChild(this.datePicker),this.$datePicker=new d.default(this.getDatePickerConfig()),new f.default(this).addEventListener(this.datePicker,"mousedown",(function(e){return e.stopPropagation()})),this.hideDatepicker()}},{key:"destroyElements",value:function(){var e=this.datePicker.parentNode;this.$datePicker.destroy(),e&&e.removeChild(this.datePicker)}},{key:"prepare",value:function(e,t,r,o,i,s){(0,a.default)((0,u.default)(n.prototype),"prepare",this).call(this,e,t,r,o,i,s)}},{key:"open",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,a.default)((0,u.default)(n.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()})),(0,a.default)((0,u.default)(n.prototype),"close",this).call(this)}},{key:"finishEditing",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){var r=this.originalValue;void 0!==r&&this.setValue(r)}this.hideDatepicker(),(0,a.default)((0,u.default)(n.prototype),"finishEditing",this).call(this,e,t)}},{key:"showDatepicker",value:function(e){this.$datePicker.config(this.getDatePickerConfig());var t,n=this.TD.getBoundingClientRect(),r=this.cellProperties.dateFormat||this.defaultDateFormat,o=this.$datePicker.config(),i=this.instance.view.isMouseDown(),a=!!e&&(0,g.isMetaKey)(e.keyCode);this.datePickerStyle.top="".concat(this.hot.rootWindow.pageYOffset+n.top+(0,v.outerHeight)(this.TD),"px"),this.datePickerStyle.left="".concat(this.hot.rootWindow.pageXOffset+n.left,"px"),this.$datePicker._onInputFocus=function(){},o.format=r,this.originalValue?(t=this.originalValue,(0,c.default)(t,r,!0).isValid()&&this.$datePicker.setMoment((0,c.default)(t,r),!0),this.getValue()!==this.originalValue&&this.setValue(this.originalValue),a||i||this.setValue("")):this.cellProperties.defaultDate?(t=this.cellProperties.defaultDate,o.defaultDate=t,(0,c.default)(t,r,!0).isValid()&&this.$datePicker.setMoment((0,c.default)(t,r),!0),a||i||this.setValue("")):this.$datePicker.gotoToday(),this.datePickerStyle.display="block",this.$datePicker.show()}},{key:"hideDatepicker",value:function(){this.datePickerStyle.display="none",this.$datePicker.hide()}},{key:"getDatePickerConfig",value:function(){var e=this,t=this.TEXTAREA,n={};this.cellProperties&&this.cellProperties.datePickerConfig&&(0,p.deepExtend)(n,this.cellProperties.datePickerConfig);var r=n.onSelect,o=n.onClose;return n.field=t,n.trigger=t,n.container=this.datePicker,n.bound=!1,n.format=n.format||this.defaultDateFormat,n.reposition=n.reposition||!1,n.onSelect=function(t){var n=t;isNaN(n.getTime())||(n=(0,c.default)(n).format(e.cellProperties.dateFormat||e.defaultDateFormat)),e.setValue(n),e.hideDatepicker(),r&&r()},n.onClose=function(){e.parentDestroyed||e.finishEditing(!1),o&&o()},n}}],[{key:"EDITOR_TYPE",get:function(){return"date"}}]),n}(h.TextEditor);t.DateEditor=y},function(e,t,n){
/*!
* Pikaday
*
* Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/Pikaday/Pikaday
*/
!function(t,r){"use strict";var o;try{o=n(76)}catch(e){}e.exports=function(e){var t="function"==typeof e,n=!!window.addEventListener,r=window.document,o=window.setTimeout,i=function(e,t,r,o){n?e.addEventListener(t,r,!!o):e.attachEvent("on"+t,r)},a=function(e,t,r,o){n?e.removeEventListener(t,r,!!o):e.detachEvent("on"+t,r)},s=function(e,t){return-1!==(" "+e.className+" ").indexOf(" "+t+" ")},l=function(e,t){s(e,t)||(e.className=""===e.className?t:e.className+" "+t)},u=function(e,t){var n;e.className=(n=(" "+e.className+" ").replace(" "+t+" "," ")).trim?n.trim():n.replace(/^\s+|\s+$/g,"")},c=function(e){return/Array/.test(Object.prototype.toString.call(e))},d=function(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())},h=function(e){var t=e.getDay();return 0===t||6===t},f=function(e){return e%4==0&&e%100!=0||e%400==0},v=function(e,t){return[31,f(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},p=function(e){d(e)&&e.setHours(0,0,0,0)},g=function(e,t){return e.getTime()===t.getTime()},m=function(e,t,n){var r,o;for(r in t)(o=void 0!==e[r])&&"object"==typeof t[r]&&null!==t[r]&&void 0===t[r].nodeName?d(t[r])?n&&(e[r]=new Date(t[r].getTime())):c(t[r])?n&&(e[r]=t[r].slice(0)):e[r]=m({},t[r],n):!n&&o||(e[r]=t[r]);return e},y=function(e,t,n){var o;r.createEvent?((o=r.createEvent("HTMLEvents")).initEvent(t,!0,!1),o=m(o,n),e.dispatchEvent(o)):r.createEventObject&&(o=r.createEventObject(),o=m(o,n),e.fireEvent("on"+t,o))},E=function(e){return e.month<0&&(e.year-=Math.ceil(Math.abs(e.month)/12),e.month+=12),e.month>11&&(e.year+=Math.floor(Math.abs(e.month)/12),e.month-=12),e},w={field:null,bound:void 0,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0},C=function(e,t,n){for(t+=e.firstDay;t>=7;)t-=7;return n?e.i18n.weekdaysShort[t]:e.i18n.weekdays[t]},R=function(e){var t=[],n="false";if(e.isEmpty){if(!e.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';t.push("is-outside-current-month"),e.enableSelectionDaysInNextAndPreviousMonths||t.push("is-selection-disabled")}return e.isDisabled&&t.push("is-disabled"),e.isToday&&t.push("is-today"),e.isSelected&&(t.push("is-selected"),n="true"),e.hasEvent&&t.push("has-event"),e.isInRange&&t.push("is-inrange"),e.isStartRange&&t.push("is-startrange"),e.isEndRange&&t.push("is-endrange"),'<td data-day="'+e.day+'" class="'+t.join(" ")+'" aria-selected="'+n+'"><button class="pika-button pika-day" type="button" data-pika-year="'+e.year+'" data-pika-month="'+e.month+'" data-pika-day="'+e.day+'">'+e.day+"</button></td>"},T=function(e,t,n,r){return'<tr class="pika-row'+(n?" pick-whole-week":"")+(r?" is-selected":"")+'">'+(t?e.reverse():e).join("")+"</tr>"},b=function(e,t,n,r,o,i){var a,s,l,u,d,h=e._o,f=n===h.minYear,v=n===h.maxYear,p='<div id="'+i+'" class="pika-title" role="heading" aria-live="assertive">',g=!0,m=!0;for(l=[],a=0;a<12;a++)l.push('<option value="'+(n===o?a-t:12+a-t)+'"'+(a===r?' selected="selected"':"")+(f&&a<h.minMonth||v&&a>h.maxMonth?'disabled="disabled"':"")+">"+h.i18n.months[a]+"</option>");for(u='<div class="pika-label">'+h.i18n.months[r]+'<select class="pika-select pika-select-month" tabindex="-1">'+l.join("")+"</select></div>",c(h.yearRange)?(a=h.yearRange[0],s=h.yearRange[1]+1):(a=n-h.yearRange,s=1+n+h.yearRange),l=[];a<s&&a<=h.maxYear;a++)a>=h.minYear&&l.push('<option value="'+a+'"'+(a===n?' selected="selected"':"")+">"+a+"</option>");return d='<div class="pika-label">'+n+h.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+l.join("")+"</select></div>",h.showMonthAfterYear?p+=d+u:p+=u+d,f&&(0===r||h.minMonth>=r)&&(g=!1),v&&(11===r||h.maxMonth<=r)&&(m=!1),0===t&&(p+='<button class="pika-prev'+(g?"":" is-disabled")+'" type="button">'+h.i18n.previousMonth+"</button>"),t===e._o.numberOfMonths-1&&(p+='<button class="pika-next'+(m?"":" is-disabled")+'" type="button">'+h.i18n.nextMonth+"</button>"),p+"</div>"},S=function(a){var l=this,u=l.config(a);l._onMouseDown=function(e){if(l._v){var t=(e=e||window.event).target||e.srcElement;if(t)if(s(t,"is-disabled")||(!s(t,"pika-button")||s(t,"is-empty")||s(t.parentNode,"is-disabled")?s(t,"pika-prev")?l.prevMonth():s(t,"pika-next")&&l.nextMonth():(l.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day"))),u.bound&&o((function(){l.hide(),u.blurFieldOnSelect&&u.field&&u.field.blur()}),100))),s(t,"pika-select"))l._c=!0;else{if(!e.preventDefault)return e.returnValue=!1,!1;e.preventDefault()}}},l._onChange=function(e){var t=(e=e||window.event).target||e.srcElement;t&&(s(t,"pika-select-month")?l.gotoMonth(t.value):s(t,"pika-select-year")&&l.gotoYear(t.value))},l._onKeyChange=function(e){if(e=e||window.event,l.isVisible())switch(e.keyCode){case 13:case 27:u.field&&u.field.blur();break;case 37:e.preventDefault(),l.adjustDate("subtract",1);break;case 38:l.adjustDate("subtract",7);break;case 39:l.adjustDate("add",1);break;case 40:l.adjustDate("add",7)}},l._onInputChange=function(n){var r;n.firedBy!==l&&(r=u.parse?u.parse(u.field.value,u.format):t?(r=e(u.field.value,u.format,u.formatStrict))&&r.isValid()?r.toDate():null:new Date(Date.parse(u.field.value)),d(r)&&l.setDate(r),l._v||l.show())},l._onInputFocus=function(){l.show()},l._onInputClick=function(){l.show()},l._onInputBlur=function(){var e=r.activeElement;do{if(s(e,"pika-single"))return}while(e=e.parentNode);l._c||(l._b=o((function(){l.hide()}),50)),l._c=!1},l._onClick=function(e){var t=(e=e||window.event).target||e.srcElement,r=t;if(t){!n&&s(t,"pika-select")&&(t.onchange||(t.setAttribute("onchange","return;"),i(t,"change",l._onChange)));do{if(s(r,"pika-single")||r===u.trigger)return}while(r=r.parentNode);l._v&&t!==u.trigger&&r!==u.trigger&&l.hide()}},l.el=r.createElement("div"),l.el.className="pika-single"+(u.isRTL?" is-rtl":"")+(u.theme?" "+u.theme:""),i(l.el,"mousedown",l._onMouseDown,!0),i(l.el,"touchend",l._onMouseDown,!0),i(l.el,"change",l._onChange),u.keyboardInput&&i(r,"keydown",l._onKeyChange),u.field&&(u.container?u.container.appendChild(l.el):u.bound?r.body.appendChild(l.el):u.field.parentNode.insertBefore(l.el,u.field.nextSibling),i(u.field,"change",l._onInputChange),u.defaultDate||(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 c=u.defaultDate;d(c)?u.setDefaultDate?l.setDate(c,!0):l.gotoDate(c):l.gotoDate(new Date),u.bound?(this.hide(),l.el.className+=" is-bound",i(u.trigger,"click",l._onInputClick),i(u.trigger,"focus",l._onInputFocus),i(u.trigger,"blur",l._onInputBlur)):this.show()};return S.prototype={config:function(e){this._o||(this._o=m({},w,!0));var t=m(this._o,e,!0);t.isRTL=!!t.isRTL,t.field=t.field&&t.field.nodeName?t.field:null,t.theme="string"==typeof t.theme&&t.theme?t.theme:null,t.bound=!!(void 0!==t.bound?t.field&&t.bound:t.field),t.trigger=t.trigger&&t.trigger.nodeName?t.trigger:t.field,t.disableWeekends=!!t.disableWeekends,t.disableDayFn="function"==typeof t.disableDayFn?t.disableDayFn:null;var n=parseInt(t.numberOfMonths,10)||1;if(t.numberOfMonths=n>4?4:n,d(t.minDate)||(t.minDate=!1),d(t.maxDate)||(t.maxDate=!1),t.minDate&&t.maxDate&&t.maxDate<t.minDate&&(t.maxDate=t.minDate=!1),t.minDate&&this.setMinDate(t.minDate),t.maxDate&&this.setMaxDate(t.maxDate),c(t.yearRange)){var r=(new Date).getFullYear()-10;t.yearRange[0]=parseInt(t.yearRange[0],10)||r,t.yearRange[1]=parseInt(t.yearRange[1],10)||r}else t.yearRange=Math.abs(parseInt(t.yearRange,10))||w.yearRange,t.yearRange>100&&(t.yearRange=100);return t},toString:function(n){return n=n||this._o.format,d(this._d)?this._o.toString?this._o.toString(this._d,n):t?e(this._d).format(n):this._d.toDateString():""},getMoment:function(){return t?e(this._d):null},setMoment:function(n,r){t&&e.isMoment(n)&&this.setDate(n.toDate(),r)},getDate:function(){return d(this._d)?new Date(this._d.getTime()):null},setDate:function(e,t){if(!e)return this._d=null,this._o.field&&(this._o.field.value="",y(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof e&&(e=new Date(Date.parse(e))),d(e)){var n=this._o.minDate,r=this._o.maxDate;d(n)&&e<n?e=n:d(r)&&e>r&&(e=r),this._d=new Date(e.getTime()),p(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),y(this._o.field,"change",{firedBy:this})),t||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(e){var t=!0;if(d(e)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),r=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),o=e.getTime();r.setMonth(r.getMonth()+1),r.setDate(r.getDate()-1),t=o<n.getTime()||r.getTime()<o}t&&(this.calendars=[{month:e.getMonth(),year:e.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(e,t){var n,r=this.getDate()||new Date,o=24*parseInt(t)*60*60*1e3;"add"===e?n=new Date(r.valueOf()+o):"subtract"===e&&(n=new Date(r.valueOf()-o)),this.setDate(n)},adjustCalendars:function(){this.calendars[0]=E(this.calendars[0]);for(var e=1;e<this._o.numberOfMonths;e++)this.calendars[e]=E({month:this.calendars[0].month+e,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(e){isNaN(e)||(this.calendars[0].month=parseInt(e,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(e){isNaN(e)||(this.calendars[0].year=parseInt(e,10),this.adjustCalendars())},setMinDate:function(e){e instanceof Date?(p(e),this._o.minDate=e,this._o.minYear=e.getFullYear(),this._o.minMonth=e.getMonth()):(this._o.minDate=w.minDate,this._o.minYear=w.minYear,this._o.minMonth=w.minMonth,this._o.startRange=w.startRange),this.draw()},setMaxDate:function(e){e instanceof Date?(p(e),this._o.maxDate=e,this._o.maxYear=e.getFullYear(),this._o.maxMonth=e.getMonth()):(this._o.maxDate=w.maxDate,this._o.maxYear=w.maxYear,this._o.maxMonth=w.maxMonth,this._o.endRange=w.endRange),this.draw()},setStartRange:function(e){this._o.startRange=e},setEndRange:function(e){this._o.endRange=e},draw:function(e){if(this._v||e){var t,n=this._o,r=n.minYear,i=n.maxYear,a=n.minMonth,s=n.maxMonth,l="";this._y<=r&&(this._y=r,!isNaN(a)&&this._m<a&&(this._m=a)),this._y>=i&&(this._y=i,!isNaN(s)&&this._m>s&&(this._m=s)),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">'+b(this,u,this.calendars[u].year,this.calendars[u].month,this.calendars[0].year,t)+this.render(this.calendars[u].year,this.calendars[u].month,t)+"</div>";this.el.innerHTML=l,n.bound&&"hidden"!==n.field.type&&o((function(){n.trigger.focus()}),1),"function"==typeof this._o.onDraw&&this._o.onDraw(this),n.bound&&n.field.setAttribute("aria-label",n.ariaLabel)}},adjustPosition:function(){var e,t,n,o,i,a,s,c,d,h,f,v;if(!this._o.container){if(this.el.style.position="absolute",t=e=this._o.trigger,n=this.el.offsetWidth,o=this.el.offsetHeight,i=window.innerWidth||r.documentElement.clientWidth,a=window.innerHeight||r.documentElement.clientHeight,s=window.pageYOffset||r.body.scrollTop||r.documentElement.scrollTop,f=!0,v=!0,"function"==typeof e.getBoundingClientRect)c=(h=e.getBoundingClientRect()).left+window.pageXOffset,d=h.bottom+window.pageYOffset;else for(c=t.offsetLeft,d=t.offsetTop+t.offsetHeight;t=t.offsetParent;)c+=t.offsetLeft,d+=t.offsetTop;(this._o.reposition&&c+n>i||this._o.position.indexOf("right")>-1&&c-n+e.offsetWidth>0)&&(c=c-n+e.offsetWidth,f=!1),(this._o.reposition&&d+o>a+s||this._o.position.indexOf("top")>-1&&d-o-e.offsetHeight>0)&&(d=d-o-e.offsetHeight,v=!1),this.el.style.left=c+"px",this.el.style.top=d+"px",l(this.el,f?"left-aligned":"right-aligned"),l(this.el,v?"bottom-aligned":"top-aligned"),u(this.el,f?"right-aligned":"left-aligned"),u(this.el,v?"top-aligned":"bottom-aligned")}},render:function(e,t,n){var r=this._o,o=new Date,i=v(e,t),a=new Date(e,t,1).getDay(),s=[],l=[];p(o),r.firstDay>0&&(a-=r.firstDay)<0&&(a+=7);for(var u=0===t?11:t-1,c=11===t?0:t+1,f=0===t?e-1:e,m=11===t?e+1:e,y=v(f,u),E=i+a,w=E;w>7;)w-=7;E+=7-w;for(var b,S,O,_,I=!1,M=0,N=0;M<E;M++){var k=new Date(e,t,M-a+1),A=!!d(this._d)&&g(k,this._d),P=g(k,o),x=-1!==r.events.indexOf(k.toDateString()),D=M<a||M>=i+a,L=M-a+1,H=t,F=e,U=r.startRange&&g(r.startRange,k),B=r.endRange&&g(r.endRange,k),V=r.startRange&&r.endRange&&r.startRange<k&&k<r.endRange;D&&(M<a?(L=y+L,H=u,F=f):(L-=i,H=c,F=m));var Y={day:L,month:H,year:F,hasEvent:x,isSelected:A,isToday:P,isDisabled:r.minDate&&k<r.minDate||r.maxDate&&k>r.maxDate||r.disableWeekends&&h(k)||r.disableDayFn&&r.disableDayFn(k),isEmpty:D,isStartRange:U,isEndRange:B,isInRange:V,showDaysInNextAndPreviousMonths:r.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:r.enableSelectionDaysInNextAndPreviousMonths};r.pickWholeWeek&&A&&(I=!0),l.push(R(Y)),7==++N&&(r.showWeekNumber&&l.unshift((b=M-a,S=t,O=e,_=void 0,void 0,_=new Date(O,0,1),'<td class="pika-week">'+Math.ceil(((new Date(O,S,b)-_)/864e5+_.getDay()+1)/7)+"</td>")),s.push(T(l,r.isRTL,r.pickWholeWeek,I)),l=[],N=0,I=!1)}return function(e,t,n){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+n+'">'+function(e){var t,n=[];e.showWeekNumber&&n.push("<th></th>");for(t=0;t<7;t++)n.push('<th scope="col"><abbr title="'+C(e,t)+'">'+C(e,t,!0)+"</abbr></th>");return"<thead><tr>"+(e.isRTL?n.reverse():n).join("")+"</tr></thead>"}(e)+(r=t,"<tbody>"+r.join("")+"</tbody></table>");var r}(r,s,n)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),u(this.el,"is-hidden"),this._o.bound&&(i(r,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var e=this._v;!1!==e&&(this._o.bound&&a(r,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",l(this.el,"is-hidden"),this._v=!1,void 0!==e&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){var e=this._o;this.hide(),a(this.el,"mousedown",this._onMouseDown,!0),a(this.el,"touchend",this._onMouseDown,!0),a(this.el,"change",this._onChange),e.keyboardInput&&a(r,"keydown",this._onKeyChange),e.field&&(a(e.field,"change",this._onInputChange),e.bound&&(a(e.trigger,"click",this._onInputClick),a(e.trigger,"focus",this._onInputFocus),a(e.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},S}(o)}()},function(e,t,n){},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.DropdownEditor=t.EDITOR_TYPE=void 0,n(30);var o=r(n(1)),i=r(n(2)),a=r(n(16)),s=r(n(7)),l=r(n(8)),u=r(n(4)),c=n(212),d=r(n(48));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}t.EDITOR_TYPE="dropdown";var f=function(e){(0,s.default)(n,e);var t=h(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"prepare",value:function(e,t,r,o,i,s){(0,a.default)((0,u.default)(n.prototype),"prepare",this).call(this,e,t,r,o,i,s),this.cellProperties.filter=!1,this.cellProperties.strict=!0}}],[{key:"EDITOR_TYPE",get:function(){return"dropdown"}}]),n}(c.AutocompleteEditor);t.DropdownEditor=f,d.default.getSingleton().add("beforeValidate",(function(e,t,n){var r=this.getCellMeta(t,this.propToCol(n));r.editor===f&&void 0===r.strict&&(r.filter=!1,r.strict=!0)}))},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.NumericEditor=t.EDITOR_TYPE=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(7)),s=r(n(8)),l=r(n(4)),u=n(103);function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}t.EDITOR_TYPE="numeric";var d=function(e){(0,a.default)(n,e);var t=c(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,null,[{key:"EDITOR_TYPE",get:function(){return"numeric"}}]),n}(u.TextEditor);t.NumericEditor=d},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.PasswordEditor=t.EDITOR_TYPE=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(16)),s=r(n(7)),l=r(n(8)),u=r(n(4)),c=n(103),d=n(10);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}t.EDITOR_TYPE="password";var f=function(e){(0,s.default)(n,e);var t=h(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"createElements",value:function(){(0,a.default)((0,u.default)(n.prototype),"createElements",this).call(this),this.TEXTAREA=this.hot.rootDocument.createElement("input"),this.TEXTAREA.setAttribute("type","password"),this.TEXTAREA.setAttribute("data-hot-input",""),this.TEXTAREA.className="handsontableInput",this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,(0,d.empty)(this.TEXTAREA_PARENT),this.TEXTAREA_PARENT.appendChild(this.TEXTAREA)}}],[{key:"EDITOR_TYPE",get:function(){return"password"}}]),n}(c.TextEditor);t.PasswordEditor=f},function(e,t,n){"use strict";t.__esModule=!0,t.SelectEditor=t.EDITOR_TYPE=void 0;var r=n(595);t.EDITOR_TYPE=r.EDITOR_TYPE,t.SelectEditor=r.SelectEditor},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.SelectEditor=t.EDITOR_TYPE=void 0;var o=r(n(56)),i=r(n(1)),a=r(n(2)),s=r(n(16)),l=r(n(7)),u=r(n(8)),c=r(n(4)),d=n(134),h=n(10),f=n(45),v=n(5),p=n(70);function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}t.EDITOR_TYPE="select";var m=function(e){(0,l.default)(n,e);var t=g(n);function n(){return(0,i.default)(this,n),t.apply(this,arguments)}return(0,a.default)(n,[{key:"init",value:function(){this.select=this.hot.rootDocument.createElement("SELECT"),(0,h.addClass)(this.select,"htSelectEditor"),this.select.style.display="none",this.hot.rootElement.appendChild(this.select),this.registerHooks()}},{key:"getValue",value:function(){return this.select.value}},{key:"setValue",value:function(e){this.select.value=e}},{key:"open",value:function(){var e=this;this._opened=!0,this.refreshDimensions(),this.select.style.display="",this.addHook("beforeKeyDown",(function(){return e.onBeforeKeyDown()}))}},{key:"close",value:function(){this._opened=!1,this.select.style.display="none",(0,h.hasClass)(this.select,"ht_editor_visible")&&(0,h.removeClass)(this.select,"ht_editor_visible"),this.clearHooks()}},{key:"focus",value:function(){this.select.focus()}},{key:"registerHooks",value:function(){var e=this;this.addHook("afterScrollHorizontally",(function(){return e.refreshDimensions()})),this.addHook("afterScrollVertically",(function(){return e.refreshDimensions()})),this.addHook("afterColumnResize",(function(){return e.refreshDimensions()})),this.addHook("afterRowResize",(function(){return e.refreshDimensions()}))}},{key:"prepare",value:function(e,t,r,o,i,a){var l=this;(0,s.default)((0,c.default)(n.prototype),"prepare",this).call(this,e,t,r,o,i,a);var u,d=this.cellProperties.selectOptions;u="function"==typeof d?this.prepareOptions(d(this.row,this.col,this.prop)):this.prepareOptions(d),(0,h.empty)(this.select),(0,v.objectEach)(u,(function(e,t){var n=l.hot.rootDocument.createElement("OPTION");n.value=t,(0,h.fastInnerHTML)(n,e),l.select.appendChild(n)}))}},{key:"prepareOptions",value:function(e){var t={};if(Array.isArray(e))for(var n=0,r=e.length;n<r;n++)t[e[n]]=e[n];else"object"===(0,o.default)(e)&&(t=e);return t}},{key:"refreshValue",value:function(){var e=this.hot.getSourceDataAtCell(this.row,this.prop);this.originalValue=e,this.setValue(e),this.refreshDimensions()}},{key:"refreshDimensions",value:function(){if(this.state===d.EDITOR_STATE.EDITING)if(this.TD=this.getEditedCell(),this.TD){var e,t=this.hot.view.wt.wtOverlays,n=(0,h.offset)(this.TD),r=(0,h.offset)(this.hot.rootElement),o=t.scrollableElement,i=this.checkEditorSection(),a=(0,h.outerWidth)(this.TD)+1,s=(0,h.outerHeight)(this.TD)+1,l=n.top-r.top-1-(o.scrollTop||0),u=n.left-r.left-1-(o.scrollLeft||0);switch(i){case"top":e=(0,h.getCssTransform)(t.topOverlay.clone.wtTable.holder.parentNode);break;case"left":e=(0,h.getCssTransform)(t.leftOverlay.clone.wtTable.holder.parentNode);break;case"top-left-corner":e=(0,h.getCssTransform)(t.topLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom-left-corner":e=(0,h.getCssTransform)(t.bottomLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom":e=(0,h.getCssTransform)(t.bottomOverlay.clone.wtTable.holder.parentNode)}var c=this.hot.rowIndexMapper.getRenderableFromVisualIndex(this.row),f=this.hot.columnIndexMapper.getRenderableFromVisualIndex(this.col),v=this.hot.rowIndexMapper.getRenderableIndexesLength()-this.hot.view.wt.getSetting("fixedRowsBottom");(c<=0||c===v)&&(l+=1),f<=0&&(u+=1);var p=this.select.style;e&&-1!==e?p[e[0]]=e[1]:(0,h.resetCssTransform)(this.select);var g=(0,h.getComputedStyle)(this.TD,this.hot.rootWindow);parseInt(g.borderTopWidth,10)>0&&(s-=1),parseInt(g.borderLeftWidth,10)>0&&(a-=1),p.height="".concat(s,"px"),p.minWidth="".concat(a,"px"),p.top="".concat(l,"px"),p.left="".concat(u,"px"),p.margin="0px",(0,h.addClass)(this.select,"ht_editor_visible")}else this.close()}},{key:"onBeforeKeyDown",value:function(){var e=this.select.selectedIndex-1,t=this.select.selectedIndex+1;switch(event.keyCode){case p.KEY_CODES.ARROW_UP:e>=0&&(this.select[e].selected=!0),(0,f.stopImmediatePropagation)(event),event.preventDefault();break;case p.KEY_CODES.ARROW_DOWN:t<=this.select.length-1&&(this.select[t].selected=!0),(0,f.stopImmediatePropagation)(event),event.preventDefault()}}}],[{key:"EDITOR_TYPE",get:function(){return"select"}}]),n}(d.BaseEditor);t.SelectEditor=m},function(e,t,n){"use strict";t.__esModule=!0,t.registerRenderer=t.hasRenderer=t.getRenderer=t.getRegisteredRenderers=t.getRegisteredRendererNames=t.textRenderer=t.passwordRenderer=t.numericRenderer=t.htmlRenderer=t.checkboxRenderer=t.baseRenderer=t.TEXT_RENDERER=t.PASSWORD_RENDERER=t.NUMERIC_RENDERER=t.HTML_RENDERER=t.CHECKBOX_RENDERER=t.BASE_RENDERER=t.AUTOCOMPLETE_RENDERER=t.autocompleteRenderer=void 0;var r=n(141);t.autocompleteRenderer=r.autocompleteRenderer,t.AUTOCOMPLETE_RENDERER=r.RENDERER_TYPE;var o=n(168);t.baseRenderer=o.baseRenderer,t.BASE_RENDERER=o.RENDERER_TYPE;var i=n(435);t.checkboxRenderer=i.checkboxRenderer,t.CHECKBOX_RENDERER=i.RENDERER_TYPE;var a=n(434);t.htmlRenderer=a.htmlRenderer,t.HTML_RENDERER=a.RENDERER_TYPE;var s=n(436);t.numericRenderer=s.numericRenderer,t.NUMERIC_RENDERER=s.RENDERER_TYPE;var l=n(438);t.passwordRenderer=l.passwordRenderer,t.PASSWORD_RENDERER=l.RENDERER_TYPE;var u=n(104);t.textRenderer=u.textRenderer,t.TEXT_RENDERER=u.RENDERER_TYPE;var c=n(161);t.getRegisteredRendererNames=c.getRegisteredRendererNames,t.getRegisteredRenderers=c.getRegisteredRenderers,t.getRenderer=c.getRenderer,t.hasRenderer=c.hasRenderer,t.registerRenderer=c.registerRenderer},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.autocompleteRenderer=u,t.RENDERER_TYPE=void 0;var o=n(434),i=n(104),a=n(38),s=r(n(31)),l=n(10);n(599);function u(e,t,n,r,u,c,d){var h=e.rootDocument,f=d.allowHtml?o.htmlRenderer:i.textRenderer,v=h.createElement("DIV");if(v.className="htAutocompleteArrow",v.appendChild(h.createTextNode(String.fromCharCode(9660))),f.apply(this,[e,t,n,r,u,c,d]),t.firstChild||t.appendChild(h.createTextNode(String.fromCharCode(160))),t.insertBefore(v,t.firstChild),(0,l.addClass)(t,"htAutocomplete"),!e.acArrowListener){var p=new s.default(e);e.acArrowListener=function(o){(0,l.hasClass)(o.target,"htAutocompleteArrow")&&e.view.wt.getSetting("onCellDblClick",null,new a.CellCoords(n,r),t)},p.addEventListener(e.rootElement,"mousedown",e.acArrowListener),e.addHookOnce("afterDestroy",(function(){p.destroy()}))}}t.RENDERER_TYPE="autocomplete",u.RENDERER_TYPE="autocomplete"},function(e,t,n){"use strict";t.__esModule=!0,t.htmlRenderer=i,t.RENDERER_TYPE=void 0;var r=n(168),o=n(10);function i(e,t,n,i,a,s,l){r.baseRenderer.apply(this,[e,t,n,i,a,s,l]),(0,o.fastInnerHTML)(t,null==s?"":s,!1)}t.RENDERER_TYPE="html",i.RENDERER_TYPE="html"},function(e,t,n){},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.checkboxRenderer=p,t.RENDERER_TYPE=void 0,n(12),n(9),n(11),n(22),n(13),n(26),n(34),n(52),n(44);var o=n(168),i=r(n(31)),a=n(10),s=n(45),l=n(53),u=n(75),c=n(20),d=n(70);n(601);var h=r(n(48)),f=new WeakMap,v=new WeakMap;function p(e,t,n,r,h,p,m){var y=e.rootDocument;o.baseRenderer.apply(this,[e,t,n,r,h,p,m]),function(e){var t=v.get(e);if(!t){var n=e.rootElement;(t=new i.default(e)).addEventListener(n,"click",(function(t){return function(e,t){var n=e.target;if(!g(n))return;if(!n.hasAttribute("data-row")||!n.hasAttribute("data-col"))return;var r=parseInt(n.getAttribute("data-row"),10),o=parseInt(n.getAttribute("data-col"),10);t.getCellMeta(r,o).readOnly&&e.preventDefault()}(t,e)})),t.addEventListener(n,"mouseup",(function(t){return function(e,t){var n=e.target;if(!g(n))return;if(!n.hasAttribute("data-row")||!n.hasAttribute("data-col"))return;setTimeout(t.listen,10)}(t,e)})),t.addEventListener(n,"change",(function(t){return function(e,t){var n=e.target;if(!g(n))return;if(!n.hasAttribute("data-row")||!n.hasAttribute("data-col"))return;var r=parseInt(n.getAttribute("data-row"),10),o=parseInt(n.getAttribute("data-col"),10),i=t.getCellMeta(r,o);if(!i.readOnly){var a=null;a=e.target.checked?void 0===i.uncheckedTemplate||i.checkedTemplate:void 0!==i.uncheckedTemplate&&i.uncheckedTemplate,t.setDataAtCell(r,o,a)}}(t,e)})),v.set(e,t)}}(e);var E=function(e){var t=e.createElement("input");return t.className="htCheckboxRendererInput",t.type="checkbox",t.setAttribute("autocomplete","off"),t.setAttribute("tabindex","-1"),t.cloneNode(!1)}(y),w=m.label,C=!1;if(void 0===m.checkedTemplate&&(m.checkedTemplate=!0),void 0===m.uncheckedTemplate&&(m.uncheckedTemplate=!1),(0,a.empty)(t),p===m.checkedTemplate||(0,u.equalsIgnoreCase)(p,m.checkedTemplate)?E.checked=!0:p===m.uncheckedTemplate||(0,u.equalsIgnoreCase)(p,m.uncheckedTemplate)?E.checked=!1:(0,c.isEmpty)(p)?(0,a.addClass)(E,"noValue"):(E.style.display="none",(0,a.addClass)(E,"htBadValue"),C=!0),E.setAttribute("data-row",n),E.setAttribute("data-col",r),!C&&w){var R="";if(w.value)R="function"==typeof w.value?w.value.call(this,n,r,h,p):w.value;else if(w.property){var T=e.getDataAtRowProp(n,w.property);R=null!==T?T:""}var b=function(e,t){var n=e.createElement("label");return n.className="htCheckboxRendererLabel",n.appendChild(e.createTextNode(t)),n.cloneNode(!0)}(y,R);"before"===w.position?w.separated?(t.appendChild(b),t.appendChild(E)):(b.appendChild(E),E=b):w.position&&"after"!==w.position||(w.separated?(t.appendChild(E),t.appendChild(b)):(b.insertBefore(E,b.firstChild),E=b))}function S(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=e.getSelectedRange();if(n)for(var r=0;r<n.length;r++){for(var o=n[r].getTopLeftCorner(),i=o.row,a=o.col,s=n[r].getBottomRightCorner(),l=s.row,u=s.col,c=[],d=i;d<=l;d+=1)for(var h=a;h<=u;h+=1){var f=e.getCellMeta(d,h);if("checkbox"!==f.type)return;if(!0!==f.readOnly){void 0===f.checkedTemplate&&(f.checkedTemplate=!0),void 0===f.uncheckedTemplate&&(f.uncheckedTemplate=!1);var v=e.getDataAtCell(d,h);!1===t?[f.checkedTemplate,f.checkedTemplate.toString()].includes(v)?c.push([d,h,f.uncheckedTemplate]):[f.uncheckedTemplate,f.uncheckedTemplate.toString(),null,void 0].includes(v)&&c.push([d,h,f.checkedTemplate]):c.push([d,h,f.uncheckedTemplate])}}c.length>0&&e.setDataAtCell(c)}}(!w||w&&!w.separated)&&t.appendChild(E),C&&t.appendChild(y.createTextNode("#bad-value#")),f.has(e)||(f.set(e,!0),e.addHook("beforeKeyDown",(function(t){var n=(0,l.partial)(d.isKey,t.keyCode);if(!e.getSettings().enterBeginsEditing&&n("ENTER"))return;n("".concat("SPACE|ENTER","|").concat("DELETE|BACKSPACE"))&&!(0,s.isImmediatePropagationStopped)(t)&&function(t){var n=e.getSelectedRange();if(!n)return;for(var r=0;r<n.length;r++)for(var o=n[r].getTopLeftCorner(),i=n[r].getBottomRightCorner(),a=o.row;a<=i.row;a++)for(var s=o.col;s<=i.col;s++){var l=e.getCellMeta(a,s);if("checkbox"!==l.type)return;var u=e.getCell(a,s);if(null==u)t(a,s,l);else{var c=u.querySelectorAll("input[type=checkbox]");c.length>0&&!l.readOnly&&t(c)}}}((function(){(0,s.stopImmediatePropagation)(t),t.preventDefault()}));n("SPACE|ENTER")&&S();n("DELETE|BACKSPACE")&&S(!0)})))}function g(e){return"INPUT"===e.tagName&&"checkbox"===e.getAttribute("type")}t.RENDERER_TYPE="checkbox",h.default.getSingleton().add("modifyAutoColumnSizeSeed",(function(e,t,n){var r=t.label,o=t.type,i=t.row,a=t.column,s=t.prop;if("checkbox"===o){if(r){var l=r.value,u=r.property,c=n;if(l)c="function"==typeof l?l(i,a,s,n):l;else if(u){var d=this.getDataAtRowProp(i,u);c=null!==d?d:n}e=c}return e}})),p.RENDERER_TYPE="checkbox"},function(e,t,n){},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.numericRenderer=s,t.RENDERER_TYPE=void 0,n(29),n(61),n(51),n(17),n(73);var o=r(n(437)),i=n(104),a=n(24);function s(e,t,n,r,s,l,u){var c=l;if((0,a.isNumeric)(c)){var d=u.numericFormat,h=d&&d.culture||"-",f=d&&d.pattern,v=u.className||"",p=v.length?v.split(" "):[];if(void 0!==h&&!o.default.languages()[h]){var g=h.replace("-",""),m=o.default.allLanguages?o.default.allLanguages[h]:o.default[g];m&&o.default.registerLanguage(m)}o.default.setLanguage(h),c=(0,o.default)(c).format(f||"0"),p.indexOf("htLeft")<0&&p.indexOf("htCenter")<0&&p.indexOf("htRight")<0&&p.indexOf("htJustify")<0&&p.push("htRight"),p.indexOf("htNumeric")<0&&p.push("htNumeric"),u.className=p.join(" ")}(0,i.textRenderer)(e,t,n,r,s,c,u)}t.RENDERER_TYPE="numeric",s.RENDERER_TYPE="numeric"},function(e,t,n){"use strict";t.__esModule=!0,t.passwordRenderer=a,t.RENDERER_TYPE=void 0;var r=n(104),o=n(10),i=n(24);function a(e,t,n,a,s,l,u){r.textRenderer.apply(this,[e,t,n,a,s,l,u]);var c=u.hashLength||t.innerHTML.length,d=u.hashSymbol||"*",h="";(0,i.rangeEach)(c-1,(function(){h+=d})),(0,o.fastInnerHTML)(t,h)}t.RENDERER_TYPE="password",a.RENDERER_TYPE="password"},function(e,t,n){"use strict";t.__esModule=!0,t.registerValidator=t.hasValidator=t.getValidator=t.getRegisteredValidators=t.getRegisteredValidatorNames=t.timeValidator=t.numericValidator=t.dateValidator=t.TIME_VALIDATOR=t.NUMERIC_VALIDATOR=t.DATE_VALIDATOR=t.AUTOCOMPLETE_VALIDATOR=t.autocompleteValidator=void 0;var r=n(215);t.autocompleteValidator=r.autocompleteValidator,t.AUTOCOMPLETE_VALIDATOR=r.VALIDATOR_TYPE;var o=n(439);t.dateValidator=o.dateValidator,t.DATE_VALIDATOR=o.VALIDATOR_TYPE;var i=n(441);t.numericValidator=i.numericValidator,t.NUMERIC_VALIDATOR=i.VALIDATOR_TYPE;var a=n(442);t.timeValidator=a.timeValidator,t.TIME_VALIDATOR=a.VALIDATOR_TYPE;var s=n(162);t.getRegisteredValidatorNames=s.getRegisteredValidatorNames,t.getRegisteredValidators=s.getRegisteredValidators,t.getValidator=s.getValidator,t.hasValidator=s.hasValidator,t.registerValidator=s.registerValidator},function(e,t,n){"use strict";t.__esModule=!0,t.autocompleteValidator=r,t.VALIDATOR_TYPE=void 0;function r(e,t){var n=e;null==n&&(n=""),this.allowEmpty&&""===n?t(!0):this.strict&&this.source?"function"==typeof this.source?this.source(n,o(n,t)):o(n,t)(this.source):t(!0)}function o(e,t){var n=e;return function(e){for(var r=!1,o=0,i=e.length;o<i;o++)if(n===e[o]){r=!0;break}t(r)}}t.VALIDATOR_TYPE="autocomplete",r.VALIDATOR_TYPE="autocomplete"},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.dateValidator=l,t.correctFormat=u,t.VALIDATOR_TYPE=void 0,n(29),n(440);var o=r(n(76)),i=n(133),a=n(214),s=n(429);function l(e,t){var n=(0,i.getEditorInstance)(a.EDITOR_TYPE,this.instance),r=e,s=!0;null==r&&(r="");var l=(0,o.default)(r,this.dateFormat||n.defaultDateFormat,!0).isValid(),c=(0,o.default)(new Date(r)).isValid()||l;if(this.allowEmpty&&""===r&&(c=!0,l=!0),c||(s=!1),!c&&l&&(s=!0),c&&!l)if(!0===this.correctFormat){var d=u(r,this.dateFormat),h=this.instance.toVisualRow(this.row),f=this.instance.toVisualColumn(this.col);this.instance.setDataAtCell(h,f,d,"dateValidator"),s=!0}else s=!1;t(s)}function u(e,t){var n=(0,o.default)((0,s.getNormalizedDate)(e)),r=(0,o.default)(e,t),i=e.search(/[A-z]/g)>-1;return(n.isValid()&&n.format("x")===r.format("x")||!r.isValid()||i?n:r).format(t)}t.VALIDATOR_TYPE="date",l.VALIDATOR_TYPE="date"},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){"use strict";t.__esModule=!0,t.numericValidator=o,t.VALIDATOR_TYPE=void 0;var r=n(24);function o(e,t){var n=e;null==n&&(n=""),this.allowEmpty&&""===n?t(!0):t(""!==n&&(0,r.isNumeric)(e))}t.VALIDATOR_TYPE="numeric",o.VALIDATOR_TYPE="numeric"},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.timeValidator=a,t.VALIDATOR_TYPE=void 0;var o=r(n(76)),i=["YYYY-MM-DDTHH:mm:ss.SSSZ","X","x"];function a(e,t){var n=this.timeFormat||"h:mm:ss a",r=!0,a=e;null===a&&(a=""),a=/^\d{3,}$/.test(a)?parseInt(a,10):a;var s=/^\d{1,2}$/.test(a);s&&(a+=":00");var l=(0,o.default)(a,i,!0).isValid()?(0,o.default)(a):(0,o.default)(a,n),u=l.isValid(),c=(0,o.default)(a,n,!0).isValid()&&!s;if(this.allowEmpty&&""===a&&(u=!0,c=!0),u||(r=!1),!u&&c&&(r=!0),u&&!c)if(!0===this.correctFormat){var d=l.format(n),h=this.instance.toVisualRow(this.row),f=this.instance.toVisualColumn(this.col);this.instance.setDataAtCell(h,f,d,"timeValidator"),r=!0}else r=!1;t(r)}t.VALIDATOR_TYPE="time",a.VALIDATOR_TYPE="time"},function(e,t,n){"use strict";t.__esModule=!0,t.registerCellType=t.hasCellType=t.getRegisteredCellTypes=t.getRegisteredCellTypeNames=t.getCellType=t.TimeCellType=t.TextCellType=t.PasswordCellType=t.NumericCellType=t.HandsontableCellType=t.DropdownCellType=t.DateCellType=t.CheckboxCellType=t.TIME_TYPE=t.TEXT_TYPE=t.PASSWORD_TYPE=t.NUMERIC_TYPE=t.HANDSONTABLE_TYPE=t.DROPDOWN_TYPE=t.DATE_TYPE=t.CHECKBOX_TYPE=t.AUTOCOMPLETE_TYPE=t.AutocompleteCellType=void 0;var r=n(611);t.AutocompleteCellType=r.AutocompleteCellType,t.AUTOCOMPLETE_TYPE=r.CELL_TYPE;var o=n(613);t.CheckboxCellType=o.CheckboxCellType,t.CHECKBOX_TYPE=o.CELL_TYPE;var i=n(615);t.DateCellType=i.DateCellType,t.DATE_TYPE=i.CELL_TYPE;var a=n(617);t.DropdownCellType=a.DropdownCellType,t.DROPDOWN_TYPE=a.CELL_TYPE;var s=n(619);t.HandsontableCellType=s.HandsontableCellType,t.HANDSONTABLE_TYPE=s.CELL_TYPE;var l=n(621);t.NumericCellType=l.NumericCellType,t.NUMERIC_TYPE=l.CELL_TYPE;var u=n(623);t.PasswordCellType=u.PasswordCellType,t.PASSWORD_TYPE=u.CELL_TYPE;var c=n(428);t.TextCellType=c.TextCellType,t.TEXT_TYPE=c.CELL_TYPE;var d=n(625);t.TimeCellType=d.TimeCellType,t.TIME_TYPE=d.CELL_TYPE;var h=n(137);t.getCellType=h.getCellType,t.getRegisteredCellTypeNames=h.getRegisteredCellTypeNames,t.getRegisteredCellTypes=h.getRegisteredCellTypes,t.hasCellType=h.hasCellType,t.registerCellType=h.registerCellType},function(e,t,n){"use strict";t.__esModule=!0,t.CELL_TYPE=t.AutocompleteCellType=void 0;var r=n(612);t.AutocompleteCellType=r.AutocompleteCellType,t.CELL_TYPE=r.CELL_TYPE},function(e,t,n){"use strict";t.__esModule=!0,t.AutocompleteCellType=t.CELL_TYPE=void 0;var r=n(212),o=n(141),i=n(215);t.CELL_TYPE="autocomplete";var a={CELL_TYPE:"autocomplete",editor:r.AutocompleteEditor,renderer:o.autocompleteRenderer,validator:i.autocompleteValidator};t.AutocompleteCellType=a},function(e,t,n){"use strict";t.__esModule=!0,t.CheckboxCellType=t.CELL_TYPE=void 0;var r=n(614);t.CELL_TYPE=r.CELL_TYPE,t.CheckboxCellType=r.CheckboxCellType},function(e,t,n){"use strict";t.__esModule=!0,t.CheckboxCellType=t.CELL_TYPE=void 0;var r=n(430),o=n(435);t.CELL_TYPE="checkbox";var i={CELL_TYPE:"checkbox",editor:r.CheckboxEditor,renderer:o.checkboxRenderer};t.CheckboxCellType=i},function(e,t,n){"use strict";t.__esModule=!0,t.DateCellType=t.CELL_TYPE=void 0;var r=n(616);t.CELL_TYPE=r.CELL_TYPE,t.DateCellType=r.DateCellType},function(e,t,n){"use strict";t.__esModule=!0,t.DateCellType=t.CELL_TYPE=void 0;var r=n(214),o=n(141),i=n(439);t.CELL_TYPE="date";var a={CELL_TYPE:"date",editor:r.DateEditor,renderer:o.autocompleteRenderer,validator:i.dateValidator};t.DateCellType=a},function(e,t,n){"use strict";t.__esModule=!0,t.DropdownCellType=t.CELL_TYPE=void 0;var r=n(618);t.CELL_TYPE=r.CELL_TYPE,t.DropdownCellType=r.DropdownCellType},function(e,t,n){"use strict";t.__esModule=!0,t.DropdownCellType=t.CELL_TYPE=void 0;var r=n(431),o=n(141),i=n(215);t.CELL_TYPE="dropdown";var a={CELL_TYPE:"dropdown",editor:r.DropdownEditor,renderer:o.autocompleteRenderer,validator:i.autocompleteValidator};t.DropdownCellType=a},function(e,t,n){"use strict";t.__esModule=!0,t.HandsontableCellType=t.CELL_TYPE=void 0;var r=n(620);t.CELL_TYPE=r.CELL_TYPE,t.HandsontableCellType=r.HandsontableCellType},function(e,t,n){"use strict";t.__esModule=!0,t.HandsontableCellType=t.CELL_TYPE=void 0;var r=n(213),o=n(141);t.CELL_TYPE="handsontable";var i={CELL_TYPE:"handsontable",editor:r.HandsontableEditor,renderer:o.autocompleteRenderer};t.HandsontableCellType=i},function(e,t,n){"use strict";t.__esModule=!0,t.NumericCellType=t.CELL_TYPE=void 0;var r=n(622);t.CELL_TYPE=r.CELL_TYPE,t.NumericCellType=r.NumericCellType},function(e,t,n){"use strict";t.__esModule=!0,t.NumericCellType=t.CELL_TYPE=void 0;var r=n(432),o=n(436),i=n(441);t.CELL_TYPE="numeric";var a={CELL_TYPE:"numeric",editor:r.NumericEditor,renderer:o.numericRenderer,validator:i.numericValidator,dataType:"number"};t.NumericCellType=a},function(e,t,n){"use strict";t.__esModule=!0,t.PasswordCellType=t.CELL_TYPE=void 0;var r=n(624);t.CELL_TYPE=r.CELL_TYPE,t.PasswordCellType=r.PasswordCellType},function(e,t,n){"use strict";t.__esModule=!0,t.PasswordCellType=t.CELL_TYPE=void 0;var r=n(433),o=n(438);t.CELL_TYPE="password";var i={CELL_TYPE:"password",editor:r.PasswordEditor,renderer:o.passwordRenderer,copyable:!1};t.PasswordCellType=i},function(e,t,n){"use strict";t.__esModule=!0,t.TimeCellType=t.CELL_TYPE=void 0;var r=n(626);t.CELL_TYPE=r.CELL_TYPE,t.TimeCellType=r.TimeCellType},function(e,t,n){"use strict";t.__esModule=!0,t.TimeCellType=t.CELL_TYPE=void 0;var r=n(103),o=n(104),i=n(442);t.CELL_TYPE="time";var a={CELL_TYPE:"time",editor:r.TextEditor,renderer:o.textRenderer,validator:i.timeValidator};t.TimeCellType=a},function(e,t,n){"use strict";t.__esModule=!0,t.registerPlugin=t.getPluginsNames=t.getPlugin=t.TrimRows=t.HiddenRows=t.HiddenColumns=t.NestedRows=t.CollapsibleColumns=t.NestedHeaders=t.HeaderTooltips=t.Formulas=t.Filters=t.ExportFile=t.DropdownMenu=t.ColumnSummary=t.BindRowsWithHeaders=t.BasePlugin=t.UndoRedo=t.TouchScroll=t.Search=t.ObserveChanges=t.MultiColumnSorting=t.MultipleSelectionHandles=t.MergeCells=t.ManualRowMove=t.ManualColumnResize=t.ManualColumnMove=t.ManualColumnFreeze=t.DragToScroll=t.CustomBorders=t.CopyPaste=t.ContextMenu=t.Comments=t.ColumnSorting=t.AutoRowSize=t.ManualRowResize=t.Autofill=t.AutoColumnSize=t.PersistentState=void 0;var r=n(628);t.PersistentState=r.PersistentState;var o=n(632);t.AutoColumnSize=o.AutoColumnSize;var i=n(634);t.Autofill=i.Autofill;var a=n(637);t.ManualRowResize=a.ManualRowResize;var s=n(639);t.AutoRowSize=s.AutoRowSize;var l=n(444);t.ColumnSorting=l.ColumnSorting;var u=n(651);t.Comments=u.Comments;var c=n(656);t.ContextMenu=c.ContextMenu;var d=n(672);t.CopyPaste=d.CopyPaste;var h=n(681);t.CustomBorders=h.CustomBorders;var f=n(689);t.DragToScroll=f.DragToScroll;var v=n(691);t.ManualColumnFreeze=v.ManualColumnFreeze;var p=n(696);t.ManualColumnMove=p.ManualColumnMove;var g=n(701);t.ManualColumnResize=g.ManualColumnResize;var m=n(703);t.ManualRowMove=m.ManualRowMove;var y=n(708);t.MergeCells=y.MergeCells;var E=n(715);t.MultipleSelectionHandles=E.MultipleSelectionHandles;var w=n(717);t.MultiColumnSorting=w.MultiColumnSorting;var C=n(723);t.ObserveChanges=C.ObserveChanges;var R=n(728);t.Search=R.Search;var T=n(730);t.TouchScroll=T.TouchScroll;var b=n(732);t.UndoRedo=b.UndoRedo;var S=n(27);t.BasePlugin=S.BasePlugin;var O=n(734);t.BindRowsWithHeaders=O.BindRowsWithHeaders;var _=n(738);t.ColumnSummary=_.ColumnSummary;var I=n(743);t.DropdownMenu=I.DropdownMenu;var M=n(746);t.ExportFile=M.ExportFile;var N=n(752);t.Filters=N.Filters;var k=n(785);t.Formulas=k.Formulas;var A=n(823);t.HeaderTooltips=A.HeaderTooltips;var P=n(825);t.NestedHeaders=P.NestedHeaders;var x=n(838);t.CollapsibleColumns=x.CollapsibleColumns;var D=n(840);t.NestedRows=D.NestedRows;var L=n(847);t.HiddenColumns=L.HiddenColumns;var H=n(852);t.HiddenRows=H.HiddenRows;var F=n(857);t.TrimRows=F.TrimRows;var U=n(204);t.getPlugin=U.getPlugin,t.getPluginsNames=U.getPluginsNames,t.registerPlugin=U.registerPlugin},function(e,t,n){"use strict";t.__esModule=!0,t.PersistentState=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0;var r=n(629);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.PersistentState=r.PersistentState},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.PersistentState=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(16)),s=r(n(7)),l=r(n(8)),u=r(n(4)),c=n(27),d=r(n(631)),h=r(n(48));function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}h.default.getSingleton().register("persistentStateSave"),h.default.getSingleton().register("persistentStateLoad"),h.default.getSingleton().register("persistentStateReset");t.PLUGIN_KEY="persistentState";t.PLUGIN_PRIORITY=0;var v=function(e){(0,s.default)(n,e);var t=f(n);function n(e){var r;return(0,o.default)(this,n),(r=t.call(this,e)).storage=void 0,r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().persistentState}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.storage||(this.storage=new d.default(this.hot.rootElement.id,this.hot.rootWindow)),this.addHook("persistentStateSave",(function(t,n){return e.saveValue(t,n)})),this.addHook("persistentStateLoad",(function(t,n){return e.loadValue(t,n)})),this.addHook("persistentStateReset",(function(){return e.resetValue()})),(0,a.default)((0,u.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.storage=void 0,(0,a.default)((0,u.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,a.default)((0,u.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"loadValue",value:function(e,t){t.value=this.storage.loadValue(e)}},{key:"saveValue",value:function(e,t){this.storage.saveValue(e,t)}},{key:"resetValue",value:function(e){void 0===e?this.storage.resetAll():this.storage.reset(e)}},{key:"destroy",value:function(){(0,a.default)((0,u.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"persistentState"}},{key:"PLUGIN_PRIORITY",get:function(){return 0}}]),n}(c.BasePlugin);t.PersistentState=v},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.BasePlugin=t.PLUGIN_KEY=void 0;var o=r(n(18)),i=r(n(1)),a=r(n(2));n(12),n(39),n(9),n(11),n(13),n(22),n(23),n(29),n(61),n(19),n(73),n(17),n(41);var s=n(5),l=n(3),u=n(204),c=n(137),d=n(133),h=n(161),f=n(162),v=new Map([["plugin",u.hasPlugin],["cell-type",c.hasCellType],["editor",d.hasEditor],["renderer",h.hasRenderer],["validator",f.hasValidator]]);t.PLUGIN_KEY="base";var p=new WeakMap,g=[],m=null,y=function(){function e(t){var n=this;(0,i.default)(this,e),(0,s.defineGetter)(this,"hot",t,{writable:!1}),p.set(this,{hooks:{}}),m=null,this.pluginName=null,this.pluginsInitializedCallbacks=[],this.isPluginsReady=!1,this.enabled=!1,this.initialized=!1,this.hot.addHook("afterPluginsInitialized",(function(){return n.onAfterPluginsInitialized()})),this.hot.addHook("afterUpdateSettings",(function(e){return n.onUpdateSettings(e)})),this.hot.addHook("beforeInit",(function(){return n.init()}))}return(0,a.default)(e,[{key:"init",value:function(){var e=this;this.pluginName=this.hot.getPluginName(this);var t=this.constructor.PLUGIN_DEPS,n=Array.isArray(t)?t:[];if(n.length>0){var r=[];if(n.forEach((function(e){var t=e.split(":"),n=(0,o.default)(t,2),i=n[0],a=n[1];if(!v.has(i))throw new Error('Unknown plugin dependency type "'.concat(i,'" was found.'));v.get(i)(a)||r.push(" - ".concat(a," (").concat(i,")"))})),r.length>0){var i=["The ".concat(this.pluginName," plugin requires the following modules:\n"),"".concat(r.join("\n"),"\n")].join("");g.push(i)}}if(m||(m=(0,u.getPluginsNames)()),m.indexOf("UndoRedo")>=0&&m.splice(m.indexOf("UndoRedo"),1),m.indexOf(this.pluginName)>=0&&m.splice(m.indexOf(this.pluginName),1),this.hot.addHookOnce("afterPluginsInitialized",(function(){e.isEnabled&&e.isEnabled()&&e.enablePlugin()})),0===m.length){if(g.length>0){var a=["".concat(g.join("\n"),"\n"),"You have to import and register them manually."].join("");throw new Error(a)}this.hot.runHooks("afterPluginsInitialized")}this.initialized=!0}},{key:"enablePlugin",value:function(){this.enabled=!0}},{key:"disablePlugin",value:function(){this.eventManager&&this.eventManager.clear(),this.clearHooks(),this.enabled=!1}},{key:"addHook",value:function(e,t){p.get(this).hooks[e]=p.get(this).hooks[e]||[];var n=p.get(this).hooks[e];this.hot.addHook(e,t),n.push(t),p.get(this).hooks[e]=n}},{key:"removeHooks",value:function(e){var t=this;(0,l.arrayEach)(p.get(this).hooks[e]||[],(function(n){t.hot.removeHook(e,n)}))}},{key:"clearHooks",value:function(){var e=this,t=p.get(this).hooks;(0,s.objectEach)(t,(function(t,n){return e.removeHooks(n)})),t.length=0}},{key:"callOnPluginsReady",value:function(e){this.isPluginsReady?e():this.pluginsInitializedCallbacks.push(e)}},{key:"onAfterPluginsInitialized",value:function(){(0,l.arrayEach)(this.pluginsInitializedCallbacks,(function(e){return e()})),this.pluginsInitializedCallbacks.length=0,this.isPluginsReady=!0}},{key:"onUpdateSettings",value:function(){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,s.objectEach)(this,(function(t,n){"hot"!==n&&(e[n]=null)})),delete this.t,delete this.hot}}],[{key:"PLUGIN_KEY",get:function(){return"base"}}]),e}();t.BasePlugin=y},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(19),n(17);var o=r(n(1)),i=r(n(2)),a=n(3),s=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;(0,o.default)(this,e),this.rootWindow=n,this.prefix=t,this.savedKeys=[],this.loadSavedKeys()}return(0,i.default)(e,[{key:"saveValue",value:function(e,t){this.rootWindow.localStorage.setItem("".concat(this.prefix,"_").concat(e),JSON.stringify(t)),-1===this.savedKeys.indexOf(e)&&(this.savedKeys.push(e),this.saveSavedKeys())}},{key:"loadValue",value:function(e,t){var n=void 0===e?t:e,r=this.rootWindow.localStorage.getItem("".concat(this.prefix,"_").concat(n));return null===r?void 0:JSON.parse(r)}},{key:"reset",value:function(e){this.rootWindow.localStorage.removeItem("".concat(this.prefix,"_").concat(e))}},{key:"resetAll",value:function(){var e=this;(0,a.arrayEach)(this.savedKeys,(function(t,n){e.rootWindow.localStorage.removeItem("".concat(e.prefix,"_").concat(e.savedKeys[n]))})),this.clearSavedKeys()}},{key:"loadSavedKeys",value:function(){var e=this.rootWindow.localStorage.getItem("".concat(this.prefix,"__persistentStateKeys")),t="string"==typeof e?JSON.parse(e):void 0;this.savedKeys=t||[]}},{key:"saveSavedKeys",value:function(){this.rootWindow.localStorage.setItem("".concat(this.prefix,"__persistentStateKeys"),JSON.stringify(this.savedKeys))}},{key:"clearSavedKeys",value:function(){this.savedKeys.length=0,this.saveSavedKeys()}}]),e}();t.default=s},function(e,t,n){"use strict";t.__esModule=!0,t.AutoColumnSize=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0;var r=n(633);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.AutoColumnSize=r.AutoColumnSize},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.AutoColumnSize=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0;var o=r(n(18)),i=r(n(1)),a=r(n(2)),s=r(n(28)),l=r(n(16)),u=r(n(7)),c=r(n(8)),d=r(n(4));n(12),n(9),n(11),n(22),n(13),n(33),n(44),n(43),n(62);var h=n(27),f=n(3),v=n(97),p=r(n(211)),g=r(n(48)),m=n(5),y=n(24),E=r(n(443)),w=n(75),C=n(38),R=n(54);function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,d.default)(e);if(t){var o=(0,d.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}g.default.getSingleton().register("modifyAutoColumnSizeSeed");var b="autoColumnSize";t.PLUGIN_KEY=b;t.PLUGIN_PRIORITY=10;var S=new WeakMap,O=function(e){(0,u.default)(n,e);var t=T(n);function n(e){var r;return(0,i.default)(this,n),r=t.call(this,e),S.set((0,s.default)(r),{cachedColumnHeaders:[]}),r.ghostTable=new p.default(r.hot),r.samplesGenerator=new E.default((function(e,t){var n=r.hot.getCellMeta(e,t),o="";n.spanned||(o=r.hot.getDataAtCell(e,t));var i="";return r.hot.hasHook("modifyAutoColumnSizeSeed")&&(i=r.hot.runHooks("modifyAutoColumnSizeSeed",i,n,o)),{value:o,bundleSeed:i}})),r.firstCalculation=!0,r.inProgress=!1,r.measuredColumns=0,r.columnWidthsMap=new R.PhysicalIndexToValueMap,r.hot.columnIndexMapper.registerMap("autoColumnSize",r.columnWidthsMap),r.addHook("beforeColumnResize",(function(e,t,n){return r.onBeforeColumnResize(e,t,n)})),r}return(0,a.default)(n,[{key:"isEnabled",value:function(){return!1!==this.hot.getSettings()[b]&&!this.hot.getSettings().colWidths}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var t=this.hot.getSettings()[b];t&&null!==t.useHeaders&&void 0!==t.useHeaders&&this.ghostTable.setSetting("useHeaders",t.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()})),(0,l.default)((0,d.default)(n.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){var e=this.findColumnsWhereHeaderWasChanged();e.length&&(this.clearCache(e),this.calculateVisibleColumnsWidth()),(0,l.default)((0,d.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){var e=this;(0,l.default)((0,d.default)(n.prototype),"disablePlugin",this).call(this),this.addHook("beforeColumnResize",(function(t,n,r){return e.onBeforeColumnResize(t,n,r)}))}},{key:"calculateVisibleColumnsWidth",value:function(){if(this.hot.countRows()){var e=this.hot.renderCall,t=this.getFirstVisibleColumn(),n=this.getLastVisibleColumn();-1!==t&&-1!==n&&this.calculateColumnsWidth({from:t,to:n},void 0,e)}}},{key:"calculateColumnsWidth",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countRows()-1},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i="number"==typeof t?{from:t,to:t}:t,a="number"==typeof n?{from:n,to:n}:n;(0,y.rangeEach)(i.from,i.to,(function(t){var n=e.hot.toPhysicalColumn(t);if(null===n&&(n=t),r||null===e.columnWidthsMap.getValueAtIndex(n)&&!e.hot._getColWidthFromSettings(n)){var i=e.samplesGenerator.generateColumnSamples(t,a);(0,f.arrayEach)(i,(function(t){var n=(0,o.default)(t,2),r=n[0],i=n[1];return e.ghostTable.addColumn(r,i)}))}})),this.ghostTable.columns.length&&(this.hot.batchExecution((function(){e.ghostTable.getWidths((function(t,n){var r=e.hot.toPhysicalColumn(t);e.columnWidthsMap.setValueAtIndex(r,n)}))}),!0),this.measuredColumns=i.to+1,this.ghostTable.clean())}},{key:"calculateAllColumnsWidth",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},r=0,o=this.hot.countCols()-1,i=null;this.inProgress=!0;var a=function a(){if(!e.hot)return(0,v.cancelAnimationFrame)(i),void(e.inProgress=!1);e.calculateColumnsWidth({from:r,to:Math.min(r+n.CALCULATION_STEP,o)},t),(r=r+n.CALCULATION_STEP+1)<o?i=(0,v.requestAnimationFrame)(a):((0,v.cancelAnimationFrame)(i),e.inProgress=!1,e.hot.view.adjustElementsSize())},s=this.getSyncCalculationLimit();this.firstCalculation&&s>=0&&(this.calculateColumnsWidth({from:0,to:s},t),this.firstCalculation=!1,r=s+1),r<o?a():this.inProgress=!1}},{key:"setSamplingOptions",value:function(){var e=this.hot.getSettings()[b],t=e&&(0,m.hasOwnProperty)(e,"samplingRatio")?e.samplingRatio:void 0,n=e&&(0,m.hasOwnProperty)(e,"allowSampleDuplicates")?e.allowSampleDuplicates:void 0;t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),n&&this.samplesGenerator.setAllowDuplicates(n)}},{key:"recalculateAllColumnsWidth",value:function(){this.hot.view&&this.hot.view.wt.wtTable.isVisible()&&(this.clearCache(),this.calculateAllColumnsWidth())}},{key:"getSyncCalculationLimit",value:function(){var e=this.hot.getSettings()[b],t=n.SYNC_CALCULATION_LIMIT,r=this.hot.countCols()-1;return(0,m.isObject)(e)&&(t=e.syncLimit,(0,w.isPercentValue)(t)?t=(0,y.valueAccordingPercent)(r,t):t>>=0),Math.min(t,r)}},{key:"getColumnWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=t;return void 0===r&&(r=this.columnWidthsMap.getValueAtIndex(this.hot.toPhysicalColumn(e)),n&&"number"==typeof r&&(r=Math.max(r,C.ViewportColumnsCalculator.DEFAULT_WIDTH))),r}},{key:"getFirstVisibleColumn",value:function(){var e=this.hot.view.wt;if(e.wtViewport.columnsVisibleCalculator){var t=e.wtTable.getFirstVisibleColumn();if(-1!==t)return this.hot.columnIndexMapper.getVisualFromRenderableIndex(t)}if(e.wtViewport.columnsRenderCalculator){var n=e.wtTable.getFirstRenderedColumn();if(-1!==n)return this.hot.columnIndexMapper.getVisualFromRenderableIndex(n)}return-1}},{key:"getLastVisibleColumn",value:function(){var e=this.hot.view.wt;if(e.wtViewport.columnsVisibleCalculator){var t=e.wtTable.getLastVisibleColumn();if(-1!==t)return this.hot.columnIndexMapper.getVisualFromRenderableIndex(t)}if(e.wtViewport.columnsRenderCalculator){var n=e.wtTable.getLastRenderedColumn();if(-1!==n)return this.hot.columnIndexMapper.getVisualFromRenderableIndex(n)}return-1}},{key:"findColumnsWhereHeaderWasChanged",value:function(){var e=this.hot.getColHeader(),t=S.get(this).cachedColumnHeaders;return(0,f.arrayReduce)(e,(function(e,n,r){var o=t.length;return(o-1<r||t[r]!==n)&&e.push(r),o-1<r?t.push(n):t[r]=n,e}),[])}},{key:"clearCache",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.length?this.hot.batchExecution((function(){(0,f.arrayEach)(t,(function(t){e.columnWidthsMap.setValueAtIndex(t,null)}))}),!0):this.columnWidthsMap.clear()}},{key:"isNeedRecalculate",value:function(){return!!(0,f.arrayFilter)(this.columnWidthsMap.getValues().slice(0,this.measuredColumns),(function(e){return null===e})).length}},{key:"onBeforeRender",value:function(){this.calculateVisibleColumnsWidth(),this.isNeedRecalculate()&&!this.inProgress&&this.calculateAllColumnsWidth()}},{key:"onAfterLoadData",value:function(){var e=this;this.hot.view?this.recalculateAllColumnsWidth():setTimeout((function(){e.hot&&e.recalculateAllColumnsWidth()}),0)}},{key:"onBeforeChange",value:function(e){var t=this,n=(0,f.arrayMap)(e,(function(e){var n=(0,o.default)(e,2)[1];return t.hot.toPhysicalColumn(t.hot.propToCol(n))}));this.clearCache(Array.from(new Set(n)))}},{key:"onBeforeColumnResize",value:function(e,t,n){var r=e;return n&&(this.calculateColumnsWidth(t,void 0,!0),r=this.getColumnWidth(t,void 0,!1)),r}},{key:"onAfterInit",value:function(){S.get(this).cachedColumnHeaders=this.hot.getColHeader()}},{key:"destroy",value:function(){this.ghostTable.clean(),(0,l.default)((0,d.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return b}},{key:"PLUGIN_PRIORITY",get:function(){return 10}},{key:"CALCULATION_STEP",get:function(){return 50}},{key:"SYNC_CALCULATION_LIMIT",get:function(){return 50}}]),n}(h.BasePlugin);t.AutoColumnSize=O},function(e,t,n){"use strict";t.__esModule=!0,t.Autofill=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0;var r=n(635);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.Autofill=r.Autofill},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.Autofill=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0,n(17),n(26),n(34),n(19);var o=r(n(25)),i=r(n(18)),a=r(n(1)),s=r(n(2)),l=r(n(28)),u=r(n(16)),c=r(n(7)),d=r(n(8)),h=r(n(4)),f=n(27),v=r(n(48)),p=n(10),g=n(3),m=r(n(31)),y=n(38),E=n(636);function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,h.default)(e);if(t){var o=(0,h.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,d.default)(this,n)}}v.default.getSingleton().register("modifyAutofillRange"),v.default.getSingleton().register("beforeAutofill"),v.default.getSingleton().register("afterAutofill");t.PLUGIN_KEY="autofill";t.PLUGIN_PRIORITY=20;var C=function(e){(0,c.default)(n,e);var t=w(n);function n(e){var r;return(0,a.default)(this,n),(r=t.call(this,e)).eventManager=new m.default((0,l.default)(r)),r.addingStarted=!1,r.mouseDownOnCellCorner=!1,r.mouseDragOutside=!1,r.handleDraggedCells=0,r.directions=[],r.autoInsertRow=!1,r}return(0,s.default)(n,[{key:"isEnabled",value:function(){return this.hot.getSettings().fillHandle}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.mapSettings(),this.registerEvents(),this.addHook("afterOnCellCornerMouseDown",(function(t){return e.onAfterCellCornerMouseDown(t)})),this.addHook("afterOnCellCornerDblClick",(function(t){return e.onCellCornerDblClick(t)})),this.addHook("beforeOnCellMouseOver",(function(t,n){return e.onBeforeCellMouseOver(n)})),(0,u.default)((0,h.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,u.default)((0,h.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.clearMappedSettings(),(0,u.default)((0,h.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"getSelectionData",value:function(){var e=this,t=this.hot.getSelectedRangeLast(),n=t.getTopLeftCorner(),r=n.row,o=n.col,i=t.getBottomRightCorner(),a=i.row,s=i.col,l=this.hot.runHooks("modifyCopyableRange",[{startRow:r,startCol:o,endRow:a,endCol:s}]),u=[],c=[],d=[];return(0,g.arrayEach)(l,(function(e){for(var t=e.startRow;t<=e.endRow;t+=1)-1===u.indexOf(t)&&u.push(t);for(var n=e.startCol;n<=e.endCol;n+=1)-1===c.indexOf(n)&&c.push(n)})),(0,g.arrayEach)(u,(function(t){var n=[];(0,g.arrayEach)(c,(function(r){n.push(e.hot.getCopyableData(t,r))})),d.push(n)})),d}},{key:"fillIn",value:function(){if(this.hot.selection.highlight.getFill().isEmpty())return!1;var e=this.hot.selection.highlight.getFill().getVisualCorners(),t=(0,i.default)(e,4),n=t[0],r=t[1],o=t[2],a=t[3],s=this.hot.getSelectedRangeLast(),l=s.getTopLeftCorner(),u=s.getBottomRightCorner(),c=[Math.min(l.row,n),Math.min(l.col,r),Math.max(u.row,o),Math.max(u.col,a)];this.resetSelectionOfDraggedArea();var d=[l.row,l.col,u.row,u.col];c=this.hot.runHooks("modifyAutofillRange",c,d);var h=(0,E.getDragDirectionAndRange)(d,c),f=h.directionOfDrag,v=h.startOfDragCoords,p=h.endOfDragCoords;if(v&&v.row>-1&&v.col>-1){var g=this.getSelectionData();if(!1===this.hot.runHooks("beforeAutofill",v,p,g))return this.hot.selection.highlight.getFill().clear(),this.hot.render(),!1;var m=(0,E.getDeltas)(v,p,g,f),y=g;if(["up","left"].indexOf(f)>-1){y=[];var w=null,C=null;if("up"===f){C=(w=p.row-v.row+1)%g.length;for(var R=0;R<w;R++)y.push(g[(R+(g.length-C))%g.length])}else{C=(w=p.col-v.col+1)%g[0].length;for(var T=0;T<g.length;T++){y.push([]);for(var b=0;b<w;b++)y[T].push(g[T][(b+(g[T].length-C))%g[T].length])}}}this.hot.populateFromArray(v.row,v.col,y,p.row,p.col,"".concat(this.pluginName,".fill"),null,f,m),this.setSelection(c),this.hot.runHooks("afterAutofill",v,p,g)}else this.hot._refreshBorders();return!0}},{key:"reduceSelectionAreaIfNeeded",value:function(e){return e.row<0&&(e.row=0),e.col<0&&(e.col=0),e}},{key:"getCoordsOfDragAndDropBorders",value:function(e){var t=this.hot.getSelectedRangeLast(),n=t.getBottomRightCorner(),r=e;if(this.directions.includes(E.DIRECTIONS.vertical)&&this.directions.includes(E.DIRECTIONS.horizontal)){var o=t.getTopLeftCorner();(n.col<=e.col||o.col>=e.col)&&(r=new y.CellCoords(n.row,e.col)),(n.row<e.row||o.row>e.row)&&(r=new y.CellCoords(e.row,n.col))}else if(this.directions.includes(E.DIRECTIONS.vertical))r=new y.CellCoords(e.row,n.col);else{if(!this.directions.includes(E.DIRECTIONS.horizontal))return;r=new y.CellCoords(n.row,e.col)}return this.reduceSelectionAreaIfNeeded(r)}},{key:"showBorder",value:function(e){var t=this.getCoordsOfDragAndDropBorders(e);t&&this.redrawBorders(t)}},{key:"addRow",value:function(){var e=this;this.hot._registerTimeout((function(){e.hot.alter("insert_row",void 0,1,"".concat(e.pluginName,".fill")),e.addingStarted=!1}),200)}},{key:"addNewRowIfNeeded",value:function(){if(!this.hot.selection.highlight.getFill().isEmpty()&&!1===this.addingStarted&&this.autoInsertRow){var e=this.hot.getSelectedLast(),t=this.hot.selection.highlight.getFill().getVisualCorners(),n=this.hot.countRows();e[2]<n-1&&t[2]===n-1&&(this.addingStarted=!0,this.addRow())}}},{key:"getIndexOfLastAdjacentFilledInRow",value:function(e){for(var t,n=this.hot.getData(),r=this.hot.countRows(),o=e[2]+1;o<r;o++){for(var i=e[1];i<=e[3];i++){if(n[o][i])return-1}var a=n[o][e[1]-1],s=n[o][e[3]+1];(a||s)&&(t=o)}return t}},{key:"addSelectionFromStartAreaToSpecificRowIndex",value:function(e,t){this.hot.selection.highlight.getFill().clear().add(new y.CellCoords(e[0],e[1])).add(new y.CellCoords(t,e[3])).commit()}},{key:"setSelection",value:function(e){var t;(t=this.hot).selectCell.apply(t,(0,o.default)((0,g.arrayMap)(e,(function(e){return Math.max(e,0)}))).concat([!1,!1]))}},{key:"selectAdjacent",value:function(){var e=this.hot.getSelectedLast(),t=this.getIndexOfLastAdjacentFilledInRow(e);return-1!==t&&void 0!==t&&(this.addSelectionFromStartAreaToSpecificRowIndex(e,t),!0)}},{key:"resetSelectionOfDraggedArea",value:function(){this.handleDraggedCells=0,this.hot.selection.highlight.getFill().clear()}},{key:"redrawBorders",value:function(e){this.hot.selection.highlight.getFill().clear().add(this.hot.getSelectedRangeLast().from).add(this.hot.getSelectedRangeLast().to).add(e).commit(),this.hot.view.render()}},{key:"getIfMouseWasDraggedOutside",value:function(e){var t=this.hot.rootDocument.documentElement,n=(0,p.offset)(this.hot.table).top-(this.hot.rootWindow.pageYOffset||t.scrollTop)+(0,p.outerHeight)(this.hot.table),r=(0,p.offset)(this.hot.table).left-(this.hot.rootWindow.pageXOffset||t.scrollLeft)+(0,p.outerWidth)(this.hot.table);return e.clientY>n&&e.clientX<=r}},{key:"registerEvents",value:function(){var e=this,t=this.hot.rootDocument.documentElement;this.eventManager.addEventListener(t,"mouseup",(function(){return e.onMouseUp()})),this.eventManager.addEventListener(t,"mousemove",(function(t){return e.onMouseMove(t)}))}},{key:"onCellCornerDblClick",value:function(){this.selectAdjacent()&&this.fillIn()}},{key:"onAfterCellCornerMouseDown",value:function(){this.handleDraggedCells=1,this.mouseDownOnCellCorner=!0}},{key:"onBeforeCellMouseOver",value:function(e){this.mouseDownOnCellCorner&&!this.hot.view.isMouseDown()&&this.handleDraggedCells&&(this.handleDraggedCells+=1,this.showBorder(e),this.addNewRowIfNeeded())}},{key:"onMouseUp",value:function(){this.handleDraggedCells&&(this.handleDraggedCells>1&&this.fillIn(),this.handleDraggedCells=0,this.mouseDownOnCellCorner=!1)}},{key:"onMouseMove",value:function(e){var t=this.getIfMouseWasDraggedOutside(e);!1===this.addingStarted&&this.handleDraggedCells>0&&t?(this.mouseDragOutside=!0,this.addingStarted=!0):this.mouseDragOutside=!1,this.mouseDragOutside&&this.autoInsertRow&&this.addRow()}},{key:"clearMappedSettings",value:function(){this.directions.length=0,this.autoInsertRow=!1}},{key:"mapSettings",value:function(){var e=(0,E.getMappedFillHandleSetting)(this.hot.getSettings().fillHandle);this.directions=e.directions,this.autoInsertRow=e.autoInsertRow}},{key:"destroy",value:function(){(0,u.default)((0,h.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"autofill"}},{key:"PLUGIN_PRIORITY",get:function(){return 20}}]),n}(f.BasePlugin);t.Autofill=C},function(e,t,n){"use strict";t.__esModule=!0,t.getDeltas=function(e,t,n,r){var o=n.length,i=n?n[0].length:0,a=[],s=t.row-e.row,l=t.col-e.col;if(-1!==["down","up"].indexOf(r)){for(var u=[],c=0;c<l;c++){var d=parseInt(n[0][c],10),h=parseInt(n[o-1][c],10),f=("down"===r?h-d:d-h)/(o-1)||0;u.push(f)}a.push(u)}if(-1!==["right","left"].indexOf(r))for(var v=0;v<s;v++){var p=parseInt(n[v][0],10),g=parseInt(n[v][i-1],10),m=("right"===r?g-p:p-g)/(i-1)||0;a.push([m])}return a},t.getDragDirectionAndRange=function(e,t){var n,r,o;t[0]===e[0]&&t[1]<e[1]?(o="left",n=new i.CellCoords(t[0],t[1]),r=new i.CellCoords(t[2],e[1]-1)):t[2]===e[2]&&t[0]===e[0]&&t[3]>e[3]?(o="right",n=new i.CellCoords(t[0],e[3]+1),r=new i.CellCoords(t[2],t[3])):t[0]<e[0]&&t[1]===e[1]?(o="up",n=new i.CellCoords(t[0],t[1]),r=new i.CellCoords(e[0]-1,t[3])):t[2]>e[2]&&t[1]===e[1]&&(o="down",n=new i.CellCoords(e[2]+1,t[1]),r=new i.CellCoords(t[2],t[3]));n&&n.normalize();r&&r.normalize();return{directionOfDrag:o,startOfDragCoords:n,endOfDragCoords:r}},t.getMappedFillHandleSetting=function(e){var t={};!0===e?(t.directions=Object.keys(a),t.autoInsertRow=!0):(0,r.isObject)(e)?((0,o.isDefined)(e.autoInsertRow)?e.direction===a.horizontal?t.autoInsertRow=!1:t.autoInsertRow=e.autoInsertRow:t.autoInsertRow=!1,(0,o.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,n(17),n(35);var r=n(5),o=n(20),i=n(38),a={horizontal:"horizontal",vertical:"vertical"};t.DIRECTIONS=a},function(e,t,n){"use strict";t.__esModule=!0,t.ManualRowResize=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0;var r=n(638);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ManualRowResize=r.ManualRowResize},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.ManualRowResize=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(28)),s=r(n(16)),l=r(n(7)),u=r(n(8)),c=r(n(4));n(12),n(9),n(11),n(22),n(13),n(26),n(34),n(44),n(23);var d=n(27),h=n(10),f=r(n(31)),v=n(3),p=n(24),g=n(54),m=n(38);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var E="manualRowResize";t.PLUGIN_KEY=E;t.PLUGIN_PRIORITY=30;var w=new WeakMap,C=function(e){(0,l.default)(n,e);var t=y(n);function n(e){var r;(0,o.default)(this,n);var i=(r=t.call(this,e)).hot.rootDocument;return r.currentTH=null,r.currentRow=null,r.selectedRows=[],r.currentHeight=null,r.newSize=null,r.startY=null,r.startHeight=null,r.startOffset=null,r.handle=i.createElement("DIV"),r.guide=i.createElement("DIV"),r.eventManager=new f.default((0,a.default)(r)),r.pressed=null,r.dblclick=0,r.autoresizeTimeout=null,r.rowHeightsMap=void 0,w.set((0,a.default)(r),{config:void 0}),(0,h.addClass)(r.handle,"manualRowResizer"),(0,h.addClass)(r.guide,"manualRowResizerGuide"),r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return this.hot.getSettings()[E]}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.rowHeightsMap=new g.PhysicalIndexToValueMap,this.rowHeightsMap.addLocalHook("init",(function(){return e.onMapInit()})),this.hot.rowIndexMapper.registerMap(this.pluginName,this.rowHeightsMap),this.addHook("modifyRowHeight",(function(t,n){return e.onModifyRowHeight(t,n)})),this.bindEvents(),(0,s.default)((0,c.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,s.default)((0,c.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){w.get(this).config=this.rowHeightsMap.getValues(),this.hot.rowIndexMapper.unregisterMap(this.pluginName),(0,s.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"saveManualRowHeights",value:function(){this.hot.runHooks("persistentStateSave","manualRowHeights",this.rowHeightsMap.getValues())}},{key:"loadManualRowHeights",value:function(){var e={};return this.hot.runHooks("persistentStateLoad","manualRowHeights",e),e.value}},{key:"setManualSize",value:function(e,t){var n=this.hot.toPhysicalRow(e),r=Math.max(t,m.ViewportRowsCalculator.DEFAULT_HEIGHT);return this.rowHeightsMap.setValueAtIndex(n,r),r}},{key:"setupHandlePosition",value:function(e){var t=this;this.currentTH=e;var n=this.hot.view,r=n.wt,o=n.wt.wtTable.getCoords(this.currentTH),i=o.row;if(!(i<0)){var a,s=(0,h.outerWidth)(this.currentTH),l=this.currentTH.getBoundingClientRect(),u=i<r.getSetting("fixedRowsTop"),c=i>=n.countNotHiddenRowIndexes(0,1)-r.getSetting("fixedRowsBottom");u?a=r.wtOverlays.topLeftCornerOverlay.getRelativeCellPosition(this.currentTH,o.row,o.col):c&&(a=r.wtOverlays.bottomLeftCornerOverlay.getRelativeCellPosition(this.currentTH,o.row,o.col)),a||(a=r.wtOverlays.leftOverlay.getRelativeCellPosition(this.currentTH,o.row,o.col)),this.currentRow=this.hot.rowIndexMapper.getVisualFromRenderableIndex(i),this.selectedRows=[];var d=this.hot.selection.isSelectedByCorner()||this.hot.selection.isSelectedByRowHeader();if(this.hot.selection.isSelected()&&d){var f=this.hot.getSelectedRange();(0,v.arrayEach)(f,(function(e){var n=e.getTopLeftCorner().row,r=e.getBottomLeftCorner().row;(0,p.rangeEach)(n,r,(function(e){t.selectedRows.includes(e)||t.selectedRows.push(e)}))}))}this.selectedRows.includes(this.currentRow)||(this.selectedRows=[this.currentRow]),this.startOffset=a.top-6,this.startHeight=parseInt(l.height,10),this.handle.style.top="".concat(this.startOffset+this.startHeight,"px"),this.handle.style.left="".concat(a.left,"px"),this.handle.style.width="".concat(s,"px"),this.hot.rootElement.appendChild(this.handle)}}},{key:"refreshHandlePosition",value:function(){this.handle.style.top="".concat(this.startOffset+this.currentHeight,"px")}},{key:"setupGuidePosition",value:function(){var e=parseInt((0,h.outerWidth)(this.handle),10),t=parseInt(this.handle.style.left,10)+e,n=parseInt(this.hot.view.maximumVisibleElementWidth(0),10);(0,h.addClass)(this.handle,"active"),(0,h.addClass)(this.guide,"active"),this.guide.style.top=this.handle.style.top,this.guide.style.left="".concat(t,"px"),this.guide.style.width="".concat(n-e,"px"),this.hot.rootElement.appendChild(this.guide)}},{key:"refreshGuidePosition",value:function(){this.guide.style.top=this.handle.style.top}},{key:"hideHandleAndGuide",value:function(){(0,h.removeClass)(this.handle,"active"),(0,h.removeClass)(this.guide,"active")}},{key:"checkIfRowHeader",value:function(e){var t,n;return(0,h.closest)(e,["TH"],this.hot.rootElement)&&"TBODY"===(null===(t=e.parentNode)||void 0===t||null===(n=t.parentNode)||void 0===n?void 0:n.tagName)}},{key:"getClosestTHParent",value:function(e){return"TABLE"!==e.tagName?"TH"===e.tagName?e:this.getClosestTHParent(e.parentNode):null}},{key:"getActualRowHeight",value:function(e){var t=this.hot.view.wt.wtTable.getRowHeight(e);return void 0!==t&&this.newSize<t?t:this.newSize}},{key:"onMouseOver",value:function(e){if(!(0,h.isDetached)(e.target)&&this.checkIfRowHeader(e.target)){var t=this.getClosestTHParent(e.target);t&&(this.pressed||this.setupHandlePosition(t))}}},{key:"afterMouseDownTimeout",value:function(){var e=this,t=function(){e.hot.forceFullRender=!0,e.hot.view.render(),e.hot.view.adjustElementsSize(!0)},n=function(n,r){var o=e.hot.runHooks("beforeRowResize",e.getActualRowHeight(n),n,!0);void 0!==o&&(e.newSize=o),e.setManualSize(n,e.newSize),e.hot.runHooks("afterRowResize",e.getActualRowHeight(n),n,!0),r&&t()};this.dblclick>=2&&(this.selectedRows.length>1?((0,v.arrayEach)(this.selectedRows,(function(e){n(e)})),t()):(0,v.arrayEach)(this.selectedRows,(function(e){n(e,!0)})));this.dblclick=0,this.autoresizeTimeout=null}},{key:"onMouseDown",value:function(e){var t=this;(0,h.hasClass)(e.target,"manualRowResizer")&&(this.setupHandlePosition(this.currentTH),this.setupGuidePosition(),this.pressed=!0,null===this.autoresizeTimeout&&(this.autoresizeTimeout=setTimeout((function(){return t.afterMouseDownTimeout()}),500),this.hot._registerTimeout(this.autoresizeTimeout)),this.dblclick+=1,this.startY=e.pageY,this.newSize=this.startHeight)}},{key:"onMouseMove",value:function(e){var t=this;this.pressed&&(this.currentHeight=this.startHeight+(e.pageY-this.startY),(0,v.arrayEach)(this.selectedRows,(function(e){t.newSize=t.setManualSize(e,t.currentHeight)})),this.refreshHandlePosition(),this.refreshGuidePosition())}},{key:"onMouseUp",value:function(){var e=this,t=function(){e.hot.forceFullRender=!0,e.hot.view.render(),e.hot.view.adjustElementsSize(!0)},n=function(n,r){e.hot.runHooks("beforeRowResize",e.getActualRowHeight(n),n,!1),r&&t(),e.saveManualRowHeights(),e.hot.runHooks("afterRowResize",e.getActualRowHeight(n),n,!1)};if(this.pressed){if(this.hideHandleAndGuide(),this.pressed=!1,this.newSize!==this.startHeight)this.selectedRows.length>1?((0,v.arrayEach)(this.selectedRows,(function(e){n(e)})),t()):(0,v.arrayEach)(this.selectedRows,(function(e){n(e,!0)}));this.setupHandlePosition(this.currentTH)}}},{key:"bindEvents",value:function(){var e=this,t=this.hot,n=t.rootElement,r=t.rootWindow;this.eventManager.addEventListener(n,"mouseover",(function(t){return e.onMouseOver(t)})),this.eventManager.addEventListener(n,"mousedown",(function(t){return e.onMouseDown(t)})),this.eventManager.addEventListener(r,"mousemove",(function(t){return e.onMouseMove(t)})),this.eventManager.addEventListener(r,"mouseup",(function(){return e.onMouseUp()}))}},{key:"onModifyRowHeight",value:function(e,t){var n=e;if(this.enabled){var r=this.hot.toPhysicalRow(t),o=this.rowHeightsMap.getValueAtIndex(r);this.hot.getSettings()[E]&&o&&(n=o)}return n}},{key:"onMapInit",value:function(){var e=this,t=w.get(this),n=this.hot.getSettings()[E],r=this.loadManualRowHeights();this.hot.batchExecution((function(){void 0!==r?r.forEach((function(t,n){e.rowHeightsMap.setValueAtIndex(n,t)})):Array.isArray(n)?(n.forEach((function(t,n){e.rowHeightsMap.setValueAtIndex(n,t)})),t.config=n):!0===n&&Array.isArray(t.config)&&t.config.forEach((function(t,n){e.rowHeightsMap.setValueAtIndex(n,t)}))}),!0)}},{key:"destroy",value:function(){(0,s.default)((0,c.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return E}},{key:"PLUGIN_PRIORITY",get:function(){return 30}}]),n}(d.BasePlugin);t.ManualRowResize=C},function(e,t,n){"use strict";t.__esModule=!0,t.AutoRowSize=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0;var r=n(640);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.AutoRowSize=r.AutoRowSize},function(e,t,n){"use strict";n(6);var r=n(0);t.__esModule=!0,t.AutoRowSize=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0,n(33),n(44);var o=r(n(18)),i=r(n(1)),a=r(n(2)),s=r(n(16)),l=r(n(7)),u=r(n(8)),c=r(n(4)),d=n(27),h=n(3),f=n(97),v=n(10),p=r(n(211)),g=n(5),m=n(24),y=r(n(443)),E=n(75),w=n(54);function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}t.PLUGIN_KEY="autoRowSize";t.PLUGIN_PRIORITY=40;var R=function(e){(0,l.default)(n,e);var t=C(n);function n(e){var r;return(0,i.default)(this,n),(r=t.call(this,e)).rowHeightsMap=void 0,r.headerHeight=null,r.ghostTable=new p.default(r.hot),r.samplesGenerator=new y.default((function(e,t){var n;return e>=0?n=r.hot.getDataAtCell(e,t):-1===e&&(n=r.hot.getColHeader(t)),{value:n}})),r.firstCalculation=!0,r.inProgress=!1,r.measuredRows=0,r.rowHeightsMap=new w.PhysicalIndexToValueMap,r.hot.rowIndexMapper.registerMap("autoRowSize",r.rowHeightsMap),r.addHook("beforeRowResize",(function(e,t,n){return r.onBeforeRowResize(e,t,n)})),r}return(0,a.default)(n,[{key:"isEnabled",value:function(){var e=this.hot.getSettings().autoRowSize;return!0===e||(0,g.isObject)(e)}},{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("beforeColumnResize",(function(){return e.recalculateAllRowsHeight()})),this.addHook("beforeRender",(function(t){return e.onBeforeRender(t)})),this.addHook("modifyRowHeight",(function(t,n){return e.getRowHeight(n,t)})),this.addHook("modifyColumnHeaderHeight",(function(){return e.getColumnHeaderHeight()})),(0,s.default)((0,c.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){var e=this;this.headerHeight=null,(0,s.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this),this.addHook("beforeRowResize",(function(t,n,r){return e.onBeforeRowResize(t,n,r)}))}},{key:"calculateRowsHeight",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countCols()-1},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i="number"==typeof t?{from:t,to:t}:t,a="number"==typeof n?{from:n,to:n}:n;if(null!==this.hot.getColHeader(0)){var s=this.samplesGenerator.generateRowSamples(-1,a);this.ghostTable.addColumnHeadersRow(s.get(-1))}(0,m.rangeEach)(i.from,i.to,(function(t){if(r||null===e.rowHeightsMap.getValueAtIndex(t)){var n=e.samplesGenerator.generateRowSamples(t,a);(0,h.arrayEach)(n,(function(t){var n=(0,o.default)(t,2),r=n[0],i=n[1];return e.ghostTable.addRow(r,i)}))}})),this.ghostTable.rows.length&&(this.hot.batchExecution((function(){e.ghostTable.getHeights((function(t,n){t<0?e.headerHeight=n:e.rowHeightsMap.setValueAtIndex(e.hot.toPhysicalRow(t),n)}))}),!0),this.measuredRows=i.to+1,this.ghostTable.clean())}},{key:"calculateAllRowsHeight",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},r=0,o=this.hot.countRows()-1,i=null;this.inProgress=!0;var a=function a(){if(!e.hot)return(0,f.cancelAnimationFrame)(i),void(e.inProgress=!1);e.calculateRowsHeight({from:r,to:Math.min(r+n.CALCULATION_STEP,o)},t),(r=r+n.CALCULATION_STEP+1)<o?i=(0,f.requestAnimationFrame)(a):((0,f.cancelAnimationFrame)(i),e.inProgress=!1,e.hot.view.adjustElementsSize(!0),e.hot.view.wt.wtOverlays.leftOverlay.needFullRender&&e.hot.view.wt.wtOverlays.leftOverlay.clone.draw())},s=this.getSyncCalculationLimit();this.firstCalculation&&s>=0&&(this.calculateRowsHeight({from:0,to:s},t),this.firstCalculation=!1,r=s+1),r<o?a():(this.inProgress=!1,this.hot.view.adjustElementsSize(!1))}},{key:"setSamplingOptions",value:function(){var e=this.hot.getSettings().autoRowSize,t=e&&(0,g.hasOwnProperty)(e,"samplingRatio")?e.samplingRatio:void 0,n=e&&(0,g.hasOwnProperty)(e,"allowSampleDuplicates")?e.allowSampleDuplicates:void 0;t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),n&&this.samplesGenerator.setAllowDuplicates(n)}},{key:"recalculateAllRowsHeight",value:function(){(0,v.isVisible)(this.hot.view.wt.wtTable.TABLE)&&(this.clearCache(),this.calculateAllRowsHeight())}},{key:"getSyncCalculationLimit",value:function(){var e=this.hot.getSettings().autoRowSize,t=n.SYNC_CALCULATION_LIMIT,r=this.hot.countRows()-1;return(0,g.isObject)(e)&&(t=e.syncLimit,(0,E.isPercentValue)(t)?t=(0,m.valueAccordingPercent)(r,t):t>>=0),Math.min(t,r)}},{key:"getRowHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=e<0?this.headerHeight:this.rowHeightsMap.getValueAtIndex(this.hot.toPhysicalRow(e)),r=t;return null!==n&&n>(t||0)&&(r=n),r}},{key:"getColumnHeaderHeight",value:function(){return this.headerHeight}},{key:"getFirstVisibleRow",value:function(){var e=this.hot.view.wt;return e.wtViewport.rowsVisibleCalculator?e.wtTable.getFirstVisibleRow():e.wtViewport.rowsRenderCalculator?e.wtTable.getFirstRenderedRow():-1}},{key:"getLastVisibleRow",value:function(){var e=this.hot.view.wt;return e.wtViewport.rowsVisibleCalculator?e.wtTable.getLastVisibleRow():e.wtViewport.rowsRenderCalculator?e.wtTable.getLastRenderedRow():-1}},{key:"clearCache",value:function(){this.headerHeight=null,this.rowHeightsMap.init()}},{key:"clearCacheByRange",value:function(e){var t=this,n="number"==typeof e?{from:e,to:e}:e,r=n.from,o=n.to;this.hot.batchExecution((function(){(0,m.rangeEach)(Math.min(r,o),Math.max(r,o),(function(e){t.rowHeightsMap.setValueAtIndex(e,null)}))}),!0)}},{key:"isNeedRecalculate",value:function(){return!!(0,h.arrayFilter)(this.rowHeightsMap.getValues().slice(0,this.measuredRows),(function(e){return null===e})).length}},{key:"onBeforeRender",value:function(){var e=this.hot.renderCall,t=this.hot.getSettings().fixedRowsBottom,n=this.getFirstVisibleRow(),r=this.getLastVisibleRow();if(-1!==n&&-1!==r){if(this.calculateRowsHeight({from:n,to:r},void 0,e),t){var o=this.hot.countRows()-1;this.calculateRowsHeight({from:o-t,to:o})}this.isNeedRecalculate()&&!this.inProgress&&this.calculateAllRowsHeight()}}},{key:"onBeforeRowMove",value:function(e,t){this.clearCacheByRange({from:e,to:t}),this.calculateAllRowsHeight()}},{key:"onBeforeRowResize",value:function(e,t,n){var r=e;return n&&(this.calculateRowsHeight(t,void 0,!0),r=this.getRowHeight(t)),r}},{key:"onAfterLoadData",value:function(){var e=this;this.hot.view?this.recalculateAllRowsHeight():setTimeout((function(){e.hot&&e.recalculateAllRowsHeight()}),0)}},{key:"onBeforeChange",value:function(e){var t=null;1===e.length?t=e[0][0]:e.length>1&&(t={from:e[0][0],to:e[e.length-1][0]}),null!==t&&this.clearCacheByRange(t)}},{key:"destroy",value:function(){this.ghostTable.clean(),(0,s.default)((0,c.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"autoRowSize"}},{key:"PLUGIN_PRIORITY",get:function(){return 40}},{key:"CALCULATION_STEP",get:function(){return 50}},{key:"SYNC_CALCULATION_LIMIT",get:function(){return 500}}]),n}(d.BasePlugin);t.AutoRowSize=R},function(e,t,n){"use strict";n(6),n(35),n(49),n(30),n(71),n(23),n(72);var r=n(0);t.__esModule=!0,t.ColumnSorting=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0,n(81),n(33),n(59),n(60),n(19),n(192),n(210),n(12),n(39),n(9),n(11),n(13);var o=r(n(25)),i=r(n(37)),a=r(n(90)),s=r(n(1)),l=r(n(2)),u=r(n(16)),c=r(n(7)),d=r(n(8)),h=r(n(4)),f=n(10),v=n(20),p=n(5),g=n(53),m=n(3),y=n(27),E=n(54),w=r(n(48)),C=n(166),R=n(642),T=n(216),b=n(643),S=n(644),O=n(99);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function M(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,h.default)(e);if(t){var o=(0,h.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,d.default)(this,n)}}t.PLUGIN_KEY="columnSorting";t.PLUGIN_PRIORITY=50;(0,O.registerRootComparator)("columnSorting",S.rootComparator),w.default.getSingleton().register("beforeColumnSort"),w.default.getSingleton().register("afterColumnSort");var N=function(e){(0,c.default)(n,e);var t=M(n);function n(e){var r;return(0,s.default)(this,n),(r=t.call(this,e)).columnStatesManager=null,r.columnMetaCache=null,r.pluginKey="columnSorting",r.indexesSequenceCache=null,r}return(0,l.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings()[this.pluginKey]}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.columnStatesManager=new R.ColumnStatesManager(this.hot,"".concat(this.pluginKey,".sortingStates")),this.columnMetaCache=new E.PhysicalIndexToValueMap((function(t){var n=e.hot.toVisualColumn(t);return null===n&&(n=t),e.getMergedPluginSettings(n)})),this.hot.columnIndexMapper.registerMap("".concat(this.pluginKey,".columnMeta"),this.columnMetaCache),this.addHook("afterGetColHeader",(function(t,n){return e.onAfterGetColHeader(t,n)})),this.addHook("beforeOnCellMouseDown",(function(t,n,r,o){return e.onBeforeOnCellMouseDown(t,n,r,o)})),this.addHook("afterOnCellMouseDown",(function(t,n){return e.onAfterOnCellMouseDown(t,n)})),this.addHook("afterInit",(function(){return e.loadOrSortBySettings()})),this.addHook("afterLoadData",(function(t,n){return e.onAfterLoadData(n)})),this.hot.view&&this.loadOrSortBySettings(),(0,u.default)((0,h.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){var e=this,t=function(t,n){var r=(0,T.getHeaderSpanElement)(n);!1!==(0,T.isFirstLevelColumnHeader)(t,n)&&null!==r&&e.updateHeaderClasses(r)};this.hot.addHook("afterGetColHeader",t),this.hot.addHookOnce("afterRender",(function(){e.hot.removeHook("afterGetColHeader",t)})),this.hot.batchExecution((function(){null!==e.indexesSequenceCache&&(e.hot.rowIndexMapper.setIndexesSequence(e.indexesSequenceCache.getValues()),e.hot.rowIndexMapper.unregisterMap(e.pluginKey))}),!0),this.hot.columnIndexMapper.unregisterMap("".concat(this.pluginKey,".columnMeta")),this.columnStatesManager.destroy(),this.columnMetaCache=null,this.columnStatesManager=null,(0,u.default)((0,h.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"sort",value:function(e){var t=this.getSortConfig(),n=this.getNormalizedSortConfigs(e),r=this.areValidSortConfigs(n);!1!==this.hot.runHooks("beforeColumnSort",t,n,r)&&(0===t.length&&null===this.indexesSequenceCache&&(this.indexesSequenceCache=this.hot.rowIndexMapper.registerMap(this.pluginKey,new E.IndexesSequence),this.indexesSequenceCache.setValues(this.hot.rowIndexMapper.getIndexesSequence())),r&&(this.columnStatesManager.setSortStates(n),this.sortByPresetSortStates(n),this.saveAllSortSettings(n)),this.hot.runHooks("afterColumnSort",t,r?n:t,r),r&&(this.hot.render(),this.hot.forceFullRender=!1,this.hot.view.render()))}},{key:"clearSort",value:function(){this.sort([])}},{key:"isSorted",value:function(){return this.enabled&&!this.columnStatesManager.isListOfSortedColumnsEmpty()}},{key:"getSortConfig",value:function(e){return(0,v.isDefined)(e)?this.columnStatesManager.getColumnSortState(e):this.columnStatesManager.getSortStates()}},{key:"setSortConfig",value:function(e){var t=this.getNormalizedSortConfigs(e);this.areValidSortConfigs(t)&&this.columnStatesManager.setSortStates(t)}},{key:"getNormalizedSortConfigs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)?e.slice(0,1):[e]}},{key:"areValidSortConfigs",value:function(e){var t=this.hot.countCols();return(0,T.areValidSortStates)(e)&&e.every((function(e){var n=e.column;return n<=t&&n>=0}))}},{key:"saveAllSortSettings",value:function(e){var t=this,n=this.columnStatesManager.getAllColumnsProperties();n.initialConfig=(0,m.arrayMap)(e,(function(e){var n=e.column,r=(0,a.default)(e,["column"]);return I({column:t.hot.toPhysicalColumn(n)},r)})),this.hot.runHooks("persistentStateSave","columnSorting",n)}},{key:"getAllSavedSortSettings",value:function(){var e=this,t={};this.hot.runHooks("persistentStateLoad","columnSorting",t);var n=t.value;return(0,v.isDefined)(n)&&Array.isArray(n.initialConfig)&&(n.initialConfig=(0,m.arrayMap)(n.initialConfig,(function(t){var n=t.column,r=(0,a.default)(t,["column"]);return I({column:e.hot.toVisualColumn(n)},r)}))),n}},{key:"getColumnNextConfig",value:function(e){var t=this.columnStatesManager.getSortOrderOfColumn(e);if((0,v.isDefined)(t)){var n=(0,T.getNextSortOrder)(t);return(0,v.isDefined)(n)?{column:e,sortOrder:n}:void 0}var r=this.hot.countCols();if(Number.isInteger(e)&&e>=0&&e<r)return{column:e,sortOrder:(0,T.getNextSortOrder)()}}},{key:"getNextSortConfig",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"append",n=this.columnStatesManager.getIndexOfColumnInSortQueue(e),r=-1!==n,i=this.getSortConfig(),a=this.getColumnNextConfig(e);if(r){if((0,v.isUndefined)(a))return[].concat((0,o.default)(i.slice(0,n)),(0,o.default)(i.slice(n+1)));if("append"===t)return[].concat((0,o.default)(i.slice(0,n)),(0,o.default)(i.slice(n+1)),[a]);if("replace"===t)return[].concat((0,o.default)(i.slice(0,n)),[a],(0,o.default)(i.slice(n+1)))}return(0,v.isDefined)(a)?i.concat(a):i}},{key:"getPluginColumnConfig",value:function(e){if((0,p.isObject)(e)){var t=e[this.pluginKey];if((0,p.isObject)(t))return t}return{}}},{key:"getMergedPluginSettings",value:function(e){var t=this.hot.getSettings()[this.pluginKey],n=this.columnStatesManager.getAllColumnsProperties(),r=this.hot.getCellMeta(0,e),o=Object.getPrototypeOf(r);return Array.isArray(o.columns)?Object.assign(n,t,this.getPluginColumnConfig(o.columns[e])):(0,g.isFunction)(o.columns)?Object.assign(n,t,this.getPluginColumnConfig(o.columns(e))):Object.assign(n,t)}},{key:"getFirstCellSettings",value:function(e){var t=this.hot.getCellMeta(0,e),n=Object.create(t);return n[this.pluginKey]=this.columnMetaCache.getValueAtIndex(this.hot.toPhysicalColumn(e)),n}},{key:"getNumberOfRowsToSort",value:function(e){var t=this.hot.getSettings();return t.maxRows<=e?t.maxRows:e-t.minSpareRows}},{key:"sortByPresetSortStates",value:function(e){var t=this;if(0!==e.length){for(var n=[],r=this.hot.countRows(),o=function(n){return(0,m.arrayMap)(e,(function(e){return t.hot.getDataAtCell(n,e.column)}))},i=0;i<this.getNumberOfRowsToSort(r);i+=1)n.push([this.hot.toPhysicalRow(i)].concat(o(i)));var a=(0,m.arrayMap)(n,(function(e){return e[0]}));(0,O.sort)(n,this.pluginKey,(0,m.arrayMap)(e,(function(e){return e.sortOrder})),(0,m.arrayMap)(e,(function(e){return t.getFirstCellSettings(e.column)})));for(var s=n.length;s<r;s+=1)n.push([s].concat(o(s)));var l=(0,m.arrayMap)(n,(function(e){return e[0]})),u=new Map((0,m.arrayMap)(a,(function(e,t){return[e,l[t]]}))),c=(0,m.arrayMap)(this.hot.rowIndexMapper.getIndexesSequence(),(function(e){return u.has(e)?u.get(e):e}));this.hot.rowIndexMapper.setIndexesSequence(c)}else this.hot.rowIndexMapper.setIndexesSequence(this.indexesSequenceCache.getValues())}},{key:"loadOrSortBySettings",value:function(){var e=this.getAllSavedSortSettings();if((0,p.isObject)(e))this.sortBySettings(e);else{var t=this.hot.getSettings()[this.pluginKey];this.sortBySettings(t)}}},{key:"sortBySettings",value:function(e){if((0,p.isObject)(e)){this.columnStatesManager.updateAllColumnsProperties(e);var t=e.initialConfig;(Array.isArray(t)||(0,p.isObject)(t))&&this.sort(t)}else this.hot.render()}},{key:"onAfterGetColHeader",value:function(e,t){var n=(0,T.getHeaderSpanElement)(t);if(!1!==(0,T.isFirstLevelColumnHeader)(e,t)&&null!==n){var r=this.getFirstCellSettings(e)[this.pluginKey],o=r.indicator,i=r.headerAction;this.updateHeaderClasses(n,this.columnStatesManager,e,o,i)}}},{key:"updateHeaderClasses",value:function(e){if((0,f.removeClass)(e,(0,b.getClassesToRemove)(e)),!1!==this.enabled){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(0,f.addClass)(e,b.getClassesToAdd.apply(void 0,n))}}},{key:"onUpdateSettings",value:function(e){(0,u.default)((0,h.default)(n.prototype),"onUpdateSettings",this).call(this),null!==this.columnMetaCache&&this.columnMetaCache.init(this.hot.columnIndexMapper.getNumberOfIndexes()),(0,v.isDefined)(e[this.pluginKey])&&this.sortBySettings(e[this.pluginKey])}},{key:"onAfterLoadData",value:function(e){!0===e&&this.hot.view&&this.loadOrSortBySettings()}},{key:"wasClickableHeaderClicked",value:function(e,t){return this.getFirstCellSettings(t)[this.pluginKey].headerAction&&"SPAN"===e.target.nodeName}},{key:"onBeforeOnCellMouseDown",value:function(e,t,n,r){!1!==(0,T.wasHeaderClickedProperly)(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)&&(0,C.isPressedCtrlKey)()&&(r.column=!0)}},{key:"onAfterOnCellMouseDown",value:function(e,t){!1!==(0,T.wasHeaderClickedProperly)(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)&&((0,C.isPressedCtrlKey)()&&(this.hot.deselectCell(),this.hot.selectColumns(t.col)),this.sort(this.getColumnNextConfig(t.col)))}},{key:"destroy",value:function(){var e;null===(e=this.columnStatesManager)||void 0===e||e.destroy(),(0,u.default)((0,h.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"columnSorting"}},{key:"PLUGIN_PRIORITY",get:function(){return 50}}]),n}(y.BasePlugin);t.ColumnSorting=N},function(e,t,n){"use strict";n(35),n(49),n(30),n(71),n(23),n(72);var r=n(0);t.__esModule=!0,t.ColumnStatesManager=void 0,n(26),n(411),n(77);var o=r(n(37)),i=r(n(18)),a=r(n(1)),s=r(n(2)),l=n(5),u=n(54),c=n(20);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var h=["sortEmptyCells","indicator","headerAction","compareFunctionFactory"],f=function(){function e(t,n){(0,a.default)(this,e),this.hot=t,this.sortingStates=new u.LinkedPhysicalIndexToValueMap,this.sortEmptyCells=!1,this.indicator=!0,this.headerAction=!0,this.compareFunctionFactory=void 0,this.mapName=n,this.hot.columnIndexMapper.registerMap(n,this.sortingStates)}return(0,s.default)(e,[{key:"updateAllColumnsProperties",value:function(e){var t=this;(0,l.isObject)(e)&&(0,l.objectEach)(e,(function(e,n){h.includes(n)&&(t[n]=e)}))}},{key:"getAllColumnsProperties",value:function(){var e={sortEmptyCells:this.sortEmptyCells,indicator:this.indicator,headerAction:this.headerAction};return"function"==typeof this.compareFunctionFactory&&(e.compareFunctionFactory=this.compareFunctionFactory),e}},{key:"getSortOrderOfColumn",value:function(e){var t;return null===(t=this.sortingStates.getValueAtIndex(this.hot.toPhysicalColumn(e)))||void 0===t?void 0:t.sortOrder}},{key:"getIndexOfColumnInSortQueue",value:function(e){return e=this.hot.toPhysicalColumn(e),this.sortingStates.getEntries().findIndex((function(t){return(0,i.default)(t,1)[0]===e}))}},{key:"getNumberOfSortedColumns",value:function(){return this.sortingStates.getLength()}},{key:"isListOfSortedColumnsEmpty",value:function(){return 0===this.getNumberOfSortedColumns()}},{key:"isColumnSorted",value:function(e){return(0,l.isObject)(this.sortingStates.getValueAtIndex(this.hot.toPhysicalColumn(e)))}},{key:"getSortStates",value:function(){var e=this;return null===this.sortingStates?[]:this.sortingStates.getEntries().map((function(t){var n=(0,i.default)(t,2),r=n[0],a=n[1];return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({column:e.hot.toVisualColumn(r)},a)}))}},{key:"getColumnSortState",value:function(e){var t=this.getSortOrderOfColumn(e);if((0,c.isDefined)(t))return{column:e,sortOrder:t}}},{key:"setSortStates",value:function(e){this.sortingStates.clear();for(var t=0;t<e.length;t+=1)this.sortingStates.setValueAtIndex(this.hot.toPhysicalColumn(e[t].column),{sortOrder:e[t].sortOrder})}},{key:"destroy",value:function(){this.hot.columnIndexMapper.unregisterMap(this.mapName),this.sortingStates=null}}]),e}();t.ColumnStatesManager=f},function(e,t,n){"use strict";t.__esModule=!0,t.getClassesToAdd=function(e,t,n,o){var a=["columnSorting"];o&&a.push("sortAction");if(!1===n)return a.push("indicatorDisabled"),a;var s=e.getSortOrderOfColumn(t);(0,r.isDefined)(s)&&a.push(i.get(s));return a},t.getClassesToRemove=function(){return Array.from(i.values()).concat("sortAction","indicatorDisabled","columnSorting")},n(12),n(39),n(9),n(11),n(13),n(19),n(43);var r=n(20),o=n(216),i=new Map([[o.ASC_SORT_STATE,"ascending"],[o.DESC_SORT_STATE,"descending"]])},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.rootComparator=function(e,t){return function(n,r){var a,s,l,u,c,d,h=(0,o.default)(n).slice(1),f=(0,o.default)(r).slice(1);return s=e[a=0],l=t[a],u=h[a],c=f[a],((d=l.columnSorting).compareFunctionFactory?d.compareFunctionFactory:(0,i.getCompareFunctionFactory)(l.type))(s,l,d)(u,c)}},n(33);var o=r(n(445)),i=n(99)},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 o.DO_NOT_SWAP;if(l){if((0,r.isEmpty)(t))return"asc"===e?o.FIRST_BEFORE_SECOND:o.FIRST_AFTER_SECOND;if((0,r.isEmpty)(i))return"asc"===e?o.FIRST_AFTER_SECOND:o.FIRST_BEFORE_SECOND}return isNaN(a)?o.FIRST_AFTER_SECOND:isNaN(s)?o.FIRST_BEFORE_SECOND:a<s?"asc"===e?o.FIRST_BEFORE_SECOND:o.FIRST_AFTER_SECOND:a>s?"asc"===e?o.FIRST_AFTER_SECOND:o.FIRST_BEFORE_SECOND:o.DO_NOT_SWAP}},t.COLUMN_DATA_TYPE=void 0;var r=n(20),o=n(99);t.COLUMN_DATA_TYPE="numeric"},function(e,t,n){"use strict";t.__esModule=!0,t.compareFunctionFactory=function(e,t,n){var a=t.checkedTemplate,s=t.uncheckedTemplate,l=n.sortEmptyCells;return function(u,c){var d=(0,i.isEmpty)(u),h=(0,i.isEmpty)(c),f=d?s:u,v=h?s:c,p=f===s||f===a,g=v===s||v===a;if(!1===l){if(d&&!1===h)return r.FIRST_AFTER_SECOND;if(!1===d&&h)return r.FIRST_BEFORE_SECOND}return!1===p&&g?"asc"===e?r.FIRST_BEFORE_SECOND:r.FIRST_AFTER_SECOND:p&&!1===g?"asc"===e?r.FIRST_AFTER_SECOND:r.FIRST_BEFORE_SECOND:!1===p&&!1===g?(0,o.compareFunctionFactory)(e,t,n)(u,c):f===s&&v===a?"asc"===e?r.FIRST_BEFORE_SECOND:r.FIRST_AFTER_SECOND:f===a&&v===s?"asc"===e?r.FIRST_AFTER_SECOND:r.FIRST_BEFORE_SECOND:r.DO_NOT_SWAP}},t.COLUMN_DATA_TYPE=void 0;var r=n(99),o=n(447),i=n(20);t.COLUMN_DATA_TYPE="checkbox"},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.compareFunctionFactory=function(e,t,n){return function(r,s){var l=n.sortEmptyCells;if(r===s)return a.DO_NOT_SWAP;if((0,i.isEmpty)(r))return(0,i.isEmpty)(s)?a.DO_NOT_SWAP:l&&"asc"===e?a.FIRST_BEFORE_SECOND:a.FIRST_AFTER_SECOND;if((0,i.isEmpty)(s))return l&&"asc"===e?a.FIRST_AFTER_SECOND:a.FIRST_BEFORE_SECOND;var u=t.dateFormat,c=(0,o.default)(r,u),d=(0,o.default)(s,u);return c.isValid()?d.isValid()?d.isAfter(c)?"asc"===e?a.FIRST_BEFORE_SECOND:a.FIRST_AFTER_SECOND:d.isBefore(c)?"asc"===e?a.FIRST_AFTER_SECOND:a.FIRST_BEFORE_SECOND:a.DO_NOT_SWAP:a.FIRST_BEFORE_SECOND:a.FIRST_AFTER_SECOND}},t.COLUMN_DATA_TYPE=void 0;var o=r(n(76)),i=n(20),a=n(99);t.COLUMN_DATA_TYPE="date"},function(e,t,n){"use strict";n(81);var r=n(0);t.__esModule=!0,t.sort=function(e,t){for(var n=(0,i.getRootComparator)(t),r=arguments.length,a=new Array(r>2?r-2:0),s=2;s<r;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=r(n(649)),i=n(446);t.DO_NOT_SWAP=0;t.FIRST_BEFORE_SECOND=-1;t.FIRST_AFTER_SECOND=1},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length;if(Math.abs(o-r)<=1)return[];var s=Math.ceil((r+o)/2);return e(t,n,r,s),e(t,n,s,o),a(t,n,r,s,o)},n(9),n(52);var o=r(n(650)),i=function(e,t){var n=e.toString(),r=t.toString();return n===r?0:n<r?-1:1};function a(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),d=i-n,h=0;h<c;h+=1)h<l&&a.push(e[n+h]),h<u&&s.push(e[r+h]);for(var f=0;f<d;)a.first&&s.first?t(a.first.data,s.first.data)>0?e[n+f]=s.shift().data:e[n+f]=a.shift().data:a.first?e[n+f]=a.shift().data:e[n+f]=s.shift().data,f+=1;return e}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=t.NodeStructure=void 0;var o=r(n(2)),i=r(n(1)),a=function e(t){(0,i.default)(this,e),this.data=t,this.next=null,this.prev=null};t.NodeStructure=a;var s=function(){function e(){(0,i.default)(this,e),this.first=null,this.last=null}return(0,o.default)(e,[{key:"push",value:function(e){var t=new a(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 a(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,r=this.first;r;){if(r.data===e)return t=r.next,n=r.prev,t&&(t.prev=n),n&&(n.next=t),r===this.first&&(this.first=t),r===this.last&&(this.last=n),!0;r=r.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=s},function(e,t,n){"use strict";t.__esModule=!0,t.Comments=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0;var r=n(652);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.Comments=r.Comments},function(e,t,n){"use strict";n(6);var r=n(14),o=n(0);t.__esModule=!0,t.Comments=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0;var i=o(n(37)),a=o(n(1)),s=o(n(2)),l=o(n(28)),u=o(n(16)),c=o(n(7)),d=o(n(8)),h=o(n(4));n(12),n(9),n(11),n(22),n(13),n(44);var f=n(10),v=n(5),p=o(n(31)),g=n(38),m=n(27),y=o(n(653)),E=n(78),w=o(n(654)),C=r(n(15));function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,h.default)(e);if(t){var o=(0,h.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,d.default)(this,n)}}n(655);t.PLUGIN_KEY="comments";t.PLUGIN_PRIORITY=60;var T=new WeakMap,b=function(e){(0,c.default)(n,e);var t=R(n);function n(e){var r;return(0,a.default)(this,n),(r=t.call(this,e)).editor=null,r.displaySwitch=null,r.eventManager=null,r.range={},r.mouseDown=!1,r.contextMenuEvent=!1,r.timer=null,T.set((0,l.default)(r),{tempEditorDimensions:{},cellBelowCursor:null}),r}return(0,s.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().comments}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.editor||(this.editor=new y.default(this.hot.rootDocument)),this.eventManager||(this.eventManager=new p.default(this)),this.displaySwitch||(this.displaySwitch=new w.default(this.getDisplayDelaySetting())),this.addHook("afterContextMenuDefaultOptions",(function(t){return e.addToContextMenu(t)})),this.addHook("afterRenderer",(function(t,n,r,o,i,a){return e.onAfterRenderer(t,a)})),this.addHook("afterScrollHorizontally",(function(){return e.hide()})),this.addHook("afterScrollVertically",(function(){return e.hide()})),this.addHook("afterBeginEditing",(function(){return e.onAfterBeginEditing()})),this.displaySwitch.addLocalHook("hide",(function(){return e.hide()})),this.displaySwitch.addLocalHook("show",(function(t,n){return e.showAtCell(t,n)})),this.registerListeners(),(0,u.default)((0,h.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,u.default)((0,h.default)(n.prototype),"updatePlugin",this).call(this),this.displaySwitch.updateDelay(this.getDisplayDelaySetting())}},{key:"disablePlugin",value:function(){(0,u.default)((0,h.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"registerListeners",value:function(){var e=this,t=this.hot.rootDocument;this.eventManager.addEventListener(t,"mouseover",(function(t){return e.onMouseOver(t)})),this.eventManager.addEventListener(t,"mousedown",(function(t){return e.onMouseDown(t)})),this.eventManager.addEventListener(t,"mouseup",(function(){return e.onMouseUp()})),this.eventManager.addEventListener(this.editor.getInputElement(),"blur",(function(){return e.onEditorBlur()})),this.eventManager.addEventListener(this.editor.getInputElement(),"mousedown",(function(t){return e.onEditorMouseDown(t)})),this.eventManager.addEventListener(this.editor.getInputElement(),"mouseup",(function(t){return e.onEditorMouseUp(t)}))}},{key:"setRange",value:function(e){this.range=e}},{key:"clearRange",value:function(){this.range={}}},{key:"targetIsCellWithComment",value:function(e){var t=(0,f.closest)(e.target,"TD","TBODY");return!!(t&&(0,f.hasClass)(t,"htCommentCell")&&(0,f.closest)(t,[this.hot.rootElement]))}},{key:"targetIsCommentTextArea",value:function(e){return this.editor.getInputElement()===e.target}},{key:"setComment",value:function(e){if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');var t=this.editor.getValue(),n="";null!=e?n=e:null!=t&&(n=t);var r=this.range.from.row,o=this.range.from.col;this.updateCommentMeta(r,o,(0,i.default)({},"value",n)),this.hot.render()}},{key:"setCommentAtCell",value:function(e,t,n){this.setRange({from:new g.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 g.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.range.from,t=e.row,n=e.col;if(t<0||t>this.hot.countSourceRows()-1||n<0||n>this.hot.countSourceCols()-1)return!1;var r=this.hot.getCellMeta(this.range.from.row,this.range.from.col);return this.refreshEditor(!0),this.editor.setValue(r.comment?r.comment.value:""),this.editor.hidden&&this.editor.show(),!0}},{key:"showAtCell",value:function(e,t){return this.setRange({from:new g.CellCoords(e,t)}),this.show()}},{key:"hide",value:function(){this.editor.hidden||this.editor.hide()}},{key:"refreshEditor",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(n||this.range.from&&this.editor.isVisible()){var r=this.hot,o=r.rowIndexMapper,i=r.columnIndexMapper,a=this.range.from,s=a.row,l=a.col,u=o.getRenderableFromVisualIndex(s),c=i.getRenderableFromVisualIndex(l),d=null===u;null===u&&(u=o.getRenderableFromVisualIndex(o.getFirstNotHiddenIndex(s,-1))),null===c&&(c=i.getRenderableFromVisualIndex(i.getFirstNotHiddenIndex(l,-1)));var h=null===u,v=null===c;u=null!==(e=u)&&void 0!==e?e:0,c=null!==(t=c)&&void 0!==t?t:0;var p=this.hot,g=p.rootWindow,m=p.view.wt,y=m.wtTable,E=m.wtOverlays,w=m.wtViewport,C=E.scrollableElement,R=y.getCell({row:u,col:c}),T=(0,f.offset)(R),b=v?0:y.getStretchedColumnWidth(c),S=d&&!h?(0,f.outerHeight)(R):0,O=T.top,_=T.left;w.hasVerticalScroll()&&C!==g&&(O-=E.topOverlay.getScrollPosition()),w.hasHorizontalScroll()&&C!==g&&(_-=E.leftOverlay.getScrollPosition());var I=_+b,M=O+S,N=this.getCommentMeta(s,l,"style"),k=this.getCommentMeta(s,l,"readOnly");N?this.editor.setSize(N.width,N.height):this.editor.resetSize(),this.editor.setReadOnlyState(k),this.editor.setPosition(I,M)}}},{key:"checkSelectionCommentsConsistency",value:function(){var e=this.hot.getSelectedRangeLast();if(!e)return!1;var t=!1,n=e.getTopLeftCorner();return this.getCommentMeta(n.row,n.col,"value")&&(t=!0),t}},{key:"updateCommentMeta",value:function(e,t,n){var r,o=this.hot.getCellMeta(e,t).comment;o?(r=(0,v.deepClone)(o),(0,v.deepExtend)(r,n)):r=n,this.hot.setCellMeta(e,t,"comment",r)}},{key:"getCommentMeta",value:function(e,t,n){var r=this.hot.getCellMeta(e,t);if(r.comment)return r.comment[n]}},{key:"onMouseDown",value:function(e){if(this.mouseDown=!0,this.hot.view&&this.hot.view.wt){if(!this.contextMenuEvent&&!this.targetIsCommentTextArea(e)){var t=(0,f.closest)(e.target,"TD","TBODY"),n=null;t&&(n=this.hot.view.wt.wtTable.getCoords(t),n={row:this.hot.rowIndexMapper.getVisualFromRenderableIndex(n.row),col:this.hot.columnIndexMapper.getVisualFromRenderableIndex(n.col)}),(!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=T.get(this),n=this.hot.rootDocument;if(t.cellBelowCursor=n.elementFromPoint(e.clientX,e.clientY),!(this.mouseDown||this.editor.isFocused()||(0,f.hasClass)(e.target,"wtBorder")||t.cellBelowCursor!==e.target)&&this.editor)if(this.targetIsCellWithComment(e)){var r=this.hot.view.wt.wtTable.getCoords(e.target),o={from:new g.CellCoords(this.hot.rowIndexMapper.getVisualFromRenderableIndex(r.row),this.hot.columnIndexMapper.getVisualFromRenderableIndex(r.col))};this.displaySwitch.show(o)}else(0,f.isChildOf)(e.target,n)&&!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,f.addClass)(e,t.commentedCellClassName)}},{key:"onEditorBlur",value:function(){this.setComment()}},{key:"onEditorMouseDown",value:function(e){T.get(this).tempEditorDimensions={width:(0,f.outerWidth)(e.target),height:(0,f.outerHeight)(e.target)}}},{key:"onEditorMouseUp",value:function(e){var t=T.get(this),n=(0,f.outerWidth)(e.target),r=(0,f.outerHeight)(e.target);n===t.tempEditorDimensions.width+1&&r===t.tempEditorDimensions.height+2||this.updateCommentMeta(this.range.from.row,this.range.from.col,(0,i.default)({},"style",{width:n,height:r}))}},{key:"onContextMenuAddComment",value:function(){var e=this;this.displaySwitch.cancelHiding();var t=this.hot.getSelectedRangeLast();this.contextMenuEvent=!0,this.setRange({from:t.highlight}),this.show(),setTimeout((function(){e.hot&&(e.hot.deselectCell(),e.editor.focus())}),10)}},{key:"onContextMenuRemoveComment",value:function(){var e=this,t=this.hot.getSelectedRangeLast();this.contextMenuEvent=!0,t.forAll((function(t,n){t>=0&&n>=0&&e.removeCommentAtCell(t,n,!1)})),this.hot.render()}},{key:"onContextMenuMakeReadOnly",value:function(){var e=this,t=this.hot.getSelectedRangeLast();this.contextMenuEvent=!0,t.forAll((function(t,n){if(t>=0&&n>=0){var r=!!e.getCommentMeta(t,n,"readOnly");e.updateCommentMeta(t,n,(0,i.default)({},"readOnly",!r))}}))}},{key:"addToContextMenu",value:function(e){var t=this,n=function(){return t.hot.rowIndexMapper.getRenderableIndexesLength()>0&&t.hot.columnIndexMapper.getRenderableIndexesLength()>0};e.items.push({name:"---------"},{key:"commentsAddEdit",name:function(){return t.checkSelectionCommentsConsistency()?t.hot.getTranslatedPhrase(C.CONTEXTMENU_ITEMS_EDIT_COMMENT):t.hot.getTranslatedPhrase(C.CONTEXTMENU_ITEMS_ADD_COMMENT)},callback:function(){return t.onContextMenuAddComment()},disabled:function(){return!n()||!(t.hot.getSelectedLast()&&!t.hot.selection.isSelectedByCorner())}},{key:"commentsRemove",name:function(){return this.getTranslatedPhrase(C.CONTEXTMENU_ITEMS_REMOVE_COMMENT)},callback:function(){return t.onContextMenuRemoveComment()},disabled:function(){return!n()||!(t.hot.getSelectedLast()&&!t.hot.selection.isSelectedByCorner())}},{key:"commentsReadOnly",name:function(){var e=this,t=this.getTranslatedPhrase(C.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT);return(0,E.checkSelectionConsistency)(this.getSelectedRangeLast(),(function(t,n){var r=e.getCellMeta(t,n).comment;if(r&&(r=r.readOnly),r)return!0}))&&(t=(0,E.markLabelAsSelected)(t)),t},callback:function(){return t.onContextMenuMakeReadOnly()},disabled:function(){return!n()||!(t.hot.getSelectedLast()&&!t.hot.selection.isSelectedByCorner()&&t.checkSelectionCommentsConsistency())}})}},{key:"getDisplayDelaySetting",value:function(){var e=this.hot.getSettings().comments;if((0,v.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(),(0,u.default)((0,h.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"comments"}},{key:"PLUGIN_PRIORITY",get:function(){return 60}}]),n}(m.BasePlugin);t.Comments=b},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(1)),i=r(n(2)),a=n(10),s=function(){function e(t){(0,o.default)(this,e),this.container=null,this.rootDocument=t,this.editor=this.createEditor(),this.editorStyle=this.editor.style,this.hidden=!0,this.hide()}return(0,i.default)(e,[{key:"setPosition",value:function(e,t){this.editorStyle.left="".concat(e,"px"),this.editorStyle.top="".concat(t,"px")}},{key:"setSize",value:function(e,t){if(e&&t){var n=this.getInputElement();n.style.width="".concat(e,"px"),n.style.height="".concat(t,"px")}}},{key:"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]:"",t=e||"";this.getInputElement().value=t}},{key:"getValue",value:function(){return this.getInputElement().value}},{key:"isFocused",value:function(){return this.rootDocument.activeElement===this.getInputElement()}},{key:"focus",value:function(){this.getInputElement().focus()}},{key:"createEditor",value:function(){var t=this.rootDocument.createElement("div"),n=this.rootDocument.createElement("textarea");return this.container=this.rootDocument.createElement("div"),(0,a.addClass)(this.container,e.CLASS_EDITOR_CONTAINER),this.rootDocument.body.appendChild(this.container),(0,a.addClass)(t,e.CLASS_EDITOR),(0,a.addClass)(n,e.CLASS_INPUT),t.appendChild(n),this.container.appendChild(t),t}},{key:"getInputElement",value:function(){return this.editor.querySelector(".".concat(e.CLASS_INPUT))}},{key:"destroy",value:function(){var e=this.container?this.container.parentNode:null;this.editor.parentNode.removeChild(this.editor),this.editor=null,this.editorStyle=null,e&&e.removeChild(this.container)}}],[{key:"CLASS_EDITOR_CONTAINER",get:function(){return"htCommentsContainer"}},{key:"CLASS_EDITOR",get:function(){return"htComments"}},{key:"CLASS_INPUT",get:function(){return"htCommentTextArea"}},{key:"CLASS_CELL",get:function(){return"htCommentCell"}}]),e}();t.default=s},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(44);var o=r(n(1)),i=r(n(2)),a=n(53),s=n(5),l=r(n(55)),u=function(){function e(t){(0,o.defau
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment