/*! * 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;n1&&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=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;t9007199254740991)throw m("Maximum allowed index exceeded");for(n=0;n=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;ot?e:t}),Array.isArray(e)?e[0]:void 0)},t.arrayMin=function(e){return r(e,(function(e,t){return e1&&void 0!==arguments[1]?arguments[1]:" ";return e.split(t)},t.to2dArray=function(e){var t=e.length,n=0;for(;n0&&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|&(.*);)/;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>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 Read more on how to \n install it properly or contact us at support@handsontable.com.'],['\n The license key for Handsontable is invalid.\\x20\n Read more on how to\\x20\n install it properly or contact us at support@handsontable.com.'])))},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 ",'. Renew your \n license key or downgrade to a version released prior to ','. If you need any \n 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\\x20\n license key or downgrade to a version released prior to ','. If you need any\\x20\n help, contact us at sales@handsontable.com.'])),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 Read more about it in \n the documentation or contact 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\'.\\x20\n Read more about it in\\x20\n the documentation or contact us at support@handsontable.com.'])))},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);n5&&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.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;n1?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&&!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;r1?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;n2)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;so)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;fv-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;f0&&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=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=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,"$")}))||!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=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=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;s1?t-1:0),r=1;r1&&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;i1&&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;u3)){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;ru(n)?1:-1}}(e)),n=o.length,r=0;r0&&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(;c0&&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 IParserConfig property is soft-deprecated and will be removed in future versions.\n\tPlease use the 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);n1?t-1:0),o=1;of;)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=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=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=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;ne.end.row)&&!(this.end.cole.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}},{key:"includesColumn",value:function(e){return this.start.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;t0)){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(tthis.end.col)){if(t=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;r1&&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@^][^\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=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>>0;for(t=0;t0)for(n=0;n=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=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;n68?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;n0;){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;t7)&&(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;t0&&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;othis?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=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(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()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;ethis.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;r0):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=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]||i0,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''.concat(String.fromCharCode(10003),"").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);00?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);n0},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)=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;c1&&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;hr?1:n","=",".","+","-",",","\\","$","^","!"];function M(e){return k.includes(e)}function I(e,t){for(var n="",r=0;r=0&&o=0&&i0&&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);n3&&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&&t2&&void 0!==arguments[2]?arguments[2]:t;return this.cellAddress.sheet===e&&this.cellAddress.col<=n&&t=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=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);n2&&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.length1&&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="t
t";var n=document.createElement("CAPTION");n.innerHTML="c
c
c
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;d0?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"