You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
627 lines
2.2 MiB
627 lines
2.2 MiB
/*!
|
|
* 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 Aleja Zwycięstwa 96-98, registered by the District Court in Gdansk 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 for commercial purposes, meaning intended for or
|
|
* resulting in commercial advantage or monetary compensation, or not.
|
|
*
|
|
* If your use is strictly personal or solely for evaluation purposes, meaning for the purposes of testing
|
|
* the suitability, performance, and usefulness of this software outside the production environment,
|
|
* you agree to be bound by the terms included in the "handsontable-non-commercial-license.pdf" file.
|
|
*
|
|
* Your use of this software for commercial purposes is subject to the terms included in an applicable
|
|
* license agreement.
|
|
*
|
|
* In any case, you must not make any such use of this software as to develop software which may be
|
|
* considered competitive with this software.
|
|
*
|
|
* UNLESS EXPRESSLY AGREED OTHERWISE, HANDSONCODE PROVIDES THIS SOFTWARE ON AN "AS IS"
|
|
* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, AND 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: 12.0.1
|
|
* Release date: 16/05/2022 (built at 13/05/2022 13:50:58)
|
|
*/
|
|
!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=645)}([function(e,t,n){var r=n(247),o=n(96),i=n(648);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(252).charAt,o=n(71),i=n(113),a=n(253),s=i.set,u=i.getterFor("String Iterator");a(String,"String",(function(e){s(this,{type:"String Iterator",string:o(e),index:0})}),(function(){var e,t=u(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(93),o=n(179),i=n(178),a=n(113),s=n(84).f,u=n(253),l=n(130),c=n(69),f=a.set,d=a.getterFor("Array Iterator");e.exports=u(Array,"Array",(function(e,t){f(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=d(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");var h=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!l&&c&&"values"!==h.name)try{s(h,"name",{value:"values"})}catch(e){}},function(e,t,n){var r=n(29),o=n(345),i=n(346),a=n(3),s=n(121),u=n(58),l=u("iterator"),c=u("toStringTag"),f=a.values,d=function(e,t){if(e){if(e[l]!==f)try{s(e,l,f)}catch(t){e[l]=f}if(e[c]||s(e,c,t),o[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(t){e[n]=a[n]}}};for(var h in o)d(r[h]&&r[h].prototype,h);d(i,"DOMTokenList")},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},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),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(28),o=n(107),i=n(132),a=n(649),s=n(330),u=n(65),l=n(64),c=n(133),f=n(39),d=o("Reflect","construct"),h=Object.prototype,p=[].push,y=f((function(){function e(){}return!(d((function(){}),[],e)instanceof e)})),m=!f((function(){d((function(){}))})),g=y||m;r({target:"Reflect",stat:!0,forced:g,sham:g},{construct:function(e,t){s(e),u(t);var n=arguments.length<3?e:s(arguments[2]);if(m&&!y)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 i(p,r,t),new(i(a,e,r))}var o=n.prototype,f=c(l(o)?o:h),g=i(e,f,t);return l(g)?g:f}})},function(e,t,n){n(654),n(658),n(659),n(660),n(661)},function(e,t,n){"use strict";var r=n(28),o=n(69),i=n(29),a=n(36),s=n(62),u=n(60),l=n(120),c=n(71),f=n(84).f,d=n(326),h=i.Symbol,p=h&&h.prototype;if(o&&u(h)&&(!("description"in p)||void 0!==h().description)){var y={},m=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=l(p,this)?new h(e):void 0===e?h():h(e);return""===e&&(y[t]=!0),t};d(m,h),m.prototype=p,p.constructor=m;var g="Symbol(test)"==String(h("test")),v=a(p.toString),E=a(p.valueOf),b=/^Symbol\((.*)\)[^)]+$/,T=a("".replace),C=a("".slice);f(p,"description",{configurable:!0,get:function(){var e=E(this),t=v(e);if(s(y,e))return"";var n=g?C(t,7,-1):T(t,b,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:m})}},function(e,t,n){n(343)("iterator")},function(e,t,n){n(698)},function(e,t,n){"use strict";var r=n(28),o=n(213);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(e,t,n){"use strict";var r=n(28),o=n(29),i=n(175),a=n(211),s=n(64),u=n(151),l=n(97),c=n(93),f=n(152),d=n(58),h=n(176),p=n(173),y=h("slice"),m=d("species"),g=o.Array,v=Math.max;r({target:"Array",proto:!0,forced:!y},{slice:function(e,t){var n,r,o,d=c(this),h=l(d),y=u(e,h),E=u(void 0===t?h:t,h);if(i(d)&&(n=d.constructor,(a(n)&&(n===g||i(n.prototype))||s(n)&&null===(n=n[m]))&&(n=void 0),n===g||void 0===n))return p(d,y,E);for(r=new(void 0===n?g:n)(v(E-y,0)),o=0;y<E;y++,o++)y in d&&f(r,o,d[y]);return r.length=o,r}})},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(578);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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(21).default,o=n(46);e.exports=function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.clone=function(e){var t={};return l(e,(function(e,n){t[n]=e})),t},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.deepClone=s,t.deepExtend=function e(t,n){l(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.deepObjectSize=function(e){if(!u(e))return 0;return function e(t){var n=0;return u(t)?l(t,(function(t,r){"__children"!==r&&(n+=e(t))})):n+=1,n}(e)},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.duckSchema=function e(t){var n;Array.isArray(t)?n=[]:(n={},l(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.extend=function(e,t,n){var r=Array.isArray(n);return l(t,(function(t,o){(!1===r||n.includes(o))&&(e[o]=t)})),e},t.getProperty=function(e,t){var n=t.split("."),r=e;return l(n,(function(e){if(void 0===(r=r[e]))return r=void 0,!1})),r},t.hasOwnProperty=c,t.inherit=function(e,t){return t.prototype.constructor=t,e.prototype=new t,e.prototype.constructor=e,e},t.isObject=u,t.isObjectEqual=function(e,t){return JSON.stringify(e)===JSON.stringify(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),l(t,(function(t,n){if(void 0!==e.prototype[n])throw new Error("Mixin conflict. Property '".concat(n,"' already exist and cannot be overwritten."));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)||u(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.objectEach=l,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}))},n(42),n(49),n(0),n(12),n(61),n(26);var o=r(n(43)),i=r(n(21)),a=n(20);function s(e){return"object"===(0,i.default)(e)?JSON.parse(JSON.stringify(e)):e}function u(e){return"[object Object]"===Object.prototype.toString.call(e)}function l(e,t){for(var n in e)if((!e.hasOwnProperty||e.hasOwnProperty&&Object.prototype.hasOwnProperty.call(e,n))&&!1===t(e[n],n,e))break;return e}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},function(e,t,n){"use strict";var r=n(28),o=n(29),i=n(39),a=n(175),s=n(64),u=n(90),l=n(97),c=n(152),f=n(255),d=n(176),h=n(58),p=n(169),y=h("isConcatSpreadable"),m=o.TypeError,g=p>=51||!i((function(){var e=[];return e[y]=!1,e.concat()[0]!==e})),v=d("concat"),E=function(e){if(!s(e))return!1;var t=e[y];return void 0!==t?!!t:a(e)};r({target:"Array",proto:!0,arity:1,forced:!g||!v},{concat:function(e){var t,n,r,o,i,a=u(this),s=f(a,0),d=0;for(t=-1,r=arguments.length;t<r;t++)if(i=-1===t?a:arguments[t],E(i)){if(d+(o=l(i))>9007199254740991)throw m("Maximum allowed index exceeded");for(n=0;n<o;n++,d++)n in i&&c(s,d,i[n])}else{if(d>=9007199254740991)throw m("Maximum allowed index exceeded");c(s,d++,i)}return s.length=d,s}})},function(e,t,n){var r=n(28),o=n(39),i=n(93),a=n(112).f,s=n(69),u=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!s||u,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},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.arrayAvg=function(e){if(!e.length)return 0;return i(e)/e.length},t.arrayEach=o,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.arrayFlatten=function e(t){return r(t,(function(t,n){return t.concat(Array.isArray(n)?e(n):n)}),[])},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.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.arrayReduce=r,t.arraySum=i,t.arrayUnique=function(e){var t=[];return o(e,(function(e){-1===t.indexOf(e)&&t.push(e)})),t},t.extendArray=function(e,t){var n=t.length,r=0;for(;r<n;)e.push(t[r]),r+=1},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.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.stringToArray=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";return e.split(t)},t.to2dArray=function(e){var t=e.length,n=0;for(;n<t;)e[n]=[e[n]],n+=1},n(22),n(2),n(18),n(35),n(13),n(40),n(0),n(42),n(49),n(3),n(55),n(4),n(12),n(61)},function(e,t){function n(t){return e.exports=n="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.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(28),o=n(650);r({target:"Array",stat:!0,forced:!n(336)((function(e){Array.from(e)}))},{from:o})},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.HTML_CHARACTERS=void 0,t.addClass=function(e,t){a(e,t)},t.addEvent=function(e,t,n){e.addEventListener(t,n,!1)},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.closest=d,t.closestDown=function(e,t,n){var r=[],o=e;for(;o&&(o=d(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.empty=m,t.fastInnerHTML=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];v.test(t)?e.innerHTML=n?(0,c.sanitize)(t):t:E(e,t)},t.fastInnerText=E,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.getComputedStyle=C,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.getFrameElement=f,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.getParentWindow=function(e){return f(e)&&e.parent},t.getScrollLeft=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return T(t);return e.scrollLeft},t.getScrollTop=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return b(t);return e.scrollTop},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,u.isGetComputedStyleSupported)(),i=e.parentNode;for(;i&&i.style&&t.body!==i;){var a=i.style,s=a.overflow,l=a.overflowX,c=a.overflowY;if([s,l,c].includes("scroll"))return i;if(o){var f=n.getComputedStyle(i);if(s=f.overflow,l=f.overflowX,c=f.overflowY,r.includes(s)||r.includes(l)||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(l)||r.includes(s)))return i;i=i.parentNode}return n},t.getScrollbarWidth=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;void 0===g&&(g=w(e));return g},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.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=C(e,n);if(""!==o[t]&&void 0!==o[t])return o[t]},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=C(r,n),i=["scroll","hidden","auto"],a=o.getPropertyValue("overflow"),s=o.getPropertyValue("overflow-y"),u=o.getPropertyValue("overflow-x");if(i.includes(a)||i.includes(s)||i.includes(u))return r;r=r.parentNode}return n},t.getWindowScrollLeft=T,t.getWindowScrollTop=b,t.hasAccessToParentWindow=function(e){return!!Object.getPrototypeOf(e.parent)},t.hasClass=function(e,t){return i(e,t)},t.hasHorizontalScrollbar=function(e){return e.offsetHeight!==e.clientHeight},t.hasVerticalScrollbar=function(e){return e.offsetWidth!==e.clientWidth},t.index=function(e){var t=0,n=e;if(n.previousSibling)for(;n=n.previousSibling;)t+=1;return t},t.innerHeight=function(e){return e.clientHeight||e.innerHeight},t.innerWidth=function(e){return e.clientWidth||e.innerWidth},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.isDetached=function(e){return!e.parentNode},t.isInput=R,t.isOutsideInput=O,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.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.offset=function(e){var t,n,r,o,i=e.ownerDocument,a=i.defaultView,s=i.documentElement,l=e;if((0,u.hasCaptionProblem)()&&l.firstChild&&"CAPTION"===l.firstChild.nodeName)return{top:(o=l.getBoundingClientRect()).top+(a.pageYOffset||s.scrollTop)-(s.clientTop||0),left:o.left+(a.pageXOffset||s.scrollLeft)-(s.clientLeft||0)};t=l.offsetLeft,n=l.offsetTop,r=l;for(;(l=l.offsetParent)&&l!==i.body;)t+=l.offsetLeft,n+=l.offsetTop,r=l;r&&"fixed"===r.style.position&&(t+=a.pageXOffset||s.scrollLeft,n+=a.pageYOffset||s.scrollTop);return{left:t,top:n}},t.outerHeight=function(e){if((0,u.hasCaptionProblem)()&&e.firstChild&&"CAPTION"===e.firstChild.nodeName)return e.offsetHeight+e.firstChild.offsetHeight;return e.offsetHeight},t.outerWidth=function(e){return e.offsetWidth},t.overlayContainsElement=function(e,t,n){var r=n.parentElement.querySelector(".ht_clone_".concat(e));return r?r.contains(t):null},t.removeClass=function(e,t){s(e,t)},t.removeEvent=function(e,t,n){e.removeEventListener(t,n,!1)},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.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.selectElementIfAllowed=function(e){O(e.ownerDocument.activeElement)||e.select()},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.setOverlayPosition=function(e,t,n){(0,l.isIE9)()?(e.style.top=n,e.style.left=t):(0,l.isSafari)()?e.style["-webkit-transform"]="translate3d(".concat(t,",").concat(n,",0)"):e.style.transform="translate3d(".concat(t,",").concat(n,",0)")};var o=r(n(44));n(27),n(42),n(49),n(13),n(35),n(40),n(0),n(12),n(61),n(94),n(66),n(75),n(109),n(63),n(18);var i,a,s,u=n(126),l=n(101),c=n(91);function f(e){return Object.getPrototypeOf(e.parent)&&e.frameElement}function d(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,u=s.nodeType,l=s.nodeName;if(u===o&&(t.includes(l)||t.includes(a)))return a;var c=a,f=c.host;a=f&&u===i?f:a.parentNode}return null}function h(e){return e&&e.length?e.filter((function(e){return!!e})):[]}if((0,u.isClassListSupported)()){var p=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=h(i)).length>0)if(p(r))(n=e.classList).add.apply(n,(0,o.default)(i));else for(var a=0;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=h(i)).length>0)if(p(r))(n=e.classList).remove.apply(n,(0,o.default)(i));else for(var a=0;i[a];)e.classList.remove(i[a]),a+=1}}else{var y=function(e){return new RegExp("(\\s|^)".concat(e,"(\\s|$)"))};i=function(e,t){return void 0!==e.className&&y(t).test(e.className)},a=function(e,t){var n=e.className,r=t;if("string"==typeof r&&(r=r.split(" ")),r=h(r),""===n)n=r.join(" ");else for(var o=0;o<r.length;o++)r[o]&&!y(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=h(o);o[n];)r=r.replace(y(o[n])," ").trim(),n+=1;e.className!==r&&(e.className=r)}}function m(e){for(var t;t=e.lastChild;)e.removeChild(t)}var g,v=/(<(.*)>|&(.*);)/;function E(e,t){var n=e.firstChild;n&&3===n.nodeType&&null===n.nextSibling?u.isTextContentSupported?n.textContent=t:n.data=t:(m(e),e.appendChild(e.ownerDocument.createTextNode(t)))}function b(){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 T(){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 C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return e.currentStyle||t.getComputedStyle(e)}function w(){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 R(e){return e&&(["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function O(e){return R(e)&&!1===e.hasAttribute("data-hot-input")}t.HTML_CHARACTERS=v},function(e,t,n){"use strict";n.r(t),n.d(t,"ErrorType",(function(){return r})),n.d(t,"CellType",(function(){return o})),n.d(t,"getCellType",(function(){return h})),n.d(t,"CellValueNoNumber",(function(){return f})),n.d(t,"CellValueJustNumber",(function(){return d})),n.d(t,"CellValueType",(function(){return p})),n.d(t,"CellValueDetailedType",(function(){return y})),n.d(t,"CellValueTypeOrd",(function(){return m})),n.d(t,"getCellValueType",(function(){return g})),n.d(t,"getCellValueDetailedType",(function(){return v})),n.d(t,"getCellValueFormat",(function(){return E})),n.d(t,"CellError",(function(){return b})),n.d(t,"simpleRowAddress",(function(){return T})),n.d(t,"invalidSimpleRowAddress",(function(){return C})),n.d(t,"simpleColumnAddress",(function(){return w})),n.d(t,"invalidSimpleColumnAddress",(function(){return R})),n.d(t,"simpleCellAddress",(function(){return O})),n.d(t,"invalidSimpleCellAddress",(function(){return S})),n.d(t,"movedSimpleCellAddress",(function(){return A})),n.d(t,"addressKey",(function(){return N})),n.d(t,"isSimpleCellAddress",(function(){return _})),n.d(t,"absoluteSheetReference",(function(){return k})),n.d(t,"equalSimpleCellAddress",(function(){return M}));n(87),n(18),n(8),n(9),n(0),n(10),n(3),n(2),n(4);var r,o,i=n(123),a=n(45),s=n(51),u=n(78);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(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(e){e.DIV_BY_ZERO="DIV_BY_ZERO",e.NAME="NAME",e.VALUE="VALUE",e.NUM="NUM",e.NA="NA",e.CYCLE="CYCLE",e.REF="REF",e.SPILL="SPILL",e.LIC="LIC",e.ERROR="ERROR"}(r||(r={})),function(e){e.FORMULA="FORMULA",e.VALUE="VALUE",e.ARRAY="ARRAY",e.EMPTY="EMPTY",e.ARRAYFORMULA="ARRAYFORMULA"}(o||(o={}));var f,d,h=function(e,t){return e instanceof i.ArrayVertex?e.isLeftCorner(t)?o.ARRAYFORMULA:o.ARRAY:e instanceof i.FormulaCellVertex||e instanceof i.ParsingErrorVertex?o.FORMULA:e instanceof i.ValueCellVertex?o.VALUE:o.EMPTY};!function(e){e.EMPTY="EMPTY",e.NUMBER="NUMBER",e.STRING="STRING",e.BOOLEAN="BOOLEAN",e.ERROR="ERROR"}(f||(f={})),function(e){e.NUMBER="NUMBER"}(d||(d={}));var p=Object.assign(Object.assign({},f),d),y=Object.assign(Object.assign({},f),s.NumberType),m=function(e){switch(e){case p.EMPTY:return 0;case p.NUMBER:return 1;case p.STRING:return 2;case p.BOOLEAN:return 3;case p.ERROR:return 4}throw new Error("Cell value not computed")},g=function(e){if(e===s.EmptyValue)return p.EMPTY;if(e instanceof b||e instanceof u.SimpleRangeValue)return p.ERROR;if("string"==typeof e)return p.STRING;if(Object(s.isExtendedNumber)(e))return p.NUMBER;if("boolean"==typeof e)return p.BOOLEAN;throw new Error("Cell value not computed")},v=function(e){return Object(s.isExtendedNumber)(e)?Object(s.getTypeOfExtendedNumber)(e):g(e)},E=function(e){return Object(s.isExtendedNumber)(e)?Object(s.getFormatOfExtendedNumber)(e):void 0},b=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=t,this.message=n,this.root=r}var t,n,o;
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/return t=e,o=[{key:"parsingError",value:function(){return new e(r.ERROR,a.ErrorMessage.ParseError)}}],(n=[{key:"attachRootVertex",value:function(t){return void 0===this.root?new e(this.type,this.message,t):this}}])&&c(t.prototype,n),o&&c(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}(),T=function(e,t){return{sheet:e,row:t}},C=function(e){return e.row<0},w=function(e,t){return{sheet:e,col:t}},R=function(e){return e.col<0},O=function(e,t,n){return{sheet:e,col:t,row:n}},S=function(e){return e.col<0||e.row<0},A=function(e,t,n,r){return O(t,e.col+n,e.row+r)},N=function(e){return"".concat(e.sheet,",").concat(e.row,",").concat(e.col)};function _(e){return!(!e||"object"!==l(e)&&"function"!=typeof e)&&("col"in e&&"number"==typeof e.col&&"row"in e&&"number"==typeof e.row&&"sheet"in e&&"number"==typeof e.sheet)}var k=function(e,t){var n;return null!==(n=e.sheet)&&void 0!==n?n:t.sheet},M=function(e,t){return e.sheet===t.sheet&&e.col===t.col&&e.row===t.row}},function(e,t,n){var r=n(69),o=n(171).EXISTS,i=n(36),a=n(84).f,s=Function.prototype,u=i(s.toString),l=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=i(l.exec);r&&!o&&a(s,"name",{configurable:!0,get:function(){try{return c(l,u(this))[1]}catch(e){return""}}})},function(e,t,n){var r=n(29),o=n(345),i=n(346),a=n(665),s=n(121),u=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var l in o)o[l]&&u(r[l]&&r[l].prototype);u(i)},function(e,t,n){var r=n(28),o=n(39),i=n(90),a=n(209),s=n(329);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(29),o=n(112).f,i=n(121),a=n(96),s=n(240),u=n(326),l=n(208);e.exports=function(e,t){var n,c,f,d,h,p=e.target,y=e.global,m=e.stat;if(n=y?r:m?r[p]||s(p,{}):(r[p]||{}).prototype)for(c in t){if(d=t[c],f=e.noTargetGet?(h=o(n,c))&&h.value:n[c],!l(y?c:p+(m?".":"#")+c,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;u(d,f)}(e.sham||f&&f.sham)&&i(d,"sham",!0),a(n,c,d,e)}}},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";t.__esModule=!0,t.FILTERS_VALUES_BLANK_CELLS=t.FILTERS_NAMESPACE=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_NOT_EQUAL=t.FILTERS_CONDITIONS_NOT_EMPTY=t.FILTERS_CONDITIONS_NOT_CONTAIN=t.FILTERS_CONDITIONS_NOT_BETWEEN=t.FILTERS_CONDITIONS_NONE=t.FILTERS_CONDITIONS_NAMESPACE=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_EQUAL=t.FILTERS_CONDITIONS_ENDS_WITH=t.FILTERS_CONDITIONS_EMPTY=t.FILTERS_CONDITIONS_CONTAINS=t.FILTERS_CONDITIONS_BY_VALUE=t.FILTERS_CONDITIONS_BETWEEN=t.FILTERS_CONDITIONS_BEGINS_WITH=t.FILTERS_CONDITIONS_BEFORE=t.FILTERS_CONDITIONS_AFTER=t.FILTERS_BUTTONS_SELECT_ALL=t.FILTERS_BUTTONS_PLACEHOLDER_VALUE=t.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE=t.FILTERS_BUTTONS_PLACEHOLDER_SEARCH=t.FILTERS_BUTTONS_OK=t.FILTERS_BUTTONS_CLEAR=t.FILTERS_BUTTONS_CANCEL=t.CONTEXT_MENU_ITEMS_NAMESPACE=t.CONTEXTMENU_ITEMS_UNMERGE_CELLS=t.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN=t.CONTEXTMENU_ITEMS_UNDO=t.CONTEXTMENU_ITEMS_SHOW_ROW=t.CONTEXTMENU_ITEMS_SHOW_COLUMN=t.CONTEXTMENU_ITEMS_ROW_BELOW=t.CONTEXTMENU_ITEMS_ROW_ABOVE=t.CONTEXTMENU_ITEMS_REMOVE_ROW=t.CONTEXTMENU_ITEMS_REMOVE_COMMENT=t.CONTEXTMENU_ITEMS_REMOVE_COLUMN=t.CONTEXTMENU_ITEMS_REMOVE_BORDERS=t.CONTEXTMENU_ITEMS_REDO=t.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT=t.CONTEXTMENU_ITEMS_READ_ONLY=t.CONTEXTMENU_ITEMS_NO_ITEMS=t.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD=t.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD=t.CONTEXTMENU_ITEMS_MERGE_CELLS=t.CONTEXTMENU_ITEMS_INSERT_RIGHT=t.CONTEXTMENU_ITEMS_INSERT_LEFT=t.CONTEXTMENU_ITEMS_HIDE_ROW=t.CONTEXTMENU_ITEMS_HIDE_COLUMN=t.CONTEXTMENU_ITEMS_FREEZE_COLUMN=t.CONTEXTMENU_ITEMS_EDIT_COMMENT=t.CONTEXTMENU_ITEMS_CUT=t.CONTEXTMENU_ITEMS_COPY=t.CONTEXTMENU_ITEMS_CLEAR_COLUMN=t.CONTEXTMENU_ITEMS_BORDERS_TOP=t.CONTEXTMENU_ITEMS_BORDERS_RIGHT=t.CONTEXTMENU_ITEMS_BORDERS_LEFT=t.CONTEXTMENU_ITEMS_BORDERS_BOTTOM=t.CONTEXTMENU_ITEMS_BORDERS=t.CONTEXTMENU_ITEMS_ALIGNMENT_TOP=t.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT=t.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE=t.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT=t.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY=t.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER=t.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM=t.CONTEXTMENU_ITEMS_ALIGNMENT=t.CONTEXTMENU_ITEMS_ADD_COMMENT=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 u="".concat("ContextMenu:items",".removeRow");t.CONTEXTMENU_ITEMS_REMOVE_ROW=u;var l="".concat("ContextMenu:items",".removeColumn");t.CONTEXTMENU_ITEMS_REMOVE_COLUMN=l;var c="".concat("ContextMenu:items",".undo");t.CONTEXTMENU_ITEMS_UNDO=c;var f="".concat("ContextMenu:items",".redo");t.CONTEXTMENU_ITEMS_REDO=f;var d="".concat("ContextMenu:items",".readOnly");t.CONTEXTMENU_ITEMS_READ_ONLY=d;var h="".concat("ContextMenu:items",".clearColumn");t.CONTEXTMENU_ITEMS_CLEAR_COLUMN=h;var p="".concat("ContextMenu:items",".copy");t.CONTEXTMENU_ITEMS_COPY=p;var y="".concat("ContextMenu:items",".cut");t.CONTEXTMENU_ITEMS_CUT=y;var m="".concat("ContextMenu:items",".freezeColumn");t.CONTEXTMENU_ITEMS_FREEZE_COLUMN=m;var g="".concat("ContextMenu:items",".unfreezeColumn");t.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN=g;var v="".concat("ContextMenu:items",".mergeCells");t.CONTEXTMENU_ITEMS_MERGE_CELLS=v;var E="".concat("ContextMenu:items",".unmergeCells");t.CONTEXTMENU_ITEMS_UNMERGE_CELLS=E;var b="".concat("ContextMenu:items",".addComment");t.CONTEXTMENU_ITEMS_ADD_COMMENT=b;var T="".concat("ContextMenu:items",".editComment");t.CONTEXTMENU_ITEMS_EDIT_COMMENT=T;var C="".concat("ContextMenu:items",".removeComment");t.CONTEXTMENU_ITEMS_REMOVE_COMMENT=C;var w="".concat("ContextMenu:items",".readOnlyComment");t.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT=w;var R="".concat("ContextMenu:items",".align");t.CONTEXTMENU_ITEMS_ALIGNMENT=R;var O="".concat("ContextMenu:items",".align.left");t.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT=O;var S="".concat("ContextMenu:items",".align.center");t.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER=S;var A="".concat("ContextMenu:items",".align.right");t.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT=A;var N="".concat("ContextMenu:items",".align.justify");t.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY=N;var _="".concat("ContextMenu:items",".align.top");t.CONTEXTMENU_ITEMS_ALIGNMENT_TOP=_;var k="".concat("ContextMenu:items",".align.middle");t.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE=k;var M="".concat("ContextMenu:items",".align.bottom");t.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM=M;var I="".concat("ContextMenu:items",".borders");t.CONTEXTMENU_ITEMS_BORDERS=I;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 F="".concat("ContextMenu:items",".borders.remove");t.CONTEXTMENU_ITEMS_REMOVE_BORDERS=F;var j="".concat("ContextMenu:items",".nestedHeaders.insertChildRow");t.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD=j;var U="".concat("ContextMenu:items",".nestedHeaders.detachFromParent");t.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD=U;var H="".concat("ContextMenu:items",".hideColumn");t.CONTEXTMENU_ITEMS_HIDE_COLUMN=H;var B="".concat("ContextMenu:items",".showColumn");t.CONTEXTMENU_ITEMS_SHOW_COLUMN=B;var V="".concat("ContextMenu:items",".hideRow");t.CONTEXTMENU_ITEMS_HIDE_ROW=V;var W="".concat("ContextMenu:items",".showRow");t.CONTEXTMENU_ITEMS_SHOW_ROW=W;t.FILTERS_NAMESPACE="Filters:";var Y="".concat("Filters:","conditions");t.FILTERS_CONDITIONS_NAMESPACE=Y;var G="".concat(Y,".none");t.FILTERS_CONDITIONS_NONE=G;var z="".concat(Y,".isEmpty");t.FILTERS_CONDITIONS_EMPTY=z;var K="".concat(Y,".isNotEmpty");t.FILTERS_CONDITIONS_NOT_EMPTY=K;var X="".concat(Y,".isEqualTo");t.FILTERS_CONDITIONS_EQUAL=X;var q="".concat(Y,".isNotEqualTo");t.FILTERS_CONDITIONS_NOT_EQUAL=q;var Q="".concat(Y,".beginsWith");t.FILTERS_CONDITIONS_BEGINS_WITH=Q;var $="".concat(Y,".endsWith");t.FILTERS_CONDITIONS_ENDS_WITH=$;var Z="".concat(Y,".contains");t.FILTERS_CONDITIONS_CONTAINS=Z;var J="".concat(Y,".doesNotContain");t.FILTERS_CONDITIONS_NOT_CONTAIN=J;var ee="".concat(Y,".byValue");t.FILTERS_CONDITIONS_BY_VALUE=ee;var te="".concat(Y,".greaterThan");t.FILTERS_CONDITIONS_GREATER_THAN=te;var ne="".concat(Y,".greaterThanOrEqualTo");t.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL=ne;var re="".concat(Y,".lessThan");t.FILTERS_CONDITIONS_LESS_THAN=re;var oe="".concat(Y,".lessThanOrEqualTo");t.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL=oe;var ie="".concat(Y,".isBetween");t.FILTERS_CONDITIONS_BETWEEN=ie;var ae="".concat(Y,".isNotBetween");t.FILTERS_CONDITIONS_NOT_BETWEEN=ae;var se="".concat(Y,".after");t.FILTERS_CONDITIONS_AFTER=se;var ue="".concat(Y,".before");t.FILTERS_CONDITIONS_BEFORE=ue;var le="".concat(Y,".today");t.FILTERS_CONDITIONS_TODAY=le;var ce="".concat(Y,".tomorrow");t.FILTERS_CONDITIONS_TOMORROW=ce;var fe="".concat(Y,".yesterday");t.FILTERS_CONDITIONS_YESTERDAY=fe;var de="".concat("Filters:","labels.filterByCondition");t.FILTERS_DIVS_FILTER_BY_CONDITION=de;var he="".concat("Filters:","labels.filterByValue");t.FILTERS_DIVS_FILTER_BY_VALUE=he;var pe="".concat("Filters:","labels.conjunction");t.FILTERS_LABELS_CONJUNCTION=pe;var ye="".concat("Filters:","labels.disjunction");t.FILTERS_LABELS_DISJUNCTION=ye;var me="".concat("Filters:","values.blankCells");t.FILTERS_VALUES_BLANK_CELLS=me;var ge="".concat("Filters:","buttons.selectAll");t.FILTERS_BUTTONS_SELECT_ALL=ge;var ve="".concat("Filters:","buttons.clear");t.FILTERS_BUTTONS_CLEAR=ve;var Ee="".concat("Filters:","buttons.ok");t.FILTERS_BUTTONS_OK=Ee;var be="".concat("Filters:","buttons.cancel");t.FILTERS_BUTTONS_CANCEL=be;var Te="".concat("Filters:","buttons.placeholder.search");t.FILTERS_BUTTONS_PLACEHOLDER_SEARCH=Te;var Ce="".concat("Filters:","buttons.placeholder.value");t.FILTERS_BUTTONS_PLACEHOLDER_VALUE=Ce;var we="".concat("Filters:","buttons.placeholder.secondValue");t.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE=we},function(e,t,n){var r=n(803);function o(){return"undefined"!=typeof Reflect&&Reflect.get?(e.exports=o=Reflect.get,e.exports.__esModule=!0,e.exports.default=e.exports):(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(arguments.length<3?e:n):i.value}},e.exports.__esModule=!0,e.exports.default=e.exports),o.apply(this,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t._injectProductInfo=function(e,t){var n,r=!y(e),o="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),i="invalid",a="invalid",s=function(e){var t=[][m],n=t;if(e[m]!==b("Z"))return!1;for(var r="",o="B<H4P+".split(""),i=b(o.shift());i;i=b(o.shift()||"A"))--i<""[m]?n|=(v("".concat(v(g(r)+(g(E(e,Math.abs(i),2))+[]).padStart(2,"0"))))%97||2)>>1:r=E(e,i,i?1===o[m]?9:8:6);return n===t}(e=T(e||""));if(r||o||s)if(s){var u=(0,d.default)("16/05/2022","DD/MM/YYYY"),l=Math.floor(u.toDate().getTime()/864e5),c=g(E(T(h=e),g("12"),b("F")))/(g(E(T(h),b("B"),~~![][m]))||9);if(n=(0,d.default)(864e5*(c+1),"x").format("MMMM DD, YYYY"),l>c){var f=(0,d.default)().diff(u,"days");i=f<=1?"valid":"expired",a=f<=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 h;"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(!C&&"valid"!==i){w[i]({keyValidityDate:n,hotVersion:"12.0.1"})&&console["non_commercial"===i?"info":"warn"](w[i]({keyValidityDate:n,hotVersion:"12.0.1"})),C=!0}if("valid"!==a&&t.parentNode){if(R[a]({keyValidityDate:n,hotVersion:"12.0.1"})){var p=document.createElement("div");p.id="hot-display-license-info",p.innerHTML=R[a]({keyValidityDate:n,hotVersion:"12.0.1"}),t.parentNode.insertBefore(p,t.nextSibling)}}},t.isDefined=function(e){return void 0!==e},t.isEmpty=y,t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.isUndefined=p,t.stringify=function(e){var t;switch((0,f.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};var o=r(n(79));n(0),n(66),n(288),n(12),n(63),n(61),n(289);var i,a,s,u,l,c,f=r(n(21)),d=r(n(102)),h=n(80);function p(e){return void 0===e}function y(e){return null===e||""===e||p(e)}var m="length",g=function(e){return parseInt(e,16)},v=function(e){return parseInt(e,10)},E=function(e,t,n){return e.substr(t,n)},b=function(e){return e.codePointAt(0)-65},T=function(e){return"".concat(e).replace(/\-/g,"")},C=!1,w={invalid:function(){return(0,h.toSingleLine)(i||(i=(0,o.default)(["\n The license key for Handsontable is invalid. \n If you need any help, contact us at support@handsontable.com."],["\n The license key for Handsontable is invalid.\\x20\n If you need any help, contact us at support@handsontable.com."])))},expired:function(e){var t=e.keyValidityDate,n=e.hotVersion;return(0,h.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 sales@handsontable.com."],["\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 sales@handsontable.com."])),t,n,t)},missing:function(){return(0,h.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 support@handsontable.com."],["\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 support@handsontable.com."])))},non_commercial:function(){return""}},R={invalid:function(){return(0,h.toSingleLine)(u||(u=(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:support@handsontable.com">support@handsontable.com</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:support@handsontable.com">support@handsontable.com</a>.'])))},expired:function(e){var t=e.keyValidityDate,n=e.hotVersion;return(0,h.toSingleLine)(l||(l=(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:sales@handsontable.com">sales@handsontable.com</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:sales@handsontable.com">sales@handsontable.com</a>.'])),t,n,t)},missing:function(){return(0,h.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:support@handsontable.com">support@handsontable.com</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:support@handsontable.com">support@handsontable.com</a>.'])))},non_commercial:function(){return""}}},function(e,t,n){n(668)},function(e,t,n){var r=n(430),o=n(746),i=n(295),a=n(432);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(28),o=n(36),i=n(242).indexOf,a=n(153),s=o([].indexOf),u=!!s&&1/s([1],1,-0)<0,l=a("indexOf");r({target:"Array",proto:!0,forced:u||!l},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return u?s(this,e,t)||0:i(this,e,t)}})},function(e,t,n){var r=n(165),o=Function.prototype,i=o.bind,a=o.call,s=r&&i.bind(a,a);e.exports=r?function(e){return e&&s(e)}:function(e){return e&&function(){return a.apply(e,arguments)}}},function(e,t,n){"use strict";var r=n(28),o=n(134).map;r({target:"Array",proto:!0,forced:!n(176)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";n.r(t),n.d(t,"ArgumentTypes",(function(){return r})),n.d(t,"FunctionPlugin",(function(){return g}));n(37),n(13),n(67),n(52),n(8),n(9),n(0),n(10),n(3),n(2),n(4),n(22),n(25),n(12);var r,o=n(86),i=n(24),a=n(45),s=n(72),u=n(106),l=n(51),c=n(78);function f(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=p(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;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,t)||p(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){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||p(e)||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.")}()}function p(e,t){if(e){if("string"==typeof e)return y(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)?y(e,t):void 0}}function y(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 m(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(e){e.STRING="STRING",e.NUMBER="NUMBER",e.BOOLEAN="BOOLEAN",e.SCALAR="SCALAR",e.NOERROR="NOERROR",e.RANGE="RANGE",e.INTEGER="INTEGER",e.COMPLEX="COMPLEX",e.ANY="ANY"}(r||(r={}));var g=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.coerceScalarToNumberOrError=function(e){return n.arithmeticHelper.coerceScalarToNumberOrError(e)},this.runFunction=function(e,t,o,s){var u,l,f,p,y,m,g=o.parameters;if(m=o.expandRanges?n.listOfScalarValues(e,t):e.map((function(e){return[n.evaluateAst(e,t),!1]})),void 0===o.repeatLastArgs&&g.length<m.length)return new i.CellError(i.ErrorType.NA,a.ErrorMessage.WrongArgNumber);if(void 0!==o.repeatLastArgs&&g.length<m.length&&(m.length-g.length)%o.repeatLastArgs!=0)return new i.CellError(i.ErrorType.NA,a.ErrorMessage.WrongArgNumber);for(g=h(g);g.length<m.length;){var v;(v=g).push.apply(v,h(g.slice(g.length-o.repeatLastArgs)))}var E=1,b=1;if(!o.vectorizationForbidden&&t.arraysFlag)for(var T=0;T<m.length;T++){var C=d(m[T],1)[0];C instanceof c.SimpleRangeValue&&g[T].argumentType!==r.RANGE&&g[T].argumentType!==r.ANY&&(b=Math.max(b,C.height()),E=Math.max(E,C.width()))}for(var w=m.length;w<g.length;w++)if(void 0===(null===(u=g[w])||void 0===u?void 0:u.defaultValue)&&!(null===(l=g[w])||void 0===l?void 0:l.optionalArg))return new i.CellError(i.ErrorType.NA,a.ErrorMessage.WrongArgNumber);for(var R=[],O=0;O<b;O++){for(var S=[],A=0;A<E;A++){for(var N=void 0,_=[],k=0;k<g.length;k++){var M=d(null!==(f=m[k])&&void 0!==f?f:[void 0,void 0],2),I=M[0],P=M[1];I instanceof c.SimpleRangeValue&&g[k].argumentType!==r.RANGE&&g[k].argumentType!==r.ANY&&!o.vectorizationForbidden&&t.arraysFlag&&(I=null===(p=I.data[1!==I.height()?O:0])||void 0===p?void 0:p[1!==I.width()?A:0]);var x=null!=I?I:null===(y=g[k])||void 0===y?void 0:y.defaultValue;if(void 0===x)_.push(void 0);else{var D=void 0!==I?n.coerceToType(x,g[k],t):x;void 0!==D?(D instanceof i.CellError&&g[k].argumentType!==r.SCALAR&&(N=null!=N?N:D),_.push(D)):P||(N=null!=N?N:new i.CellError(i.ErrorType.VALUE,a.ErrorMessage.WrongType))}}var L=null!=N?N:n.returnNumberWrapper(s.apply(void 0,_),o.returnNumberType);if(1===b&&1===E)return L;if(L instanceof c.SimpleRangeValue)throw"Function returning array cannot be vectorized.";S.push(L)}R.push(S)}return c.SimpleRangeValue.onlyValues(R)},this.runFunctionWithReferenceArgument=function(e,t,r,u,l){var c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(){return new i.CellError(i.ErrorType.NA,a.ErrorMessage.CellRefExpected)};if(0===e.length)return n.returnNumberWrapper(u(),r.returnNumberType);if(e.length>1)return new i.CellError(i.ErrorType.NA,a.ErrorMessage.WrongArgNumber);for(var f,d=e[0];d.type===s.AstNodeType.PARENTHESIS;)d=d.expression;if(d.type===s.AstNodeType.CELL_REFERENCE)f=d.reference.toSimpleCellAddress(t.formulaAddress);else if(d.type===s.AstNodeType.CELL_RANGE||d.type===s.AstNodeType.COLUMN_RANGE||d.type===s.AstNodeType.ROW_RANGE)try{f=o.AbsoluteCellRange.fromAst(d,t.formulaAddress).start}catch(e){return new i.CellError(i.ErrorType.REF,a.ErrorMessage.CellRefExpected)}return void 0!==f?n.returnNumberWrapper(l(f),r.returnNumberType):n.runFunction(e,t,r,c)},this.interpreter=t,this.dependencyGraph=t.dependencyGraph,this.columnSearch=t.columnSearch,this.config=t.config,this.serialization=t.serialization,this.arraySizePredictor=t.arraySizePredictor,this.dateTimeHelper=t.dateTimeHelper,this.arithmeticHelper=t.arithmeticHelper}var t,n,p;
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/return t=e,(n=[{key:"evaluateAst",value:function(e,t){return this.interpreter.evaluateAst(e,t)}},{key:"arraySizeForAst",value:function(e,t){return this.arraySizePredictor.checkArraySizeForAst(e,t)}},{key:"listOfScalarValues",value:function(e,t){var n,r=[],o=f(e);try{for(o.s();!(n=o.n()).done;){var i=n.value,a=this.evaluateAst(i,t);if(a instanceof c.SimpleRangeValue){var s,u=f(a.valuesFromTopLeftCorner());try{for(u.s();!(s=u.n()).done;){var l=s.value;r.push([l,!0])}}catch(e){u.e(e)}finally{u.f()}}else r.push([a,!1])}}catch(e){o.e(e)}finally{o.f()}return r}},{key:"coerceToType",value:function(e,t,n){var o;if(e instanceof c.SimpleRangeValue)switch(t.argumentType){case r.RANGE:case r.ANY:o=e;break;default:var s=Object(u.coerceRangeToScalar)(e,n);if(void 0===s)return;e=s}if(!(e instanceof c.SimpleRangeValue))switch(t.argumentType){case r.INTEGER:case r.NUMBER:var f=this.coerceScalarToNumberOrError(e);if(!Object(l.isExtendedNumber)(f)){o=f;break}var d=Object(l.getRawValue)(f);if(void 0!==t.maxValue&&d>t.maxValue)return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.ValueLarge);if(void 0!==t.minValue&&d<t.minValue)return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.ValueSmall);if(void 0!==t.lessThan&&d>=t.lessThan)return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.ValueLarge);if(void 0!==t.greaterThan&&d<=t.greaterThan)return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.ValueSmall);if(t.argumentType===r.INTEGER&&!Number.isInteger(d))return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.IntegerExpected);o=f;break;case r.STRING:o=Object(u.coerceScalarToString)(e);break;case r.BOOLEAN:o=Object(u.coerceScalarToBoolean)(e);break;case r.SCALAR:case r.NOERROR:case r.ANY:o=e;break;case r.RANGE:if(e instanceof i.CellError)return e;o=Object(u.coerceToRange)(e);break;case r.COMPLEX:return this.arithmeticHelper.coerceScalarToComplex(Object(l.getRawValue)(e))}return t.passSubtype||void 0===o?o:Object(l.getRawValue)(o)}},{key:"metadata",value:function(e){var t=this.constructor.implementedFunctions[e];if(void 0!==t)return t;throw new Error("No metadata for function ".concat(e,"."))}},{key:"returnNumberWrapper",value:function(e,t,n){return void 0!==t&&Object(l.isExtendedNumber)(e)?this.arithmeticHelper.ExtendedNumberFactory(Object(l.getRawValue)(e),{type:t,format:n}):e}}])&&m(t.prototype,n),p&&m(t,p),Object.defineProperty(t,"prototype",{writable:!1}),e}()},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";var r=n(28),o=n(134).filter;r({target:"Array",proto:!0,forced:!n(176)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";n.r(t),n.d(t,"NoSheetWithIdError",(function(){return y})),n.d(t,"NoSheetWithNameError",(function(){return m})),n.d(t,"SheetNameAlreadyTakenError",(function(){return g})),n.d(t,"SheetSizeLimitExceededError",(function(){return v})),n.d(t,"NotAFormulaError",(function(){return E})),n.d(t,"InvalidAddressError",(function(){return b})),n.d(t,"InvalidArgumentsError",(function(){return T})),n.d(t,"SheetsNotEqual",(function(){return C})),n.d(t,"NamedExpressionNameIsAlreadyTakenError",(function(){return w})),n.d(t,"NamedExpressionNameIsInvalidError",(function(){return R})),n.d(t,"NamedExpressionDoesNotExistError",(function(){return O})),n.d(t,"NoOperationToUndoError",(function(){return S})),n.d(t,"NoOperationToRedoError",(function(){return A})),n.d(t,"NothingToPasteError",(function(){return N})),n.d(t,"UnableToParseError",(function(){return k})),n.d(t,"ExpectedValueOfTypeError",(function(){return M})),n.d(t,"ConfigValueEmpty",(function(){return I})),n.d(t,"ConfigValueTooSmallError",(function(){return P})),n.d(t,"ConfigValueTooBigError",(function(){return x})),n.d(t,"ExpectedOneOfValuesError",(function(){return D})),n.d(t,"EvaluationSuspendedError",(function(){return L})),n.d(t,"MissingTranslationError",(function(){return F})),n.d(t,"ProtectedFunctionTranslationError",(function(){return j})),n.d(t,"LanguageNotRegisteredError",(function(){return U})),n.d(t,"LanguageAlreadyRegisteredError",(function(){return H})),n.d(t,"FunctionPluginValidationError",(function(){return B})),n.d(t,"ProtectedFunctionError",(function(){return V})),n.d(t,"SourceLocationHasArrayError",(function(){return W})),n.d(t,"TargetLocationHasArrayError",(function(){return Y})),n.d(t,"NoRelativeAddressesAllowedError",(function(){return G})),n.d(t,"AliasAlreadyExisting",(function(){return z}));n(18),n(0),n(66),n(94),n(12),n(27),n(7),n(3),n(33),n(2),n(4),n(8),n(9),n(10);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(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 i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}function u(e){var t=d();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){var t="function"==typeof Map?new Map:void 0;return(c=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return f(e,arguments,p(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),h(r,e)})(e)}function f(e,t,n){return(f=d()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&h(o,n.prototype),o}).apply(null,arguments)}function d(){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}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var y=function(e){s(n,e);var t=u(n);function n(e){return a(this,n),t.call(this,"There's no sheet with id = ".concat(e))}return i(n)}(c(Error)),m=function(e){s(n,e);var t=u(n);function n(e){return a(this,n),t.call(this,"There's no sheet with name '".concat(e,"'"))}return i(n)}(c(Error)),g=function(e){s(n,e);var t=u(n);function n(e){return a(this,n),t.call(this,"Sheet with name ".concat(e," already exists"))}return i(n)}(c(Error)),v=function(e){s(n,e);var t=u(n);function n(){return a(this,n),t.call(this,"Sheet size limit exceeded")}return i(n)}(c(Error)),E=function(e){s(n,e);var t=u(n);function n(){return a(this,n),t.call(this,"This is not a formula")}return i(n)}(c(Error)),b=function(e){s(n,e);var t=u(n);function n(e){return a(this,n),t.call(this,"Address (row = ".concat(e.row,", col = ").concat(e.col,") is invalid"))}return i(n)}(c(Error)),T=function(e){s(n,e);var t=u(n);function n(e){return a(this,n),t.call(this,"Invalid arguments, expected ".concat(e))}return i(n)}(c(Error)),C=function(e){s(n,e);var t=u(n);function n(e,r){return a(this,n),t.call(this,"Sheets ".concat(e," and ").concat(r," are not equal."))}return i(n)}(c(Error)),w=function(e){s(n,e);var t=u(n);function n(e){return a(this,n),t.call(this,"Name of Named Expression '".concat(e,"' is already present"))}return i(n)}(c(Error)),R=function(e){s(n,e);var t=u(n);function n(e){return a(this,n),t.call(this,"Name of Named Expression '".concat(e,"' is invalid"))}return i(n)}(c(Error)),O=function(e){s(n,e);var t=u(n);function n(e){return a(this,n),t.call(this,"Named Expression '".concat(e,"' does not exist"))}return i(n)}(c(Error)),S=function(e){s(n,e);var t=u(n);function n(){return a(this,n),t.call(this,"There is no operation to undo")}return i(n)}(c(Error)),A=function(e){s(n,e);var t=u(n);function n(){return a(this,n),t.call(this,"There is no operation to redo")}return i(n)}(c(Error)),N=function(e){s(n,e);var t=u(n);function n(){return a(this,n),t.call(this,"There is nothing to paste")}return i(n)}(c(Error));function _(e,t){switch(r(t)){case"function":case"symbol":return t.toString();case"bigint":return"BigInt("+t.toString()+")";default:return t instanceof RegExp?"RegExp("+t.toString()+")":t}}var k=function(e){s(n,e);var t=u(n);function n(e){return a(this,n),t.call(this,"Unable to parse value: ".concat(JSON.stringify(e,_,4)))}return i(n)}(c(Error)),M=function(e){s(n,e);var t=u(n);function n(e,r){return a(this,n),t.call(this,"Expected value of type: ".concat(e," for config parameter: ").concat(r))}return i(n)}(c(Error)),I=function(e){s(n,e);var t=u(n);function n(e){return a(this,n),t.call(this,"Config parameter ".concat(e," cannot be empty."))}return i(n)}(c(Error)),P=function(e){s(n,e);var t=u(n);function n(e,r){return a(this,n),t.call(this,"Config parameter ".concat(e," should be at least ").concat(r))}return i(n)}(c(Error)),x=function(e){s(n,e);var t=u(n);function n(e,r){return a(this,n),t.call(this,"Config parameter ".concat(e," should be at most ").concat(r))}return i(n)}(c(Error)),D=function(e){s(n,e);var t=u(n);function n(e,r){return a(this,n),t.call(this,"Expected one of ".concat(e," for config parameter: ").concat(r))}return i(n)}(c(Error)),L=function(e){s(n,e);var t=u(n);function n(){return a(this,n),t.call(this,"Computations are suspended")}return i(n)}(c(Error)),F=function(e){s(n,e);var t=u(n);function n(e){return a(this,n),t.call(this,"Translation for ".concat(e," is missing in the translation package you're using."))}return i(n)}(c(Error)),j=function(e){s(n,e);var t=u(n);function n(e){return a(this,n),t.call(this,"Cannot register translation for function with id: ".concat(e))}return i(n)}(c(Error)),U=function(e){s(n,e);var t=u(n);function n(){return a(this,n),t.call(this,"Language not registered.")}return i(n)}(c(Error)),H=function(e){s(n,e);var t=u(n);function n(){return a(this,n),t.call(this,"Language already registered.")}return i(n)}(c(Error)),B=function(e){s(n,e);var t=u(n);function n(){return a(this,n),t.apply(this,arguments)}return i(n,null,[{key:"functionNotDeclaredInPlugin",value:function(e,t){return new n("Function with id ".concat(e," not declared in plugin ").concat(t))}},{key:"functionMethodNotFound",value:function(e,t){return new n("Function method ".concat(e," not found in plugin ").concat(t))}}]),n}(c(Error)),V=function(e){s(n,e);var t=u(n);function n(){return a(this,n),t.apply(this,arguments)}return i(n,null,[{key:"cannotRegisterFunctionWithId",value:function(e){return new n("Cannot register function with id ".concat(e))}},{key:"cannotUnregisterFunctionWithId",value:function(e){return new n("Cannot unregister function with id ".concat(e))}},{key:"cannotUnregisterProtectedPlugin",value:function(){return new n("Cannot unregister protected plugin")}}]),n}(c(Error)),W=function(e){s(n,e);var t=u(n);function n(){return a(this,n),t.call(this,"Cannot perform this operation, source location has an array inside.")}return i(n)}(c(Error)),Y=function(e){s(n,e);var t=u(n);function n(){return a(this,n),t.call(this,"Cannot perform this operation, target location has an array inside.")}return i(n)}(c(Error)),G=function(e){s(n,e);var t=u(n);function n(){return a(this,n),t.call(this,"Relative addresses not allowed in named expressions.")}return i(n)}(c(Error)),z=function(e){s(n,e);var t=u(n);function n(e,r){return a(this,n),t.call(this,"Alias id ".concat(e," in plugin ").concat(r," already defined as a function or alias."))}return i(n)}(c(Error))},function(e,t,n){"use strict";var r=n(28),o=n(242).includes,i=n(39),a=n(179);r({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},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.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(747),o=n(433),i=n(295),a=n(748);e.exports=function(e){return r(e)||o(e)||i(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},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)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.r(t),n.d(t,"ErrorMessage",(function(){return i}));
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
var i=o((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}));i.DistinctSigns="Distinct signs.",i.WrongArgNumber="Wrong number of arguments.",i.EmptyArg="Empty function argument.",i.EmptyArray="Empty array not allowed.",i.ArrayDimensions="Array dimensions are not compatible.",i.NoSpaceForArrayResult="No space for array result.",i.ValueSmall="Value too small.",i.ValueLarge="Value too large.",i.BadCriterion="Incorrect criterion.",i.RangeManySheets="Range spans more than one sheet.",i.CellRangeExpected="Cell range expected.",i.WrongDimension="Wrong range dimension.",i.ScalarExpected="Cell range not allowed.",i.NumberCoercion="Value cannot be coerced to number.",i.NumberExpected="Number argument expected.",i.IntegerExpected="Value needs to be an integer.",i.BadMode="Mode not recognized.",i.DateBounds="Date outside of bounds.",i.OutOfSheet="Resulting reference is out of the sheet.",i.WrongType="Wrong type of argument.",i.NaN="NaN or infinite value encountered.",i.EqualLength="Ranges need to be of equal length.",i.Negative="Value cannot be negative.",i.NotBinary="String does not represent a binary number.",i.NotOctal="String does not represent an octal number.",i.NotHex="String does not represent a hexadecimal number.",i.EndStartPeriod="End period needs to be at least start period.",i.CellRefExpected="Cell reference expected.",i.EmptyRange="Empty range not allowed.",i.BadRef="Address is not correct.",i.NumberRange="Number-only range expected.",i.ValueNotFound="Value not found.",i.ValueBaseLarge="Value in base too large.",i.ValueBaseSmall="Value in base too small.",i.ValueBaseLong="Value in base too long.",i.NegativeLength="Length cannot be negative.",i.PatternNotFound="Pattern not found.",i.OneValue="Needs at least one value.",i.TwoValues="Range needs to contain at least two elements.",i.ThreeValues="Range needs to contain at least three elements.",i.IndexBounds="Index out of bounds.",i.IndexLarge="Index too large.",i.Formula="Expected formula.",i.NegativeCount="Count cannot be negative.",i.ParseError="Parsing error.",i.SheetRef="Sheet does not exist.",i.PeriodLong="Period number cannot exceed life length.",i.InvalidDate="Invalid date.",i.BitshiftLong="Result of bitshift is too long.",i.EmptyString="Empty-string argument not allowed.",i.LengthBounds="Length out of bounds.",i.NegativeTime="Time cannot be negative.",i.NoDefault="No default option.",i.Selector="Selector cannot exceed the number of arguments.",i.StartEndDate="Start date needs to be earlier than end date.",i.IncorrectDateTime="String does not represent correct DateTime.",i.CharacterCodeBounds="Character code out of bounds.",i.NonZero="Argument cannot be 0.",i.LessThanOne="Argument cannot be less than 1.",i.WeekendString="Incorrect weekend bitmask string.",i.InvalidRoman="Invalid roman numeral.",i.WrongOrder="Wrong order of values.",i.ComplexNumberExpected="Complex number expected.",i.ShouldBeIorJ="Should be 'i' or 'j'.",i.SizeMismatch="Array dimensions mismatched.",i.FunctionName=function(e){return"Function name ".concat(e," not recognized.")},i.NamedExpressionName=function(e){return"Named expression ".concat(e," not recognized.")},i.LicenseKey=function(e){return"License key is ".concat(e,".")}},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.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.isNumeric=a,t.isNumericLike=function(e){return a(e,[","])},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=isNaN(t)?0:t,parseInt(e*t/100,10)},n(12),n(75),n(37),n(22),n(2),n(3),n(0),n(55),n(4),n(18),n(94),n(66),n(109),n(63);var o=r(n(44)),i=r(n(21));function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,i.default)(e);if("number"===n)return!isNaN(e)&&isFinite(e);if("string"===n){if(0===e.length)return!1;if(1===e.length)return/\d/.test(e);var r=Array.from(new Set(["."].concat((0,o.default)(t)))).map((function(e){return"\\".concat(e)})).join("|");return new RegExp("^[+-]?\\s*(((".concat(r,")?\\d+((").concat(r,")\\d+)?(e[+-]?\\d+)?)|(0x[a-f\\d]+))$"),"i").test(e.trim())}return"object"===n&&!(!e||"number"!=typeof e.valueOf()||e instanceof Date)}},function(e,t,n){"use strict";function r(e){return e&&0===e.length}function o(e){return null==e?[]:Object.keys(e)}function i(e){for(var t=[],n=Object.keys(e),r=0;r<n.length;r++)t.push(e[n[r]]);return t}function a(e,t){for(var n=[],r=o(e),i=0;i<r.length;i++){var a=r[i];n.push(t.call(null,e[a],a))}return n}function s(e,t){for(var n=[],r=0;r<e.length;r++)n.push(t.call(null,e[r],r));return n}function u(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];Array.isArray(r)?t=t.concat(u(r)):t.push(r)}return t}function l(e){return r(e)?void 0:e[0]}function c(e){var t=e&&e.length;return t?e[t-1]:void 0}function f(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t.call(null,e[n],n);else{if(!I(e))throw Error("non exhaustive match");var r=o(e);for(n=0;n<r.length;n++){var i=r[n],a=e[i];t.call(null,a,i)}}}function d(e){return"string"==typeof e}function h(e){return void 0===e}function p(e){return e instanceof Function}function y(e,t){return void 0===t&&(t=1),e.slice(t,e.length)}function m(e,t){return void 0===t&&(t=1),e.slice(0,e.length-t)}function g(e,t){var n=[];if(Array.isArray(e))for(var r=0;r<e.length;r++){var o=e[r];t.call(null,o)&&n.push(o)}return n}function v(e,t){return g(e,(function(e){return!t(e)}))}function E(e,t){for(var n=Object.keys(e),r={},o=0;o<n.length;o++){var i=n[o],a=e[i];t(a)&&(r[i]=a)}return r}function b(e,t){return!!I(e)&&e.hasOwnProperty(t)}function T(e,t){return void 0!==R(e,(function(e){return e===t}))}function C(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t}function w(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function R(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t.call(null,r))return r}}function O(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r];t.call(null,o)&&n.push(o)}return n}function S(e,t,n){for(var r=Array.isArray(e),a=r?e:i(e),s=r?[]:o(e),u=n,l=0;l<a.length;l++)u=t.call(null,u,a[l],r?l:s[l]);return u}function A(e){return v(e,(function(e){return null==e}))}function N(e,t){void 0===t&&(t=function(e){return e});var n=[];return S(e,(function(e,r){var o=t(r);return T(n,o)?e:(n.push(o),e.concat(r))}),[])}function _(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=[null],o=r.concat(t);return Function.bind.apply(e,o)}function k(e){return Array.isArray(e)}function M(e){return e instanceof RegExp}function I(e){return e instanceof Object}function P(e,t){for(var n=0;n<e.length;n++)if(!t(e[n],n))return!1;return!0}function x(e,t){return v(e,(function(e){return T(t,e)}))}function D(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return!0;return!1}function L(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}function F(e,t){var n=C(e);return n.sort((function(e,n){return t(e)-t(n)})),n}function j(e,t){if(e.length!==t.length)throw Error("can't zipObject with different number of keys and values!");for(var n={},r=0;r<e.length;r++)n[e[r]]=t[r];return n}function U(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r++)for(var i=t[r],a=o(i),s=0;s<a.length;s++){var u=a[s];e[u]=i[u]}return e}function H(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r++){var i=t[r];if(!h(i))for(var a=o(i),s=0;s<a.length;s++){var u=a[s];b(e,u)||(e[u]=i[u])}}return e}function B(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return H.apply(null,[{}].concat(e))}function V(e,t){var n={};return f(e,(function(e){var r=t(e),o=n[r];o?o.push(e):n[r]=[e]})),n}function W(e,t){for(var n=w(e),r=o(t),i=0;i<r.length;i++){var a=r[i],s=t[a];n[a]=s}return n}function Y(){}function G(e){return e}function z(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(void 0!==r?r:void 0)}return t}function K(e){console&&console.error&&console.error("Error: "+e)}function X(e){console&&console.warn&&console.warn("Warning: "+e)}function q(){return"function"==typeof Map}function Q(e,t){t.forEach((function(t){var n=t.prototype;Object.getOwnPropertyNames(n).forEach((function(r){if("constructor"!==r){var o=Object.getOwnPropertyDescriptor(n,r);o&&(o.get||o.set)?Object.defineProperty(e.prototype,r,o):e.prototype[r]=t.prototype[r]}}))}))}function $(e){function t(){}t.prototype=e;var n=new t;function r(){return typeof n.bar}return r(),r(),e}function Z(e){return e[e.length-1]}function J(e){var t=(new Date).getTime(),n=e();return{time:(new Date).getTime()-t,value:n}}n.r(t),n.d(t,"isEmpty",(function(){return r})),n.d(t,"keys",(function(){return o})),n.d(t,"values",(function(){return i})),n.d(t,"mapValues",(function(){return a})),n.d(t,"map",(function(){return s})),n.d(t,"flatten",(function(){return u})),n.d(t,"first",(function(){return l})),n.d(t,"last",(function(){return c})),n.d(t,"forEach",(function(){return f})),n.d(t,"isString",(function(){return d})),n.d(t,"isUndefined",(function(){return h})),n.d(t,"isFunction",(function(){return p})),n.d(t,"drop",(function(){return y})),n.d(t,"dropRight",(function(){return m})),n.d(t,"filter",(function(){return g})),n.d(t,"reject",(function(){return v})),n.d(t,"pick",(function(){return E})),n.d(t,"has",(function(){return b})),n.d(t,"contains",(function(){return T})),n.d(t,"cloneArr",(function(){return C})),n.d(t,"cloneObj",(function(){return w})),n.d(t,"find",(function(){return R})),n.d(t,"findAll",(function(){return O})),n.d(t,"reduce",(function(){return S})),n.d(t,"compact",(function(){return A})),n.d(t,"uniq",(function(){return N})),n.d(t,"partial",(function(){return _})),n.d(t,"isArray",(function(){return k})),n.d(t,"isRegExp",(function(){return M})),n.d(t,"isObject",(function(){return I})),n.d(t,"every",(function(){return P})),n.d(t,"difference",(function(){return x})),n.d(t,"some",(function(){return D})),n.d(t,"indexOf",(function(){return L})),n.d(t,"sortBy",(function(){return F})),n.d(t,"zipObject",(function(){return j})),n.d(t,"assign",(function(){return U})),n.d(t,"assignNoOverwrite",(function(){return H})),n.d(t,"defaults",(function(){return B})),n.d(t,"groupBy",(function(){return V})),n.d(t,"merge",(function(){return W})),n.d(t,"NOOP",(function(){return Y})),n.d(t,"IDENTITY",(function(){return G})),n.d(t,"packArray",(function(){return z})),n.d(t,"PRINT_ERROR",(function(){return K})),n.d(t,"PRINT_WARNING",(function(){return X})),n.d(t,"isES2015MapSupported",(function(){return q})),n.d(t,"applyMixins",(function(){return Q})),n.d(t,"toFastProperties",(function(){return $})),n.d(t,"peek",(function(){return Z})),n.d(t,"timer",(function(){return J}))},function(e,t,n){"use strict";var r=n(28),o=n(36),i=n(248),a=n(89),s=n(71),u=n(250),l=o("".indexOf);r({target:"String",proto:!0,forced:!u("includes")},{includes:function(e){return!!~l(s(a(this)),s(i(e)),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_KEY=t.BasePlugin=void 0;var r=n(897);t.PLUGIN_KEY=r.PLUGIN_KEY,t.BasePlugin=r.BasePlugin},function(e,t,n){"use strict";n.r(t),n.d(t,"EmptyValue",(function(){return d})),n.d(t,"getRawValue",(function(){return h})),n.d(t,"RichNumber",(function(){return p})),n.d(t,"cloneNumber",(function(){return y})),n.d(t,"DateNumber",(function(){return g})),n.d(t,"CurrencyNumber",(function(){return v})),n.d(t,"TimeNumber",(function(){return E})),n.d(t,"DateTimeNumber",(function(){return b})),n.d(t,"PercentNumber",(function(){return T})),n.d(t,"isExtendedNumber",(function(){return C})),n.d(t,"NumberType",(function(){return m})),n.d(t,"getTypeOfExtendedNumber",(function(){return w})),n.d(t,"getFormatOfExtendedNumber",(function(){return R})),n.d(t,"getTypeFormatOfExtendedNumber",(function(){return O}));n(8),n(9),n(0),n(27),n(7),n(10),n(3),n(2),n(4);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(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=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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 f(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var d=Symbol("Empty value");function h(e){return e instanceof p?e.val:e}var p=function(){function e(t,n){l(this,e),this.val=t,this.format=n}return f(e,[{key:"fromNumber",value:function(e){return new this.constructor(e)}}]),e}();function y(e,t){if("number"==typeof e)return t;var n=e.fromNumber(t);return n.format=e.format,n}var m,g=function(e){o(n,e);var t=a(n);function n(){return l(this,n),t.apply(this,arguments)}return f(n,[{key:"getDetailedType",value:function(){return m.NUMBER_DATE}}]),n}(p),v=function(e){o(n,e);var t=a(n);function n(){return l(this,n),t.apply(this,arguments)}return f(n,[{key:"getDetailedType",value:function(){return m.NUMBER_CURRENCY}}]),n}(p),E=function(e){o(n,e);var t=a(n);function n(){return l(this,n),t.apply(this,arguments)}return f(n,[{key:"getDetailedType",value:function(){return m.NUMBER_TIME}}]),n}(p),b=function(e){o(n,e);var t=a(n);function n(){return l(this,n),t.apply(this,arguments)}return f(n,[{key:"getDetailedType",value:function(){return m.NUMBER_DATETIME}}]),n}(p),T=function(e){o(n,e);var t=a(n);function n(){return l(this,n),t.apply(this,arguments)}return f(n,[{key:"getDetailedType",value:function(){return m.NUMBER_PERCENT}}]),n}(p);function C(e){return"number"==typeof e||e instanceof p}function w(e){return e instanceof p?e.getDetailedType():m.NUMBER_RAW}function R(e){return e instanceof p?e.format:void 0}function O(e){return e instanceof p?{type:e.getDetailedType(),format:e.format}:{type:m.NUMBER_RAW}}!function(e){e.NUMBER_RAW="NUMBER_RAW",e.NUMBER_DATE="NUMBER_DATE",e.NUMBER_TIME="NUMBER_TIME",e.NUMBER_DATETIME="NUMBER_DATETIME",e.NUMBER_CURRENCY="NUMBER_CURRENCY",e.NUMBER_PERCENT="NUMBER_PERCENT"}(m||(m={}))},function(e,t,n){"use strict";var r=n(69),o=n(29),i=n(36),a=n(208),s=n(96),u=n(62),l=n(258),c=n(120),f=n(168),d=n(321),h=n(39),p=n(150).f,y=n(112).f,m=n(84).f,g=n(352),v=n(353).trim,E=o.Number,b=E.prototype,T=o.TypeError,C=i("".slice),w=i("".charCodeAt),R=function(e){var t=d(e,"number");return"bigint"==typeof t?t:O(t)},O=function(e){var t,n,r,o,i,a,s,u,l=d(e,"number");if(f(l))throw T("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(l=v(l),43===(t=w(l,0))||45===t){if(88===(n=w(l,2))||120===n)return NaN}else if(48===t){switch(w(l,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+l}for(a=(i=C(l,2)).length,s=0;s<a;s++)if((u=w(i,s))<48||u>o)return NaN;return parseInt(i,r)}return+l};if(a("Number",!E(" 0o1")||!E("0b1")||E("+0x1"))){for(var S,A=function(e){var t=arguments.length<1?0:E(R(e)),n=this;return c(b,n)&&h((function(){g(n)}))?l(Object(t),n,A):t},N=r?p(E):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),_=0;N.length>_;_++)u(E,S=N[_])&&!u(A,S)&&m(A,S,y(E,S));A.prototype=b,b.constructor=A,s(o,"Number",A,{constructor:!0})}},function(e,t,n){var r=n(28),o=n(90),i=n(174);r({target:"Object",stat:!0,forced:n(39)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},function(e,t,n){"use strict";var r=n(28),o=n(29),i=n(151),a=n(122),s=n(97),u=n(90),l=n(255),c=n(152),f=n(176)("splice"),d=o.TypeError,h=Math.max,p=Math.min;r({target:"Array",proto:!0,forced:!f},{splice:function(e,t){var n,r,o,f,y,m,g=u(this),v=s(g),E=i(e,v),b=arguments.length;if(0===b?n=r=0:1===b?(n=0,r=v-E):(n=b-2,r=p(h(a(t),0),v-E)),v+n-r>9007199254740991)throw d("Maximum allowed length exceeded");for(o=l(g,r),f=0;f<r;f++)(y=E+f)in g&&c(o,f,g[y]);if(o.length=r,n<r){for(f=E;f<v-r;f++)m=f+n,(y=f+r)in g?g[m]=g[y]:delete g[m];for(f=v;f>v-r+n;f--)delete g[f-1]}else if(n>r)for(f=v-r;f>E;f--)m=f+n-1,(y=f+r-1)in g?g[m]=g[y]:delete g[m];for(f=0;f<n;f++)g[f+E]=arguments[f+2];return g.length=v-r+n,o}})},function(e,t,n){n(663)},function(e,t,n){"use strict";n.r(t),n.d(t,"AbstractProduction",(function(){return s})),n.d(t,"NonTerminal",(function(){return u})),n.d(t,"Rule",(function(){return l})),n.d(t,"Flat",(function(){return c})),n.d(t,"Option",(function(){return f})),n.d(t,"RepetitionMandatory",(function(){return d})),n.d(t,"RepetitionMandatoryWithSeparator",(function(){return h})),n.d(t,"Repetition",(function(){return p})),n.d(t,"RepetitionWithSeparator",(function(){return y})),n.d(t,"Alternation",(function(){return m})),n.d(t,"Terminal",(function(){return g})),n.d(t,"serializeGrammar",(function(){return v})),n.d(t,"serializeProduction",(function(){return E}));var r,o=n(48),i=n(95),a=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(){function e(e){this.definition=e}return e.prototype.accept=function(e){e.visit(this),Object(o.forEach)(this.definition,(function(t){t.accept(e)}))},e}(),u=function(e){function t(t){var n=e.call(this,[])||this;return n.idx=1,Object(o.assign)(n,Object(o.pick)(t,(function(e){return void 0!==e}))),n}return a(t,e),Object.defineProperty(t.prototype,"definition",{get:function(){return void 0!==this.referencedRule?this.referencedRule.definition:[]},set:function(e){},enumerable:!0,configurable:!0}),t.prototype.accept=function(e){e.visit(this)},t}(s),l=function(e){function t(t){var n=e.call(this,t.definition)||this;return n.orgText="",Object(o.assign)(n,Object(o.pick)(t,(function(e){return void 0!==e}))),n}return a(t,e),t}(s),c=function(e){function t(t){var n=e.call(this,t.definition)||this;return n.ignoreAmbiguities=!1,Object(o.assign)(n,Object(o.pick)(t,(function(e){return void 0!==e}))),n}return a(t,e),t}(s),f=function(e){function t(t){var n=e.call(this,t.definition)||this;return n.idx=1,Object(o.assign)(n,Object(o.pick)(t,(function(e){return void 0!==e}))),n}return a(t,e),t}(s),d=function(e){function t(t){var n=e.call(this,t.definition)||this;return n.idx=1,Object(o.assign)(n,Object(o.pick)(t,(function(e){return void 0!==e}))),n}return a(t,e),t}(s),h=function(e){function t(t){var n=e.call(this,t.definition)||this;return n.idx=1,Object(o.assign)(n,Object(o.pick)(t,(function(e){return void 0!==e}))),n}return a(t,e),t}(s),p=function(e){function t(t){var n=e.call(this,t.definition)||this;return n.idx=1,Object(o.assign)(n,Object(o.pick)(t,(function(e){return void 0!==e}))),n}return a(t,e),t}(s),y=function(e){function t(t){var n=e.call(this,t.definition)||this;return n.idx=1,Object(o.assign)(n,Object(o.pick)(t,(function(e){return void 0!==e}))),n}return a(t,e),t}(s),m=function(e){function t(t){var n=e.call(this,t.definition)||this;return n.idx=1,n.ignoreAmbiguities=!1,n.hasPredicates=!1,Object(o.assign)(n,Object(o.pick)(t,(function(e){return void 0!==e}))),n}return a(t,e),t}(s),g=function(){function e(e){this.idx=1,Object(o.assign)(this,Object(o.pick)(e,(function(e){return void 0!==e})))}return e.prototype.accept=function(e){e.visit(this)},e}();function v(e){return Object(o.map)(e,E)}function E(e){function t(e){return Object(o.map)(e,E)}if(e instanceof u)return{type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(e instanceof c)return{type:"Flat",definition:t(e.definition)};if(e instanceof f)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof d)return{type:"RepetitionMandatory",name:e.name,idx:e.idx,definition:t(e.definition)};if(e instanceof h)return{type:"RepetitionMandatoryWithSeparator",name:e.name,idx:e.idx,separator:E(new g({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof y)return{type:"RepetitionWithSeparator",name:e.name,idx:e.idx,separator:E(new g({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof p)return{type:"Repetition",name:e.name,idx:e.idx,definition:t(e.definition)};if(e instanceof m)return{type:"Alternation",name:e.name,idx:e.idx,definition:t(e.definition)};if(e instanceof g){var n={type:"Terminal",name:e.terminalType.name,label:Object(i.tokenLabel)(e.terminalType),idx:e.idx},r=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(n.pattern=Object(o.isRegExp)(r)?r.source:r),n}if(e instanceof l)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}},function(e,t,n){"use strict";t.__esModule=!0,t.conditions=void 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}},n(18);var r={};t.conditions=r},function(e,t,n){var r=n(29),o=n(149),i=n(62),a=n(204),s=n(147),u=n(322),l=o("wks"),c=r.Symbol,f=c&&c.for,d=u?c:c&&c.withoutSetter||a;e.exports=function(e){if(!i(l,e)||!s&&"string"!=typeof l[e]){var t="Symbol."+e;s&&i(c,e)?l[e]=c[e]:l[e]=u&&f?f(t):d(t)}return l[e]}},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0,t.getListenersCounter=function(){return u},n(54);var o=r(n(5)),i=r(n(6)),a=n(126),s=n(81),u=0;function l(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,l(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),u+=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),u-=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];e&&n.eventManager!==this||(this.context.eventListeners.splice(t,1),n.element.removeEventListener(n.event,n.callbackProxy,n.options),u-=1)}}},{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){return"function"==typeof e}},function(e,t,n){"use strict";var r=n(132),o=n(70),i=n(36),a=n(215),s=n(249),u=n(65),l=n(89),c=n(669),f=n(261),d=n(131),h=n(71),p=n(129),y=n(246),m=n(216),g=n(213),v=n(254),E=n(39),b=v.UNSUPPORTED_Y,T=Math.min,C=[].push,w=i(/./.exec),R=i(C),O=i("".slice);a("split",(function(e,t,n){var i;return i="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 i=h(l(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!s(e))return o(t,i,e,a);for(var u,c,f,d=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,v=new RegExp(e.source,p+"g");(u=o(g,v,i))&&!((c=v.lastIndex)>m&&(R(d,O(i,m,u.index)),u.length>1&&u.index<i.length&&r(C,d,y(u,1)),f=u[0].length,m=c,d.length>=a));)v.lastIndex===u.index&&v.lastIndex++;return m===i.length?!f&&w(v,"")||R(d,""):R(d,O(i,m)),d.length>a?y(d,0,a):d}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:o(t,this,e,n)}:t,[function(t,n){var r=l(this),a=null==t?void 0:p(t,e);return a?o(a,t,r,n):o(i,h(r),t,n)},function(e,r){var o=u(this),a=h(e),s=n(i,o,a,r,i!==t);if(s.done)return s.value;var l=c(o,RegExp),p=o.unicode,y=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(b?"g":"y"),g=new l(b?"^(?:"+o.source+")":o,y),v=void 0===r?4294967295:r>>>0;if(0===v)return[];if(0===a.length)return null===m(g,a)?[a]:[];for(var E=0,C=0,w=[];C<a.length;){g.lastIndex=b?0:C;var S,A=m(g,b?O(a,C):a);if(null===A||(S=T(d(g.lastIndex+(b?C:0)),a.length))===E)C=f(a,C,p);else{if(R(w,O(a,E,C)),w.length===v)return w;for(var N=1;N<=A.length-1;N++)if(R(w,A[N]),w.length===v)return w;C=E=S}}return R(w,O(a,E)),w}]}),!!E((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]})),b)},function(e,t,n){var r=n(36),o=n(90),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},function(e,t,n){"use strict";var r=n(132),o=n(70),i=n(36),a=n(215),s=n(39),u=n(65),l=n(60),c=n(122),f=n(131),d=n(71),h=n(89),p=n(261),y=n(129),m=n(671),g=n(216),v=n(58)("replace"),E=Math.max,b=Math.min,T=i([].concat),C=i([].push),w=i("".indexOf),R=i("".slice),O="$0"==="a".replace(/./,"$0"),S=!!/./[v]&&""===/./[v]("a","$0");a("replace",(function(e,t,n){var i=S?"$":"$0";return[function(e,n){var r=h(this),i=null==e?void 0:y(e,v);return i?o(i,e,r,n):o(t,d(r),e,n)},function(e,o){var a=u(this),s=d(e);if("string"==typeof o&&-1===w(o,i)&&-1===w(o,"$<")){var h=n(t,a,s,o);if(h.done)return h.value}var y=l(o);y||(o=d(o));var v=a.global;if(v){var O=a.unicode;a.lastIndex=0}for(var S=[];;){var A=g(a,s);if(null===A)break;if(C(S,A),!v)break;""===d(A[0])&&(a.lastIndex=p(s,f(a.lastIndex),O))}for(var N,_="",k=0,M=0;M<S.length;M++){for(var I=d((A=S[M])[0]),P=E(b(c(A.index),s.length),0),x=[],D=1;D<A.length;D++)C(x,void 0===(N=A[D])?N:String(N));var L=A.groups;if(y){var F=T([I],x,P,s);void 0!==L&&C(F,L);var j=d(r(o,void 0,F))}else j=m(I,s,P,x,L,o);P>=k&&(_+=R(s,k,P)+j,k=P+I.length)}return _+R(s,k)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!O||S)},function(e,t,n){var r=n(60);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},function(e,t,n){var r=n(29),o=n(64),i=r.String,a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not an object")}},function(e,t,n){"use strict";var r=n(171).PROPER,o=n(96),i=n(65),a=n(71),s=n(39),u=n(355),l=RegExp.prototype.toString,c=s((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),f=r&&"toString"!=l.name;(c||f)&&o(RegExp.prototype,"toString",(function(){var e=i(this);return"/"+a(e.source)+"/"+a(u(e))}),{unsafe:!0})},function(e,t,n){n(28)({target:"Number",stat:!0},{isInteger:n(691)})},function(e,t,n){"use strict";t.__esModule=!0,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)}}([])},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.fastCall=function(e,t,n,r,i,a,s,u){if((0,o.isDefined)(u))return e.call(t,n,r,i,a,s,u);if((0,o.isDefined)(s))return e.call(t,n,r,i,a,s);if((0,o.isDefined)(a))return e.call(t,n,r,i,a);if((0,o.isDefined)(i))return e.call(t,n,r,i);if((0,o.isDefined)(r))return e.call(t,n,r);if((0,o.isDefined)(n))return e.call(t,n);return e.call(t)},t.isFunction=function(e){return"function"==typeof e},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.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.throttle=i,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=i(e,t),o=n;function a(){o=n}function s(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return o?(o-=1,e.apply(this,n)):r.apply(this,n)}return s.clearHits=a,s},n(76),n(13),n(18),n(138);var r=n(20),o=n(32);function i(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),u=0;u<a;u++)s[u]=arguments[u];var l=Date.now(),c=!1;r.lastCallThrottled=!0,n||(n=l,c=!0);var f=t-(l-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}),f)),r}return i}},function(e,t,n){var r=n(39);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){var r=n(165),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},function(e,t,n){var r=n(29),o=n(210),i=r.String;e.exports=function(e){if("Symbol"===o(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},function(e,t,n){"use strict";n.r(t);var r=n(98);n.d(t,"cellAddressFromString",(function(){return r.cellAddressFromString})),n.d(t,"simpleCellAddressFromString",(function(){return r.simpleCellAddressFromString})),n.d(t,"simpleCellAddressToString",(function(){return r.simpleCellAddressToString})),n.d(t,"simpleCellRangeFromString",(function(){return r.simpleCellRangeFromString})),n.d(t,"simpleCellRangeToString",(function(){return r.simpleCellRangeToString}));var o=n(217);n.d(t,"CellAddress",(function(){return o.CellAddress}));var i=n(363);n.d(t,"ParserWithCaching",(function(){return i.ParserWithCaching}));var a=n(366);n.d(t,"collectDependencies",(function(){return a.collectDependencies}));var s=n(181);n.d(t,"buildLexerConfig",(function(){return s.buildLexerConfig}));var u=n(269);n.d(t,"FormulaLexer",(function(){return u.FormulaLexer}));var l=n(100);n.d(t,"AstNodeType",(function(){return l.AstNodeType})),n.d(t,"ParsingErrorType",(function(){return l.ParsingErrorType})),n.d(t,"buildProcedureAst",(function(){return l.buildProcedureAst})),n.d(t,"buildCellRangeAst",(function(){return l.buildCellRangeAst})),n.d(t,"buildParsingErrorAst",(function(){return l.buildParsingErrorAst})),n.d(t,"buildCellErrorAst",(function(){return l.buildCellErrorAst}));var c=n(270);n.d(t,"Unparser",(function(){return c.Unparser}));var f=n(155);n.d(t,"AddressDependency",(function(){return f.AddressDependency})),n.d(t,"CellRangeDependency",(function(){return f.CellRangeDependency})),n.d(t,"ColumnRangeDependency",(function(){return f.ColumnRangeDependency})),n.d(t,"RowRangeDependency",(function(){return f.RowRangeDependency})),n.d(t,"NamedExpressionDependency",(function(){return f.NamedExpressionDependency}))},function(e,t,n){"use strict";var r=n(28),o=n(36),i=n(148),a=n(90),s=n(97),u=n(71),l=n(39),c=n(687),f=n(153),d=n(688),h=n(689),p=n(169),y=n(690),m=[],g=o(m.sort),v=o(m.push),E=l((function(){m.sort(void 0)})),b=l((function(){m.sort(null)})),T=f("sort"),C=!l((function(){if(p)return p<70;if(!(d&&d>3)){if(h)return!0;if(y)return y<603;var e,t,n,r,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)m.push({k:t+r,v:n})}for(m.sort((function(e,t){return t.v-e.v})),r=0;r<m.length;r++)t=m[r].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));r({target:"Array",proto:!0,forced:E||!b||!T||!C},{sort:function(e){void 0!==e&&i(e);var t=a(this);if(C)return void 0===e?g(t):g(t,e);var n,r,o=[],l=s(t);for(r=0;r<l;r++)r in t&&v(o,t[r]);for(c(o,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:u(t)>u(n)?1:-1}}(e)),n=o.length,r=0;r<n;)t[r]=o[r++];for(;r<l;)delete t[r++];return t}})},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0,n(3),n(33),n(0),n(2),n(4),n(35),n(54);var o,i=r(n(5)),a=r(n(6)),s=r(n(79)),u=n(20),l=n(17),c=n(91),f=n(88),d=n(80),h=n(68),p=["afterCellMetaReset","afterChange","afterContextMenuDefaultOptions","beforeContextMenuSetItems","afterDropdownMenuDefaultOptions","beforeDropdownMenuSetItems","afterContextMenuHide","beforeContextMenuShow","afterContextMenuShow","afterCopyLimit","beforeCreateCol","afterCreateCol","beforeCreateRow","afterCreateRow","afterDeselect","afterDestroy","afterDocumentKeyDown","afterDrawSelection","beforeRemoveCellClassNames","afterGetCellMeta","afterGetColHeader","afterGetRowHeader","afterInit","afterLoadData","afterUpdateData","afterMomentumScroll","afterOnCellCornerMouseDown","afterOnCellCornerDblClick","afterOnCellMouseDown","afterOnCellMouseUp","afterOnCellContextMenu","afterOnCellMouseOver","afterOnCellMouseOut","afterRemoveCol","afterRemoveRow","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","beforeUpdateData","beforeKeyDown","beforeOnCellMouseDown","beforeOnCellMouseUp","beforeOnCellContextMenu","beforeOnCellMouseOver","beforeOnCellMouseOut","beforeRemoveCol","beforeRemoveRow","beforeViewRender","afterViewRender","beforeRender","afterRender","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","afterFormulasValuesUpdate","afterNamedExpressionAdded","afterNamedExpressionRemoved","afterSheetAdded","afterSheetRenamed","afterSheetRemoved","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"],y=(0,d.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.']))),m=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([["beforeAutofillInsidePopulate",'The plugin hook "beforeAutofillInsidePopulate" is deprecated and will be removed in the next major release.']]),v=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,u.arrayEach)(p,(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,u.arrayEach)(t,(function(t){return n.add(e,t,r)}));else{m.has(e)&&(0,f.warn)((0,c.substitute)(y,{hookName:e,removedInVersion:m.get(e)})),g.has(e)&&(0,f.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,u.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,u.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 u=this.globalBucket[t],l=u?u.length:0,c=0;if(l)for(;c<l;)if(u[c]&&!u[c].skip){var f=(0,h.fastCall)(u[c],e,n,r,o,i,a,s);void 0!==f&&(n=f),u[c]&&u[c].runOnce&&this.remove(t,u[c]),c+=1}else c+=1;var d=this.getBucket(e)[t],p=d?d.length:0,y=0;if(p)for(;y<p;)if(d[y]&&!d[y].skip){var m=(0,h.fastCall)(d[y],e,n,r,o,i,a,s);void 0!==m&&(n=m),d[y]&&d[y].runOnce&&this.remove(t,d[y],e),y+=1}else y+=1;return n}},{key:"destroy",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,l.objectEach)(this.getBucket(e),(function(e,t,n){return n[t].length=0}))}},{key:"register",value:function(e){this.isRegistered(e)||p.push(e)}},{key:"deregister",value:function(e){this.isRegistered(e)&&p.splice(p.indexOf(e),1)}},{key:"isDeprecated",value:function(e){return g.has(e)||m.has(e)}},{key:"isRegistered",value:function(e){return p.indexOf(e)>=0}},{key:"getRegistered",value:function(){return p}}],[{key:"getSingleton",value:function(){return E}}]),e}(),E=new v;var b=v;t.default=b},function(e,t,n){"use strict";var r=n(28),o=n(36),i=n(167),a=n(93),s=n(153),u=o([].join),l=i!=Object,c=s("join",",");r({target:"Array",proto:!0,forced:l||!c},{join:function(e){return u(a(this),void 0===e?",":e)}})},function(e,t,n){n(749),n(750)},function(e,t,n){"use strict";n.r(t),n.d(t,"END_OF_FILE",(function(){return T})),n.d(t,"DEFAULT_PARSER_CONFIG",(function(){return w})),n.d(t,"DEFAULT_RULE_CONFIG",(function(){return R})),n.d(t,"ParserDefinitionErrorType",(function(){return C})),n.d(t,"EMPTY_ALT",(function(){return O})),n.d(t,"Parser",(function(){return S})),n.d(t,"CstParser",(function(){return A})),n.d(t,"EmbeddedActionsParser",(function(){return N}));var r,o=n(48),i=n(672),a=n(95),s=n(267),u=n(136),l=n(185),c=n(360),f=n(675),d=n(676),h=n(678),p=n(679),y=n(680),m=n(681),g=n(682),v=n(683),E=n(684),b=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),T=Object(a.createTokenInstance)(a.EOF,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(T);var C,w=Object.freeze({recoveryEnabled:!1,maxLookahead:4,ignoredIssues:{},dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:u.defaultParserErrorProvider,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),R=Object.freeze({recoveryValueFunc:function(){},resyncEnabled:!0});function O(e){return void 0===e&&(e=void 0),function(){return e}}!function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.INVALID_NESTED_RULE_NAME=10]="INVALID_NESTED_RULE_NAME",e[e.DUPLICATE_NESTED_NAME=11]="DUPLICATE_NESTED_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=12]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=13]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=14]="TOO_MANY_ALTS"}(C||(C={}));var S=function(){function e(e,t){void 0===t&&(t=w),this.ignoredIssues=w.ignoredIssues,this.definitionErrors=[],this.selfAnalysisDone=!1;this.initErrorHandler(t),this.initLexerAdapter(),this.initLooksAhead(t),this.initRecognizerEngine(e,t),this.initRecoverable(t),this.initTreeBuilder(t),this.initContentAssist(),this.initGastRecorder(t),this.initPerformanceTracer(t),Object(o.has)(t,"ignoredIssues")&&t.ignoredIssues!==w.ignoredIssues&&Object(o.PRINT_WARNING)("The <ignoredIssues> IParserConfig property is soft-deprecated and will be removed in future versions.\n\tPlease use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead."),this.ignoredIssues=Object(o.has)(t,"ignoredIssues")?t.ignoredIssues:w.ignoredIssues,this.skipValidations=Object(o.has)(t,"skipValidations")?t.skipValidations:w.skipValidations}return e.performSelfAnalysis=function(e){e.performSelfAnalysis()},e.prototype.performSelfAnalysis=function(){var t=this;this.TRACE_INIT("performSelfAnalysis",(function(){var n;t.selfAnalysisDone=!0;var r=t.className;t.TRACE_INIT("toFastProps",(function(){Object(o.toFastProperties)(t)})),t.TRACE_INIT("Grammar Recording",(function(){try{t.enableRecording(),Object(o.forEach)(t.definedRulesNames,(function(e){var n=t[e].originalGrammarAction,r=void 0;t.TRACE_INIT(e+" Rule",(function(){r=t.topLevelRuleRecord(e,n)})),t.gastProductionsCache[e]=r}))}finally{t.disableRecording()}}));var a=[];if(t.TRACE_INIT("Grammar Resolving",(function(){a=Object(l.resolveGrammar)({rules:Object(o.values)(t.gastProductionsCache)}),t.definitionErrors.push.apply(t.definitionErrors,a)})),t.TRACE_INIT("Grammar Validations",(function(){if(Object(o.isEmpty)(a)&&!1===t.skipValidations){var e=Object(l.validateGrammar)({rules:Object(o.values)(t.gastProductionsCache),maxLookahead:t.maxLookahead,tokenTypes:Object(o.values)(t.tokensMap),ignoredIssues:t.ignoredIssues,errMsgProvider:u.defaultGrammarValidatorErrorProvider,grammarName:r});t.definitionErrors.push.apply(t.definitionErrors,e)}})),Object(o.isEmpty)(t.definitionErrors)&&(t.recoveryEnabled&&t.TRACE_INIT("computeAllProdsFollows",(function(){var e=Object(i.computeAllProdsFollows)(Object(o.values)(t.gastProductionsCache));t.resyncFollows=e})),t.TRACE_INIT("ComputeLookaheadFunctions",(function(){t.preComputeLookaheadFunctions(Object(o.values)(t.gastProductionsCache))}))),t.TRACE_INIT("expandAllNestedRuleNames",(function(){var e=Object(s.expandAllNestedRuleNames)(Object(o.values)(t.gastProductionsCache),t.fullRuleNameToShort);t.allRuleNames=e.allRuleNames})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!Object(o.isEmpty)(t.definitionErrors))throw n=Object(o.map)(t.definitionErrors,(function(e){return e.message})),new Error("Parser Definition Errors detected:\n "+n.join("\n-------------------------------\n"))}))},e.DEFER_DEFINITION_ERRORS_HANDLING=!1,e}();Object(o.applyMixins)(S,[c.Recoverable,f.LooksAhead,d.TreeBuilder,h.LexerAdapter,y.RecognizerEngine,p.RecognizerApi,m.ErrorHandler,g.ContentAssist,v.GastRecorder,E.PerformanceTracer]);var A=function(e){function t(t,n){void 0===n&&(n=w);var r=Object(o.cloneObj)(n);return r.outputCst=!0,e.call(this,t,r)||this}return b(t,e),t}(S),N=function(e){function t(t,n){void 0===n&&(n=w);var r=Object(o.cloneObj)(n);return r.outputCst=!1,e.call(this,t,r)||this}return b(t,e),t}(S)},function(e,t,n){"use strict";n.r(t),n.d(t,"SimpleRangeValue",(function(){return c}));n(2),n(3),n(4),n(13),n(0),n(25),n(22),n(12),n(8),n(9),n(10),n(85);var r=n(124),o=n(24),i=n(45),a=n(51);function s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return u(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 u(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function u(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 l(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)}}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
var c=function(){function e(t,n,o,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._data=t,this.range=n,this.dependencyGraph=o,this._hasOnlyNumbers=i,this.size=void 0===t?new r.ArraySize(n.effectiveWidth(o),n.effectiveHeight(o)):new r.ArraySize(t[0].length,t.length)}var t,n,u;return t=e,u=[{key:"fromRange",value:function(t,n,r){return new e(t,n,r,!0)}},{key:"onlyNumbers",value:function(t){return new e(t,void 0,void 0,!0)}},{key:"onlyValues",value:function(t){return new e(t,void 0,void 0,void 0)}},{key:"onlyRange",value:function(t,n){return new e(void 0,t,n,void 0)}},{key:"fromScalar",value:function(t){return new e([[t]],void 0,void 0,void 0)}}],(n=[{key:"data",get:function(){return this.ensureThatComputed(),this._data}},{key:"isAdHoc",value:function(){return void 0===this.range}},{key:"width",value:function(){return this.size.width}},{key:"height",value:function(){return this.size.height}},{key:"valuesFromTopLeftCorner",value:function(){this.ensureThatComputed();for(var e=[],t=0;t<this._data.length;t++)for(var n=0;n<this._data[0].length;n++)e.push(this._data[t][n]);return e}},{key:"effectiveAddressesFromData",value:regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=0;case 1:if(!(n<this.data.length)){e.next=13;break}r=this.data[n],i=0;case 4:if(!(i<r.length)){e.next=10;break}return e.next=7,Object(o.simpleCellAddress)(t.sheet,t.col+i,t.row+n);case 7:++i,e.next=4;break;case 10:++n,e.next=1;break;case 13:case"end":return e.stop()}}),e,this)}))},{key:"entriesFromTopLeftCorner",value:regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.ensureThatComputed(),n=0;case 2:if(!(n<this.size.height)){e.next=13;break}r=0;case 4:if(!(r<this.size.width)){e.next=10;break}return e.next=7,[this._data[n][r],Object(o.simpleCellAddress)(t.sheet,t.col+r,t.row+n)];case 7:++r,e.next=4;break;case 10:++n,e.next=2;break;case 13:case"end":return e.stop()}}),e,this)}))},{key:"iterateValuesFromTopLeftCorner",value:regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this.valuesFromTopLeftCorner(),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"numberOfElements",value:function(){return this.size.width*this.size.height}},{key:"hasOnlyNumbers",value:function(){if(void 0===this._hasOnlyNumbers){this._hasOnlyNumbers=!0;var e,t=s(this.data);try{for(t.s();!(e=t.n()).done;){var n,r=s(e.value);try{for(r.s();!(n=r.n()).done;)if("number"!=typeof n.value)return this._hasOnlyNumbers=!1,!1}catch(e){r.e(e)}finally{r.f()}}}catch(e){t.e(e)}finally{t.f()}}return this._hasOnlyNumbers}},{key:"rawNumbers",value:function(){return this._data}},{key:"rawData",value:function(){var e;return this.ensureThatComputed(),null!==(e=this._data)&&void 0!==e?e:[]}},{key:"sameDimensionsAs",value:function(e){return this.width()===e.width()&&this.height()===e.height()}},{key:"ensureThatComputed",value:function(){var t=this;void 0===this._data&&(this._hasOnlyNumbers=!0,this._data=this.range.addressesArrayMap(this.dependencyGraph,(function(n){var r=t.dependencyGraph.getCellValue(n);return r instanceof e?(t._hasOnlyNumbers=!1,new o.CellError(o.ErrorType.VALUE,i.ErrorMessage.ScalarExpected)):(Object(a.isExtendedNumber)(r)||(t._hasOnlyNumbers=!1),r)})))}}])&&l(t.prototype,n),u&&l(t,u),Object.defineProperty(t,"prototype",{writable:!1}),e}()},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.__esModule=!0,e.exports.default=e.exports},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(12),n(63),n(109);var r=n(20)},function(e,t,n){"use strict";t.__esModule=!0,t.isImmediatePropagationStopped=function(e){return!1===e.isImmediatePropagationEnabled},t.isLeftClick=function(e){return 0===e.button},t.isRightClick=function(e){return 2===e.button},t.stopImmediatePropagation=function(e){e.isImmediatePropagationEnabled=!1,e.cancelBubble=!0}},function(e,t,n){"use strict";n(0),n(26),n(53),t.__esModule=!0;var r={IndexMapper:!0,getRegisteredMapsCounter:!0,getIncreasedIndexes:!0,getDecreasedIndexes:!0,alterUtilsFactory:!0};t.getRegisteredMapsCounter=t.getIncreasedIndexes=t.getDecreasedIndexes=t.alterUtilsFactory=t.IndexMapper=void 0;var o=n(801);t.IndexMapper=o.IndexMapper;var i=n(305);t.getRegisteredMapsCounter=i.getRegisteredMapsCounter;var a=n(590);t.getIncreasedIndexes=a.getIncreasedIndexes,t.getDecreasedIndexes=a.getDecreasedIndexes,t.alterUtilsFactory=a.alterUtilsFactory;var s=n(588);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){var r=n(28),o=n(69),i=n(327),a=n(93),s=n(112),u=n(152);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),o=s.f,l=i(r),c={},f=0;l.length>f;)void 0!==(n=o(r,t=l[f++]))&&u(c,t,n);return c}})},function(e,t,n){var r=n(29),o=n(69),i=n(323),a=n(324),s=n(65),u=n(203),l=r.TypeError,c=Object.defineProperty,f=Object.getOwnPropertyDescriptor;t.f=o?a?function(e,t,n){if(s(e),t=u(t),s(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=f(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(s(e),t=u(t),s(n),i)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n,r){var o=t&&t.prototype instanceof c?t:c,i=Object.create(o.prototype),a=new C(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return R()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var l={};function c(){}function f(){}function d(){}var h={};h[o]=function(){return this};var p=Object.getPrototypeOf,y=p&&p(p(w([])));y&&y!==t&&n.call(y,o)&&(h=y);var m=d.prototype=c.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function v(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function E(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:R}}function R(){return{value:void 0,done:!0}}return f.prototype=m.constructor=d,d.constructor=f,d[a]=f.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,a in e||(e[a]="GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(v.prototype),v.prototype[i]=function(){return this},e.AsyncIterator=v,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new v(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),m[a]="Generator",m[o]=function(){return this},m.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=w,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:w(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";n.r(t),n.d(t,"WRONG_RANGE_SIZE",(function(){return m})),n.d(t,"isSimpleCellRange",(function(){return g})),n.d(t,"simpleCellRange",(function(){return v})),n.d(t,"AbsoluteCellRange",(function(){return E})),n.d(t,"AbsoluteColumnRange",(function(){return b})),n.d(t,"AbsoluteRowRange",(function(){return T}));n(85),n(260),n(52),n(18),n(8),n(9),n(0),n(10),n(3),n(2),n(4),n(27),n(7);var r=n(24),o=n(41),i=n(72),a=n(186);function s(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(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=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(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 p(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var m="AbsoluteCellRange: Wrong range size";function g(e){return!(!e||"object"!==y(e)&&"function"!=typeof e)&&("start"in e&&Object(r.isSimpleCellAddress)(e.start)&&"end"in e&&Object(r.isSimpleCellAddress)(e.end))}var v=function(e,t){return{start:e,end:t}},E=function(){function e(t,n){if(d(this,e),t.sheet!==n.sheet)throw new o.SheetsNotEqual(t.sheet,n.sheet);this.start=Object(r.simpleCellAddress)(t.sheet,t.col,t.row),this.end=Object(r.simpleCellAddress)(n.sheet,n.col,n.row)}return p(e,[{key:"sheet",get:function(){return this.start.sheet}},{key:"isFinite",value:function(){return Number.isFinite(this.size())}},{key:"doesOverlap",value:function(e){return this.start.sheet==e.start.sheet&&(!(this.end.row<e.start.row||this.start.row>e.end.row)&&!(this.end.col<e.start.col||this.start.col>e.end.col))}},{key:"addressInRange",value:function(e){return this.sheet===e.sheet&&(this.start.row<=e.row&&this.end.row>=e.row&&this.start.col<=e.col&&this.end.col>=e.col)}},{key:"columnInRange",value:function(e){return this.sheet===e.sheet&&(this.start.col<=e.col&&this.end.col>=e.col)}},{key:"rowInRange",value:function(e){return this.sheet===e.sheet&&(this.start.row<=e.row&&this.end.row>=e.row)}},{key:"containsRange",value:function(e){return this.addressInRange(e.start)&&this.addressInRange(e.end)}},{key:"intersectionWith",value:function(t){if(this.sheet===t.start.sheet){var n=Math.max(this.start.row,t.start.row),o=Math.min(this.end.row,t.end.row),i=Math.max(this.start.col,t.start.col),a=Math.min(this.end.col,t.end.col);if(!(n>o||i>a))return new e(Object(r.simpleCellAddress)(this.sheet,i,n),Object(r.simpleCellAddress)(this.sheet,a,o))}}},{key:"includesRow",value:function(e){return this.start.row<e&&this.end.row>=e}},{key:"includesColumn",value:function(e){return this.start.col<e&&this.end.col>=e}},{key:"shiftByRows",value:function(e){this.start.row+=e,this.end.row+=e}},{key:"expandByRows",value:function(e){this.end.row+=e}},{key:"shiftByColumns",value:function(e){this.start.col+=e,this.end.col+=e}},{key:"shifted",value:function(t,n){return e.spanFrom(Object(r.simpleCellAddress)(this.sheet,this.start.col+t,this.start.row+n),this.width(),this.height())}},{key:"expandByColumns",value:function(e){this.end.col+=e}},{key:"moveToSheet",value:function(e){this.start.sheet=e,this.end.sheet=e}},{key:"removeSpan",value:function(e){e instanceof a.RowsSpan?this.removeRows(e.start,e.end):this.removeColumns(e.start,e.end)}},{key:"shouldBeRemoved",value:function(){return this.width()<=0||this.height()<=0}},{key:"rangeWithSameWidth",value:function(t,n){return e.spanFrom(Object(r.simpleCellAddress)(this.sheet,this.start.col,t),this.width(),n)}},{key:"rangeWithSameHeight",value:function(t,n){return e.spanFrom(Object(r.simpleCellAddress)(this.sheet,t,this.start.row),n,this.height())}},{key:"toString",value:function(){return"".concat(this.start.sheet,",").concat(this.start.col,",").concat(this.start.row,",").concat(this.end.col,",").concat(this.end.row)}},{key:"width",value:function(){return this.end.col-this.start.col+1}},{key:"height",value:function(){return this.end.row-this.start.row+1}},{key:"size",value:function(){return this.height()*this.width()}},{key:"arrayOfAddressesInRange",value:function(){for(var e=[],t=0;t<this.height();++t){e[t]=[];for(var n=0;n<this.width();++n){var o=Object(r.simpleCellAddress)(this.sheet,this.start.col+n,this.start.row+t);e[t].push(o)}}return e}},{key:"withStart",value:function(t){return new e(t,this.end)}},{key:"sameDimensionsAs",value:function(e){return this.width()===e.width()&&this.height()===e.height()}},{key:"sameAs",value:function(e){return Object(r.equalSimpleCellAddress)(this.start,e.start)&&Object(r.equalSimpleCellAddress)(this.end,e.end)}},{key:"addressesArrayMap",value:function(e,t){for(var n=[],o=this.start.row;o<=this.effectiveEndRow(e);){for(var i=this.start.col,a=[];i<=this.effectiveEndColumn(e);)a.push(t(Object(r.simpleCellAddress)(this.start.sheet,i,o))),i++;n.push(a),o++}return n}},{key:"addresses",value:function(e){for(var t=[],n=this.start.row,o=this.effectiveEndRow(e),i=this.effectiveEndColumn(e);n<=o;){for(var a=this.start.col;a<=i;)t.push(Object(r.simpleCellAddress)(this.start.sheet,a,n)),a++;n++}return t}},{key:"addressesWithDirection",value:regeneratorRuntime.mark((function e(t,n,o){var i,a,s,u,l,c,f,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t>0)){e.next=30;break}if(!(n>0)){e.next=16;break}i=this.effectiveEndRow(o);case 3:if(!(i>=this.start.row)){e.next=14;break}a=this.effectiveEndColumn(o);case 5:if(!(a>=this.start.col)){e.next=11;break}return e.next=8,Object(r.simpleCellAddress)(this.start.sheet,a,i);case 8:a-=1,e.next=5;break;case 11:i-=1,e.next=3;break;case 14:e.next=28;break;case 16:s=this.start.row;case 17:if(!(s<=this.effectiveEndRow(o))){e.next=28;break}u=this.effectiveEndColumn(o);case 19:if(!(u>=this.start.col)){e.next=25;break}return e.next=22,Object(r.simpleCellAddress)(this.start.sheet,u,s);case 22:u-=1,e.next=19;break;case 25:s+=1,e.next=17;break;case 28:e.next=57;break;case 30:if(!(n>0)){e.next=45;break}l=this.effectiveEndRow(o);case 32:if(!(l>=this.start.row)){e.next=43;break}c=this.start.col;case 34:if(!(c<=this.effectiveEndColumn(o))){e.next=40;break}return e.next=37,Object(r.simpleCellAddress)(this.start.sheet,c,l);case 37:c+=1,e.next=34;break;case 40:l-=1,e.next=32;break;case 43:e.next=57;break;case 45:f=this.start.row;case 46:if(!(f<=this.effectiveEndRow(o))){e.next=57;break}d=this.start.col;case 48:if(!(d<=this.effectiveEndColumn(o))){e.next=54;break}return e.next=51,Object(r.simpleCellAddress)(this.start.sheet,d,f);case 51:d+=1,e.next=48;break;case 54:f+=1,e.next=46;break;case 57:case"end":return e.stop()}}),e,this)}))},{key:"getAddress",value:function(e,t){if(e<0||t<0||t>this.height()-1||e>this.width()-1)throw Error("Index out of bound");return Object(r.simpleCellAddress)(this.start.sheet,this.start.col+e,this.start.row+t)}},{key:"exceedsSheetSizeLimits",value:function(e,t){return this.end.col>=e||this.end.row>=t}},{key:"effectiveEndColumn",value:function(e){return this.end.col}},{key:"effectiveEndRow",value:function(e){return this.end.row}},{key:"effectiveWidth",value:function(e){return this.width()}},{key:"effectiveHeight",value:function(e){return this.height()}},{key:"removeRows",value:function(e,t){if(!(e>this.end.row)){if(t<this.start.row){var n=t-e+1;return this.shiftByRows(-n)}e<=this.start.row&&(this.start.row=e),this.end.row-=Math.min(t,this.end.row)-e+1}}},{key:"removeColumns",value:function(e,t){if(!(e>this.end.col)){if(t<this.start.col){var n=t-e+1;return this.shiftByColumns(-n)}e<=this.start.col&&(this.start.col=e),this.end.col-=Math.min(t,this.end.col)-e+1}}}],[{key:"fromAst",value:function(t,n){return t.type===i.AstNodeType.CELL_RANGE?e.fromCellRange(t,n):t.type===i.AstNodeType.COLUMN_RANGE?b.fromColumnRange(t,n):T.fromRowRangeAst(t,n)}},{key:"fromAstOrUndef",value:function(t,n){try{return e.fromAst(t,n)}catch(e){return}}},{key:"fromCellRange",value:function(t,n){return new e(t.start.toSimpleCellAddress(n),t.end.toSimpleCellAddress(n))}},{key:"spanFrom",value:function(t,n,r){var o=e.spanFromOrUndef(t,n,r);if(void 0===o)throw new Error(m);return o}},{key:"spanFromOrUndef",value:function(t,n,o){if(!Number.isFinite(n)&&Number.isFinite(o)){if(0!==t.col)return;return new T(t.sheet,t.row,t.row+o-1)}if(!Number.isFinite(o)&&Number.isFinite(n)){if(0!==t.row)return;return new b(t.sheet,t.col,t.col+n-1)}if(Number.isFinite(o)&&Number.isFinite(n))return new e(t,Object(r.simpleCellAddress)(t.sheet,t.col+n-1,t.row+o-1))}},{key:"fromCoordinates",value:function(t,n,o,i,a){return new e(Object(r.simpleCellAddress)(t,n,o),Object(r.simpleCellAddress)(t,i,a))}}]),e}(),b=function(e){s(n,e);var t=l(n);function n(e,o,i){return d(this,n),t.call(this,Object(r.simpleCellAddress)(e,o,0),Object(r.simpleCellAddress)(e,i,Number.POSITIVE_INFINITY))}return p(n,[{key:"shouldBeRemoved",value:function(){return this.width()<=0}},{key:"shiftByRows",value:function(e){}},{key:"expandByRows",value:function(e){}},{key:"shifted",value:function(e,t){return new n(this.sheet,this.start.col+e,this.end.col+e)}},{key:"rangeWithSameHeight",value:function(e,t){return new n(this.sheet,e,e+t-1)}},{key:"exceedsSheetSizeLimits",value:function(e,t){return this.end.col>=e}},{key:"effectiveEndRow",value:function(e){return this.effectiveHeight(e)-1}},{key:"effectiveHeight",value:function(e){return e.getSheetHeight(this.sheet)}},{key:"removeRows",value:function(e,t){}}],[{key:"fromColumnRange",value:function(e,t){var r=e.start.toSimpleColumnAddress(t),i=e.end.toSimpleColumnAddress(t);if(r.sheet!==i.sheet)throw new o.SheetsNotEqual(r.sheet,i.sheet);return new n(r.sheet,r.col,i.col)}}]),n}(E),T=function(e){s(n,e);var t=l(n);function n(e,o,i){return d(this,n),t.call(this,Object(r.simpleCellAddress)(e,0,o),Object(r.simpleCellAddress)(e,Number.POSITIVE_INFINITY,i))}return p(n,[{key:"shouldBeRemoved",value:function(){return this.height()<=0}},{key:"shiftByColumns",value:function(e){}},{key:"expandByColumns",value:function(e){}},{key:"shifted",value:function(e,t){return new n(this.sheet,this.start.row+t,this.end.row+t)}},{key:"rangeWithSameWidth",value:function(e,t){return new n(this.sheet,e,e+t-1)}},{key:"exceedsSheetSizeLimits",value:function(e,t){return this.end.row>=t}},{key:"effectiveEndColumn",value:function(e){return this.effectiveWidth(e)-1}},{key:"effectiveWidth",value:function(e){return e.getSheetWidth(this.sheet)}},{key:"removeColumns",value:function(e,t){}}],[{key:"fromRowRangeAst",value:function(e,t){var r=e.start.toSimpleRowAddress(t),i=e.end.toSimpleRowAddress(t);if(r.sheet!==i.sheet)throw new o.SheetsNotEqual(r.sheet,i.sheet);return new n(r.sheet,r.row,i.row)}}]),n}(E)},function(e,t,n){var r=n(28),o=n(662);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},function(e,t,n){"use strict";t.__esModule=!0,t.error=function(){var e;(0,r.isDefined)(console)&&(e=console).error.apply(e,arguments)},t.info=function(){var e;(0,r.isDefined)(console)&&(e=console).info.apply(e,arguments)},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)};var r=n(32)},function(e,t,n){var r=n(29).TypeError;e.exports=function(e){if(null==e)throw r("Can't call method on "+e);return e}},function(e,t,n){var r=n(29),o=n(89),i=r.Object;e.exports=function(e){return i(o(e))}},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,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.isPercentValue=function(e){return/^([0-9][0-9]?%$)|(^100%$)/.test(e)},t.randomString=function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+e()+e()},t.sanitize=a,t.stripTags=function(e){return a("".concat(e),{ALLOWED_TAGS:[]})},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.toUpperCaseFirst=function(e){return e[0].toUpperCase()+e.substr(1)},n(35),n(0),n(66),n(12),n(63);var o=r(n(437)),i=n(32);function a(e,t){return o.default.sanitize(e,t)}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(17),o=n(68),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,t,n,r,i,a,s){if(this._localHooks[e])for(var u=this._localHooks[e].length,l=0;l<u;l++)(0,o.fastCall)(this._localHooks[e][l],this,t,n,r,i,a,s)},clearLocalHooks:function(){return this._localHooks={},this}};(0,r.defineGetter)(i,"MIXIN_NAME","localHooks",{writable:!1,enumerable:!1});var a=i;t.default=a},function(e,t,n){var r=n(167),o=n(89);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(69),o=n(29),i=n(36),a=n(208),s=n(258),u=n(121),l=n(150).f,c=n(120),f=n(249),d=n(71),h=n(355),p=n(254),y=n(667),m=n(96),g=n(39),v=n(62),E=n(113).enforce,b=n(351),T=n(58),C=n(340),w=n(341),R=T("match"),O=o.RegExp,S=O.prototype,A=o.SyntaxError,N=i(S.exec),_=i("".charAt),k=i("".replace),M=i("".indexOf),I=i("".slice),P=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,x=/a/g,D=/a/g,L=new O(x)!==x,F=p.MISSED_STICKY,j=p.UNSUPPORTED_Y,U=r&&(!L||F||C||w||g((function(){return D[R]=!1,O(x)!=x||O(D)==D||"/a/i"!=O(x,"i")})));if(a("RegExp",U)){for(var H=function(e,t){var n,r,o,i,a,l,p=c(S,this),y=f(e),m=void 0===t,g=[],b=e;if(!p&&y&&m&&e.constructor===H)return e;if((y||c(S,e))&&(e=e.source,m&&(t=h(b))),e=void 0===e?"":d(e),t=void 0===t?"":d(t),b=e,C&&"dotAll"in x&&(r=!!t&&M(t,"s")>-1)&&(t=k(t,/s/g,"")),n=t,F&&"sticky"in x&&(o=!!t&&M(t,"y")>-1)&&j&&(t=k(t,/y/g,"")),w&&(e=(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},s=!1,u=!1,l=0,c="";r<=n;r++){if("\\"===(t=_(e,r)))t+=_(e,++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:N(P,I(e,r+1))&&(r+=2,u=!0),o+=t,l++;continue;case">"===t&&u:if(""===c||v(a,c))throw new A("Invalid capture group name");a[c]=!0,i[i.length]=[c,l],u=!1,c="";continue}u?c+=t:o+=t}return[o,i]}(e))[0],g=i[1]),a=s(O(e,t),p?this:S,H),(r||o||g.length)&&(l=E(a),r&&(l.dotAll=!0,l.raw=H(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=_(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+_(e,++r);return o}(e),n)),o&&(l.sticky=!0),g.length&&(l.groups=g)),e!==b)try{u(a,"source",""===b?"(?:)":b)}catch(e){}return a},B=l(O),V=0;B.length>V;)y(H,O,B[V++]);S.constructor=H,H.prototype=S,m(o,"RegExp",H,{constructor:!0})}b("RegExp")},function(e,t,n){"use strict";n.r(t),n.d(t,"tokenLabel",(function(){return a})),n.d(t,"tokenName",(function(){return s})),n.d(t,"hasTokenLabel",(function(){return u})),n.d(t,"createToken",(function(){return l})),n.d(t,"EOF",(function(){return c})),n.d(t,"createTokenInstance",(function(){return f})),n.d(t,"tokenMatcher",(function(){return d}));var r=n(48),o=n(154),i=n(182);function a(e){return u(e)?e.LABEL:e.name}function s(e){return e.name}function u(e){return Object(r.isString)(e.LABEL)&&""!==e.LABEL}function l(e){return function(e){var t=e.pattern,n={};n.name=e.name,Object(r.isUndefined)(t)||(n.PATTERN=t);if(Object(r.has)(e,"parent"))throw"The parent property is no longer supported.\nSee: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details.";Object(r.has)(e,"categories")&&(n.CATEGORIES=e.categories);Object(i.augmentTokenTypes)([n]),Object(r.has)(e,"label")&&(n.LABEL=e.label);Object(r.has)(e,"group")&&(n.GROUP=e.group);Object(r.has)(e,"pop_mode")&&(n.POP_MODE=e.pop_mode);Object(r.has)(e,"push_mode")&&(n.PUSH_MODE=e.push_mode);Object(r.has)(e,"longer_alt")&&(n.LONGER_ALT=e.longer_alt);Object(r.has)(e,"line_breaks")&&(n.LINE_BREAKS=e.line_breaks);Object(r.has)(e,"start_chars_hint")&&(n.START_CHARS_HINT=e.start_chars_hint);return n}(e)}var c=l({name:"EOF",pattern:o.Lexer.NA});function f(e,t,n,r,o,i,a,s){return{image:t,startOffset:n,endOffset:r,startLine:o,endLine:i,startColumn:a,endColumn:s,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function d(e,t){return Object(i.tokenStructuredMatcher)(e,t)}Object(i.augmentTokenTypes)([c])},function(e,t,n){var r=n(29),o=n(60),i=n(121),a=n(647),s=n(240);e.exports=function(e,t,n,u){var l=!!u&&!!u.unsafe,c=!!u&&!!u.enumerable,f=!!u&&!!u.noTargetGet,d=u&&void 0!==u.name?u.name:t;return o(n)&&a(n,d,u),e===r?(c?e[t]=n:s(t,n),e):(l?!f&&e[t]&&(c=!0):delete e[t],c?e[t]=n:i(e,t,n),e)}},function(e,t,n){var r=n(131);e.exports=function(e){return r(e.length)}},function(e,t,n){"use strict";n.r(t),n.d(t,"cellAddressFromString",(function(){return y})),n.d(t,"columnAddressFromString",(function(){return m})),n.d(t,"rowAddressFromString",(function(){return g})),n.d(t,"simpleCellAddressFromString",(function(){return v})),n.d(t,"simpleCellRangeFromString",(function(){return E})),n.d(t,"simpleCellAddressToString",(function(){return b})),n.d(t,"simpleCellRangeToString",(function(){return T})),n.d(t,"columnIndexToLabel",(function(){return w})),n.d(t,"sheetIndexToString",(function(){return R}));n(94),n(12),n(66),n(18),n(52),n(61),n(99),n(0),n(63),n(8),n(9),n(10),n(3),n(2),n(4),n(13),n(25),n(22);var r=n(86),o=n(24),i=n(217),a=n(218),s=n(181),u=n(219);function l(e,t){return function(e){if(Array.isArray(e))return e}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;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,t)||function(e,t){if(!e)return;if("string"==typeof e)return c(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 c(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 c(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}var f=new RegExp("^(".concat(s.sheetNameRegexp,")?(\\").concat(s.ABSOLUTE_OPERATOR,"?)([A-Za-z]+)(\\").concat(s.ABSOLUTE_OPERATOR,"?)([0-9]+)$")),d=new RegExp("^(".concat(s.sheetNameRegexp,")?(\\").concat(s.ABSOLUTE_OPERATOR,"?)([A-Za-z]+)$")),h=new RegExp("^(".concat(s.sheetNameRegexp,")?(\\").concat(s.ABSOLUTE_OPERATOR,"?)([0-9]+)$")),p=new RegExp("^".concat(s.simpleSheetName,"$")),y=function(e,t,n){var r=f.exec(t),o=C(r[6]),a=O(r,e);if(void 0!==a){null===a&&(a=void 0);var u=Number(r[8])-1;return r[5]===s.ABSOLUTE_OPERATOR&&r[7]===s.ABSOLUTE_OPERATOR?i.CellAddress.absolute(o,u,a):r[5]===s.ABSOLUTE_OPERATOR?i.CellAddress.absoluteCol(o,u-n.row,a):r[7]===s.ABSOLUTE_OPERATOR?i.CellAddress.absoluteRow(o-n.col,u,a):i.CellAddress.relative(u-n.row,o-n.col,a)}},m=function(e,t,n){var r=d.exec(t),o=O(r,e);if(void 0!==o){null===o&&(o=void 0);var i=C(r[6]);return r[5]===s.ABSOLUTE_OPERATOR?a.ColumnAddress.absolute(i,o):a.ColumnAddress.relative(i-n.col,o)}},g=function(e,t,n){var r=h.exec(t),o=O(r,e);if(void 0!==o){null===o&&(o=void 0);var i=Number(r[6])-1;return r[5]===s.ABSOLUTE_OPERATOR?u.RowAddress.absolute(i,o):u.RowAddress.relative(i-n.row,o)}},v=function(e,t,n){var r=f.exec(t),i=C(r[6]),a=O(r,e);if(void 0!==a){null===a&&(a=n);var s=Number(r[8])-1;return Object(o.simpleCellAddress)(a,i,s)}},E=function(e,t,n){var o=t.split(s.RANGE_OPERATOR);if(2===o.length){var i=l(o,2),a=i[0],u=i[1],c=v(e,a,n);if(void 0!==c){var f=v(e,u,c.sheet);if(void 0!==f&&c.sheet===f.sheet)return Object(r.simpleCellRange)(c,f)}}},b=function(e,t,n){var r=w(t.col),o=R(t.sheet,e);if(void 0!==o)return n!==t.sheet?"".concat(o,"!").concat(r).concat(t.row+1):"".concat(r).concat(t.row+1)},T=function(e,t,n){var r=b(e,t.start,n),o=b(e,t.end,t.start.sheet);return void 0===r||void 0===o?void 0:"".concat(r).concat(s.RANGE_OPERATOR).concat(o)};function C(e){return 1===e.length?e.toUpperCase().charCodeAt(0)-65:e.split("").reduce((function(e,t){return 26*e+(t.toUpperCase().charCodeAt(0)-64)}),0)-1}function w(e){for(var t="";e>=0;)t=String.fromCharCode(e%26+97)+t,e=Math.floor(e/26)-1;return t.toUpperCase()}function R(e,t){var n=t(e);if(void 0!==n)return p.test(n)?n:(n=n.replace(/'/g,"''"),"'".concat(n,"'"))}function O(e,t){var n,r=null!==(n=e[3])&&void 0!==n?n:e[2];return r?t(r=r.replace(/''/g,"'")):null}},function(e,t,n){"use strict";var r=n(28),o=n(670).left,i=n(153),a=n(169),s=n(356);r({target:"Array",proto:!0,forced:!i("reduce")||!s&&a>79&&a<83},{reduce:function(e){var t=arguments.length;return o(this,e,t,t>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";n.r(t),n.d(t,"parsingError",(function(){return s})),n.d(t,"ParsingErrorType",(function(){return r})),n.d(t,"AstNodeType",(function(){return o})),n.d(t,"RangeSheetReferenceType",(function(){return i})),n.d(t,"buildEmptyArgAst",(function(){return u})),n.d(t,"buildNumberAst",(function(){return l})),n.d(t,"buildStringAst",(function(){return c})),n.d(t,"buildCellReferenceAst",(function(){return f})),n.d(t,"buildCellRangeAst",(function(){return d})),n.d(t,"buildColumnRangeAst",(function(){return h})),n.d(t,"buildRowRangeAst",(function(){return p})),n.d(t,"buildConcatenateOpAst",(function(){return y})),n.d(t,"buildEqualsOpAst",(function(){return m})),n.d(t,"buildNotEqualOpAst",(function(){return g})),n.d(t,"buildGreaterThanOpAst",(function(){return v})),n.d(t,"buildLessThanOpAst",(function(){return E})),n.d(t,"buildGreaterThanOrEqualOpAst",(function(){return b})),n.d(t,"buildLessThanOrEqualOpAst",(function(){return T})),n.d(t,"buildPlusOpAst",(function(){return C})),n.d(t,"buildMinusOpAst",(function(){return w})),n.d(t,"buildTimesOpAst",(function(){return R})),n.d(t,"buildDivOpAst",(function(){return O})),n.d(t,"buildPowerOpAst",(function(){return S})),n.d(t,"buildMinusUnaryOpAst",(function(){return A})),n.d(t,"buildPlusUnaryOpAst",(function(){return N})),n.d(t,"buildPercentOpAst",(function(){return _})),n.d(t,"buildProcedureAst",(function(){return k})),n.d(t,"buildArrayAst",(function(){return M})),n.d(t,"buildNamedExpressionAst",(function(){return I})),n.d(t,"buildParenthesisAst",(function(){return P})),n.d(t,"buildCellErrorAst",(function(){return x})),n.d(t,"buildErrorWithRawInputAst",(function(){return D})),n.d(t,"buildParsingErrorAst",(function(){return L})),n.d(t,"imageWithWhitespace",(function(){return j}));n(13);var r,o,i,a=n(24),s=function(e,t){return{type:e,message:t}};!function(e){e.LexingError="LexingError",e.ParserError="ParsingError",e.StaticOffsetError="StaticOffsetError",e.StaticOffsetOutOfRangeError="StaticOffsetOutOfRangeError",e.RangeOffsetNotAllowed="RangeOffsetNotAllowed"}(r||(r={})),function(e){e.EMPTY="EMPTY",e.NUMBER="NUMBER",e.STRING="STRING",e.MINUS_UNARY_OP="MINUS_UNARY_OP",e.PLUS_UNARY_OP="PLUS_UNARY_OP",e.PERCENT_OP="PERCENT_OP",e.CONCATENATE_OP="CONCATENATE_OP",e.EQUALS_OP="EQUALS_OP",e.NOT_EQUAL_OP="NOT_EQUAL_OP",e.GREATER_THAN_OP="GREATER_THAN_OP",e.LESS_THAN_OP="LESS_THAN_OP",e.GREATER_THAN_OR_EQUAL_OP="GREATER_THAN_OR_EQUAL_OP",e.LESS_THAN_OR_EQUAL_OP="LESS_THAN_OR_EQUAL_OP",e.PLUS_OP="PLUS_OP",e.MINUS_OP="MINUS_OP",e.TIMES_OP="TIMES_OP",e.DIV_OP="DIV_OP",e.POWER_OP="POWER_OP",e.FUNCTION_CALL="FUNCTION_CALL",e.NAMED_EXPRESSION="NAMED_EXPRESSION",e.PARENTHESIS="PARENTHESES",e.CELL_REFERENCE="CELL_REFERENCE",e.CELL_RANGE="CELL_RANGE",e.COLUMN_RANGE="COLUMN_RANGE",e.ROW_RANGE="ROW_RANGE",e.ERROR="ERROR",e.ERROR_WITH_RAW_INPUT="ERROR_WITH_RAW_INPUT",e.ARRAY="ARRAY"}(o||(o={})),function(e){e[e.RELATIVE=0]="RELATIVE",e[e.START_ABSOLUTE=1]="START_ABSOLUTE",e[e.BOTH_ABSOLUTE=2]="BOTH_ABSOLUTE"}(i||(i={}));var u=function(e){return{type:o.EMPTY,leadingWhitespace:null==e?void 0:e.image}},l=function(e,t){return{type:o.NUMBER,value:e,leadingWhitespace:null==t?void 0:t.image}},c=function(e){var t;return{type:o.STRING,value:e.image.slice(1,-1),leadingWhitespace:null===(t=e.leadingWhitespace)||void 0===t?void 0:t.image}},f=function(e,t){return{type:o.CELL_REFERENCE,reference:e,leadingWhitespace:null==t?void 0:t.image}},d=function(e,t,n,r){return F(e,t,n),{type:o.CELL_RANGE,start:e,end:t,sheetReferenceType:n,leadingWhitespace:r}},h=function(e,t,n,r){return F(e,t,n),{type:o.COLUMN_RANGE,start:e,end:t,sheetReferenceType:n,leadingWhitespace:null==r?void 0:r.image}},p=function(e,t,n,r){return F(e,t,n),{type:o.ROW_RANGE,start:e,end:t,sheetReferenceType:n,leadingWhitespace:null==r?void 0:r.image}},y=function(e,t,n){return{type:o.CONCATENATE_OP,left:e,right:t,leadingWhitespace:null==n?void 0:n.image}},m=function(e,t,n){return{type:o.EQUALS_OP,left:e,right:t,leadingWhitespace:null==n?void 0:n.image}},g=function(e,t,n){return{type:o.NOT_EQUAL_OP,left:e,right:t,leadingWhitespace:null==n?void 0:n.image}},v=function(e,t,n){return{type:o.GREATER_THAN_OP,left:e,right:t,leadingWhitespace:null==n?void 0:n.image}},E=function(e,t,n){return{type:o.LESS_THAN_OP,left:e,right:t,leadingWhitespace:null==n?void 0:n.image}},b=function(e,t,n){return{type:o.GREATER_THAN_OR_EQUAL_OP,left:e,right:t,leadingWhitespace:null==n?void 0:n.image}},T=function(e,t,n){return{type:o.LESS_THAN_OR_EQUAL_OP,left:e,right:t,leadingWhitespace:null==n?void 0:n.image}},C=function(e,t,n){return{type:o.PLUS_OP,left:e,right:t,leadingWhitespace:null==n?void 0:n.image}},w=function(e,t,n){return{type:o.MINUS_OP,left:e,right:t,leadingWhitespace:null==n?void 0:n.image}},R=function(e,t,n){return{type:o.TIMES_OP,left:e,right:t,leadingWhitespace:null==n?void 0:n.image}},O=function(e,t,n){return{type:o.DIV_OP,left:e,right:t,leadingWhitespace:null==n?void 0:n.image}},S=function(e,t,n){return{type:o.POWER_OP,left:e,right:t,leadingWhitespace:null==n?void 0:n.image}},A=function(e,t){return{type:o.MINUS_UNARY_OP,value:e,leadingWhitespace:null==t?void 0:t.image}},N=function(e,t){return{type:o.PLUS_UNARY_OP,value:e,leadingWhitespace:null==t?void 0:t.image}},_=function(e,t){return{type:o.PERCENT_OP,value:e,leadingWhitespace:null==t?void 0:t.image}},k=function(e,t,n,r){return{type:o.FUNCTION_CALL,procedureName:e,args:t,leadingWhitespace:null==n?void 0:n.image,internalWhitespace:null==r?void 0:r.image}},M=function(e,t,n){return{type:o.ARRAY,args:e,leadingWhitespace:null==t?void 0:t.image,internalWhitespace:null==n?void 0:n.image}},I=function(e,t){return{type:o.NAMED_EXPRESSION,expressionName:e,leadingWhitespace:null==t?void 0:t.image}},P=function(e,t,n){return{type:o.PARENTHESIS,expression:e,leadingWhitespace:null==t?void 0:t.image,internalWhitespace:null==n?void 0:n.image}},x=function(e,t){return{type:o.ERROR,error:e,leadingWhitespace:null==t?void 0:t.image}},D=function(e,t,n){return{type:o.ERROR_WITH_RAW_INPUT,error:t,rawInput:e,leadingWhitespace:null==n?void 0:n.image}},L=function(){return{type:o.ERROR,error:a.CellError.parsingError()}};function F(e,t,n){if(void 0!==e.sheet&&void 0===t.sheet||void 0===e.sheet&&void 0!==t.sheet)throw new Error("Start address inconsistent with end address");if(void 0===e.sheet&&n!==i.RELATIVE||void 0!==e.sheet&&n===i.RELATIVE)throw new Error("Sheet address inconsistent with sheet reference type")}function j(e,t){return(null!=t?t:"")+e}},function(e,t,n){"use strict";t.__esModule=!0,t.isChrome=function(){return i.chrome.value},t.isChromeWebKit=function(){return i.chromeWebKit.value},t.isEdge=function(){return i.edge.value},t.isEdgeWebKit=function(){return i.edgeWebKit.value},t.isFirefox=function(){return i.firefox.value},t.isFirefoxWebKit=function(){return i.firefoxWebKit.value},t.isIE=function(){return i.ie.value},t.isIE9=function(){return i.ie9.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.isLinuxOS=function(){return a.linux.value},t.isMSBrowser=function(){return i.ie.value||i.edge.value},t.isMacOS=function(){return a.mac.value},t.isMobileBrowser=function(){return i.mobile.value},t.isSafari=function(){return i.safari.value},t.isWindowsOS=function(){return a.win.value},t.setBrowserMeta=s,t.setPlatformMeta=u,n(12);var r=n(17),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)})),chromeWebKit:o((function(e){return/CriOS/.test(e)})),edge:o((function(e){return/Edge/.test(e)})),edgeWebKit:o((function(e){return/EdgiOS/.test(e)})),firefox:o((function(e){return/Firefox/.test(e)})),firefoxWebKit:o((function(e){return/FxiOS/.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 u(){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(),u()},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,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function l(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function f(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,r=[],o=e.length;for(n=0;n<o;++n)r.push(t(e[n],n));return r}function h(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return Ot(e,t,n,r,!0).utc()}function y(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function m(e){if(null==e._isValid){var t=y(e),n=r.call(t.parsedDateParts,(function(e){return null!=e})),o=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!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=p(NaN);return null!=e?h(y(t),e):y(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var v=o.momentProperties=[],E=!1;function b(e,t){var n,r,o,i=v.length;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=y(t)),l(t._locale)||(e._locale=t._locale),i>0)for(n=0;n<i;n++)l(o=t[r=v[n]])||(e[r]=o);return e}function T(e){b(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 T||null!=e&&null!=e._isAMomentObject}function w(e){!1===o.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function R(e,t){var n=!0;return h((function(){if(null!=o.deprecationHandler&&o.deprecationHandler(null,e),n){var r,i,a,u=[],l=arguments.length;for(i=0;i<l;i++){if(r="","object"==typeof arguments[i]){for(a in r+="\n["+i+"] ",arguments[0])s(arguments[0],a)&&(r+=a+": "+arguments[0][a]+", ");r=r.slice(0,-2)}else r=arguments[i];u.push(r)}w(e+"\nArguments: "+Array.prototype.slice.call(u).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var O,S={};function A(e,t){null!=o.deprecationHandler&&o.deprecationHandler(e,t),S[e]||(w(t),S[e]=!0)}function N(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function _(e,t){var n,r=h({},e);for(n in t)s(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)s(e,n)&&!s(t,n)&&a(e[n])&&(r[n]=h({},r[n]));return r}function k(e){null!=e&&this.set(e)}function M(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}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,O=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var I=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,P=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,x={},D={};function L(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(D[e]=o),t&&(D[t[0]]=function(){return M(o.apply(this,arguments),t[1],t[2])}),n&&(D[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function F(e,t){return e.isValid()?(t=j(t,e.localeData()),x[t]=x[t]||function(e){var t,n,r,o=e.match(I);for(t=0,n=o.length;t<n;t++)D[o[t]]?o[t]=D[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),x[t](e)):e.localeData().invalidDate()}function j(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(P.lastIndex=0;n>=0&&P.test(e);)e=e.replace(P,r),P.lastIndex=0,n-=1;return e}var U={};function H(e,t){var n=e.toLowerCase();U[n]=U[n+"s"]=U[t]=e}function B(e){return"string"==typeof e?U[e]||U[e.toLowerCase()]:void 0}function V(e){var t,n,r={};for(n in e)s(e,n)&&(t=B(n))&&(r[t]=e[n]);return r}var W={};function Y(e,t){W[e]=t}function G(e){return e%4==0&&e%100!=0||e%400==0}function z(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function K(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=z(t)),n}function X(e,t){return function(n){return null!=n?(Q(this,e,n),o.updateOffset(this,t),this):q(this,e)}}function q(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Q(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&G(e.year())&&1===e.month()&&29===e.date()?(n=K(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ce(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var $,Z=/\d/,J=/\d\d/,ee=/\d{3}/,te=/\d{4}/,ne=/[+-]?\d{6}/,re=/\d\d?/,oe=/\d\d\d\d?/,ie=/\d\d\d\d\d\d?/,ae=/\d{1,3}/,se=/\d{1,4}/,ue=/[+-]?\d{1,6}/,le=/\d+/,ce=/[+-]?\d+/,fe=/Z|[+-]\d\d:?\d\d/gi,de=/Z|[+-]\d\d(?::?\d\d)?/gi,he=/[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;function pe(e,t,n){$[e]=N(t)?t:function(e,r){return e&&n?n:t}}function ye(e,t){return s($,e)?$[e](t._strict,t._locale):new RegExp(me(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,o){return t||n||r||o}))))}function me(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}$={};var ge,ve={};function Ee(e,t){var n,r,o=t;for("string"==typeof e&&(e=[e]),c(t)&&(o=function(e,n){n[t]=K(e)}),r=e.length,n=0;n<r;n++)ve[e[n]]=o}function be(e,t){Ee(e,(function(e,n,r,o){r._w=r._w||{},t(e,r._w,r,o)}))}function Te(e,t,n){null!=t&&s(ve,e)&&ve[e](t,n._a,n,e)}function Ce(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?G(e)?29:28:31-r%7%2}ge=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},L("M",["MM",2],"Mo",(function(){return this.month()+1})),L("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),L("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),H("month","M"),Y("month",8),pe("M",re),pe("MM",re,J),pe("MMM",(function(e,t){return t.monthsShortRegex(e)})),pe("MMMM",(function(e,t){return t.monthsRegex(e)})),Ee(["M","MM"],(function(e,t){t[1]=K(e)-1})),Ee(["MMM","MMMM"],(function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);null!=o?t[1]=o:y(n).invalidMonth=e}));var we="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Re="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Oe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Se=he,Ae=he;function Ne(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=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=ge.call(this._shortMonthsParse,a))?o:null:-1!==(o=ge.call(this._longMonthsParse,a))?o:null:"MMM"===t?-1!==(o=ge.call(this._shortMonthsParse,a))||-1!==(o=ge.call(this._longMonthsParse,a))?o:null:-1!==(o=ge.call(this._longMonthsParse,a))||-1!==(o=ge.call(this._shortMonthsParse,a))?o:null}function _e(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=K(t);else if(!c(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Ce(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ke(e){return null!=e?(_e(this,e),o.updateOffset(this,!0),this):q(this,"Month")}function Me(){function e(e,t){return t.length-e.length}var t,n,r=[],o=[],i=[];for(t=0;t<12;t++)n=p([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]=me(r[t]),o[t]=me(o[t]);for(t=0;t<24;t++)i[t]=me(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 Ie(e){return G(e)?366:365}L("Y",0,0,(function(){var e=this.year();return e<=9999?M(e,4):"+"+e})),L(0,["YY",2],0,(function(){return this.year()%100})),L(0,["YYYY",4],0,"year"),L(0,["YYYYY",5],0,"year"),L(0,["YYYYYY",6,!0],0,"year"),H("year","y"),Y("year",1),pe("Y",ce),pe("YY",re,J),pe("YYYY",se,te),pe("YYYYY",ue,ne),pe("YYYYYY",ue,ne),Ee(["YYYYY","YYYYYY"],0),Ee("YYYY",(function(e,t){t[0]=2===e.length?o.parseTwoDigitYear(e):K(e)})),Ee("YY",(function(e,t){t[0]=o.parseTwoDigitYear(e)})),Ee("Y",(function(e,t){t[0]=parseInt(e,10)})),o.parseTwoDigitYear=function(e){return K(e)+(K(e)>68?1900:2e3)};var Pe=X("FullYear",!0);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,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Le(e,t,n){var r=7+t-n;return-(7+De(e,0,r).getUTCDay()-t)%7+r-1}function Fe(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=Ie(i=e-1)+s:s>Ie(e)?(i=e+1,a=s-Ie(e)):(i=e,a=s),{year:i,dayOfYear:a}}function je(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(Ie(e)-r+o)/7}function He(e,t){return e.slice(t,7).concat(e.slice(0,t))}L("w",["ww",2],"wo","week"),L("W",["WW",2],"Wo","isoWeek"),H("week","w"),H("isoWeek","W"),Y("week",5),Y("isoWeek",5),pe("w",re),pe("ww",re,J),pe("W",re),pe("WW",re,J),be(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=K(e)})),L("d",0,"do","day"),L("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),L("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),L("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),L("e",0,0,"weekday"),L("E",0,0,"isoWeekday"),H("day","d"),H("weekday","e"),H("isoWeekday","E"),Y("day",11),Y("weekday",11),Y("isoWeekday",11),pe("d",re),pe("e",re),pe("E",re),pe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),pe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),pe("dddd",(function(e,t){return t.weekdaysRegex(e)})),be(["dd","ddd","dddd"],(function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:y(n).invalidWeekday=e})),be(["d","e","E"],(function(e,t,n,r){t[r]=K(e)}));var Be="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ve="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),We="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ye=he,Ge=he,ze=he;function Ke(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=p([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=ge.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=ge.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=ge.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=ge.call(this._weekdaysParse,a))||-1!==(o=ge.call(this._shortWeekdaysParse,a))||-1!==(o=ge.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=ge.call(this._shortWeekdaysParse,a))||-1!==(o=ge.call(this._weekdaysParse,a))||-1!==(o=ge.call(this._minWeekdaysParse,a))?o:null:-1!==(o=ge.call(this._minWeekdaysParse,a))||-1!==(o=ge.call(this._weekdaysParse,a))||-1!==(o=ge.call(this._shortWeekdaysParse,a))?o:null}function Xe(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],s=[],u=[],l=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=me(this.weekdaysMin(n,"")),o=me(this.weekdaysShort(n,"")),i=me(this.weekdays(n,"")),a.push(r),s.push(o),u.push(i),l.push(r),l.push(o),l.push(i);a.sort(e),s.sort(e),u.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function qe(){return this.hours()%12||12}function Qe(e,t){L(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function $e(e,t){return t._meridiemParse}L("H",["HH",2],0,"hour"),L("h",["hh",2],0,qe),L("k",["kk",2],0,(function(){return this.hours()||24})),L("hmm",0,0,(function(){return""+qe.apply(this)+M(this.minutes(),2)})),L("hmmss",0,0,(function(){return""+qe.apply(this)+M(this.minutes(),2)+M(this.seconds(),2)})),L("Hmm",0,0,(function(){return""+this.hours()+M(this.minutes(),2)})),L("Hmmss",0,0,(function(){return""+this.hours()+M(this.minutes(),2)+M(this.seconds(),2)})),Qe("a",!0),Qe("A",!1),H("hour","h"),Y("hour",13),pe("a",$e),pe("A",$e),pe("H",re),pe("h",re),pe("k",re),pe("HH",re,J),pe("hh",re,J),pe("kk",re,J),pe("hmm",oe),pe("hmmss",ie),pe("Hmm",oe),pe("Hmmss",ie),Ee(["H","HH"],3),Ee(["k","kk"],(function(e,t,n){var r=K(e);t[3]=24===r?0:r})),Ee(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Ee(["h","hh"],(function(e,t,n){t[3]=K(e),y(n).bigHour=!0})),Ee("hmm",(function(e,t,n){var r=e.length-2;t[3]=K(e.substr(0,r)),t[4]=K(e.substr(r)),y(n).bigHour=!0})),Ee("hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=K(e.substr(0,r)),t[4]=K(e.substr(r,2)),t[5]=K(e.substr(o)),y(n).bigHour=!0})),Ee("Hmm",(function(e,t,n){var r=e.length-2;t[3]=K(e.substr(0,r)),t[4]=K(e.substr(r))})),Ee("Hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=K(e.substr(0,r)),t[4]=K(e.substr(r,2)),t[5]=K(e.substr(o))}));var Ze,Je=X("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",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:we,monthsShort:Re,week:{dow:0,doy:6},weekdays:Be,weekdaysMin:We,weekdaysShort:Ve,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function rt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function ot(e){return e?e.toLowerCase().replace("_","-"):e}function it(t){var r=null;if(void 0===tt[t]&&void 0!==e&&e&&e.exports&&function(e){return null!=e.match("^[^/\\\\]*$")}(t))try{r=Ze._abbr,n(756)("./"+t),at(r)}catch(e){tt[t]=null}return tt[t]}function at(e,t){var n;return e&&((n=l(t)?ut(e):st(e,t))?Ze=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ze._abbr}function st(e,t){if(null!==t){var n,r=et;if(t.abbr=e,null!=tt[e])A("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=it(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 k(_(r,t)),nt[e]&&nt[e].forEach((function(e){st(e.name,e.config)})),at(e),tt[e]}return delete tt[e],null}function ut(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ze;if(!i(e)){if(t=it(e))return t;e=[e]}return function(e){for(var t,n,r,o,i=0;i<e.length;){for(t=(o=ot(e[i]).split("-")).length,n=(n=ot(e[i+1]))?n.split("-"):null;t>0;){if(r=it(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&rt(o,n)>=t-1)break;t--}i++}return Ze}(e)}function lt(e){var t,n=e._a;return n&&-2===y(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>Ce(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,y(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),y(e)._overflowWeeks&&-1===t&&(t=7),y(e)._overflowWeekday&&-1===t&&(t=8),y(e).overflow=t),e}var ct=/^\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=/^\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)?)?$/,dt=/Z|[+-]\d\d(?::?\d\d)?/,ht=[["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}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],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/]],yt=/^\/?Date\((-?\d+)/i,mt=/^(?:(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}))$/,gt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function vt(e){var t,n,r,o,i,a,s=e._i,u=ct.exec(s)||ft.exec(s),l=ht.length,c=pt.length;if(u){for(y(e).iso=!0,t=0,n=l;t<n;t++)if(ht[t][1].exec(u[1])){o=ht[t][0],r=!1!==ht[t][2];break}if(null==o)return void(e._isValid=!1);if(u[3]){for(t=0,n=c;t<n;t++)if(pt[t][1].exec(u[3])){i=(u[2]||" ")+pt[t][0];break}if(null==i)return void(e._isValid=!1)}if(!r&&null!=i)return void(e._isValid=!1);if(u[4]){if(!dt.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=o+(i||"")+(a||""),wt(e)}else e._isValid=!1}function Et(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function bt(e){var t,n,r,o,i,a,s,u,l=mt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(l){if(n=l[4],r=l[3],o=l[2],i=l[5],a=l[6],s=l[7],u=[Et(n),Re.indexOf(r),parseInt(o,10),parseInt(i,10),parseInt(a,10)],s&&u.push(parseInt(s,10)),t=u,!function(e,t,n){return!e||Ve.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(y(n).weekdayMismatch=!0,n._isValid=!1,!1)}(l[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return gt[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),y(e).rfc2822=!0}else e._isValid=!1}function Tt(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,u,l;null!=(t=e._w).GG||null!=t.W||null!=t.E?(i=1,a=4,n=Tt(t.GG,e._a[0],je(St(),1,4).year),r=Tt(t.W,1),((o=Tt(t.E,1))<1||o>7)&&(u=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,l=je(St(),i,a),n=Tt(t.gg,e._a[0],l.year),r=Tt(t.w,l.week),null!=t.d?((o=t.d)<0||o>6)&&(u=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(u=!0)):o=i),r<1||r>Ue(n,i,a)?y(e)._overflowWeeks=!0:null!=u?y(e)._overflowWeekday=!0:(s=Fe(n,r,o,i,a),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=Tt(e._a[0],r[0]),(e._dayOfYear>Ie(a)||0===e._dayOfYear)&&(y(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&&(y(e).weekdayMismatch=!0)}}function wt(e){if(e._f!==o.ISO_8601)if(e._f!==o.RFC_2822){e._a=[],y(e).empty=!0;var t,n,r,i,a,s,u,l=""+e._i,c=l.length,f=0;for(u=(r=j(e._f,e._locale).match(I)||[]).length,t=0;t<u;t++)i=r[t],(n=(l.match(ye(i,e))||[])[0])&&((a=l.substr(0,l.indexOf(n))).length>0&&y(e).unusedInput.push(a),l=l.slice(l.indexOf(n)+n.length),f+=n.length),D[i]?(n?y(e).empty=!1:y(e).unusedTokens.push(i),Te(i,n,e)):e._strict&&!n&&y(e).unusedTokens.push(i);y(e).charsLeftOver=c-f,l.length>0&&y(e).unusedInput.push(l),e._a[3]<=12&&!0===y(e).bigHour&&e._a[3]>0&&(y(e).bigHour=void 0),y(e).parsedDateParts=e._a.slice(0),y(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),null!==(s=y(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),Ct(e),lt(e)}else bt(e);else vt(e)}function Rt(e){var t=e._i,n=e._f;return e._locale=e._locale||ut(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),C(t)?new T(lt(t)):(f(t)?e._d=t:i(n)?function(e){var t,n,r,o,i,a,s=!1,u=e._f.length;if(0===u)return y(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<u;o++)i=0,a=!1,t=b({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],wt(t),m(t)&&(a=!0),i+=y(t).charsLeftOver,i+=10*y(t).unusedTokens.length,y(t).score=i,s?i<r&&(r=i,n=t):(null==r||i<r||a)&&(r=i,n=t,a&&(s=!0));h(e,n||t)}(e):n?wt(e):function(e){var t=e._i;l(t)?e._d=new Date(o.now()):f(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=yt.exec(e._i);null===t?(vt(e),!1===e._isValid&&(delete e._isValid,bt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:o.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):i(t)?(e._a=d(t.slice(0),(function(e){return parseInt(e,10)})),Ct(e)):a(t)?function(e){if(!e._d){var t=V(e._i),n=void 0===t.day?t.date:t.day;e._a=d([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Ct(e)}}(e):c(t)?e._d=new Date(t):o.createFromInputFallback(e)}(e),m(e)||(e._d=null),e))}function Ot(e,t,n,r,o){var s,l={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(a(e)&&u(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 T(lt(Rt(l))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function St(e,t,n,r){return Ot(e,t,n,r,!1)}o.createFromInputFallback=R("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. 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 At=R("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()})),Nt=R("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 _t(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 kt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Mt(e){var t=V(e),n=t.year||0,r=t.quarter||0,o=t.month||0,i=t.week||t.isoWeek||0,a=t.day||0,u=t.hour||0,l=t.minute||0,c=t.second||0,f=t.millisecond||0;this._isValid=function(e){var t,n,r=!1,o=kt.length;for(t in e)if(s(e,t)&&(-1===ge.call(kt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<o;++n)if(e[kt[n]]){if(r)return!1;parseFloat(e[kt[n]])!==K(e[kt[n]])&&(r=!0)}return!0}(t),this._milliseconds=+f+1e3*c+6e4*l+1e3*u*60*60,this._days=+a+7*i,this._months=+o+3*r+12*n,this._data={},this._locale=ut(),this._bubble()}function It(e){return e instanceof Mt}function Pt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function xt(e,t){L(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+M(~~(e/60),2)+t+M(~~e%60,2)}))}xt("Z",":"),xt("ZZ",""),pe("Z",de),pe("ZZ",de),Ee(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=Lt(de,e)}));var Dt=/([\+\-]|\d\d)/gi;function Lt(e,t){var n,r,o=(t||"").match(e);return null===o?null:0===(r=60*(n=((o[o.length-1]||[])+"").match(Dt)||["-",0,0])[1]+K(n[2]))?0:"+"===n[0]?r:-r}function Ft(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(C(e)||f(e)?e.valueOf():St(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),o.updateOffset(n,!1),n):St(e).local()}function jt(e){return-Math.round(e._d.getTimezoneOffset())}function Ut(){return!!this.isValid()&&this._isUTC&&0===this._offset}o.updateOffset=function(){};var Ht=/^(-|\+)?(?:(\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,u,l=e,f=null;return It(e)?l={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(l={},t?l[t]=+e:l.milliseconds=+e):(f=Ht.exec(e))?(n="-"===f[1]?-1:1,l={y:0,d:K(f[2])*n,h:K(f[3])*n,m:K(f[4])*n,s:K(f[5])*n,ms:K(Pt(1e3*f[6]))*n}):(f=Bt.exec(e))?(n="-"===f[1]?-1:1,l={y:Wt(f[2],n),M:Wt(f[3],n),w:Wt(f[4],n),d:Wt(f[5],n),h:Wt(f[6],n),m:Wt(f[7],n),s:Wt(f[8],n)}):null==l?l={}:"object"==typeof l&&("from"in l||"to"in l)&&(i=St(l.from),a=St(l.to),o=i.isValid()&&a.isValid()?(a=Ft(a,i),i.isBefore(a)?u=Yt(i,a):((u=Yt(a,i)).milliseconds=-u.milliseconds,u.months=-u.months),u):{milliseconds:0,months:0},(l={}).ms=o.milliseconds,l.M=o.months),r=new Mt(l),It(e)&&s(e,"_locale")&&(r._locale=e._locale),It(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function Wt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Yt(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)||(A(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),zt(this,Vt(n,r),e),this}}function zt(e,t,n,r){var i=t._milliseconds,a=Pt(t._days),s=Pt(t._months);e.isValid()&&(r=null==r||r,s&&_e(e,q(e,"Month")+s*n),a&&Q(e,"Date",q(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&o.updateOffset(e,a||s))}Vt.fn=Mt.prototype,Vt.invalid=function(){return Vt(NaN)};var Kt=Gt(1,"add"),Xt=Gt(-1,"subtract");function qt(e){return"string"==typeof e||e instanceof String}function Qt(e){return C(e)||f(e)||qt(e)||c(e)||function(e){var t=i(e),n=!1;return t&&(n=0===e.filter((function(t){return!c(t)&&qt(e)})).length),t&&n}(e)||function(e){var t,n,r=a(e)&&!u(e),o=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l=i.length;for(t=0;t<l;t+=1)n=i[t],o=o||s(e,n);return r&&o}(e)||null==e}function $t(e){var t,n=a(e)&&!u(e),r=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)r=r||s(e,o[t]);return n&&r}function Zt(e,t){if(e.date()<t.date())return-Zt(t,e);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 Jt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ut(e))&&(this._locale=t),this)}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var en=R("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 tn(){return this._locale}function nn(e,t){return(e%t+t)%t}function rn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function on(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function an(e,t){return t.erasAbbrRegex(e)}function sn(){var e,t,n=[],r=[],o=[],i=[],a=this.eras();for(e=0,t=a.length;e<t;++e)r.push(me(a[e].name)),n.push(me(a[e].abbr)),o.push(me(a[e].narrow)),i.push(me(a[e].name)),i.push(me(a[e].abbr)),i.push(me(a[e].narrow));this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}function un(e,t){L(0,[e,e.length],0,t)}function ln(e,t,n,r,o){var i;return null==e?je(this,r,o).year:(t>(i=Ue(e,r,o))&&(t=i),cn.call(this,e,t,n,r,o))}function cn(e,t,n,r,o){var i=Fe(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}L("N",0,0,"eraAbbr"),L("NN",0,0,"eraAbbr"),L("NNN",0,0,"eraAbbr"),L("NNNN",0,0,"eraName"),L("NNNNN",0,0,"eraNarrow"),L("y",["y",1],"yo","eraYear"),L("y",["yy",2],0,"eraYear"),L("y",["yyy",3],0,"eraYear"),L("y",["yyyy",4],0,"eraYear"),pe("N",an),pe("NN",an),pe("NNN",an),pe("NNNN",(function(e,t){return t.erasNameRegex(e)})),pe("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),Ee(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?y(n).era=o:y(n).invalidEra=e})),pe("y",le),pe("yy",le),pe("yyy",le),pe("yyyy",le),pe("yo",(function(e,t){return t._eraYearOrdinalRegex||le})),Ee(["y","yy","yyy","yyyy"],0),Ee(["yo"],(function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,o):t[0]=parseInt(e,10)})),L(0,["gg",2],0,(function(){return this.weekYear()%100})),L(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),un("gggg","weekYear"),un("ggggg","weekYear"),un("GGGG","isoWeekYear"),un("GGGGG","isoWeekYear"),H("weekYear","gg"),H("isoWeekYear","GG"),Y("weekYear",1),Y("isoWeekYear",1),pe("G",ce),pe("g",ce),pe("GG",re,J),pe("gg",re,J),pe("GGGG",se,te),pe("gggg",se,te),pe("GGGGG",ue,ne),pe("ggggg",ue,ne),be(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=K(e)})),be(["gg","GG"],(function(e,t,n,r){t[r]=o.parseTwoDigitYear(e)})),L("Q",0,"Qo","quarter"),H("quarter","Q"),Y("quarter",7),pe("Q",Z),Ee("Q",(function(e,t){t[1]=3*(K(e)-1)})),L("D",["DD",2],"Do","date"),H("date","D"),Y("date",9),pe("D",re),pe("DD",re,J),pe("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Ee(["D","DD"],2),Ee("Do",(function(e,t){t[2]=K(e.match(re)[0])}));var fn=X("Date",!0);L("DDD",["DDDD",3],"DDDo","dayOfYear"),H("dayOfYear","DDD"),Y("dayOfYear",4),pe("DDD",ae),pe("DDDD",ee),Ee(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=K(e)})),L("m",["mm",2],0,"minute"),H("minute","m"),Y("minute",14),pe("m",re),pe("mm",re,J),Ee(["m","mm"],4);var dn=X("Minutes",!1);L("s",["ss",2],0,"second"),H("second","s"),Y("second",15),pe("s",re),pe("ss",re,J),Ee(["s","ss"],5);var hn,pn,yn=X("Seconds",!1);for(L("S",0,0,(function(){return~~(this.millisecond()/100)})),L(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),L(0,["SSS",3],0,"millisecond"),L(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),L(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),L(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),L(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),L(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),L(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),H("millisecond","ms"),Y("millisecond",16),pe("S",ae,Z),pe("SS",ae,J),pe("SSS",ae,ee),hn="SSSS";hn.length<=9;hn+="S")pe(hn,le);function mn(e,t){t[6]=K(1e3*("0."+e))}for(hn="S";hn.length<=9;hn+="S")Ee(hn,mn);pn=X("Milliseconds",!1),L("z",0,0,"zoneAbbr"),L("zz",0,0,"zoneName");var gn=T.prototype;function vn(e){return e}gn.add=Kt,gn.calendar=function(e,t){1===arguments.length&&(arguments[0]?Qt(arguments[0])?(e=arguments[0],t=void 0):$t(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||St(),r=Ft(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)))},gn.clone=function(){return new T(this)},gn.diff=function(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(!(r=Ft(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=B(t)){case"year":i=Zt(this,r)/12;break;case"month":i=Zt(this,r);break;case"quarter":i=Zt(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:z(i)},gn.endOf=function(e){var t,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?on:rn,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-nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-nn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-nn(t,1e3)-1}return this._d.setTime(t),o.updateOffset(this,!0),this},gn.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=F(this,e);return this.localeData().postformat(t)},gn.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()},gn.fromNow=function(e){return this.from(St(),e)},gn.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()},gn.toNow=function(e){return this.to(St(),e)},gn.get=function(e){return N(this[e=B(e)])?this[e]():this},gn.invalidAt=function(){return y(this).overflow},gn.isAfter=function(e,t){var n=C(e)?e:St(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},gn.isBefore=function(e,t){var n=C(e)?e:St(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},gn.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)))},gn.isSame=function(e,t){var n,r=C(e)?e:St(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},gn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},gn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},gn.isValid=function(){return m(this)},gn.lang=en,gn.locale=Jt,gn.localeData=tn,gn.max=Nt,gn.min=At,gn.parsingFlags=function(){return h({},y(this))},gn.set=function(e,t){if("object"==typeof e){var n,r=function(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:W[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=V(e)),o=r.length;for(n=0;n<o;n++)this[r[n].unit](e[r[n].unit])}else if(N(this[e=B(e)]))return this[e](t);return this},gn.startOf=function(e){var t,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?on:rn,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-=nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=nn(t,6e4);break;case"second":t=this._d.valueOf(),t-=nn(t,1e3)}return this._d.setTime(t),o.updateOffset(this,!0),this},gn.subtract=Xt,gn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},gn.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()}},gn.toDate=function(){return new Date(this.valueOf())},gn.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?F(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",F(n,"Z")):F(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},gn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",o="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=o+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(gn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),gn.toJSON=function(){return this.isValid()?this.toISOString():null},gn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},gn.unix=function(){return Math.floor(this.valueOf()/1e3)},gn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},gn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},gn.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""},gn.eraNarrow=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""},gn.eraAbbr=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""},gn.eraYear=function(){var e,t,n,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-o(i[e].since).year())*n+i[e].offset;return this.year()},gn.year=Pe,gn.isLeapYear=function(){return G(this.year())},gn.weekYear=function(e){return ln.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},gn.isoWeekYear=function(e){return ln.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},gn.quarter=gn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},gn.month=ke,gn.daysInMonth=function(){return Ce(this.year(),this.month())},gn.week=gn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},gn.isoWeek=gn.isoWeeks=function(e){var t=je(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},gn.weeksInYear=function(){var e=this.localeData()._week;return Ue(this.year(),e.dow,e.doy)},gn.weeksInWeekYear=function(){var e=this.localeData()._week;return Ue(this.weekYear(),e.dow,e.doy)},gn.isoWeeksInYear=function(){return Ue(this.year(),1,4)},gn.isoWeeksInISOWeekYear=function(){return Ue(this.isoWeekYear(),1,4)},gn.date=fn,gn.day=gn.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},gn.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")},gn.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},gn.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")},gn.hour=gn.hours=Je,gn.minute=gn.minutes=dn,gn.second=gn.seconds=yn,gn.millisecond=gn.milliseconds=pn,gn.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=Lt(de,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=jt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?zt(this,Vt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:jt(this)},gn.utc=function(e){return this.utcOffset(0,e)},gn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(jt(this),"m")),this},gn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Lt(fe,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},gn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?St(e).utcOffset():0,(this.utcOffset()-e)%60==0)},gn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},gn.isLocal=function(){return!!this.isValid()&&!this._isUTC},gn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},gn.isUtc=Ut,gn.isUTC=Ut,gn.zoneAbbr=function(){return this._isUTC?"UTC":""},gn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},gn.dates=R("dates accessor is deprecated. Use date instead.",fn),gn.months=R("months accessor is deprecated. Use month instead",ke),gn.years=R("years accessor is deprecated. Use year instead",Pe),gn.zone=R("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()})),gn.isDSTShifted=R("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=Rt(t))._a?(e=t._isUTC?p(t._a):St(t._a),this._isDSTShifted=this.isValid()&&function(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&&K(e[r])!==K(t[r]))&&a++;return a+i}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var En=k.prototype;function bn(e,t,n,r){var o=ut(),i=p().set(r,t);return o[n](i,e)}function Tn(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return bn(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=bn(e,r,n,"month");return o}function Cn(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var o,i=ut(),a=e?i._week.dow:0,s=[];if(null!=n)return bn(t,(n+a)%7,r,"day");for(o=0;o<7;o++)s[o]=bn(t,(o+a)%7,r,"day");return s}En.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return N(r)?r.call(t,n):r},En.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(I).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},En.invalidDate=function(){return this._invalidDate},En.ordinal=function(e){return this._ordinal.replace("%d",e)},En.preparse=vn,En.postformat=vn,En.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return N(o)?o(e,t,n,r):o.replace(/%d/i,e)},En.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return N(n)?n(t):n.replace(/%s/i,t)},En.set=function(e){var t,n;for(n in e)s(e,n)&&(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)},En.eras=function(e,t){var n,r,i,a=this._eras||ut("en")._eras;for(n=0,r=a.length;n<r;++n){switch(typeof a[n].since){case"string":i=o(a[n].since).startOf("day"),a[n].since=i.valueOf()}switch(typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":i=o(a[n].until).startOf("day").valueOf(),a[n].until=i.valueOf()}}return a},En.erasParse=function(e,t,n){var r,o,i,a,s,u=this.eras();for(e=e.toUpperCase(),r=0,o=u.length;r<o;++r)if(i=u[r].name.toUpperCase(),a=u[r].abbr.toUpperCase(),s=u[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return u[r];break;case"NNNN":if(i===e)return u[r];break;case"NNNNN":if(s===e)return u[r]}else if([i,a,s].indexOf(e)>=0)return u[r]},En.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?o(e.since).year():o(e.since).year()+(t-e.offset)*n},En.erasAbbrRegex=function(e){return s(this,"_erasAbbrRegex")||sn.call(this),e?this._erasAbbrRegex:this._erasRegex},En.erasNameRegex=function(e){return s(this,"_erasNameRegex")||sn.call(this),e?this._erasNameRegex:this._erasRegex},En.erasNarrowRegex=function(e){return s(this,"_erasNarrowRegex")||sn.call(this),e?this._erasNarrowRegex:this._erasRegex},En.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Oe).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},En.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Oe.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},En.monthsParse=function(e,t,n){var r,o,i;if(this._monthsParseExact)return Ne.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=p([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}},En.monthsRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Me.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=Ae),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},En.monthsShortRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Me.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=Se),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},En.week=function(e){return je(e,this._week.dow,this._week.doy).week},En.firstDayOfYear=function(){return this._week.doy},En.firstDayOfWeek=function(){return this._week.dow},En.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?He(n,this._week.dow):e?n[e.day()]:n},En.weekdaysMin=function(e){return!0===e?He(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},En.weekdaysShort=function(e){return!0===e?He(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},En.weekdaysParse=function(e,t,n){var r,o,i;if(this._weekdaysParseExact)return Ke.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=p([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}},En.weekdaysRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Ye),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},En.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ge),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},En.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ze),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},En.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},En.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},at("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===K(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),o.lang=R("moment.lang is deprecated. Use moment.locale instead.",at),o.langData=R("moment.langData is deprecated. Use moment.localeData instead.",ut);var wn=Math.abs;function Rn(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 On(e){return e<0?Math.floor(e):Math.ceil(e)}function Sn(e){return 4800*e/146097}function An(e){return 146097*e/4800}function Nn(e){return function(){return this.as(e)}}var _n=Nn("ms"),kn=Nn("s"),Mn=Nn("m"),In=Nn("h"),Pn=Nn("d"),xn=Nn("w"),Dn=Nn("M"),Ln=Nn("Q"),Fn=Nn("y");function jn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Un=jn("milliseconds"),Hn=jn("seconds"),Bn=jn("minutes"),Vn=jn("hours"),Wn=jn("days"),Yn=jn("months"),Gn=jn("years"),zn=Math.round,Kn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Xn(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}var qn=Math.abs;function Qn(e){return(e>0)-(e<0)||+e}function $n(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,i,a,s,u=qn(this._milliseconds)/1e3,l=qn(this._days),c=qn(this._months),f=this.asSeconds();return f?(e=z(u/60),t=z(e/60),u%=60,e%=60,n=z(c/12),c%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",o=f<0?"-":"",i=Qn(this._months)!==Qn(f)?"-":"",a=Qn(this._days)!==Qn(f)?"-":"",s=Qn(this._milliseconds)!==Qn(f)?"-":"",o+"P"+(n?i+n+"Y":"")+(c?i+c+"M":"")+(l?a+l+"D":"")+(t||e||u?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(u?s+r+"S":"")):"P0D"}var Zn=Mt.prototype;return Zn.isValid=function(){return this._isValid},Zn.abs=function(){var e=this._data;return this._milliseconds=wn(this._milliseconds),this._days=wn(this._days),this._months=wn(this._months),e.milliseconds=wn(e.milliseconds),e.seconds=wn(e.seconds),e.minutes=wn(e.minutes),e.hours=wn(e.hours),e.months=wn(e.months),e.years=wn(e.years),this},Zn.add=function(e,t){return Rn(this,e,t,1)},Zn.subtract=function(e,t){return Rn(this,e,t,-1)},Zn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=B(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Sn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(An(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=_n,Zn.asSeconds=kn,Zn.asMinutes=Mn,Zn.asHours=In,Zn.asDays=Pn,Zn.asWeeks=xn,Zn.asMonths=Dn,Zn.asQuarters=Ln,Zn.asYears=Fn,Zn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*K(this._months/12):NaN},Zn._bubble=function(){var e,t,n,r,o,i=this._milliseconds,a=this._days,s=this._months,u=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*On(An(s)+a),a=0,s=0),u.milliseconds=i%1e3,e=z(i/1e3),u.seconds=e%60,t=z(e/60),u.minutes=t%60,n=z(t/60),u.hours=n%24,a+=z(n/24),o=z(Sn(a)),s+=o,a-=On(An(o)),r=z(s/12),s%=12,u.days=a,u.months=s,u.years=r,this},Zn.clone=function(){return Vt(this)},Zn.get=function(e){return e=B(e),this.isValid()?this[e+"s"]():NaN},Zn.milliseconds=Un,Zn.seconds=Hn,Zn.minutes=Bn,Zn.hours=Vn,Zn.days=Wn,Zn.weeks=function(){return z(this.days()/7)},Zn.months=Yn,Zn.years=Gn,Zn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o=!1,i=Kn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(o=e),"object"==typeof t&&(i=Object.assign({},Kn,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),n=this.localeData(),r=function(e,t,n,r){var o=Vt(e).abs(),i=zn(o.as("s")),a=zn(o.as("m")),s=zn(o.as("h")),u=zn(o.as("d")),l=zn(o.as("M")),c=zn(o.as("w")),f=zn(o.as("y")),d=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(d=d||c<=1&&["w"]||c<n.w&&["ww",c]),(d=d||l<=1&&["M"]||l<n.M&&["MM",l]||f<=1&&["y"]||["yy",f])[2]=t,d[3]=+e>0,d[4]=r,Xn.apply(null,d)}(this,!o,i,n),o&&(r=n.pastFuture(+this,r)),n.postformat(r)},Zn.toISOString=$n,Zn.toString=$n,Zn.toJSON=$n,Zn.locale=Jt,Zn.localeData=tn,Zn.toIsoString=R("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",$n),Zn.lang=en,L("X",0,0,"unix"),L("x",0,0,"valueOf"),pe("x",ce),pe("X",/[+-]?\d+(\.\d{1,3})?/),Ee("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Ee("x",(function(e,t,n){n._d=new Date(K(e))})),
|
|
//! moment.js
|
|
o.version="2.29.3",t=St,o.fn=gn,o.min=function(){var e=[].slice.call(arguments,0);return _t("isBefore",e)},o.max=function(){var e=[].slice.call(arguments,0);return _t("isAfter",e)},o.now=function(){return Date.now?Date.now():+new Date},o.utc=p,o.unix=function(e){return St(1e3*e)},o.months=function(e,t){return Tn(e,t,"months")},o.isDate=f,o.locale=at,o.invalid=g,o.duration=Vt,o.isMoment=C,o.weekdays=function(e,t,n){return Cn(e,t,n,"weekdays")},o.parseZone=function(){return St.apply(null,arguments).parseZone()},o.localeData=ut,o.isDuration=It,o.monthsShort=function(e,t){return Tn(e,t,"monthsShort")},o.weekdaysMin=function(e,t,n){return Cn(e,t,n,"weekdaysMin")},o.defineLocale=st,o.updateLocale=function(e,t){if(null!=t){var n,r,o=et;null!=tt[e]&&null!=tt[e].parentLocale?tt[e].set(_(tt[e]._config,t)):(null!=(r=it(e))&&(o=r._config),t=_(o,t),null==r&&(t.abbr=e),(n=new k(t)).parentLocale=tt[e],tt[e]=n),at(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?(tt[e]=tt[e].parentLocale,e===at()&&at(e)):null!=tt[e]&&delete tt[e]);return tt[e]},o.locales=function(){return O(tt)},o.weekdaysShort=function(e,t,n){return Cn(e,t,n,"weekdaysShort")},o.normalizeUnits=B,o.relativeTimeRounding=function(e){return void 0===e?zn:"function"==typeof e&&(zn=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==Kn[e]&&(void 0===t?Kn[e]:(Kn[e]=t,"s"===e&&(Kn.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=gn,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(102)}).call(this,n(755)(e))},function(e,t,n){var r=n(762),o=n(576);e.exports=function(e,t){var n=o(e,t,"get");return r(e,n)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(763),o=n(576);e.exports=function(e,t,n){var i=o(e,t,"set");return r(e,i,n),n},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";t.__esModule=!0,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 u=o(e,t),l=r;u.className&&(l="vertical"===n?a(u.className,r):s(u.className,r));i(e,t,"className",l)}(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.filterSeparators=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.KEY,n=e.slice(0);return n=c(n=l(n=u(n,t),t))},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.getValidSelection=function(e){var t=e.getSelected();if(!t)return null;if(t[0]<0)return null;return t},t.hasSubMenu=function(e){return(0,o.hasClass)(e,"htSubmenu")},t.isDisabled=function(e){return(0,o.hasClass)(e,"htDisabled")},t.isItemHidden=function(e,t){return!e.hidden||!("function"==typeof e.hidden&&e.hidden.call(t))},t.isSelectionDisabled=function(e){return(0,o.hasClass)(e,"htSelectionDisabled")},t.isSeparator=function(e){return(0,o.hasClass)(e,"htSeparator")},t.markLabelAsSelected=function(e){return'<span class="selected">'.concat(String.fromCharCode(10003),"</span>").concat(e)},t.normalizeSelection=function(e){return(0,r.arrayMap)(e,(function(e){return{start:e.getTopStartCorner(),end:e.getBottomEndCorner()}}))},t.prepareHorizontalAlignClass=s,t.prepareVerticalAlignClass=a,n(35),n(12),n(63),n(18),n(13),n(25),n(138);var r=n(20),o=n(23),i=n(313);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 u(e,t){for(var n=e.slice(0);0<n.length&&n[0].name===t;)n.shift();return n}function l(e,t){var n=e.slice(0);return n.reverse(),(n=u(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){"use strict";n.r(t),n.d(t,"ArithmeticHelper",(function(){return g})),n.d(t,"coerceComplexToString",(function(){return v})),n.d(t,"coerceToRange",(function(){return E})),n.d(t,"coerceToRangeNumbersOrError",(function(){return b})),n.d(t,"coerceBooleanToNumber",(function(){return T})),n.d(t,"coerceEmptyToValue",(function(){return C})),n.d(t,"coerceScalarToBoolean",(function(){return w})),n.d(t,"coerceScalarToString",(function(){return R})),n.d(t,"zeroIfEmpty",(function(){return O})),n.d(t,"numberCmp",(function(){return S})),n.d(t,"isNumberOverflow",(function(){return A})),n.d(t,"fixNegativeZero",(function(){return N})),n.d(t,"forceNormalizeString",(function(){return F})),n.d(t,"coerceRangeToScalar",(function(){return j})),n.d(t,"normalizeString",(function(){return U}));n(18),n(12),n(109),n(52),n(94),n(66),n(63),n(0),n(42),n(13),n(25),n(22),n(2),n(8),n(9),n(10),n(3),n(4);var r=n(694),o=n.n(r),i=n(24),a=n(45),s=n(695),u=n(51),l=n(78);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;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,t)||h(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 f(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||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.")}()}function d(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=h(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function h(e,t){if(e){if("string"==typeof e)return p(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)?p(e,t):void 0}}function p(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 y(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)}}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
var m=/^\s*([+-]?)\s*(([\d\.,]+(e[+-]?\d+)?)\s*([ij]?)|([ij]))\s*(([+-])\s*([+-]?)\s*(([\d\.,]+(e[+-]?\d+)?)\s*([ij]?)|([ij])))?$/,g=function(){function e(t,n,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=t,this.dateTimeHelper=n,this.numberLiteralsHelper=r,this.lt=function(e,t){return o.compare(e,t)<0},this.leq=function(e,t){return o.compare(e,t)<=0},this.gt=function(e,t){return o.compare(e,t)>0},this.geq=function(e,t){return o.compare(e,t)>=0},this.eq=function(e,t){return 0===o.compare(e,t)},this.neq=function(e,t){return 0!==o.compare(e,t)},this.pow=function(e,t){return Math.pow(Object(u.getRawValue)(e),Object(u.getRawValue)(t))},this.addWithEpsilonRaw=function(e,t){var n=e+t;return Math.abs(n)<o.actualEps*Math.abs(e)?0:n},this.addWithEpsilon=function(e,t){var n=D(e,t);return o.ExtendedNumberFactory(o.addWithEpsilonRaw(Object(u.getRawValue)(e),Object(u.getRawValue)(t)),n)},this.unaryMinus=function(e){return Object(u.cloneNumber)(e,-Object(u.getRawValue)(e))},this.unaryPlus=function(e){return e},this.unaryPercent=function(e){return new u.PercentNumber(Object(u.getRawValue)(e)/100)},this.concat=function(e,t){return e.concat(t)},this.nonstrictadd=function(e,t){return e instanceof i.CellError?e:t instanceof i.CellError?t:"number"==typeof e?"number"==typeof t?o.addWithEpsilonRaw(e,t):e:"number"==typeof t?t:0},this.subtract=function(e,t){var n=D(e,t),r=Object(u.getRawValue)(e),i=r-Object(u.getRawValue)(t);return Math.abs(i)<o.actualEps*Math.abs(r)&&(i=0),o.ExtendedNumberFactory(i,n)},this.divide=function(e,t){var n=Object(u.getRawValue)(e),r=Object(u.getRawValue)(t);if(0===r)return new i.CellError(i.ErrorType.DIV_BY_ZERO);var a=L(e,t);return o.ExtendedNumberFactory(n/r,a)},this.multiply=function(e,t){var n=L(e,t);return o.ExtendedNumberFactory(Object(u.getRawValue)(e)*Object(u.getRawValue)(t),n)},this.manyToExactComplex=function(e){var t,n=[],r=d(e);try{for(r.s();!(t=r.n()).done;){var a=t.value;if(a instanceof i.CellError)return a;if(Object(u.isExtendedNumber)(a)||"string"==typeof a){var s=o.coerceScalarToComplex(a);s instanceof i.CellError||n.push(s)}}}catch(e){r.e(e)}finally{r.f()}return n},this.coerceNumbersExactRanges=function(e){return o.manyToNumbers(e,o.manyToExactNumbers)},this.coerceNumbersCoerceRangesDropNulls=function(e){return o.manyToNumbers(e,o.manyToCoercedNumbersDropNulls)},this.manyToExactNumbers=function(e){var t,n=[],r=d(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;if(o instanceof i.CellError)return o;Object(u.isExtendedNumber)(o)&&n.push(Object(u.getRawValue)(o))}}catch(e){r.e(e)}finally{r.f()}return n},this.manyToOnlyNumbersDropNulls=function(e){var t,n=[],r=d(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;if(o instanceof i.CellError)return o;if(Object(u.isExtendedNumber)(o))n.push(Object(u.getRawValue)(o));else if(o!==u.EmptyValue)return new i.CellError(i.ErrorType.VALUE,a.ErrorMessage.NumberExpected)}}catch(e){r.e(e)}finally{r.f()}return n},this.manyToCoercedNumbersDropNulls=function(e){var t,n=[],r=d(e);try{for(r.s();!(t=r.n()).done;){var a=t.value;if(a instanceof i.CellError)return a;if(a!==u.EmptyValue){var s=o.coerceScalarToNumberOrError(a);Object(u.isExtendedNumber)(s)&&n.push(Object(u.getRawValue)(s))}}}catch(e){r.e(e)}finally{r.f()}return n},this.collator=Object(s.collatorFromConfig)(t),this.actualEps=t.smartRounding?t.precisionEpsilon:0}var t,n,r;return t=e,(n=[{key:"eqMatcherFunction",value:function(e){var t=this,n=this.buildRegex(e);return function(e){return"string"==typeof e&&n.test(t.normalizeString(e))}}},{key:"neqMatcherFunction",value:function(e){var t=this,n=this.buildRegex(e);return function(e){return!("string"==typeof e&&n.test(t.normalizeString(e)))}}},{key:"searchString",value:function(e,t){var n,r=this.buildRegex(e,!1).exec(t);return null!==(n=null==r?void 0:r.index)&&void 0!==n?n:-1}},{key:"requiresRegex",value:function(e){if(!this.config.useRegularExpressions&&!this.config.useWildcards)return!this.config.matchWholeCell;for(var t=0;t<e.length;t++){var n=e.charAt(t);if(_(n)||this.config.useRegularExpressions&&M(n))return!0}return!1}},{key:"floatCmp",value:function(e,t){var n=Object(u.getRawValue)(e),r=Object(u.getRawValue)(t),o=1+this.actualEps;return r>=0&&n*o>=r&&n<=r*o||r<=0&&n*o<=r&&n>=r*o?0:n>r?1:-1}},{key:"coerceScalarToNumberOrError",value:function(e){var t;return e instanceof i.CellError?e:null!==(t=this.coerceToMaybeNumber(e))&&void 0!==t?t:new i.CellError(i.ErrorType.VALUE,a.ErrorMessage.NumberCoercion)}},{key:"coerceToMaybeNumber",value:function(e){var t;return null!==(t=this.coerceNonDateScalarToMaybeNumber(e))&&void 0!==t?t:"string"==typeof e?this.dateTimeHelper.dateStringToDateNumber(e):void 0}},{key:"coerceNonDateScalarToMaybeNumber",value:function(e){return e===u.EmptyValue?0:"string"==typeof e?""===e?0:this.numberLiteralsHelper.numericStringToMaybeNumber(e.trim()):Object(u.isExtendedNumber)(e)?e:"boolean"==typeof e?Number(e):void 0}},{key:"coerceComplexExactRanges",value:function(e){var t,n=[],r=d(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;if(o instanceof l.SimpleRangeValue)n.push(o);else if(o!==u.EmptyValue){var a=this.coerceScalarToComplex(o);if(a instanceof i.CellError)return a;n.push(a)}}}catch(e){r.e(e)}finally{r.f()}for(var s=[],c=0,h=n;c<h.length;c++){var p=h[c];if(p instanceof l.SimpleRangeValue){var y=this.manyToExactComplex(p.valuesFromTopLeftCorner());if(y instanceof i.CellError)return y;s.push.apply(s,f(y))}else s.push(p)}return s}},{key:"coerceScalarToComplex",value:function(e){return e instanceof i.CellError?e:e===u.EmptyValue?[0,0]:Object(u.isExtendedNumber)(e)?[Object(u.getRawValue)(e),0]:"string"==typeof e?this.coerceStringToComplex(e):new i.CellError(i.ErrorType.NUM,a.ErrorMessage.ComplexNumberExpected)}},{key:"ExtendedNumberFactory",value:function(e,t){var n=t.type,r=t.format;switch(n){case u.NumberType.NUMBER_RAW:return e;case u.NumberType.NUMBER_CURRENCY:return new u.CurrencyNumber(e,null!=r?r:this.config.currencySymbol[0]);case u.NumberType.NUMBER_DATE:return new u.DateNumber(e,r);case u.NumberType.NUMBER_DATETIME:return new u.DateTimeNumber(e,r);case u.NumberType.NUMBER_TIME:return new u.TimeNumber(e,r);case u.NumberType.NUMBER_PERCENT:return new u.PercentNumber(e,r)}}},{key:"buildRegex",value:function(e){var t,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e=this.normalizeString(e);var r=this.config.useWildcards,o=this.config.useRegularExpressions;if(o)try{RegExp(e)}catch(e){o=!1,r=!1}return t=o?x(e,this.config.caseSensitive):r?I(e,this.config.caseSensitive):P(e,this.config.caseSensitive),this.config.matchWholeCell&&n?RegExp("^("+t+")$"):RegExp(t)}},{key:"normalizeString",value:function(e){return this.config.caseSensitive||(e=e.toLowerCase()),this.config.accentSensitive||(e=U(e,"nfd").replace(/[\u0300-\u036f]/g,"")),e}},{key:"compare",value:function(e,t){if("string"==typeof e||"string"==typeof t){var n="string"==typeof e?this.dateTimeHelper.dateStringToDateNumber(e):e,r="string"==typeof t?this.dateTimeHelper.dateStringToDateNumber(t):t;if(Object(u.isExtendedNumber)(n)&&Object(u.isExtendedNumber)(r))return this.floatCmp(n,r)}return e===u.EmptyValue?e=C(t):t===u.EmptyValue&&(t=C(e)),"string"==typeof e&&"string"==typeof t?this.stringCmp(e,t):"boolean"==typeof e&&"boolean"==typeof t?S(T(e),T(t)):Object(u.isExtendedNumber)(e)&&Object(u.isExtendedNumber)(t)?this.floatCmp(e,t):e===u.EmptyValue&&t===u.EmptyValue?0:S(Object(i.CellValueTypeOrd)(Object(i.getCellValueType)(e)),Object(i.CellValueTypeOrd)(Object(i.getCellValueType)(t)))}},{key:"stringCmp",value:function(e,t){return this.collator.compare(e,t)}},{key:"manyToNumbers",value:function(e,t){var n,r=[],o=d(e);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(a instanceof l.SimpleRangeValue)r.push(a);else{var s=Object(u.getRawValue)(this.coerceScalarToNumberOrError(a));if(s instanceof i.CellError)return s;r.push(s)}}}catch(e){o.e(e)}finally{o.f()}for(var c=[],h=0,p=r;h<p.length;h++){var y=p[h];if(y instanceof l.SimpleRangeValue){var m=t(y.valuesFromTopLeftCorner());if(m instanceof i.CellError)return m;c.push.apply(c,f(m))}else c.push(y)}return c}},{key:"coerceStringToComplex",value:function(e){var t,n,r=m.exec(e);return null===r?new i.CellError(i.ErrorType.NUM,a.ErrorMessage.ComplexNumberExpected):(t=void 0!==r[6]?"-"===r[1]?[0,-1]:[0,1]:this.parseComplexToken(r[1]+r[3],r[5]))instanceof i.CellError||void 0===r[8]?t:(n=void 0!==r[14]?"-"===r[9]?[0,-1]:[0,1]:this.parseComplexToken(r[9]+r[11],r[13]))instanceof i.CellError?n:""!==r[5]||""===r[13]?new i.CellError(i.ErrorType.NUM,a.ErrorMessage.ComplexNumberExpected):"+"===r[8]?[t[0]+n[0],t[1]+n[1]]:[t[0]-n[0],t[1]-n[1]]}},{key:"parseComplexToken",value:function(e,t){var n=Object(u.getRawValue)(this.coerceNonDateScalarToMaybeNumber(e));return void 0===n?new i.CellError(i.ErrorType.NUM,a.ErrorMessage.ComplexNumberExpected):""===t?[n,0]:[0,n]}}])&&y(t.prototype,n),r&&y(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function v(e,t){var n=c(e,2),r=n[0],o=n[1];if(!isFinite(r)||!isFinite(o))return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.NaN);if(t=null!=t?t:"i",0===o)return"".concat(r);var s="".concat(-1===o||1===o?"":Math.abs(o)).concat(t);return 0===r?"".concat(o<0?"-":"").concat(s):"".concat(r).concat(o<0?"-":"+").concat(s)}function E(e){return e instanceof l.SimpleRangeValue?e:l.SimpleRangeValue.fromScalar(e)}function b(e){return e instanceof l.SimpleRangeValue&&e.hasOnlyNumbers()||e instanceof i.CellError?e:Object(u.isExtendedNumber)(e)?l.SimpleRangeValue.fromScalar(e):null}function T(e){return Number(e)}function C(e){return"string"==typeof e?"":Object(u.isExtendedNumber)(e)?0:"boolean"!=typeof e&&u.EmptyValue}function w(e){if(e instanceof i.CellError||"boolean"==typeof e)return e;if(e===u.EmptyValue)return!1;if(Object(u.isExtendedNumber)(e))return 0!==Object(u.getRawValue)(e);var t=e.toUpperCase();return"TRUE"===t||"FALSE"!==t&&(""!==t&&void 0)}function R(e){return e instanceof i.CellError||"string"==typeof e?e:e===u.EmptyValue?"":Object(u.isExtendedNumber)(e)?Object(u.getRawValue)(e).toString():e?"TRUE":"FALSE"}function O(e){return e===u.EmptyValue?0:e}function S(e,t){var n=Object(u.getRawValue)(e),r=Object(u.getRawValue)(t);return n>r?1:n<r?-1:0}function A(e){return isNaN(e)||e===1/0||e===-1/0}function N(e){return 0===e?0:e}function _(e){return["*","?"].includes(e)}var k=["{","}","[","]","(",")","<",">","=",".","+","-",",","\\","$","^","!"];function M(e){return k.includes(e)}function I(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if("~"===o){if(r==e.length-1){n+="~";continue}var i=e.charAt(r+1);_(i)||M(i)?(n+="\\"+i,r++):(n+=i,r++)}else _(o)?n+="."+o:M(o)?n+="\\"+o:n+=t?o:o.toLowerCase()}return n}function P(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);_(o)||M(o)?n+="\\"+o:n+=t?o:o.toLowerCase()}return n}function x(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);_(o)||M(o)?n+=o:n+=t?o:o.toLowerCase()}return n}function D(e,t){var n=Object(u.getTypeFormatOfExtendedNumber)(e),r=n.type,o=n.format,i=Object(u.getTypeFormatOfExtendedNumber)(t),a=i.type,s=i.format;if(r===u.NumberType.NUMBER_RAW)return{type:a,format:s};if(a===u.NumberType.NUMBER_RAW)return{type:r,format:o};if(!(r!==u.NumberType.NUMBER_DATETIME&&r!==u.NumberType.NUMBER_DATE||a!==u.NumberType.NUMBER_DATETIME&&a!==u.NumberType.NUMBER_DATE))return{type:u.NumberType.NUMBER_RAW};if(r===u.NumberType.NUMBER_TIME){if(a===u.NumberType.NUMBER_DATE)return{type:u.NumberType.NUMBER_DATETIME,format:s+" "+o};if(a===u.NumberType.NUMBER_DATETIME)return{type:u.NumberType.NUMBER_DATETIME,format:s}}if(a===u.NumberType.NUMBER_TIME){if(r===u.NumberType.NUMBER_DATE)return{type:u.NumberType.NUMBER_DATETIME,format:o+" "+s};if(r===u.NumberType.NUMBER_DATETIME)return{type:u.NumberType.NUMBER_DATETIME,format:o}}return{type:r,format:o}}function L(e,t){var n=Object(u.getTypeFormatOfExtendedNumber)(e),r=n.type,o=n.format,i=Object(u.getTypeFormatOfExtendedNumber)(t),a=i.type,s=i.format;return r===u.NumberType.NUMBER_PERCENT&&(r=u.NumberType.NUMBER_RAW,o=void 0),a===u.NumberType.NUMBER_PERCENT&&(a=u.NumberType.NUMBER_RAW,s=void 0),r===u.NumberType.NUMBER_RAW?{type:a,format:s}:a===u.NumberType.NUMBER_RAW?{type:r,format:o}:{type:u.NumberType.NUMBER_RAW}}function F(e){return U(e.toLowerCase(),"nfd").replace(/[\u0300-\u036f]/g,"")}function j(e,t){var n;if(e.isAdHoc())return null===(n=e.data[0])||void 0===n?void 0:n[0];var r=e.range;if(t.formulaAddress.sheet===r.sheet)if(1===r.width()){var o=t.formulaAddress.row-r.start.row;if(o>=0&&o<r.height())return e.data[o][0]}else if(1===r.height()){var i=t.formulaAddress.col-r.start.col;if(i>=0&&i<r.width())return e.data[0][i]}}function U(e,t){return"function"==typeof e.normalize?e.normalize(t.toUpperCase()):o.a[t](e)}},function(e,t,n){var r=n(29),o=n(60),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},function(e,t,n){"use strict";n.r(t),n.d(t,"isRecognitionException",(function(){return i})),n.d(t,"MismatchedTokenException",(function(){return a})),n.d(t,"NoViableAltException",(function(){return s})),n.d(t,"NotAllInputParsedException",(function(){return u})),n.d(t,"EarlyExitException",(function(){return l}));var r=n(48),o=["MismatchedTokenException","NoViableAltException","EarlyExitException","NotAllInputParsedException"];function i(e){return Object(r.contains)(o,e.name)}function a(e,t,n){this.name="MismatchedTokenException",this.message=e,this.token=t,this.previousToken=n,this.resyncedTokens=[]}function s(e,t,n){this.name="NoViableAltException",this.message=e,this.token=t,this.previousToken=n,this.resyncedTokens=[]}function u(e,t){this.name="NotAllInputParsedException",this.message=e,this.token=t,this.resyncedTokens=[]}function l(e,t,n){this.name="EarlyExitException",this.message=e,this.token=t,this.previousToken=n,this.resyncedTokens=[]}Object.freeze(o),a.prototype=Error.prototype,s.prototype=Error.prototype,u.prototype=Error.prototype,l.prototype=Error.prototype},function(e,t,n){"use strict";var r=n(28),o=n(353).trim;r({target:"String",proto:!0,forced:n(693)("trim")},{trim:function(){return o(this)}})},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.collection=void 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 u(){return(0,o.default)(t.values())}return{register:n,getItem:r,hasItem:a,getNames:s,getValues:u}};var o=r(n(44));n(3),n(33),n(0),n(2),n(4);var i=new Map;t.collection=i},function(e,t,n){"use strict";t.__esModule=!0,t.HEADER_TYPE=t.FILL_TYPE=t.CUSTOM_SELECTION_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(69),o=n(70),i=n(202),a=n(166),s=n(93),u=n(203),l=n(62),c=n(323),f=Object.getOwnPropertyDescriptor;t.f=r?f:function(e,t){if(e=s(e),t=u(t),c)try{return f(e,t)}catch(e){}if(l(e,t))return a(!o(i.f,e,t),e[t])}},function(e,t,n){var r,o,i,a=n(325),s=n(29),u=n(36),l=n(64),c=n(121),f=n(62),d=n(239),h=n(206),p=n(172),y=s.TypeError,m=s.WeakMap;if(a||d.state){var g=d.state||(d.state=new m),v=u(g.get),E=u(g.has),b=u(g.set);r=function(e,t){if(E(g,e))throw new y("Object already initialized");return t.facade=e,b(g,e,t),t},o=function(e){return v(g,e)||{}},i=function(e){return E(g,e)}}else{var T=h("state");p[T]=!0,r=function(e,t){if(f(e,T))throw new y("Object already initialized");return t.facade=e,c(e,T,t),t},o=function(e){return f(e,T)?e[T]:{}},i=function(e){return f(e,T)}}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 y("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){"use strict";var r,o=n(28),i=n(36),a=n(112).f,s=n(131),u=n(71),l=n(248),c=n(89),f=n(250),d=n(130),h=i("".startsWith),p=i("".slice),y=Math.min,m=f("startsWith");o({target:"String",proto:!0,forced:!!(d||m||(r=a(String.prototype,"startsWith"),!r||r.writable))&&!m},{startsWith:function(e){var t=u(c(this));l(e);var n=s(y(arguments.length>1?arguments[1]:void 0,t.length)),r=u(e);return h?h(t,r,n):p(t,n,n+r.length)===r}})},function(e,t,n){"use strict";n.r(t),n.d(t,"FormulaVertex",(function(){return T})),n.d(t,"ArrayVertex",(function(){return C})),n.d(t,"FormulaCellVertex",(function(){return w}));n(8),n(9),n(0),n(10),n(3),n(2),n(4),n(13),n(25),n(22),n(12),n(27),n(7);var r=n(86),o=n(124),i=n(368),a=n(24),s=n(45),u=n(51),l=n(186);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;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,t)||function(e,t){if(!e)return;if("string"==typeof e)return g(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 g(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 g(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 v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(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 b(e,t,n){return t&&E(e.prototype,t),n&&E(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var T=function(){function e(t,n,r){v(this,e),this.formula=t,this.cellAddress=n,this.version=r}return b(e,[{key:"width",get:function(){return 1}},{key:"height",get:function(){return 1}},{key:"getFormula",value:function(e){return this.ensureRecentData(e),this.formula}},{key:"ensureRecentData",value:function(e){if(this.version!=e.version()){var t=m(e.applyTransformations(this.formula,this.cellAddress,this.version),3),n=t[0],r=t[1],o=t[2];this.formula=n,this.cellAddress=r,this.version=o}}},{key:"getAddress",value:function(e){return this.ensureRecentData(e),this.cellAddress}}],[{key:"fromAst",value:function(e,t,n,r){return n.isScalar()?new w(e,t,r):new C(e,t,n,r)}}]),e}(),C=function(e){f(n,e);var t=h(n);function n(e,r,u){var l,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return v(this,n),l=t.call(this,e,r,c),u.isRef?l.array=new i.ErroredArray(new a.CellError(a.ErrorType.REF,s.ErrorMessage.NoSpaceForArrayResult),o.ArraySize.error()):l.array=new i.NotComputedArray(u),l}return b(n,[{key:"width",get:function(){return this.array.width()}},{key:"height",get:function(){return this.array.height()}},{key:"sheet",get:function(){return this.cellAddress.sheet}},{key:"leftCorner",get:function(){return this.cellAddress}},{key:"setCellValue",value:function(e){if(e instanceof a.CellError)return this.setErrorValue(e),e;var t=i.ArrayValue.fromInterpreterValue(e);return t.resize(this.array.size),this.array=t,e}},{key:"getCellValue",value:function(){if(this.array instanceof i.NotComputedArray)throw Error("Array not computed yet.");return this.array.simpleRangeValue()}},{key:"valueOrUndef",value:function(){if(!(this.array instanceof i.NotComputedArray))return this.array.simpleRangeValue()}},{key:"getArrayCellValue",value:function(e){var t=e.col-this.cellAddress.col,n=e.row-this.cellAddress.row;try{return this.array.get(t,n)}catch(e){return new a.CellError(a.ErrorType.REF)}}},{key:"getArrayCellRawValue",value:function(e){var t=this.getArrayCellValue(e);return t instanceof a.CellError||t===u.EmptyValue?void 0:Object(u.getRawValue)(t)}},{key:"setArrayCellValue",value:function(e,t){var n=e.col-this.cellAddress.col,r=e.row-this.cellAddress.row;this.array instanceof i.ArrayValue&&this.array.set(n,r,t)}},{key:"setNoSpace",value:function(){return this.array=new i.ErroredArray(new a.CellError(a.ErrorType.SPILL,s.ErrorMessage.NoSpaceForArrayResult),o.ArraySize.error()),this.getCellValue()}},{key:"getRange",value:function(){return r.AbsoluteCellRange.spanFrom(this.cellAddress,this.width,this.height)}},{key:"getRangeOrUndef",value:function(){return r.AbsoluteCellRange.spanFromOrUndef(this.cellAddress,this.width,this.height)}},{key:"setAddress",value:function(e){this.cellAddress=e}},{key:"setFormula",value:function(e){this.formula=e}},{key:"spansThroughSheetRows",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;return this.cellAddress.sheet===e&&this.cellAddress.row<=n&&t<this.cellAddress.row+this.height}},{key:"spansThroughSheetColumn",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;return this.cellAddress.sheet===e&&this.cellAddress.col<=n&&t<this.cellAddress.col+this.width}},{key:"isComputed",value:function(){return!(this.array instanceof i.NotComputedArray)}},{key:"columnsFromArray",value:function(){return l.ColumnsSpan.fromNumberOfColumns(this.cellAddress.sheet,this.cellAddress.col,this.width)}},{key:"rowsFromArray",value:function(){return l.RowsSpan.fromNumberOfRows(this.cellAddress.sheet,this.cellAddress.row,this.height)}},{key:"ensureRecentData",value:function(e){}},{key:"isLeftCorner",value:function(e){return Object(a.equalSimpleCellAddress)(this.cellAddress,e)}},{key:"setErrorValue",value:function(e){this.array=new i.ErroredArray(e,this.array.size)}}]),n}(T),w=function(e){f(n,e);var t=h(n);function n(e,r,o){return v(this,n),t.call(this,e,r,o)}return b(n,[{key:"valueOrUndef",value:function(){return this.cachedCellValue}},{key:"setCellValue",value:function(e){return this.cachedCellValue=e,this.cachedCellValue}},{key:"getCellValue",value:function(){if(void 0!==this.cachedCellValue)return this.cachedCellValue;throw Error("Value of the formula cell is not computed.")}},{key:"isComputed",value:function(){return void 0!==this.cachedCellValue}}]),n}(T)},function(e,t,n){"use strict";t.__esModule=!0,t.KEY_CODES=void 0,t.isCtrlKey=function(e){var t=[];(0,o.isMacOS)()?t.push(i.COMMAND_LEFT,i.COMMAND_RIGHT,i.COMMAND_FIREFOX):t.push(i.CONTROL);return t.includes(e)},t.isCtrlMetaKey=function(e){return[i.CONTROL,i.COMMAND_LEFT,i.COMMAND_RIGHT,i.COMMAND_FIREFOX].includes(e)},t.isFunctionKey=function(e){return a.includes(e)},t.isKey=function(e,t){var n=t.split("|"),o=!1;return(0,r.arrayEach)(n,(function(t){if(e===i[t])return o=!0,!1})),o},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},n(42),n(49),n(12),n(61);var r=n(20),o=n(101),i={ALT:18,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,ARROW_UP:38,AUDIO_DOWN:(0,o.isFirefox)()?182:174,AUDIO_MUTE:(0,o.isFirefox)()?181:173,AUDIO_UP:(0,o.isFirefox)()?183:175,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND_LEFT:91,COMMAND_RIGHT:93,COMMAND_FIREFOX:224,CONTROL:17,DELETE:46,END:35,ENTER:13,ESCAPE:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,F16:127,F17:128,F18:129,F19:130,HOME:36,INSERT:45,MEDIA_NEXT:176,MEDIA_PLAY_PAUSE:179,MEDIA_PREV:177,MEDIA_STOP:178,NULL:0,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PERIOD:190,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,A:65,C:67,D:68,F:70,L:76,O:79,P:80,S:83,V:86,X:88,Y:89,Z:90};t.KEY_CODES=i;var a=[i.ALT,i.ARROW_DOWN,i.ARROW_LEFT,i.ARROW_RIGHT,i.ARROW_UP,i.AUDIO_DOWN,i.AUDIO_MUTE,i.AUDIO_UP,i.BACKSPACE,i.CAPS_LOCK,i.DELETE,i.END,i.ENTER,i.ESCAPE,i.F1,i.F2,i.F3,i.F4,i.F5,i.F6,i.F7,i.F8,i.F9,i.F10,i.F11,i.F12,i.F13,i.F14,i.F15,i.F16,i.F17,i.F18,i.F19,i.HOME,i.INSERT,i.MEDIA_NEXT,i.MEDIA_PLAY_PAUSE,i.MEDIA_PREV,i.MEDIA_STOP,i.NULL,i.NUM_LOCK,i.PAGE_DOWN,i.PAGE_UP,i.PAUSE,i.SCROLL_LOCK,i.SHIFT,i.TAB]},function(e,t,n){var r=n(817);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.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.UNDO=t.SEPARATOR=t.ROW_BELOW=t.ROW_ABOVE=t.REMOVE_ROW=t.REMOVE_COLUMN=t.REDO=t.READ_ONLY=t.NO_ITEMS=t.ITEMS=t.COLUMN_RIGHT=t.COLUMN_LEFT=t.CLEAR_COLUMN=t.ALIGNMENT=void 0,t.addItem=function(e,t){-1===w.indexOf(e)&&(R[e]=t)},t.predefinedItems=function(){var e={};return(0,a.objectEach)(R,(function(t,n){e[n]=t()})),e},n(35);var i=r(n(43)),a=n(17),s=C(n(930));t.ALIGNMENT=s.KEY;var u=C(n(931));t.CLEAR_COLUMN=u.KEY;var l=C(n(932));t.COLUMN_LEFT=l.KEY;var c=C(n(933));t.COLUMN_RIGHT=c.KEY;var f=C(n(934));t.READ_ONLY=f.KEY;var d=C(n(935));t.REDO=d.KEY;var h=C(n(936));t.REMOVE_COLUMN=h.KEY;var p=C(n(937));t.REMOVE_ROW=p.KEY;var y=C(n(938));t.ROW_ABOVE=y.KEY;var m=C(n(939));t.ROW_BELOW=m.KEY;var g=C(n(313));t.SEPARATOR=g.KEY;var v=C(n(940));t.NO_ITEMS=v.KEY;var E,b=C(n(941));function T(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(T=function(e){return e?n:t})(e)}function C(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=T(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}t.UNDO=b.KEY;var w=[y.KEY,m.KEY,l.KEY,c.KEY,u.KEY,p.KEY,h.KEY,b.KEY,d.KEY,f.KEY,s.KEY,g.KEY,v.KEY];t.ITEMS=w;var R=(E={},(0,i.default)(E,g.KEY,g.default),(0,i.default)(E,v.KEY,v.default),(0,i.default)(E,y.KEY,y.default),(0,i.default)(E,m.KEY,m.default),(0,i.default)(E,l.KEY,l.default),(0,i.default)(E,c.KEY,c.default),(0,i.default)(E,u.KEY,u.default),(0,i.default)(E,p.KEY,p.default),(0,i.default)(E,h.KEY,h.default),(0,i.default)(E,b.KEY,b.default),(0,i.default)(E,d.KEY,d.default),(0,i.default)(E,f.KEY,f.default),(0,i.default)(E,s.KEY,s.default),E)},function(e,t,n){var r=n(36),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},function(e,t,n){var r=n(36);e.exports=r({}.isPrototypeOf)},function(e,t,n){var r=n(69),o=n(84),i=n(166);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){var n=Math.ceil,r=Math.floor;e.exports=function(e){var t=+e;return t!=t||0===t?0:(t>0?r:n)(t)}},function(e,t,n){"use strict";n.r(t);var r=n(347);n.d(t,"DependencyGraph",(function(){return r.DependencyGraph}));var o=n(274);n.d(t,"AddressMapping",(function(){return o.AddressMapping}));var i=n(277);n.d(t,"Graph",(function(){return i.Graph}));var a=n(278);n.d(t,"RangeMapping",(function(){return a.RangeMapping}));var s=n(279);n.d(t,"SheetMapping",(function(){return s.SheetMapping}));var u=n(275);n.d(t,"ArrayMapping",(function(){return u.ArrayMapping}));var l=n(115);n.d(t,"FormulaCellVertex",(function(){return l.FormulaCellVertex}));var c=n(371);n.d(t,"EmptyCellVertex",(function(){return c.EmptyCellVertex}));var f=n(372);n.d(t,"ValueCellVertex",(function(){return f.ValueCellVertex}));var d=n(373);n.d(t,"ParsingErrorVertex",(function(){return d.ParsingErrorVertex}));var h=n(276);n.d(t,"RangeVertex",(function(){return h.RangeVertex}));var p=n(281);n.d(t,"SparseStrategy",(function(){return p.SparseStrategy}));var y=n(282);n.d(t,"DenseStrategy",(function(){return y.DenseStrategy})),n.d(t,"ArrayVertex",(function(){return l.ArrayVertex}))},function(e,t,n){"use strict";n.r(t),n.d(t,"ArraySize",(function(){return h})),n.d(t,"ArraySizePredictor",(function(){return p}));n(99),n(0),n(37),n(13),n(25),n(22),n(2),n(12),n(8),n(9),n(10),n(3),n(4);var r=n(86),o=n(187),i=n(38),a=n(72);function s(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||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.")}()}function u(e,t){if(e){if("string"==typeof e)return l(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)?l(e,t):void 0}}function l(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 c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var h=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(c(this,e),this.width=t,this.height=n,this.isRef=r,t<=0||n<=0)throw Error("Incorrect array size")}return d(e,[{key:"isScalar",value:function(){return this.width<=1&&this.height<=1||this.isRef}}],[{key:"fromArray",value:function(t){return new e(t.length>0?t[0].length:0,t.length)}},{key:"error",value:function(){return new e(1,1,!0)}},{key:"scalar",value:function(){return new e(1,1,!1)}}]),e}();var p=function(){function e(t,n){c(this,e),this.config=t,this.functionRegistry=n}return d(e,[{key:"checkArraySize",value:function(e,t){return this.checkArraySizeForAst(e,{formulaAddress:t,arraysFlag:this.config.useArrayArithmetic})}},{key:"checkArraySizeForAst",value:function(e,t){var n,o,i,l=this;switch(e.type){case a.AstNodeType.FUNCTION_CALL:return this.checkArraySizeForFunction(e,t);case a.AstNodeType.COLUMN_RANGE:case a.AstNodeType.ROW_RANGE:case a.AstNodeType.CELL_RANGE:var c=r.AbsoluteCellRange.fromAstOrUndef(e,t.formulaAddress);return void 0===c?h.error():new h(c.width(),c.height(),!0);case a.AstNodeType.ARRAY:var f,d=[],p=[],y=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=u(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(e.args);try{for(y.s();!(f=y.n()).done;){var m=f.value.map((function(e){return l.checkArraySizeForAst(e,t)})),g=Math.min.apply(Math,s(m.map((function(e){return e.height})))),v=m.reduce((function(e,t){return e+t.width}),0);d.push(g),p.push(v)}}catch(e){y.e(e)}finally{y.f()}var E=d.reduce((function(e,t){return e+t}),0),b=Math.min.apply(Math,p);return new h(b,E);case a.AstNodeType.STRING:case a.AstNodeType.NUMBER:return h.scalar();case a.AstNodeType.CELL_REFERENCE:return new h(1,1,!0);case a.AstNodeType.DIV_OP:case a.AstNodeType.CONCATENATE_OP:case a.AstNodeType.EQUALS_OP:case a.AstNodeType.GREATER_THAN_OP:case a.AstNodeType.GREATER_THAN_OR_EQUAL_OP:case a.AstNodeType.LESS_THAN_OP:case a.AstNodeType.LESS_THAN_OR_EQUAL_OP:case a.AstNodeType.MINUS_OP:case a.AstNodeType.NOT_EQUAL_OP:case a.AstNodeType.PLUS_OP:case a.AstNodeType.POWER_OP:case a.AstNodeType.TIMES_OP:var T=this.checkArraySizeForAst(e.left,t),C=this.checkArraySizeForAst(e.right,t);return!t.arraysFlag&&(T.height>1||T.width>1||C.height>1||C.width>1)?h.error():(o=T,i=C,new h(Math.max(o.width,i.width),Math.max(o.height,i.height)));case a.AstNodeType.MINUS_UNARY_OP:case a.AstNodeType.PLUS_UNARY_OP:case a.AstNodeType.PERCENT_OP:var w=this.checkArraySizeForAst(e.value,t);return!t.arraysFlag&&(w.height>1||w.width>1)?h.error():new h((n=w).width,n.height);case a.AstNodeType.PARENTHESIS:return this.checkArraySizeForAst(e.expression,t);case a.AstNodeType.EMPTY:default:return h.error()}}},{key:"checkArraySizeForFunction",value:function(e,t){var n=this,r=this.functionRegistry.getMetadata(e.procedureName),a=this.functionRegistry.getArraySizeFunction(e.procedureName);if(void 0!==a)return a(e,t);var u=e.args.map((function(e){var i;return n.checkArraySizeForAst(e,new o.InterpreterState(t.formulaAddress,t.arraysFlag||null!==(i=null==r?void 0:r.arrayFunction)&&void 0!==i&&i))}));if(void 0===r||r.expandRanges||!t.arraysFlag||r.vectorizationForbidden||void 0===r.parameters)return new h(1,1);var l=s(r.parameters);if(void 0===r.repeatLastArgs&&l.length<u.length)return h.error();if(void 0!==r.repeatLastArgs&&l.length<u.length&&(u.length-l.length)%r.repeatLastArgs!=0)return h.error();for(;l.length<u.length;)l.push.apply(l,s(l.slice(l.length-r.repeatLastArgs)));for(var c=1,f=1,d=0;d<u.length;d++)l[d].argumentType!==i.ArgumentTypes.RANGE&&l[d].argumentType!==i.ArgumentTypes.ANY&&(f=Math.max(f,u[d].height),c=Math.max(c,u[d].width));return new h(c,f)}}]),e}()},function(e,t,n){"use strict";n.r(t);var r=n(367);n.d(t,"EmptyStatistics",(function(){return r.EmptyStatistics}));var o=n(272);n.d(t,"Statistics",(function(){return o.Statistics}));var i=n(273);n.d(t,"StatType",(function(){return i.StatType}))},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.cancelAnimationFrame=function(e){f.call(window,e)},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.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.isClassListSupported=function(){return!!document.documentElement.classList},t.isGetComputedStyleSupported=function(){return!!window.getComputedStyle},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},t.isTextContentSupported=function(){return!!document.createTextNode("test").textContent},t.isTouchSupported=function(){return"ontouchstart"in window},t.requestAnimationFrame=function(e){return c.call(window,e)};var o=r(n(21));n(76);for(var i,a,s,u=0,l=["ms","moz","webkit","o"],c=window.requestAnimationFrame,f=window.cancelAnimationFrame,d=0;d<l.length&&!c;++d)c=window["".concat(l[d],"RequestAnimationFrame")],f=window["".concat(l[d],"CancelAnimationFrame")]||window["".concat(l[d],"CancelRequestAnimationFrame")];c||(c=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-u)),r=window.setTimeout((function(){e(t+n)}),n);return u=t+n,r}),f||(f=function(e){clearTimeout(e)})},function(e,t,n){"use strict";n(73),t.__esModule=!0;var r=n(622);t.registerRootComparator=r.registerRootComparator,t.getRootComparator=r.getRootComparator,t.getCompareFunctionFactory=r.getCompareFunctionFactory;var o=n(917);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){var r=n(107);e.exports=r("navigator","userAgent")||""},function(e,t,n){var r=n(148);e.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}},function(e,t){e.exports=!1},function(e,t,n){var r=n(122),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(165),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},function(e,t,n){var r,o=n(65),i=n(331),a=n(243),s=n(172),u=n(332),l=n(205),c=n(206),f=c("IE_PROTO"),d=function(){},h=function(e){return"<script>"+e+"<\/script>"},p=function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t;y="undefined"!=typeof document?document.domain&&r?p(r):((t=l("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(h("document.F=Object")),e.close(),e.F):p(r);for(var n=a.length;n--;)delete y.prototype[a[n]];return y()};s[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(d.prototype=o(e),n=new d,d.prototype=null,n[f]=e):n=y(),void 0===t?n:i.f(n,t)}},function(e,t,n){var r=n(177),o=n(36),i=n(167),a=n(90),s=n(97),u=n(255),l=o([].push),c=function(e){var t=1==e,n=2==e,o=3==e,c=4==e,f=6==e,d=7==e,h=5==e||f;return function(p,y,m,g){for(var v,E,b=a(p),T=i(b),C=r(y,m),w=s(T),R=0,O=g||u,S=t?O(p,w):n||d?O(p,0):void 0;w>R;R++)if((h||R in T)&&(E=C(v=T[R],R,b),e))if(t)S[R]=E;else if(E)switch(e){case 3:return!0;case 5:return v;case 6:return R;case 2:l(S,v)}else switch(e){case 4:return!1;case 7:l(S,v)}return f?-1:o||c?c:S}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},function(e,t,n){"use strict";n.r(t),n.d(t,"GAstVisitor",(function(){return o}));var r=n(56),o=function(){function e(){}return e.prototype.visit=function(e){var t=e;switch(t.constructor){case r.NonTerminal:return this.visitNonTerminal(t);case r.Flat:return this.visitFlat(t);case r.Option:return this.visitOption(t);case r.RepetitionMandatory:return this.visitRepetitionMandatory(t);case r.RepetitionMandatoryWithSeparator:return this.visitRepetitionMandatoryWithSeparator(t);case r.RepetitionWithSeparator:return this.visitRepetitionWithSeparator(t);case r.Repetition:return this.visitRepetition(t);case r.Alternation:return this.visitAlternation(t);case r.Terminal:return this.visitTerminal(t);case r.Rule:return this.visitRule(t);default:throw Error("non exhaustive match")}},e.prototype.visitNonTerminal=function(e){},e.prototype.visitFlat=function(e){},e.prototype.visitOption=function(e){},e.prototype.visitRepetition=function(e){},e.prototype.visitRepetitionMandatory=function(e){},e.prototype.visitRepetitionMandatoryWithSeparator=function(e){},e.prototype.visitRepetitionWithSeparator=function(e){},e.prototype.visitAlternation=function(e){},e.prototype.visitTerminal=function(e){},e.prototype.visitRule=function(e){},e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"defaultParserErrorProvider",(function(){return u})),n.d(t,"defaultGrammarResolverErrorProvider",(function(){return l})),n.d(t,"defaultGrammarValidatorErrorProvider",(function(){return c}));var r=n(95),o=n(48),i=n(56),a=n(183),s=n(221),u={buildMismatchTokenMessage:function(e){var t=e.expected,n=e.actual;e.previous,e.ruleName;return"Expecting "+(Object(r.hasTokenLabel)(t)?"--\x3e "+Object(r.tokenLabel)(t)+" <--":"token of type --\x3e "+t.name+" <--")+" but found --\x3e '"+n.image+"' <--"},buildNotAllInputParsedMessage:function(e){var t=e.firstRedundant;e.ruleName;return"Redundant input, expecting EOF but found: "+t.image},buildNoViableAltMessage:function(e){var t=e.expectedPathsPerAlt,n=e.actual,i=(e.previous,e.customUserDescription),a=(e.ruleName,"\nbut found: '"+Object(o.first)(n).image+"'");if(i)return"Expecting: "+i+a;var s=Object(o.reduce)(t,(function(e,t){return e.concat(t)}),[]),u=Object(o.map)(s,(function(e){return"["+Object(o.map)(e,(function(e){return Object(r.tokenLabel)(e)})).join(", ")+"]"}));return"Expecting: "+("one of these possible Token sequences:\n"+Object(o.map)(u,(function(e,t){return" "+(t+1)+". "+e})).join("\n"))+a},buildEarlyExitMessage:function(e){var t=e.expectedIterationPaths,n=e.actual,i=e.customUserDescription,a=(e.ruleName,"\nbut found: '"+Object(o.first)(n).image+"'");return i?"Expecting: "+i+a:"Expecting: "+("expecting at least one iteration which starts with one of these possible Token sequences::\n <"+Object(o.map)(t,(function(e){return"["+Object(o.map)(e,(function(e){return Object(r.tokenLabel)(e)})).join(",")+"]"})).join(" ,")+">")+a}};Object.freeze(u);var l={buildRuleNotFoundError:function(e,t){return"Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+"<-\ninside top level rule: ->"+e.name+"<-"}},c={buildDuplicateFoundError:function(e,t){var n,r=e.name,s=Object(o.first)(t),u=s.idx,l=Object(a.getProductionDslName)(s),c=(n=s)instanceof i.Terminal?n.terminalType.name:n instanceof i.NonTerminal?n.nonTerminalName:"",f="->"+l+(u>0?u:"")+"<- "+(c?"with argument: ->"+c+"<-":"")+"\n appears more than once ("+t.length+" times) in the top level rule: ->"+r+"<-. \n For further details see: https://sap.github.io/chevrotain/docs/FAQ.html#NUMERICAL_SUFFIXES \n ";return f=(f=f.replace(/[ \t]+/g," ")).replace(/\s\s+/g,"\n")},buildInvalidNestedRuleNameError:function(e,t){return"Invalid nested rule name: ->"+t.name+"<- inside rule: ->"+e.name+"<-\nit must match the pattern: ->"+s.validNestedRuleName.toString()+"<-.\nNote that this means a nested rule name must start with the '$'(dollar) sign."},buildDuplicateNestedRuleNameError:function(e,t){return"Duplicate nested rule name: ->"+Object(o.first)(t).name+"<- inside rule: ->"+e.name+"<-\nA nested name must be unique in the scope of a top level grammar rule."},buildNamespaceConflictError:function(e){return"Namespace conflict found in grammar.\nThe grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <"+e.name+">.\nTo resolve this make sure each Terminal and Non-Terminal names are unique\nThis is easy to accomplish by using the convention that Terminal names start with an uppercase letter\nand Non-Terminal names start with a lower case letter."},buildAlternationPrefixAmbiguityError:function(e){var t=Object(o.map)(e.prefixPath,(function(e){return Object(r.tokenLabel)(e)})).join(", "),n=0===e.alternation.idx?"":e.alternation.idx;return"Ambiguous alternatives: <"+e.ambiguityIndices.join(" ,")+"> due to common lookahead prefix\nin <OR"+n+"> inside <"+e.topLevelRule.name+"> Rule,\n<"+t+"> may appears as a prefix path in all these alternatives.\nSee: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\nFor Further details."},buildAlternationAmbiguityError:function(e){var t=Object(o.map)(e.prefixPath,(function(e){return Object(r.tokenLabel)(e)})).join(", "),n=0===e.alternation.idx?"":e.alternation.idx,i="Ambiguous Alternatives Detected: <"+e.ambiguityIndices.join(" ,")+"> in <OR"+n+"> inside <"+e.topLevelRule.name+"> Rule,\n<"+t+"> may appears as a prefix path in all these alternatives.\n";return i+="See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\nFor Further details."},buildEmptyRepetitionError:function(e){var t=Object(a.getProductionDslName)(e.repetition);return 0!==e.repetition.idx&&(t+=e.repetition.idx),"The repetition <"+t+"> within Rule <"+e.topLevelRule.name+"> can never consume any tokens.\nThis could lead to an infinite loop."},buildTokenNameError:function(e){return"Invalid Grammar Token name: ->"+e.tokenType.name+"<- it must match the pattern: ->"+e.expectedPattern.toString()+"<-"},buildEmptyAlternationError:function(e){return"Ambiguous empty alternative: <"+(e.emptyChoiceIdx+1)+"> in <OR"+e.alternation.idx+"> inside <"+e.topLevelRule.name+"> Rule.\nOnly the last alternative may be an empty alternative."},buildTooManyAlternativesError:function(e){return"An Alternation cannot have more than 256 alternatives:\n<OR"+e.alternation.idx+"> inside <"+e.topLevelRule.name+"> Rule.\n has "+(e.alternation.definition.length+1)+" alternatives."},buildLeftRecursionError:function(e){var t=e.topLevelRule.name;return"Left Recursion found in grammar.\nrule: <"+t+"> can be invoked from itself (directly or indirectly)\nwithout consuming any Tokens. The grammar path that causes this is: \n "+(t+" --\x3e "+o.map(e.leftRecursionPath,(function(e){return e.name})).concat([t]).join(" --\x3e "))+"\n To fix this refactor your grammar to remove the left recursion.\nsee: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring."},buildInvalidRuleNameError:function(e){return"Invalid grammar rule name: ->"+e.topLevelRule.name+"<- it must match the pattern: ->"+e.expectedPattern.toString()+"<-"},buildDuplicateRuleNameError:function(e){return"Duplicate definition, rule: ->"+(e.topLevelRule instanceof i.Rule?e.topLevelRule.name:e.topLevelRule)+"<- is already defined in the grammar: ->"+e.grammarName+"<-"}}},function(e,t,n){var r=n(28),o=n(696),i=n(179);r({target:"Array",proto:!0},{fill:o}),i("fill")},function(e,t,n){"use strict";var r=n(28),o=n(36),i=n(175),a=o([].reverse),s=[1,2];r({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),a(this)}})},function(e,t,n){"use strict";n.r(t),n.d(t,"Transformer",(function(){return l}));n(87),n(37),n(13),n(0),n(25),n(22),n(2),n(12),n(8),n(9),n(10),n(3),n(4);var r=n(24),o=n(72);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;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,t)||a(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 a(e,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}function s(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 u(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)}}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
var l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,s;return t=e,(n=[{key:"performEagerTransformations",value:function(e,t){var n,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=a(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw i}}}}(e.arrayFormulaNodes());try{for(r.s();!(n=r.n()).done;){var o=n.value,s=i(this.transformSingleAst(o.getFormula(e.lazilyTransformingAstService),o.getAddress(e.lazilyTransformingAstService)),2),u=s[0],l=s[1],c=t.rememberNewAst(u);o.setFormula(c),o.setAddress(l)}}catch(e){r.e(e)}finally{r.f()}}},{key:"transformSingleAst",value:function(e,t){return[this.transformAst(e,t),this.fixNodeAddress(t)]}},{key:"transformAst",value:function(e,t){var n=this;switch(e.type){case o.AstNodeType.CELL_REFERENCE:return this.transformCellReferenceAst(e,t);case o.AstNodeType.CELL_RANGE:return this.transformCellRangeAst(e,t);case o.AstNodeType.COLUMN_RANGE:return this.transformColumnRangeAst(e,t);case o.AstNodeType.ROW_RANGE:return this.transformRowRangeAst(e,t);case o.AstNodeType.EMPTY:case o.AstNodeType.ERROR:case o.AstNodeType.NUMBER:case o.AstNodeType.NAMED_EXPRESSION:case o.AstNodeType.ERROR_WITH_RAW_INPUT:case o.AstNodeType.STRING:return e;case o.AstNodeType.PERCENT_OP:case o.AstNodeType.MINUS_UNARY_OP:case o.AstNodeType.PLUS_UNARY_OP:return Object.assign(Object.assign({},e),{value:this.transformAst(e.value,t)});case o.AstNodeType.FUNCTION_CALL:return Object.assign(Object.assign({},e),{procedureName:e.procedureName,args:e.args.map((function(e){return n.transformAst(e,t)}))});case o.AstNodeType.PARENTHESIS:return Object.assign(Object.assign({},e),{expression:this.transformAst(e.expression,t)});case o.AstNodeType.ARRAY:return Object.assign(Object.assign({},e),{args:e.args.map((function(e){return e.map((function(e){return n.transformAst(e,t)}))}))});default:return Object.assign(Object.assign({},e),{left:this.transformAst(e.left,t),right:this.transformAst(e.right,t)})}}},{key:"transformCellReferenceAst",value:function(e,t){var n=this.transformCellAddress(e.reference,t);return n instanceof o.CellAddress?Object.assign(Object.assign({},e),{reference:n}):n===r.ErrorType.REF?Object(o.buildCellErrorAst)(new r.CellError(r.ErrorType.REF)):e}},{key:"transformCellRangeAst",value:function(e,t){var n=this.transformCellRange(e.start,e.end,t);return Array.isArray(n)?Object.assign(Object.assign({},e),{start:n[0],end:n[1]}):n===r.ErrorType.REF?Object(o.buildCellErrorAst)(new r.CellError(r.ErrorType.REF)):e}},{key:"transformColumnRangeAst",value:function(e,t){var n=this.transformColumnRange(e.start,e.end,t);return Array.isArray(n)?Object.assign(Object.assign({},e),{start:n[0],end:n[1]}):n===r.ErrorType.REF?Object(o.buildCellErrorAst)(new r.CellError(r.ErrorType.REF)):e}},{key:"transformRowRangeAst",value:function(e,t){var n=this.transformRowRange(e.start,e.end,t);return Array.isArray(n)?Object.assign(Object.assign({},e),{start:n[0],end:n[1]}):n===r.ErrorType.REF?Object(o.buildCellErrorAst)(new r.CellError(r.ErrorType.REF)):e}}])&&u(t.prototype,n),s&&u(t,s),Object.defineProperty(t,"prototype",{writable:!1}),e}()},function(e,t,n){"use strict";var r=n(28),o=n(134).find,i=n(179),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){var r=n(28),o=Math.ceil,i=Math.floor;r({target:"Math",stat:!0},{trunc:function(e){return(e>0?i:o)(e)}})},function(e,t,n){"use strict";n(0),n(26),n(53),t.__esModule=!0;var r={BottomInlineStartCornerOverlay:!0,BottomOverlay:!0,InlineStartOverlay:!0,Overlay:!0,TopInlineStartCornerOverlay:!0,TopOverlay:!0};t.TopOverlay=t.TopInlineStartCornerOverlay=t.Overlay=t.InlineStartOverlay=t.BottomOverlay=t.BottomInlineStartCornerOverlay=void 0;var o=n(768);t.BottomInlineStartCornerOverlay=o.BottomInlineStartCornerOverlay;var i=n(786);t.BottomOverlay=i.BottomOverlay;var a=n(788);t.InlineStartOverlay=a.InlineStartOverlay;var s=n(161);t.Overlay=s.Overlay;var u=n(790);t.TopInlineStartCornerOverlay=u.TopInlineStartCornerOverlay;var l=n(792);t.TopOverlay=l.TopOverlay;var c=n(143);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]))}))},function(e,t,n){"use strict";t.__esModule=!0,t.CLONE_TYPES=t.CLONE_TOP_INLINE_START_CORNER=t.CLONE_TOP=t.CLONE_INLINE_START=t.CLONE_CLASS_NAMES=t.CLONE_BOTTOM_INLINE_START_CORNER=t.CLONE_BOTTOM=void 0,n(3),n(33),n(0),n(2),n(4);t.CLONE_TOP="top";t.CLONE_BOTTOM="bottom";t.CLONE_INLINE_START="inline_start";t.CLONE_TOP_INLINE_START_CORNER="top_inline_start_corner";t.CLONE_BOTTOM_INLINE_START_CORNER="bottom_inline_start_corner";var r=["top","bottom","inline_start","top_inline_start_corner","bottom_inline_start_corner"];t.CLONE_TYPES=r;var o=new Map([["top","ht_clone_".concat("top")],["bottom","ht_clone_".concat("bottom")],["inline_start","ht_clone_".concat("inline_start"," ht_clone_left")],["top_inline_start_corner","ht_clone_".concat("top_inline_start_corner"," ht_clone_top_left_corner")],["bottom_inline_start_corner","ht_clone_".concat("bottom_inline_start_corner"," ht_clone_bottom_left_corner")]]);t.CLONE_CLASS_NAMES=o},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.cellMethodLookupFactory=function(e,t){var n=void 0===t||t;return function(t,r){return function t(r){if(r){if((0,a.hasOwnProperty)(r,e)&&void 0!==r[e])return r[e];if((0,a.hasOwnProperty)(r,"type")&&r.type){if("string"!=typeof r.type)throw new Error('Cell "type" must be a string');var o=(0,i.getCellType)(r.type);if((0,a.hasOwnProperty)(o,e))return o[e];if(n)return}return t(Object.getPrototypeOf(r))}}("number"==typeof t?this.getCellMeta(t,r):t)}},t.countFirstRowKeys=function(e){var t=0;Array.isArray(e)&&(e[0]&&Array.isArray(e[0])?t=e[0].length:e[0]&&(0,a.isObject)(e[0])&&(t=(0,a.deepObjectSize)(e[0])));return t},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.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(u(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)]=u(t)+(e+1);o.push(i)}return o},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.isArrayOfArrays=function(e){return!!(Array.isArray(e)&&e.length&&e.every((function(e){return Array.isArray(e)})))},t.isArrayOfObjects=function(e){return!!(Array.isArray(e)&&e.length&&e.every((function(e){return"object"===(0,o.default)(e)&&!Array.isArray(e)&&null!==e})))},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(s,r)*("ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf(e[n])+1);return t-=1},t.spreadsheetColumnLabel=u;var o=r(n(21));n(27),n(0),n(26),n(53);var i=n(162),a=n(17),s="ABCDEFGHIJKLMNOPQRSTUVWXYZ".length;function u(e){for(var t,n=e+1,r="";n>0;)t=(n-1)%s,r=String.fromCharCode(65+t)+r,n=parseInt((n-t)/s,10);return r}},function(e,t,n){"use strict";t.__esModule=!0,t.TextEditor=t.EDITOR_TYPE=void 0;var r=n(841);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(846);t.RENDERER_TYPE=r.RENDERER_TYPE,t.textRenderer=r.textRenderer},function(e,t,n){var r=n(169),o=n(39);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(e,t,n){var r=n(29),o=n(60),i=n(170),a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not a function")}},function(e,t,n){var r=n(130),o=n(239);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.22.5",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.5/LICENSE",source:"https://github.com/zloirock/core-js"})},function(e,t,n){var r=n(328),o=n(243).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(122),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){"use strict";var r=n(203),o=n(84),i=n(166);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){"use strict";var r=n(39);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},function(e,t,n){"use strict";n.r(t),n.d(t,"LexerDefinitionErrorType",(function(){return r})),n.d(t,"Lexer",(function(){return c}));var r,o=n(357),i=n(48),a=n(182),s=n(266),u=n(265);!function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK"}(r||(r={}));var l={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:["\n","\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:s.defaultLexerErrorProvider,traceInitPerf:!1,skipValidations:!1};Object.freeze(l);var c=function(){function e(e,t){var n=this;if(void 0===t&&(t=l),this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.config=void 0,this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},"boolean"==typeof t)throw Error("The second argument to the Lexer constructor is now an ILexerConfig Object.\na boolean 2nd argument is no longer supported");this.config=Object(i.merge)(l,t);var r=this.config.traceInitPerf;!0===r?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):"number"==typeof r&&(this.traceInitMaxIdent=r,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",(function(){var r,s=!0;n.TRACE_INIT("Lexer Config handling",(function(){if(n.config.lineTerminatorsPattern===l.lineTerminatorsPattern)n.config.lineTerminatorsPattern=o.LineTerminatorOptimizedTester;else if(n.config.lineTerminatorCharacters===l.lineTerminatorCharacters)throw Error("Error: Missing <lineTerminatorCharacters> property on the Lexer config.\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS");if(t.safeMode&&t.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');n.trackStartLines=/full|onlyStart/i.test(n.config.positionTracking),n.trackEndLines=/full/i.test(n.config.positionTracking),Object(i.isArray)(e)?((r={modes:{}}).modes[o.DEFAULT_MODE]=Object(i.cloneArr)(e),r[o.DEFAULT_MODE]=o.DEFAULT_MODE):(s=!1,r=Object(i.cloneObj)(e))})),!1===n.config.skipValidations&&(n.TRACE_INIT("performRuntimeChecks",(function(){n.lexerDefinitionErrors=n.lexerDefinitionErrors.concat(Object(o.performRuntimeChecks)(r,n.trackStartLines,n.config.lineTerminatorCharacters))})),n.TRACE_INIT("performWarningRuntimeChecks",(function(){n.lexerDefinitionWarning=n.lexerDefinitionWarning.concat(Object(o.performWarningRuntimeChecks)(r,n.trackStartLines,n.config.lineTerminatorCharacters))}))),r.modes=r.modes?r.modes:{},Object(i.forEach)(r.modes,(function(e,t){r.modes[t]=Object(i.reject)(e,(function(e){return Object(i.isUndefined)(e)}))}));var c=Object(i.keys)(r.modes);if(Object(i.forEach)(r.modes,(function(e,r){n.TRACE_INIT("Mode: <"+r+"> processing",(function(){var s;(n.modes.push(r),!1===n.config.skipValidations&&n.TRACE_INIT("validatePatterns",(function(){n.lexerDefinitionErrors=n.lexerDefinitionErrors.concat(Object(o.validatePatterns)(e,c))})),Object(i.isEmpty)(n.lexerDefinitionErrors))&&(Object(a.augmentTokenTypes)(e),n.TRACE_INIT("analyzeTokenTypes",(function(){s=Object(o.analyzeTokenTypes)(e,{lineTerminatorCharacters:n.config.lineTerminatorCharacters,positionTracking:t.positionTracking,ensureOptimizations:t.ensureOptimizations,safeMode:t.safeMode,tracer:n.TRACE_INIT.bind(n)})})),n.patternIdxToConfig[r]=s.patternIdxToConfig,n.charCodeToPatternIdxToConfig[r]=s.charCodeToPatternIdxToConfig,n.emptyGroups=Object(i.merge)(n.emptyGroups,s.emptyGroups),n.hasCustom=s.hasCustom||n.hasCustom,n.canModeBeOptimized[r]=s.canBeOptimized)}))})),n.defaultMode=r.defaultMode,!Object(i.isEmpty)(n.lexerDefinitionErrors)&&!n.config.deferDefinitionErrorsHandling){var f=Object(i.map)(n.lexerDefinitionErrors,(function(e){return e.message})).join("-----------------------\n");throw new Error("Errors detected in definition of Lexer:\n"+f)}Object(i.forEach)(n.lexerDefinitionWarning,(function(e){Object(i.PRINT_WARNING)(e.message)})),n.TRACE_INIT("Choosing sub-methods implementations",(function(){if(o.SUPPORT_STICKY?(n.chopInput=i.IDENTITY,n.match=n.matchWithTest):(n.updateLastIndex=i.NOOP,n.match=n.matchWithExec),s&&(n.handleModes=i.NOOP),!1===n.trackStartLines&&(n.computeNewColumn=i.IDENTITY),!1===n.trackEndLines&&(n.updateTokenEndLineColumnLocation=i.NOOP),/full/i.test(n.config.positionTracking))n.createTokenInstance=n.createFullToken;else if(/onlyStart/i.test(n.config.positionTracking))n.createTokenInstance=n.createStartOnlyToken;else{if(!/onlyOffset/i.test(n.config.positionTracking))throw Error('Invalid <positionTracking> config option: "'+n.config.positionTracking+'"');n.createTokenInstance=n.createOffsetOnlyToken}n.hasCustom?(n.addToken=n.addTokenUsingPush,n.handlePayload=n.handlePayloadWithCustom):(n.addToken=n.addTokenUsingMemberAccess,n.handlePayload=n.handlePayloadNoCustom)})),n.TRACE_INIT("Failed Optimization Warnings",(function(){var e=Object(i.reduce)(n.canModeBeOptimized,(function(e,t,n){return!1===t&&e.push(n),e}),[]);if(t.ensureOptimizations&&!Object(i.isEmpty)(e))throw Error("Lexer Modes: < "+e.join(", ")+' > cannot be optimized.\n\t Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.\n\t Or inspect the console log for details on how to resolve these issues.')})),n.TRACE_INIT("clearRegExpParserCache",(function(){Object(u.clearRegExpParserCache)()})),n.TRACE_INIT("toFastProperties",(function(){Object(i.toFastProperties)(n)}))}))}return e.prototype.tokenize=function(e,t){if(void 0===t&&(t=this.defaultMode),!Object(i.isEmpty)(this.lexerDefinitionErrors)){var n=Object(i.map)(this.lexerDefinitionErrors,(function(e){return e.message})).join("-----------------------\n");throw new Error("Unable to Tokenize because Errors detected in definition of Lexer:\n"+n)}return this.tokenizeInternal(e,t)},e.prototype.tokenizeInternal=function(e,t){var n,r,a,s,u,l,c,f,d,h,p,y,m,g,v=this,E=e,b=E.length,T=0,C=0,w=this.hasCustom?0:Math.floor(e.length/10),R=new Array(w),O=[],S=this.trackStartLines?1:void 0,A=this.trackStartLines?1:void 0,N=Object(o.cloneEmptyGroups)(this.emptyGroups),_=this.trackStartLines,k=this.config.lineTerminatorsPattern,M=0,I=[],P=[],x=[],D=[];Object.freeze(D);var L=void 0;function F(){return I}function j(e){var t=Object(o.charCodeToOptimizedIndex)(e),n=P[t];return void 0===n?D:n}var U,H=function(e){if(1===x.length&&void 0===e.tokenType.PUSH_MODE){var t=v.config.errorMessageProvider.buildUnableToPopLexerModeMessage(e);O.push({offset:e.startOffset,line:void 0!==e.startLine?e.startLine:void 0,column:void 0!==e.startColumn?e.startColumn:void 0,length:e.image.length,message:t})}else{x.pop();var n=Object(i.last)(x);I=v.patternIdxToConfig[n],P=v.charCodeToPatternIdxToConfig[n],M=I.length;var r=v.canModeBeOptimized[n]&&!1===v.config.safeMode;L=P&&r?j:F}};function B(e){x.push(e),P=this.charCodeToPatternIdxToConfig[e],I=this.patternIdxToConfig[e],M=I.length,M=I.length;var t=this.canModeBeOptimized[e]&&!1===this.config.safeMode;L=P&&t?j:F}for(B.call(this,t);T<b;){u=null;var V=E.charCodeAt(T),W=L(V),Y=W.length;for(n=0;n<Y;n++){var G=(U=W[n]).pattern;if(l=null,!1!==(te=U.short)?V===te&&(u=G):!0===U.isCustom?null!==(g=G.exec(E,T,R,N))?(u=g[0],void 0!==g.payload&&(l=g.payload)):u=null:(this.updateLastIndex(G,T),u=this.match(G,e,T)),null!==u){if(void 0!==(s=U.longerAlt)){var z=I[s],K=z.pattern;c=null,!0===z.isCustom?null!==(g=K.exec(E,T,R,N))?(a=g[0],void 0!==g.payload&&(c=g.payload)):a=null:(this.updateLastIndex(K,T),a=this.match(K,e,T)),a&&a.length>u.length&&(u=a,l=c,U=z)}break}}if(null!==u){if(f=u.length,void 0!==(d=U.group)&&(h=U.tokenTypeIdx,p=this.createTokenInstance(u,T,h,U.tokenType,S,A,f),this.handlePayload(p,l),!1===d?C=this.addToken(R,C,p):N[d].push(p)),e=this.chopInput(e,f),T+=f,A=this.computeNewColumn(A,f),!0===_&&!0===U.canLineTerminator){var X=0,q=void 0,Q=void 0;k.lastIndex=0;do{!0===(q=k.test(u))&&(Q=k.lastIndex-1,X++)}while(!0===q);0!==X&&(S+=X,A=f-Q,this.updateTokenEndLineColumnLocation(p,d,Q,X,S,A,f))}this.handleModes(U,H,B,p)}else{for(var $=T,Z=S,J=A,ee=!1;!ee&&T<b;)for(E.charCodeAt(T),e=this.chopInput(e,1),T++,r=0;r<M;r++){var te,ne=I[r];G=ne.pattern;if(!1!==(te=ne.short)?E.charCodeAt(T)===te&&(ee=!0):!0===ne.isCustom?ee=null!==G.exec(E,T,R,N):(this.updateLastIndex(G,T),ee=null!==G.exec(e)),!0===ee)break}y=T-$,m=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(E,$,y,Z,J),O.push({offset:$,line:Z,column:J,length:y,message:m})}}return this.hasCustom||(R.length=C),{tokens:R,groups:N,errors:O}},e.prototype.handleModes=function(e,t,n,r){if(!0===e.pop){var o=e.push;t(r),void 0!==o&&n.call(this,o)}else void 0!==e.push&&n.call(this,e.push)},e.prototype.chopInput=function(e,t){return e.substring(t)},e.prototype.updateLastIndex=function(e,t){e.lastIndex=t},e.prototype.updateTokenEndLineColumnLocation=function(e,t,n,r,o,i,a){var s,u;void 0!==t&&(u=(s=n===a-1)?-1:0,1===r&&!0===s||(e.endLine=o+u,e.endColumn=i-1-u))},e.prototype.computeNewColumn=function(e,t){return e+t},e.prototype.createTokenInstance=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return null},e.prototype.createOffsetOnlyToken=function(e,t,n,r){return{image:e,startOffset:t,tokenTypeIdx:n,tokenType:r}},e.prototype.createStartOnlyToken=function(e,t,n,r,o,i){return{image:e,startOffset:t,startLine:o,startColumn:i,tokenTypeIdx:n,tokenType:r}},e.prototype.createFullToken=function(e,t,n,r,o,i,a){return{image:e,startOffset:t,endOffset:t+a-1,startLine:o,endLine:o,startColumn:i,endColumn:i+a-1,tokenTypeIdx:n,tokenType:r}},e.prototype.addToken=function(e,t,n){return 666},e.prototype.addTokenUsingPush=function(e,t,n){return e.push(n),t},e.prototype.addTokenUsingMemberAccess=function(e,t,n){return e[t]=n,++t},e.prototype.handlePayload=function(e,t){},e.prototype.handlePayloadNoCustom=function(e,t){},e.prototype.handlePayloadWithCustom=function(e,t){null!==t&&(e.payload=t)},e.prototype.match=function(e,t,n){return null},e.prototype.matchWithTest=function(e,t,n){return!0===e.test(t)?t.substring(n,e.lastIndex):null},e.prototype.matchWithExec=function(e,t){var n=e.exec(t);return null!==n?n[0]:n},e.prototype.TRACE_INIT=function(e,t){if(!0===this.traceInitPerf){this.traceInitIndent++;var n=new Array(this.traceInitIndent+1).join("\t");this.traceInitIndent<this.traceInitMaxIdent&&console.log(n+"--\x3e <"+e+">");var r=Object(i.timer)(t),o=r.time,a=r.value,s=o>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&s(n+"<-- <"+e+"> time: "+o+"ms"),this.traceInitIndent--,a}return t()},e.SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",e.NA=/NOT_APPLICABLE/,e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"AddressDependency",(function(){return s})),n.d(t,"CellRangeDependency",(function(){return u})),n.d(t,"ColumnRangeDependency",(function(){return l})),n.d(t,"RowRangeDependency",(function(){return c})),n.d(t,"NamedExpressionDependency",(function(){return f}));n(25);var r=n(86);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var s=function(){function e(t){o(this,e),this.dependency=t}return a(e,[{key:"absolutize",value:function(e){return this.dependency.toSimpleCellAddress(e)}}]),e}(),u=function(){function e(t,n){o(this,e),this.start=t,this.end=n}return a(e,[{key:"absolutize",value:function(e){return new r.AbsoluteCellRange(this.start.toSimpleCellAddress(e),this.end.toSimpleCellAddress(e))}}]),e}(),l=function(){function e(t,n){o(this,e),this.start=t,this.end=n}return a(e,[{key:"absolutize",value:function(e){var t=this.start.toSimpleColumnAddress(e),n=this.end.toSimpleColumnAddress(e);return new r.AbsoluteColumnRange(t.sheet,t.col,n.col)}}]),e}(),c=function(){function e(t,n){o(this,e),this.start=t,this.end=n}return a(e,[{key:"absolutize",value:function(e){var t=this.start.toSimpleRowAddress(e),n=this.end.toSimpleRowAddress(e);return new r.AbsoluteRowRange(t.sheet,t.row,n.row)}}]),e}(),f=function(){function e(t){o(this,e),this.name=t}return a(e,[{key:"absolutize",value:function(e){return this}}]),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"instanceOfSimpleDate",(function(){return c})),n.d(t,"instanceOfSimpleTime",(function(){return f})),n.d(t,"maxDate",(function(){return d})),n.d(t,"DateTimeHelper",(function(){return h})),n.d(t,"offsetMonth",(function(){return p})),n.d(t,"truncateDayInMonth",(function(){return y})),n.d(t,"roundToNearestSecond",(function(){return m})),n.d(t,"numberToSimpleTime",(function(){return g})),n.d(t,"timeToNumber",(function(){return v})),n.d(t,"toBasisEU",(function(){return E}));n(87),n(8),n(9),n(0),n(10),n(3),n(2),n(4),n(13),n(25),n(22),n(12);var r=n(51);function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return i(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 i(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(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 a(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 s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var u=[31,28,31,30,31,30,31,31,30,31,30,31],l=[0,31,59,90,120,151,181,212,243,273,304,334];function c(e){return!(!e||"object"!==s(e)&&"function"!=typeof e)&&("year"in e&&"number"==typeof e.year&&"month"in e&&"number"==typeof e.month&&"day"in e&&"number"==typeof e.day)}function f(e){return!(!e||"object"!==s(e)&&"function"!=typeof e)&&("hours"in e&&"number"==typeof e.hours&&"minutes"in e&&"number"==typeof e.minutes&&"seconds"in e&&"number"==typeof e.seconds)}var d={year:9999,month:12,day:31},h=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=t,this.minDateAboluteValue=this.dateToNumberFromZero(t.nullDate),this.maxDateValue=this.dateToNumber(d),this.leapYear1900=t.leapYear1900,!this.leapYear1900&&0<=this.dateToNumber({year:1900,month:2,day:28})?this.epochYearZero=this.numberToSimpleDate(2).year:this.epochYearZero=this.numberToSimpleDate(1).year,this.parseDateTime=t.parseDateTime}var t,n,i;return t=e,(n=[{key:"getWithinBounds",value:function(e){return e<=this.maxDateValue&&e>=0?e:void 0}},{key:"dateStringToDateNumber",value:function(e){var t=this.parseDateTimeFromConfigFormats(e),n=t.dateTime,o=t.dateFormat,i=void 0===o?"":o,a=t.timeFormat,s=void 0===a?"":a;if(void 0!==n)return f(n)?c(n)?new r.DateTimeNumber(v(n)+this.dateToNumber(n),i+" "+s):new r.TimeNumber(v(n),s):c(n)?new r.DateNumber(this.dateToNumber(n),i):0}},{key:"parseDateTimeFromConfigFormats",value:function(e){return this.parseDateTimeFromFormats(e,this.config.dateFormats,this.config.timeFormats)}},{key:"getNullYear",value:function(){return this.config.nullYear}},{key:"getEpochYearZero",value:function(){return this.epochYearZero}},{key:"isValidDate",value:function(e){return!(isNaN(e.year)||isNaN(e.month)||isNaN(e.day)||e.day!==Math.round(e.day)||e.month!==Math.round(e.month)||e.year!==Math.round(e.year)||e.year<1582||e.month<1||e.month>12||e.day<1||!(this.isLeapYear(e.year)&&2===e.month?e.day<=29:e.day<=u[e.month-1]))}},{key:"dateToNumber",value:function(e){return this.dateToNumberFromZero(e)-this.minDateAboluteValue}},{key:"relativeNumberToAbsoluteNumber",value:function(e){return e+this.minDateAboluteValue-(this.leapYear1900?1:0)}},{key:"numberToSimpleDate",value:function(e){var t=Math.floor(e)+this.minDateAboluteValue,n=Math.floor(t/365.2425);this.dateToNumberFromZero({year:n+1,month:1,day:1})<=t?n++:this.dateToNumberFromZero({year:n-1,month:1,day:1})>t&&n--;var r=t-this.dateToNumberFromZero({year:n,month:1,day:1}),o=function(e){var t=0;return l[t+6]<=e&&(t+=6),l[t+3]<=e&&(t+=3),l[t+2]<=e?t+=2:l[t+1]<=e&&(t+=1),t}(r-(this.isLeapYear(n)&&r>=59?1:0));return{year:n,month:o+1,day:r-l[o]-(this.isLeapYear(n)&&o>1?1:0)+1}}},{key:"numberToSimpleDateTime",value:function(e){return Object.assign(Object.assign({},this.numberToSimpleDate(Math.floor(e))),g(e%1))}},{key:"leapYearsCount",value:function(e){return Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400)+(this.config.leapYear1900&&e>=1900?1:0)}},{key:"daysInMonth",value:function(e,t){return this.isLeapYear(e)&&2===t?29:u[t-1]}},{key:"endOfMonth",value:function(e){return{year:e.year,month:e.month,day:this.daysInMonth(e.year,e.month)}}},{key:"toBasisUS",value:function(e,t){return 31===e.day&&(e.day=30),30===e.day&&31===t.day&&(t.day=30),2===e.month&&e.day===this.daysInMonth(e.year,e.month)&&(e.day=30,2===t.month&&t.day===this.daysInMonth(t.year,t.month)&&(t.day=30)),[e,t]}},{key:"yearLengthForBasis",value:function(e,t){return e.year!==t.year?e.year+1!==t.year||e.month<t.month||e.month===t.month&&e.day<t.day?(this.leapYearsCount(t.year)-this.leapYearsCount(e.year-1))/(t.year-e.year+1)+365:this.countLeapDays(t)!==this.countLeapDays({year:e.year,month:e.month,day:e.day-1})?366:365:this.isLeapYear(e.year)?366:365}},{key:"parseSingleFormat",value:function(e,t,n){var r=this.parseDateTime(e,t,n);if(!c(r)||(r.year>=0&&r.year<100&&(r.year<this.getNullYear()?r.year+=2e3:r.year+=1900),this.isValidDate(r)))return r}},{key:"parseDateTimeFromFormats",value:function(e,t,n){var r,i=0===t.length?[void 0]:t,a=0===n.length?[void 0]:n,s=o(i);try{for(s.s();!(r=s.n()).done;){var u,l=r.value,c=o(a);try{for(c.s();!(u=c.n()).done;){var f=u.value,d=this.parseSingleFormat(e,l,f);if(void 0!==d)return{dateTime:d,timeFormat:f,dateFormat:l}}}catch(e){c.e(e)}finally{c.f()}}}catch(e){s.e(e)}finally{s.f()}return{}}},{key:"countLeapDays",value:function(e){return e.month>2||2===e.month&&e.day>=29?this.leapYearsCount(e.year):this.leapYearsCount(e.year-1)}},{key:"dateToNumberFromZero",value:function(e){return 365*e.year+l[e.month-1]+e.day-1+(e.month<=2?this.leapYearsCount(e.year-1):this.leapYearsCount(e.year))}},{key:"isLeapYear",value:function(e){return!(e%4)&&(!!(e%100)||!(e%400)||1900===e&&this.config.leapYear1900)}}])&&a(t.prototype,n),i&&a(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function p(e,t){var n=12*e.year+e.month-1+t;return{year:Math.floor(n/12),month:n%12+1,day:e.day}}function y(e){return{year:e.year,month:e.month,day:Math.min(e.day,u[e.month-1])}}function m(e){return Math.round(3600*e*24)/86400}function g(e){e=Math.round(24*e*60*60*1e5)/864e7,e*=24;var t=Math.floor(e);e-=t,e*=60;var n=Math.floor(e);return e-=n,e*=60,{hours:t,minutes:n,seconds:Math.round(1e5*e)/1e5}}function v(e){return((e.seconds/60+e.minutes)/60+e.hours)/24}function E(e){return{year:e.year,month:e.month,day:Math.min(30,e.day)}}},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.RegisteredEditor=h,t.getEditorInstance=t._getEditorInstance=function(e,t){var n;if("function"==typeof e)a.get(e)||p(null,e),n=a.get(e);else{if("string"!=typeof e)throw Error('Only strings and functions can be passed as "editor" parameter');n=l(e)}if(!n)throw Error('No editor registered under name "'.concat(e,'"'));return n.getInstance(t)},t.getEditor=function(e){if(!c(e))throw Error('No registered editor found under "'.concat(e,'" name'));return l(e).getConstructor()},t.hasEditor=t.getRegisteredEditors=t.getRegisteredEditorNames=void 0,t.registerEditor=p,n(3),n(0),n(2),n(11),n(4);var o=r(n(74)),i=r(n(110)),a=new WeakMap,s=(0,i.default)("editors"),u=s.register,l=s.getItem,c=s.hasItem,f=s.getNames,d=s.getValues;function h(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 p(e,t){e&&"string"!=typeof e&&(e=(t=e).EDITOR_TYPE);var n=new h(t);"string"==typeof e&&u(e,n),a.set(t,n)}t.getRegisteredEditors=d,t.getRegisteredEditorNames=f,t.hasEditor=c},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.Renderer=void 0;var i=r(n(574));t.ViewportColumnsCalculator=i.default;var a=r(n(575));t.ViewportRowsCalculator=a.default;var s=r(n(298));t.CellCoords=s.default;var u=r(n(577));t.CellRange=u.default;var l=r(n(764));t.default=l.default,t.Core=l.default;var c=r(n(798));t.Selection=c.default;var f=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(580));t.Renderer=f;var d=n(232);t.OrderView=d.OrderView,t.SharedOrderView=d.SharedOrderView;var h=n(59);function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}t.getListenersCounter=h.getListenersCounter},function(e,t,n){var r=n(578),o=n(767);function i(t,n,a){return o()?(e.exports=i=Reflect.construct,e.exports.__esModule=!0,e.exports.default=e.exports):(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.__esModule=!0,e.exports.default=e.exports),i.apply(null,arguments)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0,n(25),n(22),n(2),n(42),n(0),n(26);var o=r(n(44)),i=r(n(34)),a=r(n(5)),s=r(n(6)),u=r(n(43)),l=n(23),c=n(68),f=r(n(770)),d=r(n(771)),h=n(580),p=r(n(782)),y=r(n(783)),m=n(142),g=function(){function e(t,n,r,o,i){var s=this;(0,a.default)(this,e),(0,u.default)(this,"wtSettings",null),(0,u.default)(this,"domBindings",void 0),(0,u.default)(this,"TBODY",null),(0,u.default)(this,"THEAD",null),(0,u.default)(this,"COLGROUP",null),(0,u.default)(this,"hasTableHeight",!0),(0,u.default)(this,"hasTableWidth",!0),(0,u.default)(this,"isTableVisible",!1),(0,u.default)(this,"tableOffset",0),(0,u.default)(this,"holderOffset",0),this.domBindings=r,this.isMaster="master"===i,this.name=i,this.dataAccessObject=t,this.facadeGetter=n,this.wtSettings=o,this.instance=this.dataAccessObject.wot,this.wot=this.dataAccessObject.wot,this.TABLE=r.rootTable,(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 c=this.wtSettings.getSettingPure("rowHeaderWidth");this.wtSettings.update("rowHeaderWidth",(function(){return s._modifyRowHeaderWidth(c)})),this.rowUtils=new y.default(this.dataAccessObject,this.wtSettings),this.columnUtils=new p.default(this.dataAccessObject,this.wtSettings),this.tableRenderer=new h.Renderer({TABLE:this.TABLE,THEAD:this.THEAD,COLGROUP:this.COLGROUP,TBODY:this.TBODY,rowUtils:this.rowUtils,columnUtils:this.columnUtils,cellRenderer:this.wtSettings.getSettingPure("cellRenderer")})}return(0,s.default)(e,[{key:"is",value:function(e){return this.name===e}},{key:"fixTableDomTree",value:function(){var e=this.domBindings.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))}},{key:"createSpreader",value:function(e){var t,n=e.parentNode;return n&&n.nodeType===Node.ELEMENT_NODE&&(0,l.hasClass)(n,"wtHolder")||((t=this.domBindings.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.domBindings.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.domBindings.rootDocument.createElement("div")).style.position="relative",t.className="wtHolder",n&&n.insertBefore(t,e),this.isMaster&&(t.parentNode.className+="ht_master handsontable",t.parentNode.setAttribute("dir",this.wtSettings.getSettingPure("rtlMode")?"rtl":"ltr")),t.appendChild(e)),t}},{key:"draw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.wtSettings,n=this.dataAccessObject,r=n.wtOverlays,o=n.wtViewport,i=t.getSetting("totalRows"),a=t.getSetting("totalColumns"),s=t.getSetting("rowHeaders"),u=s.length,c=t.getSetting("columnHeaders"),h=c.length,p=!1,y=e;if(this.isMaster&&(this.holderOffset=(0,l.offset)(this.holder),y=o.createRenderCalculators(y),u&&!t.getSetting("fixedColumnsStart"))){var g=r.inlineStartOverlay.getScrollPosition(),v=this.correctHeaderWidth;this.correctHeaderWidth=0!==g,v!==this.correctHeaderWidth&&(y=!1)}if(this.isMaster&&(p=r.updateStateOfRendering()),y)this.isMaster&&o.createVisibleCalculators(),r&&r.refresh(!0);else{this.isMaster?this.tableOffset=(0,l.offset)(this.TABLE):this.tableOffset=this.dataAccessObject.parentTableOffset;var E=i>0?this.getFirstRenderedRow():0,b=a>0?this.getFirstRenderedColumn():0;this.rowFilter=new d.default(E,i,h),this.columnFilter=new f.default(b,a,u);var T,C=!0;if(this.isMaster){this.alignOverlaysWithTrimmingContainer();var w={};this.wtSettings.getSetting("beforeDraw",!0,w),C=!0!==w.skipRender}if(C)if(this.tableRenderer.setHeaderContentRenderers(s,c),(this.is(m.CLONE_BOTTOM)||this.is(m.CLONE_BOTTOM_INLINE_START_CORNER))&&this.tableRenderer.setHeaderContentRenderers(s,[]),this.resetOversizedRows(),this.tableRenderer.setViewportSize(this.getRenderedRowsCount(),this.getRenderedColumnsCount()).setFilters(this.rowFilter,this.columnFilter).render(),this.isMaster&&(T=this.dataAccessObject.workspaceWidth,this.dataAccessObject.wtViewport.containerWidth=null,this.markOversizedColumnHeaders()),this.adjustColumnHeaderHeights(),(this.isMaster||this.is(m.CLONE_BOTTOM))&&this.markOversizedRows(),this.isMaster){this.dataAccessObject.wtViewport.createVisibleCalculators(),this.dataAccessObject.wtOverlays.refresh(!1),this.dataAccessObject.wtOverlays.applyToDOM();var R=(0,l.outerWidth)(this.hider),O=(0,l.outerWidth)(this.TABLE);0!==R&&O!==R&&(this.columnUtils.calculateWidths(),this.tableRenderer.renderer.colGroup.render()),T!==this.dataAccessObject.wtViewport.getWorkspaceWidth()&&(this.dataAccessObject.wtViewport.containerWidth=null,this.columnUtils.calculateWidths(),this.tableRenderer.renderer.colGroup.render()),this.wtSettings.getSetting("onDraw",!0)}else this.is(m.CLONE_BOTTOM)&&this.dataAccessObject.cloneSource.wtOverlays.adjustElementsSize()}if(this.isMaster){var S=r.topOverlay.resetFixedPosition();r.bottomOverlay.clone&&(S=r.bottomOverlay.resetFixedPosition()||S),S=r.inlineStartOverlay.resetFixedPosition()||S,r.topInlineStartCornerOverlay&&r.topInlineStartCornerOverlay.resetFixedPosition(),r.bottomInlineStartCornerOverlay&&r.bottomInlineStartCornerOverlay.clone&&r.bottomInlineStartCornerOverlay.resetFixedPosition(),S&&(r.refreshAll(),r.adjustElementsSize())}return this.refreshSelections(y),p&&r.syncScrollWithMaster(),this.dataAccessObject.drawn=!0,this}},{key:"markIfOversizedColumnHeader",value:function(e){for(var t,n,r,o=this.columnFilter.renderedToSource(e),i=this.wtSettings.getSetting("columnHeaders").length,a=this.wtSettings.getSetting("defaultRowHeight"),s=this.wtSettings.getSetting("columnHeaderHeight")||[];i;)i-=1,t=this.getColumnHeaderHeight(i),(n=this.getColumnHeader(o,i))&&(r=(0,l.innerHeight)(n),(!t&&a<r||t<r)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[i]=r),Array.isArray(s)?null!==s[i]&&void 0!==s[i]&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[i]=s[i]):isNaN(s)||(this.dataAccessObject.wtViewport.oversizedColumnHeaders[i]=s),this.dataAccessObject.wtViewport.oversizedColumnHeaders[i]<(s[i]||s)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[i]=s[i]||s))}},{key:"adjustColumnHeaderHeights",value:function(){for(var e=this.wtSettings,t=this.THEAD.childNodes,n=this.dataAccessObject.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.wtSettings,t=this.dataAccessObject.wtViewport;if((this.isMaster||this.is(m.CLONE_BOTTOM))&&!e.getSetting("externalRowCalculator"))for(var n=this.getRenderedRowsCount(),r=0;r<n;r++){var o=this.rowFilter.renderedToSource(r);t.oversizedRows&&t.oversizedRows[o]&&(t.oversizedRows[o]=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.wtSettings,n=this.dataAccessObject.selections;if(n){var r=Array.from(n),o=r.length;if(e){for(var i=[],a=0;a<o;a++){for(var s=r[a].settings,u=s.highlightHeaderClassName,l=s.highlightRowClassName,c=s.highlightColumnClassName,f=r[a].classNames,d=f.length,h=0;h<d;h++)i.includes(f[h])||i.push(f[h]);u&&!i.includes(u)&&i.push(u),l&&!i.includes(l)&&i.push(l),c&&!i.includes(c)&&i.push(c)}var p=t.getSetting("onBeforeRemoveCellClassNames");if(Array.isArray(p))for(var y=0;y<p.length;y++)i.push(p[y]);for(var m=i.length,g=0;g<m;g++)this.removeClassFromCells(i[g])}for(var v=0;v<o;v++)r[v].draw(this.facadeGetter(),e)}}},{key:"getCell",value:function(e){var t,n=e.row,r=e.col,o=this.wtSettings.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.wtSettings.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.wtSettings.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_INLINE_START_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_INLINE_START_CORNER,t,this.wtRootElement)||(0,l.overlayContainsElement)(m.CLONE_BOTTOM,t,this.wtRootElement)){o=this.wtSettings.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_INLINE_START_CORNER,t,this.wtRootElement)||(0,l.overlayContainsElement)(m.CLONE_INLINE_START,t,this.wtRootElement)||(0,l.overlayContainsElement)(m.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)?this.columnFilter.offsettedTH(i):this.columnFilter.visibleRowHeadedColumnToSourceColumn(i),this.wot.createCellCoords(o,i)}},{key:"markOversizedRows",value:function(){if(!this.wtSettings.getSetting("externalRowCalculator")){var e,t,n,r,o,i=this.TBODY.childNodes.length;if(i*this.wtSettings.getSetting("defaultRowHeight")!==(0,l.innerHeight)(this.TBODY)-1||this.wtSettings.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.wtSettings.getSetting("defaultRowHeight")<t||e<t)&&(t+=1,this.dataAccessObject.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.wtSettings.getSetting("rowHeaders").length;return Math.abs(e)<=t}},{key:"isRowHeaderRendered",value:function(e){if(e>=0)return!1;var t=this.wtSettings.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.wtSettings.getSetting("totalRows")===this.getVisibleRowsCount()}},{key:"allColumnsInViewport",value:function(){return this.wtSettings.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:"getWidth",value:function(){return(0,l.outerWidth)(this.TABLE)}},{key:"getHeight",value:function(){return(0,l.outerHeight)(this.TABLE)}},{key:"getTotalWidth",value:function(){var e=(0,l.outerWidth)(this.hider);return 0!==e?e:this.getWidth()}},{key:"getTotalHeight",value:function(){var e=(0,l.outerHeight)(this.hider);return 0!==e?e:this.getHeight()}},{key:"isVisible",value:function(){return(0,l.isVisible)(this.TABLE)}},{key:"_modifyRowHeaderWidth",value:function(e){var t=(0,c.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.wtSettings.getSetting("defaultColumnWidth")),this.correctHeaderWidth&&(t+=1),t}}]),e}();t.default=g},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.Overlay=void 0,n(35);var o=r(n(5)),i=r(n(6)),a=r(n(43)),s=n(23),u=n(17),l=n(20),c=n(88),f=n(143),d=r(n(784)),h=function(){function e(t,n,r,i,l){(0,o.default)(this,e),(0,a.default)(this,"wtSettings",null),(0,u.defineGetter)(this,"wot",t,{writable:!1}),this.domBindings=l,this.facadeGetter=n,this.wtSettings=i;var c=this.wot.wtTable,f=c.TABLE,d=c.hider,h=c.spreader,p=c.holder,y=c.wtRootElement;this.instance=this.wot,this.type=r,this.mainTableScrollableElement=null,this.TABLE=f,this.hider=d,this.spreader=h,this.holder=p,this.wtRootElement=y,this.trimmingContainer=(0,s.getTrimmingContainer)(this.hider.parentNode.parentNode),this.updateStateOfRendering(),this.clone=this.makeClone()}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,s.getTrimmingContainer)(this.hider.parentNode.parentNode)}},{key:"updateMainScrollableElement",value:function(){var e=this.wot.wtTable;"hidden"===this.domBindings.rootWindow.getComputedStyle(e.wtRootElement.parentNode).getPropertyValue("overflow")?this.mainTableScrollableElement=this.wot.wtTable.holder:this.mainTableScrollableElement=(0,s.getScrollableElement)(e.TABLE)}},{key:"getRelativeCellPosition",value:function(e,t,n){if(!1!==this.clone.wtTable.holder.contains(e)){var r=this.mainTableScrollableElement===this.domBindings.rootWindow,o=n<this.wtSettings.getSetting("fixedColumnsStart"),i=t<this.wtSettings.getSetting("fixedRowsTop"),a=t>=this.wtSettings.getSetting("totalRows")-this.wtSettings.getSetting("fixedRowsBottom"),s=this.clone.wtTable.spreader,u={start:this.getRelativeStartPosition(s),top:s.offsetTop},l={start:this.getRelativeStartPosition(e),top:e.offsetTop};return r?this.getRelativeCellPositionWithinWindow(i,o,l,u):this.getRelativeCellPositionWithinHolder(i,a,o,l,u)}(0,c.warn)("The provided element is not a child of the ".concat(this.type," overlay"))}},{key:"getRelativeStartPosition",value:function(e){return this.isRtl()?e.offsetParent.offsetWidth-e.offsetLeft-e.offsetWidth:e.offsetLeft}},{key:"getRelativeCellPositionWithinWindow",value:function(e,t,n,r){var o=this.wot.wtTable.wtRootElement.getBoundingClientRect(),i=0,a=0;if(t){var u=o.left;this.isRtl()&&(u=this.domBindings.rootWindow.innerWidth-(o.left+o.width+(0,s.getScrollbarWidth)())),i=u<=0?-1*u:0}else i=r.start;e?a=this.clone.wtTable.TABLE.getBoundingClientRect().top-o.top:a=r.top;return{start:n.start+i,top:n.top+a}}},{key:"getRelativeCellPositionWithinHolder",value:function(e,t,n,r,o){var i=this.wot.wtOverlays.inlineStartOverlay.getScrollPosition(),a=this.wot.wtOverlays.topOverlay.getScrollPosition(),s=0,u=0;if(n||(s=i-o.start),t){var l=this.wot.wtTable.wtRootElement.getBoundingClientRect();u=-1*this.clone.wtTable.TABLE.getBoundingClientRect().top+l.top}else e||(u=a-o.top);return{start:r.start-s,top:r.top-u}}},{key:"makeClone",value:function(){if(-1===f.CLONE_TYPES.indexOf(this.type))throw new Error('Clone type "'.concat(this.type,'" is not supported.'));var e=this.wot.wtTable,t=this.domBindings,n=t.rootDocument,r=t.rootWindow,o=n.createElement("DIV"),i=n.createElement("TABLE"),a=e.wtRootElement.parentNode;o.className="".concat(f.CLONE_CLASS_NAMES.get(this.type)," handsontable"),o.setAttribute("dir",this.isRtl()?"rtl":"ltr"),o.style.position="absolute",o.style.top=0,o.style.overflow="visible",this.isRtl()?o.style.right=0:o.style.left=0,i.className=e.TABLE.className,o.appendChild(i),a.appendChild(o);var u=this.wtSettings.getSetting("preventOverflow");return!0===u||"horizontal"===u&&this.type===f.CLONE_TOP||"vertical"===u&&this.type===f.CLONE_INLINE_START?this.mainTableScrollableElement=r:"hidden"===r.getComputedStyle(a).getPropertyValue("overflow")?this.mainTableScrollableElement=e.holder:this.mainTableScrollableElement=(0,s.getScrollableElement)(e.TABLE),new d.default(i,this.wtSettings,{source:this.wot,overlay:this,viewport:this.wot.wtViewport,event:this.wot.wtEvent,selections:this.wot.selections})}},{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:"isRtl",value:function(){return this.wtSettings.getSetting("rtlMode")}},{key:"destroy",value:function(){this.clone.eventManager.destroy()}}]),e}();t.Overlay=h},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.getCellType=function(e){if(!f(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.hasCellType=t.getRegisteredCellTypes=t.getRegisteredCellTypeNames=void 0,t.registerCellType=function(e,t){"string"!=typeof e&&(e=(t=e).CELL_TYPE);var n=t,r=n.editor,o=n.renderer,u=n.validator;r&&(0,i.registerEditor)(e,r);o&&(0,a.registerRenderer)(e,o);u&&(0,s.registerValidator)(e,u);l(e,t)};var o=r(n(110)),i=n(157),a=n(193),s=n(194),u=(0,o.default)("cellTypes"),l=u.register,c=u.getItem,f=u.hasItem,d=u.getNames,h=u.getValues;t.getRegisteredCellTypes=h,t.getRegisteredCellTypeNames=d,t.hasCellType=f},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(34)),i=r(n(5)),a=r(n(6)),s=r(n(31)),u=r(n(15)),l=r(n(16)),c=r(n(14));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,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,l.default)(this,n)}}var d=function(e){(0,u.default)(n,e);var t=f(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=this.settings.createCellRange(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:this.settings.createCellCoords(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:[this.settings.createCellCoords(o,a),this.settings.createCellCoords(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 u=null;if("header"===this.settings.type){var l=this.findVisibleHeaderRange(t,n,r,i),c=(0,o.default)(l,2),f=c[0],d=c[1];u=this.createRenderableCellRange(f,d)}this.cellRange=u}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=this.settings.createCellRange(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=this.settings.createCellCoords(r?null:Math.min(t.row,n.row),o?null:Math.min(t.col,n.col)),a=this.settings.createCellCoords(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.getTopStartCorner()),t=this.settings.renderableToVisualCoords(this.cellRange.getBottomEndCorner());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 this.settings.createCellRange(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}(n(158).Selection);t.default=d},function(e,t,n){"use strict";t.__esModule=!0,t.checkSelectionBorders=function(e,t){var n=!1;return(0,i.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.createDefaultCustomBorder=s,t.createDefaultHtBorder=l,t.createEmptyBorders=function(e,t){return{id:a(e,t),border:{width:1,color:"#000",cornerVisible:!1},row:e,col:t,top:{hide:!0},bottom:{hide:!0},start:{hide:!0},end:{hide:!0}}},t.createId=a,t.createSingleEmptyBorder=u,t.denormalizeBorder=function(e){(0,o.isDefined)(e.start)&&(e.left=e.start);(0,o.isDefined)(e.end)&&(e.right=e.end);return e},t.extendDefaultBorder=function(e,t){(0,r.hasOwnProperty)(t,"border")&&t.border&&(e.border=t.border);(0,r.hasOwnProperty)(t,"top")&&(0,o.isDefined)(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,"bottom")&&(0,o.isDefined)(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,"start")&&(0,o.isDefined)(t.start)&&(t.start?((0,r.isObject)(t.start)||(t.start={width:1,color:"#000"}),e.start=t.start):(t.start={hide:!0},e.start=t.start));(0,r.hasOwnProperty)(t,"end")&&(0,o.isDefined)(t.end)&&(t.end?((0,r.isObject)(t.end)||(t.end={width:1,color:"#000"}),e.end=t.end):(t.end={hide:!0},e.end=t.end));return e},t.hasLeftRightTypeOptions=function(e){return e.some((function(e){return(0,o.isDefined)(e.left)||(0,o.isDefined)(e.right)}))},t.hasStartEndTypeOptions=function(e){return e.some((function(e){return(0,o.isDefined)(e.start)||(0,o.isDefined)(e.end)}))},t.markSelected=function(e){return'<span class="selected">'.concat(String.fromCharCode(10003),"</span>").concat(e)},t.normalizeBorder=function(e){var t,n;((0,o.isDefined)(e.start)||(0,o.isDefined)(e.left))&&(e.start=null!==(t=e.start)&&void 0!==t?t:e.left);((0,o.isDefined)(e.end)||(0,o.isDefined)(e.right))&&(e.end=null!==(n=e.end)&&void 0!==n?n:e.right);return delete e.left,delete e.right,e},t.toInlinePropName=function(e){var t;return null!==(t=c.get(e))&&void 0!==t?t:e},n(18),n(0),n(3),n(33),n(2),n(4);var r=n(17),o=n(32),i=n(20);function a(e,t){return"border_row".concat(e,"col").concat(t)}function s(){return{width:1,color:"#000"}}function u(){return{hide:!0}}function l(){return{width:1,color:"#000",cornerVisible:!1}}var c=new Map([["left","start"],["right","end"]])},function(e,t,n){var r=n(39);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},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(29),o=n(36),i=n(39),a=n(119),s=r.Object,u=o("".split);e.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?u(e,""):s(e)}:s},function(e,t,n){var r=n(29),o=n(107),i=n(60),a=n(120),s=n(322),u=r.Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return i(t)&&a(t.prototype,u(e))}},function(e,t,n){var r,o,i=n(29),a=n(128),s=i.process,u=i.Deno,l=s&&s.versions||u&&u.version,c=l&&l.v8;c&&(o=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},function(e,t,n){var r=n(29).String;e.exports=function(e){try{return r(e)}catch(e){return"Object"}}},function(e,t,n){var r=n(69),o=n(62),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),u=s&&"something"===function(){}.name,l=s&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:u,CONFIGURABLE:l}},function(e,t){e.exports={}},function(e,t,n){var r=n(36);e.exports=r([].slice)},function(e,t,n){var r=n(328),o=n(243);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(119);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(39),o=n(58),i=n(169),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(36),o=n(148),i=n(165),a=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},function(e,t){e.exports={}},function(e,t,n){var r=n(58),o=n(133),i=n(84),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(28),o=n(36),i=n(172),a=n(64),s=n(62),u=n(84).f,l=n(150),c=n(245),f=n(348),d=n(204),h=n(349),p=!1,y=d("meta"),m=0,g=function(e){u(e,y,{value:{objectID:"O"+m++,weakData:{}}})},v=e.exports={enable:function(){v.enable=function(){},p=!0;var e=l.f,t=o([].splice),n={};n[y]=1,e(n).length&&(l.f=function(n){for(var r=e(n),o=0,i=r.length;o<i;o++)if(r[o]===y){t(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,y)){if(!f(e))return"F";if(!t)return"E";g(e)}return e[y].objectID},getWeakData:function(e,t){if(!s(e,y)){if(!f(e))return!0;if(!t)return!1;g(e)}return e[y].weakData},onFreeze:function(e){return h&&p&&f(e)&&!s(e,y)&&g(e),e}};i[y]=!0},function(e,t,n){"use strict";n.r(t),n.d(t,"RANGE_OPERATOR",(function(){return a})),n.d(t,"ABSOLUTE_OPERATOR",(function(){return s})),n.d(t,"ALL_WHITESPACE_REGEXP",(function(){return u})),n.d(t,"ODFF_WHITESPACE_REGEXP",(function(){return l})),n.d(t,"AdditionOp",(function(){return c})),n.d(t,"PlusOp",(function(){return f})),n.d(t,"MinusOp",(function(){return d})),n.d(t,"MultiplicationOp",(function(){return h})),n.d(t,"TimesOp",(function(){return p})),n.d(t,"DivOp",(function(){return y})),n.d(t,"PowerOp",(function(){return m})),n.d(t,"PercentOp",(function(){return g})),n.d(t,"BooleanOp",(function(){return v})),n.d(t,"EqualsOp",(function(){return E})),n.d(t,"NotEqualOp",(function(){return b})),n.d(t,"GreaterThanOp",(function(){return T})),n.d(t,"LessThanOp",(function(){return C})),n.d(t,"GreaterThanOrEqualOp",(function(){return w})),n.d(t,"LessThanOrEqualOp",(function(){return R})),n.d(t,"ConcatenateOp",(function(){return O})),n.d(t,"simpleSheetName",(function(){return S})),n.d(t,"quotedSheetName",(function(){return A})),n.d(t,"sheetNameRegexp",(function(){return N})),n.d(t,"CellReference",(function(){return _})),n.d(t,"ColumnRange",(function(){return k})),n.d(t,"RowRange",(function(){return M})),n.d(t,"RangeSeparator",(function(){return I})),n.d(t,"LParen",(function(){return P})),n.d(t,"RParen",(function(){return x})),n.d(t,"ArrayLParen",(function(){return D})),n.d(t,"ArrayRParen",(function(){return L})),n.d(t,"ProcedureName",(function(){return F})),n.d(t,"NamedExpression",(function(){return j})),n.d(t,"StringLiteral",(function(){return U})),n.d(t,"ErrorLiteral",(function(){return H})),n.d(t,"buildLexerConfig",(function(){return B}));n(94),n(12),n(66),n(18),n(8),n(9),n(0),n(10),n(3),n(2),n(4),n(22),n(13),n(25);var r=n(220);function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return i(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 i(e,t)}(e)||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.")}()}function i(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}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var a=":",s="$",u=/\s+/,l=/[ \t\n\r]+/,c=Object(r.createToken)({name:"AdditionOp",pattern:r.Lexer.NA}),f=Object(r.createToken)({name:"PlusOp",pattern:/\+/,categories:c}),d=Object(r.createToken)({name:"MinusOp",pattern:/-/,categories:c}),h=Object(r.createToken)({name:"MultiplicationOp",pattern:r.Lexer.NA}),p=Object(r.createToken)({name:"TimesOp",pattern:/\*/,categories:h}),y=Object(r.createToken)({name:"DivOp",pattern:/\//,categories:h}),m=Object(r.createToken)({name:"PowerOp",pattern:/\^/}),g=Object(r.createToken)({name:"PercentOp",pattern:/%/}),v=Object(r.createToken)({name:"BooleanOp",pattern:r.Lexer.NA}),E=Object(r.createToken)({name:"EqualsOp",pattern:/=/,categories:v}),b=Object(r.createToken)({name:"NotEqualOp",pattern:/<>/,categories:v}),T=Object(r.createToken)({name:"GreaterThanOp",pattern:/>/,categories:v}),C=Object(r.createToken)({name:"LessThanOp",pattern:/</,categories:v}),w=Object(r.createToken)({name:"GreaterThanOrEqualOp",pattern:/>=/,categories:v}),R=Object(r.createToken)({name:"LessThanOrEqualOp",pattern:/<=/,categories:v}),O=Object(r.createToken)({name:"ConcatenateOp",pattern:/&/}),S="[A-Za-z0-9_À-ʯ]+",A="'(((?!').|'')*)'",N="(".concat(S,"|").concat(A,")!"),_=Object(r.createToken)({name:"CellReference",pattern:new RegExp("(".concat(N,")?\\").concat(s,"?[A-Za-z]+\\").concat(s,"?[0-9]+"))}),k=Object(r.createToken)({name:"ColumnRange",pattern:new RegExp("(".concat(N,")?\\").concat(s,"?[A-Za-z]+").concat(a,"(").concat(N,")?\\").concat(s,"?[A-Za-z]+"))}),M=Object(r.createToken)({name:"RowRange",pattern:new RegExp("(".concat(N,")?\\").concat(s,"?[0-9]+").concat(a,"(").concat(N,")?\\").concat(s,"?[0-9]+"))}),I=Object(r.createToken)({name:"RangeSeparator",pattern:"".concat(a)}),P=Object(r.createToken)({name:"LParen",pattern:/\(/}),x=Object(r.createToken)({name:"RParen",pattern:/\)/}),D=Object(r.createToken)({name:"ArrayLParen",pattern:/{/}),L=Object(r.createToken)({name:"ArrayRParen",pattern:/}/}),F=Object(r.createToken)({name:"ProcedureName",pattern:/([A-Za-z\u00C0-\u02AF][A-Za-z0-9\u00C0-\u02AF._]*)\(/}),j=Object(r.createToken)({name:"NamedExpression",pattern:/[A-Za-z\u00C0-\u02AF_][A-Za-z0-9\u00C0-\u02AF._]*/}),U=Object(r.createToken)({name:"StringLiteral",pattern:/"([^"\\]*(\\.[^"\\]*)*)"/}),H=Object(r.createToken)({name:"ErrorLiteral",pattern:/#[A-Za-z0-9\/]+[?!]?/}),B=function(e){var t,n,i=e.translationPackage.getFunctionTranslation("OFFSET"),a=e.errorMapping,s=e.translationPackage.buildFunctionMapping(),S="standard"===e.ignoreWhiteSpace?l:u,A=Object(r.createToken)({name:"WhiteSpace",pattern:S}),N=Object(r.createToken)({name:"ArrayRowSep",pattern:e.arrayRowSeparator}),B=Object(r.createToken)({name:"ArrayColSep",pattern:e.arrayColumnSeparator});e.functionArgSeparator===e.arrayColumnSeparator?(t=B,n=[]):e.functionArgSeparator===e.arrayRowSeparator?(t=N,n=[]):n=[t=Object(r.createToken)({name:"ArgSeparator",pattern:e.functionArgSeparator})];var V=Object(r.createToken)({name:"NumberLiteral",pattern:new RegExp("(([".concat(e.decimalSeparator,"]\\d+)|(\\d+([").concat(e.decimalSeparator,"]\\d*)?))(e[+-]?\\d+)?"))}),W=Object(r.createToken)({name:"OffsetProcedureName",pattern:new RegExp(i,"i")}),Y=[A,f,d,p,y,m,E,b,g,w,R,T,C,P,x,D,L,W,F,I].concat(o(n),[k,M,V,U,H,O,v,c,h,_,j,N,B]);return{ArgSeparator:t,NumberLiteral:V,OffsetProcedureName:W,ArrayRowSeparator:N,ArrayColSeparator:B,WhiteSpace:A,allTokens:Y,errorMapping:a,functionMapping:s,decimalSeparator:e.decimalSeparator,maxColumns:e.maxColumns,maxRows:e.maxRows}}},function(e,t,n){"use strict";n.r(t),n.d(t,"tokenStructuredMatcher",(function(){return o})),n.d(t,"tokenStructuredMatcherNoCategories",(function(){return i})),n.d(t,"tokenShortNameIdx",(function(){return a})),n.d(t,"tokenIdxToClass",(function(){return s})),n.d(t,"augmentTokenTypes",(function(){return u})),n.d(t,"expandCategories",(function(){return l})),n.d(t,"assignTokenDefaultProps",(function(){return c})),n.d(t,"assignCategoriesTokensProp",(function(){return f})),n.d(t,"assignCategoriesMapProp",(function(){return d})),n.d(t,"singleAssignCategoriesToksMap",(function(){return h})),n.d(t,"hasShortKeyProperty",(function(){return p})),n.d(t,"hasCategoriesProperty",(function(){return y})),n.d(t,"hasExtendingTokensTypesProperty",(function(){return m})),n.d(t,"hasExtendingTokensTypesMapProperty",(function(){return g})),n.d(t,"isTokenType",(function(){return v}));var r=n(48);function o(e,t){var n=e.tokenTypeIdx;return n===t.tokenTypeIdx||!0===t.isParent&&!0===t.categoryMatchesMap[n]}function i(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}var a=1,s={};function u(e){var t=l(e);c(t),d(t),f(t),Object(r.forEach)(t,(function(e){e.isParent=e.categoryMatches.length>0}))}function l(e){for(var t=Object(r.cloneArr)(e),n=e,o=!0;o;){n=Object(r.compact)(Object(r.flatten)(Object(r.map)(n,(function(e){return e.CATEGORIES}))));var i=Object(r.difference)(n,t);t=t.concat(i),Object(r.isEmpty)(i)?o=!1:n=i}return t}function c(e){Object(r.forEach)(e,(function(e){p(e)||(s[a]=e,e.tokenTypeIdx=a++),y(e)&&!Object(r.isArray)(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),y(e)||(e.CATEGORIES=[]),m(e)||(e.categoryMatches=[]),g(e)||(e.categoryMatchesMap={})}))}function f(e){Object(r.forEach)(e,(function(e){e.categoryMatches=[],Object(r.forEach)(e.categoryMatchesMap,(function(t,n){e.categoryMatches.push(s[n].tokenTypeIdx)}))}))}function d(e){Object(r.forEach)(e,(function(e){h([],e)}))}function h(e,t){Object(r.forEach)(e,(function(e){t.categoryMatchesMap[e.tokenTypeIdx]=!0})),Object(r.forEach)(t.CATEGORIES,(function(n){var o=e.concat(t);Object(r.contains)(o,n)||h(o,n)}))}function p(e){return Object(r.has)(e,"tokenTypeIdx")}function y(e){return Object(r.has)(e,"CATEGORIES")}function m(e){return Object(r.has)(e,"categoryMatches")}function g(e){return Object(r.has)(e,"categoryMatchesMap")}function v(e){return Object(r.has)(e,"tokenTypeIdx")}},function(e,t,n){"use strict";n.r(t),n.d(t,"isSequenceProd",(function(){return u})),n.d(t,"isOptionalProd",(function(){return l})),n.d(t,"isBranchingProd",(function(){return c})),n.d(t,"getProductionDslName",(function(){return f})),n.d(t,"DslMethodsCollectorVisitor",(function(){return d})),n.d(t,"collectMethods",(function(){return p}));var r,o=n(48),i=n(56),a=n(135),s=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function u(e){return e instanceof i.Flat||e instanceof i.Option||e instanceof i.Repetition||e instanceof i.RepetitionMandatory||e instanceof i.RepetitionMandatoryWithSeparator||e instanceof i.RepetitionWithSeparator||e instanceof i.Terminal||e instanceof i.Rule}function l(e,t){return void 0===t&&(t=[]),!!(e instanceof i.Option||e instanceof i.Repetition||e instanceof i.RepetitionWithSeparator)||(e instanceof i.Alternation?Object(o.some)(e.definition,(function(e){return l(e,t)})):!(e instanceof i.NonTerminal&&Object(o.contains)(t,e))&&(e instanceof i.AbstractProduction&&(e instanceof i.NonTerminal&&t.push(e),Object(o.every)(e.definition,(function(e){return l(e,t)})))))}function c(e){return e instanceof i.Alternation}function f(e){if(e instanceof i.NonTerminal)return"SUBRULE";if(e instanceof i.Option)return"OPTION";if(e instanceof i.Alternation)return"OR";if(e instanceof i.RepetitionMandatory)return"AT_LEAST_ONE";if(e instanceof i.RepetitionMandatoryWithSeparator)return"AT_LEAST_ONE_SEP";if(e instanceof i.RepetitionWithSeparator)return"MANY_SEP";if(e instanceof i.Repetition)return"MANY";if(e instanceof i.Terminal)return"CONSUME";throw Error("non exhaustive match")}var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.separator="-",t.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]},t}return s(t,e),t.prototype.reset=function(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}},t.prototype.visitTerminal=function(e){var t=e.terminalType.name+this.separator+"Terminal";Object(o.has)(this.dslMethods,t)||(this.dslMethods[t]=[]),this.dslMethods[t].push(e)},t.prototype.visitNonTerminal=function(e){var t=e.nonTerminalName+this.separator+"Terminal";Object(o.has)(this.dslMethods,t)||(this.dslMethods[t]=[]),this.dslMethods[t].push(e)},t.prototype.visitOption=function(e){this.dslMethods.option.push(e)},t.prototype.visitRepetitionWithSeparator=function(e){this.dslMethods.repetitionWithSeparator.push(e)},t.prototype.visitRepetitionMandatory=function(e){this.dslMethods.repetitionMandatory.push(e)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)},t.prototype.visitRepetition=function(e){this.dslMethods.repetition.push(e)},t.prototype.visitAlternation=function(e){this.dslMethods.alternation.push(e)},t}(a.GAstVisitor),h=new d;function p(e){h.reset(),e.accept(h);var t=h.dslMethods;return h.reset(),t}},function(e,t,n){"use strict";n.r(t),n.d(t,"BITS_FOR_METHOD_TYPE",(function(){return r})),n.d(t,"BITS_FOR_OCCURRENCE_IDX",(function(){return o})),n.d(t,"BITS_FOR_RULE_IDX",(function(){return i})),n.d(t,"BITS_FOR_ALT_IDX",(function(){return a})),n.d(t,"OR_IDX",(function(){return s})),n.d(t,"OPTION_IDX",(function(){return u})),n.d(t,"MANY_IDX",(function(){return l})),n.d(t,"AT_LEAST_ONE_IDX",(function(){return c})),n.d(t,"MANY_SEP_IDX",(function(){return f})),n.d(t,"AT_LEAST_ONE_SEP_IDX",(function(){return d})),n.d(t,"getKeyForAutomaticLookahead",(function(){return h})),n.d(t,"getKeyForAltIndex",(function(){return y}));var r=4,o=8,i=12,a=8,s=1<<o,u=2<<o,l=3<<o,c=4<<o,f=5<<o,d=6<<o;function h(e,t,n){return n|t|e}var p=32-a;function y(e,t,n,r){var o=r+1<<p;return h(e,t,n)|o}},function(e,t,n){"use strict";n.r(t),n.d(t,"resolveGrammar",(function(){return u})),n.d(t,"validateGrammar",(function(){return l})),n.d(t,"assignOccurrenceIndices",(function(){return c}));var r=n(48),o=n(674),i=n(221),a=n(136),s=n(183);function u(e){e=Object(r.defaults)(e,{errMsgProvider:a.defaultGrammarResolverErrorProvider});var t={};return Object(r.forEach)(e.rules,(function(e){t[e.name]=e})),Object(o.resolveGrammar)(t,e.errMsgProvider)}function l(e){return e=Object(r.defaults)(e,{errMsgProvider:a.defaultGrammarValidatorErrorProvider,ignoredIssues:{}}),Object(i.validateGrammar)(e.rules,e.maxLookahead,e.tokenTypes,e.ignoredIssues,e.errMsgProvider,e.grammarName)}function c(e){Object(r.forEach)(e.rules,(function(e){var t=new s.DslMethodsCollectorVisitor;e.accept(t),Object(r.forEach)(t.dslMethods,(function(e){Object(r.forEach)(e,(function(e,t){e.idx=t+1}))}))}))}},function(e,t,n){"use strict";n.r(t),n.d(t,"RowsSpan",(function(){return a})),n.d(t,"ColumnsSpan",(function(){return s}));n(85);function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var a=function(){function e(t,n,o){if(r(this,e),this.sheet=t,this.rowStart=n,this.rowEnd=o,n<0)throw Error("Starting row cant be less than 0");if(o<n)throw Error("Row span cant end before start")}return i(e,[{key:"numberOfRows",get:function(){return this.rowEnd-this.rowStart+1}},{key:"start",get:function(){return this.rowStart}},{key:"end",get:function(){return this.rowEnd}},{key:"rows",value:regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.rowStart;case 1:if(!(t<=this.rowEnd)){e.next=7;break}return e.next=4,t;case 4:++t,e.next=1;break;case 7:case"end":return e.stop()}}),e,this)}))},{key:"intersect",value:function(t){if(this.sheet!==t.sheet)throw Error("Can't intersect spans from different sheets");var n=Math.max(this.rowStart,t.rowStart),r=Math.min(this.rowEnd,t.rowEnd);return n>r?null:new e(this.sheet,n,r)}},{key:"firstRow",value:function(){return new e(this.sheet,this.rowStart,this.rowStart)}}],[{key:"fromNumberOfRows",value:function(t,n,r){return new e(t,n,n+r-1)}},{key:"fromRowStartAndEnd",value:function(t,n,r){return new e(t,n,r)}}]),e}(),s=function(){function e(t,n,o){if(r(this,e),this.sheet=t,this.columnStart=n,this.columnEnd=o,n<0)throw Error("Starting column cant be less than 0");if(o<n)throw Error("Column span cant end before start")}return i(e,[{key:"numberOfColumns",get:function(){return this.columnEnd-this.columnStart+1}},{key:"start",get:function(){return this.columnStart}},{key:"end",get:function(){return this.columnEnd}},{key:"columns",value:regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.columnStart;case 1:if(!(t<=this.columnEnd)){e.next=7;break}return e.next=4,t;case 4:++t,e.next=1;break;case 7:case"end":return e.stop()}}),e,this)}))},{key:"intersect",value:function(t){if(this.sheet!==t.sheet)throw Error("Can't intersect spans from different sheets");var n=Math.max(this.columnStart,t.columnStart),r=Math.min(this.columnEnd,t.columnEnd);return n>r?null:new e(this.sheet,n,r)}},{key:"firstColumn",value:function(){return new e(this.sheet,this.columnStart,this.columnStart)}}],[{key:"fromNumberOfColumns",value:function(t,n,r){return new e(t,n,n+r-1)}},{key:"fromColumnStartAndEnd",value:function(t,n,r){return new e(t,n,r)}}]),e}()},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)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.r(t),n.d(t,"InterpreterState",(function(){return i}));
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
var i=o((function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.formulaAddress=t,this.arraysFlag=n,this.formulaVertex=r}))},function(e,t,n){"use strict";n.r(t),n.d(t,"DenseSparseChooseBasedOnThreshold",(function(){return u})),n.d(t,"AlwaysSparse",(function(){return l})),n.d(t,"AlwaysDense",(function(){return c}));var r=n(282),o=n(281);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var u=function(){function e(t){i(this,e),this.threshold=t}return s(e,[{key:"call",value:function(e){return e>this.threshold?r.DenseStrategy:o.SparseStrategy}}]),e}(),l=function(){function e(){i(this,e)}return s(e,[{key:"call",value:function(){return o.SparseStrategy}}]),e}(),c=function(){function e(){i(this,e)}return s(e,[{key:"call",value:function(){return r.DenseStrategy}}]),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"HyperFormula",(function(){return T}));n(18),n(37),n(22),n(2),n(3),n(0),n(4),n(33),n(13),n(25),n(12),n(8),n(9),n(10);var r=n(86),o=n(375),i=n(704),a=n(24),s=n(190),u=n(226),l=n(156),c=n(723),f=n(725),d=n(41),h=n(225),p=n(291),y=n(228),m=n(72);function g(e){return function(e){if(Array.isArray(e))return E(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||v(e)||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.")}()}function v(e,t){if(e){if("string"==typeof e)return E(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)?E(e,t):void 0}}function E(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 b(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)}}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
var T=function(){function e(t,n,r,o,i,a,s,u,l,c,d,h,p,y){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._config=t,this._stats=n,this._dependencyGraph=r,this._columnSearch=o,this._parser=i,this._unparser=a,this._cellContentParser=s,this._evaluator=u,this._lazilyTransformingAstService=l,this._crudOperations=c,this._exporter=d,this._namedExpressions=h,this._serialization=p,this._functionRegistry=y,this._emitter=new f.Emitter,this._evaluationSuspended=!1}var t,n,E;return t=e,E=[{key:"defaultConfig",get:function(){return Object(u.getDefaultConfig)()}},{key:"buildFromArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return this.buildFromEngineState(i.BuildEngineFactory.buildFromSheet(e,t,n))}},{key:"buildFromSheets",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return this.buildFromEngineState(i.BuildEngineFactory.buildFromSheets(e,t,n))}},{key:"buildEmpty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.buildFromEngineState(i.BuildEngineFactory.buildEmpty(e,t))}},{key:"getLanguage",value:function(e){Object(o.validateArgToType)(e,"string","languageCode");var t=this.registeredLanguages.get(e);if(void 0===t)throw new d.LanguageNotRegisteredError;return t}},{key:"registerLanguage",value:function(e,t){if(Object(o.validateArgToType)(e,"string","languageCode"),this.registeredLanguages.has(e))throw new d.LanguageAlreadyRegisteredError;this.registeredLanguages.set(e,Object(h.buildTranslationPackage)(t))}},{key:"unregisterLanguage",value:function(e){if(Object(o.validateArgToType)(e,"string","languageCode"),!this.registeredLanguages.has(e))throw new d.LanguageNotRegisteredError;this.registeredLanguages.delete(e)}},{key:"getRegisteredLanguagesCodes",value:function(){return Array.from(this.registeredLanguages.keys())}},{key:"registerFunctionPlugin",value:function(e,t){p.FunctionRegistry.registerFunctionPlugin(e,t)}},{key:"unregisterFunctionPlugin",value:function(e){p.FunctionRegistry.unregisterFunctionPlugin(e)}},{key:"registerFunction",value:function(e,t,n){Object(o.validateArgToType)(e,"string","functionId"),p.FunctionRegistry.registerFunction(e,t,n)}},{key:"unregisterFunction",value:function(e){Object(o.validateArgToType)(e,"string","functionId"),p.FunctionRegistry.unregisterFunction(e)}},{key:"unregisterAllFunctions",value:function(){p.FunctionRegistry.unregisterAll()}},{key:"getRegisteredFunctionNames",value:function(e){Object(o.validateArgToType)(e,"string","code");var t=p.FunctionRegistry.getRegisteredFunctionIds();return this.getLanguage(e).getFunctionTranslations(t)}},{key:"getFunctionPlugin",value:function(e){return Object(o.validateArgToType)(e,"string","functionId"),p.FunctionRegistry.getFunctionPlugin(e)}},{key:"getAllFunctionPlugins",value:function(){return p.FunctionRegistry.getPlugins()}},{key:"buildFromEngineState",value:function(t){return new e(t.config,t.stats,t.dependencyGraph,t.columnSearch,t.parser,t.unparser,t.cellContentParser,t.evaluator,t.lazilyTransformingAstService,t.crudOperations,t.exporter,t.namedExpressions,t.serialization,t.functionRegistry)}}],(n=[{key:"graph",get:function(){return this.dependencyGraph.graph}},{key:"rangeMapping",get:function(){return this.dependencyGraph.rangeMapping}},{key:"arrayMapping",get:function(){return this.dependencyGraph.arrayMapping}},{key:"sheetMapping",get:function(){return this.dependencyGraph.sheetMapping}},{key:"addressMapping",get:function(){return this.dependencyGraph.addressMapping}},{key:"dependencyGraph",get:function(){return this._dependencyGraph}},{key:"evaluator",get:function(){return this._evaluator}},{key:"columnSearch",get:function(){return this._columnSearch}},{key:"lazilyTransformingAstService",get:function(){return this._lazilyTransformingAstService}},{key:"licenseKeyValidityState",get:function(){return this._config.licenseKeyValidityState}},{key:"getCellValue",value:function(e){if(!Object(a.isSimpleCellAddress)(e))throw new d.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");return this.ensureEvaluationIsNotSuspended(),this._serialization.getCellValue(e)}},{key:"getCellFormula",value:function(e){if(!Object(a.isSimpleCellAddress)(e))throw new d.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");return this._serialization.getCellFormula(e)}},{key:"getCellSerialized",value:function(e){if(!Object(a.isSimpleCellAddress)(e))throw new d.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");return this.ensureEvaluationIsNotSuspended(),this._serialization.getCellSerialized(e)}},{key:"getSheetValues",value:function(e){return Object(o.validateArgToType)(e,"number","sheetId"),this.ensureEvaluationIsNotSuspended(),this._serialization.getSheetValues(e)}},{key:"getSheetFormulas",value:function(e){return Object(o.validateArgToType)(e,"number","sheetId"),this._serialization.getSheetFormulas(e)}},{key:"getSheetSerialized",value:function(e){return Object(o.validateArgToType)(e,"number","sheetId"),this.ensureEvaluationIsNotSuspended(),this._serialization.getSheetSerialized(e)}},{key:"getAllSheetsDimensions",value:function(){var e=this;return this._serialization.genericAllSheetsGetter((function(t){return e.getSheetDimensions(t)}))}},{key:"getSheetDimensions",value:function(e){return Object(o.validateArgToType)(e,"number","sheetId"),{width:this.dependencyGraph.getSheetWidth(e),height:this.dependencyGraph.getSheetHeight(e)}}},{key:"getAllSheetsValues",value:function(){return this.ensureEvaluationIsNotSuspended(),this._serialization.getAllSheetsValues()}},{key:"getAllSheetsFormulas",value:function(){return this._serialization.getAllSheetsFormulas()}},{key:"getAllSheetsSerialized",value:function(){return this.ensureEvaluationIsNotSuspended(),this._serialization.getAllSheetsSerialized()}},{key:"updateConfig",value:function(e){var t=this._config.mergeConfig(e),n=this._config.mergeConfig({language:e.language}),r=this._serialization.withNewConfig(n,this._namedExpressions).getAllSheetsSerialized(),o=this._serialization.getAllNamedExpressionsSerialized(),a=i.BuildEngineFactory.rebuildWithConfig(t,r,o,this._stats);this._config=a.config,this._stats=a.stats,this._dependencyGraph=a.dependencyGraph,this._columnSearch=a.columnSearch,this._parser=a.parser,this._unparser=a.unparser,this._cellContentParser=a.cellContentParser,this._evaluator=a.evaluator,this._lazilyTransformingAstService=a.lazilyTransformingAstService,this._crudOperations=a.crudOperations,this._exporter=a.exporter,this._namedExpressions=a.namedExpressions,this._serialization=a.serialization,this._functionRegistry=a.functionRegistry}},{key:"getConfig",value:function(){return this._config.getConfig()}},{key:"rebuildAndRecalculate",value:function(){this.updateConfig({})}},{key:"getStats",value:function(){return this._stats.snapshot()}},{key:"undo",value:function(){return this._crudOperations.undo(),this.recomputeIfDependencyGraphNeedsIt()}},{key:"redo",value:function(){return this._crudOperations.redo(),this.recomputeIfDependencyGraphNeedsIt()}},{key:"isThereSomethingToUndo",value:function(){return this._crudOperations.isThereSomethingToUndo()}},{key:"isThereSomethingToRedo",value:function(){return this._crudOperations.isThereSomethingToRedo()}},{key:"isItPossibleToSetCellContents",value:function(e){var t;if(Object(a.isSimpleCellAddress)(e))t=new r.AbsoluteCellRange(e,e);else{if(!Object(r.isSimpleCellRange)(e))throw new d.ExpectedValueOfTypeError("SimpleCellAddress | SimpleCellRange","address");t=new r.AbsoluteCellRange(e.start,e.end)}try{this._crudOperations.ensureRangeInSizeLimits(t);var n,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=v(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(t.addresses(this._dependencyGraph));try{for(o.s();!(n=o.n()).done;){var i=n.value;this._crudOperations.ensureItIsPossibleToChangeContent(i)}}catch(e){o.e(e)}finally{o.f()}}catch(e){return!1}return!0}},{key:"setCellContents",value:function(e,t){return this._crudOperations.setCellContents(e,t),this.recomputeIfDependencyGraphNeedsIt()}},{key:"swapRowIndexes",value:function(e,t){return Object(o.validateArgToType)(e,"number","sheetId"),this._crudOperations.setRowOrder(e,t),this.recomputeIfDependencyGraphNeedsIt()}},{key:"isItPossibleToSwapRowIndexes",value:function(e,t){Object(o.validateArgToType)(e,"number","sheetId");try{return this._crudOperations.validateSwapRowIndexes(e,t),this._crudOperations.testRowOrderForArrays(e,t),!0}catch(e){return!1}}},{key:"setRowOrder",value:function(e,t){Object(o.validateArgToType)(e,"number","sheetId");var n=this._crudOperations.mappingFromOrder(e,t,"row");return this.swapRowIndexes(e,n)}},{key:"isItPossibleToSetRowOrder",value:function(e,t){Object(o.validateArgToType)(e,"number","sheetId");try{var n=this._crudOperations.mappingFromOrder(e,t,"row");return this._crudOperations.validateSwapRowIndexes(e,n),this._crudOperations.testRowOrderForArrays(e,n),!0}catch(e){return!1}}},{key:"swapColumnIndexes",value:function(e,t){return Object(o.validateArgToType)(e,"number","sheetId"),this._crudOperations.setColumnOrder(e,t),this.recomputeIfDependencyGraphNeedsIt()}},{key:"isItPossibleToSwapColumnIndexes",value:function(e,t){Object(o.validateArgToType)(e,"number","sheetId");try{return this._crudOperations.validateSwapColumnIndexes(e,t),this._crudOperations.testColumnOrderForArrays(e,t),!0}catch(e){return!1}}},{key:"setColumnOrder",value:function(e,t){Object(o.validateArgToType)(e,"number","sheetId");var n=this._crudOperations.mappingFromOrder(e,t,"column");return this.swapColumnIndexes(e,n)}},{key:"isItPossibleToSetColumnOrder",value:function(e,t){Object(o.validateArgToType)(e,"number","sheetId");try{var n=this._crudOperations.mappingFromOrder(e,t,"column");return this._crudOperations.validateSwapColumnIndexes(e,n),this._crudOperations.testColumnOrderForArrays(e,n),!0}catch(e){return!1}}},{key:"isItPossibleToAddRows",value:function(e){Object(o.validateArgToType)(e,"number","sheetId");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=Object(y.normalizeAddedIndexes)(n);try{var a;return(a=this._crudOperations).ensureItIsPossibleToAddRows.apply(a,[e].concat(g(i))),!0}catch(e){return!1}}},{key:"addRows",value:function(e){var t;Object(o.validateArgToType)(e,"number","sheetId");for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return(t=this._crudOperations).addRows.apply(t,[e].concat(r)),this.recomputeIfDependencyGraphNeedsIt()}},{key:"isItPossibleToRemoveRows",value:function(e){Object(o.validateArgToType)(e,"number","sheetId");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=Object(y.normalizeRemovedIndexes)(n);try{var a;return(a=this._crudOperations).ensureItIsPossibleToRemoveRows.apply(a,[e].concat(g(i))),!0}catch(e){return!1}}},{key:"removeRows",value:function(e){var t;Object(o.validateArgToType)(e,"number","sheetId");for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return(t=this._crudOperations).removeRows.apply(t,[e].concat(r)),this.recomputeIfDependencyGraphNeedsIt()}},{key:"isItPossibleToAddColumns",value:function(e){Object(o.validateArgToType)(e,"number","sheetId");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=Object(y.normalizeAddedIndexes)(n);try{var a;return(a=this._crudOperations).ensureItIsPossibleToAddColumns.apply(a,[e].concat(g(i))),!0}catch(e){return!1}}},{key:"addColumns",value:function(e){var t;Object(o.validateArgToType)(e,"number","sheetId");for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return(t=this._crudOperations).addColumns.apply(t,[e].concat(r)),this.recomputeIfDependencyGraphNeedsIt()}},{key:"isItPossibleToRemoveColumns",value:function(e){Object(o.validateArgToType)(e,"number","sheetId");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=Object(y.normalizeRemovedIndexes)(n);try{var a;return(a=this._crudOperations).ensureItIsPossibleToRemoveColumns.apply(a,[e].concat(g(i))),!0}catch(e){return!1}}},{key:"removeColumns",value:function(e){var t;Object(o.validateArgToType)(e,"number","sheetId");for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return(t=this._crudOperations).removeColumns.apply(t,[e].concat(r)),this.recomputeIfDependencyGraphNeedsIt()}},{key:"isItPossibleToMoveCells",value:function(e,t){if(!Object(a.isSimpleCellAddress)(t))throw new d.ExpectedValueOfTypeError("SimpleCellAddress","destinationLeftCorner");if(!Object(r.isSimpleCellRange)(e))throw new d.ExpectedValueOfTypeError("SimpleCellRange","source");try{var n=new r.AbsoluteCellRange(e.start,e.end);return this._crudOperations.operations.ensureItIsPossibleToMoveCells(n.start,n.width(),n.height(),t),!0}catch(e){return!1}}},{key:"moveCells",value:function(e,t){if(!Object(a.isSimpleCellAddress)(t))throw new d.ExpectedValueOfTypeError("SimpleCellAddress","destinationLeftCorner");if(!Object(r.isSimpleCellRange)(e))throw new d.ExpectedValueOfTypeError("SimpleCellRange","source");var n=new r.AbsoluteCellRange(e.start,e.end);return this._crudOperations.moveCells(n.start,n.width(),n.height(),t),this.recomputeIfDependencyGraphNeedsIt()}},{key:"isItPossibleToMoveRows",value:function(e,t,n,r){Object(o.validateArgToType)(e,"number","sheetId"),Object(o.validateArgToType)(t,"number","startRow"),Object(o.validateArgToType)(n,"number","numberOfRows"),Object(o.validateArgToType)(r,"number","targetRow");try{return this._crudOperations.ensureItIsPossibleToMoveRows(e,t,n,r),!0}catch(e){return!1}}},{key:"moveRows",value:function(e,t,n,r){return Object(o.validateArgToType)(e,"number","sheetId"),Object(o.validateArgToType)(t,"number","startRow"),Object(o.validateArgToType)(n,"number","numberOfRows"),Object(o.validateArgToType)(r,"number","targetRow"),this._crudOperations.moveRows(e,t,n,r),this.recomputeIfDependencyGraphNeedsIt()}},{key:"isItPossibleToMoveColumns",value:function(e,t,n,r){Object(o.validateArgToType)(e,"number","sheetId"),Object(o.validateArgToType)(t,"number","startColumn"),Object(o.validateArgToType)(n,"number","numberOfColumns"),Object(o.validateArgToType)(r,"number","targetColumn");try{return this._crudOperations.ensureItIsPossibleToMoveColumns(e,t,n,r),!0}catch(e){return!1}}},{key:"moveColumns",value:function(e,t,n,r){return Object(o.validateArgToType)(e,"number","sheetId"),Object(o.validateArgToType)(t,"number","startColumn"),Object(o.validateArgToType)(n,"number","numberOfColumns"),Object(o.validateArgToType)(r,"number","targetColumn"),this._crudOperations.moveColumns(e,t,n,r),this.recomputeIfDependencyGraphNeedsIt()}},{key:"copy",value:function(e){if(!Object(r.isSimpleCellRange)(e))throw new d.ExpectedValueOfTypeError("SimpleCellRange","source");var t=new r.AbsoluteCellRange(e.start,e.end);return this._crudOperations.copy(t.start,t.width(),t.height()),this.getRangeValues(e)}},{key:"cut",value:function(e){if(!Object(r.isSimpleCellRange)(e))throw new d.ExpectedValueOfTypeError("SimpleCellRange","source");var t=new r.AbsoluteCellRange(e.start,e.end);return this._crudOperations.cut(t.start,t.width(),t.height()),this.getRangeValues(e)}},{key:"paste",value:function(e){if(!Object(a.isSimpleCellAddress)(e))throw new d.ExpectedValueOfTypeError("SimpleCellAddress","targetLeftCorner");return this.ensureEvaluationIsNotSuspended(),this._crudOperations.paste(e),this.recomputeIfDependencyGraphNeedsIt()}},{key:"isClipboardEmpty",value:function(){return this._crudOperations.isClipboardEmpty()}},{key:"clearClipboard",value:function(){this._crudOperations.clearClipboard()}},{key:"clearRedoStack",value:function(){this._crudOperations.undoRedo.clearRedoStack()}},{key:"clearUndoStack",value:function(){this._crudOperations.undoRedo.clearUndoStack()}},{key:"getRangeValues",value:function(e){var t=this;if(!Object(r.isSimpleCellRange)(e))throw new d.ExpectedValueOfTypeError("SimpleCellRange","source");return new r.AbsoluteCellRange(e.start,e.end).arrayOfAddressesInRange().map((function(e){return e.map((function(e){return t.getCellValue(e)}))}))}},{key:"getRangeFormulas",value:function(e){var t=this;if(!Object(r.isSimpleCellRange)(e))throw new d.ExpectedValueOfTypeError("SimpleCellRange","source");return new r.AbsoluteCellRange(e.start,e.end).arrayOfAddressesInRange().map((function(e){return e.map((function(e){return t.getCellFormula(e)}))}))}},{key:"getRangeSerialized",value:function(e){var t=this;if(!Object(r.isSimpleCellRange)(e))throw new d.ExpectedValueOfTypeError("SimpleCellRange","source");return new r.AbsoluteCellRange(e.start,e.end).arrayOfAddressesInRange().map((function(e){return e.map((function(e){return t.getCellSerialized(e)}))}))}},{key:"getFillRangeData",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!Object(r.isSimpleCellRange)(e))throw new d.ExpectedValueOfTypeError("SimpleCellRange","source");if(!Object(r.isSimpleCellRange)(t))throw new d.ExpectedValueOfTypeError("SimpleCellRange","target");var i=new r.AbsoluteCellRange(e.start,e.end),a=new r.AbsoluteCellRange(t.start,t.end);return this.ensureEvaluationIsNotSuspended(),a.arrayOfAddressesInRange().map((function(r){return r.map((function(r){var a=((r.row-(o?t:e).start.row)%i.height()+i.height())%i.height()+e.start.row,s=((r.col-(o?t:e).start.col)%i.width()+i.width())%i.width()+e.start.col;return n._serialization.getCellSerialized({row:a,col:s,sheet:i.sheet},r)}))}))}},{key:"isItPossibleToAddSheet",value:function(e){Object(o.validateArgToType)(e,"string","sheetName");try{return this._crudOperations.ensureItIsPossibleToAddSheet(e),!0}catch(e){return!1}}},{key:"addSheet",value:function(e){void 0!==e&&Object(o.validateArgToType)(e,"string","sheetName");var t=this._crudOperations.addSheet(e);return this._emitter.emit(f.Events.SheetAdded,t),t}},{key:"isItPossibleToRemoveSheet",value:function(e){Object(o.validateArgToType)(e,"number","sheetId");try{return this._crudOperations.ensureScopeIdIsValid(e),!0}catch(e){return!1}}},{key:"removeSheet",value:function(e){Object(o.validateArgToType)(e,"number","sheetId");var t=this.sheetMapping.getDisplayName(e);this._crudOperations.removeSheet(e);var n=this.recomputeIfDependencyGraphNeedsIt();return this._emitter.emit(f.Events.SheetRemoved,t,n),n}},{key:"isItPossibleToClearSheet",value:function(e){Object(o.validateArgToType)(e,"number","sheetId");try{return this._crudOperations.ensureScopeIdIsValid(e),!0}catch(e){return!1}}},{key:"clearSheet",value:function(e){return Object(o.validateArgToType)(e,"number","sheetId"),this._crudOperations.clearSheet(e),this.recomputeIfDependencyGraphNeedsIt()}},{key:"isItPossibleToReplaceSheetContent",value:function(e,t){Object(o.validateArgToType)(e,"number","sheetId");try{return this._crudOperations.ensureScopeIdIsValid(e),this._crudOperations.ensureItIsPossibleToChangeSheetContents(e,t),!0}catch(e){return!1}}},{key:"setSheetContent",value:function(e,t){return Object(o.validateArgToType)(e,"number","sheetId"),this._crudOperations.setSheetContent(e,t),this.recomputeIfDependencyGraphNeedsIt()}},{key:"simpleCellAddressFromString",value:function(e,t){return Object(o.validateArgToType)(e,"string","cellAddress"),Object(o.validateArgToType)(t,"number","sheetId"),Object(m.simpleCellAddressFromString)(this.sheetMapping.get,e,t)}},{key:"simpleCellRangeFromString",value:function(e,t){return Object(o.validateArgToType)(e,"string","cellRange"),Object(o.validateArgToType)(t,"number","sheetId"),Object(m.simpleCellRangeFromString)(this.sheetMapping.get,e,t)}},{key:"simpleCellAddressToString",value:function(e,t){if(!Object(a.isSimpleCellAddress)(e))throw new d.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");return Object(o.validateArgToType)(t,"number","sheetId"),Object(m.simpleCellAddressToString)(this.sheetMapping.fetchDisplayName,e,t)}},{key:"simpleCellRangeToString",value:function(e,t){if(!Object(r.isSimpleCellRange)(e))throw new d.ExpectedValueOfTypeError("SimpleCellRange","cellRange");return Object(o.validateArgToType)(t,"number","sheetId"),Object(m.simpleCellRangeToString)(this.sheetMapping.fetchDisplayName,e,t)}},{key:"getCellDependents",value:function(e){var t;if(Object(a.isSimpleCellAddress)(e))t=this._dependencyGraph.addressMapping.getCell(e);else{if(!Object(r.isSimpleCellRange)(e))throw new d.ExpectedValueOfTypeError("SimpleCellAddress | SimpleCellRange",e);t=this._dependencyGraph.rangeMapping.getRange(e.start,e.end)}return void 0===t?[]:this._dependencyGraph.getAdjacentNodesAddresses(t)}},{key:"getCellPrecedents",value:function(e){var t;if(Object(a.isSimpleCellAddress)(e))t=this._dependencyGraph.addressMapping.getCell(e);else{if(!Object(r.isSimpleCellRange)(e))throw new d.ExpectedValueOfTypeError("SimpleCellAddress | SimpleCellRange",e);t=this._dependencyGraph.rangeMapping.getRange(e.start,e.end)}return void 0===t?[]:this._dependencyGraph.dependencyQueryAddresses(t)}},{key:"getSheetName",value:function(e){return Object(o.validateArgToType)(e,"number","sheetId"),this.sheetMapping.getDisplayName(e)}},{key:"getSheetNames",value:function(){return this.sheetMapping.sheetNames()}},{key:"getSheetId",value:function(e){return Object(o.validateArgToType)(e,"string","sheetName"),this.sheetMapping.get(e)}},{key:"doesSheetExist",value:function(e){return Object(o.validateArgToType)(e,"string","sheetName"),this.sheetMapping.hasSheetWithName(e)}},{key:"getCellType",value:function(e){if(!Object(a.isSimpleCellAddress)(e))throw new d.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");var t=this.dependencyGraph.getCell(e);return Object(a.getCellType)(t,e)}},{key:"doesCellHaveSimpleValue",value:function(e){if(!Object(a.isSimpleCellAddress)(e))throw new d.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");return this.getCellType(e)===a.CellType.VALUE}},{key:"doesCellHaveFormula",value:function(e){if(!Object(a.isSimpleCellAddress)(e))throw new d.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");var t=this.getCellType(e);return t===a.CellType.FORMULA||t===a.CellType.ARRAYFORMULA}},{key:"isCellEmpty",value:function(e){if(!Object(a.isSimpleCellAddress)(e))throw new d.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");return this.getCellType(e)===a.CellType.EMPTY}},{key:"isCellPartOfArray",value:function(e){if(!Object(a.isSimpleCellAddress)(e))throw new d.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");var t=this.getCellType(e);return t===a.CellType.ARRAY||t===a.CellType.ARRAYFORMULA}},{key:"getCellValueType",value:function(e){if(!Object(a.isSimpleCellAddress)(e))throw new d.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");this.ensureEvaluationIsNotSuspended();var t=this.dependencyGraph.getCellValue(e);return Object(a.getCellValueType)(t)}},{key:"getCellValueDetailedType",value:function(e){if(!Object(a.isSimpleCellAddress)(e))throw new d.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");this.ensureEvaluationIsNotSuspended();var t=this.dependencyGraph.getCellValue(e);return Object(a.getCellValueDetailedType)(t)}},{key:"getCellValueFormat",value:function(e){if(!Object(a.isSimpleCellAddress)(e))throw new d.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");this.ensureEvaluationIsNotSuspended();var t=this.dependencyGraph.getCellValue(e);return Object(a.getCellValueFormat)(t)}},{key:"countSheets",value:function(){return this.sheetMapping.numberOfSheets()}},{key:"isItPossibleToRenameSheet",value:function(e,t){Object(o.validateArgToType)(e,"number","sheetId"),Object(o.validateArgToType)(t,"string","newName");try{return this._crudOperations.ensureItIsPossibleToRenameSheet(e,t),!0}catch(e){return!1}}},{key:"renameSheet",value:function(e,t){Object(o.validateArgToType)(e,"number","sheetId"),Object(o.validateArgToType)(t,"string","newName");var n=this._crudOperations.renameSheet(e,t);void 0!==n&&this._emitter.emit(f.Events.SheetRenamed,n,t)}},{key:"batch",value:function(e){this.suspendEvaluation(),this._crudOperations.beginUndoRedoBatchMode();try{e()}catch(e){throw this._crudOperations.commitUndoRedoBatchMode(),this.resumeEvaluation(),e}return this._crudOperations.commitUndoRedoBatchMode(),this.resumeEvaluation()}},{key:"suspendEvaluation",value:function(){this._evaluationSuspended=!0,this._emitter.emit(f.Events.EvaluationSuspended)}},{key:"resumeEvaluation",value:function(){this._evaluationSuspended=!1;var e=this.recomputeIfDependencyGraphNeedsIt();return this._emitter.emit(f.Events.EvaluationResumed,e),e}},{key:"isEvaluationSuspended",value:function(){return this._evaluationSuspended}},{key:"isItPossibleToAddNamedExpression",value:function(e,t,n){Object(o.validateArgToType)(e,"string","expressionName"),void 0!==n&&Object(o.validateArgToType)(n,"number","scope");try{return this._crudOperations.ensureItIsPossibleToAddNamedExpression(e,t,n),!0}catch(e){return!1}}},{key:"addNamedExpression",value:function(e,t,n,r){Object(o.validateArgToType)(e,"string","expressionName"),void 0!==n&&Object(o.validateArgToType)(n,"number","scope"),this._crudOperations.addNamedExpression(e,t,n,r);var i=this.recomputeIfDependencyGraphNeedsIt();return this._emitter.emit(f.Events.NamedExpressionAdded,e,i),i}},{key:"getNamedExpressionValue",value:function(e,t){Object(o.validateArgToType)(e,"string","expressionName"),void 0!==t&&Object(o.validateArgToType)(t,"number","scope"),this.ensureEvaluationIsNotSuspended(),this._crudOperations.ensureScopeIdIsValid(t);var n=this._namedExpressions.namedExpressionForScope(e,t);return n?this._serialization.getCellValue(n.address):void 0}},{key:"getNamedExpressionFormula",value:function(e,t){Object(o.validateArgToType)(e,"string","expressionName"),void 0!==t&&Object(o.validateArgToType)(t,"number","scope"),this._crudOperations.ensureScopeIdIsValid(t);var n=this._namedExpressions.namedExpressionForScope(e,t);return void 0===n?void 0:this._serialization.getCellFormula(n.address)}},{key:"getNamedExpression",value:function(e,t){Object(o.validateArgToType)(e,"string","expressionName"),void 0!==t&&Object(o.validateArgToType)(t,"number","scope");var n=this._namedExpressions.namedExpressionForScope(e,t);if(void 0!==n)return{name:e,scope:t,expression:this._serialization.getCellFormula(n.address),options:n.options}}},{key:"isItPossibleToChangeNamedExpression",value:function(e,t,n){Object(o.validateArgToType)(e,"string","expressionName"),void 0!==n&&Object(o.validateArgToType)(n,"number","scope");try{return this._crudOperations.ensureItIsPossibleToChangeNamedExpression(e,t,n),!0}catch(e){return!1}}},{key:"changeNamedExpression",value:function(e,t,n,r){return Object(o.validateArgToType)(e,"string","expressionName"),void 0!==n&&Object(o.validateArgToType)(n,"number","scope"),this._crudOperations.changeNamedExpressionExpression(e,n,t,r),this.recomputeIfDependencyGraphNeedsIt()}},{key:"isItPossibleToRemoveNamedExpression",value:function(e,t){Object(o.validateArgToType)(e,"string","expressionName"),void 0!==t&&Object(o.validateArgToType)(t,"number","scope");try{return this._crudOperations.isItPossibleToRemoveNamedExpression(e,t),!0}catch(e){return!1}}},{key:"removeNamedExpression",value:function(e,t){Object(o.validateArgToType)(e,"string","expressionName"),void 0!==t&&Object(o.validateArgToType)(t,"number","scope");var n=this._crudOperations.removeNamedExpression(e,t);if(n){var r=this.recomputeIfDependencyGraphNeedsIt();return this._emitter.emit(f.Events.NamedExpressionRemoved,n.displayName,r),r}return[]}},{key:"listNamedExpressions",value:function(e){return void 0!==e&&Object(o.validateArgToType)(e,"number","scope"),this._crudOperations.ensureScopeIdIsValid(e),this._namedExpressions.getAllNamedExpressionsNamesInScope(e)}},{key:"getAllNamedExpressionsSerialized",value:function(){return this._serialization.getAllNamedExpressionsSerialized()}},{key:"normalizeFormula",value:function(e){Object(o.validateArgToType)(e,"string","formulaString");var t=this.extractTemporaryFormula(e),n=t.ast,r=t.address;if(void 0===n)throw new d.NotAFormulaError;return this._unparser.unparse(n,r)}},{key:"calculateFormula",value:function(e,t){Object(o.validateArgToType)(e,"string","formulaString"),Object(o.validateArgToType)(t,"number","sheetId"),this._crudOperations.ensureScopeIdIsValid(t);var n=this.extractTemporaryFormula(e,t),r=n.ast,i=n.address,a=n.dependencies;if(void 0===r)throw new d.NotAFormulaError;var s=this.evaluator.runAndForget(r,i,a);return this._exporter.exportScalarOrRange(s)}},{key:"validateFormula",value:function(e){Object(o.validateArgToType)(e,"string","formulaString");var t=this.extractTemporaryFormula(e).ast;return void 0!==t&&!(t.type===m.AstNodeType.ERROR&&!t.error)}},{key:"getRegisteredFunctionNames",value:function(){return e.getLanguage(this._config.language).getFunctionTranslations(this._functionRegistry.getRegisteredFunctionIds())}},{key:"getFunctionPlugin",value:function(e){return Object(o.validateArgToType)(e,"string","functionId"),this._functionRegistry.getFunctionPlugin(e)}},{key:"getAllFunctionPlugins",value:function(){return this._functionRegistry.getPlugins()}},{key:"numberToDateTime",value:function(e){return Object(o.validateArgToType)(e,"number","val"),this._evaluator.interpreter.dateTimeHelper.numberToSimpleDateTime(e)}},{key:"numberToDate",value:function(e){return Object(o.validateArgToType)(e,"number","val"),this._evaluator.interpreter.dateTimeHelper.numberToSimpleDate(e)}},{key:"numberToTime",value:function(e){return Object(o.validateArgToType)(e,"number","val"),Object(l.numberToSimpleTime)(e)}},{key:"on",value:function(e,t){this._emitter.on(e,t)}},{key:"once",value:function(e,t){this._emitter.once(e,t)}},{key:"off",value:function(e,t){this._emitter.off(e,t)}},{key:"destroy",value:function(){Object(c.objectDestroy)(this)}},{key:"ensureEvaluationIsNotSuspended",value:function(){if(this._evaluationSuspended)throw new d.EvaluationSuspendedError}},{key:"extractTemporaryFormula",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this._cellContentParser.parse(e),r={sheet:t,col:0,row:0};if(!(n instanceof s.CellContent.Formula))return{address:r,dependencies:[]};var o=this._parser.parse(n.formula,r),i=o.ast,a=o.errors,u=o.dependencies;return a.length>0?{address:r,dependencies:[]}:{ast:i,address:r,dependencies:u}}},{key:"recomputeIfDependencyGraphNeedsIt",value:function(){if(this._evaluationSuspended)return[];var e=this._crudOperations.getAndClearContentChanges(),t=Array.from(this.dependencyGraph.verticesToRecompute());this.dependencyGraph.clearRecentlyChangedVertices(),t.length>0&&e.addAll(this.evaluator.partialRun(t));var n=e.exportChanges(this._exporter);return e.isEmpty()||this._emitter.emit(f.Events.ValuesUpdated,n),n}}])&&b(t.prototype,n),E&&b(t,E),Object.defineProperty(t,"prototype",{writable:!1}),e}();T.version="2.0.0",T.buildDate="14/04/2022 09:14:09",T.releaseDate="14/04/2022",T.languages={},T.registeredLanguages=new Map},function(e,t,n){"use strict";n.r(t),n.d(t,"CellContent",(function(){return r})),n.d(t,"isFormula",(function(){return m})),n.d(t,"isBoolean",(function(){return g})),n.d(t,"isError",(function(){return v})),n.d(t,"CellContentParser",(function(){return E}));n(114),n(12),n(109),n(284),n(13),n(8),n(9),n(0),n(10),n(3),n(2),n(4),n(25),n(22);var r,o=n(24),i=n(156),a=n(45),s=n(41),u=n(106),l=n(51);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;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,t)||f(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 f(e,t){if(e){if("string"==typeof e)return d(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)?d(e,t):void 0}}function d(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 h(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 p(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/function m(e){return e.startsWith("=")}function g(e){var t=e.toLowerCase();return"true"===t||"false"===t}function v(e,t){var n=e.toUpperCase();return/#[A-Za-z0-9\/]+[?!]?/.test(n)&&Object.prototype.hasOwnProperty.call(t,n)}!function(e){var t=p((function e(t){y(this,e),this.value=t,this.value=Object(l.cloneNumber)(this.value,Object(u.fixNegativeZero)(Object(l.getRawValue)(this.value)))}));e.Number=t;var n=p((function e(t){y(this,e),this.value=t}));e.String=n;var r=p((function e(t){y(this,e),this.value=t}));e.Boolean=r;var i=function(){function e(){y(this,e)}return p(e,null,[{key:"getSingletonInstance",value:function(){return e.instance||(e.instance=new e),e.instance}}]),e}();e.Empty=i;var a=p((function e(t){y(this,e),this.formula=t}));e.Formula=a;var s=p((function e(t,n){y(this,e),this.value=new o.CellError(t,n)}));e.Error=s}(r||(r={}));var E=function(){function e(t,n,r){y(this,e),this.config=t,this.dateHelper=n,this.numberLiteralsHelper=r}return p(e,[{key:"parse",value:function(e){if(null==e)return r.Empty.getSingletonInstance();if("number"==typeof e)return Object(u.isNumberOverflow)(e)?new r.Error(o.ErrorType.NUM,a.ErrorMessage.ValueLarge):new r.Number(e);if("boolean"==typeof e)return new r.Boolean(e);if(e instanceof Date){var t=this.dateHelper.dateToNumber({day:e.getDate(),month:e.getMonth()+1,year:e.getFullYear()})+Object(i.timeToNumber)({hours:e.getHours(),minutes:e.getMinutes(),seconds:e.getSeconds()+e.getMilliseconds()/1e3});return t<0?new r.Error(o.ErrorType.NUM,a.ErrorMessage.DateBounds):t%1==0?new r.Number(new l.DateNumber(t,"Date()")):t<1?new r.Number(new l.TimeNumber(t,"Date()")):new r.Number(new l.DateTimeNumber(t,"Date()"))}if("string"==typeof e){if(g(e))return new r.Boolean("true"===e.toLowerCase());if(m(e))return new r.Formula(e);if(v(e,this.config.errorMapping))return new r.Error(this.config.errorMapping[e.toUpperCase()]);var n,f=e.trim(),d=0;if(f.endsWith("%"))d=1,f=f.slice(0,f.length-1);else{var h=this.currencyMatcher(f);if(void 0!==h){d=2;var p=c(h,2);n=p[0],f=p[1]}}var y,E=this.numberLiteralsHelper.numericStringToMaybeNumber(f);if(void 0!==E)return y=1===d?new l.PercentNumber(E/100):2===d?new l.CurrencyNumber(E,n):E,new r.Number(y);var b=this.dateHelper.dateStringToDateNumber(f);return void 0!==b?new r.Number(b):new r.String(e.startsWith("'")?e.slice(1):e)}throw new s.UnableToParseError(e)}},{key:"currencyMatcher",value:function(e){var t,n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=f(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(this.config.currencySymbol);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(e.startsWith(r))return[r,e.slice(r.length)];if(e.endsWith(r))return[r,e.slice(0,e.length-r.length)]}}catch(e){n.e(e)}finally{n.f()}}}]),e}()},function(e,t,n){"use strict";var r=n(28),o=n(134).findIndex,i=n(179),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(1);t.__esModule=!0,t.default=t.SHORTCUTS_GROUP_NAVIGATION=t.SHORTCUTS_GROUP_EDITOR=void 0,n(42),n(49),n(3),n(0),n(2),n(11),n(4);var o=r(n(34)),i=r(n(5)),a=r(n(6)),s=n(116),u=n(81),l=n(157),c=r(n(59)),f=n(32);t.SHORTCUTS_GROUP_NAVIGATION="editorManager.navigation";t.SHORTCUTS_GROUP_EDITOR="editorManager.handlingEditor";var d=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 c.default(t),this.destroyed=!1,this.lock=!1,this.activeEditor=void 0,this.cellProperties=void 0,this.instance.getShortcutManager().addContext("editor"),this.registerShortcuts(),this.instance.addHook("afterDocumentKeyDown",(function(e){return o.onAfterDocumentKeyDown(e)})),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:"registerShortcuts",value:function(){var e=this,t=this.instance.getShortcutManager(),n=t.getContext("grid"),r={group:"editorManager.handlingEditor"};t.getContext("editor").addShortcuts([{keys:[["Enter"],["Enter","Shift"],["Enter","Control/Meta"],["Enter","Control/Meta","Shift"]],callback:function(n,r){e.closeEditorAndSaveChanges(t.isCtrlPressed()),e.moveSelectionAfterEnter(r.includes("shift"))}},{keys:[["Escape"],["Escape","Control/Meta"]],callback:function(){e.closeEditorAndRestoreOriginalValue(t.isCtrlPressed()),e.activeEditor.focus()}}],r),n.addShortcuts([{keys:[["F2"]],callback:function(t){e.activeEditor&&e.activeEditor.enableFullEditMode(),e.openEditor(null,t)}},{keys:[["Backspace"],["Delete"]],callback:function(){e.instance.emptySelectedCells(),e.prepareEditor()}},{keys:[["Enter"],["Enter","Shift"]],callback:function(t,n){e.instance.getSettings().enterBeginsEditing?e.cellProperties.readOnly?e.moveSelectionAfterEnter():e.activeEditor&&(e.activeEditor.enableFullEditMode(),e.openEditor(null,t)):e.moveSelectionAfterEnter(n.includes("shift")),(0,u.stopImmediatePropagation)(t)}}],r)}},{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 u=(0,o.default)(i,2);a=u[0],s=u[1]}this.cellProperties=this.instance.getCellMeta(a,s);var c=this.instance.rootDocument.activeElement;if(c&&c.blur(),this.cellProperties.readOnly)this.clearActiveEditor();else{var f=this.instance.getCellEditor(this.cellProperties),d=this.instance.getCell(n,r,!0);if(f&&d){var h=this.instance.colToProp(s),p=this.instance.getSourceDataAtCell(this.instance.toPhysicalRow(a),s);this.activeEditor=(0,l.getEditorInstance)(f,this.instance),this.activeEditor.prepare(n,r,h,d,p,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:"onAfterDocumentKeyDown",value:function(e){var t=this;if(this.instance.isListening()){var n=e.keyCode;if(229!==n&&this.selection.isSelected()){var r=(e.ctrlKey||e.metaKey)&&!e.altKey;if(this.activeEditor&&!this.activeEditor.isWaiting()&&!((0,s.isFunctionKey)(n)||(0,s.isCtrlMetaKey)(n)||r||this.isEditorOpened())){var o={runOnlyIf:function(){return(0,f.isDefined)(t.instance.getSelected())},group:"editorManager.navigation"};this.instance.getShortcutManager().getContext("editor").addShortcuts([{keys:[["ArrowUp"]],callback:function(){t.instance.selection.transformStart(-1,0)}},{keys:[["ArrowDown"]],callback:function(){t.instance.selection.transformStart(1,0)}},{keys:[["ArrowLeft"]],callback:function(){t.instance.selection.transformStart(0,-1*t.instance.getDirectionFactor())}},{keys:[["ArrowRight"]],callback:function(){t.instance.selection.transformStart(0,t.instance.getDirectionFactor())}}],o),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}(),h=new WeakMap;d.getInstance=function(e,t,n){var r=h.get(e);return r||(r=new d(e,t,n),h.set(e,r)),r};var p=d;t.default=p},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.getRegisteredRenderers=t.getRegisteredRendererNames=void 0,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.hasRenderer=void 0,t.registerRenderer=function(e,t){"string"!=typeof e&&(e=(t=e).RENDERER_TYPE);i(e,t)};var o=(0,r(n(110)).default)("renderers"),i=o.register,a=o.getItem,s=o.hasItem,u=o.getNames,l=o.getValues;t.getRegisteredRenderers=l,t.getRegisteredRendererNames=u,t.hasRenderer=s},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.getRegisteredValidators=t.getRegisteredValidatorNames=void 0,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.hasValidator=void 0,t.registerValidator=function(e,t){"string"!=typeof e&&(e=(t=e).VALIDATOR_TYPE);i(e,t)};var o=(0,r(n(110)).default)("validators"),i=o.register,a=o.getItem,s=o.hasItem,u=o.getNames,l=o.getValues;t.getRegisteredValidators=l,t.getRegisteredValidatorNames=u,t.hasValidator=s},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(776)),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";t.__esModule=!0,t.assert=function(e,t){if(!e())throw new Error("Assertion failed: ".concat(t))},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.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.isNullish=function(e){return null==e},t.isUnsignedNumber=function(e){return Number.isInteger(e)&&e>=0},n(67),n(52);var r=n(17),o=n(162)},function(e,t,n){"use strict";t.__esModule=!0,t.EDITOR_TYPE=t.EDITOR_STATE=t.BaseEditor=void 0;var r=n(601);t.EDITOR_STATE=r.EDITOR_STATE,t.EDITOR_TYPE=r.EDITOR_TYPE,t.BaseEditor=r.BaseEditor},function(e,t,n){"use strict";t.__esModule=!0,t.autocompleteRenderer=t.RENDERER_TYPE=void 0;var r=n(863);t.RENDERER_TYPE=r.RENDERER_TYPE,t.autocompleteRenderer=r.autocompleteRenderer},function(e,t,n){"use strict";t.__esModule=!0,t.createArrayAssertion=l,t.intersectValues=function(e,t,n,r){var i,s=[],u=e===t;u||(i=l(t));return(0,o.arrayEach)(e,(function(e){var t=!1;(u||i(e))&&(t=!0);var o={checked:t,value:e,visualValue:a(e,n)};r&&r(o),s.push(o)})),s},t.sortComparison=function(e,t){if("number"==typeof e&&"number"==typeof t)return e-t;return i(e,t)},t.toEmptyString=function(e){return null==e?"":e},t.toVisualValue=a,t.unifyColumnValues=function(e){var t=e;t=u?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}))},n(3),n(0),n(55),n(2),n(4),n(22),n(35),n(73);var r=n(126),o=n(20),i=(0,r.getComparisonFunction)();function a(e,t){var n=e;return""===n&&(n="(".concat(t,")")),n}var s=new Set([1]).has(1),u=s&&"function"==typeof Array.from;function l(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.operations=void 0,t.registerOperation=function(e,t,n){r[e]={name:t,func:n}},n(25);var r={};t.operations=r},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.default=void 0,n(114);var i=r(n(5)),a=r(n(6)),s=n(17),u=r(n(92)),l=r(n(59)),c=n(23),f=n(20),d=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30));function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}var p=["click","input","keydown","keypress","keyup","focus","blur","change"],y=function(){function e(t,n){(0,i.default)(this,e),this.hot=t,this.eventManager=new l.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=null}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(d.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,f.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,f.arrayEach)(p,(function(e){return t(n,e)}))}else(0,f.arrayEach)(p,(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)(y,u.default);var m=y;t.default=m},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(321),o=n(168);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},function(e,t,n){var r=n(36),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},function(e,t,n){var r=n(29),o=n(64),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(149),o=n(204),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(39),o=n(60),i=/#|\.prototype\./,a=function(e,t){var n=u[s(e)];return n==c||n!=l&&(o(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},u=a.data={},l=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},function(e,t,n){var r=n(29),o=n(62),i=n(60),a=n(90),s=n(206),u=n(329),l=s("IE_PROTO"),c=r.Object,f=c.prototype;e.exports=u?c.getPrototypeOf:function(e){var t=a(e);if(o(t,l))return t[l];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof c?f:null}},function(e,t,n){var r=n(29),o=n(247),i=n(60),a=n(119),s=n(58)("toStringTag"),u=r.Object,l="Arguments"==a(function(){return arguments}());e.exports=o?a: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=u(e),s))?n:l?a(t):"Object"==(r=a(t))&&i(t.callee)?"Arguments":r}},function(e,t,n){var r=n(36),o=n(39),i=n(60),a=n(210),s=n(107),u=n(241),l=function(){},c=[],f=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,h=r(d.exec),p=!d.exec(l),y=function(e){if(!i(e))return!1;try{return f(l,c,e),!0}catch(e){return!1}},m=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!h(d,u(e))}catch(e){return!0}};m.sham=!0,e.exports=!f||o((function(){var e;return y(y.call)||!y(Object)||!y((function(){e=!0}))||e}))?m:y},function(e,t,n){var r=n(84).f,o=n(62),i=n(58)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!o(e,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){"use strict";var r,o,i=n(70),a=n(36),s=n(71),u=n(339),l=n(254),c=n(149),f=n(133),d=n(113).get,h=n(340),p=n(341),y=c("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,g=m,v=a("".charAt),E=a("".indexOf),b=a("".replace),T=a("".slice),C=(o=/b*/g,i(m,r=/a/,"a"),i(m,o,"a"),0!==r.lastIndex||0!==o.lastIndex),w=l.BROKEN_CARET,R=void 0!==/()??/.exec("")[1];(C||R||w||h||p)&&(g=function(e){var t,n,r,o,a,l,c,h=this,p=d(h),O=s(e),S=p.raw;if(S)return S.lastIndex=h.lastIndex,t=i(g,S,O),h.lastIndex=S.lastIndex,t;var A=p.groups,N=w&&h.sticky,_=i(u,h),k=h.source,M=0,I=O;if(N&&(_=b(_,"y",""),-1===E(_,"g")&&(_+="g"),I=T(O,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==v(O,h.lastIndex-1))&&(k="(?: "+k+")",I=" "+I,M++),n=new RegExp("^(?:"+k+")",_)),R&&(n=new RegExp("^"+k+"$(?!\\s)",_)),C&&(r=h.lastIndex),o=i(m,N?n:h,I),N?o?(o.input=T(o.input,M),o[0]=T(o[0],M),o.index=h.lastIndex,h.lastIndex+=o[0].length):h.lastIndex=0:C&&o&&(h.lastIndex=h.global?o.index+o[0].length:r),R&&o&&o.length>1&&i(y,o[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o&&A)for(o.groups=l=f(null),a=0;a<A.length;a++)l[(c=A[a])[0]]=o[c[1]];return o}),e.exports=g},function(e,t,n){"use strict";var r=n(28),o=n(29),i=n(36),a=n(208),s=n(96),u=n(180),l=n(256),c=n(257),f=n(60),d=n(64),h=n(39),p=n(336),y=n(212),m=n(258);e.exports=function(e,t,n){var g=-1!==e.indexOf("Map"),v=-1!==e.indexOf("Weak"),E=g?"set":"add",b=o[e],T=b&&b.prototype,C=b,w={},R=function(e){var t=i(T[e]);s(T,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(v&&!d(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return v&&!d(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!d(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(a(e,!f(b)||!(v||T.forEach&&!h((function(){(new b).entries().next()})))))C=n.getConstructor(t,e,g,E),u.enable();else if(a(e,!0)){var O=new C,S=O[E](v?{}:-0,1)!=O,A=h((function(){O.has(1)})),N=p((function(e){new b(e)})),_=!v&&h((function(){for(var e=new b,t=5;t--;)e[E](t,t);return!e.has(-0)}));N||((C=t((function(e,t){c(e,T);var n=m(new b,e,C);return null!=t&&l(t,n[E],{that:n,AS_ENTRIES:g}),n}))).prototype=T,T.constructor=C),(A||_)&&(R("delete"),R("has"),g&&R("get")),(_||S)&&R(E),v&&T.clear&&delete T.clear}return w[e]=C,r({global:!0,constructor:!0,forced:C!=b},w),y(C,e),v||n.setStrong(C,e,g),C}},function(e,t,n){"use strict";n(12);var r=n(36),o=n(96),i=n(213),a=n(39),s=n(58),u=n(121),l=s("species"),c=RegExp.prototype;e.exports=function(e,t,n,f){var d=s(e),h=!a((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),p=h&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[l]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return t=!0,null},n[d](""),!t}));if(!h||!p||n){var y=r(/./[d]),m=t(d,""[e],(function(e,t,n,o,a){var s=r(e),u=t.exec;return u===i||u===c.exec?h&&!a?{done:!0,value:y(t,n,o)}:{done:!0,value:s(n,t,o)}:{done:!1}}));o(String.prototype,e,m[0]),o(c,d,m[1])}f&&u(c[d],"sham",!0)}},function(e,t,n){var r=n(29),o=n(70),i=n(65),a=n(60),s=n(119),u=n(213),l=r.TypeError;e.exports=function(e,t){var n=e.exec;if(a(n)){var r=o(n,e,t);return null!==r&&i(r),r}if("RegExp"===s(e))return o(u,e,t);throw l("RegExp#exec called on incompatible receiver")}},function(e,t,n){"use strict";n.r(t),n.d(t,"CellReferenceType",(function(){return r})),n.d(t,"CellAddress",(function(){return l}));n(18);var r,o=n(24),i=n(98),a=n(218),s=n(219);function u(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(e){e.CELL_REFERENCE_RELATIVE="CELL_REFERENCE",e.CELL_REFERENCE_ABSOLUTE="CELL_REFERENCE_ABSOLUTE",e.CELL_REFERENCE_ABSOLUTE_COL="CELL_REFERENCE_ABSOLUTE_COL",e.CELL_REFERENCE_ABSOLUTE_ROW="CELL_REFERENCE_ABSOLUTE_ROW"}(r||(r={}));var l=function(){function e(t,n,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.col=t,this.row=n,this.type=r,this.sheet=o}var t,n,l;
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/return t=e,l=[{key:"fromColAndRow",value:function(t,n,r){return(t.isColumnAbsolute()&&n.isRowAbsolute()?e.absolute.bind(this):t.isColumnAbsolute()?e.absoluteCol.bind(this):n.isRowAbsolute()?e.absoluteRow.bind(this):function(t,n,r){return e.relative(n,t,r)})(t.col,n.row,r)}},{key:"relative",value:function(t,n,o){return new e(n,t,r.CELL_REFERENCE_RELATIVE,o)}},{key:"absolute",value:function(t,n,o){return new e(t,n,r.CELL_REFERENCE_ABSOLUTE,o)}},{key:"absoluteCol",value:function(t,n,o){return new e(t,n,r.CELL_REFERENCE_ABSOLUTE_COL,o)}},{key:"absoluteRow",value:function(t,n,o){return new e(t,n,r.CELL_REFERENCE_ABSOLUTE_ROW,o)}}],(n=[{key:"toSimpleCellAddress",value:function(e){var t=Object(o.absoluteSheetReference)(this,e);return this.type===r.CELL_REFERENCE_ABSOLUTE?Object(o.simpleCellAddress)(t,this.col,this.row):this.type===r.CELL_REFERENCE_ABSOLUTE_ROW?Object(o.simpleCellAddress)(t,e.col+this.col,this.row):this.type===r.CELL_REFERENCE_ABSOLUTE_COL?Object(o.simpleCellAddress)(t,this.col,e.row+this.row):Object(o.simpleCellAddress)(t,e.col+this.col,e.row+this.row)}},{key:"toColumnAddress",value:function(){var e=this.isColumnRelative()?a.ReferenceType.RELATIVE:a.ReferenceType.ABSOLUTE;return new a.ColumnAddress(e,this.col,this.sheet)}},{key:"toRowAddress",value:function(){var e=this.isRowRelative()?a.ReferenceType.RELATIVE:a.ReferenceType.ABSOLUTE;return new s.RowAddress(e,this.row,this.sheet)}},{key:"toSimpleColumnAddress",value:function(e){var t=Object(o.absoluteSheetReference)(this,e),n=this.col;return this.isColumnRelative()&&(n+=e.col),Object(o.simpleColumnAddress)(t,n)}},{key:"toSimpleRowAddress",value:function(e){var t=Object(o.absoluteSheetReference)(this,e),n=this.row;return this.isRowRelative()&&(n+=e.row),Object(o.simpleRowAddress)(t,n)}},{key:"isRowAbsolute",value:function(){return this.type===r.CELL_REFERENCE_ABSOLUTE||this.type===r.CELL_REFERENCE_ABSOLUTE_ROW}},{key:"isColumnAbsolute",value:function(){return this.type===r.CELL_REFERENCE_ABSOLUTE||this.type===r.CELL_REFERENCE_ABSOLUTE_COL}},{key:"isColumnRelative",value:function(){return this.type===r.CELL_REFERENCE_RELATIVE||this.type===r.CELL_REFERENCE_ABSOLUTE_ROW}},{key:"isRowRelative",value:function(){return this.type===r.CELL_REFERENCE_RELATIVE||this.type===r.CELL_REFERENCE_ABSOLUTE_COL}},{key:"isAbsolute",value:function(){return this.type===r.CELL_REFERENCE_ABSOLUTE&&void 0!==this.sheet}},{key:"shiftedByRows",value:function(t){return new e(this.col,this.row+t,this.type,this.sheet)}},{key:"shiftedByColumns",value:function(t){return new e(this.col+t,this.row,this.type,this.sheet)}},{key:"moved",value:function(t,n,r){var o=void 0===this.sheet?void 0:t;return new e(this.col+n,this.row+r,this.type,o)}},{key:"withSheet",value:function(t){return new e(this.col,this.row,this.type,t)}},{key:"isInvalid",value:function(e){return Object(o.invalidSimpleCellAddress)(this.toSimpleCellAddress(e))}},{key:"shiftRelativeDimensions",value:function(t,n){return new e(this.isColumnAbsolute()?this.col:this.col+t,this.isRowAbsolute()?this.row:this.row+n,this.type,this.sheet)}},{key:"shiftAbsoluteDimensions",value:function(t,n){return new e(this.isColumnRelative()?this.col:this.col+t,this.isRowRelative()?this.row:this.row+n,this.type,this.sheet)}},{key:"hash",value:function(e){var t=e&&void 0!==this.sheet?"#".concat(this.sheet):"";switch(this.type){case r.CELL_REFERENCE_RELATIVE:return"".concat(t,"#").concat(this.row,"R").concat(this.col);case r.CELL_REFERENCE_ABSOLUTE:return"".concat(t,"#").concat(this.row,"A").concat(this.col);case r.CELL_REFERENCE_ABSOLUTE_COL:return"".concat(t,"#").concat(this.row,"AC").concat(this.col);case r.CELL_REFERENCE_ABSOLUTE_ROW:return"".concat(t,"#").concat(this.row,"AR").concat(this.col)}}},{key:"unparse",value:function(e){var t=this.toSimpleCellAddress(e);if(!Object(o.invalidSimpleCellAddress)(t)){var n=Object(i.columnIndexToLabel)(t.col),a=this.type===r.CELL_REFERENCE_ABSOLUTE||this.type===r.CELL_REFERENCE_ABSOLUTE_ROW?"$":"",s=this.type===r.CELL_REFERENCE_ABSOLUTE||this.type===r.CELL_REFERENCE_ABSOLUTE_COL?"$":"";return"".concat(s).concat(n).concat(a).concat(t.row+1)}}},{key:"exceedsSheetSizeLimits",value:function(e,t){return this.row>=t||this.col>=e}}])&&u(t.prototype,n),l&&u(t,l),Object.defineProperty(t,"prototype",{writable:!1}),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"ReferenceType",(function(){return r})),n.d(t,"ColumnAddress",(function(){return s}));n(18);var r,o=n(24),i=n(98);function a(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(e){e.RELATIVE="RELATIVE",e.ABSOLUTE="ABSOLUTE"}(r||(r={}));var s=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=t,this.col=n,this.sheet=r}var t,n,s;
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/return t=e,s=[{key:"absolute",value:function(t,n){return new e(r.ABSOLUTE,t,n)}},{key:"relative",value:function(t,n){return new e(r.RELATIVE,t,n)}},{key:"compareByAbsoluteAddress",value:function(e){return function(t,n){return t.toSimpleColumnAddress(e).col-n.toSimpleColumnAddress(e).col}}}],(n=[{key:"isColumnAbsolute",value:function(){return this.type===r.ABSOLUTE}},{key:"isColumnRelative",value:function(){return this.type===r.RELATIVE}},{key:"isAbsolute",value:function(){return this.type===r.ABSOLUTE&&void 0!==this.sheet}},{key:"moved",value:function(t,n,r){var o=void 0===this.sheet?void 0:t;return new e(this.type,this.col+n,o)}},{key:"shiftedByColumns",value:function(t){return new e(this.type,this.col+t,this.sheet)}},{key:"toSimpleColumnAddress",value:function(e){var t=Object(o.absoluteSheetReference)(this,e),n=this.col;return this.isColumnRelative()&&(n=e.col+this.col),Object(o.simpleColumnAddress)(t,n)}},{key:"shiftRelativeDimensions",value:function(t,n){var r=this.isColumnRelative()?this.col+t:this.col;return new e(this.type,r,this.sheet)}},{key:"shiftAbsoluteDimensions",value:function(t,n){var r=this.isColumnAbsolute()?this.col+t:this.col;return new e(this.type,r,this.sheet)}},{key:"withSheet",value:function(t){return new e(this.type,this.col,t)}},{key:"isInvalid",value:function(e){return this.toSimpleColumnAddress(e).col<0}},{key:"hash",value:function(e){var t=e&&void 0!==this.sheet?"#".concat(this.sheet):"";switch(this.type){case r.RELATIVE:return"".concat(t,"#COLR").concat(this.col);case r.ABSOLUTE:return"".concat(t,"#COLA").concat(this.col)}}},{key:"unparse",value:function(e){var t=this.toSimpleColumnAddress(e);if(!Object(o.invalidSimpleColumnAddress)(t)){var n=Object(i.columnIndexToLabel)(t.col),a=this.type===r.ABSOLUTE?"$":"";return"".concat(a).concat(n)}}},{key:"exceedsSheetSizeLimits",value:function(e){return this.col>=e}}])&&a(t.prototype,n),s&&a(t,s),Object.defineProperty(t,"prototype",{writable:!1}),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"RowAddress",(function(){return a}));n(18);var r=n(24),o=n(218);function i(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)}}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
var a=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=t,this.row=n,this.sheet=r}var t,n,a;return t=e,a=[{key:"absolute",value:function(t,n){return new e(o.ReferenceType.ABSOLUTE,t,n)}},{key:"relative",value:function(t,n){return new e(o.ReferenceType.RELATIVE,t,n)}},{key:"compareByAbsoluteAddress",value:function(e){return function(t,n){return t.toSimpleRowAddress(e).row-n.toSimpleRowAddress(e).row}}}],(n=[{key:"isRowAbsolute",value:function(){return this.type===o.ReferenceType.ABSOLUTE}},{key:"isRowRelative",value:function(){return this.type===o.ReferenceType.RELATIVE}},{key:"isAbsolute",value:function(){return this.type===o.ReferenceType.ABSOLUTE&&void 0!==this.sheet}},{key:"moved",value:function(t,n,r){var o=void 0===this.sheet?void 0:t;return new e(this.type,this.row+r,o)}},{key:"shiftedByRows",value:function(t){return new e(this.type,this.row+t,this.sheet)}},{key:"toSimpleRowAddress",value:function(e){var t=Object(r.absoluteSheetReference)(this,e),n=this.row;return this.isRowRelative()&&(n=e.row+this.row),Object(r.simpleRowAddress)(t,n)}},{key:"shiftRelativeDimensions",value:function(t,n){var r=this.isRowRelative()?this.row+n:this.row;return new e(this.type,r,this.sheet)}},{key:"shiftAbsoluteDimensions",value:function(t,n){var r=this.isRowAbsolute()?this.row+n:this.row;return new e(this.type,r,this.sheet)}},{key:"withSheet",value:function(t){return new e(this.type,this.row,t)}},{key:"isInvalid",value:function(e){return this.toSimpleRowAddress(e).row<0}},{key:"hash",value:function(e){var t=e&&void 0!==this.sheet?"#".concat(this.sheet):"";switch(this.type){case o.ReferenceType.RELATIVE:return"".concat(t,"#ROWR").concat(this.row);case o.ReferenceType.ABSOLUTE:return"".concat(t,"#ROWA").concat(this.row)}}},{key:"unparse",value:function(e){var t=this.toSimpleRowAddress(e);if(!Object(r.invalidSimpleRowAddress)(t)){var n=this.type===o.ReferenceType.ABSOLUTE?"$":"";return"".concat(n).concat(t.row+1)}}},{key:"exceedsSheetSizeLimits",value:function(e){return this.row>=e}}])&&i(t.prototype,n),a&&i(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"clearCache",(function(){return y}));var r=n(262);n.d(t,"VERSION",(function(){return r.VERSION}));var o=n(77);n.d(t,"Parser",(function(){return o.Parser})),n.d(t,"CstParser",(function(){return o.CstParser})),n.d(t,"EmbeddedActionsParser",(function(){return o.EmbeddedActionsParser})),n.d(t,"ParserDefinitionErrorType",(function(){return o.ParserDefinitionErrorType})),n.d(t,"EMPTY_ALT",(function(){return o.EMPTY_ALT}));var i=n(154);n.d(t,"Lexer",(function(){return i.Lexer})),n.d(t,"LexerDefinitionErrorType",(function(){return i.LexerDefinitionErrorType}));var a=n(95);n.d(t,"createToken",(function(){return a.createToken})),n.d(t,"createTokenInstance",(function(){return a.createTokenInstance})),n.d(t,"EOF",(function(){return a.EOF})),n.d(t,"tokenLabel",(function(){return a.tokenLabel})),n.d(t,"tokenMatcher",(function(){return a.tokenMatcher})),n.d(t,"tokenName",(function(){return a.tokenName}));var s=n(136);n.d(t,"defaultGrammarResolverErrorProvider",(function(){return s.defaultGrammarResolverErrorProvider})),n.d(t,"defaultGrammarValidatorErrorProvider",(function(){return s.defaultGrammarValidatorErrorProvider})),n.d(t,"defaultParserErrorProvider",(function(){return s.defaultParserErrorProvider}));var u=n(108);n.d(t,"EarlyExitException",(function(){return u.EarlyExitException})),n.d(t,"isRecognitionException",(function(){return u.isRecognitionException})),n.d(t,"MismatchedTokenException",(function(){return u.MismatchedTokenException})),n.d(t,"NotAllInputParsedException",(function(){return u.NotAllInputParsedException})),n.d(t,"NoViableAltException",(function(){return u.NoViableAltException}));var l=n(266);n.d(t,"defaultLexerErrorProvider",(function(){return l.defaultLexerErrorProvider}));var c=n(56);n.d(t,"Alternation",(function(){return c.Alternation})),n.d(t,"Flat",(function(){return c.Flat})),n.d(t,"NonTerminal",(function(){return c.NonTerminal})),n.d(t,"Option",(function(){return c.Option})),n.d(t,"Repetition",(function(){return c.Repetition})),n.d(t,"RepetitionMandatory",(function(){return c.RepetitionMandatory})),n.d(t,"RepetitionMandatoryWithSeparator",(function(){return c.RepetitionMandatoryWithSeparator})),n.d(t,"RepetitionWithSeparator",(function(){return c.RepetitionWithSeparator})),n.d(t,"Rule",(function(){return c.Rule})),n.d(t,"Terminal",(function(){return c.Terminal})),n.d(t,"serializeGrammar",(function(){return c.serializeGrammar})),n.d(t,"serializeProduction",(function(){return c.serializeProduction}));var f=n(135);n.d(t,"GAstVisitor",(function(){return f.GAstVisitor}));var d=n(185);n.d(t,"assignOccurrenceIndices",(function(){return d.assignOccurrenceIndices})),n.d(t,"resolveGrammar",(function(){return d.resolveGrammar})),n.d(t,"validateGrammar",(function(){return d.validateGrammar}));var h=n(362);n.d(t,"createSyntaxDiagramsCode",(function(){return h.createSyntaxDiagramsCode}));var p=n(268);function y(){console.warn("The clearCache function was 'soft' removed from the Chevrotain API.\n\t It performs no action other than printing this message.\n\t Please avoid using it as it will be completely removed in the future")}n.d(t,"generateParserFactory",(function(){return p.generateParserFactory})),n.d(t,"generateParserModule",(function(){return p.generateParserModule}))},function(e,t,n){"use strict";n.r(t),n.d(t,"validateGrammar",(function(){return h})),n.d(t,"identifyProductionForDuplicates",(function(){return p})),n.d(t,"OccurrenceValidationCollector",(function(){return m})),n.d(t,"validTermsPattern",(function(){return g})),n.d(t,"validNestedRuleName",(function(){return v})),n.d(t,"validateRuleName",(function(){return E})),n.d(t,"validateNestedRuleName",(function(){return b})),n.d(t,"validateTokenName",(function(){return T})),n.d(t,"validateRuleDoesNotAlreadyExist",(function(){return C})),n.d(t,"validateRuleIsOverridden",(function(){return w})),n.d(t,"validateNoLeftRecursion",(function(){return R})),n.d(t,"getFirstNoneTerminal",(function(){return O})),n.d(t,"validateEmptyOrAlternative",(function(){return A})),n.d(t,"validateAmbiguousAlternationAlternatives",(function(){return N})),n.d(t,"RepetionCollector",(function(){return _})),n.d(t,"validateTooManyAlts",(function(){return k})),n.d(t,"validateSomeNonEmptyLookaheadPath",(function(){return M})),n.d(t,"checkPrefixAlternativesAmbiguities",(function(){return I}));var r,o=n(48),i=n(77),a=n(183),s=n(222),u=n(267),l=n(223),c=n(56),f=n(135),d=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function h(e,t,n,r,s,l){var c=o.map(e,(function(e){return function(e,t){var n=new m;e.accept(n);var r=n.allProductions,s=o.groupBy(r,p),u=o.pick(s,(function(e){return e.length>1}));return o.map(o.values(u),(function(n){var r=o.first(n),s=t.buildDuplicateFoundError(e,n),u=Object(a.getProductionDslName)(r),l={message:s,type:i.ParserDefinitionErrorType.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:u,occurrence:r.idx},c=y(r);return c&&(l.parameter=c),l}))}(e,s)})),f=o.map(e,(function(e){return R(e,e,s)})),d=[],h=[],g=[];Object(o.every)(f,o.isEmpty)&&(d=Object(o.map)(e,(function(e){return A(e,s)})),h=Object(o.map)(e,(function(e){return N(e,t,r,s)})),g=M(e,t,s));var v=function(e,t,n){var r=[],a=Object(o.map)(t,(function(e){return e.name}));return Object(o.forEach)(e,(function(e){var t=e.name;if(Object(o.contains)(a,t)){var s=n.buildNamespaceConflictError(e);r.push({message:s,type:i.ParserDefinitionErrorType.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:t})}})),r}(e,n,s),w=o.map(n,(function(e){return T(e,s)})),O=function(e,t){var n=[];return Object(o.forEach)(e,(function(e){var r=new u.NamedDSLMethodsCollectorVisitor("");e.accept(r);var i=Object(o.map)(r.result,(function(e){return e.orgProd}));n.push(Object(o.map)(i,(function(n){return b(e,n,t)})))})),Object(o.flatten)(n)}(e,s),S=function(e,t){var n=[];return Object(o.forEach)(e,(function(e){var r=new u.NamedDSLMethodsCollectorVisitor("");e.accept(r);var a=Object(o.groupBy)(r.result,(function(e){return e.name})),s=Object(o.pick)(a,(function(e){return e.length>1}));Object(o.forEach)(Object(o.values)(s),(function(r){var a=Object(o.map)(r,(function(e){return e.orgProd})),s=t.buildDuplicateNestedRuleNameError(e,a);n.push({message:s,type:i.ParserDefinitionErrorType.DUPLICATE_NESTED_NAME,ruleName:e.name})}))})),n}(e,s),_=Object(o.map)(e,(function(e){return k(e,s)})),I=Object(o.map)(e,(function(e){return E(e,s)})),P=Object(o.map)(e,(function(t){return C(t,e,l,s)}));return o.flatten(c.concat(w,O,S,g,f,d,h,v,_,I,P))}function p(e){return Object(a.getProductionDslName)(e)+"_#_"+e.idx+"_#_"+y(e)}function y(e){return e instanceof c.Terminal?e.terminalType.name:e instanceof c.NonTerminal?e.nonTerminalName:""}var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allProductions=[],t}return d(t,e),t.prototype.visitNonTerminal=function(e){this.allProductions.push(e)},t.prototype.visitOption=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionWithSeparator=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionMandatory=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.allProductions.push(e)},t.prototype.visitRepetition=function(e){this.allProductions.push(e)},t.prototype.visitAlternation=function(e){this.allProductions.push(e)},t.prototype.visitTerminal=function(e){this.allProductions.push(e)},t}(f.GAstVisitor),g=/^[a-zA-Z_]\w*$/,v=new RegExp(g.source.replace("^","^\\$"));function E(e,t){var n=[],r=e.name;return r.match(g)||n.push({message:t.buildInvalidRuleNameError({topLevelRule:e,expectedPattern:g}),type:i.ParserDefinitionErrorType.INVALID_RULE_NAME,ruleName:r}),n}function b(e,t,n){var r,o=[];return t.name.match(v)||(r=n.buildInvalidNestedRuleNameError(e,t),o.push({message:r,type:i.ParserDefinitionErrorType.INVALID_NESTED_RULE_NAME,ruleName:e.name})),o}function T(e,t){var n=[];return e.name.match(g)||n.push({message:t.buildTokenNameError({tokenType:e,expectedPattern:g}),type:i.ParserDefinitionErrorType.INVALID_TOKEN_NAME}),n}function C(e,t,n,r){var a=[];if(Object(o.reduce)(t,(function(t,n){return n.name===e.name?t+1:t}),0)>1){var s=r.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});a.push({message:s,type:i.ParserDefinitionErrorType.DUPLICATE_RULE_NAME,ruleName:e.name})}return a}function w(e,t,n){var r,a=[];return o.contains(t,e)||(r="Invalid rule override, rule: ->"+e+"<- cannot be overridden in the grammar: ->"+n+"<-as it is not defined in any of the super grammars ",a.push({message:r,type:i.ParserDefinitionErrorType.INVALID_RULE_OVERRIDE,ruleName:e})),a}function R(e,t,n,r){void 0===r&&(r=[]);var a=[],s=O(t.definition);if(o.isEmpty(s))return[];var u=e.name;o.contains(s,e)&&a.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:r}),type:i.ParserDefinitionErrorType.LEFT_RECURSION,ruleName:u});var l=o.difference(s,r.concat([e])),c=o.map(l,(function(t){var i=o.cloneArr(r);return i.push(t),R(e,t,n,i)}));return a.concat(o.flatten(c))}function O(e){var t=[];if(o.isEmpty(e))return t;var n=o.first(e);if(n instanceof c.NonTerminal)t.push(n.referencedRule);else if(n instanceof c.Flat||n instanceof c.Option||n instanceof c.RepetitionMandatory||n instanceof c.RepetitionMandatoryWithSeparator||n instanceof c.RepetitionWithSeparator||n instanceof c.Repetition)t=t.concat(O(n.definition));else if(n instanceof c.Alternation)t=o.flatten(o.map(n.definition,(function(e){return O(e.definition)})));else if(!(n instanceof c.Terminal))throw Error("non exhaustive match");var r=Object(a.isOptionalProd)(n),i=e.length>1;if(r&&i){var s=o.drop(e);return t.concat(O(s))}return t}var S=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.alternations=[],t}return d(t,e),t.prototype.visitAlternation=function(e){this.alternations.push(e)},t}(f.GAstVisitor);function A(e,t){var n=new S;e.accept(n);var r=n.alternations;return o.reduce(r,(function(n,r){var a=o.dropRight(r.definition),s=o.map(a,(function(n,a){var s=Object(l.nextPossibleTokensAfter)([n],[],null,1);return o.isEmpty(s)?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:r,emptyChoiceIdx:a}),type:i.ParserDefinitionErrorType.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:r.idx,alternative:a+1}:null}));return n.concat(o.compact(s))}),[])}function N(e,t,n,r){var u=new S;e.accept(u);var l=u.alternations,c=n[e.name];return c&&(l=Object(o.reject)(l,(function(e){return c[Object(a.getProductionDslName)(e)+(0===e.idx?"":e.idx)]}))),l=Object(o.reject)(l,(function(e){return!0===e.ignoreAmbiguities})),o.reduce(l,(function(n,a){var u=a.idx,l=a.maxLookahead||t,c=Object(s.getLookaheadPathsForOr)(u,e,l,a),f=function(e,t,n,r){var a=[],u=Object(o.reduce)(e,(function(n,r,i){return!0===t.definition[i].ignoreAmbiguities||Object(o.forEach)(r,(function(r){var u=[i];Object(o.forEach)(e,(function(e,n){i!==n&&Object(s.containsPath)(e,r)&&!0!==t.definition[n].ignoreAmbiguities&&u.push(n)})),u.length>1&&!Object(s.containsPath)(a,r)&&(a.push(r),n.push({alts:u,path:r}))})),n}),[]);return o.map(u,(function(e){var a=Object(o.map)(e.alts,(function(e){return e+1}));return{message:r.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:a,prefixPath:e.path}),type:i.ParserDefinitionErrorType.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:[e.alts]}}))}(c,a,e,r),d=I(c,a,e,r);return n.concat(f,d)}),[])}var _=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allProductions=[],t}return d(t,e),t.prototype.visitRepetitionWithSeparator=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionMandatory=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.allProductions.push(e)},t.prototype.visitRepetition=function(e){this.allProductions.push(e)},t}(f.GAstVisitor);function k(e,t){var n=new S;e.accept(n);var r=n.alternations;return o.reduce(r,(function(n,r){return r.definition.length>255&&n.push({message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:r}),type:i.ParserDefinitionErrorType.TOO_MANY_ALTS,ruleName:e.name,occurrence:r.idx}),n}),[])}function M(e,t,n){var r=[];return Object(o.forEach)(e,(function(e){var a=new _;e.accept(a);var u=a.allProductions;Object(o.forEach)(u,(function(a){var u=Object(s.getProdType)(a),l=a.maxLookahead||t,c=a.idx,f=Object(s.getLookaheadPathsForOptionalProd)(c,e,u,l)[0];if(Object(o.isEmpty)(Object(o.flatten)(f))){var d=n.buildEmptyRepetitionError({topLevelRule:e,repetition:a});r.push({message:d,type:i.ParserDefinitionErrorType.NO_NON_EMPTY_LOOKAHEAD,ruleName:e.name})}}))})),r}function I(e,t,n,r){var a=[],u=Object(o.reduce)(e,(function(e,t,n){var r=Object(o.map)(t,(function(e){return{idx:n,path:e}}));return e.concat(r)}),[]);return Object(o.forEach)(u,(function(e){if(!0!==t.definition[e.idx].ignoreAmbiguities){var l=e.idx,c=e.path,f=Object(o.findAll)(u,(function(e){return!0!==t.definition[e.idx].ignoreAmbiguities&&e.idx<l&&Object(s.isStrictPrefixOfPath)(e.path,c)})),d=Object(o.map)(f,(function(e){var o=[e.idx+1,l+1],a=0===t.idx?"":t.idx;return{message:r.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:o,prefixPath:e.path}),type:i.ParserDefinitionErrorType.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:a,alternatives:o}}));a=a.concat(d)}})),a}},function(e,t,n){"use strict";n.r(t),n.d(t,"PROD_TYPE",(function(){return o})),n.d(t,"getProdType",(function(){return d})),n.d(t,"buildLookaheadFuncForOr",(function(){return h})),n.d(t,"buildLookaheadFuncForOptionalProd",(function(){return p})),n.d(t,"buildAlternativesLookAheadFunc",(function(){return y})),n.d(t,"buildSingleAlternativeLookaheadFunction",(function(){return m})),n.d(t,"lookAheadSequenceFromAlternatives",(function(){return C})),n.d(t,"getLookaheadPathsForOr",(function(){return w})),n.d(t,"getLookaheadPathsForOptionalProd",(function(){return R})),n.d(t,"containsPath",(function(){return O})),n.d(t,"isStrictPrefixOfPath",(function(){return S})),n.d(t,"areTokenCategoriesNotUsed",(function(){return A}));var r,o,i=n(48),a=n(223),s=n(263),u=n(182),l=n(56),c=n(135),f=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function d(e){if(e instanceof l.Option)return o.OPTION;if(e instanceof l.Repetition)return o.REPETITION;if(e instanceof l.RepetitionMandatory)return o.REPETITION_MANDATORY;if(e instanceof l.RepetitionMandatoryWithSeparator)return o.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof l.RepetitionWithSeparator)return o.REPETITION_WITH_SEPARATOR;if(e instanceof l.Alternation)return o.ALTERNATION;throw Error("non exhaustive match")}function h(e,t,n,r,o,i){var a=w(e,t,n);return i(a,r,A(a)?u.tokenStructuredMatcherNoCategories:u.tokenStructuredMatcher,o)}function p(e,t,n,r,o,i){var a=R(e,t,o,n),s=A(a)?u.tokenStructuredMatcherNoCategories:u.tokenStructuredMatcher;return i(a[0],s,r)}function y(e,t,n,r){var o=e.length,a=Object(i.every)(e,(function(e){return Object(i.every)(e,(function(e){return 1===e.length}))}));if(t)return function(t){for(var r=Object(i.map)(t,(function(e){return e.GATE})),a=0;a<o;a++){var s=e[a],u=s.length,l=r[a];if(void 0===l||!1!==l.call(this))e:for(var c=0;c<u;c++){for(var f=s[c],d=f.length,h=0;h<d;h++){var p=this.LA(h+1);if(!1===n(p,f[h]))continue e}return a}}};if(a&&!r){var s=Object(i.map)(e,(function(e){return Object(i.flatten)(e)})),u=Object(i.reduce)(s,(function(e,t,n){return Object(i.forEach)(t,(function(t){Object(i.has)(e,t.tokenTypeIdx)||(e[t.tokenTypeIdx]=n),Object(i.forEach)(t.categoryMatches,(function(t){Object(i.has)(e,t)||(e[t]=n)}))})),e}),[]);return function(){var e=this.LA(1);return u[e.tokenTypeIdx]}}return function(){for(var t=0;t<o;t++){var r=e[t],i=r.length;e:for(var a=0;a<i;a++){for(var s=r[a],u=s.length,l=0;l<u;l++){var c=this.LA(l+1);if(!1===n(c,s[l]))continue e}return t}}}}function m(e,t,n){var r=Object(i.every)(e,(function(e){return 1===e.length})),o=e.length;if(r&&!n){var a=Object(i.flatten)(e);if(1===a.length&&Object(i.isEmpty)(a[0].categoryMatches)){var s=a[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===s}}var u=Object(i.reduce)(a,(function(e,t,n){return e[t.tokenTypeIdx]=!0,Object(i.forEach)(t.categoryMatches,(function(t){e[t]=!0})),e}),[]);return function(){var e=this.LA(1);return!0===u[e.tokenTypeIdx]}}return function(){e:for(var n=0;n<o;n++){for(var r=e[n],i=r.length,a=0;a<i;a++){var s=this.LA(a+1);if(!1===t(s,r[a]))continue e}return!0}return!1}}!function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"}(o||(o={}));var g=function(e){function t(t,n,r){var o=e.call(this)||this;return o.topProd=t,o.targetOccurrence=n,o.targetProdType=r,o}return f(t,e),t.prototype.startWalking=function(){return this.walk(this.topProd),this.restDef},t.prototype.checkIsTarget=function(e,t,n,r){return e.idx===this.targetOccurrence&&this.targetProdType===t&&(this.restDef=n.concat(r),!0)},t.prototype.walkOption=function(t,n,r){this.checkIsTarget(t,o.OPTION,n,r)||e.prototype.walkOption.call(this,t,n,r)},t.prototype.walkAtLeastOne=function(t,n,r){this.checkIsTarget(t,o.REPETITION_MANDATORY,n,r)||e.prototype.walkOption.call(this,t,n,r)},t.prototype.walkAtLeastOneSep=function(t,n,r){this.checkIsTarget(t,o.REPETITION_MANDATORY_WITH_SEPARATOR,n,r)||e.prototype.walkOption.call(this,t,n,r)},t.prototype.walkMany=function(t,n,r){this.checkIsTarget(t,o.REPETITION,n,r)||e.prototype.walkOption.call(this,t,n,r)},t.prototype.walkManySep=function(t,n,r){this.checkIsTarget(t,o.REPETITION_WITH_SEPARATOR,n,r)||e.prototype.walkOption.call(this,t,n,r)},t}(s.RestWalker),v=function(e){function t(t,n,r){var o=e.call(this)||this;return o.targetOccurrence=t,o.targetProdType=n,o.targetRef=r,o.result=[],o}return f(t,e),t.prototype.checkIsTarget=function(e,t){e.idx!==this.targetOccurrence||this.targetProdType!==t||void 0!==this.targetRef&&e!==this.targetRef||(this.result=e.definition)},t.prototype.visitOption=function(e){this.checkIsTarget(e,o.OPTION)},t.prototype.visitRepetition=function(e){this.checkIsTarget(e,o.REPETITION)},t.prototype.visitRepetitionMandatory=function(e){this.checkIsTarget(e,o.REPETITION_MANDATORY)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.checkIsTarget(e,o.REPETITION_MANDATORY_WITH_SEPARATOR)},t.prototype.visitRepetitionWithSeparator=function(e){this.checkIsTarget(e,o.REPETITION_WITH_SEPARATOR)},t.prototype.visitAlternation=function(e){this.checkIsTarget(e,o.ALTERNATION)},t}(c.GAstVisitor);function E(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}function b(e){for(var t=[""],n=0;n<e.length;n++){for(var r=e[n],o=[],i=0;i<t.length;i++){var a=t[i];o.push(a+"_"+r.tokenTypeIdx);for(var s=0;s<r.categoryMatches.length;s++){var u="_"+r.categoryMatches[s];o.push(a+u)}}t=o}return t}function T(e,t,n){for(var r=0;r<e.length;r++)if(r!==n)for(var o=e[r],i=0;i<t.length;i++){if(!0===o[t[i]])return!1}return!0}function C(e,t){for(var n=Object(i.map)(e,(function(e){return Object(a.possiblePathsFrom)([e],1)})),r=E(n.length),o=Object(i.map)(n,(function(e){var t={};return Object(i.forEach)(e,(function(e){var n=b(e.partialPath);Object(i.forEach)(n,(function(e){t[e]=!0}))})),t})),s=n,u=1;u<=t;u++){var l=s;s=E(l.length);for(var c=function(e){for(var n=l[e],c=0;c<n.length;c++){var f=n[c].partialPath,d=n[c].suffixDef,h=b(f);if(T(o,h,e)||Object(i.isEmpty)(d)||f.length===t){var p=r[e];if(!1===O(p,f)){p.push(f);for(var y=0;y<h.length;y++){var m=h[y];o[e][m]=!0}}}else{var g=Object(a.possiblePathsFrom)(d,u+1,f);s[e]=s[e].concat(g),Object(i.forEach)(g,(function(t){var n=b(t.partialPath);Object(i.forEach)(n,(function(t){o[e][t]=!0}))}))}}},f=0;f<l.length;f++)c(f)}return r}function w(e,t,n,r){var i=new v(e,o.ALTERNATION,r);return t.accept(i),C(i.result,n)}function R(e,t,n,r){var o=new v(e,n);t.accept(o);var i=o.result,a=new g(t,e,n).startWalking();return C([new l.Flat({definition:i}),new l.Flat({definition:a})],r)}function O(e,t){e:for(var n=0;n<e.length;n++){var r=e[n];if(r.length===t.length){for(var o=0;o<r.length;o++){var i=t[o],a=r[o];if(!1===(i===a||void 0!==a.categoryMatchesMap[i.tokenTypeIdx]))continue e}return!0}}return!1}function S(e,t){return e.length<t.length&&Object(i.every)(e,(function(e,n){var r=t[n];return e===r||r.categoryMatchesMap[e.tokenTypeIdx]}))}function A(e){return Object(i.every)(e,(function(e){return Object(i.every)(e,(function(e){return Object(i.every)(e,(function(e){return Object(i.isEmpty)(e.categoryMatches)}))}))}))}},function(e,t,n){"use strict";n.r(t),n.d(t,"AbstractNextPossibleTokensWalker",(function(){return l})),n.d(t,"NextAfterTokenWalker",(function(){return c})),n.d(t,"AbstractNextTerminalAfterProductionWalker",(function(){return f})),n.d(t,"NextTerminalAfterManyWalker",(function(){return d})),n.d(t,"NextTerminalAfterManySepWalker",(function(){return h})),n.d(t,"NextTerminalAfterAtLeastOneWalker",(function(){return p})),n.d(t,"NextTerminalAfterAtLeastOneSepWalker",(function(){return y})),n.d(t,"possiblePathsFrom",(function(){return m})),n.d(t,"nextPossibleTokensAfter",(function(){return g}));var r,o=n(263),i=n(48),a=n(358),s=n(56),u=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t,n){var r=e.call(this)||this;return r.topProd=t,r.path=n,r.possibleTokTypes=[],r.nextProductionName="",r.nextProductionOccurrence=0,r.found=!1,r.isAtEndOfPath=!1,r}return u(t,e),t.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=Object(i.cloneArr)(this.path.ruleStack).reverse(),this.occurrenceStack=Object(i.cloneArr)(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes},t.prototype.walk=function(t,n){void 0===n&&(n=[]),this.found||e.prototype.walk.call(this,t,n)},t.prototype.walkProdRef=function(e,t,n){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){var r=t.concat(n);this.updateExpectedNext(),this.walk(e.referencedRule,r)}},t.prototype.updateExpectedNext=function(){Object(i.isEmpty)(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},t}(o.RestWalker),c=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.path=n,r.nextTerminalName="",r.nextTerminalOccurrence=0,r.nextTerminalName=r.path.lastTok.name,r.nextTerminalOccurrence=r.path.lastTokOccurrence,r}return u(t,e),t.prototype.walkTerminal=function(e,t,n){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){var r=t.concat(n),o=new s.Flat({definition:r});this.possibleTokTypes=Object(a.first)(o),this.found=!0}},t}(l),f=function(e){function t(t,n){var r=e.call(this)||this;return r.topRule=t,r.occurrence=n,r.result={token:void 0,occurrence:void 0,isEndOfRule:void 0},r}return u(t,e),t.prototype.startWalking=function(){return this.walk(this.topRule),this.result},t}(o.RestWalker),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.walkMany=function(t,n,r){if(t.idx===this.occurrence){var o=Object(i.first)(n.concat(r));this.result.isEndOfRule=void 0===o,o instanceof s.Terminal&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkMany.call(this,t,n,r)},t}(f),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.walkManySep=function(t,n,r){if(t.idx===this.occurrence){var o=Object(i.first)(n.concat(r));this.result.isEndOfRule=void 0===o,o instanceof s.Terminal&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkManySep.call(this,t,n,r)},t}(f),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.walkAtLeastOne=function(t,n,r){if(t.idx===this.occurrence){var o=Object(i.first)(n.concat(r));this.result.isEndOfRule=void 0===o,o instanceof s.Terminal&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkAtLeastOne.call(this,t,n,r)},t}(f),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.walkAtLeastOneSep=function(t,n,r){if(t.idx===this.occurrence){var o=Object(i.first)(n.concat(r));this.result.isEndOfRule=void 0===o,o instanceof s.Terminal&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkAtLeastOneSep.call(this,t,n,r)},t}(f);function m(e,t,n){void 0===n&&(n=[]),n=Object(i.cloneArr)(n);var r=[],o=0;function a(a){var s=m(a.concat(Object(i.drop)(e,o+1)),t,n);return r.concat(s)}for(;n.length<t&&o<e.length;){var u=e[o];if(u instanceof s.Flat)return a(u.definition);if(u instanceof s.NonTerminal)return a(u.definition);if(u instanceof s.Option)r=a(u.definition);else{if(u instanceof s.RepetitionMandatory)return a(l=u.definition.concat([new s.Repetition({definition:u.definition})]));if(u instanceof s.RepetitionMandatoryWithSeparator)return a(l=[new s.Flat({definition:u.definition}),new s.Repetition({definition:[new s.Terminal({terminalType:u.separator})].concat(u.definition)})]);if(u instanceof s.RepetitionWithSeparator){var l=u.definition.concat([new s.Repetition({definition:[new s.Terminal({terminalType:u.separator})].concat(u.definition)})]);r=a(l)}else if(u instanceof s.Repetition){l=u.definition.concat([new s.Repetition({definition:u.definition})]);r=a(l)}else{if(u instanceof s.Alternation)return Object(i.forEach)(u.definition,(function(e){r=a(e.definition)})),r;if(!(u instanceof s.Terminal))throw Error("non exhaustive match");n.push(u.terminalType)}}o++}return r.push({partialPath:n,suffixDef:Object(i.drop)(e,o)}),r}function g(e,t,n,r){var o=["EXIT_NONE_TERMINAL"],a=!1,u=t.length,l=u-r-1,c=[],f=[];for(f.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!Object(i.isEmpty)(f);){var d=f.pop();if("EXIT_ALTERNATIVE"!==d){var h=d.def,p=d.idx,y=d.ruleStack,m=d.occurrenceStack;if(!Object(i.isEmpty)(h)){var g=h[0];if("EXIT_NONE_TERMINAL"===g){var E={idx:p,def:Object(i.drop)(h),ruleStack:Object(i.dropRight)(y),occurrenceStack:Object(i.dropRight)(m)};f.push(E)}else if(g instanceof s.Terminal)if(p<u-1){var b=p+1;if(n(t[b],g.terminalType)){E={idx:b,def:Object(i.drop)(h),ruleStack:y,occurrenceStack:m};f.push(E)}}else{if(p!==u-1)throw Error("non exhaustive match");c.push({nextTokenType:g.terminalType,nextTokenOccurrence:g.idx,ruleStack:y,occurrenceStack:m}),a=!0}else if(g instanceof s.NonTerminal){var T=Object(i.cloneArr)(y);T.push(g.nonTerminalName);var C=Object(i.cloneArr)(m);C.push(g.idx);E={idx:p,def:g.definition.concat(o,Object(i.drop)(h)),ruleStack:T,occurrenceStack:C};f.push(E)}else if(g instanceof s.Option){var w={idx:p,def:Object(i.drop)(h),ruleStack:y,occurrenceStack:m};f.push(w),f.push("EXIT_ALTERNATIVE");var R={idx:p,def:g.definition.concat(Object(i.drop)(h)),ruleStack:y,occurrenceStack:m};f.push(R)}else if(g instanceof s.RepetitionMandatory){var O=new s.Repetition({definition:g.definition,idx:g.idx});E={idx:p,def:g.definition.concat([O],Object(i.drop)(h)),ruleStack:y,occurrenceStack:m};f.push(E)}else if(g instanceof s.RepetitionMandatoryWithSeparator){var S=new s.Terminal({terminalType:g.separator});O=new s.Repetition({definition:[S].concat(g.definition),idx:g.idx}),E={idx:p,def:g.definition.concat([O],Object(i.drop)(h)),ruleStack:y,occurrenceStack:m};f.push(E)}else if(g instanceof s.RepetitionWithSeparator){w={idx:p,def:Object(i.drop)(h),ruleStack:y,occurrenceStack:m};f.push(w),f.push("EXIT_ALTERNATIVE");S=new s.Terminal({terminalType:g.separator});var A=new s.Repetition({definition:[S].concat(g.definition),idx:g.idx});R={idx:p,def:g.definition.concat([A],Object(i.drop)(h)),ruleStack:y,occurrenceStack:m};f.push(R)}else if(g instanceof s.Repetition){w={idx:p,def:Object(i.drop)(h),ruleStack:y,occurrenceStack:m};f.push(w),f.push("EXIT_ALTERNATIVE");A=new s.Repetition({definition:g.definition,idx:g.idx}),R={idx:p,def:g.definition.concat([A],Object(i.drop)(h)),ruleStack:y,occurrenceStack:m};f.push(R)}else if(g instanceof s.Alternation)for(var N=g.definition.length-1;N>=0;N--){var _={idx:p,def:g.definition[N].definition.concat(Object(i.drop)(h)),ruleStack:y,occurrenceStack:m};f.push(_),f.push("EXIT_ALTERNATIVE")}else if(g instanceof s.Flat)f.push({idx:p,def:g.definition.concat(Object(i.drop)(h)),ruleStack:y,occurrenceStack:m});else{if(!(g instanceof s.Rule))throw Error("non exhaustive match");f.push(v(g,p,y,m))}}}else a&&Object(i.last)(f).idx<=l&&f.pop()}return c}function v(e,t,n,r){var o=Object(i.cloneArr)(n);o.push(e.name);var a=Object(i.cloneArr)(r);return a.push(1),{idx:t,def:e.definition,ruleStack:o,occurrenceStack:a}}},function(e,t,n){"use strict";n.r(t),n.d(t,"absolutizeDependencies",(function(){return a})),n.d(t,"filterDependenciesOutOfScope",(function(){return s}));n(37),n(40),n(0);var r=n(86),o=n(24),i=n(72),a=function(e,t){return e.map((function(e){return e.absolutize(t)}))},s=function(e){return e.filter((function(e){return e instanceof i.NamedExpressionDependency||(e instanceof r.AbsoluteCellRange?!(Object(o.invalidSimpleCellAddress)(e.start)||Object(o.invalidSimpleCellAddress)(e.end)):!Object(o.invalidSimpleCellAddress)(e))}))}},function(e,t,n){"use strict";n.r(t),n.d(t,"UIElement",(function(){return r}));var r,o=n(280);n.d(t,"TranslationPackage",(function(){return o.TranslationPackage})),n.d(t,"buildTranslationPackage",(function(){return o.buildTranslationPackage})),function(e){e.NEW_SHEET_PREFIX="NEW_SHEET_PREFIX"}(r||(r={}))},function(e,t,n){"use strict";n.r(t),n.d(t,"Config",(function(){return m})),n.d(t,"getDefaultConfig",(function(){return v}));n(3),n(0),n(2),n(11),n(4),n(26),n(87),n(18),n(8),n(9),n(10),n(22),n(13),n(25),n(12);var r=n(375),o=n(376),i=n(156),a=n(188),s=n(41),u=n(285),l=n(700),c=n(189);function f(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return d(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 d(e,t)}(e)||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.")}()}function d(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 h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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)}}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
var y=new WeakMap,m=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];h(this,e);var o=t.accentSensitive,a=t.binarySearchThreshold,s=t.caseSensitive,u=t.caseFirst,d=t.chooseAddressMappingPolicy,p=t.currencySymbol,m=t.dateFormats,g=t.decimalSeparator,v=t.evaluateNullToZero,E=t.functionArgSeparator,b=t.functionPlugins,T=t.ignorePunctuation,C=t.leapYear1900,w=t.localeLang,R=t.language,O=t.ignoreWhiteSpace,S=t.licenseKey,A=t.matchWholeCell,N=t.arrayColumnSeparator,_=t.arrayRowSeparator,k=t.maxRows,M=t.maxColumns,I=t.nullYear,P=t.nullDate,x=t.parseDateTime,D=t.precisionEpsilon,L=t.precisionRounding,F=t.stringifyDateTime,j=t.stringifyDuration,U=t.smartRounding,H=t.timeFormats,B=t.thousandSeparator,V=t.useArrayArithmetic,W=t.useStats,Y=t.undoLimit,G=t.useColumnIndex,z=t.useRegularExpressions,K=t.useWildcards;n&&e.warnDeprecatedOptions(t),this.useArrayArithmetic=Object(r.configValueFromParam)(V,"boolean","useArrayArithmetic"),this.accentSensitive=Object(r.configValueFromParam)(o,"boolean","accentSensitive"),this.caseSensitive=Object(r.configValueFromParam)(s,"boolean","caseSensitive"),this.caseFirst=Object(r.configValueFromParam)(u,["upper","lower","false"],"caseFirst"),this.ignorePunctuation=Object(r.configValueFromParam)(T,"boolean","ignorePunctuation"),this.chooseAddressMappingPolicy=null!=d?d:e.defaultConfig.chooseAddressMappingPolicy,this.dateFormats=f(Object(r.configValueFromParamCheck)(m,Array.isArray,"array","dateFormats")),this.timeFormats=f(Object(r.configValueFromParamCheck)(H,Array.isArray,"array","timeFormats")),this.functionArgSeparator=Object(r.configValueFromParam)(E,"string","functionArgSeparator"),this.decimalSeparator=Object(r.configValueFromParam)(g,[".",","],"decimalSeparator"),this.language=Object(r.configValueFromParam)(R,"string","language"),this.ignoreWhiteSpace=Object(r.configValueFromParam)(O,["standard","any"],"ignoreWhiteSpace"),this.licenseKey=Object(r.configValueFromParam)(S,"string","licenseKey"),this.thousandSeparator=Object(r.configValueFromParam)(B,["",","," ","."],"thousandSeparator"),this.arrayColumnSeparator=Object(r.configValueFromParam)(N,[",",";"],"arrayColumnSeparator"),this.arrayRowSeparator=Object(r.configValueFromParam)(_,[";","|"],"arrayRowSeparator"),this.localeLang=Object(r.configValueFromParam)(w,"string","localeLang"),this.functionPlugins=f(null!=b?b:e.defaultConfig.functionPlugins),this.smartRounding=Object(r.configValueFromParam)(U,"boolean","smartRounding"),this.evaluateNullToZero=Object(r.configValueFromParam)(v,"boolean","evaluateNullToZero"),this.nullYear=Object(r.configValueFromParam)(I,"number","nullYear"),Object(r.validateNumberToBeAtLeast)(this.nullYear,"nullYear",0),Object(r.validateNumberToBeAtMost)(this.nullYear,"nullYear",100),this.precisionRounding=Object(r.configValueFromParam)(L,"number","precisionRounding"),Object(r.validateNumberToBeAtLeast)(this.precisionRounding,"precisionRounding",0),this.precisionEpsilon=Object(r.configValueFromParam)(D,"number","precisionEpsilon"),Object(r.validateNumberToBeAtLeast)(this.precisionEpsilon,"precisionEpsilon",0),this.useColumnIndex=Object(r.configValueFromParam)(G,"boolean","useColumnIndex"),this.useStats=Object(r.configValueFromParam)(W,"boolean","useStats"),this.binarySearchThreshold=null!=a?a:e.defaultConfig.binarySearchThreshold,this.parseDateTime=Object(r.configValueFromParam)(x,"function","parseDateTime"),this.stringifyDateTime=Object(r.configValueFromParam)(F,"function","stringifyDateTime"),this.stringifyDuration=Object(r.configValueFromParam)(j,"function","stringifyDuration"),this.translationPackage=c.HyperFormula.getLanguage(this.language),this.errorMapping=this.translationPackage.buildErrorMapping(),this.nullDate=Object(r.configValueFromParamCheck)(P,i.instanceOfSimpleDate,"IDate","nullDate"),this.leapYear1900=Object(r.configValueFromParam)(C,"boolean","leapYear1900"),this.undoLimit=Object(r.configValueFromParam)(Y,"number","undoLimit"),this.useRegularExpressions=Object(r.configValueFromParam)(z,"boolean","useRegularExpressions"),this.useWildcards=Object(r.configValueFromParam)(K,"boolean","useWildcards"),this.matchWholeCell=Object(r.configValueFromParam)(A,"boolean","matchWholeCell"),Object(r.validateNumberToBeAtLeast)(this.undoLimit,"undoLimit",0),this.maxRows=Object(r.configValueFromParam)(k,"number","maxRows"),Object(r.validateNumberToBeAtLeast)(this.maxRows,"maxRows",1),this.maxColumns=Object(r.configValueFromParam)(M,"number","maxColumns"),this.currencySymbol=this.setupCurrencySymbol(p),Object(r.validateNumberToBeAtLeast)(this.maxColumns,"maxColumns",1),y.set(this,{licenseKeyValidityState:Object(l.checkLicenseKeyValidity)(this.licenseKey)}),Object(r.configCheckIfParametersNotInConflict)({value:this.decimalSeparator,name:"decimalSeparator"},{value:this.functionArgSeparator,name:"functionArgSeparator"},{value:this.thousandSeparator,name:"thousandSeparator"}),Object(r.configCheckIfParametersNotInConflict)({value:this.arrayRowSeparator,name:"arrayRowSeparator"},{value:this.arrayColumnSeparator,name:"arrayColumnSeparator"})}var t,n,o;return t=e,o=[{key:"warnDeprecatedOptions",value:function(t){e.warnDeprecatedIfUsed(t.binarySearchThreshold,"binarySearchThreshold","1.1")}},{key:"warnDeprecatedIfUsed",value:function(e,t,n,r){void 0!==e&&(void 0===r?console.warn("".concat(t," option is deprecated since ").concat(n)):console.warn("".concat(t," option is deprecated since ").concat(n,", please use ").concat(r)))}}],(n=[{key:"setupCurrencySymbol",value:function(e){var t=f(Object(r.configValueFromParamCheck)(e,Array.isArray,"array","currencySymbol"));return t.forEach((function(e){if("string"!=typeof e)throw new s.ExpectedValueOfTypeError("string[]","currencySymbol");if(""===e)throw new s.ConfigValueEmpty("currencySymbol")})),t}},{key:"licenseKeyValidityState",get:function(){return y.get(this).licenseKeyValidityState}},{key:"getConfig",value:function(){return g(this)}},{key:"mergeConfig",value:function(t){var n=Object.assign({},this.getConfig(),t);return e.warnDeprecatedOptions(t),new e(n,!1)}}])&&p(t.prototype,n),o&&p(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function g(e){var t,n={};for(var r in m.defaultConfig){var o=null!==(t=e[r])&&void 0!==t?t:m.defaultConfig[r];Array.isArray(o)?n[r]=f(o):n[r]=o}return n}function v(){return g({})}m.defaultConfig={accentSensitive:!1,binarySearchThreshold:20,currencySymbol:["$"],caseSensitive:!1,caseFirst:"lower",chooseAddressMappingPolicy:new a.AlwaysDense,dateFormats:["DD/MM/YYYY","DD/MM/YY"],decimalSeparator:".",evaluateNullToZero:!1,functionArgSeparator:",",functionPlugins:[],ignorePunctuation:!1,language:"enGB",ignoreWhiteSpace:"standard",licenseKey:"",leapYear1900:!1,localeLang:"en",matchWholeCell:!0,arrayColumnSeparator:",",arrayRowSeparator:";",maxRows:4e4,maxColumns:18278,nullYear:30,nullDate:{year:1899,month:12,day:30},parseDateTime:o.defaultParseToDateTime,precisionEpsilon:1e-13,precisionRounding:14,smartRounding:!0,stringifyDateTime:u.defaultStringifyDateTime,stringifyDuration:u.defaultStringifyDuration,timeFormats:["hh:mm","hh:mm:ss.sss"],thousandSeparator:"",undoLimit:20,useRegularExpressions:!1,useWildcards:!0,useColumnIndex:!1,useStats:!1,useArrayArithmetic:!1}},function(e,t,n){"use strict";n.r(t),n.d(t,"InternalNamedExpression",(function(){return u})),n.d(t,"NamedExpressions",(function(){return f})),n.d(t,"doesContainRelativeReferences",(function(){return d}));n(3),n(33),n(0),n(2),n(4),n(40),n(22),n(12),n(37),n(26);var r=n(24),o=n(72);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var u=function(){function e(t,n,r,o){i(this,e),this.displayName=t,this.address=n,this.added=r,this.options=o}return s(e,[{key:"normalizeExpressionName",value:function(){return this.displayName.toLowerCase()}},{key:"copy",value:function(){return new e(this.displayName,this.address,this.added,this.options)}}]),e}(),l=function(){function e(){i(this,e),this.mapping=new Map}return s(e,[{key:"has",value:function(e){return this.mapping.has(this.normalizeExpressionName(e))}},{key:"isNameAvailable",value:function(e){var t=this.normalizeExpressionName(e),n=this.mapping.get(t);return!(n&&n.added)}},{key:"add",value:function(e){this.mapping.set(e.normalizeExpressionName(),e)}},{key:"get",value:function(e){return this.mapping.get(this.normalizeExpressionName(e))}},{key:"getExisting",value:function(e){var t=this.mapping.get(this.normalizeExpressionName(e));return t&&t.added?t:void 0}},{key:"remove",value:function(e){var t=this.normalizeExpressionName(e),n=this.mapping.get(t);n&&(n.added=!1)}},{key:"getAllNamedExpressions",value:function(){return Array.from(this.mapping.values()).filter((function(e){return e.added}))}},{key:"normalizeExpressionName",value:function(e){return e.toLowerCase()}}]),e}(),c=function(){function e(){i(this,e),this.mapping=new Map}return s(e,[{key:"add",value:function(e){this.mapping.set(this.normalizeExpressionName(e.displayName),e)}},{key:"get",value:function(e){return this.mapping.get(this.normalizeExpressionName(e))}},{key:"has",value:function(e){return this.mapping.has(this.normalizeExpressionName(e))}},{key:"getAllNamedExpressions",value:function(){return Array.from(this.mapping.values()).filter((function(e){return e.added}))}},{key:"isNameAvailable",value:function(e){var t=this.normalizeExpressionName(e);return!this.mapping.has(t)}},{key:"remove",value:function(e){var t=this.normalizeExpressionName(e);this.mapping.get(t)&&this.mapping.delete(t)}},{key:"normalizeExpressionName",value:function(e){return e.toLowerCase()}}]),e}(),f=function(){function e(){i(this,e),this.nextNamedExpressionRow=0,this.workbookStore=new l,this.worksheetStores=new Map,this.addressCache=new Map}return s(e,[{key:"isNameAvailable",value:function(e,t){var n,r;return void 0===t?this.workbookStore.isNameAvailable(e):null===(r=null===(n=this.worksheetStore(t))||void 0===n?void 0:n.isNameAvailable(e))||void 0===r||r}},{key:"namedExpressionInAddress",value:function(e){var t=this.addressCache.get(e);return t&&t.added?t:void 0}},{key:"namedExpressionForScope",value:function(e,t){var n;return void 0===t?this.workbookStore.getExisting(e):null===(n=this.worksheetStore(t))||void 0===n?void 0:n.get(e)}},{key:"nearestNamedExpression",value:function(e,t){var n,r;return null!==(r=null===(n=this.worksheetStore(t))||void 0===n?void 0:n.get(e))&&void 0!==r?r:this.workbookStore.getExisting(e)}},{key:"isExpressionInScope",value:function(e,t){var n,r;return null!==(r=null===(n=this.worksheetStore(t))||void 0===n?void 0:n.has(e))&&void 0!==r&&r}},{key:"isNameValid",value:function(e){return!/^[A-Za-z]+[0-9]+$/.test(e)&&/^[A-Za-z\u00C0-\u02AF_][A-Za-z0-9\u00C0-\u02AF._]*$/.test(e)}},{key:"addNamedExpression",value:function(e,t,n){var r=void 0===t?this.workbookStore:this.worksheetStoreOrCreate(t),o=r.get(e);return void 0!==o?(o.added=!0,o.displayName=e,o.options=n):(o=new u(e,this.nextAddress(),!0,n),r.add(o)),this.addressCache.set(o.address.row,o),o}},{key:"restoreNamedExpression",value:function(e,t){var n=void 0===t?this.workbookStore:this.worksheetStoreOrCreate(t);return e.added=!0,n.add(e),this.addressCache.set(e.address.row,e),e}},{key:"namedExpressionOrPlaceholder",value:function(e,t){var n;return null!==(n=this.worksheetStoreOrCreate(t).get(e))&&void 0!==n?n:this.workbookNamedExpressionOrPlaceholder(e)}},{key:"workbookNamedExpressionOrPlaceholder",value:function(e){var t=this.workbookStore.get(e);return void 0===t&&(t=new u(e,this.nextAddress(),!1),this.workbookStore.add(t)),t}},{key:"remove",value:function(e,t){var n,r=null==(n=void 0===t?this.workbookStore:this.worksheetStore(t))?void 0:n.get(e);if(void 0===n||void 0===r||!r.added)throw"Named expression does not exist";n.remove(e),n instanceof c&&0===n.mapping.size&&this.worksheetStores.delete(t),this.addressCache.delete(r.address.row)}},{key:"getAllNamedExpressionsNamesInScope",value:function(e){return this.getAllNamedExpressions().filter((function(t){return t.scope===e})).map((function(e){return e.expression.displayName}))}},{key:"getAllNamedExpressionsNames",value:function(){return this.getAllNamedExpressions().map((function(e){return e.expression.displayName}))}},{key:"getAllNamedExpressions",value:function(){var e=[];return this.workbookStore.getAllNamedExpressions().forEach((function(t){e.push({expression:t,scope:void 0})})),this.worksheetStores.forEach((function(t,n){t.getAllNamedExpressions().forEach((function(t){e.push({expression:t,scope:n})}))})),e}},{key:"getAllNamedExpressionsForScope",value:function(e){var t,n;return void 0===e?this.workbookStore.getAllNamedExpressions():null!==(n=null===(t=this.worksheetStores.get(e))||void 0===t?void 0:t.getAllNamedExpressions())&&void 0!==n?n:[]}},{key:"worksheetStoreOrCreate",value:function(e){var t=this.worksheetStores.get(e);return t||(t=new c,this.worksheetStores.set(e,t)),t}},{key:"worksheetStore",value:function(e){return this.worksheetStores.get(e)}},{key:"nextAddress",value:function(){return Object(r.simpleCellAddress)(e.SHEET_FOR_WORKBOOK_EXPRESSIONS,0,this.nextNamedExpressionRow++)}}]),e}();f.SHEET_FOR_WORKBOOK_EXPRESSIONS=-1;var d=function e(t){switch(t.type){case o.AstNodeType.EMPTY:case o.AstNodeType.NUMBER:case o.AstNodeType.STRING:case o.AstNodeType.ERROR:case o.AstNodeType.ERROR_WITH_RAW_INPUT:return!1;case o.AstNodeType.CELL_REFERENCE:return!t.reference.isAbsolute();case o.AstNodeType.CELL_RANGE:case o.AstNodeType.COLUMN_RANGE:case o.AstNodeType.ROW_RANGE:return!t.start.isAbsolute();case o.AstNodeType.NAMED_EXPRESSION:return!1;case o.AstNodeType.PERCENT_OP:case o.AstNodeType.PLUS_UNARY_OP:case o.AstNodeType.MINUS_UNARY_OP:return e(t.value);case o.AstNodeType.CONCATENATE_OP:case o.AstNodeType.EQUALS_OP:case o.AstNodeType.NOT_EQUAL_OP:case o.AstNodeType.LESS_THAN_OP:case o.AstNodeType.GREATER_THAN_OP:case o.AstNodeType.LESS_THAN_OR_EQUAL_OP:case o.AstNodeType.GREATER_THAN_OR_EQUAL_OP:case o.AstNodeType.MINUS_OP:case o.AstNodeType.PLUS_OP:case o.AstNodeType.TIMES_OP:case o.AstNodeType.DIV_OP:case o.AstNodeType.POWER_OP:return e(t.left)||e(t.right);case o.AstNodeType.PARENTHESIS:return e(t.expression);case o.AstNodeType.FUNCTION_CALL:return t.args.some((function(t){return e(t)}));case o.AstNodeType.ARRAY:return t.args.some((function(t){return t.some((function(t){return e(t)}))}))}}},function(e,t,n){"use strict";n.r(t),n.d(t,"RemoveRowsCommand",(function(){return x})),n.d(t,"AddRowsCommand",(function(){return D})),n.d(t,"AddColumnsCommand",(function(){return L})),n.d(t,"RemoveColumnsCommand",(function(){return F})),n.d(t,"Operations",(function(){return j})),n.d(t,"normalizeRemovedIndexes",(function(){return U})),n.d(t,"normalizeAddedIndexes",(function(){return H}));n(37),n(52),n(0),n(3),n(4),n(18),n(87),n(40),n(25),n(73),n(99),n(67),n(13),n(22),n(2),n(12),n(8),n(9),n(10);var r=n(86),o=n(224),i=n(124),a=n(24),s=n(190),u=n(377),l=n(271),c=n(123),f=n(115),d=n(706),h=n(378),p=n(707),y=n(708),m=n(709),g=n(379),v=n(710),E=n(41),b=n(51),T=n(227),C=n(72),w=n(290),R=n(186),O=n(125);function S(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_(e)||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.")}()}function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;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,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 N(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function _(e,t){if(e){if("string"==typeof e)return k(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)?k(e,t):void 0}}function k(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 M(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I(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 P(e,t,n){return t&&I(e.prototype,t),n&&I(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var x=function(){function e(t,n){M(this,e),this.sheet=t,this.indexes=n}return P(e,[{key:"normalizedIndexes",value:function(){return U(this.indexes)}},{key:"rowsSpans",value:function(){var e=this;return this.normalizedIndexes().map((function(t){return R.RowsSpan.fromNumberOfRows(e.sheet,t[0],t[1])}))}}]),e}(),D=function(){function e(t,n){M(this,e),this.sheet=t,this.indexes=n}return P(e,[{key:"normalizedIndexes",value:function(){return H(this.indexes)}},{key:"rowsSpans",value:function(){var e=this;return this.normalizedIndexes().map((function(t){return R.RowsSpan.fromNumberOfRows(e.sheet,t[0],t[1])}))}}]),e}(),L=function(){function e(t,n){M(this,e),this.sheet=t,this.indexes=n}return P(e,[{key:"normalizedIndexes",value:function(){return H(this.indexes)}},{key:"columnsSpans",value:function(){var e=this;return this.normalizedIndexes().map((function(t){return R.ColumnsSpan.fromNumberOfColumns(e.sheet,t[0],t[1])}))}}]),e}(),F=function(){function e(t,n){M(this,e),this.sheet=t,this.indexes=n}return P(e,[{key:"normalizedIndexes",value:function(){return U(this.indexes)}},{key:"columnsSpans",value:function(){var e=this;return this.normalizedIndexes().map((function(t){return R.ColumnsSpan.fromNumberOfColumns(e.sheet,t[0],t[1])}))}}]),e}(),j=function(){function e(t,n,r,o,i,a,s,u,c){M(this,e),this.dependencyGraph=n,this.columnSearch=r,this.cellContentParser=o,this.parser=i,this.stats=a,this.lazilyTransformingAstService=s,this.namedExpressions=u,this.arraySizePredictor=c,this.changes=l.ContentChanges.empty(),this.allocateNamedExpressionAddressSpace(),this.maxColumns=t.maxColumns,this.maxRows=t.maxRows}return P(e,[{key:"sheetMapping",get:function(){return this.dependencyGraph.sheetMapping}},{key:"addressMapping",get:function(){return this.dependencyGraph.addressMapping}},{key:"removeRows",value:function(e){var t,n=[],r=N(e.rowsSpans());try{for(r.s();!(t=r.n()).done;){var o=t.value,i=this.doRemoveRows(o);i&&n.push(i)}}catch(e){r.e(e)}finally{r.f()}return n}},{key:"addRows",value:function(e){var t,n=N(e.rowsSpans());try{for(n.s();!(t=n.n()).done;){var r=t.value;this.doAddRows(r)}}catch(e){n.e(e)}finally{n.f()}}},{key:"addColumns",value:function(e){var t,n=N(e.columnsSpans());try{for(n.s();!(t=n.n()).done;){var r=t.value;this.doAddColumns(r)}}catch(e){n.e(e)}finally{n.f()}}},{key:"removeColumns",value:function(e){var t,n=[],r=N(e.columnsSpans());try{for(r.s();!(t=r.n()).done;){var o=t.value,i=this.doRemoveColumns(o);i&&n.push(i)}}catch(e){r.e(e)}finally{r.f()}return n}},{key:"removeSheet",value:function(e){var t,n=this;this.dependencyGraph.removeSheet(e),this.stats.measure(O.StatType.TRANSFORM_ASTS,(function(){var r=new v.RemoveSheetTransformer(e);r.performEagerTransformations(n.dependencyGraph,n.parser),t=n.lazilyTransformingAstService.addTransformation(r)})),this.sheetMapping.removeSheet(e),this.columnSearch.removeSheet(e);var r=this.namedExpressions.getAllNamedExpressionsForScope(e).map((function(t){return n.removeNamedExpression(t.normalizeExpressionName(),e)}));return{version:t,scopedNamedExpressions:r}}},{key:"removeSheetByName",value:function(e){var t=this.sheetMapping.fetch(e);return this.removeSheet(t)}},{key:"clearSheet",value:function(e){this.dependencyGraph.clearSheet(e),this.columnSearch.removeSheet(e)}},{key:"addSheet",value:function(e){var t=this.sheetMapping.addSheet(e),n=[];return this.dependencyGraph.addressMapping.autoAddSheet(t,n,Object(w.findBoundaries)(n)),this.sheetMapping.fetchDisplayName(t)}},{key:"renameSheet",value:function(e,t){return this.sheetMapping.renameSheet(e,t)}},{key:"moveRows",value:function(e,t,n,r){var o=R.RowsSpan.fromNumberOfRows(e,r,n);this.lazilyTransformingAstService.beginCombinedMode(e),this.doAddRows(o),r<t&&(t+=n);var i=Object(a.simpleCellAddress)(e,0,t),s=Object(a.simpleCellAddress)(e,0,r);this.moveCells(i,Number.POSITIVE_INFINITY,n,s);var u=R.RowsSpan.fromNumberOfRows(e,t,n);return this.doRemoveRows(u),this.lazilyTransformingAstService.commitCombinedMode()}},{key:"moveColumns",value:function(e,t,n,r){var o=R.ColumnsSpan.fromNumberOfColumns(e,r,n);this.lazilyTransformingAstService.beginCombinedMode(e),this.doAddColumns(o),r<t&&(t+=n);var i=Object(a.simpleCellAddress)(e,t,0),s=Object(a.simpleCellAddress)(e,r,0);this.moveCells(i,n,Number.POSITIVE_INFINITY,s);var u=R.ColumnsSpan.fromNumberOfColumns(e,t,n);return this.doRemoveColumns(u),this.lazilyTransformingAstService.commitCombinedMode()}},{key:"moveCells",value:function(e,t,n,o){var i=this;this.ensureItIsPossibleToMoveCells(e,t,n,o);var a=r.AbsoluteCellRange.spanFrom(e,t,n),s=r.AbsoluteCellRange.spanFrom(o,t,n),u=o.col-e.col,l=o.row-e.row,c=o.sheet,f=this.getRangeClipboardCells(s),d=this.dependencyGraph.rawValuesFromRange(s);this.columnSearch.removeValues(d);var h,p=this.dependencyGraph.rawValuesFromRange(a);this.columnSearch.moveValues(p,u,l,c),this.stats.measure(O.StatType.TRANSFORM_ASTS,(function(){var e=new y.MoveCellsTransformer(a,u,l,c);e.performEagerTransformations(i.dependencyGraph,i.parser),h=i.lazilyTransformingAstService.addTransformation(e)})),this.dependencyGraph.moveCells(a,u,l,c);var m=this.updateNamedExpressionsForMovedCells(e,t,n,o);return{version:h,overwrittenCellsData:f,addedGlobalNamedExpressions:m}}},{key:"setRowOrder",value:function(e,t){var n,o=this,i=[],a=[],s=N(t);try{var u=function(){var t=A(n.value,2),s=t[0],u=t[1];if(s!==u){var l=r.AbsoluteCellRange.spanFrom({sheet:e,col:0,row:s},1/0,1),c=o.getRangeClipboardCells(l);a=a.concat(c),i.push(c.map((function(e){var t=A(e,2),n=t[0],r=n.sheet,o=n.col,i=t[1];return[{sheet:r,col:o,row:u},i]})))}};for(s.s();!(n=s.n()).done;)u()}catch(e){s.e(e)}finally{s.f()}return i.forEach((function(t){return o.restoreClipboardCells(e,t.values())})),a}},{key:"setColumnOrder",value:function(e,t){var n,o=this,i=[],a=[],s=N(t);try{var u=function(){var t=A(n.value,2),s=t[0],u=t[1];if(s!==u){var l=r.AbsoluteCellRange.spanFrom({sheet:e,col:s,row:0},1,1/0),c=o.getRangeClipboardCells(l);a=a.concat(c),i.push(c.map((function(e){var t=A(e,2),n=t[0],r=n.sheet,o=(n.col,n.row),i=t[1];return[{sheet:r,col:u,row:o},i]})))}};for(s.s();!(n=s.n()).done;)u()}catch(e){s.e(e)}finally{s.f()}return i.forEach((function(t){return o.restoreClipboardCells(e,t.values())})),a}},{key:"addNamedExpression",value:function(e,t,n,r){var o=this.namedExpressions.addNamedExpression(e,n,r);this.storeNamedExpressionInCell(o.address,t),this.adjustNamedExpressionEdges(o,e,n)}},{key:"restoreNamedExpression",value:function(e,t,n){var r=e.displayName;this.restoreCell(e.address,t);var o=this.namedExpressions.restoreNamedExpression(e,n);this.adjustNamedExpressionEdges(o,r,n)}},{key:"changeNamedExpressionExpression",value:function(e,t,n,r){var o=this.namedExpressions.namedExpressionForScope(e,n);if(!o)throw new E.NamedExpressionDoesNotExistError(e);var i=o.copy();o.options=r;var a=this.getClipboardCell(o.address);return this.storeNamedExpressionInCell(o.address,t),[i,a]}},{key:"removeNamedExpression",value:function(e,t){var n=this.namedExpressions.namedExpressionForScope(e,t);if(!n)throw new E.NamedExpressionDoesNotExistError(e);this.namedExpressions.remove(n.displayName,t);var r=this.getClipboardCell(n.address);if(void 0!==t){var o=this.namedExpressions.workbookNamedExpressionOrPlaceholder(e);this.dependencyGraph.exchangeNode(n.address,o.address)}else this.dependencyGraph.setCellEmpty(n.address);return[n,r]}},{key:"ensureItIsPossibleToMoveCells",value:function(e,t,n,o){if(Object(a.invalidSimpleCellAddress)(e)||!(B(t)&&B(n)||function(e,t,n){return 0===e.row&&B(t)&&n===Number.POSITIVE_INFINITY||0===e.col&&B(n)&&t===Number.POSITIVE_INFINITY}(e,t,n))||Object(a.invalidSimpleCellAddress)(o)||!this.sheetMapping.hasSheetWithId(e.sheet)||!this.sheetMapping.hasSheetWithId(o.sheet))throw new E.InvalidArgumentsError("a valid range of cells to move.");var i=r.AbsoluteCellRange.spanFrom(e,t,n),s=r.AbsoluteCellRange.spanFrom(o,t,n);if(s.exceedsSheetSizeLimits(this.maxColumns,this.maxRows))throw new E.SheetSizeLimitExceededError;if(this.dependencyGraph.arrayMapping.isFormulaArrayInRange(i))throw new E.SourceLocationHasArrayError;if(this.dependencyGraph.arrayMapping.isFormulaArrayInRange(s))throw new E.TargetLocationHasArrayError}},{key:"restoreClipboardCells",value:function(e,t){var n,r=[],o=N(t);try{for(o.s();!(n=o.n()).done;){var i=A(n.value,2),a=i[0],s=i[1];if(this.restoreCell(a,s),s.type===u.ClipboardCellType.FORMULA){var l=this.parser.fetchCachedResult(s.hash).dependencies;r.push.apply(r,S(this.updateNamedExpressionsForTargetAddress(e,a,l)))}}}catch(e){o.e(e)}finally{o.f()}return r}},{key:"restoreCell",value:function(e,t){switch(t.type){case u.ClipboardCellType.VALUE:this.setValueToCell(t,e);break;case u.ClipboardCellType.FORMULA:this.setFormulaToCellFromCache(t.hash,e);break;case u.ClipboardCellType.EMPTY:this.setCellEmpty(e);break;case u.ClipboardCellType.PARSING_ERROR:this.setParsingErrorToCell(t.rawInput,t.errors,e)}}},{key:"getOldContent",value:function(e){var t=this.dependencyGraph.getCell(e);if(void 0===t||t instanceof c.EmptyCellVertex)return[e,{type:u.ClipboardCellType.EMPTY}];if(t instanceof c.ValueCellVertex)return[e,Object.assign({type:u.ClipboardCellType.VALUE},t.getValues())];if(t instanceof f.FormulaVertex)return[t.getAddress(this.lazilyTransformingAstService),{type:u.ClipboardCellType.FORMULA,hash:this.parser.computeHashFromAst(t.getFormula(this.lazilyTransformingAstService))}];if(t instanceof c.ParsingErrorVertex)return[e,{type:u.ClipboardCellType.PARSING_ERROR,rawInput:t.rawInput,errors:t.errors}];throw Error("Trying to copy unsupported type")}},{key:"getClipboardCell",value:function(e){var t=this.dependencyGraph.getCell(e);if(void 0===t||t instanceof c.EmptyCellVertex)return{type:u.ClipboardCellType.EMPTY};if(t instanceof c.ValueCellVertex)return Object.assign({type:u.ClipboardCellType.VALUE},t.getValues());if(t instanceof c.ArrayVertex){var n=t.getArrayCellValue(e);return n===b.EmptyValue?{type:u.ClipboardCellType.EMPTY}:{type:u.ClipboardCellType.VALUE,parsedValue:n,rawValue:t.getArrayCellRawValue(e)}}if(t instanceof c.FormulaCellVertex)return{type:u.ClipboardCellType.FORMULA,hash:this.parser.computeHashFromAst(t.getFormula(this.lazilyTransformingAstService))};if(t instanceof c.ParsingErrorVertex)return{type:u.ClipboardCellType.PARSING_ERROR,rawInput:t.rawInput,errors:t.errors};throw Error("Trying to copy unsupported type")}},{key:"getSheetClipboardCells",value:function(e){for(var t=this.dependencyGraph.getSheetHeight(e),n=this.dependencyGraph.getSheetWidth(e),r=new Array(t),o=0;o<t;o++){r[o]=new Array(n);for(var i=0;i<n;i++){var s=Object(a.simpleCellAddress)(e,i,o);r[o][i]=this.getClipboardCell(s)}}return r}},{key:"getRangeClipboardCells",value:function(e){var t,n=[],r=N(e.addresses(this.dependencyGraph));try{for(r.s();!(t=r.n()).done;){var o=t.value;n.push([o,this.getClipboardCell(o)])}}catch(e){r.e(e)}finally{r.f()}return n}},{key:"setCellContent",value:function(e,t){var n=this.cellContentParser.parse(t),r=this.getOldContent(e);if(n instanceof s.CellContent.Formula){var o=this.parser.parse(n.formula,e),i=o.ast,a=o.errors;if(a.length>0)this.setParsingErrorToCell(n.formula,a,e);else{var u=this.arraySizePredictor.checkArraySize(i,e);this.setFormulaToCell(e,u,o)}}else n instanceof s.CellContent.Empty?this.setCellEmpty(e):this.setValueToCell({parsedValue:n.value,rawValue:t},e);return r}},{key:"setSheetContent",value:function(e,t){this.clearSheet(e);for(var n=0;n<t.length;n++)for(var r=0;r<t[n].length;r++){var o=Object(a.simpleCellAddress)(e,r,n);this.setCellContent(o,t[n][r])}}},{key:"setParsingErrorToCell",value:function(e,t,n){var r=this.dependencyGraph.getCellValue(n),o=new c.ParsingErrorVertex(t,e),i=this.dependencyGraph.setParsingErrorToCell(n,o);this.columnSearch.remove(Object(b.getRawValue)(r),n),this.columnSearch.applyChanges(i.getChanges()),this.changes.addAll(i),this.changes.addChange(o.getCellValue(),n)}},{key:"setFormulaToCell",value:function(e,t,n){var r=n.ast,i=n.hasVolatileFunction,a=n.hasStructuralChangeFunction,s=n.dependencies,u=this.dependencyGraph.getCellValue(e),l=this.dependencyGraph.setFormulaToCell(e,r,Object(o.absolutizeDependencies)(s,e),t,i,a);this.columnSearch.remove(Object(b.getRawValue)(u),e),this.columnSearch.applyChanges(l.getChanges()),this.changes.addAll(l)}},{key:"setValueToCell",value:function(e,t){var n=this.dependencyGraph.getCellValue(t),r=this.dependencyGraph.setValueToCell(t,e);this.columnSearch.change(Object(b.getRawValue)(n),Object(b.getRawValue)(e.parsedValue),t),this.columnSearch.applyChanges(r.getChanges().filter((function(e){return!Object(a.equalSimpleCellAddress)(e.address,t)}))),this.changes.addAll(r),this.changes.addChange(e.parsedValue,t)}},{key:"setCellEmpty",value:function(e){if(!this.dependencyGraph.isArrayInternalCell(e)){var t=this.dependencyGraph.getCellValue(e),n=this.dependencyGraph.setCellEmpty(e);this.columnSearch.remove(Object(b.getRawValue)(t),e),this.columnSearch.applyChanges(n.getChanges()),this.changes.addAll(n),this.changes.addChange(b.EmptyValue,e)}}},{key:"setFormulaToCellFromCache",value:function(e,t){var n=this.parser.fetchCachedResult(e),r=n.ast,i=n.hasVolatileFunction,a=n.hasStructuralChangeFunction,s=n.dependencies,u=Object(o.absolutizeDependencies)(s,t),l=A(new p.CleanOutOfScopeDependenciesTransformer(t.sheet).transformSingleAst(r,t),1)[0];this.parser.rememberNewAst(l);var c=Object(o.filterDependenciesOutOfScope)(u),f=this.arraySizePredictor.checkArraySize(r,t);this.dependencyGraph.setFormulaToCell(t,l,c,f,i,a)}},{key:"rowEffectivelyNotInSheet",value:function(e,t){return e>=this.dependencyGraph.addressMapping.getHeight(t)}},{key:"getAndClearContentChanges",value:function(){var e=this.changes;return this.changes=l.ContentChanges.empty(),e}},{key:"forceApplyPostponedTransformations",value:function(){this.dependencyGraph.forceApplyPostponedTransformations()}},{key:"doRemoveRows",value:function(e){var t=this;if(!this.rowEffectivelyNotInSheet(e.rowStart,e.sheet)){var n,r=[],o=N(this.dependencyGraph.entriesFromRowsSpan(e));try{for(o.s();!(n=o.n()).done;){var i=A(n.value,1)[0];r.push({address:i,cellType:this.getClipboardCell(i)})}}catch(e){o.e(e)}finally{o.f()}var a,s=this.dependencyGraph.removeRows(e),u=s.affectedArrays,l=s.contentChanges;return this.columnSearch.applyChanges(l.getChanges()),this.stats.measure(O.StatType.TRANSFORM_ASTS,(function(){var n=new g.RemoveRowsTransformer(e);n.performEagerTransformations(t.dependencyGraph,t.parser),a=t.lazilyTransformingAstService.addTransformation(n)})),this.rewriteAffectedArrays(u),{version:a,removedCells:r,rowFrom:e.rowStart,rowCount:e.numberOfRows}}}},{key:"doRemoveColumns",value:function(e){var t=this;if(!this.columnEffectivelyNotInSheet(e.columnStart,e.sheet)){var n,r=[],o=N(this.dependencyGraph.entriesFromColumnsSpan(e));try{for(o.s();!(n=o.n()).done;){var i=A(n.value,1)[0];r.push({address:i,cellType:this.getClipboardCell(i)})}}catch(e){o.e(e)}finally{o.f()}var a,s=this.dependencyGraph.removeColumns(e),u=s.affectedArrays,l=s.contentChanges;return this.columnSearch.applyChanges(l.getChanges()),this.columnSearch.removeColumns(e),this.stats.measure(O.StatType.TRANSFORM_ASTS,(function(){var n=new m.RemoveColumnsTransformer(e);n.performEagerTransformations(t.dependencyGraph,t.parser),a=t.lazilyTransformingAstService.addTransformation(n)})),this.rewriteAffectedArrays(u),{version:a,removedCells:r,columnFrom:e.columnStart,columnCount:e.numberOfColumns}}}},{key:"doAddRows",value:function(e){var t=this;if(!this.rowEffectivelyNotInSheet(e.rowStart,e.sheet)){var n=this.dependencyGraph.addRows(e).affectedArrays;this.stats.measure(O.StatType.TRANSFORM_ASTS,(function(){var n=new h.AddRowsTransformer(e);n.performEagerTransformations(t.dependencyGraph,t.parser),t.lazilyTransformingAstService.addTransformation(n)})),this.rewriteAffectedArrays(n)}}},{key:"rewriteAffectedArrays",value:function(e){var t,n=N(e.values());try{for(n.s();!(t=n.n()).done;){var r=t.value;if(!r.array.size.isRef){var o=r.getFormula(this.lazilyTransformingAstService),i=r.getAddress(this.lazilyTransformingAstService),a=this.parser.computeHashFromAst(o);this.setFormulaToCellFromCache(a,i)}}}catch(e){n.e(e)}finally{n.f()}}},{key:"doAddColumns",value:function(e){var t=this;if(!this.columnEffectivelyNotInSheet(e.columnStart,e.sheet)){var n=this.dependencyGraph.addColumns(e),r=n.affectedArrays,o=n.contentChanges;this.columnSearch.addColumns(e),this.columnSearch.applyChanges(o.getChanges()),this.stats.measure(O.StatType.TRANSFORM_ASTS,(function(){var n=new d.AddColumnsTransformer(e);n.performEagerTransformations(t.dependencyGraph,t.parser),t.lazilyTransformingAstService.addTransformation(n)})),this.rewriteAffectedArrays(r)}}},{key:"columnEffectivelyNotInSheet",value:function(e,t){return e>=this.dependencyGraph.addressMapping.getWidth(t)}},{key:"adjustNamedExpressionEdges",value:function(e,t,n){if(void 0!==n){var r,i=this.dependencyGraph.fetchCellOrCreateEmpty(e.address),a=this.namedExpressions.workbookNamedExpressionOrPlaceholder(t),s=this.dependencyGraph.fetchCellOrCreateEmpty(a.address),u=N(this.dependencyGraph.graph.adjacentNodes(s));try{for(u.s();!(r=u.n()).done;){var l=r.value;if(l instanceof c.FormulaCellVertex&&l.getAddress(this.lazilyTransformingAstService).sheet===n){var f,d=l.getFormula(this.lazilyTransformingAstService),h=l.getAddress(this.lazilyTransformingAstService),p=this.parser.fetchCachedResultForAst(d).dependencies,y=N(Object(o.absolutizeDependencies)(p,h));try{for(y.s();!(f=y.n()).done;){var m=f.value;m instanceof C.NamedExpressionDependency&&m.name.toLowerCase()===e.displayName.toLowerCase()&&(this.dependencyGraph.graph.removeEdge(s,l),this.dependencyGraph.graph.addEdge(i,l))}}catch(e){y.e(e)}finally{y.f()}}}}catch(e){u.e(e)}finally{u.f()}}}},{key:"storeNamedExpressionInCell",value:function(e,t){var n=this.cellContentParser.parse(t);if(n instanceof s.CellContent.Formula){var r=this.parser.parse(n.formula,Object(a.simpleCellAddress)(-1,0,0));if(Object(T.doesContainRelativeReferences)(r.ast))throw new E.NoRelativeAddressesAllowedError;var u=r.ast,l=r.hasVolatileFunction,c=r.hasStructuralChangeFunction,f=r.dependencies;this.dependencyGraph.setFormulaToCell(e,u,Object(o.absolutizeDependencies)(f,e),i.ArraySize.scalar(),l,c)}else n instanceof s.CellContent.Empty?this.setCellEmpty(e):this.setValueToCell({parsedValue:n.value,rawValue:t},e)}},{key:"updateNamedExpressionsForMovedCells",value:function(e,t,n,o){if(e.sheet===o.sheet)return[];var i,a=[],s=N(r.AbsoluteCellRange.spanFrom(o,t,n).addresses(this.dependencyGraph));try{for(s.s();!(i=s.n()).done;){var u=i.value,l=this.addressMapping.fetchCell(u);if(l instanceof c.FormulaCellVertex&&u.sheet!==e.sheet){var f=l.getFormula(this.lazilyTransformingAstService),d=this.parser.fetchCachedResultForAst(f).dependencies;a.push.apply(a,S(this.updateNamedExpressionsForTargetAddress(e.sheet,u,d)))}}}catch(e){s.e(e)}finally{s.f()}return a}},{key:"updateNamedExpressionsForTargetAddress",value:function(e,t,n){if(e===t.sheet)return[];var r,i=[],a=this.addressMapping.fetchCell(t),s=N(Object(o.absolutizeDependencies)(n,t));try{for(s.s();!(r=s.n()).done;){var u=r.value;if(u instanceof C.NamedExpressionDependency){var l=u.name,c=this.dependencyGraph.fetchNamedExpressionVertex(l,e),f=this.namedExpressions.isExpressionInScope(l,t.sheet)?this.dependencyGraph.fetchNamedExpressionVertex(l,t.sheet):this.copyOrFetchGlobalNamedExpressionVertex(l,c,i);f!==c&&(this.dependencyGraph.graph.softRemoveEdge(c,a),this.dependencyGraph.graph.addEdge(f,a))}}}catch(e){s.e(e)}finally{s.f()}return i}},{key:"allocateNamedExpressionAddressSpace",value:function(){this.dependencyGraph.addressMapping.addSheet(-1,new c.SparseStrategy(0,0))}},{key:"copyOrFetchGlobalNamedExpressionVertex",value:function(e,t,n){var r=this.namedExpressions.namedExpressionForScope(e);if(void 0===r)if(r=this.namedExpressions.addNamedExpression(e),n.push(r.normalizeExpressionName()),t instanceof c.FormulaCellVertex){var a=this.parser.fetchCachedResultForAst(t.getFormula(this.lazilyTransformingAstService)),s=a.ast,u=a.hasVolatileFunction,l=a.hasStructuralChangeFunction,f=a.dependencies;this.dependencyGraph.setFormulaToCell(r.address,s,Object(o.absolutizeDependencies)(f,r.address),i.ArraySize.scalar(),u,l)}else t instanceof c.EmptyCellVertex?this.setCellEmpty(r.address):t instanceof c.ValueCellVertex&&this.setValueToCell(t.getValues(),r.address);return this.dependencyGraph.fetchCellOrCreateEmpty(r.address)}}]),e}();function U(e){if(e.length<=1)return e;for(var t=S(e).sort((function(e,t){return A(e,1)[0]-A(t,1)[0]})),n=t.reduce((function(e,t){var n=A(t,2),r=n[0],o=n[1],i=e[e.length-1],a=i[0]+i[1];return r<=a?i[1]+=Math.max(0,o-(a-r)):e.push([r,o]),e}),[t[0]]),r=0,o=0;o<n.length;++o)n[o][0]-=r,r+=n[o][1];return n}function H(e){if(e.length<=1)return e;for(var t=S(e).sort((function(e,t){return A(e,1)[0]-A(t,1)[0]})),n=t.reduce((function(e,t){var n=A(t,2),r=n[0],o=n[1],i=e[e.length-1];return r===i[0]?i[1]=Math.max(i[1],o):e.push([r,o]),e}),[t[0]]),r=0,o=0;o<n.length;++o)n[o][0]+=r,r+=n[o][1];return n}function B(e){return Number.isInteger(e)&&e>0}},function(e,t,n){"use strict";n.r(t),n.d(t,"ExportedCellChange",(function(){return m})),n.d(t,"ExportedNamedExpressionChange",(function(){return g})),n.d(t,"Exporter",(function(){return v}));n(25),n(37),n(381),n(13),n(0),n(22),n(2),n(12),n(8),n(9),n(10),n(3),n(4);var r=n(24),o=n(283),i=n(45),a=n(51),s=n(78),u=n(227),l=n(98);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;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,t)||f(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 f(e,t){if(e){if("string"==typeof e)return d(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)?d(e,t):void 0}}function d(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 h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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 y(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var m=function(){function e(t,n){h(this,e),this.address=t,this.newValue=n}return y(e,[{key:"col",get:function(){return this.address.col}},{key:"row",get:function(){return this.address.row}},{key:"sheet",get:function(){return this.address.sheet}},{key:"value",get:function(){return this.newValue}}]),e}(),g=y((function e(t,n){h(this,e),this.name=t,this.newValue=n})),v=function(){function e(t,n,r,o){h(this,e),this.config=t,this.namedExpressions=n,this.sheetIndexMapping=r,this.lazilyTransformingService=o}return y(e,[{key:"exportChange",value:function(e){var t=e.value,n=e.address;if(n.sheet===u.NamedExpressions.SHEET_FOR_WORKBOOK_EXPRESSIONS){var r=this.namedExpressions.namedExpressionInAddress(n.row);if(!r)throw new Error("Missing named expression");return new g(r.displayName,this.exportScalarOrRange(t))}if(t instanceof s.SimpleRangeValue){var o,i=[],a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=f(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(t.entriesFromTopLeftCorner(n));try{for(a.s();!(o=a.n()).done;){var l=c(o.value,2),d=l[0],h=l[1];i.push(new m(h,this.exportValue(d)))}}catch(e){a.e(e)}finally{a.f()}return i}return new m(n,this.exportValue(t))}},{key:"exportValue",value:function(e){return e instanceof s.SimpleRangeValue?this.detailedError(new r.CellError(r.ErrorType.VALUE,i.ErrorMessage.ScalarExpected)):this.config.smartRounding&&Object(a.isExtendedNumber)(e)?this.cellValueRounding(Object(a.getRawValue)(e)):e instanceof r.CellError?this.detailedError(e):e===a.EmptyValue?null:Object(a.getRawValue)(e)}},{key:"exportScalarOrRange",value:function(e){var t=this;return e instanceof s.SimpleRangeValue?e.rawData().map((function(e){return e.map((function(e){return t.exportValue(e)}))})):this.exportValue(e)}},{key:"detailedError",value:function(e){var t,n,r=void 0,i=null===(t=e.root)||void 0===t?void 0:t.getAddress(this.lazilyTransformingService);return void 0!==i&&(r=i.sheet===u.NamedExpressions.SHEET_FOR_WORKBOOK_EXPRESSIONS?null===(n=this.namedExpressions.namedExpressionInAddress(i.row))||void 0===n?void 0:n.displayName:Object(l.simpleCellAddressToString)(this.sheetIndexMapping,i,-1)),new o.DetailedCellError(e,this.config.translationPackage.getErrorTranslation(e.type),r)}},{key:"cellValueRounding",value:function(e){if(0===e)return e;var t=Math.floor(Math.log10(Math.abs(e))),n=Math.pow(10,this.config.precisionRounding-t);return e<0?-Math.round(-e*n)/n:Math.round(e*n)/n}}]),e}()},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.getPlugin=p,t.getPluginsNames=function(){return[].concat((0,i.default)(f.getItems()),(0,i.default)(d.getItems()))},t.hasPlugin=function(e){return!!p(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===p(e)&&function(e,t,n){var r=(0,a.toUpperCaseFirst)(e);if(h.hasItem(r))throw new Error(c(r));void 0===n?d.addItem(r):f.addItem(n,r);h.addItem(r,t)}(e,t,n)},n(18);var o=r(n(34)),i=r(n(44)),a=n(91),s=n(759),u=n(231),l=n(760),c=function(e){return'There is already registered "'.concat(e,'" plugin.')},f=(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.')}}),d=(0,l.createUniqueSet)({errorItemExists:c}),h=(0,u.createUniqueMap)({errorIdExists:c});function p(e){var t=(0,a.toUpperCaseFirst)(e);return h.getItem(t)}},function(e,t,n){"use strict";var r=n(1);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 u(e){return n.delete(e)}function l(){n.clear()}function c(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 f(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:c,getItem:f,getItems:d,hasItem:h,removeItem:u}};var o=r(n(44)),i=r(n(34));n(3),n(33),n(0),n(2),n(4),n(140);var a=n(68),s=function(e){return"The id '".concat(e,"' is already declared in a map.")}},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0;var o=r(n(581));t.OrderView=o.default;var i=r(n(775));t.SharedOrderView=i.default},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.IndexMap=void 0,n(13);var o=r(n(5)),i=r(n(6)),a=n(47),s=n(17),u=n(68),l=r(n(92)),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,u.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,l.default)},function(e,t,n){"use strict";var r=n(1);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(18),n(13),n(42),n(49);var o=r(n(44)),i=n(20)},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.SELECTION_TYPE_UNRECOGNIZED=t.SELECTION_TYPE_OBJECT=t.SELECTION_TYPE_EMPTY=t.SELECTION_TYPE_ARRAY=t.SELECTION_TYPES=void 0,t.detectSelectionType=h,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.normalizeSelectionFactory=p,t.transformSelectionToColumnDistance=function(e){var t=h(e);if(0===t||1===t)return[];var n=p(t),r=new Set;(0,s.arrayEach)(e,(function(e){var t=n(e),i=(0,o.default)(t,4),a=i[1],u=i[3],l=Math.max(a,0),c=u-l+1;(0,s.arrayEach)(Array.from(new Array(c),(function(e,t){return l+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=h(e);if(0===t||1===t)return[];var n=p(t),r=new Set;(0,s.arrayEach)(e,(function(e){var t=n(e),i=(0,o.default)(t,3),a=i[0],u=i[2],l=Math.max(a,0),c=u-l+1;(0,s.arrayEach)(Array.from(new Array(c),(function(e,t){return l+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}),[])};var o=r(n(34)),i=r(n(21));n(8),n(9),n(0),n(42),n(49),n(3),n(55),n(2),n(4),n(22),n(73);var a=n(158),s=n(20),u=n(32);t.SELECTION_TYPE_UNRECOGNIZED=0;t.SELECTION_TYPE_EMPTY=1;t.SELECTION_TYPE_ARRAY=2;t.SELECTION_TYPE_OBJECT=3;var l=[3,2];t.SELECTION_TYPES=l;var c=[["number"],["number","string"],["number","undefined"],["number","string","undefined"]],f=Symbol("root"),d=Symbol("child");function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f;if(t!==f&&t!==d)throw new Error("The second argument is used internally only and cannot be overwritten.");var n=Array.isArray(e),r=t===f,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=h(s,d);else if(e.length>=2&&e.length<=4){var u=!e.some((function(e,t){return!c[t].includes((0,i.default)(e))}));u&&(o=2)}}return o}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.keepDirection,r=void 0!==n&&n,o=t.propToCol;if(!l.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],l=n?t.to.col:t[3];if("function"==typeof o&&("string"==typeof a&&(a=o(a)),"string"==typeof l&&(l=o(l))),(0,u.isUndefined)(s)&&(s=i),(0,u.isUndefined)(l)&&(l=a),!r){var c=i,f=a,d=s,h=l;i=Math.min(c,d),a=Math.min(f,h),s=Math.max(c,d),l=Math.max(f,h)}return[i,a,s,l]}}},function(e,t,n){"use strict";t.__esModule=!0,t.baseRenderer=t.RENDERER_TYPE=void 0;var r=n(847);t.RENDERER_TYPE=r.RENDERER_TYPE,t.baseRenderer=r.baseRenderer},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6)),a=n(20),s=n(17),u=r(n(92)),l=n(82),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 l.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,u.default);var f=c;t.default=f},function(e,t,n){"use strict";n.r(t);n(27),n(244),n(114),n(0),n(7),n(13),n(25),n(22),n(2),n(12),n(8),n(9),n(10),n(3),n(4);var r=n(24);n.d(t,"CellType",(function(){return r.CellType})),n.d(t,"CellValueType",(function(){return r.CellValueType})),n.d(t,"CellValueDetailedType",(function(){return r.CellValueDetailedType})),n.d(t,"ErrorType",(function(){return r.ErrorType})),n.d(t,"CellError",(function(){return r.CellError}));var o=n(283);n.d(t,"DetailedCellError",(function(){return o.DetailedCellError}));var i=n(226),a=n(188);n.d(t,"AlwaysDense",(function(){return a.AlwaysDense})),n.d(t,"AlwaysSparse",(function(){return a.AlwaysSparse})),n.d(t,"DenseSparseChooseBasedOnThreshold",(function(){return a.DenseSparseChooseBasedOnThreshold}));var s=n(41);n.d(t,"ConfigValueTooBigError",(function(){return s.ConfigValueTooBigError})),n.d(t,"ConfigValueTooSmallError",(function(){return s.ConfigValueTooSmallError})),n.d(t,"EvaluationSuspendedError",(function(){return s.EvaluationSuspendedError})),n.d(t,"ExpectedOneOfValuesError",(function(){return s.ExpectedOneOfValuesError})),n.d(t,"ExpectedValueOfTypeError",(function(){return s.ExpectedValueOfTypeError})),n.d(t,"FunctionPluginValidationError",(function(){return s.FunctionPluginValidationError})),n.d(t,"InvalidAddressError",(function(){return s.InvalidAddressError})),n.d(t,"InvalidArgumentsError",(function(){return s.InvalidArgumentsError})),n.d(t,"LanguageAlreadyRegisteredError",(function(){return s.LanguageAlreadyRegisteredError})),n.d(t,"LanguageNotRegisteredError",(function(){return s.LanguageNotRegisteredError})),n.d(t,"MissingTranslationError",(function(){return s.MissingTranslationError})),n.d(t,"NamedExpressionDoesNotExistError",(function(){return s.NamedExpressionDoesNotExistError})),n.d(t,"NamedExpressionNameIsAlreadyTakenError",(function(){return s.NamedExpressionNameIsAlreadyTakenError})),n.d(t,"NamedExpressionNameIsInvalidError",(function(){return s.NamedExpressionNameIsInvalidError})),n.d(t,"NoOperationToRedoError",(function(){return s.NoOperationToRedoError})),n.d(t,"NoOperationToUndoError",(function(){return s.NoOperationToUndoError})),n.d(t,"NoRelativeAddressesAllowedError",(function(){return s.NoRelativeAddressesAllowedError})),n.d(t,"NoSheetWithIdError",(function(){return s.NoSheetWithIdError})),n.d(t,"NoSheetWithNameError",(function(){return s.NoSheetWithNameError})),n.d(t,"NotAFormulaError",(function(){return s.NotAFormulaError})),n.d(t,"NothingToPasteError",(function(){return s.NothingToPasteError})),n.d(t,"ProtectedFunctionTranslationError",(function(){return s.ProtectedFunctionTranslationError})),n.d(t,"SheetNameAlreadyTakenError",(function(){return s.SheetNameAlreadyTakenError})),n.d(t,"SheetSizeLimitExceededError",(function(){return s.SheetSizeLimitExceededError})),n.d(t,"SourceLocationHasArrayError",(function(){return s.SourceLocationHasArrayError})),n.d(t,"TargetLocationHasArrayError",(function(){return s.TargetLocationHasArrayError})),n.d(t,"UnableToParseError",(function(){return s.UnableToParseError}));var u=n(229);n.d(t,"ExportedCellChange",(function(){return u.ExportedCellChange})),n.d(t,"ExportedNamedExpressionChange",(function(){return u.ExportedNamedExpressionChange}));var l=n(189);n.d(t,"HyperFormula",(function(){return l.HyperFormula}));var c=n(727),f=n(292);n.d(t,"FunctionPlugin",(function(){return f.FunctionPlugin}));var d=n(728),h=n(78);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(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 m(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 g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=T(e);if(t){var o=T(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function T(e){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/n.d(t,"SimpleRangeValue",(function(){return h.SimpleRangeValue}));var C=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(i,e);var t,n,r,o=E(i);function i(){return g(this,i),o.apply(this,arguments)}return t=i,n&&m(t.prototype,n),r&&m(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(l.HyperFormula);C.HyperFormula=l.HyperFormula,C.ErrorType=r.ErrorType,C.CellType=r.CellType,C.CellValueType=r.CellValueType,C.CellValueDetailedType=r.CellValueDetailedType,C.DetailedCellError=o.DetailedCellError,C.ExportedCellChange=u.ExportedCellChange,C.ExportedNamedExpressionChange=u.ExportedNamedExpressionChange,C.ConfigValueTooBigError=s.ConfigValueTooBigError,C.ConfigValueTooSmallError=s.ConfigValueTooSmallError,C.EvaluationSuspendedError=s.EvaluationSuspendedError,C.ExpectedOneOfValuesError=s.ExpectedOneOfValuesError,C.ExpectedValueOfTypeError=s.ExpectedValueOfTypeError,C.FunctionPlugin=f.FunctionPlugin,C.FunctionPluginValidationError=s.FunctionPluginValidationError,C.InvalidAddressError=s.InvalidAddressError,C.InvalidArgumentsError=s.InvalidArgumentsError,C.LanguageNotRegisteredError=s.LanguageNotRegisteredError,C.LanguageAlreadyRegisteredError=s.LanguageAlreadyRegisteredError,C.MissingTranslationError=s.MissingTranslationError,C.NamedExpressionDoesNotExistError=s.NamedExpressionDoesNotExistError,C.NamedExpressionNameIsAlreadyTakenError=s.NamedExpressionNameIsAlreadyTakenError,C.NamedExpressionNameIsInvalidError=s.NamedExpressionNameIsInvalidError,C.NoOperationToRedoError=s.NoOperationToRedoError,C.NoOperationToUndoError=s.NoOperationToUndoError,C.NoRelativeAddressesAllowedError=s.NoRelativeAddressesAllowedError,C.NoSheetWithIdError=s.NoSheetWithIdError,C.NoSheetWithNameError=s.NoSheetWithNameError,C.NotAFormulaError=s.NotAFormulaError,C.NothingToPasteError=s.NothingToPasteError,C.ProtectedFunctionTranslationError=s.ProtectedFunctionTranslationError,C.SheetNameAlreadyTakenError=s.SheetNameAlreadyTakenError,C.SheetSizeLimitExceededError=s.SheetSizeLimitExceededError,C.SourceLocationHasArrayError=s.SourceLocationHasArrayError,C.TargetLocationHasArrayError=s.TargetLocationHasArrayError,C.UnableToParseError=s.UnableToParseError;var w=i.Config.defaultConfig.language;l.HyperFormula.registerLanguage(w,c.default),l.HyperFormula.languages[c.default.langCode]=c.default;var R,O=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return y(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 y(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(Object.getOwnPropertyNames(d));try{for(O.s();!(R=O.n()).done;){var S=R.value;S.startsWith("_")||l.HyperFormula.registerFunctionPlugin(d[S])}}catch(e){O.e(e)}finally{O.f()}t.default=C,window.HyperFormula=n(238).default},function(e,t,n){var r=n(29),o=n(240),i=r["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=i},function(e,t,n){var r=n(29),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(36),o=n(60),i=n(239),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},function(e,t,n){var r=n(93),o=n(151),i=n(97),a=function(e){return function(t,n,a){var s,u=r(t),l=i(u),c=o(a,l);if(e&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[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,n){var r=n(28),o=n(39),i=n(245).f;r({target:"Object",stat:!0,forced:o((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},function(e,t,n){var r=n(119),o=n(93),i=n(150).f,a=n(246),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"==r(e)?function(e){try{return i(e)}catch(e){return a(s)}}(e):i(o(e))}},function(e,t,n){var r=n(29),o=n(151),i=n(97),a=n(152),s=r.Array,u=Math.max;e.exports=function(e,t,n){for(var r=i(e),l=o(t,r),c=o(void 0===n?r:n,r),f=s(u(c-l,0)),d=0;l<c;l++,d++)a(f,d,e[l]);return f.length=d,f}},function(e,t,n){var r={};r[n(58)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){var r=n(29),o=n(249),i=r.TypeError;e.exports=function(e){if(o(e))throw i("The method doesn't accept regular expressions");return e}},function(e,t,n){var r=n(64),o=n(119),i=n(58)("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(58)("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(210),o=n(129),i=n(178),a=n(58)("iterator");e.exports=function(e){if(null!=e)return o(e,a)||o(e,"@@iterator")||i[r(e)]}},function(e,t,n){var r=n(36),o=n(122),i=n(71),a=n(89),s=r("".charAt),u=r("".charCodeAt),l=r("".slice),c=function(e){return function(t,n){var r,c,f=i(a(t)),d=o(n),h=f.length;return d<0||d>=h?e?"":void 0:(r=u(f,d))<55296||r>56319||d+1===h||(c=u(f,d+1))<56320||c>57343?e?s(f,d):r:e?l(f,d,d+2):c-56320+(r-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},function(e,t,n){"use strict";var r=n(28),o=n(70),i=n(130),a=n(171),s=n(60),u=n(652),l=n(209),c=n(338),f=n(212),d=n(121),h=n(96),p=n(58),y=n(178),m=n(337),g=a.PROPER,v=a.CONFIGURABLE,E=m.IteratorPrototype,b=m.BUGGY_SAFARI_ITERATORS,T=p("iterator"),C=function(){return this};e.exports=function(e,t,n,a,p,m,w){u(n,t,a);var R,O,S,A=function(e){if(e===p&&I)return I;if(!b&&e in k)return k[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},N=t+" Iterator",_=!1,k=e.prototype,M=k[T]||k["@@iterator"]||p&&k[p],I=!b&&M||A(p),P="Array"==t&&k.entries||M;if(P&&(R=l(P.call(new e)))!==Object.prototype&&R.next&&(i||l(R)===E||(c?c(R,E):s(R[T])||h(R,T,C)),f(R,N,!0,!0),i&&(y[N]=C)),g&&"values"==p&&M&&"values"!==M.name&&(!i&&v?d(k,"name","values"):(_=!0,I=function(){return o(M,this)})),p)if(O={values:A("values"),keys:m?I:A("keys"),entries:A("entries")},w)for(S in O)(b||_||!(S in k))&&h(k,S,O[S]);else r({target:t,proto:!0,forced:b||_},O);return i&&!w||k[T]===I||h(k,T,I,{name:p}),y[t]=I,O}},function(e,t,n){var r=n(39),o=n(29).RegExp,i=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),a=i||r((function(){return!o("a","y").sticky})),s=i||r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:i}},function(e,t,n){var r=n(657);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},function(e,t,n){var r=n(29),o=n(177),i=n(70),a=n(65),s=n(170),u=n(334),l=n(97),c=n(120),f=n(335),d=n(251),h=n(333),p=r.TypeError,y=function(e,t){this.stopped=e,this.result=t},m=y.prototype;e.exports=function(e,t,n){var r,g,v,E,b,T,C,w=n&&n.that,R=!(!n||!n.AS_ENTRIES),O=!(!n||!n.IS_ITERATOR),S=!(!n||!n.INTERRUPTED),A=o(t,w),N=function(e){return r&&h(r,"normal",e),new y(!0,e)},_=function(e){return R?(a(e),S?A(e[0],e[1],N):A(e[0],e[1])):S?A(e,N):A(e)};if(O)r=e;else{if(!(g=d(e)))throw p(s(e)+" is not iterable");if(u(g)){for(v=0,E=l(e);E>v;v++)if((b=_(e[v]))&&c(m,b))return b;return new y(!1)}r=f(e,g)}for(T=r.next;!(C=i(T,r)).done;){try{b=_(C.value)}catch(e){h(r,"throw",e)}if("object"==typeof b&&b&&c(m,b))return b}return new y(!1)}},function(e,t,n){var r=n(29),o=n(120),i=r.TypeError;e.exports=function(e,t){if(o(t,e))return e;throw i("Incorrect invocation")}},function(e,t,n){var r=n(60),o=n(64),i=n(338);e.exports=function(e,t,n){var a,s;return i&&r(a=t.constructor)&&a!==n&&o(s=a.prototype)&&s!==n.prototype&&i(e,s),e}},function(e,t,n){var r=n(96);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},function(e,t,n){n(28)({target:"Number",stat:!0},{isFinite:n(666)})},function(e,t,n){"use strict";var r=n(252).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){"use strict";n.r(t),n.d(t,"VERSION",(function(){return r}));var r="6.5.0"},function(e,t,n){"use strict";n.r(t),n.d(t,"RestWalker",(function(){return i}));var r=n(48),o=n(56),i=function(){function e(){}return e.prototype.walk=function(e,t){var n=this;void 0===t&&(t=[]),Object(r.forEach)(e.definition,(function(i,a){var s=Object(r.drop)(e.definition,a+1);if(i instanceof o.NonTerminal)n.walkProdRef(i,s,t);else if(i instanceof o.Terminal)n.walkTerminal(i,s,t);else if(i instanceof o.Flat)n.walkFlat(i,s,t);else if(i instanceof o.Option)n.walkOption(i,s,t);else if(i instanceof o.RepetitionMandatory)n.walkAtLeastOne(i,s,t);else if(i instanceof o.RepetitionMandatoryWithSeparator)n.walkAtLeastOneSep(i,s,t);else if(i instanceof o.RepetitionWithSeparator)n.walkManySep(i,s,t);else if(i instanceof o.Repetition)n.walkMany(i,s,t);else{if(!(i instanceof o.Alternation))throw Error("non exhaustive match");n.walkOr(i,s,t)}}))},e.prototype.walkTerminal=function(e,t,n){},e.prototype.walkProdRef=function(e,t,n){},e.prototype.walkFlat=function(e,t,n){var r=t.concat(n);this.walk(e,r)},e.prototype.walkOption=function(e,t,n){var r=t.concat(n);this.walk(e,r)},e.prototype.walkAtLeastOne=function(e,t,n){var r=[new o.Option({definition:e.definition})].concat(t,n);this.walk(e,r)},e.prototype.walkAtLeastOneSep=function(e,t,n){var r=a(e,t,n);this.walk(e,r)},e.prototype.walkMany=function(e,t,n){var r=[new o.Option({definition:e.definition})].concat(t,n);this.walk(e,r)},e.prototype.walkManySep=function(e,t,n){var r=a(e,t,n);this.walk(e,r)},e.prototype.walkOr=function(e,t,n){var i=this,a=t.concat(n);Object(r.forEach)(e.definition,(function(e){var t=new o.Flat({definition:[e]});i.walk(t,a)}))},e}();function a(e,t,n){return[new o.Option({definition:[new o.Terminal({terminalType:e.separator})].concat(e.definition)})].concat(t,n)}},function(e,t,n){var r,o,i;"undefined"!=typeof self&&self,o=[],void 0===(i="function"==typeof(r=function(){function e(){}e.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}},e.prototype.restoreState=function(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx},e.prototype.pattern=function(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");var t=this.disjunction();this.consumeChar("/");for(var n={type:"Flags",global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};this.isRegExpFlag();)switch(this.popChar()){case"g":s(n,"global");break;case"i":s(n,"ignoreCase");break;case"m":s(n,"multiLine");break;case"u":s(n,"unicode");break;case"y":s(n,"sticky")}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:n,value:t}},e.prototype.disjunction=function(){var e=[];for(e.push(this.alternative());"|"===this.peekChar();)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e}},e.prototype.alternative=function(){for(var e=[];this.isTerm();)e.push(this.term());return{type:"Alternative",value:e}},e.prototype.term=function(){return this.isAssertion()?this.assertion():this.atom()},e.prototype.assertion=function(){switch(this.popChar()){case"^":return{type:"StartAnchor"};case"$":return{type:"EndAnchor"};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary"};case"B":return{type:"NonWordBoundary"}}throw Error("Invalid Assertion Escape");case"(":var e;switch(this.consumeChar("?"),this.popChar()){case"=":e="Lookahead";break;case"!":e="NegativeLookahead"}u(e);var t=this.disjunction();return this.consumeChar(")"),{type:e,value:t}}!function(){throw Error("Internal Error - Should never get here!")}()},e.prototype.quantifier=function(e){var t;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":var n=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:n,atMost:n};break;case",":t=this.isDigit()?{atLeast:n,atMost:this.integerIncludingZero()}:{atLeast:n,atMost:1/0},this.consumeChar("}")}if(!0===e&&void 0===t)return;u(t)}if(!0!==e||void 0!==t)return u(t),"?"===this.peekChar(0)?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t},e.prototype.atom=function(){var e;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group()}return void 0===e&&this.isPatternCharacter()&&(e=this.patternCharacter()),u(e),this.isQuantifier()&&(e.quantifier=this.quantifier()),e},e.prototype.dotAll=function(){return this.consumeChar("."),{type:"Set",complement:!0,value:[i("\n"),i("\r"),i("\u2028"),i("\u2029")]}},e.prototype.atomEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},e.prototype.decimalEscapeAtom=function(){return{type:"GroupBackReference",value:this.positiveInteger()}},e.prototype.characterClassEscape=function(){var e,t=!1;switch(this.popChar()){case"d":e=l;break;case"D":e=l,t=!0;break;case"s":e=f;break;case"S":e=f,t=!0;break;case"w":e=c;break;case"W":e=c,t=!0}return u(e),{type:"Set",value:e,complement:t}},e.prototype.controlEscapeAtom=function(){var e;switch(this.popChar()){case"f":e=i("\f");break;case"n":e=i("\n");break;case"r":e=i("\r");break;case"t":e=i("\t");break;case"v":e=i("\v")}return u(e),{type:"Character",value:e}},e.prototype.controlLetterEscapeAtom=function(){this.consumeChar("c");var e=this.popChar();if(!1===/[a-zA-Z]/.test(e))throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}},e.prototype.nulCharacterAtom=function(){return this.consumeChar("0"),{type:"Character",value:i("\0")}},e.prototype.hexEscapeSequenceAtom=function(){return this.consumeChar("x"),this.parseHexDigits(2)},e.prototype.regExpUnicodeEscapeSequenceAtom=function(){return this.consumeChar("u"),this.parseHexDigits(4)},e.prototype.identityEscapeAtom=function(){return{type:"Character",value:i(this.popChar())}},e.prototype.classPatternCharacterAtom=function(){switch(this.peekChar()){case"\n":case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:return{type:"Character",value:i(this.popChar())}}},e.prototype.characterClass=function(){var e=[],t=!1;for(this.consumeChar("["),"^"===this.peekChar(0)&&(this.consumeChar("^"),t=!0);this.isClassAtom();){var n=this.classAtom();if("Character"===n.type&&this.isRangeDash()){this.consumeChar("-");var r=this.classAtom();if("Character"===r.type){if(r.value<n.value)throw Error("Range out of order in character class");e.push({from:n.value,to:r.value})}else a(n.value,e),e.push(i("-")),a(r.value,e)}else a(n.value,e)}return this.consumeChar("]"),{type:"Set",complement:t,value:e}},e.prototype.classAtom=function(){switch(this.peekChar()){case"]":case"\n":case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}},e.prototype.classEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:i("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},e.prototype.group=function(){var e=!0;switch(this.consumeChar("("),this.peekChar(0)){case"?":this.consumeChar("?"),this.consumeChar(":"),e=!1;break;default:this.groupIdx++}var t=this.disjunction();this.consumeChar(")");var n={type:"Group",capturing:e,value:t};return e&&(n.idx=this.groupIdx),n},e.prototype.positiveInteger=function(){var e=this.popChar();if(!1===o.test(e))throw Error("Expecting a positive integer");for(;r.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)},e.prototype.integerIncludingZero=function(){var e=this.popChar();if(!1===r.test(e))throw Error("Expecting an integer");for(;r.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)},e.prototype.patternCharacter=function(){var e=this.popChar();switch(e){case"\n":case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:i(e)}}},e.prototype.isRegExpFlag=function(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}},e.prototype.isRangeDash=function(){return"-"===this.peekChar()&&this.isClassAtom(1)},e.prototype.isDigit=function(){return r.test(this.peekChar(0))},e.prototype.isClassAtom=function(e){switch(void 0===e&&(e=0),this.peekChar(e)){case"]":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.isTerm=function(){return this.isAtom()||this.isAssertion()},e.prototype.isAtom=function(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}},e.prototype.isAssertion=function(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return"?"===this.peekChar(1)&&("="===this.peekChar(2)||"!"===this.peekChar(2));default:return!1}},e.prototype.isQuantifier=function(){var e=this.saveState();try{return void 0!==this.quantifier(!0)}catch(e){return!1}finally{this.restoreState(e)}},e.prototype.isPatternCharacter=function(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.parseHexDigits=function(e){for(var t="",r=0;r<e;r++){var o=this.popChar();if(!1===n.test(o))throw Error("Expecting a HexDecimal digits");t+=o}return{type:"Character",value:parseInt(t,16)}},e.prototype.peekChar=function(e){return void 0===e&&(e=0),this.input[this.idx+e]},e.prototype.popChar=function(){var e=this.peekChar(0);return this.consumeChar(),e},e.prototype.consumeChar=function(e){if(void 0!==e&&this.input[this.idx]!==e)throw Error("Expected: '"+e+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++};var t,n=/[0-9a-fA-F]/,r=/[0-9]/,o=/[1-9]/;function i(e){return e.charCodeAt(0)}function a(e,t){void 0!==e.length?e.forEach((function(e){t.push(e)})):t.push(e)}function s(e,t){if(!0===e[t])throw"duplicate flag "+t;e[t]=!0}function u(e){if(void 0===e)throw Error("Internal Error - Should never get here!")}var l=[];for(t=i("0");t<=i("9");t++)l.push(t);var c=[i("_")].concat(l);for(t=i("a");t<=i("z");t++)c.push(t);for(t=i("A");t<=i("Z");t++)c.push(t);var f=[i(" "),i("\f"),i("\n"),i("\r"),i("\t"),i("\v"),i("\t"),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i("\u2028"),i("\u2029"),i(" "),i(" "),i(" "),i("\ufeff")];function d(){}return d.prototype.visitChildren=function(e){for(var t in e){var n=e[t];e.hasOwnProperty(t)&&(void 0!==n.type?this.visit(n):Array.isArray(n)&&n.forEach((function(e){this.visit(e)}),this))}},d.prototype.visit=function(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e)}this.visitChildren(e)},d.prototype.visitPattern=function(e){},d.prototype.visitFlags=function(e){},d.prototype.visitDisjunction=function(e){},d.prototype.visitAlternative=function(e){},d.prototype.visitStartAnchor=function(e){},d.prototype.visitEndAnchor=function(e){},d.prototype.visitWordBoundary=function(e){},d.prototype.visitNonWordBoundary=function(e){},d.prototype.visitLookahead=function(e){},d.prototype.visitNegativeLookahead=function(e){},d.prototype.visitCharacter=function(e){},d.prototype.visitSet=function(e){},d.prototype.visitGroup=function(e){},d.prototype.visitGroupBackReference=function(e){},d.prototype.visitQuantifier=function(e){},{RegExpParser:e,BaseRegExpVisitor:d,VERSION:"0.4.0"}})?r.apply(t,o):r)||(e.exports=i)},function(e,t,n){"use strict";n.r(t),n.d(t,"getRegExpAst",(function(){return a})),n.d(t,"clearRegExpParserCache",(function(){return s}));var r=n(264),o={},i=new r.RegExpParser;function a(e){var t=e.toString();if(o.hasOwnProperty(t))return o[t];var n=i.pattern(t);return o[t]=n,n}function s(){o={}}},function(e,t,n){"use strict";n.r(t),n.d(t,"defaultLexerErrorProvider",(function(){return r}));var r={buildUnableToPopLexerModeMessage:function(e){return"Unable to pop Lexer Mode after encountering Token ->"+e.image+"<- The Mode Stack is empty"},buildUnexpectedCharactersMessage:function(e,t,n,r,o){return"unexpected character: ->"+e.charAt(t)+"<- at offset: "+t+", skipped "+n+" characters."}}},function(e,t,n){"use strict";n.r(t),n.d(t,"setNodeLocationOnlyOffset",(function(){return l})),n.d(t,"setNodeLocationFull",(function(){return c})),n.d(t,"addTerminalToCst",(function(){return f})),n.d(t,"addNoneTerminalToCst",(function(){return d})),n.d(t,"NamedDSLMethodsCollectorVisitor",(function(){return h})),n.d(t,"expandAllNestedRuleNames",(function(){return p}));var r,o=n(48),i=n(184),a=n(56),s=n(135),u=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function l(e,t){!0===isNaN(e.startOffset)?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset==!0&&(e.endOffset=t.endOffset)}function c(e,t){!0===isNaN(e.startOffset)?(e.startOffset=t.startOffset,e.startColumn=t.startColumn,e.startLine=t.startLine,e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine):e.endOffset<t.endOffset==!0&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}function f(e,t,n){void 0===e.children[n]?e.children[n]=[t]:e.children[n].push(t)}function d(e,t,n){void 0===e.children[t]?e.children[t]=[n]:e.children[t].push(n)}var h=function(e){function t(t){var n=e.call(this)||this;return n.result=[],n.ruleIdx=t,n}return u(t,e),t.prototype.collectNamedDSLMethod=function(e,t,n){if(!Object(o.isUndefined)(e.name)){var r=void 0;if(e instanceof a.Option||e instanceof a.Repetition||e instanceof a.RepetitionMandatory||e instanceof a.Alternation)r=new t({definition:e.definition,idx:e.idx});else{if(!(e instanceof a.RepetitionMandatoryWithSeparator||e instanceof a.RepetitionWithSeparator))throw Error("non exhaustive match");r=new t({definition:e.definition,idx:e.idx,separator:e.separator})}var s=[r],u=Object(i.getKeyForAutomaticLookahead)(this.ruleIdx,n,e.idx);this.result.push({def:s,key:u,name:e.name,orgProd:e})}},t.prototype.visitOption=function(e){this.collectNamedDSLMethod(e,a.Option,i.OPTION_IDX)},t.prototype.visitRepetition=function(e){this.collectNamedDSLMethod(e,a.Repetition,i.MANY_IDX)},t.prototype.visitRepetitionMandatory=function(e){this.collectNamedDSLMethod(e,a.RepetitionMandatory,i.AT_LEAST_ONE_IDX)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.collectNamedDSLMethod(e,a.RepetitionMandatoryWithSeparator,i.AT_LEAST_ONE_SEP_IDX)},t.prototype.visitRepetitionWithSeparator=function(e){this.collectNamedDSLMethod(e,a.RepetitionWithSeparator,i.MANY_SEP_IDX)},t.prototype.visitAlternation=function(e){var t=this;this.collectNamedDSLMethod(e,a.Alternation,i.OR_IDX);var n=e.definition.length>1;Object(o.forEach)(e.definition,(function(r,s){if(!Object(o.isUndefined)(r.name)){var u=r.definition;u=n?[new a.Option({definition:r.definition})]:r.definition;var l=Object(i.getKeyForAltIndex)(t.ruleIdx,i.OR_IDX,e.idx,s);t.result.push({def:u,key:l,name:r.name,orgProd:r})}}))},t}(s.GAstVisitor);function p(e,t){var n={allRuleNames:[]};return Object(o.forEach)(e,(function(e){var r=t[e.name];n.allRuleNames.push(e.name);var i=new h(r);e.accept(i),Object(o.forEach)(i.result,(function(t){t.def,t.key;var r=t.name;n.allRuleNames.push(e.name+r)}))})),n}},function(e,t,n){"use strict";n.r(t),n.d(t,"generateParserFactory",(function(){return o})),n.d(t,"generateParserModule",(function(){return i}));var r=n(685);function o(e){var t=Object(r.genWrapperFunction)({name:e.name,rules:e.rules}),o=new Function("tokenVocabulary","config","chevrotain",t);return function(t){return o(e.tokenVocabulary,t,n(220))}}function i(e){return Object(r.genUmdModule)({name:e.name,rules:e.rules})}},function(e,t,n){"use strict";n.r(t),n.d(t,"FormulaParser",(function(){return R})),n.d(t,"FormulaLexer",(function(){return O}));n(13),n(12),n(61),n(18),n(63),n(52),n(37),n(73),n(67),n(27),n(0),n(7),n(365),n(19),n(8),n(9),n(10),n(3),n(2),n(4),n(25),n(22);var r=n(220),o=n(24),i=n(45),a=n(98),s=n(100),u=n(217),l=n(181),c=n(219),f=n(218);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;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,t)||function(e,t){if(!e)return;if("string"==typeof e)return p(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 p(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 p(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 y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(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 g(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function v(){return(v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=E(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function E(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=w(e)););return e}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=w(e);if(t){var o=w(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return C(this,n)}}function C(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var R=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(n,e);var t=T(n);function n(e,i){var u;return y(this,n),(u=t.call(this,e.allTokens,{outputCst:!1,maxLookahead:7})).booleanExpressionOrEmpty=u.RULE("booleanExpressionOrEmpty",(function(){return u.OR([{ALT:function(){return u.SUBRULE(u.booleanExpression)}},{ALT:Object(r.EMPTY_ALT)(Object(s.buildEmptyArgAst)())}])})),u.procedureExpression=u.RULE("procedureExpression",(function(){var e,t=u.CONSUME(l.ProcedureName),n=t.image.toUpperCase().slice(0,-1),r=null!==(e=u.lexerConfig.functionMapping[n])&&void 0!==e?e:n,o=[],i=u.SUBRULE(u.booleanExpressionOrEmpty);u.MANY((function(){var e,t=u.CONSUME(u.lexerConfig.ArgSeparator);i.type===s.AstNodeType.EMPTY&&(i.leadingWhitespace=null===(e=t.leadingWhitespace)||void 0===e?void 0:e.image),o.push(i),i=u.SUBRULE2(u.booleanExpressionOrEmpty)})),o.push(i),1===o.length&&o[0].type===s.AstNodeType.EMPTY&&(o.length=0);var a=u.CONSUME(l.RParen);return Object(s.buildProcedureAst)(r,o,t.leadingWhitespace,a.leadingWhitespace)})),u.namedExpressionExpression=u.RULE("namedExpressionExpression",(function(){var e=u.CONSUME(l.NamedExpression);return Object(s.buildNamedExpressionAst)(e.image,e.leadingWhitespace)})),u.offsetProcedureExpression=u.RULE("offsetProcedureExpression",(function(){var e=[];return u.CONSUME(u.lexerConfig.OffsetProcedureName),u.CONSUME(l.LParen),u.MANY_SEP({SEP:u.lexerConfig.ArgSeparator,DEF:function(){e.push(u.SUBRULE(u.booleanExpression))}}),u.CONSUME(l.RParen),u.handleOffsetHeuristic(e)})),u.columnRangeExpression=u.RULE("columnRangeExpression",(function(){var e=u.CONSUME(l.ColumnRange),t=h(e.image.split(":"),2),r=t[0],i=t[1],c=u.ACTION((function(){return Object(a.columnAddressFromString)(u.sheetMapping,r,u.formulaAddress)})),f=u.ACTION((function(){return Object(a.columnAddressFromString)(u.sheetMapping,i,u.formulaAddress)}));if(void 0===c||void 0===f)return Object(s.buildCellErrorAst)(new o.CellError(o.ErrorType.REF));if(c.exceedsSheetSizeLimits(u.lexerConfig.maxColumns)||f.exceedsSheetSizeLimits(u.lexerConfig.maxColumns))return Object(s.buildErrorWithRawInputAst)(e.image,new o.CellError(o.ErrorType.NAME),e.leadingWhitespace);if(void 0===c.sheet&&void 0!==f.sheet)return u.parsingError(s.ParsingErrorType.ParserError,"Malformed range expression");var d=n.fixSheetIdsForRangeEnds(c,f),p=d.firstEnd,y=d.secondEnd,m=d.sheetRefType,g=u.orderColumnRangeEnds(p,y),v=g.start,E=g.end;return Object(s.buildColumnRangeAst)(v,E,m,e.leadingWhitespace)})),u.rowRangeExpression=u.RULE("rowRangeExpression",(function(){var e=u.CONSUME(l.RowRange),t=h(e.image.split(":"),2),r=t[0],i=t[1],c=u.ACTION((function(){return Object(a.rowAddressFromString)(u.sheetMapping,r,u.formulaAddress)})),f=u.ACTION((function(){return Object(a.rowAddressFromString)(u.sheetMapping,i,u.formulaAddress)}));if(void 0===c||void 0===f)return Object(s.buildCellErrorAst)(new o.CellError(o.ErrorType.REF));if(c.exceedsSheetSizeLimits(u.lexerConfig.maxRows)||f.exceedsSheetSizeLimits(u.lexerConfig.maxRows))return Object(s.buildErrorWithRawInputAst)(e.image,new o.CellError(o.ErrorType.NAME),e.leadingWhitespace);if(void 0===c.sheet&&void 0!==f.sheet)return u.parsingError(s.ParsingErrorType.ParserError,"Malformed range expression");var d=n.fixSheetIdsForRangeEnds(c,f),p=d.firstEnd,y=d.secondEnd,m=d.sheetRefType,g=u.orderRowRangeEnds(p,y),v=g.start,E=g.end;return Object(s.buildRowRangeAst)(v,E,m,e.leadingWhitespace)})),u.cellReference=u.RULE("cellReference",(function(){var e=u.CONSUME(l.CellReference),t=u.ACTION((function(){return Object(a.cellAddressFromString)(u.sheetMapping,e.image,u.formulaAddress)}));return void 0===t?Object(s.buildErrorWithRawInputAst)(e.image,new o.CellError(o.ErrorType.REF),e.leadingWhitespace):t.exceedsSheetSizeLimits(u.lexerConfig.maxColumns,u.lexerConfig.maxRows)?Object(s.buildErrorWithRawInputAst)(e.image,new o.CellError(o.ErrorType.NAME),e.leadingWhitespace):Object(s.buildCellReferenceAst)(t,e.leadingWhitespace)})),u.endRangeReference=u.RULE("endRangeReference",(function(e){var t,n=u.CONSUME(l.CellReference),r=u.ACTION((function(){return Object(a.cellAddressFromString)(u.sheetMapping,e.image,u.formulaAddress)})),i=u.ACTION((function(){return Object(a.cellAddressFromString)(u.sheetMapping,n.image,u.formulaAddress)}));return void 0===r||void 0===i?u.ACTION((function(){return Object(s.buildErrorWithRawInputAst)("".concat(e.image,":").concat(n.image),new o.CellError(o.ErrorType.REF),e.leadingWhitespace)})):r.exceedsSheetSizeLimits(u.lexerConfig.maxColumns,u.lexerConfig.maxRows)||i.exceedsSheetSizeLimits(u.lexerConfig.maxColumns,u.lexerConfig.maxRows)?u.ACTION((function(){return Object(s.buildErrorWithRawInputAst)("".concat(e.image,":").concat(n.image),new o.CellError(o.ErrorType.NAME),e.leadingWhitespace)})):u.buildCellRange(r,i,null===(t=e.leadingWhitespace)||void 0===t?void 0:t.image)})),u.endOfRangeExpression=u.RULE("endOfRangeExpression",(function(e){return u.OR([{ALT:function(){return u.SUBRULE(u.endRangeReference,{ARGS:[e]})}},{ALT:function(){var t,n=u.SUBRULE(u.offsetProcedureExpression),r=u.ACTION((function(){return Object(a.cellAddressFromString)(u.sheetMapping,e.image,u.formulaAddress)}));return void 0===r?Object(s.buildCellErrorAst)(new o.CellError(o.ErrorType.REF)):n.type===s.AstNodeType.CELL_REFERENCE?u.buildCellRange(r,n.reference,null===(t=e.leadingWhitespace)||void 0===t?void 0:t.image):u.parsingError(s.ParsingErrorType.RangeOffsetNotAllowed,"Range offset not allowed here")}}])})),u.cellRangeExpression=u.RULE("cellRangeExpression",(function(){var e=u.CONSUME(l.CellReference);return u.CONSUME2(l.RangeSeparator),u.SUBRULE(u.endOfRangeExpression,{ARGS:[e]})})),u.endRangeWithOffsetStartReference=u.RULE("endRangeWithOffsetStartReference",(function(e){var t=u.CONSUME(l.CellReference),n=u.ACTION((function(){return Object(a.cellAddressFromString)(u.sheetMapping,t.image,u.formulaAddress)}));return void 0===n?u.ACTION((function(){return Object(s.buildCellErrorAst)(new o.CellError(o.ErrorType.REF))})):u.buildCellRange(e.reference,n,e.leadingWhitespace)})),u.endOfRangeWithOffsetStartExpression=u.RULE("endOfRangeWithOffsetStartExpression",(function(e){return u.OR([{ALT:function(){return u.SUBRULE(u.endRangeWithOffsetStartReference,{ARGS:[e]})}},{ALT:function(){var t=u.SUBRULE(u.offsetProcedureExpression);return t.type===s.AstNodeType.CELL_REFERENCE?u.buildCellRange(e.reference,t.reference,e.leadingWhitespace):u.parsingError(s.ParsingErrorType.RangeOffsetNotAllowed,"Range offset not allowed here")}}])})),u.offsetExpression=u.RULE("offsetExpression",(function(){var e,t=u.SUBRULE(u.offsetProcedureExpression);return u.OPTION((function(){u.CONSUME(l.RangeSeparator),e=t.type===s.AstNodeType.CELL_RANGE?u.parsingError(s.ParsingErrorType.RangeOffsetNotAllowed,"Range offset not allowed here"):u.SUBRULE(u.endOfRangeWithOffsetStartExpression,{ARGS:[t]})})),void 0!==e?e:t})),u.insideArrayExpression=u.RULE("insideArrayExpression",(function(){var e=[[]];return e[e.length-1].push(u.SUBRULE(u.booleanExpression)),u.MANY((function(){u.OR([{ALT:function(){u.CONSUME(u.lexerConfig.ArrayColSeparator),e[e.length-1].push(u.SUBRULE2(u.booleanExpression))}},{ALT:function(){u.CONSUME(u.lexerConfig.ArrayRowSeparator),e.push([]),e[e.length-1].push(u.SUBRULE3(u.booleanExpression))}}])})),Object(s.buildArrayAst)(e)})),u.parenthesisExpression=u.RULE("parenthesisExpression",(function(){var e=u.CONSUME(l.LParen),t=u.SUBRULE(u.booleanExpression),n=u.CONSUME(l.RParen);return Object(s.buildParenthesisAst)(t,e.leadingWhitespace,n.leadingWhitespace)})),u.arrayExpression=u.RULE("arrayExpression",(function(){return u.OR([{ALT:function(){var e=u.CONSUME(l.ArrayLParen),t=u.SUBRULE(u.insideArrayExpression),n=u.CONSUME(l.ArrayRParen);return Object(s.buildArrayAst)(t.args,e.leadingWhitespace,n.leadingWhitespace)}},{ALT:function(){return u.SUBRULE(u.parenthesisExpression)}}])})),u.numericStringToNumber=function(e){var t=e.replace(u.lexerConfig.decimalSeparator,".");return Number(t)},u.positiveAtomicExpression=u.RULE("positiveAtomicExpression",(function(){var e;return u.OR(null!==(e=u.atomicExpCache)&&void 0!==e?e:u.atomicExpCache=[{ALT:function(){return u.SUBRULE(u.arrayExpression)}},{ALT:function(){return u.SUBRULE(u.cellRangeExpression)}},{ALT:function(){return u.SUBRULE(u.columnRangeExpression)}},{ALT:function(){return u.SUBRULE(u.rowRangeExpression)}},{ALT:function(){return u.SUBRULE(u.offsetExpression)}},{ALT:function(){return u.SUBRULE(u.cellReference)}},{ALT:function(){return u.SUBRULE(u.procedureExpression)}},{ALT:function(){return u.SUBRULE(u.namedExpressionExpression)}},{ALT:function(){var e=u.CONSUME(u.lexerConfig.NumberLiteral);return Object(s.buildNumberAst)(u.numericStringToNumber(e.image),e.leadingWhitespace)}},{ALT:function(){var e=u.CONSUME(l.StringLiteral);return Object(s.buildStringAst)(e)}},{ALT:function(){var e=u.CONSUME(l.ErrorLiteral),t=e.image.toUpperCase(),n=u.lexerConfig.errorMapping[t];return n?Object(s.buildCellErrorAst)(new o.CellError(n),e.leadingWhitespace):u.parsingError(s.ParsingErrorType.ParserError,"Unknown error literal")}}])})),u.rightUnaryOpAtomicExpression=u.RULE("rightUnaryOpAtomicExpression",(function(){var e=u.SUBRULE(u.positiveAtomicExpression),t=u.OPTION((function(){return u.CONSUME(l.PercentOp)}));return t?Object(s.buildPercentOpAst)(e,t.leadingWhitespace):e})),u.atomicExpression=u.RULE("atomicExpression",(function(){return u.OR([{ALT:function(){var e=u.CONSUME(l.AdditionOp),t=u.SUBRULE(u.atomicExpression);return Object(r.tokenMatcher)(e,l.PlusOp)?Object(s.buildPlusUnaryOpAst)(t,e.leadingWhitespace):Object(r.tokenMatcher)(e,l.MinusOp)?Object(s.buildMinusUnaryOpAst)(t,e.leadingWhitespace):(u.customParsingError=Object(s.parsingError)(s.ParsingErrorType.ParserError,"Mismatched token type"),u.customParsingError)}},{ALT:function(){return u.SUBRULE2(u.rightUnaryOpAtomicExpression)}}])})),u.powerExpression=u.RULE("powerExpression",(function(){var e=u.SUBRULE(u.atomicExpression);return u.MANY((function(){var t=u.CONSUME(l.PowerOp),n=u.SUBRULE2(u.atomicExpression);Object(r.tokenMatcher)(t,l.PowerOp)?e=Object(s.buildPowerOpAst)(e,n,t.leadingWhitespace):u.ACTION((function(){throw Error("Operator not supported")}))})),e})),u.multiplicationExpression=u.RULE("multiplicationExpression",(function(){var e=u.SUBRULE(u.powerExpression);return u.MANY((function(){var t=u.CONSUME(l.MultiplicationOp),n=u.SUBRULE2(u.powerExpression);Object(r.tokenMatcher)(t,l.TimesOp)?e=Object(s.buildTimesOpAst)(e,n,t.leadingWhitespace):Object(r.tokenMatcher)(t,l.DivOp)?e=Object(s.buildDivOpAst)(e,n,t.leadingWhitespace):u.ACTION((function(){throw Error("Operator not supported")}))})),e})),u.additionExpression=u.RULE("additionExpression",(function(){var e=u.SUBRULE(u.multiplicationExpression);return u.MANY((function(){var t=u.CONSUME(l.AdditionOp),n=u.SUBRULE2(u.multiplicationExpression);Object(r.tokenMatcher)(t,l.PlusOp)?e=Object(s.buildPlusOpAst)(e,n,t.leadingWhitespace):Object(r.tokenMatcher)(t,l.MinusOp)?e=Object(s.buildMinusOpAst)(e,n,t.leadingWhitespace):u.ACTION((function(){throw Error("Operator not supported")}))})),e})),u.concatenateExpression=u.RULE("concatenateExpression",(function(){var e=u.SUBRULE(u.additionExpression);return u.MANY((function(){var t=u.CONSUME(l.ConcatenateOp),n=u.SUBRULE2(u.additionExpression);e=Object(s.buildConcatenateOpAst)(e,n,t.leadingWhitespace)})),e})),u.booleanExpression=u.RULE("booleanExpression",(function(){var e=u.SUBRULE(u.concatenateExpression);return u.MANY((function(){var t=u.CONSUME(l.BooleanOp),n=u.SUBRULE2(u.concatenateExpression);Object(r.tokenMatcher)(t,l.EqualsOp)?e=Object(s.buildEqualsOpAst)(e,n,t.leadingWhitespace):Object(r.tokenMatcher)(t,l.NotEqualOp)?e=Object(s.buildNotEqualOpAst)(e,n,t.leadingWhitespace):Object(r.tokenMatcher)(t,l.GreaterThanOp)?e=Object(s.buildGreaterThanOpAst)(e,n,t.leadingWhitespace):Object(r.tokenMatcher)(t,l.LessThanOp)?e=Object(s.buildLessThanOpAst)(e,n,t.leadingWhitespace):Object(r.tokenMatcher)(t,l.GreaterThanOrEqualOp)?e=Object(s.buildGreaterThanOrEqualOpAst)(e,n,t.leadingWhitespace):Object(r.tokenMatcher)(t,l.LessThanOrEqualOp)?e=Object(s.buildLessThanOrEqualOpAst)(e,n,t.leadingWhitespace):u.ACTION((function(){throw Error("Operator not supported")}))})),e})),u.formula=u.RULE("formula",(function(){return u.CONSUME(l.EqualsOp),u.SUBRULE(u.booleanExpression)})),u.lexerConfig=e,u.sheetMapping=i,u.formulaAddress=Object(o.simpleCellAddress)(0,0,0),u.performSelfAnalysis(),u}return g(n,[{key:"parseFromTokens",value:function(e,t){this.input=e;var n=this.formulaWithContext(t),r=[];return this.customParsingError&&r.push(this.customParsingError),(r=r.concat(this.errors.map((function(e){return{type:s.ParsingErrorType.ParserError,message:e.message}})))).length>0&&(n=Object(s.buildParsingErrorAst)()),{ast:n,errors:r}}},{key:"reset",value:function(){v(w(n.prototype),"reset",this).call(this),this.customParsingError=void 0}},{key:"formulaWithContext",value:function(e){return this.formulaAddress=e,this.formula()}},{key:"buildCellRange",value:function(e,t,r){if(void 0===e.sheet&&void 0!==t.sheet)return this.parsingError(s.ParsingErrorType.ParserError,"Malformed range expression");var o=n.fixSheetIdsForRangeEnds(e,t),i=o.firstEnd,a=o.secondEnd,u=o.sheetRefType,l=this.orderCellRangeEnds(i,a),c=l.start,f=l.end;return Object(s.buildCellRangeAst)(c,f,u,r)}},{key:"orderCellRangeEnds",value:function(e,t){var r=[e,t],o=h(r.map((function(e){return e.toColumnAddress()})).sort(f.ColumnAddress.compareByAbsoluteAddress(this.formulaAddress)),2),i=o[0],a=o[1],s=h(r.map((function(e){return e.toRowAddress()})).sort(c.RowAddress.compareByAbsoluteAddress(this.formulaAddress)),2),l=s[0],d=s[1],p=h(r.map((function(e){return e.sheet})).sort(n.compareSheetIds.bind(this)),2),y=p[0],m=p[1];return{start:u.CellAddress.fromColAndRow(i,l,y),end:u.CellAddress.fromColAndRow(a,d,m)}}},{key:"orderColumnRangeEnds",value:function(e,t){var r=[e,t],o=h(r.sort(f.ColumnAddress.compareByAbsoluteAddress(this.formulaAddress)),2),i=o[0],a=o[1],s=h(r.map((function(e){return e.sheet})).sort(n.compareSheetIds.bind(this)),2),u=s[0],l=s[1];return{start:new f.ColumnAddress(i.type,i.col,u),end:new f.ColumnAddress(a.type,a.col,l)}}},{key:"orderRowRangeEnds",value:function(e,t){var r=[e,t],o=h(r.sort(c.RowAddress.compareByAbsoluteAddress(this.formulaAddress)),2),i=o[0],a=o[1],s=h(r.map((function(e){return e.sheet})).sort(n.compareSheetIds.bind(this)),2),u=s[0],l=s[1];return{start:new c.RowAddress(i.type,i.row,u),end:new c.RowAddress(a.type,a.row,l)}}},{key:"handleOffsetHeuristic",value:function(e){var t=e[0];if(t.type!==s.AstNodeType.CELL_REFERENCE)return this.parsingError(s.ParsingErrorType.StaticOffsetError,"First argument to OFFSET is not a reference");var n,r=e[1];if(r.type===s.AstNodeType.NUMBER&&Number.isInteger(r.value))n=r.value;else if(r.type===s.AstNodeType.PLUS_UNARY_OP&&r.value.type===s.AstNodeType.NUMBER&&Number.isInteger(r.value.value))n=r.value.value;else{if(r.type!==s.AstNodeType.MINUS_UNARY_OP||r.value.type!==s.AstNodeType.NUMBER||!Number.isInteger(r.value.value))return this.parsingError(s.ParsingErrorType.StaticOffsetError,"Second argument to OFFSET is not a static number");n=-r.value.value}var a,l=e[2];if(l.type===s.AstNodeType.NUMBER&&Number.isInteger(l.value))a=l.value;else if(l.type===s.AstNodeType.PLUS_UNARY_OP&&l.value.type===s.AstNodeType.NUMBER&&Number.isInteger(l.value.value))a=l.value.value;else{if(l.type!==s.AstNodeType.MINUS_UNARY_OP||l.value.type!==s.AstNodeType.NUMBER||!Number.isInteger(l.value.value))return this.parsingError(s.ParsingErrorType.StaticOffsetError,"Third argument to OFFSET is not a static number");a=-l.value.value}var c,f=e[3];if(void 0===f)c=1;else{if(f.type!==s.AstNodeType.NUMBER)return this.parsingError(s.ParsingErrorType.StaticOffsetError,"Fourth argument to OFFSET is not a static number");if((c=f.value)<1)return this.parsingError(s.ParsingErrorType.StaticOffsetError,"Fourth argument to OFFSET is too small number");if(!Number.isInteger(c))return this.parsingError(s.ParsingErrorType.StaticOffsetError,"Fourth argument to OFFSET is not integer")}var d,h=e[4];if(void 0===h)d=1;else{if(h.type!==s.AstNodeType.NUMBER)return this.parsingError(s.ParsingErrorType.StaticOffsetError,"Fifth argument to OFFSET is not a static number");if((d=h.value)<1)return this.parsingError(s.ParsingErrorType.StaticOffsetError,"Fifth argument to OFFSET is too small number");if(!Number.isInteger(d))return this.parsingError(s.ParsingErrorType.StaticOffsetError,"Fifth argument to OFFSET is not integer")}var p=new u.CellAddress(t.reference.col+a,t.reference.row+n,t.reference.type),y=p.col,m=p.row;if(t.reference.type!==u.CellReferenceType.CELL_REFERENCE_RELATIVE&&t.reference.type!==u.CellReferenceType.CELL_REFERENCE_ABSOLUTE_COL||(m+=this.formulaAddress.row),t.reference.type!==u.CellReferenceType.CELL_REFERENCE_RELATIVE&&t.reference.type!==u.CellReferenceType.CELL_REFERENCE_ABSOLUTE_ROW||(y+=this.formulaAddress.col),y<0||m<0)return Object(s.buildCellErrorAst)(new o.CellError(o.ErrorType.REF,i.ErrorMessage.OutOfSheet));if(1===d&&1===c)return Object(s.buildCellReferenceAst)(p);var g=new u.CellAddress(p.col+d-1,p.row+c-1,p.type);return Object(s.buildCellRangeAst)(p,g,s.RangeSheetReferenceType.RELATIVE)}},{key:"parsingError",value:function(e,t){return this.customParsingError=Object(s.parsingError)(e,t),Object(s.buildParsingErrorAst)()}}],[{key:"fixSheetIdsForRangeEnds",value:function(e,t){var r=n.rangeSheetReferenceType(e.sheet,t.sheet);return{firstEnd:e,secondEnd:void 0!==e.sheet&&void 0===t.sheet?t.withSheet(e.sheet):t,sheetRefType:r}}},{key:"compareSheetIds",value:function(e,t){return(e=null!=e?e:1/0)-(t=null!=t?t:1/0)}},{key:"rangeSheetReferenceType",value:function(e,t){return void 0===e?s.RangeSheetReferenceType.RELATIVE:void 0===t?s.RangeSheetReferenceType.START_ABSOLUTE:s.RangeSheetReferenceType.BOTH_ABSOLUTE}}]),n}(r.EmbeddedActionsParser),O=function(){function e(t){y(this,e),this.lexerConfig=t,this.lexer=new r.Lexer(t.allTokens,{ensureOptimizations:!0})}return g(e,[{key:"tokenizeFormula",value:function(e){var t=this.lexer.tokenize(e),n=t.tokens;return n=this.trimTrailingWhitespaces(n),n=this.skipWhitespacesInsideRanges(n),n=this.skipWhitespacesBeforeArgSeparators(n),t.tokens=n,t}},{key:"skipWhitespacesInsideRanges",value:function(t){var n=this;return e.filterTokensByNeighbors(t,(function(e,t,o){return(Object(r.tokenMatcher)(e,l.CellReference)||Object(r.tokenMatcher)(e,l.RangeSeparator))&&Object(r.tokenMatcher)(t,n.lexerConfig.WhiteSpace)&&(Object(r.tokenMatcher)(o,l.CellReference)||Object(r.tokenMatcher)(o,l.RangeSeparator))}))}},{key:"skipWhitespacesBeforeArgSeparators",value:function(t){var n=this;return e.filterTokensByNeighbors(t,(function(e,t,o){return!Object(r.tokenMatcher)(e,n.lexerConfig.ArgSeparator)&&Object(r.tokenMatcher)(t,n.lexerConfig.WhiteSpace)&&Object(r.tokenMatcher)(o,n.lexerConfig.ArgSeparator)}))}},{key:"trimTrailingWhitespaces",value:function(e){return e.length>0&&Object(r.tokenMatcher)(e[e.length-1],this.lexerConfig.WhiteSpace)&&e.pop(),e}}],[{key:"filterTokensByNeighbors",value:function(e,t){if(e.length<3)return e;for(var n=0,r=[e[n++]];n<e.length-1;)t(e[n-1],e[n],e[n+1])||r.push(e[n]),++n;return r.push(e[n]),r}}]),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"Unparser",(function(){return l})),n.d(t,"formatNumber",(function(){return c}));n(75),n(37),n(18),n(0),n(66),n(12),n(63);var r=n(24),o=n(238),i=n(98),a=n(100),s=n(364);function u(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)}}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
var l=function(){function e(t,n,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=t,this.lexerConfig=n,this.sheetMappingFn=r,this.namedExpressions=o}var t,n,l;return t=e,(n=[{key:"unparse",value:function(e,t){return"="+this.unparseAst(e,t)}},{key:"unparseAst",value:function(e,t){var n,o,i=this;switch(e.type){case a.AstNodeType.EMPTY:return Object(a.imageWithWhitespace)("",e.leadingWhitespace);case a.AstNodeType.NUMBER:return Object(a.imageWithWhitespace)(c(e.value,this.config.decimalSeparator),e.leadingWhitespace);case a.AstNodeType.STRING:return Object(a.imageWithWhitespace)('"'+e.value+'"',e.leadingWhitespace);case a.AstNodeType.FUNCTION_CALL:var u=e.args.map((function(e){return void 0!==e?i.unparseAst(e,t):""})).join(this.config.functionArgSeparator),l=(this.config.translationPackage.isFunctionTranslated(e.procedureName)?this.config.translationPackage.getFunctionTranslation(e.procedureName):e.procedureName)+"("+u+Object(a.imageWithWhitespace)(")",e.internalWhitespace);return Object(a.imageWithWhitespace)(l,e.leadingWhitespace);case a.AstNodeType.NAMED_EXPRESSION:var f=null===(n=this.namedExpressions.nearestNamedExpression(e.expressionName,t.sheet))||void 0===n?void 0:n.displayName;return Object(a.imageWithWhitespace)(f||e.expressionName,e.leadingWhitespace);case a.AstNodeType.CELL_REFERENCE:var d;return d=void 0!==e.reference.sheet?this.unparseSheetName(e.reference.sheet)+"!":"",d+=null!==(o=e.reference.unparse(t))&&void 0!==o?o:this.config.translationPackage.getErrorTranslation(r.ErrorType.REF),Object(a.imageWithWhitespace)(d,e.leadingWhitespace);case a.AstNodeType.COLUMN_RANGE:case a.AstNodeType.ROW_RANGE:case a.AstNodeType.CELL_RANGE:return Object(a.imageWithWhitespace)(this.formatRange(e,t),e.leadingWhitespace);case a.AstNodeType.PLUS_UNARY_OP:var h=this.unparseAst(e.value,t);return Object(a.imageWithWhitespace)("+",e.leadingWhitespace)+h;case a.AstNodeType.MINUS_UNARY_OP:var p=this.unparseAst(e.value,t);return Object(a.imageWithWhitespace)("-",e.leadingWhitespace)+p;case a.AstNodeType.PERCENT_OP:return this.unparseAst(e.value,t)+Object(a.imageWithWhitespace)("%",e.leadingWhitespace);case a.AstNodeType.ERROR:var y=this.config.translationPackage.getErrorTranslation(e.error?e.error.type:r.ErrorType.ERROR);return Object(a.imageWithWhitespace)(y,e.leadingWhitespace);case a.AstNodeType.ERROR_WITH_RAW_INPUT:return Object(a.imageWithWhitespace)(e.rawInput,e.leadingWhitespace);case a.AstNodeType.PARENTHESIS:var m="("+this.unparseAst(e.expression,t)+Object(a.imageWithWhitespace)(")",e.internalWhitespace);return Object(a.imageWithWhitespace)(m,e.leadingWhitespace);case a.AstNodeType.ARRAY:var g="{"+e.args.map((function(e){return e.map((function(e){return i.unparseAst(e,t)})).join(i.config.arrayColumnSeparator)})).join(this.config.arrayRowSeparator)+Object(a.imageWithWhitespace)("}",e.internalWhitespace);return Object(a.imageWithWhitespace)(g,e.leadingWhitespace);default:var v=this.unparseAst(e.left,t),E=this.unparseAst(e.right,t);return v+Object(a.imageWithWhitespace)(s.binaryOpTokenMap[e.type],e.leadingWhitespace)+E}}},{key:"unparseSheetName",value:function(e){var t=Object(i.sheetIndexToString)(e,this.sheetMappingFn);if(void 0===t)throw new o.NoSheetWithIdError(e);return t}},{key:"formatRange",value:function(e,t){var n="",o="";void 0!==e.start.sheet&&e.sheetReferenceType!==a.RangeSheetReferenceType.RELATIVE&&(n=this.unparseSheetName(e.start.sheet)+"!"),void 0!==e.end.sheet&&e.sheetReferenceType===a.RangeSheetReferenceType.BOTH_ABSOLUTE&&(o=this.unparseSheetName(e.end.sheet)+"!");var i=e.start.unparse(t),s=e.end.unparse(t);return void 0===i||void 0===s?this.config.translationPackage.getErrorTranslation(r.ErrorType.REF):"".concat(n).concat(i,":").concat(o).concat(s)}}])&&u(t.prototype,n),l&&u(t,l),Object.defineProperty(t,"prototype",{writable:!1}),e}();function c(e,t){return e.toString().replace(".",t)}},function(e,t,n){"use strict";n.r(t),n.d(t,"ContentChanges",(function(){return u}));n(3),n(33),n(0),n(2),n(4),n(26),n(18),n(22),n(13),n(25),n(12),n(8),n(9),n(10);var r=n(24),o=n(78);function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return a(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 a(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw i}}}}function a(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 s(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)}}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.changes=new Map}var t,n,a;return t=e,a=[{key:"empty",value:function(){return new e}}],(n=[{key:"addAll",value:function(e){var t,n=i(e.changes.values());try{for(n.s();!(t=n.n()).done;){var r=t.value;this.add(r.address,r)}}catch(e){n.e(e)}finally{n.f()}return this}},{key:"addChange",value:function(e,t,n){this.addInterpreterValue(e,t,n)}},{key:"exportChanges",value:function(e){var t=[];return this.changes.forEach((function(n){var r=e.exportChange(n);Array.isArray(r)?t=t.concat(r):t.push(r)})),t}},{key:"getChanges",value:function(){return Array.from(this.changes.values())}},{key:"isEmpty",value:function(){return 0===this.changes.size}},{key:"add",value:function(e,t){var n=t.value;if(n instanceof o.SimpleRangeValue){var a,s=i(n.effectiveAddressesFromData(e));try{for(s.s();!(a=s.n()).done;){var u=a.value;this.changes.delete("".concat(u.sheet,",").concat(u.col,",").concat(u.row))}}catch(e){s.e(e)}finally{s.f()}}this.changes.set(Object(r.addressKey)(e),t)}},{key:"addInterpreterValue",value:function(e,t,n){this.add(t,{address:t,value:e,oldValue:n})}}])&&s(t.prototype,n),a&&s(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"Statistics",(function(){return i}));n(3),n(33),n(0),n(2),n(4);var r=n(273);function o(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)}}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.stats=new Map([[r.StatType.CRITERION_FUNCTION_FULL_CACHE_USED,0],[r.StatType.CRITERION_FUNCTION_PARTIAL_CACHE_USED,0]]),this.startTimes=new Map}var t,n,i;return t=e,(n=[{key:"incrementCriterionFunctionFullCacheUsed",value:function(){var e,t=(null!==(e=this.stats.get(r.StatType.CRITERION_FUNCTION_FULL_CACHE_USED))&&void 0!==e?e:0)+1;this.stats.set(r.StatType.CRITERION_FUNCTION_FULL_CACHE_USED,t)}},{key:"incrementCriterionFunctionPartialCacheUsed",value:function(){var e,t=(null!==(e=this.stats.get(r.StatType.CRITERION_FUNCTION_PARTIAL_CACHE_USED))&&void 0!==e?e:0)+1;this.stats.set(r.StatType.CRITERION_FUNCTION_PARTIAL_CACHE_USED,t)}},{key:"reset",value:function(){this.stats.clear(),this.startTimes.clear(),this.stats.set(r.StatType.CRITERION_FUNCTION_FULL_CACHE_USED,0),this.stats.set(r.StatType.CRITERION_FUNCTION_PARTIAL_CACHE_USED,0)}},{key:"start",value:function(e){if(this.startTimes.get(e))throw Error("Statistics ".concat(e," already started"));this.startTimes.set(e,Date.now())}},{key:"end",value:function(e){var t,n=Date.now(),r=this.startTimes.get(e);if(!r)throw Error("Statistics ".concat(e," not started"));var o=null!==(t=this.stats.get(e))&&void 0!==t?t:0;o+=n-r,this.stats.set(e,o),this.startTimes.delete(e)}},{key:"measure",value:function(e,t){this.start(e);var n=t();return this.end(e),n}},{key:"snapshot",value:function(){return new Map(this.stats)}}])&&o(t.prototype,n),i&&o(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}()},function(e,t,n){"use strict";
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
var r;n.r(t),n.d(t,"StatType",(function(){return r})),function(e){e.BUILD_ENGINE_TOTAL="BUILD_ENGINE_TOTAL",e.PARSER="PARSER",e.GRAPH_BUILD="GRAPH_BUILD",e.COLLECT_DEPENDENCIES="COLLECT_DEPENDENCIES",e.PROCESS_DEPENDENCIES="PROCESS_DEPENDENCIES",e.TOP_SORT="TOP_SORT",e.BUILD_COLUMN_INDEX="BUILD_COLUMN_INDEX",e.EVALUATION="EVALUATION",e.VLOOKUP="VLOOKUP",e.TRANSFORM_ASTS="TRANSFORM_ASTS",e.TRANSFORM_ASTS_POSTPONED="TRANSFORM_ASTS_POSTPONED",e.ADJUSTING_ADDRESS_MAPPING="ADJUSTING_ADDRESS_MAPPING",e.ADJUSTING_ARRAY_MAPPING="ADJUSTING_ARRAY_MAPPING",e.ADJUSTING_RANGES="ADJUSTING_RANGES",e.ADJUSTING_GRAPH="ADJUSTING_GRAPH",e.CRITERION_FUNCTION_FULL_CACHE_USED="CRITERION_FUNCTION_FULL_CACHE_USED",e.CRITERION_FUNCTION_PARTIAL_CACHE_USED="CRITERION_FUNCTION_PARTIAL_CACHE_USED"}(r||(r={}))},function(e,t,n){"use strict";n.r(t),n.d(t,"AddressMapping",(function(){return f}));n(85),n(3),n(33),n(0),n(2),n(4),n(137),n(13),n(25),n(22),n(12),n(8),n(9),n(10);var r=n(41),o=n(51),i=n(123);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;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,t)||u(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 s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=u(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function u(e,t){if(e){if("string"==typeof e)return l(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)?l(e,t):void 0}}function l(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 c(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)}}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
var f=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.policy=t,this.mapping=new Map}var t,n,u;return t=e,(n=[{key:"getCell",value:function(e){var t=this.mapping.get(e.sheet);if(void 0===t)throw new r.NoSheetWithIdError(e.sheet);return t.getCell(e)}},{key:"fetchCell",value:function(e){var t=this.mapping.get(e.sheet);if(void 0===t)throw new r.NoSheetWithIdError(e.sheet);var n=t.getCell(e);if(!n)throw Error("Vertex for address missing in AddressMapping");return n}},{key:"strategyFor",value:function(e){var t=this.mapping.get(e);if(void 0===t)throw new r.NoSheetWithIdError(e);return t}},{key:"addSheet",value:function(e,t){if(this.mapping.has(e))throw Error("Sheet already added");this.mapping.set(e,t)}},{key:"autoAddSheet",value:function(e,t,n){var r=n.height,o=n.width,i=n.fill,a=this.policy.call(i);this.addSheet(e,new a(o,r))}},{key:"getCellValue",value:function(e){var t=this.getCell(e);return void 0===t?o.EmptyValue:t instanceof i.ArrayVertex?t.getArrayCellValue(e):t.getCellValue()}},{key:"getRawValue",value:function(e){var t=this.getCell(e);return t instanceof i.ValueCellVertex?t.getValues().rawValue:t instanceof i.ArrayVertex?t.getArrayCellRawValue(e):null}},{key:"setCell",value:function(e,t){var n=this.mapping.get(e.sheet);if(!n)throw Error("Sheet not initialized");n.setCell(e,t)}},{key:"moveCell",value:function(e,t){var n=this.mapping.get(e.sheet);if(!n)throw Error("Sheet not initialized.");if(e.sheet!==t.sheet)throw Error("Cannot move cells between sheets.");if(n.has(t))throw new Error("Cannot move cell. Destination already occupied.");var r=n.getCell(e);if(void 0===r)throw new Error("Cannot move cell. No cell with such address.");this.setCell(t,r),this.removeCell(e)}},{key:"removeCell",value:function(e){var t=this.mapping.get(e.sheet);if(!t)throw Error("Sheet not initialized");t.removeCell(e)}},{key:"has",value:function(e){var t=this.mapping.get(e.sheet);return void 0!==t&&t.has(e)}},{key:"getHeight",value:function(e){var t=this.mapping.get(e);if(void 0===t)throw new r.NoSheetWithIdError(e);return t.getHeight()}},{key:"getWidth",value:function(e){var t=this.mapping.get(e);if(!t)throw new r.NoSheetWithIdError(e);return t.getWidth()}},{key:"addRows",value:function(e,t,n){var o=this.mapping.get(e);if(void 0===o)throw new r.NoSheetWithIdError(e);o.addRows(t,n)}},{key:"removeRows",value:function(e){var t=this.mapping.get(e.sheet);if(void 0===t)throw new r.NoSheetWithIdError(e.sheet);t.removeRows(e)}},{key:"removeSheet",value:function(e){this.mapping.delete(e)}},{key:"addColumns",value:function(e,t,n){var o=this.mapping.get(e);if(void 0===o)throw new r.NoSheetWithIdError(e);o.addColumns(t,n)}},{key:"removeColumns",value:function(e){var t=this.mapping.get(e.sheet);if(void 0===t)throw new r.NoSheetWithIdError(e.sheet);t.removeColumns(e)}},{key:"verticesFromRowsSpan",value:regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this.mapping.get(t.sheet).verticesFromRowsSpan(t),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"verticesFromColumnsSpan",value:regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this.mapping.get(t.sheet).verticesFromColumnsSpan(t),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"entriesFromRowsSpan",value:regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this.mapping.get(t.sheet).entriesFromRowsSpan(t),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"entriesFromColumnsSpan",value:regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this.mapping.get(t.sheet).entriesFromColumnsSpan(t),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"entries",value:regeneratorRuntime.mark((function e(){var t,n,r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=s(this.mapping.entries()),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=8;break}return r=a(n.value,2),o=r[0],i=r[1],e.delegateYield(i.getEntries(o),"t0",6);case 6:e.next=3;break;case 8:e.next=13;break;case 10:e.prev=10,e.t1=e.catch(1),t.e(e.t1);case 13:return e.prev=13,t.f(),e.finish(13);case 16:case"end":return e.stop()}}),e,this,[[1,10,13,16]])}))},{key:"sheetEntries",value:regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===(n=this.mapping.get(t))){e.next=5;break}return e.delegateYield(n.getEntries(t),"t0",3);case 3:e.next=6;break;case 5:throw new r.NoSheetWithIdError(t);case 6:case"end":return e.stop()}}),e,this)}))}])&&c(t.prototype,n),u&&c(t,u),Object.defineProperty(t,"prototype",{writable:!1}),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"ArrayMapping",(function(){return l}));n(85),n(3),n(33),n(0),n(2),n(4),n(26),n(13),n(25),n(22),n(12),n(8),n(9),n(10);var r=n(24);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;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,t)||a(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 i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=a(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw i}}}}function a(e,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}function s(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 u(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)}}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
var l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.arrayMapping=new Map}var t,n,a;return t=e,(n=[{key:"getArray",value:function(e){var t=this.getArrayByCorner(e.start);if(null==t?void 0:t.getRange().sameAs(e))return t}},{key:"getArrayByCorner",value:function(e){return this.arrayMapping.get(Object(r.addressKey)(e))}},{key:"setArray",value:function(e,t){this.arrayMapping.set(Object(r.addressKey)(e.start),t)}},{key:"removeArray",value:function(e){"string"==typeof e?this.arrayMapping.delete(e):this.arrayMapping.delete(Object(r.addressKey)(e.start))}},{key:"count",value:function(){return this.arrayMapping.size}},{key:"arraysInRows",value:regeneratorRuntime.mark((function e(t){var n,r,a,s,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=i(this.arrayMapping.entries()),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=10;break}if(a=o(r.value,2),s=a[0],!(u=a[1]).spansThroughSheetRows(t.sheet,t.rowStart,t.rowEnd)){e.next=8;break}return e.next=8,[s,u];case 8:e.next=3;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),n.e(e.t0);case 15:return e.prev=15,n.f(),e.finish(15);case 18:case"end":return e.stop()}}),e,this,[[1,12,15,18]])}))},{key:"arraysInCols",value:regeneratorRuntime.mark((function e(t){var n,r,a,s,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=i(this.arrayMapping.entries()),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=10;break}if(a=o(r.value,2),s=a[0],!(u=a[1]).spansThroughSheetColumn(t.sheet,t.columnStart,t.columnEnd)){e.next=8;break}return e.next=8,[s,u];case 8:e.next=3;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),n.e(e.t0);case 15:return e.prev=15,n.f(),e.finish(15);case 18:case"end":return e.stop()}}),e,this,[[1,12,15,18]])}))},{key:"isFormulaArrayInRow",value:function(e,t){var n,r=i(this.arrayMapping.values());try{for(r.s();!(n=r.n()).done;)if(n.value.spansThroughSheetRows(e,t))return!0}catch(e){r.e(e)}finally{r.f()}return!1}},{key:"isFormulaArrayInAllRows",value:function(e){var t,n=!0,r=i(e.rows());try{for(r.s();!(t=r.n()).done;){var o=t.value;this.isFormulaArrayInRow(e.sheet,o)||(n=!1)}}catch(e){r.e(e)}finally{r.f()}return n}},{key:"isFormulaArrayInColumn",value:function(e,t){var n,r=i(this.arrayMapping.values());try{for(r.s();!(n=r.n()).done;)if(n.value.spansThroughSheetColumn(e,t))return!0}catch(e){r.e(e)}finally{r.f()}return!1}},{key:"isFormulaArrayInAllColumns",value:function(e){var t,n=!0,r=i(e.columns());try{for(r.s();!(t=r.n()).done;){var o=t.value;this.isFormulaArrayInColumn(e.sheet,o)||(n=!1)}}catch(e){r.e(e)}finally{r.f()}return n}},{key:"isFormulaArrayInRange",value:function(e){var t,n=i(this.arrayMapping.values());try{for(n.s();!(t=n.n()).done;)if(t.value.getRange().doesOverlap(e))return!0}catch(e){n.e(e)}finally{n.f()}return!1}},{key:"isFormulaArrayAtAddress",value:function(e){var t,n=i(this.arrayMapping.values());try{for(n.s();!(t=n.n()).done;)if(t.value.getRange().addressInRange(e))return!0}catch(e){n.e(e)}finally{n.f()}return!1}},{key:"moveArrayVerticesAfterRowByRows",value:function(e,t,n){this.updateArrayVerticesInSheet(e,(function(e,r){var o=r.getRange();return t<=o.start.row?[o.shifted(0,n),r]:void 0}))}},{key:"moveArrayVerticesAfterColumnByColumns",value:function(e,t,n){this.updateArrayVerticesInSheet(e,(function(e,r){var o=r.getRange();return t<=o.start.col?[o.shifted(n,0),r]:void 0}))}},{key:"updateArrayVerticesInSheet",value:function(e,t){var n,r=this,a=Array(),s=i(this.arrayMapping.entries());try{for(s.s();!(n=s.n()).done;){var u=o(n.value,2),l=u[0],c=u[1];if(c.sheet===e){var f=t(l,c);void 0!==f&&(this.removeArray(l),a.push(f))}}}catch(e){s.e(e)}finally{s.f()}a.forEach((function(e){var t=o(e,2),n=t[0],i=t[1];r.setArray(n,i)}))}}])&&u(t.prototype,n),a&&u(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"RangeVertex",(function(){return o}));n(3),n(33),n(0),n(2),n(4),n(55),n(26);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)}}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.range=t,this.functionCache=new Map,this.criterionFunctionCache=new Map,this.dependentCacheRanges=new Set,this.bruteForce=!1}var t,n,o;return t=e,(n=[{key:"start",get:function(){return this.range.start}},{key:"end",get:function(){return this.range.end}},{key:"sheet",get:function(){return this.range.start.sheet}},{key:"getFunctionValue",value:function(e){return this.functionCache.get(e)}},{key:"setFunctionValue",value:function(e,t){this.functionCache.set(e,t)}},{key:"getCriterionFunctionValue",value:function(e,t){var n;return null===(n=this.getCriterionFunctionValues(e).get(t))||void 0===n?void 0:n[0]}},{key:"getCriterionFunctionValues",value:function(e){var t;return null!==(t=this.criterionFunctionCache.get(e))&&void 0!==t?t:new Map}},{key:"setCriterionFunctionValues",value:function(e,t){this.criterionFunctionCache.set(e,t)}},{key:"addDependentCacheRange",value:function(e){e!==this&&this.dependentCacheRanges.add(e)}},{key:"clearCache",value:function(){this.functionCache.clear(),this.criterionFunctionCache.clear(),this.dependentCacheRanges.forEach((function(e){return e.criterionFunctionCache.clear()})),this.dependentCacheRanges.clear()}},{key:"getStart",value:function(){return this.start}},{key:"getEnd",value:function(){return this.end}}])&&r(t.prototype,n),o&&r(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"Graph",(function(){return s}));var r;n(3),n(0),n(55),n(2),n(4),n(33),n(26),n(22),n(138),n(13),n(25),n(12),n(8),n(9),n(10);function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return i(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 i(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(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 a(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(e){e[e.ON_STACK=0]="ON_STACK",e[e.PROCESSED=1]="PROCESSED",e[e.POPPED=2]="POPPED"}(r||(r={}));var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.dependencyQuery=t,this.nodes=new Set,this.specialNodes=new Set,this.specialNodesStructuralChanges=new Set,this.specialNodesRecentlyChanged=new Set,this.infiniteRanges=new Set,this.edges=new Map}var t,n,i;
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/return t=e,(n=[{key:"addNode",value:function(e){this.nodes.add(e),this.edges.has(e)||this.edges.set(e,new Set)}},{key:"addEdge",value:function(e,t){if(!this.nodes.has(e))throw new Error("Unknown node ".concat(e));if(!this.nodes.has(t))throw new Error("Unknown node ".concat(t));this.edges.get(e).add(t)}},{key:"removeEdge",value:function(e,t){if(!this.existsEdge(e,t))throw new Error("Edge does not exist");this.edges.get(e).delete(t)}},{key:"softRemoveEdge",value:function(e,t){var n;null===(n=this.edges.get(e))||void 0===n||n.delete(t)}},{key:"removeIncomingEdges",value:function(e){this.edges.forEach((function(t){t.delete(e)}))}},{key:"adjacentNodes",value:function(e){return this.edges.get(e)}},{key:"adjacentNodesCount",value:function(e){return this.adjacentNodes(e).size}},{key:"hasNode",value:function(e){return this.nodes.has(e)}},{key:"nodesCount",value:function(){return this.nodes.size}},{key:"edgesCount",value:function(){var e=0;return this.edges.forEach((function(t){return e+=t.size})),e}},{key:"removeNode",value:function(e){var t,n=o(this.adjacentNodes(e).values());try{for(n.s();!(t=n.n()).done;){var r=t.value;this.markNodeAsSpecialRecentlyChanged(r)}}catch(e){n.e(e)}finally{n.f()}return this.edges.delete(e),this.nodes.delete(e),this.specialNodes.delete(e),this.specialNodesRecentlyChanged.delete(e),this.specialNodesStructuralChanges.delete(e),this.infiniteRanges.delete(e),this.removeDependencies(e)}},{key:"markNodeAsSpecial",value:function(e){this.specialNodes.add(e)}},{key:"markNodeAsSpecialRecentlyChanged",value:function(e){this.nodes.has(e)&&this.specialNodesRecentlyChanged.add(e)}},{key:"markNodeAsChangingWithStructure",value:function(e){this.specialNodesStructuralChanges.add(e)}},{key:"clearSpecialNodesRecentlyChanged",value:function(){this.specialNodesRecentlyChanged.clear()}},{key:"markNodeAsInfiniteRange",value:function(e){this.infiniteRanges.add(e)}},{key:"existsEdge",value:function(e,t){var n,r;return null!==(r=null===(n=this.edges.get(e))||void 0===n?void 0:n.has(t))&&void 0!==r&&r}},{key:"topSortWithScc",value:function(){return this.getTopSortedWithSccSubgraphFrom(Array.from(this.nodes),(function(){return!0}),(function(){}))}},{key:"getTopSortedWithSccSubgraphFrom",value:function(e,t,n){var o=this,i=new Map,a=new Map,s=new Map,u=new Set,l=new Map,c=[],f=0,d=new Set;e.reverse(),e.forEach((function(e){if(void 0===l.get(e)){var t=[e],n=[];l.set(e,r.ON_STACK);for(var h=function(){var e=t[t.length-1];switch(l.get(e)){case r.ON_STACK:i.set(e,f),a.set(e,f),n.push(e),f++,o.adjacentNodes(e).forEach((function(n){void 0===i.get(n)&&(t.push(n),s.set(n,e),l.set(n,r.ON_STACK))})),l.set(e,r.PROCESSED);break;case r.PROCESSED:var h;if(h=i.get(e),o.adjacentNodes(e).forEach((function(t){u.has(t)||(h=s.get(t)===e?Math.min(h,a.get(t)):Math.min(h,i.get(t)))})),a.set(e,h),h===i.get(e)){var p=[];do{p.push(n[n.length-1]),n.pop()}while(p[p.length-1]!==e);p.forEach((function(e){u.add(e)})),c.push.apply(c,p),p.length>1&&p.forEach((function(e){d.add(e)}))}t.pop(),l.set(e,r.POPPED);break;case r.POPPED:t.pop()}};t.length>0;)h()}}));var h=new Set(e),p=[],y=[];return c.reverse(),c.forEach((function(e){d.has(e)||o.adjacentNodes(e).has(e)?(y.push(e),n(e),o.adjacentNodes(e).forEach((function(e){return h.add(e)}))):(p.push(e),h.has(e)&&t(e)&&o.adjacentNodes(e).forEach((function(e){return h.add(e)})))})),{sorted:p,cycled:y}}},{key:"getDependencies",value:function(e){var t=[];return this.edges.forEach((function(n,r){n.has(e)&&t.push(r)})),t}},{key:"removeDependencies",value:function(e){var t,n=this.dependencyQuery(e),r=o(n);try{for(r.s();!(t=r.n()).done;){var i=t.value;this.softRemoveEdge(i,e)}}catch(e){r.e(e)}finally{r.f()}return n}}])&&a(t.prototype,n),i&&a(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"RangeMapping",(function(){return c}));n(85),n(3),n(33),n(0),n(2),n(4),n(73),n(10),n(8),n(9),n(260),n(52),n(26),n(37),n(40),n(18),n(13),n(25),n(22),n(12);var r=n(86),o=n(24);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;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,t)||s(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 a(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=s(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function s(e,t){if(e){if("string"==typeof e)return u(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)?u(e,t):void 0}}function u(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 l(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)}}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.rangeMapping=new Map}var t,n,s;return t=e,(n=[{key:"getMappingSize",value:function(e){var t,n;return null!==(n=null===(t=this.rangeMapping.get(e))||void 0===t?void 0:t.size)&&void 0!==n?n:0}},{key:"setRange",value:function(e){var t=this.rangeMapping.get(e.getStart().sheet);void 0===t&&(t=new Map,this.rangeMapping.set(e.getStart().sheet,t));var n=f(e.getStart(),e.getEnd());t.set(n,e)}},{key:"removeRange",value:function(e){var t=e.getStart().sheet,n=this.rangeMapping.get(t);if(void 0!==n){var r=f(e.getStart(),e.getEnd());n.delete(r),0===n.size&&this.rangeMapping.delete(t)}}},{key:"getRange",value:function(e,t){var n=this.rangeMapping.get(e.sheet),r=f(e,t);return null==n?void 0:n.get(r)}},{key:"fetchRange",value:function(e,t){var n=this.getRange(e,t);if(!n)throw Error("Range does not exist");return n}},{key:"truncateRanges",value:function(e,t){var n,r=Array(),o=Array(),s=Array(),u=e.sheet,l=a(this.entriesFromSheet(e.sheet));try{for(l.s();!(n=l.n()).done;){var c=i(n.value,2),f=c[0],p=c[1],y=p.range;e.start<=t(p.range.end)&&(y.removeSpan(e),y.shouldBeRemoved()?(this.removeByKey(u,f),r.push(p)):o.push([f,p]),s.push(p))}}catch(e){l.e(e)}finally{l.f()}var m=[];o.sort((function(e,n){return h(e[1],n[1],t)}));for(var g=0,v=o;g<v.length;g++){var E=i(v[g],2),b=E[0],T=E[1],C=d(T.range);if(C!==b){var w=this.getByKey(u,C);this.removeByKey(u,b),void 0!==w&&T!=w?m.push([w,T]):this.setRange(T)}}return{verticesToRemove:r,verticesToMerge:m,verticesWithChangedSize:s}}},{key:"moveAllRangesInSheetAfterRowByRows",value:function(e,t,n){return this.updateVerticesFromSheet(e,(function(e,r){return t<=r.start.row?(r.range.shiftByRows(n),{changedSize:!1,vertex:r}):t>r.start.row&&t<=r.end.row?(r.range.expandByRows(n),{changedSize:!0,vertex:r}):void 0}))}},{key:"moveAllRangesInSheetAfterColumnByColumns",value:function(e,t,n){return this.updateVerticesFromSheet(e,(function(e,r){return t<=r.start.col?(r.range.shiftByColumns(n),{changedSize:!1,vertex:r}):t>r.start.col&&t<=r.end.col?(r.range.expandByColumns(n),{changedSize:!0,vertex:r}):void 0}))}},{key:"moveRangesInsideSourceRange",value:function(e,t,n,r){this.updateVerticesFromSheet(e.sheet,(function(o,i){return e.containsRange(i.range)?(i.range.shiftByColumns(t),i.range.shiftByRows(n),i.range.moveToSheet(r),{changedSize:!1,vertex:i}):void 0}))}},{key:"removeRangesInSheet",value:function(e){if(this.rangeMapping.has(e)){var t=this.rangeMapping.get(e).values();return this.rangeMapping.delete(e),t}return[][Symbol.iterator]()}},{key:"rangesInSheet",value:regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.rangeMapping.get(t)){e.next=3;break}return e.abrupt("return");case 3:return e.delegateYield(n.values(),"t0",4);case 4:case"end":return e.stop()}}),e,this)}))},{key:"rangeVerticesContainedInRange",value:regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=a(this.rangesInSheet(t.sheet)),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=10;break}if(o=r.value,!t.containsRange(o.range)){e.next=8;break}return e.next=8,o;case 8:e.next=3;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),n.e(e.t0);case 15:return e.prev=15,n.f(),e.finish(15);case 18:case"end":return e.stop()}}),e,this,[[1,12,15,18]])}))},{key:"findSmallerRange",value:function(e){if(e.height()>1&&Number.isFinite(e.height())){var t=Object(o.simpleCellAddress)(e.end.sheet,e.end.col,e.end.row-1),n=this.getRange(e.start,t);if(void 0!==n)return{smallerRangeVertex:n,restRange:new r.AbsoluteCellRange(Object(o.simpleCellAddress)(e.start.sheet,e.start.col,e.end.row),e.end)}}return{restRange:e}}},{key:"entriesFromSheet",value:regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.rangeMapping.get(t)){e.next=3;break}return e.abrupt("return");case 3:return e.delegateYield(n.entries(),"t0",4);case 4:case"end":return e.stop()}}),e,this)}))},{key:"removeByKey",value:function(e,t){this.rangeMapping.get(e).delete(t)}},{key:"getByKey",value:function(e,t){var n;return null===(n=this.rangeMapping.get(e))||void 0===n?void 0:n.get(t)}},{key:"updateVerticesFromSheet",value:function(e,t){var n,r=this,o=Array(),s=a(this.entriesFromSheet(e));try{for(s.s();!(n=s.n()).done;){var u=i(n.value,2),l=u[0],c=t(l,u[1]);void 0!==c&&(this.removeByKey(e,l),o.push(c))}}catch(e){s.e(e)}finally{s.f()}return o.forEach((function(e){r.setRange(e.vertex)})),{verticesWithChangedSize:o.filter((function(e){return e.changedSize})).map((function(e){return e.vertex}))}}}])&&l(t.prototype,n),s&&l(t,s),Object.defineProperty(t,"prototype",{writable:!1}),e}();function f(e,t){return"".concat(e.col,",").concat(e.row,",").concat(t.col,",").concat(t.row)}function d(e){return f(e.start,e.end)}var h=function(e,t,n){var r=n(e.range.start),o=n(e.range.start);return r===o?n(e.range.end)-n(t.range.end):r-o}},function(e,t,n){"use strict";n.r(t),n.d(t,"SheetMapping",(function(){return d}));n(85),n(3),n(33),n(0),n(2),n(4),n(18),n(37),n(22),n(13),n(25),n(12),n(8),n(9),n(10);var r=n(41),o=n(225);function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return a(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 a(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw i}}}}function a(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 s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 l(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/function c(e){return e.toLowerCase()}var f=function(){function e(t,n){s(this,e),this.id=t,this.displayName=n}return l(e,[{key:"canonicalName",get:function(){return c(this.displayName)}}]),e}(),d=function(){function e(t){var n=this;s(this,e),this.languages=t,this.mappingFromCanonicalName=new Map,this.mappingFromId=new Map,this.lastSheetId=-1,this.fetch=function(e){var t=n.mappingFromCanonicalName.get(c(e));if(void 0===t)throw new r.NoSheetWithNameError(e);return t.id},this.get=function(e){var t;return null===(t=n.mappingFromCanonicalName.get(c(e)))||void 0===t?void 0:t.id},this.fetchDisplayName=function(e){return n.fetchSheetById(e).displayName},this.sheetNamePrefix=t.getUITranslation(o.UIElement.NEW_SHEET_PREFIX)}return l(e,[{key:"addSheet",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"".concat(this.sheetNamePrefix).concat(this.lastSheetId+2),t=c(e);if(this.mappingFromCanonicalName.has(t))throw new r.SheetNameAlreadyTakenError(e);this.lastSheetId++;var n=new f(this.lastSheetId,e);return this.store(n),n.id}},{key:"removeSheet",value:function(e){var t=this.fetchSheetById(e);e==this.lastSheetId&&--this.lastSheetId,this.mappingFromCanonicalName.delete(t.canonicalName),this.mappingFromId.delete(t.id)}},{key:"getDisplayName",value:function(e){var t;return null===(t=this.mappingFromId.get(e))||void 0===t?void 0:t.displayName}},{key:"displayNames",value:regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=i(this.mappingFromCanonicalName.values()),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return r=n.value,e.next=7,r.displayName;case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"numberOfSheets",value:function(){return this.mappingFromCanonicalName.size}},{key:"hasSheetWithId",value:function(e){return this.mappingFromId.has(e)}},{key:"hasSheetWithName",value:function(e){return this.mappingFromCanonicalName.has(c(e))}},{key:"renameSheet",value:function(e,t){var n=this.fetchSheetById(e),o=n.displayName;if(o!==t){var i=this.mappingFromCanonicalName.get(c(t));if(void 0!==i&&i.id!==n.id)throw new r.SheetNameAlreadyTakenError(t);var a=n.canonicalName;return this.mappingFromCanonicalName.delete(a),n.displayName=t,this.store(n),o}}},{key:"sheetNames",value:function(){return Array.from(this.mappingFromId.values()).map((function(e){return e.displayName}))}},{key:"store",value:function(e){this.mappingFromId.set(e.id,e),this.mappingFromCanonicalName.set(e.canonicalName,e)}},{key:"fetchSheetById",value:function(e){var t=this.mappingFromId.get(e);if(void 0===t)throw new r.NoSheetWithIdError(e);return t}}]),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"TranslationPackage",(function(){return l})),n.d(t,"buildTranslationPackage",(function(){return c}));n(87),n(99),n(0),n(53),n(369),n(3),n(55),n(2),n(4),n(244),n(13),n(25),n(22),n(12),n(8),n(9),n(10);var r=n(24),o=n(41),i=n(225);function a(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return s(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 s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function s(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 u(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)}}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
var l=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.functions=t,this.errors=n,this.ui=r,this._protectedTranslations={VERSION:"VERSION"},this.checkUI(),this.checkErrors(),this.checkFunctionTranslations(this.functions),Object.assign(this.functions,this._protectedTranslations)}var t,n,s;return t=e,(n=[{key:"extendFunctions",value:function(e){this.checkFunctionTranslations(e),Object.assign(this.functions,e)}},{key:"buildFunctionMapping",value:function(){var e=this;return Object.keys(this.functions).reduce((function(t,n){return t[e.functions[n]]=n,t}),{})}},{key:"buildErrorMapping",value:function(){var e=this;return Object.keys(this.errors).reduce((function(t,n){return t[e.errors[n]]=n,t}),{})}},{key:"isFunctionTranslated",value:function(e){return void 0!==this.functions[e]}},{key:"getFunctionTranslations",value:function(e){var t,n=[],r=a(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;this.isFunctionTranslated(o)&&n.push(this.functions[o])}}catch(e){r.e(e)}finally{r.f()}return n}},{key:"getFunctionTranslation",value:function(e){var t=this.functions[e];if(void 0===t)throw new o.MissingTranslationError("functions.".concat(e));return t}},{key:"getMaybeFunctionTranslation",value:function(e){return this.functions[e]}},{key:"getErrorTranslation",value:function(e){if(e===r.ErrorType.LIC)return"#".concat(r.ErrorType.LIC,"!");var t=this.errors[e];if(void 0===t)throw new o.MissingTranslationError("errors.".concat(e));return t}},{key:"getUITranslation",value:function(e){var t=this.ui[e];if(void 0===t)throw new o.MissingTranslationError("ui.".concat(e));return t}},{key:"checkUI",value:function(){for(var e=0,t=Object.values(i.UIElement);e<t.length;e++){var n=t[e];if(!(n in this.ui))throw new o.MissingTranslationError("ui.".concat(n))}}},{key:"checkErrors",value:function(){for(var e=0,t=Object.values(r.ErrorType);e<t.length;e++){var n=t[e];if(!(n in this.errors)&&n!==r.ErrorType.LIC)throw new o.MissingTranslationError("errors.".concat(n))}}},{key:"checkFunctionTranslations",value:function(e){var t,n=new Set(Object.getOwnPropertyNames(e)),r=a(Object.getOwnPropertyNames(this._protectedTranslations));try{for(r.s();!(t=r.n()).done;){var i=t.value;if(n.has(i))throw new o.ProtectedFunctionTranslationError(i)}}catch(e){r.e(e)}finally{r.f()}}}])&&u(t.prototype,n),s&&u(t,s),Object.defineProperty(t,"prototype",{writable:!1}),e}();function c(e){return new l(Object.assign({},e.functions),Object.assign({},e.errors),Object.assign({},e.ui))}},function(e,t,n){"use strict";n.r(t),n.d(t,"SparseStrategy",(function(){return l}));n(85),n(3),n(33),n(0),n(2),n(4),n(26),n(13),n(25),n(22),n(12),n(8),n(9),n(10);var r=n(24);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;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,t)||a(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 i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=a(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw i}}}}function a(e,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}function s(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 u(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)}}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
var l=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.width=t,this.height=n,this.mapping=new Map}var t,n,a;return t=e,(n=[{key:"getCell",value:function(e){var t;return null===(t=this.mapping.get(e.col))||void 0===t?void 0:t.get(e.row)}},{key:"setCell",value:function(e,t){this.width=Math.max(this.width,e.col+1),this.height=Math.max(this.height,e.row+1);var n=this.mapping.get(e.col);n||(n=new Map,this.mapping.set(e.col,n)),n.set(e.row,t)}},{key:"has",value:function(e){var t;return!!(null===(t=this.mapping.get(e.col))||void 0===t?void 0:t.get(e.row))}},{key:"getHeight",value:function(){return this.height}},{key:"getWidth",value:function(){return this.width}},{key:"removeCell",value:function(e){var t;null===(t=this.mapping.get(e.col))||void 0===t||t.delete(e.row)}},{key:"addRows",value:function(e,t){this.mapping.forEach((function(n){var r=new Map;n.forEach((function(o,i){i>=e&&(r.set(i+t,o),n.delete(i))})),r.forEach((function(e,t){n.set(t,e)}))})),this.height+=t}},{key:"addColumns",value:function(e,t){var n=this,r=new Map;this.mapping.forEach((function(o,i){i>=e&&(r.set(i+t,o),n.mapping.delete(i))})),r.forEach((function(e,t){n.mapping.set(t,e)})),this.width+=t}},{key:"removeRows",value:function(e){this.mapping.forEach((function(t){var n=new Map;t.forEach((function(r,o){o>=e.rowStart&&(t.delete(o),o>e.rowEnd&&n.set(o-e.numberOfRows,r))})),n.forEach((function(e,n){t.set(n,e)}))}));var t=Math.min(this.height-1,e.rowEnd),n=Math.max(0,t-e.rowStart+1);this.height=Math.max(0,this.height-n)}},{key:"removeColumns",value:function(e){var t=this,n=new Map;this.mapping.forEach((function(r,o){o>=e.columnStart&&(t.mapping.delete(o),o>e.columnEnd&&n.set(o-e.numberOfColumns,r))})),n.forEach((function(e,n){t.mapping.set(n,e)}));var r=Math.min(this.width-1,e.columnEnd),o=Math.max(0,r-e.columnStart+1);this.width=Math.max(0,this.width-o)}},{key:"getEntries",value:regeneratorRuntime.mark((function e(t){var n,a,s,u,l,c,f,d,h,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=i(this.mapping),e.prev=1,n.s();case 3:if((a=n.n()).done){e.next=24;break}s=o(a.value,2),u=s[0],l=s[1],c=i(l),e.prev=6,c.s();case 8:if((f=c.n()).done){e.next=14;break}return d=o(f.value,2),h=d[0],p=d[1],e.next=12,[Object(r.simpleCellAddress)(t,u,h),p];case 12:e.next=8;break;case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(6),c.e(e.t0);case 19:return e.prev=19,c.f(),e.finish(19);case 22:e.next=3;break;case 24:e.next=29;break;case 26:e.prev=26,e.t1=e.catch(1),n.e(e.t1);case 29:return e.prev=29,n.f(),e.finish(29);case 32:case"end":return e.stop()}}),e,this,[[1,26,29,32],[6,16,19,22]])}))},{key:"verticesFromColumn",value:regeneratorRuntime.mark((function e(t){var n,r,a,s,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==(n=this.mapping.get(t))){e.next=3;break}return e.abrupt("return");case 3:r=i(n),e.prev=4,r.s();case 6:if((a=r.n()).done){e.next=12;break}return(s=o(a.value,2))[0],u=s[1],e.next=10,u;case 10:e.next=6;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(4),r.e(e.t0);case 17:return e.prev=17,r.f(),e.finish(17);case 20:case"end":return e.stop()}}),e,this,[[4,14,17,20]])}))},{key:"verticesFromRow",value:regeneratorRuntime.mark((function e(t){var n,r,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=i(this.mapping.values()),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=11;break}if(o=r.value,void 0===(a=o.get(t))){e.next=9;break}return e.next=9,a;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(1),n.e(e.t0);case 16:return e.prev=16,n.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[1,13,16,19]])}))},{key:"verticesFromColumnsSpan",value:regeneratorRuntime.mark((function e(t){var n,r,a,s,u,l,c,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=i(t.columns()),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=27;break}if(a=r.value,void 0!==(s=this.mapping.get(a))){e.next=8;break}return e.abrupt("continue",25);case 8:u=i(s),e.prev=9,u.s();case 11:if((l=u.n()).done){e.next=17;break}return(c=o(l.value,2))[0],f=c[1],e.next=15,f;case 15:e.next=11;break;case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(9),u.e(e.t0);case 22:return e.prev=22,u.f(),e.finish(22);case 25:e.next=3;break;case 27:e.next=32;break;case 29:e.prev=29,e.t1=e.catch(1),n.e(e.t1);case 32:return e.prev=32,n.f(),e.finish(32);case 35:case"end":return e.stop()}}),e,this,[[1,29,32,35],[9,19,22,25]])}))},{key:"verticesFromRowsSpan",value:regeneratorRuntime.mark((function e(t){var n,r,o,a,s,u,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=i(this.mapping.values()),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=26;break}o=r.value,a=i(t.rows()),e.prev=6,a.s();case 8:if((s=a.n()).done){e.next=16;break}if(u=s.value,void 0===(l=o.get(u))){e.next=14;break}return e.next=14,l;case 14:e.next=8;break;case 16:e.next=21;break;case 18:e.prev=18,e.t0=e.catch(6),a.e(e.t0);case 21:return e.prev=21,a.f(),e.finish(21);case 24:e.next=3;break;case 26:e.next=31;break;case 28:e.prev=28,e.t1=e.catch(1),n.e(e.t1);case 31:return e.prev=31,n.f(),e.finish(31);case 34:case"end":return e.stop()}}),e,this,[[1,28,31,34],[6,18,21,24]])}))},{key:"entriesFromRowsSpan",value:regeneratorRuntime.mark((function e(t){var n,a,s,u,l,c,f,d,h;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=i(this.mapping.entries()),e.prev=1,n.s();case 3:if((a=n.n()).done){e.next=26;break}s=o(a.value,2),u=s[0],l=s[1],c=i(t.rows()),e.prev=6,c.s();case 8:if((f=c.n()).done){e.next=16;break}if(d=f.value,void 0===(h=l.get(d))){e.next=14;break}return e.next=14,[Object(r.simpleCellAddress)(t.sheet,u,d),h];case 14:e.next=8;break;case 16:e.next=21;break;case 18:e.prev=18,e.t0=e.catch(6),c.e(e.t0);case 21:return e.prev=21,c.f(),e.finish(21);case 24:e.next=3;break;case 26:e.next=31;break;case 28:e.prev=28,e.t1=e.catch(1),n.e(e.t1);case 31:return e.prev=31,n.f(),e.finish(31);case 34:case"end":return e.stop()}}),e,this,[[1,28,31,34],[6,18,21,24]])}))},{key:"entriesFromColumnsSpan",value:regeneratorRuntime.mark((function e(t){var n,a,s,u,l,c,f,d,h;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=i(t.columns()),e.prev=1,n.s();case 3:if((a=n.n()).done){e.next=26;break}if(s=a.value,void 0===(u=this.mapping.get(s))){e.next=24;break}l=i(u.entries()),e.prev=8,l.s();case 10:if((c=l.n()).done){e.next=16;break}return f=o(c.value,2),d=f[0],h=f[1],e.next=14,[Object(r.simpleCellAddress)(t.sheet,s,d),h];case 14:e.next=10;break;case 16:e.next=21;break;case 18:e.prev=18,e.t0=e.catch(8),l.e(e.t0);case 21:return e.prev=21,l.f(),e.finish(21);case 24:e.next=3;break;case 26:e.next=31;break;case 28:e.prev=28,e.t1=e.catch(1),n.e(e.t1);case 31:return e.prev=31,n.f(),e.finish(31);case 34:case"end":return e.stop()}}),e,this,[[1,28,31,34],[8,18,21,24]])}))},{key:"vertices",value:regeneratorRuntime.mark((function e(){var t,n,r,a,s,u,l,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=i(this.mapping),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=25;break}(r=o(n.value,2))[0],a=r[1],s=i(a),e.prev=6,s.s();case 8:if((u=s.n()).done){e.next=15;break}if((l=o(u.value,2))[0],void 0===(c=l[1])){e.next=13;break}return e.next=13,c;case 13:e.next=8;break;case 15:e.next=20;break;case 17:e.prev=17,e.t0=e.catch(6),s.e(e.t0);case 20:return e.prev=20,s.f(),e.finish(20);case 23:e.next=3;break;case 25:e.next=30;break;case 27:e.prev=27,e.t1=e.catch(1),t.e(e.t1);case 30:return e.prev=30,t.f(),e.finish(30);case 33:case"end":return e.stop()}}),e,this,[[1,27,30,33],[6,17,20,23]])}))}])&&u(t.prototype,n),a&&u(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"DenseStrategy",(function(){return s}));n(85),n(54),n(18),n(8),n(9),n(0),n(10),n(3),n(2),n(4),n(22),n(13),n(25),n(12);var r=n(24);function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return i(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 i(e,t)}(e)||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.")}()}function i(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 a(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)}}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
var s=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.width=t,this.height=n,this.mapping=new Array(n);for(var r=0;r<n;r++)this.mapping[r]=new Array(t)}var t,n,i;return t=e,(n=[{key:"getCell",value:function(e){return this.getCellVertex(e.col,e.row)}},{key:"setCell",value:function(e,t){this.width=Math.max(this.width,e.col+1),this.height=Math.max(this.height,e.row+1),this.mapping[e.row]||(this.mapping[e.row]=new Array(this.width)),this.mapping[e.row][e.col]=t}},{key:"has",value:function(e){var t=this.mapping[e.row];return!!t&&!!t[e.col]}},{key:"getHeight",value:function(){return this.height}},{key:"getWidth",value:function(){return this.width}},{key:"removeCell",value:function(e){void 0!==this.mapping[e.row]&&delete this.mapping[e.row][e.col]}},{key:"addRows",value:function(e,t){for(var n,r=[],o=0;o<t;o++)r.push(new Array(this.width));(n=this.mapping).splice.apply(n,[e,0].concat(r)),this.height+=t}},{key:"addColumns",value:function(e,t){for(var n=0;n<this.height;n++){var r;(r=this.mapping[n]).splice.apply(r,[e,0].concat(o(new Array(t))))}this.width+=t}},{key:"removeRows",value:function(e){this.mapping.splice(e.rowStart,e.numberOfRows);var t=Math.min(this.height-1,e.rowEnd),n=Math.max(0,t-e.rowStart+1);this.height=Math.max(0,this.height-n)}},{key:"removeColumns",value:function(e){for(var t=0;t<this.height;t++)this.mapping[t].splice(e.columnStart,e.numberOfColumns);var n=Math.min(this.width-1,e.columnEnd),r=Math.max(0,n-e.columnStart+1);this.width=Math.max(0,this.width-r)}},{key:"getEntries",value:regeneratorRuntime.mark((function e(t){var n,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=0;case 1:if(!(n<this.height)){e.next=14;break}o=0;case 3:if(!(o<this.width)){e.next=11;break}if(!(i=this.getCellVertex(o,n))){e.next=8;break}return e.next=8,[Object(r.simpleCellAddress)(t,o,n),i];case 8:++o,e.next=3;break;case 11:++n,e.next=1;break;case 14:case"end":return e.stop()}}),e,this)}))},{key:"verticesFromColumn",value:regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=0;case 1:if(!(n<this.height)){e.next=9;break}if(!(r=this.getCellVertex(t,n))){e.next=6;break}return e.next=6,r;case 6:++n,e.next=1;break;case 9:case"end":return e.stop()}}),e,this)}))},{key:"verticesFromRow",value:regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=0;case 1:if(!(n<this.width)){e.next=9;break}if(!(r=this.getCellVertex(n,t))){e.next=6;break}return e.next=6,r;case 6:++n,e.next=1;break;case 9:case"end":return e.stop()}}),e,this)}))},{key:"verticesFromColumnsSpan",value:regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.columnStart;case 1:if(!(n<=t.columnEnd)){e.next=14;break}r=0;case 3:if(!(r<this.height)){e.next=11;break}if(!(o=this.getCellVertex(n,r))){e.next=8;break}return e.next=8,o;case 8:++r,e.next=3;break;case 11:++n,e.next=1;break;case 14:case"end":return e.stop()}}),e,this)}))},{key:"verticesFromRowsSpan",value:regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=0;case 1:if(!(n<this.width)){e.next=14;break}r=t.rowStart;case 3:if(!(r<=t.rowEnd)){e.next=11;break}if(!(o=this.getCellVertex(n,r))){e.next=8;break}return e.next=8,o;case 8:++r,e.next=3;break;case 11:++n,e.next=1;break;case 14:case"end":return e.stop()}}),e,this)}))},{key:"entriesFromRowsSpan",value:regeneratorRuntime.mark((function e(t){var n,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=0;case 1:if(!(n<this.width)){e.next=14;break}o=t.rowStart;case 3:if(!(o<=t.rowEnd)){e.next=11;break}if(!(i=this.getCellVertex(n,o))){e.next=8;break}return e.next=8,[Object(r.simpleCellAddress)(t.sheet,n,o),i];case 8:++o,e.next=3;break;case 11:++n,e.next=1;break;case 14:case"end":return e.stop()}}),e,this)}))},{key:"entriesFromColumnsSpan",value:regeneratorRuntime.mark((function e(t){var n,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=0;case 1:if(!(n<this.height)){e.next=14;break}o=t.columnStart;case 3:if(!(o<=t.columnEnd)){e.next=11;break}if(!(i=this.getCellVertex(o,n))){e.next=8;break}return e.next=8,[Object(r.simpleCellAddress)(t.sheet,o,n),i];case 8:++o,e.next=3;break;case 11:++n,e.next=1;break;case 14:case"end":return e.stop()}}),e,this)}))},{key:"vertices",value:regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=0;case 1:if(!(t<this.height)){e.next=14;break}n=0;case 3:if(!(n<this.width)){e.next=11;break}if(!(r=this.getCellVertex(n,t))){e.next=8;break}return e.next=8,r;case 8:++n,e.next=3;break;case 11:++t,e.next=1;break;case 14:case"end":return e.stop()}}),e,this)}))},{key:"getCellVertex",value:function(e,t){var n;return null===(n=this.mapping[t])||void 0===n?void 0:n[e]}}])&&a(t.prototype,n),i&&a(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}()},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)}}n.r(t),n.d(t,"DetailedCellError",(function(){return o}));
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
var o=function(){function e(t,n,r){var o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.value=n,this.address=r,this.type=t.type,this.message=null!==(o=t.message)&&void 0!==o?o:""}var t,n,o;return t=e,(n=[{key:"toString",value:function(){return this.value}},{key:"valueOf",value:function(){return this.value}}])&&r(t.prototype,n),o&&r(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}()},function(e,t,n){"use strict";var r,o=n(28),i=n(36),a=n(112).f,s=n(131),u=n(71),l=n(248),c=n(89),f=n(250),d=n(130),h=i("".endsWith),p=i("".slice),y=Math.min,m=f("endsWith");o({target:"String",proto:!0,forced:!!(d||m||(r=a(String.prototype,"endsWith"),!r||r.writable))&&!m},{endsWith:function(e){var t=u(c(this));l(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:y(s(n),r),i=u(e);return h?h(t,i,o):p(t,o-i.length,o)===i}})},function(e,t,n){"use strict";n.r(t),n.d(t,"format",(function(){return l})),n.d(t,"padLeft",(function(){return c})),n.d(t,"padRight",(function(){return f})),n.d(t,"defaultStringifyDuration",(function(){return h})),n.d(t,"defaultStringifyDateTime",(function(){return p}));n(12),n(61),n(0),n(66),n(52),n(286),n(114),n(13),n(25),n(22),n(2),n(8),n(9),n(10),n(3),n(4);var r=n(376),o=n(156),i=n(699);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;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,t)||s(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 s(e,t){if(e){if("string"==typeof e)return u(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)?u(e,t):void 0}}function u(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}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/function l(e,t,n,r){var a=n.stringifyDateTime(r.numberToSimpleDateTime(e),t);if(void 0!==a)return a;var s=n.stringifyDuration(Object(o.numberToSimpleTime)(e),t);if(void 0!==s)return s;var u=Object(i.parseForNumberFormat)(t);return void 0!==u?function(e,t){for(var n="",r=0;r<e.length;++r){var o=e[r];if(o.type!==i.TokenType.FREE_TEXT){var a=o.value.split("."),s=a[0],u=a[1]||"",l=a[1]?".":"",h=Number(t.toFixed(u.length)).toString().split("."),p=h[0]||"",y=h[1]||"";if(s.length>p.length){var m=d(s.substr(0,s.length-p.length),"0");p=c(p,m+p.length)}var g=d(u.substr(y.length,u.length-y.length),"0");y=f(y,g+y.length),n+=p+l+y}else n+=o.value}return n}(u.tokens,e):t}function c(e,t){for(var n=e+"";n.length<t;)n="0"+n;return n}function f(e,t){for(var n=e+"";n.length<t;)n+="0";return n}function d(e,t){return e.split(t).length-1}function h(e,t){var n=Object(i.parseForDateTimeFormat)(t);if(void 0!==n){var o,a="",u=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=s(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}(n.tokens);try{for(u.s();!(o=u.n()).done;){var l=o.value;if(l.type!==i.TokenType.FREE_TEXT)if(r.secondsExtendedRegexp.test(l.value)){var f=l.value.length-3;a+=(e.seconds<10?"0":"")+Math.round(e.seconds*Math.pow(10,f))/Math.pow(10,f)}else switch(l.value.toLowerCase()){case"h":case"hh":a+=c(e.hours,l.value.length),e.hours=0;break;case"[hh]":a+=c(e.hours,l.value.length-2),e.hours=0;break;case"m":case"mm":a+=c(e.minutes,l.value.length),e.minutes=0;break;case"[mm]":a+=c(e.minutes+60*e.hours,l.value.length-2),e.minutes=0,e.hours=0;break;case"s":case"ss":a+=c(e.seconds,l.value.length);break;default:return}else a+=l.value}}catch(e){u.e(e)}finally{u.f()}return a}}function p(e,t){var n=Object(i.parseForDateTimeFormat)(t);if(void 0!==n){for(var o=n.tokens,s="",u=!1,l=o.some((function(e){return e.type===i.TokenType.FORMAT&&("a/p"===e.value||"A/P"===e.value||"am/pm"===e.value||"AM/PM"===e.value)})),f=0;f<o.length;f++){var d=o[f];if(d.type!==i.TokenType.FREE_TEXT)if(r.secondsExtendedRegexp.test(d.value)){var h=d.value.length-3;s+=(e.seconds<10?"0":"")+Math.round(e.seconds*Math.pow(10,h))/Math.pow(10,h)}else switch(d.value.toLowerCase()){case"h":case"hh":u=!0,s+=c(l?(e.hours+11)%12+1:e.hours,d.value.length);break;case"d":case"dd":s+=c(e.day,d.value.length);break;case"s":case"ss":s+=c(Math.round(e.seconds),d.value.length);break;case"m":case"mm":f+1<o.length&&o[f+1].value.startsWith(":")&&(u=!0),s+=c(u?e.minutes:e.month,d.value.length),u=!0;break;case"yy":s+=c(e.year%100,d.value.length);break;case"yyyy":s+=e.year;break;case"am/pm":case"a/p":var p=a(d.value.split("/"),2),y=p[0],m=p[1];s+=e.hours<12?y:m;break;default:return}else s+=d.value}return s}}},function(e,t,n){"use strict";var r=n(28),o=n(29),i=n(36),a=n(122),s=n(352),u=n(287),l=n(39),c=o.RangeError,f=o.String,d=Math.floor,h=i(u),p=i("".slice),y=i(1..toFixed),m=function(e,t,n){return 0===t?n:t%2==1?m(e,t-1,n*e):m(e*e,t/2,n)},g=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=d(o/1e7)},v=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=d(r/t),r=r%t*1e7},E=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=f(e[t]);n=""===n?r:n+h("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:l((function(){return"0.000"!==y(8e-5,3)||"1"!==y(.9,0)||"1.25"!==y(1.255,2)||"1000000000000000128"!==y(0xde0b6b3a7640080,0)}))||!l((function(){y({})}))},{toFixed:function(e){var t,n,r,o,i=s(this),u=a(e),l=[0,0,0,0,0,0],d="",y="0";if(u<0||u>20)throw c("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return f(i);if(i<0&&(d="-",i=-i),i>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(i*m(2,69,1))-69)<0?i*m(2,-t,1):i/m(2,t,1),n*=4503599627370496,(t=52-t)>0){for(g(l,0,n),r=u;r>=7;)g(l,1e7,0),r-=7;for(g(l,m(10,r,1),0),r=t-1;r>=23;)v(l,1<<23),r-=23;v(l,1<<r),g(l,1,1),v(l,2),y=E(l)}else g(l,0,n),g(l,1<<-t,0),y=E(l)+h("0",u);return y=u>0?d+((o=y.length)<=u?"0."+h("0",u-o)+y:p(y,0,o-u)+"."+p(y,o-u)):d+y}})},function(e,t,n){"use strict";var r=n(29),o=n(122),i=n(71),a=n(89),s=r.RangeError;e.exports=function(e){var t=i(a(this)),n="",r=o(e);if(r<0||r==1/0)throw s("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}},function(e,t,n){"use strict";var r=n(28),o=n(252).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return o(this,e)}})},function(e,t,n){"use strict";var r=n(28),o=n(702).start;r({target:"String",proto:!0,forced:n(703)},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";n.r(t),n.d(t,"validateAsSheet",(function(){return o})),n.d(t,"findBoundaries",(function(){return i}));var r=n(41);
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/function o(e){if(!Array.isArray(e))throw new r.InvalidArgumentsError("an array of arrays.");for(var t=0;t<e.length;t++)if(!Array.isArray(e[t]))throw new r.InvalidArgumentsError("an array of arrays.")}function i(e){for(var t=0,n=0,r=0,o=0;o<e.length;o++){for(var i=0,a=0;a<e[o].length;a++){var s=e[o][a];null!=s&&(i=a+1,++r)}t=Math.max(t,i),i>0&&(n=o+1)}var u=t*n;return{height:n,width:t,fill:0===u?0:r/u}}},function(e,t,n){"use strict";n.r(t),n.d(t,"FunctionRegistry",(function(){return h}));n(85),n(25),n(3),n(33),n(0),n(2),n(4),n(55),n(140),n(22),n(18),n(26),n(53),n(13),n(12),n(8),n(9),n(10);var r=n(41),o=n(189),i=n(714);function a(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(e)||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.")}()}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;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,t)||l(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 u(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=l(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function l(e,t){if(e){if("string"==typeof e)return c(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)?c(e,t):void 0}}function c(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)}}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
function d(e,t){var n,o=t.implementedFunctions[e],i=null===(n=t.aliases)||void 0===n?void 0:n[e];if(void 0!==i){if(void 0!==o)throw new r.AliasAlreadyExisting(e,t.name);o=t.implementedFunctions[i]}if(void 0===o)throw r.FunctionPluginValidationError.functionNotDeclaredInPlugin(e,t.name);return o}var h=function(){function e(t){var n=this;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=t,this.functions=new Map,this.arraySizeFunctions=new Map,this.volatileFunctions=new Set,this.arrayFunctions=new Set,this.structuralChangeFunctions=new Set,this.functionsWhichDoesNotNeedArgumentsToBeComputed=new Set,this.functionsMetadata=new Map,this.doesFunctionNeedArgumentToBeComputed=function(e){return n.functionsWhichDoesNotNeedArgumentsToBeComputed.has(e)},this.isFunctionVolatile=function(e){return n.volatileFunctions.has(e)},this.isArrayFunction=function(e){return n.arrayFunctions.has(e)},this.isFunctionDependentOnSheetStructureChange=function(e){return n.structuralChangeFunctions.has(e)},t.functionPlugins.length>0){this.instancePlugins=new Map;var r,o=u(t.functionPlugins);try{for(o.s();!(r=o.n()).done;){var i=r.value;e.loadPluginFunctions(i,this.instancePlugins)}}catch(e){o.e(e)}finally{o.f()}}else this.instancePlugins=new Map(e.plugins);var a,l=u(e.protectedFunctions());try{for(l.s();!(a=l.n()).done;){var c=s(a.value,2),f=c[0],h=c[1];e.loadFunctionUnprotected(h,f,this.instancePlugins)}}catch(e){l.e(e)}finally{l.f()}var p,y=u(this.instancePlugins.entries());try{for(y.s();!(p=y.n()).done;){var m=s(p.value,2),g=m[0],v=m[1];this.categorizeFunction(g,d(g,v))}}catch(e){y.e(e)}finally{y.f()}}var t,n,i;return t=e,n=[{key:"initializePlugins",value:function(e){var t,n=this,r=[],o=u(this.instancePlugins.entries());try{var i=function(){var o=s(t.value,2),i=o[0],a=o[1],u=r.find((function(e){return e instanceof a}));void 0===u&&(u=new a(e),r.push(u));var l=d(i,a),c=l.method;n.functions.set(i,[c,u]);var f=l.arraySizeMethod;void 0!==f&&n.arraySizeFunctions.set(i,[f,u])};for(o.s();!(t=o.n()).done;)i()}catch(e){o.e(e)}finally{o.f()}}},{key:"getFunctionPlugin",value:function(t){if(!e.functionIsProtected(t))return this.instancePlugins.get(t)}},{key:"getFunction",value:function(e){var t=this.functions.get(e);if(void 0!==t&&this.config.translationPackage.isFunctionTranslated(e)){var n=s(t,2),r=n[0],o=n[1];return function(e,t){return o[r](e,t)}}}},{key:"getArraySizeFunction",value:function(e){var t=this.arraySizeFunctions.get(e);if(void 0!==t&&this.config.translationPackage.isFunctionTranslated(e)){var n=s(t,2),r=n[0],o=n[1];return function(e,t){return o[r](e,t)}}}},{key:"getMetadata",value:function(e){return this.functionsMetadata.get(e)}},{key:"getPlugins",value:function(){var t,n=new Set,r=u(this.instancePlugins);try{for(r.s();!(t=r.n()).done;){var o=s(t.value,2),i=o[0],a=o[1];e.functionIsProtected(i)||n.add(a)}}catch(e){r.e(e)}finally{r.f()}return Array.from(n)}},{key:"getRegisteredFunctionIds",value:function(){return Array.from(this.functions.keys())}},{key:"categorizeFunction",value:function(e,t){t.isVolatile&&this.volatileFunctions.add(e),t.arrayFunction&&this.arrayFunctions.add(e),t.doesNotNeedArgumentsToBeComputed&&this.functionsWhichDoesNotNeedArgumentsToBeComputed.add(e),t.isDependentOnSheetStructureChange&&this.structuralChangeFunctions.add(e),this.functionsMetadata.set(e,t)}}],i=[{key:"registerFunctionPlugin",value:function(e,t){this.loadPluginFunctions(e,this.plugins),void 0!==t&&this.loadTranslations(t)}},{key:"registerFunction",value:function(e,t,n){this.loadPluginFunction(t,e,this.plugins),void 0!==n&&this.loadTranslations(n)}},{key:"unregisterFunction",value:function(e){if(this.functionIsProtected(e))throw r.ProtectedFunctionError.cannotUnregisterFunctionWithId(e);this.plugins.delete(e)}},{key:"unregisterFunctionPlugin",value:function(e){var t,n=u(this.protectedPlugins());try{for(n.s();!(t=n.n()).done;)if(t.value===e)throw r.ProtectedFunctionError.cannotUnregisterProtectedPlugin()}catch(e){n.e(e)}finally{n.f()}var o,i=u(this.plugins.entries());try{for(i.s();!(o=i.n()).done;){var a=s(o.value,2),l=a[0];a[1]===e&&this.plugins.delete(l)}}catch(e){i.e(e)}finally{i.f()}}},{key:"unregisterAll",value:function(){this.plugins.clear()}},{key:"getRegisteredFunctionIds",value:function(){return[].concat(a(Array.from(this.plugins.keys())),a(Array.from(this._protectedPlugins.keys())))}},{key:"getPlugins",value:function(){return Array.from(new Set(this.plugins.values()).values())}},{key:"getFunctionPlugin",value:function(e){return this.functionIsProtected(e)?void 0:this.plugins.get(e)}},{key:"functionIsProtected",value:function(e){return this._protectedPlugins.has(e)}},{key:"loadTranslations",value:function(e){var t=new Set(o.HyperFormula.getRegisteredLanguagesCodes());Object.keys(e).forEach((function(n){t.has(n)&&o.HyperFormula.getLanguage(n).extendFunctions(e[n])}))}},{key:"loadPluginFunctions",value:function(e,t){var n=this;Object.keys(e.implementedFunctions).forEach((function(r){n.loadPluginFunction(e,r,t)})),void 0!==e.aliases&&Object.keys(e.aliases).forEach((function(r){n.loadPluginFunction(e,r,t)}))}},{key:"loadPluginFunction",value:function(e,t,n){if(this.functionIsProtected(t))throw r.ProtectedFunctionError.cannotRegisterFunctionWithId(t);this.loadFunctionUnprotected(e,t,n)}},{key:"loadFunctionUnprotected",value:function(e,t,n){var o=d(t,e).method;if(!Object.prototype.hasOwnProperty.call(e.prototype,o))throw r.FunctionPluginValidationError.functionMethodNotFound(o,e.name);n.set(t,e)}},{key:"protectedFunctions",value:regeneratorRuntime.mark((function e(){var t,n,r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=u(this._protectedPlugins),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=10;break}if(r=s(n.value,2),o=r[0],void 0===(i=r[1])){e.next=8;break}return e.next=8,[o,i];case 8:e.next=3;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),t.e(e.t0);case 15:return e.prev=15,t.f(),e.finish(15);case 18:case"end":return e.stop()}}),e,this,[[1,12,15,18]])}))},{key:"protectedPlugins",value:regeneratorRuntime.mark((function e(){var t,n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=u(this._protectedPlugins),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=10;break}if(r=s(n.value,2),void 0===(o=r[1])){e.next=8;break}return e.next=8,o;case 8:e.next=3;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),t.e(e.t0);case 15:return e.prev=15,t.f(),e.finish(15);case 18:case"end":return e.stop()}}),e,this,[[1,12,15,18]])}))}],n&&f(t.prototype,n),i&&f(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();h.plugins=new Map,h._protectedPlugins=new Map([["VERSION",i.VersionPlugin],["OFFSET",void 0]])},function(e,t,n){"use strict";n.r(t);var r=n(38);n.d(t,"FunctionPlugin",(function(){return r.FunctionPlugin}))},function(e,t,n){"use strict";n.r(t),n.d(t,"PI",(function(){return f})),n.d(t,"MathConstantsPlugin",(function(){return d}));n(286),n(27),n(0),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(38);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)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var f=parseFloat(Math.PI.toFixed(14)),d=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(l,e);var t,n,r,o=u(l);function l(){return i(this,l),o.apply(this,arguments)}return t=l,(n=[{key:"pi",value:function(e,t){return this.runFunction(e.args,t,this.metadata("PI"),(function(){return f}))}},{key:"sqrtpi",value:function(e,t){return this.runFunction(e.args,t,this.metadata("SQRTPI"),(function(e){return Math.sqrt(f*e)}))}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(r.FunctionPlugin);d.implementedFunctions={PI:{method:"pi",parameters:[]},SQRTPI:{method:"sqrtpi",parameters:[{argumentType:r.ArgumentTypes.NUMBER,minValue:0}]}}},function(e,t){var n=Math.expm1,r=Math.exp;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:r(e)-1}:n},function(e,t,n){var r=n(431);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.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,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 u=0;u<a;u+=1){var l=o[u],c=(0,i.isEmpty)(l)?"":l.toString().replace(/</g,"<").replace(/>/g,">").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20/gi," ").replace(/\t/gi,"	");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 l=e;if("string"==typeof l){var c=l.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)),l=i.querySelector("table")}if(!l||!u(l))return;var f=i.querySelector('meta[name$="enerator"]'),d=null!==l.querySelector("tbody th"),h=l.querySelector("tr"),p=h?Array.from(h.cells).reduce((function(e,t){return e+t.colSpan}),0)-(d?1:0):0,y=l.tFoot&&Array.from(l.tFoot.rows)||[],m=[],g=!1,v=0,E=0;if(l.tHead){var b=Array.from(l.tHead.rows).filter((function(e){var t=null!==e.querySelector("td");return t&&m.push(e),!t}));v=b.length,g=v>0,v>1?n.nestedHeaders=Array.from(b).reduce((function(e,t){var n=Array.from(t.cells).reduce((function(e,t,n){if(d&&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}),[]):g&&(n.colHeaders=Array.from(b[0].children).reduce((function(e,t,n){return d&&0===n||e.push(t.innerHTML),e}),[]))}m.length&&(n.fixedRowsTop=m.length);y.length&&(n.fixedRowsBottom=y.length);var T=[].concat(m,(0,o.default)(Array.from(l.tBodies).reduce((function(e,t){return e.push.apply(e,(0,o.default)(Array.from(t.rows))),e}),[])),(0,o.default)(y));E=T.length;for(var C=new Array(E),w=0;w<E;w++)C[w]=new Array(p);for(var R=[],O=[],S=0;S<E;S++)for(var A=T[S],N=Array.from(A.cells),_=N.length,k=0;k<_;k++){var M=N[k],I=M.nodeName,P=M.innerHTML,x=M.rowSpan,D=M.colSpan,L=C[S].findIndex((function(e){return void 0===e}));if("TD"===I){if(x>1||D>1){for(var F=S;F<S+x;F++)if(F<E)for(var j=L;j<L+D;j++)C[F][j]=null;var U=M.getAttribute("style"),H=U&&U.includes("mso-ignore:colspan");H||R.push({col:L,row:S,rowspan:x,colspan:D})}var B="";B=f&&/excel/gi.test(f.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"),C[S][L]=B.replace(s,(function(e){return a[e]}))}else O.push(P)}R.length&&(n.mergeCells=R);O.length&&(n.rowHeaders=O);C.length&&(n.data=C);return n},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,u=["<table>","</table>"],l=t?["<thead>","</thead>"]:[],c=["<tbody>","</tbody>"],f=n?1:0,d=t?1:0,h=0;h<a;h+=1){for(var p=t&&0===h,y=[],m=0;m<s;m+=1){var g=!p&&n&&0===m,v="";if(p)v="<th>".concat(e.getColHeader(m-f),"</th>");else if(g)v="<th>".concat(e.getRowHeader(h-d),"</th>");else{var E=o[h][m],b=e.getCellMeta(h-d,m-f),T=b.hidden,C=b.rowspan,w=b.colspan;if(!T){var R=[];if(C&&R.push('rowspan="'.concat(C,'"')),w&&R.push('colspan="'.concat(w,'"')),(0,i.isEmpty)(E))v="<td ".concat(R.join(" "),"></td>");else{var O=E.toString().replace("<","<").replace(">",">").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20/gi," ").replace(/\t/gi,"	");v="<td ".concat(R.join(" "),">").concat(O,"</td>")}}}y.push(v)}var S=["<tr>"].concat(y,["</tr>"]).join("");p?l.splice(1,0,S):c.splice(-1,0,S)}return u.splice(1,0,l.join(""),c.join("")),u.join("")};var o=r(n(44));n(94),n(12),n(66),n(75),n(37),n(53),n(63),n(0),n(18),n(54),n(573),n(757),n(99),n(22),n(2),n(40),n(191),n(42),n(49);var i=n(32),a={" ":" ","&":"&","<":"<",">":">"},s=new RegExp(Object.keys(a).map((function(e){return"(".concat(e,")")})).join("|"),"gi");function u(e){return"TABLE"===(e&&e.nodeName||"")}},function(e,t,n){"use strict";t.__esModule=!0,t.RENDER_TYPE=t.PARTIALLY_VISIBLE_TYPE=t.FULLY_VISIBLE_TYPE=void 0;t.RENDER_TYPE=1;t.FULLY_VISIBLE_TYPE=2;t.PARTIALLY_VISIBLE_TYPE=3},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0,n(3),n(0),n(2),n(11),n(4);var o=r(n(5)),i=r(n(6)),a=r(n(43)),s=r(n(103)),u=r(n(104));function l(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var c=new WeakMap,f=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,o.default)(this,e),(0,a.default)(this,"row",null),(0,a.default)(this,"col",null),l(this,c,{writable:!0,value:!1}),(0,u.default)(this,c,r),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&&((0,s.default)(this,c)?this.col<=e.col:this.col>=e.col)}},{key:"isNorthWestOf",value:function(e){return this.row<=e.row&&((0,s.default)(this,c)?this.col>=e.col:this.col<=e.col)}},{key:"isSouthWestOf",value:function(e){return this.row>=e.row&&((0,s.default)(this,c)?this.col>=e.col:this.col<=e.col)}},{key:"isNorthEastOf",value:function(e){return this.row<=e.row&&((0,s.default)(this,c)?this.col<=e.col: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,(0,s.default)(this,c))}},{key:"toObject",value:function(){return{row:this.row,col:this.col}}}]),e}();t.default=f},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r={getFirstRenderedColumn:function(){return 0===this.wtSettings.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.wtSettings.getSetting("totalColumns");return Math.min(this.wtSettings.getSetting("fixedColumnsStart"),e)},getVisibleColumnsCount:function(){return this.getRenderedColumnsCount()}};(0,n(17).defineGetter)(r,"MIXIN_NAME","stickyColumnsStart",{writable:!1,enumerable:!1});var o=r;t.default=o},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(43)),s=n(23),u=n(91),l=r(n(59)),c=r(n(785)),f=r(n(298)),d=r(n(577)),h=function(){function e(t,n){(0,o.default)(this,e),(0,a.default)(this,"wtTable",void 0),(0,a.default)(this,"wtScroll",void 0),(0,a.default)(this,"wtViewport",void 0),(0,a.default)(this,"wtOverlays",void 0),(0,a.default)(this,"selections",void 0),(0,a.default)(this,"wtEvent",void 0),(0,a.default)(this,"guid","wt_".concat((0,u.randomString)())),(0,a.default)(this,"drawInterrupted",!1),(0,a.default)(this,"drawn",!1),(0,a.default)(this,"domBindings",void 0),(0,a.default)(this,"wtSettings",void 0),this.domBindings={rootTable:t,rootDocument:t.ownerDocument,rootWindow:t.ownerDocument.defaultView},this.wtSettings=n,this.wtScroll=new c.default(this.createScrollDao())}return(0,i.default)(e,[{key:"eventManager",get:function(){return new l.default(this)}},{key:"findOriginalHeaders",value:function(){var e=[];if(this.wtTable.THEAD.childNodes.length&&this.wtTable.THEAD.childNodes[0].childNodes.length){for(var t=0,n=this.wtTable.THEAD.childNodes[0].childNodes.length;t<n;t++)e.push(this.wtTable.THEAD.childNodes[0].childNodes[t].innerHTML);this.wtSettings.getSetting("columnHeaders").length||this.wtSettings.update("columnHeaders",[function(t,n){(0,s.fastInnerText)(n,e[t])}])}}},{key:"createCellCoords",value:function(e,t){return new f.default(e,t,this.wtSettings.getSetting("rtlMode"))}},{key:"createCellRange",value:function(e,t,n){return new d.default(e,t,n,this.wtSettings.getSetting("rtlMode"))}},{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("fixedColumnsStart");if(e.row<r&&e.col<i)return this.wtOverlays.topInlineStartCornerOverlay.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.bottomInlineStartCornerOverlay&&this.wtOverlays.bottomInlineStartCornerOverlay.clone)return this.wtOverlays.bottomInlineStartCornerOverlay.clone.wtTable.getCell(e)}else{if(e.col<i)return this.wtOverlays.inlineStartOverlay.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:"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:"destroy",value:function(){this.wtOverlays.destroy(),this.wtEvent.destroy()}},{key:"createScrollDao",value:function(){var e=this;return{get drawn(){return e.drawn},get topOverlay(){return e.wtOverlays.topOverlay},get inlineStartOverlay(){return e.wtOverlays.inlineStartOverlay},get wtTable(){return e.wtTable},get wtViewport(){return e.wtViewport},get rootWindow(){return e.domBindings.rootWindow},get totalRows(){return e.wtSettings.getSetting("totalRows")},get totalColumns(){return e.wtSettings.getSetting("totalColumns")},get fixedRowsTop(){return e.wtSettings.getSetting("fixedRowsTop")},get fixedRowsBottom(){return e.wtSettings.getSetting("fixedRowsBottom")},get fixedColumnsStart(){return e.wtSettings.getSetting("fixedColumnsStart")}}}},{key:"getTableDao",value:function(){var e=this;return{get wot(){return e},get parentTableOffset(){return e.cloneSource.wtTable.tableOffset},get cloneSource(){return e.cloneSource},get workspaceWidth(){return e.wtViewport.getWorkspaceWidth()},get wtViewport(){return e.wtViewport},get wtOverlays(){return e.wtOverlays},get selections(){return e.selections},get drawn(){return e.drawn},set drawn(t){e.drawn=t},get wtTable(){return e.wtTable},get startColumnRendered(){return e.wtViewport.columnsRenderCalculator.startColumn},get startColumnVisible(){return e.wtViewport.columnsVisibleCalculator.startColumn},get endColumnRendered(){return e.wtViewport.columnsRenderCalculator.endColumn},get endColumnVisible(){return e.wtViewport.columnsVisibleCalculator.endColumn},get countColumnsRendered(){return e.wtViewport.columnsRenderCalculator.count},get countColumnsVisible(){return e.wtViewport.columnsVisibleCalculator.count},get startRowRendered(){return e.wtViewport.rowsRenderCalculator.startRow},get startRowVisible(){return e.wtViewport.rowsVisibleCalculator.startRow},get endRowRendered(){return e.wtViewport.rowsRenderCalculator.endRow},get endRowVisible(){return e.wtViewport.rowsVisibleCalculator.endRow},get countRowsRendered(){return e.wtViewport.rowsRenderCalculator.count},get countRowsVisible(){return e.wtViewport.rowsVisibleCalculator.count}}}}]),e}();t.default=h},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r={getFirstRenderedColumn:function(){var e=this.dataAccessObject.startColumnRendered;return null===e?-1:e},getFirstVisibleColumn:function(){var e=this.dataAccessObject.startColumnVisible;return null===e?-1:e},getLastRenderedColumn:function(){var e=this.dataAccessObject.endColumnRendered;return null===e?-1:e},getLastVisibleColumn:function(){var e=this.dataAccessObject.endColumnVisible;return null===e?-1:e},getRenderedColumnsCount:function(){return this.dataAccessObject.countColumnsRendered},getVisibleColumnsCount:function(){return this.dataAccessObject.countColumnsVisible}};(0,n(17).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.hasValidParameter=function(e){return e===o},t.holder=void 0,t.isRootInstance=function(e){return r.has(e)},t.registerAsRootInstance=function(e){r.set(e,!0)},t.rootInstanceSymbol=void 0,n(3),n(0),n(2),n(11),n(4),n(8),n(9);var r=new WeakMap;t.holder=r;var o=Symbol("rootInstance");t.rootInstanceSymbol=o},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.PhysicalIndexToValueMap=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(31)),s=r(n(15)),u=r(n(16)),l=r(n(14)),c=n(233),f=n(304);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,u.default)(this,n)}}var h=function(e){(0,s.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:"insert",value:function(e,t){this.indexedValues=(0,f.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),(0,a.default)((0,l.default)(n.prototype),"insert",this).call(this,e,t)}},{key:"remove",value:function(e){this.indexedValues=(0,f.getListWithRemovedItems)(this.indexedValues,e),(0,a.default)((0,l.default)(n.prototype),"remove",this).call(this,e)}}]),n}(c.IndexMap);t.PhysicalIndexToValueMap=h},function(e,t,n){"use strict";var r=n(1);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(18),n(13),n(37),n(42),n(49);var o=r(n(44)),i=n(68),a=n(20)},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.MapCollection=void 0,t.getRegisteredMapsCounter=function(){return l},n(3),n(33),n(0),n(2),n(4),n(26),n(22);var o=r(n(5)),i=r(n(6)),a=n(32),s=n(17),u=r(n(92)),l=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)})),l+=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),l-=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,u.default)},function(e,t,n){"use strict";n(0),n(26),n(53);var r=n(1);t.__esModule=!0;var o={Highlight:!0,Selection:!0,handleMouseEvent:!0,detectSelectionType:!0,normalizeSelectionFactory:!0},i=r(n(593));t.Highlight=i.default;var a=r(n(823));t.Selection=a.default;var s=n(587);t.handleMouseEvent=s.handleMouseEvent;var u=n(235);t.detectSelectionType=u.detectSelectionType,t.normalizeSelectionFactory=u.normalizeSelectionFactory;var l=n(111);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===l[e]||(t[e]=l[e]))}))},function(e,t,n){"use strict";t.__esModule=!0,t.EDITOR_TYPE=t.AutocompleteEditor=void 0;var r=n(850);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(851);t.EDITOR_TYPE=r.EDITOR_TYPE,t.HandsontableEditor=r.HandsontableEditor},function(e,t,n){"use strict";t.__esModule=!0,t.EDITOR_TYPE=t.DateEditor=void 0;var r=n(853);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(872);t.VALIDATOR_TYPE=r.VALIDATOR_TYPE,t.autocompleteValidator=r.autocompleteValidator},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0,n(0),n(26),n(109);var o=r(n(34)),i=r(n(5)),a=r(n(6)),s=n(23),u=n(20),l=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,u.arrayEach)(this.rows,(function(t){e(t.row,(0,s.outerHeight)(t.table)-1)}))}},{key:"getWidths",value:function(e){this.injected||this.injectTable(),(0,u.arrayEach)(this.columns,(function(t){var n=t.table.getBoundingClientRect().width;e(t.col,Math.ceil(n))}))}},{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,u.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,u.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),u=n.createElement("td");u.setAttribute("ghost-table",1),s(t.hot,u,e,i,t.hot.colToProp(i),o.value,a),r.appendChild(u)}))})),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,u.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,u.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,u.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),u=n.createElement("td"),l=n.createElement("tr");u.setAttribute("ghost-table",1),s(t.hot,u,i,e,t.hot.colToProp(e),o.value,a),l.appendChild(u),r.appendChild(l)}))})),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"),u=t.createElement("tr"),l=t.createElement("th");return this.isVertical()&&r.appendChild(a),this.isHorizontal()&&(u.appendChild(l),o.appendChild(u),r.style.tableLayout="auto",r.style.width="auto"),r.appendChild(o),this.isVertical()&&i.appendChild(u),r.appendChild(i),(0,s.addClass)(r,e),n.appendChild(r),{fragment:n,table:r,tHead:o,tBody:i,colGroup:a,tr:u,th:l}}},{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=l},function(e,t,n){"use strict";t.__esModule=!0,t.HEADER_SPAN_CLASS=t.DESC_SORT_STATE=t.ASC_SORT_STATE=void 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.getHeaderSpanElement=function(e){return e.querySelector(".".concat("colHeader"))},t.getNextSortOrder=function(e){if(e===a)return;if(e===i)return a;return i},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)},n(67),n(52),n(42),n(0),n(37),n(3),n(55),n(2),n(4),n(35),n(22);var r=n(17),o=n(81),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.KEY=void 0,t.default=function(){return{name:"---------"}};t.KEY="---------"},function(e,t,n){"use strict";n(8),n(40),n(19),n(26),n(83);var r=n(1);t.__esModule=!0,t.default=void 0,n(25),n(76),n(53),n(12),n(94),n(66),n(0),n(63),n(18);var o=r(n(43)),i=r(n(5)),a=r(n(6)),s=r(n(942)),u=n(118),l=n(105),c=r(n(429)),f=r(n(59)),d=n(20),h=n(101),p=n(23),y=n(81),m=n(68),g=n(32),v=n(17),E=r(n(92));function b(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 T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var C=function(){function e(t,n){(0,i.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 f.default(this),this.container=this.createContainer(this.options.name),this.hotMenu=null,this.hotSubMenus={},this.parentMenu=this.options.parent||null,this.menuItems=null,this.origOutsideClickDeselects=null,this.keyEvent=!1,this.offset={above:0,below:0,left:0,right:0},this._afterScrollCallback=null,this.registerEvents()}return(0,a.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,p.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,m.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===u.NO_ITEMS&&(r=!0),(0,l.isItemHidden)(t,e.hot)}));if(o.length<1&&!r)o.push((0,u.predefinedItems)()[u.NO_ITEMS]);else if(0===o.length)return;o=(0,l.filterSeparators)(o,u.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",layoutDirection:this.hot.isRtl()?"rtl":"ltr",afterOnCellMouseOver:function(n,r){e.isAllSubMenusClosed()?t(r.row):e.openSubMenu(r.row)},rowHeights:function(e){return o[e].name===u.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,y.isRightClick)(t)||!i||!e.hasSelectedItem()||((0,h.isMobileBrowser)()||(0,h.isIpadOS)()?setTimeout((function(){return e.close(!0)}),325):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 c.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();var s=this.hotMenu.getShortcutManager(),f=s.addContext("menu"),v=T(T({},{group:"menu"}),{},{runOnlyIf:function(t){return!1===(0,p.isInput)(t.target)||!1===e.container.contains(t.target)}});s.setActiveContextName("menu"),f.addShortcuts([{keys:[["Escape"]],callback:function(){e.keyEvent=!0,e.close(),e.keyEvent=!1}},{keys:[["ArrowDown"]],callback:function(){var t=e.hotMenu.getSelectedLast();e.keyEvent=!0,t?e.selectNextCell(t[0],t[1]):e.selectFirstCell(),e.keyEvent=!1}},{keys:[["ArrowUp"]],callback:function(){var t=e.hotMenu.getSelectedLast();e.keyEvent=!0,t?e.selectPrevCell(t[0],t[1]):e.selectLastCell(),e.keyEvent=!1}},{keys:[["ArrowRight"]],callback:function(){var t=e.hotMenu.getSelectedLast();if(e.keyEvent=!0,t){var n=e.openSubMenu(t[0]);n&&n.selectFirstCell()}e.keyEvent=!1}},{keys:[["ArrowLeft"]],callback:function(){var t=e.hotMenu.getSelectedLast();e.keyEvent=!0,t&&e.isSubMenu()&&(e.close(),e.parentMenu&&e.parentMenu.hotMenu.listen()),e.keyEvent=!1}},{keys:[["Enter"]],callback:function(t){var n=e.hotMenu.getSelectedLast();e.keyEvent=!0,e.hotMenu.getSourceDataAtRow(n[0]).submenu||(e.executeCommand(t),e.close(!0)),e.keyEvent=!1}},{keys:[["PageUp"]],callback:function(){var t=e.hotMenu.getSelectedLast();e.keyEvent=!0,t?e.hotMenu.selection.transformStart(-e.hotMenu.countVisibleRows(),0):e.selectFirstCell(),e.keyEvent=!1}},{keys:[["PageDown"]],callback:function(){var t=e.hotMenu.getSelectedLast();e.keyEvent=!0,t?e.hotMenu.selection.transformStart(e.hotMenu.countVisibleRows(),0):e.selectLastCell(),e.keyEvent=!1}}],v),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===u.SEPARATOR||!0===i||o}},{key:"setPosition",value:function(e){var t=new s.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),this.hot.isLtr()?this.setHorizontalPositionForLtr(t):this.setHorizontalPositionForRtl(t)):(this.setPositionBelowCursor(t),this.setPositionOnRightOfCursor(t))}},{key:"setHorizontalPositionForRtl",value:function(e){e.fitsOnLeft(this.container)?this.setPositionOnLeftOfCursor(e):this.setPositionOnRightOfCursor(e)}},{key:"setHorizontalPositionForLtr",value:function(e){e.fitsOnRight(this.container)?this.setPositionOnRightOfCursor(e):this.setPositionOnLeftOfCursor(e)}},{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=e.left;if(this.isSubMenu()){var n=this.parentMenu.container.getBoundingClientRect().right;t+=e.cellWidth+n-(e.left+e.cellWidth)}else t+=this.offset.right;this.container.style.left="".concat(t,"px")}},{key:"setPositionOnLeftOfCursor",value:function(e){var t=this.offset.left+e.left-this.container.offsetWidth;if(this.isSubMenu()){var n=this.parentMenu.container.getBoundingClientRect().left;t-=e.left-n}this.container.style.left="".concat(t,"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,void 0,void 0,!1),this.hotMenu.scrollViewportTo(e,0,!0,!1))}},{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,s=this,l=e.getSourceDataAtRow(n),c=this.hot.rootDocument.createElement("div"),f=function(e){return e.disableSelection},d=i;"function"==typeof d&&(d=d.call(this.hot)),(0,p.empty)(t),(0,p.addClass)(c,"htItemWrapper"),t.appendChild(c),a=l,new RegExp(u.SEPARATOR,"i").test(a.name)?(0,p.addClass)(t,"htSeparator"):"function"==typeof l.renderer?((0,p.addClass)(t,"htCustomMenuRenderer"),t.appendChild(l.renderer(e,c,n,r,o,d))):(0,p.fastInnerHTML)(c,d),!function(e){return!0===e.disabled||"function"==typeof e.disabled&&!0===e.disabled.call(s.hot)}(l)?f(l)?((0,p.addClass)(t,"htSelectionDisabled"),this.eventManager.addEventListener(t,"mouseenter",(function(){return e.deselectCell()}))):!function(e){return(0,v.hasOwnProperty)(e,"submenu")}(l)?((0,p.removeClass)(t,["htSubmenu","htDisabled"]),f(l)?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,p.addClass)(t,"htSubmenu"),f(l)?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,p.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,m.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,p.addClass)(e,"htMenu ".concat(this.options.className)),r&&(0,p.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:"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===u.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,p.isChildOf)(e.target,this.hotMenu.rootElement)?this.close(!0):!this.isAllSubMenusClosed()&&!this.isSubMenu()||(0,p.isChildOf)(e.target,".htMenu")||this.close(!0))}},{key:"onDocumentContextMenu",value:function(e){this.isOpened()&&(0,p.hasClass)(e.target,"htCore")&&(0,p.isChildOf)(e.target,this.hotMenu.rootElement)&&e.preventDefault()}}]),e}();(0,v.mixin)(C,E.default);var w=C;t.default=w},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.TYPE_TEXT=t.TYPE_NUMERIC=t.TYPE_DATE=t.TYPES=void 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,u.getConditionDescriptor)(e)),t.push(n)})),t};var o=r(n(43)),i=n(17),a=n(20),s=n(118),u=n(57),l=n(974);t.CONDITION_NONE=l.CONDITION_NAME;var c=n(626);t.CONDITION_EMPTY=c.CONDITION_NAME;var f=n(975);t.CONDITION_NOT_EMPTY=f.CONDITION_NAME;var d=n(627);t.CONDITION_EQUAL=d.CONDITION_NAME;var h=n(976);t.CONDITION_NOT_EQUAL=h.CONDITION_NAME;var p=n(977);t.CONDITION_GREATER_THAN=p.CONDITION_NAME;var y=n(978);t.CONDITION_GREATER_THAN_OR_EQUAL=y.CONDITION_NAME;var m=n(979);t.CONDITION_LESS_THAN=m.CONDITION_NAME;var g=n(980);t.CONDITION_LESS_THAN_OR_EQUAL=g.CONDITION_NAME;var v=n(628);t.CONDITION_BETWEEN=v.CONDITION_NAME;var E=n(981);t.CONDITION_NOT_BETWEEN=E.CONDITION_NAME;var b=n(982);t.CONDITION_BEGINS_WITH=b.CONDITION_NAME;var T=n(983);t.CONDITION_ENDS_WITH=T.CONDITION_NAME;var C=n(631);t.CONDITION_CONTAINS=C.CONDITION_NAME;var w=n(984);t.CONDITION_NOT_CONTAINS=w.CONDITION_NAME;var R=n(630);t.CONDITION_DATE_BEFORE=R.CONDITION_NAME;var O=n(629);t.CONDITION_DATE_AFTER=O.CONDITION_NAME;var S=n(985);t.CONDITION_TOMORROW=S.CONDITION_NAME;var A=n(986);t.CONDITION_TODAY=A.CONDITION_NAME;var N=n(987);t.CONDITION_YESTERDAY=N.CONDITION_NAME;var _=n(988);t.CONDITION_BY_VALUE=_.CONDITION_NAME;var k=n(989);t.CONDITION_TRUE=k.CONDITION_NAME;var M=n(990);t.CONDITION_FALSE=M.CONDITION_NAME;var I=n(316);t.OPERATION_AND=I.OPERATION_ID;var P=n(632);t.OPERATION_OR=P.OPERATION_ID;var x,D=n(633);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",[l.CONDITION_NAME,s.SEPARATOR,c.CONDITION_NAME,f.CONDITION_NAME,s.SEPARATOR,d.CONDITION_NAME,h.CONDITION_NAME,s.SEPARATOR,p.CONDITION_NAME,y.CONDITION_NAME,m.CONDITION_NAME,g.CONDITION_NAME,v.CONDITION_NAME,E.CONDITION_NAME]),(0,o.default)(x,"text",[l.CONDITION_NAME,s.SEPARATOR,c.CONDITION_NAME,f.CONDITION_NAME,s.SEPARATOR,d.CONDITION_NAME,h.CONDITION_NAME,s.SEPARATOR,b.CONDITION_NAME,T.CONDITION_NAME,s.SEPARATOR,C.CONDITION_NAME,w.CONDITION_NAME]),(0,o.default)(x,"date",[l.CONDITION_NAME,s.SEPARATOR,c.CONDITION_NAME,f.CONDITION_NAME,s.SEPARATOR,d.CONDITION_NAME,h.CONDITION_NAME,s.SEPARATOR,R.CONDITION_NAME,O.CONDITION_NAME,v.CONDITION_NAME,s.SEPARATOR,S.CONDITION_NAME,A.CONDITION_NAME,N.CONDITION_NAME]),x);t.TYPES=L},function(e,t,n){"use strict";n(3),n(2),n(11),n(4),n(19);var r=n(21);t.__esModule=!0,t.SHORT_NAME_FOR_COMPONENT=t.OPERATION_ID=void 0,t.operationResult=u,n(0);var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var u=i?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(30)),i=n(200);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.OPERATION_ID="conjunction";var s=o.FILTERS_LABELS_CONJUNCTION;function u(e,t){return e.every((function(e){return e.func(t)}))}t.SHORT_NAME_FOR_COMPONENT=s,(0,i.registerOperation)("conjunction",s,u)},function(e,t,n){"use strict";n(7);var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(46)),s=r(n(31)),u=r(n(15)),l=r(n(16)),c=r(n(14));n(3),n(0),n(2),n(11),n(4);var f=n(23),d=n(17),h=r(n(201));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,l.default)(this,n)}}var y=new WeakMap,m=function(e){(0,u.default)(n,e);var t=p(n);function n(e,r){var i;return(0,o.default)(this,n),i=t.call(this,e,(0,d.extend)(n.DEFAULTS,r)),y.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=y.get(this),t=this.hot.rootDocument.createElement("div");e.input=this._element.firstChild,(0,f.addClass)(this._element,"htUIInput"),(0,f.addClass)(t,"htUIInputIcon"),this._element.appendChild(t),this.update()}},{key:"update",value:function(){if(this.isBuilt()){var e=y.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()&&y.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,d.clone)({placeholder:"",type:"text",tagName:"input"})}}]),n}(h.default);t.default=m},function(e,t,n){"use strict";n(7),n(53),n(8),n(40),n(19),n(83);var r=n(1);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.Formulas=void 0,n(18),n(0),n(26),n(3),n(55),n(2),n(4),n(37),n(42),n(49),n(138),n(73),n(11);var o=r(n(44)),i=r(n(21)),a=r(n(34)),s=r(n(5)),u=r(n(6)),l=r(n(46)),c=r(n(31)),f=r(n(15)),d=r(n(16)),h=r(n(14)),p=r(n(43)),y=r(n(104)),m=r(n(103)),g=n(50),v=r(n(110)),E=n(88),b=n(47),T=n(32),C=n(1004),w=n(1005),R=n(636),O=n(144),S=n(91),A=r(n(74));function N(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 _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){(0,p.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(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)}}function M(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}t.PLUGIN_KEY="formulas";t.PLUGIN_PRIORITY=260;A.default.getSingleton().register("afterNamedExpressionAdded"),A.default.getSingleton().register("afterNamedExpressionRemoved"),A.default.getSingleton().register("afterSheetAdded"),A.default.getSingleton().register("afterSheetRemoved"),A.default.getSingleton().register("afterSheetRenamed"),A.default.getSingleton().register("afterFormulasValuesUpdate");var I=function(e){return"UndoRedo.undo"===e||"UndoRedo.redo"===e||"auto"===e},P=new WeakMap,x=new WeakMap,D=new WeakMap,L=function(e){(0,f.default)(n,e);var t=k(n);function n(){var e;(0,s.default)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),M((0,l.default)(e),P,{writable:!0,value:!1}),M((0,l.default)(e),x,{writable:!0,value:!1}),M((0,l.default)(e),D,{writable:!0,value:[["valuesUpdated",function(){var t;return(t=e).onEngineValuesUpdated.apply(t,arguments)}],["namedExpressionAdded",function(){var t;return(t=e).onEngineNamedExpressionsAdded.apply(t,arguments)}],["namedExpressionRemoved",function(){var t;return(t=e).onEngineNamedExpressionsRemoved.apply(t,arguments)}],["sheetAdded",function(){var t;return(t=e).onEngineSheetAdded.apply(t,arguments)}],["sheetRenamed",function(){var t;return(t=e).onEngineSheetRenamed.apply(t,arguments)}],["sheetRemoved",function(){var t;return(t=e).onEngineSheetRemoved.apply(t,arguments)}]]}),(0,p.default)((0,l.default)(e),"staticRegister",(0,v.default)("formulas")),(0,p.default)((0,l.default)(e),"engine",null),(0,p.default)((0,l.default)(e),"sheetName",null),e}return(0,u.default)(n,[{key:"sheetId",get:function(){return null===this.sheetName?null:this.engine.getSheetId(this.sheetName)}},{key:"isEnabled",value:function(){return!!this.hot.getSettings().formulas}},{key:"enablePlugin",value:function(){var e,t=this;if(!this.enabled)if(this.engine=null!==(e=(0,C.setupEngine)(this.hot))&&void 0!==e?e:this.engine,this.engine){if(null!==this.sheetName&&!this.engine.doesSheetExist(this.sheetName)){var r=this.addSheet(this.sheetName,this.hot.getSourceDataArray());!1!==r&&(this.sheetName=r)}this.addHook("beforeLoadData",(function(){return t.onBeforeLoadData.apply(t,arguments)})),this.addHook("afterLoadData",(function(){return t.onAfterLoadData.apply(t,arguments)})),this.addHook("modifyData",(function(){return t.onModifyData.apply(t,arguments)})),this.addHook("modifySourceData",(function(){return t.onModifySourceData.apply(t,arguments)})),this.addHook("beforeValidate",(function(){return t.onBeforeValidate.apply(t,arguments)})),this.addHook("afterSetSourceDataAtCell",(function(){return t.onAfterSetSourceDataAtCell.apply(t,arguments)})),this.addHook("afterSetDataAtCell",(function(){return t.onAfterSetDataAtCell.apply(t,arguments)})),this.addHook("afterSetDataAtRowProp",(function(){return t.onAfterSetDataAtCell.apply(t,arguments)})),this.addHook("beforeCreateRow",(function(){return t.onBeforeCreateRow.apply(t,arguments)})),this.addHook("beforeCreateCol",(function(){return t.onBeforeCreateCol.apply(t,arguments)})),this.addHook("afterCreateRow",(function(){return t.onAfterCreateRow.apply(t,arguments)})),this.addHook("afterCreateCol",(function(){return t.onAfterCreateCol.apply(t,arguments)})),this.addHook("beforeRemoveRow",(function(){return t.onBeforeRemoveRow.apply(t,arguments)})),this.addHook("beforeRemoveCol",(function(){return t.onBeforeRemoveCol.apply(t,arguments)})),this.addHook("afterRemoveRow",(function(){return t.onAfterRemoveRow.apply(t,arguments)})),this.addHook("afterRemoveCol",(function(){return t.onAfterRemoveCol.apply(t,arguments)})),this.addHook("beforeUndo",(function(e){"row_move"!==(null==e?void 0:e.actionType)&&t.engine.undo()})),this.addHook("beforeRedo",(function(e){"row_move"!==(null==e?void 0:e.actionType)&&t.engine.redo()})),this.addHook("afterDetachChild",(function(){return t.onAfterDetachChild.apply(t,arguments)})),this.addHook("beforeAutofill",(function(){return t.onBeforeAutofill.apply(t,arguments)})),(0,m.default)(this,D).forEach((function(e){var n=(0,a.default)(e,2),r=n[0],o=n[1];return t.engine.on(r,o)})),(0,c.default)((0,h.default)(n.prototype),"enablePlugin",this).call(this)}else(0,E.warn)("Missing the required `engine` key in the Formulas settings. Please fill it with either an engine class or an engine instance.")}},{key:"disablePlugin",value:function(){var e=this;(0,m.default)(this,D).forEach((function(t){var n=(0,a.default)(t,2),r=n[0],o=n[1];return e.engine.off(r,o)})),(0,C.unregisterEngine)(this.engine,this.hot),this.engine=null,(0,c.default)((0,h.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(e){this.engine.updateConfig((0,R.getEngineSettingsWithOverrides)(this.hot.getSettings()));var t=this.hot.getSettings().formulas;if((0,T.isDefined)(t)&&(0,T.isDefined)(t.sheetName)&&t.sheetName!==this.sheetName&&this.switchSheet(t.sheetName),!e.data&&null===this.sheetName){var r=this.hot.getSettings().formulas.sheetName;r&&this.engine.doesSheetExist(r)?this.switchSheet(this.sheetName):this.sheetName=this.addSheet(null!=r?r:void 0,this.hot.getSourceDataArray())}(0,c.default)((0,h.default)(n.prototype),"updatePlugin",this).call(this,e)}},{key:"destroy",value:function(){var e=this;(0,m.default)(this,D).forEach((function(t){var n,r=(0,a.default)(t,2),o=r[0],i=r[1];return null===(n=e.engine)||void 0===n?void 0:n.off(o,i)})),(0,y.default)(this,D,null),(0,C.unregisterEngine)(this.engine,this.hot),this.engine=null,(0,c.default)((0,h.default)(n.prototype),"destroy",this).call(this)}},{key:"getPhysicalIndexPosition",value:function(e,t,n,r,o){return!o&&e>=n?r+(e-n):t}},{key:"toPhysicalRowPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.getPhysicalIndexPosition(e,this.hot.toPhysicalRow(e),this.hot.countRows(),this.hot.countSourceRows(),t)}},{key:"toPhysicalColumnPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.getPhysicalIndexPosition(e,this.hot.toPhysicalColumn(e),this.hot.countCols(),this.hot.countSourceCols(),t)}},{key:"addSheet",value:function(e,t){if((0,T.isDefined)(t)&&!(0,O.isArrayOfArrays)(t))return(0,E.warn)("The provided data should be an array of arrays."),!1;if(null!=e&&this.engine.doesSheetExist(e))return(0,E.warn)("Sheet with the provided name already exists."),!1;try{var n=this.engine.addSheet(null!=e?e:void 0);return t&&this.engine.setSheetContent(this.engine.getSheetId(n),t),n}catch(e){return(0,E.warn)(e.message),!1}}},{key:"switchSheet",value:function(e){if(this.engine.doesSheetExist(e)){this.sheetName=e;var t=this.engine.getSheetSerialized(this.sheetId);t.length>0&&this.hot.loadData(t,"".concat((0,S.toUpperCaseFirst)("formulas"),".switchSheet"))}else(0,E.error)("The sheet named `".concat(e,"` does not exist, switch aborted."))}},{key:"getCellType",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.sheetId,r=this.hot.toPhysicalRow(e),o=this.hot.toPhysicalColumn(t);return null!==r&&null!==o?this.engine.getCellType({sheet:n,row:r,col:o}):"EMPTY"}},{key:"isFormulaCellType",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.sheetId,r=this.hot.toPhysicalRow(e),o=this.hot.toPhysicalColumn(t);return null!==r&&null!==o&&this.engine.doesCellHaveFormula({sheet:n,row:r,col:o})}},{key:"renderDependentSheets",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=new Set;e.forEach((function(e){var t,n=null==e||null===(t=e.address)||void 0===t?void 0:t.sheet;void 0!==n&&(r.has(n)||r.add(n))})),(0,C.getRegisteredHotInstances)(this.engine).forEach((function(e,o){var i;(n||o!==t.sheetId)&&r.has(o)&&(e.render(),null===(i=e.view)||void 0===i||i.adjustElementsSize())}))}},{key:"validateDependentCells",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=function(e){var t,n=null!==(t=null==e?void 0:e.address)&&void 0!==t?t:{},r=n.row,o=n.col,i=n.sheet;return(0,T.isDefined)(i)?"".concat(i,":").concat(r,"x").concat(o):""},o=new Set(n.map((function(e){return r(e)})));e.forEach((function(e){var n,i,a=null!==(n=e.address)&&void 0!==n?n:{},s=a.row,u=a.col,l=(0,T.isDefined)(s)?t.hot.toVisualRow(s):null,c=(0,T.isDefined)(u)?t.hot.toVisualColumn(u):null;if(null!==l&&null!==c){var f=null==e||null===(i=e.address)||void 0===i?void 0:i.sheet,d=r(e);if(void 0!==f&&!o.has(d)){var h=(0,C.getRegisteredHotInstances)(t.engine).get(f);if(!h)return;h.validateCell(h.getDataAtCell(l,c),h.getCellMeta(l,c),(function(){}))}}}))}},{key:"syncChangeWithEngine",value:function(e,t,n){var r={row:this.toPhysicalRowPosition(e),col:this.toPhysicalColumnPosition(t),sheet:this.sheetId};if(this.engine.isItPossibleToSetCellContents(r))return this.engine.setCellContents(r,n);(0,E.warn)("Not possible to set cell data at ".concat(JSON.stringify(r)))}},{key:"onBeforeValidate",value:function(e,t,n){var r=this.hot.propToCol(n);if(this.isFormulaCellType(t,r)){var o={row:this.hot.toPhysicalRow(t),col:this.hot.toPhysicalColumn(r),sheet:this.sheetId},a=this.engine.getCellValue(o);return"object"===(0,i.default)(a)&&null!==a?a.value:a}return e}},{key:"onBeforeAutofill",value:function(e,t,n){var r=this,o=function(e){return _(_({},e),{},{sheet:r.sheetId})},i={start:o(t.getTopStartCorner()),end:o(t.getBottomEndCorner())},a={start:o(n.getTopStartCorner()),end:o(n.getBottomEndCorner())};return!1!==this.engine.isItPossibleToSetCellContents(a)&&this.engine.getFillRangeData(i,a)}},{key:"onBeforeLoadData",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";n.includes((0,S.toUpperCaseFirst)("formulas"))||(0,y.default)(this,x,(0,T.isUndefined)(this.hot.getSettings().data))}},{key:"onAfterLoadData",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!n.includes((0,S.toUpperCaseFirst)("formulas")))if(this.sheetName=(0,C.setupSheet)(this.engine,this.hot.getSettings().formulas.sheetName),(0,m.default)(this,x))this.switchSheet(this.sheetName);else{var r=this.hot.getSourceDataArray();if(this.engine.isItPossibleToReplaceSheetContent(this.sheetId,r)){(0,y.default)(this,P,!0);var o=this.engine.setSheetContent(this.sheetId,this.hot.getSourceDataArray());this.renderDependentSheets(o),(0,y.default)(this,P,!1)}}}},{key:"onModifyData",value:function(e,t,n,r){if("get"===r&&!(0,m.default)(this,P)&&null!==this.sheetName&&this.engine.doesSheetExist(this.sheetName)){var o=this.hot.toVisualRow(e);if(!this.isFormulaCellType(o,t))if("ARRAY"!==this.getCellType(o,t))return void((0,w.isEscapedFormulaExpression)(n.value)&&(n.value=(0,w.unescapeFormulaExpression)(n.value)));var a={row:e,col:this.toPhysicalColumnPosition(t),sheet:this.sheetId},s=this.engine.getCellValue(a),u="object"===(0,i.default)(s)&&null!==s?s.value:s;n.value=u}}},{key:"onModifySourceData",value:function(e,t,n,r){if("get"===r&&!(0,m.default)(this,P)&&null!==this.sheetName&&this.engine.doesSheetExist(this.sheetName)){var o=this.hot.toVisualRow(e),i=this.hot.propToCol(t);if(!this.isFormulaCellType(o,i))if("ARRAY"!==this.getCellType(o,i))return;var a=this.engine.getSheetDimensions(this.engine.getSheetId(this.sheetName));if(0!==a.width||0!==a.height){var s={row:e,col:this.toPhysicalColumnPosition(i),sheet:this.sheetId};n.value=this.engine.getCellSerialized(s)}}}},{key:"onAfterSetDataAtCell",value:function(e,t){var n=this;if(!I(t)){var r=[],o=[],i=this.engine.batch((function(){e.forEach((function(e){var t=(0,a.default)(e,4),i=t[0],s=t[1],u=t[3],l=n.hot.propToCol(s),c=n.hot.toPhysicalRow(i),f=n.hot.toPhysicalColumn(l),d={row:c,col:f,sheet:n.sheetId};null!==c&&null!==f?n.syncChangeWithEngine(i,l,u):r.push([i,l,u]),o.push({address:d})}))}));r.length&&this.hot.addHookOnce("afterChange",(function(){var e=n.engine.batch((function(){r.forEach((function(e){var t=(0,a.default)(e,3),r=t[0],o=t[1],i=t[2];n.syncChangeWithEngine(r,o,i)}))}));n.renderDependentSheets(e,!0)})),this.renderDependentSheets(i),this.validateDependentCells(i,o)}}},{key:"onAfterSetSourceDataAtCell",value:function(e,t){var n=this;if(!I(t)){var r=[],i=[];e.forEach((function(e){var t=(0,a.default)(e,4),s=t[0],u=t[1],l=t[3],c=n.hot.propToCol(u);if((0,b.isNumeric)(c)){var f={row:s,col:n.toPhysicalColumnPosition(c),sheet:n.sheetId};n.engine.isItPossibleToSetCellContents(f)?(i.push({address:f}),r.push.apply(r,(0,o.default)(n.engine.setCellContents(f,l)))):(0,E.warn)("Not possible to set source cell data at ".concat(JSON.stringify(f)))}})),this.renderDependentSheets(r),this.validateDependentCells(r,i)}}},{key:"onBeforeCreateRow",value:function(e,t){if(null===this.sheetId||!this.engine.doesSheetExist(this.sheetName)||!this.engine.isItPossibleToAddRows(this.sheetId,[this.toPhysicalRowPosition(e),t]))return!1}},{key:"onBeforeCreateCol",value:function(e,t){if(null===this.sheetId||!this.engine.doesSheetExist(this.sheetName)||!this.engine.isItPossibleToAddColumns(this.sheetId,[this.toPhysicalColumnPosition(e),t]))return!1}},{key:"onBeforeRemoveRow",value:function(e,t,n){var r=this;return!1!==n.every((function(e){return r.engine.isItPossibleToRemoveRows(r.sheetId,[e,1])}))&&void 0}},{key:"onBeforeRemoveCol",value:function(e,t,n){var r=this;return!1!==n.every((function(e){return r.engine.isItPossibleToRemoveColumns(r.sheetId,[e,1])}))&&void 0}},{key:"onAfterCreateRow",value:function(e,t,n){if(!I(n)){var r=this.engine.addRows(this.sheetId,[this.toPhysicalRowPosition(e),t]);this.renderDependentSheets(r)}}},{key:"onAfterCreateCol",value:function(e,t,n){if(!I(n)){var r=this.engine.addColumns(this.sheetId,[this.toPhysicalColumnPosition(e),t]);this.renderDependentSheets(r)}}},{key:"onAfterRemoveRow",value:function(e,t,n,r){var o=this;if(!I(r)){var i=n.sort().reverse(),a=this.engine.batch((function(){i.forEach((function(e){o.engine.removeRows(o.sheetId,[e,1])}))}));this.renderDependentSheets(a)}}},{key:"onAfterRemoveCol",value:function(e,t,n,r){var o=this;if(!I(r)){var i=n.sort().reverse(),a=this.engine.batch((function(){i.forEach((function(e){o.engine.removeColumns(o.sheetId,[e,1])}))}));this.renderDependentSheets(a)}}},{key:"onAfterDetachChild",value:function(e,t,n){var r,o=this;(0,y.default)(this,P,!0);var i=this.hot.getSourceDataArray(n,0,n+((null===(r=t.__children)||void 0===r?void 0:r.length)||0),this.hot.countSourceCols());(0,y.default)(this,P,!1),i.forEach((function(e,t){e.forEach((function(e,r){o.engine.setCellContents({col:r,row:n+t,sheet:o.sheetId},[[e]])}))}))}},{key:"onEngineValuesUpdated",value:function(e){this.hot.runHooks("afterFormulasValuesUpdate",e)}},{key:"onEngineNamedExpressionsAdded",value:function(e,t){this.hot.runHooks("afterNamedExpressionAdded",e,t)}},{key:"onEngineNamedExpressionsRemoved",value:function(e,t){this.hot.runHooks("afterNamedExpressionRemoved",e,t)}},{key:"onEngineSheetAdded",value:function(e){this.hot.runHooks("afterSheetAdded",e)}},{key:"onEngineSheetRenamed",value:function(e,t){this.hot.runHooks("afterSheetRenamed",e,t)}},{key:"onEngineSheetRemoved",value:function(e,t){this.hot.runHooks("afterSheetRemoved",e,t)}}],[{key:"PLUGIN_KEY",get:function(){return"formulas"}},{key:"PLUGIN_PRIORITY",get:function(){return 260}}]),n}(g.BasePlugin);t.Formulas=L},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o,i,a,s,u=r(n(79)),l=r(n(5)),c=r(n(6)),f=n(80),d=function(){function e(t,n,r,o,i,a){(0,l.default)(this,e),this.row=t,this.col=n,this.rowspan=r,this.colspan=o,this.removed=!1,this.cellCoordsFactory=i,this.cellRangeFactory=a}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),u=this[i],l=this[i]+this[o]-1;if(u>=t&&(this[i]+=n),n>0)t<=l&&t>u&&(this[o]+=n);else if(n<0){if(a<=u&&s>=l)return this.removed=!0,!1;if(u>=a&&u<=s){var c=s-u+1,f=Math.abs(n)-c;this[i]-=f+n,this[o]-=c}else if(u<=a&&l>=s)this[o]+=n;else if(u<=a&&l>=a&&l<s){var d=l-a+1;this[o]-=d}}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 this.cellRangeFactory(this.cellCoordsFactory(this.row,this.col),this.cellCoordsFactory(this.row,this.col),this.cellCoordsFactory(this.getLastRow(),this.getLastColumn()))}}],[{key:"NEGATIVE_VALUES_WARNING",value:function(e){return(0,f.toSingleLine)(o||(o=(0,u.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,f.toSingleLine)(i||(i=(0,u.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,f.toSingleLine)(a||(a=(0,u.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,f.toSingleLine)(s||(s=(0,u.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=d},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(6)),i=r(n(5)),a=(0,o.default)((function e(t,n){(0,i.default)(this,e),this.hot=n,this.plugin=t}));t.default=a},function(e,t,n){var r=n(29),o=n(70),i=n(64),a=n(168),s=n(129),u=n(646),l=n(58),c=r.TypeError,f=l("toPrimitive");e.exports=function(e,t){if(!i(e)||a(e))return e;var n,r=s(e,f);if(r){if(void 0===t&&(t="default"),n=o(r,e,t),!i(n)||a(n))return n;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),u(e,t)}},function(e,t,n){var r=n(147);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var r=n(69),o=n(39),i=n(205);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(69),o=n(39);e.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(e,t,n){var r=n(29),o=n(60),i=n(241),a=r.WeakMap;e.exports=o(a)&&/native code/.test(i(a))},function(e,t,n){var r=n(62),o=n(327),i=n(112),a=n(84);e.exports=function(e,t,n){for(var s=o(t),u=a.f,l=i.f,c=0;c<s.length;c++){var f=s[c];r(e,f)||n&&r(n,f)||u(e,f,l(t,f))}}},function(e,t,n){var r=n(107),o=n(36),i=n(150),a=n(207),s=n(65),u=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?u(t,n(e)):t}},function(e,t,n){var r=n(36),o=n(62),i=n(93),a=n(242).indexOf,s=n(172),u=r([].push);e.exports=function(e,t){var n,r=i(e),l=0,c=[];for(n in r)!o(s,n)&&o(r,n)&&u(c,n);for(;t.length>l;)o(r,n=t[l++])&&(~a(c,n)||u(c,n));return c}},function(e,t,n){var r=n(39);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){var r=n(29),o=n(211),i=n(170),a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not a constructor")}},function(e,t,n){var r=n(69),o=n(324),i=n(84),a=n(65),s=n(93),u=n(174);t.f=r&&!o?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),o=u(t),l=o.length,c=0;l>c;)i.f(e,n=o[c++],r[n]);return e}},function(e,t,n){var r=n(107);e.exports=r("document","documentElement")},function(e,t,n){var r=n(70),o=n(65),i=n(129);e.exports=function(e,t,n){var a,s;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return o(a),n}},function(e,t,n){var r=n(58),o=n(178),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(29),o=n(70),i=n(148),a=n(65),s=n(170),u=n(251),l=r.TypeError;e.exports=function(e,t){var n=arguments.length<2?u(e):t;if(i(n))return a(o(n,e));throw l(s(e)+" is not iterable")}},function(e,t,n){var r=n(58)("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(39),s=n(60),u=n(133),l=n(209),c=n(96),f=n(58),d=n(130),h=f("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(r=o):p=!0),null==r||a((function(){var e={};return r[h].call(e)!==e}))?r={}:d&&(r=u(r)),s(r[h])||c(r,h,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},function(e,t,n){var r=n(36),o=n(65),i=n(653);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return o(n),i(r),t?e(n,r):n.__proto__=r,n}}():void 0)},function(e,t,n){"use strict";var r=n(65);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),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){var r=n(39),o=n(29).RegExp;e.exports=r((function(){var e=o(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},function(e,t,n){var r=n(39),o=n(29).RegExp;e.exports=r((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},function(e,t,n){var r=n(58);t.f=r},function(e,t,n){var r=n(655),o=n(62),i=n(342),a=n(84).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){var r=n(147);e.exports=r&&!!Symbol.for&&!!Symbol.keyFor},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,n){var r=n(205)("span").classList,o=r&&r.constructor&&r.constructor.prototype;e.exports=o===Object.prototype?void 0:o},function(e,t,n){"use strict";n.r(t),n.d(t,"DependencyGraph",(function(){return k}));n(85),n(37),n(25),n(3),n(0),n(55),n(2),n(4),n(18),n(26),n(40),n(22),n(8),n(9),n(10),n(13),n(12),n(7);var r=n(86),o=n(224),i=n(24),a=n(271),s=n(45),u=n(51),l=n(78),c=n(72),f=n(186),d=n(125),h=n(123),p=n(274),y=n(275),m=n(697),g=n(115),v=n(277),E=n(278),b=n(279);function T(e,t,n){return(T=C()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&w(o,n.prototype),o}).apply(null,arguments)}function C(){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}}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function R(e){return function(e){if(Array.isArray(e))return N(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||A(e)||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.")}()}function O(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=A(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;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,t)||A(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 A(e,t){if(e){if("string"==typeof e)return N(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)?N(e,t):void 0}}function N(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 _(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)}}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
var k=function(){function e(t,n,s,u,l,f,d,p){var y=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.addressMapping=t,this.rangeMapping=n,this.sheetMapping=s,this.arrayMapping=u,this.stats=l,this.lazilyTransformingAstService=f,this.functionRegistry=d,this.namedExpressions=p,this.changes=a.ContentChanges.empty(),this.dependencyQueryAddresses=function(e){if(e instanceof h.RangeVertex)return y.rangeDependencyQuery(e).map((function(e){var t=S(e,2),n=t[0];t[1];return n}));var t=y.formulaDependencyQuery(e);if(void 0!==t){var n=S(t,2),o=n[0];return n[1].map((function(e){return e instanceof c.NamedExpressionDependency?y.namedExpressions.namedExpressionOrPlaceholder(e.name,o.sheet).address:Object(i.isSimpleCellAddress)(e)?e:Object(r.simpleCellRange)(e.start,e.end)}))}return[]},this.dependencyQueryVertices=function(e){if(e instanceof h.RangeVertex)return y.rangeDependencyQuery(e).map((function(e){var t=S(e,2);t[0];return t[1]}));var t=y.formulaDependencyQuery(e);if(void 0!==t){var n=S(t,2),o=n[0];return n[1].map((function(e){if(e instanceof r.AbsoluteCellRange)return y.rangeMapping.fetchRange(e.start,e.end);if(e instanceof c.NamedExpressionDependency){var t=y.namedExpressions.namedExpressionOrPlaceholder(e.name,o.sheet);return y.addressMapping.fetchCell(t.address)}return y.addressMapping.fetchCell(e)}))}return[]},this.rangeDependencyQuery=function(e){var t,n=[],o=y.rangeMapping.findSmallerRange(e.range),i=o.smallerRangeVertex,a=o.restRange;void 0!==i&&y.graph.adjacentNodes(i).has(e)?(t=a,n.push([new r.AbsoluteCellRange(i.start,i.end),i])):t=e.range;var s,u=O(t.addresses(y));try{for(u.s();!(s=u.n()).done;){var l=s.value,c=y.addressMapping.getCell(l);c instanceof h.EmptyCellVertex&&(c.address=l),void 0!==c&&n.push([l,c])}}catch(e){u.e(e)}finally{u.f()}return n},this.formulaDependencyQuery=function(e){var t,n;if(e instanceof g.FormulaVertex){n=e.getAddress(y.lazilyTransformingAstService),t=e.getFormula(y.lazilyTransformingAstService);var r=Object(c.collectDependencies)(t,y.functionRegistry);return[n,Object(o.absolutizeDependencies)(r,n)]}},this.graph=new v.Graph(this.dependencyQueryVertices)}var t,n,C;return t=e,C=[{key:"buildEmpty",value:function(t,n,r,o,i){return new e(new p.AddressMapping(n.chooseAddressMappingPolicy),new E.RangeMapping,new b.SheetMapping(n.translationPackage),new y.ArrayMapping,i,t,r,o)}}],(n=[{key:"setFormulaToCell",value:function(e,t,n,r,o,i){var a=g.FormulaVertex.fromAst(t,e,r,this.lazilyTransformingAstService.version());return this.exchangeOrAddFormulaVertex(a),this.processCellDependencies(n,a),this.graph.markNodeAsSpecialRecentlyChanged(a),o&&this.markAsVolatile(a),i&&this.markAsDependentOnStructureChange(a),this.correctInfiniteRangesDependency(e),this.getAndClearContentChanges()}},{key:"setParsingErrorToCell",value:function(e,t){var n=this.shrinkPossibleArrayAndGetCell(e);return this.exchangeOrAddGraphNode(n,t),this.addressMapping.setCell(e,t),this.graph.markNodeAsSpecialRecentlyChanged(t),this.correctInfiniteRangesDependency(e),this.getAndClearContentChanges()}},{key:"setValueToCell",value:function(e,t){var n=this.shrinkPossibleArrayAndGetCell(e);if(n instanceof h.ArrayVertex&&this.arrayMapping.removeArray(n.getRange()),n instanceof h.ValueCellVertex)n.getValues().rawValue!==t.rawValue&&(n.setValues(t),this.graph.markNodeAsSpecialRecentlyChanged(n));else{var r=new h.ValueCellVertex(t.parsedValue,t.rawValue);this.exchangeOrAddGraphNode(n,r),this.addressMapping.setCell(e,r),this.graph.markNodeAsSpecialRecentlyChanged(r)}return this.correctInfiniteRangesDependency(e),this.getAndClearContentChanges()}},{key:"setCellEmpty",value:function(e){var t=this.shrinkPossibleArrayAndGetCell(e);if(void 0===t)return a.ContentChanges.empty();if(this.graph.adjacentNodes(t).size>0){var n=new h.EmptyCellVertex(e);this.exchangeGraphNode(t,n),0===this.graph.adjacentNodesCount(n)?(this.removeVertex(n),this.addressMapping.removeCell(e)):(this.graph.markNodeAsSpecialRecentlyChanged(n),this.addressMapping.setCell(e,n))}else this.removeVertex(t),this.addressMapping.removeCell(e);return this.getAndClearContentChanges()}},{key:"ensureThatVertexIsNonArrayCellVertex",value:function(e){if(e instanceof h.ArrayVertex)throw new Error("Illegal operation")}},{key:"clearRecentlyChangedVertices",value:function(){this.graph.clearSpecialNodesRecentlyChanged()}},{key:"verticesToRecompute",value:function(){return new Set([].concat(R(this.graph.specialNodesRecentlyChanged),R(this.volatileVertices())))}},{key:"processCellDependencies",value:function(e,t){var n=this;e.forEach((function(e){if(e instanceof r.AbsoluteCellRange){var o=e,i=n.getRange(o.start,o.end);void 0===i&&(i=new h.RangeVertex(o),n.rangeMapping.setRange(i)),n.graph.addNode(i),o.isFinite()||n.graph.markNodeAsInfiniteRange(i);var a=n.rangeMapping.findSmallerRange(o),s=a.smallerRangeVertex,u=a.restRange;if(void 0!==s){if(n.graph.addEdge(s,i),i.bruteForce){i.bruteForce=!1;var l,f=O(o.addresses(n));try{for(f.s();!(l=f.n()).done;){var d=l.value;n.graph.removeEdge(n.fetchCell(d),i)}}catch(e){f.e(e)}finally{f.f()}}}else i.bruteForce=!0;var p=n.arrayMapping.getArray(u);if(void 0!==p)n.graph.addEdge(p,i);else{var y,m=O(u.addresses(n));try{for(m.s();!(y=m.n()).done;){var g=y.value;n.graph.addEdge(n.fetchCellOrCreateEmpty(g),i)}}catch(e){m.e(e)}finally{m.f()}}n.graph.addEdge(i,t),o.isFinite()&&n.correctInfiniteRangesDependenciesByRangeVertex(i)}else if(e instanceof c.NamedExpressionDependency){var v=t.getAddress(n.lazilyTransformingAstService).sheet,E=n.fetchNamedExpressionVertex(e.name,v);n.graph.addEdge(E,t)}else n.graph.addEdge(n.fetchCellOrCreateEmpty(e),t)}))}},{key:"fetchNamedExpressionVertex",value:function(e,t){var n=this.namedExpressions.namedExpressionOrPlaceholder(e,t);return this.fetchCellOrCreateEmpty(n.address)}},{key:"exchangeNode",value:function(e,t){var n=this.fetchCellOrCreateEmpty(e),r=this.fetchCellOrCreateEmpty(t);this.addressMapping.removeCell(e),this.exchangeGraphNode(n,r)}},{key:"correctInfiniteRangesDependency",value:function(e){var t,n=void 0,r=O(this.graph.infiniteRanges);try{for(r.s();!(t=r.n()).done;){var o=t.value;o.range.addressInRange(e)&&(n=null!=n?n:this.fetchCellOrCreateEmpty(e),this.graph.addEdge(n,o))}}catch(e){r.e(e)}finally{r.f()}}},{key:"fetchCellOrCreateEmpty",value:function(e){var t=this.addressMapping.getCell(e);return void 0===t&&(t=new h.EmptyCellVertex(e),this.graph.addNode(t),this.addressMapping.setCell(e,t)),t}},{key:"removeRows",value:function(e){var t=this;this.stats.measure(d.StatType.ADJUSTING_GRAPH,(function(){var n,r=O(t.addressMapping.entriesFromRowsSpan(e));try{for(r.s();!(n=r.n()).done;){var o,i=S(n.value,2),a=i[0],s=i[1],u=O(t.graph.adjacentNodes(s));try{for(u.s();!(o=u.n()).done;){var l=o.value;t.graph.markNodeAsSpecialRecentlyChanged(l)}}catch(e){u.e(e)}finally{u.f()}if(s instanceof h.ArrayVertex){if(!s.isLeftCorner(a))continue;t.shrinkArrayToCorner(s),t.arrayMapping.removeArray(s.getRange())}t.removeVertex(s)}}catch(e){r.e(e)}finally{r.f()}})),this.stats.measure(d.StatType.ADJUSTING_ADDRESS_MAPPING,(function(){t.addressMapping.removeRows(e)}));var n=this.stats.measure(d.StatType.ADJUSTING_RANGES,(function(){var n=t.truncateRanges(e,(function(e){return e.row}));return t.getArrayVerticesRelatedToRanges(n)}));return this.stats.measure(d.StatType.ADJUSTING_ARRAY_MAPPING,(function(){t.fixArraysAfterRemovingRows(e.sheet,e.rowStart,e.numberOfRows)})),this.addStructuralNodesToChangeSet(),{affectedArrays:n,contentChanges:this.getAndClearContentChanges()}}},{key:"removeSheet",value:function(e){var t,n=this,r=new Set,o=O(this.addressMapping.sheetEntries(e));try{for(o.s();!(t=o.n()).done;){var i=S(t.value,2),a=i[0],s=i[1];if(s instanceof h.ArrayVertex){if(r.has(s))continue;r.add(s)}var u,l=O(this.graph.adjacentNodes(s));try{for(l.s();!(u=l.n()).done;){var c=u.value;this.graph.markNodeAsSpecialRecentlyChanged(c)}}catch(e){l.e(e)}finally{l.f()}this.removeVertex(s),this.addressMapping.removeCell(a)}}catch(e){o.e(e)}finally{o.f()}this.stats.measure(d.StatType.ADJUSTING_ARRAY_MAPPING,(function(){var e,t=O(r.values());try{for(t.s();!(e=t.n()).done;){var o=e.value;n.arrayMapping.removeArray(o.getRange())}}catch(e){t.e(e)}finally{t.f()}})),this.stats.measure(d.StatType.ADJUSTING_RANGES,(function(){var t,r=O(n.rangeMapping.removeRangesInSheet(e));try{for(r.s();!(t=r.n()).done;){var o=t.value;n.removeVertex(o)}}catch(e){r.e(e)}finally{r.f()}n.stats.measure(d.StatType.ADJUSTING_ADDRESS_MAPPING,(function(){n.addressMapping.removeSheet(e)}))})),this.addStructuralNodesToChangeSet()}},{key:"clearSheet",value:function(e){var t,n=new Set,r=O(this.addressMapping.sheetEntries(e));try{for(r.s();!(t=r.n()).done;){var o=S(t.value,2),i=o[0],a=o[1];a instanceof h.ArrayVertex?n.add(a):this.setCellEmpty(i)}}catch(e){r.e(e)}finally{r.f()}var s,u=O(n.values());try{for(u.s();!(s=u.n()).done;){var l=s.value;this.setArrayEmpty(l)}}catch(e){u.e(e)}finally{u.f()}this.addStructuralNodesToChangeSet()}},{key:"removeColumns",value:function(e){var t=this;this.stats.measure(d.StatType.ADJUSTING_GRAPH,(function(){var n,r=O(t.addressMapping.entriesFromColumnsSpan(e));try{for(r.s();!(n=r.n()).done;){var o,i=S(n.value,2),a=i[0],s=i[1],u=O(t.graph.adjacentNodes(s));try{for(u.s();!(o=u.n()).done;){var l=o.value;t.graph.markNodeAsSpecialRecentlyChanged(l)}}catch(e){u.e(e)}finally{u.f()}if(s instanceof h.ArrayVertex){if(!s.isLeftCorner(a))continue;t.shrinkArrayToCorner(s),t.arrayMapping.removeArray(s.getRange())}t.removeVertex(s)}}catch(e){r.e(e)}finally{r.f()}})),this.stats.measure(d.StatType.ADJUSTING_ADDRESS_MAPPING,(function(){t.addressMapping.removeColumns(e)}));var n=this.stats.measure(d.StatType.ADJUSTING_RANGES,(function(){var n=t.truncateRanges(e,(function(e){return e.col}));return t.getArrayVerticesRelatedToRanges(n)}));return this.stats.measure(d.StatType.ADJUSTING_ARRAY_MAPPING,(function(){return t.fixArraysAfterRemovingColumns(e.sheet,e.columnStart,e.numberOfColumns)})),this.addStructuralNodesToChangeSet(),{affectedArrays:n,contentChanges:this.getAndClearContentChanges()}}},{key:"addRows",value:function(e){var t=this;this.stats.measure(d.StatType.ADJUSTING_ADDRESS_MAPPING,(function(){t.addressMapping.addRows(e.sheet,e.rowStart,e.numberOfRows)}));var n=this.stats.measure(d.StatType.ADJUSTING_RANGES,(function(){var n=t.rangeMapping.moveAllRangesInSheetAfterRowByRows(e.sheet,e.rowStart,e.numberOfRows);return t.fixRangesWhenAddingRows(e.sheet,e.rowStart,e.numberOfRows),t.getArrayVerticesRelatedToRanges(n.verticesWithChangedSize)}));this.stats.measure(d.StatType.ADJUSTING_ARRAY_MAPPING,(function(){t.fixArraysAfterAddingRow(e.sheet,e.rowStart,e.numberOfRows)}));var r,o=O(this.addressMapping.verticesFromRowsSpan(e));try{for(o.s();!(r=o.n()).done;){var i=r.value;this.graph.markNodeAsSpecialRecentlyChanged(i)}}catch(e){o.e(e)}finally{o.f()}return this.addStructuralNodesToChangeSet(),{affectedArrays:n}}},{key:"addColumns",value:function(e){var t=this;this.stats.measure(d.StatType.ADJUSTING_ADDRESS_MAPPING,(function(){t.addressMapping.addColumns(e.sheet,e.columnStart,e.numberOfColumns)}));var n=this.stats.measure(d.StatType.ADJUSTING_RANGES,(function(){var n=t.rangeMapping.moveAllRangesInSheetAfterColumnByColumns(e.sheet,e.columnStart,e.numberOfColumns);return t.fixRangesWhenAddingColumns(e.sheet,e.columnStart,e.numberOfColumns),t.getArrayVerticesRelatedToRanges(n.verticesWithChangedSize)}));this.stats.measure(d.StatType.ADJUSTING_ARRAY_MAPPING,(function(){return t.fixArraysAfterAddingColumn(e.sheet,e.columnStart,e.numberOfColumns)}));var r,o=O(this.addressMapping.verticesFromColumnsSpan(e));try{for(o.s();!(r=o.n()).done;){var i=r.value;this.graph.markNodeAsSpecialRecentlyChanged(i)}}catch(e){o.e(e)}finally{o.f()}return this.addStructuralNodesToChangeSet(),{affectedArrays:n,contentChanges:this.getAndClearContentChanges()}}},{key:"ensureNoArrayInRange",value:function(e){if(this.arrayMapping.isFormulaArrayInRange(e))throw Error("It is not possible to move / replace cells with array")}},{key:"isThereSpaceForArray",value:function(e){var t=e.getRangeOrUndef();if(void 0===t)return!1;var n,r=O(t.addresses(this));try{for(r.s();!(n=r.n()).done;){var o=n.value,i=this.addressMapping.getCell(o);if(void 0!==i&&!(i instanceof h.EmptyCellVertex)&&i!==e)return!1}}catch(e){r.e(e)}finally{r.f()}return!0}},{key:"moveCells",value:function(e,t,n,r){var o,a=O(e.addressesWithDirection(t,n,this));try{for(a.s();!(o=a.n()).done;){var s=o.value,u=Object(i.simpleCellAddress)(r,s.col+t,s.row+n),l=this.addressMapping.getCell(s),c=this.addressMapping.getCell(u);if(this.addressMapping.removeCell(s),void 0!==l){this.graph.markNodeAsSpecialRecentlyChanged(l),this.addressMapping.setCell(u,l);var f,d=void 0,p=O(this.graph.adjacentNodes(l));try{for(p.s();!(f=p.n()).done;){var y=f.value;y instanceof h.RangeVertex&&!e.containsRange(y.range)&&(d=null!=d?d:this.fetchCellOrCreateEmpty(s),this.graph.addEdge(d,y),this.graph.removeEdge(l,y))}}catch(e){p.e(e)}finally{p.f()}d&&(this.graph.markNodeAsSpecialRecentlyChanged(d),this.addressMapping.setCell(s,d))}if(void 0!==c){void 0===l&&this.addressMapping.removeCell(u);var m,g=O(this.graph.adjacentNodes(c));try{for(g.s();!(m=g.n()).done;){var v=m.value;l=null!=l?l:this.fetchCellOrCreateEmpty(u),this.graph.addEdge(l,v),this.graph.markNodeAsSpecialRecentlyChanged(l)}}catch(e){g.e(e)}finally{g.f()}this.removeVertex(c)}}}catch(e){a.e(e)}finally{a.f()}var E,b=O(this.rangeMapping.rangeVerticesContainedInRange(e));try{for(b.s();!(E=b.n()).done;){var T,C=E.value,w=O(this.graph.adjacentNodes(C));try{for(w.s();!(T=w.n()).done;){var R=T.value;if(R instanceof h.RangeVertex&&!e.containsRange(R.range)){this.graph.removeEdge(C,R);var S,A=O(C.range.addresses(this));try{for(A.s();!(S=A.n()).done;){var N=S.value,_=this.fetchCellOrCreateEmpty(N);this.graph.addEdge(_,R),this.addressMapping.setCell(N,_),this.graph.markNodeAsSpecialRecentlyChanged(_)}}catch(e){A.e(e)}finally{A.f()}}}}catch(e){w.e(e)}finally{w.f()}}}catch(e){b.e(e)}finally{b.f()}this.rangeMapping.moveRangesInsideSourceRange(e,t,n,r)}},{key:"setArrayEmpty",value:function(e){var t,n=r.AbsoluteCellRange.spanFrom(e.getAddress(this.lazilyTransformingAstService),e.width,e.height),o=this.graph.adjacentNodes(e),i=O(n.addresses(this));try{for(i.s();!(t=i.n()).done;){var a=t.value;this.addressMapping.removeCell(a)}}catch(e){i.e(e)}finally{i.f()}var s,u=O(o.values());try{for(u.s();!(s=u.n()).done;){var l,c=s.value,f=Object(m.collectAddressesDependentToRange)(this.functionRegistry,c,e.getRange(),this.lazilyTransformingAstService,this),d=O(f);try{for(d.s();!(l=d.n()).done;){var h=l.value,p=this.fetchCellOrCreateEmpty(h);this.graph.addEdge(p,c)}}catch(e){d.e(e)}finally{d.f()}f.length>0&&this.graph.markNodeAsSpecialRecentlyChanged(c)}}catch(e){u.e(e)}finally{u.f()}this.removeVertex(e),this.arrayMapping.removeArray(e.getRange())}},{key:"addVertex",value:function(e,t){this.graph.addNode(t),this.addressMapping.setCell(e,t)}},{key:"addArrayVertex",value:function(e,t){this.graph.addNode(t),this.setAddressMappingForArrayVertex(t,e)}},{key:"arrayFormulaNodes",value:regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=O(this.graph.nodes),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=10;break}if(!((r=n.value)instanceof h.ArrayVertex)){e.next=8;break}return e.next=8,r;case 8:e.next=3;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),t.e(e.t0);case 15:return e.prev=15,t.f(),e.finish(15);case 18:case"end":return e.stop()}}),e,this,[[1,12,15,18]])}))},{key:"entriesFromRowsSpan",value:regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this.addressMapping.entriesFromRowsSpan(t),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"entriesFromColumnsSpan",value:regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this.addressMapping.entriesFromColumnsSpan(t),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"existsVertex",value:function(e){return this.addressMapping.has(e)}},{key:"fetchCell",value:function(e){return this.addressMapping.fetchCell(e)}},{key:"getCell",value:function(e){return this.addressMapping.getCell(e)}},{key:"getCellValue",value:function(e){return this.addressMapping.getCellValue(e)}},{key:"getRawValue",value:function(e){return this.addressMapping.getRawValue(e)}},{key:"getScalarValue",value:function(e){var t=this.addressMapping.getCellValue(e);return t instanceof l.SimpleRangeValue?new i.CellError(i.ErrorType.VALUE,s.ErrorMessage.ScalarExpected):t}},{key:"existsEdge",value:function(e,t){return this.graph.existsEdge(e,t)}},{key:"getSheetId",value:function(e){return this.sheetMapping.fetch(e)}},{key:"getSheetHeight",value:function(e){return this.addressMapping.getHeight(e)}},{key:"getSheetWidth",value:function(e){return this.addressMapping.getWidth(e)}},{key:"getArray",value:function(e){return this.arrayMapping.getArray(e)}},{key:"setArray",value:function(e,t){this.arrayMapping.setArray(e,t)}},{key:"getRange",value:function(e,t){return this.rangeMapping.getRange(e,t)}},{key:"topSortWithScc",value:function(){return this.graph.topSortWithScc()}},{key:"markAsVolatile",value:function(e){this.graph.markNodeAsSpecial(e)}},{key:"markAsDependentOnStructureChange",value:function(e){this.graph.markNodeAsChangingWithStructure(e)}},{key:"forceApplyPostponedTransformations",value:function(){var e,t=O(this.graph.nodes.values());try{for(t.s();!(e=t.n()).done;){var n=e.value;n instanceof h.FormulaCellVertex&&n.ensureRecentData(this.lazilyTransformingAstService)}}catch(e){t.e(e)}finally{t.f()}}},{key:"volatileVertices",value:function(){return this.graph.specialNodes}},{key:"getArrayVerticesRelatedToRanges",value:function(e){var t=this,n=e.map((function(e){return t.graph.hasNode(e)?Array.from(t.graph.adjacentNodes(e)).filter((function(e){return e instanceof h.ArrayVertex})):[]}));return T(Set,R(n))}},{key:"rawValuesFromRange",value:regeneratorRuntime.mark((function e(t){var n,r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=O(t.addresses(this)),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=11;break}if(o=r.value,(i=this.getScalarValue(o))===u.EmptyValue){e.next=9;break}return e.next=9,[Object(u.getRawValue)(i),o];case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(1),n.e(e.t0);case 16:return e.prev=16,n.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[1,13,16,19]])}))},{key:"entriesFromRange",value:regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=O(t.addresses(this)),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=9;break}return o=r.value,e.next=7,[o,this.getCell(o)];case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),n.e(e.t0);case 14:return e.prev=14,n.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"exchangeGraphNode",value:function(e,t){var n=this;this.graph.addNode(t);var r=this.graph.adjacentNodes(e);this.removeVertex(e),r.forEach((function(e){n.graph.hasNode(e)&&n.graph.addEdge(t,e)}))}},{key:"exchangeOrAddGraphNode",value:function(e,t){e?this.exchangeGraphNode(e,t):this.graph.addNode(t)}},{key:"computeListOfValuesInRange",value:function(e){var t,n=[],r=O(e.addresses(this));try{for(r.s();!(t=r.n()).done;){var o=t.value,i=this.getScalarValue(o);n.push(i)}}catch(e){r.e(e)}finally{r.f()}return n}},{key:"shrinkArrayToCorner",value:function(e){this.cleanAddressMappingUnderArray(e);var t,n=O(this.adjacentArrayVertices(e));try{for(n.s();!(t=n.n()).done;){var r=t.value,o=void 0;o=r instanceof g.FormulaVertex?this.formulaDirectDependenciesToArray(r,e):this.rangeDirectDependenciesToArray(r,e);var i,a=!1,s=O(o);try{for(s.s();!(i=s.n()).done;){var u=S(i.value,2),l=u[0],c=u[1];e.isLeftCorner(l)&&(a=!0),this.graph.addEdge(c,r),this.graph.markNodeAsSpecialRecentlyChanged(c)}}catch(e){s.e(e)}finally{s.f()}a||this.graph.removeEdge(e,r)}}catch(e){n.e(e)}finally{n.f()}this.graph.markNodeAsSpecialRecentlyChanged(e)}},{key:"isArrayInternalCell",value:function(e){var t=this.getCell(e);return t instanceof h.ArrayVertex&&!t.isLeftCorner(e)}},{key:"getAndClearContentChanges",value:function(){var e=this.changes;return this.changes=a.ContentChanges.empty(),e}},{key:"getAdjacentNodesAddresses",value:function(e){var t=this,n=this.graph.adjacentNodes(e),o=[];return n.forEach((function(e){var n=e;n instanceof h.RangeVertex?o.push(Object(r.simpleCellRange)(n.start,n.end)):o.push(n.getAddress(t.lazilyTransformingAstService))})),o}},{key:"correctInfiniteRangesDependenciesByRangeVertex",value:function(e){var t,n=O(this.graph.infiniteRanges);try{for(n.s();!(t=n.n()).done;){var r=t.value,o=r,i=e.range.intersectionWith(o.range);if(void 0!==i){var a,s=O(i.addresses(this));try{for(s.s();!(a=s.n()).done;){var u=a.value;this.graph.addEdge(this.fetchCellOrCreateEmpty(u),r)}}catch(e){s.e(e)}finally{s.f()}}}}catch(e){n.e(e)}finally{n.f()}}},{key:"cleanAddressMappingUnderArray",value:function(e){var t,n=O(e.getRange().addresses(this));try{for(n.s();!(t=n.n()).done;){var r=t.value,o=e.getArrayCellValue(r);this.getCell(r)===e?e.isLeftCorner(r)?this.changes.addChange(new i.CellError(i.ErrorType.REF),r,o):(this.addressMapping.removeCell(r),this.changes.addChange(u.EmptyValue,r,o)):this.changes.addChange(u.EmptyValue,r,o)}}catch(e){n.e(e)}finally{n.f()}}},{key:"formulaDirectDependenciesToArray",value:regeneratorRuntime.mark((function e(t,n){var o,i,a,s,u,l,f,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=null!==(o=this.formulaDependencyQuery(t))&&void 0!==o?o:[],a=S(i,2),void 0!==(s=a[1])){e.next=3;break}return e.abrupt("return");case 3:u=O(s),e.prev=4,u.s();case 6:if((l=u.n()).done){e.next=16;break}if(!((f=l.value)instanceof c.NamedExpressionDependency||f instanceof r.AbsoluteCellRange)){e.next=10;break}return e.abrupt("continue",14);case 10:if(!n.getRange().addressInRange(f)){e.next=14;break}return d=this.fetchCellOrCreateEmpty(f),e.next=14,[f,d];case 14:e.next=6;break;case 16:e.next=21;break;case 18:e.prev=18,e.t0=e.catch(4),u.e(e.t0);case 21:return e.prev=21,u.f(),e.finish(21);case 24:case"end":return e.stop()}}),e,this,[[4,18,21,24]])}))},{key:"rangeDirectDependenciesToArray",value:regeneratorRuntime.mark((function e(t,n){var r,o,i,a,s,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=this.rangeMapping.findSmallerRange(t.range),o=r.restRange,i=O(o.addresses(this)),e.prev=2,i.s();case 4:if((a=i.n()).done){e.next=12;break}if(s=a.value,!n.getRange().addressInRange(s)){e.next=10;break}return u=this.fetchCellOrCreateEmpty(s),e.next=10,[s,u];case 10:e.next=4;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(2),i.e(e.t0);case 17:return e.prev=17,i.f(),e.finish(17);case 20:case"end":return e.stop()}}),e,this,[[2,14,17,20]])}))},{key:"adjacentArrayVertices",value:regeneratorRuntime.mark((function e(t){var n,r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=this.graph.adjacentNodes(t),r=O(n),e.prev=2,r.s();case 4:if((o=r.n()).done){e.next=11;break}if(!((i=o.value)instanceof g.FormulaVertex||i instanceof h.RangeVertex)){e.next=9;break}return e.next=9,i;case 9:e.next=4;break;case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(2),r.e(e.t0);case 16:return e.prev=16,r.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[2,13,16,19]])}))},{key:"addStructuralNodesToChangeSet",value:function(){var e,t=O(this.graph.specialNodesStructuralChanges);try{for(t.s();!(e=t.n()).done;){var n=e.value;this.graph.markNodeAsSpecialRecentlyChanged(n)}}catch(e){t.e(e)}finally{t.f()}}},{key:"fixRangesWhenAddingRows",value:function(e,t,n){for(var o=0,a=Array.from(this.rangeMapping.rangesInSheet(e));o<a.length;o++){var s=a[o];if(s.range.includesRow(t+n))if(s.bruteForce){var u,l=O(s.range.rangeWithSameWidth(t,n).addresses(this));try{for(l.s();!(u=l.n()).done;){var c=u.value;this.graph.addEdge(this.fetchCellOrCreateEmpty(c),s)}}catch(e){l.e(e)}finally{l.f()}}else{var f=s,d=this.rangeMapping.findSmallerRange(f.range);if(void 0!==d.smallerRangeVertex)continue;for(;void 0===d.smallerRangeVertex;){var p=new h.RangeVertex(r.AbsoluteCellRange.spanFrom(f.range.start,f.range.width(),f.range.height()-1));this.rangeMapping.setRange(p),this.graph.addNode(p);var y=new r.AbsoluteCellRange(Object(i.simpleCellAddress)(f.range.start.sheet,f.range.start.col,f.range.end.row),f.range.end);this.addAllFromRange(y,f),this.graph.addEdge(p,f),f=p,d=this.rangeMapping.findSmallerRange(f.range)}this.graph.addEdge(d.smallerRangeVertex,f),this.addAllFromRange(d.restRange,f),this.graph.removeEdge(d.smallerRangeVertex,s)}}}},{key:"addAllFromRange",value:function(e,t){var n,r=O(e.addresses(this));try{for(r.s();!(n=r.n()).done;){var o=n.value;this.graph.addEdge(this.fetchCellOrCreateEmpty(o),t)}}catch(e){r.e(e)}finally{r.f()}}},{key:"fixRangesWhenAddingColumns",value:function(e,t,n){var o,a=O(this.rangeMapping.rangesInSheet(e));try{for(a.s();!(o=a.n()).done;){var s=o.value;if(s.range.includesColumn(t+n)){var u,l=O((s.bruteForce?s.range.rangeWithSameHeight(t,n):r.AbsoluteCellRange.spanFrom(Object(i.simpleCellAddress)(e,t,s.range.end.row),n,1)).addresses(this));try{for(l.s();!(u=l.n()).done;){var c=u.value;this.graph.addEdge(this.fetchCellOrCreateEmpty(c),s)}}catch(e){l.e(e)}finally{l.f()}}}}catch(e){a.e(e)}finally{a.f()}}},{key:"exchangeOrAddFormulaVertex",value:function(e){var t=e.getAddress(this.lazilyTransformingAstService),n=r.AbsoluteCellRange.spanFrom(t,e.width,e.height),o=this.shrinkPossibleArrayAndGetCell(t);if(e instanceof h.ArrayVertex&&this.setArray(n,e),this.exchangeOrAddGraphNode(o,e),this.addressMapping.setCell(t,e),e instanceof h.ArrayVertex){if(!this.isThereSpaceForArray(e))return;var i,a=O(n.addresses(this));try{for(a.s();!(i=a.n()).done;){var s=i.value;if(!e.isLeftCorner(s)){var u=this.getCell(s);this.exchangeOrAddGraphNode(u,e)}}}catch(e){a.e(e)}finally{a.f()}}var l,c=O(n.addresses(this));try{for(c.s();!(l=c.n()).done;){var f=l.value;this.addressMapping.setCell(f,e)}}catch(e){c.e(e)}finally{c.f()}}},{key:"setAddressMappingForArrayVertex",value:function(e,t){if(this.addressMapping.setCell(t,e),e instanceof h.ArrayVertex){var n=r.AbsoluteCellRange.spanFromOrUndef(t,e.width,e.height);if(void 0!==n&&(this.setArray(n,e),this.isThereSpaceForArray(e))){var o,i=O(n.addresses(this));try{for(i.s();!(o=i.n()).done;){var a=o.value;this.addressMapping.setCell(a,e)}}catch(e){i.e(e)}finally{i.f()}}}}},{key:"truncateRanges",value:function(e,t){var n,r=this.rangeMapping.truncateRanges(e,t),o=r.verticesToRemove,i=r.verticesToMerge,a=r.verticesWithChangedSize,s=O(i);try{for(s.s();!(n=s.n()).done;){var u=S(n.value,2),l=u[0],c=u[1];this.mergeRangeVertices(l,c)}}catch(e){s.e(e)}finally{s.f()}var f,d=O(o);try{for(d.s();!(f=d.n()).done;){var h=f.value;this.removeVertexAndCleanupDependencies(h)}}catch(e){d.e(e)}finally{d.f()}return a}},{key:"fixArraysAfterAddingRow",value:function(e,t,n){if(this.arrayMapping.moveArrayVerticesAfterRowByRows(e,t,n),!(t<=0)){var r,o=O(this.arrayMapping.arraysInRows(f.RowsSpan.fromRowStartAndEnd(e,t-1,t-1)));try{for(o.s();!(r=o.n()).done;)for(var a=S(r.value,2)[1],s=a.getRange(),l=s.start.col;l<=s.end.col;++l)for(var c=t;c<=s.end.row;++c){var d=Object(i.simpleCellAddress)(e,l,c),h=Object(i.simpleCellAddress)(e,l,c+n),p=a.getArrayCellValue(d);this.addressMapping.moveCell(h,d),this.changes.addChange(u.EmptyValue,h,p)}}catch(e){o.e(e)}finally{o.f()}}}},{key:"fixArraysAfterRemovingRows",value:function(e,t,n){if(this.arrayMapping.moveArrayVerticesAfterRowByRows(e,t,-n),!(t<=0)){var r,o=O(this.arrayMapping.arraysInRows(f.RowsSpan.fromRowStartAndEnd(e,t-1,t-1)));try{for(o.s();!(r=o.n()).done;){var i=S(r.value,2)[1];if(this.isThereSpaceForArray(i)){var a,s=O(i.getRange().addresses(this));try{for(s.s();!(a=s.n()).done;){var u=a.value;this.addressMapping.setCell(u,i)}}catch(e){s.e(e)}finally{s.f()}}else this.setNoSpaceIfArray(i)}}catch(e){o.e(e)}finally{o.f()}}}},{key:"fixArraysAfterAddingColumn",value:function(e,t,n){if(this.arrayMapping.moveArrayVerticesAfterColumnByColumns(e,t,n),!(t<=0)){var r,o=O(this.arrayMapping.arraysInCols(f.ColumnsSpan.fromColumnStartAndEnd(e,t-1,t-1)));try{for(o.s();!(r=o.n()).done;)for(var a=S(r.value,2)[1],s=a.getRange(),l=s.start.row;l<=s.end.row;++l)for(var c=t;c<=s.end.col;++c){var d=Object(i.simpleCellAddress)(e,c,l),h=Object(i.simpleCellAddress)(e,c+n,l),p=a.getArrayCellValue(d);this.addressMapping.moveCell(h,d),this.changes.addChange(u.EmptyValue,h,p)}}catch(e){o.e(e)}finally{o.f()}}}},{key:"fixArraysAfterRemovingColumns",value:function(e,t,n){if(this.arrayMapping.moveArrayVerticesAfterColumnByColumns(e,t,-n),!(t<=0)){var r,o=O(this.arrayMapping.arraysInCols(f.ColumnsSpan.fromColumnStartAndEnd(e,t-1,t-1)));try{for(o.s();!(r=o.n()).done;){var i=S(r.value,2)[1];if(this.isThereSpaceForArray(i)){var a,s=O(i.getRange().addresses(this));try{for(s.s();!(a=s.n()).done;){var u=a.value;this.addressMapping.setCell(u,i)}}catch(e){s.e(e)}finally{s.f()}}else this.setNoSpaceIfArray(i)}}catch(e){o.e(e)}finally{o.f()}}}},{key:"shrinkPossibleArrayAndGetCell",value:function(e){var t=this.getCell(e);return t instanceof h.ArrayVertex?(this.setNoSpaceIfArray(t),this.getCell(e)):t}},{key:"setNoSpaceIfArray",value:function(e){e instanceof h.ArrayVertex&&(this.shrinkArrayToCorner(e),e.setNoSpace())}},{key:"removeVertex",value:function(e){this.removeVertexAndCleanupDependencies(e),e instanceof h.RangeVertex&&this.rangeMapping.removeRange(e)}},{key:"mergeRangeVertices",value:function(e,t){var n=this,r=this.graph.adjacentNodes(t);this.removeVertexAndCleanupDependencies(t),this.graph.softRemoveEdge(e,t),r.forEach((function(t){n.graph.hasNode(t)&&n.graph.addEdge(e,t)}))}},{key:"removeVertexAndCleanupDependencies",value:function(e){for(var t=new Set(this.graph.removeNode(e));t.size>0;){var n=t.values().next().value;t.delete(n),this.graph.hasNode(n)&&0===this.graph.adjacentNodesCount(n)&&((n instanceof h.RangeVertex||n instanceof h.EmptyCellVertex)&&this.graph.removeNode(n).forEach((function(e){return t.add(e)})),n instanceof h.RangeVertex?this.rangeMapping.removeRange(n):n instanceof h.EmptyCellVertex&&this.addressMapping.removeCell(n.address))}}}])&&_(t.prototype,n),C&&_(t,C),Object.defineProperty(t,"prototype",{writable:!1}),e}()},function(e,t,n){var r=n(39),o=n(64),i=n(119),a=n(664),s=Object.isExtensible,u=r((function(){s(1)}));e.exports=u||a?function(e){return!!o(e)&&((!a||"ArrayBuffer"!=i(e))&&(!s||s(e)))}:s},function(e,t,n){var r=n(39);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){"use strict";var r=n(84).f,o=n(133),i=n(259),a=n(177),s=n(257),u=n(256),l=n(253),c=n(351),f=n(69),d=n(180).fastKey,h=n(113),p=h.set,y=h.getterFor;e.exports={getConstructor:function(e,t,n,l){var c=e((function(e,r){s(e,h),p(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),f||(e.size=0),null!=r&&u(r,e[l],{that:e,AS_ENTRIES:n})})),h=c.prototype,m=y(t),g=function(e,t,n){var r,o,i=m(e),a=v(e,t);return a?a.value=n:(i.last=a={index:o=d(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),f?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},v=function(e,t){var n,r=m(e),o=d(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return i(h,{clear:function(){for(var e=m(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,f?e.size=0:this.size=0},delete:function(e){var t=m(this),n=v(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),f?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=m(this),r=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!v(this,e)}}),i(h,n?{get:function(e){var t=v(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)}}),f&&r(h,"size",{get:function(){return m(this).size}}),c},setStrong:function(e,t,n){var r=t+" Iterator",o=y(t),i=y(r);l(e,t,(function(e,t){p(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){"use strict";var r=n(107),o=n(84),i=n(58),a=n(69),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(36);e.exports=r(1..valueOf)},function(e,t,n){var r=n(36),o=n(89),i=n(71),a=n(354),s=r("".replace),u="["+a+"]",l=RegExp("^"+u+u+"*"),c=RegExp(u+u+"*$"),f=function(e){return function(t){var n=i(o(t));return 1&e&&(n=s(n,l,"")),2&e&&(n=s(n,c,"")),n}};e.exports={start:f(1),end:f(2),trim:f(3)}},function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(e,t,n){var r=n(70),o=n(62),i=n(120),a=n(339),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||o(e,"flags")||!i(s,e)?t:r(a,e)}},function(e,t,n){var r=n(119),o=n(29);e.exports="process"==r(o.process)},function(e,t,n){"use strict";n.r(t),n.d(t,"DEFAULT_MODE",(function(){return f})),n.d(t,"MODES",(function(){return d})),n.d(t,"SUPPORT_STICKY",(function(){return h})),n.d(t,"disableSticky",(function(){return p})),n.d(t,"enableSticky",(function(){return y})),n.d(t,"analyzeTokenTypes",(function(){return m})),n.d(t,"validatePatterns",(function(){return g})),n.d(t,"findMissingPatterns",(function(){return v})),n.d(t,"findInvalidPatterns",(function(){return E})),n.d(t,"findEndOfInputAnchor",(function(){return T})),n.d(t,"findEmptyMatchRegExps",(function(){return C})),n.d(t,"findStartOfInputAnchor",(function(){return R})),n.d(t,"findUnsupportedFlags",(function(){return O})),n.d(t,"findDuplicatePatterns",(function(){return S})),n.d(t,"findInvalidGroupType",(function(){return A})),n.d(t,"findModesThatDoNotExist",(function(){return N})),n.d(t,"findUnreachablePatterns",(function(){return _})),n.d(t,"addStartOfInput",(function(){return k})),n.d(t,"addStickyFlag",(function(){return M})),n.d(t,"performRuntimeChecks",(function(){return I})),n.d(t,"performWarningRuntimeChecks",(function(){return P})),n.d(t,"cloneEmptyGroups",(function(){return x})),n.d(t,"isCustomPattern",(function(){return D})),n.d(t,"isShortPattern",(function(){return L})),n.d(t,"LineTerminatorOptimizedTester",(function(){return F})),n.d(t,"buildLineBreakIssueMessage",(function(){return U})),n.d(t,"minOptimizationVal",(function(){return V})),n.d(t,"charCodeToOptimizedIndex",(function(){return W}));var r,o=n(264),i=n(154),a=n(48),s=n(673),u=n(265),l=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c="PATTERN",f="defaultMode",d="modes",h="boolean"==typeof new RegExp("(?:)").sticky;function p(){h=!1}function y(){h=!0}function m(e,t){var n,r=(t=Object(a.defaults)(t,{useSticky:h,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r","\n"],tracer:function(e,t){return t()}})).tracer;r("initCharCodeToOptimizedIndexMap",(function(){!function(){if(Object(a.isEmpty)(Y)){Y=new Array(65536);for(var e=0;e<65536;e++)Y[e]=e>255?255+~~(e/255):e}}()})),r("Reject Lexer.NA",(function(){n=Object(a.reject)(e,(function(e){return e[c]===i.Lexer.NA}))}));var o,u,l,f,d,p,y,m,g,v,E,b=!1;r("Transform Patterns",(function(){b=!1,o=Object(a.map)(n,(function(e){var n=e[c];if(Object(a.isRegExp)(n)){var r=n.source;return 1===r.length&&"^"!==r&&"$"!==r&&"."!==r?r:2!==r.length||"\\"!==r[0]||Object(a.contains)(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],r[1])?t.useSticky?M(n):k(n):r[1]}if(Object(a.isFunction)(n))return b=!0,{exec:n};if(Object(a.has)(n,"exec"))return b=!0,n;if("string"==typeof n){if(1===n.length)return n;var o=n.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),i=new RegExp(o);return t.useSticky?M(i):k(i)}throw Error("non exhaustive match")}))})),r("misc mapping",(function(){u=Object(a.map)(n,(function(e){return e.tokenTypeIdx})),l=Object(a.map)(n,(function(e){var t=e.GROUP;if(t!==i.Lexer.SKIPPED){if(Object(a.isString)(t))return t;if(Object(a.isUndefined)(t))return!1;throw Error("non exhaustive match")}})),f=Object(a.map)(n,(function(e){var t=e.LONGER_ALT;if(t)return Object(a.indexOf)(n,t)})),d=Object(a.map)(n,(function(e){return e.PUSH_MODE})),p=Object(a.map)(n,(function(e){return Object(a.has)(e,"POP_MODE")}))})),r("Line Terminator Handling",(function(){var e=H(t.lineTerminatorCharacters);y=Object(a.map)(n,(function(e){return!1})),"onlyOffset"!==t.positionTracking&&(y=Object(a.map)(n,(function(t){return Object(a.has)(t,"LINE_BREAKS")?t.LINE_BREAKS:!1===j(t,e)?Object(s.canMatchCharCode)(e,t.PATTERN):void 0})))})),r("Misc Mapping #2",(function(){m=Object(a.map)(n,D),g=Object(a.map)(o,L),v=Object(a.reduce)(n,(function(e,t){var n=t.GROUP;return Object(a.isString)(n)&&n!==i.Lexer.SKIPPED&&(e[n]=[]),e}),{}),E=Object(a.map)(o,(function(e,t){return{pattern:o[t],longerAlt:f[t],canLineTerminator:y[t],isCustom:m[t],short:g[t],group:l[t],push:d[t],pop:p[t],tokenTypeIdx:u[t],tokenType:n[t]}}))}));var T=!0,C=[];return t.safeMode||r("First Char Optimization",(function(){C=Object(a.reduce)(n,(function(e,n,r){if("string"==typeof n.PATTERN){var o=W(n.PATTERN.charCodeAt(0));B(e,o,E[r])}else if(Object(a.isArray)(n.START_CHARS_HINT)){var i;Object(a.forEach)(n.START_CHARS_HINT,(function(t){var n=W("string"==typeof t?t.charCodeAt(0):t);i!==n&&(i=n,B(e,n,E[r]))}))}else if(Object(a.isRegExp)(n.PATTERN))if(n.PATTERN.unicode)T=!1,t.ensureOptimizations&&Object(a.PRINT_ERROR)(s.failedOptimizationPrefixMsg+"\tUnable to analyze < "+n.PATTERN.toString()+" > pattern.\n\tThe regexp unicode flag is not currently supported by the regexp-to-ast library.\n\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE");else{var u=Object(s.getOptimizedStartCodesIndices)(n.PATTERN,t.ensureOptimizations);Object(a.isEmpty)(u)&&(T=!1),Object(a.forEach)(u,(function(t){B(e,t,E[r])}))}else t.ensureOptimizations&&Object(a.PRINT_ERROR)(s.failedOptimizationPrefixMsg+"\tTokenType: <"+n.name+"> is using a custom token pattern without providing <start_chars_hint> parameter.\n\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE"),T=!1;return e}),[])})),r("ArrayPacking",(function(){C=Object(a.packArray)(C)})),{emptyGroups:v,patternIdxToConfig:E,charCodeToPatternIdxToConfig:C,hasCustom:b,canBeOptimized:T}}function g(e,t){var n=[],r=v(e);n=n.concat(r.errors);var o=E(r.valid),i=o.valid;return n=(n=(n=(n=(n=n.concat(o.errors)).concat(function(e){var t=[],n=Object(a.filter)(e,(function(e){return Object(a.isRegExp)(e[c])}));return t=(t=(t=(t=(t=t.concat(T(n))).concat(R(n))).concat(O(n))).concat(S(n))).concat(C(n))}(i))).concat(A(i))).concat(N(i,t))).concat(_(i))}function v(e){var t=Object(a.filter)(e,(function(e){return!Object(a.has)(e,c)}));return{errors:Object(a.map)(t,(function(e){return{message:"Token Type: ->"+e.name+"<- missing static 'PATTERN' property",type:i.LexerDefinitionErrorType.MISSING_PATTERN,tokenTypes:[e]}})),valid:Object(a.difference)(e,t)}}function E(e){var t=Object(a.filter)(e,(function(e){var t=e[c];return!(Object(a.isRegExp)(t)||Object(a.isFunction)(t)||Object(a.has)(t,"exec")||Object(a.isString)(t))}));return{errors:Object(a.map)(t,(function(e){return{message:"Token Type: ->"+e.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:i.LexerDefinitionErrorType.INVALID_PATTERN,tokenTypes:[e]}})),valid:Object(a.difference)(e,t)}}var b=/[^\\][\$]/;function T(e){var t=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.found=!1,t}return l(t,e),t.prototype.visitEndAnchor=function(e){this.found=!0},t}(o.BaseRegExpVisitor),n=Object(a.filter)(e,(function(e){var n=e[c];try{var r=Object(u.getRegExpAst)(n),o=new t;return o.visit(r),o.found}catch(e){return b.test(n.source)}}));return Object(a.map)(n,(function(e){return{message:"Unexpected RegExp Anchor Error:\n\tToken Type: ->"+e.name+"<- static 'PATTERN' cannot contain end of input anchor '$'\n\tSee sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS\tfor details.",type:i.LexerDefinitionErrorType.EOI_ANCHOR_FOUND,tokenTypes:[e]}}))}function C(e){var t=Object(a.filter)(e,(function(e){return e[c].test("")}));return Object(a.map)(t,(function(e){return{message:"Token Type: ->"+e.name+"<- static 'PATTERN' must not match an empty string",type:i.LexerDefinitionErrorType.EMPTY_MATCH_PATTERN,tokenTypes:[e]}}))}var w=/[^\\[][\^]|^\^/;function R(e){var t=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.found=!1,t}return l(t,e),t.prototype.visitStartAnchor=function(e){this.found=!0},t}(o.BaseRegExpVisitor),n=Object(a.filter)(e,(function(e){var n=e[c];try{var r=Object(u.getRegExpAst)(n),o=new t;return o.visit(r),o.found}catch(e){return w.test(n.source)}}));return Object(a.map)(n,(function(e){return{message:"Unexpected RegExp Anchor Error:\n\tToken Type: ->"+e.name+"<- static 'PATTERN' cannot contain start of input anchor '^'\n\tSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS\tfor details.",type:i.LexerDefinitionErrorType.SOI_ANCHOR_FOUND,tokenTypes:[e]}}))}function O(e){var t=Object(a.filter)(e,(function(e){var t=e[c];return t instanceof RegExp&&(t.multiline||t.global)}));return Object(a.map)(t,(function(e){return{message:"Token Type: ->"+e.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:i.LexerDefinitionErrorType.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[e]}}))}function S(e){var t=[],n=Object(a.map)(e,(function(n){return Object(a.reduce)(e,(function(e,r){return n.PATTERN.source!==r.PATTERN.source||Object(a.contains)(t,r)||r.PATTERN===i.Lexer.NA||(t.push(r),e.push(r)),e}),[])}));n=Object(a.compact)(n);var r=Object(a.filter)(n,(function(e){return e.length>1}));return Object(a.map)(r,(function(e){var t=Object(a.map)(e,(function(e){return e.name}));return{message:"The same RegExp pattern ->"+Object(a.first)(e).PATTERN+"<-has been used in all of the following Token Types: "+t.join(", ")+" <-",type:i.LexerDefinitionErrorType.DUPLICATE_PATTERNS_FOUND,tokenTypes:e}}))}function A(e){var t=Object(a.filter)(e,(function(e){if(!Object(a.has)(e,"GROUP"))return!1;var t=e.GROUP;return t!==i.Lexer.SKIPPED&&t!==i.Lexer.NA&&!Object(a.isString)(t)}));return Object(a.map)(t,(function(e){return{message:"Token Type: ->"+e.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:i.LexerDefinitionErrorType.INVALID_GROUP_TYPE_FOUND,tokenTypes:[e]}}))}function N(e,t){var n=Object(a.filter)(e,(function(e){return void 0!==e.PUSH_MODE&&!Object(a.contains)(t,e.PUSH_MODE)}));return Object(a.map)(n,(function(e){return{message:"Token Type: ->"+e.name+"<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->"+e.PUSH_MODE+"<-which does not exist",type:i.LexerDefinitionErrorType.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[e]}}))}function _(e){var t=[],n=Object(a.reduce)(e,(function(e,t,n){var r,o=t.PATTERN;return o===i.Lexer.NA||(Object(a.isString)(o)?e.push({str:o,idx:n,tokenType:t}):Object(a.isRegExp)(o)&&(r=o,void 0===Object(a.find)([".","\\","[","]","|","^","$","(",")","?","*","+","{"],(function(e){return-1!==r.source.indexOf(e)})))&&e.push({str:o.source,idx:n,tokenType:t})),e}),[]);return Object(a.forEach)(e,(function(e,r){Object(a.forEach)(n,(function(n){var o=n.str,s=n.idx,u=n.tokenType;if(r<s&&function(e,t){if(Object(a.isRegExp)(t)){var n=t.exec(e);return null!==n&&0===n.index}if(Object(a.isFunction)(t))return t(e,0,[],{});if(Object(a.has)(t,"exec"))return t.exec(e,0,[],{});if("string"==typeof t)return t===e;throw Error("non exhaustive match")}(o,e.PATTERN)){var l="Token: ->"+u.name+"<- can never be matched.\nBecause it appears AFTER the Token Type ->"+e.name+"<-in the lexer's definition.\nSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNREACHABLE";t.push({message:l,type:i.LexerDefinitionErrorType.UNREACHABLE_PATTERN,tokenTypes:[e,u]})}}))})),t}function k(e){var t=e.ignoreCase?"i":"";return new RegExp("^(?:"+e.source+")",t)}function M(e){var t=e.ignoreCase?"iy":"y";return new RegExp(""+e.source,t)}function I(e,t,n){var r=[];return Object(a.has)(e,f)||r.push({message:"A MultiMode Lexer cannot be initialized without a <"+f+"> property in its definition\n",type:i.LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Object(a.has)(e,d)||r.push({message:"A MultiMode Lexer cannot be initialized without a <"+d+"> property in its definition\n",type:i.LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),Object(a.has)(e,d)&&Object(a.has)(e,f)&&!Object(a.has)(e.modes,e.defaultMode)&&r.push({message:"A MultiMode Lexer cannot be initialized with a "+f+": <"+e.defaultMode+">which does not exist\n",type:i.LexerDefinitionErrorType.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Object(a.has)(e,d)&&Object(a.forEach)(e.modes,(function(e,t){Object(a.forEach)(e,(function(e,n){Object(a.isUndefined)(e)&&r.push({message:"A Lexer cannot be initialized using an undefined Token Type. Mode:<"+t+"> at index: <"+n+">\n",type:i.LexerDefinitionErrorType.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})}))})),r}function P(e,t,n){var r=[],o=!1,u=Object(a.compact)(Object(a.flatten)(Object(a.mapValues)(e.modes,(function(e){return e})))),l=Object(a.reject)(u,(function(e){return e[c]===i.Lexer.NA})),f=H(n);return t&&Object(a.forEach)(l,(function(e){var t=j(e,f);if(!1!==t){var n={message:U(e,t),type:t.issue,tokenType:e};r.push(n)}else Object(a.has)(e,"LINE_BREAKS")?!0===e.LINE_BREAKS&&(o=!0):Object(s.canMatchCharCode)(f,e.PATTERN)&&(o=!0)})),t&&!o&&r.push({message:"Warning: No LINE_BREAKS Found.\n\tThis Lexer has been defined to track line and column information,\n\tBut none of the Token Types can be identified as matching a line terminator.\n\tSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n\tfor details.",type:i.LexerDefinitionErrorType.NO_LINE_BREAKS_FLAGS}),r}function x(e){var t={},n=Object(a.keys)(e);return Object(a.forEach)(n,(function(n){var r=e[n];if(!Object(a.isArray)(r))throw Error("non exhaustive match");t[n]=[]})),t}function D(e){var t=e.PATTERN;if(Object(a.isRegExp)(t))return!1;if(Object(a.isFunction)(t))return!0;if(Object(a.has)(t,"exec"))return!0;if(Object(a.isString)(t))return!1;throw Error("non exhaustive match")}function L(e){return!(!Object(a.isString)(e)||1!==e.length)&&e.charCodeAt(0)}var F={test:function(e){for(var t=e.length,n=this.lastIndex;n<t;n++){var r=e.charCodeAt(n);if(10===r)return this.lastIndex=n+1,!0;if(13===r)return 10===e.charCodeAt(n+1)?this.lastIndex=n+2:this.lastIndex=n+1,!0}return!1},lastIndex:0};function j(e,t){if(Object(a.has)(e,"LINE_BREAKS"))return!1;if(Object(a.isRegExp)(e.PATTERN)){try{Object(s.canMatchCharCode)(t,e.PATTERN)}catch(e){return{issue:i.LexerDefinitionErrorType.IDENTIFY_TERMINATOR,errMsg:e.message}}return!1}if(Object(a.isString)(e.PATTERN))return!1;if(D(e))return{issue:i.LexerDefinitionErrorType.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}function U(e,t){if(t.issue===i.LexerDefinitionErrorType.IDENTIFY_TERMINATOR)return"Warning: unable to identify line terminator usage in pattern.\n\tThe problem is in the <"+e.name+"> Token Type\n\t Root cause: "+t.errMsg+".\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR";if(t.issue===i.LexerDefinitionErrorType.CUSTOM_LINE_BREAK)return"Warning: A Custom Token Pattern should specify the <line_breaks> option.\n\tThe problem is in the <"+e.name+"> Token Type\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}function H(e){return Object(a.map)(e,(function(e){return Object(a.isString)(e)&&e.length>0?e.charCodeAt(0):e}))}function B(e,t,n){void 0===e[t]?e[t]=[n]:e[t].push(n)}var V=256;function W(e){return e<V?e:Y[e]}var Y=[]},function(e,t,n){"use strict";n.r(t),n.d(t,"first",(function(){return a})),n.d(t,"firstForSequence",(function(){return s})),n.d(t,"firstForBranching",(function(){return u})),n.d(t,"firstForTerminal",(function(){return l}));var r=n(48),o=n(56),i=n(183);function a(e){if(e instanceof o.NonTerminal)return a(e.referencedRule);if(e instanceof o.Terminal)return l(e);if(Object(i.isSequenceProd)(e))return s(e);if(Object(i.isBranchingProd)(e))return u(e);throw Error("non exhaustive match")}function s(e){for(var t,n=[],o=e.definition,s=0,u=o.length>s,l=!0;u&&l;)t=o[s],l=Object(i.isOptionalProd)(t),n=n.concat(a(t)),s+=1,u=o.length>s;return Object(r.uniq)(n)}function u(e){var t=Object(r.map)(e.definition,(function(e){return a(e)}));return Object(r.uniq)(Object(r.flatten)(t))}function l(e){return[e.terminalType]}},function(e,t,n){"use strict";n.r(t),n.d(t,"IN",(function(){return r}));var r="_~IN~_"},function(e,t,n){"use strict";n.r(t),n.d(t,"EOF_FOLLOW_KEY",(function(){return u})),n.d(t,"IN_RULE_RECOVERY_EXCEPTION",(function(){return l})),n.d(t,"InRuleRecoveryException",(function(){return c})),n.d(t,"Recoverable",(function(){return f})),n.d(t,"attemptInRepetitionRecovery",(function(){return d}));var r=n(95),o=n(48),i=n(108),a=n(359),s=n(77),u={},l="InRuleRecoveryException";function c(e){this.name=l,this.message=e}c.prototype=Error.prototype;var f=function(){function e(){}return e.prototype.initRecoverable=function(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=Object(o.has)(e,"recoveryEnabled")?e.recoveryEnabled:s.DEFAULT_PARSER_CONFIG.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=d)},e.prototype.getTokenToInsert=function(e){var t=Object(r.createTokenInstance)(e,"",NaN,NaN,NaN,NaN,NaN,NaN);return t.isInsertedInRecovery=!0,t},e.prototype.canTokenTypeBeInsertedInRecovery=function(e){return!0},e.prototype.tryInRepetitionRecovery=function(e,t,n,r){for(var a=this,s=this.findReSyncTokenType(),u=this.exportLexerState(),l=[],c=!1,f=this.LA(1),d=this.LA(1),h=function(){var e=a.LA(0),t=a.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:f,previous:e,ruleName:a.getCurrRuleFullName()}),n=new i.MismatchedTokenException(t,f,a.LA(0));n.resyncedTokens=Object(o.dropRight)(l),a.SAVE_ERROR(n)};!c;){if(this.tokenMatcher(d,r))return void h();if(n.call(this))return h(),void e.apply(this,t);this.tokenMatcher(d,s)?c=!0:(d=this.SKIP_TOKEN(),this.addToResyncTokens(d,l))}this.importLexerState(u)},e.prototype.shouldInRepetitionRecoveryBeTried=function(e,t,n){return!1!==n&&(void 0!==e&&void 0!==t&&(!this.tokenMatcher(this.LA(1),e)&&(!this.isBackTracking()&&!this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,t)))))},e.prototype.getFollowsForInRuleRecovery=function(e,t){var n=this.getCurrentGrammarPath(e,t);return this.getNextPossibleTokenTypes(n)},e.prototype.tryInRuleRecovery=function(e,t){if(this.canRecoverWithSingleTokenInsertion(e,t))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){var n=this.SKIP_TOKEN();return this.consumeToken(),n}throw new c("sad sad panda")},e.prototype.canPerformInRuleRecovery=function(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)},e.prototype.canRecoverWithSingleTokenInsertion=function(e,t){var n=this;if(!this.canTokenTypeBeInsertedInRecovery(e))return!1;if(Object(o.isEmpty)(t))return!1;var r=this.LA(1);return void 0!==Object(o.find)(t,(function(e){return n.tokenMatcher(r,e)}))},e.prototype.canRecoverWithSingleTokenDeletion=function(e){return this.tokenMatcher(this.LA(2),e)},e.prototype.isInCurrentRuleReSyncSet=function(e){var t=this.getCurrFollowKey(),n=this.getFollowSetFromFollowKey(t);return Object(o.contains)(n,e)},e.prototype.findReSyncTokenType=function(){for(var e=this.flattenFollowSet(),t=this.LA(1),n=2;;){var r=t.tokenType;if(Object(o.contains)(e,r))return r;t=this.LA(n),n++}},e.prototype.getCurrFollowKey=function(){if(1===this.RULE_STACK.length)return u;var e=this.getLastExplicitRuleShortName(),t=this.getLastExplicitRuleOccurrenceIndex(),n=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(n)}},e.prototype.buildFullFollowKeyStack=function(){var e=this,t=this.RULE_STACK,n=this.RULE_OCCURRENCE_STACK;return Object(o.isEmpty)(this.LAST_EXPLICIT_RULE_STACK)||(t=Object(o.map)(this.LAST_EXPLICIT_RULE_STACK,(function(t){return e.RULE_STACK[t]})),n=Object(o.map)(this.LAST_EXPLICIT_RULE_STACK,(function(t){return e.RULE_OCCURRENCE_STACK[t]}))),Object(o.map)(t,(function(r,o){return 0===o?u:{ruleName:e.shortRuleNameToFullName(r),idxInCallingRule:n[o],inRule:e.shortRuleNameToFullName(t[o-1])}}))},e.prototype.flattenFollowSet=function(){var e=this,t=Object(o.map)(this.buildFullFollowKeyStack(),(function(t){return e.getFollowSetFromFollowKey(t)}));return Object(o.flatten)(t)},e.prototype.getFollowSetFromFollowKey=function(e){if(e===u)return[r.EOF];var t=e.ruleName+e.idxInCallingRule+a.IN+e.inRule;return this.resyncFollows[t]},e.prototype.addToResyncTokens=function(e,t){return this.tokenMatcher(e,r.EOF)||t.push(e),t},e.prototype.reSyncTo=function(e){for(var t=[],n=this.LA(1);!1===this.tokenMatcher(n,e);)n=this.SKIP_TOKEN(),this.addToResyncTokens(n,t);return Object(o.dropRight)(t)},e.prototype.attemptInRepetitionRecovery=function(e,t,n,r,o,i,a){},e.prototype.getCurrentGrammarPath=function(e,t){return{ruleStack:this.getHumanReadableRuleStack(),occurrenceStack:Object(o.cloneArr)(this.RULE_OCCURRENCE_STACK),lastTok:e,lastTokOccurrence:t}},e.prototype.getHumanReadableRuleStack=function(){var e=this;return Object(o.isEmpty)(this.LAST_EXPLICIT_RULE_STACK)?Object(o.map)(this.RULE_STACK,(function(t){return e.shortRuleNameToFullName(t)})):Object(o.map)(this.LAST_EXPLICIT_RULE_STACK,(function(t){return e.shortRuleNameToFullName(e.RULE_STACK[t])}))},e}();function d(e,t,n,o,i,a,s){var u=this.getKeyForAutomaticLookahead(o,i),l=this.firstAfterRepMap[u];if(void 0===l){var c=this.getCurrRuleFullName();l=new a(this.getGAstProductions()[c],i).startWalking(),this.firstAfterRepMap[u]=l}var f=l.token,d=l.occurrence,h=l.isEndOfRule;1===this.RULE_STACK.length&&h&&void 0===f&&(f=r.EOF,d=1),this.shouldInRepetitionRecoveryBeTried(f,d,s)&&this.tryInRepetitionRecovery(e,t,n,f)}},function(e,t,n){"use strict";n.r(t),n.d(t,"classNameFromInstance",(function(){return o})),n.d(t,"functionName",(function(){return a})),n.d(t,"defineNameProp",(function(){return s}));var r=n(48);function o(e){return a(e.constructor)}var i=/^\s*function\s*(\S*)\s*\(/;function a(e){var t=e.name;return t||e.toString().match(i)[1]}function s(e,t){var n=Object.getOwnPropertyDescriptor(e,"name");return!(!Object(r.isUndefined)(n)&&!n.configurable)&&(Object.defineProperty(e,"name",{enumerable:!1,configurable:!0,writable:!1,value:t}),!0)}},function(e,t,n){"use strict";n.r(t),n.d(t,"createSyntaxDiagramsCode",(function(){return o}));var r=n(262);function o(e,t){var n=void 0===t?{}:t,o=n.resourceBase,i=void 0===o?"https://unpkg.com/chevrotain@"+r.VERSION+"/diagrams/":o,a=n.css;return'\n\x3c!-- This is a generated file --\x3e\n<!DOCTYPE html>\n<meta charset="utf-8">\n<style>\n body {\n background-color: hsl(30, 20%, 95%)\n }\n</style>\n\n'+("\n<link rel='stylesheet' href='"+(void 0===a?"https://unpkg.com/chevrotain@"+r.VERSION+"/diagrams/diagrams.css":a)+"'>\n")+("\n<script src='"+i+"vendor/railroad-diagrams.js'><\/script>\n<script src='"+i+"src/diagrams_builder.js'><\/script>\n<script src='"+i+"src/diagrams_behavior.js'><\/script>\n<script src='"+i+"src/main.js'><\/script>\n")+'\n<div id="diagrams" align="center"></div> \n'+("\n<script>\n window.serializedGrammar = "+JSON.stringify(e,null," ")+";\n<\/script>\n")+'\n<script>\n var diagramsDiv = document.getElementById("diagrams");\n main.drawDiagramsFromSerializedGrammar(serializedGrammar, diagramsDiv);\n<\/script>\n'}},function(e,t,n){"use strict";n.r(t),n.d(t,"ParserWithCaching",(function(){return m}));n(37),n(87),n(18),n(13),n(12),n(61),n(75),n(8),n(9),n(0),n(10),n(3),n(2),n(4),n(25),n(22);var r=n(220),o=n(24),i=n(72),a=n(98),s=n(100),u=n(364),l=n(686),c=n(269),f=n(181),d=n(270);function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;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,t)||function(e,t){if(!e)return;if("string"==typeof e)return p(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 p(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 p(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 y(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)}}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
var m=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=t,this.functionRegistry=n,this.sheetMapping=r,this.statsCacheUsed=0,this.lexerConfig=Object(f.buildLexerConfig)(t),this.lexer=new c.FormulaLexer(this.lexerConfig),this.formulaParser=new c.FormulaParser(this.lexerConfig,this.sheetMapping),this.cache=new l.Cache(this.functionRegistry)}var t,n,p;return t=e,(n=[{key:"parse",value:function(e,t){var n=this.tokenizeFormula(e);if(n.errors.length>0){var r=n.errors.map((function(e){return{type:s.ParsingErrorType.LexingError,message:e.message}}));return{ast:Object(i.buildParsingErrorAst)(),errors:r,hasVolatileFunction:!1,hasStructuralChangeFunction:!1,dependencies:[]}}var o=this.computeHashFromTokens(n.tokens,t),a=this.cache.get(o);if(void 0!==a)++this.statsCacheUsed;else{var u=this.bindWhitespacesToTokens(n.tokens),l=this.formulaParser.parseFromTokens(u,t);if(l.errors.length>0)return Object.assign(Object.assign({},l),{hasVolatileFunction:!1,hasStructuralChangeFunction:!1,dependencies:[]});a=this.cache.set(o,l.ast)}var c=a;return{ast:c.ast,errors:[],hasVolatileFunction:c.hasVolatileFunction,hasStructuralChangeFunction:c.hasStructuralChangeFunction,dependencies:c.relativeDependencies}}},{key:"fetchCachedResultForAst",value:function(e){var t=this.computeHashFromAst(e);return this.fetchCachedResult(t)}},{key:"fetchCachedResult",value:function(e){var t=this.cache.get(e);if(void 0===t)throw new Error("There is no AST with such key in the cache");return{ast:t.ast,errors:[],hasVolatileFunction:t.hasVolatileFunction,hasStructuralChangeFunction:t.hasStructuralChangeFunction,dependencies:t.relativeDependencies}}},{key:"computeHashFromTokens",value:function(e,t){for(var n,o="",i=0;i<e.length;){var s=e[i];if(Object(r.tokenMatcher)(s,f.CellReference)){var u=Object(a.cellAddressFromString)(this.sheetMapping,s.image,t);o=void 0===u?o.concat(s.image):o.concat(u.hash(!0))}else if(Object(r.tokenMatcher)(s,f.ProcedureName)){var l=s.image.toUpperCase().slice(0,-1),c=null!==(n=this.lexerConfig.functionMapping[l])&&void 0!==n?n:l;o=o.concat(c,"(")}else if(Object(r.tokenMatcher)(s,f.ColumnRange)){var d=h(s.image.split(":"),2),p=d[0],y=d[1],m=Object(a.columnAddressFromString)(this.sheetMapping,p,t),g=Object(a.columnAddressFromString)(this.sheetMapping,y,t);o=void 0===m||void 0===g?o.concat("!REF"):o.concat(m.hash(!0),":",g.hash(!0))}else if(Object(r.tokenMatcher)(s,f.RowRange)){var v=h(s.image.split(":"),2),E=v[0],b=v[1],T=Object(a.rowAddressFromString)(this.sheetMapping,E,t),C=Object(a.rowAddressFromString)(this.sheetMapping,b,t);o=void 0===T||void 0===C?o.concat("!REF"):o.concat(T.hash(!0),":",C.hash(!0))}else o=o.concat(s.image);i++}return o}},{key:"rememberNewAst",value:function(e){var t=this.computeHashFromAst(e);return this.cache.maybeSetAndThenGet(t,e)}},{key:"computeHashFromAst",value:function(e){return"="+this.computeHashOfAstNode(e)}},{key:"computeHashOfAstNode",value:function(e){var t=this;switch(e.type){case i.AstNodeType.EMPTY:return e.leadingWhitespace||"";case i.AstNodeType.NUMBER:return Object(s.imageWithWhitespace)(Object(d.formatNumber)(e.value,this.config.decimalSeparator),e.leadingWhitespace);case i.AstNodeType.STRING:return Object(s.imageWithWhitespace)('"'+e.value+'"',e.leadingWhitespace);case i.AstNodeType.NAMED_EXPRESSION:return Object(s.imageWithWhitespace)(e.expressionName,e.leadingWhitespace);case i.AstNodeType.FUNCTION_CALL:var n=e.args.map((function(e){return t.computeHashOfAstNode(e)})).join(this.config.functionArgSeparator),r=e.procedureName+"("+n+Object(s.imageWithWhitespace)(")",e.internalWhitespace);return Object(s.imageWithWhitespace)(r,e.leadingWhitespace);case i.AstNodeType.CELL_REFERENCE:return Object(s.imageWithWhitespace)(e.reference.hash(!0),e.leadingWhitespace);case i.AstNodeType.COLUMN_RANGE:case i.AstNodeType.ROW_RANGE:case i.AstNodeType.CELL_RANGE:var a=e.start.hash(e.sheetReferenceType!==s.RangeSheetReferenceType.RELATIVE),l=e.end.hash(e.sheetReferenceType===s.RangeSheetReferenceType.BOTH_ABSOLUTE);return Object(s.imageWithWhitespace)(a+":"+l,e.leadingWhitespace);case i.AstNodeType.MINUS_UNARY_OP:return Object(s.imageWithWhitespace)("-"+this.computeHashOfAstNode(e.value),e.leadingWhitespace);case i.AstNodeType.PLUS_UNARY_OP:return Object(s.imageWithWhitespace)("+"+this.computeHashOfAstNode(e.value),e.leadingWhitespace);case i.AstNodeType.PERCENT_OP:return this.computeHashOfAstNode(e.value)+Object(s.imageWithWhitespace)("%",e.leadingWhitespace);case i.AstNodeType.ERROR:var c=this.config.translationPackage.getErrorTranslation(e.error?e.error.type:o.ErrorType.ERROR);return Object(s.imageWithWhitespace)(c,e.leadingWhitespace);case i.AstNodeType.ERROR_WITH_RAW_INPUT:return Object(s.imageWithWhitespace)(e.rawInput,e.leadingWhitespace);case i.AstNodeType.ARRAY:var f=e.args.map((function(e){return e.map((function(e){return t.computeHashOfAstNode(e)})).join(",")})).join(";");return Object(s.imageWithWhitespace)("{"+f+Object(s.imageWithWhitespace)("}",e.internalWhitespace),e.leadingWhitespace);case i.AstNodeType.PARENTHESIS:var h="("+this.computeHashOfAstNode(e.expression)+Object(s.imageWithWhitespace)(")",e.internalWhitespace);return Object(s.imageWithWhitespace)(h,e.leadingWhitespace);default:return this.computeHashOfAstNode(e.left)+Object(s.imageWithWhitespace)(u.binaryOpTokenMap[e.type],e.leadingWhitespace)+this.computeHashOfAstNode(e.right)}}},{key:"bindWhitespacesToTokens",value:function(e){var t=[],n=e[0];Object(r.tokenMatcher)(n,this.lexerConfig.WhiteSpace)||t.push(n);for(var o=1;o<e.length;++o){var i=e[o];if(!Object(r.tokenMatcher)(i,this.lexerConfig.WhiteSpace)){var a=e[o-1];Object(r.tokenMatcher)(a,this.lexerConfig.WhiteSpace)&&(i.leadingWhitespace=a),t.push(i)}}return t}},{key:"tokenizeFormula",value:function(e){return this.lexer.tokenizeFormula(e)}}])&&y(t.prototype,n),p&&y(t,p),Object.defineProperty(t,"prototype",{writable:!1}),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"binaryOpTokenMap",(function(){return a}));var r,o=n(100);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var a=(i(r={},o.AstNodeType.PLUS_OP,"+"),i(r,o.AstNodeType.MINUS_OP,"-"),i(r,o.AstNodeType.TIMES_OP,"*"),i(r,o.AstNodeType.DIV_OP,"/"),i(r,o.AstNodeType.CONCATENATE_OP,"&"),i(r,o.AstNodeType.POWER_OP,"^"),i(r,o.AstNodeType.EQUALS_OP,"="),i(r,o.AstNodeType.NOT_EQUAL_OP,"<>"),i(r,o.AstNodeType.GREATER_THAN_OP,">"),i(r,o.AstNodeType.GREATER_THAN_OR_EQUAL_OP,">="),i(r,o.AstNodeType.LESS_THAN_OP,"<"),i(r,o.AstNodeType.LESS_THAN_OR_EQUAL_OP,"<="),r)},function(e,t,n){var r=n(28),o=n(70),i=n(64),a=n(65),s=n(692),u=n(112),l=n(209);r({target:"Reflect",stat:!0},{get:function e(t,n){var r,c,f=arguments.length<3?t:arguments[2];return a(t)===f?t[n]:(r=u.f(t,n))?s(r)?r.value:void 0===r.get?void 0:o(r.get,f):i(c=l(t))?e(c,n,f):void 0}})},function(e,t,n){"use strict";n.r(t),n.d(t,"collectDependencies",(function(){return o}));n(0),n(26);var r=n(72),o=function(e,t){var n=new Array;return function e(t,n,o,i){switch(t.type){case r.AstNodeType.EMPTY:case r.AstNodeType.NUMBER:case r.AstNodeType.STRING:case r.AstNodeType.ERROR:return;case r.AstNodeType.NAMED_EXPRESSION:return void(i&&o.push(new r.NamedExpressionDependency(t.expressionName)));case r.AstNodeType.CELL_REFERENCE:return void(i&&o.push(new r.AddressDependency(t.reference)));case r.AstNodeType.CELL_RANGE:return void(i&&t.start.sheet===t.end.sheet&&o.push(new r.CellRangeDependency(t.start,t.end)));case r.AstNodeType.COLUMN_RANGE:return void(i&&t.start.sheet===t.end.sheet&&o.push(new r.ColumnRangeDependency(t.start,t.end)));case r.AstNodeType.ROW_RANGE:return void(i&&t.start.sheet===t.end.sheet&&o.push(new r.RowRangeDependency(t.start,t.end)));case r.AstNodeType.PERCENT_OP:case r.AstNodeType.PLUS_UNARY_OP:case r.AstNodeType.MINUS_UNARY_OP:return void e(t.value,n,o,!0);case r.AstNodeType.CONCATENATE_OP:case r.AstNodeType.EQUALS_OP:case r.AstNodeType.NOT_EQUAL_OP:case r.AstNodeType.LESS_THAN_OP:case r.AstNodeType.GREATER_THAN_OP:case r.AstNodeType.LESS_THAN_OR_EQUAL_OP:case r.AstNodeType.GREATER_THAN_OR_EQUAL_OP:case r.AstNodeType.MINUS_OP:case r.AstNodeType.PLUS_OP:case r.AstNodeType.TIMES_OP:case r.AstNodeType.DIV_OP:case r.AstNodeType.POWER_OP:return e(t.left,n,o,!0),void e(t.right,n,o,!0);case r.AstNodeType.PARENTHESIS:return void e(t.expression,n,o,i);case r.AstNodeType.FUNCTION_CALL:var a=!n.doesFunctionNeedArgumentToBeComputed(t.procedureName);return void t.args.forEach((function(t){return e(t,n,o,a)}))}}(e,t,n,!0),n}},function(e,t,n){"use strict";n.r(t),n.d(t,"EmptyStatistics",(function(){return c}));n(27),n(0),n(7),n(8),n(9),n(10),n(3),n(2),n(4);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(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=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var c=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(l,e);var t,n,r,u=s(l);function l(){return o(this,l),u.apply(this,arguments)}return t=l,(n=[{key:"incrementCriterionFunctionFullCacheUsed",value:function(){}},{key:"incrementCriterionFunctionPartialCacheUsed",value:function(){}},{key:"start",value:function(e){}},{key:"end",value:function(e){}}])&&i(t.prototype,n),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(n(272).Statistics)},function(e,t,n){"use strict";n.r(t),n.d(t,"NotComputedArray",(function(){return d})),n.d(t,"ArrayValue",(function(){return h})),n.d(t,"ErroredArray",(function(){return p}));n(54),n(18),n(137),n(8),n(9),n(0),n(10),n(3),n(2),n(4),n(22),n(13),n(25),n(12);var r=n(124),o=n(51),i=n(78);function a(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||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.")}()}function s(e,t){if(e){if("string"==typeof e)return u(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)?u(e,t):void 0}}function u(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 l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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 f(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var d=function(){function e(t){l(this,e),this.size=t}return f(e,[{key:"width",value:function(){return this.size.width}},{key:"height",value:function(){return this.size.height}},{key:"get",value:function(e,t){throw Error("Array not computed yet.")}},{key:"simpleRangeValue",value:function(){throw Error("Array not computed yet.")}}]),e}(),h=function(){function e(t){l(this,e),this.size=new r.ArraySize(t.length>0?t[0].length:0,t.length),this.array=t}return f(e,[{key:"simpleRangeValue",value:function(){return i.SimpleRangeValue.onlyValues(this.array)}},{key:"addRows",value:function(e,t){var n;(n=this.array).splice.apply(n,[e,0].concat(a(this.nullArrays(t,this.width())))),this.size.height+=t}},{key:"addColumns",value:function(e,t){for(var n=0;n<this.height();n++){var r;(r=this.array[n]).splice.apply(r,[e,0].concat(a(new Array(t).fill(o.EmptyValue))))}this.size.width+=t}},{key:"removeRows",value:function(e,t){if(this.outOfBound(0,e)||this.outOfBound(0,t))throw Error("Array index out of bound");var n=t-e+1;this.array.splice(e,n),this.size.height-=n}},{key:"removeColumns",value:function(e,t){if(this.outOfBound(e,0)||this.outOfBound(t,0))throw Error("Array index out of bound");var n,r=t-e+1,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=s(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}(this.array);try{for(o.s();!(n=o.n()).done;){n.value.splice(e,r)}}catch(e){o.e(e)}finally{o.f()}this.size.width-=r}},{key:"nullArrays",value:function(e,t){for(var n=[],r=0;r<e;++r)n.push(new Array(t).fill(o.EmptyValue));return n}},{key:"get",value:function(e,t){if(this.outOfBound(e,t))throw Error("Array index out of bound");return this.array[t][e]}},{key:"set",value:function(e,t,n){if(this.outOfBound(e,t))throw Error("Array index out of bound");this.array[t][e]=n}},{key:"width",value:function(){return this.size.width}},{key:"height",value:function(){return this.size.height}},{key:"raw",value:function(){return this.array}},{key:"resize",value:function(e){if(this.height()<e.height&&isFinite(e.height)&&this.addRows(this.height(),e.height-this.height()),this.height()>e.height)throw"Resizing to smaller array";if(this.width()<e.width&&isFinite(e.width)&&this.addColumns(this.width(),e.width-this.width()),this.width()>e.width)throw"Resizing to smaller array"}},{key:"outOfBound",value:function(e,t){return e<0||t<0||t>this.size.height-1||e>this.size.width-1}}],[{key:"fromInterpreterValue",value:function(t){return t instanceof i.SimpleRangeValue?new e(t.data):new e([[t]])}}]),e}(),p=function(){function e(t,n){l(this,e),this.error=t,this.size=n}return f(e,[{key:"get",value:function(e,t){return this.error}},{key:"width",value:function(){return this.size.width}},{key:"height",value:function(){return this.size.height}},{key:"simpleRangeValue",value:function(){return this.error}}]),e}()},function(e,t,n){var r=n(28),o=n(370).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},function(e,t,n){var r=n(69),o=n(36),i=n(174),a=n(93),s=o(n(202).f),u=o([].push),l=function(e){return function(t){for(var n,o=a(t),l=i(o),c=l.length,f=0,d=[];c>f;)n=l[f++],r&&!s(o,n)||u(d,e?[n,o[n]]:o[n]);return d}};e.exports={entries:l(!0),values:l(!1)}},function(e,t,n){"use strict";n.r(t),n.d(t,"EmptyCellVertex",(function(){return i}));var r=n(51);function o(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)}}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
var i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.address=t}var t,n,i;return t=e,(n=[{key:"getCellValue",value:function(){return r.EmptyValue}}])&&o(t.prototype,n),i&&o(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}()},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)}}n.r(t),n.d(t,"ValueCellVertex",(function(){return o}));
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
var o=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.parsedValue=t,this.rawValue=n}var t,n,o;return t=e,(n=[{key:"getValues",value:function(){return{parsedValue:this.parsedValue,rawValue:this.rawValue}}},{key:"setValues",value:function(e){this.parsedValue=e.parsedValue,this.rawValue=e.rawValue}},{key:"getCellValue",value:function(){return this.parsedValue}},{key:"setCellValue",value:function(e){throw"SetCellValue is deprecated for ValueCellVertex"}}])&&r(t.prototype,n),o&&r(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"ParsingErrorVertex",(function(){return i}));var r=n(24);function o(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)}}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
var i=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.errors=t,this.rawInput=n}var t,n,i;return t=e,(n=[{key:"getCellValue",value:function(){return r.CellError.parsingError()}},{key:"getFormula",value:function(){return this.rawInput}}])&&o(t.prototype,n),i&&o(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}()},function(e,t,n){"use strict";var r=n(36),o=n(259),i=n(180).getWeakData,a=n(65),s=n(64),u=n(257),l=n(256),c=n(134),f=n(62),d=n(113),h=d.set,p=d.getterFor,y=c.find,m=c.findIndex,g=r([].splice),v=0,E=function(e){return e.frozen||(e.frozen=new b)},b=function(){this.entries=[]},T=function(e,t){return y(e.entries,(function(e){return e[0]===t}))};b.prototype={get:function(e){var t=T(this,e);if(t)return t[1]},has:function(e){return!!T(this,e)},set:function(e,t){var n=T(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=m(this.entries,(function(t){return t[0]===e}));return~t&&g(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var c=e((function(e,o){u(e,d),h(e,{type:t,id:v++,frozen:void 0}),null!=o&&l(o,e[r],{that:e,AS_ENTRIES:n})})),d=c.prototype,y=p(t),m=function(e,t,n){var r=y(e),o=i(a(t),!0);return!0===o?E(r).set(t,n):o[r.id]=n,e};return o(d,{delete:function(e){var t=y(this);if(!s(e))return!1;var n=i(e);return!0===n?E(t).delete(e):n&&f(n,t.id)&&delete n[t.id]},has:function(e){var t=y(this);if(!s(e))return!1;var n=i(e);return!0===n?E(t).has(e):n&&f(n,t.id)}}),o(d,n?{get:function(e){var t=y(this);if(s(e)){var n=i(e);return!0===n?E(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return m(this,e,t)}}:{add:function(e){return m(this,e,!0)}}),c}}},function(e,t,n){"use strict";n.r(t),n.d(t,"configValueFromParam",(function(){return u})),n.d(t,"validateNumberToBeAtLeast",(function(){return l})),n.d(t,"validateNumberToBeAtMost",(function(){return c})),n.d(t,"configValueFromParamCheck",(function(){return f})),n.d(t,"configCheckIfParametersNotInConflict",(function(){return d})),n.d(t,"validateArgToType",(function(){return h}));n(42),n(49),n(75),n(37),n(3),n(33),n(0),n(2),n(4),n(26),n(25),n(73),n(8),n(9),n(10),n(13),n(22),n(12);var r=n(226),o=n(41);function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return a(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 a(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw i}}}}function a(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 s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/function u(e,t,n){if(void 0===e)return r.Config.defaultConfig[n];if("string"==typeof t){if(s(e)===t)return e;throw new o.ExpectedValueOfTypeError(t,n)}if(t.includes(e))return e;throw new o.ExpectedOneOfValuesError(t.map((function(e){return"'".concat(e,"'")})).join(" "),n)}function l(e,t,n){if(e<n)throw new o.ConfigValueTooSmallError(t,n)}function c(e,t,n){if(e>n)throw new o.ConfigValueTooBigError(t,n)}function f(e,t,n,i){if(t(e))return e;if(void 0===e)return r.Config.defaultConfig[i];throw new o.ExpectedValueOfTypeError(n,i)}function d(){for(var e=new Map,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach((function(t){var n=e.get(t.value)||[];n.push(t.name),e.set(t.value,n)}));var o,a=[],s=i(e.values());try{for(s.s();!(o=s.n()).done;){var u=o.value;u.length>1&&a.push(u)}}catch(e){s.e(e)}finally{s.f()}if(a.length>0){a.forEach((function(e){return e.sort()}));var l=a.map((function(e){return"[".concat(e,"]")})).join("; ");throw new Error("Config initialization failed. Parameters in conflict: ".concat(l))}}function h(e,t,n){if(s(e)!==t)throw new o.ExpectedValueOfTypeError(t,n)}},function(e,t,n){"use strict";n.r(t),n.d(t,"defaultParseToDateTime",(function(){return r})),n.d(t,"secondsExtendedRegexp",(function(){return o}));n(109),n(12),n(63),n(61),n(42),n(49),n(13),n(87),n(284),n(52);
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
function r(e,t,n){var r=(e=e.replace(/\s\s+/g," ").trim().toLowerCase()).substring(e.length-2);"am"===r||"pm"===r?e=e.substring(0,e.length-2).trim():"a"===(r=e.substring(e.length-1))||"p"===r?e=e.substring(0,e.length-1).trim():r=void 0;var o=e.split(/[ /.-]/g);o.length>=2&&o[o.length-2].includes(":")&&(o[o.length-2]=o[o.length-2]+"."+o[o.length-1],o.pop());var s=o[o.length-1].split(":");if(void 0!==r&&s.push(r),1===o.length)return i(s,n);if(1===s.length)return a(o,t);var u=a(o.slice(0,o.length-1),t),l=i(s,n);return void 0===u||void 0===l?void 0:Object.assign(Object.assign({},u),l)}var o=/^ss\.(s+|0+)$/;function i(e,t){if(void 0!==t){(t=t.toLowerCase()).endsWith("am/pm")?t=t.substring(0,t.length-5).trim():t.endsWith("a/p")&&(t=t.substring(0,t.length-3).trim());var n=t.split(":"),r=void 0;"am"===e[e.length-1]||"a"===e[e.length-1]?(r=!1,e.pop()):"pm"!==e[e.length-1]&&"p"!==e[e.length-1]||(r=!0,e.pop());var i=0;if(n.length>=1&&o.test(n[n.length-1])&&(i=n[n.length-1].length-3,n[n.length-1]="ss"),e.length===n.length){var a=n.indexOf("hh"),s=n.indexOf("mm"),u=n.indexOf("ss"),l=-1!==a?e[a]:"0";if(/^\d+$/.test(l)){var c=Number(l);if(void 0!==r){if(c<0||c>12)return;c%=12,r&&(c+=12)}var f=-1!==s?e[s]:"0";if(/^\d+$/.test(f)){var d=Number(f),h=-1!==u?e[u]:"0";if(/^\d+(\.\d+)?$/.test(h)){var p=Number(h);return{hours:c,minutes:d,seconds:p=Math.round(p*Math.pow(10,i))/Math.pow(10,i)}}}}}}}function a(e,t){if(void 0!==t){var n=t.toLowerCase().split(/[ /.-]/g);if(e.length===n.length){var r=n.indexOf("mm"),o=n.indexOf("dd"),i=n.indexOf("yyyy"),a=n.indexOf("yy");if(r in e&&o in e&&(i in e||a in e)&&(!(i in e)||!(a in e))){var s;if(i in e){var u=e[i];if(!/^\d+$/.test(u))return;if((s=Number(u))<1e3||s>9999)return}else{var l=e[a];if(!/^\d+$/.test(l))return;if((s=Number(l))<0||s>99)return}var c=e[r];if(/^\d+$/.test(c)){var f=Number(c),d=e[o];if(/^\d+$/.test(d))return{year:s,month:f,day:Number(d)}}}}}}},function(e,t,n){"use strict";n.r(t),n.d(t,"ClipboardCellType",(function(){return o})),n.d(t,"ClipboardOperations",(function(){return d}));n(85);var r,o,i=n(86),a=n(24),s=n(41);function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(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 c(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/!function(e){e[e.COPY=0]="COPY",e[e.CUT=1]="CUT"}(r||(r={})),function(e){e[e.VALUE=0]="VALUE",e[e.EMPTY=1]="EMPTY",e[e.FORMULA=2]="FORMULA",e[e.PARSING_ERROR=3]="PARSING_ERROR"}(o||(o={}));var f=function(){function e(t,n,r,o,i){u(this,e),this.sourceLeftCorner=t,this.width=n,this.height=r,this.type=o,this.content=i}return c(e,[{key:"getContent",value:regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==this.content){e.next=4;break}return e.abrupt("return");case 4:n=0;case 5:if(!(n<this.height)){e.next=16;break}r=0;case 7:if(!(r<this.width)){e.next=13;break}return e.next=10,[Object(a.simpleCellAddress)(t.sheet,t.col+r,t.row+n),this.content[n][r]];case 10:++r,e.next=7;break;case 13:++n,e.next=5;break;case 16:case"end":return e.stop()}}),e,this)}))}]),e}(),d=function(){function e(t,n,r){u(this,e),this.dependencyGraph=n,this.operations=r,this.maxRows=t.maxRows,this.maxColumns=t.maxColumns}return c(e,[{key:"cut",value:function(e,t,n){this.clipboard=new f(e,t,n,r.CUT)}},{key:"copy",value:function(e,t,n){for(var o=[],i=0;i<n;++i){o[i]=[];for(var s=0;s<t;++s){var u=this.operations.getClipboardCell(Object(a.simpleCellAddress)(e.sheet,e.col+s,e.row+i));o[i].push(u)}}this.clipboard=new f(e,t,n,r.COPY,o)}},{key:"abortCut",value:function(){this.clipboard&&this.clipboard.type===r.CUT&&this.clear()}},{key:"clear",value:function(){this.clipboard=void 0}},{key:"ensureItIsPossibleToCopyPaste",value:function(e){if(void 0!==this.clipboard){if(Object(a.invalidSimpleCellAddress)(e)||!this.dependencyGraph.sheetMapping.hasSheetWithId(e.sheet))throw new s.InvalidArgumentsError("a valid target address.");var t=i.AbsoluteCellRange.spanFrom(e,this.clipboard.width,this.clipboard.height);if(t.exceedsSheetSizeLimits(this.maxColumns,this.maxRows))throw new s.SheetSizeLimitExceededError;if(this.dependencyGraph.arrayMapping.isFormulaArrayInRange(t))throw new Error("It is not possible to paste onto an array")}}},{key:"isCutClipboard",value:function(){return void 0!==this.clipboard&&this.clipboard.type===r.CUT}},{key:"isCopyClipboard",value:function(){return void 0!==this.clipboard&&this.clipboard.type===r.COPY}}]),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"AddRowsTransformer",(function(){return c}));n(87),n(27),n(0),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(24);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)}function i(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 a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(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=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var c=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(l,e);var t,n,o,u=s(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=u.call(this)).rowsSpan=e,t}return t=l,(n=[{key:"sheet",get:function(){return this.rowsSpan.sheet}},{key:"isIrreversible",value:function(){return!1}},{key:"transformColumnRangeAst",value:function(e,t){return e}},{key:"transformCellRange",value:function(e,t,n){return this.transformRange(e,t,n)}},{key:"transformRowRange",value:function(e,t,n){return this.transformRange(e,t,n)}},{key:"transformColumnRange",value:function(e,t,n){throw Error("Not implemented")}},{key:"transformCellAddress",value:function(e,t){var n=Object(r.absoluteSheetReference)(e,t);if(n!==this.rowsSpan.sheet&&t.sheet!==this.rowsSpan.sheet)return!1;var o=e.toSimpleRowAddress(t);return n===this.rowsSpan.sheet&&t.sheet!==this.rowsSpan.sheet?this.rowsSpan.rowStart<=o.row&&e.shiftedByRows(this.rowsSpan.numberOfRows):t.sheet===this.rowsSpan.sheet&&n!==this.rowsSpan.sheet?!e.isRowAbsolute()&&!(t.row<this.rowsSpan.rowStart)&&e.shiftedByRows(-this.rowsSpan.numberOfRows):e.isRowAbsolute()?!(e.row<this.rowsSpan.rowStart)&&e.shiftedByRows(this.rowsSpan.numberOfRows):o.row<this.rowsSpan.rowStart?!(t.row<this.rowsSpan.rowStart)&&e.shiftedByRows(-this.rowsSpan.numberOfRows):t.row<this.rowsSpan.rowStart&&e.shiftedByRows(this.rowsSpan.numberOfRows)}},{key:"fixNodeAddress",value:function(e){return this.rowsSpan.sheet===e.sheet&&this.rowsSpan.rowStart<=e.row?Object.assign(Object.assign({},e),{row:e.row+this.rowsSpan.numberOfRows}):e}},{key:"transformRange",value:function(e,t,n){var o=this.transformCellAddress(e,n),i=this.transformCellAddress(t,n);return o===r.ErrorType.REF||i===r.ErrorType.REF?r.ErrorType.REF:!(!o&&!i)&&[o||e,i||t]}}])&&i(t.prototype,n),o&&i(t,o),Object.defineProperty(t,"prototype",{writable:!1}),l}(n(139).Transformer)},function(e,t,n){"use strict";n.r(t),n.d(t,"RemoveRowsTransformer",(function(){return c}));n(87),n(27),n(0),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(24);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)}function i(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 a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(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=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var c=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(l,e);var t,n,o,u=s(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=u.call(this)).rowsSpan=e,t}return t=l,(n=[{key:"sheet",get:function(){return this.rowsSpan.sheet}},{key:"isIrreversible",value:function(){return!0}},{key:"transformColumnRangeAst",value:function(e,t){return e}},{key:"transformCellAddress",value:function(e,t){var n=Object(r.absoluteSheetReference)(e,t);if(this.rowsSpan.sheet!==t.sheet&&this.rowsSpan.sheet!==n)return!1;if(this.rowsSpan.sheet!==t.sheet&&this.rowsSpan.sheet===n){var o=e.toSimpleRowAddress(t);if(o.row<this.rowsSpan.rowStart)return!1;if(o.row>this.rowsSpan.rowEnd)return e.shiftedByRows(-this.rowsSpan.numberOfRows)}if(this.rowsSpan.sheet===t.sheet&&this.rowsSpan.sheet!==n){if(e.isRowAbsolute())return!1;if(t.row<this.rowsSpan.rowStart)return!1;if(t.row>this.rowsSpan.rowEnd)return e.shiftedByRows(this.rowsSpan.numberOfRows)}if(this.rowsSpan.sheet===t.sheet&&this.rowsSpan.sheet===n)if(e.isRowAbsolute()){if(e.row<this.rowsSpan.rowStart)return!1;if(e.row>this.rowsSpan.rowEnd)return e.shiftedByRows(-this.rowsSpan.numberOfRows)}else{var i=e.toSimpleRowAddress(t);if(i.row<this.rowsSpan.rowStart){if(t.row<this.rowsSpan.rowStart)return!1;if(t.row>this.rowsSpan.rowEnd)return e.shiftedByRows(this.rowsSpan.numberOfRows)}else if(i.row>this.rowsSpan.rowEnd){if(t.row<this.rowsSpan.rowStart)return e.shiftedByRows(-this.rowsSpan.numberOfRows);if(t.row>this.rowsSpan.rowEnd)return!1}}return r.ErrorType.REF}},{key:"transformCellRange",value:function(e,t,n){return this.transformRange(e,t,n)}},{key:"transformRowRange",value:function(e,t,n){return this.transformRange(e,t,n)}},{key:"transformColumnRange",value:function(e,t,n){throw Error("Not implemented")}},{key:"fixNodeAddress",value:function(e){return this.rowsSpan.sheet===e.sheet&&this.rowsSpan.rowStart<=e.row?Object.assign(Object.assign({},e),{row:e.row-this.rowsSpan.numberOfRows}):e}},{key:"transformRange",value:function(e,t,n){var o=Object(r.absoluteSheetReference)(e,n),i=e,a=t;if(this.rowsSpan.sheet===o){var s=e.toSimpleRowAddress(n),u=t.toSimpleRowAddress(n);if(this.rowsSpan.rowStart<=s.row&&this.rowsSpan.rowEnd>=u.row)return r.ErrorType.REF;s.row>=this.rowsSpan.rowStart&&s.row<=this.rowsSpan.rowEnd&&(i=e.shiftedByRows(this.rowsSpan.rowEnd-s.row+1)),u.row>=this.rowsSpan.rowStart&&u.row<=this.rowsSpan.rowEnd&&(a=t.shiftedByRows(-(u.row-this.rowsSpan.rowStart+1)))}var l=this.transformCellAddress(i,n),c=this.transformCellAddress(a,n);return!1===l&&!1===c?[i,a]:l===r.ErrorType.REF||c===r.ErrorType.REF?r.ErrorType.REF:[l||i,c||a]}}])&&i(t.prototype,n),o&&i(t,o),Object.defineProperty(t,"prototype",{writable:!1}),l}(n(139).Transformer)},function(e,t,n){"use strict";n.r(t),n.d(t,"BaseUndoEntry",(function(){return v})),n.d(t,"RemoveRowsUndoEntry",(function(){return E})),n.d(t,"MoveCellsUndoEntry",(function(){return b})),n.d(t,"AddRowsUndoEntry",(function(){return T})),n.d(t,"SetRowOrderUndoEntry",(function(){return C})),n.d(t,"SetColumnOrderUndoEntry",(function(){return w})),n.d(t,"SetSheetContentUndoEntry",(function(){return R})),n.d(t,"MoveRowsUndoEntry",(function(){return O})),n.d(t,"MoveColumnsUndoEntry",(function(){return S})),n.d(t,"AddColumnsUndoEntry",(function(){return A})),n.d(t,"RemoveColumnsUndoEntry",(function(){return N})),n.d(t,"AddSheetUndoEntry",(function(){return _})),n.d(t,"RemoveSheetUndoEntry",(function(){return k})),n.d(t,"RenameSheetUndoEntry",(function(){return M})),n.d(t,"ClearSheetUndoEntry",(function(){return I})),n.d(t,"SetCellContentsUndoEntry",(function(){return P})),n.d(t,"PasteUndoEntry",(function(){return x})),n.d(t,"AddNamedExpressionUndoEntry",(function(){return D})),n.d(t,"RemoveNamedExpressionUndoEntry",(function(){return L})),n.d(t,"ChangeNamedExpressionUndoEntry",(function(){return F})),n.d(t,"BatchUndoEntry",(function(){return j})),n.d(t,"UndoRedo",(function(){return U}));n(85),n(25),n(3),n(33),n(0),n(2),n(4),n(54),n(27),n(7),n(13),n(22),n(12),n(8),n(9),n(10);var r=n(24),o=n(228);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;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,t)||u(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 s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=u(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function u(e,t){if(e){if("string"==typeof e)return l(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)?l(e,t):void 0}}function l(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 c(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(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 m(e,t,n){return t&&y(e.prototype,t),n&&y(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var v=m((function e(){g(this,e)})),E=function(e){c(n,e);var t=d(n);function n(e,r){var o;return g(this,n),(o=t.call(this)).command=e,o.rowsRemovals=r,o}return m(n,[{key:"doUndo",value:function(e){e.undoRemoveRows(this)}},{key:"doRedo",value:function(e){e.redoRemoveRows(this)}}]),n}(v),b=function(e){c(n,e);var t=d(n);function n(e,r,o,i,a,s,u){var l;return g(this,n),(l=t.call(this)).sourceLeftCorner=e,l.width=r,l.height=o,l.destinationLeftCorner=i,l.overwrittenCellsData=a,l.addedGlobalNamedExpressions=s,l.version=u,l}return m(n,[{key:"doUndo",value:function(e){e.undoMoveCells(this)}},{key:"doRedo",value:function(e){e.redoMoveCells(this)}}]),n}(v),T=function(e){c(n,e);var t=d(n);function n(e){var r;return g(this,n),(r=t.call(this)).command=e,r}return m(n,[{key:"doUndo",value:function(e){e.undoAddRows(this)}},{key:"doRedo",value:function(e){e.redoAddRows(this)}}]),n}(v),C=function(e){c(n,e);var t=d(n);function n(e,r,o){var i;return g(this,n),(i=t.call(this)).sheetId=e,i.rowMapping=r,i.oldContent=o,i}return m(n,[{key:"doUndo",value:function(e){e.undoSetRowOrder(this)}},{key:"doRedo",value:function(e){e.redoSetRowOrder(this)}}]),n}(v),w=function(e){c(n,e);var t=d(n);function n(e,r,o){var i;return g(this,n),(i=t.call(this)).sheetId=e,i.columnMapping=r,i.oldContent=o,i}return m(n,[{key:"doUndo",value:function(e){e.undoSetColumnOrder(this)}},{key:"doRedo",value:function(e){e.redoSetColumnOrder(this)}}]),n}(v),R=function(e){c(n,e);var t=d(n);function n(e,r,o){var i;return g(this,n),(i=t.call(this)).sheetId=e,i.oldSheetContent=r,i.newSheetContent=o,i}return m(n,[{key:"doUndo",value:function(e){e.undoSetSheetContent(this)}},{key:"doRedo",value:function(e){e.redoSetSheetContent(this)}}]),n}(v),O=function(e){c(n,e);var t=d(n);function n(e,r,o,i,a){var s;return g(this,n),(s=t.call(this)).sheet=e,s.startRow=r,s.numberOfRows=o,s.targetRow=i,s.version=a,s.undoStart=s.startRow<s.targetRow?s.targetRow-s.numberOfRows:s.targetRow,s.undoEnd=s.startRow>s.targetRow?s.startRow+s.numberOfRows:s.startRow,s}return m(n,[{key:"doUndo",value:function(e){e.undoMoveRows(this)}},{key:"doRedo",value:function(e){e.redoMoveRows(this)}}]),n}(v),S=function(e){c(n,e);var t=d(n);function n(e,r,o,i,a){var s;return g(this,n),(s=t.call(this)).sheet=e,s.startColumn=r,s.numberOfColumns=o,s.targetColumn=i,s.version=a,s.undoStart=s.startColumn<s.targetColumn?s.targetColumn-s.numberOfColumns:s.targetColumn,s.undoEnd=s.startColumn>s.targetColumn?s.startColumn+s.numberOfColumns:s.startColumn,s}return m(n,[{key:"doUndo",value:function(e){e.undoMoveColumns(this)}},{key:"doRedo",value:function(e){e.redoMoveColumns(this)}}]),n}(v),A=function(e){c(n,e);var t=d(n);function n(e){var r;return g(this,n),(r=t.call(this)).command=e,r}return m(n,[{key:"doUndo",value:function(e){e.undoAddColumns(this)}},{key:"doRedo",value:function(e){e.redoAddColumns(this)}}]),n}(v),N=function(e){c(n,e);var t=d(n);function n(e,r){var o;return g(this,n),(o=t.call(this)).command=e,o.columnsRemovals=r,o}return m(n,[{key:"doUndo",value:function(e){e.undoRemoveColumns(this)}},{key:"doRedo",value:function(e){e.redoRemoveColumns(this)}}]),n}(v),_=function(e){c(n,e);var t=d(n);function n(e){var r;return g(this,n),(r=t.call(this)).sheetName=e,r}return m(n,[{key:"doUndo",value:function(e){e.undoAddSheet(this)}},{key:"doRedo",value:function(e){e.redoAddSheet(this)}}]),n}(v),k=function(e){c(n,e);var t=d(n);function n(e,r,o,i,a){var s;return g(this,n),(s=t.call(this)).sheetName=e,s.sheetId=r,s.oldSheetContent=o,s.scopedNamedExpressions=i,s.version=a,s}return m(n,[{key:"doUndo",value:function(e){e.undoRemoveSheet(this)}},{key:"doRedo",value:function(e){e.redoRemoveSheet(this)}}]),n}(v),M=function(e){c(n,e);var t=d(n);function n(e,r,o){var i;return g(this,n),(i=t.call(this)).sheetId=e,i.oldName=r,i.newName=o,i}return m(n,[{key:"doUndo",value:function(e){e.undoRenameSheet(this)}},{key:"doRedo",value:function(e){e.redoRenameSheet(this)}}]),n}(v),I=function(e){c(n,e);var t=d(n);function n(e,r){var o;return g(this,n),(o=t.call(this)).sheetId=e,o.oldSheetContent=r,o}return m(n,[{key:"doUndo",value:function(e){e.undoClearSheet(this)}},{key:"doRedo",value:function(e){e.redoClearSheet(this)}}]),n}(v),P=function(e){c(n,e);var t=d(n);function n(e){var r;return g(this,n),(r=t.call(this)).cellContents=e,r}return m(n,[{key:"doUndo",value:function(e){e.undoSetCellContents(this)}},{key:"doRedo",value:function(e){e.redoSetCellContents(this)}}]),n}(v),x=function(e){c(n,e);var t=d(n);function n(e,r,o,i){var a;return g(this,n),(a=t.call(this)).targetLeftCorner=e,a.oldContent=r,a.newContent=o,a.addedGlobalNamedExpressions=i,a}return m(n,[{key:"doUndo",value:function(e){e.undoPaste(this)}},{key:"doRedo",value:function(e){e.redoPaste(this)}}]),n}(v),D=function(e){c(n,e);var t=d(n);function n(e,r,o,i){var a;return g(this,n),(a=t.call(this)).name=e,a.newContent=r,a.scope=o,a.options=i,a}return m(n,[{key:"doUndo",value:function(e){e.undoAddNamedExpression(this)}},{key:"doRedo",value:function(e){e.redoAddNamedExpression(this)}}]),n}(v),L=function(e){c(n,e);var t=d(n);function n(e,r,o){var i;return g(this,n),(i=t.call(this)).namedExpression=e,i.content=r,i.scope=o,i}return m(n,[{key:"doUndo",value:function(e){e.undoRemoveNamedExpression(this)}},{key:"doRedo",value:function(e){e.redoRemoveNamedExpression(this)}}]),n}(v),F=function(e){c(n,e);var t=d(n);function n(e,r,o,i,a){var s;return g(this,n),(s=t.call(this)).namedExpression=e,s.newContent=r,s.oldContent=o,s.scope=i,s.options=a,s}return m(n,[{key:"doUndo",value:function(e){e.undoChangeNamedExpression(this)}},{key:"doRedo",value:function(e){e.redoChangeNamedExpression(this)}}]),n}(v),j=function(e){c(n,e);var t=d(n);function n(){var e;return g(this,n),(e=t.apply(this,arguments)).operations=[],e}return m(n,[{key:"add",value:function(e){this.operations.push(e)}},{key:"reversedOperations",value:regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.operations.length-1;case 1:if(!(t>=0)){e.next=7;break}return e.next=4,this.operations[t];case 4:t--,e.next=1;break;case 7:case"end":return e.stop()}}),e,this)}))},{key:"doUndo",value:function(e){e.undoBatch(this)}},{key:"doRedo",value:function(e){e.redoBatch(this)}}]),n}(v),U=function(){function e(t,n){g(this,e),this.operations=n,this.oldData=new Map,this.undoStack=[],this.redoStack=[],this.undoLimit=t.undoLimit}return m(e,[{key:"saveOperation",value:function(e){void 0!==this.batchUndoEntry?this.batchUndoEntry.add(e):this.addUndoEntry(e)}},{key:"beginBatchMode",value:function(){this.batchUndoEntry=new j}},{key:"commitBatchMode",value:function(){if(void 0===this.batchUndoEntry)throw"Batch mode wasn't started";this.addUndoEntry(this.batchUndoEntry),this.batchUndoEntry=void 0}},{key:"storeDataForVersion",value:function(e,t,n){this.oldData.has(e)||this.oldData.set(e,[]),this.oldData.get(e).push([t,n])}},{key:"clearRedoStack",value:function(){this.redoStack=[]}},{key:"clearUndoStack",value:function(){this.undoStack=[]}},{key:"isUndoStackEmpty",value:function(){return 0===this.undoStack.length}},{key:"isRedoStackEmpty",value:function(){return 0===this.redoStack.length}},{key:"undo",value:function(){var e=this.undoStack.pop();if(!e)throw"Attempted to undo without operation on stack";this.undoEntry(e),this.redoStack.push(e)}},{key:"undoBatch",value:function(e){var t,n=s(e.reversedOperations());try{for(n.s();!(t=n.n()).done;){var r=t.value;this.undoEntry(r)}}catch(e){n.e(e)}finally{n.f()}}},{key:"undoRemoveRows",value:function(e){this.operations.forceApplyPostponedTransformations();for(var t=e.command.sheet,n=e.rowsRemovals,r=n.length-1;r>=0;--r){var i=n[r];this.operations.addRows(new o.AddRowsCommand(t,[[i.rowFrom,i.rowCount]]));var a,u=s(i.removedCells);try{for(u.s();!(a=u.n()).done;){var l=a.value,c=l.address,f=l.cellType;this.operations.restoreCell(c,f)}}catch(e){u.e(e)}finally{u.f()}this.restoreOldDataFromVersion(i.version-1)}}},{key:"undoRemoveColumns",value:function(e){this.operations.forceApplyPostponedTransformations();for(var t=e.command.sheet,n=e.columnsRemovals,r=n.length-1;r>=0;--r){var i=n[r];this.operations.addColumns(new o.AddColumnsCommand(t,[[i.columnFrom,i.columnCount]]));var a,u=s(i.removedCells);try{for(u.s();!(a=u.n()).done;){var l=a.value,c=l.address,f=l.cellType;this.operations.restoreCell(c,f)}}catch(e){u.e(e)}finally{u.f()}this.restoreOldDataFromVersion(i.version-1)}}},{key:"undoAddRows",value:function(e){for(var t=e.command.rowsSpans(),n=t.length-1;n>=0;--n){var r=t[n];this.operations.removeRows(new o.RemoveRowsCommand(e.command.sheet,[[r.rowStart,r.numberOfRows]]))}}},{key:"undoAddColumns",value:function(e){for(var t=e.command.columnsSpans(),n=t.length-1;n>=0;--n){var r=t[n];this.operations.removeColumns(new o.RemoveColumnsCommand(e.command.sheet,[[r.columnStart,r.numberOfColumns]]))}}},{key:"undoSetCellContents",value:function(e){var t,n=s(e.cellContents);try{for(n.s();!(t=n.n()).done;){var o=t.value,i=o.address,u=a(o.oldContent,2),l=u[0],c=u[1];Object(r.equalSimpleCellAddress)(i,l)||this.operations.setCellEmpty(i),this.operations.restoreCell(l,c)}}catch(e){n.e(e)}finally{n.f()}}},{key:"undoPaste",value:function(e){this.restoreOperationOldContent(e.oldContent);var t,n=s(e.addedGlobalNamedExpressions);try{for(n.s();!(t=n.n()).done;){var r=t.value;this.operations.removeNamedExpression(r)}}catch(e){n.e(e)}finally{n.f()}}},{key:"undoMoveRows",value:function(e){var t=e.sheet;this.operations.moveRows(t,e.undoStart,e.numberOfRows,e.undoEnd),this.restoreOldDataFromVersion(e.version-1)}},{key:"undoMoveColumns",value:function(e){var t=e.sheet;this.operations.moveColumns(t,e.undoStart,e.numberOfColumns,e.undoEnd),this.restoreOldDataFromVersion(e.version-1)}},{key:"undoMoveCells",value:function(e){this.operations.forceApplyPostponedTransformations(),this.operations.moveCells(e.destinationLeftCorner,e.width,e.height,e.sourceLeftCorner),this.restoreOperationOldContent(e.overwrittenCellsData),this.restoreOldDataFromVersion(e.version-1);var t,n=s(e.addedGlobalNamedExpressions);try{for(n.s();!(t=n.n()).done;){var r=t.value;this.operations.removeNamedExpression(r)}}catch(e){n.e(e)}finally{n.f()}}},{key:"undoAddSheet",value:function(e){var t=e.sheetName;this.operations.removeSheetByName(t)}},{key:"undoRemoveSheet",value:function(e){this.operations.forceApplyPostponedTransformations();var t=e.oldSheetContent,n=e.sheetId;this.operations.addSheet(e.sheetName);for(var o=0;o<t.length;o++)for(var i=t[o],u=0;u<i.length;u++){var l=i[u],c=Object(r.simpleCellAddress)(n,u,o);this.operations.restoreCell(c,l)}var f,d=s(e.scopedNamedExpressions);try{for(d.s();!(f=d.n()).done;){var h=a(f.value,2),p=h[0],y=h[1];this.operations.restoreNamedExpression(p,y,n)}}catch(e){d.e(e)}finally{d.f()}this.restoreOldDataFromVersion(e.version-1)}},{key:"undoRenameSheet",value:function(e){this.operations.renameSheet(e.sheetId,e.oldName)}},{key:"undoClearSheet",value:function(e){for(var t=e.oldSheetContent,n=e.sheetId,o=0;o<t.length;o++)for(var i=t[o],a=0;a<i.length;a++){var s=i[a],u=Object(r.simpleCellAddress)(n,a,o);this.operations.restoreCell(u,s)}}},{key:"undoSetSheetContent",value:function(e){var t=e.oldSheetContent,n=e.sheetId;this.operations.clearSheet(n);for(var o=0;o<t.length;o++)for(var i=t[o],a=0;a<i.length;a++){var s=i[a],u=Object(r.simpleCellAddress)(n,a,o);this.operations.restoreCell(u,s)}}},{key:"undoAddNamedExpression",value:function(e){this.operations.removeNamedExpression(e.name,e.scope)}},{key:"undoRemoveNamedExpression",value:function(e){this.operations.restoreNamedExpression(e.namedExpression,e.content,e.scope)}},{key:"undoChangeNamedExpression",value:function(e){this.operations.restoreNamedExpression(e.namedExpression,e.oldContent,e.scope)}},{key:"undoSetRowOrder",value:function(e){this.restoreOperationOldContent(e.oldContent)}},{key:"undoSetColumnOrder",value:function(e){this.restoreOperationOldContent(e.oldContent)}},{key:"redo",value:function(){var e=this.redoStack.pop();if(!e)throw"Attempted to redo without operation on stack";this.redoEntry(e),this.undoStack.push(e)}},{key:"redoBatch",value:function(e){var t,n=s(e.operations);try{for(n.s();!(t=n.n()).done;){var r=t.value;this.redoEntry(r)}}catch(e){n.e(e)}finally{n.f()}}},{key:"redoRemoveRows",value:function(e){this.operations.removeRows(e.command)}},{key:"redoMoveCells",value:function(e){this.operations.moveCells(e.sourceLeftCorner,e.width,e.height,e.destinationLeftCorner)}},{key:"redoRemoveColumns",value:function(e){this.operations.removeColumns(e.command)}},{key:"redoPaste",value:function(e){for(var t=e.targetLeftCorner,n=e.newContent,o=n.length,i=n[0].length,a=0;a<o;++a)for(var s=0;s<i;++s){var u=Object(r.simpleCellAddress)(t.sheet,t.col+s,t.row+a);this.operations.restoreCell(u,n[a][s])}}},{key:"redoSetCellContents",value:function(e){var t,n=s(e.cellContents);try{for(n.s();!(t=n.n()).done;){var r=t.value;this.operations.setCellContent(r.address,r.newContent)}}catch(e){n.e(e)}finally{n.f()}}},{key:"redoAddRows",value:function(e){this.operations.addRows(e.command)}},{key:"redoAddColumns",value:function(e){this.operations.addColumns(e.command)}},{key:"redoRemoveSheet",value:function(e){this.operations.removeSheetByName(e.sheetName)}},{key:"redoAddSheet",value:function(e){this.operations.addSheet(e.sheetName)}},{key:"redoRenameSheet",value:function(e){this.operations.renameSheet(e.sheetId,e.newName)}},{key:"redoMoveRows",value:function(e){this.operations.moveRows(e.sheet,e.startRow,e.numberOfRows,e.targetRow)}},{key:"redoMoveColumns",value:function(e){this.operations.moveColumns(e.sheet,e.startColumn,e.numberOfColumns,e.targetColumn)}},{key:"redoClearSheet",value:function(e){this.operations.clearSheet(e.sheetId)}},{key:"redoSetSheetContent",value:function(e){var t=e.sheetId,n=e.newSheetContent;this.operations.setSheetContent(t,n)}},{key:"redoAddNamedExpression",value:function(e){this.operations.addNamedExpression(e.name,e.newContent,e.scope,e.options)}},{key:"redoRemoveNamedExpression",value:function(e){this.operations.removeNamedExpression(e.namedExpression.displayName,e.scope)}},{key:"redoChangeNamedExpression",value:function(e){this.operations.changeNamedExpressionExpression(e.namedExpression.displayName,e.newContent,e.scope,e.options)}},{key:"redoSetRowOrder",value:function(e){this.operations.setRowOrder(e.sheetId,e.rowMapping)}},{key:"redoSetColumnOrder",value:function(e){this.operations.setColumnOrder(e.sheetId,e.columnMapping)}},{key:"addUndoEntry",value:function(e){this.undoStack.push(e),this.undoStack.splice(0,Math.max(0,this.undoStack.length-this.undoLimit))}},{key:"undoEntry",value:function(e){e.doUndo(this)}},{key:"restoreOperationOldContent",value:function(e){var t,n=s(e);try{for(n.s();!(t=n.n()).done;){var r=a(t.value,2),o=r[0],i=r[1];this.operations.restoreCell(o,i)}}catch(e){n.e(e)}finally{n.f()}}},{key:"redoEntry",value:function(e){e.doRedo(this)}},{key:"restoreOldDataFromVersion",value:function(e){var t,n=s(this.oldData.get(e)||[]);try{for(n.s();!(t=n.n()).done;){var r=a(t.value,2),o=r[0],i=r[1];this.operations.setFormulaToCellFromCache(i,o)}}catch(e){n.e(e)}finally{n.f()}}}]),e}()},function(e,t,n){n(28)({target:"Math",stat:!0},{log10:n(712)})},function(e,t,n){"use strict";n.r(t),n.d(t,"ColumnBinarySearch",(function(){return d}));n(37),n(191),n(27),n(0),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(106),o=n(383),i=n(51);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(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=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var d=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(f,e);var t,n,a,c=l(f);function f(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(n=c.call(this,e)).dependencyGraph=e,n.config=t,n}return t=f,(n=[{key:"add",value:function(e,t){}},{key:"remove",value:function(e,t){}},{key:"change",value:function(e,t,n){}},{key:"applyChanges",value:function(e){}},{key:"addColumns",value:function(e){}},{key:"removeColumns",value:function(e){}},{key:"removeSheet",value:function(e){}},{key:"moveValues",value:function(e,t,n,r){}},{key:"removeValues",value:function(e){}},{key:"find",value:function(e,t,n){"string"==typeof e&&(e=Object(r.forceNormalizeString)(e));var a=t.range;return void 0===a?t.valuesFromTopLeftCorner().map(i.getRawValue).map((function(e){return"string"==typeof e?Object(r.forceNormalizeString)(e):e})).indexOf(e):n?Object(o.rangeLowerBound)(a,e,this.dependencyGraph,"row"):this.dependencyGraph.computeListOfValuesInRange(a).findIndex((function(t){return(t="string"==typeof(t=Object(i.getRawValue)(t))?Object(r.forceNormalizeString)(t):t)===e}))}}])&&s(t.prototype,n),a&&s(t,a),Object.defineProperty(t,"prototype",{writable:!1}),f}(n(384).AdvancedFind)},function(e,t,n){"use strict";n.r(t),n.d(t,"rangeLowerBound",(function(){return a})),n.d(t,"lowerBound",(function(){return s})),n.d(t,"compare",(function(){return u}));n(8),n(9),n(0),n(10),n(3),n(2),n(4);var r=n(24),o=n(51);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/function a(e,t,n,a){var u;u="col"===a?e.effectiveEndColumn(n):e.effectiveEndRow(n);var l,c=e.start[a],f=s(l="row"===a?function(t){return Object(o.getRawValue)(n.getCellValue(Object(r.simpleCellAddress)(e.sheet,e.start.col,t)))}:function(t){return Object(o.getRawValue)(n.getCellValue(Object(r.simpleCellAddress)(e.sheet,t,e.start.row)))},t,c,u);return i(l(f))!==i(t)?-1:f-c}function s(e,t,n,r){for(;n<=r;){var o=Math.floor((n+r)/2),i=u(t,e(o));if(i>0)n=o+1;else if(i<0)r=o-1;else{if(n==o)return o;r=o}}return r}function u(e,t){return i(e)===i(t)?e===o.EmptyValue?0:e<t?-1:e>t?1:0:e===o.EmptyValue?-1:t===o.EmptyValue?1:t instanceof r.CellError||"number"==typeof e&&"string"==typeof t||"number"==typeof e&&"boolean"==typeof t?-1:"string"==typeof e&&"number"==typeof t?1:"string"==typeof e&&"boolean"==typeof t?-1:1}},function(e,t,n){"use strict";n.r(t),n.d(t,"AdvancedFind",(function(){return i}));var r=n(51);function o(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)}}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
var i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.dependencyGraph=t}var t,n,i;return t=e,(n=[{key:"advancedFind",value:function(e,t){var n,o=t.range;n=void 0===o?t.valuesFromTopLeftCorner():this.dependencyGraph.computeListOfValuesInRange(o);for(var i=0;i<n.length;i++)if(e(Object(r.getRawValue)(n[i])))return i;return-1}}])&&o(t.prototype,n),i&&o(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"ArrayPlugin",(function(){return C}));n(37),n(13),n(67),n(52),n(27),n(0),n(7),n(25),n(22),n(2),n(12),n(8),n(9),n(10),n(3),n(4);var r=n(124),o=n(24),i=n(45),a=n(72),s=n(106),u=n(187),l=n(78),c=n(38);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||p(e)||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.")}()}function h(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=p(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function p(e,t){if(e){if("string"==typeof e)return y(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)?y(e,t):void 0}}function y(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 m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(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 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=T(e);if(t){var o=T(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function T(e){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var C=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(p,e);var t,n,c,f=E(p);function p(){return m(this,p),f.apply(this,arguments)}return t=p,(n=[{key:"arrayformula",value:function(e,t){return this.runFunction(e.args,t,this.metadata("ARRAYFORMULA"),(function(e){return e}))}},{key:"arrayformulaArraySize",value:function(e,t){var n=this;if(1!==e.args.length)return r.ArraySize.error();var o=this.metadata("ARRAYFORMULA");return e.args.map((function(e){var r;return n.arraySizeForAst(e,new u.InterpreterState(t.formulaAddress,t.arraysFlag||null!==(r=null==o?void 0:o.arrayFunction)&&void 0!==r&&r))}))[0]}},{key:"arrayconstrain",value:function(e,t){return this.runFunction(e.args,t,this.metadata("ARRAY_CONSTRAIN"),(function(e,t,n){t=Math.min(t,e.height()),n=Math.min(n,e.width());for(var r=e.data,o=[],i=0;i<t;i++)o.push(r[i].slice(0,n));return l.SimpleRangeValue.onlyValues(o)}))}},{key:"arrayconstrainArraySize",value:function(e,t){var n=this;if(3!==e.args.length)return r.ArraySize.error();var o=this.metadata("ARRAY_CONSTRAIN"),i=e.args.map((function(e){var r;return n.arraySizeForAst(e,new u.InterpreterState(t.formulaAddress,t.arraysFlag||null!==(r=null==o?void 0:o.arrayFunction)&&void 0!==r&&r))}))[0],s=i.height,l=i.width;return e.args[1].type===a.AstNodeType.NUMBER&&(s=Math.min(s,e.args[1].value)),e.args[2].type===a.AstNodeType.NUMBER&&(l=Math.min(l,e.args[2].value)),s<1||l<1||!Number.isInteger(s)||!Number.isInteger(l)?r.ArraySize.error():new r.ArraySize(l,s)}},{key:"filter",value:function(e,t){return this.runFunction(e.args,t,this.metadata("FILTER"),(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];for(var a=0,u=n;a<u.length;a++){var c=u[a];if(e.width()!==c.width()||e.height()!==c.height())return new o.CellError(o.ErrorType.NA,i.ErrorMessage.EqualLength)}if(e.width()>1&&e.height()>1)return new o.CellError(o.ErrorType.NA,i.ErrorMessage.WrongDimension);for(var f=e.data,d=[],p=0;p<e.height();p++){for(var y=[],m=0;m<e.width();m++){var g,v=!0,E=h(n);try{for(E.s();!(g=E.n()).done;){var b=g.value,T=Object(s.coerceScalarToBoolean)(b.data[p][m]);if(!0!==T){v=!1;break}}}catch(e){E.e(e)}finally{E.f()}v&&y.push(f[p][m])}y.length>0&&d.push(y)}return d.length>0?l.SimpleRangeValue.onlyValues(d):new o.CellError(o.ErrorType.NA,i.ErrorMessage.EmptyRange)}))}},{key:"filterArraySize",value:function(e,t){var n=this;if(e.args.length<=1)return r.ArraySize.error();var o=this.metadata("FILTER"),i=e.args.map((function(e){var r;return n.arraySizeForAst(e,new u.InterpreterState(t.formulaAddress,t.arraysFlag||null!==(r=null==o?void 0:o.arrayFunction)&&void 0!==r&&r))})),a=Math.max.apply(Math,d(i.map((function(e){return e.width})))),s=Math.max.apply(Math,d(i.map((function(e){return e.height}))));return new r.ArraySize(a,s)}}])&&g(t.prototype,n),c&&g(t,c),Object.defineProperty(t,"prototype",{writable:!1}),p}(c.FunctionPlugin);C.implementedFunctions={ARRAYFORMULA:{method:"arrayformula",arraySizeMethod:"arrayformulaArraySize",arrayFunction:!0,parameters:[{argumentType:c.ArgumentTypes.ANY}]},ARRAY_CONSTRAIN:{method:"arrayconstrain",arraySizeMethod:"arrayconstrainArraySize",parameters:[{argumentType:c.ArgumentTypes.RANGE},{argumentType:c.ArgumentTypes.INTEGER,minValue:1},{argumentType:c.ArgumentTypes.INTEGER,minValue:1}],vectorizationForbidden:!0},FILTER:{method:"filter",arraySizeMethod:"filterArraySize",arrayFunction:!0,parameters:[{argumentType:c.ArgumentTypes.RANGE},{argumentType:c.ArgumentTypes.RANGE}],repeatLastArgs:1}}},function(e,t,n){"use strict";n.r(t),n.d(t,"AbsPlugin",(function(){return f}));n(27),n(0),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(38);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)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var f=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(l,e);var t,n,r,o=u(l);function l(){return i(this,l),o.apply(this,arguments)}return t=l,(n=[{key:"abs",value:function(e,t){return this.runFunction(e.args,t,this.metadata("ABS"),Math.abs)}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(r.FunctionPlugin);f.implementedFunctions={ABS:{method:"abs",parameters:[{argumentType:r.ArgumentTypes.NUMBER}]}}},function(e,t,n){"use strict";n.r(t),n.d(t,"BitShiftPlugin",(function(){return h}));n(27),n(0),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(24),o=n(45),i=n(38);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var h=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(i,e);var t,n,r,o=c(i);function i(){return s(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"bitlshift",value:function(e,t){return this.runFunction(e.args,t,this.metadata("BITLSHIFT"),p)}},{key:"bitrshift",value:function(e,t){return this.runFunction(e.args,t,this.metadata("BITRSHIFT"),y)}}])&&u(t.prototype,n),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(i.FunctionPlugin);function p(e,t){return t<0?y(e,-t):m(e*Math.pow(2,t))}function y(e,t){return t<0?p(e,-t):m(Math.floor(e/Math.pow(2,t)))}function m(e){return e>0xffffffffffff?new r.CellError(r.ErrorType.NUM,o.ErrorMessage.BitshiftLong):e}h.implementedFunctions={BITLSHIFT:{method:"bitlshift",parameters:[{argumentType:i.ArgumentTypes.INTEGER,minValue:0},{argumentType:i.ArgumentTypes.INTEGER,minValue:-53,maxValue:53}]},BITRSHIFT:{method:"bitrshift",parameters:[{argumentType:i.ArgumentTypes.INTEGER,minValue:0},{argumentType:i.ArgumentTypes.INTEGER,minValue:-53,maxValue:53}]}}},function(e,t,n){"use strict";n.r(t),n.d(t,"BitwiseLogicOperationsPlugin",(function(){return f}));n(27),n(0),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(38);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)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var f=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(l,e);var t,n,r,o=u(l);function l(){return i(this,l),o.apply(this,arguments)}return t=l,(n=[{key:"bitand",value:function(e,t){return this.runFunction(e.args,t,this.metadata("BITAND"),(function(e,t){return e&t}))}},{key:"bitor",value:function(e,t){return this.runFunction(e.args,t,this.metadata("BITOR"),(function(e,t){return e|t}))}},{key:"bitxor",value:function(e,t){return this.runFunction(e.args,t,this.metadata("BITXOR"),(function(e,t){return e^t}))}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(r.FunctionPlugin);f.implementedFunctions={BITAND:{method:"bitand",parameters:[{argumentType:r.ArgumentTypes.INTEGER,minValue:0},{argumentType:r.ArgumentTypes.INTEGER,minValue:0}]},BITOR:{method:"bitor",parameters:[{argumentType:r.ArgumentTypes.INTEGER,minValue:0},{argumentType:r.ArgumentTypes.INTEGER,minValue:0}]},BITXOR:{method:"bitxor",parameters:[{argumentType:r.ArgumentTypes.INTEGER,minValue:0},{argumentType:r.ArgumentTypes.INTEGER,minValue:0}]}}},function(e,t,n){"use strict";n.r(t),n.d(t,"BooleanPlugin",(function(){return h}));n(0),n(26),n(27),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(24),o=n(45),i=n(38);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var h=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(f,e);var t,n,i,a=c(f);function f(){return s(this,f),a.apply(this,arguments)}return t=f,(n=[{key:"literalTrue",value:function(e,t){return this.runFunction(e.args,t,this.metadata("TRUE"),(function(){return!0}))}},{key:"literalFalse",value:function(e,t){return this.runFunction(e.args,t,this.metadata("FALSE"),(function(){return!1}))}},{key:"conditionalIf",value:function(e,t){return this.runFunction(e.args,t,this.metadata("IF"),(function(e,t,n){return e?t:n}))}},{key:"and",value:function(e,t){return this.runFunction(e.args,t,this.metadata("AND"),(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!e}))}))}},{key:"or",value:function(e,t){return this.runFunction(e.args,t,this.metadata("OR"),(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.some((function(e){return e}))}))}},{key:"not",value:function(e,t){return this.runFunction(e.args,t,this.metadata("NOT"),(function(e){return!e}))}},{key:"xor",value:function(e,t){return this.runFunction(e.args,t,this.metadata("XOR"),(function(){for(var e=0,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){t&&e++})),e%2==1}))}},{key:"switch",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("SWITCH"),(function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];for(var s=i.length,u=0;u+1<s;u+=2)if(!(i[u]instanceof r.CellError)&&n.arithmeticHelper.eq(e,i[u]))return i[u+1];return u<s?i[u]:new r.CellError(r.ErrorType.NA,o.ErrorMessage.NoDefault)}))}},{key:"iferror",value:function(e,t){return this.runFunction(e.args,t,this.metadata("IFERROR"),(function(e,t){return e instanceof r.CellError?t:e}))}},{key:"ifna",value:function(e,t){return this.runFunction(e.args,t,this.metadata("IFNA"),(function(e,t){return e instanceof r.CellError&&e.type===r.ErrorType.NA?t:e}))}},{key:"choose",value:function(e,t){return this.runFunction(e.args,t,this.metadata("CHOOSE"),(function(e){return e>(arguments.length<=1?0:arguments.length-1)?new r.CellError(r.ErrorType.NUM,o.ErrorMessage.Selector):e-1+1<1||arguments.length<=e-1+1?void 0:arguments[e-1+1]}))}}])&&u(t.prototype,n),i&&u(t,i),Object.defineProperty(t,"prototype",{writable:!1}),f}(i.FunctionPlugin);h.implementedFunctions={TRUE:{method:"literalTrue",parameters:[]},FALSE:{method:"literalFalse",parameters:[]},IF:{method:"conditionalIf",parameters:[{argumentType:i.ArgumentTypes.BOOLEAN},{argumentType:i.ArgumentTypes.SCALAR,passSubtype:!0},{argumentType:i.ArgumentTypes.SCALAR,defaultValue:!1,passSubtype:!0}]},AND:{method:"and",parameters:[{argumentType:i.ArgumentTypes.BOOLEAN}],repeatLastArgs:1,expandRanges:!0},OR:{method:"or",parameters:[{argumentType:i.ArgumentTypes.BOOLEAN}],repeatLastArgs:1,expandRanges:!0},XOR:{method:"xor",parameters:[{argumentType:i.ArgumentTypes.BOOLEAN}],repeatLastArgs:1,expandRanges:!0},NOT:{method:"not",parameters:[{argumentType:i.ArgumentTypes.BOOLEAN}]},SWITCH:{method:"switch",parameters:[{argumentType:i.ArgumentTypes.NOERROR},{argumentType:i.ArgumentTypes.SCALAR,passSubtype:!0},{argumentType:i.ArgumentTypes.SCALAR,passSubtype:!0}],repeatLastArgs:1},IFERROR:{method:"iferror",parameters:[{argumentType:i.ArgumentTypes.SCALAR,passSubtype:!0},{argumentType:i.ArgumentTypes.SCALAR,passSubtype:!0}]},IFNA:{method:"ifna",parameters:[{argumentType:i.ArgumentTypes.SCALAR,passSubtype:!0},{argumentType:i.ArgumentTypes.SCALAR,passSubtype:!0}]},CHOOSE:{method:"choose",parameters:[{argumentType:i.ArgumentTypes.INTEGER,minValue:1},{argumentType:i.ArgumentTypes.SCALAR,passSubtype:!0}],repeatLastArgs:1}}},function(e,t,n){"use strict";n.r(t),n.d(t,"CharPlugin",(function(){return h}));n(141),n(729),n(27),n(0),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(24),o=n(45),i=n(38);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var h=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(f,e);var t,n,i,a=c(f);function f(){return s(this,f),a.apply(this,arguments)}return t=f,(n=[{key:"char",value:function(e,t){return this.runFunction(e.args,t,this.metadata("CHAR"),(function(e){return e<1||e>=256?new r.CellError(r.ErrorType.VALUE,o.ErrorMessage.CharacterCodeBounds):String.fromCharCode(Math.trunc(e))}))}},{key:"unichar",value:function(e,t){return this.runFunction(e.args,t,this.metadata("CHAR"),(function(e){return e<1||e>=1114112?new r.CellError(r.ErrorType.VALUE,o.ErrorMessage.CharacterCodeBounds):String.fromCodePoint(Math.trunc(e))}))}}])&&u(t.prototype,n),i&&u(t,i),Object.defineProperty(t,"prototype",{writable:!1}),f}(i.FunctionPlugin);h.implementedFunctions={CHAR:{method:"char",parameters:[{argumentType:i.ArgumentTypes.NUMBER}]},UNICHAR:{method:"unichar",parameters:[{argumentType:i.ArgumentTypes.NUMBER}]}}},function(e,t,n){"use strict";n.r(t),n.d(t,"CodePlugin",(function(){return h}));n(288),n(27),n(0),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(24),o=n(45),i=n(38);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var h=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(f,e);var t,n,i,a=c(f);function f(){return s(this,f),a.apply(this,arguments)}return t=f,(n=[{key:"code",value:function(e,t){return this.runFunction(e.args,t,this.metadata("CODE"),(function(e){return 0===e.length?new r.CellError(r.ErrorType.VALUE,o.ErrorMessage.EmptyString):e.charCodeAt(0)}))}},{key:"unicode",value:function(e,t){return this.runFunction(e.args,t,this.metadata("UNICODE"),(function(e){var t;return null!==(t=e.codePointAt(0))&&void 0!==t?t:new r.CellError(r.ErrorType.VALUE,o.ErrorMessage.EmptyString)}))}}])&&u(t.prototype,n),i&&u(t,i),Object.defineProperty(t,"prototype",{writable:!1}),f}(i.FunctionPlugin);h.implementedFunctions={CODE:{method:"code",parameters:[{argumentType:i.ArgumentTypes.STRING}]},UNICODE:{method:"unicode",parameters:[{argumentType:i.ArgumentTypes.STRING}]}}},function(e,t,n){"use strict";n.r(t),n.d(t,"CountBlankPlugin",(function(){return d}));n(0),n(26),n(27),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(51),o=n(38);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(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 u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(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=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var d=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(c,e);var t,n,o,i=l(c);function c(){return a(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"countblank",value:function(e,t){return this.runFunction(e.args,t,this.metadata("COUNTBLANK"),(function(){for(var e=0,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return n.forEach((function(t){t===r.EmptyValue&&e++})),e}))}}])&&s(t.prototype,n),o&&s(t,o),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.FunctionPlugin);d.implementedFunctions={COUNTBLANK:{method:"countblank",parameters:[{argumentType:o.ArgumentTypes.SCALAR}],repeatLastArgs:1,expandRanges:!0}}},function(e,t,n){"use strict";n.r(t),n.d(t,"CountUniquePlugin",(function(){return d}));n(3),n(0),n(55),n(2),n(4),n(27),n(7),n(8),n(9),n(10);var r=n(24),o=n(38);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(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 u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(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=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var d=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(c,e);var t,n,o,i=l(c);function c(){return a(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"countunique",value:function(e,t){return this.runFunction(e.args,t,this.metadata("COUNTUNIQUE"),(function(){for(var e=new Set,t=new Set,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];for(var a=0,s=o;a<s.length;a++){var u=s[a];u instanceof r.CellError?t.add(u.type):""!==u&&e.add(u)}return e.size+t.size}))}}])&&s(t.prototype,n),o&&s(t,o),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.FunctionPlugin);d.implementedFunctions={COUNTUNIQUE:{method:"countunique",parameters:[{argumentType:o.ArgumentTypes.SCALAR}],repeatLastArgs:1,expandRanges:!0}}},function(e,t,n){"use strict";n.r(t),n.d(t,"DateTimePlugin",(function(){return T}));n(141),n(40),n(0),n(73),n(3),n(55),n(2),n(4),n(12),n(33),n(27),n(7),n(8),n(9),n(10),n(13),n(25),n(22);var r=n(24),o=n(156),i=n(45),a=n(285),s=n(51),u=n(38);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||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.")}()}function f(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=h(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;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,t)||h(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){if(e){if("string"==typeof e)return p(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)?p(e,t):void 0}}function p(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 y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(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 g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return E(this,n)}}function E(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var T=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(h,e);var t,n,u,l=v(h);function h(){var e;return y(this,h),(e=l.apply(this,arguments)).isoweeknumCore=function(t){var n=Math.floor(e.dateTimeHelper.relativeNumberToAbsoluteNumber(t)),r=e.dateTimeHelper.numberToSimpleDate(t),o=e.dateTimeHelper.dateToNumber({year:r.year,month:1,day:1}),i=e.dateTimeHelper.relativeNumberToAbsoluteNumber(o),a=i+((4-i)%7+7)%7,s=Math.floor((n-1)/7)-Math.floor((a-1)/7)+1;return 0===s?e.isoweeknumCore(t-7)+1:s},e.days360Core=function(t,n,r){var i,a,s=e.dateTimeHelper.numberToSimpleDate(t),u=e.dateTimeHelper.numberToSimpleDate(n);if(r)i=Object(o.toBasisEU)(s),a=Object(o.toBasisEU)(u);else{var l=d(e.dateTimeHelper.toBasisUS(s,u),2);i=l[0],a=l[1]}return 360*(a.year-i.year)+30*(a.month-i.month)+a.day-i.day},e}return t=h,(n=[{key:"date",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("DATE"),(function(e,t,o){var a=Math.trunc(o),s=Math.trunc(t),u=Math.trunc(e);u<n.dateTimeHelper.getEpochYearZero()&&(u+=n.dateTimeHelper.getEpochYearZero());var l=Math.floor((s-1)/12),c={year:u+=l,month:s-=12*l,day:1};if(n.dateTimeHelper.isValidDate(c)){var f=n.dateTimeHelper.dateToNumber(c)+(a-1);return void 0===(f=n.dateTimeHelper.getWithinBounds(f))?new r.CellError(r.ErrorType.NUM,i.ErrorMessage.DateBounds):f}return new r.CellError(r.ErrorType.VALUE,i.ErrorMessage.InvalidDate)}))}},{key:"time",value:function(e,t){return this.runFunction(e.args,t,this.metadata("TIME"),(function(e,t,n){var a=Object(o.timeToNumber)({hours:Math.trunc(e),minutes:Math.trunc(t),seconds:Math.trunc(n)});return a<0?new r.CellError(r.ErrorType.NUM,i.ErrorMessage.NegativeTime):a%1}))}},{key:"eomonth",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("EOMONTH"),(function(e,t){var a=n.dateTimeHelper.numberToSimpleDate(e),s=n.dateTimeHelper.dateToNumber(n.dateTimeHelper.endOfMonth(Object(o.offsetMonth)(a,t)));return void 0===(s=n.dateTimeHelper.getWithinBounds(s))?new r.CellError(r.ErrorType.NUM,i.ErrorMessage.DateBounds):s}))}},{key:"day",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("DAY"),(function(e){return n.dateTimeHelper.numberToSimpleDate(e).day}))}},{key:"days",value:function(e,t){return this.runFunction(e.args,t,this.metadata("DAYS"),(function(e,t){return Math.trunc(e)-Math.trunc(t)}))}},{key:"month",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("MONTH"),(function(e){return n.dateTimeHelper.numberToSimpleDate(e).month}))}},{key:"year",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("YEAR"),(function(e){return n.dateTimeHelper.numberToSimpleDate(e).year}))}},{key:"hour",value:function(e,t){return this.runFunction(e.args,t,this.metadata("HOUR"),(function(e){return Object(o.numberToSimpleTime)(Object(o.roundToNearestSecond)(e)%1).hours}))}},{key:"minute",value:function(e,t){return this.runFunction(e.args,t,this.metadata("MINUTE"),(function(e){return Object(o.numberToSimpleTime)(Object(o.roundToNearestSecond)(e)%1).minutes}))}},{key:"second",value:function(e,t){return this.runFunction(e.args,t,this.metadata("SECOND"),(function(e){return Object(o.numberToSimpleTime)(Object(o.roundToNearestSecond)(e)%1).seconds}))}},{key:"text",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("TEXT"),(function(e,t){return Object(a.format)(e,t,n.config,n.dateTimeHelper)}))}},{key:"weekday",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("WEEKDAY"),(function(e,t){var o=Math.floor(n.dateTimeHelper.relativeNumberToAbsoluteNumber(e));if(3===t)return(o-1)%7;var a=R.get(t);return void 0===a?new r.CellError(r.ErrorType.NUM,i.ErrorMessage.BadMode):(o-a)%7+1}))}},{key:"weeknum",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("WEEKNUM"),(function(e,t){var o=Math.floor(n.dateTimeHelper.relativeNumberToAbsoluteNumber(e)),a=n.dateTimeHelper.numberToSimpleDate(e),s=n.dateTimeHelper.dateToNumber({year:a.year,month:1,day:1}),u=n.dateTimeHelper.relativeNumberToAbsoluteNumber(s);if(21===t)return n.isoweeknumCore(e);var l=R.get(t);return void 0===l?new r.CellError(r.ErrorType.NUM,i.ErrorMessage.BadMode):Math.floor((o-l)/7)-Math.floor((u-l)/7)+1}))}},{key:"isoweeknum",value:function(e,t){return this.runFunction(e.args,t,this.metadata("ISOWEEKNUM"),this.isoweeknumCore)}},{key:"datevalue",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("DATEVALUE"),(function(e){var t=n.dateTimeHelper.parseDateTimeFromConfigFormats(e).dateTime;return void 0===t?new r.CellError(r.ErrorType.VALUE,i.ErrorMessage.IncorrectDateTime):Object(o.instanceOfSimpleDate)(t)?(Object(o.instanceOfSimpleTime)(t)?Math.trunc(Object(o.timeToNumber)(t)):0)+n.dateTimeHelper.dateToNumber(t):0}))}},{key:"timevalue",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("TIMEVALUE"),(function(e){var t=n.dateTimeHelper.dateStringToDateNumber(e);return void 0===t?new r.CellError(r.ErrorType.VALUE,i.ErrorMessage.IncorrectDateTime):Object(s.getRawValue)(t)%1}))}},{key:"now",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("NOW"),(function(){var e=new Date(Date.now());return Object(o.timeToNumber)({hours:e.getHours(),minutes:e.getMinutes(),seconds:e.getSeconds()})+n.dateTimeHelper.dateToNumber({year:e.getFullYear(),month:e.getMonth()+1,day:e.getDate()})}))}},{key:"today",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("TODAY"),(function(){var e=new Date(Date.now());return n.dateTimeHelper.dateToNumber({year:e.getFullYear(),month:e.getMonth()+1,day:e.getDate()})}))}},{key:"edate",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("EDATE"),(function(e,t){var a=n.dateTimeHelper.numberToSimpleDate(e),s=Object(o.truncateDayInMonth)(Object(o.offsetMonth)(a,t)),u=n.dateTimeHelper.dateToNumber(s);return void 0===(u=n.dateTimeHelper.getWithinBounds(u))?new r.CellError(r.ErrorType.NUM,i.ErrorMessage.DateBounds):u}))}},{key:"datedif",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("DATEDIF"),(function(e,t,o){if(e>t)return new r.CellError(r.ErrorType.NUM,i.ErrorMessage.StartEndDate);if("D"===o)return Math.floor(t)-Math.floor(e);var a=n.dateTimeHelper.numberToSimpleDate(e),s=n.dateTimeHelper.numberToSimpleDate(t);switch(o){case"M":return 12*(s.year-a.year)+(s.month-a.month)-(s.day<a.day?1:0);case"YM":return(s.month-a.month+12-(s.day<a.day?1:0))%12;case"Y":return s.month>a.month||s.month===a.month&&s.day>=a.day?s.year-a.year:s.year-a.year-1;case"MD":if(s.day>=a.day)return s.day-a.day;var u=1===s.month?12:s.month-1,l=1===s.month?s.year-1:s.year;return n.dateTimeHelper.daysInMonth(l,u)+s.day-a.day;case"YD":return s.month>a.month||s.month===a.month&&s.day>=a.day?Math.floor(t)-n.dateTimeHelper.dateToNumber({year:s.year,month:a.month,day:a.day}):Math.floor(t)-Math.floor(e)-365*(s.year-a.year-1)-n.dateTimeHelper.leapYearsCount(s.year-1)+n.dateTimeHelper.leapYearsCount(a.year);default:return new r.CellError(r.ErrorType.NUM,i.ErrorMessage.BadMode)}}))}},{key:"days360",value:function(e,t){return this.runFunction(e.args,t,this.metadata("DAYS360"),this.days360Core)}},{key:"yearfrac",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("YEARFRAC"),(function(e,t,r){if((e=Math.trunc(e))>(t=Math.trunc(t))){var o=[t,e];e=o[0],t=o[1]}switch(r){case 0:return n.days360Core(e,t,!1)/360;case 1:return(t-e)/n.dateTimeHelper.yearLengthForBasis(n.dateTimeHelper.numberToSimpleDate(e),n.dateTimeHelper.numberToSimpleDate(t));case 2:return(t-e)/360;case 3:return(t-e)/365;case 4:return n.days360Core(e,t,!0)/360}throw new Error("Should not be reachable.")}))}},{key:"interval",value:function(e,t){return this.runFunction(e.args,t,this.metadata("INTERVAL"),(function(e){var t=(e=Math.trunc(e))%60,n=(e=Math.trunc(e/60))%60,r=(e=Math.trunc(e/60))%24,o=(e=Math.trunc(e/24))%30,i=(e=Math.trunc(e/30))%12,a=Math.trunc(e/12);return"P"+(a>0?a+"Y":"")+(i>0?i+"M":"")+(o>0?o+"D":"")+"T"+(r>0?r+"H":"")+(n>0?n+"M":"")+(t>0?t+"S":"")}))}},{key:"networkdays",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("NETWORKDAYS"),(function(e,t,r){return n.networkdayscore(e,t,1,r)}))}},{key:"networkdaysintl",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("NETWORKDAYS.INTL"),(function(e,t,r,o){return n.networkdayscore(e,t,r,o)}))}},{key:"workday",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("WORKDAY"),(function(e,t,r){return n.workdaycore(e,t,1,r)}))}},{key:"workdayintl",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("WORKDAY.INTL"),(function(e,t,r,o){return n.workdaycore(e,t,r,o)}))}},{key:"networkdayscore",value:function(e,t,n,o){var i=1;if((e=Math.trunc(e))>(t=Math.trunc(t))){var a=[t,e];e=a[0],t=a[1],i=-1}var s=w(n);if(s instanceof r.CellError)return s;var u=this.simpleRangeToFilteredHolidays(s,o);return u instanceof r.CellError?u:i*this.countWorkdays(e,t,s,u)}},{key:"workdaycore",value:function(e,t,n,o){e=Math.trunc(e),t=Math.trunc(t);var i=w(n);if(i instanceof r.CellError)return i;var a=this.simpleRangeToFilteredHolidays(i,o);if(a instanceof r.CellError)return a;if(t>0){for(var s=1;this.countWorkdays(e+1,e+s,i,a)<t;)s*=2;for(var u=1;u+1<s;){var l=Math.trunc((u+s)/2);this.countWorkdays(e+1,e+l,i,a)<t?u=l:s=l}return e+s}if(t<0){t*=-1;for(var c=1;this.countWorkdays(e-c,e-1,i,a)<t;)c*=2;for(var f=1;f+1<c;){var d=Math.trunc((f+c)/2);this.countWorkdays(e-d,e-1,i,a)<t?f=d:c=d}return e-c}return e}},{key:"countWorkdays",value:function(e,t,n,r){for(var o=Math.floor(this.dateTimeHelper.relativeNumberToAbsoluteNumber(t)),i=Math.floor(this.dateTimeHelper.relativeNumberToAbsoluteNumber(e)),a=0,s=0;s<7;s++)"0"===n.charAt(s)&&(a+=Math.floor((o+6-s)/7),a-=Math.floor((i-1+6-s)/7));return a-=C(t+1,r)-C(e,r)}},{key:"simpleRangeToFilteredHolidays",value:function(e,t){var n,o,a=this,u=null!==(n=null==t?void 0:t.valuesFromTopLeftCorner())&&void 0!==n?n:[],l=f(u);try{for(l.s();!(o=l.n()).done;){var d=o.value;if(d instanceof r.CellError)return d}}catch(e){l.e(e)}finally{l.f()}var h,p=[],y=f(u);try{for(y.s();!(h=y.n()).done;){var m=h.value;if(m!==s.EmptyValue){if(!Object(s.isExtendedNumber)(m))return new r.CellError(r.ErrorType.VALUE,i.ErrorMessage.WrongType);p.push(Math.trunc(Object(s.getRawValue)(m)))}}}catch(e){y.e(e)}finally{y.f()}return c(new Set(p)).sort((function(e,t){return e-t})).filter((function(t){var n=(a.dateTimeHelper.relativeNumberToAbsoluteNumber(t)-1)%7;return"0"===e.charAt(n)}))}}])&&m(t.prototype,n),u&&m(t,u),Object.defineProperty(t,"prototype",{writable:!1}),h}(u.FunctionPlugin);function C(e,t){if(0===t.length)return 0;if(e<=t[0])return 0;if(t[t.length-1]<e)return t.length;for(var n=0,r=t.length-1;n+1<r;){var o=Math.floor((r+n)/2);t[o]>=e?r=o:n=o}return r}function w(e){var t;return"number"!=typeof e&&"string"!=typeof e?new r.CellError(r.ErrorType.VALUE,i.ErrorMessage.WrongType):"string"==typeof e?7===e.length&&/^(0|1)*$/.test(e)&&"1111111"!==e?e:new r.CellError(r.ErrorType.NUM,i.ErrorMessage.WeekendString):null!==(t=O.get(e))&&void 0!==t?t:new r.CellError(r.ErrorType.NUM,i.ErrorMessage.BadMode)}T.implementedFunctions={DATE:{method:"date",parameters:[{argumentType:u.ArgumentTypes.NUMBER},{argumentType:u.ArgumentTypes.NUMBER},{argumentType:u.ArgumentTypes.NUMBER}],returnNumberType:s.NumberType.NUMBER_DATE},TIME:{method:"time",parameters:[{argumentType:u.ArgumentTypes.NUMBER},{argumentType:u.ArgumentTypes.NUMBER},{argumentType:u.ArgumentTypes.NUMBER}],returnNumberType:s.NumberType.NUMBER_TIME},MONTH:{method:"month",parameters:[{argumentType:u.ArgumentTypes.NUMBER,minValue:0}]},YEAR:{method:"year",parameters:[{argumentType:u.ArgumentTypes.NUMBER,minValue:0}]},HOUR:{method:"hour",parameters:[{argumentType:u.ArgumentTypes.NUMBER,minValue:0}]},MINUTE:{method:"minute",parameters:[{argumentType:u.ArgumentTypes.NUMBER,minValue:0}]},SECOND:{method:"second",parameters:[{argumentType:u.ArgumentTypes.NUMBER,minValue:0}]},TEXT:{method:"text",parameters:[{argumentType:u.ArgumentTypes.NUMBER},{argumentType:u.ArgumentTypes.STRING}]},EOMONTH:{method:"eomonth",parameters:[{argumentType:u.ArgumentTypes.NUMBER,minValue:0},{argumentType:u.ArgumentTypes.NUMBER}],returnNumberType:s.NumberType.NUMBER_DATE},DAY:{method:"day",parameters:[{argumentType:u.ArgumentTypes.NUMBER,minValue:0}]},DAYS:{method:"days",parameters:[{argumentType:u.ArgumentTypes.NUMBER,minValue:0},{argumentType:u.ArgumentTypes.NUMBER,minValue:0}]},WEEKDAY:{method:"weekday",parameters:[{argumentType:u.ArgumentTypes.NUMBER,minValue:0},{argumentType:u.ArgumentTypes.NUMBER,defaultValue:1}]},WEEKNUM:{method:"weeknum",parameters:[{argumentType:u.ArgumentTypes.NUMBER,minValue:0},{argumentType:u.ArgumentTypes.NUMBER,defaultValue:1}]},ISOWEEKNUM:{method:"isoweeknum",parameters:[{argumentType:u.ArgumentTypes.NUMBER,minValue:0}]},DATEVALUE:{method:"datevalue",parameters:[{argumentType:u.ArgumentTypes.STRING}],returnNumberType:s.NumberType.NUMBER_DATE},TIMEVALUE:{method:"timevalue",parameters:[{argumentType:u.ArgumentTypes.STRING}],returnNumberType:s.NumberType.NUMBER_TIME},NOW:{method:"now",parameters:[],isVolatile:!0,returnNumberType:s.NumberType.NUMBER_DATETIME},TODAY:{method:"today",parameters:[],isVolatile:!0,returnNumberType:s.NumberType.NUMBER_DATE},EDATE:{method:"edate",parameters:[{argumentType:u.ArgumentTypes.NUMBER,minValue:0},{argumentType:u.ArgumentTypes.NUMBER}],returnNumberType:s.NumberType.NUMBER_DATE},DAYS360:{method:"days360",parameters:[{argumentType:u.ArgumentTypes.NUMBER,minValue:0},{argumentType:u.ArgumentTypes.NUMBER,minValue:0},{argumentType:u.ArgumentTypes.BOOLEAN,defaultValue:!1}]},DATEDIF:{method:"datedif",parameters:[{argumentType:u.ArgumentTypes.NUMBER,minValue:0},{argumentType:u.ArgumentTypes.NUMBER,minValue:0},{argumentType:u.ArgumentTypes.STRING}]},YEARFRAC:{method:"yearfrac",parameters:[{argumentType:u.ArgumentTypes.NUMBER,minValue:0},{argumentType:u.ArgumentTypes.NUMBER,minValue:0},{argumentType:u.ArgumentTypes.INTEGER,defaultValue:0,minValue:0,maxValue:4}]},INTERVAL:{method:"interval",parameters:[{argumentType:u.ArgumentTypes.NUMBER,minValue:0}]},NETWORKDAYS:{method:"networkdays",parameters:[{argumentType:u.ArgumentTypes.NUMBER,minValue:0},{argumentType:u.ArgumentTypes.NUMBER,minValue:0},{argumentType:u.ArgumentTypes.RANGE,optionalArg:!0}]},"NETWORKDAYS.INTL":{method:"networkdaysintl",parameters:[{argumentType:u.ArgumentTypes.NUMBER,minValue:0},{argumentType:u.ArgumentTypes.NUMBER,minValue:0},{argumentType:u.ArgumentTypes.NOERROR,defaultValue:1},{argumentType:u.ArgumentTypes.RANGE,optionalArg:!0}]},WORKDAY:{method:"workday",parameters:[{argumentType:u.ArgumentTypes.NUMBER,minValue:0},{argumentType:u.ArgumentTypes.NUMBER},{argumentType:u.ArgumentTypes.RANGE,optionalArg:!0}]},"WORKDAY.INTL":{method:"workdayintl",parameters:[{argumentType:u.ArgumentTypes.NUMBER,minValue:0},{argumentType:u.ArgumentTypes.NUMBER},{argumentType:u.ArgumentTypes.NOERROR,defaultValue:1},{argumentType:u.ArgumentTypes.RANGE,optionalArg:!0}]}};var R=new Map([[1,0],[2,1],[11,1],[12,2],[13,3],[14,4],[15,5],[16,6],[17,0]]),O=new Map([[1,"0000011"],[2,"1000001"],[3,"1100000"],[4,"0110000"],[5,"0011000"],[6,"0001100"],[7,"0000110"],[11,"0000001"],[12,"1000000"],[13,"0100000"],[14,"0010000"],[15,"0001000"],[16,"0000100"],[17,"0000010"]])},function(e,t,n){"use strict";n.r(t),n.d(t,"DegreesPlugin",(function(){return f}));n(27),n(0),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(38);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)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var f=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(l,e);var t,n,r,o=u(l);function l(){return i(this,l),o.apply(this,arguments)}return t=l,(n=[{key:"degrees",value:function(e,t){return this.runFunction(e.args,t,this.metadata("DEGREES"),(function(e){return e*(180/Math.PI)}))}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(r.FunctionPlugin);f.implementedFunctions={DEGREES:{method:"degrees",parameters:[{argumentType:r.ArgumentTypes.NUMBER}]}}},function(e,t,n){"use strict";n.r(t),n.d(t,"DeltaPlugin",(function(){return f}));n(27),n(0),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(38);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)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var f=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(l,e);var t,n,r,o=u(l);function l(){return i(this,l),o.apply(this,arguments)}return t=l,(n=[{key:"delta",value:function(e,t){return this.runFunction(e.args,t,this.metadata("DELTA"),(function(e,t){return e===t?1:0}))}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(r.FunctionPlugin);f.implementedFunctions={DELTA:{method:"delta",parameters:[{argumentType:r.ArgumentTypes.NUMBER},{argumentType:r.ArgumentTypes.NUMBER,defaultValue:0}]}}},function(e,t,n){"use strict";n.r(t),n.d(t,"ExpPlugin",(function(){return f}));n(27),n(0),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(38);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)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var f=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(l,e);var t,n,r,o=u(l);function l(){return i(this,l),o.apply(this,arguments)}return t=l,(n=[{key:"exp",value:function(e,t){return this.runFunction(e.args,t,this.metadata("EXP"),Math.exp)}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(r.FunctionPlugin);f.implementedFunctions={EXP:{method:"exp",parameters:[{argumentType:r.ArgumentTypes.NUMBER}]}}},function(e,t,n){"use strict";n.r(t),n.d(t,"FinancialPlugin",(function(){return m}));n(141),n(27),n(0),n(7),n(13),n(25),n(22),n(2),n(12),n(8),n(9),n(10),n(3),n(4);var r=n(24),o=n(45),i=n(51),a=n(38);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(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 l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function l(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 c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var m=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(l,e);var t,n,a,s=h(l);function l(){return c(this,l),s.apply(this,arguments)}return t=l,(n=[{key:"pmt",value:function(e,t){return this.runFunction(e.args,t,this.metadata("PMT"),g)}},{key:"ipmt",value:function(e,t){return this.runFunction(e.args,t,this.metadata("IPMT"),v)}},{key:"ppmt",value:function(e,t){return this.runFunction(e.args,t,this.metadata("PPMT"),b)}},{key:"fv",value:function(e,t){return this.runFunction(e.args,t,this.metadata("FV"),E)}},{key:"cumipmt",value:function(e,t){return this.runFunction(e.args,t,this.metadata("CUMIPMT"),(function(e,t,n,i,a,s){if(i>a)return new r.CellError(r.ErrorType.NUM,o.ErrorMessage.EndStartPeriod);for(var u=0,l=i;l<=a;l++)u+=v(e,l,t,n,0,s);return u}))}},{key:"cumprinc",value:function(e,t){return this.runFunction(e.args,t,this.metadata("CUMPRINC"),(function(e,t,n,i,a,s){if(i>a)return new r.CellError(r.ErrorType.NUM,o.ErrorMessage.EndStartPeriod);for(var u=0,l=i;l<=a;l++)u+=b(e,l,t,n,0,s);return u}))}},{key:"db",value:function(e,t){return this.runFunction(e.args,t,this.metadata("DB"),(function(e,t,n,i,a){if(12===a&&i>n||i>n+1)return new r.CellError(r.ErrorType.NUM,o.ErrorMessage.PeriodLong);if(t>=e)return 0;var s=Math.round(1e3*(1-Math.pow(t/e,1/n)))/1e3,u=e*s*a/12;if(1===i)return u;for(var l=u,c=0;c<i-2;c++)l+=(e-l)*s;return i===n+1?(e-l)*s*(12-a)/12:(e-l)*s}))}},{key:"ddb",value:function(e,t){return this.runFunction(e.args,t,this.metadata("DDB"),(function(e,t,n,o,i){if(o>n)return new r.CellError(r.ErrorType.NUM);var a,s=i/n;s>=1?(s=1,a=1===o?e:0):a=e*Math.pow(1-s,o-1);var u=e*Math.pow(1-s,o);return Math.max(a-Math.max(t,u),0)}))}},{key:"dollarde",value:function(e,t){return this.runFunction(e.args,t,this.metadata("DOLLARDE"),(function(e,t){if(t<1)return new r.CellError(r.ErrorType.DIV_BY_ZERO);for(t=Math.trunc(t);t>10;)t/=10;return Math.trunc(e)+10*(e-Math.trunc(e))/t}))}},{key:"dollarfr",value:function(e,t){return this.runFunction(e.args,t,this.metadata("DOLLARFR"),(function(e,t){if(t<1)return new r.CellError(r.ErrorType.DIV_BY_ZERO);for(t=Math.trunc(t);t>10;)t/=10;return Math.trunc(e)+(e-Math.trunc(e))*t/10}))}},{key:"effect",value:function(e,t){return this.runFunction(e.args,t,this.metadata("EFFECT"),(function(e,t){return t=Math.trunc(t),Math.pow(1+e/t,t)-1}))}},{key:"ispmt",value:function(e,t){return this.runFunction(e.args,t,this.metadata("ISPMT"),(function(e,t,n,o){return 0===n?new r.CellError(r.ErrorType.DIV_BY_ZERO):o*e*(t/n-1)}))}},{key:"nominal",value:function(e,t){return this.runFunction(e.args,t,this.metadata("NOMINAL"),(function(e,t){return t=Math.trunc(t),(Math.pow(e+1,1/t)-1)*t}))}},{key:"nper",value:function(e,t){return this.runFunction(e.args,t,this.metadata("NPER"),(function(e,t,n,o,i){return 0===e?0===t?new r.CellError(r.ErrorType.DIV_BY_ZERO):(-n-o)/t:(i&&(t*=1+e),Math.log((t-o*e)/(n*e+t))/Math.log(1+e))}))}},{key:"rate",value:function(e,t){return this.runFunction(e.args,t,this.metadata("RATE"),(function(e,t,n,o,i,a){if(a<=-1)return new r.CellError(r.ErrorType.VALUE);var s=a;i=i?1:0;for(var u=0;u<50;u++){if(s<=-1)return new r.CellError(r.ErrorType.NUM);var l=void 0;if(Math.abs(s)<1e-7)l=n*(1+e*s)+t*(1+s*i)*e+o;else{var c=Math.pow(1+s,e);l=n*c+t*(1/s+i)*(c-1)+o}if(Math.abs(l)<1e-7)return s;var f=void 0;if(Math.abs(s)<1e-7)f=n*e+t*i*e;else{var d=Math.pow(1+s,e),h=e*Math.pow(1+s,e-1);f=n*h+t*(1/s+i)*h+t*(-1/(s*s))*(d-1)}s-=l/f}return new r.CellError(r.ErrorType.NUM)}))}},{key:"pv",value:function(e,t){return this.runFunction(e.args,t,this.metadata("PV"),(function(e,t,n,o,i){return i=i?1:0,-1===e?0===t?new r.CellError(r.ErrorType.NUM):new r.CellError(r.ErrorType.DIV_BY_ZERO):0===e?-n*t-o:((1-Math.pow(1+e,t))*n*(1+e*i)/e-o)/Math.pow(1+e,t)}))}},{key:"rri",value:function(e,t){return this.runFunction(e.args,t,this.metadata("RRI"),(function(e,t,n){return 0===t||n<0&&t>0||n>0&&t<0?new r.CellError(r.ErrorType.NUM):Math.pow(n/t,1/e)-1}))}},{key:"sln",value:function(e,t){return this.runFunction(e.args,t,this.metadata("SLN"),(function(e,t,n){return 0===n?new r.CellError(r.ErrorType.DIV_BY_ZERO):(e-t)/n}))}},{key:"syd",value:function(e,t){return this.runFunction(e.args,t,this.metadata("SYD"),(function(e,t,n,o){return o>n?new r.CellError(r.ErrorType.NUM):(e-t)*(n-o+1)*2/(n*(n+1))}))}},{key:"tbilleq",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("TBILLEQ"),(function(e,t,o){if((e=Math.round(e))>=(t=Math.round(t)))return new r.CellError(r.ErrorType.NUM);var i=n.dateTimeHelper.numberToSimpleDate(e),a=n.dateTimeHelper.numberToSimpleDate(t);if(a.year>i.year+1||a.year===i.year+1&&(a.month>i.month||a.month===i.month&&a.day>i.day))return new r.CellError(r.ErrorType.NUM);var s=360-o*(t-e);return 0===s?0:s<0?new r.CellError(r.ErrorType.NUM):365*o/s}))}},{key:"tbillprice",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("TBILLPRICE"),(function(e,t,o){if((e=Math.round(e))>=(t=Math.round(t)))return new r.CellError(r.ErrorType.NUM);var i=n.dateTimeHelper.numberToSimpleDate(e),a=n.dateTimeHelper.numberToSimpleDate(t);if(a.year>i.year+1||a.year===i.year+1&&(a.month>i.month||a.month===i.month&&a.day>i.day))return new r.CellError(r.ErrorType.NUM);var s=360-o*(t-e);return 0===s?0:s<0?new r.CellError(r.ErrorType.NUM):100*(1-o*(t-e)/360)}))}},{key:"tbillyield",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("TBILLYIELD"),(function(e,t,o){if((e=Math.round(e))>=(t=Math.round(t)))return new r.CellError(r.ErrorType.NUM);var i=n.dateTimeHelper.numberToSimpleDate(e),a=n.dateTimeHelper.numberToSimpleDate(t);return a.year>i.year+1||a.year===i.year+1&&(a.month>i.month||a.month===i.month&&a.day>i.day)?new r.CellError(r.ErrorType.NUM):360*(100-o)/(o*(t-e))}))}},{key:"fvschedule",value:function(e,t){return this.runFunction(e.args,t,this.metadata("FVSCHEDULE"),(function(e,t){var n,a=t.valuesFromTopLeftCorner(),s=u(a);try{for(s.s();!(n=s.n()).done;){var l=n.value;if(l instanceof r.CellError)return l}}catch(e){s.e(e)}finally{s.f()}var c,f=u(a);try{for(f.s();!(c=f.n()).done;){var d=c.value;if(Object(i.isExtendedNumber)(d))e*=1+Object(i.getRawValue)(d);else if(d!==i.EmptyValue)return new r.CellError(r.ErrorType.VALUE,o.ErrorMessage.NumberExpected)}}catch(e){f.e(e)}finally{f.f()}return e}))}},{key:"npv",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("NPV"),(function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];var a=n.arithmeticHelper.coerceNumbersExactRanges(o);return a instanceof r.CellError?a:T(e,a)}))}},{key:"mirr",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("MIRR"),(function(e,t,o){var i=n.arithmeticHelper.manyToExactNumbers(e.valuesFromTopLeftCorner());if(i instanceof r.CellError)return i;var a,s=!1,l=!1,c=[],f=[],d=u(i);try{for(d.s();!(a=d.n()).done;){var h=a.value;h>0?(s=!0,c.push(h),f.push(0)):h<0?(l=!0,f.push(h),c.push(0)):(f.push(0),c.push(0))}}catch(e){d.e(e)}finally{d.f()}if(!s||!l)return new r.CellError(r.ErrorType.DIV_BY_ZERO);var p=i.length,y=T(o,c);if(y instanceof r.CellError)return y;var m=T(t,f);return m instanceof r.CellError?m:Math.pow(-y*Math.pow(1+o,p)/m/(1+t),1/(p-1))-1}))}},{key:"pduration",value:function(e,t){return this.runFunction(e.args,t,this.metadata("PDURATION"),(function(e,t,n){return(Math.log(n)-Math.log(t))/Math.log(1+e)}))}},{key:"xnpv",value:function(e,t){return this.runFunction(e.args,t,this.metadata("XNPV"),(function(e,t,n){var i,a=t.valuesFromTopLeftCorner(),s=u(a);try{for(s.s();!(i=s.n()).done;)if("number"!=typeof i.value)return new r.CellError(r.ErrorType.VALUE,o.ErrorMessage.NumberExpected)}catch(e){s.e(e)}finally{s.f()}var l,c=a,f=n.valuesFromTopLeftCorner(),d=u(f);try{for(d.s();!(l=d.n()).done;)if("number"!=typeof l.value)return new r.CellError(r.ErrorType.VALUE,o.ErrorMessage.NumberExpected)}catch(e){d.e(e)}finally{d.f()}var h=f;if(h.length!==c.length)return new r.CellError(r.ErrorType.NUM,o.ErrorMessage.EqualLength);var p=h.length,y=0;if(h[0]<0)return new r.CellError(r.ErrorType.NUM,o.ErrorMessage.ValueSmall);for(var m=0;m<p;m++){if(h[m]=Math.floor(h[m]),h[m]<h[0])return new r.CellError(r.ErrorType.NUM,o.ErrorMessage.ValueSmall);y+=c[m]/Math.pow(1+e,(h[m]-h[0])/365)}return y}))}}])&&f(t.prototype,n),a&&f(t,a),Object.defineProperty(t,"prototype",{writable:!1}),l}(a.FunctionPlugin);function g(e,t,n,r,o){if(0===e)return(-n-r)/t;var i=Math.pow(1+e,t);return(r*e+n*e*i)*(o?1/(1+e):1)/(1-i)}function v(e,t,n,r,o,i){var a=g(e,n,r,o,i);return 1===t?e*(i?0:-r):e*(i?E(e,t-2,a,r,i)-a:E(e,t-1,a,r,i))}function E(e,t,n,r,o){if(0===e)return-r-n*t;var i=Math.pow(1+e,t);return n*(o?1+e:1)*(1-i)/e-r*i}function b(e,t,n,r,o,i){return g(e,n,r,o,i)-v(e,t,n,r,o,i)}function T(e,t){for(var n=0,o=t.length-1;o>=0;o--){if(n+=t[o],-1===e){if(0===n)continue;return new r.CellError(r.ErrorType.DIV_BY_ZERO)}n/=1+e}return n}m.implementedFunctions={PMT:{method:"pmt",parameters:[{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER,defaultValue:0},{argumentType:a.ArgumentTypes.NUMBER,defaultValue:0}],returnNumberType:i.NumberType.NUMBER_CURRENCY},IPMT:{method:"ipmt",parameters:[{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER,defaultValue:0},{argumentType:a.ArgumentTypes.NUMBER,defaultValue:0}],returnNumberType:i.NumberType.NUMBER_CURRENCY},PPMT:{method:"ppmt",parameters:[{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER,defaultValue:0},{argumentType:a.ArgumentTypes.NUMBER,defaultValue:0}],returnNumberType:i.NumberType.NUMBER_CURRENCY},FV:{method:"fv",parameters:[{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER,defaultValue:0},{argumentType:a.ArgumentTypes.NUMBER,defaultValue:0}],returnNumberType:i.NumberType.NUMBER_CURRENCY},CUMIPMT:{method:"cumipmt",parameters:[{argumentType:a.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:a.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:a.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:a.ArgumentTypes.INTEGER,minValue:1},{argumentType:a.ArgumentTypes.INTEGER,minValue:1},{argumentType:a.ArgumentTypes.INTEGER,minValue:0,maxValue:1}],returnNumberType:i.NumberType.NUMBER_CURRENCY},CUMPRINC:{method:"cumprinc",parameters:[{argumentType:a.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:a.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:a.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:a.ArgumentTypes.INTEGER,minValue:1},{argumentType:a.ArgumentTypes.INTEGER,minValue:1},{argumentType:a.ArgumentTypes.INTEGER,minValue:0,maxValue:1}],returnNumberType:i.NumberType.NUMBER_CURRENCY},DB:{method:"db",parameters:[{argumentType:a.ArgumentTypes.NUMBER,minValue:0},{argumentType:a.ArgumentTypes.NUMBER,minValue:0},{argumentType:a.ArgumentTypes.INTEGER,minValue:0},{argumentType:a.ArgumentTypes.INTEGER,minValue:0},{argumentType:a.ArgumentTypes.INTEGER,minValue:1,maxValue:12,defaultValue:12}],returnNumberType:i.NumberType.NUMBER_CURRENCY},DDB:{method:"ddb",parameters:[{argumentType:a.ArgumentTypes.NUMBER,minValue:0},{argumentType:a.ArgumentTypes.NUMBER,minValue:0},{argumentType:a.ArgumentTypes.INTEGER,minValue:0},{argumentType:a.ArgumentTypes.NUMBER,minValue:0},{argumentType:a.ArgumentTypes.NUMBER,greaterThan:0,defaultValue:2}],returnNumberType:i.NumberType.NUMBER_CURRENCY},DOLLARDE:{method:"dollarde",parameters:[{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER,minValue:0}]},DOLLARFR:{method:"dollarfr",parameters:[{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER,minValue:0}]},EFFECT:{method:"effect",parameters:[{argumentType:a.ArgumentTypes.NUMBER,minValue:0},{argumentType:a.ArgumentTypes.NUMBER,minValue:1}],returnNumberType:i.NumberType.NUMBER_PERCENT},ISPMT:{method:"ispmt",parameters:[{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER}]},NOMINAL:{method:"nominal",parameters:[{argumentType:a.ArgumentTypes.NUMBER,minValue:0},{argumentType:a.ArgumentTypes.NUMBER,minValue:1}],returnNumberType:i.NumberType.NUMBER_PERCENT},NPER:{method:"nper",parameters:[{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER,defaultValue:0},{argumentType:a.ArgumentTypes.NUMBER,defaultValue:0}]},PV:{method:"pv",parameters:[{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER,defaultValue:0},{argumentType:a.ArgumentTypes.NUMBER,defaultValue:0}],returnNumberType:i.NumberType.NUMBER_CURRENCY},RATE:{method:"rate",parameters:[{argumentType:a.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER,defaultValue:0},{argumentType:a.ArgumentTypes.NUMBER,defaultValue:0},{argumentType:a.ArgumentTypes.NUMBER,defaultValue:.1}],returnNumberType:i.NumberType.NUMBER_PERCENT},RRI:{method:"rri",parameters:[{argumentType:a.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER}],returnNumberType:i.NumberType.NUMBER_PERCENT},SLN:{method:"sln",parameters:[{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER}],returnNumberType:i.NumberType.NUMBER_CURRENCY},SYD:{method:"syd",parameters:[{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:a.ArgumentTypes.NUMBER,greaterThan:0}],returnNumberType:i.NumberType.NUMBER_CURRENCY},TBILLEQ:{method:"tbilleq",parameters:[{argumentType:a.ArgumentTypes.NUMBER,minValue:0},{argumentType:a.ArgumentTypes.NUMBER,minValue:0},{argumentType:a.ArgumentTypes.NUMBER,greaterThan:0}],returnNumberType:i.NumberType.NUMBER_PERCENT},TBILLPRICE:{method:"tbillprice",parameters:[{argumentType:a.ArgumentTypes.NUMBER,minValue:0},{argumentType:a.ArgumentTypes.NUMBER,minValue:0},{argumentType:a.ArgumentTypes.NUMBER,greaterThan:0}],returnNumberType:i.NumberType.NUMBER_CURRENCY},TBILLYIELD:{method:"tbillyield",parameters:[{argumentType:a.ArgumentTypes.NUMBER,minValue:0},{argumentType:a.ArgumentTypes.NUMBER,minValue:0},{argumentType:a.ArgumentTypes.NUMBER,greaterThan:0}],returnNumberType:i.NumberType.NUMBER_PERCENT},FVSCHEDULE:{method:"fvschedule",parameters:[{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.RANGE}],returnNumberType:i.NumberType.NUMBER_CURRENCY},NPV:{method:"npv",parameters:[{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.ANY}],repeatLastArgs:1,returnNumberType:i.NumberType.NUMBER_CURRENCY},MIRR:{method:"mirr",parameters:[{argumentType:a.ArgumentTypes.RANGE},{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER}],returnNumberType:i.NumberType.NUMBER_PERCENT},PDURATION:{method:"pduration",parameters:[{argumentType:a.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:a.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:a.ArgumentTypes.NUMBER,greaterThan:0}]},XNPV:{method:"xnpv",parameters:[{argumentType:a.ArgumentTypes.NUMBER,greaterThan:-1},{argumentType:a.ArgumentTypes.RANGE},{argumentType:a.ArgumentTypes.RANGE}]}}},function(e,t,n){"use strict";n.r(t),n.d(t,"FormulaTextPlugin",(function(){return p}));n(27),n(0),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(24),o=n(45),i=n(292),a=n(38);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(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 c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var p=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(s,e);var t,n,i,a=f(s);function s(){return u(this,s),a.apply(this,arguments)}return t=s,(n=[{key:"formulatext",value:function(e,t){var n=this;return this.runFunctionWithReferenceArgument(e.args,t,this.metadata("FORMULATEXT"),(function(){return new r.CellError(r.ErrorType.NA,o.ErrorMessage.WrongArgNumber)}),(function(e){var t;return null!==(t=n.serialization.getCellFormula(e))&&void 0!==t?t:new r.CellError(r.ErrorType.NA,o.ErrorMessage.Formula)}))}}])&&l(t.prototype,n),i&&l(t,i),Object.defineProperty(t,"prototype",{writable:!1}),s}(i.FunctionPlugin);p.implementedFunctions={FORMULATEXT:{method:"formulatext",parameters:[{argumentType:a.ArgumentTypes.NOERROR}],doesNotNeedArgumentsToBeComputed:!0,isDependentOnSheetStructureChange:!0,vectorizationForbidden:!0}}},function(e,t,n){"use strict";n.r(t),n.d(t,"InformationPlugin",(function(){return g}));n(12),n(0),n(27),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(24),o=n(115),i=n(45),a=n(72),s=n(51),u=n(78),l=n(38);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(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 h(e,t){return(h=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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(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 y(this,n)}}function y(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var g=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(y,e);var t,n,l,c=p(y);function y(){return f(this,y),c.apply(this,arguments)}return t=y,(n=[{key:"isbinary",value:function(e,t){return this.runFunction(e.args,t,this.metadata("ISBINARY"),(function(e){return/^[01]{1,10}$/.test(e)}))}},{key:"iserr",value:function(e,t){return this.runFunction(e.args,t,this.metadata("ISERR"),(function(e){return e instanceof r.CellError&&e.type!==r.ErrorType.NA}))}},{key:"iserror",value:function(e,t){return this.runFunction(e.args,t,this.metadata("ISERROR"),(function(e){return e instanceof r.CellError}))}},{key:"isformula",value:function(e,t){var n=this;return this.runFunctionWithReferenceArgument(e.args,t,this.metadata("ISFORMULA"),(function(){return new r.CellError(r.ErrorType.NA,i.ErrorMessage.WrongArgNumber)}),(function(e){return n.dependencyGraph.addressMapping.getCell(e)instanceof o.FormulaVertex}))}},{key:"isblank",value:function(e,t){return this.runFunction(e.args,t,this.metadata("ISBLANK"),(function(e){return e===s.EmptyValue}))}},{key:"isna",value:function(e,t){return this.runFunction(e.args,t,this.metadata("ISNA"),(function(e){return e instanceof r.CellError&&e.type==r.ErrorType.NA}))}},{key:"isnumber",value:function(e,t){return this.runFunction(e.args,t,this.metadata("ISNUMBER"),s.isExtendedNumber)}},{key:"islogical",value:function(e,t){return this.runFunction(e.args,t,this.metadata("ISLOGICAL"),(function(e){return"boolean"==typeof e}))}},{key:"isref",value:function(e,t){return this.runFunction(e.args,t,this.metadata("ISREF"),(function(e){return e instanceof r.CellError&&(e.type==r.ErrorType.REF||e.type==r.ErrorType.CYCLE)}))}},{key:"istext",value:function(e,t){return this.runFunction(e.args,t,this.metadata("ISTEXT"),(function(e){return"string"==typeof e}))}},{key:"isnontext",value:function(e,t){return this.runFunction(e.args,t,this.metadata("ISNONTEXT"),(function(e){return!("string"==typeof e)}))}},{key:"column",value:function(e,t){return this.runFunctionWithReferenceArgument(e.args,t,this.metadata("COLUMN"),(function(){return t.formulaAddress.col+1}),(function(e){return e.col+1}))}},{key:"columns",value:function(e,t){if(1!==e.args.length)return new r.CellError(r.ErrorType.NA,i.ErrorMessage.WrongArgNumber);if(e.args.some((function(e){return e.type===a.AstNodeType.EMPTY})))return new r.CellError(r.ErrorType.NUM,i.ErrorMessage.EmptyArg);for(var n=e.args[0];n.type===a.AstNodeType.PARENTHESIS;)n=n.expression;if(n.type===a.AstNodeType.CELL_RANGE||n.type===a.AstNodeType.COLUMN_RANGE)return n.end.col-n.start.col+1;if(n.type===a.AstNodeType.CELL_REFERENCE)return 1;if(n.type===a.AstNodeType.ROW_RANGE)return this.config.maxColumns;var o=this.evaluateAst(n,t);return o instanceof u.SimpleRangeValue?o.width():o instanceof r.CellError?o:1}},{key:"row",value:function(e,t){return this.runFunctionWithReferenceArgument(e.args,t,this.metadata("ROW"),(function(){return t.formulaAddress.row+1}),(function(e){return e.row+1}))}},{key:"rows",value:function(e,t){if(1!==e.args.length)return new r.CellError(r.ErrorType.NA,i.ErrorMessage.WrongArgNumber);if(e.args.some((function(e){return e.type===a.AstNodeType.EMPTY})))return new r.CellError(r.ErrorType.NUM,i.ErrorMessage.EmptyArg);for(var n=e.args[0];n.type===a.AstNodeType.PARENTHESIS;)n=n.expression;if(n.type===a.AstNodeType.CELL_RANGE||n.type===a.AstNodeType.ROW_RANGE)return n.end.row-n.start.row+1;if(n.type===a.AstNodeType.CELL_REFERENCE)return 1;if(n.type===a.AstNodeType.COLUMN_RANGE)return this.config.maxRows;var o=this.evaluateAst(n,t);return o instanceof u.SimpleRangeValue?o.height():o instanceof r.CellError?o:1}},{key:"index",value:function(e,t){return this.runFunction(e.args,t,this.metadata("INDEX"),(function(e,t,n){var o,a,s,u,l,c;return n<1||t<1?new r.CellError(r.ErrorType.VALUE,i.ErrorMessage.LessThanOne):n>e.width()||t>e.height()?new r.CellError(r.ErrorType.NUM,i.ErrorMessage.ValueLarge):null!==(c=null!==(s=null===(a=null===(o=null==e?void 0:e.data)||void 0===o?void 0:o[t-1])||void 0===a?void 0:a[n-1])&&void 0!==s?s:null===(l=null===(u=null==e?void 0:e.data)||void 0===u?void 0:u[0])||void 0===l?void 0:l[0])&&void 0!==c?c:new r.CellError(r.ErrorType.VALUE,i.ErrorMessage.CellRangeExpected)}))}},{key:"na",value:function(e,t){return new r.CellError(r.ErrorType.NA)}},{key:"sheet",value:function(e,t){var n=this;return this.runFunctionWithReferenceArgument(e.args,t,this.metadata("SHEET"),(function(){return t.formulaAddress.sheet+1}),(function(e){return e.sheet+1}),(function(e){var t=n.dependencyGraph.sheetMapping.get(e);return void 0!==t?t+1:new r.CellError(r.ErrorType.NA,i.ErrorMessage.SheetRef)}))}},{key:"sheets",value:function(e,t){var n=this;return this.runFunctionWithReferenceArgument(e.args,t,this.metadata("SHEETS"),(function(){return n.dependencyGraph.sheetMapping.numberOfSheets()}),(function(){return 1}),(function(){return new r.CellError(r.ErrorType.VALUE,i.ErrorMessage.CellRefExpected)}))}}])&&d(t.prototype,n),l&&d(t,l),Object.defineProperty(t,"prototype",{writable:!1}),y}(l.FunctionPlugin);g.implementedFunctions={COLUMN:{method:"column",parameters:[{argumentType:l.ArgumentTypes.NOERROR,optional:!0}],isDependentOnSheetStructureChange:!0,doesNotNeedArgumentsToBeComputed:!0,vectorizationForbidden:!0},COLUMNS:{method:"columns",parameters:[{argumentType:l.ArgumentTypes.RANGE}],isDependentOnSheetStructureChange:!0,doesNotNeedArgumentsToBeComputed:!0,vectorizationForbidden:!0},ISBINARY:{method:"isbinary",parameters:[{argumentType:l.ArgumentTypes.STRING}]},ISERR:{method:"iserr",parameters:[{argumentType:l.ArgumentTypes.SCALAR}]},ISFORMULA:{method:"isformula",parameters:[{argumentType:l.ArgumentTypes.NOERROR}],doesNotNeedArgumentsToBeComputed:!0,vectorizationForbidden:!0},ISNA:{method:"isna",parameters:[{argumentType:l.ArgumentTypes.SCALAR}]},ISREF:{method:"isref",parameters:[{argumentType:l.ArgumentTypes.SCALAR}],vectorizationForbidden:!0},ISERROR:{method:"iserror",parameters:[{argumentType:l.ArgumentTypes.SCALAR}]},ISBLANK:{method:"isblank",parameters:[{argumentType:l.ArgumentTypes.SCALAR}]},ISNUMBER:{method:"isnumber",parameters:[{argumentType:l.ArgumentTypes.SCALAR}]},ISLOGICAL:{method:"islogical",parameters:[{argumentType:l.ArgumentTypes.SCALAR}]},ISTEXT:{method:"istext",parameters:[{argumentType:l.ArgumentTypes.SCALAR}]},ISNONTEXT:{method:"isnontext",parameters:[{argumentType:l.ArgumentTypes.SCALAR}]},INDEX:{method:"index",parameters:[{argumentType:l.ArgumentTypes.RANGE},{argumentType:l.ArgumentTypes.NUMBER},{argumentType:l.ArgumentTypes.NUMBER,defaultValue:1}]},NA:{method:"na",parameters:[]},ROW:{method:"row",parameters:[{argumentType:l.ArgumentTypes.NOERROR,optional:!0}],isDependentOnSheetStructureChange:!0,doesNotNeedArgumentsToBeComputed:!0,vectorizationForbidden:!0},ROWS:{method:"rows",parameters:[{argumentType:l.ArgumentTypes.RANGE}],isDependentOnSheetStructureChange:!0,doesNotNeedArgumentsToBeComputed:!0,vectorizationForbidden:!0},SHEET:{method:"sheet",parameters:[{argumentType:l.ArgumentTypes.STRING}],doesNotNeedArgumentsToBeComputed:!0,vectorizationForbidden:!0},SHEETS:{method:"sheets",parameters:[{argumentType:l.ArgumentTypes.STRING}],doesNotNeedArgumentsToBeComputed:!0,vectorizationForbidden:!0}}},function(e,t,n){"use strict";n.r(t),n.d(t,"IsEvenPlugin",(function(){return f}));n(27),n(0),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(38);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)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var f=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(l,e);var t,n,r,o=u(l);function l(){return i(this,l),o.apply(this,arguments)}return t=l,(n=[{key:"iseven",value:function(e,t){return this.runFunction(e.args,t,this.metadata("ISEVEN"),(function(e){return e%2==0}))}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(r.FunctionPlugin);f.implementedFunctions={ISEVEN:{method:"iseven",parameters:[{argumentType:r.ArgumentTypes.NUMBER}]}}},function(e,t,n){"use strict";n.r(t),n.d(t,"IsOddPlugin",(function(){return f}));n(27),n(0),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(38);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)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var f=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(l,e);var t,n,r,o=u(l);function l(){return i(this,l),o.apply(this,arguments)}return t=l,(n=[{key:"isodd",value:function(e,t){return this.runFunction(e.args,t,this.metadata("ISODD"),(function(e){return e%2==1}))}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(r.FunctionPlugin);f.implementedFunctions={ISODD:{method:"isodd",parameters:[{argumentType:r.ArgumentTypes.NUMBER}]}}},function(e,t,n){"use strict";n.r(t),n.d(t,"LogarithmPlugin",(function(){return f}));n(381),n(27),n(0),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(38);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)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var f=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(l,e);var t,n,r,o=u(l);function l(){return i(this,l),o.apply(this,arguments)}return t=l,(n=[{key:"log10",value:function(e,t){return this.runFunction(e.args,t,this.metadata("LOG10"),Math.log10)}},{key:"log",value:function(e,t){return this.runFunction(e.args,t,this.metadata("LOG"),(function(e,t){return Math.log(e)/Math.log(t)}))}},{key:"ln",value:function(e,t){return this.runFunction(e.args,t,this.metadata("LN"),Math.log)}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(r.FunctionPlugin);f.implementedFunctions={LOG10:{method:"log10",parameters:[{argumentType:r.ArgumentTypes.NUMBER}]},LOG:{method:"log",parameters:[{argumentType:r.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:r.ArgumentTypes.NUMBER,defaultValue:10,greaterThan:0}]},LN:{method:"ln",parameters:[{argumentType:r.ArgumentTypes.NUMBER}]}}},function(e,t,n){"use strict";n.r(t),n.d(t,"MatrixPlugin",(function(){return T}));n(37),n(27),n(0),n(7),n(8),n(9),n(10),n(3),n(2),n(4),n(13),n(25),n(22),n(12);var r=n(124),o=n(24),i=n(45),a=n(72),s=n(187),u=n(78),l=n(38);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;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,t)||function(e,t){if(!e)return;if("string"==typeof e)return d(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 d(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 d(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 h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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 y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/function E(e,t){return new r.ArraySize(t.width,e.height)}function b(e,t,n){return new r.ArraySize(1+(e.width-t)/n,1+(e.height-t)/n)}var T=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(d,e);var t,n,l,c=m(d);function d(){return h(this,d),c.apply(this,arguments)}return t=d,(n=[{key:"mmult",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("MMULT"),(function(e,t){if(!e.hasOnlyNumbers()||!t.hasOnlyNumbers())return new o.CellError(o.ErrorType.VALUE,i.ErrorMessage.NumberRange);if(t.height()!==e.width())return new o.CellError(o.ErrorType.VALUE,i.ErrorMessage.ArrayDimensions);var r=E(e.size,t.size),a=n.createKernel((function(e,t,n){for(var r=0,o=0;o<n;++o)r+=e[this.thread.y][o]*t[o][this.thread.x];return r}),r)(e.rawNumbers(),t.rawNumbers(),e.width());return u.SimpleRangeValue.onlyNumbers(a)}))}},{key:"mmultArraySize",value:function(e,t){var n=this;if(2!==e.args.length)return r.ArraySize.error();var o=this.metadata("MMULT"),i=f(e.args.map((function(e){var r;return n.arraySizeForAst(e,new s.InterpreterState(t.formulaAddress,t.arraysFlag||null!==(r=null==o?void 0:o.arrayFunction)&&void 0!==r&&r))})),2);return E(i[0],i[1])}},{key:"maxpool",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("MAXPOOL"),(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;if(!e.hasOnlyNumbers())return new o.CellError(o.ErrorType.VALUE,i.ErrorMessage.NumberRange);var a=b(e.size,t,r),s=n.createKernel((function(e,t,n){for(var r=this.thread.x*n,o=this.thread.y*n,i=e[o][r],a=0;a<t;a++)for(var s=0;s<t;s++)i=Math.max(i,e[o+a][r+s]);return i}),a)(e.rawNumbers(),t,r);return u.SimpleRangeValue.onlyNumbers(s)}))}},{key:"medianpool",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("MEDIANPOOL"),(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;if(!e.hasOnlyNumbers())return new o.CellError(o.ErrorType.VALUE,i.ErrorMessage.NumberRange);var a=b(e.size,t,r),s=n.createKernel((function(e,t,n){for(var r=this.thread.x*n,o=this.thread.y*n,i=e[o][r],a=0;a<t;a++)for(var s=0;s<t;s++)i=Math.max(i,e[o+a][r+s]);for(var u=e[o][r],l=0;l<t;l++)for(var c=0;c<t;c++)u=Math.min(u,e[o+l][r+c]);for(var f=t*t,d=u,h=i,p=42,y=0;y<32;y++){for(var m=(d+h)/2,g=0,v=0;v<t;v++)for(var E=0;E<t;E++)e[o+v][r+E]>m&&g++;if(t%2==0){if(g===f/2){p=m;break}g>f/2?d=m:h=m}else{if(g===(f-1)/2){p=m;break}g>(f-1)/2?d=m:h=m}}return p}),a)(e.rawNumbers(),t,r);return u.SimpleRangeValue.onlyNumbers(s)}))}},{key:"maxpoolArraySize",value:function(e,t){var n=this;if(e.args.length<2||e.args.length>3)return r.ArraySize.error();var o,i=this.metadata("MAXPOOL"),u=e.args.map((function(e){var r;return n.arraySizeForAst(e,new s.InterpreterState(t.formulaAddress,t.arraysFlag||null!==(r=null==i?void 0:i.arrayFunction)&&void 0!==r&&r))}))[0],l=e.args[1],c=o=l.type===a.AstNodeType.NUMBER?l.value:1;if(3===e.args.length){var f=e.args[2];c=f.type===a.AstNodeType.NUMBER?f.value:1}return o>u.width||o>u.height||c>o||(u.width-o)%c!=0||(u.height-o)%c!=0?r.ArraySize.error():b(u,o,c)}},{key:"medianpoolArraySize",value:function(e,t){return this.maxpoolArraySize(e,t)}},{key:"transpose",value:function(e,t){return this.runFunction(e.args,t,this.metadata("TRANSPOSE"),(function(e){for(var t=e.rawData(),n=e.size,r=[],o=0;o<n.width;++o){r[o]=[];for(var i=0;i<n.height;++i)r[o][i]=t[i][o]}return u.SimpleRangeValue.onlyValues(r)}))}},{key:"transposeArraySize",value:function(e,t){var n=this;if(1!==e.args.length)return r.ArraySize.error();var o=this.metadata("MMULT"),i=f(e.args.map((function(e){var r;return n.arraySizeForAst(e,new s.InterpreterState(t.formulaAddress,t.arraysFlag||null!==(r=null==o?void 0:o.arrayFunction)&&void 0!==r&&r))})),1)[0];return new r.ArraySize(i.height,i.width)}},{key:"createKernel",value:function(e,t){return function(){for(var n=[],r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];for(var a=0;a<t.height;++a){n.push([]);for(var s=0;s<t.width;++s)n[a][s]=e.apply({thread:{x:s,y:a}},o)}return n}}}])&&p(t.prototype,n),l&&p(t,l),Object.defineProperty(t,"prototype",{writable:!1}),d}(l.FunctionPlugin);T.implementedFunctions={MMULT:{method:"mmult",arraySizeMethod:"mmultArraySize",parameters:[{argumentType:l.ArgumentTypes.RANGE},{argumentType:l.ArgumentTypes.RANGE}],vectorizationForbidden:!0},TRANSPOSE:{method:"transpose",arraySizeMethod:"transposeArraySize",parameters:[{argumentType:l.ArgumentTypes.RANGE}],vectorizationForbidden:!0},MAXPOOL:{method:"maxpool",arraySizeMethod:"maxpoolArraySize",parameters:[{argumentType:l.ArgumentTypes.RANGE},{argumentType:l.ArgumentTypes.NUMBER},{argumentType:l.ArgumentTypes.NUMBER,optionalArg:!0}],vectorizationForbidden:!0},MEDIANPOOL:{method:"medianpool",arraySizeMethod:"medianpoolArraySize",parameters:[{argumentType:l.ArgumentTypes.RANGE},{argumentType:l.ArgumentTypes.NUMBER},{argumentType:l.ArgumentTypes.NUMBER,optionalArg:!0}],vectorizationForbidden:!0}}},function(e,t,n){"use strict";n.r(t),n.d(t,"MedianPlugin",(function(){return h}));n(73),n(141),n(27),n(0),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(24),o=n(45),i=n(38);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var h=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(f,e);var t,n,i,a=c(f);function f(){return s(this,f),a.apply(this,arguments)}return t=f,(n=[{key:"median",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("MEDIAN"),(function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var a=n.arithmeticHelper.coerceNumbersExactRanges(t);return a instanceof r.CellError?a:0===a.length?new r.CellError(r.ErrorType.NUM,o.ErrorMessage.OneValue):(a.sort((function(e,t){return e-t})),a.length%2==0?(a[a.length/2-1]+a[a.length/2])/2:a[Math.floor(a.length/2)])}))}},{key:"large",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("LARGE"),(function(e,t){var i=n.arithmeticHelper.manyToExactNumbers(e.valuesFromTopLeftCorner());return i instanceof r.CellError?i:(i.sort((function(e,t){return e-t})),(t=Math.trunc(t))>i.length?new r.CellError(r.ErrorType.NUM,o.ErrorMessage.ValueLarge):i[i.length-t])}))}},{key:"small",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("SMALL"),(function(e,t){var i=n.arithmeticHelper.manyToExactNumbers(e.valuesFromTopLeftCorner());return i instanceof r.CellError?i:(i.sort((function(e,t){return e-t})),(t=Math.trunc(t))>i.length?new r.CellError(r.ErrorType.NUM,o.ErrorMessage.ValueLarge):i[t-1])}))}}])&&u(t.prototype,n),i&&u(t,i),Object.defineProperty(t,"prototype",{writable:!1}),f}(i.FunctionPlugin);h.implementedFunctions={MEDIAN:{method:"median",parameters:[{argumentType:i.ArgumentTypes.ANY}],repeatLastArgs:1},LARGE:{method:"large",parameters:[{argumentType:i.ArgumentTypes.RANGE},{argumentType:i.ArgumentTypes.NUMBER,minValue:1}]},SMALL:{method:"small",parameters:[{argumentType:i.ArgumentTypes.RANGE},{argumentType:i.ArgumentTypes.NUMBER,minValue:1}]}}},function(e,t,n){"use strict";n.r(t),n.d(t,"ModuloPlugin",(function(){return d}));n(27),n(0),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(24),o=n(38);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(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 u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(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=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var d=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(c,e);var t,n,o,i=l(c);function c(){return a(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"mod",value:function(e,t){return this.runFunction(e.args,t,this.metadata("MOD"),(function(e,t){return 0===t?new r.CellError(r.ErrorType.DIV_BY_ZERO):e%t}))}}])&&s(t.prototype,n),o&&s(t,o),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.FunctionPlugin);d.implementedFunctions={MOD:{method:"mod",parameters:[{argumentType:o.ArgumentTypes.NUMBER},{argumentType:o.ArgumentTypes.NUMBER}]}}},function(e,t,n){"use strict";n.r(t),n.d(t,"NumericAggregationPlugin",(function(){return R}));n(260),n(52),n(99),n(0),n(13),n(40),n(37),n(22),n(2),n(27),n(7),n(25),n(12),n(8),n(9),n(10),n(3),n(4);var r=n(86),o=n(24),i=n(45),a=n(41),s=n(72),u=n(106),l=n(51),c=n(78),f=n(38);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return p(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 p(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function p(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 y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(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 T(e,t,n){return t&&b(e.prototype,t),n&&b(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/function C(e){return Object(l.isExtendedNumber)(e)&&!Number.isFinite(Object(l.getRawValue)(e))?0:e}var w=function(){function e(t,n,r){E(this,e),this.sumsq=t,this.sum=n,this.count=r}return T(e,[{key:"compose",value:function(t){return new e(this.sumsq+t.sumsq,this.sum+t.sum,this.count+t.count)}},{key:"averageValue",value:function(){return this.count>0?this.sum/this.count:void 0}},{key:"varSValue",value:function(){return this.count>1?(this.sumsq-this.sum*this.sum/this.count)/(this.count-1):void 0}},{key:"varPValue",value:function(){return this.count>0?(this.sumsq-this.sum*this.sum/this.count)/this.count:void 0}}],[{key:"single",value:function(t){return new e(t*t,t,1)}}]),e}();w.empty=new w(0,0,0);var R=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(n,e);var t=m(n);function n(){var e;return E(this,n),(e=t.apply(this,arguments)).addWithEpsilonRaw=function(t,n){return e.arithmeticHelper.addWithEpsilonRaw(t,n)},e}return T(n,[{key:"sum",value:function(e,t){return this.doSum(e.args,t)}},{key:"sumsq",value:function(e,t){return this.reduce(e.args,t,0,"SUMSQ",this.addWithEpsilonRaw,(function(e){return Math.pow(Object(l.getRawValue)(e),2)}),O)}},{key:"max",value:function(e,t){return this.doMax(e.args,t)}},{key:"maxa",value:function(e,t){return C(this.reduce(e.args,t,Number.NEGATIVE_INFINITY,"MAXA",(function(e,t){return Math.max(e,t)}),l.getRawValue,S))}},{key:"min",value:function(e,t){return this.doMin(e.args,t)}},{key:"mina",value:function(e,t){return C(this.reduce(e.args,t,Number.POSITIVE_INFINITY,"MINA",(function(e,t){return Math.min(e,t)}),l.getRawValue,S))}},{key:"count",value:function(e,t){return this.doCount(e.args,t)}},{key:"counta",value:function(e,t){return this.doCounta(e.args,t)}},{key:"average",value:function(e,t){return this.doAverage(e.args,t)}},{key:"averagea",value:function(e,t){var n,r=this.reduce(e.args,t,w.empty,"_AGGREGATE_A",(function(e,t){return e.compose(t)}),(function(e){return w.single(Object(l.getRawValue)(e))}),S);return r instanceof o.CellError?r:null!==(n=r.averageValue())&&void 0!==n?n:new o.CellError(o.ErrorType.DIV_BY_ZERO)}},{key:"vars",value:function(e,t){return this.doVarS(e.args,t)}},{key:"varp",value:function(e,t){return this.doVarP(e.args,t)}},{key:"vara",value:function(e,t){var n,r=this.reduceAggregateA(e.args,t);return r instanceof o.CellError?r:null!==(n=r.varSValue())&&void 0!==n?n:new o.CellError(o.ErrorType.DIV_BY_ZERO)}},{key:"varpa",value:function(e,t){var n,r=this.reduceAggregateA(e.args,t);return r instanceof o.CellError?r:null!==(n=r.varPValue())&&void 0!==n?n:new o.CellError(o.ErrorType.DIV_BY_ZERO)}},{key:"stdevs",value:function(e,t){return this.doStdevS(e.args,t)}},{key:"stdevp",value:function(e,t){return this.doStdevP(e.args,t)}},{key:"stdeva",value:function(e,t){var n=this.reduceAggregateA(e.args,t);if(n instanceof o.CellError)return n;var r=n.varSValue();return void 0===r?new o.CellError(o.ErrorType.DIV_BY_ZERO):Math.sqrt(r)}},{key:"stdevpa",value:function(e,t){var n=this.reduceAggregateA(e.args,t);if(n instanceof o.CellError)return n;var r=n.varPValue();return void 0===r?new o.CellError(o.ErrorType.DIV_BY_ZERO):Math.sqrt(r)}},{key:"product",value:function(e,t){return this.doProduct(e.args,t)}},{key:"subtotal",value:function(e,t){if(e.args.length<2)return new o.CellError(o.ErrorType.NA,i.ErrorMessage.WrongArgNumber);var n=this.coerceToType(this.evaluateAst(e.args[0],t),{argumentType:f.ArgumentTypes.NUMBER},t),r=e.args.slice(1);switch(n){case 1:case 101:return this.doAverage(r,t);case 2:case 102:return this.doCount(r,t);case 3:case 103:return this.doCounta(r,t);case 4:case 104:return this.doMax(r,t);case 5:case 105:return this.doMin(r,t);case 6:case 106:return this.doProduct(r,t);case 7:case 107:return this.doStdevS(r,t);case 8:case 108:return this.doStdevP(r,t);case 9:case 109:return this.doSum(r,t);case 10:case 110:return this.doVarS(r,t);case 11:case 111:return this.doVarP(r,t);default:return new o.CellError(o.ErrorType.VALUE,i.ErrorMessage.BadMode)}}},{key:"reduceAggregate",value:function(e,t){return this.reduce(e,t,w.empty,"_AGGREGATE",(function(e,t){return e.compose(t)}),(function(e){return w.single(Object(l.getRawValue)(e))}),O)}},{key:"reduceAggregateA",value:function(e,t){return this.reduce(e,t,w.empty,"_AGGREGATE_A",(function(e,t){return e.compose(t)}),(function(e){return w.single(Object(l.getRawValue)(e))}),S)}},{key:"doAverage",value:function(e,t){var n,r=this.reduceAggregate(e,t);return r instanceof o.CellError?r:null!==(n=r.averageValue())&&void 0!==n?n:new o.CellError(o.ErrorType.DIV_BY_ZERO)}},{key:"doVarS",value:function(e,t){var n,r=this.reduceAggregate(e,t);return r instanceof o.CellError?r:null!==(n=r.varSValue())&&void 0!==n?n:new o.CellError(o.ErrorType.DIV_BY_ZERO)}},{key:"doVarP",value:function(e,t){var n,r=this.reduceAggregate(e,t);return r instanceof o.CellError?r:null!==(n=r.varPValue())&&void 0!==n?n:new o.CellError(o.ErrorType.DIV_BY_ZERO)}},{key:"doStdevS",value:function(e,t){var n=this.reduceAggregate(e,t);if(n instanceof o.CellError)return n;var r=n.varSValue();return void 0===r?new o.CellError(o.ErrorType.DIV_BY_ZERO):Math.sqrt(r)}},{key:"doStdevP",value:function(e,t){var n=this.reduceAggregate(e,t);if(n instanceof o.CellError)return n;var r=n.varPValue();return void 0===r?new o.CellError(o.ErrorType.DIV_BY_ZERO):Math.sqrt(r)}},{key:"doCount",value:function(e,t){return this.reduce(e,t,0,"COUNT",(function(e,t){return e+t}),l.getRawValue,(function(e){return Object(l.isExtendedNumber)(e)?1:0}))}},{key:"doCounta",value:function(e,t){return this.reduce(e,t,0,"COUNTA",(function(e,t){return e+t}),l.getRawValue,(function(e){return e===l.EmptyValue?0:1}))}},{key:"doMax",value:function(e,t){return C(this.reduce(e,t,Number.NEGATIVE_INFINITY,"MAX",(function(e,t){return Math.max(e,t)}),l.getRawValue,O))}},{key:"doMin",value:function(e,t){return C(this.reduce(e,t,Number.POSITIVE_INFINITY,"MIN",(function(e,t){return Math.min(e,t)}),l.getRawValue,O))}},{key:"doSum",value:function(e,t){return this.reduce(e,t,0,"SUM",this.addWithEpsilonRaw,l.getRawValue,O)}},{key:"doProduct",value:function(e,t){return this.reduce(e,t,1,"PRODUCT",(function(e,t){return e*t}),l.getRawValue,O)}},{key:"reduce",value:function(e,t,n,r,a,u,l){var f=this;return e.length<1?new o.CellError(o.ErrorType.NA,i.ErrorMessage.WrongArgNumber):e.reduce((function(e,i){if(e instanceof o.CellError)return e;if(i.type===s.AstNodeType.CELL_RANGE||i.type===s.AstNodeType.COLUMN_RANGE||i.type===s.AstNodeType.ROW_RANGE){var d=f.evaluateRange(i,t,n,r,a,u,l);return d instanceof o.CellError?d:a(d,e)}var h;if((h=f.evaluateAst(i,t))instanceof c.SimpleRangeValue)return Array.from(h.valuesFromTopLeftCorner()).map(l).filter((function(e){return void 0!==e})).map((function(e){return e instanceof o.CellError?e:u(e)})).reduce((function(e,t){return e instanceof o.CellError?e:t instanceof o.CellError?t:a(e,t)}),e);if(i.type===s.AstNodeType.CELL_REFERENCE){if(void 0===(h=l(h)))return e}else if(h=f.coerceScalarToNumberOrError(h),void 0===(h=l(h)))return e;return h instanceof o.CellError?h:a(e,u(h))}),n)}},{key:"evaluateRange",value:function(e,t,n,s,u,l,c){var f;try{f=r.AbsoluteCellRange.fromAst(e,t.formulaAddress)}catch(e){if(e instanceof a.SheetsNotEqual)return new o.CellError(o.ErrorType.REF,i.ErrorMessage.RangeManySheets);throw e}var d=f.start,h=f.end,p=this.dependencyGraph.getRange(d,h);if(void 0===p)throw new Error("Range does not exists in graph");var y=p.getFunctionValue(s);void 0===y&&(y=this.getRangeValues(s,f,l,c).reduce((function(e,t){return e instanceof o.CellError?e:t instanceof o.CellError?t:u(e,t)}),n),p.setFunctionValue(s,y));return y}},{key:"getRangeValues",value:function(e,t,n,r){var i,a=[],s=this.dependencyGraph.rangeMapping.findSmallerRange(t),u=s.smallerRangeVertex,l=s.restRange,c=this.dependencyGraph.getRange(t.start,t.end);if(void 0!==u&&this.dependencyGraph.existsEdge(u,c)){var f=u.getFunctionValue(e);if(void 0!==f)a.push(f);else{var d,p=h(u.range.addresses(this.dependencyGraph));try{for(p.s();!(d=p.n()).done;){var y=d.value,m=r(this.dependencyGraph.getScalarValue(y));m instanceof o.CellError?a.push(m):void 0!==m&&a.push(n(m))}}catch(e){p.e(e)}finally{p.f()}}i=l}else i=t;var g,v=h(i.addresses(this.dependencyGraph));try{for(v.s();!(g=v.n()).done;){var E=g.value,b=r(this.dependencyGraph.getScalarValue(E));b instanceof o.CellError?a.push(b):void 0!==b&&a.push(n(b))}}catch(e){v.e(e)}finally{v.f()}return a}}]),n}(f.FunctionPlugin);function O(e){return Object(l.isExtendedNumber)(e)||e instanceof o.CellError?e:void 0}function S(e){return"boolean"==typeof e?Object(u.coerceBooleanToNumber)(e):Object(l.isExtendedNumber)(e)||e instanceof o.CellError?e:"string"==typeof e?0:void 0}R.implementedFunctions={SUM:{method:"sum",parameters:[{argumentType:f.ArgumentTypes.ANY}],repeatLastArgs:1},SUMSQ:{method:"sumsq",parameters:[{argumentType:f.ArgumentTypes.ANY}],repeatLastArgs:1},MAX:{method:"max",parameters:[{argumentType:f.ArgumentTypes.ANY}],repeatLastArgs:1},MIN:{method:"min",parameters:[{argumentType:f.ArgumentTypes.ANY}],repeatLastArgs:1},MAXA:{method:"maxa",parameters:[{argumentType:f.ArgumentTypes.ANY}],repeatLastArgs:1},MINA:{method:"mina",parameters:[{argumentType:f.ArgumentTypes.ANY}],repeatLastArgs:1},COUNT:{method:"count",parameters:[{argumentType:f.ArgumentTypes.ANY}],repeatLastArgs:1},COUNTA:{method:"counta",parameters:[{argumentType:f.ArgumentTypes.ANY}],repeatLastArgs:1},AVERAGE:{method:"average",parameters:[{argumentType:f.ArgumentTypes.ANY}],repeatLastArgs:1},AVERAGEA:{method:"averagea",parameters:[{argumentType:f.ArgumentTypes.ANY}],repeatLastArgs:1},PRODUCT:{method:"product",parameters:[{argumentType:f.ArgumentTypes.ANY}],repeatLastArgs:1},"VAR.S":{method:"vars",parameters:[{argumentType:f.ArgumentTypes.ANY}],repeatLastArgs:1},"VAR.P":{method:"varp",parameters:[{argumentType:f.ArgumentTypes.ANY}],repeatLastArgs:1},VARA:{method:"vara",parameters:[{argumentType:f.ArgumentTypes.ANY}],repeatLastArgs:1},VARPA:{method:"varpa",parameters:[{argumentType:f.ArgumentTypes.ANY}],repeatLastArgs:1},"STDEV.S":{method:"stdevs",parameters:[{argumentType:f.ArgumentTypes.ANY}],repeatLastArgs:1},"STDEV.P":{method:"stdevp",parameters:[{argumentType:f.ArgumentTypes.ANY}],repeatLastArgs:1},STDEVA:{method:"stdeva",parameters:[{argumentType:f.ArgumentTypes.ANY}],repeatLastArgs:1},STDEVPA:{method:"stdevpa",parameters:[{argumentType:f.ArgumentTypes.ANY}],repeatLastArgs:1},SUBTOTAL:{method:"subtotal",parameters:[{argumentType:f.ArgumentTypes.NUMBER},{argumentType:f.ArgumentTypes.ANY}],repeatLastArgs:1}},R.aliases={VAR:"VAR.S",VARP:"VAR.P",STDEV:"STDEV.S",STDEVP:"STDEV.P",VARS:"VAR.S",STDEVS:"STDEV.S"}},function(e,t,n){"use strict";n.r(t),n.d(t,"PowerPlugin",(function(){return f}));n(27),n(0),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(38);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)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var f=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(l,e);var t,n,r,o=u(l);function l(){return i(this,l),o.apply(this,arguments)}return t=l,(n=[{key:"power",value:function(e,t){return this.runFunction(e.args,t,this.metadata("POWER"),Math.pow)}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(r.FunctionPlugin);f.implementedFunctions={POWER:{method:"power",parameters:[{argumentType:r.ArgumentTypes.NUMBER},{argumentType:r.ArgumentTypes.NUMBER}]}}},function(e,t,n){"use strict";n.r(t),n.d(t,"RadiansPlugin",(function(){return f}));n(27),n(0),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(38);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)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var f=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(l,e);var t,n,r,o=u(l);function l(){return i(this,l),o.apply(this,arguments)}return t=l,(n=[{key:"radians",value:function(e,t){return this.runFunction(e.args,t,this.metadata("RADIANS"),(function(e){return e*(Math.PI/180)}))}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(r.FunctionPlugin);f.implementedFunctions={RADIANS:{method:"radians",parameters:[{argumentType:r.ArgumentTypes.NUMBER}]}}},function(e,t,n){"use strict";n.r(t),n.d(t,"RadixConversionPlugin",(function(){return p}));n(94),n(12),n(66),n(0),n(27),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(24),o=n(45),i=n(285),a=n(38);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(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 c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var p=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(s,e);var t,n,i,a=f(s);function s(){return u(this,s),a.apply(this,arguments)}return t=s,(n=[{key:"dec2bin",value:function(e,t){return this.runFunction(e.args,t,this.metadata("DEC2BIN"),(function(e,t){return m(e,2,t)}))}},{key:"dec2oct",value:function(e,t){return this.runFunction(e.args,t,this.metadata("DEC2OCT"),(function(e,t){return m(e,8,t)}))}},{key:"dec2hex",value:function(e,t){return this.runFunction(e.args,t,this.metadata("DEC2HEX"),(function(e,t){return m(e,16,t)}))}},{key:"bin2dec",value:function(e,t){return this.runFunction(e.args,t,this.metadata("BIN2DEC"),(function(e){var t=y(e,2,10);return void 0===t?new r.CellError(r.ErrorType.NUM,o.ErrorMessage.NotBinary):b(t,2)}))}},{key:"bin2oct",value:function(e,t){return this.runFunction(e.args,t,this.metadata("BIN2OCT"),(function(e,t){var n=y(e,2,10);return void 0===n?new r.CellError(r.ErrorType.NUM,o.ErrorMessage.NotBinary):m(b(n,2),8,t)}))}},{key:"bin2hex",value:function(e,t){return this.runFunction(e.args,t,this.metadata("BIN2HEX"),(function(e,t){var n=y(e,2,10);return void 0===n?new r.CellError(r.ErrorType.NUM,o.ErrorMessage.NotBinary):m(b(n,2),16,t)}))}},{key:"oct2dec",value:function(e,t){return this.runFunction(e.args,t,this.metadata("OCT2DEC"),(function(e){var t=y(e,8,10);return void 0===t?new r.CellError(r.ErrorType.NUM,o.ErrorMessage.NotOctal):b(t,8)}))}},{key:"oct2bin",value:function(e,t){return this.runFunction(e.args,t,this.metadata("OCT2BIN"),(function(e,t){var n=y(e,8,10);return void 0===n?new r.CellError(r.ErrorType.NUM,o.ErrorMessage.NotOctal):m(b(n,8),2,t)}))}},{key:"oct2hex",value:function(e,t){return this.runFunction(e.args,t,this.metadata("OCT2HEX"),(function(e,t){var n=y(e,8,10);return void 0===n?new r.CellError(r.ErrorType.NUM,o.ErrorMessage.NotOctal):m(b(n,8),16,t)}))}},{key:"hex2dec",value:function(e,t){return this.runFunction(e.args,t,this.metadata("HEX2DEC"),(function(e){var t=y(e,16,10);return void 0===t?new r.CellError(r.ErrorType.NUM,o.ErrorMessage.NotHex):b(t,16)}))}},{key:"hex2bin",value:function(e,t){return this.runFunction(e.args,t,this.metadata("HEX2BIN"),(function(e,t){var n=y(e,16,10);return void 0===n?new r.CellError(r.ErrorType.NUM,o.ErrorMessage.NotHex):m(b(n,16),2,t)}))}},{key:"hex2oct",value:function(e,t){return this.runFunction(e.args,t,this.metadata("HEX2OCT"),(function(e,t){var n=y(e,16,10);return void 0===n?new r.CellError(r.ErrorType.NUM,o.ErrorMessage.NotHex):m(b(n,16),8,t)}))}},{key:"base",value:function(e,t){return this.runFunction(e.args,t,this.metadata("BASE"),v)}},{key:"decimal",value:function(e,t){return this.runFunction(e.args,t,this.metadata("DECIMAL"),(function(e,t){var n=y(e,t,255);return void 0===n?new r.CellError(r.ErrorType.NUM,o.ErrorMessage.NotHex):parseInt(n,t)}))}}])&&l(t.prototype,n),i&&l(t,i),Object.defineProperty(t,"prototype",{writable:!1}),s}(a.FunctionPlugin);function y(e,t,n){var r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".substr(0,t),o=new RegExp("^[".concat(r,"]+$"));if(!(e.length>n)&&o.test(e))return e}function m(e,t,n){if(e>function(e){return-g(e)-1}(t))return new r.CellError(r.ErrorType.NUM,o.ErrorMessage.ValueBaseLarge);if(e<g(t))return new r.CellError(r.ErrorType.NUM,o.ErrorMessage.ValueBaseSmall);var a=E(e,t);return void 0===n||e<0?a:a.length>n?new r.CellError(r.ErrorType.NUM,o.ErrorMessage.ValueBaseLong):Object(i.padLeft)(a,n)}function g(e){return-Math.pow(e,10)/2}function v(e,t,n){var r=E(e,t);return void 0!==n&&n>r.length?Object(i.padLeft)(r,n):r}function E(e,t){return(e+(e<0?Math.pow(t,10):0)).toString(t).toUpperCase()}function b(e,t){var n=parseInt(e,t),r=Math.pow(t,10);return n>=r/2?n-r:n}p.implementedFunctions={DEC2BIN:{method:"dec2bin",parameters:[{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER,optionalArg:!0,minValue:1,maxValue:10}]},DEC2OCT:{method:"dec2oct",parameters:[{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER,optionalArg:!0,minValue:1,maxValue:10}]},DEC2HEX:{method:"dec2hex",parameters:[{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER,optionalArg:!0,minValue:1,maxValue:10}]},BIN2DEC:{method:"bin2dec",parameters:[{argumentType:a.ArgumentTypes.STRING}]},BIN2OCT:{method:"bin2oct",parameters:[{argumentType:a.ArgumentTypes.STRING},{argumentType:a.ArgumentTypes.NUMBER,optionalArg:!0,minValue:0,maxValue:10}]},BIN2HEX:{method:"bin2hex",parameters:[{argumentType:a.ArgumentTypes.STRING},{argumentType:a.ArgumentTypes.NUMBER,optionalArg:!0,minValue:0,maxValue:10}]},OCT2DEC:{method:"oct2dec",parameters:[{argumentType:a.ArgumentTypes.STRING}]},OCT2BIN:{method:"oct2bin",parameters:[{argumentType:a.ArgumentTypes.STRING},{argumentType:a.ArgumentTypes.NUMBER,optionalArg:!0,minValue:0,maxValue:10}]},OCT2HEX:{method:"oct2hex",parameters:[{argumentType:a.ArgumentTypes.STRING},{argumentType:a.ArgumentTypes.NUMBER,optionalArg:!0,minValue:0,maxValue:10}]},HEX2DEC:{method:"hex2dec",parameters:[{argumentType:a.ArgumentTypes.STRING}]},HEX2BIN:{method:"hex2bin",parameters:[{argumentType:a.ArgumentTypes.STRING},{argumentType:a.ArgumentTypes.NUMBER,optionalArg:!0,minValue:0,maxValue:10}]},HEX2OCT:{method:"hex2oct",parameters:[{argumentType:a.ArgumentTypes.STRING},{argumentType:a.ArgumentTypes.NUMBER,optionalArg:!0,minValue:0,maxValue:10}]},DECIMAL:{method:"decimal",parameters:[{argumentType:a.ArgumentTypes.STRING},{argumentType:a.ArgumentTypes.NUMBER,minValue:2,maxValue:36}]},BASE:{method:"base",parameters:[{argumentType:a.ArgumentTypes.NUMBER,minValue:0},{argumentType:a.ArgumentTypes.NUMBER,minValue:2,maxValue:36},{argumentType:a.ArgumentTypes.NUMBER,optionalArg:!0,minValue:0,maxValue:255}]}}},function(e,t,n){"use strict";n.r(t),n.d(t,"RandomPlugin",(function(){return h}));n(27),n(0),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(24),o=n(45),i=n(38);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var h=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(f,e);var t,n,i,a=c(f);function f(){return s(this,f),a.apply(this,arguments)}return t=f,(n=[{key:"rand",value:function(e,t){return this.runFunction(e.args,t,this.metadata("RAND"),Math.random)}},{key:"randbetween",value:function(e,t){return this.runFunction(e.args,t,this.metadata("RANDBETWEEN"),(function(e,t){return t<e?new r.CellError(r.ErrorType.NUM,o.ErrorMessage.WrongOrder):((e=Math.ceil(e))===(t=Math.floor(t)+1)&&(t+=1),e+Math.floor(Math.random()*(t-e)))}))}}])&&u(t.prototype,n),i&&u(t,i),Object.defineProperty(t,"prototype",{writable:!1}),f}(i.FunctionPlugin);h.implementedFunctions={RAND:{method:"rand",parameters:[],isVolatile:!0},RANDBETWEEN:{method:"randbetween",parameters:[{argumentType:i.ArgumentTypes.NUMBER},{argumentType:i.ArgumentTypes.NUMBER}],isVolatile:!0}}},function(e,t,n){"use strict";n.r(t),n.d(t,"findNextOddNumber",(function(){return h})),n.d(t,"findNextEvenNumber",(function(){return p})),n.d(t,"RoundingPlugin",(function(){return y}));n(27),n(0),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(24),o=n(45),i=n(38);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/function h(e){var t=Math.ceil(e);return t%2==1?t:t+1}function p(e){var t=Math.ceil(e);return t%2==0?t:t+1}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(f,e);var t,n,i,a=c(f);function f(){return s(this,f),a.apply(this,arguments)}return t=f,(n=[{key:"roundup",value:function(e,t){return this.runFunction(e.args,t,this.metadata("ROUNDDOWN"),(function(e,t){var n=Math.pow(10,t);return e<0?-Math.ceil(-e*n)/n:Math.ceil(e*n)/n}))}},{key:"rounddown",value:function(e,t){return this.runFunction(e.args,t,this.metadata("ROUNDDOWN"),(function(e,t){var n=Math.pow(10,t);return e<0?-Math.floor(-e*n)/n:Math.floor(e*n)/n}))}},{key:"round",value:function(e,t){return this.runFunction(e.args,t,this.metadata("ROUND"),(function(e,t){var n=Math.pow(10,t);return e<0?-Math.round(-e*n)/n:Math.round(e*n)/n}))}},{key:"intFunc",value:function(e,t){return this.runFunction(e.args,t,this.metadata("INT"),(function(e){return e<0?-Math.floor(-e):Math.floor(e)}))}},{key:"even",value:function(e,t){return this.runFunction(e.args,t,this.metadata("EVEN"),(function(e){return e<0?-p(-e):p(e)}))}},{key:"odd",value:function(e,t){return this.runFunction(e.args,t,this.metadata("ODD"),(function(e){return e<0?-h(-e):h(e)}))}},{key:"ceilingmath",value:function(e,t){return this.runFunction(e.args,t,this.metadata("CEILING.MATH"),(function(e,t,n){return 0===t||0===e?0:(t=Math.abs(t),1===n&&e<0&&(t=-t),Math.ceil(e/t)*t)}))}},{key:"ceiling",value:function(e,t){return this.runFunction(e.args,t,this.metadata("CEILING"),(function(e,t){return 0===e?0:0===t?new r.CellError(r.ErrorType.DIV_BY_ZERO):e>0&&t<0?new r.CellError(r.ErrorType.NUM,o.ErrorMessage.DistinctSigns):Math.ceil(e/t)*t}))}},{key:"ceilingprecise",value:function(e,t){return this.runFunction(e.args,t,this.metadata("CEILING.PRECISE"),(function(e,t){return 0===t||0===e?0:(t=Math.abs(t),Math.ceil(e/t)*t)}))}},{key:"floormath",value:function(e,t){return this.runFunction(e.args,t,this.metadata("FLOOR.MATH"),(function(e,t,n){return 0===t||0===e?0:(t=Math.abs(t),1===n&&e<0&&(t*=-1),Math.floor(e/t)*t)}))}},{key:"floor",value:function(e,t){return this.runFunction(e.args,t,this.metadata("FLOOR"),(function(e,t){return 0===e?0:0===t?new r.CellError(r.ErrorType.DIV_BY_ZERO):e>0&&t<0?new r.CellError(r.ErrorType.NUM,o.ErrorMessage.DistinctSigns):Math.floor(e/t)*t}))}},{key:"floorprecise",value:function(e,t){return this.runFunction(e.args,t,this.metadata("FLOOR.PRECISE"),(function(e,t){return 0===t||0===e?0:(t=Math.abs(t),Math.floor(e/t)*t)}))}}])&&u(t.prototype,n),i&&u(t,i),Object.defineProperty(t,"prototype",{writable:!1}),f}(i.FunctionPlugin);y.implementedFunctions={ROUNDUP:{method:"roundup",parameters:[{argumentType:i.ArgumentTypes.NUMBER},{argumentType:i.ArgumentTypes.NUMBER,defaultValue:0}]},ROUNDDOWN:{method:"rounddown",parameters:[{argumentType:i.ArgumentTypes.NUMBER},{argumentType:i.ArgumentTypes.NUMBER,defaultValue:0}]},ROUND:{method:"round",parameters:[{argumentType:i.ArgumentTypes.NUMBER},{argumentType:i.ArgumentTypes.NUMBER,defaultValue:0}]},INT:{method:"intFunc",parameters:[{argumentType:i.ArgumentTypes.NUMBER}]},EVEN:{method:"even",parameters:[{argumentType:i.ArgumentTypes.NUMBER}]},ODD:{method:"odd",parameters:[{argumentType:i.ArgumentTypes.NUMBER}]},"CEILING.MATH":{method:"ceilingmath",parameters:[{argumentType:i.ArgumentTypes.NUMBER},{argumentType:i.ArgumentTypes.NUMBER,defaultValue:1},{argumentType:i.ArgumentTypes.NUMBER,defaultValue:0}]},CEILING:{method:"ceiling",parameters:[{argumentType:i.ArgumentTypes.NUMBER},{argumentType:i.ArgumentTypes.NUMBER}]},"CEILING.PRECISE":{method:"ceilingprecise",parameters:[{argumentType:i.ArgumentTypes.NUMBER},{argumentType:i.ArgumentTypes.NUMBER,defaultValue:1}]},"FLOOR.MATH":{method:"floormath",parameters:[{argumentType:i.ArgumentTypes.NUMBER},{argumentType:i.ArgumentTypes.NUMBER,defaultValue:1},{argumentType:i.ArgumentTypes.NUMBER,defaultValue:0}]},FLOOR:{method:"floor",parameters:[{argumentType:i.ArgumentTypes.NUMBER},{argumentType:i.ArgumentTypes.NUMBER}]},"FLOOR.PRECISE":{method:"floorprecise",parameters:[{argumentType:i.ArgumentTypes.NUMBER},{argumentType:i.ArgumentTypes.NUMBER,defaultValue:1}]}},y.aliases={"ISO.CEILING":"CEILING.PRECISE",TRUNC:"ROUNDDOWN"}},function(e,t,n){"use strict";n.r(t),n.d(t,"SqrtPlugin",(function(){return f}));n(27),n(0),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(38);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)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var f=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(l,e);var t,n,r,o=u(l);function l(){return i(this,l),o.apply(this,arguments)}return t=l,(n=[{key:"sqrt",value:function(e,t){return this.runFunction(e.args,t,this.metadata("SQRT"),Math.sqrt)}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(r.FunctionPlugin);f.implementedFunctions={SQRT:{method:"sqrt",parameters:[{argumentType:r.ArgumentTypes.NUMBER}]}}},function(e,t,n){"use strict";n.r(t),n.d(t,"SumifPlugin",(function(){return C}));n(37),n(18),n(75),n(8),n(9),n(0),n(10),n(3),n(2),n(4),n(22),n(13),n(25),n(12),n(27),n(7);var r=n(24),o=n(45),i=n(730),a=n(51),s=n(38);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return p(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 p(e,t)}(e)||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.")}()}function p(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 y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(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 g(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var v=function(){function e(t,n){y(this,e),this.sum=t,this.count=n}return g(e,[{key:"compose",value:function(t){return new e(this.sum+t.sum,this.count+t.count)}},{key:"averageValue",value:function(){return this.count>0?this.sum/this.count:void 0}}],[{key:"single",value:function(t){return new e(t,1)}}]),e}();function E(e){var t=e.map((function(e){return"".concat(e.conditionRange.range.sheet,",").concat(e.conditionRange.range.start.col,",").concat(e.conditionRange.range.start.row)}));return["SUMIF"].concat(h(t)).join(",")}function b(e){var t=e.map((function(e){return"".concat(e.conditionRange.range.sheet,",").concat(e.conditionRange.range.start.col,",").concat(e.conditionRange.range.start.row)}));return["AVERAGEIF"].concat(h(t)).join(",")}function T(e){var t=e.map((function(e){return"".concat(e.conditionRange.range.sheet,",").concat(e.conditionRange.range.start.col,",").concat(e.conditionRange.range.start.row)}));return["COUNTIFS"].concat(h(t)).join(",")}v.empty=new v(0,0);var C=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(n,e);var t=c(n);function n(){return y(this,n),t.apply(this,arguments)}return g(n,[{key:"sumif",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("SUMIF"),(function(e,t,s){var u=n.interpreter.criterionBuilder.fromCellValue(t,n.arithmeticHelper);return void 0===u?new r.CellError(r.ErrorType.VALUE,o.ErrorMessage.BadCriterion):(s=null!=s?s:e,new i.CriterionFunctionCompute(n.interpreter,E,0,(function(e,t){return n.arithmeticHelper.nonstrictadd(e,t)}),(function(e){return Object(a.getRawValue)(e)})).compute(s,[new i.Condition(e,u)]))}))}},{key:"sumifs",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("SUMIFS"),(function(e){for(var t=[],s=0;s<(arguments.length<=1?0:arguments.length-1);s+=2){var u=s+1<1||arguments.length<=s+1?void 0:arguments[s+1],l=n.interpreter.criterionBuilder.fromCellValue(s+1+1<1||arguments.length<=s+1+1?void 0:arguments[s+1+1],n.arithmeticHelper);if(void 0===l)return new r.CellError(r.ErrorType.VALUE,o.ErrorMessage.BadCriterion);t.push(new i.Condition(u,l))}return new i.CriterionFunctionCompute(n.interpreter,E,0,(function(e,t){return n.arithmeticHelper.nonstrictadd(e,t)}),(function(e){return Object(a.getRawValue)(e)})).compute(e,t)}))}},{key:"averageif",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("AVERAGEIF"),(function(e,t,s){var u=n.interpreter.criterionBuilder.fromCellValue(t,n.arithmeticHelper);if(void 0===u)return new r.CellError(r.ErrorType.VALUE,o.ErrorMessage.BadCriterion);s=null!=s?s:e;var l=new i.CriterionFunctionCompute(n.interpreter,b,v.empty,(function(e,t){return e.compose(t)}),(function(e){return Object(a.isExtendedNumber)(e)?v.single(Object(a.getRawValue)(e)):v.empty})).compute(s,[new i.Condition(e,u)]);return l instanceof r.CellError?l:l.averageValue()||new r.CellError(r.ErrorType.DIV_BY_ZERO)}))}},{key:"countif",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("COUNTIF"),(function(e,t){var a=n.interpreter.criterionBuilder.fromCellValue(t,n.arithmeticHelper);return void 0===a?new r.CellError(r.ErrorType.VALUE,o.ErrorMessage.BadCriterion):new i.CriterionFunctionCompute(n.interpreter,(function(){return"COUNTIF"}),0,(function(e,t){return e+t}),(function(){return 1})).compute(e,[new i.Condition(e,a)])}))}},{key:"countifs",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("COUNTIFS"),(function(){for(var e=[],t=0;t<arguments.length;t+=2){var a=t<0||arguments.length<=t?void 0:arguments[t],s=n.interpreter.criterionBuilder.fromCellValue(t+1<0||arguments.length<=t+1?void 0:arguments[t+1],n.arithmeticHelper);if(void 0===s)return new r.CellError(r.ErrorType.VALUE,o.ErrorMessage.BadCriterion);e.push(new i.Condition(a,s))}return new i.CriterionFunctionCompute(n.interpreter,T,0,(function(e,t){return e+t}),(function(){return 1})).compute(e[0].conditionRange,e)}))}}]),n}(s.FunctionPlugin);C.implementedFunctions={SUMIF:{method:"sumif",parameters:[{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.NOERROR},{argumentType:s.ArgumentTypes.RANGE,optionalArg:!0}]},COUNTIF:{method:"countif",parameters:[{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.NOERROR}]},AVERAGEIF:{method:"averageif",parameters:[{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.NOERROR},{argumentType:s.ArgumentTypes.RANGE,optionalArg:!0}]},SUMIFS:{method:"sumifs",parameters:[{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.NOERROR}],repeatLastArgs:2},COUNTIFS:{method:"countifs",parameters:[{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.NOERROR}],repeatLastArgs:2}}},function(e,t,n){"use strict";n.r(t),n.d(t,"SumprodPlugin",(function(){return m}));n(37),n(27),n(0),n(7),n(13),n(25),n(22),n(2),n(12),n(8),n(9),n(10),n(3),n(4);var r=n(24),o=n(45),i=n(51),a=n(38);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(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 l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function l(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 c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var m=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(l,e);var t,n,a,s=h(l);function l(){return c(this,l),s.apply(this,arguments)}return t=l,(n=[{key:"sumproduct",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("SUMPRODUCT"),(function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];for(var s=t[0].width(),l=t[0].height(),c=0,f=t;c<f.length;c++){var d=f[c];if(d.width()!==s||d.height()!==l)return new r.CellError(r.ErrorType.VALUE,o.ErrorMessage.EqualLength)}for(var h=0,p=t.map((function(e){return e.iterateValuesFromTopLeftCorner()})),y=0;y<s*l;y++){var m,g=1,v=u(p);try{for(v.s();!(m=v.n()).done;){var E=m.value,b=E.next().value;if(b instanceof r.CellError)return b;var T=n.coerceScalarToNumberOrError(b);Object(i.isExtendedNumber)(T)?g*=Object(i.getRawValue)(T):g=0}}catch(e){v.e(e)}finally{v.f()}h+=g}return h}))}}])&&f(t.prototype,n),a&&f(t,a),Object.defineProperty(t,"prototype",{writable:!1}),l}(a.FunctionPlugin);m.implementedFunctions={SUMPRODUCT:{method:"sumproduct",parameters:[{argumentType:a.ArgumentTypes.RANGE}],repeatLastArgs:1}}},function(e,t,n){"use strict";n.r(t),n.d(t,"TextPlugin",(function(){return h}));n(18),n(12),n(61),n(63),n(417),n(13),n(94),n(66),n(27),n(0),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(24),o=n(45),i=n(38);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var h=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(f,e);var t,n,i,a=c(f);function f(){return s(this,f),a.apply(this,arguments)}return t=f,(n=[{key:"concatenate",value:function(e,t){return this.runFunction(e.args,t,this.metadata("CONCATENATE"),(function(){var e;return(e="").concat.apply(e,arguments)}))}},{key:"split",value:function(e,t){return this.runFunction(e.args,t,this.metadata("SPLIT"),(function(e,t){var n=e.split(" ");return t>=n.length||t<0?new r.CellError(r.ErrorType.VALUE,o.ErrorMessage.IndexBounds):n[t]}))}},{key:"len",value:function(e,t){return this.runFunction(e.args,t,this.metadata("LEN"),(function(e){return e.length}))}},{key:"lower",value:function(e,t){return this.runFunction(e.args,t,this.metadata("LOWER"),(function(e){return e.toLowerCase()}))}},{key:"trim",value:function(e,t){return this.runFunction(e.args,t,this.metadata("TRIM"),(function(e){return e.replace(/^ +| +$/g,"").replace(/ +/g," ")}))}},{key:"proper",value:function(e,t){return this.runFunction(e.args,t,this.metadata("PROPER"),(function(e){return e.replace(/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])+/g,(function(e){return e.charAt(0).toUpperCase()+e.substring(1).toLowerCase()}))}))}},{key:"clean",value:function(e,t){return this.runFunction(e.args,t,this.metadata("CLEAN"),(function(e){return e.replace(/[\u0000-\u001F]/g,"")}))}},{key:"exact",value:function(e,t){return this.runFunction(e.args,t,this.metadata("EXACT"),(function(e,t){return e===t}))}},{key:"rept",value:function(e,t){return this.runFunction(e.args,t,this.metadata("REPT"),(function(e,t){return t<0?new r.CellError(r.ErrorType.VALUE,o.ErrorMessage.NegativeCount):e.repeat(t)}))}},{key:"right",value:function(e,t){return this.runFunction(e.args,t,this.metadata("RIGHT"),(function(e,t){return t<0?new r.CellError(r.ErrorType.VALUE,o.ErrorMessage.NegativeLength):0===t?"":e.slice(-t)}))}},{key:"left",value:function(e,t){return this.runFunction(e.args,t,this.metadata("LEFT"),(function(e,t){return t<0?new r.CellError(r.ErrorType.VALUE,o.ErrorMessage.NegativeLength):e.slice(0,t)}))}},{key:"mid",value:function(e,t){return this.runFunction(e.args,t,this.metadata("MID"),(function(e,t,n){return t<1?new r.CellError(r.ErrorType.VALUE,o.ErrorMessage.LessThanOne):n<0?new r.CellError(r.ErrorType.VALUE,o.ErrorMessage.NegativeLength):e.substring(t-1,t+n-1)}))}},{key:"replace",value:function(e,t){return this.runFunction(e.args,t,this.metadata("REPLACE"),(function(e,t,n,i){return t<1?new r.CellError(r.ErrorType.VALUE,o.ErrorMessage.LessThanOne):n<0?new r.CellError(r.ErrorType.VALUE,o.ErrorMessage.NegativeLength):e.substring(0,t-1)+i+e.substring(t+n-1)}))}},{key:"search",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("SEARCH"),(function(e,t,i){if(i<1||i>t.length)return new r.CellError(r.ErrorType.VALUE,o.ErrorMessage.LengthBounds);var a,s=t.substring(i-1).toLowerCase();return a=n.arithmeticHelper.requiresRegex(e)?n.arithmeticHelper.searchString(e,s):s.indexOf(e.toLowerCase()),(a+=i)>0?a:new r.CellError(r.ErrorType.VALUE,o.ErrorMessage.PatternNotFound)}))}},{key:"substitute",value:function(e,t){return this.runFunction(e.args,t,this.metadata("SUBSTITUTE"),(function(e,t,n,i){var a,s=new RegExp(t,"g");if(void 0===i)return e.replace(s,n);if(i<1)return new r.CellError(r.ErrorType.VALUE,o.ErrorMessage.LessThanOne);for(var u=0;null!==(a=s.exec(e));)if(i===++u)return e.substring(0,a.index)+n+e.substring(s.lastIndex);return e}))}},{key:"find",value:function(e,t){return this.runFunction(e.args,t,this.metadata("FIND"),(function(e,t,n){if(n<1||n>t.length)return new r.CellError(r.ErrorType.VALUE,o.ErrorMessage.IndexBounds);var i=t.substring(n-1).indexOf(e)+n;return i>0?i:new r.CellError(r.ErrorType.VALUE,o.ErrorMessage.PatternNotFound)}))}},{key:"t",value:function(e,t){return this.runFunction(e.args,t,this.metadata("T"),(function(e){return e instanceof r.CellError||"string"==typeof e?e:""}))}},{key:"upper",value:function(e,t){return this.runFunction(e.args,t,this.metadata("UPPER"),(function(e){return e.toUpperCase()}))}}])&&u(t.prototype,n),i&&u(t,i),Object.defineProperty(t,"prototype",{writable:!1}),f}(i.FunctionPlugin);h.implementedFunctions={CONCATENATE:{method:"concatenate",parameters:[{argumentType:i.ArgumentTypes.STRING}],repeatLastArgs:1,expandRanges:!0},EXACT:{method:"exact",parameters:[{argumentType:i.ArgumentTypes.STRING},{argumentType:i.ArgumentTypes.STRING}]},SPLIT:{method:"split",parameters:[{argumentType:i.ArgumentTypes.STRING},{argumentType:i.ArgumentTypes.NUMBER}]},LEN:{method:"len",parameters:[{argumentType:i.ArgumentTypes.STRING}]},LOWER:{method:"lower",parameters:[{argumentType:i.ArgumentTypes.STRING}]},MID:{method:"mid",parameters:[{argumentType:i.ArgumentTypes.STRING},{argumentType:i.ArgumentTypes.NUMBER},{argumentType:i.ArgumentTypes.NUMBER}]},TRIM:{method:"trim",parameters:[{argumentType:i.ArgumentTypes.STRING}]},T:{method:"t",parameters:[{argumentType:i.ArgumentTypes.SCALAR}]},PROPER:{method:"proper",parameters:[{argumentType:i.ArgumentTypes.STRING}]},CLEAN:{method:"clean",parameters:[{argumentType:i.ArgumentTypes.STRING}]},REPT:{method:"rept",parameters:[{argumentType:i.ArgumentTypes.STRING},{argumentType:i.ArgumentTypes.NUMBER}]},RIGHT:{method:"right",parameters:[{argumentType:i.ArgumentTypes.STRING},{argumentType:i.ArgumentTypes.NUMBER,defaultValue:1}]},LEFT:{method:"left",parameters:[{argumentType:i.ArgumentTypes.STRING},{argumentType:i.ArgumentTypes.NUMBER,defaultValue:1}]},REPLACE:{method:"replace",parameters:[{argumentType:i.ArgumentTypes.STRING},{argumentType:i.ArgumentTypes.NUMBER},{argumentType:i.ArgumentTypes.NUMBER},{argumentType:i.ArgumentTypes.STRING}]},SEARCH:{method:"search",parameters:[{argumentType:i.ArgumentTypes.STRING},{argumentType:i.ArgumentTypes.STRING},{argumentType:i.ArgumentTypes.NUMBER,defaultValue:1}]},SUBSTITUTE:{method:"substitute",parameters:[{argumentType:i.ArgumentTypes.STRING},{argumentType:i.ArgumentTypes.STRING},{argumentType:i.ArgumentTypes.STRING},{argumentType:i.ArgumentTypes.NUMBER,optionalArg:!0}]},FIND:{method:"find",parameters:[{argumentType:i.ArgumentTypes.STRING},{argumentType:i.ArgumentTypes.STRING},{argumentType:i.ArgumentTypes.NUMBER,defaultValue:1}]},UPPER:{method:"upper",parameters:[{argumentType:i.ArgumentTypes.STRING}]}}},function(e,t,n){n(28)({target:"String",proto:!0},{repeat:n(287)})},function(e,t,n){"use strict";n.r(t),n.d(t,"TrigonometryPlugin",(function(){return p}));n(419),n(732),n(420),n(733),n(735),n(736),n(27),n(0),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(24),o=n(45),i=n(38),a=n(293);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(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 c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var p=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(d,e);var t,n,i,s=f(d);function d(){return u(this,d),s.apply(this,arguments)}return t=d,(n=[{key:"acos",value:function(e,t){return this.runFunction(e.args,t,this.metadata("ACOS"),Math.acos)}},{key:"asin",value:function(e,t){return this.runFunction(e.args,t,this.metadata("ASIN"),Math.asin)}},{key:"cos",value:function(e,t){return this.runFunction(e.args,t,this.metadata("COS"),Math.cos)}},{key:"sin",value:function(e,t){return this.runFunction(e.args,t,this.metadata("SIN"),Math.sin)}},{key:"tan",value:function(e,t){return this.runFunction(e.args,t,this.metadata("TAN"),Math.tan)}},{key:"atan",value:function(e,t){return this.runFunction(e.args,t,this.metadata("ATAN"),Math.atan)}},{key:"atan2",value:function(e,t){return this.runFunction(e.args,t,this.metadata("ATAN2"),(function(e,t){return 0===e&&0===t?new r.CellError(r.ErrorType.DIV_BY_ZERO):Math.atan2(t,e)}))}},{key:"cot",value:function(e,t){return this.runFunction(e.args,t,this.metadata("COT"),(function(e){return 0===e?new r.CellError(r.ErrorType.DIV_BY_ZERO):1/Math.tan(e)}))}},{key:"acot",value:function(e,t){return this.runFunction(e.args,t,this.metadata("ACOT"),(function(e){return 0===e?a.PI/2:Math.atan(1/e)}))}},{key:"sec",value:function(e,t){return this.runFunction(e.args,t,this.metadata("SEC"),(function(e){return 1/Math.cos(e)}))}},{key:"csc",value:function(e,t){return this.runFunction(e.args,t,this.metadata("CSC"),(function(e){return 0===e?new r.CellError(r.ErrorType.DIV_BY_ZERO):1/Math.sin(e)}))}},{key:"sinh",value:function(e,t){return this.runFunction(e.args,t,this.metadata("SINH"),Math.sinh)}},{key:"asinh",value:function(e,t){return this.runFunction(e.args,t,this.metadata("ASINH"),Math.asinh)}},{key:"cosh",value:function(e,t){return this.runFunction(e.args,t,this.metadata("COSH"),Math.cosh)}},{key:"acosh",value:function(e,t){return this.runFunction(e.args,t,this.metadata("ACOSH"),Math.acosh)}},{key:"tanh",value:function(e,t){return this.runFunction(e.args,t,this.metadata("TANH"),Math.tanh)}},{key:"atanh",value:function(e,t){return this.runFunction(e.args,t,this.metadata("ATANH"),Math.atanh)}},{key:"coth",value:function(e,t){return this.runFunction(e.args,t,this.metadata("COTH"),(function(e){return 0===e?new r.CellError(r.ErrorType.DIV_BY_ZERO):1/Math.tanh(e)}))}},{key:"acoth",value:function(e,t){return this.runFunction(e.args,t,this.metadata("ACOTH"),(function(e){return 0===e?new r.CellError(r.ErrorType.NUM,o.ErrorMessage.NonZero):Math.atanh(1/e)}))}},{key:"sech",value:function(e,t){return this.runFunction(e.args,t,this.metadata("SECH"),(function(e){return 1/Math.cosh(e)}))}},{key:"csch",value:function(e,t){return this.runFunction(e.args,t,this.metadata("CSCH"),(function(e){return 0===e?new r.CellError(r.ErrorType.DIV_BY_ZERO):1/Math.sinh(e)}))}}])&&l(t.prototype,n),i&&l(t,i),Object.defineProperty(t,"prototype",{writable:!1}),d}(i.FunctionPlugin);p.implementedFunctions={ACOS:{method:"acos",parameters:[{argumentType:i.ArgumentTypes.NUMBER}]},ASIN:{method:"asin",parameters:[{argumentType:i.ArgumentTypes.NUMBER}]},COS:{method:"cos",parameters:[{argumentType:i.ArgumentTypes.NUMBER}]},SIN:{method:"sin",parameters:[{argumentType:i.ArgumentTypes.NUMBER}]},TAN:{method:"tan",parameters:[{argumentType:i.ArgumentTypes.NUMBER}]},ATAN:{method:"atan",parameters:[{argumentType:i.ArgumentTypes.NUMBER}]},ATAN2:{method:"atan2",parameters:[{argumentType:i.ArgumentTypes.NUMBER},{argumentType:i.ArgumentTypes.NUMBER}]},COT:{method:"cot",parameters:[{argumentType:i.ArgumentTypes.NUMBER}]},SEC:{method:"sec",parameters:[{argumentType:i.ArgumentTypes.NUMBER}]},CSC:{method:"csc",parameters:[{argumentType:i.ArgumentTypes.NUMBER}]},SINH:{method:"sinh",parameters:[{argumentType:i.ArgumentTypes.NUMBER}]},COSH:{method:"cosh",parameters:[{argumentType:i.ArgumentTypes.NUMBER}]},TANH:{method:"tanh",parameters:[{argumentType:i.ArgumentTypes.NUMBER}]},COTH:{method:"coth",parameters:[{argumentType:i.ArgumentTypes.NUMBER}]},SECH:{method:"sech",parameters:[{argumentType:i.ArgumentTypes.NUMBER}]},CSCH:{method:"csch",parameters:[{argumentType:i.ArgumentTypes.NUMBER}]},ACOT:{method:"acot",parameters:[{argumentType:i.ArgumentTypes.NUMBER}]},ASINH:{method:"asinh",parameters:[{argumentType:i.ArgumentTypes.NUMBER}]},ACOSH:{method:"acosh",parameters:[{argumentType:i.ArgumentTypes.NUMBER}]},ATANH:{method:"atanh",parameters:[{argumentType:i.ArgumentTypes.NUMBER}]},ACOTH:{method:"acoth",parameters:[{argumentType:i.ArgumentTypes.NUMBER}]}}},function(e,t,n){var r=n(28),o=n(39),i=n(294),a=Math.abs,s=Math.exp,u=Math.E;r({target:"Math",stat:!0,forced:o((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(e){return a(e=+e)<1?(i(e)-i(-e))/2:(s(e-1)-s(-e-1))*(u/2)}})},function(e,t,n){var r=n(28),o=n(294),i=Math.cosh,a=Math.abs,s=Math.E;r({target:"Math",stat:!0,forced:!i||i(710)===1/0},{cosh:function(e){var t=o(a(e)-1)+1;return(t+1/(t*s*s))*(s/2)}})},function(e,t,n){"use strict";n.r(t),n.d(t,"LookupPlugin",(function(){return v}));n(140),n(0),n(37),n(27),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(86),o=n(24),i=n(45),a=n(737),s=n(125),u=n(106),l=n(78),c=n(38);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(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 p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var v=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(m,e);var t,n,c,f=y(m);function m(){var e;return d(this,m),(e=f.apply(this,arguments)).rowSearch=new a.RowSearchStrategy(e.config,e.dependencyGraph),e}return t=m,(n=[{key:"vlookup",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("VLOOKUP"),(function(e,t,r,a){var s=t.range;return void 0===s?new o.CellError(o.ErrorType.VALUE,i.ErrorMessage.WrongType):r<1?new o.CellError(o.ErrorType.VALUE,i.ErrorMessage.LessThanOne):r>s.width()?new o.CellError(o.ErrorType.REF,i.ErrorMessage.IndexLarge):n.doVlookup(Object(u.zeroIfEmpty)(e),t,r-1,a)}))}},{key:"hlookup",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("HLOOKUP"),(function(e,t,r,a){var s=t.range;return void 0===s?new o.CellError(o.ErrorType.VALUE,i.ErrorMessage.WrongType):r<1?new o.CellError(o.ErrorType.VALUE,i.ErrorMessage.LessThanOne):r>s.height()?new o.CellError(o.ErrorType.REF,i.ErrorMessage.IndexLarge):n.doHlookup(Object(u.zeroIfEmpty)(e),t,r-1,a)}))}},{key:"match",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("MATCH"),(function(e,t,r){return n.doMatch(Object(u.zeroIfEmpty)(e),t,r)}))}},{key:"searchInRange",value:function(e,t,n,r){return!n&&"string"==typeof e&&this.arithmeticHelper.requiresRegex(e)?r.advancedFind(this.arithmeticHelper.eqMatcherFunction(e),t):r.find(e,t,n)}},{key:"doVlookup",value:function(e,t,n,a){this.dependencyGraph.stats.start(s.StatType.VLOOKUP);var u,c=t.range;u=void 0===c?l.SimpleRangeValue.onlyValues(t.data.map((function(e){return[e[0]]}))):l.SimpleRangeValue.onlyRange(r.AbsoluteCellRange.spanFrom(c.start,1,c.height()),this.dependencyGraph);var f,d=this.searchInRange(e,u,a,this.columnSearch);if(this.dependencyGraph.stats.end(s.StatType.VLOOKUP),-1===d)return new o.CellError(o.ErrorType.NA,i.ErrorMessage.ValueNotFound);if(void 0===c)f=t.data[d][n];else{var h=Object(o.simpleCellAddress)(c.sheet,c.start.col+n,c.start.row+d);f=this.dependencyGraph.getCellValue(h)}return f instanceof l.SimpleRangeValue?new o.CellError(o.ErrorType.VALUE,i.ErrorMessage.WrongType):f}},{key:"doHlookup",value:function(e,t,n,a){var s,u=t.range;s=void 0===u?l.SimpleRangeValue.onlyValues([t.data[0]]):l.SimpleRangeValue.onlyRange(r.AbsoluteCellRange.spanFrom(u.start,u.width(),1),this.dependencyGraph);var c,f=this.searchInRange(e,s,a,this.rowSearch);if(-1===f)return new o.CellError(o.ErrorType.NA,i.ErrorMessage.ValueNotFound);if(void 0===u)c=t.data[n][f];else{var d=Object(o.simpleCellAddress)(u.sheet,u.start.col+f,u.start.row+n);c=this.dependencyGraph.getCellValue(d)}return c instanceof l.SimpleRangeValue?new o.CellError(o.ErrorType.VALUE,i.ErrorMessage.WrongType):c}},{key:"doMatch",value:function(e,t,n){if(t.width()>1&&t.height()>1)return new o.CellError(o.ErrorType.NA);if(1===t.width()){var r=this.columnSearch.find(e,t,0!==n);return-1===r?new o.CellError(o.ErrorType.NA,i.ErrorMessage.ValueNotFound):r+1}var a=this.rowSearch.find(e,t,0!==n);return-1===a?new o.CellError(o.ErrorType.NA,i.ErrorMessage.ValueNotFound):a+1}}])&&h(t.prototype,n),c&&h(t,c),Object.defineProperty(t,"prototype",{writable:!1}),m}(c.FunctionPlugin);v.implementedFunctions={VLOOKUP:{method:"vlookup",parameters:[{argumentType:c.ArgumentTypes.NOERROR},{argumentType:c.ArgumentTypes.RANGE},{argumentType:c.ArgumentTypes.NUMBER},{argumentType:c.ArgumentTypes.BOOLEAN,defaultValue:!0}]},HLOOKUP:{method:"hlookup",parameters:[{argumentType:c.ArgumentTypes.NOERROR},{argumentType:c.ArgumentTypes.RANGE},{argumentType:c.ArgumentTypes.NUMBER},{argumentType:c.ArgumentTypes.BOOLEAN,defaultValue:!0}]},MATCH:{method:"match",parameters:[{argumentType:c.ArgumentTypes.NOERROR},{argumentType:c.ArgumentTypes.RANGE},{argumentType:c.ArgumentTypes.NUMBER,defaultValue:1}]}}},function(e,t,n){"use strict";n.r(t),n.d(t,"RomanPlugin",(function(){return p}));n(141),n(109),n(114),n(13),n(417),n(27),n(0),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(24),o=n(45),i=n(51),a=n(38);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(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 c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var p=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(d,e);var t,n,a,s=f(d);function d(){return u(this,d),s.apply(this,arguments)}return t=d,(n=[{key:"roman",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("ROMAN"),(function(e,t){return e=Math.trunc(e),!1===t?t=4:!0===t&&(t=0),(t=Object(i.getRawValue)(n.coerceScalarToNumberOrError(t)))instanceof r.CellError?t:(t=Math.trunc(t))<0?new r.CellError(r.ErrorType.VALUE,o.ErrorMessage.ValueSmall):t>4?new r.CellError(r.ErrorType.VALUE,o.ErrorMessage.ValueLarge):function(e,t){var n={val:e%1e3,acc:"M".repeat(Math.floor(e/1e3))};return 4===t&&(m(n,"IM",999,1e3),m(n,"ID",499,500)),t>=3&&(m(n,"VM",995,1e3),m(n,"VD",495,500)),t>=2&&(m(n,"XM",990,1e3),m(n,"XD",490,500)),t>=1&&(m(n,"LM",950,1e3),m(n,"LD",450,500)),m(n,"CM",900,1e3),m(n,"CD",400,500),m(n,"D",500,900),n.acc+="C".repeat(Math.floor(n.val/100)),n.val%=100,t>=2&&(m(n,"IC",99,100),m(n,"IL",49,50)),t>=1&&(m(n,"VC",95,100),m(n,"VL",45,50)),m(n,"XC",90,100),m(n,"XL",40,50),m(n,"L",50,90),n.acc+="X".repeat(Math.floor(n.val/10)),n.val%=10,m(n,"IX",9,10),m(n,"IV",4,5),m(n,"V",5,9),n.acc+="I".repeat(n.val),n.acc}(e,t)}))}},{key:"arabic",value:function(e,t){return this.runFunction(e.args,t,this.metadata("ARABIC"),(function(e){var t=!1;if((e=e.trim().toUpperCase()).startsWith("-")&&(t=!0,""===(e=e.slice(1))))return new r.CellError(r.ErrorType.VALUE,o.ErrorMessage.InvalidRoman);var n={input:e,acc:0};return y(n,{token:"MMM",val:3e3},{token:"MM",val:2e3},{token:"M",val:1e3}),y(n,{token:"IM",val:999},{token:"VM",val:995},{token:"XM",val:990},{token:"LM",val:950},{token:"CM",val:900}),y(n,{token:"D",val:500},{token:"ID",val:499},{token:"VD",val:495},{token:"XD",val:490},{token:"LD",val:450},{token:"CD",val:400}),y(n,{token:"CCC",val:300},{token:"CC",val:200},{token:"C",val:100}),y(n,{token:"IC",val:99},{token:"VC",val:95},{token:"XC",val:90}),y(n,{token:"L",val:50},{token:"IL",val:49},{token:"VL",val:45},{token:"XL",val:40}),y(n,{token:"XXX",val:30},{token:"XX",val:20},{token:"X",val:10}),y(n,{token:"IX",val:9}),y(n,{token:"V",val:5},{token:"IV",val:4}),y(n,{token:"III",val:3},{token:"II",val:2},{token:"I",val:1}),""!==n.input?new r.CellError(r.ErrorType.VALUE,o.ErrorMessage.InvalidRoman):t?-n.acc:n.acc}))}}])&&l(t.prototype,n),a&&l(t,a),Object.defineProperty(t,"prototype",{writable:!1}),d}(a.FunctionPlugin);function y(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if(e.input.startsWith(a.token)){e.input=e.input.slice(a.token.length),e.acc+=a.val;break}}}function m(e,t,n,r){e.val>=n&&e.val<r&&(e.val-=n,e.acc+=t)}p.implementedFunctions={ROMAN:{method:"roman",parameters:[{argumentType:a.ArgumentTypes.NUMBER,minValue:1,lessThan:4e3},{argumentType:a.ArgumentTypes.NOERROR,optionalArg:!0,defaultValue:0}]},ARABIC:{method:"arabic",parameters:[{argumentType:a.ArgumentTypes.STRING}]}}},function(e,t,n){"use strict";n.r(t),n.d(t,"SimpleArithmerticPlugin",(function(){return f}));n(18),n(27),n(0),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(38);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)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var f=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(l,e);var t,n,r,o=u(l);function l(){return i(this,l),o.apply(this,arguments)}return t=l,(n=[{key:"add",value:function(e,t){return this.runFunction(e.args,t,this.metadata("HF.ADD"),this.arithmeticHelper.addWithEpsilon)}},{key:"concat",value:function(e,t){return this.runFunction(e.args,t,this.metadata("HF.CONCAT"),this.arithmeticHelper.concat)}},{key:"divide",value:function(e,t){return this.runFunction(e.args,t,this.metadata("HF.DIVIDE"),this.arithmeticHelper.divide)}},{key:"eq",value:function(e,t){return this.runFunction(e.args,t,this.metadata("HF.EQ"),this.arithmeticHelper.eq)}},{key:"gt",value:function(e,t){return this.runFunction(e.args,t,this.metadata("HF.GT"),this.arithmeticHelper.gt)}},{key:"gte",value:function(e,t){return this.runFunction(e.args,t,this.metadata("HF.GTE"),this.arithmeticHelper.geq)}},{key:"lt",value:function(e,t){return this.runFunction(e.args,t,this.metadata("HF.LT"),this.arithmeticHelper.lt)}},{key:"lte",value:function(e,t){return this.runFunction(e.args,t,this.metadata("HF.LTE"),this.arithmeticHelper.leq)}},{key:"minus",value:function(e,t){return this.runFunction(e.args,t,this.metadata("HF.MINUS"),this.arithmeticHelper.subtract)}},{key:"multiply",value:function(e,t){return this.runFunction(e.args,t,this.metadata("HF.MULTIPLY"),this.arithmeticHelper.multiply)}},{key:"ne",value:function(e,t){return this.runFunction(e.args,t,this.metadata("HF.NE"),this.arithmeticHelper.neq)}},{key:"pow",value:function(e,t){return this.runFunction(e.args,t,this.metadata("HF.POW"),this.arithmeticHelper.pow)}},{key:"uminus",value:function(e,t){return this.runFunction(e.args,t,this.metadata("HF.UMINUS"),this.arithmeticHelper.unaryMinus)}},{key:"upercent",value:function(e,t){return this.runFunction(e.args,t,this.metadata("HF.UNARY_PERCENT"),this.arithmeticHelper.unaryPercent)}},{key:"uplus",value:function(e,t){return this.runFunction(e.args,t,this.metadata("HF.UPLUS"),this.arithmeticHelper.unaryPlus)}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(r.FunctionPlugin);f.implementedFunctions={"HF.ADD":{method:"add",parameters:[{argumentType:r.ArgumentTypes.NUMBER,passSubtype:!0},{argumentType:r.ArgumentTypes.NUMBER,passSubtype:!0}]},"HF.CONCAT":{method:"concat",parameters:[{argumentType:r.ArgumentTypes.STRING,passSubtype:!0},{argumentType:r.ArgumentTypes.STRING,passSubtype:!0}]},"HF.DIVIDE":{method:"divide",parameters:[{argumentType:r.ArgumentTypes.NUMBER,passSubtype:!0},{argumentType:r.ArgumentTypes.NUMBER,passSubtype:!0}]},"HF.EQ":{method:"eq",parameters:[{argumentType:r.ArgumentTypes.NOERROR,passSubtype:!0},{argumentType:r.ArgumentTypes.NOERROR,passSubtype:!0}]},"HF.GT":{method:"gt",parameters:[{argumentType:r.ArgumentTypes.NOERROR,passSubtype:!0},{argumentType:r.ArgumentTypes.NOERROR,passSubtype:!0}]},"HF.GTE":{method:"gte",parameters:[{argumentType:r.ArgumentTypes.NOERROR,passSubtype:!0},{argumentType:r.ArgumentTypes.NOERROR,passSubtype:!0}]},"HF.LT":{method:"lt",parameters:[{argumentType:r.ArgumentTypes.NOERROR,passSubtype:!0},{argumentType:r.ArgumentTypes.NOERROR,passSubtype:!0}]},"HF.LTE":{method:"lte",parameters:[{argumentType:r.ArgumentTypes.NOERROR,passSubtype:!0},{argumentType:r.ArgumentTypes.NOERROR,passSubtype:!0}]},"HF.MINUS":{method:"minus",parameters:[{argumentType:r.ArgumentTypes.NUMBER,passSubtype:!0},{argumentType:r.ArgumentTypes.NUMBER,passSubtype:!0}]},"HF.MULTIPLY":{method:"multiply",parameters:[{argumentType:r.ArgumentTypes.NUMBER,passSubtype:!0},{argumentType:r.ArgumentTypes.NUMBER,passSubtype:!0}]},"HF.NE":{method:"ne",parameters:[{argumentType:r.ArgumentTypes.NOERROR,passSubtype:!0},{argumentType:r.ArgumentTypes.NOERROR,passSubtype:!0}]},"HF.POW":{method:"pow",parameters:[{argumentType:r.ArgumentTypes.NUMBER,passSubtype:!0},{argumentType:r.ArgumentTypes.NUMBER,passSubtype:!0}]},"HF.UMINUS":{method:"uminus",parameters:[{argumentType:r.ArgumentTypes.NUMBER,passSubtype:!0}]},"HF.UNARY_PERCENT":{method:"upercent",parameters:[{argumentType:r.ArgumentTypes.NUMBER,passSubtype:!0}]},"HF.UPLUS":{method:"uplus",parameters:[{argumentType:r.ArgumentTypes.NUMBER,passSubtype:!0}]}}},function(e,t,n){"use strict";n.r(t),n.d(t,"StatisticalPlugin",(function(){return y}));n(141),n(27),n(0),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(24),o=n(45),i=n(738),a=n(425),s=n(38);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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 f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(h,e);var t,n,s,u=d(h);function h(){return l(this,h),u.apply(this,arguments)}return t=h,(n=[{key:"erf",value:function(e,t){return this.runFunction(e.args,t,this.metadata("ERF"),(function(e,t){return void 0===t?Object(a.erf)(e):Object(a.erf)(t)-Object(a.erf)(e)}))}},{key:"erfc",value:function(e,t){return this.runFunction(e.args,t,this.metadata("ERFC"),a.erfc)}},{key:"expondist",value:function(e,t){return this.runFunction(e.args,t,this.metadata("EXPON.DIST"),(function(e,t,n){return n?a.exponential.cdf(e,t):a.exponential.pdf(e,t)}))}},{key:"fisher",value:function(e,t){return this.runFunction(e.args,t,this.metadata("FISHER"),(function(e){return Math.log((1+e)/(1-e))/2}))}},{key:"fisherinv",value:function(e,t){return this.runFunction(e.args,t,this.metadata("FISHERINV"),(function(e){return 1-2/(Math.exp(2*e)+1)}))}},{key:"gamma",value:function(e,t){return this.runFunction(e.args,t,this.metadata("GAMMA"),a.gammafn)}},{key:"gammadist",value:function(e,t){return this.runFunction(e.args,t,this.metadata("GAMMA.DIST"),(function(e,t,n,r){return r?a.gamma.cdf(e,t,n):a.gamma.pdf(e,t,n)}))}},{key:"gammaln",value:function(e,t){return this.runFunction(e.args,t,this.metadata("GAMMALN"),a.gammaln)}},{key:"gammainv",value:function(e,t){return this.runFunction(e.args,t,this.metadata("GAMMA.INV"),a.gamma.inv)}},{key:"gauss",value:function(e,t){return this.runFunction(e.args,t,this.metadata("GAUSS"),(function(e){return a.normal.cdf(e,0,1)-.5}))}},{key:"betadist",value:function(e,t){return this.runFunction(e.args,t,this.metadata("BETA.DIST"),(function(e,t,n,i,s,u){return e<=s?new r.CellError(r.ErrorType.NUM,o.ErrorMessage.ValueSmall):e>=u?new r.CellError(r.ErrorType.NUM,o.ErrorMessage.ValueLarge):(e=(e-s)/(u-s),i?a.beta.cdf(e,t,n):a.beta.pdf(e,t,n))}))}},{key:"betainv",value:function(e,t){return this.runFunction(e.args,t,this.metadata("BETA.INV"),(function(e,t,n,i,s){return i>=s?new r.CellError(r.ErrorType.NUM,o.ErrorMessage.WrongOrder):a.beta.inv(e,t,n)*(s-i)+i}))}},{key:"binomialdist",value:function(e,t){return this.runFunction(e.args,t,this.metadata("BINOM.DIST"),(function(e,t,n,i){return e>t?new r.CellError(r.ErrorType.NUM,o.ErrorMessage.WrongOrder):(e=Math.trunc(e),t=Math.trunc(t),i?a.binomial.cdf(e,t,n):a.binomial.pdf(e,t,n))}))}},{key:"binomialinv",value:function(e,t){return this.runFunction(e.args,t,this.metadata("BINOM.INV"),(function(e,t,n){for(var r=-1,o=e=Math.trunc(e);o>r+1;){var i=Math.trunc((r+o)/2);a.binomial.cdf(i,e,t)>=n?o=i:r=i}return o}))}},{key:"besselifn",value:function(e,t){return this.runFunction(e.args,t,this.metadata("BESSELI"),(function(e,t){return Object(i.besseli)(e,Math.trunc(t))}))}},{key:"besseljfn",value:function(e,t){return this.runFunction(e.args,t,this.metadata("BESSELJ"),(function(e,t){return Object(i.besselj)(e,Math.trunc(t))}))}},{key:"besselkfn",value:function(e,t){return this.runFunction(e.args,t,this.metadata("BESSELK"),(function(e,t){return Object(i.besselk)(e,Math.trunc(t))}))}},{key:"besselyfn",value:function(e,t){return this.runFunction(e.args,t,this.metadata("BESSELY"),(function(e,t){return Object(i.bessely)(e,Math.trunc(t))}))}},{key:"chisqdist",value:function(e,t){return this.runFunction(e.args,t,this.metadata("CHISQ.DIST"),(function(e,t,n){return t=Math.trunc(t),n?a.chisquare.cdf(e,t):a.chisquare.pdf(e,t)}))}},{key:"chisqdistrt",value:function(e,t){return this.runFunction(e.args,t,this.metadata("CHISQ.DIST.RT"),(function(e,t){return 1-a.chisquare.cdf(e,Math.trunc(t))}))}},{key:"chisqinv",value:function(e,t){return this.runFunction(e.args,t,this.metadata("CHISQ.INV"),(function(e,t){return a.chisquare.inv(e,Math.trunc(t))}))}},{key:"chisqinvrt",value:function(e,t){return this.runFunction(e.args,t,this.metadata("CHISQ.INV.RT"),(function(e,t){return a.chisquare.inv(1-e,Math.trunc(t))}))}},{key:"fdist",value:function(e,t){return this.runFunction(e.args,t,this.metadata("F.DIST"),(function(e,t,n,r){return t=Math.trunc(t),n=Math.trunc(n),r?a.centralF.cdf(e,t,n):a.centralF.pdf(e,t,n)}))}},{key:"fdistrt",value:function(e,t){return this.runFunction(e.args,t,this.metadata("F.DIST.RT"),(function(e,t,n){return 1-a.centralF.cdf(e,Math.trunc(t),Math.trunc(n))}))}},{key:"finv",value:function(e,t){return this.runFunction(e.args,t,this.metadata("F.INV"),(function(e,t,n){return a.centralF.inv(e,Math.trunc(t),Math.trunc(n))}))}},{key:"finvrt",value:function(e,t){return this.runFunction(e.args,t,this.metadata("F.INV.RT"),(function(e,t,n){return a.centralF.inv(1-e,Math.trunc(t),Math.trunc(n))}))}},{key:"weibulldist",value:function(e,t){return this.runFunction(e.args,t,this.metadata("WEIBULL.DIST"),(function(e,t,n,r){return r?a.weibull.cdf(e,n,t):a.weibull.pdf(e,n,t)}))}},{key:"poissondist",value:function(e,t){return this.runFunction(e.args,t,this.metadata("POISSON.DIST"),(function(e,t,n){return e=Math.trunc(e),n?a.poisson.cdf(e,t):a.poisson.pdf(e,t)}))}},{key:"hypgeomdist",value:function(e,t){return this.runFunction(e.args,t,this.metadata("HYPGEOM.DIST"),(function(e,t,n,i,s){return e>t||e>n||t>i||n>i||e+i<n+t?new r.CellError(r.ErrorType.NUM,o.ErrorMessage.ValueLarge):(e=Math.trunc(e),t=Math.trunc(t),n=Math.trunc(n),i=Math.trunc(i),s?a.hypgeom.cdf(e,i,n,t):a.hypgeom.pdf(e,i,n,t))}))}},{key:"tdist",value:function(e,t){return this.runFunction(e.args,t,this.metadata("T.DIST"),(function(e,t,n){return t=Math.trunc(t),n?a.studentt.cdf(e,t):a.studentt.pdf(e,t)}))}},{key:"tdist2t",value:function(e,t){return this.runFunction(e.args,t,this.metadata("T.DIST.2T"),(function(e,t){return 2*(1-a.studentt.cdf(e,Math.trunc(t)))}))}},{key:"tdistrt",value:function(e,t){return this.runFunction(e.args,t,this.metadata("T.DIST.RT"),(function(e,t){return 1-a.studentt.cdf(e,Math.trunc(t))}))}},{key:"tdistold",value:function(e,t){return this.runFunction(e.args,t,this.metadata("TDIST"),(function(e,t,n){return n*(1-a.studentt.cdf(e,Math.trunc(t)))}))}},{key:"tinv",value:function(e,t){return this.runFunction(e.args,t,this.metadata("T.INV"),(function(e,t){return a.studentt.inv(e,Math.trunc(t))}))}},{key:"tinv2t",value:function(e,t){return this.runFunction(e.args,t,this.metadata("T.INV.2T"),(function(e,t){return a.studentt.inv(1-e/2,Math.trunc(t))}))}},{key:"lognormdist",value:function(e,t){return this.runFunction(e.args,t,this.metadata("LOGNORM.DIST"),(function(e,t,n,r){return r?a.lognormal.cdf(e,t,n):a.lognormal.pdf(e,t,n)}))}},{key:"lognorminv",value:function(e,t){return this.runFunction(e.args,t,this.metadata("LOGNORM.INV"),(function(e,t,n){return a.lognormal.inv(e,t,n)}))}},{key:"normdist",value:function(e,t){return this.runFunction(e.args,t,this.metadata("NORM.DIST"),(function(e,t,n,r){return r?a.normal.cdf(e,t,n):a.normal.pdf(e,t,n)}))}},{key:"norminv",value:function(e,t){return this.runFunction(e.args,t,this.metadata("NORM.INV"),(function(e,t,n){return a.normal.inv(e,t,n)}))}},{key:"normsdist",value:function(e,t){return this.runFunction(e.args,t,this.metadata("NORM.S.DIST"),(function(e,t){return t?a.normal.cdf(e,0,1):a.normal.pdf(e,0,1)}))}},{key:"normsinv",value:function(e,t){return this.runFunction(e.args,t,this.metadata("NORM.S.INV"),(function(e){return a.normal.inv(e,0,1)}))}},{key:"phi",value:function(e,t){return this.runFunction(e.args,t,this.metadata("PHI"),(function(e){return a.normal.pdf(e,0,1)}))}},{key:"negbinomdist",value:function(e,t){return this.runFunction(e.args,t,this.metadata("NEGBINOM.DIST"),(function(e,t,n,r){return e=Math.trunc(e),t=Math.trunc(t),r?a.negbin.cdf(e,t,n):a.negbin.pdf(e,t,n)}))}},{key:"confidencenorm",value:function(e,t){return this.runFunction(e.args,t,this.metadata("CONFIDENCE.NORM"),(function(e,t,n){return Object(a.normalci)(1,e,t,Math.trunc(n))[1]-1}))}},{key:"confidencet",value:function(e,t){return this.runFunction(e.args,t,this.metadata("CONFIDENCE.T"),(function(e,t,n){return 1===(n=Math.trunc(n))?new r.CellError(r.ErrorType.DIV_BY_ZERO):Object(a.tci)(1,e,t,n)[1]-1}))}},{key:"standardize",value:function(e,t){return this.runFunction(e.args,t,this.metadata("STANDARDIZE"),(function(e,t,n){return(e-t)/n}))}}])&&c(t.prototype,n),s&&c(t,s),Object.defineProperty(t,"prototype",{writable:!1}),h}(s.FunctionPlugin);y.implementedFunctions={ERF:{method:"erf",parameters:[{argumentType:s.ArgumentTypes.NUMBER},{argumentType:s.ArgumentTypes.NUMBER,optionalArg:!0}]},ERFC:{method:"erfc",parameters:[{argumentType:s.ArgumentTypes.NUMBER}]},"EXPON.DIST":{method:"expondist",parameters:[{argumentType:s.ArgumentTypes.NUMBER,minValue:0},{argumentType:s.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:s.ArgumentTypes.BOOLEAN}]},FISHER:{method:"fisher",parameters:[{argumentType:s.ArgumentTypes.NUMBER,greaterThan:-1,lessThan:1}]},FISHERINV:{method:"fisherinv",parameters:[{argumentType:s.ArgumentTypes.NUMBER}]},GAMMA:{method:"gamma",parameters:[{argumentType:s.ArgumentTypes.NUMBER}]},"GAMMA.DIST":{method:"gammadist",parameters:[{argumentType:s.ArgumentTypes.NUMBER,minValue:0},{argumentType:s.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:s.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:s.ArgumentTypes.BOOLEAN}]},GAMMALN:{method:"gammaln",parameters:[{argumentType:s.ArgumentTypes.NUMBER,greaterThan:0}]},"GAMMA.INV":{method:"gammainv",parameters:[{argumentType:s.ArgumentTypes.NUMBER,minValue:0,lessThan:1},{argumentType:s.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:s.ArgumentTypes.NUMBER,greaterThan:0}]},GAUSS:{method:"gauss",parameters:[{argumentType:s.ArgumentTypes.NUMBER}]},"BETA.DIST":{method:"betadist",parameters:[{argumentType:s.ArgumentTypes.NUMBER},{argumentType:s.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:s.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:s.ArgumentTypes.BOOLEAN},{argumentType:s.ArgumentTypes.NUMBER,defaultValue:0},{argumentType:s.ArgumentTypes.NUMBER,defaultValue:1}]},"BETA.INV":{method:"betainv",parameters:[{argumentType:s.ArgumentTypes.NUMBER,greaterThan:0,maxValue:1},{argumentType:s.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:s.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:s.ArgumentTypes.NUMBER,defaultValue:0},{argumentType:s.ArgumentTypes.NUMBER,defaultValue:1}]},"BINOM.DIST":{method:"binomialdist",parameters:[{argumentType:s.ArgumentTypes.NUMBER,minValue:0},{argumentType:s.ArgumentTypes.NUMBER,minValue:0},{argumentType:s.ArgumentTypes.NUMBER,minValue:0,maxValue:1},{argumentType:s.ArgumentTypes.BOOLEAN}]},"BINOM.INV":{method:"binomialinv",parameters:[{argumentType:s.ArgumentTypes.NUMBER,minValue:0},{argumentType:s.ArgumentTypes.NUMBER,minValue:0,maxValue:1},{argumentType:s.ArgumentTypes.NUMBER,greaterThan:0,lessThan:1}]},BESSELI:{method:"besselifn",parameters:[{argumentType:s.ArgumentTypes.NUMBER},{argumentType:s.ArgumentTypes.NUMBER,minValue:0}]},BESSELJ:{method:"besseljfn",parameters:[{argumentType:s.ArgumentTypes.NUMBER},{argumentType:s.ArgumentTypes.NUMBER,minValue:0}]},BESSELK:{method:"besselkfn",parameters:[{argumentType:s.ArgumentTypes.NUMBER},{argumentType:s.ArgumentTypes.NUMBER,minValue:0}]},BESSELY:{method:"besselyfn",parameters:[{argumentType:s.ArgumentTypes.NUMBER},{argumentType:s.ArgumentTypes.NUMBER,minValue:0}]},"CHISQ.DIST":{method:"chisqdist",parameters:[{argumentType:s.ArgumentTypes.NUMBER},{argumentType:s.ArgumentTypes.NUMBER,minValue:1,maxValue:1e10},{argumentType:s.ArgumentTypes.BOOLEAN}]},"CHISQ.DIST.RT":{method:"chisqdistrt",parameters:[{argumentType:s.ArgumentTypes.NUMBER},{argumentType:s.ArgumentTypes.NUMBER,minValue:1,maxValue:1e10}]},"CHISQ.INV":{method:"chisqinv",parameters:[{argumentType:s.ArgumentTypes.NUMBER,minValue:0,maxValue:1},{argumentType:s.ArgumentTypes.NUMBER,minValue:1,maxValue:1e10}]},"CHISQ.INV.RT":{method:"chisqinvrt",parameters:[{argumentType:s.ArgumentTypes.NUMBER,minValue:0,maxValue:1},{argumentType:s.ArgumentTypes.NUMBER,minValue:1}]},"F.DIST":{method:"fdist",parameters:[{argumentType:s.ArgumentTypes.NUMBER,minValue:0},{argumentType:s.ArgumentTypes.NUMBER,minValue:1},{argumentType:s.ArgumentTypes.NUMBER,minValue:1},{argumentType:s.ArgumentTypes.BOOLEAN}]},"F.DIST.RT":{method:"fdistrt",parameters:[{argumentType:s.ArgumentTypes.NUMBER,minValue:0},{argumentType:s.ArgumentTypes.NUMBER,minValue:1},{argumentType:s.ArgumentTypes.NUMBER,minValue:1}]},"F.INV":{method:"finv",parameters:[{argumentType:s.ArgumentTypes.NUMBER,minValue:0,maxValue:1},{argumentType:s.ArgumentTypes.NUMBER,minValue:1},{argumentType:s.ArgumentTypes.NUMBER,minValue:1}]},"F.INV.RT":{method:"finvrt",parameters:[{argumentType:s.ArgumentTypes.NUMBER,minValue:0,maxValue:1},{argumentType:s.ArgumentTypes.NUMBER,minValue:1},{argumentType:s.ArgumentTypes.NUMBER,minValue:1}]},"WEIBULL.DIST":{method:"weibulldist",parameters:[{argumentType:s.ArgumentTypes.NUMBER,minValue:0},{argumentType:s.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:s.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:s.ArgumentTypes.BOOLEAN}]},"POISSON.DIST":{method:"poissondist",parameters:[{argumentType:s.ArgumentTypes.NUMBER,minValue:0},{argumentType:s.ArgumentTypes.NUMBER,minValue:0},{argumentType:s.ArgumentTypes.BOOLEAN}]},"HYPGEOM.DIST":{method:"hypgeomdist",parameters:[{argumentType:s.ArgumentTypes.NUMBER,minValue:0},{argumentType:s.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:s.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:s.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:s.ArgumentTypes.BOOLEAN}]},"T.DIST":{method:"tdist",parameters:[{argumentType:s.ArgumentTypes.NUMBER},{argumentType:s.ArgumentTypes.NUMBER,minValue:1},{argumentType:s.ArgumentTypes.BOOLEAN}]},"T.DIST.2T":{method:"tdist2t",parameters:[{argumentType:s.ArgumentTypes.NUMBER,minValue:0},{argumentType:s.ArgumentTypes.NUMBER,minValue:1}]},"T.DIST.RT":{method:"tdistrt",parameters:[{argumentType:s.ArgumentTypes.NUMBER},{argumentType:s.ArgumentTypes.NUMBER,minValue:1}]},TDIST:{method:"tdistold",parameters:[{argumentType:s.ArgumentTypes.NUMBER,minValue:0},{argumentType:s.ArgumentTypes.NUMBER,minValue:1},{argumentType:s.ArgumentTypes.INTEGER,minValue:1,maxValue:2}]},"T.INV":{method:"tinv",parameters:[{argumentType:s.ArgumentTypes.NUMBER,greaterThan:0,lessThan:1},{argumentType:s.ArgumentTypes.NUMBER,minValue:1}]},"T.INV.2T":{method:"tinv2t",parameters:[{argumentType:s.ArgumentTypes.NUMBER,greaterThan:0,maxValue:1},{argumentType:s.ArgumentTypes.NUMBER,minValue:1}]},"LOGNORM.DIST":{method:"lognormdist",parameters:[{argumentType:s.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:s.ArgumentTypes.NUMBER},{argumentType:s.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:s.ArgumentTypes.BOOLEAN}]},"LOGNORM.INV":{method:"lognorminv",parameters:[{argumentType:s.ArgumentTypes.NUMBER,greaterThan:0,lessThan:1},{argumentType:s.ArgumentTypes.NUMBER},{argumentType:s.ArgumentTypes.NUMBER,greaterThan:0}]},"NORM.DIST":{method:"normdist",parameters:[{argumentType:s.ArgumentTypes.NUMBER},{argumentType:s.ArgumentTypes.NUMBER},{argumentType:s.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:s.ArgumentTypes.BOOLEAN}]},"NORM.INV":{method:"norminv",parameters:[{argumentType:s.ArgumentTypes.NUMBER,greaterThan:0,lessThan:1},{argumentType:s.ArgumentTypes.NUMBER},{argumentType:s.ArgumentTypes.NUMBER,greaterThan:0}]},"NORM.S.DIST":{method:"normsdist",parameters:[{argumentType:s.ArgumentTypes.NUMBER},{argumentType:s.ArgumentTypes.BOOLEAN}]},"NORM.S.INV":{method:"normsinv",parameters:[{argumentType:s.ArgumentTypes.NUMBER,greaterThan:0,lessThan:1}]},PHI:{method:"phi",parameters:[{argumentType:s.ArgumentTypes.NUMBER}]},"NEGBINOM.DIST":{method:"negbinomdist",parameters:[{argumentType:s.ArgumentTypes.NUMBER,minValue:0},{argumentType:s.ArgumentTypes.NUMBER,minValue:1},{argumentType:s.ArgumentTypes.NUMBER,minValue:0,maxValue:1},{argumentType:s.ArgumentTypes.BOOLEAN}]},"CONFIDENCE.NORM":{method:"confidencenorm",parameters:[{argumentType:s.ArgumentTypes.NUMBER,greaterThan:0,lessThan:1},{argumentType:s.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:s.ArgumentTypes.NUMBER,minValue:1}]},"CONFIDENCE.T":{method:"confidencet",parameters:[{argumentType:s.ArgumentTypes.NUMBER,greaterThan:0,lessThan:1},{argumentType:s.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:s.ArgumentTypes.NUMBER,minValue:1}]},STANDARDIZE:{method:"standardize",parameters:[{argumentType:s.ArgumentTypes.NUMBER},{argumentType:s.ArgumentTypes.NUMBER},{argumentType:s.ArgumentTypes.NUMBER,greaterThan:0}]}},y.aliases={NEGBINOMDIST:"NEGBINOM.DIST",EXPONDIST:"EXPON.DIST",BETADIST:"BETA.DIST",NORMDIST:"NORM.DIST",NORMINV:"NORM.INV",NORMSDIST:"NORM.S.DIST",NORMSINV:"NORM.S.INV",LOGNORMDIST:"LOGNORM.DIST",LOGINV:"LOGNORM.INV",TINV:"T.INV.2T",HYPGEOMDIST:"HYPGEOM.DIST",POISSON:"POISSON.DIST",WEIBULL:"WEIBULL.DIST",FINV:"F.INV.RT",FDIST:"F.DIST.RT",CHIDIST:"CHISQ.DIST.RT",CHIINV:"CHISQ.INV.RT",GAMMADIST:"GAMMA.DIST","GAMMALN.PRECISE":"GAMMALN",GAMMAINV:"GAMMA.INV",BETAINV:"BETA.INV",BINOMDIST:"BINOM.DIST",CONFIDENCE:"CONFIDENCE.NORM",CRITBINOM:"BINOM.INV",WEIBULLDIST:"WEIBULL.DIST",TINV2T:"T.INV.2T",TDISTRT:"T.DIST.RT",TDIST2T:"T.DIST.2T",FINVRT:"F.INV.RT",FDISTRT:"F.DIST.RT",CHIDISTRT:"CHISQ.DIST.RT",CHIINVRT:"CHISQ.INV.RT",LOGNORMINV:"LOGNORM.INV",POISSONDIST:"POISSON.DIST"}},function(e,t,n){"use strict";n.r(t),n.d(t,"erf",(function(){return r})),n.d(t,"erfc",(function(){return o})),n.d(t,"exponential",(function(){return a})),n.d(t,"gammafn",(function(){return s})),n.d(t,"gamma",(function(){return u})),n.d(t,"gammaln",(function(){return l})),n.d(t,"normal",(function(){return d})),n.d(t,"beta",(function(){return h})),n.d(t,"binomial",(function(){return E})),n.d(t,"factorialln",(function(){return C})),n.d(t,"factorial",(function(){return w})),n.d(t,"chisquare",(function(){return R})),n.d(t,"centralF",(function(){return O})),n.d(t,"weibull",(function(){return S})),n.d(t,"poisson",(function(){return A})),n.d(t,"hypgeom",(function(){return N})),n.d(t,"studentt",(function(){return _})),n.d(t,"lognormal",(function(){return k})),n.d(t,"negbin",(function(){return M})),n.d(t,"mean",(function(){return P})),n.d(t,"sumsqerr",(function(){return x})),n.d(t,"variance",(function(){return D})),n.d(t,"stdev",(function(){return L})),n.d(t,"normalci",(function(){return F})),n.d(t,"tci",(function(){return j})),n.d(t,"geomean",(function(){return U})),n.d(t,"covariance",(function(){return H})),n.d(t,"corrcoeff",(function(){return B}));n(13);
|
|
/**
|
|
* @license
|
|
Copyright (c) 2013 jStat
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
in the Software without restriction, including without limitation the rights
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in
|
|
all copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
THE SOFTWARE.
|
|
*/
|
|
function r(e){var t,n,r,o,i=[-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],a=i.length-1,s=!1,u=0,l=0;if(0===e)return 0;for(e<0&&(e=-e,s=!0),n=4*(t=2/(2+e))-2;a>0;a--)r=u,u=n*u-l+i[a],l=r;return o=t*Math.exp(-e*e+.5*(i[0]+n*u)-l),s?o-1:1-o}function o(e){return 1-r(e)}function i(e){var t,n,r,i,a=0;if(e>=2)return-100;if(e<=0)return 100;for(i=e<1?e:2-e,t=-.70711*((2.30753+.27061*(r=Math.sqrt(-2*Math.log(i/2))))/(1+r*(.99229+.04481*r))-r);a<2;a++)t+=(n=o(t)-i)/(1.1283791670955126*Math.exp(-t*t)-t*n);return e<1?t:-t}var a={pdf:function(e,t){return e<0?0:t*Math.exp(-t*e)},cdf:function(e,t){return e<0?0:1-Math.exp(-t*e)}};function s(e){var t,n,r,o,i=[-1.716185138865495,24.76565080557592,-379.80425647094563,629.3311553128184,866.9662027904133,-31451.272968848367,-36144.413418691176,66456.14382024054],a=[-30.8402300119739,315.35062697960416,-1015.1563674902192,-3107.771671572311,22538.11842098015,4755.846277527881,-134659.9598649693,-115132.2596755535],s=!1,u=0,l=0,c=0,f=e;if(e>171.6243769536076)return 1/0;if(f<=0){if(!(o=f%1))return 1/0;s=(1&f?-1:1)*Math.PI/Math.sin(Math.PI*o),f=1-f}for(r=f,n=f<1?f++:(f-=u=(0|f)-1)-1,t=0;t<8;++t)c=(c+i[t])*n,l=l*n+a[t];if(o=c/l+1,r<f)o/=r;else if(r>f)for(t=0;t<u;++t)o*=f,f++;return s&&(o=s/o),o}var u={pdf:function(e,t,n){return e<0?0:0===e&&1===t?1/n:Math.exp((t-1)*Math.log(e)-e/n-l(t)-t*Math.log(n))},cdf:function(e,t,n){return e<0?0:c(t,e/n)},inv:function(e,t,n){return f(e,t)*n}};function l(e){var t,n,r,o=0,i=[76.18009172947146,-86.50532032941678,24.01409824083091,-1.231739572450155,.001208650973866179,-5395239384953e-18],a=1.000000000190015;for(r=(n=t=e)+5.5,r-=(t+.5)*Math.log(r);o<6;o++)a+=i[o]/++n;return Math.log(2.5066282746310007*a/t)-r}function c(e,t){var n,r=l(e),o=e,i=1/e,a=i,s=t+1-e,u=1/1e-30,c=1/s,f=c,d=1,h=-~(8.5*Math.log(e>=1?e:1/e)+.4*e+17);if(t<0||e<=0)return NaN;if(t<e+1){for(;d<=h;d++)i+=a*=t/++o;return i*Math.exp(-t+e*Math.log(t)-r)}for(;d<=h;d++)f*=(c=1/(c=(n=-d*(d-e))*c+(s+=2)))*(u=s+n/u);return 1-f*Math.exp(-t+e*Math.log(t)-r)}function f(e,t){var n,r,o,i,a,s,u=0,f=t-1,d=l(t);if(e>=1)return Math.max(100,t+100*Math.sqrt(t));if(e<=0)return 0;for(t>1?(a=Math.log(f),s=Math.exp(f*(a-1)-d),i=e<.5?e:1-e,n=(2.30753+.27061*(r=Math.sqrt(-2*Math.log(i))))/(1+r*(.99229+.04481*r))-r,e<.5&&(n=-n),n=Math.max(.001,t*Math.pow(1-1/(9*t)-n/(3*Math.sqrt(t)),3))):n=e<(r=1-t*(.253+.12*t))?Math.pow(e/r,1/t):1-Math.log(1-(e-r)/(1-r));u<12;u++){if(n<=0)return 0;if((n-=r=(o=(c(t,n)-e)/(r=t>1?s*Math.exp(-(n-f)+f*(Math.log(n)-a)):Math.exp(-n+f*Math.log(n)-d)))/(1-.5*Math.min(1,o*((t-1)/n-1))))<=0&&(n=.5*(n+r)),Math.abs(r)<1e-8*n)break}return n}var d={pdf:function(e,t,n){return Math.exp(-.5*Math.log(2*Math.PI)-Math.log(n)-Math.pow(e-t,2)/(2*n*n))},cdf:function(e,t,n){return.5*(1+r((e-t)/Math.sqrt(2*n*n)))},inv:function(e,t,n){return-1.4142135623730951*n*i(2*e)+t}},h={pdf:function(e,t,n){return e>1||e<0?0:1==t&&1==n?1:t<512&&n<512?Math.pow(e,t-1)*Math.pow(1-e,n-1)/p(t,n):Math.exp((t-1)*Math.log(e)+(n-1)*Math.log(1-e)-y(t,n))},cdf:function(e,t,n){return e>1||e<0?+(e>1):g(e,t,n)},inv:function(e,t,n){return m(e,t,n)}};function p(e,t){if(!(e<=0||t<=0))return e+t>170?Math.exp(y(e,t)):s(e)*s(t)/s(e+t)}function y(e,t){return l(e)+l(t)-l(e+t)}function m(e,t,n){var r,o,i,a,s,u,c,f,d,h,p=t-1,y=n-1,m=0;if(e<=0)return 0;if(e>=1)return 1;for(t>=1&&n>=1?(i=e<.5?e:1-e,u=(2.30753+.27061*(a=Math.sqrt(-2*Math.log(i))))/(1+a*(.99229+.04481*a))-a,e<.5&&(u=-u),c=(u*u-3)/6,f=2/(1/(2*t-1)+1/(2*n-1)),d=u*Math.sqrt(c+f)/f-(1/(2*n-1)-1/(2*t-1))*(c+5/6-2/(3*f)),u=t/(t+n*Math.exp(2*d))):(r=Math.log(t/(t+n)),o=Math.log(n/(t+n)),u=e<(a=Math.exp(t*r)/t)/(d=a+(s=Math.exp(n*o)/n))?Math.pow(t*d*e,1/t):1-Math.pow(n*d*(1-e),1/n)),h=-l(t)-l(n)+l(t+n);m<10;m++){if(0===u||1===u)return u;if((u-=a=(s=(g(u,t,n)-e)/(a=Math.exp(p*Math.log(u)+y*Math.log(1-u)+h)))/(1-.5*Math.min(1,s*(p/u-y/(1-u)))))<=0&&(u=.5*(u+a)),u>=1&&(u=.5*(u+a+1)),Math.abs(a)<1e-8*u&&m>0)break}return u}function g(e,t,n){var r=0===e||1===e?0:Math.exp(l(t+n)-l(t)-l(n)+t*Math.log(e)+n*Math.log(1-e));return!(e<0||e>1)&&(e<(t+1)/(t+n+2)?r*v(e,t,n)/t:1-r*v(1-e,n,t)/n)}function v(e,t,n){var r,o,i,a,s=1,u=t+n,l=t+1,c=t-1,f=1,d=1-u*e/l;for(Math.abs(d)<1e-30&&(d=1e-30),a=d=1/d;s<=100&&(d=1+(o=s*(n-s)*e/((c+(r=2*s))*(t+r)))*d,Math.abs(d)<1e-30&&(d=1e-30),f=1+o/f,Math.abs(f)<1e-30&&(f=1e-30),a*=(d=1/d)*f,d=1+(o=-(t+s)*(u+s)*e/((t+r)*(l+r)))*d,Math.abs(d)<1e-30&&(d=1e-30),f=1+o/f,Math.abs(f)<1e-30&&(f=1e-30),a*=i=(d=1/d)*f,!(Math.abs(i-1)<3e-7));s++);return a}var E={pdf:function(e,t,n){return 0===n||1===n?t*n===e?1:0:T(t,e)*Math.pow(n,e)*Math.pow(1-n,t-e)},cdf:function(e,t,n){var r;if(e<0)return 0;if(e>=t)return 1;if(n<0||n>1||t<=0)return NaN;var o=n,i=(e=Math.floor(e))+1,a=t-e,s=i+a,u=Math.exp(l(s)-l(a)-l(i)+i*Math.log(o)+a*Math.log(1-o));return r=o<(i+1)/(s+2)?u*b(o,i,a,1e-10):1-u*b(1-o,a,i,1e-10),Math.round(1/1e-10*(1-r))/(1/1e-10)}};function b(e,t,n,r){for(var o,i=0,a=1,s=1,u=1,l=0,c=0;Math.abs((s-c)/s)>r;)c=s,a=u+(o=-(t+l)*(t+n+l)*e/(t+2*l)/(t+2*l+1))*a,s=(i=s+o*i)+(o=(l+=1)*(n-l)*e/(t+2*l-1)/(t+2*l))*s,i/=u=a+o*u,a/=u,s/=u,u=1;return s/t}function T(e,t){return e>170||t>170?Math.exp(function(e,t){return C(e)-C(t)-C(e-t)}(e,t)):w(e)/w(t)/w(e-t)}function C(e){return e<0?NaN:l(e+1)}function w(e){return e<0?NaN:s(e+1)}var R={pdf:function(e,t){return e<0?0:0===e&&2===t?.5:Math.exp((t/2-1)*Math.log(e)-e/2-t/2*Math.log(2)-l(t/2))},cdf:function(e,t){return e<0?0:c(t/2,e/2)},inv:function(e,t){return 2*f(e,.5*t)}},O={pdf:function(e,t,n){var r;return e<0?0:t<=2?0===e&&t<2?1/0:0===e&&2===t?1:1/p(t/2,n/2)*Math.pow(t/n,t/2)*Math.pow(e,t/2-1)*Math.pow(1+t/n*e,-(t+n)/2):(r=t*e/(n+e*t),t*(n/(n+e*t))/2*E.pdf((t-2)/2,(t+n-2)/2,r))},cdf:function(e,t,n){return e<0?0:g(t*e/(t*e+n),t/2,n/2)},inv:function(e,t,n){return n/(t*(1/m(e,t/2,n/2)-1))}},S={pdf:function(e,t,n){return e<0||t<0||n<0?0:n/t*Math.pow(e/t,n-1)*Math.exp(-Math.pow(e/t,n))},cdf:function(e,t,n){return e<0?0:1-Math.exp(-Math.pow(e/t,n))}},A={pdf:function(e,t){return t<0||e%1!=0||e<0?0:Math.pow(t,e)*Math.exp(-t)/w(e)},cdf:function(e,t){var n=0;if(e<0)return 0;for(var r=0;n<=e;n++)r+=A.pdf(n,t);return r}},N={pdf:function(e,t,n,r){if(e<0||e<n-(t-r))return 0;if(e>r||e>n)return 0;if(2*n>t)return 2*r>t?N.pdf(t-n-r+e,t,t-n,t-r):N.pdf(r-e,t,t-n,r);if(2*r>t)return N.pdf(n-e,t,n,t-r);if(n<r)return N.pdf(e,t,r,n);for(var o=1,i=0,a=0;a<e;a++){for(;o>1&&i<r;)o*=1-n/(t-i),i++;o*=(r-a)*(n-a)/((a+1)*(t-n-r+a+1))}for(;i<r;i++)o*=1-n/(t-i);return Math.min(1,Math.max(0,o))},cdf:function e(t,n,r,o){if(t<0||t<r-(n-o))return 0;if(t>=o||t>=r)return 1;if(2*r>n)return 2*o>n?e(n-r-o+t,n,n-r,n-o):1-N.cdf(o-t-1,n,n-r,o);if(2*o>n)return 1-N.cdf(r-t-1,n,r,n-o);if(r<o)return N.cdf(t,n,o,r);for(var i=1,a=1,s=0,u=0;u<t;u++){for(;i>1&&s<o;){var l=1-r/(n-s);a*=l,i*=l,s++}i+=a*=(o-u)*(r-u)/((u+1)*(n-r-o+u+1))}for(;s<o;s++)i*=1-r/(n-s);return Math.min(1,Math.max(0,i))}},_={pdf:function(e,t){return t=t>1e100?1e100:t,1/(Math.sqrt(t)*p(.5,t/2))*Math.pow(1+e*e/t,-(t+1)/2)},cdf:function(e,t){var n=t/2;return g((e+Math.sqrt(e*e+t))/(2*Math.sqrt(e*e+t)),n,n)},inv:function(e,t){var n=m(2*Math.min(e,1-e),.5*t,.5);return n=Math.sqrt(t*(1-n)/n),e>.5?n:-n}},k={pdf:function(e,t,n){return e<=0?0:Math.exp(-Math.log(e)-.5*Math.log(2*Math.PI)-Math.log(n)-Math.pow(Math.log(e)-t,2)/(2*n*n))},cdf:function(e,t,n){return e<0?0:.5+.5*r((Math.log(e)-t)/Math.sqrt(2*n*n))},inv:function(e,t,n){return Math.exp(-1.4142135623730951*n*i(2*e)+t)}},M={pdf:function(e,t,n){return e===e>>>0&&(e<0?0:T(e+t-1,t-1)*Math.pow(1-n,e)*Math.pow(n,t))},cdf:function(e,t,n){var r=0,o=0;if(e<0)return 0;for(;o<=e;o++)r+=M.pdf(o,t,n);return r}};function I(e){for(var t=0,n=e.length;--n>=0;)t+=e[n];return t}function P(e){return I(e)/e.length}function x(e){for(var t,n=P(e),r=0,o=e.length;--o>=0;)r+=(t=e[o]-n)*t;return r}function D(e,t){return x(e)/(e.length-(t?1:0))}function L(e,t){return Math.sqrt(D(e,t))}function F(){var e,t=[].slice.call(arguments),n=new Array(2);return e=4===t.length?Math.abs(d.inv(t[1]/2,0,1)*t[2]/Math.sqrt(t[3])):Math.abs(d.inv(t[1]/2,0,1)*L(t[2])/Math.sqrt(t[2].length)),n[0]=t[0]-e,n[1]=t[0]+e,n}function j(){var e,t=[].slice.call(arguments),n=new Array(2);return e=4===t.length?Math.abs(_.inv(t[1]/2,t[3]-1)*t[2]/Math.sqrt(t[3])):Math.abs(_.inv(t[1]/2,t[2].length-1)*L(t[2],!0)/Math.sqrt(t[2].length)),n[0]=t[0]-e,n[1]=t[0]+e,n}function U(e){return Math.pow(function(e){for(var t=1,n=e.length;--n>=0;)t*=e[n];return t}(e),1/e.length)}function H(e,t){var n,r=P(e),o=P(t),i=e.length,a=new Array(i);for(n=0;n<i;n++)a[n]=(e[n]-r)*(t[n]-o);return I(a)/(i-1)}function B(e,t){return H(e,t)/L(e,1)/L(t,1)}},function(e,t,n){"use strict";n.r(t),n.d(t,"MathPlugin",(function(){return y}));n(141),n(739),n(52),n(138),n(27),n(0),n(7),n(13),n(25),n(22),n(2),n(12),n(8),n(9),n(10),n(3),n(4);var r=n(24),o=n(45),i=n(38);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return u(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 u(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function u(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 l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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 f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(u,e);var t,n,i,a=d(u);function u(){return l(this,u),a.apply(this,arguments)}return t=u,(n=[{key:"fact",value:function(e,t){return this.runFunction(e.args,t,this.metadata("FACT"),(function(e){e=Math.trunc(e);for(var t=1,n=1;n<=e;n++)t*=n;return t}))}},{key:"factdouble",value:function(e,t){return this.runFunction(e.args,t,this.metadata("FACTDOUBLE"),(function(e){for(var t=1,n=e=Math.trunc(e);n>=1;n-=2)t*=n;return t}))}},{key:"combin",value:function(e,t){return this.runFunction(e.args,t,this.metadata("COMBIN"),(function(e,t){return t>e?new r.CellError(r.ErrorType.NUM,o.ErrorMessage.WrongOrder):m(e=Math.trunc(e),t=Math.trunc(t))}))}},{key:"combina",value:function(e,t){return this.runFunction(e.args,t,this.metadata("COMBINA"),(function(e,t){return(e=Math.trunc(e))+(t=Math.trunc(t))-1>=1030?new r.CellError(r.ErrorType.NUM,o.ErrorMessage.ValueLarge):0===e&&0===t?1:m(e+t-1,t)}))}},{key:"gcd",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("GCD"),(function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var a=n.arithmeticHelper.coerceNumbersCoerceRangesDropNulls(t);if(a instanceof r.CellError)return a;var u,l=0,c=s(a);try{for(c.s();!(u=c.n()).done;){var f=u.value;if(f<0)return new r.CellError(r.ErrorType.NUM,o.ErrorMessage.ValueSmall);l=g(l,Math.trunc(f))}}catch(e){c.e(e)}finally{c.f()}return l>Number.MAX_SAFE_INTEGER?new r.CellError(r.ErrorType.NUM,o.ErrorMessage.ValueLarge):l}))}},{key:"lcm",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("LCM"),(function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var a=n.arithmeticHelper.coerceNumbersCoerceRangesDropNulls(t);if(a instanceof r.CellError)return a;var u,l=1,c=s(a);try{for(c.s();!(u=c.n()).done;){var f=u.value;if(f<0)return new r.CellError(r.ErrorType.NUM,o.ErrorMessage.ValueSmall);l=v(l,Math.trunc(f))}}catch(e){c.e(e)}finally{c.f()}return l>Number.MAX_SAFE_INTEGER?new r.CellError(r.ErrorType.NUM,o.ErrorMessage.ValueLarge):l}))}},{key:"mround",value:function(e,t){return this.runFunction(e.args,t,this.metadata("MROUND"),(function(e,t){return 0===t?0:e>0&&t<0||e<0&&t>0?new r.CellError(r.ErrorType.NUM,o.ErrorMessage.DistinctSigns):Math.round(e/t)*t}))}},{key:"multinomial",value:function(e,t){return this.runFunction(e.args,t,this.metadata("MULTINOMIAL"),(function(){for(var e=0,t=1,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];for(var s=0,u=i;s<u.length;s++){var l=u[s];if(l<0)return new r.CellError(r.ErrorType.NUM,o.ErrorMessage.ValueSmall);l=Math.trunc(l);for(var c=1;c<=l;c++)t*=(e+c)/c;e+=l}return Math.round(t)}))}},{key:"quotient",value:function(e,t){return this.runFunction(e.args,t,this.metadata("QUOTIENT"),(function(e,t){return 0===t?new r.CellError(r.ErrorType.DIV_BY_ZERO):Math.trunc(e/t)}))}},{key:"seriessum",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("SERIESSUM"),(function(e,t,o,i){var a=n.arithmeticHelper.manyToOnlyNumbersDropNulls(i.valuesFromTopLeftCorner());if(a instanceof r.CellError)return a;var u=0;a.reverse();var l,c=s(a);try{for(c.s();!(l=c.n()).done;){var f=l.value;u*=Math.pow(e,o),u+=f}}catch(e){c.e(e)}finally{c.f()}return u*Math.pow(e,t)}))}},{key:"sign",value:function(e,t){return this.runFunction(e.args,t,this.metadata("SIGN"),(function(e){return e>0?1:e<0?-1:0}))}},{key:"sumx2my2",value:function(e,t){return this.runFunction(e.args,t,this.metadata("SUMX2MY2"),(function(e,t){var n=e.valuesFromTopLeftCorner(),i=t.valuesFromTopLeftCorner();if(n.length!==i.length)return new r.CellError(r.ErrorType.NA,o.ErrorMessage.EqualLength);for(var a=n.length,s=0,u=0;u<a;u++){var l=n[u],c=i[u];if(l instanceof r.CellError)return l;if(c instanceof r.CellError)return c;"number"==typeof l&&"number"==typeof c&&(s+=Math.pow(l,2)-Math.pow(c,2))}return s}))}},{key:"sumx2py2",value:function(e,t){return this.runFunction(e.args,t,this.metadata("SUMX2PY2"),(function(e,t){var n=e.valuesFromTopLeftCorner(),i=t.valuesFromTopLeftCorner();if(n.length!==i.length)return new r.CellError(r.ErrorType.NA,o.ErrorMessage.EqualLength);for(var a=n.length,s=0,u=0;u<a;u++){var l=n[u],c=i[u];if(l instanceof r.CellError)return l;if(c instanceof r.CellError)return c;"number"==typeof l&&"number"==typeof c&&(s+=Math.pow(l,2)+Math.pow(c,2))}return s}))}},{key:"sumxmy2",value:function(e,t){return this.runFunction(e.args,t,this.metadata("SUMXMY2"),(function(e,t){var n=e.valuesFromTopLeftCorner(),i=t.valuesFromTopLeftCorner();if(n.length!==i.length)return new r.CellError(r.ErrorType.NA,o.ErrorMessage.EqualLength);for(var a=n.length,s=0,u=0;u<a;u++){var l=n[u],c=i[u];if(l instanceof r.CellError)return l;if(c instanceof r.CellError)return c;"number"==typeof l&&"number"==typeof c&&(s+=Math.pow(l-c,2))}return s}))}}])&&c(t.prototype,n),i&&c(t,i),Object.defineProperty(t,"prototype",{writable:!1}),u}(i.FunctionPlugin);function m(e,t){2*t>e&&(t=e-t);for(var n=1,r=1;r<=t;r++)n*=(e-t+r)/r;return Math.round(n)}function g(e,t){if(e<t){var n=[t,e];e=n[0],t=n[1]}for(;t>0;){var r=[t,e%t];e=r[0],t=r[1]}return e}function v(e,t){return 0===e||0===t?0:e*(t/g(e,t))}y.implementedFunctions={FACT:{method:"fact",parameters:[{argumentType:i.ArgumentTypes.NUMBER,minValue:0,maxValue:170}]},FACTDOUBLE:{method:"factdouble",parameters:[{argumentType:i.ArgumentTypes.NUMBER,minValue:0,maxValue:288}]},COMBIN:{method:"combin",parameters:[{argumentType:i.ArgumentTypes.NUMBER,minValue:0,lessThan:1030},{argumentType:i.ArgumentTypes.NUMBER,minValue:0}]},COMBINA:{method:"combina",parameters:[{argumentType:i.ArgumentTypes.NUMBER,minValue:0},{argumentType:i.ArgumentTypes.NUMBER,minValue:0}]},GCD:{method:"gcd",parameters:[{argumentType:i.ArgumentTypes.ANY}],repeatLastArgs:1},LCM:{method:"lcm",parameters:[{argumentType:i.ArgumentTypes.ANY}],repeatLastArgs:1},MROUND:{method:"mround",parameters:[{argumentType:i.ArgumentTypes.NUMBER},{argumentType:i.ArgumentTypes.NUMBER}]},MULTINOMIAL:{method:"multinomial",parameters:[{argumentType:i.ArgumentTypes.NUMBER}],repeatLastArgs:1,expandRanges:!0},QUOTIENT:{method:"quotient",parameters:[{argumentType:i.ArgumentTypes.NUMBER},{argumentType:i.ArgumentTypes.NUMBER}]},SERIESSUM:{method:"seriessum",parameters:[{argumentType:i.ArgumentTypes.NUMBER},{argumentType:i.ArgumentTypes.NUMBER},{argumentType:i.ArgumentTypes.NUMBER},{argumentType:i.ArgumentTypes.RANGE}]},SIGN:{method:"sign",parameters:[{argumentType:i.ArgumentTypes.NUMBER}]},SUMX2MY2:{method:"sumx2my2",parameters:[{argumentType:i.ArgumentTypes.RANGE},{argumentType:i.ArgumentTypes.RANGE}]},SUMX2PY2:{method:"sumx2py2",parameters:[{argumentType:i.ArgumentTypes.RANGE},{argumentType:i.ArgumentTypes.RANGE}]},SUMXMY2:{method:"sumxmy2",parameters:[{argumentType:i.ArgumentTypes.RANGE},{argumentType:i.ArgumentTypes.RANGE}]}}},function(e,t,n){"use strict";n.r(t),n.d(t,"ComplexPlugin",(function(){return v}));n(420),n(419),n(27),n(0),n(7),n(8),n(9),n(10),n(3),n(2),n(4),n(13),n(25),n(22),n(12);var r=n(24),o=n(45),i=n(106),a=n(38);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;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,t)||c(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 c(e,t){if(e){if("string"==typeof e)return f(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)?f(e,t):void 0}}function f(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 d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(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 p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var v=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(c,e);var t,n,a,s=y(c);function c(){return d(this,c),s.apply(this,arguments)}return t=c,(n=[{key:"complex",value:function(e,t){return this.runFunction(e.args,t,this.metadata("COMPLEX"),(function(e,t,n){return"i"!==n&&"j"!==n?new r.CellError(r.ErrorType.VALUE,o.ErrorMessage.ShouldBeIorJ):Object(i.coerceComplexToString)([e,t],n)}))}},{key:"imabs",value:function(e,t){return this.runFunction(e.args,t,this.metadata("IMABS"),A)}},{key:"imaginary",value:function(e,t){return this.runFunction(e.args,t,this.metadata("IMAGINARY"),(function(e){var t=l(e,2);return t[0],t[1]}))}},{key:"imreal",value:function(e,t){return this.runFunction(e.args,t,this.metadata("IMREAL"),(function(e){var t=l(e,2),n=t[0];return t[1],n}))}},{key:"imargument",value:function(e,t){return this.runFunction(e.args,t,this.metadata("IMARGUMENT"),(function(e){var t=l(e,2),n=t[0],o=t[1];return 0===n&&0===o?new r.CellError(r.ErrorType.DIV_BY_ZERO):Math.atan2(o,n)}))}},{key:"imconjugate",value:function(e,t){return this.runFunction(e.args,t,this.metadata("IMCONJUGATE"),(function(e){var t=l(e,2),n=t[0],r=t[1];return Object(i.coerceComplexToString)([n,-r])}))}},{key:"imcos",value:function(e,t){return this.runFunction(e.args,t,this.metadata("IMCOS"),(function(e){return Object(i.coerceComplexToString)(C(e))}))}},{key:"imcosh",value:function(e,t){return this.runFunction(e.args,t,this.metadata("IMCOSH"),(function(e){return Object(i.coerceComplexToString)(w(e))}))}},{key:"imcot",value:function(e,t){return this.runFunction(e.args,t,this.metadata("IMCOT"),(function(e){return Object(i.coerceComplexToString)(T(C(e),R(e)))}))}},{key:"imcsc",value:function(e,t){return this.runFunction(e.args,t,this.metadata("IMCSC"),(function(e){return Object(i.coerceComplexToString)(T([1,0],R(e)))}))}},{key:"imcsch",value:function(e,t){return this.runFunction(e.args,t,this.metadata("IMCSCH"),(function(e){return Object(i.coerceComplexToString)(T([1,0],O(e)))}))}},{key:"imsec",value:function(e,t){return this.runFunction(e.args,t,this.metadata("IMSEC"),(function(e){return Object(i.coerceComplexToString)(T([1,0],C(e)))}))}},{key:"imsech",value:function(e,t){return this.runFunction(e.args,t,this.metadata("IMSECH"),(function(e){return Object(i.coerceComplexToString)(T([1,0],w(e)))}))}},{key:"imsin",value:function(e,t){return this.runFunction(e.args,t,this.metadata("IMSIN"),(function(e){return Object(i.coerceComplexToString)(R(e))}))}},{key:"imsinh",value:function(e,t){return this.runFunction(e.args,t,this.metadata("IMSINH"),(function(e){return Object(i.coerceComplexToString)(O(e))}))}},{key:"imtan",value:function(e,t){return this.runFunction(e.args,t,this.metadata("IMTAN"),(function(e){return Object(i.coerceComplexToString)(T(R(e),C(e)))}))}},{key:"imdiv",value:function(e,t){return this.runFunction(e.args,t,this.metadata("IMDIV"),(function(e,t){return Object(i.coerceComplexToString)(T(e,t))}))}},{key:"improduct",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("IMPRODUCT"),(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var a=n.arithmeticHelper.coerceComplexExactRanges(t);if(a instanceof r.CellError)return a;var s,l=[1,0],c=u(a);try{for(c.s();!(s=c.n()).done;){var f=s.value;l=b(l,f)}}catch(e){c.e(e)}finally{c.f()}return Object(i.coerceComplexToString)(l)}))}},{key:"imsum",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("IMSUM"),(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var a=n.arithmeticHelper.coerceComplexExactRanges(t);if(a instanceof r.CellError)return a;var s,l=[0,0],c=u(a);try{for(c.s();!(s=c.n()).done;){var f=s.value;l=E(l,f)}}catch(e){c.e(e)}finally{c.f()}return Object(i.coerceComplexToString)(l)}))}},{key:"imsub",value:function(e,t){return this.runFunction(e.args,t,this.metadata("IMSUB"),(function(e,t){return Object(i.coerceComplexToString)((n=t,r=l(e,2),o=r[0],a=r[1],s=l(n,2),u=s[0],c=s[1],[o-u,a-c]));var n,r,o,a,s,u,c}))}},{key:"imexp",value:function(e,t){return this.runFunction(e.args,t,this.metadata("IMEXP"),(function(e){return Object(i.coerceComplexToString)(S(e))}))}},{key:"imln",value:function(e,t){return this.runFunction(e.args,t,this.metadata("IMLN"),(function(e){return Object(i.coerceComplexToString)(N(e))}))}},{key:"imlog10",value:function(e,t){return this.runFunction(e.args,t,this.metadata("IMLOG10"),(function(e){var t=l(N(e),2),n=t[0],r=t[1],o=Math.log(10);return Object(i.coerceComplexToString)([n/o,r/o])}))}},{key:"imlog2",value:function(e,t){return this.runFunction(e.args,t,this.metadata("IMLOG2"),(function(e){var t=l(N(e),2),n=t[0],r=t[1],o=Math.log(2);return Object(i.coerceComplexToString)([n/o,r/o])}))}},{key:"impower",value:function(e,t){return this.runFunction(e.args,t,this.metadata("IMPOWER"),(function(e,t){return Object(i.coerceComplexToString)(_(e,t))}))}},{key:"imsqrt",value:function(e,t){return this.runFunction(e.args,t,this.metadata("IMSQRT"),(function(e){return Object(i.coerceComplexToString)(_(e,.5))}))}}])&&h(t.prototype,n),a&&h(t,a),Object.defineProperty(t,"prototype",{writable:!1}),c}(a.FunctionPlugin);function E(e,t){var n=l(e,2),r=n[0],o=n[1],i=l(t,2);return[r+i[0],o+i[1]]}function b(e,t){var n=l(e,2),r=n[0],o=n[1],i=l(t,2),a=i[0],s=i[1];return[r*a-o*s,r*s+a*o]}function T(e,t){var n=l(e,2),r=n[0],o=n[1],i=l(t,2),a=i[0],s=i[1],u=Math.pow(a,2)+Math.pow(s,2),c=l(b([r,o],[a,-s]),2);return[c[0]/u,c[1]/u]}function C(e){var t=l(e,2),n=t[0],r=t[1];return[Math.cos(n)*Math.cosh(r),-Math.sin(n)*Math.sinh(r)]}function w(e){var t=l(e,2),n=t[0],r=t[1];return[Math.cosh(n)*Math.cos(r),Math.sinh(n)*Math.sin(r)]}function R(e){var t=l(e,2),n=t[0],r=t[1];return[Math.sin(n)*Math.cosh(r),Math.cos(n)*Math.sinh(r)]}function O(e){var t=l(e,2),n=t[0],r=t[1];return[Math.sinh(n)*Math.cos(r),Math.cosh(n)*Math.sin(r)]}function S(e){var t=l(e,2),n=t[0],r=t[1];return[Math.exp(n)*Math.cos(r),Math.exp(n)*Math.sin(r)]}function A(e){var t=l(e,2),n=t[0],r=t[1];return Math.sqrt(n*n+r*r)}function N(e){var t=l(e,2),n=t[0],r=t[1];return[Math.log(A([n,r])),Math.atan2(r,n)]}function _(e,t){var n=l(N(e),2);return S([t*n[0],t*n[1]])}v.implementedFunctions={COMPLEX:{method:"complex",parameters:[{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.NUMBER},{argumentType:a.ArgumentTypes.STRING,defaultValue:"i"}]},IMABS:{method:"imabs",parameters:[{argumentType:a.ArgumentTypes.COMPLEX}]},IMAGINARY:{method:"imaginary",parameters:[{argumentType:a.ArgumentTypes.COMPLEX}]},IMREAL:{method:"imreal",parameters:[{argumentType:a.ArgumentTypes.COMPLEX}]},IMARGUMENT:{method:"imargument",parameters:[{argumentType:a.ArgumentTypes.COMPLEX}]},IMCONJUGATE:{method:"imconjugate",parameters:[{argumentType:a.ArgumentTypes.COMPLEX}]},IMCOS:{method:"imcos",parameters:[{argumentType:a.ArgumentTypes.COMPLEX}]},IMCOSH:{method:"imcosh",parameters:[{argumentType:a.ArgumentTypes.COMPLEX}]},IMCOT:{method:"imcot",parameters:[{argumentType:a.ArgumentTypes.COMPLEX}]},IMCSC:{method:"imcsc",parameters:[{argumentType:a.ArgumentTypes.COMPLEX}]},IMCSCH:{method:"imcsch",parameters:[{argumentType:a.ArgumentTypes.COMPLEX}]},IMSEC:{method:"imsec",parameters:[{argumentType:a.ArgumentTypes.COMPLEX}]},IMSECH:{method:"imsech",parameters:[{argumentType:a.ArgumentTypes.COMPLEX}]},IMSIN:{method:"imsin",parameters:[{argumentType:a.ArgumentTypes.COMPLEX}]},IMSINH:{method:"imsinh",parameters:[{argumentType:a.ArgumentTypes.COMPLEX}]},IMTAN:{method:"imtan",parameters:[{argumentType:a.ArgumentTypes.COMPLEX}]},IMDIV:{method:"imdiv",parameters:[{argumentType:a.ArgumentTypes.COMPLEX},{argumentType:a.ArgumentTypes.COMPLEX}]},IMPRODUCT:{method:"improduct",parameters:[{argumentType:a.ArgumentTypes.ANY}],repeatLastArgs:1},IMSUM:{method:"imsum",parameters:[{argumentType:a.ArgumentTypes.ANY}],repeatLastArgs:1},IMSUB:{method:"imsub",parameters:[{argumentType:a.ArgumentTypes.COMPLEX},{argumentType:a.ArgumentTypes.COMPLEX}]},IMEXP:{method:"imexp",parameters:[{argumentType:a.ArgumentTypes.COMPLEX}]},IMLN:{method:"imln",parameters:[{argumentType:a.ArgumentTypes.COMPLEX}]},IMLOG10:{method:"imlog10",parameters:[{argumentType:a.ArgumentTypes.COMPLEX}]},IMLOG2:{method:"imlog2",parameters:[{argumentType:a.ArgumentTypes.COMPLEX}]},IMPOWER:{method:"impower",parameters:[{argumentType:a.ArgumentTypes.COMPLEX},{argumentType:a.ArgumentTypes.NUMBER}]},IMSQRT:{method:"imsqrt",parameters:[{argumentType:a.ArgumentTypes.COMPLEX}]}}},function(e,t,n){"use strict";n.r(t),n.d(t,"StatisticalAggregationPlugin",(function(){return g}));n(99),n(0),n(27),n(7),n(13),n(25),n(22),n(2),n(12),n(8),n(9),n(10),n(3),n(4);var r=n(24),o=n(45),i=n(51),a=n(425),s=n(38);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return c(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 c(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function c(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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(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 h(e,t){return(h=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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(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 y(this,n)}}function y(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var g=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(u,e);var t,n,i,s=p(u);function u(){return f(this,u),s.apply(this,arguments)}return t=u,(n=[{key:"avedev",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("AVEDEV"),(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var i=n.arithmeticHelper.coerceNumbersExactRanges(t);if(i instanceof r.CellError)return i;if(0===i.length)return new r.CellError(r.ErrorType.DIV_BY_ZERO);var s=Object(a.mean)(i);return i.reduce((function(e,t){return e+Math.abs(t-s)}),0)/i.length}))}},{key:"devsq",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("DEVSQ"),(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var i=n.arithmeticHelper.coerceNumbersExactRanges(t);return i instanceof r.CellError?i:0===i.length?0:Object(a.sumsqerr)(i)}))}},{key:"geomean",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("GEOMEAN"),(function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var s=n.arithmeticHelper.coerceNumbersExactRanges(t);if(s instanceof r.CellError)return s;if(0===s.length)return new r.CellError(r.ErrorType.NUM,o.ErrorMessage.OneValue);var u,c=l(s);try{for(c.s();!(u=c.n()).done;){var f=u.value;if(f<=0)return new r.CellError(r.ErrorType.NUM,o.ErrorMessage.ValueSmall)}}catch(e){c.e(e)}finally{c.f()}return Object(a.geomean)(s)}))}},{key:"harmean",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("HARMEAN"),(function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var a=n.arithmeticHelper.coerceNumbersExactRanges(t);if(a instanceof r.CellError)return a;if(0===a.length)return new r.CellError(r.ErrorType.NUM,o.ErrorMessage.OneValue);var s,u=l(a);try{for(u.s();!(s=u.n()).done;){var c=s.value;if(c<=0)return new r.CellError(r.ErrorType.NUM,o.ErrorMessage.ValueSmall)}}catch(e){u.e(e)}finally{u.f()}return a.length/a.reduce((function(e,t){return e+1/t}),0)}))}},{key:"correl",value:function(e,t){return this.runFunction(e.args,t,this.metadata("CORREL"),(function(e,t){if(e.numberOfElements()!==t.numberOfElements())return new r.CellError(r.ErrorType.NA,o.ErrorMessage.EqualLength);var n=v(e,t);return n instanceof r.CellError?n:n[0].length<=1?new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.TwoValues):Object(a.corrcoeff)(n[0],n[1])}))}},{key:"rsq",value:function(e,t){return this.runFunction(e.args,t,this.metadata("RSQ"),(function(e,t){if(e.numberOfElements()!==t.numberOfElements())return new r.CellError(r.ErrorType.NA,o.ErrorMessage.EqualLength);var n=v(e,t);return n instanceof r.CellError?n:n[0].length<=1?new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.TwoValues):Math.pow(Object(a.corrcoeff)(n[0],n[1]),2)}))}},{key:"covariancep",value:function(e,t){return this.runFunction(e.args,t,this.metadata("COVARIANCE.P"),(function(e,t){if(e.numberOfElements()!==t.numberOfElements())return new r.CellError(r.ErrorType.NA,o.ErrorMessage.EqualLength);var n=v(e,t);if(n instanceof r.CellError)return n;var i=n[0].length;return i<1?new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.OneValue):1===i?0:Object(a.covariance)(n[0],n[1])*(i-1)/i}))}},{key:"covariances",value:function(e,t){return this.runFunction(e.args,t,this.metadata("COVARIANCE.S"),(function(e,t){if(e.numberOfElements()!==t.numberOfElements())return new r.CellError(r.ErrorType.NA,o.ErrorMessage.EqualLength);var n=v(e,t);return n instanceof r.CellError?n:n[0].length<=1?new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.TwoValues):Object(a.covariance)(n[0],n[1])}))}},{key:"ztest",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("Z.TEST"),(function(e,t,i){var s=n.arithmeticHelper.manyToExactNumbers(e.valuesFromTopLeftCorner());if(s instanceof r.CellError)return s;var u=s.length;if(void 0===i){if(u<2)return new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.TwoValues);i=Object(a.stdev)(s,!0)}return u<1?new r.CellError(r.ErrorType.NA,o.ErrorMessage.OneValue):0===i?new r.CellError(r.ErrorType.DIV_BY_ZERO):1-a.normal.cdf((Object(a.mean)(s)-t)/(i/Math.sqrt(u)),0,1)}))}},{key:"ftest",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("F.TEST"),(function(e,t){var o=n.arithmeticHelper.manyToExactNumbers(e.valuesFromTopLeftCorner()),i=n.arithmeticHelper.manyToExactNumbers(t.valuesFromTopLeftCorner());if(o instanceof r.CellError)return o;if(i instanceof r.CellError)return i;if(o.length<=1||i.length<=1)return new r.CellError(r.ErrorType.DIV_BY_ZERO);var s=Object(a.variance)(o,!0),u=Object(a.variance)(i,!0);if(0===s||0===u)return new r.CellError(r.ErrorType.DIV_BY_ZERO);var l=s/u,c=a.centralF.cdf(l,o.length-1,i.length-1);return 2*Math.min(c,1-c)}))}},{key:"steyx",value:function(e,t){return this.runFunction(e.args,t,this.metadata("STEYX"),(function(e,t){if(e.numberOfElements()!==t.numberOfElements())return new r.CellError(r.ErrorType.NA,o.ErrorMessage.EqualLength);var n=v(e,t);if(n instanceof r.CellError)return n;var i=n[0].length;return i<=2?new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.ThreeValues):Math.sqrt((Object(a.sumsqerr)(n[0])-Math.pow(Object(a.covariance)(n[0],n[1])*(i-1),2)/Object(a.sumsqerr)(n[1]))/(i-2))}))}},{key:"slope",value:function(e,t){return this.runFunction(e.args,t,this.metadata("SLOPE"),(function(e,t){if(e.numberOfElements()!==t.numberOfElements())return new r.CellError(r.ErrorType.NA,o.ErrorMessage.EqualLength);var n=v(e,t);if(n instanceof r.CellError)return n;var i=n[0].length;return i<=1?new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.TwoValues):Object(a.covariance)(n[0],n[1])*(i-1)/Object(a.sumsqerr)(n[1])}))}},{key:"chisqtest",value:function(e,t){return this.runFunction(e.args,t,this.metadata("CHISQ.TEST"),(function(e,t){var n=e.height(),i=e.width();if(t.height()!==n||t.width()!==i)return new r.CellError(r.ErrorType.NA,o.ErrorMessage.EqualLength);var s=v(e,t);if(s instanceof r.CellError)return s;if(s[0].length<=1)return new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.TwoValues);for(var u=0,l=0;l<s[0].length;l++){if(0===s[1][l])return new r.CellError(r.ErrorType.DIV_BY_ZERO);u+=Math.pow(s[0][l]-s[1][l],2)/s[1][l]}return u<0?new r.CellError(r.ErrorType.NUM,o.ErrorMessage.NaN):1-a.chisquare.cdf(u,n>1&&i>1?(n-1)*(i-1):n*i-1)}))}},{key:"ttest",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("T.TEST"),(function(e,t,i,s){var u=n.arithmeticHelper.manyToExactNumbers(e.valuesFromTopLeftCorner()),l=n.arithmeticHelper.manyToExactNumbers(t.valuesFromTopLeftCorner());if(u instanceof r.CellError)return u;if(l instanceof r.CellError)return l;var c=u.length,f=l.length;if(1===s){if(f!==c)return new r.CellError(r.ErrorType.NA,o.ErrorMessage.EqualLength);if(c<=1)return new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.TwoValues);for(var d=Array(c),h=0;h<c;h++)d[h]=u[h]-l[h];var p=Object(a.stdev)(d,!0);if(0===p)return new r.CellError(r.ErrorType.DIV_BY_ZERO);var y=Math.abs(Math.sqrt(c)*Object(a.mean)(d)/p);return i*(1-a.studentt.cdf(y,c-1))}if(2===s){if(c<=1||f<=1)return new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.TwoValues);var m=(Object(a.sumsqerr)(u)+Object(a.sumsqerr)(l))/(c+f-2);if(0===m)return new r.CellError(r.ErrorType.DIV_BY_ZERO);var g=Math.abs((Object(a.mean)(u)-Object(a.mean)(l))/Math.sqrt(m*(1/c+1/f)));return i*(1-a.studentt.cdf(g,c+f-2))}if(c<=1||f<=1)return new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.TwoValues);var v=Object(a.variance)(u,!0),E=Object(a.variance)(l,!0);if(0===v&&0===E)return new r.CellError(r.ErrorType.DIV_BY_ZERO);var b=Math.abs((Object(a.mean)(u)-Object(a.mean)(l))/Math.sqrt(v/c+E/f)),T=Math.pow(v/c+E/f,2)/(Math.pow(v/c,2)/(c-1)+Math.pow(E/f,2)/(f-1));return i*(1-a.studentt.cdf(b,T))}))}},{key:"skew",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("SKEW"),(function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var s=n.arithmeticHelper.coerceNumbersExactRanges(t);if(s instanceof r.CellError)return s;var u=s.length;if(u<3)return new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.ThreeValues);var l=Object(a.mean)(s),c=Object(a.stdev)(s,!0);return 0===c?new r.CellError(r.ErrorType.DIV_BY_ZERO):s.reduce((function(e,t){return e+Math.pow((t-l)/c,3)}),0)*u/(u-1)/(u-2)}))}},{key:"skewp",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("SKEW.P"),(function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var s=n.arithmeticHelper.coerceNumbersExactRanges(t);if(s instanceof r.CellError)return s;var u=s.length;if(u<3)return new r.CellError(r.ErrorType.DIV_BY_ZERO,o.ErrorMessage.ThreeValues);var l=Object(a.mean)(s),c=Object(a.stdev)(s,!1);return 0===c?new r.CellError(r.ErrorType.DIV_BY_ZERO):s.reduce((function(e,t){return e+Math.pow((t-l)/c,3)}),0)/u}))}}])&&d(t.prototype,n),i&&d(t,i),Object.defineProperty(t,"prototype",{writable:!1}),u}(s.FunctionPlugin);function v(e,t){for(var n,o,a=e.iterateValuesFromTopLeftCorner(),s=t.iterateValuesFromTopLeftCorner(),u=[],l=[];n=a.next(),o=s.next(),!n.done&&!o.done;){var c=n.value,f=o.value;if(c instanceof r.CellError)return c;if(f instanceof r.CellError)return f;Object(i.isExtendedNumber)(c)&&Object(i.isExtendedNumber)(f)&&(u.push(Object(i.getRawValue)(c)),l.push(Object(i.getRawValue)(f)))}return[u,l]}g.implementedFunctions={AVEDEV:{method:"avedev",parameters:[{argumentType:s.ArgumentTypes.ANY}],repeatLastArgs:1},DEVSQ:{method:"devsq",parameters:[{argumentType:s.ArgumentTypes.ANY}],repeatLastArgs:1},GEOMEAN:{method:"geomean",parameters:[{argumentType:s.ArgumentTypes.ANY}],repeatLastArgs:1},HARMEAN:{method:"harmean",parameters:[{argumentType:s.ArgumentTypes.ANY}],repeatLastArgs:1},CORREL:{method:"correl",parameters:[{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.RANGE}]},RSQ:{method:"rsq",parameters:[{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.RANGE}]},"COVARIANCE.P":{method:"covariancep",parameters:[{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.RANGE}]},"COVARIANCE.S":{method:"covariances",parameters:[{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.RANGE}]},"Z.TEST":{method:"ztest",parameters:[{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.NUMBER},{argumentType:s.ArgumentTypes.NUMBER,optionalArg:!0}]},"F.TEST":{method:"ftest",parameters:[{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.RANGE}]},STEYX:{method:"steyx",parameters:[{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.RANGE}]},SLOPE:{method:"slope",parameters:[{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.RANGE}]},"CHISQ.TEST":{method:"chisqtest",parameters:[{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.RANGE}]},"T.TEST":{method:"ttest",parameters:[{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.RANGE},{argumentType:s.ArgumentTypes.INTEGER,minValue:1,maxValue:2},{argumentType:s.ArgumentTypes.INTEGER,minValue:1,maxValue:3}]},SKEW:{method:"skew",parameters:[{argumentType:s.ArgumentTypes.ANY}],repeatLastArgs:1},"SKEW.P":{method:"skewp",parameters:[{argumentType:s.ArgumentTypes.ANY}],repeatLastArgs:1}},g.aliases={COVAR:"COVARIANCE.P",FTEST:"F.TEST",PEARSON:"CORREL",ZTEST:"Z.TEST",CHITEST:"CHISQ.TEST",TTEST:"T.TEST",COVARIANCEP:"COVARIANCE.P",COVARIANCES:"COVARIANCE.S",SKEWP:"SKEW.P"}},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=function(e,t){var n,r,D,L,F,j=this,U=arguments.length>2&&void 0!==arguments[2]&&arguments[2],H=!1,B=this,V=new d.default(B),W=!0;(0,O.hasValidParameter)(U)&&(0,O.registerAsRootInstance)(this);this.rootElement=e,this.rootDocument=e.ownerDocument,this.rootWindow=this.rootDocument.defaultView,this.isDestroyed=!1,this.renderSuspendedCounter=0,this.executionSuspendedCounter=0;var Y=null!==(n=null==t?void 0:t.layoutDirection)&&void 0!==n?n:"inherit",G=["rtl","ltr"].includes(Y)?Y:this.rootWindow.getComputedStyle(this.rootElement).direction;this.rootElement.setAttribute("dir",G),this.isRtl=function(){return"rtl"===G},this.isLtr=function(){return!B.isRtl()},this.getDirectionFactor=function(){return B.isLtr()?1:-1},t.language=(0,N.getValidLanguageCode)(t.language);var z=new M.MetaManager(B,t,[M.DynamicCellMetaMod,M.ExtendMetaPropertiesMod]),K=z.getTableMeta(),X=z.getGlobalMeta(),q=(0,I.createUniqueMap)();this.container=this.rootDocument.createElement("div"),this.renderCall=!1,e.insertBefore(this.container,e.firstChild),(0,O.isRootInstance)(this)&&(0,l._injectProductInfo)(t.licenseKey,e);this.guid="ht_".concat((0,E.randomString)()),this.columnIndexMapper=new R.IndexMapper,this.rowIndexMapper=new R.IndexMapper,D=new C.default(B),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid);var Q=function(e){var t=e.row,n=e.col;return B._createCellCoords(t>=0?B.rowIndexMapper.getRenderableFromVisualIndex(t):t,n>=0?B.columnIndexMapper.getRenderableFromVisualIndex(n):n)},$=function(e){var t=e.row,n=e.col;return B._createCellCoords(t>=0?B.rowIndexMapper.getVisualFromRenderableIndex(t):t,n>=0?B.columnIndexMapper.getVisualFromRenderableIndex(n):n)},Z=new k.Selection(K,{countCols:function(){return B.countCols()},countRows:function(){return B.countRows()},propToCol:function(e){return r.propToCol(e)},isEditorOpened:function(){return!!B.getActiveEditor()&&B.getActiveEditor().isOpened()},countColsTranslated:function(){return j.view.countRenderableColumns()},countRowsTranslated:function(){return j.view.countRenderableRows()},getShortcutManager:function(){return B.getShortcutManager()},createCellCoords:function(e,t){return B._createCellCoords(e,t)},createCellRange:function(e,t,n){return B._createCellRange(e,t,n)},visualToRenderableCoords:Q,renderableToVisualCoords:$,isDisabledCellSelection:function(e,t){return B.getCellMeta(e,t).disableVisualSelection}});this.selection=Z;var J=function(e){e.hiddenIndexesChanged&&j.selection.refresh()};function ee(e){var t=(0,_.normalizeLanguageCode)(e);(0,N.hasLanguageDictionary)(t)?(B.runHooks("beforeLanguageChange",t),X.language=t,B.runHooks("afterLanguageChange",t)):(0,_.warnUserAboutLanguageRegistration)(e)}function te(e,t){var n="className"===e?B.rootElement:B.table;if(W)(0,s.addClass)(n,t);else{var r=[],o=[];X[e]&&(r=Array.isArray(X[e])?X[e]:(0,p.stringToArray)(X[e])),t&&(o=Array.isArray(t)?t:(0,p.stringToArray)(t));var i=(0,p.getDifferenceOfArrays)(r,o),a=(0,p.getDifferenceOfArrays)(o,r);i.length&&(0,s.removeClass)(n,i),a.length&&(0,s.addClass)(n,a)}X[e]=t}function ne(){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 re(e){var t=e.replace(",",".");return!1===isNaN(parseFloat(t))?parseFloat(t):e}function oe(e,t,n){if(e.length){var o=B.getActiveEditor(),a=B.runHooks("beforeChange",e,t||"edit"),u=!0;if(!1!==a){var l=new ne;l.onQueueEmpty=function(e){o&&u&&o.cancelChanges(),n(e)};for(var c=e.length-1;c>=0;c--)if(null===e[c])e.splice(c,1);else{var f=(0,i.default)(e[c],4),d=f[0],h=f[1],p=f[3],y=r.propToCol(h),m=B.getCellMeta(d,y);"numeric"===m.type&&"string"==typeof p&&(0,b.isNumericLike)(p)&&(e[c][3]=re(p)),B.getCellValidator(m)&&(l.addValidatorToQueue(),B.validateCell(e[c][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){u=!1,e.splice(t,1),n.valid=!0;var o=B.getCell(n.visualRow,n.visualCol);null!==o&&(0,s.removeClass)(o,K.invalidCellClassName)}l.removeValidatorFormQueue()}}(c,m),t))}l.checkIfQueueIsEmpty()}else o&&o.cancelChanges()}}function ie(e,t){var n=e.length-1;if(!(n<0)){for(;n>=0;n--){var o=!1;if(null!==e[n]){if(null!==e[n][2]&&void 0!==e[n][2]||null!==e[n][3]&&void 0!==e[n][3]){if(K.allowInsertRow)for(;e[n][0]>B.countRows()-1;){var i=r.createRow(void 0,void 0,t);if(!(i>=1)){o=!0;break}z.createRow(null,i)}if("array"===B.dataType&&(!K.columns||0===K.columns.length)&&K.allowInsertColumn)for(;r.propToCol(e[n][1])>B.countCols()-1;){var a=r.createCol(void 0,void 0,t);if(!(a>=1)){o=!0;break}z.createColumn(null,a)}o||r.set(e[n][0],e[n][1],e[n][3])}}else e.splice(n,1)}B.forceFullRender=!0,L.adjustRowsAndCols(),B.runHooks("beforeChangeRender",e,t),F.lockEditor(),B._refreshBorders(null),F.unlockEditor(),B.view.adjustElementsSize(),B.runHooks("afterChange",e,t||"edit");var s=B.getActiveEditor();s&&(0,l.isDefined)(s.refreshValue)&&s.refreshValue()}}function ae(e,t,n){return Array.isArray(e)?e:[[e,t,n]]}this.columnIndexMapper.addLocalHook("cacheUpdated",J),this.rowIndexMapper.addLocalHook("cacheUpdated",J),this.selection.addLocalHook("beforeSetRangeStart",(function(e){j.runHooks("beforeSetRangeStart",e)})),this.selection.addLocalHook("beforeSetRangeStartOnly",(function(e){j.runHooks("beforeSetRangeStartOnly",e)})),this.selection.addLocalHook("beforeSetRangeEnd",(function(e){j.runHooks("beforeSetRangeEnd",e),e.row<0&&(e.row=j.view._wt.wtTable.getFirstVisibleRow()),e.col<0&&(e.col=j.view._wt.wtTable.getFirstVisibleColumn())})),this.selection.addLocalHook("afterSetRangeEnd",(function(e){var t=(0,h.createObjectPropListener)(!1),n=j.selection.getSelectedRange(),r=n.current(),o=r.from,i=r.to,a=n.size()-1;j.runHooks("afterSelection",o.row,o.col,i.row,i.col,t,a),j.runHooks("afterSelectionByProp",o.row,B.colToProp(o.col),i.row,B.colToProp(i.col),t,a);var u=j.selection.isSelectedByAnyHeader(),l=j.selection.selectedRange.current(),c=!0;H&&(c=!1),t.isTouched()&&(c=!t.value);var f=j.selection.isSelectedByRowHeader(),d=j.selection.isSelectedByColumnHeader();!1!==c&&(u?f?j.view.scrollViewportVertically(B.rowIndexMapper.getRenderableFromVisualIndex(e.row)):d&&j.view.scrollViewportHorizontally(B.columnIndexMapper.getRenderableFromVisualIndex(e.col)):l&&!j.selection.isMultiple()?j.view.scrollViewport(Q(l.from)):j.view.scrollViewport(Q(e))),f&&d?(0,s.addClass)(j.rootElement,["ht__selection--rows","ht__selection--columns"]):f?((0,s.removeClass)(j.rootElement,"ht__selection--columns"),(0,s.addClass)(j.rootElement,"ht__selection--rows")):d?((0,s.removeClass)(j.rootElement,"ht__selection--rows"),(0,s.addClass)(j.rootElement,"ht__selection--columns")):(0,s.removeClass)(j.rootElement,["ht__selection--rows","ht__selection--columns"]),j._refreshBorders(null)})),this.selection.addLocalHook("afterSelectionFinished",(function(e){var t=e.length-1,n=e[t],r=n.from,o=n.to;j.runHooks("afterSelectionEnd",r.row,r.col,o.row,o.col,t),j.runHooks("afterSelectionEndByProp",r.row,B.colToProp(r.col),o.row,B.colToProp(o.col),t)})),this.selection.addLocalHook("afterIsMultipleSelection",(function(e){var t=j.runHooks("afterIsMultipleSelection",e.value);e.value&&(e.value=t)})),this.selection.addLocalHook("beforeModifyTransformStart",(function(e){j.runHooks("modifyTransformStart",e)})),this.selection.addLocalHook("afterModifyTransformStart",(function(e,t,n){j.runHooks("afterModifyTransformStart",e,t,n)})),this.selection.addLocalHook("beforeModifyTransformEnd",(function(e){j.runHooks("modifyTransformEnd",e)})),this.selection.addLocalHook("afterModifyTransformEnd",(function(e,t,n){j.runHooks("afterModifyTransformEnd",e,t,n)})),this.selection.addLocalHook("afterDeselect",(function(){F.destroyEditor(),j._refreshBorders(),(0,s.removeClass)(j.rootElement,["ht__selection--rows","ht__selection--columns"]),j.runHooks("afterDeselect")})),this.selection.addLocalHook("insertRowRequire",(function(e){j.alter("insert_row",e,1,"auto")})),this.selection.addLocalHook("insertColRequire",(function(e){j.alter("insert_col",e,1,"auto")})),L={alter:function(e,t){var n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3?arguments[3]:void 0,u=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,p.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),u=s[0]+s[1];if(r<=u){var l=Math.max(o-(u-r),0);a[1]+=l}else e.push([r,o]);return e}),[t[0]])};switch(e){case"insert_row":var f=B.countSourceRows();if(K.maxRows===f)return;if(t=(0,l.isDefined)(t)?t:f,n=r.createRow(t,o,s)){z.createRow(B.toPhysicalRow(t),o);var d=Z.selectedRange.current(),h=null==d?void 0:d.from,y=null==h?void 0:h.row;if((0,l.isDefined)(y)&&y>=t){var m=d.to,g=m.row,v=m.col,E=h.col;Z.isSelectedByRowHeader()&&(E=-1),Z.getSelectedRange().pop(),Z.setRangeStartOnly(B._createCellCoords(y+n,E),!0),Z.setRangeEnd(B._createCellCoords(g+n,v))}else B._refreshBorders()}break;case"insert_col":if(n=r.createCol(t,o,s)){if(z.createColumn(B.toPhysicalColumn(t),o),Array.isArray(K.colHeaders)){var b=[t,0];b.length+=n,Array.prototype.splice.apply(K.colHeaders,b)}var T=Z.selectedRange.current(),C=null==T?void 0:T.from,w=null==C?void 0:C.col;if((0,l.isDefined)(w)&&w>=t){var R=T.to,O=R.row,S=R.col,A=C.row;Z.isSelectedByColumnHeader()&&(A=-1),Z.getSelectedRange().pop(),Z.setRangeStartOnly(B._createCellCoords(A,w+n),!0),Z.setRangeEnd(B._createCellCoords(O,S+n))}else B._refreshBorders()}break;case"remove_row":var N=function(e){var t=0;(0,p.arrayEach)(e,(function(e){var n=(0,i.default)(e,2),o=n[0],a=n[1],u=(0,l.isEmpty)(o)?B.countRows()-1:Math.max(o-t,0);if(Number.isInteger(o)&&(o=Math.max(o-t,0)),r.removeRow(o,a,s)){z.removeRow(B.toPhysicalRow(u),a);var c=B.countRows(),f=K.fixedRowsTop;f>=u+1&&(K.fixedRowsTop-=Math.min(a,f-u));var d=K.fixedRowsBottom;d&&u>=c-d&&(K.fixedRowsBottom-=Math.min(a,d)),t+=a}}))};Array.isArray(t)?N(c(t)):N([[t,o]]),L.adjustRowsAndCols(),B._refreshBorders();break;case"remove_col":var _=function(e){var t=0;(0,p.arrayEach)(e,(function(e){var n=(0,i.default)(e,2),o=n[0],a=n[1],u=(0,l.isEmpty)(o)?B.countCols()-1:Math.max(o-t,0),c=B.toPhysicalColumn(u);if(Number.isInteger(o)&&(o=Math.max(o-t,0)),r.removeCol(o,a,s)){z.removeColumn(c,a);var f=K.fixedColumnsStart;f>=u+1&&(K.fixedColumnsStart-=Math.min(a,f-u)),Array.isArray(K.colHeaders)&&(void 0===c&&(c=-1),K.colHeaders.splice(c,a)),t+=a}}))};Array.isArray(t)?_(c(t)):_([[t,o]]),L.adjustRowsAndCols(),B._refreshBorders();break;default:throw new Error('There is no such action "'.concat(e,'"'))}u||L.adjustRowsAndCols()},adjustRowsAndCols:function(){var e,t=K.minRows,n=K.minSpareRows,o=K.minCols,i=K.minSpareCols;if(t){var a=B.countRows();a<t&&r.createRow(a,t-a,"auto")}if(n){var s=B.countEmptyRows(!0);if(s<n){var u=n-s,l=Math.min(u,K.maxRows-B.countSourceRows());r.createRow(B.countRows(),l,"auto")}}(o||i)&&(e=B.countEmptyCols(!0));var c=B.countCols();if(o&&!K.columns&&c<o){var f=o-c;e+=f,r.createCol(c,f,"auto")}if(i&&!K.columns&&"array"===B.dataType&&e<i){c=B.countCols();var d=i-e,h=Math.min(d,K.maxCols-c);r.createCol(c,h,"auto")}var y=B.countRows(),m=B.countCols();0!==y&&0!==m||Z.deselect(),Z.isSelected()&&(0,p.arrayEach)(Z.selectedRange,(function(e){var t=!1,n=e.from.row,r=e.from.col,o=e.to.row,i=e.to.col;n>y-1?(t=!0,o>(n=y-1)&&(o=n)):o>y-1&&(t=!0,n>(o=y-1)&&(n=o)),r>m-1?(t=!0,i>(r=m-1)&&(i=r)):i>m-1&&(t=!0,r>(i=m-1)&&(r=i)),t&&B.selectCell(n,r,o,i)})),B.view&&B.view.adjustElementsSize()},populateFromArray:function(e,t,n,r,i,s,u){var c,f,d,y,m=[],g={},v=[],E=e.row,b=e.col;if(0===(f=t.length))return!1;var T=0,C=0;switch((0,h.isObject)(n)&&(T=n.col-b+1,C=n.row-E+1),i){case"shift_down":var w=(0,p.pivot)(t),R=w.length,O=Math.max(R,T),S=B.getData().slice(E),A=(0,p.pivot)(S).slice(b,b+O);for(d=0;d<O;d+=1)if(d<R){for(c=0,f=w[d].length;c<C-f;c+=1)w[d].push(w[d][c%f]);d<A.length?v.push(w[d].concat(A[d])):v.push(w[d].concat(new Array(S.length).fill(null)))}else v.push(w[d%R].concat(A[d]));B.populateFromArray(E,b,(0,p.pivot)(v));break;case"shift_right":var N=t.length,_=Math.max(N,C),k=B.getData().slice(E).map((function(e){return e.slice(b)}));for(c=0;c<_;c+=1)if(c<N){for(d=0,y=t[c].length;d<T-y;d+=1)t[c].push(t[c][d%y]);var M;if(c<k.length)for(var I=0;I<k[c].length;I+=1)t[c].push(k[c][I]);else(M=t[c]).push.apply(M,(0,a.default)(new Array(k[0].length).fill(null)))}else t.push(t[c%f].slice(0,_).concat(k[c]));B.populateFromArray(E,b,t);break;case"overwrite":default:g.row=e.row,g.col=e.col;var P,x={row:n&&e?n.row-e.row+1:1,col:n&&e?n.col-e.col+1:1},D=0,L=0,F=!0,j=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},U=t.length,H=n?n.row-e.row+1:0;for(f=n?H:Math.max(U,H),c=0;c<f&&!(n&&g.row>n.row&&H>U||!K.allowInsertRow&&g.row>B.countRows()-1||g.row>=K.maxRows);c++){var V=c-D,W=j(V).length,Y=n?n.col-e.col+1:0;if(y=n?Y:Math.max(W,Y),g.col=e.col,P=B.getCellMeta(g.row,g.col),"CopyPaste.paste"!==r&&"Autofill.fill"!==r||!P.skipRowOnPaste){for(L=0,d=0;d<y&&!(n&&g.col>n.col&&Y>W||!K.allowInsertColumn&&g.col>B.countCols()-1||g.col>=K.maxCols);d++)if(P=B.getCellMeta(g.row,g.col),"CopyPaste.paste"!==r&&"Autofill.fill"!==r||!P.skipColumnOnPaste)if(P.readOnly&&"UndoRedo.undo"!==r)g.col+=1;else{var G=d-L,z=j(V,G),X=B.getDataAtCell(g.row,g.col),q={row:V,col:G};if("Autofill.fill"===r){var Q=B.runHooks("beforeAutofillInsidePopulate",q,s,t,u,{},x);Q&&(z=(0,l.isUndefined)(Q.value)?z:Q.value)}if(null!==z&&"object"===(0,o.default)(z))if(Array.isArray(z)&&null===X&&(X=[]),null===X||"object"!==(0,o.default)(X))F=!1;else{var $=(0,h.duckSchema)(Array.isArray(X)?X:X[0]||X),Z=(0,h.duckSchema)(Array.isArray(z)?z:z[0]||z);(0,h.isObjectEqual)($,Z)?z=(0,h.deepClone)(z):F=!1}else null!==X&&"object"===(0,o.default)(X)&&(F=!1);F&&m.push([g.row,g.col,z]),F=!0,g.col+=1}else L+=1,g.col+=1,y+=1;g.row+=1}else D+=1,g.row+=1,f+=1}B.setDataAtCell(m,null,null,r||"populateFromArray")}}},this.init=function(){D.setData(K.data),B.runHooks("beforeInit"),((0,c.isMobileBrowser)()||(0,c.isIpadOS)())&&(0,s.addClass)(B.rootElement,"mobile"),this.updateSettings(K,!0),this.view=new T.default(this),F=f.default.getInstance(B,K,Z),B.runHooks("init"),this.forceFullRender=!0,this.view.render(),"object"===(0,o.default)(W)&&(B.runHooks("afterChange",W[0],W[1]),W=!1),B.runHooks("afterInit")},this._createCellCoords=function(e,t){return B.view._wt.createCellCoords(e,t)},this._createCellRange=function(e,t,n){return B.view._wt.createCellRange(e,t,n)},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),u=B.columnIndexMapper.getRenderableFromVisualIndex(o);B.view._wt.getSetting("cellRenderer",s,u,a)}n(e)}else n(e)}(0,l.isRegExp)(i)&&(o=i,i=function(e,t){t(o.test(e))}),(0,u.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,n,i){var a,s,u,l=ae(e,t,n),c=[],f=i;for(a=0,s=l.length;a<s;a++){if("object"!==(0,o.default)(l[a]))throw new Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof l[a][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=l[a][1]>=this.countCols()?l[a][1]:r.colToProp(l[a][1]),c.push([l[a][0],u,D.getAtCell(this.toPhysicalRow(l[a][0]),l[a][1]),l[a][2]])}f||"object"!==(0,o.default)(e)||(f=t),B.runHooks("afterSetDataAtCell",c,f),oe(c,f,(function(){ie(c,f)}))},this.setDataAtRowProp=function(e,t,n,r){var i,a,s=ae(e,t,n),u=[],l=r;for(i=0,a=s.length;i<a;i++)u.push([s[i][0],s[i][1],D.getAtCell(this.toPhysicalRow(s[i][0]),s[i][1]),s[i][2]]);l||"object"!==(0,o.default)(e)||(l=t),B.runHooks("afterSetDataAtRowProp",u,l),oe(u,l,(function(){ie(u,l)}))},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,u,l){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?B._createCellCoords(r,i):null;return L.populateFromArray(B._createCellCoords(e,t),n,c,a,s,u,l)},this.spliceCol=function(e,t,n){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=r).spliceCol.apply(o,[e,t,n].concat(a))},this.spliceRow=function(e,t,n){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=r).spliceRow.apply(o,[e,t,n].concat(a))},this.getSelected=function(){if(Z.isSelected())return(0,p.arrayMap)(Z.getSelectedRange(),(function(e){var t=e.from,n=e.to;return[t.row,t.col,n.row,n.col]}))},this.getSelectedLast=function(){var e,t=this.getSelected();return t&&t.length>0&&(e=t[t.length-1]),e},this.getSelectedRange=function(){if(Z.isSelected())return Array.from(Z.getSelectedRange())},this.getSelectedRangeLast=function(){var e,t=this.getSelectedRange();return t&&t.length>0&&(e=t[t.length-1]),e},this.emptySelectedCells=function(e){var t=this;if(Z.isSelected()&&0!==this.countRows()&&0!==this.countCols()){var n=[];(0,p.arrayEach)(Z.getSelectedRange(),(function(e){var r=e.getTopStartCorner(),o=e.getBottomEndCorner();(0,b.rangeEach)(r.row,o.row,(function(e){(0,b.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()||(F.lockEditor(),this._refreshBorders(null),F.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.updateData=function(e,t){var n=this;(0,M.replaceData)(e,(function(e){r=e}),(function(e){r=e,B.columnIndexMapper.fitToLength(n.getInitialColumnCount()),B.rowIndexMapper.fitToLength(n.countSourceRows()),L.adjustRowsAndCols()}),{hotInstance:B,dataMap:r,dataSource:D,internalSource:"updateData",source:t,firstRun:W})},this.loadData=function(e,t){(0,M.replaceData)(e,(function(e){r=e}),(function(){z.clearCellsCache(),B.initIndexMappers(),L.adjustRowsAndCols(),W&&(W=[null,"loadData"])}),{hotInstance:B,dataMap:r,dataSource:D,internalSource:"loadData",source:t,firstRun:W})},this.getInitialColumnCount=function(){var e=K.columns,t=0;if(Array.isArray(e))t=e.length;else if((0,u.isFunction)(e))if("array"===B.dataType)for(var n=this.countSourceCols(),o=0;o<n;o+=1)e(o)&&(t+=1);else"object"!==B.dataType&&"function"!==B.dataType||(t=r.colToPropCache.length);else if((0,l.isDefined)(K.dataSchema)){var i=r.getSchema();t=Array.isArray(i)?i.length:(0,h.deepObjectSize)(i)}else t=this.countSourceCols();return t},this.initIndexMappers=function(){this.columnIndexMapper.initToLength(this.getInitialColumnCount()),this.rowIndexMapper.initToLength(this.countSourceRows())},this.getData=function(e,t,n,o){return(0,l.isUndefined)(e)?r.getAll():r.getRange(B._createCellCoords(e,t),B._createCellCoords(n,o),r.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,n,o){return r.getCopyableText(B._createCellCoords(e,t),B._createCellCoords(n,o))},this.getCopyableData=function(e,t){return r.getCopyable(e,r.colToProp(t))},this.getSchema=function(){return r.getSchema()},this.updateSettings=function(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=(W?B.loadData:B.updateData).bind(this),a=!1;if((0,l.isDefined)(e.rows))throw new Error('The "rows" setting is no longer supported. Do you mean startRows, minRows or maxRows?');if((0,l.isDefined)(e.cols))throw new Error('The "cols" setting is no longer supported. Do you mean startCols, minCols or maxCols?');if((0,l.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?ee(e.language):"className"===t?te("className",e.className):"tableClassName"===t&&B.table?(te("tableClassName",e.tableClassName),B.view._wt.wtOverlays.syncOverlayTableClassNames()):A.default.getSingleton().isRegistered(t)||A.default.getSingleton().isDeprecated(t)?((0,u.isFunction)(e[t])||Array.isArray(e[t]))&&(e[t].initialHook=!0,B.addHook(t,e[t])):!o&&(0,h.hasOwnProperty)(e,t)&&(X[t]=e[t]));void 0===e.data&&void 0===K.data?i(null,"updateSettings"):void 0!==e.data?i(e.data,"updateSettings"):void 0!==e.columns&&(r.createMap(),B.initIndexMappers());var s=B.countCols(),c=K.columns;if(c&&(0,u.isFunction)(c)&&(a=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||z.clearCache(),s>0)for(t=0,n=0;t<s;t++){if(c){var f=a?c(t):c[n];f&&z.updateColumnMeta(n,f)}n+=1}(0,l.isDefined)(e.cell)&&(0,h.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 p=e.height;if((0,u.isFunction)(p)&&(p=p()),o){var y=B.rootElement.getAttribute("style");y&&B.rootElement.setAttribute("data-initialstyle",B.rootElement.getAttribute("style"))}if(null===p){var m=B.rootElement.getAttribute("data-initialstyle");m&&(m.indexOf("height")>-1||m.indexOf("overflow")>-1)?B.rootElement.setAttribute("style",m):(B.rootElement.style.height="",B.rootElement.style.overflow="")}else void 0!==p&&(B.rootElement.style.height=isNaN(p)?"".concat(p):"".concat(p,"px"),B.rootElement.style.overflow="hidden");if(void 0!==e.width){var g=e.width;(0,u.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)),L.adjustRowsAndCols(),B.view&&!W&&(B.forceFullRender=!0,F.lockEditor(),B._refreshBorders(null),B.view._wt.wtOverlays.adjustElementsSize(),F.unlockEditor()),o||!B.view||""!==d&&""!==p&&void 0!==p||d===p||B.view._wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){var e=B.getSelectedLast();if(K.getValue){if((0,u.isFunction)(K.getValue))return K.getValue.call(B);if(e)return B.getData()[e[0][0]][K.getValue]}else if(e)return B.getDataAtCell(e[0],e[1])},this.getSettings=function(){return K},this.clear=function(){this.selectAll(),this.emptySelectedCells()},this.alter=function(e,t,n,r,o){L.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(B._createCellCoords(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)),B._createCellCoords(o,i)},this.colToProp=function(e){return r.colToProp(e)},this.propToCol=function(e){return r.propToCol(e)},this.toVisualRow=function(e){return j.rowIndexMapper.getVisualFromPhysicalIndex(e)},this.toVisualColumn=function(e){return j.columnIndexMapper.getVisualFromPhysicalIndex(e)},this.toPhysicalRow=function(e){return j.rowIndexMapper.getPhysicalFromVisualIndex(e)},this.toPhysicalColumn=function(e){return j.columnIndexMapper.getPhysicalFromVisualIndex(e)},this.getDataAtCell=function(e,t){return r.get(e,r.colToProp(t))},this.getDataAtRowProp=function(e,t){return r.get(e,t)},this.getDataAtCol=function(e){var t;return(t=[]).concat.apply(t,(0,a.default)(r.getRange(B._createCellCoords(0,e),B._createCellCoords(K.data.length-1,e),r.DESTINATION_RENDERER)))},this.getDataAtProp=function(e){var t,n=r.getRange(B._createCellCoords(0,r.propToCol(e)),B._createCellCoords(K.data.length-1,r.propToCol(e)),r.DESTINATION_RENDERER);return(t=[]).concat.apply(t,(0,a.default)(n))},this.getSourceData=function(e,t,n,r){return void 0===e?D.getData():D.getByRange(B._createCellCoords(e,t),B._createCellCoords(n,r))},this.getSourceDataArray=function(e,t,n,r){return void 0===e?D.getData(!0):D.getByRange(B._createCellCoords(e,t),B._createCellCoords(n,r),!0)},this.getSourceDataAtCol=function(e){return D.getAtColumn(e)},this.setSourceDataAtCell=function(e,t,n,r){var o=ae(e,t,n),a=this.hasHook("afterSetSourceDataAtCell"),s=[];a&&(0,p.arrayEach)(o,(function(e){var t=(0,i.default)(e,3),n=t[0],r=t[1],o=t[2];s.push([n,r,D.getAtCell(n,r),o])})),(0,p.arrayEach)(o,(function(e){var t=(0,i.default)(e,3),n=t[0],r=t[1],o=t[2];D.setAtCell(n,r,o)})),a&&this.runHooks("afterSetSourceDataAtCell",s,r),this.render();var u=B.getActiveEditor();u&&(0,l.isDefined)(u.refreshValue)&&u.refreshValue()},this.getSourceDataAtRow=function(e){return D.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return D.getAtCell(e,t)},this.getDataAtRow=function(e){return r.getRange(B._createCellCoords(e,0),B._createCellCoords(e,this.countCols()-1),r.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],u=i[2],l=i[3],c=null,f=null;void 0===u&&(u=a),void 0===l&&(l=s);var d="mixed";return(0,b.rangeEach)(Math.max(Math.min(a,u),0),Math.max(a,u),(function(e){var t=!0;return(0,b.rangeEach)(Math.max(Math.min(s,l),0),Math.max(s,l),(function(n){var r=o.getCellMeta(e,n);return f=r.type,c?t=c===f:c=f,t})),d=t?f:"mixed",t})),d},this.removeCellMeta=function(e,t,n){var r=[this.toPhysicalRow(e),this.toPhysicalColumn(t)],o=r[0],i=r[1],a=z.getCellMetaKeyValue(o,i,n);!1!==B.runHooks("beforeRemoveCellMeta",e,t,n,a)&&(z.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&&z.removeRow(this.toPhysicalRow(e),n),o.length>0&&(0,p.arrayEach)(o.reverse(),(function(n){z.createRow(t.toPhysicalRow(e)),(0,p.arrayEach)(n,(function(n,r){return t.setCellMetaObject(e,r,n)}))})),B.render()},this.setCellMetaObject=function(e,t,n){var r=this;"object"===(0,o.default)(n)&&(0,h.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)),z.setCellMeta(o,i,n,r),B.runHooks("afterSetCellMeta",e,t,n,r)}},this.getCellsMeta=function(){return z.getCellsMeta()},this.getCellMeta=function(e,t){var n=this.toPhysicalRow(e),r=this.toPhysicalColumn(t);return null===n&&(n=e),null===r&&(r=t),z.getCellMeta(n,r,{visualRow:e,visualColumn:t})},this.getCellMetaAtRow=function(e){return z.getCellsMetaAtRow(e)},this.isColumnModificationAllowed=function(){return!("object"===B.dataType||K.columns)};var se=(0,w.cellMethodLookupFactory)("renderer");this.getCellRenderer=function(e,t){return(0,g.getRenderer)(se.call(this,e,t))},this.getCellEditor=(0,w.cellMethodLookupFactory)("editor");var ue=(0,w.cellMethodLookupFactory)("validator");this.getCellValidator=function(e,t){var n=ue.call(this,e,t);return"string"==typeof n&&(n=(0,v.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 ne;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=K.rowHeaders,n=e;return void 0!==n&&(n=B.runHooks("modifyRowHeader",n)),void 0===n?(t=[],(0,b.rangeEach)(B.countRows()-1,(function(e){t.push(B.getRowHeader(e))}))):Array.isArray(t)&&void 0!==t[n]?t=t[n]:(0,u.isFunction)(t)?t=t(n):t&&"string"!=typeof t&&"number"!=typeof t&&(t=n+1),t},this.hasRowHeaders=function(){return!!K.rowHeaders},this.hasColHeaders=function(){if(void 0!==K.colHeaders&&null!==K.colHeaders)return!!K.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=K.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,u.isFunction)(K.columns)&&K.columns(r)&&t.push(r);return t[e]}(a);!1===K.colHeaders?n=null:K.columns&&(0,u.isFunction)(K.columns)&&K.columns(s)&&K.columns(s).title?n=K.columns(s).title:K.columns&&K.columns[a]&&K.columns[a].title?n=K.columns[a].title:Array.isArray(K.colHeaders)&&void 0!==K.colHeaders[a]?n=K.colHeaders[a]:(0,u.isFunction)(K.colHeaders)?n=K.colHeaders(a):K.colHeaders&&"string"!=typeof K.colHeaders&&"number"!=typeof K.colHeaders&&(n=(0,w.spreadsheetColumnLabel)(t))}return n},this._getColWidthFromSettings=function(e){var t;e>=0&&(t=B.getCellMeta(0,e).width);if(void 0!==t&&t!==K.width||(t=K.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=S.ViewportColumnsCalculator.DEFAULT_WIDTH),t},this._getRowHeightFromSettings=function(e){var t=K.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 D.countRows()},this.countSourceCols=function(){return D.countFirstRowKeys()},this.countRows=function(){return r.getLength()},this.countCols=function(){var e=K.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,b.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,b.rangeEachReverse)(B.countCols()-1,(function(n){if(B.isEmptyCol(n))t+=1;else if(!0===e)return!1})),t},this.isEmptyRow=function(e){return K.isEmptyRow.call(B,e)},this.isEmptyCol=function(e){return K.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,l.isUndefined)(e)&&!(0,l.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&&(H=!0);var r=Z.selectCells(e);return r&&n&&B.listen(),H=!1,r},this.selectColumns=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return Z.selectColumns(e,t)},this.selectRows=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return Z.selectRows(e,t)},this.deselectCell=function(){Z.deselect()},this.selectAll=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e&&this.hasRowHeaders(),n=e&&this.hasColHeaders();H=!0,Z.selectAll(t,n),H=!1};var le=function(e,t){return e.getFirstNotHiddenIndex(t,1,!0)};function ce(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,u=t;if(o){var l=Number.isInteger(e),c=Number.isInteger(t),f=l?le(this.rowIndexMapper,e):void 0,d=c?le(this.columnIndexMapper,t):void 0;if(null===f||null===d)return!1;s=l?B.rowIndexMapper.getRenderableFromVisualIndex(f):void 0,u=c?B.columnIndexMapper.getRenderableFromVisualIndex(d):void 0}var h=Number.isInteger(s),p=Number.isInteger(u);return h&&p?B.view.scrollViewport(B._createCellCoords(s,u),i,r,n,a):h&&!1===p?B.view.scrollViewportVertically(s,i,n):!(!p||!1!==h)&&B.view.scrollViewportHorizontally(u,r,a)},this.destroy=function(){if(B._clearTimeouts(),B._clearImmediates(),B.view&&B.view.destroy(),D&&D.destroy(),D=null,this.getShortcutManager().destroy(),z.clearCache(),(0,O.isRootInstance)(B)){var e=this.rootDocument.querySelector("#hot-display-license-info");e&&e.parentNode.removeChild(e)}(0,s.empty)(B.rootElement),V.destroy(),F&&F.destroy(),B.batchExecution((function(){B.rowIndexMapper.unregisterAll(),B.columnIndexMapper.unregisterAll(),q.getItems().forEach((function(e){(0,i.default)(e,2)[1].destroy()})),q.clear(),B.runHooks("afterDestroy")}),!0),A.default.getSingleton().destroy(B),(0,h.objectEach)(B,(function(e,t,n){(0,u.isFunction)(e)?n[t]=ce(t):"guid"!==t&&(n[t]=null)})),B.isDestroyed=!0,r&&r.destroy(),B.rowIndexMapper=null,B.columnIndexMapper=null,r=null,L=null,Z=null,F=null,B=null},this.getActiveEditor=function(){return F.getActiveEditor()},this.getPlugin=function(e){var t=(0,E.toUpperCaseFirst)(e);return"UndoRedo"===t?this.undoRedo:q.getItem(t)},this.getPluginName=function(e){return e===this.undoRedo?this.undoRedo.constructor.PLUGIN_KEY:q.getId(e)},this.getInstance=function(){return B},this.addHook=function(e,t){A.default.getSingleton().add(e,t,B)},this.hasHook=function(e){return A.default.getSingleton().has(e,B)||A.default.getSingleton().has(e)},this.addHookOnce=function(e,t){A.default.getSingleton().once(e,t,B)},this.removeHook=function(e,t){A.default.getSingleton().remove(e,t,B)},this.runHooks=function(e,t,n,r,o,i,a){return A.default.getSingleton().run(B,e,t,n,r,o,i,a)},this.getTranslatedPhrase=function(e,t){return(0,N.getTranslatedPhrase)(K.language,e,t)},this.toHTML=function(){return(0,y.instanceToHTML)(j)},this.toTableElement=function(){var e=j.rootDocument.createElement("div");return e.insertAdjacentHTML("afterbegin",(0,y.instanceToHTML)(j)),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,p.arrayEach)(this.timeouts,(function(e){clearTimeout(e)}))},this.immediates=[],this._registerImmediate=function(e){this.immediates.push(setImmediate(e))},this._clearImmediates=function(){(0,p.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];F.destroyEditor(e),B.view.render(),t&&Z.isSelected()&&F.prepareEditor()},this.isRtl=function(){return"rtl"===B.rootWindow.getComputedStyle(B.rootElement).direction},this.isLtr=function(){return!B.isRtl()},this.getDirectionFactor=function(){return B.isLtr()?1:-1};var fe=(0,P.createShortcutManager)({beforeKeyDown:function(e){return!1!==j.isListening()&&j.runHooks("beforeKeyDown",e)},afterKeyDown:function(e){j.isDestroyed||B.runHooks("afterDocumentKeyDown",e)},ownerWindow:this.rootWindow});this.getShortcutManager=function(){return fe};var de=fe.addContext("grid"),he={runOnlyIf:function(){return(0,l.isDefined)(B.getSelected())&&B.countRenderedRows()>0&&B.countRenderedCols()>0},group:"gridDefault"};fe.setActiveContextName("grid"),de.addShortcuts([{keys:[["Control/Meta","A"]],callback:function(){B.selectAll()}},{keys:[["Control/Meta","Enter"]],callback:function(){for(var e=B.getSelectedRange(),t=e[e.length-1].highlight,n=t.row,r=t.col,o=B.getDataAtCell(n,r),i=new Map,a=0;a<e.length;a++)e[a].forAll((function(e,t){e>=0&&t>=0&&(e!==n||t!==r)&&(B.getCellMeta(e,t).readOnly||i.set("".concat(e,"x").concat(t),[e,t,o]))}));B.setDataAtCell(Array.from(i.values()))},runOnlyIf:function(){return B.getSelectedRangeLast().getCellsCount()>1}},{keys:[["ArrowUp"]],callback:function(){Z.transformStart(-1,0)}},{keys:[["ArrowUp","Control/Meta"]],captureCtrl:!0,callback:function(){Z.setRangeStart(B._createCellCoords(B.rowIndexMapper.getFirstNotHiddenIndex(0,1),B.getSelectedRangeLast().highlight.col))}},{keys:[["ArrowUp","Shift"]],callback:function(){Z.transformEnd(-1,0)}},{keys:[["ArrowUp","Shift","Control/Meta"]],captureCtrl:!0,callback:function(){var e=B.getSelectedRangeLast(),t=e.from,n=e.to,r=B.rowIndexMapper.getFirstNotHiddenIndex(0,1);Z.setRangeStart(t.clone()),Z.setRangeEnd(B._createCellCoords(r,n.col))},runOnlyIf:function(){return!(B.selection.isSelectedByCorner()||B.selection.isSelectedByColumnHeader())}},{keys:[["ArrowDown"]],callback:function(){Z.transformStart(1,0)}},{keys:[["ArrowDown","Control/Meta"]],captureCtrl:!0,callback:function(){Z.setRangeStart(B._createCellCoords(B.rowIndexMapper.getFirstNotHiddenIndex(B.countRows()-1,-1),B.getSelectedRangeLast().highlight.col))}},{keys:[["ArrowDown","Shift"]],callback:function(){Z.transformEnd(1,0)}},{keys:[["ArrowDown","Shift","Control/Meta"]],captureCtrl:!0,callback:function(){var e=B.getSelectedRangeLast(),t=e.from,n=e.to,r=B.rowIndexMapper.getFirstNotHiddenIndex(B.countRows()-1,-1);Z.setRangeStart(t.clone()),Z.setRangeEnd(B._createCellCoords(r,n.col))},runOnlyIf:function(){return!(B.selection.isSelectedByCorner()||B.selection.isSelectedByColumnHeader())}},{keys:[["ArrowLeft"]],callback:function(){Z.transformStart(0,-1*B.getDirectionFactor())}},{keys:[["ArrowLeft","Control/Meta"]],captureCtrl:!0,callback:function(){var e,t=B.getSelectedRangeLast().highlight.row,n=(e=B.columnIndexMapper).getFirstNotHiddenIndex.apply(e,(0,a.default)(B.isRtl()?[B.countCols()-1,-1]:[0,1]));Z.setRangeStart(B._createCellCoords(t,n))}},{keys:[["ArrowLeft","Shift"]],callback:function(){Z.transformEnd(0,-1*B.getDirectionFactor())}},{keys:[["ArrowLeft","Shift","Control/Meta"]],captureCtrl:!0,callback:function(){var e,t=B.getSelectedRangeLast(),n=t.from,r=t.to,o=(e=B.columnIndexMapper).getFirstNotHiddenIndex.apply(e,(0,a.default)(B.isRtl()?[B.countCols()-1,-1]:[0,1]));Z.setRangeStart(n.clone()),Z.setRangeEnd(B._createCellCoords(r.row,o))},runOnlyIf:function(){return!(B.selection.isSelectedByCorner()||B.selection.isSelectedByRowHeader())}},{keys:[["ArrowRight"]],callback:function(){Z.transformStart(0,B.getDirectionFactor())}},{keys:[["ArrowRight","Control/Meta"]],captureCtrl:!0,callback:function(){var e,t=B.getSelectedRangeLast().highlight.row,n=(e=B.columnIndexMapper).getFirstNotHiddenIndex.apply(e,(0,a.default)(B.isRtl()?[0,1]:[B.countCols()-1,-1]));Z.setRangeStart(B._createCellCoords(t,n))}},{keys:[["ArrowRight","Shift"]],callback:function(){Z.transformEnd(0,B.getDirectionFactor())}},{keys:[["ArrowRight","Shift","Control/Meta"]],captureCtrl:!0,callback:function(){var e,t=B.getSelectedRangeLast(),n=t.from,r=t.to,o=(e=B.columnIndexMapper).getFirstNotHiddenIndex.apply(e,(0,a.default)(B.isRtl()?[0,1]:[B.countCols()-1,-1]));Z.setRangeStart(n.clone()),Z.setRangeEnd(B._createCellCoords(r.row,o))},runOnlyIf:function(){return!(B.selection.isSelectedByCorner()||B.selection.isSelectedByRowHeader())}},{keys:[["Home"]],captureCtrl:!0,callback:function(){var e=parseInt(B.getSettings().fixedColumnsStart,10),t=B.getSelectedRangeLast().highlight.row,n=B.columnIndexMapper.getFirstNotHiddenIndex(e,1);Z.setRangeStart(B._createCellCoords(t,n))},runOnlyIf:function(){return B.view.isMainTableNotFullyCoveredByOverlays()}},{keys:[["Home","Shift"]],callback:function(){Z.setRangeEnd(B._createCellCoords(Z.selectedRange.current().from.row,B.columnIndexMapper.getFirstNotHiddenIndex(0,1)))}},{keys:[["Home","Control/Meta"]],captureCtrl:!0,callback:function(){var e=parseInt(B.getSettings().fixedRowsTop,10),t=parseInt(B.getSettings().fixedColumnsStart,10),n=B.rowIndexMapper.getFirstNotHiddenIndex(e,1),r=B.columnIndexMapper.getFirstNotHiddenIndex(t,1);Z.setRangeStart(B._createCellCoords(n,r))},runOnlyIf:function(){return B.view.isMainTableNotFullyCoveredByOverlays()}},{keys:[["End"]],captureCtrl:!0,callback:function(){Z.setRangeStart(B._createCellCoords(B.getSelectedRangeLast().highlight.row,B.columnIndexMapper.getFirstNotHiddenIndex(B.countCols()-1,-1)))},runOnlyIf:function(){return B.view.isMainTableNotFullyCoveredByOverlays()}},{keys:[["End","Shift"]],callback:function(){Z.setRangeEnd(B._createCellCoords(Z.selectedRange.current().from.row,B.columnIndexMapper.getFirstNotHiddenIndex(B.countCols()-1,-1)))}},{keys:[["End","Control/Meta"]],captureCtrl:!0,callback:function(){var e=parseInt(B.getSettings().fixedRowsBottom,10),t=B.rowIndexMapper.getFirstNotHiddenIndex(B.countRows()-e-1,-1),n=B.columnIndexMapper.getFirstNotHiddenIndex(B.countCols()-1,-1);Z.setRangeStart(B._createCellCoords(t,n))},runOnlyIf:function(){return B.view.isMainTableNotFullyCoveredByOverlays()}},{keys:[["PageUp"]],callback:function(){Z.transformStart(-B.countVisibleRows(),0)}},{keys:[["PageUp","Shift"]],callback:function(){var e=B.getSelectedRangeLast().to,t=Math.max(e.row-B.countVisibleRows(),0),n=B.rowIndexMapper.getFirstNotHiddenIndex(t,1);if(null!==n){var r=B._createCellCoords(n,e.col),o=e.row-B.view.getFirstFullyVisibleRow(),i=Math.max(r.row-o,0);Z.setRangeEnd(r),B.scrollViewportTo(i)}}},{keys:[["PageDown"]],callback:function(){Z.transformStart(B.countVisibleRows(),0)}},{keys:[["PageDown","Shift"]],callback:function(){var e=B.getSelectedRangeLast().to,t=Math.min(e.row+B.countVisibleRows(),B.countRows()-1),n=B.rowIndexMapper.getFirstNotHiddenIndex(t,-1);if(null!==n){var r=B._createCellCoords(n,e.col),o=e.row-B.view.getFirstFullyVisibleRow(),i=Math.min(r.row-o,B.countRows()-1);Z.setRangeEnd(r),B.scrollViewportTo(i)}}},{keys:[["Tab"]],callback:function(e){var t="function"==typeof K.tabMoves?K.tabMoves(e):K.tabMoves;Z.transformStart(t.row,t.col,!0)}},{keys:[["Shift","Tab"]],callback:function(e){var t="function"==typeof K.tabMoves?K.tabMoves(e):K.tabMoves;Z.transformStart(-t.row,-t.col)}}],he),(0,m.getPluginsNames)().forEach((function(e){var t=(0,m.getPlugin)(e);q.addItem(e,new t(j))})),A.default.getSingleton().run(B,"construct")};var o=r(n(21)),i=r(n(34)),a=r(n(44));n(42),n(73),n(54),n(67),n(52),n(13),n(18),n(137),n(37),n(12),n(63),n(22),n(2),n(35),n(138),n(0),n(26),n(76),n(751),n(3),n(33),n(4);var s=n(23),u=n(68),l=n(32),c=n(101),f=r(n(192)),d=r(n(59)),h=n(17),p=n(20),y=n(296),m=n(230),g=n(193),v=n(194),E=n(91),b=n(47),T=r(n(761)),C=r(n(800)),w=n(144),R=n(82),O=n(302),S=n(158),A=r(n(74)),N=n(591),_=n(592),k=n(306),M=n(594),I=n(231),P=n(835),x=null},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},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.__esModule=!0,e.exports.default=e.exports},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.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(29),o=n(132),i=n(60),a=n(128),s=n(173),u=n(435),l=/MSIE .\./.test(a),c=r.Function,f=function(e){return l?function(t,n){var r=u(arguments.length,1)>2,a=i(t)?t:c(t),l=r?s(arguments,2):void 0;return e(r?function(){o(a,this,l)}:a,n)}:e};e.exports={setTimeout:f(r.setTimeout),setInterval:f(r.setInterval)}},function(e,t,n){var r=n(29).TypeError;e.exports=function(e,t){if(e<t)throw r("Not enough arguments");return e}},function(e,t,n){var r,o,i,a,s=n(29),u=n(132),l=n(177),c=n(60),f=n(62),d=n(39),h=n(332),p=n(173),y=n(205),m=n(435),g=n(753),v=n(356),E=s.setImmediate,b=s.clearImmediate,T=s.process,C=s.Dispatch,w=s.Function,R=s.MessageChannel,O=s.String,S=0,A={};try{r=s.location}catch(e){}var N=function(e){if(f(A,e)){var t=A[e];delete A[e],t()}},_=function(e){return function(){N(e)}},k=function(e){N(e.data)},M=function(e){s.postMessage(O(e),r.protocol+"//"+r.host)};E&&b||(E=function(e){m(arguments.length,1);var t=c(e)?e:w(e),n=p(arguments,1);return A[++S]=function(){u(t,void 0,n)},o(S),S},b=function(e){delete A[e]},v?o=function(e){T.nextTick(_(e))}:C&&C.now?o=function(e){C.now(_(e))}:R&&!g?(a=(i=new R).port2,i.port1.onmessage=k,o=l(a.postMessage,a)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!d(M)?(o=M,s.addEventListener("message",k,!1)):o="onreadystatechange"in y("script")?function(e){h.appendChild(y("script")).onreadystatechange=function(){h.removeChild(this),N(e)}}:function(e){setTimeout(_(e),0)}),e.exports={set:E,clear:b}},function(e,t,n){e.exports=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,n){return(t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,n)}function n(){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}}function r(e,o,i){return(r=n()?Reflect.construct:function(e,n,r){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(e,o));return r&&t(i,r.prototype),i}).apply(null,arguments)}function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(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)?i(e,t):void 0}}(e)||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.")}()}function i(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}var a=Object.hasOwnProperty,s=Object.setPrototypeOf,u=Object.isFrozen,l=Object.getPrototypeOf,c=Object.getOwnPropertyDescriptor,f=Object.freeze,d=Object.seal,h=Object.create,p="undefined"!=typeof Reflect&&Reflect,y=p.apply,m=p.construct;y||(y=function(e,t,n){return e.apply(t,n)}),f||(f=function(e){return e}),d||(d=function(e){return e}),m||(m=function(e,t){return r(e,o(t))});var g,v=N(Array.prototype.forEach),E=N(Array.prototype.pop),b=N(Array.prototype.push),T=N(String.prototype.toLowerCase),C=N(String.prototype.match),w=N(String.prototype.replace),R=N(String.prototype.indexOf),O=N(String.prototype.trim),S=N(RegExp.prototype.test),A=(g=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return m(g,t)});function N(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return y(e,t,r)}}function _(e,t){s&&s(e,null);for(var n=t.length;n--;){var r=t[n];if("string"==typeof r){var o=T(r);o!==r&&(u(t)||(t[n]=o),r=o)}e[r]=!0}return e}function k(e){var t,n=h(null);for(t in e)y(a,e,[t])&&(n[t]=e[t]);return n}function M(e,t){for(;null!==e;){var n=c(e,t);if(n){if(n.get)return N(n.get);if("function"==typeof n.value)return N(n.value)}e=l(e)}return function(e){return console.warn("fallback value for",e),null}}var I=f(["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"]),P=f(["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"]),x=f(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),D=f(["animate","color-profile","cursor","discard","fedropshadow","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"]),L=f(["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"]),F=f(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),j=f(["#text"]),U=f(["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","nonce","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"]),H=f(["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","transform-origin","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"]),B=f(["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"]),V=f(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),W=d(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Y=d(/<%[\w\W]*|[\w\W]*%>/gm),G=d(/^data-[\-\w.\u00B7-\uFFFF]/),z=d(/^aria-[\-\w]+$/),K=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),X=d(/^(?:\w+script|data):/i),q=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Q=d(/^html$/i),$=function(){return"undefined"==typeof window?null:window},Z=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null;n.currentScript&&n.currentScript.hasAttribute("data-tt-policy-suffix")&&(r=n.currentScript.getAttribute("data-tt-policy-suffix"));var o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$(),r=function(e){return t(e)};if(r.version="2.3.7",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;var i=n.document,a=n.document,s=n.DocumentFragment,u=n.HTMLTemplateElement,l=n.Node,c=n.Element,d=n.NodeFilter,h=n.NamedNodeMap,p=void 0===h?n.NamedNodeMap||n.MozNamedAttrMap:h,y=n.HTMLFormElement,m=n.DOMParser,g=n.trustedTypes,N=c.prototype,J=M(N,"cloneNode"),ee=M(N,"nextSibling"),te=M(N,"childNodes"),ne=M(N,"parentNode");if("function"==typeof u){var re=a.createElement("template");re.content&&re.content.ownerDocument&&(a=re.content.ownerDocument)}var oe=Z(g,i),ie=oe?oe.createHTML(""):"",ae=a,se=ae.implementation,ue=ae.createNodeIterator,le=ae.createDocumentFragment,ce=ae.getElementsByTagName,fe=i.importNode,de={};try{de=k(a).documentMode?a.documentMode:{}}catch(e){}var he={};r.isSupported="function"==typeof ne&&se&&void 0!==se.createHTMLDocument&&9!==de;var pe,ye,me=W,ge=Y,ve=G,Ee=z,be=X,Te=q,Ce=K,we=null,Re=_({},[].concat(o(I),o(P),o(x),o(L),o(j))),Oe=null,Se=_({},[].concat(o(U),o(H),o(B),o(V))),Ae=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ne=null,_e=null,ke=!0,Me=!0,Ie=!1,Pe=!1,xe=!1,De=!1,Le=!1,Fe=!1,je=!1,Ue=!1,He=!0,Be=!0,Ve=!1,We={},Ye=null,Ge=_({},["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"]),ze=null,Ke=_({},["audio","video","img","source","image","track"]),Xe=null,qe=_({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Qe="http://www.w3.org/1998/Math/MathML",$e="http://www.w3.org/2000/svg",Ze="http://www.w3.org/1999/xhtml",Je=Ze,et=!1,tt=["application/xhtml+xml","text/html"],nt="text/html",rt=null,ot=a.createElement("form"),it=function(e){return e instanceof RegExp||e instanceof Function},at=function(t){rt&&rt===t||(t&&"object"===e(t)||(t={}),t=k(t),we="ALLOWED_TAGS"in t?_({},t.ALLOWED_TAGS):Re,Oe="ALLOWED_ATTR"in t?_({},t.ALLOWED_ATTR):Se,Xe="ADD_URI_SAFE_ATTR"in t?_(k(qe),t.ADD_URI_SAFE_ATTR):qe,ze="ADD_DATA_URI_TAGS"in t?_(k(Ke),t.ADD_DATA_URI_TAGS):Ke,Ye="FORBID_CONTENTS"in t?_({},t.FORBID_CONTENTS):Ge,Ne="FORBID_TAGS"in t?_({},t.FORBID_TAGS):{},_e="FORBID_ATTR"in t?_({},t.FORBID_ATTR):{},We="USE_PROFILES"in t&&t.USE_PROFILES,ke=!1!==t.ALLOW_ARIA_ATTR,Me=!1!==t.ALLOW_DATA_ATTR,Ie=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Pe=t.SAFE_FOR_TEMPLATES||!1,xe=t.WHOLE_DOCUMENT||!1,Fe=t.RETURN_DOM||!1,je=t.RETURN_DOM_FRAGMENT||!1,Ue=t.RETURN_TRUSTED_TYPE||!1,Le=t.FORCE_BODY||!1,He=!1!==t.SANITIZE_DOM,Be=!1!==t.KEEP_CONTENT,Ve=t.IN_PLACE||!1,Ce=t.ALLOWED_URI_REGEXP||Ce,Je=t.NAMESPACE||Ze,t.CUSTOM_ELEMENT_HANDLING&&it(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ae.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&it(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ae.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ae.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),pe=pe=-1===tt.indexOf(t.PARSER_MEDIA_TYPE)?nt:t.PARSER_MEDIA_TYPE,ye="application/xhtml+xml"===pe?function(e){return e}:T,Pe&&(Me=!1),je&&(Fe=!0),We&&(we=_({},o(j)),Oe=[],!0===We.html&&(_(we,I),_(Oe,U)),!0===We.svg&&(_(we,P),_(Oe,H),_(Oe,V)),!0===We.svgFilters&&(_(we,x),_(Oe,H),_(Oe,V)),!0===We.mathMl&&(_(we,L),_(Oe,B),_(Oe,V))),t.ADD_TAGS&&(we===Re&&(we=k(we)),_(we,t.ADD_TAGS)),t.ADD_ATTR&&(Oe===Se&&(Oe=k(Oe)),_(Oe,t.ADD_ATTR)),t.ADD_URI_SAFE_ATTR&&_(Xe,t.ADD_URI_SAFE_ATTR),t.FORBID_CONTENTS&&(Ye===Ge&&(Ye=k(Ye)),_(Ye,t.FORBID_CONTENTS)),Be&&(we["#text"]=!0),xe&&_(we,["html","head","body"]),we.table&&(_(we,["tbody"]),delete Ne.tbody),f&&f(t),rt=t)},st=_({},["mi","mo","mn","ms","mtext"]),ut=_({},["foreignobject","desc","title","annotation-xml"]),lt=_({},["title","style","font","a","script"]),ct=_({},P);_(ct,x),_(ct,D);var ft=_({},L);_(ft,F);var dt=function(e){var t=ne(e);t&&t.tagName||(t={namespaceURI:Ze,tagName:"template"});var n=T(e.tagName),r=T(t.tagName);return e.namespaceURI===$e?t.namespaceURI===Ze?"svg"===n:t.namespaceURI===Qe?"svg"===n&&("annotation-xml"===r||st[r]):Boolean(ct[n]):e.namespaceURI===Qe?t.namespaceURI===Ze?"math"===n:t.namespaceURI===$e?"math"===n&&ut[r]:Boolean(ft[n]):e.namespaceURI===Ze&&!(t.namespaceURI===$e&&!ut[r])&&!(t.namespaceURI===Qe&&!st[r])&&!ft[n]&&(lt[n]||!ct[n])},ht=function(e){b(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},pt=function(e,t){try{b(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){b(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Oe[e])if(Fe||je)try{ht(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},yt=function(e){var t,n;if(Le)e="<remove></remove>"+e;else{var r=C(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===pe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=oe?oe.createHTML(e):e;if(Je===Ze)try{t=(new m).parseFromString(o,pe)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(Je,"template",null);try{t.documentElement.innerHTML=et?"":o}catch(e){}}var i=t.body||t.documentElement;return e&&n&&i.insertBefore(a.createTextNode(n),i.childNodes[0]||null),Je===Ze?ce.call(t,xe?"html":"body")[0]:xe?t.documentElement:i},mt=function(e){return ue.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT,null,!1)},gt=function(e){return e instanceof y&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof p)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},vt=function(t){return"object"===e(l)?t instanceof l:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},Et=function(e,t,n){he[e]&&v(he[e],(function(e){e.call(r,t,n,rt)}))},bt=function(e){var t;if(Et("beforeSanitizeElements",e,null),gt(e))return ht(e),!0;if(S(/[\u0080-\uFFFF]/,e.nodeName))return ht(e),!0;var n=ye(e.nodeName);if(Et("uponSanitizeElement",e,{tagName:n,allowedTags:we}),e.hasChildNodes()&&!vt(e.firstElementChild)&&(!vt(e.content)||!vt(e.content.firstElementChild))&&S(/<[/\w]/g,e.innerHTML)&&S(/<[/\w]/g,e.textContent))return ht(e),!0;if("select"===n&&S(/<template/i,e.innerHTML))return ht(e),!0;if(!we[n]||Ne[n]){if(!Ne[n]&&Ct(n)){if(Ae.tagNameCheck instanceof RegExp&&S(Ae.tagNameCheck,n))return!1;if(Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(n))return!1}if(Be&&!Ye[n]){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 ht(e),!0}return e instanceof c&&!dt(e)?(ht(e),!0):"noscript"!==n&&"noembed"!==n||!S(/<\/no(script|embed)/i,e.innerHTML)?(Pe&&3===e.nodeType&&(t=e.textContent,t=w(t,me," "),t=w(t,ge," "),e.textContent!==t&&(b(r.removed,{element:e.cloneNode()}),e.textContent=t)),Et("afterSanitizeElements",e,null),!1):(ht(e),!0)},Tt=function(e,t,n){if(He&&("id"===t||"name"===t)&&(n in a||n in ot))return!1;if(Me&&!_e[t]&&S(ve,t));else if(ke&&S(Ee,t));else if(!Oe[t]||_e[t]){if(!(Ct(e)&&(Ae.tagNameCheck instanceof RegExp&&S(Ae.tagNameCheck,e)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(e))&&(Ae.attributeNameCheck instanceof RegExp&&S(Ae.attributeNameCheck,t)||Ae.attributeNameCheck instanceof Function&&Ae.attributeNameCheck(t))||"is"===t&&Ae.allowCustomizedBuiltInElements&&(Ae.tagNameCheck instanceof RegExp&&S(Ae.tagNameCheck,n)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(n))))return!1}else if(Xe[t]);else if(S(Ce,w(n,Te,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==R(n,"data:")||!ze[e])if(Ie&&!S(be,w(n,Te,"")));else if(n)return!1;return!0},Ct=function(e){return e.indexOf("-")>0},wt=function(e){var t,n,o,i;Et("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Oe};for(i=a.length;i--;){var u=t=a[i],l=u.name,c=u.namespaceURI;if(n="value"===l?t.value:O(t.value),o=ye(l),s.attrName=o,s.attrValue=n,s.keepAttr=!0,s.forceKeepAttr=void 0,Et("uponSanitizeAttribute",e,s),n=s.attrValue,!s.forceKeepAttr&&(pt(l,e),s.keepAttr))if(S(/\/>/i,n))pt(l,e);else{Pe&&(n=w(n,me," "),n=w(n,ge," "));var f=ye(e.nodeName);if(Tt(f,o,n))try{c?e.setAttributeNS(c,l,n):e.setAttribute(l,n),E(r.removed)}catch(e){}}}Et("afterSanitizeAttributes",e,null)}},Rt=function e(t){var n,r=mt(t);for(Et("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Et("uponSanitizeShadowNode",n,null),bt(n)||(n.content instanceof s&&e(n.content),wt(n));Et("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(t,o){var a,u,c,f,d;if((et=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!vt(t)){if("function"!=typeof t.toString)throw A("toString is not a function");if("string"!=typeof(t=t.toString()))throw A("dirty is not a string, aborting")}if(!r.isSupported){if("object"===e(n.toStaticHTML)||"function"==typeof n.toStaticHTML){if("string"==typeof t)return n.toStaticHTML(t);if(vt(t))return n.toStaticHTML(t.outerHTML)}return t}if(De||at(o),r.removed=[],"string"==typeof t&&(Ve=!1),Ve){if(t.nodeName){var h=ye(t.nodeName);if(!we[h]||Ne[h])throw A("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof l)1===(u=(a=yt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===u.nodeName||"HTML"===u.nodeName?a=u:a.appendChild(u);else{if(!Fe&&!Pe&&!xe&&-1===t.indexOf("<"))return oe&&Ue?oe.createHTML(t):t;if(!(a=yt(t)))return Fe?null:Ue?ie:""}a&&Le&&ht(a.firstChild);for(var p=mt(Ve?t:a);c=p.nextNode();)3===c.nodeType&&c===f||bt(c)||(c.content instanceof s&&Rt(c.content),wt(c),f=c);if(f=null,Ve)return t;if(Fe){if(je)for(d=le.call(a.ownerDocument);a.firstChild;)d.appendChild(a.firstChild);else d=a;return Oe.shadowroot&&(d=fe.call(i,d,!0)),d}var y=xe?a.outerHTML:a.innerHTML;return xe&&we["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&S(Q,a.ownerDocument.doctype.name)&&(y="<!DOCTYPE "+a.ownerDocument.doctype.name+">\n"+y),Pe&&(y=w(y,me," "),y=w(y,ge," ")),oe&&Ue?oe.createHTML(y):y},r.setConfig=function(e){at(e),De=!0},r.clearConfig=function(){rt=null,De=!1},r.isValidAttribute=function(e,t,n){rt||at({});var r=ye(e),o=ye(t);return Tt(r,o,n)},r.addHook=function(e,t){"function"==typeof t&&(he[e]=he[e]||[],b(he[e],t))},r.removeHook=function(e){if(he[e])return E(he[e])},r.removeHooks=function(e){he[e]&&(he[e]=[])},r.removeAllHooks=function(){he={}},r}()}(),window.DOMPurify=n(437)},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},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(70),o=n(215),i=n(65),a=n(131),s=n(71),u=n(89),l=n(129),c=n(261),f=n(216);o("match",(function(e,t,n){return[function(t){var n=u(this),o=null==t?void 0:l(t,e);return o?r(o,t,n):new RegExp(t)[e](s(n))},function(e){var r=i(this),o=s(e),u=n(t,r,o);if(u.done)return u.value;if(!r.global)return f(r,o);var l=r.unicode;r.lastIndex=0;for(var d,h=[],p=0;null!==(d=f(r,o));){var y=s(d[0]);h[p]=y,""===y&&(r.lastIndex=c(o,a(r.lastIndex),l)),p++}return 0===p?null:h}]}))},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6));n(3),n(0),n(2),n(11),n(4);var a=n(297),s=new WeakMap,u=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,u=t.overrideFn,l=t.calculationType,c=t.stretchMode,f=t.stretchingItemWidthFn,d=void 0===f?function(e){return e}:f;(0,o.default)(this,e),s.set(this,{viewportWidth:n,scrollOffset:r,totalColumns:i,columnWidthFn:a,overrideFn:u,calculationType:l,stretchingColumnWidthFn:d}),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,u=o.overrideFn,l=o.scrollOffset,c=o.totalColumns,f=o.viewportWidth,d=0;d<c;d++){e=this._getColumnWidth(d),t<=l&&i!==a.FULLY_VISIBLE_TYPE&&(this.startColumn=d);var h=l>0?f+1:f;if(t>=l&&t+(i===a.FULLY_VISIBLE_TYPE?e:0)<=l+h&&(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=d),this.endColumn=d),r.push(t),t+=e,i!==a.FULLY_VISIBLE_TYPE&&(this.endColumn=d),t>=l+f){n=!1;break}}if(this.endColumn===c-1&&n)for(this.startColumn=this.endColumn;this.startColumn>0;){var p=r[this.endColumn]+e-r[this.startColumn-1];if((p<=f||i!==a.FULLY_VISIBLE_TYPE)&&(this.startColumn-=1),p>f)break}i===a.RENDER_TYPE&&null!==this.startColumn&&u&&u(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),u=n.stretchingColumnWidthFn(void 0,i);"number"==typeof u?t-=u:o+=a}var l=t-o;if("all"===this.stretch&&l>0)this.stretchAllRatio=t/o,this.stretchAllColumnsWidth=[],this.needVerifyLastColumnWidth=!0;else if("last"===this.stretch&&t!==1/0){var c=this._getColumnWidth(r-1),f=l+c;this.stretchLastWidth=f>=0?f:c}}}},{key:"getStretchedColumnWidth",value:function(e,t){var n=null;return"all"===this.stretch&&0!==this.stretchAllRatio?n=this._getStretchedAllColumnWidth(e,t):"last"===this.stretch&&0!==this.stretchLastWidth&&(n=this._getStretchedLastColumnWidth(e)),n}},{key:"_getStretchedAllColumnWidth",value:function(e,t){var n=0,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 u=0;u<this.stretchAllColumnsWidth.length;u++)n+=this.stretchAllColumnsWidth[u];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=u},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6));n(3),n(0),n(2),n(11),n(4);var a=n(297),s=new WeakMap,u=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,u=t.overrideFn,l=t.calculationType,c=t.scrollbarHeight;(0,o.default)(this,e),s.set(this,{viewportHeight:n,scrollOffset:r,totalRows:i,rowHeightFn:a,overrideFn:u,calculationType:l,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),u=i.calculationType,l=i.overrideFn,c=i.rowHeightFn,f=i.scrollOffset,d=i.totalRows,h=i.viewportHeight,p=i.horizontalScrollbarHeight||0,y=0;y<d;y++)if(t=c(y),isNaN(t)&&(t=e.DEFAULT_HEIGHT),n<=f&&u!==a.FULLY_VISIBLE_TYPE&&(this.startRow=y),n>=f&&n+(u===a.FULLY_VISIBLE_TYPE?t:0)<=f+h-p&&(null===this.startRow&&(this.startRow=y),this.endRow=y),o.push(n),n+=t,u!==a.FULLY_VISIBLE_TYPE&&(this.endRow=y),n>=f+h-p){r=!1;break}if(this.endRow===d-1&&r)for(this.startRow=this.endRow;this.startRow>0;){var m=o[this.endRow]+t-o[this.startRow-1];if((m<=h-p||u!==a.FULLY_VISIBLE_TYPE)&&(this.startRow-=1),m>=h-p)break}u===a.RENDER_TYPE&&null!==this.startRow&&l&&l(this),this.startPosition=o[this.startRow],void 0===this.startPosition&&(this.startPosition=null),d<this.endRow&&(this.endRow=d-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}],[{key:"DEFAULT_HEIGHT",get:function(){return 23}}]),e}();t.default=u},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.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0,n(42),n(49),n(35),n(3),n(0),n(2),n(11),n(4);var o=r(n(5)),i=r(n(6)),a=r(n(43)),s=r(n(103)),u=r(n(104)),l=r(n(298));function c(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var f=new WeakMap,d=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,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];(0,o.default)(this,e),(0,a.default)(this,"highlight",null),(0,a.default)(this,"from",null),(0,a.default)(this,"to",null),c(this,f,{writable:!0,value:!1}),this.highlight=t.clone().normalize(),this.from=n.clone(),this.to=r.clone(),(0,u.default)(this,f,i)}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:"getCellsCount",value:function(){return this.getWidth()*this.getHeight()}},{key:"includes",value:function(e){var t=e.row,n=e.col,r=this.getOuterTopStartCorner(),o=this.getOuterBottomEndCorner();return r.row<=t&&o.row>=t&&r.col<=n&&o.col>=n}},{key:"includesRange",value:function(e){return this.includes(e.getOuterTopStartCorner())&&this.includes(e.getOuterBottomEndCorner())}},{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.getOuterTopStartCorner(),n=this.getOuterBottomEndCorner();return(e.row<t.row||e.col<t.col||e.row>n.row||e.col>n.col)&&(this.from=this._createCellCoords(Math.min(t.row,e.row),Math.min(t.col,e.col)),this.to=this._createCellCoords(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.getOuterTopStartCorner(),n=this.getOuterBottomEndCorner(),r=this.getDirection(),o=e.getOuterTopStartCorner(),i=e.getOuterBottomEndCorner(),a=Math.min(t.row,o.row),s=Math.min(t.col,o.col),u=Math.max(n.row,i.row),l=Math.max(n.col,i.col),c=this._createCellCoords(a,s),f=this._createCellCoords(u,l);return this.from=c,this.to=f,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:"getTopStartCorner",value:function(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}},{key:"getTopLeftCorner",value:function(){return(0,s.default)(this,f)?this.getTopEndCorner():this.getTopStartCorner()}},{key:"getBottomEndCorner",value:function(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}},{key:"getBottomRightCorner",value:function(){return(0,s.default)(this,f)?this.getBottomStartCorner():this.getBottomEndCorner()}},{key:"getTopEndCorner",value:function(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}},{key:"getTopRightCorner",value:function(){return(0,s.default)(this,f)?this.getTopStartCorner():this.getTopEndCorner()}},{key:"getBottomStartCorner",value:function(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}},{key:"getBottomLeftCorner",value:function(){return(0,s.default)(this,f)?this.getBottomEndCorner():this.getBottomStartCorner()}},{key:"getOuterTopStartCorner",value:function(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}},{key:"getOuterTopLeftCorner",value:function(){return(0,s.default)(this,f)?this.getOuterTopEndCorner():this.getOuterTopStartCorner()}},{key:"getOuterBottomEndCorner",value:function(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}},{key:"getOuterBottomRightCorner",value:function(){return(0,s.default)(this,f)?this.getOuterBottomStartCorner():this.getOuterBottomEndCorner()}},{key:"getOuterTopEndCorner",value:function(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}},{key:"getOuterTopRightCorner",value:function(){return(0,s.default)(this,f)?this.getOuterTopStartCorner():this.getOuterTopEndCorner()}},{key:"getOuterBottomStartCorner",value:function(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}},{key:"getOuterBottomLeftCorner",value:function(){return(0,s.default)(this,f)?this.getOuterBottomEndCorner():this.getOuterBottomStartCorner()}},{key:"isCorner",value:function(e,t){return!!(t&&t.includes(e)&&(this.getOuterTopLeftCorner().isEqual(this._createCellCoords(t.from.row,t.from.col))||this.getOuterTopRightCorner().isEqual(this._createCellCoords(t.from.row,t.to.col))||this.getOuterBottomLeftCorner().isEqual(this._createCellCoords(t.to.row,t.from.col))||this.getOuterBottomRightCorner().isEqual(this._createCellCoords(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 l.default))return!1;if(t){var n=t.from,r=t.to;if(t.includes(e)){if(this.getOuterTopStartCorner().isEqual(this._createCellCoords(n.row,n.col)))return this.getOuterBottomEndCorner();if(this.getOuterTopEndCorner().isEqual(this._createCellCoords(n.row,r.col)))return this.getOuterBottomStartCorner();if(this.getOuterBottomStartCorner().isEqual(this._createCellCoords(r.row,n.col)))return this.getOuterTopEndCorner();if(this.getOuterBottomEndCorner().isEqual(this._createCellCoords(r.row,r.col)))return this.getOuterTopStartCorner()}}return e.isEqual(this.getOuterBottomEndCorner())?this.getOuterTopStartCorner():e.isEqual(this.getOuterTopStartCorner())?this.getOuterBottomEndCorner():e.isEqual(this.getOuterTopEndCorner())?this.getOuterBottomStartCorner():e.isEqual(this.getOuterBottomStartCorner())?this.getOuterTopEndCorner():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),u=Math.max(e.from.col,e.to.col),l=[];return t===i&&l.push("top"),o===u&&l.push("right"),n===a&&l.push("bottom"),r===s&&l.push("left"),l}},{key:"getInner",value:function(){for(var e=this.getOuterTopStartCorner(),t=this.getOuterBottomEndCorner(),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(this._createCellCoords(r,o));return n}},{key:"getAll",value:function(){for(var e=this.getOuterTopStartCorner(),t=this.getOuterBottomEndCorner(),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(this._createCellCoords(r,o));return n}},{key:"forAll",value:function(e){for(var t=this.getOuterTopStartCorner(),n=this.getOuterBottomEndCorner(),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,(0,s.default)(this,f))}},{key:"toObject",value:function(){return{from:this.from.toObject(),to:this.to.toObject()}}},{key:"_createCellCoords",value:function(e,t){return new l.default(e,t,(0,s.default)(this,f))}}]),e}();t.default=d},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6));n(3),n(0),n(2),n(11),n(4),n(76),n(42);var a=n(23),s=n(68),u=n(126),l=n(101),c=n(32),f=new WeakMap,d=function(){function e(t,n,r,i,a,s){var u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;(0,o.default)(this,e),this.wtSettings=r,this.domBindings=n,this.wtTable=a,this.selections=s,this.parent=u,this.eventManager=i,this.facadeGetter=t,f.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.wtTable.holder,"contextmenu",(function(t){return e.onContextMenu(t)})),this.eventManager.addEventListener(this.wtTable.TABLE,"mouseover",(function(t){return e.onMouseOver(t)})),this.eventManager.addEventListener(this.wtTable.TABLE,"mouseout",(function(t){return e.onMouseOut(t)}));var t=function(){e.eventManager.addEventListener(e.wtTable.holder,"touchstart",(function(t){return e.onTouchStart(t)})),e.eventManager.addEventListener(e.wtTable.holder,"touchend",(function(t){return e.onTouchEnd(t)})),e.momentumScrolling||(e.momentumScrolling={}),e.eventManager.addEventListener(e.wtTable.holder,"scroll",(function(){clearTimeout(e.momentumScrolling._timeout),e.momentumScrolling.ongoing||e.wtSettings.getSetting("onBeforeTouchScroll"),e.momentumScrolling.ongoing=!0,e.momentumScrolling._timeout=setTimeout((function(){e.touchApplied||(e.momentumScrolling.ongoing=!1,e.wtSettings.getSetting("onAfterMomentumScroll"))}),200)}))};(0,l.isMobileBrowser)()?t():((0,u.isTouchSupported)()&&t(),e.eventManager.addEventListener(e.wtTable.holder,"mouseup",(function(t){return e.onMouseUp(t)})),e.eventManager.addEventListener(e.wtTable.holder,"mousedown",(function(t){return e.onMouseDown(t)})))}},{key:"selectedCellWasTouched",value:function(e){var t=f.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.wtTable.TABLE,r=(0,a.closestDown)(e,["TD","TH"],n);return r?(t.coords=this.wtTable.getCoords(r),t.TD=r):(0,a.hasClass)(e,"wtBorder")&&(0,a.hasClass)(e,"current")?(t.coords=this.selections.getCell().cellRange.highlight,t.TD=this.wtTable.getCell(t.coords)):(0,a.hasClass)(e,"wtBorder")&&(0,a.hasClass)(e,"area")&&this.selections.createOrGetArea().cellRange&&(t.coords=this.selections.createOrGetArea().cellRange.to,t.TD=this.wtTable.getCell(t.coords)),t}},{key:"onMouseDown",value:function(e){var t=f.get(this),n=this.domBindings.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.wtSettings.getSetting("onCellCornerMouseDown",e,o):i.TD&&this.wtSettings.has("onCellMouseDown")&&this.callListener("onCellMouseDown",e,i.coords,i.TD),(0===e.button||this.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.wtSettings.has("onCellContextMenu")){var t=this.parentCell(e.target);t.TD&&this.callListener("onCellContextMenu",e,t.coords,t.TD)}}},{key:"onMouseOver",value:function(e){if(this.wtSettings.has("onCellMouseOver")){var t=this.wtTable.TABLE,n=(0,a.closestDown)(e.target,["TD","TH"],t),r=this.parent||this;n&&n!==r.lastMouseOver&&(0,a.isChildOf)(n,t)&&(r.lastMouseOver=n,this.callListener("onCellMouseOver",e,this.wtTable.getCoords(n),n))}}},{key:"onMouseOut",value:function(e){if(this.wtSettings.has("onCellMouseOut")){var t=this.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.callListener("onCellMouseOut",e,this.wtTable.getCoords(n),n)}}},{key:"onMouseUp",value:function(e){var t=f.get(this),n=this.parentCell(e.target);n.TD&&this.wtSettings.has("onCellMouseUp")&&this.callListener("onCellMouseUp",e,n.coords,n.TD),(0===e.button||this.touchApplied)&&(n.TD===t.dblClickOrigin[0]&&n.TD===t.dblClickOrigin[1]?((0,a.hasClass)(e.target,"corner")?this.callListener("onCellCornerDblClick",e,n.coords,n.TD):this.callListener("onCellDblClick",e,n.coords,n.TD),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){f.get(this).selectedCellBeforeTouchEnd=this.selections.getCell().cellRange,this.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,c.isDefined)(r)&&r.row>=0&&r.col>=0;if(e.cancelable&&o&&this.wtSettings.getSetting("isDataViewInstance")){(0,l.isIOS)()&&((0,l.isChromeWebKit)()||(0,l.isFirefoxWebKit)())&&this.selectedCellWasTouched(n)&&!["A","BUTTON","INPUT"].includes(n.tagName)?e.preventDefault():this.selectedCellWasTouched(n)||e.preventDefault()}this.onMouseUp(e),this.touchApplied=!1}},{key:"callListener",value:function(e,t,n,r){var o=this.wtSettings.getSettingPure(e);o&&o(t,n,r,this.facadeGetter())}},{key:"destroy",value:function(){var e=f.get(this);clearTimeout(e.dblClickTimeout[0]),clearTimeout(e.dblClickTimeout[1]),this.eventManager.destroy()}}]),e}();t.default=d},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.Renderer=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(772));t.RowHeadersRenderer=a.default;var s=r(n(777));t.ColumnHeadersRenderer=s.default;var u=r(n(778));t.ColGroupRenderer=u.default;var l=r(n(779));t.RowsRenderer=l.default;var c=r(n(780));t.CellsRenderer=c.default;var f=r(n(781));t.TableRenderer=f.default;var d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.TABLE,r=t.THEAD,i=t.COLGROUP,d=t.TBODY,h=t.rowUtils,p=t.columnUtils,y=t.cellRenderer;(0,o.default)(this,e),this.renderer=new f.default(n,{cellRenderer:y}),this.renderer.setRenderers({rowHeaders:new a.default,columnHeaders:new s.default(r),colGroup:new u.default(i),rows:new l.default(d),cells:new c.default}),this.renderer.setAxisUtils(h,p)}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=d},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6)),a=n(582),s=r(n(773)),u=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=u},function(e,t,n){"use strict";t.__esModule=!0,t.WORKING_SPACE_TOP=t.WORKING_SPACE_BOTTOM=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.default=void 0;var r={getFirstRenderedRow:function(){var e=this.wtSettings.getSetting("totalRows"),t=this.wtSettings.getSetting("fixedRowsBottom"),n=e-t;return 0===e||0===t?-1:n<0?0:n},getFirstVisibleRow:function(){return this.getFirstRenderedRow()},getLastRenderedRow:function(){return this.wtSettings.getSetting("totalRows")-1},getLastVisibleRow:function(){return this.getLastRenderedRow()},getRenderedRowsCount:function(){var e=this.wtSettings.getSetting("totalRows");return Math.min(this.wtSettings.getSetting("fixedRowsBottom"),e)},getVisibleRowsCount:function(){return this.getRenderedRowsCount()}};(0,n(17).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(){var e=this.dataAccessObject.startRowRendered;return null===e?-1:e},getFirstVisibleRow:function(){var e=this.dataAccessObject.startRowVisible;return null===e?-1:e},getLastRenderedRow:function(){var e=this.dataAccessObject.endRowRendered;return null===e?-1:e},getLastVisibleRow:function(){var e=this.dataAccessObject.endRowVisible;return null===e?-1:e},getRenderedRowsCount:function(){return this.dataAccessObject.countRowsRendered},getVisibleRowsCount:function(){return this.dataAccessObject.countRowsVisible}};(0,n(17).defineGetter)(r,"MIXIN_NAME","calculatedRows",{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.wtSettings.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.wtSettings.getSetting("totalRows");return Math.min(this.wtSettings.getSetting("fixedRowsTop"),e)},getVisibleRowsCount:function(){return this.getRenderedRowsCount()}};(0,n(17).defineGetter)(r,"MIXIN_NAME","stickyRowsTop",{writable:!1,enumerable:!1});var o=r;t.default=o},function(e,t,n){var r=n(28),o=n(349),i=n(39),a=n(64),s=n(180).onFreeze,u=Object.freeze;r({target:"Object",stat:!0,forced:i((function(){u(1)})),sham:!o},{freeze:function(e){return u&&a(e)?u(s(e)):e}})},function(e,t,n){"use strict";t.__esModule=!0,t.handleMouseEvent=function(e,t){var n=t.coords,o=t.selection,i=t.controller,s=t.cellCoordsFactory;a.get(e.type)({coords:n,selection:o,controller:i,cellCoordsFactory:s,isShiftKey:e.shiftKey,isLeftClick:(0,r.isLeftClick)(e)||"touchstart"===e.type,isRightClick:(0,r.isRightClick)(e)})},t.mouseDown=o,t.mouseOver=i,n(3),n(33),n(0),n(2),n(4);var r=n(81);function o(e){var t=e.isShiftKey,n=e.isLeftClick,r=e.isRightClick,o=e.coords,i=e.selection,a=e.controller,s=e.cellCoordsFactory,u=i.isSelected()?i.getSelectedRange().current():null,l=i.isSelectedByCorner(),c=i.isSelectedByRowHeader();if(t&&u)o.row>=0&&o.col>=0&&!a.cell?i.setRangeEnd(o):(l||c)&&o.row>=0&&o.col>=0&&!a.cell?i.setRangeEnd(s(o.row,o.col)):l&&o.row<0&&!a.column?i.setRangeEnd(s(u.to.row,o.col)):c&&o.col<0&&!a.row?i.setRangeEnd(s(o.row,u.to.col)):(!l&&!c&&o.col<0||l&&o.col<0)&&!a.row?i.selectRows(Math.max(u.from.row,0),o.row,o.col):(!l&&!c&&o.row<0||c&&o.row<0)&&!a.column&&i.selectColumns(Math.max(u.from.col,0),o.col,o.row);else{var f=!i.inInSelection(o),d=n||r&&f;o.row<0&&o.col>=0&&!a.column?d&&i.selectColumns(o.col,o.col,o.row):o.col<0&&o.row>=0&&!a.row?d&&i.selectRows(o.row,o.row,o.col):o.col>=0&&o.row>=0&&!a.cell?d&&i.setRangeStart(o):o.col<0&&o.row<0&&i.selectAll(!0,!0)}}function i(e){var t=e.isLeftClick,n=e.coords,r=e.selection,o=e.controller,i=e.cellCoordsFactory;if(t){var a=r.isSelectedByRowHeader(),s=r.isSelectedByColumnHeader(),u=r.tableProps.countCols(),l=r.tableProps.countRows();s&&!o.column?r.setRangeEnd(i(l-1,n.col)):a&&!o.row?r.setRangeEnd(i(n.row,u-1)):o.cell||r.setRangeEnd(n)}}var a=new Map([["mousedown",o],["mouseover",i],["touchstart",o]])},function(e,t,n){"use strict";n(26),n(53),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(!f.has(e))throw new Error('The provided map type ("'.concat(e,'") does not exist.'));return new(f.get(e))(t)},n(3),n(33),n(0),n(2),n(4);var o=n(802);t.HidingMap=o.HidingMap;var i=n(233);t.IndexMap=i.IndexMap;var a=n(804);t.LinkedPhysicalIndexToValueMap=a.LinkedPhysicalIndexToValueMap;var s=n(303);t.PhysicalIndexToValueMap=s.PhysicalIndexToValueMap;var u=n(805);t.TrimmingMap=u.TrimmingMap;var l=n(806);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===l[e]||(t[e]=l[e]))}));var c=n(234);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 f=new Map([["hiding",o.HidingMap],["index",i.IndexMap],["linkedPhysicalIndexToValue",a.LinkedPhysicalIndexToValueMap],["physicalIndexToValue",s.PhysicalIndexToValueMap],["trimming",u.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(40),n(0);var r=n(20)},function(e,t,n){"use strict";t.__esModule=!0,t.alterUtilsFactory=void 0,n(3),n(33),n(0),n(2),n(4);var r=n(589);t.getDecreasedIndexes=r.getDecreasedIndexes,t.getIncreasedIndexes=r.getIncreasedIndexes;var o=n(234),i=n(304),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,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.dictionaryKeys=t.DEFAULT_LANGUAGE_CODE=void 0,t.getDefaultLanguageDictionary=function(){return f.default},t.getLanguageDictionary=T,t.getLanguagesDictionaries=function(){return E()},t.getTranslatedPhrase=function(e,t,n){var r=T(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,u.normalizeLanguageCode)(e);C(t)||(t=p,(0,u.warnUserAboutLanguageRegistration)(e));return t},t.hasLanguageDictionary=C,t.registerLanguageDictionary=b;var i=n(17),a=n(20),s=n(32),u=n(592),l=r(n(110)),c=n(812),f=r(n(814)),d=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30));function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}t.dictionaryKeys=d;var p=f.default.languageCode;t.DEFAULT_LANGUAGE_CODE=p;var y=(0,l.default)("languagesDictionaries"),m=y.register,g=y.getItem,v=y.hasItem,E=y.getValues;function b(e,t){var n=e,r=t;return(0,i.isObject)(e)&&(n=(r=e).languageCode),function(e,t){e!==p&&(0,u.extendNotExistingKeys)(t,g(p))}(n,r),m(n,(0,i.deepClone)(r)),(0,i.deepClone)(r)}function T(e){return C(e)?(0,i.deepClone)(g(e)):null}function C(e){return v(e)}b(f.default)},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,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.extendNotExistingKeys=function(e,t){return(0,s.objectEach)(t,(function(t,n){(0,a.isUndefined)(e[n])&&(e[n]=t)})),e},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,u.error)((0,l.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(79));n(18),n(12);var i,a=n(32),s=n(17),u=n(88),l=n(80)},function(e,t,n){"use strict";n(53),n(40),n(19),n(26),n(83);var r=n(1);t.__esModule=!0,t.default=void 0,n(137),n(3),n(33),n(0),n(2),n(4),n(42),n(49),n(18),n(10),n(8),n(9);var o=r(n(44)),i=r(n(43)),a=r(n(5)),s=r(n(6)),u=n(815),l=n(111),c=n(20);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}function d(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,i.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}var h=function(e){function t(e){(0,a.default)(this,t),this.options=e,this.layerLevel=0,this.cell=(0,u.createHighlight)(l.CELL_TYPE,e),this.fill=(0,u.createHighlight)(l.FILL_TYPE,e),this.areas=new Map,this.headers=new Map,this.activeHeaders=new Map,this.customSelections=[]}return(0,s.default)(t,[{key:"isEnabledFor",value:function(e,t){var n=e;e===l.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,u.createHighlight)(l.AREA_TYPE,d({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,u.createHighlight)(l.HEADER_TYPE,d({},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,u.createHighlight)(l.ACTIVE_HEADER_TYPE,d({},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,u.createHighlight)(l.CUSTOM_SELECTION_TYPE,d(d({},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:e,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]()}}]),t}(Symbol.iterator);t.default=h},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0;var o=r(n(595));t.DataMap=o.default;var i=r(n(827));t.MetaManager=i.default;var a=r(n(597));t.metaSchemaFactory=a.default;var s=n(832);t.replaceData=s.replaceData;var u=n(833);t.DynamicCellMetaMod=u.DynamicCellMetaMod;var l=n(834);t.ExtendMetaPropertiesMod=l.ExtendMetaPropertiesMod},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0,n(3),n(33),n(0),n(2),n(4),n(67),n(52),n(18),n(54),n(73),n(13),n(40),n(35),n(12),n(61);var o=r(n(21)),i=r(n(5)),a=r(n(6)),s=n(596),u=n(144),l=n(17),c=n(20),f=n(47),d=n(32),h=(0,u.cellMethodLookupFactory)("copyable",!1),p=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,l.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,l.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 u=i?n(t):n[t];if((0,l.isObject)(u)){if(void 0!==u.data){var c=i?o:t;this.colToPropCache[c]=u.data,this.propToColCache.set(u.data,c)}o+=1}}}else this.recursiveDuckColumns(e)}},{key:"countFirstRowKeys",value:function(){return(0,u.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,l.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,d.isDefined)(this.colToPropCache[t])?this.colToPropCache[t]:t}},{key:"propToCol",value:function(e){var t=this.propToColCache.get(e);if((0,d.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 u=this.instance.runHooks("beforeCreateRow",s,n,r);if(!1===u||null===i)return 0;for(var c=this.tableMeta.maxRows,d=this.instance.countCols(),h=[],p=function(){var e=null;"array"===t.instance.dataType?t.tableMeta.dataSchema?e=(0,l.deepClone)(t.getSchema()):(e=[],(0,f.rangeEach)(d-1,(function(){return e.push(null)}))):"function"===t.instance.dataType?e=t.tableMeta.dataSchema(s+a):(e={},(0,l.deepExtend)(e,t.getSchema())),h.push(e),a+=1};a<n&&o+a<c;)p();return this.instance.rowIndexMapper.insertIndexes(s,a),this.spliceData.apply(this,[i,0].concat(h)),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 u=this.instance.countSourceRows(),l=this.instance.countCols(),c=0,f=s;c<t&&l<o;){if("number"!=typeof i||i>=l)if(u>0)for(var d=0;d<u;d+=1)void 0===r[d]&&(r[d]=[]),r[d].push(null);else r.push([null]);else for(var h=0;h<u;h++)r[h].splice(f,0,null);c+=1,f+=1,l+=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=o.length;if(this.filterData(r,s,o),r<this.instance.countRows()){this.instance.rowIndexMapper.removeIndexes(o);var u=(0,d.isDefined)(this.tableMeta.columns)||(0,d.isDefined)(this.tableMeta.dataSchema);0===this.instance.rowIndexMapper.getNotTrimmedIndexesLength()&&!1===u&&this.instance.columnIndexMapper.setIndexesSequence([])}return this.instance.runHooks("afterRemoveRow",r,s,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,u=i.length,l=this.dataSource,c=0;c<u;c++)s&&o[0]!==o[c]-c&&(s=!1);if(s)for(var f=0,d=this.instance.countSourceRows();f<d;f++)l[f].splice(o[0],t);else for(var h=0,p=this.instance.countSourceRows();h<p;h++)for(var y=0;y<u;y++)l[h].splice(i[y],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),u=3;u<a;u++)s[u-3]=arguments[u];(0,c.extendArray)(s,i);for(var l=0;l<n;)s.push(null),l+=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),u=3;u<a;u++)s[u-3]=arguments[u];(0,c.extendArray)(s,i);for(var l=0;l<n;)s.push(null),l+=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){var r=this.instance.runHooks("filterData",e,t,n);!1===Array.isArray(r)&&(r=this.dataSource.filter((function(e,t){return-1===n.indexOf(t)}))),this.dataSource.length=0,Array.prototype.push.apply(this.dataSource,r)}},{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,l.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 u=0,c=a.length;u<c;u++)if(void 0===(s=s[a[u]]))return null;i=s}else"function"==typeof t&&(i=t(this.dataSource.slice(n,n+1)[0]));if(this.instance.hasHook("modifyData")){var f=(0,l.createObjectPropListener)(i);this.instance.runHooks("modifyData",n,this.propToCol(t),f,"get"),f.isTouched()&&(i=f.value)}return i}},{key:"getCopyable",value:function(e,t){return h.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,l.createObjectPropListener)(o);this.instance.runHooks("modifyData",r,this.propToCol(t),s,"set"),s.isTouched()&&(o=s.value)}if(i&&i.hasOwnProperty&&(0,l.hasOwnProperty)(i,t))i[t]=o;else if("string"==typeof t&&t.indexOf(".")>-1){var u,c=t.split("."),f=i,d=0;for(d=0,u=c.length-1;d<u;d++)void 0===f[c[d]]&&(f[c[d]]={}),f=f[c[d]];f[c[d]]=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=[],u=this.tableMeta.maxRows,l=this.tableMeta.maxCols;if(0===u||0===l)return[];var c=r===e.DESTINATION_CLIPBOARD_GENERATOR?this.getCopyable:this.get,f=Math.min(Math.max(u-1,0),Math.max(t.row,n.row)),d=Math.min(Math.max(l-1,0),Math.max(t.col,n.col));for(o=Math.min(t.row,n.row);o<=f;o++){a=[];var h=o>=0?this.instance.toPhysicalRow(o):o;for(i=Math.min(t.col,n.col);i<=d&&null!==h;i++)a.push(c.call(this,o,this.colToProp(i)));null!==h&&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=p},function(e,t,n){"use strict";t.__esModule=!0,t.stringify=t.parse=void 0;var r=n(826);t.parse=r.parse,t.stringify=r.stringify},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(21)),i=n(32),a=n(17);t.default=function(){return{activeHeaderClassName:"ht__active_highlight",allowEmpty:!0,allowHtml:!1,allowInsertColumn:!0,allowInsertRow:!0,allowInvalid:!0,allowRemoveColumn:!0,allowRemoveRow:!0,autoColumnSize:void 0,autoRowSize:void 0,autoWrapCol:!1,autoWrapRow:!1,bindRowsWithHeaders:void 0,cell:[],cells:void 0,checkedTemplate:void 0,className:void 0,colHeaders:null,collapsibleColumns:void 0,columnHeaderHeight:void 0,columns:void 0,columnSorting:void 0,columnSummary:void 0,colWidths:void 0,commentedCellClassName:"htCommentCell",comments:!1,contextMenu:void 0,copyable:!0,copyPaste:!0,correctFormat:!1,currentColClassName:void 0,currentHeaderClassName:"ht__highlight",currentRowClassName:void 0,customBorders:!1,data:void 0,dataSchema:void 0,dateFormat:"DD/MM/YYYY",datePickerConfig:void 0,defaultDate:void 0,disableVisualSelection:!1,dragToScroll:!0,dropdownMenu:void 0,editor:void 0,enterBeginsEditing:!0,enterMoves:{col:0,row:1},fillHandle:{autoInsertRow:!1},filter:!0,filteringCaseSensitive:!1,filters:void 0,fixedColumnsLeft:0,fixedColumnsStart:0,fixedRowsBottom:0,fixedRowsTop:0,formulas:void 0,fragmentSelection:!1,height:void 0,hiddenColumns:void 0,hiddenRows:void 0,invalidCellClassName:"htInvalid",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},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},label:void 0,language:"en-US",layoutDirection:"inherit",licenseKey:void 0,locale:"en-US",manualColumnFreeze:void 0,manualColumnMove:void 0,manualColumnResize:void 0,manualRowMove:void 0,manualRowResize:void 0,maxCols:1/0,maxRows:1/0,mergeCells:!1,minCols:0,minRows:0,minSpareCols:0,minSpareRows:0,multiColumnSorting:void 0,nestedHeaders:void 0,nestedRows:void 0,noWordWrapClassName:"htNoWrap",numericFormat:void 0,observeDOMVisibility:!0,outsideClickDeselects:!0,persistentState:void 0,placeholder:void 0,placeholderCellClassName:"htPlaceholder",preventOverflow:!1,preventWheel:!1,readOnly:!1,readOnlyCellClassName:"htDimmed",renderAllRows:void 0,renderer:void 0,rowHeaders:void 0,rowHeaderWidth:void 0,rowHeights:void 0,search:!1,selectionMode:"multiple",selectOptions:void 0,skipColumnOnPaste:!1,skipRowOnPaste:!1,sortByRelevance:!0,source:void 0,startCols:5,startRows:5,stretchH:"none",strict:void 0,tableClassName:void 0,tabMoves:{row:0,col:1},title:void 0,trimDropdown:!0,trimRows:void 0,trimWhitespace:!0,type:"text",uncheckedTemplate:void 0,undo:void 0,validator:void 0,viewportColumnRenderingOffset:"auto",viewportRowRenderingOffset:"auto",visibleRows:10,width:void 0,wordWrap:!0}}},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0,n(3),n(0),n(55),n(2),n(4),n(54),n(18),n(10),n(8),n(9),n(35);var o=r(n(5)),i=r(n(6)),a=n(20),s=n(196),u=function(e){function t(e){(0,o.default)(this,t),this.valueFactory=e,this.data=[],this.index=[],this.holes=new Set}return(0,i.default)(t,[{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:e,value:function(){return this.entries()}}]),t}(Symbol.iterator);t.default=u},function(e,t,n){"use strict";t.__esModule=!0,t.normalizeKeys=t.normalizeEventKey=t.getKeysList=void 0,n(3),n(33),n(0),n(2),n(4),n(75),n(73),n(37),n(12),n(61);var r=new Map([[" ","space"],["spacebar","space"],["scroll","scrolllock"],["del","delete"],["esc","escape"],["medianexttrack","mediatracknext"],["mediaprevioustrack","mediatrackprevious"],["volumeup","audiovolumeup"],["volumedown","audiovolumedown"],["volumemute","audiovolumemute"],["multiply","*"],["add","+"],["divide","/"],["subtract","-"],["left","arrowleft"],["right","arrowright"],["up","arrowup"],["down","arrowdown"]]);t.normalizeKeys=function(e){return e.map((function(e){var t=e.toLowerCase();return r.has(t)?r.get(t):t})).sort().join("+")};t.getKeysList=function(e){return e.split("+")};t.normalizeEventKey=function(e){return e.toLowerCase()}},function(e,t,n){"use strict";t.__esModule=!0,t.TextCellType=t.CELL_TYPE=void 0;var r=n(840);t.CELL_TYPE=r.CELL_TYPE,t.TextCellType=r.TextCellType},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.SHORTCUTS_GROUP_EDITOR=t.EDITOR_TYPE=t.EDITOR_STATE=t.BaseEditor=void 0;var o=r(n(34)),i=r(n(15)),a=r(n(16)),s=r(n(14)),u=r(n(5)),l=r(n(6));n(586),n(109),n(25),n(42);var c=n(32),f=n(17),d=n(192),h=r(n(842)),p=n(23);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,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 m=Object.freeze({VIRGIN:"STATE_VIRGIN",EDITING:"STATE_EDITING",WAITING:"STATE_WAITING",FINISHED:"STATE_FINISHED"});t.EDITOR_STATE=m;t.SHORTCUTS_GROUP_EDITOR="baseEditor";var g=function(){function e(t){(0,u.default)(this,e),this.hot=t,this.instance=t,this.state=m.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,l.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=m.VIRGIN}},{key:"extend",value:function(){return function(e){(0,i.default)(n,e);var t=y(n);function n(){return(0,u.default)(this,n),t.apply(this,arguments)}return(0,l.default)(n)}(this.constructor)}},{key:"saveValue",value:function(e,t){var n,r,i,a,s=this;if(t){var u=this.hot.getSelectedLast();n=Math.max(Math.min(u[0],u[2]),0),r=Math.max(Math.min(u[1],u[3]),0),i=Math.max(u[0],u[2]),a=Math.max(u[1],u[3])}else{var l=[this.row,this.col,null,null];n=l[0],r=l[1],i=l[2],a=l[3]}var f=this.hot.runHooks("modifyGetCellCoords",n,r);if(Array.isArray(f)){var d=(0,o.default)(f,2);n=d[0],r=d[1]}var h=this.hot.getShortcutManager().getContext("editor"),p={runOnlyIf:function(){return(0,c.isDefined)(s.hot.getSelected())},group:"baseEditor"};this.isInFullEditMode()&&h.addShortcuts([{keys:[["ArrowUp"]],callback:function(){s.hot.selection.transformStart(-1,0)}},{keys:[["ArrowDown"]],callback:function(){s.hot.selection.transformStart(1,0)}},{keys:[["ArrowLeft"]],callback:function(){s.hot.selection.transformStart(0,-1*s.hot.getDirectionFactor())}},{keys:[["ArrowRight"]],callback:function(){s.hot.selection.transformStart(0,s.hot.getDirectionFactor())}}],p),this.hot.populateFromArray(n,r,e,i,a,"edit")}},{key:"beginEditing",value:function(e,t){if(this.state===m.VIRGIN){var n=this.hot,r=n.rowIndexMapper.getRenderableFromVisualIndex(this.row),o=n.columnIndexMapper.getRenderableFromVisualIndex(this.col);if(n.view.scrollViewport(n._createCellCoords(r,o)),this.state=m.EDITING,this.isInFullEditMode()){var i="string"==typeof e?e:(0,c.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()){var a=this.hot.getShortcutManager().getContext("editor");if(a.removeShortcutsByGroup("baseEditor"),a.removeShortcutsByGroup(d.SHORTCUTS_GROUP_NAVIGATION),this.state!==m.VIRGIN){if(this.state===m.EDITING){if(e)return this.cancelChanges(),void this.hot.view.render();var s=this.getValue();r=this.hot.getSettings().trimWhitespace?[["string"==typeof s?String.prototype.trim.call(s||""):s]]:[[s]],this.state=m.WAITING,this.saveValue(r,t),this.hot.getCellValidator(this.cellProperties)?this.hot.addHookOnce("postAfterValidate",(function(e){o.state=m.FINISHED,o.discardEditor(e)})):(this.state=m.FINISHED,this.discardEditor(!0))}}else this.hot._registerTimeout((function(){o._fireCallbacks(!0)}))}}},{key:"cancelChanges",value:function(){this.state=m.FINISHED,this.discardEditor()}},{key:"discardEditor",value:function(e){this.state===m.FINISHED&&(!1===e&&!0!==this.cellProperties.allowInvalid?(this.hot.selectCell(this.row,this.col),this.focus(),this.state=m.EDITING,this._fireCallbacks(!1)):(this.close(),this._opened=!1,this._fullEditMode=!1,this.state=m.VIRGIN,this._fireCallbacks(!0),this.hot.getShortcutManager().setActiveContextName("grid")))}},{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===m.WAITING}},{key:"getEditedCellRect",value:function(){var e,t=this.getEditedCell();if(t){var n=this.hot.view._wt,r=n.wtOverlays,o=n.wtViewport,i=this.hot.rootWindow,a=(0,p.offset)(t),s=(0,p.outerWidth)(t),u=(0,p.offset)(this.hot.rootElement),l=(0,p.outerWidth)(this.hot.rootElement),c=r.topOverlay.holder,f=r.inlineStartOverlay.holder,d=c!==i?c.scrollTop:0,h=f!==i?f.scrollLeft:0,y=i.innerWidth-u.left-l,m=(null!==(e=r.getParentOverlay(t))&&void 0!==e?e:this.hot.view._wt).wtTable,g=m.name,v=["master","inline_start"].includes(g)?d:0,E=["master","top","bottom"].includes(g)?h:0,b=a.top===u.top?0:1,T=a.top-u.top-b-v,C=0;C=this.hot.isRtl()?i.innerWidth-a.left-s-y-1+E:a.left-u.left-1-E,["top","top_inline_start_corner"].includes(g)&&(T+=r.topOverlay.getOverlayOffset()),["inline_start","top_inline_start_corner"].includes(g)&&(C+=Math.abs(r.inlineStartOverlay.getOverlayOffset()));var w=this.hot.hasColHeaders(),R=this.hot.rowIndexMapper.getRenderableFromVisualIndex(this.row),O=this.hot.columnIndexMapper.getRenderableFromVisualIndex(this.col),S=this.hot.rowIndexMapper.getRenderableIndexesLength()-this.hot.view._wt.getSetting("fixedRowsBottom");(w&&R<=0||R===S)&&(T+=1),O<=0&&(C+=1);var A=o.rowsRenderCalculator.startPosition,N=o.columnsRenderCalculator.startPosition,_=Math.abs(r.inlineStartOverlay.getScrollPosition()),k=r.topOverlay.getScrollPosition(),M=(0,p.getScrollbarWidth)(this.hot.rootDocument),I=t.offsetTop+A-k,P=0;if(this.hot.isRtl()){var x=t.offsetLeft;P=x>=0?m.getWidth()-t.offsetLeft:Math.abs(x),P+=N-_-s}else P=t.offsetLeft+N-_;var D=(0,p.getComputedStyle)(this.TD,this.hot.rootWindow),L=this.hot.isRtl()?"borderRightWidth":"borderLeftWidth",F=parseInt(D[L],10)>0?0:1,j=parseInt(D.borderTopWidth,10)>0?0:1,U=(0,p.outerWidth)(t)+F,H=(0,p.outerHeight)(t)+j,B=(0,p.hasVerticalScrollbar)(c)?M:0,V=(0,p.hasHorizontalScrollbar)(f)?M:0,W=this.hot.view.maximumVisibleElementWidth(P)-B+F;return{top:T,start:C,height:H,maxHeight:Math.max(this.hot.view.maximumVisibleElementHeight(I)-V+j,23),width:U,maxWidth:W}}}},{key:"getEditedCellsLayerClass",value:function(){switch(this.checkEditorSection()){case"inline-start":return"ht_clone_left ht_clone_inline_start";case"bottom":return"ht_clone_bottom";case"bottom-inline-start-corner":return"ht_clone_bottom_left_corner ht_clone_bottom_inline_start_corner";case"top":return"ht_clone_top";case"top-inline-start-corner":return"ht_clone_top_left_corner ht_clone_top_inline_start_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().fixedColumnsStart?"top-inline-start-corner":"top":this.hot.getSettings().fixedRowsBottom&&this.row>=e-this.hot.getSettings().fixedRowsBottom?t=this.col<this.hot.getSettings().fixedColumnsStart?"bottom-inline-start-corner":"bottom":this.col<this.hot.getSettings().fixedColumnsStart&&(t="inline-start"),t}}],[{key:"EDITOR_TYPE",get:function(){return"base"}}]),e}();t.BaseEditor=g,(0,f.mixin)(g,h.default)},function(e,t,n){"use strict";t.__esModule=!0,t.EDITOR_TYPE=t.CheckboxEditor=void 0;var r=n(852);t.EDITOR_TYPE=r.EDITOR_TYPE,t.CheckboxEditor=r.CheckboxEditor},function(e,t,n){"use strict";t.__esModule=!0,t.EDITOR_TYPE=t.DropdownEditor=void 0;var r=n(856);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(857);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(858);t.EDITOR_TYPE=r.EDITOR_TYPE,t.PasswordEditor=r.PasswordEditor},function(e,t,n){"use strict";t.__esModule=!0,t.TimeEditor=t.EDITOR_TYPE=void 0;var r=n(861);t.EDITOR_TYPE=r.EDITOR_TYPE,t.TimeEditor=r.TimeEditor},function(e,t,n){"use strict";t.__esModule=!0,t.htmlRenderer=t.RENDERER_TYPE=void 0;var r=n(864);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(866);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(868);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 u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[a]={exports:{}};t[a][0].call(l.exports,(function(e){return o(t[a][1][e]||e)}),l,l.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: ",u=1e14,l=14,c=9007199254740991,f=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],d=1e7,h=1e9;function p(e){var t=0|e;return 0<e||e===t?t:t-1}function y(e){for(var t,n,r=1,o=e.length,i=e[0]+"";r<o;){for(t=e[r++]+"",n=l-t.length;n--;t="0"+t);i+=t}for(o=i.length;48===i.charCodeAt(--o););return i.slice(0,o+1||1)}function m(e,t){var n,r,o=e.c,i=t.c,a=e.s,s=t.s,u=e.e,l=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=u==l,!o||!i)return r?0:!o^n?1:-1;if(!r)return l<u^n?1:-1;for(s=(u=o.length)<(l=i.length)?u:l,a=0;a<s;a++)if(o[a]!=i[a])return o[a]>i[a]^n?1:-1;return u==l?0:l<u^n?1:-1}function g(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 v(e){var t=e.c.length-1;return p(e.e/l)==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 b(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,T,C,w,R,O,S,A,N,_,k=W.prototype={constructor:W,toString:null,valueOf:null},M=new W(1),I=20,P=4,x=-7,D=21,L=-1e7,F=1e7,j=!1,U=1,H=0,B={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},V="0123456789abcdefghijklmnopqrstuvwxyz";function W(e,t){var n,o,a,u,f,d,h,p,y=this;if(!(y instanceof W))return new W(e,t);if(null==t){if(e instanceof W)return y.s=e.s,y.e=e.e,void(y.c=(e=e.c)?e.slice():e);if((d="number"==typeof e)&&0*e==0){if(y.s=1/e<0?(e=-e,-1):1,e===~~e){for(u=0,f=e;10<=f;f/=10,u++);return y.e=u,void(y.c=[e])}p=String(e)}else{if(p=String(e),!r.test(p))return C(y,p,d);y.s=45==p.charCodeAt(0)?(p=p.slice(1),-1):1}-1<(u=p.indexOf("."))&&(p=p.replace(".","")),0<(f=p.search(/e/i))?(u<0&&(u=f),u+=+p.slice(f+1),p=p.substring(0,f)):u<0&&(u=p.length)}else{if(g(t,2,V.length,"Base"),p=String(e),10==t)return K(y=new W(e instanceof W?e:p),I+y.e+1,P);if(d="number"==typeof e){if(0*e!=0)return C(y,p,d,t);if(y.s=1/e<0?(p=p.slice(1),-1):1,W.DEBUG&&15<p.replace(/^0\.0*|\./,"").length)throw Error(s+e);d=!1}else y.s=45===p.charCodeAt(0)?(p=p.slice(1),-1):1;for(n=V.slice(0,t),u=f=0,h=p.length;f<h;f++)if(n.indexOf(o=p.charAt(f))<0){if("."==o){if(u<f){u=h;continue}}else if(!a&&(p==p.toUpperCase()&&(p=p.toLowerCase())||p==p.toLowerCase()&&(p=p.toUpperCase()))){a=!0,f=-1,u=0;continue}return C(y,String(e),d,t)}-1<(u=(p=T(p,t,10,y.s)).indexOf("."))?p=p.replace(".",""):u=p.length}for(f=0;48===p.charCodeAt(f);f++);for(h=p.length;48===p.charCodeAt(--h););if(p=p.slice(f,++h)){if(h-=f,d&&W.DEBUG&&15<h&&(c<e||e!==i(e)))throw Error(s+y.s*e);if(F<(u=u-f-1))y.c=y.e=null;else if(u<L)y.c=[y.e=0];else{if(y.e=u,y.c=[],f=(u+1)%l,u<0&&(f+=l),f<h){for(f&&y.c.push(+p.slice(0,f)),h-=l;f<h;)y.c.push(+p.slice(f,f+=l));p=p.slice(f),f=l-p.length}else f-=h;for(;f--;p+="0");y.c.push(+p)}}else y.c=[y.e=0]}function Y(e,t,n,r){var o,i,a,s,u;if(null==n?n=P:g(n,0,8),!e.c)return e.toString();if(o=e.c[0],a=e.e,null==t)u=y(e.c),u=1==r||2==r&&(a<=x||D<=a)?E(u,a):b(u,a,"0");else if(i=(e=K(new W(e),t,n)).e,s=(u=y(e.c)).length,1==r||2==r&&(t<=i||i<=x)){for(;s<t;u+="0",s++);u=E(u,i)}else if(t-=a,u=b(u,i,"0"),s<i+1){if(0<--t)for(u+=".";t--;u+="0");}else if(0<(t+=i-s))for(i+1==s&&(u+=".");t--;u+="0");return e.s<0&&o?"-"+u:u}function G(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*l-1)>F?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,d,h,p,y,m=e.c,g=f;if(m){e:{for(a=1,d=m[0];10<=d;d/=10,a++);if((s=t-a)<0)s+=l,c=t,y=(h=m[p=0])/g[a-c-1]%10|0;else if((p=o((s+1)/l))>=m.length){if(!r)break e;for(;m.length<=p;m.push(0));h=y=0,c=(s%=l)-l+(a=1)}else{for(h=d=m[p],a=1;10<=d;d/=10,a++);y=(c=(s%=l)-l+a)<0?0:h/g[a-c-1]%10|0}if(r=r||t<0||null!=m[p+1]||(c<0?h:h%g[a-c-1]),r=n<4?(y||r)&&(0==n||n==(e.s<0?3:2)):5<y||5==y&&(4==n||r||6==n&&(0<s?0<c?h/g[a-c]:0:m[p-1])%10&1||n==(e.s<0?8:7)),t<1||!m[0])return m.length=0,r?(t-=e.e+1,m[0]=g[(l-t%l)%l],e.e=-t||0):m[0]=e.e=0,e;if(0==s?(m.length=p,d=1,p--):(m.length=p+1,d=g[l-s],m[p]=0<c?i(h/g[a-c]%g[c])*d:0),r)for(;;){if(0==p){for(s=1,c=m[0];10<=c;c/=10,s++);for(c=m[0]+=d,d=1;10<=c;c/=10,d++);s!=d&&(e.e++,m[0]==u&&(m[0]=1));break}if(m[p]+=d,m[p]!=u)break;m[p--]=0,d=1}for(s=m.length;0===m[--s];m.pop());}e.e>F?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=y(e.c),t=n<=x||D<=n?E(t,n):b(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")&&(g(n=e[t],0,h,t),I=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(g(n=e[t],0,8,t),P=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(g(n[0],-h,0,t),g(n[1],0,h,t),x=n[0],D=n[1]):(g(n,-h,h,t),x=-(D=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)g(n[0],-h,-1,t),g(n[1],1,h,t),L=n[0],F=n[1];else{if(g(n,-h,h,t),!n)throw Error(a+t+" cannot be zero: "+n);L=-(F=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 j=!n,Error(a+"crypto unavailable");j=n}else j=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(g(n=e[t],0,9,t),U=n),e.hasOwnProperty(t="POW_PRECISION")&&(g(n=e[t],0,h,t),H=n),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(n=e[t]))throw Error(a+t+" not an object: "+n);B=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.$|[+-.\s]|(.).*\1/.test(n))throw Error(a+t+" invalid: "+n);V=n}}return{DECIMAL_PLACES:I,ROUNDING_MODE:P,EXPONENTIAL_AT:[x,D],RANGE:[L,F],CRYPTO:j,MODULO_MODE:U,POW_PRECISION:H,FORMAT:B,ALPHABET:V}},W.isBigNumber=function(e){return e instanceof W||e&&!0===e._isBigNumber||!1},W.maximum=W.max=function(){return G(arguments,k.lt)},W.minimum=W.min=function(){return G(arguments,k.gt)},W.random=(w=9007199254740992,R=Math.random()*w&2097151?function(){return i(Math.random()*w)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,n,r,s,u,c=0,d=[],p=new W(M);if(null==e?e=I:g(e,0,h),s=o(e/l),j)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(s*=2));c<s;)9e15<=(u=131072*t[c]+(t[c+1]>>>11))?(n=crypto.getRandomValues(new Uint32Array(2)),t[c]=n[0],t[c+1]=n[1]):(d.push(u%1e14),c+=2);c=s/2}else{if(!crypto.randomBytes)throw j=!1,Error(a+"crypto unavailable");for(t=crypto.randomBytes(s*=7);c<s;)9e15<=(u=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):(d.push(u%1e14),c+=7);c=s/7}if(!j)for(;c<s;)(u=R())<9e15&&(d[c++]=u%1e14);for(s=d[--c],e%=l,s&&e&&(u=f[l-e],d[c]=i(s/u)*u);0===d[c];d.pop(),c--);if(c<0)d=[r=0];else{for(r=-1;0===d[0];d.splice(0,1),r-=l);for(c=1,u=d[0];10<=u;u/=10,c++);c<l&&(r-=l-c)}return p.e=r,p.c=d,p}),W.sum=function(){for(var e=1,t=arguments,n=new W(t[0]);e<t.length;)n=n.plus(t[e++]);return n},T=function(){var e="0123456789";function t(e,t,n,r){for(var o,i,a=[0],s=0,u=e.length;s<u;){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 u,l,c,f,d,h,p,m,g=r.indexOf("."),v=I,E=P;for(0<=g&&(f=H,H=0,r=r.replace(".",""),h=(m=new W(o)).pow(r.length-g),H=f,m.c=t(b(y(h.c),h.e,"0"),10,i,e),m.e=m.c.length),c=f=(p=t(r,o,i,s?(u=V,e):(u=e,V))).length;0==p[--f];p.pop());if(!p[0])return u.charAt(0);if(g<0?--c:(h.c=p,h.e=c,h.s=a,p=(h=n(h,m,v,E,i)).c,d=h.r,c=h.e),g=p[l=c+v+1],f=i/2,d=d||l<0||null!=p[l+1],d=E<4?(null!=g||d)&&(0==E||E==(h.s<0?3:2)):f<g||g==f&&(4==E||d||6==E&&1&p[l-1]||E==(h.s<0?8:7)),l<1||!p[0])r=d?b(u.charAt(1),-v,u.charAt(0)):u.charAt(0);else{if(p.length=l,d)for(--i;++p[--l]>i;)p[l]=0,l||(++c,p=[1].concat(p));for(f=p.length;!p[--f];);for(g=0,r="";g<=f;r+=u.charAt(p[g++]));r=b(r,c,u.charAt(0))}return r}}(),n=function(){function e(e,t,n){var r,o,i,a,s=0,u=e.length,l=t%d,c=t/d|0;for(e=e.slice();u--;)s=((o=l*(i=e[u]%d)+(r=c*i+(a=e[u]/d|0)*l)%d*d+s)/n|0)+(r/d|0)+c*a,e[u]=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 f,d,h,y,m,g,v,E,b,T,C,w,R,O,S,A,N,_=r.s==o.s?1:-1,k=r.c,M=o.c;if(!(k&&k[0]&&M&&M[0]))return new W(r.s&&o.s&&(k?!M||k[0]!=M[0]:M)?k&&0==k[0]||!M?0*_:_/0:NaN);for(b=(E=new W(_)).c=[],_=a+(d=r.e-o.e)+1,c||(c=u,d=p(r.e/l)-p(o.e/l),_=_/l|0),h=0;M[h]==(k[h]||0);h++);if(M[h]>(k[h]||0)&&d--,_<0)b.push(1),y=!0;else{for(O=k.length,A=M.length,_+=2,1<(m=i(c/(M[h=0]+1)))&&(M=e(M,m,c),k=e(k,m,c),A=M.length,O=k.length),R=A,C=(T=k.slice(0,A)).length;C<A;T[C++]=0);N=M.slice(),N=[0].concat(N),S=M[0],M[1]>=c/2&&S++;do{if(m=0,(f=t(M,T,A,C))<0){if(w=T[0],A!=C&&(w=w*c+(T[1]||0)),1<(m=i(w/S)))for(c<=m&&(m=c-1),v=(g=e(M,m,c)).length,C=T.length;1==t(g,T,v,C);)m--,n(g,A<v?N:M,v,c),v=g.length,f=1;else 0==m&&(f=m=1),v=(g=M.slice()).length;if(v<C&&(g=[0].concat(g)),n(T,g,C,c),C=T.length,-1==f)for(;t(M,T,A,C)<1;)m++,n(T,A<C?N:M,C,c),C=T.length}else 0===f&&(m++,T=[0]);b[h++]=m,T[0]?T[C++]=k[R]||0:(T=[k[R]],C=1)}while((R++<O||null!=T[0])&&_--);y=null!=T[0],b[0]||b.splice(0,1)}if(c==u){for(h=1,_=b[0];10<=_;_/=10,h++);K(E,a+(E.e=h+d*l-1)+1,s,y)}else E.e=d,E.r=+y;return E}}(),O=/^(-?)0([xbo])(?=\w[\w.]*$)/i,S=/^([^.]+)\.$/,A=/^\.([^.]+)$/,N=/^-?(Infinity|NaN)$/,_=/^\s*\+(?=[\w.])|^\s+|\s+$/g,C=function(e,t,n,r){var o,i=n?t:t.replace(_,"");if(N.test(i))e.s=isNaN(i)?null:i<0?-1:1,e.c=e.e=null;else{if(!n&&(i=i.replace(O,(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(S,"$1").replace(A,"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}},k.absoluteValue=k.abs=function(){var e=new W(this);return e.s<0&&(e.s=1),e},k.comparedTo=function(e,t){return m(this,new W(e,t))},k.decimalPlaces=k.dp=function(e,t){var n,r,o;if(null!=e)return g(e,0,h),null==t?t=P:g(t,0,8),K(new W(this),e+this.e+1,t);if(!(n=this.c))return null;if(r=((o=n.length-1)-p(this.e/l))*l,o=n[o])for(;o%10==0;o/=10,r--);return r<0&&(r=0),r},k.dividedBy=k.div=function(e,t){return n(this,new W(e,t),I,P)},k.dividedToIntegerBy=k.idiv=function(e,t){return n(this,new W(e,t),0,1)},k.exponentiatedBy=k.pow=function(e,t){var n,r,s,u,c,f,d,h,p=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,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return h=new W(Math.pow(+X(p),c?2-v(e):+X(e))),t?h.mod(t):h;if(f=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new W(NaN);(r=!f&&p.isInteger()&&t.isInteger())&&(p=p.mod(t))}else{if(9<e.e&&(0<p.e||p.e<-1||(0==p.e?1<p.c[0]||c&&24e7<=p.c[1]:p.c[0]<8e13||c&&p.c[0]<=9999975e7)))return u=p.s<0&&v(e)?-0:0,-1<p.e&&(u=1/u),new W(f?1/u:u);H&&(u=o(H/l+2))}for(d=c?(n=new W(.5),f&&(e.s=1),v(e)):(s=Math.abs(+X(e)))%2,h=new W(M);;){if(d){if(!(h=h.times(p)).c)break;u?h.c.length>u&&(h.c.length=u):r&&(h=h.mod(t))}if(s){if(0===(s=i(s/2)))break;d=s%2}else if(K(e=e.times(n),e.e+1,1),14<e.e)d=v(e);else{if(0==(s=+X(e)))break;d=s%2}p=p.times(p),u?p.c&&p.c.length>u&&(p.c.length=u):r&&(p=p.mod(t))}return r?h:(f&&(h=M.div(h)),t?h.mod(t):u?K(h,H,P,void 0):h)},k.integerValue=function(e){var t=new W(this);return null==e?e=P:g(e,0,8),K(t,t.e+1,e)},k.isEqualTo=k.eq=function(e,t){return 0===m(this,new W(e,t))},k.isFinite=function(){return!!this.c},k.isGreaterThan=k.gt=function(e,t){return 0<m(this,new W(e,t))},k.isGreaterThanOrEqualTo=k.gte=function(e,t){return 1===(t=m(this,new W(e,t)))||0===t},k.isInteger=function(){return!!this.c&&p(this.e/l)>this.c.length-2},k.isLessThan=k.lt=function(e,t){return m(this,new W(e,t))<0},k.isLessThanOrEqualTo=k.lte=function(e,t){return-1===(t=m(this,new W(e,t)))||0===t},k.isNaN=function(){return!this.s},k.isNegative=function(){return this.s<0},k.isPositive=function(){return 0<this.s},k.isZero=function(){return!!this.c&&0==this.c[0]},k.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/l,f=e.e/l,d=a.c,h=e.c;if(!c||!f){if(!d||!h)return d?(e.s=-t,e):new W(h?a:NaN);if(!d[0]||!h[0])return h[0]?(e.s=-t,e):new W(d[0]?a:3==P?-0:0)}if(c=p(c),f=p(f),d=d.slice(),s=c-f){for((o=(i=s<0)?(s=-s,d):(f=c,h)).reverse(),t=s;t--;o.push(0));o.reverse()}else for(r=(i=(s=d.length)<(t=h.length))?s:t,s=t=0;t<r;t++)if(d[t]!=h[t]){i=d[t]<h[t];break}if(i&&(o=d,d=h,h=o,e.s=-e.s),0<(t=(r=h.length)-(n=d.length)))for(;t--;d[n++]=0);for(t=u-1;s<r;){if(d[--r]<h[r]){for(n=r;n&&!d[--n];d[n]=t);--d[n],d[r]+=u}d[r]-=h[r]}for(;0==d[0];d.splice(0,1),--f);return d[0]?z(e,d,f):(e.s=3==P?-1:1,e.c=[e.e=0],e)},k.modulo=k.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)},k.multipliedBy=k.times=function(e,t){var n,r,o,i,a,s,c,f,h,y,m,g,v,E,b,T=this,C=T.c,w=(e=new W(e,t)).c;if(!(C&&w&&C[0]&&w[0]))return!T.s||!e.s||C&&!C[0]&&!w||w&&!w[0]&&!C?e.c=e.e=e.s=null:(e.s*=T.s,C&&w?(e.c=[0],e.e=0):e.c=e.e=null),e;for(r=p(T.e/l)+p(e.e/l),e.s*=T.s,(c=C.length)<(y=w.length)&&(v=C,C=w,w=v,o=c,c=y,y=o),o=c+y,v=[];o--;v.push(0));for(E=u,b=d,o=y;0<=--o;){for(n=0,m=w[o]%b,g=w[o]/b|0,i=o+(a=c);o<i;)n=((f=m*(f=C[--a]%b)+(s=g*f+(h=C[a]/b|0)*m)%b*b+v[i]+n)/E|0)+(s/b|0)+g*h,v[i--]=f%E;v[i]=n}return n?++r:v.splice(0,1),z(e,v,r)},k.negated=function(){var e=new W(this);return e.s=-e.s||null,e},k.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/l,a=e.e/l,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=p(i),a=p(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)/u|0,s[t]=u===s[t]?0:s[t]%u;return o&&(s=[o].concat(s),++a),z(e,s,a)},k.precision=k.sd=function(e,t){var n,r,o;if(null!=e&&e!==!!e)return g(e,1,h),null==t?t=P:g(t,0,8),K(new W(this),e,t);if(!(n=this.c))return null;if(r=(o=n.length-1)*l+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},k.shiftedBy=function(e){return g(e,-c,c),this.times("1e"+e)},k.squareRoot=k.sqrt=function(){var e,t,r,o,i,a=this,s=a.c,u=a.s,l=a.e,c=I+4,f=new W("0.5");if(1!==u||!s||!s[0])return new W(!u||u<0&&(!s||s[0])?NaN:s?a:1/0);if((r=0==(u=Math.sqrt(+X(a)))||u==1/0?(((t=y(s)).length+l)%2==0&&(t+="0"),u=Math.sqrt(+t),l=p((l+1)/2)-(l<0||l%2),new W(t=u==1/0?"1e"+l:(t=u.toExponential()).slice(0,t.indexOf("e")+1)+l)):new W(u+"")).c[0])for((u=(l=r.e)+c)<3&&(u=0);;)if(i=r,r=f.times(i.plus(n(a,i,c,1))),y(i.c).slice(0,u)===(t=y(r.c)).slice(0,u)){if(r.e<l&&--u,"9999"!=(t=t.slice(u-3,u+1))&&(o||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(K(r,r.e+I+2,1),e=!r.times(r).eq(a));break}if(!o&&(K(i,i.e+I+2,0),i.times(i).eq(a))){r=i;break}c+=4,u+=4,o=1}return K(r,r.e+I+1,P,e)},k.toExponential=function(e,t){return null!=e&&(g(e,0,h),e++),Y(this,e,t,1)},k.toFixed=function(e,t){return null!=e&&(g(e,0,h),e=e+this.e+1),Y(this,e,t)},k.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=B;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,u=+n.secondaryGroupSize,l=n.groupSeparator||"",c=i[0],f=i[1],d=this.s<0,h=d?c.slice(1):c,p=h.length;if(u&&(o=s,s=u,p-=u=o),0<s&&0<p){for(o=p%s||s,c=h.substr(0,o);o<p;o+=s)c+=l+h.substr(o,s);0<u&&(c+=l+h.slice(o)),d&&(c="-"+c)}r=f?c+(n.decimalSeparator||"")+((u=+n.fractionGroupSize)?f.replace(new RegExp("\\d{"+u+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):f):c}return(n.prefix||"")+r+(n.suffix||"")},k.toFraction=function(e){var t,r,o,i,s,u,c,d,h,p,m,g,v=this,E=v.c;if(null!=e&&(!(c=new W(e)).isInteger()&&(c.c||1!==c.s)||c.lt(M)))throw Error(a+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+X(c));if(!E)return new W(v);for(t=new W(M),h=r=new W(M),o=d=new W(M),g=y(E),s=t.e=g.length-v.e-1,t.c[0]=f[(u=s%l)<0?l+u:u],e=!e||0<c.comparedTo(t)?0<s?t:h:c,u=F,F=1/0,c=new W(g),d.c[0]=0;p=n(c,t,0,1),1!=(i=r.plus(p.times(o))).comparedTo(e);)r=o,o=i,h=d.plus(p.times(i=h)),d=i,t=c.minus(p.times(i=t)),c=i;return i=n(e.minus(r),o,0,1),d=d.plus(i.times(h)),r=r.plus(i.times(o)),d.s=h.s=v.s,m=n(h,o,s*=2,P).minus(v).abs().comparedTo(n(d,r,s,P).minus(v).abs())<1?[h,o]:[d,r],F=u,m},k.toNumber=function(){return+X(this)},k.toPrecision=function(e,t){return null!=e&&g(e,1,h),Y(this,e,t,2)},k.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(y(n.c),o):b(y(n.c),o,"0"):10===e?b(y((n=K(new W(n),I+o+1,P)).c),n.e,"0"):(g(e,2,V.length,"Base"),T(b(y(n.c),o,"0"),10,e,r,!0)),r<0&&n.c[0]&&(t="-"+t)),t},k.valueOf=k.toJSON=function(){return X(this)},k._isBigNumber=!0,"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator&&(k[Symbol.toStringTag]="BigNumber",k[Symbol.for("nodejs.util.inspect.custom")]=k.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"],u={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"}},l={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({},l,t),i=void 0,a="",s=!!o.totalLength||!!o.forceAverage||o.average,u=t.currencyPosition||r.position,c=t.currencySymbol||r.symbol;o.spaceSeparated&&(a=" "),"infix"===u&&(i=a+c+a);var f=p({instance:e,providedFormat:t,state:n,decimalSeparator:i});return"prefix"===u&&(f=e._value<0&&"sign"===o.negative?"-".concat(a).concat(c).concat(f.slice(1)):c+a+f),u&&"postfix"!==u||(f=f+(a=s?"":a)+c),f}(e,t=y(t,o.currentCurrencyDefaultFormat()),o);case"percent":return function(e,t,n,r){var o=t.prefixSymbol,i=p({instance:r(100*e._value),providedFormat:t,state:n}),a=Object.assign({},l,t);return o?"%".concat(a.spaceSeparated?" ":"").concat(i):"".concat(i).concat(a.spaceSeparated?" ":"","%")}(e,t=y(t,o.currentPercentageDefaultFormat()),o,n);case"byte":return t=y(t,o.currentByteDefaultFormat()),b=e,C=o,w=n,R=(T=t).base||"binary",O=u[R],A=(S=f(b._value,O.suffixes,O.scale)).value,N=S.suffix,_=p({instance:w(A),providedFormat:T,state:C,defaults:C.currentByteDefaultFormat()}),k=C.currentAbbreviations(),"".concat(_).concat(k.spaced?" ":"").concat(N);case"time":return t=y(t,o.currentTimeDefaultFormat()),m=e,g=Math.floor(m._value/60/60),v=Math.floor((m._value-60*g*60)/60),E=Math.round(m._value-60*g*60-60*v),"".concat(g,":").concat(v<10?"0":"").concat(v,":").concat(E<10?"0":"").concat(E);case"ordinal":return r=e,i=t=y(t,o.currentOrdinalDefaultFormat()),s=(a=o).currentOrdinal(),c=Object.assign({},l,i),d=p({instance:r,providedFormat:i,state:a}),h=s(r._value),"".concat(d).concat(c.spaceSeparated?" ":"").concat(h);case"number":default:return p({instance:e,providedFormat:t,numbro:n})}var r,i,a,s,c,d,h,m,g,v,E,b,T,C,w,R,O,S,A,N,_,k}(e,t,n);return(c=r+c)+s}function f(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 d(e){for(var t="",n=0;n<e;n++)t+="0";return t}function h(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),u=s[0],l=s[1],c=void 0===l?"":l;if(0<+a)n=u+c+d(a-c.length);else{var f=".";f=+u<0?"-0".concat(f):"0".concat(f);var h=(d(-a-1)+Math.abs(u)+c).substr(0,t);h.length<t&&(h+=d(t-h.length)),n=f+h}return 0<+a&&0<t&&(n+=".".concat(d(t))),n}(e,t):(Math.round(+"".concat(e,"e+").concat(t))/Math.pow(10,t)).toFixed(t)}function p(e){var t=e.instance,n=e.providedFormat,i=e.state,a=void 0===i?o:i,s=e.decimalSeparator,u=e.defaults,c=void 0===u?a.currentDefaults():u,f=t._value;if(0===f&&a.hasZeroFormat())return a.getZeroFormat();if(!isFinite(f))return f.toString();var d,p,y,m,g,v,E,b,T=Object.assign({},l,c,n),C=T.totalLength,w=C?0:T.characteristic,R=T.optionalCharacteristic,O=T.forceAverage,S=!!C||!!O||T.average,A=C?-1:S&&void 0===n.mantissa?0:T.mantissa,N=!C&&(void 0===n.optionalMantissa?-1===A:T.optionalMantissa),_=T.trimMantissa,k=T.thousandSeparated,M=T.spaceSeparated,I=T.negative,P=T.forceSign,x=T.exponential,D="";if(S){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,u="",l=Math.abs(t),c=-1;if(l>=Math.pow(10,12)&&!n||"trillion"===n?(u=r.trillion,t/=Math.pow(10,12)):l<Math.pow(10,12)&&l>=Math.pow(10,9)&&!n||"billion"===n?(u=r.billion,t/=Math.pow(10,9)):l<Math.pow(10,9)&&l>=Math.pow(10,6)&&!n||"million"===n?(u=r.million,t/=Math.pow(10,6)):(l<Math.pow(10,6)&&l>=Math.pow(10,3)&&!n||"thousand"===n)&&(u=r.thousand,t/=Math.pow(10,3)),u&&(u=(i?" ":"")+u),s){var f=t.toString().split(".")[0];c=Math.max(s-f.length,0)}return{value:t,abbreviation:u,mantissaPrecision:c}}({value:f,forceAverage:O,abbreviations:a.currentAbbreviations(),spaceSeparated:M,totalLength:C});f=L.value,D+=L.abbreviation,C&&(A=L.mantissaPrecision)}if(x){var F=(p=(d={value:f,characteristicPrecision:w}).value,m=void 0===(y=d.characteristicPrecision)?0:y,v=(g=r(p.toExponential().split("e"),2))[0],E=g[1],b=+v,m&&1<m&&(b*=Math.pow(10,m-1),E=0<=(E=+E-(m-1))?"+".concat(E):E),{value:b,abbreviation:"e".concat(E)});f=F.value,D=F.abbreviation+D}var j,U,H,B=function(e,t,n,o,i){if(-1===o)return e;var a=h(t,o),s=r(a.toString().split("."),2),u=s[0],l=s[1],c=void 0===l?"":l;if(c.match(/^0+$/)&&(n||i))return u;var f=c.match(/0+$/);return i&&f?"".concat(u,".").concat(c.toString().slice(0,f.index)):a.toString()}(f.toString(),f,N,A,_);return B=function(e,t,n,r,o){var i=r.currentDelimiters(),a=i.thousands;o=o||i.decimal;var s=i.thousandsSize||3,u=e.toString(),l=u.split(".")[0],c=u.split(".")[1];return n&&(t<0&&(l=l.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}(l.length,s).forEach((function(e,t){l=l.slice(0,e+t)+a+l.slice(e+t)})),t<0&&(l="-".concat(l))),c?l+o+c:l}(B=function(e,t,n,o){var i=e,a=r(i.toString().split("."),2),s=a[0],u=a[1];if(s.match(/^-?0$/)&&n)return u?"".concat(s.replace("0",""),".").concat(u):s.replace("0","");if(s.length<o)for(var l=o-s.length,c=0;c<l;c++)i="0".concat(i);return i.toString()}(B,0,R,w),f,k,a,s),(S||x)&&(B+=D),(P||f<0)&&(j=B,H=I,B=0===(U=f)?j:0==+j?j.replace("-",""):0<U?"+".concat(j):"sign"===H?j:"(".concat(j.replace("-",""),")")),B}function y(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=u.general;return f(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=u.binary;return f(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=u.decimal;return f(e._value,t.suffixes,t.scale).suffix}.apply(void 0,n.concat([e]))},formatOrDefault:y}}},{"./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,u={},l=null,c={};function f(e){s=e}function d(){return u[s]}a.languages=function(){return Object.assign({},u)},a.currentLanguage=function(){return s},a.currentCurrency=function(){return d().currency},a.currentAbbreviations=function(){return d().abbreviations},a.currentDelimiters=function(){return d().delimiters},a.currentOrdinal=function(){return d().ordinal},a.currentDefaults=function(){return Object.assign({},d().defaults,c)},a.currentOrdinalDefaultFormat=function(){return Object.assign({},a.currentDefaults(),d().ordinalFormat)},a.currentByteDefaultFormat=function(){return Object.assign({},a.currentDefaults(),d().byteFormat)},a.currentPercentageDefaultFormat=function(){return Object.assign({},a.currentDefaults(),d().percentageFormat)},a.currentCurrencyDefaultFormat=function(){return Object.assign({},a.currentDefaults(),d().currencyFormat)},a.currentTimeDefaultFormat=function(){return Object.assign({},a.currentDefaults(),d().timeFormat)},a.setDefaults=function(e){e=i.parseFormat(e),o.validateFormat(e)&&(c=e)},a.getZeroFormat=function(){return l},a.setZeroFormat=function(e){return l="string"==typeof e?e:null},a.hasZeroFormat=function(){return null!==l},a.languageData=function(e){if(e){if(u[e])return u[e];throw new Error('Unknown tag "'.concat(e,'"'))}return d()},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");u[e.languageTag]=e,t&&f(e.languageTag)},a.setLanguage=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:r.languageTag;if(!u[e]){var n=e.split("-")[0],o=Object.keys(u).find((function(e){return e.split("-")[0]===n}));return u[o]?void f(o):void f(t)}f(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),u=i,a.isNumbro(i)&&(u=i._value),u=new r(u),o._value=s.plus(u).toNumber(),o;var o,i,a,s,u},subtract:function(t,n){return o(t,n,e)},multiply:function(t,n){return i=n,a=e,s=new r((o=t)._value),u=i,a.isNumbro(i)&&(u=i._value),u=new r(u),o._value=s.times(u).toNumber(),o;var o,i,a,s,u},divide:function(t,n){return i=n,a=e,s=new r((o=t)._value),u=i,a.isNumbro(i)&&(u=i._value),u=new r(u),o._value=s.dividedBy(u).toNumber(),o;var o,i,a,s,u},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")(h),s=e("./unformatting"),u=e("./formatting")(h),l=e("./manipulating")(h),c=e("./parsing"),f=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._value=t}var t,n;return t=e,(n=[{key:"clone",value:function(){return h(this._value)}},{key:"format",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return u.format(this,e)}},{key:"formatCurrency",value:function(e){return"string"==typeof e&&(e=c.parseFormat(e)),(e=u.formatOrDefault(e,o.currentCurrencyDefaultFormat())).output="currency",u.format(this,e)}},{key:"formatTime",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return e.output="time",u.format(this,e)}},{key:"binaryByteUnits",value:function(){return u.getBinaryByteUnit(this)}},{key:"decimalByteUnits",value:function(){return u.getDecimalByteUnit(this)}},{key:"byteUnits",value:function(){return u.getByteUnit(this)}},{key:"difference",value:function(e){return l.difference(this,e)}},{key:"add",value:function(e){return l.add(this,e)}},{key:"subtract",value:function(e){return l.subtract(this,e)}},{key:"multiply",value:function(e){return l.multiply(this,e)}},{key:"divide",value:function(e){return l.divide(this,e)}},{key:"set",value:function(e){return l.set(this,d(e))}},{key:"value",value:function(){return this._value}},{key:"valueOf",value:function(){return this._value}}])&&r(t.prototype,n),e}();function d(e){var t=e;return h.isNumbro(e)?t=e._value:"string"==typeof e?t=h.unformat(e):isNaN(e)&&(t=NaN),t}function h(e){return new f(d(e))}h.version="2.1.2",h.isNumbro=function(e){return e instanceof f},h.language=o.currentLanguage,h.registerLanguage=o.registerLanguage,h.setLanguage=o.setLanguage,h.languages=o.languages,h.languageData=o.languageData,h.zeroFormat=o.setZeroFormat,h.defaultFormat=o.currentDefaults,h.setDefaults=o.setDefaults,h.defaultCurrencyFormat=o.currentCurrencyDefaultFormat,h.validate=i.validate,h.loadLanguagesInNode=a.loadLanguagesInNode,h.unformat=s.unformat,t.exports=h},{"./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,u,l,c,f,d,h,p,y,m,g,v,E,b,T=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return"string"!=typeof e?e:(n=T,i=T,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,T),s=T,(u=e.match(/[1-9]+[0-9]*/))&&(s.totalLength=+u[0]),l=T,(c=e.split(".")[0].match(/0+/))&&(l.characteristic=c[0].length),function(e,t){if(-1!==e.indexOf(".")){var n=e.split(".")[0];t.optionalCharacteristic=-1===n.indexOf("0")}}(e,T),f=T,-1!==e.indexOf("a")&&(f.average=!0),h=T,-1!==(d=e).indexOf("K")?h.forceAverage="thousand":-1!==d.indexOf("M")?h.forceAverage="million":-1!==d.indexOf("B")?h.forceAverage="billion":-1!==d.indexOf("T")&&(h.forceAverage="trillion"),function(e,t){var n=e.split(".")[1];if(n){var r=n.match(/0+/);r&&(t.mantissa=r[0].length)}}(e,T),y=T,(p=e).match(/\[\.]/)?y.optionalMantissa=!0:p.match(/\./)&&(y.optionalMantissa=!1),m=T,-1!==e.indexOf(",")&&(m.thousandSeparated=!0),g=T,-1!==e.indexOf(" ")&&(g.spaceSeparated=!0),E=T,(v=e).match(/^\+?\([^)]*\)$/)&&(E.negative="parenthesis"),v.match(/^\+?-/)&&(E.negative="sign"),b=T,e.match(/^\+/)&&(b.forceSign=!0),T)}}},{}],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,u=e("./globalState"),l=u.currentDelimiters(),c=u.currentCurrency().symbol,f=u.currentOrdinal(),d=u.getZeroFormat(),h=u.currentAbbreviations(),p=void 0;if("string"==typeof t)p=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,l)?(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,u=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,u=5<arguments.length?arguments[5]:void 0,l=6<arguments.length?arguments[6]:void 0;if(!isNaN(+t))return+t;var c="",f=t.replace(/(^[^(]*)\((.*)\)([^)]*$)/,"$1$2$3");if(f!==t)return-1*e(f,n,i,a,s,u,l);for(var d=0;d<r.length;d++){var h=r[d];if((c=t.replace(h.key,""))!==t)return e(c,n,i,a,s,u,l)*h.factor}if((c=t.replace("%",""))!==t)return e(c,n,i,a,s,u,l)/100;var p=parseFloat(t);if(!isNaN(p)){var y=a(p);if(y&&"."!==y&&(c=t.replace(new RegExp("".concat(o(y),"$")),""))!==t)return e(c,n,i,a,s,u,l);var m={};Object.keys(u).forEach((function(e){m[u[e]]=e}));for(var g=Object.keys(m).sort().reverse(),v=g.length,E=0;E<v;E++){var b=g[E],T=m[b];if((c=t.replace(b,""))!==t){var C=void 0;switch(T){case"thousand":C=Math.pow(10,3);break;case"million":C=Math.pow(10,6);break;case"billion":C=Math.pow(10,9);break;case"trillion":C=Math.pow(10,12)}return e(c,n,i,a,s,u,l)*C}}}}(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,u)}(t,l,c,f,d,h,n);else{if("number"!=typeof t)return;p=t}if(void 0!==p)return p}}},{"./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`"}},u={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 l(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 u=a.restrictions.length,l=0;l<u;l++){var f=a.restrictions[l],d=f.restriction,h=f.message;if(!d(i,e))return console.error("".concat(n," ").concat(r," invalid value: ").concat(h)),!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 f(e){return c(e,s,"[Validate format]")}t.exports={validate:function(e,t){var n=l(e),r=f(t);return n&&r},validateFormat:f,validateInput:l,validateLanguage:function(e){return c(e,u,"[Validate language]")}}},{"./unformatting":9}]},{},[7])(7),window.numbro=n(610)},function(e,t,n){"use strict";t.__esModule=!0,t.passwordRenderer=t.RENDERER_TYPE=void 0;var r=n(869);t.RENDERER_TYPE=r.RENDERER_TYPE,t.passwordRenderer=r.passwordRenderer},function(e,t,n){"use strict";t.__esModule=!0,t.timeRenderer=t.RENDERER_TYPE=void 0;var r=n(870);t.RENDERER_TYPE=r.RENDERER_TYPE,t.timeRenderer=r.timeRenderer},function(e,t,n){"use strict";t.__esModule=!0,t.dateValidator=t.correctFormat=t.VALIDATOR_TYPE=void 0;var r=n(873);t.VALIDATOR_TYPE=r.VALIDATOR_TYPE,t.correctFormat=r.correctFormat,t.dateValidator=r.dateValidator},function(e,t,n){"use strict";var r=n(70),o=n(215),i=n(65),a=n(89),s=n(874),u=n(71),l=n(129),c=n(216);o("search",(function(e,t,n){return[function(t){var n=a(this),o=null==t?void 0:l(t,e);return o?r(o,t,n):new RegExp(t)[e](u(n))},function(e){var r=i(this),o=u(e),a=n(t,r,o);if(a.done)return a.value;var l=r.lastIndex;s(l,0)||(r.lastIndex=0);var f=c(r,o);return s(r.lastIndex,l)||(r.lastIndex=l),null===f?-1:f.index}]}))},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.numericValidator=t.VALIDATOR_TYPE=void 0;var r=n(875);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(876);t.VALIDATOR_TYPE=r.VALIDATOR_TYPE,t.timeValidator=r.timeValidator},function(e,t,n){n(898)},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0,n(3),n(33),n(0),n(2),n(4),n(53),n(35);var o=r(n(43)),i=r(n(5)),a=r(n(6)),s=n(17),u=n(47),l=n(32),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,u.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,u.rangeEach)(t.from,t.to,(function(t){var u,f="row"===e?r.dataFactory(n,t):r.dataFactory(t,n),d=f.value,h=f.bundleSeed,p="string"==typeof h&&h.length>0;u=p?h:(0,s.isObject)(d)?"".concat(Object.keys(d).length):Array.isArray(d)?"".concat(d.length):"".concat((0,l.stringify)(d).length),i.has(u)||i.set(u,{needed:r.getSampleCount(),strings:[]});var y=i.get(u);y.needed&&((!(c.indexOf(d)>-1)||r.allowDuplicates||p)&&(y.strings.push((0,o.default)({value:d},a,t)),c.push(d),y.needed-=1))})),i}}],[{key:"SAMPLE_COUNT",get:function(){return 3}}]),e}();t.default=c},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ColumnSorting=void 0;var r=n(910);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ColumnSorting=r.ColumnSorting},function(e,t,n){var r=n(430),o=n(433),i=n(295),a=n(432);e.exports=function(e){return r(e)||o(e)||i(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.getCompareFunctionFactory=function(e){if(d(e))return f(e);return f(o.COLUMN_DATA_TYPE)},t.registerRootComparator=t.getRootComparator=void 0;var o=n(623),i=n(914),a=n(915),s=n(916),u=r(n(110)),l=(0,u.default)("sorting.compareFunctionFactory"),c=l.register,f=l.getItem,d=l.hasItem,h=(0,u.default)("sorting.mainSortComparator"),p=h.register,y=h.getItem;t.getRootComparator=y,t.registerRootComparator=p,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.COLUMN_DATA_TYPE=void 0,t.compareFunctionFactory=function(e,t,n){var i=t.locale;return function(t,a){var s=n.sortEmptyCells;return"string"==typeof t&&(t=t.toLocaleLowerCase(i)),"string"==typeof a&&(a=a.toLocaleLowerCase(i)),t===a?o.DO_NOT_SWAP:(0,r.isEmpty)(t)?(0,r.isEmpty)(a)?o.DO_NOT_SWAP:s&&"asc"===e?o.FIRST_BEFORE_SECOND:o.FIRST_AFTER_SECOND:(0,r.isEmpty)(a)?s&&"asc"===e?o.FIRST_AFTER_SECOND:o.FIRST_BEFORE_SECOND:isNaN(t)&&!isNaN(a)?"asc"===e?o.FIRST_AFTER_SECOND:o.FIRST_BEFORE_SECOND:!isNaN(t)&&isNaN(a)?"asc"===e?o.FIRST_BEFORE_SECOND:o.FIRST_AFTER_SECOND:(isNaN(t)||isNaN(a)||(t=parseFloat(t),a=parseFloat(a)),t<a?"asc"===e?o.FIRST_BEFORE_SECOND:o.FIRST_AFTER_SECOND:t>a?"asc"===e?o.FIRST_AFTER_SECOND:o.FIRST_BEFORE_SECOND:o.DO_NOT_SWAP)}};var r=n(32),o=n(127);t.COLUMN_DATA_TYPE="default"},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0,n(12),n(61),n(75);var o=r(n(5)),i=r(n(6)),a=n(20),s=n(17);function u(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 l=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(":"),l=i[0],c=2===i.length?i[1]:null,f=this.commands[l];if(!f)throw new Error("Menu command '".concat(l,"' not exists."));if(c&&f.submenu&&(f=u(c,f.submenu.items)),!0!==f.disabled&&("function"!=typeof f.disabled||!0!==f.disabled.call(this.hot))&&!(0,s.hasOwnProperty)(f,"submenu")){var d=[];"function"==typeof f.callback&&d.push(f.callback),"function"==typeof this.commonCallback&&d.push(this.commonCallback),r.unshift(i.join(":")),(0,a.arrayEach)(d,(function(e){return e.apply(t.hot,r)}))}}}]),e}();t.default=l},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0,n(25),n(35);var o=r(n(5)),i=r(n(6)),a=n(17),s=n(20),u=n(118);function l(){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&&u.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,u.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===u.SEPARATOR?(n[u.SEPARATOR]=e,o=u.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 l(e,this.defaultOrderPattern,this.predefinedItems)}}]),e}();t.default=c},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(21);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=u;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(n(30)),i=n(57),a=n(32);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function u(e){return(0,a.isEmpty)(e.value)}t.CONDITION_NAME="empty",(0,i.registerCondition)("empty",u,{name:o.FILTERS_CONDITIONS_EMPTY,inputsCount:0,showOperators:!0})},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=c;var i=r(n(34)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30)),s=n(32),u=n(57);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function c(e,t){var n=(0,i.default)(t,1)[0];return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale)===(0,s.stringify)(n)}t.CONDITION_NAME="eq",(0,u.registerCondition)("eq",c,{name:a.FILTERS_CONDITIONS_EQUAL,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=f;var i=r(n(34)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30)),s=n(57),u=n(629),l=n(630);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function f(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 f=(0,s.getCondition)(l.CONDITION_NAME,[o]),d=(0,s.getCondition)(u.CONDITION_NAME,[r]);return f(e)&&d(e)}return e.value>=r&&e.value<=o}t.CONDITION_NAME="between",(0,s.registerCondition)("between",f,{name:a.FILTERS_CONDITIONS_BETWEEN,inputsCount:2,showOperators:!0})},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=c;var i=r(n(34)),a=r(n(102)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30)),u=n(57);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function c(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,u.registerCondition)("date_after",c,{name:s.FILTERS_CONDITIONS_AFTER,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=c;var i=r(n(34)),a=r(n(102)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30)),u=n(57);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function c(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,u.registerCondition)("date_before",c,{name:s.FILTERS_CONDITIONS_BEFORE,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=c,n(35);var i=r(n(34)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30)),s=n(32),u=n(57);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function c(e,t){var n=(0,i.default)(t,1)[0];return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale).indexOf((0,s.stringify)(n))>=0}t.CONDITION_NAME="contains",(0,u.registerCondition)("contains",c,{name:a.FILTERS_CONDITIONS_CONTAINS,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(3),n(2),n(11),n(4),n(19);var r=n(21);t.__esModule=!0,t.SHORT_NAME_FOR_COMPONENT=t.OPERATION_ID=void 0,t.operationResult=u,n(0);var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var u=i?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(30)),i=n(200);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.OPERATION_ID="disjunction";var s=o.FILTERS_LABELS_DISJUNCTION;function u(e,t){return e.some((function(e){return e.func(t)}))}t.SHORT_NAME_FOR_COMPONENT=s,(0,i.registerOperation)("disjunction",s,u)},function(e,t,n){"use strict";n(3),n(2),n(11),n(4),n(19);var r=n(21);t.__esModule=!0,t.SHORT_NAME_FOR_COMPONENT=t.OPERATION_ID=void 0,t.operationResult=u,n(0),n(13);var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var u=i?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(30)),i=n(200);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.OPERATION_ID="disjunctionWithExtraCondition";var s=o.FILTERS_LABELS_DISJUNCTION;function u(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=s,(0,i.registerOperation)("disjunctionWithExtraCondition",s,u)},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(34)),i=r(n(79));n(25),n(37),n(35),n(0);var a,s,u=r(n(5)),l=r(n(6)),c=n(20),f=n(17),d=n(80),h=r(n(92)),p=n(57),y=n(316),m=n(200),g=n(32),v=n(82),E="ConditionCollection.filteringStates",b=function(){function e(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];(0,u.default)(this,e),this.hot=t,this.isMapRegistrable=n,this.filteringStates=new v.LinkedPhysicalIndexToValueMap,!0===this.isMapRegistrable?this.hot.columnIndexMapper.registerMap(E,this.filteringStates):this.filteringStates.init(this.hot.columnIndexMapper.getNumberOfIndexes())}return(0,l.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]:y.OPERATION_ID;return!e.length||(0,m.getOperationFunc)(n)(e,t)}},{key:"addCondition",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y.OPERATION_ID,r=arguments.length>3?arguments[3]:void 0,o=this.hot.getCellMeta(0,e).locale,u=(0,c.arrayMap)(t.args,(function(e){return"string"==typeof e?e.toLocaleLowerCase(o):e})),l=t.name||t.command.key;this.runLocalHooks("beforeAdd",e);var f=this.getOperation(e);if(f){if(f!==n)throw Error((0,d.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,f))}else if((0,g.isUndefined)(m.operations[n]))throw new Error((0,d.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 h=this.getConditions(e);0===h.length?this.filteringStates.setValueAtIndex(e,{operation:n,conditions:[{name:l,args:u,func:(0,p.getCondition)(l,u)}]},r):h.push({name:l,args:u,func:(0,p.getCondition)(l,u)}),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,f.mixin)(b,h.default);var T=b;t.default=T},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6)),a=n(20),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(8),n(40),n(19),n(26),n(83);var r=n(1);t.__esModule=!0,t.DEFAULT_LICENSE_KEY=void 0,t.getEngineSettingsOverrides=l,t.getEngineSettingsWithDefaultsAndOverrides=function(e){var t,n=e[i.PLUGIN_KEY],r=c(null!=n&&null!==(t=n.engine)&&void 0!==t&&t.hyperformula?n.engine:{}),o=l(e);return s(s(s({},u),r),o)},t.getEngineSettingsWithOverrides=function(e){var t,n=e[i.PLUGIN_KEY],r=c(null!=n&&null!==(t=n.engine)&&void 0!==t&&t.hyperformula?n.engine:{}),o=l(e);return s(s({},r),o)};var o=r(n(43));n(99),n(0),n(53);var i=n(318);function a(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 s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.DEFAULT_LICENSE_KEY="internal-use-in-handsontable";var u={licenseKey:"internal-use-in-handsontable",useArrayArithmetic:!0,useColumnIndex:!1,useStats:!1,evaluateNullToZero:!0,precisionEpsilon:1e-13,precisionRounding:14,smartRounding:!0,leapYear1900:!0,nullDate:{year:1899,month:12,day:31},nullYear:30,dateFormats:["DD/MM/YYYY","DD/MM/YY"],timeFormats:["hh:mm","hh:mm:ss.sss"],matchWholeCell:!0,useRegularExpressions:!1,useWildcards:!0,functionArgSeparator:",",thousandSeparator:"",decimalSeparator:".",language:"enGB"};function l(e){var t,n;return{maxColumns:e.maxColumns,maxRows:e.maxRows,language:null===(t=e[i.PLUGIN_KEY])||void 0===t||null===(n=t.language)||void 0===n?void 0:n.langCode}}function c(e){return Object.keys(e).reduce((function(t,n){return"hyperformula"!==n&&(t[n]=e[n]),t}),{})}},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6)),a=n(47),s=n(91),u=function(){function e(t){(0,o.default)(this,e),this.hot=t,this._element=null,this.state=0,this.inlineProperty=t.isRtl()?"right":"left"}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[this.inlineProperty]=t+"px")}},{key:"getPosition",value:function(){var e=this._element.style;return{top:e.top?parseInt(e.top,10):0,start:e[this.inlineProperty]?parseInt(e[this.inlineProperty],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["margin".concat((0,s.toUpperCaseFirst)(this.inlineProperty))]=t+"px")}},{key:"getOffset",value:function(){var e=this._element.style,t="margin".concat((0,s.toUpperCaseFirst)(this.inlineProperty));return{top:e.marginTop?parseInt(e.marginTop,10):0,start:e[t]?parseInt(e[t],10):0}}}]),e}();t.default=u},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6)),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(0),n(66)},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,u=void 0!==s&&s,l=e.crossHiddenColumns,c=void 0===l?[]:l,f=e.isCollapsed,d=void 0!==f&&f,h=e.isHidden,p=void 0!==h&&h,y=e.isRoot,m=void 0!==y&&y,g=e.isPlaceholder,v=void 0!==g&&g;return{label:n,colspan:o,origColspan:a,collapsible:u,isCollapsed:d,crossHiddenColumns:c,isHidden:p,isRoot:m,isPlaceholder:v}},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 u=s.slice(1),l=new Set;if(u.length>0)(0,r.arrayEach)(u,(function(e){(0,i.traverseHiddenNodeColumnIndexes)(e,(function(e){l.add(e)})),e.data.clonedTree=e.cloneTree(),e.walkDown((function(e){e.data.isHidden=!0}))}));else for(var c=a.origColspan,f=a.columnIndex,d=1;d<c;d++){var h=f+d;l.add(h)}var p=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-=p,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(l),colspanCompensation:p}},n(13),n(3),n(0),n(55),n(2),n(4),n(22);var r=n(20),o=n(642),i=n(643)},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),u=new Set,l=0;if(s.length>0)(0,r.arrayEach)(s,(function(e){e.replaceTreeWith(e.data.clonedTree),e.data.clonedTree=null;var t=e.data;l+=t.colspan,(0,i.traverseHiddenNodeColumnIndexes)(e,(function(e){u.add(e)}))}));else{var c=n.colspan,f=n.origColspan,d=n.columnIndex;l=f-c;for(var h=1;h<f;h++)u.add(d+h)}return t.walkUp((function(e){var t=e.data;t.colspan+=l,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(u),colspanCompensation:l}},n(13),n(3),n(0),n(55),n(2),n(4),n(22);var r=n(20),o=n(641),i=n(643)},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.getFirstChildProperty=r,t.isNodeReflectsFirstChildColspan=function(e){return r(e,"origColspan")===e.data.origColspan},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)}))}},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.default=void 0,n(18);var o=r(n(5)),i=r(n(6)),a=r(n(15)),s=r(n(16)),u=r(n(14)),l=n(20),c=n(47),f=n(23);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,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,s.default)(this,n)}}var h=function(e){(0,a.default)(n,e);var t=d(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"),u=a.querySelectorAll('[class^="ht_nesting"]');if((0,l.arrayEach)(u,(function(e){e&&a.removeChild(e)})),(0,f.addClass)(t,n.CSS_CLASSES.indicatorContainer),o){var d=this.hot.rootDocument,h=s.cloneNode(!0);a.innerHTML="",(0,c.rangeEach)(0,o-1,(function(){var e=d.createElement("SPAN");(0,f.addClass)(e,n.CSS_CLASSES.emptyIndicator),a.appendChild(e)})),a.appendChild(h)}if(this.dataManager.hasChildren(i)){var p=this.hot.rootDocument.createElement("DIV");(0,f.addClass)(t,n.CSS_CLASSES.parent),this.collapsingUI.areChildrenCollapsed(r)?(0,f.addClass)(p,"".concat(n.CSS_CLASSES.button," ").concat(n.CSS_CLASSES.expandButton)):(0,f.addClass)(p,"".concat(n.CSS_CLASSES.button," ").concat(n.CSS_CLASSES.collapseButton)),a.appendChild(p)}}},{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(320)).default);t.default=h},function(e,t,n){n(238),e.exports=n(740)},function(e,t,n){var r=n(29),o=n(70),i=n(60),a=n(64),s=r.TypeError;e.exports=function(e,t){var n,r;if("string"===t&&i(n=e.toString)&&!a(r=o(n,e)))return r;if(i(n=e.valueOf)&&!a(r=o(n,e)))return r;if("string"!==t&&i(n=e.toString)&&!a(r=o(n,e)))return r;throw s("Can't convert object to primitive value")}},function(e,t,n){var r=n(39),o=n(60),i=n(62),a=n(69),s=n(171).CONFIGURABLE,u=n(241),l=n(113),c=l.enforce,f=l.get,d=Object.defineProperty,h=a&&!r((function(){return 8!==d((function(){}),"length",{value:8}).length})),p=String(String).split("String"),y=e.exports=function(e,t,n){if("Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!i(e,"name")||s&&e.name!==t)&&d(e,"name",{value:t,configurable:!0}),h&&n&&i(n,"arity")&&e.length!==n.arity&&d(e,"length",{value:n.arity}),n&&i(n,"constructor")&&n.constructor){if(a)try{d(e,"prototype",{writable:!1})}catch(e){}}else e.prototype=void 0;var r=c(e);return i(r,"source")||(r.source=p.join("string"==typeof t?t:"")),e};Function.prototype.toString=y((function(){return o(this)&&f(this).source||u(this)}),"toString")},function(e,t,n){"use strict";var r=n(247),o=n(210);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(e,t,n){"use strict";var r=n(29),o=n(36),i=n(148),a=n(64),s=n(62),u=n(173),l=n(165),c=r.Function,f=o([].concat),d=o([].join),h={},p=function(e,t,n){if(!s(h,t)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";h[t]=c("C,a","return new C("+d(r,",")+")")}return h[t](e,n)};e.exports=l?c.bind:function(e){var t=i(this),n=t.prototype,r=u(arguments,1),o=function(){var n=f(r,u(arguments));return this instanceof o?p(t,n.length,n):t.apply(e,n)};return a(n)&&(o.prototype=n),o}},function(e,t,n){"use strict";var r=n(29),o=n(177),i=n(70),a=n(90),s=n(651),u=n(334),l=n(211),c=n(97),f=n(152),d=n(335),h=n(251),p=r.Array;e.exports=function(e){var t=a(e),n=l(this),r=arguments.length,y=r>1?arguments[1]:void 0,m=void 0!==y;m&&(y=o(y,r>2?arguments[2]:void 0));var g,v,E,b,T,C,w=h(t),R=0;if(!w||this==p&&u(w))for(g=c(t),v=n?new this(g):p(g);g>R;R++)C=m?y(t[R],R):t[R],f(v,R,C);else for(T=(b=d(t,w)).next,v=n?new this:[];!(E=i(T,b)).done;R++)C=m?s(b,y,[E.value,R],!0):E.value,f(v,R,C);return v.length=R,v}},function(e,t,n){var r=n(65),o=n(333);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){o(e,"throw",t)}}},function(e,t,n){"use strict";var r=n(337).IteratorPrototype,o=n(133),i=n(166),a=n(212),s=n(178),u=function(){return this};e.exports=function(e,t,n,l){var c=t+" Iterator";return e.prototype=o(r,{next:i(+!l,n)}),a(e,c,!1,!0),s[c]=u,e}},function(e,t,n){var r=n(29),o=n(60),i=r.String,a=r.TypeError;e.exports=function(e){if("object"==typeof e||o(e))return e;throw a("Can't set "+i(e)+" as a prototype")}},function(e,t,n){"use strict";var r=n(28),o=n(29),i=n(70),a=n(36),s=n(130),u=n(69),l=n(147),c=n(39),f=n(62),d=n(120),h=n(65),p=n(93),y=n(203),m=n(71),g=n(166),v=n(133),E=n(174),b=n(150),T=n(245),C=n(207),w=n(112),R=n(84),O=n(331),S=n(202),A=n(96),N=n(149),_=n(206),k=n(172),M=n(204),I=n(58),P=n(342),x=n(343),D=n(656),L=n(212),F=n(113),j=n(134).forEach,U=_("hidden"),H=F.set,B=F.getterFor("Symbol"),V=Object.prototype,W=o.Symbol,Y=W&&W.prototype,G=o.TypeError,z=o.QObject,K=w.f,X=R.f,q=T.f,Q=S.f,$=a([].push),Z=N("symbols"),J=N("op-symbols"),ee=N("wks"),te=!z||!z.prototype||!z.prototype.findChild,ne=u&&c((function(){return 7!=v(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=K(V,t);r&&delete V[t],X(e,t,n),r&&e!==V&&X(V,t,r)}:X,re=function(e,t){var n=Z[e]=v(Y);return H(n,{type:"Symbol",tag:e,description:t}),u||(n.description=t),n},oe=function(e,t,n){e===V&&oe(J,t,n),h(e);var r=y(t);return h(n),f(Z,r)?(n.enumerable?(f(e,U)&&e[U][r]&&(e[U][r]=!1),n=v(n,{enumerable:g(0,!1)})):(f(e,U)||X(e,U,g(1,{})),e[U][r]=!0),ne(e,r,n)):X(e,r,n)},ie=function(e,t){h(e);var n=p(t),r=E(n).concat(le(n));return j(r,(function(t){u&&!i(ae,n,t)||oe(e,t,n[t])})),e},ae=function(e){var t=y(e),n=i(Q,this,t);return!(this===V&&f(Z,t)&&!f(J,t))&&(!(n||!f(this,t)||!f(Z,t)||f(this,U)&&this[U][t])||n)},se=function(e,t){var n=p(e),r=y(t);if(n!==V||!f(Z,r)||f(J,r)){var o=K(n,r);return!o||!f(Z,r)||f(n,U)&&n[U][r]||(o.enumerable=!0),o}},ue=function(e){var t=q(p(e)),n=[];return j(t,(function(e){f(Z,e)||f(k,e)||$(n,e)})),n},le=function(e){var t=e===V,n=q(t?J:p(e)),r=[];return j(n,(function(e){!f(Z,e)||t&&!f(V,e)||$(r,Z[e])})),r};l||(A(Y=(W=function(){if(d(Y,this))throw G("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,t=M(e),n=function(e){this===V&&i(n,J,e),f(this,U)&&f(this[U],t)&&(this[U][t]=!1),ne(this,t,g(1,e))};return u&&te&&ne(V,t,{configurable:!0,set:n}),re(t,e)}).prototype,"toString",(function(){return B(this).tag})),A(W,"withoutSetter",(function(e){return re(M(e),e)})),S.f=ae,R.f=oe,O.f=ie,w.f=se,b.f=T.f=ue,C.f=le,P.f=function(e){return re(I(e),e)},u&&(X(Y,"description",{configurable:!0,get:function(){return B(this).description}}),s||A(V,"propertyIsEnumerable",ae,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:W}),j(E(ee),(function(e){x(e)})),r({target:"Symbol",stat:!0,forced:!l},{useSetter:function(){te=!0},useSimple:function(){te=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!u},{create:function(e,t){return void 0===t?v(e):ie(v(e),t)},defineProperty:oe,defineProperties:ie,getOwnPropertyDescriptor:se}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:ue}),D(),L(W,"Symbol"),k[U]=!0},function(e,t,n){var r=n(29);e.exports=r},function(e,t,n){var r=n(70),o=n(107),i=n(58),a=n(96);e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return r(n,this)}),{arity:1})}},function(e,t,n){var r=n(29),o=n(175),i=n(211),a=n(64),s=n(58)("species"),u=r.Array;e.exports=function(e){var t;return o(e)&&(t=e.constructor,(i(t)&&(t===u||o(t.prototype))||a(t)&&null===(t=t[s]))&&(t=void 0)),void 0===t?u:t}},function(e,t,n){var r=n(28),o=n(107),i=n(62),a=n(71),s=n(149),u=n(344),l=s("string-to-symbol-registry"),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{for:function(e){var t=a(e);if(i(l,t))return l[t];var n=o("Symbol")(t);return l[t]=n,c[n]=t,n}})},function(e,t,n){var r=n(28),o=n(62),i=n(168),a=n(170),s=n(149),u=n(344),l=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{keyFor:function(e){if(!i(e))throw TypeError(a(e)+" is not a symbol");if(o(l,e))return l[e]}})},function(e,t,n){var r=n(28),o=n(107),i=n(132),a=n(70),s=n(36),u=n(39),l=n(175),c=n(60),f=n(64),d=n(168),h=n(173),p=n(147),y=o("JSON","stringify"),m=s(/./.exec),g=s("".charAt),v=s("".charCodeAt),E=s("".replace),b=s(1..toString),T=/[\uD800-\uDFFF]/g,C=/^[\uD800-\uDBFF]$/,w=/^[\uDC00-\uDFFF]$/,R=!p||u((function(){var e=o("Symbol")();return"[null]"!=y([e])||"{}"!=y({a:e})||"{}"!=y(Object(e))})),O=u((function(){return'"\\udf06\\ud834"'!==y("\udf06\ud834")||'"\\udead"'!==y("\udead")})),S=function(e,t){var n=h(arguments),r=t;if((f(t)||void 0!==e)&&!d(e))return l(t)||(t=function(e,t){if(c(r)&&(t=a(r,this,e,t)),!d(t))return t}),n[1]=t,i(y,null,n)},A=function(e,t,n){var r=g(n,t-1),o=g(n,t+1);return m(C,e)&&!m(w,o)||m(w,e)&&!m(C,r)?"\\u"+b(v(e,0),16):e};y&&r({target:"JSON",stat:!0,arity:3,forced:R||O},{stringify:function(e,t,n){var r=h(arguments),o=i(R?S:y,null,r);return O&&"string"==typeof o?E(o,T,A):o}})},function(e,t,n){var r=n(28),o=n(147),i=n(39),a=n(207),s=n(90);r({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},function(e,t,n){"use strict";var r=n(69),o=n(36),i=n(70),a=n(39),s=n(174),u=n(207),l=n(202),c=n(90),f=n(167),d=Object.assign,h=Object.defineProperty,p=o([].concat);e.exports=!d||a((function(){if(r&&1!==d({b:1},d(h({},"a",{enumerable:!0,get:function(){h(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!=d({},e)[n]||"abcdefghijklmnopqrst"!=s(d({},t)).join("")}))?function(e,t){for(var n=c(e),o=arguments.length,a=1,d=u.f,h=l.f;o>a;)for(var y,m=f(arguments[a++]),g=d?p(s(m),d(m)):s(m),v=g.length,E=0;v>E;)y=g[E++],r&&!i(h,m,y)||(n[y]=m[y]);return n}:d},function(e,t,n){"use strict";n(214)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(350))},function(e,t,n){var r=n(39);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},function(e,t,n){"use strict";var r=n(134).forEach,o=n(153)("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(29).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&r(e)}},function(e,t,n){var r=n(84).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},function(e,t,n){"use strict";n(214)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(350))},function(e,t,n){var r=n(65),o=n(330),i=n(58)("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(29),o=n(148),i=n(90),a=n(167),s=n(97),u=r.TypeError,l=function(e){return function(t,n,r,l){o(n);var c=i(t),f=a(c),d=s(c),h=e?d-1:0,p=e?-1:1;if(r<2)for(;;){if(h in f){l=f[h],h+=p;break}if(h+=p,e?h<0:d<=h)throw u("Reduce of empty array with no initial value")}for(;e?h>=0:d>h;h+=p)h in f&&(l=n(l,f[h],h,c));return l}};e.exports={left:l(!1),right:l(!0)}},function(e,t,n){var r=n(36),o=n(90),i=Math.floor,a=r("".charAt),s=r("".replace),u=r("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,f,d){var h=n+e.length,p=r.length,y=c;return void 0!==f&&(f=o(f),y=l),s(d,y,(function(o,s){var l;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return u(t,0,n);case"'":return u(t,h);case"<":l=f[u(s,1,-1)];break;default:var c=+s;if(0===c)return o;if(c>p){var d=i(c/10);return 0===d?o:d<=p?void 0===r[d-1]?a(s,1):r[d-1]+a(s,1):o}l=r[c-1]}return void 0===l?"":l}))}},function(e,t,n){"use strict";n.r(t),n.d(t,"ResyncFollowsWalker",(function(){return c})),n.d(t,"computeAllProdsFollows",(function(){return f})),n.d(t,"buildBetweenProdsFollowPrefix",(function(){return d})),n.d(t,"buildInProdFollowPrefix",(function(){return h}));var r,o=n(263),i=n(358),a=n(48),s=n(359),u=n(56),l=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this)||this;return n.topProd=t,n.follows={},n}return l(t,e),t.prototype.startWalking=function(){return this.walk(this.topProd),this.follows},t.prototype.walkTerminal=function(e,t,n){},t.prototype.walkProdRef=function(e,t,n){var r=d(e.referencedRule,e.idx)+this.topProd.name,o=t.concat(n),a=new u.Flat({definition:o}),s=Object(i.first)(a);this.follows[r]=s},t}(o.RestWalker);function f(e){var t={};return Object(a.forEach)(e,(function(e){var n=new c(e).startWalking();Object(a.assign)(t,n)})),t}function d(e,t){return e.name+t+s.IN}function h(e){return e.terminalType.name+e.idx+s.IN}},function(e,t,n){"use strict";n.r(t),n.d(t,"failedOptimizationPrefixMsg",(function(){return l})),n.d(t,"getOptimizedStartCodesIndices",(function(){return c})),n.d(t,"firstCharOptimizedIndices",(function(){return f})),n.d(t,"canMatchCharCode",(function(){return m}));var r,o=n(264),i=n(48),a=n(265),s=n(357),u=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l='Unable to use "first char" lexer optimizations:\n';function c(e,t){void 0===t&&(t=!1);try{var n=Object(a.getRegExpAst)(e);return f(n.value,{},n.flags.ignoreCase)}catch(n){if("Complement Sets are not supported for first char optimization"===n.message)t&&Object(i.PRINT_WARNING)(l+"\tUnable to optimize: < "+e.toString()+" >\n\tComplement Sets cannot be automatically optimized.\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.");else{var r="";t&&(r="\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details."),Object(i.PRINT_ERROR)(l+"\n\tFailed parsing: < "+e.toString()+" >\n\tUsing the regexp-to-ast library version: "+o.VERSION+"\n\tPlease open an issue at: https://github.com/bd82/regexp-to-ast/issues"+r)}}return[]}function f(e,t,n){switch(e.type){case"Disjunction":for(var r=0;r<e.value.length;r++)f(e.value[r],t,n);break;case"Alternative":var o=e.value;for(r=0;r<o.length;r++){var a=o[r];switch(a.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}var u=a;switch(u.type){case"Character":d(u.value,t,n);break;case"Set":if(!0===u.complement)throw Error("Complement Sets are not supported for first char optimization");Object(i.forEach)(u.value,(function(e){if("number"==typeof e)d(e,t,n);else{var r=e;if(!0===n)for(var o=r.from;o<=r.to;o++)d(o,t,n);else{for(o=r.from;o<=r.to&&o<s.minOptimizationVal;o++)d(o,t,n);if(r.to>=s.minOptimizationVal)for(var i=r.from>=s.minOptimizationVal?r.from:s.minOptimizationVal,a=r.to,u=Object(s.charCodeToOptimizedIndex)(i),l=Object(s.charCodeToOptimizedIndex)(a),c=u;c<=l;c++)t[c]=c}}}));break;case"Group":f(u.value,t,n);break;default:throw Error("Non Exhaustive Match")}var l=void 0!==u.quantifier&&0===u.quantifier.atLeast;if("Group"===u.type&&!1===p(u)||"Group"!==u.type&&!1===l)break}break;default:throw Error("non exhaustive match!")}return Object(i.values)(t)}function d(e,t,n){var r=Object(s.charCodeToOptimizedIndex)(e);t[r]=r,!0===n&&function(e,t){var n=String.fromCharCode(e),r=n.toUpperCase();if(r!==n){var o=Object(s.charCodeToOptimizedIndex)(r.charCodeAt(0));t[o]=o}else{var i=n.toLowerCase();if(i!==n){o=Object(s.charCodeToOptimizedIndex)(i.charCodeAt(0));t[o]=o}}}(e,t)}function h(e,t){return Object(i.find)(e.value,(function(e){if("number"==typeof e)return Object(i.contains)(t,e);var n=e;return void 0!==Object(i.find)(t,(function(e){return n.from<=e&&e<=n.to}))}))}function p(e){return!(!e.quantifier||0!==e.quantifier.atLeast)||!!e.value&&(Object(i.isArray)(e.value)?Object(i.every)(e.value,p):p(e.value))}var y=function(e){function t(t){var n=e.call(this)||this;return n.targetCharCodes=t,n.found=!1,n}return u(t,e),t.prototype.visitChildren=function(t){if(!0!==this.found){switch(t.type){case"Lookahead":return void this.visitLookahead(t);case"NegativeLookahead":return void this.visitNegativeLookahead(t)}e.prototype.visitChildren.call(this,t)}},t.prototype.visitCharacter=function(e){Object(i.contains)(this.targetCharCodes,e.value)&&(this.found=!0)},t.prototype.visitSet=function(e){e.complement?void 0===h(e,this.targetCharCodes)&&(this.found=!0):void 0!==h(e,this.targetCharCodes)&&(this.found=!0)},t}(o.BaseRegExpVisitor);function m(e,t){if(t instanceof RegExp){var n=Object(a.getRegExpAst)(t),r=new y(e);return r.visit(n),r.found}return void 0!==Object(i.find)(t,(function(t){return Object(i.contains)(e,t.charCodeAt(0))}))}},function(e,t,n){"use strict";n.r(t),n.d(t,"resolveGrammar",(function(){return u})),n.d(t,"GastRefResolverVisitor",(function(){return l}));var r,o=n(77),i=n(48),a=n(135),s=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function u(e,t){var n=new l(e,t);return n.resolveRefs(),n.errors}var l=function(e){function t(t,n){var r=e.call(this)||this;return r.nameToTopRule=t,r.errMsgProvider=n,r.errors=[],r}return s(t,e),t.prototype.resolveRefs=function(){var e=this;Object(i.forEach)(Object(i.values)(this.nameToTopRule),(function(t){e.currTopLevel=t,t.accept(e)}))},t.prototype.visitNonTerminal=function(e){var t=this.nameToTopRule[e.nonTerminalName];if(t)e.referencedRule=t;else{var n=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:n,type:o.ParserDefinitionErrorType.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}},t}(a.GAstVisitor)},function(e,t,n){"use strict";n.r(t),n.d(t,"LooksAhead",(function(){return u}));var r=n(222),o=n(48),i=n(77),a=n(184),s=n(183),u=function(){function e(){}return e.prototype.initLooksAhead=function(e){this.dynamicTokensEnabled=Object(o.has)(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:i.DEFAULT_PARSER_CONFIG.dynamicTokensEnabled,this.maxLookahead=Object(o.has)(e,"maxLookahead")?e.maxLookahead:i.DEFAULT_PARSER_CONFIG.maxLookahead,this.lookAheadFuncsCache=Object(o.isES2015MapSupported)()?new Map:[],Object(o.isES2015MapSupported)()?(this.getLaFuncFromCache=this.getLaFuncFromMap,this.setLaFuncCache=this.setLaFuncCacheUsingMap):(this.getLaFuncFromCache=this.getLaFuncFromObj,this.setLaFuncCache=this.setLaFuncUsingObj)},e.prototype.preComputeLookaheadFunctions=function(e){var t=this;Object(o.forEach)(e,(function(e){t.TRACE_INIT(e.name+" Rule Lookahead",(function(){var n=Object(s.collectMethods)(e),i=n.alternation,u=n.repetition,l=n.option,c=n.repetitionMandatory,f=n.repetitionMandatoryWithSeparator,d=n.repetitionWithSeparator;Object(o.forEach)(i,(function(n){var o=0===n.idx?"":n.idx;t.TRACE_INIT(""+Object(s.getProductionDslName)(n)+o,(function(){var o=Object(r.buildLookaheadFuncForOr)(n.idx,e,n.maxLookahead||t.maxLookahead,n.hasPredicates,t.dynamicTokensEnabled,t.lookAheadBuilderForAlternatives),i=Object(a.getKeyForAutomaticLookahead)(t.fullRuleNameToShort[e.name],a.OR_IDX,n.idx);t.setLaFuncCache(i,o)}))})),Object(o.forEach)(u,(function(n){t.computeLookaheadFunc(e,n.idx,a.MANY_IDX,r.PROD_TYPE.REPETITION,n.maxLookahead,Object(s.getProductionDslName)(n))})),Object(o.forEach)(l,(function(n){t.computeLookaheadFunc(e,n.idx,a.OPTION_IDX,r.PROD_TYPE.OPTION,n.maxLookahead,Object(s.getProductionDslName)(n))})),Object(o.forEach)(c,(function(n){t.computeLookaheadFunc(e,n.idx,a.AT_LEAST_ONE_IDX,r.PROD_TYPE.REPETITION_MANDATORY,n.maxLookahead,Object(s.getProductionDslName)(n))})),Object(o.forEach)(f,(function(n){t.computeLookaheadFunc(e,n.idx,a.AT_LEAST_ONE_SEP_IDX,r.PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR,n.maxLookahead,Object(s.getProductionDslName)(n))})),Object(o.forEach)(d,(function(n){t.computeLookaheadFunc(e,n.idx,a.MANY_SEP_IDX,r.PROD_TYPE.REPETITION_WITH_SEPARATOR,n.maxLookahead,Object(s.getProductionDslName)(n))}))}))}))},e.prototype.computeLookaheadFunc=function(e,t,n,o,i,s){var u=this;this.TRACE_INIT(""+s+(0===t?"":t),(function(){var s=Object(r.buildLookaheadFuncForOptionalProd)(t,e,i||u.maxLookahead,u.dynamicTokensEnabled,o,u.lookAheadBuilderForOptional),l=Object(a.getKeyForAutomaticLookahead)(u.fullRuleNameToShort[e.name],n,t);u.setLaFuncCache(l,s)}))},e.prototype.lookAheadBuilderForOptional=function(e,t,n){return Object(r.buildSingleAlternativeLookaheadFunction)(e,t,n)},e.prototype.lookAheadBuilderForAlternatives=function(e,t,n,o){return Object(r.buildAlternativesLookAheadFunc)(e,t,n,o)},e.prototype.getKeyForAutomaticLookahead=function(e,t){var n=this.getLastExplicitRuleShortName();return Object(a.getKeyForAutomaticLookahead)(n,e,t)},e.prototype.getLaFuncFromCache=function(e){},e.prototype.getLaFuncFromMap=function(e){return this.lookAheadFuncsCache.get(e)},e.prototype.getLaFuncFromObj=function(e){return this.lookAheadFuncsCache[e]},e.prototype.setLaFuncCache=function(e,t){},e.prototype.setLaFuncCacheUsingMap=function(e,t){this.lookAheadFuncsCache.set(e,t)},e.prototype.setLaFuncUsingObj=function(e,t){this.lookAheadFuncsCache[e]=t},e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"TreeBuilder",(function(){return u}));var r=n(267),o=n(48),i=n(677),a=n(184),s=n(77),u=function(){function e(){}return e.prototype.initTreeBuilder=function(e){if(this.LAST_EXPLICIT_RULE_STACK=[],this.CST_STACK=[],this.outputCst=Object(o.has)(e,"outputCst")?e.outputCst:s.DEFAULT_PARSER_CONFIG.outputCst,this.nodeLocationTracking=Object(o.has)(e,"nodeLocationTracking")?e.nodeLocationTracking:s.DEFAULT_PARSER_CONFIG.nodeLocationTracking,this.outputCst)if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=r.setNodeLocationFull,this.setNodeLocationFromNode=r.setNodeLocationFull,this.cstPostRule=o.NOOP,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=o.NOOP,this.setNodeLocationFromNode=o.NOOP,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=r.setNodeLocationOnlyOffset,this.setNodeLocationFromNode=r.setNodeLocationOnlyOffset,this.cstPostRule=o.NOOP,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=o.NOOP,this.setNodeLocationFromNode=o.NOOP,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else{if(!/none/i.test(this.nodeLocationTracking))throw Error('Invalid <nodeLocationTracking> config option: "'+e.nodeLocationTracking+'"');this.setNodeLocationFromToken=o.NOOP,this.setNodeLocationFromNode=o.NOOP,this.cstPostRule=o.NOOP,this.setInitialNodeLocation=o.NOOP}else this.cstInvocationStateUpdate=o.NOOP,this.cstFinallyStateUpdate=o.NOOP,this.cstPostTerminal=o.NOOP,this.cstPostNonTerminal=o.NOOP,this.cstPostRule=o.NOOP,this.getLastExplicitRuleShortName=this.getLastExplicitRuleShortNameNoCst,this.getPreviousExplicitRuleShortName=this.getPreviousExplicitRuleShortNameNoCst,this.getLastExplicitRuleOccurrenceIndex=this.getLastExplicitRuleOccurrenceIndexNoCst,this.manyInternal=this.manyInternalNoCst,this.orInternal=this.orInternalNoCst,this.optionInternal=this.optionInternalNoCst,this.atLeastOneInternal=this.atLeastOneInternalNoCst,this.manySepFirstInternal=this.manySepFirstInternalNoCst,this.atLeastOneSepFirstInternal=this.atLeastOneSepFirstInternalNoCst},e.prototype.setInitialNodeLocationOnlyOffsetRecovery=function(e){e.location={startOffset:NaN,endOffset:NaN}},e.prototype.setInitialNodeLocationOnlyOffsetRegular=function(e){e.location={startOffset:this.LA(1).startOffset,endOffset:NaN}},e.prototype.setInitialNodeLocationFullRecovery=function(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.setInitialNodeLocationFullRegular=function(e){var t=this.LA(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.cstNestedInvocationStateUpdate=function(e,t){var n={name:e,fullName:this.shortRuleNameToFull[this.getLastExplicitRuleShortName()]+e,children:{}};this.setInitialNodeLocation(n),this.CST_STACK.push(n)},e.prototype.cstInvocationStateUpdate=function(e,t){this.LAST_EXPLICIT_RULE_STACK.push(this.RULE_STACK.length-1);var n={name:e,children:{}};this.setInitialNodeLocation(n),this.CST_STACK.push(n)},e.prototype.cstFinallyStateUpdate=function(){this.LAST_EXPLICIT_RULE_STACK.pop(),this.CST_STACK.pop()},e.prototype.cstNestedFinallyStateUpdate=function(){var e=this.CST_STACK.pop();this.cstPostRule(e)},e.prototype.cstPostRuleFull=function(e){var t=this.LA(0),n=e.location;n.startOffset<=t.startOffset==!0?(n.endOffset=t.endOffset,n.endLine=t.endLine,n.endColumn=t.endColumn):(n.startOffset=NaN,n.startLine=NaN,n.startColumn=NaN)},e.prototype.cstPostRuleOnlyOffset=function(e){var t=this.LA(0),n=e.location;n.startOffset<=t.startOffset==!0?n.endOffset=t.endOffset:n.startOffset=NaN},e.prototype.cstPostTerminal=function(e,t){var n=this.CST_STACK[this.CST_STACK.length-1];Object(r.addTerminalToCst)(n,t,e),this.setNodeLocationFromToken(n.location,t)},e.prototype.cstPostNonTerminal=function(e,t){if(!0!==this.isBackTracking()){var n=this.CST_STACK[this.CST_STACK.length-1];Object(r.addNoneTerminalToCst)(n,t,e),this.setNodeLocationFromNode(n.location,e.location)}},e.prototype.getBaseCstVisitorConstructor=function(){if(Object(o.isUndefined)(this.baseCstVisitorConstructor)){var e=Object(i.createBaseSemanticVisitorConstructor)(this.className,this.allRuleNames);return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(Object(o.isUndefined)(this.baseCstVisitorWithDefaultsConstructor)){var e=Object(i.createBaseVisitorConstructorWithDefaults)(this.className,this.allRuleNames,this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor},e.prototype.nestedRuleBeforeClause=function(e,t){var n;return void 0!==e.NAME?(n=e.NAME,this.nestedRuleInvocationStateUpdate(n,t),n):void 0},e.prototype.nestedAltBeforeClause=function(e,t,n,r){var o,i=this.getLastExplicitRuleShortName(),s=Object(a.getKeyForAltIndex)(i,n,t,r);return void 0!==e.NAME?(o=e.NAME,this.nestedRuleInvocationStateUpdate(o,s),{shortName:s,nestedName:o}):void 0},e.prototype.nestedRuleFinallyClause=function(e,t){var n=this.CST_STACK,o=n[n.length-1];this.nestedRuleFinallyStateUpdate();var i=n[n.length-1];Object(r.addNoneTerminalToCst)(i,t,o),this.setNodeLocationFromNode(i.location,o.location)},e.prototype.getLastExplicitRuleShortName=function(){var e=this.LAST_EXPLICIT_RULE_STACK[this.LAST_EXPLICIT_RULE_STACK.length-1];return this.RULE_STACK[e]},e.prototype.getLastExplicitRuleShortNameNoCst=function(){var e=this.RULE_STACK;return e[e.length-1]},e.prototype.getPreviousExplicitRuleShortName=function(){var e=this.LAST_EXPLICIT_RULE_STACK[this.LAST_EXPLICIT_RULE_STACK.length-2];return this.RULE_STACK[e]},e.prototype.getPreviousExplicitRuleShortNameNoCst=function(){var e=this.RULE_STACK;return e[e.length-2]},e.prototype.getLastExplicitRuleOccurrenceIndex=function(){var e=this.LAST_EXPLICIT_RULE_STACK[this.LAST_EXPLICIT_RULE_STACK.length-1];return this.RULE_OCCURRENCE_STACK[e]},e.prototype.getLastExplicitRuleOccurrenceIndexNoCst=function(){var e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]},e.prototype.nestedRuleInvocationStateUpdate=function(e,t){this.RULE_OCCURRENCE_STACK.push(1),this.RULE_STACK.push(t),this.cstNestedInvocationStateUpdate(e,t)},e.prototype.nestedRuleFinallyStateUpdate=function(){this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstNestedFinallyStateUpdate()},e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"defaultVisit",(function(){return s})),n.d(t,"createBaseSemanticVisitorConstructor",(function(){return u})),n.d(t,"createBaseVisitorConstructorWithDefaults",(function(){return l})),n.d(t,"CstVisitorDefinitionError",(function(){return r})),n.d(t,"validateVisitor",(function(){return c})),n.d(t,"validateMissingCstMethods",(function(){return f})),n.d(t,"validateRedundantMethods",(function(){return h}));var r,o=n(48),i=n(361),a=n(221);function s(e,t){for(var n=Object(o.keys)(e),r=n.length,i=0;i<r;i++)for(var a=e[n[i]],s=a.length,u=0;u<s;u++){var l=a[u];void 0===l.tokenTypeIdx&&(void 0!==l.fullName?this[l.fullName](l.children,t):this[l.name](l.children,t))}}function u(e,t){var n=function(){};return Object(i.defineNameProp)(n,e+"BaseSemantics"),(n.prototype={visit:function(e,t){if(Object(o.isArray)(e)&&(e=e[0]),!Object(o.isUndefined)(e))return void 0!==e.fullName?this[e.fullName](e.children,t):this[e.name](e.children,t)},validateVisitor:function(){var e=c(this,t);if(!Object(o.isEmpty)(e)){var n=Object(o.map)(e,(function(e){return e.msg}));throw Error("Errors Detected in CST Visitor <"+Object(i.functionName)(this.constructor)+">:\n\t"+n.join("\n\n").replace(/\n/g,"\n\t"))}}}).constructor=n,n._RULE_NAMES=t,n}function l(e,t,n){var r=function(){};Object(i.defineNameProp)(r,e+"BaseSemanticsWithDefaults");var a=Object.create(n.prototype);return Object(o.forEach)(t,(function(e){a[e]=s})),(r.prototype=a).constructor=r,r}function c(e,t){var n=f(e,t),r=h(e,t);return n.concat(r)}function f(e,t){var n=Object(o.map)(t,(function(t){if(!Object(o.isFunction)(e[t]))return{msg:"Missing visitor method: <"+t+"> on "+Object(i.functionName)(e.constructor)+" CST Visitor.",type:r.MISSING_METHOD,methodName:t}}));return Object(o.compact)(n)}!function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"}(r||(r={}));var d=["constructor","visit","validateVisitor"];function h(e,t){var n=[];for(var s in e)a.validTermsPattern.test(s)&&Object(o.isFunction)(e[s])&&!Object(o.contains)(d,s)&&!Object(o.contains)(t,s)&&n.push({msg:"Redundant visitor method: <"+s+"> on "+Object(i.functionName)(e.constructor)+" CST Visitor\nThere is no Grammar Rule corresponding to this method's name.\nFor utility methods on visitor classes use methods names that do not match /"+a.validTermsPattern.source+"/.",type:r.REDUNDANT_METHOD,methodName:s});return n}},function(e,t,n){"use strict";n.r(t),n.d(t,"LexerAdapter",(function(){return o}));var r=n(77),o=function(){function e(){}return e.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(e.prototype,"input",{get:function(){return this.tokVector},set:function(e){if(!0!==this.selfAnalysisDone)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length},enumerable:!0,configurable:!0}),e.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):r.END_OF_FILE},e.prototype.LA=function(e){var t=this.currIdx+e;return t<0||this.tokVectorLength<=t?r.END_OF_FILE:this.tokVector[t]},e.prototype.consumeToken=function(){this.currIdx++},e.prototype.exportLexerState=function(){return this.currIdx},e.prototype.importLexerState=function(e){this.currIdx=e},e.prototype.resetLexerState=function(){this.currIdx=-1},e.prototype.moveToTerminatedState=function(){this.currIdx=this.tokVector.length-1},e.prototype.getLexerPosition=function(){return this.exportLexerState()},e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"RecognizerApi",(function(){return l}));var r=n(48),o=n(108),i=n(77),a=n(136),s=n(221),u=n(56),l=function(){function e(){}return e.prototype.ACTION=function(e){return e.call(this)},e.prototype.consume=function(e,t,n){return this.consumeInternal(t,e,n)},e.prototype.subrule=function(e,t,n){return this.subruleInternal(t,e,n)},e.prototype.option=function(e,t){return this.optionInternal(t,e)},e.prototype.or=function(e,t){return this.orInternal(t,e)},e.prototype.many=function(e,t){return this.manyInternal(e,t)},e.prototype.atLeastOne=function(e,t){return this.atLeastOneInternal(e,t)},e.prototype.CONSUME=function(e,t){return this.consumeInternal(e,0,t)},e.prototype.CONSUME1=function(e,t){return this.consumeInternal(e,1,t)},e.prototype.CONSUME2=function(e,t){return this.consumeInternal(e,2,t)},e.prototype.CONSUME3=function(e,t){return this.consumeInternal(e,3,t)},e.prototype.CONSUME4=function(e,t){return this.consumeInternal(e,4,t)},e.prototype.CONSUME5=function(e,t){return this.consumeInternal(e,5,t)},e.prototype.CONSUME6=function(e,t){return this.consumeInternal(e,6,t)},e.prototype.CONSUME7=function(e,t){return this.consumeInternal(e,7,t)},e.prototype.CONSUME8=function(e,t){return this.consumeInternal(e,8,t)},e.prototype.CONSUME9=function(e,t){return this.consumeInternal(e,9,t)},e.prototype.SUBRULE=function(e,t){return this.subruleInternal(e,0,t)},e.prototype.SUBRULE1=function(e,t){return this.subruleInternal(e,1,t)},e.prototype.SUBRULE2=function(e,t){return this.subruleInternal(e,2,t)},e.prototype.SUBRULE3=function(e,t){return this.subruleInternal(e,3,t)},e.prototype.SUBRULE4=function(e,t){return this.subruleInternal(e,4,t)},e.prototype.SUBRULE5=function(e,t){return this.subruleInternal(e,5,t)},e.prototype.SUBRULE6=function(e,t){return this.subruleInternal(e,6,t)},e.prototype.SUBRULE7=function(e,t){return this.subruleInternal(e,7,t)},e.prototype.SUBRULE8=function(e,t){return this.subruleInternal(e,8,t)},e.prototype.SUBRULE9=function(e,t){return this.subruleInternal(e,9,t)},e.prototype.OPTION=function(e){return this.optionInternal(e,0)},e.prototype.OPTION1=function(e){return this.optionInternal(e,1)},e.prototype.OPTION2=function(e){return this.optionInternal(e,2)},e.prototype.OPTION3=function(e){return this.optionInternal(e,3)},e.prototype.OPTION4=function(e){return this.optionInternal(e,4)},e.prototype.OPTION5=function(e){return this.optionInternal(e,5)},e.prototype.OPTION6=function(e){return this.optionInternal(e,6)},e.prototype.OPTION7=function(e){return this.optionInternal(e,7)},e.prototype.OPTION8=function(e){return this.optionInternal(e,8)},e.prototype.OPTION9=function(e){return this.optionInternal(e,9)},e.prototype.OR=function(e){return this.orInternal(e,0)},e.prototype.OR1=function(e){return this.orInternal(e,1)},e.prototype.OR2=function(e){return this.orInternal(e,2)},e.prototype.OR3=function(e){return this.orInternal(e,3)},e.prototype.OR4=function(e){return this.orInternal(e,4)},e.prototype.OR5=function(e){return this.orInternal(e,5)},e.prototype.OR6=function(e){return this.orInternal(e,6)},e.prototype.OR7=function(e){return this.orInternal(e,7)},e.prototype.OR8=function(e){return this.orInternal(e,8)},e.prototype.OR9=function(e){return this.orInternal(e,9)},e.prototype.MANY=function(e){this.manyInternal(0,e)},e.prototype.MANY1=function(e){this.manyInternal(1,e)},e.prototype.MANY2=function(e){this.manyInternal(2,e)},e.prototype.MANY3=function(e){this.manyInternal(3,e)},e.prototype.MANY4=function(e){this.manyInternal(4,e)},e.prototype.MANY5=function(e){this.manyInternal(5,e)},e.prototype.MANY6=function(e){this.manyInternal(6,e)},e.prototype.MANY7=function(e){this.manyInternal(7,e)},e.prototype.MANY8=function(e){this.manyInternal(8,e)},e.prototype.MANY9=function(e){this.manyInternal(9,e)},e.prototype.MANY_SEP=function(e){this.manySepFirstInternal(0,e)},e.prototype.MANY_SEP1=function(e){this.manySepFirstInternal(1,e)},e.prototype.MANY_SEP2=function(e){this.manySepFirstInternal(2,e)},e.prototype.MANY_SEP3=function(e){this.manySepFirstInternal(3,e)},e.prototype.MANY_SEP4=function(e){this.manySepFirstInternal(4,e)},e.prototype.MANY_SEP5=function(e){this.manySepFirstInternal(5,e)},e.prototype.MANY_SEP6=function(e){this.manySepFirstInternal(6,e)},e.prototype.MANY_SEP7=function(e){this.manySepFirstInternal(7,e)},e.prototype.MANY_SEP8=function(e){this.manySepFirstInternal(8,e)},e.prototype.MANY_SEP9=function(e){this.manySepFirstInternal(9,e)},e.prototype.AT_LEAST_ONE=function(e){this.atLeastOneInternal(0,e)},e.prototype.AT_LEAST_ONE1=function(e){return this.atLeastOneInternal(1,e)},e.prototype.AT_LEAST_ONE2=function(e){this.atLeastOneInternal(2,e)},e.prototype.AT_LEAST_ONE3=function(e){this.atLeastOneInternal(3,e)},e.prototype.AT_LEAST_ONE4=function(e){this.atLeastOneInternal(4,e)},e.prototype.AT_LEAST_ONE5=function(e){this.atLeastOneInternal(5,e)},e.prototype.AT_LEAST_ONE6=function(e){this.atLeastOneInternal(6,e)},e.prototype.AT_LEAST_ONE7=function(e){this.atLeastOneInternal(7,e)},e.prototype.AT_LEAST_ONE8=function(e){this.atLeastOneInternal(8,e)},e.prototype.AT_LEAST_ONE9=function(e){this.atLeastOneInternal(9,e)},e.prototype.AT_LEAST_ONE_SEP=function(e){this.atLeastOneSepFirstInternal(0,e)},e.prototype.AT_LEAST_ONE_SEP1=function(e){this.atLeastOneSepFirstInternal(1,e)},e.prototype.AT_LEAST_ONE_SEP2=function(e){this.atLeastOneSepFirstInternal(2,e)},e.prototype.AT_LEAST_ONE_SEP3=function(e){this.atLeastOneSepFirstInternal(3,e)},e.prototype.AT_LEAST_ONE_SEP4=function(e){this.atLeastOneSepFirstInternal(4,e)},e.prototype.AT_LEAST_ONE_SEP5=function(e){this.atLeastOneSepFirstInternal(5,e)},e.prototype.AT_LEAST_ONE_SEP6=function(e){this.atLeastOneSepFirstInternal(6,e)},e.prototype.AT_LEAST_ONE_SEP7=function(e){this.atLeastOneSepFirstInternal(7,e)},e.prototype.AT_LEAST_ONE_SEP8=function(e){this.atLeastOneSepFirstInternal(8,e)},e.prototype.AT_LEAST_ONE_SEP9=function(e){this.atLeastOneSepFirstInternal(9,e)},e.prototype.RULE=function(e,t,n){if(void 0===n&&(n=i.DEFAULT_RULE_CONFIG),Object(r.contains)(this.definedRulesNames,e)){var o={message:a.defaultGrammarValidatorErrorProvider.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:i.ParserDefinitionErrorType.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(o)}this.definedRulesNames.push(e);var s=this.defineRule(e,t,n);return this[e]=s,s},e.prototype.OVERRIDE_RULE=function(e,t,n){void 0===n&&(n=i.DEFAULT_RULE_CONFIG);var r=[];r=r.concat(Object(s.validateRuleIsOverridden)(e,this.definedRulesNames,this.className)),this.definitionErrors.push.apply(this.definitionErrors,r);var o=this.defineRule(e,t,n);return this[e]=o,o},e.prototype.BACKTRACK=function(e,t){return function(){this.isBackTrackingStack.push(1);var n=this.saveRecogState();try{return e.apply(this,t),!0}catch(e){if(Object(o.isRecognitionException)(e))return!1;throw e}finally{this.reloadRecogState(n),this.isBackTrackingStack.pop()}}},e.prototype.getGAstProductions=function(){return this.gastProductionsCache},e.prototype.getSerializedGastProductions=function(){return Object(u.serializeGrammar)(Object(r.values)(this.gastProductionsCache))},e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"RecognizerEngine",(function(){return h}));var r=n(48),o=n(184),i=n(108),a=n(222),s=n(223),u=n(77),l=n(360),c=n(95),f=n(182),d=n(361),h=function(){function e(){}return e.prototype.initRecognizerEngine=function(e,t){if(this.className=Object(d.classNameFromInstance)(this),this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=f.tokenStructuredMatcherNoCategories,this.definedRulesNames=[],this.tokensMap={},this.allRuleNames=[],this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},Object(r.has)(t,"serializedGrammar"))throw Error("The Parser's configuration can no longer contain a <serializedGrammar> property.\n\tSee: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_6-0-0\n\tFor Further details.");if(Object(r.isArray)(e)){if(Object(r.isEmpty)(e))throw Error("A Token Vocabulary cannot be empty.\n\tNote that the first argument for the parser constructor\n\tis no longer a Token vector (since v4.0).");if("number"==typeof e[0].startOffset)throw Error("The Parser constructor no longer accepts a token vector as the first argument.\n\tSee: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_4-0-0\n\tFor Further details.")}if(Object(r.isArray)(e))this.tokensMap=Object(r.reduce)(e,(function(e,t){return e[t.name]=t,e}),{});else if(Object(r.has)(e,"modes")&&Object(r.every)(Object(r.flatten)(Object(r.values)(e.modes)),f.isTokenType)){var n=Object(r.flatten)(Object(r.values)(e.modes)),o=Object(r.uniq)(n);this.tokensMap=Object(r.reduce)(o,(function(e,t){return e[t.name]=t,e}),{})}else{if(!Object(r.isObject)(e))throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap=Object(r.cloneObj)(e)}this.tokensMap.EOF=c.EOF;var i=Object(r.every)(Object(r.values)(e),(function(e){return Object(r.isEmpty)(e.categoryMatches)}));this.tokenMatcher=i?f.tokenStructuredMatcherNoCategories:f.tokenStructuredMatcher,Object(f.augmentTokenTypes)(Object(r.values)(this.tokensMap))},e.prototype.defineRule=function(e,t,n){if(this.selfAnalysisDone)throw Error("Grammar rule <"+e+"> may not be defined after the 'performSelfAnalysis' method has been called'\nMake sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.");var i,a=Object(r.has)(n,"resyncEnabled")?n.resyncEnabled:u.DEFAULT_RULE_CONFIG.resyncEnabled,s=Object(r.has)(n,"recoveryValueFunc")?n.recoveryValueFunc:u.DEFAULT_RULE_CONFIG.recoveryValueFunc,l=this.ruleShortNameIdx<<o.BITS_FOR_METHOD_TYPE+o.BITS_FOR_OCCURRENCE_IDX;function c(e){try{if(!0===this.outputCst){t.apply(this,e);var n=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(n),n}return t.apply(this,e)}catch(e){return this.invokeRuleCatch(e,a,s)}finally{this.ruleFinallyStateUpdate()}}this.ruleShortNameIdx++,this.shortRuleNameToFull[l]=e,this.fullRuleNameToShort[e]=l;return(i=function(t,n){return void 0===t&&(t=0),this.ruleInvocationStateUpdate(l,e,t),c.call(this,n)}).ruleName=e,i.originalGrammarAction=t,i},e.prototype.invokeRuleCatch=function(e,t,n){var r=1===this.RULE_STACK.length,o=t&&!this.isBackTracking()&&this.recoveryEnabled;if(Object(i.isRecognitionException)(e)){var a=e;if(o){var s,u=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(u))return a.resyncedTokens=this.reSyncTo(u),this.outputCst?((s=this.CST_STACK[this.CST_STACK.length-1]).recoveredNode=!0,s):n();throw this.outputCst&&((s=this.CST_STACK[this.CST_STACK.length-1]).recoveredNode=!0,a.partialCstResult=s),a}if(r)return this.moveToTerminatedState(),n();throw a}throw e},e.prototype.optionInternal=function(e,t){var n=this.getKeyForAutomaticLookahead(o.OPTION_IDX,t),r=this.nestedRuleBeforeClause(e,n);try{return this.optionInternalLogic(e,t,n)}finally{void 0!==r&&this.nestedRuleFinallyClause(n,r)}},e.prototype.optionInternalNoCst=function(e,t){var n=this.getKeyForAutomaticLookahead(o.OPTION_IDX,t);return this.optionInternalLogic(e,t,n)},e.prototype.optionInternalLogic=function(e,t,n){var r,o,i=this,a=this.getLaFuncFromCache(n);if(void 0!==e.DEF){if(r=e.DEF,void 0!==(o=e.GATE)){var s=a;a=function(){return o.call(i)&&s.call(i)}}}else r=e;if(!0===a.call(this))return r.call(this)},e.prototype.atLeastOneInternal=function(e,t){var n=this.getKeyForAutomaticLookahead(o.AT_LEAST_ONE_IDX,e),r=this.nestedRuleBeforeClause(t,n);try{return this.atLeastOneInternalLogic(e,t,n)}finally{void 0!==r&&this.nestedRuleFinallyClause(n,r)}},e.prototype.atLeastOneInternalNoCst=function(e,t){var n=this.getKeyForAutomaticLookahead(o.AT_LEAST_ONE_IDX,e);this.atLeastOneInternalLogic(e,t,n)},e.prototype.atLeastOneInternalLogic=function(e,t,n){var r,i,u=this,l=this.getLaFuncFromCache(n);if(void 0!==t.DEF){if(r=t.DEF,void 0!==(i=t.GATE)){var c=l;l=function(){return i.call(u)&&c.call(u)}}}else r=t;if(!0!==l.call(this))throw this.raiseEarlyExitException(e,a.PROD_TYPE.REPETITION_MANDATORY,t.ERR_MSG);for(var f=this.doSingleRepetition(r);!0===l.call(this)&&!0===f;)f=this.doSingleRepetition(r);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,t],l,o.AT_LEAST_ONE_IDX,e,s.NextTerminalAfterAtLeastOneWalker)},e.prototype.atLeastOneSepFirstInternal=function(e,t){var n=this.getKeyForAutomaticLookahead(o.AT_LEAST_ONE_SEP_IDX,e),r=this.nestedRuleBeforeClause(t,n);try{this.atLeastOneSepFirstInternalLogic(e,t,n)}finally{void 0!==r&&this.nestedRuleFinallyClause(n,r)}},e.prototype.atLeastOneSepFirstInternalNoCst=function(e,t){var n=this.getKeyForAutomaticLookahead(o.AT_LEAST_ONE_SEP_IDX,e);this.atLeastOneSepFirstInternalLogic(e,t,n)},e.prototype.atLeastOneSepFirstInternalLogic=function(e,t,n){var r=this,i=t.DEF,u=t.SEP;if(!0!==this.getLaFuncFromCache(n).call(this))throw this.raiseEarlyExitException(e,a.PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR,t.ERR_MSG);i.call(this);for(var l=function(){return r.tokenMatcher(r.LA(1),u)};!0===this.tokenMatcher(this.LA(1),u);)this.CONSUME(u),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,u,l,i,s.NextTerminalAfterAtLeastOneSepWalker],l,o.AT_LEAST_ONE_SEP_IDX,e,s.NextTerminalAfterAtLeastOneSepWalker)},e.prototype.manyInternal=function(e,t){var n=this.getKeyForAutomaticLookahead(o.MANY_IDX,e),r=this.nestedRuleBeforeClause(t,n);try{return this.manyInternalLogic(e,t,n)}finally{void 0!==r&&this.nestedRuleFinallyClause(n,r)}},e.prototype.manyInternalNoCst=function(e,t){var n=this.getKeyForAutomaticLookahead(o.MANY_IDX,e);return this.manyInternalLogic(e,t,n)},e.prototype.manyInternalLogic=function(e,t,n){var r,i,a=this,u=this.getLaFuncFromCache(n);if(void 0!==t.DEF){if(r=t.DEF,void 0!==(i=t.GATE)){var l=u;u=function(){return i.call(a)&&l.call(a)}}}else r=t;for(var c=!0;!0===u.call(this)&&!0===c;)c=this.doSingleRepetition(r);this.attemptInRepetitionRecovery(this.manyInternal,[e,t],u,o.MANY_IDX,e,s.NextTerminalAfterManyWalker,c)},e.prototype.manySepFirstInternal=function(e,t){var n=this.getKeyForAutomaticLookahead(o.MANY_SEP_IDX,e),r=this.nestedRuleBeforeClause(t,n);try{this.manySepFirstInternalLogic(e,t,n)}finally{void 0!==r&&this.nestedRuleFinallyClause(n,r)}},e.prototype.manySepFirstInternalNoCst=function(e,t){var n=this.getKeyForAutomaticLookahead(o.MANY_SEP_IDX,e);this.manySepFirstInternalLogic(e,t,n)},e.prototype.manySepFirstInternalLogic=function(e,t,n){var r=this,i=t.DEF,a=t.SEP;if(!0===this.getLaFuncFromCache(n).call(this)){i.call(this);for(var u=function(){return r.tokenMatcher(r.LA(1),a)};!0===this.tokenMatcher(this.LA(1),a);)this.CONSUME(a),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,a,u,i,s.NextTerminalAfterManySepWalker],u,o.MANY_SEP_IDX,e,s.NextTerminalAfterManySepWalker)}},e.prototype.repetitionSepSecondInternal=function(e,t,n,r,i){for(;n();)this.CONSUME(t),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,t,n,r,i],n,o.AT_LEAST_ONE_SEP_IDX,e,i)},e.prototype.doSingleRepetition=function(e){var t=this.getLexerPosition();return e.call(this),this.getLexerPosition()>t},e.prototype.orInternalNoCst=function(e,t){var n=Object(r.isArray)(e)?e:e.DEF,i=this.getKeyForAutomaticLookahead(o.OR_IDX,t),a=this.getLaFuncFromCache(i).call(this,n);if(void 0!==a)return n[a].ALT.call(this);this.raiseNoAltException(t,e.ERR_MSG)},e.prototype.orInternal=function(e,t){var n=this.getKeyForAutomaticLookahead(o.OR_IDX,t),i=this.nestedRuleBeforeClause(e,n);try{var a=Object(r.isArray)(e)?e:e.DEF,s=this.getLaFuncFromCache(n).call(this,a);if(void 0!==s){var u=a[s],l=this.nestedAltBeforeClause(u,t,o.OR_IDX,s);try{return u.ALT.call(this)}finally{void 0!==l&&this.nestedRuleFinallyClause(l.shortName,l.nestedName)}}this.raiseNoAltException(t,e.ERR_MSG)}finally{void 0!==i&&this.nestedRuleFinallyClause(n,i)}},e.prototype.ruleFinallyStateUpdate=function(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),0===this.RULE_STACK.length&&!1===this.isAtEndOfInput()){var e=this.LA(1),t=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new i.NotAllInputParsedException(t,e))}},e.prototype.subruleInternal=function(e,t,n){var r;try{var o=void 0!==n?n.ARGS:void 0;return r=e.call(this,t,o),this.cstPostNonTerminal(r,void 0!==n&&void 0!==n.LABEL?n.LABEL:e.ruleName),r}catch(t){this.subruleInternalError(t,n,e.ruleName)}},e.prototype.subruleInternalError=function(e,t,n){throw Object(i.isRecognitionException)(e)&&void 0!==e.partialCstResult&&(this.cstPostNonTerminal(e.partialCstResult,void 0!==t&&void 0!==t.LABEL?t.LABEL:n),delete e.partialCstResult),e},e.prototype.consumeInternal=function(e,t,n){var r;try{var o=this.LA(1);!0===this.tokenMatcher(o,e)?(this.consumeToken(),r=o):this.consumeInternalError(e,o,n)}catch(n){r=this.consumeInternalRecovery(e,t,n)}return this.cstPostTerminal(void 0!==n&&void 0!==n.LABEL?n.LABEL:e.name,r),r},e.prototype.consumeInternalError=function(e,t,n){var r,o=this.LA(0);throw r=void 0!==n&&n.ERR_MSG?n.ERR_MSG:this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:t,previous:o,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new i.MismatchedTokenException(r,t,o))},e.prototype.consumeInternalRecovery=function(e,t,n){if(!this.recoveryEnabled||"MismatchedTokenException"!==n.name||this.isBackTracking())throw n;var r=this.getFollowsForInRuleRecovery(e,t);try{return this.tryInRuleRecovery(e,r)}catch(e){throw e.name===l.IN_RULE_RECOVERY_EXCEPTION?n:e}},e.prototype.saveRecogState=function(){var e=this.errors,t=Object(r.cloneArr)(this.RULE_STACK);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:t,CST_STACK:this.CST_STACK,LAST_EXPLICIT_RULE_STACK:this.LAST_EXPLICIT_RULE_STACK}},e.prototype.reloadRecogState=function(e){this.errors=e.errors,this.importLexerState(e.lexerState),this.RULE_STACK=e.RULE_STACK},e.prototype.ruleInvocationStateUpdate=function(e,t,n){this.RULE_OCCURRENCE_STACK.push(n),this.RULE_STACK.push(e),this.cstInvocationStateUpdate(t,e)},e.prototype.isBackTracking=function(){return 0!==this.isBackTrackingStack.length},e.prototype.getCurrRuleFullName=function(){var e=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[e]},e.prototype.shortRuleNameToFullName=function(e){return this.shortRuleNameToFull[e]},e.prototype.isAtEndOfInput=function(){return this.tokenMatcher(this.LA(1),c.EOF)},e.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.LAST_EXPLICIT_RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"ErrorHandler",(function(){return s}));var r=n(108),o=n(48),i=n(222),a=n(77),s=function(){function e(){}return e.prototype.initErrorHandler=function(e){this._errors=[],this.errorMessageProvider=Object(o.defaults)(e.errorMessageProvider,a.DEFAULT_PARSER_CONFIG.errorMessageProvider)},e.prototype.SAVE_ERROR=function(e){if(Object(r.isRecognitionException)(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:Object(o.cloneArr)(this.RULE_OCCURRENCE_STACK)},this._errors.push(e),e;throw Error("Trying to save an Error which is not a RecognitionException")},Object.defineProperty(e.prototype,"errors",{get:function(){return Object(o.cloneArr)(this._errors)},set:function(e){this._errors=e},enumerable:!0,configurable:!0}),e.prototype.raiseEarlyExitException=function(e,t,n){for(var o=this.getCurrRuleFullName(),a=this.getGAstProductions()[o],s=Object(i.getLookaheadPathsForOptionalProd)(e,a,t,this.maxLookahead)[0],u=[],l=1;l<=this.maxLookahead;l++)u.push(this.LA(l));var c=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:s,actual:u,previous:this.LA(0),customUserDescription:n,ruleName:o});throw this.SAVE_ERROR(new r.EarlyExitException(c,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(e,t){for(var n=this.getCurrRuleFullName(),o=this.getGAstProductions()[n],a=Object(i.getLookaheadPathsForOr)(e,o,this.maxLookahead),s=[],u=1;u<=this.maxLookahead;u++)s.push(this.LA(u));var l=this.LA(0),c=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:a,actual:s,previous:l,customUserDescription:t,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new r.NoViableAltException(c,this.LA(1),l))},e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"ContentAssist",(function(){return i}));var r=n(223),o=n(48),i=function(){function e(){}return e.prototype.initContentAssist=function(){},e.prototype.computeContentAssist=function(e,t){var n=this.gastProductionsCache[e];if(Object(o.isUndefined)(n))throw Error("Rule ->"+e+"<- does not exist in this grammar.");return Object(r.nextPossibleTokensAfter)([n],t,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(e){var t=Object(o.first)(e.ruleStack),n=this.getGAstProductions()[t];return new r.NextAfterTokenWalker(n,e).startWalking()},e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"GastRecorder",(function(){return y}));var r=n(48),o=n(56),i=n(154),a=n(182),s=n(95),u=n(77),l=n(184),c={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(c);var f=Math.pow(2,l.BITS_FOR_OCCURRENCE_IDX)-1,d=Object(s.createToken)({name:"RECORDING_PHASE_TOKEN",pattern:i.Lexer.NA});Object(a.augmentTokenTypes)([d]);var h=Object(s.createTokenInstance)(d,"This IToken indicates the Parser is in Recording Phase\n\tSee: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details",-1,-1,-1,-1,-1,-1);Object.freeze(h);var p={name:"This CSTNode indicates the Parser is in Recording Phase\n\tSee: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details",children:{}},y=function(){function e(){}return e.prototype.initGastRecorder=function(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1},e.prototype.enableRecording=function(){var e=this;this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",(function(){for(var t=function(t){var n=t>0?t:"";e["CONSUME"+n]=function(e,n){return this.consumeInternalRecord(e,t,n)},e["SUBRULE"+n]=function(e,n){return this.subruleInternalRecord(e,t,n)},e["OPTION"+n]=function(e){return this.optionInternalRecord(e,t)},e["OR"+n]=function(e){return this.orInternalRecord(e,t)},e["MANY"+n]=function(e){this.manyInternalRecord(t,e)},e["MANY_SEP"+n]=function(e){this.manySepFirstInternalRecord(t,e)},e["AT_LEAST_ONE"+n]=function(e){this.atLeastOneInternalRecord(t,e)},e["AT_LEAST_ONE_SEP"+n]=function(e){this.atLeastOneSepFirstInternalRecord(t,e)}},n=0;n<10;n++)t(n);e.consume=function(e,t,n){return this.consumeInternalRecord(t,e,n)},e.subrule=function(e,t,n){return this.subruleInternalRecord(t,e,n)},e.option=function(e,t){return this.optionInternalRecord(t,e)},e.or=function(e,t){return this.orInternalRecord(t,e)},e.many=function(e,t){this.manyInternalRecord(e,t)},e.atLeastOne=function(e,t){this.atLeastOneInternalRecord(e,t)},e.ACTION=e.ACTION_RECORD,e.BACKTRACK=e.BACKTRACK_RECORD,e.LA=e.LA_RECORD}))},e.prototype.disableRecording=function(){var e=this;this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",(function(){for(var t=0;t<10;t++){var n=t>0?t:"";delete e["CONSUME"+n],delete e["SUBRULE"+n],delete e["OPTION"+n],delete e["OR"+n],delete e["MANY"+n],delete e["MANY_SEP"+n],delete e["AT_LEAST_ONE"+n],delete e["AT_LEAST_ONE_SEP"+n]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA}))},e.prototype.ACTION_RECORD=function(e){},e.prototype.BACKTRACK_RECORD=function(e,t){return function(){return!0}},e.prototype.LA_RECORD=function(e){return u.END_OF_FILE},e.prototype.topLevelRuleRecord=function(e,t){try{var n=new o.Rule({definition:[],name:e});return n.name=e,this.recordingProdStack.push(n),t.call(this),this.recordingProdStack.pop(),n}catch(e){if(!0!==e.KNOWN_RECORDER_ERROR)try{e.message=e.message+'\n\t This error was thrown during the "grammar recording phase" For more info see:\n\thttps://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording'}catch(t){throw e}throw e}},e.prototype.optionInternalRecord=function(e,t){return m.call(this,o.Option,e,t)},e.prototype.atLeastOneInternalRecord=function(e,t){m.call(this,o.RepetitionMandatory,t,e)},e.prototype.atLeastOneSepFirstInternalRecord=function(e,t){m.call(this,o.RepetitionMandatoryWithSeparator,t,e,!0)},e.prototype.manyInternalRecord=function(e,t){m.call(this,o.Repetition,t,e)},e.prototype.manySepFirstInternalRecord=function(e,t){m.call(this,o.RepetitionWithSeparator,t,e,!0)},e.prototype.orInternalRecord=function(e,t){return g.call(this,e,t)},e.prototype.subruleInternalRecord=function(e,t,n){if(E(t),!e||!1===Object(r.has)(e,"ruleName")){var i=new Error("<SUBRULE"+v(t)+"> argument is invalid expecting a Parser method reference but got: <"+JSON.stringify(e)+">\n inside top level rule: <"+this.recordingProdStack[0].name+">");throw i.KNOWN_RECORDER_ERROR=!0,i}var a=Object(r.peek)(this.recordingProdStack),s=e.ruleName,u=new o.NonTerminal({idx:t,nonTerminalName:s,referencedRule:void 0});return a.definition.push(u),this.outputCst?p:c},e.prototype.consumeInternalRecord=function(e,t,n){if(E(t),!Object(a.hasShortKeyProperty)(e)){var i=new Error("<CONSUME"+v(t)+"> argument is invalid expecting a TokenType reference but got: <"+JSON.stringify(e)+">\n inside top level rule: <"+this.recordingProdStack[0].name+">");throw i.KNOWN_RECORDER_ERROR=!0,i}var s=Object(r.peek)(this.recordingProdStack),u=new o.Terminal({idx:t,terminalType:e});return s.definition.push(u),h},e}();function m(e,t,n,o){void 0===o&&(o=!1),E(n);var i=Object(r.peek)(this.recordingProdStack),a=Object(r.isFunction)(t)?t:t.DEF,s=new e({definition:[],idx:n});return Object(r.has)(t,"NAME")&&(s.name=t.NAME),o&&(s.separator=t.SEP),Object(r.has)(t,"MAX_LOOKAHEAD")&&(s.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(s),a.call(this),i.definition.push(s),this.recordingProdStack.pop(),c}function g(e,t){var n=this;E(t);var i=Object(r.peek)(this.recordingProdStack),a=!1===Object(r.isArray)(e),s=!1===a?e:e.DEF,u=new o.Alternation({definition:[],idx:t,ignoreAmbiguities:a&&!0===e.IGNORE_AMBIGUITIES});Object(r.has)(e,"NAME")&&(u.name=e.NAME),Object(r.has)(e,"MAX_LOOKAHEAD")&&(u.maxLookahead=e.MAX_LOOKAHEAD);var l=Object(r.some)(s,(function(e){return Object(r.isFunction)(e.GATE)}));return u.hasPredicates=l,i.definition.push(u),Object(r.forEach)(s,(function(e){var t=new o.Flat({definition:[]});u.definition.push(t),Object(r.has)(e,"NAME")&&(t.name=e.NAME),Object(r.has)(e,"IGNORE_AMBIGUITIES")?t.ignoreAmbiguities=e.IGNORE_AMBIGUITIES:Object(r.has)(e,"GATE")&&(t.ignoreAmbiguities=!0),n.recordingProdStack.push(t),e.ALT.call(n),n.recordingProdStack.pop()})),c}function v(e){return 0===e?"":""+e}function E(e){if(e<0||e>f){var t=new Error("Invalid DSL Method idx value: <"+e+">\n\tIdx value must be a none negative value smaller than "+(f+1));throw t.KNOWN_RECORDER_ERROR=!0,t}}},function(e,t,n){"use strict";n.r(t),n.d(t,"PerformanceTracer",(function(){return i}));var r=n(48),o=n(77),i=function(){function e(){}return e.prototype.initPerformanceTracer=function(e){if(Object(r.has)(e,"traceInitPerf")){var t=e.traceInitPerf,n="number"==typeof t;this.traceInitMaxIdent=n?t:1/0,this.traceInitPerf=n?t>0:t}else this.traceInitMaxIdent=0,this.traceInitPerf=o.DEFAULT_PARSER_CONFIG.traceInitPerf;this.traceInitIndent=-1},e.prototype.TRACE_INIT=function(e,t){if(!0===this.traceInitPerf){this.traceInitIndent++;var n=new Array(this.traceInitIndent+1).join("\t");this.traceInitIndent<this.traceInitMaxIdent&&console.log(n+"--\x3e <"+e+">");var o=Object(r.timer)(t),i=o.time,a=o.value,s=i>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&s(n+"<-- <"+e+"> time: "+i+"ms"),this.traceInitIndent--,a}return t()},e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"genUmdModule",(function(){return a})),n.d(t,"genWrapperFunction",(function(){return s})),n.d(t,"genClass",(function(){return u})),n.d(t,"genAllRules",(function(){return l})),n.d(t,"genRule",(function(){return c})),n.d(t,"genTerminal",(function(){return f})),n.d(t,"genNonTerminal",(function(){return d})),n.d(t,"genAlternation",(function(){return h})),n.d(t,"genSingleAlt",(function(){return p}));var r=n(48),o=n(56),i="\n";function a(e){return"\n(function (root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['chevrotain'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // Node. Does not work with strict CommonJS, but\n // only CommonJS-like environments that support module.exports,\n // like Node.\n module.exports = factory(require('chevrotain'));\n } else {\n // Browser globals (root is window)\n root.returnExports = factory(root.b);\n }\n}(typeof self !== 'undefined' ? self : this, function (chevrotain) {\n\n"+u(e)+"\n \nreturn {\n "+e.name+": "+e.name+" \n}\n}));\n"}function s(e){return" \n"+u(e)+"\nreturn new "+e.name+"(tokenVocabulary, config) \n"}function u(e){return"\nfunction "+e.name+"(tokenVocabulary, config) {\n // invoke super constructor\n // No support for embedded actions currently, so we can 'hardcode'\n // The use of CstParser.\n chevrotain.CstParser.call(this, tokenVocabulary, config)\n\n const $ = this\n\n "+l(e.rules)+"\n\n // very important to call this after all the rules have been defined.\n // otherwise the parser may not work correctly as it will lack information\n // derived during the self analysis phase.\n this.performSelfAnalysis(this)\n}\n\n// inheritance as implemented in javascript in the previous decade... :(\n"+e.name+".prototype = Object.create(chevrotain.CstParser.prototype)\n"+e.name+".prototype.constructor = "+e.name+" \n "}function l(e){return Object(r.map)(e,(function(e){return c(e,1)})).join("\n")}function c(e,t){var n=v(t,'$.RULE("'+e.name+'", function() {')+i;return n+=g(e.definition,t+1),n+=v(t+1,"})")+i}function f(e,t){var n=e.terminalType.name;return v(t,"$.CONSUME"+e.idx+"(this.tokensMap."+n+")"+i)}function d(e,t){return v(t,"$.SUBRULE"+e.idx+"($."+e.nonTerminalName+")"+i)}function h(e,t){var n=v(t,"$.OR"+e.idx+"([")+i;return n+=Object(r.map)(e.definition,(function(e){return p(e,t+1)})).join(",\n"),n+=i+v(t,"])\n")}function p(e,t){var n=v(t,"{")+i;return e.name&&(n+=v(t+1,'NAME: "'+e.name+'",')+i),n+=v(t+1,"ALT: function() {")+i,n+=g(e.definition,t+1),n+=v(t+1,"}")+i,n+=v(t,"}")}function y(e,t,n){var r=v(n,"$."+(e+t.idx)+"(");return t.name||t.separator?(r+="{\n",t.name&&(r+=v(n+1,'NAME: "'+t.name+'"')+","+i),t.separator&&(r+=v(n+1,"SEP: this.tokensMap."+t.separator.name)+","+i),r+="DEF: "+m(t.definition,n+2)+i,r+=v(n,"}")+i):r+=m(t.definition,n+1),r+=v(n,")")+i}function m(e,t){var n="function() {\n";return n+=g(e,t),n+=v(t,"}")+i}function g(e,t){var n="";return Object(r.forEach)(e,(function(e){n+=function(e,t){if(e instanceof o.NonTerminal)return d(e,t);if(e instanceof o.Option)return y("OPTION",e,t);if(e instanceof o.RepetitionMandatory)return y("AT_LEAST_ONE",e,t);if(e instanceof o.RepetitionMandatoryWithSeparator)return y("AT_LEAST_ONE_SEP",e,t);if(e instanceof o.RepetitionWithSeparator)return y("MANY_SEP",e,t);if(e instanceof o.Repetition)return y("MANY",e,t);if(e instanceof o.Alternation)return h(e,t);if(e instanceof o.Terminal)return f(e,t);if(e instanceof o.Flat)return g(e.definition,t);throw Error("non exhaustive match")}(e,t+1)})),n}function v(e,t){return Array(4*e+1).join(" ")+t}},function(e,t,n){"use strict";n.r(t),n.d(t,"Cache",(function(){return i})),n.d(t,"doesContainFunctions",(function(){return a}));n(3),n(33),n(0),n(2),n(4);var r=n(72);function o(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)}}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
var i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.functionRegistry=t,this.cache=new Map}var t,n,i;return t=e,(n=[{key:"set",value:function(e,t){var n=function(e,t,n,r){return{ast:e,relativeDependencies:t,hasVolatileFunction:n,hasStructuralChangeFunction:r}}(t,Object(r.collectDependencies)(t,this.functionRegistry),a(t,this.functionRegistry.isFunctionVolatile),a(t,this.functionRegistry.isFunctionDependentOnSheetStructureChange));return this.cache.set(e,n),n}},{key:"get",value:function(e){return this.cache.get(e)}},{key:"maybeSetAndThenGet",value:function(e,t){var n=this.cache.get(e);return void 0!==n?n.ast:(this.set(e,t),t)}}])&&o(t.prototype,n),i&&o(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}(),a=function e(t,n){switch(t.type){case r.AstNodeType.EMPTY:case r.AstNodeType.NUMBER:case r.AstNodeType.STRING:case r.AstNodeType.ERROR:case r.AstNodeType.ERROR_WITH_RAW_INPUT:case r.AstNodeType.CELL_REFERENCE:case r.AstNodeType.CELL_RANGE:case r.AstNodeType.COLUMN_RANGE:case r.AstNodeType.ROW_RANGE:case r.AstNodeType.NAMED_EXPRESSION:return!1;case r.AstNodeType.PERCENT_OP:case r.AstNodeType.PLUS_UNARY_OP:case r.AstNodeType.MINUS_UNARY_OP:return e(t.value,n);case r.AstNodeType.CONCATENATE_OP:case r.AstNodeType.EQUALS_OP:case r.AstNodeType.NOT_EQUAL_OP:case r.AstNodeType.LESS_THAN_OP:case r.AstNodeType.GREATER_THAN_OP:case r.AstNodeType.LESS_THAN_OR_EQUAL_OP:case r.AstNodeType.GREATER_THAN_OR_EQUAL_OP:case r.AstNodeType.MINUS_OP:case r.AstNodeType.PLUS_OP:case r.AstNodeType.TIMES_OP:case r.AstNodeType.DIV_OP:case r.AstNodeType.POWER_OP:return e(t.left,n)||e(t.right,n);case r.AstNodeType.PARENTHESIS:return e(t.expression,n);case r.AstNodeType.FUNCTION_CALL:return!!n(t.procedureName)||t.args.some((function(t){return e(t,n)}));case r.AstNodeType.ARRAY:return t.args.some((function(t){return t.some((function(t){return e(t,n)}))}))}}},function(e,t,n){var r=n(246),o=Math.floor,i=function(e,t){var n=e.length,u=o(n/2);return n<8?a(e,t):s(e,i(r(e,0,u),t),i(r(e,u),t),t)},a=function(e,t){for(var n,r,o=e.length,i=1;i<o;){for(r=i,n=e[i];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==i++&&(e[r]=n)}return e},s=function(e,t,n,r){for(var o=t.length,i=n.length,a=0,s=0;a<o||s<i;)e[a+s]=a<o&&s<i?r(t[a],n[s])<=0?t[a++]:n[s++]:a<o?t[a++]:n[s++];return e};e.exports=i},function(e,t,n){var r=n(128).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},function(e,t,n){var r=n(128);e.exports=/MSIE|Trident/.test(r)},function(e,t,n){var r=n(128).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},function(e,t,n){var r=n(64),o=Math.floor;e.exports=Number.isInteger||function(e){return!r(e)&&isFinite(e)&&o(e)===e}},function(e,t,n){var r=n(62);e.exports=function(e){return void 0!==e&&(r(e,"value")||r(e,"writable"))}},function(e,t,n){var r=n(171).PROPER,o=n(39),i=n(354);e.exports=function(e){return o((function(){return!!i[e]()||"
"!=="
"[e]()||r&&i[e].name!==e}))}},function(e,t,n){!function(t){"use strict";for(var n=[null,0,{}],r=function(e,t){this.codepoint=e,this.feature=t},o={},i=[],a=0;a<=255;++a)i[a]=0;var s=[function(e,t,o){return t<60||13311<t&&t<42607?new r(t,n):e(t,o)},function(e,t,n){var r=o[t];return r||(r=e(t,n)).feature&&++i[t>>8&255]>10&&(o[t]=r),r},function(e,t,n){return n?e(t,n):new r(t,null)},function(e,t,n){var o;if(t<4352||4371<=t&&t<44032||55204<t)return e(t,n);if(4352<=t&&t<4371){var i={},a=21*(t-4352);for(o=0;o<21;++o)i[4449+o]=44032+28*(o+a);return new r(t,[,,i])}var s=t-44032,u=s%28,l=[];if(0!==u)l[0]=[44032+s-u,4519+u];else for(l[0]=[4352+Math.floor(s/588),4449+Math.floor(s%588/28)],l[2]={},o=1;o<28;++o)l[2][4519+o]=t+o;return new r(t,l)},function(e,t,o){var i=(r.udata[65280&t]||{})[t];return new r(t,i||n)}];r.fromCharCode=s.reduceRight((function(e,t){return function(n,r){return t(e,n,r)}}),null),r.isHighSurrogate=function(e){return e>=55296&&e<=56319},r.isLowSurrogate=function(e){return e>=56320&&e<=57343},r.prototype.prepFeature=function(){this.feature||(this.feature=r.fromCharCode(this.codepoint,!0).feature)},r.prototype.toString=function(){if(this.codepoint<65536)return String.fromCharCode(this.codepoint);var e=this.codepoint-65536;return String.fromCharCode(Math.floor(e/1024)+55296,e%1024+56320)},r.prototype.getDecomp=function(){return this.prepFeature(),this.feature[0]||null},r.prototype.isCompatibility=function(){return this.prepFeature(),!!this.feature[1]&&256&this.feature[1]},r.prototype.isExclude=function(){return this.prepFeature(),!!this.feature[1]&&512&this.feature[1]},r.prototype.getCanonicalClass=function(){return this.prepFeature(),this.feature[1]?255&this.feature[1]:0},r.prototype.getComposite=function(e){if(this.prepFeature(),!this.feature[2])return null;var t=this.feature[2][e.codepoint];return t?r.fromCharCode(t):null};var u=function(e){this.str=e,this.cursor=0};u.prototype.next=function(){if(this.str&&this.cursor<this.str.length){var e,t=this.str.charCodeAt(this.cursor++);return r.isHighSurrogate(t)&&this.cursor<this.str.length&&r.isLowSurrogate(e=this.str.charCodeAt(this.cursor))&&(t=1024*(t-55296)+(e-56320)+65536,++this.cursor),r.fromCharCode(t)}return this.str=null,null};var l=function(e,t){this.it=e,this.canonical=t,this.resBuf=[]};l.prototype.next=function(){if(0===this.resBuf.length){var e=this.it.next();if(!e)return null;this.resBuf=function e(t,n){var o=n.getDecomp();if(!o||t&&n.isCompatibility())return[n];for(var i=[],a=0;a<o.length;++a){var s=e(t,r.fromCharCode(o[a]));i=i.concat(s)}return i}(this.canonical,e)}return this.resBuf.shift()};var c=function(e){this.it=e,this.resBuf=[]};c.prototype.next=function(){var e;if(0===this.resBuf.length)do{var t=this.it.next();if(!t)break;e=t.getCanonicalClass();var n=this.resBuf.length;if(0!==e)for(;n>0;--n){if(this.resBuf[n-1].getCanonicalClass()<=e)break}this.resBuf.splice(n,0,t)}while(0!==e);return this.resBuf.shift()};var f=function(e){this.it=e,this.procBuf=[],this.resBuf=[],this.lastClass=null};f.prototype.next=function(){for(;0===this.resBuf.length;){var e=this.it.next();if(!e){this.resBuf=this.procBuf,this.procBuf=[];break}if(0===this.procBuf.length)this.lastClass=e.getCanonicalClass(),this.procBuf.push(e);else{var t=this.procBuf[0].getComposite(e),n=e.getCanonicalClass();t&&(this.lastClass<n||0===this.lastClass)?this.procBuf[0]=t:(0===n&&(this.resBuf=this.procBuf,this.procBuf=[]),this.lastClass=n,this.procBuf.push(e))}}return this.resBuf.shift()};var d=function(e,t){for(var n,r=function(e,t){switch(e){case"NFD":return new c(new l(new u(t),!0));case"NFKD":return new c(new l(new u(t),!1));case"NFC":return new f(new c(new l(new u(t),!0)));case"NFKC":return new f(new c(new l(new u(t),!1)))}throw e+" is invalid"}(e,t),o="";n=r.next();)o+=n.toString();return o};r.udata={0:{60:[,,{824:8814}],61:[,,{824:8800}],62:[,,{824:8815}],65:[,,{768:192,769:193,770:194,771:195,772:256,774:258,775:550,776:196,777:7842,778:197,780:461,783:512,785:514,803:7840,805:7680,808:260}],66:[,,{775:7682,803:7684,817:7686}],67:[,,{769:262,770:264,775:266,780:268,807:199}],68:[,,{775:7690,780:270,803:7692,807:7696,813:7698,817:7694}],69:[,,{768:200,769:201,770:202,771:7868,772:274,774:276,775:278,776:203,777:7866,780:282,783:516,785:518,803:7864,807:552,808:280,813:7704,816:7706}],70:[,,{775:7710}],71:[,,{769:500,770:284,772:7712,774:286,775:288,780:486,807:290}],72:[,,{770:292,775:7714,776:7718,780:542,803:7716,807:7720,814:7722}],73:[,,{768:204,769:205,770:206,771:296,772:298,774:300,775:304,776:207,777:7880,780:463,783:520,785:522,803:7882,808:302,816:7724}],74:[,,{770:308}],75:[,,{769:7728,780:488,803:7730,807:310,817:7732}],76:[,,{769:313,780:317,803:7734,807:315,813:7740,817:7738}],77:[,,{769:7742,775:7744,803:7746}],78:[,,{768:504,769:323,771:209,775:7748,780:327,803:7750,807:325,813:7754,817:7752}],79:[,,{768:210,769:211,770:212,771:213,772:332,774:334,775:558,776:214,777:7886,779:336,780:465,783:524,785:526,795:416,803:7884,808:490}],80:[,,{769:7764,775:7766}],82:[,,{769:340,775:7768,780:344,783:528,785:530,803:7770,807:342,817:7774}],83:[,,{769:346,770:348,775:7776,780:352,803:7778,806:536,807:350}],84:[,,{775:7786,780:356,803:7788,806:538,807:354,813:7792,817:7790}],85:[,,{768:217,769:218,770:219,771:360,772:362,774:364,776:220,777:7910,778:366,779:368,780:467,783:532,785:534,795:431,803:7908,804:7794,808:370,813:7798,816:7796}],86:[,,{771:7804,803:7806}],87:[,,{768:7808,769:7810,770:372,775:7814,776:7812,803:7816}],88:[,,{775:7818,776:7820}],89:[,,{768:7922,769:221,770:374,771:7928,772:562,775:7822,776:376,777:7926,803:7924}],90:[,,{769:377,770:7824,775:379,780:381,803:7826,817:7828}],97:[,,{768:224,769:225,770:226,771:227,772:257,774:259,775:551,776:228,777:7843,778:229,780:462,783:513,785:515,803:7841,805:7681,808:261}],98:[,,{775:7683,803:7685,817:7687}],99:[,,{769:263,770:265,775:267,780:269,807:231}],100:[,,{775:7691,780:271,803:7693,807:7697,813:7699,817:7695}],101:[,,{768:232,769:233,770:234,771:7869,772:275,774:277,775:279,776:235,777:7867,780:283,783:517,785:519,803:7865,807:553,808:281,813:7705,816:7707}],102:[,,{775:7711}],103:[,,{769:501,770:285,772:7713,774:287,775:289,780:487,807:291}],104:[,,{770:293,775:7715,776:7719,780:543,803:7717,807:7721,814:7723,817:7830}],105:[,,{768:236,769:237,770:238,771:297,772:299,774:301,776:239,777:7881,780:464,783:521,785:523,803:7883,808:303,816:7725}],106:[,,{770:309,780:496}],107:[,,{769:7729,780:489,803:7731,807:311,817:7733}],108:[,,{769:314,780:318,803:7735,807:316,813:7741,817:7739}],109:[,,{769:7743,775:7745,803:7747}],110:[,,{768:505,769:324,771:241,775:7749,780:328,803:7751,807:326,813:7755,817:7753}],111:[,,{768:242,769:243,770:244,771:245,772:333,774:335,775:559,776:246,777:7887,779:337,780:466,783:525,785:527,795:417,803:7885,808:491}],112:[,,{769:7765,775:7767}],114:[,,{769:341,775:7769,780:345,783:529,785:531,803:7771,807:343,817:7775}],115:[,,{769:347,770:349,775:7777,780:353,803:7779,806:537,807:351}],116:[,,{775:7787,776:7831,780:357,803:7789,806:539,807:355,813:7793,817:7791}],117:[,,{768:249,769:250,770:251,771:361,772:363,774:365,776:252,777:7911,778:367,779:369,780:468,783:533,785:535,795:432,803:7909,804:7795,808:371,813:7799,816:7797}],118:[,,{771:7805,803:7807}],119:[,,{768:7809,769:7811,770:373,775:7815,776:7813,778:7832,803:7817}],120:[,,{775:7819,776:7821}],121:[,,{768:7923,769:253,770:375,771:7929,772:563,775:7823,776:255,777:7927,778:7833,803:7925}],122:[,,{769:378,770:7825,775:380,780:382,803:7827,817:7829}],160:[[32],256],168:[[32,776],256,{768:8173,769:901,834:8129}],170:[[97],256],175:[[32,772],256],178:[[50],256],179:[[51],256],180:[[32,769],256],181:[[956],256],184:[[32,807],256],185:[[49],256],186:[[111],256],188:[[49,8260,52],256],189:[[49,8260,50],256],190:[[51,8260,52],256],192:[[65,768]],193:[[65,769]],194:[[65,770],,{768:7846,769:7844,771:7850,777:7848}],195:[[65,771]],196:[[65,776],,{772:478}],197:[[65,778],,{769:506}],198:[,,{769:508,772:482}],199:[[67,807],,{769:7688}],200:[[69,768]],201:[[69,769]],202:[[69,770],,{768:7872,769:7870,771:7876,777:7874}],203:[[69,776]],204:[[73,768]],205:[[73,769]],206:[[73,770]],207:[[73,776],,{769:7726}],209:[[78,771]],210:[[79,768]],211:[[79,769]],212:[[79,770],,{768:7890,769:7888,771:7894,777:7892}],213:[[79,771],,{769:7756,772:556,776:7758}],214:[[79,776],,{772:554}],216:[,,{769:510}],217:[[85,768]],218:[[85,769]],219:[[85,770]],220:[[85,776],,{768:475,769:471,772:469,780:473}],221:[[89,769]],224:[[97,768]],225:[[97,769]],226:[[97,770],,{768:7847,769:7845,771:7851,777:7849}],227:[[97,771]],228:[[97,776],,{772:479}],229:[[97,778],,{769:507}],230:[,,{769:509,772:483}],231:[[99,807],,{769:7689}],232:[[101,768]],233:[[101,769]],234:[[101,770],,{768:7873,769:7871,771:7877,777:7875}],235:[[101,776]],236:[[105,768]],237:[[105,769]],238:[[105,770]],239:[[105,776],,{769:7727}],241:[[110,771]],242:[[111,768]],243:[[111,769]],244:[[111,770],,{768:7891,769:7889,771:7895,777:7893}],245:[[111,771],,{769:7757,772:557,776:7759}],246:[[111,776],,{772:555}],248:[,,{769:511}],249:[[117,768]],250:[[117,769]],251:[[117,770]],252:[[117,776],,{768:476,769:472,772:470,780:474}],253:[[121,769]],255:[[121,776]]},256:{256:[[65,772]],257:[[97,772]],258:[[65,774],,{768:7856,769:7854,771:7860,777:7858}],259:[[97,774],,{768:7857,769:7855,771:7861,777:7859}],260:[[65,808]],261:[[97,808]],262:[[67,769]],263:[[99,769]],264:[[67,770]],265:[[99,770]],266:[[67,775]],267:[[99,775]],268:[[67,780]],269:[[99,780]],270:[[68,780]],271:[[100,780]],274:[[69,772],,{768:7700,769:7702}],275:[[101,772],,{768:7701,769:7703}],276:[[69,774]],277:[[101,774]],278:[[69,775]],279:[[101,775]],280:[[69,808]],281:[[101,808]],282:[[69,780]],283:[[101,780]],284:[[71,770]],285:[[103,770]],286:[[71,774]],287:[[103,774]],288:[[71,775]],289:[[103,775]],290:[[71,807]],291:[[103,807]],292:[[72,770]],293:[[104,770]],296:[[73,771]],297:[[105,771]],298:[[73,772]],299:[[105,772]],300:[[73,774]],301:[[105,774]],302:[[73,808]],303:[[105,808]],304:[[73,775]],306:[[73,74],256],307:[[105,106],256],308:[[74,770]],309:[[106,770]],310:[[75,807]],311:[[107,807]],313:[[76,769]],314:[[108,769]],315:[[76,807]],316:[[108,807]],317:[[76,780]],318:[[108,780]],319:[[76,183],256],320:[[108,183],256],323:[[78,769]],324:[[110,769]],325:[[78,807]],326:[[110,807]],327:[[78,780]],328:[[110,780]],329:[[700,110],256],332:[[79,772],,{768:7760,769:7762}],333:[[111,772],,{768:7761,769:7763}],334:[[79,774]],335:[[111,774]],336:[[79,779]],337:[[111,779]],340:[[82,769]],341:[[114,769]],342:[[82,807]],343:[[114,807]],344:[[82,780]],345:[[114,780]],346:[[83,769],,{775:7780}],347:[[115,769],,{775:7781}],348:[[83,770]],349:[[115,770]],350:[[83,807]],351:[[115,807]],352:[[83,780],,{775:7782}],353:[[115,780],,{775:7783}],354:[[84,807]],355:[[116,807]],356:[[84,780]],357:[[116,780]],360:[[85,771],,{769:7800}],361:[[117,771],,{769:7801}],362:[[85,772],,{776:7802}],363:[[117,772],,{776:7803}],364:[[85,774]],365:[[117,774]],366:[[85,778]],367:[[117,778]],368:[[85,779]],369:[[117,779]],370:[[85,808]],371:[[117,808]],372:[[87,770]],373:[[119,770]],374:[[89,770]],375:[[121,770]],376:[[89,776]],377:[[90,769]],378:[[122,769]],379:[[90,775]],380:[[122,775]],381:[[90,780]],382:[[122,780]],383:[[115],256,{775:7835}],416:[[79,795],,{768:7900,769:7898,771:7904,777:7902,803:7906}],417:[[111,795],,{768:7901,769:7899,771:7905,777:7903,803:7907}],431:[[85,795],,{768:7914,769:7912,771:7918,777:7916,803:7920}],432:[[117,795],,{768:7915,769:7913,771:7919,777:7917,803:7921}],439:[,,{780:494}],452:[[68,381],256],453:[[68,382],256],454:[[100,382],256],455:[[76,74],256],456:[[76,106],256],457:[[108,106],256],458:[[78,74],256],459:[[78,106],256],460:[[110,106],256],461:[[65,780]],462:[[97,780]],463:[[73,780]],464:[[105,780]],465:[[79,780]],466:[[111,780]],467:[[85,780]],468:[[117,780]],469:[[220,772]],470:[[252,772]],471:[[220,769]],472:[[252,769]],473:[[220,780]],474:[[252,780]],475:[[220,768]],476:[[252,768]],478:[[196,772]],479:[[228,772]],480:[[550,772]],481:[[551,772]],482:[[198,772]],483:[[230,772]],486:[[71,780]],487:[[103,780]],488:[[75,780]],489:[[107,780]],490:[[79,808],,{772:492}],491:[[111,808],,{772:493}],492:[[490,772]],493:[[491,772]],494:[[439,780]],495:[[658,780]],496:[[106,780]],497:[[68,90],256],498:[[68,122],256],499:[[100,122],256],500:[[71,769]],501:[[103,769]],504:[[78,768]],505:[[110,768]],506:[[197,769]],507:[[229,769]],508:[[198,769]],509:[[230,769]],510:[[216,769]],511:[[248,769]],66045:[,220]},512:{512:[[65,783]],513:[[97,783]],514:[[65,785]],515:[[97,785]],516:[[69,783]],517:[[101,783]],518:[[69,785]],519:[[101,785]],520:[[73,783]],521:[[105,783]],522:[[73,785]],523:[[105,785]],524:[[79,783]],525:[[111,783]],526:[[79,785]],527:[[111,785]],528:[[82,783]],529:[[114,783]],530:[[82,785]],531:[[114,785]],532:[[85,783]],533:[[117,783]],534:[[85,785]],535:[[117,785]],536:[[83,806]],537:[[115,806]],538:[[84,806]],539:[[116,806]],542:[[72,780]],543:[[104,780]],550:[[65,775],,{772:480}],551:[[97,775],,{772:481}],552:[[69,807],,{774:7708}],553:[[101,807],,{774:7709}],554:[[214,772]],555:[[246,772]],556:[[213,772]],557:[[245,772]],558:[[79,775],,{772:560}],559:[[111,775],,{772:561}],560:[[558,772]],561:[[559,772]],562:[[89,772]],563:[[121,772]],658:[,,{780:495}],688:[[104],256],689:[[614],256],690:[[106],256],691:[[114],256],692:[[633],256],693:[[635],256],694:[[641],256],695:[[119],256],696:[[121],256],728:[[32,774],256],729:[[32,775],256],730:[[32,778],256],731:[[32,808],256],732:[[32,771],256],733:[[32,779],256],736:[[611],256],737:[[108],256],738:[[115],256],739:[[120],256],740:[[661],256],66272:[,220]},768:{768:[,230],769:[,230],770:[,230],771:[,230],772:[,230],773:[,230],774:[,230],775:[,230],776:[,230,{769:836}],777:[,230],778:[,230],779:[,230],780:[,230],781:[,230],782:[,230],783:[,230],784:[,230],785:[,230],786:[,230],787:[,230],788:[,230],789:[,232],790:[,220],791:[,220],792:[,220],793:[,220],794:[,232],795:[,216],796:[,220],797:[,220],798:[,220],799:[,220],800:[,220],801:[,202],802:[,202],803:[,220],804:[,220],805:[,220],806:[,220],807:[,202],808:[,202],809:[,220],810:[,220],811:[,220],812:[,220],813:[,220],814:[,220],815:[,220],816:[,220],817:[,220],818:[,220],819:[,220],820:[,1],821:[,1],822:[,1],823:[,1],824:[,1],825:[,220],826:[,220],827:[,220],828:[,220],829:[,230],830:[,230],831:[,230],832:[[768],230],833:[[769],230],834:[,230],835:[[787],230],836:[[776,769],230],837:[,240],838:[,230],839:[,220],840:[,220],841:[,220],842:[,230],843:[,230],844:[,230],845:[,220],846:[,220],848:[,230],849:[,230],850:[,230],851:[,220],852:[,220],853:[,220],854:[,220],855:[,230],856:[,232],857:[,220],858:[,220],859:[,230],860:[,233],861:[,234],862:[,234],863:[,233],864:[,234],865:[,234],866:[,233],867:[,230],868:[,230],869:[,230],870:[,230],871:[,230],872:[,230],873:[,230],874:[,230],875:[,230],876:[,230],877:[,230],878:[,230],879:[,230],884:[[697]],890:[[32,837],256],894:[[59]],900:[[32,769],256],901:[[168,769]],902:[[913,769]],903:[[183]],904:[[917,769]],905:[[919,769]],906:[[921,769]],908:[[927,769]],910:[[933,769]],911:[[937,769]],912:[[970,769]],913:[,,{768:8122,769:902,772:8121,774:8120,787:7944,788:7945,837:8124}],917:[,,{768:8136,769:904,787:7960,788:7961}],919:[,,{768:8138,769:905,787:7976,788:7977,837:8140}],921:[,,{768:8154,769:906,772:8153,774:8152,776:938,787:7992,788:7993}],927:[,,{768:8184,769:908,787:8008,788:8009}],929:[,,{788:8172}],933:[,,{768:8170,769:910,772:8169,774:8168,776:939,788:8025}],937:[,,{768:8186,769:911,787:8040,788:8041,837:8188}],938:[[921,776]],939:[[933,776]],940:[[945,769],,{837:8116}],941:[[949,769]],942:[[951,769],,{837:8132}],943:[[953,769]],944:[[971,769]],945:[,,{768:8048,769:940,772:8113,774:8112,787:7936,788:7937,834:8118,837:8115}],949:[,,{768:8050,769:941,787:7952,788:7953}],951:[,,{768:8052,769:942,787:7968,788:7969,834:8134,837:8131}],953:[,,{768:8054,769:943,772:8145,774:8144,776:970,787:7984,788:7985,834:8150}],959:[,,{768:8056,769:972,787:8e3,788:8001}],961:[,,{787:8164,788:8165}],965:[,,{768:8058,769:973,772:8161,774:8160,776:971,787:8016,788:8017,834:8166}],969:[,,{768:8060,769:974,787:8032,788:8033,834:8182,837:8179}],970:[[953,776],,{768:8146,769:912,834:8151}],971:[[965,776],,{768:8162,769:944,834:8167}],972:[[959,769]],973:[[965,769]],974:[[969,769],,{837:8180}],976:[[946],256],977:[[952],256],978:[[933],256,{769:979,776:980}],979:[[978,769]],980:[[978,776]],981:[[966],256],982:[[960],256],1008:[[954],256],1009:[[961],256],1010:[[962],256],1012:[[920],256],1013:[[949],256],1017:[[931],256],66422:[,230],66423:[,230],66424:[,230],66425:[,230],66426:[,230]},1024:{1024:[[1045,768]],1025:[[1045,776]],1027:[[1043,769]],1030:[,,{776:1031}],1031:[[1030,776]],1036:[[1050,769]],1037:[[1048,768]],1038:[[1059,774]],1040:[,,{774:1232,776:1234}],1043:[,,{769:1027}],1045:[,,{768:1024,774:1238,776:1025}],1046:[,,{774:1217,776:1244}],1047:[,,{776:1246}],1048:[,,{768:1037,772:1250,774:1049,776:1252}],1049:[[1048,774]],1050:[,,{769:1036}],1054:[,,{776:1254}],1059:[,,{772:1262,774:1038,776:1264,779:1266}],1063:[,,{776:1268}],1067:[,,{776:1272}],1069:[,,{776:1260}],1072:[,,{774:1233,776:1235}],1075:[,,{769:1107}],1077:[,,{768:1104,774:1239,776:1105}],1078:[,,{774:1218,776:1245}],1079:[,,{776:1247}],1080:[,,{768:1117,772:1251,774:1081,776:1253}],1081:[[1080,774]],1082:[,,{769:1116}],1086:[,,{776:1255}],1091:[,,{772:1263,774:1118,776:1265,779:1267}],1095:[,,{776:1269}],1099:[,,{776:1273}],1101:[,,{776:1261}],1104:[[1077,768]],1105:[[1077,776]],1107:[[1075,769]],1110:[,,{776:1111}],1111:[[1110,776]],1116:[[1082,769]],1117:[[1080,768]],1118:[[1091,774]],1140:[,,{783:1142}],1141:[,,{783:1143}],1142:[[1140,783]],1143:[[1141,783]],1155:[,230],1156:[,230],1157:[,230],1158:[,230],1159:[,230],1217:[[1046,774]],1218:[[1078,774]],1232:[[1040,774]],1233:[[1072,774]],1234:[[1040,776]],1235:[[1072,776]],1238:[[1045,774]],1239:[[1077,774]],1240:[,,{776:1242}],1241:[,,{776:1243}],1242:[[1240,776]],1243:[[1241,776]],1244:[[1046,776]],1245:[[1078,776]],1246:[[1047,776]],1247:[[1079,776]],1250:[[1048,772]],1251:[[1080,772]],1252:[[1048,776]],1253:[[1080,776]],1254:[[1054,776]],1255:[[1086,776]],1256:[,,{776:1258}],1257:[,,{776:1259}],1258:[[1256,776]],1259:[[1257,776]],1260:[[1069,776]],1261:[[1101,776]],1262:[[1059,772]],1263:[[1091,772]],1264:[[1059,776]],1265:[[1091,776]],1266:[[1059,779]],1267:[[1091,779]],1268:[[1063,776]],1269:[[1095,776]],1272:[[1067,776]],1273:[[1099,776]]},1280:{1415:[[1381,1410],256],1425:[,220],1426:[,230],1427:[,230],1428:[,230],1429:[,230],1430:[,220],1431:[,230],1432:[,230],1433:[,230],1434:[,222],1435:[,220],1436:[,230],1437:[,230],1438:[,230],1439:[,230],1440:[,230],1441:[,230],1442:[,220],1443:[,220],1444:[,220],1445:[,220],1446:[,220],1447:[,220],1448:[,230],1449:[,230],1450:[,220],1451:[,230],1452:[,230],1453:[,222],1454:[,228],1455:[,230],1456:[,10],1457:[,11],1458:[,12],1459:[,13],1460:[,14],1461:[,15],1462:[,16],1463:[,17],1464:[,18],1465:[,19],1466:[,19],1467:[,20],1468:[,21],1469:[,22],1471:[,23],1473:[,24],1474:[,25],1476:[,230],1477:[,220],1479:[,18]},1536:{1552:[,230],1553:[,230],1554:[,230],1555:[,230],1556:[,230],1557:[,230],1558:[,230],1559:[,230],1560:[,30],1561:[,31],1562:[,32],1570:[[1575,1619]],1571:[[1575,1620]],1572:[[1608,1620]],1573:[[1575,1621]],1574:[[1610,1620]],1575:[,,{1619:1570,1620:1571,1621:1573}],1608:[,,{1620:1572}],1610:[,,{1620:1574}],1611:[,27],1612:[,28],1613:[,29],1614:[,30],1615:[,31],1616:[,32],1617:[,33],1618:[,34],1619:[,230],1620:[,230],1621:[,220],1622:[,220],1623:[,230],1624:[,230],1625:[,230],1626:[,230],1627:[,230],1628:[,220],1629:[,230],1630:[,230],1631:[,220],1648:[,35],1653:[[1575,1652],256],1654:[[1608,1652],256],1655:[[1735,1652],256],1656:[[1610,1652],256],1728:[[1749,1620]],1729:[,,{1620:1730}],1730:[[1729,1620]],1746:[,,{1620:1747}],1747:[[1746,1620]],1749:[,,{1620:1728}],1750:[,230],1751:[,230],1752:[,230],1753:[,230],1754:[,230],1755:[,230],1756:[,230],1759:[,230],1760:[,230],1761:[,230],1762:[,230],1763:[,220],1764:[,230],1767:[,230],1768:[,230],1770:[,220],1771:[,230],1772:[,230],1773:[,220]},1792:{1809:[,36],1840:[,230],1841:[,220],1842:[,230],1843:[,230],1844:[,220],1845:[,230],1846:[,230],1847:[,220],1848:[,220],1849:[,220],1850:[,230],1851:[,220],1852:[,220],1853:[,230],1854:[,220],1855:[,230],1856:[,230],1857:[,230],1858:[,220],1859:[,230],1860:[,220],1861:[,230],1862:[,220],1863:[,230],1864:[,220],1865:[,230],1866:[,230],2027:[,230],2028:[,230],2029:[,230],2030:[,230],2031:[,230],2032:[,230],2033:[,230],2034:[,220],2035:[,230]},2048:{2070:[,230],2071:[,230],2072:[,230],2073:[,230],2075:[,230],2076:[,230],2077:[,230],2078:[,230],2079:[,230],2080:[,230],2081:[,230],2082:[,230],2083:[,230],2085:[,230],2086:[,230],2087:[,230],2089:[,230],2090:[,230],2091:[,230],2092:[,230],2093:[,230],2137:[,220],2138:[,220],2139:[,220],2276:[,230],2277:[,230],2278:[,220],2279:[,230],2280:[,230],2281:[,220],2282:[,230],2283:[,230],2284:[,230],2285:[,220],2286:[,220],2287:[,220],2288:[,27],2289:[,28],2290:[,29],2291:[,230],2292:[,230],2293:[,230],2294:[,220],2295:[,230],2296:[,230],2297:[,220],2298:[,220],2299:[,230],2300:[,230],2301:[,230],2302:[,230],2303:[,230]},2304:{2344:[,,{2364:2345}],2345:[[2344,2364]],2352:[,,{2364:2353}],2353:[[2352,2364]],2355:[,,{2364:2356}],2356:[[2355,2364]],2364:[,7],2381:[,9],2385:[,230],2386:[,220],2387:[,230],2388:[,230],2392:[[2325,2364],512],2393:[[2326,2364],512],2394:[[2327,2364],512],2395:[[2332,2364],512],2396:[[2337,2364],512],2397:[[2338,2364],512],2398:[[2347,2364],512],2399:[[2351,2364],512],2492:[,7],2503:[,,{2494:2507,2519:2508}],2507:[[2503,2494]],2508:[[2503,2519]],2509:[,9],2524:[[2465,2492],512],2525:[[2466,2492],512],2527:[[2479,2492],512]},2560:{2611:[[2610,2620],512],2614:[[2616,2620],512],2620:[,7],2637:[,9],2649:[[2582,2620],512],2650:[[2583,2620],512],2651:[[2588,2620],512],2654:[[2603,2620],512],2748:[,7],2765:[,9],68109:[,220],68111:[,230],68152:[,230],68153:[,1],68154:[,220],68159:[,9],68325:[,230],68326:[,220]},2816:{2876:[,7],2887:[,,{2878:2891,2902:2888,2903:2892}],2888:[[2887,2902]],2891:[[2887,2878]],2892:[[2887,2903]],2893:[,9],2908:[[2849,2876],512],2909:[[2850,2876],512],2962:[,,{3031:2964}],2964:[[2962,3031]],3014:[,,{3006:3018,3031:3020}],3015:[,,{3006:3019}],3018:[[3014,3006]],3019:[[3015,3006]],3020:[[3014,3031]],3021:[,9]},3072:{3142:[,,{3158:3144}],3144:[[3142,3158]],3149:[,9],3157:[,84],3158:[,91],3260:[,7],3263:[,,{3285:3264}],3264:[[3263,3285]],3270:[,,{3266:3274,3285:3271,3286:3272}],3271:[[3270,3285]],3272:[[3270,3286]],3274:[[3270,3266],,{3285:3275}],3275:[[3274,3285]],3277:[,9]},3328:{3398:[,,{3390:3402,3415:3404}],3399:[,,{3390:3403}],3402:[[3398,3390]],3403:[[3399,3390]],3404:[[3398,3415]],3405:[,9],3530:[,9],3545:[,,{3530:3546,3535:3548,3551:3550}],3546:[[3545,3530]],3548:[[3545,3535],,{3530:3549}],3549:[[3548,3530]],3550:[[3545,3551]]},3584:{3635:[[3661,3634],256],3640:[,103],3641:[,103],3642:[,9],3656:[,107],3657:[,107],3658:[,107],3659:[,107],3763:[[3789,3762],256],3768:[,118],3769:[,118],3784:[,122],3785:[,122],3786:[,122],3787:[,122],3804:[[3755,3737],256],3805:[[3755,3745],256]},3840:{3852:[[3851],256],3864:[,220],3865:[,220],3893:[,220],3895:[,220],3897:[,216],3907:[[3906,4023],512],3917:[[3916,4023],512],3922:[[3921,4023],512],3927:[[3926,4023],512],3932:[[3931,4023],512],3945:[[3904,4021],512],3953:[,129],3954:[,130],3955:[[3953,3954],512],3956:[,132],3957:[[3953,3956],512],3958:[[4018,3968],512],3959:[[4018,3969],256],3960:[[4019,3968],512],3961:[[4019,3969],256],3962:[,130],3963:[,130],3964:[,130],3965:[,130],3968:[,130],3969:[[3953,3968],512],3970:[,230],3971:[,230],3972:[,9],3974:[,230],3975:[,230],3987:[[3986,4023],512],3997:[[3996,4023],512],4002:[[4001,4023],512],4007:[[4006,4023],512],4012:[[4011,4023],512],4025:[[3984,4021],512],4038:[,220]},4096:{4133:[,,{4142:4134}],4134:[[4133,4142]],4151:[,7],4153:[,9],4154:[,9],4237:[,220],4348:[[4316],256],69702:[,9],69759:[,9],69785:[,,{69818:69786}],69786:[[69785,69818]],69787:[,,{69818:69788}],69788:[[69787,69818]],69797:[,,{69818:69803}],69803:[[69797,69818]],69817:[,9],69818:[,7]},4352:{69888:[,230],69889:[,230],69890:[,230],69934:[[69937,69927]],69935:[[69938,69927]],69937:[,,{69927:69934}],69938:[,,{69927:69935}],69939:[,9],69940:[,9],70003:[,7],70080:[,9]},4608:{70197:[,9],70198:[,7],70377:[,7],70378:[,9]},4864:{4957:[,230],4958:[,230],4959:[,230],70460:[,7],70471:[,,{70462:70475,70487:70476}],70475:[[70471,70462]],70476:[[70471,70487]],70477:[,9],70502:[,230],70503:[,230],70504:[,230],70505:[,230],70506:[,230],70507:[,230],70508:[,230],70512:[,230],70513:[,230],70514:[,230],70515:[,230],70516:[,230]},5120:{70841:[,,{70832:70844,70842:70843,70845:70846}],70843:[[70841,70842]],70844:[[70841,70832]],70846:[[70841,70845]],70850:[,9],70851:[,7]},5376:{71096:[,,{71087:71098}],71097:[,,{71087:71099}],71098:[[71096,71087]],71099:[[71097,71087]],71103:[,9],71104:[,7]},5632:{71231:[,9],71350:[,9],71351:[,7]},5888:{5908:[,9],5940:[,9],6098:[,9],6109:[,230]},6144:{6313:[,228]},6400:{6457:[,222],6458:[,230],6459:[,220]},6656:{6679:[,230],6680:[,220],6752:[,9],6773:[,230],6774:[,230],6775:[,230],6776:[,230],6777:[,230],6778:[,230],6779:[,230],6780:[,230],6783:[,220],6832:[,230],6833:[,230],6834:[,230],6835:[,230],6836:[,230],6837:[,220],6838:[,220],6839:[,220],6840:[,220],6841:[,220],6842:[,220],6843:[,230],6844:[,230],6845:[,220]},6912:{6917:[,,{6965:6918}],6918:[[6917,6965]],6919:[,,{6965:6920}],6920:[[6919,6965]],6921:[,,{6965:6922}],6922:[[6921,6965]],6923:[,,{6965:6924}],6924:[[6923,6965]],6925:[,,{6965:6926}],6926:[[6925,6965]],6929:[,,{6965:6930}],6930:[[6929,6965]],6964:[,7],6970:[,,{6965:6971}],6971:[[6970,6965]],6972:[,,{6965:6973}],6973:[[6972,6965]],6974:[,,{6965:6976}],6975:[,,{6965:6977}],6976:[[6974,6965]],6977:[[6975,6965]],6978:[,,{6965:6979}],6979:[[6978,6965]],6980:[,9],7019:[,230],7020:[,220],7021:[,230],7022:[,230],7023:[,230],7024:[,230],7025:[,230],7026:[,230],7027:[,230],7082:[,9],7083:[,9],7142:[,7],7154:[,9],7155:[,9]},7168:{7223:[,7],7376:[,230],7377:[,230],7378:[,230],7380:[,1],7381:[,220],7382:[,220],7383:[,220],7384:[,220],7385:[,220],7386:[,230],7387:[,230],7388:[,220],7389:[,220],7390:[,220],7391:[,220],7392:[,230],7394:[,1],7395:[,1],7396:[,1],7397:[,1],7398:[,1],7399:[,1],7400:[,1],7405:[,220],7412:[,230],7416:[,230],7417:[,230]},7424:{7468:[[65],256],7469:[[198],256],7470:[[66],256],7472:[[68],256],7473:[[69],256],7474:[[398],256],7475:[[71],256],7476:[[72],256],7477:[[73],256],7478:[[74],256],7479:[[75],256],7480:[[76],256],7481:[[77],256],7482:[[78],256],7484:[[79],256],7485:[[546],256],7486:[[80],256],7487:[[82],256],7488:[[84],256],7489:[[85],256],7490:[[87],256],7491:[[97],256],7492:[[592],256],7493:[[593],256],7494:[[7426],256],7495:[[98],256],7496:[[100],256],7497:[[101],256],7498:[[601],256],7499:[[603],256],7500:[[604],256],7501:[[103],256],7503:[[107],256],7504:[[109],256],7505:[[331],256],7506:[[111],256],7507:[[596],256],7508:[[7446],256],7509:[[7447],256],7510:[[112],256],7511:[[116],256],7512:[[117],256],7513:[[7453],256],7514:[[623],256],7515:[[118],256],7516:[[7461],256],7517:[[946],256],7518:[[947],256],7519:[[948],256],7520:[[966],256],7521:[[967],256],7522:[[105],256],7523:[[114],256],7524:[[117],256],7525:[[118],256],7526:[[946],256],7527:[[947],256],7528:[[961],256],7529:[[966],256],7530:[[967],256],7544:[[1085],256],7579:[[594],256],7580:[[99],256],7581:[[597],256],7582:[[240],256],7583:[[604],256],7584:[[102],256],7585:[[607],256],7586:[[609],256],7587:[[613],256],7588:[[616],256],7589:[[617],256],7590:[[618],256],7591:[[7547],256],7592:[[669],256],7593:[[621],256],7594:[[7557],256],7595:[[671],256],7596:[[625],256],7597:[[624],256],7598:[[626],256],7599:[[627],256],7600:[[628],256],7601:[[629],256],7602:[[632],256],7603:[[642],256],7604:[[643],256],7605:[[427],256],7606:[[649],256],7607:[[650],256],7608:[[7452],256],7609:[[651],256],7610:[[652],256],7611:[[122],256],7612:[[656],256],7613:[[657],256],7614:[[658],256],7615:[[952],256],7616:[,230],7617:[,230],7618:[,220],7619:[,230],7620:[,230],7621:[,230],7622:[,230],7623:[,230],7624:[,230],7625:[,230],7626:[,220],7627:[,230],7628:[,230],7629:[,234],7630:[,214],7631:[,220],7632:[,202],7633:[,230],7634:[,230],7635:[,230],7636:[,230],7637:[,230],7638:[,230],7639:[,230],7640:[,230],7641:[,230],7642:[,230],7643:[,230],7644:[,230],7645:[,230],7646:[,230],7647:[,230],7648:[,230],7649:[,230],7650:[,230],7651:[,230],7652:[,230],7653:[,230],7654:[,230],7655:[,230],7656:[,230],7657:[,230],7658:[,230],7659:[,230],7660:[,230],7661:[,230],7662:[,230],7663:[,230],7664:[,230],7665:[,230],7666:[,230],7667:[,230],7668:[,230],7669:[,230],7676:[,233],7677:[,220],7678:[,230],7679:[,220]},7680:{7680:[[65,805]],7681:[[97,805]],7682:[[66,775]],7683:[[98,775]],7684:[[66,803]],7685:[[98,803]],7686:[[66,817]],7687:[[98,817]],7688:[[199,769]],7689:[[231,769]],7690:[[68,775]],7691:[[100,775]],7692:[[68,803]],7693:[[100,803]],7694:[[68,817]],7695:[[100,817]],7696:[[68,807]],7697:[[100,807]],7698:[[68,813]],7699:[[100,813]],7700:[[274,768]],7701:[[275,768]],7702:[[274,769]],7703:[[275,769]],7704:[[69,813]],7705:[[101,813]],7706:[[69,816]],7707:[[101,816]],7708:[[552,774]],7709:[[553,774]],7710:[[70,775]],7711:[[102,775]],7712:[[71,772]],7713:[[103,772]],7714:[[72,775]],7715:[[104,775]],7716:[[72,803]],7717:[[104,803]],7718:[[72,776]],7719:[[104,776]],7720:[[72,807]],7721:[[104,807]],7722:[[72,814]],7723:[[104,814]],7724:[[73,816]],7725:[[105,816]],7726:[[207,769]],7727:[[239,769]],7728:[[75,769]],7729:[[107,769]],7730:[[75,803]],7731:[[107,803]],7732:[[75,817]],7733:[[107,817]],7734:[[76,803],,{772:7736}],7735:[[108,803],,{772:7737}],7736:[[7734,772]],7737:[[7735,772]],7738:[[76,817]],7739:[[108,817]],7740:[[76,813]],7741:[[108,813]],7742:[[77,769]],7743:[[109,769]],7744:[[77,775]],7745:[[109,775]],7746:[[77,803]],7747:[[109,803]],7748:[[78,775]],7749:[[110,775]],7750:[[78,803]],7751:[[110,803]],7752:[[78,817]],7753:[[110,817]],7754:[[78,813]],7755:[[110,813]],7756:[[213,769]],7757:[[245,769]],7758:[[213,776]],7759:[[245,776]],7760:[[332,768]],7761:[[333,768]],7762:[[332,769]],7763:[[333,769]],7764:[[80,769]],7765:[[112,769]],7766:[[80,775]],7767:[[112,775]],7768:[[82,775]],7769:[[114,775]],7770:[[82,803],,{772:7772}],7771:[[114,803],,{772:7773}],7772:[[7770,772]],7773:[[7771,772]],7774:[[82,817]],7775:[[114,817]],7776:[[83,775]],7777:[[115,775]],7778:[[83,803],,{775:7784}],7779:[[115,803],,{775:7785}],7780:[[346,775]],7781:[[347,775]],7782:[[352,775]],7783:[[353,775]],7784:[[7778,775]],7785:[[7779,775]],7786:[[84,775]],7787:[[116,775]],7788:[[84,803]],7789:[[116,803]],7790:[[84,817]],7791:[[116,817]],7792:[[84,813]],7793:[[116,813]],7794:[[85,804]],7795:[[117,804]],7796:[[85,816]],7797:[[117,816]],7798:[[85,813]],7799:[[117,813]],7800:[[360,769]],7801:[[361,769]],7802:[[362,776]],7803:[[363,776]],7804:[[86,771]],7805:[[118,771]],7806:[[86,803]],7807:[[118,803]],7808:[[87,768]],7809:[[119,768]],7810:[[87,769]],7811:[[119,769]],7812:[[87,776]],7813:[[119,776]],7814:[[87,775]],7815:[[119,775]],7816:[[87,803]],7817:[[119,803]],7818:[[88,775]],7819:[[120,775]],7820:[[88,776]],7821:[[120,776]],7822:[[89,775]],7823:[[121,775]],7824:[[90,770]],7825:[[122,770]],7826:[[90,803]],7827:[[122,803]],7828:[[90,817]],7829:[[122,817]],7830:[[104,817]],7831:[[116,776]],7832:[[119,778]],7833:[[121,778]],7834:[[97,702],256],7835:[[383,775]],7840:[[65,803],,{770:7852,774:7862}],7841:[[97,803],,{770:7853,774:7863}],7842:[[65,777]],7843:[[97,777]],7844:[[194,769]],7845:[[226,769]],7846:[[194,768]],7847:[[226,768]],7848:[[194,777]],7849:[[226,777]],7850:[[194,771]],7851:[[226,771]],7852:[[7840,770]],7853:[[7841,770]],7854:[[258,769]],7855:[[259,769]],7856:[[258,768]],7857:[[259,768]],7858:[[258,777]],7859:[[259,777]],7860:[[258,771]],7861:[[259,771]],7862:[[7840,774]],7863:[[7841,774]],7864:[[69,803],,{770:7878}],7865:[[101,803],,{770:7879}],7866:[[69,777]],7867:[[101,777]],7868:[[69,771]],7869:[[101,771]],7870:[[202,769]],7871:[[234,769]],7872:[[202,768]],7873:[[234,768]],7874:[[202,777]],7875:[[234,777]],7876:[[202,771]],7877:[[234,771]],7878:[[7864,770]],7879:[[7865,770]],7880:[[73,777]],7881:[[105,777]],7882:[[73,803]],7883:[[105,803]],7884:[[79,803],,{770:7896}],7885:[[111,803],,{770:7897}],7886:[[79,777]],7887:[[111,777]],7888:[[212,769]],7889:[[244,769]],7890:[[212,768]],7891:[[244,768]],7892:[[212,777]],7893:[[244,777]],7894:[[212,771]],7895:[[244,771]],7896:[[7884,770]],7897:[[7885,770]],7898:[[416,769]],7899:[[417,769]],7900:[[416,768]],7901:[[417,768]],7902:[[416,777]],7903:[[417,777]],7904:[[416,771]],7905:[[417,771]],7906:[[416,803]],7907:[[417,803]],7908:[[85,803]],7909:[[117,803]],7910:[[85,777]],7911:[[117,777]],7912:[[431,769]],7913:[[432,769]],7914:[[431,768]],7915:[[432,768]],7916:[[431,777]],7917:[[432,777]],7918:[[431,771]],7919:[[432,771]],7920:[[431,803]],7921:[[432,803]],7922:[[89,768]],7923:[[121,768]],7924:[[89,803]],7925:[[121,803]],7926:[[89,777]],7927:[[121,777]],7928:[[89,771]],7929:[[121,771]]},7936:{7936:[[945,787],,{768:7938,769:7940,834:7942,837:8064}],7937:[[945,788],,{768:7939,769:7941,834:7943,837:8065}],7938:[[7936,768],,{837:8066}],7939:[[7937,768],,{837:8067}],7940:[[7936,769],,{837:8068}],7941:[[7937,769],,{837:8069}],7942:[[7936,834],,{837:8070}],7943:[[7937,834],,{837:8071}],7944:[[913,787],,{768:7946,769:7948,834:7950,837:8072}],7945:[[913,788],,{768:7947,769:7949,834:7951,837:8073}],7946:[[7944,768],,{837:8074}],7947:[[7945,768],,{837:8075}],7948:[[7944,769],,{837:8076}],7949:[[7945,769],,{837:8077}],7950:[[7944,834],,{837:8078}],7951:[[7945,834],,{837:8079}],7952:[[949,787],,{768:7954,769:7956}],7953:[[949,788],,{768:7955,769:7957}],7954:[[7952,768]],7955:[[7953,768]],7956:[[7952,769]],7957:[[7953,769]],7960:[[917,787],,{768:7962,769:7964}],7961:[[917,788],,{768:7963,769:7965}],7962:[[7960,768]],7963:[[7961,768]],7964:[[7960,769]],7965:[[7961,769]],7968:[[951,787],,{768:7970,769:7972,834:7974,837:8080}],7969:[[951,788],,{768:7971,769:7973,834:7975,837:8081}],7970:[[7968,768],,{837:8082}],7971:[[7969,768],,{837:8083}],7972:[[7968,769],,{837:8084}],7973:[[7969,769],,{837:8085}],7974:[[7968,834],,{837:8086}],7975:[[7969,834],,{837:8087}],7976:[[919,787],,{768:7978,769:7980,834:7982,837:8088}],7977:[[919,788],,{768:7979,769:7981,834:7983,837:8089}],7978:[[7976,768],,{837:8090}],7979:[[7977,768],,{837:8091}],7980:[[7976,769],,{837:8092}],7981:[[7977,769],,{837:8093}],7982:[[7976,834],,{837:8094}],7983:[[7977,834],,{837:8095}],7984:[[953,787],,{768:7986,769:7988,834:7990}],7985:[[953,788],,{768:7987,769:7989,834:7991}],7986:[[7984,768]],7987:[[7985,768]],7988:[[7984,769]],7989:[[7985,769]],7990:[[7984,834]],7991:[[7985,834]],7992:[[921,787],,{768:7994,769:7996,834:7998}],7993:[[921,788],,{768:7995,769:7997,834:7999}],7994:[[7992,768]],7995:[[7993,768]],7996:[[7992,769]],7997:[[7993,769]],7998:[[7992,834]],7999:[[7993,834]],8e3:[[959,787],,{768:8002,769:8004}],8001:[[959,788],,{768:8003,769:8005}],8002:[[8e3,768]],8003:[[8001,768]],8004:[[8e3,769]],8005:[[8001,769]],8008:[[927,787],,{768:8010,769:8012}],8009:[[927,788],,{768:8011,769:8013}],8010:[[8008,768]],8011:[[8009,768]],8012:[[8008,769]],8013:[[8009,769]],8016:[[965,787],,{768:8018,769:8020,834:8022}],8017:[[965,788],,{768:8019,769:8021,834:8023}],8018:[[8016,768]],8019:[[8017,768]],8020:[[8016,769]],8021:[[8017,769]],8022:[[8016,834]],8023:[[8017,834]],8025:[[933,788],,{768:8027,769:8029,834:8031}],8027:[[8025,768]],8029:[[8025,769]],8031:[[8025,834]],8032:[[969,787],,{768:8034,769:8036,834:8038,837:8096}],8033:[[969,788],,{768:8035,769:8037,834:8039,837:8097}],8034:[[8032,768],,{837:8098}],8035:[[8033,768],,{837:8099}],8036:[[8032,769],,{837:8100}],8037:[[8033,769],,{837:8101}],8038:[[8032,834],,{837:8102}],8039:[[8033,834],,{837:8103}],8040:[[937,787],,{768:8042,769:8044,834:8046,837:8104}],8041:[[937,788],,{768:8043,769:8045,834:8047,837:8105}],8042:[[8040,768],,{837:8106}],8043:[[8041,768],,{837:8107}],8044:[[8040,769],,{837:8108}],8045:[[8041,769],,{837:8109}],8046:[[8040,834],,{837:8110}],8047:[[8041,834],,{837:8111}],8048:[[945,768],,{837:8114}],8049:[[940]],8050:[[949,768]],8051:[[941]],8052:[[951,768],,{837:8130}],8053:[[942]],8054:[[953,768]],8055:[[943]],8056:[[959,768]],8057:[[972]],8058:[[965,768]],8059:[[973]],8060:[[969,768],,{837:8178}],8061:[[974]],8064:[[7936,837]],8065:[[7937,837]],8066:[[7938,837]],8067:[[7939,837]],8068:[[7940,837]],8069:[[7941,837]],8070:[[7942,837]],8071:[[7943,837]],8072:[[7944,837]],8073:[[7945,837]],8074:[[7946,837]],8075:[[7947,837]],8076:[[7948,837]],8077:[[7949,837]],8078:[[7950,837]],8079:[[7951,837]],8080:[[7968,837]],8081:[[7969,837]],8082:[[7970,837]],8083:[[7971,837]],8084:[[7972,837]],8085:[[7973,837]],8086:[[7974,837]],8087:[[7975,837]],8088:[[7976,837]],8089:[[7977,837]],8090:[[7978,837]],8091:[[7979,837]],8092:[[7980,837]],8093:[[7981,837]],8094:[[7982,837]],8095:[[7983,837]],8096:[[8032,837]],8097:[[8033,837]],8098:[[8034,837]],8099:[[8035,837]],8100:[[8036,837]],8101:[[8037,837]],8102:[[8038,837]],8103:[[8039,837]],8104:[[8040,837]],8105:[[8041,837]],8106:[[8042,837]],8107:[[8043,837]],8108:[[8044,837]],8109:[[8045,837]],8110:[[8046,837]],8111:[[8047,837]],8112:[[945,774]],8113:[[945,772]],8114:[[8048,837]],8115:[[945,837]],8116:[[940,837]],8118:[[945,834],,{837:8119}],8119:[[8118,837]],8120:[[913,774]],8121:[[913,772]],8122:[[913,768]],8123:[[902]],8124:[[913,837]],8125:[[32,787],256],8126:[[953]],8127:[[32,787],256,{768:8141,769:8142,834:8143}],8128:[[32,834],256],8129:[[168,834]],8130:[[8052,837]],8131:[[951,837]],8132:[[942,837]],8134:[[951,834],,{837:8135}],8135:[[8134,837]],8136:[[917,768]],8137:[[904]],8138:[[919,768]],8139:[[905]],8140:[[919,837]],8141:[[8127,768]],8142:[[8127,769]],8143:[[8127,834]],8144:[[953,774]],8145:[[953,772]],8146:[[970,768]],8147:[[912]],8150:[[953,834]],8151:[[970,834]],8152:[[921,774]],8153:[[921,772]],8154:[[921,768]],8155:[[906]],8157:[[8190,768]],8158:[[8190,769]],8159:[[8190,834]],8160:[[965,774]],8161:[[965,772]],8162:[[971,768]],8163:[[944]],8164:[[961,787]],8165:[[961,788]],8166:[[965,834]],8167:[[971,834]],8168:[[933,774]],8169:[[933,772]],8170:[[933,768]],8171:[[910]],8172:[[929,788]],8173:[[168,768]],8174:[[901]],8175:[[96]],8178:[[8060,837]],8179:[[969,837]],8180:[[974,837]],8182:[[969,834],,{837:8183}],8183:[[8182,837]],8184:[[927,768]],8185:[[908]],8186:[[937,768]],8187:[[911]],8188:[[937,837]],8189:[[180]],8190:[[32,788],256,{768:8157,769:8158,834:8159}]},8192:{8192:[[8194]],8193:[[8195]],8194:[[32],256],8195:[[32],256],8196:[[32],256],8197:[[32],256],8198:[[32],256],8199:[[32],256],8200:[[32],256],8201:[[32],256],8202:[[32],256],8209:[[8208],256],8215:[[32,819],256],8228:[[46],256],8229:[[46,46],256],8230:[[46,46,46],256],8239:[[32],256],8243:[[8242,8242],256],8244:[[8242,8242,8242],256],8246:[[8245,8245],256],8247:[[8245,8245,8245],256],8252:[[33,33],256],8254:[[32,773],256],8263:[[63,63],256],8264:[[63,33],256],8265:[[33,63],256],8279:[[8242,8242,8242,8242],256],8287:[[32],256],8304:[[48],256],8305:[[105],256],8308:[[52],256],8309:[[53],256],8310:[[54],256],8311:[[55],256],8312:[[56],256],8313:[[57],256],8314:[[43],256],8315:[[8722],256],8316:[[61],256],8317:[[40],256],8318:[[41],256],8319:[[110],256],8320:[[48],256],8321:[[49],256],8322:[[50],256],8323:[[51],256],8324:[[52],256],8325:[[53],256],8326:[[54],256],8327:[[55],256],8328:[[56],256],8329:[[57],256],8330:[[43],256],8331:[[8722],256],8332:[[61],256],8333:[[40],256],8334:[[41],256],8336:[[97],256],8337:[[101],256],8338:[[111],256],8339:[[120],256],8340:[[601],256],8341:[[104],256],8342:[[107],256],8343:[[108],256],8344:[[109],256],8345:[[110],256],8346:[[112],256],8347:[[115],256],8348:[[116],256],8360:[[82,115],256],8400:[,230],8401:[,230],8402:[,1],8403:[,1],8404:[,230],8405:[,230],8406:[,230],8407:[,230],8408:[,1],8409:[,1],8410:[,1],8411:[,230],8412:[,230],8417:[,230],8421:[,1],8422:[,1],8423:[,230],8424:[,220],8425:[,230],8426:[,1],8427:[,1],8428:[,220],8429:[,220],8430:[,220],8431:[,220],8432:[,230]},8448:{8448:[[97,47,99],256],8449:[[97,47,115],256],8450:[[67],256],8451:[[176,67],256],8453:[[99,47,111],256],8454:[[99,47,117],256],8455:[[400],256],8457:[[176,70],256],8458:[[103],256],8459:[[72],256],8460:[[72],256],8461:[[72],256],8462:[[104],256],8463:[[295],256],8464:[[73],256],8465:[[73],256],8466:[[76],256],8467:[[108],256],8469:[[78],256],8470:[[78,111],256],8473:[[80],256],8474:[[81],256],8475:[[82],256],8476:[[82],256],8477:[[82],256],8480:[[83,77],256],8481:[[84,69,76],256],8482:[[84,77],256],8484:[[90],256],8486:[[937]],8488:[[90],256],8490:[[75]],8491:[[197]],8492:[[66],256],8493:[[67],256],8495:[[101],256],8496:[[69],256],8497:[[70],256],8499:[[77],256],8500:[[111],256],8501:[[1488],256],8502:[[1489],256],8503:[[1490],256],8504:[[1491],256],8505:[[105],256],8507:[[70,65,88],256],8508:[[960],256],8509:[[947],256],8510:[[915],256],8511:[[928],256],8512:[[8721],256],8517:[[68],256],8518:[[100],256],8519:[[101],256],8520:[[105],256],8521:[[106],256],8528:[[49,8260,55],256],8529:[[49,8260,57],256],8530:[[49,8260,49,48],256],8531:[[49,8260,51],256],8532:[[50,8260,51],256],8533:[[49,8260,53],256],8534:[[50,8260,53],256],8535:[[51,8260,53],256],8536:[[52,8260,53],256],8537:[[49,8260,54],256],8538:[[53,8260,54],256],8539:[[49,8260,56],256],8540:[[51,8260,56],256],8541:[[53,8260,56],256],8542:[[55,8260,56],256],8543:[[49,8260],256],8544:[[73],256],8545:[[73,73],256],8546:[[73,73,73],256],8547:[[73,86],256],8548:[[86],256],8549:[[86,73],256],8550:[[86,73,73],256],8551:[[86,73,73,73],256],8552:[[73,88],256],8553:[[88],256],8554:[[88,73],256],8555:[[88,73,73],256],8556:[[76],256],8557:[[67],256],8558:[[68],256],8559:[[77],256],8560:[[105],256],8561:[[105,105],256],8562:[[105,105,105],256],8563:[[105,118],256],8564:[[118],256],8565:[[118,105],256],8566:[[118,105,105],256],8567:[[118,105,105,105],256],8568:[[105,120],256],8569:[[120],256],8570:[[120,105],256],8571:[[120,105,105],256],8572:[[108],256],8573:[[99],256],8574:[[100],256],8575:[[109],256],8585:[[48,8260,51],256],8592:[,,{824:8602}],8594:[,,{824:8603}],8596:[,,{824:8622}],8602:[[8592,824]],8603:[[8594,824]],8622:[[8596,824]],8653:[[8656,824]],8654:[[8660,824]],8655:[[8658,824]],8656:[,,{824:8653}],8658:[,,{824:8655}],8660:[,,{824:8654}]},8704:{8707:[,,{824:8708}],8708:[[8707,824]],8712:[,,{824:8713}],8713:[[8712,824]],8715:[,,{824:8716}],8716:[[8715,824]],8739:[,,{824:8740}],8740:[[8739,824]],8741:[,,{824:8742}],8742:[[8741,824]],8748:[[8747,8747],256],8749:[[8747,8747,8747],256],8751:[[8750,8750],256],8752:[[8750,8750,8750],256],8764:[,,{824:8769}],8769:[[8764,824]],8771:[,,{824:8772}],8772:[[8771,824]],8773:[,,{824:8775}],8775:[[8773,824]],8776:[,,{824:8777}],8777:[[8776,824]],8781:[,,{824:8813}],8800:[[61,824]],8801:[,,{824:8802}],8802:[[8801,824]],8804:[,,{824:8816}],8805:[,,{824:8817}],8813:[[8781,824]],8814:[[60,824]],8815:[[62,824]],8816:[[8804,824]],8817:[[8805,824]],8818:[,,{824:8820}],8819:[,,{824:8821}],8820:[[8818,824]],8821:[[8819,824]],8822:[,,{824:8824}],8823:[,,{824:8825}],8824:[[8822,824]],8825:[[8823,824]],8826:[,,{824:8832}],8827:[,,{824:8833}],8828:[,,{824:8928}],8829:[,,{824:8929}],8832:[[8826,824]],8833:[[8827,824]],8834:[,,{824:8836}],8835:[,,{824:8837}],8836:[[8834,824]],8837:[[8835,824]],8838:[,,{824:8840}],8839:[,,{824:8841}],8840:[[8838,824]],8841:[[8839,824]],8849:[,,{824:8930}],8850:[,,{824:8931}],8866:[,,{824:8876}],8872:[,,{824:8877}],8873:[,,{824:8878}],8875:[,,{824:8879}],8876:[[8866,824]],8877:[[8872,824]],8878:[[8873,824]],8879:[[8875,824]],8882:[,,{824:8938}],8883:[,,{824:8939}],8884:[,,{824:8940}],8885:[,,{824:8941}],8928:[[8828,824]],8929:[[8829,824]],8930:[[8849,824]],8931:[[8850,824]],8938:[[8882,824]],8939:[[8883,824]],8940:[[8884,824]],8941:[[8885,824]]},8960:{9001:[[12296]],9002:[[12297]]},9216:{9312:[[49],256],9313:[[50],256],9314:[[51],256],9315:[[52],256],9316:[[53],256],9317:[[54],256],9318:[[55],256],9319:[[56],256],9320:[[57],256],9321:[[49,48],256],9322:[[49,49],256],9323:[[49,50],256],9324:[[49,51],256],9325:[[49,52],256],9326:[[49,53],256],9327:[[49,54],256],9328:[[49,55],256],9329:[[49,56],256],9330:[[49,57],256],9331:[[50,48],256],9332:[[40,49,41],256],9333:[[40,50,41],256],9334:[[40,51,41],256],9335:[[40,52,41],256],9336:[[40,53,41],256],9337:[[40,54,41],256],9338:[[40,55,41],256],9339:[[40,56,41],256],9340:[[40,57,41],256],9341:[[40,49,48,41],256],9342:[[40,49,49,41],256],9343:[[40,49,50,41],256],9344:[[40,49,51,41],256],9345:[[40,49,52,41],256],9346:[[40,49,53,41],256],9347:[[40,49,54,41],256],9348:[[40,49,55,41],256],9349:[[40,49,56,41],256],9350:[[40,49,57,41],256],9351:[[40,50,48,41],256],9352:[[49,46],256],9353:[[50,46],256],9354:[[51,46],256],9355:[[52,46],256],9356:[[53,46],256],9357:[[54,46],256],9358:[[55,46],256],9359:[[56,46],256],9360:[[57,46],256],9361:[[49,48,46],256],9362:[[49,49,46],256],9363:[[49,50,46],256],9364:[[49,51,46],256],9365:[[49,52,46],256],9366:[[49,53,46],256],9367:[[49,54,46],256],9368:[[49,55,46],256],9369:[[49,56,46],256],9370:[[49,57,46],256],9371:[[50,48,46],256],9372:[[40,97,41],256],9373:[[40,98,41],256],9374:[[40,99,41],256],9375:[[40,100,41],256],9376:[[40,101,41],256],9377:[[40,102,41],256],9378:[[40,103,41],256],9379:[[40,104,41],256],9380:[[40,105,41],256],9381:[[40,106,41],256],9382:[[40,107,41],256],9383:[[40,108,41],256],9384:[[40,109,41],256],9385:[[40,110,41],256],9386:[[40,111,41],256],9387:[[40,112,41],256],9388:[[40,113,41],256],9389:[[40,114,41],256],9390:[[40,115,41],256],9391:[[40,116,41],256],9392:[[40,117,41],256],9393:[[40,118,41],256],9394:[[40,119,41],256],9395:[[40,120,41],256],9396:[[40,121,41],256],9397:[[40,122,41],256],9398:[[65],256],9399:[[66],256],9400:[[67],256],9401:[[68],256],9402:[[69],256],9403:[[70],256],9404:[[71],256],9405:[[72],256],9406:[[73],256],9407:[[74],256],9408:[[75],256],9409:[[76],256],9410:[[77],256],9411:[[78],256],9412:[[79],256],9413:[[80],256],9414:[[81],256],9415:[[82],256],9416:[[83],256],9417:[[84],256],9418:[[85],256],9419:[[86],256],9420:[[87],256],9421:[[88],256],9422:[[89],256],9423:[[90],256],9424:[[97],256],9425:[[98],256],9426:[[99],256],9427:[[100],256],9428:[[101],256],9429:[[102],256],9430:[[103],256],9431:[[104],256],9432:[[105],256],9433:[[106],256],9434:[[107],256],9435:[[108],256],9436:[[109],256],9437:[[110],256],9438:[[111],256],9439:[[112],256],9440:[[113],256],9441:[[114],256],9442:[[115],256],9443:[[116],256],9444:[[117],256],9445:[[118],256],9446:[[119],256],9447:[[120],256],9448:[[121],256],9449:[[122],256],9450:[[48],256]},10752:{10764:[[8747,8747,8747,8747],256],10868:[[58,58,61],256],10869:[[61,61],256],10870:[[61,61,61],256],10972:[[10973,824],512]},11264:{11388:[[106],256],11389:[[86],256],11503:[,230],11504:[,230],11505:[,230]},11520:{11631:[[11617],256],11647:[,9],11744:[,230],11745:[,230],11746:[,230],11747:[,230],11748:[,230],11749:[,230],11750:[,230],11751:[,230],11752:[,230],11753:[,230],11754:[,230],11755:[,230],11756:[,230],11757:[,230],11758:[,230],11759:[,230],11760:[,230],11761:[,230],11762:[,230],11763:[,230],11764:[,230],11765:[,230],11766:[,230],11767:[,230],11768:[,230],11769:[,230],11770:[,230],11771:[,230],11772:[,230],11773:[,230],11774:[,230],11775:[,230]},11776:{11935:[[27597],256],12019:[[40863],256]},12032:{12032:[[19968],256],12033:[[20008],256],12034:[[20022],256],12035:[[20031],256],12036:[[20057],256],12037:[[20101],256],12038:[[20108],256],12039:[[20128],256],12040:[[20154],256],12041:[[20799],256],12042:[[20837],256],12043:[[20843],256],12044:[[20866],256],12045:[[20886],256],12046:[[20907],256],12047:[[20960],256],12048:[[20981],256],12049:[[20992],256],12050:[[21147],256],12051:[[21241],256],12052:[[21269],256],12053:[[21274],256],12054:[[21304],256],12055:[[21313],256],12056:[[21340],256],12057:[[21353],256],12058:[[21378],256],12059:[[21430],256],12060:[[21448],256],12061:[[21475],256],12062:[[22231],256],12063:[[22303],256],12064:[[22763],256],12065:[[22786],256],12066:[[22794],256],12067:[[22805],256],12068:[[22823],256],12069:[[22899],256],12070:[[23376],256],12071:[[23424],256],12072:[[23544],256],12073:[[23567],256],12074:[[23586],256],12075:[[23608],256],12076:[[23662],256],12077:[[23665],256],12078:[[24027],256],12079:[[24037],256],12080:[[24049],256],12081:[[24062],256],12082:[[24178],256],12083:[[24186],256],12084:[[24191],256],12085:[[24308],256],12086:[[24318],256],12087:[[24331],256],12088:[[24339],256],12089:[[24400],256],12090:[[24417],256],12091:[[24435],256],12092:[[24515],256],12093:[[25096],256],12094:[[25142],256],12095:[[25163],256],12096:[[25903],256],12097:[[25908],256],12098:[[25991],256],12099:[[26007],256],12100:[[26020],256],12101:[[26041],256],12102:[[26080],256],12103:[[26085],256],12104:[[26352],256],12105:[[26376],256],12106:[[26408],256],12107:[[27424],256],12108:[[27490],256],12109:[[27513],256],12110:[[27571],256],12111:[[27595],256],12112:[[27604],256],12113:[[27611],256],12114:[[27663],256],12115:[[27668],256],12116:[[27700],256],12117:[[28779],256],12118:[[29226],256],12119:[[29238],256],12120:[[29243],256],12121:[[29247],256],12122:[[29255],256],12123:[[29273],256],12124:[[29275],256],12125:[[29356],256],12126:[[29572],256],12127:[[29577],256],12128:[[29916],256],12129:[[29926],256],12130:[[29976],256],12131:[[29983],256],12132:[[29992],256],12133:[[3e4],256],12134:[[30091],256],12135:[[30098],256],12136:[[30326],256],12137:[[30333],256],12138:[[30382],256],12139:[[30399],256],12140:[[30446],256],12141:[[30683],256],12142:[[30690],256],12143:[[30707],256],12144:[[31034],256],12145:[[31160],256],12146:[[31166],256],12147:[[31348],256],12148:[[31435],256],12149:[[31481],256],12150:[[31859],256],12151:[[31992],256],12152:[[32566],256],12153:[[32593],256],12154:[[32650],256],12155:[[32701],256],12156:[[32769],256],12157:[[32780],256],12158:[[32786],256],12159:[[32819],256],12160:[[32895],256],12161:[[32905],256],12162:[[33251],256],12163:[[33258],256],12164:[[33267],256],12165:[[33276],256],12166:[[33292],256],12167:[[33307],256],12168:[[33311],256],12169:[[33390],256],12170:[[33394],256],12171:[[33400],256],12172:[[34381],256],12173:[[34411],256],12174:[[34880],256],12175:[[34892],256],12176:[[34915],256],12177:[[35198],256],12178:[[35211],256],12179:[[35282],256],12180:[[35328],256],12181:[[35895],256],12182:[[35910],256],12183:[[35925],256],12184:[[35960],256],12185:[[35997],256],12186:[[36196],256],12187:[[36208],256],12188:[[36275],256],12189:[[36523],256],12190:[[36554],256],12191:[[36763],256],12192:[[36784],256],12193:[[36789],256],12194:[[37009],256],12195:[[37193],256],12196:[[37318],256],12197:[[37324],256],12198:[[37329],256],12199:[[38263],256],12200:[[38272],256],12201:[[38428],256],12202:[[38582],256],12203:[[38585],256],12204:[[38632],256],12205:[[38737],256],12206:[[38750],256],12207:[[38754],256],12208:[[38761],256],12209:[[38859],256],12210:[[38893],256],12211:[[38899],256],12212:[[38913],256],12213:[[39080],256],12214:[[39131],256],12215:[[39135],256],12216:[[39318],256],12217:[[39321],256],12218:[[39340],256],12219:[[39592],256],12220:[[39640],256],12221:[[39647],256],12222:[[39717],256],12223:[[39727],256],12224:[[39730],256],12225:[[39740],256],12226:[[39770],256],12227:[[40165],256],12228:[[40565],256],12229:[[40575],256],12230:[[40613],256],12231:[[40635],256],12232:[[40643],256],12233:[[40653],256],12234:[[40657],256],12235:[[40697],256],12236:[[40701],256],12237:[[40718],256],12238:[[40723],256],12239:[[40736],256],12240:[[40763],256],12241:[[40778],256],12242:[[40786],256],12243:[[40845],256],12244:[[40860],256],12245:[[40864],256]},12288:{12288:[[32],256],12330:[,218],12331:[,228],12332:[,232],12333:[,222],12334:[,224],12335:[,224],12342:[[12306],256],12344:[[21313],256],12345:[[21316],256],12346:[[21317],256],12358:[,,{12441:12436}],12363:[,,{12441:12364}],12364:[[12363,12441]],12365:[,,{12441:12366}],12366:[[12365,12441]],12367:[,,{12441:12368}],12368:[[12367,12441]],12369:[,,{12441:12370}],12370:[[12369,12441]],12371:[,,{12441:12372}],12372:[[12371,12441]],12373:[,,{12441:12374}],12374:[[12373,12441]],12375:[,,{12441:12376}],12376:[[12375,12441]],12377:[,,{12441:12378}],12378:[[12377,12441]],12379:[,,{12441:12380}],12380:[[12379,12441]],12381:[,,{12441:12382}],12382:[[12381,12441]],12383:[,,{12441:12384}],12384:[[12383,12441]],12385:[,,{12441:12386}],12386:[[12385,12441]],12388:[,,{12441:12389}],12389:[[12388,12441]],12390:[,,{12441:12391}],12391:[[12390,12441]],12392:[,,{12441:12393}],12393:[[12392,12441]],12399:[,,{12441:12400,12442:12401}],12400:[[12399,12441]],12401:[[12399,12442]],12402:[,,{12441:12403,12442:12404}],12403:[[12402,12441]],12404:[[12402,12442]],12405:[,,{12441:12406,12442:12407}],12406:[[12405,12441]],12407:[[12405,12442]],12408:[,,{12441:12409,12442:12410}],12409:[[12408,12441]],12410:[[12408,12442]],12411:[,,{12441:12412,12442:12413}],12412:[[12411,12441]],12413:[[12411,12442]],12436:[[12358,12441]],12441:[,8],12442:[,8],12443:[[32,12441],256],12444:[[32,12442],256],12445:[,,{12441:12446}],12446:[[12445,12441]],12447:[[12424,12426],256],12454:[,,{12441:12532}],12459:[,,{12441:12460}],12460:[[12459,12441]],12461:[,,{12441:12462}],12462:[[12461,12441]],12463:[,,{12441:12464}],12464:[[12463,12441]],12465:[,,{12441:12466}],12466:[[12465,12441]],12467:[,,{12441:12468}],12468:[[12467,12441]],12469:[,,{12441:12470}],12470:[[12469,12441]],12471:[,,{12441:12472}],12472:[[12471,12441]],12473:[,,{12441:12474}],12474:[[12473,12441]],12475:[,,{12441:12476}],12476:[[12475,12441]],12477:[,,{12441:12478}],12478:[[12477,12441]],12479:[,,{12441:12480}],12480:[[12479,12441]],12481:[,,{12441:12482}],12482:[[12481,12441]],12484:[,,{12441:12485}],12485:[[12484,12441]],12486:[,,{12441:12487}],12487:[[12486,12441]],12488:[,,{12441:12489}],12489:[[12488,12441]],12495:[,,{12441:12496,12442:12497}],12496:[[12495,12441]],12497:[[12495,12442]],12498:[,,{12441:12499,12442:12500}],12499:[[12498,12441]],12500:[[12498,12442]],12501:[,,{12441:12502,12442:12503}],12502:[[12501,12441]],12503:[[12501,12442]],12504:[,,{12441:12505,12442:12506}],12505:[[12504,12441]],12506:[[12504,12442]],12507:[,,{12441:12508,12442:12509}],12508:[[12507,12441]],12509:[[12507,12442]],12527:[,,{12441:12535}],12528:[,,{12441:12536}],12529:[,,{12441:12537}],12530:[,,{12441:12538}],12532:[[12454,12441]],12535:[[12527,12441]],12536:[[12528,12441]],12537:[[12529,12441]],12538:[[12530,12441]],12541:[,,{12441:12542}],12542:[[12541,12441]],12543:[[12467,12488],256]},12544:{12593:[[4352],256],12594:[[4353],256],12595:[[4522],256],12596:[[4354],256],12597:[[4524],256],12598:[[4525],256],12599:[[4355],256],12600:[[4356],256],12601:[[4357],256],12602:[[4528],256],12603:[[4529],256],12604:[[4530],256],12605:[[4531],256],12606:[[4532],256],12607:[[4533],256],12608:[[4378],256],12609:[[4358],256],12610:[[4359],256],12611:[[4360],256],12612:[[4385],256],12613:[[4361],256],12614:[[4362],256],12615:[[4363],256],12616:[[4364],256],12617:[[4365],256],12618:[[4366],256],12619:[[4367],256],12620:[[4368],256],12621:[[4369],256],12622:[[4370],256],12623:[[4449],256],12624:[[4450],256],12625:[[4451],256],12626:[[4452],256],12627:[[4453],256],12628:[[4454],256],12629:[[4455],256],12630:[[4456],256],12631:[[4457],256],12632:[[4458],256],12633:[[4459],256],12634:[[4460],256],12635:[[4461],256],12636:[[4462],256],12637:[[4463],256],12638:[[4464],256],12639:[[4465],256],12640:[[4466],256],12641:[[4467],256],12642:[[4468],256],12643:[[4469],256],12644:[[4448],256],12645:[[4372],256],12646:[[4373],256],12647:[[4551],256],12648:[[4552],256],12649:[[4556],256],12650:[[4558],256],12651:[[4563],256],12652:[[4567],256],12653:[[4569],256],12654:[[4380],256],12655:[[4573],256],12656:[[4575],256],12657:[[4381],256],12658:[[4382],256],12659:[[4384],256],12660:[[4386],256],12661:[[4387],256],12662:[[4391],256],12663:[[4393],256],12664:[[4395],256],12665:[[4396],256],12666:[[4397],256],12667:[[4398],256],12668:[[4399],256],12669:[[4402],256],12670:[[4406],256],12671:[[4416],256],12672:[[4423],256],12673:[[4428],256],12674:[[4593],256],12675:[[4594],256],12676:[[4439],256],12677:[[4440],256],12678:[[4441],256],12679:[[4484],256],12680:[[4485],256],12681:[[4488],256],12682:[[4497],256],12683:[[4498],256],12684:[[4500],256],12685:[[4510],256],12686:[[4513],256],12690:[[19968],256],12691:[[20108],256],12692:[[19977],256],12693:[[22235],256],12694:[[19978],256],12695:[[20013],256],12696:[[19979],256],12697:[[30002],256],12698:[[20057],256],12699:[[19993],256],12700:[[19969],256],12701:[[22825],256],12702:[[22320],256],12703:[[20154],256]},12800:{12800:[[40,4352,41],256],12801:[[40,4354,41],256],12802:[[40,4355,41],256],12803:[[40,4357,41],256],12804:[[40,4358,41],256],12805:[[40,4359,41],256],12806:[[40,4361,41],256],12807:[[40,4363,41],256],12808:[[40,4364,41],256],12809:[[40,4366,41],256],12810:[[40,4367,41],256],12811:[[40,4368,41],256],12812:[[40,4369,41],256],12813:[[40,4370,41],256],12814:[[40,4352,4449,41],256],12815:[[40,4354,4449,41],256],12816:[[40,4355,4449,41],256],12817:[[40,4357,4449,41],256],12818:[[40,4358,4449,41],256],12819:[[40,4359,4449,41],256],12820:[[40,4361,4449,41],256],12821:[[40,4363,4449,41],256],12822:[[40,4364,4449,41],256],12823:[[40,4366,4449,41],256],12824:[[40,4367,4449,41],256],12825:[[40,4368,4449,41],256],12826:[[40,4369,4449,41],256],12827:[[40,4370,4449,41],256],12828:[[40,4364,4462,41],256],12829:[[40,4363,4457,4364,4453,4523,41],256],12830:[[40,4363,4457,4370,4462,41],256],12832:[[40,19968,41],256],12833:[[40,20108,41],256],12834:[[40,19977,41],256],12835:[[40,22235,41],256],12836:[[40,20116,41],256],12837:[[40,20845,41],256],12838:[[40,19971,41],256],12839:[[40,20843,41],256],12840:[[40,20061,41],256],12841:[[40,21313,41],256],12842:[[40,26376,41],256],12843:[[40,28779,41],256],12844:[[40,27700,41],256],12845:[[40,26408,41],256],12846:[[40,37329,41],256],12847:[[40,22303,41],256],12848:[[40,26085,41],256],12849:[[40,26666,41],256],12850:[[40,26377,41],256],12851:[[40,31038,41],256],12852:[[40,21517,41],256],12853:[[40,29305,41],256],12854:[[40,36001,41],256],12855:[[40,31069,41],256],12856:[[40,21172,41],256],12857:[[40,20195,41],256],12858:[[40,21628,41],256],12859:[[40,23398,41],256],12860:[[40,30435,41],256],12861:[[40,20225,41],256],12862:[[40,36039,41],256],12863:[[40,21332,41],256],12864:[[40,31085,41],256],12865:[[40,20241,41],256],12866:[[40,33258,41],256],12867:[[40,33267,41],256],12868:[[21839],256],12869:[[24188],256],12870:[[25991],256],12871:[[31631],256],12880:[[80,84,69],256],12881:[[50,49],256],12882:[[50,50],256],12883:[[50,51],256],12884:[[50,52],256],12885:[[50,53],256],12886:[[50,54],256],12887:[[50,55],256],12888:[[50,56],256],12889:[[50,57],256],12890:[[51,48],256],12891:[[51,49],256],12892:[[51,50],256],12893:[[51,51],256],12894:[[51,52],256],12895:[[51,53],256],12896:[[4352],256],12897:[[4354],256],12898:[[4355],256],12899:[[4357],256],12900:[[4358],256],12901:[[4359],256],12902:[[4361],256],12903:[[4363],256],12904:[[4364],256],12905:[[4366],256],12906:[[4367],256],12907:[[4368],256],12908:[[4369],256],12909:[[4370],256],12910:[[4352,4449],256],12911:[[4354,4449],256],12912:[[4355,4449],256],12913:[[4357,4449],256],12914:[[4358,4449],256],12915:[[4359,4449],256],12916:[[4361,4449],256],12917:[[4363,4449],256],12918:[[4364,4449],256],12919:[[4366,4449],256],12920:[[4367,4449],256],12921:[[4368,4449],256],12922:[[4369,4449],256],12923:[[4370,4449],256],12924:[[4366,4449,4535,4352,4457],256],12925:[[4364,4462,4363,4468],256],12926:[[4363,4462],256],12928:[[19968],256],12929:[[20108],256],12930:[[19977],256],12931:[[22235],256],12932:[[20116],256],12933:[[20845],256],12934:[[19971],256],12935:[[20843],256],12936:[[20061],256],12937:[[21313],256],12938:[[26376],256],12939:[[28779],256],12940:[[27700],256],12941:[[26408],256],12942:[[37329],256],12943:[[22303],256],12944:[[26085],256],12945:[[26666],256],12946:[[26377],256],12947:[[31038],256],12948:[[21517],256],12949:[[29305],256],12950:[[36001],256],12951:[[31069],256],12952:[[21172],256],12953:[[31192],256],12954:[[30007],256],12955:[[22899],256],12956:[[36969],256],12957:[[20778],256],12958:[[21360],256],12959:[[27880],256],12960:[[38917],256],12961:[[20241],256],12962:[[20889],256],12963:[[27491],256],12964:[[19978],256],12965:[[20013],256],12966:[[19979],256],12967:[[24038],256],12968:[[21491],256],12969:[[21307],256],12970:[[23447],256],12971:[[23398],256],12972:[[30435],256],12973:[[20225],256],12974:[[36039],256],12975:[[21332],256],12976:[[22812],256],12977:[[51,54],256],12978:[[51,55],256],12979:[[51,56],256],12980:[[51,57],256],12981:[[52,48],256],12982:[[52,49],256],12983:[[52,50],256],12984:[[52,51],256],12985:[[52,52],256],12986:[[52,53],256],12987:[[52,54],256],12988:[[52,55],256],12989:[[52,56],256],12990:[[52,57],256],12991:[[53,48],256],12992:[[49,26376],256],12993:[[50,26376],256],12994:[[51,26376],256],12995:[[52,26376],256],12996:[[53,26376],256],12997:[[54,26376],256],12998:[[55,26376],256],12999:[[56,26376],256],13e3:[[57,26376],256],13001:[[49,48,26376],256],13002:[[49,49,26376],256],13003:[[49,50,26376],256],13004:[[72,103],256],13005:[[101,114,103],256],13006:[[101,86],256],13007:[[76,84,68],256],13008:[[12450],256],13009:[[12452],256],13010:[[12454],256],13011:[[12456],256],13012:[[12458],256],13013:[[12459],256],13014:[[12461],256],13015:[[12463],256],13016:[[12465],256],13017:[[12467],256],13018:[[12469],256],13019:[[12471],256],13020:[[12473],256],13021:[[12475],256],13022:[[12477],256],13023:[[12479],256],13024:[[12481],256],13025:[[12484],256],13026:[[12486],256],13027:[[12488],256],13028:[[12490],256],13029:[[12491],256],13030:[[12492],256],13031:[[12493],256],13032:[[12494],256],13033:[[12495],256],13034:[[12498],256],13035:[[12501],256],13036:[[12504],256],13037:[[12507],256],13038:[[12510],256],13039:[[12511],256],13040:[[12512],256],13041:[[12513],256],13042:[[12514],256],13043:[[12516],256],13044:[[12518],256],13045:[[12520],256],13046:[[12521],256],13047:[[12522],256],13048:[[12523],256],13049:[[12524],256],13050:[[12525],256],13051:[[12527],256],13052:[[12528],256],13053:[[12529],256],13054:[[12530],256]},13056:{13056:[[12450,12497,12540,12488],256],13057:[[12450,12523,12501,12449],256],13058:[[12450,12531,12506,12450],256],13059:[[12450,12540,12523],256],13060:[[12452,12491,12531,12464],256],13061:[[12452,12531,12481],256],13062:[[12454,12457,12531],256],13063:[[12456,12473,12463,12540,12489],256],13064:[[12456,12540,12459,12540],256],13065:[[12458,12531,12473],256],13066:[[12458,12540,12512],256],13067:[[12459,12452,12522],256],13068:[[12459,12521,12483,12488],256],13069:[[12459,12525,12522,12540],256],13070:[[12460,12525,12531],256],13071:[[12460,12531,12510],256],13072:[[12462,12460],256],13073:[[12462,12491,12540],256],13074:[[12461,12517,12522,12540],256],13075:[[12462,12523,12480,12540],256],13076:[[12461,12525],256],13077:[[12461,12525,12464,12521,12512],256],13078:[[12461,12525,12513,12540,12488,12523],256],13079:[[12461,12525,12527,12483,12488],256],13080:[[12464,12521,12512],256],13081:[[12464,12521,12512,12488,12531],256],13082:[[12463,12523,12476,12452,12525],256],13083:[[12463,12525,12540,12493],256],13084:[[12465,12540,12473],256],13085:[[12467,12523,12490],256],13086:[[12467,12540,12509],256],13087:[[12469,12452,12463,12523],256],13088:[[12469,12531,12481,12540,12512],256],13089:[[12471,12522,12531,12464],256],13090:[[12475,12531,12481],256],13091:[[12475,12531,12488],256],13092:[[12480,12540,12473],256],13093:[[12487,12471],256],13094:[[12489,12523],256],13095:[[12488,12531],256],13096:[[12490,12494],256],13097:[[12494,12483,12488],256],13098:[[12495,12452,12484],256],13099:[[12497,12540,12475,12531,12488],256],13100:[[12497,12540,12484],256],13101:[[12496,12540,12524,12523],256],13102:[[12500,12450,12473,12488,12523],256],13103:[[12500,12463,12523],256],13104:[[12500,12467],256],13105:[[12499,12523],256],13106:[[12501,12449,12521,12483,12489],256],13107:[[12501,12451,12540,12488],256],13108:[[12502,12483,12471,12455,12523],256],13109:[[12501,12521,12531],256],13110:[[12504,12463,12479,12540,12523],256],13111:[[12506,12477],256],13112:[[12506,12491,12498],256],13113:[[12504,12523,12484],256],13114:[[12506,12531,12473],256],13115:[[12506,12540,12472],256],13116:[[12505,12540,12479],256],13117:[[12509,12452,12531,12488],256],13118:[[12508,12523,12488],256],13119:[[12507,12531],256],13120:[[12509,12531,12489],256],13121:[[12507,12540,12523],256],13122:[[12507,12540,12531],256],13123:[[12510,12452,12463,12525],256],13124:[[12510,12452,12523],256],13125:[[12510,12483,12495],256],13126:[[12510,12523,12463],256],13127:[[12510,12531,12471,12519,12531],256],13128:[[12511,12463,12525,12531],256],13129:[[12511,12522],256],13130:[[12511,12522,12496,12540,12523],256],13131:[[12513,12460],256],13132:[[12513,12460,12488,12531],256],13133:[[12513,12540,12488,12523],256],13134:[[12516,12540,12489],256],13135:[[12516,12540,12523],256],13136:[[12518,12450,12531],256],13137:[[12522,12483,12488,12523],256],13138:[[12522,12521],256],13139:[[12523,12500,12540],256],13140:[[12523,12540,12502,12523],256],13141:[[12524,12512],256],13142:[[12524,12531,12488,12466,12531],256],13143:[[12527,12483,12488],256],13144:[[48,28857],256],13145:[[49,28857],256],13146:[[50,28857],256],13147:[[51,28857],256],13148:[[52,28857],256],13149:[[53,28857],256],13150:[[54,28857],256],13151:[[55,28857],256],13152:[[56,28857],256],13153:[[57,28857],256],13154:[[49,48,28857],256],13155:[[49,49,28857],256],13156:[[49,50,28857],256],13157:[[49,51,28857],256],13158:[[49,52,28857],256],13159:[[49,53,28857],256],13160:[[49,54,28857],256],13161:[[49,55,28857],256],13162:[[49,56,28857],256],13163:[[49,57,28857],256],13164:[[50,48,28857],256],13165:[[50,49,28857],256],13166:[[50,50,28857],256],13167:[[50,51,28857],256],13168:[[50,52,28857],256],13169:[[104,80,97],256],13170:[[100,97],256],13171:[[65,85],256],13172:[[98,97,114],256],13173:[[111,86],256],13174:[[112,99],256],13175:[[100,109],256],13176:[[100,109,178],256],13177:[[100,109,179],256],13178:[[73,85],256],13179:[[24179,25104],256],13180:[[26157,21644],256],13181:[[22823,27491],256],13182:[[26126,27835],256],13183:[[26666,24335,20250,31038],256],13184:[[112,65],256],13185:[[110,65],256],13186:[[956,65],256],13187:[[109,65],256],13188:[[107,65],256],13189:[[75,66],256],13190:[[77,66],256],13191:[[71,66],256],13192:[[99,97,108],256],13193:[[107,99,97,108],256],13194:[[112,70],256],13195:[[110,70],256],13196:[[956,70],256],13197:[[956,103],256],13198:[[109,103],256],13199:[[107,103],256],13200:[[72,122],256],13201:[[107,72,122],256],13202:[[77,72,122],256],13203:[[71,72,122],256],13204:[[84,72,122],256],13205:[[956,8467],256],13206:[[109,8467],256],13207:[[100,8467],256],13208:[[107,8467],256],13209:[[102,109],256],13210:[[110,109],256],13211:[[956,109],256],13212:[[109,109],256],13213:[[99,109],256],13214:[[107,109],256],13215:[[109,109,178],256],13216:[[99,109,178],256],13217:[[109,178],256],13218:[[107,109,178],256],13219:[[109,109,179],256],13220:[[99,109,179],256],13221:[[109,179],256],13222:[[107,109,179],256],13223:[[109,8725,115],256],13224:[[109,8725,115,178],256],13225:[[80,97],256],13226:[[107,80,97],256],13227:[[77,80,97],256],13228:[[71,80,97],256],13229:[[114,97,100],256],13230:[[114,97,100,8725,115],256],13231:[[114,97,100,8725,115,178],256],13232:[[112,115],256],13233:[[110,115],256],13234:[[956,115],256],13235:[[109,115],256],13236:[[112,86],256],13237:[[110,86],256],13238:[[956,86],256],13239:[[109,86],256],13240:[[107,86],256],13241:[[77,86],256],13242:[[112,87],256],13243:[[110,87],256],13244:[[956,87],256],13245:[[109,87],256],13246:[[107,87],256],13247:[[77,87],256],13248:[[107,937],256],13249:[[77,937],256],13250:[[97,46,109,46],256],13251:[[66,113],256],13252:[[99,99],256],13253:[[99,100],256],13254:[[67,8725,107,103],256],13255:[[67,111,46],256],13256:[[100,66],256],13257:[[71,121],256],13258:[[104,97],256],13259:[[72,80],256],13260:[[105,110],256],13261:[[75,75],256],13262:[[75,77],256],13263:[[107,116],256],13264:[[108,109],256],13265:[[108,110],256],13266:[[108,111,103],256],13267:[[108,120],256],13268:[[109,98],256],13269:[[109,105,108],256],13270:[[109,111,108],256],13271:[[80,72],256],13272:[[112,46,109,46],256],13273:[[80,80,77],256],13274:[[80,82],256],13275:[[115,114],256],13276:[[83,118],256],13277:[[87,98],256],13278:[[86,8725,109],256],13279:[[65,8725,109],256],13280:[[49,26085],256],13281:[[50,26085],256],13282:[[51,26085],256],13283:[[52,26085],256],13284:[[53,26085],256],13285:[[54,26085],256],13286:[[55,26085],256],13287:[[56,26085],256],13288:[[57,26085],256],13289:[[49,48,26085],256],13290:[[49,49,26085],256],13291:[[49,50,26085],256],13292:[[49,51,26085],256],13293:[[49,52,26085],256],13294:[[49,53,26085],256],13295:[[49,54,26085],256],13296:[[49,55,26085],256],13297:[[49,56,26085],256],13298:[[49,57,26085],256],13299:[[50,48,26085],256],13300:[[50,49,26085],256],13301:[[50,50,26085],256],13302:[[50,51,26085],256],13303:[[50,52,26085],256],13304:[[50,53,26085],256],13305:[[50,54,26085],256],13306:[[50,55,26085],256],13307:[[50,56,26085],256],13308:[[50,57,26085],256],13309:[[51,48,26085],256],13310:[[51,49,26085],256],13311:[[103,97,108],256]},27136:{92912:[,1],92913:[,1],92914:[,1],92915:[,1],92916:[,1]},27392:{92976:[,230],92977:[,230],92978:[,230],92979:[,230],92980:[,230],92981:[,230],92982:[,230]},42496:{42607:[,230],42612:[,230],42613:[,230],42614:[,230],42615:[,230],42616:[,230],42617:[,230],42618:[,230],42619:[,230],42620:[,230],42621:[,230],42652:[[1098],256],42653:[[1100],256],42655:[,230],42736:[,230],42737:[,230]},42752:{42864:[[42863],256],43e3:[[294],256],43001:[[339],256]},43008:{43014:[,9],43204:[,9],43232:[,230],43233:[,230],43234:[,230],43235:[,230],43236:[,230],43237:[,230],43238:[,230],43239:[,230],43240:[,230],43241:[,230],43242:[,230],43243:[,230],43244:[,230],43245:[,230],43246:[,230],43247:[,230],43248:[,230],43249:[,230]},43264:{43307:[,220],43308:[,220],43309:[,220],43347:[,9],43443:[,7],43456:[,9]},43520:{43696:[,230],43698:[,230],43699:[,230],43700:[,220],43703:[,230],43704:[,230],43710:[,230],43711:[,230],43713:[,230],43766:[,9]},43776:{43868:[[42791],256],43869:[[43831],256],43870:[[619],256],43871:[[43858],256],44013:[,9]},48128:{113822:[,1]},53504:{119134:[[119127,119141],512],119135:[[119128,119141],512],119136:[[119135,119150],512],119137:[[119135,119151],512],119138:[[119135,119152],512],119139:[[119135,119153],512],119140:[[119135,119154],512],119141:[,216],119142:[,216],119143:[,1],119144:[,1],119145:[,1],119149:[,226],119150:[,216],119151:[,216],119152:[,216],119153:[,216],119154:[,216],119163:[,220],119164:[,220],119165:[,220],119166:[,220],119167:[,220],119168:[,220],119169:[,220],119170:[,220],119173:[,230],119174:[,230],119175:[,230],119176:[,230],119177:[,230],119178:[,220],119179:[,220],119210:[,230],119211:[,230],119212:[,230],119213:[,230],119227:[[119225,119141],512],119228:[[119226,119141],512],119229:[[119227,119150],512],119230:[[119228,119150],512],119231:[[119227,119151],512],119232:[[119228,119151],512]},53760:{119362:[,230],119363:[,230],119364:[,230]},54272:{119808:[[65],256],119809:[[66],256],119810:[[67],256],119811:[[68],256],119812:[[69],256],119813:[[70],256],119814:[[71],256],119815:[[72],256],119816:[[73],256],119817:[[74],256],119818:[[75],256],119819:[[76],256],119820:[[77],256],119821:[[78],256],119822:[[79],256],119823:[[80],256],119824:[[81],256],119825:[[82],256],119826:[[83],256],119827:[[84],256],119828:[[85],256],119829:[[86],256],119830:[[87],256],119831:[[88],256],119832:[[89],256],119833:[[90],256],119834:[[97],256],119835:[[98],256],119836:[[99],256],119837:[[100],256],119838:[[101],256],119839:[[102],256],119840:[[103],256],119841:[[104],256],119842:[[105],256],119843:[[106],256],119844:[[107],256],119845:[[108],256],119846:[[109],256],119847:[[110],256],119848:[[111],256],119849:[[112],256],119850:[[113],256],119851:[[114],256],119852:[[115],256],119853:[[116],256],119854:[[117],256],119855:[[118],256],119856:[[119],256],119857:[[120],256],119858:[[121],256],119859:[[122],256],119860:[[65],256],119861:[[66],256],119862:[[67],256],119863:[[68],256],119864:[[69],256],119865:[[70],256],119866:[[71],256],119867:[[72],256],119868:[[73],256],119869:[[74],256],119870:[[75],256],119871:[[76],256],119872:[[77],256],119873:[[78],256],119874:[[79],256],119875:[[80],256],119876:[[81],256],119877:[[82],256],119878:[[83],256],119879:[[84],256],119880:[[85],256],119881:[[86],256],119882:[[87],256],119883:[[88],256],119884:[[89],256],119885:[[90],256],119886:[[97],256],119887:[[98],256],119888:[[99],256],119889:[[100],256],119890:[[101],256],119891:[[102],256],119892:[[103],256],119894:[[105],256],119895:[[106],256],119896:[[107],256],119897:[[108],256],119898:[[109],256],119899:[[110],256],119900:[[111],256],119901:[[112],256],119902:[[113],256],119903:[[114],256],119904:[[115],256],119905:[[116],256],119906:[[117],256],119907:[[118],256],119908:[[119],256],119909:[[120],256],119910:[[121],256],119911:[[122],256],119912:[[65],256],119913:[[66],256],119914:[[67],256],119915:[[68],256],119916:[[69],256],119917:[[70],256],119918:[[71],256],119919:[[72],256],119920:[[73],256],119921:[[74],256],119922:[[75],256],119923:[[76],256],119924:[[77],256],119925:[[78],256],119926:[[79],256],119927:[[80],256],119928:[[81],256],119929:[[82],256],119930:[[83],256],119931:[[84],256],119932:[[85],256],119933:[[86],256],119934:[[87],256],119935:[[88],256],119936:[[89],256],119937:[[90],256],119938:[[97],256],119939:[[98],256],119940:[[99],256],119941:[[100],256],119942:[[101],256],119943:[[102],256],119944:[[103],256],119945:[[104],256],119946:[[105],256],119947:[[106],256],119948:[[107],256],119949:[[108],256],119950:[[109],256],119951:[[110],256],119952:[[111],256],119953:[[112],256],119954:[[113],256],119955:[[114],256],119956:[[115],256],119957:[[116],256],119958:[[117],256],119959:[[118],256],119960:[[119],256],119961:[[120],256],119962:[[121],256],119963:[[122],256],119964:[[65],256],119966:[[67],256],119967:[[68],256],119970:[[71],256],119973:[[74],256],119974:[[75],256],119977:[[78],256],119978:[[79],256],119979:[[80],256],119980:[[81],256],119982:[[83],256],119983:[[84],256],119984:[[85],256],119985:[[86],256],119986:[[87],256],119987:[[88],256],119988:[[89],256],119989:[[90],256],119990:[[97],256],119991:[[98],256],119992:[[99],256],119993:[[100],256],119995:[[102],256],119997:[[104],256],119998:[[105],256],119999:[[106],256],12e4:[[107],256],120001:[[108],256],120002:[[109],256],120003:[[110],256],120005:[[112],256],120006:[[113],256],120007:[[114],256],120008:[[115],256],120009:[[116],256],120010:[[117],256],120011:[[118],256],120012:[[119],256],120013:[[120],256],120014:[[121],256],120015:[[122],256],120016:[[65],256],120017:[[66],256],120018:[[67],256],120019:[[68],256],120020:[[69],256],120021:[[70],256],120022:[[71],256],120023:[[72],256],120024:[[73],256],120025:[[74],256],120026:[[75],256],120027:[[76],256],120028:[[77],256],120029:[[78],256],120030:[[79],256],120031:[[80],256],120032:[[81],256],120033:[[82],256],120034:[[83],256],120035:[[84],256],120036:[[85],256],120037:[[86],256],120038:[[87],256],120039:[[88],256],120040:[[89],256],120041:[[90],256],120042:[[97],256],120043:[[98],256],120044:[[99],256],120045:[[100],256],120046:[[101],256],120047:[[102],256],120048:[[103],256],120049:[[104],256],120050:[[105],256],120051:[[106],256],120052:[[107],256],120053:[[108],256],120054:[[109],256],120055:[[110],256],120056:[[111],256],120057:[[112],256],120058:[[113],256],120059:[[114],256],120060:[[115],256],120061:[[116],256],120062:[[117],256],120063:[[118],256]},54528:{120064:[[119],256],120065:[[120],256],120066:[[121],256],120067:[[122],256],120068:[[65],256],120069:[[66],256],120071:[[68],256],120072:[[69],256],120073:[[70],256],120074:[[71],256],120077:[[74],256],120078:[[75],256],120079:[[76],256],120080:[[77],256],120081:[[78],256],120082:[[79],256],120083:[[80],256],120084:[[81],256],120086:[[83],256],120087:[[84],256],120088:[[85],256],120089:[[86],256],120090:[[87],256],120091:[[88],256],120092:[[89],256],120094:[[97],256],120095:[[98],256],120096:[[99],256],120097:[[100],256],120098:[[101],256],120099:[[102],256],120100:[[103],256],120101:[[104],256],120102:[[105],256],120103:[[106],256],120104:[[107],256],120105:[[108],256],120106:[[109],256],120107:[[110],256],120108:[[111],256],120109:[[112],256],120110:[[113],256],120111:[[114],256],120112:[[115],256],120113:[[116],256],120114:[[117],256],120115:[[118],256],120116:[[119],256],120117:[[120],256],120118:[[121],256],120119:[[122],256],120120:[[65],256],120121:[[66],256],120123:[[68],256],120124:[[69],256],120125:[[70],256],120126:[[71],256],120128:[[73],256],120129:[[74],256],120130:[[75],256],120131:[[76],256],120132:[[77],256],120134:[[79],256],120138:[[83],256],120139:[[84],256],120140:[[85],256],120141:[[86],256],120142:[[87],256],120143:[[88],256],120144:[[89],256],120146:[[97],256],120147:[[98],256],120148:[[99],256],120149:[[100],256],120150:[[101],256],120151:[[102],256],120152:[[103],256],120153:[[104],256],120154:[[105],256],120155:[[106],256],120156:[[107],256],120157:[[108],256],120158:[[109],256],120159:[[110],256],120160:[[111],256],120161:[[112],256],120162:[[113],256],120163:[[114],256],120164:[[115],256],120165:[[116],256],120166:[[117],256],120167:[[118],256],120168:[[119],256],120169:[[120],256],120170:[[121],256],120171:[[122],256],120172:[[65],256],120173:[[66],256],120174:[[67],256],120175:[[68],256],120176:[[69],256],120177:[[70],256],120178:[[71],256],120179:[[72],256],120180:[[73],256],120181:[[74],256],120182:[[75],256],120183:[[76],256],120184:[[77],256],120185:[[78],256],120186:[[79],256],120187:[[80],256],120188:[[81],256],120189:[[82],256],120190:[[83],256],120191:[[84],256],120192:[[85],256],120193:[[86],256],120194:[[87],256],120195:[[88],256],120196:[[89],256],120197:[[90],256],120198:[[97],256],120199:[[98],256],120200:[[99],256],120201:[[100],256],120202:[[101],256],120203:[[102],256],120204:[[103],256],120205:[[104],256],120206:[[105],256],120207:[[106],256],120208:[[107],256],120209:[[108],256],120210:[[109],256],120211:[[110],256],120212:[[111],256],120213:[[112],256],120214:[[113],256],120215:[[114],256],120216:[[115],256],120217:[[116],256],120218:[[117],256],120219:[[118],256],120220:[[119],256],120221:[[120],256],120222:[[121],256],120223:[[122],256],120224:[[65],256],120225:[[66],256],120226:[[67],256],120227:[[68],256],120228:[[69],256],120229:[[70],256],120230:[[71],256],120231:[[72],256],120232:[[73],256],120233:[[74],256],120234:[[75],256],120235:[[76],256],120236:[[77],256],120237:[[78],256],120238:[[79],256],120239:[[80],256],120240:[[81],256],120241:[[82],256],120242:[[83],256],120243:[[84],256],120244:[[85],256],120245:[[86],256],120246:[[87],256],120247:[[88],256],120248:[[89],256],120249:[[90],256],120250:[[97],256],120251:[[98],256],120252:[[99],256],120253:[[100],256],120254:[[101],256],120255:[[102],256],120256:[[103],256],120257:[[104],256],120258:[[105],256],120259:[[106],256],120260:[[107],256],120261:[[108],256],120262:[[109],256],120263:[[110],256],120264:[[111],256],120265:[[112],256],120266:[[113],256],120267:[[114],256],120268:[[115],256],120269:[[116],256],120270:[[117],256],120271:[[118],256],120272:[[119],256],120273:[[120],256],120274:[[121],256],120275:[[122],256],120276:[[65],256],120277:[[66],256],120278:[[67],256],120279:[[68],256],120280:[[69],256],120281:[[70],256],120282:[[71],256],120283:[[72],256],120284:[[73],256],120285:[[74],256],120286:[[75],256],120287:[[76],256],120288:[[77],256],120289:[[78],256],120290:[[79],256],120291:[[80],256],120292:[[81],256],120293:[[82],256],120294:[[83],256],120295:[[84],256],120296:[[85],256],120297:[[86],256],120298:[[87],256],120299:[[88],256],120300:[[89],256],120301:[[90],256],120302:[[97],256],120303:[[98],256],120304:[[99],256],120305:[[100],256],120306:[[101],256],120307:[[102],256],120308:[[103],256],120309:[[104],256],120310:[[105],256],120311:[[106],256],120312:[[107],256],120313:[[108],256],120314:[[109],256],120315:[[110],256],120316:[[111],256],120317:[[112],256],120318:[[113],256],120319:[[114],256]},54784:{120320:[[115],256],120321:[[116],256],120322:[[117],256],120323:[[118],256],120324:[[119],256],120325:[[120],256],120326:[[121],256],120327:[[122],256],120328:[[65],256],120329:[[66],256],120330:[[67],256],120331:[[68],256],120332:[[69],256],120333:[[70],256],120334:[[71],256],120335:[[72],256],120336:[[73],256],120337:[[74],256],120338:[[75],256],120339:[[76],256],120340:[[77],256],120341:[[78],256],120342:[[79],256],120343:[[80],256],120344:[[81],256],120345:[[82],256],120346:[[83],256],120347:[[84],256],120348:[[85],256],120349:[[86],256],120350:[[87],256],120351:[[88],256],120352:[[89],256],120353:[[90],256],120354:[[97],256],120355:[[98],256],120356:[[99],256],120357:[[100],256],120358:[[101],256],120359:[[102],256],120360:[[103],256],120361:[[104],256],120362:[[105],256],120363:[[106],256],120364:[[107],256],120365:[[108],256],120366:[[109],256],120367:[[110],256],120368:[[111],256],120369:[[112],256],120370:[[113],256],120371:[[114],256],120372:[[115],256],120373:[[116],256],120374:[[117],256],120375:[[118],256],120376:[[119],256],120377:[[120],256],120378:[[121],256],120379:[[122],256],120380:[[65],256],120381:[[66],256],120382:[[67],256],120383:[[68],256],120384:[[69],256],120385:[[70],256],120386:[[71],256],120387:[[72],256],120388:[[73],256],120389:[[74],256],120390:[[75],256],120391:[[76],256],120392:[[77],256],120393:[[78],256],120394:[[79],256],120395:[[80],256],120396:[[81],256],120397:[[82],256],120398:[[83],256],120399:[[84],256],120400:[[85],256],120401:[[86],256],120402:[[87],256],120403:[[88],256],120404:[[89],256],120405:[[90],256],120406:[[97],256],120407:[[98],256],120408:[[99],256],120409:[[100],256],120410:[[101],256],120411:[[102],256],120412:[[103],256],120413:[[104],256],120414:[[105],256],120415:[[106],256],120416:[[107],256],120417:[[108],256],120418:[[109],256],120419:[[110],256],120420:[[111],256],120421:[[112],256],120422:[[113],256],120423:[[114],256],120424:[[115],256],120425:[[116],256],120426:[[117],256],120427:[[118],256],120428:[[119],256],120429:[[120],256],120430:[[121],256],120431:[[122],256],120432:[[65],256],120433:[[66],256],120434:[[67],256],120435:[[68],256],120436:[[69],256],120437:[[70],256],120438:[[71],256],120439:[[72],256],120440:[[73],256],120441:[[74],256],120442:[[75],256],120443:[[76],256],120444:[[77],256],120445:[[78],256],120446:[[79],256],120447:[[80],256],120448:[[81],256],120449:[[82],256],120450:[[83],256],120451:[[84],256],120452:[[85],256],120453:[[86],256],120454:[[87],256],120455:[[88],256],120456:[[89],256],120457:[[90],256],120458:[[97],256],120459:[[98],256],120460:[[99],256],120461:[[100],256],120462:[[101],256],120463:[[102],256],120464:[[103],256],120465:[[104],256],120466:[[105],256],120467:[[106],256],120468:[[107],256],120469:[[108],256],120470:[[109],256],120471:[[110],256],120472:[[111],256],120473:[[112],256],120474:[[113],256],120475:[[114],256],120476:[[115],256],120477:[[116],256],120478:[[117],256],120479:[[118],256],120480:[[119],256],120481:[[120],256],120482:[[121],256],120483:[[122],256],120484:[[305],256],120485:[[567],256],120488:[[913],256],120489:[[914],256],120490:[[915],256],120491:[[916],256],120492:[[917],256],120493:[[918],256],120494:[[919],256],120495:[[920],256],120496:[[921],256],120497:[[922],256],120498:[[923],256],120499:[[924],256],120500:[[925],256],120501:[[926],256],120502:[[927],256],120503:[[928],256],120504:[[929],256],120505:[[1012],256],120506:[[931],256],120507:[[932],256],120508:[[933],256],120509:[[934],256],120510:[[935],256],120511:[[936],256],120512:[[937],256],120513:[[8711],256],120514:[[945],256],120515:[[946],256],120516:[[947],256],120517:[[948],256],120518:[[949],256],120519:[[950],256],120520:[[951],256],120521:[[952],256],120522:[[953],256],120523:[[954],256],120524:[[955],256],120525:[[956],256],120526:[[957],256],120527:[[958],256],120528:[[959],256],120529:[[960],256],120530:[[961],256],120531:[[962],256],120532:[[963],256],120533:[[964],256],120534:[[965],256],120535:[[966],256],120536:[[967],256],120537:[[968],256],120538:[[969],256],120539:[[8706],256],120540:[[1013],256],120541:[[977],256],120542:[[1008],256],120543:[[981],256],120544:[[1009],256],120545:[[982],256],120546:[[913],256],120547:[[914],256],120548:[[915],256],120549:[[916],256],120550:[[917],256],120551:[[918],256],120552:[[919],256],120553:[[920],256],120554:[[921],256],120555:[[922],256],120556:[[923],256],120557:[[924],256],120558:[[925],256],120559:[[926],256],120560:[[927],256],120561:[[928],256],120562:[[929],256],120563:[[1012],256],120564:[[931],256],120565:[[932],256],120566:[[933],256],120567:[[934],256],120568:[[935],256],120569:[[936],256],120570:[[937],256],120571:[[8711],256],120572:[[945],256],120573:[[946],256],120574:[[947],256],120575:[[948],256]},55040:{120576:[[949],256],120577:[[950],256],120578:[[951],256],120579:[[952],256],120580:[[953],256],120581:[[954],256],120582:[[955],256],120583:[[956],256],120584:[[957],256],120585:[[958],256],120586:[[959],256],120587:[[960],256],120588:[[961],256],120589:[[962],256],120590:[[963],256],120591:[[964],256],120592:[[965],256],120593:[[966],256],120594:[[967],256],120595:[[968],256],120596:[[969],256],120597:[[8706],256],120598:[[1013],256],120599:[[977],256],120600:[[1008],256],120601:[[981],256],120602:[[1009],256],120603:[[982],256],120604:[[913],256],120605:[[914],256],120606:[[915],256],120607:[[916],256],120608:[[917],256],120609:[[918],256],120610:[[919],256],120611:[[920],256],120612:[[921],256],120613:[[922],256],120614:[[923],256],120615:[[924],256],120616:[[925],256],120617:[[926],256],120618:[[927],256],120619:[[928],256],120620:[[929],256],120621:[[1012],256],120622:[[931],256],120623:[[932],256],120624:[[933],256],120625:[[934],256],120626:[[935],256],120627:[[936],256],120628:[[937],256],120629:[[8711],256],120630:[[945],256],120631:[[946],256],120632:[[947],256],120633:[[948],256],120634:[[949],256],120635:[[950],256],120636:[[951],256],120637:[[952],256],120638:[[953],256],120639:[[954],256],120640:[[955],256],120641:[[956],256],120642:[[957],256],120643:[[958],256],120644:[[959],256],120645:[[960],256],120646:[[961],256],120647:[[962],256],120648:[[963],256],120649:[[964],256],120650:[[965],256],120651:[[966],256],120652:[[967],256],120653:[[968],256],120654:[[969],256],120655:[[8706],256],120656:[[1013],256],120657:[[977],256],120658:[[1008],256],120659:[[981],256],120660:[[1009],256],120661:[[982],256],120662:[[913],256],120663:[[914],256],120664:[[915],256],120665:[[916],256],120666:[[917],256],120667:[[918],256],120668:[[919],256],120669:[[920],256],120670:[[921],256],120671:[[922],256],120672:[[923],256],120673:[[924],256],120674:[[925],256],120675:[[926],256],120676:[[927],256],120677:[[928],256],120678:[[929],256],120679:[[1012],256],120680:[[931],256],120681:[[932],256],120682:[[933],256],120683:[[934],256],120684:[[935],256],120685:[[936],256],120686:[[937],256],120687:[[8711],256],120688:[[945],256],120689:[[946],256],120690:[[947],256],120691:[[948],256],120692:[[949],256],120693:[[950],256],120694:[[951],256],120695:[[952],256],120696:[[953],256],120697:[[954],256],120698:[[955],256],120699:[[956],256],120700:[[957],256],120701:[[958],256],120702:[[959],256],120703:[[960],256],120704:[[961],256],120705:[[962],256],120706:[[963],256],120707:[[964],256],120708:[[965],256],120709:[[966],256],120710:[[967],256],120711:[[968],256],120712:[[969],256],120713:[[8706],256],120714:[[1013],256],120715:[[977],256],120716:[[1008],256],120717:[[981],256],120718:[[1009],256],120719:[[982],256],120720:[[913],256],120721:[[914],256],120722:[[915],256],120723:[[916],256],120724:[[917],256],120725:[[918],256],120726:[[919],256],120727:[[920],256],120728:[[921],256],120729:[[922],256],120730:[[923],256],120731:[[924],256],120732:[[925],256],120733:[[926],256],120734:[[927],256],120735:[[928],256],120736:[[929],256],120737:[[1012],256],120738:[[931],256],120739:[[932],256],120740:[[933],256],120741:[[934],256],120742:[[935],256],120743:[[936],256],120744:[[937],256],120745:[[8711],256],120746:[[945],256],120747:[[946],256],120748:[[947],256],120749:[[948],256],120750:[[949],256],120751:[[950],256],120752:[[951],256],120753:[[952],256],120754:[[953],256],120755:[[954],256],120756:[[955],256],120757:[[956],256],120758:[[957],256],120759:[[958],256],120760:[[959],256],120761:[[960],256],120762:[[961],256],120763:[[962],256],120764:[[963],256],120765:[[964],256],120766:[[965],256],120767:[[966],256],120768:[[967],256],120769:[[968],256],120770:[[969],256],120771:[[8706],256],120772:[[1013],256],120773:[[977],256],120774:[[1008],256],120775:[[981],256],120776:[[1009],256],120777:[[982],256],120778:[[988],256],120779:[[989],256],120782:[[48],256],120783:[[49],256],120784:[[50],256],120785:[[51],256],120786:[[52],256],120787:[[53],256],120788:[[54],256],120789:[[55],256],120790:[[56],256],120791:[[57],256],120792:[[48],256],120793:[[49],256],120794:[[50],256],120795:[[51],256],120796:[[52],256],120797:[[53],256],120798:[[54],256],120799:[[55],256],120800:[[56],256],120801:[[57],256],120802:[[48],256],120803:[[49],256],120804:[[50],256],120805:[[51],256],120806:[[52],256],120807:[[53],256],120808:[[54],256],120809:[[55],256],120810:[[56],256],120811:[[57],256],120812:[[48],256],120813:[[49],256],120814:[[50],256],120815:[[51],256],120816:[[52],256],120817:[[53],256],120818:[[54],256],120819:[[55],256],120820:[[56],256],120821:[[57],256],120822:[[48],256],120823:[[49],256],120824:[[50],256],120825:[[51],256],120826:[[52],256],120827:[[53],256],120828:[[54],256],120829:[[55],256],120830:[[56],256],120831:[[57],256]},59392:{125136:[,220],125137:[,220],125138:[,220],125139:[,220],125140:[,220],125141:[,220],125142:[,220]},60928:{126464:[[1575],256],126465:[[1576],256],126466:[[1580],256],126467:[[1583],256],126469:[[1608],256],126470:[[1586],256],126471:[[1581],256],126472:[[1591],256],126473:[[1610],256],126474:[[1603],256],126475:[[1604],256],126476:[[1605],256],126477:[[1606],256],126478:[[1587],256],126479:[[1593],256],126480:[[1601],256],126481:[[1589],256],126482:[[1602],256],126483:[[1585],256],126484:[[1588],256],126485:[[1578],256],126486:[[1579],256],126487:[[1582],256],126488:[[1584],256],126489:[[1590],256],126490:[[1592],256],126491:[[1594],256],126492:[[1646],256],126493:[[1722],256],126494:[[1697],256],126495:[[1647],256],126497:[[1576],256],126498:[[1580],256],126500:[[1607],256],126503:[[1581],256],126505:[[1610],256],126506:[[1603],256],126507:[[1604],256],126508:[[1605],256],126509:[[1606],256],126510:[[1587],256],126511:[[1593],256],126512:[[1601],256],126513:[[1589],256],126514:[[1602],256],126516:[[1588],256],126517:[[1578],256],126518:[[1579],256],126519:[[1582],256],126521:[[1590],256],126523:[[1594],256],126530:[[1580],256],126535:[[1581],256],126537:[[1610],256],126539:[[1604],256],126541:[[1606],256],126542:[[1587],256],126543:[[1593],256],126545:[[1589],256],126546:[[1602],256],126548:[[1588],256],126551:[[1582],256],126553:[[1590],256],126555:[[1594],256],126557:[[1722],256],126559:[[1647],256],126561:[[1576],256],126562:[[1580],256],126564:[[1607],256],126567:[[1581],256],126568:[[1591],256],126569:[[1610],256],126570:[[1603],256],126572:[[1605],256],126573:[[1606],256],126574:[[1587],256],126575:[[1593],256],126576:[[1601],256],126577:[[1589],256],126578:[[1602],256],126580:[[1588],256],126581:[[1578],256],126582:[[1579],256],126583:[[1582],256],126585:[[1590],256],126586:[[1592],256],126587:[[1594],256],126588:[[1646],256],126590:[[1697],256],126592:[[1575],256],126593:[[1576],256],126594:[[1580],256],126595:[[1583],256],126596:[[1607],256],126597:[[1608],256],126598:[[1586],256],126599:[[1581],256],126600:[[1591],256],126601:[[1610],256],126603:[[1604],256],126604:[[1605],256],126605:[[1606],256],126606:[[1587],256],126607:[[1593],256],126608:[[1601],256],126609:[[1589],256],126610:[[1602],256],126611:[[1585],256],126612:[[1588],256],126613:[[1578],256],126614:[[1579],256],126615:[[1582],256],126616:[[1584],256],126617:[[1590],256],126618:[[1592],256],126619:[[1594],256],126625:[[1576],256],126626:[[1580],256],126627:[[1583],256],126629:[[1608],256],126630:[[1586],256],126631:[[1581],256],126632:[[1591],256],126633:[[1610],256],126635:[[1604],256],126636:[[1605],256],126637:[[1606],256],126638:[[1587],256],126639:[[1593],256],126640:[[1601],256],126641:[[1589],256],126642:[[1602],256],126643:[[1585],256],126644:[[1588],256],126645:[[1578],256],126646:[[1579],256],126647:[[1582],256],126648:[[1584],256],126649:[[1590],256],126650:[[1592],256],126651:[[1594],256]},61696:{127232:[[48,46],256],127233:[[48,44],256],127234:[[49,44],256],127235:[[50,44],256],127236:[[51,44],256],127237:[[52,44],256],127238:[[53,44],256],127239:[[54,44],256],127240:[[55,44],256],127241:[[56,44],256],127242:[[57,44],256],127248:[[40,65,41],256],127249:[[40,66,41],256],127250:[[40,67,41],256],127251:[[40,68,41],256],127252:[[40,69,41],256],127253:[[40,70,41],256],127254:[[40,71,41],256],127255:[[40,72,41],256],127256:[[40,73,41],256],127257:[[40,74,41],256],127258:[[40,75,41],256],127259:[[40,76,41],256],127260:[[40,77,41],256],127261:[[40,78,41],256],127262:[[40,79,41],256],127263:[[40,80,41],256],127264:[[40,81,41],256],127265:[[40,82,41],256],127266:[[40,83,41],256],127267:[[40,84,41],256],127268:[[40,85,41],256],127269:[[40,86,41],256],127270:[[40,87,41],256],127271:[[40,88,41],256],127272:[[40,89,41],256],127273:[[40,90,41],256],127274:[[12308,83,12309],256],127275:[[67],256],127276:[[82],256],127277:[[67,68],256],127278:[[87,90],256],127280:[[65],256],127281:[[66],256],127282:[[67],256],127283:[[68],256],127284:[[69],256],127285:[[70],256],127286:[[71],256],127287:[[72],256],127288:[[73],256],127289:[[74],256],127290:[[75],256],127291:[[76],256],127292:[[77],256],127293:[[78],256],127294:[[79],256],127295:[[80],256],127296:[[81],256],127297:[[82],256],127298:[[83],256],127299:[[84],256],127300:[[85],256],127301:[[86],256],127302:[[87],256],127303:[[88],256],127304:[[89],256],127305:[[90],256],127306:[[72,86],256],127307:[[77,86],256],127308:[[83,68],256],127309:[[83,83],256],127310:[[80,80,86],256],127311:[[87,67],256],127338:[[77,67],256],127339:[[77,68],256],127376:[[68,74],256]},61952:{127488:[[12411,12363],256],127489:[[12467,12467],256],127490:[[12469],256],127504:[[25163],256],127505:[[23383],256],127506:[[21452],256],127507:[[12487],256],127508:[[20108],256],127509:[[22810],256],127510:[[35299],256],127511:[[22825],256],127512:[[20132],256],127513:[[26144],256],127514:[[28961],256],127515:[[26009],256],127516:[[21069],256],127517:[[24460],256],127518:[[20877],256],127519:[[26032],256],127520:[[21021],256],127521:[[32066],256],127522:[[29983],256],127523:[[36009],256],127524:[[22768],256],127525:[[21561],256],127526:[[28436],256],127527:[[25237],256],127528:[[25429],256],127529:[[19968],256],127530:[[19977],256],127531:[[36938],256],127532:[[24038],256],127533:[[20013],256],127534:[[21491],256],127535:[[25351],256],127536:[[36208],256],127537:[[25171],256],127538:[[31105],256],127539:[[31354],256],127540:[[21512],256],127541:[[28288],256],127542:[[26377],256],127543:[[26376],256],127544:[[30003],256],127545:[[21106],256],127546:[[21942],256],127552:[[12308,26412,12309],256],127553:[[12308,19977,12309],256],127554:[[12308,20108,12309],256],127555:[[12308,23433,12309],256],127556:[[12308,28857,12309],256],127557:[[12308,25171,12309],256],127558:[[12308,30423,12309],256],127559:[[12308,21213,12309],256],127560:[[12308,25943,12309],256],127568:[[24471],256],127569:[[21487],256]},63488:{194560:[[20029]],194561:[[20024]],194562:[[20033]],194563:[[131362]],194564:[[20320]],194565:[[20398]],194566:[[20411]],194567:[[20482]],194568:[[20602]],194569:[[20633]],194570:[[20711]],194571:[[20687]],194572:[[13470]],194573:[[132666]],194574:[[20813]],194575:[[20820]],194576:[[20836]],194577:[[20855]],194578:[[132380]],194579:[[13497]],194580:[[20839]],194581:[[20877]],194582:[[132427]],194583:[[20887]],194584:[[20900]],194585:[[20172]],194586:[[20908]],194587:[[20917]],194588:[[168415]],194589:[[20981]],194590:[[20995]],194591:[[13535]],194592:[[21051]],194593:[[21062]],194594:[[21106]],194595:[[21111]],194596:[[13589]],194597:[[21191]],194598:[[21193]],194599:[[21220]],194600:[[21242]],194601:[[21253]],194602:[[21254]],194603:[[21271]],194604:[[21321]],194605:[[21329]],194606:[[21338]],194607:[[21363]],194608:[[21373]],194609:[[21375]],194610:[[21375]],194611:[[21375]],194612:[[133676]],194613:[[28784]],194614:[[21450]],194615:[[21471]],194616:[[133987]],194617:[[21483]],194618:[[21489]],194619:[[21510]],194620:[[21662]],194621:[[21560]],194622:[[21576]],194623:[[21608]],194624:[[21666]],194625:[[21750]],194626:[[21776]],194627:[[21843]],194628:[[21859]],194629:[[21892]],194630:[[21892]],194631:[[21913]],194632:[[21931]],194633:[[21939]],194634:[[21954]],194635:[[22294]],194636:[[22022]],194637:[[22295]],194638:[[22097]],194639:[[22132]],194640:[[20999]],194641:[[22766]],194642:[[22478]],194643:[[22516]],194644:[[22541]],194645:[[22411]],194646:[[22578]],194647:[[22577]],194648:[[22700]],194649:[[136420]],194650:[[22770]],194651:[[22775]],194652:[[22790]],194653:[[22810]],194654:[[22818]],194655:[[22882]],194656:[[136872]],194657:[[136938]],194658:[[23020]],194659:[[23067]],194660:[[23079]],194661:[[23e3]],194662:[[23142]],194663:[[14062]],194664:[[14076]],194665:[[23304]],194666:[[23358]],194667:[[23358]],194668:[[137672]],194669:[[23491]],194670:[[23512]],194671:[[23527]],194672:[[23539]],194673:[[138008]],194674:[[23551]],194675:[[23558]],194676:[[24403]],194677:[[23586]],194678:[[14209]],194679:[[23648]],194680:[[23662]],194681:[[23744]],194682:[[23693]],194683:[[138724]],194684:[[23875]],194685:[[138726]],194686:[[23918]],194687:[[23915]],194688:[[23932]],194689:[[24033]],194690:[[24034]],194691:[[14383]],194692:[[24061]],194693:[[24104]],194694:[[24125]],194695:[[24169]],194696:[[14434]],194697:[[139651]],194698:[[14460]],194699:[[24240]],194700:[[24243]],194701:[[24246]],194702:[[24266]],194703:[[172946]],194704:[[24318]],194705:[[140081]],194706:[[140081]],194707:[[33281]],194708:[[24354]],194709:[[24354]],194710:[[14535]],194711:[[144056]],194712:[[156122]],194713:[[24418]],194714:[[24427]],194715:[[14563]],194716:[[24474]],194717:[[24525]],194718:[[24535]],194719:[[24569]],194720:[[24705]],194721:[[14650]],194722:[[14620]],194723:[[24724]],194724:[[141012]],194725:[[24775]],194726:[[24904]],194727:[[24908]],194728:[[24910]],194729:[[24908]],194730:[[24954]],194731:[[24974]],194732:[[25010]],194733:[[24996]],194734:[[25007]],194735:[[25054]],194736:[[25074]],194737:[[25078]],194738:[[25104]],194739:[[25115]],194740:[[25181]],194741:[[25265]],194742:[[25300]],194743:[[25424]],194744:[[142092]],194745:[[25405]],194746:[[25340]],194747:[[25448]],194748:[[25475]],194749:[[25572]],194750:[[142321]],194751:[[25634]],194752:[[25541]],194753:[[25513]],194754:[[14894]],194755:[[25705]],194756:[[25726]],194757:[[25757]],194758:[[25719]],194759:[[14956]],194760:[[25935]],194761:[[25964]],194762:[[143370]],194763:[[26083]],194764:[[26360]],194765:[[26185]],194766:[[15129]],194767:[[26257]],194768:[[15112]],194769:[[15076]],194770:[[20882]],194771:[[20885]],194772:[[26368]],194773:[[26268]],194774:[[32941]],194775:[[17369]],194776:[[26391]],194777:[[26395]],194778:[[26401]],194779:[[26462]],194780:[[26451]],194781:[[144323]],194782:[[15177]],194783:[[26618]],194784:[[26501]],194785:[[26706]],194786:[[26757]],194787:[[144493]],194788:[[26766]],194789:[[26655]],194790:[[26900]],194791:[[15261]],194792:[[26946]],194793:[[27043]],194794:[[27114]],194795:[[27304]],194796:[[145059]],194797:[[27355]],194798:[[15384]],194799:[[27425]],194800:[[145575]],194801:[[27476]],194802:[[15438]],194803:[[27506]],194804:[[27551]],194805:[[27578]],194806:[[27579]],194807:[[146061]],194808:[[138507]],194809:[[146170]],194810:[[27726]],194811:[[146620]],194812:[[27839]],194813:[[27853]],194814:[[27751]],194815:[[27926]]},63744:{63744:[[35912]],63745:[[26356]],63746:[[36554]],63747:[[36040]],63748:[[28369]],63749:[[20018]],63750:[[21477]],63751:[[40860]],63752:[[40860]],63753:[[22865]],63754:[[37329]],63755:[[21895]],63756:[[22856]],63757:[[25078]],63758:[[30313]],63759:[[32645]],63760:[[34367]],63761:[[34746]],63762:[[35064]],63763:[[37007]],63764:[[27138]],63765:[[27931]],63766:[[28889]],63767:[[29662]],63768:[[33853]],63769:[[37226]],63770:[[39409]],63771:[[20098]],63772:[[21365]],63773:[[27396]],63774:[[29211]],63775:[[34349]],63776:[[40478]],63777:[[23888]],63778:[[28651]],63779:[[34253]],63780:[[35172]],63781:[[25289]],63782:[[33240]],63783:[[34847]],63784:[[24266]],63785:[[26391]],63786:[[28010]],63787:[[29436]],63788:[[37070]],63789:[[20358]],63790:[[20919]],63791:[[21214]],63792:[[25796]],63793:[[27347]],63794:[[29200]],63795:[[30439]],63796:[[32769]],63797:[[34310]],63798:[[34396]],63799:[[36335]],63800:[[38706]],63801:[[39791]],63802:[[40442]],63803:[[30860]],63804:[[31103]],63805:[[32160]],63806:[[33737]],63807:[[37636]],63808:[[40575]],63809:[[35542]],63810:[[22751]],63811:[[24324]],63812:[[31840]],63813:[[32894]],63814:[[29282]],63815:[[30922]],63816:[[36034]],63817:[[38647]],63818:[[22744]],63819:[[23650]],63820:[[27155]],63821:[[28122]],63822:[[28431]],63823:[[32047]],63824:[[32311]],63825:[[38475]],63826:[[21202]],63827:[[32907]],63828:[[20956]],63829:[[20940]],63830:[[31260]],63831:[[32190]],63832:[[33777]],63833:[[38517]],63834:[[35712]],63835:[[25295]],63836:[[27138]],63837:[[35582]],63838:[[20025]],63839:[[23527]],63840:[[24594]],63841:[[29575]],63842:[[30064]],63843:[[21271]],63844:[[30971]],63845:[[20415]],63846:[[24489]],63847:[[19981]],63848:[[27852]],63849:[[25976]],63850:[[32034]],63851:[[21443]],63852:[[22622]],63853:[[30465]],63854:[[33865]],63855:[[35498]],63856:[[27578]],63857:[[36784]],63858:[[27784]],63859:[[25342]],63860:[[33509]],63861:[[25504]],63862:[[30053]],63863:[[20142]],63864:[[20841]],63865:[[20937]],63866:[[26753]],63867:[[31975]],63868:[[33391]],63869:[[35538]],63870:[[37327]],63871:[[21237]],63872:[[21570]],63873:[[22899]],63874:[[24300]],63875:[[26053]],63876:[[28670]],63877:[[31018]],63878:[[38317]],63879:[[39530]],63880:[[40599]],63881:[[40654]],63882:[[21147]],63883:[[26310]],63884:[[27511]],63885:[[36706]],63886:[[24180]],63887:[[24976]],63888:[[25088]],63889:[[25754]],63890:[[28451]],63891:[[29001]],63892:[[29833]],63893:[[31178]],63894:[[32244]],63895:[[32879]],63896:[[36646]],63897:[[34030]],63898:[[36899]],63899:[[37706]],63900:[[21015]],63901:[[21155]],63902:[[21693]],63903:[[28872]],63904:[[35010]],63905:[[35498]],63906:[[24265]],63907:[[24565]],63908:[[25467]],63909:[[27566]],63910:[[31806]],63911:[[29557]],63912:[[20196]],63913:[[22265]],63914:[[23527]],63915:[[23994]],63916:[[24604]],63917:[[29618]],63918:[[29801]],63919:[[32666]],63920:[[32838]],63921:[[37428]],63922:[[38646]],63923:[[38728]],63924:[[38936]],63925:[[20363]],63926:[[31150]],63927:[[37300]],63928:[[38584]],63929:[[24801]],63930:[[20102]],63931:[[20698]],63932:[[23534]],63933:[[23615]],63934:[[26009]],63935:[[27138]],63936:[[29134]],63937:[[30274]],63938:[[34044]],63939:[[36988]],63940:[[40845]],63941:[[26248]],63942:[[38446]],63943:[[21129]],63944:[[26491]],63945:[[26611]],63946:[[27969]],63947:[[28316]],63948:[[29705]],63949:[[30041]],63950:[[30827]],63951:[[32016]],63952:[[39006]],63953:[[20845]],63954:[[25134]],63955:[[38520]],63956:[[20523]],63957:[[23833]],63958:[[28138]],63959:[[36650]],63960:[[24459]],63961:[[24900]],63962:[[26647]],63963:[[29575]],63964:[[38534]],63965:[[21033]],63966:[[21519]],63967:[[23653]],63968:[[26131]],63969:[[26446]],63970:[[26792]],63971:[[27877]],63972:[[29702]],63973:[[30178]],63974:[[32633]],63975:[[35023]],63976:[[35041]],63977:[[37324]],63978:[[38626]],63979:[[21311]],63980:[[28346]],63981:[[21533]],63982:[[29136]],63983:[[29848]],63984:[[34298]],63985:[[38563]],63986:[[40023]],63987:[[40607]],63988:[[26519]],63989:[[28107]],63990:[[33256]],63991:[[31435]],63992:[[31520]],63993:[[31890]],63994:[[29376]],63995:[[28825]],63996:[[35672]],63997:[[20160]],63998:[[33590]],63999:[[21050]],194816:[[27966]],194817:[[28023]],194818:[[27969]],194819:[[28009]],194820:[[28024]],194821:[[28037]],194822:[[146718]],194823:[[27956]],194824:[[28207]],194825:[[28270]],194826:[[15667]],194827:[[28363]],194828:[[28359]],194829:[[147153]],194830:[[28153]],194831:[[28526]],194832:[[147294]],194833:[[147342]],194834:[[28614]],194835:[[28729]],194836:[[28702]],194837:[[28699]],194838:[[15766]],194839:[[28746]],194840:[[28797]],194841:[[28791]],194842:[[28845]],194843:[[132389]],194844:[[28997]],194845:[[148067]],194846:[[29084]],194847:[[148395]],194848:[[29224]],194849:[[29237]],194850:[[29264]],194851:[[149e3]],194852:[[29312]],194853:[[29333]],194854:[[149301]],194855:[[149524]],194856:[[29562]],194857:[[29579]],194858:[[16044]],194859:[[29605]],194860:[[16056]],194861:[[16056]],194862:[[29767]],194863:[[29788]],194864:[[29809]],194865:[[29829]],194866:[[29898]],194867:[[16155]],194868:[[29988]],194869:[[150582]],194870:[[30014]],194871:[[150674]],194872:[[30064]],194873:[[139679]],194874:[[30224]],194875:[[151457]],194876:[[151480]],194877:[[151620]],194878:[[16380]],194879:[[16392]],194880:[[30452]],194881:[[151795]],194882:[[151794]],194883:[[151833]],194884:[[151859]],194885:[[30494]],194886:[[30495]],194887:[[30495]],194888:[[30538]],194889:[[16441]],194890:[[30603]],194891:[[16454]],194892:[[16534]],194893:[[152605]],194894:[[30798]],194895:[[30860]],194896:[[30924]],194897:[[16611]],194898:[[153126]],194899:[[31062]],194900:[[153242]],194901:[[153285]],194902:[[31119]],194903:[[31211]],194904:[[16687]],194905:[[31296]],194906:[[31306]],194907:[[31311]],194908:[[153980]],194909:[[154279]],194910:[[154279]],194911:[[31470]],194912:[[16898]],194913:[[154539]],194914:[[31686]],194915:[[31689]],194916:[[16935]],194917:[[154752]],194918:[[31954]],194919:[[17056]],194920:[[31976]],194921:[[31971]],194922:[[32e3]],194923:[[155526]],194924:[[32099]],194925:[[17153]],194926:[[32199]],194927:[[32258]],194928:[[32325]],194929:[[17204]],194930:[[156200]],194931:[[156231]],194932:[[17241]],194933:[[156377]],194934:[[32634]],194935:[[156478]],194936:[[32661]],194937:[[32762]],194938:[[32773]],194939:[[156890]],194940:[[156963]],194941:[[32864]],194942:[[157096]],194943:[[32880]],194944:[[144223]],194945:[[17365]],194946:[[32946]],194947:[[33027]],194948:[[17419]],194949:[[33086]],194950:[[23221]],194951:[[157607]],194952:[[157621]],194953:[[144275]],194954:[[144284]],194955:[[33281]],194956:[[33284]],194957:[[36766]],194958:[[17515]],194959:[[33425]],194960:[[33419]],194961:[[33437]],194962:[[21171]],194963:[[33457]],194964:[[33459]],194965:[[33469]],194966:[[33510]],194967:[[158524]],194968:[[33509]],194969:[[33565]],194970:[[33635]],194971:[[33709]],194972:[[33571]],194973:[[33725]],194974:[[33767]],194975:[[33879]],194976:[[33619]],194977:[[33738]],194978:[[33740]],194979:[[33756]],194980:[[158774]],194981:[[159083]],194982:[[158933]],194983:[[17707]],194984:[[34033]],194985:[[34035]],194986:[[34070]],194987:[[160714]],194988:[[34148]],194989:[[159532]],194990:[[17757]],194991:[[17761]],194992:[[159665]],194993:[[159954]],194994:[[17771]],194995:[[34384]],194996:[[34396]],194997:[[34407]],194998:[[34409]],194999:[[34473]],195e3:[[34440]],195001:[[34574]],195002:[[34530]],195003:[[34681]],195004:[[34600]],195005:[[34667]],195006:[[34694]],195007:[[17879]],195008:[[34785]],195009:[[34817]],195010:[[17913]],195011:[[34912]],195012:[[34915]],195013:[[161383]],195014:[[35031]],195015:[[35038]],195016:[[17973]],195017:[[35066]],195018:[[13499]],195019:[[161966]],195020:[[162150]],195021:[[18110]],195022:[[18119]],195023:[[35488]],195024:[[35565]],195025:[[35722]],195026:[[35925]],195027:[[162984]],195028:[[36011]],195029:[[36033]],195030:[[36123]],195031:[[36215]],195032:[[163631]],195033:[[133124]],195034:[[36299]],195035:[[36284]],195036:[[36336]],195037:[[133342]],195038:[[36564]],195039:[[36664]],195040:[[165330]],195041:[[165357]],195042:[[37012]],195043:[[37105]],195044:[[37137]],195045:[[165678]],195046:[[37147]],195047:[[37432]],195048:[[37591]],195049:[[37592]],195050:[[37500]],195051:[[37881]],195052:[[37909]],195053:[[166906]],195054:[[38283]],195055:[[18837]],195056:[[38327]],195057:[[167287]],195058:[[18918]],195059:[[38595]],195060:[[23986]],195061:[[38691]],195062:[[168261]],195063:[[168474]],195064:[[19054]],195065:[[19062]],195066:[[38880]],195067:[[168970]],195068:[[19122]],195069:[[169110]],195070:[[38923]],195071:[[38923]]},64e3:{64e3:[[20999]],64001:[[24230]],64002:[[25299]],64003:[[31958]],64004:[[23429]],64005:[[27934]],64006:[[26292]],64007:[[36667]],64008:[[34892]],64009:[[38477]],64010:[[35211]],64011:[[24275]],64012:[[20800]],64013:[[21952]],64016:[[22618]],64018:[[26228]],64021:[[20958]],64022:[[29482]],64023:[[30410]],64024:[[31036]],64025:[[31070]],64026:[[31077]],64027:[[31119]],64028:[[38742]],64029:[[31934]],64030:[[32701]],64032:[[34322]],64034:[[35576]],64037:[[36920]],64038:[[37117]],64042:[[39151]],64043:[[39164]],64044:[[39208]],64045:[[40372]],64046:[[37086]],64047:[[38583]],64048:[[20398]],64049:[[20711]],64050:[[20813]],64051:[[21193]],64052:[[21220]],64053:[[21329]],64054:[[21917]],64055:[[22022]],64056:[[22120]],64057:[[22592]],64058:[[22696]],64059:[[23652]],64060:[[23662]],64061:[[24724]],64062:[[24936]],64063:[[24974]],64064:[[25074]],64065:[[25935]],64066:[[26082]],64067:[[26257]],64068:[[26757]],64069:[[28023]],64070:[[28186]],64071:[[28450]],64072:[[29038]],64073:[[29227]],64074:[[29730]],64075:[[30865]],64076:[[31038]],64077:[[31049]],64078:[[31048]],64079:[[31056]],64080:[[31062]],64081:[[31069]],64082:[[31117]],64083:[[31118]],64084:[[31296]],64085:[[31361]],64086:[[31680]],64087:[[32244]],64088:[[32265]],64089:[[32321]],64090:[[32626]],64091:[[32773]],64092:[[33261]],64093:[[33401]],64094:[[33401]],64095:[[33879]],64096:[[35088]],64097:[[35222]],64098:[[35585]],64099:[[35641]],64100:[[36051]],64101:[[36104]],64102:[[36790]],64103:[[36920]],64104:[[38627]],64105:[[38911]],64106:[[38971]],64107:[[24693]],64108:[[148206]],64109:[[33304]],64112:[[20006]],64113:[[20917]],64114:[[20840]],64115:[[20352]],64116:[[20805]],64117:[[20864]],64118:[[21191]],64119:[[21242]],64120:[[21917]],64121:[[21845]],64122:[[21913]],64123:[[21986]],64124:[[22618]],64125:[[22707]],64126:[[22852]],64127:[[22868]],64128:[[23138]],64129:[[23336]],64130:[[24274]],64131:[[24281]],64132:[[24425]],64133:[[24493]],64134:[[24792]],64135:[[24910]],64136:[[24840]],64137:[[24974]],64138:[[24928]],64139:[[25074]],64140:[[25140]],64141:[[25540]],64142:[[25628]],64143:[[25682]],64144:[[25942]],64145:[[26228]],64146:[[26391]],64147:[[26395]],64148:[[26454]],64149:[[27513]],64150:[[27578]],64151:[[27969]],64152:[[28379]],64153:[[28363]],64154:[[28450]],64155:[[28702]],64156:[[29038]],64157:[[30631]],64158:[[29237]],64159:[[29359]],64160:[[29482]],64161:[[29809]],64162:[[29958]],64163:[[30011]],64164:[[30237]],64165:[[30239]],64166:[[30410]],64167:[[30427]],64168:[[30452]],64169:[[30538]],64170:[[30528]],64171:[[30924]],64172:[[31409]],64173:[[31680]],64174:[[31867]],64175:[[32091]],64176:[[32244]],64177:[[32574]],64178:[[32773]],64179:[[33618]],64180:[[33775]],64181:[[34681]],64182:[[35137]],64183:[[35206]],64184:[[35222]],64185:[[35519]],64186:[[35576]],64187:[[35531]],64188:[[35585]],64189:[[35582]],64190:[[35565]],64191:[[35641]],64192:[[35722]],64193:[[36104]],64194:[[36664]],64195:[[36978]],64196:[[37273]],64197:[[37494]],64198:[[38524]],64199:[[38627]],64200:[[38742]],64201:[[38875]],64202:[[38911]],64203:[[38923]],64204:[[38971]],64205:[[39698]],64206:[[40860]],64207:[[141386]],64208:[[141380]],64209:[[144341]],64210:[[15261]],64211:[[16408]],64212:[[16441]],64213:[[152137]],64214:[[154832]],64215:[[163539]],64216:[[40771]],64217:[[40846]],195072:[[38953]],195073:[[169398]],195074:[[39138]],195075:[[19251]],195076:[[39209]],195077:[[39335]],195078:[[39362]],195079:[[39422]],195080:[[19406]],195081:[[170800]],195082:[[39698]],195083:[[4e4]],195084:[[40189]],195085:[[19662]],195086:[[19693]],195087:[[40295]],195088:[[172238]],195089:[[19704]],195090:[[172293]],195091:[[172558]],195092:[[172689]],195093:[[40635]],195094:[[19798]],195095:[[40697]],195096:[[40702]],195097:[[40709]],195098:[[40719]],195099:[[40726]],195100:[[40763]],195101:[[173568]]},64256:{64256:[[102,102],256],64257:[[102,105],256],64258:[[102,108],256],64259:[[102,102,105],256],64260:[[102,102,108],256],64261:[[383,116],256],64262:[[115,116],256],64275:[[1396,1398],256],64276:[[1396,1381],256],64277:[[1396,1387],256],64278:[[1406,1398],256],64279:[[1396,1389],256],64285:[[1497,1460],512],64286:[,26],64287:[[1522,1463],512],64288:[[1506],256],64289:[[1488],256],64290:[[1491],256],64291:[[1492],256],64292:[[1499],256],64293:[[1500],256],64294:[[1501],256],64295:[[1512],256],64296:[[1514],256],64297:[[43],256],64298:[[1513,1473],512],64299:[[1513,1474],512],64300:[[64329,1473],512],64301:[[64329,1474],512],64302:[[1488,1463],512],64303:[[1488,1464],512],64304:[[1488,1468],512],64305:[[1489,1468],512],64306:[[1490,1468],512],64307:[[1491,1468],512],64308:[[1492,1468],512],64309:[[1493,1468],512],64310:[[1494,1468],512],64312:[[1496,1468],512],64313:[[1497,1468],512],64314:[[1498,1468],512],64315:[[1499,1468],512],64316:[[1500,1468],512],64318:[[1502,1468],512],64320:[[1504,1468],512],64321:[[1505,1468],512],64323:[[1507,1468],512],64324:[[1508,1468],512],64326:[[1510,1468],512],64327:[[1511,1468],512],64328:[[1512,1468],512],64329:[[1513,1468],512],64330:[[1514,1468],512],64331:[[1493,1465],512],64332:[[1489,1471],512],64333:[[1499,1471],512],64334:[[1508,1471],512],64335:[[1488,1500],256],64336:[[1649],256],64337:[[1649],256],64338:[[1659],256],64339:[[1659],256],64340:[[1659],256],64341:[[1659],256],64342:[[1662],256],64343:[[1662],256],64344:[[1662],256],64345:[[1662],256],64346:[[1664],256],64347:[[1664],256],64348:[[1664],256],64349:[[1664],256],64350:[[1658],256],64351:[[1658],256],64352:[[1658],256],64353:[[1658],256],64354:[[1663],256],64355:[[1663],256],64356:[[1663],256],64357:[[1663],256],64358:[[1657],256],64359:[[1657],256],64360:[[1657],256],64361:[[1657],256],64362:[[1700],256],64363:[[1700],256],64364:[[1700],256],64365:[[1700],256],64366:[[1702],256],64367:[[1702],256],64368:[[1702],256],64369:[[1702],256],64370:[[1668],256],64371:[[1668],256],64372:[[1668],256],64373:[[1668],256],64374:[[1667],256],64375:[[1667],256],64376:[[1667],256],64377:[[1667],256],64378:[[1670],256],64379:[[1670],256],64380:[[1670],256],64381:[[1670],256],64382:[[1671],256],64383:[[1671],256],64384:[[1671],256],64385:[[1671],256],64386:[[1677],256],64387:[[1677],256],64388:[[1676],256],64389:[[1676],256],64390:[[1678],256],64391:[[1678],256],64392:[[1672],256],64393:[[1672],256],64394:[[1688],256],64395:[[1688],256],64396:[[1681],256],64397:[[1681],256],64398:[[1705],256],64399:[[1705],256],64400:[[1705],256],64401:[[1705],256],64402:[[1711],256],64403:[[1711],256],64404:[[1711],256],64405:[[1711],256],64406:[[1715],256],64407:[[1715],256],64408:[[1715],256],64409:[[1715],256],64410:[[1713],256],64411:[[1713],256],64412:[[1713],256],64413:[[1713],256],64414:[[1722],256],64415:[[1722],256],64416:[[1723],256],64417:[[1723],256],64418:[[1723],256],64419:[[1723],256],64420:[[1728],256],64421:[[1728],256],64422:[[1729],256],64423:[[1729],256],64424:[[1729],256],64425:[[1729],256],64426:[[1726],256],64427:[[1726],256],64428:[[1726],256],64429:[[1726],256],64430:[[1746],256],64431:[[1746],256],64432:[[1747],256],64433:[[1747],256],64467:[[1709],256],64468:[[1709],256],64469:[[1709],256],64470:[[1709],256],64471:[[1735],256],64472:[[1735],256],64473:[[1734],256],64474:[[1734],256],64475:[[1736],256],64476:[[1736],256],64477:[[1655],256],64478:[[1739],256],64479:[[1739],256],64480:[[1733],256],64481:[[1733],256],64482:[[1737],256],64483:[[1737],256],64484:[[1744],256],64485:[[1744],256],64486:[[1744],256],64487:[[1744],256],64488:[[1609],256],64489:[[1609],256],64490:[[1574,1575],256],64491:[[1574,1575],256],64492:[[1574,1749],256],64493:[[1574,1749],256],64494:[[1574,1608],256],64495:[[1574,1608],256],64496:[[1574,1735],256],64497:[[1574,1735],256],64498:[[1574,1734],256],64499:[[1574,1734],256],64500:[[1574,1736],256],64501:[[1574,1736],256],64502:[[1574,1744],256],64503:[[1574,1744],256],64504:[[1574,1744],256],64505:[[1574,1609],256],64506:[[1574,1609],256],64507:[[1574,1609],256],64508:[[1740],256],64509:[[1740],256],64510:[[1740],256],64511:[[1740],256]},64512:{64512:[[1574,1580],256],64513:[[1574,1581],256],64514:[[1574,1605],256],64515:[[1574,1609],256],64516:[[1574,1610],256],64517:[[1576,1580],256],64518:[[1576,1581],256],64519:[[1576,1582],256],64520:[[1576,1605],256],64521:[[1576,1609],256],64522:[[1576,1610],256],64523:[[1578,1580],256],64524:[[1578,1581],256],64525:[[1578,1582],256],64526:[[1578,1605],256],64527:[[1578,1609],256],64528:[[1578,1610],256],64529:[[1579,1580],256],64530:[[1579,1605],256],64531:[[1579,1609],256],64532:[[1579,1610],256],64533:[[1580,1581],256],64534:[[1580,1605],256],64535:[[1581,1580],256],64536:[[1581,1605],256],64537:[[1582,1580],256],64538:[[1582,1581],256],64539:[[1582,1605],256],64540:[[1587,1580],256],64541:[[1587,1581],256],64542:[[1587,1582],256],64543:[[1587,1605],256],64544:[[1589,1581],256],64545:[[1589,1605],256],64546:[[1590,1580],256],64547:[[1590,1581],256],64548:[[1590,1582],256],64549:[[1590,1605],256],64550:[[1591,1581],256],64551:[[1591,1605],256],64552:[[1592,1605],256],64553:[[1593,1580],256],64554:[[1593,1605],256],64555:[[1594,1580],256],64556:[[1594,1605],256],64557:[[1601,1580],256],64558:[[1601,1581],256],64559:[[1601,1582],256],64560:[[1601,1605],256],64561:[[1601,1609],256],64562:[[1601,1610],256],64563:[[1602,1581],256],64564:[[1602,1605],256],64565:[[1602,1609],256],64566:[[1602,1610],256],64567:[[1603,1575],256],64568:[[1603,1580],256],64569:[[1603,1581],256],64570:[[1603,1582],256],64571:[[1603,1604],256],64572:[[1603,1605],256],64573:[[1603,1609],256],64574:[[1603,1610],256],64575:[[1604,1580],256],64576:[[1604,1581],256],64577:[[1604,1582],256],64578:[[1604,1605],256],64579:[[1604,1609],256],64580:[[1604,1610],256],64581:[[1605,1580],256],64582:[[1605,1581],256],64583:[[1605,1582],256],64584:[[1605,1605],256],64585:[[1605,1609],256],64586:[[1605,1610],256],64587:[[1606,1580],256],64588:[[1606,1581],256],64589:[[1606,1582],256],64590:[[1606,1605],256],64591:[[1606,1609],256],64592:[[1606,1610],256],64593:[[1607,1580],256],64594:[[1607,1605],256],64595:[[1607,1609],256],64596:[[1607,1610],256],64597:[[1610,1580],256],64598:[[1610,1581],256],64599:[[1610,1582],256],64600:[[1610,1605],256],64601:[[1610,1609],256],64602:[[1610,1610],256],64603:[[1584,1648],256],64604:[[1585,1648],256],64605:[[1609,1648],256],64606:[[32,1612,1617],256],64607:[[32,1613,1617],256],64608:[[32,1614,1617],256],64609:[[32,1615,1617],256],64610:[[32,1616,1617],256],64611:[[32,1617,1648],256],64612:[[1574,1585],256],64613:[[1574,1586],256],64614:[[1574,1605],256],64615:[[1574,1606],256],64616:[[1574,1609],256],64617:[[1574,1610],256],64618:[[1576,1585],256],64619:[[1576,1586],256],64620:[[1576,1605],256],64621:[[1576,1606],256],64622:[[1576,1609],256],64623:[[1576,1610],256],64624:[[1578,1585],256],64625:[[1578,1586],256],64626:[[1578,1605],256],64627:[[1578,1606],256],64628:[[1578,1609],256],64629:[[1578,1610],256],64630:[[1579,1585],256],64631:[[1579,1586],256],64632:[[1579,1605],256],64633:[[1579,1606],256],64634:[[1579,1609],256],64635:[[1579,1610],256],64636:[[1601,1609],256],64637:[[1601,1610],256],64638:[[1602,1609],256],64639:[[1602,1610],256],64640:[[1603,1575],256],64641:[[1603,1604],256],64642:[[1603,1605],256],64643:[[1603,1609],256],64644:[[1603,1610],256],64645:[[1604,1605],256],64646:[[1604,1609],256],64647:[[1604,1610],256],64648:[[1605,1575],256],64649:[[1605,1605],256],64650:[[1606,1585],256],64651:[[1606,1586],256],64652:[[1606,1605],256],64653:[[1606,1606],256],64654:[[1606,1609],256],64655:[[1606,1610],256],64656:[[1609,1648],256],64657:[[1610,1585],256],64658:[[1610,1586],256],64659:[[1610,1605],256],64660:[[1610,1606],256],64661:[[1610,1609],256],64662:[[1610,1610],256],64663:[[1574,1580],256],64664:[[1574,1581],256],64665:[[1574,1582],256],64666:[[1574,1605],256],64667:[[1574,1607],256],64668:[[1576,1580],256],64669:[[1576,1581],256],64670:[[1576,1582],256],64671:[[1576,1605],256],64672:[[1576,1607],256],64673:[[1578,1580],256],64674:[[1578,1581],256],64675:[[1578,1582],256],64676:[[1578,1605],256],64677:[[1578,1607],256],64678:[[1579,1605],256],64679:[[1580,1581],256],64680:[[1580,1605],256],64681:[[1581,1580],256],64682:[[1581,1605],256],64683:[[1582,1580],256],64684:[[1582,1605],256],64685:[[1587,1580],256],64686:[[1587,1581],256],64687:[[1587,1582],256],64688:[[1587,1605],256],64689:[[1589,1581],256],64690:[[1589,1582],256],64691:[[1589,1605],256],64692:[[1590,1580],256],64693:[[1590,1581],256],64694:[[1590,1582],256],64695:[[1590,1605],256],64696:[[1591,1581],256],64697:[[1592,1605],256],64698:[[1593,1580],256],64699:[[1593,1605],256],64700:[[1594,1580],256],64701:[[1594,1605],256],64702:[[1601,1580],256],64703:[[1601,1581],256],64704:[[1601,1582],256],64705:[[1601,1605],256],64706:[[1602,1581],256],64707:[[1602,1605],256],64708:[[1603,1580],256],64709:[[1603,1581],256],64710:[[1603,1582],256],64711:[[1603,1604],256],64712:[[1603,1605],256],64713:[[1604,1580],256],64714:[[1604,1581],256],64715:[[1604,1582],256],64716:[[1604,1605],256],64717:[[1604,1607],256],64718:[[1605,1580],256],64719:[[1605,1581],256],64720:[[1605,1582],256],64721:[[1605,1605],256],64722:[[1606,1580],256],64723:[[1606,1581],256],64724:[[1606,1582],256],64725:[[1606,1605],256],64726:[[1606,1607],256],64727:[[1607,1580],256],64728:[[1607,1605],256],64729:[[1607,1648],256],64730:[[1610,1580],256],64731:[[1610,1581],256],64732:[[1610,1582],256],64733:[[1610,1605],256],64734:[[1610,1607],256],64735:[[1574,1605],256],64736:[[1574,1607],256],64737:[[1576,1605],256],64738:[[1576,1607],256],64739:[[1578,1605],256],64740:[[1578,1607],256],64741:[[1579,1605],256],64742:[[1579,1607],256],64743:[[1587,1605],256],64744:[[1587,1607],256],64745:[[1588,1605],256],64746:[[1588,1607],256],64747:[[1603,1604],256],64748:[[1603,1605],256],64749:[[1604,1605],256],64750:[[1606,1605],256],64751:[[1606,1607],256],64752:[[1610,1605],256],64753:[[1610,1607],256],64754:[[1600,1614,1617],256],64755:[[1600,1615,1617],256],64756:[[1600,1616,1617],256],64757:[[1591,1609],256],64758:[[1591,1610],256],64759:[[1593,1609],256],64760:[[1593,1610],256],64761:[[1594,1609],256],64762:[[1594,1610],256],64763:[[1587,1609],256],64764:[[1587,1610],256],64765:[[1588,1609],256],64766:[[1588,1610],256],64767:[[1581,1609],256]},64768:{64768:[[1581,1610],256],64769:[[1580,1609],256],64770:[[1580,1610],256],64771:[[1582,1609],256],64772:[[1582,1610],256],64773:[[1589,1609],256],64774:[[1589,1610],256],64775:[[1590,1609],256],64776:[[1590,1610],256],64777:[[1588,1580],256],64778:[[1588,1581],256],64779:[[1588,1582],256],64780:[[1588,1605],256],64781:[[1588,1585],256],64782:[[1587,1585],256],64783:[[1589,1585],256],64784:[[1590,1585],256],64785:[[1591,1609],256],64786:[[1591,1610],256],64787:[[1593,1609],256],64788:[[1593,1610],256],64789:[[1594,1609],256],64790:[[1594,1610],256],64791:[[1587,1609],256],64792:[[1587,1610],256],64793:[[1588,1609],256],64794:[[1588,1610],256],64795:[[1581,1609],256],64796:[[1581,1610],256],64797:[[1580,1609],256],64798:[[1580,1610],256],64799:[[1582,1609],256],64800:[[1582,1610],256],64801:[[1589,1609],256],64802:[[1589,1610],256],64803:[[1590,1609],256],64804:[[1590,1610],256],64805:[[1588,1580],256],64806:[[1588,1581],256],64807:[[1588,1582],256],64808:[[1588,1605],256],64809:[[1588,1585],256],64810:[[1587,1585],256],64811:[[1589,1585],256],64812:[[1590,1585],256],64813:[[1588,1580],256],64814:[[1588,1581],256],64815:[[1588,1582],256],64816:[[1588,1605],256],64817:[[1587,1607],256],64818:[[1588,1607],256],64819:[[1591,1605],256],64820:[[1587,1580],256],64821:[[1587,1581],256],64822:[[1587,1582],256],64823:[[1588,1580],256],64824:[[1588,1581],256],64825:[[1588,1582],256],64826:[[1591,1605],256],64827:[[1592,1605],256],64828:[[1575,1611],256],64829:[[1575,1611],256],64848:[[1578,1580,1605],256],64849:[[1578,1581,1580],256],64850:[[1578,1581,1580],256],64851:[[1578,1581,1605],256],64852:[[1578,1582,1605],256],64853:[[1578,1605,1580],256],64854:[[1578,1605,1581],256],64855:[[1578,1605,1582],256],64856:[[1580,1605,1581],256],64857:[[1580,1605,1581],256],64858:[[1581,1605,1610],256],64859:[[1581,1605,1609],256],64860:[[1587,1581,1580],256],64861:[[1587,1580,1581],256],64862:[[1587,1580,1609],256],64863:[[1587,1605,1581],256],64864:[[1587,1605,1581],256],64865:[[1587,1605,1580],256],64866:[[1587,1605,1605],256],64867:[[1587,1605,1605],256],64868:[[1589,1581,1581],256],64869:[[1589,1581,1581],256],64870:[[1589,1605,1605],256],64871:[[1588,1581,1605],256],64872:[[1588,1581,1605],256],64873:[[1588,1580,1610],256],64874:[[1588,1605,1582],256],64875:[[1588,1605,1582],256],64876:[[1588,1605,1605],256],64877:[[1588,1605,1605],256],64878:[[1590,1581,1609],256],64879:[[1590,1582,1605],256],64880:[[1590,1582,1605],256],64881:[[1591,1605,1581],256],64882:[[1591,1605,1581],256],64883:[[1591,1605,1605],256],64884:[[1591,1605,1610],256],64885:[[1593,1580,1605],256],64886:[[1593,1605,1605],256],64887:[[1593,1605,1605],256],64888:[[1593,1605,1609],256],64889:[[1594,1605,1605],256],64890:[[1594,1605,1610],256],64891:[[1594,1605,1609],256],64892:[[1601,1582,1605],256],64893:[[1601,1582,1605],256],64894:[[1602,1605,1581],256],64895:[[1602,1605,1605],256],64896:[[1604,1581,1605],256],64897:[[1604,1581,1610],256],64898:[[1604,1581,1609],256],64899:[[1604,1580,1580],256],64900:[[1604,1580,1580],256],64901:[[1604,1582,1605],256],64902:[[1604,1582,1605],256],64903:[[1604,1605,1581],256],64904:[[1604,1605,1581],256],64905:[[1605,1581,1580],256],64906:[[1605,1581,1605],256],64907:[[1605,1581,1610],256],64908:[[1605,1580,1581],256],64909:[[1605,1580,1605],256],64910:[[1605,1582,1580],256],64911:[[1605,1582,1605],256],64914:[[1605,1580,1582],256],64915:[[1607,1605,1580],256],64916:[[1607,1605,1605],256],64917:[[1606,1581,1605],256],64918:[[1606,1581,1609],256],64919:[[1606,1580,1605],256],64920:[[1606,1580,1605],256],64921:[[1606,1580,1609],256],64922:[[1606,1605,1610],256],64923:[[1606,1605,1609],256],64924:[[1610,1605,1605],256],64925:[[1610,1605,1605],256],64926:[[1576,1582,1610],256],64927:[[1578,1580,1610],256],64928:[[1578,1580,1609],256],64929:[[1578,1582,1610],256],64930:[[1578,1582,1609],256],64931:[[1578,1605,1610],256],64932:[[1578,1605,1609],256],64933:[[1580,1605,1610],256],64934:[[1580,1581,1609],256],64935:[[1580,1605,1609],256],64936:[[1587,1582,1609],256],64937:[[1589,1581,1610],256],64938:[[1588,1581,1610],256],64939:[[1590,1581,1610],256],64940:[[1604,1580,1610],256],64941:[[1604,1605,1610],256],64942:[[1610,1581,1610],256],64943:[[1610,1580,1610],256],64944:[[1610,1605,1610],256],64945:[[1605,1605,1610],256],64946:[[1602,1605,1610],256],64947:[[1606,1581,1610],256],64948:[[1602,1605,1581],256],64949:[[1604,1581,1605],256],64950:[[1593,1605,1610],256],64951:[[1603,1605,1610],256],64952:[[1606,1580,1581],256],64953:[[1605,1582,1610],256],64954:[[1604,1580,1605],256],64955:[[1603,1605,1605],256],64956:[[1604,1580,1605],256],64957:[[1606,1580,1581],256],64958:[[1580,1581,1610],256],64959:[[1581,1580,1610],256],64960:[[1605,1580,1610],256],64961:[[1601,1605,1610],256],64962:[[1576,1581,1610],256],64963:[[1603,1605,1605],256],64964:[[1593,1580,1605],256],64965:[[1589,1605,1605],256],64966:[[1587,1582,1610],256],64967:[[1606,1580,1610],256],65008:[[1589,1604,1746],256],65009:[[1602,1604,1746],256],65010:[[1575,1604,1604,1607],256],65011:[[1575,1603,1576,1585],256],65012:[[1605,1581,1605,1583],256],65013:[[1589,1604,1593,1605],256],65014:[[1585,1587,1608,1604],256],65015:[[1593,1604,1610,1607],256],65016:[[1608,1587,1604,1605],256],65017:[[1589,1604,1609],256],65018:[[1589,1604,1609,32,1575,1604,1604,1607,32,1593,1604,1610,1607,32,1608,1587,1604,1605],256],65019:[[1580,1604,32,1580,1604,1575,1604,1607],256],65020:[[1585,1740,1575,1604],256]},65024:{65040:[[44],256],65041:[[12289],256],65042:[[12290],256],65043:[[58],256],65044:[[59],256],65045:[[33],256],65046:[[63],256],65047:[[12310],256],65048:[[12311],256],65049:[[8230],256],65056:[,230],65057:[,230],65058:[,230],65059:[,230],65060:[,230],65061:[,230],65062:[,230],65063:[,220],65064:[,220],65065:[,220],65066:[,220],65067:[,220],65068:[,220],65069:[,220],65072:[[8229],256],65073:[[8212],256],65074:[[8211],256],65075:[[95],256],65076:[[95],256],65077:[[40],256],65078:[[41],256],65079:[[123],256],65080:[[125],256],65081:[[12308],256],65082:[[12309],256],65083:[[12304],256],65084:[[12305],256],65085:[[12298],256],65086:[[12299],256],65087:[[12296],256],65088:[[12297],256],65089:[[12300],256],65090:[[12301],256],65091:[[12302],256],65092:[[12303],256],65095:[[91],256],65096:[[93],256],65097:[[8254],256],65098:[[8254],256],65099:[[8254],256],65100:[[8254],256],65101:[[95],256],65102:[[95],256],65103:[[95],256],65104:[[44],256],65105:[[12289],256],65106:[[46],256],65108:[[59],256],65109:[[58],256],65110:[[63],256],65111:[[33],256],65112:[[8212],256],65113:[[40],256],65114:[[41],256],65115:[[123],256],65116:[[125],256],65117:[[12308],256],65118:[[12309],256],65119:[[35],256],65120:[[38],256],65121:[[42],256],65122:[[43],256],65123:[[45],256],65124:[[60],256],65125:[[62],256],65126:[[61],256],65128:[[92],256],65129:[[36],256],65130:[[37],256],65131:[[64],256],65136:[[32,1611],256],65137:[[1600,1611],256],65138:[[32,1612],256],65140:[[32,1613],256],65142:[[32,1614],256],65143:[[1600,1614],256],65144:[[32,1615],256],65145:[[1600,1615],256],65146:[[32,1616],256],65147:[[1600,1616],256],65148:[[32,1617],256],65149:[[1600,1617],256],65150:[[32,1618],256],65151:[[1600,1618],256],65152:[[1569],256],65153:[[1570],256],65154:[[1570],256],65155:[[1571],256],65156:[[1571],256],65157:[[1572],256],65158:[[1572],256],65159:[[1573],256],65160:[[1573],256],65161:[[1574],256],65162:[[1574],256],65163:[[1574],256],65164:[[1574],256],65165:[[1575],256],65166:[[1575],256],65167:[[1576],256],65168:[[1576],256],65169:[[1576],256],65170:[[1576],256],65171:[[1577],256],65172:[[1577],256],65173:[[1578],256],65174:[[1578],256],65175:[[1578],256],65176:[[1578],256],65177:[[1579],256],65178:[[1579],256],65179:[[1579],256],65180:[[1579],256],65181:[[1580],256],65182:[[1580],256],65183:[[1580],256],65184:[[1580],256],65185:[[1581],256],65186:[[1581],256],65187:[[1581],256],65188:[[1581],256],65189:[[1582],256],65190:[[1582],256],65191:[[1582],256],65192:[[1582],256],65193:[[1583],256],65194:[[1583],256],65195:[[1584],256],65196:[[1584],256],65197:[[1585],256],65198:[[1585],256],65199:[[1586],256],65200:[[1586],256],65201:[[1587],256],65202:[[1587],256],65203:[[1587],256],65204:[[1587],256],65205:[[1588],256],65206:[[1588],256],65207:[[1588],256],65208:[[1588],256],65209:[[1589],256],65210:[[1589],256],65211:[[1589],256],65212:[[1589],256],65213:[[1590],256],65214:[[1590],256],65215:[[1590],256],65216:[[1590],256],65217:[[1591],256],65218:[[1591],256],65219:[[1591],256],65220:[[1591],256],65221:[[1592],256],65222:[[1592],256],65223:[[1592],256],65224:[[1592],256],65225:[[1593],256],65226:[[1593],256],65227:[[1593],256],65228:[[1593],256],65229:[[1594],256],65230:[[1594],256],65231:[[1594],256],65232:[[1594],256],65233:[[1601],256],65234:[[1601],256],65235:[[1601],256],65236:[[1601],256],65237:[[1602],256],65238:[[1602],256],65239:[[1602],256],65240:[[1602],256],65241:[[1603],256],65242:[[1603],256],65243:[[1603],256],65244:[[1603],256],65245:[[1604],256],65246:[[1604],256],65247:[[1604],256],65248:[[1604],256],65249:[[1605],256],65250:[[1605],256],65251:[[1605],256],65252:[[1605],256],65253:[[1606],256],65254:[[1606],256],65255:[[1606],256],65256:[[1606],256],65257:[[1607],256],65258:[[1607],256],65259:[[1607],256],65260:[[1607],256],65261:[[1608],256],65262:[[1608],256],65263:[[1609],256],65264:[[1609],256],65265:[[1610],256],65266:[[1610],256],65267:[[1610],256],65268:[[1610],256],65269:[[1604,1570],256],65270:[[1604,1570],256],65271:[[1604,1571],256],65272:[[1604,1571],256],65273:[[1604,1573],256],65274:[[1604,1573],256],65275:[[1604,1575],256],65276:[[1604,1575],256]},65280:{65281:[[33],256],65282:[[34],256],65283:[[35],256],65284:[[36],256],65285:[[37],256],65286:[[38],256],65287:[[39],256],65288:[[40],256],65289:[[41],256],65290:[[42],256],65291:[[43],256],65292:[[44],256],65293:[[45],256],65294:[[46],256],65295:[[47],256],65296:[[48],256],65297:[[49],256],65298:[[50],256],65299:[[51],256],65300:[[52],256],65301:[[53],256],65302:[[54],256],65303:[[55],256],65304:[[56],256],65305:[[57],256],65306:[[58],256],65307:[[59],256],65308:[[60],256],65309:[[61],256],65310:[[62],256],65311:[[63],256],65312:[[64],256],65313:[[65],256],65314:[[66],256],65315:[[67],256],65316:[[68],256],65317:[[69],256],65318:[[70],256],65319:[[71],256],65320:[[72],256],65321:[[73],256],65322:[[74],256],65323:[[75],256],65324:[[76],256],65325:[[77],256],65326:[[78],256],65327:[[79],256],65328:[[80],256],65329:[[81],256],65330:[[82],256],65331:[[83],256],65332:[[84],256],65333:[[85],256],65334:[[86],256],65335:[[87],256],65336:[[88],256],65337:[[89],256],65338:[[90],256],65339:[[91],256],65340:[[92],256],65341:[[93],256],65342:[[94],256],65343:[[95],256],65344:[[96],256],65345:[[97],256],65346:[[98],256],65347:[[99],256],65348:[[100],256],65349:[[101],256],65350:[[102],256],65351:[[103],256],65352:[[104],256],65353:[[105],256],65354:[[106],256],65355:[[107],256],65356:[[108],256],65357:[[109],256],65358:[[110],256],65359:[[111],256],65360:[[112],256],65361:[[113],256],65362:[[114],256],65363:[[115],256],65364:[[116],256],65365:[[117],256],65366:[[118],256],65367:[[119],256],65368:[[120],256],65369:[[121],256],65370:[[122],256],65371:[[123],256],65372:[[124],256],65373:[[125],256],65374:[[126],256],65375:[[10629],256],65376:[[10630],256],65377:[[12290],256],65378:[[12300],256],65379:[[12301],256],65380:[[12289],256],65381:[[12539],256],65382:[[12530],256],65383:[[12449],256],65384:[[12451],256],65385:[[12453],256],65386:[[12455],256],65387:[[12457],256],65388:[[12515],256],65389:[[12517],256],65390:[[12519],256],65391:[[12483],256],65392:[[12540],256],65393:[[12450],256],65394:[[12452],256],65395:[[12454],256],65396:[[12456],256],65397:[[12458],256],65398:[[12459],256],65399:[[12461],256],65400:[[12463],256],65401:[[12465],256],65402:[[12467],256],65403:[[12469],256],65404:[[12471],256],65405:[[12473],256],65406:[[12475],256],65407:[[12477],256],65408:[[12479],256],65409:[[12481],256],65410:[[12484],256],65411:[[12486],256],65412:[[12488],256],65413:[[12490],256],65414:[[12491],256],65415:[[12492],256],65416:[[12493],256],65417:[[12494],256],65418:[[12495],256],65419:[[12498],256],65420:[[12501],256],65421:[[12504],256],65422:[[12507],256],65423:[[12510],256],65424:[[12511],256],65425:[[12512],256],65426:[[12513],256],65427:[[12514],256],65428:[[12516],256],65429:[[12518],256],65430:[[12520],256],65431:[[12521],256],65432:[[12522],256],65433:[[12523],256],65434:[[12524],256],65435:[[12525],256],65436:[[12527],256],65437:[[12531],256],65438:[[12441],256],65439:[[12442],256],65440:[[12644],256],65441:[[12593],256],65442:[[12594],256],65443:[[12595],256],65444:[[12596],256],65445:[[12597],256],65446:[[12598],256],65447:[[12599],256],65448:[[12600],256],65449:[[12601],256],65450:[[12602],256],65451:[[12603],256],65452:[[12604],256],65453:[[12605],256],65454:[[12606],256],65455:[[12607],256],65456:[[12608],256],65457:[[12609],256],65458:[[12610],256],65459:[[12611],256],65460:[[12612],256],65461:[[12613],256],65462:[[12614],256],65463:[[12615],256],65464:[[12616],256],65465:[[12617],256],65466:[[12618],256],65467:[[12619],256],65468:[[12620],256],65469:[[12621],256],65470:[[12622],256],65474:[[12623],256],65475:[[12624],256],65476:[[12625],256],65477:[[12626],256],65478:[[12627],256],65479:[[12628],256],65482:[[12629],256],65483:[[12630],256],65484:[[12631],256],65485:[[12632],256],65486:[[12633],256],65487:[[12634],256],65490:[[12635],256],65491:[[12636],256],65492:[[12637],256],65493:[[12638],256],65494:[[12639],256],65495:[[12640],256],65498:[[12641],256],65499:[[12642],256],65500:[[12643],256],65504:[[162],256],65505:[[163],256],65506:[[172],256],65507:[[175],256],65508:[[166],256],65509:[[165],256],65510:[[8361],256],65512:[[9474],256],65513:[[8592],256],65514:[[8593],256],65515:[[8594],256],65516:[[8595],256],65517:[[9632],256],65518:[[9675],256]}};var h={nfc:function(e){return d("NFC",e)},nfd:function(e){return d("NFD",e)},nfkc:function(e){return d("NFKC",e)},nfkd:function(e){return d("NFKD",e)}};e.exports=h,h.shimApplied=!1,String.prototype.normalize||(Object.defineProperty(String.prototype,"normalize",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=""+this,t=void 0===arguments[0]?"NFC":arguments[0];if(null==this)throw new TypeError("Cannot call method on "+Object.prototype.toString.call(this));if("NFC"===t)return h.nfc(e);if("NFD"===t)return h.nfd(e);if("NFKC"===t)return h.nfkc(e);if("NFKD"===t)return h.nfkd(e);throw new RangeError("Invalid normalization form: "+t)}}),h.shimApplied=!0)}()},function(e,t,n){"use strict";
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
function r(e){var t=e.caseSensitive?e.accentSensitive?"variant":"case":e.accentSensitive?"accent":"base",n=e.caseFirst,r=e.ignorePunctuation;return new Intl.Collator(e.localeLang,{sensitivity:t,caseFirst:n,ignorePunctuation:r})}n.r(t),n.d(t,"collatorFromConfig",(function(){return r}))},function(e,t,n){"use strict";var r=n(90),o=n(151),i=n(97);e.exports=function(e){for(var t=r(this),n=i(t),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,l=void 0===u?n:o(u,n);l>s;)t[s++]=e;return t}},function(e,t,n){"use strict";n.r(t),n.d(t,"collectAddressesDependentToRange",(function(){return a}));n(22),n(2),n(40),n(0),n(37);var r=n(72),o=n(115),i=n(276),a=function(e,t,n,a,s){if(t instanceof i.RangeVertex){var u=t.range.intersectionWith(n);return void 0!==u?Array.from(u.addresses(s)):[]}var l,c;return t instanceof o.FormulaVertex?(l=t.getFormula(a),c=t.getAddress(a),Object(r.collectDependencies)(l,e).filter((function(e){return e instanceof r.AddressDependency})).map((function(e){return e.dependency.toSimpleCellAddress(c)})).filter((function(e){return n.addressInRange(e)}))):[]}},function(e,t,n){"use strict";var r,o=n(29),i=n(36),a=n(259),s=n(180),u=n(214),l=n(374),c=n(64),f=n(348),d=n(113).enforce,h=n(325),p=!o.ActiveXObject&&"ActiveXObject"in o,y=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},m=u("WeakMap",y,l);if(h&&p){r=l.getConstructor(y,"WeakMap",!0),s.enable();var g=m.prototype,v=i(g.delete),E=i(g.has),b=i(g.get),T=i(g.set);a(g,{delete:function(e){if(c(e)&&!f(e)){var t=d(this);return t.frozen||(t.frozen=new r),v(this,e)||t.frozen.delete(e)}return v(this,e)},has:function(e){if(c(e)&&!f(e)){var t=d(this);return t.frozen||(t.frozen=new r),E(this,e)||t.frozen.has(e)}return E(this,e)},get:function(e){if(c(e)&&!f(e)){var t=d(this);return t.frozen||(t.frozen=new r),E(this,e)?b(this,e):t.frozen.get(e)}return b(this,e)},set:function(e,t){if(c(e)&&!f(e)){var n=d(this);n.frozen||(n.frozen=new r),E(this,e)?T(this,e,t):n.frozen.set(e,t)}else T(this,e,t);return this}})}},function(e,t,n){"use strict";n.r(t),n.d(t,"TokenType",(function(){return r})),n.d(t,"formatToken",(function(){return s})),n.d(t,"FormatExpressionType",(function(){return o})),n.d(t,"parseForDateTimeFormat",(function(){return l})),n.d(t,"parseForNumberFormat",(function(){return c})),n.d(t,"parse",(function(){return f})),n.d(t,"isEscapeToken",(function(){return d}));n(12),n(114),n(0);var r,o,i=/(\\.|dd|DD|d|D|mm|MM|m|M|YYYY|YY|yyyy|yy|HH|hh|H|h|ss(\.(0+|s+))?|s|AM\/PM|am\/pm|A\/P|a\/p|\[mm]|\[MM]|\[hh]|\[HH])/g,a=/(\\.|[#0]+(\.[#0]*)?)/g;function s(e,t){return{type:e,value:t}}function u(e,t){for(var n=[],o=0,i=0;i<e.length;++i){var a=e[i];if(a.index!==o){var u=t.substr(o,a.index-o);n.push(s(r.FREE_TEXT,u))}a[0].startsWith("\\")?n.push(s(r.FREE_TEXT,a[0])):n.push(s(r.FORMAT,a[0])),o=a.index+a[0].length}var l=e[e.length-1];if(l.index+l[0].length<t.length){var c=t.substr(l.index+l[0].length,t.length);n.push(s(r.FREE_TEXT,c))}return n}function l(e){var t=function(e){i.lastIndex=0;var t,n=[];do{null!==(t=i.exec(e))&&n.push(t)}while(t);return n}(e);return t.every((function(e){return d(e)}))?void 0:{type:o.DATE,tokens:u(t,e)}}function c(e){var t=function(e){a.lastIndex=0;var t=a.exec(e);return null!==t?[t]:[]}(e);return t.every((function(e){return d(e)}))?void 0:{type:o.NUMBER,tokens:u(t,e)}}function f(e){var t,n;return null!==(n=null!==(t=l(e))&&void 0!==t?t:c(e))&&void 0!==n?n:{type:o.STRING,tokens:[{type:r.FREE_TEXT,value:e}]}}function d(e){return e[0].startsWith("\\")}!function(e){e.FORMAT="FORMAT",e.FREE_TEXT="FREE_TEXT"}(r||(r={})),function(e){e.DATE="DATE",e.NUMBER="NUMBER",e.STRING="STRING"}(o||(o={}))},function(e,t,n){"use strict";n.r(t),n.d(t,"checkLicenseKeyValidity",(function(){return u}));n(12),n(61),n(18),n(8),n(9),n(0),n(10),n(3),n(2),n(4),n(13),n(25),n(22);var r=n(701);function o(e,t){return function(e){if(Array.isArray(e))return e}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;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,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(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 i(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 i(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}var a={invalid:function(){return"The license key for HyperFormula is invalid."},expired:function(e){var t=e.keyValidityDate;return"The license key for HyperFormula expired"+" on ".concat(t,", and is not valid for the installed version.")},missing:function(){return"The license key for HyperFormula is missing."}},s=!1;function u(e){var t={template:"missing",vars:{}};if("gpl-v3"===e||"internal-use-in-handsontable"===e)t.template="valid";else if("string"==typeof e&&Object(r.checkKeySchema)(e)){var n=o("14/04/2022".split("/"),3),i=n[0],u=n[1],l=n[2],c=Math.floor(new Date("".concat(u,"/").concat(i,"/").concat(l)).getTime()/864e5),f=Object(r.extractTime)(e);t.vars.keyValidityDate=function(e){var t=["January","February","March","April","May","June","July","August","September","October","November","December"][e.getMonth()],n=e.getDate(),r=e.getFullYear();return"".concat(t," ").concat(n,", ").concat(r)}(new Date(864e5*(f+1))),t.template=c>f?"expired":"valid"}else""!==e&&(t.template="invalid");return s||"valid"===t.template||(console.warn(a[t.template](t.vars)),s=!0),t.template}},function(e,t,n){"use strict";n.r(t),n.d(t,"extractTime",(function(){return f})),n.d(t,"checkKeySchema",(function(){return d}));n(12),n(63),n(288),n(99),n(0),n(18),n(289),n(8),n(9),n(10),n(3),n(2),n(4),n(13),n(25),n(22);function r(e,t){return function(e){if(Array.isArray(e))return e}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;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,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}var i="length",a=function(e){return parseInt(e,16)},s=function(e){return parseInt(e,10)},u=function(e){return(e+"").replace(/\-/g,"")},l=function(e,t,n){return e.substr(t,n)},c=function(e){return e.codePointAt(0)-65};function f(e){return 25===u(e)[i]?a(l(u(e),a("12"),c("F")))/(a(l(u(e),c("C"),c("Y")>>4))||1+(~~![][i]<<3)):0}function d(e){if((e=(e+"").replace(/\-/g,""))[i]!==c("Z"))return!1;var t=0;return[[0,c("G")+1],[c("H"),c("H")-1],[c("G")+c("H"),c("G")]].reduce((function(n,o,i){var u=r(o,2),c=u[0],f=u[1];return n|=(s("".concat(s(a(l.apply(void 0,[e].concat([t+c-(0===i?0:2),f+(i?2:0)])))+(a(l.apply(void 0,[e].concat([t+c+f,2])))+[]).padStart(2,"0"))))%97||2)>>1,t+=2,n}),c("A"))===[]+1>>1}},function(e,t,n){var r=n(36),o=n(131),i=n(71),a=n(287),s=n(89),u=r(a),l=r("".slice),c=Math.ceil,f=function(e){return function(t,n,r){var a,f,d=i(s(t)),h=o(n),p=d.length,y=void 0===r?" ":i(r);return h<=p||""==y?d:((f=u(y,c((a=h-p)/y.length))).length>a&&(f=l(f,0,a)),e?d+f:f+d)}};e.exports={start:f(!1),end:f(!0)}},function(e,t,n){var r=n(128);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},function(e,t,n){"use strict";n.r(t),n.d(t,"BuildEngineFactory",(function(){return k}));n(0),n(26),n(25);var r=n(124),o=n(190),i=n(377),a=n(226),s=n(705),u=n(156),l=n(123),c=n(41),f=n(711),d=n(229),h=n(713),p=n(225),y=n(106),m=n(291),g=n(715),v=n(717),E=n(719),b=n(227),T=n(721),C=n(228),w=n(72),R=n(722),O=n(290),S=n(125),A=n(380);function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e,t){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)}}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
var k=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,k;return t=e,k=[{key:"buildFromSheets",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=new a.Config(t);return this.buildEngine(r,e,n)}},{key:"buildFromSheet",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=new a.Config(t),o=r.translationPackage.getUITranslation(p.UIElement.NEW_SHEET_PREFIX)+"1";return this.buildEngine(r,N({},o,e),n)}},{key:"buildEmpty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.buildEngine(new a.Config(e),{},t)}},{key:"rebuildWithConfig",value:function(e,t,n,r){return this.buildEngine(e,t,n,r)}},{key:"buildEngine",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.useStats?new S.Statistics:new S.EmptyStatistics;a.start(S.StatType.BUILD_ENGINE_TOTAL);var p=new b.NamedExpressions,N=new m.FunctionRegistry(e),_=new v.LazilyTransformingAstService(a),k=l.DependencyGraph.buildEmpty(_,e,N,p,a),M=Object(E.buildColumnSearchStrategy)(k,e,a),I=k.sheetMapping,P=k.addressMapping;for(var x in t)if(Object.prototype.hasOwnProperty.call(t,x)){var D=t[x];Object(O.validateAsSheet)(D);var L=Object(O.findBoundaries)(D);if(L.height>e.maxRows||L.width>e.maxColumns)throw new c.SheetSizeLimitExceededError;var F=I.addSheet(x);P.autoAddSheet(F,D,L)}var j=new w.ParserWithCaching(e,N,I.get);_.parser=j;var U=new w.Unparser(e,Object(w.buildLexerConfig)(e),I.fetchDisplayName,p),H=new u.DateTimeHelper(e),B=new T.NumberLiteralHelper(e),V=new y.ArithmeticHelper(e,H,B),W=new o.CellContentParser(e,H,B),Y=new r.ArraySizePredictor(e,N),G=new C.Operations(e,k,M,W,j,a,_,p,Y),z=new A.UndoRedo(e,G);_.undoRedo=z;var K=new i.ClipboardOperations(e,k,G),X=new s.CrudOperations(e,G,z,K,k,M,j,W,_,p);n.forEach((function(e){X.ensureItIsPossibleToAddNamedExpression(e.name,e.expression,e.scope),X.operations.addNamedExpression(e.name,e.expression,e.scope,e.options)}));var q=new d.Exporter(e,p,I.fetchDisplayName,_),Q=new R.Serialization(k,U,q),$=new g.Interpreter(e,k,M,a,V,N,p,Q,Y,H);a.measure(S.StatType.GRAPH_BUILD,(function(){new h.GraphBuilder(k,M,j,W,a,Y).buildGraph(t,a)}));var Z=new f.Evaluator(e,a,$,_,k,M);return Z.run(),a.end(S.StatType.BUILD_ENGINE_TOTAL),{config:e,stats:a,dependencyGraph:k,columnSearch:M,parser:j,unparser:U,cellContentParser:W,evaluator:Z,lazilyTransformingAstService:_,crudOperations:X,exporter:q,namedExpressions:p,serialization:Q,functionRegistry:N}}}],(n=null)&&_(t.prototype,n),k&&_(t,k),Object.defineProperty(t,"prototype",{writable:!1}),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"CrudOperations",(function(){return g}));n(18),n(99),n(0),n(37),n(73),n(67),n(52),n(13),n(25),n(22),n(2),n(12),n(8),n(9),n(10),n(3),n(4);var r=n(86),o=n(24),i=n(190),a=n(41),s=n(227),u=n(228),l=n(290),c=n(186),f=n(380);function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;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,t)||p(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){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=p(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function p(e,t){if(e){if("string"==typeof e)return y(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)?y(e,t):void 0}}function y(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 m(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)}}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
var g=function(){function e(t,n,r,o,i,a,s,u,l,c){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.operations=n,this.undoRedo=r,this.clipboardOperations=o,this.dependencyGraph=i,this.columnSearch=a,this.parser=s,this.cellContentParser=u,this.lazilyTransformingAstService=l,this.namedExpressions=c,this.maxRows=t.maxRows,this.maxColumns=t.maxColumns}var t,n,p;return t=e,(n=[{key:"sheetMapping",get:function(){return this.dependencyGraph.sheetMapping}},{key:"addRows",value: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];var o=new u.AddRowsCommand(e,n);this.ensureItIsPossibleToAddRows.apply(this,[e].concat(n)),this.undoRedo.clearRedoStack(),this.clipboardOperations.abortCut(),this.operations.addRows(o),this.undoRedo.saveOperation(new f.AddRowsUndoEntry(o))}},{key:"removeRows",value: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];var o=new u.RemoveRowsCommand(e,n);this.ensureItIsPossibleToRemoveRows.apply(this,[e].concat(n)),this.undoRedo.clearRedoStack(),this.clipboardOperations.abortCut();var i=this.operations.removeRows(o);this.undoRedo.saveOperation(new f.RemoveRowsUndoEntry(o,i))}},{key:"addColumns",value: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];var o=new u.AddColumnsCommand(e,n);this.ensureItIsPossibleToAddColumns.apply(this,[e].concat(n)),this.undoRedo.clearRedoStack(),this.clipboardOperations.abortCut(),this.operations.addColumns(o),this.undoRedo.saveOperation(new f.AddColumnsUndoEntry(o))}},{key:"removeColumns",value: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];var o=new u.RemoveColumnsCommand(e,n);this.ensureItIsPossibleToRemoveColumns.apply(this,[e].concat(n)),this.undoRedo.clearRedoStack(),this.clipboardOperations.abortCut();var i=this.operations.removeColumns(o);this.undoRedo.saveOperation(new f.RemoveColumnsUndoEntry(o,i))}},{key:"moveCells",value:function(e,t,n,r){this.undoRedo.clearRedoStack(),this.clipboardOperations.abortCut();var o=this.operations.moveCells(e,t,n,r),i=o.version,a=o.overwrittenCellsData,s=o.addedGlobalNamedExpressions;this.undoRedo.saveOperation(new f.MoveCellsUndoEntry(e,t,n,r,a,s,i))}},{key:"moveRows",value:function(e,t,n,r){this.ensureItIsPossibleToMoveRows(e,t,n,r),this.undoRedo.clearRedoStack(),this.clipboardOperations.abortCut();var o=this.operations.moveRows(e,t,n,r);this.undoRedo.saveOperation(new f.MoveRowsUndoEntry(e,t,n,r,o))}},{key:"moveColumns",value:function(e,t,n,r){this.ensureItIsPossibleToMoveColumns(e,t,n,r),this.undoRedo.clearRedoStack();var o=this.operations.moveColumns(e,t,n,r);this.undoRedo.saveOperation(new f.MoveColumnsUndoEntry(e,t,n,r,o))}},{key:"cut",value:function(e,t,n){this.clipboardOperations.cut(e,t,n)}},{key:"ensureItIsPossibleToCopy",value:function(e,t,n){if(!v(t))throw new a.InvalidArgumentsError("width to be positive integer.");if(!v(n))throw new a.InvalidArgumentsError("height to be positive integer.")}},{key:"copy",value:function(e,t,n){this.ensureItIsPossibleToCopy(e,t,n),this.clipboardOperations.copy(e,t,n)}},{key:"paste",value:function(e){var t=this.clipboardOperations.clipboard;if(void 0===t)throw new a.NothingToPasteError;if(this.clipboardOperations.isCutClipboard())this.moveCells(t.sourceLeftCorner,t.width,t.height,e);else if(this.clipboardOperations.isCopyClipboard()){this.clipboardOperations.ensureItIsPossibleToCopyPaste(e);var n=r.AbsoluteCellRange.spanFrom(e,t.width,t.height),o=this.operations.getRangeClipboardCells(n);this.undoRedo.clearRedoStack();var i=this.operations.restoreClipboardCells(t.sourceLeftCorner.sheet,t.getContent(e));this.undoRedo.saveOperation(new f.PasteUndoEntry(e,o,t.content,i))}}},{key:"beginUndoRedoBatchMode",value:function(){this.undoRedo.beginBatchMode()}},{key:"commitUndoRedoBatchMode",value:function(){this.undoRedo.commitBatchMode()}},{key:"isClipboardEmpty",value:function(){return void 0===this.clipboardOperations.clipboard}},{key:"clearClipboard",value:function(){this.clipboardOperations.clear()}},{key:"addSheet",value:function(e){void 0!==e&&this.ensureItIsPossibleToAddSheet(e),this.undoRedo.clearRedoStack();var t=this.operations.addSheet(e);return this.undoRedo.saveOperation(new f.AddSheetUndoEntry(t)),t}},{key:"removeSheet",value:function(e){this.ensureScopeIdIsValid(e),this.undoRedo.clearRedoStack(),this.clipboardOperations.abortCut();var t=this.sheetMapping.fetchDisplayName(e),n=this.operations.getSheetClipboardCells(e),r=this.operations.removeSheet(e),o=r.version,i=r.scopedNamedExpressions;this.undoRedo.saveOperation(new f.RemoveSheetUndoEntry(t,e,n,i,o))}},{key:"renameSheet",value:function(e,t){this.ensureItIsPossibleToRenameSheet(e,t);var n=this.operations.renameSheet(e,t);return void 0!==n&&(this.undoRedo.clearRedoStack(),this.undoRedo.saveOperation(new f.RenameSheetUndoEntry(e,n,t))),n}},{key:"clearSheet",value:function(e){this.ensureScopeIdIsValid(e),this.undoRedo.clearRedoStack(),this.clipboardOperations.abortCut();var t=this.operations.getSheetClipboardCells(e);this.operations.clearSheet(e),this.undoRedo.saveOperation(new f.ClearSheetUndoEntry(e,t))}},{key:"setCellContents",value:function(e,t){if(t instanceof Array){for(var n=0;n<t.length;n++)if(!(t[n]instanceof Array))throw new a.InvalidArgumentsError("an array of arrays or a raw cell value.")}else t=[[t]];this.ensureItIsPossibleToChangeCellContents(e,t),this.undoRedo.clearRedoStack();for(var r=[],o=0;o<t.length;o++)for(var i=0;i<t[o].length;i++){var s={sheet:e.sheet,row:e.row+o,col:e.col+i},u=t[o][i];this.clipboardOperations.abortCut();var l=this.operations.setCellContent(s,u);r.push({address:s,newContent:u,oldContent:l})}this.undoRedo.saveOperation(new f.SetCellContentsUndoEntry(r))}},{key:"setSheetContent",value:function(e,t){this.ensureScopeIdIsValid(e),this.ensureItIsPossibleToChangeSheetContents(e,t),Object(l.validateAsSheet)(t),this.undoRedo.clearRedoStack(),this.clipboardOperations.abortCut();var n=this.operations.getSheetClipboardCells(e);this.operations.setSheetContent(e,t),this.undoRedo.saveOperation(new f.SetSheetContentUndoEntry(e,n,t))}},{key:"setRowOrder",value:function(e,t){this.validateSwapRowIndexes(e,t),this.testRowOrderForArrays(e,t),this.undoRedo.clearRedoStack(),this.clipboardOperations.abortCut();var n=this.operations.setRowOrder(e,t);this.undoRedo.saveOperation(new f.SetRowOrderUndoEntry(e,t,n))}},{key:"validateSwapRowIndexes",value:function(e,t){if(!this.sheetMapping.hasSheetWithId(e))throw new a.NoSheetWithIdError(e);this.validateRowOrColumnMapping(e,t,"row")}},{key:"testColumnOrderForArrays",value:function(e,t){var n,o=h(t);try{for(o.s();!(n=o.n()).done;){var i=d(n.value,2),s=i[0];if(s!==i[1]){var u=r.AbsoluteCellRange.spanFrom({sheet:e,col:s,row:0},1,1/0);if(this.dependencyGraph.arrayMapping.isFormulaArrayInRange(u))throw new a.SourceLocationHasArrayError}}}catch(e){o.e(e)}finally{o.f()}}},{key:"setColumnOrder",value:function(e,t){this.validateSwapColumnIndexes(e,t),this.testColumnOrderForArrays(e,t),this.undoRedo.clearRedoStack(),this.clipboardOperations.abortCut();var n=this.operations.setColumnOrder(e,t);this.undoRedo.saveOperation(new f.SetColumnOrderUndoEntry(e,t,n))}},{key:"validateSwapColumnIndexes",value:function(e,t){if(!this.sheetMapping.hasSheetWithId(e))throw new a.NoSheetWithIdError(e);this.validateRowOrColumnMapping(e,t,"column")}},{key:"testRowOrderForArrays",value:function(e,t){var n,o=h(t);try{for(o.s();!(n=o.n()).done;){var i=d(n.value,2),s=i[0];if(s!==i[1]){var u=r.AbsoluteCellRange.spanFrom({sheet:e,col:0,row:s},1/0,1);if(this.dependencyGraph.arrayMapping.isFormulaArrayInRange(u))throw new a.SourceLocationHasArrayError}}}catch(e){o.e(e)}finally{o.f()}}},{key:"mappingFromOrder",value:function(e,t,n){if(!this.sheetMapping.hasSheetWithId(e))throw new a.NoSheetWithIdError(e);var r="row"===n?this.dependencyGraph.getSheetHeight(e):this.dependencyGraph.getSheetWidth(e);if(t.length!==r)throw new a.InvalidArgumentsError("number of ".concat(n,"s provided to be sheet ").concat("row"===n?"height":"width","."));for(var o=[],i=0;i<r;i++)t[i]!==i&&o.push([i,t[i]]);return o}},{key:"undo",value:function(){if(this.undoRedo.isUndoStackEmpty())throw new a.NoOperationToUndoError;this.clipboardOperations.abortCut(),this.undoRedo.undo()}},{key:"redo",value:function(){if(this.undoRedo.isRedoStackEmpty())throw new a.NoOperationToRedoError;this.clipboardOperations.abortCut(),this.undoRedo.redo()}},{key:"addNamedExpression",value:function(e,t,n,r){this.ensureItIsPossibleToAddNamedExpression(e,t,n),this.operations.addNamedExpression(e,t,n,r),this.undoRedo.clearRedoStack(),this.clipboardOperations.abortCut(),this.undoRedo.saveOperation(new f.AddNamedExpressionUndoEntry(e,t,n,r))}},{key:"changeNamedExpressionExpression",value:function(e,t,n,r){this.ensureItIsPossibleToChangeNamedExpression(e,n,t);var o=d(this.operations.changeNamedExpressionExpression(e,n,t,r),2),i=o[0],a=o[1];this.undoRedo.clearRedoStack(),this.clipboardOperations.abortCut(),this.undoRedo.saveOperation(new f.ChangeNamedExpressionUndoEntry(i,n,a,t,r))}},{key:"removeNamedExpression",value:function(e,t){this.ensureScopeIdIsValid(t);var n=d(this.operations.removeNamedExpression(e,t),2),r=n[0],o=n[1];return this.undoRedo.clearRedoStack(),this.clipboardOperations.abortCut(),this.undoRedo.saveOperation(new f.RemoveNamedExpressionUndoEntry(r,o,t)),r}},{key:"ensureItIsPossibleToAddNamedExpression",value:function(e,t,n){this.ensureScopeIdIsValid(n),this.ensureNamedExpressionNameIsValid(e,n),this.ensureNamedExpressionIsValid(t)}},{key:"ensureItIsPossibleToChangeNamedExpression",value:function(e,t,n){if(this.ensureScopeIdIsValid(n),void 0===this.namedExpressions.namedExpressionForScope(e,n))throw new a.NamedExpressionDoesNotExistError(e);this.ensureNamedExpressionIsValid(t)}},{key:"isItPossibleToRemoveNamedExpression",value:function(e,t){if(this.ensureScopeIdIsValid(t),void 0===this.namedExpressions.namedExpressionForScope(e,t))throw new a.NamedExpressionDoesNotExistError(e)}},{key:"ensureItIsPossibleToAddRows",value:function(e){if(!this.sheetMapping.hasSheetWithId(e))throw new a.NoSheetWithIdError(e);for(var t=this.dependencyGraph.getSheetHeight(e),n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=r.map((function(e){return e[1]})).reduce((function(e,t){return e+t}),0);if(t+i>this.maxRows)throw new a.SheetSizeLimitExceededError;for(var s=0,u=r;s<u.length;s++){var l=d(u[s],2),c=l[0],f=l[1];if(!E(c)||!v(f))throw new a.InvalidArgumentsError("row number to be nonnegative and number of rows to add to be positive.")}}},{key:"ensureItIsPossibleToRemoveRows",value: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];for(var o=0,i=n;o<i.length;o++){var s=d(i[o],2),u=s[0],l=s[1],c=u+l-1;if(!E(u)||!E(c))throw new a.InvalidArgumentsError("starting and ending row to be nonnegative.");if(c<u)throw new a.InvalidArgumentsError("starting row to be smaller than the ending row.");if(!this.sheetMapping.hasSheetWithId(e))throw new a.NoSheetWithIdError(e)}}},{key:"ensureItIsPossibleToAddColumns",value:function(e){if(!this.sheetMapping.hasSheetWithId(e))throw new a.NoSheetWithIdError(e);for(var t=this.dependencyGraph.getSheetWidth(e),n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=r.map((function(e){return e[1]})).reduce((function(e,t){return e+t}),0);if(t+i>this.maxColumns)throw new a.SheetSizeLimitExceededError;for(var s=0,u=r;s<u.length;s++){var l=d(u[s],2),c=l[0],f=l[1];if(!E(c)||!v(f))throw new a.InvalidArgumentsError("column number to be nonnegative and number of columns to add to be positive.")}}},{key:"ensureItIsPossibleToRemoveColumns",value: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];for(var o=0,i=n;o<i.length;o++){var s=d(i[o],2),u=s[0],l=s[1],c=u+l-1;if(!E(u)||!E(c))throw new a.InvalidArgumentsError("starting and ending column to be nonnegative.");if(c<u)throw new a.InvalidArgumentsError("starting column to be smaller than the ending column.");if(!this.sheetMapping.hasSheetWithId(e))throw new a.NoSheetWithIdError(e)}}},{key:"ensureItIsPossibleToMoveRows",value:function(e,t,n,i){this.ensureItIsPossibleToAddRows(e,[i,n]);var s=Object(o.simpleCellAddress)(e,0,t),u=Object(o.simpleCellAddress)(e,0,i);if(!this.sheetMapping.hasSheetWithId(e)||Object(o.invalidSimpleCellAddress)(s)||Object(o.invalidSimpleCellAddress)(u)||!v(n)||i<=t+n&&i>=t)throw new a.InvalidArgumentsError("a valid range of rows to move.");var l=this.dependencyGraph.getSheetWidth(e),f=r.AbsoluteCellRange.spanFrom(s,l,n);if(this.dependencyGraph.arrayMapping.isFormulaArrayInRange(f))throw new a.SourceLocationHasArrayError;if(i>0&&this.dependencyGraph.arrayMapping.isFormulaArrayInAllRows(c.RowsSpan.fromNumberOfRows(e,i-1,2)))throw new a.TargetLocationHasArrayError}},{key:"ensureItIsPossibleToMoveColumns",value:function(e,t,n,i){this.ensureItIsPossibleToAddColumns(e,[i,n]);var s=Object(o.simpleCellAddress)(e,t,0),u=Object(o.simpleCellAddress)(e,i,0);if(!this.sheetMapping.hasSheetWithId(e)||Object(o.invalidSimpleCellAddress)(s)||Object(o.invalidSimpleCellAddress)(u)||!v(n)||i<=t+n&&i>=t)throw new a.InvalidArgumentsError("a valid range of columns to move.");var l=this.dependencyGraph.getSheetHeight(e),f=r.AbsoluteCellRange.spanFrom(s,n,l);if(this.dependencyGraph.arrayMapping.isFormulaArrayInRange(f))throw new a.SourceLocationHasArrayError;if(i>0&&this.dependencyGraph.arrayMapping.isFormulaArrayInAllColumns(c.ColumnsSpan.fromNumberOfColumns(e,i-1,2)))throw new a.TargetLocationHasArrayError}},{key:"ensureItIsPossibleToAddSheet",value:function(e){if(this.sheetMapping.hasSheetWithName(e))throw new a.SheetNameAlreadyTakenError(e)}},{key:"ensureItIsPossibleToRenameSheet",value:function(e,t){if(!this.sheetMapping.hasSheetWithId(e))throw new a.NoSheetWithIdError(e);var n=this.sheetMapping.get(t);if(void 0!==n&&n!==e)throw new a.SheetNameAlreadyTakenError(t)}},{key:"ensureItIsPossibleToChangeContent",value:function(e){if(Object(o.invalidSimpleCellAddress)(e))throw new a.InvalidAddressError(e);if(!this.sheetMapping.hasSheetWithId(e.sheet))throw new a.NoSheetWithIdError(e.sheet)}},{key:"ensureItIsPossibleToChangeCellContents",value:function(e,t){var n=Object(l.findBoundaries)(t),o=r.AbsoluteCellRange.spanFrom(e,n.width,n.height);this.ensureRangeInSizeLimits(o);var i,a=h(o.addresses(this.dependencyGraph));try{for(a.s();!(i=a.n()).done;){var s=i.value;this.ensureItIsPossibleToChangeContent(s)}}catch(e){a.e(e)}finally{a.f()}}},{key:"ensureItIsPossibleToChangeSheetContents",value:function(e,t){var n=Object(l.findBoundaries)(t),i=r.AbsoluteCellRange.spanFrom(Object(o.simpleCellAddress)(e,0,0),n.width,n.height);this.ensureRangeInSizeLimits(i)}},{key:"ensureRangeInSizeLimits",value:function(e){if(e.exceedsSheetSizeLimits(this.maxColumns,this.maxRows))throw new a.SheetSizeLimitExceededError}},{key:"isThereSomethingToUndo",value:function(){return!this.undoRedo.isUndoStackEmpty()}},{key:"isThereSomethingToRedo",value:function(){return!this.undoRedo.isRedoStackEmpty()}},{key:"getAndClearContentChanges",value:function(){return this.operations.getAndClearContentChanges()}},{key:"ensureScopeIdIsValid",value:function(e){if(void 0!==e&&!this.sheetMapping.hasSheetWithId(e))throw new a.NoSheetWithIdError(e)}},{key:"validateRowOrColumnMapping",value:function(e,t,n){for(var r="row"===n?this.dependencyGraph.getSheetHeight(e):this.dependencyGraph.getSheetWidth(e),o=t.map((function(e){var t=d(e,2),n=t[0];return t[1],n})).sort((function(e,t){return e-t})),i=t.map((function(e){var t=d(e,2);return t[0],t[1]})).sort((function(e,t){return e-t})),s=0;s<o.length;s++){if(!E(o[s])||o[s]>=r)throw new a.InvalidArgumentsError("".concat(n," numbers to be nonnegative integers and less than sheet ").concat("row"===n?"height":"width","."));if(o[s]===o[s+1])throw new a.InvalidArgumentsError("source ".concat(n," numbers to be unique."));if(o[s]!==i[s])throw new a.InvalidArgumentsError("target ".concat(n," numbers to be permutation of source ").concat(n," numbers."))}}},{key:"ensureNamedExpressionNameIsValid",value:function(e,t){if(!this.namedExpressions.isNameValid(e))throw new a.NamedExpressionNameIsInvalidError(e);if(!this.namedExpressions.isNameAvailable(e,t))throw new a.NamedExpressionNameIsAlreadyTakenError(e)}},{key:"ensureNamedExpressionIsValid",value:function(e){var t=this.cellContentParser.parse(e);if(t instanceof i.CellContent.Formula){var n=this.parser.parse(t.formula,Object(o.simpleCellAddress)(-1,0,0));if(Object(s.doesContainRelativeReferences)(n.ast))throw new a.NoRelativeAddressesAllowedError}}}])&&m(t.prototype,n),p&&m(t,p),Object.defineProperty(t,"prototype",{writable:!1}),e}();function v(e){return Number.isInteger(e)&&e>0}function E(e){return Number.isInteger(e)&&e>=0}},function(e,t,n){"use strict";n.r(t),n.d(t,"AddColumnsTransformer",(function(){return c}));n(87),n(27),n(0),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(24);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)}function i(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 a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(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=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var c=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(l,e);var t,n,o,u=s(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=u.call(this)).columnsSpan=e,t}return t=l,(n=[{key:"sheet",get:function(){return this.columnsSpan.sheet}},{key:"isIrreversible",value:function(){return!1}},{key:"transformRowRangeAst",value:function(e,t){return e}},{key:"transformCellRange",value:function(e,t,n){return this.transformRange(e,t,n)}},{key:"transformRowRange",value:function(e,t,n){throw Error("Not implemented")}},{key:"transformColumnRange",value:function(e,t,n){return this.transformRange(e,t,n)}},{key:"transformCellAddress",value:function(e,t){var n=Object(r.absoluteSheetReference)(e,t);if(n!==this.columnsSpan.sheet&&t.sheet!==this.columnsSpan.sheet)return!1;var o=e.toSimpleColumnAddress(t);return n===this.columnsSpan.sheet&&t.sheet!==this.columnsSpan.sheet?this.columnsSpan.columnStart<=o.col&&e.shiftedByColumns(this.columnsSpan.numberOfColumns):t.sheet===this.columnsSpan.sheet&&n!==this.columnsSpan.sheet?!e.isColumnAbsolute()&&!(t.col<this.columnsSpan.columnStart)&&e.shiftedByColumns(-this.columnsSpan.numberOfColumns):e.isColumnAbsolute()?!(e.col<this.columnsSpan.columnStart)&&e.shiftedByColumns(this.columnsSpan.numberOfColumns):e.toSimpleColumnAddress(t).col<this.columnsSpan.columnStart?!(t.col<this.columnsSpan.columnStart)&&e.shiftedByColumns(-this.columnsSpan.numberOfColumns):t.col<this.columnsSpan.columnStart&&e.shiftedByColumns(this.columnsSpan.numberOfColumns)}},{key:"fixNodeAddress",value:function(e){return this.columnsSpan.sheet===e.sheet&&this.columnsSpan.columnStart<=e.col?Object.assign(Object.assign({},e),{col:e.col+this.columnsSpan.numberOfColumns}):e}},{key:"transformRange",value:function(e,t,n){var o=this.transformCellAddress(e,n),i=this.transformCellAddress(t,n);return o===r.ErrorType.REF||i===r.ErrorType.REF?r.ErrorType.REF:!(!o&&!i)&&[o||e,i||t]}}])&&i(t.prototype,n),o&&i(t,o),Object.defineProperty(t,"prototype",{writable:!1}),l}(n(139).Transformer)},function(e,t,n){"use strict";n.r(t),n.d(t,"CleanOutOfScopeDependenciesTransformer",(function(){return c}));n(27),n(0),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(24);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)}function i(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 a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(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=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var c=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(l,e);var t,n,o,u=s(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=u.call(this)).sheet=e,t}return t=l,(n=[{key:"isIrreversible",value:function(){return!0}},{key:"fixNodeAddress",value:function(e){return e}},{key:"transformCellAddress",value:function(e,t){return!!e.isInvalid(t)&&r.ErrorType.REF}},{key:"transformCellRange",value:function(e,t,n){return!(!e.isInvalid(n)&&!t.isInvalid(n))&&r.ErrorType.REF}},{key:"transformColumnRange",value:function(e,t,n){return!(!e.isInvalid(n)&&!t.isInvalid(n))&&r.ErrorType.REF}},{key:"transformRowRange",value:function(e,t,n){return!(!e.isInvalid(n)&&!t.isInvalid(n))&&r.ErrorType.REF}}])&&i(t.prototype,n),o&&i(t,o),Object.defineProperty(t,"prototype",{writable:!1}),l}(n(139).Transformer)},function(e,t,n){"use strict";n.r(t),n.d(t,"MoveCellsTransformer",(function(){return m}));n(27),n(0),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(24),o=n(72),i=n(219),a=n(139);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(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 c(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function f(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var m=function(e){f(n,e);var t=h(n);function n(e,r,o,i){var a;return u(this,n),(a=t.call(this)).sourceRange=e,a.toRight=r,a.toBottom=o,a.toSheet=i,a.dependentFormulaTransformer=new g(e,r,o,i),a}return c(n,[{key:"sheet",get:function(){return this.sourceRange.sheet}},{key:"isIrreversible",value:function(){return!0}},{key:"transformSingleAst",value:function(e,t){return this.sourceRange.addressInRange(t)?[this.transformAst(e,t),this.fixNodeAddress(t)]:this.dependentFormulaTransformer.transformSingleAst(e,t)}},{key:"fixNodeAddress",value:function(e){return Object(r.simpleCellAddress)(this.toSheet,e.col+this.toRight,e.row+this.toBottom)}},{key:"transformCellAddress",value:function(e,t){return this.transformAddress(e,t)}},{key:"transformCellRange",value:function(e,t,n){return this.transformRange(e,t,n)}},{key:"transformColumnRange",value:function(e,t,n){return this.transformRange(e,t,n)}},{key:"transformRowRange",value:function(e,t,n){return this.transformRange(e,t,n)}},{key:"transformAddress",value:function(e,t){var n=this.sourceRange;if(e instanceof o.CellAddress){var r=e.toSimpleCellAddress(t);if(n.addressInRange(r))return e.shiftAbsoluteDimensions(this.toRight,this.toBottom)}return e.shiftRelativeDimensions(-this.toRight,-this.toBottom)}},{key:"transformRange",value:function(e,t,n){var r=this.sourceRange;if(e instanceof o.CellAddress&&t instanceof o.CellAddress){var i=e.toSimpleCellAddress(n),a=t.toSimpleCellAddress(n);if(r.addressInRange(i)&&r.addressInRange(a))return[e.shiftAbsoluteDimensions(this.toRight,this.toBottom),t.shiftAbsoluteDimensions(this.toRight,this.toBottom)]}return[e.shiftRelativeDimensions(-this.toRight,-this.toBottom),t.shiftRelativeDimensions(-this.toRight,-this.toBottom)]}}]),n}(a.Transformer),g=function(e){f(n,e);var t=h(n);function n(e,r,o,i){var a;return u(this,n),(a=t.call(this)).sourceRange=e,a.toRight=r,a.toBottom=o,a.toSheet=i,a}return c(n,[{key:"sheet",get:function(){return this.sourceRange.sheet}},{key:"isIrreversible",value:function(){return!0}},{key:"fixNodeAddress",value:function(e){return e}},{key:"transformCellAddress",value:function(e,t){return!!this.shouldMove(e,t)&&e.moved(this.toSheet,this.toRight,this.toBottom)}},{key:"transformCellRange",value:function(e,t,n){return this.transformRange(e,t,n)}},{key:"transformColumnRange",value:function(e,t,n){return this.transformRange(e,t,n)}},{key:"transformRowRange",value:function(e,t,n){return this.transformRange(e,t,n)}},{key:"shouldMove",value:function(e,t){return e instanceof o.CellAddress?this.sourceRange.addressInRange(e.toSimpleCellAddress(t)):e instanceof i.RowAddress?this.sourceRange.rowInRange(e.toSimpleRowAddress(t))&&!this.sourceRange.isFinite():this.sourceRange.columnInRange(e.toSimpleColumnAddress(t))&&!this.sourceRange.isFinite()}},{key:"transformRange",value:function(e,t,n){var r=this.transformCellAddress(e,n),o=this.transformCellAddress(t,n);return!(!r||!o)&&[r,o]}}]),n}(a.Transformer)},function(e,t,n){"use strict";n.r(t),n.d(t,"RemoveColumnsTransformer",(function(){return c}));n(87),n(27),n(0),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(24);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)}function i(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 a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(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=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var c=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(l,e);var t,n,o,u=s(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=u.call(this)).columnsSpan=e,t}return t=l,(n=[{key:"sheet",get:function(){return this.columnsSpan.sheet}},{key:"isIrreversible",value:function(){return!0}},{key:"transformRowRangeAst",value:function(e,t){return e}},{key:"transformCellRange",value:function(e,t,n){return this.transformRange(e,t,n)}},{key:"transformRowRange",value:function(e,t,n){throw Error("Not implemented")}},{key:"transformColumnRange",value:function(e,t,n){return this.transformRange(e,t,n)}},{key:"transformCellAddress",value:function(e,t){var n=Object(r.absoluteSheetReference)(e,t);if(this.columnsSpan.sheet!==t.sheet&&this.columnsSpan.sheet!==n)return!1;if(this.columnsSpan.sheet!==t.sheet&&this.columnsSpan.sheet===n){var o=e.toSimpleColumnAddress(t);if(o.col<this.columnsSpan.columnStart)return!1;if(o.col>this.columnsSpan.columnEnd)return e.shiftedByColumns(-this.columnsSpan.numberOfColumns)}if(this.columnsSpan.sheet===t.sheet&&this.columnsSpan.sheet!==n){if(e.isColumnAbsolute())return!1;if(t.col<this.columnsSpan.columnStart)return!1;if(t.col>this.columnsSpan.columnEnd)return e.shiftedByColumns(this.columnsSpan.numberOfColumns)}if(this.columnsSpan.sheet===t.sheet&&this.columnsSpan.sheet===n)if(e.isColumnAbsolute()){if(e.col<this.columnsSpan.columnStart)return!1;if(e.col>this.columnsSpan.columnEnd)return e.shiftedByColumns(-this.columnsSpan.numberOfColumns)}else{var i=e.toSimpleColumnAddress(t);if(i.col<this.columnsSpan.columnStart){if(t.col<this.columnsSpan.columnStart)return!1;if(t.col>this.columnsSpan.columnEnd)return e.shiftedByColumns(this.columnsSpan.numberOfColumns)}else if(i.col>this.columnsSpan.columnEnd){if(t.col<this.columnsSpan.columnStart)return e.shiftedByColumns(-this.columnsSpan.numberOfColumns);if(t.col>this.columnsSpan.columnEnd)return!1}}return r.ErrorType.REF}},{key:"fixNodeAddress",value:function(e){return this.columnsSpan.sheet===e.sheet&&this.columnsSpan.columnStart<=e.col?Object.assign(Object.assign({},e),{col:e.col-this.columnsSpan.numberOfColumns}):e}},{key:"transformRange",value:function(e,t,n){var o=Object(r.absoluteSheetReference)(e,n),i=e,a=t;if(this.columnsSpan.sheet===o){var s=e.toSimpleColumnAddress(n),u=t.toSimpleColumnAddress(n);if(this.columnsSpan.columnStart<=s.col&&this.columnsSpan.columnEnd>=u.col)return r.ErrorType.REF;s.col>=this.columnsSpan.columnStart&&s.col<=this.columnsSpan.columnEnd&&(i=e.shiftedByColumns(this.columnsSpan.columnEnd-s.col+1)),u.col>=this.columnsSpan.columnStart&&u.col<=this.columnsSpan.columnEnd&&(a=t.shiftedByColumns(-(u.col-this.columnsSpan.columnStart+1)))}var l=this.transformCellAddress(i,n),c=this.transformCellAddress(a,n);if(!1===l&&!1===c)return[i,a];if(l===r.ErrorType.REF||c===r.ErrorType.REF)throw Error("Cannot happen");return[l||i,c||a]}}])&&i(t.prototype,n),o&&i(t,o),Object.defineProperty(t,"prototype",{writable:!1}),l}(n(139).Transformer)},function(e,t,n){"use strict";n.r(t),n.d(t,"RemoveSheetTransformer",(function(){return h}));n(27),n(0),n(7),n(13),n(25),n(22),n(2),n(12),n(8),n(9),n(10),n(3),n(4);var r=n(24);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)}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;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,t)||a(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 a(e,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}function s(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 u(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 l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var h=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(f,e);var t,n,o,s=c(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=s.call(this)).sheet=e,t}return t=f,(n=[{key:"isIrreversible",value:function(){return!0}},{key:"performEagerTransformations",value:function(e,t){var n,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=a(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw i}}}}(e.arrayFormulaNodes());try{for(r.s();!(n=r.n()).done;){var o=n.value,s=i(this.transformSingleAst(o.getFormula(e.lazilyTransformingAstService),o.getAddress(e.lazilyTransformingAstService)),1)[0];o.setFormula(s)}}catch(e){r.e(e)}finally{r.f()}}},{key:"fixNodeAddress",value:function(e){return e}},{key:"transformCellAddress",value:function(e,t){return this.transformAddress(e)}},{key:"transformCellRange",value:function(e,t,n){return this.transformAddress(e)}},{key:"transformColumnRange",value:function(e,t,n){return this.transformAddress(e)}},{key:"transformRowRange",value:function(e,t,n){return this.transformAddress(e)}},{key:"transformAddress",value:function(e){return e.sheet===this.sheet&&r.ErrorType.REF}}])&&u(t.prototype,n),o&&u(t,o),Object.defineProperty(t,"prototype",{writable:!1}),f}(n(139).Transformer)},function(e,t,n){"use strict";n.r(t),n.d(t,"Evaluator",(function(){return m}));n(0),n(26),n(13),n(25),n(22),n(2),n(12),n(8),n(9),n(10),n(3),n(4);var r=n(86),o=n(224),i=n(24),a=n(271),s=n(123),u=n(115),l=n(187),c=n(51),f=n(78),d=n(125);function h(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return p(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 p(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function p(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 y(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)}}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
var m=function(){function e(t,n,r,o,i,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=t,this.stats=n,this.interpreter=r,this.lazilyTransformingAstService=o,this.dependencyGraph=i,this.columnSearch=a}var t,n,p;return t=e,(n=[{key:"run",value:function(){var e=this;this.stats.start(d.StatType.TOP_SORT);var t=this.dependencyGraph.topSortWithScc(),n=t.sorted,r=t.cycled;this.stats.end(d.StatType.TOP_SORT),this.stats.measure(d.StatType.EVALUATION,(function(){e.recomputeFormulas(r,n)}))}},{key:"partialRun",value:function(e){var t=this,n=a.ContentChanges.empty();return this.stats.measure(d.StatType.EVALUATION,(function(){t.dependencyGraph.graph.getTopSortedWithSccSubgraphFrom(e,(function(e){if(e instanceof u.FormulaVertex){var r=e.isComputed()?e.getCellValue():void 0,o=t.recomputeFormulaVertexValue(e);if(o!==r){var i=e.getAddress(t.lazilyTransformingAstService);return n.addChange(o,i),t.columnSearch.change(Object(c.getRawValue)(r),Object(c.getRawValue)(o),i),!0}return!1}return!(e instanceof s.RangeVertex&&(e.clearCache(),0))}),(function(e){if(e instanceof s.RangeVertex)e.clearCache();else if(e instanceof u.FormulaVertex){var r=e.getAddress(t.lazilyTransformingAstService);t.columnSearch.remove(Object(c.getRawValue)(e.valueOrUndef()),r);var o=new i.CellError(i.ErrorType.CYCLE,void 0,e);e.setCellValue(o),n.addChange(o,r)}}))})),n}},{key:"runAndForget",value:function(e,t,n){var i,a=this,u=[],c=h(Object(o.absolutizeDependencies)(n,t));try{for(c.s();!(i=c.n()).done;){var f=i.value;if(f instanceof r.AbsoluteCellRange){var d=f;if(void 0===this.dependencyGraph.getRange(d.start,d.end)){var p=new s.RangeVertex(d);this.dependencyGraph.rangeMapping.setRange(p),u.push(p)}}}}catch(e){c.e(e)}finally{c.f()}var y=this.evaluateAstToCellValue(e,new l.InterpreterState(t,this.config.useArrayArithmetic));return u.forEach((function(e){a.dependencyGraph.rangeMapping.removeRange(e)})),y}},{key:"recomputeFormulas",value:function(e,t){var n=this;e.forEach((function(e){e instanceof u.FormulaVertex&&e.setCellValue(new i.CellError(i.ErrorType.CYCLE,void 0,e))})),t.forEach((function(e){if(e instanceof u.FormulaVertex){var t=n.recomputeFormulaVertexValue(e),r=e.getAddress(n.lazilyTransformingAstService);n.columnSearch.add(Object(c.getRawValue)(t),r)}else e instanceof s.RangeVertex&&e.clearCache()}))}},{key:"recomputeFormulaVertexValue",value:function(e){var t=e.getAddress(this.lazilyTransformingAstService);if(e instanceof s.ArrayVertex&&(e.array.size.isRef||!this.dependencyGraph.isThereSpaceForArray(e)))return e.setNoSpace();var n=e.getFormula(this.lazilyTransformingAstService),r=this.evaluateAstToCellValue(n,new l.InterpreterState(t,this.config.useArrayArithmetic,e));return e.setCellValue(r)}},{key:"evaluateAstToCellValue",value:function(e,t){var n=this.interpreter.evaluateAst(e,t);return n instanceof f.SimpleRangeValue?n:n===c.EmptyValue&&this.config.evaluateNullToZero?0:n}}])&&y(t.prototype,n),p&&y(t,p),Object.defineProperty(t,"prototype",{writable:!1}),e}()},function(e,t){var n=Math.log,r=Math.LOG10E;e.exports=Math.log10||function(e){return n(e)*r}},function(e,t,n){"use strict";n.r(t),n.d(t,"GraphBuilder",(function(){return h})),n.d(t,"SimpleStrategy",(function(){return p}));n(0),n(26),n(3),n(33),n(2),n(4);var r=n(224),o=n(124),i=n(24),a=n(190),s=n(123),u=n(51),l=n(125);function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var h=function(){function e(t,n,r,o,i,a){c(this,e),this.dependencyGraph=t,this.columnSearch=n,this.parser=r,this.cellContentParser=o,this.stats=i,this.arraySizePredictor=a,this.buildStrategy=new p(t,n,r,i,o,a)}return d(e,[{key:"buildGraph",value:function(e,t){var n=this,r=t.measure(l.StatType.COLLECT_DEPENDENCIES,(function(){return n.buildStrategy.run(e)}));this.dependencyGraph.getAndClearContentChanges(),t.measure(l.StatType.PROCESS_DEPENDENCIES,(function(){return n.processDependencies(r)}))}},{key:"processDependencies",value:function(e){var t=this;e.forEach((function(e,n){t.dependencyGraph.processCellDependencies(e,n)}))}}]),e}(),p=function(){function e(t,n,r,o,i,a){c(this,e),this.dependencyGraph=t,this.columnIndex=n,this.parser=r,this.stats=o,this.cellContentParser=i,this.arraySizePredictor=a}return d(e,[{key:"run",value:function(e){var t=this,n=new Map;for(var c in e)for(var f=this.dependencyGraph.getSheetId(c),d=e[c],h=0;h<d.length;++h)for(var p=d[h],y=function(e){var c=p[e],d=Object(i.simpleCellAddress)(f,e,h),y=t.cellContentParser.parse(c);if(y instanceof a.CellContent.Formula){var m=t.stats.measure(l.StatType.PARSER,(function(){return t.parser.parse(y.formula,d)}));if(m.errors.length>0){t.shrinkArrayIfNeeded(d);var g=new s.ParsingErrorVertex(m.errors,y.formula);t.dependencyGraph.addVertex(d,g)}else{t.shrinkArrayIfNeeded(d);var v=t.arraySizePredictor.checkArraySize(m.ast,d);if(v.isScalar()){var E=new s.FormulaCellVertex(m.ast,d,0);n.set(E,Object(r.absolutizeDependencies)(m.dependencies,d)),t.dependencyGraph.addVertex(d,E),m.hasVolatileFunction&&t.dependencyGraph.markAsVolatile(E),m.hasStructuralChangeFunction&&t.dependencyGraph.markAsDependentOnStructureChange(E)}else{var b=new s.ArrayVertex(m.ast,d,new o.ArraySize(v.width,v.height));n.set(b,Object(r.absolutizeDependencies)(m.dependencies,d)),t.dependencyGraph.addArrayVertex(d,b)}}}else if(y instanceof a.CellContent.Empty);else{t.shrinkArrayIfNeeded(d);var T=new s.ValueCellVertex(y.value,c);t.columnIndex.add(Object(u.getRawValue)(y.value),d),t.dependencyGraph.addVertex(d,T)}},m=0;m<p.length;++m)y(m);return n}},{key:"shrinkArrayIfNeeded",value:function(e){var t=this.dependencyGraph.getCell(e);t instanceof s.ArrayVertex&&this.dependencyGraph.shrinkArrayToCorner(t)}}]),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"VersionPlugin",(function(){return h}));n(3),n(33),n(0),n(2),n(4),n(13),n(18),n(27),n(7),n(8),n(9),n(10);var r=n(189),o=n(38);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(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 u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(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=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var d=new Map([["gpl-v3",1],["missing",2],["invalid",3],["expired",4]]),h=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(c,e);var t,n,o,i=l(c);function c(){return a(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"version",value:function(e,t){var n=this;return this.runFunction(e.args,t,this.metadata("VERSION"),(function(){var e,t=n.config,o=t.licenseKeyValidityState,i=t.licenseKey;return d.has(i)?e=d.get(i):d.has(o)?e=d.get(o):"valid"===o&&(e=i.slice(-5)),"HyperFormula v".concat(r.HyperFormula.version,", ").concat(e)}))}}])&&s(t.prototype,n),o&&s(t,o),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.FunctionPlugin);h.implementedFunctions={VERSION:{method:"version",parameters:[]}}},function(e,t,n){"use strict";n.r(t),n.d(t,"Interpreter",(function(){return b}));n(18),n(37),n(8),n(9),n(0),n(10),n(3),n(2),n(4),n(13),n(25),n(22),n(12);var r=n(86),o=n(368),i=n(24),a=n(45),s=n(100),u=n(106),l=n(716),c=n(291),f=n(187),d=n(51),h=n(78);function p(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(e)||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.")}()}function y(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=g(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;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,t)||g(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 g(e,t){if(e){if("string"==typeof e)return v(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)?v(e,t):void 0}}function v(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 E(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)}}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
var b=function(){function e(t,n,r,o,i,a,s,c,f,d){var h=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=t,this.dependencyGraph=n,this.columnSearch=r,this.stats=o,this.arithmeticHelper=i,this.functionRegistry=a,this.namedExpressions=s,this.serialization=c,this.arraySizePredictor=f,this.dateTimeHelper=d,this.equalOp=function(e,t){return C(h.arithmeticHelper.eq,e,t)},this.notEqualOp=function(e,t){return C(h.arithmeticHelper.neq,e,t)},this.greaterThanOp=function(e,t){return C(h.arithmeticHelper.gt,e,t)},this.lessThanOp=function(e,t){return C(h.arithmeticHelper.lt,e,t)},this.greaterThanOrEqualOp=function(e,t){return C(h.arithmeticHelper.geq,e,t)},this.lessThanOrEqualOp=function(e,t){return C(h.arithmeticHelper.leq,e,t)},this.concatOp=function(e,t){return C(h.arithmeticHelper.concat,Object(u.coerceScalarToString)(e),Object(u.coerceScalarToString)(t))},this.plusOp=function(e,t){return C(h.arithmeticHelper.addWithEpsilon,h.arithmeticHelper.coerceScalarToNumberOrError(e),h.arithmeticHelper.coerceScalarToNumberOrError(t))},this.minusOp=function(e,t){return C(h.arithmeticHelper.subtract,h.arithmeticHelper.coerceScalarToNumberOrError(e),h.arithmeticHelper.coerceScalarToNumberOrError(t))},this.timesOp=function(e,t){return C(h.arithmeticHelper.multiply,h.arithmeticHelper.coerceScalarToNumberOrError(e),h.arithmeticHelper.coerceScalarToNumberOrError(t))},this.powerOp=function(e,t){return C(h.arithmeticHelper.pow,h.arithmeticHelper.coerceScalarToNumberOrError(e),h.arithmeticHelper.coerceScalarToNumberOrError(t))},this.divOp=function(e,t){return C(h.arithmeticHelper.divide,h.arithmeticHelper.coerceScalarToNumberOrError(e),h.arithmeticHelper.coerceScalarToNumberOrError(t))},this.unaryMinusOp=function(e){return T(h.arithmeticHelper.unaryMinus,h.arithmeticHelper.coerceScalarToNumberOrError(e))},this.percentOp=function(e){return T(h.arithmeticHelper.unaryPercent,h.arithmeticHelper.coerceScalarToNumberOrError(e))},this.unaryPlusOp=function(e){return h.arithmeticHelper.unaryPlus(e)},this.functionRegistry.initializePlugins(this),this.criterionBuilder=new l.CriterionBuilder(t)}var t,n,g;return t=e,(n=[{key:"evaluateAst",value:function(e,t){var n=this.evaluateAstWithoutPostprocessing(e,t);if(Object(d.isExtendedNumber)(n)){if(Object(u.isNumberOverflow)(Object(d.getRawValue)(n)))return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.NaN);n=Object(d.cloneNumber)(n,Object(u.fixNegativeZero)(Object(d.getRawValue)(n)))}if(n instanceof h.SimpleRangeValue&&1===n.height()&&1===n.width()){var r=m(n.data,1);n=m(r[0],1)[0]}return function(e,t){return e instanceof i.CellError&&void 0!==t?e.attachRootVertex(t):e}(n,t.formulaVertex)}},{key:"evaluateAstWithoutPostprocessing",value:function(e,t){switch(e.type){case s.AstNodeType.EMPTY:return d.EmptyValue;case s.AstNodeType.CELL_REFERENCE:var n=e.reference.toSimpleCellAddress(t.formulaAddress);return Object(i.invalidSimpleCellAddress)(n)?new i.CellError(i.ErrorType.REF,a.ErrorMessage.BadRef):this.dependencyGraph.getCellValue(n);case s.AstNodeType.NUMBER:case s.AstNodeType.STRING:return e.value;case s.AstNodeType.CONCATENATE_OP:var l=this.evaluateAst(e.left,t),m=this.evaluateAst(e.right,t);return this.binaryRangeWrapper(this.concatOp,l,m,t);case s.AstNodeType.EQUALS_OP:var g=this.evaluateAst(e.left,t),v=this.evaluateAst(e.right,t);return this.binaryRangeWrapper(this.equalOp,g,v,t);case s.AstNodeType.NOT_EQUAL_OP:var E=this.evaluateAst(e.left,t),b=this.evaluateAst(e.right,t);return this.binaryRangeWrapper(this.notEqualOp,E,b,t);case s.AstNodeType.GREATER_THAN_OP:var T=this.evaluateAst(e.left,t),C=this.evaluateAst(e.right,t);return this.binaryRangeWrapper(this.greaterThanOp,T,C,t);case s.AstNodeType.LESS_THAN_OP:var w=this.evaluateAst(e.left,t),R=this.evaluateAst(e.right,t);return this.binaryRangeWrapper(this.lessThanOp,w,R,t);case s.AstNodeType.GREATER_THAN_OR_EQUAL_OP:var O=this.evaluateAst(e.left,t),S=this.evaluateAst(e.right,t);return this.binaryRangeWrapper(this.greaterThanOrEqualOp,O,S,t);case s.AstNodeType.LESS_THAN_OR_EQUAL_OP:var A=this.evaluateAst(e.left,t),N=this.evaluateAst(e.right,t);return this.binaryRangeWrapper(this.lessThanOrEqualOp,A,N,t);case s.AstNodeType.PLUS_OP:var _=this.evaluateAst(e.left,t),k=this.evaluateAst(e.right,t);return this.binaryRangeWrapper(this.plusOp,_,k,t);case s.AstNodeType.MINUS_OP:var M=this.evaluateAst(e.left,t),I=this.evaluateAst(e.right,t);return this.binaryRangeWrapper(this.minusOp,M,I,t);case s.AstNodeType.TIMES_OP:var P=this.evaluateAst(e.left,t),x=this.evaluateAst(e.right,t);return this.binaryRangeWrapper(this.timesOp,P,x,t);case s.AstNodeType.POWER_OP:var D=this.evaluateAst(e.left,t),L=this.evaluateAst(e.right,t);return this.binaryRangeWrapper(this.powerOp,D,L,t);case s.AstNodeType.DIV_OP:var F=this.evaluateAst(e.left,t),j=this.evaluateAst(e.right,t);return this.binaryRangeWrapper(this.divOp,F,j,t);case s.AstNodeType.PLUS_UNARY_OP:var U=this.evaluateAst(e.value,t);return this.unaryRangeWrapper(this.unaryPlusOp,U,t);case s.AstNodeType.MINUS_UNARY_OP:var H=this.evaluateAst(e.value,t);return this.unaryRangeWrapper(this.unaryMinusOp,H,t);case s.AstNodeType.PERCENT_OP:var B=this.evaluateAst(e.value,t);return this.unaryRangeWrapper(this.percentOp,B,t);case s.AstNodeType.FUNCTION_CALL:if("valid"!==this.config.licenseKeyValidityState&&!c.FunctionRegistry.functionIsProtected(e.procedureName))return new i.CellError(i.ErrorType.LIC,a.ErrorMessage.LicenseKey(this.config.licenseKeyValidityState));var V=this.functionRegistry.getFunction(e.procedureName);return void 0!==V?V(e,new f.InterpreterState(t.formulaAddress,t.arraysFlag||this.functionRegistry.isArrayFunction(e.procedureName),t.formulaVertex)):new i.CellError(i.ErrorType.NAME,a.ErrorMessage.FunctionName(e.procedureName));case s.AstNodeType.NAMED_EXPRESSION:var W=this.namedExpressions.nearestNamedExpression(e.expressionName,t.formulaAddress.sheet);return W?this.dependencyGraph.getCellValue(W.address):new i.CellError(i.ErrorType.NAME,a.ErrorMessage.NamedExpressionName(e.expressionName));case s.AstNodeType.CELL_RANGE:if(!this.rangeSpansOneSheet(e))return new i.CellError(i.ErrorType.REF,a.ErrorMessage.RangeManySheets);var Y=r.AbsoluteCellRange.fromCellRange(e,t.formulaAddress),G=this.dependencyGraph.getArray(Y);if(G){var z=G.array;if(z instanceof o.NotComputedArray)throw new Error("Array should be already computed");if(z instanceof i.CellError)return z;if(z instanceof o.ArrayValue)return h.SimpleRangeValue.fromRange(z.raw(),Y,this.dependencyGraph);throw new Error("Unknown array")}return h.SimpleRangeValue.onlyRange(Y,this.dependencyGraph);case s.AstNodeType.COLUMN_RANGE:if(!this.rangeSpansOneSheet(e))return new i.CellError(i.ErrorType.REF,a.ErrorMessage.RangeManySheets);var K=r.AbsoluteColumnRange.fromColumnRange(e,t.formulaAddress);return h.SimpleRangeValue.onlyRange(K,this.dependencyGraph);case s.AstNodeType.ROW_RANGE:if(!this.rangeSpansOneSheet(e))return new i.CellError(i.ErrorType.REF,a.ErrorMessage.RangeManySheets);var X=r.AbsoluteRowRange.fromRowRangeAst(e,t.formulaAddress);return h.SimpleRangeValue.onlyRange(X,this.dependencyGraph);case s.AstNodeType.PARENTHESIS:return this.evaluateAst(e.expression,t);case s.AstNodeType.ARRAY:var q,Q=void 0,$=[],Z=y(e.args);try{for(Z.s();!(q=Z.n()).done;){var J,ee=q.value,te=void 0,ne=[],re=y(ee);try{for(re.s();!(J=re.n()).done;){var oe=J.value,ie=Object(u.coerceToRange)(this.evaluateAst(oe,t)),ae=ie.height();if(void 0===te)te=ae,ne.push.apply(ne,p(ie.data));else{if(te!==ae)return new i.CellError(i.ErrorType.REF,a.ErrorMessage.SizeMismatch);for(var se=0;se<ae;se++){var ue;(ue=ne[se]).push.apply(ue,p(ie.data[se]))}}}}catch(e){re.e(e)}finally{re.f()}var le=ne[0].length;if(void 0===Q)Q=le,$.push.apply($,ne);else{if(Q!==le)return new i.CellError(i.ErrorType.REF,a.ErrorMessage.SizeMismatch);$.push.apply($,ne)}}}catch(e){Z.e(e)}finally{Z.f()}return h.SimpleRangeValue.onlyValues($);case s.AstNodeType.ERROR_WITH_RAW_INPUT:case s.AstNodeType.ERROR:return e.error}}},{key:"rangeSpansOneSheet",value:function(e){return e.start.sheet===e.end.sheet}},{key:"unaryRangeWrapper",value:function(e,t,n){var r;if(t instanceof h.SimpleRangeValue&&!n.arraysFlag&&(t=null!==(r=Object(u.coerceRangeToScalar)(t,n))&&void 0!==r?r:new i.CellError(i.ErrorType.VALUE,a.ErrorMessage.ScalarExpected)),t instanceof i.CellError)return t;if(t instanceof h.SimpleRangeValue){var o=t.data.map((function(t){return t.map(e)}));return h.SimpleRangeValue.onlyValues(o)}return e(t)}},{key:"binaryRangeWrapper",value:function(e,t,n,r){var o,s;if(t instanceof h.SimpleRangeValue&&!r.arraysFlag&&(t=null!==(o=Object(u.coerceRangeToScalar)(t,r))&&void 0!==o?o:new i.CellError(i.ErrorType.VALUE,a.ErrorMessage.ScalarExpected)),t instanceof i.CellError)return t;if(n instanceof h.SimpleRangeValue&&!r.arraysFlag&&(n=null!==(s=Object(u.coerceRangeToScalar)(n,r))&&void 0!==s?s:new i.CellError(i.ErrorType.VALUE,a.ErrorMessage.ScalarExpected)),n instanceof i.CellError)return n;if(t instanceof h.SimpleRangeValue||n instanceof h.SimpleRangeValue){if(!(t instanceof h.SimpleRangeValue)){if(n.isAdHoc()){for(var l=n.data,c=0;c<l.length;c++)for(var f=0;f<l[0].length;f++)l[c][f]=e(t,l[c][f]);return h.SimpleRangeValue.onlyValues(l)}t=h.SimpleRangeValue.fromScalar(t)}if(!(n instanceof h.SimpleRangeValue)){if(t.isAdHoc()){for(var d=t.data,p=0;p<d.length;p++)for(var y=0;y<d[0].length;y++)d[p][y]=e(d[p][y],n);return h.SimpleRangeValue.onlyValues(d)}n=h.SimpleRangeValue.fromScalar(n)}if(t.width()===n.width()&&t.height()===n.height()){if(t.isAdHoc()){for(var m=t.data,g=n.data,v=0;v<m.length;v++)for(var E=0;E<m[0].length;E++)m[v][E]=e(m[v][E],g[v][E]);return h.SimpleRangeValue.onlyValues(m)}if(n.isAdHoc()){for(var b=t.data,T=n.data,C=0;C<b.length;C++)for(var w=0;w<b[0].length;w++)T[C][w]=e(b[C][w],T[C][w]);return h.SimpleRangeValue.onlyValues(T)}}for(var R=Math.max(t.width(),n.width()),O=Math.max(t.height(),n.height()),S=Array(O),A=0;A<O;A++)S[A]=Array(R);for(var N=0;N<O;N++)for(var _=1!==t.height()?N:0,k=1!==n.height()?N:0,M=0;M<R;M++){var I=1!==t.width()?M:0,P=1!==n.width()?M:0;_<t.height()&&k<n.height()&&I<t.width()&&P<n.width()?S[N][M]=e(t.data[_][I],n.data[k][P]):S[N][M]=new i.CellError(i.ErrorType.NA)}return h.SimpleRangeValue.onlyValues(S)}return e(t,n)}}])&&E(t.prototype,n),g&&E(t,g),Object.defineProperty(t,"prototype",{writable:!1}),e}();function T(e,t){return t instanceof i.CellError?t:e(t)}function C(e,t,n){return t instanceof i.CellError?t:n instanceof i.CellError?n:e(t,n)}},function(e,t,n){"use strict";n.r(t),n.d(t,"CriterionType",(function(){return r})),n.d(t,"buildCriterion",(function(){return a})),n.d(t,"CriterionBuilder",(function(){return s})),n.d(t,"buildCriterionLambda",(function(){return l}));n(12);var r,o=n(51);function i(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(e){e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.NOT_EQUAL="NOT_EQUAL",e.EQUAL="EQUAL"}(r||(r={}));var a=function(e,t){return{operator:e,value:t}},s=function(){function e(t){var n,r,o,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.trueString=null!==(r=null===(n=t.translationPackage.getMaybeFunctionTranslation("TRUE"))||void 0===n?void 0:n.toLowerCase())&&void 0!==r?r:"true",this.falseString=null!==(i=null===(o=t.translationPackage.getMaybeFunctionTranslation("FALSE"))||void 0===o?void 0:o.toLowerCase())&&void 0!==i?i:"false"}var t,n,s;
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/return t=e,(n=[{key:"fromCellValue",value:function(e,t){if("string"==typeof e||"boolean"==typeof e||"number"==typeof e){var n=this.parseCriterion(e,t);if(void 0!==n)return{raw:e,lambda:l(n,t)}}}},{key:"parseCriterion",value:function(e,t){if("number"==typeof e||"boolean"==typeof e)return a(r.EQUAL,e);if("string"==typeof e){var n,i,s=u.exec(e);s?(i=function(e){switch(e){case">":return r.GREATER_THAN;case">=":return r.GREATER_THAN_OR_EQUAL;case"<":return r.LESS_THAN;case"<=":return r.LESS_THAN_OR_EQUAL;case"<>":return r.NOT_EQUAL;case"=":return r.EQUAL;default:return}}(s[1]),n=s[2]):(i=r.EQUAL,n=e);var l=t.coerceToMaybeNumber(n),c=n.toLowerCase()===this.trueString||n.toLowerCase()!==this.falseString&&void 0;if(void 0===i)return;if(""===n)return a(i,null);if(void 0!==l)return a(i,Object(o.getRawValue)(l));if(i===r.EQUAL||i===r.NOT_EQUAL)return a(i,null!=c?c:n)}}}])&&i(t.prototype,n),s&&i(t,s),Object.defineProperty(t,"prototype",{writable:!1}),e}(),u=/([<>=]+)(.*)/;var l=function(e,t){switch(e.operator){case r.GREATER_THAN:return"number"==typeof e.value?function(n){return"number"==typeof n&&t.floatCmp(n,e.value)>0}:function(e){return!1};case r.GREATER_THAN_OR_EQUAL:return"number"==typeof e.value?function(n){return"number"==typeof n&&t.floatCmp(n,e.value)>=0}:function(e){return!1};case r.LESS_THAN:return"number"==typeof e.value?function(n){return"number"==typeof n&&t.floatCmp(n,e.value)<0}:function(e){return!1};case r.LESS_THAN_OR_EQUAL:return"number"==typeof e.value?function(n){return"number"==typeof n&&t.floatCmp(n,e.value)<=0}:function(e){return!1};case r.EQUAL:return"number"==typeof e.value?function(n){if("number"==typeof n)return 0===t.floatCmp(n,e.value);if("string"==typeof n){if(""===n)return!1;var r=t.coerceToMaybeNumber(n);return void 0!==r&&0===t.floatCmp(r,e.value)}return!1}:"string"==typeof e.value?t.eqMatcherFunction(e.value):"boolean"==typeof e.value?function(t){return"boolean"==typeof t&&t===e.value}:function(e){return e===o.EmptyValue};case r.NOT_EQUAL:return"number"==typeof e.value?function(n){if("number"==typeof n)return 0!==t.floatCmp(n,e.value);if("string"==typeof n){if(""===n)return!0;var r=t.coerceToMaybeNumber(n);return void 0===r||0!==t.floatCmp(r,e.value)}return!0}:"string"==typeof e.value?t.neqMatcherFunction(e.value):"boolean"==typeof e.value?function(t){return"boolean"!=typeof t||t!==e.value}:function(e){return e!==o.EmptyValue}}}},function(e,t,n){"use strict";n.r(t),n.d(t,"LazilyTransformingAstService",(function(){return u}));n(8),n(9),n(0),n(10),n(3),n(2),n(4),n(13),n(25),n(22),n(12),n(85);var r=n(718),o=n(125);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;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,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(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 a(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 a(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 s(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)}}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.stats=t,this.transformations=[]}var t,n,a;return t=e,(n=[{key:"version",value:function(){return this.transformations.length}},{key:"addTransformation",value:function(e){return void 0!==this.combinedTransformer?this.combinedTransformer.add(e):this.transformations.push(e),this.version()}},{key:"beginCombinedMode",value:function(e){this.combinedTransformer=new r.CombinedTransformer(e)}},{key:"commitCombinedMode",value:function(){if(void 0===this.combinedTransformer)throw"Combined mode wasn't started";return this.transformations.push(this.combinedTransformer),this.combinedTransformer=void 0,this.version()}},{key:"applyTransformations",value:function(e,t,n){this.stats.start(o.StatType.TRANSFORM_ASTS_POSTPONED);for(var r=n;r<this.transformations.length;r++){var a=this.transformations[r];a.isIrreversible()&&(this.undoRedo.storeDataForVersion(r,t,this.parser.computeHashFromAst(e)),this.parser.rememberNewAst(e));var s=i(a.transformSingleAst(e,t),2);e=s[0],t=s[1]}var u=this.parser.rememberNewAst(e);return this.stats.end(o.StatType.TRANSFORM_ASTS_POSTPONED),[u,t,this.transformations.length]}},{key:"getTransformationsFrom",value:regeneratorRuntime.mark((function e(t,n){var r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t;case 1:if(!(r<this.transformations.length)){e.next=9;break}if(o=this.transformations[r],n&&!n(o)){e.next=6;break}return e.next=6,o;case 6:r++,e.next=1;break;case 9:case"end":return e.stop()}}),e,this)}))}])&&s(t.prototype,n),a&&s(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"CombinedTransformer",(function(){return a}));n(0),n(26),n(8),n(9),n(10),n(3),n(2),n(4),n(13),n(25),n(22),n(12);function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;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,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,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)}}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sheet=t,this.transformations=[]}var t,n,o;return t=e,(n=[{key:"add",value:function(e){this.transformations.push(e)}},{key:"performEagerTransformations",value:function(e,t){this.transformations.forEach((function(n){return n.performEagerTransformations(e,t)}))}},{key:"transformSingleAst",value:function(e,t){var n=e,o=t;return this.transformations.forEach((function(e){var t=r(e.transformSingleAst(n,o),2);n=t[0],o=t[1]})),[n,o]}},{key:"isIrreversible",value:function(){return!0}}])&&i(t.prototype,n),o&&i(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"buildColumnSearchStrategy",(function(){return i}));var r=n(382),o=n(720);
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
function i(e,t,n){return t.useColumnIndex?new o.ColumnIndex(e,t,n):new r.ColumnBinarySearch(e,t)}},function(e,t,n){"use strict";n.r(t),n.d(t,"ColumnIndex",(function(){return g})),n.d(t,"upperBound",(function(){return v})),n.d(t,"lowerBound",(function(){return E}));n(3),n(33),n(0),n(2),n(4),n(140),n(54),n(18),n(13),n(25),n(22),n(12),n(8),n(9),n(10);var r=n(24),o=n(378),i=n(379),a=n(106),s=n(51),u=n(78),l=n(125),c=n(382);function f(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||p(e)||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.")}()}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;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,t)||p(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){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=p(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function p(e,t){if(e){if("string"==typeof e)return y(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)?y(e,t):void 0}}function y(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 m(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)}}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
var g=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.dependencyGraph=t,this.config=n,this.stats=r,this.index=new Map,this.transformingService=this.dependencyGraph.lazilyTransformingAstService,this.binarySearchStrategy=new c.ColumnBinarySearch(t,n)}var t,n,p;return t=e,(n=[{key:"add",value:function(e,t){if(!(e===s.EmptyValue||e instanceof r.CellError))if(e instanceof u.SimpleRangeValue){var n,o=h(e.entriesFromTopLeftCorner(t));try{for(o.s();!(n=o.n()).done;){var i=d(n.value,2),a=i[0],l=i[1];this.addSingleCellValue(Object(s.getRawValue)(a),l)}}catch(e){o.e(e)}finally{o.f()}}else this.addSingleCellValue(e,t)}},{key:"remove",value:function(e,t){if(void 0!==e)if(e instanceof u.SimpleRangeValue){var n,r=h(e.entriesFromTopLeftCorner(t));try{for(r.s();!(n=r.n()).done;){var o=d(n.value,2),i=o[0],a=o[1];this.removeSingleValue(Object(s.getRawValue)(i),a)}}catch(e){r.e(e)}finally{r.f()}}else this.removeSingleValue(e,t)}},{key:"change",value:function(e,t,n){e!==t&&(this.remove(e,n),this.add(t,n))}},{key:"applyChanges",value:function(e){var t,n=h(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;void 0!==r.oldValue&&this.change(Object(s.getRawValue)(r.oldValue),Object(s.getRawValue)(r.value),r.address)}}catch(e){n.e(e)}finally{n.f()}}},{key:"moveValues",value:function(e,t,n,o){var i,a=h(e);try{for(a.s();!(i=a.n()).done;){var s=d(i.value,2),u=s[0],l=s[1],c=Object(r.movedSimpleCellAddress)(l,o,t,n);this.remove(u,l),this.add(u,c)}}catch(e){a.e(e)}finally{a.f()}}},{key:"removeValues",value:function(e){var t,n=h(e);try{for(n.s();!(t=n.n()).done;){var r=d(t.value,2),o=r[0],i=r[1];this.remove(o,i)}}catch(e){n.e(e)}finally{n.f()}}},{key:"find",value:function(e,t,n){var r=t.range;if(void 0===r)return this.binarySearchStrategy.find(e,t,n);this.ensureRecentData(r.sheet,r.start.col,e);var o=this.getColumnMap(r.sheet,r.start.col);if(!o)return-1;"string"==typeof e&&(e=Object(a.forceNormalizeString)(e));var i=o.get(e);if(!i)return this.binarySearchStrategy.find(e,t,n);var s=v(i.index,r.start.row),u=i.index[s];return u<=r.end.row?u-r.start.row:this.binarySearchStrategy.find(e,t,n)}},{key:"advancedFind",value:function(e,t){return this.binarySearchStrategy.advancedFind(e,t)}},{key:"addColumns",value:function(e){var t=this.index.get(e.sheet);t&&t.splice.apply(t,[e.columnStart,0].concat(f(Array(e.numberOfColumns))))}},{key:"removeColumns",value:function(e){var t=this.index.get(e.sheet);t&&t.splice(e.columnStart,e.numberOfColumns)}},{key:"removeSheet",value:function(e){this.index.delete(e)}},{key:"getColumnMap",value:function(e,t){this.index.has(e)||this.index.set(e,[]);var n=this.index.get(e),r=n[t];return r||(r=new Map,n[t]=r),r}},{key:"getValueIndex",value:function(e,t,n){var r=this.getColumnMap(e,t),o=this.getColumnMap(e,t).get(n);return o||(o={version:this.transformingService.version(),index:[]},r.set(n,o)),o}},{key:"ensureRecentData",value:function(e,t,n){var r=this.getValueIndex(e,t,n),a=this.transformingService.version();if(r.version!==a){var s,u=h(this.transformingService.getTransformationsFrom(r.version,(function(t){return t.sheet===e&&(t instanceof o.AddRowsTransformer||t instanceof i.RemoveRowsTransformer)})));try{for(u.s();!(s=u.n()).done;){var l=s.value;l instanceof o.AddRowsTransformer?this.addRows(t,l.rowsSpan,n):l instanceof i.RemoveRowsTransformer&&this.removeRows(t,l.rowsSpan,n)}}catch(e){u.e(e)}finally{u.f()}r.version=a}}},{key:"addSingleCellValue",value:function(e,t){var n=this;this.stats.measure(l.StatType.BUILD_COLUMN_INDEX,(function(){n.ensureRecentData(t.sheet,t.col,e),"string"==typeof e&&(e=Object(a.forceNormalizeString)(e));var r=n.getValueIndex(t.sheet,t.col,e);n.addValue(r,t.row)}))}},{key:"removeSingleValue",value:function(e,t){var n=this;this.stats.measure(l.StatType.BUILD_COLUMN_INDEX,(function(){n.ensureRecentData(t.sheet,t.col,e);var r=n.getColumnMap(t.sheet,t.col);"string"==typeof e&&(e=Object(a.forceNormalizeString)(e));var o=r.get(e);if(o){var i=v(o.index,t.row);o.index.splice(i,1),0===o.index.length&&r.delete(e),0===r.size&&delete n.index.get(t.sheet)[t.col]}}))}},{key:"addRows",value:function(e,t,n){var r=this.getValueIndex(t.sheet,e,n);this.shiftRows(r,t.rowStart,t.numberOfRows)}},{key:"removeRows",value:function(e,t,n){var r=this.getValueIndex(t.sheet,e,n);this.removeRowsFromValues(r,t),this.shiftRows(r,t.rowEnd+1,-t.numberOfRows)}},{key:"addValue",value:function(e,t){var n=E(e.index,t);e.index[n]!==t&&(n===e.index.length-1?e.index.push(t):e.index.splice(n+1,0,t))}},{key:"removeRowsFromValues",value:function(e,t){var n=v(e.index,t.rowStart),r=E(e.index,t.rowEnd);e.index[n]<=t.rowEnd&&e.index.splice(n,r-n+1)}},{key:"shiftRows",value:function(e,t,n){for(var r=v(e.index,t);r<e.index.length;++r)e.index[r]+=n}}])&&m(t.prototype,n),p&&m(t,p),Object.defineProperty(t,"prototype",{writable:!1}),e}();function v(e,t){for(var n=0,r=e.length-1;n<=r;){var o=Math.floor((n+r)/2);if(t>e[o])n=o+1;else{if(!(t<e[o]))return o;r=o-1}}return n}function E(e,t){for(var n=0,r=e.length-1;n<=r;){var o=Math.floor((n+r)/2);if(t>e[o])n=o+1;else{if(!(t<e[o]))return o;r=o-1}}return r}},function(e,t,n){"use strict";n.r(t),n.d(t,"NumberLiteralHelper",(function(){return o}));n(94),n(12),n(66),n(18),n(63),n(52);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)}}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=t;var n="."===this.config.thousandSeparator?"\\".concat(this.config.thousandSeparator):this.config.thousandSeparator,r="."===this.config.decimalSeparator?"\\".concat(this.config.decimalSeparator):this.config.decimalSeparator;this.numberPattern=new RegExp("^([+-]?((".concat(r,"\\d+)|(\\d+(").concat(n,"\\d{3,})*(").concat(r,"\\d*)?)))(e[+-]?\\d+)?$")),this.allThousandSeparatorsRegex=new RegExp("".concat(n),"g")}var t,n,o;return t=e,(n=[{key:"numericStringToMaybeNumber",value:function(e){if(this.numberPattern.test(e)){var t=this.numericStringToNumber(e);if(isNaN(t))return;return t}}},{key:"numericStringToNumber",value:function(e){var t=e.replace(this.allThousandSeparatorsRegex,"").replace(this.config.decimalSeparator,".");return Number(t)}}])&&r(t.prototype,n),o&&r(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"Serialization",(function(){return l}));n(37),n(13),n(0),n(25),n(22),n(2),n(12),n(8),n(9),n(10),n(3),n(4);var r=n(24),o=n(123),i=n(72);function a(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return s(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 s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function s(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 u(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)}}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
var l=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.dependencyGraph=t,this.unparser=n,this.exporter=r}var t,n,s;return t=e,(n=[{key:"getCellFormula",value:function(e,t){var n=this.dependencyGraph.getCell(e);if(n instanceof o.FormulaCellVertex){var r=n.getFormula(this.dependencyGraph.lazilyTransformingAstService);return t=null!=t?t:e,this.unparser.unparse(r,t)}if(n instanceof o.ArrayVertex){var i=n.getAddress(this.dependencyGraph.lazilyTransformingAstService);if(i.row!==e.row||i.col!==e.col||i.sheet!==e.sheet)return;t=null!=t?t:e;var a=n.getFormula(this.dependencyGraph.lazilyTransformingAstService);if(void 0!==a)return this.unparser.unparse(a,t)}else if(n instanceof o.ParsingErrorVertex)return n.getFormula()}},{key:"getCellSerialized",value:function(e,t){var n;return null!==(n=this.getCellFormula(e,t))&&void 0!==n?n:this.getRawValue(e)}},{key:"getCellValue",value:function(e){return this.exporter.exportValue(this.dependencyGraph.getScalarValue(e))}},{key:"getRawValue",value:function(e){return this.dependencyGraph.getRawValue(e)}},{key:"getSheetValues",value:function(e){var t=this;return this.genericSheetGetter(e,(function(e){return t.getCellValue(e)}))}},{key:"getSheetFormulas",value:function(e){var t=this;return this.genericSheetGetter(e,(function(e){return t.getCellFormula(e)}))}},{key:"genericSheetGetter",value:function(e,t){for(var n=this.dependencyGraph.getSheetHeight(e),o=this.dependencyGraph.getSheetWidth(e),i=new Array(n),a=0;a<n;a++){i[a]=new Array(o);for(var s=0;s<o;s++){var u=Object(r.simpleCellAddress)(e,s,a);i[a][s]=t(u)}for(var l=o-1;l>=0&&(null===i[a][l]||void 0===i[a][l]);l--)i[a].pop()}for(var c=n-1;c>=0&&0===i[c].length;c--)i.pop();return i}},{key:"genericAllSheetsGetter",value:function(e){var t,n={},r=a(this.dependencyGraph.sheetMapping.displayNames());try{for(r.s();!(t=r.n()).done;){var o=t.value,i=this.dependencyGraph.sheetMapping.fetch(o);n[o]=e(i)}}catch(e){r.e(e)}finally{r.f()}return n}},{key:"getSheetSerialized",value:function(e){var t=this;return this.genericSheetGetter(e,(function(e){return t.getCellSerialized(e)}))}},{key:"getAllSheetsValues",value:function(){var e=this;return this.genericAllSheetsGetter((function(t){return e.getSheetValues(t)}))}},{key:"getAllSheetsFormulas",value:function(){var e=this;return this.genericAllSheetsGetter((function(t){return e.getSheetFormulas(t)}))}},{key:"getAllSheetsSerialized",value:function(){var e=this;return this.genericAllSheetsGetter((function(t){return e.getSheetSerialized(t)}))}},{key:"getAllNamedExpressionsSerialized",value:function(){var e,t=this,n=[],r=0,o=a(this.dependencyGraph.sheetMapping.displayNames());try{for(o.s();!(e=o.n()).done;){var i=e.value,s=this.dependencyGraph.sheetMapping.fetch(i);n[s]=r,r++}}catch(e){o.e(e)}finally{o.f()}return this.dependencyGraph.namedExpressions.getAllNamedExpressions().map((function(e){return{name:e.expression.displayName,expression:t.getCellSerialized(e.expression.address),scope:void 0!==e.scope?n[e.scope]:void 0,options:e.expression.options}}))}},{key:"withNewConfig",value:function(t,n){var r=new i.Unparser(t,Object(i.buildLexerConfig)(t),this.dependencyGraph.sheetMapping.fetchDisplayName,n);return new e(this.dependencyGraph,r,this.exporter)}}])&&u(t.prototype,n),s&&u(t,s),Object.defineProperty(t,"prototype",{writable:!1}),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"objectDestroy",(function(){return i}));n(724),n(8),n(9),n(0),n(10),n(3),n(2),n(4),n(13),n(25),n(22),n(12);function r(e,t){return function(e){if(Array.isArray(e))return e}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;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,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){for(var t=0,n=Object.entries(e);t<n.length;t++){var o=r(n[t],2),i=o[0],s=o[1];s instanceof Function?e[i]=a(s):delete e[i]}}function a(e){return function(){throw new Error('The "'.concat(e,'" method cannot be called because this HyperFormula instance has been destroyed'))}}},function(e,t,n){var r=n(28),o=n(370).entries;r({target:"Object",stat:!0},{entries:function(e){return o(e)}})},function(e,t,n){"use strict";n.r(t),n.d(t,"Events",(function(){return r})),n.d(t,"Emitter",(function(){return p}));n(18),n(27),n(0),n(7),n(365),n(19),n(8),n(9),n(10),n(3),n(2),n(4);var r,o=n(726);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(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 u(){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=l(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function l(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/!function(e){e.SheetAdded="sheetAdded",e.SheetRemoved="sheetRemoved",e.SheetRenamed="sheetRenamed",e.NamedExpressionAdded="namedExpressionAdded",e.NamedExpressionRemoved="namedExpressionRemoved",e.ValuesUpdated="valuesUpdated",e.EvaluationSuspended="evaluationSuspended",e.EvaluationResumed="evaluationResumed"}(r||(r={}));var p=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(i,e);var t,n,r,o=f(i);function i(){return a(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"emit",value:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=u(h(i.prototype),"emit",this)).call.apply(t,[this,e].concat(r)),this}}])&&s(t.prototype,n),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.TinyEmitter)},function(e,t){function n(){}n.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function o(){r.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;r<o;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],o=[];if(r&&t)for(var i=0,a=r.length;i<a;i++)r[i].fn!==t&&r[i].fn._!==t&&o.push(r[i]);return o.length?n[e]=o:delete n[e],this}},e.exports=n,e.exports.TinyEmitter=n},function(e,t,n){"use strict";n.r(t);t.default={errors:{CYCLE:"#CYCLE!",DIV_BY_ZERO:"#DIV/0!",ERROR:"#ERROR!",NA:"#N/A",NAME:"#NAME?",NUM:"#NUM!",REF:"#REF!",SPILL:"#SPILL!",VALUE:"#VALUE!"},functions:{FILTER:"FILTER",ARRAY_CONSTRAIN:"ARRAY_CONSTRAIN",ARRAYFORMULA:"ARRAYFORMULA",ABS:"ABS",ACOS:"ACOS",ACOSH:"ACOSH",ACOT:"ACOT",ACOTH:"ACOTH",AND:"AND",ARABIC:"ARABIC",ASIN:"ASIN",ASINH:"ASINH",ATAN2:"ATAN2",ATAN:"ATAN",ATANH:"ATANH",AVERAGE:"AVERAGE",AVERAGEA:"AVERAGEA",AVERAGEIF:"AVERAGEIF",BASE:"BASE",BIN2DEC:"BIN2DEC",BIN2HEX:"BIN2HEX",BIN2OCT:"BIN2OCT",BITAND:"BITAND",BITLSHIFT:"BITLSHIFT",BITOR:"BITOR",BITRSHIFT:"BITRSHIFT",BITXOR:"BITXOR",CEILING:"CEILING",CHAR:"CHAR",CHOOSE:"CHOOSE",CLEAN:"CLEAN",CODE:"CODE",COLUMN:"COLUMN",COLUMNS:"COLUMNS",CONCATENATE:"CONCATENATE",CORREL:"CORREL",COS:"COS",COSH:"COSH",COT:"COT",COTH:"COTH",COUNT:"COUNT",COUNTA:"COUNTA",COUNTBLANK:"COUNTBLANK",COUNTIF:"COUNTIF",COUNTIFS:"COUNTIFS",COUNTUNIQUE:"COUNTUNIQUE",CSC:"CSC",CSCH:"CSCH",CUMIPMT:"CUMIPMT",CUMPRINC:"CUMPRINC",DATE:"DATE",DATEDIF:"DATEDIF",DATEVALUE:"DATEVALUE",DAY:"DAY",DAYS360:"DAYS360",DAYS:"DAYS",DB:"DB",DDB:"DDB",DEC2BIN:"DEC2BIN",DEC2HEX:"DEC2HEX",DEC2OCT:"DEC2OCT",DECIMAL:"DECIMAL",DEGREES:"DEGREES",DELTA:"DELTA",DOLLARDE:"DOLLARDE",DOLLARFR:"DOLLARFR",EDATE:"EDATE",EFFECT:"EFFECT",EOMONTH:"EOMONTH",ERF:"ERF",ERFC:"ERFC",EVEN:"EVEN",EXACT:"EXACT",EXP:"EXP",FALSE:"FALSE",FIND:"FIND",FORMULATEXT:"FORMULATEXT",FV:"FV",FVSCHEDULE:"FVSCHEDULE",HEX2BIN:"HEX2BIN",HEX2DEC:"HEX2DEC",HEX2OCT:"HEX2OCT",HLOOKUP:"HLOOKUP",HOUR:"HOUR",IF:"IF",IFERROR:"IFERROR",IFNA:"IFNA",INDEX:"INDEX",INT:"INT",INTERVAL:"INTERVAL",IPMT:"IPMT",ISBINARY:"ISBINARY",ISBLANK:"ISBLANK",ISERR:"ISERR",ISERROR:"ISERROR",ISEVEN:"ISEVEN",ISFORMULA:"ISFORMULA",ISLOGICAL:"ISLOGICAL",ISNA:"ISNA",ISNONTEXT:"ISNONTEXT",ISNUMBER:"ISNUMBER",ISODD:"ISODD",ISOWEEKNUM:"ISOWEEKNUM",ISPMT:"ISPMT",ISREF:"ISREF",ISTEXT:"ISTEXT",LEFT:"LEFT",LEN:"LEN",LN:"LN",LOG10:"LOG10",LOG:"LOG",LOWER:"LOWER",MATCH:"MATCH",MAX:"MAX",MAXA:"MAXA",MAXPOOL:"MAXPOOL",MEDIAN:"MEDIAN",MEDIANPOOL:"MEDIANPOOL",MID:"MID",MIN:"MIN",MINA:"MINA",MINUTE:"MINUTE",MIRR:"MIRR",MMULT:"MMULT",MOD:"MOD",MONTH:"MONTH",NA:"NA",NETWORKDAYS:"NETWORKDAYS","NETWORKDAYS.INTL":"NETWORKDAYS.INTL",NOMINAL:"NOMINAL",NOT:"NOT",NOW:"NOW",NPER:"NPER",NPV:"NPV",OCT2BIN:"OCT2BIN",OCT2DEC:"OCT2DEC",OCT2HEX:"OCT2HEX",ODD:"ODD",OFFSET:"OFFSET",OR:"OR",PI:"PI",PMT:"PMT",PDURATION:"PDURATION",PRODUCT:"PRODUCT",POWER:"POWER",PPMT:"PPMT",PROPER:"PROPER",PV:"PV",RADIANS:"RADIANS",RAND:"RAND",RATE:"RATE",REPLACE:"REPLACE",REPT:"REPT",RIGHT:"RIGHT",ROMAN:"ROMAN",ROUND:"ROUND",ROUNDDOWN:"ROUNDDOWN",ROUNDUP:"ROUNDUP",ROW:"ROW",ROWS:"ROWS",RRI:"RRI",SEARCH:"SEARCH",SEC:"SEC",SECH:"SECH",SECOND:"SECOND",SHEET:"SHEET",SHEETS:"SHEETS",SIN:"SIN",SINH:"SINH",SLN:"SLN",SPLIT:"SPLIT",SQRT:"SQRT",STDEVA:"STDEVA","STDEV.P":"STDEV.P",STDEVPA:"STDEVPA","STDEV.S":"STDEV.S",SUBSTITUTE:"SUBSTITUTE",SUBTOTAL:"SUBTOTAL",SUM:"SUM",SUMIF:"SUMIF",SUMIFS:"SUMIFS",SUMPRODUCT:"SUMPRODUCT",SUMSQ:"SUMSQ",SWITCH:"SWITCH",SYD:"SYD",T:"T",TAN:"TAN",TANH:"TANH",TBILLEQ:"TBILLEQ",TBILLPRICE:"TBILLPRICE",TBILLYIELD:"TBILLYIELD",TEXT:"TEXT",TIME:"TIME",TIMEVALUE:"TIMEVALUE",TODAY:"TODAY",TRANSPOSE:"TRANSPOSE",TRIM:"TRIM",TRUE:"TRUE",TRUNC:"TRUNC",UNICHAR:"UNICHAR",UNICODE:"UNICODE",UPPER:"UPPER",VARA:"VARA","VAR.P":"VAR.P",VARPA:"VARPA","VAR.S":"VAR.S",VLOOKUP:"VLOOKUP",WEEKDAY:"WEEKDAY",WEEKNUM:"WEEKNUM",WORKDAY:"WORKDAY","WORKDAY.INTL":"WORKDAY.INTL",XNPV:"XNPV",XOR:"XOR",YEAR:"YEAR",YEARFRAC:"YEARFRAC","HF.ADD":"HF.ADD","HF.CONCAT":"HF.CONCAT","HF.DIVIDE":"HF.DIVIDE","HF.EQ":"HF.EQ","HF.GT":"HF.GT","HF.GTE":"HF.GTE","HF.LT":"HF.LT","HF.LTE":"HF.LTE","HF.MINUS":"HF.MINUS","HF.MULTIPLY":"HF.MULTIPLY","HF.NE":"HF.NE","HF.POW":"HF.POW","HF.UMINUS":"HF.UMINUS","HF.UNARY_PERCENT":"HF.UNARY_PERCENT","HF.UPLUS":"HF.UPLUS",VARP:"VARP",VAR:"VAR",STDEVP:"STDEVP",STDEV:"STDEV","EXPON.DIST":"EXPON.DIST",FISHER:"FISHER",FISHERINV:"FISHERINV",GAMMA:"GAMMA","GAMMA.DIST":"GAMMA.DIST",GAMMALN:"GAMMALN","GAMMALN.PRECISE":"GAMMALN.PRECISE","GAMMA.INV":"GAMMA.INV",GAUSS:"GAUSS",FACT:"FACT",FACTDOUBLE:"FACTDOUBLE",COMBIN:"COMBIN",COMBINA:"COMBINA",GCD:"GCD",LCM:"LCM",MROUND:"MROUND",MULTINOMIAL:"MULTINOMIAL",QUOTIENT:"QUOTIENT",RANDBETWEEN:"RANDBETWEEN",SERIESSUM:"SERIESSUM",SIGN:"SIGN",SQRTPI:"SQRTPI",SUMX2MY2:"SUMX2MY2",SUMX2PY2:"SUMX2PY2",SUMXMY2:"SUMXMY2",EXPONDIST:"EXPONDIST",GAMMADIST:"GAMMADIST",GAMMAINV:"GAMMAINV","BETA.DIST":"BETA.DIST",BETADIST:"BETADIST","BETA.INV":"BETA.INV",BETAINV:"BETAINV","BINOM.DIST":"BINOM.DIST",BINOMDIST:"BINOMDIST","BINOM.INV":"BINOM.INV",BESSELI:"BESSELI",BESSELJ:"BESSELJ",BESSELK:"BESSELK",BESSELY:"BESSELY","CHISQ.DIST":"CHISQ.DIST","CHISQ.DIST.RT":"CHISQ.DIST.RT","CHISQ.INV":"CHISQ.INV","CHISQ.INV.RT":"CHISQ.INV.RT",CHIDIST:"CHIDIST",CHIINV:"CHIINV","F.DIST":"F.DIST","F.DIST.RT":"F.DIST.RT","F.INV":"F.INV","F.INV.RT":"F.INV.RT",FDIST:"FDIST",FINV:"FINV",WEIBULL:"WEIBULL","WEIBULL.DIST":"WEIBULL.DIST",POISSON:"POISSON","POISSON.DIST":"POISSON.DIST","HYPGEOM.DIST":"HYPGEOM.DIST",HYPGEOMDIST:"HYPGEOMDIST","T.DIST":"T.DIST","T.DIST.2T":"T.DIST.2T","T.DIST.RT":"T.DIST.RT","T.INV":"T.INV","T.INV.2T":"T.INV.2T",TDIST:"TDIST",TINV:"TINV",LOGINV:"LOGINV","LOGNORM.DIST":"LOGNORM.DIST","LOGNORM.INV":"LOGNORM.INV",LOGNORMDIST:"LOGNORMDIST","NORM.DIST":"NORM.DIST","NORM.INV":"NORM.INV","NORM.S.DIST":"NORM.S.DIST","NORM.S.INV":"NORM.S.INV",NORMDIST:"NORMDIST",NORMINV:"NORMINV",NORMSDIST:"NORMSDIST",NORMSINV:"NORMSINV",PHI:"PHI","NEGBINOM.DIST":"NEGBINOM.DIST",NEGBINOMDIST:"NEGBINOMDIST",COMPLEX:"COMPLEX",IMABS:"IMABS",IMAGINARY:"IMAGINARY",IMARGUMENT:"IMARGUMENT",IMCONJUGATE:"IMCONJUGATE",IMCOS:"IMCOS",IMCOSH:"IMCOSH",IMCOT:"IMCOT",IMCSC:"IMCSC",IMCSCH:"IMCSCH",IMDIV:"IMDIV",IMEXP:"IMEXP",IMLN:"IMLN",IMLOG10:"IMLOG10",IMLOG2:"IMLOG2",IMPOWER:"IMPOWER",IMPRODUCT:"IMPRODUCT",IMREAL:"IMREAL",IMSEC:"IMSEC",IMSECH:"IMSECH",IMSIN:"IMSIN",IMSINH:"IMSINH",IMSQRT:"IMSQRT",IMSUB:"IMSUB",IMSUM:"IMSUM",IMTAN:"IMTAN",LARGE:"LARGE",SMALL:"SMALL",AVEDEV:"AVEDEV",CONFIDENCE:"CONFIDENCE","CONFIDENCE.NORM":"CONFIDENCE.NORM","CONFIDENCE.T":"CONFIDENCE.T",DEVSQ:"DEVSQ",GEOMEAN:"GEOMEAN",HARMEAN:"HARMEAN",CRITBINOM:"CRITBINOM","COVARIANCE.P":"COVARIANCE.P","COVARIANCE.S":"COVARIANCE.S",COVAR:"COVAR",PEARSON:"PEARSON",RSQ:"RSQ",STANDARDIZE:"STANDARDIZE","Z.TEST":"Z.TEST",ZTEST:"ZTEST","F.TEST":"F.TEST",FTEST:"FTEST",STEYX:"STEYX",SLOPE:"SLOPE","CHISQ.TEST":"CHISQ.TEST",CHITEST:"CHITEST","T.TEST":"T.TEST",TTEST:"TTEST",SKEW:"SKEW","SKEW.P":"SKEW.P",WEIBULLDIST:"WEIBULLDIST",VARS:"VARS",TINV2T:"TINV2T",TDISTRT:"TDISTRT",TDIST2T:"TDIST2T",STDEVS:"STDEVS",FINVRT:"FINVRT",FDISTRT:"FDISTRT",CHIDISTRT:"CHIDISTRT",CHIINVRT:"CHIINVRT",COVARIANCEP:"COVARIANCEP",COVARIANCES:"COVARIANCES",LOGNORMINV:"LOGNORMINV",POISSONDIST:"POISSONDIST",SKEWP:"SKEWP","CEILING.MATH":"CEILING.MATH",FLOOR:"FLOOR","FLOOR.MATH":"FLOOR.MATH","CEILING.PRECISE":"CEILING.PRECISE","FLOOR.PRECISE":"FLOOR.PRECISE","ISO.CEILING":"ISO.CEILING"},langCode:"enGB",ui:{NEW_SHEET_PREFIX:"Sheet"}}},function(e,t,n){"use strict";n.r(t);var r=n(385);n.d(t,"ArrayPlugin",(function(){return r.ArrayPlugin}));var o=n(386);n.d(t,"AbsPlugin",(function(){return o.AbsPlugin}));var i=n(387);n.d(t,"BitShiftPlugin",(function(){return i.BitShiftPlugin}));var a=n(388);n.d(t,"BitwiseLogicOperationsPlugin",(function(){return a.BitwiseLogicOperationsPlugin}));var s=n(389);n.d(t,"BooleanPlugin",(function(){return s.BooleanPlugin}));var u=n(390);n.d(t,"CharPlugin",(function(){return u.CharPlugin}));var l=n(391);n.d(t,"CodePlugin",(function(){return l.CodePlugin}));var c=n(392);n.d(t,"CountBlankPlugin",(function(){return c.CountBlankPlugin}));var f=n(393);n.d(t,"CountUniquePlugin",(function(){return f.CountUniquePlugin}));var d=n(394);n.d(t,"DateTimePlugin",(function(){return d.DateTimePlugin}));var h=n(395);n.d(t,"DegreesPlugin",(function(){return h.DegreesPlugin}));var p=n(396);n.d(t,"DeltaPlugin",(function(){return p.DeltaPlugin}));var y=n(397);n.d(t,"ExpPlugin",(function(){return y.ExpPlugin}));var m=n(398);n.d(t,"FinancialPlugin",(function(){return m.FinancialPlugin}));var g=n(399);n.d(t,"FormulaTextPlugin",(function(){return g.FormulaTextPlugin}));var v=n(400);n.d(t,"InformationPlugin",(function(){return v.InformationPlugin}));var E=n(401);n.d(t,"IsEvenPlugin",(function(){return E.IsEvenPlugin}));var b=n(402);n.d(t,"IsOddPlugin",(function(){return b.IsOddPlugin}));var T=n(403);n.d(t,"LogarithmPlugin",(function(){return T.LogarithmPlugin}));var C=n(293);n.d(t,"MathConstantsPlugin",(function(){return C.MathConstantsPlugin}));var w=n(404);n.d(t,"MatrixPlugin",(function(){return w.MatrixPlugin}));var R=n(405);n.d(t,"MedianPlugin",(function(){return R.MedianPlugin}));var O=n(406);n.d(t,"ModuloPlugin",(function(){return O.ModuloPlugin}));var S=n(407);n.d(t,"NumericAggregationPlugin",(function(){return S.NumericAggregationPlugin}));var A=n(408);n.d(t,"PowerPlugin",(function(){return A.PowerPlugin}));var N=n(409);n.d(t,"RadiansPlugin",(function(){return N.RadiansPlugin}));var _=n(410);n.d(t,"RadixConversionPlugin",(function(){return _.RadixConversionPlugin}));var k=n(411);n.d(t,"RandomPlugin",(function(){return k.RandomPlugin}));var M=n(412);n.d(t,"RoundingPlugin",(function(){return M.RoundingPlugin}));var I=n(413);n.d(t,"SqrtPlugin",(function(){return I.SqrtPlugin}));var P=n(414);n.d(t,"SumifPlugin",(function(){return P.SumifPlugin}));var x=n(415);n.d(t,"SumprodPlugin",(function(){return x.SumprodPlugin}));var D=n(416);n.d(t,"TextPlugin",(function(){return D.TextPlugin}));var L=n(418);n.d(t,"TrigonometryPlugin",(function(){return L.TrigonometryPlugin}));var F=n(421);n.d(t,"LookupPlugin",(function(){return F.LookupPlugin}));var j=n(422);n.d(t,"RomanPlugin",(function(){return j.RomanPlugin}));var U=n(423);n.d(t,"SimpleArithmerticPlugin",(function(){return U.SimpleArithmerticPlugin}));var H=n(424);n.d(t,"StatisticalPlugin",(function(){return H.StatisticalPlugin}));var B=n(426);n.d(t,"MathPlugin",(function(){return B.MathPlugin}));var V=n(427);n.d(t,"ComplexPlugin",(function(){return V.ComplexPlugin}));var W=n(428);n.d(t,"StatisticalAggregationPlugin",(function(){return W.StatisticalAggregationPlugin}))},function(e,t,n){var r=n(28),o=n(29),i=n(36),a=n(151),s=o.RangeError,u=String.fromCharCode,l=String.fromCodePoint,c=i([].join);r({target:"String",stat:!0,arity:1,forced:!!l&&1!=l.length},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,o=0;r>o;){if(t=+arguments[o++],a(t,1114111)!==t)throw s(t+" is not a valid code point");n[o]=t<65536?u(t):u(55296+((t-=65536)>>10),t%1024+56320)}return c(n,"")}})},function(e,t,n){"use strict";n.r(t),n.d(t,"CriterionFunctionCompute",(function(){return m})),n.d(t,"Condition",(function(){return g}));n(85),n(37),n(0),n(75),n(26),n(22),n(2),n(10),n(3),n(4),n(8),n(9),n(33),n(13),n(25),n(12);var r=n(24),o=n(45),i=n(731),a=n(51),s=regeneratorRuntime.mark(v),u=regeneratorRuntime.mark(E);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;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,t)||f(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 c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=f(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function f(e,t){if(e){if("string"==typeof e)return d(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)?d(e,t):void 0}}function d(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 h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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 y(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var m=function(){function e(t,n,r,o,i){h(this,e),this.interpreter=t,this.cacheKey=n,this.reduceInitialValue=r,this.composeFunction=o,this.mapFunction=i,this.dependencyGraph=this.interpreter.dependencyGraph}return y(e,[{key:"compute",value:function(e,t){var n,i=this,a=c(t);try{for(a.s();!(n=a.n()).done;){if(!n.value.conditionRange.sameDimensionsAs(e))return new r.CellError(r.ErrorType.VALUE,o.ErrorMessage.EqualLength)}}catch(e){a.e(e)}finally{a.f()}var s=this.tryToGetRangeVertexForRangeValue(e),u=t.map((function(e){return i.tryToGetRangeVertexForRangeValue(e.conditionRange)}));if(s&&u.every((function(e){return void 0!==e}))){var l=t.map((function(e){return e.criterionPackage.raw})).join(","),f=this.findAlreadyComputedValueInCache(s,this.cacheKey(t),l);if(void 0!==f)return this.interpreter.stats.incrementCriterionFunctionFullCacheUsed(),f;var d=this.buildNewCriterionCache(this.cacheKey(t),t.map((function(e){return e.conditionRange.range})),e.range);return d.has(l)||d.set(l,[this.evaluateRangeValue(e,t),t.map((function(e){return e.criterionPackage.lambda}))]),s.setCriterionFunctionValues(this.cacheKey(t),d),u.forEach((function(e){void 0!==e&&e.addDependentCacheRange(s)})),d.get(l)[0]}return this.evaluateRangeValue(e,t)}},{key:"tryToGetRangeVertexForRangeValue",value:function(e){var t=e.range;return void 0===t?void 0:this.dependencyGraph.getRange(t.start,t.end)}},{key:"reduceFunction",value:function(e){var t,n=this.reduceInitialValue,r=c(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;n=this.composeFunction(n,o)}}catch(e){r.e(e)}finally{r.f()}return n}},{key:"findAlreadyComputedValueInCache",value:function(e,t,n){return e.getCriterionFunctionValue(t,n)}},{key:"evaluateRangeValue",value:function(e,t){var n=t.map((function(e){return e.criterionPackage.lambda})),r=Array.from(e.valuesFromTopLeftCorner()).map(this.mapFunction)[Symbol.iterator](),o=E(n,t.map((function(e){return e.conditionRange.iterateValuesFromTopLeftCorner()})),r);return this.reduceFunction(o)}},{key:"buildNewCriterionCache",value:function(e,t,n){var o,i=this,a=this.dependencyGraph.getRange(n.start,n.end),s=function(e,t,n){if(n.end.row>n.start.row){var o=Object(r.simpleCellAddress)(n.end.sheet,n.end.col,n.end.row-1),i=e.getRange(n.start,o);if(void 0!==i)return{smallerRangeVertex:i,restValuesRange:n.withStart(Object(r.simpleCellAddress)(n.start.sheet,n.start.col,n.end.row)),restConditionRanges:t.map((function(e){return e.withStart(Object(r.simpleCellAddress)(e.start.sheet,e.start.col,e.end.row))}))}}return{restValuesRange:n,restConditionRanges:t}}(this.dependencyGraph,t,n),u=s.smallerRangeVertex,c=s.restConditionRanges,f=s.restValuesRange;o=void 0!==u&&this.dependencyGraph.existsEdge(u,a)?u.getCriterionFunctionValues(e):new Map;var d=new Map;return o.forEach((function(e,t){var n=l(e,2),r=n[0],o=n[1],a=E(o,c.map((function(e){return v(i.dependencyGraph,e)})),Array.from(v(i.dependencyGraph,f)).map(i.mapFunction)[Symbol.iterator]()),s=i.composeFunction(r,i.reduceFunction(a));i.interpreter.stats.incrementCriterionFunctionPartialCacheUsed(),d.set(t,[s,o])})),d}}]),e}(),g=y((function e(t,n){h(this,e),this.conditionRange=t,this.criterionPackage=n}));function v(e,t){var n,r,o;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:n=c(t.addresses(e)),i.prev=1,n.s();case 3:if((r=n.n()).done){i.next=9;break}return o=r.value,i.next=7,Object(a.getRawValue)(e.getScalarValue(o));case 7:i.next=3;break;case 9:i.next=14;break;case 11:i.prev=11,i.t0=i.catch(1),n.e(i.t0);case 14:return i.prev=14,n.f(),i.finish(14);case 17:case"end":return i.stop()}}),s,null,[[1,11,14,17]])}function E(e,t,n){var r,o,a,s;return regeneratorRuntime.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:r=c(n),u.prev=1,r.s();case 3:if((o=r.n()).done){u.next=15;break}if(a=o.value,(s=t.map((function(e){return Object(i.split)(e)}))).every((function(e){return Object.prototype.hasOwnProperty.call(e,"value")}))){u.next=8;break}return u.abrupt("return");case 8:if(!b(s.map((function(e){return e.value})),e).every((function(e){var t=l(e,2),n=t[0];return(0,t[1])(n)}))){u.next=12;break}return u.next=12,a;case 12:t=s.map((function(e){return e.rest}));case 13:u.next=3;break;case 15:u.next=20;break;case 17:u.prev=17,u.t0=u.catch(1),r.e(u.t0);case 20:return u.prev=20,r.f(),u.finish(20);case 23:case"end":return u.stop()}}),u,null,[[1,17,20,23]])}function b(e,t){for(var n=[],r=0;r<Math.min(e.length,t.length);r++)n.push([e[r],t[r]]);return n}},function(e,t,n){"use strict";n.r(t),n.d(t,"empty",(function(){return o})),n.d(t,"split",(function(){return i})),n.d(t,"first",(function(){return a}));n(10),n(3),n(0),n(2),n(4),n(8),n(9),n(85);var r=regeneratorRuntime.mark(o);
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/
|
|
function o(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),r)}function i(e){var t=e[Symbol.iterator](),n=t.next(),r=n.done,i=n.value;return r?{rest:o()}:{value:i,rest:t}}function a(e){var t=e[Symbol.iterator]().next(),n=t.done,r=t.value;if(!n)return r}},function(e,t,n){var r=n(28),o=Math.asinh,i=Math.log,a=Math.sqrt;r({target:"Math",stat:!0,forced:!(o&&1/o(0)>0)},{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):i(t+a(t*t+1)):t}})},function(e,t,n){var r=n(28),o=n(734),i=Math.acosh,a=Math.log,s=Math.sqrt,u=Math.LN2;r({target:"Math",stat:!0,forced:!i||710!=Math.floor(i(Number.MAX_VALUE))||i(1/0)!=1/0},{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?a(e)+u:o(e-1+s(e-1)*s(e+1))}})},function(e,t){var n=Math.log;e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:n(1+e)}},function(e,t,n){var r=n(28),o=n(294),i=Math.exp;r({target:"Math",stat:!0},{tanh:function(e){var t=o(e=+e),n=o(-e);return t==1/0?1:n==1/0?-1:(t-n)/(i(e)+i(-e))}})},function(e,t,n){var r=n(28),o=Math.atanh,i=Math.log;r({target:"Math",stat:!0,forced:!(o&&1/o(-0)<0)},{atanh:function(e){return 0==(e=+e)?e:i((1+e)/(1-e))/2}})},function(e,t,n){"use strict";n.r(t),n.d(t,"RowSearchStrategy",(function(){return d}));n(37),n(191),n(27),n(0),n(7),n(8),n(9),n(10),n(3),n(2),n(4);var r=n(106),o=n(383),i=n(51);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(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=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2021 Handsoncode. All rights reserved.
|
|
*/var d=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(f,e);var t,n,a,c=l(f);function f(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(n=c.call(this,t)).config=e,n.dependencyGraph=t,n}return t=f,(n=[{key:"find",value:function(e,t,n){"string"==typeof e&&(e=Object(r.forceNormalizeString)(e));var a=t.range;return void 0===a?t.valuesFromTopLeftCorner().map(i.getRawValue).indexOf(e):n?Object(o.rangeLowerBound)(a,e,this.dependencyGraph,"col"):this.dependencyGraph.computeListOfValuesInRange(a).findIndex((function(t){return(t="string"==typeof(t=Object(i.getRawValue)(t))?Object(r.forceNormalizeString)(t):t)===e}))}}])&&s(t.prototype,n),a&&s(t,a),Object.defineProperty(t,"prototype",{writable:!1}),f}(n(384).AdvancedFind)},function(e,t,n){"use strict";n.r(t),n.d(t,"besselj",(function(){return b})),n.d(t,"bessely",(function(){return T})),n.d(t,"besseli",(function(){return C})),n.d(t,"besselk",(function(){return w}));n(138);var r=Math;function o(e,t){for(var n=0,r=0;n<e.length;++n)r=t*r+e[n];return r}function i(e,t,n,r,o){if(0===t)return n;if(1===t)return r;for(var i=2/e,a=r,s=1;s<t;++s)a=r*s*i+o*n,n=r,r=a;return a}function a(e,t,n,r,o){return function(n,a){if(r){if(0===n)return 1==r?-1/0:1/0;if(n<0)return NaN}return 0===a?e(n):1===a?t(n):a<0?NaN:i(n,a|=0,e(n),t(n),o)}}var s,u,l,c,f,d,h,p,y,m,g,v,E,b=function(){var e=.636619772,t=[57568490574,-13362590354,651619640.7,-11214424.18,77392.33017,-184.9052456].reverse(),n=[57568490411,1029532985,9494680.718,59272.64853,267.8532712,1].reverse(),a=[1,-.001098628627,2734510407e-14,-2073370639e-15,2.093887211e-7].reverse(),s=[-.01562499995,.0001430488765,-6911147651e-15,7.621095161e-7,-9.34935152e-8].reverse();function u(i){var u=0,l=0,c=0,f=i*i;if(i<8)u=(l=o(t,f))/(c=o(n,f));else{var d=i-.785398164;l=o(a,f=64/f),c=o(s,f),u=r.sqrt(e/i)*(r.cos(d)*l-r.sin(d)*c*8/i)}return u}var l=[72362614232,-7895059235,242396853.1,-2972611.439,15704.4826,-30.16036606].reverse(),c=[144725228442,2300535178,18583304.74,99447.43394,376.9991397,1].reverse(),f=[1,.00183105,-3516396496e-14,2457520174e-15,-2.40337019e-7].reverse(),d=[.04687499995,-.0002002690873,8449199096e-15,-8.8228987e-7,1.05787412e-7].reverse();function h(t){var n=0,i=0,a=0,s=t*t,u=r.abs(t)-2.356194491;return Math.abs(t)<8?n=(i=t*o(l,s))/(a=o(c,s)):(i=o(f,s=64/s),a=o(d,s),n=r.sqrt(e/r.abs(t))*(r.cos(u)*i-r.sin(u)*a*8/r.abs(t)),t<0&&(n=-n)),n}return function e(t,n){if(n=Math.round(n),!isFinite(t))return isNaN(t)?t:0;if(n<0)return(n%2?-1:1)*e(t,-n);if(t<0)return(n%2?-1:1)*e(-t,n);if(0===n)return u(t);if(1===n)return h(t);if(0===t)return 0;var o=0;if(t>n)o=i(t,n,u(t),h(t),-1);else{for(var a=!1,s=0,l=0,c=1,f=0,d=2/t,p=2*r.floor((n+r.floor(r.sqrt(40*n)))/2);p>0;p--)f=p*d*c-s,s=c,c=f,r.abs(c)>1e10&&(c*=1e-10,s*=1e-10,o*=1e-10,l*=1e-10),a&&(l+=c),a=!a,p==n&&(o=s);o/=l=2*l-c}return o}}(),T=(s=.636619772,u=[-2957821389,7062834065,-512359803.6,10879881.29,-86327.92757,228.4622733].reverse(),l=[40076544269,745249964.8,7189466.438,47447.2647,226.1030244,1].reverse(),c=[1,-.001098628627,2734510407e-14,-2073370639e-15,2.093887211e-7].reverse(),f=[-.01562499995,.0001430488765,-6911147651e-15,7.621095161e-7,-9.34945152e-8].reverse(),d=[-4900604943e3,127527439e4,-51534381390,734926455.1,-4237922.726,8511.937935].reverse(),h=[249958057e5,424441966400,3733650367,22459040.02,102042.605,354.9632885,1].reverse(),p=[1,.00183105,-3516396496e-14,2457520174e-15,-2.40337019e-7].reverse(),y=[.04687499995,-.0002002690873,8449199096e-15,-8.8228987e-7,1.05787412e-7].reverse(),a((function(e){var t=0,n=0,i=0,a=e*e,d=e-.785398164;return e<8?t=(n=o(u,a))/(i=o(l,a))+s*b(e,0)*r.log(e):(n=o(c,a=64/a),i=o(f,a),t=r.sqrt(s/e)*(r.sin(d)*n+r.cos(d)*i*8/e)),t}),(function(e){var t=0,n=0,i=0,a=e*e,u=e-2.356194491;return e<8?t=(n=e*o(d,a))/(i=o(h,a))+s*(b(e,1)*r.log(e)-1/e):(n=o(p,a=64/a),i=o(y,a),t=r.sqrt(s/e)*(r.sin(u)*n+r.cos(u)*i*8/e)),t}),0,1,-1)),C=(m=[1,3.5156229,3.0899424,1.2067492,.2659732,.0360768,.0045813].reverse(),g=[.39894228,.01328592,.00225319,-.00157565,.00916281,-.02057706,.02635537,-.01647633,.00392377].reverse(),v=[.5,.87890594,.51498869,.15084934,.02658733,.00301532,32411e-8].reverse(),E=[.39894228,-.03988024,-.00362018,.00163801,-.01031555,.02282967,-.02895312,.01787654,-.00420059].reverse(),function e(t,n){if(0===(n=Math.round(n)))return function(e){return e<=3.75?o(m,e*e/14.0625):r.exp(r.abs(e))/r.sqrt(r.abs(e))*o(g,3.75/r.abs(e))}(t);if(1===n)return function(e){return e<3.75?e*o(v,e*e/14.0625):(e<0?-1:1)*r.exp(r.abs(e))/r.sqrt(r.abs(e))*o(E,3.75/r.abs(e))}(t);if(n<0)return NaN;if(0===r.abs(t))return 0;if(t==1/0)return 1/0;var i,a=0,s=2/r.abs(t),u=0,l=1,c=0;for(i=2*r.round((n+r.round(r.sqrt(40*n)))/2);i>0;i--)c=i*s*l+u,u=l,l=c,r.abs(l)>1e10&&(l*=1e-10,u*=1e-10,a*=1e-10),i==n&&(a=u);return a*=e(t,0)/l,t<0&&n%2?-a:a}),w=function(){var e=[-.57721566,.4227842,.23069756,.0348859,.00262698,1075e-7,74e-7].reverse(),t=[1.25331414,-.07832358,.02189568,-.01062446,.00587872,-.0025154,53208e-8].reverse();var n=[1,.15443144,-.67278579,-.18156897,-.01919402,-.00110404,-4686e-8].reverse(),i=[1.25331414,.23498619,-.0365562,.01504268,-.00780353,.00325614,-68245e-8].reverse();return a((function(n){return n<=2?-r.log(n/2)*C(n,0)+o(e,n*n/4):r.exp(-n)/r.sqrt(n)*o(t,2/n)}),(function(e){return e<=2?r.log(e/2)*C(e,1)+1/e*o(n,e*e/4):r.exp(-e)/r.sqrt(e)*o(i,2/e)}),0,2,1)}()},function(e,t,n){n(28)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.default=void 0,n(244);var i,a,s,u,l,c=r(n(741)),f=n(848),d=F(n(59)),h=n(82),p=r(n(1081)),y=r(n(311)),m=F(n(296)),g=F(n(20)),v=F(n(101)),E=F(n(144)),b=F(n(615)),T=F(n(126)),C=F(n(68)),w=F(n(32)),R=F(n(47)),O=F(n(17)),S=F(n(91)),A=F(n(116)),N=F(n(23)),_=F(n(81)),k=n(157),M=n(193),I=n(194),P=n(162),x=n(230),D=n(50);function L(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(L=function(e){return e?n:t})(e)}function F(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=L(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(0,f.registerAllModules)(),(0,p.default)(c.default),c.default.__GhostTable=y.default,c.default._getListenersCounter=d.getListenersCounter,c.default._getRegisteredMapsCounter=h.getRegisteredMapsCounter,c.default.EventManager=d.default;var j=[g,v,E,b,T,C,w,R,O,S,A,m],U=[N,_];c.default.helper={},c.default.dom={},g.arrayEach(j,(function(e){g.arrayEach(Object.getOwnPropertyNames(e),(function(t){"_"!==t.charAt(0)&&(c.default.helper[t]=e[t])}))})),g.arrayEach(U,(function(e){g.arrayEach(Object.getOwnPropertyNames(e),(function(t){"_"!==t.charAt(0)&&(c.default.dom[t]=e[t])}))})),c.default.cellTypes=null!==(i=c.default.cellTypes)&&void 0!==i?i:{},g.arrayEach((0,P.getRegisteredCellTypeNames)(),(function(e){c.default.cellTypes[e]=(0,P.getCellType)(e)})),c.default.cellTypes.registerCellType=P.registerCellType,c.default.cellTypes.getCellType=P.getCellType,c.default.editors=null!==(a=c.default.editors)&&void 0!==a?a:{},g.arrayEach((0,k.getRegisteredEditorNames)(),(function(e){c.default.editors["".concat(S.toUpperCaseFirst(e),"Editor")]=(0,k.getEditor)(e)})),c.default.editors.registerEditor=k.registerEditor,c.default.editors.getEditor=k.getEditor,c.default.renderers=null!==(s=c.default.renderers)&&void 0!==s?s:{},g.arrayEach((0,M.getRegisteredRendererNames)(),(function(e){var t=(0,M.getRenderer)(e);"base"===e&&(c.default.renderers.cellDecorator=t),c.default.renderers["".concat(S.toUpperCaseFirst(e),"Renderer")]=t})),c.default.renderers.registerRenderer=M.registerRenderer,c.default.renderers.getRenderer=M.getRenderer,c.default.validators=null!==(u=c.default.validators)&&void 0!==u?u:{},g.arrayEach((0,I.getRegisteredValidatorNames)(),(function(e){c.default.validators["".concat(S.toUpperCaseFirst(e),"Validator")]=(0,I.getValidator)(e)})),c.default.validators.registerValidator=I.registerValidator,c.default.validators.getValidator=I.getValidator,c.default.plugins=null!==(l=c.default.plugins)&&void 0!==l?l:{},g.arrayEach((0,x.getPluginsNames)(),(function(e){c.default.plugins[e]=(0,x.getPlugin)(e)})),c.default.plugins["".concat(S.toUpperCaseFirst(D.BasePlugin.PLUGIN_KEY),"Plugin")]=D.BasePlugin,c.default.plugins.registerPlugin=x.registerPlugin,c.default.plugins.getPlugin=x.getPlugin;var H=c.default;t.default=H},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0,n(742),n(743),n(744),n(745);var o=r(n(429)),i=n(302),a=n(594),s=r(n(74)),u=n(591),l=n(162),c=n(600),f=n(197);function d(e,t){var n=new o.default(e,t||{},i.rootInstanceSymbol);return n.init(),n}(0,l.registerCellType)(c.TextCellType),d.editors={BaseEditor:f.BaseEditor},d.Core=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new o.default(e,t,i.rootInstanceSymbol)},d.DefaultSettings=(0,a.metaSchemaFactory)(),d.hooks=s.default.getSingleton(),d.packageName="handsontable",d.buildDate="13/05/2022 13:50:58",d.version="12.0.1",d.languages={dictionaryKeys:u.dictionaryKeys,getLanguageDictionary:u.getLanguageDictionary,getLanguagesDictionaries:u.getLanguagesDictionaries,registerLanguageDictionary:u.registerLanguageDictionary,getTranslatedPhrase:u.getTranslatedPhrase};var h=d;t.default=h},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t){e.exports=function(e,t){var n=null==e?null:"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.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(431);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},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.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(28),o=n(29),i=n(434).setInterval;r({global:!0,bind:!0,forced:o.setInterval!==i},{setInterval:i})},function(e,t,n){var r=n(28),o=n(29),i=n(434).setTimeout;r({global:!0,bind:!0,forced:o.setTimeout!==i},{setTimeout:i})},function(e,t,n){n(752),n(754)},function(e,t,n){var r=n(28),o=n(29),i=n(436).clear;r({global:!0,bind:!0,enumerable:!0,forced:o.clearImmediate!==i},{clearImmediate:i})},function(e,t,n){var r=n(128);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},function(e,t,n){var r=n(28),o=n(29),i=n(436).set;r({global:!0,bind:!0,enumerable:!0,forced:o.setImmediate!==i},{setImmediate:i})},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":438,"./af.js":438,"./ar":439,"./ar-dz":440,"./ar-dz.js":440,"./ar-kw":441,"./ar-kw.js":441,"./ar-ly":442,"./ar-ly.js":442,"./ar-ma":443,"./ar-ma.js":443,"./ar-sa":444,"./ar-sa.js":444,"./ar-tn":445,"./ar-tn.js":445,"./ar.js":439,"./az":446,"./az.js":446,"./be":447,"./be.js":447,"./bg":448,"./bg.js":448,"./bm":449,"./bm.js":449,"./bn":450,"./bn-bd":451,"./bn-bd.js":451,"./bn.js":450,"./bo":452,"./bo.js":452,"./br":453,"./br.js":453,"./bs":454,"./bs.js":454,"./ca":455,"./ca.js":455,"./cs":456,"./cs.js":456,"./cv":457,"./cv.js":457,"./cy":458,"./cy.js":458,"./da":459,"./da.js":459,"./de":460,"./de-at":461,"./de-at.js":461,"./de-ch":462,"./de-ch.js":462,"./de.js":460,"./dv":463,"./dv.js":463,"./el":464,"./el.js":464,"./en-au":465,"./en-au.js":465,"./en-ca":466,"./en-ca.js":466,"./en-gb":467,"./en-gb.js":467,"./en-ie":468,"./en-ie.js":468,"./en-il":469,"./en-il.js":469,"./en-in":470,"./en-in.js":470,"./en-nz":471,"./en-nz.js":471,"./en-sg":472,"./en-sg.js":472,"./eo":473,"./eo.js":473,"./es":474,"./es-do":475,"./es-do.js":475,"./es-mx":476,"./es-mx.js":476,"./es-us":477,"./es-us.js":477,"./es.js":474,"./et":478,"./et.js":478,"./eu":479,"./eu.js":479,"./fa":480,"./fa.js":480,"./fi":481,"./fi.js":481,"./fil":482,"./fil.js":482,"./fo":483,"./fo.js":483,"./fr":484,"./fr-ca":485,"./fr-ca.js":485,"./fr-ch":486,"./fr-ch.js":486,"./fr.js":484,"./fy":487,"./fy.js":487,"./ga":488,"./ga.js":488,"./gd":489,"./gd.js":489,"./gl":490,"./gl.js":490,"./gom-deva":491,"./gom-deva.js":491,"./gom-latn":492,"./gom-latn.js":492,"./gu":493,"./gu.js":493,"./he":494,"./he.js":494,"./hi":495,"./hi.js":495,"./hr":496,"./hr.js":496,"./hu":497,"./hu.js":497,"./hy-am":498,"./hy-am.js":498,"./id":499,"./id.js":499,"./is":500,"./is.js":500,"./it":501,"./it-ch":502,"./it-ch.js":502,"./it.js":501,"./ja":503,"./ja.js":503,"./jv":504,"./jv.js":504,"./ka":505,"./ka.js":505,"./kk":506,"./kk.js":506,"./km":507,"./km.js":507,"./kn":508,"./kn.js":508,"./ko":509,"./ko.js":509,"./ku":510,"./ku.js":510,"./ky":511,"./ky.js":511,"./lb":512,"./lb.js":512,"./lo":513,"./lo.js":513,"./lt":514,"./lt.js":514,"./lv":515,"./lv.js":515,"./me":516,"./me.js":516,"./mi":517,"./mi.js":517,"./mk":518,"./mk.js":518,"./ml":519,"./ml.js":519,"./mn":520,"./mn.js":520,"./mr":521,"./mr.js":521,"./ms":522,"./ms-my":523,"./ms-my.js":523,"./ms.js":522,"./mt":524,"./mt.js":524,"./my":525,"./my.js":525,"./nb":526,"./nb.js":526,"./ne":527,"./ne.js":527,"./nl":528,"./nl-be":529,"./nl-be.js":529,"./nl.js":528,"./nn":530,"./nn.js":530,"./oc-lnc":531,"./oc-lnc.js":531,"./pa-in":532,"./pa-in.js":532,"./pl":533,"./pl.js":533,"./pt":534,"./pt-br":535,"./pt-br.js":535,"./pt.js":534,"./ro":536,"./ro.js":536,"./ru":537,"./ru.js":537,"./sd":538,"./sd.js":538,"./se":539,"./se.js":539,"./si":540,"./si.js":540,"./sk":541,"./sk.js":541,"./sl":542,"./sl.js":542,"./sq":543,"./sq.js":543,"./sr":544,"./sr-cyrl":545,"./sr-cyrl.js":545,"./sr.js":544,"./ss":546,"./ss.js":546,"./sv":547,"./sv.js":547,"./sw":548,"./sw.js":548,"./ta":549,"./ta.js":549,"./te":550,"./te.js":550,"./tet":551,"./tet.js":551,"./tg":552,"./tg.js":552,"./th":553,"./th.js":553,"./tk":554,"./tk.js":554,"./tl-ph":555,"./tl-ph.js":555,"./tlh":556,"./tlh.js":556,"./tr":557,"./tr.js":557,"./tzl":558,"./tzl.js":558,"./tzm":559,"./tzm-latn":560,"./tzm-latn.js":560,"./tzm.js":559,"./ug-cn":561,"./ug-cn.js":561,"./uk":562,"./uk.js":562,"./ur":563,"./ur.js":563,"./uz":564,"./uz-latn":565,"./uz-latn.js":565,"./uz.js":564,"./vi":566,"./vi.js":566,"./x-pseudo":567,"./x-pseudo.js":567,"./yo":568,"./yo.js":568,"./zh-cn":569,"./zh-cn.js":569,"./zh-hk":570,"./zh-hk.js":570,"./zh-mo":571,"./zh-mo.js":571,"./zh-tw":572,"./zh-tw.js":572};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=756},function(e,t,n){var r=n(28),o=n(758);r({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},function(e,t,n){"use strict";var r=n(132),o=n(93),i=n(122),a=n(97),s=n(153),u=Math.min,l=[].lastIndexOf,c=!!l&&1/[1].lastIndexOf(1,-0)<0,f=s("lastIndexOf"),d=c||!f;e.exports=d?function(e){if(c)return r(l,this,arguments)||0;var t=o(this),n=a(t),s=n-1;for(arguments.length>1&&(s=u(s,i(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:l},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.DESC=t.ASC=void 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 d(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 h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=l.get(e)||l.get(u),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:f,{addItem:d,getItems:h}};var o=r(n(44)),i=r(n(34));n(3),n(33),n(0),n(2),n(4),n(37),n(73);var a=n(47),s=n(68),u="asc";t.ASC=u;t.DESC="desc";var l=new Map([[u,[-1,1]],["desc",[1,-1]]]),c=function(e){return"The priority '".concat(e,"' is already declared in a map.")},f=function(e){return"The priority '".concat(e,"' is not a number.")}},function(e,t,n){"use strict";var r=n(1);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)}function u(){n.clear()}return t=(0,i.isFunction)(t)?t:a,{addItem:r,clear:u,getItems:s}};var o=r(n(44));n(3),n(0),n(55),n(2),n(4);var i=n(68),a=function(e){return"'".concat(e,"' value is already declared in a unique set.")}},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(34)),i=r(n(44)),a=r(n(5)),s=r(n(6));n(3),n(0),n(2),n(11),n(4),n(67),n(52);var u=n(23),l=r(n(59)),c=n(81),f=r(n(158)),d=n(587),h=n(302),p=new WeakMap,y=function(){function e(t){(0,a.default)(this,e),this.instance=t,this.eventManager=new l.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,s.default)(e,[{key:"render",value:function(){this.instance.isRenderSuspended()||(this.instance.runHooks("beforeRender",this.instance.forceFullRender),this.postponedAdjustElementsSize&&(this.postponedAdjustElementsSize=!1,this.adjustElementsSize(!0)),this._wt.draw(!this.instance.forceFullRender),this.instance.runHooks("afterRender",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,u.addClass)(n,"handsontable"),e.table=r.createElement("TABLE"),(0,u.addClass)(e.table,"htCore"),this.instance.getSettings().tableClassName&&(0,u.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,u.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,u.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,c.isLeftClick)(n)&&i.finish(),t.mouseDown=!1,!(0,u.isOutsideInput)(o.activeElement)&&(i.isSelected()||i.isSelectedByAnyHeader()||r.contains(n.target)||(0,c.isRightClick)(n))||e.instance.unlisten()})),this.eventManager.addEventListener(a,"contextmenu",(function(e){i.isInProgress()&&(0,c.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,c=n.target;if(!t.mouseDown&&r&&e.instance.view){var f=e.instance.view._wt.wtTable.holder;if(c===f){var d=(0,u.getScrollbarWidth)(o);if(o.elementFromPoint(s+d,l)!==f||o.elementFromPoint(s,l+d)!==f)return}else for(;c!==a;){if(null===c){if(n.isTargetWebComponent)break;return}if(c===r)return;c=c.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,u.isInput)(t.target)||t.preventDefault()}))}},{key:"translateFromRenderableToVisualCoords",value:function(e){var t,n=e.row,r=e.col;return(t=this.instance)._createCellCoords.apply(t,(0,i.default)(this.translateFromRenderableToVisualIndex(n,r)))}},{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:"countNotHiddenFixedColumnsStart",value:function(){var e=this.instance.countCols(),t=Math.min(parseInt(this.settings.fixedColumnsStart,10),e)-1;return this.countNotHiddenColumnIndexes(t,-1)}},{key:"countNotHiddenFixedRowsTop",value:function(){var e=this.instance.countRows(),t=Math.min(parseInt(this.settings.fixedRowsTop,10),e)-1;return this.countNotHiddenRowIndexes(t,-1)}},{key:"countNotHiddenFixedRowsBottom",value:function(){var e=this.instance.countRows(),t=Math.max(e-parseInt(this.settings.fixedRowsBottom,10),0);return this.countNotHiddenRowIndexes(t,1)}},{key:"isMainTableNotFullyCoveredByOverlays",value:function(){var e=this.countNotHiddenFixedRowsTop()+this.countNotHiddenFixedRowsBottom(),t=this.countNotHiddenFixedColumnsStart();return this.instance.countRenderedRows()>e&&this.instance.countRenderedCols()>t}},{key:"initializeWalkontable",value:function(){var e=this,t=p.get(this),n={rtlMode:this.instance.isRtl(),externalRowCalculator:this.instance.getPlugin("autoRowSize")&&this.instance.getPlugin("autoRowSize").isEnabled(),table:t.table,isDataViewInstance:function(){return(0,h.isRootInstance)(e.instance)},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,i.default)(e.translateFromRenderableToVisualIndex(t,n)))},totalRows:function(){return e.countRenderableRows()},totalColumns:function(){return e.countRenderableColumns()},fixedColumnsStart:function(){return e.countNotHiddenFixedColumnsStart()},fixedRowsTop:function(){return e.countNotHiddenFixedRowsTop()},fixedRowsBottom:function(){return e.countNotHiddenFixedRowsBottom()},shouldRenderInlineStartOverlay:function(){return e.settings.fixedColumnsStart>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 i=e.translateFromRenderableToVisualIndex(t,n),a=(0,o.default)(i,2),s=a[0],u=a[1],l=e.instance.runHooks("modifyGetCellCoords",s,u),c=s,f=u;if(Array.isArray(l)){var d=(0,o.default)(l,2);c=d[0],f=d[1]}var h=e.instance.getCellMeta(c,f),p=e.instance.colToProp(f),y=e.instance.getDataAtRowProp(c,p);e.instance.hasHook("beforeValueRender")&&(y=e.instance.runHooks("beforeValueRender",y,h)),e.instance.runHooks("beforeRenderer",r,s,u,p,y,h),e.instance.getCellRenderer(h)(e.instance,r,s,u,p,y,h),e.instance.runHooks("afterRenderer",r,s,u,p,y,h)},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,c.isImmediatePropagationStopped)(n)||((0,d.handleMouseEvent)(n,{coords:a,selection:e.instance.selection,controller:s,cellCoordsFactory:function(t,n){return e.instance._createCellCoords(t,n)}}),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,c.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,c.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,c.isImmediatePropagationStopped)(n)||(t.mouseDown&&(0,d.handleMouseEvent)(n,{coords:a,selection:e.instance.selection,controller:s,cellCoordsFactory:function(t,n){return e.instance._createCellCoords(t,n)}}),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,c.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.afterRender(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 i,a=e.translateFromRenderableToVisualIndex(t,n),s=(0,o.default)(a,2),u=s[0],l=s[1],c=e.instance.selection.getSelectedRange(),f=c.size();if(f>0){var d=(null!=r?r:0)+1-f,h=c.peekByIndex(d);i=[h.from.row,h.from.col,h.to.row,h.to.col]}return e.instance.runHooks("afterDrawSelection",u,l,i,r)},onBeforeDrawBorders:function(t,n){var r=(0,o.default)(t,4),i=r[0],a=r[1],s=r[2],u=r[3],l=[e.instance.rowIndexMapper.getVisualFromRenderableIndex(i),e.instance.columnIndexMapper.getVisualFromRenderableIndex(a),e.instance.rowIndexMapper.getVisualFromRenderableIndex(s),e.instance.columnIndexMapper.getVisualFromRenderableIndex(u)];return e.instance.runHooks("beforeDrawBorders",l,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 i=e.instance.rowIndexMapper,a=e.instance.columnIndexMapper,s=n>=0?a.getVisualFromRenderableIndex(n):n,u=t>=0?i.getVisualFromRenderableIndex(t):t,l=e.instance.runHooks("modifyGetCellCoords",u,s,r);if(Array.isArray(l)){var c=(0,o.default)(l,4),f=c[0],d=c[1],h=c[2],p=c[3];return[f>=0?i.getRenderableFromVisualIndex(i.getFirstNotHiddenIndex(f,1)):f,d>=0?a.getRenderableFromVisualIndex(a.getFirstNotHiddenIndex(d,1)):d,h>=0?i.getRenderableFromVisualIndex(i.getFirstNotHiddenIndex(h,-1)):h,p>=0?a.getRenderableFromVisualIndex(a.getFirstNotHiddenIndex(p,-1)):p]}},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.fixedColumnsStart&&(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,a=this.instance.rootElement.getBoundingClientRect(),s=a.width,u=a.height;this.setLastSize(s,u),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,u.isInput)(e))return!0;var t=(0,u.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("beforeViewRender",this.instance.forceFullRender,t)}},{key:"afterRender",value:function(e){e&&this.instance.runHooks("afterViewRender",this.instance.forceFullRender)}},{key:"appendRowHeader",value:function(e,t){if(t.firstChild){var n=t.firstChild;if(!(0,u.hasClass)(n,"relative"))return(0,u.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,u.hasClass)(n,"relative")?this.updateCellHeader(n.querySelector(".colHeader"),e,this.instance.getColHeader):((0,u.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,u.hasClass)(e,"colHeader")?r=o.wtTable.columnFilter.sourceToRendered(t):(0,u.hasClass)(e,"rowHeader")&&(r=o.wtTable.rowFilter.sourceToRendered(t))),r>-1?(0,u.fastInnerHTML)(e,n(t)):((0,u.fastInnerText)(e,String.fromCharCode(160)),(0,u.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:"getFirstFullyVisibleRow",value:function(){return this.instance.rowIndexMapper.getVisualFromRenderableIndex(this.instance.view._wt.wtScroll.getFirstVisibleRow())}},{key:"getLastFullyVisibleRow",value:function(){return this.instance.rowIndexMapper.getVisualFromRenderableIndex(this.instance.view._wt.wtScroll.getLastVisibleRow())}},{key:"destroy",value:function(){this._wt.destroy(),this.eventManager.destroy()}}]),e}();t.default=y},function(e,t){e.exports=function(e,t){return t.get?t.get.call(e):t.value},e.exports.__esModule=!0,e.exports.default=e.exports},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.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(765)),s=r(n(300)),u=function(){function e(t){(0,o.default)(this,e),t instanceof s.default?this._wot=t:this._initFromSettings(t)}return(0,i.default)(e,[{key:"_initFromSettings",value:function(t){t.facade=function(t){var n=new e(t);return function(){return n}},this._wot=new a.default(t.table,t)}},{key:"guid",get:function(){return this._wot.guid}},{key:"rootDocument",get:function(){return this._wot.domBindings.rootDocument}},{key:"rootWindow",get:function(){return this._wot.domBindings.rootWindow}},{key:"wtSettings",get:function(){return this._wot.wtSettings}},{key:"cloneSource",get:function(){return this._wot.cloneSource}},{key:"cloneOverlay",get:function(){return this._wot.cloneOverlay}},{key:"selections",get:function(){return this._wot.selections}},{key:"wtViewport",get:function(){return this._wot.wtViewport}},{key:"wtOverlays",get:function(){return this._wot.wtOverlays}},{key:"wtTable",get:function(){return this._wot.wtTable}},{key:"wtEvent",get:function(){return this._wot.wtEvent}},{key:"wtScroll",get:function(){return this._wot.wtScroll}},{key:"drawn",get:function(){return this._wot.drawn},set:function(e){this._wot.drawn=e}},{key:"drawInterrupted",get:function(){return this._wot.drawInterrupted},set:function(e){this._wot.drawInterrupted=e}},{key:"lastMouseOver",get:function(){return this._wot.lastMouseOver},set:function(e){this._wot.lastMouseOver=e}},{key:"momentumScrolling",get:function(){return this._wot.momentumScrolling},set:function(e){this._wot.momentumScrolling=e}},{key:"touchApplied",get:function(){return this._wot.touchApplied},set:function(e){this._wot.touchApplied=e}},{key:"domBindings",get:function(){return this._wot.domBindings}},{key:"eventListeners",get:function(){return this._wot.eventListeners},set:function(e){this._wot.eventListeners=e}},{key:"eventManager",get:function(){return this._wot.eventManager}},{key:"createCellCoords",value:function(e,t){return this._wot.createCellCoords(e,t)}},{key:"createCellRange",value:function(e,t,n){return this._wot.createCellRange(e,t,n)}},{key:"draw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._wot.draw(e),this}},{key:"getCell",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._wot.getCell(e,t)}},{key:"scrollViewport",value:function(e,t,n,r,o){return this._wot.scrollViewport(e,t,n,r,o)}},{key:"scrollViewportHorizontally",value:function(e,t,n){return this._wot.scrollViewportHorizontally(e,t,n)}},{key:"scrollViewportVertically",value:function(e,t,n){return this._wot.scrollViewportVertically(e,t,n)}},{key:"getViewport",value:function(){return this._wot.getViewport()}},{key:"getOverlayName",value:function(){return this._wot.cloneOverlay?this._wot.cloneOverlay.type:"master"}},{key:"exportSettingsAsClassNames",value:function(){return this._wot.exportSettingsAsClassNames()}},{key:"update",value:function(e,t){return this._wot.wtSettings.update(e,t),this}},{key:"getSetting",value:function(e,t,n,r,o){return this._wot.wtSettings.getSetting(e,t,n,r,o)}},{key:"hasSetting",value:function(e){return this._wot.wtSettings.hasSetting(e)}},{key:"destroy",value:function(){this._wot.destroy()}}]),e}();t.default=u},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(46)),s=r(n(15)),u=r(n(16)),l=r(n(14)),c=r(n(579)),f=r(n(766)),d=r(n(794)),h=r(n(795)),p=r(n(796)),y=r(n(300)),m=n(17),g=n(23);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,u.default)(this,n)}}var E=function(e){(0,s.default)(n,e);var t=v(n);function n(e,r){var i;(0,o.default)(this,n);var s=(i=t.call(this,e,new d.default(r))).wtSettings.getSetting("facade",(0,a.default)(i));return i.wtTable=new h.default(i.getTableDao(),s,i.domBindings,i.wtSettings),i.wtViewport=new p.default(i.getViewportDao(),i.domBindings,i.wtSettings,i.eventManager,i.wtTable),i.selections=i.wtSettings.getSetting("selections"),i.wtEvent=new c.default(s,i.domBindings,i.wtSettings,i.eventManager,i.wtTable,i.selections),i.wtOverlays=new f.default((0,a.default)(i),s,i.domBindings,i.wtSettings,i.eventManager,i.wtTable),i.exportSettingsAsClassNames(),i.findOriginalHeaders(),i}return(0,i.default)(n,[{key:"exportSettingsAsClassNames",value:function(){var e=this,t=[],n=[];(0,m.objectEach)({rowHeaders:"htRowHeaders",columnHeaders:"htColumnHeaders"},(function(r,o){e.wtSettings.getSetting(o).length&&n.push(r),t.push(r)})),(0,g.removeClass)(this.wtTable.wtRootElement.parentNode,t),(0,g.addClass)(this.wtTable.wtRootElement.parentNode,n)}},{key:"getViewportDao",value:function(){var e=this;return{get wot(){return e},get topOverlayTrimmingContainer(){return e.wtOverlays.topOverlay.trimmingContainer},get inlineStartOverlayTrimmingContainer(){return e.wtOverlays.inlineStartOverlay.trimmingContainer},get topScrollPosition(){return e.wtOverlays.topOverlay.getScrollPosition()},get topParentOffset(){return e.wtOverlays.topOverlay.getTableParentOffset()},get inlineStartScrollPosition(){return e.wtOverlays.inlineStartOverlay.getScrollPosition()},get inlineStartParentOffset(){return e.wtOverlays.inlineStartOverlay.getTableParentOffset()},get topOverlay(){return e.wtOverlays.topOverlay},get inlineStartOverlay(){return e.wtOverlays.inlineStartOverlay},get bottomOverlay(){return e.wtOverlays.bottomOverlay}}}}]),n}(y.default);t.default=E},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0,n(18),n(0),n(26),n(76);var o=r(n(159)),i=r(n(5)),a=r(n(6)),s=r(n(43)),u=n(23),l=n(20),c=n(116),f=n(101),d=n(142),h=function(){function e(t,n,r,o,a,l){(0,i.default)(this,e),(0,s.default)(this,"wot",null),(0,s.default)(this,"topOverlay",null),(0,s.default)(this,"bottomOverlay",null),(0,s.default)(this,"inlineStartOverlay",null),(0,s.default)(this,"topInlineStartCornerOverlay",null),(0,s.default)(this,"bottomInlineStartCornerOverlay",null),(0,s.default)(this,"browserLineHeight",void 0),(0,s.default)(this,"wtSettings",null),this.wot=t,this.wtSettings=o,this.domBindings=r,this.facadeGetter=n,this.wtTable=l;var c=this.domBindings,f=c.rootDocument,d=c.rootWindow;this.instance=this.wot,this.eventManager=a,this.scrollbarSize=(0,u.getScrollbarWidth)(f);var h="hidden"===d.getComputedStyle(l.wtRootElement.parentNode).getPropertyValue("overflow");this.scrollableElement=h?l.holder:(0,u.getScrollableElement)(l.TABLE),this.initOverlays(),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.initBrowserLineHeight(),this.registerListeners(),this.lastScrollX=d.scrollX,this.lastScrollY=d.scrollY}return(0,a.default)(e,[{key:"initBrowserLineHeight",value:function(){var e=this.domBindings,t=e.rootWindow,n=e.rootDocument,r=t.getComputedStyle(n.body),o=parseInt(r.lineHeight,10),i=1.2*parseInt(r.fontSize,10);this.browserLineHeight=o||i}},{key:"initOverlays",value:function(){var e=[this.wot,this.facadeGetter,this.wtSettings,this.domBindings];this.topOverlay=(0,o.default)(d.TopOverlay,e),this.bottomOverlay=(0,o.default)(d.BottomOverlay,e),this.inlineStartOverlay=(0,o.default)(d.InlineStartOverlay,e),this.topInlineStartCornerOverlay=(0,o.default)(d.TopInlineStartCornerOverlay,e.concat([this.topOverlay,this.inlineStartOverlay])),this.bottomInlineStartCornerOverlay=(0,o.default)(d.BottomInlineStartCornerOverlay,e.concat([this.bottomOverlay,this.inlineStartOverlay]))}},{key:"updateStateOfRendering",value:function(){var e=this.topOverlay.updateStateOfRendering();return e=this.bottomOverlay.updateStateOfRendering()||e,e=this.inlineStartOverlay.updateStateOfRendering()||e,this.inlineStartOverlay.needFullRender&&(this.topOverlay.needFullRender&&(e=this.topInlineStartCornerOverlay.updateStateOfRendering()||e),this.bottomOverlay.needFullRender&&(e=this.bottomInlineStartCornerOverlay.updateStateOfRendering()||e)),e}},{key:"refreshAll",value:function(){this.wot.drawn&&(this.wtTable.holder.parentNode?(this.wot.draw(!0),this.verticalScrolling&&this.inlineStartOverlay.onScroll(),this.horizontalScrolling&&this.topOverlay.onScroll(),this.verticalScrolling=!1,this.horizontalScrolling=!1):this.destroy())}},{key:"registerListeners",value:function(){var e=this,t=this.domBindings,n=t.rootDocument,r=t.rootWindow,o=this.topOverlay.mainTableScrollableElement,i=this.inlineStartOverlay.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,u=this.scrollableElement===r,l=this.wtSettings.getSetting("preventWheel"),c={passive:u};(l||s||!(0,f.isChrome)())&&this.eventManager.addEventListener(this.wtTable.wtRootElement,"wheel",(function(t){return e.onCloneWheel(t,l)}),c),[this.topOverlay,this.bottomOverlay,this.inlineStartOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay].forEach((function(t){if(t&&t.needFullRender){var n=t.clone.wtTable.holder;e.eventManager.addEventListener(n,"wheel",(function(t){return e.onCloneWheel(t,l)}),c)}})),this.eventManager.addEventListener(r,"resize",(function(){clearTimeout(a),a=setTimeout((function(){e.wtSettings.getSetting("onWindowResize")}),200)}))}},{key:"deregisterListeners",value:function(){this.eventManager.clearEvents(!0)}},{key:"onTableScroll",value:function(e){var t=this.domBindings.rootWindow,n=this.inlineStartOverlay.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.domBindings.rootWindow,r=this.inlineStartOverlay.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 u=this.translateMouseWheelToScroll(e);(t||this.scrollableElement!==n&&u)&&e.preventDefault()}}},{key:"onKeyDown",value:function(e){this.keyPressed=(0,c.isKey)(e.keyCode,"ARROW_UP|ARROW_RIGHT|ARROW_DOWN|ARROW_LEFT")}},{key:"onKeyUp",value:function(){this.keyPressed=!1}},{key:"translateMouseWheelToScroll",value:function(e){var t=isNaN(e.deltaY)?-1*e.wheelDeltaY:e.deltaY,n=isNaN(e.deltaX)?-1*e.wheelDeltaX:e.deltaX;1===e.deltaMode&&(n+=n*this.browserLineHeight,t+=t*this.browserLineHeight);var r=this.scrollVertically(t),o=this.scrollHorizontally(n);return r||o}},{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.domBindings.rootWindow,t=this.topOverlay.clone.wtTable.holder,n=this.inlineStartOverlay.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.inlineStartOverlay.needFullRender&&(this.inlineStartOverlay.clone.wtTable.holder.scrollTop=n)}},{key:"updateMainScrollableElements",value:function(){this.deregisterListeners(),this.inlineStartOverlay.updateMainScrollableElement(),this.topOverlay.updateMainScrollableElement(),this.bottomOverlay.needFullRender&&this.bottomOverlay.updateMainScrollableElement();var e=this.wtTable;"hidden"===this.domBindings.rootWindow.getComputedStyle(e.wtRootElement.parentNode).getPropertyValue("overflow")?this.scrollableElement=e.holder:this.scrollableElement=(0,u.getScrollableElement)(e.TABLE),this.registerListeners()}},{key:"destroy",value:function(){this.eventManager.destroy(),this.topOverlay.destroy(),this.bottomOverlay.clone&&this.bottomOverlay.destroy(),this.inlineStartOverlay.destroy(),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.destroy(),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.destroy(),this.destroyed=!0}},{key:"refresh",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.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.inlineStartOverlay.refresh(e),this.topOverlay.refresh(e),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.refresh(e),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.refresh(e)}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.wot.wtViewport,n=this.wtTable,r=this.wtSettings.getSetting("totalColumns"),o=this.wtSettings.getSetting("totalRows"),i=t.getRowHeaderWidth(),a=t.getColumnHeaderHeight(),s=n.hider.style;if(s.width="".concat(i+this.inlineStartOverlay.sumCellSizes(0,r),"px"),s.height="".concat(a+this.topOverlay.sumCellSizes(0,o)+1,"px"),this.scrollbarSize>0){var u=n.wtRootElement,l=u.scrollHeight,c=u.scrollWidth,f=n.holder,d=f.scrollHeight,h=f.scrollWidth;this.hasScrollbarRight=l<d,this.hasScrollbarBottom=c<h,this.hasScrollbarRight&&n.hider.scrollWidth+this.scrollbarSize>c?this.hasScrollbarBottom=!0:this.hasScrollbarBottom&&n.hider.scrollHeight+this.scrollbarSize>l&&(this.hasScrollbarRight=!0)}this.topOverlay.adjustElementsSize(e),this.inlineStartOverlay.adjustElementsSize(e),this.bottomOverlay.adjustElementsSize(e)}},{key:"applyToDOM",value:function(){this.wtTable.isVisible()&&(this.topOverlay.applyToDOM(),this.bottomOverlay.clone&&this.bottomOverlay.applyToDOM(),this.inlineStartOverlay.applyToDOM())}},{key:"getParentOverlay",value:function(e){if(!e)return null;var t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay],n=null;return(0,l.arrayEach)(t,(function(t){t&&t.clone&&t.clone.wtTable.TABLE.contains(e)&&(n=t.clone)})),n}},{key:"syncOverlayTableClassNames",value:function(){var e=this.wtTable.TABLE,t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay];(0,l.arrayEach)(t,(function(t){t&&(t.clone.wtTable.TABLE.className=e.className)}))}}]),e}();t.default=h},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.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.BottomInlineStartCornerOverlay=void 0;var o=r(n(159)),i=r(n(5)),a=r(n(6)),s=r(n(15)),u=r(n(16)),l=r(n(14)),c=n(23),f=r(n(769)),d=n(161),h=n(143);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,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,u.default)(this,n)}}var y=function(e){(0,s.default)(n,e);var t=p(n);function n(e,r,o,a,s,u){var l;return(0,i.default)(this,n),(l=t.call(this,e,r,h.CLONE_BOTTOM_INLINE_START_CORNER,o,a)).bottomOverlay=s,l.inlineStartOverlay=u,l}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.wtSettings.getSetting("shouldRenderBottomOverlay")&&this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}},{key:"resetFixedPosition",value:function(){var e=this.wot;if(this.updateTrimmingContainer(),!e.wtTable.holder.parentNode)return!1;var t=this.clone.wtTable.holder.parentNode;if(t.style.top="",this.trimmingContainer===this.domBindings.rootWindow){var n=this.inlineStartOverlay.getOverlayOffset(),r=this.bottomOverlay.getOverlayOffset();t.style[this.isRtl()?"right":"left"]="".concat(n,"px"),t.style.bottom="".concat(r,"px")}else(0,c.resetCssTransform)(t),this.repositionOverlay();var o=(0,c.outerHeight)(this.clone.wtTable.TABLE),i=(0,c.outerWidth)(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(o=0),t.style.height="".concat(o,"px"),t.style.width="".concat(i,"px"),!1}},{key:"repositionOverlay",value:function(){var e=this.wot.wtTable,t=this.domBindings.rootDocument,n=this.clone.wtTable.holder.parentNode,r=(0,c.getScrollbarWidth)(t);e.holder.clientHeight===e.holder.offsetHeight&&(r=0),n.style.bottom="".concat(r,"px")}}]),n}(d.Overlay);t.BottomInlineStartCornerOverlay=y},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(6)),i=r(n(5)),a=r(n(15)),s=r(n(16)),u=r(n(14)),l=r(n(160)),c=r(n(583)),f=r(n(299)),d=n(17),h=n(142);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,s.default)(this,n)}}var y=function(e){(0,a.default)(n,e);var t=p(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,o,a,h.CLONE_BOTTOM_INLINE_START_CORNER)}return(0,o.default)(n)}(l.default);(0,d.mixin)(y,c.default),(0,d.mixin)(y,f.default);var m=y;t.default=m},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6)),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(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6)),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(7);var r=n(1);t.__esModule=!0,t.default=void 0,n(3),n(0),n(2),n(11),n(4);var o=r(n(5)),i=r(n(6)),a=r(n(15)),s=r(n(16)),u=r(n(14)),l=n(232);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,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,s.default)(this,n)}}var f=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 l.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),u=o.getRenderedNode(a);this.sourceRowIndex=s;var l=this.obtainOrderView(u),c=i.obtainOrderView(u);l.appendView(c).setSize(r).setOffset(this.table.renderedColumnToSource(0)).start();for(var f=0;f<r;f++){l.render();var d=l.getCurrentNode();d.className="",d.removeAttribute("style"),n[f](s,d,f)}l.end()}}}]),n}(r(n(195)).default);t.default=f},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(774)),s=n(582),u=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=u},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6)),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(0),n(7);var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(15)),s=r(n(16)),u=r(n(14));function l(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,s.default)(this,n)}}var c=function(e){(0,a.default)(n,e);var t=l(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(581)).default);t.default=c},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6)),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(0),n(7);var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(15)),s=r(n(16)),u=r(n(14)),l=n(23);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,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,s.default)(this,n)}}var f=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 u=t;u<s;u++)this.rootNode.removeChild(this.rootNode.lastChild)}else r&&(0,l.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 u=this.table.renderedColumnToSource(s),l=a.childNodes[s+i];l.className="",l.removeAttribute("style"),r[t](u,l,t)}}}]),n}(r(n(195)).default);t.default=f},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(15)),s=r(n(16)),u=r(n(14)),l=r(n(195)),c=n(23);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,s.default)(this,n)}}var d=function(e){(0,a.default)(n,e);var t=f(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),u=this.table.columnUtils.getStretchedColumnWidth(s);this.rootNode.childNodes[a+n].style.width="".concat(u,"px")}var l=this.rootNode.firstChild;l&&(0,c.addClass)(l,"rowHeader")}}]),n}(l.default);t.default=d},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.default=void 0;var o,i=r(n(79)),a=r(n(5)),s=r(n(6)),u=r(n(15)),l=r(n(16)),c=r(n(14)),f=n(88),d=n(80),h=n(232),p=r(n(195));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,l.default)(this,n)}}var m=!1,g=function(e){(0,u.default)(n,e);var t=y(n);function n(e){var r;return(0,a.default)(this,n),(r=t.call(this,"TR",e)).orderView=new h.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;!m&&e>1e3&&(m=!0,(0,f.warn)((0,d.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}(p.default);t.default=g},function(e,t,n){"use strict";n(7);var r=n(1);t.__esModule=!0,t.default=void 0,n(3),n(0),n(2),n(11),n(4);var o=r(n(5)),i=r(n(6)),a=r(n(15)),s=r(n(16)),u=r(n(14)),l=n(23),c=n(232);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,s.default)(this,n)}}var d=function(e){(0,a.default)(n,e);var t=f(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 u=this.obtainOrderView(s),c=o.obtainOrderView(s);u.prependView(c).setSize(n).setOffset(this.table.renderedColumnToSource(0)).start();for(var f=0;f<n;f++){u.render();var d=u.getCurrentNode(),h=this.table.renderedColumnToSource(f);(0,l.hasClass)(d,"hide")||(d.className=""),d.removeAttribute("style"),d.removeAttribute("dir"),this.table.cellRenderer(a,h,d)}u.end()}}}]),n}(r(n(195)).default);t.default=d},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6)),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(1);t.__esModule=!0,t.default=void 0,n(3),n(33),n(0),n(2),n(4);var o=r(n(5)),i=r(n(6)),a=n(23),s=function(){function e(t,n){(0,o.default)(this,e),this.dataAccessObject=t,this.wtSettings=n,this.headerWidths=new Map}return(0,i.default)(e,[{key:"getWidth",value:function(e){return this.wtSettings.getSetting("columnWidth",e)||this.wtSettings.getSetting("defaultColumnWidth")}},{key:"getStretchedColumnWidth",value:function(e){var t=this.dataAccessObject.wtViewport.columnsRenderCalculator,n=this.getWidth(e);if(t){var r=t.getStretchedColumnWidth(e,n);r&&(n=r)}return n}},{key:"getHeaderHeight",value:function(e){var t=this.wtSettings.getSetting("defaultRowHeight"),n=this.dataAccessObject.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.dataAccessObject.wtTable.columnFilter.sourceToRendered(e))}},{key:"calculateWidths",value:function(){var e=this.wtSettings,t=this.dataAccessObject,n=t.wtTable,r=t.wtViewport,o=t.cloneSource,i=o?o.wtTable.holder:n.holder,s=i.offsetHeight<i.scrollHeight?(0,a.getScrollbarWidth)():0,u=e.getSetting("rowHeaderWidth");if(r.columnsRenderCalculator.refreshStretching(r.getViewportWidth()-s),null!=(u=e.getSetting("onModifyRowHeaderWidth",u)))for(var l=e.getSetting("rowHeaders").length,c=e.getSetting("defaultColumnWidth"),f=0;f<l;f++){var d=Array.isArray(u)?u[f]:u;d=null==d?c:d,this.headerWidths.set(f,d)}}}]),e}();t.default=s},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6)),a=function(){function e(t,n){(0,o.default)(this,e),this.dataAccessObject=t,this.wtSettings=n}return(0,i.default)(e,[{key:"getHeight",value:function(e){var t=this.wtSettings.getSetting("rowHeight",e),n=this.dataAccessObject.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(0),n(7);var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(6)),i=r(n(5)),a=r(n(46)),s=r(n(15)),u=r(n(16)),l=r(n(14)),c=r(n(43)),f=r(n(579));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,u.default)(this,n)}}var h=function(e){(0,s.default)(n,e);var t=d(n);function n(e,r,o){var s;(0,i.default)(this,n),s=t.call(this,e,r),(0,c.default)((0,a.default)(s),"cloneSource",void 0),(0,c.default)((0,a.default)(s),"cloneOverlay",void 0);var u=s.wtSettings.getSetting("facade",(0,a.default)(s));return s.cloneSource=o.source,s.cloneOverlay=o.overlay,s.wtTable=s.cloneOverlay.createTable(s.getTableDao(),u,s.domBindings,s.wtSettings),s.wtViewport=o.viewport,s.selections=o.selections,s.wtEvent=new f.default(u,s.domBindings,s.wtSettings,s.eventManager,s.wtTable,s.selections,o.event),s.findOriginalHeaders(),s}return(0,o.default)(n)}(r(n(300)).default);t.default=h},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(43)),s=n(23),u=function(){function e(t){(0,o.default)(this,e),(0,a.default)(this,"dataAccessObject",void 0),this.dataAccessObject=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.dataAccessObject.drawn)return!1;var r=this.dataAccessObject,o=r.fixedColumnsStart,i=r.inlineStartOverlay,a=r.totalColumns,s=!1;if(e>=0&&e<=Math.max(a-1,0)){var u=this.getFirstVisibleColumn(),l=this.getLastVisibleColumn();e>=o&&u>-1&&(e<u||n)?s=i.scrollTo(e):(-1===l||l>-1&&(e>l||t))&&(s=i.scrollTo(e,!0))}return s}},{key:"scrollViewportVertically",value:function(e,t,n){if(!this.dataAccessObject.drawn)return!1;var r=this.dataAccessObject,o=r.fixedRowsBottom,i=r.fixedRowsTop,a=r.topOverlay,s=r.totalRows,u=!1;if(e>=0&&e<=Math.max(s-1,0)){var l=this.getFirstVisibleRow(),c=this.getLastVisibleRow();e>=i&&l>-1&&(e<l||t)?u=a.scrollTo(e):(-1===c||c>-1&&(e>c&&e<s-o||n))&&(u=a.scrollTo(e,!0))}return u}},{key:"getFirstVisibleRow",value:function(){var e=this.dataAccessObject,t=e.topOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalRows,i=e.fixedRowsTop,a=e.rootWindow,u=n.getFirstVisibleRow();if(t.mainTableScrollableElement===a){var l=(0,s.offset)(n.wtRootElement),c=(0,s.innerHeight)(n.hider),f=(0,s.innerHeight)(a),d=(0,s.getScrollTop)(a,a);if(l.top+c-f<=d){var h=r.getColumnHeaderHeight();h+=t.sumCellSizes(0,i);for(var p=o;p>0;p--)if(h+=t.sumCellSizes(p-1,p),l.top+c-h<=d){u=p;break}}}return u}},{key:"getLastVisibleRow",value:function(){var e=this.dataAccessObject,t=e.topOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalRows,i=e.rootWindow,a=n.getLastVisibleRow();if(t.mainTableScrollableElement===i){var u=(0,s.offset)(n.wtRootElement),l=(0,s.getScrollTop)(i,i);if(u.top>l)for(var c=(0,s.innerHeight)(i),f=r.getColumnHeaderHeight(),d=1;d<=o;d++)if(f+=t.sumCellSizes(d-1,d),u.top+f-l>=c){a=d-2;break}}return a}},{key:"getFirstVisibleColumn",value:function(){var e=this.dataAccessObject,t=e.inlineStartOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalColumns,i=e.rootWindow,a=n.getFirstVisibleColumn();if(t.mainTableScrollableElement===i){var u=(0,s.offset)(n.wtRootElement),l=(0,s.innerWidth)(n.hider),c=(0,s.innerWidth)(i),f=Math.abs((0,s.getScrollLeft)(i,i));if(u.left+l-c<=f)for(var d=r.getRowHeaderWidth(),h=o;h>0;h--)if(d+=t.sumCellSizes(h-1,h),u.left+l-d<=f){a=h;break}}return a}},{key:"getLastVisibleColumn",value:function(){var e=this.dataAccessObject,t=e.inlineStartOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalColumns,i=e.rootWindow,a=n.getLastVisibleColumn();if(t.mainTableScrollableElement===i){var u=(0,s.offset)(n.wtRootElement),l=Math.abs((0,s.getScrollLeft)(i,i));if(u.left>l)for(var c=(0,s.innerWidth)(i),f=r.getRowHeaderWidth(),d=1;d<=o;d++)if(f+=t.sumCellSizes(d-1,d),u.left+f-l>=c){a=d-2;break}}return a}}]),e}();t.default=u},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.BottomOverlay=void 0;var o=r(n(159)),i=r(n(5)),a=r(n(6)),s=r(n(46)),u=r(n(15)),l=r(n(16)),c=r(n(14)),f=r(n(43)),d=n(23),h=r(n(787)),p=n(161),y=n(143);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,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,l.default)(this,n)}}var g=function(e){(0,u.default)(n,e);var t=m(n);function n(e,r,o,a){var u;return(0,i.default)(this,n),u=t.call(this,e,r,y.CLONE_BOTTOM,o,a),(0,f.default)((0,s.default)(u),"cachedFixedRowsBottom",-1),u.cachedFixedRowsBottom=u.wtSettings.getSetting("fixedRowsBottom"),u}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)(h.default,t)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderBottomOverlay")}},{key:"resetFixedPosition",value:function(){if(!this.needFullRender||!this.wot.wtTable.holder.parentNode)return!1;var e=this.domBindings.rootWindow,t=this.clone.wtTable.holder.parentNode;t.style.top="";var n=0,r=this.wtSettings.getSetting("preventOverflow");this.trimmingContainer!==e||r&&"vertical"===r?(n=this.getScrollPosition(),this.repositionOverlay()):(n=this.getOverlayOffset(),t.style.bottom="".concat(n,"px"));var o=this.adjustHeaderBordersPosition(n);return this.adjustElementsSize(),o}},{key:"repositionOverlay",value:function(){var e=this.wot.wtTable,t=this.domBindings.rootDocument,n=this.clone.wtTable.holder.parentNode,r=(0,d.getScrollbarWidth)(t);e.holder.clientHeight===e.holder.offsetHeight&&(r=0),n.style.bottom="".concat(r,"px")}},{key:"setScrollPosition",value:function(e){var t=this.domBindings.rootWindow,n=!1;return this.mainTableScrollableElement===t?(t.scrollTo((0,d.getWindowScrollLeft)(t),e),n=!0):this.mainTableScrollableElement.scrollTop!==e&&(this.mainTableScrollableElement.scrollTop=e,n=!0),n}},{key:"onScroll",value:function(){this.wtSettings.getSetting("onScrollHorizontally")}},{key:"sumCellSizes",value:function(e,t){for(var n=this.wot,r=n.wtTable,o=n.wtSettings.getSetting("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=this.domBindings,o=r.rootDocument,i=r.rootWindow,a=(0,d.getScrollbarWidth)(o),s=this.clone.wtTable.holder.parentNode.style,u=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==i||"horizontal"===u){var l=n.getWorkspaceWidth();this.wot.wtOverlays.hasScrollbarRight&&(l-=a),l=Math.min(l,t.wtRootElement.scrollWidth),s.width="".concat(l,"px")}else s.width="";this.clone.wtTable.holder.style.width=s.width;var c=(0,d.outerHeight)(this.clone.wtTable.TABLE);this.wot.wtTable.hasDefinedSize()||(c=0),s.height="".concat(c,"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.wtSettings.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(){var e=this.isRtl()?"right":"left",t=this.clone.wtTable.spreader;"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?t.style[e]="".concat(this.wot.wtViewport.columnsRenderCalculator.startPosition,"px"):t.style[e]=""}},{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,d.getScrollbarWidth)(this.domBindings.rootDocument)),t?(n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportHeight(),n+=1):n+=this.sumCellSizes(this.wtSettings.getSetting("fixedRowsBottom"),e),n+=o,this.setScrollPosition(n)}},{key:"getTableParentOffset",value:function(){return this.mainTableScrollableElement===this.domBindings.rootWindow?this.wot.wtTable.holderOffset.top:0}},{key:"getScrollPosition",value:function(){return(0,d.getScrollTop)(this.mainTableScrollableElement,this.domBindings.rootWindow)}},{key:"getOverlayOffset",value:function(){var e=this.domBindings.rootWindow,t=this.wtSettings.getSetting("preventOverflow"),n=0;if(this.trimmingContainer===e&&(!t||"vertical"!==t)){var r=this.wot.wtTable.getTotalHeight(),o=r-this.clone.wtTable.getTotalHeight(),i=this.domBindings.rootDocument.documentElement.clientHeight;(n=Math.max(this.getTableParentOffset()-this.getScrollPosition()-i+r,0))>o&&(n=0)}return n}},{key:"adjustHeaderBordersPosition",value:function(e){var t=this.wtSettings.getSetting("fixedRowsBottom"),n=this.cachedFixedRowsBottom!==t,r=this.wtSettings.getSetting("columnHeaders"),o=!1;if((n||0===t)&&r.length>0){var i=this.wot.wtTable.holder.parentNode,a=(0,d.hasClass)(i,"innerBorderBottom");this.cachedFixedRowsBottom=this.wtSettings.getSetting("fixedRowsBottom"),e||0===this.wtSettings.getSetting("totalRows")?((0,d.addClass)(i,"innerBorderBottom"),o=!a):((0,d.removeClass)(i,"innerBorderBottom"),o=a)}return o}}]),n}(p.Overlay);t.BottomOverlay=g},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(6)),i=r(n(5)),a=r(n(15)),s=r(n(16)),u=r(n(14)),l=r(n(160)),c=r(n(583)),f=r(n(301)),d=n(17),h=n(142);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,s.default)(this,n)}}var y=function(e){(0,a.default)(n,e);var t=p(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,o,a,h.CLONE_BOTTOM)}return(0,o.default)(n)}(l.default);(0,d.mixin)(y,c.default),(0,d.mixin)(y,f.default);var m=y;t.default=m},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.InlineStartOverlay=void 0;var o=r(n(159)),i=r(n(5)),a=r(n(6)),s=r(n(15)),u=r(n(16)),l=r(n(14)),c=n(23),f=r(n(789)),d=n(161),h=n(143);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,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,u.default)(this,n)}}var y=function(e){(0,s.default)(n,e);var t=p(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,h.CLONE_INLINE_START,o,a)}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.wtSettings.getSetting("shouldRenderInlineStartOverlay")}},{key:"resetFixedPosition",value:function(){var e=this.wot.wtTable;if(!this.needFullRender||!e.holder.parentNode)return!1;var t=this.domBindings.rootWindow,n=this.clone.wtTable.holder.parentNode,r=this.wtSettings.getSetting("preventOverflow"),o=0;this.trimmingContainer!==t||r&&"horizontal"===r?(o=this.getScrollPosition(),(0,c.resetCssTransform)(n)):(o=this.getOverlayOffset()*(this.isRtl()?-1:1),(0,c.setOverlayPosition)(n,"".concat(o,"px"),"0px"));var i=this.adjustHeaderBordersPosition(o);return this.adjustElementsSize(),i}},{key:"setScrollPosition",value:function(e){var t=this.domBindings.rootWindow,n=!1;return this.isRtl()&&(e=-e),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.wtSettings.getSetting("onScrollVertically")}},{key:"sumCellSizes",value:function(e,t){for(var n=this.wtSettings.getSetting("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.wtTable,t=this.domBindings,n=t.rootDocument,r=t.rootWindow,o=(0,c.getScrollbarWidth)(n),i=this.clone.wtTable.holder.parentNode.style,a=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==r||"vertical"===a){var s=this.wot.wtViewport.getWorkspaceHeight();this.wot.wtOverlays.hasScrollbarBottom&&(s-=o),s=Math.min(s,e.wtRootElement.scrollHeight),i.height="".concat(s,"px")}else i.height="";this.clone.wtTable.holder.style.height=i.height;var u=(0,c.outerWidth)(this.clone.wtTable.TABLE);i.width="".concat(u,"px")}},{key:"adjustRootChildrenSize",value:function(){var e,t=this.clone.wtTable.holder,n=this.wot.selections,r=this.facadeGetter(),o=Math.abs(null!==(e=null==n?void 0:n.getCell().getBorder(r).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)+o,"px")}},{key:"applyToDOM",value:function(){var e=this.wtSettings.getSetting("totalColumns"),t=this.isRtl()?"right":"left";if("number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition)this.spreader.style[t]="".concat(this.wot.wtViewport.columnsRenderCalculator.startPosition,"px");else{if(0!==e)throw new Error("Incorrect value of the columnsRenderCalculator");this.spreader.style[t]="0"}this.isRtl()?this.spreader.style.left="":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.domBindings.rootDocument)),t?(n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportWidth()):n+=this.sumCellSizes(this.wtSettings.getSetting("fixedColumnsStart"),e),n+=o,this.setScrollPosition(n)}},{key:"getTableParentOffset",value:function(){var e=0;return this.wtSettings.getSetting("preventOverflow")||this.trimmingContainer!==this.domBindings.rootWindow||(e=this.wot.wtTable.holderOffset.left),e}},{key:"getScrollPosition",value:function(){return Math.abs((0,c.getScrollLeft)(this.mainTableScrollableElement,this.domBindings.rootWindow))}},{key:"getOverlayOffset",value:function(){var e=this.domBindings.rootWindow,t=this.wtSettings.getSetting("preventOverflow"),n=0;this.trimmingContainer!==e||t&&"horizontal"===t||(n=this.isRtl()?Math.abs(Math.min(this.getTableParentOffset()-this.getScrollPosition(),0)):Math.max(this.getScrollPosition()-this.getTableParentOffset(),0))>this.wot.wtTable.getTotalWidth()-this.clone.wtTable.getTotalWidth()&&(n=0);return n}},{key:"adjustHeaderBordersPosition",value:function(e){var t=this.wot.wtTable.holder.parentNode,n=this.wtSettings.getSetting("rowHeaders"),r=this.wtSettings.getSetting("fixedColumnsStart");this.wtSettings.getSetting("totalRows")?(0,c.removeClass)(t,"emptyRows"):(0,c.addClass)(t,"emptyRows");var o=!1;if(r&&!n.length)(0,c.addClass)(t,"innerBorderLeft innerBorderInlineStart");else if(!r&&n.length){var i=(0,c.hasClass)(t,"innerBorderInlineStart");e?((0,c.addClass)(t,"innerBorderLeft innerBorderInlineStart"),o=!i):((0,c.removeClass)(t,"innerBorderLeft innerBorderInlineStart"),o=i)}return o}}]),n}(d.Overlay);t.InlineStartOverlay=y},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(6)),i=r(n(5)),a=r(n(15)),s=r(n(16)),u=r(n(14)),l=r(n(160)),c=r(n(584)),f=r(n(299)),d=n(17),h=n(142);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,s.default)(this,n)}}var y=function(e){(0,a.default)(n,e);var t=p(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,o,a,h.CLONE_INLINE_START)}return(0,o.default)(n)}(l.default);(0,d.mixin)(y,c.default),(0,d.mixin)(y,f.default);var m=y;t.default=m},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.TopInlineStartCornerOverlay=void 0;var o=r(n(159)),i=r(n(5)),a=r(n(6)),s=r(n(46)),u=r(n(15)),l=r(n(16)),c=r(n(14)),f=r(n(43)),d=n(23),h=r(n(791)),p=n(161),y=n(143);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,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,l.default)(this,n)}}var g=function(e){(0,u.default)(n,e);var t=m(n);function n(e,r,o,a,u,l){var c;return(0,i.default)(this,n),c=t.call(this,e,r,y.CLONE_TOP_INLINE_START_CORNER,o,a),(0,f.default)((0,s.default)(c),"topOverlay",void 0),(0,f.default)((0,s.default)(c),"inlineStartOverlay",void 0),c.topOverlay=u,c.inlineStartOverlay=l,c}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)(h.default,t)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderTopOverlay")&&this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}},{key:"resetFixedPosition",value:function(){if(this.updateTrimmingContainer(),!this.wot.wtTable.holder.parentNode)return!1;var e=this.clone.wtTable.holder.parentNode;if(this.trimmingContainer===this.domBindings.rootWindow){var t=this.inlineStartOverlay.getOverlayOffset()*(this.isRtl()?-1:1),n=this.topOverlay.getOverlayOffset();(0,d.setOverlayPosition)(e,"".concat(t,"px"),"".concat(n,"px"))}else(0,d.resetCssTransform)(e);var r=(0,d.outerHeight)(this.clone.wtTable.TABLE),o=(0,d.outerWidth)(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(r=0),e.style.height="".concat(r,"px"),e.style.width="".concat(o,"px"),!1}}]),n}(p.Overlay);t.TopInlineStartCornerOverlay=g},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(6)),i=r(n(5)),a=r(n(15)),s=r(n(16)),u=r(n(14)),l=r(n(160)),c=r(n(585)),f=r(n(299)),d=n(17),h=n(142);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,s.default)(this,n)}}var y=function(e){(0,a.default)(n,e);var t=p(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,o,a,h.CLONE_TOP_INLINE_START_CORNER)}return(0,o.default)(n)}(l.default);(0,d.mixin)(y,c.default),(0,d.mixin)(y,f.default);var m=y;t.default=m},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.TopOverlay=void 0;var o=r(n(159)),i=r(n(5)),a=r(n(6)),s=r(n(46)),u=r(n(15)),l=r(n(16)),c=r(n(14)),f=r(n(43)),d=n(23),h=r(n(793)),p=n(161),y=n(143);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,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,l.default)(this,n)}}var g=function(e){(0,u.default)(n,e);var t=m(n);function n(e,r,o,a){var u;return(0,i.default)(this,n),u=t.call(this,e,r,y.CLONE_TOP,o,a),(0,f.default)((0,s.default)(u),"cachedFixedRowsTop",-1),u.cachedFixedRowsTop=u.wtSettings.getSetting("fixedRowsTop"),u}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)(h.default,t)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderTopOverlay")}},{key:"resetFixedPosition",value:function(){if(!this.needFullRender||!this.wot.wtTable.holder.parentNode)return!1;var e=this.clone.wtTable.holder.parentNode,t=this.domBindings.rootWindow,n=this.wtSettings.getSetting("preventOverflow"),r=0,o=!1;if(this.trimmingContainer!==t||n&&"vertical"===n)r=this.getScrollPosition(),(0,d.resetCssTransform)(e);else{var i=this.wot.wtTable.hider.getBoundingClientRect();o=Math.ceil(i.bottom)===e.offsetHeight,r=this.getOverlayOffset(),(0,d.setOverlayPosition)(e,"0px","".concat(r,"px"))}var a=this.adjustHeaderBordersPosition(r,o);return this.adjustElementsSize(),a}},{key:"setScrollPosition",value:function(e){var t=this.domBindings.rootWindow,n=!1;return this.mainTableScrollableElement===t&&t.scrollY!==e?(t.scrollTo((0,d.getWindowScrollLeft)(t),e),n=!0):this.mainTableScrollableElement.scrollTop!==e&&(this.mainTableScrollableElement.scrollTop=e,n=!0),n}},{key:"onScroll",value:function(){this.wtSettings.getSetting("onScrollHorizontally")}},{key:"sumCellSizes",value:function(e,t){for(var n=this.wtSettings.getSetting("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.wtTable,t=this.domBindings,n=t.rootDocument,r=t.rootWindow,o=(0,d.getScrollbarWidth)(n),i=this.clone.wtTable.holder.parentNode.style,a=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==r||"horizontal"===a){var s=this.wot.wtViewport.getWorkspaceWidth();this.wot.wtOverlays.hasScrollbarRight&&(s-=o),s=Math.min(s,e.wtRootElement.scrollWidth),i.width="".concat(s,"px")}else i.width="";this.clone.wtTable.holder.style.width=i.width;var u=(0,d.outerHeight)(this.clone.wtTable.TABLE);this.wot.wtTable.hasDefinedSize()||(u=0),i.height="".concat(u,"px")}},{key:"adjustRootChildrenSize",value:function(){var e,t=this.clone.wtTable.holder,n=this.wot.selections,r=this.facadeGetter(),o=Math.abs(null!==(e=null==n?void 0:n.getCell().getBorder(r).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)+o,"px")}},{key:"applyToDOM",value:function(){var e=this.wtSettings.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(){var e=this.isRtl()?"right":"left",t=this.clone.wtTable.spreader;"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?t.style[e]="".concat(this.wot.wtViewport.columnsRenderCalculator.startPosition,"px"):t.style[e]=""}},{key:"scrollTo",value:function(e,t){var n=this.wot,r=this.wtSettings,o=(n.cloneSource?n.cloneSource:n).wtTable.holder,i=this.getTableParentOffset(),a=0;if(t&&o.offsetHeight!==o.clientHeight&&(a=(0,d.getScrollbarWidth)(this.domBindings.rootDocument)),t){var s=r.getSetting("fixedRowsBottom"),u=r.getSetting("totalRows");i+=this.sumCellSizes(0,e+1),i-=n.wtViewport.getViewportHeight()-this.sumCellSizes(u-s,u),i+=1}else i+=this.sumCellSizes(r.getSetting("fixedRowsTop"),e);return i+=a,this.setScrollPosition(i)}},{key:"getTableParentOffset",value:function(){return this.mainTableScrollableElement===this.domBindings.rootWindow?this.wot.wtTable.holderOffset.top:0}},{key:"getScrollPosition",value:function(){return(0,d.getScrollTop)(this.mainTableScrollableElement,this.domBindings.rootWindow)}},{key:"getOverlayOffset",value:function(){var e=this.domBindings.rootWindow,t=this.wtSettings.getSetting("preventOverflow"),n=0;if(this.trimmingContainer===e&&(!t||"vertical"!==t)){var r=this.wot.wtTable.getTotalHeight()-this.clone.wtTable.getTotalHeight();(n=Math.max(this.getScrollPosition()-this.getTableParentOffset(),0))>r&&(n=0)}return n}},{key:"adjustHeaderBordersPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.wot.wtTable.holder.parentNode,r=this.wtSettings.getSetting("totalColumns");r?(0,d.removeClass)(n,"emptyColumns"):(0,d.addClass)(n,"emptyColumns");var o=!1;if(!t){var i=this.wtSettings.getSetting("fixedRowsTop"),a=this.cachedFixedRowsTop!==i,s=this.wtSettings.getSetting("columnHeaders");if((a||0===i)&&s.length>0){var u=(0,d.hasClass)(n,"innerBorderTop");this.cachedFixedRowsTop=this.wtSettings.getSetting("fixedRowsTop"),e||0===this.wtSettings.getSetting("totalRows")?((0,d.addClass)(n,"innerBorderTop"),o=!u):((0,d.removeClass)(n,"innerBorderTop"),o=u)}}return o}}]),n}(p.Overlay);t.TopOverlay=g},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(6)),i=r(n(5)),a=r(n(15)),s=r(n(16)),u=r(n(14)),l=r(n(160)),c=r(n(585)),f=r(n(301)),d=n(17),h=n(142);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,s.default)(this,n)}}var y=function(e){(0,a.default)(n,e);var t=p(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,o,a,h.CLONE_TOP)}return(0,o.default)(n)}(l.default);(0,d.mixin)(y,c.default),(0,d.mixin)(y,f.default);var m=y;t.default=m},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0,n(586);var o=r(n(5)),i=r(n(6)),a=r(n(43)),s=n(23),u=n(17),l=function(){function e(t){var n=this;(0,o.default)(this,e),(0,a.default)(this,"settings",{}),(0,a.default)(this,"defaults",Object.freeze(this.getDefaults())),(0,u.objectEach)(this.defaults,(function(e,r){if(void 0!==t[r])n.settings[r]=t[r];else{if(void 0===e)throw new Error('A required setting "'.concat(r,'" was not provided'));n.settings[r]=e}}))}return(0,i.default)(e,[{key:"getDefaults",value:function(){var e=this;return{facade:void 0,table:void 0,isDataViewInstance:!0,externalRowCalculator:!1,stretchH:"none",currentRowClassName:null,currentColumnClassName:null,preventOverflow:function(){return!1},preventWheel:!1,data:void 0,freezeOverlays:!1,fixedColumnsStart:0,fixedRowsTop:0,fixedRowsBottom:0,shouldRenderInlineStartOverlay:function(){return e.getSetting("fixedColumnsStart")>0||e.getSetting("rowHeaders").length>0},shouldRenderTopOverlay:function(){return e.getSetting("fixedRowsTop")>0||e.getSetting("columnHeaders").length>0},shouldRenderBottomOverlay:function(){return e.getSetting("fixedRowsBottom")>0},minSpareRows:0,rowHeaders:function(){return[]},columnHeaders:function(){return[]},totalRows:void 0,totalColumns:void 0,cellRenderer:function(t,n,r){var o=e.getSetting("data",t,n);(0,s.fastInnerText)(r,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,renderAllRows:!1,groups:!1,rowHeaderWidth:null,columnHeaderHeight:null,headerClassName:null,rtlMode:!1}}},{key:"update",value:function(e,t){var n=this;return void 0===t?(0,u.objectEach)(e,(function(e,t){n.settings[t]=e})):this.settings[e]=t,this}},{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:"getSettingPure",value:function(e){return this.settings[e]}},{key:"has",value:function(e){return!!this.settings[e]}}]),e}();t.default=l},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.default=void 0,n(42);var o=r(n(5)),i=r(n(6)),a=r(n(15)),s=r(n(16)),u=r(n(14)),l=n(23),c=r(n(160)),f=r(n(584)),d=r(n(301)),h=n(17);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,s.default)(this,n)}}var y=function(e){(0,a.default)(n,e);var t=p(n);function n(e,r,i,a){return(0,o.default)(this,n),t.call(this,e,r,i,a,"master")}return(0,i.default)(n,[{key:"alignOverlaysWithTrimmingContainer",value:function(){var e=(0,l.getTrimmingContainer)(this.wtRootElement),t=this.domBindings.rootWindow;if(e===t){this.wtSettings.getSetting("preventOverflow")||(this.holder.style.overflow="visible",this.wtRootElement.style.overflow="visible")}else{var n=e.parentElement,r=(0,l.getStyle)(e,"height",t),o=(0,l.getStyle)(e,"overflow",t),i=this.holder.style,a=e.scrollWidth,s=e.scrollHeight,u=e.getBoundingClientRect(),c=u.width,f=u.height;if(n&&["auto","hidden","scroll"].includes(o)){var d=e.cloneNode(!1);d.style.overflow="auto",e.nextElementSibling?n.insertBefore(d,e.nextElementSibling):n.appendChild(d);var h=parseInt((0,l.getComputedStyle)(d,t).height,10);n.removeChild(d),0===h&&(f=0)}f=Math.min(f,s),i.height="auto"===r?"auto":"".concat(f,"px"),c=Math.min(c,a),i.width="".concat(c,"px"),i.overflow="",this.hasTableHeight="auto"===i.height||f>0,this.hasTableWidth=c>0}this.isTableVisible=(0,l.isVisible)(this.TABLE)}},{key:"markOversizedColumnHeaders",value:function(){var e=this.wtSettings,t=this.dataAccessObject.wtViewport,n=e.getSetting("columnHeaders").length;if(n&&!t.hasOversizedColumnHeadersMarked.master){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);t.hasOversizedColumnHeadersMarked.master=!0}}}]),n}(c.default);(0,h.mixin)(y,f.default),(0,h.mixin)(y,d.default);var m=y;t.default=m},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6)),a=n(23),s=n(17),u=n(797),l=function(){function e(t,n,r,i,a){var s=this;(0,o.default)(this,e),this.dataAccessObject=t,this.wot=t.wot,this.instance=this.wot,this.domBindings=n,this.wtSettings=r,this.wtTable=a,this.oversizedRows=[],this.oversizedColumnHeaders=[],this.hasOversizedColumnHeadersMarked={},this.clientHeight=0,this.containerWidth=NaN,this.rowHeaderWidth=NaN,this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,this.eventManager=i,this.eventManager.addEventListener(this.domBindings.rootWindow,"resize",(function(){s.clientHeight=s.getWorkspaceHeight()}))}return(0,i.default)(e,[{key:"getWorkspaceHeight",value:function(){var e=this.domBindings.rootDocument,t=this.dataAccessObject.topOverlayTrimmingContainer,n=0;t===this.domBindings.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.wtSettings,r=this.domBindings,o=r.rootDocument,i=r.rootWindow,s=this.dataAccessObject.inlineStartOverlayTrimmingContainer,u=o.documentElement.offsetWidth,l=n.getSetting("totalColumns"),c=n.getSetting("preventOverflow"),f=n.getSetting("rtlMode"),d=this.wtTable.TABLE.getBoundingClientRect(),h=u-(f?d.right-u:d.left);if(c)return(0,a.outerWidth)(this.wtTable.wtRootElement);if(e=n.getSetting("freezeOverlays")?Math.min(h,u):Math.min(this.getContainerFillWidth(),h,u),s===i&&l>0&&this.sumColumnWidths(0,l-1)>e)return o.documentElement.clientWidth;if(s!==i&&("scroll"===(t=(0,a.getStyle)(this.dataAccessObject.inlineStartOverlayTrimmingContainer,"overflow",i))||"hidden"===t||"auto"===t))return Math.max(e,s.clientWidth);var p=n.getSetting("stretchH");return"none"!==p&&p?e:Math.max(e,(0,a.outerWidth)(this.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=0,r=e;r<t;)n+=this.wtTable.getColumnWidth(r),r+=1;return n}},{key:"getContainerFillWidth",value:function(){if(this.containerWidth)return this.containerWidth;var e=this.wtTable.holder,t=this.domBindings.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.wtTable.TABLE)}},{key:"getWorkspaceActualHeight",value:function(){return(0,a.outerHeight)(this.wtTable.TABLE)}},{key:"getWorkspaceActualWidth",value:function(){return(0,a.outerWidth)(this.wtTable.TABLE)||(0,a.outerWidth)(this.wtTable.TBODY)||(0,a.outerWidth)(this.wtTable.THEAD)}},{key:"getColumnHeaderHeight",value:function(){return this.wtSettings.getSetting("columnHeaders").length?isNaN(this.columnHeaderHeight)&&(this.columnHeaderHeight=(0,a.outerHeight)(this.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.wtSettings.getSetting("rowHeaderWidth"),t=this.wtSettings.getSetting("rowHeaders");if(e){this.rowHeaderWidth=0;for(var n=0,r=t.length;n<r;n++)this.rowHeaderWidth+=e[n]||e}if(isNaN(this.rowHeaderWidth))if(t.length){var o=this.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.wtSettings.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.wtSettings,i=this.wtTable;this.rowHeaderWidth=NaN,e=o.getSetting("renderAllRows")&&r===u.RENDER_TYPE?1/0:this.getViewportHeight();var s=this.dataAccessObject.topScrollPosition-this.dataAccessObject.topParentOffset;s<0&&(s=0);var l=o.getSetting("fixedRowsTop"),c=o.getSetting("fixedRowsBottom"),f=o.getSetting("totalRows");return l&&(s+=n=this.dataAccessObject.topOverlay.sumCellSizes(0,l),e-=n),c&&this.dataAccessObject.bottomOverlay.clone&&(e-=n=this.dataAccessObject.bottomOverlay.sumCellSizes(f-c,f)),t=i.holder.clientHeight===i.holder.offsetHeight?0:(0,a.getScrollbarWidth)(this.domBindings.rootDocument),new u.ViewportRowsCalculator({viewportSize:e,scrollOffset:s,totalItems:o.getSetting("totalRows"),itemSizeFn:function(e){return i.getRowHeight(e)},overrideFn:o.getSettingPure("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.wtSettings,n=this.wtTable,r=this.getViewportWidth(),o=Math.abs(this.dataAccessObject.inlineStartScrollPosition)-this.dataAccessObject.inlineStartParentOffset;this.columnHeaderHeight=NaN,o<0&&(o=0);var i=t.getSetting("fixedColumnsStart");if(i){var s=this.dataAccessObject.inlineStartOverlay.sumCellSizes(0,i);o+=s,r-=s}return n.holder.clientWidth!==n.holder.offsetWidth&&(r-=(0,a.getScrollbarWidth)(this.domBindings.rootDocument)),new u.ViewportColumnsCalculator({viewportSize:r,scrollOffset:Math.abs(o),totalItems:t.getSetting("totalColumns"),itemSizeFn:function(e){return n.getColumnWidth(e)},overrideFn:t.getSettingPure("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.wtSettings.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.wtSettings.getSetting("totalColumns")-1)}},{key:"resetHasOversizedColumnHeadersMarked",value:function(){(0,s.objectEach)(this.hasOversizedColumnHeadersMarked,(function(e,t,n){n[t]=void 0}))}}]),e}();t.default=l},function(e,t,n){"use strict";n(0),n(26),n(53);var r=n(1);t.__esModule=!0;var o={ViewportColumnsCalculator:!0,ViewportRowsCalculator:!0},i=r(n(574));t.ViewportColumnsCalculator=i.default;var a=r(n(575));t.ViewportRowsCalculator=a.default;var s=n(297);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(1);t.__esModule=!0,t.default=void 0,n(42),n(49),n(18),n(0),n(26),n(369);var o=r(n(34)),i=r(n(21)),a=r(n(5)),s=r(n(6)),u=n(23),l=r(n(799)),c=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 l.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=this.settings.createCellRange(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.getOuterTopStartCorner(),t=this.cellRange.getOuterBottomEndCorner();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(this.settings.createCellCoords(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,u.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,u.hasClass)(r,s)){var l=i+1;a="".concat(e,"-").concat(l)}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],l=i[2],c=i[3],f=this.settings,d=f.highlightHeaderClassName,h=f.highlightColumnClassName,p=f.highlightRowClassName,y=f.highlightOnlyClosestHeader,m=f.selectionType,g=void 0===m||["active-header","header"].includes(m);if(g&&null!==s&&null!==c)for(var v=0,E=0;E<n;E+=1){var b=e.wtTable.columnFilter.renderedToSource(E);if(b>=s&&b<=c){var T=e.wtTable.getColumnHeaders(b),C=T.length-1;y&&T.length>1&&(T=[T[C]]);for(var w=0;w<T.length;w+=1){var R=[],O=T[w];d&&R.push(d),h&&R.push(h),w=y?C:w;var S=e.getSetting("onBeforeHighlightingColumnHeader",b,w,{selectionType:m,columnCursor:v,selectionWidth:c-s+1,classNames:R});S!==b&&(O=e.wtTable.getColumnHeader(S,w)),(0,u.addClass)(O,R)}v+=1}}if(null!==a&&null!==l)for(var A=0,N=0;N<t;N+=1){var _=e.wtTable.rowFilter.renderedToSource(N);if(g&&_>=a&&_<=l){var k=e.wtTable.getRowHeaders(_),M=k.length-1;y&&k.length>1&&(k=[k[M]]);for(var I=0;I<k.length;I+=1){var P=[],x=k[I];d&&P.push(d),p&&P.push(p),I=y?M:I;var D=e.getSetting("onBeforeHighlightingRowHeader",_,I,{selectionType:m,rowCursor:A,selectionHeight:l-a+1,classNames:P});D!==_&&(x=e.wtTable.getRowHeader(D,I)),(0,u.addClass)(x,P)}A+=1}if(null!==s&&null!==c)for(var L=0;L<n;L+=1){var F=e.wtTable.columnFilter.renderedToSource(L);_>=a&&_<=l&&F>=s&&F<=c?this.settings.className&&this.addClassAtCoords(e,_,F,this.settings.className,this.settings.markIntersections):_>=a&&_<=l?p&&this.addClassAtCoords(e,_,F,p):F>=s&&F<=c&&h&&this.addClassAtCoords(e,_,F,h);var j=e.getSetting("onAfterDrawSelection",_,F,this.settings.layerLevel);"string"==typeof j&&this.addClassAtCoords(e,_,F,j)}}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=c},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0,n(75);var o=r(n(34)),i=r(n(5)),a=r(n(6)),s=n(23),u=n(81),l=n(17),c=n(101),f=function(){function e(t,n){(0,i.default)(this,e),n&&(this.eventManager=t.eventManager,this.instance=t,this.wot=t,this.settings=n,this.mouseDown=!1,this.main=null,this.top=null,this.bottom=null,this.start=null,this.end=null,this.topStyle=null,this.bottomStyle=null,this.startStyle=null,this.endStyle=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,u.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","start","bottom","end","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.start=this.main.childNodes[1],this.bottom=this.main.childNodes[2],this.end=this.main.childNodes[3],this.topStyle=this.top.style,this.startStyle=this.start.style,this.bottomStyle=this.bottom.style,this.endStyle=this.end.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,u=s.bordersHolder;u||((u=t.createElement("div")).className="htBorders",s.bordersHolder=u,s.spreader.appendChild(u)),u.appendChild(this.main)}},{key:"createMultipleSelectorHandles",value:function(){var e=this,t=this.wot.rootDocument;this.selectionHandles={top:t.createElement("DIV"),topHitArea:t.createElement("DIV"),bottom:t.createElement("DIV"),bottomHitArea:t.createElement("DIV")};this.selectionHandles.top.className="topSelectionHandle topLeftSelectionHandle",this.selectionHandles.topHitArea.className="topSelectionHandle-HitArea topLeftSelectionHandle-HitArea",this.selectionHandles.bottom.className="bottomSelectionHandle bottomRightSelectionHandle",this.selectionHandles.bottomHitArea.className="bottomSelectionHandle-HitArea bottomRightSelectionHandle-HitArea",this.selectionHandles.styles={top:this.selectionHandles.top.style,topHitArea:this.selectionHandles.topHitArea.style,bottom:this.selectionHandles.bottom.style,bottomHitArea:this.selectionHandles.bottomHitArea.style};var n={position:"absolute",height:"".concat(40,"px"),width:"".concat(40,"px"),"border-radius":"".concat(parseInt(40/1.5,10),"px")};(0,l.objectEach)(n,(function(t,n){e.selectionHandles.styles.bottomHitArea[n]=t,e.selectionHandles.styles.topHitArea[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,l.objectEach)(r,(function(t,n){e.selectionHandles.styles.bottom[n]=t,e.selectionHandles.styles.top[n]=t})),this.main.appendChild(this.selectionHandles.top),this.main.appendChild(this.selectionHandles.bottom),this.main.appendChild(this.selectionHandles.topHitArea),this.main.appendChild(this.selectionHandles.bottomHitArea)}},{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=this.wot.wtSettings.getSetting("rtlMode")?"right":"left",s=parseInt(this.selectionHandles.styles.top.width,10),u=parseInt(this.selectionHandles.styles.topHitArea.width,10);this.selectionHandles.styles.top.top="".concat(parseInt(n-s-1,10),"px"),this.selectionHandles.styles.top[a]="".concat(parseInt(r-s-1,10),"px"),this.selectionHandles.styles.topHitArea.top="".concat(parseInt(n-u/4*3,10),"px"),this.selectionHandles.styles.topHitArea[a]="".concat(parseInt(r-u/4*3,10),"px"),this.selectionHandles.styles.bottom.top="".concat(parseInt(n+i,10),"px"),this.selectionHandles.styles.bottom[a]="".concat(parseInt(r+o,10),"px"),this.selectionHandles.styles.bottomHitArea.top="".concat(parseInt(n+i-u/4,10),"px"),this.selectionHandles.styles.bottomHitArea[a]="".concat(parseInt(r+o-u/4,10),"px"),this.settings.border.cornerVisible&&this.settings.border.cornerVisible()?(this.selectionHandles.styles.top.display="block",this.selectionHandles.styles.topHitArea.display="block",this.isPartRange(e,t)?(this.selectionHandles.styles.bottom.display="none",this.selectionHandles.styles.bottomHitArea.display="none"):(this.selectionHandles.styles.bottom.display="block",this.selectionHandles.styles.bottomHitArea.display="block")):(this.selectionHandles.styles.top.display="none",this.selectionHandles.styles.bottom.display="none",this.selectionHandles.styles.topHitArea.display="none",this.selectionHandles.styles.bottomHitArea.display="none"),e===this.wot.wtSettings.getSetting("fixedRowsTop")||t===this.wot.wtSettings.getSetting("fixedColumnsStart")?(this.selectionHandles.styles.top.zIndex="9999",this.selectionHandles.styles.topHitArea.zIndex="9999"):(this.selectionHandles.styles.top.zIndex="",this.selectionHandles.styles.topHitArea.zIndex="")}},{key:"appear",value:function(e){if(!this.disabled){for(var t,n,r,i,a,u,l=this.wot,f=l.wtTable,d=l.rootDocument,h=l.rootWindow,p=f.getRenderedRowsCount(),y=0;y<p;y+=1){var m=f.rowFilter.renderedToSource(y);if(m>=e[0]&&m<=e[2]){t=m,a=e[0];break}}for(var g=p-1;g>=0;g-=1){var v=f.rowFilter.renderedToSource(g);if(v>=e[0]&&v<=e[2]){n=v;break}}for(var E=f.getRenderedColumnsCount(),b=0;b<E;b+=1){var T=f.columnFilter.renderedToSource(b);if(T>=e[1]&&T<=e[3]){r=T,u=e[1];break}}for(var C=E-1;C>=0;C-=1){var w=f.columnFilter.renderedToSource(C);if(w>=e[1]&&w<=e[3]){i=w;break}}if(void 0!==t&&void 0!==r){var R=f.getCell(this.wot.createCellCoords(t,r)),O=t!==n||r!==i,S=O?f.getCell(this.wot.createCellCoords(n,i)):R,A=(0,s.offset)(R),N=O?(0,s.offset)(S):A,_=(0,s.offset)(f.TABLE),k=(0,s.outerWidth)(f.TABLE),M=A.top,I=A.left,P=this.wot.wtSettings.getSetting("rtlMode"),x=0,D=0;if(P){var L=(0,s.outerWidth)(R),F=h.innerWidth-_.left-k;D=I+L-N.left,x=h.innerWidth-I-L-F-1}else D=N.left+(0,s.outerWidth)(S)-I,x=I-_.left-1;if(this.isEntireColumnSelected(t,n)){var j=this.getDimensionsFromHeader("columns",r,i,a,_),U=null;if(j){var H=(0,o.default)(j,3);U=H[0],x=H[1],D=H[2]}U&&(R=U)}var B=M-_.top-1,V=N.top+(0,s.outerHeight)(S)-M;if(this.isEntireRowSelected(r,i)){var W=this.getDimensionsFromHeader("rows",t,n,u,_),Y=null;if(W){var G=(0,o.default)(W,3);Y=G[0],B=G[1],V=G[2]}Y&&(R=Y)}var z=(0,s.getComputedStyle)(R,h);parseInt(z.borderTopWidth,10)>0&&(B+=1,V=V>0?V-1:0),parseInt(z[P?"borderRightWidth":"borderLeftWidth"],10)>0&&(x+=1,D=D>0?D-1:0);var K=P?"right":"left";this.topStyle.top="".concat(B,"px"),this.topStyle[K]="".concat(x,"px"),this.topStyle.width="".concat(D,"px"),this.topStyle.display="block",this.startStyle.top="".concat(B,"px"),this.startStyle[K]="".concat(x,"px"),this.startStyle.height="".concat(V,"px"),this.startStyle.display="block";var X=Math.floor(this.settings.border.width/2);this.bottomStyle.top="".concat(B+V-X,"px"),this.bottomStyle[K]="".concat(x,"px"),this.bottomStyle.width="".concat(D,"px"),this.bottomStyle.display="block",this.endStyle.top="".concat(B,"px"),this.endStyle[K]="".concat(x+D-X,"px"),this.endStyle.height="".concat(V+1,"px"),this.endStyle.display="block";var q=this.settings.border.cornerVisible;q="function"==typeof q?q(this.settings.layerLevel):q;var Q=this.wot.getSetting("onModifyGetCellCoords",n,i),$=n,Z=i;if(Q&&Array.isArray(Q)){var J=(0,o.default)(Q,4);$=J[2],Z=J[3]}if((0,c.isMobileBrowser)()||!q||this.isPartRange($,Z))this.cornerStyle.display="none";else{this.cornerStyle.top="".concat(B+V+this.cornerCenterPointOffset-1,"px"),this.cornerStyle[K]="".concat(x+D+this.cornerCenterPointOffset-1,"px"),this.cornerStyle.borderRightWidth=this.cornerDefaultStyle.borderWidth,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.display="none";var ee=(0,s.getTrimmingContainer)(f.TABLE),te=ee===h;if(te&&(ee=d.documentElement),i===this.wot.getSetting("totalColumns")-1){var ne=te?S.getBoundingClientRect().left:S.offsetLeft;(P?ne-parseInt(this.cornerDefaultStyle.width,10)/2<0:ne+(0,s.outerWidth)(S)+parseInt(this.cornerDefaultStyle.width,10)/2>=(0,s.innerWidth)(ee))&&(this.cornerStyle[K]="".concat(Math.floor(x+D+this.cornerCenterPointOffset-parseInt(this.cornerDefaultStyle.width,10)/2),"px"),this.cornerStyle[P?"borderLeftWidth":"borderRightWidth"]=0)}if(n===this.wot.getSetting("totalRows")-1)(te?S.getBoundingClientRect().top:S.offsetTop)+(0,s.outerHeight)(S)+parseInt(this.cornerDefaultStyle.height,10)/2>=(0,s.innerHeight)(ee)&&(this.cornerStyle.top="".concat(Math.floor(B+V+this.cornerCenterPointOffset-parseInt(this.cornerDefaultStyle.height,10)/2),"px"),this.cornerStyle.borderBottomWidth=0);this.cornerStyle.display="block"}(0,c.isMobileBrowser)()&&this.updateMultipleSelectionHandlesPosition(n,i,B,x,D,V)}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,u=null,l=null,c=null,f=null,d=null,h=null,p=null,y=null;switch(e){case"rows":u=function(){return i.getRowHeader.apply(i,arguments)},l=function(){return s.outerHeight.apply(void 0,arguments)},c="ht__selection--rows",h="top";break;case"columns":u=function(){return i.getColumnHeader.apply(i,arguments)},l=function(){return s.outerWidth.apply(void 0,arguments)},c="ht__selection--columns",h="left"}if(a.classList.contains(c)){var m=this.wot.getSetting("columnHeaders").length;if(p=u(t,m-r),y=u(n,m-r),!p||!y)return!1;var g=(0,s.offset)(p),v=(0,s.offset)(y);return p&&y&&(f=g[h]-o[h]-1,d=v[h]+l(y)-g[h]),[p,f,d]}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")),"start"!==e&&"end"!==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.bottomStyle.display="none",this.startStyle.display="none",this.endStyle.display="none",this.cornerStyle.display="none",(0,c.isMobileBrowser)()&&(this.selectionHandles.styles.top.display="none",this.selectionHandles.styles.bottom.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(1);t.__esModule=!0,t.default=void 0,n(67),n(52),n(0),n(26);var o=r(n(5)),i=r(n(6)),a=n(17),s=n(144),u=n(20),l=n(47),c=n(68),f=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,u.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,u=null;if(s=this.modifyRowData(e),Array.isArray(s))u=[],i?s.forEach((function(t,n){u[n]=r.getAtPhysicalCell(e,n,s)})):(0,l.rangeEach)(t,n,(function(n){u[n-t]=r.getAtPhysicalCell(e,n,s)}));else if((0,a.isObject)(s)||(0,c.isFunction)(s))if(u=o?[]:{},!i||o){var f=0,d=this.countFirstRowKeys()-1;(0,l.rangeEach)(f,d,(function(i){var l=r.colToProp(i);if(i>=(t||f)&&i<=(n||d)&&!Number.isInteger(l)){var c=r.getAtPhysicalCell(e,l,s);o?u.push(c):(0,a.setProperty)(u,l,c)}}))}else(0,a.objectEach)(s,(function(t,n){(0,a.setProperty)(u,n,r.getAtPhysicalCell(e,n,s))}));return u}},{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,u=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),u=Math.max(t.col,n.col));var c=[];return(0,l.rangeEach)(i,s,(function(t){c.push(o?e.getAtRow(t,void 0,void 0,r):e.getAtRow(t,a,u,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=f},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.IndexMapper=void 0,n(0),n(3),n(33),n(2),n(4),n(37),n(40),n(35),n(42),n(49),n(137);var o=r(n(44)),i=r(n(5)),a=r(n(6)),s=n(20),u=n(588),l=n(807),c=r(n(92)),f=n(17),d=n(32),h=n(809),p=function(){function e(){var t=this;(0,i.default)(this,e),this.indexesSequence=new u.IndexesSequence,this.trimmingMapsCollection=new l.AggregatedCollection((function(e){return e.some((function(e){return!0===e}))}),!1),this.hidingMapsCollection=new l.AggregatedCollection((function(e){return e.some((function(e){return!0===e}))}),!1),this.variousMapsCollection=new l.MapCollection,this.hidingChangesObservable=new h.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,u.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 u.TrimmingMap?this.trimmingMapsCollection.register(e,t):t instanceof u.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,d.isDefined)(t)?t:null}},{key:"getPhysicalFromRenderableIndex",value:function(e){var t=this.renderablePhysicalIndexesCache[e];return(0,d.isDefined)(t)?t:null}},{key:"getVisualFromPhysicalIndex",value:function(e){var t=this.fromPhysicalToVisualIndexesCache.get(e);return(0,d.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,d.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:"fitToLength",value:function(e){var t=this.getNumberOfIndexes();if(e<t){var n=(0,o.default)(Array(this.getNumberOfIndexes()-e).keys()).map((function(t){return t+e}));this.removeIndexes(n)}else this.insertIndexes(t,e-t)}},{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,u.getListWithRemovedItems)(this.getIndexesSequence(),r),l=o-i;if(t+i<o){var c=a.filter((function(e){return!1===n.isTrimmed(e)}))[t];l=a.indexOf(c)}this.setIndexesSequence((0,u.getListWithInsertedItems)(a,l,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,d.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=p,(0,f.mixin)(p,c.default)},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.HidingMap=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(15)),s=r(n(16)),u=r(n(14)),l=n(303),c=n(20);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,s.default)(this,n)}}var d=function(e){(0,a.default)(n,e);var t=f(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}(l.PhysicalIndexToValueMap);t.HidingMap=d},function(e,t,n){var r=n(14);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(7);var r=n(1);t.__esModule=!0,t.LinkedPhysicalIndexToValueMap=void 0,n(18),n(37),n(3),n(0),n(4),n(42),n(49),n(54);var o=r(n(44)),i=r(n(5)),a=r(n(6)),s=r(n(46)),u=r(n(31)),l=r(n(15)),c=r(n(16)),f=r(n(14)),d=r(n(43)),h=n(233),p=n(304),y=n(234),m=n(589),g=n(68);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,f.default)(e);if(t){var o=(0,f.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,l.default)(n,e);var t=v(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,d.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,u.default)((0,f.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,y.getListWithRemovedItems)(this.orderOfIndexes,[e]),(0,g.isFunction)(this.initValueOrFn)?(0,u.default)((0,f.default)(n.prototype),"setValueAtIndex",this).call(this,e,this.initValueOrFn(e)):(0,u.default)((0,f.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,u.default)((0,f.default)(n.prototype),"setDefaultValues",this).call(this,e)}},{key:"insert",value:function(e,t){this.indexedValues=(0,p.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),this.orderOfIndexes=(0,m.getIncreasedIndexes)(this.orderOfIndexes,t),(0,u.default)((0,f.default)(n.prototype),"insert",this).call(this,e,t)}},{key:"remove",value:function(e){this.indexedValues=(0,p.getListWithRemovedItems)(this.indexedValues,e),this.orderOfIndexes=(0,y.getListWithRemovedItems)(this.orderOfIndexes,e),this.orderOfIndexes=(0,m.getDecreasedIndexes)(this.orderOfIndexes,e),(0,u.default)((0,f.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}(h.IndexMap);t.LinkedPhysicalIndexToValueMap=E},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.TrimmingMap=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(15)),s=r(n(16)),u=r(n(14)),l=n(303),c=n(20);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,s.default)(this,n)}}var d=function(e){(0,a.default)(n,e);var t=f(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}(l.PhysicalIndexToValueMap);t.TrimmingMap=d},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.IndexesSequence=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(31)),s=r(n(15)),u=r(n(16)),l=r(n(14)),c=n(233),f=n(234),d=n(590);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,u.default)(this,n)}}var p=function(e){(0,s.default)(n,e);var t=h(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,d.getIncreasedIndexes)(this.indexedValues,t);this.indexedValues=(0,f.getListWithInsertedItems)(r,e,t),(0,a.default)((0,l.default)(n.prototype),"insert",this).call(this,e,t)}},{key:"remove",value:function(e){var t=(0,f.getListWithRemovedItems)(this.indexedValues,e);this.indexedValues=(0,d.getDecreasedIndexes)(t,e),(0,a.default)((0,l.default)(n.prototype),"remove",this).call(this,e)}}]),n}(c.IndexMap);t.IndexesSequence=p},function(e,t,n){"use strict";n(0),n(26),n(53),t.__esModule=!0;var r=n(808);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(305);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(0),n(7);var r=n(1);t.__esModule=!0,t.AggregatedCollection=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(15)),s=r(n(16)),u=r(n(14)),l=n(305),c=n(20),f=n(32);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,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,s.default)(this,n)}}var h=function(e){(0,a.default)(n,e);var t=d(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,f.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,f.isDefined)(n)?n:this.fallbackValue}},{key:"updateCache",value:function(){this.mergedValuesCache=this.getMergedValues(!1)}}]),n}(l.MapCollection);t.AggregatedCollection=h},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.ChangesObservable=void 0,n(3),n(0),n(55),n(2),n(4),n(137),n(26),n(11);var o=r(n(5)),i=r(n(6)),a=r(n(103)),s=r(n(104)),u=n(810),l=n(811);function c(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var f=new WeakMap,d=new WeakMap,h=new WeakMap,p=new WeakMap,y=new WeakMap,m=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.initialIndexValue;(0,o.default)(this,e),c(this,f,{writable:!0,value:new Set}),c(this,d,{writable:!0,value:[]}),c(this,h,{writable:!0,value:[]}),c(this,p,{writable:!0,value:!1}),c(this,y,{writable:!0,value:!1}),(0,s.default)(this,y,null!=n&&n)}return(0,i.default)(e,[{key:"createObserver",value:function(){var e=this,t=new u.ChangesObserver;return(0,a.default)(this,f).add(t),t.addLocalHook("unsubscribe",(function(){(0,a.default)(e,f).delete(t)})),t._writeInitialChanges((0,l.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,p)&&(0,a.default)(this,d).length===e.length||(0===e.length?e=new Array(t.length).fill((0,a.default)(this,y)):(0,s.default)(this,d,new Array(e.length).fill((0,a.default)(this,y))),(0,a.default)(this,p)||((0,s.default)(this,p,!0),t=(0,a.default)(this,d)));var n=(0,l.arrayDiff)(t,e);(0,a.default)(this,f).forEach((function(e){return e._write(n)})),(0,s.default)(this,h,e)}}]),e}();t.ChangesObservable=m},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.ChangesObserver=void 0,n(3),n(0),n(2),n(11),n(4);var o=r(n(5)),i=r(n(6)),a=r(n(104)),s=r(n(103)),u=n(17),l=r(n(92));function c(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var f=new WeakMap,d=function(){function e(){(0,o.default)(this,e),c(this,f,{writable:!0,value:[]})}return(0,i.default)(e,[{key:"subscribe",value:function(e){return this.addLocalHook("change",e),this._write((0,s.default)(this,f)),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,f,e)}}]),e}();t.ChangesObserver=d,(0,u.mixin)(d,l.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(1);t.__esModule=!0,t.getPhraseFormatters=t.getAll=function(){return u()},t.registerPhraseFormatter=t.register=l;var o=r(n(110)),i=r(n(813)),a=(0,o.default)("phraseFormatters"),s=a.register,u=a.getValues;function l(e,t){s(e,t)}l("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(67),n(52)},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.default=void 0;var i,a=r(n(43)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}var 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(53),n(8),n(40),n(0),n(19),n(26),n(83);var r=n(1);t.__esModule=!0,t.createHighlight=function(e,t){return m(e)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({type:e},t))};var o=r(n(43)),i=r(n(110)),a=n(111),s=r(n(816)),u=r(n(818)),l=r(n(819)),c=r(n(820)),f=r(n(821)),d=r(n(822));function h(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 p=(0,i.default)("highlight/types"),y=p.register,m=p.getItem;y(a.ACTIVE_HEADER_TYPE,s.default),y(a.AREA_TYPE,u.default),y(a.CELL_TYPE,l.default),y(a.CUSTOM_SELECTION_TYPE,c.default),y(a.FILL_TYPE,f.default),y(a.HEADER_TYPE,d.default)},function(e,t,n){"use strict";n(53),n(8),n(40),n(0),n(19),n(26),n(83);var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(43)),i=r(n(117)),a=n(111),s=r(n(163)),u=["activeHeaderClassName"];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 c(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 f=function(e){var t=e.activeHeaderClassName,n=(0,i.default)(e,u);return new s.default(c(c({highlightHeaderClassName:t},n),{},{selectionType:a.ACTIVE_HEADER_TYPE}))};t.default=f},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.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(53),n(8),n(40),n(0),n(19),n(26),n(83);var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(43)),i=r(n(117)),a=n(111),s=r(n(163)),u=["layerLevel","areaCornerVisible"];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 c(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 f=function(e){var t=e.layerLevel,n=e.areaCornerVisible,r=(0,i.default)(e,u);return new s.default(c(c({className:"area",markIntersections:!0,layerLevel:Math.min(t,7),border:{width:1,color:"#4b89ff",cornerVisible:n}},r),{},{selectionType:a.AREA_TYPE}))};t.default=f},function(e,t,n){"use strict";n(53),n(8),n(40),n(0),n(19),n(26),n(83);var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(43)),i=r(n(117)),a=n(111),s=r(n(163)),u=["cellCornerVisible"];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 c(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 f=function(e){var t=e.cellCornerVisible,n=(0,i.default)(e,u);return new s.default(c(c({className:"current",border:{width:2,color:"#4b89ff",cornerVisible:t}},n),{},{selectionType:a.CELL_TYPE}))};t.default=f},function(e,t,n){"use strict";n(53),n(8),n(40),n(0),n(19),n(26),n(83);var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(43)),i=r(n(117)),a=n(111),s=r(n(163)),u=["border","visualCellRange"];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 c(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 f=function(e){var t=e.border,n=e.visualCellRange,r=(0,i.default)(e,u);return new s.default(c(c(c({},t),r),{},{selectionType:a.CUSTOM_SELECTION_TYPE}),n)};t.default=f},function(e,t,n){"use strict";n(53),n(8),n(40),n(0),n(19),n(26),n(83);var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(43));n(87);var i=n(111),a=r(n(163));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 u(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 l=function(e){var t=Object.assign({},e);return new a.default(u(u({className:"fill",border:{width:1,color:"#ff0000"}},t),{},{selectionType:i.FILL_TYPE}))};t.default=l},function(e,t,n){"use strict";n(53),n(8),n(40),n(0),n(19),n(26),n(83);var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(43)),i=r(n(117)),a=n(111),s=r(n(163)),u=["headerClassName","rowClassName","columnClassName"];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 c(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 f=function(e){var t=e.headerClassName,n=e.rowClassName,r=e.columnClassName,o=(0,i.default)(e,u);return new s.default(c(c({className:"highlight",highlightHeaderClassName:t,highlightRowClassName:n,highlightColumnClassName:r},o),{},{highlightOnlyClosestHeader:!0,selectionType:a.HEADER_TYPE}))};t.default=f},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(34)),i=r(n(79));n(3),n(0),n(55),n(2),n(4),n(18),n(22),n(42),n(49),n(67),n(52),n(26);var a,s=r(n(5)),u=r(n(6)),l=r(n(593)),c=n(111),f=r(n(824)),d=n(17),h=n(32),p=n(20),y=r(n(92)),m=r(n(825)),g=n(235),v=n(80),E=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 f.default((function(e,t,n){return r.tableProps.createCellRange(e,t,n)})),this.highlight=new l.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)},createCellCoords:function(e,t){return r.tableProps.createCellCoords(e,t)},createCellRange:function(e,t,n){return r.tableProps.createCellRange(e,t,n)}}),this.transformation=new m.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)},createCellCoords:function(e,t){return r.tableProps.createCellCoords(e,t)},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,u.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,h.isUndefined)(t)?this.tableProps.getShortcutManager().isCtrlPressed():t,i=e.row<0,a=e.col<0,s=i&&a,u=e.clone();this.selectedByCorner=s,this.runLocalHooks("beforeSetRangeStart".concat(n?"Only":""),u),(!r||r&&!o&&(0,h.isUndefined)(t))&&this.selectedRange.clear(),this.selectedRange.add(u),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()){var t=e.clone();this.runLocalHooks("beforeSetRangeEnd",t),this.begin();var n=this.selectedRange.current();"single"!==this.settings.selectionMode&&n.setTo(this.tableProps.createCellCoords(t.row,t.col)),this.highlight.getCell().clear(),this.highlight.isEnabledFor(c.CELL_TYPE,n.highlight)&&this.highlight.getCell().add(this.selectedRange.current().highlight).commit().adjustCoordinates(n);var r=this.getLayerLevel();r<this.highlight.layerLevel&&((0,p.arrayEach)(this.highlight.getAreas(),(function(e){e.clear()})),(0,p.arrayEach)(this.highlight.getHeaders(),(function(e){e.clear()})),(0,p.arrayEach)(this.highlight.getActiveHeaders(),(function(e){e.clear()}))),this.highlight.useLayerLevel(r);var o=this.highlight.createOrGetArea(),i=this.highlight.createOrGetHeader(),a=this.highlight.createOrGetActiveHeader();if(o.clear(),i.clear(),a.clear(),this.highlight.isEnabledFor(c.AREA_TYPE,n.highlight)&&(this.isMultiple()||r>=1)&&(o.add(n.from).add(n.to).commit(),1===r)){var s=this.selectedRange.previous();this.highlight.useLayerLevel(r-1).createOrGetArea().add(s.from).commit().adjustCoordinates(s),this.highlight.useLayerLevel(r)}if(this.highlight.isEnabledFor(c.HEADER_TYPE,n.highlight)){var u=0===this.tableProps.countRowsTranslated(),l=0===this.tableProps.countColsTranslated(),f=n;if((u||l)&&(f=n.clone()),u&&(f.from.row=-1),l&&(f.from.col=-1),"single"===this.settings.selectionMode?(this.isSelectedByAnyHeader()&&f.from.normalize(),i.add(f.from).commit()):i.add(f.from).add(f.to).commit(),this.isEntireRowSelected())this.tableProps.countCols()===n.getWidth()&&a.add(this.tableProps.createCellCoords(n.from.row,-1)).add(this.tableProps.createCellCoords(n.to.row,-1)).commit();if(this.isEntireColumnSelected())this.tableProps.countRows()===n.getHeight()&&a.add(this.tableProps.createCellCoords(-1,n.from.col)).add(this.tableProps.createCellCoords(-1,n.to.col)).commit()}this.runLocalHooks("afterSetRangeEnd",e)}}},{key:"isMultiple",value:function(){var e=(0,d.createObjectPropListener)(!this.selectedRange.current().isSingle());return this.runLocalHooks("afterIsMultipleSelection",e),e.value}},{key:"transformStart",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];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=this.tableProps.createCellCoords(t?-1:0,e?-1:0);this.clear(),this.setRangeStartOnly(o),this.selectedByRowHeader.add(this.getLayerLevel()),this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(this.tableProps.createCellCoords(n-1,r-1)),this.finish()}}},{key:"selectCells",value:function(e){var t=this,n=(0,g.detectSelectionType)(e);if(n===g.SELECTION_TYPE_EMPTY)return!1;if(n===g.SELECTION_TYPE_UNRECOGNIZED)throw new Error((0,v.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,g.normalizeSelectionFactory)(n,{propToCol:function(e){return t.tableProps.propToCol(e)},keepDirection:!0}),s=this.tableProps.countRows(),u=this.tableProps.countCols(),l=!e.some((function(e){var t=r(e),n=(0,o.default)(t,4),i=n[0],a=n[1],l=n[2],c=n[3];return!((0,g.isValidCoord)(i,s)&&(0,g.isValidCoord)(a,u)&&(0,g.isValidCoord)(l,s)&&(0,g.isValidCoord)(c,u))}));return l&&(this.clear(),(0,p.arrayEach)(e,(function(e){var n=r(e),i=(0,o.default)(n,4),a=i[0],s=i[1],u=i[2],l=i[3];t.setRangeStartOnly(t.tableProps.createCellCoords(a,s),!1),t.setRangeEnd(t.tableProps.createCellCoords(u,l)),t.finish()}))),l}},{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,g.isValidCoord)(r,i)&&(0,g.isValidCoord)(o,i);return s&&(this.setRangeStartOnly(this.tableProps.createCellCoords(n,r)),this.setRangeEnd(this.tableProps.createCellCoords(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,g.isValidCoord)(e,r)&&(0,g.isValidCoord)(t,r);return i&&(this.setRangeStartOnly(this.tableProps.createCellCoords(e,n)),this.setRangeEnd(this.tableProps.createCellCoords(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,d.mixin)(E,y.default);var b=E;t.default=b},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0,n(0),n(42),n(49),n(10),n(3),n(2),n(4),n(8),n(9);var o=r(n(5)),i=r(n(6)),a=function(e){function t(e){(0,o.default)(this,t),this.ranges=[],this.createCellRange=e}return(0,i.default)(t,[{key:"isEmpty",value:function(){return 0===this.size()}},{key:"set",value:function(e){return this.clear(),this.ranges.push(this.createCellRange(e)),this}},{key:"add",value:function(e){return this.ranges.push(this.createCellRange(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:e,value:function(){return this.ranges[Symbol.iterator]()}}]),t}(Symbol.iterator);t.default=a},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6)),a=n(17),s=r(n(92)),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){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.options.createCellCoords(e,t),o=this.range.current().highlight,i=this.options.visualToRenderableCoords(o),a=i.row,s=i.col,u=o,l=0,c=0;if(this.runLocalHooks("beforeTransformStart",r),null!==a&&null!==s){var f=this.options.countRows(),d=this.options.countCols(),h=this.options.fixedRowsBottom(),p=this.options.minSpareRows(),y=this.options.minSpareCols(),m=this.options.autoWrapRow(),g=this.options.autoWrapCol();a+e>f-1?n&&p>0&&!(h&&a>=f-h-1)?(this.runLocalHooks("insertRowRequire",f),f=this.options.countRows()):g&&(r.row=1-f,r.col=s+r.col===d-1?1-d:1):g&&a+r.row<0&&s+r.col>=0&&(r.row=f-1,r.col=s+r.col===0?d-1:-1),s+r.col>d-1?n&&y>0?(this.runLocalHooks("insertColRequire",d),d=this.options.countCols()):m&&(r.row=a+r.row===f-1?1-f:1,r.col=1-d):m&&s+r.col<0&&a+r.row>=0&&(r.row=a+r.row===0?f-1:-1,r.col=d-1);var v=this.options.createCellCoords(a+r.row,s+r.col);l=0,c=0,v.row<0?(l=-1,v.row=0):v.row>0&&v.row>=f&&(l=1,v.row=f-1),v.col<0?(c=-1,v.col=0):v.col>0&&v.col>=d&&(c=1,v.col=d-1),u=this.options.renderableToVisualCoords(v)}return this.runLocalHooks("afterTransformStart",u,l,c),u}},{key:"transformEnd",value:function(e,t){var n=this.options.createCellCoords(e,t),r=this.range.current(),o=r.to,i=0,a=0;this.runLocalHooks("beforeTransformEnd",n);var s=this.options.visualToRenderableCoords(r.highlight),u=s.row,l=s.col;if(null!==u&&null!==l){var c=this.options.countRows(),f=this.options.countCols(),d=this.options.visualToRenderableCoords(r.to),h=d.row,p=d.col,y=this.options.createCellCoords(h+n.row,p+n.col);i=0,a=0,y.row<0?(i=-1,y.row=0):y.row>0&&y.row>=c&&(i=1,y.row=c-1),y.col<0?(a=-1,y.col=0):y.col>0&&y.col>=f&&(a=1,y.col=f-1),o=this.options.renderableToVisualCoords(y)}return this.runLocalHooks("afterTransformEnd",o,i,a),o}}]),e}();(0,a.mixin)(u,s.default);var l=u;t.default=l},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 u="";if(e.startsWith('"')){for(var l=0,c=!0;c;){var f=e.slice(0,1);'"'===f&&(l+=1),u+=f,(0===(e=e.slice(1)).length||e.match(/^[\t\r\n]/)&&l%2==0)&&(c=!1)}u=u.replace(/^"/,"").replace(/"$/,"").replace(/["]*/g,(function(e){return new Array(Math.floor(e.length/2)).fill('"').join("")}))}else{var d=e.match(o);u=d?d[0]:"",e=e.slice(u.length)}t[s][a]=u}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(12),n(573),n(63),n(114),n(13),n(75),n(137),n(35);var r=/^(\r\n|\n\r|\r|\n)/,o=/^[^\t\r\n]+/,i=/^\t/},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0,n(0),n(26);var o=r(n(5)),i=r(n(6)),a=r(n(828)),s=r(n(829)),u=r(n(830)),l=r(n(831)),c=r(n(92)),f=n(17),d=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];(0,o.default)(this,e),this.hot=t,this.globalMeta=new a.default(t),this.tableMeta=new s.default(this.globalMeta),this.columnMeta=new u.default(this.globalMeta),this.cellMeta=new l.default(this.columnMeta),i.forEach((function(e){return new e(n)})),this.globalMeta.updateMeta(r)}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){var r=n.visualRow,o=n.visualColumn,i=this.cellMeta.getMeta(e,t);return i.visualRow=r,i.visualCol=o,i.row=e,i.col=t,this.runLocalHooks("afterGetCellMeta",i),i}},{key:"getCellMetaKeyValue",value:function(e,t,n){if("string"!=typeof n)throw new Error("The passed cell meta object key is not a string");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=d,(0,f.mixin)(d,c.default)},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(6)),i=r(n(5)),a=n(17),s=n(196),u=r(n(597));var l=function(){function e(t){(0,i.default)(this,e),this.metaCtor=(0,o.default)((function e(){(0,i.default)(this,e)})),this.meta=this.metaCtor.prototype,(0,a.extend)(this.meta,(0,u.default)()),this.meta.instance=t}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=l},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6)),a=n(17),s=n(196),u=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=u},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6)),a=n(17),s=n(196),u=r(n(598)),l=["data","width"],c=function(){function e(t){var n=this;(0,o.default)(this,e),this.globalMeta=t,this.metas=new u.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(),l).prototype}}]),e}();t.default=c},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0,n(22),n(2),n(3),n(0),n(4),n(33);var o=r(n(44)),i=r(n(5)),a=r(n(6)),s=n(17),u=n(196),l=r(n(598)),c=function(){function e(t){var n=this;(0,i.default)(this,e),this.columnMeta=t,this.metas=new l.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,u.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,u.assert)((function(){return(0,u.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 l.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";var r=n(1);t.__esModule=!0,t.replaceData=function(e,t,n,r){var l=r.hotInstance,c=r.dataMap,f=r.dataSource,d=r.internalSource,h=r.source,p=r.firstRun,y=(0,i.toUpperCaseFirst)(d),m=l.getSettings();Array.isArray(m.dataSchema)?l.dataType="array":(0,a.isFunction)(m.dataSchema)?l.dataType="function":l.dataType="object";c&&c.destroy();e=l.runHooks("before".concat(y),e,p,h);var g=new s.default(l,e,m);if(t(g),"object"===(0,o.default)(e)&&null!==e)e.push&&e.splice||(e=[e]);else{if(null!==e)throw new Error("".concat(d," only accepts array of objects or array of arrays (").concat((0,o.default)(e)," given)"));var v,E=g.getSchema();e=[];var b,T=0;for(T=0,b=m.startRows;T<b;T++)if("object"!==l.dataType&&"function"!==l.dataType||!m.dataSchema)if("array"===l.dataType)v=(0,u.deepClone)(E[0]),e.push(v);else{v=[];for(var C=0,w=m.startCols;C<w;C++)v.push(null);e.push(v)}else v=(0,u.deepClone)(E),e.push(v)}Array.isArray(e[0])&&(l.dataType="array");m.data=e,g.dataSource=e,f.data=e,f.dataType=l.dataType,f.colToProp=g.colToProp.bind(g),f.propToCol=g.propToCol.bind(g),f.countCachedColumns=g.countCachedColumns.bind(g),n(g),l.runHooks("after".concat(y),e,p,h),p||(l.runHooks("afterChange",null,d),l.render())},n(54),n(18);var o=r(n(21)),i=n(91),a=n(68),s=r(n(595)),u=n(17)},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.DynamicCellMetaMod=void 0,n(3),n(33),n(0),n(2),n(4),n(55);var o=r(n(5)),i=r(n(6)),a=r(n(74)),s=n(17),u=n(68),l=function(){function e(t){var n=this;(0,o.default)(this,e),this.metaManager=t,this.metaSyncMemo=new Map,t.addLocalHook("afterGetCellMeta",(function(e){return n.extendCellMeta(e)})),a.default.getSingleton().add("beforeRender",(function(e){e&&n.metaSyncMemo.clear()}),this.metaManager.hot)}return(0,i.default)(e,[{key:"extendCellMeta",value:function(e){var t,n=e.row,r=e.col;if(null===(t=this.metaSyncMemo.get(n))||void 0===t||!t.has(r)){var o=e.visualRow,i=e.visualCol,a=this.metaManager.hot,l=a.colToProp(i);e.prop=l,a.runHooks("beforeGetCellMeta",o,i,e);var c,f=(0,s.hasOwnProperty)(e,"type")?e.type:null,d=(0,u.isFunction)(e.cells)?e.cells(n,r,l):null;if(f)if(d)d.type=null!==(c=d.type)&&void 0!==c?c:f;else d={type:f};d&&this.metaManager.updateCellMeta(n,r,d),a.runHooks("afterGetCellMeta",o,i,e),this.metaSyncMemo.has(n)||this.metaSyncMemo.set(n,new Set),this.metaSyncMemo.get(n).add(r)}}}]),e}();t.DynamicCellMetaMod=l},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.ExtendMetaPropertiesMod=void 0,n(3),n(0),n(55),n(2),n(4),n(33),n(26);var o=r(n(5)),i=r(n(6)),a=function(){function e(t){(0,o.default)(this,e),this.metaManager=t,this.usageTracker=new Set,this.propDescriptors=new Map([["fixedColumnsLeft",{target:"fixedColumnsStart",onChange:function(e){if(this.metaManager.hot.isRtl()&&"fixedColumnsLeft"===e)throw new Error("The `fixedColumnsLeft` is not supported for RTL. Please use option `fixedColumnsStart`.");if(this.usageTracker.has("fixedColumnsLeft")&&this.usageTracker.has("fixedColumnsStart"))throw new Error("The `fixedColumnsLeft` and `fixedColumnsStart` should not be used together. Please use only the option `fixedColumnsStart`.")}}],["layoutDirection",{onChange:function(e,t,n){if(!n)throw new Error("The `".concat(e,"` option can not be updated after the Handsontable is initialized."))}}]]),this.extendMetaProps()}return(0,i.default)(e,[{key:"extendMetaProps",value:function(){var e=this;this.propDescriptors.forEach((function(t,n){var r=t.target,o=t.onChange,i=void 0===o?function(){}:o,a="string"==typeof r,s=a?r:n,u="_".concat(s);e.metaManager.globalMeta.meta[u]=e.metaManager.globalMeta.meta[s],e.installPropWatcher(n,u,i),a&&e.installPropWatcher(r,u,i)}))}},{key:"installPropWatcher",value:function(e,t,n){var r=this;Object.defineProperty(this.metaManager.globalMeta.meta,e,{get:function(){return this[t]},set:function(o){var i=!r.usageTracker.has(e);r.usageTracker.add(e),n.call(r,e,o,i),this[t]=o},enumerable:!0,configurable:!0})}}]),e}();t.ExtendMetaPropertiesMod=a},function(e,t,n){"use strict";t.__esModule=!0,t.createShortcutManager=void 0;var r=n(836);t.createShortcutManager=r.createShortcutManager},function(e,t,n){"use strict";t.__esModule=!0,t.createShortcutManager=void 0;var r=n(231),o=n(837),i=n(838);t.createShortcutManager=function(e){var t=e.ownerWindow,n=e.beforeKeyDown,a=e.afterKeyDown,s=(0,r.createUniqueMap)({errorIdExists:function(e){return'The "'.concat(e,'" context name is already registered.')}}),u="grid",l=function(){return u},c=function(e){return s.getItem(e)},f=!1,d=(0,i.useRecorder)(t,n,a,(function(e,t){var n=c(l()),r=!1;if(!n.hasShortcut(t))return r;for(var o=n.getShortcuts(t),i=0;i<o.length;i++){var a=o[i],s=a.callback,u=a.runOnlyIf,d=a.preventDefault,h=a.stopPropagation,p=a.captureCtrl;if(!1!==u(e)&&(f=p,r=!1===s(e,t),f=!1,d&&e.preventDefault(),h&&e.stopPropagation(),r))break}return r}));return d.mount(),{addContext:function(e){var t=(0,o.createContext)(e);return s.addItem(e,t),t},getActiveContextName:l,getContext:c,setActiveContextName:function(e){u=e},isCtrlPressed:function(){return!f&&(d.isPressed("control")||d.isPressed("meta"))},destroy:function(){return d.unmount()}}}},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.createContext=void 0;var o=r(n(44)),i=r(n(34)),a=r(n(79));n(18),n(3),n(0),n(4),n(26),n(191),n(54),n(40),n(13);var s,u=n(231),l=n(599),c=n(32),f=n(68),d=n(17),h=n(80);t.createContext=function(e){var t=(0,u.createUniqueMap)({errorIdExists:function(t){return'The "'.concat(t,'" shortcut is already registered in the "').concat(e,'" context.')}}),n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.keys,r=e.callback,o=e.group,i=e.runOnlyIf,u=void 0===i?function(){return!0}:i,d=e.captureCtrl,p=void 0!==d&&d,y=e.preventDefault,m=void 0===y||y,g=e.stopPropagation,v=void 0!==g&&g,E=e.relativeToGroup,b=e.position;if((0,c.isUndefined)(o))throw new Error("You need to define the shortcut's group.");if(!1===(0,f.isFunction)(r))throw new Error("The shortcut's callback needs to be a function.");if(!1===Array.isArray(n))throw new Error((0,h.toSingleLine)(s||(s=(0,a.default)(["Pass the shortcut's keys as an array of arrays, \n using the KeyboardEvent.key properties: \n https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values."],["Pass the shortcut\\'s keys as an array of arrays,\\x20\n using the KeyboardEvent.key properties:\\x20\n https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values."]))));var T={callback:r,group:o,runOnlyIf:u,captureCtrl:p,preventDefault:m,stopPropagation:v};if((0,c.isDefined)(E)){var C=[E,b];T.relativeToGroup=C[0],T.position=C[1]}n.forEach((function(e){var n=(0,l.normalizeKeys)(e);if(t.hasItem(n)){var r=t.getItem(n),o=r.findIndex((function(e){return e.group===E}));-1!==o?"before"===b?o-=1:o+=1:o=r.length,r.splice(o,0,T)}else t.addItem(n,[T])}))},r=function(e){var n=(0,l.normalizeKeys)(e);t.removeItem(n)};return{addShortcut:n,addShortcuts:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach((function(e){(0,d.objectEach)(t,(function(n,r){!1===Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=t[r])})),n(e)}))},getShortcuts:function(e){var n=(0,l.normalizeKeys)(e),r=t.getItem(n);return(0,c.isDefined)(r)?r.slice():[]},hasShortcut:function(e){var n=(0,l.normalizeKeys)(e);return t.hasItem(n)},removeShortcutsByKeys:r,removeShortcutsByGroup:function(e){t.getItems().forEach((function(t){var n=(0,i.default)(t,2),a=n[0],s=n[1],u=s.filter((function(t){return t.group!==e}));0===u.length?r((0,l.getKeysList)(a)):(s.length=0,s.push.apply(s,(0,o.default)(u)))}))}}}},function(e,t,n){"use strict";t.__esModule=!0,t.useRecorder=function(e,t,n,r){var l=function(e){return s.includes(e)},c=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[];return e.altKey&&n.push("alt"),t&&(e.ctrlKey||e.metaKey)?n.push("control/meta"):(e.ctrlKey&&n.push("control"),e.metaKey&&n.push("meta")),e.shiftKey&&n.push("shift"),n},f=function(e){if(!1!==t(e)&&!(0,i.isImmediatePropagationStopped)(e)){var s=(0,o.normalizeEventKey)(e.key),f=[];l(s)?u.press(s):f=c(e);var d=[s].concat(f);!r(e,d)&&((0,a.isMacOS)()&&f.includes("meta")||!(0,a.isMacOS)()&&f.includes("control"))&&r(e,[s].concat(c(e,!0))),n(e)}},d=function(e){var t=(0,o.normalizeEventKey)(e.key);!1!==l(t)&&u.release(t)},h=function(){u.releaseAll()};return{mount:function(){for(var t=e;t;)t.addEventListener("keydown",f),t.addEventListener("keyup",d),t.addEventListener("blur",h),t=t.frameElement},unmount:function(){for(var t=e;t;)t.removeEventListener("keydown",f),t.removeEventListener("keyup",d),t.removeEventListener("blur",h),t=t.frameElement},isPressed:function(e){return u.isPressed(e)}}},n(42),n(18),n(49);var r=n(839),o=n(599),i=n(81),a=n(101),s=["meta","alt","shift","control"],u=(0,r.createKeysObserver)()},function(e,t,n){"use strict";t.__esModule=!0,t.createKeysObserver=function(){var e=new Set;return{press:function(t){e.add(t)},release:function(t){e.delete(t)},releaseAll:function(){e.clear()},isPressed:function(t){return e.has(t)}}},n(3),n(0),n(55),n(2),n(4)},function(e,t,n){"use strict";t.__esModule=!0,t.TextCellType=t.CELL_TYPE=void 0;var r=n(145),o=n(146);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(0),n(7);var r=n(1);t.__esModule=!0,t.TextEditor=t.EDITOR_TYPE=void 0,n(35);var o=r(n(34)),i=r(n(5)),a=r(n(6)),s=r(n(46)),u=r(n(31)),l=r(n(15)),c=r(n(16)),f=r(n(14)),d=n(197),h=r(n(59)),p=n(101),y=n(23),m=n(47),g=n(116),v=n(843),E=n(32),b=n(192),T=n(601),C=n(845);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,f.default)(e);if(t){var o=(0,f.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}t.EDITOR_TYPE="text";var R=function(e){(0,l.default)(n,e);var t=w(n);function n(e){var r;return(0,i.default)(this,n),(r=t.call(this,e)).eventManager=new h.default((0,s.default)(r)),r.autoResize=(0,v.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,a.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.hot.getShortcutManager().setActiveContextName("editor"),this.addHook("afterDocumentKeyDown",(function(t){return e.onAfterDocumentKeyDown(t)})),this.registerShortcuts()}},{key:"close",value:function(){this.autoResize.unObserve(),this.hot.rootDocument.activeElement===this.TEXTAREA&&this.hot.listen(),this.hideEditableElement(),this.unregisterShortcuts(),this.removeHooksByKey("afterDocumentKeyDown")}},{key:"prepare",value:function(e,t,r,o,i,a){var s=this.state;if((0,u.default)((0,f.default)(n.prototype),"prepare",this).call(this,e,t,r,o,i,a),!a.readOnly){this.refreshDimensions(!0);var l=a.allowInvalid,c=a.fragmentSelection;l&&(this.TEXTAREA.value=""),s!==d.EDITOR_STATE.FINISHED&&this.hideEditableElement(),!c&&!(0,p.isMobileBrowser)()&&this.focus()}}},{key:"beginEditing",value:function(e,t){this.state===d.EDITOR_STATE.VIRGIN&&(this.TEXTAREA.value="",(0,u.default)((0,f.default)(n.prototype),"beginEditing",this).call(this,e,t))}},{key:"focus",value:function(){this.TEXTAREA.select(),(0,y.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,y.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,y.addClass)(this.TEXTAREA_PARENT,"handsontableInputHolder"),(0,y.hasClass)(this.TEXTAREA_PARENT,this.layerClass)&&(0,y.removeClass)(this.TEXTAREA_PARENT,this.layerClass),(0,y.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,p.isIE)()||(0,p.isEdge)())&&(this.textareaStyle.textIndent="-99999px"),this.textareaStyle.overflowY="visible",this.textareaParentStyle.opacity="0",this.textareaParentStyle.height="1px",(0,y.removeClass)(this.TEXTAREA_PARENT,this.layerClass),(0,y.addClass)(this.TEXTAREA_PARENT,"ht_editor_hidden")}},{key:"showEditableElement",value:function(){this.textareaParentStyle.height="",this.textareaParentStyle.overflow="",this.textareaParentStyle.position="",this.textareaParentStyle[this.hot.isRtl()?"left":"right"]="auto",this.textareaParentStyle.opacity="1",this.textareaStyle.textIndent="",this.textareaStyle.overflowY="hidden";var e=this.TEXTAREA_PARENT.childNodes,t=!1;(0,m.rangeEach)(e.length-1,(function(n){var r=e[n];if((0,y.hasClass)(r,"handsontableEditor"))return t=!0,!1})),(0,y.hasClass)(this.TEXTAREA_PARENT,"ht_editor_hidden")&&(0,y.removeClass)(this.TEXTAREA_PARENT,"ht_editor_hidden"),t?(this.layerClass="ht_editor_visible",(0,y.addClass)(this.TEXTAREA_PARENT,this.layerClass)):(this.layerClass=this.getEditedCellsLayerClass(),(0,y.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=this.getEditedCellRect(),n=t.top,r=t.start,o=t.width,i=t.maxWidth,a=t.height,s=t.maxHeight;this.textareaParentStyle.top="".concat(n,"px"),this.textareaParentStyle[this.hot.isRtl()?"right":"left"]="".concat(r,"px"),this.showEditableElement();var u=(0,y.getComputedStyle)(this.TD,this.hot.rootWindow);this.TEXTAREA.style.fontSize=u.fontSize,this.TEXTAREA.style.fontFamily=u.fontFamily,this.TEXTAREA.style.backgroundColor=this.TD.style.backgroundColor;var l=(0,y.getComputedStyle)(this.TEXTAREA),c=parseInt(l.paddingLeft,10)+parseInt(l.paddingRight,10),f=parseInt(l.paddingTop,10)+parseInt(l.paddingBottom,10),h=o-c,p=a-f,m=i-c,g=s-f;this.autoResize.init(this.TEXTAREA,{minWidth:Math.min(h,m),minHeight:Math.min(p,g),maxWidth:m,maxHeight:g},!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,p.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:"registerShortcuts",value:function(){var e=this,t=this.hot.getShortcutManager().getContext("editor"),n={runOnlyIf:function(){return(0,E.isDefined)(e.hot.getSelected())},group:"textEditor"},r=function(){e.hot.rootDocument.execCommand("insertText",!1,"\n")};t.addShortcuts([{keys:[["Tab"]],callback:function(t){var n=e.hot.getSettings(),r="function"==typeof n.tabMoves?n.tabMoves(t):n.tabMoves;e.hot.selection.transformStart(r.row,r.col,!0)}},{keys:[["Shift","Tab"]],callback:function(t){var n=e.hot.getSettings(),r="function"==typeof n.tabMoves?n.tabMoves(t):n.tabMoves;e.hot.selection.transformStart(-r.row,-r.col)}},{keys:[["Control","Enter"]],callback:function(){return r(),!1},runOnlyIf:function(t){return!e.hot.selection.isMultiple()&&!t.altKey},relativeToGroup:b.SHORTCUTS_GROUP_EDITOR,position:"before"},{keys:[["Meta","Enter"]],callback:function(){return r(),!1},runOnlyIf:function(){return!e.hot.selection.isMultiple()},relativeToGroup:b.SHORTCUTS_GROUP_EDITOR,position:"before"},{keys:[["Alt","Enter"]],callback:function(){return r(),!1},relativeToGroup:b.SHORTCUTS_GROUP_EDITOR,position:"before"},{keys:[["PageUp"]],callback:function(){e.hot.selection.transformStart(-e.hot.countVisibleRows(),0)}},{keys:[["PageDown"]],callback:function(){e.hot.selection.transformStart(e.hot.countVisibleRows(),0)}},{keys:[["Home"]],callback:function(t,n){var r=(0,o.default)(n,1)[0];(0,C.updateCaretPosition)(r,e.TEXTAREA)}},{keys:[["End"]],callback:function(t,n){var r=(0,o.default)(n,1)[0];(0,C.updateCaretPosition)(r,e.TEXTAREA)}},{keys:[["Control/Meta","Z"]],preventDefault:!1,callback:function(){e.hot._registerTimeout((function(){e.autoResize.resize()}),10)}},{keys:[["Control/Meta","Shift","Z"]],preventDefault:!1,callback:function(){e.hot._registerTimeout((function(){e.autoResize.resize()}),10)}}],n)}},{key:"unregisterShortcuts",value:function(){var e=this.hot.getShortcutManager().getContext("editor");e.removeShortcutsByGroup(b.SHORTCUTS_GROUP_NAVIGATION),e.removeShortcutsByGroup("textEditor"),e.removeShortcutsByGroup(T.SHORTCUTS_GROUP_EDITOR)}},{key:"onAfterDocumentKeyDown",value:function(e){-1===[g.KEY_CODES.ARROW_UP,g.KEY_CODES.ARROW_RIGHT,g.KEY_CODES.ARROW_DOWN,g.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=R},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(20),o=n(17),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){"use strict";t.__esModule=!0,t.autoResize=void 0;var r=n(844);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"},u=function(){window.setTimeout(s,0)},l=function(n,a,l){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 u=parseInt(n.maxWidth);isNaN(u)||(t.maxWidth=u)}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"),l&&(i(e,"change",s),i(e,"cut",u),i(e,"paste",u),i(e,"drop",u),i(e,"keydown",u),i(e,"focus",s),i(e,"compositionstart",u),i(e,"compositionupdate",u),i(e,"compositionend",u)),s()};function c(e){return e.currentStyle||document.defaultView.getComputedStyle(e)}return{init:function(e,t,n){l(e,t,n)},unObserve:function(){a(e,"change",s),a(e,"cut",u),a(e,"paste",u),a(e,"drop",u),a(e,"keydown",u),a(e,"focus",s),a(e,"compositionstart",u),a(e,"compositionupdate",u),a(e,"compositionend",u)},resize:s}},n(12),n(76)},function(e,t,n){"use strict";t.__esModule=!0,t.updateCaretPosition=function(e,t){for(var n=(0,r.getCaretPosition)(t),o=t.value.split("\n"),i=n,a=0,s=0;s<o.length;s++){var u=o[s];0!==s&&(a+=o[s-1].length+1);var l=a+u.length;if("home"===e?i=a:"end"===e&&(i=l),n<=l)break}(0,r.setCaretPosition)(t,i)},n(12),n(61);var r=n(23)},function(e,t,n){"use strict";t.__esModule=!0,t.RENDERER_TYPE=void 0,t.textRenderer=a,n(109);var r=n(236),o=n(23),i=n(32);function a(e,t,n,a,s,u,l){r.baseRenderer.apply(this,[e,t,n,a,s,u,l]);var c=u;if(!c&&l.placeholder&&(c=l.placeholder),c=(0,i.stringify)(c),e.getSettings().trimWhitespace&&(c=c.trim()),l.rendererTemplate){(0,o.empty)(t);var f=e.rootDocument.createElement("TEMPLATE");f.setAttribute("bind","{{}}"),f.innerHTML=l.rendererTemplate,HTMLTemplateElement.decorate(f),f.model=e.getSourceDataAtRow(n),t.appendChild(f)}else(0,o.fastInnerText)(t,c)}t.RENDERER_TYPE="text",a.RENDERER_TYPE="text"},function(e,t,n){"use strict";t.__esModule=!0,t.RENDERER_TYPE=void 0,t.baseRenderer=o;var r=n(23);function o(e,t,n,o,i,a,s){var u=[],l=[];s.className&&(0,r.addClass)(t,s.className),s.readOnly&&u.push(s.readOnlyCellClassName),!1===s.valid&&s.invalidCellClassName?u.push(s.invalidCellClassName):l.push(s.invalidCellClassName),!1===s.wordWrap&&s.noWordWrapClassName&&u.push(s.noWordWrapClassName),!a&&s.placeholder&&u.push(s.placeholderCellClassName),(0,r.removeClass)(t,l),(0,r.addClass)(t,u)}t.RENDERER_TYPE="base",o.RENDERER_TYPE="base"},function(e,t,n){"use strict";t.__esModule=!0,t.registerAllModules=function(){(0,r.registerAllEditors)(),(0,o.registerAllRenderers)(),(0,i.registerAllValidators)(),(0,a.registerAllCellTypes)(),(0,s.registerAllPlugins)()};var r=n(849);t.registerAllEditors=r.registerAllEditors;var o=n(862);t.registerAllRenderers=o.registerAllRenderers;var i=n(871);t.registerAllValidators=i.registerAllValidators;var a=n(877);t.registerAllCellTypes=a.registerAllCellTypes;var s=n(894);t.registerAllPlugins=s.registerAllPlugins},function(e,t,n){"use strict";t.__esModule=!0,t.hasEditor=t.getRegisteredEditors=t.getRegisteredEditorNames=t.getEditorInstance=t.getEditor=t._getEditorInstance=t.RegisteredEditor=void 0,t.registerAllEditors=function(){(0,p.registerEditor)(o.BaseEditor),(0,p.registerEditor)(r.AutocompleteEditor),(0,p.registerEditor)(i.CheckboxEditor),(0,p.registerEditor)(a.DateEditor),(0,p.registerEditor)(s.DropdownEditor),(0,p.registerEditor)(u.HandsontableEditor),(0,p.registerEditor)(l.NumericEditor),(0,p.registerEditor)(c.PasswordEditor),(0,p.registerEditor)(f.SelectEditor),(0,p.registerEditor)(d.TextEditor),(0,p.registerEditor)(h.TimeEditor)};var r=n(307);t.AutocompleteEditor=r.AutocompleteEditor,t.AUTOCOMPLETE_EDITOR=r.EDITOR_TYPE;var o=n(197);t.BaseEditor=o.BaseEditor,t.BASE_EDITOR=o.EDITOR_TYPE;var i=n(602);t.CheckboxEditor=i.CheckboxEditor,t.CHECKBOX_EDITOR=i.EDITOR_TYPE;var a=n(309);t.DateEditor=a.DateEditor,t.DATE_EDITOR=a.EDITOR_TYPE;var s=n(603);t.DropdownEditor=s.DropdownEditor,t.DROPDOWN_EDITOR=s.EDITOR_TYPE;var u=n(308);t.HandsontableEditor=u.HandsontableEditor,t.HANDSONTABLE_EDITOR=u.EDITOR_TYPE;var l=n(604);t.NumericEditor=l.NumericEditor,t.NUMERIC_EDITOR=l.EDITOR_TYPE;var c=n(605);t.PasswordEditor=c.PasswordEditor,t.PASSWORD_EDITOR=c.EDITOR_TYPE;var f=n(859);t.SelectEditor=f.SelectEditor,t.SELECT_EDITOR=f.EDITOR_TYPE;var d=n(145);t.TextEditor=d.TextEditor,t.TEXT_EDITOR=d.EDITOR_TYPE;var h=n(606);t.TimeEditor=h.TimeEditor,t.TIME_EDITOR=h.EDITOR_TYPE;var p=n(157);t.registerEditor=p.registerEditor,t.RegisteredEditor=p.RegisteredEditor,t._getEditorInstance=p._getEditorInstance,t.getEditor=p.getEditor,t.getEditorInstance=p.getEditorInstance,t.getRegisteredEditorNames=p.getRegisteredEditorNames,t.getRegisteredEditors=p.getRegisteredEditors,t.hasEditor=p.hasEditor},function(e,t,n){"use strict";n(7);var r=n(1);t.__esModule=!0,t.EDITOR_TYPE=t.AutocompleteEditor=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(46)),s=r(n(31)),u=r(n(15)),l=r(n(16)),c=r(n(14)),f=r(n(43));n(3),n(0),n(2),n(11),n(4),n(35),n(73),n(140),n(12),n(63),n(40);var d=n(308),h=n(20),p=n(23),y=n(32),m=n(91),g=n(116),v=n(146);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,l.default)(this,n)}}var b=new WeakMap;t.EDITOR_TYPE="autocomplete";var T=function(e){(0,u.default)(n,e);var t=E(n);function n(e){var r;return(0,o.default)(this,n),r=t.call(this,e),(0,f.default)((0,a.default)(r),"sortByRelevance",(function(e,t,n){var r,o,i,a,s=[],u=[],l=e.length,c=t.length;if(0===l){for(i=0;i<c;i++)u.push(i);return u}for(i=0;i<c;i++){if(o=(0,m.stripTags)((0,y.stringify)(t[i])),n)a=o.indexOf(e);else{var f=this.cellProperties.locale;a=o.toLocaleLowerCase(f).indexOf(e.toLocaleLowerCase(f))}-1!==a&&(r=o.length-a-l,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++)u.push(s[i].baseIndex);return u})),r.query=null,r.strippedChoices=[],r.rawChoices=[],b.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,y.isDefined)(t)?t:this.TEXTAREA.value}},{key:"createElements",value:function(){(0,s.default)((0,c.default)(n.prototype),"createElements",this).call(this),(0,p.addClass)(this.htContainer,"autocompleteEditor"),(0,p.addClass)(this.htContainer,-1===this.hot.rootWindow.navigator.platform.indexOf("Mac")?"":"htMacScroll")}},{key:"open",value:function(){var e=this,t=b.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,p.getScrollbarWidth)();0===i&&t.isMacOS&&(i+=15),this.addHook("beforeKeyDown",(function(t){return e.onBeforeKeyDown(t)})),r.updateSettings({colWidths:o?[(0,p.outerWidth)(this.TEXTAREA)-2]:void 0,width:o?(0,p.outerWidth)(this.TEXTAREA)+i:void 0,renderer:function(t,n,r,o,i,a,s){(0,v.textRenderer)(t,n,r,o,i,a,s);var u,l,c=e.cellProperties,f=c.filteringCaseSensitive,d=c.allowHtml,h=c.locale,p=e.query,m=(0,y.stringify)(a);m&&!d&&-1!==(u=!0===f?m.indexOf(p):m.toLocaleLowerCase(h).indexOf(p.toLocaleLowerCase(h)))&&(l=m.substr(u,p.length),m=m.replace(l,"<strong>".concat(l,"</strong>"))),n.innerHTML=m},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,p.getCaretPosition)(this.TEXTAREA),n=(0,p.getSelectionEndPosition)(this.TEXTAREA),r=this.cellProperties.sortByRelevance,o=this.cellProperties.filter,i=null,a=null,s=e;r&&(i=this.sortByRelevance(this.stripValueIfNeeded(this.getValue()),s,this.cellProperties.filteringCaseSensitive));var u=Array.isArray(i)?i.length:0;if(!1===o)u&&(a=i[0]);else{for(var l=[],c=0,f=s.length;c<f&&!(r&&u<=c);c++)u?l.push(s[i[c]]):l.push(s[c]);a=0,s=l}this.strippedChoices=s,this.htEditor.loadData((0,h.pivot)([s])),this.updateDropdownHeight(),this.flipDropdownIfNeeded(),!0===this.cellProperties.strict&&this.highlightBestMatchingChoice(a),this.hot.listen(),(0,p.setCaretPosition)(this.TEXTAREA,t,t===n?void 0:n)}},{key:"flipDropdownIfNeeded",value:function(){var e=(0,p.offset)(this.TEXTAREA),t=(0,p.outerHeight)(this.TEXTAREA),n=this.getDropdownHeight(),r=(0,p.getTrimmingContainer)(this.hot.view._wt.wtTable.TABLE),o=r.scrollTop,i=(0,p.outerHeight)(this.hot.view._wt.wtTable.THEAD),a={row:0,col:0};r!==this.hot.rootWindow&&(a=(0,p.offset)(r));var s=e.top-a.top-i+o,u=r.scrollHeight-s-i-t,l=n>u&&s>u;return l?this.flipDropdown(n):this.unflipDropdown(),this.limitDropdownIfNeeded(l?s:u,n),l}},{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.getSetting("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;e.position="absolute",e.top="",this.htEditor.flipped=void 0}},{key:"updateDropdownHeight",value:function(){var e=this.htEditor.getColWidth(0)+(0,p.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,y.stringify)(e)}));return(0,h.arrayMap)(n,(function(e){return t?e:(0,m.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,n=b.get(this);if(n.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 r=10;if(e.keyCode===g.KEY_CODES.C&&(e.ctrlKey||e.metaKey))return;this.isOpened()||(r+=10),this.htEditor&&this.hot._registerTimeout((function(){t.queryChoices(t.TEXTAREA.value),n.skipOne=!0}),r)}}}],[{key:"EDITOR_TYPE",get:function(){return"autocomplete"}}]),n}(d.HandsontableEditor);t.AutocompleteEditor=T},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.HandsontableEditor=t.EDITOR_TYPE=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(31)),s=r(n(15)),u=r(n(16)),l=r(n(14)),c=n(145),f=n(23),d=n(81),h=n(17),p=n(192);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,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,u.default)(this,n)}}t.EDITOR_TYPE="handsontable";var m=function(e){(0,s.default)(n,e);var t=y(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,l.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,f.setCaretPosition)(this.TEXTAREA,0,this.TEXTAREA.value.length),this.refreshDimensions()}},{key:"close",value:function(){this.htEditor&&(this.htEditor.rootElement.style.display="none"),this.removeHooksByKey("beforeKeyDown"),(0,a.default)((0,l.default)(n.prototype),"close",this).call(this)}},{key:"prepare",value:function(e,t,r,o,i,s){(0,a.default)((0,l.default)(n.prototype),"prepare",this).call(this,e,t,r,o,i,s);var u=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&&u.setValue(n),u.instance.destroyEditor()},preventWheel:!0,layoutDirection:this.hot.isRtl()?"rtl":"ltr"};this.cellProperties.handsontable&&(0,h.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,l.default)(n.prototype),"beginEditing",this).call(this,e,t)}},{key:"createElements",value:function(){(0,a.default)((0,l.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,l.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:"registerShortcuts",value:function(){var e=this,t=this.hot.getShortcutManager().getContext("editor");(0,a.default)((0,l.default)(n.prototype),"registerShortcuts",this).call(this);var r={group:"handsontableEditor",relativeToGroup:p.SHORTCUTS_GROUP_NAVIGATION,position:"before"},o=function(t,n){var r=e.htEditor.getInstance();if(void 0!==t&&(t<0||r.flipped&&t>r.countRows()-1?r.deselectCell():r.selectCell(t,0),r.getData().length))return n.preventDefault(),(0,d.stopImmediatePropagation)(n),e.hot.listen(),e.TEXTAREA.focus(),!1};t.addShortcuts([{keys:[["ArrowUp"]],callback:function(t){var n,r,i=e.htEditor.getInstance();return!i.getSelectedLast()&&i.flipped?n=i.countRows()-1:i.getSelectedLast()&&(i.flipped?(r=i.getSelectedLast()[0],n=Math.max(0,r-1)):n=(r=i.getSelectedLast()[0])-1),o(n,t)},preventDefault:!1},{keys:[["ArrowDown"]],callback:function(t){var n,r,i=e.htEditor.getInstance();if(i.getSelectedLast()||i.flipped){if(i.getSelectedLast())if(i.flipped)n=i.getSelectedLast()[0]+1;else if(!i.flipped){var a=i.countRows()-1;r=i.getSelectedLast()[0],n=Math.min(a,r+1)}}else n=0;return o(n,t)},preventDefault:!1}],r)}},{key:"unregisterShortcuts",value:function(){(0,a.default)((0,l.default)(n.prototype),"unregisterShortcuts",this).call(this),this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup("handsontableEditor")}}],[{key:"EDITOR_TYPE",get:function(){return"handsontable"}}]),n}(c.TextEditor);t.HandsontableEditor=m},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.EDITOR_TYPE=t.CheckboxEditor=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(15)),s=r(n(16)),u=r(n(14)),l=n(197),c=n(23);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,s.default)(this,n)}}t.EDITOR_TYPE="checkbox";var d=function(e){(0,a.default)(n,e);var t=f(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}(l.BaseEditor);t.CheckboxEditor=d},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.EDITOR_TYPE=t.DateEditor=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(31)),s=r(n(15)),u=r(n(16)),l=r(n(14)),c=r(n(102)),f=r(n(854)),d=n(145),h=r(n(59)),p=n(23),y=n(17),m=n(116);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,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,u.default)(this,n)}}n(855);t.EDITOR_TYPE="date";var v=function(e){(0,s.default)(n,e);var t=g(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.$datePicker=null,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 f.default)throw new Error("You need to include Pikaday to your project.");(0,a.default)((0,l.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,l.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,this.datePicker.setAttribute("dir",this.hot.isRtl()?"rtl":"ltr"),(0,p.addClass)(this.datePicker,"htDatepickerHolder"),this.hot.rootDocument.body.appendChild(this.datePicker),new h.default(this).addEventListener(this.datePicker,"mousedown",(function(e){return e.stopPropagation()}))}},{key:"destroyElements",value:function(){var e=this.datePicker.parentNode;this.$datePicker&&this.$datePicker.destroy(),e&&e.removeChild(this.datePicker)}},{key:"prepare",value:function(e,t,r,o,i,s){(0,a.default)((0,l.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,l.default)(n.prototype),"open",this).call(this),this.showDatepicker(e)}},{key:"close",value:function(){var e,t=this;this._opened=!1,null!==(e=this.$datePicker)&&void 0!==e&&e.destroy&&this.$datePicker.destroy(),this.instance._registerTimeout((function(){t.instance._refreshBorders()})),(0,a.default)((0,l.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)}(0,a.default)((0,l.default)(n.prototype),"finishEditing",this).call(this,e,t)}},{key:"showDatepicker",value:function(e){var t,n=this.TD.getBoundingClientRect(),r=this.cellProperties.dateFormat||this.defaultDateFormat,o=this.instance.view.isMouseDown(),i=!!e&&(0,m.isFunctionKey)(e.keyCode);this.datePicker.style.display="block",this.$datePicker=new f.default(this.getDatePickerConfig()),this.$datePicker._onInputFocus=function(){},this.datePickerStyle.top="".concat(this.hot.rootWindow.pageYOffset+n.top+(0,p.outerHeight)(this.TD),"px");var a=this.hot.rootWindow.pageXOffset;a=this.hot.isRtl()?n.right-(0,p.outerWidth)(this.datePicker):n.left,this.datePickerStyle.left="".concat(a,"px"),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),i||o||this.setValue("")):this.cellProperties.defaultDate?(t=this.cellProperties.defaultDate,(0,c.default)(t,r,!0).isValid()&&this.$datePicker.setMoment((0,c.default)(t,r),!0),i||o||this.setValue("")):this.$datePicker.gotoToday()}},{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,y.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.isRTL=!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}(d.TextEditor);t.DateEditor=v},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(102)}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+" ")},u=function(e,t){s(e,t)||(e.className=""===e.className?t:e.className+" "+t)},l=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))},f=function(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())},d=function(e){var t=e.getDay();return 0===t||6===t},h=function(e){return e%4==0&&e%100!=0||e%400==0},p=function(e,t){return[31,h(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},y=function(e){f(e)&&e.setHours(0,0,0,0)},m=function(e,t){return e.getTime()===t.getTime()},g=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?f(t[r])?n&&(e[r]=new Date(t[r].getTime())):c(t[r])?n&&(e[r]=t[r].slice(0)):e[r]=g({},t[r],n):!n&&o||(e[r]=t[r]);return e},v=function(e,t,n){var o;r.createEvent?((o=r.createEvent("HTMLEvents")).initEvent(t,!0,!1),o=g(o,n),e.dispatchEvent(o)):r.createEventObject&&(o=r.createEventObject(),o=g(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},b={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},T=function(e,t,n){for(t+=e.firstDay;t>=7;)t-=7;return n?e.i18n.weekdaysShort[t]:e.i18n.weekdays[t]},C=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>"},w=function(e,t,n,r){return'<tr class="pika-row'+(n?" pick-whole-week":"")+(r?" is-selected":"")+'">'+(t?e.reverse():e).join("")+"</tr>"},R=function(e,t,n,r,o,i){var a,s,u,l,f,d=e._o,h=n===d.minYear,p=n===d.maxYear,y='<div id="'+i+'" class="pika-title" role="heading" aria-live="assertive">',m=!0,g=!0;for(u=[],a=0;a<12;a++)u.push('<option value="'+(n===o?a-t:12+a-t)+'"'+(a===r?' selected="selected"':"")+(h&&a<d.minMonth||p&&a>d.maxMonth?'disabled="disabled"':"")+">"+d.i18n.months[a]+"</option>");for(l='<div class="pika-label">'+d.i18n.months[r]+'<select class="pika-select pika-select-month" tabindex="-1">'+u.join("")+"</select></div>",c(d.yearRange)?(a=d.yearRange[0],s=d.yearRange[1]+1):(a=n-d.yearRange,s=1+n+d.yearRange),u=[];a<s&&a<=d.maxYear;a++)a>=d.minYear&&u.push('<option value="'+a+'"'+(a===n?' selected="selected"':"")+">"+a+"</option>");return f='<div class="pika-label">'+n+d.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+u.join("")+"</select></div>",d.showMonthAfterYear?y+=f+l:y+=l+f,h&&(0===r||d.minMonth>=r)&&(m=!1),p&&(11===r||d.maxMonth<=r)&&(g=!1),0===t&&(y+='<button class="pika-prev'+(m?"":" is-disabled")+'" type="button">'+d.i18n.previousMonth+"</button>"),t===e._o.numberOfMonths-1&&(y+='<button class="pika-next'+(g?"":" is-disabled")+'" type="button">'+d.i18n.nextMonth+"</button>"),y+"</div>"},O=function(a){var u=this,l=u.config(a);u._onMouseDown=function(e){if(u._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")?u.prevMonth():s(t,"pika-next")&&u.nextMonth():(u.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day"))),l.bound&&o((function(){u.hide(),l.blurFieldOnSelect&&l.field&&l.field.blur()}),100))),s(t,"pika-select"))u._c=!0;else{if(!e.preventDefault)return e.returnValue=!1,!1;e.preventDefault()}}},u._onChange=function(e){var t=(e=e||window.event).target||e.srcElement;t&&(s(t,"pika-select-month")?u.gotoMonth(t.value):s(t,"pika-select-year")&&u.gotoYear(t.value))},u._onKeyChange=function(e){if(e=e||window.event,u.isVisible())switch(e.keyCode){case 13:case 27:l.field&&l.field.blur();break;case 37:e.preventDefault(),u.adjustDate("subtract",1);break;case 38:u.adjustDate("subtract",7);break;case 39:u.adjustDate("add",1);break;case 40:u.adjustDate("add",7)}},u._onInputChange=function(n){var r;n.firedBy!==u&&(r=l.parse?l.parse(l.field.value,l.format):t?(r=e(l.field.value,l.format,l.formatStrict))&&r.isValid()?r.toDate():null:new Date(Date.parse(l.field.value)),f(r)&&u.setDate(r),u._v||u.show())},u._onInputFocus=function(){u.show()},u._onInputClick=function(){u.show()},u._onInputBlur=function(){var e=r.activeElement;do{if(s(e,"pika-single"))return}while(e=e.parentNode);u._c||(u._b=o((function(){u.hide()}),50)),u._c=!1},u._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",u._onChange)));do{if(s(r,"pika-single")||r===l.trigger)return}while(r=r.parentNode);u._v&&t!==l.trigger&&r!==l.trigger&&u.hide()}},u.el=r.createElement("div"),u.el.className="pika-single"+(l.isRTL?" is-rtl":"")+(l.theme?" "+l.theme:""),i(u.el,"mousedown",u._onMouseDown,!0),i(u.el,"touchend",u._onMouseDown,!0),i(u.el,"change",u._onChange),l.keyboardInput&&i(r,"keydown",u._onKeyChange),l.field&&(l.container?l.container.appendChild(u.el):l.bound?r.body.appendChild(u.el):l.field.parentNode.insertBefore(u.el,l.field.nextSibling),i(l.field,"change",u._onInputChange),l.defaultDate||(t&&l.field.value?l.defaultDate=e(l.field.value,l.format).toDate():l.defaultDate=new Date(Date.parse(l.field.value)),l.setDefaultDate=!0));var c=l.defaultDate;f(c)?l.setDefaultDate?u.setDate(c,!0):u.gotoDate(c):u.gotoDate(new Date),l.bound?(this.hide(),u.el.className+=" is-bound",i(l.trigger,"click",u._onInputClick),i(l.trigger,"focus",u._onInputFocus),i(l.trigger,"blur",u._onInputBlur)):this.show()};return O.prototype={config:function(e){this._o||(this._o=g({},b,!0));var t=g(this._o,e,!0);t.isRTL=!!t.isRTL,t.field=t.field&&t.field.nodeName?t.field:null,t.theme="string"==typeof t.theme&&t.theme?t.theme:null,t.bound=!!(void 0!==t.bound?t.field&&t.bound:t.field),t.trigger=t.trigger&&t.trigger.nodeName?t.trigger:t.field,t.disableWeekends=!!t.disableWeekends,t.disableDayFn="function"==typeof t.disableDayFn?t.disableDayFn:null;var n=parseInt(t.numberOfMonths,10)||1;if(t.numberOfMonths=n>4?4:n,f(t.minDate)||(t.minDate=!1),f(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))||b.yearRange,t.yearRange>100&&(t.yearRange=100);return t},toString:function(n){return n=n||this._o.format,f(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 f(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="",v(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof e&&(e=new Date(Date.parse(e))),f(e)){var n=this._o.minDate,r=this._o.maxDate;f(n)&&e<n?e=n:f(r)&&e>r&&(e=r),this._d=new Date(e.getTime()),y(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),v(this._o.field,"change",{firedBy:this})),t||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(e){var t=!0;if(f(e)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),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?(y(e),this._o.minDate=e,this._o.minYear=e.getFullYear(),this._o.minMonth=e.getMonth()):(this._o.minDate=b.minDate,this._o.minYear=b.minYear,this._o.minMonth=b.minMonth,this._o.startRange=b.startRange),this.draw()},setMaxDate:function(e){e instanceof Date?(y(e),this._o.maxDate=e,this._o.maxYear=e.getFullYear(),this._o.maxMonth=e.getMonth()):(this._o.maxDate=b.maxDate,this._o.maxYear=b.maxYear,this._o.maxMonth=b.maxMonth,this._o.endRange=b.endRange),this.draw()},setStartRange:function(e){this._o.startRange=e},setEndRange:function(e){this._o.endRange=e},draw:function(e){if(this._v||e){var t,n=this._o,r=n.minYear,i=n.maxYear,a=n.minMonth,s=n.maxMonth,u="";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 l=0;l<n.numberOfMonths;l++)u+='<div class="pika-lendar">'+R(this,l,this.calendars[l].year,this.calendars[l].month,this.calendars[0].year,t)+this.render(this.calendars[l].year,this.calendars[l].month,t)+"</div>";this.el.innerHTML=u,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,f,d,h,p;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,h=!0,p=!0,"function"==typeof e.getBoundingClientRect)c=(d=e.getBoundingClientRect()).left+window.pageXOffset,f=d.bottom+window.pageYOffset;else for(c=t.offsetLeft,f=t.offsetTop+t.offsetHeight;t=t.offsetParent;)c+=t.offsetLeft,f+=t.offsetTop;(this._o.reposition&&c+n>i||this._o.position.indexOf("right")>-1&&c-n+e.offsetWidth>0)&&(c=c-n+e.offsetWidth,h=!1),(this._o.reposition&&f+o>a+s||this._o.position.indexOf("top")>-1&&f-o-e.offsetHeight>0)&&(f=f-o-e.offsetHeight,p=!1),this.el.style.left=c+"px",this.el.style.top=f+"px",u(this.el,h?"left-aligned":"right-aligned"),u(this.el,p?"bottom-aligned":"top-aligned"),l(this.el,h?"right-aligned":"left-aligned"),l(this.el,p?"top-aligned":"bottom-aligned")}},render:function(e,t,n){var r=this._o,o=new Date,i=p(e,t),a=new Date(e,t,1).getDay(),s=[],u=[];y(o),r.firstDay>0&&(a-=r.firstDay)<0&&(a+=7);for(var l=0===t?11:t-1,c=11===t?0:t+1,h=0===t?e-1:e,g=11===t?e+1:e,v=p(h,l),E=i+a,b=E;b>7;)b-=7;E+=7-b;for(var R,O,S,A,N=!1,_=0,k=0;_<E;_++){var M=new Date(e,t,_-a+1),I=!!f(this._d)&&m(M,this._d),P=m(M,o),x=-1!==r.events.indexOf(M.toDateString()),D=_<a||_>=i+a,L=_-a+1,F=t,j=e,U=r.startRange&&m(r.startRange,M),H=r.endRange&&m(r.endRange,M),B=r.startRange&&r.endRange&&r.startRange<M&&M<r.endRange;D&&(_<a?(L=v+L,F=l,j=h):(L-=i,F=c,j=g));var V={day:L,month:F,year:j,hasEvent:x,isSelected:I,isToday:P,isDisabled:r.minDate&&M<r.minDate||r.maxDate&&M>r.maxDate||r.disableWeekends&&d(M)||r.disableDayFn&&r.disableDayFn(M),isEmpty:D,isStartRange:U,isEndRange:H,isInRange:B,showDaysInNextAndPreviousMonths:r.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:r.enableSelectionDaysInNextAndPreviousMonths};r.pickWholeWeek&&I&&(N=!0),u.push(C(V)),7==++k&&(r.showWeekNumber&&u.unshift((R=_-a,O=t,S=e,A=void 0,void 0,A=new Date(S,0,1),'<td class="pika-week">'+Math.ceil(((new Date(S,O,R)-A)/864e5+A.getDay()+1)/7)+"</td>")),s.push(w(u,r.isRTL,r.pickWholeWeek,N)),u=[],k=0,N=!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="'+T(e,t)+'">'+T(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(),l(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",u(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)}},O}(o)}()},function(e,t,n){},function(e,t,n){"use strict";n(7);var r=n(1);t.__esModule=!0,t.EDITOR_TYPE=t.DropdownEditor=void 0,n(40),n(0);var o=r(n(5)),i=r(n(6)),a=r(n(31)),s=r(n(15)),u=r(n(16)),l=r(n(14)),c=n(307),f=r(n(74));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,u.default)(this,n)}}t.EDITOR_TYPE="dropdown";var h=function(e){(0,s.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:"prepare",value:function(e,t,r,o,i,s){(0,a.default)((0,l.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=h,f.default.getSingleton().add("beforeValidate",(function(e,t,n){var r=this.getCellMeta(t,this.propToCol(n));r.editor===h&&void 0===r.strict&&(r.filter=!1,r.strict=!0)}))},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.NumericEditor=t.EDITOR_TYPE=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(15)),s=r(n(16)),u=r(n(14)),l=n(145);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,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,s.default)(this,n)}}t.EDITOR_TYPE="numeric";var f=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}(l.TextEditor);t.NumericEditor=f},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.PasswordEditor=t.EDITOR_TYPE=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(31)),s=r(n(15)),u=r(n(16)),l=r(n(14)),c=n(145),f=n(23);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,u.default)(this,n)}}t.EDITOR_TYPE="password";var h=function(e){(0,s.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:"createElements",value:function(){(0,a.default)((0,l.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,f.empty)(this.TEXTAREA_PARENT),this.TEXTAREA_PARENT.appendChild(this.TEXTAREA)}}],[{key:"EDITOR_TYPE",get:function(){return"password"}}]),n}(c.TextEditor);t.PasswordEditor=h},function(e,t,n){"use strict";t.__esModule=!0,t.SelectEditor=t.EDITOR_TYPE=void 0;var r=n(860);t.EDITOR_TYPE=r.EDITOR_TYPE,t.SelectEditor=r.SelectEditor},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.SelectEditor=t.EDITOR_TYPE=void 0;var o=r(n(21)),i=r(n(5)),a=r(n(6)),s=r(n(31)),u=r(n(15)),l=r(n(16)),c=r(n(14)),f=n(197),d=n(23),h=n(17);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,l.default)(this,n)}}t.EDITOR_TYPE="select";var y=function(e){(0,u.default)(n,e);var t=p(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,d.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(){this._opened=!0,this.refreshDimensions(),this.select.style.display="",this.hot.getShortcutManager().setActiveContextName("editor"),this.registerShortcuts()}},{key:"close",value:function(){this._opened=!1,this.select.style.display="none",(0,d.hasClass)(this.select,"ht_editor_visible")&&(0,d.removeClass)(this.select,"ht_editor_visible"),this.unregisterShortcuts(),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 u=this;(0,s.default)((0,c.default)(n.prototype),"prepare",this).call(this,e,t,r,o,i,a);var l,f=this.cellProperties.selectOptions;l="function"==typeof f?this.prepareOptions(f(this.row,this.col,this.prop)):this.prepareOptions(f),(0,d.empty)(this.select),(0,h.objectEach)(l,(function(e,t){var n=u.hot.rootDocument.createElement("OPTION");n.value=t,(0,d.fastInnerHTML)(n,e),u.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===f.EDITOR_STATE.EDITING)if(this.TD=this.getEditedCell(),this.TD){var e=this.getEditedCellRect(),t=e.top,n=e.start,r=e.width,o=e.height,i=this.select.style;i.height="".concat(o,"px"),i.width="".concat(r,"px"),i.top="".concat(t,"px"),i[this.hot.isRtl()?"right":"left"]="".concat(n,"px"),i.margin="0px",(0,d.addClass)(this.select,"ht_editor_visible")}else this.close()}},{key:"registerShortcuts",value:function(){var e=this,t=this.hot.getShortcutManager().getContext("editor"),n={group:"selectEditor"};!1!==this.isInFullEditMode()&&t.addShortcuts([{keys:[["ArrowUp"]],callback:function(){var t=e.select.selectedIndex-1;t>=0&&(e.select[t].selected=!0)}},{keys:[["ArrowDown"]],callback:function(){var t=e.select.selectedIndex+1;t<=e.select.length-1&&(e.select[t].selected=!0)}}],n)}},{key:"unregisterShortcuts",value:function(){this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup("selectEditor")}}],[{key:"EDITOR_TYPE",get:function(){return"select"}}]),n}(f.BaseEditor);t.SelectEditor=y},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.TimeEditor=t.EDITOR_TYPE=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(31)),s=r(n(15)),u=r(n(16)),l=r(n(14)),c=n(145);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,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,u.default)(this,n)}}t.EDITOR_TYPE="time";var d=function(e){(0,s.default)(n,e);var t=f(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,l.default)(n.prototype),"prepare",this).call(this,e,t,r,o,i,s),this.TEXTAREA.dir="ltr"}}],[{key:"EDITOR_TYPE",get:function(){return"time"}}]),n}(c.TextEditor);t.TimeEditor=d},function(e,t,n){"use strict";t.__esModule=!0,t.hasRenderer=t.getRenderer=t.getRegisteredRenderers=t.getRegisteredRendererNames=void 0,t.registerAllRenderers=function(){(0,f.registerRenderer)(r.autocompleteRenderer),(0,f.registerRenderer)(o.baseRenderer),(0,f.registerRenderer)(i.checkboxRenderer),(0,f.registerRenderer)(a.htmlRenderer),(0,f.registerRenderer)(s.numericRenderer),(0,f.registerRenderer)(u.passwordRenderer),(0,f.registerRenderer)(l.textRenderer),(0,f.registerRenderer)(c.timeRenderer)};var r=n(198);t.autocompleteRenderer=r.autocompleteRenderer,t.AUTOCOMPLETE_RENDERER=r.RENDERER_TYPE;var o=n(236);t.baseRenderer=o.baseRenderer,t.BASE_RENDERER=o.RENDERER_TYPE;var i=n(608);t.checkboxRenderer=i.checkboxRenderer,t.CHECKBOX_RENDERER=i.RENDERER_TYPE;var a=n(607);t.htmlRenderer=a.htmlRenderer,t.HTML_RENDERER=a.RENDERER_TYPE;var s=n(609);t.numericRenderer=s.numericRenderer,t.NUMERIC_RENDERER=s.RENDERER_TYPE;var u=n(611);t.passwordRenderer=u.passwordRenderer,t.PASSWORD_RENDERER=u.RENDERER_TYPE;var l=n(146);t.textRenderer=l.textRenderer,t.TEXT_RENDERER=l.RENDERER_TYPE;var c=n(612);t.timeRenderer=c.timeRenderer,t.TIME_RENDERER=c.RENDERER_TYPE;var f=n(193);t.registerRenderer=f.registerRenderer,t.getRegisteredRendererNames=f.getRegisteredRendererNames,t.getRegisteredRenderers=f.getRegisteredRenderers,t.getRenderer=f.getRenderer,t.hasRenderer=f.hasRenderer},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.RENDERER_TYPE=void 0,t.autocompleteRenderer=u;var o=n(607),i=n(146),a=r(n(59)),s=n(23);n(865);function u(e,t,n,r,u,l,c){var f=e.rootDocument,d=c.allowHtml?o.htmlRenderer:i.textRenderer,h=f.createElement("DIV");if(h.className="htAutocompleteArrow",h.appendChild(f.createTextNode(String.fromCharCode(9660))),d.apply(this,[e,t,n,r,u,l,c]),t.firstChild||t.appendChild(f.createTextNode(String.fromCharCode(160))),t.insertBefore(h,t.firstChild),(0,s.addClass)(t,"htAutocomplete"),!e.acArrowListener){var p=new a.default(e);e.acArrowListener=function(o){(0,s.hasClass)(o.target,"htAutocompleteArrow")&&e.view._wt.getSetting("onCellDblClick",null,e._createCellCoords(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.RENDERER_TYPE=void 0,t.htmlRenderer=i;var r=n(236),o=n(23);function i(e,t,n,i,a,s,u){r.baseRenderer.apply(this,[e,t,n,i,a,s,u]),(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(1);t.__esModule=!0,t.RENDERER_TYPE=void 0,t.checkboxRenderer=d,n(3),n(0),n(2),n(11),n(4),n(42),n(49),n(66),n(76);var o=n(236),i=r(n(59)),a=n(23),s=n(32),u=n(192);n(867);var l=r(n(74)),c=new WeakMap,f=new WeakMap;function d(e,t,n,r,l,d,p){var y=e.rootDocument;o.baseRenderer.apply(this,[e,t,n,r,l,d,p]),function(e){var t=f.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(!h(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(!h(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(!h(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)})),f.set(e,t)}}(e);var m,g,v=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),E=p.label,b=!1;if(void 0===p.checkedTemplate&&(p.checkedTemplate=!0),void 0===p.uncheckedTemplate&&(p.uncheckedTemplate=!1),(0,a.empty)(t),d===p.checkedTemplate||(0,s.stringify)(d).toLocaleLowerCase(p.locale)===(0,s.stringify)(p.checkedTemplate).toLocaleLowerCase(p.locale)?v.checked=!0:d===p.uncheckedTemplate||(0,s.stringify)(d).toLocaleLowerCase(p.locale)===(0,s.stringify)(p.uncheckedTemplate).toLocaleLowerCase(p.locale)?v.checked=!1:(0,s.isEmpty)(d)?(0,a.addClass)(v,"noValue"):(v.style.display="none",(0,a.addClass)(v,"htBadValue"),b=!0),v.setAttribute("data-row",n),v.setAttribute("data-col",r),!b&&E){var T="";if(E.value)T="function"==typeof E.value?E.value.call(this,n,r,l,d):E.value;else if(E.property){var C=e.getDataAtRowProp(n,E.property);T=null!==C?C:""}var w=function(e,t,n){var r=e.createElement("label");return r.className="htCheckboxRendererLabel ".concat(n?"fullWidth":""),r.appendChild(e.createTextNode(t)),r.cloneNode(!0)}(y,T,!0!==E.separated);"before"===E.position?E.separated?(t.appendChild(w),t.appendChild(v)):(w.appendChild(v),v=w):E.position&&"after"!==E.position||(E.separated?(t.appendChild(v),t.appendChild(w)):(w.insertBefore(v,w.firstChild),v=w))}function R(){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].getTopStartCorner(),i=o.row,a=o.col,s=n[r].getBottomEndCorner(),u=s.row,l=s.col,c=[],f=i;f<=u;f+=1)for(var d=a;d<=l;d+=1){var h=e.getCellMeta(f,d);if("checkbox"!==h.type)return;if(!0!==h.readOnly){void 0===h.checkedTemplate&&(h.checkedTemplate=!0),void 0===h.uncheckedTemplate&&(h.uncheckedTemplate=!1);var p=e.getDataAtCell(f,d);!1===t?[h.checkedTemplate,h.checkedTemplate.toString()].includes(p)?c.push([f,d,h.uncheckedTemplate]):[h.uncheckedTemplate,h.uncheckedTemplate.toString(),null,void 0].includes(p)&&c.push([f,d,h.checkedTemplate]):c.push([f,d,h.uncheckedTemplate])}}c.length>0&&e.setDataAtCell(c)}}function O(){var t=e.getSelectedRange();if(t){for(var n=0;n<t.length;n++)for(var r=t[n].getTopStartCorner(),o=t[n].getBottomEndCorner(),i=r.row;i<=o.row;i++)for(var a=r.col;a<=o.col;a++){var s=e.getCellMeta(i,a);if("checkbox"!==s.type)return!1;var u=e.getCell(i,a);if(null==u)return!0;if(u.querySelectorAll("input[type=checkbox]").length>0&&!s.readOnly)return!0}return!1}}(!E||E&&!E.separated)&&t.appendChild(v),b&&t.appendChild(y.createTextNode("#bad-value#")),c.has(e)||(c.set(e,!0),m=e.getShortcutManager().getContext("grid"),g={group:"checkboxRenderer"},m.addShortcuts([{keys:[["space"]],callback:function(){return R(),!O()}},{keys:[["enter"]],callback:function(){return R(),!O()},runOnlyIf:function(){return e.getSettings().enterBeginsEditing}},{keys:[["delete"],["backspace"]],callback:function(){return R(!0),!O()},relativeToGroup:u.SHORTCUTS_GROUP_EDITOR,position:"before"}],g))}function h(e){return"INPUT"===e.tagName&&"checkbox"===e.getAttribute("type")}t.RENDERER_TYPE="checkbox",l.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 u=r.value,l=r.property,c=n;if(u)c="function"==typeof u?u(i,a,s,n):u;else if(l){var f=this.getDataAtRowProp(i,l);c=null!==f?f:n}e=c}return e}})),d.RENDERER_TYPE="checkbox"},function(e,t,n){},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.RENDERER_TYPE=void 0,t.numericRenderer=s,n(12),n(61),n(63),n(35),n(75);var o=r(n(610)),i=n(146),a=n(47);function s(e,t,n,r,s,u,l){var c=u;if((0,a.isNumeric)(c)){var f=l.numericFormat,d=f&&f.culture||"-",h=f&&f.pattern,p=l.className||"",y=p.length?p.split(" "):[];if(void 0!==d&&!o.default.languages()[d]){var m=d.replace("-",""),g=o.default.allLanguages?o.default.allLanguages[d]:o.default[m];g&&o.default.registerLanguage(g)}o.default.setLanguage(d),c=(0,o.default)(c).format(h||"0"),y.indexOf("htLeft")<0&&y.indexOf("htCenter")<0&&y.indexOf("htRight")<0&&y.indexOf("htJustify")<0&&y.push("htRight"),y.indexOf("htNumeric")<0&&y.push("htNumeric"),l.className=y.join(" "),t.dir="ltr"}(0,i.textRenderer)(e,t,n,r,s,c,l)}t.RENDERER_TYPE="numeric",s.RENDERER_TYPE="numeric"},function(e,t,n){"use strict";t.__esModule=!0,t.RENDERER_TYPE=void 0,t.passwordRenderer=a;var r=n(146),o=n(23),i=n(47);function a(e,t,n,a,s,u,l){r.textRenderer.apply(this,[e,t,n,a,s,u,l]);var c=l.hashLength||t.innerHTML.length,f=l.hashSymbol||"*",d="";(0,i.rangeEach)(c-1,(function(){d+=f})),(0,o.fastInnerHTML)(t,d)}t.RENDERER_TYPE="password",a.RENDERER_TYPE="password"},function(e,t,n){"use strict";t.__esModule=!0,t.RENDERER_TYPE=void 0,t.timeRenderer=o;var r=n(146);function o(e,t,n,o,i,a,s){r.textRenderer.apply(this,[e,t,n,o,i,a,s]),t.dir="ltr"}t.RENDERER_TYPE="time",o.RENDERER_TYPE="time"},function(e,t,n){"use strict";t.__esModule=!0,t.hasValidator=t.getValidator=t.getRegisteredValidators=t.getRegisteredValidatorNames=void 0,t.registerAllValidators=function(){(0,s.registerValidator)(r.autocompleteValidator),(0,s.registerValidator)(o.dateValidator),(0,s.registerValidator)(i.numericValidator),(0,s.registerValidator)(a.timeValidator)};var r=n(310);t.autocompleteValidator=r.autocompleteValidator,t.AUTOCOMPLETE_VALIDATOR=r.VALIDATOR_TYPE;var o=n(613);t.dateValidator=o.dateValidator,t.DATE_VALIDATOR=o.VALIDATOR_TYPE;var i=n(616);t.numericValidator=i.numericValidator,t.NUMERIC_VALIDATOR=i.VALIDATOR_TYPE;var a=n(617);t.timeValidator=a.timeValidator,t.TIME_VALIDATOR=a.VALIDATOR_TYPE;var s=n(194);t.registerValidator=s.registerValidator,t.getRegisteredValidatorNames=s.getRegisteredValidatorNames,t.getRegisteredValidators=s.getRegisteredValidators,t.getValidator=s.getValidator,t.hasValidator=s.hasValidator},function(e,t,n){"use strict";t.__esModule=!0,t.VALIDATOR_TYPE=void 0,t.autocompleteValidator=r;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(1);t.__esModule=!0,t.VALIDATOR_TYPE=void 0,t.correctFormat=l,t.dateValidator=u,n(12),n(614);var o=r(n(102)),i=n(157),a=n(309),s=n(615);function u(e,t){var n=(0,i.getEditorInstance)(a.EDITOR_TYPE,this.instance),r=e,s=!0;null==r&&(r="");var u=(0,o.default)(r,this.dateFormat||n.defaultDateFormat,!0).isValid(),c=(0,o.default)(new Date(r)).isValid()||u;if(this.allowEmpty&&""===r&&(c=!0,u=!0),c||(s=!1),!c&&u&&(s=!0),c&&!u)if(!0===this.correctFormat){var f=l(r,this.dateFormat),d=this.instance.toVisualRow(this.row),h=this.instance.toVisualColumn(this.col);this.instance.setDataAtCell(d,h,f,"dateValidator"),s=!0}else s=!1;t(s)}function l(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",u.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.VALIDATOR_TYPE=void 0,t.numericValidator=o;var r=n(47);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(1);t.__esModule=!0,t.VALIDATOR_TYPE=void 0,t.timeValidator=a,n(12);var o=r(n(102)),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 u=(0,o.default)(a,i,!0).isValid()?(0,o.default)(a):(0,o.default)(a,n),l=u.isValid(),c=(0,o.default)(a,n,!0).isValid()&&!s;if(this.allowEmpty&&""===a&&(l=!0,c=!0),l||(r=!1),!l&&c&&(r=!0),l&&!c)if(!0===this.correctFormat){var f=u.format(n),d=this.instance.toVisualRow(this.row),h=this.instance.toVisualColumn(this.col);this.instance.setDataAtCell(d,h,f,"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.hasCellType=t.getRegisteredCellTypes=t.getRegisteredCellTypeNames=t.getCellType=void 0,t.registerAllCellTypes=function(){(0,d.registerCellType)(r.AutocompleteCellType),(0,d.registerCellType)(o.CheckboxCellType),(0,d.registerCellType)(i.DateCellType),(0,d.registerCellType)(a.DropdownCellType),(0,d.registerCellType)(s.HandsontableCellType),(0,d.registerCellType)(u.NumericCellType),(0,d.registerCellType)(l.PasswordCellType),(0,d.registerCellType)(c.TextCellType),(0,d.registerCellType)(f.TimeCellType)};var r=n(878);t.AutocompleteCellType=r.AutocompleteCellType,t.AUTOCOMPLETE_TYPE=r.CELL_TYPE;var o=n(880);t.CheckboxCellType=o.CheckboxCellType,t.CHECKBOX_TYPE=o.CELL_TYPE;var i=n(882);t.DateCellType=i.DateCellType,t.DATE_TYPE=i.CELL_TYPE;var a=n(884);t.DropdownCellType=a.DropdownCellType,t.DROPDOWN_TYPE=a.CELL_TYPE;var s=n(886);t.HandsontableCellType=s.HandsontableCellType,t.HANDSONTABLE_TYPE=s.CELL_TYPE;var u=n(888);t.NumericCellType=u.NumericCellType,t.NUMERIC_TYPE=u.CELL_TYPE;var l=n(890);t.PasswordCellType=l.PasswordCellType,t.PASSWORD_TYPE=l.CELL_TYPE;var c=n(600);t.TextCellType=c.TextCellType,t.TEXT_TYPE=c.CELL_TYPE;var f=n(892);t.TimeCellType=f.TimeCellType,t.TIME_TYPE=f.CELL_TYPE;var d=n(162);t.registerCellType=d.registerCellType,t.getCellType=d.getCellType,t.getRegisteredCellTypeNames=d.getRegisteredCellTypeNames,t.getRegisteredCellTypes=d.getRegisteredCellTypes,t.hasCellType=d.hasCellType},function(e,t,n){"use strict";t.__esModule=!0,t.CELL_TYPE=t.AutocompleteCellType=void 0;var r=n(879);t.AutocompleteCellType=r.AutocompleteCellType,t.CELL_TYPE=r.CELL_TYPE},function(e,t,n){"use strict";t.__esModule=!0,t.CELL_TYPE=t.AutocompleteCellType=void 0;var r=n(307),o=n(198),i=n(310);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(881);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(602),o=n(608);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(883);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(309),o=n(198),i=n(613);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(885);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(603),o=n(198),i=n(310);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(887);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(308),o=n(198);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(889);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(604),o=n(609),i=n(616);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(891);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(605),o=n(611);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(893);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(606),o=n(612),i=n(617);t.CELL_TYPE="time";var a={CELL_TYPE:"time",editor:r.TimeEditor,renderer:o.timeRenderer,validator:i.timeValidator};t.TimeCellType=a},function(e,t,n){"use strict";t.__esModule=!0,t.getPluginsNames=t.getPlugin=void 0,t.registerAllPlugins=function(){(0,F.registerPlugin)(r.AutoColumnSize),(0,F.registerPlugin)(o.Autofill),(0,F.registerPlugin)(i.AutoRowSize),(0,F.registerPlugin)(s.BindRowsWithHeaders),(0,F.registerPlugin)(u.CollapsibleColumns),(0,F.registerPlugin)(l.ColumnSorting),(0,F.registerPlugin)(c.ColumnSummary),(0,F.registerPlugin)(f.Comments),(0,F.registerPlugin)(d.ContextMenu),(0,F.registerPlugin)(h.CopyPaste),(0,F.registerPlugin)(p.CustomBorders),(0,F.registerPlugin)(y.DragToScroll),(0,F.registerPlugin)(m.DropdownMenu),(0,F.registerPlugin)(g.ExportFile),(0,F.registerPlugin)(v.Filters),(0,F.registerPlugin)(E.Formulas),(0,F.registerPlugin)(b.HiddenColumns),(0,F.registerPlugin)(T.HiddenRows),(0,F.registerPlugin)(C.ManualColumnFreeze),(0,F.registerPlugin)(w.ManualColumnMove),(0,F.registerPlugin)(R.ManualColumnResize),(0,F.registerPlugin)(O.ManualRowMove),(0,F.registerPlugin)(S.ManualRowResize),(0,F.registerPlugin)(A.MergeCells),(0,F.registerPlugin)(N.MultiColumnSorting),(0,F.registerPlugin)(_.MultipleSelectionHandles),(0,F.registerPlugin)(k.NestedHeaders),(0,F.registerPlugin)(M.NestedRows),(0,F.registerPlugin)(I.PersistentState),(0,F.registerPlugin)(P.Search),(0,F.registerPlugin)(x.TouchScroll),(0,F.registerPlugin)(D.TrimRows),(0,F.registerPlugin)(L.UndoRedo)};var r=n(895);t.AutoColumnSize=r.AutoColumnSize;var o=n(899);t.Autofill=o.Autofill;var i=n(902);t.AutoRowSize=i.AutoRowSize;var a=n(50);t.BasePlugin=a.BasePlugin;var s=n(904);t.BindRowsWithHeaders=s.BindRowsWithHeaders;var u=n(908);t.CollapsibleColumns=u.CollapsibleColumns;var l=n(620);t.ColumnSorting=l.ColumnSorting;var c=n(920);t.ColumnSummary=c.ColumnSummary;var f=n(923);t.Comments=f.Comments;var d=n(928);t.ContextMenu=d.ContextMenu;var h=n(944);t.CopyPaste=h.CopyPaste;var p=n(952);t.CustomBorders=p.CustomBorders;var y=n(960);t.DragToScroll=y.DragToScroll;var m=n(962);t.DropdownMenu=m.DropdownMenu;var g=n(965);t.ExportFile=g.ExportFile;var v=n(971);t.Filters=v.Filters;var E=n(1003);t.Formulas=E.Formulas;var b=n(1006);t.HiddenColumns=b.HiddenColumns;var T=n(1011);t.HiddenRows=T.HiddenRows;var C=n(1016);t.ManualColumnFreeze=C.ManualColumnFreeze;var w=n(1021);t.ManualColumnMove=w.ManualColumnMove;var R=n(1026);t.ManualColumnResize=R.ManualColumnResize;var O=n(1028);t.ManualRowMove=O.ManualRowMove;var S=n(1033);t.ManualRowResize=S.ManualRowResize;var A=n(1035);t.MergeCells=A.MergeCells;var N=n(1042);t.MultiColumnSorting=N.MultiColumnSorting;var _=n(1048);t.MultipleSelectionHandles=_.MultipleSelectionHandles;var k=n(1050);t.NestedHeaders=k.NestedHeaders;var M=n(1063);t.NestedRows=M.NestedRows;var I=n(1070);t.PersistentState=I.PersistentState;var P=n(1073);t.Search=P.Search;var x=n(1075);t.TouchScroll=x.TouchScroll;var D=n(1077);t.TrimRows=D.TrimRows;var L=n(1079);t.UndoRedo=L.UndoRedo;var F=n(230);t.registerPlugin=F.registerPlugin,t.getPlugin=F.getPlugin,t.getPluginsNames=F.getPluginsNames},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.AutoColumnSize=void 0;var r=n(896);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.AutoColumnSize=r.AutoColumnSize},function(e,t,n){"use strict";n(7);var r=n(1);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.AutoColumnSize=void 0;var o=r(n(34)),i=r(n(5)),a=r(n(6)),s=r(n(46)),u=r(n(31)),l=r(n(15)),c=r(n(16)),f=r(n(14));n(3),n(0),n(2),n(11),n(4),n(13),n(76),n(22),n(55);var d=n(50),h=n(20),p=n(126),y=r(n(311)),m=r(n(74)),g=n(17),v=n(47),E=r(n(619)),b=n(91),T=n(158),C=n(82),w=n(32);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,f.default)(e);if(t){var o=(0,f.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}m.default.getSingleton().register("modifyAutoColumnSizeSeed");var O="autoColumnSize";t.PLUGIN_KEY=O;t.PLUGIN_PRIORITY=10;var S=new WeakMap,A=function(e){(0,l.default)(n,e);var t=R(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 y.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 C.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()[O]&&!this.hot.getSettings().colWidths}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var t=this.hot.getSettings()[O];t&&null!==t.useHeaders&&void 0!==t.useHeaders&&this.ghostTable.setSetting("useHeaders",t.useHeaders),this.setSamplingOptions(),this.addHook("afterLoadData",(function(){return e.onAfterLoadData.apply(e,arguments)})),this.addHook("beforeChangeRender",(function(t){return e.onBeforeChange(t)})),this.addHook("afterFormulasValuesUpdate",(function(t){return e.onAfterFormulasValuesUpdate(t)})),this.addHook("beforeViewRender",(function(t){return e.onBeforeViewRender(t)})),this.addHook("modifyColWidth",(function(t,n){return e.getColumnWidth(n,t)})),this.addHook("afterInit",(function(){return e.onAfterInit()})),(0,u.default)((0,f.default)(n.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){var e=this.findColumnsWhereHeaderWasChanged();e.length&&(this.clearCache(e),this.calculateVisibleColumnsWidth()),(0,u.default)((0,f.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){var e=this;(0,u.default)((0,f.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,v.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,h.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,p.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,p.requestAnimationFrame)(a):((0,p.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()[O],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:"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()[O],t=n.SYNC_CALCULATION_LIMIT,r=this.hot.countCols()-1;return(0,g.isObject)(e)&&(t=e.syncLimit,(0,b.isPercentValue)(t)?t=(0,v.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,T.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,h.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,h.arrayEach)(t,(function(t){e.columnWidthsMap.setValueAtIndex(t,null)}))}),!0):this.columnWidthsMap.clear()}},{key:"isNeedRecalculate",value:function(){return!!(0,h.arrayFilter)(this.columnWidthsMap.getValues().slice(0,this.measuredColumns),(function(e){return null===e})).length}},{key:"onBeforeViewRender",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,h.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:"onAfterFormulasValuesUpdate",value:function(e){var t=(0,h.arrayFilter)(e,(function(e){var t;return(0,w.isDefined)(null===(t=e.address)||void 0===t?void 0:t.col)})),n=(0,h.arrayMap)(t,(function(e){return e.address.col}));this.clearCache(Array.from(new Set(n)))}},{key:"destroy",value:function(){this.ghostTable.clean(),(0,u.default)((0,f.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return O}},{key:"PLUGIN_PRIORITY",get:function(){return 10}},{key:"SETTING_KEYS",get:function(){return!0}},{key:"CALCULATION_STEP",get:function(){return 50}},{key:"SYNC_CALCULATION_LIMIT",get:function(){return 50}}]),n}(d.BasePlugin);t.AutoColumnSize=A},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.PLUGIN_KEY=t.BasePlugin=void 0;var o=r(n(34)),i=r(n(5)),a=r(n(6));n(3),n(33),n(0),n(2),n(4),n(11),n(26),n(12),n(61),n(18),n(75),n(35),n(54),n(618);var s=n(17),u=n(20),l=n(230),c=n(162),f=n(157),d=n(193),h=n(194);function p(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}var y=new Map([["plugin",l.hasPlugin],["cell-type",c.hasCellType],["editor",f.hasEditor],["renderer",d.hasRenderer],["validator",h.hasValidator]]);t.PLUGIN_KEY="base";var m=new WeakMap,g=[],v=null,E=new WeakSet,b=function(){function e(t){var n=this;(0,i.default)(this,e),p(this,E),(0,s.defineGetter)(this,"hot",t,{writable:!1}),m.set(this,{hooks:{}}),v=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(!y.has(i))throw new Error('Unknown plugin dependency type "'.concat(i,'" was found.'));y.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(v||(v=(0,l.getPluginsNames)()),v.indexOf("UndoRedo")>=0&&v.splice(v.indexOf("UndoRedo"),1),v.indexOf(this.pluginName)>=0&&v.splice(v.indexOf(this.pluginName),1),this.hot.addHookOnce("afterPluginsInitialized",(function(){e.isEnabled&&e.isEnabled()&&e.enablePlugin()})),0===v.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){m.get(this).hooks[e]=m.get(this).hooks[e]||[];var n=m.get(this).hooks[e];this.hot.addHook(e,t),n.push(t),m.get(this).hooks[e]=n}},{key:"removeHooks",value:function(e){var t=this;(0,u.arrayEach)(m.get(this).hooks[e]||[],(function(n){t.hot.removeHook(e,n)}))}},{key:"clearHooks",value:function(){var e=this,t=m.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,u.arrayEach)(this.pluginsInitializedCallbacks,(function(e){return e()})),this.pluginsInitializedCallbacks.length=0,this.isPluginsReady=!0}},{key:"onUpdateSettings",value:function(e){var t=function(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}(this,E,T).call(this,e);this.isEnabled&&(this.enabled&&!this.isEnabled()&&this.disablePlugin(),!this.enabled&&this.isEnabled()&&this.enablePlugin(),this.enabled&&this.isEnabled()&&t&&this.updatePlugin(e))}},{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"}},{key:"SETTING_KEYS",get:function(){return[this.PLUGIN_KEY]}}]),e}();function T(e){if(!e)return!1;var t=this.constructor.SETTING_KEYS;if("boolean"==typeof t)return t;for(var n=0;n<t.length;n++)if(void 0!==e[t[n]])return!0;return!1}t.BasePlugin=b},function(e,t,n){"use strict";n(214)("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(374))},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.Autofill=void 0;var r=n(900);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.Autofill=r.Autofill},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.Autofill=void 0,n(35),n(42),n(49),n(18);var o=r(n(44)),i=r(n(34)),a=r(n(5)),s=r(n(6)),u=r(n(46)),l=r(n(31)),c=r(n(15)),f=r(n(16)),d=r(n(14)),h=n(50),p=r(n(74)),y=n(23),m=n(20),g=r(n(59)),v=n(901);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,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,f.default)(this,n)}}p.default.getSingleton().register("modifyAutofillRange"),p.default.getSingleton().register("beforeAutofill"),p.default.getSingleton().register("afterAutofill");var b="autofill";t.PLUGIN_KEY=b;t.PLUGIN_PRIORITY=20;var T=["fillHandle"],C=function(e){(0,c.default)(n,e);var t=E(n);function n(e){var r;return(0,a.default)(this,n),(r=t.call(this,e)).eventManager=new g.default((0,u.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,l.default)((0,d.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,l.default)((0,d.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.clearMappedSettings(),(0,l.default)((0,d.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"getSelectionData",value:function(){var e=this,t=this.hot.getSelectedRangeLast(),n=t.getTopStartCorner(),r=n.row,o=n.col,i=t.getBottomEndCorner(),a=i.row,s=i.col,u=this.hot.runHooks("modifyCopyableRange",[{startRow:r,startCol:o,endRow:a,endCol:s}]),l=[],c=[],f=[];return(0,m.arrayEach)(u,(function(e){for(var t=e.startRow;t<=e.endRow;t+=1)-1===l.indexOf(t)&&l.push(t);for(var n=e.startCol;n<=e.endCol;n+=1)-1===c.indexOf(n)&&c.push(n)})),(0,m.arrayEach)(l,(function(t){var n=[];(0,m.arrayEach)(c,(function(r){n.push(e.hot.getCopyableData(t,r))})),f.push(n)})),f}},{key:"fillIn",value:function(){var e=this;if(this.hot.selection.highlight.getFill().isEmpty())return!1;var t=this.hot.selection.highlight.getFill().getVisualCorners(),n=(0,i.default)(t,4),r=n[0],o=n[1],a=n[2],s=n[3],u=this.hot.getSelectedRangeLast(),l=u.getTopStartCorner(),c=u.getBottomEndCorner();this.resetSelectionOfDraggedArea();var f=[l.row,l.col,c.row,c.col],d=this.hot.runHooks("modifyAutofillRange",[Math.min(l.row,r),Math.min(l.col,o),Math.max(c.row,a),Math.max(c.col,s)],f),h=(0,v.getDragDirectionAndRange)(f,d,(function(t,n){return e.hot._createCellCoords(t,n)})),p=h.directionOfDrag,y=h.startOfDragCoords,m=h.endOfDragCoords;if(y&&y.row>-1&&y.col>-1){var g=this.getSelectionData(),E=u.clone(),b=this.hot._createCellRange(y,y,m),T=this.hot.runHooks("beforeAutofill",g,E,b,p);if(!1===T)return this.hot.selection.highlight.getFill().clear(),this.hot.render(),!1;var C=(0,v.getDeltas)(y,m,g,p),w=T,R=T;if(["up","left"].indexOf(p)>-1&&(1!==R.length||0!==R[0].length))if(w=[],"up"===p)for(var O=m.row-y.row+1,S=O%R.length,A=0;A<O;A++)w.push(R[(A+(R.length-S))%R.length]);else for(var N=m.col-y.col+1,_=N%R[0].length,k=0;k<R.length;k++){w.push([]);for(var M=0;M<N;M++)w[k].push(R[k][(M+(R[k].length-_))%R[k].length])}this.hot.populateFromArray(y.row,y.col,w,m.row,m.col,"".concat(this.pluginName,".fill"),null,p,C),this.setSelection(d),this.hot.runHooks("afterAutofill",w,E,b,p),this.hot.render()}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.getBottomEndCorner(),r=e;if(this.directions.includes(v.DIRECTIONS.vertical)&&this.directions.includes(v.DIRECTIONS.horizontal)){var o=t.getTopStartCorner();(n.col<=e.col||o.col>=e.col)&&(r=this.hot._createCellCoords(n.row,e.col)),(n.row<e.row||o.row>e.row)&&(r=this.hot._createCellCoords(e.row,n.col))}else if(this.directions.includes(v.DIRECTIONS.vertical))r=this.hot._createCellCoords(e.row,n.col);else{if(!this.directions.includes(v.DIRECTIONS.horizontal))return;r=this.hot._createCellCoords(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(this.hot._createCellCoords(e[0],e[1])).add(this.hot._createCellCoords(t,e[3])).commit()}},{key:"setSelection",value:function(e){var t;(t=this.hot).selectCell.apply(t,(0,o.default)((0,m.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,y.offset)(this.hot.table).top-(this.hot.rootWindow.pageYOffset||t.scrollTop)+(0,y.outerHeight)(this.hot.table),r=(0,y.offset)(this.hot.table).left-(this.hot.rootWindow.pageXOffset||t.scrollLeft)+(0,y.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,v.getMappedFillHandleSetting)(this.hot.getSettings().fillHandle);this.directions=e.directions,this.autoInsertRow=e.autoInsertRow}},{key:"destroy",value:function(){(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 20}},{key:"SETTING_KEYS",get:function(){return[b].concat(T)}}]),n}(h.BasePlugin);t.Autofill=C},function(e,t,n){"use strict";t.__esModule=!0,t.DIRECTIONS=void 0,t.getDeltas=function(e,t,n,r){var o=n.length,i=n?n[0].length:0,a=[],s=t.row-e.row,u=t.col-e.col;if(-1!==["down","up"].indexOf(r)){for(var l=[],c=0;c<u;c++){var f=parseInt(n[0][c],10),d=parseInt(n[o-1][c],10),h=("down"===r?d-f:f-d)/(o-1)||0;l.push(h)}a.push(l)}if(-1!==["right","left"].indexOf(r))for(var p=0;p<s;p++){var y=parseInt(n[p][0],10),m=parseInt(n[p][i-1],10),g=("right"===r?m-y:y-m)/(i-1)||0;a.push([g])}return a},t.getDragDirectionAndRange=function(e,t,n){var r,o,i;t[0]===e[0]&&t[1]<e[1]?(i="left",r=n(t[0],t[1]),o=n(t[2],e[1]-1)):t[2]===e[2]&&t[0]===e[0]&&t[3]>e[3]?(i="right",r=n(t[0],e[3]+1),o=n(t[2],t[3])):t[0]<e[0]&&t[1]===e[1]?(i="up",r=n(t[0],t[1]),o=n(e[0]-1,t[3])):t[2]>e[2]&&t[1]===e[1]&&(i="down",r=n(e[2]+1,t[1]),o=n(t[2],t[3]));r&&r.normalize();o&&o.normalize();return{directionOfDrag:i,startOfDragCoords:r,endOfDragCoords:o}},t.getMappedFillHandleSetting=function(e){var t={};!0===e?(t.directions=Object.keys(i),t.autoInsertRow=!0):(0,r.isObject)(e)?((0,o.isDefined)(e.autoInsertRow)?e.direction===i.horizontal?t.autoInsertRow=!1:t.autoInsertRow=e.autoInsertRow:t.autoInsertRow=!1,(0,o.isDefined)(e.direction)?t.directions=[e.direction]:t.directions=Object.keys(i)):"string"==typeof e?(t.directions=[e],t.autoInsertRow=!0):(t.directions=[],t.autoInsertRow=!1);return t},n(35),n(53);var r=n(17),o=n(32),i={horizontal:"horizontal",vertical:"vertical"};t.DIRECTIONS=i},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.AutoRowSize=void 0;var r=n(903);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.AutoRowSize=r.AutoRowSize},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.AutoRowSize=void 0,n(13),n(76);var o=r(n(34)),i=r(n(5)),a=r(n(6)),s=r(n(31)),u=r(n(15)),l=r(n(16)),c=r(n(14)),f=n(50),d=n(20),h=n(126),p=n(23),y=r(n(311)),m=n(17),g=n(47),v=r(n(619)),E=n(91),b=n(82);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,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,l.default)(this,n)}}t.PLUGIN_KEY="autoRowSize";t.PLUGIN_PRIORITY=40;var C=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)).rowHeightsMap=void 0,r.headerHeight=null,r.ghostTable=new y.default(r.hot),r.samplesGenerator=new v.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 b.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,m.isObject)(e)}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.setSamplingOptions(),this.addHook("afterLoadData",(function(){return e.onAfterLoadData.apply(e,arguments)})),this.addHook("beforeChangeRender",(function(t){return e.onBeforeChange(t)})),this.addHook("beforeColumnResize",(function(){return e.recalculateAllRowsHeight()})),this.addHook("beforeViewRender",(function(t){return e.onBeforeViewRender(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,g.rangeEach)(i.from,i.to,(function(t){if(r||null===e.rowHeightsMap.getValueAtIndex(t)){var n=e.samplesGenerator.generateRowSamples(t,a);(0,d.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,h.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,h.requestAnimationFrame)(a):((0,h.cancelAnimationFrame)(i),e.inProgress=!1,e.hot.view.adjustElementsSize(!0),e.hot.view._wt.wtOverlays.inlineStartOverlay.needFullRender&&e.hot.view._wt.wtOverlays.inlineStartOverlay.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,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:"recalculateAllRowsHeight",value:function(){(0,p.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,m.isObject)(e)&&(t=e.syncLimit,(0,E.isPercentValue)(t)?t=(0,g.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,g.rangeEach)(Math.min(r,o),Math.max(r,o),(function(e){t.rowHeightsMap.setValueAtIndex(e,null)}))}),!0)}},{key:"isNeedRecalculate",value:function(){return!!(0,d.arrayFilter)(this.rowHeightsMap.getValues().slice(0,this.measuredRows),(function(e){return null===e})).length}},{key:"onBeforeViewRender",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:"SETTING_KEYS",get:function(){return!0}},{key:"CALCULATION_STEP",get:function(){return 50}},{key:"SYNC_CALCULATION_LIMIT",get:function(){return 500}}]),n}(f.BasePlugin);t.AutoRowSize=C},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.BindRowsWithHeaders=void 0;var r=n(905);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.BindRowsWithHeaders=r.BindRowsWithHeaders},function(e,t,n){"use strict";n(7);var r=n(1);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.BindRowsWithHeaders=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(31)),s=r(n(15)),u=r(n(16)),l=r(n(14));n(3),n(33),n(0),n(2),n(4);var c=n(50),f=r(n(906)),d=r(n(907));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,u.default)(this,n)}}var p="bindRowsWithHeaders";t.PLUGIN_KEY=p;t.PLUGIN_PRIORITY=210;var y=new Map([["loose",f.default],["strict",d.default]]),m=function(e){(0,s.default)(n,e);var t=h(n);function n(e){var r;return(0,o.default)(this,n),(r=t.call(this,e)).headerIndexes=null,r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings()[p]}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var t=this.hot.getSettings()[p];"string"!=typeof t&&(t="loose");var r=y.get(t);this.headerIndexes=this.hot.rowIndexMapper.registerMap("bindRowsWithHeaders",new r),this.addHook("modifyRowHeader",(function(t){return e.onModifyRowHeader(t)})),(0,a.default)((0,l.default)(n.prototype),"enablePlugin",this).call(this)}}},{key:"disablePlugin",value:function(){this.hot.rowIndexMapper.unregisterMap("bindRowsWithHeaders"),(0,a.default)((0,l.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"onModifyRowHeader",value:function(e){return this.headerIndexes.getValueAtIndex(this.hot.toPhysicalRow(e))}},{key:"destroy",value:function(){(0,a.default)((0,l.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return p}},{key:"PLUGIN_PRIORITY",get:function(){return 210}}]),n}(c.BasePlugin);t.BindRowsWithHeaders=m},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(31)),s=r(n(15)),u=r(n(16)),l=r(n(14)),c=n(82);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,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,u.default)(this,n)}}var d=(0,c.alterUtilsFactory)("physicallyIndexed"),h=d.getListWithInsertedItems,p=d.getListWithRemovedItems,y=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,c.getIncreasedIndexes)(this.indexedValues,t);this.indexedValues=h(r,e,t,this.initValueOrFn),(0,a.default)((0,l.default)(n.prototype),"insert",this).call(this,e,t)}},{key:"remove",value:function(e){var t=p(this.indexedValues,e);this.indexedValues=(0,c.getDecreasedIndexes)(t,e),(0,a.default)((0,l.default)(n.prototype),"remove",this).call(this,e)}}]),n}(c.IndexMap);t.default=y},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(44)),i=r(n(5)),a=r(n(6)),s=r(n(31)),u=r(n(15)),l=r(n(16)),c=r(n(14)),f=n(82);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,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,l.default)(this,n)}}var h=(0,f.alterUtilsFactory)("physicallyIndexed"),p=h.getListWithInsertedItems,y=h.getListWithRemovedItems,m=function(e){(0,u.default)(n,e);var t=d(n);function n(){return(0,i.default)(this,n),t.call(this,(function(e){return e}))}return(0,a.default)(n,[{key:"insert",value:function(e,t){var r=this;this.indexedValues=p(this.indexedValues,e,t,(function(e,t){return r.getNextValue(t)})),(0,s.default)((0,c.default)(n.prototype),"insert",this).call(this,e,t)}},{key:"remove",value:function(e){this.indexedValues=y(this.indexedValues,e),(0,s.default)((0,c.default)(n.prototype),"remove",this).call(this,e)}},{key:"getNextValue",value:function(e){return Math.max.apply(Math,(0,o.default)(this.getValues()))+1+e}}]),n}(f.IndexMap);t.default=m},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.CollapsibleColumns=void 0;var r=n(909);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.CollapsibleColumns=r.CollapsibleColumns},function(e,t,n){"use strict";n(7);var r=n(1);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.CollapsibleColumns=void 0;var o=r(n(44)),i=r(n(5)),a=r(n(6)),s=r(n(46)),u=r(n(31)),l=r(n(15)),c=r(n(16)),f=r(n(14)),d=r(n(43)),h=r(n(103)),p=r(n(104));n(3),n(33),n(0),n(2),n(4),n(18),n(42),n(35),n(11);var y=n(50),m=n(20),g=n(47),v=n(88),E=n(23),b=r(n(59)),T=n(81);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,f.default)(e);if(t){var o=(0,f.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}function w(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var R="collapsibleColumns";t.PLUGIN_KEY=R;t.PLUGIN_PRIORITY=290;var O=["nestedHeaders"],S=new Map([["collapse",{hideColumn:!0,beforeHook:"beforeColumnCollapse",afterHook:"afterColumnCollapse"}],["expand",{hideColumn:!1,beforeHook:"beforeColumnExpand",afterHook:"afterColumnExpand"}]]),A=new WeakMap,N=function(e){(0,l.default)(n,e);var t=C(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,d.default)((0,s.default)(e),"nestedHeadersPlugin",null),(0,d.default)((0,s.default)(e),"eventManager",new b.default((0,s.default)(e))),(0,d.default)((0,s.default)(e),"headerStateManager",null),w((0,s.default)(e),A,{writable:!0,value:null}),e}return(0,a.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings()[R]}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.hot.getSettings().nestedHeaders||(0,v.warn)("You need to configure the Nested Headers plugin in order to use collapsible headers."),(0,p.default)(this,A,this.hot.columnIndexMapper.createAndRegisterIndexMap(this.pluginName,"hiding")),this.nestedHeadersPlugin=this.hot.getPlugin("nestedHeaders"),this.headerStateManager=this.nestedHeadersPlugin.getStateManager(),this.addHook("init",(function(){return e.onInit()})),this.addHook("afterLoadData",(function(){return e.onAfterLoadData.apply(e,arguments)})),this.addHook("afterGetColHeader",(function(t,n){return e.onAfterGetColHeader(t,n)})),this.addHook("beforeOnCellMouseDown",(function(t,n,r){return e.onBeforeOnCellMouseDown(t,n,r)})),(0,u.default)((0,f.default)(n.prototype),"enablePlugin",this).call(this),this.updatePlugin())}},{key:"updatePlugin",value:function(){if(this.hot.view){if(!this.nestedHeadersPlugin.detectedOverlappedHeaders){var e=this.hot.getSettings().collapsibleColumns;"boolean"==typeof e?this.headerStateManager.mapState((function(e){return{collapsible:e.origColspan>1}})):Array.isArray(e)&&(this.headerStateManager.mapState((function(){return{collapsible:!1}})),this.headerStateManager.mergeStateWith(e))}(0,u.default)((0,f.default)(n.prototype),"updatePlugin",this).call(this)}}},{key:"disablePlugin",value:function(){this.hot.columnIndexMapper.unregisterMap(this.pluginName),(0,p.default)(this,A,null),this.nestedHeadersPlugin=null,this.clearButtons(),(0,u.default)((0,f.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"clearButtons",value:function(){if(this.hot.view){var e=this.hot.view._wt.getSetting("columnHeaders").length,t=this.hot.view._wt.wtTable.THEAD,n=this.hot.view._wt.wtOverlays.topOverlay.clone.wtTable.THEAD,r=this.hot.view._wt.wtOverlays.topInlineStartCornerOverlay?this.hot.view._wt.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.THEAD:null,o=function(e){e&&e.parentNode.removeChild(e)};(0,g.rangeEach)(0,e-1,(function(e){var i=t.childNodes[e],a=n.childNodes[e],s=r?r.childNodes[e]:null;(0,g.rangeEach)(0,i.childNodes.length-1,(function(e){var t=i.childNodes[e].querySelector(".collapsibleIndicator");o(t),a&&a.childNodes[e]&&(t=a.childNodes[e].querySelector(".collapsibleIndicator"),o(t)),r&&s&&s.childNodes[e]&&(t=s.childNodes[e].querySelector(".collapsibleIndicator"),o(t))}))}),!0)}}},{key:"expandSection",value:function(e){this.toggleCollapsibleSection([e],"expand")}},{key:"collapseSection",value:function(e){this.toggleCollapsibleSection([e],"collapse")}},{key:"toggleAllCollapsibleSections",value:function(e){var t=this,n=this.headerStateManager.mapNodes((function(n){var r=n.collapsible,o=n.origColspan,i=n.headerLevel,a=n.columnIndex,s=n.isCollapsed;if(!0===r&&o>1&&(s&&"expand"===e||!s&&"collapse"===e))return{row:t.headerStateManager.levelToRowCoords(i),col:a}}));this.toggleCollapsibleSection(n,e)}},{key:"collapseAll",value:function(){this.toggleAllCollapsibleSections("collapse")}},{key:"expandAll",value:function(){this.toggleAllCollapsibleSections("expand")}},{key:"toggleCollapsibleSection",value:function(e,t){var n=this;if(!S.has(t))throw new Error("Unsupported action is passed (".concat(t,")."));if(Array.isArray(e)){var r=(0,m.arrayFilter)(e,(function(e){return e.row<0})),i=r.length>0;(0,m.arrayEach)(r,(function(e){var r,o=e.row,a=e.col,s=null!==(r=n.headerStateManager.getHeaderSettings(o,a))&&void 0!==r?r:{},u=s.collapsible,l=s.isCollapsed;if(!u||l&&"collapse"===t||!l&&"expand"===t)return i=!1,!1}));var a=[],s=[];i&&(0,m.arrayEach)(r,(function(e){var r=e.row,i=e.col,u=n.headerStateManager.triggerNodeModification(t,r,i),l=u.colspanCompensation,c=u.affectedColumns,f=u.rollbackModification;l>0&&(s.push.apply(s,(0,o.default)(c)),a.push(f))}));var u=this.getCollapsedColumns(),l=[];"collapse"===t?l=(0,m.arrayUnique)([].concat((0,o.default)(u),s)):"expand"===t&&(l=(0,m.arrayFilter)(u,(function(e){return!s.includes(e)})));var c=S.get(t);if(!1!==this.hot.runHooks(c.beforeHook,u,l,i)){this.hot.batchExecution((function(){(0,m.arrayEach)(s,(function(e){(0,h.default)(n,A).setValueAtIndex(n.hot.toPhysicalColumn(e),c.hideColumn)}))}),!0);var f=this.getCollapsedColumns().length!==u.length;this.hot.runHooks(c.afterHook,u,l,i,f),this.hot.render(),this.hot.view.adjustElementsSize(!0)}else(0,m.arrayEach)(a,(function(e){e()}))}}},{key:"getCollapsedColumns",value:function(){return(0,h.default)(this,A).getHiddenIndexes()}},{key:"generateIndicator",value:function(e,t){var n=this.hot.rootDocument.createElement("div"),r=this.headerStateManager.getHeaderSettings(e,t);return(0,E.addClass)(n,"collapsibleIndicator"),r.isCollapsed?((0,E.addClass)(n,"collapsed"),(0,E.fastInnerText)(n,"+")):((0,E.addClass)(n,"expanded"),(0,E.fastInnerText)(n,"-")),n}},{key:"onAfterGetColHeader",value:function(e,t){var n,r=t.parentNode,o=r.parentNode,i=-1*o.childNodes.length+Array.prototype.indexOf.call(o.childNodes,r),a=null!==(n=this.headerStateManager.getHeaderSettings(i,e))&&void 0!==n?n:{},s=a.collapsible,u=a.origColspan;if(s&&u>1&&e>=this.hot.getSettings().fixedColumnsStart){var l=this.generateIndicator(i,e);t.querySelector("div:first-child").appendChild(l)}}},{key:"onBeforeOnCellMouseDown",value:function(e,t){(0,E.hasClass)(e.target,"collapsibleIndicator")&&((0,E.hasClass)(e.target,"expanded")?(this.eventManager.fireEvent(e.target,"mouseup"),this.toggleCollapsibleSection([t],"collapse")):(0,E.hasClass)(e.target,"collapsed")&&(this.eventManager.fireEvent(e.target,"mouseup"),this.toggleCollapsibleSection([t],"expand")),(0,T.stopImmediatePropagation)(e))}},{key:"onInit",value:function(){this.updatePlugin()}},{key:"onAfterLoadData",value:function(e,t){t||this.updatePlugin()}},{key:"destroy",value:function(){(0,p.default)(this,A,null),(0,u.default)((0,f.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return R}},{key:"PLUGIN_PRIORITY",get:function(){return 290}},{key:"PLUGIN_DEPS",get:function(){return["plugin:NestedHeaders"]}},{key:"SETTING_KEYS",get:function(){return[R].concat(O)}}]),n}(y.BasePlugin);t.CollapsibleColumns=N},function(e,t,n){"use strict";n(7),n(53),n(8),n(40),n(19),n(26),n(83);var r=n(1);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ColumnSorting=void 0;var o=r(n(44)),i=r(n(43)),a=r(n(117));n(73),n(13),n(0),n(67),n(52),n(18),n(27),n(87),n(3),n(33),n(2),n(4);var s=r(n(5)),u=r(n(6)),l=r(n(31)),c=r(n(15)),f=r(n(16)),d=r(n(14)),h=n(23),p=n(32),y=n(17),m=n(68),g=n(20),v=n(50),E=n(82),b=r(n(74)),T=n(911),C=n(312),w=n(912),R=n(913),O=n(127),S=["column"],A=["column"];function N(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 _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(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,f.default)(this,n)}}t.PLUGIN_KEY="columnSorting";t.PLUGIN_PRIORITY=50;(0,O.registerRootComparator)("columnSorting",R.rootComparator),b.default.getSingleton().register("beforeColumnSort"),b.default.getSingleton().register("afterColumnSort");var M=function(e){(0,c.default)(n,e);var t=k(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,u.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings()[this.pluginKey]}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.columnStatesManager=new T.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(){return e.onBeforeOnCellMouseDown.apply(e,arguments)})),this.addHook("afterOnCellMouseDown",(function(t,n){return e.onAfterOnCellMouseDown(t,n)})),this.addHook("afterInit",(function(){return e.loadOrSortBySettings()})),this.addHook("afterLoadData",(function(){return e.onAfterLoadData.apply(e,arguments)})),this.hot.view&&this.loadOrSortBySettings(),(0,l.default)((0,d.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){var e=this,t=function(t,n){var r=(0,C.getHeaderSpanElement)(n);!1!==(0,C.isFirstLevelColumnHeader)(t,n)&&null!==r&&e.updateHeaderClasses(r)};this.hot.addHook("afterGetColHeader",t),this.hot.addHookOnce("afterViewRender",(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,l.default)((0,d.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,p.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,C.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,g.arrayMap)(e,(function(e){var n=e.column,r=(0,a.default)(e,S);return _({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,p.isDefined)(n)&&Array.isArray(n.initialConfig)&&(n.initialConfig=(0,g.arrayMap)(n.initialConfig,(function(t){var n=t.column,r=(0,a.default)(t,A);return _({column:e.hot.toVisualColumn(n)},r)}))),n}},{key:"getColumnNextConfig",value:function(e){var t=this.columnStatesManager.getSortOrderOfColumn(e);if((0,p.isDefined)(t)){var n=(0,C.getNextSortOrder)(t);return(0,p.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,C.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,p.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,p.isDefined)(a)?i.concat(a):i}},{key:"getPluginColumnConfig",value:function(e){if((0,y.isObject)(e)){var t=e[this.pluginKey];if((0,y.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,m.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,g.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,g.arrayMap)(n,(function(e){return e[0]}));(0,O.sort)(n,this.pluginKey,(0,g.arrayMap)(e,(function(e){return e.sortOrder})),(0,g.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 u=(0,g.arrayMap)(n,(function(e){return e[0]})),l=new Map((0,g.arrayMap)(a,(function(e,t){return[e,u[t]]}))),c=(0,g.arrayMap)(this.hot.rowIndexMapper.getIndexesSequence(),(function(e){return l.has(e)?l.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,y.isObject)(e))this.sortBySettings(e);else{var t=this.hot.getSettings()[this.pluginKey];this.sortBySettings(t)}}},{key:"sortBySettings",value:function(e){if((0,y.isObject)(e)){this.columnStatesManager.updateAllColumnsProperties(e);var t=e.initialConfig;(Array.isArray(t)||(0,y.isObject)(t))&&this.sort(t)}else this.hot.render()}},{key:"onAfterGetColHeader",value:function(e,t){var n=(0,C.getHeaderSpanElement)(t);if(!1!==(0,C.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,h.removeClass)(e,(0,w.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,h.addClass)(e,w.getClassesToAdd.apply(void 0,n))}}},{key:"onUpdateSettings",value:function(e){(0,l.default)((0,d.default)(n.prototype),"onUpdateSettings",this).call(this),null!==this.columnMetaCache&&this.columnMetaCache.init(this.hot.columnIndexMapper.getNumberOfIndexes()),(0,p.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,C.wasHeaderClickedProperly)(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)&&this.hot.getShortcutManager().isCtrlPressed()&&(r.column=!0)}},{key:"onAfterOnCellMouseDown",value:function(e,t){!1!==(0,C.wasHeaderClickedProperly)(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)&&(this.hot.getShortcutManager().isCtrlPressed()&&(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,l.default)((0,d.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"columnSorting"}},{key:"PLUGIN_PRIORITY",get:function(){return 50}}]),n}(v.BasePlugin);t.ColumnSorting=M},function(e,t,n){"use strict";n(53),n(8),n(40),n(0),n(19),n(26),n(83);var r=n(1);t.__esModule=!0,t.ColumnStatesManager=void 0,n(42),n(191),n(37);var o=r(n(43)),i=r(n(34)),a=r(n(5)),s=r(n(6)),u=n(17),l=n(82),c=n(32);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 d=["sortEmptyCells","indicator","headerAction","compareFunctionFactory"],h=function(){function e(t,n){(0,a.default)(this,e),this.hot=t,this.sortingStates=new l.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,u.isObject)(e)&&(0,u.objectEach)(e,(function(e,n){d.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,u.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?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}({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=h},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(3),n(33),n(0),n(2),n(4),n(18),n(22);var r=n(32),o=n(312),i=new Map([[o.ASC_SORT_STATE,"ascending"],[o.DESC_SORT_STATE,"descending"]])},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.rootComparator=function(e,t){return function(n,r){var a,s,u,l,c,f,d=(0,o.default)(n).slice(1),h=(0,o.default)(r).slice(1);return s=e[a=0],u=t[a],l=d[a],c=h[a],((f=u.columnSorting).compareFunctionFactory?f.compareFunctionFactory:(0,i.getCompareFunctionFactory)(u.type))(s,u,f)(l,c)}},n(13);var o=r(n(621)),i=n(127)},function(e,t,n){"use strict";t.__esModule=!0,t.COLUMN_DATA_TYPE=void 0,t.compareFunctionFactory=function(e,t,n){return function(t,i){var a=parseFloat(t),s=parseFloat(i),u=n.sortEmptyCells;if(a===s||isNaN(a)&&isNaN(s))return o.DO_NOT_SWAP;if(u){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}};var r=n(32),o=n(127);t.COLUMN_DATA_TYPE="numeric"},function(e,t,n){"use strict";t.__esModule=!0,t.COLUMN_DATA_TYPE=void 0,t.compareFunctionFactory=function(e,t,n){var a=t.checkedTemplate,s=t.uncheckedTemplate,u=n.sortEmptyCells;return function(l,c){var f=(0,i.isEmpty)(l),d=(0,i.isEmpty)(c),h=f?s:l,p=d?s:c,y=h===s||h===a,m=p===s||p===a;if(!1===u){if(f&&!1===d)return r.FIRST_AFTER_SECOND;if(!1===f&&d)return r.FIRST_BEFORE_SECOND}return!1===y&&m?"asc"===e?r.FIRST_BEFORE_SECOND:r.FIRST_AFTER_SECOND:y&&!1===m?"asc"===e?r.FIRST_AFTER_SECOND:r.FIRST_BEFORE_SECOND:!1===y&&!1===m?(0,o.compareFunctionFactory)(e,t,n)(l,c):h===s&&p===a?"asc"===e?r.FIRST_BEFORE_SECOND:r.FIRST_AFTER_SECOND:h===a&&p===s?"asc"===e?r.FIRST_AFTER_SECOND:r.FIRST_BEFORE_SECOND:r.DO_NOT_SWAP}};var r=n(127),o=n(623),i=n(32);t.COLUMN_DATA_TYPE="checkbox"},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.COLUMN_DATA_TYPE=void 0,t.compareFunctionFactory=function(e,t,n){return function(r,s){var u=n.sortEmptyCells;if(r===s)return a.DO_NOT_SWAP;if((0,i.isEmpty)(r))return(0,i.isEmpty)(s)?a.DO_NOT_SWAP:u&&"asc"===e?a.FIRST_BEFORE_SECOND:a.FIRST_AFTER_SECOND;if((0,i.isEmpty)(s))return u&&"asc"===e?a.FIRST_AFTER_SECOND:a.FIRST_BEFORE_SECOND;var l=t.dateFormat,c=(0,o.default)(r,l),f=(0,o.default)(s,l);return c.isValid()?f.isValid()?f.isAfter(c)?"asc"===e?a.FIRST_BEFORE_SECOND:a.FIRST_AFTER_SECOND:f.isBefore(c)?"asc"===e?a.FIRST_AFTER_SECOND:a.FIRST_BEFORE_SECOND:a.DO_NOT_SWAP:a.FIRST_BEFORE_SECOND:a.FIRST_AFTER_SECOND}};var o=r(n(102)),i=n(32),a=n(127);t.COLUMN_DATA_TYPE="date"},function(e,t,n){"use strict";n(73);var r=n(1);t.__esModule=!0,t.FIRST_BEFORE_SECOND=t.FIRST_AFTER_SECOND=t.DO_NOT_SWAP=void 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))};var o=r(n(918)),i=n(622);t.DO_NOT_SWAP=0;t.FIRST_BEFORE_SECOND=-1;t.FIRST_AFTER_SECOND=1},function(e,t,n){"use strict";var r=n(1);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(0),n(66);var o=r(n(919)),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,u=r-n,l=i-r,c=Math.max(u,l),f=i-n,d=0;d<c;d+=1)d<u&&a.push(e[n+d]),d<l&&s.push(e[r+d]);for(var h=0;h<f;)a.first&&s.first?t(a.first.data,s.first.data)>0?e[n+h]=s.shift().data:e[n+h]=a.shift().data:a.first?e[n+h]=a.shift().data:e[n+h]=s.shift().data,h+=1;return e}},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=t.NodeStructure=void 0;var o=r(n(6)),i=r(n(5)),a=(0,o.default)((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.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ColumnSummary=void 0;var r=n(921);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ColumnSummary=r.ColumnSummary},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ColumnSummary=void 0;var o=r(n(79));n(18),n(12),n(61),n(35),n(63);var i,a=r(n(5)),s=r(n(6)),u=r(n(31)),l=r(n(15)),c=r(n(16)),f=r(n(14)),d=n(50),h=n(17),p=r(n(922)),y=n(80);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,f.default)(e);if(t){var o=(0,f.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}t.PLUGIN_KEY="columnSummary";t.PLUGIN_PRIORITY=220;var g=function(e){(0,l.default)(n,e);var t=m(n);function n(e){var r;return(0,a.default)(this,n),(r=t.call(this,e)).endpoints=null,r}return(0,s.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().columnSummary}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.settings=this.hot.getSettings().columnSummary,this.endpoints=new p.default(this,this.settings),this.addHook("afterInit",(function(){return e.onAfterInit.apply(e,arguments)})),this.addHook("afterChange",(function(){return e.onAfterChange.apply(e,arguments)})),this.addHook("beforeCreateRow",(function(t,n,r){return e.endpoints.resetSetupBeforeStructureAlteration("insert_row",t,n,null,r)})),this.addHook("beforeCreateCol",(function(t,n,r){return e.endpoints.resetSetupBeforeStructureAlteration("insert_col",t,n,null,r)})),this.addHook("beforeRemoveRow",(function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.endpoints).resetSetupBeforeStructureAlteration.apply(t,["remove_row"].concat(r))})),this.addHook("beforeRemoveCol",(function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.endpoints).resetSetupBeforeStructureAlteration.apply(t,["remove_col"].concat(r))})),this.addHook("afterCreateRow",(function(t,n,r){return e.endpoints.resetSetupAfterStructureAlteration("insert_row",t,n,null,r)})),this.addHook("afterCreateCol",(function(t,n,r){return e.endpoints.resetSetupAfterStructureAlteration("insert_col",t,n,null,r)})),this.addHook("afterRemoveRow",(function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.endpoints).resetSetupAfterStructureAlteration.apply(t,["remove_row"].concat(r))})),this.addHook("afterRemoveCol",(function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.endpoints).resetSetupAfterStructureAlteration.apply(t,["remove_col"].concat(r))})),this.addHook("afterRowMove",(function(){return e.onAfterRowMove.apply(e,arguments)})),(0,u.default)((0,f.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.endpoints=null,this.settings=null,this.currentEndpoint=null}},{key:"calculate",value:function(e){switch(e.type.toLowerCase()){case"sum":e.result=this.calculateSum(e);break;case"min":case"max":e.result=this.calculateMinMax(e,e.type);break;case"count":e.result=this.countEntries(e);break;case"average":e.result=this.calculateAverage(e);break;case"custom":e.result=e.customFunction.call(this,e)}}},{key:"calculateSum",value:function(e){var t=this,n=0;return(0,h.objectEach)(e.ranges,(function(r){n+=t.getPartialSum(r,e.sourceColumn)})),n}},{key:"getPartialSum",value:function(e,t){var n=0,r=e[1]||e[0],o=null,i=0;do{o=this.getCellValue(r,t)||0;var a=("".concat(o).split(".")[1]||[]).length||1;a>i&&(i=a),n+=o||0,r-=1}while(r>=e[0]);return Math.round(n*Math.pow(10,i))/Math.pow(10,i)}},{key:"calculateMinMax",value:function(e,t){var n=this,r=null;return(0,h.objectEach)(e.ranges,(function(o){var i=n.getPartialMinMax(o,e.sourceColumn,t);if(null===r&&null!==i&&(r=i),null!==i)switch(t){case"min":r=Math.min(r,i);break;case"max":r=Math.max(r,i)}})),null===r?"Not enough data":r}},{key:"getPartialMinMax",value:function(e,t,n){var r,o=null,i=e[1]||e[0];do{if(r=this.getCellValue(i,t)||null,null===o)o=r;else if(null!==r)switch(n){case"min":o=Math.min(o,r);break;case"max":o=Math.max(o,r)}i-=1}while(i>=e[0]);return o}},{key:"countEmpty",value:function(e,t){var n=0,r=e[1]||e[0];do{this.getCellValue(r,t)||(n+=1),r-=1}while(r>=e[0]);return n}},{key:"countEntries",value:function(e){var t=this,n=0,r=e.ranges;return(0,h.objectEach)(r,(function(r){var o=void 0===r[1]?1:r[1]-r[0]+1,i=t.countEmpty(r,e.sourceColumn);n+=o,n-=i})),n}},{key:"calculateAverage",value:function(e){return this.calculateSum(e)/this.countEntries(e)}},{key:"getCellValue",value:function(e,t){var n=this.hot.toVisualRow(e),r=this.hot.toVisualColumn(t),a=this.hot.getSourceDataAtCell(e,t),s="";if(null!==n&&null!==r&&(s=this.hot.getCellMeta(n,r).className||""),s.indexOf("columnSummaryResult")>-1)return null;if(this.endpoints.currentEndpoint.forceNumeric&&("string"==typeof a&&(a=a.replace(/,/,".")),a=parseFloat(a)),isNaN(a)&&!this.endpoints.currentEndpoint.suppressDataTypeErrors)throw new Error((0,y.toSingleLine)(i||(i=(0,o.default)(["ColumnSummary plugin: cell at (",", ",") is not in a \n numeric format. Cannot do the calculation."],["ColumnSummary plugin: cell at (",", ",") is not in a\\x20\n numeric format. Cannot do the calculation."])),e,t));return a}},{key:"onAfterInit",value:function(){this.endpoints.endpoints=this.endpoints.parseSettings(),this.endpoints.refreshAllEndpoints(!0)}},{key:"onAfterChange",value:function(e,t){e&&"ColumnSummary.reset"!==t&&"ColumnSummary.set"!==t&&"loadData"!==t&&this.endpoints.refreshChangedEndpoints(e)}},{key:"onAfterRowMove",value:function(e,t){this.endpoints.resetSetupBeforeStructureAlteration("move_row",e[0],e.length,e,this.pluginName),this.endpoints.resetSetupAfterStructureAlteration("move_row",t,e.length,e,this.pluginName)}}],[{key:"PLUGIN_KEY",get:function(){return"columnSummary"}},{key:"PLUGIN_PRIORITY",get:function(){return 220}}]),n}(d.BasePlugin);t.ColumnSummary=g},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0,n(35),n(0),n(286);var o=r(n(5)),i=r(n(6)),a=n(20),s=n(88),u=function(){function e(t,n){(0,o.default)(this,e),this.plugin=t,this.hot=this.plugin.hot,this.endpoints=[],this.settings=n,this.settingsType="array",this.currentEndpoint=null,this.cellsToSetCache=[]}return(0,i.default)(e,[{key:"getEndpoint",value:function(e){return"function"===this.settingsType?this.fillMissingEndpointData(this.settings)[e]:this.endpoints[e]}},{key:"getAllEndpoints",value:function(){return"function"===this.settingsType?this.fillMissingEndpointData(this.settings):this.endpoints}},{key:"fillMissingEndpointData",value:function(e){return this.parseSettings(e.call(this))}},{key:"parseSettings",value:function(e){var t=this,n=[],r=e;if(r||"function"!=typeof this.settings)return r||(r=this.settings),(0,a.arrayEach)(r,(function(e){var r={};t.assignSetting(e,r,"ranges",[[0,t.hot.countRows()-1]]),t.assignSetting(e,r,"reversedRowCoords",!1),t.assignSetting(e,r,"destinationRow",new Error("\n You must provide a destination row for the Column Summary plugin in order to work properly!\n ")),t.assignSetting(e,r,"destinationColumn",new Error("\n You must provide a destination column for the Column Summary plugin in order to work properly!\n ")),t.assignSetting(e,r,"sourceColumn",e.destinationColumn),t.assignSetting(e,r,"type","sum"),t.assignSetting(e,r,"forceNumeric",!1),t.assignSetting(e,r,"suppressDataTypeErrors",!0),t.assignSetting(e,r,"suppressDataTypeErrors",!0),t.assignSetting(e,r,"customFunction",null),t.assignSetting(e,r,"readOnly",!0),t.assignSetting(e,r,"roundFloat",!1),n.push(r)})),n;this.settingsType="function"}},{key:"assignSetting",value:function(e,t,n,r){if("ranges"!==n||void 0!==e[n]){if("ranges"!==n||0!==e[n].length)if(void 0===e[n]){if(r instanceof Error)throw r;t[n]=r}else"destinationRow"===n&&t.reversedRowCoords?t[n]=this.hot.countRows()-e[n]-1:t[n]=e[n]}else t[n]=r}},{key:"resetSetupBeforeStructureAlteration",value:function(e,t,n){if("function"===this.settingsType){var r=e.indexOf("row")>-1?"row":"col",o=this.getAllEndpoints();(0,a.arrayEach)(o,(function(o){"row"===r&&o.destinationRow>=t&&("insert_row"===e?o.alterRowOffset=n:"remove_row"===e&&(o.alterRowOffset=-1*n)),"col"===r&&o.destinationColumn>=t&&("insert_col"===e?o.alterColumnOffset=n:"remove_col"===e&&(o.alterColumnOffset=-1*n))})),this.resetAllEndpoints(o,!1)}}},{key:"resetSetupAfterStructureAlteration",value:function(e,t,n,r,o){var i=this,s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if("function"!==this.settingsType){var u=e.indexOf("row")>-1?"row":"col",l=e.indexOf("remove")>-1?-1:1,c=this.getAllEndpoints(),f=0===e.indexOf("move_row"),d=t;(0,a.arrayEach)(c,(function(e){"row"===u&&e.destinationRow>=d&&(e.alterRowOffset=l*n),"col"===u&&e.destinationColumn>=d&&(e.alterColumnOffset=l*n)})),this.resetAllEndpoints(c,!f),f?(0,a.arrayEach)(c,(function(e){i.extendEndpointRanges(e,d,r[0],r.length),i.recreatePhysicalRanges(e),i.clearOffsetInformation(e)})):(0,a.arrayEach)(c,(function(e){i.shiftEndpointCoordinates(e,d)})),s&&this.refreshAllEndpoints()}else{var h=function e(){return i.hot.removeHook("beforeViewRender",e),i.refreshAllEndpoints()};this.hot.addHookOnce("beforeViewRender",h)}}},{key:"clearOffsetInformation",value:function(e){e.alterRowOffset=void 0,e.alterColumnOffset=void 0}},{key:"extendEndpointRanges",value:function(e,t,n,r){(0,a.arrayEach)(e.ranges,(function(e){e[1]&&(t>=e[0]&&t<=e[1]?n>e[1]?e[1]+=r:n<e[0]&&(e[0]-=r):n>=e[0]&&n<=e[1]&&(e[1]-=r,t<=e[0]&&(e[0]+=1,e[1]+=1)))}))}},{key:"recreatePhysicalRanges",value:function(e){var t=this,n=e.ranges,r=[],o=[];(0,a.arrayEach)(n,(function(e){var n=[];if(e[1])for(var r=e[0];r<=e[1];r++)n.push(t.hot.toPhysicalRow(r));else n.push(t.hot.toPhysicalRow(e[0]));o.push(n)})),(0,a.arrayEach)(o,(function(e){var t=[];(0,a.arrayEach)(e,(function(n,o){0===o?t.push(n):e[o]!==e[o-1]+1&&(t.push(e[o-1]),r.push(t),(t=[]).push(n)),o===e.length-1&&(t.push(n),r.push(t))}))})),e.ranges=r}},{key:"shiftEndpointCoordinates",value:function(e,t){e.alterRowOffset&&0!==e.alterRowOffset?(e.destinationRow+=e.alterRowOffset||0,(0,a.arrayEach)(e.ranges,(function(n){(0,a.arrayEach)(n,(function(r,o){r>=t&&(n[o]+=e.alterRowOffset||0)}))}))):e.alterColumnOffset&&0!==e.alterColumnOffset&&(e.destinationColumn+=e.alterColumnOffset||0,e.sourceColumn+=e.alterColumnOffset||0)}},{key:"resetAllEndpoints",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getAllEndpoints(),n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t.some((function(t){var n=t.alterRowOffset||0,r=t.alterColumnOffset||0;return t.destinationRow+n>=e.hot.countRows()||t.destinationColumn+r>=e.hot.countCols()}));r||(this.cellsToSetCache=[],(0,a.arrayEach)(t,(function(t){e.resetEndpointValue(t,n)})),this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[])}},{key:"refreshAllEndpoints",value:function(){var e=this;this.cellsToSetCache=[],(0,a.arrayEach)(this.getAllEndpoints(),(function(t){e.currentEndpoint=t,e.plugin.calculate(t),e.setEndpointValue(t,"init")})),this.currentEndpoint=null,this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}},{key:"refreshChangedEndpoints",value:function(e){var t=this,n=[];this.cellsToSetCache=[],(0,a.arrayEach)(e,(function(e,r,o){"".concat(e[2]||"")!=="".concat(e[3])&&(0,a.arrayEach)(t.getAllEndpoints(),(function(e,i){t.hot.propToCol(o[r][1])===e.sourceColumn&&-1===n.indexOf(i)&&n.push(i)}))})),(0,a.arrayEach)(n,(function(e){t.refreshEndpoint(t.getEndpoint(e))})),this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}},{key:"refreshEndpoint",value:function(e){this.currentEndpoint=e,this.plugin.calculate(e),this.setEndpointValue(e),this.currentEndpoint=null}},{key:"resetEndpointValue",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.alterRowOffset||0,r=e.alterColumnOffset||0,o=[this.hot.toVisualRow(e.destinationRow),this.hot.toVisualColumn(e.destinationColumn)],i=o[0],a=o[1];if(null!==a&&null!==i){var s=this.hot.getCellMeta(i,a);s.readOnly=!1,s.className=""}this.cellsToSetCache.push([this.hot.toVisualRow(e.destinationRow+(t?n:0)),this.hot.toVisualColumn(e.destinationColumn+(t?r:0)),""])}},{key:"setEndpointValue",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1*e.alterRowOffset||0,o=-1*e.alterColumnOffset||0,i=this.hot.toVisualRow(e.destinationRow);if(e.destinationRow>=this.hot.countRows()||e.destinationColumn>=this.hot.countCols())this.throwOutOfBoundsWarning();else{var a=this.hot.toVisualRow(e.destinationRow+r);if(null!==a){var s=this.hot.getCellMeta(a,e.destinationColumn+o);"init"!==t&&s.readOnly===e.readOnly||(s.readOnly=e.readOnly,s.className="columnSummaryResult")}e.roundFloat&&!isNaN(e.result)&&(e.result=e.result.toFixed(e.roundFloat)),n?this.hot.setDataAtCell(i,e.destinationColumn,e.result,"ColumnSummary.set"):this.cellsToSetCache.push([i,e.destinationColumn,e.result]),e.alterRowOffset=void 0,e.alterColumnOffset=void 0}}},{key:"throwOutOfBoundsWarning",value:function(){(0,s.warn)("One of the Column Summary plugins' destination points you provided is beyond the table boundaries!")}}]),e}();t.default=u},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.Comments=void 0;var r=n(924);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.Comments=r.Comments},function(e,t,n){"use strict";n(7),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.Comments=void 0;var i=r(n(43)),a=r(n(5)),s=r(n(6)),u=r(n(46)),l=r(n(31)),c=r(n(15)),f=r(n(16)),d=r(n(14));n(3),n(0),n(2),n(11),n(4);var h=n(23),p=n(17),y=r(n(59)),m=n(50),g=r(n(925)),v=n(105),E=r(n(926)),b=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=T(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30));function T(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(T=function(e){return e?n:t})(e)}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,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,f.default)(this,n)}}n(927);t.PLUGIN_KEY="comments";t.PLUGIN_PRIORITY=60;var w=new WeakMap,R=function(e){(0,c.default)(n,e);var t=C(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.preventEditorAutoSwitch=!1,w.set((0,u.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 g.default(this.hot.rootDocument,this.hot.isRtl())),this.eventManager||(this.eventManager=new y.default(this)),this.displaySwitch||(this.displaySwitch=new E.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.hide()})),this.displaySwitch.addLocalHook("hide",(function(){return e.hide()})),this.displaySwitch.addLocalHook("show",(function(t,n){return e.showAtCell(t,n)})),this.registerListeners(),(0,l.default)((0,d.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,l.default)((0,d.default)(n.prototype),"updatePlugin",this).call(this),this.displaySwitch.updateDelay(this.getDisplayDelaySetting())}},{key:"disablePlugin",value:function(){(0,l.default)((0,d.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,h.closest)(e.target,"TD","TBODY");return!!(t&&(0,h.hasClass)(t,"htCommentCell")&&(0,h.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:this.hot._createCellCoords(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"),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:this.hot._createCellCoords(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.editor.setValue(r.comment?r.comment.value:""),this.editor.show(),this.refreshEditor(!0),!0}},{key:"showAtCell",value:function(e,t){return this.setRange({from:this.hot._createCellCoords(e,t)}),this.show()}},{key:"hide",value:function(){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,u=a.col,l=o.getRenderableFromVisualIndex(s),c=i.getRenderableFromVisualIndex(u),f=null===l;null===l&&(l=o.getRenderableFromVisualIndex(o.getFirstNotHiddenIndex(s,-1))),null===c&&(c=i.getRenderableFromVisualIndex(i.getFirstNotHiddenIndex(u,-1)));var d=null===l,p=null===c;l=null!==(e=l)&&void 0!==e?e:0,c=null!==(t=c)&&void 0!==t?t:0;var y=this.hot,m=y.rootWindow,g=y.view._wt,v=g.wtTable,E=g.wtOverlays,b=g.wtViewport,T=E.scrollableElement,C=v.getCell({row:l,col:c}),w=(0,h.offset)(C),R=p?0:v.getStretchedColumnWidth(c),O=f&&!d?(0,h.outerHeight)(C):0,S=w.top,A=w.left;b.hasVerticalScroll()&&T!==m&&(S-=E.topOverlay.getScrollPosition()),b.hasHorizontalScroll()&&T!==m&&(A-=E.inlineStartOverlay.getScrollPosition()*(this.hot.isRtl()?-1:1));var N=S+O,_=A;this.hot.isRtl()?_-=this.editor.getSize().width:_+=R;var k=this.getCommentMeta(s,u,"style"),M=this.getCommentMeta(s,u,"readOnly");k?this.editor.setSize(k.width,k.height):this.editor.resetSize(),this.editor.setReadOnlyState(M),this.editor.setPosition(_,N)}}},{key:"checkSelectionCommentsConsistency",value:function(){var e=this.hot.getSelectedRangeLast();if(!e)return!1;var t=!1,n=e.getTopStartCorner();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,p.deepClone)(o),(0,p.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.hot.view&&this.hot.view._wt&&!this.preventEditorAutoSwitch&&!this.targetIsCommentTextArea(e)){var t=(0,h.closest)(e.target,"TD","TBODY"),n=null;t&&(n=this.hot.getCoords(t)),(!t||this.range.from&&n&&(this.range.from.row!==n.row||this.range.from.col!==n.col))&&this.hide()}}},{key:"onMouseOver",value:function(e){var t=w.get(this),n=this.hot.rootDocument;if(!(this.preventEditorAutoSwitch||this.editor.isFocused()||(0,h.hasClass)(e.target,"wtBorder")||t.cellBelowCursor===e.target)&&this.editor)if(t.cellBelowCursor=n.elementFromPoint(e.clientX,e.clientY),this.targetIsCellWithComment(e)){var r=this.hot._createCellRange(this.hot.getCoords(e.target));this.displaySwitch.show(r)}else(0,h.isChildOf)(e.target,n)&&!this.targetIsCommentTextArea(e)&&this.displaySwitch.hide()}},{key:"onMouseUp",value:function(){this.preventEditorAutoSwitch=!1}},{key:"onAfterRenderer",value:function(e,t){t.comment&&t.comment.value&&(0,h.addClass)(e,t.commentedCellClassName)}},{key:"onEditorBlur",value:function(){this.setComment()}},{key:"onEditorMouseDown",value:function(e){w.get(this).tempEditorDimensions={width:(0,h.outerWidth)(e.target),height:(0,h.outerHeight)(e.target)}}},{key:"onEditorMouseUp",value:function(e){var t=w.get(this),n=(0,h.outerWidth)(e.target),r=(0,h.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.hot.getSelectedRangeLast();this.preventEditorAutoSwitch=!0,this.displaySwitch.cancelHiding(),this.setRange({from:e.highlight}),this.show(),this.hot.deselectCell(),this.editor.focus()}},{key:"onContextMenuRemoveComment",value:function(){var e=this,t=this.hot.getSelectedRangeLast();this.preventEditorAutoSwitch=!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.preventEditorAutoSwitch=!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(b.CONTEXTMENU_ITEMS_EDIT_COMMENT):t.hot.getTranslatedPhrase(b.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(b.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(b.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT);return(0,v.checkSelectionConsistency)(this.getSelectedRangeLast(),(function(t,n){var r=e.getCellMeta(t,n).comment;if(r&&(r=r.readOnly),r)return!0}))&&(t=(0,v.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,p.isObject)(e))return e.displayDelay}},{key:"destroy",value:function(){this.editor&&this.editor.destroy(),this.displaySwitch&&this.displaySwitch.destroy(),(0,l.default)((0,d.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=R},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6)),a=n(23),s=function(){function e(t,n){(0,o.default)(this,e),this.rootDocument=t,this.isRtl=n,this.container=null,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:"getSize",value:function(){return{width:(0,a.outerWidth)(this.editor),height:(0,a.outerHeight)(this.editor)}}},{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.hidden||(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 t.style.display="none",this.container=this.rootDocument.createElement("div"),this.container.setAttribute("dir",this.isRtl?"rtl":"ltr"),(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(1);t.__esModule=!0,t.default=void 0,n(76);var o=r(n(5)),i=r(n(6)),a=n(68),s=n(17),u=r(n(92)),l=function(){function e(t){(0,o.default)(this,e),this.wasLastActionShow=!0,this.showDebounced=null,this.hidingTimer=null,this.updateDelay(t)}return(0,i.default)(e,[{key:"hide",value:function(){var e=this;this.wasLastActionShow=!1,this.hidingTimer=setTimeout((function(){!1===e.wasLastActionShow&&e.runLocalHooks("hide")}),250)}},{key:"show",value:function(e){this.wasLastActionShow=!0,this.showDebounced(e)}},{key:"cancelHiding",value:function(){this.wasLastActionShow=!0,clearTimeout(this.hidingTimer),this.hidingTimer=null}},{key:"updateDelay",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250;this.showDebounced=(0,a.debounce)((function(t){e.wasLastActionShow&&e.runLocalHooks("show",t.from.row,t.from.col)}),t)}},{key:"destroy",value:function(){this.clearLocalHooks()}}]),e}();(0,s.mixin)(l,u.default);var c=l;t.default=c},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ContextMenu=void 0;var r=n(929);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ContextMenu=r.ContextMenu},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ContextMenu=void 0,n(18);var o=r(n(5)),i=r(n(6)),a=r(n(46)),s=r(n(31)),u=r(n(15)),l=r(n(16)),c=r(n(14)),f=n(50),d=r(n(74)),h=n(20),p=r(n(624)),y=r(n(59)),m=r(n(625)),g=r(n(314)),v=n(23),E=n(118);function b(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,l.default)(this,n)}}n(943);t.PLUGIN_KEY="contextMenu";t.PLUGIN_PRIORITY=70,d.default.getSingleton().register("afterContextMenuDefaultOptions"),d.default.getSingleton().register("beforeContextMenuShow"),d.default.getSingleton().register("afterContextMenuShow"),d.default.getSingleton().register("afterContextMenuHide"),d.default.getSingleton().register("afterContextMenuExecute");var T=function(e){(0,u.default)(n,e);var t=b(n);function n(e){var r;return(0,o.default)(this,n),(r=t.call(this,e)).eventManager=new y.default((0,a.default)(r)),r.commandExecutor=new p.default(r.hot),r.itemsFactory=null,r.menu=null,r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().contextMenu}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var t=this.hot.getSettings().contextMenu;"function"==typeof t.callback&&this.commandExecutor.setCommonCallback(t.callback),this.menu=new g.default(this.hot,{className:"htContextMenu",keepInViewport:!0,container:t.uiContainer||this.hot.rootDocument.body}),this.menu.addLocalHook("beforeOpen",(function(){return e.onMenuBeforeOpen()})),this.menu.addLocalHook("afterOpen",(function(){return e.onMenuAfterOpen()})),this.menu.addLocalHook("afterClose",(function(){return e.onMenuAfterClose()})),this.menu.addLocalHook("executeCommand",(function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.executeCommand).call.apply(t,[e].concat(r))})),this.addHook("afterOnCellContextMenu",(function(t){return e.onAfterOnCellContextMenu(t)})),(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(){this.close(),this.menu&&(this.menu.destroy(),this.menu=null),(0,s.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"open",value:function(e){if(this.menu&&(this.prepareMenuItems(),this.menu.open(),this.menu.isOpened())){var t=0,n=0;if(this.hot.rootDocument!==this.menu.container.ownerDocument){var r=this.hot.rootWindow.frameElement.getBoundingClientRect(),o=r.top,i=r.left;t=o-(0,v.getWindowScrollTop)(e.view),n=i-(0,v.getWindowScrollLeft)(e.view)}else t=-1*(0,v.getWindowScrollTop)(this.menu.hotMenu.rootWindow),n=-1*(0,v.getWindowScrollLeft)(this.menu.hotMenu.rootWindow);this.menu.setPosition({top:parseInt(e.pageY,10)+t,left:parseInt(e.pageX,10)+n})}}},{key:"close",value:function(){this.menu&&(this.menu.close(),this.itemsFactory=null)}},{key:"executeCommand",value:function(e){var t;null===this.itemsFactory&&this.prepareMenuItems();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=this.commandExecutor).execute.apply(t,[e].concat(r))}},{key:"prepareMenuItems",value:function(){var e=this;this.itemsFactory=new m.default(this.hot,n.DEFAULT_ITEMS);var t=this.hot.getSettings().contextMenu,r={items:this.itemsFactory.getItems(t)};this.hot.runHooks("afterContextMenuDefaultOptions",r),this.itemsFactory.setPredefinedItems(r.items);var o=this.itemsFactory.getItems(t);this.hot.runHooks("beforeContextMenuSetItems",o),this.menu.setMenuItems(o),(0,h.arrayEach)(o,(function(t){return e.commandExecutor.registerCommand(t.key,t)}))}},{key:"onAfterOnCellContextMenu",value:function(e){var t=this.hot.getSettings(),n=t.rowHeaders,r=t.colHeaders;var o=e.target;this.close(),(0,v.hasClass)(o,"handsontableInput")||(e.preventDefault(),e.stopPropagation(),(n||r||function(e){return"TD"===e.nodeName||"TD"===e.parentNode.nodeName}(o)||(0,v.hasClass)(o,"current")&&(0,v.hasClass)(o,"wtBorder"))&&this.open(e))}},{key:"onMenuBeforeOpen",value:function(){this.hot.runHooks("beforeContextMenuShow",this)}},{key:"onMenuAfterOpen",value:function(){this.hot.runHooks("afterContextMenuShow",this)}},{key:"onMenuAfterClose",value:function(){this.hot.listen(),this.hot.runHooks("afterContextMenuHide",this)}},{key:"destroy",value:function(){this.close(),this.menu&&this.menu.destroy(),(0,s.default)((0,c.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"contextMenu"}},{key:"PLUGIN_PRIORITY",get:function(){return 70}},{key:"PLUGIN_DEPS",get:function(){return["plugin:AutoColumnSize"]}},{key:"DEFAULT_ITEMS",get:function(){return[E.ROW_ABOVE,E.ROW_BELOW,E.SEPARATOR,E.COLUMN_LEFT,E.COLUMN_RIGHT,E.SEPARATOR,E.REMOVE_ROW,E.REMOVE_COLUMN,E.SEPARATOR,E.UNDO,E.REDO,E.SEPARATOR,E.READ_ONLY,E.SEPARATOR,E.ALIGNMENT]}}]),n}(f.BasePlugin);t.ContextMenu=T,T.SEPARATOR={name:E.SEPARATOR}},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(21);t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:u,name:function(){return this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_ALIGNMENT)},disabled:function(){return 0===this.countRows()||0===this.countCols()||!(this.getSelectedRange()&&!this.selection.isSelectedByCorner())},submenu:{items:[{key:"".concat(u,":left"),name:function(){var e=this,t=this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT);return(0,o.checkSelectionConsistency)(this.getSelectedRange(),(function(t,n){var r=e.getCellMeta(t,n).className;if(r&&-1!==r.indexOf("htLeft"))return!0}))&&(t=(0,o.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,o.getAlignmentClasses)(t,(function(t,n){return e.getCellMeta(t,n).className}));this.runHooks("beforeCellAlignment",n,t,"horizontal","htLeft"),(0,o.align)(t,"horizontal","htLeft",(function(t,n){return e.getCellMeta(t,n)}),(function(t,n,r,o){return e.setCellMeta(t,n,r,o)})),this.render()},disabled:!1},{key:"".concat(u,":center"),name:function(){var e=this,t=this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER);return(0,o.checkSelectionConsistency)(this.getSelectedRange(),(function(t,n){var r=e.getCellMeta(t,n).className;if(r&&-1!==r.indexOf("htCenter"))return!0}))&&(t=(0,o.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,o.getAlignmentClasses)(t,(function(t,n){return e.getCellMeta(t,n).className}));this.runHooks("beforeCellAlignment",n,t,"horizontal","htCenter"),(0,o.align)(t,"horizontal","htCenter",(function(t,n){return e.getCellMeta(t,n)}),(function(t,n,r,o){return e.setCellMeta(t,n,r,o)})),this.render()},disabled:!1},{key:"".concat(u,":right"),name:function(){var e=this,t=this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT);return(0,o.checkSelectionConsistency)(this.getSelectedRange(),(function(t,n){var r=e.getCellMeta(t,n).className;if(r&&-1!==r.indexOf("htRight"))return!0}))&&(t=(0,o.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,o.getAlignmentClasses)(t,(function(t,n){return e.getCellMeta(t,n).className}));this.runHooks("beforeCellAlignment",n,t,"horizontal","htRight"),(0,o.align)(t,"horizontal","htRight",(function(t,n){return e.getCellMeta(t,n)}),(function(t,n,r,o){return e.setCellMeta(t,n,r,o)})),this.render()},disabled:!1},{key:"".concat(u,":justify"),name:function(){var e=this,t=this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY);return(0,o.checkSelectionConsistency)(this.getSelectedRange(),(function(t,n){var r=e.getCellMeta(t,n).className;if(r&&-1!==r.indexOf("htJustify"))return!0}))&&(t=(0,o.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,o.getAlignmentClasses)(t,(function(t,n){return e.getCellMeta(t,n).className}));this.runHooks("beforeCellAlignment",n,t,"horizontal","htJustify"),(0,o.align)(t,"horizontal","htJustify",(function(t,n){return e.getCellMeta(t,n)}),(function(t,n,r,o){return e.setCellMeta(t,n,r,o)})),this.render()},disabled:!1},{name:i.KEY},{key:"".concat(u,":top"),name:function(){var e=this,t=this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_ALIGNMENT_TOP);return(0,o.checkSelectionConsistency)(this.getSelectedRange(),(function(t,n){var r=e.getCellMeta(t,n).className;if(r&&-1!==r.indexOf("htTop"))return!0}))&&(t=(0,o.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,o.getAlignmentClasses)(t,(function(t,n){return e.getCellMeta(t,n).className}));this.runHooks("beforeCellAlignment",n,t,"vertical","htTop"),(0,o.align)(t,"vertical","htTop",(function(t,n){return e.getCellMeta(t,n)}),(function(t,n,r,o){return e.setCellMeta(t,n,r,o)})),this.render()},disabled:!1},{key:"".concat(u,":middle"),name:function(){var e=this,t=this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE);return(0,o.checkSelectionConsistency)(this.getSelectedRange(),(function(t,n){var r=e.getCellMeta(t,n).className;if(r&&-1!==r.indexOf("htMiddle"))return!0}))&&(t=(0,o.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,o.getAlignmentClasses)(t,(function(t,n){return e.getCellMeta(t,n).className}));this.runHooks("beforeCellAlignment",n,t,"vertical","htMiddle"),(0,o.align)(t,"vertical","htMiddle",(function(t,n){return e.getCellMeta(t,n)}),(function(t,n,r,o){return e.setCellMeta(t,n,r,o)})),this.render()},disabled:!1},{key:"".concat(u,":bottom"),name:function(){var e=this,t=this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM);return(0,o.checkSelectionConsistency)(this.getSelectedRange(),(function(t,n){var r=e.getCellMeta(t,n).className;if(r&&-1!==r.indexOf("htBottom"))return!0}))&&(t=(0,o.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,o.getAlignmentClasses)(t,(function(t,n){return e.getCellMeta(t,n).className}));this.runHooks("beforeCellAlignment",n,t,"vertical","htBottom"),(0,o.align)(t,"vertical","htBottom",(function(t,n){return e.getCellMeta(t,n)}),(function(t,n,r,o){return e.setCellMeta(t,n,r,o)})),this.render()},disabled:!1}]}}},n(35);var o=n(105),i=n(313),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(n(30));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}var u="alignment";t.KEY=u},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(21);t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:s,name:function(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_CLEAR_COLUMN)},callback:function(e,t){var n=t[0].start.col,r=t[0].end.col;this.countRows()&&this.populateFromArray(0,n,[[null]],Math.max(t[0].start.row,t[0].end.row),r,"ContextMenu.clearColumn")},disabled:function(){return!(0,o.getValidSelection)(this)||!this.selection.isSelectedByColumnHeader()}}};var o=n(105),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var u=i?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(30));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}var s="clear_column";t.KEY=s},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(21);t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:"col_left",name:function(){return this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_INSERT_LEFT)},callback:function(){var e=this.selection.isSelectedByCorner(),t=this.isRtl()?this.countCols():0;if(!e){var n=this.getSelectedRangeLast();if((0,i.isDefined)(n)){var r=n.getTopLeftCorner().col;t=this.isRtl()?r+1:r}}this.alter("insert_col",t,1,"ContextMenu.columnLeft"),e&&this.selectAll()},disabled:function(){return!this.isColumnModificationAllowed()||(!(0,o.getValidSelection)(this)||(this.selection.isSelectedByCorner()?0===this.countCols():this.selection.isSelectedByRowHeader()||this.countCols()>=this.getSettings().maxCols))},hidden:function(){return!this.getSettings().allowInsertColumn}}};var o=n(105),i=n(32),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(n(30));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}t.KEY="col_left"},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(21);t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:"col_right",name:function(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_INSERT_RIGHT)},callback:function(){var e=this.selection.isSelectedByCorner(),t=this.isRtl()?0:this.countCols();if(!e){var n=this.getSelectedRangeLast();if((0,a.isDefined)(n)){var r=n.getTopRightCorner().col;t=this.isRtl()?r:r+1}}this.alter("insert_col",t,1,"ContextMenu.columnRight"),e&&this.selectAll()},disabled:function(){return!this.isColumnModificationAllowed()||(!(0,o.getValidSelection)(this)||!this.selection.isSelectedByCorner()&&(this.selection.isSelectedByRowHeader()||this.countCols()>=this.getSettings().maxCols))},hidden:function(){return!this.getSettings().allowInsertColumn}}};var o=n(105),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(n(30)),a=n(32);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}t.KEY="col_right"},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(21);t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:u,name:function(){var e=this,t=this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_READ_ONLY);return(0,o.checkSelectionConsistency)(this.getSelectedRange(),(function(t,n){return e.getCellMeta(t,n).readOnly}))&&(t=(0,o.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,o.checkSelectionConsistency)(t,(function(t,n){return e.getCellMeta(t,n).readOnly}));(0,i.arrayEach)(t,(function(t){t.forAll((function(t,r){t>=0&&r>=0&&e.setCellMeta(t,r,"readOnly",!n)}))})),this.render()},disabled:function(){return!!this.selection.isSelectedByCorner()||(0===this.countRows()||0===this.countCols()||(!this.getSelectedRange()||0===this.getSelectedRange().length))}}};var o=n(105),i=n(20),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(n(30));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}var u="make_read_only";t.KEY=u},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(21);t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:"redo",name:function(){return this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_REDO)},callback:function(){this.redo()},hidden:function(){var e=this.getPlugin("undoRedo");return!e||!e.isEnabled()},disabled:function(){return!this.getPlugin("undoRedo").isRedoAvailable()}}};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var u=a?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(30));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}t.KEY="redo"},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:c,name:function(){var e=this.getSelected(),t=0;if(e)if(e.length>1)t=1;else{var n=(0,i.default)(e[0],4);n[1]-n[3]!=0&&(t=1)}return this.getTranslatedPhrase(u.CONTEXTMENU_ITEMS_REMOVE_COLUMN,t)},callback:function(){this.alter("remove_col",(0,s.transformSelectionToColumnDistance)(this.getSelected()),null,"ContextMenu.removeColumn")},disabled:function(){if(!this.isColumnModificationAllowed())return!0;if(!(0,a.getValidSelection)(this))return!0;var e=this.countCols();return this.selection.isSelectedByCorner()?0===e:this.selection.isSelectedByRowHeader()||0===e},hidden:function(){return!this.getSettings().allowRemoveColumn}}};var i=r(n(34)),a=n(105),s=n(235),u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}var c="remove_col";t.KEY=c},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:c,name:function(){var e=this.getSelected(),t=0;if(e)if(e.length>1)t=1;else{var n=(0,i.default)(e[0],3);n[0]-n[2]!=0&&(t=1)}return this.getTranslatedPhrase(u.CONTEXTMENU_ITEMS_REMOVE_ROW,t)},callback:function(){this.alter("remove_row",(0,s.transformSelectionToRowDistance)(this.getSelected()),1,"ContextMenu.removeRow")},disabled:function(){if(!(0,a.getValidSelection)(this))return!0;var e=this.countRows();return this.selection.isSelectedByCorner()?0===e:this.selection.isSelectedByColumnHeader()||0===e},hidden:function(){return!this.getSettings().allowRemoveRow}}};var i=r(n(34)),a=n(105),s=n(235),u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}var c="remove_row";t.KEY=c},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(21);t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:"row_above",name:function(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_ROW_ABOVE)},callback:function(e,t){var n=this.selection.isSelectedByCorner(),r=0;n||(r=t[Math.max(t.length-1,0)].start.row);this.alter("insert_row",r,1,"ContextMenu.rowAbove"),n&&this.selectAll()},disabled:function(){return!(0,o.getValidSelection)(this)||(this.selection.isSelectedByCorner()?0===this.countRows():this.selection.isSelectedByColumnHeader()||this.countRows()>=this.getSettings().maxRows)},hidden:function(){return!this.getSettings().allowInsertRow}}};var o=n(105),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var u=i?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(30));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.KEY="row_above"},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(21);t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:"row_below",name:function(){return this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_ROW_BELOW)},callback:function(e,t){var n=this.selection.isSelectedByCorner(),r=0;if(n)r=this.countRows();else{var o,a=t[Math.max(t.length-1,0)],s=null==a||null===(o=a.end)||void 0===o?void 0:o.row;r=(0,i.isDefined)(s)?s+1:0}this.alter("insert_row",r,1,"ContextMenu.rowBelow"),n&&this.selectAll()},disabled:function(){return!(0,o.getValidSelection)(this)||!this.selection.isSelectedByCorner()&&(this.selection.isSelectedByColumnHeader()||this.countRows()>=this.getSettings().maxRows)},hidden:function(){return!this.getSettings().allowInsertRow}}};var o=n(105),i=n(32),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(n(30));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}t.KEY="row_below"},function(e,t,n){"use strict";t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:"no_items",name:function(){return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_NO_ITEMS)},disabled:!0,isCommand:!1}};var r=n(30);t.KEY="no_items"},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(21);t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:"undo",name:function(){return this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_UNDO)},callback:function(){this.undo()},hidden:function(){var e=this.getPlugin("undoRedo");return!e||!e.isEnabled()},disabled:function(){return!this.getPlugin("undoRedo").isUndoAvailable()}}};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var u=a?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(30));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}t.KEY="undo"},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6)),a=n(23),s=function(){function e(t,n){(0,o.default)(this,e);var r,i,s,u,l,c,f=(0,a.getWindowScrollTop)(n),d=(0,a.getWindowScrollLeft)(n);this.rootWindow=n,this.type=this.getSourceType(t),"literal"===this.type?(r=parseInt(t.top,10),s=parseInt(t.left,10),l=t.height||0,c=t.width||0,i=r,u=s,r+=f,s+=d):"event"===this.type&&(r=parseInt(t.pageY,10),s=parseInt(t.pageX,10),l=t.target.clientHeight,c=t.target.clientWidth,i=r-f,u=s-d),this.top=r,this.topRelative=i,this.left=s,this.leftRelative=u,this.scrollTop=f,this.scrollLeft=d,this.cellHeight=l,this.cellWidth=c}return(0,i.default)(e,[{key:"getSourceType",value:function(e){var t="literal";return e instanceof Event&&(t="event"),t}},{key:"fitsAbove",value:function(e){return this.topRelative>=e.offsetHeight}},{key:"fitsBelow",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.rootWindow.innerHeight;return this.topRelative+e.offsetHeight<=t}},{key:"fitsOnRight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.rootWindow.innerWidth;return this.leftRelative+this.cellWidth+e.offsetWidth<=t}},{key:"fitsOnLeft",value:function(e){return this.leftRelative>=e.offsetWidth}}]),e}();t.default=s},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.CopyPaste=void 0;var r=n(945);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.CopyPaste=r.CopyPaste},function(e,t,n){"use strict";n(7);var r=n(1);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.CopyPaste=void 0;var o=r(n(34)),i=r(n(21)),a=r(n(5)),s=r(n(6)),u=r(n(46)),l=r(n(31)),c=r(n(15)),f=r(n(16)),d=r(n(14));n(3),n(0),n(2),n(11),n(4),n(75),n(35),n(12),n(18);var h=n(50),p=r(n(74)),y=n(596),m=n(20),g=n(47),v=n(91),E=n(23),b=r(n(946)),T=r(n(947)),C=r(n(948)),w=n(950),R=n(296);function O(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,f.default)(this,n)}}n(951),p.default.getSingleton().register("afterCopyLimit"),p.default.getSingleton().register("modifyCopyableRange"),p.default.getSingleton().register("beforeCut"),p.default.getSingleton().register("afterCut"),p.default.getSingleton().register("beforePaste"),p.default.getSingleton().register("afterPaste"),p.default.getSingleton().register("beforeCopy"),p.default.getSingleton().register("afterCopy");var S="copyPaste";t.PLUGIN_KEY=S;t.PLUGIN_PRIORITY=80;var A=["fragmentSelection"],N=new WeakMap,_=['<meta name="generator" content="Handsontable"/>','<style type="text/css">td{white-space:normal}br{mso-data-placement:same-cell}</style>'].join(""),k=function(e){(0,c.default)(n,e);var t=O(n);function n(e){var r;return(0,a.default)(this,n),(r=t.call(this,e)).columnsLimit=1/0,r.copyableRanges=[],r.focusableElement=void 0,r.pasteMode="overwrite",r.rowsLimit=1/0,r.uiContainer=r.hot.rootDocument.body,N.set((0,u.default)(r),{isTriggeredByCopy:!1,isTriggeredByCut:!1,isBeginEditing:!1,isFragmentSelectionEnabled:!1}),r}return(0,s.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings()[S]}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var t=this.hot.getSettings(),r=t[S],o=t.fragmentSelection;N.get(this).isFragmentSelectionEnabled=!!o,"object"===(0,i.default)(r)&&(this.pasteMode=r.pasteMode||this.pasteMode,this.rowsLimit=isNaN(r.rowsLimit)?this.rowsLimit:r.rowsLimit,this.columnsLimit=isNaN(r.columnsLimit)?this.columnsLimit:r.columnsLimit,this.uiContainer=r.uiContainer||this.uiContainer),this.addHook("afterContextMenuDefaultOptions",(function(t){return e.onAfterContextMenuDefaultOptions(t)})),this.addHook("afterOnCellMouseUp",(function(){return e.onAfterOnCellMouseUp()})),this.addHook("afterSelectionEnd",(function(){return e.onAfterSelectionEnd()})),this.addHook("beforeKeyDown",(function(){return e.onBeforeKeyDown()})),this.focusableElement=(0,w.createElement)(this.uiContainer),this.focusableElement.addLocalHook("copy",(function(t){return e.onCopy(t)})).addLocalHook("cut",(function(t){return e.onCut(t)})).addLocalHook("paste",(function(t){return e.onPaste(t)})),(0,l.default)((0,d.default)(n.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),this.getOrCreateFocusableElement(),(0,l.default)((0,d.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.focusableElement&&(0,w.destroyElement)(this.focusableElement),(0,l.default)((0,d.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"copy",value:function(){N.get(this).isTriggeredByCopy=!0,this.getOrCreateFocusableElement(),this.focusableElement.focus(),this.hot.rootDocument.execCommand("copy")}},{key:"cut",value:function(){N.get(this).isTriggeredByCut=!0,this.getOrCreateFocusableElement(),this.focusableElement.focus(),this.hot.rootDocument.execCommand("cut")}},{key:"getRangedCopyableData",value:function(e){var t=this,n=[],r=[],o=[];return(0,m.arrayEach)(e,(function(e){(0,g.rangeEach)(e.startRow,e.endRow,(function(e){-1===r.indexOf(e)&&r.push(e)})),(0,g.rangeEach)(e.startCol,e.endCol,(function(e){-1===o.indexOf(e)&&o.push(e)}))})),(0,m.arrayEach)(r,(function(e){var r=[];(0,m.arrayEach)(o,(function(n){r.push(t.hot.getCopyableData(e,n))})),n.push(r)})),(0,y.stringify)(n)}},{key:"getRangedData",value:function(e){var t=this,n=[],r=[],o=[];return(0,m.arrayEach)(e,(function(e){(0,g.rangeEach)(e.startRow,e.endRow,(function(e){-1===r.indexOf(e)&&r.push(e)})),(0,g.rangeEach)(e.startCol,e.endCol,(function(e){-1===o.indexOf(e)&&o.push(e)}))})),(0,m.arrayEach)(r,(function(e){var r=[];(0,m.arrayEach)(o,(function(n){r.push(t.hot.getCopyableData(e,n))})),n.push(r)})),n}},{key:"paste",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(e||t){var n=new C.default;e&&n.clipboardData.setData("text/plain",e),t&&n.clipboardData.setData("text/html",t),this.getOrCreateFocusableElement(),this.onPaste(n)}}},{key:"setCopyableText",value:function(){var e=this.hot.getSelectedRangeLast();if(e){var t=e.getTopStartCorner(),n=e.getBottomEndCorner(),r=t.row,o=t.col,i=n.row,a=n.col,s=Math.min(i,r+this.rowsLimit-1),u=Math.min(a,o+this.columnsLimit-1);this.copyableRanges.length=0,this.copyableRanges.push({startRow:r,startCol:o,endRow:s,endCol:u}),this.copyableRanges=this.hot.runHooks("modifyCopyableRange",this.copyableRanges),i===s&&a===u||this.hot.runHooks("afterCopyLimit",i-r+1,a-o+1,this.rowsLimit,this.columnsLimit)}}},{key:"getOrCreateFocusableElement",value:function(){var e=this.hot.getActiveEditor(),t=e?e.TEXTAREA:void 0;t?this.focusableElement.setFocusableElement(t):this.focusableElement.useSecondaryElement()}},{key:"isEditorOpened",value:function(){var e=this.hot.getActiveEditor();return e&&e.isOpened()}},{key:"populateValues",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.hot.getSelectedRangeLast();if(e.length){for(var n=e.length,r=e[0].length,o=[],i=t.getTopStartCorner(),a=i.row,s=i.col,u=t.getBottomEndCorner(),l=u.row,c=u.col,f=a,d=s,h=a,p=s;o.length<n||f<=l;){var y=this.hot.getCellMeta(f,s),m=y.skipRowOnPaste,g=y.visualRow;if(f=g+1,!0!==m){h=g,d=s;for(var v=[],E=o.length%n;v.length<r||d<=c;){var b=this.hot.getCellMeta(a,d),T=b.skipColumnOnPaste,C=b.visualCol;if(d=C+1,!0!==T){p=C;var w=v.length%r;v.push(e[E][w])}}o.push(v)}}return this.hot.populateFromArray(a,s,o,void 0,void 0,"CopyPaste.paste",this.pasteMode),[a,s,h,p]}}},{key:"onCopy",value:function(e){var t=N.get(this);if((this.hot.isListening()||t.isTriggeredByCopy)&&!this.isEditorOpened()){this.setCopyableText(),t.isTriggeredByCopy=!1;var n=this.getRangedData(this.copyableRanges);if(!!this.hot.runHooks("beforeCopy",n,this.copyableRanges)){var r=(0,y.stringify)(n);if(e&&e.clipboardData){var o=(0,R._dataToHTML)(n,this.hot.rootDocument);e.clipboardData.setData("text/plain",r),e.clipboardData.setData("text/html",[_,o].join(""))}else"undefined"==typeof ClipboardEvent&&this.hot.rootWindow.clipboardData.setData("Text",r);this.hot.runHooks("afterCopy",n,this.copyableRanges)}e.preventDefault()}}},{key:"onCut",value:function(e){var t=N.get(this);if((this.hot.isListening()||t.isTriggeredByCut)&&!this.isEditorOpened()){this.setCopyableText(),t.isTriggeredByCut=!1;var n=this.getRangedData(this.copyableRanges);if(!!this.hot.runHooks("beforeCut",n,this.copyableRanges)){var r=(0,y.stringify)(n);if(e&&e.clipboardData){var o=(0,R._dataToHTML)(n,this.hot.rootDocument);e.clipboardData.setData("text/plain",r),e.clipboardData.setData("text/html",[_,o].join(""))}else"undefined"==typeof ClipboardEvent&&this.hot.rootWindow.clipboardData.setData("Text",r);this.hot.emptySelectedCells("CopyPaste.cut"),this.hot.runHooks("afterCut",n,this.copyableRanges)}e.preventDefault()}}},{key:"onPaste",value:function(e){if(this.hot.isListening()&&!this.isEditorOpened()){var t;if(e&&e.preventDefault&&e.preventDefault(),e&&void 0!==e.clipboardData){var n=(0,v.sanitize)(e.clipboardData.getData("text/html"),{ADD_TAGS:["meta"],ADD_ATTR:["content"],FORCE_BODY:!0});if(n&&/(<table)|(<TABLE)/g.test(n))t=(0,R.htmlToGridSettings)(n,this.hot.rootDocument).data;else t=e.clipboardData.getData("text/plain")}else"undefined"==typeof ClipboardEvent&&void 0!==this.hot.rootWindow.clipboardData&&(t=this.hot.rootWindow.clipboardData.getData("Text"));if("string"==typeof t&&(t=(0,y.parse)(t)),(!t||0!==t.length)&&!1!==this.hot.runHooks("beforePaste",t,this.copyableRanges)){var r=this.populateValues(t),i=(0,o.default)(r,4),a=i[0],s=i[1],u=i[2],l=i[3];this.hot.selectCell(a,s,Math.min(this.hot.countRows()-1,u),Math.min(this.hot.countCols()-1,l)),this.hot.runHooks("afterPaste",t,this.copyableRanges)}}}},{key:"onAfterContextMenuDefaultOptions",value:function(e){e.items.push({name:"---------"},(0,b.default)(this),(0,T.default)(this))}},{key:"onAfterOnCellMouseUp",value:function(){!this.hot.isListening()||this.isEditorOpened()||this.hot.getSettings().fragmentSelection||(this.getOrCreateFocusableElement(),this.focusableElement.focus())}},{key:"onAfterSelectionEnd",value:function(){var e=N.get(this).isFragmentSelectionEnabled;this.isEditorOpened()||(this.getOrCreateFocusableElement(),e&&this.focusableElement.getFocusableElement()!==this.hot.rootDocument.activeElement&&(0,E.getSelectionText)()||(this.setCopyableText(),this.focusableElement.focus()))}},{key:"onBeforeKeyDown",value:function(){if(this.hot.isListening()&&!this.isEditorOpened()){var e=this.hot.rootDocument.activeElement,t=this.hot.getActiveEditor();!t||e!==this.focusableElement.getFocusableElement()&&e!==t.select||(this.getOrCreateFocusableElement(),this.focusableElement.focus())}}},{key:"destroy",value:function(){this.focusableElement&&((0,w.destroyElement)(this.focusableElement),this.focusableElement=null),(0,l.default)((0,d.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return S}},{key:"SETTING_KEYS",get:function(){return[S].concat(A)}},{key:"PLUGIN_PRIORITY",get:function(){return 80}}]),n}(h.BasePlugin);t.CopyPaste=k},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(21);t.__esModule=!0,t.default=function(e){return{key:"copy",name:function(){return this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_COPY)},callback:function(){e.copy()},disabled:function(){if(0===this.countRows()||0===this.countCols())return!0;var e=this.getSelected();return!e||e.length>1},hidden:!1}};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var u=a?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(30));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(21);t.__esModule=!0,t.default=function(e){return{key:"cut",name:function(){return this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_CUT)},callback:function(){e.cut()},disabled:function(){if(0===this.countRows()||0===this.countCols())return!0;var e=this.getSelected();return!e||e.length>1},hidden:!1}};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var u=a?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(30));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(6)),i=r(n(5)),a=r(n(949)),s=(0,o.default)((function e(){(0,i.default)(this,e),this.clipboardData=new a.default}));t.default=s},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6)),a=function(){function e(){(0,o.default)(this,e),this.data={}}return(0,i.default)(e,[{key:"setData",value:function(e,t){this.data[e]=t}},{key:"getData",value:function(e){return this.data[e]||void 0}}]),e}();t.default=a},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.createElement=function(e){var t=new f(e),n=d.get(e);return n=isNaN(n)?0:n,d.set(e,n+1),t},t.deactivateElement=h,t.destroyElement=function(e){if(!(e instanceof f))return;var t=d.get(e.container);(t=isNaN(t)?0:t)>0&&(t-=1);if(h(e),t<=0){t=0;var n=m.get(e.container);n&&n.parentNode&&(n.parentNode.removeChild(n),m.delete(e.container)),e.mainElement=null}d.set(e.container,t)},n(3),n(0),n(2),n(618),n(4),n(11);var o=r(n(5)),i=r(n(6)),a=r(n(59)),s=r(n(92)),u=n(17),l=n(101),c=n(23),f=function(){function e(t){(0,o.default)(this,e),this.rootDocument=t.defaultView?t:t.ownerDocument,this.mainElement=null,this.eventManager=new a.default(this),this.listenersCount=new WeakSet,this.container=t}return(0,i.default)(e,[{key:"useSecondaryElement",value:function(){var e=function(e){var t=m.get(e);if(t)return t.parentElement||e.appendChild(t),t;var n=(e.defaultView?e:e.ownerDocument).createElement("textarea");return m.set(e,n),n.setAttribute("data-hot-input",""),n.className="HandsontableCopyPaste",n.tabIndex=-1,n.autocomplete="off",n.wrap="hard",n.value=" ",e.appendChild(n),n}(this.container);this.listenersCount.has(e)||(this.listenersCount.add(e),y(this.eventManager,e,this)),this.mainElement=e}},{key:"setFocusableElement",value:function(e){this.listenersCount.has(e)||(this.listenersCount.add(e),y(this.eventManager,e,this)),this.mainElement=e}},{key:"getFocusableElement",value:function(){return this.mainElement}},{key:"focus",value:function(){this.mainElement.value=" ",(0,l.isMobileBrowser)()||(0,c.selectElementIfAllowed)(this.mainElement)}}]),e}();(0,u.mixin)(f,s.default);var d=new WeakMap;function h(e){e.eventManager.clear()}var p=function(e,t){return function(n){return t.runLocalHooks(e,n)}};function y(e,t,n){e.addEventListener(t,"copy",p("copy",n)),e.addEventListener(t,"cut",p("cut",n)),e.addEventListener(t,"paste",p("paste",n))}var m=new WeakMap},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.CustomBorders=void 0;var r=n(953);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.CustomBorders=r.CustomBorders},function(e,t,n){"use strict";n(0),n(7),n(3),n(2),n(11),n(4),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.CustomBorders=void 0,n(18),n(53),n(87),n(35),n(54);var i=r(n(34)),a=r(n(5)),s=r(n(6)),u=r(n(46)),l=r(n(31)),c=r(n(15)),f=r(n(16)),d=r(n(14)),h=r(n(43)),p=n(50),y=n(17),m=n(47),g=n(20),v=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=C(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30)),E=n(954),b=n(164),T=n(306);function C(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(C=function(e){return e?n:t})(e)}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,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,f.default)(this,n)}}t.PLUGIN_KEY="customBorders";t.PLUGIN_PRIORITY=90;var R=function(e){(0,c.default)(n,e);var t=w(n);function n(){var e;(0,a.default)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),(0,h.default)((0,u.default)(e),"savedBorders",[]),e}return(0,s.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().customBorders}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("afterContextMenuDefaultOptions",(function(t){return e.onAfterContextMenuDefaultOptions(t)})),this.addHook("init",(function(){return e.onAfterInit()})),(0,l.default)((0,d.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.hideBorders(),(0,l.default)((0,d.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),this.changeBorderSettings(),(0,l.default)((0,d.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"setBorders",value:function(e,t){var n=this,r=["top","bottom","start","end"],o=null;t&&(this.checkSettingsCohesion([t]),r=Object.keys(t),o=(0,b.normalizeBorder)(t));var a=(0,T.detectSelectionType)(e),s=(0,T.normalizeSelectionFactory)(a);(0,g.arrayEach)(e,(function(e){for(var t=s(e),a=(0,i.default)(t,4),u=a[0],l=a[1],c=a[2],f=a[3],d=function(e){for(var t=function(t){(0,g.arrayEach)(r,(function(r){n.prepareBorderFromCustomAdded(e,t,o,(0,b.toInlinePropName)(r))}))},i=l;i<=f;i+=1)t(i)},h=u;h<=c;h+=1)d(h)})),this.hot.view.render()}},{key:"getBorders",value:function(e){var t=this;if(!Array.isArray(e))return this.savedBorders;var n=(0,T.detectSelectionType)(e),r=(0,T.normalizeSelectionFactory)(n),o=[];return(0,g.arrayEach)(e,(function(e){for(var n=r(e),a=(0,i.default)(n,4),s=a[0],u=a[1],l=a[2],c=a[3],f=function(e){for(var n=function(n){(0,g.arrayEach)(t.savedBorders,(function(t){t.row===e&&t.col===n&&o.push((0,b.denormalizeBorder)(t))}))},r=u;r<=c;r+=1)n(r)},d=s;d<=l;d+=1)f(d)})),o}},{key:"clearBorders",value:function(e){var t=this;e?this.setBorders(e):((0,g.arrayEach)(this.savedBorders,(function(e){t.clearBordersFromSelectionSettings(e.id),t.clearNullCellRange(),t.hot.removeCellMeta(e.row,e.col,"borders")})),this.savedBorders.length=0)}},{key:"insertBorderIntoSettings",value:function(e,t){this.checkSavedBorders(e)||this.savedBorders.push(e);var n=this.hot._createCellRange(this.hot._createCellCoords(e.row,e.col));this.checkCustomSelections(e,n,t)||this.hot.selection.highlight.addCustomSelection({border:e,visualCellRange:n})}},{key:"prepareBorderFromCustomAdded",value:function(e,t,n,r){var o=this.hot.countRows(),i=this.hot.countCols();if(!(e>=o||t>=i)){var a=(0,b.createEmptyBorders)(e,t);n&&(a=(0,b.extendDefaultBorder)(a,n),(0,g.arrayEach)(this.hot.selection.highlight.customSelections,(function(e){if(a.id===e.settings.id)return Object.assign(e.settings,n),a.id=e.settings.id,a.top=e.settings.top,a.bottom=e.settings.bottom,a.start=e.settings.start,a.end=e.settings.end,!1}))),this.hot.setCellMeta(e,t,"borders",(0,b.denormalizeBorder)(a)),this.insertBorderIntoSettings(a,r)}}},{key:"prepareBorderFromCustomAddedRange",value:function(e,t){var n=this,r=Math.min(e.to.row,this.hot.countRows()-1),o=Math.min(e.to.col,this.hot.countCols()-1);(0,m.rangeEach)(e.from.row,r,(function(r){(0,m.rangeEach)(e.from.col,o,(function(o){var i=(0,b.createEmptyBorders)(r,o),a=0;r===e.from.row&&(0,y.hasOwnProperty)(t,"top")&&(a+=1,i.top=t.top),r===e.to.row&&(0,y.hasOwnProperty)(t,"bottom")&&(a+=1,i.bottom=t.bottom),o===e.from.col&&(0,y.hasOwnProperty)(t,"start")&&(a+=1,i.start=t.start),o===e.to.col&&(0,y.hasOwnProperty)(t,"end")&&(a+=1,i.end=t.end),a>0&&(n.hot.setCellMeta(r,o,"borders",(0,b.denormalizeBorder)(i)),n.insertBorderIntoSettings(i))}))}))}},{key:"removeAllBorders",value:function(e,t){var n=(0,b.createId)(e,t);this.spliceBorder(n),this.clearBordersFromSelectionSettings(n),this.clearNullCellRange(),this.hot.removeCellMeta(e,t,"borders")}},{key:"setBorder",value:function(e,t,n,r){var o=this.hot.getCellMeta(e,t).borders;(o=o&&void 0!==o.border?(0,b.normalizeBorder)(o):(0,b.createEmptyBorders)(e,t),r)?(o[n]=(0,b.createSingleEmptyBorder)(),4===this.countHide(o)?this.removeAllBorders(e,t):(this.checkCustomSelectionsFromContextMenu(o,n,r)||this.insertBorderIntoSettings(o),this.hot.setCellMeta(e,t,"borders",(0,b.denormalizeBorder)(o)))):(o[n]=(0,b.createDefaultCustomBorder)(),this.checkCustomSelectionsFromContextMenu(o,n,r)||this.insertBorderIntoSettings(o),this.hot.setCellMeta(e,t,"borders",(0,b.denormalizeBorder)(o)))}},{key:"prepareBorder",value:function(e,t,n){var r=this;(0,g.arrayEach)(e,(function(e){var o=e.start,i=e.end;if(o.row===i.row&&o.col===i.col)"noBorders"===t?r.removeAllBorders(o.row,o.col):r.setBorder(o.row,o.col,t,n);else switch(t){case"noBorders":(0,m.rangeEach)(o.col,i.col,(function(e){(0,m.rangeEach)(o.row,i.row,(function(t){r.removeAllBorders(t,e)}))}));break;case"top":(0,m.rangeEach)(o.col,i.col,(function(e){r.setBorder(o.row,e,t,n)}));break;case"bottom":(0,m.rangeEach)(o.col,i.col,(function(e){r.setBorder(i.row,e,t,n)}));break;case"start":(0,m.rangeEach)(o.row,i.row,(function(e){r.setBorder(e,o.col,t,n)}));break;case"end":(0,m.rangeEach)(o.row,i.row,(function(e){r.setBorder(e,i.col,t,n)}))}}))}},{key:"createCustomBorders",value:function(e){var t=this;(0,g.arrayEach)(e,(function(e){var n=(0,b.normalizeBorder)(e);e.range?t.prepareBorderFromCustomAddedRange(e.range,n):t.prepareBorderFromCustomAdded(e.row,e.col,n)}))}},{key:"countHide",value:function(e){var t=[e.top,e.bottom,e.start,e.end];return(0,g.arrayReduce)(t,(function(e,t){var n=e;return t&&t.hide&&(n+=1),n}),0)}},{key:"clearBordersFromSelectionSettings",value:function(e){var t=(0,g.arrayMap)(this.hot.selection.highlight.customSelections,(function(e){return e.settings.id})).indexOf(e);t>-1&&this.hot.selection.highlight.customSelections[t].clear()}},{key:"clearNullCellRange",value:function(){var e=this;(0,g.arrayEach)(this.hot.selection.highlight.customSelections,(function(t,n){if(null===t.cellRange)return e.hot.selection.highlight.customSelections[n].destroy(),e.hot.selection.highlight.customSelections.splice(n,1),!1}))}},{key:"hideBorders",value:function(){var e=this;(0,g.arrayEach)(this.savedBorders,(function(t){e.clearBordersFromSelectionSettings(t.id),e.clearNullCellRange()}))}},{key:"spliceBorder",value:function(e){var t=(0,g.arrayMap)(this.savedBorders,(function(e){return e.id})).indexOf(e);t>-1&&this.savedBorders.splice(t,1)}},{key:"checkSavedBorders",value:function(e){var t=this,n=!1;return 4===this.countHide(e)?(this.spliceBorder(e.id),n=!0):(0,g.arrayEach)(this.savedBorders,(function(r,o){if(e.id===r.id)return t.savedBorders[o]=e,n=!0,!1})),n}},{key:"checkCustomSelectionsFromContextMenu",value:function(e,t,n){var r=!1;return(0,g.arrayEach)(this.hot.selection.highlight.customSelections,(function(o){if(e.id===o.settings.id)return(0,y.objectEach)(o.instanceBorders,(function(e){e.toggleHiddenClass(t,n)})),r=!0,!1})),r}},{key:"checkCustomSelections",value:function(e,t,n){var r=this.countHide(e),o=!1;return 4===r?(this.removeAllBorders(e.row,e.col),o=!0):(0,g.arrayEach)(this.hot.selection.highlight.customSelections,(function(r){if(e.id===r.settings.id)return r.visualCellRange=t,r.commit(),n&&(0,y.objectEach)(r.instanceBorders,(function(t){t.changeBorderStyle(n,e)})),o=!0,!1})),o}},{key:"changeBorderSettings",value:function(){var e=this.hot.getSettings().customBorders;if(Array.isArray(e)){var t=(0,y.deepClone)(e);this.checkSettingsCohesion(t),t.length||(this.savedBorders=t),this.createCustomBorders(t)}else void 0!==e&&this.createCustomBorders(this.savedBorders)}},{key:"checkSettingsCohesion",value:function(e){var t=(0,b.hasLeftRightTypeOptions)(e),n=(0,b.hasStartEndTypeOptions)(e);if(t&&n)throw new Error('The "left"/"right" and "start"/"end" options should not be used together. Please use only the option "start"/"end".');if(this.hot.isRtl()&&t)throw new Error('The "left"/"right" properties are not supported for RTL. Please use option "start"/"end".')}},{key:"onAfterContextMenuDefaultOptions",value:function(e){this.hot.getSettings().customBorders&&e.items.push({name:"---------"},{key:"borders",name:function(){return this.getTranslatedPhrase(v.CONTEXTMENU_ITEMS_BORDERS)},disabled:function(){return this.selection.isSelectedByCorner()},submenu:{items:[(0,E.top)(this),(0,E.right)(this),(0,E.bottom)(this),(0,E.left)(this),(0,E.noBorders)(this)]}})}},{key:"onAfterInit",value:function(){this.changeBorderSettings()}},{key:"destroy",value:function(){(0,l.default)((0,d.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"customBorders"}},{key:"PLUGIN_PRIORITY",get:function(){return 90}}]),n}(p.BasePlugin);t.CustomBorders=R},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0;var o=r(n(955));t.bottom=o.default;var i=r(n(956));t.left=i.default;var a=r(n(957));t.noBorders=a.default;var s=r(n(958));t.right=s.default;var u=r(n(959));t.top=u.default},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(21);t.__esModule=!0,t.default=function(e){return{key:"borders:bottom",name:function(){var e=this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_BORDERS_BOTTOM);return(0,i.checkSelectionBorders)(this,"bottom")&&(e=(0,i.markSelected)(e)),e},callback:function(t,n){var r=(0,i.checkSelectionBorders)(this,"bottom");e.prepareBorder(n,"bottom",r)}}};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var u=i?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(30)),i=n(164);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(21);t.__esModule=!0,t.default=function(e){var t=e.hot.isRtl()?"end":"start";return{key:"borders:left",name:function(){var e=this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_BORDERS_LEFT);return(0,i.checkSelectionBorders)(this,t)&&(e=(0,i.markSelected)(e)),e},callback:function(n,r){var o=(0,i.checkSelectionBorders)(this,t);e.prepareBorder(r,t,o)}}};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var u=i?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(30)),i=n(164);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(21);t.__esModule=!0,t.default=function(e){return{key:"borders:no_borders",name:function(){return this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_REMOVE_BORDERS)},callback:function(t,n){e.prepareBorder(n,"noBorders")},disabled:function(){return!(0,i.checkSelectionBorders)(this)}}};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var u=i?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(30)),i=n(164);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(21);t.__esModule=!0,t.default=function(e){var t=e.hot.isRtl()?"start":"end";return{key:"borders:right",name:function(){var e=this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_BORDERS_RIGHT);return(0,i.checkSelectionBorders)(this,t)&&(e=(0,i.markSelected)(e)),e},callback:function(n,r){var o=(0,i.checkSelectionBorders)(this,t);e.prepareBorder(r,t,o)}}};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var u=i?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(30)),i=n(164);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(21);t.__esModule=!0,t.default=function(e){return{key:"borders:top",name:function(){var e=this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_BORDERS_TOP);return(0,i.checkSelectionBorders)(this,"top")&&(e=(0,i.markSelected)(e)),e},callback:function(t,n){var r=(0,i.checkSelectionBorders)(this,"top");e.prepareBorder(n,"top",r)}}};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var u=i?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(30)),i=n(164);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.DragToScroll=void 0;var r=n(961);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.DragToScroll=r.DragToScroll},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.DragToScroll=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(46)),s=r(n(31)),u=r(n(15)),l=r(n(16)),c=r(n(14)),f=n(50),d=r(n(59)),h=n(81),p=n(23);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,l.default)(this,n)}}t.PLUGIN_KEY="dragToScroll";t.PLUGIN_PRIORITY=100;var m=function(e){(0,u.default)(n,e);var t=y(n);function n(e){var r;return(0,o.default)(this,n),(r=t.call(this,e)).eventManager=new d.default((0,a.default)(r)),r.boundaries=null,r.callback=null,r.listening=!1,r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().dragToScroll}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("afterOnCellMouseDown",(function(t){return e.setupListening(t)})),this.addHook("afterOnCellCornerMouseDown",(function(t){return e.setupListening(t)})),this.registerEvents(),(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(){this.unregisterEvents(),(0,s.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"setBoundaries",value:function(e){this.boundaries=e}},{key:"setCallback",value:function(e){this.callback=e}},{key:"check",value:function(e,t){var n=0,r=0;t<this.boundaries.top?r=t-this.boundaries.top:t>this.boundaries.bottom&&(r=t-this.boundaries.bottom),e<this.boundaries.left?n=e-this.boundaries.left:e>this.boundaries.right&&(n=e-this.boundaries.right),this.callback(n,r)}},{key:"listen",value:function(){this.listening=!0}},{key:"unlisten",value:function(){this.listening=!1}},{key:"isListening",value:function(){return this.listening}},{key:"registerEvents",value:function(){for(var e=this,t=this.hot.rootWindow;t;)this.eventManager.addEventListener(t.document,"contextmenu",(function(){return e.unlisten()})),this.eventManager.addEventListener(t.document,"mouseup",(function(){return e.unlisten()})),this.eventManager.addEventListener(t.document,"mousemove",(function(t){return e.onMouseMove(t)})),t=(0,p.getParentWindow)(t)}},{key:"unregisterEvents",value:function(){this.eventManager.clear()}},{key:"setupListening",value:function(e){if(!(0,h.isRightClick)(e)){var t=this.hot.view._wt.wtTable.holder;t!==this.hot.rootWindow&&(this.setBoundaries(t.getBoundingClientRect()),this.setCallback((function(e,n){e<0?t.scrollLeft-=50:e>0&&(t.scrollLeft+=50),n<0?t.scrollTop-=20:n>0&&(t.scrollTop+=20)})),this.listen())}}},{key:"onMouseMove",value:function(e){this.isListening()&&this.check(e.clientX,e.clientY)}},{key:"destroy",value:function(){(0,s.default)((0,c.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"dragToScroll"}},{key:"PLUGIN_PRIORITY",get:function(){return 100}}]),n}(f.BasePlugin);t.DragToScroll=m},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.DropdownMenu=void 0;var r=n(963);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.DropdownMenu=r.DropdownMenu},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.DropdownMenu=void 0,n(18),n(35);var o=r(n(5)),i=r(n(6)),a=r(n(46)),s=r(n(31)),u=r(n(15)),l=r(n(16)),c=r(n(14)),f=n(50),d=n(20),h=r(n(624)),p=r(n(59)),y=n(23),m=r(n(625)),g=r(n(314)),v=r(n(74)),E=n(118);function b(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,l.default)(this,n)}}n(964),v.default.getSingleton().register("afterDropdownMenuDefaultOptions"),v.default.getSingleton().register("beforeDropdownMenuShow"),v.default.getSingleton().register("afterDropdownMenuShow"),v.default.getSingleton().register("afterDropdownMenuHide"),v.default.getSingleton().register("afterDropdownMenuExecute");t.PLUGIN_KEY="dropdownMenu";t.PLUGIN_PRIORITY=230;var T=function(e){(0,u.default)(n,e);var t=b(n);function n(e){var r;return(0,o.default)(this,n),(r=t.call(this,e)).eventManager=new p.default((0,a.default)(r)),r.commandExecutor=new h.default(r.hot),r.itemsFactory=null,r.menu=null,r.hot.addHook("afterGetColHeader",(function(e,t){return r.onAfterGetColHeader(e,t)})),r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return this.hot.getSettings().dropdownMenu}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){this.itemsFactory=new m.default(this.hot,n.DEFAULT_ITEMS);var t=this.hot.getSettings().dropdownMenu,r={items:this.itemsFactory.getItems(t)};this.registerEvents(),"function"==typeof t.callback&&this.commandExecutor.setCommonCallback(t.callback),(0,s.default)((0,c.default)(n.prototype),"enablePlugin",this).call(this),this.callOnPluginsReady((function(){e.hot.runHooks("afterDropdownMenuDefaultOptions",r),e.itemsFactory.setPredefinedItems(r.items);var n=e.itemsFactory.getItems(t);e.menu&&e.menu.destroy(),e.menu=new g.default(e.hot,{className:"htDropdownMenu",keepInViewport:!0,container:t.uiContainer||e.hot.rootDocument.body}),e.hot.runHooks("beforeDropdownMenuSetItems",n),e.menu.setMenuItems(n),e.menu.addLocalHook("beforeOpen",(function(){return e.onMenuBeforeOpen()})),e.menu.addLocalHook("afterOpen",(function(){return e.onMenuAfterOpen()})),e.menu.addLocalHook("afterClose",(function(){return e.onMenuAfterClose()})),e.menu.addLocalHook("executeCommand",(function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.executeCommand).call.apply(t,[e].concat(r))})),(0,d.arrayEach)(n,(function(t){return e.commandExecutor.registerCommand(t.key,t)}))}))}}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,s.default)((0,c.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.close(),this.menu&&this.menu.destroy(),(0,s.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(this.hot.rootElement,"click",(function(t){return e.onTableClick(t)}))}},{key:"open",value:function(e){this.menu&&(this.menu.open(),e.width&&this.menu.setOffset("left",e.width),this.menu.setPosition(e))}},{key:"close",value:function(){this.menu&&this.menu.close()}},{key:"executeCommand",value:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=this.commandExecutor).execute.apply(t,[e].concat(r))}},{key:"setListening",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.menu.isOpened()&&(e?this.menu.hotMenu.listen():this.menu.hotMenu.unlisten())}},{key:"onTableClick",value:function(e){if(e.stopPropagation(),(0,y.hasClass)(e.target,"changeType")&&!this.menu.isOpened()){var t=0,n=0;if(this.hot.rootDocument!==this.menu.container.ownerDocument){var r=this.hot.rootWindow.frameElement.getBoundingClientRect();t=r.top,n=r.left}var o=e.target.getBoundingClientRect();this.open({left:o.left+n,top:o.top+e.target.offsetHeight+3+t,width:o.width,height:o.height})}}},{key:"onAfterGetColHeader",value:function(e,t){var n=t.parentNode;if(n){var r=n.parentNode.childNodes,o=Array.prototype.indexOf.call(r,n);if(!(e<0||o!==r.length-1)){var i=t.querySelector(".".concat("changeType"));if(!this.enabled||!i)if(this.enabled){var a=this.hot.rootDocument.createElement("button");a.className="changeType",a.onclick=function(){return!1},t.firstChild.insertBefore(a,t.firstChild.firstChild)}else i&&i.parentNode.removeChild(i)}}}},{key:"onMenuBeforeOpen",value:function(){this.hot.runHooks("beforeDropdownMenuShow",this)}},{key:"onMenuAfterOpen",value:function(){this.hot.runHooks("afterDropdownMenuShow",this)}},{key:"onMenuAfterClose",value:function(){this.hot.listen(),this.hot.runHooks("afterDropdownMenuHide",this)}},{key:"destroy",value:function(){this.close(),this.menu&&this.menu.destroy(),(0,s.default)((0,c.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"dropdownMenu"}},{key:"PLUGIN_PRIORITY",get:function(){return 230}},{key:"PLUGIN_DEPS",get:function(){return["plugin:AutoColumnSize"]}},{key:"DEFAULT_ITEMS",get:function(){return[E.COLUMN_LEFT,E.COLUMN_RIGHT,E.SEPARATOR,E.REMOVE_COLUMN,E.SEPARATOR,E.CLEAR_COLUMN,E.SEPARATOR,E.READ_ONLY,E.SEPARATOR,E.ALIGNMENT]}}]),n}(f.BasePlugin);t.DropdownMenu=T,T.SEPARATOR={name:E.SEPARATOR}},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ExportFile=void 0;var r=n(966);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ExportFile=r.ExportFile},function(e,t,n){"use strict";n(0),n(7),n(3),n(2),n(11),n(4),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ExportFile=void 0,n(18),n(76);var i=r(n(5)),a=r(n(6)),s=r(n(15)),u=r(n(16)),l=r(n(14)),c=n(50),f=r(n(967)),d=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(968));function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}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,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,u.default)(this,n)}}t.PLUGIN_KEY="exportFile";t.PLUGIN_PRIORITY=240;var y=function(e){(0,s.default)(n,e);var t=p(n);function n(){return(0,i.default)(this,n),t.apply(this,arguments)}return(0,a.default)(n,[{key:"isEnabled",value:function(){return!0}},{key:"exportAsString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._createTypeFormatter(e,t).export()}},{key:"exportAsBlob",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._createBlob(this._createTypeFormatter(e,t))}},{key:"downloadFile",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.hot,r=n.rootDocument,o=n.rootWindow,i=this._createTypeFormatter(e,t),a=this._createBlob(i),s=o.URL||o.webkitURL,u=r.createElement("a"),l="".concat(i.options.filename,".").concat(i.options.fileExtension);if(void 0!==u.download){var c=s.createObjectURL(a);u.style.display="none",u.setAttribute("href",c),u.setAttribute("download",l),r.body.appendChild(u),u.dispatchEvent(new MouseEvent("click")),r.body.removeChild(u),setTimeout((function(){s.revokeObjectURL(c)}),100)}else navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob(a,l)}},{key:"_createTypeFormatter",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!d.EXPORT_TYPES[e])throw new Error('Export format type "'.concat(e,'" is not supported.'));return(0,d.default)(e,new f.default(this.hot),t)}},{key:"_createBlob",value:function(e){var t=null;return"undefined"!=typeof Blob&&(t=new Blob([e.export()],{type:"".concat(e.options.mimeType,";charset=").concat(e.options.encoding)})),t}}],[{key:"PLUGIN_KEY",get:function(){return"exportFile"}},{key:"PLUGIN_PRIORITY",get:function(){return 240}}]),n}(c.BasePlugin);t.ExportFile=y},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(34)),i=r(n(5)),a=r(n(6)),s=n(47),u=function(){function e(t){(0,i.default)(this,e),this.hot=t,this.options={}}return(0,a.default)(e,[{key:"setOptions",value:function(e){this.options=e}},{key:"getData",value:function(){var e=this,t=this._getDataRange(),n=t.startRow,r=t.startCol,o=t.endRow,i=t.endCol,a=this.options,u=[];return(0,s.rangeEach)(n,o,(function(t){var n=[];!a.exportHiddenRows&&e._isHiddenRow(t)||((0,s.rangeEach)(r,i,(function(r){!a.exportHiddenColumns&&e._isHiddenColumn(r)||n.push(e.hot.getDataAtCell(t,r))})),u.push(n))})),u}},{key:"getRowHeaders",value:function(){var e=this,t=[];if(this.options.rowHeaders){var n=this._getDataRange(),r=n.startRow,o=n.endRow,i=this.hot.getRowHeader();(0,s.rangeEach)(r,o,(function(n){!e.options.exportHiddenRows&&e._isHiddenRow(n)||t.push(i[n])}))}return t}},{key:"getColumnHeaders",value:function(){var e=this,t=[];if(this.options.columnHeaders){var n=this._getDataRange(),r=n.startCol,o=n.endCol,i=this.hot.getColHeader();(0,s.rangeEach)(r,o,(function(n){!e.options.exportHiddenColumns&&e._isHiddenColumn(n)||t.push(i[n])}))}return t}},{key:"_getDataRange",value:function(){var e=this.hot.countCols()-1,t=this.hot.countRows()-1,n=(0,o.default)(this.options.range,4),r=n[0],i=void 0===r?0:r,a=n[1],s=void 0===a?0:a,u=n[2],l=void 0===u?t:u,c=n[3],f=void 0===c?e:c;return{startRow:i=Math.max(i,0),startCol:s=Math.max(s,0),endRow:l=Math.min(l,t),endCol:f=Math.min(f,e)}}},{key:"_isHiddenRow",value:function(e){return this.hot.rowIndexMapper.isHidden(this.hot.toPhysicalRow(e))}},{key:"_isHiddenColumn",value:function(e){return this.hot.columnIndexMapper.isHidden(this.hot.toPhysicalColumn(e))}}]),e}();t.default=u},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.TYPE_PDF=t.TYPE_EXCEL=t.TYPE_CSV=t.EXPORT_TYPES=void 0,t.default=function(e,t,n){if("function"==typeof a[e])return new a[e](t,n);return null};var o=r(n(43)),i=r(n(969));t.TYPE_CSV="csv";t.TYPE_EXCEL="excel";t.TYPE_PDF="pdf";var a=(0,o.default)({},"csv",i.default);t.EXPORT_TYPES=a},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.default=void 0,n(75),n(37),n(35),n(12),n(63),n(94),n(66);var o=r(n(5)),i=r(n(6)),a=r(n(15)),s=r(n(16)),u=r(n(14)),l=n(20),c=n(32),f=r(n(970));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,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,s.default)(this,n)}}var h=String.fromCharCode(13),p=String.fromCharCode(34),y=String.fromCharCode(10),m=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:"export",value:function(){var e=this,t=this.options,n=this.dataProvider.getData(),r=this.dataProvider.getColumnHeaders(),o=r.length>0,i=this.dataProvider.getRowHeaders(),a=i.length>0,s=t.bom?String.fromCharCode(65279):"";return o&&(r=(0,l.arrayMap)(r,(function(t){return e._escapeCell(t,!0)})),a&&(s+=t.columnDelimiter),s+=r.join(t.columnDelimiter),s+=t.rowDelimiter),(0,l.arrayEach)(n,(function(n,r){r>0&&(s+=t.rowDelimiter),a&&(s+=e._escapeCell(i[r])+t.columnDelimiter),s+=n.map((function(t){return e._escapeCell(t)})).join(t.columnDelimiter)})),s}},{key:"_escapeCell",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,c.stringify)(e);return""!==n&&(t||n.indexOf(h)>=0||n.indexOf(p)>=0||n.indexOf(y)>=0||n.indexOf(this.options.columnDelimiter)>=0)&&(n=n.replace(new RegExp('"',"g"),'""'),n='"'.concat(n,'"')),n}}],[{key:"DEFAULT_OPTIONS",get:function(){return{mimeType:"text/csv",fileExtension:"csv",bom:!0,columnDelimiter:",",rowDelimiter:"\r\n"}}}]),n}(f.default);t.default=m},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0,n(289);var o=r(n(5)),i=r(n(6)),a=n(17),s=n(91),u=function(){function e(t,n){(0,o.default)(this,e),this.dataProvider=t,this.options=this._mergeOptions(n),this.dataProvider.setOptions(this.options)}return(0,i.default)(e,[{key:"_mergeOptions",value:function(t){var n=(0,a.clone)(this.constructor.DEFAULT_OPTIONS),r=new Date;return n=(0,a.extend)((0,a.clone)(e.DEFAULT_OPTIONS),n),(n=(0,a.extend)(n,t)).filename=(0,s.substitute)(n.filename,{YYYY:r.getFullYear(),MM:"".concat(r.getMonth()+1).padStart(2,"0"),DD:"".concat(r.getDate()).padStart(2,"0")}),n}}],[{key:"DEFAULT_OPTIONS",get:function(){return{mimeType:"text/plain",fileExtension:"txt",filename:"Handsontable [YYYY]-[MM]-[DD]",encoding:"utf-8",bom:!1,columnHeaders:!1,rowHeaders:!1,exportHiddenColumns:!1,exportHiddenRows:!1,range:[]}}}]),e}();t.default=u},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.Filters=void 0;var r=n(972);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.Filters=r.Filters},function(e,t,n){"use strict";n(7),n(11),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.Filters=void 0;var i=r(n(79));n(3),n(33),n(0),n(2),n(4),n(26),n(40),n(22),n(25),n(18);var a,s=r(n(34)),u=r(n(5)),l=r(n(6)),c=r(n(46)),f=r(n(31)),d=r(n(15)),h=r(n(16)),p=r(n(14)),y=n(50),m=n(20),g=n(80),v=n(88),E=n(47),b=r(n(59)),T=n(23),C=n(118),w=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=x(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30)),R=r(n(973)),O=r(n(992)),S=r(n(994)),A=r(n(1e3)),N=r(n(634)),_=r(n(635)),k=r(n(1001)),M=n(199),I=n(315),P=n(82);function x(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(x=function(e){return e?n:t})(e)}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,p.default)(e);if(t){var o=(0,p.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,h.default)(this,n)}}n(1002);t.PLUGIN_KEY="filters";t.PLUGIN_PRIORITY=250;var L=function(e){(0,d.default)(n,e);var t=D(n);function n(e){var r;return(0,u.default)(this,n),(r=t.call(this,e)).eventManager=new b.default((0,c.default)(r)),r.dropdownMenuPlugin=null,r.conditionCollection=null,r.conditionUpdateObserver=null,r.components=new Map([["filter_by_condition",null],["filter_operators",null],["filter_by_condition2",null],["filter_by_value",null],["filter_action_bar",null]]),r.lastSelectedColumn=null,r.filtersRowsMap=null,r.hot.addHook("afterGetColHeader",(function(e,t){return r.onAfterGetColHeader(e,t)})),r}return(0,l.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().filters}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){this.filtersRowsMap=this.hot.rowIndexMapper.registerMap(this.pluginName,new P.TrimmingMap),this.dropdownMenuPlugin=this.hot.getPlugin("dropdownMenu");var t=this.hot.getSettings().dropdownMenu,r=t&&t.uiContainer||this.hot.rootDocument.body,o=function(t){return t.addLocalHook("accept",(function(){return e.onActionBarSubmit("accept")})),t.addLocalHook("cancel",(function(){return e.onActionBarSubmit("cancel")})),t.addLocalHook("change",(function(n){return e.onComponentChange(t,n)})),t};if(!this.components.get("filter_by_condition")){var i=new R.default(this.hot,{id:"filter_by_condition",name:function(){return"".concat(e.hot.getTranslatedPhrase(w.FILTERS_DIVS_FILTER_BY_CONDITION),":")},addSeparator:!1,menuContainer:r});i.addLocalHook("afterClose",(function(){return e.onSelectUIClosed()})),this.components.set("filter_by_condition",o(i))}if(this.components.get("filter_operators")||this.components.set("filter_operators",new O.default(this.hot,{id:"filter_operators",name:"Operators"})),!this.components.get("filter_by_condition2")){var a=new R.default(this.hot,{id:"filter_by_condition2",name:"",addSeparator:!0,menuContainer:r});a.addLocalHook("afterClose",(function(){return e.onSelectUIClosed()})),this.components.set("filter_by_condition2",o(a))}this.components.get("filter_by_value")||this.components.set("filter_by_value",o(new S.default(this.hot,{id:"filter_by_value",name:function(){return"".concat(e.hot.getTranslatedPhrase(w.FILTERS_DIVS_FILTER_BY_VALUE),":")}}))),this.components.get("filter_action_bar")||this.components.set("filter_action_bar",o(new A.default(this.hot,{id:"filter_action_bar",name:"Action bar"}))),this.conditionCollection||(this.conditionCollection=new N.default(this.hot)),this.conditionUpdateObserver||(this.conditionUpdateObserver=new k.default(this.hot,this.conditionCollection,(function(t){return e.getDataMapAtColumn(t)})),this.conditionUpdateObserver.addLocalHook("update",(function(t){return e.updateComponents(t)}))),this.components.forEach((function(e){return e.show()})),this.registerEvents(),this.addHook("beforeDropdownMenuSetItems",(function(t){return e.onBeforeDropdownMenuSetItems(t)})),this.addHook("afterDropdownMenuDefaultOptions",(function(t){return e.onAfterDropdownMenuDefaultOptions(t)})),this.addHook("afterDropdownMenuShow",(function(){return e.onAfterDropdownMenuShow()})),this.addHook("afterDropdownMenuHide",(function(){return e.onAfterDropdownMenuHide()})),this.addHook("afterChange",(function(t){return e.onAfterChange(t)})),this.hot.getSettings().dropdownMenu&&this.dropdownMenuPlugin&&(this.dropdownMenuPlugin.disablePlugin(),this.dropdownMenuPlugin.enablePlugin()),(0,f.default)((0,p.default)(n.prototype),"enablePlugin",this).call(this)}}},{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(this.hot.rootElement,"click",(function(t){return e.onTableClick(t)}))}},{key:"disablePlugin",value:function(){var e,t=this;this.enabled&&(null!==(e=this.dropdownMenuPlugin)&&void 0!==e&&e.enabled&&this.dropdownMenuPlugin.menu.clearLocalHooks(),this.components.forEach((function(e,n){e.destroy(),t.components.set(n,null)})),this.conditionCollection.destroy(),this.conditionCollection=null,this.hot.rowIndexMapper.unregisterMap(this.pluginName));(0,f.default)((0,p.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"addCondition",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:I.OPERATION_AND,o=this.hot.toPhysicalColumn(e);this.conditionCollection.addCondition(o,{command:{key:t},args:n},r)}},{key:"removeConditions",value:function(e){var t=this.hot.toPhysicalColumn(e);this.conditionCollection.removeConditions(t)}},{key:"clearConditions",value:function(e){if(void 0===e)this.conditionCollection.clean();else{var t=this.hot.toPhysicalColumn(e);this.conditionCollection.removeConditions(t)}}},{key:"filter",value:function(){var e=this,t=this._createDataFilter(),n=!this.conditionCollection.isEmpty(),r=[],o=this.conditionCollection.exportAllConditions();if(!1!==this.hot.runHooks("beforeFilter",o))if(n){var i=[];this.hot.batchExecution((function(){e.filtersRowsMap.clear(),r=(0,m.arrayMap)(t.filter(),(function(e){return e.meta.visualRow}));var n=(0,M.createArrayAssertion)(r);(0,E.rangeEach)(e.hot.countSourceRows()-1,(function(e){n(e)||i.push(e)})),(0,m.arrayEach)(i,(function(t){e.filtersRowsMap.setValueAtIndex(t,!0)}))}),!0),r.length||this.hot.deselectCell()}else this.filtersRowsMap.clear();this.hot.runHooks("afterFilter",o),this.hot.view.adjustElementsSize(!0),this.hot.render(),this.clearColumnSelection()}},{key:"getSelectedColumn",value:function(){return this.lastSelectedColumn}},{key:"clearColumnSelection",value:function(){var e,t=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.getTopStartCorner();void 0!==t&&this.hot.selectCell(t.row,t.col)}},{key:"getDataMapAtColumn",value:function(e){var t=this,n=this.hot.toVisualColumn(e),r=[];return(0,m.arrayEach)(this.hot.getSourceDataAtCol(n),(function(e,o){var i,a=t.hot.getCellMeta(o,n),s=a.row,u=a.col,l=a.visualCol,c=a.visualRow,f=a.type,d=a.instance,h=a.dateFormat,p=a.locale,y=null!==(i=t.hot.getDataAtCell(t.hot.toVisualRow(o),n))&&void 0!==i?i:e;r.push({meta:{row:s,col:u,visualCol:l,visualRow:c,type:f,instance:d,dateFormat:h,locale:p},value:(0,M.toEmptyString)(y)})})),r}},{key:"onAfterChange",value:function(e){var t=this;e&&(0,m.arrayEach)(e,(function(e){var n=(0,s.default)(e,2)[1],r=t.hot.propToCol(n);t.conditionCollection.hasConditions(r)&&t.updateValueComponentCondition(r)}))}},{key:"updateValueComponentCondition",value:function(e){var t=this.hot.getDataAtCol(e),n=(0,M.unifyColumnValues)(t);this.conditionUpdateObserver.updateStatesAtColumn(e,n)}},{key:"restoreComponents",value:function(e){var t,n=null===(t=this.getSelectedColumn())||void 0===t?void 0:t.physicalIndex;e.forEach((function(e){e.isHidden()||e.restoreState(n)})),this.updateDependentComponentsVisibility()}},{key:"onAfterDropdownMenuShow",value:function(){this.restoreComponents(Array.from(this.components.values()))}},{key:"onAfterDropdownMenuHide",value:function(){this.components.get("filter_by_condition").getSelectElement().closeOptions(),this.components.get("filter_by_condition2").getSelectElement().closeOptions()}},{key:"onBeforeDropdownMenuSetItems",value:function(){var e=this;this.dropdownMenuPlugin&&this.dropdownMenuPlugin.menu.addLocalHook("afterOpen",(function(){e.dropdownMenuPlugin.menu.hotMenu.updateSettings({hiddenRows:!0})}))}},{key:"onAfterDropdownMenuDefaultOptions",value:function(e){e.items.push({name:C.SEPARATOR}),this.components.forEach((function(t){e.items.push(t.getMenuItemDescriptor())}))}},{key:"getOperationBasedOnArguments",value:function(e,t,n,r){var o=e;return o===I.OPERATION_OR&&t.command.key!==I.CONDITION_NONE&&n.command.key!==I.CONDITION_NONE&&r.command.key!==I.CONDITION_NONE?o=I.OPERATION_OR_THEN_VARIABLE:r.command.key!==I.CONDITION_NONE&&(t.command.key!==I.CONDITION_NONE&&n.command.key!==I.CONDITION_NONE||(o=I.OPERATION_AND)),o}},{key:"onActionBarSubmit",value:function(e){if("accept"===e){var t,n=null===(t=this.getSelectedColumn())||void 0===t?void 0:t.physicalIndex,r=this.components.get("filter_by_condition").getState(),o=this.components.get("filter_by_condition2").getState(),i=this.components.get("filter_by_value").getState(),a=this.getOperationBasedOnArguments(this.components.get("filter_operators").getActiveOperationId(),r,o,i);this.conditionUpdateObserver.groupChanges();var s=this.conditionCollection.getColumnStackPosition(n);-1===s&&(s=void 0),this.conditionCollection.removeConditions(n),r.command.key!==I.CONDITION_NONE&&(this.conditionCollection.addCondition(n,r,a,s),o.command.key!==I.CONDITION_NONE&&this.conditionCollection.addCondition(n,o,a,s)),i.command.key!==I.CONDITION_NONE&&this.conditionCollection.addCondition(n,i,a,s),this.conditionUpdateObserver.flush(),this.components.forEach((function(e){return e.saveState(n)})),this.filtersRowsMap.clear(),this.filter()}this.dropdownMenuPlugin&&this.dropdownMenuPlugin.close()}},{key:"onComponentChange",value:function(e,t){this.updateDependentComponentsVisibility(),e.constructor!==R.default||t.inputsCount||this.setListeningDropdownMenu()}},{key:"onSelectUIClosed",value:function(){this.setListeningDropdownMenu()}},{key:"setListeningDropdownMenu",value:function(){this.dropdownMenuPlugin&&this.dropdownMenuPlugin.setListening()}},{key:"updateDependentComponentsVisibility",value:function(){var e=this.components.get("filter_by_condition").getState().command,t=[this.components.get("filter_by_condition2"),this.components.get("filter_operators")];e.showOperators?this.showComponents.apply(this,t):this.hideComponents.apply(this,t)}},{key:"onAfterGetColHeader",value:function(e,t){var n=this.hot.toPhysicalColumn(e);this.enabled&&this.conditionCollection.hasConditions(n)?(0,T.addClass)(t,"htFiltersActive"):(0,T.removeClass)(t,"htFiltersActive")}},{key:"onTableClick",value:function(e){var t=(0,T.closest)(e.target,"TH");if(t){var n=this.hot.getCoords(t).col,r=this.hot.toPhysicalColumn(n);this.lastSelectedColumn={visualIndex:n,physicalIndex:r}}}},{key:"_createDataFilter",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.conditionCollection;return new _.default(t,(function(t){return e.getDataMapAtColumn(t)}))}},{key:"updateComponents",value:function(e){var t;if(null!==(t=this.dropdownMenuPlugin)&&void 0!==t&&t.enabled){var n=e.editedConditionStack,r=n.conditions,o=n.column,s=r.filter((function(e){return e.name===I.CONDITION_BY_VALUE})),u=r.filter((function(e){return e.name!==I.CONDITION_BY_VALUE}));if(s.length>=2||u.length>=3)(0,v.warn)((0,g.toSingleLine)(a||(a=(0,i.default)(["The filter conditions have been applied properly, but couldn’t be displayed visually. \n The overall amount of conditions exceed the capability of the dropdown menu. \n For more details see the documentation."],["The filter conditions have been applied properly, but couldn’t be displayed visually.\\x20\n The overall amount of conditions exceed the capability of the dropdown menu.\\x20\n For more details see the documentation."]))));else{var l=this.conditionCollection.getOperation(o);this.components.get("filter_by_condition").updateState(u[0],o),this.components.get("filter_by_condition2").updateState(u[1],o),this.components.get("filter_operators").updateState(l,o),this.components.get("filter_by_value").updateState(e)}}}},{key:"getIndexesOfComponents",value:function(){var e=[];if(!this.dropdownMenuPlugin)return e;for(var t=this.dropdownMenuPlugin.menu,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(0,m.arrayEach)(r,(function(n){(0,m.arrayEach)(t.menuItems,(function(t,r){t.key===n.getMenuItemDescriptor().key&&e.push(r)}))})),e}},{key:"changeComponentsVisibility",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.dropdownMenuPlugin){for(var t=this.dropdownMenuPlugin.menu,n=t.hotMenu,r=n.getPlugin("hiddenRows"),o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];var s=this.getIndexesOfComponents.apply(this,i);e?r.showRows(s):r.hideRows(s),n.render()}}},{key:"hideComponents",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.changeComponentsVisibility.apply(this,[!1].concat(t))}},{key:"showComponents",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.changeComponentsVisibility.apply(this,[!0].concat(t))}},{key:"destroy",value:function(){var e=this;this.enabled&&(this.components.forEach((function(t,n){null!==t&&(t.destroy(),e.components.set(n,null))})),this.conditionCollection.destroy(),this.conditionUpdateObserver.destroy(),this.hot.rowIndexMapper.unregisterMap(this.pluginName)),(0,f.default)((0,p.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"filters"}},{key:"PLUGIN_PRIORITY",get:function(){return 250}},{key:"PLUGIN_DEPS",get:function(){return["plugin:DropdownMenu","plugin:HiddenRows","cell-type:checkbox"]}}]),n}(y.BasePlugin);t.Filters=L},function(e,t,n){"use strict";n(7),n(3),n(2),n(11),n(4),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.default=void 0,n(25),n(114),n(76),n(40),n(0);var i=r(n(44)),a=r(n(5)),s=r(n(6)),u=r(n(31)),l=r(n(15)),c=r(n(16)),f=r(n(14)),d=n(23),h=n(81),p=n(20),y=n(116),m=n(17),g=R(n(30)),v=r(n(237)),E=R(n(315)),b=r(n(317)),T=r(n(991)),C=n(57);function w(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(w=function(e){return e?n:t})(e)}function R(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=w(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function O(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,f.default)(e);if(t){var o=(0,f.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}var S=function(e){(0,l.default)(n,e);var t=O(n);function n(e,r){var o;return(0,a.default)(this,n),(o=t.call(this,e,{id:r.id,stateless:!1})).name=r.name,o.addSeparator=r.addSeparator,o.elements.push(new T.default(o.hot,{menuContainer:r.menuContainer})),o.elements.push(new b.default(o.hot,{placeholder:g.FILTERS_BUTTONS_PLACEHOLDER_VALUE})),o.elements.push(new b.default(o.hot,{placeholder:g.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE})),o.registerHooks(),o}return(0,s.default)(n,[{key:"registerHooks",value:function(){var e=this;this.getSelectElement().addLocalHook("select",(function(t){return e.onConditionSelect(t)})),this.getSelectElement().addLocalHook("afterClose",(function(){return e.onSelectUIClosed()})),(0,p.arrayEach)(this.getInputElements(),(function(t){t.addLocalHook("keydown",(function(t){return e.onInputKeyDown(t)}))}))}},{key:"setState",value:function(e){var t=this;if(this.reset(),e){var n=(0,m.clone)(e.command);n.name.startsWith(g.FILTERS_CONDITIONS_NAMESPACE)&&(n.name=this.hot.getTranslatedPhrase(n.name)),this.getSelectElement().setValue(n),(0,p.arrayEach)(e.args,(function(e,r){if(r>n.inputsCount-1)return!1;var o=t.getInputElement(r);o.setValue(e),o[n.inputsCount>r?"show":"hide"](),r||setTimeout((function(){return o.focus()}),10)}))}}},{key:"getState",value:function(){var e=this.getSelectElement().getValue()||(0,C.getConditionDescriptor)(E.CONDITION_NONE),t=[];return(0,p.arrayEach)(this.getInputElements(),(function(n,r){e.inputsCount>r&&t.push(n.getValue())})),{command:e,args:t}}},{key:"updateState",value:function(e,t){var n=e?(0,C.getConditionDescriptor)(e.name):(0,C.getConditionDescriptor)(E.CONDITION_NONE);this.state.setValueAtIndex(t,{command:n,args:e?e.args:[]}),e||(0,p.arrayEach)(this.getInputElements(),(function(e){return e.setValue(null)}))}},{key:"getSelectElement",value:function(){return this.elements.filter((function(e){return e instanceof T.default}))[0]}},{key:"getInputElement",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.getInputElements()[e]}},{key:"getInputElements",value:function(){return this.elements.filter((function(e){return e instanceof b.default}))}},{key:"getMenuItemDescriptor",value:function(){var e=this;return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:function(){return e.isHidden()},renderer:function(t,n,r,o,i,a){(0,d.addClass)(n.parentNode,"htFiltersMenuCondition"),e.addSeparator&&(0,d.addClass)(n.parentNode,"border");var s=e.hot.rootDocument.createElement("div");return(0,d.addClass)(s,"htFiltersMenuLabel"),s.textContent=a,n.appendChild(s),n.parentNode.hasAttribute("ghost-table")||(0,p.arrayEach)(e.elements,(function(e){return n.appendChild(e.element)})),n}}}},{key:"reset",value:function(){var e,t=this.hot.getPlugin("filters").getSelectedColumn(),r=t&&t.visualIndex,o=(e=this.hot).getDataType.apply(e,(0,i.default)(this.hot.getSelectedLast()||[0,r])),a=(0,E.default)(o);(0,p.arrayEach)(this.getInputElements(),(function(e){return e.hide()})),this.getSelectElement().setItems(a),(0,u.default)((0,f.default)(n.prototype),"reset",this).call(this),this.getSelectElement().setValue(a[0])}},{key:"onConditionSelect",value:function(e){(0,p.arrayEach)(this.getInputElements(),(function(t,n){t[e.inputsCount>n?"show":"hide"](),0===n&&setTimeout((function(){return t.focus()}),10)})),this.runLocalHooks("change",e)}},{key:"onSelectUIClosed",value:function(){this.runLocalHooks("afterClose")}},{key:"onInputKeyDown",value:function(e){(0,y.isKey)(e.keyCode,"ENTER")?(this.runLocalHooks("accept"),(0,h.stopImmediatePropagation)(e)):(0,y.isKey)(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),(0,h.stopImmediatePropagation)(e))}}]),n}(v.default);t.default=S},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(21);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=s;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var u=i?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(30)),i=n(57);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}function s(){return!0}t.CONDITION_NAME="none",(0,i.registerCondition)("none",s,{name:o.FILTERS_CONDITIONS_NONE,inputsCount:0,showOperators:!1})},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(21);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=u;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(n(30)),i=n(57),a=n(626);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function u(e,t){return!(0,i.getCondition)(a.CONDITION_NAME,t)(e)}t.CONDITION_NAME="not_empty",(0,i.registerCondition)("not_empty",u,{name:o.FILTERS_CONDITIONS_NOT_EMPTY,inputsCount:0,showOperators:!0})},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(21);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=u;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(n(30)),i=n(57),a=n(627);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function u(e,t){return!(0,i.getCondition)(a.CONDITION_NAME,t)(e)}t.CONDITION_NAME="neq",(0,i.registerCondition)("neq",u,{name:o.FILTERS_CONDITIONS_NOT_EQUAL,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=l;var i=r(n(34)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30)),s=n(57);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function l(e,t){var n=(0,i.default)(t,1)[0];return"numeric"===e.meta.type&&(n=parseFloat(n,10)),e.value>n}t.CONDITION_NAME="gt",(0,s.registerCondition)("gt",l,{name:a.FILTERS_CONDITIONS_GREATER_THAN,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=l;var i=r(n(34)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30)),s=n(57);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function l(e,t){var n=(0,i.default)(t,1)[0];return"numeric"===e.meta.type&&(n=parseFloat(n,10)),e.value>=n}t.CONDITION_NAME="gte",(0,s.registerCondition)("gte",l,{name:a.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=l;var i=r(n(34)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30)),s=n(57);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function l(e,t){var n=(0,i.default)(t,1)[0];return"numeric"===e.meta.type&&(n=parseFloat(n,10)),e.value<n}t.CONDITION_NAME="lt",(0,s.registerCondition)("lt",l,{name:a.FILTERS_CONDITIONS_LESS_THAN,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=l;var i=r(n(34)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30)),s=n(57);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function l(e,t){var n=(0,i.default)(t,1)[0];return"numeric"===e.meta.type&&(n=parseFloat(n,10)),e.value<=n}t.CONDITION_NAME="lte",(0,s.registerCondition)("lte",l,{name:a.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(21);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=u;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(n(30)),i=n(57),a=n(628);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function u(e,t){return!(0,i.getCondition)(a.CONDITION_NAME,t)(e)}t.CONDITION_NAME="not_between",(0,i.registerCondition)("not_between",u,{name:o.FILTERS_CONDITIONS_NOT_BETWEEN,inputsCount:2,showOperators:!0})},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=c,n(114);var i=r(n(34)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30)),s=n(32),u=n(57);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function c(e,t){var n=(0,i.default)(t,1)[0];return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale).startsWith((0,s.stringify)(n))}t.CONDITION_NAME="begins_with",(0,u.registerCondition)("begins_with",c,{name:a.FILTERS_CONDITIONS_BEGINS_WITH,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=c,n(284);var i=r(n(34)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30)),s=n(32),u=n(57);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function c(e,t){var n=(0,i.default)(t,1)[0];return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale).endsWith((0,s.stringify)(n))}t.CONDITION_NAME="ends_with",(0,u.registerCondition)("ends_with",c,{name:a.FILTERS_CONDITIONS_ENDS_WITH,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(21);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=u;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(n(30)),i=n(57),a=n(631);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function u(e,t){return!(0,i.getCondition)(a.CONDITION_NAME,t)(e)}t.CONDITION_NAME="not_contains",(0,i.registerCondition)("not_contains",u,{name:o.FILTERS_CONDITIONS_NOT_CONTAIN,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=l;var i=r(n(102)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30)),s=n(57);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function l(e){var t=(0,i.default)(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame((0,i.default)().subtract(-1,"days").startOf("day"),"d")}t.CONDITION_NAME="date_tomorrow",(0,s.registerCondition)("date_tomorrow",l,{name:a.FILTERS_CONDITIONS_TOMORROW,inputsCount:0})},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=l;var i=r(n(102)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30)),s=n(57);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function l(e){var t=(0,i.default)(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame((0,i.default)().startOf("day"),"d")}t.CONDITION_NAME="date_today",(0,s.registerCondition)("date_today",l,{name:a.FILTERS_CONDITIONS_TODAY,inputsCount:0})},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=l;var i=r(n(102)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30)),s=n(57);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function l(e){var t=(0,i.default)(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame((0,i.default)().subtract(1,"days").startOf("day"),"d")}t.CONDITION_NAME="date_yesterday",(0,s.registerCondition)("date_yesterday",l,{name:a.FILTERS_CONDITIONS_YESTERDAY,inputsCount:0})},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=s;var o=r(n(34)),i=n(57),a=n(199);function s(e,t){return(0,(0,o.default)(t,1)[0])(e.value)}t.CONDITION_NAME="by_value",(0,i.registerCondition)("by_value",s,{name:"By value",inputsCount:0,inputValuesDecorator:function(e){var t=(0,o.default)(e,1)[0];return[(0,a.createArrayAssertion)(t)]},showOperators:!1})},function(e,t,n){"use strict";t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=o;var r=n(57);function o(){return!0}t.CONDITION_NAME="true",(0,r.registerCondition)("true",o,{name:"True"})},function(e,t,n){"use strict";t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=o;var r=n(57);function o(){return!1}t.CONDITION_NAME="false",(0,r.registerCondition)("false",o,{name:"False"})},function(e,t,n){"use strict";n(7),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.default=void 0;var i=r(n(5)),a=r(n(6)),s=r(n(46)),u=r(n(31)),l=r(n(15)),c=r(n(16)),f=r(n(14));n(3),n(0),n(2),n(11),n(4),n(25);var d=r(n(314)),h=n(17),p=n(20),y=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=v(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30)),m=n(118),g=r(n(201));function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(v=function(e){return e?n:t})(e)}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,f.default)(e);if(t){var o=(0,f.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}var b=new WeakMap,T=function(e){(0,l.default)(n,e);var t=E(n);function n(e,r){var o;return(0,i.default)(this,n),o=t.call(this,e,(0,h.extend)(n.DEFAULTS,r)),b.set((0,s.default)(o),{}),o.menu=null,o.items=[],o.registerHooks(),o}return(0,a.default)(n,[{key:"registerHooks",value:function(){var e=this;this.addLocalHook("click",(function(){return e.onClick()}))}},{key:"setItems",value:function(e){this.items=this.translateNames(e),this.menu&&this.menu.setMenuItems(this.items)}},{key:"translateNames",value:function(e){var t=this;return(0,p.arrayEach)(e,(function(e){e.name=t.translateIfPossible(e.name)})),e}},{key:"build",value:function(){var e=this;(0,u.default)((0,f.default)(n.prototype),"build",this).call(this),this.menu=new d.default(this.hot,{className:"htSelectUI htFiltersConditionsMenu",keepInViewport:!1,standalone:!0,container:this.options.menuContainer}),this.menu.setMenuItems(this.items);var t=new g.default(this.hot,{className:"htUISelectCaption"}),r=new g.default(this.hot,{className:"htUISelectDropdown"}),o=b.get(this);o.caption=t,o.captionElement=t.element,o.dropdown=r,(0,p.arrayEach)([t,r],(function(t){return e._element.appendChild(t.element)})),this.menu.addLocalHook("select",(function(t){return e.onMenuSelect(t)})),this.menu.addLocalHook("afterClose",(function(){return e.onMenuClosed()})),this.update()}},{key:"update",value:function(){var e;this.isBuilt()&&(e=this.options.value?this.options.value.name:this.menu.hot.getTranslatedPhrase(y.FILTERS_CONDITIONS_NONE),b.get(this).captionElement.textContent=e,(0,u.default)((0,f.default)(n.prototype),"update",this).call(this))}},{key:"openOptions",value:function(){var e=this.element.getBoundingClientRect();this.menu&&(this.menu.open(),this.menu.setPosition({left:this.hot.isLtr()?e.left-5:e.left-31,top:e.top-1,width:e.width,height:e.height}))}},{key:"closeOptions",value:function(){this.menu&&this.menu.close()}},{key:"onMenuSelect",value:function(e){e.name!==m.SEPARATOR&&(this.options.value=e,this.update(),this.runLocalHooks("select",this.options.value))}},{key:"onMenuClosed",value:function(){this.runLocalHooks("afterClose")}},{key:"onClick",value:function(){this.openOptions()}},{key:"destroy",value:function(){this.menu&&(this.menu.destroy(),this.menu=null);var e=b.get(this),t=e.caption,r=e.dropdown;t&&t.destroy(),r&&r.destroy(),(0,u.default)((0,f.default)(n.prototype),"destroy",this).call(this)}}],[{key:"DEFAULTS",get:function(){return(0,h.clone)({className:"htUISelect",wrapIt:!1})}}]),n}(g.default);t.default=T},function(e,t,n){"use strict";n(7);var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(79));n(25),n(140),n(0);var i,a=r(n(5)),s=r(n(6)),u=r(n(15)),l=r(n(16)),c=r(n(14)),f=n(23),d=n(20),h=n(80),p=r(n(237)),y=n(200),m=n(316),g=n(632),v=n(633),E=r(n(993));function b(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,l.default)(this,n)}}var T=function(e){(0,u.default)(n,e);var t=b(n);function n(e,r){var o;return(0,a.default)(this,n),(o=t.call(this,e,{id:r.id,stateless:!1})).name=r.name,o.buildOperatorsElement(),o}return(0,s.default)(n,[{key:"getMenuItemDescriptor",value:function(){var e=this;return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:function(){return e.isHidden()},renderer:function(t,n){return(0,f.addClass)(n.parentNode,"htFiltersMenuOperators"),n.parentNode.hasAttribute("ghost-table")||(0,d.arrayEach)(e.elements,(function(e){return n.appendChild(e.element)})),n}}}},{key:"buildOperatorsElement",value:function(){var e=this,t=[m.OPERATION_ID,g.OPERATION_ID];(0,d.arrayEach)(t,(function(n){var r=new E.default(e.hot,{name:"operator",label:{htmlFor:n,textContent:(0,y.getOperationName)(n)},value:n,checked:n===t[0],id:n});r.addLocalHook("change",(function(t){return e.onRadioInputChange(t)})),e.elements.push(r)}))}},{key:"setChecked",value:function(e){if(this.elements.length<e)throw Error((0,h.toSingleLine)(i||(i=(0,o.default)(["Radio button with index "," doesn't exist."])),e));(0,d.arrayEach)(this.elements,(function(t,n){t.setChecked(n===e)}))}},{key:"getActiveOperationId",value:function(){var e=this.elements.find((function(e){return e instanceof E.default&&e.isChecked()}));return e?e.getValue():m.OPERATION_ID}},{key:"getState",value:function(){return this.getActiveOperationId()}},{key:"setState",value:function(e){this.reset(),e&&this.getActiveOperationId()!==e&&(0,d.arrayEach)(this.elements,(function(t){t.setChecked(t.getValue()===e)}))}},{key:"updateState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m.OPERATION_ID,t=arguments.length>1?arguments[1]:void 0,n=e;n===v.OPERATION_ID&&(n=g.OPERATION_ID),this.state.setValueAtIndex(t,n)}},{key:"reset",value:function(){this.setChecked(0)}},{key:"onRadioInputChange",value:function(e){this.setState(e.target.value)}}]),n}(p.default);t.default=T},function(e,t,n){"use strict";n(7);var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(46)),s=r(n(31)),u=r(n(15)),l=r(n(16)),c=r(n(14));n(3),n(0),n(2),n(11),n(4);var f=n(17),d=r(n(201));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,l.default)(this,n)}}var p=new WeakMap,y=function(e){(0,u.default)(n,e);var t=h(n);function n(e,r){var i;return(0,o.default)(this,n),i=t.call(this,e,(0,f.extend)(n.DEFAULTS,r)),p.set((0,a.default)(i),{}),i}return(0,i.default)(n,[{key:"build",value:function(){(0,s.default)((0,c.default)(n.prototype),"build",this).call(this);var e=p.get(this);e.input=this._element.firstChild;var t=this.hot.rootDocument.createElement("label");t.textContent=this.translateIfPossible(this.options.label.textContent),t.htmlFor=this.translateIfPossible(this.options.label.htmlFor),e.label=t,this._element.appendChild(t),this.update()}},{key:"update",value:function(){if(this.isBuilt()){var e=p.get(this);e.input.checked=this.options.checked,e.label.textContent=this.translateIfPossible(this.options.label.textContent)}}},{key:"isChecked",value:function(){return this.options.checked}},{key:"setChecked",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.options.checked=e,this.update()}},{key:"focus",value:function(){this.isBuilt()&&p.get(this).input.focus()}}],[{key:"DEFAULTS",get:function(){return(0,f.clone)({type:"radio",tagName:"input",className:"htUIRadio",label:{}})}}]),n}(d.default);t.default=y},function(e,t,n){"use strict";n(7),n(3),n(2),n(11),n(4),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.default=void 0,n(25),n(40),n(0);var i=r(n(34)),a=r(n(5)),s=r(n(6)),u=r(n(31)),l=r(n(15)),c=r(n(16)),f=r(n(14)),d=n(23),h=n(81),p=n(20),y=n(116),m=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=C(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30)),g=n(199),v=r(n(237)),E=r(n(995)),b=n(315),T=n(57);function C(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(C=function(e){return e?n:t})(e)}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,f.default)(e);if(t){var o=(0,f.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}var R=function(e){(0,l.default)(n,e);var t=w(n);function n(e,r){var o;return(0,a.default)(this,n),(o=t.call(this,e,{id:r.id,stateless:!1})).name=r.name,o.elements.push(new E.default(o.hot)),o.registerHooks(),o}return(0,s.default)(n,[{key:"registerHooks",value:function(){var e=this;this.getMultipleSelectElement().addLocalHook("keydown",(function(t){return e.onInputKeyDown(t)}))}},{key:"setState",value:function(e){if(this.reset(),e&&e.command.key===b.CONDITION_BY_VALUE){var t=this.getMultipleSelectElement();t.setItems(e.itemsSnapshot),t.setValue(e.args[0]),t.setLocale(e.locale)}}},{key:"getState",value:function(){var e=this.getMultipleSelectElement(),t=e.getItems();return{command:{key:e.isSelectedAllValues()||!t.length?b.CONDITION_NONE:b.CONDITION_BY_VALUE},args:[e.getValue()],itemsSnapshot:t}}},{key:"updateState",value:function(e){var t=this,n=function(n,r,o,a,s){var u=(0,p.arrayFilter)(r,(function(e){return e.name===b.CONDITION_BY_VALUE})),l=(0,i.default)(u,1)[0],c={},f=t.hot.getTranslatedPhrase(m.FILTERS_VALUES_BLANK_CELLS);if(l){var d=(0,g.unifyColumnValues)((0,p.arrayMap)(a(n,s),(function(e){return e.value})));o&&(l.args[0]=o);var h=[],y=(0,g.intersectValues)(d,l.args[0],f,(function(e){e.checked&&h.push(e.value)})),v=e.editedConditionStack.column;c.locale=t.hot.getCellMeta(0,v).locale,c.args=[h],c.command=(0,T.getConditionDescriptor)(b.CONDITION_BY_VALUE),c.itemsSnapshot=y}else c.args=[],c.command=(0,T.getConditionDescriptor)(b.CONDITION_NONE);t.state.setValueAtIndex(n,c)};n(e.editedConditionStack.column,e.editedConditionStack.conditions,e.conditionArgsChange,e.filteredRowsFactory),e.dependentConditionStacks.length&&n(e.dependentConditionStacks[0].column,e.dependentConditionStacks[0].conditions,e.conditionArgsChange,e.filteredRowsFactory,e.editedConditionStack)}},{key:"getMultipleSelectElement",value:function(){return this.elements.filter((function(e){return e instanceof E.default}))[0]}},{key:"getMenuItemDescriptor",value:function(){var e=this;return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:function(){return e.isHidden()},renderer:function(t,n,r,o,i,a){(0,d.addClass)(n.parentNode,"htFiltersMenuValue");var s=e.hot.rootDocument.createElement("div");return(0,d.addClass)(s,"htFiltersMenuLabel"),s.textContent=a,n.appendChild(s),n.parentNode.hasAttribute("ghost-table")||(0,p.arrayEach)(e.elements,(function(e){return n.appendChild(e.element)})),n}}}},{key:"reset",value:function(){var e=this.hot.getTranslatedPhrase(m.FILTERS_VALUES_BLANK_CELLS),t=(0,g.unifyColumnValues)(this._getColumnVisibleValues()),r=(0,g.intersectValues)(t,t,e);this.getMultipleSelectElement().setItems(r),(0,u.default)((0,f.default)(n.prototype),"reset",this).call(this),this.getMultipleSelectElement().setValue(t);var o=this.hot.getPlugin("filters").getSelectedColumn().visualIndex;this.getMultipleSelectElement().setLocale(this.hot.getCellMeta(0,o).locale)}},{key:"onInputKeyDown",value:function(e){(0,y.isKey)(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),(0,h.stopImmediatePropagation)(e))}},{key:"_getColumnVisibleValues",value:function(){var e=this.hot.getPlugin("filters").getSelectedColumn(),t=e&&e.visualIndex;return(0,p.arrayMap)(this.hot.getDataAtCol(t),(function(e){return(0,g.toEmptyString)(e)}))}}]),n}(v.default);t.default=R},function(e,t,n){"use strict";n(7),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.default=void 0;var i=r(n(44)),a=r(n(5)),s=r(n(6)),u=r(n(46)),l=r(n(31)),c=r(n(15)),f=r(n(16)),d=r(n(14));n(3),n(0),n(2),n(11),n(4),n(76),n(35);var h=n(23),p=n(17),y=n(20),m=n(116),g=n(68),v=n(144),E=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=O(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30)),b=n(81),T=r(n(201)),C=r(n(317)),w=r(n(996)),R=n(199);function O(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(O=function(e){return e?n:t})(e)}function S(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,f.default)(this,n)}}var A=new WeakMap,N=function(e){(0,c.default)(n,e);var t=S(n);function n(e,r){var o;return(0,a.default)(this,n),o=t.call(this,e,(0,p.extend)(n.DEFAULTS,r)),A.set((0,u.default)(o),{}),o.searchInput=new C.default(o.hot,{placeholder:E.FILTERS_BUTTONS_PLACEHOLDER_SEARCH,className:"htUIMultipleSelectSearch"}),o.selectAllUI=new w.default(o.hot,{textContent:E.FILTERS_BUTTONS_SELECT_ALL,className:"htUISelectAll"}),o.clearAllUI=new w.default(o.hot,{textContent:E.FILTERS_BUTTONS_CLEAR,className:"htUIClearAll"}),o.items=[],o.itemsBox=null,o.registerHooks(),o}return(0,s.default)(n,[{key:"registerHooks",value:function(){var e=this;this.searchInput.addLocalHook("keydown",(function(t){return e.onInputKeyDown(t)})),this.searchInput.addLocalHook("input",(function(t){return e.onInput(t)})),this.selectAllUI.addLocalHook("click",(function(t){return e.onSelectAllClick(t)})),this.clearAllUI.addLocalHook("click",(function(t){return e.onClearAllClick(t)}))}},{key:"setItems",value:function(e){this.items=e,this.itemsBox&&this.itemsBox.loadData(this.items)}},{key:"setLocale",value:function(e){this.locale=e}},{key:"getLocale",value:function(){return this.locale}},{key:"getItems",value:function(){return(0,i.default)(this.items)}},{key:"getValue",value:function(){return e=this.items,t=[],(0,y.arrayEach)(e,(function(e){e.checked&&t.push(e.value)})),t;var e,t}},{key:"isSelectedAllValues",value:function(){return this.items.length===this.getValue().length}},{key:"build",value:function(){var e=this;(0,l.default)((0,d.default)(n.prototype),"build",this).call(this);var t=this.hot.rootDocument,r=t.createElement("div"),o=new T.default(this.hot,{className:"htUISelectionControls",children:[this.selectAllUI,this.clearAllUI]});this._element.appendChild(this.searchInput.element),this._element.appendChild(o.element),this._element.appendChild(r);var i=function(n){e._element&&(e.itemsBox&&e.itemsBox.destroy(),(0,h.addClass)(n,"htUIMultipleSelectHot"),e.itemsBox=new e.hot.constructor(n,{data:e.items,columns:[{data:"checked",type:"checkbox",label:{property:"visualValue",position:"after"}}],beforeRenderer:function(e,t,n,r,o,i){e.title=i.instance.getDataAtRowProp(t,i.label.property)},maxCols:1,autoWrapCol:!0,height:110,colWidths:function(){return e.itemsBox.container.scrollWidth-(0,h.getScrollbarWidth)(t)},copyPaste:!1,disableVisualSelection:"area",fillHandle:!1,fragmentSelection:"cell",tabMoves:{row:1,col:0},layoutDirection:e.hot.isRtl()?"rtl":"ltr"}),e.itemsBox.init(),e.itemsBox.getShortcutManager().getContext("grid").addShortcut({keys:[["Escape"]],callback:function(t){e.runLocalHooks("keydown",t,e)},group:"multipleSelect.itemBox"}))};i(r),setTimeout((function(){return i(r)}),100)}},{key:"reset",value:function(){this.searchInput.reset(),this.selectAllUI.reset(),this.clearAllUI.reset()}},{key:"update",value:function(){var e,t,r;this.isBuilt()&&(this.itemsBox.loadData((e=this.items,t=this.options.value,r=(0,R.createArrayAssertion)(t),(0,y.arrayMap)(e,(function(e){return e.checked=r(e.value),e})))),(0,l.default)((0,d.default)(n.prototype),"update",this).call(this))}},{key:"destroy",value:function(){this.itemsBox&&this.itemsBox.destroy(),this.searchInput.destroy(),this.clearAllUI.destroy(),this.selectAllUI.destroy(),this.searchInput=null,this.clearAllUI=null,this.selectAllUI=null,this.itemsBox=null,this.items=null,(0,l.default)((0,d.default)(n.prototype),"destroy",this).call(this)}},{key:"onInput",value:function(e){var t,n=this,r=e.target.value.toLocaleLowerCase(this.getLocale());t=""===r?(0,i.default)(this.items):(0,y.arrayFilter)(this.items,(function(e){return"".concat(e.value).toLocaleLowerCase(n.getLocale()).indexOf(r)>=0})),this.itemsBox.loadData(t)}},{key:"onInputKeyDown",value:function(e){this.runLocalHooks("keydown",e,this),(0,g.partial)(m.isKey,e.keyCode)("ARROW_DOWN|TAB")&&!this.itemsBox.isListening()&&((0,b.stopImmediatePropagation)(e),this.itemsBox.listen(),this.itemsBox.selectCell(0,0))}},{key:"onSelectAllClick",value:function(e){var t=[];e.preventDefault(),(0,y.arrayEach)(this.itemsBox.getSourceData(),(function(e,n){e.checked=!0,t.push((0,v.dataRowToChangesArray)(e,n)[0])})),this.itemsBox.setSourceDataAtCell(t)}},{key:"onClearAllClick",value:function(e){var t=[];e.preventDefault(),(0,y.arrayEach)(this.itemsBox.getSourceData(),(function(e,n){e.checked=!1,t.push((0,v.dataRowToChangesArray)(e,n)[0])})),this.itemsBox.setSourceDataAtCell(t)}}],[{key:"DEFAULTS",get:function(){return(0,p.clone)({className:"htUIMultipleSelect",value:[]})}}]),n}(T.default);t.default=N},function(e,t,n){"use strict";n(7);var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(46)),s=r(n(31)),u=r(n(15)),l=r(n(16)),c=r(n(14));n(3),n(0),n(2),n(11),n(4),n(997);var f=n(17),d=r(n(201));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,l.default)(this,n)}}var p=new WeakMap,y=function(e){(0,u.default)(n,e);var t=h(n);function n(e,r){var i;return(0,o.default)(this,n),i=t.call(this,e,(0,f.extend)(n.DEFAULTS,r)),p.set((0,a.default)(i),{}),i}return(0,i.default)(n,[{key:"build",value:function(){(0,s.default)((0,c.default)(n.prototype),"build",this).call(this),p.get(this).link=this._element.firstChild}},{key:"update",value:function(){this.isBuilt()&&(p.get(this).link.textContent=this.translateIfPossible(this.options.textContent))}}],[{key:"DEFAULTS",get:function(){return(0,f.clone)({href:"#",tagName:"a"})}}]),n}(d.default);t.default=y},function(e,t,n){"use strict";var r=n(28),o=n(998);r({target:"String",proto:!0,forced:n(999)("link")},{link:function(e){return o(this,"a","href",e)}})},function(e,t,n){var r=n(36),o=n(89),i=n(71),a=/"/g,s=r("".replace);e.exports=function(e,t,n,r){var u=i(o(e)),l="<"+t;return""!==n&&(l+=" "+n+'="'+s(i(r),a,""")+'"'),l+">"+u+"</"+t+">"}},function(e,t,n){var r=n(39);e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},function(e,t,n){"use strict";n(0),n(7),n(3),n(2),n(11),n(4),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.default=void 0,n(25);var i=r(n(5)),a=r(n(6)),s=r(n(15)),u=r(n(16)),l=r(n(14)),c=n(23),f=n(20),d=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=y(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30)),h=r(n(237)),p=r(n(317));function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(y=function(e){return e?n:t})(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,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,u.default)(this,n)}}var g=function(e){(0,s.default)(n,e);var t=m(n);function n(e,r){var o;return(0,i.default)(this,n),(o=t.call(this,e,{id:r.id,stateless:!0})).name=r.name,o.elements.push(new p.default(o.hot,{type:"button",value:d.FILTERS_BUTTONS_OK,className:"htUIButton htUIButtonOK",identifier:n.BUTTON_OK})),o.elements.push(new p.default(o.hot,{type:"button",value:d.FILTERS_BUTTONS_CANCEL,className:"htUIButton htUIButtonCancel",identifier:n.BUTTON_CANCEL})),o.registerHooks(),o}return(0,a.default)(n,[{key:"registerHooks",value:function(){var e=this;(0,f.arrayEach)(this.elements,(function(t){t.addLocalHook("click",(function(t,n){return e.onButtonClick(t,n)}))}))}},{key:"getMenuItemDescriptor",value:function(){var e=this;return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:function(){return e.isHidden()},renderer:function(t,n){return(0,c.addClass)(n.parentNode,"htFiltersMenuActionBar"),n.parentNode.hasAttribute("ghost-table")||(0,f.arrayEach)(e.elements,(function(e){return n.appendChild(e.element)})),n}}}},{key:"accept",value:function(){this.runLocalHooks("accept")}},{key:"cancel",value:function(){this.runLocalHooks("cancel")}},{key:"onButtonClick",value:function(e,t){t.options.identifier===n.BUTTON_OK?this.accept():this.cancel()}}],[{key:"BUTTON_OK",get:function(){return"ok"}},{key:"BUTTON_CANCEL",get:function(){return"cancel"}}]),n}(h.default);t.default=g},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0,n(35),n(13),n(18),n(40),n(0);var o=r(n(5)),i=r(n(6)),a=n(20),s=n(17),u=n(68),l=r(n(92)),c=r(n(634)),f=r(n(635)),d=n(199),h=function(){function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return[]};(0,o.default)(this,e),this.hot=t,this.conditionCollection=n,this.columnDataFactory=i,this.changes=[],this.grouping=!1,this.latestEditedColumnPosition=-1,this.latestOrderStack=[],this.conditionCollection.addLocalHook("beforeRemove",(function(e){return r._onConditionBeforeModify(e)})),this.conditionCollection.addLocalHook("afterRemove",(function(e){return r.updateStatesAtColumn(e)})),this.conditionCollection.addLocalHook("afterAdd",(function(e){return r.updateStatesAtColumn(e)})),this.conditionCollection.addLocalHook("beforeClean",(function(){return r._onConditionBeforeClean()})),this.conditionCollection.addLocalHook("afterClean",(function(){return r._onConditionAfterClean()}))}return(0,i.default)(e,[{key:"groupChanges",value:function(){this.grouping=!0}},{key:"flush",value:function(){var e=this;this.grouping=!1,(0,a.arrayEach)(this.changes,(function(t){e.updateStatesAtColumn(t)})),this.changes.length=0}},{key:"_onConditionBeforeModify",value:function(e){this.latestEditedColumnPosition=this.conditionCollection.getColumnStackPosition(e)}},{key:"updateStatesAtColumn",value:function(e,t){var n=this;if(this.grouping)-1===this.changes.indexOf(e)&&this.changes.push(e);else{var r=this.conditionCollection.exportAllConditions(),o=this.conditionCollection.getColumnStackPosition(e);-1===o&&(o=this.latestEditedColumnPosition);var i=r.slice(0,o),s=r.slice(o);s.length&&s[0].column===e&&s.shift();var l=(0,u.curry)((function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=new c.default(n.hot,!1),i=[].concat(e,r);o.importAllConditions(i);var s,u=n.columnDataFactory(t);s=o.isEmpty()?u:new f.default(o,(function(e){return n.columnDataFactory(e)})).filter(),s=(0,a.arrayMap)(s,(function(e){return e.meta.visualRow}));var l=(0,d.createArrayAssertion)(s);return o.destroy(),(0,a.arrayFilter)(u,(function(e){return l(e.meta.visualRow)}))}))(i),h=[].concat(this.conditionCollection.getConditions(e));this.runLocalHooks("update",{editedConditionStack:{column:e,conditions:h},dependentConditionStacks:s,filteredRowsFactory:l,conditionArgsChange:t})}}},{key:"_onConditionBeforeClean",value:function(){this.latestOrderStack=this.conditionCollection.getFilteredColumns()}},{key:"_onConditionAfterClean",value:function(){var e=this;(0,a.arrayEach)(this.latestOrderStack,(function(t){e.updateStatesAtColumn(t)}))}},{key:"destroy",value:function(){var e=this;this.clearLocalHooks(),(0,s.objectEach)(this,(function(t,n){e[n]=null}))}}]),e}();(0,s.mixin)(h,l.default);var p=h;t.default=p},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.Formulas=void 0;var r=n(318);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.Formulas=r.Formulas},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.getRegisteredHotInstances=function(e){var t,n=c(),r=0===n.size?[]:Array.from(null!==(t=n.get(e))&&void 0!==t?t:[]);return new Map(r.map((function(e){return[e.getPlugin("formulas").sheetId,e]})))},t.registerCustomFunctions=h,t.registerEngine=d,t.registerLanguage=p,t.registerNamedExpressions=y,t.setupEngine=function(e){var t,n=e.getSettings(),r=n[u.PLUGIN_KEY],i=null==r?void 0:r.engine;if(!0===r)return null;if((0,a.isUndefined)(i))return null;if("function"==typeof i.hyperformula||"function"==typeof i)return d(null!==(t=i.hyperformula)&&void 0!==t?t:i,n,e);if("object"===(0,o.default)(i)&&(0,a.isUndefined)(i.hyperformula)){var s=c(),h=f().get(i);return s.has(i)||s.set(i,[]),s.get(i).push(e),h&&h.push(e.guid),i.getConfig().licenseKey||i.updateConfig({licenseKey:l.DEFAULT_LICENSE_KEY}),i}return null},t.setupSheet=function(e,t){!(0,a.isUndefined)(t)&&e.doesSheetExist(t)||(t=e.addSheet(t));return t},t.unregisterEngine=function(e,t){if(e){var n=c(),r=n.get(e),o=f(),i=o.get(e);r&&r.includes(t)&&(r.splice(r.indexOf(t),1),0===r.length&&n.delete(e)),i&&i.includes(t.guid)&&(i.splice(i.indexOf(t.guid),1),0===i.length&&(o.delete(e),e.destroy()))}};var o=r(n(21));n(3),n(33),n(0),n(2),n(4),n(22),n(37),n(42),n(49),n(54),n(35),n(26),n(25);var i=r(n(110)),a=n(32),s=n(88),u=n(318),l=n(636);function c(){var e=(0,i.default)(u.PLUGIN_KEY);return e.hasItem("engine_relationship")||e.register("engine_relationship",new Map),e.getItem("engine_relationship")}function f(){var e=(0,i.default)(u.PLUGIN_KEY);return e.hasItem("shared_engine_usage")||e.register("shared_engine_usage",new Map),e.getItem("shared_engine_usage")}function d(e,t,n){var r=t[u.PLUGIN_KEY],o=(0,l.getEngineSettingsWithDefaultsAndOverrides)(t),i=c(),a=f();h(e,r.functions),p(e,r.language);var s=e.buildEmpty(o);return i.set(s,[n]),a.set(s,[n.guid]),y(s,r.namedExpressions),s.on("sheetAdded",(function(){s.rebuildAndRecalculate()})),s.on("sheetRemoved",(function(){s.rebuildAndRecalculate()})),s}function h(e,t){t&&t.forEach((function(t){var n=t.name,r=t.plugin,o=t.translations;try{e.registerFunction(n,r,o)}catch(e){(0,s.warn)(e.message)}}))}function p(e,t){if(t){var n=t.langCode;try{e.registerLanguage(n,t)}catch(e){(0,s.warn)(e.message)}}}function y(e,t){t&&(e.suspendEvaluation(),t.forEach((function(t){var n=t.name,r=t.expression,o=t.scope,i=t.options;try{e.addNamedExpression(n,r,o,i)}catch(e){(0,s.warn)(e.message)}})),e.resumeEvaluation())}},function(e,t,n){"use strict";function r(e){return"string"==typeof e&&"'"===e.charAt(0)&&"="===e.charAt(1)}t.__esModule=!0,t.isEscapedFormulaExpression=r,t.unescapeFormulaExpression=function(e){return r(e)?e.substr(1):e}},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.HiddenColumns=void 0;var r=n(1007);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.HiddenColumns=r.HiddenColumns},function(e,t,n){"use strict";n(7);var r=n(1);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.HiddenColumns=void 0,n(18),n(13),n(37),n(22),n(2),n(3),n(0),n(55),n(4),n(67),n(52),n(35),n(12),n(61),n(54),n(75),n(11);var o=r(n(5)),i=r(n(6)),a=r(n(46)),s=r(n(31)),u=r(n(15)),l=r(n(16)),c=r(n(14)),f=r(n(103)),d=r(n(104)),h=n(50),p=n(23),y=n(47),m=n(20),g=n(17),v=n(32),E=n(118),b=r(n(74)),T=r(n(1008)),C=r(n(1009)),w=n(82);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,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,l.default)(this,n)}}function O(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}n(1010),b.default.getSingleton().register("beforeHideColumns"),b.default.getSingleton().register("afterHideColumns"),b.default.getSingleton().register("beforeUnhideColumns"),b.default.getSingleton().register("afterUnhideColumns");t.PLUGIN_KEY="hiddenColumns";t.PLUGIN_PRIORITY=310;var S=new WeakMap,A=new WeakMap,N=function(e){(0,u.default)(n,e);var t=R(n);function n(){var e;(0,o.default)(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),O((0,a.default)(e),S,{writable:!0,value:{}}),O((0,a.default)(e),A,{writable:!0,value:null}),e}return(0,i.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().hiddenColumns}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var t=this.hot.getSettings().hiddenColumns;(0,g.isObject)(t)&&((0,d.default)(this,S,t),(0,v.isUndefined)(t.copyPasteEnabled)&&(t.copyPasteEnabled=!0)),(0,d.default)(this,A,new w.HidingMap),(0,f.default)(this,A).addLocalHook("init",(function(){return e.onMapInit()})),this.hot.columnIndexMapper.registerMap(this.pluginName,(0,f.default)(this,A)),this.addHook("afterContextMenuDefaultOptions",(function(){return e.onAfterContextMenuDefaultOptions.apply(e,arguments)})),this.addHook("afterGetCellMeta",(function(t,n,r){return e.onAfterGetCellMeta(t,n,r)})),this.addHook("modifyColWidth",(function(t,n){return e.onModifyColWidth(t,n)})),this.addHook("afterGetColHeader",(function(){return e.onAfterGetColHeader.apply(e,arguments)})),this.addHook("modifyCopyableRange",(function(t){return e.onModifyCopyableRange(t)})),(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(){this.hot.columnIndexMapper.unregisterMap(this.pluginName),(0,d.default)(this,S,{}),(0,s.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this),this.resetCellsMeta()}},{key:"showColumns",value:function(e){var t=this,n=this.getHiddenColumns(),r=this.isValidConfig(e),o=n,i=(0,f.default)(this,A).getValues().slice(),a=e.length>0;if(r&&a){var s=e.map((function(e){return t.hot.toPhysicalColumn(e)}));(0,m.arrayEach)(s,(function(e){i[e]=!1})),o=(0,m.arrayReduce)(i,(function(e,n,r){return n&&e.push(t.hot.toVisualColumn(r)),e}),[])}!1!==this.hot.runHooks("beforeUnhideColumns",n,o,r&&a)&&(r&&a&&(0,f.default)(this,A).setValues(i),this.hot.view.adjustElementsSize(),this.hot.runHooks("afterUnhideColumns",n,o,r&&a,r&&o.length<n.length))}},{key:"showColumn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.showColumns(t)}},{key:"hideColumns",value:function(e){var t=this,n=this.getHiddenColumns(),r=this.isValidConfig(e),o=n;r&&(o=Array.from(new Set(n.concat(e)))),!1!==this.hot.runHooks("beforeHideColumns",n,o,r)&&(r&&this.hot.batchExecution((function(){(0,m.arrayEach)(e,(function(e){(0,f.default)(t,A).setValueAtIndex(t.hot.toPhysicalColumn(e),!0)}))}),!0),this.hot.runHooks("afterHideColumns",n,o,r,r&&o.length>n.length))}},{key:"hideColumn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.hideColumns(t)}},{key:"getHiddenColumns",value:function(){var e=this;return(0,m.arrayMap)((0,f.default)(this,A).getHiddenIndexes(),(function(t){return e.hot.toVisualColumn(t)}))}},{key:"isHidden",value:function(e){return(0,f.default)(this,A).getValueAtIndex(this.hot.toPhysicalColumn(e))||!1}},{key:"isValidConfig",value:function(e){var t=this.hot.countCols();return!!(Array.isArray(e)&&e.length>0)&&e.every((function(e){return Number.isInteger(e)&&e>=0&&e<t}))}},{key:"resetCellsMeta",value:function(){(0,m.arrayEach)(this.hot.getCellsMeta(),(function(e){e&&(e.skipColumnOnPaste=!1)}))}},{key:"onModifyColWidth",value:function(e,t){return this.isHidden(t)?0:(0,f.default)(this,S).indicators&&(this.isHidden(t+1)||this.isHidden(t-1))&&"number"==typeof e&&this.hot.hasColHeaders()?e+15:void 0}},{key:"onAfterGetCellMeta",value:function(e,t,n){if(!1===(0,f.default)(this,S).copyPasteEnabled&&this.isHidden(t)&&(n.skipColumnOnPaste=!0),this.isHidden(t-1))n.className=n.className||"",-1===n.className.indexOf("afterHiddenColumn")&&(n.className+=" afterHiddenColumn");else if(n.className){var r=n.className.split(" ");if(r.length>0){var o=r.indexOf("afterHiddenColumn");o>-1&&r.splice(o,1),n.className=r.join(" ")}}}},{key:"onModifyCopyableRange",value:function(e){var t=this;if((0,f.default)(this,S).copyPasteEnabled)return e;var n=[],r=function(e,t,r,o){n.push({startRow:e,endRow:t,startCol:r,endCol:o})};return(0,m.arrayEach)(e,(function(e){var n=!0,o=0;(0,y.rangeEach)(e.startCol,e.endCol,(function(i){t.isHidden(i)?(n||r(e.startRow,e.endRow,o,i-1),n=!0):(n&&(o=i),i===e.endCol&&r(e.startRow,e.endRow,o,i),n=!1)}))})),n}},{key:"onAfterGetColHeader",value:function(e,t){if((0,f.default)(this,S).indicators&&!(e<0)){var n=[];e>=1&&this.isHidden(e-1)&&n.push("afterHiddenColumn"),e<this.hot.countCols()-1&&this.isHidden(e+1)&&n.push("beforeHiddenColumn"),(0,p.addClass)(t,n)}}},{key:"onAfterContextMenuDefaultOptions",value:function(e){e.items.push({name:E.SEPARATOR},(0,T.default)(this),(0,C.default)(this))}},{key:"onMapInit",value:function(){Array.isArray((0,f.default)(this,S).columns)&&this.hideColumns((0,f.default)(this,S).columns)}},{key:"destroy",value:function(){(0,d.default)(this,S,null),(0,d.default)(this,A,null),(0,s.default)((0,c.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"hiddenColumns"}},{key:"PLUGIN_PRIORITY",get:function(){return 310}}]),n}(h.BasePlugin);t.HiddenColumns=N},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.default=function(e){return{key:"hidden_columns_hide",name:function(){var e=this.getSelectedLast(),t=0;if(Array.isArray(e)){var n=(0,i.default)(e,4);n[1]-n[3]!=0&&(t=1)}return this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_HIDE_COLUMN,t)},callback:function(){for(var t=this.getSelectedRangeLast(),n=t.from,r=t.to,o=Math.max(Math.min(n.col,r.col),0),i=Math.max(n.col,r.col),a=[],s=o;s<=i;s+=1)a.push(s);var u=a[0],l=a[a.length-1],c=this.columnIndexMapper.getFirstNotHiddenIndex(l+1,1,!0,u-1);e.hideColumns(a),Number.isInteger(c)&&c>=0?this.selectColumns(c):this.deselectCell(),this.render(),this.view.adjustElementsSize(!0)},disabled:!1,hidden:function(){return!(this.selection.isSelectedByColumnHeader()||this.selection.isSelectedByCorner())}}},n(67),n(52);var i=r(n(34)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(r,a,u):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}},function(e,t,n){"use strict";n(3),n(2),n(11),n(4),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.default=function(e){var t=[];return{key:"hidden_columns_show",name:function(){var e=t.length>1?1:0;return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_SHOW_COLUMN,e)},callback:function(){var n,r;if(0!==t.length){var o=t[0],i=t[t.length-1];o=null!==(n=this.columnIndexMapper.getFirstNotHiddenIndex(o-1,-1))&&void 0!==n?n:0,i=null!==(r=this.columnIndexMapper.getFirstNotHiddenIndex(i+1,1))&&void 0!==r?r:this.countCols()-1,e.showColumns(t),this.render(),this.view.adjustElementsSize(!0),i-o+1===this.countCols()||this.selectColumns(o,i)}},disabled:!1,hidden:function(){var n=this,r=(0,a.arrayMap)(e.getHiddenColumns(),(function(e){return n.toPhysicalColumn(e)}));if(!this.selection.isSelectedByColumnHeader()&&!this.selection.isSelectedByCorner()||r.length<1)return!0;t.length=0;var o=this.getSelectedRangeLast(),s=o.getTopStartCorner().col,u=o.getBottomEndCorner().col,l=this.columnIndexMapper,c=l.getRenderableFromVisualIndex(s),f=l.getRenderableFromVisualIndex(u),d=l.getNotTrimmedIndexes(),h=[];if(s!==u){if(u-s+1>f-c+1){var p=d.slice(s,u+1);h.push.apply(h,(0,i.default)(p.filter((function(e){return r.includes(e)}))))}}else if(0===c&&c<s)h.push.apply(h,(0,i.default)(d.slice(0,s)));else if(null===c)h.push.apply(h,(0,i.default)(d.slice(0,this.countCols())));else{var y=this.countCols()-1;f===l.getRenderableFromVisualIndex(l.getFirstNotHiddenIndex(y,-1))&&y>u&&h.push.apply(h,(0,i.default)(d.slice(u+1)))}return(0,a.arrayEach)(h,(function(e){t.push(n.toVisualColumn(e))})),0===t.length}}};var i=r(n(44));n(13),n(40),n(0),n(42),n(49);var a=n(20),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.HiddenRows=void 0;var r=n(1012);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.HiddenRows=r.HiddenRows},function(e,t,n){"use strict";n(7);var r=n(1);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.HiddenRows=void 0,n(18),n(13),n(37),n(22),n(2),n(3),n(0),n(55),n(4),n(67),n(52),n(35),n(12),n(61),n(54),n(75),n(11);var o=r(n(5)),i=r(n(6)),a=r(n(46)),s=r(n(31)),u=r(n(15)),l=r(n(16)),c=r(n(14)),f=r(n(103)),d=r(n(104)),h=n(50),p=n(23),y=n(47),m=n(20),g=n(17),v=n(32),E=n(118),b=r(n(74)),T=r(n(1013)),C=r(n(1014)),w=n(82);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,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,l.default)(this,n)}}function O(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}n(1015),b.default.getSingleton().register("beforeHideRows"),b.default.getSingleton().register("afterHideRows"),b.default.getSingleton().register("beforeUnhideRows"),b.default.getSingleton().register("afterUnhideRows");t.PLUGIN_KEY="hiddenRows";t.PLUGIN_PRIORITY=320;var S=new WeakMap,A=new WeakMap,N=function(e){(0,u.default)(n,e);var t=R(n);function n(){var e;(0,o.default)(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),O((0,a.default)(e),S,{writable:!0,value:{}}),O((0,a.default)(e),A,{writable:!0,value:null}),e}return(0,i.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().hiddenRows}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var t=this.hot.getSettings().hiddenRows;(0,g.isObject)(t)&&((0,d.default)(this,S,t),(0,v.isUndefined)(t.copyPasteEnabled)&&(t.copyPasteEnabled=!0)),(0,d.default)(this,A,new w.HidingMap),(0,f.default)(this,A).addLocalHook("init",(function(){return e.onMapInit()})),this.hot.rowIndexMapper.registerMap(this.pluginName,(0,f.default)(this,A)),this.addHook("afterContextMenuDefaultOptions",(function(){return e.onAfterContextMenuDefaultOptions.apply(e,arguments)})),this.addHook("afterGetCellMeta",(function(t,n,r){return e.onAfterGetCellMeta(t,n,r)})),this.addHook("modifyRowHeight",(function(t,n){return e.onModifyRowHeight(t,n)})),this.addHook("afterGetRowHeader",(function(){return e.onAfterGetRowHeader.apply(e,arguments)})),this.addHook("modifyCopyableRange",(function(t){return e.onModifyCopyableRange(t)})),(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(){this.hot.rowIndexMapper.unregisterMap(this.pluginName),(0,d.default)(this,S,{}),(0,s.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this),this.resetCellsMeta()}},{key:"showRows",value:function(e){var t=this,n=this.getHiddenRows(),r=this.isValidConfig(e),o=n,i=(0,f.default)(this,A).getValues().slice(),a=e.length>0;if(r&&a){var s=e.map((function(e){return t.hot.toPhysicalRow(e)}));(0,m.arrayEach)(s,(function(e){i[e]=!1})),o=(0,m.arrayReduce)(i,(function(e,n,r){return n&&e.push(t.hot.toVisualRow(r)),e}),[])}!1!==this.hot.runHooks("beforeUnhideRows",n,o,r&&a)&&(r&&a&&(0,f.default)(this,A).setValues(i),this.hot.runHooks("afterUnhideRows",n,o,r&&a,r&&o.length<n.length))}},{key:"showRow",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.showRows(t)}},{key:"hideRows",value:function(e){var t=this,n=this.getHiddenRows(),r=this.isValidConfig(e),o=n;r&&(o=Array.from(new Set(n.concat(e)))),!1!==this.hot.runHooks("beforeHideRows",n,o,r)&&(r&&this.hot.batchExecution((function(){(0,m.arrayEach)(e,(function(e){(0,f.default)(t,A).setValueAtIndex(t.hot.toPhysicalRow(e),!0)}))}),!0),this.hot.runHooks("afterHideRows",n,o,r,r&&o.length>n.length))}},{key:"hideRow",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.hideRows(t)}},{key:"getHiddenRows",value:function(){var e=this;return(0,m.arrayMap)((0,f.default)(this,A).getHiddenIndexes(),(function(t){return e.hot.toVisualRow(t)}))}},{key:"isHidden",value:function(e){return(0,f.default)(this,A).getValueAtIndex(this.hot.toPhysicalRow(e))||!1}},{key:"isValidConfig",value:function(e){var t=this.hot.countRows();return!!(Array.isArray(e)&&e.length>0)&&e.every((function(e){return Number.isInteger(e)&&e>=0&&e<t}))}},{key:"resetCellsMeta",value:function(){(0,m.arrayEach)(this.hot.getCellsMeta(),(function(e){e&&(e.skipRowOnPaste=!1)}))}},{key:"onModifyRowHeight",value:function(e,t){return this.isHidden(t)?0:e}},{key:"onAfterGetCellMeta",value:function(e,t,n){if(!1===(0,f.default)(this,S).copyPasteEnabled&&this.isHidden(e)&&(n.skipRowOnPaste=!0),this.isHidden(e-1))n.className=n.className||"",-1===n.className.indexOf("afterHiddenRow")&&(n.className+=" afterHiddenRow");else if(n.className){var r=n.className.split(" ");if(r.length>0){var o=r.indexOf("afterHiddenRow");o>-1&&r.splice(o,1),n.className=r.join(" ")}}}},{key:"onModifyCopyableRange",value:function(e){var t=this;if((0,f.default)(this,S).copyPasteEnabled)return e;var n=[],r=function(e,t,r,o){n.push({startRow:e,endRow:t,startCol:r,endCol:o})};return(0,m.arrayEach)(e,(function(e){var n=!0,o=0;(0,y.rangeEach)(e.startRow,e.endRow,(function(i){t.isHidden(i)?(n||r(o,i-1,e.startCol,e.endCol),n=!0):(n&&(o=i),i===e.endRow&&r(o,i,e.startCol,e.endCol),n=!1)}))})),n}},{key:"onAfterGetRowHeader",value:function(e,t){if((0,f.default)(this,S).indicators&&!(e<0)){var n=[];e>=1&&this.isHidden(e-1)&&n.push("afterHiddenRow"),e<this.hot.countRows()-1&&this.isHidden(e+1)&&n.push("beforeHiddenRow"),(0,p.addClass)(t,n)}}},{key:"onAfterContextMenuDefaultOptions",value:function(e){e.items.push({name:E.SEPARATOR},(0,T.default)(this),(0,C.default)(this))}},{key:"onMapInit",value:function(){Array.isArray((0,f.default)(this,S).rows)&&this.hideRows((0,f.default)(this,S).rows)}},{key:"destroy",value:function(){(0,d.default)(this,S,null),(0,d.default)(this,A,null),(0,s.default)((0,c.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"hiddenRows"}},{key:"PLUGIN_PRIORITY",get:function(){return 320}}]),n}(h.BasePlugin);t.HiddenRows=N},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.default=function(e){return{key:"hidden_rows_hide",name:function(){var e=this.getSelectedLast(),t=0;if(Array.isArray(e)){var n=(0,i.default)(e,3);n[0]-n[2]!=0&&(t=1)}return this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_HIDE_ROW,t)},callback:function(){for(var t=this.getSelectedRangeLast(),n=t.from,r=t.to,o=Math.max(Math.min(n.row,r.row),0),i=Math.max(n.row,r.row),a=[],s=o;s<=i;s+=1)a.push(s);var u=a[0],l=a[a.length-1],c=this.rowIndexMapper.getFirstNotHiddenIndex(l+1,1,!0,u-1);e.hideRows(a),Number.isInteger(c)&&c>=0?this.selectRows(c):this.deselectCell(),this.render(),this.view.adjustElementsSize(!0)},disabled:!1,hidden:function(){return!(this.selection.isSelectedByRowHeader()||this.selection.isSelectedByCorner())}}},n(67),n(52);var i=r(n(34)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(r,a,u):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}},function(e,t,n){"use strict";n(3),n(2),n(11),n(4),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.default=function(e){var t=[];return{key:"hidden_rows_show",name:function(){var e=t.length>1?1:0;return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_SHOW_ROW,e)},callback:function(){var n,r;if(0!==t.length){var o=t[0],i=t[t.length-1];o=null!==(n=this.rowIndexMapper.getFirstNotHiddenIndex(o-1,-1))&&void 0!==n?n:0,i=null!==(r=this.rowIndexMapper.getFirstNotHiddenIndex(i+1,1))&&void 0!==r?r:this.countRows()-1,e.showRows(t),this.render(),this.view.adjustElementsSize(!0),i-o+1===this.countRows()||this.selectRows(o,i)}},disabled:!1,hidden:function(){var n=this,r=(0,a.arrayMap)(e.getHiddenRows(),(function(e){return n.toPhysicalRow(e)}));if(!this.selection.isSelectedByRowHeader()&&!this.selection.isSelectedByCorner()||r.length<1)return!0;t.length=0;var o=this.getSelectedRangeLast(),s=o.getTopStartCorner().row,u=o.getBottomEndCorner().row,l=this.rowIndexMapper,c=l.getRenderableFromVisualIndex(s),f=l.getRenderableFromVisualIndex(u),d=l.getNotTrimmedIndexes(),h=[];if(s!==u){if(u-s+1>f-c+1){var p=d.slice(s,u+1);h.push.apply(h,(0,i.default)(p.filter((function(e){return r.includes(e)}))))}}else if(0===c&&c<s)h.push.apply(h,(0,i.default)(d.slice(0,s)));else if(null===c)h.push.apply(h,(0,i.default)(d.slice(0,this.countRows())));else{var y=this.countRows()-1;f===l.getRenderableFromVisualIndex(l.getFirstNotHiddenIndex(y,-1))&&y>u&&h.push.apply(h,(0,i.default)(d.slice(u+1)))}return(0,a.arrayEach)(h,(function(e){t.push(n.toVisualRow(e))})),0===t.length}}};var i=r(n(44));n(13),n(40),n(0),n(42),n(49);var a=n(20),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ManualColumnFreeze=void 0;var r=n(1017);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ManualColumnFreeze=r.ManualColumnFreeze},function(e,t,n){"use strict";n(7);var r=n(1);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ManualColumnFreeze=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(46)),s=r(n(31)),u=r(n(15)),l=r(n(16)),c=r(n(14));n(3),n(0),n(2),n(11),n(4);var f=n(50),d=r(n(1018)),h=r(n(1019));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,l.default)(this,n)}}n(1020);t.PLUGIN_KEY="manualColumnFreeze";t.PLUGIN_PRIORITY=110;var y=new WeakMap,m=function(e){(0,u.default)(n,e);var t=p(n);function n(e){var r;return(0,o.default)(this,n),r=t.call(this,e),y.set((0,a.default)(r),{afterFirstUse:!1}),r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().manualColumnFreeze}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("afterContextMenuDefaultOptions",(function(t){return e.addContextMenuEntry(t)})),this.addHook("beforeColumnMove",(function(t,n){return e.onBeforeColumnMove(t,n)})),(0,s.default)((0,c.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){y.get(this).afterFirstUse=!1,(0,s.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,s.default)((0,c.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"freezeColumn",value:function(e){var t=y.get(this),n=this.hot.getSettings();t.afterFirstUse||(t.afterFirstUse=!0),n.fixedColumnsStart===this.hot.countCols()||e<=n.fixedColumnsStart-1||(this.hot.columnIndexMapper.moveIndexes(e,n.fixedColumnsStart),n._fixedColumnsStart+=1)}},{key:"unfreezeColumn",value:function(e){var t=y.get(this),n=this.hot.getSettings();t.afterFirstUse||(t.afterFirstUse=!0),n.fixedColumnsStart<=0||e>n.fixedColumnsStart-1||(n._fixedColumnsStart-=1,this.hot.columnIndexMapper.moveIndexes(e,n.fixedColumnsStart))}},{key:"addContextMenuEntry",value:function(e){e.items.push({name:"---------"},(0,d.default)(this),(0,h.default)(this))}},{key:"onBeforeColumnMove",value:function(e,t){if(y.get(this).afterFirstUse){var n=this.hot.getSettings().fixedColumnsStart;if(t<n)return!1;if(e.some((function(e){return e<n})))return!1}}}],[{key:"PLUGIN_KEY",get:function(){return"manualColumnFreeze"}},{key:"PLUGIN_PRIORITY",get:function(){return 110}}]),n}(f.BasePlugin);t.ManualColumnFreeze=m},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.default=function(e){return{key:"freeze_column",name:function(){return this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_FREEZE_COLUMN)},callback:function(t,n){var r=(0,i.default)(n,1)[0].start.col;e.freezeColumn(r),this.render(),this.view.adjustElementsSize(!0)},hidden:function(){var e=this.getSelectedRange(),t=!1;return(void 0===e||e.length>1||e[0].from.col!==e[0].to.col||e[0].from.col<=this.getSettings().fixedColumnsStart-1)&&(t=!0),t}}};var i=r(n(34)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(r,a,u):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.default=function(e){return{key:"unfreeze_column",name:function(){return this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN)},callback:function(t,n){var r=(0,i.default)(n,1)[0].start.col;e.unfreezeColumn(r),this.render(),this.view.adjustElementsSize(!0)},hidden:function(){var e=this.getSelectedRange(),t=!1;return(void 0===e||e.length>1||e[0].from.col!==e[0].to.col||e[0].from.col>=this.getSettings().fixedColumnsStart)&&(t=!0),t}}};var i=r(n(34)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(r,a,u):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ManualColumnMove=void 0;var r=n(1022);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ManualColumnMove=r.ManualColumnMove},function(e,t,n){"use strict";n(7);var r=n(1);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ManualColumnMove=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(46)),s=r(n(31)),u=r(n(15)),l=r(n(16)),c=r(n(14));n(3),n(0),n(2),n(11),n(4),n(76),n(35);var f=n(50),d=r(n(74)),h=n(20),p=n(23),y=n(47),m=r(n(59)),g=r(n(1023)),v=r(n(1024));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,l.default)(this,n)}}n(1025),d.default.getSingleton().register("beforeColumnMove"),d.default.getSingleton().register("afterColumnMove");var b="manualColumnMove";t.PLUGIN_KEY=b;t.PLUGIN_PRIORITY=120;var T=new WeakMap,C=function(e){(0,u.default)(n,e);var t=E(n);function n(e){var r;return(0,o.default)(this,n),r=t.call(this,e),T.set((0,a.default)(r),{columnsToMove:[],countCols:0,fixedColumns:0,pressed:void 0,target:{eventPageX:void 0,coords:void 0,TD:void 0,col:void 0},cachedDropIndex:void 0}),r.eventManager=new m.default((0,a.default)(r)),r.backlight=new g.default(e),r.guideline=new v.default(e),r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings()[b]}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("beforeOnCellMouseDown",(function(){return e.onBeforeOnCellMouseDown.apply(e,arguments)})),this.addHook("beforeOnCellMouseOver",(function(){return e.onBeforeOnCellMouseOver.apply(e,arguments)})),this.addHook("afterScrollVertically",(function(){return e.onAfterScrollVertically()})),this.addHook("afterLoadData",(function(){return e.onAfterLoadData.apply(e,arguments)})),this.buildPluginUI(),this.registerEvents(),(0,p.addClass)(this.hot.rootElement,"ht__manualColumnMove"),(0,s.default)((0,c.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),this.moveBySettingsOrLoad(),(0,s.default)((0,c.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){(0,p.removeClass)(this.hot.rootElement,"ht__manualColumnMove"),this.unregisterEvents(),this.backlight.destroy(),this.guideline.destroy(),(0,s.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"moveColumn",value:function(e,t){return this.moveColumns([e],t)}},{key:"moveColumns",value:function(e,t){var n=T.get(this),r=n.cachedDropIndex,o=this.isMovePossible(e,t),i=this.hot.runHooks("beforeColumnMove",e,t,r,o);if(n.cachedDropIndex=void 0,!1!==i){o&&this.hot.columnIndexMapper.moveIndexes(e,t);var a=o&&this.isColumnOrderChanged(e,t);return this.hot.runHooks("afterColumnMove",e,t,r,o,a),a}}},{key:"dragColumn",value:function(e,t){return this.dragColumns([e],t)}},{key:"dragColumns",value:function(e,t){var n=this.countFinalIndex(e,t);return T.get(this).cachedDropIndex=t,this.moveColumns(e,n)}},{key:"isMovePossible",value:function(e,t){var n=this.hot.columnIndexMapper.getNotTrimmedIndexesLength(),r=e.length+t>n,o=t<0,i=e.some((function(e){return e<0})),a=e.some((function(e){return e>=n}));return!(r||o||i||a)}},{key:"isColumnOrderChanged",value:function(e,t){return e.some((function(e,n){return e-n!==t}))}},{key:"countFinalIndex",value:function(e,t){var n=(0,h.arrayReduce)(e,(function(e,n){return n<t&&(e+=1),e}),0);return t-n}},{key:"getColumnsWidth",value:function(e,t){for(var n=this.hot.columnIndexMapper,r=0,o=e;o<=t;o+=1){var i=n.getRenderableFromVisualIndex(o);o<0?r+=this.hot.view._wt.wtViewport.getRowHeaderWidth()||0:null!==i&&(r+=this.hot.view._wt.wtTable.getStretchedColumnWidth(i)||0)}return r}},{key:"moveBySettingsOrLoad",value:function(){var e=this.hot.getSettings()[b];if(Array.isArray(e))this.moveColumns(e,0);else if(void 0!==e){var t=this.persistentStateLoad();t.length&&this.moveColumns(t,0)}}},{key:"isFixedColumnsStart",value:function(e){return e<this.hot.getSettings().fixedColumnsStart}},{key:"persistentStateSave",value:function(){this.hot.runHooks("persistentStateSave","manualColumnMove",this.hot.columnIndexMapper.getIndexesSequence())}},{key:"persistentStateLoad",value:function(){var e={};return this.hot.runHooks("persistentStateLoad","manualColumnMove",e),e.value?e.value:[]}},{key:"prepareColumnsToMoving",value:function(e,t){var n=[];return(0,y.rangeEach)(e,t,(function(e){n.push(e)})),n}},{key:"refreshPositions",value:function(){var e=T.get(this),t=this.hot.view._wt.wtTable.getFirstVisibleColumn(),n=this.hot.view._wt.wtTable.getLastVisibleColumn(),r=this.hot.view._wt.wtTable,o=this.hot.view._wt.wtOverlays.scrollableElement,i="number"==typeof o.scrollX?o.scrollX:o.scrollLeft,a=this.hot.view.THEAD.offsetLeft+this.getColumnsWidth(0,e.hoveredColumn-1),s=r.hider.offsetWidth,u=r.TBODY.offsetLeft,l=this.backlight.getOffset().start,c=this.backlight.getSize().width,f=0,d=0;if(this.hot.isRtl()){var h=this.hot.rootWindow,y=(0,p.outerWidth)(this.hot.rootElement),m=h.innerWidth-e.rootElementOffset-y;d=h.innerWidth-e.target.eventPageX-m-(void 0===o.scrollX?i:0)}else d=e.target.eventPageX-(e.rootElementOffset-(void 0===o.scrollX?i:0));if(e.hasRowHeaders&&(f=this.hot.view._wt.wtOverlays.inlineStartOverlay.clone.wtTable.getColumnHeader(-1).offsetWidth),this.isFixedColumnsStart(e.hoveredColumn)&&(a+=i),a+=f,e.hoveredColumn<0)e.fixedColumnsStart>0?e.target.col=0:e.target.col=t>0?t-1:t;else if(e.target.TD.offsetWidth/2+a<=d){var g=e.hoveredColumn>=e.countCols?e.countCols-1:e.hoveredColumn;e.target.col=g+1,a+=e.target.TD.offsetWidth,e.target.col>n&&n<e.countCols&&this.hot.scrollViewportTo(void 0,n+1,void 0,!0)}else e.target.col=e.hoveredColumn,e.target.col<=t&&e.target.col>=e.fixedColumnsStart&&t>0&&this.hot.scrollViewportTo(void 0,t-1);e.target.col<=t&&e.target.col>=e.fixedColumnsStart&&t>0&&this.hot.scrollViewportTo(void 0,t-1);var v=d,E=a;d+c+l>=s?v=s-c-l:d+l<u+f&&(v=u+f+Math.abs(l)),a>=s-1?E=s-1:0===E?E=1:void 0!==o.scrollX&&e.hoveredColumn<e.fixedColumnsStart&&(E-=e.rootElementOffset<=o.scrollX?e.rootElementOffset:0),this.backlight.setPosition(null,v),this.guideline.setPosition(null,E)}},{key:"registerEvents",value:function(){var e=this,t=this.hot.rootDocument.documentElement;this.eventManager.addEventListener(t,"mousemove",(function(t){return e.onMouseMove(t)})),this.eventManager.addEventListener(t,"mouseup",(function(){return e.onMouseUp()}))}},{key:"unregisterEvents",value:function(){this.eventManager.clear()}},{key:"onBeforeOnCellMouseDown",value:function(e,t,n,r){var o=this.hot.view._wt.wtTable,i=this.hot.selection.isSelectedByColumnHeader(),a=this.hot.getSelectedRangeLast(),s=T.get(this),u=(0,p.hasClass)(e.target,"sortAction");if(!a||!i||s.pressed||0!==e.button||u)return s.pressed=!1,s.columnsToMove.length=0,void(0,p.removeClass)(this.hot.rootElement,["on-moving--columns","show-ui"]);var l=this.guideline.isBuilt()&&!this.guideline.isAppended(),c=this.backlight.isBuilt()&&!this.backlight.isAppended();l&&c&&(this.guideline.appendTo(o.hider),this.backlight.appendTo(o.hider));var f=a.from,d=a.to,h=Math.min(f.col,d.col),y=Math.max(f.col,d.col);if(t.row<0&&t.col>=h&&t.col<=y){r.column=!0,s.pressed=!0,s.target.eventPageX=e.pageX,s.target.eventOffsetX=e.offsetX,s.hoveredColumn=t.col,s.target.TD=n,s.target.col=t.col,s.columnsToMove=this.prepareColumnsToMoving(h,y),s.hasRowHeaders=!!this.hot.getSettings().rowHeaders,s.countCols=this.hot.countCols(),s.fixedColumnsStart=this.hot.getSettings().fixedColumnsStart,s.rootElementOffset=(0,p.offset)(this.hot.rootElement).left;var m=s.hasRowHeaders?-1:0,g=o.holder.scrollTop+o.getColumnHeaderHeight(0)+1,v=t.col<s.fixedColumnsStart,E=Math.abs(this.hot.view._wt.wtOverlays.inlineStartOverlay.getScrollPosition()),b=Math.abs(e.offsetX-(this.hot.isRtl()?e.target.offsetWidth:0)),C=this.getColumnsWidth(h,t.col-1)+b,w=this.getColumnsWidth(m,h-1)+(v?E:0)+C;this.backlight.setPosition(g,w),this.backlight.setSize(this.getColumnsWidth(h,y),o.hider.offsetHeight-g),this.backlight.setOffset(null,-C),(0,p.addClass)(this.hot.rootElement,"on-moving--columns")}else(0,p.removeClass)(this.hot.rootElement,"after-selection--columns"),s.pressed=!1,s.columnsToMove.length=0}},{key:"onMouseMove",value:function(e){var t=T.get(this);if(t.pressed){if(e.target===this.backlight.element){var n=this.backlight.getSize().width;this.backlight.setSize(0),setTimeout((function(){this.backlight.setPosition(n)}))}t.target.eventPageX=e.pageX,this.refreshPositions()}}},{key:"onBeforeOnCellMouseOver",value:function(e,t,n,r){var o=this.hot.getSelectedRangeLast(),i=T.get(this);o&&i.pressed&&(i.columnsToMove.indexOf(t.col)>-1?(0,p.removeClass)(this.hot.rootElement,"show-ui"):(0,p.addClass)(this.hot.rootElement,"show-ui"),r.row=!0,r.column=!0,r.cell=!0,i.hoveredColumn=t.col,i.target.TD=n)}},{key:"onMouseUp",value:function(){var e=T.get(this),t=e.target.col,n=e.columnsToMove.length;if(e.hoveredColumn=void 0,e.pressed=!1,e.backlightWidth=0,(0,p.removeClass)(this.hot.rootElement,["on-moving--columns","show-ui","after-selection--columns"]),this.hot.selection.isSelectedByColumnHeader()&&(0,p.addClass)(this.hot.rootElement,"after-selection--columns"),!(n<1||void 0===t)){var r=e.columnsToMove[0],o=this.hot.toPhysicalColumn(r),i=this.dragColumns(e.columnsToMove,t);if(e.columnsToMove.length=0,!0===i){this.persistentStateSave(),this.hot.render(),this.hot.view.adjustElementsSize(!0);var a=this.hot.toVisualColumn(o),s=a+n-1;this.hot.selectColumns(a,s)}}}},{key:"onAfterScrollVertically",value:function(){var e=this.hot.view._wt.wtTable,t=e.getColumnHeaderHeight(0)+1+e.holder.scrollTop;this.backlight.setPosition(t),this.backlight.setSize(null,e.hider.offsetHeight-t)}},{key:"buildPluginUI",value:function(){this.backlight.build(),this.guideline.build()}},{key:"onAfterLoadData",value:function(){this.moveBySettingsOrLoad()}},{key:"destroy",value:function(){this.backlight.destroy(),this.guideline.destroy(),(0,s.default)((0,c.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return b}},{key:"PLUGIN_PRIORITY",get:function(){return 120}}]),n}(f.BasePlugin);t.ManualColumnMove=C},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(31)),s=r(n(15)),u=r(n(16)),l=r(n(14)),c=r(n(637)),f=n(23);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,u.default)(this,n)}}var h=function(e){(0,s.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:"build",value:function(){(0,a.default)((0,l.default)(n.prototype),"build",this).call(this),(0,f.addClass)(this._element,"ht__manualColumnMove--backlight")}}]),n}(c.default);t.default=h},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(31)),s=r(n(15)),u=r(n(16)),l=r(n(14)),c=r(n(637)),f=n(23);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,u.default)(this,n)}}var h=function(e){(0,s.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:"build",value:function(){(0,a.default)((0,l.default)(n.prototype),"build",this).call(this),(0,f.addClass)(this._element,"ht__manualColumnMove--guideline")}}]),n}(c.default);t.default=h},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ManualColumnResize=void 0;var r=n(1027);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ManualColumnResize=r.ManualColumnResize},function(e,t,n){"use strict";n(7);var r=n(1);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ManualColumnResize=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(46)),s=r(n(31)),u=r(n(15)),l=r(n(16)),c=r(n(14));n(3),n(0),n(2),n(11),n(4),n(26),n(42),n(49),n(76);var f=n(50),d=n(23),h=r(n(59)),p=n(20),y=n(47),m=n(82);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,l.default)(this,n)}}var v="manualColumnResize";t.PLUGIN_KEY=v;t.PLUGIN_PRIORITY=130;var E=new WeakMap,b=function(e){(0,u.default)(n,e);var t=g(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.currentCol=null,r.selectedCols=[],r.currentWidth=null,r.newSize=null,r.startY=null,r.startWidth=null,r.startOffset=null,r.handle=i.createElement("DIV"),r.guide=i.createElement("DIV"),r.eventManager=new h.default((0,a.default)(r)),r.pressed=null,r.dblclick=0,r.autoresizeTimeout=null,r.columnWidthsMap=void 0,E.set((0,a.default)(r),{config:void 0}),(0,d.addClass)(r.handle,"manualColumnResizer"),(0,d.addClass)(r.guide,"manualColumnResizerGuide"),r}return(0,i.default)(n,[{key:"inlineDir",get:function(){return this.hot.isRtl()?"right":"left"}},{key:"isEnabled",value:function(){return this.hot.getSettings()[v]}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.columnWidthsMap=new m.PhysicalIndexToValueMap,this.columnWidthsMap.addLocalHook("init",(function(){return e.onMapInit()})),this.hot.columnIndexMapper.registerMap(this.pluginName,this.columnWidthsMap),this.addHook("modifyColWidth",(function(t,n){return e.onModifyColWidth(t,n)})),this.addHook("beforeStretchingColumnWidth",(function(t,n){return e.onBeforeStretchingColumnWidth(t,n)})),this.addHook("beforeColumnResize",(function(t,n,r){return e.onBeforeColumnResize(t,n,r)})),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(){E.get(this).config=this.columnWidthsMap.getValues(),this.hot.columnIndexMapper.unregisterMap(this.pluginName),(0,s.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"saveManualColumnWidths",value:function(){this.hot.runHooks("persistentStateSave","manualColumnWidths",this.columnWidthsMap.getValues())}},{key:"loadManualColumnWidths",value:function(){var e={};return this.hot.runHooks("persistentStateLoad","manualColumnWidths",e),e.value}},{key:"setManualSize",value:function(e,t){var n=Math.max(t,20),r=this.hot.toPhysicalColumn(e);return this.columnWidthsMap.setValueAtIndex(r,n),n}},{key:"clearManualSize",value:function(e){var t=this.hot.toPhysicalColumn(e);this.columnWidthsMap.setValueAtIndex(t,null)}},{key:"onMapInit",value:function(){var e=this,t=E.get(this),n=this.hot.getSettings()[v],r=this.loadManualColumnWidths();void 0!==r?this.hot.batchExecution((function(){r.forEach((function(t,n){e.columnWidthsMap.setValueAtIndex(n,t)}))}),!0):Array.isArray(n)?(this.hot.batchExecution((function(){n.forEach((function(t,n){e.columnWidthsMap.setValueAtIndex(n,t)}))}),!0),t.config=n):!0===n&&Array.isArray(t.config)&&this.hot.batchExecution((function(){t.config.forEach((function(t,n){e.columnWidthsMap.setValueAtIndex(n,t)}))}),!0)}},{key:"setupHandlePosition",value:function(e){var t=this;if(e.parentNode){this.currentTH=e;var n=this.hot.view._wt,r=n.wtTable.getCoords(this.currentTH),o=r.col;if(!(o<0)){var i,a=(0,d.outerHeight)(this.currentTH),s=this.currentTH.getBoundingClientRect();o<n.getSetting("fixedColumnsStart")&&(i=n.wtOverlays.topInlineStartCornerOverlay.getRelativeCellPosition(this.currentTH,r.row,r.col)),i||(i=n.wtOverlays.topOverlay.getRelativeCellPosition(this.currentTH,r.row,r.col)),this.currentCol=this.hot.columnIndexMapper.getVisualFromRenderableIndex(o),this.selectedCols=[];var u=this.hot.selection.isSelectedByCorner()||this.hot.selection.isSelectedByColumnHeader();if(this.hot.selection.isSelected()&&u){var l=this.hot.getSelectedRange();(0,p.arrayEach)(l,(function(e){var n=e.getTopStartCorner().col,r=e.getBottomEndCorner().col;(0,y.rangeEach)(n,r,(function(e){t.selectedCols.includes(e)||t.selectedCols.push(e)}))}))}this.selectedCols.includes(this.currentCol)||(this.selectedCols=[this.currentCol]),this.startOffset=i.start-6,this.startWidth=parseInt(s.width,10),this.handle.style.top="".concat(i.top,"px"),this.handle.style[this.inlineDir]="".concat(this.startOffset+this.startWidth,"px"),this.handle.style.height="".concat(a,"px"),this.hot.rootElement.appendChild(this.handle)}}}},{key:"refreshHandlePosition",value:function(){this.handle.style[this.inlineDir]="".concat(this.startOffset+this.currentWidth,"px")}},{key:"setupGuidePosition",value:function(){var e=parseInt((0,d.outerHeight)(this.handle),10),t=parseInt(this.handle.style.top,10)+e,n=parseInt(this.hot.view.maximumVisibleElementHeight(0),10);(0,d.addClass)(this.handle,"active"),(0,d.addClass)(this.guide,"active"),this.guide.style.top="".concat(t,"px"),this.refreshGuidePosition(),this.guide.style.height="".concat(n-e,"px"),this.hot.rootElement.appendChild(this.guide)}},{key:"refreshGuidePosition",value:function(){this.guide.style[this.inlineDir]=this.handle.style[this.inlineDir]}},{key:"hideHandleAndGuide",value:function(){(0,d.removeClass)(this.handle,"active"),(0,d.removeClass)(this.guide,"active")}},{key:"checkIfColumnHeader",value:function(e){return!!(0,d.closest)(e,["THEAD"],this.hot.rootElement)}},{key:"getClosestTHParent",value:function(e){return"TABLE"!==e.tagName?"TH"===e.tagName?e:this.getClosestTHParent(e.parentNode):null}},{key:"onMouseOver",value:function(e){if(!(0,d.isDetached)(e.target)&&this.checkIfColumnHeader(e.target)){var t=this.getClosestTHParent(e.target);if(!t)return;var n=t.getAttribute("colspan");!t||null!==n&&"1"!==n||this.pressed||this.setupHandlePosition(t)}}},{key:"afterMouseDownTimeout",value:function(){var e=this,t=function(){e.hot.forceFullRender=!0,e.hot.view.render(),e.hot.view.adjustElementsSize(!0)},n=function(n,r){var o=e.hot.runHooks("beforeColumnResize",e.newSize,n,!0);void 0!==o&&(e.newSize=o),"all"===e.hot.getSettings().stretchH?e.clearManualSize(n):e.setManualSize(n,e.newSize),e.saveManualColumnWidths(),e.hot.runHooks("afterColumnResize",e.newSize,n,!0),r&&t()};this.dblclick>=2&&(this.selectedCols.length>1?((0,p.arrayEach)(this.selectedCols,(function(e){n(e)})),t()):(0,p.arrayEach)(this.selectedCols,(function(e){n(e,!0)})));this.dblclick=0,this.autoresizeTimeout=null}},{key:"onMouseDown",value:function(e){var t=this;(0,d.hasClass)(e.target,"manualColumnResizer")&&(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.startX=e.pageX,this.newSize=this.startWidth)}},{key:"onMouseMove",value:function(e){var t=this;if(this.pressed){var n=(e.pageX-this.startX)*this.hot.getDirectionFactor();this.currentWidth=this.startWidth+n,(0,p.arrayEach)(this.selectedCols,(function(e){t.newSize=t.setManualSize(e,t.currentWidth)})),this.refreshHandlePosition(),this.refreshGuidePosition()}}},{key:"onMouseUp",value:function(){var e=this,t=function(){e.hot.forceFullRender=!0,e.hot.view.render(),e.hot.view.adjustElementsSize(!0)},n=function(n,r){e.hot.runHooks("beforeColumnResize",e.newSize,n,!1),r&&t(),e.saveManualColumnWidths(),e.hot.runHooks("afterColumnResize",e.newSize,n,!1)};if(this.pressed){if(this.hideHandleAndGuide(),this.pressed=!1,this.newSize!==this.startWidth)this.selectedCols.length>1?((0,p.arrayEach)(this.selectedCols,(function(e){n(e)})),t()):(0,p.arrayEach)(this.selectedCols,(function(e){n(e,!0)}));this.setupHandlePosition(this.currentTH)}}},{key:"bindEvents",value:function(){var e=this,t=this.hot,n=t.rootWindow,r=t.rootElement;this.eventManager.addEventListener(r,"mouseover",(function(t){return e.onMouseOver(t)})),this.eventManager.addEventListener(r,"mousedown",(function(t){return e.onMouseDown(t)})),this.eventManager.addEventListener(n,"mousemove",(function(t){return e.onMouseMove(t)})),this.eventManager.addEventListener(n,"mouseup",(function(){return e.onMouseUp()}))}},{key:"onModifyColWidth",value:function(e,t){var n=e;if(this.enabled){var r=this.hot.toPhysicalColumn(t),o=this.columnWidthsMap.getValueAtIndex(r);this.hot.getSettings()[v]&&o&&(n=o)}return n}},{key:"onBeforeStretchingColumnWidth",value:function(e,t){var n=this.columnWidthsMap.getValueAtIndex(t);return null===n&&(n=e),n}},{key:"onBeforeColumnResize",value:function(){this.hot.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked()}},{key:"destroy",value:function(){(0,s.default)((0,c.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return v}},{key:"PLUGIN_PRIORITY",get:function(){return 130}}]),n}(f.BasePlugin);t.ManualColumnResize=b},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ManualRowMove=void 0;var r=n(1029);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ManualRowMove=r.ManualRowMove},function(e,t,n){"use strict";n(7);var r=n(1);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ManualRowMove=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(46)),s=r(n(31)),u=r(n(15)),l=r(n(16)),c=r(n(14));n(3),n(0),n(2),n(11),n(4),n(76),n(35);var f=n(50),d=r(n(74)),h=n(20),p=n(23),y=n(47),m=r(n(59)),g=r(n(1030)),v=r(n(1031));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,l.default)(this,n)}}n(1032),d.default.getSingleton().register("beforeRowMove"),d.default.getSingleton().register("afterRowMove");t.PLUGIN_KEY="manualRowMove";t.PLUGIN_PRIORITY=140;var b=new WeakMap,T=function(e){(0,u.default)(n,e);var t=E(n);function n(e){var r;return(0,o.default)(this,n),r=t.call(this,e),b.set((0,a.default)(r),{rowsToMove:[],pressed:void 0,target:{eventPageY:void 0,coords:void 0,TD:void 0,row:void 0},cachedDropIndex:void 0}),r.eventManager=new m.default((0,a.default)(r)),r.backlight=new g.default(e),r.guideline=new v.default(e),r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().manualRowMove}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("beforeOnCellMouseDown",(function(){return e.onBeforeOnCellMouseDown.apply(e,arguments)})),this.addHook("beforeOnCellMouseOver",(function(){return e.onBeforeOnCellMouseOver.apply(e,arguments)})),this.addHook("afterScrollHorizontally",(function(){return e.onAfterScrollHorizontally()})),this.addHook("afterLoadData",(function(){return e.onAfterLoadData.apply(e,arguments)})),this.buildPluginUI(),this.registerEvents(),(0,p.addClass)(this.hot.rootElement,"ht__manualRowMove"),(0,s.default)((0,c.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),this.moveBySettingsOrLoad(),(0,s.default)((0,c.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){(0,p.removeClass)(this.hot.rootElement,"ht__manualRowMove"),this.unregisterEvents(),this.backlight.destroy(),this.guideline.destroy(),(0,s.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"moveRow",value:function(e,t){return this.moveRows([e],t)}},{key:"moveRows",value:function(e,t){var n=b.get(this),r=n.cachedDropIndex,o=this.isMovePossible(e,t),i=this.hot.runHooks("beforeRowMove",e,t,r,o);if(n.cachedDropIndex=void 0,!1!==i){o&&this.hot.rowIndexMapper.moveIndexes(e,t);var a=o&&this.isRowOrderChanged(e,t);return this.hot.runHooks("afterRowMove",e,t,r,o,a),a}}},{key:"dragRow",value:function(e,t){return this.dragRows([e],t)}},{key:"dragRows",value:function(e,t){var n=this.countFinalIndex(e,t);return b.get(this).cachedDropIndex=t,this.moveRows(e,n)}},{key:"isMovePossible",value:function(e,t){var n=this.hot.rowIndexMapper.getNotTrimmedIndexesLength(),r=e.length+t>n,o=t<0,i=e.some((function(e){return e<0})),a=e.some((function(e){return e>=n}));return!(r||o||i||a)}},{key:"isRowOrderChanged",value:function(e,t){return e.some((function(e,n){return e-n!==t}))}},{key:"countFinalIndex",value:function(e,t){var n=(0,h.arrayReduce)(e,(function(e,n){return n<t&&(e+=1),e}),0);return t-n}},{key:"getRowsHeight",value:function(e,t){for(var n=this.hot.rowIndexMapper,r=0,o=e;o<=t;o++){var i=n.getRenderableFromVisualIndex(o);null!==i&&(r+=this.hot.view._wt.wtTable.getRowHeight(i)||23)}return r}},{key:"moveBySettingsOrLoad",value:function(){var e=this.hot.getSettings().manualRowMove;if(Array.isArray(e))this.moveRows(e,0);else if(void 0!==e){var t=this.persistentStateLoad();t.length&&this.moveRows(t,0)}}},{key:"isFixedRowTop",value:function(e){return e<this.hot.getSettings().fixedRowsTop}},{key:"isFixedRowBottom",value:function(e){return e>this.hot.getSettings().fixedRowsBottom}},{key:"persistentStateSave",value:function(){this.hot.runHooks("persistentStateSave","manualRowMove",this.hot.rowIndexMapper.getIndexesSequence())}},{key:"persistentStateLoad",value:function(){var e={};return this.hot.runHooks("persistentStateLoad","manualRowMove",e),e.value?e.value:[]}},{key:"prepareRowsToMoving",value:function(){var e=this.hot.getSelectedRangeLast(),t=[];if(!e)return t;var n=e.from,r=e.to,o=Math.min(n.row,r.row),i=Math.max(n.row,r.row);return(0,y.rangeEach)(o,i,(function(e){t.push(e)})),t}},{key:"refreshPositions",value:function(){var e=b.get(this),t=e.target.coords,n=this.hot.view._wt.wtTable.getFirstVisibleRow(),r=this.hot.view._wt.wtTable.getLastVisibleRow(),o=this.hot.getSettings().fixedRowsTop,i=this.hot.countRows();t.row<o&&n>0&&this.hot.scrollViewportTo(n-1),t.row>=r&&r<i&&this.hot.scrollViewportTo(r+1,void 0,!0);var a=this.hot.view._wt.wtTable,s=e.target.TD,u=(0,p.offset)(this.hot.rootElement),l=this.hot.view.THEAD.offsetHeight+this.getRowsHeight(0,t.row-1),c=e.target.eventPageY-u.top+a.holder.scrollTop,f=a.hider.offsetHeight,d=a.TBODY.offsetTop,h=this.backlight.getOffset().top,y=this.backlight.getSize().height;this.isFixedRowTop(t.row)&&(l+=a.holder.scrollTop),t.row<0?e.target.row=n>0?n-1:n:s.offsetHeight/2+l<=c?(e.target.row=t.row+1,l+=0===t.row?s.offsetHeight-1:s.offsetHeight):e.target.row=t.row;var m=c,g=l;c+y+h>=f?m=f-y-h:c+h<d&&(m=d+Math.abs(h)),l>=f-1&&(g=f-1);var v=0;this.hot.view._wt.wtOverlays.topOverlay&&(v=this.hot.view._wt.wtOverlays.topOverlay.clone.wtTable.TABLE.offsetHeight),t.row>=o&&g-a.holder.scrollTop<v&&this.hot.scrollViewportTo(t.row),this.backlight.setPosition(m),this.guideline.setPosition(g)}},{key:"registerEvents",value:function(){var e=this,t=this.hot.rootDocument.documentElement;this.eventManager.addEventListener(t,"mousemove",(function(t){return e.onMouseMove(t)})),this.eventManager.addEventListener(t,"mouseup",(function(){return e.onMouseUp()}))}},{key:"unregisterEvents",value:function(){this.eventManager.clear()}},{key:"onBeforeOnCellMouseDown",value:function(e,t,n,r){var o=this.hot.view._wt,i=o.wtTable,a=o.wtViewport,s=this.hot.selection.isSelectedByRowHeader(),u=this.hot.getSelectedRangeLast(),l=b.get(this);if(!u||!s||l.pressed||0!==e.button)return l.pressed=!1,l.rowsToMove.length=0,void(0,p.removeClass)(this.hot.rootElement,["on-moving--rows","show-ui"]);var c=this.guideline.isBuilt()&&!this.guideline.isAppended(),f=this.backlight.isBuilt()&&!this.backlight.isAppended();c&&f&&(this.guideline.appendTo(i.hider),this.backlight.appendTo(i.hider));var d=u.from,h=u.to,y=Math.min(d.row,h.row),m=Math.max(d.row,h.row);if(t.col<0&&t.row>=y&&t.row<=m){r.row=!0,l.pressed=!0,l.target.eventPageY=e.pageY,l.target.coords=t,l.target.TD=n,l.rowsToMove=this.prepareRowsToMoving();var g=i.holder.scrollLeft+a.getRowHeaderWidth();this.backlight.setPosition(null,g),this.backlight.setSize(i.hider.offsetWidth-g,this.getRowsHeight(y,m)),this.backlight.setOffset(-1*(this.getRowsHeight(y,t.row-1)+e.offsetY),null),(0,p.addClass)(this.hot.rootElement,"on-moving--rows"),this.refreshPositions()}else(0,p.removeClass)(this.hot.rootElement,"after-selection--rows"),l.pressed=!1,l.rowsToMove.length=0}},{key:"onMouseMove",value:function(e){var t=b.get(this);if(t.pressed){if(e.target===this.backlight.element){var n=this.backlight.getSize().height;this.backlight.setSize(null,0),setTimeout((function(){this.backlight.setPosition(null,n)}))}t.target.eventPageY=e.pageY,this.refreshPositions()}}},{key:"onBeforeOnCellMouseOver",value:function(e,t,n,r){var o=this.hot.getSelectedRangeLast(),i=b.get(this);o&&i.pressed&&(i.rowsToMove.indexOf(t.row)>-1?(0,p.removeClass)(this.hot.rootElement,"show-ui"):(0,p.addClass)(this.hot.rootElement,"show-ui"),r.row=!0,r.column=!0,r.cell=!0,i.target.coords=t,i.target.TD=n)}},{key:"onMouseUp",value:function(){var e=b.get(this),t=e.target.row,n=e.rowsToMove.length;if(e.pressed=!1,e.backlightHeight=0,(0,p.removeClass)(this.hot.rootElement,["on-moving--rows","show-ui","after-selection--rows"]),this.hot.selection.isSelectedByRowHeader()&&(0,p.addClass)(this.hot.rootElement,"after-selection--rows"),!(n<1||void 0===t)){var r=e.rowsToMove[0],o=this.hot.toPhysicalRow(r),i=this.dragRows(e.rowsToMove,t);if(e.rowsToMove.length=0,!0===i){this.persistentStateSave(),this.hot.render(),this.hot.view.adjustElementsSize(!0);var a=this.hot.toVisualRow(o),s=a+n-1;this.hot.selectRows(a,s)}}}},{key:"onAfterScrollHorizontally",value:function(){var e=this.hot.view._wt.wtTable,t=this.hot.view._wt.wtViewport.getRowHeaderWidth()+e.holder.scrollLeft;this.backlight.setPosition(null,t),this.backlight.setSize(e.hider.offsetWidth-t)}},{key:"buildPluginUI",value:function(){this.backlight.build(),this.guideline.build()}},{key:"onAfterLoadData",value:function(){this.moveBySettingsOrLoad()}},{key:"destroy",value:function(){this.backlight.destroy(),this.guideline.destroy(),(0,s.default)((0,c.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"manualRowMove"}},{key:"PLUGIN_PRIORITY",get:function(){return 140}}]),n}(f.BasePlugin);t.ManualRowMove=T},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(31)),s=r(n(15)),u=r(n(16)),l=r(n(14)),c=r(n(638)),f=n(23);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,u.default)(this,n)}}var h=function(e){(0,s.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:"build",value:function(){(0,a.default)((0,l.default)(n.prototype),"build",this).call(this),(0,f.addClass)(this._element,"ht__manualRowMove--backlight")}}]),n}(c.default);t.default=h},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(31)),s=r(n(15)),u=r(n(16)),l=r(n(14)),c=r(n(638)),f=n(23);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,u.default)(this,n)}}var h=function(e){(0,s.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:"build",value:function(){(0,a.default)((0,l.default)(n.prototype),"build",this).call(this),(0,f.addClass)(this._element,"ht__manualRowMove--guideline")}}]),n}(c.default);t.default=h},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ManualRowResize=void 0;var r=n(1034);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ManualRowResize=r.ManualRowResize},function(e,t,n){"use strict";n(7);var r=n(1);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ManualRowResize=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(46)),s=r(n(31)),u=r(n(15)),l=r(n(16)),c=r(n(14));n(3),n(0),n(2),n(11),n(4),n(42),n(49),n(76),n(26);var f=n(50),d=n(23),h=r(n(59)),p=n(20),y=n(47),m=n(82),g=n(158);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,l.default)(this,n)}}var E="manualRowResize";t.PLUGIN_KEY=E;t.PLUGIN_PRIORITY=30;var b=new WeakMap,T=function(e){(0,u.default)(n,e);var t=v(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 h.default((0,a.default)(r)),r.pressed=null,r.dblclick=0,r.autoresizeTimeout=null,r.rowHeightsMap=void 0,b.set((0,a.default)(r),{config:void 0}),(0,d.addClass)(r.handle,"manualRowResizer"),(0,d.addClass)(r.guide,"manualRowResizerGuide"),r}return(0,i.default)(n,[{key:"inlineDir",get:function(){return this.hot.isRtl()?"right":"left"}},{key:"isEnabled",value:function(){return this.hot.getSettings()[E]}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.rowHeightsMap=new m.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(){b.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,g.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=r.wtTable.getCoords(this.currentTH),i=o.row;if(!(i<0)){var a,s=(0,d.outerWidth)(this.currentTH),u=this.currentTH.getBoundingClientRect(),l=i<r.getSetting("fixedRowsTop"),c=i>=n.countNotHiddenRowIndexes(0,1)-r.getSetting("fixedRowsBottom");l?a=r.wtOverlays.topInlineStartCornerOverlay.getRelativeCellPosition(this.currentTH,o.row,o.col):c&&(a=r.wtOverlays.bottomInlineStartCornerOverlay.getRelativeCellPosition(this.currentTH,o.row,o.col)),a||(a=r.wtOverlays.inlineStartOverlay.getRelativeCellPosition(this.currentTH,o.row,o.col)),this.currentRow=this.hot.rowIndexMapper.getVisualFromRenderableIndex(i),this.selectedRows=[];var f=this.hot.selection.isSelectedByCorner()||this.hot.selection.isSelectedByRowHeader();if(this.hot.selection.isSelected()&&f){var h=this.hot.getSelectedRange();(0,p.arrayEach)(h,(function(e){var n=e.getTopStartCorner().row,r=e.getBottomStartCorner().row;(0,y.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(u.height,10),this.handle.style.top="".concat(this.startOffset+this.startHeight,"px"),this.handle.style[this.inlineDir]="".concat(a.start,"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,d.outerWidth)(this.handle),10),t=parseInt(this.handle.style[this.inlineDir],10)+e,n=parseInt(this.hot.view.maximumVisibleElementWidth(0),10);(0,d.addClass)(this.handle,"active"),(0,d.addClass)(this.guide,"active"),this.guide.style.top=this.handle.style.top,this.guide.style[this.inlineDir]="".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,d.removeClass)(this.handle,"active"),(0,d.removeClass)(this.guide,"active")}},{key:"checkIfRowHeader",value:function(e){var t,n;return(0,d.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,d.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,p.arrayEach)(this.selectedRows,(function(e){n(e)})),t()):(0,p.arrayEach)(this.selectedRows,(function(e){n(e,!0)})));this.dblclick=0,this.autoresizeTimeout=null}},{key:"onMouseDown",value:function(e){var t=this;(0,d.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,p.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,p.arrayEach)(this.selectedRows,(function(e){n(e)})),t()):(0,p.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=b.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}(f.BasePlugin);t.ManualRowResize=T},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.MergeCells=void 0;var r=n(1036);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.MergeCells=r.MergeCells},function(e,t,n){"use strict";n(7);var r=n(1);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.MergeCells=void 0;var o=r(n(34)),i=r(n(44)),a=r(n(5)),s=r(n(6)),u=r(n(46)),l=r(n(31)),c=r(n(15)),f=r(n(16)),d=r(n(14));n(3),n(0),n(2),n(11),n(4),n(40),n(54),n(18),n(42),n(49);var h=n(50),p=r(n(74)),y=r(n(1037)),m=r(n(319)),g=r(n(1038)),v=r(n(1039)),E=r(n(1040)),b=n(20),T=n(17),C=n(88),w=n(47),R=n(639);function O(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,f.default)(this,n)}}n(1041),p.default.getSingleton().register("beforeMergeCells"),p.default.getSingleton().register("afterMergeCells"),p.default.getSingleton().register("beforeUnmergeCells"),p.default.getSingleton().register("afterUnmergeCells");t.PLUGIN_KEY="mergeCells";t.PLUGIN_PRIORITY=150;var S=new WeakMap,A=function(e){(0,c.default)(n,e);var t=O(n);function n(e){var r;return(0,a.default)(this,n),r=t.call(this,e),S.set((0,u.default)(r),{lastDesiredCoords:null}),r.mergedCellsCollection=null,r.autofillCalculations=null,r.selectionCalculations=null,r}return(0,s.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().mergeCells}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.mergedCellsCollection=new y.default(this),this.autofillCalculations=new g.default(this),this.selectionCalculations=new v.default(this),this.addHook("afterInit",(function(){return e.onAfterInit.apply(e,arguments)})),this.addHook("modifyTransformStart",(function(){return e.onModifyTransformStart.apply(e,arguments)})),this.addHook("afterModifyTransformStart",(function(){return e.onAfterModifyTransformStart.apply(e,arguments)})),this.addHook("modifyTransformEnd",(function(){return e.onModifyTransformEnd.apply(e,arguments)})),this.addHook("modifyGetCellCoords",(function(){return e.onModifyGetCellCoords.apply(e,arguments)})),this.addHook("beforeSetRangeStart",(function(){return e.onBeforeSetRangeStart.apply(e,arguments)})),this.addHook("beforeSetRangeStartOnly",(function(){return e.onBeforeSetRangeStart.apply(e,arguments)})),this.addHook("beforeSetRangeEnd",(function(){return e.onBeforeSetRangeEnd.apply(e,arguments)})),this.addHook("afterIsMultipleSelection",(function(){return e.onAfterIsMultipleSelection.apply(e,arguments)})),this.addHook("afterRenderer",(function(){return e.onAfterRenderer.apply(e,arguments)})),this.addHook("afterContextMenuDefaultOptions",(function(){return e.addMergeActionsToContextMenu.apply(e,arguments)})),this.addHook("afterGetCellMeta",(function(){return e.onAfterGetCellMeta.apply(e,arguments)})),this.addHook("afterViewportRowCalculatorOverride",(function(){return e.onAfterViewportRowCalculatorOverride.apply(e,arguments)})),this.addHook("afterViewportColumnCalculatorOverride",(function(){return e.onAfterViewportColumnCalculatorOverride.apply(e,arguments)})),this.addHook("modifyAutofillRange",(function(){return e.onModifyAutofillRange.apply(e,arguments)})),this.addHook("afterCreateCol",(function(){return e.onAfterCreateCol.apply(e,arguments)})),this.addHook("afterRemoveCol",(function(){return e.onAfterRemoveCol.apply(e,arguments)})),this.addHook("afterCreateRow",(function(){return e.onAfterCreateRow.apply(e,arguments)})),this.addHook("afterRemoveRow",(function(){return e.onAfterRemoveRow.apply(e,arguments)})),this.addHook("afterChange",(function(){return e.onAfterChange.apply(e,arguments)})),this.addHook("beforeDrawBorders",(function(){return e.onBeforeDrawAreaBorders.apply(e,arguments)})),this.addHook("afterDrawSelection",(function(){return e.onAfterDrawSelection.apply(e,arguments)})),this.addHook("beforeRemoveCellClassNames",(function(){return e.onBeforeRemoveCellClassNames.apply(e,arguments)})),this.addHook("beforeUndoStackChange",(function(e,t){if("MergeCells"===t)return!1})),this.registerShortcuts(),(0,l.default)((0,d.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.clearCollections(),this.unregisterShortcuts(),this.hot.render(),(0,l.default)((0,d.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){var e=this.hot.getSettings().mergeCells;this.disablePlugin(),this.enablePlugin(),this.generateFromSettings(e),(0,l.default)((0,d.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"validateSetting",value:function(e){var t=!0;return!!e&&(m.default.containsNegativeValues(e)?((0,C.warn)(m.default.NEGATIVE_VALUES_WARNING(e)),t=!1):m.default.isOutOfBounds(e,this.hot.countRows(),this.hot.countCols())?((0,C.warn)(m.default.IS_OUT_OF_BOUNDS_WARNING(e)),t=!1):m.default.isSingleCell(e)?((0,C.warn)(m.default.IS_SINGLE_CELL(e)),t=!1):m.default.containsZeroSpan(e)&&((0,C.warn)(m.default.ZERO_SPAN_WARNING(e)),t=!1),t)}},{key:"generateFromSettings",value:function(e){var t=this;if(Array.isArray(e)){var n,r=[];(0,b.arrayEach)(e,(function(e){if(t.validateSetting(e)){var n=t.hot._createCellCoords(e.row,e.col),o=t.hot._createCellCoords(e.row+e.rowspan-1,e.col+e.colspan-1),i=t.hot._createCellRange(n,n,o);r.push(t.mergeRange(i,!0,!0))}})),r=r.filter((function(e){return!0!==e}));var o=this.getBulkCollectionData(r);(n=this.hot).populateFromArray.apply(n,(0,i.default)(o))}}},{key:"getBulkCollectionData",value:function(e){var t,n=this.getBulkCollectionDataRange(e),r=(t=this.hot).getData.apply(t,(0,i.default)(n)).splice(0);return(0,b.arrayEach)(e,(function(e){var t=(0,o.default)(e,3),i=t[0],a=t[1],s=t[2];(0,b.arrayEach)(s,(function(e,t){(0,b.arrayEach)(e,(function(e,o){r[i-n[0]+t][a-n[1]+o]=e}))}))})),[n[0],n[1],r]}},{key:"getBulkCollectionDataRange",value:function(e){var t=[0,0],n=[0,0],r=null,o=null,i=null;return(0,b.arrayEach)(e,(function(e){r=e[0],o=e[1],i=e[2],t[0]=Math.min(r,t[0]),t[1]=Math.min(o,t[1]),n[0]=Math.max(r+i.length-1,n[0]),n[1]=Math.max(o+i[0].length-1,n[1])})),[].concat(t,n)}},{key:"clearCollections",value:function(){this.mergedCellsCollection.clear()}},{key:"canMergeRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!!t||this.validateSetting(e)}},{key:"toggleMergeOnSelection",value:function(){var e=this.hot.getSelectedRangeLast();if(e){e.setDirection("NW-SE");var t=e.from,n=e.to;this.toggleMerge(e),this.hot.selectCell(t.row,t.col,n.row,n.col,!1)}}},{key:"mergeSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeLast();if(e){e.setDirection("NW-SE");var t=e.from,n=e.to;this.unmergeRange(e,!0),this.mergeRange(e),this.hot.selectCell(t.row,t.col,n.row,n.col,!1)}}},{key:"unmergeSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeLast();if(e){var t=e.from,n=e.to;this.unmergeRange(e,!0),this.hot.selectCell(t.row,t.col,n.row,n.col,!1)}}},{key:"mergeRange",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e.getTopStartCorner(),i=e.getBottomEndCorner(),a={row:o.row,col:o.col,rowspan:i.row-o.row+1,colspan:i.col-o.col+1},s=[],u=null;if(!this.canMergeRange(a,n))return!1;this.hot.runHooks("beforeMergeCells",e,n),(0,w.rangeEach)(0,a.rowspan-1,(function(e){(0,w.rangeEach)(0,a.colspan-1,(function(n){var r=null;s[e]||(s[e]=[]),0===e&&0===n?r=t.hot.getDataAtCell(a.row,a.col):t.hot.setCellMeta(a.row+e,a.col+n,"hidden",!0),s[e][n]=r}))})),this.hot.setCellMeta(a.row,a.col,"spanned",!0);var l=this.mergedCellsCollection.add(a);return!l||(r?u=[a.row,a.col,s]:this.hot.populateFromArray(a.row,a.col,s,void 0,void 0,this.pluginName),this.hot.runHooks("afterMergeCells",e,a,n),u)}},{key:"unmergeRange",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.mergedCellsCollection.getWithinRange(e);r&&(this.hot.runHooks("beforeUnmergeCells",e,n),(0,b.arrayEach)(r,(function(e){t.mergedCellsCollection.remove(e.row,e.col),(0,w.rangeEach)(0,e.rowspan-1,(function(n){(0,w.rangeEach)(0,e.colspan-1,(function(r){t.hot.removeCellMeta(e.row+n,e.col+r,"hidden")}))})),t.hot.removeCellMeta(e.row,e.col,"spanned")})),this.hot.runHooks("afterUnmergeCells",e,n),this.hot.render())}},{key:"toggleMerge",value:function(e){var t=this.mergedCellsCollection.get(e.from.row,e.from.col);t.row===e.from.row&&t.col===e.from.col&&t.row+t.rowspan-1===e.to.row&&t.col+t.colspan-1===e.to.col?this.unmergeRange(e):this.mergeSelection(e)}},{key:"merge",value:function(e,t,n,r){var o=this.hot._createCellCoords(e,t),i=this.hot._createCellCoords(n,r);this.mergeRange(this.hot._createCellRange(o,o,i))}},{key:"unmerge",value:function(e,t,n,r){var o=this.hot._createCellCoords(e,t),i=this.hot._createCellCoords(n,r);this.unmergeRange(this.hot._createCellRange(o,o,i))}},{key:"onAfterInit",value:function(){this.generateFromSettings(this.hot.getSettings().mergeCells),this.hot.render()}},{key:"registerShortcuts",value:function(){var e=this;this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Control","m"]],callback:function(){e.toggleMerge(e.hot.getSelectedRangeLast()),e.hot.render()},runOnlyIf:function(e){return!e.altKey},group:"mergeCells"})}},{key:"unregisterShortcuts",value:function(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup("mergeCells")}},{key:"onAfterIsMultipleSelection",value:function(e){if(e)for(var t=this.mergedCellsCollection.mergedCells,n=this.hot.getSelectedRangeLast(),r=0;r<t.length;r+=1)if(n.from.row===t[r].row&&n.from.col===t[r].col&&n.to.row===t[r].row+t[r].rowspan-1&&n.to.col===t[r].col+t[r].colspan-1)return!1;return e}},{key:"onModifyTransformStart",value:function(e){var t,n=S.get(this),r=this.hot.getSelectedRangeLast(),o={row:e.row,col:e.col},i=this.hot._createCellCoords(r.highlight.row,r.highlight.col),a=this.mergedCellsCollection.get(i.row,i.col);if(n.lastDesiredCoords||(n.lastDesiredCoords=this.hot._createCellCoords(null,null)),a){var s=this.hot._createCellCoords(a.row,a.col),u=this.hot._createCellCoords(a.row+a.rowspan-1,a.col+a.colspan-1);this.hot._createCellRange(s,s,u).includes(n.lastDesiredCoords)||(n.lastDesiredCoords=this.hot._createCellCoords(null,null)),o.row=n.lastDesiredCoords.row?n.lastDesiredCoords.row-i.row:o.row,o.col=n.lastDesiredCoords.col?n.lastDesiredCoords.col-i.col:o.col,e.row>0?o.row=a.row+a.rowspan-1-i.row+e.row:e.row<0&&(o.row=i.row-a.row+e.row),e.col>0?o.col=a.col+a.colspan-1-i.col+e.col:e.col<0&&(o.col=i.col-a.col+e.col)}t=this.hot._createCellCoords(r.highlight.row+o.row,r.highlight.col+o.col);var l=this.mergedCellsCollection.get(t.row,t.col);if(l){var c=this.mergedCellsCollection.getFirstRenderableCoords(l.row,l.col);n.lastDesiredCoords=t,o={row:c.row-i.row,col:c.col-i.col}}0!==o.row&&(e.row=o.row),0!==o.col&&(e.col=o.col)}},{key:"onModifyTransformEnd",value:function(e){var t=this,n=this.hot.getSelectedRangeLast(),r=(0,T.clone)(e),o=this.selectionCalculations.getUpdatedSelectionRange(n,e),i=(0,T.clone)(r),a=this.mergedCellsCollection.getWithinRange(o,!0);do{i=(0,T.clone)(r),this.selectionCalculations.getUpdatedSelectionRange(n,r),(0,b.arrayEach)(a,(function(e){t.selectionCalculations.snapDelta(r,n,e)}))}while(r.row!==i.row||r.col!==i.col);e.row=r.row,e.col=r.col}},{key:"onModifyGetCellCoords",value:function(e,t){if(!(e<0||t<0)){var n=this.mergedCellsCollection.get(e,t);if(n){var r=n.row,o=n.col,i=n.colspan;return[r,o,r+n.rowspan-1,o+i-1]}}}},{key:"addMergeActionsToContextMenu",value:function(e){e.items.push({name:"---------"},(0,E.default)(this))}},{key:"onAfterRenderer",value:function(e,t,n){var r=this.mergedCellsCollection.get(t,n),i=(0,T.isObject)(r)?(0,T.clone)(r):void 0;if((0,T.isObject)(i)){var a=this.hot,s=a.rowIndexMapper,u=a.columnIndexMapper,l=i.row,c=i.col,f=i.colspan,d=i.rowspan,h=this.translateMergedCellToRenderable(l,d,c,f),p=(0,o.default)(h,2),y=p[0],m=p[1],g=y-s.getRenderableFromVisualIndex(t)+1,v=m-u.getRenderableFromVisualIndex(n)+1;i.row=s.getFirstNotHiddenIndex(i.row,1),i.col=u.getFirstNotHiddenIndex(i.col,1),i.rowspan=Math.min(i.rowspan,g),i.colspan=Math.min(i.colspan,v)}(0,R.applySpanProperties)(e,i,t,n)}},{key:"onBeforeSetRangeStart",value:function(e){if(this.mergedCellsCollection.isFirstRenderableMergedCell(e.row,e.col)){var t=this.mergedCellsCollection.get(e.row,e.col),n=[t.row,t.col];e.row=n[0],e.col=n[1]}}},{key:"onBeforeSetRangeEnd",value:function(e){var t=this.hot.getSelectedRangeLast();t.highlight=this.hot._createCellCoords(t.highlight.row,t.highlight.col),t.to=e;var n=!1;if(!this.hot.selection.isSelectedByColumnHeader()&&!this.hot.selection.isSelectedByRowHeader())do{n=!1;for(var r=0;r<this.mergedCellsCollection.mergedCells.length;r+=1){var o=this.mergedCellsCollection.mergedCells[r].getRange();t.expandByRange(o)&&(e.row=t.to.row,e.col=t.to.col,n=!0)}}while(n)}},{key:"onAfterGetCellMeta",value:function(e,t,n){var r=this.mergedCellsCollection.get(e,t);r&&(r.row!==e||r.col!==t?n.copyable=!1:(n.rowspan=r.rowspan,n.colspan=r.colspan))}},{key:"onAfterViewportRowCalculatorOverride",value:function(e){var t=this.hot.countCols();this.modifyViewportRowStart(e,t),this.modifyViewportRowEnd(e,t)}},{key:"modifyViewportRowStart",value:function(e,t){for(var n=this.hot.rowIndexMapper,r=n.getVisualFromRenderableIndex(e.startRow),o=0;o<t;o+=1){var i=this.mergedCellsCollection.get(r,o);if((0,T.isObject)(i)){var a=n.getRenderableFromVisualIndex(n.getFirstNotHiddenIndex(i.row,1));if(a<e.startRow)return e.startRow=a,void this.modifyViewportRowStart(e,t)}}}},{key:"modifyViewportRowEnd",value:function(e,t){for(var n=this.hot.rowIndexMapper,r=n.getVisualFromRenderableIndex(e.endRow),o=0;o<t;o+=1){var i=this.mergedCellsCollection.get(r,o);if((0,T.isObject)(i)){var a=i.row+i.rowspan-1,s=n.getRenderableFromVisualIndex(n.getFirstNotHiddenIndex(a,-1));if(s>e.endRow)return e.endRow=s,void this.modifyViewportRowEnd(e,t)}}}},{key:"onAfterViewportColumnCalculatorOverride",value:function(e){var t=this.hot.countRows();this.modifyViewportColumnStart(e,t),this.modifyViewportColumnEnd(e,t)}},{key:"modifyViewportColumnStart",value:function(e,t){for(var n=this.hot.columnIndexMapper,r=n.getVisualFromRenderableIndex(e.startColumn),o=0;o<t;o+=1){var i=this.mergedCellsCollection.get(o,r);if((0,T.isObject)(i)){var a=n.getRenderableFromVisualIndex(n.getFirstNotHiddenIndex(i.col,1));if(a<e.startColumn)return e.startColumn=a,void this.modifyViewportColumnStart(e,t)}}}},{key:"modifyViewportColumnEnd",value:function(e,t){for(var n=this.hot.columnIndexMapper,r=n.getVisualFromRenderableIndex(e.endColumn),o=0;o<t;o+=1){var i=this.mergedCellsCollection.get(o,r);if((0,T.isObject)(i)){var a=i.col+i.colspan-1,s=n.getRenderableFromVisualIndex(n.getFirstNotHiddenIndex(a,-1));if(s>e.endColumn)return e.endColumn=s,void this.modifyViewportColumnEnd(e,t)}}}},{key:"translateMergedCellToRenderable",value:function(e,t,n,r){var o,i,a=this.hot,s=a.rowIndexMapper,u=a.columnIndexMapper;return o=0===t?s.getFirstNotHiddenIndex(e,1):s.getFirstNotHiddenIndex(e+t-1,-1),i=0===r?u.getFirstNotHiddenIndex(n,1):u.getFirstNotHiddenIndex(n+r-1,-1),[e>=0?s.getRenderableFromVisualIndex(o):e,n>=0?u.getRenderableFromVisualIndex(i):n]}},{key:"onModifyAutofillRange",value:function(e,t){this.autofillCalculations.correctSelectionAreaSize(t);var n=this.autofillCalculations.getDirection(t,e),r=e;if(this.autofillCalculations.dragAreaOverlapsCollections(t,r,n))return r=t;var o=this.mergedCellsCollection.getWithinRange({from:{row:t[0],col:t[1]},to:{row:t[2],col:t[3]}});return o?r=this.autofillCalculations.snapDragArea(t,r,n,o):r}},{key:"onAfterCreateCol",value:function(e,t){this.mergedCellsCollection.shiftCollections("right",e,t)}},{key:"onAfterRemoveCol",value:function(e,t){this.mergedCellsCollection.shiftCollections("left",e,t)}},{key:"onAfterCreateRow",value:function(e,t,n){"auto"!==n&&this.mergedCellsCollection.shiftCollections("down",e,t)}},{key:"onAfterRemoveRow",value:function(e,t){this.mergedCellsCollection.shiftCollections("up",e,t)}},{key:"onAfterChange",value:function(e,t){"Autofill.fill"===t&&this.autofillCalculations.recreateAfterDataPopulation(e)}},{key:"onBeforeDrawAreaBorders",value:function(e,t){if(t&&"area"===t){var n=this.hot.getSelectedRangeLast(),r=this.mergedCellsCollection.getWithinRange(n);(0,b.arrayEach)(r,(function(t){n.getBottomEndCorner().row===t.getLastRow()&&n.getBottomEndCorner().col===t.getLastColumn()&&(e[2]=t.row,e[3]=t.col)}))}}},{key:"onAfterModifyTransformStart",value:function(e,t,n){if(this.enabled){var r=this.mergedCellsCollection.get(e.row,e.col);if(r){var o=t>0,i=t<0,a=n<0,s=n>0,u=r.row+r.rowspan-1==this.hot.countRows()-1,l=0===r.row,c=r.col+r.colspan-1==this.hot.countCols()-1,f=0===r.col;(o&&u||i&&l||s&&c||a&&f)&&(e.row=r.row,e.col=r.col)}}}},{key:"onAfterDrawSelection",value:function(e,t,n,r){if(n)return this.selectionCalculations.getSelectedMergedCellClassName(e,t,n,r)}},{key:"onBeforeRemoveCellClassNames",value:function(){return this.selectionCalculations.getSelectedMergedCellClassNameToRemove()}}],[{key:"PLUGIN_KEY",get:function(){return"mergeCells"}},{key:"PLUGIN_PRIORITY",get:function(){return 150}}]),n}(h.BasePlugin);t.MergeCells=A},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(79));n(35),n(54);var i,a=r(n(44)),s=r(n(5)),u=r(n(6)),l=r(n(319)),c=n(47),f=n(88),d=n(20),h=n(639),p=n(80),y=function(){function e(t){(0,s.default)(this,e),this.plugin=t,this.mergedCells=[],this.hot=t.hot}return(0,u.default)(e,[{key:"get",value:function(e,t){var n=this.mergedCells,r=!1;return(0,d.arrayEach)(n,(function(n){return!(n.row<=e&&n.row+n.rowspan-1>=e&&n.col<=t&&n.col+n.colspan-1>=t)||(r=n,!1)})),r}},{key:"getByRange",value:function(e){var t=this.mergedCells,n=!1;return(0,d.arrayEach)(t,(function(t){return!(t.row<=e.from.row&&t.row+t.rowspan-1>=e.to.row&&t.col<=e.from.col&&t.col+t.colspan-1>=e.to.col)||(n=t)})),n}},{key:"getWithinRange",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.mergedCells,o=[],i=e;if(!i.includesRange){var a=this.hot._createCellCoords(i.from.row,i.from.col),s=this.hot._createCellCoords(i.to.row,i.to.col);i=this.hot._createCellRange(a,a,s)}return(0,d.arrayEach)(r,(function(e){var r=t.hot._createCellCoords(e.row,e.col),a=t.hot._createCellCoords(e.row+e.rowspan-1,e.col+e.colspan-1),s=t.hot._createCellRange(r,r,a);n?i.overlaps(s)&&o.push(e):i.includesRange(s)&&o.push(e)})),!!o.length&&o}},{key:"add",value:function(t){var n=this.mergedCells,r=t.row,o=t.col,i=t.rowspan,a=t.colspan,s=new l.default(r,o,i,a,this.hot._createCellCoords,this.hot._createCellRange),u=this.get(r,o),c=this.isOverlapping(s);return u||c?((0,f.warn)(e.IS_OVERLAPPING_WARNING(s)),!1):(this.hot&&s.normalize(this.hot),n.push(s),s)}},{key:"remove",value:function(e,t){var n=this.mergedCells,r=this.get(e,t),o=r?this.mergedCells.indexOf(r):-1;return!(!r||-1===o)&&(n.splice(o,1),r)}},{key:"clear",value:function(){var e=this,t=this.mergedCells,n=[],r=[];(0,d.arrayEach)(t,(function(t){var r=e.hot.getCell(t.row,t.col);r&&n.push([r,e.get(t.row,t.col),t.row,t.col])})),this.mergedCells.length=0,(0,d.arrayEach)(n,(function(t,o){(0,c.rangeEach)(0,t.rowspan-1,(function(n){(0,c.rangeEach)(0,t.colspan-1,(function(o){if(0!==o||0!==n){var i=e.hot.getCell(t.row+n,t.col+o);i&&r.push([i,null,null,null])}}))})),n[o][1]=null})),(0,d.arrayEach)(n,(function(e){h.applySpanProperties.apply(void 0,(0,a.default)(e))})),(0,d.arrayEach)(r,(function(e){h.applySpanProperties.apply(void 0,(0,a.default)(e))}))}},{key:"isOverlapping",value:function(e){var t=this,n=this.hot._createCellRange(this.hot._createCellCoords(0,0),this.hot._createCellCoords(e.row,e.col),this.hot._createCellCoords(e.row+e.rowspan-1,e.col+e.colspan-1)),r=!1;return(0,d.arrayEach)(this.mergedCells,(function(e){return!t.hot._createCellRange(t.hot._createCellCoords(0,0),t.hot._createCellCoords(e.row,e.col),t.hot._createCellCoords(e.row+e.rowspan-1,e.col+e.colspan-1)).overlaps(n)||(r=!0,!1)})),r}},{key:"isFirstRenderableMergedCell",value:function(e,t){var n=this.get(e,t);return n&&this.hot.rowIndexMapper.getFirstNotHiddenIndex(n.row,1)===e&&this.hot.columnIndexMapper.getFirstNotHiddenIndex(n.col,1)===t}},{key:"getFirstRenderableCoords",value:function(e,t){var n=this.get(e,t);if(!n||this.isFirstRenderableMergedCell(e,t))return this.hot._createCellCoords(e,t);var r=this.hot.rowIndexMapper.getFirstNotHiddenIndex(n.row,1),o=this.hot.columnIndexMapper.getFirstNotHiddenIndex(n.col,1);return this.hot._createCellCoords(r,o)}},{key:"shiftCollections",value:function(e,t,n){var r=this,o=[0,0];switch(e){case"right":o[0]+=n;break;case"left":o[0]-=n;break;case"down":o[1]+=n;break;case"up":o[1]-=n}(0,d.arrayEach)(this.mergedCells,(function(e){e.shift(o,t)})),(0,c.rangeEachReverse)(this.mergedCells.length-1,0,(function(e){var t=r.mergedCells[e];t&&t.removed&&r.mergedCells.splice(r.mergedCells.indexOf(t),1)}))}}],[{key:"IS_OVERLAPPING_WARNING",value:function(e){return(0,p.toSingleLine)(i||(i=(0,o.default)(["The merged cell declared at [",", ","], overlaps \n with the other declared merged cell. The overlapping merged cell was not added to the table, please \n fix your setup."],["The merged cell declared at [",", ","], overlaps\\x20\n with the other declared merged cell. The overlapping merged cell was not added to the table, please\\x20\n fix your setup."])),e.row,e.col)}}]),e}();t.default=y},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0,n(13),n(35);var o=r(n(34)),i=r(n(5)),a=r(n(6)),s=n(17),u=n(20),l=function(){function e(t){(0,i.default)(this,e),this.plugin=t,this.mergedCellsCollection=this.plugin.mergedCellsCollection,this.currentFillData=null}return(0,a.default)(e,[{key:"correctSelectionAreaSize",value:function(e){if(e[0]===e[2]&&e[1]===e[3]){var t=this.mergedCellsCollection.get(e[0],e[1]);t&&(e[2]=e[0]+t.rowspan-1,e[3]=e[1]+t.colspan-1)}}},{key:"getDirection",value:function(e,t){return t[0]===e[0]&&t[1]===e[1]&&t[3]===e[3]?"down":t[2]===e[2]&&t[1]===e[1]&&t[3]===e[3]?"up":t[1]===e[1]&&t[2]===e[2]?"right":"left"}},{key:"snapDragArea",value:function(e,t,n,r){var i=t.slice(0),a=this.getAutofillSize(e,t,n),s=(0,o.default)(e,4),u=s[0],l=s[1],c=s[2],f=s[3],d=["up","down"].indexOf(n)>-1?c-u+1:f-l+1,h=a-Math.floor(a/d)*d,p=this.getFarthestCollection(e,t,n,r);if(p)if("down"===n){var y=p.row+p.rowspan-u-h;i[2]+y>=this.plugin.hot.countRows()?i[2]-=h:i[2]+=h?y:0}else if("right"===n){var m=p.col+p.colspan-l-h;i[3]+m>=this.plugin.hot.countCols()?i[3]-=h:i[3]+=h?m:0}else if("up"===n){var g=c-h-p.row+1;i[0]+g<0?i[0]+=h:i[0]-=h?g:0}else if("left"===n){var v=f-h-p.col+1;i[1]+v<0?i[1]+=h:i[1]-=h?v:0}return this.updateCurrentFillCache({baseArea:e,dragDirection:n,foundMergedCells:r,fillSize:a,dragArea:i,cycleLength:d}),i}},{key:"updateCurrentFillCache",value:function(e){this.currentFillData||(this.currentFillData={}),(0,s.extend)(this.currentFillData,e)}},{key:"getAutofillSize",value:function(e,t,n){var r=(0,o.default)(e,4),i=r[0],a=r[1],s=r[2],u=r[3],l=(0,o.default)(t,4),c=l[0],f=l[1],d=l[2],h=l[3];switch(n){case"up":return i-c;case"down":return d-s;case"left":return a-f;case"right":return h-u;default:return null}}},{key:"getDragArea",value:function(e,t,n){var r=(0,o.default)(e,4),i=r[0],a=r[1],s=r[2],u=r[3],l=(0,o.default)(t,4),c=l[0],f=l[1],d=l[2],h=l[3];switch(n){case"up":return[c,f,i-1,u];case"down":return[s+1,a,d,u];case"left":return[c,f,s,a-1];case"right":return[i,u+1,d,h];default:return null}}},{key:"getFarthestCollection",value:function(e,t,n,r){var i=(0,o.default)(e,4),a=i[0],s=i[1],l=i[2],c=i[3],f=["up","down"].indexOf(n)>-1,d=f?l:c,h=f?a:s,p=this.getAutofillSize(e,t,n),y=f?l-a+1:c-s+1,m=p-Math.floor(p/y)*y,g=null,v=null,E=null;switch(n){case"up":g="includesVertically",E=d-m+1;break;case"left":g="includesHorizontally",E=d-m+1;break;case"down":g="includesVertically",E=h+m-1;break;case"right":g="includesHorizontally",E=h+m-1}return(0,u.arrayEach)(r,(function(e){e[g](E)&&e.isFarther(v,n)&&(v=e)})),v}},{key:"recreateAfterDataPopulation",value:function(e){if(this.currentFillData){var t=this.getRangeFromChanges(e),n=this.currentFillData.foundMergedCells,r=this.currentFillData.dragDirection,o=function(e,n){switch(r){case"up":return e.row-n>=t.from.row;case"down":return e.row+e.rowspan-1+n<=t.to.row;case"left":return e.col-n>=t.from.column;case"right":return e.col+e.colspan-1+n<=t.to.column;default:return null}},i=0,a=null,s=1;do{for(var u=0;u<n.length;u+=1){if(o(a=n[u],i=s*this.currentFillData.cycleLength))switch(r){case"up":this.plugin.mergedCellsCollection.add({row:a.row-i,rowspan:a.rowspan,col:a.col,colspan:a.colspan});break;case"down":this.plugin.mergedCellsCollection.add({row:a.row+i,rowspan:a.rowspan,col:a.col,colspan:a.colspan});break;case"left":this.plugin.mergedCellsCollection.add({row:a.row,rowspan:a.rowspan,col:a.col-i,colspan:a.colspan});break;case"right":this.plugin.mergedCellsCollection.add({row:a.row,rowspan:a.rowspan,col:a.col+i,colspan:a.colspan})}u===n.length-1&&(s+=1)}}while(o(a,i));this.currentFillData=null,this.plugin.hot.render()}}},{key:"getRangeFromChanges",value:function(e){var t=this,n={min:null,max:null},r={min:null,max:null};return(0,u.arrayEach)(e,(function(e){var o=e[0],i=t.plugin.hot.propToCol(e[1]);(null===n.min||o<n.min)&&(n.min=o),(null===n.max||o>n.max)&&(n.max=o),(null===r.min||i<r.min)&&(r.min=i),(null===r.max||i>r.max)&&(r.max=i)})),{from:{row:n.min,column:r.min},to:{row:n.max,column:r.max}}}},{key:"dragAreaOverlapsCollections",value:function(e,t,n){var r=this.getDragArea(e,t,n),i=(0,o.default)(r,4),a=i[0],s=i[1],u=i[2],l=i[3],c=this.plugin.hot._createCellCoords(a,s),f=this.plugin.hot._createCellCoords(u,l),d=this.plugin.hot._createCellRange(c,c,f);return!!this.mergedCellsCollection.getWithinRange(d,!0)}}]),e}();t.default=l},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0,n(18),n(42),n(49);var o=r(n(5)),i=r(n(6)),a=function(){function e(t){(0,o.default)(this,e),this.plugin=t,this.hot=t.hot,this.fullySelectedMergedCellClassName="fullySelectedMergedCell"}return(0,i.default)(e,[{key:"snapDelta",value:function(e,t,n){var r=t.to,o=r.row+e.row,i=r.col+e.col;e.row?this.jumpOverMergedCell(e,n,o):e.col&&this.jumpOverMergedCell(e,n,i)}},{key:"jumpOverMergedCell",value:function(e,t,n){var r=e.row||e.col,o=null,i=null,a=null;e.row?(o=t.includesVertically(n),i=t.row,a=t.getLastRow()):e.col&&(o=t.includesHorizontally(n),i=t.col,a=t.getLastColumn()),0!==r&&(r>0?o&&n!==i&&(r+=a-n+1):o&&n!==a&&(r-=n-i+1),e.row?e.row=r:e.col&&(e.col=r))}},{key:"getUpdatedSelectionRange",value:function(e,t){return this.hot._createCellRange(e.highlight,e.from,this.hot._createCellCoords(e.to.row+t.row,e.to.col+t.col))}},{key:"getSelectedMergedCellClassName",value:function(e,t,n,r){var o=Math.min(n[0],n[2]),i=Math.min(n[1],n[3]),a=Math.max(n[0],n[2]),s=Math.max(n[1],n[3]);if(void 0!==r&&this.plugin.mergedCellsCollection.isFirstRenderableMergedCell(e,t)){var u=this.plugin.mergedCellsCollection.get(e,t);if(u){var l=u.getLastRow(),c=u.getLastColumn();return o<=u.row&&i<=u.col&&a>=l&&s>=c?"".concat(this.fullySelectedMergedCellClassName,"-").concat(r):this.plugin.selectionCalculations.isMergeCellFullySelected(u,this.plugin.hot.getSelectedRange())?"".concat(this.fullySelectedMergedCellClassName,"-multiple"):void 0}}}},{key:"isMergeCellFullySelected",value:function(e,t){var n=[];if(!t||!e)return!1;for(var r=0;r<e.rowspan;r+=1)for(var o=0;o<e.colspan;o+=1)n.push(this.hot._createCellCoords(e.row+r,e.col+o));for(var i=0;i<n.length;i+=1){for(var a=[],s=0;s<t.length;s+=1)a[s]=t[s].includes(n[i]);if(!a.includes(!0))return!1}return!0}},{key:"getSelectedMergedCellClassNameToRemove",value:function(){for(var e=[],t=0;t<=7;t+=1)e.push("".concat(this.fullySelectedMergedCellClassName,"-").concat(t));return e.push("".concat(this.fullySelectedMergedCellClassName,"-multiple")),e}}]),e}();t.default=a},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.default=function(e){return{key:"mergeCells",name:function(){var t=this.getSelectedLast();if(t){var n=e.mergedCellsCollection.get(t[0],t[1]);if(n.row===t[0]&&n.col===t[1]&&n.row+n.rowspan-1===t[2]&&n.col+n.colspan-1===t[3])return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_UNMERGE_CELLS)}return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_MERGE_CELLS)},callback:function(){e.toggleMergeOnSelection()},disabled:function(){var e=this.getSelectedLast();return!e||(a.default.isSingleCell({row:e[0],col:e[1],rowspan:e[2]-e[0]+1,colspan:e[3]-e[1]+1})||this.selection.isSelectedByCorner())},hidden:!1}};var i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(r,a,u):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30)),a=r(n(319));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.MultiColumnSorting=void 0;var r=n(1043);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.MultiColumnSorting=r.MultiColumnSorting},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.MultiColumnSorting=void 0,n(18),n(73);var o=r(n(5)),i=r(n(6)),a=r(n(31)),s=r(n(15)),u=r(n(16)),l=r(n(14)),c=n(620),f=n(127),d=n(312),h=n(23),p=n(1044),y=n(1045),m=n(1046);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,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,u.default)(this,n)}}n(1047);var v="multiColumnSorting";t.PLUGIN_KEY=v;t.PLUGIN_PRIORITY=170;(0,f.registerRootComparator)(v,p.rootComparator);var E=function(e){(0,s.default)(n,e);var t=g(n);function n(e){var r;return(0,o.default)(this,n),(r=t.call(this,e)).pluginKey=v,r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return(0,a.default)((0,l.default)(n.prototype),"isEnabled",this).call(this)}},{key:"enablePlugin",value:function(){!this.enabled&&this.hot.getSettings()[this.pluginKey]&&this.hot.getSettings().columnSorting&&(0,y.warnAboutPluginsConflict)(),(0,a.default)((0,l.default)(n.prototype),"enablePlugin",this).call(this)}},{key:"disablePlugin",value:function(){(0,a.default)((0,l.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"sort",value:function(e){(0,a.default)((0,l.default)(n.prototype),"sort",this).call(this,e)}},{key:"clearSort",value:function(){(0,a.default)((0,l.default)(n.prototype),"clearSort",this).call(this)}},{key:"isSorted",value:function(){return(0,a.default)((0,l.default)(n.prototype),"isSorted",this).call(this)}},{key:"getSortConfig",value:function(e){return(0,a.default)((0,l.default)(n.prototype),"getSortConfig",this).call(this,e)}},{key:"setSortConfig",value:function(e){(0,a.default)((0,l.default)(n.prototype),"setSortConfig",this).call(this,e)}},{key:"getNormalizedSortConfigs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)?e:[e]}},{key:"updateHeaderClasses",value:function(e){for(var t,r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];(t=(0,a.default)((0,l.default)(n.prototype),"updateHeaderClasses",this)).call.apply(t,[this,e].concat(o)),(0,h.removeClass)(e,(0,m.getClassesToRemove)(e)),!1!==this.enabled&&(0,h.addClass)(e,m.getClassesToAdd.apply(void 0,o))}},{key:"onUpdateSettings",value:function(e){this.hot.getSettings()[this.pluginKey]&&this.hot.getSettings().columnSorting&&(0,y.warnAboutPluginsConflict)(),(0,a.default)((0,l.default)(n.prototype),"onUpdateSettings",this).call(this,e)}},{key:"onAfterOnCellMouseDown",value:function(e,t){!1!==(0,d.wasHeaderClickedProperly)(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)&&(this.hot.getShortcutManager().isCtrlPressed()?(this.hot.deselectCell(),this.hot.selectColumns(t.col),this.sort(this.getNextSortConfig(t.col,"append"))):this.sort(this.getColumnNextConfig(t.col)))}}],[{key:"PLUGIN_KEY",get:function(){return v}},{key:"PLUGIN_PRIORITY",get:function(){return 170}}]),n}(c.ColumnSorting);t.MultiColumnSorting=E},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.rootComparator=function(e,t){return function(n,r){var a=(0,o.default)(n).slice(1),s=(0,o.default)(r).slice(1);return function n(r){var o=e[r],u=t[r],l=a[r],c=s[r],f=u.multiColumnSorting,d=(f.compareFunctionFactory?f.compareFunctionFactory:(0,i.getCompareFunctionFactory)(u.type))(o,u,f)(l,c);if(d===i.DO_NOT_SWAP){var h=r+1;if(void 0!==t[h])return n(h)}return d}(0)}},n(13);var o=r(n(621)),i=n(127)},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.warnAboutPluginsConflict=function(){(0,a.warn)((0,s.toSingleLine)(o||(o=(0,i.default)(["Plugins `columnSorting` and `multiColumnSorting` should not be enabled simultaneously. \n Only `multiColumnSorting` will work."],["Plugins \\`columnSorting\\` and \\`multiColumnSorting\\` should not be enabled simultaneously. \n Only \\`multiColumnSorting\\` will work."]))))};var o,i=r(n(79)),a=n(88),s=n(80)},function(e,t,n){"use strict";t.__esModule=!0,t.getClassesToAdd=function(e,t,n){var r=[];if(!1===n)return r;e.isColumnSorted(t)&&e.getNumberOfSortedColumns()>1&&r.push("".concat("sort","-").concat(e.getIndexOfColumnInSortQueue(t)+1));return r},t.getClassesToRemove=function(e){var t=e.className.split(" "),n=new RegExp("^".concat("sort","-[0-9]{1,2}$"));return t.filter((function(e){return n.test(e)}))},n(12),n(61),n(94),n(66),n(40),n(0)},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.MultipleSelectionHandles=void 0;var r=n(1049);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.MultipleSelectionHandles=r.MultipleSelectionHandles},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.MultipleSelectionHandles=void 0,n(54),n(35),n(13);var o=r(n(5)),i=r(n(6)),a=r(n(31)),s=r(n(15)),u=r(n(16)),l=r(n(14)),c=n(23),f=n(101),d=n(50),h=r(n(59));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,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,u.default)(this,n)}}t.PLUGIN_KEY="multipleSelectionHandles";t.PLUGIN_PRIORITY=160;var y=function(e){(0,s.default)(n,e);var t=p(n);function n(e){var r;return(0,o.default)(this,n),(r=t.call(this,e)).dragged=[],r.eventManager=null,r.lastSetCell=null,r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return(0,f.isMobileBrowser)()}},{key:"enablePlugin",value:function(){this.enabled||(this.eventManager||(this.eventManager=new h.default(this)),this.registerListeners(),(0,a.default)((0,l.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"registerListeners",value:function(){var e=this,t=this,n=this.hot.rootElement;function r(e){if(1===t.dragged.length)return t.dragged.splice(0,t.dragged.length),!0;var n=t.dragged.indexOf(e);if(-1===n)return!1;0===n?t.dragged=t.dragged.slice(0,1):1===n&&(t.dragged=t.dragged.slice(-1))}this.eventManager.addEventListener(n,"touchstart",(function(e){var n;return(0,c.hasClass)(e.target,"topSelectionHandle-HitArea")?(n=t.hot.getSelectedRangeLast(),t.dragged.push("top"),t.touchStartRange={width:n.getWidth(),height:n.getHeight(),direction:n.getDirection()},e.preventDefault(),!1):(0,c.hasClass)(e.target,"bottomSelectionHandle-HitArea")?(n=t.hot.getSelectedRangeLast(),t.dragged.push("bottom"),t.touchStartRange={width:n.getWidth(),height:n.getHeight(),direction:n.getDirection()},e.preventDefault(),!1):void 0})),this.eventManager.addEventListener(n,"touchend",(function(e){return(0,c.hasClass)(e.target,"topSelectionHandle-HitArea")?(r.call(t,"top"),t.touchStartRange=void 0,e.preventDefault(),!1):(0,c.hasClass)(e.target,"bottomSelectionHandle-HitArea")?(r.call(t,"bottom"),t.touchStartRange=void 0,e.preventDefault(),!1):void 0})),this.eventManager.addEventListener(n,"touchmove",(function(n){var r,o,i,a,s,u,l=e.hot.rootDocument;if(0!==t.dragged.length){var c=l.elementFromPoint(n.touches[0].clientX,n.touches[0].clientY);c&&c!==t.lastSetCell&&("TD"!==c.nodeName&&"TH"!==c.nodeName||(-1===(r=t.hot.getCoords(c)).col&&(r.col=0),i=(o=t.hot.getSelectedRangeLast()).getWidth(),a=o.getHeight(),s=o.getDirection(),1===i&&1===a&&t.hot.selection.setRangeEnd(r),null!==(u=t.getCurrentRangeCoords(o,r,t.touchStartRange.direction,s,t.dragged[0])).start&&t.hot.selection.setRangeStart(u.start),t.hot.selection.setRangeEnd(u.end),t.lastSetCell=c),n.preventDefault())}}))}},{key:"getCurrentRangeCoords",value:function(e,t,n,r,o){var i=e.getTopStartCorner(),a=e.getBottomEndCorner(),s=e.getBottomStartCorner(),u=e.getTopEndCorner(),l={start:null,end:null};switch(n){case"NE-SW":switch(r){case"NE-SW":case"NW-SE":l="top"===o?{start:this.hot._createCellCoords(t.row,e.highlight.col),end:this.hot._createCellCoords(s.row,t.col)}:{start:this.hot._createCellCoords(e.highlight.row,t.col),end:this.hot._createCellCoords(t.row,i.col)};break;case"SE-NW":"bottom"===o&&(l={start:this.hot._createCellCoords(a.row,t.col),end:this.hot._createCellCoords(t.row,i.col)})}break;case"NW-SE":switch(r){case"NE-SW":"top"===o?l={start:t,end:s}:l.end=t;break;case"NW-SE":"top"===o?l={start:t,end:a}:l.end=t;break;case"SE-NW":"top"===o?l={start:t,end:i}:l.end=t;break;case"SW-NE":"top"===o?l={start:t,end:u}:l.end=t}break;case"SW-NE":switch(r){case"NW-SE":l="bottom"===o?{start:this.hot._createCellCoords(t.row,i.col),end:this.hot._createCellCoords(s.row,t.col)}:{start:this.hot._createCellCoords(i.row,t.col),end:this.hot._createCellCoords(t.row,a.col)};break;case"SW-NE":l="top"===o?{start:this.hot._createCellCoords(e.highlight.row,t.col),end:this.hot._createCellCoords(t.row,a.col)}:{start:this.hot._createCellCoords(t.row,i.col),end:this.hot._createCellCoords(i.row,t.col)};break;case"SE-NW":"bottom"===o?l={start:this.hot._createCellCoords(t.row,u.col),end:this.hot._createCellCoords(i.row,t.col)}:"top"===o&&(l={start:s,end:t})}break;case"SE-NW":switch(r){case"NW-SE":case"NE-SW":case"SW-NE":"top"===o&&(l.end=t);break;case"SE-NW":"top"===o?l.end=t:l={start:t,end:i}}}return l}},{key:"isDragged",value:function(){return this.dragged.length>0}}],[{key:"PLUGIN_KEY",get:function(){return"multipleSelectionHandles"}},{key:"PLUGIN_PRIORITY",get:function(){return 160}}]),n}(d.BasePlugin);t.MultipleSelectionHandles=y},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.NestedHeaders=void 0;var r=n(1051);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.NestedHeaders=r.NestedHeaders},function(e,t,n){"use strict";n(7);var r=n(1);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.NestedHeaders=void 0;var o=r(n(79));n(18),n(0),n(26),n(3),n(2),n(11),n(4);var i,a,s=r(n(5)),u=r(n(6)),l=r(n(46)),c=r(n(31)),f=r(n(15)),d=r(n(16)),h=r(n(14)),p=r(n(43)),y=r(n(104)),m=r(n(103)),g=n(23),v=n(47),E=n(81),b=n(80),T=n(88),C=n(306),w=n(50),R=r(n(1052)),O=r(n(1061));function S(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)}}function A(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}n(1062);t.PLUGIN_KEY="nestedHeaders";t.PLUGIN_PRIORITY=280;var N=new WeakMap,_=new WeakMap,k=function(e){(0,f.default)(n,e);var t=S(n);function n(){var e;(0,s.default)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),A((0,l.default)(e),N,{writable:!0,value:new R.default}),A((0,l.default)(e),_,{writable:!0,value:null}),(0,p.default)((0,l.default)(e),"ghostTable",new O.default((0,l.default)(e))),(0,p.default)((0,l.default)(e),"detectedOverlappedHeaders",!1),e}return(0,u.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().nestedHeaders}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var t=this.hot.getSettings().nestedHeaders;Array.isArray(t)&&Array.isArray(t[0])||(0,T.warn)((0,b.toSingleLine)(i||(i=(0,o.default)(["Your Nested Headers plugin configuration is invalid. The settings has to be \n passed as an array of arrays e.q. [['A1', { label: 'A2', colspan: 2 }]]"],["Your Nested Headers plugin configuration is invalid. The settings has to be\\x20\n passed as an array of arrays e.q. [['A1', { label: 'A2', colspan: 2 }]]"])))),this.addHook("init",(function(){return e.onInit()})),this.addHook("afterLoadData",(function(){return e.onAfterLoadData.apply(e,arguments)})),this.addHook("beforeOnCellMouseDown",(function(){return e.onBeforeOnCellMouseDown.apply(e,arguments)})),this.addHook("afterOnCellMouseDown",(function(){return e.onAfterOnCellMouseDown.apply(e,arguments)})),this.addHook("beforeOnCellMouseOver",(function(){return e.onBeforeOnCellMouseOver.apply(e,arguments)})),this.addHook("afterGetColumnHeaderRenderers",(function(t){return e.onAfterGetColumnHeaderRenderers(t)})),this.addHook("modifyColWidth",(function(){return e.onModifyColWidth.apply(e,arguments)})),this.addHook("beforeHighlightingColumnHeader",(function(){return e.onBeforeHighlightingColumnHeader.apply(e,arguments)})),this.addHook("afterViewportColumnCalculatorOverride",(function(){return e.onAfterViewportColumnCalculatorOverride.apply(e,arguments)})),(0,c.default)((0,h.default)(n.prototype),"enablePlugin",this).call(this),this.updatePlugin()}}},{key:"updatePlugin",value:function(){var e=this;if(this.hot.view){var t=this.hot.getSettings().nestedHeaders;(0,m.default)(this,N).setColumnsLimit(this.hot.countCols()),Array.isArray(t)&&(this.detectedOverlappedHeaders=(0,m.default)(this,N).setState(t)),this.detectedOverlappedHeaders&&(0,T.warn)((0,b.toSingleLine)(a||(a=(0,o.default)(["Your Nested Headers plugin setup contains overlapping headers. This kind of configuration \n is currently not supported."],["Your Nested Headers plugin setup contains overlapping headers. This kind of configuration\\x20\n is currently not supported."])))),this.enabled&&this.hot.columnIndexMapper.hidingMapsCollection.getMergedValues().forEach((function(t,n){var r=!0===t?"hide-column":"show-column";(0,m.default)(e,N).triggerColumnModification(r,n)})),!(0,m.default)(this,_)&&this.enabled&&(0,y.default)(this,_,this.hot.columnIndexMapper.createChangesObserver("hiding").subscribe((function(t){t.forEach((function(t){var n=t.op,r=t.index,o=t.newValue;if("replace"===n){var i=!0===o?"hide-column":"show-column";(0,m.default)(e,N).triggerColumnModification(i,r)}}))}))),this.ghostTable.buildWidthsMapper(),(0,c.default)((0,h.default)(n.prototype),"updatePlugin",this).call(this)}}},{key:"disablePlugin",value:function(){this.clearColspans(),(0,m.default)(this,N).clear(),(0,m.default)(this,_).unsubscribe(),(0,y.default)(this,_,null),this.ghostTable.clear(),(0,c.default)((0,h.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"getStateManager",value:function(){return(0,m.default)(this,N)}},{key:"getLayersCount",value:function(){return(0,m.default)(this,N).getLayersCount()}},{key:"getHeaderSettings",value:function(e,t){return(0,m.default)(this,N).getHeaderSettings(e,t)}},{key:"clearColspans",value:function(){if(this.hot.view)for(var e=this.hot.view._wt,t=e.getSetting("columnHeaders").length,n=e.wtTable.THEAD,r=e.wtOverlays.topOverlay.clone.wtTable.THEAD,o=e.wtOverlays.topInlineStartCornerOverlay?e.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.THEAD:null,i=0;i<t;i++){var a=n.childNodes[i];if(!a)break;for(var s=r.childNodes[i],u=o?o.childNodes[i]:null,l=0,c=a.childNodes.length;l<c;l++)a.childNodes[l].removeAttribute("colspan"),(0,g.removeClass)(a.childNodes[l],"hiddenHeader"),s&&s.childNodes[l]&&(s.childNodes[l].removeAttribute("colspan"),(0,g.removeClass)(s.childNodes[l],"hiddenHeader")),o&&u&&u.childNodes[l]&&(u.childNodes[l].removeAttribute("colspan"),(0,g.removeClass)(u.childNodes[l],"hiddenHeader"))}}},{key:"headerRendererFactory",value:function(e){var t=this,n=this.hot.view._wt.getSetting("fixedColumnsStart");return function(r,o){var i,a=t.hot,s=a.rootDocument,u=a.columnIndexMapper,l=a.view,c=u.getVisualFromRenderableIndex(r);null===c&&(c=r),o.removeAttribute("colspan"),(0,g.removeClass)(o,"hiddenHeader");var f=null!==(i=(0,m.default)(t,N).getHeaderSettings(e,c))&&void 0!==i?i:{label:""},d=f.colspan,h=f.label,p=f.isHidden;if(f.isPlaceholder||p)(0,g.addClass)(o,"hiddenHeader");else if(d>1){var y,v,E=l._wt.wtOverlays,b=null===(y=E.topInlineStartCornerOverlay)||void 0===y?void 0:y.clone.wtTable.THEAD.contains(o),T=null===(v=E.inlineStartOverlay)||void 0===v?void 0:v.clone.wtTable.THEAD.contains(o),C=b||T?Math.min(d,n-r):d;C>1&&o.setAttribute("colspan",C)}var w=s.createElement("div"),R=s.createElement("span");(0,g.addClass)(w,"relative"),(0,g.addClass)(R,"colHeader"),(0,g.fastInnerHTML)(R,h),w.appendChild(R),(0,g.empty)(o),o.appendChild(w),t.hot.runHooks("afterGetColHeader",c,o)}}},{key:"onBeforeHighlightingColumnHeader",value:function(e,t,n){var r=(0,m.default)(this,N).getHeaderTreeNodeData(t,e);if(!r)return e;var o=n.classNames,i=n.columnCursor,a=n.selectionType,s=n.selectionWidth,u=(0,m.default)(this,N).getHeaderSettings(t,e),l=u.isRoot,c=u.colspan;if(a===C.HEADER_TYPE){if(!l)return r.columnIndex}else a===C.ACTIVE_HEADER_TYPE&&(c>s-i||!l)&&(o.length=0);return e}},{key:"onBeforeOnCellMouseDown",value:function(e,t,n,r){this._getHeaderTreeNodeDataByCoords(t)&&(r.column=!0)}},{key:"onAfterOnCellMouseDown",value:function(e,t){var n=this._getHeaderTreeNodeDataByCoords(t);if(n){var r=this.hot.selection,o=r.isSelected()?r.getSelectedRange().current():null,i=[],a=n.columnIndex,s=n.origColspan,u=!r.inInSelection(t);e.shiftKey&&o?t.col<o.from.col?i.push(o.getTopEndCorner().col,a,t.row):t.col>o.from.col?i.push(o.getTopStartCorner().col,a+s-1,t.row):i.push(a,a+s-1,t.row):((0,E.isLeftClick)(e)||(0,E.isRightClick)(e)&&u)&&i.push(a,a+s-1,t.row),r.selectColumns.apply(r,i)}}},{key:"onBeforeOnCellMouseOver",value:function(e,t,n,r){var o;if(this.hot.view.isMouseDown()){var i=this._getHeaderTreeNodeDataByCoords(t);if(i){var a=i.columnIndex,s=i.origColspan,u=this.hot.getSelectedRangeLast(),l=u.getTopStartCorner(),c=u.getBottomEndCorner(),f=u.from;r.column=!0,r.cell=!0;var d=[];t.col<f.col?d.push(c.col,a):t.col>f.col?d.push(l.col,a+s-1):d.push(a,a+s-1),(o=this.hot).selectColumns.apply(o,d)}}}},{key:"onAfterGetColumnHeaderRenderers",value:function(e){if(e){e.length=0;for(var t=0;t<(0,m.default)(this,N).getLayersCount();t++)e.push(this.headerRendererFactory(t))}}},{key:"onAfterViewportColumnCalculatorOverride",value:function(e){for(var t=(0,m.default)(this,N).getLayersCount(),n=e.startColumn,r=!!t,o=0;o<t;o++){var i=(0,m.default)(this,N).findLeftMostColumnIndex(o,e.startColumn),a=this.hot.columnIndexMapper.getRenderableFromVisualIndex(i);if(i>=0&&(r=!1),(0,v.isNumeric)(a)&&a<e.startColumn){n=a;break}}e.startColumn=r?(0,m.default)(this,N).getHeaderTreeNodeData(0,n).columnIndex:n}},{key:"onModifyColWidth",value:function(e,t){var n=this.ghostTable.widthsCache[t];return e>n?e:n}},{key:"onInit",value:function(){this.updatePlugin()}},{key:"onAfterLoadData",value:function(e,t){t||this.updatePlugin()}},{key:"destroy",value:function(){(0,y.default)(this,N,null),null!==(0,m.default)(this,_)&&((0,m.default)(this,_).unsubscribe(),(0,y.default)(this,_,null)),(0,c.default)((0,h.default)(n.prototype),"destroy",this).call(this)}},{key:"_getHeaderTreeNodeDataByCoords",value:function(e){if(!(e.row>=0||e.col<0))return(0,m.default)(this,N).getHeaderTreeNodeData(e.row,e.col)}}],[{key:"PLUGIN_KEY",get:function(){return"nestedHeaders"}},{key:"PLUGIN_PRIORITY",get:function(){return 280}}]),n}(w.BasePlugin);t.NestedHeaders=k},function(e,t,n){"use strict";n(53),n(8),n(40),n(19),n(26),n(83);var r=n(1);t.__esModule=!0,t.default=void 0,n(37),n(3),n(0),n(2),n(11),n(4);var o=r(n(43)),i=r(n(117)),a=r(n(5)),s=r(n(6)),u=r(n(104)),l=r(n(103)),c=n(20),f=r(n(1053)),d=r(n(1055)),h=n(1057),p=n(1060),y=["row"];function m(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 g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var E=new WeakMap,b=new WeakMap,T=new WeakMap,C=function(){function e(){(0,a.default)(this,e),v(this,E,{writable:!0,value:new f.default}),v(this,b,{writable:!0,value:new d.default((0,l.default)(this,E))}),v(this,T,{writable:!0,value:[[]]})}return(0,s.default)(e,[{key:"setState",value:function(e){(0,l.default)(this,E).setData(e);var t=!1;try{(0,l.default)(this,b).buildTree()}catch(e){(0,l.default)(this,b).clear(),(0,l.default)(this,E).clear(),t=!0}return(0,u.default)(this,T,(0,p.generateMatrix)((0,l.default)(this,b).getRoots())),t}},{key:"setColumnsLimit",value:function(e){(0,l.default)(this,E).setColumnsLimit(e)}},{key:"mergeStateWith",value:function(e){var t=this,n=(0,c.arrayMap)(e,(function(e){var n=e.row,r=(0,i.default)(e,y);return g({row:n<0?t.rowCoordsToLevel(n):n},r)}));(0,l.default)(this,E).mergeWith(n),(0,l.default)(this,b).buildTree(),(0,u.default)(this,T,(0,p.generateMatrix)((0,l.default)(this,b).getRoots()))}},{key:"mapState",value:function(e){(0,l.default)(this,E).map(e),(0,l.default)(this,b).buildTree(),(0,u.default)(this,T,(0,p.generateMatrix)((0,l.default)(this,b).getRoots()))}},{key:"mapNodes",value:function(e){return(0,c.arrayReduce)((0,l.default)(this,b).getRoots(),(function(t,n){return n.walkDown((function(n){var r=e(n.data);void 0!==r&&t.push(r)})),t}),[])}},{key:"triggerNodeModification",value:function(e,t,n){t<0&&(t=this.rowCoordsToLevel(t));var r,o=(0,l.default)(this,b).getNode(t,n);return o&&(r=(0,h.triggerNodeModification)(e,o,n),(0,u.default)(this,T,(0,p.generateMatrix)((0,l.default)(this,b).getRoots()))),r}},{key:"triggerColumnModification",value:function(e,t){return this.triggerNodeModification(e,-1,t)}},{key:"rowCoordsToLevel",value:function(e){var t=Math.max(this.getLayersCount(),1),n=t-1;return Math.min(Math.max(e+t,0),n)}},{key:"levelToRowCoords",value:function(e){var t=Math.max(this.getLayersCount(),1),n=-t;return Math.min(Math.max(e-t,n),-1)}},{key:"getHeaderSettings",value:function(e,t){var n,r;return e<0&&(e=this.rowCoordsToLevel(e)),e>=this.getLayersCount()?null:null!==(n=null===(r=(0,l.default)(this,T)[e])||void 0===r?void 0:r[t])&&void 0!==n?n:null}},{key:"getHeaderTreeNodeData",value:function(e,t){e<0&&(e=this.rowCoordsToLevel(e));var n=(0,l.default)(this,b).getNode(e,t);return n?g({},n.data):null}},{key:"findLeftMostColumnIndex",value:function(e,t){var n;if((null!==(n=this.getHeaderSettings(e,t))&&void 0!==n?n:{isRoot:!0}).isRoot)return t;for(var r=t-1;r>=0;){var o;if((null!==(o=this.getHeaderSettings(e,r))&&void 0!==o?o:{isRoot:!0}).isRoot)break;r-=1}return r}},{key:"getLayersCount",value:function(){return(0,l.default)(this,E).getLayersCount()}},{key:"getColumnsCount",value:function(){return(0,l.default)(this,E).getColumnsCount()}},{key:"clear",value:function(){(0,u.default)(this,T,[]),(0,l.default)(this,E).clear(),(0,l.default)(this,b).clear()}}]),e}();t.default=C},function(e,t,n){"use strict";n(53),n(8),n(40),n(19),n(26),n(83);var r=n(1);t.__esModule=!0,t.default=t.HEADER_CONFIGURABLE_PROPS=void 0,n(3),n(0),n(2),n(11),n(4);var o=r(n(43)),i=r(n(117)),a=r(n(5)),s=r(n(6)),u=r(n(103)),l=r(n(104)),c=n(17),f=n(20),d=n(1054),h=["row","col"];function p(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 y(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var m=["label","collapsible"];t.HEADER_CONFIGURABLE_PROPS=m;var g=new WeakMap,v=new WeakMap,E=new WeakMap,b=function(){function e(){(0,a.default)(this,e),y(this,g,{writable:!0,value:[]}),y(this,v,{writable:!0,value:0}),y(this,E,{writable:!0,value:1/0})}return(0,s.default)(e,[{key:"setColumnsLimit",value:function(e){(0,l.default)(this,E,e)}},{key:"setData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(0,l.default)(this,g,(0,d.normalizeSettings)(e,(0,u.default)(this,E))),(0,l.default)(this,v,(0,u.default)(this,g).length)}},{key:"getData",value:function(){return(0,u.default)(this,g)}},{key:"mergeWith",value:function(e){var t=this;(0,f.arrayEach)(e,(function(e){var n=e.row,r=e.col,o=(0,i.default)(e,h),a=t.getHeaderSettings(n,r);null!==a&&(0,c.extend)(a,o,m)}))}},{key:"map",value:function(e){(0,f.arrayEach)((0,u.default)(this,g),(function(t){(0,f.arrayEach)(t,(function(t){var n=e(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t));(0,c.isObject)(n)&&(0,c.extend)(t,n,m)}))}))}},{key:"getHeaderSettings",value:function(e,t){var n;if(e>=(0,u.default)(this,v)||e<0)return null;var r=(0,u.default)(this,g)[e];return t>=r.length?null:null!==(n=r[t])&&void 0!==n?n:null}},{key:"getHeadersSettings",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=[];if(e>=(0,u.default)(this,v)||e<0)return r;for(var o=(0,u.default)(this,g)[e],i=0,a=t;a<o.length;a++){var s=o[a];if(s.isPlaceholder)throw new Error("The first column settings cannot overlap the other header layers");if(i+=s.colspan,r.push(s),s.colspan>1&&(a+=s.colspan-1),i===n)break;if(i>n)throw new Error("The last column settings cannot overlap the other header layers")}return r}},{key:"getLayersCount",value:function(){return(0,u.default)(this,v)}},{key:"getColumnsCount",value:function(){return(0,u.default)(this,v)>0?(0,u.default)(this,g)[0].length:0}},{key:"clear",value:function(){(0,l.default)(this,g,[]),(0,l.default)(this,v,0)}}]),e}();t.default=b},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.normalizeSettings=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,n=[];if(0===t)return n;(0,i.arrayEach)(e,(function(e){var r=[],o=0;n.push(r),(0,i.arrayEach)(e,(function(e){var n=(0,u.createDefaultHeaderSettings)();if((0,a.isObject)(e)){var i=e.label,l=e.colspan;n.label=(0,s.stringify)(i),"number"==typeof l&&l>1&&(n.colspan=l,n.origColspan=l)}else n.label=(0,s.stringify)(e);var c=!1;if((o+=n.origColspan)>=t&&(n.colspan=n.origColspan-(o-t),n.origColspan=n.colspan,c=!0),r.push(n),n.colspan>1)for(var f=0;f<n.colspan-1;f++)r.push((0,u.createPlaceholderHeaderSettings)());return!c}))}));var r=Math.max.apply(Math,(0,o.default)((0,i.arrayMap)(n,(function(e){return e.length}))));return(0,i.arrayEach)(n,(function(e){if(e.length<r){var t=(0,i.arrayMap)(new Array(r-e.length),(function(){return(0,u.createDefaultHeaderSettings)()}));e.splice.apply(e,[e.length,0].concat((0,o.default)(t)))}})),n},n(54),n(18);var o=r(n(44)),i=n(20),a=n(17),s=n(32),u=n(640)},function(e,t,n){"use strict";n(53),n(8),n(40),n(19),n(26),n(83);var r=n(1);t.__esModule=!0,t.default=void 0,n(3),n(33),n(0),n(2),n(4),n(22),n(11);var o=r(n(43)),i=r(n(34)),a=r(n(5)),s=r(n(6)),u=r(n(103)),l=r(n(104)),c=n(20),f=r(n(1056));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,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}function p(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var y=new WeakMap,m=new WeakMap,g=new WeakMap,v=function(){function e(t){(0,a.default)(this,e),p(this,y,{writable:!0,value:new Map}),p(this,m,{writable:!0,value:new Map}),p(this,g,{writable:!0,value:null}),(0,l.default)(this,g,t)}return(0,s.default)(e,[{key:"getRoots",value:function(){return Array.from((0,u.default)(this,y).values())}},{key:"getRootByColumn",value:function(e){var t;return(0,u.default)(this,m).has(e)&&(t=(0,u.default)(this,y).get((0,u.default)(this,m).get(e))),t}},{key:"getNode",value:function(e,t){var n=this.getRootByColumn(t);if(n){var r,o=t-(0,u.default)(this,m).get(t),i=0;return n.walkDown((function(t){var n=t.data,a=n.origColspan,s=n.headerLevel;if(e===s){if(o>=i&&o<=i+a-1)return r=t,!1;i+=a}})),r}}},{key:"rebuildTreeIndex",value:function(){var e=this,t=0;(0,u.default)(this,m).clear(),(0,c.arrayEach)((0,u.default)(this,y),(function(n){for(var r=(0,i.default)(n,2)[1].data.colspan,o=t;o<t+r;o++)(0,u.default)(e,m).set(o,t);t+=r}))}},{key:"buildTree",value:function(){this.clear();for(var e=(0,u.default)(this,g).getColumnsCount(),t=0;t<e;){var n=(0,u.default)(this,g).getHeaderSettings(0,t),r=new f.default;(0,u.default)(this,y).set(t,r),this.buildLeaves(r,t,0,n.origColspan),t+=n.origColspan}this.rebuildTreeIndex()}},{key:"buildLeaves",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=(0,u.default)(this,g).getHeadersSettings(n,t,o);n+=1,(0,c.arrayEach)(i,(function(o){var i,a=h(h({},o),{},{headerLevel:n-1,columnIndex:t});1===n?(e.data=a,i=e):(i=new f.default(a),e.addChild(i)),n<(0,u.default)(r,g).getLayersCount()&&r.buildLeaves(i,t,n,o.origColspan),t+=o.origColspan}))}},{key:"clear",value:function(){(0,u.default)(this,y).clear(),(0,u.default)(this,m).clear()}}]),e}();t.default=v},function(e,t,n){"use strict";n(53),n(8),n(40),n(19),n(26),n(83);var r=n(1);t.__esModule=!0,t.default=t.TRAVERSAL_DF_PRE=t.TRAVERSAL_DF_POST=t.TRAVERSAL_BF=void 0,t.depthFirstPreOrder=c,n(3),n(33),n(0),n(2),n(4);var o=r(n(5)),i=r(n(6)),a=r(n(43)),s=r(n(44));function u(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?u(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){for(var n=e.call(t,this),r=0;r<this.childs.length;r++){if(!1===n)return!1;n=c.call(this.childs[r],e,t)}return n}t.TRAVERSAL_DF_PRE="DF-pre-order";t.TRAVERSAL_DF_POST="DF-post-order";t.TRAVERSAL_BF="BF";var f=new Map([["DF-pre-order",c],["DF-post-order",function e(t,n){for(var r=0;r<this.childs.length;r++){if(!1===e.call(this.childs[r],t,n))return!1}return t.call(n,this)}],["BF",function(e,t){var n=[this];!function r(){if(0!==n.length){var o=n.shift();n.push.apply(n,(0,s.default)(o.childs)),!1!==e.call(t,o)&&r()}}()}]]),d=function(){function e(t){(0,o.default)(this,e),(0,a.default)(this,"data",{}),(0,a.default)(this,"parent",null),(0,a.default)(this,"childs",[]),this.data=t}return(0,i.default)(e,[{key:"addChild",value:function(e){e.parent=this,this.childs.push(e)}},{key:"cloneTree",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this,n=new e(l({},t.data)),r=0;r<t.childs.length;r++)n.addChild(this.cloneTree(t.childs[r]));return n}},{key:"replaceTreeWith",value:function(e){this.data=l({},e.data),this.childs=[];for(var t=0;t<e.childs.length;t++)this.addChild(e.childs[t])}},{key:"walkDown",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"BF";if(!f.has(t))throw new Error('Traversal strategy "'.concat(t,'" does not exist'));f.get(t).call(this,e,this)}},{key:"walkUp",value:function(e){var t=this;!function n(r){!1!==e.call(t,r)&&null!==r.parent&&n(r.parent)}(this)}}]),e}();t.default=d},function(e,t,n){"use strict";t.__esModule=!0,t.triggerNodeModification=function(e,t,n){if(!s.has(e))throw new Error('The node modifier action ("'.concat(e,'") does not exist.'));return s.get(e)(t,n)},n(3),n(33),n(0),n(2),n(4);var r=n(641),o=n(642),i=n(1058),a=n(1059),s=new Map([["collapse",r.collapseNode],["expand",o.expandNode],["hide-column",i.hideColumn],["show-column",a.showColumn]])},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.hideColumn=function(e,t){if(!Number.isInteger(t))throw new Error("The passed gridColumnIndex argument has invalid type.");if(e.childs.length>0)throw new Error((0,a.toSingleLine)(i||(i=(0,o.default)(["The passed node is not the last node on the tree. Only for \nthe last node, the hide column modification can be applied."],["The passed node is not the last node on the tree. Only for\\x20\nthe last node, the hide column modification can be applied."]))));if(e.data.crossHiddenColumns.includes(t))return;var n=!1;if(e.walkUp((function(e){if(e.data.collapsible)return n=!0,!1})),n)return;e.walkUp((function(e){var n=e.data;n.crossHiddenColumns.push(t),n.colspan>1?n.colspan-=1:n.isHidden=!0}))};var o=r(n(79));n(67),n(52),n(42),n(49);var i,a=n(80)},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.showColumn=function(e,t){if(!Number.isInteger(t))throw new Error("The passed gridColumnIndex argument has invalid type.");if(e.childs.length>0)throw new Error((0,a.toSingleLine)(i||(i=(0,o.default)(["The passed node is not the last node on the tree. Only for \nthe last node, the show column modification can be applied."],["The passed node is not the last node on the tree. Only for\\x20\nthe last node, the show column modification can be applied."]))));if(!e.data.crossHiddenColumns.includes(t))return;var n=!1;if(e.walkUp((function(e){if(e.data.collapsible)return n=!0,!1})),n)return;e.walkUp((function(e){var n=e.data;n.crossHiddenColumns.splice(n.crossHiddenColumns.indexOf(t),1),!n.isHidden&&n.colspan<n.origColspan&&(n.colspan+=1),n.isHidden=!1}))};var o=r(n(79));n(67),n(52),n(42),n(49),n(54),n(35);var i,a=n(80)},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.generateMatrix=function(e){var t=[];return(0,i.arrayEach)(e,(function(e){e.walkDown((function(e){for(var n=e.data,r=n.origColspan,o=n.columnIndex,i=n.headerLevel,s=n.crossHiddenColumns,l=function(e,t){var n;Array.isArray(e[t])?n=e[t]:(n=[],e[t]=n);return n}(t,i),c=!1,f=o;f<o+r;f++){if(s.includes(f)||c)l.push((0,a.createPlaceholderHeaderSettings)(n));else{var d=u(n);d.isRoot=!0,l.push(d),c=!0}}}))})),t};var o=r(n(117));n(42),n(49);var i=n(20),a=n(640),s=["crossHiddenColumns"];function u(e){var t=(0,a.createDefaultHeaderSettings)(e);t.crossHiddenColumns;return(0,o.default)(t,s)}},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(43)),s=n(23),u=function(){function e(t){(0,o.default)(this,e),(0,a.default)(this,"nestedHeaders",void 0),(0,a.default)(this,"container",void 0),(0,a.default)(this,"widthsCache",[]),this.nestedHeaders=t}return(0,i.default)(e,[{key:"buildWidthsMapper",value:function(){this.container=this.nestedHeaders.hot.rootDocument.createElement("div"),this.buildGhostTable(this.container),this.nestedHeaders.hot.rootElement.appendChild(this.container);var e=this.container.querySelectorAll("tr:last-of-type th"),t=e.length;this.widthsCache.length=0;for(var n=0;n<t;n++)this.widthsCache.push(e[n].offsetWidth);this.container.parentNode.removeChild(this.container),this.container=null,this.nestedHeaders.hot.render()}},{key:"buildGhostTable",value:function(e){for(var t=this.nestedHeaders.hot.rootDocument,n=t.createDocumentFragment(),r=t.createElement("table"),o=!1,i=!!this.nestedHeaders.hot.getSettings().dropdownMenu,a=this.nestedHeaders.getLayersCount(),u=this.nestedHeaders.hot.countCols(),l=a-1,c=0;c<a;c++){var f=t.createElement("tr");o=!1;for(var d=0;d<u;d++){var h=t.createElement("th"),p=this.nestedHeaders.getHeaderSettings(c,d);if(p&&!p.isPlaceholder){var y=p.label;c===l&&(p.colspan>1&&(o=!0),i&&(y+='<button class="changeType"></button>')),(0,s.fastInnerHTML)(h,y),h.colSpan=p.colspan,f.appendChild(h)}}r.appendChild(f)}if(o){for(var m=t.createElement("tr"),g=0;g<u;g++){var v=t.createElement("th");m.appendChild(v)}r.appendChild(m)}n.appendChild(r),e.appendChild(n)}},{key:"clear",value:function(){this.container=null,this.widthsCache.length=0}}]),e}();t.default=u},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.NestedRows=void 0;var r=n(1064);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.NestedRows=r.NestedRows},function(e,t,n){"use strict";n(7);var r=n(1);t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.NestedRows=void 0;var o=r(n(44)),i=r(n(5)),a=r(n(6)),s=r(n(46)),u=r(n(31)),l=r(n(15)),c=r(n(16)),f=r(n(14));n(3),n(0),n(2),n(11),n(4),n(13),n(76),n(22),n(99),n(26),n(55);var d=n(50),h=r(n(1065)),p=r(n(1066)),y=r(n(644)),m=r(n(1067)),g=n(88),v=n(144),E=n(82),b=r(n(1068));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,f.default)(e);if(t){var o=(0,f.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}n(1069);t.PLUGIN_KEY="nestedRows";t.PLUGIN_PRIORITY=300;var C=new WeakMap,w=function(e){(0,l.default)(n,e);var t=T(n);function n(e){var r;return(0,i.default)(this,n),(r=t.call(this,e)).dataManager=null,r.headersUI=null,r.collapsedRowsMap=null,C.set((0,s.default)(r),{movedToCollapsed:!1,skipRender:null,skipCoreAPIModifiers:!1}),r}return(0,a.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().nestedRows}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.collapsedRowsMap=this.hot.rowIndexMapper.registerMap("nestedRows",new E.TrimmingMap),this.dataManager=new h.default(this,this.hot),this.collapsingUI=new p.default(this,this.hot),this.headersUI=new y.default(this,this.hot),this.contextMenuUI=new m.default(this,this.hot),this.rowMoveController=new b.default(this),this.addHook("afterInit",(function(){return e.onAfterInit.apply(e,arguments)})),this.addHook("beforeViewRender",(function(){return e.onBeforeViewRender.apply(e,arguments)})),this.addHook("modifyRowData",(function(){return e.onModifyRowData.apply(e,arguments)})),this.addHook("modifySourceLength",(function(){return e.onModifySourceLength.apply(e,arguments)})),this.addHook("beforeDataSplice",(function(){return e.onBeforeDataSplice.apply(e,arguments)})),this.addHook("filterData",(function(){return e.onFilterData.apply(e,arguments)})),this.addHook("afterContextMenuDefaultOptions",(function(){return e.onAfterContextMenuDefaultOptions.apply(e,arguments)})),this.addHook("afterGetRowHeader",(function(){return e.onAfterGetRowHeader.apply(e,arguments)})),this.addHook("beforeOnCellMouseDown",(function(){return e.onBeforeOnCellMouseDown.apply(e,arguments)})),this.addHook("beforeRemoveRow",(function(){return e.onBeforeRemoveRow.apply(e,arguments)})),this.addHook("afterRemoveRow",(function(){return e.onAfterRemoveRow.apply(e,arguments)})),this.addHook("beforeAddChild",(function(){return e.onBeforeAddChild.apply(e,arguments)})),this.addHook("afterAddChild",(function(){return e.onAfterAddChild.apply(e,arguments)})),this.addHook("beforeDetachChild",(function(){return e.onBeforeDetachChild.apply(e,arguments)})),this.addHook("afterDetachChild",(function(){return e.onAfterDetachChild.apply(e,arguments)})),this.addHook("modifyRowHeaderWidth",(function(){return e.onModifyRowHeaderWidth.apply(e,arguments)})),this.addHook("afterCreateRow",(function(){return e.onAfterCreateRow.apply(e,arguments)})),this.addHook("beforeRowMove",(function(){return e.onBeforeRowMove.apply(e,arguments)})),this.addHook("beforeLoadData",(function(t){return e.onBeforeLoadData(t)})),(0,u.default)((0,f.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.hot.rowIndexMapper.unregisterMap("nestedRows"),(0,u.default)((0,f.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin();var e=this.dataManager.getData();this.enablePlugin(),this.dataManager.updateWithData(e),(0,u.default)((0,f.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"onBeforeRowMove",value:function(e,t,n,r){return this.rowMoveController.onBeforeRowMove(e,t,n,r)}},{key:"disableCoreAPIModifiers",value:function(){C.get(this).skipCoreAPIModifiers=!0}},{key:"enableCoreAPIModifiers",value:function(){C.get(this).skipCoreAPIModifiers=!1}},{key:"onBeforeOnCellMouseDown",value:function(e,t,n){this.collapsingUI.toggleState(e,t,n)}},{key:"onModifyRowData",value:function(e){if(!C.get(this).skipCoreAPIModifiers)return this.dataManager.getDataObject(e)}},{key:"onModifySourceLength",value:function(){if(!C.get(this).skipCoreAPIModifiers)return this.dataManager.countAllRows()}},{key:"onBeforeDataSplice",value:function(e,t,n){return!(!C.get(this).skipCoreAPIModifiers&&!this.dataManager.isRowHighestLevel(e))||(this.dataManager.spliceData(e,t,n),!1)}},{key:"onFilterData",value:function(e,t,n){var r=C.get(this);return this.collapsingUI.collapsedRowsStash.stash(),this.collapsingUI.collapsedRowsStash.trimStash(n[0],t),this.collapsingUI.collapsedRowsStash.shiftStash(n[0],null,-1*t),this.dataManager.filterData(e,t,n),r.skipRender=!0,this.dataManager.getData().slice()}},{key:"onAfterContextMenuDefaultOptions",value:function(e){return this.contextMenuUI.appendOptions(e)}},{key:"onAfterGetRowHeader",value:function(e,t){this.headersUI.appendLevelIndicators(e,t)}},{key:"onModifyRowHeaderWidth",value:function(e){return this.headersUI.rowHeaderWidthCache||e}},{key:"onAfterRemoveRow",value:function(e,t,n,r){var o=this;if(r!==this.pluginName){var i=C.get(this);setTimeout((function(){i.skipRender=null,o.headersUI.updateRowHeaderWidth(),o.collapsingUI.collapsedRowsStash.applyStash()}),0)}}},{key:"onBeforeRemoveRow",value:function(e,t,n){var r=this,i=Array.from(n.reduce((function(e,t){if(r.dataManager.isParent(t)){var n=r.dataManager.getDataObject(t).__children;return e.add(t),Array.isArray(n)&&n.forEach((function(t){return e.add(r.dataManager.getRowIndex(t))})),e}return e.add(t)}),new Set));n.length=0,n.push.apply(n,(0,o.default)(i))}},{key:"onBeforeAddChild",value:function(){this.collapsingUI.collapsedRowsStash.stash()}},{key:"onAfterAddChild",value:function(e,t){this.collapsingUI.collapsedRowsStash.shiftStash(this.dataManager.getRowIndex(t)),this.collapsingUI.collapsedRowsStash.applyStash(),this.headersUI.updateRowHeaderWidth()}},{key:"onBeforeDetachChild",value:function(){this.collapsingUI.collapsedRowsStash.stash()}},{key:"onAfterDetachChild",value:function(e,t,n){this.collapsingUI.collapsedRowsStash.shiftStash(n,null,-1),this.collapsingUI.collapsedRowsStash.applyStash(),this.headersUI.updateRowHeaderWidth()}},{key:"onAfterCreateRow",value:function(){this.dataManager.rewriteCache()}},{key:"onAfterInit",value:function(){var e=Math.max.apply(Math,(0,o.default)(this.dataManager.cache.levels));e>0&&this.headersUI.updateRowHeaderWidth(e)}},{key:"onBeforeViewRender",value:function(e,t){C.get(this).skipRender&&(t.skipRender=!0)}},{key:"destroy",value:function(){(0,u.default)((0,f.default)(n.prototype),"destroy",this).call(this)}},{key:"onBeforeLoadData",value:function(e){if(!(0,v.isArrayOfObjects)(e))return(0,g.error)("The Nested Rows plugin requires an Array of Objects as a dataset to be provided. The plugin has been disabled."),this.hot.getSettings().nestedRows=!1,void this.disablePlugin();this.dataManager.setData(e),this.dataManager.rewriteCache()}}],[{key:"PLUGIN_KEY",get:function(){return"nestedRows"}},{key:"PLUGIN_PRIORITY",get:function(){return 300}}]),n}(d.BasePlugin);t.NestedRows=w},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0,n(3),n(0),n(2),n(11),n(4),n(35),n(54),n(22),n(18),n(13);var o=r(n(44)),i=r(n(21)),a=r(n(5)),s=r(n(6)),u=n(47),l=n(17),c=n(20),f=function(){function e(t,n){(0,a.default)(this,e),this.hot=n,this.data=null,this.plugin=t,this.parentReference=new WeakMap,this.cache={levels:[],levelCount:0,rows:[],nodeInfo:new WeakMap}}return(0,s.default)(e,[{key:"setData",value:function(e){this.data=e}},{key:"getData",value:function(){return this.data}},{key:"getRawSourceData",value:function(){var e;return this.plugin.disableCoreAPIModifiers(),e=this.hot.getSourceData(),this.plugin.enableCoreAPIModifiers(),e}},{key:"updateWithData",value:function(e){this.setData(e),this.rewriteCache()}},{key:"rewriteCache",value:function(){var e=this;this.cache={levels:[],levelCount:0,rows:[],nodeInfo:new WeakMap},(0,u.rangeEach)(0,this.data.length-1,(function(t){e.cacheNode(e.data[t],0,null)}))}},{key:"cacheNode",value:function(e,t,n){var r=this;this.cache.levels[t]||(this.cache.levels[t]=[],this.cache.levelCount+=1),this.cache.levels[t].push(e),this.cache.rows.push(e),this.cache.nodeInfo.set(e,{parent:n,row:this.cache.rows.length-1,level:t}),this.hasChildren(e)&&(0,c.arrayEach)(e.__children,(function(n){r.cacheNode(n,t+1,e)}))}},{key:"getDataObject",value:function(e){return null==e?null:this.cache.rows[e]}},{key:"readTreeNodes",value:function(e,t,n,r){var o=this,i=!1,a=t;if(isNaN(a)&&a.end)return a;var s=e;return s||(s={__children:this.data},i=!0,a-=1),null!=n&&a===n?{result:s,end:!0}:null!=r&&s===r?{result:a,end:!0}:(a+=1,s.__children&&(0,c.arrayEach)(s.__children,(function(e){if(o.parentReference.set(e,i?null:s),a=o.readTreeNodes(e,a,n,r),isNaN(a)&&a.end)return!1})),a)}},{key:"mockParent",value:function(){var e=this.mockNode();return e.__children=this.data,e}},{key:"mockNode",value:function(){var e={};return(0,l.objectEach)(this.data[0],(function(t,n){e[n]=null})),e}},{key:"getRowIndex",value:function(e){return null==e?null:this.cache.nodeInfo.get(e).row}},{key:"getRowIndexWithinParent",value:function(e){var t=null;t=isNaN(e)?e:this.getDataObject(e);var n=this.getRowParent(e);return null==n?this.data.indexOf(t):n.__children.indexOf(t)}},{key:"countAllRows",value:function(){var e={__children:this.data};return this.countChildren(e)}},{key:"countChildren",value:function(e){var t=this,n=0,r=e;return isNaN(r)||(r=this.getDataObject(r)),r&&r.__children?((0,c.arrayEach)(r.__children,(function(e){n+=1,e.__children&&(n+=t.countChildren(e))})),n):0}},{key:"getRowParent",value:function(e){var t;return t=isNaN(e)?e:this.getDataObject(e),this.getRowObjectParent(t)}},{key:"getRowObjectParent",value:function(e){return e&&"object"===(0,i.default)(e)?this.cache.nodeInfo.get(e).parent:null}},{key:"getRowLevel",value:function(e){var t=null;return(t=isNaN(e)?e:this.getDataObject(e))?this.getRowObjectLevel(t):null}},{key:"getRowObjectLevel",value:function(e){return null==e?null:this.cache.nodeInfo.get(e).level}},{key:"hasChildren",value:function(e){var t=e;return isNaN(t)||(t=this.getDataObject(t)),!(!t.__children||!t.__children.length)}},{key:"isChild",value:function(e){return null!==this.getRowParent(e)}},{key:"getChild",value:function(e,t){var n;return(null===(n=e.__children)||void 0===n?void 0:n[t])||null}},{key:"isRowHighestLevel",value:function(e){return!this.isChild(e)}},{key:"isParent",value:function(e){var t,n=e;return isNaN(n)||(n=this.getDataObject(n)),n&&!!n.__children&&0!==(null===(t=n.__children)||void 0===t?void 0:t.length)}},{key:"addChild",value:function(e,t){var n=t;this.hot.runHooks("beforeAddChild",e,n);var r=null;e&&(r=this.getRowIndex(e)),this.hot.runHooks("beforeCreateRow",r+this.countChildren(e)+1,1);var o=e;e||(o=this.mockParent()),o.__children||(o.__children=[]),n||(n=this.mockNode()),o.__children.push(n),this.rewriteCache();var i=this.getRowIndex(n);this.hot.rowIndexMapper.insertIndexes(i,1),this.hot.runHooks("afterCreateRow",i,1),this.hot.runHooks("afterAddChild",e,n)}},{key:"addChildAtIndex",value:function(e,t,n){var r,o=n;if(o||(o=this.mockNode()),this.hot.runHooks("beforeAddChild",e,o,t),e){var i=this.getRowIndex(e)+t+1;this.hot.runHooks("beforeCreateRow",i,1),e.__children.splice(t,null,o),this.rewriteCache(),this.plugin.disableCoreAPIModifiers(),this.hot.setSourceDataAtCell(this.getRowIndexWithinParent(e),"__children",e.__children,"NestedRows.addChildAtIndex"),this.hot.rowIndexMapper.insertIndexes(i,1),this.plugin.enableCoreAPIModifiers(),this.hot.runHooks("afterCreateRow",i,1),r=i}else this.plugin.disableCoreAPIModifiers(),this.hot.alter("insert_row",t,1,"NestedRows.addChildAtIndex"),this.plugin.enableCoreAPIModifiers(),r=this.getRowIndex(this.data[t]);o=this.getDataObject(r),this.hot.runHooks("afterAddChild",e,o,t)}},{key:"addSibling",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"below",n=this.translateTrimmedRow(e),r=this.getRowParent(n),o=this.getRowIndexWithinParent(n);switch(t){case"below":this.addChildAtIndex(r,o+1,null);break;case"above":this.addChildAtIndex(r,o,null)}}},{key:"detachFromParent",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=null,o=[];Array.isArray(e)?((0,u.rangeEach)(e[0],e[2],(function(e){var n=t.translateTrimmedRow(e);o.push(t.getDataObject(n))})),(0,u.rangeEach)(0,o.length-2,(function(e){t.detachFromParent(o[e],!1)})),r=o[o.length-1]):r=e;var i=this.getRowIndex(r),a=this.countChildren(r),s=this.getRowIndexWithinParent(r),l=this.getRowParent(r),c=this.getRowParent(l),f=this.getRowIndex(c),d=null;if(this.hot.runHooks("beforeDetachChild",l,r),null!=s){var h=Array.from(new Array(i+a+1).keys()).splice(-1*(a+1));if(this.hot.runHooks("beforeRemoveRow",i,a+1,h,this.plugin.pluginName),l.__children.splice(s,1),this.rewriteCache(),this.hot.runHooks("afterRemoveRow",i,a+1,h,this.plugin.pluginName),c){d=f+this.countChildren(c);var p=this.getChild(c,this.countChildren(c)-1),y=this.getRowIndex(p);this.hot.runHooks("beforeCreateRow",y+1,a+1,this.plugin.pluginName),c.__children.push(r)}else d=this.hot.countRows()+1,this.hot.runHooks("beforeCreateRow",d-2,a+1,this.plugin.pluginName),this.data.push(r)}this.rewriteCache(),this.hot.runHooks("afterCreateRow",d-2,a+1,this.plugin.pluginName),this.hot.runHooks("afterDetachChild",l,r,this.getRowIndex(r)),n&&this.hot.render()}},{key:"filterData",value:function(e,t,n){var r=this,o=[];(0,c.arrayEach)(n,(function(e){o.push(r.getDataObject(e))})),(0,c.arrayEach)(o,(function(e){var t=r.getRowIndexWithinParent(e),n=r.getRowParent(e);null===n?r.data.splice(t,1):n.__children.splice(t,1)})),this.rewriteCache()}},{key:"spliceData",value:function(e,t,n){var r,i=this.getDataObject(e-1),a=null,s=e;if(i&&i.__children&&0===i.__children.length?(a=i,s=0):e<this.countAllRows()&&(a=this.getRowParent(e),s=this.getRowIndexWithinParent(e)),a)n?(r=a.__children).splice.apply(r,[s,t].concat((0,o.default)(n))):a.__children.splice(s,t);else if(n){var u;(u=this.data).splice.apply(u,[s,t].concat((0,o.default)(n)))}else this.data.splice(s,t);this.rewriteCache()}},{key:"syncRowWithRawSource",value:function(e){var t=e,n=null;do{null!==(n=this.getRowParent(n))&&(t=n)}while(null!==n);this.plugin.disableCoreAPIModifiers(),this.hot.setSourceDataAtCell(this.getRowIndex(t),"__children",t.__children,"NestedRows.syncRowWithRawSource"),this.plugin.enableCoreAPIModifiers()}},{key:"moveRow",value:function(e,t,n,r){var o=t===this.hot.countRows(),i=this.getRowParent(e),a=this.getRowIndexWithinParent(e),s=i.__children.slice(a,a+1),u=e>t,l=o?this.getRowParent(t-1):this.getRowParent(t);null==l&&(l=this.getRowParent(t-1)),null==l&&(l=this.getDataObject(t-1)),l?l.__children||(l.__children=[]):(l=this.getDataObject(t)).__children=[];var c=o||n||r?l.__children.length:this.getRowIndexWithinParent(t),f=i===l;l.__children.splice(c,0,s[0]),i.__children.splice(a+(u&&f?1:0),1),this.syncRowWithRawSource(i),f||this.syncRowWithRawSource(l)}},{key:"translateTrimmedRow",value:function(e){return this.plugin.collapsingUI?this.plugin.collapsingUI.translateTrimmedRow(e):e}},{key:"untranslateTrimmedRow",value:function(e){return this.plugin.collapsingUI?this.plugin.collapsingUI.untranslateTrimmedRow(e):e}}]),e}();t.default=f},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.default=void 0,n(13),n(35),n(54);var o=r(n(44)),i=r(n(5)),a=r(n(6)),s=r(n(15)),u=r(n(16)),l=r(n(14)),c=n(81),f=n(20),d=n(47),h=n(23),p=r(n(320)),y=r(n(644));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,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,u.default)(this,n)}}var g=function(e){(0,s.default)(n,e);var t=m(n);function n(e,r){var o;return(0,i.default)(this,n),(o=t.call(this,e,r)).dataManager=o.plugin.dataManager,o.collapsedRows=[],o.collapsedRowsStash={stash:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];o.lastCollapsedRows=o.collapsedRows.slice(0),o.expandMultipleChildren(o.lastCollapsedRows,e)},shiftStash:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;null==t&&(t=1/0),(0,f.arrayEach)(o.lastCollapsedRows,(function(r,i){r>=e&&r<t&&(o.lastCollapsedRows[i]=r+n)}))},applyStash:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];o.collapseMultipleChildren(o.lastCollapsedRows,e),o.lastCollapsedRows=void 0},trimStash:function(e,t){(0,d.rangeEach)(e,e+t-1,(function(e){var t=o.lastCollapsedRows.indexOf(e);t>-1&&o.lastCollapsedRows.splice(t,1)}))}},o}return(0,a.default)(n,[{key:"collapseChildren",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=[],i=null,a=null,s=null;return isNaN(e)?(i=e,a=this.dataManager.getRowIndex(i)):(i=this.dataManager.getDataObject(e),a=e),this.dataManager.hasChildren(i)&&(0,f.arrayEach)(i.__children,(function(e){o.push(t.dataManager.getRowIndex(e))})),s=this.collapseRows(o,!0,!1),r&&this.trimRows(s),n&&this.renderAndAdjust(),-1===this.collapsedRows.indexOf(a)&&this.collapsedRows.push(a),s}},{key:"collapseMultipleChildren",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=[];(0,f.arrayEach)(e,(function(e){i.push.apply(i,(0,o.default)(t.collapseChildren(e,!1,!1)))})),r&&this.trimRows(i),n&&this.renderAndAdjust()}},{key:"collapseRow",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.collapseRows([e],t)}},{key:"collapseRows",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=[];return(0,f.arrayEach)(e,(function(e){o.push(e),n&&t.collapseChildRows(e,o)})),r&&this.trimRows(o),o}},{key:"collapseChildRows",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=(arguments.length>2&&arguments[2],arguments.length>3&&void 0!==arguments[3]&&arguments[3]);if(this.dataManager.hasChildren(e)){var o=this.dataManager.getDataObject(e);(0,f.arrayEach)(o.__children,(function(e){var r=t.dataManager.getRowIndex(e);n.push(r),t.collapseChildRows(r,n)}))}r&&this.trimRows(n)}},{key:"expandRow",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.expandRows([e],t)}},{key:"expandRows",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=[];return(0,f.arrayEach)(e,(function(e){o.push(e),n&&t.expandChildRows(e,o)})),r&&this.untrimRows(o),o}},{key:"expandChildRows",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=(arguments.length>2&&arguments[2],arguments.length>3&&void 0!==arguments[3]&&arguments[3]);if(this.dataManager.hasChildren(e)){var o=this.dataManager.getDataObject(e);(0,f.arrayEach)(o.__children,(function(e){if(!t.isAnyParentCollapsed(e)){var r=t.dataManager.getRowIndex(e);n.push(r),t.expandChildRows(r,n)}}))}r&&this.untrimRows(n)}},{key:"expandChildren",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=[],i=null,a=null,s=null;return isNaN(e)?(i=e,a=this.dataManager.getRowIndex(e)):(i=this.dataManager.getDataObject(e),a=e),this.collapsedRows.splice(this.collapsedRows.indexOf(a),1),this.dataManager.hasChildren(i)&&(0,f.arrayEach)(i.__children,(function(e){var n=t.dataManager.getRowIndex(e);o.push(n)})),s=this.expandRows(o,!0,!1),r&&this.untrimRows(s),n&&this.renderAndAdjust(),s}},{key:"expandMultipleChildren",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=[];(0,f.arrayEach)(e,(function(e){i.push.apply(i,(0,o.default)(t.expandChildren(e,!1,!1)))})),r&&this.untrimRows(i),n&&this.renderAndAdjust()}},{key:"collapseAll",value:function(){var e=this,t=this.dataManager.getData(),n=[];(0,f.arrayEach)(t,(function(t){e.dataManager.hasChildren(t)&&n.push(t)})),this.collapseMultipleChildren(n),this.renderAndAdjust()}},{key:"expandAll",value:function(){var e=this,t=this.dataManager.getData(),n=[];(0,f.arrayEach)(t,(function(t){e.dataManager.hasChildren(t)&&n.push(t)})),this.expandMultipleChildren(n),this.renderAndAdjust()}},{key:"trimRows",value:function(e){var t=this;this.hot.batchExecution((function(){(0,f.arrayEach)(e,(function(e){t.plugin.collapsedRowsMap.setValueAtIndex(e,!0)}))}),!0)}},{key:"untrimRows",value:function(e){var t=this;this.hot.batchExecution((function(){(0,f.arrayEach)(e,(function(e){t.plugin.collapsedRowsMap.setValueAtIndex(e,!1)}))}),!0)}},{key:"areChildrenCollapsed",value:function(e){var t=this,n=isNaN(e)?e:this.dataManager.getDataObject(e),r=!0;return null===n&&(n={__children:this.dataManager.data}),this.dataManager.hasChildren(n)&&(0,f.arrayEach)(n.__children,(function(e){var n=t.dataManager.getRowIndex(e);if(!t.plugin.collapsedRowsMap.getValueAtIndex(n))return r=!1,!1})),r}},{key:"isAnyParentCollapsed",value:function(e){for(var t=e;null!==t;){t=this.dataManager.getRowParent(t);var n=this.dataManager.getRowIndex(t);if(this.collapsedRows.indexOf(n)>-1)return!0}return!1}},{key:"toggleState",value:function(e,t){if(!(t.col>=0)){var n=this.translateTrimmedRow(t.row);(0,h.hasClass)(e.target,y.default.CSS_CLASSES.button)&&(this.areChildrenCollapsed(n)?this.expandChildren(n):this.collapseChildren(n),(0,c.stopImmediatePropagation)(e))}}},{key:"translateTrimmedRow",value:function(e){return this.hot.toPhysicalRow(e)}},{key:"untranslateTrimmedRow",value:function(e){return this.hot.toVisualRow(e)}},{key:"renderAndAdjust",value:function(){this.hot.render(),this.hot.view.adjustElementsSize()}}]),n}(p.default);t.default=g},function(e,t,n){"use strict";n(7),n(19);var r=n(1),o=n(21);t.__esModule=!0,t.default=void 0;var i=r(n(5)),a=r(n(6)),s=r(n(46)),u=r(n(15)),l=r(n(16)),c=r(n(14));n(3),n(0),n(2),n(11),n(4),n(54);var f=n(47),d=n(20),h=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=y(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(30)),p=r(n(320));function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(y=function(e){return e?n:t})(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,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,l.default)(this,n)}}var g=new WeakMap,v=function(e){(0,u.default)(n,e);var t=m(n);function n(e,r){var o;return(0,i.default)(this,n),o=t.call(this,e,r),g.set((0,s.default)(o),{row_above:function(e,t){var n=t[t.length-1];o.dataManager.addSibling(n.start.row,"above")},row_below:function(e,t){var n=t[t.length-1];o.dataManager.addSibling(n.start.row,"below")}}),o.dataManager=o.plugin.dataManager,o}return(0,a.default)(n,[{key:"appendOptions",value:function(e){var t=this,n=[{key:"add_child",name:function(){return this.getTranslatedPhrase(h.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD)},callback:function(){var e=t.dataManager.translateTrimmedRow(t.hot.getSelectedLast()[0]),n=t.dataManager.getDataObject(e);t.dataManager.addChild(n)},disabled:function(){var e=t.hot.getSelectedLast();return!e||e[0]<0||t.hot.selection.isSelectedByColumnHeader()||t.hot.countRows()>=t.hot.getSettings().maxRows}},{key:"detach_from_parent",name:function(){return this.getTranslatedPhrase(h.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD)},callback:function(){t.dataManager.detachFromParent(t.hot.getSelectedLast())},disabled:function(){var e=t.hot.getSelectedLast(),n=t.dataManager.translateTrimmedRow(e[0]);return!t.dataManager.getRowParent(n)||!e||e[0]<0||t.hot.selection.isSelectedByColumnHeader()||t.hot.countRows()>=t.hot.getSettings().maxRows}},{name:"---------"}];return(0,f.rangeEach)(0,e.items.length-1,(function(t){if(0===t)return(0,d.arrayEach)(n,(function(n,r){e.items.splice(t+r,0,n)})),!1})),this.modifyRowInsertingOptions(e)}},{key:"modifyRowInsertingOptions",value:function(e){var t=g.get(this);return(0,f.rangeEach)(0,e.items.length-1,(function(n){var r=t[e.items[n].key];null!=r&&(e.items[n].callback=r)})),e}}]),n}(p.default);t.default=v},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0;var o=r(n(44)),i=r(n(79));n(37),n(35),n(0),n(26),n(18);var a,s=r(n(5)),u=r(n(6)),l=n(32),c=n(88),f=n(80),d=function(){function e(t){(0,s.default)(this,e),this.plugin=t,this.hot=t.hot,this.dataManager=t.dataManager,this.collapsingUI=t.collapsingUI}return(0,u.default)(e,[{key:"onBeforeRowMove",value:function(e,t,n,r){var o=this;if(this.displayAPICompatibilityWarning({rows:e,finalIndex:t,dropIndex:n,movePossible:r}))return!1;this.movedToCollapsed=!1;var i=n===this.hot.countRows(),a=i?this.hot.countSourceRows():this.dataManager.translateTrimmedRow(n),s=!0,u=e.map((function(e){if(!s)return!1;var t=o.dataManager.translateTrimmedRow(e);return s=o.shouldAllowMoving(t,a),t})),l=-1===u.indexOf(a);if(!s||!l)return!1;var c=this.getBaseParent(u),f=this.getTargetParent(i,a),d=c===f;return this.movedToCollapsed=this.collapsingUI.areChildrenCollapsed(f),this.collapsingUI.collapsedRowsStash.stash(),this.shiftCollapsibleParentsLocations(u,a,d),this.moveRows(u,a,f),this.dataManager.rewriteCache(),this.moveCellsMeta(u,a),this.collapsingUI.collapsedRowsStash.applyStash(!1),this.hot.runHooks("afterRowMove",e,t,n,r,r&&this.isRowOrderChanged(e,t)),this.hot.render(),this.selectCells(e,n),!1}},{key:"displayAPICompatibilityWarning",value:function(e){var t=e.rows,n=e.finalIndex,r=e.dropIndex,o=e.movePossible,s=!1;return(0,l.isUndefined)(r)&&((0,c.warn)((0,f.toSingleLine)(a||(a=(0,i.default)(["Since version 8.0.0 of the Handsontable the 'moveRows' method isn't used for moving rows \n when the NestedRows plugin is enabled. Please use the 'dragRows' method instead."],["Since version 8.0.0 of the Handsontable the 'moveRows' method isn't used for moving rows\\x20\n when the NestedRows plugin is enabled. Please use the 'dragRows' method instead."])))),this.hot.runHooks("afterRowMove",t,n,r,o,!1),s=!0),s}},{key:"shouldAllowMoving",value:function(e,t){return!(this.dataManager.isParent(e)||this.dataManager.isRowHighestLevel(e)||e===t||0===t)}},{key:"getBaseParent",value:function(e){return this.dataManager.getRowParent(e[0])}},{key:"getTargetParent",value:function(e,t){var n=this.dataManager.getRowParent(e?t-1:t);return null==n&&(n=this.dataManager.getRowParent(t-1)),n}},{key:"shiftCollapsibleParentsLocations",value:function(e,t,n){n||(Math.max.apply(Math,(0,o.default)(e))<=t?this.collapsingUI.collapsedRowsStash.shiftStash(e[0],t,-1*e.length):this.collapsingUI.collapsedRowsStash.shiftStash(t,e[0],e.length))}},{key:"moveRows",value:function(e,t,n){var r=this,o=t===this.dataManager.getRowIndex(n)+this.dataManager.countChildren(n)+1;this.hot.batchRender((function(){e.forEach((function(e){r.dataManager.moveRow(e,t,r.movedToCollapsed,o)}))}))}},{key:"moveCellsMeta",value:function(e,t){var n,r=this,i=[],a=Math.max.apply(Math,(0,o.default)(e))<t;e.forEach((function(e){i.push(r.hot.getCellMetaAtRow(e))})),this.hot.spliceCellsMeta(e[0],e.length),(n=this.hot).spliceCellsMeta.apply(n,[t-(a?i.length:0),0].concat(i))}},{key:"selectCells",value:function(e,t){var n,r=e.length,o=0,i=0,a=null;if(this.movedToCollapsed){var s=null;s=e[r-1]<t?this.dataManager.translateTrimmedRow(t-r):this.dataManager.translateTrimmedRow(t);var u=this.dataManager.getRowParent(null===s?this.hot.countSourceRows()-1:s-1),l=this.dataManager.getRowIndex(u);i=o=this.dataManager.untranslateTrimmedRow(l)}else e[r-1]<t?o=(i=t-1)-r+1:i=(o=t)+r-1;a=this.hot.selection,n=this.hot.countCols()-1,a.setRangeStart(this.hot._createCellCoords(o,0)),a.setRangeEnd(this.hot._createCellCoords(i,n),!0)}},{key:"isRowOrderChanged",value:function(e,t){return e.some((function(e,n){return e-n!==t}))}}]),e}();t.default=d},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PersistentState=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0;var r=n(1071);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.PersistentState=r.PersistentState},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.PersistentState=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(31)),s=r(n(15)),u=r(n(16)),l=r(n(14)),c=n(50),f=r(n(1072)),d=r(n(74));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,u.default)(this,n)}}d.default.getSingleton().register("persistentStateSave"),d.default.getSingleton().register("persistentStateLoad"),d.default.getSingleton().register("persistentStateReset");t.PLUGIN_KEY="persistentState";t.PLUGIN_PRIORITY=0;var p=function(e){(0,s.default)(n,e);var t=h(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 f.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,l.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.storage=void 0,(0,a.default)((0,l.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,a.default)((0,l.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,l.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=p},function(e,t,n){"use strict";var r=n(1);t.__esModule=!0,t.default=void 0,n(18),n(35);var o=r(n(5)),i=r(n(6)),a=n(20),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.Search=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0;var r=n(1074);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.Search=r.Search},function(e,t,n){"use strict";n(7);var r=n(1);t.__esModule=!0,t.Search=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0;var o=r(n(44)),i=r(n(5)),a=r(n(6)),s=r(n(31)),u=r(n(15)),l=r(n(16)),c=r(n(14));n(35),n(0),n(66),n(12),n(614),n(61),n(42),n(49),n(54),n(75);var f=n(50),d=n(17),h=n(47),p=n(32);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,l.default)(this,n)}}t.PLUGIN_KEY="search";t.PLUGIN_PRIORITY=190;var m=function(e,t,n,r,o){e.getCellMeta(t,n).isSearchResult=o},g=function(e,t,n){return!((0,p.isUndefined)(e)||null===e||!e.toLocaleLowerCase||0===e.length)&&(!(0,p.isUndefined)(t)&&null!==t&&-1!==t.toString().toLocaleLowerCase(n.locale).indexOf(e.toLocaleLowerCase(n.locale)))},v=function(e){(0,u.default)(n,e);var t=y(n);function n(e){var r;return(0,i.default)(this,n),(r=t.call(this,e)).callback=m,r.queryMethod=g,r.searchResultClass="htSearchResult",r}return(0,a.default)(n,[{key:"isEnabled",value:function(){return this.hot.getSettings().search}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var t=this.hot.getSettings().search;this.updatePluginSettings(t),this.addHook("beforeRenderer",(function(){return e.onBeforeRenderer.apply(e,arguments)})),(0,s.default)((0,c.default)(n.prototype),"enablePlugin",this).call(this)}}},{key:"disablePlugin",value:function(){var e=this,t=function(){return e.onBeforeRenderer.apply(e,arguments)};this.hot.addHook("beforeRenderer",t),this.hot.addHookOnce("afterViewRender",(function(){e.hot.removeHook("beforeRenderer",t)})),(0,s.default)((0,c.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),(0,s.default)((0,c.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"query",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCallback(),r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.getQueryMethod(),o=this.hot.countRows(),i=this.hot.countCols(),a=[],s=this.hot;return(0,h.rangeEach)(0,o-1,(function(o){(0,h.rangeEach)(0,i-1,(function(i){var u=t.hot.getDataAtCell(o,i),l=t.hot.getCellMeta(o,i),c=l.search.callback||n,f=(l.search.queryMethod||r)(e,u,l);if(f){var d={row:o,col:i,data:u};a.push(d)}c&&c(s,o,i,u,f)}))})),a}},{key:"getCallback",value:function(){return this.callback}},{key:"setCallback",value:function(e){this.callback=e}},{key:"getQueryMethod",value:function(){return this.queryMethod}},{key:"setQueryMethod",value:function(e){this.queryMethod=e}},{key:"getSearchResultClass",value:function(){return this.searchResultClass}},{key:"setSearchResultClass",value:function(e){this.searchResultClass=e}},{key:"updatePluginSettings",value:function(e){(0,d.isObject)(e)&&(e.searchResultClass&&this.setSearchResultClass(e.searchResultClass),e.queryMethod&&this.setQueryMethod(e.queryMethod),e.callback&&this.setCallback(e.callback))}},{key:"onBeforeRenderer",value:function(e,t,n,r,i,a){var s,u=a.className||[],l=[];"string"==typeof u?l=u.split(" "):(s=l).push.apply(s,(0,o.default)(u));this.isEnabled()&&a.isSearchResult?l.includes(this.searchResultClass)||l.push("".concat(this.searchResultClass)):l.includes(this.searchResultClass)&&l.splice(l.indexOf(this.searchResultClass),1),a.className=l.join(" ")}},{key:"destroy",value:function(){(0,s.default)((0,c.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"search"}},{key:"PLUGIN_PRIORITY",get:function(){return 190}}]),n}(f.BasePlugin);t.Search=v},function(e,t,n){"use strict";t.__esModule=!0,t.TouchScroll=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0;var r=n(1076);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.TouchScroll=r.TouchScroll},function(e,t,n){"use strict";n(0),n(7);var r=n(1);t.__esModule=!0,t.TouchScroll=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(31)),s=r(n(15)),u=r(n(16)),l=r(n(14)),c=n(23),f=n(20),d=n(50),h=n(126);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,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,u.default)(this,n)}}t.PLUGIN_KEY="touchScroll";t.PLUGIN_PRIORITY=200;var y=function(e){(0,s.default)(n,e);var t=p(n);function n(e){var r;return(0,o.default)(this,n),(r=t.call(this,e)).scrollbars=[],r.clones=[],r.lockedCollection=!1,r.freezeOverlays=!1,r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return(0,h.isTouchSupported)()}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("afterViewRender",(function(){return e.onAfterViewRender()})),this.registerEvents(),(0,a.default)((0,l.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.lockedCollection=!1,(0,a.default)((0,l.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){(0,a.default)((0,l.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"registerEvents",value:function(){var e=this;this.addHook("beforeTouchScroll",(function(){return e.onBeforeTouchScroll()})),this.addHook("afterMomentumScroll",(function(){return e.onAfterMomentumScroll()}))}},{key:"onAfterViewRender",value:function(){if(!this.lockedCollection){var e=this.hot.view._wt.wtOverlays,t=e.topOverlay,n=e.bottomOverlay,r=e.inlineStartOverlay,o=e.topInlineStartCornerOverlay,i=e.bottomInlineStartCornerOverlay;this.lockedCollection=!0,this.scrollbars.length=0,this.scrollbars.push(t),n.clone&&this.scrollbars.push(n),this.scrollbars.push(r),o&&this.scrollbars.push(o),i&&i.clone&&this.scrollbars.push(i),this.clones=[],t.needFullRender&&this.clones.push(t.clone.wtTable.holder.parentNode),n.needFullRender&&this.clones.push(n.clone.wtTable.holder.parentNode),r.needFullRender&&this.clones.push(r.clone.wtTable.holder.parentNode),o&&this.clones.push(o.clone.wtTable.holder.parentNode),i&&i.clone&&this.clones.push(i.clone.wtTable.holder.parentNode)}}},{key:"onBeforeTouchScroll",value:function(){this.freezeOverlays=!0,(0,f.arrayEach)(this.clones,(function(e){(0,c.addClass)(e,"hide-tween")}))}},{key:"onAfterMomentumScroll",value:function(){var e=this;this.freezeOverlays=!1,(0,f.arrayEach)(this.clones,(function(e){(0,c.removeClass)(e,"hide-tween"),(0,c.addClass)(e,"show-tween")})),this.hot._registerTimeout((function(){(0,f.arrayEach)(e.clones,(function(e){(0,c.removeClass)(e,"show-tween")}))}),400),(0,f.arrayEach)(this.scrollbars,(function(e){e.refresh(),e.resetFixedPosition()})),this.hot.view._wt.wtOverlays.syncScrollWithMaster()}}],[{key:"PLUGIN_KEY",get:function(){return"touchScroll"}},{key:"PLUGIN_PRIORITY",get:function(){return 200}},{key:"SETTING_KEYS",get:function(){return!0}}]),n}(d.BasePlugin);t.TouchScroll=y},function(e,t,n){"use strict";t.__esModule=!0,t.TrimRows=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0;var r=n(1078);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.TrimRows=r.TrimRows},function(e,t,n){"use strict";n(7);var r=n(1);t.__esModule=!0,t.TrimRows=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=void 0,n(22),n(2),n(3),n(0),n(55),n(4),n(18),n(13),n(67),n(52);var o=r(n(5)),i=r(n(6)),a=r(n(31)),s=r(n(15)),u=r(n(16)),l=r(n(14)),c=n(50),f=n(82),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,u.default)(this,n)}}t.PLUGIN_KEY="trimRows";t.PLUGIN_PRIORITY=330;var p=function(e){(0,s.default)(n,e);var t=h(n);function n(e){var r;return(0,o.default)(this,n),(r=t.call(this,e)).trimmedRowsMap=null,r}return(0,i.default)(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().trimRows}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.trimmedRowsMap=this.hot.rowIndexMapper.registerMap("trimRows",new f.TrimmingMap),this.trimmedRowsMap.addLocalHook("init",(function(){return e.onMapInit()})),(0,a.default)((0,l.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){var e=this,t=this.hot.getSettings().trimRows;Array.isArray(t)&&this.hot.batchExecution((function(){e.trimmedRowsMap.clear(),(0,d.arrayEach)(t,(function(t){e.trimmedRowsMap.setValueAtIndex(t,!0)}))}),!0),(0,a.default)((0,l.default)(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.hot.rowIndexMapper.unregisterMap("trimRows"),(0,a.default)((0,l.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"getTrimmedRows",value:function(){return this.trimmedRowsMap.getTrimmedIndexes()}},{key:"trimRows",value:function(e){var t=this,n=this.getTrimmedRows(),r=this.isValidConfig(e),o=n;r&&(o=Array.from(new Set(n.concat(e)))),!1!==this.hot.runHooks("beforeTrimRow",n,o,r)&&(r&&this.hot.batchExecution((function(){(0,d.arrayEach)(e,(function(e){t.trimmedRowsMap.setValueAtIndex(e,!0)}))}),!0),this.hot.runHooks("afterTrimRow",n,o,r,r&&o.length>n.length))}},{key:"trimRow",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.trimRows(t)}},{key:"untrimRows",value:function(e){var t=this.getTrimmedRows(),n=this.isValidConfig(e),r=t,o=this.trimmedRowsMap.getValues().slice(),i=e.length>0;n&&i&&((0,d.arrayEach)(e,(function(e){o[e]=!1})),r=(0,d.arrayReduce)(o,(function(e,t,n){return t&&e.push(n),e}),[])),!1!==this.hot.runHooks("beforeUntrimRow",t,r,n&&i)&&(n&&i&&this.trimmedRowsMap.setValues(o),this.hot.runHooks("afterUntrimRow",t,r,n&&i,n&&r.length<t.length))}},{key:"untrimRow",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.untrimRows(t)}},{key:"isTrimmed",value:function(e){return this.trimmedRowsMap.getValueAtIndex(e)||!1}},{key:"untrimAll",value:function(){this.untrimRows(this.getTrimmedRows())}},{key:"isValidConfig",value:function(e){var t=this.hot.countSourceRows();return e.every((function(e){return Number.isInteger(e)&&e>=0&&e<t}))}},{key:"onMapInit",value:function(){var e=this,t=this.hot.getSettings().trimRows;Array.isArray(t)&&this.hot.batchExecution((function(){(0,d.arrayEach)(t,(function(t){e.trimmedRowsMap.setValueAtIndex(t,!0)}))}),!0)}},{key:"destroy",value:function(){(0,a.default)((0,l.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"trimRows"}},{key:"PLUGIN_PRIORITY",get:function(){return 330}}]),n}(c.BasePlugin);t.TrimRows=p},function(e,t,n){"use strict";n(3),n(0),n(2),n(11),n(4),n(19);var r=n(21);t.__esModule=!0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var u=a?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(1080));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}t.UndoRedo=o.default,t.PLUGIN_KEY=o.PLUGIN_KEY},function(e,t,n){"use strict";n(7);var r=n(1);t.__esModule=!0,t.default=t.PLUGIN_KEY=void 0;var o=r(n(5)),i=r(n(6)),a=r(n(15)),s=r(n(16)),u=r(n(14)),l=r(n(44)),c=r(n(34));n(140),n(0),n(99),n(13),n(54),n(73),n(35),n(40),n(18);var f=r(n(74)),d=n(20),h=n(47),p=n(17),y=n(105);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,s.default)(this,n)}}function g(e){var t=this;this.instance=e,this.doneActions=[],this.undoneActions=[],this.ignoreNewActions=!1,this.enabled=!1,e.addHook("afterChange",(function(n,r){var o=this,i=n&&n.length;if(i&&n.find((function(e){var t=(0,c.default)(e,4);return t[2]!==t[3]}))){t.done((function(){var t=n.reduce((function(e,t){return e.push((0,l.default)(t)),e}),[]);(0,d.arrayEach)(t,(function(t){t[1]=e.propToCol(t[1])}));var r=i>1?o.getSelected():[[t[0][0],t[0][1]]];return new g.ChangeAction(t,r)}),r)}})),e.addHook("afterCreateRow",(function(e,n,r){t.done((function(){return new g.CreateRowAction(e,n)}),r)})),e.addHook("beforeRemoveRow",(function(n,r,o,i){t.done((function(){var o=t.instance.getSourceDataArray(),i=(o.length+n)%o.length,a=e.toPhysicalRow(i),s=(0,p.deepClone)(o.slice(a,a+r));return new g.RemoveRowAction(i,s,e.getSettings().fixedRowsBottom,e.getSettings().fixedRowsTop)}),i)})),e.addHook("afterCreateCol",(function(e,n,r){t.done((function(){return new g.CreateColumnAction(e,n)}),r)})),e.addHook("beforeRemoveCol",(function(n,r,o,i){t.done((function(){var o=t.instance.getSourceDataArray(),i=(t.instance.countCols()+n)%t.instance.countCols(),a=[],s=[],u=[];(0,h.rangeEach)(o.length-1,(function(t){var n=[],s=o[t];(0,h.rangeEach)(i,i+(r-1),(function(t){n.push(s[e.toPhysicalColumn(t)])})),a.push(n)})),(0,h.rangeEach)(r-1,(function(t){u.push(e.toPhysicalColumn(i+t))})),Array.isArray(e.getSettings().colHeaders)&&(0,h.rangeEach)(r-1,(function(t){s.push(e.getSettings().colHeaders[e.toPhysicalColumn(i+t)]||null)}));var l=e.columnIndexMapper.getIndexesSequence(),c=e.rowIndexMapper.getIndexesSequence();return new g.RemoveColumnAction(i,u,a,s,l,c,e.getSettings().fixedColumnsStart)}),i)})),e.addHook("beforeCellAlignment",(function(e,n,r,o){t.done((function(){return new g.CellAlignmentAction(e,n,r,o)}))})),e.addHook("beforeFilter",(function(e){t.done((function(){return new g.FiltersAction(e)}))})),e.addHook("beforeRowMove",(function(e,n){!1!==e&&t.done((function(){return new g.RowMoveAction(e,n)}))})),e.addHook("beforeMergeCells",(function(n,r){r||t.done((function(){return new g.MergeCellsAction(e,n)}))})),e.addHook("afterUnmergeCells",(function(n,r){r||t.done((function(){return new g.UnmergeCellsAction(e,n)}))})),e.addHook("afterInit",(function(){t.init()}))}t.PLUGIN_KEY="undoRedo",g.prototype.done=function(e,t){if(!this.ignoreNewActions&&!("UndoRedo.undo"===t||"UndoRedo.redo"===t||"auto"===t)){var n=this.doneActions.slice();if(!1!==this.instance.runHooks("beforeUndoStackChange",n,t)){var r=e(),o=this.undoneActions.slice();this.doneActions.push(r),this.instance.runHooks("afterUndoStackChange",n,this.doneActions.slice()),this.instance.runHooks("beforeRedoStackChange",o),this.undoneActions.length=0,this.instance.runHooks("afterRedoStackChange",o,this.undoneActions.slice())}}},g.prototype.undo=function(){if(this.isUndoAvailable()){var e=this.doneActions.slice();this.instance.runHooks("beforeUndoStackChange",e);var t=this.doneActions.pop();this.instance.runHooks("afterUndoStackChange",e,this.doneActions.slice());var n=(0,p.deepClone)(t);if(!1===this.instance.runHooks("beforeUndo",n))return;this.ignoreNewActions=!0;var r=this,o=this.undoneActions.slice();this.instance.runHooks("beforeRedoStackChange",o),t.undo(this.instance,(function(){r.ignoreNewActions=!1,r.undoneActions.push(t)})),this.instance.runHooks("afterRedoStackChange",o,this.undoneActions.slice()),this.instance.runHooks("afterUndo",n)}},g.prototype.redo=function(){if(this.isRedoAvailable()){var e=this.undoneActions.slice();this.instance.runHooks("beforeRedoStackChange",e);var t=this.undoneActions.pop();this.instance.runHooks("afterRedoStackChange",e,this.undoneActions.slice());var n=(0,p.deepClone)(t);if(!1===this.instance.runHooks("beforeRedo",n))return;this.ignoreNewActions=!0;var r=this,o=this.doneActions.slice();this.instance.runHooks("beforeUndoStackChange",o),t.redo(this.instance,(function(){r.ignoreNewActions=!1,r.doneActions.push(t)})),this.instance.runHooks("afterUndoStackChange",o,this.doneActions.slice()),this.instance.runHooks("afterRedo",n)}},g.prototype.isUndoAvailable=function(){return this.doneActions.length>0},g.prototype.isRedoAvailable=function(){return this.undoneActions.length>0},g.prototype.clear=function(){this.doneActions.length=0,this.undoneActions.length=0},g.prototype.isEnabled=function(){return this.enabled},g.prototype.enable=function(){if(!this.isEnabled()){var e,t=this.instance;this.enabled=!0,(e=t).undo=function(){return e.undoRedo.undo()},e.redo=function(){return e.undoRedo.redo()},e.isUndoAvailable=function(){return e.undoRedo.isUndoAvailable()},e.isRedoAvailable=function(){return e.undoRedo.isRedoAvailable()},e.clearUndo=function(){return e.undoRedo.clear()},this.registerShortcuts(),t.addHook("afterChange",b)}},g.prototype.disable=function(){if(this.isEnabled()){var e,t=this.instance;this.enabled=!1,delete(e=t).undo,delete e.redo,delete e.isUndoAvailable,delete e.isRedoAvailable,delete e.clearUndo,this.unregisterShortcuts(),t.removeHook("afterChange",b)}},g.prototype.destroy=function(){this.clear(),this.instance=null,this.doneActions=null,this.undoneActions=null},g.Action=function(){},g.Action.prototype.undo=function(){},g.Action.prototype.redo=function(){},g.ChangeAction=function(e,t){this.changes=e,this.selected=t,this.actionType="change"},(0,p.inherit)(g.ChangeAction,g.Action),g.ChangeAction.prototype.undo=function(e,t){for(var n=(0,p.deepClone)(this.changes),r=e.countEmptyRows(!0),o=e.countEmptyCols(!0),i=0,a=n.length;i<a;i++)n[i].splice(3,1);e.addHookOnce("afterChange",t),e.setDataAtCell(n,null,null,"UndoRedo.undo");for(var s=0,u=n.length;s<u;s++){var l=(0,c.default)(n[s],2),f=l[0],d=l[1];e.getSettings().minSpareRows&&f+1+e.getSettings().minSpareRows===e.countRows()&&r===e.getSettings().minSpareRows&&(e.alter("remove_row",parseInt(f+1,10),e.getSettings().minSpareRows),e.undoRedo.doneActions.pop()),e.getSettings().minSpareCols&&d+1+e.getSettings().minSpareCols===e.countCols()&&o===e.getSettings().minSpareCols&&(e.alter("remove_col",parseInt(d+1,10),e.getSettings().minSpareCols),e.undoRedo.doneActions.pop())}e.selectCells(this.selected,!1,!1)},g.ChangeAction.prototype.redo=function(e,t){for(var n=(0,p.deepClone)(this.changes),r=0,o=n.length;r<o;r++)n[r].splice(2,1);e.addHookOnce("afterChange",t),e.setDataAtCell(n,null,null,"UndoRedo.redo"),this.selected&&e.selectCells(this.selected,!1,!1)},g.CreateRowAction=function(e,t){this.index=e,this.amount=t,this.actionType="insert_row"},(0,p.inherit)(g.CreateRowAction,g.Action),g.CreateRowAction.prototype.undo=function(e,t){var n=e.countRows(),r=e.getSettings().minSpareRows;this.index>=n&&this.index-r<n&&(this.index-=r),e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",this.index,this.amount,"UndoRedo.undo")},g.CreateRowAction.prototype.redo=function(e,t){e.addHookOnce("afterCreateRow",t),e.alter("insert_row",this.index,this.amount,"UndoRedo.redo")},g.RemoveRowAction=function(e,t,n,r){this.index=e,this.data=t,this.actionType="remove_row",this.fixedRowsBottom=n,this.fixedRowsTop=r},(0,p.inherit)(g.RemoveRowAction,g.Action),g.RemoveRowAction.prototype.undo=function(e,t){var n=e.getSettings();n.fixedRowsBottom=this.fixedRowsBottom,n.fixedRowsTop=this.fixedRowsTop,e.alter("insert_row",this.index,this.data.length,"UndoRedo.undo"),e.addHookOnce("afterViewRender",t),e.populateFromArray(this.index,0,this.data,void 0,void 0,"UndoRedo.undo")},g.RemoveRowAction.prototype.redo=function(e,t){e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",this.index,this.data.length,"UndoRedo.redo")},g.CreateColumnAction=function(e,t){this.index=e,this.amount=t,this.actionType="insert_col"},(0,p.inherit)(g.CreateColumnAction,g.Action),g.CreateColumnAction.prototype.undo=function(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.undo")},g.CreateColumnAction.prototype.redo=function(e,t){e.addHookOnce("afterCreateCol",t),e.alter("insert_col",this.index,this.amount,"UndoRedo.redo")},g.RemoveColumnAction=function(e,t,n,r,o,i,a){this.index=e,this.indexes=t,this.data=n,this.amount=this.data[0].length,this.headers=r,this.columnPositions=o.slice(0),this.rowPositions=i.slice(0),this.actionType="remove_col",this.fixedColumnsStart=a},(0,p.inherit)(g.RemoveColumnAction,g.Action),g.RemoveColumnAction.prototype.undo=function(e,t){var n=this;e.getSettings().fixedColumnsStart=this.fixedColumnsStart;for(var r=this.indexes.slice(0).sort(),o=function(e,t,o){return o[n.indexes.indexOf(r[t])]},i=this.data.length,a=[],s=0;s<i;s++)a.push((0,d.arrayMap)(this.data[s],o));var u=(0,d.arrayMap)(this.headers,o),l=[];e.alter("insert_col",this.indexes[0],this.indexes.length,"UndoRedo.undo"),(0,d.arrayEach)(e.getSourceDataArray(),(function(e,t){(0,d.arrayEach)(r,(function(n,r){e[n]=a[t][r],l.push([t,n,e[n]])}))})),e.setSourceDataAtCell(l,void 0,void 0,"UndoRedo.undo"),e.columnIndexMapper.insertIndexes(r[0],r.length),void 0!==this.headers&&(0,d.arrayEach)(u,(function(t,n){e.getSettings().colHeaders[r[n]]=t})),e.batchExecution((function(){e.rowIndexMapper.setIndexesSequence(n.rowPositions),e.columnIndexMapper.setIndexesSequence(n.columnPositions)}),!0),e.addHookOnce("afterViewRender",t),e.render()},g.RemoveColumnAction.prototype.redo=function(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.redo")},g.CellAlignmentAction=function(e,t,n,r){this.stateBefore=e,this.range=t,this.type=n,this.alignment=r},g.CellAlignmentAction.prototype.undo=function(e,t){var n=this;(0,d.arrayEach)(this.range,(function(t){t.forAll((function(t,r){t>=0&&r>=0&&e.setCellMeta(t,r,"className",n.stateBefore[t][r]||" htLeft")}))})),e.addHookOnce("afterViewRender",t),e.render()},g.CellAlignmentAction.prototype.redo=function(e,t){(0,y.align)(this.range,this.type,this.alignment,(function(t,n){return e.getCellMeta(t,n)}),(function(t,n,r,o){return e.setCellMeta(t,n,r,o)})),e.addHookOnce("afterViewRender",t),e.render()},g.FiltersAction=function(e){this.conditionsStack=e,this.actionType="filter"},(0,p.inherit)(g.FiltersAction,g.Action),g.FiltersAction.prototype.undo=function(e,t){var n=e.getPlugin("filters");e.addHookOnce("afterViewRender",t),n.conditionCollection.importAllConditions(this.conditionsStack.slice(0,this.conditionsStack.length-1)),n.filter()},g.FiltersAction.prototype.redo=function(e,t){var n=e.getPlugin("filters");e.addHookOnce("afterViewRender",t),n.conditionCollection.importAllConditions(this.conditionsStack),n.filter()};var v=function(e){(0,a.default)(n,e);var t=m(n);function n(e,r){var i;(0,o.default)(this,n),(i=t.call(this)).cellRange=r;var a=i.cellRange.getTopStartCorner(),s=i.cellRange.getBottomEndCorner();return i.rangeData=e.getData(a.row,a.col,s.row,s.col),i}return(0,i.default)(n,[{key:"undo",value:function(e,t){var n=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),n.unmergeRange(this.cellRange,!0);var r=this.cellRange.getTopStartCorner();e.populateFromArray(r.row,r.col,this.rangeData,void 0,void 0,"MergeCells")}},{key:"redo",value:function(e,t){var n=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),n.mergeRange(this.cellRange)}}]),n}(g.Action);g.MergeCellsAction=v;var E=function(e){(0,a.default)(n,e);var t=m(n);function n(e,r){var i;return(0,o.default)(this,n),(i=t.call(this)).cellRange=r,i}return(0,i.default)(n,[{key:"undo",value:function(e,t){var n=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),n.mergeRange(this.cellRange,!0)}},{key:"redo",value:function(e,t){var n=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),n.unmergeRange(this.cellRange,!0),e.render()}}]),n}(g.Action);function b(e,t){if("loadData"===t)return this.undoRedo.clear()}g.UnmergeCellsAction=E,g.RowMoveAction=function(e,t){this.rows=e.slice(),this.finalIndex=t,this.actionType="row_move"},(0,p.inherit)(g.RowMoveAction,g.Action),g.RowMoveAction.prototype.undo=function(e,t){var n=this,r=e.getPlugin("manualRowMove"),o=[].concat(this.rows),i=o.filter((function(e){return e>n.finalIndex})),a=o.filter((function(e){return e<=n.finalIndex})),s=i.sort((function(e,t){return t-e})).concat(a.sort((function(e,t){return e-t})));e.addHookOnce("afterViewRender",t);for(var u=0;u<s.length;u+=1){var l=e.toVisualRow(s[u]);r.moveRow(l,s[u])}e.render(),e.deselectCell(),e.selectRows(this.rows[0],this.rows[0]+this.rows.length-1)},g.RowMoveAction.prototype.redo=function(e,t){var n=e.getPlugin("manualRowMove");e.addHookOnce("afterViewRender",t),n.moveRows(this.rows.slice(),this.finalIndex),e.render(),e.deselectCell(),e.selectRows(this.finalIndex,this.finalIndex+this.rows.length-1)},g.prototype.init=function(){var e=this.instance.getSettings().undo,t=void 0===e||e;this.instance.undoRedo||(this.instance.undoRedo=this),t?this.instance.undoRedo.enable():this.instance.undoRedo.disable()},g.prototype.registerShortcuts=function(){var e=this,t={runOnlyIf:function(e){return!e.altKey},group:"undoRedo"};this.instance.getShortcutManager().getContext("grid").addShortcuts([{keys:[["Control/Meta","z"]],callback:function(){e.undo()}},{keys:[["Control/Meta","y"],["Control/Meta","Shift","z"]],callback:function(){e.redo()}}],t)},g.prototype.unregisterShortcuts=function(){this.instance.getShortcutManager().getContext("grid").removeShortcutsByGroup("undoRedo")};var T=f.default.getSingleton();T.add("afterUpdateSettings",(function(){var e;null===(e=this.getPlugin("undoRedo"))||void 0===e||e.init()})),T.register("beforeUndo"),T.register("afterUndo"),T.register("beforeRedo"),T.register("afterRedo"),g.PLUGIN_KEY="undoRedo",g.SETTING_KEYS=!0;var C=g;t.default=C},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,u=new Array(s>1?s-1:0),l=1;l<s;l++)u[l-1]=arguments[l];n=(a=o[t]).call.apply(a,[o].concat(u)),"destroy"===t&&r.removeData()}return n}},n(18)}]).default}));
|