handsontable 0.0.0-next-479c0d0-20250707 → 0.0.0-next-9047f21-20250708
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of handsontable might be problematic. Click here for more details.
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/dist/handsontable.css +2 -2
- package/dist/handsontable.full.css +2 -2
- package/dist/handsontable.full.js +5 -5
- package/dist/handsontable.full.min.css +2 -2
- package/dist/handsontable.full.min.js +4 -4
- package/dist/handsontable.js +5 -5
- package/dist/handsontable.min.css +2 -2
- package/dist/handsontable.min.js +4 -4
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/package.json +1 -1
- package/styles/handsontable.css +2 -2
- package/styles/handsontable.min.css +2 -2
- package/styles/ht-theme-horizon.css +2 -2
- package/styles/ht-theme-horizon.min.css +2 -2
- package/styles/ht-theme-main.css +2 -2
- package/styles/ht-theme-main.min.css +2 -2
package/dist/handsontable.min.js
CHANGED
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
* INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
|
|
26
26
|
* USE OR INABILITY TO USE THIS SOFTWARE.
|
|
27
27
|
*
|
|
28
|
-
* Version: 0.0.0-next-
|
|
29
|
-
* Release date: 29/04/2025 (built at
|
|
28
|
+
* Version: 0.0.0-next-9047f21-20250708
|
|
29
|
+
* Release date: 29/04/2025 (built at 08/07/2025 07:58:24)
|
|
30
30
|
*/
|
|
31
31
|
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("dompurify"),require("@handsontable/pikaday"),require("moment"),require("numbro")):"function"==typeof define&&define.amd?define("Handsontable",["dompurify","@handsontable/pikaday","moment","numbro"],t):"object"==typeof exports?exports.Handsontable=t(require("dompurify"),require("@handsontable/pikaday"),require("moment"),require("numbro")):e.Handsontable=t(e.DOMPurify,e.Pikaday,e.moment,e.numbro)}("undefined"!=typeof self?self:this,(e,t,o,s)=>(()=>{var i={57:(e,t,o)=>{"use strict";o(44065),o(56060)},214:e=>{"use strict";e.exports=function(e){return null==e}},281:(e,t,o)=>{"use strict";var s=o(39157),i=o(9370),r=o(96891);e.exports=function(e,t,o){s?i.f(e,t,r(0,o)):e[t]=o}},433:(e,t,o)=>{"use strict";t.__esModule=!0,t.align=function(e,t,o,n,l){(0,s.arrayEach)(e,e=>{e.forAll((e,s)=>{e>=0&&s>=0&&function(e,t,o,s,n,l){const a=n(e,t);let h=s;a.className&&(h="vertical"===o?i(a.className,s):r(a.className,s));l(e,t,"className",h)}(e,s,t,o,n,l)})})},t.checkSelectionConsistency=function(e,t){let o=!1;Array.isArray(e)&&(0,s.arrayEach)(e,e=>(e.forAll((e,s)=>{if(e>=0&&s>=0&&t(e,s))return o=!0,!1}),o));return o},t.getAlignmentClasses=function(e,t){const o={};return(0,s.arrayEach)(e,e=>{e.forAll((e,s)=>{e>=0&&s>=0&&(o[e]||(o[e]=[]),o[e][s]=t(e,s))})}),o},t.getAlignmentComparatorByClass=function(e){return function(t,o){const s=this.getCellMeta(t,o).className;return s&&-1!==s.indexOf(e)}},t.getDocumentOffsetByElement=function(e,t){const o={top:0,left:0};if(t!==e.ownerDocument){const{frameElement:e}=t.defaultView,{top:s,left:i}=e.getBoundingClientRect();o.top=s,o.left=i}return o},t.markLabelAsSelected=function(e){return`<span class="selected">${String.fromCharCode(10003)}</span>${e}`},t.prepareHorizontalAlignClass=r,t.prepareVerticalAlignClass=i;var s=o(18051);function i(e,t){if(-1!==e.indexOf(t))return e;return`${e.replace("htTop","").replace("htMiddle","").replace("htBottom","").replace(" ","")} ${t}`}function r(e,t){if(-1!==e.indexOf(t))return e;return`${e.replace("htLeft","").replace("htCenter","").replace("htRight","").replace("htJustify","").replace(" ","")} ${t}`}},642:(e,t,o)=>{"use strict";var s=o(21313),i=o(14499).has,r=o(30845),n=o(18622),l=o(98304),a=o(78016),h=o(63884);e.exports=function(e){var t=s(this),o=n(e);if(r(t)<=o.size)return!1!==l(t,function(e){if(o.includes(e))return!1},!0);var c=o.getIterator();return!1!==a(c,function(e){if(i(t,e))return h(c,"normal",!1)})}},721:(e,t,o)=>{"use strict";var s,i=o(77618),r=o(65126),n=o(60370),l=o(13884),a=o(3034),h=o(4158),c=o(86224),u="prototype",d="script",g=c("IE_PROTO"),f=function(){},p=function(e){return"<"+d+">"+e+"</"+d+">"},m=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},w=function(){try{s=new ActiveXObject("htmlfile")}catch(e){}var e,t,o;w="undefined"!=typeof document?document.domain&&s?m(s):(t=h("iframe"),o="java"+d+":",t.style.display="none",a.appendChild(t),t.src=String(o),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):m(s);for(var i=n.length;i--;)delete w[u][n[i]];return w()};l[g]=!0,e.exports=Object.create||function(e,t){var o;return null!==e?(f[u]=i(e),o=new f,f[u]=null,o[g]=e):o=w(),void 0===t?o:r.f(o,t)}},1002:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(73741),o(69326);var i=s(o(53726)),r=o(43561),n=o(6964),l=s(o(51143)),a=s(o(1537)),h=o(19440),c=s(o(2396)),u=s(o(82808)),d=o(13773),g=o(38856);t.default=class{constructor(e,t,o,s,n){(0,i.default)(this,"wtSettings",null),(0,i.default)(this,"domBindings",void 0),(0,i.default)(this,"TBODY",null),(0,i.default)(this,"THEAD",null),(0,i.default)(this,"COLGROUP",null),(0,i.default)(this,"hasTableHeight",!0),(0,i.default)(this,"hasTableWidth",!0),(0,i.default)(this,"isTableVisible",!1),(0,i.default)(this,"tableOffset",0),(0,i.default)(this,"holderOffset",0),this.domBindings=o,this.isMaster="master"===n,this.name=n,this.dataAccessObject=e,this.facadeGetter=t,this.wtSettings=s,this.instance=this.dataAccessObject.wot,this.wot=this.dataAccessObject.wot,this.TABLE=o.rootTable,(0,r.removeTextNodes)(this.TABLE),this.spreader=this.createSpreader(this.TABLE),this.hider=this.createHider(this.spreader),this.holder=this.createHolder(this.hider),this.wtRootElement=this.holder.parentNode,this.isMaster&&this.alignOverlaysWithTrimmingContainer(),this.fixTableDomTree(),this.rowFilter=null,this.columnFilter=null,this.correctHeaderWidth=!1;const l=this.wtSettings.getSettingPure("rowHeaderWidth");this.wtSettings.update("rowHeaderWidth",()=>this._modifyRowHeaderWidth(l)),this.rowUtils=new u.default(this.dataAccessObject,this.wtSettings),this.columnUtils=new c.default(this.dataAccessObject,this.wtSettings),this.tableRenderer=new h.Renderer({TABLE:this.TABLE,THEAD:this.THEAD,COLGROUP:this.COLGROUP,TBODY:this.TBODY,rowUtils:this.rowUtils,columnUtils:this.columnUtils,cellRenderer:this.wtSettings.getSettingPure("cellRenderer"),stylesHandler:this.wtSettings.getSetting("stylesHandler")})}is(e){return this.name===e}fixTableDomTree(){const e=this.domBindings.rootDocument;this.TBODY=this.TABLE.querySelector("tbody"),this.TBODY||(this.TBODY=e.createElement("tbody"),this.TABLE.appendChild(this.TBODY)),this.THEAD=this.TABLE.querySelector("thead"),this.THEAD||(this.THEAD=e.createElement("thead"),this.TABLE.insertBefore(this.THEAD,this.TBODY)),this.COLGROUP=this.TABLE.querySelector("colgroup"),this.COLGROUP||(this.COLGROUP=e.createElement("colgroup"),this.TABLE.insertBefore(this.COLGROUP,this.THEAD))}createSpreader(e){const t=e.parentNode;let o;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,r.hasClass)(t,"wtHolder")||(o=this.domBindings.rootDocument.createElement("div"),o.className="wtSpreader",t&&t.insertBefore(o,e),o.appendChild(e)),o.style.position="relative",this.wtSettings.getSetting("ariaTags")&&(0,r.setAttribute)(o,[(0,g.A11Y_PRESENTATION)()]),o}createHider(e){const t=e.parentNode;let o;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,r.hasClass)(t,"wtHolder")||(o=this.domBindings.rootDocument.createElement("div"),o.className="wtHider",t&&t.insertBefore(o,e),o.appendChild(e)),this.wtSettings.getSetting("ariaTags")&&(0,r.setAttribute)(o,[(0,g.A11Y_PRESENTATION)()]),o}createHolder(e){const t=e.parentNode;let o;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,r.hasClass)(t,"wtHolder")||(o=this.domBindings.rootDocument.createElement("div"),o.style.position="relative",o.className="wtHolder",this.isMaster&&(0,r.setAttribute)(o,[(0,g.A11Y_TABINDEX)(-1)]),t&&t.insertBefore(o,e),this.isMaster&&(o.parentNode.className+="ht_master handsontable",o.parentNode.setAttribute("dir",this.wtSettings.getSettingPure("rtlMode")?"rtl":"ltr"),this.wtSettings.getSetting("ariaTags")&&(0,r.setAttribute)(o.parentNode,[(0,g.A11Y_PRESENTATION)()])),o.appendChild(e)),this.wtSettings.getSetting("ariaTags")&&(0,r.setAttribute)(o,[(0,g.A11Y_PRESENTATION)()]),o}draw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{wtSettings:t}=this,{wtOverlays:o,wtViewport:s}=this.dataAccessObject,i=t.getSetting("totalRows"),n=t.getSetting("totalColumns"),h=t.getSetting("rowHeaders"),c=h.length,u=t.getSetting("columnHeaders"),g=u.length;let f=e;if(this.isMaster&&(o.beforeDraw(),this.holderOffset=(0,r.offset)(this.holder),f=s.createCalculators(f),c&&!t.getSetting("fixedColumnsStart"))){const e=o.inlineStartOverlay.getScrollPosition(),t=this.correctHeaderWidth;this.correctHeaderWidth=0!==e,t!==this.correctHeaderWidth&&(f=!1)}if(f)this.isMaster&&o.refresh(!0);else{this.isMaster?this.tableOffset=(0,r.offset)(this.TABLE):this.tableOffset=this.dataAccessObject.parentTableOffset;const e=Math.max(this.getFirstRenderedRow(),0),t=Math.max(this.getFirstRenderedColumn(),0);this.rowFilter=new a.default(e,i,g),this.columnFilter=new l.default(t,n,c);let f=!0;if(this.isMaster){this.alignOverlaysWithTrimmingContainer();const e={};this.wtSettings.getSetting("beforeDraw",!0,e),f=!0!==e.skipRender}f&&(this.tableRenderer.setHeaderContentRenderers(h,u),(this.is(d.CLONE_BOTTOM)||this.is(d.CLONE_BOTTOM_INLINE_START_CORNER))&&this.tableRenderer.setHeaderContentRenderers(h,[]),this.resetOversizedRows(),this.tableRenderer.setActiveOverlayName(this.name).setViewportSize(this.getRenderedRowsCount(),this.getRenderedColumnsCount()).setFilters(this.rowFilter,this.columnFilter).render(),this.isMaster&&this.markOversizedColumnHeaders(),this.adjustColumnHeaderHeights(),(this.isMaster||this.is(d.CLONE_BOTTOM))&&this.markOversizedRows(),this.isMaster?(this.wtSettings.getSetting("externalRowCalculator")||s.createVisibleCalculators(),o.refresh(!1),o.applyToDOM(),this.wtSettings.getSetting("onDraw",!0)):this.is(d.CLONE_BOTTOM)&&this.dataAccessObject.cloneSource.wtOverlays.adjustElementsSize())}let p=!1;return this.isMaster&&(p=o.topOverlay.resetFixedPosition(),o.bottomOverlay.clone&&(p=o.bottomOverlay.resetFixedPosition()||p),p=o.inlineStartOverlay.resetFixedPosition()||p,o.topInlineStartCornerOverlay&&o.topInlineStartCornerOverlay.resetFixedPosition(),o.bottomInlineStartCornerOverlay&&o.bottomInlineStartCornerOverlay.clone&&o.bottomInlineStartCornerOverlay.resetFixedPosition()),p?(o.refreshAll(),o.adjustElementsSize()):this.dataAccessObject.selectionManager.setActiveOverlay(this.facadeGetter()).render(f),this.isMaster&&o.afterDraw(),this.dataAccessObject.drawn=!0,this}markIfOversizedColumnHeader(e){const t=this.columnFilter.renderedToSource(e);let o=this.wtSettings.getSetting("columnHeaders").length;const s=this.wtSettings.getSetting("stylesHandler").getDefaultRowHeight();let i,n,l;const a=this.wtSettings.getSetting("columnHeaderHeight")||[];for(;o;)o-=1,i=this.getColumnHeaderHeight(o),n=this.getColumnHeader(t,o),n&&(l=(0,r.innerHeight)(n),(!i&&s<l||i<l)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]=l),Array.isArray(a)?null!==a[o]&&void 0!==a[o]&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]=a[o]):isNaN(a)||(this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]=a),this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]<(a[o]||a)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]=a[o]||a))}adjustColumnHeaderHeights(){const{wtSettings:e}=this,t=this.THEAD.childNodes,o=this.dataAccessObject.wtViewport.oversizedColumnHeaders;for(let s=0,i=e.getSetting("columnHeaders").length;s<i;s++)if(o[s]){if(!t[s]||0===t[s].childNodes.length)return;t[s].childNodes[0].style.height=`${o[s]}px`}}resetOversizedRows(){const{wtSettings:e}=this,{wtViewport:t}=this.dataAccessObject;if((this.isMaster||this.is(d.CLONE_BOTTOM))&&!e.getSetting("externalRowCalculator")){const e=this.getRenderedRowsCount();for(let o=0;o<e;o++){const e=this.rowFilter.renderedToSource(o);t.oversizedRows&&t.oversizedRows[e]&&(t.oversizedRows[e]=void 0)}}}getCell(e){let t=e.row,o=e.col;const s=this.wtSettings.getSetting("onModifyGetCellCoords",t,o,!this.isMaster,"render");if(s&&Array.isArray(s)&&([t,o]=s),this.isRowBeforeRenderedRows(t))return-1;if(this.isRowAfterRenderedRows(t))return-2;if(this.isColumnBeforeRenderedColumns(o))return-3;if(this.isColumnAfterRenderedColumns(o))return-4;const i=this.getRow(t);if(!i&&t>=0)throw new Error("TR was expected to be rendered but is not");const r=i.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(o)];if(!r&&o>=0)throw new Error("TD or TH was expected to be rendered but is not");return r}getRow(e){let t=null,o=null;var s,i;e<0?(t=null===(s=this.rowFilter)||void 0===s?void 0:s.sourceRowToVisibleColHeadedRow(e),o=this.THEAD):(t=null===(i=this.rowFilter)||void 0===i?void 0:i.sourceToRendered(e),o=this.TBODY);return void 0!==t&&void 0!==o&&(!(o.childNodes.length<t+1)&&o.childNodes[t])}getColumnHeader(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const o=this.THEAD.childNodes[t];return null==o?void 0:o.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e)]}getColumnHeaders(e){const t=[],o=this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e);return this.THEAD.childNodes.forEach(e=>{const s=e.childNodes[o];s&&t.push(s)}),t}getRowHeader(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(t>=this.wtSettings.getSetting("rowHeaders").length)return;const o=this.rowFilter.sourceToRendered(e),s=o<0?this.rowFilter.sourceRowToVisibleColHeadedRow(e):o,i=(o<0?this.THEAD:this.TBODY).childNodes[s];return null==i?void 0:i.childNodes[t]}getRowHeaders(e){const t=[],o=this.wtSettings.getSetting("rowHeaders").length;for(let s=0;s<o;s++){const o=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)],i=null==o?void 0:o.childNodes[s];i&&t.push(i)}return t}getCoords(e){let t=e;if("TD"!==t.nodeName&&"TH"!==t.nodeName&&(t=(0,r.closest)(t,["TD","TH"])),null===t)return null;const o=t.parentNode;if(!o)return null;const s=o.parentNode;let i=(0,r.index)(o),n=t.cellIndex;if((0,r.overlayContainsElement)(d.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,r.overlayContainsElement)(d.CLONE_TOP,t,this.wtRootElement))"THEAD"===s.nodeName&&(i-=s.childNodes.length);else if((0,r.overlayContainsElement)(d.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)||(0,r.overlayContainsElement)(d.CLONE_BOTTOM,t,this.wtRootElement)){i=this.wtSettings.getSetting("totalRows")-s.childNodes.length+i}else s===this.THEAD?i=this.rowFilter.visibleColHeadedRowToSourceRow(i):this.rowFilter&&(i=this.rowFilter.renderedToSource(i));(0,r.overlayContainsElement)(d.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,r.overlayContainsElement)(d.CLONE_INLINE_START,t,this.wtRootElement)||(0,r.overlayContainsElement)(d.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)?n=this.columnFilter.offsettedTH(n):this.columnFilter&&(n=this.columnFilter.visibleRowHeadedColumnToSourceColumn(n));const l=this.wtSettings.getSetting("onModifyGetCoordsElement",i,n);return l&&Array.isArray(l)&&([i,n]=l),this.wot.createCellCoords(i,n)}markOversizedRows(){if(this.wtSettings.getSetting("externalRowCalculator"))return;let e=this.TBODY.childNodes.length;const t=this.wtSettings.getSetting("stylesHandler"),o=e*t.getDefaultRowHeight(),s=(0,r.innerHeight)(this.TBODY)-1,i=t.areCellsBorderBox(),n=i?r.outerHeight:r.innerHeight,l=i?0:1,a=i?1:0;let h,c,u,d,g;if(o!==s||this.wtSettings.getSetting("fixedRowsBottom"))for(;e;){e-=1,u=this.rowFilter.renderedToSource(e),h=this.getRowHeight(u),d=this.getTrForRow(u),g=d.querySelector("th");const o=0===u?a:0;c=g?n(g):n(d)-l,(!h&&t.getDefaultRowHeight()<c-o||h<c)&&(i||(c+=1),this.dataAccessObject.wtViewport.oversizedRows[u]=c)}}getTrForRow(e){return this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)]}isColumnHeaderRendered(e){if(e>=0)return!1;const t=this.wtSettings.getSetting("rowHeaders").length;return Math.abs(e)<=t}isRowHeaderRendered(e){if(e>=0)return!1;const t=this.wtSettings.getSetting("columnHeaders").length;return Math.abs(e)<=t}isRowBeforeRenderedRows(e){const t=this.getFirstRenderedRow();return e<0&&t<=0?!this.isRowHeaderRendered(e):e<t}isRowAfterRenderedRows(e){return e>this.getLastRenderedRow()}isColumnBeforeRenderedColumns(e){const t=this.getFirstRenderedColumn();return e<0&&t<=0?!this.isColumnHeaderRendered(e):e<t}isColumnAfterRenderedColumns(e){return this.columnFilter&&e>this.getLastRenderedColumn()}isColumnAfterViewport(e){return this.columnFilter&&e>this.getLastVisibleColumn()}isRowAfterViewport(e){return this.rowFilter&&e>this.getLastVisibleRow()}isColumnBeforeViewport(e){return this.columnFilter&&this.columnFilter.sourceToRendered(e)<0&&e>=0}isLastRowFullyVisible(){return this.getLastVisibleRow()===this.getLastRenderedRow()}isLastColumnFullyVisible(){return this.getLastVisibleColumn()===this.getLastRenderedColumn()}allRowsInViewport(){return this.wtSettings.getSetting("totalRows")===this.getVisibleRowsCount()}allColumnsInViewport(){return this.wtSettings.getSetting("totalColumns")===this.getVisibleColumnsCount()}getRowHeight(e){return this.rowUtils.getHeight(e)}getColumnHeaderHeight(e){return this.columnUtils.getHeaderHeight(e)}getColumnWidth(e){return this.columnUtils.getWidth(e)}hasDefinedSize(){return this.hasTableHeight&&this.hasTableWidth}getWidth(){return(0,r.outerWidth)(this.TABLE)}getHeight(){return(0,r.outerHeight)(this.TABLE)}getTotalWidth(){const e=(0,r.outerWidth)(this.hider);return 0!==e?e:this.getWidth()}getTotalHeight(){const e=(0,r.outerHeight)(this.hider);return 0!==e?e:this.getHeight()}isVisible(){return(0,r.isVisible)(this.TABLE)}_modifyRowHeaderWidth(e){let t=(0,n.isFunction)(e)?e():null;return Array.isArray(t)?(t=[...t],t[t.length-1]=this._correctRowHeaderWidth(t[t.length-1])):t=this._correctRowHeaderWidth(t),t}_correctRowHeaderWidth(e){let t=e;return"number"!=typeof e&&(t=this.wtSettings.getSetting("defaultColumnWidth")),this.correctHeaderWidth&&(t+=1),t}}},1006:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(77544);t.EDITOR_STATE=s.EDITOR_STATE,t.EDITOR_TYPE=s.EDITOR_TYPE,t.BaseEditor=s.BaseEditor},1177:(e,t,o)=>{"use strict";t.__esModule=!0,t.dropdownValidator=r;var s=o(48513);const i=t.VALIDATOR_TYPE="dropdown";function r(e,t){s.autocompleteValidator.apply(this,[e,t])}r.VALIDATOR_TYPE=i},1325:(e,t,o)=>{"use strict";var s=o(25225),i=o(6996),r=o(30334),n=s(Function.toString);i(r.inspectSource)||(r.inspectSource=function(e){return n(e)}),e.exports=r.inspectSource},1402:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(1002)),r=s(o(68394)),n=s(o(54173)),l=o(87203),a=o(13773);class h extends i.default{constructor(e,t,o,s){super(e,t,o,s,a.CLONE_BOTTOM_INLINE_START_CORNER)}}(0,l.mixin)(h,r.default),(0,l.mixin)(h,n.default);t.default=h},1537:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726));t.default=class{constructor(e,t,o){(0,i.default)(this,"offset",void 0),(0,i.default)(this,"total",void 0),(0,i.default)(this,"countTH",void 0),this.offset=e,this.total=t,this.countTH=o}offsetted(e){return e+this.offset}unOffsetted(e){return e-this.offset}renderedToSource(e){return this.offsetted(e)}sourceToRendered(e){return this.unOffsetted(e)}offsettedTH(e){return e-this.countTH}unOffsettedTH(e){return e+this.countTH}visibleColHeadedRowToSourceRow(e){return this.renderedToSource(this.offsettedTH(e))}sourceRowToVisibleColHeadedRow(e){return this.unOffsettedTH(this.sourceToRendered(e))}}},1585:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.default=function(e,t){var o,s=this;let U=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Y=this;const j=new h.default(Y);let z,G,$,K,X,q,Q=!0;(0,_.hasValidParameter)(U)&&(0,_.registerAsRootInstance)(this);this.rootContainer=e,this.rootWrapperElement=void 0,this.rootPortalElement=void 0,this.rootElement=(0,_.isRootInstance)(this)?e.ownerDocument.createElement("div"):e,this.rootDocument=e.ownerDocument,this.rootWindow=this.rootDocument.defaultView,(0,_.isRootInstance)(this)&&(this.rootWrapperElement=this.rootDocument.createElement("div"),this.rootPortalElement=this.rootDocument.createElement("div"),(0,i.addClass)(this.rootElement,"ht-wrapper"),(0,i.addClass)(this.rootWrapperElement,"ht-root-wrapper"),this.rootWrapperElement.appendChild(this.rootElement),this.rootContainer.appendChild(this.rootWrapperElement),(0,i.addClass)(this.rootPortalElement,"ht-portal"),this.rootDocument.body.appendChild(this.rootPortalElement));this.isDestroyed=!1,this.renderSuspendedCounter=0,this.executionSuspendedCounter=0;const J=null!==(o=null==t?void 0:t.layoutDirection)&&void 0!==o?o:"inherit",Z=["rtl","ltr"].includes(J)?J:this.rootWindow.getComputedStyle(this.rootElement).direction;this.rootElement.setAttribute("dir",Z),this.isRtl=function(){return"rtl"===Z},this.isLtr=function(){return!Y.isRtl()},this.getDirectionFactor=function(){return Y.isLtr()?1:-1},this.stylesHandler=new L.StylesHandler(Y.rootElement,Y.rootDocument),t.language=(0,I.getValidLanguageCode)(t.language);const ee=Object.fromEntries(Object.entries(t).filter(e=>{let[t]=e;return!(M.Hooks.getSingleton().isRegistered(t)||M.Hooks.getSingleton().isDeprecated(t))})),te=new A.MetaManager(Y,ee,[A.DynamicCellMetaMod,A.ExtendMetaPropertiesMod]),oe=te.getTableMeta(),se=te.getGlobalMeta(),ie=(0,x.createUniqueMap)();this.container=this.rootDocument.createElement("div"),this.rootElement.insertBefore(this.container,this.rootElement.firstChild),(0,_.isRootInstance)(this)&&(0,n._injectProductInfo)(t.licenseKey,this.rootWrapperElement);this.guid=`ht_${(0,v.randomString)()}`,B.set(this.guid,this),this.columnIndexMapper=new b.IndexMapper,this.rowIndexMapper=new b.IndexMapper,this.columnIndexMapper.addLocalHook("indexesSequenceChange",e=>{Y.runHooks("afterColumnSequenceChange",e)}),this.rowIndexMapper.addLocalHook("indexesSequenceChange",e=>{Y.runHooks("afterRowSequenceChange",e)}),j.addEventListener(this.rootDocument.documentElement,"compositionstart",e=>{Y.runHooks("beforeCompositionStart",e)}),G=new S.default(Y);const re=(0,f.staticRegister)(this.guid);re.register("cellRangeMapper",new W.CellRangeToRenderableMapper({rowIndexMapper:this.rowIndexMapper,columnIndexMapper:this.columnIndexMapper})),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid);let ne=new N.Selection(oe,{rowIndexMapper:Y.rowIndexMapper,columnIndexMapper:Y.columnIndexMapper,countCols:()=>Y.countCols(),countRows:()=>Y.countRows(),propToCol:e=>z.propToCol(e),isEditorOpened:()=>!!Y.getActiveEditor()&&Y.getActiveEditor().isOpened(),countRenderableColumns:()=>this.view.countRenderableColumns(),countRenderableRows:()=>this.view.countRenderableRows(),countRowHeaders:()=>this.countRowHeaders(),countColHeaders:()=>this.countColHeaders(),countRenderableRowsInRange:function(){return s.view.countRenderableRowsInRange(...arguments)},countRenderableColumnsInRange:function(){return s.view.countRenderableColumnsInRange(...arguments)},getShortcutManager:()=>Y.getShortcutManager(),createCellCoords:(e,t)=>Y._createCellCoords(e,t),createCellRange:(e,t,o)=>Y._createCellRange(e,t,o),visualToRenderableCoords:e=>{const{row:t,col:o}=e;return Y._createCellCoords(t>=0?Y.rowIndexMapper.getRenderableFromVisualIndex(t):t,o>=0?Y.columnIndexMapper.getRenderableFromVisualIndex(o):o)},renderableToVisualCoords:e=>{const{row:t,col:o}=e;return Y._createCellCoords(t>=0?Y.rowIndexMapper.getVisualFromRenderableIndex(t):t,o>=0?Y.columnIndexMapper.getVisualFromRenderableIndex(o):o)},findFirstNonHiddenRenderableRow:(e,t)=>{const o=t>e?1:-1,s=Math.min(e,t),i=Math.max(e,t),r=Y.rowIndexMapper.getNearestNotHiddenIndex(e,o);return null===r||1===o&&r>i||-1===o&&r<s?null:r>=0?Y.rowIndexMapper.getRenderableFromVisualIndex(r):r},findFirstNonHiddenRenderableColumn:(e,t)=>{const o=t>e?1:-1,s=Math.min(e,t),i=Math.max(e,t),r=Y.columnIndexMapper.getNearestNotHiddenIndex(e,o);return null===r||1===o&&r>i||-1===o&&r<s?null:r>=0?Y.columnIndexMapper.getRenderableFromVisualIndex(r):r},isDisabledCellSelection:(e,t)=>e<0||t<0?Y.getSettings().disableVisualSelection:Y.getCellMeta(e,t).disableVisualSelection});this.selection=ne;const le=e=>{let{hiddenIndexesChanged:t}=e;this.forceFullRender=!0,t&&this.selection.commit()};function ae(e,t){const o="className"===e?Y.rootElement:Y.table;if(Q)(0,i.addClass)(o,t);else{let s=[],r=[];se[e]&&(s=Array.isArray(se[e])?se[e]:(0,d.stringToArray)(se[e])),t&&(r=Array.isArray(t)?t:(0,d.stringToArray)(t));const n=(0,d.getDifferenceOfArrays)(s,r),l=(0,d.getDifferenceOfArrays)(r,s);n.length&&(0,i.removeClass)(o,n),l.length&&(0,i.addClass)(o,l)}se[e]=t}function he(){let e=!1;return{validatorsInQueue:0,valid:!0,addValidatorToQueue(){this.validatorsInQueue+=1,e=!1},removeValidatorFormQueue(){this.validatorsInQueue=this.validatorsInQueue-1<0?0:this.validatorsInQueue-1,this.checkIfQueueIsEmpty()},onQueueEmpty(){},checkIfQueueIsEmpty(){0===this.validatorsInQueue&&!1===e&&(e=!0,this.onQueueEmpty(this.valid))}}}function ce(e){const t=e.replace(",",".");return!1===isNaN(parseFloat(t))?parseFloat(t):e}function ue(e,t,o){if(!e.length)return void o();const s=Y.getActiveEditor(),i=new he;let r=!0;i.onQueueEmpty=()=>{s&&r&&s.cancelChanges(),o()};for(let o=e.length-1;o>=0;o--){const[s,n]=e[o],l=z.propToCol(n);let a;a=Number.isInteger(l)?Y.getCellMeta(s,l):{...Object.getPrototypeOf(oe),...oe},Y.getCellValidator(a)&&(i.addValidatorToQueue(),Y.validateCell(e[o][3],a,function(t,o){return function(s){if("boolean"!=typeof s)throw new Error("Validation error: result is not boolean");!1===s&&!1===o.allowInvalid&&(r=!1,e.splice(t,1),o.valid=!0),i.removeValidatorFormQueue()}}(o,a),t))}i.checkIfQueueIsEmpty()}function de(e,t){for(let t=e.length-1;t>=0;t--){let o=!1;if(null!==e[t]){if(null!==e[t][2]&&void 0!==e[t][2]||null!==e[t][3]&&void 0!==e[t][3]){if(oe.allowInsertRow)for(;e[t][0]>Y.countRows()-1;){const{delta:e}=z.createRow(void 0,void 0,{source:"auto"});if(0===e){o=!0;break}}if("array"===Y.dataType&&(!oe.columns||0===oe.columns.length)&&oe.allowInsertColumn)for(;z.propToCol(e[t][1])>Y.countCols()-1;){const{delta:e}=z.createCol(void 0,void 0,{source:"auto"});if(0===e){o=!0;break}}o||z.set(e[t][0],e[t][1],e[t][3])}}else e.splice(t,1)}if(e.length>0){$.adjustRowsAndCols(),Y.runHooks("beforeChangeRender",e,t),K.closeEditor(),Y.render(),K.prepareEditor(),Y.view.adjustElementsSize(),Y.runHooks("afterChange",e,t||"edit");const o=Y.getActiveEditor();o&&(0,n.isDefined)(o.refreshValue)&&o.refreshValue()}else Y.render()}function ge(e,t,o){return Array.isArray(e)?e:[[e,t,o]]}function fe(e,t){const o=Y.runHooks("beforeChange",e,t||"edit"),s=e.filter(e=>null!==e);var i;if(!1===o||0===s.length)return null===(i=Y.getActiveEditor())||void 0===i||i.cancelChanges(),[];for(let e=s.length-1;e>=0;e--){const[t,o,,i]=s[e],r=z.propToCol(o);let l;l=Number.isInteger(r)?Y.getCellMeta(t,r):{...Object.getPrototypeOf(oe),...oe};const{type:a,checkedTemplate:h,uncheckedTemplate:c}=l;if("numeric"===a&&"string"==typeof i&&(0,y.isNumericLike)(i)&&(s[e][3]=ce(i)),"checkbox"===a){const t=(0,n.stringify)(i),o=t===(0,n.stringify)(h),r=t===(0,n.stringify)(c);(o||r)&&(s[e][3]=o?h:c)}}return s}this.columnIndexMapper.addLocalHook("cacheUpdated",le),this.rowIndexMapper.addLocalHook("cacheUpdated",le),this.selection.addLocalHook("afterSetRangeEnd",(e,t)=>{const o=(0,c.createObjectPropListener)(!1),s=this.selection.getSelectedRange(),{from:r,to:n}=s.current(),l=s.size()-1;this.runHooks("afterSelection",r.row,r.col,n.row,n.col,o,l),this.runHooks("afterSelectionByProp",r.row,Y.colToProp(r.col),n.row,Y.colToProp(n.col),o,l),t&&(!o.isTouched()||o.isTouched()&&!o.value)&&q.scrollTo(e);const a=ne.isSelectedByRowHeader(),h=ne.isSelectedByColumnHeader();a&&h?(0,i.addClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]):a?((0,i.removeClass)(this.rootElement,"ht__selection--columns"),(0,i.addClass)(this.rootElement,"ht__selection--rows")):h?((0,i.removeClass)(this.rootElement,"ht__selection--rows"),(0,i.addClass)(this.rootElement,"ht__selection--columns")):(0,i.removeClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]),["shift","refresh"].includes(ne.getSelectionSource())||K.closeEditor(null),"refresh"!==ne.getSelectionSource()&&(Y.view.render(),K.prepareEditor())}),this.selection.addLocalHook("beforeSetFocus",e=>{this.runHooks("beforeSelectionFocusSet",e.row,e.col)}),this.selection.addLocalHook("afterSetFocus",e=>{const t=(0,c.createObjectPropListener)(!1);this.runHooks("afterSelectionFocusSet",e.row,e.col,t),(!t.isTouched()||t.isTouched()&&!t.value)&&q.scrollTo(e),K.closeEditor(),Y.view.render(),K.prepareEditor()}),this.selection.addLocalHook("afterSelectionFinished",e=>{const t=e.length-1,{from:o,to:s}=e[t];this.runHooks("afterSelectionEnd",o.row,o.col,s.row,s.col,t),this.runHooks("afterSelectionEndByProp",o.row,Y.colToProp(o.col),s.row,Y.colToProp(s.col),t),"refresh"===ne.getSelectionSource()&&(Y.view.render(),K.prepareEditor())}),this.selection.addLocalHook("afterIsMultipleSelection",e=>{const t=this.runHooks("afterIsMultipleSelection",e.value);e.value&&(e.value=t)}),this.selection.addLocalHook("afterDeselect",()=>{K.closeEditor(),Y.view.render(),(0,i.removeClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]),this.runHooks("afterDeselect")}),this.selection.addLocalHook("beforeHighlightSet",()=>this.runHooks("beforeSelectionHighlightSet")).addLocalHook("beforeSetRangeStart",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("beforeSetRangeStart",...t)}).addLocalHook("beforeSetRangeStartOnly",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("beforeSetRangeStartOnly",...t)}).addLocalHook("beforeSetRangeEnd",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("beforeSetRangeEnd",...t)}).addLocalHook("beforeSelectColumns",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("beforeSelectColumns",...t)}).addLocalHook("afterSelectColumns",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("afterSelectColumns",...t)}).addLocalHook("beforeSelectRows",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("beforeSelectRows",...t)}).addLocalHook("afterSelectRows",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("afterSelectRows",...t)}).addLocalHook("beforeModifyTransformStart",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("modifyTransformStart",...t)}).addLocalHook("afterModifyTransformStart",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("afterModifyTransformStart",...t)}).addLocalHook("beforeModifyTransformFocus",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("modifyTransformFocus",...t)}).addLocalHook("afterModifyTransformFocus",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("afterModifyTransformFocus",...t)}).addLocalHook("beforeModifyTransformEnd",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("modifyTransformEnd",...t)}).addLocalHook("afterModifyTransformEnd",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("afterModifyTransformEnd",...t)}).addLocalHook("beforeRowWrap",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("beforeRowWrap",...t)}).addLocalHook("beforeColumnWrap",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("beforeColumnWrap",...t)}).addLocalHook("insertRowRequire",e=>this.alter("insert_row_above",e,1,"auto")).addLocalHook("insertColRequire",e=>this.alter("insert_col_start",e,1,"auto")),$={alter(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;const r=e=>{if(0===e.length)return[];const t=[...e];t.sort((e,t)=>{let[o]=e,[s]=t;return o===s?0:o>s?1:-1});return(0,d.arrayReduce)(t,(e,t)=>{let[o,s]=t;const i=e[e.length-1],[r,n]=i,l=r+n;if(o<=l){const e=Math.max(s-(l-o),0);i[1]+=e}else e.push([o,s]);return e},[t[0]])};switch(e){case"insert_row_below":case"insert_row_above":const i=Y.countSourceRows();if(oe.maxRows===i)return;const l="insert_row_below"===e?"below":"above";t=null!=t?t:"below"===l?i:0;const{delta:a,startPhysicalIndex:h}=z.createRow(t,o,{source:s,mode:l});ne.shiftRows(Y.toVisualRow(h),a);break;case"insert_col_start":case"insert_col_end":const c="insert_col_end"===e?"end":"start";t=null!=t?t:"end"===c?Y.countSourceCols():0;const{delta:u,startPhysicalIndex:g}=z.createCol(t,o,{source:s,mode:c});if(u){if(Array.isArray(oe.colHeaders)){const e=[Y.toVisualColumn(g),0];e.length+=u,Array.prototype.splice.apply(oe.colHeaders,e)}ne.shiftColumns(Y.toVisualColumn(g),u)}break;case"remove_row":const f=e=>{let t=0;(0,d.arrayEach)(e,e=>{let[o,i]=e;const r=(0,n.isEmpty)(o)?Y.countRows()-1:Math.max(o-t,0);Number.isInteger(o)&&(o=Math.max(o-t,0));if(!z.removeRow(o,i,s))return;if(ne.isSelected()){const{row:e}=Y.getSelectedRangeLast().highlight;e>=o&&e<=o+i-1&&K.closeEditor(!0)}const l=Y.countRows(),a=oe.fixedRowsTop;a>=r+1&&(oe.fixedRowsTop-=Math.min(i,a-r));const h=oe.fixedRowsBottom;if(h&&r>=l-h&&(oe.fixedRowsBottom-=Math.min(i,h)),0===l)ne.deselect();else if("ContextMenu.removeRow"===s){const e=ne.getSelectedRange(),t=e.pop();e.clear().set(t.from).current().setTo(t.to),ne.refresh()}else ne.shiftRows(o,-i);t+=i})};Array.isArray(t)?f(r(t)):f([[t,o]]);break;case"remove_col":const p=e=>{let t=0;(0,d.arrayEach)(e,e=>{let[o,i]=e;const r=(0,n.isEmpty)(o)?Y.countCols()-1:Math.max(o-t,0);let l=Y.toPhysicalColumn(r);Number.isInteger(o)&&(o=Math.max(o-t,0));if(!z.removeCol(o,i,s))return;if(ne.isSelected()){const{col:e}=Y.getSelectedRangeLast().highlight;e>=o&&e<=o+i-1&&K.closeEditor(!0)}if(0===Y.countCols())ne.deselect();else if("ContextMenu.removeColumn"===s){const e=ne.getSelectedRange(),t=e.pop();e.clear().set(t.from).current().setTo(t.to),ne.refresh()}else ne.shiftColumns(o,-i);const a=oe.fixedColumnsStart;a>=r+1&&(oe.fixedColumnsStart-=Math.min(i,a-r)),Array.isArray(oe.colHeaders)&&(void 0===l&&(l=-1),oe.colHeaders.splice(l,i)),t+=i})};Array.isArray(t)?p(r(t)):p([[t,o]]);break;default:throw new Error(`There is no such action "${e}"`)}i||$.adjustRowsAndCols(),Y.view.render(),Y.view.adjustElementsSize()},adjustRowsAndCols(){const e=oe.minRows,t=oe.minSpareRows,o=oe.minCols,s=oe.minSpareCols;if(e){const t=Y.countRows();t<e&&z.createRow(t,e-t,{source:"auto"})}if(t){const e=Y.countEmptyRows(!0);if(e<t){const o=t-e,s=Math.min(o,oe.maxRows-Y.countSourceRows());z.createRow(Y.countRows(),s,{source:"auto"})}}{let e;(o||s)&&(e=Y.countEmptyCols(!0));let t=Y.countCols();if(o&&!oe.columns&&t<o){const s=o-t;e+=s,z.createCol(t,s,{source:"auto"})}if(s&&!oe.columns&&"array"===Y.dataType&&e<s){t=Y.countCols();const o=s-e,i=Math.min(o,oe.maxCols-t);z.createCol(t,i,{source:"auto"})}}},populateFromArray(e,t,o,s,i){let r,n,l,a;const h=[],u={},g=[],f=e.row,p=e.col;if(n=t.length,0===n)return!1;let m=0,w=0;switch((0,c.isObject)(o)&&(m=o.col-p+1,w=o.row-f+1),i){case"shift_down":const i=(0,d.pivot)(t),C=i.length,v=Math.max(C,m),y=Y.getData().slice(f),E=(0,d.pivot)(y).slice(p,p+v);for(l=0;l<v;l+=1)if(l<C){for(r=0,n=i[l].length;r<w-n;r+=1)i[l].push(i[l][r%n]);l<E.length?g.push(i[l].concat(E[l])):g.push(i[l].concat(new Array(y.length).fill(null)))}else g.push(i[l%C].concat(E[l]));Y.populateFromArray(f,p,(0,d.pivot)(g));break;case"shift_right":const S=t.length,R=Math.max(S,w),b=Y.getData().slice(f).map(e=>e.slice(p));for(r=0;r<R;r+=1)if(r<S){for(l=0,a=t[r].length;l<m-a;l+=1)t[r].push(t[r][l%a]);if(r<b.length)for(let e=0;e<b[r].length;e+=1)t[r].push(b[r][e]);else t[r].push(...new Array(b[0].length).fill(null))}else t.push(t[r%n].slice(0,R).concat(b[r]));Y.populateFromArray(f,p,t);break;default:u.row=e.row,u.col=e.col;let _,T=0,M=0,I=!0;const O=function(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const s=t[e%t.length];return null!==o?s[o%s.length]:s},N=t.length,A=o?o.row-e.row+1:0;for(n=o?A:Math.max(N,A),r=0;r<n&&!(o&&u.row>o.row&&A>N||!oe.allowInsertRow&&u.row>Y.countRows()-1||u.row>=oe.maxRows);r++){const t=r-T,i=O(t).length,d=o?o.col-e.col+1:0;if(a=o?d:Math.max(i,d),u.col=e.col,_=Y.getCellMeta(u.row,u.col),"CopyPaste.paste"!==s&&"Autofill.fill"!==s||!_.skipRowOnPaste){for(M=0,l=0;l<a&&!(o&&u.col>o.col&&d>i||!oe.allowInsertColumn&&u.col>Y.countCols()-1||u.col>=oe.maxCols);l++){if(_=Y.getCellMeta(u.row,u.col),("CopyPaste.paste"===s||"Autofill.fill"===s)&&_.skipColumnOnPaste){M+=1,u.col+=1,a+=1;continue}if(_.readOnly&&"UndoRedo.undo"!==s){u.col+=1;continue}let e=O(t,l-M),o=Y.getDataAtCell(u.row,u.col);if(null!==e&&"object"==typeof e)if(Array.isArray(e)&&null===o&&(o=[]),null===o||"object"!=typeof o)I=!1;else{const t=(0,c.duckSchema)(Array.isArray(o)?o:o[0]||o),s=(0,c.duckSchema)(Array.isArray(e)?e:e[0]||e);(0,c.isObjectEqual)(t,s)||Array.isArray(t)&&Array.isArray(s)?e=(0,c.deepClone)(e):I=!1}else null!==o&&"object"==typeof o&&(I=!1);I&&h.push([u.row,u.col,e]),I=!0,u.col+=1}u.row+=1}else T+=1,u.row+=1,n+=1}Y.setDataAtCell(h,null,null,s||"populateFromArray")}}},this.init=function(){G.setData(oe.data),Y.runHooks("beforeInit"),((0,l.isMobileBrowser)()||(0,l.isIpadOS)())&&(0,i.addClass)(Y.rootElement,"mobile"),this.updateSettings(t,!0),this.view=new E.default(this);const e=oe.themeName||(0,D.getThemeClassName)(Y.rootContainer);Y.useTheme(e),K=a.default.getInstance(Y,oe,ne),q=(0,H.createViewportScroller)(Y),X=new u.FocusManager(Y),(0,_.isRootInstance)(this)&&(0,H.installFocusCatcher)(Y),Y.runHooks("init"),this.render(),Q&&null===Y.rootElement.offsetParent&&(0,i.observeVisibilityChangeOnce)(Y.rootElement,()=>{Y.view._wt.wtOverlays.updateLastSpreaderSize(),Y.render(),Y.view.adjustElementsSize()}),"object"==typeof Q&&(Y.runHooks("afterChange",Q[0],Q[1]),Q=!1),Y.runHooks("afterInit")},this._createCellCoords=function(e,t){return Y.view._wt.createCellCoords(e,t)},this._createCellRange=function(e,t,o){return Y.view._wt.createCellRange(e,t,o)},this.validateCell=function(e,t,o,s){let i=Y.getCellValidator(t);function l(e){if(!(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])||!0===t.hidden)return void o(e);const s=t.visualCol,i=t.visualRow,r=Y.getCell(i,s,!0);if(r&&"TH"!==r.nodeName){const e=Y.rowIndexMapper.getRenderableFromVisualIndex(i),t=Y.columnIndexMapper.getRenderableFromVisualIndex(s);Y.view._wt.getSetting("cellRenderer",e,t,r)}o(e)}var a;(0,n.isRegExp)(i)&&(a=i,i=function(e,t){t(a.test(e))}),(0,r.isFunction)(i)?(e=Y.runHooks("beforeValidate",e,t.visualRow,t.prop,s),Y._registerImmediate(()=>{i.call(t,e,o=>{Y&&(o=Y.runHooks("afterValidate",o,e,t.visualRow,t.prop,s),t.valid=o,l(o),Y.runHooks("postAfterValidate",o,e,t.visualRow,t.prop,s))})})):Y._registerImmediate(()=>{t.valid=!0,l(t.valid,!1)})},this.setDataAtCell=function(e,t,o,s){const i=ge(e,t,o),r=[];let n,l,a,h=s;for(n=0,l=i.length;n<l;n++){if("object"!=typeof i[n])throw new Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof i[n][1])throw new Error("Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`");a=i[n][1]>=this.countCols()?i[n][1]:z.colToProp(i[n][1]),r.push([i[n][0],a,G.getAtCell(this.toPhysicalRow(i[n][0]),i[n][1]),i[n][2]])}h||"object"!=typeof e||(h=t);const c=fe(r,h);Y.runHooks("afterSetDataAtCell",c,h),ue(c,h,()=>{de(c,h)})},this.setDataAtRowProp=function(e,t,o,s){const i=ge(e,t,o),r=[];let n,l,a=s;for(n=0,l=i.length;n<l;n++)r.push([i[n][0],i[n][1],G.getAtCell(this.toPhysicalRow(i[n][0]),i[n][1]),i[n][2]]);a||"object"!=typeof e||(a=t);const h=fe(r,s);Y.runHooks("afterSetDataAtRowProp",h,a),ue(h,a,()=>{de(h,a)})},this.listen=function(){Y&&!Y.isListening()&&(B.forEach(e=>{Y!==e&&e.unlisten()}),F=Y.guid,Y.runHooks("afterListen"))},this.unlisten=function(){this.isListening()&&(F=null,Y.runHooks("afterUnlisten"))},this.isListening=function(){return F===Y.guid},this.destroyEditor=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];K.closeEditor(e),Y.view.render(),t&&ne.isSelected()&&K.prepareEditor()},this.populateFromArray=function(e,t,o,s,i,r,n){if("object"!=typeof o||"object"!=typeof o[0])throw new Error("populateFromArray parameter `input` must be an array of arrays");const l="number"==typeof s?Y._createCellCoords(s,i):null;return $.populateFromArray(Y._createCellCoords(e,t),o,l,r,n)},this.spliceCol=function(e,t,o){for(var s=arguments.length,i=new Array(s>3?s-3:0),r=3;r<s;r++)i[r-3]=arguments[r];return z.spliceCol(e,t,o,...i)},this.spliceRow=function(e,t,o){for(var s=arguments.length,i=new Array(s>3?s-3:0),r=3;r<s;r++)i[r-3]=arguments[r];return z.spliceRow(e,t,o,...i)},this.getSelected=function(){if(ne.isSelected())return(0,d.arrayMap)(ne.getSelectedRange(),e=>{let{from:t,to:o}=e;return[t.row,t.col,o.row,o.col]})},this.getSelectedLast=function(){const e=this.getSelected();let t;return e&&e.length>0&&(t=e[e.length-1]),t},this.getSelectedRange=function(){if(ne.isSelected())return Array.from(ne.getSelectedRange())},this.getSelectedRangeLast=function(){const e=this.getSelectedRange();let t;return e&&e.length>0&&(t=e[e.length-1]),t},this.emptySelectedCells=function(e){if(!ne.isSelected()||0===this.countRows()||0===this.countCols())return;const t=[];(0,d.arrayEach)(ne.getSelectedRange(),e=>{if(e.isSingleHeader())return;const o=e.getTopStartCorner(),s=e.getBottomEndCorner();(0,y.rangeEach)(o.row,s.row,e=>{(0,y.rangeEach)(o.col,s.col,o=>{this.getCellMeta(e,o).readOnly||t.push([e,o,null])})})}),t.length>0&&this.setDataAtCell(t,e)},this.isRenderSuspended=function(){return this.renderSuspendedCounter>0},this.suspendRender=function(){this.renderSuspendedCounter+=1},this.resumeRender=function(){const e=this.renderSuspendedCounter-1;this.renderSuspendedCounter=Math.max(e,0),this.isRenderSuspended()||e!==this.renderSuspendedCounter||Y.view.render()},this.render=function(){this.view&&(this.forceFullRender=!0,this.isRenderSuspended()||Y.view.render())},this.batchRender=function(e){this.suspendRender();const t=e();return this.resumeRender(),t},this.isExecutionSuspended=function(){return this.executionSuspendedCounter>0},this.suspendExecution=function(){this.executionSuspendedCounter+=1,this.columnIndexMapper.suspendOperations(),this.rowIndexMapper.suspendOperations()},this.resumeExecution=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.executionSuspendedCounter-1;this.executionSuspendedCounter=Math.max(t,0),(!this.isExecutionSuspended()&&t===this.executionSuspendedCounter||e)&&(this.columnIndexMapper.resumeOperations(),this.rowIndexMapper.resumeOperations())},this.batchExecution=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.suspendExecution();const o=e();return this.resumeExecution(t),o},this.batch=function(e){this.suspendRender(),this.suspendExecution();const t=e();return this.resumeExecution(),this.resumeRender(),t},this.refreshDimensions=function(){if(!Y.view)return;const e=Y.view,{width:t,height:o}=e.getLastSize(),{width:s,height:i}=Y.rootElement.getBoundingClientRect(),r=s!==t||i!==o;!1===Y.runHooks("beforeRefreshDimensions",{width:t,height:o},{width:s,height:i},r)||((r||e._wt.wtOverlays.scrollableElement===Y.rootWindow)&&(e.setLastSize(s,i),Y.render(),e.adjustElementsSize()),Y.runHooks("afterRefreshDimensions",{width:t,height:o},{width:s,height:i},r))},this.updateData=function(e,t){(0,A.replaceData)(e,e=>{z=e},e=>{z=e,Y.columnIndexMapper.fitToLength(this.getInitialColumnCount()),Y.rowIndexMapper.fitToLength(this.countSourceRows()),$.adjustRowsAndCols(),ne.refresh()},{hotInstance:Y,dataMap:z,dataSource:G,internalSource:"updateData",source:t,metaManager:te,firstRun:Q})},this.loadData=function(e,t){(0,A.replaceData)(e,e=>{z=e},()=>{te.clearCellsCache(),Y.initIndexMappers(),$.adjustRowsAndCols(),ne.refresh(),Q&&(Q=[null,"loadData"])},{hotInstance:Y,dataMap:z,dataSource:G,internalSource:"loadData",source:t,metaManager:te,firstRun:Q})},this.getInitialColumnCount=function(){const e=oe.columns;let t=0;if(Array.isArray(e))t=e.length;else if((0,r.isFunction)(e))if("array"===Y.dataType){const o=this.countSourceCols();for(let s=0;s<o;s+=1)e(s)&&(t+=1)}else"object"!==Y.dataType&&"function"!==Y.dataType||(t=z.colToPropCache.length);else if((0,n.isDefined)(oe.dataSchema)){const e=z.getSchema();t=Array.isArray(e)?e.length:(0,c.deepObjectSize)(e)}else t=this.countSourceCols();return t},this.initIndexMappers=function(){this.columnIndexMapper.initToLength(this.getInitialColumnCount()),this.rowIndexMapper.initToLength(this.countSourceRows())},this.getData=function(e,t,o,s){return(0,n.isUndefined)(e)?z.getAll():z.getRange(Y._createCellCoords(e,t),Y._createCellCoords(o,s),z.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,o,s){return z.getCopyableText(Y._createCellCoords(e,t),Y._createCellCoords(o,s))},this.getCopyableData=function(e,t){return z.getCopyable(e,z.colToProp(t))},this.getSchema=function(){return z.getSchema()},this.updateSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=(Q?Y.loadData:Y.updateData).bind(this);let s,i,l=!1;if((0,n.isDefined)(e.rows))throw new Error('The "rows" setting is no longer supported. Do you mean startRows, minRows or maxRows?');if((0,n.isDefined)(e.cols))throw new Error('The "cols" setting is no longer supported. Do you mean startCols, minCols or maxCols?');if((0,n.isDefined)(e.ganttChart))throw new Error('Since 8.0.0 the "ganttChart" setting is no longer supported.');for(s in e.language&&function(e){const t=(0,O.normalizeLanguageCode)(e);(0,I.hasLanguageDictionary)(t)?(Y.runHooks("beforeLanguageChange",t),se.language=t,Y.runHooks("afterLanguageChange",t)):(0,O.warnUserAboutLanguageRegistration)(e)}(e.language),e)if("data"===s||"language"===s);else if("className"===s)ae("className",e.className);else if("tableClassName"===s&&Y.table)ae("tableClassName",e.tableClassName),Y.view._wt.wtOverlays.syncOverlayTableClassNames();else if(M.Hooks.getSingleton().isRegistered(s)||M.Hooks.getSingleton().isDeprecated(s)){const t=e[s];(0,r.isFunction)(t)?(M.Hooks.getSingleton().addAsFixed(s,t,Y),oe[s]=t):Array.isArray(t)&&(M.Hooks.getSingleton().add(s,t,Y),oe[s]=t)}else!t&&(0,c.hasOwnProperty)(e,s)&&(se[s]=e[s]);void 0===e.data&&void 0===oe.data?o(null,"updateSettings"):void 0!==e.data?o(e.data,"updateSettings"):void 0!==e.columns&&(z.createMap(),Y.initIndexMappers());const a=Y.countCols(),h=oe.columns;if(h&&(0,r.isFunction)(h)&&(l=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||te.clearCache(),a>0)for(s=0,i=0;s<a;s++){if(h){const e=l?h(s):h[i];e&&te.updateColumnMeta(i,e)}i+=1}(0,n.isDefined)(e.cell)&&(0,c.objectEach)(e.cell,e=>{Y.setCellMetaObject(e.row,e.col,e)}),Y.runHooks("afterCellMetaReset");let u=Y.rootElement.style.height;""!==u&&(u=parseInt(Y.rootElement.style.height,10));let d=e.height;if((0,r.isFunction)(d)&&(d=d()),t){Y.rootElement.getAttribute("style")&&Y.rootElement.setAttribute("data-initialstyle",Y.rootElement.getAttribute("style"))}if(null===d){const e=Y.rootElement.getAttribute("data-initialstyle");e&&(e.indexOf("height")>-1||e.indexOf("overflow")>-1)?Y.rootElement.setAttribute("style",e):(Y.rootElement.style.height="",Y.rootElement.style.overflow="")}else void 0!==d&&(Y.rootElement.style.height=isNaN(d)?`${d}`:`${d}px`,Y.rootElement.style.overflow="hidden");if(void 0!==e.width){let t=e.width;(0,r.isFunction)(t)&&(t=t()),Y.rootElement.style.width=isNaN(t)?`${t}`:`${t}px`}if(!t){if(Y.view){Y.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked(),Y.view._wt.exportSettingsAsClassNames();const t=Y.getCurrentThemeName();(0,c.hasOwnProperty)(e,"themeName")&&t!==e.themeName&&Y.useTheme(e.themeName)}Y.runHooks("afterUpdateSettings",e)}$.adjustRowsAndCols(),Y.view&&!Q&&(Y.render(),Y.view._wt.wtOverlays.adjustElementsSize()),t||!Y.view||""!==u&&""!==d&&void 0!==d||u===d||Y.view._wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){const e=Y.getSelectedLast();if(oe.getValue){if((0,r.isFunction)(oe.getValue))return oe.getValue.call(Y);if(e)return Y.getData()[e[0][0]][oe.getValue]}else if(e)return Y.getDataAtCell(e[0],e[1])},this.getSettings=function(){return oe},this.clear=function(){this.selectAll(),this.emptySelectedCells()},this.alter=function(e,t,o,s,i){$.alter(e,t,o,s,i)},this.getCell=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=t,i=e;if(t>=0){if(this.columnIndexMapper.isHidden(this.toPhysicalColumn(t)))return null;s=this.columnIndexMapper.getRenderableFromVisualIndex(t)}if(e>=0){if(this.rowIndexMapper.isHidden(this.toPhysicalRow(e)))return null;i=this.rowIndexMapper.getRenderableFromVisualIndex(e)}return null===i||null===s||void 0===i||void 0===s?null:Y.view.getCellAtCoords(Y._createCellCoords(i,s),o)},this.getCoords=function(e){const t=this.view._wt.wtTable.getCoords(e);if(null===t)return null;const{row:o,col:s}=t;let i=o,r=s;return o>=0&&(i=this.rowIndexMapper.getVisualFromRenderableIndex(o)),s>=0&&(r=this.columnIndexMapper.getVisualFromRenderableIndex(s)),Y._createCellCoords(i,r)},this.colToProp=function(e){return z.colToProp(e)},this.propToCol=function(e){return z.propToCol(e)},this.toVisualRow=e=>this.rowIndexMapper.getVisualFromPhysicalIndex(e),this.toVisualColumn=e=>this.columnIndexMapper.getVisualFromPhysicalIndex(e),this.toPhysicalRow=e=>this.rowIndexMapper.getPhysicalFromVisualIndex(e),this.toPhysicalColumn=e=>this.columnIndexMapper.getPhysicalFromVisualIndex(e),this.getDataAtCell=function(e,t){return z.get(e,z.colToProp(t))},this.getDataAtRowProp=function(e,t){return z.get(e,t)},this.getDataAtCol=function(e){const t=[],o=z.getRange(Y._createCellCoords(0,e),Y._createCellCoords(oe.data.length-1,e),z.DESTINATION_RENDERER);for(let e=0;e<o.length;e+=1)for(let s=0;s<o[e].length;s+=1)t.push(o[e][s]);return t},this.getDataAtProp=function(e){const t=[],o=z.getRange(Y._createCellCoords(0,z.propToCol(e)),Y._createCellCoords(oe.data.length-1,z.propToCol(e)),z.DESTINATION_RENDERER);for(let e=0;e<o.length;e+=1)for(let s=0;s<o[e].length;s+=1)t.push(o[e][s]);return t},this.getSourceData=function(e,t,o,s){let i;return i=void 0===e?G.getData():G.getByRange(Y._createCellCoords(e,t),Y._createCellCoords(o,s)),i},this.getSourceDataArray=function(e,t,o,s){let i;return i=void 0===e?G.getData(!0):G.getByRange(Y._createCellCoords(e,t),Y._createCellCoords(o,s),!0),i},this.getSourceDataAtCol=function(e){return G.getAtColumn(e)},this.setSourceDataAtCell=function(e,t,o,s){const i=ge(e,t,o),r=this.hasHook("afterSetSourceDataAtCell"),l=[];r&&(0,d.arrayEach)(i,e=>{let[t,o,s]=e;l.push([t,o,G.getAtCell(t,o),s])}),(0,d.arrayEach)(i,e=>{let[t,o,s]=e;G.setAtCell(t,o,s)}),r&&this.runHooks("afterSetSourceDataAtCell",l,s),this.render();const a=Y.getActiveEditor();a&&(0,n.isDefined)(a.refreshValue)&&a.refreshValue()},this.getSourceDataAtRow=function(e){return G.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return G.getAtCell(e,t)},this.getDataAtRow=function(e){return z.getRange(Y._createCellCoords(e,0),Y._createCellCoords(e,this.countCols()-1),z.DESTINATION_RENDERER)[0]||[]},this.getDataType=function(e,t,o,s){const i=void 0===e?[0,0,this.countRows(),this.countCols()]:[e,t,o,s],[r,n]=i;let[,,l,a]=i,h=null,c=null;void 0===l&&(l=r),void 0===a&&(a=n);let u="mixed";return(0,y.rangeEach)(Math.max(Math.min(r,l),0),Math.max(r,l),e=>{let t=!0;return(0,y.rangeEach)(Math.max(Math.min(n,a),0),Math.max(n,a),o=>{const s=this.getCellMeta(e,o);return c=s.type,h?t=h===c:h=c,t}),u=t?c:"mixed",t}),u},this.removeCellMeta=function(e,t,o){const[s,i]=[this.toPhysicalRow(e),this.toPhysicalColumn(t)];let r=te.getCellMetaKeyValue(s,i,o);!1!==Y.runHooks("beforeRemoveCellMeta",e,t,o,r)&&(te.removeCellMeta(s,i,o),Y.runHooks("afterRemoveCellMeta",e,t,o,r)),r=null},this.spliceCellsMeta=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(var o=arguments.length,s=new Array(o>2?o-2:0),i=2;i<o;i++)s[i-2]=arguments[i];if(s.length>0&&!Array.isArray(s[0]))throw new Error("The 3rd argument (cellMetaRows) has to be passed as an array of cell meta objects array.");t>0&&te.removeRow(this.toPhysicalRow(e),t),s.length>0&&(0,d.arrayEach)(s.reverse(),t=>{te.createRow(this.toPhysicalRow(e)),(0,d.arrayEach)(t,(t,o)=>this.setCellMetaObject(e,o,t))}),Y.render()},this.setCellMetaObject=function(e,t,o){"object"==typeof o&&(0,c.objectEach)(o,(o,s)=>{this.setCellMeta(e,t,s,o)})},this.setCellMeta=function(e,t,o,s){if(!1===Y.runHooks("beforeSetCellMeta",e,t,o,s))return;let i=e,r=t;e<this.countRows()&&(i=this.toPhysicalRow(e)),t<this.countCols()&&(r=this.toPhysicalColumn(t)),te.setCellMeta(i,r,o,s),Y.runHooks("afterSetCellMeta",e,t,o,s)},this.getCellsMeta=function(){return te.getCellsMeta()},this.getCellMeta=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{skipMetaExtension:!1},s=this.toPhysicalRow(e),i=this.toPhysicalColumn(t);return null===s&&(s=e),null===i&&(i=t),te.getCellMeta(s,i,{visualRow:e,visualColumn:t,...o})},this.getColumnMeta=function(e){return te.getColumnMeta(this.toPhysicalColumn(e))},this.getCellMetaAtRow=function(e){return te.getCellsMetaAtRow(e)},this.isColumnModificationAllowed=function(){return!("object"===Y.dataType||oe.columns)},this.getCellRenderer=function(e,t){const o="number"==typeof e?Y.getCellMeta(e,t).renderer:e.renderer;return"string"==typeof o?(0,m.getRenderer)(o):(0,n.isUndefined)(o)?(0,m.getRenderer)("text"):o},this.getCellEditor=function(e,t){const o="number"==typeof e?Y.getCellMeta(e,t).editor:e.editor;return"string"==typeof o?(0,w.getEditor)(o):(0,n.isUndefined)(o)?(0,w.getEditor)("text"):o},this.getCellValidator=function(e,t){const o="number"==typeof e?Y.getCellMeta(e,t).validator:e.validator;return"string"==typeof o?(0,C.getValidator)(o):o},this.validateCells=function(e){this._validateCells(e)},this.validateRows=function(e,t){if(!Array.isArray(e))throw new Error("validateRows parameter `rows` must be an array");this._validateCells(t,e)},this.validateColumns=function(e,t){if(!Array.isArray(e))throw new Error("validateColumns parameter `columns` must be an array");this._validateCells(t,void 0,e)},this._validateCells=function(e,t,o){const s=new he;e&&(s.onQueueEmpty=e);let i=Y.countRows()-1;for(;i>=0;){if(void 0!==t&&-1===t.indexOf(i)){i-=1;continue}let e=Y.countCols()-1;for(;e>=0;)void 0===o||-1!==o.indexOf(e)?(s.addValidatorToQueue(),Y.validateCell(Y.getDataAtCell(i,e),Y.getCellMeta(i,e),e=>{if("boolean"!=typeof e)throw new Error("Validation error: result is not boolean");!1===e&&(s.valid=!1),s.removeValidatorFormQueue()},"validateCells"),e-=1):e-=1;i-=1}s.checkIfQueueIsEmpty()},this.getRowHeader=function(e){let t=oe.rowHeaders,o=e;return void 0!==o&&(o=Y.runHooks("modifyRowHeader",o)),void 0===o?(t=[],(0,y.rangeEach)(Y.countRows()-1,e=>{t.push(Y.getRowHeader(e))})):Array.isArray(t)&&void 0!==t[o]?t=t[o]:(0,r.isFunction)(t)?t=t(o):t&&"string"!=typeof t&&"number"!=typeof t&&(t=o+1),t},this.hasRowHeaders=function(){return!!oe.rowHeaders},this.hasColHeaders=function(){if(void 0!==oe.colHeaders&&null!==oe.colHeaders)return!!oe.colHeaders;for(let e=0,t=Y.countCols();e<t;e++)if(Y.getColHeader(e))return!0;return!1},this.getColHeader=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const o=Y.runHooks("modifyColHeader",e);if(void 0===o){const e=[],t=Y.countCols();for(let o=0;o<t;o++)e.push(Y.getColHeader(o));return e}let s=oe.colHeaders;const i=Y.toPhysicalColumn(o),n=function(e){const t=[],o=Y.countCols();let s=0;for(;s<o;s++)(0,r.isFunction)(oe.columns)&&oe.columns(s)&&t.push(s);return t[e]}(i);return!1===oe.colHeaders?s=null:oe.columns&&(0,r.isFunction)(oe.columns)&&oe.columns(n)&&oe.columns(n).title?s=oe.columns(n).title:oe.columns&&oe.columns[i]&&oe.columns[i].title?s=oe.columns[i].title:Array.isArray(oe.colHeaders)&&void 0!==oe.colHeaders[i]?s=oe.colHeaders[i]:(0,r.isFunction)(oe.colHeaders)?s=oe.colHeaders(i):oe.colHeaders&&"string"!=typeof oe.colHeaders&&"number"!=typeof oe.colHeaders&&(s=(0,R.spreadsheetColumnLabel)(o)),s=Y.runHooks("modifyColumnHeaderValue",s,e,t),s},this._getColWidthFromSettings=function(e){let t;if(e>=0){t=Y.getCellMeta(0,e).width}if(void 0!==t&&t!==oe.width||(t=oe.colWidths),null!=t){switch(typeof t){case"object":t=t[e];break;case"function":t=t(e)}"string"==typeof t&&(t=parseInt(t,10))}return t},this.getColWidth=function(e,t){let o=Y._getColWidthFromSettings(e);return o=Y.runHooks("modifyColWidth",o,e,t),void 0===o&&(o=T.DEFAULT_COLUMN_WIDTH),o},this._getRowHeightFromSettings=function(e){const t=Y.stylesHandler.getDefaultRowHeight();let o=oe.rowHeights;if(null!=o){switch(typeof o){case"object":o=o[e];break;case"function":o=o(e)}"string"==typeof o&&(o=parseInt(o,10))}return null!=o&&o<t?t:o},this.getRowHeight=function(e,t){let o=Y._getRowHeightFromSettings(e);return o=Y.runHooks("modifyRowHeight",o,e,t),o},this.countSourceRows=function(){return G.countRows()},this.countSourceCols=function(){return G.countFirstRowKeys()},this.countRows=function(){return z.getLength()},this.countCols=function(){const e=oe.maxCols,t=this.columnIndexMapper.getNotTrimmedIndexesLength();return Math.min(e,t)},this.countRenderedRows=function(){return Y.view._wt.drawn?Y.view._wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return Y.view._wt.drawn?Y.view._wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return Y.view._wt.drawn?Y.view._wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return Y.view._wt.drawn?Y.view._wt.wtTable.getVisibleColumnsCount():-1},this.countRowHeaders=function(){return this.view.getRowHeadersCount()},this.countColHeaders=function(){return this.view.getColumnHeadersCount()},this.countEmptyRows=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return(0,y.rangeEachReverse)(Y.countRows()-1,o=>{if(Y.isEmptyRow(o))t+=1;else if(!0===e)return!1}),t},this.countEmptyCols=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return(0,y.rangeEachReverse)(Y.countCols()-1,o=>{if(Y.isEmptyCol(o))t+=1;else if(!0===e)return!1}),t},this.isEmptyRow=function(e){return oe.isEmptyRow.call(Y,e)},this.isEmptyCol=function(e){return oe.isEmptyCol.call(Y,e)},this.selectCell=function(e,t,o,s){let i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],r=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return!(0,n.isUndefined)(e)&&!(0,n.isUndefined)(t)&&this.selectCells([[e,t,o,s]],i,r)},this.selectCells=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[[]],t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&q.suspend();const o=ne.selectCells(e);return o&&t&&Y.listen(),q.resume(),o},this.selectColumns=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=arguments.length>2?arguments[2]:void 0;return ne.selectColumns(e,t,o)},this.selectRows=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=arguments.length>2?arguments[2]:void 0;return ne.selectRows(e,t,o)},this.deselectCell=function(){ne.deselect()},this.selectAll=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=arguments.length>2?arguments[2]:void 0;q.skipNextScrollCycle(),ne.selectAll(e,t,o)};const pe=(e,t)=>e.getNearestNotHiddenIndex(t,1,!0);this.scrollViewportTo=function(e,t){var o;"number"==typeof e&&(e={row:arguments[0],col:arguments[1],verticalSnap:arguments[2]?"bottom":"top",horizontalSnap:arguments[3]?"end":"start",considerHiddenIndexes:null===(o=arguments[4])||void 0===o||o});const{row:s,col:i,considerHiddenIndexes:n}=null!=e?e:{};let l=s,a=i;if((0,r.isFunction)(t)&&this.addHookOnce("afterScroll",t),void 0===n||n){const e=Number.isInteger(s)&&s>=0,t=Number.isInteger(i)&&i>=0,o=e?pe(this.rowIndexMapper,s):void 0,r=t?pe(this.columnIndexMapper,i):void 0;if(null===o||null===r)return!1;l=e?Y.rowIndexMapper.getRenderableFromVisualIndex(o):s,a=t?Y.columnIndexMapper.getRenderableFromVisualIndex(r):i}const h=Number.isInteger(l),c=Number.isInteger(a);let u=!1;return h&&l>=0&&c&&a>=0?u=Y.view.scrollViewport(Y._createCellCoords(l,a),e.horizontalSnap,e.verticalSnap):h&&l>=0&&(c&&a<0||!c)?u=Y.view.scrollViewportVertically(l,e.verticalSnap):c&&a>=0&&(h&&l<0||!h)&&(u=Y.view.scrollViewportHorizontally(a,e.horizontalSnap)),(0,r.isFunction)(t)&&(u?this.view.render():(this.removeHook("afterScroll",t),this._registerMicrotask(()=>t()))),u},this.scrollToFocusedCell=function(e){if(!this.selection.isSelected())return!1;(0,r.isFunction)(e)&&this.addHookOnce("afterScroll",e);const{highlight:t}=this.getSelectedRangeLast(),o=this.scrollViewportTo(t.toObject());return o?this.view.render():(0,r.isFunction)(e)&&(this.removeHook("afterScroll",e),this._registerMicrotask(()=>e())),o},this.destroy=function(){Y._clearTimeouts(),Y._clearImmediates(),Y.view&&Y.view.destroy(),G&&G.destroy(),G=null,this.getShortcutManager().destroy(),re.clear(),te.clearCache(),B.delete(this.guid),j.destroy(),K&&K.destroy(),Y.rootContainer&&(0,i.empty)(Y.rootContainer),Y.rootPortalElement&&Y.rootPortalElement.remove(),Y.batchExecution(()=>{Y.rowIndexMapper.unregisterAll(),Y.columnIndexMapper.unregisterAll(),ie.getItems().forEach(e=>{let[,t]=e;t.destroy()}),ie.clear(),Y.runHooks("afterDestroy")},!0),M.Hooks.getSingleton().destroy(Y),(0,c.objectEach)(Y,(e,t,o)=>{var s;(0,r.isFunction)(e)?o[t]=(s=t,()=>{throw new Error(`The "${s}" method cannot be called because this Handsontable instance has been destroyed`)}):"guid"!==t&&(o[t]=null)}),Y.isDestroyed=!0,z&&z.destroy(),z=null,$=null,ne=null,K=null,Y=null},this.getActiveEditor=function(){return K.getActiveEditor()},this.getFirstRenderedVisibleRow=function(){return Y.view.getFirstRenderedVisibleRow()},this.getLastRenderedVisibleRow=function(){return Y.view.getLastRenderedVisibleRow()},this.getFirstRenderedVisibleColumn=function(){return Y.view.getFirstRenderedVisibleColumn()},this.getLastRenderedVisibleColumn=function(){return Y.view.getLastRenderedVisibleColumn()},this.getFirstFullyVisibleRow=function(){return Y.view.getFirstFullyVisibleRow()},this.getLastFullyVisibleRow=function(){return Y.view.getLastFullyVisibleRow()},this.getFirstFullyVisibleColumn=function(){return Y.view.getFirstFullyVisibleColumn()},this.getLastFullyVisibleColumn=function(){return Y.view.getLastFullyVisibleColumn()},this.getFirstPartiallyVisibleRow=function(){return Y.view.getFirstPartiallyVisibleRow()},this.getLastPartiallyVisibleRow=function(){return Y.view.getLastPartiallyVisibleRow()},this.getFirstPartiallyVisibleColumn=function(){return Y.view.getFirstPartiallyVisibleColumn()},this.getLastPartiallyVisibleColumn=function(){return Y.view.getLastPartiallyVisibleColumn()},this.getPlugin=function(e){return ie.getItem((0,v.toUpperCaseFirst)(e))},this.getPluginName=function(e){return e===this.undoRedo?this.undoRedo.constructor.PLUGIN_KEY:ie.getId(e)},this.getInstance=function(){return Y},this.addHook=function(e,t,o){M.Hooks.getSingleton().add(e,t,Y,o)},this.hasHook=function(e){return M.Hooks.getSingleton().has(e,Y)||M.Hooks.getSingleton().has(e)},this.addHookOnce=function(e,t,o){M.Hooks.getSingleton().once(e,t,Y,o)},this.removeHook=function(e,t){M.Hooks.getSingleton().remove(e,t,Y)},this.runHooks=function(e,t,o,s,i,r,n){return M.Hooks.getSingleton().run(Y,e,t,o,s,i,r,n)},this.getTranslatedPhrase=function(e,t){return(0,I.getTranslatedPhrase)(oe.language,e,t)},this.toHTML=()=>(0,g.instanceToHTML)(this),this.toTableElement=()=>{const e=this.rootDocument.createElement("div");return e.insertAdjacentHTML("afterbegin",(0,g.instanceToHTML)(this)),e.firstElementChild},this.timeouts=[],this.useTheme=e=>{const t=!!Q;this.stylesHandler.useTheme(e);const o=this.stylesHandler.getThemeName();(0,_.isRootInstance)(this)&&((0,i.removeClass)(this.rootWrapperElement,/ht-theme-.*/g),(0,i.removeClass)(this.rootPortalElement,/ht-theme-.*/g),o&&((0,i.addClass)(this.rootWrapperElement,o),(0,i.addClass)(this.rootPortalElement,o),getComputedStyle(this.rootWrapperElement).getPropertyValue("--ht-line-height")||(0,V.warn)(`The "${o}" theme is enabled, but its stylesheets are missing or not imported correctly. Import the correct CSS files in order to use that theme.`))),t||(Y.render(),Y.scrollViewportTo(0,0),(0,D.getThemeClassName)(this.rootContainer)&&((0,i.removeClass)(this.rootContainer,/ht-theme-.*/g),o&&(0,i.addClass)(this.rootContainer,o))),this.runHooks("afterSetTheme",o,t)},this.getCurrentThemeName=()=>this.stylesHandler.getThemeName(),this.getTableHeight=()=>this.rootElement.offsetHeight,this.getTableWidth=()=>this.rootElement.offsetWidth,this._registerTimeout=function(e){let t=e;"function"==typeof t&&(t=setTimeout(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)),this.timeouts.push(t)},this._clearTimeouts=function(){(0,d.arrayEach)(this.timeouts,e=>{clearTimeout(e)})},this.immediates=[],this._registerImmediate=function(e){this.immediates.push(setImmediate(e))},this._clearImmediates=function(){(0,d.arrayEach)(this.immediates,e=>{clearImmediate(e)})},this._registerMicrotask=function(e){this.rootWindow.queueMicrotask(()=>{this.isDestroyed||e()})},this._getEditorManager=function(){return K};const me=(0,P.createShortcutManager)({handleEvent:()=>Y.isListening(),beforeKeyDown:e=>this.runHooks("beforeKeyDown",e),afterKeyDown:e=>{this.isDestroyed||Y.runHooks("afterDocumentKeyDown",e)},ownerWindow:this.rootWindow});this.addHook("beforeOnCellMouseDown",e=>{!1===e.ctrlKey&&!1===e.metaKey&&me.releasePressedKeys()}),this.getShortcutManager=function(){return me},this.getFocusManager=function(){return X},(0,p.getPluginsNames)().forEach(e=>{const t=(0,p.getPlugin)(e);ie.addItem(e,new t(this))}),(0,k.registerAllShortcutContexts)(Y),me.setActiveContextName("grid"),M.Hooks.getSingleton().run(Y,"construct")},o(88443),o(85639),o(41846),o(62705),o(78495),o(43554),o(15247),o(18472),o(89711),o(78675),o(73741),o(7307),o(69326),o(90795),o(57);var i=o(43561),r=o(6964),n=o(50929),l=o(64254),a=s(o(59124)),h=s(o(87505)),c=o(87203),u=o(51157),d=o(18051),g=o(35045),f=o(37363),p=o(51240),m=o(80380),w=o(67378),C=o(18699),v=o(27277),y=o(59073),E=s(o(13869)),S=s(o(56948)),R=o(96988),b=o(65733),_=o(32883),T=o(12822),M=o(8829),I=o(32978),O=o(50484),N=o(20213),A=o(64017),H=o(76618),x=o(40418),P=o(76344),k=o(87927),D=o(92474),L=o(1888),V=o(88291),W=o(16333);let F=null;const B=new Map;new Set},1612:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(87203);const i={getFirstRenderedColumn(){const e=this.dataAccessObject.startColumnRendered;return null===e?-1:e},getFirstVisibleColumn(){const e=this.dataAccessObject.startColumnVisible;return null===e?-1:e},getFirstPartiallyVisibleColumn(){const e=this.dataAccessObject.startColumnPartiallyVisible;return null===e?-1:e},getLastRenderedColumn(){const e=this.dataAccessObject.endColumnRendered;return null===e?-1:e},getLastVisibleColumn(){const e=this.dataAccessObject.endColumnVisible;return null===e?-1:e},getLastPartiallyVisibleColumn(){const e=this.dataAccessObject.endColumnPartiallyVisible;return null===e?-1:e},getRenderedColumnsCount(){return this.dataAccessObject.countColumnsRendered},getVisibleColumnsCount(){return this.dataAccessObject.countColumnsVisible},getRowHeadersCount(){return this.dataAccessObject.rowHeaders.length}};(0,s.defineGetter)(i,"MIXIN_NAME","calculatedColumns",{writable:!1,enumerable:!1});t.default=i},1656:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(73741),o(16178);var i=s(o(53726)),r=o(87203),n=o(18051);t.default=class{constructor(e){(0,i.default)(this,"plugin",void 0),(0,i.default)(this,"mergedCellsCollection",void 0),(0,i.default)(this,"currentFillData",null),this.plugin=e,this.mergedCellsCollection=this.plugin.mergedCellsCollection}getDirection(e,t){let o=null;return o=t[0]===e[0]&&t[1]===e[1]&&t[3]===e[3]?"down":t[2]===e[2]&&t[1]===e[1]&&t[3]===e[3]?"up":t[1]===e[1]&&t[2]===e[2]?"right":"left",o}snapDragArea(e,t,o,s){const i=t.slice(0),r=this.getAutofillSize(e,t,o),[n,l,a,h]=e,c=["up","down"].indexOf(o)>-1?a-n+1:h-l+1,u=r-Math.floor(r/c)*c,d=this.getFarthestCollection(e,t,o,s);if(d)if("down"===o){const e=d.row+d.rowspan-n-u;i[2]+e>=this.plugin.hot.countRows()?i[2]-=u:i[2]+=u?e:0}else if("right"===o){const e=d.col+d.colspan-l-u;i[3]+e>=this.plugin.hot.countCols()?i[3]-=u:i[3]+=u?e:0}else if("up"===o){const e=a-u-d.row+1;i[0]+e<0?i[0]+=u:i[0]-=u?e:0}else if("left"===o){const e=h-u-d.col+1;i[1]+e<0?i[1]+=u:i[1]-=u?e:0}return this.updateCurrentFillCache({baseArea:e,dragDirection:o,foundMergedCells:s,fillSize:r,dragArea:i,cycleLength:c}),i}updateCurrentFillCache(e){this.currentFillData||(this.currentFillData={}),(0,r.extend)(this.currentFillData,e)}getAutofillSize(e,t,o){const[s,i,r,n]=e,[l,a,h,c]=t;switch(o){case"up":return s-l;case"down":return h-r;case"left":return i-a;case"right":return c-n;default:return null}}getDragArea(e,t,o){const[s,i,r,n]=e,[l,a,h,c]=t;switch(o){case"up":return[l,a,s-1,n];case"down":{const e=this.mergedCellsCollection.get(h,n);return[r+1,i,h+(e?e.rowspan-1:0),n]}case"left":return[l,a,r,i-1];case"right":{const e=this.mergedCellsCollection.get(h,n);return[s,n+(e?e.colspan-1:0),h,c]}default:return null}}getFarthestCollection(e,t,o,s){const[i,r,l,a]=e,h=["up","down"].indexOf(o)>-1,c=h?l:a,u=h?i:r,d=this.getAutofillSize(e,t,o),g=h?l-i+1:a-r+1,f=d-Math.floor(d/g)*g;let p=null,m=null,w=null;switch(o){case"up":p="includesVertically",w=c-f+1;break;case"left":p="includesHorizontally",w=c-f+1;break;case"down":p="includesVertically",w=u+f-1;break;case"right":p="includesHorizontally",w=u+f-1}return(0,n.arrayEach)(s,e=>{e[p](w)&&e.isFarther(m,o)&&(m=e)}),m}recreateAfterDataPopulation(e){if(!this.currentFillData)return;const t=this.getRangeFromChanges(e),o=this.currentFillData.foundMergedCells,s=this.currentFillData.dragDirection,i=(e,o)=>{switch(s){case"up":return e.row-o>=t.from.row;case"down":return e.row+e.rowspan-1+o<=t.to.row;case"left":return e.col-o>=t.from.column;case"right":return e.col+e.colspan-1+o<=t.to.column;default:return null}};let r=0,n=null,l=1;do{for(let e=0;e<o.length;e+=1){if(n=o[e],r=l*this.currentFillData.cycleLength,i(n,r))switch(s){case"up":this.plugin.mergedCellsCollection.add({row:n.row-r,rowspan:n.rowspan,col:n.col,colspan:n.colspan},!0);break;case"down":this.plugin.mergedCellsCollection.add({row:n.row+r,rowspan:n.rowspan,col:n.col,colspan:n.colspan},!0);break;case"left":this.plugin.mergedCellsCollection.add({row:n.row,rowspan:n.rowspan,col:n.col-r,colspan:n.colspan},!0);break;case"right":this.plugin.mergedCellsCollection.add({row:n.row,rowspan:n.rowspan,col:n.col+r,colspan:n.colspan},!0)}e===o.length-1&&(l+=1)}}while(i(n,r));this.currentFillData=null,this.plugin.hot.render(),o.length>0&&this.plugin.ifChromeForceRepaint()}getRangeFromChanges(e){const t={min:null,max:null},o={min:null,max:null};return(0,n.arrayEach)(e,e=>{const s=e[0],i=this.plugin.hot.propToCol(e[1]);(null===t.min||s<t.min)&&(t.min=s),(null===t.max||s>t.max)&&(t.max=s),(null===o.min||i<o.min)&&(o.min=i),(null===o.max||i>o.max)&&(o.max=i)}),{from:{row:t.min,column:o.min},to:{row:t.max,column:o.max}}}dragAreaOverlapsCollections(e,t,o){const s=this.getDragArea(e,t,o),[i,r,n,l]=s,a=this.plugin.hot._createCellCoords(i,r),h=this.plugin.hot._createCellCoords(n,l),c=this.plugin.hot._createCellRange(a,a,h);if(0===this.mergedCellsCollection.getWithinRange(c,!0).length)return!1;const u=this.mergedCellsCollection.getWithinRange(c,!1);return 0===u.length||("up"===o||"down"===o?!u.every(e=>{let{colspan:t}=e;return t===c.getWidth()}):!u.every(e=>{let{rowspan:t}=e;return t===c.getHeight()}))}}},1843:(e,t,o)=>{"use strict";t.__esModule=!0,o(88443);var s=o(40418),i=o(30581),r=o(42203),n=o(10568),l=o(5651);t.createShortcutManager=e=>{let{ownerWindow:t,handleEvent:o,beforeKeyDown:a,afterKeyDown:h}=e;const c=(0,s.createUniqueMap)({errorIdExists:e=>`The "${e}" context name is already registered.`});let u="grid";const d=()=>u,g=e=>c.getItem(e);let f=!1;const p=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d();const s=(0,r.isContextObject)(o)?o:g(o);let n=!1;if(!s.hasShortcut(t))return n;const l=s.getShortcuts(t);for(let o=0;o<l.length;o++){const{callback:s,runOnlyIf:r,preventDefault:a,stopPropagation:h,captureCtrl:c,forwardToContext:u}=l[o];if(!0===r(e)){if(f=c,n=!1===s(e,t),f=!1,a&&e.preventDefault(),h&&((0,i.stopImmediatePropagation)(e),e.stopPropagation()),n)break;u&&p(e,t,u)}}return n},m=(0,n.useRecorder)(t,o,a,h,p);return m.mount(),{addContext:e=>{const t=(0,r.createContext)(e);return c.addItem(e,t),t},getActiveContextName:d,getContext:g,setActiveContextName:e=>{if(!c.hasItem(e))throw new Error(l.toSingleLine`You've tried to activate the "${e}" shortcut context\x20
|
|
32
32
|
that does not exist. Before activation, register the context using the "addContext" method.`);u=e},isCtrlPressed:()=>!f&&(m.isPressed("control")||m.isPressed("meta")),releasePressedKeys:()=>m.releasePressedKeys(),destroy:()=>m.unmount()}}},1851:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostBottom",callback(e){const{selection:t}=e,{col:o}=e.getSelectedRangeLast().highlight;let s=e.rowIndexMapper.getNearestNotHiddenIndex(e.countRows()-1,-1);null===s&&(s=-1),t.setRangeStart(e._createCellCoords(s,o))}}},1856:(e,t,o)=>{"use strict";t.__esModule=!0,t.focusScrollStrategy=function(e){return t=>{e.scrollViewportTo(t.toObject(),()=>{const{row:t,col:o}=e.getSelectedRangeLast().highlight;(0,s.scrollWindowToCell)(e.getCell(t,o,!0))})}};var s=o(64185)},1888:(e,t,o)=>{"use strict";t.__esModule=!0,o(88443),o(73741),o(69326);var s=o(88291);function i(e,t,o){r(e,t),t.set(e,o)}function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function n(e,t){return e.get(a(e,t))}function l(e,t,o){return e.set(a(e,t),o),o}function a(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakSet;function w(){const e=this.getCSSVariableValue("line-height"),t=this.getCSSVariableValue("cell-vertical-padding"),o=Math.ceil(parseFloat(this.getStyleForTD("border-bottom-width")));return null===e||null===t||isNaN(o)?null:e+2*t+o}function C(){this.isClassicTheme()||l(u,this,getComputedStyle(n(c,this)));const e=a(m,this,v).call(this,["box-sizing","border-bottom-width"]);n(p,this).td={...n(p,this).td,"box-sizing":e["box-sizing"],"border-bottom-width":e["border-bottom-width"]}}function v(e){const t=n(d,this),o=n(c,this),s=t.createElement("table"),i=t.createElement("tbody"),r=t.createElement("tr"),l=t.createElement("tr"),a=t.createElement("td");l.appendChild(a),i.appendChild(r),i.appendChild(l),s.appendChild(i),o.appendChild(s);const h=getComputedStyle(a),u={};return e.forEach(e=>{u[e]=h.getPropertyValue(e)}),o.removeChild(s),u}function y(e){const t=Math.ceil(parseFloat(a(m,this,E).call(this,e)));return Number.isNaN(t)?null:t}function E(e){const t=n(u,this).getPropertyValue(e);return""===t?null:t}function S(){l(p,this,{}),l(f,this,{}),l(g,this,!0)}t.StylesHandler=class{constructor(e,t){var o,s;r(o=this,s=m),s.add(o),i(this,h,void 0),i(this,c,void 0),i(this,u,void 0),i(this,d,void 0),i(this,g,!0),i(this,f,{}),i(this,p,{}),l(c,this,e),l(d,this,t)}isClassicTheme(){return n(g,this)}getCSSVariableValue(e){var t;if(n(g,this))return null;if(n(f,this)[`--ht-${e}`])return n(f,this)[`--ht-${e}`];const o=null!==(t=a(m,this,y).call(this,`--ht-${e}`))&&void 0!==t?t:a(m,this,E).call(this,`--ht-${e}`);return null!==o?(n(f,this)[`--ht-${e}`]=o,o):void 0}getStyleForTD(e){var t;return null===(t=n(p,this))||void 0===t?void 0:t.td[e]}getDefaultRowHeight(){if(n(g,this))return 23;const e=a(m,this,w).call(this);return e||23}areCellsBorderBox(){return"border-box"===this.getStyleForTD("box-sizing")}useTheme(e){if(!e)return l(h,this,void 0),l(g,this,!0),void a(m,this,C).call(this);if(e&&e!==n(h,this)){if(!/ht-theme-.*/.test(e))return(0,s.warn)(`Invalid theme name: ${e}. Please provide a valid theme name.`),l(h,this,void 0),l(g,this,!1),void a(m,this,C).call(this);n(h,this)&&a(m,this,S).call(this),l(h,this,e),l(g,this,!1),a(m,this,C).call(this)}}getThemeName(){return n(h,this)}}},1903:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionInlineStart",callback(e,t){const{selection:o}=e,s=e.getSettings(),i=e.getSelectedRangeLast(),r="function"==typeof s.tabMoves?s.tabMoves(t):s.tabMoves;o.markSource("keyboard"),o.isMultiple()&&!i.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0?o.transformFocus(r.row,r.col):o.transformStart(r.row,r.col),o.markEndSource()}}},2163:(e,t,o)=>{"use strict";var s=o(30784),i=Math.min;e.exports=function(e){var t=s(e);return t>0?i(t,9007199254740991):0}},2173:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(85639);var i=s(o(53726)),r=o(18051);t.default=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>[];(0,i.default)(this,"conditionCollection",void 0),(0,i.default)(this,"columnDataFactory",void 0),this.conditionCollection=e,this.columnDataFactory=t}filter(){let e=[];return(0,r.arrayEach)(this.conditionCollection.getFilteredColumns(),(t,o)=>{let s=this.columnDataFactory(t);o&&(s=this._getIntersectData(s,e)),e=this.filterByColumn(t,s)}),e}filterByColumn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const o=[];return(0,r.arrayEach)(t,t=>{void 0!==t&&this.conditionCollection.isMatch(t,e)&&o.push(t)}),o}_getIntersectData(e,t){const o=[];return(0,r.arrayEach)(t,t=>{const s=t.meta.visualRow;void 0!==e[s]&&(o[s]=e[s])}),o}}},2278:(e,t,o)=>{"use strict";t.__esModule=!0,t.shortcutsEditorContext=function(e){const t=e.getShortcutManager().addContext("editor"),o=(0,i.createKeyboardShortcutCommandsPool)(e),r={group:s.EDITOR_EDIT_GROUP};t.addShortcuts([{keys:[["Enter"],["Enter","Shift"]],callback:(e,t)=>o.editorCloseAndSaveByEnter(e,t)},{keys:[["Enter","Control/Meta"],["Enter","Control/Meta","Shift"]],captureCtrl:!0,callback:(e,t)=>o.editorCloseAndSaveByEnter(e,t)},{keys:[["Tab"],["Tab","Shift"],["PageDown"],["PageUp"]],forwardToContext:e.getShortcutManager().getContext("grid"),callback:(e,t)=>o.editorCloseAndSave(e,t)},{keys:[["ArrowDown"],["ArrowUp"],["ArrowLeft"],["ArrowRight"]],preventDefault:!1,callback:(e,t)=>o.editorCloseAndSaveByArrowKeys(e,t)},{keys:[["Escape"],["Escape","Control/Meta"]],callback:()=>o.editorCloseWithoutSaving()}],r)};var s=o(79514),i=o(84470)},2307:(e,t,o)=>{"use strict";t.__esModule=!0,t.hideColumn=function(e,t){if(!Number.isInteger(t))throw new Error("The passed gridColumnIndex argument has invalid type.");if(e.childs.length>0)throw new Error(s.toSingleLine`The passed node is not the last node on the tree. Only for\x20
|
|
@@ -39,7 +39,7 @@ the last node, the hide column modification can be applied.`);const{crossHiddenC
|
|
|
39
39
|
\`disjunction\` and \`conjunction\`.`);const g=this.getConditions(e);0===g.length?this.filteringStates.setValueAtIndex(e,{operation:o,conditions:[{name:l,args:r,func:(0,a.getCondition)(l,r)}]},s):g.push({name:l,args:r,func:(0,a.getCondition)(l,r)}),this.runLocalHooks("afterAdd",e)}getConditions(e){var t,o;return null!==(t=null===(o=this.filteringStates.getValueAtIndex(e))||void 0===o?void 0:o.conditions)&&void 0!==t?t:[]}getOperation(e){var t;return null===(t=this.filteringStates.getValueAtIndex(e))||void 0===t?void 0:t.operation}getFilteredColumns(){return this.filteringStates.getEntries().map(e=>{let[t]=e;return t})}getColumnStackPosition(e){return this.getFilteredColumns().indexOf(e)}exportAllConditions(){return this.filteringStates.getEntries().reduce((e,t)=>{let[o,{operation:s,conditions:i}]=t;return e.push({column:o,operation:s,conditions:i.map(e=>{let{name:t,args:o}=e;return{name:t,args:[...o]}})}),e},[])}importAllConditions(e){this.clean(),e.forEach(e=>{e.conditions.forEach(t=>this.addCondition(e.column,t))})}removeConditions(e){this.runLocalHooks("beforeRemove",e),this.filteringStates.clearValue(e),this.runLocalHooks("afterRemove",e)}clean(){this.runLocalHooks("beforeClean"),this.filteringStates.clear(),this.runLocalHooks("afterClean")}hasConditions(e,t){const o=this.getConditions(e);return t?o.some(e=>e.name===t):o.length>0}destroy(){this.isMapRegistrable&&this.hot.columnIndexMapper.unregisterMap(g),this.filteringStates=null,this.clearLocalHooks()}}(0,r.mixin)(f,l.default);t.default=f},9230:(e,t,o)=>{"use strict";var s=o(39157),i=o(82314),r=o(4158);e.exports=!s&&!i(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})},9370:(e,t,o)=>{"use strict";var s=o(39157),i=o(9230),r=o(74491),n=o(77618),l=o(62672),a=TypeError,h=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u="enumerable",d="configurable",g="writable";t.f=s?r?function(e,t,o){if(n(e),t=l(t),n(o),"function"==typeof e&&"prototype"===t&&"value"in o&&g in o&&!o[g]){var s=c(e,t);s&&s[g]&&(e[t]=o.value,o={configurable:d in o?o[d]:s[d],enumerable:u in o?o[u]:s[u],writable:!1})}return h(e,t,o)}:h:function(e,t,o){if(n(e),t=l(t),n(o),i)try{return h(e,t,o)}catch(e){}if("get"in o||"set"in o)throw new a("Accessors not supported");return"value"in o&&(e[t]=o.value),e}},9687:(e,t,o)=>{"use strict";t.__esModule=!0,t.getCellType=function(e){if(!h(e))throw Error(`You declared cell type "${e}" as a string that is not mapped to a known object.\n Cell type must be an object or a string mapped to an object registered by\n "Handsontable.cellTypes.registerCellType" method`);return a(e)},t.registerCellType=function(e,t){"string"!=typeof e&&(e=(t=e).CELL_TYPE);const{editor:o,renderer:s,validator:a}=t;o&&(0,i.registerEditor)(e,o);s&&(0,r.registerRenderer)(e,s);a&&(0,n.registerValidator)(e,a);l(e,t)},o(88443);var s=o(37363),i=o(67378),r=o(80380),n=o(18699);const{register:l,getItem:a,hasItem:h,getNames:c,getValues:u}=(0,s.staticRegister)("cellTypes");t.getRegisteredCellTypes=u,t.getRegisteredCellTypeNames=c,t.hasCellType=h},9744:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(62705),o(78495),o(43554),o(15247),o(18472),o(89711),o(78675),o(73741),o(16178);var i=s(o(53726)),r=o(44233),n=o(65733),l=o(18051);function a(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}const h=t.PLUGIN_KEY="trimRows",c=t.PLUGIN_PRIORITY=330;var u=new WeakSet;class d extends r.BasePlugin{constructor(){super(...arguments),a(this,u),(0,i.default)(this,"trimmedRowsMap",null)}static get PLUGIN_KEY(){return h}static get PLUGIN_PRIORITY(){return c}isEnabled(){return!!this.hot.getSettings()[h]}enablePlugin(){this.enabled||(this.trimmedRowsMap=this.hot.rowIndexMapper.registerMap("trimRows",new n.TrimmingMap),this.trimmedRowsMap.addLocalHook("init",()=>function(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}(u,this,g).call(this)),super.enablePlugin())}updatePlugin(){const e=this.hot.getSettings()[h];Array.isArray(e)&&this.hot.batchExecution(()=>{this.trimmedRowsMap.clear(),(0,l.arrayEach)(e,e=>{this.trimmedRowsMap.setValueAtIndex(e,!0)})},!0),super.updatePlugin()}disablePlugin(){this.hot.rowIndexMapper.unregisterMap("trimRows"),super.disablePlugin()}getTrimmedRows(){return this.trimmedRowsMap.getTrimmedIndexes()}trimRows(e){const t=this.getTrimmedRows(),o=this.isValidConfig(e);let s=t;o&&(s=Array.from(new Set(t.concat(e))));!1!==this.hot.runHooks("beforeTrimRow",t,s,o)&&(o&&this.hot.batchExecution(()=>{(0,l.arrayEach)(e,e=>{this.trimmedRowsMap.setValueAtIndex(e,!0)})},!0),this.hot.runHooks("afterTrimRow",t,s,o,o&&s.length>t.length))}trimRow(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];this.trimRows(t)}untrimRows(e){const t=this.getTrimmedRows(),o=this.isValidConfig(e);let s=t;const i=this.trimmedRowsMap.getValues().slice(),r=e.length>0;o&&r&&((0,l.arrayEach)(e,e=>{i[e]=!1}),s=(0,l.arrayReduce)(i,(e,t,o)=>(t&&e.push(o),e),[]));!1!==this.hot.runHooks("beforeUntrimRow",t,s,o&&r)&&(o&&r&&this.trimmedRowsMap.setValues(i),this.hot.runHooks("afterUntrimRow",t,s,o&&r,o&&s.length<t.length))}untrimRow(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];this.untrimRows(t)}isTrimmed(e){return this.trimmedRowsMap.getValueAtIndex(e)||!1}untrimAll(){this.untrimRows(this.getTrimmedRows())}isValidConfig(e){const t=this.hot.countSourceRows();return e.every(e=>Number.isInteger(e)&&e>=0&&e<t)}destroy(){super.destroy()}}function g(){const e=this.hot.getSettings()[h];Array.isArray(e)&&this.hot.batchExecution(()=>{(0,l.arrayEach)(e,e=>{this.trimmedRowsMap.setValueAtIndex(e,!0)})},!0)}t.TrimRows=d},9797:(e,t,o)=>{"use strict";var s=o(76277),i=o(64976),r=o(65985),n=o(86713),l=o(77618),a=o(74218),h=o(63884),c=o(69498)("every",TypeError);s({target:"Iterator",proto:!0,real:!0,forced:c},{every:function(e){l(this);try{n(e)}catch(e){h(this,"throw",e)}if(c)return i(c,this,e);var t=a(this),o=0;return!r(t,function(t,s){if(!e(t,o++))return s()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},9824:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(20780);const i=t.EDITOR_TYPE="time";class r extends s.TextEditor{static get EDITOR_TYPE(){return i}prepare(e,t,o,s,i,r){super.prepare(e,t,o,s,i,r),this.TEXTAREA.dir="ltr"}}t.TimeEditor=r},10028:(e,t,o)=>{"use strict";var s=o(88005),i=o(6996);e.exports=function(e,t){return arguments.length<2?(o=s[e],i(o)?o:void 0):s[e]&&s[e][t];var o}},10260:(e,t,o)=>{"use strict";var s=o(25225),i=Error,r=s("".replace),n=String(new i("zxcasd").stack),l=/\n\s*at [^:]*:[^\n]*/,a=l.test(n);e.exports=function(e,t){if(a&&"string"==typeof e&&!i.prepareStackTrace)for(;t--;)e=r(e,l,"");return e}},10430:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443);var i=s(o(53726)),r=s(o(86798)),n=s(o(75972)),l=o(1006),a=o(20780),h=o(43561),c=o(87203),u=o(20157),d=o(64254);function g(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function f(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const p=t.EDITOR_TYPE="date",m="dateEditor";var w=new WeakSet;class C extends a.TextEditor{constructor(){super(...arguments),g(this,w),(0,i.default)(this,"parentDestroyed",!1),(0,i.default)(this,"$datePicker",null)}static get EDITOR_TYPE(){return p}init(){if("function"!=typeof r.default)throw new Error("You need to include moment.js to your project.");if("function"!=typeof n.default)throw new Error("You need to include Pikaday to your project.");super.init(),this.hot.addHook("afterDestroy",()=>{this.parentDestroyed=!0,this.destroyElements()}),this.hot.addHook("afterSetTheme",(e,t)=>{t||this.close()})}createElements(){super.createElements(),this.datePicker=this.hot.rootDocument.createElement("DIV"),this.datePickerStyle=this.datePicker.style,this.datePickerStyle.position="absolute",this.datePickerStyle.top=0,this.datePickerStyle.left=0,this.datePickerStyle.zIndex=9999,this.datePicker.setAttribute("dir",this.hot.isRtl()?"rtl":"ltr"),(0,h.addClass)(this.datePicker,"htDatepickerHolder"),this.hot.rootPortalElement.appendChild(this.datePicker),this.eventManager.addEventListener(this.datePicker,"mousedown",e=>{(0,h.hasClass)(e.target,"pika-day")&&this.hideDatepicker(),e.stopPropagation()})}destroyElements(){const e=this.datePicker.parentNode;this.$datePicker&&this.$datePicker.destroy(),e&&e.removeChild(this.datePicker)}prepare(e,t,o,s,i,r){super.prepare(e,t,o,s,i,r)}open(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=this.hot.getShortcutManager().getContext("editor");this.showDatepicker(e),super.open(),t.addShortcuts([{keys:[["ArrowLeft"]],callback:()=>{this.$datePicker.adjustDate("subtract",1)}},{keys:[["ArrowRight"]],callback:()=>{this.$datePicker.adjustDate("add",1)}},{keys:[["ArrowUp"]],callback:()=>{this.$datePicker.adjustDate("subtract",7)}},{keys:[["ArrowDown"]],callback:()=>{this.$datePicker.adjustDate("add",7)}}],{group:m})}close(){var e;null!==(e=this.$datePicker)&&void 0!==e&&e.destroy&&this.$datePicker.destroy(),this.hot._registerTimeout(()=>{const e=this.hot._getEditorManager();e.closeEditor(),this.hot.view.render(),e.prepareEditor()});this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(m),super.close()}finishEditing(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super.finishEditing(e,t)}showDatepicker(e){const t=f(w,this,v).call(this),o=this.hot.view.isMouseDown(),s=!!e&&(0,u.isFunctionKey)(e.keyCode);let i;this.datePicker.style.display="block",this.$datePicker=new n.default(this.getDatePickerConfig()),"function"==typeof this.$datePicker.useMoment&&this.$datePicker.useMoment(r.default),this.$datePicker._onInputFocus=function(){},this.originalValue?(i=this.originalValue,(0,r.default)(i,t,!0).isValid()&&this.$datePicker.setMoment((0,r.default)(i,t),!0),this.getValue()!==this.originalValue&&this.setValue(this.originalValue),s||o||this.setValue("")):this.cellProperties.defaultDate?(i=this.cellProperties.defaultDate,(0,r.default)(i,t,!0).isValid()&&this.$datePicker.setMoment((0,r.default)(i,t),!0),s||o||this.setValue("")):this.$datePicker.gotoToday()}hideDatepicker(){this.datePickerStyle.display="none",this.$datePicker.hide()}getDatePickerConfig(){var e;const t=this.TEXTAREA,o={};this.cellProperties&&this.cellProperties.datePickerConfig&&(0,c.deepExtend)(o,this.cellProperties.datePickerConfig);const s=o.onSelect,i=o.onClose;return o.field=t,o.trigger=t,o.container=this.datePicker,o.bound=!1,o.keyboardInput=!1,o.format=null!==(e=o.format)&&void 0!==e?e:f(w,this,v).call(this),o.reposition=o.reposition||!1,o.isRTL=!1,o.onSelect=e=>{let t=e;isNaN(t.getTime())||(t=(0,r.default)(t).format(f(w,this,v).call(this))),this.setValue(t),s&&s(),(0,d.isMobileBrowser)()&&this.hideDatepicker()},o.onClose=()=>{this.parentDestroyed||this.finishEditing(!1),i&&i()},o}refreshDimensions(e){var t;if(super.refreshDimensions(e),this.state!==l.EDITOR_STATE.EDITING)return;if(this.TD=this.getEditedCell(),!this.TD)return void this.hideDatepicker();const{rowIndexMapper:o,columnIndexMapper:s}=this.hot,{wtOverlays:i}=this.hot.view._wt,{wtTable:r}=null!==(t=i.getParentOverlay(this.TD))&&void 0!==t?t:this.hot.view._wt,n=o.getVisualFromRenderableIndex(r.getFirstPartiallyVisibleRow()),a=o.getVisualFromRenderableIndex(r.getLastPartiallyVisibleRow()),c=s.getVisualFromRenderableIndex(r.getFirstPartiallyVisibleColumn()),u=s.getVisualFromRenderableIndex(r.getLastPartiallyVisibleColumn());if(this.row>=n&&this.row<=a&&this.col>=c&&this.col<=u){const e=this.TD.getBoundingClientRect();this.datePickerStyle.top=`${this.hot.rootWindow.pageYOffset+e.top+(0,h.outerHeight)(this.TD)}px`;let t=this.hot.rootWindow.pageXOffset;this.hot.isRtl()?t+=e.right-(0,h.outerWidth)(this.datePicker):t+=e.left,this.datePickerStyle.left=`${t}px`}else this.hideDatepicker()}}function v(){var e;return null!==(e=this.cellProperties.dateFormat)&&void 0!==e?e:"DD/MM/YYYY"}t.DateEditor=C},10486:(e,t,o)=>{"use strict";t.__esModule=!0,t.compareFunctionFactory=function(e,t,o){const r=t.locale;return function(t,n){const{sortEmptyCells:l}=o;return"string"==typeof t&&(t=t.toLocaleLowerCase(r)),"string"==typeof n&&(n=n.toLocaleLowerCase(r)),t===n?i.DO_NOT_SWAP:(0,s.isEmpty)(t)?(0,s.isEmpty)(n)?i.DO_NOT_SWAP:l&&"asc"===e?i.FIRST_BEFORE_SECOND:i.FIRST_AFTER_SECOND:(0,s.isEmpty)(n)?l&&"asc"===e?i.FIRST_AFTER_SECOND:i.FIRST_BEFORE_SECOND:isNaN(t)&&!isNaN(n)?"asc"===e?i.FIRST_AFTER_SECOND:i.FIRST_BEFORE_SECOND:!isNaN(t)&&isNaN(n)?"asc"===e?i.FIRST_BEFORE_SECOND:i.FIRST_AFTER_SECOND:(isNaN(t)||isNaN(n)||(t=parseFloat(t),n=parseFloat(n)),t<n?"asc"===e?i.FIRST_BEFORE_SECOND:i.FIRST_AFTER_SECOND:t>n?"asc"===e?i.FIRST_AFTER_SECOND:i.FIRST_BEFORE_SECOND:i.DO_NOT_SWAP)}};var s=o(50929),i=o(17374);t.COLUMN_DATA_TYPE="default"},10568:(e,t,o)=>{"use strict";t.__esModule=!0,t.useRecorder=function(e,t,o,s,d){const g=e=>a.includes(e),f=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=[];return e.altKey&&o.push("alt"),t&&(e.ctrlKey||e.metaKey)?o.push("control/meta"):(e.ctrlKey&&o.push("control"),e.metaKey&&o.push("meta")),e.shiftKey&&o.push("shift"),o},p=e=>{if(!1===t(e))return;if(!1===o(e)||229===e.keyCode||"string"!=typeof e.key||(0,r.isImmediatePropagationStopped)(e))return;const n=(0,i.normalizeEventKey)(e);let a=[];g(n)||(a=f(e));const h=[n].concat(a);!d(e,h)&&((0,l.isMacOS)()&&a.includes("meta")||!(0,l.isMacOS)()&&a.includes("control"))&&d(e,[n].concat(f(e,!0))),s(e)},m=e=>{if("string"==typeof e.key){const t=(0,i.normalizeEventKey)(e);g(t)&&h.press(t)}},w=e=>{if("string"==typeof e.key){const t=(0,i.normalizeEventKey)(e);g(t)&&h.release(t)}},C=()=>{h.releaseAll()};return{mount:()=>{let t=e;for(u+=1;t;)1===u&&(t.document.documentElement.addEventListener("keydown",m),c.push({event:"keydown",listener:m}),t.document.documentElement.addEventListener("keyup",w),c.push({event:"keyup",listener:w})),t.document.documentElement.addEventListener("keydown",p),t.document.documentElement.addEventListener("blur",C),t=(0,n.getParentWindow)(t)},unmount:()=>{let t=e;for(u-=1;t;){if(0===u){for(let e=0;e<c.length;e++){const{event:o,listener:s}=c[e];t.document.documentElement.removeEventListener(o,s)}c.length=0}t.document.documentElement.removeEventListener("keydown",p),t.document.documentElement.removeEventListener("blur",C),t=(0,n.getParentWindow)(t)}},isPressed:e=>h.isPressed(e),releasePressedKeys:()=>h.releaseAll()}},o(85639);var s=o(51737),i=o(98433),r=o(30581),n=o(43561),l=o(64254);const a=["meta","alt","shift","control"],h=(0,s.createKeysObserver)(),c=[];let u=0},10672:(e,t,o)=>{"use strict";var s=o(76277),i=o(64976),r=o(65985),n=o(86713),l=o(77618),a=o(74218),h=o(63884),c=o(69498)("find",TypeError);s({target:"Iterator",proto:!0,real:!0,forced:c},{find:function(e){l(this);try{n(e)}catch(e){h(this,"throw",e)}if(c)return i(c,this,e);var t=a(this),o=0;return r(t,function(t,s){if(e(t,o++))return s(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},10734:(e,t,o)=>{"use strict";var s=o(63884);e.exports=function(e,t,o){for(var i=e.length-1;i>=0;i--)if(void 0!==e[i])try{o=s(e[i].iterator,t,o)}catch(e){t="throw",o=e}if("throw"===t)throw o;return o}},10817:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.depthFirstPreOrder=n;var i=s(o(53726));o(88443),o(85639);const r=t.TRAVERSAL_DF_PRE="DF-pre-order";function n(e,t){let o=e.call(t,this);for(let s=0;s<this.childs.length;s++){if(!1===o)return!1;o=n.call(this.childs[s],e,t)}return o}const l=t.TRAVERSAL_DF_POST="DF-post-order";const a=t.TRAVERSAL_BF="BF";const h=a,c=new Map([[r,n],[l,function e(t,o){for(let s=0;s<this.childs.length;s++){if(!1===e.call(this.childs[s],t,o))return!1}return t.call(o,this)}],[a,function(e,t){const o=[this];!function s(){if(0===o.length)return;const i=o.shift();o.push(...i.childs),!1!==e.call(t,i)&&s()}()}]]);class u{constructor(e){(0,i.default)(this,"data",{}),(0,i.default)(this,"parent",null),(0,i.default)(this,"childs",[]),this.data=e}addChild(e){e.parent=this,this.childs.push(e)}cloneTree(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this;const t=new u({...e.data});for(let o=0;o<e.childs.length;o++)t.addChild(this.cloneTree(e.childs[o]));return t}replaceTreeWith(e){this.data={...e.data},this.childs=[];for(let t=0;t<e.childs.length;t++)this.addChild(e.childs[t])}walkDown(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;if(!c.has(t))throw new Error(`Traversal strategy "${t}" does not exist`);c.get(t).call(this,e,this)}walkUp(e){const t=this,o=s=>{!1!==e.call(t,s)&&null!==s.parent&&o(s.parent)};o(this)}}t.default=u},10880:(e,t)=>{"use strict";let o;t.__esModule=!0,t.cancelAnimationFrame=function(e){window.cancelAnimationFrame(e)},t.getComparisonFunction=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(o)return o;o="object"==typeof Intl?new Intl.Collator(e,t).compare:"function"==typeof String.prototype.localeCompare?(e,t)=>`${e}`.localeCompare(t):(e,t)=>e===t?0:e>t?-1:1;return o},t.isCSR=function(){return"undefined"!=typeof window},t.isTouchSupported=function(){return"ontouchstart"in window},t.requestAnimationFrame=function(e){return window.requestAnimationFrame(e)}},10982:(e,t,o)=>{"use strict";var s,i,r,n=o(6353),l=o(88005),a=o(19895),h=o(19952),c=o(54090),u=o(30334),d=o(86224),g=o(13884),f="Object already initialized",p=l.TypeError,m=l.WeakMap;if(n||u.state){var w=u.state||(u.state=new m);w.get=w.get,w.has=w.has,w.set=w.set,s=function(e,t){if(w.has(e))throw new p(f);return t.facade=e,w.set(e,t),t},i=function(e){return w.get(e)||{}},r=function(e){return w.has(e)}}else{var C=d("state");g[C]=!0,s=function(e,t){if(c(e,C))throw new p(f);return t.facade=e,h(e,C,t),t},i=function(e){return c(e,C)?e[C]:{}},r=function(e){return c(e,C)}}e.exports={set:s,get:i,has:r,enforce:function(e){return r(e)?i(e):s(e,{})},getterFor:function(e){return function(t){var o;if(!a(t)||(o=i(t)).type!==e)throw new p("Incompatible receiver, "+e+" required");return o}}}},11044:(e,t,o)=>{"use strict";var s=o(77181),i=Object;e.exports=function(e){return i(s(e))}},11235:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionUpByViewportHight",callback(e){const{selection:t}=e,{navigableHeaders:o}=e.getSettings(),s=o?e.countColHeaders():0,{row:i}=e.getSelectedRangeLast().highlight;let r=e.countVisibleRows()+s;r=0===r?-1:-r,i===-s?r=-1:i+r<s&&(r=-(i+s)),t.markSource("keyboard"),t.transformStart(r,0),t.markEndSource(),e.getSelectedRangeLast().highlight.row<0&&e.scrollViewportTo({row:0})}}},11417:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=s(o(68526)),n=s(o(66748));class l extends n.default{constructor(e,t,o){super(e,t),(0,i.default)(this,"cloneSource",void 0),(0,i.default)(this,"cloneOverlay",void 0);const s=this.wtSettings.getSetting("facade",this);this.cloneSource=o.source,this.cloneOverlay=o.overlay,this.wtTable=this.cloneOverlay.createTable(this.getTableDao(),s,this.domBindings,this.wtSettings),this.wtViewport=o.viewport,this.selectionManager=o.selectionManager,this.wtEvent=new r.default(s,this.domBindings,this.wtSettings,this.eventManager,this.wtTable,this.selectionManager,o.event),this.findOriginalHeaders()}}t.default=l},11510:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToColumns",callback(e){const{selection:t}=e,{highlight:o,from:s,to:i}=e.getSelectedRangeLast();t.markSource("keyboard"),t.isSelectedByRowHeader()?t.selectAll(!0,!0):e.selectColumns(s.col,i.col,o),t.markEndSource()}}},11666:(e,t)=>{"use strict";t.__esModule=!0;t.ACTIVE_HEADER_TYPE="active-header",t.HEADER_TYPE="header",t.AREA_TYPE="area",t.FOCUS_TYPE="focus",t.FILL_TYPE="fill",t.ROW_TYPE="row",t.COLUMN_TYPE="column",t.CUSTOM_SELECTION_TYPE="custom-selection"},11766:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(77766);t.RENDERER_TYPE=s.RENDERER_TYPE,t.timeRenderer=s.timeRenderer},11827:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(64310),n=o(433),l=o(18051);class a extends r.BaseAction{constructor(e){let{stateBefore:t,range:o,type:s,alignment:r}=e;super("cell_alignment"),(0,i.default)(this,"stateBefore",void 0),(0,i.default)(this,"range",void 0),(0,i.default)(this,"type",void 0),(0,i.default)(this,"alignment",void 0),this.stateBefore=t,this.range=o,this.type=s,this.alignment=r}static startRegisteringEvents(e,t){e.addHook("beforeCellAlignment",(e,o,s,i)=>{t.done(()=>new a({stateBefore:e,range:o,type:s,alignment:i}))})}undo(e,t){(0,l.arrayEach)(this.range,t=>{t.forAll((t,o)=>{t>=0&&o>=0&&e.setCellMeta(t,o,"className",this.stateBefore[t][o]||" htLeft")})}),e.addHookOnce("afterViewRender",t),e.render()}redo(e,t){(0,n.align)(this.range,this.type,this.alignment,(t,o)=>e.getCellMeta(t,o),(t,o,s,i)=>e.setCellMeta(t,o,s,i)),e.addHookOnce("afterViewRender",t),e.render()}}t.CellAlignmentAction=a},12013:e=>{function t(o){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},12379:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(85639),o(60591);var i=s(o(53726)),r=o(18051);t.default=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;(0,i.default)(this,"rootWindow",void 0),(0,i.default)(this,"prefix",void 0),(0,i.default)(this,"savedKeys",[]),this.rootWindow=t,this.prefix=e,this.loadSavedKeys()}saveValue(e,t){this.rootWindow.localStorage.setItem(`${this.prefix}_${e}`,JSON.stringify(t)),-1===this.savedKeys.indexOf(e)&&(this.savedKeys.push(e),this.saveSavedKeys())}loadValue(e,t){const o=void 0===e?t:e,s=this.rootWindow.localStorage.getItem(`${this.prefix}_${o}`);return null===s?void 0:JSON.parse(s)}reset(e){this.rootWindow.localStorage.removeItem(`${this.prefix}_${e}`)}resetAll(){(0,r.arrayEach)(this.savedKeys,(e,t)=>{this.rootWindow.localStorage.removeItem(`${this.prefix}_${this.savedKeys[t]}`)}),this.clearSavedKeys()}loadSavedKeys(){const e=this.rootWindow.localStorage.getItem(`${this.prefix}__persistentStateKeys`),t="string"==typeof e?JSON.parse(e):void 0;this.savedKeys=t||[]}saveSavedKeys(){this.rootWindow.localStorage.setItem(`${this.prefix}__persistentStateKeys`,JSON.stringify(this.savedKeys))}clearSavedKeys(){this.savedKeys.length=0,this.saveSavedKeys()}}},12403:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy",name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_COPY)},callback(){e.copyCellsOnly()},disabled(){if(0===this.countRows()||0===this.countCols())return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}};var s=o(30432)},12565:(e,t,o)=>{"use strict";t.__esModule=!0,t.rootComparator=function(e,t){return function(o,i){const[,...r]=o,[,...n]=i;return function o(i){const l=e[i],a=t[i],h=r[i],c=n[i],u=a.multiColumnSorting,d=(u.compareFunctionFactory?u.compareFunctionFactory:(0,s.getCompareFunctionFactory)(a.type))(l,a,u)(h,c);if(d===s.DO_NOT_SWAP){const e=i+1;if(void 0!==t[e])return o(e)}return d}(0)}};var s=o(17374)},12597:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(23150),i=o(82382);const r=t.CELL_TYPE="handsontable";t.HandsontableCellType={CELL_TYPE:r,editor:s.HandsontableEditor,renderer:i.handsontableRenderer}},12613:(e,t,o)=>{"use strict";t.__esModule=!0,t.rowHeaderScrollStrategy=function(e){return t=>{const o=(0,s.createScrollTargetCalculator)(e).getComputedRowTarget(t);e.scrollViewportTo({row:o},()=>{const t=!!e.getSettings().rowHeaders;(0,s.scrollWindowToCell)(e.getCell(o,t?-1:0,!0))})}};var s=o(64185)},12748:(e,t,o)=>{"use strict";t.__esModule=!0,o(88443);var s=o(65342),i=o(87203),r=o(18051),n=o(43561),l=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(30432)),a=o(7729),h=o(27022),c=o(38856);function u(e,t,o){d(e,t),t.set(e,o)}function d(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function g(e,t,o){return e.set(p(e,t),o),o}function f(e,t){return e.get(p(e,t))}function p(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var m=new WeakMap,w=new WeakMap,C=new WeakMap,v=new WeakMap,y=new WeakMap,E=new WeakSet;class S extends h.BaseUI{static get DEFAULTS(){return(0,i.clone)({className:"htUISelect",wrapIt:!1,tabIndex:-1})}constructor(e,t){var o,s;super(e,(0,i.extend)(S.DEFAULTS,t)),d(o=this,s=E),s.add(o),u(this,m,null),u(this,w,[]),u(this,C,void 0),u(this,v,void 0),u(this,y,void 0),this.registerHooks()}getMenu(){return f(m,this)}registerHooks(){this.addLocalHook("click",()=>p(E,this,_).call(this))}setItems(e){g(w,this,this.translateNames(e)),f(m,this)&&f(m,this).setMenuItems(f(w,this))}translateNames(e){return(0,r.arrayEach)(e,e=>{e.name=this.translateIfPossible(e.name)}),e}build(){super.build(),g(m,this,new s.Menu(this.hot,{className:"htSelectUI htFiltersConditionsMenu",keepInViewport:!1,standalone:!0,container:this.options.menuContainer})),f(m,this).setMenuItems(f(w,this));const e=new h.BaseUI(this.hot,{className:"htUISelectCaption"}),t=new h.BaseUI(this.hot,{className:"htUISelectDropdown"});g(C,this,e),g(v,this,e.element),g(y,this,t),this.hot.getSettings().ariaTags&&((0,n.setAttribute)(t.element,[(0,c.A11Y_HIDDEN)()]),(0,n.setAttribute)(this._element,[(0,c.A11Y_LISTBOX)()])),(0,r.arrayEach)([e,t],e=>this._element.appendChild(e.element)),f(m,this).addLocalHook("select",e=>p(E,this,R).call(this,e)),f(m,this).addLocalHook("afterClose",()=>p(E,this,b).call(this)),this.update()}update(){if(!this.isBuilt())return;let e;e=this.options.value?this.options.value.name:f(m,this).hot.getTranslatedPhrase(l.FILTERS_CONDITIONS_NONE),f(v,this).textContent=e,super.update()}openOptions(){const e=this.element.getBoundingClientRect();f(m,this)&&(f(m,this).open(),f(m,this).setPosition({left:this.hot.isLtr()?e.left-5:e.left-31,top:e.top-1,width:e.width,height:e.height}),f(m,this).getNavigator().toFirstItem(),f(m,this).getKeyboardShortcutsCtrl().addCustomShortcuts([{keys:[["Tab"],["Shift","Tab"]],callback:e=>{this.closeOptions(),this.runLocalHooks("tabKeydown",e)}},{keys:[["Control/Meta","A"]],callback:()=>!1}]))}closeOptions(){f(m,this)&&f(m,this).close()}focus(){this.isBuilt()&&this.element.focus()}destroy(){f(m,this)&&(f(m,this).destroy(),g(m,this,null)),f(C,this)&&f(C,this).destroy(),f(y,this)&&f(y,this).destroy(),super.destroy()}}function R(e){e.name!==a.SEPARATOR&&(this.options.value=e,this.update(),this.runLocalHooks("select",this.options.value))}function b(){this.runLocalHooks("afterClose")}function _(){this.openOptions()}t.SelectUI=S},12822:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=o(60987);t.ViewportColumnsCalculator=i.ViewportColumnsCalculator,t.ViewportRowsCalculator=i.ViewportRowsCalculator,t.DEFAULT_COLUMN_WIDTH=i.DEFAULT_COLUMN_WIDTH;var r=s(o(14005));t.CellCoords=r.default;var n=s(o(58826));t.CellRange=n.default;var l=s(o(94338));t.default=l.default,t.Core=l.default;var a=o(52783);t.Selection=a.Selection,t.HIGHLIGHT_ACTIVE_HEADER_TYPE=a.ACTIVE_HEADER_TYPE,t.HIGHLIGHT_AREA_TYPE=a.AREA_TYPE,t.HIGHLIGHT_FOCUS_TYPE=a.FOCUS_TYPE,t.HIGHLIGHT_FILL_TYPE=a.FILL_TYPE,t.HIGHLIGHT_HEADER_TYPE=a.HEADER_TYPE,t.HIGHLIGHT_ROW_TYPE=a.ROW_TYPE,t.HIGHLIGHT_COLUMN_TYPE=a.COLUMN_TYPE,t.HIGHLIGHT_CUSTOM_SELECTION_TYPE=a.CUSTOM_SELECTION_TYPE;var h=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(19440));t.Renderer=h;var c=o(65798);t.OrderView=c.OrderView,t.SharedOrderView=c.SharedOrderView;var u=o(8487);t.NodesPool=u.NodesPool;var d=o(87505);t.getListenersCounter=d.getListenersCounter},12941:(e,t,o)=>{"use strict";t.__esModule=!0,t.getRegisteredHotInstances=function(e){var t;const o=c(),s=0===o.size?[]:Array.from(null!==(t=o.get(e))&&void 0!==t?t:[]);return new Map(s.map(e=>[e.getPlugin("formulas").sheetId,e]))},t.registerCustomFunctions=g,t.registerEngine=d,t.registerLanguage=f,t.registerNamedExpressions=p,t.setupEngine=function(e){const t=e.getSettings(),o=t[a.PLUGIN_KEY],s=null==o?void 0:o.engine;if(!0===o)return null;if((0,i.isUndefined)(s))return null;var g;if("function"==typeof s.hyperformula||"function"==typeof s)return d(null!==(g=s.hyperformula)&&void 0!==g?g:s,t,e);if("object"==typeof s&&(0,i.isUndefined)(s.hyperformula)){const t=c(),o=u().get(s);return t.has(s)||t.set(s,[]),t.get(s).push(e),o&&o.push(e.guid),s.getConfig().licenseKey||s.updateConfig({licenseKey:h.DEFAULT_LICENSE_KEY}),s.getConfig().leapYear1900===h.DEFAULT_SETTINGS.leapYear1900&&!1!==(0,l.isObjectEqual)(s.getConfig().nullDate,h.DEFAULT_SETTINGS.nullDate)||(0,n.warn)(r.toSingleLine`If you use HyperFormula with Handsontable, keep the default \`leapYear1900\` and \`nullDate\`
|
|
40
40
|
settings. Otherwise, HyperFormula's dates may not sync correctly with Handsontable's dates.`),s}return null},t.setupSheet=function(e,t){!(0,i.isUndefined)(t)&&e.doesSheetExist(t)||(t=e.addSheet(t));return t},t.unregisterEngine=function(e,t){if(e){const o=c(),s=o.get(e),i=u(),r=i.get(e);s&&s.includes(t)&&(s.splice(s.indexOf(t),1),0===s.length&&o.delete(e)),r&&r.includes(t.guid)&&(r.splice(r.indexOf(t.guid),1),0===r.length&&(i.delete(e),e.destroy()))}},o(85639),o(73741),o(69326),o(90795);var s=o(37363),i=o(50929),r=o(5651),n=o(88291),l=o(87203),a=o(50336),h=o(75845);function c(){const e="engine_relationship",t=(0,s.staticRegister)(a.PLUGIN_KEY);return t.hasItem(e)||t.register(e,new Map),t.getItem(e)}function u(){const e="shared_engine_usage",t=(0,s.staticRegister)(a.PLUGIN_KEY);return t.hasItem(e)||t.register(e,new Map),t.getItem(e)}function d(e,t,o){const s=t[a.PLUGIN_KEY],i=(0,h.getEngineSettingsWithDefaultsAndOverrides)(t),r=c(),n=u();g(e,s.functions),f(e,s.language);const l=e.buildEmpty(i);return r.set(l,[o]),n.set(l,[o.guid]),p(l,s.namedExpressions),l.on("sheetAdded",()=>{l.rebuildAndRecalculate()}),l.on("sheetRemoved",()=>{l.rebuildAndRecalculate()}),l}function g(e,t){t&&t.forEach(t=>{const{name:o,plugin:s,translations:i}=t;try{e.registerFunction(o,s,i)}catch(e){(0,n.warn)(e.message)}})}function f(e,t){if(t){const{langCode:o}=t;try{e.registerLanguage(o,t)}catch(e){(0,n.warn)(e.message)}}}function p(e,t){t&&(e.suspendEvaluation(),t.forEach(t=>{const{name:o,expression:s,scope:i,options:r}=t;try{e.addNamedExpression(o,s,i,r)}catch(e){(0,n.warn)(e.message)}}),e.resumeEvaluation())}},12947:(e,t,o)=>{"use strict";var s=o(53385),i=o(25225);e.exports=function(e){if("Function"===s(e))return i(e)}},13e3:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(1006),n=s(o(87505)),l=o(64254),a=o(43561),h=o(59073),c=o(80463),u=o(50929),d=o(49075),g=o(38856);const f="ht_editor_hidden",p="textEditor",m=t.EDITOR_TYPE="text";class w extends r.BaseEditor{static get EDITOR_TYPE(){return m}constructor(e){super(e),(0,i.default)(this,"eventManager",new n.default(this)),(0,i.default)(this,"autoResize",(0,c.createInputElementResizer)(this.hot.rootDocument)),(0,i.default)(this,"TEXTAREA",void 0),(0,i.default)(this,"textareaStyle",void 0),(0,i.default)(this,"TEXTAREA_PARENT",void 0),(0,i.default)(this,"textareaParentStyle",void 0),(0,i.default)(this,"layerClass",void 0),this.eventManager=new n.default(this),this.createElements(),this.bindEvents(),this.hot.addHookOnce("afterDestroy",()=>this.destroy())}getValue(){return this.TEXTAREA.value}setValue(e){this.TEXTAREA.value=e}open(){this._opened=!0,this.refreshDimensions(),this.showEditableElement(),this.hot.getShortcutManager().setActiveContextName("editor"),this.registerShortcuts()}close(){this._opened=!1,this.autoResize.unObserve(),(0,a.isInternalElement)(this.hot.rootDocument.activeElement,this.hot.rootElement)&&this.hot.listen(),this.hideEditableElement(),this.unregisterShortcuts()}prepare(e,t,o,s,i,n){const l=this.state;if(super.prepare(e,t,o,s,i,n),!n.readOnly){this.refreshDimensions(!0);const{allowInvalid:e}=n;e&&!this.isOpened()&&(this.TEXTAREA.value=""),l===r.EDITOR_STATE.FINISHED||this.isOpened()||this.hideEditableElement()}}beginEditing(e,t){this.state===r.EDITOR_STATE.VIRGIN&&(this.TEXTAREA.value="",super.beginEditing(e,t))}focus(){this.TEXTAREA.select(),(0,a.setCaretPosition)(this.TEXTAREA,this.TEXTAREA.value.length)}createElements(){const{rootDocument:e}=this.hot;this.TEXTAREA=e.createElement("TEXTAREA"),(0,a.setAttribute)(this.TEXTAREA,[["data-hot-input",""],(0,g.A11Y_TABINDEX)(-1)]),(0,a.addClass)(this.TEXTAREA,"handsontableInput"),this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,this.textareaStyle.overflowY="visible",this.TEXTAREA_PARENT=e.createElement("DIV"),(0,a.addClass)(this.TEXTAREA_PARENT,"handsontableInputHolder"),(0,a.hasClass)(this.TEXTAREA_PARENT,this.layerClass)&&(0,a.removeClass)(this.TEXTAREA_PARENT,this.layerClass),(0,a.addClass)(this.TEXTAREA_PARENT,f),this.textareaParentStyle=this.TEXTAREA_PARENT.style,this.TEXTAREA_PARENT.appendChild(this.TEXTAREA),this.hot.rootElement.appendChild(this.TEXTAREA_PARENT)}hideEditableElement(){(0,l.isEdge)()&&(this.textareaStyle.textIndent="-99999px"),this.textareaStyle.overflowY="visible",this.textareaParentStyle.opacity="0",this.textareaParentStyle.height="1px",(0,a.removeClass)(this.TEXTAREA_PARENT,this.layerClass),(0,a.addClass)(this.TEXTAREA_PARENT,f)}showEditableElement(){this.textareaParentStyle.height="",this.textareaParentStyle.overflow="",this.textareaParentStyle.position="",this.textareaParentStyle[this.hot.isRtl()?"left":"right"]="auto",this.textareaParentStyle.opacity="1",this.textareaStyle.textIndent="";const e=this.TEXTAREA_PARENT.childNodes;let t=!1;(0,h.rangeEach)(e.length-1,o=>{const s=e[o];if((0,a.hasClass)(s,"handsontableEditor"))return t=!0,!1}),(0,a.hasClass)(this.TEXTAREA_PARENT,f)&&(0,a.removeClass)(this.TEXTAREA_PARENT,f),t?(this.layerClass="ht_editor_visible",(0,a.addClass)(this.TEXTAREA_PARENT,this.layerClass)):(this.layerClass=this.getEditedCellsLayerClass(),(0,a.addClass)(this.TEXTAREA_PARENT,this.layerClass))}refreshValue(){const e=this.hot.toPhysicalRow(this.row),t=this.hot.getSourceDataAtCell(e,this.col);this.originalValue=t,this.setValue(t),this.refreshDimensions()}refreshDimensions(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.state!==r.EDITOR_STATE.EDITING&&!e)return;if(this.TD=this.getEditedCell(),!this.TD)return void(e||this.close());const{top:t,start:o,width:s,maxWidth:i,height:n,maxHeight:l}=this.getEditedCellRect();this.textareaParentStyle.top=`${t}px`,this.textareaParentStyle[this.hot.isRtl()?"right":"left"]=`${o}px`,this.showEditableElement();const a=this.hot.rootWindow.getComputedStyle(this.TD);this.TEXTAREA.style.fontSize=a.fontSize,this.TEXTAREA.style.fontFamily=a.fontFamily,this.TEXTAREA.style.backgroundColor=this.TD.style.backgroundColor,this.autoResize.init(this.TEXTAREA,{minWidth:Math.min(s,i),minHeight:Math.min(n,l),maxWidth:i,maxHeight:l},!0)}bindEvents(){(0,l.isIOS)()&&this.eventManager.addEventListener(this.TEXTAREA,"focusout",()=>this.finishEditing(!1)),this.addHook("afterScrollHorizontally",()=>this.refreshDimensions()),this.addHook("afterScrollVertically",()=>this.refreshDimensions()),this.addHook("afterColumnResize",()=>{this.refreshDimensions(),this.state===r.EDITOR_STATE.EDITING&&this.focus()}),this.addHook("afterRowResize",()=>{this.refreshDimensions(),this.state===r.EDITOR_STATE.EDITING&&this.focus()})}allowKeyEventPropagation(){}destroy(){this.eventManager.destroy(),this.clearHooks()}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("editor"),t={runOnlyIf:()=>(0,u.isDefined)(this.hot.getSelected()),group:p},o=()=>{this.hot.rootDocument.execCommand("insertText",!1,"\n")};e.addShortcuts([{keys:[["Control","Enter"]],callback:()=>(o(),!1),runOnlyIf:e=>!this.hot.selection.isMultiple()&&!e.altKey},{keys:[["Meta","Enter"]],callback:()=>(o(),!1),runOnlyIf:()=>!this.hot.selection.isMultiple()},{keys:[["Alt","Enter"]],callback:()=>(o(),!1)},{keys:[["Home"]],callback:(e,t)=>{let[o]=t;(0,d.updateCaretPosition)(o,this.TEXTAREA)}},{keys:[["End"]],callback:(e,t)=>{let[o]=t;(0,d.updateCaretPosition)(o,this.TEXTAREA)}}],t)}unregisterShortcuts(){this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(p)}}t.TextEditor=w},13150:(e,t,o)=>{"use strict";var s=o(68999),i=Function.prototype,r=i.apply,n=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(s?n.bind(r):function(){return n.apply(r,arguments)})},13192:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443);var i=s(o(53726)),r=o(44233),n=s(o(3102)),l=s(o(71115));function a(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}const h=t.PLUGIN_KEY="bindRowsWithHeaders",c=t.PLUGIN_PRIORITY=210,u=new Map([["loose",n.default],["strict",l.default]]);var d=new WeakSet;class g extends r.BasePlugin{constructor(){super(...arguments),a(this,d),(0,i.default)(this,"headerIndexes",null)}static get PLUGIN_KEY(){return h}static get PLUGIN_PRIORITY(){return c}isEnabled(){return!!this.hot.getSettings()[h]}enablePlugin(){var e;if(this.enabled)return;const t=null!==(e=u.get(this.getSetting()))&&void 0!==e?e:u.get("loose");this.headerIndexes=this.hot.rowIndexMapper.registerMap("bindRowsWithHeaders",new t),this.addHook("modifyRowHeader",e=>function(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}(d,this,f).call(this,e)),super.enablePlugin()}disablePlugin(){this.hot.rowIndexMapper.unregisterMap("bindRowsWithHeaders"),super.disablePlugin()}destroy(){super.destroy()}}function f(e){return this.headerIndexes.getValueAtIndex(this.hot.toPhysicalRow(e))}t.BindRowsWithHeaders=g},13251:(e,t,o)=>{"use strict";t.__esModule=!0,t.registerAllRenderers=function(){(0,f.registerRenderer)(s.autocompleteRenderer),(0,f.registerRenderer)(i.baseRenderer),(0,f.registerRenderer)(n.checkboxRenderer),(0,f.registerRenderer)(r.dropdownRenderer),(0,f.registerRenderer)(l.handsontableRenderer),(0,f.registerRenderer)(a.htmlRenderer),(0,f.registerRenderer)(h.numericRenderer),(0,f.registerRenderer)(c.passwordRenderer),(0,f.registerRenderer)(u.selectRenderer),(0,f.registerRenderer)(d.textRenderer),(0,f.registerRenderer)(g.timeRenderer)};var s=o(29599);t.autocompleteRenderer=s.autocompleteRenderer,t.AUTOCOMPLETE_RENDERER=s.RENDERER_TYPE;var i=o(14466);t.baseRenderer=i.baseRenderer,t.BASE_RENDERER=i.RENDERER_TYPE;var r=o(8418);t.dropdownRenderer=r.dropdownRenderer,t.DROPDOWN_RENDERER=r.RENDERER_TYPE;var n=o(84406);t.checkboxRenderer=n.checkboxRenderer,t.CHECKBOX_RENDERER=n.RENDERER_TYPE;var l=o(82382);t.handsontableRenderer=l.handsontableRenderer,t.HANDSONTABLE_RENDERER=l.RENDERER_TYPE;var a=o(39026);t.htmlRenderer=a.htmlRenderer,t.HTML_RENDERER=a.RENDERER_TYPE;var h=o(74884);t.numericRenderer=h.numericRenderer,t.NUMERIC_RENDERER=h.RENDERER_TYPE;var c=o(51334);t.passwordRenderer=c.passwordRenderer,t.PASSWORD_RENDERER=c.RENDERER_TYPE;var u=o(8571);t.selectRenderer=u.selectRenderer,t.SELECT_RENDERER=u.RENDERER_TYPE;var d=o(40672);t.textRenderer=d.textRenderer,t.TEXT_RENDERER=d.RENDERER_TYPE;var g=o(11766);t.timeRenderer=g.timeRenderer,t.TIME_RENDERER=g.RENDERER_TYPE;var f=o(80380);t.registerRenderer=f.registerRenderer,t.getRegisteredRendererNames=f.getRegisteredRendererNames,t.getRegisteredRenderers=f.getRegisteredRenderers,t.getRenderer=f.getRenderer,t.hasRenderer=f.hasRenderer},13773:(e,t,o)=>{"use strict";o(73741),o(69326),t.__esModule=!0;var s={BottomInlineStartCornerOverlay:!0,BottomOverlay:!0,InlineStartOverlay:!0,Overlay:!0,TopInlineStartCornerOverlay:!0,TopOverlay:!0},i=o(53830);t.BottomInlineStartCornerOverlay=i.BottomInlineStartCornerOverlay;var r=o(98646);t.BottomOverlay=r.BottomOverlay;var n=o(81250);t.InlineStartOverlay=n.InlineStartOverlay;var l=o(59129);t.Overlay=l.Overlay;var a=o(78546);t.TopInlineStartCornerOverlay=a.TopInlineStartCornerOverlay;var h=o(88498);t.TopOverlay=h.TopOverlay;var c=o(72644);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===c[e]||(t[e]=c[e]))})},13794:(e,t,o)=>{"use strict";var s=o(42806),i=String;e.exports=function(e){if("Symbol"===s(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},13869:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639);var i=s(o(53726)),r=o(43561),n=s(o(87505)),l=o(30581),a=s(o(12822)),h=o(55826),c=o(32883),u=o(37363),d=o(38856);function g(e,t,o){f(e,t),t.set(e,o)}function f(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function p(e,t){return e.get(w(e,t))}function m(e,t,o){return e.set(w(e,t),o),o}function w(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var C=new WeakMap,v=new WeakMap,y=new WeakMap,E=new WeakMap,S=new WeakMap,R=new WeakMap,b=new WeakMap,_=new WeakMap,T=new WeakSet;function M(){return parseInt(this.hot.rootElement.getAttribute((0,d.A11Y_COLCOUNT)()[0]),10)}function I(e){const t=w(T,this,M).call(this)+e;(0,r.setAttribute)(this.hot.rootElement,...(0,d.A11Y_COLCOUNT)(t))}function O(){const e=this.hot.rootElement;this.hasVerticalScroll()?(0,r.addClass)(e,"htHasScrollY"):(0,r.removeClass)(e,"htHasScrollY"),this.hasHorizontalScroll()?(0,r.addClass)(e,"htHasScrollX"):(0,r.removeClass)(e,"htHasScrollX")}t.default=class{constructor(e){var t,o;f(t=this,o=T),o.add(t),(0,i.default)(this,"hot",void 0),(0,i.default)(this,"eventManager",void 0),(0,i.default)(this,"settings",void 0),(0,i.default)(this,"THEAD",void 0),(0,i.default)(this,"TBODY",void 0),(0,i.default)(this,"_wt",void 0),(0,i.default)(this,"activeWt",void 0),g(this,C,0),g(this,v,0),(0,i.default)(this,"postponedAdjustElementsSize",!1),g(this,y,!1),g(this,E,void 0),g(this,S,void 0),g(this,R,0),g(this,b,0),g(this,_,null),this.hot=e,this.eventManager=new n.default(this.hot),this.settings=this.hot.getSettings(),this.createElements(),this.registerEvents(),this.initializeWalkontable()}render(){if(!this.hot.isRenderSuspended()){const e=this.hot.forceFullRender;this.hot.runHooks("beforeRender",e),this.postponedAdjustElementsSize&&(this.postponedAdjustElementsSize=!1,this.adjustElementsSize()),this._wt.draw(!e),w(T,this,O).call(this),this.hot.runHooks("afterRender",e),this.hot.forceFullRender=!1}}adjustElementsSize(){this.hot.isRenderSuspended()?this.postponedAdjustElementsSize=!0:this._wt.wtOverlays.adjustElementsSize()}getCellAtCoords(e,t){const o=this._wt.getCell(e,t);return o<0?null:o}scrollViewport(e,t,o){return this._wt.scrollViewport(e,t,o)}scrollViewportHorizontally(e,t){return this._wt.scrollViewportHorizontally(e,t)}scrollViewportVertically(e,t){return this._wt.scrollViewportVertically(e,t)}createElements(){const{rootElement:e,rootDocument:t}=this.hot,o=e.getAttribute("style");o&&e.setAttribute("data-originalstyle",o),(0,r.addClass)(e,"handsontable"),m(S,this,t.createElement("TABLE")),(0,r.addClass)(p(S,this),"htCore"),this.hot.getSettings().tableClassName&&(0,r.addClass)(p(S,this),this.hot.getSettings().tableClassName),this.settings.ariaTags&&((0,r.setAttribute)(p(S,this),[(0,d.A11Y_PRESENTATION)()]),(0,r.setAttribute)(e,[(0,d.A11Y_TREEGRID)(),(0,d.A11Y_ROWCOUNT)(-1),(0,d.A11Y_COLCOUNT)(this.hot.countCols()),(0,d.A11Y_MULTISELECTABLE)()])),this.THEAD=t.createElement("THEAD"),p(S,this).appendChild(this.THEAD),this.TBODY=t.createElement("TBODY"),p(S,this).appendChild(this.TBODY),this.hot.table=p(S,this),this.hot.container.insertBefore(p(S,this),this.hot.container.firstChild)}registerEvents(){const{rootElement:e,rootDocument:t,selection:o,rootWindow:s}=this.hot,i=t.documentElement;this.eventManager.addEventListener(e,"mousedown",e=>{m(y,this,!0),this.isTextSelectionAllowed(e.target)||((0,r.clearTextSelection)(s),e.preventDefault(),s.focus())}),this.eventManager.addEventListener(e,"mouseup",()=>{m(y,this,!1)}),this.eventManager.addEventListener(e,"mousemove",e=>{p(y,this)&&!this.isTextSelectionAllowed(e.target)&&(this.settings.fragmentSelection&&(0,r.clearTextSelection)(s),e.preventDefault())}),this.eventManager.addEventListener(i,"keyup",e=>{o.isInProgress()&&!e.shiftKey&&o.finish()}),this.eventManager.addEventListener(i,"mouseup",s=>{o.isInProgress()&&(0,l.isLeftClick)(s)&&o.finish(),m(E,this,!1);const i=(0,r.isOutsideInput)(t.activeElement);(0,r.isInput)(t.activeElement)&&!i||!i&&(o.isSelected()||o.isSelectedByAnyHeader()||e.contains(s.target)||(0,l.isRightClick)(s))||this.hot.unlisten()}),this.eventManager.addEventListener(i,"contextmenu",e=>{o.isInProgress()&&(0,l.isRightClick)(e)&&(o.finish(),m(E,this,!1))}),this.eventManager.addEventListener(i,"touchend",()=>{o.isInProgress()&&o.finish(),m(E,this,!1)}),this.eventManager.addEventListener(i,"mousedown",o=>{const s=o.target,n=o.x||o.clientX,l=o.y||o.clientY;let a=o.target;if(p(E,this)||!e||!this.hot.view)return;const{holder:h}=this._wt.wtTable;if(a===h){const e=(0,r.getScrollbarWidth)(t);if(t.elementFromPoint(n+e,l)!==h||t.elementFromPoint(n,l+e)!==h)return}else for(;a!==i;){if(null===a){if(o.isTargetWebComponent)break;return}if(a===e)return;a=a.parentNode}("function"==typeof this.settings.outsideClickDeselects?this.settings.outsideClickDeselects(s):this.settings.outsideClickDeselects)?this.hot.deselectCell():this.hot.destroyEditor(!1,!1)});let n=(0,r.getParentWindow)(s);for(;null!==n;)this.eventManager.addEventListener(n.document.documentElement,"click",()=>{this.hot.unlisten()}),n=(0,r.getParentWindow)(n);this.eventManager.addEventListener(p(S,this),"selectstart",e=>{this.settings.fragmentSelection||(0,r.isInput)(e.target)||e.preventDefault()})}translateFromRenderableToVisualCoords(e){let{row:t,col:o}=e;return this.hot._createCellCoords(...this.translateFromRenderableToVisualIndex(t,o))}translateFromRenderableToVisualIndex(e,t){let o=e>=0?this.hot.rowIndexMapper.getVisualFromRenderableIndex(e):e,s=t>=0?this.hot.columnIndexMapper.getVisualFromRenderableIndex(t):t;return null===o&&(o=e),null===s&&(s=t),[o,s]}countRenderableIndexes(e,t){const o=Math.min(e.getNotTrimmedIndexesLength(),t),s=e.getNearestNotHiddenIndex(o-1,-1);return null===s?0:e.getRenderableFromVisualIndex(s)+1}countRenderableColumns(){return this.countRenderableIndexes(this.hot.columnIndexMapper,this.settings.maxCols)}countRenderableRows(){return this.countRenderableIndexes(this.hot.rowIndexMapper,this.settings.maxRows)}countNotHiddenRowIndexes(e,t){return this.countNotHiddenIndexes(e,t,this.hot.rowIndexMapper,this.countRenderableRows())}countNotHiddenColumnIndexes(e,t){return this.countNotHiddenIndexes(e,t,this.hot.columnIndexMapper,this.countRenderableColumns())}countNotHiddenIndexes(e,t,o,s){if(isNaN(e)||e<0)return 0;const i=o.getNearestNotHiddenIndex(e,t),r=o.getRenderableFromVisualIndex(i);if(!Number.isInteger(r))return 0;let n=0;return t<0?n=r+1:t>0&&(n=s-r),n}countNotHiddenFixedColumnsStart(){const e=this.hot.countCols(),t=Math.min(parseInt(this.settings.fixedColumnsStart,10),e)-1;return this.countNotHiddenColumnIndexes(t,-1)}countNotHiddenFixedRowsTop(){const e=this.hot.countRows(),t=Math.min(parseInt(this.settings.fixedRowsTop,10),e)-1;return this.countNotHiddenRowIndexes(t,-1)}countNotHiddenFixedRowsBottom(){const e=this.hot.countRows(),t=Math.max(e-parseInt(this.settings.fixedRowsBottom,10),0);return this.countNotHiddenRowIndexes(t,1)}countRenderableColumnsInRange(e,t){let o=0;for(let s=e;s<=t;s++)null!==this.hot.columnIndexMapper.getRenderableFromVisualIndex(s)&&(o+=1);return o}countRenderableRowsInRange(e,t){let o=0;for(let s=e;s<=t;s++)null!==this.hot.rowIndexMapper.getRenderableFromVisualIndex(s)&&(o+=1);return o}addClassNameToLicenseElement(e){var t;const o=null===(t=this.hot.rootElement.parentNode)||void 0===t?void 0:t.querySelector(".hot-display-license-info");o&&(0,r.addClass)(o,e)}removeClassNameFromLicenseElement(e){var t;const o=null===(t=this.hot.rootElement.parentNode)||void 0===t?void 0:t.querySelector(".hot-display-license-info");o&&(0,r.removeClass)(o,e)}isMainTableNotFullyCoveredByOverlays(){const e=this.countNotHiddenFixedRowsTop()+this.countNotHiddenFixedRowsBottom(),t=this.countNotHiddenFixedColumnsStart();return this.hot.countRenderedRows()>e&&this.hot.countRenderedCols()>t}initializeWalkontable(){const e={ariaTags:this.settings.ariaTags,rtlMode:this.hot.isRtl(),externalRowCalculator:this.hot.getPlugin("autoRowSize")&&this.hot.getPlugin("autoRowSize").isEnabled(),table:p(S,this),isDataViewInstance:()=>(0,c.isRootInstance)(this.hot),preventOverflow:()=>this.settings.preventOverflow,preventWheel:()=>this.settings.preventWheel,viewportColumnRenderingThreshold:()=>this.settings.viewportColumnRenderingThreshold,viewportRowRenderingThreshold:()=>this.settings.viewportRowRenderingThreshold,data:(e,t)=>this.hot.getDataAtCell(...this.translateFromRenderableToVisualIndex(e,t)),totalRows:()=>this.countRenderableRows(),totalColumns:()=>this.countRenderableColumns(),fixedColumnsStart:()=>this.countNotHiddenFixedColumnsStart(),fixedRowsTop:()=>this.countNotHiddenFixedRowsTop(),fixedRowsBottom:()=>this.countNotHiddenFixedRowsBottom(),shouldRenderInlineStartOverlay:()=>this.settings.fixedColumnsStart>0||e.rowHeaders().length>0,shouldRenderTopOverlay:()=>this.settings.fixedRowsTop>0||e.columnHeaders().length>0,shouldRenderBottomOverlay:()=>this.settings.fixedRowsBottom>0,minSpareRows:()=>this.settings.minSpareRows,renderAllRows:this.settings.renderAllRows,renderAllColumns:this.settings.renderAllColumns,rowHeaders:()=>{const e=[];return this.hot.hasRowHeaders()&&e.push((e,t)=>{const o=e>=0?this.hot.rowIndexMapper.getVisualFromRenderableIndex(e):e;this.appendRowHeader(o,t)}),this.hot.runHooks("afterGetRowHeaderRenderers",e),m(v,this,e.length),this.hot.getSettings().ariaTags&&w(T,this,M).call(this)===this.hot.countCols()&&w(T,this,I).call(this,p(v,this)),e},columnHeaders:()=>{const e=[];return this.hot.hasColHeaders()&&e.push((e,t)=>{const o=e>=0?this.hot.columnIndexMapper.getVisualFromRenderableIndex(e):e;this.appendColHeader(o,t)}),this.hot.runHooks("afterGetColumnHeaderRenderers",e),m(C,this,e.length),e},columnWidth:e=>{const t=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e);return this.hot.getColWidth(null===t?e:t)},rowHeight:e=>{const t=this.hot.rowIndexMapper.getVisualFromRenderableIndex(e);return this.hot.getRowHeight(null===t?e:t)},rowHeightByOverlayName:(e,t)=>{const o=this.hot.rowIndexMapper.getVisualFromRenderableIndex(e),s=null===o?e:o;return this.hot.runHooks("modifyRowHeightByOverlayName",this.hot.getRowHeight(s),s,t)},cellRenderer:(e,t,o)=>{const[s,i]=this.translateFromRenderableToVisualIndex(e,t),r=this.hot.runHooks("modifyGetCellCoords",s,i,!1,"meta");let n=s,l=i;Array.isArray(r)&&([n,l]=r);const a=this.hot.getCellMeta(n,l),h=this.hot.colToProp(l);let c=this.hot.getDataAtRowProp(n,h);this.hot.hasHook("beforeValueRender")&&(c=this.hot.runHooks("beforeValueRender",c,a)),this.hot.runHooks("beforeRenderer",o,s,i,h,c,a),this.hot.getCellRenderer(a)(this.hot,o,s,i,h,c,a),this.hot.runHooks("afterRenderer",o,s,i,h,c,a)},selections:this.hot.selection.highlight,hideBorderOnMouseDownOver:()=>this.settings.fragmentSelection,onWindowResize:()=>{this.hot&&!this.hot.isDestroyed&&this.hot.refreshDimensions()},onContainerElementResize:()=>{this.hot&&!this.hot.isDestroyed&&(0,r.isVisible)(this.hot.rootElement)&&this.hot.refreshDimensions()},onCellMouseDown:(e,t,o,s)=>{const i=this.translateFromRenderableToVisualCoords(t),r={row:!1,column:!1,cell:!1};this.hot.listen(),this.activeWt=s,m(E,this,!0),m(_,this,{x:e.clientX,y:e.clientY}),this.hot.runHooks("beforeOnCellMouseDown",e,i,o,r),(0,l.isImmediatePropagationStopped)(e)||((0,h.handleMouseEvent)(e,{coords:i,selection:this.hot.selection,controller:r,cellCoordsFactory:(e,t)=>this.hot._createCellCoords(e,t)}),this.hot.runHooks("afterOnCellMouseDown",e,i,o),this.activeWt=this._wt)},onCellContextMenu:(e,t,o,s)=>{const i=this.translateFromRenderableToVisualCoords(t);this.activeWt=s,m(E,this,!1),this.hot.selection.isInProgress()&&this.hot.selection.finish(),this.hot.runHooks("beforeOnCellContextMenu",e,i,o),(0,l.isImmediatePropagationStopped)(e)||(this.hot.runHooks("afterOnCellContextMenu",e,i,o),this.activeWt=this._wt)},onCellMouseOut:(e,t,o,s)=>{const i=this.translateFromRenderableToVisualCoords(t);this.activeWt=s,this.hot.runHooks("beforeOnCellMouseOut",e,i,o),(0,l.isImmediatePropagationStopped)(e)||(this.hot.runHooks("afterOnCellMouseOut",e,i,o),this.activeWt=this._wt)},onCellMouseOver:(e,t,o,s)=>{const i=this.translateFromRenderableToVisualCoords(t),r={row:!1,column:!1,cell:!1};this.activeWt=s,this.hot.runHooks("beforeOnCellMouseOver",e,i,o,r),(0,l.isImmediatePropagationStopped)(e)||(!p(E,this)||p(_,this)&&p(_,this).x===e.clientX&&p(_,this).y===e.clientY||(0,h.handleMouseEvent)(e,{coords:i,selection:this.hot.selection,controller:r,cellCoordsFactory:(e,t)=>this.hot._createCellCoords(e,t)}),this.hot.runHooks("afterOnCellMouseOver",e,i,o),this.activeWt=this._wt,m(_,this,null))},onCellMouseUp:(e,t,o,s)=>{const i=this.translateFromRenderableToVisualCoords(t);this.activeWt=s,this.hot.runHooks("beforeOnCellMouseUp",e,i,o),(0,l.isImmediatePropagationStopped)(e)||this.hot.isDestroyed||((0,h.handleMouseEvent)(e,{coords:i,selection:this.hot.selection,cellRangeMapper:(0,u.resolveWithInstance)(this.hot,"cellRangeMapper")}),this.hot.runHooks("afterOnCellMouseUp",e,i,o),this.activeWt=this._wt)},onCellCornerMouseDown:e=>{e.preventDefault(),this.hot.runHooks("afterOnCellCornerMouseDown",e)},onCellCornerDblClick:e=>{e.preventDefault(),this.hot.runHooks("afterOnCellCornerDblClick",e)},beforeDraw:(e,t)=>this.beforeRender(e,t),onDraw:e=>this.afterRender(e),onBeforeViewportScrollVertically:(e,t)=>{const o=this.hot.rowIndexMapper,s=e<0;let i=e;return s||(i=o.getVisualFromRenderableIndex(e),null!==i)?(i=this.hot.runHooks("beforeViewportScrollVertically",i,t),this.hot.runHooks("beforeViewportScroll"),s?i:o.getRenderableFromVisualIndex(i)):e},onBeforeViewportScrollHorizontally:(e,t)=>{const o=this.hot.columnIndexMapper,s=e<0;let i=e;return s||(i=o.getVisualFromRenderableIndex(e),null!==i)?(i=this.hot.runHooks("beforeViewportScrollHorizontally",i,t),this.hot.runHooks("beforeViewportScroll"),s?i:o.getRenderableFromVisualIndex(i)):e},onScrollVertically:()=>{this.hot.runHooks("afterScrollVertically"),this.hot.runHooks("afterScroll")},onScrollHorizontally:()=>{this.hot.runHooks("afterScrollHorizontally"),this.hot.runHooks("afterScroll")},onBeforeRemoveCellClassNames:()=>this.hot.runHooks("beforeRemoveCellClassNames"),onBeforeHighlightingRowHeader:(e,t,o)=>{const s=this.hot.rowIndexMapper,i=e<0;let r=e;i||(r=s.getVisualFromRenderableIndex(e));const n=this.hot.runHooks("beforeHighlightingRowHeader",r,t,o);return i?n:s.getRenderableFromVisualIndex(s.getNearestNotHiddenIndex(n,1))},onBeforeHighlightingColumnHeader:(e,t,o)=>{const s=this.hot.columnIndexMapper,i=e<0;let r=e;i||(r=s.getVisualFromRenderableIndex(e));const n=this.hot.runHooks("beforeHighlightingColumnHeader",r,t,o);return i?n:s.getRenderableFromVisualIndex(s.getNearestNotHiddenIndex(n,1))},onAfterDrawSelection:(e,t,o)=>{let s;const[i,r]=this.translateFromRenderableToVisualIndex(e,t),n=this.hot.selection.getSelectedRange();if(n.size()>0){const e=n.peekByIndex(null!=o?o:0);s=[e.from.row,e.from.col,e.to.row,e.to.col]}return this.hot.runHooks("afterDrawSelection",i,r,s,o)},onBeforeDrawBorders:(e,t)=>{const[o,s,i,r]=e,n=[this.hot.rowIndexMapper.getVisualFromRenderableIndex(o),this.hot.columnIndexMapper.getVisualFromRenderableIndex(s),this.hot.rowIndexMapper.getVisualFromRenderableIndex(i),this.hot.columnIndexMapper.getVisualFromRenderableIndex(r)];return this.hot.runHooks("beforeDrawBorders",n,t)},onBeforeTouchScroll:()=>this.hot.runHooks("beforeTouchScroll"),onAfterMomentumScroll:()=>this.hot.runHooks("afterMomentumScroll"),onModifyRowHeaderWidth:e=>this.hot.runHooks("modifyRowHeaderWidth",e),onModifyGetCellCoords:(e,t,o,s)=>{const i=this.hot.rowIndexMapper,r=this.hot.columnIndexMapper,n=t>=0?r.getVisualFromRenderableIndex(t):t,l=e>=0?i.getVisualFromRenderableIndex(e):e,a=this.hot.runHooks("modifyGetCellCoords",l,n,o,s);if(Array.isArray(a)){const[e,t,o,s]=a;return[e>=0?i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(e,1)):e,t>=0?r.getRenderableFromVisualIndex(r.getNearestNotHiddenIndex(t,1)):t,o>=0?i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(o,-1)):o,s>=0?r.getRenderableFromVisualIndex(r.getNearestNotHiddenIndex(s,-1)):s]}},onModifyGetCoordsElement:(e,t)=>{const o=this.hot.rowIndexMapper,s=this.hot.columnIndexMapper,i=t>=0?s.getVisualFromRenderableIndex(t):t,r=e>=0?o.getVisualFromRenderableIndex(e):e,n=this.hot.runHooks("modifyGetCoordsElement",r,i);if(Array.isArray(n)){const[e,t]=n;return[e>=0?o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(e,1)):e,t>=0?s.getRenderableFromVisualIndex(s.getNearestNotHiddenIndex(t,1)):t]}},viewportRowCalculatorOverride:e=>{let t=this.settings.viewportRowRenderingOffset;if("auto"===t&&this.settings.fixedRowsTop&&(t=10),t>0||"auto"===t){const o=this.countRenderableRows(),s=e.startRow,i=e.endRow;if("number"==typeof t)e.startRow=Math.max(s-t,0),e.endRow=Math.min(i+t,o-1);else if("auto"===t){const t=Math.max(1,Math.ceil(i/o*12));e.startRow=Math.max(s-t,0),e.endRow=Math.min(i+t,o-1)}}this.hot.runHooks("afterViewportRowCalculatorOverride",e)},viewportColumnCalculatorOverride:e=>{let t=this.settings.viewportColumnRenderingOffset;if("auto"===t&&this.settings.fixedColumnsStart&&(t=10),t>0||"auto"===t){const o=this.countRenderableColumns(),s=e.startColumn,i=e.endColumn;if("number"==typeof t&&(e.startColumn=Math.max(s-t,0),e.endColumn=Math.min(i+t,o-1)),"auto"===t){const t=Math.max(1,Math.ceil(i/o*6));e.startColumn=Math.max(s-t,0),e.endColumn=Math.min(i+t,o-1)}}this.hot.runHooks("afterViewportColumnCalculatorOverride",e)},rowHeaderWidth:()=>this.settings.rowHeaderWidth,columnHeaderHeight:()=>{const e=this.hot.runHooks("modifyColumnHeaderHeight");return this.settings.columnHeaderHeight||e},stylesHandler:()=>this.hot.stylesHandler};this.hot.runHooks("beforeInitWalkontable",e),this._wt=new a.default(e),this.activeWt=this._wt;const t=this._wt.wtTable.spreader,{width:o,height:s}=this.hot.rootElement.getBoundingClientRect();this.setLastSize(o,s),this.eventManager.addEventListener(t,"mousedown",e=>{e.target===t&&3===e.which&&e.stopPropagation()}),this.eventManager.addEventListener(t,"contextmenu",e=>{e.target===t&&3===e.which&&e.stopPropagation()}),this.eventManager.addEventListener(this.hot.rootDocument.documentElement,"click",()=>{this.settings.observeDOMVisibility&&this._wt.drawInterrupted&&this.hot.render()})}isTextSelectionAllowed(e){if((0,r.isInput)(e))return!0;const t=(0,r.isChildOf)(e,this._wt.wtTable.spreader);return!(!0!==this.settings.fragmentSelection||!t)||(!("cell"!==this.settings.fragmentSelection||!this.isSelectedOnlyCell()||!t)||!(this.settings.fragmentSelection||!this.isCellEdited()||!this.isSelectedOnlyCell()))}isMouseDown(){return p(E,this)}isSelectedOnlyCell(){var e,t;return null!==(e=null===(t=this.hot.getSelectedRangeLast())||void 0===t?void 0:t.isSingleCell())&&void 0!==e&&e}isCellEdited(){const e=this.hot.getActiveEditor();return e&&e.isOpened()}beforeRender(e,t){e&&this.hot.runHooks("beforeViewRender",this.hot.forceFullRender,t)}afterRender(e){e&&this.hot.runHooks("afterViewRender",this.hot.forceFullRender)}appendRowHeader(e,t){if(t.firstChild){const o=t.firstChild;if(!(0,r.hasClass)(o,"relative"))return(0,r.empty)(t),void this.appendRowHeader(e,t);this.updateCellHeader(o.querySelector(".rowHeader"),e,this.hot.getRowHeader)}else{const{rootDocument:o,getRowHeader:s}=this.hot,i=o.createElement("div"),r=o.createElement("span");i.className="relative",r.className="rowHeader",this.updateCellHeader(r,e,s),i.appendChild(r),t.appendChild(i)}this.hot.runHooks("afterGetRowHeader",e,t)}appendColHeader(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hot.getColHeader,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const i=()=>{const t=e>=0?this.hot.getColumnMeta(e).headerClassName:null;return t?t.split(" "):[]};if(t.firstChild){const n=t.firstChild;(0,r.hasClass)(n,"relative")?(this.updateCellHeader(n.querySelector(".colHeader"),e,o,s),n.className="",(0,r.addClass)(n,["relative",...i()])):((0,r.empty)(t),this.appendColHeader(e,t,o,s))}else{const{rootDocument:n}=this.hot,l=n.createElement("div"),a=n.createElement("span"),h=i();l.classList.add("relative",...h),a.className="colHeader",this.settings.ariaTags&&((0,r.setAttribute)(l,...(0,d.A11Y_PRESENTATION)()),(0,r.setAttribute)(a,...(0,d.A11Y_PRESENTATION)())),this.updateCellHeader(a,e,o,s),l.appendChild(a),t.appendChild(l)}this.hot.runHooks("afterGetColHeader",e,t,s)}updateCellHeader(e,t,o){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=t;const n=this._wt.wtOverlays.getParentOverlay(e)||this._wt;e.parentNode&&((0,r.hasClass)(e,"colHeader")?i=n.wtTable.columnFilter.sourceToRendered(t):(0,r.hasClass)(e,"rowHeader")&&(i=n.wtTable.rowFilter.sourceToRendered(t))),i>-1?(0,r.fastInnerHTML)(e,o(t,s)):((0,r.fastInnerText)(e,String.fromCharCode(160)),(0,r.addClass)(e,"cornerHeader"))}maximumVisibleElementWidth(e){const t=this._wt.wtViewport.getWorkspaceWidth()-e;return t>0?t:0}maximumVisibleElementHeight(e){const t=this._wt.wtViewport.getWorkspaceHeight()-e;return t>0?t:0}setLastSize(e,t){m(R,this,e),m(b,this,t)}getLastSize(){return{width:p(R,this),height:p(b,this)}}getFirstRenderedVisibleRow(){if(!this._wt.wtViewport.rowsRenderCalculator)return null;const e=this.hot.rowIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getFirstRenderedRow());return e.getNearestNotHiddenIndex(null!=t?t:0,1)}getLastRenderedVisibleRow(){if(!this._wt.wtViewport.rowsRenderCalculator)return null;const e=this.hot.rowIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getLastRenderedRow());return e.getNearestNotHiddenIndex(null!=t?t:this.hot.countRows()-1,-1)}getFirstRenderedVisibleColumn(){if(!this._wt.wtViewport.columnsRenderCalculator)return null;const e=this.hot.columnIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getFirstRenderedColumn());return e.getNearestNotHiddenIndex(null!=t?t:0,1)}getLastRenderedVisibleColumn(){if(!this._wt.wtViewport.columnsRenderCalculator)return null;const e=this.hot.columnIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getLastRenderedColumn());return e.getNearestNotHiddenIndex(null!=t?t:this.hot.countCols()-1,-1)}getFirstFullyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstVisibleRow())}getLastFullyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastVisibleRow())}getFirstFullyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstVisibleColumn())}getLastFullyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastVisibleColumn())}getFirstPartiallyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstPartiallyVisibleRow())}getLastPartiallyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastPartiallyVisibleRow())}getFirstPartiallyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstPartiallyVisibleColumn())}getLastPartiallyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastPartiallyVisibleColumn())}getColumnHeadersCount(){return p(C,this)}getRowHeadersCount(){return p(v,this)}getViewportWidth(){return this._wt.wtViewport.getViewportWidth()}getWorkspaceWidth(){return this._wt.wtViewport.getWorkspaceWidth()}getViewportHeight(){return this._wt.wtViewport.getViewportHeight()}getWorkspaceHeight(){return this._wt.wtViewport.getWorkspaceHeight()}getElementOverlayName(e){var t;return(null!==(t=this._wt.wtOverlays.getParentOverlay(e))&&void 0!==t?t:this._wt).wtTable.name}getOverlayByName(e){return this._wt.getOverlayByName(e)}getActiveOverlayName(){return this._wt.activeOverlayName}isVisible(){return this._wt.wtTable.isVisible()}hasVerticalScroll(){return this._wt.wtViewport.hasVerticalScroll()}hasHorizontalScroll(){return this._wt.wtViewport.hasHorizontalScroll()}getTableWidth(){return this._wt.wtTable.getWidth()}getTableHeight(){return this._wt.wtTable.getHeight()}getTableOffset(){return this._wt.wtViewport.getWorkspaceOffset()}getRowHeaderWidth(){return this._wt.wtViewport.getRowHeaderWidth()}getColumnHeaderHeight(){return this._wt.wtViewport.getColumnHeaderHeight()}isVerticallyScrollableByWindow(){return this._wt.wtViewport.isVerticallyScrollableByWindow()}isHorizontallyScrollableByWindow(){return this._wt.wtViewport.isHorizontallyScrollableByWindow()}destroy(){this._wt.destroy(),this.eventManager.destroy()}}},13884:e=>{"use strict";e.exports={}},14005:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443);var i=s(o(53726));function r(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function n(e,t){return e.get(a(e,t))}function l(e,t,o){return e.set(a(e,t),o),o}function a(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakMap;class c{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,i.default)(this,"row",null),(0,i.default)(this,"col",null),r(this,h,!1),l(h,this,o),void 0!==e&&void 0!==t&&(this.row=e,this.col=t)}isValid(e){const{countRows:t,countCols:o,countRowHeaders:s,countColHeaders:i}={countRows:0,countCols:0,countRowHeaders:0,countColHeaders:0,...e};return!(!Number.isInteger(this.row)||!Number.isInteger(this.col))&&(!(this.row<-i||this.col<-s)&&!(this.row>=t||this.col>=o))}isEqual(e){return e===this||this.row===e.row&&this.col===e.col}isHeader(){return!this.isCell()}isCell(){return this.row>=0&&this.col>=0}isRtl(){return n(h,this)}isSouthEastOf(e){return this.row>=e.row&&(n(h,this)?this.col<=e.col:this.col>=e.col)}isNorthWestOf(e){return this.row<=e.row&&(n(h,this)?this.col>=e.col:this.col<=e.col)}isSouthWestOf(e){return this.row>=e.row&&(n(h,this)?this.col>=e.col:this.col<=e.col)}isNorthEastOf(e){return this.row<=e.row&&(n(h,this)?this.col<=e.col:this.col>=e.col)}normalize(){return this.row=null===this.row?this.row:Math.max(this.row,0),this.col=null===this.col?this.col:Math.max(this.col,0),this}assign(e){return Number.isInteger(null==e?void 0:e.row)&&(this.row=e.row),Number.isInteger(null==e?void 0:e.col)&&(this.col=e.col),e instanceof c&&l(h,this,e.isRtl()),this}clone(){return new c(this.row,this.col,n(h,this))}toObject(){return{row:this.row,col:this.col}}}t.default=c},14119:(e,t,o)=>{"use strict";var s=o(39157),i=o(54090),r=Function.prototype,n=s&&Object.getOwnPropertyDescriptor,l=i(r,"name"),a=l&&"something"===function(){}.name,h=l&&(!s||s&&n(r,"name").configurable);e.exports={EXISTS:l,PROPER:a,CONFIGURABLE:h}},14288:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(8487);t.BaseRenderer=class{constructor(e,t){(0,i.default)(this,"nodesPool",null),(0,i.default)(this,"nodeType",void 0),(0,i.default)(this,"rootNode",void 0),(0,i.default)(this,"table",null),(0,i.default)(this,"renderedNodes",0),this.nodesPool="string"==typeof e?new r.NodesPool(e):null,this.nodeType=e,this.rootNode=t}setTable(e){this.nodesPool&&this.nodesPool.setRootDocument(e.rootDocument),this.table=e}adjust(){}render(){}}},14395:(e,t,o)=>{"use strict";o(72714)("flatMap")},14466:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(95942);t.RENDERER_TYPE=s.RENDERER_TYPE,t.baseRenderer=s.baseRenderer},14499:(e,t,o)=>{"use strict";var s=o(25225),i=Set.prototype;e.exports={Set,add:s(i.add),has:s(i.has),remove:s(i.delete),proto:i}},14950:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionDown",callback(e){let{selection:t}=e;t.markSource("keyboard"),t.transformStart(1,0),t.markEndSource()}}},15035:(e,t)=>{"use strict";function o(e,t){let{childs:o}=e;if(0!==o.length)return o[0].data[t]}t.__esModule=!0,t.getFirstChildProperty=o,t.isNodeReflectsFirstChildColspan=function(e){return o(e,"origColspan")===e.data.origColspan},t.traverseHiddenNodeColumnIndexes=function(e,t){e.walkDown(e=>{let{data:o,childs:s}=e;if(!o.isHidden&&(t(o.columnIndex),0===s.length))for(let e=1;e<o.colspan;e++)t(o.columnIndex+e)})}},15058:(e,t,o)=>{"use strict";var s=o(54090),i=o(6996),r=o(11044),n=o(86224),l=o(71840),a=n("IE_PROTO"),h=Object,c=h.prototype;e.exports=l?h.getPrototypeOf:function(e){var t=r(e);if(s(t,a))return t[a];var o=t.constructor;return i(o)&&t instanceof o?o.prototype:t instanceof h?c:null}},15143:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(48647);t.AutocompleteCellType=s.AutocompleteCellType,t.CELL_TYPE=s.CELL_TYPE},15230:(e,t,o)=>{"use strict";var s=o(82314),i=o(96891);e.exports=!s(function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",i(1,7)),7!==e.stack)})},15247:(e,t,o)=>{"use strict";var s=o(76277),i=o(16209);s({target:"Set",proto:!0,real:!0,forced:!o(93295)("isSubsetOf",function(e){return e})},{isSubsetOf:i})},15283:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.getRegisteredMapsCounter=function(){return a},o(73741),o(69326);var i=s(o(53726)),r=o(50929),n=o(87203),l=s(o(44266));let a=0;class h{constructor(){(0,i.default)(this,"collection",new Map)}register(e,t){!1===this.collection.has(e)&&(this.collection.set(e,t),t.addLocalHook("change",()=>this.runLocalHooks("change",t)),a+=1)}unregister(e){const t=this.collection.get(e);(0,r.isDefined)(t)&&(t.destroy(),this.collection.delete(e),this.runLocalHooks("change",t),a-=1)}unregisterAll(){this.collection.forEach((e,t)=>this.unregister(t)),this.collection.clear()}get(e){return(0,r.isUndefined)(e)?Array.from(this.collection.values()):this.collection.get(e)}getLength(){return this.collection.size}removeFromEvery(e){this.collection.forEach(t=>{t.remove(e)})}insertToEvery(e,t){this.collection.forEach(o=>{o.insert(e,t)})}initEvery(e){this.collection.forEach(t=>{t.init(e)})}}t.MapCollection=h,(0,n.mixin)(h,l.default)},15435:e=>{"use strict";e.exports=function(e,t){var o="function"==typeof Iterator&&Iterator.prototype[e];if(o)try{o.call({next:null},t).next()}catch(e){return!0}}},15612:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(36960);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.CopyPaste=s.CopyPaste},15699:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(73741),o(69326);var i=s(o(53726)),r=o(64310),n=o(76460);class l extends r.BaseAction{constructor(e){let{rows:t,finalIndex:o}=e;super("row_move"),(0,i.default)(this,"rows",void 0),(0,i.default)(this,"finalRowIndex",void 0),this.rows=t.slice(),this.finalRowIndex=o}static startRegisteringEvents(e,t){e.addHook("beforeRowMove",(e,o)=>{!1!==e&&t.done(()=>new l({rows:e,finalIndex:o}))})}undo(e,t){const o=e.getPlugin("manualRowMove");e.addHookOnce("afterViewRender",t);(0,n.getMoves)(this.rows,this.finalRowIndex,e.rowIndexMapper.getNumberOfIndexes()).reverse().forEach(e=>{let{from:t,to:s}=e;t<s&&(s-=1),o.moveRow(s,t)}),e.render(),e.deselectCell(),e.selectRows(this.rows[0],this.rows[0]+this.rows.length-1)}redo(e,t){const o=e.getPlugin("manualRowMove");e.addHookOnce("afterViewRender",t),o.moveRows(this.rows.slice(),this.finalRowIndex),e.render(),e.deselectCell(),e.selectRows(this.finalRowIndex,this.finalRowIndex+this.rows.length-1)}}t.RowMoveAction=l},15943:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(80592);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.ManualColumnFreeze=s.ManualColumnFreeze},15946:(e,t,o)=>{"use strict";var s,i,r,n,l=o(88005),a=o(13150),h=o(41829),c=o(6996),u=o(54090),d=o(82314),g=o(3034),f=o(67817),p=o(4158),m=o(39981),w=o(86867),C=o(90380),v=l.setImmediate,y=l.clearImmediate,E=l.process,S=l.Dispatch,R=l.Function,b=l.MessageChannel,_=l.String,T=0,M={},I="onreadystatechange";d(function(){s=l.location});var O=function(e){if(u(M,e)){var t=M[e];delete M[e],t()}},N=function(e){return function(){O(e)}},A=function(e){O(e.data)},H=function(e){l.postMessage(_(e),s.protocol+"//"+s.host)};v&&y||(v=function(e){m(arguments.length,1);var t=c(e)?e:R(e),o=f(arguments,1);return M[++T]=function(){a(t,void 0,o)},i(T),T},y=function(e){delete M[e]},C?i=function(e){E.nextTick(N(e))}:S&&S.now?i=function(e){S.now(N(e))}:b&&!w?(n=(r=new b).port2,r.port1.onmessage=A,i=h(n.postMessage,n)):l.addEventListener&&c(l.postMessage)&&!l.importScripts&&s&&"file:"!==s.protocol&&!d(H)?(i=H,l.addEventListener("message",A,!1)):i=I in p("script")?function(e){g.appendChild(p("script"))[I]=function(){g.removeChild(this),O(e)}}:function(e){setTimeout(N(e),0)}),e.exports={set:v,clear:y}},16178:(e,t,o)=>{"use strict";o(9797)},16209:(e,t,o)=>{"use strict";var s=o(21313),i=o(30845),r=o(98304),n=o(18622);e.exports=function(e){var t=s(this),o=n(e);return!(i(t)>o.size)&&!1!==r(t,function(e){if(!o.includes(e))return!1},!0)}},16329:(e,t,o)=>{"use strict";var s=o(77976);e.exports=s&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},16333:(e,t,o)=>{"use strict";function s(e,t,o){i(e,t),t.set(e,o)}function i(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function r(e,t){return e.get(l(e,t))}function n(e,t,o){return e.set(l(e,t),o),o}function l(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}t.__esModule=!0,o(88443);var a=new WeakMap,h=new WeakMap,c=new WeakSet;function u(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;const s=l(c,this,d).call(this,r(a,this),e.row,t);if(null===s)return null;const i=l(c,this,d).call(this,r(h,this),e.col,o);return null===i?null:e.clone().assign({row:s,col:i})}function d(e,t,o){return t<0?t:e.getNearestNotHiddenIndex(t,o)}t.CellRangeToRenderableMapper=class{constructor(e){let{rowIndexMapper:t,columnIndexMapper:o}=e;var r,l;i(r=this,l=c),l.add(r),s(this,a,void 0),s(this,h,void 0),n(a,this,t),n(h,this,o)}toRenderable(e){const t="N-S"===e.getVerticalDirection()?1:-1,o="W-E"===e.getHorizontalDirection()?1:-1,s=l(c,this,u).call(this,e.from,t,o);if(null===s)return null;const i=l(c,this,u).call(this,e.to,-t,-o);if(null===i)return null;const r=e.clone();return r.from=s,r.to=i,r.includes(e.highlight)||(r.highlight=s),r}}},16962:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(38345);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.Comments=s.Comments},17002:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(20780);const i=t.EDITOR_TYPE="numeric";class r extends s.TextEditor{static get EDITOR_TYPE(){return i}}t.NumericEditor=r},17062:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726));t.Cursor=class{constructor(e,t){(0,i.default)(this,"top",void 0),(0,i.default)(this,"topRelative",void 0),(0,i.default)(this,"left",void 0),(0,i.default)(this,"leftRelative",void 0),(0,i.default)(this,"scrollTop",void 0),(0,i.default)(this,"scrollLeft",void 0),(0,i.default)(this,"cellHeight",void 0),(0,i.default)(this,"cellWidth",void 0);const o=t.scrollY,s=t.scrollX;let r,n,l,a,h,c;this.rootWindow=t,this.type=this.getSourceType(e),"literal"===this.type?(r=parseInt(e.top,10),l=parseInt(e.left,10),h=e.height||0,c=e.width||0,n=r,a=l,r+=o,l+=s):"event"===this.type&&(r=parseInt(e.pageY,10),l=parseInt(e.pageX,10),h=e.target.clientHeight,c=e.target.clientWidth,n=r-o,a=l-s),this.top=r,this.topRelative=n,this.left=l,this.leftRelative=a,this.scrollTop=o,this.scrollLeft=s,this.cellHeight=h,this.cellWidth=c}getSourceType(e){let t="literal";return e instanceof Event&&(t="event"),t}fitsAbove(e){return this.topRelative>=e.offsetHeight}fitsBelow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.rootWindow.innerHeight;return this.topRelative+e.offsetHeight<=t}fitsOnRight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.rootWindow.innerWidth;return this.leftRelative+this.cellWidth+e.offsetWidth<=t}fitsOnLeft(e){return this.leftRelative>=e.offsetWidth}}},17112:(e,t,o)=>{"use strict";var s=o(39157),i=o(72119),r=TypeError,n=Object.getOwnPropertyDescriptor,l=s&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=l?function(e,t){if(i(e)&&!n(e,"length").writable)throw new r("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},17374:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(56791);t.registerRootComparator=s.registerRootComparator,t.getRootComparator=s.getRootComparator,t.getCompareFunctionFactory=s.getCompareFunctionFactory;var i=o(72682);t.FIRST_AFTER_SECOND=i.FIRST_AFTER_SECOND,t.FIRST_BEFORE_SECOND=i.FIRST_BEFORE_SECOND,t.DO_NOT_SWAP=i.DO_NOT_SWAP,t.sort=i.sort},17652:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726));t.RenderedAllRowsCalculationType=class{constructor(){(0,i.default)(this,"count",0),(0,i.default)(this,"startRow",0),(0,i.default)(this,"endRow",0),(0,i.default)(this,"startPosition",0),(0,i.default)(this,"isVisibleInTrimmingContainer",!0)}initialize(e){let{totalRows:t}=e;this.count=t,this.endRow=this.count-1}process(){}finalize(){}}},17664:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(6964),n=o(87203),l=s(o(44266));class a{constructor(e){(0,i.default)(this,"wasLastActionShow",!0),(0,i.default)(this,"showDebounced",null),(0,i.default)(this,"hidingTimer",null),this.updateDelay(e)}hide(){this.wasLastActionShow=!1,this.hidingTimer=setTimeout(()=>{!1===this.wasLastActionShow&&this.runLocalHooks("hide")},250)}show(e){this.wasLastActionShow=!0,this.showDebounced(e)}cancelHiding(){this.wasLastActionShow=!0,clearTimeout(this.hidingTimer),this.hidingTimer=null}updateDelay(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250;this.showDebounced=(0,r.debounce)(e=>{this.wasLastActionShow&&this.runLocalHooks("show",e.from.row,e.from.col)},e)}destroy(){this.clearLocalHooks()}}(0,n.mixin)(a,l.default);t.default=a},17734:(e,t,o)=>{"use strict";var s=o(97610),i=TypeError;e.exports=function(e,t){if(s(t,e))return e;throw new i("Incorrect invocation")}},17911:(e,t)=>{"use strict";t.__esModule=!0;t.WORKING_SPACE_ALL=0,t.WORKING_SPACE_TOP=1,t.WORKING_SPACE_BOTTOM=2},18051:(e,t,o)=>{"use strict";function s(e,t,o,s){let i=-1,r=e,n=o;Array.isArray(e)||(r=Array.from(e));const l=r.length;for(s&&l&&(i+=1,n=r[i]),i+=1;i<l;)n=t(n,r[i],i,r),i+=1;return n}function i(e,t){let o=0,s=e;Array.isArray(e)||(s=Array.from(e));const i=s.length;for(;o<i&&!1!==t(s[o],o,s);)o+=1;return e}function r(e){return s(e,(e,t)=>e+t,0)}t.__esModule=!0,t.arrayAvg=function(e){if(!e.length)return 0;return r(e)/e.length},t.arrayEach=i,t.arrayFilter=function(e,t){let o=0,s=e;Array.isArray(e)||(s=Array.from(e));const i=s.length,r=[];let n=-1;for(;o<i;){const e=s[o];t(e,o,s)&&(n+=1,r[n]=e),o+=1}return r},t.arrayFlatten=function e(t){return s(t,(t,o)=>t.concat(Array.isArray(o)?e(o):o),[])},t.arrayMap=function(e,t){let o=0,s=e;Array.isArray(e)||(s=Array.from(e));const i=s.length,r=[];let n=-1;for(;o<i;){const e=s[o];n+=1,r[n]=t(e,o,s),o+=1}return r},t.arrayMax=function(e){return s(e,(e,t)=>e>t?e:t,Array.isArray(e)?e[0]:void 0)},t.arrayMin=function(e){return s(e,(e,t)=>e<t?e:t,Array.isArray(e)?e[0]:void 0)},t.arrayReduce=s,t.arraySum=r,t.arrayUnique=function(e){const t=[];return i(e,e=>{-1===t.indexOf(e)&&t.push(e)}),t},t.extendArray=function(e,t){const o=t.length;let s=0;for(;s<o;)e.push(t[s]),s+=1},t.getDifferenceOfArrays=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];const[s,...r]=[...t];let n=s;return i(r,e=>{n=n.filter(t=>!e.includes(t))}),n},t.getIntersectionOfArrays=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];const[s,...r]=[...t];let n=s;return i(r,e=>{n=n.filter(t=>e.includes(t))}),n},t.getUnionOfArrays=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];const[s,...r]=[...t],n=new Set(s);return i(r,e=>{i(e,e=>{n.has(e)||n.add(e)})}),Array.from(n)},t.pivot=function(e){const t=[];if(!e||0===e.length||!e[0]||0===e[0].length)return t;const o=e.length,s=e[0].length;for(let i=0;i<o;i++)for(let o=0;o<s;o++)t[o]||(t[o]=[]),t[o][i]=e[i][o];return t},t.stringToArray=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";return e.split(t)},t.to2dArray=function(e){const t=e.length;let o=0;for(;o<t;)e[o]=[e[o]],o+=1},o(85639),o(62705),o(78495),o(43554),o(15247),o(18472),o(89711),o(78675),o(73741),o(7307)},18142:(e,t,o)=>{"use strict";t.__esModule=!0,t.getAllCommands=function(){return[s.command,i.command,r.command,n.command,l.command,a.command]};var s=o(23832),i=o(85520),r=o(30863),n=o(72930),l=o(99606),a=o(23736)},18472:(e,t,o)=>{"use strict";var s=o(76277),i=o(52784);s({target:"Set",proto:!0,real:!0,forced:!o(93295)("isSupersetOf",function(e){return!e})},{isSupersetOf:i})},18622:(e,t,o)=>{"use strict";var s=o(86713),i=o(77618),r=o(64976),n=o(30784),l=o(74218),a="Invalid size",h=RangeError,c=TypeError,u=Math.max,d=function(e,t){this.set=e,this.size=u(t,0),this.has=s(e.has),this.keys=s(e.keys)};d.prototype={getIterator:function(){return l(i(r(this.keys,this.set)))},includes:function(e){return r(this.has,this.set,e)}},e.exports=function(e){i(e);var t=+e.size;if(t!=t)throw new c(a);var o=n(t);if(o<0)throw new h(a);return new d(e,o)}},18699:(e,t,o)=>{"use strict";t.__esModule=!0,t.getValidator=function(e){if("function"==typeof e)return e;if(!n(e))throw Error(`No registered validator found under "${e}" name`);return r(e)},t.registerValidator=function(e,t){"string"!=typeof e&&(e=(t=e).VALIDATOR_TYPE);i(e,t)},o(88443);var s=o(37363);const{register:i,getItem:r,hasItem:n,getNames:l,getValues:a}=(0,s.staticRegister)("validators");t.getRegisteredValidators=a,t.getRegisteredValidatorNames=l,t.hasValidator=n},18712:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639);var i=s(o(53726)),r=o(87203),n=o(59073),l=o(50929);class a{static get SAMPLE_COUNT(){return 3}constructor(e){(0,i.default)(this,"samples",null),(0,i.default)(this,"dataFactory",null),(0,i.default)(this,"customSampleCount",null),(0,i.default)(this,"allowDuplicates",!1),this.dataFactory=e}getSampleCount(){return this.customSampleCount?this.customSampleCount:a.SAMPLE_COUNT}setSampleCount(e){this.customSampleCount=e}setAllowDuplicates(e){this.allowDuplicates=e}generateRowSamples(e,t){return this.generateSamples("row",t,e)}generateColumnSamples(e,t){return this.generateSamples("col",t,e)}generateSamples(e,t,o){const s=new Map,{from:i,to:r}="number"==typeof o?{from:o,to:o}:o;return(0,n.rangeEach)(i,r,o=>{const i=this.generateSample(e,t,o);s.set(o,i)}),s}generateSample(e,t,o){if("row"!==e&&"col"!==e)throw new Error("Unsupported sample type");const s=new Map,i="row"===e?"col":"row",a=[];return(0,n.rangeEach)(t.from,t.to,t=>{const n="row"===e?this.dataFactory(o,t):this.dataFactory(t,o);if(!1===n)return;const{value:h,bundleSeed:c}=n,u="string"==typeof c&&c.length>0;let d;d=u?c:(0,r.isObject)(h)?`${Object.keys(h).length}`:Array.isArray(h)?`${h.length}`:`${(0,l.stringify)(h).length}`,s.has(d)||s.set(d,{needed:this.getSampleCount(),strings:[]});const g=s.get(d);if(g.needed){(!(a.indexOf(h)>-1)||this.allowDuplicates||u)&&(g.strings.push({value:h,[i]:t}),a.push(h),g.needed-=1)}}),s}}t.default=a},19440:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(30936);t.RowHeadersRenderer=s.RowHeadersRenderer;var i=o(67820);t.ColumnHeadersRenderer=i.ColumnHeadersRenderer;var r=o(71023);t.ColGroupRenderer=r.ColGroupRenderer;var n=o(78023);t.RowsRenderer=n.RowsRenderer;var l=o(62661);t.CellsRenderer=l.CellsRenderer;var a=o(59628);t.TableRenderer=a.TableRenderer;t.Renderer=class{constructor(){let{TABLE:e,THEAD:t,COLGROUP:o,TBODY:h,rowUtils:c,columnUtils:u,cellRenderer:d,stylesHandler:g}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.renderer=new a.TableRenderer(e,{cellRenderer:d,stylesHandler:g}),this.renderer.setRenderers({rowHeaders:new s.RowHeadersRenderer,columnHeaders:new i.ColumnHeadersRenderer(t),colGroup:new r.ColGroupRenderer(o),rows:new n.RowsRenderer(h),cells:new l.CellsRenderer}),this.renderer.setAxisUtils(c,u)}setActiveOverlayName(e){return this.renderer.setActiveOverlayName(e),this}setFilters(e,t){return this.renderer.setFilters(e,t),this}setViewportSize(e,t){return this.renderer.setViewportSize(e,t),this}setHeaderContentRenderers(e,t){return this.renderer.setHeaderContentRenderers(e,t),this}adjust(){this.renderer.adjust()}render(){this.renderer.render()}}},19509:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(64310);class n extends r.BaseAction{constructor(e){let{data:t,cellRange:o}=e;super("merge_cells"),(0,i.default)(this,"cellRange",void 0),this.cellRange=o,this.data=t}static startRegisteringEvents(e,t){e.addHook("beforeMergeCells",(o,s)=>{if(s)return;const i=o.getTopStartCorner(),r=o.getBottomEndCorner(),l=e.getData(i.row,i.col,r.row,r.col);t.done(()=>new n({data:l,cellRange:o}))})}undo(e,t){const o=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),o.unmergeRange(this.cellRange,!0);const s=this.cellRange.getTopStartCorner();e.populateFromArray(s.row,s.col,this.data,void 0,void 0,"MergeCells")}redo(e,t){const o=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),o.mergeRange(this.cellRange)}}t.MergeCellsAction=n},19779:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=n;var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(30432)),i=o(37396);const r=t.CONDITION_NAME="none";function n(){return!0}(0,i.registerCondition)(r,n,{name:s.FILTERS_CONDITIONS_NONE,inputsCount:0,showOperators:!1})},19895:(e,t,o)=>{"use strict";var s=o(6996);e.exports=function(e){return"object"==typeof e?null!==e:s(e)}},19952:(e,t,o)=>{"use strict";var s=o(39157),i=o(9370),r=o(96891);e.exports=s?function(e,t,o){return i.f(e,t,r(1,o))}:function(e,t,o){return e[t]=o,e}},19976:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(73741),o(69326),o(82141);var i=s(o(53726)),r=o(18051),n=o(88291);t.default=class{constructor(e,t){(0,i.default)(this,"plugin",void 0),(0,i.default)(this,"hot",void 0),(0,i.default)(this,"endpoints",[]),(0,i.default)(this,"settings",void 0),(0,i.default)(this,"settingsType","array"),(0,i.default)(this,"currentEndpoint",null),(0,i.default)(this,"cellsToSetCache",[]),this.plugin=e,this.hot=this.plugin.hot,this.settings=t}initEndpoints(){this.endpoints=this.parseSettings(),this.refreshAllEndpoints()}getEndpoint(e){return"function"===this.settingsType?this.fillMissingEndpointData(this.settings)[e]:this.endpoints[e]}getAllEndpoints(){return"function"===this.settingsType?this.fillMissingEndpointData(this.settings):this.endpoints}fillMissingEndpointData(e){return this.parseSettings(e.call(this))}parseSettings(e){const t=[];let o=e;if(o||"function"!=typeof this.settings)return o||(o=this.settings),(0,r.arrayEach)(o,e=>{const o={};this.assignSetting(e,o,"ranges",[[0,this.hot.countRows()-1]]),this.assignSetting(e,o,"reversedRowCoords",!1),this.assignSetting(e,o,"destinationRow",new Error("\n You must provide a destination row for the Column Summary plugin in order to work properly!\n ")),this.assignSetting(e,o,"destinationColumn",new Error("\n You must provide a destination column for the Column Summary plugin in order to work properly!\n ")),this.assignSetting(e,o,"sourceColumn",e.destinationColumn),this.assignSetting(e,o,"type","sum"),this.assignSetting(e,o,"forceNumeric",!1),this.assignSetting(e,o,"suppressDataTypeErrors",!0),this.assignSetting(e,o,"customFunction",null),this.assignSetting(e,o,"readOnly",!0),this.assignSetting(e,o,"roundFloat",!1),t.push(o)}),t;this.settingsType="function"}assignSetting(e,t,o,s){if("ranges"!==o||void 0!==e[o]){if("ranges"!==o||0!==e[o].length)if(void 0===e[o]){if(s instanceof Error)throw s;t[o]=s}else"destinationRow"===o&&t.reversedRowCoords?t[o]=this.hot.countRows()-e[o]-1:t[o]=e[o]}else t[o]=s}resetSetupBeforeStructureAlteration(e,t,o){if("function"!==this.settingsType)return;const s=e.indexOf("row")>-1?"row":"col",i=this.getAllEndpoints();(0,r.arrayEach)(i,i=>{"row"===s&&i.destinationRow>=t&&("insert_row"===e?i.alterRowOffset=o:"remove_row"===e&&(i.alterRowOffset=-1*o)),"col"===s&&i.destinationColumn>=t&&("insert_col"===e?i.alterColumnOffset=o:"remove_col"===e&&(i.alterColumnOffset=-1*o))}),this.resetAllEndpoints(i,!1)}resetSetupAfterStructureAlteration(e,t,o,s,i){let n=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if("function"===this.settingsType){const e=()=>(this.hot.removeHook("beforeViewRender",e),this.refreshAllEndpoints());return void this.hot.addHookOnce("beforeViewRender",e)}const l=e.indexOf("row")>-1?"row":"col",a=e.indexOf("remove")>-1?-1:1,h=this.getAllEndpoints(),c=0===e.indexOf("move_row"),u=t;(0,r.arrayEach)(h,e=>{"row"===l&&e.destinationRow>=u&&(e.alterRowOffset=a*o),"col"===l&&e.destinationColumn>=u&&(e.alterColumnOffset=a*o)}),this.resetAllEndpoints(h,!c),c?(0,r.arrayEach)(h,e=>{this.extendEndpointRanges(e,u,s[0],s.length),this.recreatePhysicalRanges(e),this.clearOffsetInformation(e)}):(0,r.arrayEach)(h,e=>{this.shiftEndpointCoordinates(e,u)}),n&&this.refreshAllEndpoints()}clearOffsetInformation(e){e.alterRowOffset=void 0,e.alterColumnOffset=void 0}extendEndpointRanges(e,t,o,s){(0,r.arrayEach)(e.ranges,e=>{e[1]&&(t>=e[0]&&t<=e[1]?o>e[1]?e[1]+=s:o<e[0]&&(e[0]-=s):o>=e[0]&&o<=e[1]&&(e[1]-=s,t<=e[0]&&(e[0]+=1,e[1]+=1)))})}recreatePhysicalRanges(e){const t=e.ranges,o=[],s=[];(0,r.arrayEach)(t,e=>{const t=[];if(e[1])for(let o=e[0];o<=e[1];o++)t.push(this.hot.toPhysicalRow(o));else t.push(this.hot.toPhysicalRow(e[0]));s.push(t)}),(0,r.arrayEach)(s,e=>{let t=[];(0,r.arrayEach)(e,(s,i)=>{0===i?t.push(s):e[i]!==e[i-1]+1&&(t.push(e[i-1]),o.push(t),t=[],t.push(s)),i===e.length-1&&(t.push(s),o.push(t))})}),e.ranges=o}shiftEndpointCoordinates(e,t){e.alterRowOffset&&0!==e.alterRowOffset?(e.destinationRow+=e.alterRowOffset||0,(0,r.arrayEach)(e.ranges,o=>{(0,r.arrayEach)(o,(s,i)=>{s>=t&&(o[i]+=e.alterRowOffset||0)})})):e.alterColumnOffset&&0!==e.alterColumnOffset&&(e.destinationColumn+=e.alterColumnOffset||0,e.sourceColumn+=e.alterColumnOffset||0)}resetAllEndpoints(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getAllEndpoints(),t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.some(e=>{const t=e.alterRowOffset||0,o=e.alterColumnOffset||0;return e.destinationRow+t>=this.hot.countRows()||e.destinationColumn+o>=this.hot.countCols()})||(this.cellsToSetCache=[],(0,r.arrayEach)(e,e=>{this.resetEndpointValue(e,t)}),this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[])}refreshAllEndpoints(){this.cellsToSetCache=[],(0,r.arrayEach)(this.getAllEndpoints(),e=>{this.currentEndpoint=e,this.plugin.calculate(e),this.setEndpointValue(e,"init")}),this.currentEndpoint=null,this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}refreshChangedEndpoints(e){const t=[];this.cellsToSetCache=[],(0,r.arrayEach)(e,(e,o,s)=>{`${e[2]||""}`!=`${e[3]}`&&(0,r.arrayEach)(this.getAllEndpoints(),(e,i)=>{this.hot.propToCol(s[o][1])===e.sourceColumn&&-1===t.indexOf(i)&&t.push(i)})}),(0,r.arrayEach)(t,e=>{this.refreshEndpoint(this.getEndpoint(e))}),this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}refreshCellMetas(){this.endpoints.forEach(e=>{const t=this.hot.toVisualRow(e.destinationRow);if(null!==t){const o=this.hot.getCellMeta(t,e.destinationColumn);o.readOnly=e.readOnly,o.className="columnSummaryResult"}})}refreshEndpoint(e){this.currentEndpoint=e,this.plugin.calculate(e),this.setEndpointValue(e),this.currentEndpoint=null}resetEndpointValue(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const o=e.alterRowOffset||0,s=e.alterColumnOffset||0;this.cellsToSetCache.push([this.hot.toVisualRow(e.destinationRow+(t?o:0)),this.hot.toVisualColumn(e.destinationColumn+(t?s:0)),""])}setEndpointValue(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const s=this.hot.toVisualRow(e.destinationRow);if(e.destinationRow>=this.hot.countRows()||e.destinationColumn>=this.hot.countCols())return void this.throwOutOfBoundsWarning();const i=this.hot.toVisualRow(e.destinationRow);if(null!==i){const o=this.hot.getCellMeta(i,e.destinationColumn);"init"!==t&&o.readOnly===e.readOnly||(o.readOnly=e.readOnly,o.className="columnSummaryResult")}if((!0===e.roundFloat||Number.isInteger(e.roundFloat))&&!isNaN(e.result)){const t=e.roundFloat;let o=0;Number.isInteger(t)&&(o=Math.min(Math.max(0,t),100)),e.result=e.result.toFixed(o)}o?this.hot.setDataAtCell(s,e.destinationColumn,e.result,"ColumnSummary.set"):this.cellsToSetCache.push([s,e.destinationColumn,e.result]),e.alterRowOffset=void 0,e.alterColumnOffset=void 0}throwOutOfBoundsWarning(){(0,n.warn)("One of the Column Summary plugins' destination points you provided is beyond the table boundaries!")}}},20106:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(95965);t.CELL_TYPE=s.CELL_TYPE,t.DropdownCellType=s.DropdownCellType},20157:(e,t,o)=>{"use strict";t.__esModule=!0,t.isCtrlKey=function(e){const t=[];(0,i.isMacOS)()?t.push(r.COMMAND_LEFT,r.COMMAND_RIGHT,r.COMMAND_FIREFOX):t.push(r.CONTROL);return t.includes(e)},t.isCtrlMetaKey=function(e){return[r.CONTROL,r.COMMAND_LEFT,r.COMMAND_RIGHT,r.COMMAND_FIREFOX].includes(e)},t.isFunctionKey=function(e){return n.includes(e)},t.isKey=function(e,t){const o=t.split("|");let i=!1;return(0,s.arrayEach)(o,t=>{if(e===r[t])return i=!0,!1}),i},t.isPrintableChar=function(e){return 32===e||e>=48&&e<=57||e>=96&&e<=111||e>=186&&e<=192||e>=219&&e<=222||e>=226||e>=65&&e<=90},o(85639);var s=o(18051),i=o(64254);const r=t.KEY_CODES={ALT:18,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,ARROW_UP:38,AUDIO_DOWN:(0,i.isFirefox)()?182:174,AUDIO_MUTE:(0,i.isFirefox)()?181:173,AUDIO_UP:(0,i.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},n=[r.ALT,r.ARROW_DOWN,r.ARROW_LEFT,r.ARROW_RIGHT,r.ARROW_UP,r.AUDIO_DOWN,r.AUDIO_MUTE,r.AUDIO_UP,r.BACKSPACE,r.CAPS_LOCK,r.DELETE,r.END,r.ENTER,r.ESCAPE,r.F1,r.F2,r.F3,r.F4,r.F5,r.F6,r.F7,r.F8,r.F9,r.F10,r.F11,r.F12,r.F13,r.F14,r.F15,r.F16,r.F17,r.F18,r.F19,r.HOME,r.INSERT,r.MEDIA_NEXT,r.MEDIA_PLAY_PAUSE,r.MEDIA_PREV,r.MEDIA_STOP,r.NULL,r.NUM_LOCK,r.PAGE_DOWN,r.PAGE_UP,r.PAUSE,r.SCROLL_LOCK,r.SHIFT,r.TAB]},20194:(e,t,o)=>{"use strict";t.__esModule=!0,o(88443),o(85639);var s=o(87203),i=o(18051),r=o(95316);function n(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function l(e,t){return e.get(h(e,t))}function a(e,t,o){return e.set(h(e,t),o),o}function h(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const c=t.HEADER_CONFIGURABLE_PROPS=["label","collapsible"];var u=new WeakMap,d=new WeakMap,g=new WeakMap;t.default=class{constructor(){n(this,u,[]),n(this,d,0),n(this,g,1/0)}setColumnsLimit(e){a(g,this,e)}setData(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];a(u,this,(0,r.normalizeSettings)(e,l(g,this))),a(d,this,l(u,this).length)}getData(){return l(u,this)}mergeWith(e){(0,i.arrayEach)(e,e=>{let{row:t,col:o,...i}=e;const r=this.getHeaderSettings(t,o);null!==r&&(0,s.extend)(r,i,c)})}map(e){(0,i.arrayEach)(l(u,this),t=>{(0,i.arrayEach)(t,t=>{const o=e({...t});(0,s.isObject)(o)&&(0,s.extend)(t,o,c)})})}getHeaderSettings(e,t){var o;if(e>=l(d,this)||e<0)return null;const s=l(u,this)[e];return!1===Array.isArray(s)||t>=s.length?null:null!==(o=s[t])&&void 0!==o?o:null}getHeadersSettings(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const s=[];if(e>=l(d,this)||e<0)return s;const i=l(u,this)[e];let r=0;for(let e=t;e<i.length;e++){const t=i[e];if(t.isPlaceholder)throw new Error("The first column settings cannot overlap the other header layers");if(r+=t.colspan,s.push(t),t.colspan>1&&(e+=t.colspan-1),r===o)break;if(r>o)throw new Error("The last column settings cannot overlap the other header layers")}return s}getLayersCount(){return l(d,this)}getColumnsCount(){return l(d,this)>0?l(u,this)[0].length:0}clear(){a(u,this,[]),a(d,this,0)}}},20213:(e,t,o)=>{"use strict";o(73741),o(69326);var s=o(60423);t.__esModule=!0;var i={Selection:!0,handleMouseEvent:!0,detectSelectionType:!0,normalizeSelectionFactory:!0},r=s(o(25439));t.Selection=r.default;var n=o(55826);t.handleMouseEvent=n.handleMouseEvent;var l=o(37616);t.detectSelectionType=l.detectSelectionType,t.normalizeSelectionFactory=l.normalizeSelectionFactory;var a=o(42390);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===a[e]||(t[e]=a[e]))})},20599:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(61808);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.HiddenColumns=s.HiddenColumns},20611:(e,t,o)=>{"use strict";t.__esModule=!0,o(88443);var s=o(52149);t.getDecreasedIndexes=s.getDecreasedIndexes,t.getIncreasedIndexes=s.getIncreasedIndexes;var i=o(94614),r=o(40576);const n=new Map([["indexesSequence",{getListWithInsertedItems:i.getListWithInsertedItems,getListWithRemovedItems:i.getListWithRemovedItems}],["physicallyIndexed",{getListWithInsertedItems:r.getListWithInsertedItems,getListWithRemovedItems:r.getListWithRemovedItems}]]);t.alterUtilsFactory=e=>{if(!1===n.has(e))throw new Error(`Alter strategy with ID '${e}' does not exist.`);return n.get(e)}},20730:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(1002)),r=s(o(68394)),n=s(o(1612)),l=o(87203),a=o(13773);class h extends i.default{constructor(e,t,o,s){super(e,t,o,s,a.CLONE_BOTTOM)}}(0,l.mixin)(h,r.default),(0,l.mixin)(h,n.default);t.default=h},20780:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(13e3);t.EDITOR_TYPE=s.EDITOR_TYPE,t.TextEditor=s.TextEditor},20809:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionUp",callback(e){const{selection:t}=e,{highlight:o}=e.getSelectedRangeLast();t.isSelectedByColumnHeader()||t.isSelectedByCorner()||!(o.isCell()||o.isHeader()&&t.isSelectedByRowHeader())||(t.markSource("keyboard"),t.transformEnd(-1,0),t.markEndSource())}}},20845:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(93118);class n extends r.PartiallyVisibleColumnsCalculationType{constructor(){super(...arguments),(0,i.default)(this,"columnStartOffset",0),(0,i.default)(this,"columnEndOffset",0)}finalize(e){var t;super.finalize(e);const{overrideFn:o,totalColumns:s,startPositions:i}=e;if(null!==this.startColumn&&"function"==typeof o){const e=this.startColumn,t=this.endColumn;o(this),this.columnStartOffset=e-this.startColumn,this.columnEndOffset=this.endColumn-t}this.startColumn<0&&(this.startColumn=0),this.startPosition=null!==(t=i[this.startColumn])&&void 0!==t?t:null,s<this.endColumn&&(this.endColumn=s-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}t.RenderedColumnsCalculationType=n},20846:e=>{"use strict";e.exports=s},21313:(e,t,o)=>{"use strict";var s=o(14499).has;e.exports=function(e){return s(e),e}},22132:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(82206),n=o(17374),l=o(42127),a=o(43561),h=o(12565),c=o(80452),u=o(87927);const d=t.PLUGIN_KEY="multiColumnSorting",g=t.PLUGIN_PRIORITY=170,f=d;(0,n.registerRootComparator)(d,h.rootComparator);class p extends r.ColumnSorting{constructor(){super(...arguments),(0,i.default)(this,"pluginKey",d)}static get PLUGIN_KEY(){return d}static get PLUGIN_PRIORITY(){return g}isEnabled(){return!!this.hot.getSettings()[this.pluginKey]}enablePlugin(){super.enablePlugin()}disablePlugin(){super.disablePlugin()}registerShortcuts(){super.registerShortcuts(),this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Shift","Enter"]],callback:()=>{const{highlight:e}=this.hot.getSelectedRangeLast();return-1===e.row&&e.col>=0&&this.sort(this.getNextSortConfig(e.col,r.APPEND_COLUMN_CONFIG_STRATEGY)),!1},runOnlyIf:()=>{var e,t;const o=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return o&&(null===(t=this.hot.getSelectedRangeLast())||void 0===t?void 0:t.isSingle())&&this.hot.selection.isCellVisible(o)&&o.isHeader()},relativeToGroup:u.EDITOR_EDIT_GROUP,position:"before",group:f})}unregisterShortcuts(){super.unregisterShortcuts(),this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(f)}sort(e){super.sort(e)}clearSort(){super.clearSort()}isSorted(){return super.isSorted()}getSortConfig(e){return super.getSortConfig(e)}setSortConfig(e){super.setSortConfig(e)}getNormalizedSortConfigs(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)?e:[e]}updateHeaderClasses(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),s=1;s<t;s++)o[s-1]=arguments[s];super.updateHeaderClasses(e,...o),(0,a.removeClass)(e,(0,c.getClassesToRemove)(e)),!1!==this.enabled&&(0,a.addClass)(e,(0,c.getClassesToAdd)(...o))}onAfterOnCellMouseDown(e,t){!1!==(0,l.wasHeaderClickedProperly)(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)&&(this.hot.getShortcutManager().isCtrlPressed()?(this.hot.deselectCell(),this.hot.selectColumns(t.col),this.sort(this.getNextSortConfig(t.col,r.APPEND_COLUMN_CONFIG_STRATEGY))):this.sort(this.getColumnNextConfig(t.col)))}}t.MultiColumnSorting=p},22151:(e,t,o)=>{"use strict";t.__esModule=!0,t.getCellMetas=function(e,t,o,i,r){const n=["visualRow","visualCol","row","col","prop"],l=n.length,a=[];return(0,s.rangeEach)(i,r,i=>{(0,s.rangeEach)(t,o,t=>{const o=e.getCellMeta(t,i);if(Object.keys(o).length!==l){const e=Object.fromEntries(Object.entries(o).filter(e=>{let[t]=e;return!1===n.includes(t)}));a.push([o.visualRow,o.visualCol,e])}})}),a},o(85639),o(41846),o(73741),o(7307);var s=o(59073)},22280:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726));o(88443),o(62705),o(78495),o(43554),o(15247),o(18472),o(89711),o(78675),o(73741),o(7307),o(90795),o(82141);var r=o(18051),n=o(60481),l=o(60053),a=s(o(44266)),h=o(87203),c=o(50929),u=o(31425);new Set;class d{constructor(){(0,i.default)(this,"indexesSequence",new n.IndexesSequence),(0,i.default)(this,"trimmingMapsCollection",new l.AggregatedCollection(e=>e.some(e=>!0===e),!1)),(0,i.default)(this,"hidingMapsCollection",new l.AggregatedCollection(e=>e.some(e=>!0===e),!1)),(0,i.default)(this,"variousMapsCollection",new l.MapCollection),(0,i.default)(this,"hidingChangesObservable",new u.ChangesObservable({initialIndexValue:!1})),(0,i.default)(this,"notTrimmedIndexesCache",[]),(0,i.default)(this,"notHiddenIndexesCache",[]),(0,i.default)(this,"isBatched",!1),(0,i.default)(this,"indexesSequenceChanged",!1),(0,i.default)(this,"indexesChangeSource",void 0),(0,i.default)(this,"trimmedIndexesChanged",!1),(0,i.default)(this,"hiddenIndexesChanged",!1),(0,i.default)(this,"renderablePhysicalIndexesCache",[]),(0,i.default)(this,"fromPhysicalToVisualIndexesCache",new Map),(0,i.default)(this,"fromVisualToRenderableIndexesCache",new Map),this.indexesSequence.addLocalHook("change",()=>{this.indexesSequenceChanged=!0,this.updateCache(),this.runLocalHooks("indexesSequenceChange",this.indexesChangeSource),this.runLocalHooks("change",this.indexesSequence,null)}),this.trimmingMapsCollection.addLocalHook("change",e=>{this.trimmedIndexesChanged=!0,this.updateCache(),this.runLocalHooks("change",e,this.trimmingMapsCollection)}),this.hidingMapsCollection.addLocalHook("change",e=>{this.hiddenIndexesChanged=!0,this.updateCache(),this.runLocalHooks("change",e,this.hidingMapsCollection)}),this.variousMapsCollection.addLocalHook("change",e=>{this.runLocalHooks("change",e,this.variousMapsCollection)})}suspendOperations(){this.isBatched=!0}resumeOperations(){this.isBatched=!1,this.updateCache()}createChangesObserver(e){if("hiding"!==e)throw new Error(`Unsupported index map type "${e}".`);return this.hidingChangesObservable.createObserver()}createAndRegisterIndexMap(e,t,o){return this.registerMap(e,(0,n.createIndexMap)(t,o))}registerMap(e,t){if(this.trimmingMapsCollection.get(e)||this.hidingMapsCollection.get(e)||this.variousMapsCollection.get(e))throw Error(`Map with name "${e}" has been already registered.`);t instanceof n.TrimmingMap?this.trimmingMapsCollection.register(e,t):t instanceof n.HidingMap?this.hidingMapsCollection.register(e,t):this.variousMapsCollection.register(e,t);const o=this.getNumberOfIndexes();return o>0&&t.init(o),t}unregisterMap(e){this.trimmingMapsCollection.unregister(e),this.hidingMapsCollection.unregister(e),this.variousMapsCollection.unregister(e)}unregisterAll(){this.trimmingMapsCollection.unregisterAll(),this.hidingMapsCollection.unregisterAll(),this.variousMapsCollection.unregisterAll()}getPhysicalFromVisualIndex(e){const t=this.notTrimmedIndexesCache[e];return(0,c.isDefined)(t)?t:null}getPhysicalFromRenderableIndex(e){const t=this.renderablePhysicalIndexesCache[e];return(0,c.isDefined)(t)?t:null}getVisualFromPhysicalIndex(e){const t=this.fromPhysicalToVisualIndexesCache.get(e);return(0,c.isDefined)(t)?t:null}getVisualFromRenderableIndex(e){return this.getVisualFromPhysicalIndex(this.getPhysicalFromRenderableIndex(e))}getRenderableFromVisualIndex(e){const t=this.fromVisualToRenderableIndexesCache.get(e);return(0,c.isDefined)(t)?t:null}getNearestNotHiddenIndex(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null===this.getPhysicalFromVisualIndex(e))return null;if(this.fromVisualToRenderableIndexesCache.has(e))return e;const s=Array.from(this.fromVisualToRenderableIndexesCache.keys());let i=-1;return i=t>0?s.findIndex(t=>t>e):s.reverse().findIndex(t=>t<e),-1===i?o?this.getNearestNotHiddenIndex(e,-t,!1):null:s[i]}initToLength(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getNumberOfIndexes();this.notTrimmedIndexesCache=[...new Array(e).keys()],this.notHiddenIndexesCache=[...new Array(e).keys()],this.suspendOperations(),this.indexesChangeSource="init",this.indexesSequence.init(e),this.indexesChangeSource=void 0,this.trimmingMapsCollection.initEvery(e),this.resumeOperations(),this.suspendOperations(),this.hidingMapsCollection.initEvery(e),this.variousMapsCollection.initEvery(e),this.resumeOperations(),this.runLocalHooks("init")}fitToLength(e){const t=this.getNumberOfIndexes();if(e<t){const t=[...Array(this.getNumberOfIndexes()-e).keys()].map(t=>t+e);this.removeIndexes(t)}else this.insertIndexes(t,e-t)}getIndexesSequence(){return this.indexesSequence.getValues()}setIndexesSequence(e){void 0===this.indexesChangeSource&&(this.indexesChangeSource="update"),this.indexesSequence.setValues(e),"update"===this.indexesChangeSource&&(this.indexesChangeSource=void 0)}getNotTrimmedIndexes(){if(!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]))return this.notTrimmedIndexesCache;return this.getIndexesSequence().filter(e=>!1===this.isTrimmed(e))}getNotTrimmedIndexesLength(){return this.getNotTrimmedIndexes().length}getNotHiddenIndexes(){if(!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]))return this.notHiddenIndexesCache;return this.getIndexesSequence().filter(e=>!1===this.isHidden(e))}getNotHiddenIndexesLength(){return this.getNotHiddenIndexes().length}getRenderableIndexes(){if(!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]))return this.renderablePhysicalIndexesCache;return this.getNotTrimmedIndexes().filter(e=>!1===this.isHidden(e))}getRenderableIndexesLength(){return this.getRenderableIndexes().length}getNumberOfIndexes(){return this.getIndexesSequence().length}moveIndexes(e,t){"number"==typeof e&&(e=[e]);const o=(0,r.arrayMap)(e,e=>this.getPhysicalFromVisualIndex(e)),s=this.getNotTrimmedIndexesLength(),i=e.length,l=(0,n.getListWithRemovedItems)(this.getIndexesSequence(),o),a=l.filter(e=>!1===this.isTrimmed(e));let h=l.indexOf(a[a.length-1])+1;if(t+i<s){const e=a[t];h=l.indexOf(e)}this.indexesChangeSource="move",this.setIndexesSequence((0,n.getListWithInsertedItems)(l,h,o)),this.indexesChangeSource=void 0}isTrimmed(e){return this.trimmingMapsCollection.getMergedValueAtIndex(e)}isHidden(e){return this.hidingMapsCollection.getMergedValueAtIndex(e)}insertIndexes(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"start";const s=this.getNotTrimmedIndexes()[e],i=(0,c.isDefined)(s)?s:this.getNumberOfIndexes(),n=this.getIndexesSequence().includes(s)?this.getIndexesSequence().indexOf(s):this.getNumberOfIndexes(),l=(0,r.arrayMap)(new Array(t).fill(i),(e,t)=>e+t);this.suspendOperations(),this.indexesChangeSource="insert",this.indexesSequence.insert(n,l),this.indexesChangeSource=void 0;const a="end"===o?l.map(e=>e+1):l;this.trimmingMapsCollection.insertToEvery(n,a),this.hidingMapsCollection.insertToEvery(n,a),this.variousMapsCollection.insertToEvery(n,a),this.resumeOperations()}removeIndexes(e){this.suspendOperations(),this.indexesChangeSource="remove",this.indexesSequence.remove(e),this.indexesChangeSource=void 0,this.trimmingMapsCollection.removeFromEvery(e),this.hidingMapsCollection.removeFromEvery(e),this.variousMapsCollection.removeFromEvery(e),this.resumeOperations()}updateCache(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.indexesSequenceChanged||this.trimmedIndexesChanged||this.hiddenIndexesChanged;(!0===e||!1===this.isBatched&&!0===t)&&(this.trimmingMapsCollection.updateCache(),this.hidingMapsCollection.updateCache(),this.notTrimmedIndexesCache=this.getNotTrimmedIndexes(!1),this.notHiddenIndexesCache=this.getNotHiddenIndexes(!1),this.renderablePhysicalIndexesCache=this.getRenderableIndexes(!1),this.cacheFromPhysicalToVisualIndexes(),this.cacheFromVisualToRenderableIndexes(),this.hiddenIndexesChanged&&this.hidingChangesObservable.emit(this.hidingMapsCollection.getMergedValues()),this.runLocalHooks("cacheUpdated",{indexesSequenceChanged:this.indexesSequenceChanged,trimmedIndexesChanged:this.trimmedIndexesChanged,hiddenIndexesChanged:this.hiddenIndexesChanged}),this.indexesSequenceChanged=!1,this.trimmedIndexesChanged=!1,this.hiddenIndexesChanged=!1)}cacheFromPhysicalToVisualIndexes(){const e=this.getNotTrimmedIndexesLength();this.fromPhysicalToVisualIndexesCache.clear();for(let t=0;t<e;t+=1){const e=this.getPhysicalFromVisualIndex(t);this.fromPhysicalToVisualIndexesCache.set(e,t)}}cacheFromVisualToRenderableIndexes(){const e=this.getRenderableIndexesLength();this.fromVisualToRenderableIndexesCache.clear();for(let t=0;t<e;t+=1){const e=this.getPhysicalFromRenderableIndex(t),o=this.getVisualFromPhysicalIndex(e);this.fromVisualToRenderableIndexesCache.set(o,t)}}}t.IndexMapper=d,(0,h.mixin)(d,a.default)},23139:(e,t,o)=>{"use strict";t.__esModule=!0,t.shortcutsGridContext=function(e){const t=e.getShortcutManager().addContext("grid"),o=(0,r.createKeyboardShortcutCommandsPool)(e),n={runOnlyIf:()=>{const{navigableHeaders:t}=e.getSettings();return(0,s.isDefined)(e.getSelected())&&(t||!t&&e.countRenderedRows()>0&&e.countRenderedCols()>0)},group:i.GRID_GROUP};t.addShortcuts([{keys:[["F2"]],callback:e=>o.editorFastOpen(e)},{keys:[["Enter"],["Enter","Shift"]],callback:(e,t)=>o.editorOpen(e,t)},{keys:[["Backspace"],["Delete"]],callback:()=>o.emptySelectedCells()}],{group:i.EDITOR_EDIT_GROUP,runOnlyIf:()=>(0,s.isDefined)(e.getSelected())}),t.addShortcuts([{keys:[["Control/Meta","A"]],callback:()=>o.selectAllCells(),runOnlyIf:()=>{var t;return!(null!==(t=e.getSelectedRangeLast())&&void 0!==t&&t.highlight.isHeader())}},{keys:[["Control/Meta","A"]],callback:()=>{},runOnlyIf:()=>{var t;return null===(t=e.getSelectedRangeLast())||void 0===t?void 0:t.highlight.isHeader()},preventDefault:!0},{keys:[["Control/Meta","Shift","Space"]],callback:()=>o.selectAllCellsAndHeaders()},{keys:[["Control/Meta","Enter"]],callback:()=>o.populateSelectedCellsData(),runOnlyIf:()=>{var t,o;return!(null!==(t=e.getSelectedRangeLast())&&void 0!==t&&t.highlight.isHeader())&&(null===(o=e.getSelectedRangeLast())||void 0===o?void 0:o.getCellsCount())>1}},{keys:[["Control","Space"]],captureCtrl:!0,callback:()=>o.extendCellsSelectionToColumns()},{keys:[["Shift","Space"]],stopPropagation:!0,callback:()=>o.extendCellsSelectionToRows()},{keys:[["ArrowUp"]],callback:()=>o.moveCellSelectionUp()},{keys:[["ArrowUp","Control/Meta"]],captureCtrl:!0,callback:()=>o.moveCellSelectionToMostTop()},{keys:[["ArrowUp","Shift"]],callback:()=>o.extendCellsSelectionUp()},{keys:[["ArrowUp","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>o.extendCellsSelectionToMostTop(),runOnlyIf:()=>!(e.selection.isSelectedByCorner()||e.selection.isSelectedByColumnHeader())},{keys:[["ArrowDown"]],callback:()=>o.moveCellSelectionDown()},{keys:[["ArrowDown","Control/Meta"]],captureCtrl:!0,callback:()=>o.moveCellSelectionToMostBottom()},{keys:[["ArrowDown","Shift"]],callback:()=>o.extendCellsSelectionDown()},{keys:[["ArrowDown","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>o.extendCellsSelectionToMostBottom(),runOnlyIf:()=>!(e.selection.isSelectedByCorner()||e.selection.isSelectedByColumnHeader())},{keys:[["ArrowLeft"]],callback:()=>o.moveCellSelectionLeft()},{keys:[["ArrowLeft","Control/Meta"]],captureCtrl:!0,callback:()=>o.moveCellSelectionToMostLeft()},{keys:[["ArrowLeft","Shift"]],callback:()=>o.extendCellsSelectionLeft()},{keys:[["ArrowLeft","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>o.extendCellsSelectionToMostLeft(),runOnlyIf:()=>!(e.selection.isSelectedByCorner()||e.selection.isSelectedByRowHeader())},{keys:[["ArrowRight"]],callback:()=>o.moveCellSelectionRight()},{keys:[["ArrowRight","Control/Meta"]],captureCtrl:!0,callback:()=>o.moveCellSelectionToMostRight()},{keys:[["ArrowRight","Shift"]],callback:()=>o.extendCellsSelectionRight()},{keys:[["ArrowRight","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>o.extendCellsSelectionToMostRight(),runOnlyIf:()=>!(e.selection.isSelectedByCorner()||e.selection.isSelectedByRowHeader())},{keys:[["Home"]],captureCtrl:!0,callback:()=>o.moveCellSelectionToMostInlineStart(),runOnlyIf:()=>e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["Home","Shift"]],callback:()=>o.extendCellsSelectionToMostInlineStart()},{keys:[["Home","Control/Meta"]],captureCtrl:!0,callback:()=>o.moveCellSelectionToMostTopInlineStart(),runOnlyIf:()=>e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["End"]],captureCtrl:!0,callback:()=>o.moveCellSelectionToMostInlineEnd(),runOnlyIf:()=>e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["End","Shift"]],callback:()=>o.extendCellsSelectionToMostInlineEnd()},{keys:[["End","Control/Meta"]],captureCtrl:!0,callback:()=>o.moveCellSelectionToMostBottomInlineEnd(),runOnlyIf:()=>e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["PageUp"]],callback:()=>o.moveCellSelectionUpByViewportHight()},{keys:[["PageUp","Shift"]],callback:()=>o.extendCellsSelectionUpByViewportHeight()},{keys:[["PageDown"]],callback:()=>o.moveCellSelectionDownByViewportHeight()},{keys:[["PageDown","Shift"]],callback:()=>o.extendCellsSelectionDownByViewportHeight()},{keys:[["Tab"]],preventDefault:!1,callback:e=>o.moveCellSelectionInlineStart(e)},{keys:[["Shift","Tab"]],preventDefault:!1,callback:e=>o.moveCellSelectionInlineEnd(e)},{keys:[["Control/Meta","Backspace"]],callback:()=>o.scrollToFocusedCell()}],n)};var s=o(50929),i=o(79514),r=o(84470)},23150:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(28220);t.EDITOR_TYPE=s.EDITOR_TYPE,t.HandsontableEditor=s.HandsontableEditor},23175:(e,t,o)=>{"use strict";t.__esModule=!0,t.dateRenderer=r;var s=o(29599);const i=t.RENDERER_TYPE="date";function r(e,t,o,i,r,n,l){s.autocompleteRenderer.apply(this,[e,t,o,i,r,n,l])}r.RENDERER_TYPE=i},23214:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(25220);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.TouchScroll=s.TouchScroll},23309:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(85639);var i=s(o(68526)),r=s(o(81365)),n=o(13773),l=s(o(60989)),a=s(o(24463)),h=s(o(32654)),c=s(o(66748)),u=o(7080),d=o(87203),g=o(43561);class f extends c.default{constructor(e,t){super(e,new l.default(t));const o=this.wtSettings.getSetting("facade",this);this.wtTable=new a.default(this.getTableDao(),o,this.domBindings,this.wtSettings),this.wtViewport=new h.default(this.getViewportDao(),this.domBindings,this.wtSettings,this.eventManager,this.wtTable),this.selectionManager=new u.SelectionManager(this.wtSettings.getSetting("selections")),this.wtEvent=new i.default(o,this.domBindings,this.wtSettings,this.eventManager,this.wtTable,this.selectionManager),this.wtOverlays=new r.default(this,o,this.domBindings,this.wtSettings,this.eventManager,this.wtTable),this.exportSettingsAsClassNames(),this.findOriginalHeaders()}exportSettingsAsClassNames(){const e=[],t=[];(0,d.objectEach)({rowHeaders:"htRowHeaders",columnHeaders:"htColumnHeaders"},(o,s)=>{this.wtSettings.getSetting(s).length&&t.push(o),e.push(o)}),(0,g.removeClass)(this.wtTable.wtRootElement.parentNode,e),(0,g.addClass)(this.wtTable.wtRootElement.parentNode,t)}getOverlayByName(e){var t;if(!n.CLONE_TYPES.includes(e))return null;const o=e.replace(/_([a-z])/g,e=>e[1].toUpperCase());return null!==(t=this.wtOverlays[`${o}Overlay`])&&void 0!==t?t:null}getViewportDao(){const e=this;return{get wot(){return e},get topOverlayTrimmingContainer(){return e.wtOverlays.topOverlay.trimmingContainer},get inlineStartOverlayTrimmingContainer(){return e.wtOverlays.inlineStartOverlay.trimmingContainer},get topScrollPosition(){return e.wtOverlays.topOverlay.getScrollPosition()},get topParentOffset(){return e.wtOverlays.topOverlay.getTableParentOffset()},get inlineStartScrollPosition(){return e.wtOverlays.inlineStartOverlay.getScrollPosition()},get inlineStartParentOffset(){return e.wtOverlays.inlineStartOverlay.getTableParentOffset()},get topOverlay(){return e.wtOverlays.topOverlay},get inlineStartOverlay(){return e.wtOverlays.inlineStartOverlay},get bottomOverlay(){return e.wtOverlays.bottomOverlay}}}}t.default=f},23473:(e,t,o)=>{"use strict";var s=o(21313),i=o(14499),r=o(90911),n=o(18622),l=o(78016),a=i.add,h=i.has,c=i.remove;e.exports=function(e){var t=s(this),o=n(e).getIterator(),i=r(t);return l(o,function(e){h(t,e)?c(i,e):a(i,e)}),i}},23621:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(87203),n=o(28811),l=s(o(82014));const a=["data","width"];t.default=class{constructor(e){(0,i.default)(this,"globalMeta",void 0),(0,i.default)(this,"metas",new l.default(()=>this._createMeta())),this.globalMeta=e,this.metas=new l.default(()=>this._createMeta())}updateMeta(e,t){const o=this.getMeta(e);(0,r.extend)(o,t),(0,n.extendByMetaType)(o,t)}createColumn(e,t){this.metas.insert(e,t)}removeColumn(e,t){this.metas.remove(e,t)}getMeta(e){return this.metas.obtain(e)}getMetaConstructor(e){return this.metas.obtain(e).constructor}clearCache(){this.metas.clear()}_createMeta(){return(0,n.columnFactory)(this.globalMeta.getMetaConstructor(),a).prototype}}},23736:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(30581);t.command={name:"editorOpen",callback(e,t,o){const i=e._getEditorManager(),r=e.getSelectedRangeLast(),{highlight:n}=r;if(e.selection.isMultiple()&&!r.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0){const s=e.getSettings(),i="function"==typeof s.enterMoves?s.enterMoves(t):s.enterMoves;return void(o.includes("shift")?e.selection.transformFocus(-i.row,-i.col):e.selection.transformFocus(i.row,i.col))}n.isHeader()||(e.getSettings().enterBeginsEditing?i.cellProperties.readOnly?i.moveSelectionAfterEnter(t):i.openEditor(null,t,!0):i.moveSelectionAfterEnter(t),(0,s.stopImmediatePropagation)(t))}}},23788:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443);var i=s(o(28191));function r(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function n(e,t){return e.get(a(e,t))}function l(e,t,o){return e.set(a(e,t),o),o}function a(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap;t.default=class{constructor(e,t,o){r(this,h,void 0),r(this,c,void 0),r(this,u,void 0),r(this,d,!1),r(this,g,!1),r(this,f,null),r(this,p,null),l(h,this,new i.default("row",e,this)),l(c,this,new i.default("column",t,this)),l(u,this,o)}getForAxis(e){return n("row"===e?h:c,this)}setPerformUndo(e){l(d,this,e)}setPerformRedo(e){l(g,this,e)}isPerformingUndoRedo(){return n(d,this)||n(g,this)}getSheetId(){return n(p,this)}getEngine(){return n(f,this)}getPostponeAction(){return n(u,this)}setupSyncEndpoint(e,t){l(f,this,e),l(p,this,t),n(h,this).init(),n(c,this).init()}}},23832:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"editorCloseAndSave",callback(e){e._getEditorManager().closeEditorAndSaveChanges()}}},24217:(e,t,o)=>{"use strict";t.__esModule=!0,t.registerAllModules=function(){(0,s.registerAllEditors)(),(0,i.registerAllRenderers)(),(0,r.registerAllValidators)(),(0,n.registerAllCellTypes)(),(0,l.registerAllPlugins)()};var s=o(92057);t.registerAllEditors=s.registerAllEditors;var i=o(13251);t.registerAllRenderers=i.registerAllRenderers;var r=o(7466);t.registerAllValidators=r.registerAllValidators;var n=o(57438);t.registerAllCellTypes=n.registerAllCellTypes;var l=o(4295);t.registerAllPlugins=l.registerAllPlugins},24463:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=o(43561),r=s(o(1002)),n=s(o(86738)),l=s(o(1612)),a=o(87203);class h extends r.default{constructor(e,t,o,s){super(e,t,o,s,"master")}alignOverlaysWithTrimmingContainer(){const e=(0,i.getTrimmingContainer)(this.wtRootElement),{rootWindow:t}=this.domBindings;if(e===t){this.wtSettings.getSetting("preventOverflow")||(this.holder.style.overflow="visible",this.wtRootElement.style.overflow="visible")}else{const o=e.parentElement,s=(0,i.getStyle)(e,"height",t),r=(0,i.getStyle)(e,"overflow",t),n=this.holder.style,{scrollWidth:l,scrollHeight:a}=e;let h=e.offsetWidth,c=e.offsetHeight;if(o&&["auto","hidden","scroll"].includes(r)){const s=e.cloneNode(!1);s.style.overflow="auto",s.style.position="absolute",e.nextElementSibling?o.insertBefore(s,e.nextElementSibling):o.appendChild(s);const i=parseInt(t.getComputedStyle(s).height,10);o.removeChild(s),0===i&&(c=0)}c=Math.min(c,a),n.height="auto"===s?"auto":`${c}px`,h=Math.min(h,l),n.width=`${h}px`,n.overflow="",this.hasTableHeight="auto"===n.height||c>0,this.hasTableWidth=h>0}this.isTableVisible=(0,i.isVisible)(this.TABLE)}markOversizedColumnHeaders(){const{wtSettings:e}=this,{wtViewport:t}=this.dataAccessObject,o="master",s=e.getSetting("columnHeaders").length;if(s&&!t.hasOversizedColumnHeadersMarked[o]){const i=e.getSetting("rowHeaders").length,r=this.getRenderedColumnsCount();for(let e=0;e<s;e++)for(let e=-1*i;e<r;e++)this.markIfOversizedColumnHeader(e);t.hasOversizedColumnHeadersMarked[o]=!0}}}(0,a.mixin)(h,n.default),(0,a.mixin)(h,l.default);t.default=h},24962:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(85639);var i=s(o(53726)),r=o(68308);const n=t.DEFAULT_WIDTH=50;class l extends r.ViewportBaseCalculator{constructor(e){let{calculationTypes:t,viewportWidth:o,scrollOffset:s,totalColumns:r,columnWidthFn:n,overrideFn:l,inlineStartOffset:a}=e;super(t),(0,i.default)(this,"viewportWidth",0),(0,i.default)(this,"scrollOffset",0),(0,i.default)(this,"zeroBasedScrollOffset",0),(0,i.default)(this,"totalColumns",0),(0,i.default)(this,"columnWidthFn",null),(0,i.default)(this,"columnWidth",0),(0,i.default)(this,"overrideFn",null),(0,i.default)(this,"inlineStartOffset",0),(0,i.default)(this,"totalCalculatedWidth",0),(0,i.default)(this,"startPositions",[]),(0,i.default)(this,"needReverse",!0),this.viewportWidth=o,this.scrollOffset=s,this.zeroBasedScrollOffset=Math.max(s,0),this.totalColumns=r,this.columnWidthFn=n,this.overrideFn=l,this.inlineStartOffset=a,this.calculate()}calculate(){this._initialize(this);for(let e=0;e<this.totalColumns;e++)if(this.columnWidth=this.getColumnWidth(e),this._process(e,this),this.startPositions.push(this.totalCalculatedWidth),this.totalCalculatedWidth+=this.columnWidth,this.totalCalculatedWidth>=this.zeroBasedScrollOffset+this.viewportWidth){this.needReverse=!1;break}this._finalize(this)}getColumnWidth(e){const t=this.columnWidthFn(e);return isNaN(t)?n:t}}t.ViewportColumnsCalculator=l},25220:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639);var i=s(o(53726)),r=o(43561),n=o(18051),l=o(44233),a=o(10880);function h(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function c(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const u=t.PLUGIN_KEY="touchScroll",d=t.PLUGIN_PRIORITY=200;var g=new WeakSet;class f extends l.BasePlugin{constructor(){super(...arguments),h(this,g),(0,i.default)(this,"scrollbars",[]),(0,i.default)(this,"clones",[]),(0,i.default)(this,"lockedCollection",!1),(0,i.default)(this,"freezeOverlays",!1)}static get PLUGIN_KEY(){return u}static get PLUGIN_PRIORITY(){return d}static get SETTING_KEYS(){return!0}isEnabled(){return(0,a.isTouchSupported)()}enablePlugin(){this.enabled||(this.addHook("afterViewRender",()=>c(g,this,p).call(this)),this.registerEvents(),super.enablePlugin())}updatePlugin(){this.lockedCollection=!1,super.updatePlugin()}disablePlugin(){super.disablePlugin()}registerEvents(){this.addHook("beforeTouchScroll",()=>c(g,this,m).call(this)),this.addHook("afterMomentumScroll",()=>c(g,this,w).call(this))}}function p(){if(this.lockedCollection)return;const{topOverlay:e,bottomOverlay:t,inlineStartOverlay:o,topInlineStartCornerOverlay:s,bottomInlineStartCornerOverlay:i}=this.hot.view._wt.wtOverlays;this.lockedCollection=!0,this.scrollbars.length=0,this.scrollbars.push(e),t.clone&&this.scrollbars.push(t),this.scrollbars.push(o),s&&this.scrollbars.push(s),i&&i.clone&&this.scrollbars.push(i),this.clones=[],e.needFullRender&&this.clones.push(e.clone.wtTable.holder.parentNode),t.needFullRender&&this.clones.push(t.clone.wtTable.holder.parentNode),o.needFullRender&&this.clones.push(o.clone.wtTable.holder.parentNode),s&&this.clones.push(s.clone.wtTable.holder.parentNode),i&&i.clone&&this.clones.push(i.clone.wtTable.holder.parentNode)}function m(){this.freezeOverlays=!0,(0,n.arrayEach)(this.clones,e=>{(0,r.addClass)(e,"hide-tween")})}function w(){this.freezeOverlays=!1,(0,n.arrayEach)(this.clones,e=>{(0,r.removeClass)(e,"hide-tween"),(0,r.addClass)(e,"show-tween")}),this.hot._registerTimeout(()=>{(0,n.arrayEach)(this.clones,e=>{(0,r.removeClass)(e,"show-tween")})},400),(0,n.arrayEach)(this.scrollbars,e=>{e.refresh(),e.resetFixedPosition()}),this.hot.view._wt.wtOverlays.syncScrollWithMaster()}t.TouchScroll=f},25225:(e,t,o)=>{"use strict";var s=o(68999),i=Function.prototype,r=i.call,n=s&&i.bind.bind(r,r);e.exports=s?n:function(e){return function(){return r.apply(e,arguments)}}},25309:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(85639);var i=o(30581),r=o(18051),n=o(59073),l=o(43561),a=s(o(38545)),h=s(o(77611));class c extends a.default{constructor(e,t){var o;super(e,t),o=this,this.dataManager=this.plugin.dataManager,this.collapsedRows=[],this.collapsedRowsStash={stash:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];o.lastCollapsedRows=o.collapsedRows.slice(0),o.expandMultipleChildren(o.lastCollapsedRows,e)},shiftStash:function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;null==t&&(t=1/0),(0,r.arrayEach)(o.lastCollapsedRows,(i,r)=>{i>=e&&i<t&&(o.lastCollapsedRows[r]=i+s)})},applyStash:function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];o.collapseMultipleChildren(o.lastCollapsedRows,e),o.lastCollapsedRows=void 0},trimStash:(e,t)=>{(0,n.rangeEach)(e,e+t-1,e=>{const t=this.lastCollapsedRows.indexOf(e);t>-1&&this.lastCollapsedRows.splice(t,1)})}}}collapseChildren(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const s=[];let i=null,n=null,l=null;return isNaN(e)?(i=e,n=this.dataManager.getRowIndex(i)):(i=this.dataManager.getDataObject(e),n=e),this.dataManager.hasChildren(i)&&(0,r.arrayEach)(i.__children,e=>{s.push(this.dataManager.getRowIndex(e))}),l=this.collapseRows(s,!0,!1),o&&this.trimRows(l),t&&this.renderAndAdjust(),-1===this.collapsedRows.indexOf(n)&&this.collapsedRows.push(n),l}collapseMultipleChildren(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const s=[];(0,r.arrayEach)(e,e=>{s.push(...this.collapseChildren(e,!1,!1))}),o&&this.trimRows(s),t&&this.renderAndAdjust()}collapseRow(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.collapseRows([e],t)}collapseRows(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const s=[];return(0,r.arrayEach)(e,e=>{s.push(e),t&&this.collapseChildRows(e,s)}),o&&this.trimRows(s),s}collapseChildRows(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.dataManager.hasChildren(e)){const o=this.dataManager.getDataObject(e);(0,r.arrayEach)(o.__children,e=>{const o=this.dataManager.getRowIndex(e);t.push(o),this.collapseChildRows(o,t)})}o&&this.trimRows(t)}expandRow(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.expandRows([e],t)}expandRows(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const s=[];return(0,r.arrayEach)(e,e=>{s.push(e),t&&this.expandChildRows(e,s)}),o&&this.untrimRows(s),s}expandChildRows(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.dataManager.hasChildren(e)){const o=this.dataManager.getDataObject(e);(0,r.arrayEach)(o.__children,e=>{if(!this.isAnyParentCollapsed(e)){const o=this.dataManager.getRowIndex(e);t.push(o),this.expandChildRows(o,t)}})}o&&this.untrimRows(t)}expandChildren(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const s=[];let i=null,n=null,l=null;return isNaN(e)?(i=e,n=this.dataManager.getRowIndex(e)):(i=this.dataManager.getDataObject(e),n=e),this.collapsedRows.splice(this.collapsedRows.indexOf(n),1),this.dataManager.hasChildren(i)&&(0,r.arrayEach)(i.__children,e=>{const t=this.dataManager.getRowIndex(e);s.push(t)}),l=this.expandRows(s,!0,!1),o&&this.untrimRows(l),t&&this.renderAndAdjust(),l}expandMultipleChildren(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const s=[];(0,r.arrayEach)(e,e=>{s.push(...this.expandChildren(e,!1,!1))}),o&&this.untrimRows(s),t&&this.renderAndAdjust()}collapseAll(){const e=this.dataManager.getData(),t=[];(0,r.arrayEach)(e,e=>{this.dataManager.hasChildren(e)&&t.push(e)}),this.collapseMultipleChildren(t),this.renderAndAdjust()}expandAll(){const e=this.dataManager.getData(),t=[];(0,r.arrayEach)(e,e=>{this.dataManager.hasChildren(e)&&t.push(e)}),this.expandMultipleChildren(t),this.renderAndAdjust()}trimRows(e){this.hot.batchExecution(()=>{(0,r.arrayEach)(e,e=>{this.plugin.collapsedRowsMap.setValueAtIndex(e,!0)})},!0)}untrimRows(e){this.hot.batchExecution(()=>{(0,r.arrayEach)(e,e=>{this.plugin.collapsedRowsMap.setValueAtIndex(e,!1)})},!0)}areChildrenCollapsed(e){let t=isNaN(e)?e:this.dataManager.getDataObject(e),o=!0;return null===t&&(t={__children:this.dataManager.data}),this.dataManager.hasChildren(t)&&(0,r.arrayEach)(t.__children,e=>{const t=this.dataManager.getRowIndex(e);if(!this.plugin.collapsedRowsMap.getValueAtIndex(t))return o=!1,!1}),o}isAnyParentCollapsed(e){let t=e;for(;null!==t;){t=this.dataManager.getRowParent(t);const e=this.dataManager.getRowIndex(t);if(this.collapsedRows.indexOf(e)>-1)return!0}return!1}toggleState(e,t){if(t.col>=0)return;const o=this.translateTrimmedRow(t.row);(0,l.hasClass)(e.target,h.default.CSS_CLASSES.button)&&(this.areChildrenCollapsed(o)?this.expandChildren(o):this.collapseChildren(o),(0,i.stopImmediatePropagation)(e))}translateTrimmedRow(e){return this.hot.toPhysicalRow(e)}untranslateTrimmedRow(e){return this.hot.toVisualRow(e)}renderAndAdjust(){this.hot.render(),this.hot.view.adjustElementsSize()}}t.default=c},25340:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(1006),i=o(43561);const r=t.EDITOR_TYPE="checkbox";class n extends s.BaseEditor{static get EDITOR_TYPE(){return r}beginEditing(e,t){if(t&&"mouseup"===t.type&&"TD"===t.target.nodeName){const e=this.TD.querySelector('input[type="checkbox"]');(0,i.hasClass)(e,"htBadValue")||e.click()}}finishEditing(){}init(){}open(){}close(){}getValue(){}setValue(){}focus(){}}t.CheckboxEditor=n},25439:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(62705),o(78495),o(43554),o(15247),o(18472),o(89711),o(78675),o(73741),o(69326),o(90795),o(82141);var i=s(o(53726)),r=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(42390)),n=s(o(85984)),l=o(87203),a=o(50929),h=o(59073),c=o(18051),u=s(o(44266)),d=s(o(98020)),g=o(37616),f=o(5651),p=o(38856);function m(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function w(e,t){return e.get(v(e,t))}function C(e,t,o){return e.set(v(e,t),o),o}function v(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var y=new WeakMap,E=new WeakMap,S=new WeakMap,R=new WeakMap,b=new WeakMap,_=new WeakMap;class T{constructor(e,t){var o=this;(0,i.default)(this,"settings",void 0),(0,i.default)(this,"tableProps",void 0),(0,i.default)(this,"inProgress",!1),(0,i.default)(this,"selectedRange",new n.default((e,t,o)=>this.tableProps.createCellRange(e,t,o))),(0,i.default)(this,"highlight",void 0),m(this,y,void 0),m(this,E,void 0),(0,i.default)(this,"selectedByRowHeader",new Set),(0,i.default)(this,"selectedByColumnHeader",new Set),m(this,S,!1),m(this,R,!1),m(this,b,"unknown"),m(this,_,-1),this.settings=e,this.tableProps=t,this.highlight=new r.default({headerClassName:e.currentHeaderClassName,activeHeaderClassName:e.activeHeaderClassName,rowClassName:e.currentRowClassName,columnClassName:e.currentColClassName,cellAttributes:[(0,p.A11Y_SELECTED)()],rowIndexMapper:this.tableProps.rowIndexMapper,columnIndexMapper:this.tableProps.columnIndexMapper,disabledCellSelection:(e,t)=>this.tableProps.isDisabledCellSelection(e,t),cellCornerVisible:function(){return o.isCellCornerVisible(...arguments)},areaCornerVisible:function(){return o.isAreaCornerVisible(...arguments)},visualToRenderableCoords:e=>this.tableProps.visualToRenderableCoords(e),renderableToVisualCoords:e=>this.tableProps.renderableToVisualCoords(e),createCellCoords:(e,t)=>this.tableProps.createCellCoords(e,t),createCellRange:(e,t,o)=>this.tableProps.createCellRange(e,t,o)}),C(y,this,new d.default(this.selectedRange,{rowIndexMapper:this.tableProps.rowIndexMapper,columnIndexMapper:this.tableProps.columnIndexMapper,countRenderableRows:()=>this.tableProps.countRenderableRows(),countRenderableColumns:()=>this.tableProps.countRenderableColumns(),visualToRenderableCoords:e=>this.tableProps.visualToRenderableCoords(e),renderableToVisualCoords:e=>this.tableProps.renderableToVisualCoords(e),findFirstNonHiddenRenderableRow:function(){return o.tableProps.findFirstNonHiddenRenderableRow(...arguments)},findFirstNonHiddenRenderableColumn:function(){return o.tableProps.findFirstNonHiddenRenderableColumn(...arguments)},createCellCoords:(e,t)=>this.tableProps.createCellCoords(e,t),fixedRowsBottom:()=>e.fixedRowsBottom,minSpareRows:()=>e.minSpareRows,minSpareCols:()=>e.minSpareCols,autoWrapRow:()=>e.autoWrapRow,autoWrapCol:()=>e.autoWrapCol})),C(E,this,new d.default(this.selectedRange,{rowIndexMapper:this.tableProps.rowIndexMapper,columnIndexMapper:this.tableProps.columnIndexMapper,countRenderableRows:()=>{const e=this.selectedRange.current();return this.tableProps.countRenderableRowsInRange(0,e.getOuterBottomEndCorner().row)},countRenderableColumns:()=>{const e=this.selectedRange.current();return this.tableProps.countRenderableColumnsInRange(0,e.getOuterBottomEndCorner().col)},visualToRenderableCoords:e=>this.tableProps.visualToRenderableCoords(e),renderableToVisualCoords:e=>this.tableProps.renderableToVisualCoords(e),findFirstNonHiddenRenderableRow:function(){return o.tableProps.findFirstNonHiddenRenderableRow(...arguments)},findFirstNonHiddenRenderableColumn:function(){return o.tableProps.findFirstNonHiddenRenderableColumn(...arguments)},createCellCoords:(e,t)=>this.tableProps.createCellCoords(e,t),fixedRowsBottom:()=>0,minSpareRows:()=>0,minSpareCols:()=>0,autoWrapRow:()=>!0,autoWrapCol:()=>!0})),w(y,this).addLocalHook("beforeTransformStart",function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return o.runLocalHooks("beforeModifyTransformStart",...t)}),w(y,this).addLocalHook("afterTransformStart",function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return o.runLocalHooks("afterModifyTransformStart",...t)}),w(y,this).addLocalHook("beforeTransformEnd",function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return o.runLocalHooks("beforeModifyTransformEnd",...t)}),w(y,this).addLocalHook("afterTransformEnd",function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return o.runLocalHooks("afterModifyTransformEnd",...t)}),w(y,this).addLocalHook("insertRowRequire",function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return o.runLocalHooks("insertRowRequire",...t)}),w(y,this).addLocalHook("insertColRequire",function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return o.runLocalHooks("insertColRequire",...t)}),w(y,this).addLocalHook("beforeRowWrap",function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return o.runLocalHooks("beforeRowWrap",...t)}),w(y,this).addLocalHook("beforeColumnWrap",function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return o.runLocalHooks("beforeColumnWrap",...t)}),w(E,this).addLocalHook("beforeTransformStart",function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return o.runLocalHooks("beforeModifyTransformFocus",...t)}),w(E,this).addLocalHook("afterTransformStart",function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return o.runLocalHooks("afterModifyTransformFocus",...t)})}getSelectedRange(){return this.selectedRange}markSource(e){C(b,this,e)}markEndSource(){C(b,this,"unknown")}getSelectionSource(){return w(b,this)}setExpectedLayers(e){C(_,this,e)}begin(){this.inProgress=!0}finish(){this.runLocalHooks("afterSelectionFinished",Array.from(this.selectedRange)),this.inProgress=!1,C(_,this,-1)}isInProgress(){return this.inProgress}setRangeStart(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e;const i="multiple"===this.settings.selectionMode,r=(0,a.isUndefined)(t)?this.tableProps.getShortcutManager().isCtrlPressed():t,n=e.clone();C(S,this,!1),this.runLocalHooks("beforeSetRangeStart"+(o?"Only":""),n),(!i||i&&!r&&(0,a.isUndefined)(t))&&this.selectedRange.clear(),this.selectedRange.add(n).current().setHighlight(s.clone()),0===this.getLayerLevel()&&(this.selectedByRowHeader.clear(),this.selectedByColumnHeader.clear()),o||this.setRangeEnd(e)}setRangeStartOnly(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;this.setRangeStart(e,t,!0,o)}setRangeEnd(e){if(this.selectedRange.isEmpty())return;const t=e.clone(),o=this.tableProps.countRows(),s=this.tableProps.countCols(),i=this.selectedRange.current().clone().setTo(e).isSingleHeader();if((o>0||s>0)&&(0===o&&t.col<0&&!i||0===s&&t.row<0&&!i))return;this.runLocalHooks("beforeSetRangeEnd",t),this.begin();const r=this.selectedRange.current();if(this.settings.navigableHeaders||r.highlight.normalize(),"single"===this.settings.selectionMode)r.setFrom(r.highlight),r.setTo(r.highlight);else{const e=r.getHorizontalDirection(),o=r.getVerticalDirection(),s=this.isMultiple();r.setTo(t),s&&(e!==r.getHorizontalDirection()||1===r.getWidth()&&!r.includes(r.highlight))&&r.from.assign({col:r.highlight.col}),s&&(o!==r.getVerticalDirection()||1===r.getHeight()&&!r.includes(r.highlight))&&r.from.assign({row:r.highlight.row})}o>0&&s>0&&(!this.settings.navigableHeaders||this.settings.navigableHeaders&&!r.isSingleHeader())&&r.to.normalize(),this.runLocalHooks("beforeHighlightSet"),this.setRangeFocus(this.selectedRange.current().highlight),this.applyAndCommit();const n=-1===w(_,this)||this.selectedRange.size()===w(_,this);this.runLocalHooks("afterSetRangeEnd",e,n)}applyAndCommit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.selectedRange.current(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLayerLevel();const o=this.tableProps.countRows(),s=this.tableProps.countCols();t<this.highlight.layerLevel&&((0,c.arrayEach)(this.highlight.getAreas(),e=>{e.clear()}),(0,c.arrayEach)(this.highlight.getLayeredAreas(),e=>{e.clear()}),(0,c.arrayEach)(this.highlight.getRowHeaders(),e=>{e.clear()}),(0,c.arrayEach)(this.highlight.getColumnHeaders(),e=>{e.clear()}),(0,c.arrayEach)(this.highlight.getActiveRowHeaders(),e=>{e.clear()}),(0,c.arrayEach)(this.highlight.getActiveColumnHeaders(),e=>{e.clear()}),(0,c.arrayEach)(this.highlight.getActiveCornerHeaders(),e=>{e.clear()}),(0,c.arrayEach)(this.highlight.getRowHighlights(),e=>{e.clear()}),(0,c.arrayEach)(this.highlight.getColumnHighlights(),e=>{e.clear()})),this.highlight.useLayerLevel(t);const i=this.highlight.createArea(),n=this.highlight.createLayeredArea(),l=this.highlight.createRowHeader(),a=this.highlight.createColumnHeader(),h=this.highlight.createActiveRowHeader(),u=this.highlight.createActiveColumnHeader(),d=this.highlight.createActiveCornerHeader(),g=this.highlight.createRowHighlight(),f=this.highlight.createColumnHighlight();if(i.clear(),n.clear(),l.clear(),a.clear(),h.clear(),u.clear(),d.clear(),g.clear(),f.clear(),this.highlight.isEnabledFor(r.AREA_TYPE,e.highlight)&&(this.isMultiple()||t>=1)&&(i.add(e.from).add(e.to).commit(),n.add(e.from).add(e.to).commit(),1===t)){const e=this.selectedRange.previous();this.highlight.useLayerLevel(t-1),this.highlight.createArea().add(e.from).commit().syncWith(e),this.highlight.createLayeredArea().add(e.from).commit().syncWith(e),this.highlight.useLayerLevel(t)}if(this.highlight.isEnabledFor(r.HEADER_TYPE,e.highlight)){if(!e.isSingleHeader()){const t=this.tableProps.createCellCoords(Math.max(e.from.row,0),-1),o=this.tableProps.createCellCoords(e.to.row,-1),s=this.tableProps.createCellCoords(-1,Math.max(e.from.col,0)),i=this.tableProps.createCellCoords(-1,e.to.col);"single"===this.settings.selectionMode?(l.add(t).commit(),a.add(s).commit(),g.add(t).commit(),f.add(s).commit()):(l.add(t).add(o).commit(),a.add(s).add(i).commit(),g.add(t).add(o).commit(),f.add(s).add(i).commit())}const t=!w(R,this)&&this.isEntireRowSelected()&&(s>0&&s===e.getWidth()||0===s&&this.isSelectedByRowHeader()),i=!w(R,this)&&this.isEntireColumnSelected()&&(o>0&&o===e.getHeight()||0===o&&this.isSelectedByColumnHeader());t&&h.add(this.tableProps.createCellCoords(Math.max(e.from.row,0),Math.min(-this.tableProps.countRowHeaders(),-1))).add(this.tableProps.createCellCoords(Math.max(e.to.row,0),-1)).commit(),i&&u.add(this.tableProps.createCellCoords(Math.min(-this.tableProps.countColHeaders(),-1),Math.max(e.from.col,0))).add(this.tableProps.createCellCoords(-1,Math.max(e.to.col,0))).commit(),t&&i&&d.add(this.tableProps.createCellCoords(-this.tableProps.countColHeaders(),-this.tableProps.countRowHeaders())).add(this.tableProps.createCellCoords(-1,-1)).commit()}}setRangeFocus(e){if(this.selectedRange.isEmpty())return;const t=this.selectedRange.current();this.inProgress||this.runLocalHooks("beforeSetFocus",e);const o=this.highlight.getFocus();o.clear(),t.setHighlight(e),this.inProgress||this.runLocalHooks("beforeHighlightSet"),this.highlight.isEnabledFor(r.FOCUS_TYPE,t.highlight)&&o.add(t.highlight).commit().syncWith(t),this.inProgress||(C(S,this,!0),this.runLocalHooks("afterSetFocus",t.highlight))}transformStart(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.settings.navigableHeaders?w(y,this).setOffsetSize({x:this.tableProps.countRowHeaders(),y:this.tableProps.countColHeaders()}):w(y,this).resetOffsetSize(),this.setRangeStart(w(y,this).transformStart(e,t,o))}transformEnd(e,t){this.settings.navigableHeaders?w(y,this).setOffsetSize({x:this.tableProps.countRowHeaders(),y:this.tableProps.countColHeaders()}):w(y,this).resetOffsetSize(),this.setRangeEnd(w(y,this).transformEnd(e,t))}transformFocus(e,t){const o=this.selectedRange.current(),{row:s,col:i}=o.getOuterTopStartCorner(),r=this.tableProps.countRenderableColumnsInRange(0,i-1),n=this.tableProps.countRenderableRowsInRange(0,s-1);o.highlight.isHeader()?w(E,this).setOffsetSize({x:i<0?Math.abs(i):-r,y:s<0?Math.abs(s):-n}):w(E,this).setOffsetSize({x:i<0?0:-r,y:s<0?0:-n});const l=w(E,this).transformStart(e,t);this.setRangeFocus(l.normalize())}shiftRows(e,t){if(!this.isSelected())return;const o=this.selectedRange.current();if(this.isSelectedByCorner())this.selectAll(!0,!0,{disableHeadersHighlight:!0});else if(this.isSelectedByColumnHeader()||o.getOuterTopStartCorner().row>=e){const{from:s,to:i,highlight:r}=o,n=this.tableProps.countRows(),l=this.isSelectedByRowHeader(),a=this.isSelectedByColumnHeader(),c=a?-1:0,u=a?0:t;this.getSelectedRange().pop();const d=this.tableProps.createCellCoords((0,h.clamp)(s.row+u,c,n-1),s.col),g=this.tableProps.createCellCoords((0,h.clamp)(i.row+t,c,n-1),i.col);this.markSource("shift"),r.row>=e?this.setRangeStartOnly(d,!0,this.tableProps.createCellCoords((0,h.clamp)(r.row+t,0,n-1),r.col)):this.setRangeStartOnly(d,!0),l&&this.selectedByRowHeader.add(this.getLayerLevel()),a&&this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(g),this.markEndSource()}}shiftColumns(e,t){if(!this.isSelected())return;const o=this.selectedRange.current();if(this.isSelectedByCorner())this.selectAll(!0,!0,{disableHeadersHighlight:!0});else if(this.isSelectedByRowHeader()||o.getOuterTopStartCorner().col>=e){const{from:s,to:i,highlight:r}=o,n=this.tableProps.countCols(),l=this.isSelectedByRowHeader(),a=this.isSelectedByColumnHeader(),c=l?-1:0,u=l?0:t;this.getSelectedRange().pop();const d=this.tableProps.createCellCoords(s.row,(0,h.clamp)(s.col+u,c,n-1)),g=this.tableProps.createCellCoords(i.row,(0,h.clamp)(i.col+t,c,n-1));this.markSource("shift"),r.col>=e?this.setRangeStartOnly(d,!0,this.tableProps.createCellCoords(r.row,(0,h.clamp)(r.col+t,0,n-1))):this.setRangeStartOnly(d,!0),l&&this.selectedByRowHeader.add(this.getLayerLevel()),a&&this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(g),this.markEndSource()}}getLayerLevel(){return this.selectedRange.size()-1}isSelected(){return!this.selectedRange.isEmpty()}isMultiple(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.selectedRange.current();if(!this.isSelected())return!1;const t=(0,l.createObjectPropListener)(!e.isSingle());return this.runLocalHooks("afterIsMultipleSelection",t),t.value}isFocusSelectionChanged(){return this.isSelected()&&w(S,this)}isSelectedByRowHeader(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return!this.isSelectedByCorner(e)&&(-1===e?this.selectedByRowHeader.size>0:this.selectedByRowHeader.has(e))}isEntireRowSelected(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();const t=e=>{const{col:t}=e.getOuterTopStartCorner(),o=this.tableProps.countRowHeaders(),s=this.tableProps.countCols();return(o>0&&t<0||0===o)&&e.getWidth()===s};if(-1===e)return Array.from(this.selectedRange).some(e=>t(e));const o=this.selectedRange.peekByIndex(e);return!!o&&t(o)}isSelectedByColumnHeader(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return!this.isSelectedByCorner()&&(-1===e?this.selectedByColumnHeader.size>0:this.selectedByColumnHeader.has(e))}isEntireColumnSelected(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();const t=e=>{const{row:t}=e.getOuterTopStartCorner(),o=this.tableProps.countColHeaders(),s=this.tableProps.countRows();return(o>0&&t<0||0===o)&&e.getHeight()===s};if(-1===e)return Array.from(this.selectedRange).some(e=>t(e));const o=this.selectedRange.peekByIndex(e);return!!o&&t(o)}isSelectedByAnyHeader(){return this.isSelectedByRowHeader(-1)||this.isSelectedByColumnHeader(-1)||this.isSelectedByCorner()}isSelectedByCorner(){return this.selectedByColumnHeader.has(this.getLayerLevel())&&this.selectedByRowHeader.has(this.getLayerLevel())}inInSelection(e){return this.selectedRange.includes(e)}isCellCornerVisible(){return this.settings.fillHandle&&!this.tableProps.isEditorOpened()&&!this.isMultiple()}isCellVisible(e){const t=this.tableProps.visualToRenderableCoords(e);return null!==t.row&&null!==t.col}isAreaCornerVisible(e){return(!Number.isInteger(e)||e===this.getLayerLevel())&&(this.settings.fillHandle&&!this.tableProps.isEditorOpened()&&this.isMultiple())}clear(){this.selectedRange.clear(),this.highlight.clear()}deselect(){this.isSelected()&&(this.inProgress=!1,this.clear(),this.runLocalHooks("afterDeselect"))}selectAll(){var e;let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{focusPosition:!1,disableHeadersHighlight:!1};const i=this.tableProps.countRows(),r=this.tableProps.countCols(),n=this.tableProps.countRowHeaders(),l=this.tableProps.countColHeaders(),a=o?-l:0,c=t?-n:0;if(0===a&&0===c&&(0===i||0===r))return;let u=null===(e=this.getSelectedRange().current())||void 0===e?void 0:e.highlight;const{focusPosition:d,disableHeadersHighlight:g}=s;C(R,this,g),d&&Number.isInteger(null==d?void 0:d.row)&&Number.isInteger(null==d?void 0:d.col)&&(u=this.tableProps.createCellCoords((0,h.clamp)(d.row,a,i-1),(0,h.clamp)(d.col,c,r-1)));const f=this.tableProps.createCellCoords(a,c),p=this.tableProps.createCellCoords(i-1,r-1);this.clear(),this.setRangeStartOnly(f,void 0,u),c<0&&this.selectedByRowHeader.add(this.getLayerLevel()),a<0&&this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(p),this.finish(),C(R,this,!1)}selectCells(e){var t=this;const o=(0,g.detectSelectionType)(e);if(o===g.SELECTION_TYPE_EMPTY)return!1;if(o===g.SELECTION_TYPE_UNRECOGNIZED)throw new Error(f.toSingleLine`Unsupported format of the selection ranges was passed. To select cells pass\x20
|
|
41
41
|
the coordinates as an array of arrays ([[rowStart, columnStart/columnPropStart, rowEnd,\x20
|
|
42
|
-
columnEnd/columnPropEnd]]) or as an array of CellRange objects.`);const s=(0,g.normalizeSelectionFactory)(o,{createCellCoords:function(){return t.tableProps.createCellCoords(...arguments)},createCellRange:function(){return t.tableProps.createCellRange(...arguments)},propToCol:e=>this.tableProps.propToCol(e),keepDirection:!0}),i=this.settings.navigableHeaders,r={countRows:this.tableProps.countRows(),countCols:this.tableProps.countCols(),countRowHeaders:i?this.tableProps.countRowHeaders():0,countColHeaders:i?this.tableProps.countColHeaders():0},n=!e.some(e=>{const t=s(e),o=t.isValid(r);return!(o&&!t.containsHeaders()||o&&t.containsHeaders()&&t.isSingleHeader())});return n&&(this.clear(),this.setExpectedLayers(e.length),(0,c.arrayEach)(e,e=>{const{from:t,to:o}=s(e);this.setRangeStartOnly(t.clone(),!1),this.setRangeEnd(o.clone())}),this.finish()),n}selectColumns(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const s="string"==typeof e?this.tableProps.propToCol(e):e,i="string"==typeof t?this.tableProps.propToCol(t):t,r=this.tableProps.countRows(),n=this.tableProps.countCols(),l=this.tableProps.countColHeaders(),a=0===l?0:-l,c=this.tableProps.createCellCoords(a,s),u=this.tableProps.createCellCoords(r-1,i),d=this.tableProps.createCellRange(c,c,u).isValid({countRows:r,countCols:n,countRowHeaders:0,countColHeaders:l});if(d){let e=0,t=0;Number.isInteger(null==o?void 0:o.row)&&Number.isInteger(null==o?void 0:o.col)?(e=(0,h.clamp)(o.row,a,r-1),t=(0,h.clamp)(o.col,Math.min(s,i),Math.max(s,i))):(e=(0,h.clamp)(o,a,r-1),t=s);const n=this.tableProps.createCellCoords(e,t),c=0===l?0:(0,h.clamp)(n.row,a,-1),u=r-1,d=this.tableProps.createCellCoords(c,s),g=this.tableProps.createCellCoords(u,i);this.runLocalHooks("beforeSelectColumns",d,g,n),d.row=c,g.row=u,this.setRangeStartOnly(d,void 0,n),this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(g),this.runLocalHooks("afterSelectColumns",d,g,n),this.finish()}return d}selectRows(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const s=this.tableProps.countRows(),i=this.tableProps.countCols(),r=this.tableProps.countRowHeaders(),n=0===r?0:-r,l=this.tableProps.createCellCoords(e,n),a=this.tableProps.createCellCoords(t,i-1),c=this.tableProps.createCellRange(l,l,a).isValid({countRows:s,countCols:i,countRowHeaders:r,countColHeaders:0});if(c){let s=0,l=0;Number.isInteger(null==o?void 0:o.row)&&Number.isInteger(null==o?void 0:o.col)?(s=(0,h.clamp)(o.row,Math.min(e,t),Math.max(e,t)),l=(0,h.clamp)(o.col,n,i-1)):(s=e,l=(0,h.clamp)(o,n,i-1));const a=this.tableProps.createCellCoords(s,l),c=0===r?0:(0,h.clamp)(a.col,n,-1),u=i-1,d=this.tableProps.createCellCoords(e,c),g=this.tableProps.createCellCoords(t,u);this.runLocalHooks("beforeSelectRows",d,g,a),d.col=c,g.col=u,this.setRangeStartOnly(d,void 0,a),this.selectedByRowHeader.add(this.getLayerLevel()),this.setRangeEnd(g),this.runLocalHooks("afterSelectRows",d,g,a),this.finish()}return c}refresh(){if(!this.isSelected())return;const e=this.tableProps.countRows(),t=this.tableProps.countCols();if(0===e||0===t)return void this.deselect();const o=this.selectedRange.ranges.map(e=>e.clone());this.markSource("refresh");const s=new Set(this.selectedByRowHeader),i=new Set(this.selectedByColumnHeader);this.clear(),this.setExpectedLayers(o.length),o.forEach(o=>{const{from:s,to:i,highlight:r}=o,n=e-1,l=t-1;r.assign({row:(0,h.clamp)(r.row,this.settings.navigableHeaders?-1/0:0,n),col:(0,h.clamp)(r.col,this.settings.navigableHeaders?-1/0:0,l)}),s.assign({row:(0,h.clamp)(s.row,-1/0,n),col:(0,h.clamp)(s.col,-1/0,l)}),i.assign({row:(0,h.clamp)(i.row,-1/0,n),col:(0,h.clamp)(i.col,-1/0,l)}),this.setRangeStartOnly(s,!0,r),this.setRangeEnd(i)}),this.selectedByRowHeader=s,this.selectedByColumnHeader=i,this.finish(),this.markEndSource()}commit(){if(this.highlight.getCustomSelections().forEach(e=>{e.commit()}),!this.isSelected())return;const e=this.getLayerLevel(),t=this.selectedRange.current();this.highlight.isEnabledFor(r.FOCUS_TYPE,t.highlight)&&this.highlight.getFocus().commit().syncWith(t);for(let e=0;e<this.selectedRange.size();e+=1){this.highlight.useLayerLevel(e);const t=this.highlight.createArea(),o=this.highlight.createLayeredArea(),s=this.highlight.createRowHeader(),i=this.highlight.createColumnHeader(),r=this.highlight.createActiveRowHeader(),n=this.highlight.createActiveColumnHeader(),l=this.highlight.createActiveCornerHeader(),a=this.highlight.createRowHighlight(),h=this.highlight.createColumnHighlight();t.commit(),o.commit(),s.commit(),i.commit(),r.commit(),n.commit(),l.commit(),a.commit(),h.commit()}this.highlight.useLayerLevel(e)}}(0,l.mixin)(T,u.default);t.default=T},25452:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(85639);var i=s(o(53726)),r=o(59073),n=o(87203),l=o(18051);t.default=class{constructor(e,t){(0,i.default)(this,"hot",void 0),(0,i.default)(this,"data",null),(0,i.default)(this,"plugin",void 0),(0,i.default)(this,"parentReference",new WeakMap),(0,i.default)(this,"cache",{levels:[],levelCount:0,rows:[],nodeInfo:new WeakMap}),this.hot=t,this.plugin=e}setData(e){this.data=e}getData(){return this.data}getRawSourceData(){let e=null;return this.plugin.disableCoreAPIModifiers(),e=this.hot.getSourceData(),this.plugin.enableCoreAPIModifiers(),e}updateWithData(e){this.setData(e),this.rewriteCache()}rewriteCache(){this.cache={levels:[],levelCount:0,rows:[],nodeInfo:new WeakMap},(0,r.rangeEach)(0,this.data.length-1,e=>{this.cacheNode(this.data[e],0,null)})}cacheNode(e,t,o){this.cache.levels[t]||(this.cache.levels[t]=[],this.cache.levelCount+=1),this.cache.levels[t].push(e),this.cache.rows.push(e),this.cache.nodeInfo.set(e,{parent:o,row:this.cache.rows.length-1,level:t}),this.hasChildren(e)&&(0,l.arrayEach)(e.__children,o=>{this.cacheNode(o,t+1,e)})}getDataObject(e){return null==e?null:this.cache.rows[e]}readTreeNodes(e,t,o,s){let i=!1,r=t;if(isNaN(r)&&r.end)return r;let n=e;return n||(n={__children:this.data},i=!0,r-=1),null!=o&&r===o?{result:n,end:!0}:null!=s&&n===s?{result:r,end:!0}:(r+=1,n.__children&&(0,l.arrayEach)(n.__children,e=>{if(this.parentReference.set(e,i?null:n),r=this.readTreeNodes(e,r,o,s),isNaN(r)&&r.end)return!1}),r)}mockParent(){const e=this.mockNode();return e.__children=this.data,e}mockNode(){const e={};return(0,n.objectEach)(this.data[0],(t,o)=>{e[o]=null}),e}getRowIndex(e){return null==e?null:this.cache.nodeInfo.get(e).row}getRowIndexWithinParent(e){let t=null;t=isNaN(e)?e:this.getDataObject(e);const o=this.getRowParent(e);return null==o?this.data.indexOf(t):o.__children.indexOf(t)}countAllRows(){const e={__children:this.data};return this.countChildren(e)}countChildren(e){let t=0,o=e;return isNaN(o)||(o=this.getDataObject(o)),o&&o.__children?((0,l.arrayEach)(o.__children,e=>{t+=1,e.__children&&(t+=this.countChildren(e))}),t):0}getRowParent(e){let t;return t=isNaN(e)?e:this.getDataObject(e),this.getRowObjectParent(t)}getRowObjectParent(e){return e&&"object"==typeof e?this.cache.nodeInfo.get(e).parent:null}getRowLevel(e){let t=null;return t=isNaN(e)?e:this.getDataObject(e),t?this.getRowObjectLevel(t):null}getRowObjectLevel(e){return null==e?null:this.cache.nodeInfo.get(e).level}hasChildren(e){let t=e;return isNaN(t)||(t=this.getDataObject(t)),!(!t.__children||!t.__children.length)}isChild(e){return null!==this.getRowParent(e)}getChild(e,t){var o;return(null===(o=e.__children)||void 0===o?void 0:o[t])||null}isRowHighestLevel(e){return!this.isChild(e)}isParent(e){var t;let o=e;return isNaN(o)||(o=this.getDataObject(o)),o&&!!o.__children&&0!==(null===(t=o.__children)||void 0===t?void 0:t.length)}addChild(e,t){let o=t;this.hot.runHooks("beforeAddChild",e,o);let s=null;e&&(s=this.getRowIndex(e)),this.hot.runHooks("beforeCreateRow",s+this.countChildren(e)+1,1);let i=e;e||(i=this.mockParent()),i.__children||(i.__children=[]),o||(o=this.mockNode()),i.__children.push(o),this.rewriteCache();const r=this.getRowIndex(o);this.hot.rowIndexMapper.insertIndexes(r,1),this.hot.runHooks("afterCreateRow",r,1),this.hot.runHooks("afterAddChild",e,o)}addChildAtIndex(e,t,o){let s,i=o;if(i||(i=this.mockNode()),this.hot.runHooks("beforeAddChild",e,i,t),e){const o=this.getRowIndex(e)+t+1;this.hot.runHooks("beforeCreateRow",o,1),e.__children.splice(t,null,i),this.rewriteCache(),this.plugin.disableCoreAPIModifiers(),this.hot.setSourceDataAtCell(this.getRowIndexWithinParent(e),"__children",e.__children,"NestedRows.addChildAtIndex"),this.hot.rowIndexMapper.insertIndexes(o,1),this.plugin.enableCoreAPIModifiers(),this.hot.runHooks("afterCreateRow",o,1),s=o}else this.plugin.disableCoreAPIModifiers(),this.hot.alter("insert_row_above",t,1,"NestedRows.addChildAtIndex"),this.plugin.enableCoreAPIModifiers(),s=this.getRowIndex(this.data[t]);i=this.getDataObject(s),this.hot.runHooks("afterAddChild",e,i,t)}addSibling(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"below";const o=this.translateTrimmedRow(e),s=this.getRowParent(o),i=this.getRowIndexWithinParent(o);switch(t){case"below":this.addChildAtIndex(s,i+1,null);break;case"above":this.addChildAtIndex(s,i,null)}}detachFromParent(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=null;const s=[];Array.isArray(e)?((0,r.rangeEach)(e[0],e[2],e=>{const t=this.translateTrimmedRow(e);s.push(this.getDataObject(t))}),(0,r.rangeEach)(0,s.length-2,e=>{this.detachFromParent(s[e],!1)}),o=s[s.length-1]):o=e;const i=this.getRowIndex(o),n=this.countChildren(o),l=this.getRowIndexWithinParent(o),a=this.getRowParent(o),h=this.getRowParent(a),c=this.getRowIndex(h);let u=null;if(this.hot.runHooks("beforeDetachChild",a,o),null!=l){const e=Array.from(new Array(i+n+1).keys()).splice(-1*(n+1));if(this.hot.runHooks("beforeRemoveRow",i,n+1,e,this.plugin.pluginName),a.__children.splice(l,1),this.rewriteCache(),this.hot.runHooks("afterRemoveRow",i,n+1,e,this.plugin.pluginName),h){u=c+this.countChildren(h);const e=this.getChild(h,this.countChildren(h)-1),t=this.getRowIndex(e);this.hot.runHooks("beforeCreateRow",t+1,n+1,this.plugin.pluginName),h.__children.push(o)}else u=this.hot.countRows()+1,this.hot.runHooks("beforeCreateRow",u-2,n+1,this.plugin.pluginName),this.data.push(o)}this.rewriteCache(),this.hot.runHooks("afterCreateRow",u-2,n+1,this.plugin.pluginName),this.hot.runHooks("afterDetachChild",a,o,this.getRowIndex(o)),t&&this.hot.render()}filterData(e,t,o){const s=[];(0,l.arrayEach)(o,e=>{s.push(this.getDataObject(e))}),(0,l.arrayEach)(s,e=>{const t=this.getRowIndexWithinParent(e),o=this.getRowParent(e);null===o?this.data.splice(t,1):o.__children.splice(t,1)}),this.rewriteCache()}spliceData(e,t,o){const s=this.getDataObject(e-1);let i=null,r=e;s&&s.__children&&0===s.__children.length?(i=s,r=0):e<this.countAllRows()&&(i=this.getRowParent(e),r=this.getRowIndexWithinParent(e)),i?o?i.__children.splice(r,t,...o):i.__children.splice(r,t):o?this.data.splice(r,t,...o):this.data.splice(r,t),this.rewriteCache()}syncRowWithRawSource(e){let t=e,o=t;do{o=this.getRowParent(o),null!==o&&(t=o)}while(null!==o);this.plugin.disableCoreAPIModifiers(),this.hot.setSourceDataAtCell(this.getRowIndexWithinParent(t),"__children",t.__children,"NestedRows.syncRowWithRawSource"),this.plugin.enableCoreAPIModifiers()}moveRow(e,t,o,s){const i=t===this.hot.countRows(),r=this.getRowParent(e),n=this.getRowIndexWithinParent(e),l=r.__children.slice(n,n+1),a=e>t;let h=i?this.getRowParent(t-1):this.getRowParent(t);null==h&&(h=this.getRowParent(t-1)),null==h&&(h=this.getDataObject(t-1)),h?h.__children||(h.__children=[]):(h=this.getDataObject(t),h.__children=[]);const c=i||o||s?h.__children.length:this.getRowIndexWithinParent(t),u=r===h;h.__children.splice(c,0,l[0]),r.__children.splice(n+(a&&u?1:0),1),this.syncRowWithRawSource(r),u||this.syncRowWithRawSource(h)}translateTrimmedRow(e){return this.plugin.collapsingUI?this.plugin.collapsingUI.translateTrimmedRow(e):e}untranslateTrimmedRow(e){return this.plugin.collapsingUI?this.plugin.collapsingUI.untranslateTrimmedRow(e):e}}},25666:(e,t,o)=>{"use strict";t.__esModule=!0,o(85639);var s=o(47010),i=o(18051);class r extends s.PhysicalIndexToValueMap{constructor(){super(arguments.length>0&&void 0!==arguments[0]&&arguments[0])}getHiddenIndexes(){return(0,i.arrayReduce)(this.getValues(),(e,t,o)=>(t&&e.push(o),e),[])}}t.HidingMap=r},25874:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionInlineEnd",callback(e,t){const{selection:o}=e,s=e.getSettings(),i=e.getSelectedRangeLast(),r="function"==typeof s.tabMoves?s.tabMoves(t):s.tabMoves;o.markSource("keyboard"),o.isMultiple()&&!i.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0?o.transformFocus(-r.row,-r.col):o.transformStart(-r.row,-r.col),o.markEndSource()}}},26213:(e,t,o)=>{"use strict";var s=o(2163);e.exports=function(e){return s(e.length)}},26373:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:i,name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_REDO)},callback(){this.getPlugin("undoRedo").redo()},hidden(){const e=this.getPlugin("undoRedo");return!e||!e.isEnabled()},disabled(){return!this.getPlugin("undoRedo").isRedoAvailable()}}};var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(30432));const i=t.KEY="redo"},26880:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(58286);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.AutoColumnSize=s.AutoColumnSize},26994:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(36152);t.EDITOR_TYPE=s.EDITOR_TYPE,t.DropdownEditor=s.DropdownEditor},27022:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(87203),n=s(o(44266)),l=s(o(87505)),a=o(43561),h=o(18051),c=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(30432));const u="built",d="building",g=["click","input","keydown","keypress","keyup","focus","blur","change"];class f{static get DEFAULTS(){return(0,r.clone)({className:"",value:"",tagName:"div",children:[],wrapIt:!0})}constructor(e,t){(0,i.default)(this,"hot",void 0),(0,i.default)(this,"eventManager",new l.default(this)),(0,i.default)(this,"options",void 0),(0,i.default)(this,"_element",void 0),(0,i.default)(this,"buildState",void 0),this.hot=e,this.options=(0,r.extend)(f.DEFAULTS,t),this._element=this.hot.rootDocument.createElement(this.options.wrapIt?"div":this.options.tagName)}setValue(e){this.options.value=e,this.update()}getValue(){return this.options.value}get element(){return this.buildState===d?this._element:this.buildState===u?(this.update(),this._element):(this.buildState=d,this.build(),this.buildState=u,this._element)}isBuilt(){return this.buildState===u}translateIfPossible(e){return"string"==typeof e&&e.startsWith(c.FILTERS_NAMESPACE)?this.hot.getTranslatedPhrase(e):e}build(){const e=(e,t)=>{this.eventManager.addEventListener(e,t,e=>this.runLocalHooks(t,e,this))};if(this.buildState||(this.buildState=d),this._element.setAttribute("data-hot-input",!0),void 0!==this.options.tabIndex&&this._element.setAttribute("tabindex",this.options.tabIndex),void 0!==this.options.role&&this._element.setAttribute("role",this.options.role),this.options.className&&(0,a.addClass)(this._element,this.options.className),this.options.children.length)(0,h.arrayEach)(this.options.children,e=>this._element.appendChild(e.element));else if(this.options.wrapIt){const t=this.hot.rootDocument.createElement(this.options.tagName);t.setAttribute("data-hot-input",!0),(0,r.objectEach)(this.options,(e,o)=>{void 0!==t[o]&&"className"!==o&&"tagName"!==o&&"children"!==o&&(t[o]=this.translateIfPossible(e))}),this._element.appendChild(t),(0,h.arrayEach)(g,o=>e(t,o))}else(0,h.arrayEach)(g,t=>e(this._element,t))}update(){}reset(){this.options.value="",this.update()}show(){this.element.style.display=""}hide(){this.element.style.display="none"}focus(){}destroy(){this.eventManager.destroy(),this.eventManager=null,this.hot=null,this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null}}t.BaseUI=f,(0,r.mixin)(f,n.default)},27277:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.equalsIgnoreCase=function(){const e=[];for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];let i=o.length;for(;i;){i-=1;const t=(0,r.stringify)(o[i]).toLowerCase();-1===e.indexOf(t)&&e.push(t)}return 1===e.length},t.isPercentValue=function(e){return/^([0-9][0-9]?%$)|(^100%$)/.test(e)},t.randomString=function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+e()+e()},t.sanitize=n,t.stripTags=function(e){return n(`${e}`,{ALLOWED_TAGS:[]})},t.substitute=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return`${e}`.replace(/(?:\\)?\[([^[\]]+)]/g,(e,o)=>"\\"===e.charAt(0)?e.substr(1,e.length-1):void 0===t[o]?"":t[o])},t.toUpperCaseFirst=function(e){return e[0].toUpperCase()+e.substr(1)},o(85639);var i=s(o(65166)),r=o(50929);function n(e,t){return i.default.sanitize(e,t)}},27508:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:i,name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_ROW_ABOVE)},callback(){const e=this.getSelectedRangeLast().getTopLeftCorner();this.alter("insert_row_above",e.row,1,"ContextMenu.rowAbove")},disabled(){const e=this.getSelectedRangeLast();return!!(!e||this.selection.isSelectedByColumnHeader()||e.isSingleHeader()&&e.highlight.row<0||this.countSourceRows()>=this.getSettings().maxRows)||!!this.selection.isSelectedByCorner()&&0===this.countRows()},hidden(){return!this.getSettings().allowInsertRow}}};var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(30432));const i=t.KEY="row_above"},27543:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(36837);var i=s(o(1585)),r=o(32883),n=o(64017),l=o(8829),a=o(32978),h=o(9687),c=o(66488),u=o(1006),d=o(12822);function g(e,t){const o=new i.default(e,t||{},r.rootInstanceSymbol);return o.init(),o}t.CellCoords=d.CellCoords,t.CellRange=d.CellRange,(0,h.registerCellType)(c.TextCellType),g.editors={BaseEditor:u.BaseEditor},g.Core=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new i.default(e,t,r.rootInstanceSymbol)},g.DefaultSettings=(0,n.metaSchemaFactory)(),g.hooks=l.Hooks.getSingleton(),g.CellCoords=d.CellCoords,g.CellRange=d.CellRange,g.packageName="handsontable",g.buildDate="07/07/2025 08:27:03",g.version="0.0.0-next-479c0d0-20250707",g.languages={dictionaryKeys:a.dictionaryKeys,getLanguageDictionary:a.getLanguageDictionary,getLanguagesDictionaries:a.getLanguagesDictionaries,registerLanguageDictionary:a.registerLanguageDictionary,getTranslatedPhrase:a.getTranslatedPhrase};t.default=g},27840:(e,t,o)=>{"use strict";t.__esModule=!0,o(85639);var s=o(47010),i=o(18051);class r extends s.PhysicalIndexToValueMap{constructor(){super(arguments.length>0&&void 0!==arguments[0]&&arguments[0])}getTrimmedIndexes(){return(0,i.arrayReduce)(this.getValues(),(e,t,o)=>(t&&e.push(o),e),[])}}t.TrimmingMap=r},27926:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(1006),i=o(43561),r=o(87203),n=o(38856);const l="ht_editor_visible",a="selectEditor",h=t.EDITOR_TYPE="select";class c extends s.BaseEditor{static get EDITOR_TYPE(){return h}init(){this.selectWrapper=this.hot.rootDocument.createElement("div"),this.select=this.hot.rootDocument.createElement("select"),this.select.setAttribute("data-hot-input","true"),this.selectWrapper.style.display="none";const e=this.hot.rootDocument.createElement("DIV"),t=this.hot.getSettings().ariaTags;e.className="htAutocompleteArrow",t&&e.setAttribute(...(0,n.A11Y_HIDDEN)()),e.appendChild(this.hot.rootDocument.createTextNode(String.fromCharCode(9660))),(0,i.addClass)(this.selectWrapper,"htSelectEditor"),this.selectWrapper.appendChild(this.select),this.selectWrapper.insertBefore(e,this.selectWrapper.firstChild),this.hot.rootElement.appendChild(this.selectWrapper),this.registerHooks()}getValue(){return this.select.value}setValue(e){this.select.value=e}open(){this._opened=!0,this.refreshDimensions(),this.selectWrapper.style.display="";this.hot.getShortcutManager().setActiveContextName("editor"),this.registerShortcuts()}close(){this._opened=!1,this.selectWrapper.style.display="none",(0,i.hasClass)(this.selectWrapper,l)&&(0,i.removeClass)(this.selectWrapper,l),this.unregisterShortcuts(),this.clearHooks()}focus(){this.select.focus()}registerHooks(){this.addHook("afterScrollHorizontally",()=>this.refreshDimensions()),this.addHook("afterScrollVertically",()=>this.refreshDimensions()),this.addHook("afterColumnResize",()=>this.refreshDimensions()),this.addHook("afterRowResize",()=>this.refreshDimensions())}prepare(e,t,o,s,n,l){super.prepare(e,t,o,s,n,l);const a=this.cellProperties.selectOptions;let h;h="function"==typeof a?this.prepareOptions(a(this.row,this.col,this.prop)):this.prepareOptions(a),(0,i.empty)(this.select),(0,r.objectEach)(h,(e,t)=>{const o=this.hot.rootDocument.createElement("OPTION");o.value=t,(0,i.fastInnerHTML)(o,e),this.select.appendChild(o)})}prepareOptions(e){let t={};if(Array.isArray(e))for(let o=0,s=e.length;o<s;o++)t[e[o]]=e[o];else"object"==typeof e&&(t=e);return t}refreshValue(){const e=this.hot.getSourceDataAtCell(this.row,this.prop);this.originalValue=e,this.setValue(e),this.refreshDimensions()}refreshDimensions(){if(this.state!==s.EDITOR_STATE.EDITING)return;if(this.TD=this.getEditedCell(),!this.TD)return void this.close();const{top:e,start:t,width:o,height:r}=this.getEditedCellRect(),n=this.selectWrapper.style;n.height=`${r}px`,n.width=`${o}px`,n.top=`${e}px`,n[this.hot.isRtl()?"right":"left"]=`${t}px`,n.margin="0px",(0,i.addClass)(this.selectWrapper,l)}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("editor"),t={group:a};this.isInFullEditMode()&&e.addShortcuts([{keys:[["ArrowUp"]],callback:()=>{const e=this.select.selectedIndex-1;e>=0&&(this.select[e].selected=!0)}},{keys:[["ArrowDown"]],callback:()=>{const e=this.select.selectedIndex+1;e<=this.select.length-1&&(this.select[e].selected=!0)}}],t)}unregisterShortcuts(){this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(a)}}t.SelectEditor=c},27958:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy_with_column_group_headers",name(){const e=this.getSelectedRangeLast(),t=e?(0,i.clamp)(e.getWidth()-1,0,1):0;return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS,t)},callback(){e.copyWithAllColumnHeaders()},disabled(){if(!this.hasColHeaders()||!this.getSettings().nestedHeaders)return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}};var s=o(30432),i=o(59073)},28041:(e,t,o)=>{"use strict";var s=o(54090),i=o(42696),r=o(45472),n=o(9370);e.exports=function(e,t,o){for(var l=i(t),a=n.f,h=r.f,c=0;c<l.length;c++){var u=l[c];s(e,u)||o&&s(o,u)||a(e,u,h(t,u))}}},28183:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(51792);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.ManualRowMove=s.ManualRowMove},28191:(e,t,o)=>{"use strict";t.__esModule=!0,o(88443),o(85639),o(73741),o(69326),o(90795);var s=o(27277),i=o(76460);function r(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function n(e,t){return e.get(a(e,t))}function l(e,t,o){return e.set(a(e,t),o),o}function a(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap;t.default=class{constructor(e,t,o){r(this,h,void 0),r(this,c,void 0),r(this,u,void 0),r(this,d,[]),r(this,g,[]),r(this,f,void 0),r(this,p,[]),l(h,this,e),l(c,this,t),l(u,this,o)}setRemovedHfIndexes(e){return l(p,this,e.map(e=>{const t=n(c,this).getVisualFromPhysicalIndex(e);return this.getHfIndexFromVisualIndex(t)})),n(p,this)}getRemovedHfIndexes(){return n(p,this)}getHfIndexFromVisualIndex(e){const t=n(c,this).getIndexesSequence(),o=n(c,this).getNotTrimmedIndexes();return t.indexOf(o[e],e)}syncMoves(e){const t=`move${(0,s.toUpperCaseFirst)(n(h,this))}s`;n(u,this).getEngine().batch(()=>{e.forEach(e=>{const o=e.from!==e.to,s=e.from+1!==e.to;o&&s&&n(u,this).getEngine()[t](n(u,this).getSheetId(),e.from,1,e.to)})})}storeMovesInformation(e,t,o){!1!==o&&(l(g,this,e.map(e=>this.getHfIndexFromVisualIndex(e))),l(f,this,this.getHfIndexFromVisualIndex(t)))}calculateAndSyncMoves(e,t){if(n(u,this).isPerformingUndoRedo())return;if(!1===e||!1===t)return;const o=(0,i.getMoves)(n(g,this),n(f,this),n(c,this).getNumberOfIndexes());null===n(u,this).getSheetId()?n(u,this).getPostponeAction(()=>this.syncMoves(o)):this.syncMoves(o)}getIndexesChangeSyncMethod(){const e=`set${(0,s.toUpperCaseFirst)(n(h,this))}Order`;return t=>{if(n(u,this).isPerformingUndoRedo())return;const o=n(c,this).getIndexesSequence();if("update"===t&&o.length>0){const t=n(d,this).map(e=>o.indexOf(e)),s=n(u,this).getEngine().getSheetDimensions(n(u,this).getSheetId());let i;i="row"===n(h,this)?s.height:s.width;for(let e=t.length;e<i;e+=1)t.push(e);n(u,this).getEngine()[e](n(u,this).getSheetId(),t)}l(d,this,o)}}init(){l(d,this,n(c,this).getIndexesSequence())}}},28220:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(20780),n=o(43561),l=o(30581),a=o(87203),h=o(87927);const c="handsontableEditor",u=t.EDITOR_TYPE="handsontable";class d extends r.TextEditor{constructor(){super(...arguments),(0,i.default)(this,"isFlippedVertically",!1),(0,i.default)(this,"isFlippedHorizontally",!1)}static get EDITOR_TYPE(){return u}open(){super.open();const e=this.htContainer.style;this.htEditor&&(this.htEditor.destroy(),e.width="",e.height="",e.overflow=""),"none"===e.display&&(e.display=""),this.htEditor=new this.hot.constructor(this.htContainer,this.htOptions),this.htEditor.init(),this.htEditor.rootElement.style.display="",this.cellProperties.strict?this.htEditor.selectCell(0,0):this.htEditor.deselectCell(),(0,n.setCaretPosition)(this.TEXTAREA,0,this.TEXTAREA.value.length),this.htEditor.updateSettings({width:this.getTargetDropdownWidth(),height:this.getTargetDropdownHeight()}),this.refreshDimensions(),this.flipDropdownVerticallyIfNeeded(),this.flipDropdownHorizontallyIfNeeded()}close(){this.htEditor&&(this.htEditor.rootElement.style.display="none"),this.removeHooksByKey("beforeKeyDown"),super.close()}prepare(e,t,o,s,i,r){super.prepare(e,t,o,s,i,r);const n=this,l={startRows:0,startCols:0,minRows:0,minCols:0,className:"listbox",copyPaste:!1,autoColumnSize:!1,autoRowSize:!1,readOnly:!0,fillHandle:!1,autoWrapCol:!1,autoWrapRow:!1,ariaTags:!1,themeName:this.hot.getCurrentThemeName(),afterOnCellMouseDown(e,t){const o=this.getSourceData(t.row,t.col);void 0!==o&&n.setValue(o),n.hot.destroyEditor()},preventWheel:!0,layoutDirection:this.hot.isRtl()?"rtl":"ltr"};this.cellProperties.handsontable&&(0,a.extend)(l,r.handsontable),this.htOptions=l}beginEditing(e,t){const o=this.hot.getSettings().onBeginEditing;o&&!1===o()||super.beginEditing(e,t)}createElements(){super.createElements();const e=this.hot.rootDocument.createElement("DIV");e.className="handsontableEditor",this.TEXTAREA_PARENT.appendChild(e),this.htContainer=e,this.assignHooks()}finishEditing(e,t,o){if(this.htEditor&&this.htEditor.isListening()&&this.hot.listen(),this.htEditor&&this.htEditor.getSelectedLast()){const e=this.htEditor.getValue();void 0!==e&&this.setValue(e)}super.finishEditing(e,t,o)}flipDropdownVerticallyIfNeeded(){const{view:e}=this.hot,t=this.getEditedCellRect();let o=t.top;if(e.isVerticallyScrollableByWindow()){const t=e.getTableOffset().top-this.hot.rootWindow.scrollY;o=Math.max(o+t,0)}const s=this.getDropdownHeight(),i=e.getWorkspaceHeight()-o-t.height,r=s>i&&o>i+t.height;return r?this.flipDropdownVertically():this.unflipDropdownVertically(),{isFlipped:r,spaceAbove:o,spaceBelow:i}}flipDropdownVertically(){const e=this.htEditor.rootElement.style;e.position="absolute",e.top=-this.getDropdownHeight()+"px",this.isFlippedVertically=!0}unflipDropdownVertically(){const e=this.htEditor.rootElement.style;e.position="absolute",e.top="",this.isFlippedVertically=!1}flipDropdownHorizontallyIfNeeded(){const{view:e}=this.hot,t=this.getEditedCellRect();let o=t.start+t.width;if(e.isHorizontallyScrollableByWindow()){const t=e.getTableOffset().left-this.hot.rootWindow.scrollX;o=Math.max(o+t,0)}const s=this.getDropdownWidth(),i=e.getWorkspaceWidth()-o+t.width,r=s>i&&o>i;return r?this.flipDropdownHorizontally():this.unflipDropdownHorizontally(),{isFlipped:r,spaceInlineStart:o,spaceInlineEnd:i}}flipDropdownHorizontally(){const e=this.htEditor.rootElement.style,{width:t}=this.getEditedCellRect();e.position="absolute",e[this.hot.isRtl()?"right":"left"]=-(this.getDropdownWidth()-t)+"px",this.isFlippedHorizontally=!0}unflipDropdownHorizontally(){const e=this.htEditor.rootElement.style;e.position="absolute",e[this.hot.isRtl()?"right":"left"]="",this.isFlippedHorizontally=!1}getDropdownHeight(){return this.htEditor.getTableHeight()}getDropdownWidth(){return this.htEditor.getTableWidth()}getTargetDropdownWidth(){return this.htEditor.view.getTableWidth()}getTargetDropdownHeight(){return this.htEditor.view.getTableHeight()+1}assignHooks(){this.hot.addHook("afterDestroy",()=>{var e;null===(e=this.htEditor)||void 0===e||e.destroy()}),this.hot.addHook("afterSetTheme",(e,t)=>{t||this.close()})}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("editor");super.registerShortcuts();const t={group:c,relativeToGroup:h.EDITOR_EDIT_GROUP,position:"before"},o=(e,t)=>{const o=this.htEditor;if(void 0!==e&&(e<0||this.isFlippedVertically&&e>o.countRows()-1?o.deselectCell():o.selectCell(e,0),o.getData().length))return t.preventDefault(),(0,l.stopImmediatePropagation)(t),this.hot.listen(),this.TEXTAREA.focus(),!1};e.addShortcuts([{keys:[["ArrowUp"]],callback:e=>{const t=this.htEditor;let s,i;return!t.getSelectedLast()&&this.isFlippedVertically?s=t.countRows()-1:t.getSelectedLast()&&(this.isFlippedVertically?(i=t.getSelectedLast()[0],s=Math.max(0,i-1)):(i=t.getSelectedLast()[0],s=i-1)),o(s,e)},preventDefault:!1},{keys:[["ArrowDown"]],callback:e=>{const t=this.htEditor;let s,i;if(t.getSelectedLast()||this.isFlippedVertically){if(t.getSelectedLast())if(this.isFlippedVertically)s=t.getSelectedLast()[0]+1;else if(!this.isFlippedVertically){const e=t.countRows()-1;i=t.getSelectedLast()[0],s=Math.min(e,i+1)}}else s=0;return o(s,e)},preventDefault:!1}],t)}unregisterShortcuts(){super.unregisterShortcuts();this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(c)}}t.HandsontableEditor=d},28255:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(23175);t.RENDERER_TYPE=s.RENDERER_TYPE,t.dateRenderer=s.dateRenderer},28589:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostInlineStart",callback(e){const{selection:t,columnIndexMapper:o}=e,s=parseInt(e.getSettings().fixedColumnsStart,10),i=e.getSelectedRangeLast().highlight.row,r=o.getNearestNotHiddenIndex(s,1);t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(i,r)),t.markEndSource()}}},28590:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(50948);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.PersistentState=s.PersistentState},28720:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(73741),o(69326);var i=s(o(53726)),r=o(43561),n=o(59073),l=o(5651),a=o(30581),h=o(88291),c=o(20213),u=o(44233),d=s(o(96924)),g=s(o(77660));function f(e,t,o){p(e,t),t.set(e,o)}function p(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function m(e,t,o){return e.set(C(e,t),o),o}function w(e,t){return e.get(C(e,t))}function C(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const v=t.PLUGIN_KEY="nestedHeaders",y=t.PLUGIN_PRIORITY=280;var E=new WeakMap,S=new WeakMap,R=new WeakMap,b=new WeakMap,_=new WeakMap,T=new WeakSet;class M extends u.BasePlugin{constructor(){var e,t;super(...arguments),p(e=this,t=T),t.add(e),f(this,E,new d.default),f(this,S,null),f(this,R,null),f(this,b,!1),f(this,_,null),(0,i.default)(this,"ghostTable",new g.default(this.hot,(e,t)=>this.getHeaderSettings(e,t))),(0,i.default)(this,"detectedOverlappedHeaders",!1)}static get PLUGIN_KEY(){return v}static get PLUGIN_PRIORITY(){return y}isEnabled(){return!!this.hot.getSettings()[v]}enablePlugin(){var e=this;if(this.enabled)return;const{nestedHeaders:t}=this.hot.getSettings();Array.isArray(t)&&Array.isArray(t[0])||(0,h.warn)(l.toSingleLine`Your Nested Headers plugin configuration is invalid. The settings has to be\x20
|
|
42
|
+
columnEnd/columnPropEnd]]) or as an array of CellRange objects.`);const s=(0,g.normalizeSelectionFactory)(o,{createCellCoords:function(){return t.tableProps.createCellCoords(...arguments)},createCellRange:function(){return t.tableProps.createCellRange(...arguments)},propToCol:e=>this.tableProps.propToCol(e),keepDirection:!0}),i=this.settings.navigableHeaders,r={countRows:this.tableProps.countRows(),countCols:this.tableProps.countCols(),countRowHeaders:i?this.tableProps.countRowHeaders():0,countColHeaders:i?this.tableProps.countColHeaders():0},n=!e.some(e=>{const t=s(e),o=t.isValid(r);return!(o&&!t.containsHeaders()||o&&t.containsHeaders()&&t.isSingleHeader())});return n&&(this.clear(),this.setExpectedLayers(e.length),(0,c.arrayEach)(e,e=>{const{from:t,to:o}=s(e);this.setRangeStartOnly(t.clone(),!1),this.setRangeEnd(o.clone())}),this.finish()),n}selectColumns(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const s="string"==typeof e?this.tableProps.propToCol(e):e,i="string"==typeof t?this.tableProps.propToCol(t):t,r=this.tableProps.countRows(),n=this.tableProps.countCols(),l=this.tableProps.countColHeaders(),a=0===l?0:-l,c=this.tableProps.createCellCoords(a,s),u=this.tableProps.createCellCoords(r-1,i),d=this.tableProps.createCellRange(c,c,u).isValid({countRows:r,countCols:n,countRowHeaders:0,countColHeaders:l});if(d){let e=0,t=0;Number.isInteger(null==o?void 0:o.row)&&Number.isInteger(null==o?void 0:o.col)?(e=(0,h.clamp)(o.row,a,r-1),t=(0,h.clamp)(o.col,Math.min(s,i),Math.max(s,i))):(e=(0,h.clamp)(o,a,r-1),t=s);const n=this.tableProps.createCellCoords(e,t),c=0===l?0:(0,h.clamp)(n.row,a,-1),u=r-1,d=this.tableProps.createCellCoords(c,s),g=this.tableProps.createCellCoords(u,i);this.runLocalHooks("beforeSelectColumns",d,g,n),d.row=c,g.row=u,this.setRangeStartOnly(d,void 0,n),this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(g),this.runLocalHooks("afterSelectColumns",d,g,n),this.finish()}return d}selectRows(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const s=this.tableProps.countRows(),i=this.tableProps.countCols(),r=this.tableProps.countRowHeaders(),n=0===r?0:-r,l=this.tableProps.createCellCoords(e,n),a=this.tableProps.createCellCoords(t,i-1),c=this.tableProps.createCellRange(l,l,a).isValid({countRows:s,countCols:i,countRowHeaders:r,countColHeaders:0});if(c){let s=0,l=0;Number.isInteger(null==o?void 0:o.row)&&Number.isInteger(null==o?void 0:o.col)?(s=(0,h.clamp)(o.row,Math.min(e,t),Math.max(e,t)),l=(0,h.clamp)(o.col,n,i-1)):(s=e,l=(0,h.clamp)(o,n,i-1));const a=this.tableProps.createCellCoords(s,l),c=0===r?0:(0,h.clamp)(a.col,n,-1),u=i-1,d=this.tableProps.createCellCoords(e,c),g=this.tableProps.createCellCoords(t,u);this.runLocalHooks("beforeSelectRows",d,g,a),d.col=c,g.col=u,this.setRangeStartOnly(d,void 0,a),this.selectedByRowHeader.add(this.getLayerLevel()),this.setRangeEnd(g),this.runLocalHooks("afterSelectRows",d,g,a),this.finish()}return c}refresh(){if(!this.isSelected())return;const e=this.tableProps.countRows(),t=this.tableProps.countCols();if(0===e||0===t)return void this.deselect();const o=this.selectedRange.ranges.map(e=>e.clone());this.markSource("refresh");const s=new Set(this.selectedByRowHeader),i=new Set(this.selectedByColumnHeader);this.clear(),this.setExpectedLayers(o.length),o.forEach(o=>{const{from:s,to:i,highlight:r}=o,n=e-1,l=t-1;r.assign({row:(0,h.clamp)(r.row,this.settings.navigableHeaders?-1/0:0,n),col:(0,h.clamp)(r.col,this.settings.navigableHeaders?-1/0:0,l)}),s.assign({row:(0,h.clamp)(s.row,-1/0,n),col:(0,h.clamp)(s.col,-1/0,l)}),i.assign({row:(0,h.clamp)(i.row,-1/0,n),col:(0,h.clamp)(i.col,-1/0,l)}),this.setRangeStartOnly(s,!0,r),this.setRangeEnd(i)}),this.selectedByRowHeader=s,this.selectedByColumnHeader=i,this.finish(),this.markEndSource()}commit(){if(this.highlight.getCustomSelections().forEach(e=>{e.commit()}),!this.isSelected())return;const e=this.getLayerLevel(),t=this.selectedRange.current();this.highlight.isEnabledFor(r.FOCUS_TYPE,t.highlight)&&this.highlight.getFocus().commit().syncWith(t);for(let e=0;e<this.selectedRange.size();e+=1){this.highlight.useLayerLevel(e);const t=this.highlight.createArea(),o=this.highlight.createLayeredArea(),s=this.highlight.createRowHeader(),i=this.highlight.createColumnHeader(),r=this.highlight.createActiveRowHeader(),n=this.highlight.createActiveColumnHeader(),l=this.highlight.createActiveCornerHeader(),a=this.highlight.createRowHighlight(),h=this.highlight.createColumnHighlight();t.commit(),o.commit(),s.commit(),i.commit(),r.commit(),n.commit(),l.commit(),a.commit(),h.commit()}this.highlight.useLayerLevel(e)}}(0,l.mixin)(T,u.default);t.default=T},25452:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(85639);var i=s(o(53726)),r=o(59073),n=o(87203),l=o(18051);t.default=class{constructor(e,t){(0,i.default)(this,"hot",void 0),(0,i.default)(this,"data",null),(0,i.default)(this,"plugin",void 0),(0,i.default)(this,"parentReference",new WeakMap),(0,i.default)(this,"cache",{levels:[],levelCount:0,rows:[],nodeInfo:new WeakMap}),this.hot=t,this.plugin=e}setData(e){this.data=e}getData(){return this.data}getRawSourceData(){let e=null;return this.plugin.disableCoreAPIModifiers(),e=this.hot.getSourceData(),this.plugin.enableCoreAPIModifiers(),e}updateWithData(e){this.setData(e),this.rewriteCache()}rewriteCache(){this.cache={levels:[],levelCount:0,rows:[],nodeInfo:new WeakMap},(0,r.rangeEach)(0,this.data.length-1,e=>{this.cacheNode(this.data[e],0,null)})}cacheNode(e,t,o){this.cache.levels[t]||(this.cache.levels[t]=[],this.cache.levelCount+=1),this.cache.levels[t].push(e),this.cache.rows.push(e),this.cache.nodeInfo.set(e,{parent:o,row:this.cache.rows.length-1,level:t}),this.hasChildren(e)&&(0,l.arrayEach)(e.__children,o=>{this.cacheNode(o,t+1,e)})}getDataObject(e){return null==e?null:this.cache.rows[e]}readTreeNodes(e,t,o,s){let i=!1,r=t;if(isNaN(r)&&r.end)return r;let n=e;return n||(n={__children:this.data},i=!0,r-=1),null!=o&&r===o?{result:n,end:!0}:null!=s&&n===s?{result:r,end:!0}:(r+=1,n.__children&&(0,l.arrayEach)(n.__children,e=>{if(this.parentReference.set(e,i?null:n),r=this.readTreeNodes(e,r,o,s),isNaN(r)&&r.end)return!1}),r)}mockParent(){const e=this.mockNode();return e.__children=this.data,e}mockNode(){const e={};return(0,n.objectEach)(this.data[0],(t,o)=>{e[o]=null}),e}getRowIndex(e){return null==e?null:this.cache.nodeInfo.get(e).row}getRowIndexWithinParent(e){let t=null;t=isNaN(e)?e:this.getDataObject(e);const o=this.getRowParent(e);return null==o?this.data.indexOf(t):o.__children.indexOf(t)}countAllRows(){const e={__children:this.data};return this.countChildren(e)}countChildren(e){let t=0,o=e;return isNaN(o)||(o=this.getDataObject(o)),o&&o.__children?((0,l.arrayEach)(o.__children,e=>{t+=1,e.__children&&(t+=this.countChildren(e))}),t):0}getRowParent(e){let t;return t=isNaN(e)?e:this.getDataObject(e),this.getRowObjectParent(t)}getRowObjectParent(e){return e&&"object"==typeof e?this.cache.nodeInfo.get(e).parent:null}getRowLevel(e){let t=null;return t=isNaN(e)?e:this.getDataObject(e),t?this.getRowObjectLevel(t):null}getRowObjectLevel(e){return null==e?null:this.cache.nodeInfo.get(e).level}hasChildren(e){let t=e;return isNaN(t)||(t=this.getDataObject(t)),!(!t.__children||!t.__children.length)}isChild(e){return null!==this.getRowParent(e)}getChild(e,t){var o;return(null===(o=e.__children)||void 0===o?void 0:o[t])||null}isRowHighestLevel(e){return!this.isChild(e)}isParent(e){var t;let o=e;return isNaN(o)||(o=this.getDataObject(o)),o&&!!o.__children&&0!==(null===(t=o.__children)||void 0===t?void 0:t.length)}addChild(e,t){let o=t;this.hot.runHooks("beforeAddChild",e,o);let s=null;e&&(s=this.getRowIndex(e)),this.hot.runHooks("beforeCreateRow",s+this.countChildren(e)+1,1);let i=e;e||(i=this.mockParent()),i.__children||(i.__children=[]),o||(o=this.mockNode()),i.__children.push(o),this.rewriteCache();const r=this.getRowIndex(o);this.hot.rowIndexMapper.insertIndexes(r,1),this.hot.runHooks("afterCreateRow",r,1),this.hot.runHooks("afterAddChild",e,o)}addChildAtIndex(e,t,o){let s,i=o;if(i||(i=this.mockNode()),this.hot.runHooks("beforeAddChild",e,i,t),e){const o=this.getRowIndex(e)+t+1;this.hot.runHooks("beforeCreateRow",o,1),e.__children.splice(t,null,i),this.rewriteCache(),this.plugin.disableCoreAPIModifiers(),this.hot.setSourceDataAtCell(this.getRowIndexWithinParent(e),"__children",e.__children,"NestedRows.addChildAtIndex"),this.hot.rowIndexMapper.insertIndexes(o,1),this.plugin.enableCoreAPIModifiers(),this.hot.runHooks("afterCreateRow",o,1),s=o}else this.plugin.disableCoreAPIModifiers(),this.hot.alter("insert_row_above",t,1,"NestedRows.addChildAtIndex"),this.plugin.enableCoreAPIModifiers(),s=this.getRowIndex(this.data[t]);i=this.getDataObject(s),this.hot.runHooks("afterAddChild",e,i,t)}addSibling(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"below";const o=this.translateTrimmedRow(e),s=this.getRowParent(o),i=this.getRowIndexWithinParent(o);switch(t){case"below":this.addChildAtIndex(s,i+1,null);break;case"above":this.addChildAtIndex(s,i,null)}}detachFromParent(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=null;const s=[];Array.isArray(e)?((0,r.rangeEach)(e[0],e[2],e=>{const t=this.translateTrimmedRow(e);s.push(this.getDataObject(t))}),(0,r.rangeEach)(0,s.length-2,e=>{this.detachFromParent(s[e],!1)}),o=s[s.length-1]):o=e;const i=this.getRowIndex(o),n=this.countChildren(o),l=this.getRowIndexWithinParent(o),a=this.getRowParent(o),h=this.getRowParent(a),c=this.getRowIndex(h);let u=null;if(this.hot.runHooks("beforeDetachChild",a,o),null!=l){const e=Array.from(new Array(i+n+1).keys()).splice(-1*(n+1));if(this.hot.runHooks("beforeRemoveRow",i,n+1,e,this.plugin.pluginName),a.__children.splice(l,1),this.rewriteCache(),this.hot.runHooks("afterRemoveRow",i,n+1,e,this.plugin.pluginName),h){u=c+this.countChildren(h);const e=this.getChild(h,this.countChildren(h)-1),t=this.getRowIndex(e);this.hot.runHooks("beforeCreateRow",t+1,n+1,this.plugin.pluginName),h.__children.push(o)}else u=this.hot.countRows()+1,this.hot.runHooks("beforeCreateRow",u-2,n+1,this.plugin.pluginName),this.data.push(o)}this.rewriteCache(),this.hot.runHooks("afterCreateRow",u-2,n+1,this.plugin.pluginName),this.hot.runHooks("afterDetachChild",a,o,this.getRowIndex(o)),t&&this.hot.render()}filterData(e,t,o){const s=[];(0,l.arrayEach)(o,e=>{s.push(this.getDataObject(e))}),(0,l.arrayEach)(s,e=>{const t=this.getRowIndexWithinParent(e),o=this.getRowParent(e);null===o?this.data.splice(t,1):o.__children.splice(t,1)}),this.rewriteCache()}spliceData(e,t,o){const s=this.getDataObject(e-1);let i=null,r=e;s&&s.__children&&0===s.__children.length?(i=s,r=0):e<this.countAllRows()&&(i=this.getRowParent(e),r=this.getRowIndexWithinParent(e)),i?o?i.__children.splice(r,t,...o):i.__children.splice(r,t):o?this.data.splice(r,t,...o):this.data.splice(r,t),this.rewriteCache()}syncRowWithRawSource(e){let t=e,o=t;do{o=this.getRowParent(o),null!==o&&(t=o)}while(null!==o);this.plugin.disableCoreAPIModifiers(),this.hot.setSourceDataAtCell(this.getRowIndexWithinParent(t),"__children",t.__children,"NestedRows.syncRowWithRawSource"),this.plugin.enableCoreAPIModifiers()}moveRow(e,t,o,s){const i=t===this.hot.countRows(),r=this.getRowParent(e),n=this.getRowIndexWithinParent(e),l=r.__children.slice(n,n+1),a=e>t;let h=i?this.getRowParent(t-1):this.getRowParent(t);null==h&&(h=this.getRowParent(t-1)),null==h&&(h=this.getDataObject(t-1)),h?h.__children||(h.__children=[]):(h=this.getDataObject(t),h.__children=[]);const c=i||o||s?h.__children.length:this.getRowIndexWithinParent(t),u=r===h;h.__children.splice(c,0,l[0]),r.__children.splice(n+(a&&u?1:0),1),this.syncRowWithRawSource(r),u||this.syncRowWithRawSource(h)}translateTrimmedRow(e){return this.plugin.collapsingUI?this.plugin.collapsingUI.translateTrimmedRow(e):e}untranslateTrimmedRow(e){return this.plugin.collapsingUI?this.plugin.collapsingUI.untranslateTrimmedRow(e):e}}},25666:(e,t,o)=>{"use strict";t.__esModule=!0,o(85639);var s=o(47010),i=o(18051);class r extends s.PhysicalIndexToValueMap{constructor(){super(arguments.length>0&&void 0!==arguments[0]&&arguments[0])}getHiddenIndexes(){return(0,i.arrayReduce)(this.getValues(),(e,t,o)=>(t&&e.push(o),e),[])}}t.HidingMap=r},25874:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionInlineEnd",callback(e,t){const{selection:o}=e,s=e.getSettings(),i=e.getSelectedRangeLast(),r="function"==typeof s.tabMoves?s.tabMoves(t):s.tabMoves;o.markSource("keyboard"),o.isMultiple()&&!i.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0?o.transformFocus(-r.row,-r.col):o.transformStart(-r.row,-r.col),o.markEndSource()}}},26213:(e,t,o)=>{"use strict";var s=o(2163);e.exports=function(e){return s(e.length)}},26373:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:i,name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_REDO)},callback(){this.getPlugin("undoRedo").redo()},hidden(){const e=this.getPlugin("undoRedo");return!e||!e.isEnabled()},disabled(){return!this.getPlugin("undoRedo").isRedoAvailable()}}};var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(30432));const i=t.KEY="redo"},26880:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(58286);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.AutoColumnSize=s.AutoColumnSize},26994:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(36152);t.EDITOR_TYPE=s.EDITOR_TYPE,t.DropdownEditor=s.DropdownEditor},27022:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(87203),n=s(o(44266)),l=s(o(87505)),a=o(43561),h=o(18051),c=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(30432));const u="built",d="building",g=["click","input","keydown","keypress","keyup","focus","blur","change"];class f{static get DEFAULTS(){return(0,r.clone)({className:"",value:"",tagName:"div",children:[],wrapIt:!0})}constructor(e,t){(0,i.default)(this,"hot",void 0),(0,i.default)(this,"eventManager",new l.default(this)),(0,i.default)(this,"options",void 0),(0,i.default)(this,"_element",void 0),(0,i.default)(this,"buildState",void 0),this.hot=e,this.options=(0,r.extend)(f.DEFAULTS,t),this._element=this.hot.rootDocument.createElement(this.options.wrapIt?"div":this.options.tagName)}setValue(e){this.options.value=e,this.update()}getValue(){return this.options.value}get element(){return this.buildState===d?this._element:this.buildState===u?(this.update(),this._element):(this.buildState=d,this.build(),this.buildState=u,this._element)}isBuilt(){return this.buildState===u}translateIfPossible(e){return"string"==typeof e&&e.startsWith(c.FILTERS_NAMESPACE)?this.hot.getTranslatedPhrase(e):e}build(){const e=(e,t)=>{this.eventManager.addEventListener(e,t,e=>this.runLocalHooks(t,e,this))};if(this.buildState||(this.buildState=d),this._element.setAttribute("data-hot-input",!0),void 0!==this.options.tabIndex&&this._element.setAttribute("tabindex",this.options.tabIndex),void 0!==this.options.role&&this._element.setAttribute("role",this.options.role),this.options.className&&(0,a.addClass)(this._element,this.options.className),this.options.children.length)(0,h.arrayEach)(this.options.children,e=>this._element.appendChild(e.element));else if(this.options.wrapIt){const t=this.hot.rootDocument.createElement(this.options.tagName);t.setAttribute("data-hot-input",!0),(0,r.objectEach)(this.options,(e,o)=>{void 0!==t[o]&&"className"!==o&&"tagName"!==o&&"children"!==o&&(t[o]=this.translateIfPossible(e))}),this._element.appendChild(t),(0,h.arrayEach)(g,o=>e(t,o))}else(0,h.arrayEach)(g,t=>e(this._element,t))}update(){}reset(){this.options.value="",this.update()}show(){this.element.style.display=""}hide(){this.element.style.display="none"}focus(){}destroy(){this.eventManager.destroy(),this.eventManager=null,this.hot=null,this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null}}t.BaseUI=f,(0,r.mixin)(f,n.default)},27277:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.equalsIgnoreCase=function(){const e=[];for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];let i=o.length;for(;i;){i-=1;const t=(0,r.stringify)(o[i]).toLowerCase();-1===e.indexOf(t)&&e.push(t)}return 1===e.length},t.isPercentValue=function(e){return/^([0-9][0-9]?%$)|(^100%$)/.test(e)},t.randomString=function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+e()+e()},t.sanitize=n,t.stripTags=function(e){return n(`${e}`,{ALLOWED_TAGS:[]})},t.substitute=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return`${e}`.replace(/(?:\\)?\[([^[\]]+)]/g,(e,o)=>"\\"===e.charAt(0)?e.substr(1,e.length-1):void 0===t[o]?"":t[o])},t.toUpperCaseFirst=function(e){return e[0].toUpperCase()+e.substr(1)},o(85639);var i=s(o(65166)),r=o(50929);function n(e,t){return i.default.sanitize(e,t)}},27508:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:i,name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_ROW_ABOVE)},callback(){const e=this.getSelectedRangeLast().getTopLeftCorner();this.alter("insert_row_above",e.row,1,"ContextMenu.rowAbove")},disabled(){const e=this.getSelectedRangeLast();return!!(!e||this.selection.isSelectedByColumnHeader()||e.isSingleHeader()&&e.highlight.row<0||this.countSourceRows()>=this.getSettings().maxRows)||!!this.selection.isSelectedByCorner()&&0===this.countRows()},hidden(){return!this.getSettings().allowInsertRow}}};var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(30432));const i=t.KEY="row_above"},27543:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(36837);var i=s(o(1585)),r=o(32883),n=o(64017),l=o(8829),a=o(32978),h=o(9687),c=o(66488),u=o(1006),d=o(12822);function g(e,t){const o=new i.default(e,t||{},r.rootInstanceSymbol);return o.init(),o}t.CellCoords=d.CellCoords,t.CellRange=d.CellRange,(0,h.registerCellType)(c.TextCellType),g.editors={BaseEditor:u.BaseEditor},g.Core=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new i.default(e,t,r.rootInstanceSymbol)},g.DefaultSettings=(0,n.metaSchemaFactory)(),g.hooks=l.Hooks.getSingleton(),g.CellCoords=d.CellCoords,g.CellRange=d.CellRange,g.packageName="handsontable",g.buildDate="08/07/2025 07:58:24",g.version="0.0.0-next-9047f21-20250708",g.languages={dictionaryKeys:a.dictionaryKeys,getLanguageDictionary:a.getLanguageDictionary,getLanguagesDictionaries:a.getLanguagesDictionaries,registerLanguageDictionary:a.registerLanguageDictionary,getTranslatedPhrase:a.getTranslatedPhrase};t.default=g},27840:(e,t,o)=>{"use strict";t.__esModule=!0,o(85639);var s=o(47010),i=o(18051);class r extends s.PhysicalIndexToValueMap{constructor(){super(arguments.length>0&&void 0!==arguments[0]&&arguments[0])}getTrimmedIndexes(){return(0,i.arrayReduce)(this.getValues(),(e,t,o)=>(t&&e.push(o),e),[])}}t.TrimmingMap=r},27926:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(1006),i=o(43561),r=o(87203),n=o(38856);const l="ht_editor_visible",a="selectEditor",h=t.EDITOR_TYPE="select";class c extends s.BaseEditor{static get EDITOR_TYPE(){return h}init(){this.selectWrapper=this.hot.rootDocument.createElement("div"),this.select=this.hot.rootDocument.createElement("select"),this.select.setAttribute("data-hot-input","true"),this.selectWrapper.style.display="none";const e=this.hot.rootDocument.createElement("DIV"),t=this.hot.getSettings().ariaTags;e.className="htAutocompleteArrow",t&&e.setAttribute(...(0,n.A11Y_HIDDEN)()),e.appendChild(this.hot.rootDocument.createTextNode(String.fromCharCode(9660))),(0,i.addClass)(this.selectWrapper,"htSelectEditor"),this.selectWrapper.appendChild(this.select),this.selectWrapper.insertBefore(e,this.selectWrapper.firstChild),this.hot.rootElement.appendChild(this.selectWrapper),this.registerHooks()}getValue(){return this.select.value}setValue(e){this.select.value=e}open(){this._opened=!0,this.refreshDimensions(),this.selectWrapper.style.display="";this.hot.getShortcutManager().setActiveContextName("editor"),this.registerShortcuts()}close(){this._opened=!1,this.selectWrapper.style.display="none",(0,i.hasClass)(this.selectWrapper,l)&&(0,i.removeClass)(this.selectWrapper,l),this.unregisterShortcuts(),this.clearHooks()}focus(){this.select.focus()}registerHooks(){this.addHook("afterScrollHorizontally",()=>this.refreshDimensions()),this.addHook("afterScrollVertically",()=>this.refreshDimensions()),this.addHook("afterColumnResize",()=>this.refreshDimensions()),this.addHook("afterRowResize",()=>this.refreshDimensions())}prepare(e,t,o,s,n,l){super.prepare(e,t,o,s,n,l);const a=this.cellProperties.selectOptions;let h;h="function"==typeof a?this.prepareOptions(a(this.row,this.col,this.prop)):this.prepareOptions(a),(0,i.empty)(this.select),(0,r.objectEach)(h,(e,t)=>{const o=this.hot.rootDocument.createElement("OPTION");o.value=t,(0,i.fastInnerHTML)(o,e),this.select.appendChild(o)})}prepareOptions(e){let t={};if(Array.isArray(e))for(let o=0,s=e.length;o<s;o++)t[e[o]]=e[o];else"object"==typeof e&&(t=e);return t}refreshValue(){const e=this.hot.getSourceDataAtCell(this.row,this.prop);this.originalValue=e,this.setValue(e),this.refreshDimensions()}refreshDimensions(){if(this.state!==s.EDITOR_STATE.EDITING)return;if(this.TD=this.getEditedCell(),!this.TD)return void this.close();const{top:e,start:t,width:o,height:r}=this.getEditedCellRect(),n=this.selectWrapper.style;n.height=`${r}px`,n.width=`${o}px`,n.top=`${e}px`,n[this.hot.isRtl()?"right":"left"]=`${t}px`,n.margin="0px",(0,i.addClass)(this.selectWrapper,l)}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("editor"),t={group:a};this.isInFullEditMode()&&e.addShortcuts([{keys:[["ArrowUp"]],callback:()=>{const e=this.select.selectedIndex-1;e>=0&&(this.select[e].selected=!0)}},{keys:[["ArrowDown"]],callback:()=>{const e=this.select.selectedIndex+1;e<=this.select.length-1&&(this.select[e].selected=!0)}}],t)}unregisterShortcuts(){this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(a)}}t.SelectEditor=c},27958:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy_with_column_group_headers",name(){const e=this.getSelectedRangeLast(),t=e?(0,i.clamp)(e.getWidth()-1,0,1):0;return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS,t)},callback(){e.copyWithAllColumnHeaders()},disabled(){if(!this.hasColHeaders()||!this.getSettings().nestedHeaders)return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}};var s=o(30432),i=o(59073)},28041:(e,t,o)=>{"use strict";var s=o(54090),i=o(42696),r=o(45472),n=o(9370);e.exports=function(e,t,o){for(var l=i(t),a=n.f,h=r.f,c=0;c<l.length;c++){var u=l[c];s(e,u)||o&&s(o,u)||a(e,u,h(t,u))}}},28183:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(51792);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.ManualRowMove=s.ManualRowMove},28191:(e,t,o)=>{"use strict";t.__esModule=!0,o(88443),o(85639),o(73741),o(69326),o(90795);var s=o(27277),i=o(76460);function r(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function n(e,t){return e.get(a(e,t))}function l(e,t,o){return e.set(a(e,t),o),o}function a(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap;t.default=class{constructor(e,t,o){r(this,h,void 0),r(this,c,void 0),r(this,u,void 0),r(this,d,[]),r(this,g,[]),r(this,f,void 0),r(this,p,[]),l(h,this,e),l(c,this,t),l(u,this,o)}setRemovedHfIndexes(e){return l(p,this,e.map(e=>{const t=n(c,this).getVisualFromPhysicalIndex(e);return this.getHfIndexFromVisualIndex(t)})),n(p,this)}getRemovedHfIndexes(){return n(p,this)}getHfIndexFromVisualIndex(e){const t=n(c,this).getIndexesSequence(),o=n(c,this).getNotTrimmedIndexes();return t.indexOf(o[e],e)}syncMoves(e){const t=`move${(0,s.toUpperCaseFirst)(n(h,this))}s`;n(u,this).getEngine().batch(()=>{e.forEach(e=>{const o=e.from!==e.to,s=e.from+1!==e.to;o&&s&&n(u,this).getEngine()[t](n(u,this).getSheetId(),e.from,1,e.to)})})}storeMovesInformation(e,t,o){!1!==o&&(l(g,this,e.map(e=>this.getHfIndexFromVisualIndex(e))),l(f,this,this.getHfIndexFromVisualIndex(t)))}calculateAndSyncMoves(e,t){if(n(u,this).isPerformingUndoRedo())return;if(!1===e||!1===t)return;const o=(0,i.getMoves)(n(g,this),n(f,this),n(c,this).getNumberOfIndexes());null===n(u,this).getSheetId()?n(u,this).getPostponeAction(()=>this.syncMoves(o)):this.syncMoves(o)}getIndexesChangeSyncMethod(){const e=`set${(0,s.toUpperCaseFirst)(n(h,this))}Order`;return t=>{if(n(u,this).isPerformingUndoRedo())return;const o=n(c,this).getIndexesSequence();if("update"===t&&o.length>0){const t=n(d,this).map(e=>o.indexOf(e)),s=n(u,this).getEngine().getSheetDimensions(n(u,this).getSheetId());let i;i="row"===n(h,this)?s.height:s.width;for(let e=t.length;e<i;e+=1)t.push(e);n(u,this).getEngine()[e](n(u,this).getSheetId(),t)}l(d,this,o)}}init(){l(d,this,n(c,this).getIndexesSequence())}}},28220:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(20780),n=o(43561),l=o(30581),a=o(87203),h=o(87927);const c="handsontableEditor",u=t.EDITOR_TYPE="handsontable";class d extends r.TextEditor{constructor(){super(...arguments),(0,i.default)(this,"isFlippedVertically",!1),(0,i.default)(this,"isFlippedHorizontally",!1)}static get EDITOR_TYPE(){return u}open(){super.open();const e=this.htContainer.style;this.htEditor&&(this.htEditor.destroy(),e.width="",e.height="",e.overflow=""),"none"===e.display&&(e.display=""),this.htEditor=new this.hot.constructor(this.htContainer,this.htOptions),this.htEditor.init(),this.htEditor.rootElement.style.display="",this.cellProperties.strict?this.htEditor.selectCell(0,0):this.htEditor.deselectCell(),(0,n.setCaretPosition)(this.TEXTAREA,0,this.TEXTAREA.value.length),this.htEditor.updateSettings({width:this.getTargetDropdownWidth(),height:this.getTargetDropdownHeight()}),this.refreshDimensions(),this.flipDropdownVerticallyIfNeeded(),this.flipDropdownHorizontallyIfNeeded()}close(){this.htEditor&&(this.htEditor.rootElement.style.display="none"),this.removeHooksByKey("beforeKeyDown"),super.close()}prepare(e,t,o,s,i,r){super.prepare(e,t,o,s,i,r);const n=this,l={startRows:0,startCols:0,minRows:0,minCols:0,className:"listbox",copyPaste:!1,autoColumnSize:!1,autoRowSize:!1,readOnly:!0,fillHandle:!1,autoWrapCol:!1,autoWrapRow:!1,ariaTags:!1,themeName:this.hot.getCurrentThemeName(),afterOnCellMouseDown(e,t){const o=this.getSourceData(t.row,t.col);void 0!==o&&n.setValue(o),n.hot.destroyEditor()},preventWheel:!0,layoutDirection:this.hot.isRtl()?"rtl":"ltr"};this.cellProperties.handsontable&&(0,a.extend)(l,r.handsontable),this.htOptions=l}beginEditing(e,t){const o=this.hot.getSettings().onBeginEditing;o&&!1===o()||super.beginEditing(e,t)}createElements(){super.createElements();const e=this.hot.rootDocument.createElement("DIV");e.className="handsontableEditor",this.TEXTAREA_PARENT.appendChild(e),this.htContainer=e,this.assignHooks()}finishEditing(e,t,o){if(this.htEditor&&this.htEditor.isListening()&&this.hot.listen(),this.htEditor&&this.htEditor.getSelectedLast()){const e=this.htEditor.getValue();void 0!==e&&this.setValue(e)}super.finishEditing(e,t,o)}flipDropdownVerticallyIfNeeded(){const{view:e}=this.hot,t=this.getEditedCellRect();let o=t.top;if(e.isVerticallyScrollableByWindow()){const t=e.getTableOffset().top-this.hot.rootWindow.scrollY;o=Math.max(o+t,0)}const s=this.getDropdownHeight(),i=e.getWorkspaceHeight()-o-t.height,r=s>i&&o>i+t.height;return r?this.flipDropdownVertically():this.unflipDropdownVertically(),{isFlipped:r,spaceAbove:o,spaceBelow:i}}flipDropdownVertically(){const e=this.htEditor.rootElement.style;e.position="absolute",e.top=-this.getDropdownHeight()+"px",this.isFlippedVertically=!0}unflipDropdownVertically(){const e=this.htEditor.rootElement.style;e.position="absolute",e.top="",this.isFlippedVertically=!1}flipDropdownHorizontallyIfNeeded(){const{view:e}=this.hot,t=this.getEditedCellRect();let o=t.start+t.width;if(e.isHorizontallyScrollableByWindow()){const t=e.getTableOffset().left-this.hot.rootWindow.scrollX;o=Math.max(o+t,0)}const s=this.getDropdownWidth(),i=e.getWorkspaceWidth()-o+t.width,r=s>i&&o>i;return r?this.flipDropdownHorizontally():this.unflipDropdownHorizontally(),{isFlipped:r,spaceInlineStart:o,spaceInlineEnd:i}}flipDropdownHorizontally(){const e=this.htEditor.rootElement.style,{width:t}=this.getEditedCellRect();e.position="absolute",e[this.hot.isRtl()?"right":"left"]=-(this.getDropdownWidth()-t)+"px",this.isFlippedHorizontally=!0}unflipDropdownHorizontally(){const e=this.htEditor.rootElement.style;e.position="absolute",e[this.hot.isRtl()?"right":"left"]="",this.isFlippedHorizontally=!1}getDropdownHeight(){return this.htEditor.getTableHeight()}getDropdownWidth(){return this.htEditor.getTableWidth()}getTargetDropdownWidth(){return this.htEditor.view.getTableWidth()}getTargetDropdownHeight(){return this.htEditor.view.getTableHeight()+1}assignHooks(){this.hot.addHook("afterDestroy",()=>{var e;null===(e=this.htEditor)||void 0===e||e.destroy()}),this.hot.addHook("afterSetTheme",(e,t)=>{t||this.close()})}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("editor");super.registerShortcuts();const t={group:c,relativeToGroup:h.EDITOR_EDIT_GROUP,position:"before"},o=(e,t)=>{const o=this.htEditor;if(void 0!==e&&(e<0||this.isFlippedVertically&&e>o.countRows()-1?o.deselectCell():o.selectCell(e,0),o.getData().length))return t.preventDefault(),(0,l.stopImmediatePropagation)(t),this.hot.listen(),this.TEXTAREA.focus(),!1};e.addShortcuts([{keys:[["ArrowUp"]],callback:e=>{const t=this.htEditor;let s,i;return!t.getSelectedLast()&&this.isFlippedVertically?s=t.countRows()-1:t.getSelectedLast()&&(this.isFlippedVertically?(i=t.getSelectedLast()[0],s=Math.max(0,i-1)):(i=t.getSelectedLast()[0],s=i-1)),o(s,e)},preventDefault:!1},{keys:[["ArrowDown"]],callback:e=>{const t=this.htEditor;let s,i;if(t.getSelectedLast()||this.isFlippedVertically){if(t.getSelectedLast())if(this.isFlippedVertically)s=t.getSelectedLast()[0]+1;else if(!this.isFlippedVertically){const e=t.countRows()-1;i=t.getSelectedLast()[0],s=Math.min(e,i+1)}}else s=0;return o(s,e)},preventDefault:!1}],t)}unregisterShortcuts(){super.unregisterShortcuts();this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(c)}}t.HandsontableEditor=d},28255:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(23175);t.RENDERER_TYPE=s.RENDERER_TYPE,t.dateRenderer=s.dateRenderer},28589:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostInlineStart",callback(e){const{selection:t,columnIndexMapper:o}=e,s=parseInt(e.getSettings().fixedColumnsStart,10),i=e.getSelectedRangeLast().highlight.row,r=o.getNearestNotHiddenIndex(s,1);t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(i,r)),t.markEndSource()}}},28590:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(50948);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.PersistentState=s.PersistentState},28720:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(73741),o(69326);var i=s(o(53726)),r=o(43561),n=o(59073),l=o(5651),a=o(30581),h=o(88291),c=o(20213),u=o(44233),d=s(o(96924)),g=s(o(77660));function f(e,t,o){p(e,t),t.set(e,o)}function p(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function m(e,t,o){return e.set(C(e,t),o),o}function w(e,t){return e.get(C(e,t))}function C(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const v=t.PLUGIN_KEY="nestedHeaders",y=t.PLUGIN_PRIORITY=280;var E=new WeakMap,S=new WeakMap,R=new WeakMap,b=new WeakMap,_=new WeakMap,T=new WeakSet;class M extends u.BasePlugin{constructor(){var e,t;super(...arguments),p(e=this,t=T),t.add(e),f(this,E,new d.default),f(this,S,null),f(this,R,null),f(this,b,!1),f(this,_,null),(0,i.default)(this,"ghostTable",new g.default(this.hot,(e,t)=>this.getHeaderSettings(e,t))),(0,i.default)(this,"detectedOverlappedHeaders",!1)}static get PLUGIN_KEY(){return v}static get PLUGIN_PRIORITY(){return y}isEnabled(){return!!this.hot.getSettings()[v]}enablePlugin(){var e=this;if(this.enabled)return;const{nestedHeaders:t}=this.hot.getSettings();Array.isArray(t)&&Array.isArray(t[0])||(0,h.warn)(l.toSingleLine`Your Nested Headers plugin configuration is invalid. The settings has to be\x20
|
|
43
43
|
passed as an array of arrays e.q. [['A1', { label: 'A2', colspan: 2 }]]`),this.addHook("init",()=>C(T,this,j).call(this)),this.addHook("afterLoadData",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(T,e,z).call(e,...o)}),this.addHook("beforeOnCellMouseDown",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(T,e,H).call(e,...o)}),this.addHook("afterOnCellMouseDown",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(T,e,x).call(e,...o)}),this.addHook("beforeOnCellMouseOver",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(T,e,P).call(e,...o)}),this.addHook("beforeOnCellMouseUp",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(T,e,k).call(e,...o)}),this.addHook("beforeSelectionHighlightSet",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(T,e,D).call(e,...o)}),this.addHook("modifyTransformStart",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(T,e,L).call(e,...o)}),this.addHook("afterSelection",()=>C(T,this,I).call(this)),this.addHook("afterSelectionFocusSet",()=>C(T,this,I).call(this)),this.addHook("beforeViewportScrollHorizontally",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(T,e,O).call(e,...o)}),this.addHook("afterGetColumnHeaderRenderers",e=>C(T,this,W).call(this,e)),this.addHook("modifyColWidth",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(T,e,B).call(e,...o)}),this.addHook("modifyColumnHeaderValue",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(T,e,U).call(e,...o)}),this.addHook("beforeHighlightingColumnHeader",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(T,e,N).call(e,...o)}),this.addHook("beforeCopy",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(T,e,A).call(e,...o)}),this.addHook("beforeSelectColumns",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(T,e,V).call(e,...o)}),this.addHook("afterViewportColumnCalculatorOverride",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(T,e,F).call(e,...o)}),this.addHook("modifyFocusedElement",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(T,e,Y).call(e,...o)}),this.hot.columnIndexMapper.addLocalHook("cacheUpdated",()=>C(T,this,I).call(this)),this.hot.rowIndexMapper.addLocalHook("cacheUpdated",()=>C(T,this,I).call(this)),super.enablePlugin(),this.updatePlugin()}updatePlugin(){if(!this.hot.view)return;const{nestedHeaders:e}=this.hot.getSettings();w(E,this).setColumnsLimit(this.hot.countCols()),Array.isArray(e)&&(this.detectedOverlappedHeaders=w(E,this).setState(e)),this.detectedOverlappedHeaders&&(0,h.warn)(l.toSingleLine`Your Nested Headers plugin setup contains overlapping headers. This kind of configuration\x20
|
|
44
44
|
is currently not supported.`),this.enabled&&this.hot.columnIndexMapper.hidingMapsCollection.getMergedValues().forEach((e,t)=>{const o=!0===e?"hide-column":"show-column";w(E,this).triggerColumnModification(o,t)}),!w(S,this)&&this.enabled&&m(S,this,this.hot.columnIndexMapper.createChangesObserver("hiding").subscribe(e=>{e.forEach(e=>{let{op:t,index:o,newValue:s}=e;if("replace"===t){const e=!0===s?"hide-column":"show-column";w(E,this).triggerColumnModification(e,o)}}),this.ghostTable.buildWidthsMap()})),this.ghostTable.setLayersCount(this.getLayersCount()).buildWidthsMap(),super.updatePlugin()}disablePlugin(){this.clearColspans(),w(E,this).clear(),w(S,this).unsubscribe(),m(S,this,null),this.ghostTable.clear(),super.disablePlugin()}getStateManager(){return w(E,this)}getLayersCount(){return w(E,this).getLayersCount()}getHeaderSettings(e,t){return w(E,this).getHeaderSettings(e,t)}clearColspans(){if(!this.hot.view)return;const{_wt:e}=this.hot.view,t=e.getSetting("columnHeaders").length,o=e.wtTable.THEAD,s=e.wtOverlays.topOverlay.clone.wtTable.THEAD,i=e.wtOverlays.topInlineStartCornerOverlay?e.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.THEAD:null;for(let e=0;e<t;e++){const t=o.childNodes[e];if(!t)break;const n=s.childNodes[e],l=i?i.childNodes[e]:null;for(let e=0,o=t.childNodes.length;e<o;e++)t.childNodes[e].removeAttribute("colspan"),(0,r.removeClass)(t.childNodes[e],"hiddenHeader"),n&&n.childNodes[e]&&(n.childNodes[e].removeAttribute("colspan"),(0,r.removeClass)(n.childNodes[e],"hiddenHeader")),i&&l&&l.childNodes[e]&&(l.childNodes[e].removeAttribute("colspan"),(0,r.removeClass)(l.childNodes[e],"hiddenHeader"))}}headerRendererFactory(e){var t=this;const o=this.hot.view._wt.getSetting("fixedColumnsStart");return(s,i)=>{var n;const{columnIndexMapper:l,view:a}=this.hot;let h=l.getVisualFromRenderableIndex(s);null===h&&(h=s),i.removeAttribute("colspan"),(0,r.removeClass)(i,"hiddenHeader"),(0,r.removeClass)(i,"hiddenHeaderText");const{colspan:c,isHidden:u,isPlaceholder:d,headerClassNames:g}=null!==(n=w(E,this).getHeaderSettings(e,h))&&void 0!==n?n:{label:""};if(d||u)(0,r.addClass)(i,"hiddenHeader");else if(c>1){var f,p,m;const{wtOverlays:e}=a._wt,t=null===(f=e.topInlineStartCornerOverlay)||void 0===f?void 0:f.clone.wtTable.THEAD.contains(i),n=null===(p=e.inlineStartOverlay)||void 0===p?void 0:p.clone.wtTable.THEAD.contains(i);(null===(m=e.topOverlay)||void 0===m?void 0:m.clone.wtTable.THEAD.contains(i))&&h<o&&(0,r.addClass)(i,"hiddenHeaderText");const l=t||n?Math.min(c,o-s):c;l>1&&i.setAttribute("colspan",l)}if(this.hot.view.appendColHeader(h,i,function(){return t.getColumnHeaderValue(...arguments)},e),!d&&!u){const e=i.querySelector("div.relative");e&&g&&g.length>0&&((0,r.removeClass)(e,this.hot.getColumnMeta(h).headerClassName),(0,r.addClass)(e,g))}}}getColumnHeaderValue(e,t){var o;const{isHidden:s,isPlaceholder:i}=null!==(o=w(E,this).getHeaderSettings(t,e))&&void 0!==o?o:{};return i||s?"":this.hot.getColHeader(e,t)}destroy(){m(E,this,null),null!==w(S,this)&&(w(S,this).unsubscribe(),m(S,this,null)),super.destroy()}_getHeaderTreeNodeDataByCoords(e){if(!(e.row>=0||e.col<0))return w(E,this).getHeaderTreeNodeData(e.row,e.col)}}function I(){var e;const t=null===(e=this.hot)||void 0===e?void 0:e.getSelectedRangeLast();if(!t)return;const{highlight:o}=t;if(o.isHeader()&&o.col>=0){const e=w(E,this).findLeftMostColumnIndex(o.row,o.col),t=this.hot.selection.highlight.getFocus();t.visualCellRange.highlight.col=e,t.visualCellRange.from.col=e,t.visualCellRange.to.col=e,t.commit()}}function O(e,t){var o;const s=this.hot.getSelectedRangeLast();if(!s)return e;const{highlight:i}=s,{navigableHeaders:r}=this.hot.getSettings(),n=this.hot.selection.isSelectedByColumnHeader(),l=r?i.row:null===(o=w(_,this))||void 0===o?void 0:o.row,a=n?e:i.col,h=l<0&&a>=0;if(m(_,this,null),!h)return e;const c=this.hot.getFirstFullyVisibleColumn(),u=this.hot.getLastFullyVisibleColumn(),d=u-c+1,g=w(E,this).findLeftMostColumnIndex(l,a),f=w(E,this).findRightMostColumnIndex(l,a),p=f-g+1;if(g<c&&f>u)return g;if(n){let e=null;return g>=c&&f>u?p>d?(t.value="start",e=g):(t.value="end",e=f):g<c&&f<=u&&(p>d?(t.value="end",e=f):(t.value="start",e=g)),e}return g<=c?g:f}function N(e,t,o){const s=w(E,this).getHeaderTreeNodeData(t,e);if(!s)return e;const{columnCursor:i,selectionType:r,selectionWidth:n}=o,{isRoot:l,colspan:a}=w(E,this).getHeaderSettings(t,e);if(r===c.HEADER_TYPE){if(!l)return s.columnIndex}else if(r===c.ACTIVE_HEADER_TYPE&&(a>n-i||!l))return null;return e}function A(e,t,o){let{columnHeadersCount:s}=o;if(0!==s)for(let o=0;o<t.length;o++){const{startRow:s,startCol:r,endRow:n,endCol:l}=t[o],a=n-s+1;if(s>=0||1===r-l+1)break;for(let t=r;t<=l;t++)for(let o=s;o<=n;o++){var i;const s=a+o,n=t-r;if(0===n)continue;!1===(null===(i=w(E,this).getHeaderTreeNodeData(o,t))||void 0===i?void 0:i.isRoot)&&(e[s][n]="")}}}function H(e,t,o,s){this._getHeaderTreeNodeDataByCoords(t)&&(s.column=!0)}function x(e,t){const o=this._getHeaderTreeNodeDataByCoords(t);if(!o)return;m(R,this,t.clone()),m(b,this,!0);const{selection:s}=this.hot,i=s.isSelected()?s.getSelectedRange().current():null,r=[],{columnIndex:n,origColspan:l}=o,h=!s.inInSelection(t);e.shiftKey&&i?t.col<i.from.col?r.push(i.getTopEndCorner().col,n,t.row):t.col>i.from.col?r.push(i.getTopStartCorner().col,n+l-1,t.row):r.push(n,n+l-1,t.row):((0,a.isLeftClick)(e)||(0,a.isRightClick)(e)&&h||(0,a.isTouchEvent)(e))&&r.push(n,n+l-1,t.row),s.selectColumns(...r)}function P(e,t,o,s){if(!this.hot.view.isMouseDown()||s.column)return;const i=this._getHeaderTreeNodeDataByCoords(t);if(!i)return;const{columnIndex:r,origColspan:l}=i,a=this.hot.getSelectedRangeLast(),h=a.getTopStartCorner(),c=a.getBottomEndCorner(),{from:u}=a;s.column=!0,s.cell=!0;const d=[],g=(0,n.clamp)(t.row,-1/0,-1);t.col<u.col?d.push(c.col,r,g):t.col>u.col?d.push(h.col,r+l-1,g):d.push(r,r+l-1,g),this.hot.selection.selectColumns(...d)}function k(){m(b,this,!1)}function D(){const{navigableHeaders:e}=this.hot.getSettings();if(!this.hot.view.isMouseDown()||!w(b,this)||!e)return;const t=this.hot.getSelectedRangeLast(),o=t.getTopStartCorner().col,s=t.getBottomEndCorner().col,{columnIndex:i,origColspan:r}=w(E,this).getHeaderTreeNodeData(w(R,this).row,w(R,this).col);if(t.setHighlight(w(R,this)),r>t.getWidth()||i<o||i+r-1>s){const e=w(E,this).findTopMostEntireHeaderLevel((0,n.clamp)(o,i,i+r-1),(0,n.clamp)(s,i,i+r-1));t.highlight.row=e,t.highlight.col=t.from.col}}function L(e){const{highlight:t}=this.hot.getSelectedRangeLast(),o=this.hot._createCellCoords(t.row+e.row,t.col+e.col);if(!(o.isHeader()&&o.col>=0))return;const s=w(E,this).findLeftMostColumnIndex(o.row,o.col),i=w(E,this).findRightMostColumnIndex(o.row,o.col);if(e.col<0){const o=t.col>=s&&t.col<=i?s-1:i,r=this.hot.columnIndexMapper.getNearestNotHiddenIndex(o,-1);e.col=null===r?-this.hot.view.countRenderableColumnsInRange(0,t.col):-Math.max(this.hot.view.countRenderableColumnsInRange(r,t.col)-1,1)}else if(e.col>0){const o=t.col>=s&&t.col<=i?i+1:s,r=this.hot.columnIndexMapper.getNearestNotHiddenIndex(o,1);e.col=null===r?this.hot.view.countRenderableColumnsInRange(t.col,this.hot.countCols()):Math.max(this.hot.view.countRenderableColumnsInRange(t.col,r)-1,1)}}function V(e,t,o){const s=e.row,i=this._getHeaderTreeNodeDataByCoords({row:s,col:e.col}),r=this._getHeaderTreeNodeDataByCoords({row:s,col:t.col});m(_,this,o.clone()),t.col<e.col?(i&&(e.col=i.columnIndex+i.origColspan-1),r&&(t.col=r.columnIndex)):t.col>=e.col&&(i&&(e.col=i.columnIndex),r&&(t.col=r.columnIndex+r.origColspan-1))}function W(e){if(w(E,this).getLayersCount()>0){e.length=0;for(let t=0;t<w(E,this).getLayersCount();t++)e.push(this.headerRendererFactory(t))}}function F(e){const t=w(E,this).getLayersCount();let o=e.startColumn,s=!!t;for(let i=0;i<t;i++){const t=w(E,this).findLeftMostColumnIndex(i,e.startColumn),r=this.hot.columnIndexMapper.getRenderableFromVisualIndex(t);if(t>=0&&(s=!1),(0,n.isNumeric)(r)&&r<e.startColumn){o=r;break}}e.startColumn=s?w(E,this).getHeaderTreeNodeData(0,o).columnIndex:o}function B(e,t){const o=this.ghostTable.getWidth(t);return e>o?e:o}function U(e,t,o){var s;const{label:i}=null!==(s=w(E,this).getHeaderTreeNodeData(o,t))&&void 0!==s?s:{label:""};return i}function Y(e,t){if(e<0)return this.hot.getCell(e,w(E,this).findLeftMostColumnIndex(e,t),!0)}function j(){this.updatePlugin()}function z(e,t){t||this.updatePlugin()}t.NestedHeaders=M},28777:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"selectAllCellsAndHeaders",callback(e){let{selection:t}=e;t.markSource("keyboard"),t.selectAll(!0,!0,{disableHeadersHighlight:!1}),t.markEndSource()}}},28811:(e,t,o)=>{"use strict";t.__esModule=!0,t.assert=function(e,t){if(!e())throw new Error(`Assertion failed: ${t}`)},t.columnFactory=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];function o(){}(0,s.inherit)(o,e);for(let e=0;e<t.length;e++)o.prototype[t[e]]=void 0;return o},t.extendByMetaType=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;const r="string"==typeof t.type?(0,i.getCellType)(t.type):t.type;e._automaticallyAssignedMetaProps&&(0,s.objectEach)(t,(t,o)=>{e._automaticallyAssignedMetaProps.delete(o)});if(!(0,s.isObject)(r))return;o!==e||e._automaticallyAssignedMetaProps||(e._automaticallyAssignedMetaProps=new Set);const n={};(0,s.objectEach)(r,(t,i)=>{var r;(function(e,t){var o;if("CELL_TYPE"===e)return!1;return(null===(o=t._automaticallyAssignedMetaProps)||void 0===o?void 0:o.has(e))||!(0,s.hasOwnProperty)(t,e)})(i,o)&&(n[i]=t,null===(r=e._automaticallyAssignedMetaProps)||void 0===r||r.add(i))}),(0,s.extend)(e,n)},t.isNullish=function(e){return null==e},t.isUnsignedNumber=function(e){return Number.isInteger(e)&&e>=0},o(88443),o(62705),o(78495),o(43554),o(15247),o(18472),o(89711),o(78675);var s=o(87203),i=o(9687)},29160:(e,t,o)=>{"use strict";var s=o(10028),i=o(6996),r=o(97610),n=o(16329),l=Object;e.exports=n?function(e){return"symbol"==typeof e}:function(e){var t=s("Symbol");return i(t)&&r(t.prototype,l(e))}},29216:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(35136);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.AutoRowSize=s.AutoRowSize},29283:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=n;var s=o(37396),i=o(93422);const r=t.CONDITION_NAME="by_value";function n(e,t){let[o]=t;return o(e.value)}(0,s.registerCondition)(r,n,{name:"By value",inputsCount:0,inputValuesDecorator(e){let[t]=e;return[(0,i.createArrayAssertion)(t)]},showOperators:!1})},29368:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(87203),n=o(28811),l=s(o(57922));t.default=class{constructor(e){(0,i.default)(this,"metaCtor",class{}),(0,i.default)(this,"meta",void 0),this.meta=this.metaCtor.prototype,(0,r.extend)(this.meta,(0,l.default)()),this.meta.instance=e}getMetaConstructor(){return this.metaCtor}getMeta(){return this.meta}updateMeta(e){var t;(0,r.extend)(this.meta,e),(0,n.extendByMetaType)(this.meta,{...e,type:null!==(t=e.type)&&void 0!==t?t:this.meta.type},e)}}},29422:(e,t,o)=>{"use strict";t.__esModule=!0,t.passwordRenderer=l;var s=o(40672),i=o(43561),r=o(59073);const n=t.RENDERER_TYPE="password";function l(e,t,o,n,l,a,h){s.textRenderer.apply(this,[e,t,o,n,l,a,h]);const c=h.hashLength||t.innerHTML.length,u=h.hashSymbol||"*";let d="";(0,r.rangeEach)(c-1,()=>{d+=u}),(0,i.fastInnerHTML)(t,d)}l.RENDERER_TYPE=n},29506:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(73741),o(7307),o(90795);var i=s(o(53726)),r=o(43561),n=o(30581),l=o(18051),a=o(20157),h=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(30432)),c=o(93422),u=o(67799),d=o(75584),g=o(60438),f=o(37396),p=o(74884);function m(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function w(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var C=new WeakSet;class v extends u.BaseComponent{constructor(e,t){super(e,{id:t.id,stateless:!1}),m(this,C),(0,i.default)(this,"name",""),this.name=t.name,this.elements.push(new d.MultipleSelectUI(this.hot)),this.registerHooks()}registerHooks(){this.getMultipleSelectElement().addLocalHook("keydown",e=>w(C,this,y).call(this,e)).addLocalHook("listTabKeydown",e=>this.runLocalHooks("listTabKeydown",e)),this.hot.addHook("modifyFiltersMultiSelectValue",(e,t)=>w(C,this,S).call(this,e,t))}getElements(){const e=this.getMultipleSelectElement();return[e.getSearchInputElement(),e.getSelectAllElement(),e.getClearAllElement(),this.getMultipleSelectElement()]}setState(e){if(this.reset(),e&&e.command.key===g.CONDITION_BY_VALUE){const t=this.getMultipleSelectElement();t.setItems(e.itemsSnapshot),t.setValue(e.args[0]),t.setLocale(e.locale)}}getState(){const e=this.getMultipleSelectElement(),t=e.getItems();return{command:{key:e.isSelectedAllValues()||!t.length?g.CONDITION_NONE:g.CONDITION_BY_VALUE},args:[e.getValue()],itemsSnapshot:t}}updateState(e){const t=(t,o,s,i,r)=>{const[n]=(0,l.arrayFilter)(o,e=>e.name===g.CONDITION_BY_VALUE),a={},u=this.hot.getTranslatedPhrase(h.FILTERS_VALUES_BLANK_CELLS);if(n){const o=i(t,r),h=(0,l.arrayMap)(o,e=>e.value),d=new Map(o.map(e=>[e.value,this.hot.getCellMeta(e.meta.visualRow,e.meta.visualCol)])),p=(0,c.unifyColumnValues)(h);s&&(n.args[0]=s);const m=[],v=(0,c.intersectValues)(p,n.args[0],u,e=>{e.checked&&m.push(e.value),w(C,this,E).call(this,e,d)}),y=e.editedConditionStack.column;a.locale=this.hot.getCellMeta(0,y).locale,a.args=[m],a.command=(0,f.getConditionDescriptor)(g.CONDITION_BY_VALUE),a.itemsSnapshot=v}else a.args=[],a.command=(0,f.getConditionDescriptor)(g.CONDITION_NONE);this.state.setValueAtIndex(t,a)};t(e.editedConditionStack.column,e.editedConditionStack.conditions,e.conditionArgsChange,e.filteredRowsFactory),e.dependentConditionStacks.length&&t(e.dependentConditionStacks[0].column,e.dependentConditionStacks[0].conditions,e.conditionArgsChange,e.filteredRowsFactory,e.editedConditionStack)}getMultipleSelectElement(){return this.elements.filter(e=>e instanceof d.MultipleSelectUI)[0]}getMenuItemDescriptor(){return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:()=>this.isHidden(),renderer:(e,t,o,s,i,n)=>{(0,r.addClass)(t.parentNode,"htFiltersMenuValue");const a=this.hot.rootDocument.createElement("div");return(0,r.addClass)(a,"htFiltersMenuLabel"),a.textContent=n,t.appendChild(a),t.parentElement.hasAttribute("ghost-table")||(0,l.arrayEach)(this.elements,e=>t.appendChild(e.element)),t}}}reset(){const e=this.hot.getTranslatedPhrase(h.FILTERS_VALUES_BLANK_CELLS),t=this._getColumnVisibleValues(),o=t.map(e=>e.value),s=new Map(t.map(e=>[e.value,e.meta])),i=(0,c.unifyColumnValues)(o),r=(0,c.intersectValues)(i,i,e,e=>{w(C,this,E).call(this,e,s)});this.getMultipleSelectElement().setItems(r),super.reset(),this.getMultipleSelectElement().setValue(i);const n=this.hot.getPlugin("filters").getSelectedColumn();null!==n&&this.getMultipleSelectElement().setLocale(this.hot.getCellMeta(0,n.visualIndex).locale)}_getColumnVisibleValues(){const e=this.hot.getPlugin("filters").getSelectedColumn();return null===e?[]:(0,l.arrayMap)(this.hot.getDataAtCol(e.visualIndex),(t,o)=>({value:(0,c.toEmptyString)(t),meta:this.hot.getCellMeta(o,e.visualIndex)}))}}function y(e){(0,a.isKey)(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),(0,n.stopImmediatePropagation)(e))}function E(e,t){this.hot.hasHook("modifyFiltersMultiSelectValue")&&(e.visualValue=this.hot.runHooks("modifyFiltersMultiSelectValue",e.visualValue,t.get(e.value)))}function S(e,t){return"numeric"===t.type?(0,p.getRenderedValue)(e,t):e}t.ValueComponent=v},29536:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443);var i=s(o(53726)),r=o(44233),n=o(8829),l=o(18051),a=o(87203),h=o(80504),c=o(81720),u=o(65342),d=o(433),g=o(43561),f=o(7729);function p(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function m(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const w=t.PLUGIN_KEY="contextMenu",C=t.PLUGIN_PRIORITY=70,v=w;n.Hooks.getSingleton().register("afterContextMenuDefaultOptions"),n.Hooks.getSingleton().register("beforeContextMenuShow"),n.Hooks.getSingleton().register("afterContextMenuShow"),n.Hooks.getSingleton().register("afterContextMenuHide"),n.Hooks.getSingleton().register("afterContextMenuExecute");var y=new WeakSet;class E extends r.BasePlugin{constructor(){super(...arguments),p(this,y),(0,i.default)(this,"commandExecutor",new h.CommandExecutor(this.hot)),(0,i.default)(this,"itemsFactory",null),(0,i.default)(this,"menu",null)}static get PLUGIN_KEY(){return w}static get PLUGIN_PRIORITY(){return C}static get PLUGIN_DEPS(){return["plugin:AutoColumnSize"]}static get DEFAULT_ITEMS(){return[f.ROW_ABOVE,f.ROW_BELOW,f.SEPARATOR,f.COLUMN_LEFT,f.COLUMN_RIGHT,f.SEPARATOR,f.REMOVE_ROW,f.REMOVE_COLUMN,f.SEPARATOR,f.UNDO,f.REDO,f.SEPARATOR,f.READ_ONLY,f.SEPARATOR,f.ALIGNMENT]}isEnabled(){return!!this.hot.getSettings()[w]}enablePlugin(){var e=this;if(this.enabled)return;const t=this.hot.getSettings()[w];"function"==typeof t.callback&&this.commandExecutor.setCommonCallback(t.callback),this.menu=new u.Menu(this.hot,{className:"htContextMenu",keepInViewport:!0,container:t.uiContainer||this.hot.rootPortalElement}),this.menu.addLocalHook("beforeOpen",()=>m(y,this,R).call(this)),this.menu.addLocalHook("afterOpen",()=>m(y,this,b).call(this)),this.menu.addLocalHook("afterClose",()=>m(y,this,_).call(this)),this.menu.addLocalHook("executeCommand",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return e.executeCommand.call(e,...o)}),this.addHook("afterOnCellContextMenu",e=>m(y,this,S).call(this,e)),this.registerShortcuts(),super.enablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.close(),this.menu&&(this.menu.destroy(),this.menu=null),this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Control/Meta","Shift","Backslash"],["Shift","F10"]],callback:()=>{const{highlight:e}=this.hot.getSelectedRangeLast();this.hot.scrollToFocusedCell();const t=this.hot.getCell(e.row,e.col,!0).getBoundingClientRect(),o=(0,d.getDocumentOffsetByElement)(this.menu.container,this.hot.rootDocument);this.open({left:t.left+o.left,top:t.top+o.top-1+t.height},{left:t.width,above:-t.height}),this.menu.getNavigator().toFirstItem()},runOnlyIf:()=>{var e;const t=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return t&&this.hot.selection.isCellVisible(t)&&!this.menu.isOpened()},group:v})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(v)}open(e){var t;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{above:0,below:0,left:0,right:0};if(null!==(t=this.menu)&&void 0!==t&&t.isOpened())return;this.prepareMenuItems(),this.menu.open();const s=this.menu.tableBorderWidth>0;(0,a.objectEach)(o,(e,t)=>{const o=["below","right"].includes(t)?e+1:e-1;this.menu.setOffset(t,s?e:o)}),this.menu.setPosition(e)}close(){var e;null===(e=this.menu)||void 0===e||e.close(),this.itemsFactory=null}executeCommand(e){null===this.itemsFactory&&this.prepareMenuItems();for(var t=arguments.length,o=new Array(t>1?t-1:0),s=1;s<t;s++)o[s-1]=arguments[s];this.commandExecutor.execute(e,...o)}prepareMenuItems(){this.itemsFactory=new c.ItemsFactory(this.hot,E.DEFAULT_ITEMS);const e=this.hot.getSettings()[w],t={items:this.itemsFactory.getItems(e)};this.hot.runHooks("afterContextMenuDefaultOptions",t),this.itemsFactory.setPredefinedItems(t.items);const o=this.itemsFactory.getItems(e);this.hot.runHooks("beforeContextMenuSetItems",o),this.menu.setMenuItems(o),(0,l.arrayEach)(o,e=>this.commandExecutor.registerCommand(e.key,e))}destroy(){this.close(),this.menu&&this.menu.destroy(),super.destroy()}}function S(e){const t=this.hot.getSettings(),o=t.rowHeaders,s=t.colHeaders;const i=e.target;if(this.close(),(0,g.hasClass)(i,"handsontableInput"))return;if(e.preventDefault(),e.stopPropagation(),!o&&!s&&!(function(e){return"TD"===e.nodeName||"TD"===e.parentNode.nodeName}(i)||(0,g.hasClass)(i,"current")&&(0,g.hasClass)(i,"wtBorder")))return;const r=(0,d.getDocumentOffsetByElement)(this.menu.container,this.hot.rootDocument);this.open({top:e.clientY+r.top,left:e.clientX+r.left})}function R(){this.hot.runHooks("beforeContextMenuShow",this)}function b(){this.hot.runHooks("afterContextMenuShow",this)}function _(){this.hot.listen(),this.hot.runHooks("afterContextMenuHide",this)}t.ContextMenu=E,E.SEPARATOR={name:f.SEPARATOR}},29599:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(80068);t.RENDERER_TYPE=s.RENDERER_TYPE,t.autocompleteRenderer=s.autocompleteRenderer},29731:(e,t,o)=>{"use strict";o(72714)("flat")},30086:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(85639);var i=s(o(53726));t.default=class{constructor(e){(0,i.default)(this,"plugin",void 0),(0,i.default)(this,"hot",void 0),(0,i.default)(this,"fullySelectedMergedCellClassName","fullySelectedMergedCell"),this.plugin=e,this.hot=e.hot}getSelectedMergedCellClassName(e,t,o,s){const i=Math.min(o[0],o[2]),r=Math.min(o[1],o[3]),n=Math.max(o[0],o[2]),l=Math.max(o[1],o[3]);if(void 0===s)return;if(!this.plugin.mergedCellsCollection.isFirstRenderableMergedCell(e,t))return;const a=this.plugin.mergedCellsCollection.get(e,t);if(!a)return;const h=a.getLastRow(),c=a.getLastColumn();return i<=a.row&&r<=a.col&&n>=h&&l>=c?`${this.fullySelectedMergedCellClassName}-${s}`:this.isMergeCellFullySelected(a,this.plugin.hot.getSelectedRange())?`${this.fullySelectedMergedCellClassName}-multiple`:void 0}isMergeCellFullySelected(e,t){const o=[];if(!t||!e)return!1;for(let t=0;t<e.rowspan;t+=1)for(let s=0;s<e.colspan;s+=1)o.push(this.hot._createCellCoords(e.row+t,e.col+s));for(let e=0;e<o.length;e+=1){const s=[];for(let i=0;i<t.length;i+=1)s[i]=t[i].includes(o[e]);if(!s.includes(!0))return!1}return!0}getSelectedMergedCellClassNameToRemove(){const e=[];for(let t=0;t<=7;t+=1)e.push(`${this.fullySelectedMergedCellClassName}-${t}`);return e.push(`${this.fullySelectedMergedCellClassName}-multiple`),e}}},30318:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(63936);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.ColumnSummary=s.ColumnSummary},30334:(e,t,o)=>{"use strict";var s=o(8302),i=o(88005),r=o(61958),n="__core-js_shared__",l=e.exports=i[n]||r(n,{});(l.versions||(l.versions=[])).push({version:"3.43.0",mode:s?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"})},30432:(e,t)=>{"use strict";t.__esModule=!0;const o=t.CONTEXT_MENU_ITEMS_NAMESPACE="ContextMenu:items",s=(t.CONTEXTMENU_ITEMS_NO_ITEMS=`${o}.noItems`,t.CONTEXTMENU_ITEMS_ROW_ABOVE=`${o}.insertRowAbove`,t.CONTEXTMENU_ITEMS_ROW_BELOW=`${o}.insertRowBelow`,t.CONTEXTMENU_ITEMS_INSERT_LEFT=`${o}.insertColumnOnTheLeft`,t.CONTEXTMENU_ITEMS_INSERT_RIGHT=`${o}.insertColumnOnTheRight`,t.CONTEXTMENU_ITEMS_REMOVE_ROW=`${o}.removeRow`,t.CONTEXTMENU_ITEMS_REMOVE_COLUMN=`${o}.removeColumn`,t.CONTEXTMENU_ITEMS_UNDO=`${o}.undo`,t.CONTEXTMENU_ITEMS_REDO=`${o}.redo`,t.CONTEXTMENU_ITEMS_READ_ONLY=`${o}.readOnly`,t.CONTEXTMENU_ITEMS_CLEAR_COLUMN=`${o}.clearColumn`,t.CONTEXTMENU_ITEMS_COPY=`${o}.copy`,t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS=`${o}.copyWithHeaders`,t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS=`${o}.copyWithGroupHeaders`,t.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY=`${o}.copyHeadersOnly`,t.CONTEXTMENU_ITEMS_CUT=`${o}.cut`,t.CONTEXTMENU_ITEMS_FREEZE_COLUMN=`${o}.freezeColumn`,t.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN=`${o}.unfreezeColumn`,t.CONTEXTMENU_ITEMS_MERGE_CELLS=`${o}.mergeCells`,t.CONTEXTMENU_ITEMS_UNMERGE_CELLS=`${o}.unmergeCells`,t.CONTEXTMENU_ITEMS_ADD_COMMENT=`${o}.addComment`,t.CONTEXTMENU_ITEMS_EDIT_COMMENT=`${o}.editComment`,t.CONTEXTMENU_ITEMS_REMOVE_COMMENT=`${o}.removeComment`,t.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT=`${o}.readOnlyComment`,t.CONTEXTMENU_ITEMS_ALIGNMENT=`${o}.align`,t.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT=`${o}.align.left`,t.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER=`${o}.align.center`,t.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT=`${o}.align.right`,t.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY=`${o}.align.justify`,t.CONTEXTMENU_ITEMS_ALIGNMENT_TOP=`${o}.align.top`,t.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE=`${o}.align.middle`,t.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM=`${o}.align.bottom`,t.CONTEXTMENU_ITEMS_BORDERS=`${o}.borders`,t.CONTEXTMENU_ITEMS_BORDERS_TOP=`${o}.borders.top`,t.CONTEXTMENU_ITEMS_BORDERS_RIGHT=`${o}.borders.right`,t.CONTEXTMENU_ITEMS_BORDERS_BOTTOM=`${o}.borders.bottom`,t.CONTEXTMENU_ITEMS_BORDERS_LEFT=`${o}.borders.left`,t.CONTEXTMENU_ITEMS_REMOVE_BORDERS=`${o}.borders.remove`,t.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD=`${o}.nestedHeaders.insertChildRow`,t.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD=`${o}.nestedHeaders.detachFromParent`,t.CONTEXTMENU_ITEMS_HIDE_COLUMN=`${o}.hideColumn`,t.CONTEXTMENU_ITEMS_SHOW_COLUMN=`${o}.showColumn`,t.CONTEXTMENU_ITEMS_HIDE_ROW=`${o}.hideRow`,t.CONTEXTMENU_ITEMS_SHOW_ROW=`${o}.showRow`,t.FILTERS_NAMESPACE="Filters:"),i=t.FILTERS_CONDITIONS_NAMESPACE=`${s}conditions`,r=(t.FILTERS_CONDITIONS_NONE=`${i}.none`,t.FILTERS_CONDITIONS_EMPTY=`${i}.isEmpty`,t.FILTERS_CONDITIONS_NOT_EMPTY=`${i}.isNotEmpty`,t.FILTERS_CONDITIONS_EQUAL=`${i}.isEqualTo`,t.FILTERS_CONDITIONS_NOT_EQUAL=`${i}.isNotEqualTo`,t.FILTERS_CONDITIONS_BEGINS_WITH=`${i}.beginsWith`,t.FILTERS_CONDITIONS_ENDS_WITH=`${i}.endsWith`,t.FILTERS_CONDITIONS_CONTAINS=`${i}.contains`,t.FILTERS_CONDITIONS_NOT_CONTAIN=`${i}.doesNotContain`,t.FILTERS_CONDITIONS_BY_VALUE=`${i}.byValue`,t.FILTERS_CONDITIONS_GREATER_THAN=`${i}.greaterThan`,t.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL=`${i}.greaterThanOrEqualTo`,t.FILTERS_CONDITIONS_LESS_THAN=`${i}.lessThan`,t.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL=`${i}.lessThanOrEqualTo`,t.FILTERS_CONDITIONS_BETWEEN=`${i}.isBetween`,t.FILTERS_CONDITIONS_NOT_BETWEEN=`${i}.isNotBetween`,t.FILTERS_CONDITIONS_AFTER=`${i}.after`,t.FILTERS_CONDITIONS_BEFORE=`${i}.before`,t.FILTERS_CONDITIONS_TODAY=`${i}.today`,t.FILTERS_CONDITIONS_TOMORROW=`${i}.tomorrow`,t.FILTERS_CONDITIONS_YESTERDAY=`${i}.yesterday`,t.FILTERS_DIVS_FILTER_BY_CONDITION=`${s}labels.filterByCondition`,t.FILTERS_DIVS_FILTER_BY_VALUE=`${s}labels.filterByValue`,t.FILTERS_LABELS_CONJUNCTION=`${s}labels.conjunction`,t.FILTERS_LABELS_DISJUNCTION=`${s}labels.disjunction`,t.FILTERS_VALUES_BLANK_CELLS=`${s}values.blankCells`,t.FILTERS_BUTTONS_SELECT_ALL=`${s}buttons.selectAll`,t.FILTERS_BUTTONS_CLEAR=`${s}buttons.clear`,t.FILTERS_BUTTONS_OK=`${s}buttons.ok`,t.FILTERS_BUTTONS_CANCEL=`${s}buttons.cancel`,t.FILTERS_BUTTONS_PLACEHOLDER_SEARCH=`${s}buttons.placeholder.search`,t.FILTERS_BUTTONS_PLACEHOLDER_VALUE=`${s}buttons.placeholder.value`,t.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE=`${s}buttons.placeholder.secondValue`,t.CHECKBOX_RENDERER_NAMESPACE="CheckboxRenderer:");t.CHECKBOX_CHECKED=`${r}checked`,t.CHECKBOX_UNCHECKED=`${r}unchecked`},30510:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(64310);class n extends r.BaseAction{constructor(e){let{index:t,amount:o}=e;super("insert_row"),(0,i.default)(this,"index",void 0),(0,i.default)(this,"amount",void 0),this.index=t,this.amount=o}static startRegisteringEvents(e,t){e.addHook("afterCreateRow",(e,o,s)=>{t.done(()=>new n({index:e,amount:o}),s)})}undo(e,t){const o=e.countRows(),s=e.getSettings().minSpareRows;this.index>=o&&this.index-s<o&&(this.index-=s),e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",this.index,this.amount,"UndoRedo.undo")}redo(e,t){e.addHookOnce("afterCreateRow",t),e.alter("insert_row_above",this.index,this.amount,"UndoRedo.redo")}}t.CreateRowAction=n},30581:(e,t,o)=>{"use strict";t.__esModule=!0,t.isImmediatePropagationStopped=function(e){return!1===e.isImmediatePropagationEnabled},t.isLeftClick=function(e){return 0===e.button},t.isRightClick=function(e){return 2===e.button},t.isTouchEvent=function(e){return e instanceof TouchEvent},t.offsetRelativeTo=function(e,t){const o={x:e.offsetX,y:e.offsetY};let i=e.target;if(!(0,s.isHTMLElement)(t)||i!==t&&i.contains(t))return o;for(;i!==t;)o.x+=i.offsetLeft,o.y+=i.offsetTop,i=i.offsetParent;return o},t.stopImmediatePropagation=function(e){e.isImmediatePropagationEnabled=!1,e.cancelBubble=!0};var s=o(43561)},30586:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(70671);t.parse=s.parse,t.stringify=s.stringify},30784:(e,t,o)=>{"use strict";var s=o(89494);e.exports=function(e){var t=+e;return t!=t||0===t?0:s(t)}},30845:(e,t,o)=>{"use strict";var s=o(80121),i=o(14499);e.exports=s(i.proto,"size","get")||function(e){return e.size}},30863:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"editorCloseAndSaveByEnter",callback(e,t){const o=e._getEditorManager();o.closeEditorAndSaveChanges(t.ctrlKey||t.metaKey),o.moveSelectionAfterEnter(t)}}},30920:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(85639),o(73741),o(37782),o(69326),o(89663);var i=s(o(53726)),r=o(64310),n=o(87203);class l extends r.BaseAction{constructor(e){let{changes:t,selected:o,countCols:s,countRows:r}=e;super("change"),(0,i.default)(this,"changes",void 0),(0,i.default)(this,"selected",void 0),(0,i.default)(this,"countCols",void 0),(0,i.default)(this,"countRows",void 0),this.changes=t,this.selected=o,this.countCols=s,this.countRows=r}static startRegisteringEvents(e,t){e.addHook("beforeChange",function(o,s){const i=o&&o.length;if(!i)return;if(!o.find(e=>{const[,,t,o]=e;return t!==o}))return;t.done(()=>{const t=o.reduce((e,t)=>(e.push([...t]),e),[]);t.forEach(t=>{t[1]=e.propToCol(t[1])});const s=i>1?this.getSelected():[[t[0][0],t[0][1]]];return new l({changes:t,selected:s,countCols:e.countCols(),countRows:e.countRows()})},s)})}undo(e,t){const o=(0,n.deepClone)(this.changes);for(let e=0,t=o.length;e<t;e++)o[e].splice(3,1);e.addHookOnce("afterChange",t),e.setDataAtCell(o,null,null,"UndoRedo.undo");const s=e.countRows()-this.countRows;s>0&&e.alter("remove_row",null,s,"UndoRedo.undo");const i=e.countCols()-this.countCols;i>0&&e.isColumnModificationAllowed()&&e.alter("remove_col",null,i,"UndoRedo.undo"),e.scrollToFocusedCell(),e.selectCells(this.selected,!1,!1)}redo(e,t){const o=(0,n.deepClone)(this.changes);for(let e=0,t=o.length;e<t;e++)o[e].splice(2,1);e.addHookOnce("afterChange",t),e.setDataAtCell(o,null,null,"UndoRedo.redo"),this.selected&&e.selectCells(this.selected,!1,!1)}}t.DataChangeAction=l},30936:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(65798),n=o(14288),l=o(43561),a=o(38856);class h extends n.BaseRenderer{constructor(){super("TH"),(0,i.default)(this,"orderViews",new WeakMap),(0,i.default)(this,"sourceRowIndex",0)}obtainOrderView(e){let t;return this.orderViews.has(e)?t=this.orderViews.get(e):(t=new r.SharedOrderView(e,e=>this.nodesPool.obtain(this.sourceRowIndex,e)),this.orderViews.set(e,t)),t}render(){const{rowsToRender:e,rowHeaderFunctions:t,rowHeadersCount:o,rows:s,cells:i}=this.table;for(let r=0;r<e;r++){const e=this.table.renderedRowToSource(r),n=s.getRenderedNode(r);this.sourceRowIndex=e;const h=this.obtainOrderView(n),c=i.obtainOrderView(n);h.appendView(c).setSize(o).setOffset(0).start();for(let s=o-1;s>=0;s--){h.render();const o=h.getCurrentNode();o.className="",o.removeAttribute("style"),(0,l.removeAttribute)(o,[new RegExp("aria-(.*)"),new RegExp("role")]),this.table.isAriaEnabled()&&(0,l.setAttribute)(o,[(0,a.A11Y_ROWHEADER)(),(0,a.A11Y_SCOPE_ROW)(),(0,a.A11Y_COLINDEX)(s+1),(0,a.A11Y_TABINDEX)(-1)]),t[s](e,o,s)}h.end()}}}t.RowHeadersRenderer=h},31165:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(8244);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.ManualColumnMove=s.ManualColumnMove},31314:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726));const r="px";t.default=class{constructor(e){(0,i.default)(this,"hot",void 0),(0,i.default)(this,"_element",null),(0,i.default)(this,"state",0),this.hot=e}appendTo(e){e.appendChild(this._element),this.state=2}build(){0===this.state&&(this._element=this.hot.rootDocument.createElement("div"),this.state=1)}destroy(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=0}isAppended(){return 2===this.state}isBuilt(){return this.state>=1}setPosition(e,t){void 0!==e&&(this._element.style.top=e+r),void 0!==t&&(this._element.style.left=t+r)}getPosition(){return{top:this._element.style.top?parseInt(this._element.style.top,10):0,left:this._element.style.left?parseInt(this._element.style.left,10):0}}setSize(e,t){e&&(this._element.style.width=e+r),t&&(this._element.style.height=t+r)}getSize(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}}setOffset(e,t){e&&(this._element.style.marginTop=e+r),t&&(this._element.style.marginLeft=t+r)}getOffset(){return{top:this._element.style.marginTop?parseInt(this._element.style.marginTop,10):0,left:this._element.style.marginLeft?parseInt(this._element.style.marginLeft,10):0}}}},31425:(e,t,o)=>{"use strict";t.__esModule=!0,o(88443),o(62705),o(78495),o(43554),o(15247),o(18472),o(89711),o(78675),o(73741),o(69326);var s=o(85326),i=o(42059);function r(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function n(e,t){return e.get(a(e,t))}function l(e,t,o){return e.set(a(e,t),o),o}function a(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,g=new WeakMap;t.ChangesObservable=class{constructor(){let{initialIndexValue:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,h,new Set),r(this,c,[]),r(this,u,[]),r(this,d,!1),r(this,g,!1),l(g,this,null!=e&&e)}createObserver(){const e=new s.ChangesObserver;return n(h,this).add(e),e.addLocalHook("unsubscribe",()=>{n(h,this).delete(e)}),e._writeInitialChanges((0,i.arrayDiff)(n(c,this),n(u,this))),e}emit(e){let t=n(u,this);n(d,this)&&n(c,this).length===e.length||(0===e.length?e=new Array(t.length).fill(n(g,this)):l(c,this,new Array(e.length).fill(n(g,this))),n(d,this)||(l(d,this,!0),t=n(c,this)));const o=(0,i.arrayDiff)(t,e);n(h,this).forEach(e=>e._write(o)),l(u,this,e)}}},31639:(e,t,o)=>{"use strict";var s=o(64976),i=o(6996),r=o(19895),n=TypeError;e.exports=function(e,t){var o,l;if("string"===t&&i(o=e.toString)&&!r(l=s(o,e)))return l;if(i(o=e.valueOf)&&!r(l=s(o,e)))return l;if("string"!==t&&i(o=e.toString)&&!r(l=s(o,e)))return l;throw new n("Can't convert object to primitive value")}},31644:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(73741),o(16178);var i=s(o(53726)),r=o(43561),n=o(50929),l=o(87203),a=o(6964),h=o(18051),c=o(44233),u=o(65733),d=o(8829),g=o(55433),f=o(87927),p=o(42127),m=o(7445),w=o(46512),C=o(17374),v=o(38856);function y(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function E(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const S=t.PLUGIN_KEY="columnSorting",R=t.PLUGIN_PRIORITY=50,b=t.APPEND_COLUMN_CONFIG_STRATEGY="append",_=t.REPLACE_COLUMN_CONFIG_STRATEGY="replace",T=S;(0,C.registerRootComparator)(S,w.rootComparator),d.Hooks.getSingleton().register("beforeColumnSort"),d.Hooks.getSingleton().register("afterColumnSort");const M=new WeakMap;var I=new WeakSet;class O extends c.BasePlugin{constructor(){super(...arguments),y(this,I),(0,i.default)(this,"columnStatesManager",null),(0,i.default)(this,"columnMetaCache",null),(0,i.default)(this,"pluginKey",S),(0,i.default)(this,"indexesSequenceCache",null)}static get PLUGIN_KEY(){return S}static get PLUGIN_PRIORITY(){return R}isEnabled(){return!!this.hot.getSettings()[this.pluginKey]}enablePlugin(){var e=this;if(M.has(this.hot)&&M.get(this.hot)!==this.pluginKey)return this.hot.updateSettings({[this.pluginKey]:!1}),void(0,p.warnAboutPluginsConflict)(M.get(this.hot),this.pluginKey);this.enabled||(M.set(this.hot,this.pluginKey),this.columnStatesManager=new g.ColumnStatesManager(this.hot,`${this.pluginKey}.sortingStates`),this.columnMetaCache=new u.PhysicalIndexToValueMap(e=>{let t=this.hot.toVisualColumn(e);return null===t&&(t=e),this.getMergedPluginSettings(t)}),this.hot.columnIndexMapper.registerMap(`${this.pluginKey}.columnMeta`,this.columnMetaCache),this.addHook("afterGetColHeader",(e,t)=>E(I,this,A).call(this,e,t)),this.addHook("beforeOnCellMouseDown",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return E(I,e,x).call(e,...o)}),this.addHook("afterOnCellMouseDown",(e,t)=>this.onAfterOnCellMouseDown(e,t)),this.addHook("afterInit",()=>E(I,this,N).call(this)),this.addHook("afterLoadData",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return E(I,e,H).call(e,...o)}),this.hot.view&&E(I,this,N).call(this),this.registerShortcuts(),super.enablePlugin())}disablePlugin(){const e=(e,t)=>{const o=(0,p.getHeaderSpanElement)(t);!1!==(0,p.isFirstLevelColumnHeader)(e,t)&&null!==o&&this.updateHeaderClasses(o)};M.delete(this.hot),this.hot.addHook("afterGetColHeader",e),this.hot.addHookOnce("afterViewRender",()=>{this.hot.removeHook("afterGetColHeader",e)}),this.hot.batchExecution(()=>{null!==this.indexesSequenceCache&&(this.hot.rowIndexMapper.setIndexesSequence(this.indexesSequenceCache.getValues()),this.hot.rowIndexMapper.unregisterMap(this.pluginKey),this.indexesSequenceCache=null)},!0),this.hot.columnIndexMapper.unregisterMap(`${this.pluginKey}.columnMeta`),this.columnStatesManager.destroy(),this.columnMetaCache=null,this.columnStatesManager=null,this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Enter"]],callback:()=>{const{highlight:e}=this.hot.getSelectedRangeLast();return this.sort(this.getColumnNextConfig(e.col)),!1},runOnlyIf:()=>{var e,t;const o=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return o&&(null===(t=this.hot.getSelectedRangeLast())||void 0===t?void 0:t.isSingle())&&this.hot.selection.isCellVisible(o)&&-1===o.row&&o.col>=0},relativeToGroup:f.EDITOR_EDIT_GROUP,position:"before",group:T})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(T)}sort(e){const t=this.getSortConfig(),o=this.getNormalizedSortConfigs(e),s=this.areValidSortConfigs(o);!1!==this.hot.runHooks("beforeColumnSort",t,o,s)&&(0===t.length&&null===this.indexesSequenceCache&&(this.indexesSequenceCache=this.hot.rowIndexMapper.registerMap(this.pluginKey,new u.IndexesSequence),this.indexesSequenceCache.setValues(this.hot.rowIndexMapper.getIndexesSequence())),s&&(this.columnStatesManager.setSortStates(o),this.sortByPresetSortStates(o),this.saveAllSortSettings(o)),this.hot.runHooks("afterColumnSort",t,s?o:t,s),s&&this.hot.render())}clearSort(){this.sort([])}isSorted(){return this.enabled&&!this.columnStatesManager.isListOfSortedColumnsEmpty()}getSortConfig(e){return(0,n.isDefined)(e)?this.columnStatesManager.getColumnSortState(e):this.columnStatesManager.getSortStates()}setSortConfig(e){const t=this.getNormalizedSortConfigs(e);this.areValidSortConfigs(t)&&this.columnStatesManager.setSortStates(t)}getNormalizedSortConfigs(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)?e.slice(0,1):[e]}areValidSortConfigs(e){const t=this.hot.countCols();return(0,p.areValidSortStates)(e)&&e.every(e=>{let{column:o}=e;return o<=t&&o>=0})}saveAllSortSettings(e){const t=this.columnStatesManager.getAllColumnsProperties();t.initialConfig=(0,h.arrayMap)(e,e=>{let{column:t,...o}=e;return{column:this.hot.toPhysicalColumn(t),...o}}),this.hot.runHooks("persistentStateSave","columnSorting",t)}getAllSavedSortSettings(){const e={};this.hot.runHooks("persistentStateLoad","columnSorting",e);const t=e.value,o=e=>{let{column:t,...o}=e;return{column:this.hot.toVisualColumn(t),...o}};return(0,n.isDefined)(t)&&Array.isArray(t.initialConfig)&&(t.initialConfig=(0,h.arrayMap)(t.initialConfig,o)),t}getColumnNextConfig(e){const t=this.columnStatesManager.getSortOrderOfColumn(e);if((0,n.isDefined)(t)){const o=(0,p.getNextSortOrder)(t);return(0,n.isDefined)(o)?{column:e,sortOrder:o}:void 0}const o=this.hot.countCols();if(Number.isInteger(e)&&e>=0&&e<o)return{column:e,sortOrder:(0,p.getNextSortOrder)()}}getNextSortConfig(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b;const o=this.columnStatesManager.getIndexOfColumnInSortQueue(e),s=-1!==o,i=this.getSortConfig(),r=this.getColumnNextConfig(e);if(s){if((0,n.isUndefined)(r))return[...i.slice(0,o),...i.slice(o+1)];if(t===b)return[...i.slice(0,o),...i.slice(o+1),r];if(t===_)return[...i.slice(0,o),r,...i.slice(o+1)]}return(0,n.isDefined)(r)?i.concat(r):i}getPluginColumnConfig(e){if((0,l.isObject)(e)){const t=e[this.pluginKey];if((0,l.isObject)(t))return t}return{}}getMergedPluginSettings(e){const t=this.hot.getSettings()[this.pluginKey],o=this.columnStatesManager.getAllColumnsProperties(),s=this.hot.getCellMeta(0,e),i=Object.getPrototypeOf(s);return Array.isArray(i.columns)?Object.assign(o,t,this.getPluginColumnConfig(i.columns[e])):(0,a.isFunction)(i.columns)?Object.assign(o,t,this.getPluginColumnConfig(i.columns(e))):Object.assign(o,t)}getFirstCellSettings(e){const t=this.hot.getCellMeta(0,e),o=Object.create(t);return o[this.pluginKey]=this.columnMetaCache.getValueAtIndex(this.hot.toPhysicalColumn(e)),o}getNumberOfRowsToSort(e){const t=this.hot.getSettings();return t.maxRows<=e?t.maxRows:e-t.minSpareRows}sortByPresetSortStates(e){if(this.hot.rowIndexMapper.setIndexesSequence(this.indexesSequenceCache.getValues()),0===e.length)return;const t=[],o=this.hot.countRows(),s=t=>(0,h.arrayMap)(e,e=>this.hot.getDataAtCell(t,e.column));for(let e=0;e<this.getNumberOfRowsToSort(o);e+=1)t.push([this.hot.toPhysicalRow(e)].concat(s(e)));const i=(0,h.arrayMap)(t,e=>e[0]);(0,C.sort)(t,this.pluginKey,(0,h.arrayMap)(e,e=>e.sortOrder),(0,h.arrayMap)(e,e=>this.getFirstCellSettings(e.column)));for(let e=t.length;e<o;e+=1)t.push([e].concat(s(e)));const r=(0,h.arrayMap)(t,e=>e[0]),n=new Map((0,h.arrayMap)(i,(e,t)=>[e,r[t]])),l=(0,h.arrayMap)(this.hot.rowIndexMapper.getIndexesSequence(),e=>n.has(e)?n.get(e):e);this.hot.rowIndexMapper.setIndexesSequence(l)}sortBySettings(e){if((0,l.isObject)(e)){this.columnStatesManager.updateAllColumnsProperties(e);const t=e.initialConfig;(Array.isArray(t)||(0,l.isObject)(t))&&this.sort(t)}else this.hot.render()}updateHeaderClasses(e){if((0,r.removeClass)(e,(0,m.getClassesToRemove)(e)),!1!==this.enabled){for(var t=arguments.length,o=new Array(t>1?t-1:0),s=1;s<t;s++)o[s-1]=arguments[s];(0,r.addClass)(e,(0,m.getClassesToAdd)(...o))}}onUpdateSettings(e){super.onUpdateSettings(e),null!==this.columnMetaCache&&this.columnMetaCache.init(this.hot.columnIndexMapper.getNumberOfIndexes()),(0,n.isDefined)(e[this.pluginKey])&&this.sortBySettings(e[this.pluginKey])}wasClickableHeaderClicked(e,t){return this.getFirstCellSettings(t)[this.pluginKey].headerAction&&(0,r.hasClass)(e.target,p.HEADER_SPAN_CLASS)}onAfterOnCellMouseDown(e,t){if(!1!==(0,p.wasHeaderClickedProperly)(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)){this.hot.getShortcutManager().isCtrlPressed()&&(this.hot.deselectCell(),this.hot.selectColumns(t.col));const e=this.hot.getActiveEditor(),o=this.getColumnNextConfig(t.col);null!=e&&e.isOpened()&&this.hot.getCellValidator(e.row,e.col)?this.hot.addHookOnce("postAfterValidate",()=>{this.sort(o)}):this.sort(o)}}destroy(){var e;null===(e=this.columnStatesManager)||void 0===e||e.destroy(),super.destroy()}}function N(){const e=this.getAllSavedSortSettings();if((0,l.isObject)(e))this.sortBySettings(e);else{const e=this.hot.getSettings()[this.pluginKey];this.sortBySettings(e)}}function A(e,t){const o=(0,p.getHeaderSpanElement)(t);if(!1===(0,p.isFirstLevelColumnHeader)(e,t)||null===o)return;const s=this.getFirstCellSettings(e)[this.pluginKey],i=s.indicator,n=s.headerAction;if(this.updateHeaderClasses(o,this.columnStatesManager,e,i,n),this.hot.getSettings().ariaTags){const o=this.columnStatesManager.getSortOrderOfColumn(e);(0,r.setAttribute)(t,...(0,v.A11Y_SORT)(o?`${o}ending`:"none"))}}function H(e){!0===e&&this.hot.view&&E(I,this,N).call(this)}function x(e,t,o,s){!1!==(0,p.wasHeaderClickedProperly)(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)&&this.hot.getShortcutManager().isCtrlPressed()&&(s.column=!0)}t.ColumnSorting=O},31824:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:i,name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_NO_ITEMS)},disabled:!0,isCommand:!1}};var s=o(30432);const i=t.KEY="no_items"},31850:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443);var i=o(44233),r=s(o(96511)),n=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(47714));const l=t.PLUGIN_KEY="exportFile",a=t.PLUGIN_PRIORITY=240;class h extends i.BasePlugin{static get PLUGIN_KEY(){return l}static get PLUGIN_PRIORITY(){return a}isEnabled(){return!0}exportAsString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._createTypeFormatter(e,t).export()}exportAsBlob(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._createBlob(this._createTypeFormatter(e,t))}downloadFile(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{rootDocument:o,rootWindow:s}=this.hot,i=this._createTypeFormatter(e,t),r=this._createBlob(i),n=s.URL||s.webkitURL,l=o.createElement("a"),a=`${i.options.filename}.${i.options.fileExtension}`;if(void 0!==l.download){const e=n.createObjectURL(r);l.style.display="none",l.setAttribute("href",e),l.setAttribute("download",a),o.body.appendChild(l),l.dispatchEvent(new MouseEvent("click")),o.body.removeChild(l),setTimeout(()=>{n.revokeObjectURL(e)},100)}else navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob(r,a)}_createTypeFormatter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!n.EXPORT_TYPES[e])throw new Error(`Export format type "${e}" is not supported.`);return(0,n.default)(e,new r.default(this.hot),t)}_createBlob(e){let t=null;return"undefined"!=typeof Blob&&(t=new Blob([e.export()],{type:`${e.options.mimeType};charset=${e.options.encoding}`})),t}}t.ExportFile=h},32061:(e,t,o)=>{"use strict";t.__esModule=!0,t.installFocusDetector=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=e.rootElement,s=r(e),i=r(e);return s.addEventListener("focus",()=>null==t?void 0:t.onFocusFromTop()),i.addEventListener("focus",()=>null==t?void 0:t.onFocusFromBottom()),o.before(s),o.after(i),{activate(){e._registerTimeout(()=>{s.tabIndex=0,i.tabIndex=0},10)},deactivate(){e._registerTimeout(()=>{s.tabIndex=-1,i.tabIndex=-1},10)}}};var s=o(43561),i=o(38856);function r(e){const t=e.rootDocument.createElement("input");return t.type="text",t.name="__htFocusCatcher",t.classList.add("htFocusCatcher"),e.getSettings().ariaTags&&(0,s.setAttribute)(t,[(0,i.A11Y_LABEL)("Focus catcher")]),t}},32071:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639);var i=s(o(53726)),r=o(3408),n=o(67871),l=o(48765),a=o(7729),h=o(32815),c=s(o(87505)),u=o(18051),d=o(64254),g=o(43561),f=o(30581),p=o(6964),m=o(50929),w=o(87203),C=s(o(44266)),v=o(5703),y=o(38856);function E(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function S(e,t,o){return e.set(b(e,t),o),o}function R(e,t){return e.get(b(e,t))}function b(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var _=new WeakMap,T=new WeakMap,M=new WeakMap;class I{get tableBorderWidth(){return void 0===R(M,this)&&this.hotMenu&&S(M,this,parseInt(this.hotMenu.rootWindow.getComputedStyle(this.hotMenu.view._wt.wtTable.TABLE).borderWidth,10)),R(M,this)}constructor(e,t){var o=this;(0,i.default)(this,"hot",void 0),(0,i.default)(this,"options",void 0),(0,i.default)(this,"eventManager",new c.default(this)),(0,i.default)(this,"container",void 0),(0,i.default)(this,"positioner",void 0),(0,i.default)(this,"hotMenu",null),(0,i.default)(this,"hotSubMenus",{}),(0,i.default)(this,"parentMenu",void 0),(0,i.default)(this,"menuItems",null),(0,i.default)(this,"origOutsideClickDeselects",null),E(this,_,void 0),E(this,T,void 0),E(this,M,void 0),this.hot=e,this.options=t||{parent:null,name:null,className:"",keepInViewport:!0,standalone:!1,minWidth:215,container:this.hot.rootPortalElement},this.container=this.createContainer(this.options.name),this.positioner=new r.Positioner(this.options.keepInViewport),this.parentMenu=this.options.parent||null,this.registerEvents(),this.isSubMenu()&&this.addLocalHook("afterSelectionChange",function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return o.parentMenu.runLocalHooks("afterSelectionChange",...t)}),this.hot.addHook("afterSetTheme",(e,t)=>{this.options.container!==this.hot.rootPortalElement&&((0,g.removeClass)(this.options.container,/ht-theme-.*/g),(0,g.addClass)(this.options.container,e)),t||this.close()})}registerEvents(){let e=this.hot.rootWindow;for(;e;)this.eventManager.addEventListener(e.document,"mousedown",e=>this.onDocumentMouseDown(e)),this.eventManager.addEventListener(e.document,"touchstart",e=>this.onDocumentMouseDown(e)),this.eventManager.addEventListener(e.document,"contextmenu",e=>this.onDocumentContextMenu(e)),e=(0,g.getParentWindow)(e)}setMenuItems(e){this.menuItems=e}getNavigator(){return R(_,this)}getKeyboardShortcutsCtrl(){return R(T,this)}getSelectedItem(){return this.hasSelectedItem()?this.hotMenu.getSourceDataAtRow(this.hotMenu.getSelectedLast()[0]):null}hasSelectedItem(){return Array.isArray(this.hotMenu.getSelectedLast())}isSubMenu(){return null!==this.parentMenu}open(){this.runLocalHooks("beforeOpen"),this.container.removeAttribute("style"),this.container.style.display="block";const e=(0,p.debounce)(e=>this.openSubMenu(e),300),t=this.options.minWidth||215;let o=!1,s=(0,u.arrayFilter)(this.menuItems,e=>(e.key===a.NO_ITEMS&&(o=!0),(0,h.isItemHidden)(e,this.hot)));if(s.length<1&&!o)s.push((0,a.predefinedItems)()[a.NO_ITEMS]);else if(0===s.length)return;s=(0,h.filterSeparators)(s,a.SEPARATOR);let i=!1;const r={data:s,colHeaders:!1,autoColumnSize:!0,autoWrapRow:!1,modifyColWidth:e=>(0,m.isDefined)(e)&&e<t?t:e,autoRowSize:!1,readOnly:!0,editor:!1,copyPaste:!1,hiddenRows:!0,maxCols:1,columns:[{data:"name",renderer:(0,v.createMenuItemRenderer)(this.hot)}],renderAllRows:!0,fragmentSelection:!1,outsideClickDeselects:!1,disableVisualSelection:"area",layoutDirection:this.hot.isRtl()?"rtl":"ltr",ariaTags:!1,themeName:this.hot.getCurrentThemeName(),beforeRefreshDimensions:()=>!1,beforeOnCellMouseOver:(e,t)=>{this.hotMenu.stylesHandler.isClassicTheme()?R(_,this).setCurrentPage(t.row):R(_,this).setPageCursorAt(t.row)},afterOnCellMouseOver:(t,o)=>{this.isAllSubMenusClosed()?e(o.row):this.openSubMenu(o.row)},afterOnCellContextMenu:e=>{e.preventDefault(),(0,d.isWindowsOS)()&&i&&this.hasSelectedItem()&&this.close(!0)},afterSelection:(e,t,o,s,i)=>{this.hotMenu.view.isMouseDown()&&(i.value=!0),this.runLocalHooks("afterSelectionChange",this.getSelectedItem())},beforeOnCellMouseUp:e=>{this.hasSelectedItem()&&(i=!this.isCommandPassive(this.getSelectedItem()),this.executeCommand(e))},afterOnCellMouseUp:e=>{(0,d.isWindowsOS)()&&(0,f.isRightClick)(e)||!i||!this.hasSelectedItem()||((0,d.isMobileBrowser)()||(0,d.isIpadOS)()?this.hot._registerTimeout(()=>this.close(!0),325):this.close(!0))},afterUnlisten:()=>{!this.hasSelectedItem()&&this.isOpened()&&this.hotMenu.listen()}};this.origOutsideClickDeselects=this.hot.getSettings().outsideClickDeselects,this.hot.getSettings().outsideClickDeselects=!1,this.hotMenu=new this.hot.constructor(this.container,r),this.hotMenu.addHook("afterInit",()=>this.onAfterInit()),this.hotMenu.init(),S(_,this,(0,n.createMenuNavigator)(this.hotMenu)),S(T,this,(0,l.createKeyboardShortcutsCtrl)(this)),R(T,this).listen(),this.focus(),this.isSubMenu()&&this.addLocalHook("afterOpen",()=>this.parentMenu.runLocalHooks("afterSubmenuOpen",this)),this.runLocalHooks("afterOpen",this)}close(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isOpened())if(e&&this.isSubMenu())this.parentMenu.close();else if(R(_,this).clear(),this.closeAllSubMenus(),this.container.style.display="none",this.hotMenu.destroy(),this.hotMenu=null,this.hot.getSettings().outsideClickDeselects=this.origOutsideClickDeselects,this.runLocalHooks("afterClose"),this.isSubMenu()){if(this.hot.getSettings().ariaTags){const e=this.parentMenu.hotMenu.getSelectedLast();if(e){const t=this.parentMenu.hotMenu.getCell(e[0],0);(0,g.setAttribute)(t,[(0,y.A11Y_EXPANDED)(!1)])}}this.parentMenu.hotMenu.listen()}}openSubMenu(e){if(!this.hotMenu)return!1;const t=this.hotMenu.getCell(e,0);if(this.closeAllSubMenus(),!t||!(0,h.hasSubMenu)(t))return!1;const o=this.hotMenu.getSourceDataAtRow(e),s=new I(this.hot,{parent:this,name:o.name,className:this.options.className,keepInViewport:!0,container:this.options.container});return s.setMenuItems(o.submenu.items),s.open(),s.setPosition(t.getBoundingClientRect()),this.hotSubMenus[o.key]=s,this.hot.getSettings().ariaTags&&(0,g.setAttribute)(t,[(0,y.A11Y_EXPANDED)(!0)]),s}closeSubMenu(e){const t=this.hotMenu.getSourceDataAtRow(e),o=this.hotSubMenus[t.key];if(o){o.destroy(),delete this.hotSubMenus[t.key];const s=this.hotMenu.getCell(e,0);this.hot.getSettings().ariaTags&&(0,g.setAttribute)(s,[(0,y.A11Y_EXPANDED)(!1)])}}closeAllSubMenus(){(0,u.arrayEach)(this.hotMenu.getData(),(e,t)=>this.closeSubMenu(t))}isAllSubMenusClosed(){return 0===Object.keys(this.hotSubMenus).length}focus(){this.isOpened()&&(this.hotMenu.rootElement.focus({preventScroll:!0}),this.getKeyboardShortcutsCtrl().listen(),this.hotMenu.listen())}destroy(){const e=this.container.parentNode;this.clearLocalHooks(),this.close(),this.parentMenu=null,this.eventManager.destroy(),e&&e.removeChild(this.container)}isOpened(){return null!==this.hotMenu}executeCommand(e){if(!this.isOpened()||!this.hasSelectedItem())return;const t=this.getSelectedItem();if(this.runLocalHooks("select",t,e),this.isCommandPassive(t))return;const o=this.hot.getSelectedRange(),s=o?(0,h.normalizeSelection)(o):[];this.runLocalHooks("executeCommand",t.key,s,e),this.isSubMenu()&&this.parentMenu.runLocalHooks("executeCommand",t.key,s,e)}isCommandPassive(e){return!1===e.isCommand||(0,h.isItemSeparator)(e)||(0,h.isItemDisabled)(e,this.hot)||(0,h.isItemSubMenu)(e)}setOffset(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.positioner.setOffset(e,t)}setPosition(e){this.isSubMenu()&&this.positioner.setParentElement(this.parentMenu.container),this.positioner.setElement(this.container).updatePosition(e)}updateMenuDimensions(){const{wtTable:e}=this.hotMenu.view._wt,t=this.hotMenu.getSettings().data,o=e.hider.style,s=e.holder.style,i=parseInt(o.width,10),r=(0,u.arrayReduce)(t,(e,t,o)=>{const s=this.hotMenu.getCell(o,0)?(0,g.outerHeight)(this.hotMenu.getCell(o,0)):0;return e+(t.name===a.SEPARATOR?1:s)},0);this.hotMenu.stylesHandler.isClassicTheme()?(s.width=`${i+3}px`,s.height=`${r+3}px`):(s.width=`${i}px`,s.height=`${r}px`),o.height=s.height}createContainer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=this.options.container.ownerDocument;let o,s=e;return s&&((0,p.isFunction)(s)&&(s=s.call(this.hot),s=null===s||(0,m.isUndefined)(s)?"":s.toString()),s=s.replace(/[^A-Za-z0-9]/g,"_"),s=`${this.options.className}Sub_${s}`,o=t.querySelector(`.${this.options.className}.${s}`)),o||(o=t.createElement("div"),(0,g.addClass)(o,`htMenu handsontable ${this.options.className}`),s&&(0,g.addClass)(o,s),this.options.container.appendChild(o)),o}onAfterInit(){this.updateMenuDimensions(),this.hot.getSettings().ariaTags&&(0,g.setAttribute)(this.hotMenu.rootElement,[(0,y.A11Y_MENU)(),(0,y.A11Y_TABINDEX)(-1)])}onDocumentMouseDown(e){this.isOpened()&&(this.options.standalone&&this.hotMenu&&!(0,g.isChildOf)(e.target,this.hotMenu.rootElement)?this.close(!0):!this.isAllSubMenusClosed()&&!this.isSubMenu()||(0,g.isChildOf)(e.target,".htMenu")||this.close(!0))}onDocumentContextMenu(e){this.isOpened()&&(0,g.hasClass)(e.target,"htCore")&&(0,g.isChildOf)(e.target,this.hotMenu.rootElement)&&e.preventDefault()}}t.Menu=I,(0,w.mixin)(I,C.default)},32654:(e,t,o)=>{"use strict";t.__esModule=!0,o(73741),o(90795);var s=o(43561),i=o(87203),r=o(60987);t.default=class{constructor(e,t,o,s,i){this.dataAccessObject=e,this.wot=e.wot,this.instance=this.wot,this.domBindings=t,this.wtSettings=o,this.wtTable=i,this.oversizedRows=[],this.oversizedColumnHeaders=[],this.hasOversizedColumnHeadersMarked={},this.clientHeight=0,this.rowHeaderWidth=NaN,this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,this.rowsCalculatorTypes=new Map([["rendered",()=>this.wtSettings.getSetting("renderAllRows")?new r.RenderedAllRowsCalculationType:new r.RenderedRowsCalculationType],["fullyVisible",()=>new r.FullyVisibleRowsCalculationType],["partiallyVisible",()=>new r.PartiallyVisibleRowsCalculationType]]),this.columnsCalculatorTypes=new Map([["rendered",()=>this.wtSettings.getSetting("renderAllColumns")?new r.RenderedAllColumnsCalculationType:new r.RenderedColumnsCalculationType],["fullyVisible",()=>new r.FullyVisibleColumnsCalculationType],["partiallyVisible",()=>new r.PartiallyVisibleColumnsCalculationType]]),this.eventManager=s,this.eventManager.addEventListener(this.domBindings.rootWindow,"resize",()=>{this.clientHeight=this.getWorkspaceHeight()})}getWorkspaceHeight(){const e=this.domBindings.rootDocument,t=this.dataAccessObject.topOverlayTrimmingContainer;let o=0;if(t===this.domBindings.rootWindow)o=e.documentElement.clientHeight;else{o=(0,s.outerHeight)(t)>0&&t.clientHeight>0?t.clientHeight:1/0}return o}getViewportHeight(){let e=this.getWorkspaceHeight();if(e===1/0)return e;const t=this.getColumnHeaderHeight();return t>0&&(e-=t),e}getWorkspaceWidth(){const{rootDocument:e,rootWindow:t}=this.domBindings,o=this.dataAccessObject.inlineStartOverlayTrimmingContainer;let s;if(o===t){const t=this.wtSettings.getSetting("totalColumns");s=this.wtTable.holder.offsetWidth,this.getRowHeaderWidth()+this.sumColumnWidths(0,t)>s&&(s=e.documentElement.clientWidth)}else s=o.clientWidth;return s}getViewportWidth(){const e=this.getWorkspaceWidth();if(e===1/0)return e;const t=this.getRowHeaderWidth();return t>0?e-t:e}hasVerticalScroll(){if(this.isVerticallyScrollableByWindow()){const e=this.domBindings.rootDocument.documentElement;return e.scrollHeight>e.clientHeight}const{holder:e,hider:t}=this.wtTable,o=e.clientHeight,s=t.offsetHeight;return o<s||s>this.getWorkspaceHeight()}hasHorizontalScroll(){if(this.isVerticallyScrollableByWindow()){const e=this.domBindings.rootDocument.documentElement;return e.scrollWidth>e.clientWidth}const{holder:e,hider:t}=this.wtTable,o=e.clientWidth,s=t.offsetWidth;return o<s||s>this.getWorkspaceWidth()}isVerticallyScrollableByWindow(){return this.dataAccessObject.topOverlayTrimmingContainer===this.domBindings.rootWindow}isHorizontallyScrollableByWindow(){return this.dataAccessObject.inlineStartOverlayTrimmingContainer===this.domBindings.rootWindow}sumColumnWidths(e,t){let o=0,s=e;for(;s<t;)o+=this.wtTable.getColumnWidth(s),s+=1;return o}getWorkspaceOffset(){return(0,s.offset)(this.wtTable.holder)}getColumnHeaderHeight(){return this.wtSettings.getSetting("columnHeaders").length?isNaN(this.columnHeaderHeight)&&(this.columnHeaderHeight=(0,s.outerHeight)(this.wtTable.THEAD)):this.columnHeaderHeight=0,this.columnHeaderHeight}getRowHeaderWidth(){const e=this.wtSettings.getSetting("rowHeaderWidth"),t=this.wtSettings.getSetting("rowHeaders");if(e){this.rowHeaderWidth=0;for(let o=0,s=t.length;o<s;o++)this.rowHeaderWidth+=e[o]||e}if(isNaN(this.rowHeaderWidth))if(t.length){let e=this.wtTable.TABLE.querySelector("TH");this.rowHeaderWidth=0;for(let o=0,i=t.length;o<i;o++)e?(this.rowHeaderWidth+=(0,s.outerWidth)(e),e=e.nextSibling):this.rowHeaderWidth+=50}else this.rowHeaderWidth=0;return this.rowHeaderWidth=this.wtSettings.getSetting("onModifyRowHeaderWidth",this.rowHeaderWidth)||this.rowHeaderWidth,this.rowHeaderWidth}createRowsCalculator(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["rendered","fullyVisible","partiallyVisible"];const{wtSettings:t,wtTable:o}=this;let i,n,l=this.getViewportHeight();this.rowHeaderWidth=NaN;let a=this.dataAccessObject.topScrollPosition-this.dataAccessObject.topParentOffset;const h=t.getSetting("fixedRowsTop"),c=t.getSetting("fixedRowsBottom"),u=t.getSetting("totalRows");return h&&a>=0&&(n=this.dataAccessObject.topOverlay.sumCellSizes(0,h),a+=n,l-=n),c&&this.dataAccessObject.bottomOverlay.clone&&(n=this.dataAccessObject.bottomOverlay.sumCellSizes(u-c,u),l-=n),i=o.holder.clientHeight===o.holder.offsetHeight?0:(0,s.getScrollbarWidth)(this.domBindings.rootDocument),new r.ViewportRowsCalculator({calculationTypes:e.map(e=>[e,this.rowsCalculatorTypes.get(e)()]),viewportHeight:l,scrollOffset:a,totalRows:t.getSetting("totalRows"),defaultRowHeight:t.getSetting("stylesHandler").getDefaultRowHeight(),rowHeightFn:e=>o.getRowHeight(e),overrideFn:t.getSettingPure("viewportRowCalculatorOverride"),horizontalScrollbarHeight:i})}createColumnsCalculator(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["rendered","fullyVisible","partiallyVisible"];const{wtSettings:t,wtTable:o}=this;let i=this.getViewportWidth(),n=Math.abs(this.dataAccessObject.inlineStartScrollPosition)-this.dataAccessObject.inlineStartParentOffset;this.columnHeaderHeight=NaN;const l=t.getSetting("fixedColumnsStart");if(l&&n>=0){const e=this.dataAccessObject.inlineStartOverlay.sumCellSizes(0,l);n+=e,i-=e}return o.holder.clientWidth!==o.holder.offsetWidth&&(i-=(0,s.getScrollbarWidth)(this.domBindings.rootDocument)),new r.ViewportColumnsCalculator({calculationTypes:e.map(e=>[e,this.columnsCalculatorTypes.get(e)()]),viewportWidth:i,scrollOffset:n,totalColumns:t.getSetting("totalColumns"),columnWidthFn:e=>o.getColumnWidth(e),overrideFn:t.getSettingPure("viewportColumnCalculatorOverride"),inlineStartOffset:this.dataAccessObject.inlineStartParentOffset})}createCalculators(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{wtSettings:t}=this,o=this.createRowsCalculator(),s=this.createColumnsCalculator();if(e&&!t.getSetting("renderAllRows")){const t=o.getResultsFor("fullyVisible");e=this.areAllProposedVisibleRowsAlreadyRendered(t)}if(e&&!t.getSetting("renderAllColumns")){const t=s.getResultsFor("fullyVisible");e=this.areAllProposedVisibleColumnsAlreadyRendered(t)}return e||(this.rowsRenderCalculator=o.getResultsFor("rendered"),this.columnsRenderCalculator=s.getResultsFor("rendered")),this.rowsVisibleCalculator=o.getResultsFor("fullyVisible"),this.columnsVisibleCalculator=s.getResultsFor("fullyVisible"),this.rowsPartiallyVisibleCalculator=o.getResultsFor("partiallyVisible"),this.columnsPartiallyVisibleCalculator=s.getResultsFor("partiallyVisible"),e}createVisibleCalculators(){const e=this.createRowsCalculator(["fullyVisible","partiallyVisible"]),t=this.createColumnsCalculator(["fullyVisible","partiallyVisible"]);this.rowsVisibleCalculator=e.getResultsFor("fullyVisible"),this.columnsVisibleCalculator=t.getResultsFor("fullyVisible"),this.rowsPartiallyVisibleCalculator=e.getResultsFor("partiallyVisible"),this.columnsPartiallyVisibleCalculator=t.getResultsFor("partiallyVisible")}areAllProposedVisibleRowsAlreadyRendered(e){if(!this.rowsVisibleCalculator)return!1;let{startRow:t,endRow:o}=e;if(null===t&&null===o){if(!e.isVisibleInTrimmingContainer)return!0;t=this.rowsPartiallyVisibleCalculator.startRow,o=this.rowsPartiallyVisibleCalculator.endRow}const{startRow:s,endRow:i,rowStartOffset:r,rowEndOffset:n}=this.rowsRenderCalculator,l=this.wtSettings.getSetting("totalRows")-1,a=this.wtSettings.getSetting("viewportRowRenderingThreshold");return Number.isInteger(a)&&a>0?(t=Math.max(0,t-Math.min(r,a)),o=Math.min(l,o+Math.min(n,a))):"auto"===a&&(t=Math.max(0,t-Math.ceil(r/2)),o=Math.min(l,o+Math.ceil(n/2))),!(t<s||t===s&&t>0)&&!(o>i||o===i&&o<l)}areAllProposedVisibleColumnsAlreadyRendered(e){if(!this.columnsVisibleCalculator)return!1;let{startColumn:t,endColumn:o}=e;if(null===t&&null===o){if(!e.isVisibleInTrimmingContainer)return!0;t=this.columnsPartiallyVisibleCalculator.startColumn,o=this.columnsPartiallyVisibleCalculator.endColumn}const{startColumn:s,endColumn:i,columnStartOffset:r,columnEndOffset:n}=this.columnsRenderCalculator,l=this.wtSettings.getSetting("totalColumns")-1,a=this.wtSettings.getSetting("viewportColumnRenderingThreshold");return Number.isInteger(a)&&a>0?(t=Math.max(0,t-Math.min(r,a)),o=Math.min(l,o+Math.min(n,a))):"auto"===a&&(t=Math.max(0,t-Math.ceil(r/2)),o=Math.min(l,o+Math.ceil(n/2))),!(t<s||t===s&&t>0)&&!(o>i||o===i&&o<l)}resetHasOversizedColumnHeadersMarked(){(0,i.objectEach)(this.hasOversizedColumnHeadersMarked,(e,t,o)=>{o[t]=void 0})}}},32703:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:i,name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_UNDO)},callback(){this.getPlugin("undoRedo").undo()},hidden(){const e=this.getPlugin("undoRedo");return!e||!e.isEnabled()},disabled(){return!this.getPlugin("undoRedo").isUndoAvailable()}}};var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(30432));const i=t.KEY="undo"},32757:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"borders:top",name(){let e=this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_BORDERS_TOP);return(0,i.checkSelectionBorders)(this,"top")&&(e=(0,i.markSelected)(e)),e},callback(t,o){const s=(0,i.checkSelectionBorders)(this,"top");e.prepareBorder(o,"top",s)}}};var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(30432)),i=o(52763)},32815:(e,t,o)=>{"use strict";t.__esModule=!0,t.filterSeparators=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.SEPARATOR,o=e.slice(0);return o=l(o,t),o=function(e,t){let o=e.slice(0);return o.reverse(),o=l(o,t),o.reverse(),o}(o,t),o=function(e){const t=[];return(0,s.arrayEach)(e,(e,o)=>{o>0?t[t.length-1].name!==e.name&&t.push(e):t.push(e)}),t}(o),o},t.hasSubMenu=function(e){return(0,r.hasClass)(e,"htSubmenu")},t.isDisabled=function(e){return(0,r.hasClass)(e,"htDisabled")},t.isItemCheckable=function(e){return!0===e.checkable},t.isItemDisabled=function(e,t){return!0===e.disabled||"function"==typeof e.disabled&&!0===e.disabled.call(t)},t.isItemHidden=function(e,t){return!e.hidden||!("function"==typeof e.hidden&&e.hidden.call(t))},t.isItemSelectionDisabled=function(e){return(0,i.hasOwnProperty)(e,"disableSelection")},t.isItemSeparator=function(e){return new RegExp(n.SEPARATOR,"i").test(e.name)},t.isItemSubMenu=function(e){return(0,i.hasOwnProperty)(e,"submenu")},t.isSelectionDisabled=function(e){return(0,r.hasClass)(e,"htSelectionDisabled")},t.isSeparator=function(e){return(0,r.hasClass)(e,"htSeparator")},t.normalizeSelection=function(e){return(0,s.arrayMap)(e,e=>({start:e.getTopStartCorner(),end:e.getBottomEndCorner()}))},o(85639);var s=o(18051),i=o(87203),r=o(43561),n=o(7729);function l(e,t){const o=e.slice(0);for(let e=0;e<o.length&&o[e].name===t;)o.shift();return o}},32821:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(44720);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.HiddenRows=s.HiddenRows},32883:(e,t)=>{"use strict";t.__esModule=!0,t.hasValidParameter=function(e){return e===s},t.isRootInstance=function(e){return o.has(e)},t.registerAsRootInstance=function(e){o.set(e,!0)};const o=t.holder=new WeakMap,s=t.rootInstanceSymbol=Symbol("rootInstance")},32978:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.getDefaultLanguageDictionary=function(){return c.default},t.getLanguageDictionary=C,t.getLanguagesDictionaries=function(){return m()},t.getTranslatedPhrase=function(e,t,o){const s=C(e);if(null===s)return null;const i=s[t];if((0,n.isUndefined)(i))return null;const l=function(e,t){let o=e;return(0,r.arrayEach)((0,h.getPhraseFormatters)(),s=>{o=s(e,t)}),o}(i,o);if(Array.isArray(l))return l[0];return l},t.getValidLanguageCode=function(e){let t=(0,l.normalizeLanguageCode)(e);v(t)||(t=d,(0,l.warnUserAboutLanguageRegistration)(e));return t},t.hasLanguageDictionary=v,t.registerLanguageDictionary=w;var i=o(87203),r=o(18051),n=o(50929),l=o(50484),a=o(37363),h=o(76e3),c=s(o(79335)),u=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(30432));t.dictionaryKeys=u;const d=t.DEFAULT_LANGUAGE_CODE=c.default.languageCode,{register:g,getItem:f,hasItem:p,getValues:m}=(0,a.staticRegister)("languagesDictionaries");function w(e,t){let o=e,s=t;return(0,i.isObject)(e)&&(s=e,o=s.languageCode),function(e,t){e!==d&&(0,l.extendNotExistingKeys)(t,f(d))}(o,s),g(o,(0,i.deepClone)(s)),(0,i.deepClone)(s)}function C(e){return v(e)?(0,i.deepClone)(f(e)):null}function v(e){return p(e)}w(c.default)},32984:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=l;var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(30432)),i=o(50929),r=o(37396);const n=t.CONDITION_NAME="contains";function l(e,t){let[o]=t;return(0,i.stringify)(e.value).toLocaleLowerCase(e.meta.locale).indexOf((0,i.stringify)(o))>=0}(0,r.registerCondition)(n,l,{name:s.FILTERS_CONDITIONS_CONTAINS,inputsCount:1,showOperators:!0})},33005:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostLeft",callback(e){const{selection:t,columnIndexMapper:o}=e,s=e.getSelectedRangeLast().highlight.row;let i=o.getNearestNotHiddenIndex(...e.isRtl()?[e.countCols()-1,-1]:[0,1]);null===i&&(i=e.isRtl()?-1:-e.countRowHeaders()),t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(s,i)),t.markEndSource()}}},33084:(e,t,o)=>{var s=o(12013).default;e.exports=function(e,t){if("object"!=s(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var i=o.call(e,t||"default");if("object"!=s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},33590:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443);var i=s(o(53726)),r=o(44233),n=o(18051),l=o(87203),a=o(80504),h=o(433),c=o(43561),u=o(81720),d=o(65342),g=o(8829),f=o(7729),p=o(38856);function m(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function w(e,t,o){return e.set(C(e,t),o),o}function C(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}g.Hooks.getSingleton().register("afterDropdownMenuDefaultOptions"),g.Hooks.getSingleton().register("beforeDropdownMenuShow"),g.Hooks.getSingleton().register("afterDropdownMenuShow"),g.Hooks.getSingleton().register("afterDropdownMenuHide"),g.Hooks.getSingleton().register("afterDropdownMenuExecute");const v=t.PLUGIN_KEY="dropdownMenu",y=t.PLUGIN_PRIORITY=230,E="changeType",S=v;var R=new WeakMap,b=new WeakSet;class _ extends r.BasePlugin{static get PLUGIN_KEY(){return v}static get PLUGIN_PRIORITY(){return y}static get PLUGIN_DEPS(){return["plugin:AutoColumnSize"]}static get DEFAULT_ITEMS(){return[f.COLUMN_LEFT,f.COLUMN_RIGHT,f.SEPARATOR,f.REMOVE_COLUMN,f.SEPARATOR,f.CLEAR_COLUMN,f.SEPARATOR,f.READ_ONLY,f.SEPARATOR,f.ALIGNMENT]}constructor(e){var t,o;super(e),m(t=this,o=b),o.add(t),(0,i.default)(this,"commandExecutor",new a.CommandExecutor(this.hot)),(0,i.default)(this,"itemsFactory",null),(0,i.default)(this,"menu",null),function(e,t,o){m(e,t),t.set(e,o)}(this,R,!1),this.hot.addHook("afterGetColHeader",(e,t)=>C(b,this,I).call(this,e,t))}isEnabled(){return this.hot.getSettings()[v]}enablePlugin(){var e=this;if(this.enabled)return;this.itemsFactory=new u.ItemsFactory(this.hot,_.DEFAULT_ITEMS),this.addHook("beforeOnCellMouseDown",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(b,e,P).call(e,...o)}),this.addHook("beforeViewportScrollHorizontally",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(b,e,x).call(e,...o)});const t=this.hot.getSettings()[v],o={items:this.itemsFactory.getItems(t)};this.registerEvents(),"function"==typeof t.callback&&this.commandExecutor.setCommonCallback(t.callback),this.registerShortcuts(),super.enablePlugin(),this.callOnPluginsReady(()=>{this.hot.runHooks("afterDropdownMenuDefaultOptions",o),this.itemsFactory.setPredefinedItems(o.items);const s=this.itemsFactory.getItems(t);this.menu&&this.menu.destroy(),this.menu=new d.Menu(this.hot,{className:"htDropdownMenu",keepInViewport:!0,container:t.uiContainer||this.hot.rootPortalElement}),this.hot.runHooks("beforeDropdownMenuSetItems",s),this.menu.setMenuItems(s),this.menu.addLocalHook("beforeOpen",()=>C(b,this,O).call(this)),this.menu.addLocalHook("afterOpen",()=>C(b,this,N).call(this)),this.menu.addLocalHook("afterSubmenuOpen",e=>C(b,this,A).call(this,e)),this.menu.addLocalHook("afterClose",()=>C(b,this,H).call(this)),this.menu.addLocalHook("executeCommand",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return e.executeCommand.call(e,...o)}),(0,n.arrayEach)(s,e=>this.commandExecutor.registerCommand(e.key,e))})}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.close(),this.menu&&this.menu.destroy(),this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){const e=()=>{const{highlight:e}=this.hot.getSelectedRangeLast();if((e.isHeader()&&-1===e.row||e.isCell())&&e.col>=0){this.hot.selectColumns(e.col,e.col,-1);const{from:t}=this.hot.getSelectedRangeLast(),o=(0,h.getDocumentOffsetByElement)(this.menu.container,this.hot.rootDocument),s=this.hot.getCell(-1,t.col,!0).querySelector(`.${E}`),i=s.getBoundingClientRect();this.open({left:i.left+o.left,top:i.top+s.offsetHeight+o.top},{left:i.width,right:0,above:0,below:3}),this.menu.getNavigator().toFirstItem()}};this.hot.getShortcutManager().getContext("grid").addShortcuts([{keys:[["Shift","Alt","ArrowDown"],["Control/Meta","Enter"]],callback:e,runOnlyIf:()=>{var e;const t=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return t&&this.hot.selection.isCellVisible(t)&&t.isHeader()&&!this.menu.isOpened()},captureCtrl:!0,group:S},{keys:[["Shift","Alt","ArrowDown"]],callback:e,runOnlyIf:()=>{var e;const t=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return t&&this.hot.selection.isCellVisible(t)&&t.isCell()&&!this.menu.isOpened()},group:S}])}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(S)}registerEvents(){this.eventManager.addEventListener(this.hot.rootElement,"click",e=>C(b,this,M).call(this,e))}open(e){var t;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{above:0,below:0,left:0,right:0};null!==(t=this.menu)&&void 0!==t&&t.isOpened()||(this.menu.open(),(0,l.objectEach)(o,(e,t)=>{this.menu.setOffset(t,e)}),this.menu.setPosition(e))}close(){var e;null===(e=this.menu)||void 0===e||e.close()}executeCommand(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),s=1;s<t;s++)o[s-1]=arguments[s];this.commandExecutor.execute(e,...o)}setListening(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.menu.isOpened()&&(e?this.menu.hotMenu.listen():this.menu.hotMenu.unlisten())}destroy(){this.close(),this.menu&&this.menu.destroy(),super.destroy()}}function T(e){e.getKeyboardShortcutsCtrl().addCustomShortcuts([{keys:[["Control/Meta","A"]],callback:()=>!1}])}function M(e){if((0,c.hasClass)(e.target,E)){const t=(0,h.getDocumentOffsetByElement)(this.menu.container,this.hot.rootDocument),o=e.target.getBoundingClientRect();e.stopPropagation(),w(R,this,!1),this.open({left:o.left+t.left,top:o.top+e.target.offsetHeight+t.top},{left:o.width,right:0,above:0,below:3})}}function I(e,t){const o=t.parentNode;if(!o)return;const s=o.parentNode.childNodes,i=Array.prototype.indexOf.call(s,o);if(e<0||i!==s.length-1)return;const r=t.querySelector(`.${E}`);if(this.enabled&&r)return;if(!this.enabled)return void(r&&r.parentNode.removeChild(r));const n=this.hot.rootDocument.createElement("button");n.className=E,n.type="button",n.tabIndex=-1,this.hot.getSettings().ariaTags&&((0,c.setAttribute)(n,[(0,p.A11Y_HIDDEN)(),(0,p.A11Y_LABEL)(" ")]),(0,c.setAttribute)(t,[(0,p.A11Y_HASPOPUP)("menu")])),n.onclick=function(){return!1},t.firstChild.insertBefore(n,t.firstChild.firstChild)}function O(){this.hot.runHooks("beforeDropdownMenuShow",this)}function N(){this.hot.runHooks("afterDropdownMenuShow",this),C(b,this,T).call(this,this.menu)}function A(e){C(b,this,T).call(this,e)}function H(){this.hot.listen(),this.hot.runHooks("afterDropdownMenuHide",this)}function x(e){return o=this,(t=R).get(C(t,o))?null:e;var t,o}function P(e){(0,c.hasClass)(e.target,E)&&w(R,this,!0)}t.DropdownMenu=_,_.SEPARATOR={name:f.SEPARATOR}},33828:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(62705),o(78495),o(43554),o(15247),o(18472),o(89711),o(78675),o(73741),o(7307),o(69326),o(90795),o(89663);var i=s(o(53726)),r=o(44233),n=o(8829),l=s(o(44567)),a=s(o(97559)),h=s(o(1656)),c=s(o(30086)),u=s(o(41209)),d=o(18051),g=o(87203),f=o(88291),p=o(59073),m=o(43561),w=o(64254),C=o(43437),v=o(34990),y=o(48368);function E(e,t,o){S(e,t),t.set(e,o)}function S(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function R(e,t,o){return e.set(_(e,t),o),o}function b(e,t){return e.get(_(e,t))}function _(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}n.Hooks.getSingleton().register("beforeMergeCells"),n.Hooks.getSingleton().register("afterMergeCells"),n.Hooks.getSingleton().register("beforeUnmergeCells"),n.Hooks.getSingleton().register("afterUnmergeCells");const T=t.PLUGIN_KEY="mergeCells",M=t.PLUGIN_PRIORITY=150,I=T;var O=new WeakMap,N=new WeakMap,A=new WeakMap,H=new WeakMap,x=new WeakSet;class P extends r.BasePlugin{constructor(){var e,t;super(...arguments),S(e=this,t=x),t.add(e),(0,i.default)(this,"mergedCellsCollection",null),(0,i.default)(this,"autofillCalculations",null),(0,i.default)(this,"selectionCalculations",null),E(this,O,null),E(this,N,{row:0,col:0}),E(this,A,new C.FocusOrder({mergedCellsGetter:(e,t)=>this.mergedCellsCollection.get(e,t),rowIndexMapper:this.hot.rowIndexMapper,columnIndexMapper:this.hot.columnIndexMapper})),E(this,H,(0,v.createMergeCellRenderer)(this))}static get PLUGIN_KEY(){return T}static get PLUGIN_PRIORITY(){return M}static get DEFAULT_SETTINGS(){return{[r.defaultMainSettingSymbol]:"cells",virtualized:!1,cells:[]}}isEnabled(){return!!this.hot.getSettings()[T]}enablePlugin(){var e=this;this.enabled||(this.mergedCellsCollection=new l.default(this),this.autofillCalculations=new h.default(this),this.selectionCalculations=new c.default(this),this.addHook("afterInit",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,k).call(e,...o)}),this.addHook("modifyTransformFocus",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,L).call(e,...o)}),this.addHook("modifyTransformStart",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,V).call(e,...o)}),this.addHook("modifyTransformEnd",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,W).call(e,...o)}),this.addHook("beforeSelectionHighlightSet",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,F).call(e,...o)}),this.addHook("beforeSetRangeStart",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,Y).call(e,...o)}),this.addHook("beforeSetRangeStartOnly",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,Y).call(e,...o)}),this.addHook("beforeSelectionFocusSet",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,j).call(e,...o)}),this.addHook("afterSelectionFocusSet",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,z).call(e,...o)}),this.addHook("afterSelectionEnd",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,G).call(e,...o)}),this.addHook("modifyGetCellCoords",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,B).call(e,...o)}),this.addHook("modifyGetCoordsElement",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,B).call(e,...o)}),this.addHook("afterIsMultipleSelection",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,D).call(e,...o)}),this.addHook("afterRenderer",function(){return b(H,e).after(...arguments)}),this.addHook("afterContextMenuDefaultOptions",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,U).call(e,...o)}),this.addHook("afterGetCellMeta",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,$).call(e,...o)}),this.addHook("afterViewportRowCalculatorOverride",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,K).call(e,...o)}),this.addHook("afterViewportColumnCalculatorOverride",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,X).call(e,...o)}),this.addHook("modifyAutofillRange",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,q).call(e,...o)}),this.addHook("afterCreateCol",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,Q).call(e,...o)}),this.addHook("afterRemoveCol",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,J).call(e,...o)}),this.addHook("afterCreateRow",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,Z).call(e,...o)}),this.addHook("afterRemoveRow",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,ee).call(e,...o)}),this.addHook("afterChange",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,te).call(e,...o)}),this.addHook("beforeDrawBorders",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,oe).call(e,...o)}),this.addHook("afterDrawSelection",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,se).call(e,...o)}),this.addHook("beforeRemoveCellClassNames",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,ie).call(e,...o)}),this.addHook("beforeBeginEditing",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,re).call(e,...o)}),this.addHook("modifyRowHeightByOverlayName",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return _(x,e,ne).call(e,...o)}),this.addHook("beforeUndoStackChange",(e,t)=>{if("MergeCells"===t)return!1}),this.registerShortcuts(),super.enablePlugin())}disablePlugin(){this.clearCollections(),this.unregisterShortcuts(),this.hot.render(),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.generateFromSettings(),super.updatePlugin()}ifChromeForceRepaint(){if(!(0,w.isChrome)())return;const e=[];let t=[];this.mergedCellsCollection.mergedCells.forEach(e=>{const{row:o,rowspan:s}=e;for(let e=o+1;e<o+s;e++)t.push(e)}),t=[...new Set(t)],t.forEach(t=>{const o=this.hot.rowIndexMapper.getRenderableFromVisualIndex(t);this.hot.view._wt.wtOverlays.getOverlays(!0).map(e=>"master"===(null==e?void 0:e.name)?e:e.clone.wtTable).forEach(t=>{const s=t.getRow(o);s&&(s.style.background=(0,m.getStyle)(s,"backgroundColor").replace(")",", 0.99)"),e.push(s))})}),this.hot._registerTimeout(()=>{e.forEach(e=>{var t;e.style.background=null===(t=(0,m.getStyle)(e,"backgroundColor"))||void 0===t?void 0:t.replace(", 0.99)",")")})},1)}validateSetting(e){return!!e&&(a.default.containsNegativeValues(e)?((0,f.warn)(a.default.NEGATIVE_VALUES_WARNING(e)),!1):a.default.isOutOfBounds(e,this.hot.countRows(),this.hot.countCols())?((0,f.warn)(a.default.IS_OUT_OF_BOUNDS_WARNING(e)),!1):a.default.isSingleCell(e)?((0,f.warn)(a.default.IS_SINGLE_CELL(e)),!1):!a.default.containsZeroSpan(e)||((0,f.warn)(a.default.ZERO_SPAN_WARNING(e)),!1))}generateFromSettings(){const e=this.getSetting("cells").filter(e=>this.validateSetting(e)),t=this.mergedCellsCollection.filterOverlappingMergeCells(e),o=[];t.forEach(e=>{const{row:t,col:s,rowspan:i,colspan:r}=e,n=this.hot._createCellCoords(t,s),l=this.hot._createCellCoords(t+i-1,s+r-1),a=this.hot._createCellRange(n,n,l);this.mergeRange(a,!0,!0);for(let e=t;e<t+i;e++)for(let i=s;i<s+r;i++)e===t&&i===s||o.push([e,i,null])}),0!==o.length&&this.hot.setDataAtCell(o,void 0,void 0,this.pluginName)}clearCollections(){this.mergedCellsCollection.clear()}canMergeRange(e){return!!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])||this.validateSetting(e)}mergeSelection(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeLast();if(!e)return;e.setDirection(this.hot.isRtl()?"NE-SW":"NW-SE");const{from:t,to:o}=e;this.unmergeRange(e,!0),this.mergeRange(e),this.hot.selectCell(t.row,t.col,o.row,o.col,!1)}unmergeSelection(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeLast();if(!e)return;const{from:t,to:o}=e;this.unmergeRange(e,!0),this.hot.selectCell(t.row,t.col,o.row,o.col,!1)}mergeRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const s=e.getTopStartCorner(),i=e.getBottomEndCorner(),r={row:s.row,col:s.col,rowspan:i.row-s.row+1,colspan:i.col-s.col+1},n=[];let l=null;if(!this.canMergeRange(r,t))return!1;this.hot.runHooks("beforeMergeCells",e,t),(0,p.rangeEach)(0,r.rowspan-1,e=>{(0,p.rangeEach)(0,r.colspan-1,t=>{let o=null;n[e]||(n[e]=[]),0===e&&0===t?o=this.hot.getSourceDataAtCell(this.hot.toPhysicalRow(r.row),this.hot.toPhysicalColumn(r.col)):this.hot.setCellMeta(r.row+e,r.col+t,"hidden",!0),n[e][t]=o})}),this.hot.setCellMeta(r.row,r.col,"spanned",!0);return!this.mergedCellsCollection.add(r,t)||(o?l=[r.row,r.col,n]:this.hot.populateFromArray(r.row,r.col,n,void 0,void 0,this.pluginName),t||this.ifChromeForceRepaint(),this.hot.runHooks("afterMergeCells",e,r,t),l)}unmergeRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=this.mergedCellsCollection.getWithinRange(e);0!==o.length&&(this.hot.runHooks("beforeUnmergeCells",e,t),(0,d.arrayEach)(o,e=>{this.mergedCellsCollection.remove(e.row,e.col),(0,p.rangeEach)(0,e.rowspan-1,t=>{(0,p.rangeEach)(0,e.colspan-1,o=>{this.hot.removeCellMeta(e.row+t,e.col+o,"hidden"),this.hot.removeCellMeta(e.row+t,e.col+o,"copyable")})}),this.hot.removeCellMeta(e.row,e.col,"spanned")}),this.hot.runHooks("afterUnmergeCells",e,t),this.hot.render())}toggleMerge(e){const{from:t,to:o}=e.clone().normalize(),s=this.mergedCellsCollection.get(t.row,t.col);s.row===t.row&&s.col===t.col&&s.row+s.rowspan-1===o.row&&s.col+s.colspan-1===o.col?this.unmergeRange(e):this.mergeSelection(e)}merge(e,t,o,s){const i=this.hot._createCellCoords(e,t),r=this.hot._createCellCoords(o,s);this.mergeRange(this.hot._createCellRange(i,i,r))}unmerge(e,t,o,s){const i=this.hot._createCellCoords(e,t),r=this.hot._createCellCoords(o,s);this.unmergeRange(this.hot._createCellRange(i,i,r))}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Control","m"]],callback:()=>{const e=this.hot.getSelectedRangeLast();e&&!e.isSingleHeader()&&(this.toggleMerge(e),this.hot.render())},runOnlyIf:e=>!e.altKey,group:I})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(I)}modifyViewportRowStart(e,t){const o=this.hot.rowIndexMapper,s=o.getVisualFromRenderableIndex(e.startRow);for(let i=0;i<t;i+=1){const r=this.mergedCellsCollection.get(s,i);if((0,g.isObject)(r)){const s=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(r.row,1));if(s<e.startRow)return e.startRow=s,void this.modifyViewportRowStart(e,t)}}}modifyViewportRowEnd(e,t){const o=this.hot.rowIndexMapper,s=o.getVisualFromRenderableIndex(e.endRow);for(let i=0;i<t;i+=1){const r=this.mergedCellsCollection.get(s,i);if((0,g.isObject)(r)){const s=r.row+r.rowspan-1,i=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(s,-1));if(i>e.endRow)return e.endRow=i,void this.modifyViewportRowEnd(e,t)}}}modifyViewportColumnStart(e,t){const o=this.hot.columnIndexMapper,s=o.getVisualFromRenderableIndex(e.startColumn);for(let i=0;i<t;i+=1){const r=this.mergedCellsCollection.get(i,s);if((0,g.isObject)(r)){const s=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(r.col,1));if(s<e.startColumn)return e.startColumn=s,void this.modifyViewportColumnStart(e,t)}}}modifyViewportColumnEnd(e,t){const o=this.hot.columnIndexMapper,s=o.getVisualFromRenderableIndex(e.endColumn);for(let i=0;i<t;i+=1){const r=this.mergedCellsCollection.get(i,s);if((0,g.isObject)(r)){const s=r.col+r.colspan-1,i=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(s,-1));if(i>e.endColumn)return e.endColumn=i,void this.modifyViewportColumnEnd(e,t)}}}translateMergedCellToRenderable(e,t,o,s){const{rowIndexMapper:i,columnIndexMapper:r}=this.hot;let n,l;n=0===t?i.getNearestNotHiddenIndex(e,1):i.getNearestNotHiddenIndex(e+t-1,-1),l=0===s?r.getNearestNotHiddenIndex(o,1):r.getNearestNotHiddenIndex(o+s-1,-1);return[e>=0?i.getRenderableFromVisualIndex(n):e,o>=0?r.getRenderableFromVisualIndex(l):o]}}function k(){this.generateFromSettings(),this.hot.render()}function D(e){if(e){const e=this.mergedCellsCollection.mergedCells,t=this.hot.getSelectedRangeLast(),o=t.getTopStartCorner(),s=t.getBottomEndCorner();for(let t=0;t<e.length;t+=1)if(o.row===e[t].row&&o.col===e[t].col&&s.row===e[t].row+e[t].rowspan-1&&s.col===e[t].col+e[t].colspan-1)return!1}return e}function L(e){b(N,this).row=e.row,b(N,this).col=e.col}function V(e){const t=this.hot.getSelectedRangeLast(),{highlight:o}=t,{columnIndexMapper:s,rowIndexMapper:i}=this.hot;b(O,this)&&(null!==i.getRenderableFromVisualIndex(b(O,this).row)&&(o.row=b(O,this).row),null!==s.getRenderableFromVisualIndex(b(O,this).col)&&(o.col=b(O,this).col),R(O,this,null));const r=this.mergedCellsCollection.get(o.row,o.col);if(!r)return;const n=r.col,l=r.col+r.colspan-1;if(e.col<0){const t=o.col>=n&&o.col<=l?n-1:l,i=s.getNearestNotHiddenIndex(t,-1);e.col=null===i?-this.hot.view.countRenderableColumnsInRange(0,o.col):-Math.max(this.hot.view.countRenderableColumnsInRange(i,o.col)-1,1)}else if(e.col>0){const t=o.col>=n&&o.col<=l?l+1:n,i=s.getNearestNotHiddenIndex(t,1);e.col=null===i?this.hot.view.countRenderableColumnsInRange(o.col,this.hot.countCols()):Math.max(this.hot.view.countRenderableColumnsInRange(o.col,i)-1,1)}const a=r.row,h=r.row+r.rowspan-1;if(e.row<0){const t=o.row>=a&&o.row<=h?a-1:h,s=i.getNearestNotHiddenIndex(t,-1);e.row=null===s?-this.hot.view.countRenderableRowsInRange(0,o.row):-Math.max(this.hot.view.countRenderableRowsInRange(s,o.row)-1,1)}else if(e.row>0){const t=o.row>=a&&o.row<=h?h+1:a,s=i.getNearestNotHiddenIndex(t,1);e.row=null===s?this.hot.view.countRenderableRowsInRange(o.row,this.hot.countRows()):Math.max(this.hot.view.countRenderableRowsInRange(o.row,s)-1,1)}}function W(e){const t=this.hot.getSelectedRangeLast(),o=t.clone(),{to:s}=t,{columnIndexMapper:i,rowIndexMapper:r}=this.hot,n=(e,t)=>{o.expand(this.hot._createCellCoords(e,t));for(let e=0;e<this.mergedCellsCollection.mergedCells.length;e+=1)o.expandByRange(this.mergedCellsCollection.mergedCells[e].getRange())};if(e.col<0){let r=this.mergedCellsCollection.getStartMostColumnIndex(t,s.col)+e.col;n(s.row,r),"E-W"===t.getHorizontalDirection()&&"E-W"===o.getHorizontalDirection()&&(r=o.getTopStartCorner().col);const l=i.getNearestNotHiddenIndex(r,1);null!==l&&(e.col=-Math.max(this.hot.view.countRenderableColumnsInRange(l,s.col)-1,1))}else if(e.col>0){let r=this.mergedCellsCollection.getEndMostColumnIndex(t,s.col)+e.col;n(s.row,r),"W-E"===t.getHorizontalDirection()&&"W-E"===o.getHorizontalDirection()&&(r=o.getBottomEndCorner().col);const l=i.getNearestNotHiddenIndex(r,-1);null!==l&&(e.col=Math.max(this.hot.view.countRenderableColumnsInRange(s.col,l)-1,1))}if(e.row<0){let i=this.mergedCellsCollection.getTopMostRowIndex(t,s.row)+e.row;n(i,s.col),"S-N"===t.getVerticalDirection()&&"S-N"===o.getVerticalDirection()&&(i=o.getTopStartCorner().row);const l=r.getNearestNotHiddenIndex(i,1);null!==l&&(e.row=-Math.max(this.hot.view.countRenderableRowsInRange(l,s.row)-1,1))}else if(e.row>0){let i=this.mergedCellsCollection.getBottomMostRowIndex(t,s.row)+e.row;n(i,s.col),"N-S"===t.getVerticalDirection()&&"N-S"===o.getVerticalDirection()&&(i=o.getBottomStartCorner().row);const l=r.getNearestNotHiddenIndex(i,-1);null!==l&&(e.row=Math.max(this.hot.view.countRenderableRowsInRange(s.row,l)-1,1))}}function F(){const e=this.hot.getSelectedRangeLast(),{highlight:t}=e;if(this.hot.selection.isSelectedByColumnHeader()||this.hot.selection.isSelectedByRowHeader())return void R(O,this,t.clone());for(let t=0;t<this.mergedCellsCollection.mergedCells.length;t+=1)e.expandByRange(this.mergedCellsCollection.mergedCells[t].getRange(),!1);for(let t=0;t<this.mergedCellsCollection.mergedCells.length;t+=1)e.expandByRange(this.mergedCellsCollection.mergedCells[t].getRange(),!1);const o=this.mergedCellsCollection.get(t.row,t.col);R(O,this,t.clone()),o&&t.assign(o)}function B(e,t,o,s){if(e<0||t<0)return;const i=this.mergedCellsCollection.get(e,t);if(!i)return;const{row:r,col:n,colspan:l,rowspan:a}=i,h=r,c=n,u=r+a-1,d=n+l-1;if("render"===s&&this.getSetting("virtualized")){const e=this.hot.view.getActiveOverlayName(),t=["top","top_inline_start_corner"].includes(e)?0:this.hot.getFirstRenderedVisibleRow(),o=["inline_start","top_inline_start_corner","bottom_inline_start_corner"].includes(e)?0:this.hot.getFirstRenderedVisibleColumn();return[(0,p.clamp)(t,h,u),(0,p.clamp)(o,c,d),(0,p.clamp)(this.hot.getLastRenderedVisibleRow(),h,u),(0,p.clamp)(this.hot.getLastRenderedVisibleColumn(),c,d)]}return[h,c,u,d]}function U(e){e.items.push({name:"---------"},(0,u.default)(this))}function Y(){R(O,this,null)}function j(){if(b(O,this).isCell())return;const e=this.hot.getSelectedRangeLast(),t=e.getVerticalDirection(),o=e.getHorizontalDirection(),s=b(O,this).clone().normalize();b(A,this).setActiveNode(s.row,s.col),b(N,this).row>0||b(N,this).col>0?b(A,this).setPrevNodeAsActive():("E-W"===o&&b(N,this).col<0||"S-N"===t&&b(N,this).row<0)&&b(A,this).setNextNodeAsActive()}function z(e,t){const o=this.hot.getSelectedRangeLast(),{columnIndexMapper:s,rowIndexMapper:i}=this.hot;let r=null,n=null;if(b(N,this).col<0){const{rowEnd:e,colEnd:t}=b(A,this).getPrevHorizontalNode();n=s.getNearestNotHiddenIndex(t,-1),r=i.getNearestNotHiddenIndex(e,-1)}else if(b(N,this).col>0){const{rowStart:e,colStart:t}=b(A,this).getNextHorizontalNode();n=s.getNearestNotHiddenIndex(t,1),r=i.getNearestNotHiddenIndex(e,1)}else if(b(N,this).row<0){const{rowEnd:e,colEnd:t}=b(A,this).getPrevVerticalNode();n=s.getNearestNotHiddenIndex(t,-1),r=i.getNearestNotHiddenIndex(e,-1)}else if(b(N,this).row>0){const{rowStart:e,colStart:t}=b(A,this).getNextVerticalNode();n=s.getNearestNotHiddenIndex(t,1),r=i.getNearestNotHiddenIndex(e,1)}if(null!==r||null!==n){const s=this.hot._createCellCoords(r,n),i=this.mergedCellsCollection.get(s.row,s.col),l=this.hot.selection.highlight.getFocus();e=s.row,t=s.col,i?o.highlight.assign({row:this.hot.rowIndexMapper.getNearestNotHiddenIndex(i.row,1),col:this.hot.columnIndexMapper.getNearestNotHiddenIndex(i.col,1)}):o.highlight.assign(s),l.clear(),l.add(s).commit()}b(A,this).setActiveNode(e,t),R(N,this,{row:0,col:0})}function G(){this.hot.getSelectedRangeLast().isHeader()||b(A,this).buildFocusOrder(this.hot.getSelectedRangeLast())}function $(e,t,o){const s=this.mergedCellsCollection.get(e,t);s&&(s.row!==e||s.col!==t?o.copyable=!1:(o.rowspan=s.rowspan,o.colspan=s.colspan))}function K(e){if(this.getSetting("virtualized"))return;const t=this.hot.countCols();this.modifyViewportRowStart(e,t),this.modifyViewportRowEnd(e,t)}function X(e){if(this.getSetting("virtualized"))return;const t=this.hot.countRows();this.modifyViewportColumnStart(e,t),this.modifyViewportColumnEnd(e,t)}function q(e,t){const o=this.autofillCalculations.getDirection(t,e);if(this.autofillCalculations.dragAreaOverlapsCollections(t,e,o))return t;const s=this.hot._createCellCoords(t[0],t[1]),i=this.hot._createCellCoords(t[2],t[3]),r=this.hot._createCellRange(s,s,i),n=this.mergedCellsCollection.getWithinRange(r);return 0===n.length?e:this.autofillCalculations.snapDragArea(t,e,o,n)}function Q(e,t){this.mergedCellsCollection.shiftCollections("right",e,t)}function J(e,t){this.mergedCellsCollection.shiftCollections("left",e,t)}function Z(e,t,o){"auto"!==o&&this.mergedCellsCollection.shiftCollections("down",e,t)}function ee(e,t){this.mergedCellsCollection.shiftCollections("up",e,t)}function te(e,t){"Autofill.fill"===t&&this.autofillCalculations.recreateAfterDataPopulation(e)}function oe(e,t){if(t&&"area"===t){const t=this.hot.getSelectedRangeLast(),o=this.mergedCellsCollection.getWithinRange(t);(0,d.arrayEach)(o,o=>{t.getBottomEndCorner().row===o.getLastRow()&&t.getBottomEndCorner().col===o.getLastColumn()&&(e[2]=o.row,e[3]=o.col)})}}function se(e,t,o,s){if(o)return this.selectionCalculations.getSelectedMergedCellClassName(e,t,o,s)}function ie(){return this.selectionCalculations.getSelectedMergedCellClassNameToRemove()}function re(e,t,o,s){if(!(s instanceof MouseEvent))return;const i=this.hot.getSelectedRangeLast(),r=this.mergedCellsCollection.getByRange(i);if(!r)return;const n=this.hot._createCellCoords(r.row,r.col),l=this.hot._createCellCoords(r.row+r.rowspan-1,r.col+r.colspan-1);return 0===this.hot.selection.getLayerLevel()&&i.isEqual(this.hot._createCellRange(n,n,l))}function ne(e,t,o){if(this.hot.getSettings().rowHeaders||"bottom"===o||"bottom_inline_start_corner"===o)return e;let s,i;if("master"===o)s=this.hot.getFirstRenderedVisibleColumn(),i=this.hot.getLastRenderedVisibleColumn();else{const e=this.hot.view.getOverlayByName(o);s=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e.clone.wtTable.getFirstRenderedColumn()),i=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e.clone.wtTable.getLastRenderedColumn())}if(!this.mergedCellsCollection.get(t,s))return e;const r=this.hot._createCellCoords(t,s),n=this.hot._createCellCoords(t,i),l=this.hot._createCellRange(r,r,n),a=this.mergedCellsCollection.getWithinRange(l,!0),h=a.reduce((e,t)=>{let{rowspan:o}=t;return Math.max(e,o)},1);let c=0;return a.length>1&&a[0].rowspan<h&&(c=h-a[0].rowspan),a.forEach(s=>{let{rowspan:i}=s,r=0;r="top"===o||"top_inline_start_corner"===o?Math.min(h,this.hot.view.countNotHiddenFixedRowsTop()-t):i-c,e=Math.max(null!=e?e:0,(0,y.sumCellsHeights)(this.hot,t,r))}),e}t.MergeCells=P},34409:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(20780),i=o(40672);const r=t.CELL_TYPE="text";t.TextCellType={CELL_TYPE:r,editor:s.TextEditor,renderer:i.textRenderer}},34462:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(75572);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.ManualRowResize=s.ManualRowResize},34726:(e,t,o)=>{"use strict";var s=o(76277),i=o(11044),r=o(26213),n=o(17112),l=o(92689),a=o(6330);s({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}()},{unshift:function(e){var t=i(this),o=r(t),s=arguments.length;if(s){a(o+s);for(var h=o;h--;){var c=h+s;h in t?t[c]=t[h]:l(t,c)}for(var u=0;u<s;u++)t[u]=arguments[u]}return n(t,o+s)}})},34990:(e,t,o)=>{"use strict";t.__esModule=!0,t.createMergeCellRenderer=function(e){const{hot:t}=e,{rowIndexMapper:o,columnIndexMapper:n}=t,l=new Map;return{before:function(){},after:function(a,h,c){const u=e.mergedCellsCollection.get(h,c);if(!(0,s.isObject)(u))return a.removeAttribute("rowspan"),a.removeAttribute("colspan"),(0,i.isSafari)()&&l.has(h)&&!t.getSettings().rowHeaders&&(a.style.height=`${l.get(h)}px`,l.delete(h)),void(a.style.display="");const{row:d,col:g,colspan:f,rowspan:p}=u,[m,w]=e.translateMergedCellToRenderable(d,p,g,f),C=e.getSetting("virtualized");if((0,i.isSafari)()&&0===g&&!t.getSettings().rowHeaders){const e=(0,r.sumCellsHeights)(t,d,p);l.set(h,e/p)}const v=m-o.getRenderableFromVisualIndex(h)+1,y=w-n.getRenderableFromVisualIndex(c)+1;let E=o.getNearestNotHiddenIndex(d,1),S=n.getNearestNotHiddenIndex(g,1);if(C){const e=t.view.getActiveOverlayName();["top","top_inline_start_corner"].includes(e)||(E=Math.max(E,t.getFirstRenderedVisibleRow())),["inline_start","top_inline_start_corner","bottom_inline_start_corner"].includes(e)||(S=Math.max(S,t.getFirstRenderedVisibleColumn()))}const R=Math.min(p,v),b=Math.min(f,y);E===h&&S===c?(a.setAttribute("rowspan",R),a.setAttribute("colspan",b)):(a.removeAttribute("rowspan"),a.removeAttribute("colspan"),a.style.display="none")}}};var s=o(87203),i=o(64254),r=o(48368)},35045:(e,t,o)=>{"use strict";t.__esModule=!0,t._dataToHTML=function(e){const t=e.length,o=["<table>"];for(let i=0;i<t;i+=1){const r=e[i],n=r.length,l=[];0===i&&o.push("<tbody>");for(let e=0;e<n;e+=1){const t=r[e],o=(0,s.isEmpty)(t)?"":t.toString().replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20{2,}/gi,e=>`<span style="mso-spacerun: yes">${" ".repeat(e.length-1)} </span>`).replace(/\t/gi,"	");l.push(`<td>${o}</td>`)}o.push("<tr>",...l,"</tr>"),i+1===t&&o.push("</tbody>")}return o.push("</table>"),o.join("")},t.htmlToGridSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;const o={},s=t.createDocumentFragment(),n=t.createElement("div");s.appendChild(n);let l=e;if("string"==typeof l){const e=l.replace(/<td\b[^>]*?>([\s\S]*?)<\/\s*td>/g,e=>{const t=e.match(/<td\b[^>]*?>/g)[0];return`${t}${e.substring(t.length,e.lastIndexOf("<")).trim().replaceAll(/\n\s+/g," ").replaceAll(/<p.*?>/g,"\n").replace("\n","").replaceAll(/<\/(.*)>\s+$/gm,"</$1>").replace(/(<(?!br)([^>]+)>)/gi,"").replaceAll(/^ $/gm,"")}</td>`});n.insertAdjacentHTML("afterbegin",`${e}`),l=n.querySelector("table")}if(!l||!function(e){return"TABLE"===(e&&e.nodeName||"")}(l))return;const a=n.querySelector('meta[name$="enerator"]'),h=null!==l.querySelector("tbody th"),c=l.querySelector("tr"),u=c?Array.from(c.cells).reduce((e,t)=>e+t.colSpan,0)-(h?1:0):0,d=l.tFoot&&Array.from(l.tFoot.rows)||[],g=[];let f=!1,p=0,m=0;if(l.tHead){const e=Array.from(l.tHead.rows).filter(e=>{const t=null!==e.querySelector("td");return t&&g.push(e),!t});p=e.length,f=p>0,p>1?o.nestedHeaders=Array.from(e).reduce((e,t)=>{const o=Array.from(t.cells).reduce((e,t,o)=>{if(h&&0===o)return e;const{colSpan:s,innerHTML:i}=t,r=s>1?{label:i,colspan:s}:i;return e.push(r),e},[]);return e.push(o),e},[]):f&&(o.colHeaders=Array.from(e[0].children).reduce((e,t,o)=>(h&&0===o||e.push(t.innerHTML),e),[]))}g.length&&(o.fixedRowsTop=g.length);d.length&&(o.fixedRowsBottom=d.length);const w=[...g,...Array.from(l.tBodies).reduce((e,t)=>(e.push(...Array.from(t.rows)),e),[]),...d];m=w.length;const C=new Array(m);for(let e=0;e<m;e++)C[e]=new Array(u);const v=[],y=[];for(let e=0;e<m;e++){const t=w[e],o=Array.from(t.cells),s=o.length;for(let t=0;t<s;t++){const s=o[t],{nodeName:n,innerHTML:l,rowSpan:h,colSpan:c}=s,u=C[e].findIndex(e=>void 0===e);if("TD"===n){if(h>1||c>1){for(let t=e;t<e+h;t++)if(t<m)for(let e=u;e<u+c;e++)C[t][e]=null;const t=s.getAttribute("style");t&&t.includes("mso-ignore:colspan")||v.push({col:u,row:e,rowspan:h,colspan:c})}let t="";t=a&&/excel/gi.test(a.content)?l.replace(/[\r\n][\x20]{0,2}/g," ").replace(/<br(\s*|\/)>[\r\n]?[\x20]{0,3}/gim,"\r\n"):l.replace(/<br(\s*|\/)>[\r\n]?/gim,"\r\n"),C[e][u]=t.replace(r,e=>i[e])}else y.push(l)}}v.length&&(o.mergeCells=v);y.length&&(o.rowHeaders=y);C.length&&(o.data=C);return o},t.instanceToHTML=function(e){const t=e.hasColHeaders(),o=e.hasRowHeaders(),i=[t?-1:0,o?-1:0,e.countRows()-1,e.countCols()-1],r=e.getData(...i),n=r.length,l=n>0?r[0].length:0,a=["<table>","</table>"],h=t?["<thead>","</thead>"]:[],c=["<tbody>","</tbody>"],u=o?1:0,d=t?1:0;for(let i=0;i<n;i+=1){const n=t&&0===i,a=[];for(let t=0;t<l;t+=1){const l=!n&&o&&0===t;let h="";if(n)h=`<th>${e.getColHeader(t-u)}</th>`;else if(l)h=`<th>${e.getRowHeader(i-d)}</th>`;else{const o=r[i][t],{hidden:n,rowspan:l,colspan:a}=e.getCellMeta(i-d,t-u);if(!n){const e=[];if(l&&e.push(`rowspan="${l}"`),a&&e.push(`colspan="${a}"`),(0,s.isEmpty)(o))h=`<td ${e.join(" ")}></td>`;else{const t=o.toString().replace(/</g,"<").replace(/>/g,">").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20/gi," ").replace(/\t/gi,"	");h=`<td ${e.join(" ")}>${t}</td>`}}}a.push(h)}const g=["<tr>",...a,"</tr>"].join("");n?h.splice(1,0,g):c.splice(-1,0,g)}return a.splice(1,0,h.join(""),c.join("")),a.join("")},o(85639),o(63667),o(73741),o(7307),o(90795),o(89663);var s=o(50929);const i={" ":" ","&":"&","<":"<",">":">"},r=new RegExp(Object.keys(i).map(e=>`(${e})`).join("|"),"gi")},35136:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(73741),o(7307),o(69326),o(89663);var i=s(o(53726)),r=o(44233),n=o(10880),l=s(o(39645)),a=o(87203),h=o(59073),c=s(o(18712)),u=o(27277),d=o(65733);function g(e,t,o){f(e,t),t.set(e,o)}function f(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function p(e,t,o){return e.set(w(e,t),o),o}function m(e,t){return e.get(w(e,t))}function w(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const C=t.PLUGIN_KEY="autoRowSize",v=t.PLUGIN_PRIORITY=40;var y=new WeakMap,E=new WeakMap,S=new WeakSet;class R extends r.BasePlugin{static get PLUGIN_KEY(){return C}static get PLUGIN_PRIORITY(){return v}static get SETTING_KEYS(){return!0}static get DEFAULT_SETTINGS(){return{useHeaders:!0,samplingRatio:null,allowSampleDuplicates:!1}}static get CALCULATION_STEP(){return 50}static get SYNC_CALCULATION_LIMIT(){return 500}constructor(e){var t,o;super(e),f(t=this,o=S),o.add(t),(0,i.default)(this,"headerHeight",null),(0,i.default)(this,"ghostTable",new l.default(this.hot)),(0,i.default)(this,"samplesGenerator",new c.default((e,t)=>{const o=this.hot.toPhysicalRow(e),s=this.hot.toPhysicalColumn(t);if(this.hot.rowIndexMapper.isHidden(o)||this.hot.columnIndexMapper.isHidden(s))return!1;if(e>=0&&t>=0){if(this.hot.getCellMeta(e,t).hidden)return!1}let i;return e>=0?i=this.hot.getDataAtCell(e,t):-1===e&&(i=this.hot.getColHeader(t)),{value:i}})),(0,i.default)(this,"inProgress",!1),(0,i.default)(this,"measuredRows",0),(0,i.default)(this,"rowHeightsMap",new d.PhysicalIndexToValueMap),g(this,y,[]),g(this,E,!1),this.hot.rowIndexMapper.registerMap("autoRowSize",this.rowHeightsMap),this.addHook("beforeRowResize",(e,t,o)=>w(S,this,T).call(this,e,t,o))}isEnabled(){const e=this.hot.getSettings()[C];return!0===e||(0,a.isObject)(e)}enablePlugin(){var e=this;if(this.enabled)return;this.samplesGenerator.setAllowDuplicates(this.getSetting("allowSampleDuplicates"));const t=this.getSetting("samplingRatio");t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),this.addHook("afterLoadData",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return w(S,e,M).call(e,...o)}),this.addHook("beforeChangeRender",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return w(S,e,I).call(e,...o)}),this.addHook("beforeColumnResize",()=>this.recalculateAllRowsHeight()),this.addHook("afterFormulasValuesUpdate",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return w(S,e,N).call(e,...o)}),this.addHook("beforeRender",()=>w(S,this,_).call(this)),this.addHook("modifyRowHeight",(e,t)=>this.getRowHeight(t,e)),this.addHook("init",()=>w(S,this,O).call(this)),this.addHook("modifyColumnHeaderHeight",()=>this.getColumnHeaderHeight()),super.enablePlugin()}disablePlugin(){this.headerHeight=null,super.disablePlugin(),this.addHook("beforeRowResize",(e,t,o)=>w(S,this,T).call(this,e,t,o))}calculateVisibleRowsHeight(){if(!this.hot.countCols())return;const e=this.getFirstVisibleRow(),t=this.getLastVisibleRow();if(-1===e||-1===t)return;const o=this.hot.forceFullRender;this.calculateRowsHeight({from:e,to:t},void 0,o)}calculateRowsHeight(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countCols()-1},o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const s="number"==typeof e?{from:e,to:e}:e,i="number"==typeof t?{from:t,to:t}:t;if(null!==this.hot.getColHeader(0)){const e=this.samplesGenerator.generateRowSamples(-1,i);this.ghostTable.addColumnHeadersRow(e.get(-1))}(0,h.rangeEach)(s.from,s.to,e=>{let t=this.hot.toPhysicalRow(e);if(null===t&&(t=e),o||null===this.rowHeightsMap.getValueAtIndex(t)){this.samplesGenerator.generateRowSamples(e,i).forEach((e,t)=>this.ghostTable.addRow(t,e))}}),this.ghostTable.rows.length&&(this.hot.batchExecution(()=>{this.ghostTable.getHeights((e,t)=>{e<0?this.headerHeight=t:this.rowHeightsMap.setValueAtIndex(this.hot.toPhysicalRow(e),t)})},!0),this.measuredRows=s.to+1,this.ghostTable.clean())}calculateAllRowsHeight(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=0;const s=this.hot.countRows()-1;let i=null;this.inProgress=!0;const r=()=>{if(!this.hot)return(0,n.cancelAnimationFrame)(i),void(this.inProgress=!1);this.calculateRowsHeight({from:o,to:Math.min(o+R.CALCULATION_STEP,s)},e,t),o=o+R.CALCULATION_STEP+1,o<s?i=(0,n.requestAnimationFrame)(r):((0,n.cancelAnimationFrame)(i),this.inProgress=!1,this.hot.view.adjustElementsSize())},l=this.getSyncCalculationLimit();l>=0&&(this.calculateRowsHeight({from:0,to:l},e,t),o=l+1),o<s?r():(this.inProgress=!1,this.hot.view.adjustElementsSize())}recalculateAllRowsHeight(){this.hot.view.isVisible()&&this.calculateAllRowsHeight({from:0,to:this.hot.countCols()-1},!0)}getSyncCalculationLimit(){const e=this.hot.getSettings()[C];let t=R.SYNC_CALCULATION_LIMIT;const o=this.hot.countRows()-1;return(0,a.isObject)(e)&&(t=e.syncLimit,(0,u.isPercentValue)(t)?t=(0,h.valueAccordingPercent)(o,t):t>>=0),Math.min(t,o)}getRowHeight(e,t){const o=e<0?this.headerHeight:this.rowHeightsMap.getValueAtIndex(this.hot.toPhysicalRow(e));let s=t;return null!==o&&o>(t||0)&&(s=o),s}getColumnHeaderHeight(){return this.headerHeight}getFirstVisibleRow(){var e;return null!==(e=this.hot.getFirstRenderedVisibleRow())&&void 0!==e?e:-1}getLastVisibleRow(){var e;return null!==(e=this.hot.getLastRenderedVisibleRow())&&void 0!==e?e:-1}clearCache(e){this.headerHeight=null,Array.isArray(e)?this.hot.batchExecution(()=>{e.forEach(e=>{this.rowHeightsMap.setValueAtIndex(e,null)})},!0):this.rowHeightsMap.clear()}clearCacheByRange(e){const{from:t,to:o}="number"==typeof e?{from:e,to:e}:e;this.hot.batchExecution(()=>{(0,h.rangeEach)(Math.min(t,o),Math.max(t,o),e=>{this.rowHeightsMap.setValueAtIndex(e,null)})},!0)}isNeedRecalculate(){return!!this.rowHeightsMap.getValues().slice(0,this.measuredRows).filter(e=>null===e).length}destroy(){this.ghostTable.clean(),super.destroy()}}function b(e){const t={from:0,to:this.hot.countCols()-1};e.forEach(e=>{this.samplesGenerator.generateRowSamples(e,t).forEach((e,t)=>this.ghostTable.addRow(t,e))}),this.ghostTable.rows.length&&(this.hot.batchExecution(()=>{this.ghostTable.getHeights((e,t)=>{const o=this.hot.toPhysicalRow(e);this.rowHeightsMap.setValueAtIndex(o,t)})},!0),this.ghostTable.clean())}function _(){this.calculateVisibleRowsHeight(),this.inProgress||(w(S,this,b).call(this,m(y,this)),p(y,this,[]))}function T(e,t,o){let s=e;return o&&(this.calculateRowsHeight(t,void 0,!0),s=this.getRowHeight(t)),s}function M(e,t){t||this.recalculateAllRowsHeight()}function I(e){const t=e.reduce((e,t)=>{let[o]=t;return-1===e.indexOf(o)&&e.push(o),e},[]);m(y,this).push(...t)}function O(){this.recalculateAllRowsHeight(),p(E,this,!0)}function N(e){if(!m(E,this))return;const t=e.reduce((e,t)=>{var o;const s=null===(o=t.address)||void 0===o?void 0:o.row;if(Number.isInteger(s)){const t=this.hot.toVisualRow(s);-1===e.indexOf(t)&&e.push(t)}return e},[]);m(y,this).push(...t)}t.AutoRowSize=R},35172:(e,t,o)=>{"use strict";var s=o(88005).navigator,i=s&&s.userAgent;e.exports=i?String(i):""},35323:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.createHighlight=function(e){let{areaCornerVisible:t,...o}=e;return new r.default({className:"area",createLayers:!0,border:{width:1,color:"#4b89ff",cornerVisible:t},...o,selectionType:i.HIGHLIGHT_AREA_TYPE})};var i=o(12822),r=s(o(41876))},35464:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726));t.StretchStrategy=class{constructor(e){(0,i.default)(this,"viewportWidth",void 0),(0,i.default)(this,"overwriteColumnWidthFn",void 0),(0,i.default)(this,"baseWidths",new Map),(0,i.default)(this,"stretchedWidths",new Map),this.overwriteColumnWidthFn=e}prepare(e){let{viewportWidth:t}=e;this.viewportWidth=t,this.baseWidths.clear(),this.stretchedWidths.clear()}setColumnBaseWidth(e,t){this.baseWidths.set(e,t)}calculate(){}getWidths(){return Array.from(this.stretchedWidths)}}},35548:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"borders:no_borders",name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_REMOVE_BORDERS)},callback(t,o){e.prepareBorder(o,"noBorders")},disabled(){return!(0,i.checkSelectionBorders)(this)}}};var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(30432)),i=o(52763)},35717:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.timeValidator=l;var i=s(o(86798));const r=["YYYY-MM-DDTHH:mm:ss.SSSZ","X","x"],n=t.VALIDATOR_TYPE="time";function l(e,t){const o=this.timeFormat||"h:mm:ss a";let s=!0,n=e;null===n&&(n=""),n=/^\d{3,}$/.test(n)?parseInt(n,10):n;const l=/^\d{1,2}$/.test(n);l&&(n+=":00");const a=(0,i.default)(n,r,!0).isValid()?(0,i.default)(n):(0,i.default)(n,o);let h=a.isValid(),c=(0,i.default)(n,o,!0).isValid()&&!l;if(this.allowEmpty&&""===n&&(h=!0,c=!0),h||(s=!1),!h&&c&&(s=!0),h&&!c)if(!0===this.correctFormat){const e=a.format(o);this.instance.setDataAtCell(this.visualRow,this.visualCol,e,"timeValidator"),s=!0}else s=!1;t(s)}l.VALIDATOR_TYPE=n},36152:(e,t,o)=>{"use strict";t.__esModule=!0,o(73741),o(7307);var s=o(50343);const i=t.EDITOR_TYPE="dropdown";class r extends s.AutocompleteEditor{static get EDITOR_TYPE(){return i}prepare(e,t,o,s,i,r){r.filter=!1,r.strict=!0,super.prepare(e,t,o,s,i,r)}}t.DropdownEditor=r},36230:(e,t,o)=>{"use strict";var s=o(64976),i=o(86713),r=o(77618),n=o(5006),l=o(89626),a=TypeError;e.exports=function(e,t){var o=arguments.length<2?l(e):t;if(i(o))return r(s(o,e));throw new a(n(e)+" is not iterable")}},36335:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(85639);var i=s(o(53726)),r=o(59073),n=o(87203),l=o(6964),a=s(o(44266));class h{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,i.default)(this,"indexedValues",[]),(0,i.default)(this,"initValueOrFn",void 0),this.initValueOrFn=e}getValues(){return this.indexedValues}getValueAtIndex(e){const t=this.indexedValues;if(e<t.length)return t[e]}setValues(e){this.indexedValues=e.slice(),this.runLocalHooks("change")}setValueAtIndex(e,t){return e<this.indexedValues.length&&(this.indexedValues[e]=t,this.runLocalHooks("change"),!0)}clear(){this.setDefaultValues()}getLength(){return this.getValues().length}setDefaultValues(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.indexedValues.length=0,(0,l.isFunction)(this.initValueOrFn)?(0,r.rangeEach)(e-1,e=>this.indexedValues.push(this.initValueOrFn(e))):(0,r.rangeEach)(e-1,()=>this.indexedValues.push(this.initValueOrFn)),this.runLocalHooks("change")}init(e){return this.setDefaultValues(e),this.runLocalHooks("init"),this}insert(){this.runLocalHooks("change")}remove(){this.runLocalHooks("change")}destroy(){this.clearLocalHooks(),this.indexedValues=null,this.initValueOrFn=null}}t.IndexMap=h,(0,n.mixin)(h,a.default)},36641:(e,t,o)=>{"use strict";t.__esModule=!0,o(88443);var s=o(87203),i=o(27022);function r(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function n(e,t){return e.get(a(e,t))}function l(e,t,o){return e.set(a(e,t),o),o}function a(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,c=new WeakMap;class u extends i.BaseUI{static get DEFAULTS(){return(0,s.clone)({type:"radio",tagName:"input",className:"htUIRadio",label:{}})}constructor(e,t){super(e,(0,s.extend)(u.DEFAULTS,t)),r(this,h,void 0),r(this,c,void 0)}build(){super.build();const e=this.hot.rootDocument.createElement("label");e.textContent=this.translateIfPossible(this.options.label.textContent),e.htmlFor=this.translateIfPossible(this.options.label.htmlFor),l(c,this,e),l(h,this,this._element.firstChild),n(h,this).checked=this.options.checked,this._element.appendChild(e),this.update()}update(){this.isBuilt()&&(n(c,this).textContent=this.translateIfPossible(this.options.label.textContent))}isChecked(){return!!this.isBuilt()&&n(h,this).checked}setChecked(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.isBuilt()&&(n(h,this).checked=e)}focus(){this.isBuilt()&&n(h,this).focus()}}t.RadioInputUI=u},36697:(e,t,o)=>{"use strict";var s=o(86713),i=o(214);e.exports=function(e,t){var o=e[t];return i(o)?void 0:s(o)}},36776:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639);var i=s(o(53726)),r=o(44233),n=o(18051),l=o(59073),a=o(88291),h=o(43561),c=o(30581),u=o(87927),d=o(38856);function g(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function f(e,t){return e.get(m(e,t))}function p(e,t,o){return e.set(m(e,t),o),o}function m(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const w=t.PLUGIN_KEY="collapsibleColumns",C=t.PLUGIN_PRIORITY=290,v=["nestedHeaders"],y="collapsibleIndicator",E=w,S=new Map([["collapse",{hideColumn:!0,beforeHook:"beforeColumnCollapse",afterHook:"afterColumnCollapse"}],["expand",{hideColumn:!1,beforeHook:"beforeColumnExpand",afterHook:"afterColumnExpand"}]]);var R=new WeakMap,b=new WeakSet;class _ extends r.BasePlugin{constructor(){var e,t;super(...arguments),g(e=this,t=b),t.add(e),(0,i.default)(this,"nestedHeadersPlugin",null),(0,i.default)(this,"headerStateManager",null),function(e,t,o){g(e,t),t.set(e,o)}(this,R,null)}static get PLUGIN_KEY(){return w}static get PLUGIN_PRIORITY(){return C}static get PLUGIN_DEPS(){return["plugin:NestedHeaders"]}static get SETTING_KEYS(){return[w,...v]}isEnabled(){return!!this.hot.getSettings()[w]}enablePlugin(){var e=this;if(this.enabled)return;const{nestedHeaders:t}=this.hot.getSettings();t||(0,a.warn)("You need to configure the Nested Headers plugin in order to use collapsible headers."),p(R,this,this.hot.columnIndexMapper.createAndRegisterIndexMap(this.pluginName,"hiding")),this.nestedHeadersPlugin=this.hot.getPlugin("nestedHeaders"),this.headerStateManager=this.nestedHeadersPlugin.getStateManager(),this.addHook("init",()=>m(b,this,I).call(this)),this.addHook("afterLoadData",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return m(b,e,O).call(e,...o)}),this.addHook("afterGetColHeader",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return m(b,e,T).call(e,...o)}),this.addHook("beforeOnCellMouseDown",(e,t,o)=>m(b,this,M).call(this,e,t,o)),this.registerShortcuts(),super.enablePlugin(),this.updatePlugin()}updatePlugin(){if(this.hot.view){if(!this.nestedHeadersPlugin.detectedOverlappedHeaders){const{collapsibleColumns:e}=this.hot.getSettings();"boolean"==typeof e?this.headerStateManager.mapState(e=>({collapsible:e.origColspan>1})):Array.isArray(e)&&(this.headerStateManager.mapState(()=>({collapsible:!1})),this.headerStateManager.mergeStateWith(e))}super.updatePlugin()}}disablePlugin(){this.hot.columnIndexMapper.unregisterMap(this.pluginName),p(R,this,null),this.nestedHeadersPlugin=null,this.unregisterShortcuts(),this.clearButtons(),super.disablePlugin()}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Enter"]],callback:()=>{var e;const{row:t,col:o}=this.hot.getSelectedRangeLast().highlight,{collapsible:s,isCollapsed:i,columnIndex:r}=null!==(e=this.headerStateManager.getHeaderTreeNodeData(t,o))&&void 0!==e?e:{};if(s)return i?this.expandSection({row:t,col:r}):this.collapseSection({row:t,col:r}),!1},runOnlyIf:()=>{var e,t;return(null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.isSingle())&&(null===(t=this.hot.getSelectedRangeLast())||void 0===t?void 0:t.highlight.isHeader())},group:E,relativeToGroup:u.EDITOR_EDIT_GROUP,position:"before"})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(E)}clearButtons(){if(!this.hot.view)return;const e=this.hot.view._wt.getSetting("columnHeaders").length,t=this.hot.view._wt.wtTable.THEAD,o=this.hot.view._wt.wtOverlays.topOverlay.clone.wtTable.THEAD,s=this.hot.view._wt.wtOverlays.topInlineStartCornerOverlay?this.hot.view._wt.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.THEAD:null,i=function(e){e&&e.parentNode.removeChild(e)};(0,l.rangeEach)(0,e-1,e=>{const r=t.childNodes[e],n=o.childNodes[e],a=s?s.childNodes[e]:null;(0,l.rangeEach)(0,r.childNodes.length-1,e=>{let t=r.childNodes[e].querySelector(`.${y}`);i(t),n&&n.childNodes[e]&&(t=n.childNodes[e].querySelector(`.${y}`),i(t)),s&&a&&a.childNodes[e]&&(t=a.childNodes[e].querySelector(`.${y}`),i(t))})},!0)}expandSection(e){this.toggleCollapsibleSection([e],"expand")}collapseSection(e){this.toggleCollapsibleSection([e],"collapse")}toggleAllCollapsibleSections(e){const t=this.headerStateManager.mapNodes(t=>{const{collapsible:o,origColspan:s,headerLevel:i,columnIndex:r,isCollapsed:n}=t;if(!0===o&&s>1&&(n&&"expand"===e||!n&&"collapse"===e))return{row:this.headerStateManager.levelToRowCoords(i),col:r}});this.toggleCollapsibleSection(t,e)}collapseAll(){this.toggleAllCollapsibleSections("collapse")}expandAll(){this.toggleAllCollapsibleSections("expand")}toggleCollapsibleSection(e,t){if(!S.has(t))throw new Error(`Unsupported action is passed (${t}).`);if(!Array.isArray(e))return;const o=(0,n.arrayFilter)(e,e=>{let{row:t}=e;return t<0});let s=o.length>0;(0,n.arrayEach)(o,e=>{var o;let{row:i,col:r}=e;const{collapsible:n,isCollapsed:l}=null!==(o=this.headerStateManager.getHeaderSettings(i,r))&&void 0!==o?o:{};if(!n||l&&"collapse"===t||!l&&"expand"===t)return s=!1,!1});const i=[],r=[];s&&(0,n.arrayEach)(o,e=>{let{row:o,col:s}=e;const{colspanCompensation:n,affectedColumns:l,rollbackModification:a}=this.headerStateManager.triggerNodeModification(t,o,s);n>0&&(r.push(...l),i.push(a))});const l=this.getCollapsedColumns();let a=[];"collapse"===t?a=(0,n.arrayUnique)([...l,...r]):"expand"===t&&(a=(0,n.arrayFilter)(l,e=>!r.includes(e)));const h=S.get(t);if(!1===this.hot.runHooks(h.beforeHook,l,a,s))return void(0,n.arrayEach)(i,e=>{e()});this.hot.batchExecution(()=>{(0,n.arrayEach)(r,e=>{f(R,this).setValueAtIndex(this.hot.toPhysicalColumn(e),h.hideColumn)})},!0);const c=this.getCollapsedColumns().length!==l.length,u=this.hot.getSelectedRangeLast();if("collapse"===t&&c&&u){const{row:e,col:t}=u.highlight;if((this.hot.rowIndexMapper.isHidden(e)||this.hot.columnIndexMapper.isHidden(t))&&r.includes(t)){const o=e>=0?this.hot.rowIndexMapper.getNearestNotHiddenIndex(e,1,!0):e,s=t>=0?this.hot.columnIndexMapper.getNearestNotHiddenIndex(t,1,!0):t;null!==o&&null!==s&&this.hot.selectCell(o,s)}}this.hot.runHooks(h.afterHook,l,a,s,c),this.hot.render(),this.hot.view.adjustElementsSize()}getCollapsedColumns(){return f(R,this).getHiddenIndexes()}destroy(){p(R,this,null),super.destroy()}}function T(e,t,o){var s;const{collapsible:i,origColspan:r,isCollapsed:n}=null!==(s=this.headerStateManager.getHeaderSettings(o,e))&&void 0!==s?s:{},l=i&&r>1&&e>=this.hot.getSettings().fixedColumnsStart,a=this.hot.getSettings().ariaTags;let c=t.querySelector(`.${y}`);var u;((0,h.removeAttribute)(t,[(0,d.A11Y_EXPANDED)("")[0]]),l)?(c||(c=this.hot.rootDocument.createElement("div"),(0,h.addClass)(c,y),t.querySelector("div:first-child").appendChild(c)),(0,h.removeClass)(c,["collapsed","expanded"]),n?((0,h.addClass)(c,"collapsed"),(0,h.fastInnerText)(c,"+"),a&&(0,h.setAttribute)(t,...(0,d.A11Y_EXPANDED)(!1))):((0,h.addClass)(c,"expanded"),(0,h.fastInnerText)(c,"-"),a&&(0,h.setAttribute)(t,...(0,d.A11Y_EXPANDED)(!0))),a&&(0,h.setAttribute)(c,...(0,d.A11Y_HIDDEN)())):null===(u=c)||void 0===u||u.remove()}function M(e,t){(0,h.hasClass)(e.target,y)&&((0,h.hasClass)(e.target,"expanded")?(this.eventManager.fireEvent(e.target,"mouseup"),this.toggleCollapsibleSection([t],"collapse")):(0,h.hasClass)(e.target,"collapsed")&&(this.eventManager.fireEvent(e.target,"mouseup"),this.toggleCollapsibleSection([t],"expand")),(0,c.stopImmediatePropagation)(e))}function I(){this.updatePlugin()}function O(e,t){t||this.updatePlugin()}t.CollapsibleColumns=_},36781:(e,t,o)=>{"use strict";t.__esModule=!0,t.getOperationFunc=function(e){if(!s[e])throw Error(`Operation with id "${e}" does not exist.`);const t=s[e].func;return function(e,o){return t(e,o)}},t.getOperationName=function(e){return s[e].name},t.registerOperation=function(e,t,o){s[e]={name:t,func:o}},o(88443);const s=t.operations={}},36798:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=r;var s=o(37396);const i=t.CONDITION_NAME="false";function r(){return!1}(0,s.registerCondition)(i,r,{name:"False"})},36837:(e,t,o)=>{"use strict";o.r(t)},36924:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(51829);class i extends s.OrderView{prependView(e){return this.sizeSet.prepend(e.sizeSet),e.sizeSet.append(this.sizeSet),this}appendView(e){return this.sizeSet.append(e.sizeSet),e.sizeSet.prepend(this.sizeSet),this}}t.SharedOrderView=i},36960:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(73741),o(7307),o(90795);var i=s(o(53726)),r=o(44233),n=o(8829),l=o(30586),a=o(18051),h=o(27277),c=o(43561),u=o(64254),d=s(o(12403)),g=s(o(63417)),f=s(o(27958)),p=s(o(91499)),m=s(o(47200)),w=s(o(65883)),C=o(76349),v=o(35045);function y(e,t,o){E(e,t),t.set(e,o)}function E(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function S(e,t){return e.get(b(e,t))}function R(e,t,o){return e.set(b(e,t),o),o}function b(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}n.Hooks.getSingleton().register("afterCopyLimit"),n.Hooks.getSingleton().register("modifyCopyableRange"),n.Hooks.getSingleton().register("beforeCut"),n.Hooks.getSingleton().register("afterCut"),n.Hooks.getSingleton().register("beforePaste"),n.Hooks.getSingleton().register("afterPaste"),n.Hooks.getSingleton().register("beforeCopy"),n.Hooks.getSingleton().register("afterCopy");const _=t.PLUGIN_KEY="copyPaste",T=t.PLUGIN_PRIORITY=80,M=["fragmentSelection"],I=['<meta name="generator" content="Handsontable"/>','<style type="text/css">td{white-space:normal}br{mso-data-placement:same-cell}</style>'].join("");var O=new WeakMap,N=new WeakMap,A=new WeakMap,H=new WeakMap,x=new WeakMap,P=new WeakMap,k=new WeakMap,D=new WeakMap,L=new WeakSet;class V extends r.BasePlugin{constructor(){var e,t;super(...arguments),E(e=this,t=L),t.add(e),(0,i.default)(this,"columnsLimit",1/0),(0,i.default)(this,"rowsLimit",1/0),(0,i.default)(this,"pasteMode","overwrite"),(0,i.default)(this,"uiContainer",this.hot.rootDocument.body),y(this,O,!1),y(this,N,!1),y(this,A,!1),y(this,H,"cells-only"),y(this,x,!1),y(this,P,!1),y(this,k,new C.CopyableRangesFactory({countRows:()=>this.hot.countRows(),countColumns:()=>this.hot.countCols(),rowsLimit:()=>this.rowsLimit,columnsLimit:()=>this.columnsLimit,countColumnHeaders:()=>this.hot.view.getColumnHeadersCount()})),y(this,D,!1),(0,i.default)(this,"copyableRanges",[])}static get PLUGIN_KEY(){return _}static get SETTING_KEYS(){return[_,...M]}static get PLUGIN_PRIORITY(){return T}static get DEFAULT_SETTINGS(){return{pasteMode:"overwrite",rowsLimit:1/0,columnsLimit:1/0,copyColumnHeaders:!1,copyColumnGroupHeaders:!1,copyColumnHeadersOnly:!1}}isEnabled(){return!!this.hot.getSettings()[_]}enablePlugin(){var e,t,o=this;this.enabled||(this.pasteMode=null!==(e=this.getSetting("pasteMode"))&&void 0!==e?e:this.pasteMode,this.rowsLimit=isNaN(this.getSetting("rowsLimit"))?this.rowsLimit:this.getSetting("rowsLimit"),this.columnsLimit=isNaN(this.getSetting("columnsLimit"))?this.columnsLimit:this.getSetting("columnsLimit"),R(O,this,this.getSetting("copyColumnHeaders")),R(N,this,this.getSetting("copyColumnGroupHeaders")),R(A,this,this.getSetting("copyColumnHeadersOnly")),this.uiContainer=null!==(t=this.getSetting("uiContainer"))&&void 0!==t?t:this.uiContainer,this.addHook("afterContextMenuDefaultOptions",e=>b(L,this,Y).call(this,e)),this.addHook("afterSelection",function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return b(L,o,j).call(o,...t)}),this.addHook("afterSelectionEnd",()=>b(L,this,z).call(this)),this.eventManager.addEventListener(this.hot.rootDocument,"copy",function(){return o.onCopy(...arguments)}),this.eventManager.addEventListener(this.hot.rootDocument,"cut",function(){return o.onCut(...arguments)}),this.eventManager.addEventListener(this.hot.rootDocument,"paste",function(){return o.onPaste(...arguments)}),(0,u.isSafari)()&&(this.eventManager.addEventListener(this.hot.rootDocument.body,"mouseenter",function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return b(L,o,G).call(o,...t)}),this.eventManager.addEventListener(this.hot.rootDocument.body,"mouseleave",function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return b(L,o,$).call(o,...t)}),this.addHook("afterSelection",()=>b(L,this,K).call(this))),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){super.disablePlugin()}copy(){R(H,this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"cells-only"),R(x,this,!0),b(L,this,W).call(this,"copy")}copyCellsOnly(){this.copy("cells-only")}copyColumnHeadersOnly(){this.copy("column-headers-only")}copyWithAllColumnHeaders(){this.copy("with-column-group-headers")}copyWithColumnHeaders(){this.copy("with-column-headers")}cut(){R(P,this,!0),b(L,this,W).call(this,"cut")}getRangedCopyableData(e){return(0,l.stringify)(this.getRangedData(e))}getRangedData(e){const t=[],{rows:o,columns:s}=(0,C.normalizeRanges)(e);return(0,a.arrayEach)(o,e=>{const o=[];(0,a.arrayEach)(s,t=>{e<0?o.push(this.hot.getColHeader(t,e)):o.push(this.hot.getCopyableData(e,t))}),t.push(o)}),t}paste(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(!e&&!t)return;const o=new w.default;e&&o.clipboardData.setData("text/plain",e),t&&o.clipboardData.setData("text/html",t),this.onPaste(o)}setCopyableText(){const e=this.hot.getSelectedRangeLast();if(!e)return;if(e.isSingleHeader())return void(this.copyableRanges=[]);S(k,this).setSelectedRange(e);const t=new Map([["headers",null],["cells",null]]);"column-headers-only"===S(H,this)?t.set("headers",S(k,this).getMostBottomColumnHeadersRange()):("with-column-headers"===S(H,this)?t.set("headers",S(k,this).getMostBottomColumnHeadersRange()):"with-column-group-headers"===S(H,this)&&t.set("headers",S(k,this).getAllColumnHeadersRange()),t.set("cells",S(k,this).getCellsRange())),this.copyableRanges=Array.from(t.values()).filter(e=>null!==e).map(e=>{let{startRow:t,startCol:o,endRow:s,endCol:i}=e;return{startRow:t,startCol:o,endRow:s,endCol:i}}),this.copyableRanges=this.hot.runHooks("modifyCopyableRange",this.copyableRanges);const o=t.get("cells");if(null!==o&&o.isRangeTrimmed){const{startRow:e,startCol:t,endRow:s,endCol:i}=o;this.hot.runHooks("afterCopyLimit",s-e+1,i-t+1,this.rowsLimit,this.columnsLimit)}}isEditorOpened(){var e;return null===(e=this.hot.getActiveEditor())||void 0===e?void 0:e.isOpened()}populateValues(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.hot.getSelectedRangeLast();if(!e.length)return;const o=e.length,s=e[0].length,i=[],{row:r,col:n}=t.getTopStartCorner(),{row:l,col:a}=t.getBottomEndCorner();let h=r,c=n,u=r,d=n;for(;i.length<o||h<=l;){const{skipRowOnPaste:t,visualRow:l}=this.hot.getCellMeta(h,n);if(h=l+1,!0===t)continue;u=l,c=n;const g=[],f=i.length%o;for(;g.length<s||c<=a;){const{skipColumnOnPaste:t,visualCol:o}=this.hot.getCellMeta(r,c);if(c=o+1,!0===t)continue;d=o;const i=g.length%s;g.push(e[f][i])}i.push(g)}return R(D,this,!0),this.hot.populateFromArray(r,n,i,void 0,void 0,"CopyPaste.paste",this.pasteMode),[r,n,u,d]}onCopy(e){const t=e.composedPath()[0],o=this.hot.getFocusManager().getRefocusElement(),s=null==t?void 0:t.hasAttribute("data-hot-input");if(!this.hot.isListening()&&!S(x,this)||this.isEditorOpened()||(0,c.isHTMLElement)(t)&&(s&&t!==o||!s&&t!==this.hot.rootDocument.body&&!(0,c.isInternalElement)(t,this.hot.rootElement)))return;e.preventDefault(),this.setCopyableText(),R(x,this,!1);const i=this.getRangedData(this.copyableRanges),r=b(L,this,F).call(this,this.copyableRanges);if(!!this.hot.runHooks("beforeCopy",i,this.copyableRanges,r)){const t=(0,l.stringify)(i);if(e&&e.clipboardData){const o=(0,v._dataToHTML)(i,this.hot.rootDocument);e.clipboardData.setData("text/plain",t),e.clipboardData.setData("text/html",[I,o].join(""))}else"undefined"==typeof ClipboardEvent&&this.hot.rootWindow.clipboardData.setData("Text",t);this.hot.runHooks("afterCopy",i,this.copyableRanges,r)}R(H,this,"cells-only")}onCut(e){const t=e.composedPath()[0],o=this.hot.getFocusManager().getRefocusElement(),s=null==t?void 0:t.hasAttribute("data-hot-input");if(!this.hot.isListening()&&!S(P,this)||this.isEditorOpened()||(0,c.isHTMLElement)(t)&&(s&&t!==o||!s&&t!==this.hot.rootDocument.body&&!(0,c.isInternalElement)(t,this.hot.rootElement)))return;e.preventDefault(),this.setCopyableText(),R(P,this,!1);const i=this.getRangedData(this.copyableRanges);if(!!this.hot.runHooks("beforeCut",i,this.copyableRanges)){const t=(0,l.stringify)(i);if(e&&e.clipboardData){const o=(0,v._dataToHTML)(i,this.hot.rootDocument);e.clipboardData.setData("text/plain",t),e.clipboardData.setData("text/html",[I,o].join(""))}else"undefined"==typeof ClipboardEvent&&this.hot.rootWindow.clipboardData.setData("Text",t);this.hot.emptySelectedCells("CopyPaste.cut"),this.hot.runHooks("afterCut",i,this.copyableRanges)}}onPaste(e){const t=e.composedPath()[0],o=this.hot.getFocusManager().getRefocusElement(),s=null==t?void 0:t.hasAttribute("data-hot-input");if(!this.hot.isListening()||this.isEditorOpened()||!this.hot.getSelected()||(0,c.isHTMLElement)(t)&&(s&&t!==o||!s&&t!==this.hot.rootDocument.body&&!(0,c.isInternalElement)(t,this.hot.rootElement)))return;let i;if(e.preventDefault(),e&&void 0!==e.clipboardData){const t=(0,h.sanitize)(e.clipboardData.getData("text/html"),{ADD_TAGS:["meta"],ADD_ATTR:["content"],FORCE_BODY:!0});if(t&&/(<table)|(<TABLE)/g.test(t)){i=(0,v.htmlToGridSettings)(t,this.hot.rootDocument).data}else i=e.clipboardData.getData("text/plain")}else"undefined"==typeof ClipboardEvent&&void 0!==this.hot.rootWindow.clipboardData&&(i=this.hot.rootWindow.clipboardData.getData("Text"));if("string"==typeof i&&(i=(0,l.parse)(i)),void 0===i||i&&0===i.length)return;if(!1===this.hot.runHooks("beforePaste",i,this.copyableRanges))return;const[r,n,a,u]=this.populateValues(i);this.hot.selectCell(r,n,Math.min(this.hot.countRows()-1,a),Math.min(this.hot.countCols()-1,u)),this.hot.runHooks("afterPaste",i,this.copyableRanges)}destroy(){super.destroy()}}function W(e){if((0,u.isSafari)()){const t=this.hot.getSelectedRangeLast();if(t){const{row:o,col:s}=t.highlight,i=this.hot.getCell(o,s,!0);i&&(0,c.runWithSelectedContendEditableElement)(i,()=>{this.hot.rootDocument.execCommand(e)})}}else this.hot.rootDocument.execCommand(e)}function F(e){const{rows:t}=(0,C.normalizeRanges)(e);let o=0;for(let e=0;e<t.length&&!(t[e]>=0);e++)o+=1;return{columnHeadersCount:o}}function B(){if(this.hot.isListening()){const e=this.hot.getSelectedRangeLast();if(e){const{row:t,col:o}=e.highlight,s=this.hot.getCell(t,o,!0);s&&(0,c.makeElementContentEditableAndSelectItsContent)(s)}}}function U(){if(this.hot.isListening()){const e=this.hot.getSelectedRangeLast();if(e){const{row:t,col:o}=e.highlight,s=this.hot.getCell(t,o,!0);null!=s&&s.hasAttribute("contenteditable")&&(0,c.removeContentEditableFromElementAndDeselect)(s)}}}function Y(e){e.items.push({name:"---------"},(0,d.default)(this)),S(O,this)&&e.items.push((0,p.default)(this)),S(N,this)&&e.items.push((0,f.default)(this)),S(A,this)&&e.items.push((0,g.default)(this)),e.items.push((0,m.default)(this))}function j(e,t,o,s,i){S(D,this)&&(i.value=!0),R(D,this,!1)}function z(){this.isEditorOpened()||this.hot.getSettings().fragmentSelection||this.setCopyableText()}function G(){b(L,this,U).call(this)}function $(){b(L,this,B).call(this)}function K(){b(L,this,U).call(this)}t.CopyPaste=V},37363:(e,t)=>{"use strict";t.__esModule=!0,t.resolveWithInstance=function(e,t){var s;return null==o||null===(s=o.get(e.guid))||void 0===s?void 0:s.get(t)},t.staticRegister=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"common";o.has(e)||o.set(e,new Map);const t=o.get(e);return{register:function(e,o){t.set(e,o)},getItem:function(e){return t.get(e)},hasItem:function(e){return t.has(e)},getNames:function(){return[...t.keys()]},getValues:function(){return[...t.values()]},clear:function(){o.delete(e),t.clear()}}};const o=t.collection=new Map},37396:(e,t,o)=>{"use strict";t.__esModule=!0,t.getCondition=function(e,t){if(!s[e])throw Error(`Filter condition "${e}" does not exist.`);const{condition:o,descriptor:i}=s[e];let r=t;i.inputValuesDecorator&&(r=i.inputValuesDecorator(r));return function(e){return o.apply(e.meta.instance,[].concat([e],[r]))}},t.getConditionDescriptor=function(e){if(!s[e])throw Error(`Filter condition "${e}" does not exist.`);return s[e].descriptor},t.registerCondition=function(e,t,o){o.key=e,s[e]={condition:t,descriptor:o}},o(88443);const s=t.conditions={}},37616:(e,t,o)=>{"use strict";t.__esModule=!0,t.detectSelectionType=f,t.normalizeSelectionFactory=p,t.transformSelectionToColumnDistance=function(e){const t=f(e.getSelected());if(t===n||t===l)return[];const o=p(t,{createCellCoords:e._createCellCoords.bind(e),createCellRange:e._createCellRange.bind(e)}),s=new Set;(0,i.arrayEach)(e.getSelected(),e=>{const{from:t,to:r}=o(e),n=Math.max(t.col,0),l=r.col-n+1;(0,i.arrayEach)(Array.from(new Array(l),(e,t)=>n+t),e=>{s.has(e)||s.add(e)})});const r=Array.from(s).sort((e,t)=>e-t);return(0,i.arrayReduce)(r,(e,t,o,s)=>(0!==o&&t===s[o-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e),[])},t.transformSelectionToRowDistance=function(e){const t=f(e.getSelected());if(t===n||t===l)return[];const o=p(t,{createCellCoords:e._createCellCoords.bind(e),createCellRange:e._createCellRange.bind(e)}),s=new Set;(0,i.arrayEach)(e.getSelected(),e=>{const{from:t,to:r}=o(e),n=Math.max(t.row,0),l=r.row-n+1;(0,i.arrayEach)(Array.from(new Array(l),(e,t)=>n+t),e=>{s.has(e)||s.add(e)})});const r=Array.from(s).sort((e,t)=>e-t);return(0,i.arrayReduce)(r,(e,t,o,s)=>(0!==o&&t===s[o-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e),[])},o(88443),o(85639),o(62705),o(78495),o(43554),o(15247),o(18472),o(89711),o(78675),o(73741),o(82141);var s=o(12822),i=o(18051),r=o(50929);const n=t.SELECTION_TYPE_UNRECOGNIZED=0,l=t.SELECTION_TYPE_EMPTY=1,a=t.SELECTION_TYPE_ARRAY=2,h=t.SELECTION_TYPE_OBJECT=3,c=t.SELECTION_TYPES=[h,a],u=[["number"],["number","string"],["number","undefined"],["number","string","undefined"]],d=Symbol("root"),g=Symbol("child");function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d;if(t!==d&&t!==g)throw new Error("The second argument is used internally only and cannot be overwritten.");const o=Array.isArray(e),i=t===d;let r=n;if(o){const t=e[0];if(0===e.length)r=l;else if(i&&t instanceof s.CellRange)r=h;else if(i&&Array.isArray(t))r=f(t,g);else if(e.length>=2&&e.length<=4){!e.some((e,t)=>!u[t].includes(typeof e))&&(r=a)}}return r}function p(e){let{createCellCoords:t,createCellRange:o,keepDirection:s=!1,propToCol:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!c.includes(e))throw new Error("Unsupported selection ranges schema type was provided.");return function(n){const l=e===h;let a=l?n.from.row:n[0],c=l?n.from.col:n[1],u=l?n.to.row:n[2],d=l?n.to.col:n[3];if("function"==typeof i&&("string"==typeof c&&(c=i(c)),"string"==typeof d&&(d=i(d))),(0,r.isUndefined)(u)&&(u=a),(0,r.isUndefined)(d)&&(d=c),!s){const e=a,t=c,o=u,s=d;a=Math.min(e,o),c=Math.min(t,s),u=Math.max(e,o),d=Math.max(t,s)}const g=t(a,c),f=t(u,d);return o(g,g,f)}}},37768:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726));t.ViewSize=class{constructor(){(0,i.default)(this,"currentSize",0),(0,i.default)(this,"nextSize",0),(0,i.default)(this,"currentOffset",0),(0,i.default)(this,"nextOffset",0)}setSize(e){this.currentSize=this.nextSize,this.nextSize=e}setOffset(e){this.currentOffset=this.nextOffset,this.nextOffset=e}}},37782:(e,t,o)=>{"use strict";o(10672)},38040:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(31314)),r=o(43561);class n extends i.default{build(){super.build(),(0,r.addClass)(this._element,"ht__manualRowMove--guideline")}}t.default=n},38317:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(9744);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.TrimRows=s.TrimRows},38345:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639);var i=s(o(53726)),r=o(43561),n=o(30581),l=o(87203),a=o(44233),h=s(o(80502)),c=s(o(17664)),u=o(7729),d=s(o(39908)),g=s(o(77023)),f=s(o(47173));function p(e,t,o){m(e,t),t.set(e,o)}function m(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function w(e,t,o){return e.set(v(e,t),o),o}function C(e,t){return e.get(v(e,t))}function v(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const y=t.PLUGIN_KEY="comments",E=t.PLUGIN_PRIORITY=60,S=t.META_COMMENT="comment",R=t.META_COMMENT_VALUE="value",b=t.META_STYLE="style",_=t.META_READONLY="readOnly",T=y,M=`plugin:${y}`;var I=new WeakMap,O=new WeakMap,N=new WeakMap,A=new WeakMap,H=new WeakMap,x=new WeakMap,P=new WeakSet;class k extends a.BasePlugin{constructor(){var e,t;super(...arguments),m(e=this,t=P),t.add(e),(0,i.default)(this,"range",{}),p(this,I,null),p(this,O,null),p(this,N,!1),p(this,A,!1),p(this,H,null),p(this,x,"")}static get PLUGIN_KEY(){return y}static get PLUGIN_PRIORITY(){return E}static get DEFAULT_SETTINGS(){return{displayDelay:250}}isEnabled(){return!!this.hot.getSettings()[y]}enablePlugin(){var e=this;this.enabled||(C(I,this)||(w(I,this,new h.default(this.hot.rootDocument,this.hot.isRtl(),this.hot.rootPortalElement)),C(I,this).addLocalHook("resize",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return v(P,e,Y).call(e,...o)}),this.hot.addHook("afterSetTheme",(e,t)=>{t||this.hide()})),C(O,this)||w(O,this,new c.default(this.getSetting("displayDelay"))),this.addHook("afterContextMenuDefaultOptions",e=>this.addToContextMenu(e)),this.addHook("afterRenderer",(e,t,o,s,i,r)=>v(P,this,F).call(this,e,r)),this.addHook("afterScroll",()=>v(P,this,z).call(this)),this.addHook("afterBeginEditing",()=>this.hide()),this.addHook("afterDocumentKeyDown",e=>v(P,this,j).call(this,e)),this.addHook("beforeCompositionStart",e=>v(P,this,j).call(this,e)),C(O,this).addLocalHook("hide",()=>this.hide()),C(O,this).addLocalHook("show",(e,t)=>this.showAtCell(e,t)),this.registerShortcuts(),this.registerListeners(),super.enablePlugin())}updatePlugin(){C(O,this).updateDelay(this.getSetting("displayDelay")),super.updatePlugin()}disablePlugin(){this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){const e=this.hot.getShortcutManager(),t=e.getContext("grid"),o=e.addContext(M);t.addShortcut({keys:[["Control","Alt","M"]],callback:()=>{const t=this.hot.getSelectedRangeLast();w(A,this,!0),this.hot.scrollToFocusedCell(()=>{this.setRange(t),this.show(),this.focusEditor(),e.setActiveContextName(M),this.hot._registerTimeout(()=>{w(A,this,!1)})})},stopPropagation:!0,runOnlyIf:()=>{var e;return null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight.isCell()},group:T}),o.addShortcut({keys:[["Escape"]],callback:()=>{C(I,this).setValue(C(x,this)),this.hide(),e.setActiveContextName("grid")},runOnlyIf:()=>C(I,this).isVisible()&&C(I,this).isFocused(),group:T}),o.addShortcut({keys:[["Control/Meta","Enter"]],callback:()=>{this.hide(),e.setActiveContextName("grid")},runOnlyIf:()=>C(I,this).isVisible()&&C(I,this).isFocused(),group:T}),o.addShortcut({keys:[["Shift","Tab"],["Tab"]],forwardToContext:e.getContext("grid"),callback:()=>{C(I,this).setValue(C(I,this).getValue()),this.hide(),e.setActiveContextName("grid")},group:T})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(T)}registerListeners(){const{rootDocument:e}=this.hot,t=this.getEditorInputElement();this.eventManager.addEventListener(e,"mouseover",e=>v(P,this,V).call(this,e)),this.eventManager.addEventListener(e,"mousedown",e=>v(P,this,D).call(this,e)),this.eventManager.addEventListener(e,"mouseup",()=>v(P,this,W).call(this)),this.eventManager.addEventListener(t,"focus",()=>v(P,this,U).call(this)),this.eventManager.addEventListener(t,"blur",()=>v(P,this,B).call(this)),this.eventManager.addEventListener(this.getEditorInputElement(),"mousedown",e=>v(P,this,L).call(this,e))}setRange(e){this.range=e}clearRange(){this.range={}}targetIsCellWithComment(e){const t=(0,r.closest)(e.target,"TD","TBODY");return!!(t&&(0,r.hasClass)(t,"htCommentCell")&&(0,r.closest)(t,[this.hot.rootElement]))}targetIsCommentTextArea(e){return this.getEditorInputElement()===e.target}setComment(e){if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');const t=C(I,this).getValue();let o="";null!=e?o=e:null!=t&&(o=t);const s=this.range.from.row,i=this.range.from.col;this.updateCommentMeta(s,i,{[R]:o}),this.hot.render()}setCommentAtCell(e,t,o){this.setRange({from:this.hot._createCellCoords(e,t)}),this.setComment(o)}removeComment(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');this.hot.setCellMeta(this.range.from.row,this.range.from.col,S),e&&this.hot.render(),this.hide()}removeCommentAtCell(e,t){let o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.setRange({from:this.hot._createCellCoords(e,t)}),this.removeComment(o)}getComment(){const e=this.range.from.row,t=this.range.from.col;return this.getCommentMeta(e,t,R)}getCommentAtCell(e,t){return this.getCommentMeta(e,t,R)}show(){var e;if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');const{from:{row:t,col:o}}=this.range;if(t<0||t>this.hot.countSourceRows()-1||o<0||o>this.hot.countSourceCols()-1)return!1;const s=this.hot.getCellMeta(this.range.from.row,this.range.from.col);return C(O,this).cancelHiding(),C(I,this).setValue(null!==(e=s[S]?s[S][R]:null)&&void 0!==e?e:""),C(I,this).show(),this.refreshEditor(!0),!0}showAtCell(e,t){return this.setRange({from:this.hot._createCellCoords(e,t)}),this.show()}hide(){C(I,this).hide()}refreshEditor(){if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this.range.from&&C(I,this).isVisible()))return;const{rowIndexMapper:e,columnIndexMapper:t}=this.hot,{row:o,col:s}=this.range.from;let i=e.getRenderableFromVisualIndex(o),n=t.getRenderableFromVisualIndex(s);const l=null===i;C(I,this).setPosition(0,0),null===i&&(i=e.getRenderableFromVisualIndex(e.getNearestNotHiddenIndex(o,-1))),null===n&&(n=t.getRenderableFromVisualIndex(t.getNearestNotHiddenIndex(s,-1)));const a=null===i,h=null===n;i=null!=i?i:0,n=null!=n?n:0;const{rootWindow:c,view:{_wt:u}}=this.hot,{wtTable:d}=u,g=u.getCell({row:i,col:n},!0),f=this.getCommentMeta(o,s,b);f?C(I,this).setSize(f.width,f.height):C(I,this).resetSize();const p=h?0:d.getColumnWidth(n),m=l&&!a?(0,r.outerHeight)(g):0,{left:w,top:v,width:y,height:E}=g.getBoundingClientRect(),{width:S,height:R}=C(I,this).getSize(),{innerWidth:T,innerHeight:M}=this.hot.rootWindow,O=this.hot.rootDocument.documentElement,N=(0,r.getScrollbarWidth)(this.hot.rootDocument),A=(0,r.hasVerticalScrollbar)(this.hot.rootWindow)?N:0,H=(0,r.hasHorizontalScrollbar)(this.hot.rootWindow)?N:0;let x=w+c.scrollX+p,P=v+c.scrollY+m;this.hot.isRtl()&&(x-=S+p),this.hot.isLtr()&&w+y+S>T-A?x=w+c.scrollX-S-1:this.hot.isRtl()&&x<-(O.scrollWidth-O.clientWidth)&&(x=w+c.scrollX+p+1),v+R>M-H&&(P-=R-E+1),C(I,this).setPosition(x,P),C(I,this).setReadOnlyState(this.getCommentMeta(o,s,_)),C(I,this).observeSize()}focusEditor(){C(I,this).focus()}updateCommentMeta(e,t,o){const s=this.hot.getCellMeta(e,t)[S];let i;s?(i=(0,l.deepClone)(s),(0,l.deepExtend)(i,o)):i=o,this.hot.setCellMeta(e,t,S,i)}getCommentMeta(e,t,o){const s=this.hot.getCellMeta(e,t);if(s[S])return s[S][o]}addToContextMenu(e){e.items.push({name:u.SEPARATOR},(0,d.default)(this),(0,g.default)(this),(0,f.default)(this))}getEditorInputElement(){return C(I,this).getInputElement()}destroy(){var e,t;null===(e=C(I,this))||void 0===e||e.destroy(),null===(t=C(O,this))||void 0===t||t.destroy(),super.destroy()}}function D(e){if(this.hot.view&&this.hot.view._wt&&!C(N,this)&&!this.targetIsCommentTextArea(e)){const t=(0,r.closest)(e.target,"TD","TBODY");let o=null;t&&(o=this.hot.getCoords(t)),(!t||this.range.from&&o&&(this.range.from.row!==o.row||this.range.from.col!==o.col))&&this.hide()}}function L(e){e.stopPropagation()}function V(e){const{rootDocument:t}=this.hot;if(!(C(N,this)||C(I,this).isFocused()||(0,r.hasClass)(e.target,"wtBorder")||C(H,this)===e.target)&&C(I,this))if(w(H,this,t.elementFromPoint(e.clientX,e.clientY)),this.targetIsCellWithComment(e)){const t=this.hot._createCellRange(this.hot.getCoords(e.target));C(O,this).show(t)}else(0,r.isChildOf)(e.target,t)&&!this.targetIsCommentTextArea(e)&&C(O,this).hide()}function W(){w(N,this,!1)}function F(e,t){t[S]&&t[S][R]&&(0,r.addClass)(e,t.commentedCellClassName)}function B(){w(x,this,""),this.hot.getShortcutManager().setActiveContextName("grid"),this.setComment()}function U(){w(x,this,this.getComment()),this.hot.listen(),this.hot.getShortcutManager().setActiveContextName(M)}function Y(e,t){this.updateCommentMeta(this.range.from.row,this.range.from.col,{[b]:{width:e,height:t}})}function j(e){C(I,this).isFocused()&&(0,n.stopImmediatePropagation)(e)}function z(){C(A,this)||this.hide()}t.Comments=k},38533:(e,t,o)=>{"use strict";t.__esModule=!0,t.createPaginator=function(e){let{initialPage:t=-1,size:o=()=>0,onItemSelect:i=()=>{},onClear:r=()=>{}}=e;const n=new Set;let l=(0,s.clamp)(t,-1,h()-1);function a(e,t){const o=h()-1;if(e<0&&(e=o),e>o&&(e=0),n.has(e))return-1;n.add(e);return!1===i(e,!1)&&(e=a(1===t?++e:--e,t)),e}function h(){return Math.max(o(),0)}return{setCurrentPage:function(e){e>-1&&e<h()&&!1!==i(e,!0)&&(l=e)},setPageCursorAt:function(e){e>-1&&e<h()&&(l=e)},getCurrentPage:function(){return l},toFirstItem:function(){h()>0&&(n.clear(),l=a(0,1))},toLastItem:function(){h()>0&&(n.clear(),l=a(h()-1,-1))},toNextItem:function(){h()>0&&(n.clear(),l=a(++l,1))},toPreviousItem:function(){h()>0&&(n.clear(),l=a(--l,-1))},getSize:h,clear:function(){n.clear(),l=t,r()}}},o(62705),o(78495),o(43554),o(15247),o(18472),o(89711),o(78675);var s=o(59073)},38545:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726));t.default=class{constructor(e,t){(0,i.default)(this,"hot",void 0),(0,i.default)(this,"plugin",void 0),this.hot=t,this.plugin=e}}},38856:(e,t)=>{"use strict";t.__esModule=!0;t.A11Y_TABINDEX=e=>["tabindex",e];t.A11Y_TREEGRID=()=>["role","treegrid"];t.A11Y_PRESENTATION=()=>["role","presentation"];t.A11Y_GRIDCELL=()=>["role","gridcell"];t.A11Y_GRIDCELL_BUTTON=()=>["role","gridcell button"];t.A11Y_ROWHEADER=()=>["role","rowheader"];t.A11Y_ROWGROUP=()=>["role","rowgroup"];t.A11Y_COLUMNHEADER=()=>["role","columnheader"];t.A11Y_ROW=()=>["role","row"];t.A11Y_MENU=()=>["role","menu"];t.A11Y_MENU_ITEM=()=>["role","menuitem"];t.A11Y_MENU_ITEM_CHECKBOX=()=>["role","menuitemcheckbox"];t.A11Y_COMBOBOX=()=>["role","combobox"];t.A11Y_LISTBOX=()=>["role","listbox"];t.A11Y_OPTION=()=>["role","option"];t.A11Y_CHECKBOX=()=>["role","checkbox"];t.A11Y_SCOPE_COL=()=>["scope","col"];t.A11Y_SCOPE_ROW=()=>["scope","row"];t.A11Y_TEXT=()=>["type","text"];t.A11Y_LABEL=e=>["aria-label",e];t.A11Y_HIDDEN=()=>["aria-hidden","true"];t.A11Y_DISABLED=()=>["aria-disabled","true"];t.A11Y_MULTISELECTABLE=()=>["aria-multiselectable","true"];t.A11Y_HASPOPUP=e=>["aria-haspopup",e];t.A11Y_ROWCOUNT=e=>["aria-rowcount",e];t.A11Y_COLCOUNT=e=>["aria-colcount",e];t.A11Y_ROWINDEX=e=>["aria-rowindex",e];t.A11Y_COLINDEX=e=>["aria-colindex",e];t.A11Y_EXPANDED=e=>["aria-expanded",e];t.A11Y_SORT=e=>["aria-sort",e];t.A11Y_READONLY=()=>["aria-readonly","true"];t.A11Y_INVALID=()=>["aria-invalid","true"];t.A11Y_CHECKED=e=>["aria-checked",e];t.A11Y_SELECTED=()=>["aria-selected","true"];t.A11Y_AUTOCOMPLETE=()=>["aria-autocomplete","list"];t.A11Y_CONTROLS=e=>["aria-controls",e];t.A11Y_ACTIVEDESCENDANT=e=>["aria-activedescendant",e];t.A11Y_LIVE=e=>["aria-live",e];t.A11Y_RELEVANT=e=>["aria-relevant",e];t.A11Y_SETSIZE=e=>["aria-setsize",e];t.A11Y_POSINSET=e=>["aria-posinset",e]},39010:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=l;var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(30432)),i=o(37396),r=o(79133);const n=t.CONDITION_NAME="neq";function l(e,t){return!(0,i.getCondition)(r.CONDITION_NAME,t)(e)}(0,i.registerCondition)(n,l,{name:s.FILTERS_CONDITIONS_NOT_EQUAL,inputsCount:1,showOperators:!0})},39026:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(60726);t.RENDERER_TYPE=s.RENDERER_TYPE,t.htmlRenderer=s.htmlRenderer},39157:(e,t,o)=>{"use strict";var s=o(82314);e.exports=!s(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},39602:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(87203),n=o(27277);class l{static get DEFAULT_OPTIONS(){return{mimeType:"text/plain",fileExtension:"txt",filename:"Handsontable [YYYY]-[MM]-[DD]",encoding:"utf-8",bom:!1,columnHeaders:!1,rowHeaders:!1,exportHiddenColumns:!1,exportHiddenRows:!1,range:[]}}constructor(e,t){(0,i.default)(this,"dataProvider",void 0),(0,i.default)(this,"options",void 0),this.dataProvider=e,this.options=this._mergeOptions(t),this.dataProvider.setOptions(this.options)}_mergeOptions(e){let t=(0,r.clone)(this.constructor.DEFAULT_OPTIONS);const o=new Date;return t=(0,r.extend)((0,r.clone)(l.DEFAULT_OPTIONS),t),t=(0,r.extend)(t,e),t.filename=(0,n.substitute)(t.filename,{YYYY:o.getFullYear(),MM:`${o.getMonth()+1}`.padStart(2,"0"),DD:`${o.getDate()}`.padStart(2,"0")}),t}}t.default=l},39645:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(73741),o(69326);var i=s(o(53726)),r=o(43561),n=o(18051);t.default=class{constructor(e){(0,i.default)(this,"hot",null),(0,i.default)(this,"container",null),(0,i.default)(this,"injected",!1),(0,i.default)(this,"rows",[]),(0,i.default)(this,"columns",[]),(0,i.default)(this,"samples",null),(0,i.default)(this,"settings",{useHeaders:!0}),this.hot=e}addRow(e,t){if(this.columns.length)throw new Error("Doesn't support multi-dimensional table");this.rows.length||(this.container=this.createContainer(this.hot.rootElement.className));const o={row:e};this.rows.push(o),this.samples=t,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol(e)),this.table.tr.appendChild(this.createRow(e)),0===e&&(0,r.addClass)(this.table.table,"htGhostTableFirstRow"),this.container.container.appendChild(this.table.fragment),o.table=this.table.table}addColumnHeadersRow(e){const t=this.hot.getColHeader(0);if(null!=t){const t={row:-1};this.rows.push(t),this.container=this.createContainer(this.hot.rootElement.className),this.samples=e,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol()),this.appendColumnHeadersRow(),this.container.container.appendChild(this.table.fragment),t.table=this.table.table}}addColumn(e,t){if(this.rows.length)throw new Error("Doesn't support multi-dimensional table");this.columns.length||(this.container=this.createContainer(this.hot.rootElement.className));const o={col:e};this.columns.push(o),this.samples=t,this.table=this.createTable(this.hot.table.className),this.getSetting("useHeaders")&&null!==this.hot.getColHeader(e)&&this.hot.view.appendColHeader(e,this.table.th,void 0,-1),this.table.tBody.appendChild(this.createCol(e)),this.container.container.appendChild(this.table.fragment),o.table=this.table.table}getHeights(e){this.injected||this.injectTable(),(0,n.arrayEach)(this.rows,t=>{const{height:o}=t.table.getBoundingClientRect();e(t.row,Math.ceil(o))})}getWidths(e){this.injected||this.injectTable(),(0,n.arrayEach)(this.columns,t=>{const{width:o}=t.table.getBoundingClientRect();e(t.col,Math.ceil(o))})}setSettings(e){this.settings=e}setSetting(e,t){this.settings||(this.settings={}),this.settings[e]=t}getSettings(){return this.settings}getSetting(e){return this.settings?this.settings[e]:null}createColGroupsCol(e){const t=this.hot.rootDocument.createDocumentFragment();return this.hot.hasRowHeaders()&&t.appendChild(this.createColElement(-1,-1)),this.samples.forEach(o=>{(0,n.arrayEach)(o.strings,o=>{t.appendChild(this.createColElement(o.col,e))})}),t}createRow(e){const{rootDocument:t}=this.hot,o=t.createDocumentFragment(),s=t.createElement("th");return this.hot.hasRowHeaders()&&(this.hot.view.appendRowHeader(e,s),o.appendChild(s)),this.samples.forEach(s=>{(0,n.arrayEach)(s.strings,s=>{const i=s.col,r=this.hot.getCellMeta(e,i),n=this.hot.getCellRenderer(r),l=t.createElement("td");l.setAttribute("ghost-table",1),n(this.hot,l,e,i,this.hot.colToProp(i),s.value,r),o.appendChild(l)})}),o}appendColumnHeadersRow(){const{rootDocument:e}=this.hot,t=e.createDocumentFragment(),o=[];if(this.hot.hasRowHeaders()){const s=e.createElement("th");o.push([-1,s]),t.appendChild(s)}this.samples.forEach(s=>{(0,n.arrayEach)(s.strings,s=>{const i=s.col,r=e.createElement("th");o.push([i,r]),t.appendChild(r)})}),this.table.tHead.appendChild(t),(0,n.arrayEach)(o,e=>{const[t,o]=e;this.hot.view.appendColHeader(t,o)})}createCol(e){const{rootDocument:t}=this.hot,o=t.createDocumentFragment();return this.samples.forEach(s=>{(0,n.arrayEach)(s.strings,s=>{const i=s.row,r=this.hot.getCellMeta(i,e),n=this.hot.getCellRenderer(r),l=t.createElement("td"),a=t.createElement("tr");l.setAttribute("ghost-table",1),n(this.hot,l,i,e,this.hot.colToProp(e),s.value,r),a.appendChild(l),o.appendChild(a)})}),o}clean(){this.rows.length=0,this.rows[-1]=void 0,this.columns.length=0,this.samples&&this.samples.clear(),this.samples=null,this.removeTable()}injectTable(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.injected||((e||this.hot.rootElement).appendChild(this.container.fragment),this.injected=!0)}removeTable(){this.injected&&this.container.container.parentNode&&(this.container.container.parentNode.removeChild(this.container.container),this.container=null,this.injected=!1)}createColElement(e,t){const o=this.hot.rootDocument.createElement("col");let s=0;t>=0&&e>=0&&(s=this.hot.getCellMeta(t,e).colspan);let i=this.hot.getColWidth(e);if(s>1)for(let t=e+1;t<e+s;t++)i+=this.hot.getColWidth(t);return o.style.width=`${i}px`,o}createTable(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const{rootDocument:t}=this.hot,o=t.createDocumentFragment(),s=t.createElement("table"),i=t.createElement("thead"),n=t.createElement("tbody"),l=t.createElement("colgroup"),a=t.createElement("tr"),h=t.createElement("th");return this.isVertical()&&s.appendChild(l),this.isHorizontal()&&(a.appendChild(h),i.appendChild(a),s.style.tableLayout="auto",s.style.width="auto"),s.appendChild(i),this.isVertical()&&n.appendChild(a),s.appendChild(n),(0,r.addClass)(s,e),o.appendChild(s),{fragment:o,table:s,tHead:i,tBody:n,colGroup:l,tr:a,th:h}}createContainer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const{rootDocument:t}=this.hot,o=t.createDocumentFragment(),s=t.createElement("div"),i=`htGhostTable htAutoSize ${e.trim()}`;return(0,r.addClass)(s,i),o.appendChild(s),{fragment:o,container:s}}isVertical(){return!(!this.rows.length||this.columns.length)}isHorizontal(){return!(!this.columns.length||this.rows.length)}}},39661:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){const t=e.hot.isRtl()?"end":"start";return{key:"borders:left",name(){let e=this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_BORDERS_LEFT);return(0,i.checkSelectionBorders)(this,t)&&(e=(0,i.markSelected)(e)),e},callback(o,s){const r=(0,i.checkSelectionBorders)(this,t);e.prepareBorder(s,t,r)}}};var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(30432)),i=o(52763)},39766:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(1002)),r=s(o(59702)),n=s(o(54173)),l=o(87203),a=o(13773);class h extends i.default{constructor(e,t,o,s){super(e,t,o,s,a.CLONE_TOP_INLINE_START_CORNER)}}(0,l.mixin)(h,r.default),(0,l.mixin)(h,n.default);t.default=h},39806:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(64388);t.EDITOR_TYPE=s.EDITOR_TYPE,t.PasswordEditor=s.PasswordEditor},39825:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostBottomInlineEnd",callback(e){const{selection:t,rowIndexMapper:o,columnIndexMapper:s}=e,i=parseInt(e.getSettings().fixedRowsBottom,10),r=o.getNearestNotHiddenIndex(e.countRows()-i-1,-1),n=s.getNearestNotHiddenIndex(e.countCols()-1,-1);t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(r,n)),t.markEndSource()}}},39908:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"commentsAddEdit",name(){var t;const o=null===(t=this.getSelectedRangeLast())||void 0===t?void 0:t.highlight;return null!=o&&o.isCell()&&e.getCommentAtCell(o.row,o.col)?this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_EDIT_COMMENT):this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_ADD_COMMENT)},callback(){const t=this.getSelectedRangeLast();e.setRange(t),e.show(),e.focusEditor()},disabled(){const e=this.getSelectedRangeLast();return!!(!e||e.highlight.isHeader()||this.selection.isEntireRowSelected()&&this.selection.isEntireColumnSelected()||0===this.countRenderedRows()||0===this.countRenderedCols())}}};var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(30432))},39981:e=>{"use strict";var t=TypeError;e.exports=function(e,o){if(e<o)throw new t("Not enough arguments");return e}},40258:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(85845);t.CELL_TYPE=s.CELL_TYPE,t.TimeCellType=s.TimeCellType},40418:(e,t,o)=>{"use strict";t.__esModule=!0,t.createUniqueMap=function(){let{errorIdExists:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=new Map;function o(){return[...t]}function r(e){return t.has(e)}return e=(0,s.isFunction)(e)?e:i,{addItem:function(o,s){if(r(o))throw new Error(e(o));t.set(o,s)},clear:function(){t.clear()},getId:function(e){const[t]=o().find(t=>{let[o,s]=t;return e===s&&o})||[null];return t},getItem:function(e){return t.get(e)},getItems:o,hasItem:r,removeItem:function(e){return t.delete(e)}}},o(88443),o(73741),o(37782);var s=o(6964);const i=e=>`The id '${e}' is already declared in a map.`},40521:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.replaceData=function(e,t,o,s){const{hotInstance:c,dataMap:u,dataSource:d,internalSource:g,source:f,metaManager:p,firstRun:m}=s,w=(0,i.toUpperCaseFirst)(g),C=c.getSettings();Array.isArray(C.dataSchema)?c.dataType="array":(0,r.isFunction)(C.dataSchema)?c.dataType="function":c.dataType="object";u&&u.destroy();e=c.runHooks(`before${w}`,e,m,f);const v=new n.default(c,e,p);if(t(v),"object"==typeof e&&null!==e)e.push&&e.splice||(e=[e]);else{if(null!==e)throw new Error(`${g} only accepts array of objects or array of arrays (${typeof e} given)`);{const t=v.getSchema();let o;e=[];let s=0,i=0;for(s=0,i=C.startRows;s<i;s++)if("object"!==c.dataType&&"function"!==c.dataType||!C.dataSchema)if("array"===c.dataType)o=(0,l.deepClone)(t[0]),e.push(o);else{o=[];for(let e=0,t=C.startCols;e<t;e++)o.push(null);e.push(o)}else o=(0,l.deepClone)(t),e.push(o)}}Array.isArray(e[0])&&(c.dataType="array");C.data=e,v.dataSource=e,d.data=e,d.dataType=c.dataType,d.colToProp=v.colToProp.bind(v),d.propToCol=v.propToCol.bind(v),d.countCachedColumns=v.countCachedColumns.bind(v),o(v),c.runHooks(`after${w}`,e,m,f),m||(c.runHooks("afterChange",null,g),c.render());c.getSettings().ariaTags&&(0,a.setAttribute)(c.rootElement,[(0,h.A11Y_ROWCOUNT)(-1),(0,h.A11Y_COLCOUNT)(c.countCols()+(c.view?c.countRowHeaders():0))])},o(88443),o(85639);var i=o(27277),r=o(6964),n=s(o(91347)),l=o(87203),a=o(43561),h=o(38856)},40576:(e,t,o)=>{"use strict";t.__esModule=!0,t.getListWithInsertedItems=function(e,t,o,i){const r=o.length?o[0]:void 0;return[...e.slice(0,r),...o.map((e,t)=>(0,s.isFunction)(i)?i(e,t):i),...void 0===r?[]:e.slice(r)]},t.getListWithRemovedItems=function(e,t){return(0,i.arrayFilter)(e,(e,o)=>!1===t.includes(o))},o(73741),o(90795);var s=o(6964),i=o(18051)},40672:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(50790);t.RENDERER_TYPE=s.RENDERER_TYPE,t.textRenderer=s.textRenderer},40867:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(36776);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.CollapsibleColumns=s.CollapsibleColumns},41101:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){const t="undefined"!=typeof window&&window.jQuery;if(!t)return;t.fn.handsontable=function(t){const o=this.first();let s,i=o.data("handsontable");if("string"!=typeof t){const s=t||{};return i?i.updateSettings(s):(i=new e.Core(o[0],s),o.data("handsontable",i),i.init()),o}if(i){if(void 0===i[t])throw new Error(`Handsontable do not provide action: ${t}`);for(var r=arguments.length,n=new Array(r>1?r-1:0),l=1;l<r;l++)n[l-1]=arguments[l];s=i[t].call(i,...n),"destroy"===t&&o.removeData()}return s}},o(88443)},41137:(e,t,o)=>{"use strict";var s=o(82314),i=o(6996),r=/#|\.prototype\./,n=function(e,t){var o=a[l(e)];return o===c||o!==h&&(i(t)?s(t):!!t)},l=n.normalize=function(e){return String(e).replace(r,".").toLowerCase()},a=n.data={},h=n.NATIVE="N",c=n.POLYFILL="P";e.exports=n},41209:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.default=function(e){return{key:"mergeCells",name(){const t=this.getSelectedLast();if(t){const o=e.mergedCellsCollection.get(t[0],t[1]);if(o.row===t[0]&&o.col===t[1]&&o.row+o.rowspan-1===t[2]&&o.col+o.colspan-1===t[3])return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_UNMERGE_CELLS)}return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_MERGE_CELLS)},callback(){const t=this.getSelectedRangeLast();if(!t)return;t.setDirection(this.isRtl()?"NE-SW":"NW-SE");const{from:o,to:s}=t;e.toggleMerge(t),this.selectCell(o.row,o.col,s.row,s.col,!1)},disabled(){const e=this.getSelectedLast();if(!e)return!0;return r.default.isSingleCell({row:e[0],col:e[1],rowspan:e[2]-e[0]+1,colspan:e[3]-e[1]+1})||this.selection.isSelectedByCorner()},hidden:!1}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(30432)),r=s(o(97559))},41512:(e,t,o)=>{"use strict";var s=o(10028),i=o(54090),r=o(19952),n=o(97610),l=o(73254),a=o(28041),h=o(58511),c=o(69822),u=o(85442),d=o(66329),g=o(69262),f=o(39157),p=o(8302);e.exports=function(e,t,o,m){var w="stackTraceLimit",C=m?2:1,v=e.split("."),y=v[v.length-1],E=s.apply(null,v);if(E){var S=E.prototype;if(!p&&i(S,"cause")&&delete S.cause,!o)return E;var R=s("Error"),b=t(function(e,t){var o=u(m?t:e,void 0),s=m?new E(e):new E;return void 0!==o&&r(s,"message",o),g(s,b,s.stack,2),this&&n(S,this)&&c(s,this,b),arguments.length>C&&d(s,arguments[C]),s});if(b.prototype=S,"Error"!==y?l?l(b,R):a(b,R,{name:!0}):f&&w in E&&(h(b,E,w),h(b,E,"prepareStackTrace")),a(b,E),!p)try{S.name!==y&&r(S,"name",y),S.constructor=b}catch(e){}return b}}},41626:(e,t,o)=>{"use strict";var s,i,r,n=o(82314),l=o(6996),a=o(19895),h=o(721),c=o(15058),u=o(80221),d=o(92754),g=o(8302),f=d("iterator"),p=!1;[].keys&&("next"in(r=[].keys())?(i=c(c(r)))!==Object.prototype&&(s=i):p=!0),!a(s)||n(function(){var e={};return s[f].call(e)!==e})?s={}:g&&(s=h(s)),l(s[f])||u(s,f,function(){return this}),e.exports={IteratorPrototype:s,BUGGY_SAFARI_ITERATORS:p}},41829:(e,t,o)=>{"use strict";var s=o(12947),i=o(86713),r=o(68999),n=s(s.bind);e.exports=function(e,t){return i(e),void 0===t?e:r?n(e,t):function(){return e.apply(t,arguments)}}},41846:(e,t,o)=>{"use strict";var s=o(76277),i=o(65985),r=o(281);s({target:"Object",stat:!0},{fromEntries:function(e){var t={};return i(e,function(e,o){r(t,e,o)},{AS_ENTRIES:!0}),t}})},41876:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(12822);class n extends r.Selection{constructor(e,t){super(e,null),(0,i.default)(this,"visualCellRange",null),this.visualCellRange=t||null,this.commit()}add(e){return null===this.visualCellRange?this.visualCellRange=this.settings.createCellRange(e):this.visualCellRange.expand(e),this}clear(){return this.visualCellRange=null,super.clear()}trimToVisibleCellsRangeOnly(e){let{from:t,to:o}=e,s=this.getNearestNotHiddenCoords(t,1),i=this.getNearestNotHiddenCoords(o,-1);return null===s||null===i?null:((s.row>i.row||s.col>i.col)&&(s=t,i=o),this.settings.createCellRange(s,s,i))}getNearestNotHiddenCoords(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;const s=this.getNearestNotHiddenIndex(this.settings.rowIndexMapper,e.row,t);if(null===s)return null;const i=this.getNearestNotHiddenIndex(this.settings.columnIndexMapper,e.col,o);return null===i?null:this.settings.createCellCoords(s,i)}getNearestNotHiddenIndex(e,t,o){return t<0?t:e.getNearestNotHiddenIndex(t,o)}commit(){if(null===this.visualCellRange)return this;const e=this.trimToVisibleCellsRangeOnly(this.visualCellRange);return this.cellRange=null===e?null:this.createRenderableCellRange(e.from,e.to),this}syncWith(e){const t=e.from.clone().normalize(),o="N-S"===e.getVerticalDirection()?1:-1,s="W-E"===e.getHorizontalDirection()?1:-1,i=this.settings.visualToRenderableCoords(this.visualCellRange.highlight);let r=null;if(null!==i&&null!==i.col&&null!==i.row||(r=this.getNearestNotHiddenCoords(t,o,s)),null!==r&&e.overlaps(r)){const t=e.highlight.clone();if(t.row>=0&&(t.row=r.row),t.col>=0&&(t.col=r.col),null===this.cellRange){const e=this.settings.visualToRenderableCoords(t);this.cellRange=this.settings.createCellRange(e)}e.setHighlight(t)}return"focus"===this.settings.selectionType&&null!==i&&null===r&&e.setHighlight(this.visualCellRange.highlight),this}getCorners(){const{from:e,to:t}=this.cellRange;return[Math.min(e.row,t.row),Math.min(e.col,t.col),Math.max(e.row,t.row),Math.max(e.col,t.col)]}getVisualCorners(){const e=this.settings.renderableToVisualCoords(this.cellRange.getTopStartCorner()),t=this.settings.renderableToVisualCoords(this.cellRange.getBottomEndCorner());return[e.row,e.col,t.row,t.col]}createRenderableCellRange(e,t){const o=this.settings.visualToRenderableCoords(e),s=this.settings.visualToRenderableCoords(t);return null===o.row||null===o.col||null===s.row||null===s.col?null:this.settings.createCellRange(o,o,s)}}t.default=n},42059:(e,t,o)=>{"use strict";t.__esModule=!0,t.arrayDiff=function(e,t){const o=[];let s=0,i=0;for(;s<e.length&&i<t.length;s++,i++)e[s]!==t[i]&&o.push({op:"replace",index:i,oldValue:e[s],newValue:t[i]});for(;s<t.length;s++)o.push({op:"insert",index:s,oldValue:void 0,newValue:t[s]});for(;i<e.length;i++)o.push({op:"remove",index:i,oldValue:e[i],newValue:void 0});return o},o(85639)},42127:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.areValidSortStates=function(e){if(e.some(e=>!1===function(e){if(!1===(0,r.isObject)(e))return!1;const{column:t,sortOrder:o}=e;return Number.isInteger(t)&&[u,d].includes(o)}(e)))return!1;const t=e.map(e=>{let{column:t}=e;return t});return new Set(t).size===t.length},t.createDateTimeCompareFunction=function(e,t,o){return function(s,r){const{sortEmptyCells:n}=o;if(s===r)return a.DO_NOT_SWAP;if((0,l.isEmpty)(s))return(0,l.isEmpty)(r)?a.DO_NOT_SWAP:n&&"asc"===e?a.FIRST_BEFORE_SECOND:a.FIRST_AFTER_SECOND;if((0,l.isEmpty)(r))return n&&"asc"===e?a.FIRST_AFTER_SECOND:a.FIRST_BEFORE_SECOND;const h=(0,i.default)(s,t),c=(0,i.default)(r,t);return h.isValid()?c.isValid()?c.isAfter(h)?"asc"===e?a.FIRST_BEFORE_SECOND:a.FIRST_AFTER_SECOND:c.isBefore(h)?"asc"===e?a.FIRST_AFTER_SECOND:a.FIRST_BEFORE_SECOND:a.DO_NOT_SWAP:a.FIRST_BEFORE_SECOND:a.FIRST_AFTER_SECOND}},t.getHeaderSpanElement=function(e){return e.querySelector(`.${g}`)},t.getNextSortOrder=function(e){if(e===d)return;if(e===u)return d;return u},t.isFirstLevelColumnHeader=function(e,t){if(e<0||!t.parentNode)return!1;const o=t.parentNode.parentNode.childNodes;if(Array.from(o).indexOf(t.parentNode)-o.length!==-1)return!1;return!0},t.warnAboutPluginsConflict=function(e,t){(0,h.warn)(c.toSingleLine`Plugins \`columnSorting\` and \`multiColumnSorting\` should not be enabled simultaneously.\x20
|
|
45
45
|
Only \`${e}\` will work. The \`${t}\` plugin will remain disabled.`)},t.wasHeaderClickedProperly=function(e,t,o){return-1===e&&t>=0&&!1===(0,n.isRightClick)(o)},o(62705),o(78495),o(43554),o(15247),o(18472),o(89711),o(78675),o(73741),o(90795),o(82141);var i=s(o(86798)),r=o(87203),n=o(30581),l=o(50929),a=o(17374),h=o(88291),c=o(5651);const u=t.ASC_SORT_STATE="asc",d=t.DESC_SORT_STATE="desc",g=t.HEADER_SPAN_CLASS="colHeader"},42203:(e,t,o)=>{"use strict";t.__esModule=!0,t.isContextObject=c,o(88443),o(85639),o(73741),o(7307),o(69326);var s=o(40418),i=o(98433),r=o(50929),n=o(6964),l=o(87203),a=o(5651);const h=Symbol("shortcut-context");function c(e){return(0,l.isObject)(e)&&e.__kindOf===h}t.createContext=e=>{const t=(0,s.createUniqueMap)({errorIdExists:t=>`The "${t}" shortcut is already registered in the "${e}" context.`}),o=function(){let{keys:e,callback:o,group:s,runOnlyIf:l=()=>!0,captureCtrl:h=!1,preventDefault:u=!0,stopPropagation:d=!1,relativeToGroup:g,position:f,forwardToContext:p}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,r.isUndefined)(s))throw new Error("You need to define the shortcut's group.");if(!1===(0,n.isFunction)(o))throw new Error("The shortcut's callback needs to be a function.");if(!1===Array.isArray(e))throw new Error(a.toSingleLine`Pass the shortcut\'s keys as an array of arrays,\x20
|
|
@@ -49,7 +49,7 @@ the last node, the hide column modification can be applied.`);const{crossHiddenC
|
|
|
49
49
|
fix your setup.`}get(e,t){var o;return!!this.mergedCellsMatrix.has(e)&&(null!==(o=this.mergedCellsMatrix.get(e).get(t))&&void 0!==o&&o)}getByRange(e){const{row:t,col:o}=e.getTopStartCorner(),{row:s,col:i}=e.getBottomEndCorner(),r=this.mergedCells.length;let n=!1;for(let e=0;e<r;e++){const r=this.mergedCells[e],{row:l,col:a,rowspan:h,colspan:c}=r;if(l>=t&&l+h-1<=s&&a>=o&&a+c-1<=i){n=r;break}}return n}filterOverlappingMergeCells(e){const t=new Set;this.mergedCells.forEach(e=>{const{row:o,col:s,colspan:i,rowspan:r}=e;for(let e=o;e<o+r;e++)for(let o=s;o<s+i;o++)t.add(`r${e},c${o}`)});return e.filter(e=>{const{row:o,col:s,colspan:i,rowspan:r}=e,n=new Set;let a=!1;for(let h=o;h<o+r;h++){for(let o=s;o<s+i;o++){const s=`r${h},c${o}`;if(t.has(s)){(0,l.warn)(g.IS_OVERLAPPING_WARNING(e)),a=!0;break}n.add(s)}if(a)break}return a||t.add(...n),!a})}getWithinRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{row:o,col:s}=e.getTopStartCorner(),{row:i,col:r}=e.getBottomEndCorner(),n=[];for(let e=o;e<=i;e++)for(let o=s;o<=r;o++){const s=this.get(e,o);s&&(t||!t&&s.row===e&&s.col===o)&&n.push(s)}return n}add(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=e.row,s=e.col,i=e.rowspan,n=e.colspan,a=new r.default(o,s,i,n,this.hot._createCellCoords,this.hot._createCellRange),h=this.get(o,s),c=!t&&this.isOverlapping(a);return h||c?(c&&(0,l.warn)(g.IS_OVERLAPPING_WARNING(a)),!1):(this.hot&&a.normalize(this.hot),this.mergedCells.push(a),u(d,this,p).call(this,a),a)}remove(e,t){const o=this.get(e,t),s=o?this.mergedCells.indexOf(o):-1;return!(!o||-1===s)&&(this.mergedCells.splice(s,1),u(d,this,m).call(this,o),o)}clear(){(0,a.arrayEach)(this.mergedCells,e=>{let{row:t,col:o,rowspan:s,colspan:i}=e;(0,n.rangeEach)(t,t+s,e=>{(0,n.rangeEach)(o,o+i,t=>{const o=this.hot.getCell(e,t);o&&(o.removeAttribute("rowspan"),o.removeAttribute("colspan"),o.style.display="")})})}),this.mergedCells.length=0,this.mergedCellsMatrix=new Map}isOverlapping(e){const t=e.getRange();for(let e=0;e<this.mergedCells.length;e++){if(this.mergedCells[e].getRange().overlaps(t))return!0}return!1}isFirstRenderableMergedCell(e,t){const o=this.get(e,t);if(!o)return!1;const{row:s,col:i,rowspan:r,colspan:l}=o,a=this.hot.view.getActiveOverlayName(),h=["top","top_inline_start_corner"].includes(a)?0:this.hot.getFirstRenderedVisibleRow(),c=["inline_start","top_inline_start_corner","bottom_inline_start_corner"].includes(a)?0:this.hot.getFirstRenderedVisibleColumn(),u=(0,n.clamp)(h,s,s+r-1),d=(0,n.clamp)(c,i,i+l-1);return this.hot.rowIndexMapper.getNearestNotHiddenIndex(u,1)===e&&this.hot.columnIndexMapper.getNearestNotHiddenIndex(d,1)===t}getFirstRenderableCoords(e,t){const o=this.get(e,t);if(!o||this.isFirstRenderableMergedCell(e,t))return this.hot._createCellCoords(e,t);const s=this.hot.rowIndexMapper.getNearestNotHiddenIndex(o.row,1),i=this.hot.columnIndexMapper.getNearestNotHiddenIndex(o.col,1);return this.hot._createCellCoords(s,i)}getStartMostColumnIndex(e,t){const o=u(d,this,f).call(this,e,"col",-1);let s=t;for(let e=0;e<o.length;e++)if(o[e]<=t){s=o[e];break}return s}getEndMostColumnIndex(e,t){const o=u(d,this,f).call(this,e,"col",1);let s=t;for(let e=0;e<o.length;e++)if(o[e]>=t){s=o[e];break}return s}getTopMostRowIndex(e,t){const o=u(d,this,f).call(this,e,"row",-1);let s=t;for(let e=0;e<o.length;e++)if(o[e]<=t){s=o[e];break}return s}getBottomMostRowIndex(e,t){const o=u(d,this,f).call(this,e,"row",1);let s=t;for(let e=0;e<o.length;e++)if(o[e]>=t){s=o[e];break}return s}shiftCollections(e,t,o){const s=[0,0];switch(e){case"right":s[0]+=o;break;case"left":s[0]-=o;break;case"down":s[1]+=o;break;case"up":s[1]-=o}const i=[];this.mergedCells.forEach(e=>{e.shift(s,t),e.removed&&i.push(e)}),i.forEach(e=>{this.mergedCells.splice(this.mergedCells.indexOf(e),1)}),this.mergedCellsMatrix.clear(),this.mergedCells.forEach(e=>{u(d,this,p).call(this,e)})}}function f(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const s=new Map,i=1===o?e.getTopStartCorner():e.getBottomEndCorner(),r=1===o?e.getBottomEndCorner():e.getTopStartCorner();for(let e=i.row;1===o?e<=r.row:e>=r.row;e+=o)for(let n=i.col;1===o?n<=r.col:n>=r.col;n+=o){const i="row"===t?e:n,r=this.get(e,n);let l=i;r&&(l=1===o?r[t]+r[`${t}span`]-1:r[t]),s.has(i)||s.set(i,new Set),s.get(i).add(l)}return Array.from(new Set(Array.from(s.entries()).filter(e=>{let[,t]=e;return 1===t.size}).flatMap(e=>{let[,t]=e;return Array.from(t)})))}function p(e){for(let t=e.row;t<e.row+e.rowspan;t++)for(let o=e.col;o<e.col+e.colspan;o++)this.mergedCellsMatrix.has(t)||this.mergedCellsMatrix.set(t,new Map),this.mergedCellsMatrix.get(t).set(o,e)}function m(e){for(let t=e.row;t<e.row+e.rowspan;t++)for(let o=e.col;o<e.col+e.colspan;o++)this.mergedCellsMatrix.get(t).delete(o)}t.default=g},44718:(e,t,o)=>{"use strict";o(88443);var s=o(60423);t.__esModule=!0;var i=s(o(53726));o(85639),o(62705),o(78495),o(43554),o(15247),o(18472),o(89711),o(78675);var r=o(44233),n=o(8829),l=o(87203),a=o(5651),h=o(88291),c=o(6478);function u(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function d(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const g="undoRedo",f=t.PLUGIN_KEY="undoRedo",p=t.PLUGIN_PRIORITY=1e3;n.Hooks.getSingleton().register("beforeUndo"),n.Hooks.getSingleton().register("afterUndo"),n.Hooks.getSingleton().register("beforeRedo"),n.Hooks.getSingleton().register("afterRedo");const m=new Set;var w=new WeakSet;class C extends r.BasePlugin{static get PLUGIN_KEY(){return f}static get PLUGIN_PRIORITY(){return p}static get SETTING_KEYS(){return!0}constructor(e){super(e),u(this,w),(0,i.default)(this,"doneActions",[]),(0,i.default)(this,"undoneActions",[]),(0,i.default)(this,"ignoreNewActions",!1),(0,c.registerActions)(e,this)}isEnabled(){return!!this.hot.getSettings().undo}enablePlugin(){var e=this;this.enabled||(this.addHook("afterChange",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return d(w,e,v).call(e,...o)}),this.registerShortcuts(),d(w,this,y).call(this),super.enablePlugin())}disablePlugin(){super.disablePlugin(),this.clear(),this.unregisterShortcuts(),d(w,this,E).call(this)}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("grid"),t={runOnlyIf:e=>!e.altKey,group:g};e.addShortcuts([{keys:[["Control/Meta","z"]],callback:()=>{this.undo()}},{keys:[["Control/Meta","y"],["Control/Meta","Shift","z"]],callback:()=>{this.redo()}}],t)}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(g)}done(e,t){if(this.ignoreNewActions)return;if("UndoRedo.undo"===t||"UndoRedo.redo"===t||"auto"===t)return;const o=this.doneActions.slice();if(!1===this.hot.runHooks("beforeUndoStackChange",o,t))return;const s=e(),i=this.undoneActions.slice();this.doneActions.push(s),this.hot.runHooks("afterUndoStackChange",o,this.doneActions.slice()),this.hot.runHooks("beforeRedoStackChange",i),this.undoneActions.length=0,this.hot.runHooks("afterRedoStackChange",i,this.undoneActions.slice())}undo(){if(!this.isUndoAvailable())return;const e=this.doneActions.slice();this.hot.runHooks("beforeUndoStackChange",e);const t=this.doneActions.pop();this.hot.runHooks("afterUndoStackChange",e,this.doneActions.slice());const o=(0,l.deepClone)(t);if(!1===this.hot.runHooks("beforeUndo",o))return;this.ignoreNewActions=!0;const s=this.undoneActions.slice();this.hot.runHooks("beforeRedoStackChange",s),t.undo(this.hot,()=>{this.ignoreNewActions=!1,this.undoneActions.push(t)}),this.hot.runHooks("afterRedoStackChange",s,this.undoneActions.slice()),this.hot.runHooks("afterUndo",o)}redo(){if(!this.isRedoAvailable())return;const e=this.undoneActions.slice();this.hot.runHooks("beforeRedoStackChange",e);const t=this.undoneActions.pop();this.hot.runHooks("afterRedoStackChange",e,this.undoneActions.slice());const o=(0,l.deepClone)(t);if(!1===this.hot.runHooks("beforeRedo",o))return;this.ignoreNewActions=!0;const s=this.doneActions.slice();this.hot.runHooks("beforeUndoStackChange",s),t.redo(this.hot,()=>{this.ignoreNewActions=!1,this.doneActions.push(t)}),this.hot.runHooks("afterUndoStackChange",s,this.doneActions.slice()),this.hot.runHooks("afterRedo",o)}isUndoAvailable(){return this.doneActions.length>0}isRedoAvailable(){return this.undoneActions.length>0}clear(){this.doneActions.length=0,this.undoneActions.length=0}destroy(){this.clear(),this.doneActions=null,this.undoneActions=null,super.destroy()}}function v(e,t){"loadData"===t&&this.clear()}function y(){const e=e=>{m.has(e)||((0,h.warn)(a.toSingleLine`The "${e}" method is deprecated and it will be removed\x20
|
|
50
50
|
from the Core API in the future. Please use the method from the UndoRedo plugin\x20
|
|
51
51
|
(e.g. \`hotInstance.getPlugin("undoRedo").${e}()\`).`),m.add(e))};this.hot.undo=()=>{e("undo"),this.undo()},this.hot.redo=()=>{e("redo"),this.redo()},this.hot.isUndoAvailable=()=>(e("isUndoAvailable"),this.isUndoAvailable()),this.hot.isRedoAvailable=()=>(e("isRedoAvailable"),this.isRedoAvailable()),this.hot.clearUndo=()=>{e("clear"),this.clear()},this.hot.undoRedo=this}function E(){delete this.hot.undo,delete this.hot.redo,delete this.hot.isUndoAvailable,delete this.hot.isRedoAvailable,delete this.hot.clearUndo,delete this.hot.undoRedo}t.UndoRedo=C},44720:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(62705),o(78495),o(43554),o(15247),o(18472),o(89711),o(78675),o(73741),o(16178),o(90795);var i=o(44233),r=o(43561),n=o(59073),l=o(18051),a=o(7729),h=o(8829),c=s(o(87965)),u=s(o(64762)),d=o(65733);function g(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function f(e,t){return e.get(m(e,t))}function p(e,t,o){return e.set(m(e,t),o),o}function m(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}h.Hooks.getSingleton().register("beforeHideRows"),h.Hooks.getSingleton().register("afterHideRows"),h.Hooks.getSingleton().register("beforeUnhideRows"),h.Hooks.getSingleton().register("afterUnhideRows");const w=t.PLUGIN_KEY="hiddenRows",C=t.PLUGIN_PRIORITY=320;var v=new WeakMap,y=new WeakSet;class E extends i.BasePlugin{constructor(){var e,t;super(...arguments),g(e=this,t=y),t.add(e),function(e,t,o){g(e,t),t.set(e,o)}(this,v,null)}static get PLUGIN_KEY(){return w}static get PLUGIN_PRIORITY(){return C}static get DEFAULT_SETTINGS(){return{copyPasteEnabled:!0,indicators:!1,rows:[]}}isEnabled(){return!!this.hot.getSettings()[w]}enablePlugin(){var e=this;this.enabled||(p(v,this,new d.HidingMap),f(v,this).addLocalHook("init",()=>m(y,this,M).call(this)),this.hot.rowIndexMapper.registerMap(this.pluginName,f(v,this)),this.addHook("afterContextMenuDefaultOptions",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return m(y,e,T).call(e,...o)}),this.addHook("afterGetCellMeta",(e,t,o)=>m(y,this,R).call(this,e,t,o)),this.addHook("modifyRowHeight",(e,t)=>m(y,this,S).call(this,e,t)),this.addHook("afterGetRowHeader",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return m(y,e,_).call(e,...o)}),this.addHook("modifyCopyableRange",e=>m(y,this,b).call(this,e)),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){super.disablePlugin(),this.hot.rowIndexMapper.unregisterMap(this.pluginName),this.resetCellsMeta()}showRows(e){const t=this.getHiddenRows(),o=this.isValidConfig(e);let s=t;const i=f(v,this).getValues().slice(),r=e.length>0;if(o&&r){const t=e.map(e=>this.hot.toPhysicalRow(e));(0,l.arrayEach)(t,e=>{i[e]=!1}),s=(0,l.arrayReduce)(i,(e,t,o)=>(t&&e.push(this.hot.toVisualRow(o)),e),[])}!1!==this.hot.runHooks("beforeUnhideRows",t,s,o&&r)&&(o&&r&&f(v,this).setValues(i),this.hot.runHooks("afterUnhideRows",t,s,o&&r,o&&s.length<t.length))}showRow(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];this.showRows(t)}hideRows(e){const t=this.getHiddenRows(),o=this.isValidConfig(e);let s=t;o&&(s=Array.from(new Set(t.concat(e))));!1!==this.hot.runHooks("beforeHideRows",t,s,o)&&(o&&this.hot.batchExecution(()=>{(0,l.arrayEach)(e,e=>{f(v,this).setValueAtIndex(this.hot.toPhysicalRow(e),!0)})},!0),this.hot.runHooks("afterHideRows",t,s,o,o&&s.length>t.length))}hideRow(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];this.hideRows(t)}getHiddenRows(){return(0,l.arrayMap)(f(v,this).getHiddenIndexes(),e=>this.hot.toVisualRow(e))}isHidden(e){return f(v,this).getValueAtIndex(this.hot.toPhysicalRow(e))||!1}isValidConfig(e){const t=this.hot.countRows();return!!(Array.isArray(e)&&e.length>0)&&e.every(e=>Number.isInteger(e)&&e>=0&&e<t)}resetCellsMeta(){(0,l.arrayEach)(this.hot.getCellsMeta(),e=>{e.skipRowOnPaste=!1})}destroy(){p(v,this,null),super.destroy()}}function S(e,t){return this.isHidden(t)?0:e}function R(e,t,o){if(!1===this.getSetting("copyPasteEnabled")&&this.isHidden(e)&&(o.skipRowOnPaste=!0),this.isHidden(e-1))o.className=o.className||"",-1===o.className.indexOf("afterHiddenRow")&&(o.className+=" afterHiddenRow");else if(o.className){const e=o.className.split(" ");if(e.length>0){const t=e.indexOf("afterHiddenRow");t>-1&&e.splice(t,1),o.className=e.join(" ")}}}function b(e){if(this.getSetting("copyPasteEnabled"))return e;const t=[],o=(e,o,s,i)=>{t.push({startRow:e,endRow:o,startCol:s,endCol:i})};return(0,l.arrayEach)(e,e=>{let t=!0,s=0;(0,n.rangeEach)(e.startRow,e.endRow,i=>{this.isHidden(i)?(t||o(s,i-1,e.startCol,e.endCol),t=!0):(t&&(s=i),i===e.endRow&&o(s,i,e.startCol,e.endCol),t=!1)})}),t}function _(e,t){if(!this.getSetting("indicators")||e<0)return;const o=[];e>=1&&this.isHidden(e-1)&&o.push("afterHiddenRow"),e<this.hot.countRows()-1&&this.isHidden(e+1)&&o.push("beforeHiddenRow"),(0,r.addClass)(t,o)}function T(e){e.items.push({name:a.SEPARATOR},(0,c.default)(this),(0,u.default)(this))}function M(){const e=this.getSetting("rows");Array.isArray(e)&&this.hideRows(e)}t.HiddenRows=E},44890:(e,t,o)=>{"use strict";t.__esModule=!0,o(88443),o(73741),o(89663);var s=o(35464);function i(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function r(e,t){return e.get(l(e,t))}function n(e,t,o){return e.set(l(e,t),o),o}function l(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var a=new WeakMap,h=new WeakMap;class c extends s.StretchStrategy{constructor(){super(...arguments),i(this,a,0),i(this,h,-1)}prepare(e){super.prepare(e),n(a,this,0),n(h,this,-1)}setColumnBaseWidth(e,t){super.setColumnBaseWidth(e,t),n(h,this,e),n(a,this,t)}calculate(){if(-1===r(h,this))return;const e=Array.from(this.baseWidths).reduce((e,t)=>{let[,o]=t;return e+o},0),t=Math.max(this.viewportWidth-e+r(a,this),0);this.stretchedWidths.set(r(h,this),t)}}t.StretchLastStrategy=c},45021:(e,t,o)=>{"use strict";var s=o(57754),i=o(9370);e.exports=function(e,t,o){return o.get&&s(o.get,t,{getter:!0}),o.set&&s(o.set,t,{setter:!0}),i.f(e,t,o)}},45110:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443);var i=o(18051),r=s(o(10817));function n(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function l(e,t){return e.get(a(e,t))}function a(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,c=new WeakMap,u=new WeakMap;t.default=class{constructor(e){var t,o,s;n(this,h,new Map),n(this,c,new Map),n(this,u,null),o=this,s=e,(t=u).set(a(t,o),s)}getRoots(){return Array.from(l(h,this).values())}getRootByColumn(e){let t;return l(c,this).has(e)&&(t=l(h,this).get(l(c,this).get(e))),t}getNode(e,t){const o=this.getRootByColumn(t);if(!o)return;const s=t-l(c,this).get(t);let i,r=0;return o.walkDown(o=>{const{data:{origColspan:n,headerLevel:l}}=o;if(e===l){if(s>=r&&s<=r+n-1)return i=o,i.data.isRoot=t===i.data.columnIndex,!1;r+=n}}),i}rebuildTreeIndex(){let e=0;l(c,this).clear(),(0,i.arrayEach)(l(h,this),t=>{let[,{data:{colspan:o}}]=t;for(let t=e;t<e+o;t++)l(c,this).set(t,e);e+=o})}buildTree(){this.clear();const e=l(u,this).getColumnsCount();let t=0;for(;t<e;){const e=l(u,this).getHeaderSettings(0,t),o=new r.default;l(h,this).set(t,o),this.buildLeaves(o,t,0,e.origColspan),t+=e.origColspan}this.rebuildTreeIndex()}buildLeaves(e,t,o){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const n=l(u,this).getHeadersSettings(o,t,s);o+=1,(0,i.arrayEach)(n,s=>{const i={...s,headerLevel:o-1,columnIndex:t};let n;1===o?(e.data=i,n=e):(n=new r.default(i),e.addChild(n)),o<l(u,this).getLayersCount()&&this.buildLeaves(n,t,o,s.origColspan),t+=s.origColspan})}clear(){l(h,this).clear(),l(c,this).clear()}}},45274:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(85639),o(73741),o(69326);var i=s(o(53726)),r=o(64310),n=o(22151),l=o(59073),a=o(18051);class h extends r.BaseAction{constructor(e){let{index:t,indexes:o,data:s,amount:r,headers:n,columnPositions:l,rowPositions:a,fixedColumnsStart:h,removedCellMetas:c}=e;super("remove_col"),(0,i.default)(this,"index",void 0),(0,i.default)(this,"indexes",void 0),(0,i.default)(this,"data",void 0),(0,i.default)(this,"amount",void 0),(0,i.default)(this,"headers",void 0),(0,i.default)(this,"columnPositions",void 0),(0,i.default)(this,"rowPositions",void 0),(0,i.default)(this,"fixedColumnsStart",void 0),(0,i.default)(this,"removedCellMetas",void 0),this.index=t,this.indexes=o,this.data=s,this.amount=r,this.headers=n,this.columnPositions=l.slice(0),this.rowPositions=a.slice(0),this.fixedColumnsStart=h,this.removedCellMetas=c}static startRegisteringEvents(e,t){e.addHook("beforeRemoveCol",(o,s,i,r)=>{t.done(()=>{const t=e.getSourceDataArray(),i=(e.countCols()+o)%e.countCols(),r=i+s-1,a=[],c=[],u=[];return(0,l.rangeEach)(t.length-1,o=>{const s=[],n=t[o];(0,l.rangeEach)(i,r,t=>{s.push(n[e.toPhysicalColumn(t)])}),a.push(s)}),(0,l.rangeEach)(s-1,t=>{u.push(e.toPhysicalColumn(i+t))}),Array.isArray(e.getSettings().colHeaders)&&(0,l.rangeEach)(s-1,t=>{c.push(e.getSettings().colHeaders[e.toPhysicalColumn(i+t)]||null)}),new h({index:i,indexes:u,data:a,amount:s,headers:c,columnPositions:e.columnIndexMapper.getIndexesSequence(),rowPositions:e.rowIndexMapper.getIndexesSequence(),fixedColumnsStart:e.getSettings().fixedColumnsStart,removedCellMetas:(0,n.getCellMetas)(e,0,e.countRows(),i,r)})},r)})}undo(e,t){e.getSettings().fixedColumnsStart=this.fixedColumnsStart;const o=this.indexes.slice(0).sort(),s=(e,t,s)=>s[this.indexes.indexOf(o[t])],i=this.data.length,r=[];for(let e=0;e<i;e++)r.push((0,a.arrayMap)(this.data[e],s));const n=(0,a.arrayMap)(this.headers,s),l=[];e.columnIndexMapper.setIndexesSequence(this.columnPositions),e.alter("insert_col_start",e.toVisualColumn(this.indexes[0]),this.indexes.length,"UndoRedo.undo"),e.batchExecution(()=>{e.rowIndexMapper.setIndexesSequence(this.rowPositions),e.columnIndexMapper.setIndexesSequence(this.columnPositions)},!0),(0,a.arrayEach)(e.getSourceDataArray(),(e,t)=>{(0,a.arrayEach)(o,(o,s)=>{e[o]=r[t][s],l.push([t,o,e[o]])})}),void 0!==this.headers&&(0,a.arrayEach)(n,(t,s)=>{e.getSettings().colHeaders[o[s]]=t}),this.removedCellMetas.forEach(t=>{let[o,s,i]=t;e.setCellMetaObject(o,s,i)}),e.addHookOnce("afterViewRender",t),e.setSourceDataAtCell(l,null,null,"UndoRedo.undo")}redo(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.redo")}}t.RemoveColumnAction=h},45361:(e,t,o)=>{"use strict";var s=o(64976),i=o(54090),r=o(97610),n=o(69322),l=o(44524),a=RegExp.prototype;e.exports=n.correct?function(e){return e.flags}:function(e){return n.correct||!r(a,e)||i(e,"flags")?e.flags:s(l,e)}},45472:(e,t,o)=>{"use strict";var s=o(39157),i=o(64976),r=o(96088),n=o(96891),l=o(71652),a=o(62672),h=o(54090),c=o(9230),u=Object.getOwnPropertyDescriptor;t.f=s?u:function(e,t){if(e=l(e),t=a(t),c)try{return u(e,t)}catch(e){}if(h(e,t))return n(!i(r.f,e,t),e[t])}},45556:(e,t,o)=>{"use strict";var s=o(77618),i=o(63884);e.exports=function(e,t,o,r){try{return r?t(s(o)[0],o[1]):t(o)}catch(t){i(e,"throw",t)}}},45640:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(17002);t.EDITOR_TYPE=s.EDITOR_TYPE,t.NumericEditor=s.NumericEditor},45970:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726));t.RenderedAllColumnsCalculationType=class{constructor(){(0,i.default)(this,"count",0),(0,i.default)(this,"startColumn",0),(0,i.default)(this,"endColumn",0),(0,i.default)(this,"startPosition",0),(0,i.default)(this,"isVisibleInTrimmingContainer",!0)}initialize(e){let{totalColumns:t}=e;this.count=t,this.endColumn=this.count-1}process(){}finalize(){}}},46379:(e,t,o)=>{"use strict";t.__esModule=!0,o(85639),o(73741),o(69326),o(89663);var s=o(12822),i=o(35464);class r extends i.StretchStrategy{calculate(){const e=Array.from(this.baseWidths).reduce((e,t)=>{let[,o]=t;return e+o},0);if(this.viewportWidth-e<0)return void this.stretchedWidths.clear();const t=this.viewportWidth/e,o=[],i=[];let r=this.viewportWidth,n=0;if(this.baseWidths.forEach((e,l)=>{const a=Math.round(e*t),h=this.overwriteColumnWidthFn(a,l);a===h&&a>=s.DEFAULT_COLUMN_WIDTH?(o.push([l,h]),n+=h):a!==h&&(o.push([l,h]),i.push(l),r-=h)}),r<=s.DEFAULT_COLUMN_WIDTH)return void this.stretchedWidths.clear();const l=r/n;let a=-1,h=0;o.forEach((e,t)=>{let[s,r]=e,n=r;i.includes(s)||(n=Math.round(r*l)),this.stretchedWidths.set(s,n),a=s,t<o.length-1&&(h+=n)}),this.stretchedWidths.size>1&&this.stretchedWidths.set(a,Math.round(this.viewportWidth-h))}}t.StretchAllStrategy=r},46507:(e,t,o)=>{"use strict";var s=o(30784),i=Math.max,r=Math.min;e.exports=function(e,t){var o=s(e);return o<0?i(o+t,0):r(o,t)}},46512:(e,t,o)=>{"use strict";t.__esModule=!0,t.rootComparator=function(e,t){return function(o,i){const[,...r]=o,[,...n]=i;return function(o){const i=e[o],l=t[o],a=r[o],h=n[o],c=l.columnSorting;return(c.compareFunctionFactory?c.compareFunctionFactory:(0,s.getCompareFunctionFactory)(l.type))(i,l,c)(a,h)}(0)}};var s=o(17374)},46963:(e,t,o)=>{"use strict";var s=o(64976),i=o(721),r=o(19952),n=o(68664),l=o(92754),a=o(10982),h=o(36697),c=o(41626).IteratorPrototype,u=o(53032),d=o(63884),g=o(10734),f=l("toStringTag"),p="IteratorHelper",m="WrapForValidIterator",w="normal",C="throw",v=a.set,y=function(e){var t=a.getterFor(e?m:p);return n(i(c),{next:function(){var o=t(this);if(e)return o.nextHandler();if(o.done)return u(void 0,!0);try{var s=o.nextHandler();return o.returnHandlerResult?s:u(s,o.done)}catch(e){throw o.done=!0,e}},return:function(){var o=t(this),i=o.iterator;if(o.done=!0,e){var r=h(i,"return");return r?s(r,i):u(void 0,!0)}if(o.inner)try{d(o.inner.iterator,w)}catch(e){return d(i,C,e)}if(o.openIters)try{g(o.openIters,w)}catch(e){return d(i,C,e)}return i&&d(i,w),u(void 0,!0)}})},E=y(!0),S=y(!1);r(S,f,"Iterator Helper"),e.exports=function(e,t,o){var s=function(s,i){i?(i.iterator=s.iterator,i.next=s.next):i=s,i.type=t?m:p,i.returnHandlerResult=!!o,i.nextHandler=e,i.counter=0,i.done=!1,v(this,i)};return s.prototype=t?E:S,s}},47010:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(36335),i=o(40576);class r extends s.IndexMap{insert(e,t){this.indexedValues=(0,i.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),super.insert(e,t)}remove(e){this.indexedValues=(0,i.getListWithRemovedItems)(this.indexedValues,e),super.remove(e)}}t.PhysicalIndexToValueMap=r},47173:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"commentsReadOnly",name(){const t=this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT);return(0,i.checkSelectionConsistency)(this.getSelectedRange(),(t,o)=>e.getCommentMeta(t,o,r.META_READONLY))?(0,i.markLabelAsSelected)(t):t},callback(){this.getSelectedRangeLast().forAll((t,o)=>{if(t>=0&&o>=0){const s=!!e.getCommentMeta(t,o,r.META_READONLY);e.updateCommentMeta(t,o,{[r.META_READONLY]:!s})}})},disabled(){const t=this.getSelectedRangeLast();return!!(!t||t.highlight.isHeader()||!e.getCommentAtCell(t.highlight.row,t.highlight.col)||this.selection.isEntireRowSelected()&&this.selection.isEntireColumnSelected()||0===this.countRenderedRows()||0===this.countRenderedCols())}}};var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(30432)),i=o(433),r=o(38345)},47200:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"cut",name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_CUT)},callback(){e.cut()},disabled(){if(0===this.countRows()||0===this.countCols())return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}};var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(30432))},47650:(e,t,o)=>{"use strict";t.__esModule=!0,o(88443),o(73741),o(69326);var s=o(44233),i=o(59470);function r(e,t,o){n(e,t),t.set(e,o)}function n(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function l(e,t,o){return e.set(h(e,t),o),o}function a(e,t){return e.get(h(e,t))}function h(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const c=t.PLUGIN_KEY="stretchColumns",u=t.PLUGIN_PRIORITY=155;var d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakSet;class m extends s.BasePlugin{constructor(){var e,t;super(...arguments),n(e=this,t=p),t.add(e),r(this,d,new i.StretchCalculator(this.hot)),r(this,g,null),r(this,f,new ResizeObserver(e=>{requestAnimationFrame(()=>{var t;null!==(t=this.hot)&&void 0!==t&&t.view.isHorizontallyScrollableByWindow()&&e.forEach(e=>{let{contentRect:t}=e;null!==a(g,this)&&a(g,this)!==t.width&&(this.hot.refreshDimensions(),this.hot.view.adjustElementsSize()),l(g,this,t.width)})})}))}static get PLUGIN_KEY(){return c}static get PLUGIN_PRIORITY(){return u}static get SETTING_KEYS(){return!0}isEnabled(){return["all","last"].includes(this.hot.getSettings().stretchH)}enablePlugin(){var e=this;this.enabled||(a(d,this).useStrategy(this.hot.getSettings().stretchH),a(f,this).observe(this.hot.rootElement),this.addHook("beforeRender",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return h(p,e,C).call(e,...o)}),this.addHook("modifyColWidth",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return h(p,e,w).call(e,...o)},10),super.enablePlugin())}updatePlugin(){a(d,this).useStrategy(this.hot.getSettings().stretchH),super.updatePlugin()}disablePlugin(){super.disablePlugin(),a(f,this).unobserve(this.hot.rootElement)}getColumnWidth(e){return a(d,this).getStretchedWidth(e)}destroy(){a(f,this).disconnect(),l(f,this,null),l(d,this,null),super.destroy()}}function w(e,t,o){if(o===this.pluginName)return;const s=this.getColumnWidth(t);return"number"==typeof s?s:e}function C(e){e&&a(d,this).refreshStretching()}t.StretchColumns=m},47714:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.default=function(e,t,o){if("function"==typeof n[e])return new n[e](t,o);return null};var i=s(o(54478));const r=t.TYPE_CSV="csv",n=(t.TYPE_EXCEL="excel",t.TYPE_PDF="pdf",t.EXPORT_TYPES={[r]:i.default})},47770:(e,t,o)=>{"use strict";var s=o(92754),i=o(50916),r=s("iterator"),n=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||n[r]===e)}},48285:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionLeft",callback(e){const{selection:t}=e,{highlight:o}=e.getSelectedRangeLast();t.isSelectedByRowHeader()||t.isSelectedByCorner()||!(o.isCell()||o.isHeader()&&t.isSelectedByColumnHeader())||(t.markSource("keyboard"),t.transformEnd(0,-1*e.getDirectionFactor()),t.markEndSource())}}},48311:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostInlineStart",callback(e){const{selection:t,columnIndexMapper:o}=e,{highlight:s,from:i,to:r}=e.getSelectedRangeLast();if(!t.isSelectedByRowHeader()&&!t.isSelectedByCorner()&&s.isCell()){const n=parseInt(e.getSettings().fixedColumnsStart,10),l=o.getNearestNotHiddenIndex(n,1),a=i.clone();a.col=s.col,t.markSource("keyboard"),t.setRangeStart(a,void 0,!1,s.clone()),t.setRangeEnd(e._createCellCoords(r.row,l)),t.markEndSource()}}}},48368:(e,t)=>{"use strict";t.__esModule=!0,t.sumCellsHeights=function(e,t,o){const{rowIndexMapper:s,stylesHandler:i}=e,r=i.getDefaultRowHeight();let n=0;for(let a=t;a<t+o;a++){var l;if(!s.isHidden(a))n+=null!==(l=e.getRowHeight(a))&&void 0!==l?l:r,0!==a||i.isClassicTheme()||(n+=1)}return n}},48513:(e,t)=>{"use strict";t.__esModule=!0,t.autocompleteValidator=s;const o=t.VALIDATOR_TYPE="autocomplete";function s(e,t){let o=e;null==o&&(o=""),this.allowEmpty&&""===o?t(!0):this.strict&&this.source?"function"==typeof this.source?this.source(o,i(o,t)):i(o,t)(this.source):t(!0)}function i(e,t){const o=e;return function(e){let s=!1;for(let t=0,i=e.length;t<i;t++)if(o===e[t]){s=!0;break}t(s)}}s.VALIDATOR_TYPE=o},48647:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(50343),i=o(29599),r=o(58031);const n=t.CELL_TYPE="autocomplete";t.AutocompleteCellType={CELL_TYPE:n,editor:s.AutocompleteEditor,renderer:i.autocompleteRenderer,validator:r.autocompleteValidator}},48765:(e,t,o)=>{"use strict";t.__esModule=!0,t.createKeyboardShortcutsCtrl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const o=[];function n(e,t){h(t).addShortcuts(e,{group:i})}function l(e,t){const s=h(t);e.forEach(e=>{let{keys:t}=e;t.forEach(e=>s.removeShortcutsByKeys(e))}),o.push({shortcuts:e,contextName:t}),n(e,t)}function a(e){return e?`${r}:${e}`:r}function h(t){var o;const s=e.hotMenu.getShortcutManager(),i=a(t);return null!==(o=s.getContext(i))&&void 0!==o?o:s.addContext(i)}return n((0,s.createDefaultShortcutsList)(e)),t.forEach(e=>{let{shortcuts:t,contextName:o}=e;l(t,o)}),{addCustomShortcuts:l,getCustomShortcuts:function(){return[...o]},getContext:h,listen:function(t){e.hotMenu.getShortcutManager().setActiveContextName(a(t))}}},o(85639),o(73741),o(69326);var s=o(78608);const i="menu",r=i},48885:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(73741),o(90795);var i=s(o(53726)),r=o(36335),n=o(40576),l=o(94614),a=o(52149),h=o(6964);class c extends r.IndexMap{constructor(){super(...arguments),(0,i.default)(this,"orderOfIndexes",[])}getValues(){return this.orderOfIndexes.map(e=>this.indexedValues[e])}setValues(e){this.orderOfIndexes=[...Array(e.length).keys()],super.setValues(e)}setValueAtIndex(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.orderOfIndexes.length;return e<this.indexedValues.length&&(this.indexedValues[e]=t,!1===this.orderOfIndexes.includes(e)&&this.orderOfIndexes.splice(o,0,e),this.runLocalHooks("change"),!0)}clearValue(e){this.orderOfIndexes=(0,l.getListWithRemovedItems)(this.orderOfIndexes,[e]),(0,h.isFunction)(this.initValueOrFn)?super.setValueAtIndex(e,this.initValueOrFn(e)):super.setValueAtIndex(e,this.initValueOrFn)}getLength(){return this.orderOfIndexes.length}setDefaultValues(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.orderOfIndexes.length=0,super.setDefaultValues(e)}insert(e,t){this.indexedValues=(0,n.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),this.orderOfIndexes=(0,a.getIncreasedIndexes)(this.orderOfIndexes,t),super.insert(e,t)}remove(e){this.indexedValues=(0,n.getListWithRemovedItems)(this.indexedValues,e),this.orderOfIndexes=(0,l.getListWithRemovedItems)(this.orderOfIndexes,e),this.orderOfIndexes=(0,a.getDecreasedIndexes)(this.orderOfIndexes,e),super.remove(e)}getEntries(){return this.orderOfIndexes.map(e=>[e,this.getValueAtIndex(e)])}}t.LinkedPhysicalIndexToValueMap=c},49075:(e,t,o)=>{"use strict";t.__esModule=!0,t.updateCaretPosition=function(e,t){const o=(0,s.getCaretPosition)(t),i=t.value.split("\n");let r=o,n=0;for(let t=0;t<i.length;t++){const s=i[t];0!==t&&(n+=i[t-1].length+1);const l=n+s.length;if("home"===e?r=n:"end"===e&&(r=l),o<=l)break}(0,s.setCaretPosition)(t,r)};var s=o(43561)},49288:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(97122),o(7678);var i=s(o(53726));t.FullyVisibleColumnsCalculationType=class{constructor(){(0,i.default)(this,"count",0),(0,i.default)(this,"startColumn",null),(0,i.default)(this,"endColumn",null),(0,i.default)(this,"startPosition",null),(0,i.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedWidth:o,zeroBasedScrollOffset:s,viewportWidth:i,columnWidth:r}=t;o>=s&&o+r<=s+(s>0?i+1:i)&&(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=e),this.endColumn=e)}finalize(e){var t;const{scrollOffset:o,viewportWidth:s,inlineStartOffset:i,zeroBasedScrollOffset:r,totalColumns:n,needReverse:l,startPositions:a,columnWidth:h}=e;if(this.endColumn===n-1&&l)for(this.startColumn=this.endColumn;this.startColumn>0;){const e=a[this.endColumn]+h-a[this.startColumn-1];if(e<=s&&(this.startColumn-=1),e>=s)break}this.startPosition=null!==(t=a[this.startColumn])&&void 0!==t?t:null;const c=o+s-(r>0?s+1:s),u=null===this.startColumn?0:e.getColumnWidth(this.startColumn);c<-1*i||o>a.at(-1)||-1*o-s>-1*u?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,n<this.endColumn&&(this.endColumn=n-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}},49438:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(51450);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.NestedRows=s.NestedRows},49450:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(74460);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.CustomBorders=s.CustomBorders},49465:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(73741),o(7307);var i=s(o(53726)),r=o(64310);class n extends r.BaseAction{constructor(e){let{conditionsStack:t,previousConditionsStack:o}=e;super("filter"),(0,i.default)(this,"conditionsStack",void 0),(0,i.default)(this,"previousConditionsStack",void 0),this.conditionsStack=t,this.previousConditionsStack=o}static startRegisteringEvents(e,t){e.addHook("beforeFilter",(e,o)=>{t.done(()=>new n({conditionsStack:e,previousConditionsStack:o}))})}undo(e,t){const o=e.getPlugin("filters");e.addHookOnce("afterViewRender",t),o.importConditions(this.previousConditionsStack),o.filter()}redo(e,t){const o=e.getPlugin("filters");e.addHookOnce("afterViewRender",t),o.importConditions(this.conditionsStack),o.filter()}}t.FiltersAction=n},49695:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.createHighlight=function(e){let{...t}=e;return new r.default({className:"highlight",...t,selectionType:i.HIGHLIGHT_AREA_TYPE})};var i=o(12822),r=s(o(41876))},49816:(e,t,o)=>{"use strict";t.__esModule=!0,t.createUniqueSet=function(){let{errorItemExists:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=new Set;return e=(0,s.isFunction)(e)?e:i,{addItem:function(o){if(t.has(o))throw new Error(e(o));t.add(o)},clear:function(){t.clear()},getItems:function(){return[...t]}}},o(88443),o(62705),o(78495),o(43554),o(15247),o(18472),o(89711),o(78675);var s=o(6964);const i=e=>`'${e}' value is already declared in a unique set.`},49944:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(1177);t.VALIDATOR_TYPE=s.VALIDATOR_TYPE,t.dropdownValidator=s.dropdownValidator},50108:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(31850);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.ExportFile=s.ExportFile},50336:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(60591),o(62705),o(78495),o(43554),o(15247),o(18472),o(89711),o(78675),o(73741),o(16178),o(69326),o(90795);var i=s(o(53726)),r=o(44233),n=o(37363),l=o(88291),a=o(59073),h=o(50929),c=o(12941),u=o(72854),d=o(75845),g=o(96988),f=o(27277),p=o(8829),m=s(o(23788));function w(e,t,o){C(e,t),t.set(e,o)}function C(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function v(e,t,o){return e.set(E(e,t),o),o}function y(e,t){return e.get(E(e,t))}function E(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const S=t.PLUGIN_KEY="formulas",R=t.SETTING_KEYS=["maxRows","maxColumns","language"],b=t.PLUGIN_PRIORITY=260;p.Hooks.getSingleton().register("afterNamedExpressionAdded"),p.Hooks.getSingleton().register("afterNamedExpressionRemoved"),p.Hooks.getSingleton().register("afterSheetAdded"),p.Hooks.getSingleton().register("afterSheetRemoved"),p.Hooks.getSingleton().register("afterSheetRenamed"),p.Hooks.getSingleton().register("afterFormulasValuesUpdate");const _=e=>"UndoRedo.undo"===e||"UndoRedo.redo"===e||"auto"===e;var T=new WeakMap,M=new WeakMap,I=new WeakMap,O=new WeakSet;class N extends r.BasePlugin{constructor(){var e,t,o;super(...arguments),e=this,C(t=this,o=O),o.add(t),w(this,T,!1),w(this,M,!1),w(this,I,[["valuesUpdated",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return E(O,e,q).call(e,...o)}],["namedExpressionAdded",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return E(O,e,Q).call(e,...o)}],["namedExpressionRemoved",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return E(O,e,J).call(e,...o)}],["sheetAdded",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return E(O,e,Z).call(e,...o)}],["sheetRenamed",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return E(O,e,ee).call(e,...o)}],["sheetRemoved",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return E(O,e,te).call(e,...o)}]]),(0,i.default)(this,"staticRegister",(0,n.staticRegister)("formulas")),(0,i.default)(this,"engine",null),(0,i.default)(this,"sheetId",null),(0,i.default)(this,"sheetName",null),(0,i.default)(this,"indexSyncer",null),(0,i.default)(this,"rowAxisSyncer",null),(0,i.default)(this,"columnAxisSyncer",null)}static get PLUGIN_KEY(){return S}static get PLUGIN_PRIORITY(){return b}static get SETTING_KEYS(){return[S,...R]}isEnabled(){return!!this.hot.getSettings()[S]}enablePlugin(){var e,t=this;if(!this.enabled)if(this.engine=null!==(e=(0,c.setupEngine)(this.hot))&&void 0!==e?e:this.engine,this.engine){if(null!==this.sheetName&&!this.engine.doesSheetExist(this.sheetName)){const e=this.addSheet(this.sheetName,this.hot.getSourceDataArray());!1!==e&&E(O,this,A).call(this,e)}this.addHook("beforeLoadData",function(){for(var e=arguments.length,o=new Array(e),s=0;s<e;s++)o[s]=arguments[s];return E(O,t,P).call(t,...o)}),this.addHook("afterLoadData",function(){for(var e=arguments.length,o=new Array(e),s=0;s<e;s++)o[s]=arguments[s];return E(O,t,D).call(t,...o)}),this.addHook("beforeUpdateData",function(){for(var e=arguments.length,o=new Array(e),s=0;s<e;s++)o[s]=arguments[s];return E(O,t,P).call(t,...o)}),this.addHook("afterUpdateData",function(){for(var e=arguments.length,o=new Array(e),s=0;s<e;s++)o[s]=arguments[s];return E(O,t,D).call(t,...o)}),this.addHook("modifyData",function(){for(var e=arguments.length,o=new Array(e),s=0;s<e;s++)o[s]=arguments[s];return E(O,t,L).call(t,...o)}),this.addHook("modifySourceData",function(){for(var e=arguments.length,o=new Array(e),s=0;s<e;s++)o[s]=arguments[s];return E(O,t,V).call(t,...o)}),this.addHook("beforeValidate",function(){for(var e=arguments.length,o=new Array(e),s=0;s<e;s++)o[s]=arguments[s];return E(O,t,H).call(t,...o)}),this.addHook("afterSetSourceDataAtCell",function(){for(var e=arguments.length,o=new Array(e),s=0;s<e;s++)o[s]=arguments[s];return E(O,t,F).call(t,...o)}),this.addHook("afterSetDataAtCell",function(){for(var e=arguments.length,o=new Array(e),s=0;s<e;s++)o[s]=arguments[s];return E(O,t,W).call(t,...o)}),this.addHook("afterSetDataAtRowProp",function(){for(var e=arguments.length,o=new Array(e),s=0;s<e;s++)o[s]=arguments[s];return E(O,t,W).call(t,...o)}),this.addHook("beforeCreateRow",function(){for(var e=arguments.length,o=new Array(e),s=0;s<e;s++)o[s]=arguments[s];return E(O,t,B).call(t,...o)}),this.addHook("beforeCreateCol",function(){for(var e=arguments.length,o=new Array(e),s=0;s<e;s++)o[s]=arguments[s];return E(O,t,U).call(t,...o)}),this.addHook("afterCreateRow",function(){for(var e=arguments.length,o=new Array(e),s=0;s<e;s++)o[s]=arguments[s];return E(O,t,z).call(t,...o)}),this.addHook("afterCreateCol",function(){for(var e=arguments.length,o=new Array(e),s=0;s<e;s++)o[s]=arguments[s];return E(O,t,G).call(t,...o)}),this.addHook("beforeRemoveRow",function(){for(var e=arguments.length,o=new Array(e),s=0;s<e;s++)o[s]=arguments[s];return E(O,t,Y).call(t,...o)}),this.addHook("beforeRemoveCol",function(){for(var e=arguments.length,o=new Array(e),s=0;s<e;s++)o[s]=arguments[s];return E(O,t,j).call(t,...o)}),this.addHook("afterRemoveRow",function(){for(var e=arguments.length,o=new Array(e),s=0;s<e;s++)o[s]=arguments[s];return E(O,t,$).call(t,...o)}),this.addHook("afterRemoveCol",function(){for(var e=arguments.length,o=new Array(e),s=0;s<e;s++)o[s]=arguments[s];return E(O,t,K).call(t,...o)}),this.indexSyncer=new m.default(this.hot.rowIndexMapper,this.hot.columnIndexMapper,e=>{this.hot.addHookOnce("init",()=>{e()})}),this.rowAxisSyncer=this.indexSyncer.getForAxis("row"),this.columnAxisSyncer=this.indexSyncer.getForAxis("column"),this.hot.addHook("afterRowSequenceChange",this.rowAxisSyncer.getIndexesChangeSyncMethod()),this.hot.addHook("afterColumnSequenceChange",this.columnAxisSyncer.getIndexesChangeSyncMethod()),this.hot.addHook("beforeRowMove",(e,t,o,s)=>{this.rowAxisSyncer.storeMovesInformation(e,t,s)}),this.hot.addHook("beforeColumnMove",(e,t,o,s)=>{this.columnAxisSyncer.storeMovesInformation(e,t,s)}),this.hot.addHook("afterRowMove",(e,t,o,s,i)=>{this.rowAxisSyncer.calculateAndSyncMoves(s,i)}),this.hot.addHook("afterColumnMove",(e,t,o,s,i)=>{this.columnAxisSyncer.calculateAndSyncMoves(s,i)}),this.hot.addHook("beforeColumnFreeze",(e,t)=>{this.columnAxisSyncer.storeMovesInformation([e],this.hot.getSettings().fixedColumnsStart,t)}),this.hot.addHook("afterColumnFreeze",(e,t)=>{this.columnAxisSyncer.calculateAndSyncMoves(t,t)}),this.hot.addHook("beforeColumnUnfreeze",(e,t)=>{this.columnAxisSyncer.storeMovesInformation([e],this.hot.getSettings().fixedColumnsStart-1,t)}),this.hot.addHook("afterColumnUnfreeze",(e,t)=>{this.columnAxisSyncer.calculateAndSyncMoves(t,t)}),this.addHook("afterCellMetaReset",function(){for(var e=arguments.length,o=new Array(e),s=0;s<e;s++)o[s]=arguments[s];return E(O,t,k).call(t,...o)}),this.addHook("beforeUndo",()=>{this.indexSyncer.setPerformUndo(!0),this.engine.undo()}),this.addHook("beforeRedo",()=>{this.indexSyncer.setPerformRedo(!0),this.engine.redo()}),this.addHook("afterUndo",()=>{this.indexSyncer.setPerformUndo(!1)}),this.addHook("afterUndo",()=>{this.indexSyncer.setPerformRedo(!1)}),this.addHook("afterDetachChild",function(){for(var e=arguments.length,o=new Array(e),s=0;s<e;s++)o[s]=arguments[s];return E(O,t,X).call(t,...o)}),this.addHook("beforeAutofill",function(){for(var e=arguments.length,o=new Array(e),s=0;s<e;s++)o[s]=arguments[s];return E(O,t,x).call(t,...o)}),y(I,this).forEach(e=>{let[t,o]=e;return this.engine.on(t,o)}),super.enablePlugin()}else(0,l.warn)("Missing the required `engine` key in the Formulas settings. Please fill it with either an engine class or an engine instance.")}disablePlugin(){y(I,this).forEach(e=>{let[t,o]=e;return this.engine.off(t,o)}),(0,c.unregisterEngine)(this.engine,this.hot),this.engine=null,super.disablePlugin()}updatePlugin(e){const t=(0,d.getEngineSettingsWithOverrides)(this.hot.getSettings());(0,d.haveEngineSettingsChanged)(this.engine.getConfig(),t)&&this.engine.updateConfig(t);const o=this.hot.getSettings()[S];if((0,h.isDefined)(o)&&(0,h.isDefined)(o.sheetName)&&o.sheetName!==this.sheetName&&this.switchSheet(o.sheetName),!e.data&&null===this.sheetName){const e=this.hot.getSettings()[S].sheetName;if(e&&this.engine.doesSheetExist(e))this.switchSheet(this.sheetName);else{const t=this.addSheet(null!=e?e:void 0,this.hot.getSourceDataArray());E(O,this,A).call(this,t)}}super.updatePlugin(e)}destroy(){y(I,this).forEach(e=>{var t;let[o,s]=e;return null===(t=this.engine)||void 0===t?void 0:t.off(o,s)}),v(I,this,null),(0,c.unregisterEngine)(this.engine,this.hot),this.engine=null,super.destroy()}addSheet(e,t){if((0,h.isDefined)(t)&&!(0,g.isArrayOfArrays)(t))return(0,l.warn)("The provided data should be an array of arrays."),!1;if(null!=e&&this.engine.doesSheetExist(e))return(0,l.warn)("Sheet with the provided name already exists."),!1;try{const o=this.engine.addSheet(null!=e?e:void 0);return t&&this.engine.setSheetContent(this.engine.getSheetId(o),t),o}catch(e){return(0,l.warn)(e.message),!1}}switchSheet(e){if(!this.engine.doesSheetExist(e))return void(0,l.error)(`The sheet named \`${e}\` does not exist, switch aborted.`);E(O,this,A).call(this,e);const t=this.engine.getSheetSerialized(this.sheetId);t.length>0&&this.hot.loadData(t,`${(0,f.toUpperCaseFirst)(S)}.switchSheet`)}getCellType(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.sheetId;const s=this.hot.toPhysicalRow(e),i=this.hot.toPhysicalColumn(t);return null!==s&&null!==i?this.engine.getCellType({sheet:o,row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t)}):"EMPTY"}isFormulaCellType(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.sheetId;return this.engine.doesCellHaveFormula({sheet:o,row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t)})}renderDependentSheets(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=new Set;e.forEach(e=>{var t;const s=null==e||null===(t=e.address)||void 0===t?void 0:t.sheet;void 0!==s&&(o.has(s)||o.add(s))}),(0,c.getRegisteredHotInstances)(this.engine).forEach((e,s)=>{var i;(t||s!==this.sheetId)&&o.has(s)&&(e.render(),null===(i=e.view)||void 0===i||i.adjustElementsSize())})}validateDependentCells(e){const t=e=>{var t;const{row:o,col:s,sheet:i}=null!==(t=null==e?void 0:e.address)&&void 0!==t?t:{};return(0,h.isDefined)(i)?`${i}:${o}x${s}`:""},o=new Set((arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).map(e=>t(e)));e.forEach(e=>{var s,i;const{row:r,col:n}=null!==(s=e.address)&&void 0!==s?s:{};if(!1===(0,h.isDefined)(r)||!1===(0,h.isDefined)(n)||r>=this.hot.countRows()||n>=this.hot.countCols())return;const l=null==e||null===(i=e.address)||void 0===i?void 0:i.sheet,a=t(e);if(void 0!==l&&!o.has(a)){const e=(0,c.getRegisteredHotInstances)(this.engine).get(l);if(!e)return;e.validateCell(e.getDataAtCell(r,n),e.getCellMeta(r,n),()=>{})}})}syncChangeWithEngine(e,t,o){const s={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t),sheet:this.sheetId};if(!this.engine.isItPossibleToSetCellContents(s))return void(0,l.warn)(`Not possible to set cell data at ${JSON.stringify(s)}`);const i=this.hot.getCellMeta(e,t);return(0,u.isDate)(o,i.type)&&((0,u.isDateValid)(o,i.dateFormat)?o=(0,u.getDateInHfFormat)(o,i.dateFormat):!1===(0,u.isFormula)(o)&&(o=`'${o}`)),this.engine.setCellContents(s,o)}}function A(e){this.sheetName=e,this.sheetId=this.engine.getSheetId(this.sheetName)}function H(e,t,o){const s=this.hot.propToCol(o);if(this.isFormulaCellType(t,s)){const e={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(s),sheet:this.sheetId},o=this.hot.getCellMeta(t,s);let i=this.engine.getCellValue(e);return"date"===o.type&&(0,a.isNumeric)(i)&&(i=(0,u.getDateFromExcelDate)(i,o.dateFormat)),"object"==typeof i&&null!==i?i.value:i}return e}function x(e,t,o){const{row:s,col:i}=t.getTopStartCorner(),{row:r,col:n}=t.getBottomEndCorner(),{row:l,col:a}=o.getTopStartCorner(),{row:h,col:c}=o.getBottomEndCorner(),d={start:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(s),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(i),sheet:this.sheetId},end:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(r),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(n),sheet:this.sheetId}},g={start:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(l),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(a),sheet:this.sheetId},end:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(h),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(c),sheet:this.sheetId}};if(!1===this.engine.isItPossibleToSetCellContents(g))return!1;const f=this.engine.getFillRangeData(d,g),{row:p,col:m}=d.start,{row:w,col:C}=d.end,v=w-p+1,y=C-m+1;for(let e=0;e<f.length;e+=1)for(let t=0;t<f[e].length;t+=1){const o=f[e][t],s=p+e%v,i=m+t%y,r=this.hot.getCellMeta(s,i);(0,u.isDate)(o,r.type)&&(o.startsWith("'")?f[e][t]=o.slice(1):!1===this.isFormulaCellType(s,i,this.sheetId)&&(f[e][t]=(0,u.getDateInHotFormat)(o,r.dateFormat)))}return f}function P(e,t){(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"").includes((0,f.toUpperCaseFirst)(S))||v(M,this,(0,h.isUndefined)(this.hot.getSettings().data))}function k(){if(y(M,this))return void this.switchSheet(this.sheetName);const e=this.hot.getSourceDataArray();e.forEach((t,o)=>{t.forEach((t,s)=>{const i=this.hot.getCellMeta(o,s,{skipMetaExtension:!0}),r=i.dateFormat;(0,u.isDate)(t,i.type)&&((0,u.isDateValid)(t,r)?e[o][s]=(0,u.getDateInHfFormat)(t,r):t.startsWith("=")||(e[o][s]=`'${t}`))})}),v(T,this,!0);const t=this.engine.setSheetContent(this.sheetId,e);this.indexSyncer.setupSyncEndpoint(this.engine,this.sheetId),this.renderDependentSheets(t),v(T,this,!1)}function D(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(o.includes((0,f.toUpperCaseFirst)(S)))return;const s=(0,c.setupSheet)(this.engine,this.hot.getSettings()[S].sheetName);if(E(O,this,A).call(this,s),"updateSettings"!==o)if(y(M,this))this.switchSheet(this.sheetName);else{const e=this.hot.getSourceDataArray();if(this.engine.isItPossibleToReplaceSheetContent(this.sheetId,e)){v(T,this,!0);const t=this.engine.setSheetContent(this.sheetId,e);this.indexSyncer.setupSyncEndpoint(this.engine,this.sheetId),this.renderDependentSheets(t),v(T,this,!1)}}}function L(e,t,o,s){if("get"!==s||y(T,this)||null===this.sheetName||!this.engine.doesSheetExist(this.sheetName))return;if(null===e||null===t)return;const i=this.getCellType(e,t);if("VALUE"===i||"EMPTY"===i)return void(o.value=(0,u.unescapeFormulaExpression)(o.value));const r={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t),sheet:this.sheetId};let n=this.engine.getCellValue(r);const l=this.hot.getCellMeta(e,t,{skipMetaExtension:!0});"date"===l.type&&(0,a.isNumeric)(n)&&(n=(0,u.getDateFromExcelDate)(n,l.dateFormat)),o.value="object"==typeof n&&null!==n?n.value:n}function V(e,t,o,s){if("get"!==s||y(T,this)||null===this.sheetName||!this.engine.doesSheetExist(this.sheetName))return;const i=this.hot.toVisualRow(e),r=this.hot.propToCol(t);if(null===i||null===r)return;const n=this.getCellType(i,r);if("VALUE"===n||"EMPTY"===n)return;const l=this.engine.getSheetDimensions(this.engine.getSheetId(this.sheetName));if(0===l.width&&0===l.height)return;const a={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(i),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(r),sheet:this.sheetId};o.value=this.engine.getCellSerialized(a)}function W(e,t){if(_(t))return;const o=[],s=[],i=this.engine.batch(()=>{e.forEach(e=>{let[t,i,,r]=e;const n=this.hot.propToCol(i),l=this.hot.toPhysicalRow(t),a=this.hot.toPhysicalColumn(n),h={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(n),sheet:this.sheetId};null!==l&&null!==a?this.syncChangeWithEngine(t,n,r):o.push([t,n,r]),s.push({address:h})})});o.length&&this.hot.addHookOnce("afterChange",()=>{const e=this.engine.batch(()=>{o.forEach(e=>{let[t,o,s]=e;this.syncChangeWithEngine(t,o,s)})});this.renderDependentSheets(e,!0)}),this.renderDependentSheets(i),this.validateDependentCells(i,s)}function F(e,t){if(_(t))return;const o=[],s=[];e.forEach(e=>{let[t,i,,r]=e;const n=this.hot.propToCol(i);if(!(0,a.isNumeric)(n))return;const h={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(n),sheet:this.sheetId};this.engine.isItPossibleToSetCellContents(h)?(s.push({address:h}),o.push(...this.engine.setCellContents(h,r))):(0,l.warn)(`Not possible to set source cell data at ${JSON.stringify(h)}`)}),this.renderDependentSheets(o),this.validateDependentCells(o,s)}function B(e,t){let o=this.rowAxisSyncer.getHfIndexFromVisualIndex(e);if(e>=this.hot.countRows()&&(o=e),null===this.sheetId||!this.engine.doesSheetExist(this.sheetName)||!this.engine.isItPossibleToAddRows(this.sheetId,[o,t]))return!1}function U(e,t){let o=this.columnAxisSyncer.getHfIndexFromVisualIndex(e);if(e>=this.hot.countCols()&&(o=e),null===this.sheetId||!this.engine.doesSheetExist(this.sheetName)||!this.engine.isItPossibleToAddColumns(this.sheetId,[o,t]))return!1}function Y(e,t,o){return!1!==this.rowAxisSyncer.setRemovedHfIndexes(o).every(e=>this.engine.isItPossibleToRemoveRows(this.sheetId,[e,1]))&&void 0}function j(e,t,o){return!1!==this.columnAxisSyncer.setRemovedHfIndexes(o).every(e=>this.engine.isItPossibleToRemoveColumns(this.sheetId,[e,1]))&&void 0}function z(e,t,o){if(_(o))return;const s=this.engine.addRows(this.sheetId,[this.rowAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(s)}function G(e,t,o){if(_(o))return;const s=this.engine.addColumns(this.sheetId,[this.columnAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(s)}function $(e,t,o,s){if(_(s))return;const i=this.rowAxisSyncer.getRemovedHfIndexes().sort((e,t)=>t-e),r=this.engine.batch(()=>{i.forEach(e=>{this.engine.removeRows(this.sheetId,[e,1])})});this.renderDependentSheets(r)}function K(e,t,o,s){if(_(s))return;const i=this.columnAxisSyncer.getRemovedHfIndexes().sort((e,t)=>t-e),r=this.engine.batch(()=>{i.forEach(e=>{this.engine.removeColumns(this.sheetId,[e,1])})});this.renderDependentSheets(r)}function X(e,t,o){var s;v(T,this,!0);const i=this.hot.getSourceDataArray(o,0,o+((null===(s=t.__children)||void 0===s?void 0:s.length)||0),this.hot.countSourceCols());v(T,this,!1),i.forEach((e,t)=>{e.forEach((e,s)=>{this.engine.setCellContents({col:s,row:o+t,sheet:this.sheetId},[[e]])})})}function q(e){this.hot.runHooks("afterFormulasValuesUpdate",e)}function Q(e,t){this.hot.runHooks("afterNamedExpressionAdded",e,t)}function J(e,t){this.hot.runHooks("afterNamedExpressionRemoved",e,t)}function Z(e){this.hot.runHooks("afterSheetAdded",e)}function ee(e,t){E(O,this,A).call(this,t),this.hot.runHooks("afterSheetRenamed",e,t)}function te(e,t){this.hot.runHooks("afterSheetRemoved",e,t)}t.Formulas=N},50343:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(68834);t.EDITOR_TYPE=s.EDITOR_TYPE,t.AutocompleteEditor=s.AutocompleteEditor},50484:(e,t,o)=>{"use strict";t.__esModule=!0,t.createCellHeadersRange=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,[i,r]=[o,s];e>t&&([i,r]=[r,i]);return`${i}-${r}`},t.extendNotExistingKeys=function(e,t){return(0,i.objectEach)(t,(t,o)=>{(0,s.isUndefined)(e[o])&&(e[o]=t)}),e},t.normalizeLanguageCode=function(e){const t=/^([a-zA-Z]{2})-([a-zA-Z]{2})$/.exec(e);if(t)return`${t[1].toLowerCase()}-${t[2].toUpperCase()}`;return e},t.warnUserAboutLanguageRegistration=function(e){(0,s.isDefined)(e)&&(0,r.error)(n.toSingleLine`Language with code "${e}" was not found. You should register particular language\x20
|
|
52
|
-
before using it. Read more about this issue at: https://docs.handsontable.com/i18n/missing-language-code.`)};var s=o(50929),i=o(87203),r=o(88291),n=o(5651)},50790:(e,t,o)=>{"use strict";t.__esModule=!0,t.textRenderer=l;var s=o(14466),i=o(43561),r=o(50929);const n=t.RENDERER_TYPE="text";function l(e,t,o,n,l,a,h){s.baseRenderer.apply(this,[e,t,o,n,l,a,h]);let c=a;!c&&h.placeholder&&(c=h.placeholder),c=(0,r.stringify)(c),h.trimWhitespace&&(c=c.trim()),(0,i.fastInnerText)(t,c)}l.RENDERER_TYPE=n},50916:e=>{"use strict";e.exports={}},50929:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t._injectProductInfo=function(e,t){const o=!l(e),s="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),r="0.0.0-next-
|
|
52
|
+
before using it. Read more about this issue at: https://docs.handsontable.com/i18n/missing-language-code.`)};var s=o(50929),i=o(87203),r=o(88291),n=o(5651)},50790:(e,t,o)=>{"use strict";t.__esModule=!0,t.textRenderer=l;var s=o(14466),i=o(43561),r=o(50929);const n=t.RENDERER_TYPE="text";function l(e,t,o,n,l,a,h){s.baseRenderer.apply(this,[e,t,o,n,l,a,h]);let c=a;!c&&h.placeholder&&(c=h.placeholder),c=(0,r.stringify)(c),h.trimWhitespace&&(c=c.trim()),(0,i.fastInnerText)(t,c)}l.RENDERER_TYPE=n},50916:e=>{"use strict";e.exports={}},50929:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t._injectProductInfo=function(e,t){const o=!l(e),s="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),r="0.0.0-next-9047f21-20250708";let n,v="invalid",y="invalid";const E=function(e){let t=[][a],o=t;if(e[a]!==d("Z"))return!1;for(let t="",s="B<H4P+".split(""),i=d(s.shift());i;i=d(s.shift()||"A"))--i<""[a]?o|=(c(`${c(h(t)+(h(u(e,Math.abs(i),2))+[]).padStart(2,"0"))}`)%97||2)>>1:t=u(e,i,i?1===s[a]?9:8:6);return o===t}(e=g(e||""));if(o||s||E)if(E){const t=(0,i.default)("29/04/2025","DD/MM/YYYY"),o=Math.floor(t.toDate().getTime()/864e5),s=f(e);n=(0,i.default)(864e5*(s+1),"x").format("MMMM DD, YYYY"),o>s?(v="expired",y="expired"):(v="valid",y="valid")}else s?(v="non_commercial",y="valid"):(v="invalid",y="invalid");else v="missing",y="missing";p()&&(v="valid",y="valid");if(!m&&"valid"!==v){w[v]({keyValidityDate:n,hotVersion:r})&&console["non_commercial"===v?"info":"warn"](w[v]({keyValidityDate:n,hotVersion:r})),m=!0}if("valid"!==y&&t){if(C[y]({keyValidityDate:n,hotVersion:r})){const e=document.createElement("div");e.className="handsontable hot-display-license-info",e.innerHTML=C[y]({keyValidityDate:n,hotVersion:r}),t.appendChild(e)}}},t.isDefined=function(e){return void 0!==e},t.isEmpty=l,t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.isUndefined=n,t.stringify=function(e){let t;switch(typeof e){case"string":case"number":t=`${e}`;break;case"object":t=null===e?"":e.toString();break;case"undefined":t="";break;default:t=e.toString()}return t};var i=s(o(86798)),r=o(5651);function n(e){return void 0===e}function l(e){return null===e||""===e||n(e)}const a="length",h=e=>parseInt(e,16),c=e=>parseInt(e,10),u=(e,t,o)=>e.substr(t,o),d=e=>e.codePointAt(0)-65,g=e=>`${e}`.replace(/\-/g,""),f=e=>h(u(g(e),h("12"),d("F")))/(h(u(g(e),d("B"),~~![][a]))||9),p=()=>"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);let m=!1;const w={invalid:()=>r.toSingleLine`
|
|
53
53
|
The license key for Handsontable is invalid.\x20
|
|
54
54
|
If you need any help, contact us at support@handsontable.com.`,expired:e=>{let{keyValidityDate:t,hotVersion:o}=e;return r.toSingleLine`
|
|
55
55
|
The license key for Handsontable expired on ${t}, and is not valid for the installed\x20
|