handsontable 16.1.0-next-91b8a0f-20250905 → 16.1.0-next-1494b74-20250909

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.
@@ -25,12 +25,12 @@
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: 16.1.0-next-91b8a0f-20250905
29
- * Release date: 11/09/2025 (built at 05/09/2025 09:35:50)
28
+ * Version: 16.1.0-next-1494b74-20250909
29
+ * Release date: 11/09/2025 (built at 09/09/2025 12:56:53)
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,i)=>(()=>{var s={55:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=i(o(24300)),n=o(78966),r=i(o(99771)),a=o(65820),l=o(91342),h=o(66649);class c extends a.Overlay{constructor(e,t,o,i){super(e,t,h.CLONE_TOP,o,i),(0,s.default)(this,"cachedFixedRowsTop",-1),this.cachedFixedRowsTop=this.wtSettings.getSetting("fixedRowsTop")}createTable(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return new r.default(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderTopOverlay")}resetFixedPosition(){if(!this.needFullRender||!this.shouldBeRendered()||!this.wot.wtTable.holder.parentNode)return!1;const e=this.clone.wtTable.holder.parentNode,{rootWindow:t}=this.domBindings,o=this.wtSettings.getSetting("preventOverflow");let i=0,s=!1;if(this.trimmingContainer!==t||o&&"vertical"===o)i=this.getScrollPosition(),(0,n.resetCssTransform)(e);else{const{wtTable:t}=this.wot,o=t.hider.getBoundingClientRect();s=Math.ceil(o.bottom)===e.offsetHeight,i=this.getOverlayOffset(),(0,n.setOverlayPosition)(e,"0px",`${i}px`)}const r=this.adjustHeaderBordersPosition(i,s);return this.adjustElementsSize(),r}setScrollPosition(e){const{rootWindow:t}=this.domBindings,o=this.mainTableScrollableElement;let i=!1;if(o===t&&e!==t.scrollY){const o=t.scrollY;t.scrollTo((0,n.getWindowScrollLeft)(t),e),i=o!==t.scrollY}else if(e!==o.scrollTop){const t=o.scrollTop;o.scrollTop=e,i=t!==o.scrollTop}return i}onScroll(){this.wtSettings.getSetting("onScrollHorizontally")}sumCellSizes(e,t){const o=this.wtSettings.getSetting("stylesHandler").getDefaultRowHeight();let i=e,s=0;for(;i<t;){const e=this.wot.wtTable.getRowHeight(i);s+=void 0===e?o:e,i+=1}return s}adjustElementsSize(){this.updateTrimmingContainer(),this.needFullRender&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}adjustRootElementSize(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:o,rootWindow:i}=this.domBindings,s=this.clone.wtTable.holder.parentNode.style,r=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==i||"horizontal"===r){let i=t.getWorkspaceWidth();t.hasVerticalScroll()&&(i-=(0,n.getScrollbarWidth)(o)),i=Math.min(i,e.wtRootElement.scrollWidth),s.width=`${i}px`}else s.width="";this.clone.wtTable.holder.style.width=s.width;let a=(0,n.outerHeight)(this.clone.wtTable.TABLE);e.hasDefinedSize()||(a=0),s.height=`${a}px`}adjustRootChildrenSize(){const{holder:e}=this.clone.wtTable,t=(0,l.getCornerStyle)(this.wot),o=this.wot.selectionManager.getFocusSelection()?parseInt(t.height,10)/2:0;this.clone.wtTable.hider.style.width=this.hider.style.width,e.style.width=e.parentNode.style.width,e.style.height=`${parseInt(e.parentNode.style.height,10)+o}px`}applyToDOM(){const e=this.wtSettings.getSetting("totalRows");if("number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top=`${this.wot.wtViewport.rowsRenderCalculator.startPosition}px`;else{if(0!==e)throw new Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="",this.needFullRender&&this.syncOverlayOffset()}syncOverlayOffset(){const e=this.isRtl()?"right":"left",{spreader:t}=this.clone.wtTable;"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?t.style[e]=`${this.wot.wtViewport.columnsRenderCalculator.startPosition}px`:t.style[e]=""}scrollTo(e,t){const{wot:o,wtSettings:i}=this,s=(o.cloneSource?o.cloneSource:o).wtTable.holder,r=i.getSetting("columnHeaders"),a=0===i.getSetting("fixedRowsTop")&&r.length>0&&!(0,n.hasClass)(s.parentNode,"innerBorderTop")?1:0;let l=this.getTableParentOffset(),h=0;if(t){this.wot.wtTable.getRowHeight(e)>this.wot.wtViewport.getViewportHeight()&&(t=!1)}if(t&&s.offsetHeight!==s.clientHeight&&(h=(0,n.getScrollbarWidth)(this.domBindings.rootDocument)),t){const t=i.getSetting("fixedRowsBottom"),s=i.getSetting("totalRows");l+=this.sumCellSizes(0,e+1),l-=o.wtViewport.getViewportHeight()-this.sumCellSizes(s-t,s),l+=1,l+=a}else l+=this.sumCellSizes(i.getSetting("fixedRowsTop"),e);return l+=h,(0,n.getMaximumScrollTop)(this.mainTableScrollableElement)===l-a&&a>0&&this.wot.wtOverlays.expandHiderVerticallyBy(a),this.setScrollPosition(l)}getTableParentOffset(){return this.mainTableScrollableElement===this.domBindings.rootWindow?this.wot.wtTable.holderOffset.top:0}getScrollPosition(){return(0,n.getScrollTop)(this.mainTableScrollableElement,this.domBindings.rootWindow)}getOverlayOffset(){const{rootWindow:e}=this.domBindings,t=this.wtSettings.getSetting("preventOverflow");let o=0;if(this.trimmingContainer===e&&(!t||"vertical"!==t)){const e=this.wot.wtTable.getTotalHeight()-this.clone.wtTable.getTotalHeight();o=Math.max(this.getScrollPosition()-this.getTableParentOffset(),0),o>e&&(o=0)}return o}adjustHeaderBordersPosition(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{wtSettings:o}=this,i=this.wot.wtTable.holder.parentNode,s=o.getSetting("totalColumns"),r="horizontal"===o.getSetting("preventOverflow");s?(0,n.removeClass)(i,"emptyColumns"):(0,n.addClass)(i,"emptyColumns");let a=!1;if(!t&&!r){const t=o.getSetting("fixedRowsTop"),s=this.cachedFixedRowsTop!==t,r=o.getSetting("columnHeaders");if((s||0===t)&&r.length>0){const t=(0,n.hasClass)(i,"innerBorderTop");this.cachedFixedRowsTop=o.getSetting("fixedRowsTop"),e||0===o.getSetting("totalRows")?((0,n.addClass)(i,"innerBorderTop"),a=!t):((0,n.removeClass)(i,"innerBorderTop"),a=t)}}return a}}t.TopOverlay=c},329:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionRight",callback(e){const{selection:t}=e;t.markSource("keyboard"),t.transformStart(0,e.getDirectionFactor()),t.markEndSource()}}},367:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(10582);t.OrderView=i.OrderView;var s=o(11963);t.SharedOrderView=s.SharedOrderView},495:(e,t,o)=>{"use strict";t.__esModule=!0,t.generateMatrix=function(e){const t=[];return(0,i.arrayEach)(e,e=>{e.walkDown(e=>{const o=e.data,{origColspan:i,columnIndex:r,headerLevel:a,crossHiddenColumns:l}=o,h=function(e,t){let o;Array.isArray(e[t])?o=e[t]:(o=[],e[t]=o);return o}(t,a);let c=!1;for(let e=r;e<r+i;e++){if(l.includes(e)||c)h.push((0,s.createPlaceholderHeaderSettings)(o));else{const e=n(o);e.isRoot=!0,h.push(e),c=!0}}})}),t},o(99356);var i=o(94576),s=o(14680);function n(e){const{crossHiddenColumns:t,...o}=(0,s.createDefaultHeaderSettings)(e);return o}},631:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=i(o(24300));t.BaseAction=class{constructor(e){(0,s.default)(this,"actionType",""),this.actionType=e}undo(){throw new Error("Not implemented")}redo(){throw new Error("Not implemented")}}},887:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(31143);var s=i(o(24300)),n=o(4138),r=o(94576),a=o(92641),l=o(61654),h=o(89211),c=o(88181),u=o(36780),d=i(o(59468)),g=o(7120);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=new Map([["plugin",a.hasPlugin],["cell-type",l.hasCellType],["editor",h.hasEditor],["renderer",c.hasRenderer],["validator",u.hasValidator]]),y=t.defaultMainSettingSymbol=Symbol("mainSetting"),S=t.PLUGIN_KEY="base",E=[];let R=null;var b=new WeakMap,_=new WeakMap,T=new WeakSet;function M(e){if(!e)return!1;const t=this.constructor.SETTING_KEYS;if("boolean"==typeof t)return t;for(let o=0;o<t.length;o++)if(void 0!==e[t[o]])return!0;return!1}t.BasePlugin=class{static get PLUGIN_KEY(){return S}static get SETTING_KEYS(){return[this.PLUGIN_KEY]}static get DEFAULT_SETTINGS(){return{}}static get SETTINGS_VALIDATORS(){return null}constructor(e){var t,o;p(t=this,o=T),o.add(t),f(this,b,null),(0,s.default)(this,"eventManager",new d.default(this)),(0,s.default)(this,"pluginName",null),(0,s.default)(this,"pluginsInitializedCallbacks",[]),(0,s.default)(this,"isPluginsReady",!1),(0,s.default)(this,"enabled",!1),(0,s.default)(this,"initialized",!1),f(this,_,{}),(0,n.defineGetter)(this,"hot",e,{writable:!1}),R=null,this.hot.addHook("afterPluginsInitialized",()=>this.onAfterPluginsInitialized()),this.hot.addHook("afterUpdateSettings",e=>this.onUpdateSettings(e)),this.hot.addHook("beforeInit",()=>this.init())}init(){this.pluginName=this.hot.getPluginName(this),this.updatePluginSettings(this.hot.getSettings()[this.constructor.PLUGIN_KEY]);const e=this.constructor.PLUGIN_DEPS,t=Array.isArray(e)?e:[];if(t.length>0){const e=[];if(t.forEach(t=>{const[o,i]=t.split(":");if(!v.has(o))throw new Error(`Unknown plugin dependency type "${o}" was found.`);v.get(o)(i)||e.push(` - ${i} (${o})`)}),e.length>0){const t=[`The ${this.pluginName} plugin requires the following modules:\n`,`${e.join("\n")}\n`].join("");E.push(t)}}R||(R=(0,a.getPluginsNames)()),R.indexOf(this.pluginName)>=0&&R.splice(R.indexOf(this.pluginName),1),this.hot.addHookOnce("afterPluginsInitialized",()=>{this.isEnabled&&this.isEnabled()&&this.enablePlugin()});if(0===R.length){if(E.length>0){const e=[`${E.join("\n")}\n`,"You have to import and register them manually."].join("");throw E.length=0,new Error(e)}this.hot.runHooks("afterPluginsInitialized")}this.initialized=!0}enablePlugin(){this.enabled=!0}disablePlugin(){var e;null===(e=this.eventManager)||void 0===e||e.clear(),this.clearHooks(),this.enabled=!1}getSetting(e){const t=this.constructor.DEFAULT_SETTINGS;if(void 0===e)return(0,n.isObject)(w(b,this))?(0,n.assignObjectDefaults)(w(b,this),t):w(b,this);var o;if((Array.isArray(w(b,this))||(0,n.isObject)(w(b,this)))&&t[y]===e)return Array.isArray(w(b,this))?w(b,this):null!==(o=w(b,this)[e])&&void 0!==o?o:t[e];if(e.includes(".")){const o=(0,n.getProperty)(w(b,this),e),i=(0,n.getProperty)(t,e);return(0,n.isObject)(o)?(0,n.assignObjectDefaults)(o,i):void 0!==o?o:i}return(0,n.isObject)(w(b,this))?(0,n.assignObjectDefaults)(w(b,this),t)[e]:t[e]}updatePluginSettings(e){const t=this.constructor.SETTINGS_VALIDATORS;if(t&&"function"==typeof t&&"object"!=typeof e){return!1===t(e)?void(0,g.warn)(`${this.pluginName} Plugin: option is not valid and it will be ignored.`):(m(b,this,e),w(b,this))}return t&&"object"==typeof t&&"object"==typeof e?(null!==w(b,this)&&"object"==typeof w(b,this)||m(b,this,{...this.constructor.DEFAULT_SETTINGS}),Object.keys(t).forEach(o=>{if(!(o in e))return;const i=t[o];!1!==(!i||i(e[o]))?w(b,this)[o]=e[o]:(0,g.warn)(`${this.pluginName} Plugin: "${o}" option is not valid and it will be ignored.`)}),w(b,this)):(m(b,this,e),e)}addHook(e,t,o){w(_,this)[e]=w(_,this)[e]||[];const i=w(_,this)[e];this.hot.addHook(e,t,o),i.push(t),w(_,this)[e]=i}removeHooks(e){(0,r.arrayEach)(w(_,this)[e]||[],t=>{this.hot.removeHook(e,t)})}clearHooks(){const e=w(_,this);(0,n.objectEach)(e,(e,t)=>this.removeHooks(t)),e.length=0}callOnPluginsReady(e){this.isPluginsReady?e():this.pluginsInitializedCallbacks.push(e)}onAfterPluginsInitialized(){(0,r.arrayEach)(this.pluginsInitializedCallbacks,e=>e()),this.pluginsInitializedCallbacks.length=0,this.isPluginsReady=!0}onUpdateSettings(e){const t=C(T,this,M).call(this,e);this.isEnabled&&(this.enabled&&!this.isEnabled()&&this.disablePlugin(),!this.enabled&&this.isEnabled()&&this.enablePlugin(),this.enabled&&this.isEnabled()&&t&&(this.updatePluginSettings(e[this.constructor.PLUGIN_KEY]),this.updatePlugin(e)))}updatePlugin(){}destroy(){var e;m(b,this,null),null===(e=this.eventManager)||void 0===e||e.destroy(),this.clearHooks(),(0,n.objectEach)(this,(e,t)=>{"hot"!==t&&(this[t]=null)}),delete this.t,delete this.hot}}},940:(e,t,o)=>{"use strict";o(60791)},1011:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490),o(99356),o(34478),o(31143);var i=o(26808),s=o(78966),n=o(94576),r=o(58604),a=o(55656);function l(e,t,o){h(e,t),t.set(e,o)}function h(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function c(e,t,o){return e.set(d(e,t),o),o}function u(e,t){return e.get(d(e,t))}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=t.PLUGIN_KEY="manualRowResize",f=t.PLUGIN_PRIORITY=30,p="manualRowHeights";var m=new WeakMap,w=new WeakMap,C=new WeakMap,v=new WeakMap,y=new WeakMap,S=new WeakMap,E=new WeakMap,R=new WeakMap,b=new WeakMap,_=new WeakMap,T=new WeakMap,M=new WeakMap,I=new WeakMap,O=new WeakMap,A=new WeakMap,N=new WeakMap,P=new WeakSet;class H extends i.BasePlugin{static get PLUGIN_KEY(){return g}static get PLUGIN_PRIORITY(){return f}constructor(e){var t,o;super(e),h(t=this,o=P),o.add(t),l(this,m,null),l(this,w,null),l(this,C,[]),l(this,v,null),l(this,y,null),l(this,S,null),l(this,E,null),l(this,R,null),l(this,b,this.hot.rootDocument.createElement("DIV")),l(this,_,this.hot.rootDocument.createElement("DIV")),l(this,T,!1),l(this,M,!1),l(this,I,0),l(this,O,null),l(this,A,void 0),l(this,N,void 0),(0,s.addClass)(u(b,this),"manualRowResizer"),(0,s.addClass)(u(_,this),"manualRowResizerGuide")}get inlineDir(){return this.hot.isRtl()?"right":"left"}isEnabled(){return this.hot.getSettings()[g]}enablePlugin(){this.enabled||(c(A,this,new a.PhysicalIndexToValueMap),u(A,this).addLocalHook("init",()=>d(P,this,F).call(this)),this.hot.rowIndexMapper.registerMap(this.pluginName,u(A,this)),this.addHook("modifyRowHeight",(e,t)=>d(P,this,W).call(this,e,t)),this.bindEvents(),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){c(N,this,u(A,this).getValues()),this.hot.rowIndexMapper.unregisterMap(this.pluginName),super.disablePlugin()}saveManualRowHeights(){this.hot.runHooks("persistentStateSave",p,u(A,this).getValues())}loadManualRowHeights(){const e={};return this.hot.runHooks("persistentStateLoad",p,e),e.value}setManualSize(e,t){const o=this.hot.toPhysicalRow(e),i=Math.max(t,this.hot.stylesHandler.getDefaultRowHeight());return u(A,this).setValueAtIndex(o,i),i}getLastDesiredRowHeight(){return u(v,this)}setupHandlePosition(e){if(u(I,this)>1)return;c(m,this,e);const{view:t}=this.hot,{_wt:o}=t,i=o.wtTable.getCoords(u(m,this)),a=i.row;if(a<0)return;const l=(0,s.outerWidth)(u(m,this)),h=u(m,this).getBoundingClientRect(),d=a<o.getSetting("fixedRowsTop"),g=a>=t.countNotHiddenRowIndexes(0,1)-o.getSetting("fixedRowsBottom");let f;d?f=o.wtOverlays.topInlineStartCornerOverlay.getRelativeCellPosition(u(m,this),i.row,i.col):g&&(f=o.wtOverlays.bottomInlineStartCornerOverlay.getRelativeCellPosition(u(m,this),i.row,i.col)),f||(f=o.wtOverlays.inlineStartOverlay.getRelativeCellPosition(u(m,this),i.row,i.col)),c(w,this,this.hot.rowIndexMapper.getVisualFromRenderableIndex(a)),c(C,this,[]);const p=this.hot.selection.isSelectedByCorner()||this.hot.selection.isSelectedByRowHeader();if(this.hot.selection.isSelected()&&p){const e=this.hot.getSelectedRange();(0,n.arrayEach)(e,e=>{const t=e.getTopStartCorner().row,o=e.getBottomStartCorner().row;(0,r.rangeEach)(t,o,e=>{u(C,this).includes(e)||u(C,this).push(e)})})}u(C,this).includes(u(w,this))||c(C,this,[u(w,this)]),c(R,this,f.top-6),c(E,this,parseInt(h.height,10)),u(b,this).style.top=`${u(R,this)+u(E,this)}px`,u(b,this).style[this.inlineDir]=`${f.start}px`,u(b,this).style.width=`${l}px`,this.hot.rootElement.appendChild(u(b,this))}refreshHandlePosition(){u(b,this).style.top=`${u(R,this)+u(v,this)}px`}setupGuidePosition(){const e=parseInt((0,s.outerWidth)(u(b,this)),10),t=parseInt(u(b,this).style[this.inlineDir],10)+e,o=this.hot.view.getTableWidth();(0,s.addClass)(u(b,this),"active"),(0,s.addClass)(u(_,this),"active"),u(_,this).style.top=u(b,this).style.top,u(_,this).style[this.inlineDir]=`${t}px`,u(_,this).style.width=o-e+"px",this.hot.rootElement.appendChild(u(_,this))}refreshGuidePosition(){u(_,this).style.top=u(b,this).style.top}hideHandleAndGuide(){(0,s.removeClass)(u(b,this),"active"),(0,s.removeClass)(u(_,this),"active")}checkIfRowHeader(e){const t=(0,s.closest)(e,["TBODY"],this.hot.rootElement),{inlineStartOverlay:o,topInlineStartCornerOverlay:i,bottomInlineStartCornerOverlay:n}=this.hot.view._wt.wtOverlays;return[o.clone.wtTable.TBODY,i.clone.wtTable.TBODY,n.clone.wtTable.TBODY].includes(t)}getClosestTHParent(e){return"TABLE"!==e.tagName?"TH"===e.tagName?e:this.getClosestTHParent(e.parentNode):null}getActualRowHeight(e){const t=this.hot.view._wt.wtTable.getRowHeight(e);return void 0!==t&&u(y,this)<t?t:u(y,this)}afterMouseDownTimeout(){const e=()=>{this.hot.view.adjustElementsSize(),this.hot.render()},t=(t,o)=>{const i=this.hot.runHooks("beforeRowResize",this.getActualRowHeight(t),t,!0);void 0!==i&&c(y,this,i),this.setManualSize(t,u(y,this)),this.hot.runHooks("afterRowResize",this.getActualRowHeight(t),t,!0),o&&e()};if(u(I,this)>=2){u(C,this).length>1?((0,n.arrayEach)(u(C,this),e=>{t(e)}),e()):(0,n.arrayEach)(u(C,this),e=>{t(e,!0)})}c(I,this,0),c(O,this,null)}bindEvents(){const{rootElement:e,rootWindow:t}=this.hot;this.eventManager.addEventListener(e,"mouseover",e=>d(P,this,x).call(this,e)),this.eventManager.addEventListener(e,"mousedown",e=>d(P,this,k).call(this,e)),this.eventManager.addEventListener(t,"mousemove",e=>d(P,this,D).call(this,e)),this.eventManager.addEventListener(t,"mouseup",()=>d(P,this,L).call(this)),this.eventManager.addEventListener(u(b,this),"contextmenu",()=>d(P,this,V).call(this))}destroy(){super.destroy()}}function x(e){if(!(0,s.isDetached)(e.target)&&!0!==u(M,this)&&this.checkIfRowHeader(e.target)){const t=this.getClosestTHParent(e.target);t&&(u(T,this)||this.setupHandlePosition(t))}}function k(e){(0,s.hasClass)(e.target,"manualRowResizer")&&(this.setupHandlePosition(u(m,this)),this.setupGuidePosition(),c(T,this,!0),null===u(O,this)&&(c(O,this,setTimeout(()=>this.afterMouseDownTimeout(),500)),this.hot._registerTimeout(u(O,this))),c(I,this,u(I,this)+1),c(S,this,e.pageY),c(y,this,u(E,this)))}function D(e){u(T,this)&&(c(v,this,u(E,this)+(e.pageY-u(S,this))),(0,n.arrayEach)(u(C,this),e=>{c(y,this,this.setManualSize(e,u(v,this)))}),this.refreshHandlePosition(),this.refreshGuidePosition())}function L(){const e=()=>{this.hot.view.adjustElementsSize(),this.hot.render()},t=(t,o)=>{this.hot.runHooks("beforeRowResize",this.getActualRowHeight(t),t,!1),o&&e(),this.saveManualRowHeights(),this.hot.runHooks("afterRowResize",this.getActualRowHeight(t),t,!1)};if(u(T,this)){if(this.hideHandleAndGuide(),c(T,this,!1),u(y,this)!==u(E,this)){u(C,this).length>1?((0,n.arrayEach)(u(C,this),e=>{t(e)}),e()):(0,n.arrayEach)(u(C,this),e=>{t(e,!0)})}this.setupHandlePosition(u(m,this))}}function V(){this.hideHandleAndGuide(),this.hot.rootElement.removeChild(u(b,this)),this.hot.rootElement.removeChild(u(_,this)),c(T,this,!1),c(M,this,!0),this.hot._registerImmediate(()=>{c(M,this,!1)})}function W(e,t){let o=e;if(this.enabled){const e=this.hot.toPhysicalRow(t),i=u(A,this).getValueAtIndex(e);this.hot.getSettings()[g]&&i&&(o=i)}return o}function F(){const e=this.hot.getSettings()[g],t=this.loadManualRowHeights();this.hot.batchExecution(()=>{void 0!==t?t.forEach((e,t)=>{u(A,this).setValueAtIndex(t,e)}):Array.isArray(e)?(e.forEach((e,t)=>{u(A,this).setValueAtIndex(t,e)}),c(N,this,e)):!0===e&&Array.isArray(u(N,this))&&u(N,this).forEach((e,t)=>{u(A,this).setValueAtIndex(t,e)})},!0)}t.ManualRowResize=H},1471:(e,t,o)=>{"use strict";t.__esModule=!0,t.getListWithInsertedItems=function(e,t,o,s){const n=o.length?o[0]:void 0;return[...e.slice(0,n),...o.map((e,t)=>(0,i.isFunction)(s)?s(e,t):s),...void 0===n?[]:e.slice(n)]},t.getListWithRemovedItems=function(e,t){return(0,s.arrayFilter)(e,(e,o)=>!1===t.includes(o))},o(34478),o(940);var i=o(81761),s=o(94576)},1796:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(47271);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.MultiColumnSorting=i.MultiColumnSorting},1880:(e,t,o)=>{"use strict";t.__esModule=!0,t.createMenuItemRenderer=function(e){return(t,o,r,a,l,h)=>{const c=t.getSourceDataAtRow(r),u=e.rootDocument.createElement("div"),d="function"==typeof h?h.call(e):h,g="function"==typeof c.ariaLabel?c.ariaLabel.call(e):c.ariaLabel,f="function"==typeof c.ariaChecked?c.ariaChecked.call(e):c.ariaChecked;if((0,s.empty)(o),(0,s.addClass)(u,"htItemWrapper"),e.getSettings().ariaTags){const t=!(0,i.isItemDisabled)(c,e)&&!(0,i.isItemSelectionDisabled)(c)&&!(0,i.isItemSeparator)(c);(0,s.setAttribute)(o,[...(0,i.isItemCheckable)(c)?[(0,n.A11Y_MENU_ITEM_CHECKBOX)(),(0,n.A11Y_LABEL)(g),(0,n.A11Y_CHECKED)(f)]:[(0,n.A11Y_MENU_ITEM)(),(0,n.A11Y_LABEL)(d)],...t?[(0,n.A11Y_TABINDEX)(-1)]:[],...(0,i.isItemDisabled)(c,e)?[(0,n.A11Y_DISABLED)()]:[],...(0,i.isItemSubMenu)(c)?[(0,n.A11Y_EXPANDED)(!1)]:[]])}o.className="",o.appendChild(u),(0,i.isItemSeparator)(c)?(0,s.addClass)(o,"htSeparator"):"function"==typeof c.renderer?((0,s.addClass)(o,"htCustomMenuRenderer"),o.appendChild(c.renderer(t,u,r,a,l,d))):(0,s.fastInnerHTML)(u,d),(0,i.isItemDisabled)(c,e)?(0,s.addClass)(o,"htDisabled"):(0,i.isItemSelectionDisabled)(c)?(0,s.addClass)(o,"htSelectionDisabled"):(0,i.isItemSubMenu)(c)&&(0,s.addClass)(o,"htSubmenu")}};var i=o(30386),s=o(78966),n=o(72609)},2373:(e,t,o)=>{"use strict";t.__esModule=!0,t.registerAllCellTypes=function(){(0,g.registerCellType)(i.AutocompleteCellType),(0,g.registerCellType)(s.CheckboxCellType),(0,g.registerCellType)(n.DateCellType),(0,g.registerCellType)(r.DropdownCellType),(0,g.registerCellType)(a.HandsontableCellType),(0,g.registerCellType)(l.NumericCellType),(0,g.registerCellType)(h.PasswordCellType),(0,g.registerCellType)(c.SelectCellType),(0,g.registerCellType)(u.TextCellType),(0,g.registerCellType)(d.TimeCellType)};var i=o(37994);t.AutocompleteCellType=i.AutocompleteCellType,t.AUTOCOMPLETE_TYPE=i.CELL_TYPE;var s=o(9967);t.CheckboxCellType=s.CheckboxCellType,t.CHECKBOX_TYPE=s.CELL_TYPE;var n=o(26814);t.DateCellType=n.DateCellType,t.DATE_TYPE=n.CELL_TYPE;var r=o(26539);t.DropdownCellType=r.DropdownCellType,t.DROPDOWN_TYPE=r.CELL_TYPE;var a=o(56479);t.HandsontableCellType=a.HandsontableCellType,t.HANDSONTABLE_TYPE=a.CELL_TYPE;var l=o(25561);t.NumericCellType=l.NumericCellType,t.NUMERIC_TYPE=l.CELL_TYPE;var h=o(9807);t.PasswordCellType=h.PasswordCellType,t.PASSWORD_TYPE=h.CELL_TYPE;var c=o(78938);t.SelectCellType=c.SelectCellType,t.SELECT_TYPE=c.CELL_TYPE;var u=o(5997);t.TextCellType=u.TextCellType,t.TEXT_TYPE=u.CELL_TYPE;var d=o(24827);t.TimeCellType=d.TimeCellType,t.TIME_TYPE=d.CELL_TYPE;var g=o(61654);t.registerCellType=g.registerCellType,t.getCellType=g.getCellType,t.getRegisteredCellTypeNames=g.getRegisteredCellTypeNames,t.getRegisteredCellTypes=g.getRegisteredCellTypes,t.hasCellType=g.hasCellType},2382:(e,t,o)=>{"use strict";var i=o(53001);e.exports=!i(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},2459:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=o(78966),n=i(o(75407)),r=o(65820),a=o(91342),l=o(66649);class h extends r.Overlay{constructor(e,t,o,i){super(e,t,l.CLONE_INLINE_START,o,i)}createTable(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return new n.default(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}resetFixedPosition(){const{wtTable:e}=this.wot;if(!this.needFullRender||!this.shouldBeRendered()||!e.holder.parentNode)return!1;const{rootWindow:t}=this.domBindings,o=this.clone.wtTable.holder.parentNode,i=this.wtSettings.getSetting("preventOverflow");let n=0;this.trimmingContainer!==t||i&&"horizontal"===i?(n=this.getScrollPosition(),(0,s.resetCssTransform)(o)):(n=this.getOverlayOffset()*(this.isRtl()?-1:1),(0,s.setOverlayPosition)(o,`${n}px`,"0px"));const r=this.adjustHeaderBordersPosition(n);return this.adjustElementsSize(),r}setScrollPosition(e){const{rootWindow:t}=this.domBindings;let o=!1;this.isRtl()&&(e=-e);const i=this.mainTableScrollableElement;if(i===t&&e!==t.scrollX){const i=t.scrollX;t.scrollTo(e,(0,s.getWindowScrollTop)(t)),o=i!==t.scrollX}else if(e!==i.scrollLeft){const t=i.scrollLeft;i.scrollLeft=e,o=t!==i.scrollLeft}return o}onScroll(){this.wtSettings.getSetting("onScrollVertically")}sumCellSizes(e,t){const o=this.wtSettings.getSetting("defaultColumnWidth");let i=e,s=0;for(;i<t;)s+=this.wot.wtTable.getColumnWidth(i)||o,i+=1;return s}adjustElementsSize(){this.updateTrimmingContainer(),this.needFullRender&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}adjustRootElementSize(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:o,rootWindow:i}=this.domBindings,n=this.clone.wtTable.holder.parentNode.style,r=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==i||"vertical"===r){let i=t.getWorkspaceHeight();t.hasHorizontalScroll()&&(i-=(0,s.getScrollbarWidth)(o)),i=Math.min(i,e.wtRootElement.scrollHeight),n.height=`${i}px`}else n.height="";this.clone.wtTable.holder.style.height=n.height;const a=(0,s.outerWidth)(this.clone.wtTable.TABLE);n.width=`${a}px`}adjustRootChildrenSize(){const{holder:e}=this.clone.wtTable,t=(0,a.getCornerStyle)(this.wot),o=this.wot.selectionManager.getFocusSelection()?parseInt(t.width,10)/2:0;this.clone.wtTable.hider.style.height=this.hider.style.height,e.style.height=e.parentNode.style.height,e.style.width=`${parseInt(e.parentNode.style.width,10)+o}px`}applyToDOM(){const e=this.wtSettings.getSetting("totalColumns"),t=this.isRtl()?"right":"left";if("number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition)this.spreader.style[t]=`${this.wot.wtViewport.columnsRenderCalculator.startPosition}px`;else{if(0!==e)throw new Error("Incorrect value of the columnsRenderCalculator");this.spreader.style[t]="0"}this.isRtl()?this.spreader.style.left="":this.spreader.style.right="",this.needFullRender&&this.syncOverlayOffset()}syncOverlayOffset(){"number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition?this.clone.wtTable.spreader.style.top=`${this.wot.wtViewport.rowsRenderCalculator.startPosition}px`:this.clone.wtTable.spreader.style.top=""}scrollTo(e,t){const{wtSettings:o}=this,i=o.getSetting("rowHeaders"),n=o.getSetting("fixedColumnsStart"),r=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,a=0===n&&i.length>0&&!(0,s.hasClass)(r.parentNode,"innerBorderInlineStart")?1:0;let l=this.getTableParentOffset(),h=0;if(t){this.wot.wtTable.getColumnWidth(e)>this.wot.wtViewport.getViewportWidth()&&(t=!1)}return t&&r.offsetWidth!==r.clientWidth&&(h=(0,s.getScrollbarWidth)(this.domBindings.rootDocument)),t?(l+=this.sumCellSizes(0,e+1),l-=this.wot.wtViewport.getViewportWidth(),l+=a):l+=this.sumCellSizes(this.wtSettings.getSetting("fixedColumnsStart"),e),l+=h,(0,s.getMaximumScrollLeft)(this.mainTableScrollableElement)===l-a&&a>0&&this.wot.wtOverlays.expandHiderHorizontallyBy(a),this.setScrollPosition(l)}getTableParentOffset(){let e=0;return this.wtSettings.getSetting("preventOverflow")||this.trimmingContainer!==this.domBindings.rootWindow||(e=this.wot.wtTable.holderOffset.left),e}getScrollPosition(){return Math.abs((0,s.getScrollLeft)(this.mainTableScrollableElement,this.domBindings.rootWindow))}getOverlayOffset(){const{rootWindow:e}=this.domBindings,t=this.wtSettings.getSetting("preventOverflow");let o=0;if(this.trimmingContainer===e&&(!t||"horizontal"!==t)){o=this.isRtl()?Math.abs(Math.min(this.getTableParentOffset()-this.getScrollPosition(),0)):Math.max(this.getScrollPosition()-this.getTableParentOffset(),0);o>this.wot.wtTable.getTotalWidth()-this.clone.wtTable.getTotalWidth()&&(o=0)}return o}adjustHeaderBordersPosition(e){const{wtSettings:t}=this,o=this.wot.wtTable.holder.parentNode,i=t.getSetting("rowHeaders"),n=t.getSetting("fixedColumnsStart"),r=t.getSetting("totalRows"),a="vertical"===t.getSetting("preventOverflow");r?(0,s.removeClass)(o,"emptyRows"):(0,s.addClass)(o,"emptyRows");let l=!1;if(!a)if(n&&!i.length)(0,s.addClass)(o,"innerBorderLeft innerBorderInlineStart");else if(!n&&i.length){const t=(0,s.hasClass)(o,"innerBorderInlineStart");e?((0,s.addClass)(o,"innerBorderLeft innerBorderInlineStart"),l=!t):((0,s.removeClass)(o,"innerBorderLeft innerBorderInlineStart"),l=t)}return l}}t.InlineStartOverlay=h},2470:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"borders:bottom",name(){let e=this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_BORDERS_BOTTOM);return(0,s.checkSelectionBorders)(this,"bottom")&&(e=(0,s.markSelected)(e)),e},callback(t,o){const i=(0,s.checkSelectionBorders)(this,"bottom");e.prepareBorder(o,"bottom",i)}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(3720)},2744:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.equalsIgnoreCase=function(){const e=[];for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];let s=o.length;for(;s;){s-=1;const t=(0,n.stringify)(o[s]).toLowerCase();-1===e.indexOf(t)&&e.push(t)}return 1===e.length},t.isJSON=function(e){if("string"!=typeof e)return!1;try{const t=JSON.parse(e);return"object"==typeof t&&null!==t}catch{return!1}},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=r,t.stripTags=function(e){return r(`${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(99356);var s=i(o(65166)),n=o(7886);function r(e,t){return s.default.sanitize(e,t)}},2754:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300));t.default=class{constructor(e,t,o){(0,s.default)(this,"offset",void 0),(0,s.default)(this,"total",void 0),(0,s.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))}}},2847:(e,t,o)=>{"use strict";var i=o(94266),s=Object.defineProperty;e.exports=function(e,t){try{s(i,e,{value:t,configurable:!0,writable:!0})}catch(o){i[e]=t}return t}},2907:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=o(94576),n=i(o(3458));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 a(e,t){return e.get(l(e,t))}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 h=new WeakMap,c=new WeakMap,u=new WeakMap;t.default=class{constructor(e){var t,o,i;r(this,h,new Map),r(this,c,new Map),r(this,u,null),o=this,i=e,(t=u).set(l(t,o),i)}getRoots(){return Array.from(a(h,this).values())}getRootByColumn(e){let t;return a(c,this).has(e)&&(t=a(h,this).get(a(c,this).get(e))),t}getNode(e,t){const o=this.getRootByColumn(t);if(!o)return;const i=t-a(c,this).get(t);let s,n=0;return o.walkDown(o=>{const{data:{origColspan:r,headerLevel:a}}=o;if(e===a){if(i>=n&&i<=n+r-1)return s=o,s.data.isRoot=t===s.data.columnIndex,!1;n+=r}}),s}rebuildTreeIndex(){let e=0;a(c,this).clear(),(0,s.arrayEach)(a(h,this),t=>{let[,{data:{colspan:o}}]=t;for(let t=e;t<e+o;t++)a(c,this).set(t,e);e+=o})}buildTree(){this.clear();const e=a(u,this).getColumnsCount();let t=0;for(;t<e;){const e=a(u,this).getHeaderSettings(0,t),o=new n.default;a(h,this).set(t,o),this.buildLeaves(o,t,0,e.origColspan),t+=e.origColspan}this.rebuildTreeIndex()}buildLeaves(e,t,o){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const r=a(u,this).getHeadersSettings(o,t,i);o+=1,(0,s.arrayEach)(r,i=>{const s={...i,headerLevel:o-1,columnIndex:t};let r;1===o?(e.data=s,r=e):(r=new n.default(s),e.addChild(r)),o<a(u,this).getLayersCount()&&this.buildLeaves(r,t,o,i.origColspan),t+=i.origColspan})}clear(){a(h,this).clear(),a(c,this).clear()}}},2979:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490);var i=o(78966),s=o(4138),n=o(26911);function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function a(e,t){return e.get(l(e,t))}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 h=new WeakMap,c=new WeakSet;class u extends n.BaseUI{static get DEFAULTS(){return(0,s.clone)({placeholder:"",type:"text",tagName:"input",tabIndex:-1})}constructor(e,t){var o,i;super(e,(0,s.extend)(u.DEFAULTS,t)),r(o=this,i=c),i.add(o),function(e,t,o){r(e,t),t.set(e,o)}(this,h,void 0),this.registerHooks()}registerHooks(){this.addLocalHook("keyup",e=>l(c,this,d).call(this,e))}build(){super.build();const e=this.hot.rootDocument.createElement("div");var t,o,s;t=h,o=this,s=this._element.firstChild,t.set(l(t,o),s),(0,i.addClass)(this._element,"htUIInput"),(0,i.addClass)(e,"htUIInputIcon"),this._element.appendChild(e),this.update()}update(){this.isBuilt()&&(a(h,this).type=this.options.type,a(h,this).placeholder=this.translateIfPossible(this.options.placeholder),a(h,this).value=this.translateIfPossible(this.options.value))}focus(){this.isBuilt()&&a(h,this).focus()}}function d(e){this.options.value=e.target.value}t.InputUI=u},3161:(e,t)=>{"use strict";t.__esModule=!0,t.getNormalizedDate=function(e){const t=new Date(e);if(!isNaN(new Date(`${e}T00:00`).getDate()))return new Date(t.getTime()+6e4*t.getTimezoneOffset());return t}},3176:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.default=function(e){return{key:"mergeCells",name(){const t=this.getSelectedActive();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(s.CONTEXTMENU_ITEMS_UNMERGE_CELLS)}return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_MERGE_CELLS)},callback(){const t=this.getSelectedRangeActive();if(!t)return;t.setDirection(this.isRtl()?"NE-SW":"NW-SE");const{from:o,to:i}=t;e.toggleMerge(t),this.selectCell(o.row,o.col,i.row,i.col,!1)},disabled(){const e=this.getSelectedActive();if(!e)return!0;return n.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 s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),n=i(o(60860))},3196:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(34478),o(31143);var s=i(o(24300)),n=o(631),r=o(56259);class a extends n.BaseAction{constructor(e){let{columns:t,finalIndex:o}=e;super("col_move"),(0,s.default)(this,"columns",void 0),(0,s.default)(this,"finalColumnIndex",void 0),this.columns=t.slice(),this.finalColumnIndex=o}static startRegisteringEvents(e,t){e.addHook("beforeColumnMove",(e,o)=>{!1!==e&&t.done(()=>new a({columns:e,finalIndex:o}))})}undo(e,t){const o=e.getPlugin("manualColumnMove");e.addHookOnce("afterViewRender",t);(0,r.getMoves)(this.columns,this.finalColumnIndex,e.columnIndexMapper.getNumberOfIndexes()).reverse().forEach(e=>{let{from:t,to:i}=e;t<i&&(i-=1),o.moveColumn(i,t)}),e.render(),e.deselectCell(),e.selectColumns(this.columns[0],this.columns[0]+this.columns.length-1)}redo(e,t){const o=e.getPlugin("manualColumnMove");e.addHookOnce("afterViewRender",t),o.moveColumns(this.columns.slice(),this.finalColumnIndex),e.render(),e.deselectCell(),e.selectColumns(this.finalColumnIndex,this.finalColumnIndex+this.columns.length-1)}}t.ColumnMoveAction=a},3417:(e,t,o)=>{"use strict";t.__esModule=!0,t.compareFunctionFactory=function(e,t,o){return function(t,n){const r=parseFloat(t),a=parseFloat(n),{sortEmptyCells:l}=o;if(r===a||isNaN(r)&&isNaN(a))return s.DO_NOT_SWAP;if(l){if((0,i.isEmpty)(t))return"asc"===e?s.FIRST_BEFORE_SECOND:s.FIRST_AFTER_SECOND;if((0,i.isEmpty)(n))return"asc"===e?s.FIRST_AFTER_SECOND:s.FIRST_BEFORE_SECOND}return isNaN(r)?s.FIRST_AFTER_SECOND:isNaN(a)?s.FIRST_BEFORE_SECOND:r<a?"asc"===e?s.FIRST_BEFORE_SECOND:s.FIRST_AFTER_SECOND:r>a?"asc"===e?s.FIRST_AFTER_SECOND:s.FIRST_BEFORE_SECOND:s.DO_NOT_SWAP}};var i=o(7886),s=o(70705);t.COLUMN_DATA_TYPE="numeric"},3458:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.depthFirstPreOrder=r;var s=i(o(24300));o(52490),o(99356);const n=t.TRAVERSAL_DF_PRE="DF-pre-order";function r(e,t){let o=e.call(t,this);for(let i=0;i<this.childs.length;i++){if(!1===o)return!1;o=r.call(this.childs[i],e,t)}return o}const a=t.TRAVERSAL_DF_POST="DF-post-order";const l=t.TRAVERSAL_BF="BF";const h=l,c=new Map([[n,r],[a,function e(t,o){for(let i=0;i<this.childs.length;i++){if(!1===e.call(this.childs[i],t,o))return!1}return t.call(o,this)}],[l,function(e,t){const o=[this];!function i(){if(0===o.length)return;const s=o.shift();o.push(...s.childs),!1!==e.call(t,s)&&i()}()}]]);class u{constructor(e){(0,s.default)(this,"data",{}),(0,s.default)(this,"parent",null),(0,s.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=i=>{!1!==e.call(t,i)&&null!==i.parent&&o(i.parent)};o(this)}}t.default=u},3518:(e,t,o)=>{"use strict";var i=o(72820),s=o(77439),n=o(94178),r=o(70792),a=o(90501),l=o(21177),h=o(99793),c=o(14483)("every",TypeError);i({target:"Iterator",proto:!0,real:!0,forced:c},{every:function(e){a(this);try{r(e)}catch(e){h(this,"throw",e)}if(c)return s(c,this,e);var t=l(this),o=0;return!n(t,function(t,i){if(!e(t,o++))return i()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},3631:(e,t,o)=>{"use strict";t.__esModule=!0,t.getThemeClassName=function(e){const{classNames:t}=(0,i.findFirstParentWithClass)(e,/ht-theme-[a-zA-Z0-9_-]+/);return t.pop()};var i=o(78966)},3639:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(31143);var s=i(o(24300)),n=o(78966),r=o(81761),a=i(o(64034)),l=i(o(2754)),h=o(97095),c=i(o(33183)),u=i(o(30041)),d=o(99700),g=o(72609);t.default=class{constructor(e,t,o,i,r){(0,s.default)(this,"wtSettings",null),(0,s.default)(this,"domBindings",void 0),(0,s.default)(this,"TBODY",null),(0,s.default)(this,"THEAD",null),(0,s.default)(this,"COLGROUP",null),(0,s.default)(this,"hasTableHeight",!0),(0,s.default)(this,"hasTableWidth",!0),(0,s.default)(this,"isTableVisible",!1),(0,s.default)(this,"tableOffset",0),(0,s.default)(this,"holderOffset",0),this.domBindings=o,this.isMaster="master"===r,this.name=r,this.dataAccessObject=e,this.facadeGetter=t,this.wtSettings=i,this.instance=this.dataAccessObject.wot,this.wot=this.dataAccessObject.wot,this.TABLE=o.rootTable,(0,n.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 a=this.wtSettings.getSettingPure("rowHeaderWidth");this.wtSettings.update("rowHeaderWidth",()=>this._modifyRowHeaderWidth(a)),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,n.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,n.setAttribute)(o,[(0,g.A11Y_PRESENTATION)()]),o}createHider(e){const t=e.parentNode;let o;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,n.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,n.setAttribute)(o,[(0,g.A11Y_PRESENTATION)()]),o}createHolder(e){const t=e.parentNode;let o;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,n.hasClass)(t,"wtHolder")||(o=this.domBindings.rootDocument.createElement("div"),o.style.position="relative",o.className="wtHolder",this.isMaster&&(0,n.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,n.setAttribute)(o.parentNode,[(0,g.A11Y_PRESENTATION)()])),o.appendChild(e)),this.wtSettings.getSetting("ariaTags")&&(0,n.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:i}=this.dataAccessObject,s=t.getSetting("totalRows"),r=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,n.offset)(this.holder),f=i.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,n.offset)(this.TABLE):this.tableOffset=this.dataAccessObject.parentTableOffset;const e=Math.max(this.getFirstRenderedRow(),0),t=Math.max(this.getFirstRenderedColumn(),0);this.rowFilter=new l.default(e,s,g),this.columnFilter=new a.default(t,r,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")||i.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 i=this.wtSettings.getSetting("stylesHandler").getDefaultRowHeight();let s,r,a;const l=this.wtSettings.getSetting("columnHeaderHeight")||[];for(;o;)o-=1,s=this.getColumnHeaderHeight(o),r=this.getColumnHeader(t,o),r&&(a=(0,n.innerHeight)(r),(!s&&i<a||s<a)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]=a),Array.isArray(l)?null!==l[o]&&void 0!==l[o]&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]=l[o]):isNaN(l)||(this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]=l),this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]<(l[o]||l)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]=l[o]||l))}adjustColumnHeaderHeights(){const{wtSettings:e}=this,t=this.THEAD.childNodes,o=this.dataAccessObject.wtViewport.oversizedColumnHeaders;for(let i=0,s=e.getSetting("columnHeaders").length;i<s;i++)if(o[i]){if(!t[i]||0===t[i].childNodes.length)return;t[i].childNodes[0].style.height=`${o[i]}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 i=this.wtSettings.getSetting("onModifyGetCellCoords",t,o,!this.isMaster,"render");if(i&&Array.isArray(i)&&([t,o]=i),this.isRowBeforeRenderedRows(t))return-1;if(this.isRowAfterRenderedRows(t))return-2;if(this.isColumnBeforeRenderedColumns(o))return-3;if(this.isColumnAfterRenderedColumns(o))return-4;const s=this.getRow(t);if(!s&&t>=0)throw new Error("TR was expected to be rendered but is not");const n=s.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(o)];if(!n&&o>=0)throw new Error("TD or TH was expected to be rendered but is not");return n}getRow(e){let t=null,o=null;var i,s;e<0?(t=null===(i=this.rowFilter)||void 0===i?void 0:i.sourceRowToVisibleColHeadedRow(e),o=this.THEAD):(t=null===(s=this.rowFilter)||void 0===s?void 0:s.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 i=e.childNodes[o];i&&t.push(i)}),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),i=o<0?this.rowFilter.sourceRowToVisibleColHeadedRow(e):o,s=(o<0?this.THEAD:this.TBODY).childNodes[i];return null==s?void 0:s.childNodes[t]}getRowHeaders(e){const t=[],o=this.wtSettings.getSetting("rowHeaders").length;for(let i=0;i<o;i++){const o=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)],s=null==o?void 0:o.childNodes[i];s&&t.push(s)}return t}getCoords(e){let t=e;if("TD"!==t.nodeName&&"TH"!==t.nodeName&&(t=(0,n.closest)(t,["TD","TH"])),null===t)return null;const o=t.parentNode;if(!o)return null;const i=o.parentNode;let s=(0,n.index)(o),r=t.cellIndex;if((0,n.overlayContainsElement)(d.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,n.overlayContainsElement)(d.CLONE_TOP,t,this.wtRootElement))"THEAD"===i.nodeName&&(s-=i.childNodes.length);else if((0,n.overlayContainsElement)(d.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)||(0,n.overlayContainsElement)(d.CLONE_BOTTOM,t,this.wtRootElement)){s=this.wtSettings.getSetting("totalRows")-i.childNodes.length+s}else i===this.THEAD?s=this.rowFilter.visibleColHeadedRowToSourceRow(s):this.rowFilter&&(s=this.rowFilter.renderedToSource(s));(0,n.overlayContainsElement)(d.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,n.overlayContainsElement)(d.CLONE_INLINE_START,t,this.wtRootElement)||(0,n.overlayContainsElement)(d.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)?r=this.columnFilter.offsettedTH(r):this.columnFilter&&(r=this.columnFilter.visibleRowHeadedColumnToSourceColumn(r));const a=this.wtSettings.getSetting("onModifyGetCoordsElement",s,r);return a&&Array.isArray(a)&&([s,r]=a),this.wot.createCellCoords(s,r)}markOversizedRows(){if(this.wtSettings.getSetting("externalRowCalculator"))return;let e=this.TBODY.childNodes.length;const t=this.wtSettings.getSetting("stylesHandler"),o=e*t.getDefaultRowHeight(),i=(0,n.innerHeight)(this.TBODY)-1,s=t.areCellsBorderBox(),r=s?n.outerHeight:n.innerHeight,a=s?0:1,l=s?1:0;let h,c,u,d,g;if(o!==i||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?l:0;c=g?r(g):r(d)-a,(!h&&t.getDefaultRowHeight()<c-o||h<c)&&(s||(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,n.outerWidth)(this.TABLE)}getHeight(){return(0,n.outerHeight)(this.TABLE)}getTotalWidth(){const e=(0,n.outerWidth)(this.hider);return 0!==e?e:this.getWidth()}getTotalHeight(){const e=(0,n.outerHeight)(this.hider);return 0!==e?e:this.getHeight()}isVisible(){return(0,n.isVisible)(this.TABLE)}_modifyRowHeaderWidth(e){let t=(0,r.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}}},3715:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490);var i=o(12793);function s(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 r(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 l=new WeakMap,h=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap;t.Positioner=class{constructor(e){s(this,l,void 0),s(this,h,void 0),s(this,c,void 0),s(this,u,!1),s(this,d,{above:0,below:0,left:0,right:0}),r(u,this,e)}setOffset(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return n(d,this)[e]=t,this}setElement(e){return r(l,this,e),this}setParentElement(e){return r(h,this,e),this}updatePosition(e){r(c,this,new i.Cursor(e,n(l,this).ownerDocument.defaultView)),n(u,this)?(n(c,this).fitsBelow(n(l,this))?this.setPositionBelowCursor():n(c,this).fitsAbove(n(l,this))?this.setPositionAboveCursor():this.setPositionBelowCursor(),this.updateHorizontalPosition()):(this.setPositionBelowCursor(),this.setPositionOnRightOfCursor())}updateHorizontalPosition(){"rtl"===n(l,this).dir?n(c,this).fitsOnLeft(n(l,this))?this.setPositionOnLeftOfCursor():this.setPositionOnRightOfCursor():n(c,this).fitsOnRight(n(l,this))?this.setPositionOnRightOfCursor():this.setPositionOnLeftOfCursor()}setPositionAboveCursor(){let e=n(d,this).above+n(c,this).top-n(l,this).offsetHeight;if(n(h,this)){const t=n(h,this).ownerDocument.defaultView.getComputedStyle(n(h,this).querySelector(".ht_master")),o=Number.parseInt(t.paddingTop,10),i=Number.parseInt(t.borderTop,10);e=n(c,this).top+n(c,this).cellHeight-n(l,this).scrollHeight+o+i}n(l,this).style.top=`${e}px`}setPositionBelowCursor(){let e=n(d,this).below+n(c,this).top+1;if(n(h,this)){const t=n(h,this).ownerDocument.defaultView.getComputedStyle(n(h,this).querySelector(".ht_master")),o=Number.parseInt(t.paddingTop,10),i=Number.parseInt(t.borderTop,10);e=n(c,this).top-o-i}n(l,this).style.top=`${e}px`}setPositionOnRightOfCursor(){let e=n(c,this).left;if(n(h,this)){const t=n(h,this).ownerDocument.defaultView,o=Number.parseInt(t.getComputedStyle(n(h,this).querySelector(".htCore")).borderRightWidth,10);e+=n(c,this).cellWidth+o}else e+=n(d,this).right;n(l,this).style.left=`${e}px`}setPositionOnLeftOfCursor(){let e=n(d,this).left+n(c,this).left-n(l,this).offsetWidth;if(n(h,this)){const t=n(h,this).ownerDocument.defaultView;e-=Number.parseInt(t.getComputedStyle(n(h,this).querySelector(".htCore")).borderLeftWidth,10)}n(l,this).style.left=`${e}px`}}},3720:(e,t,o)=>{"use strict";t.__esModule=!0,t.checkSelectionBorders=function(e,t){let o=!1;return(0,n.arrayEach)(e.getSelectedRange(),s=>{s.forAll((s,n)=>{if(s<0||n<0)return;const r=e.getCellMeta(s,n).borders;if(r){if(!t)return o=!0,!1;if(!(0,i.hasOwnProperty)(r[t],"hide")||!1===r[t].hide)return o=!0,!1}})}),o},t.createDefaultCustomBorder=a,t.createDefaultHtBorder=h,t.createEmptyBorders=function(e,t){return{id:r(e,t),border:{width:1,color:"#000",cornerVisible:!1},row:e,col:t,top:{hide:!0},bottom:{hide:!0},start:{hide:!0},end:{hide:!0}}},t.createId=r,t.createSingleEmptyBorder=l,t.denormalizeBorder=function(e){(0,s.isDefined)(e.start)&&(e.left=e.start);(0,s.isDefined)(e.end)&&(e.right=e.end);return e},t.extendDefaultBorder=function(e,t){(0,i.hasOwnProperty)(t,"border")&&t.border&&(e.border=t.border);(0,i.hasOwnProperty)(t,"top")&&(0,s.isDefined)(t.top)&&(t.top?((0,i.isObject)(t.top)||(t.top={width:1,color:"#000"}),e.top=t.top):(t.top={hide:!0},e.top=t.top));(0,i.hasOwnProperty)(t,"bottom")&&(0,s.isDefined)(t.bottom)&&(t.bottom?((0,i.isObject)(t.bottom)||(t.bottom={width:1,color:"#000"}),e.bottom=t.bottom):(t.bottom={hide:!0},e.bottom=t.bottom));(0,i.hasOwnProperty)(t,"start")&&(0,s.isDefined)(t.start)&&(t.start?((0,i.isObject)(t.start)||(t.start={width:1,color:"#000"}),e.start=t.start):(t.start={hide:!0},e.start=t.start));(0,i.hasOwnProperty)(t,"end")&&(0,s.isDefined)(t.end)&&(t.end?((0,i.isObject)(t.end)||(t.end={width:1,color:"#000"}),e.end=t.end):(t.end={hide:!0},e.end=t.end));return e},t.hasLeftRightTypeOptions=function(e){return e.some(e=>(0,s.isDefined)(e.left)||(0,s.isDefined)(e.right))},t.hasStartEndTypeOptions=function(e){return e.some(e=>(0,s.isDefined)(e.start)||(0,s.isDefined)(e.end))},t.markSelected=function(e){return`<span class="selected">${String.fromCharCode(10003)}</span>${e}`},t.normalizeBorder=function(e){var t,o;((0,s.isDefined)(e.start)||(0,s.isDefined)(e.left))&&(e.start=null!==(t=e.start)&&void 0!==t?t:e.left);((0,s.isDefined)(e.end)||(0,s.isDefined)(e.right))&&(e.end=null!==(o=e.end)&&void 0!==o?o:e.right);return delete e.left,delete e.right,e},t.toInlinePropName=function(e){var t;return null!==(t=c.get(e))&&void 0!==t?t:e},o(34478),o(81056);var i=o(4138),s=o(7886),n=o(94576);function r(e,t){return`border_row${e}col${t}`}function a(){return{width:1,color:"#000"}}function l(){return{hide:!0}}function h(){return{width:1,color:"#000",cornerVisible:!1}}const c=new Map([["left","start"],["right","end"]])},3771:(e,t,o)=>{"use strict";t.__esModule=!0,t.compareFunctionFactory=function(e,t,o){const n=t.locale;return function(t,r){const{sortEmptyCells:a}=o;return"string"==typeof t&&(t=t.toLocaleLowerCase(n)),"string"==typeof r&&(r=r.toLocaleLowerCase(n)),t===r?s.DO_NOT_SWAP:(0,i.isEmpty)(t)?(0,i.isEmpty)(r)?s.DO_NOT_SWAP:a&&"asc"===e?s.FIRST_BEFORE_SECOND:s.FIRST_AFTER_SECOND:(0,i.isEmpty)(r)?a&&"asc"===e?s.FIRST_AFTER_SECOND:s.FIRST_BEFORE_SECOND:isNaN(t)&&!isNaN(r)?"asc"===e?s.FIRST_AFTER_SECOND:s.FIRST_BEFORE_SECOND:!isNaN(t)&&isNaN(r)?"asc"===e?s.FIRST_BEFORE_SECOND:s.FIRST_AFTER_SECOND:(isNaN(t)||isNaN(r)||(t=parseFloat(t),r=parseFloat(r)),t<r?"asc"===e?s.FIRST_BEFORE_SECOND:s.FIRST_AFTER_SECOND:t>r?"asc"===e?s.FIRST_AFTER_SECOND:s.FIRST_BEFORE_SECOND:s.DO_NOT_SWAP)}};var i=o(7886),s=o(70705);t.COLUMN_DATA_TYPE="default"},3797:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490),o(34478),o(31143);var i=o(26808),s=o(13421);function n(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 a(e,t,o){return e.set(h(e,t),o),o}function l(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 i.BasePlugin{constructor(){var e,t;super(...arguments),r(e=this,t=p),t.add(e),n(this,d,new s.StretchCalculator(this.hot)),n(this,g,null),n(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!==l(g,this)&&l(g,this)!==t.width&&(this.hot.view.adjustElementsSize(),this.hot.refreshDimensions()),a(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||(l(d,this).useStrategy(this.hot.getSettings().stretchH),l(f,this).observe(this.hot.rootElement),this.addHook("beforeRender",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return h(p,e,C).call(e,...o)}),this.addHook("modifyColWidth",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return h(p,e,w).call(e,...o)},10),super.enablePlugin())}updatePlugin(){l(d,this).useStrategy(this.hot.getSettings().stretchH),super.updatePlugin()}disablePlugin(){super.disablePlugin(),l(f,this).unobserve(this.hot.rootElement)}getColumnWidth(e){return l(d,this).getStretchedWidth(e)}destroy(){l(f,this).disconnect(),a(f,this,null),a(d,this,null),super.destroy()}}function w(e,t,o){if(o===this.pluginName)return;const i=this.getColumnWidth(t);return"number"==typeof i?i:e}function C(e){e&&l(d,this).refreshStretching()}t.StretchColumns=m},3993:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(4138);const s={getFirstRenderedRow(){const e=this.dataAccessObject.startRowRendered;return null===e?-1:e},getFirstVisibleRow(){const e=this.dataAccessObject.startRowVisible;return null===e?-1:e},getFirstPartiallyVisibleRow(){const e=this.dataAccessObject.startRowPartiallyVisible;return null===e?-1:e},getLastRenderedRow(){const e=this.dataAccessObject.endRowRendered;return null===e?-1:e},getLastVisibleRow(){const e=this.dataAccessObject.endRowVisible;return null===e?-1:e},getLastPartiallyVisibleRow(){const e=this.dataAccessObject.endRowPartiallyVisible;return null===e?-1:e},getRenderedRowsCount(){return this.dataAccessObject.countRowsRendered},getVisibleRowsCount(){return this.dataAccessObject.countRowsVisible},getColumnHeadersCount(){return this.dataAccessObject.columnHeaders.length}};(0,i.defineGetter)(s,"MIXIN_NAME","calculatedRows",{writable:!1,enumerable:!1});t.default=s},4138:(e,t,o)=>{"use strict";t.__esModule=!0,t.assignObjectDefaults=function e(t,o){if("object"!=typeof t||null===t)return o;if("object"!=typeof o||null===o)return t;const i={};return Object.keys(o).forEach(s=>{"object"!=typeof o[s]||null===o[s]||Array.isArray(o[s])?i[s]=a(t,s)&&void 0!==t[s]?t[s]:o[s]:i[s]=e(t[s],o[s])}),Object.keys(t).forEach(e=>{a(i,e)||(i[e]=t[e])}),i},t.clone=function(e){const t={};return r(e,(e,o)=>{t[o]=e}),t},t.createObjectPropListener=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";const o=`_${t}`,i={_touched:!1,[o]:e,isTouched(){return this._touched}};return Object.defineProperty(i,t,{get(){return this[o]},set(e){this._touched=!0,this[o]=e},enumerable:!0,configurable:!0}),i},t.deepClone=s,t.deepExtend=function e(t,o){r(o,(i,s)=>{o[s]&&"object"==typeof o[s]?(t[s]||(Array.isArray(o[s])?t[s]=[]:"[object Date]"===Object.prototype.toString.call(o[s])?t[s]=o[s]:t[s]={}),e(t[s],o[s])):t[s]=o[s]})},t.deepObjectSize=function(e){if(!n(e))return 0;const t=function(e){let o=0;return n(e)?r(e,(e,i)=>{"__children"!==i&&(o+=t(e))}):o+=1,o};return t(e)},t.defineGetter=function(e,t,o,i){i.value=o,i.writable=!1!==i.writable,i.enumerable=!1!==i.enumerable,i.configurable=!1!==i.configurable,Object.defineProperty(e,t,i)},t.duckSchema=function e(t){let o;Array.isArray(t)?o=t.length?new Array(t.length).fill(null):[]:(o={},r(t,(t,i)=>{"__children"!==i&&(t&&"object"==typeof t&&!Array.isArray(t)?o[i]=e(t):Array.isArray(t)?t.length&&"object"==typeof t[0]&&!Array.isArray(t[0])?o[i]=[e(t[0])]:o[i]=[]:o[i]=null)}));return o},t.extend=function(e,t,o){const i=Array.isArray(o);return r(t,(t,s)=>{(!1===i||o.includes(s))&&(e[s]=t)}),e},t.getProperty=function(e,t){const o=t.split(".");let i=e;return r(o,e=>{if(i=i[e],void 0===i)return i=void 0,!1}),i},t.hasOwnProperty=a,t.inherit=function(e,t){return t.prototype.constructor=t,e.prototype=new t,e.prototype.constructor=e,e},t.isObject=n,t.isObjectEqual=function(e,t){return JSON.stringify(e)===JSON.stringify(t)},t.mixin=function(e){e.MIXINS||(e.MIXINS=[]);for(var t=arguments.length,o=new Array(t>1?t-1:0),a=1;a<t;a++)o[a-1]=arguments[a];return(0,i.arrayEach)(o,t=>{e.MIXINS.push(t.MIXIN_NAME),r(t,(t,o)=>{if(void 0!==e.prototype[o])throw new Error(`Mixin conflict. Property '${o}' already exist and cannot be overwritten.`);if("function"==typeof t)e.prototype[o]=t;else{const i=function(e,t){const o=`_${e}`;return function(){return void 0===this[o]&&(this[o]=(e=>{let t=e;return(Array.isArray(t)||n(t))&&(t=s(t)),t})(t)),this[o]}},r=function(e){const t=`_${e}`;return function(e){this[t]=e}};Object.defineProperty(e.prototype,o,{get:i(o,t),set:r(o),configurable:!0})}})}),e},t.objectEach=r,t.setProperty=function(e,t,o){if("string"!=typeof t)return;const i=t.split(".");let s=e;i.forEach((e,t)=>{"__proto__"!==e&&"constructor"!==e&&"prototype"!==e&&(t!==i.length-1?(a(s,e)||(s[e]={}),s=s[e]):s[e]=o)})},o(52490),o(99356),o(58584),o(34478),o(31143);var i=o(94576);function s(e){return"object"==typeof e?JSON.parse(JSON.stringify(e)):e}function n(e){return"[object Object]"===Object.prototype.toString.call(e)}function r(e,t){for(const o in e)if((!e.hasOwnProperty||e.hasOwnProperty&&Object.prototype.hasOwnProperty.call(e,o))&&!1===t(e[o],o,e))break;return e}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},4462:(e,t,o)=>{"use strict";var i=o(72820),s=o(94266),n=o(96127).clear;i({global:!0,bind:!0,enumerable:!0,forced:s.clearImmediate!==n},{clearImmediate:n})},4655:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=r;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(23895);const n=t.CONDITION_NAME="lte";function r(e,t){let[o]=t,i=o;return"numeric"===e.meta.type&&(i=parseFloat(i,10)),e.value<=i}(0,s.registerCondition)(n,r,{name:i.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL,inputsCount:1,showOperators:!0})},5008:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"emptySelectedCells",callback(e){e.emptySelectedCells(),e._getEditorManager().prepareEditor()}}},5085:(e,t,o)=>{"use strict";o.r(t)},5247:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(48969);t.RENDERER_TYPE=i.RENDERER_TYPE,t.passwordRenderer=i.passwordRenderer},5300:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(82328),o(34478),o(29810),o(31143),o(940);var s=i(o(24300)),n=o(26808),r=o(94576),a=o(30738),l=o(7120),h=o(58604),c=o(78966),u=o(38830),d=o(58226),g=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),f=o(47845),p=o(19209),m=o(9609),w=o(65835),C=i(o(34645)),v=i(o(32120)),y=i(o(73734)),S=o(56013),E=o(68970),R=o(65865),b=o(55656);function _(e,t,o){T(e,t),t.set(e,o)}function T(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(O(e,t),o),o}function I(e,t){return e.get(O(e,t))}function O(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 A=t.PLUGIN_KEY="filters",N=t.PLUGIN_PRIORITY=250,P=A;var H=new WeakMap,x=new WeakMap,k=new WeakMap,D=new WeakSet;class L extends n.BasePlugin{static get PLUGIN_KEY(){return A}static get PLUGIN_PRIORITY(){return N}static get PLUGIN_DEPS(){return["plugin:DropdownMenu","plugin:HiddenRows","cell-type:checkbox"]}constructor(e){var t,o,i;super(e),t=this,T(o=this,i=D),i.add(o),(0,s.default)(this,"dropdownMenuPlugin",null),(0,s.default)(this,"conditionCollection",null),(0,s.default)(this,"conditionUpdateObserver",null),(0,s.default)(this,"components",new Map([["filter_by_condition",null],["filter_operators",null],["filter_by_condition2",null],["filter_by_value",null],["filter_action_bar",null]])),(0,s.default)(this,"filtersRowsMap",null),_(this,H,void 0),_(this,x,new WeakSet),_(this,k,[]),this.hot.addHook("afterGetColHeader",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return O(D,t,G).call(t,...o)})}isEnabled(){return!!this.hot.getSettings()[A]}enablePlugin(){var e=this;if(this.enabled)return;this.filtersRowsMap=this.hot.rowIndexMapper.registerMap(this.pluginName,new b.TrimmingMap),this.dropdownMenuPlugin=this.hot.getPlugin("dropdownMenu");const t=this.hot.getSettings().dropdownMenu,o=t&&t.uiContainer||this.hot.rootPortalElement,i=e=>(e.addLocalHook("accept",()=>O(D,this,Y).call(this,"accept")),e.addLocalHook("cancel",()=>O(D,this,Y).call(this,"cancel")),e.addLocalHook("change",t=>O(D,this,j).call(this,e,t)),e),s=()=>`${this.hot.getTranslatedPhrase(g.FILTERS_DIVS_FILTER_BY_CONDITION)}:`,n=()=>`${this.hot.getTranslatedPhrase(g.FILTERS_DIVS_FILTER_BY_VALUE)}:`;if(!this.components.get("filter_by_condition")){const e=new f.ConditionComponent(this.hot,{id:"filter_by_condition",name:s,addSeparator:!1,menuContainer:o});e.addLocalHook("afterClose",()=>O(D,this,z).call(this)),this.components.set("filter_by_condition",i(e))}if(this.components.get("filter_operators")||this.components.set("filter_operators",new p.OperatorsComponent(this.hot,{id:"filter_operators",name:"Operators"})),!this.components.get("filter_by_condition2")){const e=new f.ConditionComponent(this.hot,{id:"filter_by_condition2",name:"",addSeparator:!0,menuContainer:o});e.addLocalHook("afterClose",()=>O(D,this,z).call(this)),this.components.set("filter_by_condition2",i(e))}if(this.components.get("filter_by_value")||this.components.set("filter_by_value",i(new m.ValueComponent(this.hot,{id:"filter_by_value",name:n}))),this.components.get("filter_action_bar")||this.components.set("filter_action_bar",i(new w.ActionBarComponent(this.hot,{id:"filter_action_bar",name:"Action bar"}))),this.conditionCollection||(this.conditionCollection=new C.default(this.hot)),this.conditionUpdateObserver||(this.conditionUpdateObserver=new y.default(this.hot,this.conditionCollection,e=>this.getDataMapAtColumn(e)),this.conditionUpdateObserver.addLocalHook("update",e=>O(D,this,$).call(this,e))),this.components.forEach(e=>e.show()),this.addHook("afterDropdownMenuDefaultOptions",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return O(D,e,U).call(e,...o)}),this.addHook("beforeDropdownMenuShow",()=>O(D,this,B).call(this)),this.addHook("afterDropdownMenuShow",()=>O(D,this,W).call(this)),this.addHook("afterDropdownMenuHide",()=>O(D,this,F).call(this)),this.addHook("afterChange",e=>O(D,this,V).call(this,e)),this.hot.getSettings().dropdownMenu&&this.dropdownMenuPlugin&&(this.dropdownMenuPlugin.disablePlugin(),this.dropdownMenuPlugin.enablePlugin()),!I(H,this)&&this.dropdownMenuPlugin.enabled){const e=[{focus:()=>{const e=I(H,this).getMenu(),t=e.getNavigator(),o=I(H,this).getLastMenuPage();e.focus(),o>0?t.setCurrentPage(o):t.toFirstItem()}},...Array.from(this.components).map(e=>{let[,t]=e;return t.getElements()}).flat()];M(H,this,(0,E.createMenuFocusController)(this.dropdownMenuPlugin.menu,e));const t=e=>{I(H,this).listen(),e.preventDefault(),(0,u.isKey)(e.keyCode,"TAB")&&(e.shiftKey?I(H,this).toPreviousItem():I(H,this).toNextItem())};this.components.get("filter_by_value").addLocalHook("listTabKeydown",t),this.components.get("filter_by_condition").addLocalHook("selectTabKeydown",t)}this.registerShortcuts(),super.enablePlugin()}disablePlugin(){var e;this.enabled&&(null!==(e=this.dropdownMenuPlugin)&&void 0!==e&&e.enabled&&this.dropdownMenuPlugin.menu.clearLocalHooks(),this.components.forEach((e,t)=>{e.destroy(),this.components.set(t,null)}),this.conditionCollection.destroy(),this.conditionCollection=null,this.hot.rowIndexMapper.unregisterMap(this.pluginName));this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Alt","A"]],stopPropagation:!0,callback:()=>{const e=this.hot.getSelected();this.clearConditions(),this.filter(),e&&this.hot.selectCells(e)},group:P})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(P)}addCondition(e,t,o){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:R.OPERATION_AND;const s=this.hot.toPhysicalColumn(e);this.conditionCollection.addCondition(s,{command:{key:t},args:o},i)}removeConditions(e){const t=this.hot.toPhysicalColumn(e);this.conditionCollection.removeConditions(t)}clearConditions(e){if(void 0===e)this.conditionCollection.clean();else{const t=this.hot.toPhysicalColumn(e);this.conditionCollection.removeConditions(t)}}importConditions(e){this.conditionCollection.importAllConditions(e)}exportConditions(){return this.conditionCollection.exportAllConditions()}filter(){const{navigableHeaders:e}=this.hot.getSettings(),t=this._createDataFilter(),o=!this.conditionCollection.isEmpty();let i=[];const s=this.exportConditions(),n=this.hot.runHooks("beforeFilter",s,I(k,this));if(!1!==n&&o){const o=[];this.hot.batchExecution(()=>{this.filtersRowsMap.clear(),i=(0,r.arrayMap)(t.filter(),e=>e.meta.visualRow);const e=(0,S.createArrayAssertion)(i);(0,h.rangeEach)(this.hot.countSourceRows()-1,t=>{e(t)||o.push(t)}),(0,r.arrayEach)(o,e=>{this.filtersRowsMap.setValueAtIndex(e,!0)})},!0),e||i.length||this.hot.deselectCell(),M(k,this,this.exportConditions())}else!1===n||o?this.importConditions(I(k,this)):(M(k,this,this.exportConditions()),this.filtersRowsMap.clear());this.hot.selection.isSelected()&&this.hot.selectCell(e?-1:0,this.hot.getSelectedRangeActive().highlight.col),!1!==n&&(this.hot.runHooks("afterFilter",s),this.hot.view.adjustElementsSize(),this.hot.render())}getSelectedColumn(){var e;const t=null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.highlight;return t?{visualIndex:t.col,physicalIndex:this.hot.toPhysicalColumn(t.col)}:null}getDataMapAtColumn(e){const t=this.hot.toVisualColumn(e),o=[];return(0,r.arrayEach)(this.hot.getSourceDataAtCol(t),(e,i)=>{var s;const{row:n,col:r,visualCol:a,visualRow:l,type:h,instance:c,dateFormat:u,locale:d}=this.hot.getCellMeta(i,t),g=null!==(s=this.hot.getDataAtCell(this.hot.toVisualRow(i),t))&&void 0!==s?s:e;o.push({meta:{row:n,col:r,visualCol:a,visualRow:l,type:h,instance:c,dateFormat:u,locale:d},value:(0,S.toEmptyString)(g)})}),o}updateValueComponentCondition(e){const t=this.hot.getDataAtCol(e),o=(0,S.unifyColumnValues)(t);this.conditionUpdateObserver.updateStatesAtColumn(e,o)}restoreComponents(e){var t;const o=null===(t=this.getSelectedColumn())||void 0===t?void 0:t.physicalIndex;e.forEach(e=>{e.isHidden()||e.restoreState(o)}),this.updateDependentComponentsVisibility()}getOperationBasedOnArguments(e,t,o,i){let s=e;return s===R.OPERATION_OR&&t.command.key!==R.CONDITION_NONE&&o.command.key!==R.CONDITION_NONE&&i.command.key!==R.CONDITION_NONE?s=R.OPERATION_OR_THEN_VARIABLE:i.command.key!==R.CONDITION_NONE&&(t.command.key!==R.CONDITION_NONE&&o.command.key!==R.CONDITION_NONE||(s=R.OPERATION_AND)),s}setListeningDropdownMenu(){this.dropdownMenuPlugin&&this.dropdownMenuPlugin.setListening()}updateDependentComponentsVisibility(){const e=this.components.get("filter_by_condition"),{command:t}=e.getState(),o=[this.components.get("filter_by_condition2"),this.components.get("filter_operators")];t.showOperators?this.showComponents(...o):this.hideComponents(...o)}_createDataFilter(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.conditionCollection;return new v.default(e,e=>this.getDataMapAtColumn(e))}getIndexesOfComponents(){const e=[];if(!this.dropdownMenuPlugin)return e;const t=this.dropdownMenuPlugin.menu;for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return(0,r.arrayEach)(i,o=>{(0,r.arrayEach)(t.menuItems,(t,i)=>{t.key===o.getMenuItemDescriptor().key&&e.push(i)})}),e}changeComponentsVisibility(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.dropdownMenuPlugin)return;const t=this.dropdownMenuPlugin.menu.hotMenu,o=t.getPlugin("hiddenRows");for(var i=arguments.length,s=new Array(i>1?i-1:0),n=1;n<i;n++)s[n-1]=arguments[n];const r=this.getIndexesOfComponents(...s);e?o.showRows(r):o.hideRows(r),t.render()}hideComponents(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];this.changeComponentsVisibility(!1,...t)}showComponents(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];this.changeComponentsVisibility(!0,...t)}destroy(){this.enabled&&(this.components.forEach((e,t)=>{null!==e&&(e.destroy(),this.components.set(t,null))}),this.conditionCollection.destroy(),this.conditionUpdateObserver.destroy(),this.hot.rowIndexMapper.unregisterMap(this.pluginName)),super.destroy()}}function V(e){e&&(0,r.arrayEach)(e,e=>{const[,t]=e,o=this.hot.propToCol(t);this.conditionCollection.hasConditions(o)&&this.updateValueComponentCondition(o)})}function W(){const e=this.dropdownMenuPlugin.menu;this.restoreComponents(Array.from(this.components.values())),e.updateMenuDimensions()}function F(){this.components.get("filter_by_condition").getSelectElement().closeOptions(),this.components.get("filter_by_condition2").getSelectElement().closeOptions()}function B(){const e=this.dropdownMenuPlugin.menu;I(x,this).has(e)||I(H,this).setMenu(e),I(x,this).add(e)}function U(e){e.items.push({name:d.SEPARATOR}),this.components.forEach(t=>{e.items.push(t.getMenuItemDescriptor())})}function Y(e){var t;if("accept"===e){const e=this.getSelectedColumn();var o;if(null===e)return void(null===(o=this.dropdownMenuPlugin)||void 0===o||o.close());const{physicalIndex:t}=e,i=this.components.get("filter_by_condition").getState(),s=this.components.get("filter_by_condition2").getState(),n=this.components.get("filter_by_value").getState(),r=this.getOperationBasedOnArguments(this.components.get("filter_operators").getActiveOperationId(),i,s,n);this.conditionUpdateObserver.groupChanges();let a=this.conditionCollection.getColumnStackPosition(t);-1===a&&(a=void 0),this.conditionCollection.removeConditions(t),i.command.key!==R.CONDITION_NONE&&(this.conditionCollection.addCondition(t,i,r,a),s.command.key!==R.CONDITION_NONE&&this.conditionCollection.addCondition(t,s,r,a)),n.command.key!==R.CONDITION_NONE&&this.conditionCollection.addCondition(t,n,r,a),this.conditionUpdateObserver.flush(),this.components.forEach(e=>e.saveState(t)),this.filter()}null===(t=this.dropdownMenuPlugin)||void 0===t||t.close()}function j(e,t){const o=this.dropdownMenuPlugin.menu;this.updateDependentComponentsVisibility(),e.constructor!==f.ConditionComponent||t.inputsCount||this.setListeningDropdownMenu(),o.updateMenuDimensions()}function z(){this.setListeningDropdownMenu()}function G(e,t,o){const i=this.hot.toPhysicalColumn(e);this.enabled&&this.conditionCollection.hasConditions(i)&&o===this.hot.view.getColumnHeadersCount()-1?(0,c.addClass)(t,"htFiltersActive"):(0,c.removeClass)(t,"htFiltersActive")}function $(e){var t;if(null===(t=this.dropdownMenuPlugin)||void 0===t||!t.enabled)return;const{editedConditionStack:{conditions:o,column:i},conditionArgsChange:s}=e;Array.isArray(s)&&M(k,this,I(k,this).map(e=>(e.column===i&&o.length>0&&e.conditions.forEach(e=>{"by_value"===e.name&&(e.args=[[...s]])}),e)));const n=o.filter(e=>e.name===R.CONDITION_BY_VALUE),r=o.filter(e=>e.name!==R.CONDITION_BY_VALUE);if(n.length>=2||r.length>=3)(0,l.warn)(a.toSingleLine`The filter conditions have been applied properly, but couldn’t be displayed visually.\x20
32
32
  The overall amount of conditions exceed the capability of the dropdown menu.\x20
33
- For more details see the documentation.`);else{const t=this.conditionCollection.getOperation(i);this.components.get("filter_by_condition").updateState(r[0],i),this.components.get("filter_by_condition2").updateState(r[1],i),this.components.get("filter_operators").updateState(t,i),this.components.get("filter_by_value").updateState(e)}}t.Filters=L},5448:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostLeft",callback(e){const{selection:t,columnIndexMapper:o}=e,{highlight:i,from:s,to:n}=e.getSelectedRangeActive(),r=i.isHeader()&&t.isSelectedByColumnHeader();if(i.isCell()||r){const a=o.getNearestNotHiddenIndex(...e.isRtl()?[e.countCols()-1,-1]:[0,1]),l=s.clone();l.col=i.col,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,i.clone()),r&&t.selectedByColumnHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(n.row,a)),t.markEndSource()}}}},5665:(e,t,o)=>{"use strict";t.__esModule=!0,t.operationResult=a,o(52490),o(34478),o(81056);var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(13280);const n=t.OPERATION_ID="disjunctionWithExtraCondition",r=t.SHORT_NAME_FOR_COMPONENT=i.FILTERS_LABELS_DISJUNCTION;function a(e,t){if(e.length<3)throw Error("Operation doesn't work on less then three conditions.");return e.slice(0,e.length-1).some(e=>e.func(t))&&e[e.length-1].func(t)}(0,s.registerOperation)(n,r,a)},5676:(e,t,o)=>{"use strict";t.__esModule=!0,t.numericValidator=n;var i=o(58604);const s=t.VALIDATOR_TYPE="numeric";function n(e,t){let o=e;null==o&&(o=""),this.allowEmpty&&""===o?t(!0):t(""!==o&&(0,i.isNumeric)(e))}n.VALIDATOR_TYPE=s},5705:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(){return{name:o}};const o=t.KEY="---------"},5714:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(91376));t.DataMap=s.default;var n=i(o(81053));t.MetaManager=n.default;var r=i(o(86491));t.metaSchemaFactory=r.default;var a=o(56782);t.replaceData=a.replaceData;var l=o(9383);t.DynamicCellMetaMod=l.DynamicCellMetaMod;var h=o(5919);t.ExtendMetaPropertiesMod=h.ExtendMetaPropertiesMod},5869:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(99356);var s=i(o(24300)),n=o(18514),r=o(22746);t.ViewDiffer=class{constructor(e){(0,s.default)(this,"sizeSet",void 0),this.sizeSet=e}diff(){const{sizeSet:e}=this,{currentSize:t,nextSize:o}=e.getViewSize();let i=Math.max(o,t);if(0===i)return[];const{currentOffset:s,nextOffset:a}=e.getViewSize(),l=new r.ViewOrder(s,t),h=new r.ViewOrder(a,o),c=[];for(let t=0;t<i;t++){const s=l.get(t),r=h.get(t);if(-1===r)c.push(["remove",s]);else if(-1===s)!e.isShared()||e.isShared()&&e.isPlaceOn(n.WORKING_SPACE_BOTTOM)?c.push(["append",r]):c.push(["prepend",r]);else if(r>s)l.has(r)&&(l.remove(r),o<=l.length&&(i-=1)),c.push(["replace",r,s]);else if(r<s){const e=l.prepend(r);c.push(["insert_before",r,s,e])}else c.push(["none",r])}return c}}},5879:(e,t,o)=>{"use strict";t.__esModule=!0,t.dateRenderer=n;var i=o(78790);const s=t.RENDERER_TYPE="date";function n(e,t,o,s,n,r,a){i.autocompleteRenderer.apply(this,[e,t,o,s,n,r,a])}n.RENDERER_TYPE=s},5895:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(23895),n=o(8562);const r=t.CONDITION_NAME="not_between";function a(e,t){return!(0,s.getCondition)(n.CONDITION_NAME,t)(e)}(0,s.registerCondition)(r,a,{name:i.FILTERS_CONDITIONS_NOT_BETWEEN,inputsCount:2,showOperators:!0})},5908:(e,t,o)=>{"use strict";t.__esModule=!0,t.dropdownValidator=n;var i=o(40492);const s=t.VALIDATOR_TYPE="dropdown";function n(e,t){i.autocompleteValidator.apply(this,[e,t])}n.VALIDATOR_TYPE=s},5919:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(31143);var s=i(o(24300));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 r(e,t){return e.get(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")}(e,t))}var a=new WeakMap;t.ExtendMetaPropertiesMod=class{constructor(e){(0,s.default)(this,"metaManager",void 0),(0,s.default)(this,"usageTracker",new Set),(0,s.default)(this,"propDescriptors",new Map([["ariaTags",{initOnly:!0}],["fixedColumnsLeft",{target:"fixedColumnsStart",onChange(e){if(this.metaManager.hot.isRtl()&&"fixedColumnsLeft"===e)throw new Error("The `fixedColumnsLeft` is not supported for RTL. Please use option `fixedColumnsStart`.");if(this.usageTracker.has("fixedColumnsLeft")&&this.usageTracker.has("fixedColumnsStart"))throw new Error("The `fixedColumnsLeft` and `fixedColumnsStart` should not be used together. Please use only the option `fixedColumnsStart`.")}}],["layoutDirection",{initOnly:!0}],["renderAllColumns",{initOnly:!0}],["renderAllRows",{initOnly:!0}]])),n(this,a,(e,t,o)=>{if(!o)throw new Error(`The \`${e}\` option can not be updated after the Handsontable is initialized.`)}),this.metaManager=e,this.extendMetaProps()}extendMetaProps(){this.propDescriptors.forEach((e,t)=>{const{initOnly:o,target:i,onChange:s}=e,n="string"==typeof i,l=n?i:t,h=`_${l}`;this.metaManager.globalMeta.meta[h]=this.metaManager.globalMeta.meta[l],s?(this.installPropWatcher(t,h,s),n&&this.installPropWatcher(i,h,s)):o&&(this.installPropWatcher(t,h,r(a,this)),this.metaManager.globalMeta.meta._initOnlySettings||(this.metaManager.globalMeta.meta._initOnlySettings=[]),this.metaManager.globalMeta.meta._initOnlySettings.push(t))})}installPropWatcher(e,t,o){const i=this;Object.defineProperty(this.metaManager.globalMeta.meta,e,{get(){return this[t]},set(s){const n=!i.usageTracker.has(e);i.usageTracker.add(e),o.call(i,e,s,n),this[t]=s},enumerable:!0,configurable:!0})}}},5994:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:r,checkable:!0,ariaChecked(){return(0,i.checkSelectionConsistency)(this.getSelectedRange(),(e,t)=>this.getCellMeta(e,t).readOnly)},ariaLabel(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_READ_ONLY)},name(){let e=this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_READ_ONLY);return(0,i.checkSelectionConsistency)(this.getSelectedRange(),(e,t)=>this.getCellMeta(e,t).readOnly)&&(e=(0,i.markLabelAsSelected)(e)),e},callback(){const e=this.getSelectedRange(),t=(0,i.checkSelectionConsistency)(e,(e,t)=>this.getCellMeta(e,t).readOnly);(0,s.arrayEach)(e,e=>{e.forAll((e,o)=>{e>=0&&o>=0&&this.setCellMeta(e,o,"readOnly",!t)})}),this.render()},disabled(){const e=this.getSelectedRangeActive();return!e||(!!e.isSingleHeader()||(!!this.selection.isSelectedByCorner()||(0===this.countRows()||0===this.countCols()||(!this.getSelectedRange()||0===this.getSelectedRange().length))))}}};var i=o(83914),s=o(94576),n=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481));const r=t.KEY="make_read_only"},5997:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(15686);t.CELL_TYPE=i.CELL_TYPE,t.TextCellType=i.TextCellType},6098:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(631),r=o(83914),a=o(94576);class l extends n.BaseAction{constructor(e){let{stateBefore:t,range:o,type:i,alignment:n}=e;super("cell_alignment"),(0,s.default)(this,"stateBefore",void 0),(0,s.default)(this,"range",void 0),(0,s.default)(this,"type",void 0),(0,s.default)(this,"alignment",void 0),this.stateBefore=t,this.range=o,this.type=i,this.alignment=n}static startRegisteringEvents(e,t){e.addHook("beforeCellAlignment",(e,o,i,s)=>{t.done(()=>new l({stateBefore:e,range:o,type:i,alignment:s}))})}undo(e,t){(0,a.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,r.align)(this.range,this.type,this.alignment,(t,o)=>e.getCellMeta(t,o),(t,o,i,s)=>e.setCellMeta(t,o,i,s)),e.addHookOnce("afterViewRender",t),e.render()}}t.CellAlignmentAction=l},6239:(e,t)=>{"use strict";t.__esModule=!0;t.GRID_GROUP="gridDefault",t.EDITOR_EDIT_GROUP="editorManager.handlingEditor"},6310:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(7886),n=o(23895);const r=t.CONDITION_NAME="begins_with";function a(e,t){let[o]=t;return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale).startsWith((0,s.stringify)(o))}(0,n.registerCondition)(r,a,{name:i.FILTERS_CONDITIONS_BEGINS_WITH,inputsCount:1,showOperators:!0})},6711:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(13743);class r extends n.Selection{constructor(e,t){super(e,null),(0,s.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,i=this.getNearestNotHiddenCoords(t,1),s=this.getNearestNotHiddenCoords(o,-1);return null===i||null===s?null:((i.row>s.row||i.col>s.col)&&(i=t,s=o),this.settings.createCellRange(i,i,s))}getNearestNotHiddenCoords(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;const i=this.getNearestNotHiddenIndex(this.settings.rowIndexMapper,e.row,t);if(null===i)return null;const s=this.getNearestNotHiddenIndex(this.settings.columnIndexMapper,e.col,o);return null===s?null:this.settings.createCellCoords(i,s)}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,i="W-E"===e.getHorizontalDirection()?1:-1,s=this.settings.visualToRenderableCoords(this.visualCellRange.highlight);let n=null;if(null!==s&&null!==s.col&&null!==s.row||(n=this.getNearestNotHiddenCoords(t,o,i)),null!==n&&e.overlaps(n)){const t=e.highlight.clone();if(t.row>=0&&(t.row=n.row),t.col>=0&&(t.col=n.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!==s&&null===n&&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),i=this.settings.visualToRenderableCoords(t);return null===o.row||null===o.col||null===i.row||null===i.col?null:this.settings.createCellRange(o,o,i)}}t.default=r},6745:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=o(4138),n=i(o(18805));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 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 l=new WeakMap;class h{constructor(){r(this,l,[])}subscribe(e){var t,o;return this.addLocalHook("change",e),this._write((o=this,(t=l).get(a(t,o)))),this}unsubscribe(){return this.runLocalHooks("unsubscribe"),this.clearLocalHooks(),this}_write(e){return e.length>0&&this.runLocalHooks("change",e),this}_writeInitialChanges(e){var t,o,i;o=this,i=e,(t=l).set(a(t,o),i)}}t.ChangesObserver=h,(0,s.mixin)(h,n.default)},6941:(e,t,o)=>{"use strict";t.__esModule=!0,t.createKeyboardShortcutCommandsPool=function(e){const t={};return u.forEach(o=>{let{name:i,callback:s}=o;t[i]=function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return s(e,...o)}}),t};var i=o(38491),s=o(70787),n=o(7255),r=o(5008),a=o(23552),l=o(8517),h=o(36416),c=o(11453);const u=[...(0,i.getAllCommands)(),...(0,s.getAllCommands)(),...(0,n.getAllCommands)(),r.command,a.command,l.command,h.command,c.command]},6942:(e,t,o)=>{"use strict";t.__esModule=!0,t.valueGetter=function(e){return i.valueGetter.call(this,e)};var i=o(20737)},7120:(e,t,o)=>{"use strict";t.__esModule=!0,t.deprecatedWarn=function(e){(0,i.isDefined)(console)&&console.warn(`Deprecated: ${e}`)},t.error=function(){(0,i.isDefined)(console)&&console.error(...arguments)},t.info=function(){(0,i.isDefined)(console)&&console.info(...arguments)},t.log=function(){(0,i.isDefined)(console)&&console.log(...arguments)},t.warn=function(){(0,i.isDefined)(console)&&console.warn(...arguments)};var i=o(7886)},7255:(e,t,o)=>{"use strict";t.__esModule=!0,t.getAllCommands=function(){return[i.command,s.command,n.command,r.command,a.command,l.command,h.command,c.command,u.command,d.command,g.command,f.command,p.command,m.command,w.command,C.command]};var i=o(22823),s=o(31235),n=o(80393),r=o(93112),a=o(99710),l=o(329),h=o(28730),c=o(44806),u=o(37547),d=o(30390),g=o(56020),f=o(33999),p=o(68294),m=o(31743),w=o(30498),C=o(46802)},7569:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.createHighlight=function(e){let{columnClassName:t,...o}=e;return new n.default({className:t,...o,selectionType:s.HIGHLIGHT_COLUMN_TYPE})};var s=o(13743),n=i(o(6711))},7743:(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"},7857:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(631);class r extends n.BaseAction{constructor(e){let{cellRange:t}=e;super("unmerge_cells"),(0,s.default)(this,"cellRange",void 0),this.cellRange=t}static startRegisteringEvents(e,t){e.addHook("afterUnmergeCells",(e,o)=>{o||t.done(()=>new r({cellRange:e}))})}undo(e,t){const o=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),o.mergeRange(this.cellRange,!0)}redo(e,t){const o=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),o.unmergeRange(this.cellRange,!0),e.render()}}t.UnmergeCellsAction=r},7869:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(53341);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.ExportFile=i.ExportFile},7886:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t._injectProductInfo=function(e,t){const o=!a(e),i="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),n="16.1.0-next-91b8a0f-20250905";let r,v="invalid",y="invalid";const S=function(e){let t=[][l],o=t;if(e[l]!==d("Z"))return!1;for(let t="",i="B<H4P+".split(""),s=d(i.shift());s;s=d(i.shift()||"A"))--s<""[l]?o|=(c(`${c(h(t)+(h(u(e,Math.abs(s),2))+[]).padStart(2,"0"))}`)%97||2)>>1:t=u(e,s,s?1===i[l]?9:8:6);return o===t}(e=g(e||""));if(o||i||S)if(S){const t=(0,s.default)("11/09/2025","DD/MM/YYYY"),o=Math.floor(t.toDate().getTime()/864e5),i=f(e);r=(0,s.default)(864e5*(i+1),"x").format("MMMM DD, YYYY"),o>i?(v="expired",y="expired"):(v="valid",y="valid")}else i?(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:r,hotVersion:n})&&console["non_commercial"===v?"info":"warn"](w[v]({keyValidityDate:r,hotVersion:n})),m=!0}if("valid"!==y&&t){if(C[y]({keyValidityDate:r,hotVersion:n})){const e=document.createElement("div");e.className="handsontable hot-display-license-info",e.innerHTML=C[y]({keyValidityDate:r,hotVersion:n}),t.appendChild(e)}}},t.getMostBottomEndPosition=function(e){var t,o;const{rowIndexMapper:i,columnIndexMapper:s}=e,{navigableHeaders:n}=e.getSettings();let r=i.getRenderableIndexesLength()-1,a=s.getRenderableIndexesLength()-1;if(r<0){if(!n||0===e.countColHeaders())return null;r=-1}if(a<0){if(!n||0===e.countColHeaders())return null;a=-1}return e._createCellCoords(null!==(t=i.getVisualFromRenderableIndex(r))&&void 0!==t?t:r,null!==(o=s.getVisualFromRenderableIndex(a))&&void 0!==o?o:a)},t.getMostTopStartPosition=function(e){const{rowIndexMapper:t,columnIndexMapper:o}=e,{navigableHeaders:i}=e.getSettings();let s=i&&e.countColHeaders()>0?-e.countColHeaders():0,n=i&&e.countRowHeaders()>0?-e.countRowHeaders():0;0===s&&(s=t.getVisualFromRenderableIndex(s));0===n&&(n=o.getVisualFromRenderableIndex(n));if(null===s||null===n)return null;return e._createCellCoords(s,n)},t.isDefined=function(e){return void 0!==e},t.isEmpty=a,t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.isUndefined=r,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 s=i(o(86798)),n=o(30738);function r(e){return void 0===e}function a(e){return null===e||""===e||r(e)}const l="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"),~~![][l]))||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:()=>n.toSingleLine`
33
+ For more details see the documentation.`);else{const t=this.conditionCollection.getOperation(i);this.components.get("filter_by_condition").updateState(r[0],i),this.components.get("filter_by_condition2").updateState(r[1],i),this.components.get("filter_operators").updateState(t,i),this.components.get("filter_by_value").updateState(e)}}t.Filters=L},5448:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostLeft",callback(e){const{selection:t,columnIndexMapper:o}=e,{highlight:i,from:s,to:n}=e.getSelectedRangeActive(),r=i.isHeader()&&t.isSelectedByColumnHeader();if(i.isCell()||r){const a=o.getNearestNotHiddenIndex(...e.isRtl()?[e.countCols()-1,-1]:[0,1]),l=s.clone();l.col=i.col,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,i.clone()),r&&t.selectedByColumnHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(n.row,a)),t.markEndSource()}}}},5665:(e,t,o)=>{"use strict";t.__esModule=!0,t.operationResult=a,o(52490),o(34478),o(81056);var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(13280);const n=t.OPERATION_ID="disjunctionWithExtraCondition",r=t.SHORT_NAME_FOR_COMPONENT=i.FILTERS_LABELS_DISJUNCTION;function a(e,t){if(e.length<3)throw Error("Operation doesn't work on less then three conditions.");return e.slice(0,e.length-1).some(e=>e.func(t))&&e[e.length-1].func(t)}(0,s.registerOperation)(n,r,a)},5676:(e,t,o)=>{"use strict";t.__esModule=!0,t.numericValidator=n;var i=o(58604);const s=t.VALIDATOR_TYPE="numeric";function n(e,t){let o=e;null==o&&(o=""),this.allowEmpty&&""===o?t(!0):t(""!==o&&(0,i.isNumeric)(e))}n.VALIDATOR_TYPE=s},5705:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(){return{name:o}};const o=t.KEY="---------"},5714:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(91376));t.DataMap=s.default;var n=i(o(81053));t.MetaManager=n.default;var r=i(o(86491));t.metaSchemaFactory=r.default;var a=o(56782);t.replaceData=a.replaceData;var l=o(9383);t.DynamicCellMetaMod=l.DynamicCellMetaMod;var h=o(5919);t.ExtendMetaPropertiesMod=h.ExtendMetaPropertiesMod},5869:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(99356);var s=i(o(24300)),n=o(18514),r=o(22746);t.ViewDiffer=class{constructor(e){(0,s.default)(this,"sizeSet",void 0),this.sizeSet=e}diff(){const{sizeSet:e}=this,{currentSize:t,nextSize:o}=e.getViewSize();let i=Math.max(o,t);if(0===i)return[];const{currentOffset:s,nextOffset:a}=e.getViewSize(),l=new r.ViewOrder(s,t),h=new r.ViewOrder(a,o),c=[];for(let t=0;t<i;t++){const s=l.get(t),r=h.get(t);if(-1===r)c.push(["remove",s]);else if(-1===s)!e.isShared()||e.isShared()&&e.isPlaceOn(n.WORKING_SPACE_BOTTOM)?c.push(["append",r]):c.push(["prepend",r]);else if(r>s)l.has(r)&&(l.remove(r),o<=l.length&&(i-=1)),c.push(["replace",r,s]);else if(r<s){const e=l.prepend(r);c.push(["insert_before",r,s,e])}else c.push(["none",r])}return c}}},5879:(e,t,o)=>{"use strict";t.__esModule=!0,t.dateRenderer=n;var i=o(78790);const s=t.RENDERER_TYPE="date";function n(e,t,o,s,n,r,a){i.autocompleteRenderer.apply(this,[e,t,o,s,n,r,a])}n.RENDERER_TYPE=s},5895:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(23895),n=o(8562);const r=t.CONDITION_NAME="not_between";function a(e,t){return!(0,s.getCondition)(n.CONDITION_NAME,t)(e)}(0,s.registerCondition)(r,a,{name:i.FILTERS_CONDITIONS_NOT_BETWEEN,inputsCount:2,showOperators:!0})},5908:(e,t,o)=>{"use strict";t.__esModule=!0,t.dropdownValidator=n;var i=o(40492);const s=t.VALIDATOR_TYPE="dropdown";function n(e,t){i.autocompleteValidator.apply(this,[e,t])}n.VALIDATOR_TYPE=s},5919:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(31143);var s=i(o(24300));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 r(e,t){return e.get(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")}(e,t))}var a=new WeakMap;t.ExtendMetaPropertiesMod=class{constructor(e){(0,s.default)(this,"metaManager",void 0),(0,s.default)(this,"usageTracker",new Set),(0,s.default)(this,"propDescriptors",new Map([["ariaTags",{initOnly:!0}],["fixedColumnsLeft",{target:"fixedColumnsStart",onChange(e){if(this.metaManager.hot.isRtl()&&"fixedColumnsLeft"===e)throw new Error("The `fixedColumnsLeft` is not supported for RTL. Please use option `fixedColumnsStart`.");if(this.usageTracker.has("fixedColumnsLeft")&&this.usageTracker.has("fixedColumnsStart"))throw new Error("The `fixedColumnsLeft` and `fixedColumnsStart` should not be used together. Please use only the option `fixedColumnsStart`.")}}],["layoutDirection",{initOnly:!0}],["renderAllColumns",{initOnly:!0}],["renderAllRows",{initOnly:!0}]])),n(this,a,(e,t,o)=>{if(!o)throw new Error(`The \`${e}\` option can not be updated after the Handsontable is initialized.`)}),this.metaManager=e,this.extendMetaProps()}extendMetaProps(){this.propDescriptors.forEach((e,t)=>{const{initOnly:o,target:i,onChange:s}=e,n="string"==typeof i,l=n?i:t,h=`_${l}`;this.metaManager.globalMeta.meta[h]=this.metaManager.globalMeta.meta[l],s?(this.installPropWatcher(t,h,s),n&&this.installPropWatcher(i,h,s)):o&&(this.installPropWatcher(t,h,r(a,this)),this.metaManager.globalMeta.meta._initOnlySettings||(this.metaManager.globalMeta.meta._initOnlySettings=[]),this.metaManager.globalMeta.meta._initOnlySettings.push(t))})}installPropWatcher(e,t,o){const i=this;Object.defineProperty(this.metaManager.globalMeta.meta,e,{get(){return this[t]},set(s){const n=!i.usageTracker.has(e);i.usageTracker.add(e),o.call(i,e,s,n),this[t]=s},enumerable:!0,configurable:!0})}}},5994:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:r,checkable:!0,ariaChecked(){return(0,i.checkSelectionConsistency)(this.getSelectedRange(),(e,t)=>this.getCellMeta(e,t).readOnly)},ariaLabel(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_READ_ONLY)},name(){let e=this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_READ_ONLY);return(0,i.checkSelectionConsistency)(this.getSelectedRange(),(e,t)=>this.getCellMeta(e,t).readOnly)&&(e=(0,i.markLabelAsSelected)(e)),e},callback(){const e=this.getSelectedRange(),t=(0,i.checkSelectionConsistency)(e,(e,t)=>this.getCellMeta(e,t).readOnly);(0,s.arrayEach)(e,e=>{e.forAll((e,o)=>{e>=0&&o>=0&&this.setCellMeta(e,o,"readOnly",!t)})}),this.render()},disabled(){const e=this.getSelectedRangeActive();return!e||(!!e.isSingleHeader()||(!!this.selection.isSelectedByCorner()||(0===this.countRows()||0===this.countCols()||(!this.getSelectedRange()||0===this.getSelectedRange().length))))}}};var i=o(83914),s=o(94576),n=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481));const r=t.KEY="make_read_only"},5997:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(15686);t.CELL_TYPE=i.CELL_TYPE,t.TextCellType=i.TextCellType},6098:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(631),r=o(83914),a=o(94576);class l extends n.BaseAction{constructor(e){let{stateBefore:t,range:o,type:i,alignment:n}=e;super("cell_alignment"),(0,s.default)(this,"stateBefore",void 0),(0,s.default)(this,"range",void 0),(0,s.default)(this,"type",void 0),(0,s.default)(this,"alignment",void 0),this.stateBefore=t,this.range=o,this.type=i,this.alignment=n}static startRegisteringEvents(e,t){e.addHook("beforeCellAlignment",(e,o,i,s)=>{t.done(()=>new l({stateBefore:e,range:o,type:i,alignment:s}))})}undo(e,t){(0,a.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,r.align)(this.range,this.type,this.alignment,(t,o)=>e.getCellMeta(t,o),(t,o,i,s)=>e.setCellMeta(t,o,i,s)),e.addHookOnce("afterViewRender",t),e.render()}}t.CellAlignmentAction=l},6239:(e,t)=>{"use strict";t.__esModule=!0;t.GRID_GROUP="gridDefault",t.EDITOR_EDIT_GROUP="editorManager.handlingEditor"},6310:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(7886),n=o(23895);const r=t.CONDITION_NAME="begins_with";function a(e,t){let[o]=t;return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale).startsWith((0,s.stringify)(o))}(0,n.registerCondition)(r,a,{name:i.FILTERS_CONDITIONS_BEGINS_WITH,inputsCount:1,showOperators:!0})},6711:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(13743);class r extends n.Selection{constructor(e,t){super(e,null),(0,s.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,i=this.getNearestNotHiddenCoords(t,1),s=this.getNearestNotHiddenCoords(o,-1);return null===i||null===s?null:((i.row>s.row||i.col>s.col)&&(i=t,s=o),this.settings.createCellRange(i,i,s))}getNearestNotHiddenCoords(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;const i=this.getNearestNotHiddenIndex(this.settings.rowIndexMapper,e.row,t);if(null===i)return null;const s=this.getNearestNotHiddenIndex(this.settings.columnIndexMapper,e.col,o);return null===s?null:this.settings.createCellCoords(i,s)}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,i="W-E"===e.getHorizontalDirection()?1:-1,s=this.settings.visualToRenderableCoords(this.visualCellRange.highlight);let n=null;if(null!==s&&null!==s.col&&null!==s.row||(n=this.getNearestNotHiddenCoords(t,o,i)),null!==n&&e.overlaps(n)){const t=e.highlight.clone();if(t.row>=0&&(t.row=n.row),t.col>=0&&(t.col=n.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!==s&&null===n&&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),i=this.settings.visualToRenderableCoords(t);return null===o.row||null===o.col||null===i.row||null===i.col?null:this.settings.createCellRange(o,o,i)}}t.default=r},6745:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=o(4138),n=i(o(18805));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 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 l=new WeakMap;class h{constructor(){r(this,l,[])}subscribe(e){var t,o;return this.addLocalHook("change",e),this._write((o=this,(t=l).get(a(t,o)))),this}unsubscribe(){return this.runLocalHooks("unsubscribe"),this.clearLocalHooks(),this}_write(e){return e.length>0&&this.runLocalHooks("change",e),this}_writeInitialChanges(e){var t,o,i;o=this,i=e,(t=l).set(a(t,o),i)}}t.ChangesObserver=h,(0,s.mixin)(h,n.default)},6941:(e,t,o)=>{"use strict";t.__esModule=!0,t.createKeyboardShortcutCommandsPool=function(e){const t={};return u.forEach(o=>{let{name:i,callback:s}=o;t[i]=function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return s(e,...o)}}),t};var i=o(38491),s=o(70787),n=o(7255),r=o(5008),a=o(23552),l=o(8517),h=o(36416),c=o(11453);const u=[...(0,i.getAllCommands)(),...(0,s.getAllCommands)(),...(0,n.getAllCommands)(),r.command,a.command,l.command,h.command,c.command]},6942:(e,t,o)=>{"use strict";t.__esModule=!0,t.valueGetter=function(e){return i.valueGetter.call(this,e)};var i=o(20737)},7120:(e,t,o)=>{"use strict";t.__esModule=!0,t.deprecatedWarn=function(e){(0,i.isDefined)(console)&&console.warn(`Deprecated: ${e}`)},t.error=function(){(0,i.isDefined)(console)&&console.error(...arguments)},t.info=function(){(0,i.isDefined)(console)&&console.info(...arguments)},t.log=function(){(0,i.isDefined)(console)&&console.log(...arguments)},t.warn=function(){(0,i.isDefined)(console)&&console.warn(...arguments)};var i=o(7886)},7255:(e,t,o)=>{"use strict";t.__esModule=!0,t.getAllCommands=function(){return[i.command,s.command,n.command,r.command,a.command,l.command,h.command,c.command,u.command,d.command,g.command,f.command,p.command,m.command,w.command,C.command]};var i=o(22823),s=o(31235),n=o(80393),r=o(93112),a=o(99710),l=o(329),h=o(28730),c=o(44806),u=o(37547),d=o(30390),g=o(56020),f=o(33999),p=o(68294),m=o(31743),w=o(30498),C=o(46802)},7569:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.createHighlight=function(e){let{columnClassName:t,...o}=e;return new n.default({className:t,...o,selectionType:s.HIGHLIGHT_COLUMN_TYPE})};var s=o(13743),n=i(o(6711))},7743:(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"},7857:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(631);class r extends n.BaseAction{constructor(e){let{cellRange:t}=e;super("unmerge_cells"),(0,s.default)(this,"cellRange",void 0),this.cellRange=t}static startRegisteringEvents(e,t){e.addHook("afterUnmergeCells",(e,o)=>{o||t.done(()=>new r({cellRange:e}))})}undo(e,t){const o=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),o.mergeRange(this.cellRange,!0)}redo(e,t){const o=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),o.unmergeRange(this.cellRange,!0),e.render()}}t.UnmergeCellsAction=r},7869:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(53341);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.ExportFile=i.ExportFile},7886:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t._injectProductInfo=function(e,t){const o=!a(e),i="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),n="16.1.0-next-1494b74-20250909";let r,v="invalid",y="invalid";const S=function(e){let t=[][l],o=t;if(e[l]!==d("Z"))return!1;for(let t="",i="B<H4P+".split(""),s=d(i.shift());s;s=d(i.shift()||"A"))--s<""[l]?o|=(c(`${c(h(t)+(h(u(e,Math.abs(s),2))+[]).padStart(2,"0"))}`)%97||2)>>1:t=u(e,s,s?1===i[l]?9:8:6);return o===t}(e=g(e||""));if(o||i||S)if(S){const t=(0,s.default)("11/09/2025","DD/MM/YYYY"),o=Math.floor(t.toDate().getTime()/864e5),i=f(e);r=(0,s.default)(864e5*(i+1),"x").format("MMMM DD, YYYY"),o>i?(v="expired",y="expired"):(v="valid",y="valid")}else i?(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:r,hotVersion:n})&&console["non_commercial"===v?"info":"warn"](w[v]({keyValidityDate:r,hotVersion:n})),m=!0}if("valid"!==y&&t){if(C[y]({keyValidityDate:r,hotVersion:n})){const e=document.createElement("div");e.className="handsontable hot-display-license-info",e.innerHTML=C[y]({keyValidityDate:r,hotVersion:n}),t.appendChild(e)}}},t.getMostBottomEndPosition=function(e){var t,o;const{rowIndexMapper:i,columnIndexMapper:s}=e,{navigableHeaders:n}=e.getSettings();let r=i.getRenderableIndexesLength()-1,a=s.getRenderableIndexesLength()-1;if(r<0){if(!n||0===e.countColHeaders())return null;r=-1}if(a<0){if(!n||0===e.countColHeaders())return null;a=-1}return e._createCellCoords(null!==(t=i.getVisualFromRenderableIndex(r))&&void 0!==t?t:r,null!==(o=s.getVisualFromRenderableIndex(a))&&void 0!==o?o:a)},t.getMostTopStartPosition=function(e){const{rowIndexMapper:t,columnIndexMapper:o}=e,{navigableHeaders:i}=e.getSettings();let s=i&&e.countColHeaders()>0?-e.countColHeaders():0,n=i&&e.countRowHeaders()>0?-e.countRowHeaders():0;0===s&&(s=t.getVisualFromRenderableIndex(s));0===n&&(n=o.getVisualFromRenderableIndex(n));if(null===s||null===n)return null;return e._createCellCoords(s,n)},t.isDefined=function(e){return void 0!==e},t.isEmpty=a,t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.isUndefined=r,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 s=i(o(86798)),n=o(30738);function r(e){return void 0===e}function a(e){return null===e||""===e||r(e)}const l="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"),~~![][l]))||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:()=>n.toSingleLine`
34
34
  The license key for Handsontable is invalid.\x20
35
35
  If you need any help, contact us at support@handsontable.com.`,expired:e=>{let{keyValidityDate:t,hotVersion:o}=e;return n.toSingleLine`
36
36
  The license key for Handsontable expired on ${t}, and is not valid for the installed\x20
@@ -52,7 +52,7 @@
52
52
  passing the key: 'non-commercial-and-evaluation'.\x20
53
53
  <a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> about it in\x20
54
54
  the documentation or contact us at <a href="mailto:support@handsontable.com">support@handsontable.com</a>.`,non_commercial:()=>""}},8249:(e,t,o)=>{"use strict";var i=o(72820),s=o(82683),n=o(22208),r=o(30717),a=o(49463);i({target:"Array",proto:!0},{at:function(e){var t=s(this),o=n(t),i=r(e),a=i>=0?i:o+i;return a<0||a>=o?void 0:t[a]}}),a("at")},8323:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490);var i=o(78966),s=o(81761),n=o(79035),r=o(40929),a=o(7886);function l(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 h(e,t){return e.get(u(e,t))}function c(e,t,o){return e.set(u(e,t),o),o}function u(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 d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,w=new WeakMap,C=new WeakMap,v=new WeakMap,y=new WeakMap,S=new WeakMap;t.default=class{constructor(e,t,o,i,s,n){let r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;l(this,d,void 0),l(this,g,void 0),l(this,f,void 0),l(this,p,void 0),l(this,m,void 0),l(this,w,void 0),l(this,C,void 0),l(this,v,void 0),l(this,y,[null,null]),l(this,S,[null,null]),c(d,this,o),c(g,this,t),c(f,this,s),c(p,this,n),c(m,this,r),c(w,this,i),c(C,this,e),this.registerEvents()}registerEvents(){h(w,this).addEventListener(h(f,this).holder,"contextmenu",e=>this.onContextMenu(e)),h(w,this).addEventListener(h(f,this).TABLE,"mouseover",e=>this.onMouseOver(e)),h(w,this).addEventListener(h(f,this).TABLE,"mouseout",e=>this.onMouseOut(e));const e=()=>{h(w,this).addEventListener(h(f,this).holder,"touchstart",e=>this.onTouchStart(e)),h(w,this).addEventListener(h(f,this).holder,"touchend",e=>this.onTouchEnd(e)),this.momentumScrolling||(this.momentumScrolling={}),h(w,this).addEventListener(h(f,this).holder,"scroll",()=>{clearTimeout(this.momentumScrolling._timeout),this.momentumScrolling.ongoing||h(d,this).getSetting("onBeforeTouchScroll"),this.momentumScrolling.ongoing=!0,this.momentumScrolling._timeout=setTimeout(()=>{this.touchApplied||(this.momentumScrolling.ongoing=!1,h(d,this).getSetting("onAfterMomentumScroll"))},200)})},t=()=>{h(w,this).addEventListener(h(f,this).holder,"mouseup",e=>this.onMouseUp(e)),h(w,this).addEventListener(h(f,this).holder,"mousedown",e=>this.onMouseDown(e))};(0,r.isMobileBrowser)()?e():((0,n.isTouchSupported)()&&e(),t())}selectedCellWasTouched(e){const t=this.parentCell(e).coords;if(h(v,this)&&t){const[e,o]=[t.row,h(v,this).from.row],[i,s]=[t.col,h(v,this).from.col];return e===o&&i===s}return!1}parentCell(e){const t={},o=h(f,this).TABLE,s=(0,i.closestDown)(e,["TD","TH"],o);return s?(t.coords=h(f,this).getCoords(s),t.TD=s):(0,i.hasClass)(e,"wtBorder")&&(0,i.hasClass)(e,"current")?(t.coords=h(p,this).getFocusSelection().cellRange.highlight,t.TD=h(f,this).getCell(t.coords)):(0,i.hasClass)(e,"wtBorder")&&(0,i.hasClass)(e,"area")&&h(p,this).getAreaSelection().cellRange&&(t.coords=h(p,this).getAreaSelection().cellRange.to,t.TD=h(f,this).getCell(t.coords)),t}onMouseDown(e){const t=h(g,this).rootDocument.activeElement,o=(0,s.partial)(i.getParent,e.target),n=e.target;if(!["TD","TH"].includes(t.nodeName)&&(n===t||o(0)===t||o(1)===t))return;const r=this.parentCell(n);(0,i.hasClass)(n,"corner")?h(d,this).getSetting("onCellCornerMouseDown",e,n):r.TD&&h(d,this).has("onCellMouseDown")&&this.callListener("onCellMouseDown",e,r.coords,r.TD),(0===e.button||this.touchApplied)&&r.TD&&(h(S,this)[0]=r.TD,clearTimeout(h(y,this)[0]),h(y,this)[0]=setTimeout(()=>{h(S,this)[0]=null},1e3))}onContextMenu(e){if(h(d,this).has("onCellContextMenu")){const t=this.parentCell(e.target);t.TD&&this.callListener("onCellContextMenu",e,t.coords,t.TD)}}onMouseOver(e){if(!h(d,this).has("onCellMouseOver"))return;const t=h(f,this).TABLE,o=(0,i.closestDown)(e.target,["TD","TH"],t),s=h(m,this)||this;o&&o!==s.lastMouseOver&&(0,i.isChildOf)(o,t)&&(s.lastMouseOver=o,this.callListener("onCellMouseOver",e,h(f,this).getCoords(o),o))}onMouseOut(e){if(!h(d,this).has("onCellMouseOut"))return;const t=h(f,this).TABLE,o=(0,i.closestDown)(e.target,["TD","TH"],t),s=(0,i.closestDown)(e.relatedTarget,["TD","TH"],t),n=h(m,this)||this;o&&o!==s&&(0,i.isChildOf)(o,t)&&(this.callListener("onCellMouseOut",e,h(f,this).getCoords(o),o),null===s&&(n.lastMouseOver=null))}onMouseUp(e){const t=this.parentCell(e.target);t.TD&&h(d,this).has("onCellMouseUp")&&this.callListener("onCellMouseUp",e,t.coords,t.TD),(0===e.button||this.touchApplied)&&(t.TD===h(S,this)[0]&&t.TD===h(S,this)[1]?((0,i.hasClass)(e.target,"corner")?this.callListener("onCellCornerDblClick",e,t.coords,t.TD):this.callListener("onCellDblClick",e,t.coords,t.TD),h(S,this)[0]=null,h(S,this)[1]=null):t.TD===h(S,this)[0]&&(h(S,this)[1]=t.TD,clearTimeout(h(y,this)[1]),h(y,this)[1]=setTimeout(()=>{h(S,this)[1]=null},500)))}onTouchStart(e){c(v,this,h(p,this).getFocusSelection().cellRange),this.touchApplied=!0,this.onMouseDown(e)}onTouchEnd(e){var t;const o=e.target,i=null===(t=this.parentCell(o))||void 0===t?void 0:t.coords,s=(0,a.isDefined)(i)&&i.row>=0&&i.col>=0;if(e.cancelable&&s&&h(d,this).getSetting("isDataViewInstance")){const t=["A","BUTTON","INPUT"];(0,r.isIOS)()&&((0,r.isChromeWebKit)()||(0,r.isFirefoxWebKit)())&&this.selectedCellWasTouched(o)&&!t.includes(o.tagName)?e.preventDefault():this.selectedCellWasTouched(o)||e.preventDefault()}this.onMouseUp(e),this.touchApplied=!1}callListener(e,t,o,i){const s=h(d,this).getSettingPure(e);s&&s(t,o,i,h(C,this).call(this))}destroy(){clearTimeout(h(y,this)[0]),clearTimeout(h(y,this)[1]),h(w,this).destroy()}}},8517:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"selectAllCells",callback(e){let{selection:t}=e;t.markSource("keyboard"),t.selectAll(!0,!0,{disableHeadersHighlight:!0}),t.markEndSource()}}},8536:(e,t,o)=>{"use strict";t.__esModule=!0,t.normalizeRanges=function(e){const t=[],o=[];return(0,i.arrayEach)(e,e=>{const i=Math.min(e.startRow,e.endRow),n=Math.max(e.startRow,e.endRow);(0,s.rangeEach)(i,n,e=>{-1===t.indexOf(e)&&t.push(e)});const r=Math.min(e.startCol,e.endCol),a=Math.max(e.startCol,e.endCol);(0,s.rangeEach)(r,a,e=>{-1===o.indexOf(e)&&o.push(e)})}),{rows:t,columns:o}},o(52490),o(99356);var i=o(94576),s=o(58604);function n(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 a(e,t){return e.get(h(e,t))}function l(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")}var c=new WeakMap,u=new WeakMap,d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakSet;function w(e,t){return Math.min(t,Math.max(e+a(f,this).call(this)-1,e))}function C(e,t){return Math.min(t,Math.max(e+a(g,this).call(this)-1,e))}t.CopyableRangesFactory=class{constructor(e){let{countRows:t,countColumns:o,rowsLimit:i,columnsLimit:s,countColumnHeaders:a}=e;var h,w;r(h=this,w=m),w.add(h),n(this,c,void 0),n(this,u,void 0),n(this,d,void 0),n(this,g,void 0),n(this,f,void 0),n(this,p,void 0),l(u,this,t),l(d,this,o),l(g,this,i),l(f,this,s),l(p,this,a)}setSelectedRange(e){l(c,this,e)}getCellsRange(){if(0===a(u,this).call(this)||0===a(d,this).call(this))return null;const{row:e,col:t}=a(c,this).getTopStartCorner(),{row:o,col:i}=a(c,this).getBottomEndCorner(),s=h(m,this,C).call(this,e,o),n=h(m,this,w).call(this,t,i);return{isRangeTrimmed:o!==s||i!==n,startRow:e,startCol:t,endRow:s,endCol:n}}getMostBottomColumnHeadersRange(){if(0===a(d,this).call(this)||0===a(p,this).call(this))return null;const{col:e}=a(c,this).getTopStartCorner(),{col:t}=a(c,this).getBottomEndCorner(),o=h(m,this,w).call(this,e,t);return{isRangeTrimmed:t!==o,startRow:-1,startCol:e,endRow:-1,endCol:o}}getAllColumnHeadersRange(){if(0===a(d,this).call(this)||0===a(p,this).call(this))return null;const{col:e}=a(c,this).getTopStartCorner(),{col:t}=a(c,this).getBottomEndCorner(),o=h(m,this,w).call(this,e,t);return{isRangeTrimmed:t!==o,startRow:-a(p,this).call(this),startCol:e,endRow:-1,endCol:o}}}},8562:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=l;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(23895),n=o(41145),r=o(79308);const a=t.CONDITION_NAME="between";function l(e,t){let[o,i]=t,a=o,l=i;if("numeric"===e.meta.type){const e=parseFloat(a,10),t=parseFloat(l,10);a=Math.min(e,t),l=Math.max(e,t)}else if("date"===e.meta.type){const t=(0,s.getCondition)(r.CONDITION_NAME,[l]),o=(0,s.getCondition)(n.CONDITION_NAME,[a]);return t(e)&&o(e)}return e.value>=a&&e.value<=l}(0,s.registerCondition)(a,l,{name:i.FILTERS_CONDITIONS_BETWEEN,inputsCount:2,showOperators:!0})},8613:(e,t,o)=>{"use strict";t.__esModule=!0,t.useRecorder=function(e,t,o,i,d){const g=e=>l.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,n.isImmediatePropagationStopped)(e))return;const r=(0,s.normalizeEventKey)(e);let l=[];g(r)||(l=f(e));const h=[r].concat(l);!d(e,h)&&((0,a.isMacOS)()&&l.includes("meta")||!(0,a.isMacOS)()&&l.includes("control"))&&d(e,[r].concat(f(e,!0))),i(e)},m=e=>{if("string"==typeof e.key){const t=(0,s.normalizeEventKey)(e);g(t)&&h.press(t)}},w=e=>{if("string"==typeof e.key){const t=(0,s.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,r.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:i}=c[e];t.document.documentElement.removeEventListener(o,i)}c.length=0}t.document.documentElement.removeEventListener("keydown",p),t.document.documentElement.removeEventListener("blur",C),t=(0,r.getParentWindow)(t)}},isPressed:e=>h.isPressed(e),releasePressedKeys:()=>h.releaseAll()}},o(99356);var i=o(47742),s=o(35394),n=o(47802),r=o(78966),a=o(40929);const l=["meta","alt","shift","control"],h=(0,i.createKeysObserver)(),c=[];let u=0},8625:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"freeze_column",name(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_FREEZE_COLUMN)},callback(t,o){const[{start:{col:i}}]=o;e.freezeColumn(i),this.view.adjustElementsSize(),this.render()},hidden(){const e=this.getSelectedRange();let t=!1;return(void 0===e||e.length>1||e[0].from.col!==e[0].to.col||e[0].from.col<=this.getSettings().fixedColumnsStart-1)&&(t=!0),t}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481))},8814:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(31143);var s=i(o(13123));function n(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 a(e,t){return e.get(h(e,t))}function l(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")}var c=new WeakMap,u=new WeakMap,d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,w=new WeakSet;function C(e){let{selectedRange:t,selectionLayer:o,listOrder:i,mergeCellsVisitor:s,row:n,column:r}=e;const l=t.getTopStartCorner(),h=t.getBottomEndCorner(),c=t.highlight.clone().normalize(),u=a(f,this).call(this,n,r);if(u&&s.has(u))return null;const d={selectionLayer:o,colStart:r,colEnd:r,rowStart:n,rowEnd:n};if(u){if(s.add(u),u.row<l.row||u.row+u.rowspan-1>h.row||u.col<l.col||u.col+u.colspan-1>h.col)return null;d.colStart=u.col,d.colEnd=u.col+u.colspan-1,d.rowStart=u.row,d.rowEnd=u.row+u.rowspan-1}const g=i.push(d);return n===c.row&&r===c.col||u&&c.row>=u.row&&c.row<=u.row+u.rowspan-1&&c.col>=u.col&&c.col<=u.col+u.colspan-1?g:null}t.FocusOrder=class{constructor(e){let{mergedCellsGetter:t,rowIndexMapper:o,columnIndexMapper:i}=e;var a,h;r(a=this,h=w),h.add(a),n(this,c,new s.default),n(this,u,new s.default),n(this,d,null),n(this,g,null),n(this,f,null),n(this,p,null),n(this,m,null),l(f,this,t),l(p,this,o),l(m,this,i)}getCurrentVerticalNode(){return a(g,this).data}getFirstVerticalNode(){return a(u,this).first.data}getNextVerticalNode(){return a(g,this).next.data}getPrevVerticalNode(){return a(g,this).prev.data}getCurrentHorizontalNode(){return a(d,this).data}getFirstHorizontalNode(){return a(c,this).first.data}getNextHorizontalNode(){return a(d,this).next.data}getPrevHorizontalNode(){return a(d,this).prev.data}setPrevNodeAsActive(){l(g,this,a(g,this).prev),l(d,this,a(d,this).prev)}setNextNodeAsActive(){l(g,this,a(g,this).next),l(d,this,a(d,this).next)}buildFocusOrder(e){l(c,this,new s.default),e.forEach((e,t)=>{const o=new WeakSet,i=e.getTopStartCorner(),s=e.getBottomEndCorner();for(let n=i.row;n<=s.row;n++)if(!a(p,this).isHidden(n))for(let r=i.col;r<=s.col;r++){if(a(m,this).isHidden(r))continue;const i=h(w,this,C).call(this,{selectedRange:e,selectionLayer:t,listOrder:a(c,this),mergeCellsVisitor:o,row:n,column:r});i&&l(d,this,i)}}),a(c,this).first&&(a(c,this).first.prev=a(c,this).last,a(c,this).last.next=a(c,this).first),l(u,this,new s.default),e.forEach((e,t)=>{const o=new WeakSet,i=e.getTopStartCorner(),s=e.getBottomEndCorner();for(let n=i.col;n<=s.col;n++)if(!a(m,this).isHidden(n))for(let r=i.row;r<=s.row;r++){if(a(p,this).isHidden(r))continue;const i=h(w,this,C).call(this,{selectedRange:e,selectionLayer:t,listOrder:a(u,this),mergeCellsVisitor:o,row:r,column:n});i&&l(g,this,i)}}),a(u,this).first&&(a(u,this).first.prev=a(u,this).last,a(u,this).last.next=a(u,this).first)}setActiveNode(e,t,o){return a(c,this).inorder(i=>{const{selectionLayer:s,rowStart:n,rowEnd:r,colStart:a,colEnd:h}=i.data;if(s===o&&e>=n&&e<=r&&t>=a&&t<=h)return l(d,this,i),!0}),a(u,this).inorder(i=>{const{selectionLayer:s,rowStart:n,rowEnd:r,colStart:a,colEnd:h}=i.data;if(s===o&&e>=n&&e<=r&&t>=a&&t<=h)return l(g,this,i),!0}),this}}},9013:(e,t,o)=>{"use strict";t.__esModule=!0,t.countFirstRowKeys=function(e){let t=0;Array.isArray(e)&&(e[0]&&Array.isArray(e[0])?t=e[0].length:e[0]&&(0,i.isObject)(e[0])&&(t=(0,i.deepObjectSize)(e[0])));return t},t.createEmptySpreadsheetData=function(e,t){const o=[];let i;for(let s=0;s<e;s++){i=[];for(let e=0;e<t;e++)i.push("");o.push(i)}return o},t.createSpreadsheetData=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const o=[];let i,s;for(i=0;i<e;i++){const e=[];for(s=0;s<t;s++)e.push(r(s)+(i+1));o.push(e)}return o},t.createSpreadsheetObjectData=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const o=[];let i,s;for(i=0;i<e;i++){const e={};for(s=0;s<t;s++)e[`prop${s}`]=r(s)+(i+1);o.push(e)}return o},t.dataRowToChangesArray=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=e;const i=[];Array.isArray(e)&&Array.isArray(e[0])||(o=[e]);return o.forEach((e,o)=>{Array.isArray(e)?e.forEach((e,s)=>{i.push([o+t,s,e])}):Object.keys(e).forEach(s=>{i.push([o+t,s,e[s]])})}),i},t.isArrayOfArrays=function(e){return!!(Array.isArray(e)&&e.length&&e.every(e=>Array.isArray(e)))},t.isArrayOfObjects=function(e){return!!(Array.isArray(e)&&e.length&&e.every(e=>"object"==typeof e&&!Array.isArray(e)&&null!==e))},t.spreadsheetColumnIndex=function(e){let t=0;if(e)for(let o=0,i=e.length-1;o<e.length;o+=1,i-=1)t+=n**i*(s.indexOf(e[o])+1);return t-=1,t},t.spreadsheetColumnLabel=r,o(99356),o(34478),o(66133),o(31143);var i=o(4138);const s="ABCDEFGHIJKLMNOPQRSTUVWXYZ",n=s.length;function r(e){let t,o=e+1,i="";for(;o>0;)t=(o-1)%n,i=String.fromCharCode(65+t)+i,o=parseInt((o-t)/n,10);return i}},9056:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=r;var i=o(23895),s=o(56013);const n=t.CONDITION_NAME="by_value";function r(e,t){let[o]=t;return o(e.value)}(0,i.registerCondition)(n,r,{name:"By value",inputsCount:0,inputValuesDecorator(e){let[t]=e;return[(0,s.createArrayAssertion)(t)]},showOperators:!1})},9093:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(30286),s=o(1471);class n extends i.IndexMap{insert(e,t){this.indexedValues=(0,s.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),super.insert(e,t)}remove(e){this.indexedValues=(0,s.getListWithRemovedItems)(this.indexedValues,e),super.remove(e)}}t.PhysicalIndexToValueMap=n},9137:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(58131);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.ColumnSorting=i.ColumnSorting,t.APPEND_COLUMN_CONFIG_STRATEGY=i.APPEND_COLUMN_CONFIG_STRATEGY,t.REPLACE_COLUMN_CONFIG_STRATEGY=i.REPLACE_COLUMN_CONFIG_STRATEGY},9383:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724);var s=i(o(24300)),n=o(23228),r=o(4138),a=o(81761);t.DynamicCellMetaMod=class{constructor(e){var t=this;(0,s.default)(this,"metaManager",void 0),(0,s.default)(this,"metaSyncMemo",new Map),this.metaManager=e,e.addLocalHook("afterGetCellMeta",function(){return t.extendCellMeta(...arguments)}),n.Hooks.getSingleton().add("beforeRender",e=>{e&&this.metaSyncMemo.clear()},this.metaManager.hot)}extendCellMeta(e){var t;const{row:o,col:i}=e;if(null!==(t=this.metaSyncMemo.get(o))&&void 0!==t&&t.has(i))return;const{visualRow:s,visualCol:n}=e,l=this.metaManager.hot,h=l.colToProp(n);e.prop=h,l.runHooks("beforeGetCellMeta",s,n,e);const c=(0,r.hasOwnProperty)(e,"type")?e.type:null;let u=(0,a.isFunction)(e.cells)?e.cells(o,i,h):null;var d;c&&(u?u.type=null!==(d=u.type)&&void 0!==d?d:c:u={type:c});u&&this.metaManager.updateCellMeta(o,i,u),l.runHooks("afterGetCellMeta",s,n,e),this.metaSyncMemo.has(o)||this.metaSyncMemo.set(o,new Set),this.metaSyncMemo.get(o).add(i)}}},9586:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(7886),n=o(23895);const r=t.CONDITION_NAME="ends_with";function a(e,t){let[o]=t;return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale).endsWith((0,s.stringify)(o))}(0,n.registerCondition)(r,a,{name:i.FILTERS_CONDITIONS_ENDS_WITH,inputsCount:1,showOperators:!0})},9609:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(29810),o(940);var s=i(o(24300)),n=o(78966),r=o(47802),a=o(94576),l=o(38830),h=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),c=o(56013),u=o(69572),d=o(73131),g=o(65865),f=o(23895),p=o(45007);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,s.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,E).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,i,s,n)=>{const[r]=(0,a.arrayFilter)(o,e=>e.name===g.CONDITION_BY_VALUE),l={},u=this.hot.getTranslatedPhrase(h.FILTERS_VALUES_BLANK_CELLS);if(r){const o=s(t,n),h=(0,a.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);i&&(r.args[0]=i);const m=[],v=(0,c.intersectValues)(p,r.args[0],u,e=>{e.checked&&m.push(e.value),w(C,this,S).call(this,e,d)}),y=e.editedConditionStack.column;l.locale=this.hot.getCellMeta(0,y).locale,l.args=[m],l.command=(0,f.getConditionDescriptor)(g.CONDITION_BY_VALUE),l.itemsSnapshot=v}else l.args=[],l.command=(0,f.getConditionDescriptor)(g.CONDITION_NONE);this.state.setValueAtIndex(t,l)};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,i,s,r)=>{(0,n.addClass)(t.parentNode,"htFiltersMenuValue");const l=this.hot.rootDocument.createElement("div");return(0,n.addClass)(l,"htFiltersMenuLabel"),l.textContent=r,t.appendChild(l),t.parentElement.hasAttribute("ghost-table")||(0,a.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),i=new Map(t.map(e=>[e.value,e.meta])),s=(0,c.unifyColumnValues)(o),n=(0,c.intersectValues)(s,s,e,e=>{w(C,this,S).call(this,e,i)});this.getMultipleSelectElement().setItems(n),super.reset(),this.getMultipleSelectElement().setValue(s);const r=this.hot.getPlugin("filters").getSelectedColumn();null!==r&&this.getMultipleSelectElement().setLocale(this.hot.getCellMeta(0,r.visualIndex).locale)}_getColumnVisibleValues(){const e=this.hot.getPlugin("filters").getSelectedColumn();return null===e?[]:(0,a.arrayMap)(this.hot.getDataAtCol(e.visualIndex),(t,o)=>({value:(0,c.toEmptyString)(t),meta:this.hot.getCellMeta(o,e.visualIndex)}))}}function y(e){(0,l.isKey)(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),(0,r.stopImmediatePropagation)(e))}function S(e,t){this.hot.hasHook("modifyFiltersMultiSelectValue")&&(e.visualValue=this.hot.runHooks("modifyFiltersMultiSelectValue",e.visualValue,t.get(e.value)))}function E(e,t){return"numeric"===t.type?(0,p.getRenderedValue)(e,t):e}t.ValueComponent=v},9807:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(61574);t.CELL_TYPE=i.CELL_TYPE,t.PasswordCellType=i.PasswordCellType},9895:(e,t,o)=>{"use strict";var i=o(65415);e.exports=function(e,t){return i[e]||(i[e]=t||{})}},9967:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(50494);t.CELL_TYPE=i.CELL_TYPE,t.CheckboxCellType=i.CheckboxCellType},10416:(e,t,o)=>{"use strict";t.__esModule=!0,t.getClassesToAdd=function(e,t,o,s){const h=[r];s&&h.push(a);if(!1===o)return h.push(n),h;const c=e.getSortOrderOfColumn(t);(0,i.isDefined)(c)&&h.push(l.get(c));return h},t.getClassesToRemove=function(){return Array.from(l.values()).concat(a,n,r)},o(99356);var i=o(7886),s=o(45084);const n="indicatorDisabled",r="columnSorting",a="sortAction",l=new Map([[s.ASC_SORT_STATE,"ascending"],[s.DESC_SORT_STATE,"descending"]])},10582:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(99356);var s=i(o(24300)),n=o(54539),r=o(5869);t.OrderView=class{constructor(e,t){(0,s.default)(this,"rootNode",void 0),(0,s.default)(this,"nodesPool",void 0),(0,s.default)(this,"sizeSet",new n.ViewSizeSet),(0,s.default)(this,"collectedNodes",[]),(0,s.default)(this,"viewDiffer",new r.ViewDiffer(this.sizeSet)),(0,s.default)(this,"leads",[]),this.rootNode=e,this.nodesPool=t}setSize(e){return this.sizeSet.setSize(e),this}setOffset(e){return this.sizeSet.setOffset(e),this}isSharedViewSet(){return this.sizeSet.isShared()}getNode(e){return e<this.collectedNodes.length?this.collectedNodes[e]:null}getCurrentNode(){const e=this.collectedNodes.length;return e>0?this.collectedNodes[e-1]:null}applyCommand(e){const{rootNode:t}=this,[o,i,s,n]=e,r=this.nodesPool(i);switch(this.collectedNodes.push(r),o){case"prepend":t.insertBefore(r,t.firstChild);break;case"append":t.appendChild(r);break;case"insert_before":t.insertBefore(r,this.nodesPool(s)),t.removeChild(this.nodesPool(n));break;case"replace":t.replaceChild(r,this.nodesPool(s));break;case"remove":t.removeChild(r)}}start(){this.collectedNodes.length=0,this.leads=this.viewDiffer.diff()}render(){this.leads.length>0&&this.applyCommand(this.leads.shift())}end(){for(;this.leads.length>0;)this.applyCommand(this.leads.shift())}}},10697:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=n;var i=o(23895);const s=t.CONDITION_NAME="false";function n(){return!1}(0,i.registerCondition)(s,n,{name:"False"})},10721:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(67347),s=o(78966),n=o(4138),r=o(72609);const a="ht_editor_visible",l="selectEditor",h=t.EDITOR_TYPE="select";class c extends i.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,r.A11Y_HIDDEN)()),e.appendChild(this.hot.rootDocument.createTextNode(String.fromCharCode(9660))),(0,s.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,s.hasClass)(this.selectWrapper,a)&&(0,s.removeClass)(this.selectWrapper,a),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,i,r,a){super.prepare(e,t,o,i,r,a);const l=this.cellProperties.selectOptions;let h;h="function"==typeof l?this.prepareOptions(l(this.row,this.col,this.prop)):this.prepareOptions(l),(0,s.empty)(this.select),(0,n.objectEach)(h,(e,t)=>{const o=this.hot.rootDocument.createElement("OPTION");o.value=t,(0,s.fastInnerHTML)(o,e),this.select.appendChild(o)})}prepareOptions(e){let t={};if(Array.isArray(e))for(let o=0,i=e.length;o<i;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!==i.EDITOR_STATE.EDITING)return;if(this.TD=this.getEditedCell(),!this.TD)return void this.close();const{top:e,start:t,width:o,height:n}=this.getEditedCellRect(),r=this.selectWrapper.style;r.height=`${n}px`,r.width=`${o}px`,r.top=`${e}px`,r[this.hot.isRtl()?"right":"left"]=`${t}px`,r.margin="0px",(0,s.addClass)(this.selectWrapper,a)}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("editor"),t={group:l};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(l)}}t.SelectEditor=c},10766:(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 i,s=o.data("handsontable");if("string"!=typeof t){const i=t||{};return s?s.updateSettings(i):(s=new e.Core(o[0],i),o.data("handsontable",s),s.init()),o}if(s){if(void 0===s[t])throw new Error(`Handsontable do not provide action: ${t}`);for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];i=s[t].call(s,...r),"destroy"===t&&o.removeData()}return i}},o(52490)},10768:(e,t,o)=>{"use strict";var i=o(2382),s=o(19451),n=Function.prototype,r=i&&Object.getOwnPropertyDescriptor,a=s(n,"name"),l=a&&"something"===function(){}.name,h=a&&(!i||i&&r(n,"name").configurable);e.exports={EXISTS:a,PROPER:l,CONFIGURABLE:h}},11179:(e,t,o)=>{"use strict";var i=o(41462),s=o(31520).has,n=o(59188),r=o(94811),a=o(26023),l=o(48369),h=o(99793);e.exports=function(e){var t=i(this),o=r(e);if(n(t)<=o.size)return!1!==a(t,function(e){if(o.includes(e))return!1},!0);var c=o.getIterator();return!1!==l(c,function(e){if(s(t,e))return h(c,"normal",!1)})}},11453:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"populateSelectedCellsData",callback(e){const t=e.getSelectedRange(),{row:o,col:i}=t[t.length-1].highlight.normalize(),s=e.getDataAtCell(o,i),n=new Map;for(let r=0;r<t.length;r++)t[r].forAll((t,r)=>{if(t>=0&&r>=0&&(t!==o||r!==i)){const{readOnly:o}=e.getCellMeta(t,r);o||n.set(`${t}x${r}`,[t,r,s])}});e.setDataAtCell(Array.from(n.values()))}}},11613:(e,t,o)=>{"use strict";var i=o(53001),s=o(70906);e.exports=!i(function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)})},11700:(e,t,o)=>{"use strict";t.__esModule=!0,t.compareFunctionFactory=function(e,t,o){return(0,i.createDateTimeCompareFunction)(e,t.dateFormat,o)};var i=o(45084);t.COLUMN_DATA_TYPE="date"},11808:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(34478),o(29810);var s=i(o(24300)),n=o(631);class r extends n.BaseAction{constructor(e){let{conditionsStack:t,previousConditionsStack:o}=e;super("filter"),(0,s.default)(this,"conditionsStack",void 0),(0,s.default)(this,"previousConditionsStack",void 0),this.conditionsStack=t,this.previousConditionsStack=o}static startRegisteringEvents(e,t){e.addHook("beforeFilter",(e,o)=>{t.done(()=>new r({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=r},11840:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(62326);t.valueSetter=i.valueSetter},11847:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(81056);var s=o(26808),n=o(23228),r=o(94576),a=o(78966),l=o(47802),h=o(58604),c=i(o(46410)),u=i(o(72425));function d(e,t,o){g(e,t),t.set(e,o)}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,o){return e.set(m(e,t),o),o}function p(e,t){return e.get(m(e,t))}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")}n.Hooks.getSingleton().register("beforeColumnMove"),n.Hooks.getSingleton().register("afterColumnMove");const w=t.PLUGIN_KEY="manualColumnMove",C=t.PLUGIN_PRIORITY=120,v="ht__manualColumnMove",y="show-ui",S="on-moving--columns",E="after-selection--columns";var R=new WeakMap,b=new WeakMap,_=new WeakMap,T=new WeakMap,M=new WeakMap,I=new WeakMap,O=new WeakMap,A=new WeakMap,N=new WeakMap,P=new WeakMap,H=new WeakMap,x=new WeakSet;class k extends s.BasePlugin{constructor(){var e,t;super(...arguments),g(e=this,t=x),t.add(e),d(this,R,new c.default(this.hot)),d(this,b,new u.default(this.hot)),d(this,_,[]),d(this,T,0),d(this,M,!1),d(this,I,{}),d(this,O,void 0),d(this,A,void 0),d(this,N,void 0),d(this,P,void 0),d(this,H,void 0)}static get PLUGIN_KEY(){return w}static get PLUGIN_PRIORITY(){return C}isEnabled(){return!!this.hot.getSettings()[w]}enablePlugin(){var e=this;this.enabled||(this.addHook("beforeOnCellMouseDown",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return m(x,e,D).call(e,...o)}),this.addHook("beforeOnCellMouseOver",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return m(x,e,V).call(e,...o)}),this.addHook("afterScrollVertically",()=>m(x,this,F).call(this)),this.addHook("afterLoadData",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return m(x,e,B).call(e,...o)}),this.buildPluginUI(),this.registerEvents(),(0,a.addClass)(this.hot.rootElement,v),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.moveBySettingsOrLoad(),super.updatePlugin()}disablePlugin(){(0,a.removeClass)(this.hot.rootElement,v),this.unregisterEvents(),p(R,this).destroy(),p(b,this).destroy(),super.disablePlugin()}moveColumn(e,t){return this.moveColumns([e],t)}moveColumns(e,t){const o=p(O,this),i=this.isMovePossible(e,t),s=this.hot.runHooks("beforeColumnMove",e,t,o,i);if(f(O,this,void 0),!1===s)return;i&&this.hot.columnIndexMapper.moveIndexes(e,t);const n=i&&this.isColumnOrderChanged(e,t);return this.hot.runHooks("afterColumnMove",e,t,o,i,n),n}dragColumn(e,t){return this.dragColumns([e],t)}dragColumns(e,t){const o=this.countFinalIndex(e,t);return f(O,this,t),this.moveColumns(e,o)}isMovePossible(e,t){const o=this.hot.columnIndexMapper.getNotTrimmedIndexesLength(),i=e.length+t>o,s=t<0,n=e.some(e=>e<0),r=e.some(e=>e>=o);return!(i||s||n||r)}isColumnOrderChanged(e,t){return e.some((e,o)=>e-o!==t)}countFinalIndex(e,t){const o=(0,r.arrayReduce)(e,(e,o)=>(o<t&&(e+=1),e),0);return t-o}getColumnsWidth(e,t){const o=this.hot.columnIndexMapper;let i=0;for(let s=e;s<=t;s+=1){const e=o.getRenderableFromVisualIndex(s);s<0?i+=this.hot.view._wt.wtViewport.getRowHeaderWidth()||0:null!==e&&(i+=this.hot.view._wt.wtTable.getColumnWidth(e)||0)}return i}moveBySettingsOrLoad(){const e=this.hot.getSettings()[w];if(Array.isArray(e))this.moveColumns(e,0);else if(void 0!==e){const e=this.persistentStateLoad();e.length&&this.moveColumns(e,0)}}isFixedColumnsStart(e){return e<this.hot.getSettings().fixedColumnsStart}persistentStateSave(){this.hot.runHooks("persistentStateSave","manualColumnMove",this.hot.columnIndexMapper.getIndexesSequence())}persistentStateLoad(){const e={};return this.hot.runHooks("persistentStateLoad","manualColumnMove",e),e.value?e.value:[]}prepareColumnsToMoving(e,t){const o=[];return(0,h.rangeEach)(e,t,e=>{o.push(e)}),o}refreshPositions(){const e=this.hot.view.getFirstFullyVisibleColumn();this.isFixedColumnsStart(p(A,this))&&e>0&&this.hot.scrollViewportTo({col:this.hot.columnIndexMapper.getNearestNotHiddenIndex(e-1,-1)});const t=this.hot.view._wt.wtTable,o=this.hot.view._wt.wtOverlays.scrollableElement,i="number"==typeof o.scrollX?o.scrollX:o.scrollLeft;let s=this.hot.view.THEAD.offsetLeft+this.getColumnsWidth(0,p(A,this)-1);const n=t.hider.offsetWidth,r=t.TBODY.offsetLeft,l=p(R,this).getOffset().start,h=p(R,this).getSize().width;let c=0,u=0;if(this.hot.isRtl()){const e=this.hot.rootWindow,t=(0,a.outerWidth)(this.hot.rootElement),s=e.innerWidth-p(N,this)-t;u=e.innerWidth-p(I,this).eventPageX-s-(void 0===o.scrollX?i:0)}else u=p(I,this).eventPageX-(p(N,this)-(void 0===o.scrollX?i:0));if(p(P,this)&&(c=this.hot.view._wt.wtOverlays.inlineStartOverlay.clone.wtTable.getColumnHeader(-1).offsetWidth),this.isFixedColumnsStart(p(A,this))&&(s+=i),s+=c,p(A,this)<0)p(H,this)>0?p(I,this).col=0:p(I,this).col=e>0?e-1:e;else if(p(I,this).TD.offsetWidth/2+s<=u){const e=p(A,this)>=p(T,this)?p(T,this)-1:p(A,this);p(I,this).col=e+1,s+=p(I,this).TD.offsetWidth}else p(I,this).col=p(A,this);let d=u,g=s;u+h+l>=n?d=n-h-l:u+l<r+c&&(d=r+c+Math.abs(l)),s>=n-1?g=n-1:0===g?g=1:void 0!==o.scrollX&&p(A,this)<p(H,this)&&(g-=p(N,this)<=o.scrollX?p(N,this):0),p(R,this).setPosition(null,d),p(b,this).setPosition(null,g)}registerEvents(){const{documentElement:e}=this.hot.rootDocument;this.eventManager.addEventListener(e,"mousemove",e=>m(x,this,L).call(this,e)),this.eventManager.addEventListener(e,"mouseup",()=>m(x,this,W).call(this))}unregisterEvents(){this.eventManager.clear()}buildPluginUI(){p(R,this).build(),p(b,this).build()}destroy(){p(R,this).destroy(),p(b,this).destroy(),super.destroy()}}function D(e,t,o,i){const s=this.hot.view._wt.wtTable,n=this.hot.selection.isSelectedByColumnHeader(),r=this.hot.getSelectedRangeActive(),h=(0,a.hasClass)(e.target,"sortAction");if(!r||!n||p(M,this)||0!==e.button||h)return f(M,this,!1),p(_,this).length=0,void(0,a.removeClass)(this.hot.rootElement,[S,y]);const c=p(b,this).isBuilt()&&!p(b,this).isAppended(),u=p(R,this).isBuilt()&&!p(R,this).isAppended();c&&u&&(p(b,this).appendTo(s.hider),p(R,this).appendTo(s.hider));const{from:d,to:g}=r,m=Math.min(d.col,g.col),w=Math.max(d.col,g.col);if(t.row<0&&t.col>=m&&t.col<=w){i.column=!0,f(M,this,!0);const n=o.firstChild?(0,l.offsetRelativeTo)(e,o.firstChild).x:e.offsetX;p(I,this).eventPageX=e.pageX,f(A,this,t.col),p(I,this).TD=o,p(I,this).col=t.col,f(_,this,this.prepareColumnsToMoving(m,w)),f(P,this,!!this.hot.getSettings().rowHeaders),f(T,this,this.hot.countCols()),f(H,this,this.hot.getSettings().fixedColumnsStart),f(N,this,(0,a.offset)(this.hot.rootElement).left);const r=p(P,this)?-1:0,h=s.holder.scrollTop+s.getColumnHeaderHeight(0)+1,c=t.col<p(H,this),u=this.hot.view._wt.wtOverlays.inlineStartOverlay.getOverlayOffset(),d=Math.abs(n-(this.hot.isRtl()?o.offsetWidth:0)),g=this.getColumnsWidth(m,t.col-1)+d,C=this.getColumnsWidth(r,m-1)+(c?u:0)+g;p(R,this).setPosition(h,C),p(R,this).setSize(this.getColumnsWidth(m,w),s.hider.offsetHeight-h),p(R,this).setOffset(null,-g),(0,a.addClass)(this.hot.rootElement,S)}else(0,a.removeClass)(this.hot.rootElement,E),f(M,this,!1),p(_,this).length=0}function L(e){p(M,this)&&(p(I,this).eventPageX=e.pageX,this.refreshPositions())}function V(e,t,o,i){this.hot.getSelectedRangeActive()&&p(M,this)&&(p(_,this).indexOf(t.col)>-1?(0,a.removeClass)(this.hot.rootElement,y):(0,a.addClass)(this.hot.rootElement,y),i.row=!0,i.column=!0,i.cell=!0,f(A,this,t.col),p(I,this).TD=o)}function W(){const e=p(I,this).col,t=p(_,this).length;if(f(A,this,void 0),f(M,this,!1),(0,a.removeClass)(this.hot.rootElement,[S,y,E]),this.hot.selection.isSelectedByColumnHeader()&&(0,a.addClass)(this.hot.rootElement,E),t<1||void 0===e)return;const o=p(_,this)[0],i=this.hot.toPhysicalColumn(o),s=this.dragColumns(p(_,this),e);if(p(_,this).length=0,!0===s){this.persistentStateSave(),this.hot.view.adjustElementsSize(),this.hot.render();const e=this.hot.toVisualColumn(i),o=e+t-1;this.hot.selectColumns(e,o)}}function F(){const e=this.hot.view._wt.wtTable,t=e.getColumnHeaderHeight(0)+1+e.holder.scrollTop;p(R,this).setPosition(t),p(R,this).setSize(null,e.hider.offsetHeight-t)}function B(){this.moveBySettingsOrLoad()}t.ManualColumnMove=k},11963:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(10582);class s extends i.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=s},11991:(e,t,o)=>{"use strict";t.__esModule=!0,t.createViewportScroller=function(e){const{selection:t}=e;let o=!1,c=!1;return{resume(){c=!1},suspend(){c=!0},skipNextScrollCycle(){o=!0},scrollTo(u){var d;if(o||c)return void(o=!1);let g;t.isFocusSelectionChanged()?g=(0,n.focusScrollStrategy)(e):t.isSelectedByCorner()?g=(0,s.cornerHeaderScrollStrategy)(e):t.isSelectedByRowHeader()?g=(0,l.rowHeaderScrollStrategy)(e):t.isSelectedByColumnHeader()?g=(0,i.columnHeaderScrollStrategy)(e):1===t.getSelectedRange().size()&&t.isMultiple()?g=(0,r.multipleScrollStrategy)(e):1!==t.getSelectedRange().size()||t.isMultiple()?t.getSelectedRange().size()>1&&(g=(0,a.noncontiguousScrollStrategy)(e)):g=(0,h.singleScrollStrategy)(e),null===(d=g)||void 0===d||d(u)}}};var i=o(18252),s=o(43619),n=o(15709),r=o(28335),a=o(37334),l=o(17128),h=o(27671)},12033:(e,t,o)=>{"use strict";var i=o(94266),s=o(9895),n=o(19451),r=o(23002),a=o(55805),l=o(99470),h=i.Symbol,c=s("wks"),u=l?h.for||h:h&&h.withoutSetter||r;e.exports=function(e){return n(c,e)||(c[e]=a&&n(h,e)?h[e]:u("Symbol."+e)),c[e]}},12077:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(80249);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.ManualColumnResize=i.ManualColumnResize},12099:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490),o(34478),o(33098);var i=o(83011);function s(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 r(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 l=new WeakMap,h=new WeakMap;class c extends i.StretchStrategy{constructor(){super(...arguments),s(this,l,0),s(this,h,-1)}prepare(e){super.prepare(e),r(l,this,0),r(h,this,-1)}setColumnBaseWidth(e,t){super.setColumnBaseWidth(e,t),r(h,this,e),r(l,this,t)}calculate(){if(-1===n(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+n(l,this),0);this.stretchedWidths.set(n(h,this),t)}}t.StretchLastStrategy=c},12119:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=o(78966),n=o(4138),r=i(o(18805)),a=o(87276);function l(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 h(e,t){return e.get(u(e,t))}function c(e,t,o){return e.set(u(e,t),o),o}function u(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 d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,w=new WeakMap,C=new WeakMap,v=new WeakMap;class y{static get CLASS_EDITOR_CONTAINER(){return"htCommentsContainer"}static get CLASS_EDITOR(){return"htComments"}static get CLASS_INPUT(){return"htCommentTextArea"}static get CLASS_CELL(){return"htCommentCell"}constructor(e,t,o){var i=this;l(this,d,void 0),l(this,g,void 0),l(this,f,!1),l(this,p,null),l(this,m,void 0),l(this,w,void 0),l(this,C,!0),l(this,v,new a.EditorResizeObserver),c(d,this,e),c(g,this,o),c(f,this,t),c(m,this,this.createEditor()),c(w,this,h(m,this).style),h(v,this).setObservedElement(this.getInputElement()),h(v,this).addLocalHook("resize",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return i.runLocalHooks("resize",...t)}),this.hide()}setPosition(e,t){h(w,this).left=`${e}px`,h(w,this).top=`${t}px`}setSize(e,t){if(e&&t){const o=this.getInputElement();o.style.width=`${e}px`,o.style.height=`${t}px`}}getSize(){return{width:(0,s.outerWidth)(this.getInputElement()),height:(0,s.outerHeight)(this.getInputElement())}}observeSize(){h(v,this).observe()}resetSize(){const e=this.getInputElement();e.style.width="",e.style.height=""}setReadOnlyState(e){this.getInputElement().readOnly=e}show(){h(w,this).display="block",c(C,this,!1)}hide(){h(v,this).unobserve(),h(C,this)||(h(w,this).display="none"),c(C,this,!0)}isVisible(){return"block"===h(w,this).display}setValue(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")||"";this.getInputElement().value=e}getValue(){return this.getInputElement().value}isFocused(){return h(d,this).activeElement===this.getInputElement()}focus(){this.getInputElement().focus()}createEditor(){const e=h(d,this).createElement("div"),t=h(d,this).createElement("textarea");return e.style.display="none",c(p,this,h(d,this).createElement("div")),h(p,this).setAttribute("dir",h(f,this)?"rtl":"ltr"),(0,s.addClass)(h(p,this),y.CLASS_EDITOR_CONTAINER),h(g,this).appendChild(h(p,this)),(0,s.addClass)(e,y.CLASS_EDITOR),(0,s.addClass)(t,y.CLASS_INPUT),t.setAttribute("data-hot-input",!0),e.appendChild(t),h(p,this).appendChild(e),e}getInputElement(){return h(m,this).querySelector(`.${y.CLASS_INPUT}`)}getEditorElement(){return h(m,this)}destroy(){const e=h(p,this)?h(p,this).parentNode:null;h(m,this).parentNode.removeChild(h(m,this)),c(m,this,null),c(w,this,null),h(v,this).destroy(),e&&e.removeChild(h(p,this))}}(0,n.mixin)(y,r.default);t.default=y},12249:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(3797);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.StretchColumns=i.StretchColumns},12256:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490);var i=o(79675),s=o(47802),n=o(62876),r=o(8613),a=o(30738);t.createShortcutManager=e=>{let{ownerWindow:t,handleEvent:o,beforeKeyDown:l,afterKeyDown:h}=e;const c=(0,i.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 i=(0,n.isContextObject)(o)?o:g(o);let r=!1;if(!i.hasShortcut(t))return r;const a=i.getShortcuts(t);for(let o=0;o<a.length;o++){const{callback:i,runOnlyIf:n,preventDefault:l,stopPropagation:h,captureCtrl:c,forwardToContext:u}=a[o];if(!0===n(e)){if(f=c,r=!1===i(e,t),f=!1,l&&e.preventDefault(),h&&((0,s.stopImmediatePropagation)(e),e.stopPropagation()),r)break;u&&p(e,t,u)}}return r},m=(0,r.useRecorder)(t,e=>{const t=d(),i=(0,n.isContextObject)(t)?t:g(t);return o(e,i.scope)},l,h,p);return m.mount(),{addContext:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"table";const o=(0,n.createContext)(e,t);return c.addItem(e,o),o},getActiveContextName:d,getContext:g,setActiveContextName:e=>{if(!c.hasItem(e))throw new Error(a.toSingleLine`You've tried to activate the "${e}" shortcut context\x20
55
- 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()}}},12294:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(76100);t.VALIDATOR_TYPE=i.VALIDATOR_TYPE,t.correctFormat=i.correctFormat,t.dateValidator=i.dateValidator},12449:(e,t,o)=>{"use strict";t.__esModule=!0,t.createPaginationFocusController=function(e){let{focusableElements:t}=e;return(0,i.createPaginator)({initialPage:0,size:()=>t().length,onItemSelect:e=>{t()[e].focus()}})};var i=o(83166)},12485:(e,t,o)=>{"use strict";t.__esModule=!0,t.baseRenderer=a,o(99356);var i=o(78966),s=o(72609);const n=t.RENDERER_TYPE="base",r="htTextEllipsis";function a(e,t,o,n,a,l,h){const c=h.ariaTags,u=[],d=[],g=[],f=[];h.className&&(0,i.addClass)(t,h.className),h.readOnly?(u.push(h.readOnlyCellClassName),c&&f.push((0,s.A11Y_READONLY)())):c&&g.push((0,s.A11Y_READONLY)()[0]),!1===h.valid&&h.invalidCellClassName?(u.push(h.invalidCellClassName),c&&f.push((0,s.A11Y_INVALID)())):(d.push(h.invalidCellClassName),c&&g.push((0,s.A11Y_INVALID)()[0])),!1===h.wordWrap&&h.noWordWrapClassName&&u.push(h.noWordWrapClassName),!l&&h.placeholder&&u.push(h.placeholderCellClassName),h.textEllipsis&&u.push(r),(0,i.removeClass)(t,d),(0,i.addClass)(t,u),(0,i.removeAttribute)(t,g),(0,i.setAttribute)(t,f)}a.RENDERER_TYPE=n},12516:(e,t,o)=>{"use strict";t.__esModule=!0,t.getEngineSettingsOverrides=r,t.getEngineSettingsWithDefaultsAndOverrides=function(e){var t;const o=e[i.PLUGIN_KEY],s=a(null!=o&&null!==(t=o.engine)&&void 0!==t&&t.hyperformula?o.engine:{}),l=r(e);return{...n,...s,...l}},t.getEngineSettingsWithOverrides=function(e){var t;const o=e[i.PLUGIN_KEY],s=a(null!=o&&null!==(t=o.engine)&&void 0!==t&&t.hyperformula?o.engine:{}),n=r(e);return{...s,...n}},t.haveEngineSettingsChanged=function(e,t){return Object.keys(t).some(o=>void 0!==t[o]&&t[o]!==e[o])},o(34478),o(33098),o(81056);var i=o(41595);const s=t.DEFAULT_LICENSE_KEY="internal-use-in-handsontable",n=t.DEFAULT_SETTINGS={licenseKey:s,useArrayArithmetic:!0,useColumnIndex:!1,useStats:!1,evaluateNullToZero:!0,precisionEpsilon:1e-13,precisionRounding:14,smartRounding:!0,leapYear1900:!1,nullDate:{year:1899,month:12,day:30},nullYear:30,dateFormats:["DD/MM/YYYY","DD/MM/YY"],timeFormats:["hh:mm","hh:mm:ss.sss"],matchWholeCell:!0,useRegularExpressions:!1,useWildcards:!0,functionArgSeparator:",",thousandSeparator:"",decimalSeparator:".",language:"enGB"};function r(e){var t;return{maxColumns:e.maxColumns,maxRows:e.maxRows,language:null===(t=e[i.PLUGIN_KEY])||void 0===t||null===(t=t.language)||void 0===t?void 0:t.langCode}}function a(e){return Object.keys(e).reduce((t,o)=>("hyperformula"!==o&&(t[o]=e[o]),t),{})}},12793:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300));t.Cursor=class{constructor(e,t){(0,s.default)(this,"top",void 0),(0,s.default)(this,"topRelative",void 0),(0,s.default)(this,"left",void 0),(0,s.default)(this,"leftRelative",void 0),(0,s.default)(this,"scrollTop",void 0),(0,s.default)(this,"scrollLeft",void 0),(0,s.default)(this,"cellHeight",void 0),(0,s.default)(this,"cellWidth",void 0);const o=t.scrollY,i=t.scrollX;let n,r,a,l,h,c;this.rootWindow=t,this.type=this.getSourceType(e),"literal"===this.type?(n=parseInt(e.top,10),a=parseInt(e.left,10),h=e.height||0,c=e.width||0,r=n,l=a,n+=o,a+=i):"event"===this.type&&(n=parseInt(e.pageY,10),a=parseInt(e.pageX,10),h=e.target.clientHeight,c=e.target.clientWidth,r=n-o,l=a-i),this.top=n,this.topRelative=r,this.left=a,this.leftRelative=l,this.scrollTop=o,this.scrollLeft=i,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.document.documentElement.clientWidth;return this.leftRelative+this.cellWidth+e.offsetWidth<=t}fitsOnLeft(e){return this.leftRelative>=e.offsetWidth}}},12874:(e,t,o)=>{"use strict";var i=o(15105),s=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},n=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};e.exports=function(e,t){var o=i("Set");try{(new o)[e](s(0));try{return(new o)[e](s(-1)),!1}catch(i){if(!t)return!0;try{return(new o)[e](n(-1/0)),!1}catch(i){var r=new o;return r.add(1),r.add(2),t(r[e](n(1/0)))}}}catch(e){return!1}}},12890:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=r;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(23895);const n=t.CONDITION_NAME="none";function r(){return!0}(0,s.registerCondition)(n,r,{name:i.FILTERS_CONDITIONS_NONE,inputsCount:0,showOperators:!1})},13074:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(58712);t.valueSetter=i.valueSetter},13123:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300));class n{constructor(e){(0,s.default)(this,"data",void 0),(0,s.default)(this,"next",null),(0,s.default)(this,"prev",null),this.data=e}}t.NodeStructure=n;t.default=class{constructor(){(0,s.default)(this,"first",null),(0,s.default)(this,"last",null)}push(e){const t=new n(e);if(null===this.first)this.first=t,this.last=t;else{const e=this.last;this.last=t,t.prev=e,e.next=t}return t}unshift(e){const t=new n(e);if(null===this.first)this.first=t,this.last=t;else{const e=this.first;this.first=t,t.next=e,e.prev=t}}inorder(e){let t=this.first;for(;t;){const o=e(t);if(t===this.last||!0===o)break;t=t.next}}remove(e){if(null===this.first)return!1;let t,o,i=this.first;for(;i;){if(i.data===e)return t=i.next,o=i.prev,t&&(t.prev=o),o&&(o.next=t),i===this.first&&(this.first=t),i===this.last&&(this.last=o),!0;i=i.next}return!1}hasCycle(){let e=this.first,t=this.first;for(;;){if(null===e)return!1;if(e=e.next,null===e)return!1;if(e=e.next,t=t.next,e===t)return!0}}pop(){if(null===this.last)return null;const e=this.last;return this.last=this.last.prev,e}shift(){if(null===this.first)return null;const e=this.first;return this.first=this.first.next,e}recursiveReverse(){if(!this.first)return;!function e(t,o){o&&(e(o,o.next),o.next=t)}(this.first,this.first.next),this.first.next=null;const e=this.first;this.first=this.last,this.last=e}reverse(){if(!this.first||!this.first.next)return;let e,t=this.first.next,o=this.first;for(;t;)e=t.next,t.next=o,o.prev=t,o=t,t=e;this.first.next=null,this.last.prev=null,e=this.first,this.first=o,this.last=e}}},13280:(e,t,o)=>{"use strict";t.__esModule=!0,t.getOperationFunc=function(e){if(!i[e])throw Error(`Operation with id "${e}" does not exist.`);const t=i[e].func;return function(e,o){return t(e,o)}},t.getOperationName=function(e){return i[e].name},t.registerOperation=function(e,t,o){i[e]={name:t,func:o}},o(52490);const i=t.operations={}},13306:(e,t,o)=>{"use strict";t.__esModule=!0,t.operationResult=a,o(34478),o(66133);var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(13280);const n=t.OPERATION_ID="conjunction",r=t.SHORT_NAME_FOR_COMPONENT=i.FILTERS_LABELS_CONJUNCTION;function a(e,t){return e.every(e=>e.func(t))}(0,s.registerOperation)(n,r,a)},13330:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(44031);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.ManualColumnFreeze=i.ManualColumnFreeze},13390:(e,t,o)=>{"use strict";o(34478),o(31143),t.__esModule=!0;var i={registerAllShortcutContexts:!0};t.registerAllShortcutContexts=function(e){[n.shortcutsGridContext,s.shortcutsEditorContext].forEach(t=>t(e))};var s=o(48685),n=o(18928),r=o(6239);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===r[e]||(t[e]=r[e]))})},13421:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490),o(34478),o(31143);var i=o(13743),s=o(78966),n=o(77164),r=o(12099);function a(e,t,o){l(e,t),t.set(e,o)}function l(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(e,t){return e.get(u(e,t))}function c(e,t,o){return e.set(u(e,t),o),o}function u(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 d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakSet;function w(){const{view:e,stylesHandler:t}=h(d,this);if(e.isVerticallyScrollableByWindow())return!1;const o=e.getViewportHeight(),i=h(d,this).countRows(),s=t.getDefaultRowHeight();let n=0,r=!1;for(let e=0;e<i;e++){var a;if(!h(d,this).rowIndexMapper.isHidden(h(d,this).toPhysicalRow(e))&&(n+=(null!==(a=h(d,this).getRowHeight(e))&&void 0!==a?a:s)+(0===e?1:0),n>o)){r=!0;break}}return r}function C(e){var t;return null!==(t=h(d,this).getColWidth(e,"StretchColumns"))&&void 0!==t?t:i.DEFAULT_COLUMN_WIDTH}function v(e,t){return h(d,this).runHooks("beforeStretchingColumnWidth",e,t)}t.StretchCalculator=class{constructor(e){var t,o;l(t=this,o=m),o.add(t),a(this,d,void 0),a(this,g,void 0),a(this,f,new Map([["all",new n.StretchAllStrategy(u(m,this,v).bind(this))],["last",new r.StretchLastStrategy(u(m,this,v).bind(this))]])),a(this,p,"none"),c(d,this,e),c(g,this,h(d,this).columnIndexMapper.createAndRegisterIndexMap("stretchColumns","physicalIndexToValue"))}useStrategy(e){c(p,this,h(f,this).has(e)?e:"none")}refreshStretching(){"none"!==h(p,this)?h(d,this).batchExecution(()=>{h(g,this).clear();const e=h(f,this).get(h(p,this));let t=h(d,this).view.getViewportWidth();u(m,this,w).call(this)&&(t-=(0,s.getScrollbarWidth)(h(d,this).rootDocument)),e.prepare({viewportWidth:t});for(let t=0;t<h(d,this).countCols();t++)h(d,this).columnIndexMapper.isHidden(h(d,this).toPhysicalColumn(t))||e.setColumnBaseWidth(t,u(m,this,C).call(this,t));e.calculate(),e.getWidths().forEach(e=>{let[t,o]=e;h(g,this).setValueAtIndex(h(d,this).toPhysicalColumn(t),o)})},!0):h(g,this).clear()}getStretchedWidth(e){return h(g,this).getValueAtIndex(h(d,this).toPhysicalColumn(e))}}},13743:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=o(75204);t.ViewportColumnsCalculator=s.ViewportColumnsCalculator,t.ViewportRowsCalculator=s.ViewportRowsCalculator,t.DEFAULT_COLUMN_WIDTH=s.DEFAULT_COLUMN_WIDTH;var n=i(o(90116));t.CellCoords=n.default;var r=i(o(96253));t.CellRange=r.default;var a=i(o(47927));t.default=a.default,t.Core=a.default;var l=o(91342);t.Selection=l.Selection,t.HIGHLIGHT_ACTIVE_HEADER_TYPE=l.ACTIVE_HEADER_TYPE,t.HIGHLIGHT_AREA_TYPE=l.AREA_TYPE,t.HIGHLIGHT_FOCUS_TYPE=l.FOCUS_TYPE,t.HIGHLIGHT_FILL_TYPE=l.FILL_TYPE,t.HIGHLIGHT_HEADER_TYPE=l.HEADER_TYPE,t.HIGHLIGHT_ROW_TYPE=l.ROW_TYPE,t.HIGHLIGHT_COLUMN_TYPE=l.COLUMN_TYPE,t.HIGHLIGHT_CUSTOM_SELECTION_TYPE=l.CUSTOM_SELECTION_TYPE;var h=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(97095));t.Renderer=h;var c=o(367);t.OrderView=c.OrderView,t.SharedOrderView=c.SharedOrderView;var u=o(70806);t.NodesPool=u.NodesPool;var d=o(59468);t.getListenersCounter=d.getListenersCounter},13839:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(67347),r=i(o(59468)),a=o(40929),l=o(78966),h=o(58604),c=o(36062),u=o(7886),d=o(34562),g=o(72609);const f="ht_editor_hidden",p="textEditor",m=t.EDITOR_TYPE="text";class w extends n.BaseEditor{static get EDITOR_TYPE(){return m}constructor(e){super(e),(0,s.default)(this,"eventManager",new r.default(this)),(0,s.default)(this,"autoResize",(0,c.createInputElementResizer)(this.hot.rootDocument)),(0,s.default)(this,"TEXTAREA",void 0),(0,s.default)(this,"textareaStyle",void 0),(0,s.default)(this,"TEXTAREA_PARENT",void 0),(0,s.default)(this,"textareaParentStyle",void 0),(0,s.default)(this,"layerClass",void 0),this.eventManager=new r.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,l.isInternalElement)(this.hot.rootDocument.activeElement,this.hot.rootElement)&&this.hot.listen(),this.hideEditableElement(),this.unregisterShortcuts()}prepare(e,t,o,i,s,r){const a=this.state;if(super.prepare(e,t,o,i,s,r),!r.readOnly){this.refreshDimensions(!0);const{allowInvalid:e}=r;e&&!this.isOpened()&&(this.TEXTAREA.value=""),a===n.EDITOR_STATE.FINISHED||this.isOpened()||this.hideEditableElement()}}beginEditing(e,t){this.state===n.EDITOR_STATE.VIRGIN&&(this.TEXTAREA.value="",super.beginEditing(e,t))}focus(){this.TEXTAREA.select(),(0,l.setCaretPosition)(this.TEXTAREA,this.TEXTAREA.value.length)}createElements(){const{rootDocument:e}=this.hot;this.TEXTAREA=e.createElement("TEXTAREA"),(0,l.setAttribute)(this.TEXTAREA,[["data-hot-input",""],(0,g.A11Y_TABINDEX)(-1)]),(0,l.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,l.addClass)(this.TEXTAREA_PARENT,"handsontableInputHolder"),(0,l.hasClass)(this.TEXTAREA_PARENT,this.layerClass)&&(0,l.removeClass)(this.TEXTAREA_PARENT,this.layerClass),(0,l.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,a.isEdge)()&&(this.textareaStyle.textIndent="-99999px"),this.textareaStyle.overflowY="visible",this.textareaParentStyle.opacity="0",this.textareaParentStyle.height="1px",(0,l.removeClass)(this.TEXTAREA_PARENT,this.layerClass),(0,l.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 i=e[o];if((0,l.hasClass)(i,"handsontableEditor"))return t=!0,!1}),(0,l.hasClass)(this.TEXTAREA_PARENT,f)&&(0,l.removeClass)(this.TEXTAREA_PARENT,f),t?(this.layerClass="ht_editor_visible",(0,l.addClass)(this.TEXTAREA_PARENT,this.layerClass)):(this.layerClass=this.getEditedCellsLayerClass(),(0,l.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!==n.EDITOR_STATE.EDITING&&!e)return;if(this.TD=this.getEditedCell(),!this.TD)return void(e||this.close());const{top:t,start:o,width:i,maxWidth:s,height:r,maxHeight:a}=this.getEditedCellRect();this.textareaParentStyle.top=`${t}px`,this.textareaParentStyle[this.hot.isRtl()?"right":"left"]=`${o}px`,this.showEditableElement();const l=this.hot.rootWindow.getComputedStyle(this.TD);this.TEXTAREA.style.fontSize=l.fontSize,this.TEXTAREA.style.fontFamily=l.fontFamily,this.TEXTAREA.style.backgroundColor=this.TD.style.backgroundColor,this.autoResize.init(this.TEXTAREA,{minWidth:Math.min(i,s),minHeight:Math.min(r,a),maxWidth:s,maxHeight:a},!0)}bindEvents(){(0,a.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===n.EDITOR_STATE.EDITING&&this.focus()}),this.addHook("afterRowResize",()=>{this.refreshDimensions(),this.state===n.EDITOR_STATE.EDITING&&this.focus()})}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},13861:(e,t,o)=>{"use strict";var i=o(14815),s=TypeError;e.exports=function(e,t){if(i(t,e))return e;throw new s("Incorrect invocation")}},14015:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(4138),r=o(2744);class a{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,s.default)(this,"dataProvider",void 0),(0,s.default)(this,"options",void 0),this.dataProvider=e,this.options=this._mergeOptions(t),this.dataProvider.setOptions(this.options)}_mergeOptions(e){let t=(0,n.clone)(this.constructor.DEFAULT_OPTIONS);const o=new Date;return t=(0,n.extend)((0,n.clone)(a.DEFAULT_OPTIONS),t),t=(0,n.extend)(t,e),t.filename=(0,r.substitute)(t.filename,{YYYY:o.getFullYear(),MM:`${o.getMonth()+1}`.padStart(2,"0"),DD:`${o.getDate()}`.padStart(2,"0")}),t}}t.default=a},14207:(e,t,o)=>{"use strict";t.__esModule=!0,t.getClassesToAdd=function(e,t,o){const s=[];if(!1===o)return s;e.isColumnSorted(t)&&e.getNumberOfSortedColumns()>1&&s.push(`${i}-${e.getIndexOfColumnInSortQueue(t)+1}`);return s},t.getClassesToRemove=function(e){const t=e.className.split(" "),o=new RegExp(`^${i}-[0-9]{1,2}$`);return t.filter(e=>o.test(e))},o(99356),o(34478),o(29810);const i="sort"},14245:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300));o(52490),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(29810),o(940),o(81056);var n=o(94576),r=o(17738),a=o(22342),l=i(o(18805)),h=o(4138),c=o(7886),u=o(15126);new Set;class d{constructor(){(0,s.default)(this,"indexesSequence",new r.IndexesSequence),(0,s.default)(this,"trimmingMapsCollection",new a.AggregatedCollection(e=>e.some(e=>!0===e),!1)),(0,s.default)(this,"hidingMapsCollection",new a.AggregatedCollection(e=>e.some(e=>!0===e),!1)),(0,s.default)(this,"variousMapsCollection",new a.MapCollection),(0,s.default)(this,"hidingChangesObservable",new u.ChangesObservable({initialIndexValue:!1})),(0,s.default)(this,"notTrimmedIndexesCache",[]),(0,s.default)(this,"notHiddenIndexesCache",[]),(0,s.default)(this,"isBatched",!1),(0,s.default)(this,"indexesSequenceChanged",!1),(0,s.default)(this,"indexesChangeSource",void 0),(0,s.default)(this,"trimmedIndexesChanged",!1),(0,s.default)(this,"hiddenIndexesChanged",!1),(0,s.default)(this,"renderablePhysicalIndexesCache",[]),(0,s.default)(this,"fromPhysicalToVisualIndexesCache",new Map),(0,s.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,r.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 r.TrimmingMap?this.trimmingMapsCollection.register(e,t):t instanceof r.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 i=Array.from(this.fromVisualToRenderableIndexesCache.keys());let s=-1;return s=t>0?i.findIndex(t=>t>e):i.reverse().findIndex(t=>t<e),-1===s?o?this.getNearestNotHiddenIndex(e,-t,!1):null:i[s]}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,n.arrayMap)(e,e=>this.getPhysicalFromVisualIndex(e)),i=this.getNotTrimmedIndexesLength(),s=e.length,a=(0,r.getListWithRemovedItems)(this.getIndexesSequence(),o),l=a.filter(e=>!1===this.isTrimmed(e));let h=a.indexOf(l[l.length-1])+1;if(t+s<i){const e=l[t];h=a.indexOf(e)}this.indexesChangeSource="move",this.setIndexesSequence((0,r.getListWithInsertedItems)(a,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 i=this.getNotTrimmedIndexes()[e],s=(0,c.isDefined)(i)?i:this.getNumberOfIndexes(),r=this.getIndexesSequence().includes(i)?this.getIndexesSequence().indexOf(i):this.getNumberOfIndexes(),a=(0,n.arrayMap)(new Array(t).fill(s),(e,t)=>e+t);this.suspendOperations(),this.indexesChangeSource="insert",this.indexesSequence.insert(r,a),this.indexesChangeSource=void 0;const l="end"===o?a.map(e=>e+1):a;this.trimmingMapsCollection.insertToEvery(r,l),this.hidingMapsCollection.insertToEvery(r,l),this.variousMapsCollection.insertToEvery(r,l),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,l.default)},14291:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356);var s=i(o(24300)),n=o(26808),r=o(94576),a=o(58604),l=o(7120),h=o(78966),c=o(47802),u=o(13390),d=o(72609);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",S=w,E=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 n.BasePlugin{constructor(){var e,t;super(...arguments),g(e=this,t=b),t.add(e),(0,s.default)(this,"nestedHeadersPlugin",null),(0,s.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,l.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),i=0;i<t;i++)o[i]=arguments[i];return m(b,e,O).call(e,...o)}),this.addHook("afterGetColHeader",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];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.getSelectedRangeActive().highlight,{collapsible:i,isCollapsed:s,columnIndex:n}=null!==(e=this.headerStateManager.getHeaderTreeNodeData(t,o))&&void 0!==e?e:{};if(i)return s?this.expandSection({row:t,col:n}):this.collapseSection({row:t,col:n}),!1},runOnlyIf:()=>{var e,t;return(null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.isSingle())&&(null===(t=this.hot.getSelectedRangeActive())||void 0===t?void 0:t.highlight.isHeader())},group:S,relativeToGroup:u.EDITOR_EDIT_GROUP,position:"before"})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(S)}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,i=this.hot.view._wt.wtOverlays.topInlineStartCornerOverlay?this.hot.view._wt.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.THEAD:null,s=function(e){e&&e.parentNode.removeChild(e)};(0,a.rangeEach)(0,e-1,e=>{const n=t.childNodes[e],r=o.childNodes[e],l=i?i.childNodes[e]:null;(0,a.rangeEach)(0,n.childNodes.length-1,e=>{let t=n.childNodes[e].querySelector(`.${y}`);s(t),r&&r.childNodes[e]&&(t=r.childNodes[e].querySelector(`.${y}`),s(t)),i&&l&&l.childNodes[e]&&(t=l.childNodes[e].querySelector(`.${y}`),s(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:i,headerLevel:s,columnIndex:n,isCollapsed:r}=t;if(!0===o&&i>1&&(r&&"expand"===e||!r&&"collapse"===e))return{row:this.headerStateManager.levelToRowCoords(s),col:n}});this.toggleCollapsibleSection(t,e)}collapseAll(){this.toggleAllCollapsibleSections("collapse")}expandAll(){this.toggleAllCollapsibleSections("expand")}toggleCollapsibleSection(e,t){if(!E.has(t))throw new Error(`Unsupported action is passed (${t}).`);if(!Array.isArray(e))return;const o=(0,r.arrayFilter)(e,e=>{let{row:t}=e;return t<0});let i=o.length>0;(0,r.arrayEach)(o,e=>{var o;let{row:s,col:n}=e;const{collapsible:r,isCollapsed:a}=null!==(o=this.headerStateManager.getHeaderSettings(s,n))&&void 0!==o?o:{};if(!r||a&&"collapse"===t||!a&&"expand"===t)return i=!1,!1});const s=[],n=[];i&&(0,r.arrayEach)(o,e=>{let{row:o,col:i}=e;const{colspanCompensation:r,affectedColumns:a,rollbackModification:l}=this.headerStateManager.triggerNodeModification(t,o,i);r>0&&(n.push(...a),s.push(l))});const a=this.getCollapsedColumns();let l=[];"collapse"===t?l=(0,r.arrayUnique)([...a,...n]):"expand"===t&&(l=(0,r.arrayFilter)(a,e=>!n.includes(e)));const h=E.get(t);if(!1===this.hot.runHooks(h.beforeHook,a,l,i))return void(0,r.arrayEach)(s,e=>{e()});this.hot.batchExecution(()=>{(0,r.arrayEach)(n,e=>{f(R,this).setValueAtIndex(this.hot.toPhysicalColumn(e),h.hideColumn)})},!0);const c=this.getCollapsedColumns().length!==a.length,u=this.hot.getSelectedRangeActive();if("collapse"===t&&c&&u){const{row:e,col:t}=u.highlight;if((this.hot.rowIndexMapper.isHidden(e)||this.hot.columnIndexMapper.isHidden(t))&&n.includes(t)){const o=e>=0?this.hot.rowIndexMapper.getNearestNotHiddenIndex(e,1,!0):e,i=t>=0?this.hot.columnIndexMapper.getNearestNotHiddenIndex(t,1,!0):t;null!==o&&null!==i&&this.hot.selectCell(o,i)}}this.hot.runHooks(h.afterHook,a,l,i,c),this.hot.view.adjustElementsSize(),this.hot.render()}getCollapsedColumns(){return f(R,this).getHiddenIndexes()}destroy(){p(R,this,null),super.destroy()}}function T(e,t,o){var i;const{collapsible:s,origColspan:n,isCollapsed:r}=null!==(i=this.headerStateManager.getHeaderSettings(o,e))&&void 0!==i?i:{},a=s&&n>1&&e>=this.hot.getSettings().fixedColumnsStart,l=this.hot.getSettings().ariaTags;let c=t.querySelector(`.${y}`);var u;((0,h.removeAttribute)(t,[(0,d.A11Y_EXPANDED)("")[0]]),a)?(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"]),r?((0,h.addClass)(c,"collapsed"),(0,h.fastInnerText)(c,"+"),l&&(0,h.setAttribute)(t,...(0,d.A11Y_EXPANDED)(!1))):((0,h.addClass)(c,"expanded"),(0,h.fastInnerText)(c,"-"),l&&(0,h.setAttribute)(t,...(0,d.A11Y_EXPANDED)(!0))),l&&(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=_},14443:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490),o(34478),o(31143);var i=o(7120);function s(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 r(e,t){return e.get(l(e,t))}function a(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 h=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,w=new WeakSet;function C(){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 v(){this.isClassicTheme()||a(u,this,getComputedStyle(r(c,this)));const e=l(w,this,y).call(this,["box-sizing","border-bottom-width"]);r(p,this).td={...r(p,this).td,"box-sizing":e["box-sizing"],"border-bottom-width":e["border-bottom-width"]}}function y(e){const t=r(d,this),o=r(c,this),i=t.createElement("table"),s=t.createElement("tbody"),n=t.createElement("tr"),a=t.createElement("tr"),l=t.createElement("td");a.appendChild(l),s.appendChild(n),s.appendChild(a),i.appendChild(s),o.appendChild(i);const h=getComputedStyle(l),u={};return e.forEach(e=>{u[e]=h.getPropertyValue(e)}),o.removeChild(i),u}function S(e){const t=Math.ceil(parseFloat(l(w,this,E).call(this,e)));return Number.isNaN(t)?null:t}function E(e){const t=r(u,this).getPropertyValue(e);return""===t?null:t}function R(){a(p,this,{}),a(f,this,{}),a(g,this,!0)}t.StylesHandler=class{constructor(e){let{rootElement:t,rootDocument:o,onThemeChange:i=()=>{}}=e;var r,l;n(r=this,l=w),l.add(r),s(this,h,void 0),s(this,c,void 0),s(this,u,void 0),s(this,d,void 0),s(this,g,!0),s(this,f,{}),s(this,p,{}),s(this,m,void 0),a(c,this,t),a(d,this,o),a(m,this,i)}isClassicTheme(){return r(g,this)}getCSSVariableValue(e){var t;if(r(g,this))return null;if(r(f,this)[`--ht-${e}`])return r(f,this)[`--ht-${e}`];const o=null!==(t=l(w,this,S).call(this,`--ht-${e}`))&&void 0!==t?t:l(w,this,E).call(this,`--ht-${e}`);return null!==o?(r(f,this)[`--ht-${e}`]=o,o):void 0}getStyleForTD(e){var t;return null===(t=r(p,this))||void 0===t?void 0:t.td[e]}getDefaultRowHeight(){if(r(g,this))return 23;const e=l(w,this,C).call(this);return e||23}areCellsBorderBox(){return"border-box"===this.getStyleForTD("box-sizing")}useTheme(e){if(!e)return a(h,this,void 0),a(g,this,!0),r(m,this).call(this,r(h,this)),void l(w,this,v).call(this);if(e&&e!==r(h,this)){if(!/ht-theme-.*/.test(e))return(0,i.warn)(`Invalid theme name: ${e}. Please provide a valid theme name.`),a(h,this,void 0),a(g,this,!1),r(m,this).call(this,r(h,this)),void l(w,this,v).call(this);r(h,this)&&l(w,this,R).call(this),a(h,this,e),a(g,this,!1),r(m,this).call(this,r(h,this)),l(w,this,v).call(this)}}getThemeName(){return r(h,this)}}},14483:(e,t,o)=>{"use strict";var i=o(94266);e.exports=function(e,t){var o=i.Iterator,s=o&&o.prototype,n=s&&s[e],r=!1;if(n)try{n.call({next:function(){return{done:!0}},return:function(){r=!0}},-1)}catch(e){e instanceof t||(r=!1)}if(!r)return n}},14680:(e,t)=>{"use strict";t.__esModule=!0,t.createDefaultHeaderSettings=function(){let{label:e="",colspan:t=1,origColspan:o=1,collapsible:i=!1,crossHiddenColumns:s=[],isCollapsed:n=!1,isHidden:r=!1,isRoot:a=!1,isPlaceholder:l=!1,headerClassNames:h=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{label:e,colspan:t,origColspan:o,collapsible:i,isCollapsed:n,crossHiddenColumns:s,isHidden:r,isRoot:a,isPlaceholder:l,headerClassNames:h}},t.createPlaceholderHeaderSettings=function(){return{label:"",isPlaceholder:!0}}},14815:(e,t,o)=>{"use strict";var i=o(19098);e.exports=i({}.isPrototypeOf)},14843:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(99356),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(29810);var s=i(o(24300)),n=o(28520),r=o(58604);class a{constructor(e){(0,s.default)(this,"valueFactory",void 0),(0,s.default)(this,"data",[]),(0,s.default)(this,"index",[]),(0,s.default)(this,"holes",new Set),this.valueFactory=e}obtain(e){(0,n.assert)(()=>(0,r.isUnsignedNumber)(e),"Expecting an unsigned number.");const t=this._getStorageIndexByKey(e);let o;if(t>=0)o=this.data[t],void 0===o&&(o=this.valueFactory(e),this.data[t]=o);else if(o=this.valueFactory(e),this.holes.size>0){const t=this.holes.values().next().value;this.holes.delete(t),this.data[t]=o,this.index[e]=t}else this.data.push(o),this.index[e]=this.data.length-1;return o}insert(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;(0,n.assert)(()=>(0,r.isUnsignedNumber)(e)||(0,n.isNullish)(e),"Expecting an unsigned number or null/undefined argument.");const o=[],i=this.data.length;for(let e=0;e<t;e++)o.push(i+e),this.data.push(void 0);const s=(0,n.isNullish)(e)?this.index.length:e;this.index=[...this.index.slice(0,s),...o,...this.index.slice(s)]}remove(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;(0,n.assert)(()=>(0,r.isUnsignedNumber)(e)||(0,n.isNullish)(e),"Expecting an unsigned number or null/undefined argument.");const o=this.index.splice((0,n.isNullish)(e)?this.index.length-t:e,t);for(let e=0;e<o.length;e++){const t=o[e];"number"==typeof t&&this.holes.add(t)}}size(){return this.data.length-this.holes.size}values(){return this.data.filter((e,t)=>void 0!==e&&!this.holes.has(t))[Symbol.iterator]()}entries(){const e=[];for(let t=0;t<this.data.length;t++){const o=this._getKeyByStorageIndex(t);-1!==o&&void 0!==this.data[t]&&e.push([o,this.data[t]])}let t=0;return{next:()=>{if(t<e.length){const o=e[t];return t+=1,{value:o,done:!1}}return{done:!0}}}}clear(){this.data=[],this.index=[],this.holes.clear()}_getStorageIndexByKey(e){return this.index.length>e?this.index[e]:-1}_getKeyByStorageIndex(e){return this.index.indexOf(e)}[Symbol.iterator](){return this.entries()}}t.default=a},14950:(e,t,o)=>{"use strict";var i=o(72820),s=o(53001),n=o(39888);i({target:"Set",proto:!0,real:!0,forced:!o(12874)("intersection",function(e){return 2===e.size&&e.has(1)&&e.has(2)})||s(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))})},{intersection:n})},15105:(e,t,o)=>{"use strict";var i=o(94266),s=o(44827);e.exports=function(e,t){return arguments.length<2?(o=i[e],s(o)?o:void 0):i[e]&&i[e][t];var o}},15126:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(31143);var i=o(6745),s=o(34650);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 r(e,t){return e.get(l(e,t))}function a(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 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]:{};n(this,h,new Set),n(this,c,[]),n(this,u,[]),n(this,d,!1),n(this,g,!1),a(g,this,null!=e&&e)}createObserver(){const e=new i.ChangesObserver;return r(h,this).add(e),e.addLocalHook("unsubscribe",()=>{r(h,this).delete(e)}),e._writeInitialChanges((0,s.arrayDiff)(r(c,this),r(u,this))),e}emit(e){let t=r(u,this);r(d,this)&&r(c,this).length===e.length||(0===e.length?e=new Array(t.length).fill(r(g,this)):a(c,this,new Array(e.length).fill(r(g,this))),r(d,this)||(a(d,this,!0),t=r(c,this)));const o=(0,s.arrayDiff)(t,e);r(h,this).forEach(e=>e._write(o)),a(u,this,e)}}},15176:(e,t,o)=>{"use strict";var i=o(44827);e.exports=function(e){return"object"==typeof e?null!==e:i(e)}},15503:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(99356),o(34478),o(29810),o(31143),o(940),o(81056);var s=i(o(24300));class n{constructor(e){(0,s.default)(this,"ranges",[]),(0,s.default)(this,"createCellRange",void 0),this.createCellRange=e}isEmpty(){return 0===this.size()}set(e){return this.clear(),this.ranges.push(this.createCellRange(e)),this}add(e){return this.ranges.push(this.createCellRange(e)),this}push(e){return this.ranges.push(e),this}pop(){return this.ranges.pop()}current(){return this.peekByIndex(this.size()-1)}previous(){return this.peekByIndex(this.size()-2)}includes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>!0;return this.ranges.some((o,i)=>o.includes(e)&&t(o,i))}findAll(e){const t=[];return this.ranges.forEach((o,i)=>{o.isEqual(e)&&t.push({range:o,layer:i})}),t}remove(e){return this.ranges=this.ranges.filter(t=>!e.some(e=>e.isEqual(t))),this}removeLayers(e){return this.ranges=this.ranges.filter((t,o)=>!e.includes(o)),this}clear(){return this.ranges.length=0,this}size(){return this.ranges.length}clone(){const e=new n(this.createCellRange);return e.ranges=this.ranges.map(e=>e.clone()),e}map(e){return this.ranges=this.ranges.map((t,o)=>e(t,o)),this}peekByIndex(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t>=0&&t<this.size()&&(e=this.ranges[t]),e}[Symbol.iterator](){return this.ranges[Symbol.iterator]()}}t.default=n},15686:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(32813),s=o(54657);const n=t.CELL_TYPE="text";t.TextCellType={CELL_TYPE:n,editor:i.TextEditor,renderer:s.textRenderer}},15709:(e,t,o)=>{"use strict";t.__esModule=!0,t.focusScrollStrategy=function(e){return t=>{e.scrollViewportTo(t.toObject(),()=>{const t=e.getSelectedRangeActive();if(!t)return;const{row:o,col:s}=t.highlight;(0,i.scrollWindowToCell)(e.getCell(o,s,!0))})}};var i=o(31970)},15981:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(940);var s=o(94576),n=i(o(90625)),r=i(o(2907)),a=o(39572),l=o(495),h=o(3458);function c(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 u(e,t,o){return e.set(g(e,t),o),o}function d(e,t){return e.get(g(e,t))}function g(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 f=new WeakMap,p=new WeakMap,m=new WeakMap;t.default=class{constructor(){c(this,f,new n.default),c(this,p,new r.default(d(f,this))),c(this,m,[[]])}setState(e){d(f,this).setData(e);let t=!1;try{d(p,this).buildTree()}catch(e){d(p,this).clear(),d(f,this).clear(),t=!0}return u(m,this,(0,l.generateMatrix)(d(p,this).getRoots())),t}setColumnsLimit(e){d(f,this).setColumnsLimit(e)}mergeStateWith(e){const t=(0,s.arrayMap)(e,e=>{let{row:t,...o}=e;return{row:t<0?this.rowCoordsToLevel(t):t,...o}});d(f,this).mergeWith(t),d(p,this).buildTree(),u(m,this,(0,l.generateMatrix)(d(p,this).getRoots()))}mapState(e){d(f,this).map(e),d(p,this).buildTree(),u(m,this,(0,l.generateMatrix)(d(p,this).getRoots()))}mapNodes(e){return(0,s.arrayReduce)(d(p,this).getRoots(),(t,o)=>(o.walkDown(o=>{const i=e(o.data);void 0!==i&&t.push(i)}),t),[])}triggerNodeModification(e,t,o){t<0&&(t=this.rowCoordsToLevel(t));const i=d(p,this).getNode(t,o);let s;return i&&(s=(0,a.triggerNodeModification)(e,i,o),u(m,this,(0,l.generateMatrix)(d(p,this).getRoots()))),s}triggerColumnModification(e,t){return this.triggerNodeModification(e,-1,t)}rowCoordsToLevel(e){if(e>=0)return null;const t=e+Math.max(this.getLayersCount(),1);return t<0?null:t}levelToRowCoords(e){if(e<0)return null;const t=e-Math.max(this.getLayersCount(),1);return t>=0?null:t}getHeaderSettings(e,t){var o,i;return e<0&&(e=this.rowCoordsToLevel(e)),null===e||e>=this.getLayersCount()?null:null!==(o=null===(i=d(m,this)[e])||void 0===i?void 0:i[t])&&void 0!==o?o:null}getHeaderTreeNodeData(e,t){const o=this.getHeaderTreeNode(e,t);return o?{...o.data}:null}getHeaderTreeNode(e,t){if(e<0&&(e=this.rowCoordsToLevel(e)),null===e||e>=this.getLayersCount())return null;const o=d(p,this).getNode(e,t);return o||null}findTopMostEntireHeaderLevel(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const o=t-e+1;let i=!1,s=null;for(let n=e;n<=t;n++){const r=d(p,this).getRootByColumn(n);if(!r)break;i=!0,r.walkDown(i=>{const{columnIndex:n,headerLevel:r,origColspan:a,isHidden:l}=i.data;l||a<=o&&n>=e&&n+a-1<=t&&(null===s||r<s)&&(s=r)},h.TRAVERSAL_DF_PRE)}return i&&null===s?-1:this.levelToRowCoords(null!=s?s:0)}findLeftMostColumnIndex(e,t){var o;const{isRoot:i}=null!==(o=this.getHeaderSettings(e,t))&&void 0!==o?o:{isRoot:!0};if(i)return t;let s=t-1;for(;s>=0;){var n;const{isRoot:t}=null!==(n=this.getHeaderSettings(e,s))&&void 0!==n?n:{isRoot:!0};if(t)break;s-=1}return s}findRightMostColumnIndex(e,t){var o;const{isRoot:i,origColspan:s}=null!==(o=this.getHeaderSettings(e,t))&&void 0!==o?o:{isRoot:!0,origColspan:1};if(i)return t+s-1;let n=t+1;for(;n<this.getColumnsCount();){var r;const{isRoot:t}=null!==(r=this.getHeaderSettings(e,n))&&void 0!==r?r:{isRoot:!0};if(t)break;n+=1}return n-1}getLayersCount(){return d(f,this).getLayersCount()}getColumnsCount(){return d(f,this).getColumnsCount()}clear(){u(m,this,[]),d(f,this).clear(),d(p,this).clear()}}},15999:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){const t=[];return{key:"hidden_rows_show",name(){const e=t.length>1?1:0;return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_SHOW_ROW,e)},callback(){var o,i;if(0===t.length)return;let s=t[0],n=t[t.length-1];s=null!==(o=this.rowIndexMapper.getNearestNotHiddenIndex(s-1,-1))&&void 0!==o?o:0,n=null!==(i=this.rowIndexMapper.getNearestNotHiddenIndex(n+1,1))&&void 0!==i?i:this.countRows()-1,e.showRows(t),this.view.adjustElementsSize(),this.render();n-s+1===this.countRows()||this.selectRows(s,n)},disabled:!1,hidden(){const o=(0,i.arrayMap)(e.getHiddenRows(),e=>this.toPhysicalRow(e));if(!this.selection.isSelectedByRowHeader()&&!this.selection.isSelectedByCorner()||o.length<1)return!0;t.length=0;const s=this.getSelectedRangeActive(),n=s.getTopStartCorner().row,r=s.getBottomEndCorner().row,a=this.rowIndexMapper,l=a.getRenderableFromVisualIndex(n),h=a.getRenderableFromVisualIndex(r),c=a.getNotTrimmedIndexes(),u=[];if(n!==r){if(r-n+1>h-l+1){const e=c.slice(n,r+1);u.push(...e.filter(e=>o.includes(e)))}}else if(0===l&&l<n)u.push(...c.slice(0,n));else if(null===l)u.push(...c.slice(0,this.countRows()));else{const e=this.countRows()-1;h===a.getRenderableFromVisualIndex(a.getNearestNotHiddenIndex(e,-1))&&e>r&&u.push(...c.slice(r+1))}return(0,i.arrayEach)(u,e=>{t.push(this.toVisualRow(e))}),0===t.length}}},o(99356),o(34478),o(29810);var i=o(94576),s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481))},16610:(e,t,o)=>{"use strict";var i,s=o(94266),n=o(69019),r=o(44827),a=o(86121),l=o(92853),h=o(56274),c=o(77618),u=s.Function,d=/MSIE .\./.test(l)||"BUN"===a&&((i=s.Bun.version.split(".")).length<3||"0"===i[0]&&(i[1]<3||"3"===i[1]&&"0"===i[2]));e.exports=function(e,t){var o=t?2:1;return d?function(i,s){var a=c(arguments.length,1)>o,l=r(i)?i:u(i),d=a?h(arguments,o):[],g=a?function(){n(l,this,d)}:l;return t?e(g,s):e(g)}:e}},16751:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(34478),o(940);var s=o(94576),n=o(7886),r=i(o(14015));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)}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")}const h=String.fromCharCode(13),c=String.fromCharCode(34),u=String.fromCharCode(10),d=String.fromCharCode(61),g=String.fromCharCode(43),f=String.fromCharCode(45),p=String.fromCharCode(64),m=String.fromCharCode(9);var w=new WeakSet;class C extends r.default{constructor(){super(...arguments),a(this,w)}static get DEFAULT_OPTIONS(){return{mimeType:"text/csv",fileExtension:"csv",bom:!0,columnDelimiter:",",rowDelimiter:"\r\n",sanitizeValues:!1}}export(){const e=this.options,t=this.dataProvider.getData();let o=this.dataProvider.getColumnHeaders();const i=o.length>0,n=this.dataProvider.getRowHeaders(),r=n.length>0;let a=e.bom?String.fromCharCode(65279):"";return i&&(o=(0,s.arrayMap)(o,t=>this._escapeCell(t,{force:!0,sanitizeValue:e.sanitizeValues})),r&&(a+=e.columnDelimiter),a+=o.join(e.columnDelimiter),a+=e.rowDelimiter),(0,s.arrayEach)(t,(t,o)=>{o>0&&(a+=e.rowDelimiter),r&&(a+=this._escapeCell(n[o],{sanitizeValue:e.sanitizeValues}),a+=e.columnDelimiter);const i=t.map(t=>this._escapeCell(t,{sanitizeValue:e.sanitizeValues})).join(e.columnDelimiter);a+=i}),a}_escapeCell(e){let{force:t=!1,sanitizeValue:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(0,n.stringify)(e);return""===i||(o&&(t=!0),o instanceof RegExp?i=l(w,this,y).call(this,i,o):"function"==typeof o?i=o(i):o&&(i=l(w,this,v).call(this,i)),(t||i.indexOf(h)>=0||i.indexOf(c)>=0||i.indexOf(u)>=0||i.indexOf(this.options.columnDelimiter)>=0)&&(i=i.replace(new RegExp('"',"g"),'""'),i=`"${i}"`)),i}}function v(e){return e.startsWith(d)||e.startsWith(g)||e.startsWith(f)||e.startsWith(p)||e.startsWith(m)||e.startsWith(h)?`'${e}`:e}function y(e,t){return t.test(e)?`'${e}`:e}t.default=C},16937:(e,t,o)=>{"use strict";var i=o(19098),s=o(53001),n=o(60606),r=Object,a=i("".split);e.exports=s(function(){return!r("z").propertyIsEnumerable(0)})?function(e){return"String"===n(e)?a(e,""):r(e)}:r},17128:(e,t,o)=>{"use strict";t.__esModule=!0,t.rowHeaderScrollStrategy=function(e){return t=>{const o=(0,i.createScrollTargetCalculator)(e).getComputedRowTarget(t);e.scrollViewportTo({row:o},()=>{const t=!!e.getSettings().rowHeaders;(0,i.scrollWindowToCell)(e.getCell(o,t?-1:0,!0))})}};var i=o(31970)},17199:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostInlineEnd",callback(e){const{selection:t,columnIndexMapper:o}=e,{highlight:i,from:s,to:n}=e.getSelectedRangeActive();if(!t.isSelectedByRowHeader()&&!t.isSelectedByCorner()&&i.isCell()){const r=o.getNearestNotHiddenIndex(e.countCols()-1,-1),a=s.clone();a.col=i.col,t.markSource("keyboard"),t.setRangeStart(a,void 0,!1,i.clone()),t.setRangeEnd(e._createCellCoords(n.row,r)),t.markEndSource()}}}},17283:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300));t.RenderedAllRowsCalculationType=class{constructor(){(0,s.default)(this,"count",0),(0,s.default)(this,"startRow",0),(0,s.default)(this,"endRow",0),(0,s.default)(this,"startPosition",0),(0,s.default)(this,"isVisibleInTrimmingContainer",!0)}initialize(e){let{totalRows:t}=e;this.count=t,this.endRow=this.count-1}process(){}finalize(){}}},17286:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(77537);t.EDITOR_TYPE=i.EDITOR_TYPE,t.DateEditor=i.DateEditor},17313:(e,t,o)=>{"use strict";t.__esModule=!0,o(34478),o(940);var i=o(78966),s=o(4138),n=o(75204);t.default=class{constructor(e,t,o,i,s){this.dataAccessObject=e,this.wot=e.wot,this.instance=this.wot,this.domBindings=t,this.wtSettings=o,this.wtTable=s,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 n.RenderedAllRowsCalculationType:new n.RenderedRowsCalculationType],["fullyVisible",()=>new n.FullyVisibleRowsCalculationType],["partiallyVisible",()=>new n.PartiallyVisibleRowsCalculationType]]),this.columnsCalculatorTypes=new Map([["rendered",()=>this.wtSettings.getSetting("renderAllColumns")?new n.RenderedAllColumnsCalculationType:new n.RenderedColumnsCalculationType],["fullyVisible",()=>new n.FullyVisibleColumnsCalculationType],["partiallyVisible",()=>new n.PartiallyVisibleColumnsCalculationType]]),this.eventManager=i,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,i.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 i;if(o===t){const t=this.wtSettings.getSetting("totalColumns");i=this.wtTable.holder.offsetWidth,this.getRowHeaderWidth()+this.sumColumnWidths(0,t)>i&&(i=e.documentElement.clientWidth)}else i=o.clientWidth;return i}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,i=t.offsetHeight;return o<i||i>this.getWorkspaceHeight()}hasHorizontalScroll(){if(this.isVerticallyScrollableByWindow()){const e=this.domBindings.rootDocument.documentElement;return e.scrollWidth>e.clientWidth}const{hider:e}=this.wtTable,t=e.offsetWidth,o=this.hasVerticalScroll()?(0,i.getScrollbarWidth)():0;return t>this.getWorkspaceWidth()-o}isVerticallyScrollableByWindow(){return this.dataAccessObject.topOverlayTrimmingContainer===this.domBindings.rootWindow}isHorizontallyScrollableByWindow(){return this.dataAccessObject.inlineStartOverlayTrimmingContainer===this.domBindings.rootWindow}sumColumnWidths(e,t){let o=0,i=e;for(;i<t;)o+=this.wtTable.getColumnWidth(i),i+=1;return o}getWorkspaceOffset(){return(0,i.offset)(this.wtTable.holder)}getColumnHeaderHeight(){return this.wtSettings.getSetting("columnHeaders").length?isNaN(this.columnHeaderHeight)&&(this.columnHeaderHeight=(0,i.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,i=t.length;o<i;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,s=t.length;o<s;o++)e?(this.rowHeaderWidth+=(0,i.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 s,r,a=this.getViewportHeight();this.rowHeaderWidth=NaN;let l=this.dataAccessObject.topScrollPosition-this.dataAccessObject.topParentOffset;const h=t.getSetting("fixedRowsTop"),c=t.getSetting("fixedRowsBottom"),u=t.getSetting("totalRows");return h&&l>=0&&(r=this.dataAccessObject.topOverlay.sumCellSizes(0,h),l+=r,a-=r),c&&this.dataAccessObject.bottomOverlay.clone&&(r=this.dataAccessObject.bottomOverlay.sumCellSizes(u-c,u),a-=r),s=o.holder.clientHeight===o.holder.offsetHeight?0:(0,i.getScrollbarWidth)(this.domBindings.rootDocument),new n.ViewportRowsCalculator({calculationTypes:e.map(e=>[e,this.rowsCalculatorTypes.get(e)()]),viewportHeight:a,scrollOffset:l,totalRows:t.getSetting("totalRows"),defaultRowHeight:t.getSetting("stylesHandler").getDefaultRowHeight(),rowHeightFn:e=>o.getRowHeight(e),overrideFn:t.getSettingPure("viewportRowCalculatorOverride"),horizontalScrollbarHeight:s})}createColumnsCalculator(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["rendered","fullyVisible","partiallyVisible"];const{wtSettings:t,wtTable:o}=this;let s=this.getViewportWidth(),r=Math.abs(this.dataAccessObject.inlineStartScrollPosition)-this.dataAccessObject.inlineStartParentOffset;this.columnHeaderHeight=NaN;const a=t.getSetting("fixedColumnsStart");if(a&&r>=0){const e=this.dataAccessObject.inlineStartOverlay.sumCellSizes(0,a);r+=e,s-=e}return o.holder.clientWidth!==o.holder.offsetWidth&&(s-=(0,i.getScrollbarWidth)(this.domBindings.rootDocument)),new n.ViewportColumnsCalculator({calculationTypes:e.map(e=>[e,this.columnsCalculatorTypes.get(e)()]),viewportWidth:s,scrollOffset:r,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(),i=this.createColumnsCalculator();if(e&&!t.getSetting("renderAllRows")){const t=o.getResultsFor("fullyVisible");e=this.areAllProposedVisibleRowsAlreadyRendered(t)}if(e&&!t.getSetting("renderAllColumns")){const t=i.getResultsFor("fullyVisible");e=this.areAllProposedVisibleColumnsAlreadyRendered(t)}return e||(this.rowsRenderCalculator=o.getResultsFor("rendered"),this.columnsRenderCalculator=i.getResultsFor("rendered")),this.rowsVisibleCalculator=o.getResultsFor("fullyVisible"),this.columnsVisibleCalculator=i.getResultsFor("fullyVisible"),this.rowsPartiallyVisibleCalculator=o.getResultsFor("partiallyVisible"),this.columnsPartiallyVisibleCalculator=i.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:i,endRow:s,rowStartOffset:n,rowEndOffset:r}=this.rowsRenderCalculator,a=this.wtSettings.getSetting("totalRows")-1,l=this.wtSettings.getSetting("viewportRowRenderingThreshold");return Number.isInteger(l)&&l>0?(t=Math.max(0,t-Math.min(n,l)),o=Math.min(a,o+Math.min(r,l))):"auto"===l&&(t=Math.max(0,t-Math.ceil(n/2)),o=Math.min(a,o+Math.ceil(r/2))),!(t<i||t===i&&t>0)&&!(o>s||o===s&&o<a)}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:i,endColumn:s,columnStartOffset:n,columnEndOffset:r}=this.columnsRenderCalculator,a=this.wtSettings.getSetting("totalColumns")-1,l=this.wtSettings.getSetting("viewportColumnRenderingThreshold");return Number.isInteger(l)&&l>0?(t=Math.max(0,t-Math.min(n,l)),o=Math.min(a,o+Math.min(r,l))):"auto"===l&&(t=Math.max(0,t-Math.ceil(n/2)),o=Math.min(a,o+Math.ceil(r/2))),!(t<i||t===i&&t>0)&&!(o>s||o===s&&o<a)}resetHasOversizedColumnHeadersMarked(){(0,s.objectEach)(this.hasOversizedColumnHeadersMarked,(e,t,o)=>{o[t]=void 0})}}},17374:(e,t,o)=>{"use strict";var i=o(98363).f;e.exports=function(e,t,o){o in e||i(e,o,{configurable:!0,get:function(){return t[o]},set:function(e){t[o]=e}})}},17511:e=>{"use strict";e.exports={}},17604:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490);var i=o(25884);t.getDecreasedIndexes=i.getDecreasedIndexes,t.getIncreasedIndexes=i.getIncreasedIndexes;var s=o(69425),n=o(1471);const r=new Map([["indexesSequence",{getListWithInsertedItems:s.getListWithInsertedItems,getListWithRemovedItems:s.getListWithRemovedItems}],["physicallyIndexed",{getListWithInsertedItems:n.getListWithInsertedItems,getListWithRemovedItems:n.getListWithRemovedItems}]]);t.alterUtilsFactory=e=>{if(!1===r.has(e))throw new Error(`Alter strategy with ID '${e}' does not exist.`);return r.get(e)}},17725:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(34478),o(31143);var s=i(o(24300));t.ViewportBaseCalculator=class{constructor(e){(0,s.default)(this,"calculationTypes",[]),(0,s.default)(this,"calculationResults",new Map),this.calculationTypes=e}_initialize(e){this.calculationTypes.forEach(t=>{let[o,i]=t;this.calculationResults.set(o,i),i.initialize(e)})}_process(e,t){this.calculationTypes.forEach(o=>{let[,i]=o;return i.process(e,t)})}_finalize(e){this.calculationTypes.forEach(t=>{let[,o]=t;return o.finalize(e)})}getResultsFor(e){return this.calculationResults.get(e)}}},17738:(e,t,o)=>{"use strict";o(34478),o(31143),t.__esModule=!0;var i={createIndexMap:!0,HidingMap:!0,IndexMap:!0,LinkedPhysicalIndexToValueMap:!0,PhysicalIndexToValueMap:!0,TrimmingMap:!0};t.createIndexMap=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!u.has(e))throw new Error(`The provided map type ("${e}") does not exist.`);return new(u.get(e))(t)},o(52490);var s=o(74077);t.HidingMap=s.HidingMap;var n=o(30286);t.IndexMap=n.IndexMap;var r=o(35734);t.LinkedPhysicalIndexToValueMap=r.LinkedPhysicalIndexToValueMap;var a=o(9093);t.PhysicalIndexToValueMap=a.PhysicalIndexToValueMap;var l=o(95287);t.TrimmingMap=l.TrimmingMap;var h=o(79007);Object.keys(h).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===h[e]||(t[e]=h[e]))});var c=o(69425);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===c[e]||(t[e]=c[e]))});const u=new Map([["hiding",s.HidingMap],["index",n.IndexMap],["linkedPhysicalIndexToValue",r.LinkedPhysicalIndexToValueMap],["physicalIndexToValue",a.PhysicalIndexToValueMap],["trimming",l.TrimmingMap]])},17924:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724);var i=o(78966);function s(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 r(e,t){return e.get(l(e,t))}function a(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 h=new WeakMap,c=new WeakMap,u=new WeakSet;function d(e){let[t,o,s,n]=r(h,this).getCorners();if(t<0&&s<0||o<0&&n<0)return;const{wtTable:a}=r(c,this),l=t!==s||o!==n;if(o=Math.max(o,0),n=Math.max(n,0),t=Math.max(t,0),s=Math.max(s,0),l){if(o=Math.max(o,a.getFirstRenderedColumn()),n=Math.min(n,a.getLastRenderedColumn()),t=Math.max(t,a.getFirstRenderedRow()),s=Math.min(s,a.getLastRenderedRow()),n<o||s<t)return}else{const e=a.getCell(r(c,this).createCellCoords(t,o));if(!(0,i.isHTMLElement)(e))return}for(let i=t;i<=s;i+=1)for(let t=o;t<=n;t+=1)e(i,t)}function g(e){const{wtTable:t}=r(c,this),o=t.getRenderedRowsCount(),i=t.getRenderedColumnsCount();for(let s=0;s<o;s+=1){const o=t.rowFilter.renderedToSource(s);for(let s=0;s<i;s+=1)e(o,t.columnFilter.renderedToSource(s))}}t.SelectionScanner=class{constructor(){var e,t;n(e=this,t=u),t.add(e),s(this,h,void 0),s(this,c,void 0)}setActiveOverlay(e){return a(c,this,e),this}setActiveSelection(e){return a(h,this,e),this}scan(){const e=r(h,this).settings.selectionType,t=new Set;return"active-header"===e?(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanRowsInHeadersRange(e=>t.add(e))):"area"===e?this.scanCellsRange(e=>t.add(e)):"focus"===e?(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanRowsInHeadersRange(e=>t.add(e)),this.scanCellsRange(e=>t.add(e))):"fill"===e?this.scanCellsRange(e=>t.add(e)):"header"===e?(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanRowsInHeadersRange(e=>t.add(e))):"row"===e?(this.scanRowsInHeadersRange(e=>t.add(e)),this.scanRowsInCellsRange(e=>t.add(e))):"column"===e&&(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanColumnsInCellsRange(e=>t.add(e))),t}scanColumnsInHeadersRange(e){const[t,o,i,s]=r(h,this).getCorners(),{wtTable:n}=r(c,this),a=n.getRenderedColumnsCount(),l=n.getColumnHeadersCount();let u=0;for(let d=-n.getRowHeadersCount();d<a;d++){const a=n.columnFilter.renderedToSource(d);if(!(a<o||a>s)){for(let d=-l;d<0;d++){if(d<t||d>i)continue;const g=d+l;let f=n.getColumnHeader(a,g);const p=r(c,this).getSetting("onBeforeHighlightingColumnHeader",a,g,{selectionType:r(h,this).settings.selectionType,columnCursor:u,selectionWidth:s-o+1});null!==p&&(p!==a&&(f=n.getColumnHeader(p,g)),e(f))}u+=1}}}scanRowsInHeadersRange(e){const[t,o,i,s]=r(h,this).getCorners(),{wtTable:n}=r(c,this),a=n.getRenderedRowsCount(),l=n.getRowHeadersCount();let u=0;for(let d=-n.getColumnHeadersCount();d<a;d++){const a=n.rowFilter.renderedToSource(d);if(!(a<t||a>i)){for(let d=-l;d<0;d++){if(d<o||d>s)continue;const g=d+l;let f=n.getRowHeader(a,g);const p=r(c,this).getSetting("onBeforeHighlightingRowHeader",a,g,{selectionType:r(h,this).settings.selectionType,rowCursor:u,selectionHeight:i-t+1});null!==p&&(p!==a&&(f=n.getRowHeader(p,g)),e(f))}u+=1}}}scanCellsRange(e){const{wtTable:t}=r(c,this);l(u,this,d).call(this,(o,s)=>{const n=t.getCell(r(c,this).createCellCoords(o,s)),a=r(c,this).getSetting("onAfterDrawSelection",o,s,r(h,this).settings.layerLevel);"string"==typeof a&&(0,i.addClass)(n,a),e(n)})}scanRowsInCellsRange(e){const[t,,o]=r(h,this).getCorners(),{wtTable:i}=r(c,this);l(u,this,g).call(this,(s,n)=>{if(s>=t&&s<=o){const t=i.getCell(r(c,this).createCellCoords(s,n));e(t)}})}scanColumnsInCellsRange(e){const[,t,,o]=r(h,this).getCorners(),{wtTable:i}=r(c,this);l(u,this,g).call(this,(s,n)=>{if(n>=t&&n<=o){const t=i.getCell(r(c,this).createCellCoords(s,n));e(t)}})}}},18130:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostInlineStart",callback(e){const{selection:t,columnIndexMapper:o}=e,{highlight:i,from:s,to:n}=e.getSelectedRangeActive();if(!t.isSelectedByRowHeader()&&!t.isSelectedByCorner()&&i.isCell()){const r=parseInt(e.getSettings().fixedColumnsStart,10),a=o.getNearestNotHiddenIndex(r,1),l=s.clone();l.col=i.col,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,i.clone()),t.setRangeEnd(e._createCellCoords(n.row,a)),t.markEndSource()}}}},18252:(e,t,o)=>{"use strict";t.__esModule=!0,t.columnHeaderScrollStrategy=function(e){return t=>{const o=(0,i.createScrollTargetCalculator)(e).getComputedColumnTarget(t);e.scrollViewportTo({col:o},()=>{const t=!!e.getSettings().colHeaders;(0,i.scrollWindowToCell)(e.getCell(t?-1:0,o,!0))})}};var i=o(31970)},18253:(e,t,o)=>{"use strict";t.__esModule=!0,t.showColumn=function(e,t){if(!Number.isInteger(t))throw new Error("The passed gridColumnIndex argument has invalid type.");if(e.childs.length>0)throw new Error(i.toSingleLine`The passed node is not the last node on the tree. Only for\x20
55
+ 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()}}},12294:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(76100);t.VALIDATOR_TYPE=i.VALIDATOR_TYPE,t.correctFormat=i.correctFormat,t.dateValidator=i.dateValidator},12449:(e,t,o)=>{"use strict";t.__esModule=!0,t.createPaginationFocusController=function(e){let{focusableElements:t}=e;return(0,i.createPaginator)({initialPage:0,size:()=>t().length,onItemSelect:e=>{t()[e].focus()}})};var i=o(83166)},12485:(e,t,o)=>{"use strict";t.__esModule=!0,t.baseRenderer=a,o(99356);var i=o(78966),s=o(72609);const n=t.RENDERER_TYPE="base",r="htTextEllipsis";function a(e,t,o,n,a,l,h){const c=h.ariaTags,u=[],d=[],g=[],f=[];h.className&&(0,i.addClass)(t,h.className),h.readOnly?(u.push(h.readOnlyCellClassName),c&&f.push((0,s.A11Y_READONLY)())):c&&g.push((0,s.A11Y_READONLY)()[0]),!1===h.valid&&h.invalidCellClassName?(u.push(h.invalidCellClassName),c&&f.push((0,s.A11Y_INVALID)())):(d.push(h.invalidCellClassName),c&&g.push((0,s.A11Y_INVALID)()[0])),!1===h.wordWrap&&h.noWordWrapClassName&&u.push(h.noWordWrapClassName),!l&&h.placeholder&&u.push(h.placeholderCellClassName),h.textEllipsis&&u.push(r),(0,i.removeClass)(t,d),(0,i.addClass)(t,u),(0,i.removeAttribute)(t,g),(0,i.setAttribute)(t,f)}a.RENDERER_TYPE=n},12516:(e,t,o)=>{"use strict";t.__esModule=!0,t.getEngineSettingsOverrides=r,t.getEngineSettingsWithDefaultsAndOverrides=function(e){var t;const o=e[i.PLUGIN_KEY],s=a(null!=o&&null!==(t=o.engine)&&void 0!==t&&t.hyperformula?o.engine:{}),l=r(e);return{...n,...s,...l}},t.getEngineSettingsWithOverrides=function(e){var t;const o=e[i.PLUGIN_KEY],s=a(null!=o&&null!==(t=o.engine)&&void 0!==t&&t.hyperformula?o.engine:{}),n=r(e);return{...s,...n}},t.haveEngineSettingsChanged=function(e,t){return Object.keys(t).some(o=>void 0!==t[o]&&t[o]!==e[o])},o(34478),o(33098),o(81056);var i=o(41595);const s=t.DEFAULT_LICENSE_KEY="internal-use-in-handsontable",n=t.DEFAULT_SETTINGS={licenseKey:s,useArrayArithmetic:!0,useColumnIndex:!1,useStats:!1,evaluateNullToZero:!0,precisionEpsilon:1e-13,precisionRounding:14,smartRounding:!0,leapYear1900:!1,nullDate:{year:1899,month:12,day:30},nullYear:30,dateFormats:["DD/MM/YYYY","DD/MM/YY"],timeFormats:["hh:mm","hh:mm:ss.sss"],matchWholeCell:!0,useRegularExpressions:!1,useWildcards:!0,functionArgSeparator:",",thousandSeparator:"",decimalSeparator:".",language:"enGB"};function r(e){var t;return{maxColumns:e.maxColumns,maxRows:e.maxRows,language:null===(t=e[i.PLUGIN_KEY])||void 0===t||null===(t=t.language)||void 0===t?void 0:t.langCode}}function a(e){return Object.keys(e).reduce((t,o)=>("hyperformula"!==o&&(t[o]=e[o]),t),{})}},12793:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300));t.Cursor=class{constructor(e,t){(0,s.default)(this,"top",void 0),(0,s.default)(this,"topRelative",void 0),(0,s.default)(this,"left",void 0),(0,s.default)(this,"leftRelative",void 0),(0,s.default)(this,"scrollTop",void 0),(0,s.default)(this,"scrollLeft",void 0),(0,s.default)(this,"cellHeight",void 0),(0,s.default)(this,"cellWidth",void 0);const o=t.scrollY,i=t.scrollX;let n,r,a,l,h,c;this.rootWindow=t,this.type=this.getSourceType(e),"literal"===this.type?(n=parseInt(e.top,10),a=parseInt(e.left,10),h=e.height||0,c=e.width||0,r=n,l=a,n+=o,a+=i):"event"===this.type&&(n=parseInt(e.pageY,10),a=parseInt(e.pageX,10),h=e.target.clientHeight,c=e.target.clientWidth,r=n-o,l=a-i),this.top=n,this.topRelative=r,this.left=a,this.leftRelative=l,this.scrollTop=o,this.scrollLeft=i,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.document.documentElement.clientWidth;return this.leftRelative+this.cellWidth+e.offsetWidth<=t}fitsOnLeft(e){return this.leftRelative>=e.offsetWidth}}},12874:(e,t,o)=>{"use strict";var i=o(15105),s=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},n=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};e.exports=function(e,t){var o=i("Set");try{(new o)[e](s(0));try{return(new o)[e](s(-1)),!1}catch(i){if(!t)return!0;try{return(new o)[e](n(-1/0)),!1}catch(i){var r=new o;return r.add(1),r.add(2),t(r[e](n(1/0)))}}}catch(e){return!1}}},12890:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=r;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(23895);const n=t.CONDITION_NAME="none";function r(){return!0}(0,s.registerCondition)(n,r,{name:i.FILTERS_CONDITIONS_NONE,inputsCount:0,showOperators:!1})},13074:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(58712);t.valueSetter=i.valueSetter},13123:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300));class n{constructor(e){(0,s.default)(this,"data",void 0),(0,s.default)(this,"next",null),(0,s.default)(this,"prev",null),this.data=e}}t.NodeStructure=n;t.default=class{constructor(){(0,s.default)(this,"first",null),(0,s.default)(this,"last",null)}push(e){const t=new n(e);if(null===this.first)this.first=t,this.last=t;else{const e=this.last;this.last=t,t.prev=e,e.next=t}return t}unshift(e){const t=new n(e);if(null===this.first)this.first=t,this.last=t;else{const e=this.first;this.first=t,t.next=e,e.prev=t}}inorder(e){let t=this.first;for(;t;){const o=e(t);if(t===this.last||!0===o)break;t=t.next}}remove(e){if(null===this.first)return!1;let t,o,i=this.first;for(;i;){if(i.data===e)return t=i.next,o=i.prev,t&&(t.prev=o),o&&(o.next=t),i===this.first&&(this.first=t),i===this.last&&(this.last=o),!0;i=i.next}return!1}hasCycle(){let e=this.first,t=this.first;for(;;){if(null===e)return!1;if(e=e.next,null===e)return!1;if(e=e.next,t=t.next,e===t)return!0}}pop(){if(null===this.last)return null;const e=this.last;return this.last=this.last.prev,e}shift(){if(null===this.first)return null;const e=this.first;return this.first=this.first.next,e}recursiveReverse(){if(!this.first)return;!function e(t,o){o&&(e(o,o.next),o.next=t)}(this.first,this.first.next),this.first.next=null;const e=this.first;this.first=this.last,this.last=e}reverse(){if(!this.first||!this.first.next)return;let e,t=this.first.next,o=this.first;for(;t;)e=t.next,t.next=o,o.prev=t,o=t,t=e;this.first.next=null,this.last.prev=null,e=this.first,this.first=o,this.last=e}}},13280:(e,t,o)=>{"use strict";t.__esModule=!0,t.getOperationFunc=function(e){if(!i[e])throw Error(`Operation with id "${e}" does not exist.`);const t=i[e].func;return function(e,o){return t(e,o)}},t.getOperationName=function(e){return i[e].name},t.registerOperation=function(e,t,o){i[e]={name:t,func:o}},o(52490);const i=t.operations={}},13306:(e,t,o)=>{"use strict";t.__esModule=!0,t.operationResult=a,o(34478),o(66133);var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(13280);const n=t.OPERATION_ID="conjunction",r=t.SHORT_NAME_FOR_COMPONENT=i.FILTERS_LABELS_CONJUNCTION;function a(e,t){return e.every(e=>e.func(t))}(0,s.registerOperation)(n,r,a)},13330:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(44031);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.ManualColumnFreeze=i.ManualColumnFreeze},13390:(e,t,o)=>{"use strict";o(34478),o(31143),t.__esModule=!0;var i={registerAllShortcutContexts:!0};t.registerAllShortcutContexts=function(e){[n.shortcutsGridContext,s.shortcutsEditorContext].forEach(t=>t(e))};var s=o(48685),n=o(18928),r=o(6239);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===r[e]||(t[e]=r[e]))})},13421:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490),o(34478),o(31143);var i=o(13743),s=o(78966),n=o(77164),r=o(12099);function a(e,t,o){l(e,t),t.set(e,o)}function l(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(e,t){return e.get(u(e,t))}function c(e,t,o){return e.set(u(e,t),o),o}function u(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 d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakSet;function w(){const{view:e,stylesHandler:t}=h(d,this);if(e.isVerticallyScrollableByWindow())return!1;const o=e.getViewportHeight(),i=h(d,this).countRows(),s=t.getDefaultRowHeight();let n=0,r=!1;for(let e=0;e<i;e++){var a;if(!h(d,this).rowIndexMapper.isHidden(h(d,this).toPhysicalRow(e))&&(n+=(null!==(a=h(d,this).getRowHeight(e))&&void 0!==a?a:s)+(0===e?1:0),n>o)){r=!0;break}}return r}function C(e){var t;return null!==(t=h(d,this).getColWidth(e,"StretchColumns"))&&void 0!==t?t:i.DEFAULT_COLUMN_WIDTH}function v(e,t){return h(d,this).runHooks("beforeStretchingColumnWidth",e,t)}t.StretchCalculator=class{constructor(e){var t,o;l(t=this,o=m),o.add(t),a(this,d,void 0),a(this,g,void 0),a(this,f,new Map([["all",new n.StretchAllStrategy(u(m,this,v).bind(this))],["last",new r.StretchLastStrategy(u(m,this,v).bind(this))]])),a(this,p,"none"),c(d,this,e),c(g,this,h(d,this).columnIndexMapper.createAndRegisterIndexMap("stretchColumns","physicalIndexToValue"))}useStrategy(e){c(p,this,h(f,this).has(e)?e:"none")}refreshStretching(){"none"!==h(p,this)?h(d,this).batchExecution(()=>{h(g,this).clear();const e=h(f,this).get(h(p,this));let t=h(d,this).view.getViewportWidth();u(m,this,w).call(this)&&(t-=(0,s.getScrollbarWidth)(h(d,this).rootDocument)),e.prepare({viewportWidth:t});for(let t=0;t<h(d,this).countCols();t++)h(d,this).columnIndexMapper.isHidden(h(d,this).toPhysicalColumn(t))||e.setColumnBaseWidth(t,u(m,this,C).call(this,t));e.calculate(),e.getWidths().forEach(e=>{let[t,o]=e;h(g,this).setValueAtIndex(h(d,this).toPhysicalColumn(t),o)})},!0):h(g,this).clear()}getStretchedWidth(e){return h(g,this).getValueAtIndex(h(d,this).toPhysicalColumn(e))}}},13743:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=o(75204);t.ViewportColumnsCalculator=s.ViewportColumnsCalculator,t.ViewportRowsCalculator=s.ViewportRowsCalculator,t.DEFAULT_COLUMN_WIDTH=s.DEFAULT_COLUMN_WIDTH;var n=i(o(90116));t.CellCoords=n.default;var r=i(o(96253));t.CellRange=r.default;var a=i(o(47927));t.default=a.default,t.Core=a.default;var l=o(91342);t.Selection=l.Selection,t.HIGHLIGHT_ACTIVE_HEADER_TYPE=l.ACTIVE_HEADER_TYPE,t.HIGHLIGHT_AREA_TYPE=l.AREA_TYPE,t.HIGHLIGHT_FOCUS_TYPE=l.FOCUS_TYPE,t.HIGHLIGHT_FILL_TYPE=l.FILL_TYPE,t.HIGHLIGHT_HEADER_TYPE=l.HEADER_TYPE,t.HIGHLIGHT_ROW_TYPE=l.ROW_TYPE,t.HIGHLIGHT_COLUMN_TYPE=l.COLUMN_TYPE,t.HIGHLIGHT_CUSTOM_SELECTION_TYPE=l.CUSTOM_SELECTION_TYPE;var h=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(97095));t.Renderer=h;var c=o(367);t.OrderView=c.OrderView,t.SharedOrderView=c.SharedOrderView;var u=o(70806);t.NodesPool=u.NodesPool;var d=o(59468);t.getListenersCounter=d.getListenersCounter},13839:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(67347),r=i(o(59468)),a=o(40929),l=o(78966),h=o(58604),c=o(36062),u=o(7886),d=o(34562),g=o(72609);const f="ht_editor_hidden",p="textEditor",m=t.EDITOR_TYPE="text";class w extends n.BaseEditor{static get EDITOR_TYPE(){return m}constructor(e){super(e),(0,s.default)(this,"eventManager",new r.default(this)),(0,s.default)(this,"autoResize",(0,c.createInputElementResizer)(this.hot.rootDocument)),(0,s.default)(this,"TEXTAREA",void 0),(0,s.default)(this,"textareaStyle",void 0),(0,s.default)(this,"TEXTAREA_PARENT",void 0),(0,s.default)(this,"textareaParentStyle",void 0),(0,s.default)(this,"layerClass",void 0),this.eventManager=new r.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,l.isInternalElement)(this.hot.rootDocument.activeElement,this.hot.rootElement)&&this.hot.listen(),this.hideEditableElement(),this.unregisterShortcuts()}prepare(e,t,o,i,s,r){const a=this.state;if(super.prepare(e,t,o,i,s,r),!r.readOnly){this.refreshDimensions(!0);const{allowInvalid:e}=r;e&&!this.isOpened()&&(this.TEXTAREA.value=""),a===n.EDITOR_STATE.FINISHED||this.isOpened()||this.hideEditableElement()}}beginEditing(e,t){this.state===n.EDITOR_STATE.VIRGIN&&(this.TEXTAREA.value="",super.beginEditing(e,t))}focus(){this.TEXTAREA.select(),(0,l.setCaretPosition)(this.TEXTAREA,this.TEXTAREA.value.length)}createElements(){const{rootDocument:e}=this.hot;this.TEXTAREA=e.createElement("TEXTAREA"),(0,l.setAttribute)(this.TEXTAREA,[["data-hot-input",""],(0,g.A11Y_TABINDEX)(-1)]),(0,l.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,l.addClass)(this.TEXTAREA_PARENT,"handsontableInputHolder"),(0,l.hasClass)(this.TEXTAREA_PARENT,this.layerClass)&&(0,l.removeClass)(this.TEXTAREA_PARENT,this.layerClass),(0,l.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,a.isEdge)()&&(this.textareaStyle.textIndent="-99999px"),this.textareaStyle.overflowY="visible",this.textareaParentStyle.opacity="0",this.textareaParentStyle.height="1px",(0,l.removeClass)(this.TEXTAREA_PARENT,this.layerClass),(0,l.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 i=e[o];if((0,l.hasClass)(i,"handsontableEditor"))return t=!0,!1}),(0,l.hasClass)(this.TEXTAREA_PARENT,f)&&(0,l.removeClass)(this.TEXTAREA_PARENT,f),t?(this.layerClass="ht_editor_visible",(0,l.addClass)(this.TEXTAREA_PARENT,this.layerClass)):(this.layerClass=this.getEditedCellsLayerClass(),(0,l.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!==n.EDITOR_STATE.EDITING&&!e)return;if(this.TD=this.getEditedCell(),!this.TD)return void(e||this.close());const{top:t,start:o,width:i,maxWidth:s,height:r,maxHeight:a}=this.getEditedCellRect();this.textareaParentStyle.top=`${t}px`,this.textareaParentStyle[this.hot.isRtl()?"right":"left"]=`${o}px`,this.showEditableElement();const l=this.hot.rootWindow.getComputedStyle(this.TD);this.TEXTAREA.style.fontSize=l.fontSize,this.TEXTAREA.style.fontFamily=l.fontFamily,this.TEXTAREA.style.backgroundColor=this.TD.style.backgroundColor,this.autoResize.init(this.TEXTAREA,{minWidth:Math.min(i,s),minHeight:Math.min(r,a),maxWidth:s,maxHeight:a},!0)}bindEvents(){(0,a.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===n.EDITOR_STATE.EDITING&&this.focus()}),this.addHook("afterRowResize",()=>{this.refreshDimensions(),this.state===n.EDITOR_STATE.EDITING&&this.focus()})}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},13861:(e,t,o)=>{"use strict";var i=o(14815),s=TypeError;e.exports=function(e,t){if(i(t,e))return e;throw new s("Incorrect invocation")}},14015:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(4138),r=o(2744);class a{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,s.default)(this,"dataProvider",void 0),(0,s.default)(this,"options",void 0),this.dataProvider=e,this.options=this._mergeOptions(t),this.dataProvider.setOptions(this.options)}_mergeOptions(e){let t=(0,n.clone)(this.constructor.DEFAULT_OPTIONS);const o=new Date;return t=(0,n.extend)((0,n.clone)(a.DEFAULT_OPTIONS),t),t=(0,n.extend)(t,e),t.filename=(0,r.substitute)(t.filename,{YYYY:o.getFullYear(),MM:`${o.getMonth()+1}`.padStart(2,"0"),DD:`${o.getDate()}`.padStart(2,"0")}),t}}t.default=a},14207:(e,t,o)=>{"use strict";t.__esModule=!0,t.getClassesToAdd=function(e,t,o){const s=[];if(!1===o)return s;e.isColumnSorted(t)&&e.getNumberOfSortedColumns()>1&&s.push(`${i}-${e.getIndexOfColumnInSortQueue(t)+1}`);return s},t.getClassesToRemove=function(e){const t=e.className.split(" "),o=new RegExp(`^${i}-[0-9]{1,2}$`);return t.filter(e=>o.test(e))},o(99356),o(34478),o(29810);const i="sort"},14245:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300));o(52490),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(29810),o(940),o(81056);var n=o(94576),r=o(17738),a=o(22342),l=i(o(18805)),h=o(4138),c=o(7886),u=o(15126);new Set;class d{constructor(){(0,s.default)(this,"indexesSequence",new r.IndexesSequence),(0,s.default)(this,"trimmingMapsCollection",new a.AggregatedCollection(e=>e.some(e=>!0===e),!1)),(0,s.default)(this,"hidingMapsCollection",new a.AggregatedCollection(e=>e.some(e=>!0===e),!1)),(0,s.default)(this,"variousMapsCollection",new a.MapCollection),(0,s.default)(this,"hidingChangesObservable",new u.ChangesObservable({initialIndexValue:!1})),(0,s.default)(this,"notTrimmedIndexesCache",[]),(0,s.default)(this,"notHiddenIndexesCache",[]),(0,s.default)(this,"isBatched",!1),(0,s.default)(this,"indexesSequenceChanged",!1),(0,s.default)(this,"indexesChangeSource",void 0),(0,s.default)(this,"trimmedIndexesChanged",!1),(0,s.default)(this,"hiddenIndexesChanged",!1),(0,s.default)(this,"renderablePhysicalIndexesCache",[]),(0,s.default)(this,"fromPhysicalToVisualIndexesCache",new Map),(0,s.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,r.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 r.TrimmingMap?this.trimmingMapsCollection.register(e,t):t instanceof r.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 i=Array.from(this.fromVisualToRenderableIndexesCache.keys());let s=-1;return s=t>0?i.findIndex(t=>t>e):i.reverse().findIndex(t=>t<e),-1===s?o?this.getNearestNotHiddenIndex(e,-t,!1):null:i[s]}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,n.arrayMap)(e,e=>this.getPhysicalFromVisualIndex(e)),i=this.getNotTrimmedIndexesLength(),s=e.length,a=(0,r.getListWithRemovedItems)(this.getIndexesSequence(),o),l=a.filter(e=>!1===this.isTrimmed(e));let h=a.indexOf(l[l.length-1])+1;if(t+s<i){const e=l[t];h=a.indexOf(e)}this.indexesChangeSource="move",this.setIndexesSequence((0,r.getListWithInsertedItems)(a,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 i=this.getNotTrimmedIndexes()[e],s=(0,c.isDefined)(i)?i:this.getNumberOfIndexes(),r=this.getIndexesSequence().includes(i)?this.getIndexesSequence().indexOf(i):this.getNumberOfIndexes(),a=(0,n.arrayMap)(new Array(t).fill(s),(e,t)=>e+t);this.suspendOperations(),this.indexesChangeSource="insert",this.indexesSequence.insert(r,a),this.indexesChangeSource=void 0;const l="end"===o?a.map(e=>e+1):a;this.trimmingMapsCollection.insertToEvery(r,l),this.hidingMapsCollection.insertToEvery(r,l),this.variousMapsCollection.insertToEvery(r,l),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,l.default)},14291:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356);var s=i(o(24300)),n=o(26808),r=o(94576),a=o(58604),l=o(7120),h=o(78966),c=o(47802),u=o(13390),d=o(72609);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",S=w,E=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 n.BasePlugin{constructor(){var e,t;super(...arguments),g(e=this,t=b),t.add(e),(0,s.default)(this,"nestedHeadersPlugin",null),(0,s.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,l.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),i=0;i<t;i++)o[i]=arguments[i];return m(b,e,O).call(e,...o)}),this.addHook("afterGetColHeader",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];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.getSelectedRangeActive().highlight,{collapsible:i,isCollapsed:s,columnIndex:n}=null!==(e=this.headerStateManager.getHeaderTreeNodeData(t,o))&&void 0!==e?e:{};if(i)return s?this.expandSection({row:t,col:n}):this.collapseSection({row:t,col:n}),!1},runOnlyIf:()=>{var e,t;return(null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.isSingle())&&(null===(t=this.hot.getSelectedRangeActive())||void 0===t?void 0:t.highlight.isHeader())},group:S,relativeToGroup:u.EDITOR_EDIT_GROUP,position:"before"})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(S)}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,i=this.hot.view._wt.wtOverlays.topInlineStartCornerOverlay?this.hot.view._wt.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.THEAD:null,s=function(e){e&&e.parentNode.removeChild(e)};(0,a.rangeEach)(0,e-1,e=>{const n=t.childNodes[e],r=o.childNodes[e],l=i?i.childNodes[e]:null;(0,a.rangeEach)(0,n.childNodes.length-1,e=>{let t=n.childNodes[e].querySelector(`.${y}`);s(t),r&&r.childNodes[e]&&(t=r.childNodes[e].querySelector(`.${y}`),s(t)),i&&l&&l.childNodes[e]&&(t=l.childNodes[e].querySelector(`.${y}`),s(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:i,headerLevel:s,columnIndex:n,isCollapsed:r}=t;if(!0===o&&i>1&&(r&&"expand"===e||!r&&"collapse"===e))return{row:this.headerStateManager.levelToRowCoords(s),col:n}});this.toggleCollapsibleSection(t,e)}collapseAll(){this.toggleAllCollapsibleSections("collapse")}expandAll(){this.toggleAllCollapsibleSections("expand")}toggleCollapsibleSection(e,t){if(!E.has(t))throw new Error(`Unsupported action is passed (${t}).`);if(!Array.isArray(e))return;const o=(0,r.arrayFilter)(e,e=>{let{row:t}=e;return t<0});let i=o.length>0;(0,r.arrayEach)(o,e=>{var o;let{row:s,col:n}=e;const{collapsible:r,isCollapsed:a}=null!==(o=this.headerStateManager.getHeaderSettings(s,n))&&void 0!==o?o:{};if(!r||a&&"collapse"===t||!a&&"expand"===t)return i=!1,!1});const s=[],n=[];i&&(0,r.arrayEach)(o,e=>{let{row:o,col:i}=e;const{colspanCompensation:r,affectedColumns:a,rollbackModification:l}=this.headerStateManager.triggerNodeModification(t,o,i);r>0&&(n.push(...a),s.push(l))});const a=this.getCollapsedColumns();let l=[];"collapse"===t?l=(0,r.arrayUnique)([...a,...n]):"expand"===t&&(l=(0,r.arrayFilter)(a,e=>!n.includes(e)));const h=E.get(t);if(!1===this.hot.runHooks(h.beforeHook,a,l,i))return void(0,r.arrayEach)(s,e=>{e()});this.hot.batchExecution(()=>{(0,r.arrayEach)(n,e=>{f(R,this).setValueAtIndex(this.hot.toPhysicalColumn(e),h.hideColumn)})},!0);const c=this.getCollapsedColumns().length!==a.length,u=this.hot.getSelectedRangeActive();if("collapse"===t&&c&&u){const{row:e,col:t}=u.highlight;if((this.hot.rowIndexMapper.isHidden(e)||this.hot.columnIndexMapper.isHidden(t))&&n.includes(t)){const o=e>=0?this.hot.rowIndexMapper.getNearestNotHiddenIndex(e,1,!0):e,i=t>=0?this.hot.columnIndexMapper.getNearestNotHiddenIndex(t,1,!0):t;null!==o&&null!==i&&this.hot.selectCell(o,i)}}this.hot.runHooks(h.afterHook,a,l,i,c),this.hot.view.adjustElementsSize(),this.hot.render()}getCollapsedColumns(){return f(R,this).getHiddenIndexes()}destroy(){p(R,this,null),super.destroy()}}function T(e,t,o){var i;const{collapsible:s,origColspan:n,isCollapsed:r}=null!==(i=this.headerStateManager.getHeaderSettings(o,e))&&void 0!==i?i:{},a=s&&n>1&&e>=this.hot.getSettings().fixedColumnsStart,l=this.hot.getSettings().ariaTags;let c=t.querySelector(`.${y}`);var u;((0,h.removeAttribute)(t,[(0,d.A11Y_EXPANDED)("")[0]]),a)?(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"]),r?((0,h.addClass)(c,"collapsed"),(0,h.fastInnerText)(c,"+"),l&&(0,h.setAttribute)(t,...(0,d.A11Y_EXPANDED)(!1))):((0,h.addClass)(c,"expanded"),(0,h.fastInnerText)(c,"-"),l&&(0,h.setAttribute)(t,...(0,d.A11Y_EXPANDED)(!0))),l&&(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=_},14443:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490),o(34478),o(31143);var i=o(7120);function s(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 r(e,t){return e.get(l(e,t))}function a(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 h=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,w=new WeakSet;function C(){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 v(){this.isClassicTheme()||a(u,this,getComputedStyle(r(c,this)));const e=l(w,this,y).call(this,["box-sizing","border-bottom-width"]);r(p,this).td={...r(p,this).td,"box-sizing":e["box-sizing"],"border-bottom-width":e["border-bottom-width"]}}function y(e){const t=r(d,this),o=r(c,this),i=t.createElement("table"),s=t.createElement("tbody"),n=t.createElement("tr"),a=t.createElement("tr"),l=t.createElement("td");a.appendChild(l),s.appendChild(n),s.appendChild(a),i.appendChild(s),o.appendChild(i);const h=getComputedStyle(l),u={};return e.forEach(e=>{u[e]=h.getPropertyValue(e)}),o.removeChild(i),u}function S(e){const t=Math.ceil(parseFloat(l(w,this,E).call(this,e)));return Number.isNaN(t)?null:t}function E(e){const t=r(u,this).getPropertyValue(e);return""===t?null:t}function R(){a(p,this,{}),a(f,this,{}),a(g,this,!0)}t.StylesHandler=class{constructor(e){let{rootElement:t,rootDocument:o,onThemeChange:i=()=>{}}=e;var r,l;n(r=this,l=w),l.add(r),s(this,h,void 0),s(this,c,void 0),s(this,u,void 0),s(this,d,void 0),s(this,g,!0),s(this,f,{}),s(this,p,{}),s(this,m,void 0),a(c,this,t),a(d,this,o),a(m,this,i)}isClassicTheme(){return r(g,this)}getCSSVariableValue(e){var t;if(r(g,this))return null;if(r(f,this)[`--ht-${e}`])return r(f,this)[`--ht-${e}`];const o=null!==(t=l(w,this,S).call(this,`--ht-${e}`))&&void 0!==t?t:l(w,this,E).call(this,`--ht-${e}`);return null!==o?(r(f,this)[`--ht-${e}`]=o,o):void 0}getStyleForTD(e){var t;return null===(t=r(p,this))||void 0===t?void 0:t.td[e]}getDefaultRowHeight(){if(r(g,this))return 23;const e=l(w,this,C).call(this);return e||23}areCellsBorderBox(){return"border-box"===this.getStyleForTD("box-sizing")}useTheme(e){if(!e)return a(h,this,void 0),a(g,this,!0),r(m,this).call(this,r(h,this)),void l(w,this,v).call(this);if(e&&e!==r(h,this)){if(!/ht-theme-.*/.test(e))return(0,i.warn)(`Invalid theme name: ${e}. Please provide a valid theme name.`),a(h,this,void 0),a(g,this,!1),r(m,this).call(this,r(h,this)),void l(w,this,v).call(this);r(h,this)&&l(w,this,R).call(this),a(h,this,e),a(g,this,!1),r(m,this).call(this,r(h,this)),l(w,this,v).call(this)}}getThemeName(){return r(h,this)}}},14483:(e,t,o)=>{"use strict";var i=o(94266);e.exports=function(e,t){var o=i.Iterator,s=o&&o.prototype,n=s&&s[e],r=!1;if(n)try{n.call({next:function(){return{done:!0}},return:function(){r=!0}},-1)}catch(e){e instanceof t||(r=!1)}if(!r)return n}},14680:(e,t)=>{"use strict";t.__esModule=!0,t.createDefaultHeaderSettings=function(){let{label:e="",colspan:t=1,origColspan:o=1,collapsible:i=!1,crossHiddenColumns:s=[],isCollapsed:n=!1,isHidden:r=!1,isRoot:a=!1,isPlaceholder:l=!1,headerClassNames:h=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{label:e,colspan:t,origColspan:o,collapsible:i,isCollapsed:n,crossHiddenColumns:s,isHidden:r,isRoot:a,isPlaceholder:l,headerClassNames:h}},t.createPlaceholderHeaderSettings=function(){return{label:"",isPlaceholder:!0}}},14815:(e,t,o)=>{"use strict";var i=o(19098);e.exports=i({}.isPrototypeOf)},14843:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(99356),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(29810);var s=i(o(24300)),n=o(28520),r=o(58604);class a{constructor(e){(0,s.default)(this,"valueFactory",void 0),(0,s.default)(this,"data",[]),(0,s.default)(this,"index",[]),(0,s.default)(this,"holes",new Set),this.valueFactory=e}obtain(e){(0,n.assert)(()=>(0,r.isUnsignedNumber)(e),"Expecting an unsigned number.");const t=this._getStorageIndexByKey(e);let o;if(t>=0)o=this.data[t],void 0===o&&(o=this.valueFactory(e),this.data[t]=o);else if(o=this.valueFactory(e),this.holes.size>0){const t=this.holes.values().next().value;this.holes.delete(t),this.data[t]=o,this.index[e]=t}else this.data.push(o),this.index[e]=this.data.length-1;return o}insert(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;(0,n.assert)(()=>(0,r.isUnsignedNumber)(e)||(0,n.isNullish)(e),"Expecting an unsigned number or null/undefined argument.");const o=[],i=this.data.length;for(let e=0;e<t;e++)o.push(i+e),this.data.push(void 0);const s=(0,n.isNullish)(e)?this.index.length:e;this.index=[...this.index.slice(0,s),...o,...this.index.slice(s)]}remove(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;(0,n.assert)(()=>(0,r.isUnsignedNumber)(e)||(0,n.isNullish)(e),"Expecting an unsigned number or null/undefined argument.");const o=this.index.splice((0,n.isNullish)(e)?this.index.length-t:e,t);for(let e=0;e<o.length;e++){const t=o[e];"number"==typeof t&&this.holes.add(t)}}size(){return this.data.length-this.holes.size}values(){return this.data.filter((e,t)=>void 0!==e&&!this.holes.has(t))[Symbol.iterator]()}entries(){const e=[];for(let t=0;t<this.data.length;t++){const o=this._getKeyByStorageIndex(t);-1!==o&&void 0!==this.data[t]&&e.push([o,this.data[t]])}let t=0;return{next:()=>{if(t<e.length){const o=e[t];return t+=1,{value:o,done:!1}}return{done:!0}}}}clear(){this.data=[],this.index=[],this.holes.clear()}_getStorageIndexByKey(e){return this.index.length>e?this.index[e]:-1}_getKeyByStorageIndex(e){return this.index.indexOf(e)}[Symbol.iterator](){return this.entries()}}t.default=a},14950:(e,t,o)=>{"use strict";var i=o(72820),s=o(53001),n=o(39888);i({target:"Set",proto:!0,real:!0,forced:!o(12874)("intersection",function(e){return 2===e.size&&e.has(1)&&e.has(2)})||s(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))})},{intersection:n})},15105:(e,t,o)=>{"use strict";var i=o(94266),s=o(44827);e.exports=function(e,t){return arguments.length<2?(o=i[e],s(o)?o:void 0):i[e]&&i[e][t];var o}},15126:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(31143);var i=o(6745),s=o(34650);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 r(e,t){return e.get(l(e,t))}function a(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 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]:{};n(this,h,new Set),n(this,c,[]),n(this,u,[]),n(this,d,!1),n(this,g,!1),a(g,this,null!=e&&e)}createObserver(){const e=new i.ChangesObserver;return r(h,this).add(e),e.addLocalHook("unsubscribe",()=>{r(h,this).delete(e)}),e._writeInitialChanges((0,s.arrayDiff)(r(c,this),r(u,this))),e}emit(e){let t=r(u,this);r(d,this)&&r(c,this).length===e.length||(0===e.length?e=new Array(t.length).fill(r(g,this)):a(c,this,new Array(e.length).fill(r(g,this))),r(d,this)||(a(d,this,!0),t=r(c,this)));const o=(0,s.arrayDiff)(t,e);r(h,this).forEach(e=>e._write(o)),a(u,this,e)}}},15176:(e,t,o)=>{"use strict";var i=o(44827);e.exports=function(e){return"object"==typeof e?null!==e:i(e)}},15503:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(99356),o(34478),o(29810),o(31143),o(940),o(81056);var s=i(o(24300));class n{constructor(e){(0,s.default)(this,"ranges",[]),(0,s.default)(this,"createCellRange",void 0),this.createCellRange=e}isEmpty(){return 0===this.size()}set(e){return this.clear(),this.ranges.push(this.createCellRange(e)),this}add(e){return this.ranges.push(this.createCellRange(e)),this}push(e){return this.ranges.push(e),this}pop(){return this.ranges.pop()}current(){return this.peekByIndex(this.size()-1)}previous(){return this.peekByIndex(this.size()-2)}includes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>!0;return this.ranges.some((o,i)=>o.includes(e)&&t(o,i))}findAll(e){const t=[];return this.ranges.forEach((o,i)=>{o.isEqual(e)&&t.push({range:o,layer:i})}),t}remove(e){return this.ranges=this.ranges.filter(t=>!e.some(e=>e.isEqual(t))),this}removeLayers(e){return this.ranges=this.ranges.filter((t,o)=>!e.includes(o)),this}clear(){return this.ranges.length=0,this}size(){return this.ranges.length}clone(){const e=new n(this.createCellRange);return e.ranges=this.ranges.map(e=>e.clone()),e}map(e){return this.ranges=this.ranges.map((t,o)=>e(t,o)),this}peekByIndex(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t>=0&&t<this.size()&&(e=this.ranges[t]),e}[Symbol.iterator](){return this.ranges[Symbol.iterator]()}}t.default=n},15686:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(32813),s=o(54657);const n=t.CELL_TYPE="text";t.TextCellType={CELL_TYPE:n,editor:i.TextEditor,renderer:s.textRenderer}},15709:(e,t,o)=>{"use strict";t.__esModule=!0,t.focusScrollStrategy=function(e){return t=>{e.scrollViewportTo(t.toObject(),()=>{const t=e.getSelectedRangeActive();if(!t)return;const{row:o,col:s}=t.highlight;(0,i.scrollWindowToCell)(e.getCell(o,s,!0))})}};var i=o(31970)},15981:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(940);var s=o(94576),n=i(o(90625)),r=i(o(2907)),a=o(39572),l=o(495),h=o(3458);function c(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 u(e,t,o){return e.set(g(e,t),o),o}function d(e,t){return e.get(g(e,t))}function g(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 f=new WeakMap,p=new WeakMap,m=new WeakMap;t.default=class{constructor(){c(this,f,new n.default),c(this,p,new r.default(d(f,this))),c(this,m,[[]])}setState(e){d(f,this).setData(e);let t=!1;try{d(p,this).buildTree()}catch(e){d(p,this).clear(),d(f,this).clear(),t=!0}return u(m,this,(0,l.generateMatrix)(d(p,this).getRoots())),t}setColumnsLimit(e){d(f,this).setColumnsLimit(e)}mergeStateWith(e){const t=(0,s.arrayMap)(e,e=>{let{row:t,...o}=e;return{row:t<0?this.rowCoordsToLevel(t):t,...o}});d(f,this).mergeWith(t),d(p,this).buildTree(),u(m,this,(0,l.generateMatrix)(d(p,this).getRoots()))}mapState(e){d(f,this).map(e),d(p,this).buildTree(),u(m,this,(0,l.generateMatrix)(d(p,this).getRoots()))}mapNodes(e){return(0,s.arrayReduce)(d(p,this).getRoots(),(t,o)=>(o.walkDown(o=>{const i=e(o.data);void 0!==i&&t.push(i)}),t),[])}triggerNodeModification(e,t,o){t<0&&(t=this.rowCoordsToLevel(t));const i=d(p,this).getNode(t,o);let s;return i&&(s=(0,a.triggerNodeModification)(e,i,o),u(m,this,(0,l.generateMatrix)(d(p,this).getRoots()))),s}triggerColumnModification(e,t){return this.triggerNodeModification(e,-1,t)}rowCoordsToLevel(e){if(e>=0)return null;const t=e+Math.max(this.getLayersCount(),1);return t<0?null:t}levelToRowCoords(e){if(e<0)return null;const t=e-Math.max(this.getLayersCount(),1);return t>=0?null:t}getHeaderSettings(e,t){var o,i;return e<0&&(e=this.rowCoordsToLevel(e)),null===e||e>=this.getLayersCount()?null:null!==(o=null===(i=d(m,this)[e])||void 0===i?void 0:i[t])&&void 0!==o?o:null}getHeaderTreeNodeData(e,t){const o=this.getHeaderTreeNode(e,t);return o?{...o.data}:null}getHeaderTreeNode(e,t){if(e<0&&(e=this.rowCoordsToLevel(e)),null===e||e>=this.getLayersCount())return null;const o=d(p,this).getNode(e,t);return o||null}findTopMostEntireHeaderLevel(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const o=t-e+1;let i=!1,s=null;for(let n=e;n<=t;n++){const r=d(p,this).getRootByColumn(n);if(!r)break;i=!0,r.walkDown(i=>{const{columnIndex:n,headerLevel:r,origColspan:a,isHidden:l}=i.data;l||a<=o&&n>=e&&n+a-1<=t&&(null===s||r<s)&&(s=r)},h.TRAVERSAL_DF_PRE)}return i&&null===s?-1:this.levelToRowCoords(null!=s?s:0)}findLeftMostColumnIndex(e,t){var o;const{isRoot:i}=null!==(o=this.getHeaderSettings(e,t))&&void 0!==o?o:{isRoot:!0};if(i)return t;let s=t-1;for(;s>=0;){var n;const{isRoot:t}=null!==(n=this.getHeaderSettings(e,s))&&void 0!==n?n:{isRoot:!0};if(t)break;s-=1}return s}findRightMostColumnIndex(e,t){var o;const{isRoot:i,origColspan:s}=null!==(o=this.getHeaderSettings(e,t))&&void 0!==o?o:{isRoot:!0,origColspan:1};if(i)return t+s-1;let n=t+1;for(;n<this.getColumnsCount();){var r;const{isRoot:t}=null!==(r=this.getHeaderSettings(e,n))&&void 0!==r?r:{isRoot:!0};if(t)break;n+=1}return n-1}getLayersCount(){return d(f,this).getLayersCount()}getColumnsCount(){return d(f,this).getColumnsCount()}clear(){u(m,this,[]),d(f,this).clear(),d(p,this).clear()}}},15999:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){const t=[];return{key:"hidden_rows_show",name(){const e=t.length>1?1:0;return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_SHOW_ROW,e)},callback(){var o,i;if(0===t.length)return;let s=t[0],n=t[t.length-1];s=null!==(o=this.rowIndexMapper.getNearestNotHiddenIndex(s-1,-1))&&void 0!==o?o:0,n=null!==(i=this.rowIndexMapper.getNearestNotHiddenIndex(n+1,1))&&void 0!==i?i:this.countRows()-1,e.showRows(t),this.view.adjustElementsSize(),this.render();n-s+1===this.countRows()||this.selectRows(s,n)},disabled:!1,hidden(){const o=(0,i.arrayMap)(e.getHiddenRows(),e=>this.toPhysicalRow(e));if(!this.selection.isSelectedByRowHeader()&&!this.selection.isSelectedByCorner()||o.length<1)return!0;t.length=0;const s=this.getSelectedRangeActive(),n=s.getTopStartCorner().row,r=s.getBottomEndCorner().row,a=this.rowIndexMapper,l=a.getRenderableFromVisualIndex(n),h=a.getRenderableFromVisualIndex(r),c=a.getNotTrimmedIndexes(),u=[];if(n!==r){if(r-n+1>h-l+1){const e=c.slice(n,r+1);u.push(...e.filter(e=>o.includes(e)))}}else if(0===l&&l<n)u.push(...c.slice(0,n));else if(null===l)u.push(...c.slice(0,this.countRows()));else{const e=this.countRows()-1;h===a.getRenderableFromVisualIndex(a.getNearestNotHiddenIndex(e,-1))&&e>r&&u.push(...c.slice(r+1))}return(0,i.arrayEach)(u,e=>{t.push(this.toVisualRow(e))}),0===t.length}}},o(99356),o(34478),o(29810);var i=o(94576),s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481))},16610:(e,t,o)=>{"use strict";var i,s=o(94266),n=o(69019),r=o(44827),a=o(86121),l=o(92853),h=o(56274),c=o(77618),u=s.Function,d=/MSIE .\./.test(l)||"BUN"===a&&((i=s.Bun.version.split(".")).length<3||"0"===i[0]&&(i[1]<3||"3"===i[1]&&"0"===i[2]));e.exports=function(e,t){var o=t?2:1;return d?function(i,s){var a=c(arguments.length,1)>o,l=r(i)?i:u(i),d=a?h(arguments,o):[],g=a?function(){n(l,this,d)}:l;return t?e(g,s):e(g)}:e}},16751:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(34478),o(940);var s=o(94576),n=o(7886),r=i(o(14015));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)}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")}const h=String.fromCharCode(13),c=String.fromCharCode(34),u=String.fromCharCode(10),d=String.fromCharCode(61),g=String.fromCharCode(43),f=String.fromCharCode(45),p=String.fromCharCode(64),m=String.fromCharCode(9);var w=new WeakSet;class C extends r.default{constructor(){super(...arguments),a(this,w)}static get DEFAULT_OPTIONS(){return{mimeType:"text/csv",fileExtension:"csv",bom:!0,columnDelimiter:",",rowDelimiter:"\r\n",sanitizeValues:!1}}export(){const e=this.options,t=this.dataProvider.getData();let o=this.dataProvider.getColumnHeaders();const i=o.length>0,n=this.dataProvider.getRowHeaders(),r=n.length>0;let a=e.bom?String.fromCharCode(65279):"";return i&&(o=(0,s.arrayMap)(o,t=>this._escapeCell(t,{force:!0,sanitizeValue:e.sanitizeValues})),r&&(a+=e.columnDelimiter),a+=o.join(e.columnDelimiter),a+=e.rowDelimiter),(0,s.arrayEach)(t,(t,o)=>{o>0&&(a+=e.rowDelimiter),r&&(a+=this._escapeCell(n[o],{sanitizeValue:e.sanitizeValues}),a+=e.columnDelimiter);const i=t.map(t=>this._escapeCell(t,{sanitizeValue:e.sanitizeValues})).join(e.columnDelimiter);a+=i}),a}_escapeCell(e){let{force:t=!1,sanitizeValue:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(0,n.stringify)(e);return""===i||(o&&(t=!0),o instanceof RegExp?i=l(w,this,y).call(this,i,o):"function"==typeof o?i=o(i):o&&(i=l(w,this,v).call(this,i)),(t||i.indexOf(h)>=0||i.indexOf(c)>=0||i.indexOf(u)>=0||i.indexOf(this.options.columnDelimiter)>=0)&&(i=i.replace(new RegExp('"',"g"),'""'),i=`"${i}"`)),i}}function v(e){return e.startsWith(d)||e.startsWith(g)||e.startsWith(f)||e.startsWith(p)||e.startsWith(m)||e.startsWith(h)?`'${e}`:e}function y(e,t){return t.test(e)?`'${e}`:e}t.default=C},16937:(e,t,o)=>{"use strict";var i=o(19098),s=o(53001),n=o(60606),r=Object,a=i("".split);e.exports=s(function(){return!r("z").propertyIsEnumerable(0)})?function(e){return"String"===n(e)?a(e,""):r(e)}:r},17128:(e,t,o)=>{"use strict";t.__esModule=!0,t.rowHeaderScrollStrategy=function(e){return t=>{const o=(0,i.createScrollTargetCalculator)(e).getComputedRowTarget(t);e.scrollViewportTo({row:o},()=>{const t=!!e.getSettings().rowHeaders;(0,i.scrollWindowToCell)(e.getCell(o,t?-1:0,!0))})}};var i=o(31970)},17199:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostInlineEnd",callback(e){const{selection:t,columnIndexMapper:o}=e,{highlight:i,from:s,to:n}=e.getSelectedRangeActive();if(!t.isSelectedByRowHeader()&&!t.isSelectedByCorner()&&i.isCell()){const r=o.getNearestNotHiddenIndex(e.countCols()-1,-1),a=s.clone();a.col=i.col,t.markSource("keyboard"),t.setRangeStart(a,void 0,!1,i.clone()),t.setRangeEnd(e._createCellCoords(n.row,r)),t.markEndSource()}}}},17283:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300));t.RenderedAllRowsCalculationType=class{constructor(){(0,s.default)(this,"count",0),(0,s.default)(this,"startRow",0),(0,s.default)(this,"endRow",0),(0,s.default)(this,"startPosition",0),(0,s.default)(this,"isVisibleInTrimmingContainer",!0)}initialize(e){let{totalRows:t}=e;this.count=t,this.endRow=this.count-1}process(){}finalize(){}}},17286:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(77537);t.EDITOR_TYPE=i.EDITOR_TYPE,t.DateEditor=i.DateEditor},17313:(e,t,o)=>{"use strict";t.__esModule=!0,o(34478),o(940);var i=o(78966),s=o(4138),n=o(75204);t.default=class{constructor(e,t,o,i,s){this.dataAccessObject=e,this.wot=e.wot,this.instance=this.wot,this.domBindings=t,this.wtSettings=o,this.wtTable=s,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 n.RenderedAllRowsCalculationType:new n.RenderedRowsCalculationType],["fullyVisible",()=>new n.FullyVisibleRowsCalculationType],["partiallyVisible",()=>new n.PartiallyVisibleRowsCalculationType]]),this.columnsCalculatorTypes=new Map([["rendered",()=>this.wtSettings.getSetting("renderAllColumns")?new n.RenderedAllColumnsCalculationType:new n.RenderedColumnsCalculationType],["fullyVisible",()=>new n.FullyVisibleColumnsCalculationType],["partiallyVisible",()=>new n.PartiallyVisibleColumnsCalculationType]]),this.eventManager=i,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,i.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 i;if(o===t){const t=this.wtSettings.getSetting("totalColumns");i=this.wtTable.holder.offsetWidth,this.getRowHeaderWidth()+this.sumColumnWidths(0,t)>i&&(i=e.documentElement.clientWidth)}else i=o.clientWidth;return i}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,i=t.offsetHeight;return o<i||i>this.getWorkspaceHeight()}hasHorizontalScroll(){if(this.isVerticallyScrollableByWindow()){const e=this.domBindings.rootDocument.documentElement;return e.scrollWidth>e.clientWidth}const{hider:e}=this.wtTable,t=e.offsetWidth,o=this.hasVerticalScroll()?(0,i.getScrollbarWidth)():0;return t>this.getWorkspaceWidth()-o}isVerticallyScrollableByWindow(){return this.dataAccessObject.topOverlayTrimmingContainer===this.domBindings.rootWindow}isHorizontallyScrollableByWindow(){return this.dataAccessObject.inlineStartOverlayTrimmingContainer===this.domBindings.rootWindow}sumColumnWidths(e,t){let o=0,i=e;for(;i<t;)o+=this.wtTable.getColumnWidth(i),i+=1;return o}getWorkspaceOffset(){return(0,i.offset)(this.wtTable.holder)}getColumnHeaderHeight(){return this.wtSettings.getSetting("columnHeaders").length?isNaN(this.columnHeaderHeight)&&(this.columnHeaderHeight=(0,i.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,i=t.length;o<i;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,s=t.length;o<s;o++)e?(this.rowHeaderWidth+=(0,i.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 s,r,a=this.getViewportHeight();this.rowHeaderWidth=NaN;let l=this.dataAccessObject.topScrollPosition-this.dataAccessObject.topParentOffset;const h=t.getSetting("fixedRowsTop"),c=t.getSetting("fixedRowsBottom"),u=t.getSetting("totalRows");return h&&l>=0&&(r=this.dataAccessObject.topOverlay.sumCellSizes(0,h),l+=r,a-=r),c&&this.dataAccessObject.bottomOverlay.clone&&(r=this.dataAccessObject.bottomOverlay.sumCellSizes(u-c,u),a-=r),s=o.holder.clientHeight===o.holder.offsetHeight?0:(0,i.getScrollbarWidth)(this.domBindings.rootDocument),new n.ViewportRowsCalculator({calculationTypes:e.map(e=>[e,this.rowsCalculatorTypes.get(e)()]),viewportHeight:a,scrollOffset:l,totalRows:t.getSetting("totalRows"),defaultRowHeight:t.getSetting("stylesHandler").getDefaultRowHeight(),rowHeightFn:e=>o.getRowHeight(e),overrideFn:t.getSettingPure("viewportRowCalculatorOverride"),horizontalScrollbarHeight:s})}createColumnsCalculator(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["rendered","fullyVisible","partiallyVisible"];const{wtSettings:t,wtTable:o}=this;let s=this.getViewportWidth(),r=Math.abs(this.dataAccessObject.inlineStartScrollPosition)-this.dataAccessObject.inlineStartParentOffset;this.columnHeaderHeight=NaN;const a=t.getSetting("fixedColumnsStart");if(a&&r>=0){const e=this.dataAccessObject.inlineStartOverlay.sumCellSizes(0,a);r+=e,s-=e}return o.holder.clientWidth!==o.holder.offsetWidth&&(s-=(0,i.getScrollbarWidth)(this.domBindings.rootDocument)),new n.ViewportColumnsCalculator({calculationTypes:e.map(e=>[e,this.columnsCalculatorTypes.get(e)()]),viewportWidth:s,scrollOffset:r,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(),i=this.createColumnsCalculator();if(e&&!t.getSetting("renderAllRows")){const t=o.getResultsFor("fullyVisible"),i=o.getResultsFor("partiallyVisible");e=this.areAllProposedVisibleRowsAlreadyRendered(t,i)}if(e&&!t.getSetting("renderAllColumns")){const t=i.getResultsFor("fullyVisible"),o=i.getResultsFor("partiallyVisible");e=this.areAllProposedVisibleColumnsAlreadyRendered(t,o)}return e||(this.rowsRenderCalculator=o.getResultsFor("rendered"),this.columnsRenderCalculator=i.getResultsFor("rendered")),this.rowsVisibleCalculator=o.getResultsFor("fullyVisible"),this.columnsVisibleCalculator=i.getResultsFor("fullyVisible"),this.rowsPartiallyVisibleCalculator=o.getResultsFor("partiallyVisible"),this.columnsPartiallyVisibleCalculator=i.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,t){if(!this.rowsVisibleCalculator)return!1;let{startRow:o,endRow:i}=e;const{startRow:s,endRow:n}=t;if(null===o&&null===i){if(!e.isVisibleInTrimmingContainer&&!this.wtTable.isRowBeforeRenderedRows(s)&&!this.wtTable.isRowAfterRenderedRows(n))return!0;o=s,i=n}const{startRow:r,endRow:a,rowStartOffset:l,rowEndOffset:h}=this.rowsRenderCalculator,c=this.wtSettings.getSetting("totalRows")-1,u=this.wtSettings.getSetting("viewportRowRenderingThreshold");return Number.isInteger(u)&&u>0?(o=Math.max(0,o-Math.min(l,u)),i=Math.min(c,i+Math.min(h,u))):"auto"===u&&(o=Math.max(0,o-Math.ceil(l/2)),i=Math.min(c,i+Math.ceil(h/2))),!(o<r||o===r&&o>0)&&!(i>a||i===a&&i<c)}areAllProposedVisibleColumnsAlreadyRendered(e,t){if(!this.columnsVisibleCalculator)return!1;let{startColumn:o,endColumn:i}=e;const{startColumn:s,endColumn:n}=t;if(null===o&&null===i){if(!e.isVisibleInTrimmingContainer&&!this.wtTable.isColumnBeforeRenderedColumns(s)&&!this.wtTable.isColumnAfterRenderedColumns(n))return!0;o=s,i=n}const{startColumn:r,endColumn:a,columnStartOffset:l,columnEndOffset:h}=this.columnsRenderCalculator,c=this.wtSettings.getSetting("totalColumns")-1,u=this.wtSettings.getSetting("viewportColumnRenderingThreshold");return Number.isInteger(u)&&u>0?(o=Math.max(0,o-Math.min(l,u)),i=Math.min(c,i+Math.min(h,u))):"auto"===u&&(o=Math.max(0,o-Math.ceil(l/2)),i=Math.min(c,i+Math.ceil(h/2))),!(o<r||o===r&&o>0)&&!(i>a||i===a&&i<c)}resetHasOversizedColumnHeadersMarked(){(0,s.objectEach)(this.hasOversizedColumnHeadersMarked,(e,t,o)=>{o[t]=void 0})}}},17374:(e,t,o)=>{"use strict";var i=o(98363).f;e.exports=function(e,t,o){o in e||i(e,o,{configurable:!0,get:function(){return t[o]},set:function(e){t[o]=e}})}},17511:e=>{"use strict";e.exports={}},17604:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490);var i=o(25884);t.getDecreasedIndexes=i.getDecreasedIndexes,t.getIncreasedIndexes=i.getIncreasedIndexes;var s=o(69425),n=o(1471);const r=new Map([["indexesSequence",{getListWithInsertedItems:s.getListWithInsertedItems,getListWithRemovedItems:s.getListWithRemovedItems}],["physicallyIndexed",{getListWithInsertedItems:n.getListWithInsertedItems,getListWithRemovedItems:n.getListWithRemovedItems}]]);t.alterUtilsFactory=e=>{if(!1===r.has(e))throw new Error(`Alter strategy with ID '${e}' does not exist.`);return r.get(e)}},17725:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(34478),o(31143);var s=i(o(24300));t.ViewportBaseCalculator=class{constructor(e){(0,s.default)(this,"calculationTypes",[]),(0,s.default)(this,"calculationResults",new Map),this.calculationTypes=e}_initialize(e){this.calculationTypes.forEach(t=>{let[o,i]=t;this.calculationResults.set(o,i),i.initialize(e)})}_process(e,t){this.calculationTypes.forEach(o=>{let[,i]=o;return i.process(e,t)})}_finalize(e){this.calculationTypes.forEach(t=>{let[,o]=t;return o.finalize(e)})}getResultsFor(e){return this.calculationResults.get(e)}}},17738:(e,t,o)=>{"use strict";o(34478),o(31143),t.__esModule=!0;var i={createIndexMap:!0,HidingMap:!0,IndexMap:!0,LinkedPhysicalIndexToValueMap:!0,PhysicalIndexToValueMap:!0,TrimmingMap:!0};t.createIndexMap=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!u.has(e))throw new Error(`The provided map type ("${e}") does not exist.`);return new(u.get(e))(t)},o(52490);var s=o(74077);t.HidingMap=s.HidingMap;var n=o(30286);t.IndexMap=n.IndexMap;var r=o(35734);t.LinkedPhysicalIndexToValueMap=r.LinkedPhysicalIndexToValueMap;var a=o(9093);t.PhysicalIndexToValueMap=a.PhysicalIndexToValueMap;var l=o(95287);t.TrimmingMap=l.TrimmingMap;var h=o(79007);Object.keys(h).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===h[e]||(t[e]=h[e]))});var c=o(69425);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===c[e]||(t[e]=c[e]))});const u=new Map([["hiding",s.HidingMap],["index",n.IndexMap],["linkedPhysicalIndexToValue",r.LinkedPhysicalIndexToValueMap],["physicalIndexToValue",a.PhysicalIndexToValueMap],["trimming",l.TrimmingMap]])},17924:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724);var i=o(78966);function s(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 r(e,t){return e.get(l(e,t))}function a(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 h=new WeakMap,c=new WeakMap,u=new WeakSet;function d(e){let[t,o,s,n]=r(h,this).getCorners();if(t<0&&s<0||o<0&&n<0)return;const{wtTable:a}=r(c,this),l=t!==s||o!==n;if(o=Math.max(o,0),n=Math.max(n,0),t=Math.max(t,0),s=Math.max(s,0),l){if(o=Math.max(o,a.getFirstRenderedColumn()),n=Math.min(n,a.getLastRenderedColumn()),t=Math.max(t,a.getFirstRenderedRow()),s=Math.min(s,a.getLastRenderedRow()),n<o||s<t)return}else{const e=a.getCell(r(c,this).createCellCoords(t,o));if(!(0,i.isHTMLElement)(e))return}for(let i=t;i<=s;i+=1)for(let t=o;t<=n;t+=1)e(i,t)}function g(e){const{wtTable:t}=r(c,this),o=t.getRenderedRowsCount(),i=t.getRenderedColumnsCount();for(let s=0;s<o;s+=1){const o=t.rowFilter.renderedToSource(s);for(let s=0;s<i;s+=1)e(o,t.columnFilter.renderedToSource(s))}}t.SelectionScanner=class{constructor(){var e,t;n(e=this,t=u),t.add(e),s(this,h,void 0),s(this,c,void 0)}setActiveOverlay(e){return a(c,this,e),this}setActiveSelection(e){return a(h,this,e),this}scan(){const e=r(h,this).settings.selectionType,t=new Set;return"active-header"===e?(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanRowsInHeadersRange(e=>t.add(e))):"area"===e?this.scanCellsRange(e=>t.add(e)):"focus"===e?(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanRowsInHeadersRange(e=>t.add(e)),this.scanCellsRange(e=>t.add(e))):"fill"===e?this.scanCellsRange(e=>t.add(e)):"header"===e?(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanRowsInHeadersRange(e=>t.add(e))):"row"===e?(this.scanRowsInHeadersRange(e=>t.add(e)),this.scanRowsInCellsRange(e=>t.add(e))):"column"===e&&(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanColumnsInCellsRange(e=>t.add(e))),t}scanColumnsInHeadersRange(e){const[t,o,i,s]=r(h,this).getCorners(),{wtTable:n}=r(c,this),a=n.getRenderedColumnsCount(),l=n.getColumnHeadersCount();let u=0;for(let d=-n.getRowHeadersCount();d<a;d++){const a=n.columnFilter.renderedToSource(d);if(!(a<o||a>s)){for(let d=-l;d<0;d++){if(d<t||d>i)continue;const g=d+l;let f=n.getColumnHeader(a,g);const p=r(c,this).getSetting("onBeforeHighlightingColumnHeader",a,g,{selectionType:r(h,this).settings.selectionType,columnCursor:u,selectionWidth:s-o+1});null!==p&&(p!==a&&(f=n.getColumnHeader(p,g)),e(f))}u+=1}}}scanRowsInHeadersRange(e){const[t,o,i,s]=r(h,this).getCorners(),{wtTable:n}=r(c,this),a=n.getRenderedRowsCount(),l=n.getRowHeadersCount();let u=0;for(let d=-n.getColumnHeadersCount();d<a;d++){const a=n.rowFilter.renderedToSource(d);if(!(a<t||a>i)){for(let d=-l;d<0;d++){if(d<o||d>s)continue;const g=d+l;let f=n.getRowHeader(a,g);const p=r(c,this).getSetting("onBeforeHighlightingRowHeader",a,g,{selectionType:r(h,this).settings.selectionType,rowCursor:u,selectionHeight:i-t+1});null!==p&&(p!==a&&(f=n.getRowHeader(p,g)),e(f))}u+=1}}}scanCellsRange(e){const{wtTable:t}=r(c,this);l(u,this,d).call(this,(o,s)=>{const n=t.getCell(r(c,this).createCellCoords(o,s)),a=r(c,this).getSetting("onAfterDrawSelection",o,s,r(h,this).settings.layerLevel);"string"==typeof a&&(0,i.addClass)(n,a),e(n)})}scanRowsInCellsRange(e){const[t,,o]=r(h,this).getCorners(),{wtTable:i}=r(c,this);l(u,this,g).call(this,(s,n)=>{if(s>=t&&s<=o){const t=i.getCell(r(c,this).createCellCoords(s,n));e(t)}})}scanColumnsInCellsRange(e){const[,t,,o]=r(h,this).getCorners(),{wtTable:i}=r(c,this);l(u,this,g).call(this,(s,n)=>{if(n>=t&&n<=o){const t=i.getCell(r(c,this).createCellCoords(s,n));e(t)}})}}},18130:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostInlineStart",callback(e){const{selection:t,columnIndexMapper:o}=e,{highlight:i,from:s,to:n}=e.getSelectedRangeActive();if(!t.isSelectedByRowHeader()&&!t.isSelectedByCorner()&&i.isCell()){const r=parseInt(e.getSettings().fixedColumnsStart,10),a=o.getNearestNotHiddenIndex(r,1),l=s.clone();l.col=i.col,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,i.clone()),t.setRangeEnd(e._createCellCoords(n.row,a)),t.markEndSource()}}}},18252:(e,t,o)=>{"use strict";t.__esModule=!0,t.columnHeaderScrollStrategy=function(e){return t=>{const o=(0,i.createScrollTargetCalculator)(e).getComputedColumnTarget(t);e.scrollViewportTo({col:o},()=>{const t=!!e.getSettings().colHeaders;(0,i.scrollWindowToCell)(e.getCell(t?-1:0,o,!0))})}};var i=o(31970)},18253:(e,t,o)=>{"use strict";t.__esModule=!0,t.showColumn=function(e,t){if(!Number.isInteger(t))throw new Error("The passed gridColumnIndex argument has invalid type.");if(e.childs.length>0)throw new Error(i.toSingleLine`The passed node is not the last node on the tree. Only for\x20
56
56
  the last node, the show column modification can be applied.`);const{crossHiddenColumns:o}=e.data;if(!o.includes(t))return;let s=!1;if(e.walkUp(e=>{const{data:{collapsible:t}}=e;if(t)return s=!0,!1}),s)return;e.walkUp(e=>{const{data:o}=e;o.crossHiddenColumns.splice(o.crossHiddenColumns.indexOf(t),1),!o.isHidden&&o.colspan<o.origColspan&&(o.colspan+=1),o.isHidden=!1})},o(52490);var i=o(30738)},18350:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(19975),s=o(99343);const n=t.CELL_TYPE="handsontable";t.HandsontableCellType={CELL_TYPE:n,editor:i.HandsontableEditor,renderer:s.handsontableRenderer}},18378:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(23895),n=o(30595);const r=t.CONDITION_NAME="not_empty";function a(e,t){return!(0,s.getCondition)(n.CONDITION_NAME,t)(e)}(0,s.registerCondition)(r,a,{name:i.FILTERS_CONDITIONS_NOT_EMPTY,inputsCount:0,showOperators:!0})},18385:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(32813);const s=t.EDITOR_TYPE="numeric";class n extends i.TextEditor{static get EDITOR_TYPE(){return s}}t.NumericEditor=n},18514:(e,t)=>{"use strict";t.__esModule=!0;t.WORKING_SPACE_ALL=0,t.WORKING_SPACE_TOP=1,t.WORKING_SPACE_BOTTOM=2},18805:(e,t,o)=>{"use strict";t.__esModule=!0,o(99356);var i=o(4138),s=o(81761);const n={_localHooks:Object.create(null),addLocalHook(e,t){return this._localHooks[e]||(this._localHooks[e]=[]),this._localHooks[e].push(t),this},removeLocalHook(e,t){if(this._localHooks[e]){const o=this._localHooks[e].indexOf(t);o>-1&&this._localHooks[e].splice(o,1)}return this},runLocalHooks(e,t,o,i,n,r,a){if(this._localHooks[e]){const l=this._localHooks[e].length;for(let h=0;h<l;h++)(0,s.fastCall)(this._localHooks[e][h],this,t,o,i,n,r,a)}},clearLocalHooks(){return this._localHooks={},this}};(0,i.defineGetter)(n,"MIXIN_NAME","localHooks",{writable:!1,enumerable:!1});t.default=n},18814:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(31143),o(33098);var s=i(o(24300)),n=o(78966),r=o(79035),a=o(94576),l=o(38830),h=o(40929),c=o(7120),u=o(99700);function d(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 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;t.default=class{constructor(e,t,o,i,a,l){(0,s.default)(this,"wot",null),d(this,m,[]),(0,s.default)(this,"topOverlay",null),(0,s.default)(this,"bottomOverlay",null),(0,s.default)(this,"inlineStartOverlay",null),(0,s.default)(this,"topInlineStartCornerOverlay",null),(0,s.default)(this,"bottomInlineStartCornerOverlay",null),(0,s.default)(this,"browserLineHeight",void 0),(0,s.default)(this,"wtSettings",null),d(this,w,!1),d(this,C,0),d(this,v,null),(0,s.default)(this,"resizeObserver",new ResizeObserver(e=>{(0,r.requestAnimationFrame)(()=>{Array.isArray(e)&&e.length&&(g(C,this,f(C,this)+1),300===f(C,this)&&((0,c.warn)("The ResizeObserver callback was fired too many times in direct succession.\nThis may be due to an infinite loop caused by setting a dynamic height/width (for example, with the `dvh` units) to a Handsontable container's parent. \nThe observer will be disconnected."),this.resizeObserver.disconnect()),null!==f(v,this)&&clearTimeout(f(v,this)),g(v,this,setTimeout(()=>{g(C,this,0)},100)),this.wtSettings.getSetting("onContainerElementResize"))})})),this.wot=e,this.wtSettings=i,this.domBindings=o,this.facadeGetter=t,this.wtTable=l;const{rootDocument:h,rootWindow:u}=this.domBindings;this.instance=this.wot,this.eventManager=a,this.scrollbarSize=(0,n.getScrollbarWidth)(h);const p="hidden"===u.getComputedStyle(l.wtRootElement.parentNode).getPropertyValue("overflow");this.scrollableElement=p?l.holder:(0,n.getScrollableElement)(l.TABLE),this.initOverlays(),this.destroyed=!1,this.keyPressed=!1,this.spreaderLastSize={width:null,height:null},this.verticalScrolling=!1,this.horizontalScrolling=!1,this.initBrowserLineHeight(),this.registerListeners(),this.lastScrollX=u.scrollX,this.lastScrollY=u.scrollY}getOverlays(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=[...f(m,this)];return e&&t.push(this.wtTable),t}initBrowserLineHeight(){const{rootWindow:e,rootDocument:t}=this.domBindings,o=e.getComputedStyle(t.body),i=parseInt(o.lineHeight,10),s=1.2*parseInt(o.fontSize,10);this.browserLineHeight=i||s}initOverlays(){const e=[this.wot,this.facadeGetter,this.wtSettings,this.domBindings];this.topOverlay=new u.TopOverlay(...e),this.bottomOverlay=new u.BottomOverlay(...e),this.inlineStartOverlay=new u.InlineStartOverlay(...e),this.topInlineStartCornerOverlay=new u.TopInlineStartCornerOverlay(...e,this.topOverlay,this.inlineStartOverlay),this.bottomInlineStartCornerOverlay=new u.BottomInlineStartCornerOverlay(...e,this.bottomOverlay,this.inlineStartOverlay),g(m,this,[this.topOverlay,this.bottomOverlay,this.inlineStartOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay])}beforeDraw(){g(w,this,f(m,this).reduce((e,t)=>t.hasRenderingStateChanged()||e,!1)),f(m,this).forEach(e=>e.updateStateOfRendering("before"))}afterDraw(){this.syncScrollWithMaster(),f(m,this).forEach(e=>{const t=e.hasRenderingStateChanged();e.updateStateOfRendering("after"),t&&!e.needFullRender&&e.reset()})}refreshAll(){this.wot.drawn&&(this.wtTable.holder.parentNode?(this.wot.draw(!0),this.verticalScrolling&&this.inlineStartOverlay.onScroll(),this.horizontalScrolling&&this.topOverlay.onScroll(),this.verticalScrolling=!1,this.horizontalScrolling=!1):this.destroy())}registerListeners(){const{rootDocument:e,rootWindow:t}=this.domBindings,{mainTableScrollableElement:o}=this.topOverlay,{mainTableScrollableElement:i}=this.inlineStartOverlay;this.eventManager.addEventListener(e.documentElement,"keydown",e=>this.onKeyDown(e)),this.eventManager.addEventListener(e.documentElement,"keyup",()=>this.onKeyUp()),this.eventManager.addEventListener(e,"visibilitychange",()=>this.onKeyUp()),this.eventManager.addEventListener(o,"scroll",e=>this.onTableScroll(e),{passive:!0}),o!==i&&this.eventManager.addEventListener(i,"scroll",e=>this.onTableScroll(e),{passive:!0});const s=t.devicePixelRatio&&t.devicePixelRatio>1,n=this.scrollableElement===t,a=this.wtSettings.getSetting("preventWheel"),l={passive:n};(a||s||!(0,h.isChrome)())&&this.eventManager.addEventListener(this.wtTable.wtRootElement,"wheel",e=>this.onCloneWheel(e,a),l);let c;[this.topOverlay,this.bottomOverlay,this.inlineStartOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay].forEach(e=>{this.eventManager.addEventListener(e.clone.wtTable.holder,"wheel",e=>this.onCloneWheel(e,a),l)}),this.eventManager.addEventListener(t,"resize",()=>{(0,r.requestAnimationFrame)(()=>{clearTimeout(c),this.wtSettings.getSetting("onWindowResize"),c=setTimeout(()=>{g(C,this,0)},200)})}),n||this.resizeObserver.observe(this.wtTable.wtRootElement.parentElement)}onTableScroll(e){const t=this.domBindings.rootWindow,o=this.inlineStartOverlay.mainTableScrollableElement,i=this.topOverlay.mainTableScrollableElement,s=e.target;this.keyPressed&&(i!==t&&s!==t&&!e.target.contains(i)||o!==t&&s!==t&&!e.target.contains(o))||this.syncScrollPositions(e)}onCloneWheel(e,t){if(e.ctrlKey)return;const{rootWindow:o}=this.domBindings,i=this.inlineStartOverlay.mainTableScrollableElement,s=this.topOverlay.mainTableScrollableElement,n=e.target,r=s!==o&&n!==o&&!n.contains(s),a=i!==o&&n!==o&&!n.contains(i);if(this.keyPressed&&(r||a)||this.scrollableElement===o)return;const l=this.translateMouseWheelToScroll(e);(t||this.scrollableElement!==o&&l)&&e.preventDefault()}onKeyDown(e){this.keyPressed=(0,l.isKey)(e.keyCode,"ARROW_UP|ARROW_RIGHT|ARROW_DOWN|ARROW_LEFT")}onKeyUp(){this.keyPressed=!1}translateMouseWheelToScroll(e){let t=isNaN(e.deltaY)?-1*e.wheelDeltaY:e.deltaY,o=isNaN(e.deltaX)?-1*e.wheelDeltaX:e.deltaX;1===e.deltaMode&&(o+=o*this.browserLineHeight,t+=t*this.browserLineHeight);const i=this.scrollVertically(t),s=this.scrollHorizontally(o);return i||s}scrollVertically(e){const t=this.scrollableElement.scrollTop;return this.scrollableElement.scrollTop+=e,t!==this.scrollableElement.scrollTop}scrollHorizontally(e){const t=this.scrollableElement.scrollLeft;return this.scrollableElement.scrollLeft+=e,t!==this.scrollableElement.scrollLeft}syncScrollPositions(){if(this.destroyed)return;const e=this.topOverlay.clone.wtTable.holder,t=this.inlineStartOverlay.clone.wtTable.holder;let o=this.scrollableElement.scrollLeft,i=this.scrollableElement.scrollTop;if(this.wot.wtViewport.isHorizontallyScrollableByWindow()&&(o=this.scrollableElement.scrollX),this.wot.wtViewport.isVerticallyScrollableByWindow()&&(i=this.scrollableElement.scrollY),this.horizontalScrolling=this.lastScrollX!==o,this.verticalScrolling=this.lastScrollY!==i,this.lastScrollX=o,this.lastScrollY=i,this.horizontalScrolling){e.scrollLeft=o;const t=this.bottomOverlay.needFullRender?this.bottomOverlay.clone.wtTable.holder:null;t&&(t.scrollLeft=o)}this.verticalScrolling&&(t.scrollTop=i),this.refreshAll()}syncScrollWithMaster(){if(!f(w,this))return;const e=this.topOverlay.mainTableScrollableElement,{scrollLeft:t,scrollTop:o}=e;this.topOverlay.needFullRender&&(this.topOverlay.clone.wtTable.holder.scrollLeft=t),this.bottomOverlay.needFullRender&&(this.bottomOverlay.clone.wtTable.holder.scrollLeft=t),this.inlineStartOverlay.needFullRender&&(this.inlineStartOverlay.clone.wtTable.holder.scrollTop=o),g(w,this,!1)}updateMainScrollableElements(){this.eventManager.clearEvents(!0),this.inlineStartOverlay.updateMainScrollableElement(),this.topOverlay.updateMainScrollableElement(),this.bottomOverlay.needFullRender&&this.bottomOverlay.updateMainScrollableElement();const{wtTable:e}=this,{rootWindow:t}=this.domBindings;"hidden"===t.getComputedStyle(e.wtRootElement.parentNode).getPropertyValue("overflow")?this.scrollableElement=e.holder:this.scrollableElement=(0,n.getScrollableElement)(e.TABLE),this.registerListeners()}destroy(){this.resizeObserver.disconnect(),this.eventManager.destroy(),this.topOverlay.destroy(),this.bottomOverlay.clone&&this.bottomOverlay.destroy(),this.inlineStartOverlay.destroy(),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.destroy(),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.destroy(),this.destroyed=!0}refresh(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateLastSpreaderSize()&&this.adjustElementsSize(),this.bottomOverlay.clone&&this.bottomOverlay.refresh(e),this.inlineStartOverlay.refresh(e),this.topOverlay.refresh(e),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.refresh(e),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.refresh(e)}updateLastSpreaderSize(){const e=this.wtTable.spreader,t=e.clientWidth,o=e.clientHeight,i=t!==this.spreaderLastSize.width||o!==this.spreaderLastSize.height;return i&&(this.spreaderLastSize.width=t,this.spreaderLastSize.height=o),i}adjustElementsSize(){const{wtViewport:e}=this.wot,{wtTable:t}=this,{rootWindow:o}=this.domBindings,i=this.scrollableElement===o,s=this.wtSettings.getSetting("totalColumns"),n=this.wtSettings.getSetting("totalRows"),r=e.getRowHeaderWidth(),a=e.getColumnHeaderHeight(),l=this.wtSettings.getSetting("externalRowCalculator")?0:1,h=a+this.topOverlay.sumCellSizes(0,n)+l,c=r+this.inlineStartOverlay.sumCellSizes(0,s),u=t.hider.style,d=(()=>!i&&this.scrollableElement.scrollTop>Math.max(0,h-t.holder.clientHeight))()?1:0,g=(()=>!i&&this.scrollableElement.scrollLeft>Math.max(0,c-t.holder.clientWidth))()?1:0;u.width=`${c+g}px`,u.height=`${h+d}px`,this.topOverlay.adjustElementsSize(),this.inlineStartOverlay.adjustElementsSize(),this.bottomOverlay.adjustElementsSize()}expandHiderVerticallyBy(e){const{wtTable:t}=this;t.hider.style.height=`${parseInt(t.hider.style.height,10)+e}px`}expandHiderHorizontallyBy(e){const{wtTable:t}=this;t.hider.style.width=`${parseInt(t.hider.style.width,10)+e}px`}applyToDOM(){this.wtTable.isVisible()&&(this.topOverlay.applyToDOM(),this.bottomOverlay.clone&&this.bottomOverlay.applyToDOM(),this.inlineStartOverlay.applyToDOM())}getParentOverlay(e){if(!e)return null;const t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay];let o=null;return(0,a.arrayEach)(t,t=>{t&&t.clone&&t.clone.wtTable.TABLE.contains(e)&&(o=t.clone)}),o}syncOverlayTableClassNames(){const e=this.wtTable.TABLE,t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay];(0,a.arrayEach)(t,t=>{t&&(t.clone.wtTable.TABLE.className=e.className)})}}},18928:(e,t,o)=>{"use strict";t.__esModule=!0,t.shortcutsGridContext=function(e){const t=e.getShortcutManager().addContext("grid"),o=(0,n.createKeyboardShortcutCommandsPool)(e),r={runOnlyIf:()=>{const{navigableHeaders:t}=e.getSettings();return(0,i.isDefined)(e.getSelected())&&(t||!t&&e.countRenderedRows()>0&&e.countRenderedCols()>0)},group:s.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:s.EDITOR_EDIT_GROUP,runOnlyIf:()=>(0,i.isDefined)(e.getSelected())}),t.addShortcuts([{keys:[["Control/Meta","A"]],callback:()=>o.selectAllCells(),runOnlyIf:()=>{var t;return!(null!==(t=e.getSelectedRangeActive())&&void 0!==t&&t.highlight.isHeader())}},{keys:[["Control/Meta","A"]],callback:()=>{},runOnlyIf:()=>{var t;return null===(t=e.getSelectedRangeActive())||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.getSelectedRangeActive())&&void 0!==t&&t.highlight.isHeader())&&(null===(o=e.getSelectedRangeActive())||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()}],r)};var i=o(7886),s=o(6239),n=o(6941)},19034:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(73079),s=o(30459),n=o(58301);const r=t.CELL_TYPE="time";t.TimeCellType={CELL_TYPE:r,editor:i.TimeEditor,renderer:s.timeRenderer,validator:n.timeValidator}},19098:(e,t,o)=>{"use strict";var i=o(19682),s=Function.prototype,n=s.call,r=i&&s.bind.bind(n,n);e.exports=i?r:function(e){return function(){return n.apply(e,arguments)}}},19209:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(90643);var s=i(o(24300)),n=o(78966),r=o(94576),a=o(30738),l=o(69572),h=o(13280),c=o(13306),u=o(24014),d=o(5665),g=o(35450);function f(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}var p=new WeakSet;class m extends l.BaseComponent{constructor(e,t){super(e,{id:t.id,stateless:!1}),f(this,p),(0,s.default)(this,"name",""),this.name=t.name,this.buildOperatorsElement()}getMenuItemDescriptor(){return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:()=>this.isHidden(),renderer:(e,t)=>((0,n.addClass)(t.parentNode,"htFiltersMenuOperators"),(0,r.arrayEach)(this.elements,e=>t.appendChild(e.element)),t)}}buildOperatorsElement(){const e=[c.OPERATION_ID,u.OPERATION_ID];(0,r.arrayEach)(e,t=>{const o=new g.RadioInputUI(this.hot,{name:"operator",label:{htmlFor:t,textContent:(0,h.getOperationName)(t)},value:t,checked:t===e[0],id:t});o.addLocalHook("change",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")}(p,this,w).call(this,e)),this.elements.push(o)})}setChecked(e){if(this.elements.length<e)throw Error(a.toSingleLine`Radio button with index ${e} doesn't exist.`);(0,r.arrayEach)(this.elements,(t,o)=>{t.setChecked(o===e)})}getActiveOperationId(){const e=this.elements.find(e=>e instanceof g.RadioInputUI&&e.isChecked());return e?e.getValue():c.OPERATION_ID}getState(){return this.getActiveOperationId()}setState(e){this.reset(),e&&this.getActiveOperationId()!==e&&(0,r.arrayEach)(this.elements,t=>{t.setChecked(t.getValue()===e)})}updateState(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.OPERATION_ID,t=arguments.length>1?arguments[1]:void 0,o=e;o===d.OPERATION_ID&&(o=u.OPERATION_ID),this.state.setValueAtIndex(t,o)}reset(){this.setChecked(0)}}function w(e){this.setState(e.target.value)}t.OperatorsComponent=m},19267:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300));t.FixedPageSizeStrategy=class{constructor(){(0,s.default)(this,"pageSize",1),(0,s.default)(this,"totalItems",0),(0,s.default)(this,"totalPages",0)}calculate(e){let{pageSize:t,totalItems:o}=e;this.pageSize=Math.max(t,1),this.totalItems=o,this.totalPages=Math.max(1,Math.ceil(this.totalItems/this.pageSize))}getTotalPages(){return this.totalPages}getState(e){if((e-=1)<0||e>=this.getTotalPages())return;const t=e*this.pageSize;return{startIndex:t,endIndex:Math.max(0,Math.min(t+this.pageSize-1,this.totalItems-1)),pageSize:this.pageSize}}}},19439:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionDownByViewportHeight",callback(e){const{selection:t,rowIndexMapper:o}=e,{to:i}=e.getSelectedRangeActive(),s=Math.min(i.row+e.countVisibleRows(),e.countRows()-1),n=o.getNearestNotHiddenIndex(s,-1);if(null!==n){const o=e._createCellCoords(n,i.col),s=i.row-e.getFirstFullyVisibleRow(),r=Math.min(o.row-s,e.countRows()-1);t.markSource("keyboard"),t.setRangeEnd(o,e.getActiveSelectionLayerIndex()),t.markEndSource(),e.scrollViewportTo({row:r,verticalSnap:"top",horizontalSnap:"start"})}}}},19451:(e,t,o)=>{"use strict";var i=o(19098),s=o(82683),n=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return n(s(e),t)}},19497:(e,t,o)=>{"use strict";t.__esModule=!0,t.rootComparator=function(e,t){return function(o,s){const[,...n]=o,[,...r]=s;return function(o){const s=e[o],a=t[o],l=n[o],h=r[o],c=a.columnSorting;return(c.compareFunctionFactory?c.compareFunctionFactory:(0,i.getCompareFunctionFactory)(a.type))(s,a,c)(l,h)}(0)}};var i=o(70705)},19682:(e,t,o)=>{"use strict";var i=o(53001);e.exports=!i(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},19975:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(42207);t.EDITOR_TYPE=i.EDITOR_TYPE,t.HandsontableEditor=i.HandsontableEditor},20106:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(34478),o(940);var s=i(o(24300)),n=o(4138),r=o(55656),a=o(7886);const l=["sortEmptyCells","indicator","headerAction","compareFunctionFactory"];t.ColumnStatesManager=class{constructor(e,t){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"sortingStates",new r.LinkedPhysicalIndexToValueMap),(0,s.default)(this,"sortEmptyCells",false),(0,s.default)(this,"indicator",true),(0,s.default)(this,"headerAction",true),(0,s.default)(this,"compareFunctionFactory",void 0),(0,s.default)(this,"mapName",void 0),this.hot=e,this.mapName=t,this.hot.columnIndexMapper.registerMap(t,this.sortingStates)}updateAllColumnsProperties(e){(0,n.isObject)(e)&&(0,n.objectEach)(e,(e,t)=>{l.includes(t)&&(this[t]=e)})}getAllColumnsProperties(){const e={sortEmptyCells:this.sortEmptyCells,indicator:this.indicator,headerAction:this.headerAction};return"function"==typeof this.compareFunctionFactory&&(e.compareFunctionFactory=this.compareFunctionFactory),e}getSortOrderOfColumn(e){var t;return null===(t=this.sortingStates.getValueAtIndex(this.hot.toPhysicalColumn(e)))||void 0===t?void 0:t.sortOrder}getIndexOfColumnInSortQueue(e){return e=this.hot.toPhysicalColumn(e),this.sortingStates.getEntries().findIndex(t=>{let[o]=t;return o===e})}getNumberOfSortedColumns(){return this.sortingStates.getLength()}isListOfSortedColumnsEmpty(){return 0===this.getNumberOfSortedColumns()}isColumnSorted(e){return(0,n.isObject)(this.sortingStates.getValueAtIndex(this.hot.toPhysicalColumn(e)))}getSortStates(){if(null===this.sortingStates)return[];return this.sortingStates.getEntries().map(e=>{let[t,o]=e;return{column:this.hot.toVisualColumn(t),...o}})}getColumnSortState(e){const t=this.getSortOrderOfColumn(e);if((0,a.isDefined)(t))return{column:e,sortOrder:t}}setSortStates(e){this.sortingStates.clear();for(let t=0;t<e.length;t+=1)this.sortingStates.setValueAtIndex(this.hot.toPhysicalColumn(e[t].column),{sortOrder:e[t].sortOrder})}destroy(){this.hot.columnIndexMapper.unregisterMap(this.mapName),this.sortingStates=null}}},20347:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=r;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(23895);const n=t.CONDITION_NAME="gt";function r(e,t){let[o]=t,i=o;return"numeric"===e.meta.type&&(i=parseFloat(i,10)),e.value>i}(0,s.registerCondition)(n,r,{name:i.FILTERS_CONDITIONS_GREATER_THAN,inputsCount:1,showOperators:!0})},20419:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(8249),o(31835);var s=i(o(24300));t.FullyVisibleColumnsCalculationType=class{constructor(){(0,s.default)(this,"count",0),(0,s.default)(this,"startColumn",null),(0,s.default)(this,"endColumn",null),(0,s.default)(this,"startPosition",null),(0,s.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedWidth:o,zeroBasedScrollOffset:i,viewportWidth:s,columnWidth:n}=t;o>=i&&o+n<=i+(i>0?s+1:s)&&(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=e),this.endColumn=e)}finalize(e){var t;const{scrollOffset:o,viewportWidth:i,inlineStartOffset:s,zeroBasedScrollOffset:n,totalColumns:r,needReverse:a,startPositions:l,columnWidth:h}=e;if(this.endColumn===r-1&&a)for(this.startColumn=this.endColumn;this.startColumn>0;){const e=l[this.endColumn]+h-l[this.startColumn-1];if(e<=i&&(this.startColumn-=1),e>=i)break}this.startPosition=null!==(t=l[this.startColumn])&&void 0!==t?t:null;const c=o+i-(n>0?i+1:i),u=null===this.startColumn?0:e.getColumnWidth(this.startColumn);c<-1*s||o>l.at(-1)||-1*o-i>-1*u?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,r<this.endColumn&&(this.endColumn=r-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}},20637:(e,t,o)=>{"use strict";var i=o(2382),s=o(98363),n=o(70906);e.exports=i?function(e,t,o){return s.f(e,t,n(1,o))}:function(e,t,o){return e[t]=o,e}},20683:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"commentsAddEdit",name(){var t;const o=null===(t=this.getSelectedRangeActive())||void 0===t?void 0:t.highlight;return null!=o&&o.isCell()&&e.getCommentAtCell(o.row,o.col)?this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_EDIT_COMMENT):this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_ADD_COMMENT)},callback(){const t=this.getSelectedRangeActive();e.setRange(t),e.show(),e.focusEditor()},disabled(){const e=this.getSelectedRangeActive();return!!(!e||e.highlight.isHeader()||this.selection.isEntireRowSelected()&&this.selection.isEntireColumnSelected()||0===this.countRenderedRows()||0===this.countRenderedCols())}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481))},20737:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(72623);t.valueGetter=i.valueGetter;var s=o(95115);t.valueSetter=s.valueSetter},20743:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(38829);t.RENDERER_TYPE=i.RENDERER_TYPE,t.htmlRenderer=i.htmlRenderer},20846:e=>{"use strict";e.exports=i},20853:(e,t,o)=>{"use strict";t.__esModule=!0,t.timeRenderer=n;var i=o(54657);const s=t.RENDERER_TYPE="time";function n(e,t,o,s,n,r,a){i.textRenderer.apply(this,[e,t,o,s,n,r,a]),t.dir="ltr"}n.RENDERER_TYPE=s},21034:(e,t,o)=>{"use strict";function i(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 n(e,t){return e.get(a(e,t))}function r(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")}t.__esModule=!0,o(52490);var l=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 i=a(c,this,d).call(this,n(l,this),e.row,t);if(null===i)return null;const s=a(c,this,d).call(this,n(h,this),e.col,o);return null===s?null:e.clone().assign({row:i,col:s})}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 n,a;s(n=this,a=c),a.add(n),i(this,l,void 0),i(this,h,void 0),r(l,this,t),r(h,this,o)}toRenderable(e){const t="N-S"===e.getVerticalDirection()?1:-1,o="W-E"===e.getHorizontalDirection()?1:-1,i=a(c,this,u).call(this,e.from,t,o);if(null===i)return null;const s=a(c,this,u).call(this,e.to,-t,-o);if(null===s)return null;const n=e.clone();return n.from=i,n.to=s,n.includes(e.highlight)||(n.highlight=i),n}}},21077:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(99356),o(34478),o(31143);var s=i(o(24300)),n=o(631),r=o(84922),a=o(58604),l=o(94576);class h extends n.BaseAction{constructor(e){let{index:t,indexes:o,data:i,amount:n,headers:r,columnPositions:a,rowPositions:l,fixedColumnsStart:h,removedCellMetas:c}=e;super("remove_col"),(0,s.default)(this,"index",void 0),(0,s.default)(this,"indexes",void 0),(0,s.default)(this,"data",void 0),(0,s.default)(this,"amount",void 0),(0,s.default)(this,"headers",void 0),(0,s.default)(this,"columnPositions",void 0),(0,s.default)(this,"rowPositions",void 0),(0,s.default)(this,"fixedColumnsStart",void 0),(0,s.default)(this,"removedCellMetas",void 0),this.index=t,this.indexes=o,this.data=i,this.amount=n,this.headers=r,this.columnPositions=a.slice(0),this.rowPositions=l.slice(0),this.fixedColumnsStart=h,this.removedCellMetas=c}static startRegisteringEvents(e,t){e.addHook("beforeRemoveCol",(o,i,s,n)=>{t.done(()=>{const t=e.getSourceDataArray(),s=(e.countCols()+o)%e.countCols(),n=s+i-1,l=[],c=[],u=[];return(0,a.rangeEach)(t.length-1,o=>{const i=[],r=t[o];(0,a.rangeEach)(s,n,t=>{i.push(r[e.toPhysicalColumn(t)])}),l.push(i)}),(0,a.rangeEach)(i-1,t=>{u.push(e.toPhysicalColumn(s+t))}),Array.isArray(e.getSettings().colHeaders)&&(0,a.rangeEach)(i-1,t=>{c.push(e.getSettings().colHeaders[e.toPhysicalColumn(s+t)]||null)}),new h({index:s,indexes:u,data:l,amount:i,headers:c,columnPositions:e.columnIndexMapper.getIndexesSequence(),rowPositions:e.rowIndexMapper.getIndexesSequence(),fixedColumnsStart:e.getSettings().fixedColumnsStart,removedCellMetas:(0,r.getCellMetas)(e,0,e.countRows(),s,n)})},n)})}undo(e,t){e.getSettings().fixedColumnsStart=this.fixedColumnsStart;const o=this.indexes.slice(0).sort(),i=(e,t,i)=>i[this.indexes.indexOf(o[t])],s=this.data.length,n=[];for(let e=0;e<s;e++)n.push((0,l.arrayMap)(this.data[e],i));const r=(0,l.arrayMap)(this.headers,i),a=[];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,l.arrayEach)(e.getSourceDataArray(),(e,t)=>{(0,l.arrayEach)(o,(o,i)=>{e[o]=n[t][i],a.push([t,o,e[o]])})}),void 0!==this.headers&&(0,l.arrayEach)(r,(t,i)=>{e.getSettings().colHeaders[o[i]]=t}),this.removedCellMetas.forEach(t=>{let[o,i,s]=t;e.setCellMetaObject(o,i,s)}),e.addHookOnce("afterViewRender",t),e.setSourceDataAtCell(a,null,null,"UndoRedo.undo")}redo(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.redo")}}t.RemoveColumnAction=h},21177:e=>{"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},21247:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(71333);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.UndoRedo=i.UndoRedo},21439:(e,t,o)=>{"use strict";var i=o(19098),s=Error,n=i("".replace),r=String(new s("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,l=a.test(r);e.exports=function(e,t){if(l&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=n(e,a,"");return e}},21577:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_CLEAR_COLUMN)},callback(e,t){const o=t[0].start.col,i=t[0].end.col;this.countRows()&&this.populateFromArray(0,o,[[null]],Math.max(t[0].start.row,t[0].end.row),i,"ContextMenu.clearColumn")},disabled(){const e=this.getSelectedRangeActive();if(!e||e.isSingleHeader()&&e.highlight.col<0||!this.selection.isSelectedByColumnHeader())return!0;let t=!1;return e.forAll((e,o)=>{if(e<0||o<0)return!0;const{readOnly:i}=this.getCellMeta(e,o);return!!i||(t=!0,!1)}),!t}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481));const s=t.KEY="clear_column"},21602:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(4138),r=o(28520),a=i(o(14843));const l=["data","width"];t.default=class{constructor(e){(0,s.default)(this,"globalMeta",void 0),(0,s.default)(this,"metas",new a.default(()=>this._createMeta())),this.globalMeta=e,this.metas=new a.default(()=>this._createMeta())}updateMeta(e,t){const o=this.getMeta(e);(0,n.extend)(o,t),(0,r.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,r.columnFactory)(this.globalMeta.getMetaConstructor(),l).prototype}}},21639:(e,t,o)=>{"use strict";var i=o(72820),s=o(77439),n=o(70792),r=o(90501),a=o(21177),l=o(64276),h=o(91509),c=o(33973),u=o(99793),d=o(47150),g=o(14483),f=!c&&!d("filter",function(){}),p=!c&&!f&&g("filter",TypeError),m=c||f||p,w=l(function(){for(var e,t,o=this.iterator,i=this.predicate,n=this.next;;){if(e=r(s(n,o)),this.done=!!e.done)return;if(t=e.value,h(o,i,[t,this.counter++],!0))return t}});i({target:"Iterator",proto:!0,real:!0,forced:m},{filter:function(e){r(this);try{n(e)}catch(e){u(this,"throw",e)}return p?s(p,this,e):new w(a(this),{predicate:e})}})},21769:(e,t,o)=>{"use strict";var i=o(19098),s=o(53001),n=o(44827),r=o(19451),a=o(2382),l=o(10768).CONFIGURABLE,h=o(88932),c=o(62579),u=c.enforce,d=c.get,g=String,f=Object.defineProperty,p=i("".slice),m=i("".replace),w=i([].join),C=a&&!s(function(){return 8!==f(function(){},"length",{value:8}).length}),v=String(String).split("String"),y=e.exports=function(e,t,o){"Symbol("===p(g(t),0,7)&&(t="["+m(g(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),o&&o.getter&&(t="get "+t),o&&o.setter&&(t="set "+t),(!r(e,"name")||l&&e.name!==t)&&(a?f(e,"name",{value:t,configurable:!0}):e.name=t),C&&o&&r(o,"arity")&&e.length!==o.arity&&f(e,"length",{value:o.arity});try{o&&r(o,"constructor")&&o.constructor?a&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var i=u(e);return r(i,"source")||(i.source=w(v,"string"==typeof t?t:"")),e};Function.prototype.toString=y(function(){return n(this)&&d(this).source||h(this)},"toString")},21831:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(37359);t.EDITOR_TYPE=i.EDITOR_TYPE,t.CheckboxEditor=i.CheckboxEditor},22208:(e,t,o)=>{"use strict";var i=o(79268);e.exports=function(e){return i(e.length)}},22342:(e,t,o)=>{"use strict";o(34478),o(31143),t.__esModule=!0;var i=o(65745);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))});var s=o(63988);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))})},22385:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(78966),r=i(o(66421)),a=o(65820),l=o(66649);class h extends a.Overlay{constructor(e,t,o,i,n,r){super(e,t,l.CLONE_TOP_INLINE_START_CORNER,o,i),(0,s.default)(this,"topOverlay",void 0),(0,s.default)(this,"inlineStartOverlay",void 0),this.topOverlay=n,this.inlineStartOverlay=r}createTable(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return new r.default(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderTopOverlay")&&this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}resetFixedPosition(){if(this.updateTrimmingContainer(),!this.wot.wtTable.holder.parentNode)return!1;const e=this.clone.wtTable.holder.parentNode;if(this.trimmingContainer===this.domBindings.rootWindow){const t=this.inlineStartOverlay.getOverlayOffset()*(this.isRtl()?-1:1),o=this.topOverlay.getOverlayOffset();(0,n.setOverlayPosition)(e,`${t}px`,`${o}px`)}else(0,n.resetCssTransform)(e);let t=(0,n.outerHeight)(this.clone.wtTable.TABLE);const o=(0,n.outerWidth)(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(t=0),e.style.height=`${t}px`,e.style.width=`${o}px`,!1}}t.TopInlineStartCornerOverlay=h},22715:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300));t.ViewSize=class{constructor(){(0,s.default)(this,"currentSize",0),(0,s.default)(this,"nextSize",0),(0,s.default)(this,"currentOffset",0),(0,s.default)(this,"nextOffset",0)}setSize(e){this.currentSize=this.nextSize,this.nextSize=e}setOffset(e){this.currentOffset=this.nextOffset,this.nextOffset=e}}},22746:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(64039);var s=i(o(24300));t.ViewOrder=class{constructor(e,t){(0,s.default)(this,"order",[]),this.order=[...Array(t).keys()].map(t=>e+t)}get length(){return this.order.length}has(e){return this.order.indexOf(e)>-1}get(e){return e<this.order.length?this.order[e]:-1}remove(e){this.order.splice(this.order.indexOf(e),1)}prepend(e){return this.order.unshift(e),this.order.pop()}}},22823:(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()}}},22849:(e,t,o)=>{"use strict";var i=o(20637),s=o(21439),n=o(11613),r=Error.captureStackTrace;e.exports=function(e,t,o,a){n&&(r?r(e,t):i(e,"stack",s(o,a)))}},22888:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.condition=l;var s=i(o(86798)),n=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),r=o(23895);const a=t.CONDITION_NAME="date_tomorrow";function l(e){const t=(0,s.default)(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame((0,s.default)().subtract(-1,"days").startOf("day"),"d")}(0,r.registerCondition)(a,l,{name:n.FILTERS_CONDITIONS_TOMORROW,inputsCount:0})},23002:(e,t,o)=>{"use strict";var i=o(19098),s=0,n=Math.random(),r=i(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++s+n,36)}},23228:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(99356);var s=i(o(24300)),n=o(94576),r=o(2744),a=o(7120),l=o(30738),h=o(81761),c=o(79521),u=o(44624);const d=l.toSingleLine`The plugin hook "[hookName]" was removed in Handsontable [removedInVersion].\x20
57
57
  Please consult release notes https://github.com/handsontable/handsontable/releases/tag/[removedInVersion] to\x20
58
58
  learn about the migration path.`;class g{constructor(){(0,s.default)(this,"globalBucket",new u.HooksBucket)}static getSingleton(){return f}getBucket(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?(e.pluginHookBucket||(e.pluginHookBucket=new u.HooksBucket),e.pluginHookBucket):this.globalBucket}add(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return Array.isArray(t)?(0,n.arrayEach)(t,t=>this.add(e,t,o)):(c.REMOVED_HOOKS.has(e)&&(0,a.warn)((0,r.substitute)(d,{hookName:e,removedInVersion:c.REMOVED_HOOKS.get(e)})),c.DEPRECATED_HOOKS.has(e)&&(0,a.warn)(c.DEPRECATED_HOOKS.get(e)),this.getBucket(o).add(e,t,{orderIndex:i,runOnce:!1})),this}once(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return Array.isArray(t)?(0,n.arrayEach)(t,t=>this.once(e,t,o)):this.getBucket(o).add(e,t,{orderIndex:i,runOnce:!0}),this}addAsFixed(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Array.isArray(t)?(0,n.arrayEach)(t,t=>this.addAsFixed(e,t,o)):this.getBucket(o).add(e,t,{initialHook:!0}),this}remove(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this.getBucket(o).remove(e,t)}has(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.getBucket(t).has(e)}run(e,t,o,i,s,n,r,a){{const l=this.getBucket().getHooks(t),c=l?l.length:0;let u=0;if(c)for(;u<c;){if(!l[u]||l[u].skip){u+=1;continue}const c=(0,h.fastCall)(l[u].callback,e,o,i,s,n,r,a);void 0!==c&&(o=c),l[u]&&l[u].runOnce&&this.remove(t,l[u].callback),u+=1}}{const l=this.getBucket(e).getHooks(t),c=l?l.length:0;let u=0;if(c)for(;u<c;){if(!l[u]||l[u].skip){u+=1;continue}const c=(0,h.fastCall)(l[u].callback,e,o,i,s,n,r,a);void 0!==c&&(o=c),l[u]&&l[u].runOnce&&this.remove(t,l[u].callback,e),u+=1}}return o}destroy(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.getBucket(e).destroy()}register(e){this.isRegistered(e)||c.REGISTERED_HOOKS.push(e)}deregister(e){this.isRegistered(e)&&c.REGISTERED_HOOKS.splice(c.REGISTERED_HOOKS.indexOf(e),1)}isDeprecated(e){return c.DEPRECATED_HOOKS.has(e)||c.REMOVED_HOOKS.has(e)}isRegistered(e){return c.REGISTERED_HOOKS.indexOf(e)>=0}getRegistered(){return c.REGISTERED_HOOKS}}t.Hooks=g;const f=new g;t.default=g},23552:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"scrollToFocusedCell",callback(e){const{highlight:t}=e.getSelectedRangeActive(),o=e.getFirstFullyVisibleRow()-1,i=e.getFirstFullyVisibleColumn()-1,s=e.getLastFullyVisibleRow()+1,n=e.getLastFullyVisibleColumn()+1,r=e._createCellCoords(o,i),a=e._createCellCoords(s,n);if(!e._createCellRange(r,r,a).includes(t)&&(t.row>=0||t.col>=0)){const o={};if(t.col>=0){const i=Math.floor(e.countVisibleCols()/2);o.col=Math.max(t.col-i,0)}if(t.row>=0){const i=Math.floor(e.countVisibleRows()/2);o.row=Math.max(t.row-i,0)}e.scrollViewportTo({...o,verticalSnap:"top",horizontalSnap:"start"})}}}},23720:(e,t,o)=>{"use strict";var i=o(21769),s=o(98363);e.exports=function(e,t,o){return o.get&&i(o.get,t,{getter:!0}),o.set&&i(o.set,t,{setter:!0}),s.f(e,t,o)}},23791:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=i(o(24300)),n=o(26808),r=i(o(41691)),a=i(o(48360));function l(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",r.default],["strict",a.default]]);var d=new WeakSet;class g extends n.BasePlugin{constructor(){super(...arguments),l(this,d),(0,s.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},23895:(e,t,o)=>{"use strict";t.__esModule=!0,t.getCondition=function(e,t){if(!i[e])throw Error(`Filter condition "${e}" does not exist.`);const{condition:o,descriptor:s}=i[e];let n=t;s.inputValuesDecorator&&(n=s.inputValuesDecorator(n));return function(e){return o.apply(e.meta.instance,[].concat([e],[n]))}},t.getConditionDescriptor=function(e){if(!i[e])throw Error(`Filter condition "${e}" does not exist.`);return i[e].descriptor},t.registerCondition=function(e,t,o){o.key=e,i[e]={condition:t,descriptor:o}},o(52490);const i=t.conditions={}},24014:(e,t,o)=>{"use strict";t.__esModule=!0,t.operationResult=a,o(34478),o(81056);var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(13280);const n=t.OPERATION_ID="disjunction",r=t.SHORT_NAME_FOR_COMPONENT=i.FILTERS_LABELS_DISJUNCTION;function a(e,t){return e.some(e=>e.func(t))}(0,s.registerOperation)(n,r,a)},24135:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(97043);t.EDITOR_TYPE=i.EDITOR_TYPE,t.DropdownEditor=i.DropdownEditor},24173:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(1011);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.ManualRowResize=i.ManualRowResize},24181:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(78966);t.default=class{constructor(e,t){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"nestedHeaderSettingsGetter",void 0),(0,s.default)(this,"layersCount",0),(0,s.default)(this,"container",void 0),(0,s.default)(this,"widthsMap",void 0),this.hot=e,this.nestedHeaderSettingsGetter=t,this.widthsMap=this.hot.columnIndexMapper.createAndRegisterIndexMap("nestedHeaders.widthsMap","physicalIndexToValue")}setLayersCount(e){return this.layersCount=e,this}getWidth(e){return this.widthsMap.getValueAtIndex(this.hot.toPhysicalColumn(e))}buildWidthsMap(){const e=this.hot.getCurrentThemeName();this.container=this.hot.rootDocument.createElement("div"),this.container.classList.add("handsontable","htGhostTable","htAutoSize"),e&&this.container.classList.add(e),this._buildGhostTable(this.container),this.hot.rootDocument.body.appendChild(this.container);const t=this.container.querySelectorAll("tr:last-of-type th"),o=t.length;this.widthsMap.clear();for(let e=0;e<o;e++){const o=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e),i=this.hot.toPhysicalColumn(o);this.widthsMap.setValueAtIndex(i,t[e].offsetWidth)}this.container.parentNode.removeChild(this.container),this.container=null}_buildGhostTable(e){const{rootDocument:t,columnIndexMapper:o}=this.hot,i=t.createDocumentFragment(),s=t.createElement("table"),r=!!this.hot.getSettings().dropdownMenu,a=o.getRenderableIndexesLength();for(let e=0;e<this.layersCount;e++){const i=t.createElement("tr");for(let s=0;s<a;s++){let a=o.getVisualFromRenderableIndex(s);null===a&&(a=s);const l=t.createElement("th"),h=this.nestedHeaderSettingsGetter(e,a);if(h&&(!h.isPlaceholder||h.isHidden)){let e=h.label;r&&(e+='<button class="changeType"></button>'),(0,n.fastInnerHTML)(l,e),l.colSpan=h.colspan,i.appendChild(l)}}s.appendChild(i)}i.appendChild(s),e.appendChild(i)}clear(){this.widthsMap.clear(),this.container=null}}},24300:(e,t,o)=>{var i=o(74851);e.exports=function(e,t,o){return(t=i(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},e.exports.__esModule=!0,e.exports.default=e.exports},24699:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(99356);var s=i(o(24300)),n=o(78966),r=o(2744),a=i(o(59468)),l=i(o(81430)),h=i(o(90116)),c=i(o(96253));t.default=class{get eventManager(){return new a.default(this)}constructor(e,t){(0,s.default)(this,"wtTable",void 0),(0,s.default)(this,"wtScroll",void 0),(0,s.default)(this,"wtViewport",void 0),(0,s.default)(this,"wtOverlays",void 0),(0,s.default)(this,"selectionManager",void 0),(0,s.default)(this,"wtEvent",void 0),(0,s.default)(this,"guid",`wt_${(0,r.randomString)()}`),(0,s.default)(this,"drawInterrupted",!1),(0,s.default)(this,"drawn",!1),(0,s.default)(this,"activeOverlayName","master"),(0,s.default)(this,"domBindings",void 0),(0,s.default)(this,"wtSettings",void 0),this.domBindings={rootTable:e,rootDocument:e.ownerDocument,rootWindow:e.ownerDocument.defaultView},this.wtSettings=t,this.wtScroll=new l.default(this.createScrollDao())}findOriginalHeaders(){const e=[];if(this.wtTable.THEAD.childNodes.length&&this.wtTable.THEAD.childNodes[0].childNodes.length){for(let t=0,o=this.wtTable.THEAD.childNodes[0].childNodes.length;t<o;t++)e.push(this.wtTable.THEAD.childNodes[0].childNodes[t].innerHTML);this.wtSettings.getSetting("columnHeaders").length||this.wtSettings.update("columnHeaders",[function(t,o){(0,n.fastInnerText)(o,e[t])}])}}createCellCoords(e,t){return new h.default(e,t,this.wtSettings.getSetting("rtlMode"))}createCellRange(e,t,o){return new c.default(e,t,o,this.wtSettings.getSetting("rtlMode"))}draw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.drawInterrupted=!1,!this.wtTable.isVisible()||(0,n.hasZeroHeight)(this.wtTable.wtRootElement.parentNode)?this.drawInterrupted=!0:this.wtTable.draw(e),this}getCell(e){if(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))return this.wtTable.getCell(e);const t=this.wtSettings.getSetting("totalRows"),o=this.wtSettings.getSetting("fixedRowsTop"),i=this.wtSettings.getSetting("fixedRowsBottom"),s=this.wtSettings.getSetting("fixedColumnsStart");if(e.row<o&&e.col<s)return this.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.getCell(e);if(e.row<o)return this.wtOverlays.topOverlay.clone.wtTable.getCell(e);if(e.col<s&&e.row>=t-i){if(this.wtOverlays.bottomInlineStartCornerOverlay&&this.wtOverlays.bottomInlineStartCornerOverlay.clone)return this.wtOverlays.bottomInlineStartCornerOverlay.clone.wtTable.getCell(e)}else{if(e.col<s)return this.wtOverlays.inlineStartOverlay.clone.wtTable.getCell(e);if(e.row<t&&e.row>=t-i&&this.wtOverlays.bottomOverlay&&this.wtOverlays.bottomOverlay.clone)return this.wtOverlays.bottomOverlay.clone.wtTable.getCell(e)}return this.wtTable.getCell(e)}scrollViewport(e,t,o){return this.wtScroll.scrollViewport(e,t,o)}scrollViewportHorizontally(e,t){return this.wtScroll.scrollViewportHorizontally(e,t)}scrollViewportVertically(e,t){return this.wtScroll.scrollViewportVertically(e,t)}getViewport(){return[this.wtTable.getFirstVisibleRow(),this.wtTable.getFirstVisibleColumn(),this.wtTable.getLastVisibleRow(),this.wtTable.getLastVisibleColumn()]}destroy(){this.wtOverlays.destroy(),this.wtEvent.destroy()}createScrollDao(){const e=this;return{get drawn(){return e.drawn},get topOverlay(){return e.wtOverlays.topOverlay},get inlineStartOverlay(){return e.wtOverlays.inlineStartOverlay},get wtTable(){return e.wtTable},get wtViewport(){return e.wtViewport},get wtSettings(){return e.wtSettings},get rootWindow(){return e.domBindings.rootWindow},get totalRows(){return e.wtSettings.getSetting("totalRows")},get totalColumns(){return e.wtSettings.getSetting("totalColumns")},get fixedRowsTop(){return e.wtSettings.getSetting("fixedRowsTop")},get fixedRowsBottom(){return e.wtSettings.getSetting("fixedRowsBottom")},get fixedColumnsStart(){return e.wtSettings.getSetting("fixedColumnsStart")}}}getTableDao(){const e=this;return{get wot(){return e},get parentTableOffset(){return e.cloneSource.wtTable.tableOffset},get cloneSource(){return e.cloneSource},get workspaceWidth(){return e.wtViewport.getWorkspaceWidth()},get wtViewport(){return e.wtViewport},get wtOverlays(){return e.wtOverlays},get selectionManager(){return e.selectionManager},get drawn(){return e.drawn},set drawn(t){e.drawn=t},get wtTable(){return e.wtTable},get startColumnRendered(){return e.wtViewport.columnsRenderCalculator.startColumn},get startColumnVisible(){return e.wtViewport.columnsVisibleCalculator.startColumn},get startColumnPartiallyVisible(){return e.wtViewport.columnsPartiallyVisibleCalculator.startColumn},get endColumnRendered(){return e.wtViewport.columnsRenderCalculator.endColumn},get endColumnVisible(){return e.wtViewport.columnsVisibleCalculator.endColumn},get endColumnPartiallyVisible(){return e.wtViewport.columnsPartiallyVisibleCalculator.endColumn},get countColumnsRendered(){return e.wtViewport.columnsRenderCalculator.count},get countColumnsVisible(){return e.wtViewport.columnsVisibleCalculator.count},get startRowRendered(){return e.wtViewport.rowsRenderCalculator.startRow},get startRowVisible(){return e.wtViewport.rowsVisibleCalculator.startRow},get startRowPartiallyVisible(){return e.wtViewport.rowsPartiallyVisibleCalculator.startRow},get endRowRendered(){return e.wtViewport.rowsRenderCalculator.endRow},get endRowVisible(){return e.wtViewport.rowsVisibleCalculator.endRow},get endRowPartiallyVisible(){return e.wtViewport.rowsPartiallyVisibleCalculator.endRow},get countRowsRendered(){return e.wtViewport.rowsRenderCalculator.count},get countRowsVisible(){return e.wtViewport.rowsVisibleCalculator.count},get columnHeaders(){return e.wtSettings.getSetting("columnHeaders")},get rowHeaders(){return e.wtSettings.getSetting("rowHeaders")}}}}},24827:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(19034);t.CELL_TYPE=i.CELL_TYPE,t.TimeCellType=i.TimeCellType},24879:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.getDateFromExcelDate=function(e,t){const o=new Date(Date.UTC(0,0,e+-1));return(0,s.default)(o).format(t)},t.getDateInHfFormat=function(e,t){return(0,s.default)(e,t,!0).format(n)},t.getDateInHotFormat=function(e,t){return(0,s.default)(e,n,!0).format(t)},t.isDate=function(e,t){return"string"==typeof e&&"date"===t},t.isDateValid=function(e,t){return(0,s.default)(e,t,!0).isValid()},t.isEscapedFormulaExpression=r,t.isFormula=function(e){return"string"==typeof e&&e.startsWith("=")},t.unescapeFormulaExpression=function(e){return r(e)?e.substr(1):e};var s=i(o(86798));const n="DD/MM/YYYY";function r(e){return"string"==typeof e&&"'"===e.charAt(0)&&"="===e.charAt(1)}},24895:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(31681);t.RENDERER_TYPE=i.RENDERER_TYPE,t.checkboxRenderer=i.checkboxRenderer},24954:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function e(t,o){if(Array.isArray(t))return t.map(t=>e(t,o));return(0,i.substitute)(t,o)},o(34478),o(940);var i=o(2744)},25250:(e,t,o)=>{"use strict";var i=o(92853);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(i)},25325:(e,t,o)=>{"use strict";t.__esModule=!0,t.textRenderer=a;var i=o(85439),s=o(78966),n=o(7886);const r=t.RENDERER_TYPE="text";function a(e,t,o,r,a,l,h){i.baseRenderer.apply(this,[e,t,o,r,a,l,h]);let c=l;!c&&h.placeholder&&(c=h.placeholder),c=(0,n.stringify)(c),h.trimWhitespace&&(c=c.trim()),(0,s.fastInnerText)(t,c)}a.RENDERER_TYPE=r},25333:(e,t,o)=>{"use strict";t.__esModule=!0,t.normalizeCoordsIfNeeded=function(e){return t=>{if(!t)return null;const{rowIndexMapper:o,columnIndexMapper:n}=e;if(o.isHidden(t.row)||n.isHidden(t.col))return null;const r=(0,s.getMostTopStartPosition)(e),a=(0,s.getMostBottomEndPosition)(e);return t.row=(0,i.clamp)(t.row,r.row,a.row),t.col=(0,i.clamp)(t.col,r.col,a.col),t}};var i=o(58604),s=o(7886)},25561:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(86342);t.CELL_TYPE=i.CELL_TYPE,t.NumericCellType=i.NumericCellType},25727:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(631);class r extends n.BaseAction{constructor(e){let{index:t,amount:o}=e;super("insert_row"),(0,s.default)(this,"index",void 0),(0,s.default)(this,"amount",void 0),this.index=t,this.amount=o}static startRegisteringEvents(e,t){e.addHook("afterCreateRow",(e,o,i)=>{t.done(()=>new r({index:e,amount:o}),i)})}undo(e,t){const o=e.countRows(),i=e.getSettings().minSpareRows;this.index>=o&&this.index-i<o&&(this.index-=i),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=r},25854:(e,t)=>{"use strict";t.__esModule=!0,t.resolveWithInstance=function(e,t){var i;return null==o||null===(i=o.get(e.guid))||void 0===i?void 0:i.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},25884:(e,t,o)=>{"use strict";t.__esModule=!0,t.getDecreasedIndexes=function(e,t){return(0,i.arrayMap)(e,e=>e-t.filter(t=>t<e).length)},t.getIncreasedIndexes=function(e,t){const o=t[0],s=t.length;return(0,i.arrayMap)(e,e=>e>=o?e+s:e)},o(34478),o(29810);var i=o(94576)},26023:(e,t,o)=>{"use strict";var i=o(19098),s=o(48369),n=o(31520),r=n.Set,a=n.proto,l=i(a.forEach),h=i(a.keys),c=h(new r).next;e.exports=function(e,t,o){return o?s({iterator:h(e),next:c},t):l(e,t)}},26063:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.condition=l;var s=i(o(86798)),n=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),r=o(23895);const a=t.CONDITION_NAME="date_yesterday";function l(e){const t=(0,s.default)(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame((0,s.default)().subtract(1,"days").startOf("day"),"d")}(0,r.registerCondition)(a,l,{name:n.FILTERS_CONDITIONS_YESTERDAY,inputsCount:0})},26154:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(29779),r=o(7120),a=o(30738),l=o(367),h=o(78966),c=o(72609);const u="ht__row_even",d="ht__row_odd";let g=!1;class f extends n.BaseRenderer{constructor(e){super("TR",e),(0,s.default)(this,"orderView",void 0),this.orderView=new l.OrderView(e,e=>this.nodesPool.obtain(e))}getRenderedNode(e){return this.orderView.getNode(e)}hasStaleContent(e){return this.orderView.hasStaleContent(e)}render(){const{rowsToRender:e}=this.table;!g&&e>1e3&&(g=!0,(0,r.warn)(a.toSingleLine`Performance tip: Handsontable rendered more than 1000 visible rows.\x20
@@ -64,11 +64,11 @@ the last node, the show column modification can be applied.`);const{crossHiddenC
64
64
  use it consequently for a particular column).`)}else if((0,u.isUndefined)(c.operations[o]))throw new Error(r.toSingleLine`Unexpected operation named \`${o}\`. Possible ones are\x20
65
65
  \`disjunction\` and \`conjunction\`.`);const g=this.getConditions(e);0===g.length?this.filteringStates.setValueAtIndex(e,{operation:o,conditions:[{name:a,args:n,func:(0,l.getCondition)(a,n)}]},i):g.push({name:a,args:n,func:(0,l.getCondition)(a,n)}),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:i,conditions:s}]=t;return e.push({column:o,operation:i,conditions:s.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,n.mixin)(f,a.default);t.default=f},34650:(e,t,o)=>{"use strict";t.__esModule=!0,t.arrayDiff=function(e,t){const o=[];let i=0,s=0;for(;i<e.length&&s<t.length;i++,s++)e[i]!==t[s]&&o.push({op:"replace",index:s,oldValue:e[i],newValue:t[s]});for(;i<t.length;i++)o.push({op:"insert",index:i,oldValue:void 0,newValue:t[i]});for(;s<e.length;s++)o.push({op:"remove",index:s,oldValue:e[s],newValue:void 0});return o},o(99356)},34651:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490);var i=o(26808),s=o(51798),n=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481));function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function a(e,t,o){return e.set(h(e,t),o),o}function l(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="loading",u=t.PLUGIN_PRIORITY=350,d=t.LOADING_CLASS_NAME=`ht-${c}`;var g=new WeakMap,f=new WeakSet;class p extends i.BasePlugin{constructor(){var e,t;super(...arguments),r(e=this,t=f),t.add(e),function(e,t,o){r(e,t),t.set(e,o)}(this,g,null)}static get PLUGIN_KEY(){return c}static get PLUGIN_PRIORITY(){return u}static get DEFAULT_SETTINGS(){return{icon:`<svg class="${d}__icon-svg" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path stroke="currentColor" stroke-width="2" d="M15 8a7 7 0 1 1-3.5-6.062"></path></svg>`,title:void 0,description:""}}static get SETTINGS_VALIDATORS(){return{icon:e=>"string"==typeof e,title:e=>"string"==typeof e,description:e=>"string"==typeof e}}isEnabled(){return!!this.hot.getSettings()[c]}enablePlugin(){if(!this.enabled){var e;if(null===l(g,this))a(g,this,this.hot.getPlugin("dialog")),null!==(e=l(g,this))&&void 0!==e&&e.isEnabled()||(this.hot.getSettings().dialog=!0),this.hot.addHook("afterDialogFocus",()=>h(f,this,m).call(this));super.enablePlugin()}}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.hide(),super.disablePlugin()}isVisible(){var e,t;return null!==(e=null===(t=l(g,this))||void 0===t?void 0:t.isVisible())&&void 0!==e&&e}show(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.isEnabled()||!l(g,this)||null===(e=l(g,this))||void 0===e||!e.isEnabled())return;if(this.isVisible())return void this.update(t);!1!==this.hot.runHooks("beforeLoadingShow")&&(this.update(t),l(g,this).show(),this.hot.runHooks("afterLoadingShow"))}hide(){var e;if(!l(g,this)||null===(e=l(g,this))||void 0===e||!e.isEnabled()||!this.isVisible())return;!1!==this.hot.runHooks("beforeLoadingHide")&&(l(g,this).hide(),this.hot.runHooks("afterLoadingHide"))}update(e){var t,o;if(!this.isEnabled()||!l(g,this)||null===(t=l(g,this))||void 0===t||!t.isEnabled())return;this.updatePluginSettings(e);const i=this.hot.guid,r=this.getSetting("icon"),a=null!==(o=this.getSetting("title"))&&void 0!==o?o:this.hot.getTranslatedPhrase(n.LOADING_TITLE),h=this.getSetting("description"),u=(0,s.loadingContent)({id:i,icon:r,title:a,description:h});l(g,this).update({content:u,customClassName:d,background:0===this.hot.countSourceRows()?"solid":"semi-transparent",a11y:{role:"alertdialog",ariaLabelledby:`${i}-${c}-title`,ariaDescribedby:h?`${i}-${c}-description`:void 0}})}destroy(){a(g,this,null),super.destroy()}}function m(){l(g,this).focus()}t.Loading=p},34679:e=>{"use strict";var t=Math.ceil,o=Math.floor;e.exports=Math.trunc||function(e){var i=+e;return(i>0?o:t)(i)}},34695:(e,t,o)=>{"use strict";t.__esModule=!0,t.selectRenderer=n;var i=o(54657);const s=t.RENDERER_TYPE="select";function n(e,t,o,s,n,r,a){i.textRenderer.apply(this,[e,t,o,s,n,r,a])}n.RENDERER_TYPE=s},34701:e=>{"use strict";e.exports=function(e){try{var t=new Set,o={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}},i=t[e](o);return 1===i.size&&4===i.values().next().value}catch(e){return!1}}},34738:(e,t,o)=>{"use strict";t.__esModule=!0,t.createPriorityMap=function(){let{errorPriorityExists:e,errorPriorityNaN:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const o=new Map;return e=(0,s.isFunction)(e)?e:l,t=(0,s.isFunction)(t)?t:h,{addItem:function(s,n){if(!(0,i.isNumeric)(s))throw new Error(t(s));if(o.has(s))throw new Error(e(s));o.set(s,n)},getItems:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n;const[t,i]=a.get(e)||a.get(n);return[...o].sort((e,o)=>e[0]<o[0]?t:i).map(e=>e[1])}}},o(52490),o(34478),o(940);var i=o(58604),s=o(81761);const n=t.ASC="asc",r=t.DESC="desc",a=new Map([[n,[-1,1]],[r,[1,-1]]]),l=e=>`The priority '${e}' is already declared in a map.`,h=e=>`The priority '${e}' is not a number.`},34758:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(34695);t.RENDERER_TYPE=i.RENDERER_TYPE,t.selectRenderer=i.selectRenderer},34822:(e,t,o)=>{"use strict";t.__esModule=!0,t.createMenuNavigator=function(e){return(0,i.createPaginator)({size:()=>e.countRows(),onItemSelect(t,o){const i=e.getCell(t,0);if(!i||(0,s.isSeparator)(i)||(0,s.isDisabled)(i)||(0,s.isSelectionDisabled)(i))return!1;e.selectCell(t,0,...o?[t,0,!1,!1]:[])},onClear(){e.deselectCell()}})};var i=o(83166),s=o(30386)},34832:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=r;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(23895);const n=t.CONDITION_NAME="gte";function r(e,t){let[o]=t,i=o;return"numeric"===e.meta.type&&(i=parseFloat(i,10)),e.value>=i}(0,s.registerCondition)(n,r,{name:i.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL,inputsCount:1,showOperators:!0})},35234:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(10721);t.EDITOR_TYPE=i.EDITOR_TYPE,t.SelectEditor=i.SelectEditor},35315:(e,t,o)=>{"use strict";t.__esModule=!0,t.registerActions=function(e,t){[i.CellAlignmentAction,s.ColumnMoveAction,n.ColumnSortAction,r.CreateColumnAction,a.CreateRowAction,l.DataChangeAction,h.FiltersAction,c.MergeCellsAction,u.RemoveColumnAction,d.RemoveRowAction,g.RowMoveAction,f.UnmergeCellsAction].forEach(o=>o.startRegisteringEvents(e,t))};var i=o(6098),s=o(3196),n=o(43605),r=o(81921),a=o(25727),l=o(95367),h=o(11808),c=o(99962),u=o(21077),d=o(75299),g=o(89426),f=o(7857)},35394:(e,t,o)=>{"use strict";t.__esModule=!0,o(34478),o(940);const i=new Map([[" ","space"],["spacebar","space"],["scroll","scrolllock"],["del","delete"],["esc","escape"],["medianexttrack","mediatracknext"],["mediaprevioustrack","mediatrackprevious"],["volumeup","audiovolumeup"],["volumedown","audiovolumedown"],["volumemute","audiovolumemute"],["multiply","*"],["add","+"],["divide","/"],["subtract","-"],["left","arrowleft"],["right","arrowright"],["up","arrowup"],["down","arrowdown"]]);t.normalizeKeys=e=>e.map(e=>{const t=e.toLowerCase();return i.has(t)?i.get(t):t}).sort().join("+");t.getKeysList=e=>e.split("+");const s=new Map([[96,"numpad0"],[97,"numpad1"],[98,"numpad2"],[99,"numpad3"],[100,"numpad4"],[101,"numpad5"],[102,"numpad6"],[103,"numpad7"],[104,"numpad8"],[105,"numpad9"],[106,"multiply"],[107,"add"],[108,"decimal"],[109,"subtract"],[110,"decimal"],[111,"divide"],[112,"f1"],[113,"f2"],[114,"f3"],[115,"f4"],[116,"f5"],[117,"f6"],[118,"f7"],[119,"f8"],[120,"f9"],[121,"f10"],[122,"f11"],[123,"f12"],[186,"semicolon"],[187,"equal"],[188,"comma"],[189,"minus"],[190,"period"],[191,"slash"],[192,"backquote"],[219,"bracketleft"],[220,"backslash"],[221,"bracketright"],[222,"quote"]]);t.normalizeEventKey=e=>{let{which:t,key:o}=e;if(s.has(t))return s.get(t);const i=String.fromCharCode(t).toLowerCase();return/^[a-z0-9]$/.test(i)?i:o.toLowerCase()}},35450:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490);var i=o(4138),s=o(26911);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 r(e,t){return e.get(l(e,t))}function a(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 h=new WeakMap,c=new WeakMap;class u extends s.BaseUI{static get DEFAULTS(){return(0,i.clone)({type:"radio",tagName:"input",className:"htUIRadio",label:{}})}constructor(e,t){super(e,(0,i.extend)(u.DEFAULTS,t)),n(this,h,void 0),n(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),a(c,this,e),a(h,this,this._element.firstChild),r(h,this).checked=this.options.checked,this._element.appendChild(e),this.update()}update(){this.isBuilt()&&(r(c,this).textContent=this.translateIfPossible(this.options.label.textContent))}isChecked(){return!!this.isBuilt()&&r(h,this).checked}setChecked(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.isBuilt()&&(r(h,this).checked=e)}focus(){this.isBuilt()&&r(h,this).focus()}}t.RadioInputUI=u},35701:(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,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,[s,n]=[o,i];e>t&&([s,n]=[n,s]);return`${s}-${n}`},t.extendNotExistingKeys=function(e,t){return(0,s.objectEach)(t,(t,o)=>{(0,i.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,i.isDefined)(e)&&(0,n.error)(r.toSingleLine`Language with code "${e}" was not found. You should register particular language\x20
66
66
  before using it. Read more about this issue at: https://docs.handsontable.com/i18n/missing-language-code.`)};var i=o(7886),s=o(4138),n=o(7120),r=o(30738)},35734:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(34478),o(940);var s=i(o(24300)),n=o(30286),r=o(1471),a=o(69425),l=o(25884),h=o(81761);class c extends n.IndexMap{constructor(){super(...arguments),(0,s.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,a.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,r.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),this.orderOfIndexes=(0,l.getIncreasedIndexes)(this.orderOfIndexes,t),super.insert(e,t)}remove(e){this.indexedValues=(0,r.getListWithRemovedItems)(this.indexedValues,e),this.orderOfIndexes=(0,a.getListWithRemovedItems)(this.orderOfIndexes,e),this.orderOfIndexes=(0,l.getDecreasedIndexes)(this.orderOfIndexes,e),super.remove(e)}getEntries(){return this.orderOfIndexes.map(e=>[e,this.getValueAtIndex(e)])}}t.LinkedPhysicalIndexToValueMap=c},35738:(e,t,o)=>{"use strict";var i=o(94266);e.exports=function(e,t){var o=i[e],s=o&&o.prototype;return s&&s[t]}},35775:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300));t.RenderedAllColumnsCalculationType=class{constructor(){(0,s.default)(this,"count",0),(0,s.default)(this,"startColumn",0),(0,s.default)(this,"endColumn",0),(0,s.default)(this,"startPosition",0),(0,s.default)(this,"isVisibleInTrimmingContainer",!0)}initialize(e){let{totalColumns:t}=e;this.count=t,this.endColumn=this.count-1}process(){}finalize(){}}},36062:(e,t)=>{"use strict";function o(e,t,o){e.addEventListener(t,o,!1)}function i(e,t,o){e.removeEventListener(t,o,!1)}function s(e){return e.ownerDocument.defaultView.getComputedStyle(e)}t.__esModule=!0,t.createInputElementResizer=function(e){const t={minHeight:200,maxHeight:300,minWidth:100,maxWidth:300,textContent:e=>e.value,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}},n=e.body,r=e.createTextNode(""),a=e.createElement("span");let l;function h(){var e,o;r.textContent=t.textContent(l),a.style.position="absolute",a.style.fontSize=s(l).fontSize,a.style.fontFamily=s(l).fontFamily,a.style.whiteSpace="pre",n.appendChild(a);const i=parseInt((null===(e=s(l))||void 0===e?void 0:e.paddingInlineStart)||0,10),h=parseInt((null===(o=s(l))||void 0===o?void 0:o.paddingInlineEnd)||0,10),c=a.clientWidth+i+h+1;n.removeChild(a);const u=l.style;u.height=`${t.minHeight}px`,t.minWidth>c?u.width=`${t.minWidth}px`:c>t.maxWidth?u.width=`${t.maxWidth}px`:u.width=`${c}px`;const d=l.scrollHeight?l.scrollHeight-1:0;t.minHeight>d?u.height=`${t.minHeight}px`:t.maxHeight<d?(u.height=`${t.maxHeight}px`,u.overflowY="visible"):u.height=`${d}px`}function c(){e.defaultView.setTimeout(h,0)}return{init:function(e,i){let s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];l=e,function(e){if(e&&e.minHeight)if("inherit"===e.minHeight)t.minHeight=l.clientHeight;else{const o=parseInt(e.minHeight,10);isNaN(o)||(t.minHeight=o)}if(e&&e.maxHeight)if("inherit"===e.maxHeight)t.maxHeight=l.clientHeight;else{const o=parseInt(e.maxHeight,10);isNaN(o)||(t.maxHeight=o)}if(e&&e.minWidth)if("inherit"===e.minWidth)t.minWidth=l.clientWidth;else{const o=parseInt(e.minWidth,10);isNaN(o)||(t.minWidth=o)}if(e&&e.maxWidth)if("inherit"===e.maxWidth)t.maxWidth=l.clientWidth;else{const o=parseInt(e.maxWidth,10);isNaN(o)||(t.maxWidth=o)}a.firstChild||(a.className="autoResize",a.style.display="inline-block",a.appendChild(r))}(i),"TEXTAREA"===l.nodeName&&(l.style.resize="none",l.style.height=`${t.minHeight}px`,l.style.minWidth=`${t.minWidth}px`,l.style.maxWidth=`${t.maxWidth}px`,l.style.overflowY="hidden"),s&&(o(l,"input",h),o(l,"keydown",c)),h()},resize:h,unObserve(){i(l,"input",h),i(l,"keydown",c)}}}},36117:(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,i.isFunction)(e)?e:s,{addItem:function(o){if(t.has(o))throw new Error(e(o));t.add(o)},clear:function(){t.clear()},getItems:function(){return[...t]}}},o(52490),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724);var i=o(81761);const s=e=>`'${e}' value is already declared in a unique set.`},36416:(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()}}},36547:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300));const n="px";t.default=class{constructor(e){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"_element",null),(0,s.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+n),void 0!==t&&(this._element.style.left=t+n)}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+n),t&&(this._element.style.height=t+n)}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+n),t&&(this._element.style.marginLeft=t+n)}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}}}},36714:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=i(o(8323)),r=i(o(24699));class a extends r.default{constructor(e,t,o){super(e,t),(0,s.default)(this,"cloneSource",void 0),(0,s.default)(this,"cloneOverlay",void 0);const i=this.wtSettings.getSetting("facade",this);this.cloneSource=o.source,this.cloneOverlay=o.overlay,this.wtTable=this.cloneOverlay.createTable(this.getTableDao(),i,this.domBindings,this.wtSettings),this.wtViewport=o.viewport,this.selectionManager=o.selectionManager,this.wtEvent=new n.default(i,this.domBindings,this.wtSettings,this.eventManager,this.wtTable,this.selectionManager,o.event),this.findOriginalHeaders()}}t.default=a},36780:(e,t,o)=>{"use strict";t.__esModule=!0,t.getValidator=function(e){if("function"==typeof e)return e;if(!r(e))throw Error(`No registered validator found under "${e}" name`);return n(e)},t.registerValidator=function(e,t){"string"!=typeof e&&(e=(t=e).VALIDATOR_TYPE);s(e,t)},o(52490);var i=o(25854);const{register:s,getItem:n,hasItem:r,getNames:a,getValues:l}=(0,i.staticRegister)("validators");t.getRegisteredValidators=l,t.getRegisteredValidatorNames=a,t.hasValidator=r},37069:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(99356);var s=i(o(24300)),n=o(17725);class r extends n.ViewportBaseCalculator{constructor(e){let{calculationTypes:t,viewportHeight:o,scrollOffset:i,totalRows:n,defaultRowHeight:r,rowHeightFn:a,overrideFn:l,horizontalScrollbarHeight:h}=e;super(t),(0,s.default)(this,"viewportHeight",0),(0,s.default)(this,"scrollOffset",0),(0,s.default)(this,"zeroBasedScrollOffset",0),(0,s.default)(this,"totalRows",0),(0,s.default)(this,"rowHeightFn",null),(0,s.default)(this,"rowHeight",0),(0,s.default)(this,"overrideFn",null),(0,s.default)(this,"horizontalScrollbarHeight",0),(0,s.default)(this,"innerViewportHeight",0),(0,s.default)(this,"totalCalculatedHeight",0),(0,s.default)(this,"startPositions",[]),(0,s.default)(this,"needReverse",!0),this.defaultHeight=r,this.viewportHeight=o,this.scrollOffset=i,this.zeroBasedScrollOffset=Math.max(i,0),this.totalRows=n,this.rowHeightFn=a,this.overrideFn=l,this.horizontalScrollbarHeight=null!=h?h:0,this.innerViewportHeight=this.zeroBasedScrollOffset+this.viewportHeight-this.horizontalScrollbarHeight,this.calculate()}calculate(){this._initialize(this);for(let e=0;e<this.totalRows;e++)if(this.rowHeight=this.getRowHeight(e),this._process(e,this),this.startPositions.push(this.totalCalculatedHeight),this.totalCalculatedHeight+=this.rowHeight,this.totalCalculatedHeight>=this.innerViewportHeight){this.needReverse=!1;break}this._finalize(this)}getRowHeight(e){const t=this.rowHeightFn(e);return isNaN(t)?this.defaultHeight:t}}t.ViewportRowsCalculator=r},37334:(e,t,o)=>{"use strict";t.__esModule=!0,t.noncontiguousScrollStrategy=function(e){return t=>{const o=(0,i.createScrollTargetCalculator)(e),s={row:o.getComputedRowTarget(t),col:o.getComputedColumnTarget(t)};e.scrollViewportTo(s,()=>{const{row:t,col:o}=s;(0,i.scrollWindowToCell)(e.getCell(t,o,!0))})}};var i=o(31970)},37359:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(67347),s=o(78966);const n=t.EDITOR_TYPE="checkbox";class r extends i.BaseEditor{static get EDITOR_TYPE(){return n}beginEditing(e,t){if(t&&"mouseup"===t.type&&"TD"===t.target.nodeName){const e=this.TD.querySelector('input[type="checkbox"]');(0,s.hasClass)(e,"htBadValue")||e.click()}}finishEditing(){}init(){}open(){}close(){}getValue(){}setValue(){}focus(){}}t.CheckboxEditor=r},37368:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(11847);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.ManualColumnMove=i.ManualColumnMove},37547:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostInlineEnd",callback(e){const{selection:t,columnIndexMapper:o}=e;t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(e.getSelectedRangeActive().highlight.row,o.getNearestNotHiddenIndex(e.countCols()-1,-1))),t.markEndSource()}}},37961:(e,t,o)=>{"use strict";t.__esModule=!0,t.createMergeCellRenderer=function(e){const{hot:t}=e,{rowIndexMapper:o,columnIndexMapper:r}=t,a=new Map;return{before:function(){},after:function(l,h,c){const u=e.mergedCellsCollection.get(h,c);if(!(0,i.isObject)(u))return l.removeAttribute("rowspan"),l.removeAttribute("colspan"),a.has(h)&&!t.getSettings().rowHeaders&&(l.style.height=`${a.get(h)}px`,a.delete(h)),void(l.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===g&&!t.getSettings().rowHeaders){const e=t._getRowHeightFromSettings(h);if(void 0!==e){const o=t.stylesHandler.areCellsBorderBox()?0:1;a.set(h,e-o)}else if((0,s.isSafari)()){const e=(0,n.sumCellsHeights)(t,d,p);a.set(h,e/p)}}const v=m-o.getRenderableFromVisualIndex(h)+1,y=w-r.getRenderableFromVisualIndex(c)+1;let S=o.getNearestNotHiddenIndex(d,1),E=r.getNearestNotHiddenIndex(g,1);if(C){const e=t.view.getActiveOverlayName();["top","top_inline_start_corner"].includes(e)||(S=Math.max(S,t.getFirstRenderedVisibleRow())),["inline_start","top_inline_start_corner","bottom_inline_start_corner"].includes(e)||(E=Math.max(E,t.getFirstRenderedVisibleColumn()))}const R=Math.min(p,v),b=Math.min(f,y);S===h&&E===c?(l.setAttribute("rowspan",R),l.setAttribute("colspan",b)):(l.removeAttribute("rowspan"),l.removeAttribute("colspan"),l.style.display="none")}}};var i=o(4138),s=o(40929),n=o(56097)},37994:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(98532);t.AutocompleteCellType=i.AutocompleteCellType,t.CELL_TYPE=i.CELL_TYPE},38221:(e,t,o)=>{"use strict";var i=o(72820),s=o(87913);i({target:"Set",proto:!0,real:!0,forced:!o(12874)("isSupersetOf",function(e){return!e})},{isSupersetOf:s})},38465:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356);var s=i(o(24300)),n=o(93868),r=o(79420),a=o(62678),l=o(7569),h=o(71883),c=o(38784),u=o(48622),d=o(26826),g=o(76623),f=o(13743);t.ACTIVE_HEADER_TYPE=f.HIGHLIGHT_ACTIVE_HEADER_TYPE,t.AREA_TYPE=f.HIGHLIGHT_AREA_TYPE,t.FOCUS_TYPE=f.HIGHLIGHT_FOCUS_TYPE,t.CUSTOM_SELECTION_TYPE=f.HIGHLIGHT_CUSTOM_SELECTION_TYPE,t.FILL_TYPE=f.HIGHLIGHT_FILL_TYPE,t.HEADER_TYPE=f.HIGHLIGHT_HEADER_TYPE,t.ROW_TYPE=f.HIGHLIGHT_ROW_TYPE,t.COLUMN_TYPE=f.HIGHLIGHT_COLUMN_TYPE;var p=o(94576);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{constructor(e){m(this,C),(0,s.default)(this,"options",void 0),(0,s.default)(this,"layerLevel",0),(0,s.default)(this,"focus",void 0),(0,s.default)(this,"fill",void 0),(0,s.default)(this,"layeredAreas",new Map),(0,s.default)(this,"areas",new Map),(0,s.default)(this,"rowHeaders",new Map),(0,s.default)(this,"columnHeaders",new Map),(0,s.default)(this,"activeRowHeaders",new Map),(0,s.default)(this,"activeColumnHeaders",new Map),(0,s.default)(this,"activeCornerHeaders",new Map),(0,s.default)(this,"rowHighlights",new Map),(0,s.default)(this,"columnHighlights",new Map),(0,s.default)(this,"customSelections",[]),this.options=e,this.focus=(0,h.createHighlight)(e),this.fill=(0,u.createHighlight)(e)}isEnabledFor(e,t){let o=e;e===f.HIGHLIGHT_FOCUS_TYPE&&(o="current");let i=this.options.disabledCellSelection(t.row,t.col);return"string"==typeof i&&(i=[i]),!1===i||Array.isArray(i)&&!i.includes(o)}useLayerLevel(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.layerLevel=e,this}getFocus(){return this.focus}getFill(){return this.fill}createLayeredArea(){return w(C,this,y).call(this,this.layeredAreas,r.createHighlight)}getLayeredAreas(){return[...this.layeredAreas.values()]}createArea(){return w(C,this,y).call(this,this.areas,a.createHighlight)}getAreas(){return[...this.areas.values()]}createRowHeader(){return w(C,this,y).call(this,this.rowHeaders,d.createHighlight)}getRowHeaders(){return[...this.rowHeaders.values()]}createColumnHeader(){return w(C,this,y).call(this,this.columnHeaders,d.createHighlight)}getColumnHeaders(){return[...this.columnHeaders.values()]}createActiveRowHeader(){return w(C,this,y).call(this,this.activeRowHeaders,n.createHighlight)}getActiveRowHeaders(){return[...this.activeRowHeaders.values()]}createActiveColumnHeader(){return w(C,this,y).call(this,this.activeColumnHeaders,n.createHighlight)}getActiveColumnHeaders(){return[...this.activeColumnHeaders.values()]}createActiveCornerHeader(){return w(C,this,y).call(this,this.activeCornerHeaders,n.createHighlight)}getActiveCornerHeaders(){return[...this.activeCornerHeaders.values()]}createRowHighlight(){return w(C,this,y).call(this,this.rowHighlights,g.createHighlight)}getRowHighlights(){return[...this.rowHighlights.values()]}createColumnHighlight(){return w(C,this,y).call(this,this.columnHighlights,l.createHighlight)}getColumnHighlights(){return[...this.columnHighlights.values()]}getCustomSelections(){return[...this.customSelections.values()]}addCustomSelection(e){this.customSelections.push((0,c.createHighlight)({...this.options,...e}))}clear(){this.focus.clear(),this.fill.clear(),(0,p.arrayEach)(this.areas.values(),e=>{e.clear()}),(0,p.arrayEach)(this.layeredAreas.values(),e=>{e.clear()}),(0,p.arrayEach)(this.rowHeaders.values(),e=>{e.clear()}),(0,p.arrayEach)(this.columnHeaders.values(),e=>{e.clear()}),(0,p.arrayEach)(this.activeRowHeaders.values(),e=>{e.clear()}),(0,p.arrayEach)(this.activeColumnHeaders.values(),e=>{e.clear()}),(0,p.arrayEach)(this.activeCornerHeaders.values(),e=>{e.clear()}),(0,p.arrayEach)(this.rowHighlights.values(),e=>{e.clear()}),(0,p.arrayEach)(this.columnHighlights.values(),e=>{e.clear()})}[Symbol.iterator](){return[this.focus,this.fill,...this.areas.values(),...this.layeredAreas.values(),...this.rowHeaders.values(),...this.columnHeaders.values(),...this.activeRowHeaders.values(),...this.activeColumnHeaders.values(),...this.activeCornerHeaders.values(),...this.rowHighlights.values(),...this.columnHighlights.values(),...this.customSelections][Symbol.iterator]()}}function y(e,t){const o=this.layerLevel;if(e.has(o))return e.get(o);const i=t({layerLevel:o,...this.options});return e.set(o,i),i}t.default=v},38491:(e,t,o)=>{"use strict";t.__esModule=!0,t.getAllCommands=function(){return[i.command,s.command,n.command,r.command,a.command,l.command]};var i=o(99063),s=o(60541),n=o(67606),r=o(64369),a=o(46553),l=o(88855)},38775:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(29810),o(31143),o(33098);var s=i(o(24300)),n=o(26808),r=o(79035),a=i(o(30164)),l=o(4138),h=o(58604),c=i(o(65165)),u=o(2744),d=o(55656),g=o(78966);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="autoRowSize",y=t.PLUGIN_PRIORITY=40,S="htFirstDatasetColumnNotRendered";var E=new WeakMap,R=new WeakMap,b=new WeakSet;class _ extends n.BasePlugin{static get PLUGIN_KEY(){return v}static get PLUGIN_PRIORITY(){return y}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),p(t=this,o=b),o.add(t),(0,s.default)(this,"headerHeight",null),(0,s.default)(this,"ghostTable",new a.default(this.hot)),(0,s.default)(this,"samplesGenerator",new c.default((e,t)=>{const o=this.hot.toPhysicalColumn(t);if(this.hot.columnIndexMapper.isHidden(o))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,s.default)(this,"inProgress",!1),(0,s.default)(this,"measuredRows",0),(0,s.default)(this,"rowHeightsMap",new d.PhysicalIndexToValueMap),f(this,E,[]),f(this,R,!1),this.hot.rowIndexMapper.registerMap("autoRowSize",this.rowHeightsMap),this.addHook("beforeRowResize",(e,t,o)=>C(b,this,A).call(this,e,t,o))}isEnabled(){const e=this.hot.getSettings()[v];return!0===e||(0,l.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),i=0;i<t;i++)o[i]=arguments[i];return C(b,e,N).call(e,...o)}),this.addHook("beforeChangeRender",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(b,e,P).call(e,...o)}),this.addHook("beforeColumnResize",()=>this.recalculateAllRowsHeight()),this.addHook("afterFormulasValuesUpdate",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(b,e,x).call(e,...o)}),this.addHook("beforeViewRender",()=>C(b,this,I).call(this)),this.addHook("beforeRender",()=>C(b,this,O).call(this)),this.addHook("modifyRowHeight",(e,t)=>this.getRowHeight(t,e)),this.addHook("init",()=>C(b,this,H).call(this)),this.addHook("modifyColumnHeaderHeight",()=>this.getColumnHeaderHeight()),super.enablePlugin()}disablePlugin(){this.headerHeight=null,super.disablePlugin(),C(b,this,M).call(this,!1),this.addHook("beforeRowResize",(e,t,o)=>C(b,this,A).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 i="number"==typeof e?{from:e,to:e}:e,s="number"==typeof t?{from:t,to:t}:t;if(null!==this.hot.getColHeader(0)){const e=this.samplesGenerator.generateRowSamples(-1,s);this.ghostTable.addColumnHeadersRow(e.get(-1))}(0,h.rangeEach)(i.from,i.to,e=>{let t=this.hot.toPhysicalRow(e);if(null===t&&(t=e),o||null===this.rowHeightsMap.getValueAtIndex(t)){this.samplesGenerator.generateRowSamples(e,s).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=i.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 i=this.hot.countRows()-1;let s=null;this.inProgress=!0;const n=()=>{if(!this.hot)return(0,r.cancelAnimationFrame)(s),void(this.inProgress=!1);this.calculateRowsHeight({from:o,to:Math.min(o+_.CALCULATION_STEP,i)},e,t),o=o+_.CALCULATION_STEP+1,o<i?s=(0,r.requestAnimationFrame)(n):((0,r.cancelAnimationFrame)(s),this.inProgress=!1,this.hot.view.adjustElementsSize())},a=this.getSyncCalculationLimit();a>=0&&(this.calculateRowsHeight({from:0,to:a},e,t),o=a+1),o<i?n():(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()[v];let t=_.SYNC_CALCULATION_LIMIT;const o=this.hot.countRows()-1;return(0,l.isObject)(e)&&(t=e.syncLimit,(0,u.isPercentValue)(t)?t=(0,h.valueAccordingPercent)(o,t):t>>=0),Math.min(t,o)}getRowHeight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.hot.stylesHandler.getDefaultRowHeight();var o;if(e<0)return null!==(o=this.headerHeight)&&void 0!==o?o:t;const i=this.hot.toPhysicalRow(e);if(this.hot.rowIndexMapper.isHidden(i))return t;const s=this.rowHeightsMap.getValueAtIndex(i);let n=t;return null!==s&&s>t&&(n=s),n}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 T(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 M(e){if(this.hot.stylesHandler.isClassicTheme()){const t=this.hot.getFirstRenderedVisibleColumn(),o=this.hot.columnIndexMapper.getPhysicalFromVisualIndex(t);!1===e||o===this.hot.columnIndexMapper.getPhysicalFromRenderableIndex(0)?(0,g.removeClass)(this.hot.rootElement,S):(0,g.addClass)(this.hot.rootElement,S)}}function I(){C(b,this,M).call(this)}function O(){this.calculateVisibleRowsHeight(),this.inProgress||(C(b,this,T).call(this,w(E,this)),m(E,this,[]))}function A(e,t,o){let i=e;return o&&(this.calculateRowsHeight(t,void 0,!0),i=this.getRowHeight(t)),i}function N(e,t){t||this.recalculateAllRowsHeight()}function P(e){const t=e.reduce((e,t)=>{let[o]=t;return-1===e.indexOf(o)&&e.push(o),e},[]);w(E,this).push(...t)}function H(){this.recalculateAllRowsHeight(),m(R,this,!0)}function x(e){if(!w(R,this))return;const t=e.reduce((e,t)=>{var o;const i=null===(o=t.address)||void 0===o?void 0:o.row;if(Number.isInteger(i)){const t=this.hot.toVisualRow(i);-1===e.indexOf(t)&&e.push(t)}return e},[]);w(E,this).push(...t)}t.AutoRowSize=_},38784:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.createHighlight=function(e){let{border:t,visualCellRange:o,...i}=e;return new n.default({...t,...i,selectionType:s.HIGHLIGHT_CUSTOM_SELECTION_TYPE},o)};var s=o(13743),n=i(o(6711))},38829:(e,t,o)=>{"use strict";t.__esModule=!0,t.htmlRenderer=r;var i=o(85439),s=o(78966);const n=t.RENDERER_TYPE="html";function r(e,t,o,n,r,a,l){i.baseRenderer.apply(this,[e,t,o,n,r,a,l]),(0,s.fastInnerHTML)(t,null==a?"":a,!1)}r.RENDERER_TYPE=n},38830:(e,t,o)=>{"use strict";t.__esModule=!0,t.isCtrlKey=function(e){const t=[];(0,s.isMacOS)()?t.push(n.COMMAND_LEFT,n.COMMAND_RIGHT,n.COMMAND_FIREFOX):t.push(n.CONTROL);return t.includes(e)},t.isCtrlMetaKey=function(e){return[n.CONTROL,n.COMMAND_LEFT,n.COMMAND_RIGHT,n.COMMAND_FIREFOX].includes(e)},t.isFunctionKey=function(e){return r.includes(e)},t.isKey=function(e,t){const o=t.split("|");let s=!1;return(0,i.arrayEach)(o,t=>{if(e===n[t])return s=!0,!1}),s},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(99356);var i=o(94576),s=o(40929);const n=t.KEY_CODES={ALT:18,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,ARROW_UP:38,AUDIO_DOWN:(0,s.isFirefox)()?182:174,AUDIO_MUTE:(0,s.isFirefox)()?181:173,AUDIO_UP:(0,s.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},r=[n.ALT,n.ARROW_DOWN,n.ARROW_LEFT,n.ARROW_RIGHT,n.ARROW_UP,n.AUDIO_DOWN,n.AUDIO_MUTE,n.AUDIO_UP,n.BACKSPACE,n.CAPS_LOCK,n.DELETE,n.END,n.ENTER,n.ESCAPE,n.F1,n.F2,n.F3,n.F4,n.F5,n.F6,n.F7,n.F8,n.F9,n.F10,n.F11,n.F12,n.F13,n.F14,n.F15,n.F16,n.F17,n.F18,n.F19,n.HOME,n.INSERT,n.MEDIA_NEXT,n.MEDIA_PLAY_PAUSE,n.MEDIA_PREV,n.MEDIA_STOP,n.NULL,n.NUM_LOCK,n.PAGE_DOWN,n.PAGE_UP,n.PAUSE,n.SCROLL_LOCK,n.SHIFT,n.TAB]},38950:(e,t,o)=>{"use strict";o(4462),o(52695)},39225:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(4138);const s={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,i.defineGetter)(s,"MIXIN_NAME","calculatedColumns",{writable:!1,enumerable:!1});t.default=s},39372:(e,t,o)=>{"use strict";var i=o(30617),s=TypeError;e.exports=function(e,t){if(!delete e[t])throw new s("Cannot delete property "+i(t)+" of "+i(e))}},39393:(e,t,o)=>{"use strict";var i=o(53001);e.exports=!i(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},39411:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356);var s=i(o(24300)),n=o(78966),r=o(94576),a=o(26808),l=o(79035);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 a.BasePlugin{constructor(){super(...arguments),h(this,g),(0,s.default)(this,"scrollbars",[]),(0,s.default)(this,"clones",[]),(0,s.default)(this,"lockedCollection",!1),(0,s.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,l.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:i,bottomInlineStartCornerOverlay:s}=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),i&&this.scrollbars.push(i),s&&s.clone&&this.scrollbars.push(s),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),i&&this.clones.push(i.clone.wtTable.holder.parentNode),s&&s.clone&&this.clones.push(s.clone.wtTable.holder.parentNode)}function m(){this.freezeOverlays=!0,(0,r.arrayEach)(this.clones,e=>{(0,n.addClass)(e,"hide-tween")})}function w(){this.freezeOverlays=!1,(0,r.arrayEach)(this.clones,e=>{(0,n.removeClass)(e,"hide-tween"),(0,n.addClass)(e,"show-tween")}),this.hot._registerTimeout(()=>{(0,r.arrayEach)(this.clones,e=>{(0,n.removeClass)(e,"show-tween")})},400),(0,r.arrayEach)(this.scrollbars,e=>{e.refresh(),e.resetFixedPosition()}),this.hot.view._wt.wtOverlays.syncScrollWithMaster()}t.TouchScroll=f},39572:(e,t,o)=>{"use strict";t.__esModule=!0,t.triggerNodeModification=function(e,t,o){if(!a.has(e))throw new Error(`The node modifier action ("${e}") does not exist.`);return a.get(e)(t,o)},o(52490);var i=o(60269),s=o(84686),n=o(46848),r=o(18253);const a=new Map([["collapse",i.collapseNode],["expand",s.expandNode],["hide-column",n.hideColumn],["show-column",r.showColumn]])},39604:(e,t,o)=>{"use strict";t.__esModule=!0,t.checkPluginSettingsConflict=function(e){return n.some(t=>{const o=!!e[t];return o&&(0,s.warn)(i.toSingleLine`The \`pagination\` plugin cannot be used with the \`${t}\` option.\x20
67
- This combination is not supported. The plugin will remain disabled.`),o})};var i=o(30738),s=o(7120);const n=["nestedRows","mergeCells","fixedRowsTop","fixedRowsBottom"]},39710:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"unfreeze_column",name(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN)},callback(t,o){const[{start:{col:i}}]=o;e.unfreezeColumn(i),this.view.adjustElementsSize(),this.render()},hidden(){const e=this.getSelectedRange();let t=!1;return(void 0===e||e.length>1||e[0].from.col!==e[0].to.col||e[0].from.col>=this.getSettings().fixedColumnsStart)&&(t=!0),t}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481))},39748:(e,t,o)=>{"use strict";o(52653)},39872:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=o(4138),n=i(o(18805));class r{constructor(e,t){this.settings=e,this.cellRange=t||null}isEmpty(){return null===this.cellRange}add(e){return this.isEmpty()?this.cellRange=this.settings.createCellRange(e):this.cellRange.expand(e),this}replace(e,t){if(!this.isEmpty()){if(this.cellRange.from.isEqual(e))return this.cellRange.from=t,!0;if(this.cellRange.to.isEqual(e))return this.cellRange.to=t,!0}return!1}clear(){return this.cellRange=null,this}getCorners(){const e=this.cellRange.getOuterTopStartCorner(),t=this.cellRange.getOuterBottomEndCorner();return[e.row,e.col,t.row,t.col]}destroy(){this.runLocalHooks("destroy")}}(0,s.mixin)(r,n.default);t.default=r},39888:(e,t,o)=>{"use strict";var i=o(41462),s=o(31520),n=o(59188),r=o(94811),a=o(26023),l=o(48369),h=s.Set,c=s.add,u=s.has;e.exports=function(e){var t=i(this),o=r(e),s=new h;return n(t)>o.size?l(o.getIterator(),function(e){u(t,e)&&c(s,e)}):a(t,function(e){o.includes(e)&&c(s,e)}),s}},39969:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_ROW_ABOVE)},callback(){const e=this.getSelectedRangeActive().getTopLeftCorner();this.alter("insert_row_above",e.row,1,"ContextMenu.rowAbove")},disabled(){const e=this.getSelectedRangeActive();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 i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481));const s=t.KEY="row_above"},40041:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(43181);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.Search=i.Search},40059:(e,t,o)=>{"use strict";o(49463)("flatMap")},40492:(e,t,o)=>{"use strict";t.__esModule=!0,t.autocompleteValidator=n;var i=o(4138);const s=t.VALIDATOR_TYPE="autocomplete";function n(e,t){let o=e;null==o&&(o=""),this.allowEmpty&&""===o?t(!0):this.strict&&this.source?"function"==typeof this.source?this.source(o,r(o,t)):r(o,t)(this.source):t(!0)}function r(e,t){const o=e;return function(e){let s=!1;for(let t=0,n=e.length;t<n;t++)if((0,i.isObjectEqual)(o,e[t])){s=!0;break}t(s)}}n.VALIDATOR_TYPE=s},40550:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostBottom",callback(e){const{selection:t,rowIndexMapper:o}=e,{highlight:i,from:s,to:n}=e.getSelectedRangeActive(),r=i.isHeader()&&t.isSelectedByRowHeader();if(i.isCell()||r){const a=o.getNearestNotHiddenIndex(e.countRows()-1,-1),l=s.clone();l.row=i.row,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,i.clone()),r&&t.selectedByRowHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(a,n.col)),t.markEndSource()}}}},40591:(e,t,o)=>{"use strict";t.__esModule=!0,t.sort=function(e,t){const o=(0,i.getRootComparator)(t);for(var s=arguments.length,n=new Array(s>2?s-2:0),r=2;r<s;r++)n[r-2]=arguments[r];e.sort(o(...n))};var i=o(32234);t.DO_NOT_SWAP=0,t.FIRST_BEFORE_SECOND=-1,t.FIRST_AFTER_SECOND=1},40761:(e,t,o)=>{"use strict";var i=o(2382),s=o(33266),n=TypeError,r=Object.getOwnPropertyDescriptor,a=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=a?function(e,t){if(s(e)&&!r(e,"length").writable)throw new n("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},40920:(e,t,o)=>{"use strict";t.__esModule=!0,t._dataToHTML=function(e){const t=e.length,o=["<table>"];for(let s=0;s<t;s+=1){const n=e[s],r=n.length,a=[];0===s&&o.push("<tbody>");for(let e=0;e<r;e+=1){const t=n[e],o=(0,i.isEmpty)(t)?"":t.toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20{2,}/gi,e=>`<span style="mso-spacerun: yes">${"&nbsp;".repeat(e.length-1)} </span>`).replace(/\t/gi,"&#9;");a.push(`<td>${o}</td>`)}o.push("<tr>",...a,"</tr>"),s+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={},i=t.createDocumentFragment(),r=t.createElement("div");i.appendChild(r);let a=e;if("string"==typeof a){const e=a.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(/^&nbsp;$/gm,"")}</td>`});r.insertAdjacentHTML("afterbegin",`${e}`),a=r.querySelector("table")}if(!a||!function(e){return"TABLE"===(e&&e.nodeName||"")}(a))return;const l=r.querySelector('meta[name$="enerator"]'),h=null!==a.querySelector("tbody th"),c=a.querySelector("tr"),u=c?Array.from(c.cells).reduce((e,t)=>e+t.colSpan,0)-(h?1:0):0,d=a.tFoot&&Array.from(a.tFoot.rows)||[],g=[];let f=!1,p=0,m=0;if(a.tHead){const e=Array.from(a.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:i,innerHTML:s}=t,n=i>1?{label:s,colspan:i}:s;return e.push(n),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(a.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),i=o.length;for(let t=0;t<i;t++){const i=o[t],{nodeName:r,innerHTML:a,rowSpan:h,colSpan:c}=i,u=C[e].findIndex(e=>void 0===e);if("TD"===r){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=i.getAttribute("style");t&&t.includes("mso-ignore:colspan")||v.push({col:u,row:e,rowspan:h,colspan:c})}let t="";t=l&&/excel/gi.test(l.content)?a.replace(/[\r\n][\x20]{0,2}/g," ").replace(/<br(\s*|\/)>[\r\n]?[\x20]{0,3}/gim,"\r\n"):a.replace(/<br(\s*|\/)>[\r\n]?/gim,"\r\n"),C[e][u]=t.replace(n,e=>s[e])}else y.push(a)}}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(),s=[t?-1:0,o?-1:0,e.countRows()-1,e.countCols()-1],n=e.getData(...s),r=n.length,a=r>0?n[0].length:0,l=["<table>","</table>"],h=t?["<thead>","</thead>"]:[],c=["<tbody>","</tbody>"],u=o?1:0,d=t?1:0;for(let s=0;s<r;s+=1){const r=t&&0===s,l=[];for(let t=0;t<a;t+=1){const a=!r&&o&&0===t;let h="";if(r)h=`<th>${e.getColHeader(t-u)}</th>`;else if(a)h=`<th>${e.getRowHeader(s-d)}</th>`;else{const o=n[s][t],{hidden:r,rowspan:a,colspan:l}=e.getCellMeta(s-d,t-u);if(!r){const e=[];if(a&&e.push(`rowspan="${a}"`),l&&e.push(`colspan="${l}"`),(0,i.isEmpty)(o))h=`<td ${e.join(" ")}></td>`;else{const t=o.toString().replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20/gi,"&nbsp;").replace(/\t/gi,"&#9;");h=`<td ${e.join(" ")}>${t}</td>`}}}l.push(h)}const g=["<tr>",...l,"</tr>"].join("");r?h.splice(1,0,g):c.splice(-1,0,g)}return l.splice(1,0,h.join(""),c.join("")),l.join("")},o(99356),o(26648),o(34478),o(29810),o(940),o(33098);var i=o(7886);const s={"&nbsp;":" ","&amp;":"&","&lt;":"<","&gt;":">"},n=new RegExp(Object.keys(s).map(e=>`(${e})`).join("|"),"gi")},40929:(e,t,o)=>{"use strict";t.__esModule=!0,t.isChrome=function(){return r.chrome.value},t.isChromeWebKit=function(){return r.chromeWebKit.value},t.isEdge=function(){return r.edge.value},t.isEdgeWebKit=function(){return r.edgeWebKit.value},t.isFirefox=function(){return r.firefox.value},t.isFirefoxWebKit=function(){return r.firefoxWebKit.value},t.isIOS=function(){return a.ios.value},t.isIpadOS=function(){let{maxTouchPoints:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator;return e>2&&a.mac.value},t.isLinuxOS=function(){return a.linux.value},t.isMacOS=function(){return a.mac.value},t.isMobileBrowser=function(){return r.mobile.value},t.isSafari=function(){return r.safari.value},t.isWindowsOS=function(){return a.win.value},t.setBrowserMeta=l,t.setPlatformMeta=h;var i=o(4138),s=o(79035);const n=e=>{const t={value:!1,test:(o,i)=>{t.value=e(o,i)}};return t},r={chrome:n((e,t)=>/Chrome/.test(e)&&/Google/.test(t)),chromeWebKit:n(e=>/CriOS/.test(e)),edge:n(e=>/Edge/.test(e)),edgeWebKit:n(e=>/EdgiOS/.test(e)),firefox:n(e=>/Firefox/.test(e)),firefoxWebKit:n(e=>/FxiOS/.test(e)),mobile:n(e=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)),safari:n((e,t)=>/Safari/.test(e)&&/Apple Computer/.test(t))},a={mac:n(e=>/^Mac/.test(e)),win:n(e=>/^Win/.test(e)),linux:n(e=>/^Linux/.test(e)),ios:n(e=>/iPhone|iPad|iPod/i.test(e))};function l(){let{userAgent:e=navigator.userAgent,vendor:t=navigator.vendor}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.objectEach)(r,o=>{let{test:i}=o;i(e,t)})}function h(){let{platform:e=navigator.platform}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.objectEach)(a,t=>{let{test:o}=t;o(e)})}(0,s.isCSR)()&&(l(),h())},40981:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},41145:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.condition=l;var s=i(o(86798)),n=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),r=o(23895);const a=t.CONDITION_NAME="date_after";function l(e,t){let[o]=t;const i=(0,s.default)(e.value,e.meta.dateFormat),n=(0,s.default)(o,e.meta.dateFormat);return!(!i.isValid()||!n.isValid())&&i.diff(n)>=0}(0,r.registerCondition)(a,l,{name:n.FILTERS_CONDITIONS_AFTER,inputsCount:1,showOperators:!0})},41462:(e,t,o)=>{"use strict";var i=o(31520).has;e.exports=function(e){return i(e),e}},41595:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(58584),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(66133),o(31143),o(940);var s=i(o(24300)),n=o(26808),r=o(25854),a=o(7120),l=o(58604),h=o(7886),c=o(32040),u=o(24879),d=o(12516),g=o(9013),f=o(2744),p=o(23228),m=i(o(81045));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(S(e,t),o),o}function y(e,t){return e.get(S(e,t))}function S(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 E=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 A extends n.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),i=0;i<t;i++)o[i]=arguments[i];return S(O,e,q).call(e,...o)}],["namedExpressionAdded",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return S(O,e,Q).call(e,...o)}],["namedExpressionRemoved",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return S(O,e,J).call(e,...o)}],["sheetAdded",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return S(O,e,Z).call(e,...o)}],["sheetRenamed",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return S(O,e,ee).call(e,...o)}],["sheetRemoved",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return S(O,e,te).call(e,...o)}]]),(0,s.default)(this,"staticRegister",(0,r.staticRegister)("formulas")),(0,s.default)(this,"engine",null),(0,s.default)(this,"sheetId",null),(0,s.default)(this,"sheetName",null),(0,s.default)(this,"indexSyncer",null),(0,s.default)(this,"rowAxisSyncer",null),(0,s.default)(this,"columnAxisSyncer",null)}static get PLUGIN_KEY(){return E}static get PLUGIN_PRIORITY(){return b}static get SETTING_KEYS(){return[E,...R]}isEnabled(){return!!this.hot.getSettings()[E]}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&&S(O,this,N).call(this,e)}this.addHook("beforeLoadData",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,x).call(t,...o)}),this.addHook("afterLoadData",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,D).call(t,...o)}),this.addHook("beforeUpdateData",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,x).call(t,...o)}),this.addHook("afterUpdateData",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,D).call(t,...o)}),this.addHook("modifyData",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,L).call(t,...o)}),this.addHook("modifySourceData",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,V).call(t,...o)}),this.addHook("beforeValidate",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,P).call(t,...o)}),this.addHook("afterSetSourceDataAtCell",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,F).call(t,...o)}),this.addHook("afterSetDataAtCell",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,W).call(t,...o)}),this.addHook("afterSetDataAtRowProp",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,W).call(t,...o)}),this.addHook("beforeCreateRow",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,B).call(t,...o)}),this.addHook("beforeCreateCol",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,U).call(t,...o)}),this.addHook("afterCreateRow",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,z).call(t,...o)}),this.addHook("afterCreateCol",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,G).call(t,...o)}),this.addHook("beforeRemoveRow",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,Y).call(t,...o)}),this.addHook("beforeRemoveCol",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,j).call(t,...o)}),this.addHook("afterRemoveRow",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,$).call(t,...o)}),this.addHook("afterRemoveCol",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(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,i)=>{this.rowAxisSyncer.storeMovesInformation(e,t,i)}),this.hot.addHook("beforeColumnMove",(e,t,o,i)=>{this.columnAxisSyncer.storeMovesInformation(e,t,i)}),this.hot.addHook("afterRowMove",(e,t,o,i,s)=>{this.rowAxisSyncer.calculateAndSyncMoves(i,s)}),this.hot.addHook("afterColumnMove",(e,t,o,i,s)=>{this.columnAxisSyncer.calculateAndSyncMoves(i,s)}),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),i=0;i<e;i++)o[i]=arguments[i];return S(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),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,X).call(t,...o)}),this.addHook("beforeAutofill",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,H).call(t,...o)}),y(I,this).forEach(e=>{let[t,o]=e;return this.engine.on(t,o)}),super.enablePlugin()}else(0,a.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()[E];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()[E].sheetName;if(e&&this.engine.doesSheetExist(e))this.switchSheet(this.sheetName);else{const t=this.addSheet(null!=e?e:void 0,this.hot.getSourceDataArray());S(O,this,N).call(this,t)}}super.updatePlugin(e)}destroy(){y(I,this).forEach(e=>{var t;let[o,i]=e;return null===(t=this.engine)||void 0===t?void 0:t.off(o,i)}),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,a.warn)("The provided data should be an array of arrays."),!1;if(null!=e&&this.engine.doesSheetExist(e))return(0,a.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,a.warn)(e.message),!1}}switchSheet(e){if(!this.engine.doesSheetExist(e))return void(0,a.error)(`The sheet named \`${e}\` does not exist, switch aborted.`);S(O,this,N).call(this,e);const t=this.engine.getSheetSerialized(this.sheetId);t.length>0&&this.hot.loadData(t,`${(0,f.toUpperCaseFirst)(E)}.switchSheet`)}getCellType(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.sheetId;const i=this.hot.toPhysicalRow(e),s=this.hot.toPhysicalColumn(t);return null!==i&&null!==s?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 i=null==e||null===(t=e.address)||void 0===t?void 0:t.sheet;void 0!==i&&(o.has(i)||o.add(i))}),(0,c.getRegisteredHotInstances)(this.engine).forEach((e,i)=>{var s;(t||i!==this.sheetId)&&o.has(i)&&(e.render(),null===(s=e.view)||void 0===s||s.adjustElementsSize())})}validateDependentCells(e){const t=e=>{var t;const{row:o,col:i,sheet:s}=null!==(t=null==e?void 0:e.address)&&void 0!==t?t:{};return(0,h.isDefined)(s)?`${s}:${o}x${i}`:""},o=new Set((arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).map(e=>t(e)));e.forEach(e=>{var i,s;const{row:n,col:r}=null!==(i=e.address)&&void 0!==i?i:{};if(!1===(0,h.isDefined)(n)||!1===(0,h.isDefined)(r)||n>=this.hot.countRows()||r>=this.hot.countCols())return;const a=null==e||null===(s=e.address)||void 0===s?void 0:s.sheet,l=t(e);if(void 0!==a&&!o.has(l)){const e=(0,c.getRegisteredHotInstances)(this.engine).get(a);if(!e)return;e.validateCell(e.getDataAtCell(n,r),e.getCellMeta(n,r),()=>{})}})}syncChangeWithEngine(e,t,o){const i={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t),sheet:this.sheetId};if(!this.engine.isItPossibleToSetCellContents(i))return void(0,a.warn)(`Not possible to set cell data at ${JSON.stringify(i)}`);const s=this.hot.getCellMeta(e,t);return(0,u.isDate)(o,s.type)&&((0,u.isDateValid)(o,s.dateFormat)?o=(0,u.getDateInHfFormat)(o,s.dateFormat):!1===(0,u.isFormula)(o)&&(o=`'${o}`)),this.engine.setCellContents(i,o)}}function N(e){this.sheetName=e,this.sheetId=this.engine.getSheetId(this.sheetName)}function P(e,t,o){const i=this.hot.propToCol(o);if(this.isFormulaCellType(t,i)){const e={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(i),sheet:this.sheetId},o=this.hot.getCellMeta(t,i);let s=this.engine.getCellValue(e);return"date"===o.type&&(0,l.isNumeric)(s)&&(s=(0,u.getDateFromExcelDate)(s,o.dateFormat)),"object"==typeof s&&null!==s?s.value:s}return e}function H(e,t,o){const{row:i,col:s}=t.getTopStartCorner(),{row:n,col:r}=t.getBottomEndCorner(),{row:a,col:l}=o.getTopStartCorner(),{row:h,col:c}=o.getBottomEndCorner(),d={start:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(i),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(s),sheet:this.sheetId},end:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(n),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(r),sheet:this.sheetId}},g={start:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(a),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(l),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],i=p+e%v,s=m+t%y,n=this.hot.getCellMeta(i,s);(0,u.isDate)(o,n.type)&&(o.startsWith("'")?f[e][t]=o.slice(1):!1===this.isFormulaCellType(i,s,this.sheetId)&&(f[e][t]=(0,u.getDateInHotFormat)(o,n.dateFormat)))}return f}function x(e,t){(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"").includes((0,f.toUpperCaseFirst)(E))||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,i)=>{const s=this.hot.getCellMeta(o,i,{skipMetaExtension:!0}),n=s.dateFormat;(0,u.isDate)(t,s.type)&&((0,u.isDateValid)(t,n)?e[o][i]=(0,u.getDateInHfFormat)(t,n):t.startsWith("=")||(e[o][i]=`'${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)(E)))return;const i=(0,c.setupSheet)(this.engine,this.hot.getSettings()[E].sheetName);if(S(O,this,N).call(this,i),"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,i){if("get"!==i||y(T,this)||null===this.sheetName||!this.engine.doesSheetExist(this.sheetName))return;if(null===e||null===t)return;const s=this.getCellType(e,t);if("VALUE"===s||"EMPTY"===s)return void(o.value=(0,u.unescapeFormulaExpression)(o.value));const n={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t),sheet:this.sheetId};let r=this.engine.getCellValue(n);const a=this.hot.getCellMeta(e,t,{skipMetaExtension:!0});"date"===a.type&&(0,l.isNumeric)(r)&&(r=(0,u.getDateFromExcelDate)(r,a.dateFormat)),o.value="object"==typeof r&&null!==r?r.value:r}function V(e,t,o,i){if("get"!==i||y(T,this)||null===this.sheetName||!this.engine.doesSheetExist(this.sheetName))return;const s=this.hot.toVisualRow(e),n=this.hot.propToCol(t);if(null===s||null===n)return;const r=this.getCellType(s,n);if("VALUE"===r||"EMPTY"===r)return;const a=this.engine.getSheetDimensions(this.engine.getSheetId(this.sheetName));if(0===a.width&&0===a.height)return;const l={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(s),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(n),sheet:this.sheetId};o.value=this.engine.getCellSerialized(l)}function W(e,t){if(_(t))return;const o=[],i=[],s=this.engine.batch(()=>{e.forEach(e=>{let[t,s,,n]=e;const r=this.hot.propToCol(s),a=this.hot.toPhysicalRow(t),l=this.hot.toPhysicalColumn(r),h={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(r),sheet:this.sheetId};null!==a&&null!==l?this.syncChangeWithEngine(t,r,n):o.push([t,r,n]),i.push({address:h})})});o.length&&this.hot.addHookOnce("afterChange",()=>{const e=this.engine.batch(()=>{o.forEach(e=>{let[t,o,i]=e;this.syncChangeWithEngine(t,o,i)})});this.renderDependentSheets(e,!0)}),this.renderDependentSheets(s),this.validateDependentCells(s,i)}function F(e,t){if(_(t))return;const o=[],i=[];e.forEach(e=>{let[t,s,,n]=e;const r=this.hot.propToCol(s);if(!(0,l.isNumeric)(r))return;const h={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(r),sheet:this.sheetId};this.engine.isItPossibleToSetCellContents(h)?(i.push({address:h}),o.push(...this.engine.setCellContents(h,n))):(0,a.warn)(`Not possible to set source cell data at ${JSON.stringify(h)}`)}),this.renderDependentSheets(o),this.validateDependentCells(o,i)}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 i=this.engine.addRows(this.sheetId,[this.rowAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(i)}function G(e,t,o){if(_(o))return;const i=this.engine.addColumns(this.sheetId,[this.columnAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(i)}function $(e,t,o,i){if(_(i))return;const s=this.rowAxisSyncer.getRemovedHfIndexes().sort((e,t)=>t-e),n=this.engine.batch(()=>{s.forEach(e=>{this.engine.removeRows(this.sheetId,[e,1])})});this.renderDependentSheets(n)}function K(e,t,o,i){if(_(i))return;const s=this.columnAxisSyncer.getRemovedHfIndexes().sort((e,t)=>t-e),n=this.engine.batch(()=>{s.forEach(e=>{this.engine.removeColumns(this.sheetId,[e,1])})});this.renderDependentSheets(n)}function X(e,t,o){var i;v(T,this,!0);const s=this.hot.getSourceDataArray(o,0,o+((null===(i=t.__children)||void 0===i?void 0:i.length)||0),this.hot.countSourceCols());v(T,this,!1),s.forEach((e,t)=>{e.forEach((e,i)=>{this.engine.setCellContents({col:i,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){S(O,this,N).call(this,t),this.hot.runHooks("afterSheetRenamed",e,t)}function te(e,t){this.hot.runHooks("afterSheetRemoved",e,t)}t.Formulas=A},41691:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(55656);const{getListWithInsertedItems:s,getListWithRemovedItems:n}=(0,i.alterUtilsFactory)("physicallyIndexed");class r extends i.IndexMap{constructor(){super(e=>e)}insert(e,t){const o=(0,i.getIncreasedIndexes)(this.indexedValues,t);this.indexedValues=s(o,e,t,this.initValueOrFn),super.insert(e,t)}remove(e){const t=n(this.indexedValues,e);this.indexedValues=(0,i.getDecreasedIndexes)(t,e),super.remove(e)}}t.default=r},42207:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(32813),r=o(78966),a=o(47802),l=o(4138),h=o(13390);const c="handsontableEditor",u=t.EDITOR_TYPE="handsontable";class d extends n.TextEditor{constructor(){super(...arguments),(0,s.default)(this,"isFlippedVertically",!1),(0,s.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,r.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,i,s,n){super.prepare(e,t,o,i,s,n);const r=this,a={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&&r.setValue(o),r.hot.destroyEditor()},preventWheel:!0,layoutDirection:this.hot.isRtl()?"rtl":"ltr"};this.cellProperties.handsontable&&(0,l.extend)(a,n.handsontable),this.htOptions=a}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.getSelectedActive()){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 i=this.getDropdownHeight(),s=e.getWorkspaceHeight()-o-t.height,n=i>s&&o>s+t.height;return n?this.flipDropdownVertically():this.unflipDropdownVertically(),{isFlipped:n,spaceAbove:o,spaceBelow:s}}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 i=this.getDropdownWidth(),s=e.getWorkspaceWidth()-o+t.width,n=i>s&&o>s;return n?this.flipDropdownHorizontally():this.unflipDropdownHorizontally(),{isFlipped:n,spaceInlineStart:o,spaceInlineEnd:s}}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,a.stopImmediatePropagation)(t),this.hot.listen(),this.TEXTAREA.focus(),!1};e.addShortcuts([{keys:[["ArrowUp"]],callback:e=>{const t=this.htEditor;let i,s;return!t.getSelectedActive()&&this.isFlippedVertically?i=t.countRows()-1:t.getSelectedActive()&&(this.isFlippedVertically?(s=t.getSelectedActive()[0],i=Math.max(0,s-1)):(s=t.getSelectedActive()[0],i=s-1)),o(i,e)},preventDefault:!1},{keys:[["ArrowDown"]],callback:e=>{const t=this.htEditor;let i,s;if(t.getSelectedActive()||this.isFlippedVertically){if(t.getSelectedActive())if(this.isFlippedVertically)i=t.getSelectedActive()[0]+1;else if(!this.isFlippedVertically){const e=t.countRows()-1;s=t.getSelectedActive()[0],i=Math.min(e,s+1)}}else i=0;return o(i,e)},preventDefault:!1}],t)}unregisterShortcuts(){super.unregisterShortcuts();this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(c)}}t.HandsontableEditor=d},42299:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(4138),r=o(28520),a=i(o(86491));t.default=class{constructor(e){(0,s.default)(this,"metaCtor",class{}),(0,s.default)(this,"meta",void 0),this.meta=this.metaCtor.prototype,(0,n.extend)(this.meta,(0,a.default)()),this.meta.instance=e}getMetaConstructor(){return this.metaCtor}getMeta(){return this.meta}updateMeta(e){var t;(0,n.extend)(this.meta,e),(0,r.extendByMetaType)(this.meta,{...e,type:null!==(t=e.type)&&void 0!==t?t:this.meta.type},e)}}},42326:(e,t,o)=>{"use strict";var i=o(19098),s=o(19451),n=o(66431),r=o(62283).indexOf,a=o(48099),l=i([].push);e.exports=function(e,t){var o,i=n(e),h=0,c=[];for(o in i)!s(a,o)&&s(i,o)&&l(c,o);for(;t.length>h;)s(i,o=t[h++])&&(~r(c,o)||l(c,o));return c}},42328:(e,t,o)=>{"use strict";var i=o(19098),s=o(70792);e.exports=function(e,t,o){try{return i(s(Object.getOwnPropertyDescriptor(e,t)[o]))}catch(e){}}},42559:(e,t,o)=>{"use strict";var i=o(15105),s=o(19451),n=o(20637),r=o(14815),a=o(79937),l=o(31622),h=o(17374),c=o(59549),u=o(82497),d=o(92434),g=o(22849),f=o(2382),p=o(33973);e.exports=function(e,t,o,m){var w="stackTraceLimit",C=m?2:1,v=e.split("."),y=v[v.length-1],S=i.apply(null,v);if(S){var E=S.prototype;if(!p&&s(E,"cause")&&delete E.cause,!o)return S;var R=i("Error"),b=t(function(e,t){var o=u(m?t:e,void 0),i=m?new S(e):new S;return void 0!==o&&n(i,"message",o),g(i,b,i.stack,2),this&&r(E,this)&&c(i,this,b),arguments.length>C&&d(i,arguments[C]),i});if(b.prototype=E,"Error"!==y?a?a(b,R):l(b,R,{name:!0}):f&&w in S&&(h(b,S,w),h(b,S,"prepareStackTrace")),l(b,S),!p)try{E.name!==y&&n(E,"name",y),E.constructor=b}catch(e){}return b}}},42595:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(18385);t.EDITOR_TYPE=i.EDITOR_TYPE,t.NumericEditor=i.NumericEditor},42888:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356);var s=i(o(24300)),n=o(3715),r=o(34822),a=o(86092),l=o(58226),h=o(30386),c=i(o(59468)),u=o(94576),d=o(40929),g=o(78966),f=o(47802),p=o(81761),m=o(7886),w=o(4138),C=i(o(18805)),v=o(1880),y=o(72609);function S(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 E(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&&E(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,s.default)(this,"hot",void 0),(0,s.default)(this,"options",void 0),(0,s.default)(this,"eventManager",new c.default(this)),(0,s.default)(this,"container",void 0),(0,s.default)(this,"positioner",void 0),(0,s.default)(this,"hotMenu",null),(0,s.default)(this,"hotSubMenus",{}),(0,s.default)(this,"parentMenu",void 0),(0,s.default)(this,"menuItems",null),(0,s.default)(this,"origOutsideClickDeselects",null),S(this,_,void 0),S(this,T,void 0),S(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 n.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),i=0;i<e;i++)t[i]=arguments[i];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.getSelectedActive()[0]):null}hasSelectedItem(){return Array.isArray(this.hotMenu.getSelectedActive())}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,i=(0,u.arrayFilter)(this.menuItems,e=>(e.key===l.NO_ITEMS&&(o=!0),(0,h.isItemHidden)(e,this.hot)));if(i.length<1&&!o)i.push((0,l.predefinedItems)()[l.NO_ITEMS]);else if(0===i.length)return;i=(0,h.filterSeparators)(i,l.SEPARATOR);let s=!1;const n={data:i,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)()&&s&&this.hasSelectedItem()&&this.close(!0)},afterSelection:(e,t,o,i,s)=>{this.hotMenu.view.isMouseDown()&&(s.value=!0),this.runLocalHooks("afterSelectionChange",this.getSelectedItem())},beforeOnCellMouseUp:e=>{this.hasSelectedItem()&&(s=!this.isCommandPassive(this.getSelectedItem()),this.executeCommand(e))},afterOnCellMouseUp:e=>{(0,d.isWindowsOS)()&&(0,f.isRightClick)(e)||!s||!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,n),this.hotMenu.addHook("afterInit",()=>this.onAfterInit()),this.hotMenu.init(),E(_,this,(0,r.createMenuNavigator)(this.hotMenu)),E(T,this,(0,a.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.getSelectedActive();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),i=new I(this.hot,{parent:this,name:o.name,className:this.options.className,keepInViewport:!0,container:this.options.container});return i.setMenuItems(o.submenu.items),i.open(),i.setPosition(t.getBoundingClientRect()),this.hotSubMenus[o.key]=i,this.hot.getSettings().ariaTags&&(0,g.setAttribute)(t,[(0,y.A11Y_EXPANDED)(!0)]),i}closeSubMenu(e){const t=this.hotMenu.getSourceDataAtRow(e),o=this.hotSubMenus[t.key];if(o){o.destroy(),delete this.hotSubMenus[t.key];const i=this.hotMenu.getCell(e,0);this.hot.getSettings().ariaTags&&(0,g.setAttribute)(i,[(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(),i=o?(0,h.normalizeSelection)(o):[];this.runLocalHooks("executeCommand",t.key,i,e),this.isSubMenu()&&this.parentMenu.runLocalHooks("executeCommand",t.key,i,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,i=e.holder.style,s=parseInt(o.width,10),n=(0,u.arrayReduce)(t,(e,t,o)=>{const i=this.hotMenu.getCell(o,0)?(0,g.outerHeight)(this.hotMenu.getCell(o,0)):0;return e+(t.name===l.SEPARATOR?1:i)},0);this.hotMenu.stylesHandler.isClassicTheme()?(i.width=`${s+3}px`,i.height=`${n+3}px`):(i.width=`${s}px`,i.height=`${n}px`),o.height=i.height}createContainer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=this.options.container.ownerDocument;let o,i=e;return i&&((0,p.isFunction)(i)&&(i=i.call(this.hot),i=null===i||(0,m.isUndefined)(i)?"":i.toString()),i=i.replace(/[^A-Za-z0-9]/g,"_"),i=`${this.options.className}Sub_${i}`,o=t.querySelector(`.${this.options.className}.${i}`)),o||(o=t.createElement("div"),(0,g.addClass)(o,`htMenu handsontable ${this.options.className}`),i&&(0,g.addClass)(o,i),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)},43181:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356);var s=i(o(24300)),n=o(26808),r=o(4138),a=o(58604),l=o(7886);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="search",d=t.PLUGIN_PRIORITY=190,g=function(e,t,o,i,s){e.getCellMeta(t,o).isSearchResult=s},f=function(e,t,o){return!((0,l.isUndefined)(e)||null===e||!e.toLocaleLowerCase||0===e.length)&&(!(0,l.isUndefined)(t)&&null!==t&&-1!==t.toString().toLocaleLowerCase(o.locale).indexOf(e.toLocaleLowerCase(o.locale)))};var p=new WeakSet;class m extends n.BasePlugin{constructor(){super(...arguments),h(this,p),(0,s.default)(this,"callback",g),(0,s.default)(this,"queryMethod",f),(0,s.default)(this,"searchResultClass","htSearchResult")}static get PLUGIN_KEY(){return u}static get PLUGIN_PRIORITY(){return d}isEnabled(){return this.hot.getSettings()[u]}enablePlugin(){var e=this;if(this.enabled)return;const t=this.hot.getSettings()[u];this.updatePluginSettings(t),this.addHook("beforeRenderer",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return c(p,e,w).call(e,...o)}),super.enablePlugin()}disablePlugin(){var e=this;const t=function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return c(p,e,w).call(e,...o)};this.hot.addHook("beforeRenderer",t),this.hot.addHookOnce("afterViewRender",()=>{this.hot.removeHook("beforeRenderer",t)}),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}query(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCallback(),o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.getQueryMethod();const i=this.hot.countRows(),s=this.hot.countCols(),n=[],r=this.hot;return(0,a.rangeEach)(0,i-1,i=>{(0,a.rangeEach)(0,s-1,s=>{const a=this.hot.getDataAtCell(i,s),l=this.hot.getCellMeta(i,s),h=l.search.callback||t,c=(l.search.queryMethod||o)(e,a,l);if(c){const e={row:i,col:s,data:a};n.push(e)}h&&h(r,i,s,a,c)})}),n}getCallback(){return this.callback}setCallback(e){this.callback=e}getQueryMethod(){return this.queryMethod}setQueryMethod(e){this.queryMethod=e}getSearchResultClass(){return this.searchResultClass}setSearchResultClass(e){this.searchResultClass=e}updatePluginSettings(e){(0,r.isObject)(e)&&(e.searchResultClass&&this.setSearchResultClass(e.searchResultClass),e.queryMethod&&this.setQueryMethod(e.queryMethod),e.callback&&this.setCallback(e.callback))}destroy(){super.destroy()}}function w(e,t,o,i,s,n){const r=n.className||[];let a=[];"string"==typeof r?a=r.split(" "):a.push(...r),this.isEnabled()&&n.isSearchResult?a.includes(this.searchResultClass)||a.push(`${this.searchResultClass}`):a.includes(this.searchResultClass)&&a.splice(a.indexOf(this.searchResultClass),1),n.className=a.join(" ")}t.Search=m},43290:(e,t,o)=>{"use strict";var i=o(60606),s=o(19098);e.exports=function(e){if("Function"===i(e))return s(e)}},43502:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(5085);var s=i(o(50236)),n=o(88422),r=o(5714),a=o(23228),l=o(63061),h=o(61654),c=o(5997),u=o(67347),d=o(13743);function g(e,t){const o=new s.default(e,t||{},n.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 s.default(e,t,n.rootInstanceSymbol)},g.DefaultSettings=(0,r.metaSchemaFactory)(),g.hooks=a.Hooks.getSingleton(),g.CellCoords=d.CellCoords,g.CellRange=d.CellRange,g.packageName="handsontable",g.buildDate="05/09/2025 09:35:50",g.version="16.1.0-next-91b8a0f-20250905",g.languages={dictionaryKeys:l.dictionaryKeys,getLanguageDictionary:l.getLanguageDictionary,getLanguagesDictionaries:l.getLanguagesDictionaries,registerLanguageDictionary:l.registerLanguageDictionary,getTranslatedPhrase:l.getTranslatedPhrase};t.default=g},43605:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(631);class r extends n.BaseAction{constructor(e){let{currentSortState:t,newSortState:o}=e;super("col_sort"),(0,s.default)(this,"previousSortState",void 0),(0,s.default)(this,"nextSortState",void 0),this.previousSortState=t,this.nextSortState=o}static startRegisteringEvents(e,t){e.addHook("beforeColumnSort",(e,o,i)=>{i&&t.done(()=>new r({currentSortState:e,newSortState:o}))})}undo(e,t){const o=e.getPlugin("columnSorting"),i=e.getPlugin("multiColumnSorting"),s=i.isEnabled()?i:o;this.previousSortState.length?s.sort(this.previousSortState):s.clearSort(),t()}redo(e,t){const o=e.getPlugin("columnSorting"),i=e.getPlugin("multiColumnSorting");(i.isEnabled()?i:o).sort(this.nextSortState),t()}}t.ColumnSortAction=r},43619:(e,t)=>{"use strict";t.__esModule=!0,t.cornerHeaderScrollStrategy=function(){return()=>{}}},43713:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=i(o(24300)),n=o(26808),r=o(47802),a=o(78966);function l(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 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="dragToScroll",u=t.PLUGIN_PRIORITY=100;var d=new WeakSet;class g extends n.BasePlugin{constructor(){super(...arguments),l(this,d),(0,s.default)(this,"boundaries",null),(0,s.default)(this,"callback",null),(0,s.default)(this,"listening",!1)}static get PLUGIN_KEY(){return c}static get PLUGIN_PRIORITY(){return u}isEnabled(){return!!this.hot.getSettings()[c]}enablePlugin(){this.enabled||(this.addHook("afterOnCellMouseDown",e=>h(d,this,f).call(this,e)),this.addHook("afterOnCellCornerMouseDown",e=>h(d,this,f).call(this,e)),this.registerEvents(),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.unregisterEvents(),super.disablePlugin()}setBoundaries(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{left:0,right:this.hot.rootWindow.innerWidth,top:0,bottom:this.hot.rootWindow.innerHeight};this.boundaries=e}setCallback(e){this.callback=e}check(e,t){let o=0,i=0;t<this.boundaries.top?i=t-this.boundaries.top:t>this.boundaries.bottom&&(i=t-this.boundaries.bottom),e<this.boundaries.left?o=e-this.boundaries.left:e>this.boundaries.right&&(o=e-this.boundaries.right),this.callback(o,i)}listen(){this.listening=!0}unlisten(){this.listening=!1}isListening(){return this.listening}registerEvents(){const{rootWindow:e}=this.hot;let t=e;for(;t;)this.eventManager.addEventListener(t.document,"contextmenu",()=>this.unlisten()),this.eventManager.addEventListener(t.document,"mouseup",()=>this.unlisten()),this.eventManager.addEventListener(t.document,"mousemove",e=>this.onMouseMove(e)),t=(0,a.getParentWindow)(t)}unregisterEvents(){this.eventManager.clear()}onMouseMove(e){this.isListening()&&this.check(e.clientX,e.clientY)}destroy(){super.destroy()}}function f(e){if((0,r.isRightClick)(e))return;const t=this.hot.view._wt.wtOverlays.topOverlay.mainTableScrollableElement;this.setBoundaries(t!==this.hot.rootWindow?t.getBoundingClientRect():void 0),this.setCallback((e,o)=>{var i,s;const n=null!==(i=t.scrollLeft)&&void 0!==i?i:t.scrollX,r=null!==(s=t.scrollTop)&&void 0!==s?s:t.scrollY;t.scroll(n+50*Math.sign(e),r+20*Math.sign(o))}),this.listen()}t.DragToScroll=g},44013:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(4138);const s={getFirstRenderedRow(){const e=this.getRenderedRowsCount();return 0===e?-1:this.wtSettings.getSetting("totalRows")-e},getFirstVisibleRow(){return this.getFirstRenderedRow()},getFirstPartiallyVisibleRow(){return this.getFirstRenderedRow()},getLastRenderedRow(){return 0===this.getRenderedRowsCount()?-1:this.wtSettings.getSetting("totalRows")-1},getLastVisibleRow(){return this.getLastRenderedRow()},getLastPartiallyVisibleRow(){return this.getLastRenderedRow()},getRenderedRowsCount(){return Math.min(this.wtSettings.getSetting("totalRows"),this.wtSettings.getSetting("fixedRowsBottom"))},getVisibleRowsCount(){return this.getRenderedRowsCount()},getColumnHeadersCount:()=>0};(0,i.defineGetter)(s,"MIXIN_NAME","stickyRowsBottom",{writable:!1,enumerable:!1});t.default=s},44031:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(81056);var s=o(26808),n=o(23228),r=i(o(8625)),a=i(o(39710));function l(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(e,t){return e.get(u(e,t))}function c(e,t,o){return e.set(u(e,t),o),o}function u(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("beforeColumnFreeze"),n.Hooks.getSingleton().register("afterColumnFreeze"),n.Hooks.getSingleton().register("beforeColumnUnfreeze"),n.Hooks.getSingleton().register("afterColumnUnfreeze");const d=t.PLUGIN_KEY="manualColumnFreeze",g=t.PLUGIN_PRIORITY=110;var f=new WeakMap,p=new WeakSet;class m extends s.BasePlugin{constructor(){var e,t;super(...arguments),l(e=this,t=p),t.add(e),function(e,t,o){l(e,t),t.set(e,o)}(this,f,!1)}static get PLUGIN_KEY(){return d}static get PLUGIN_PRIORITY(){return g}isEnabled(){return!!this.hot.getSettings()[d]}enablePlugin(){this.enabled||(this.addHook("afterContextMenuDefaultOptions",e=>u(p,this,w).call(this,e)),this.addHook("beforeColumnMove",(e,t)=>u(p,this,C).call(this,e,t)),super.enablePlugin())}disablePlugin(){c(f,this,!1),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}freezeColumn(e){const t=this.hot.getSettings(),o=t.fixedColumnsStart<this.hot.countCols()&&e>t.fixedColumnsStart-1;h(f,this)||c(f,this,!0);!1!==this.hot.runHooks("beforeColumnFreeze",e,o)&&(o&&(this.hot.columnIndexMapper.moveIndexes(e,t.fixedColumnsStart),t._fixedColumnsStart+=1),this.hot.runHooks("afterColumnFreeze",e,o))}unfreezeColumn(e){const t=this.hot.getSettings(),o=t.fixedColumnsStart>0&&e<=t.fixedColumnsStart-1;h(f,this)||c(f,this,!0);!1!==this.hot.runHooks("beforeColumnUnfreeze",e,o)&&(o&&(t._fixedColumnsStart-=1,this.hot.columnIndexMapper.moveIndexes(e,t.fixedColumnsStart)),this.hot.runHooks("afterColumnUnfreeze",e,o))}}function w(e){e.items.push({name:"---------"},(0,r.default)(this),(0,a.default)(this))}function C(e,t){if(h(f,this)){const o=this.hot.getSettings().fixedColumnsStart;if(t<o)return!1;if(e.some(e=>e<o))return!1}}t.ManualColumnFreeze=m},44251:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(34651);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.Loading=i.Loading},44270:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490);var i=o(28666);class s extends i.BaseTransformation{calculateOffset(){const e=this.getCurrentSelection(),{row:t,col:o}=e.getOuterTopStartCorner(),i=this.tableApi.countRenderableColumnsInRange(0,o-1),s=this.tableApi.countRenderableRowsInRange(0,t-1),n=e.highlight.isHeader(),r=n?Math.abs(o):0,a=n?Math.abs(t):0;return{x:o<0?r:-i,y:t<0?a:-s}}countRenderableRows(){const e=this.getCurrentSelection();return this.tableApi.countRenderableRowsInRange(0,e.getOuterBottomEndCorner().row)}countRenderableColumns(){const e=this.getCurrentSelection();return this.tableApi.countRenderableColumnsInRange(0,e.getOuterBottomEndCorner().col)}transformEnd(){throw new Error("`transformEnd` is not valid for focus selection use `transformStart` instead")}shouldSwitchSelectionLayer(){return!0}}t.FocusTransformation=s},44423:(e,t,o)=>{"use strict";var i=o(2382),s=o(60072),n=o(98363),r=o(90501),a=o(66431),l=o(61674);t.f=i&&!s?Object.defineProperties:function(e,t){r(e);for(var o,i=a(t),s=l(t),h=s.length,c=0;h>c;)n.f(e,o=s[c++],i[o]);return e}},44481:(e,t)=>{"use strict";t.__esModule=!0;const o=t.CONTEXT_MENU_ITEMS_NAMESPACE="ContextMenu:items",i=(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:"),s=t.FILTERS_CONDITIONS_NAMESPACE=`${i}conditions`,n=(t.FILTERS_CONDITIONS_NONE=`${s}.none`,t.FILTERS_CONDITIONS_EMPTY=`${s}.isEmpty`,t.FILTERS_CONDITIONS_NOT_EMPTY=`${s}.isNotEmpty`,t.FILTERS_CONDITIONS_EQUAL=`${s}.isEqualTo`,t.FILTERS_CONDITIONS_NOT_EQUAL=`${s}.isNotEqualTo`,t.FILTERS_CONDITIONS_BEGINS_WITH=`${s}.beginsWith`,t.FILTERS_CONDITIONS_ENDS_WITH=`${s}.endsWith`,t.FILTERS_CONDITIONS_CONTAINS=`${s}.contains`,t.FILTERS_CONDITIONS_NOT_CONTAIN=`${s}.doesNotContain`,t.FILTERS_CONDITIONS_BY_VALUE=`${s}.byValue`,t.FILTERS_CONDITIONS_GREATER_THAN=`${s}.greaterThan`,t.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL=`${s}.greaterThanOrEqualTo`,t.FILTERS_CONDITIONS_LESS_THAN=`${s}.lessThan`,t.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL=`${s}.lessThanOrEqualTo`,t.FILTERS_CONDITIONS_BETWEEN=`${s}.isBetween`,t.FILTERS_CONDITIONS_NOT_BETWEEN=`${s}.isNotBetween`,t.FILTERS_CONDITIONS_AFTER=`${s}.after`,t.FILTERS_CONDITIONS_BEFORE=`${s}.before`,t.FILTERS_CONDITIONS_TODAY=`${s}.today`,t.FILTERS_CONDITIONS_TOMORROW=`${s}.tomorrow`,t.FILTERS_CONDITIONS_YESTERDAY=`${s}.yesterday`,t.FILTERS_DIVS_FILTER_BY_CONDITION=`${i}labels.filterByCondition`,t.FILTERS_DIVS_FILTER_BY_VALUE=`${i}labels.filterByValue`,t.FILTERS_LABELS_CONJUNCTION=`${i}labels.conjunction`,t.FILTERS_LABELS_DISJUNCTION=`${i}labels.disjunction`,t.FILTERS_VALUES_BLANK_CELLS=`${i}values.blankCells`,t.FILTERS_BUTTONS_SELECT_ALL=`${i}buttons.selectAll`,t.FILTERS_BUTTONS_CLEAR=`${i}buttons.clear`,t.FILTERS_BUTTONS_OK=`${i}buttons.ok`,t.FILTERS_BUTTONS_CANCEL=`${i}buttons.cancel`,t.FILTERS_BUTTONS_PLACEHOLDER_SEARCH=`${i}buttons.placeholder.search`,t.FILTERS_BUTTONS_PLACEHOLDER_VALUE=`${i}buttons.placeholder.value`,t.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE=`${i}buttons.placeholder.secondValue`,t.PAGINATION_NAMESPACE="Pagination:"),r=(t.PAGINATION_SECTION=`${n}section.pagination`,t.PAGINATION_PAGE_SIZE_AUTO=`${n}.pageSize.auto`,t.PAGINATION_PAGE_SIZE_SECTION=`${n}section.pageSize`,t.PAGINATION_COUNTER_SECTION=`${n}section.counter`,t.PAGINATION_NAV_SECTION=`${n}section.navigation`,t.PAGINATION_FIRST_PAGE=`${n}firstPage`,t.PAGINATION_PREV_PAGE=`${n}prevPage`,t.PAGINATION_NEXT_PAGE=`${n}nextPage`,t.PAGINATION_LAST_PAGE=`${n}lastPage`,t.CHECKBOX_RENDERER_NAMESPACE="CheckboxRenderer:"),a=(t.CHECKBOX_CHECKED=`${r}checked`,t.CHECKBOX_UNCHECKED=`${r}unchecked`,t.LOADING_NAMESPACE="Loading:");t.LOADING_TITLE=`${a}title`},44624:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490),o(99356),o(82515),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(29810),o(90643),o(31143);var i=o(79521);function s(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 r(e,t,o){return e.set(l(e,t),o),o}function a(e,t){return e.get(l(e,t))}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 h=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakSet;function g(e){a(h,this).set(e,[]),a(c,this).set(e,0)}t.HooksBucket=class{constructor(){var e,t;n(e=this,t=d),t.add(e),s(this,h,new Map),s(this,c,new Map),s(this,u,new Set),i.REGISTERED_HOOKS.forEach(e=>l(d,this,g).call(this,e))}getHooks(e){var t;return null!==(t=a(h,this).get(e))&&void 0!==t?t:[]}add(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};a(h,this).has(e)||(l(d,this,g).call(this,e),i.REGISTERED_HOOKS.push(e));const s=a(h,this).get(e);if(s.find(e=>e.callback===t))return;const n=Number.isInteger(o.orderIndex)?o.orderIndex:0,r=!!o.runOnce,c=!!o.initialHook;let f=!1;if(c){const e=s.find(e=>e.initialHook);e&&(e.callback=t,f=!0)}if(!f){s.push({callback:t,orderIndex:n,runOnce:r,initialHook:c,skip:!1});let o=a(u,this).has(e);o||0===n||(o=!0,a(u,this).add(e)),o&&s.length>1&&a(h,this).set(e,s.toSorted((e,t)=>e.orderIndex-t.orderIndex))}}has(e){return a(h,this).has(e)&&a(h,this).get(e).length>0}remove(e,t){if(!a(h,this).has(e))return!1;const o=a(h,this).get(e),i=o.find(e=>e.callback===t);if(i){let t=a(c,this).get(e);return i.skip=!0,t+=1,t>100&&(a(h,this).set(e,o.filter(e=>!e.skip)),t=0),a(c,this).set(e,t),!0}return!1}destroy(){a(h,this).clear(),a(c,this).clear(),r(h,this,null),r(c,this,null)}}},44806:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostBottomInlineEnd",callback(e){const{selection:t,rowIndexMapper:o,columnIndexMapper:i}=e,s=parseInt(e.getSettings().fixedRowsBottom,10),n=o.getNearestNotHiddenIndex(e.countRows()-s-1,-1),r=i.getNearestNotHiddenIndex(e.countCols()-1,-1);t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(n,r)),t.markEndSource()}}},44827:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},44919:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(8249),o(31835);var s=i(o(24300));t.FullyVisibleRowsCalculationType=class{constructor(){(0,s.default)(this,"count",0),(0,s.default)(this,"startRow",null),(0,s.default)(this,"endRow",null),(0,s.default)(this,"startPosition",null),(0,s.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedHeight:o,zeroBasedScrollOffset:i,innerViewportHeight:s,rowHeight:n}=t;o>=i&&o+n<=s&&(null===this.startRow&&(this.startRow=e),this.endRow=e)}finalize(e){var t;const{scrollOffset:o,viewportHeight:i,horizontalScrollbarHeight:s,totalRows:n,needReverse:r,startPositions:a,rowHeight:l}=e;if(this.endRow===n-1&&r)for(this.startRow=this.endRow;this.startRow>0;){const e=a[this.endRow]+l-a[this.startRow-1];if(e<=i-s&&(this.startRow-=1),e>=i-s)break}this.startPosition=null!==(t=a[this.startRow])&&void 0!==t?t:null;o+i-s<(null===this.startRow?0:e.getRowHeight(this.startRow))||o>a.at(-1)?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,n<this.endRow&&(this.endRow=n-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}},45007:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(76439);t.RENDERER_TYPE=i.RENDERER_TYPE,t.numericRenderer=i.numericRenderer,t.getRenderedValue=i.getRenderedValue},45084:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.areValidSortStates=function(e){if(e.some(e=>!1===function(e){if(!1===(0,n.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(i,n){const{sortEmptyCells:r}=o;if(i===n)return l.DO_NOT_SWAP;if((0,a.isEmpty)(i))return(0,a.isEmpty)(n)?l.DO_NOT_SWAP:r&&"asc"===e?l.FIRST_BEFORE_SECOND:l.FIRST_AFTER_SECOND;if((0,a.isEmpty)(n))return r&&"asc"===e?l.FIRST_AFTER_SECOND:l.FIRST_BEFORE_SECOND;const h=(0,s.default)(i,t),c=(0,s.default)(n,t);return h.isValid()?c.isValid()?c.isAfter(h)?"asc"===e?l.FIRST_BEFORE_SECOND:l.FIRST_AFTER_SECOND:c.isBefore(h)?"asc"===e?l.FIRST_AFTER_SECOND:l.FIRST_BEFORE_SECOND:l.DO_NOT_SWAP:l.FIRST_BEFORE_SECOND:l.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
67
+ This combination is not supported. The plugin will remain disabled.`),o})};var i=o(30738),s=o(7120);const n=["nestedRows","mergeCells","fixedRowsTop","fixedRowsBottom"]},39710:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"unfreeze_column",name(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN)},callback(t,o){const[{start:{col:i}}]=o;e.unfreezeColumn(i),this.view.adjustElementsSize(),this.render()},hidden(){const e=this.getSelectedRange();let t=!1;return(void 0===e||e.length>1||e[0].from.col!==e[0].to.col||e[0].from.col>=this.getSettings().fixedColumnsStart)&&(t=!0),t}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481))},39748:(e,t,o)=>{"use strict";o(52653)},39872:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=o(4138),n=i(o(18805));class r{constructor(e,t){this.settings=e,this.cellRange=t||null}isEmpty(){return null===this.cellRange}add(e){return this.isEmpty()?this.cellRange=this.settings.createCellRange(e):this.cellRange.expand(e),this}replace(e,t){if(!this.isEmpty()){if(this.cellRange.from.isEqual(e))return this.cellRange.from=t,!0;if(this.cellRange.to.isEqual(e))return this.cellRange.to=t,!0}return!1}clear(){return this.cellRange=null,this}getCorners(){const e=this.cellRange.getOuterTopStartCorner(),t=this.cellRange.getOuterBottomEndCorner();return[e.row,e.col,t.row,t.col]}destroy(){this.runLocalHooks("destroy")}}(0,s.mixin)(r,n.default);t.default=r},39888:(e,t,o)=>{"use strict";var i=o(41462),s=o(31520),n=o(59188),r=o(94811),a=o(26023),l=o(48369),h=s.Set,c=s.add,u=s.has;e.exports=function(e){var t=i(this),o=r(e),s=new h;return n(t)>o.size?l(o.getIterator(),function(e){u(t,e)&&c(s,e)}):a(t,function(e){o.includes(e)&&c(s,e)}),s}},39969:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_ROW_ABOVE)},callback(){const e=this.getSelectedRangeActive().getTopLeftCorner();this.alter("insert_row_above",e.row,1,"ContextMenu.rowAbove")},disabled(){const e=this.getSelectedRangeActive();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 i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481));const s=t.KEY="row_above"},40041:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(43181);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.Search=i.Search},40059:(e,t,o)=>{"use strict";o(49463)("flatMap")},40492:(e,t,o)=>{"use strict";t.__esModule=!0,t.autocompleteValidator=n;var i=o(4138);const s=t.VALIDATOR_TYPE="autocomplete";function n(e,t){let o=e;null==o&&(o=""),this.allowEmpty&&""===o?t(!0):this.strict&&this.source?"function"==typeof this.source?this.source(o,r(o,t)):r(o,t)(this.source):t(!0)}function r(e,t){const o=e;return function(e){let s=!1;for(let t=0,n=e.length;t<n;t++)if((0,i.isObjectEqual)(o,e[t])){s=!0;break}t(s)}}n.VALIDATOR_TYPE=s},40550:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostBottom",callback(e){const{selection:t,rowIndexMapper:o}=e,{highlight:i,from:s,to:n}=e.getSelectedRangeActive(),r=i.isHeader()&&t.isSelectedByRowHeader();if(i.isCell()||r){const a=o.getNearestNotHiddenIndex(e.countRows()-1,-1),l=s.clone();l.row=i.row,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,i.clone()),r&&t.selectedByRowHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(a,n.col)),t.markEndSource()}}}},40591:(e,t,o)=>{"use strict";t.__esModule=!0,t.sort=function(e,t){const o=(0,i.getRootComparator)(t);for(var s=arguments.length,n=new Array(s>2?s-2:0),r=2;r<s;r++)n[r-2]=arguments[r];e.sort(o(...n))};var i=o(32234);t.DO_NOT_SWAP=0,t.FIRST_BEFORE_SECOND=-1,t.FIRST_AFTER_SECOND=1},40761:(e,t,o)=>{"use strict";var i=o(2382),s=o(33266),n=TypeError,r=Object.getOwnPropertyDescriptor,a=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=a?function(e,t){if(s(e)&&!r(e,"length").writable)throw new n("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},40920:(e,t,o)=>{"use strict";t.__esModule=!0,t._dataToHTML=function(e){const t=e.length,o=["<table>"];for(let s=0;s<t;s+=1){const n=e[s],r=n.length,a=[];0===s&&o.push("<tbody>");for(let e=0;e<r;e+=1){const t=n[e],o=(0,i.isEmpty)(t)?"":t.toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20{2,}/gi,e=>`<span style="mso-spacerun: yes">${"&nbsp;".repeat(e.length-1)} </span>`).replace(/\t/gi,"&#9;");a.push(`<td>${o}</td>`)}o.push("<tr>",...a,"</tr>"),s+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={},i=t.createDocumentFragment(),r=t.createElement("div");i.appendChild(r);let a=e;if("string"==typeof a){const e=a.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(/^&nbsp;$/gm,"")}</td>`});r.insertAdjacentHTML("afterbegin",`${e}`),a=r.querySelector("table")}if(!a||!function(e){return"TABLE"===(e&&e.nodeName||"")}(a))return;const l=r.querySelector('meta[name$="enerator"]'),h=null!==a.querySelector("tbody th"),c=a.querySelector("tr"),u=c?Array.from(c.cells).reduce((e,t)=>e+t.colSpan,0)-(h?1:0):0,d=a.tFoot&&Array.from(a.tFoot.rows)||[],g=[];let f=!1,p=0,m=0;if(a.tHead){const e=Array.from(a.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:i,innerHTML:s}=t,n=i>1?{label:s,colspan:i}:s;return e.push(n),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(a.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),i=o.length;for(let t=0;t<i;t++){const i=o[t],{nodeName:r,innerHTML:a,rowSpan:h,colSpan:c}=i,u=C[e].findIndex(e=>void 0===e);if("TD"===r){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=i.getAttribute("style");t&&t.includes("mso-ignore:colspan")||v.push({col:u,row:e,rowspan:h,colspan:c})}let t="";t=l&&/excel/gi.test(l.content)?a.replace(/[\r\n][\x20]{0,2}/g," ").replace(/<br(\s*|\/)>[\r\n]?[\x20]{0,3}/gim,"\r\n"):a.replace(/<br(\s*|\/)>[\r\n]?/gim,"\r\n"),C[e][u]=t.replace(n,e=>s[e])}else y.push(a)}}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(),s=[t?-1:0,o?-1:0,e.countRows()-1,e.countCols()-1],n=e.getData(...s),r=n.length,a=r>0?n[0].length:0,l=["<table>","</table>"],h=t?["<thead>","</thead>"]:[],c=["<tbody>","</tbody>"],u=o?1:0,d=t?1:0;for(let s=0;s<r;s+=1){const r=t&&0===s,l=[];for(let t=0;t<a;t+=1){const a=!r&&o&&0===t;let h="";if(r)h=`<th>${e.getColHeader(t-u)}</th>`;else if(a)h=`<th>${e.getRowHeader(s-d)}</th>`;else{const o=n[s][t],{hidden:r,rowspan:a,colspan:l}=e.getCellMeta(s-d,t-u);if(!r){const e=[];if(a&&e.push(`rowspan="${a}"`),l&&e.push(`colspan="${l}"`),(0,i.isEmpty)(o))h=`<td ${e.join(" ")}></td>`;else{const t=o.toString().replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20/gi,"&nbsp;").replace(/\t/gi,"&#9;");h=`<td ${e.join(" ")}>${t}</td>`}}}l.push(h)}const g=["<tr>",...l,"</tr>"].join("");r?h.splice(1,0,g):c.splice(-1,0,g)}return l.splice(1,0,h.join(""),c.join("")),l.join("")},o(99356),o(26648),o(34478),o(29810),o(940),o(33098);var i=o(7886);const s={"&nbsp;":" ","&amp;":"&","&lt;":"<","&gt;":">"},n=new RegExp(Object.keys(s).map(e=>`(${e})`).join("|"),"gi")},40929:(e,t,o)=>{"use strict";t.__esModule=!0,t.isChrome=function(){return r.chrome.value},t.isChromeWebKit=function(){return r.chromeWebKit.value},t.isEdge=function(){return r.edge.value},t.isEdgeWebKit=function(){return r.edgeWebKit.value},t.isFirefox=function(){return r.firefox.value},t.isFirefoxWebKit=function(){return r.firefoxWebKit.value},t.isIOS=function(){return a.ios.value},t.isIpadOS=function(){let{maxTouchPoints:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator;return e>2&&a.mac.value},t.isLinuxOS=function(){return a.linux.value},t.isMacOS=function(){return a.mac.value},t.isMobileBrowser=function(){return r.mobile.value},t.isSafari=function(){return r.safari.value},t.isWindowsOS=function(){return a.win.value},t.setBrowserMeta=l,t.setPlatformMeta=h;var i=o(4138),s=o(79035);const n=e=>{const t={value:!1,test:(o,i)=>{t.value=e(o,i)}};return t},r={chrome:n((e,t)=>/Chrome/.test(e)&&/Google/.test(t)),chromeWebKit:n(e=>/CriOS/.test(e)),edge:n(e=>/Edge/.test(e)),edgeWebKit:n(e=>/EdgiOS/.test(e)),firefox:n(e=>/Firefox/.test(e)),firefoxWebKit:n(e=>/FxiOS/.test(e)),mobile:n(e=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)),safari:n((e,t)=>/Safari/.test(e)&&/Apple Computer/.test(t))},a={mac:n(e=>/^Mac/.test(e)),win:n(e=>/^Win/.test(e)),linux:n(e=>/^Linux/.test(e)),ios:n(e=>/iPhone|iPad|iPod/i.test(e))};function l(){let{userAgent:e=navigator.userAgent,vendor:t=navigator.vendor}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.objectEach)(r,o=>{let{test:i}=o;i(e,t)})}function h(){let{platform:e=navigator.platform}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.objectEach)(a,t=>{let{test:o}=t;o(e)})}(0,s.isCSR)()&&(l(),h())},40981:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},41145:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.condition=l;var s=i(o(86798)),n=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),r=o(23895);const a=t.CONDITION_NAME="date_after";function l(e,t){let[o]=t;const i=(0,s.default)(e.value,e.meta.dateFormat),n=(0,s.default)(o,e.meta.dateFormat);return!(!i.isValid()||!n.isValid())&&i.diff(n)>=0}(0,r.registerCondition)(a,l,{name:n.FILTERS_CONDITIONS_AFTER,inputsCount:1,showOperators:!0})},41462:(e,t,o)=>{"use strict";var i=o(31520).has;e.exports=function(e){return i(e),e}},41595:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(58584),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(66133),o(31143),o(940);var s=i(o(24300)),n=o(26808),r=o(25854),a=o(7120),l=o(58604),h=o(7886),c=o(32040),u=o(24879),d=o(12516),g=o(9013),f=o(2744),p=o(23228),m=i(o(81045));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(S(e,t),o),o}function y(e,t){return e.get(S(e,t))}function S(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 E=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 A extends n.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),i=0;i<t;i++)o[i]=arguments[i];return S(O,e,q).call(e,...o)}],["namedExpressionAdded",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return S(O,e,Q).call(e,...o)}],["namedExpressionRemoved",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return S(O,e,J).call(e,...o)}],["sheetAdded",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return S(O,e,Z).call(e,...o)}],["sheetRenamed",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return S(O,e,ee).call(e,...o)}],["sheetRemoved",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return S(O,e,te).call(e,...o)}]]),(0,s.default)(this,"staticRegister",(0,r.staticRegister)("formulas")),(0,s.default)(this,"engine",null),(0,s.default)(this,"sheetId",null),(0,s.default)(this,"sheetName",null),(0,s.default)(this,"indexSyncer",null),(0,s.default)(this,"rowAxisSyncer",null),(0,s.default)(this,"columnAxisSyncer",null)}static get PLUGIN_KEY(){return E}static get PLUGIN_PRIORITY(){return b}static get SETTING_KEYS(){return[E,...R]}isEnabled(){return!!this.hot.getSettings()[E]}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&&S(O,this,N).call(this,e)}this.addHook("beforeLoadData",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,x).call(t,...o)}),this.addHook("afterLoadData",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,D).call(t,...o)}),this.addHook("beforeUpdateData",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,x).call(t,...o)}),this.addHook("afterUpdateData",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,D).call(t,...o)}),this.addHook("modifyData",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,L).call(t,...o)}),this.addHook("modifySourceData",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,V).call(t,...o)}),this.addHook("beforeValidate",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,P).call(t,...o)}),this.addHook("afterSetSourceDataAtCell",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,F).call(t,...o)}),this.addHook("afterSetDataAtCell",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,W).call(t,...o)}),this.addHook("afterSetDataAtRowProp",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,W).call(t,...o)}),this.addHook("beforeCreateRow",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,B).call(t,...o)}),this.addHook("beforeCreateCol",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,U).call(t,...o)}),this.addHook("afterCreateRow",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,z).call(t,...o)}),this.addHook("afterCreateCol",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,G).call(t,...o)}),this.addHook("beforeRemoveRow",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,Y).call(t,...o)}),this.addHook("beforeRemoveCol",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,j).call(t,...o)}),this.addHook("afterRemoveRow",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,$).call(t,...o)}),this.addHook("afterRemoveCol",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(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,i)=>{this.rowAxisSyncer.storeMovesInformation(e,t,i)}),this.hot.addHook("beforeColumnMove",(e,t,o,i)=>{this.columnAxisSyncer.storeMovesInformation(e,t,i)}),this.hot.addHook("afterRowMove",(e,t,o,i,s)=>{this.rowAxisSyncer.calculateAndSyncMoves(i,s)}),this.hot.addHook("afterColumnMove",(e,t,o,i,s)=>{this.columnAxisSyncer.calculateAndSyncMoves(i,s)}),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),i=0;i<e;i++)o[i]=arguments[i];return S(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),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,X).call(t,...o)}),this.addHook("beforeAutofill",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,H).call(t,...o)}),y(I,this).forEach(e=>{let[t,o]=e;return this.engine.on(t,o)}),super.enablePlugin()}else(0,a.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()[E];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()[E].sheetName;if(e&&this.engine.doesSheetExist(e))this.switchSheet(this.sheetName);else{const t=this.addSheet(null!=e?e:void 0,this.hot.getSourceDataArray());S(O,this,N).call(this,t)}}super.updatePlugin(e)}destroy(){y(I,this).forEach(e=>{var t;let[o,i]=e;return null===(t=this.engine)||void 0===t?void 0:t.off(o,i)}),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,a.warn)("The provided data should be an array of arrays."),!1;if(null!=e&&this.engine.doesSheetExist(e))return(0,a.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,a.warn)(e.message),!1}}switchSheet(e){if(!this.engine.doesSheetExist(e))return void(0,a.error)(`The sheet named \`${e}\` does not exist, switch aborted.`);S(O,this,N).call(this,e);const t=this.engine.getSheetSerialized(this.sheetId);t.length>0&&this.hot.loadData(t,`${(0,f.toUpperCaseFirst)(E)}.switchSheet`)}getCellType(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.sheetId;const i=this.hot.toPhysicalRow(e),s=this.hot.toPhysicalColumn(t);return null!==i&&null!==s?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 i=null==e||null===(t=e.address)||void 0===t?void 0:t.sheet;void 0!==i&&(o.has(i)||o.add(i))}),(0,c.getRegisteredHotInstances)(this.engine).forEach((e,i)=>{var s;(t||i!==this.sheetId)&&o.has(i)&&(e.render(),null===(s=e.view)||void 0===s||s.adjustElementsSize())})}validateDependentCells(e){const t=e=>{var t;const{row:o,col:i,sheet:s}=null!==(t=null==e?void 0:e.address)&&void 0!==t?t:{};return(0,h.isDefined)(s)?`${s}:${o}x${i}`:""},o=new Set((arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).map(e=>t(e)));e.forEach(e=>{var i,s;const{row:n,col:r}=null!==(i=e.address)&&void 0!==i?i:{};if(!1===(0,h.isDefined)(n)||!1===(0,h.isDefined)(r)||n>=this.hot.countRows()||r>=this.hot.countCols())return;const a=null==e||null===(s=e.address)||void 0===s?void 0:s.sheet,l=t(e);if(void 0!==a&&!o.has(l)){const e=(0,c.getRegisteredHotInstances)(this.engine).get(a);if(!e)return;e.validateCell(e.getDataAtCell(n,r),e.getCellMeta(n,r),()=>{})}})}syncChangeWithEngine(e,t,o){const i={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t),sheet:this.sheetId};if(!this.engine.isItPossibleToSetCellContents(i))return void(0,a.warn)(`Not possible to set cell data at ${JSON.stringify(i)}`);const s=this.hot.getCellMeta(e,t);return(0,u.isDate)(o,s.type)&&((0,u.isDateValid)(o,s.dateFormat)?o=(0,u.getDateInHfFormat)(o,s.dateFormat):!1===(0,u.isFormula)(o)&&(o=`'${o}`)),this.engine.setCellContents(i,o)}}function N(e){this.sheetName=e,this.sheetId=this.engine.getSheetId(this.sheetName)}function P(e,t,o){const i=this.hot.propToCol(o);if(this.isFormulaCellType(t,i)){const e={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(i),sheet:this.sheetId},o=this.hot.getCellMeta(t,i);let s=this.engine.getCellValue(e);return"date"===o.type&&(0,l.isNumeric)(s)&&(s=(0,u.getDateFromExcelDate)(s,o.dateFormat)),"object"==typeof s&&null!==s?s.value:s}return e}function H(e,t,o){const{row:i,col:s}=t.getTopStartCorner(),{row:n,col:r}=t.getBottomEndCorner(),{row:a,col:l}=o.getTopStartCorner(),{row:h,col:c}=o.getBottomEndCorner(),d={start:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(i),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(s),sheet:this.sheetId},end:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(n),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(r),sheet:this.sheetId}},g={start:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(a),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(l),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],i=p+e%v,s=m+t%y,n=this.hot.getCellMeta(i,s);(0,u.isDate)(o,n.type)&&(o.startsWith("'")?f[e][t]=o.slice(1):!1===this.isFormulaCellType(i,s,this.sheetId)&&(f[e][t]=(0,u.getDateInHotFormat)(o,n.dateFormat)))}return f}function x(e,t){(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"").includes((0,f.toUpperCaseFirst)(E))||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,i)=>{const s=this.hot.getCellMeta(o,i,{skipMetaExtension:!0}),n=s.dateFormat;(0,u.isDate)(t,s.type)&&((0,u.isDateValid)(t,n)?e[o][i]=(0,u.getDateInHfFormat)(t,n):t.startsWith("=")||(e[o][i]=`'${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)(E)))return;const i=(0,c.setupSheet)(this.engine,this.hot.getSettings()[E].sheetName);if(S(O,this,N).call(this,i),"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,i){if("get"!==i||y(T,this)||null===this.sheetName||!this.engine.doesSheetExist(this.sheetName))return;if(null===e||null===t)return;const s=this.getCellType(e,t);if("VALUE"===s||"EMPTY"===s)return void(o.value=(0,u.unescapeFormulaExpression)(o.value));const n={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t),sheet:this.sheetId};let r=this.engine.getCellValue(n);const a=this.hot.getCellMeta(e,t,{skipMetaExtension:!0});"date"===a.type&&(0,l.isNumeric)(r)&&(r=(0,u.getDateFromExcelDate)(r,a.dateFormat)),o.value="object"==typeof r&&null!==r?r.value:r}function V(e,t,o,i){if("get"!==i||y(T,this)||null===this.sheetName||!this.engine.doesSheetExist(this.sheetName))return;const s=this.hot.toVisualRow(e),n=this.hot.propToCol(t);if(null===s||null===n)return;const r=this.getCellType(s,n);if("VALUE"===r||"EMPTY"===r)return;const a=this.engine.getSheetDimensions(this.engine.getSheetId(this.sheetName));if(0===a.width&&0===a.height)return;const l={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(s),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(n),sheet:this.sheetId};o.value=this.engine.getCellSerialized(l)}function W(e,t){if(_(t))return;const o=[],i=[],s=this.engine.batch(()=>{e.forEach(e=>{let[t,s,,n]=e;const r=this.hot.propToCol(s),a=this.hot.toPhysicalRow(t),l=this.hot.toPhysicalColumn(r),h={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(r),sheet:this.sheetId};null!==a&&null!==l?this.syncChangeWithEngine(t,r,n):o.push([t,r,n]),i.push({address:h})})});o.length&&this.hot.addHookOnce("afterChange",()=>{const e=this.engine.batch(()=>{o.forEach(e=>{let[t,o,i]=e;this.syncChangeWithEngine(t,o,i)})});this.renderDependentSheets(e,!0)}),this.renderDependentSheets(s),this.validateDependentCells(s,i)}function F(e,t){if(_(t))return;const o=[],i=[];e.forEach(e=>{let[t,s,,n]=e;const r=this.hot.propToCol(s);if(!(0,l.isNumeric)(r))return;const h={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(r),sheet:this.sheetId};this.engine.isItPossibleToSetCellContents(h)?(i.push({address:h}),o.push(...this.engine.setCellContents(h,n))):(0,a.warn)(`Not possible to set source cell data at ${JSON.stringify(h)}`)}),this.renderDependentSheets(o),this.validateDependentCells(o,i)}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 i=this.engine.addRows(this.sheetId,[this.rowAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(i)}function G(e,t,o){if(_(o))return;const i=this.engine.addColumns(this.sheetId,[this.columnAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(i)}function $(e,t,o,i){if(_(i))return;const s=this.rowAxisSyncer.getRemovedHfIndexes().sort((e,t)=>t-e),n=this.engine.batch(()=>{s.forEach(e=>{this.engine.removeRows(this.sheetId,[e,1])})});this.renderDependentSheets(n)}function K(e,t,o,i){if(_(i))return;const s=this.columnAxisSyncer.getRemovedHfIndexes().sort((e,t)=>t-e),n=this.engine.batch(()=>{s.forEach(e=>{this.engine.removeColumns(this.sheetId,[e,1])})});this.renderDependentSheets(n)}function X(e,t,o){var i;v(T,this,!0);const s=this.hot.getSourceDataArray(o,0,o+((null===(i=t.__children)||void 0===i?void 0:i.length)||0),this.hot.countSourceCols());v(T,this,!1),s.forEach((e,t)=>{e.forEach((e,i)=>{this.engine.setCellContents({col:i,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){S(O,this,N).call(this,t),this.hot.runHooks("afterSheetRenamed",e,t)}function te(e,t){this.hot.runHooks("afterSheetRemoved",e,t)}t.Formulas=A},41691:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(55656);const{getListWithInsertedItems:s,getListWithRemovedItems:n}=(0,i.alterUtilsFactory)("physicallyIndexed");class r extends i.IndexMap{constructor(){super(e=>e)}insert(e,t){const o=(0,i.getIncreasedIndexes)(this.indexedValues,t);this.indexedValues=s(o,e,t,this.initValueOrFn),super.insert(e,t)}remove(e){const t=n(this.indexedValues,e);this.indexedValues=(0,i.getDecreasedIndexes)(t,e),super.remove(e)}}t.default=r},42207:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(32813),r=o(78966),a=o(47802),l=o(4138),h=o(13390);const c="handsontableEditor",u=t.EDITOR_TYPE="handsontable";class d extends n.TextEditor{constructor(){super(...arguments),(0,s.default)(this,"isFlippedVertically",!1),(0,s.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,r.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,i,s,n){super.prepare(e,t,o,i,s,n);const r=this,a={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&&r.setValue(o),r.hot.destroyEditor()},preventWheel:!0,layoutDirection:this.hot.isRtl()?"rtl":"ltr"};this.cellProperties.handsontable&&(0,l.extend)(a,n.handsontable),this.htOptions=a}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.getSelectedActive()){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 i=this.getDropdownHeight(),s=e.getWorkspaceHeight()-o-t.height,n=i>s&&o>s+t.height;return n?this.flipDropdownVertically():this.unflipDropdownVertically(),{isFlipped:n,spaceAbove:o,spaceBelow:s}}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 i=this.getDropdownWidth(),s=e.getWorkspaceWidth()-o+t.width,n=i>s&&o>s;return n?this.flipDropdownHorizontally():this.unflipDropdownHorizontally(),{isFlipped:n,spaceInlineStart:o,spaceInlineEnd:s}}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,a.stopImmediatePropagation)(t),this.hot.listen(),this.TEXTAREA.focus(),!1};e.addShortcuts([{keys:[["ArrowUp"]],callback:e=>{const t=this.htEditor;let i,s;return!t.getSelectedActive()&&this.isFlippedVertically?i=t.countRows()-1:t.getSelectedActive()&&(this.isFlippedVertically?(s=t.getSelectedActive()[0],i=Math.max(0,s-1)):(s=t.getSelectedActive()[0],i=s-1)),o(i,e)},preventDefault:!1},{keys:[["ArrowDown"]],callback:e=>{const t=this.htEditor;let i,s;if(t.getSelectedActive()||this.isFlippedVertically){if(t.getSelectedActive())if(this.isFlippedVertically)i=t.getSelectedActive()[0]+1;else if(!this.isFlippedVertically){const e=t.countRows()-1;s=t.getSelectedActive()[0],i=Math.min(e,s+1)}}else i=0;return o(i,e)},preventDefault:!1}],t)}unregisterShortcuts(){super.unregisterShortcuts();this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(c)}}t.HandsontableEditor=d},42299:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(4138),r=o(28520),a=i(o(86491));t.default=class{constructor(e){(0,s.default)(this,"metaCtor",class{}),(0,s.default)(this,"meta",void 0),this.meta=this.metaCtor.prototype,(0,n.extend)(this.meta,(0,a.default)()),this.meta.instance=e}getMetaConstructor(){return this.metaCtor}getMeta(){return this.meta}updateMeta(e){var t;(0,n.extend)(this.meta,e),(0,r.extendByMetaType)(this.meta,{...e,type:null!==(t=e.type)&&void 0!==t?t:this.meta.type},e)}}},42326:(e,t,o)=>{"use strict";var i=o(19098),s=o(19451),n=o(66431),r=o(62283).indexOf,a=o(48099),l=i([].push);e.exports=function(e,t){var o,i=n(e),h=0,c=[];for(o in i)!s(a,o)&&s(i,o)&&l(c,o);for(;t.length>h;)s(i,o=t[h++])&&(~r(c,o)||l(c,o));return c}},42328:(e,t,o)=>{"use strict";var i=o(19098),s=o(70792);e.exports=function(e,t,o){try{return i(s(Object.getOwnPropertyDescriptor(e,t)[o]))}catch(e){}}},42559:(e,t,o)=>{"use strict";var i=o(15105),s=o(19451),n=o(20637),r=o(14815),a=o(79937),l=o(31622),h=o(17374),c=o(59549),u=o(82497),d=o(92434),g=o(22849),f=o(2382),p=o(33973);e.exports=function(e,t,o,m){var w="stackTraceLimit",C=m?2:1,v=e.split("."),y=v[v.length-1],S=i.apply(null,v);if(S){var E=S.prototype;if(!p&&s(E,"cause")&&delete E.cause,!o)return S;var R=i("Error"),b=t(function(e,t){var o=u(m?t:e,void 0),i=m?new S(e):new S;return void 0!==o&&n(i,"message",o),g(i,b,i.stack,2),this&&r(E,this)&&c(i,this,b),arguments.length>C&&d(i,arguments[C]),i});if(b.prototype=E,"Error"!==y?a?a(b,R):l(b,R,{name:!0}):f&&w in S&&(h(b,S,w),h(b,S,"prepareStackTrace")),l(b,S),!p)try{E.name!==y&&n(E,"name",y),E.constructor=b}catch(e){}return b}}},42595:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(18385);t.EDITOR_TYPE=i.EDITOR_TYPE,t.NumericEditor=i.NumericEditor},42888:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356);var s=i(o(24300)),n=o(3715),r=o(34822),a=o(86092),l=o(58226),h=o(30386),c=i(o(59468)),u=o(94576),d=o(40929),g=o(78966),f=o(47802),p=o(81761),m=o(7886),w=o(4138),C=i(o(18805)),v=o(1880),y=o(72609);function S(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 E(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&&E(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,s.default)(this,"hot",void 0),(0,s.default)(this,"options",void 0),(0,s.default)(this,"eventManager",new c.default(this)),(0,s.default)(this,"container",void 0),(0,s.default)(this,"positioner",void 0),(0,s.default)(this,"hotMenu",null),(0,s.default)(this,"hotSubMenus",{}),(0,s.default)(this,"parentMenu",void 0),(0,s.default)(this,"menuItems",null),(0,s.default)(this,"origOutsideClickDeselects",null),S(this,_,void 0),S(this,T,void 0),S(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 n.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),i=0;i<e;i++)t[i]=arguments[i];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.getSelectedActive()[0]):null}hasSelectedItem(){return Array.isArray(this.hotMenu.getSelectedActive())}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,i=(0,u.arrayFilter)(this.menuItems,e=>(e.key===l.NO_ITEMS&&(o=!0),(0,h.isItemHidden)(e,this.hot)));if(i.length<1&&!o)i.push((0,l.predefinedItems)()[l.NO_ITEMS]);else if(0===i.length)return;i=(0,h.filterSeparators)(i,l.SEPARATOR);let s=!1;const n={data:i,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)()&&s&&this.hasSelectedItem()&&this.close(!0)},afterSelection:(e,t,o,i,s)=>{this.hotMenu.view.isMouseDown()&&(s.value=!0),this.runLocalHooks("afterSelectionChange",this.getSelectedItem())},beforeOnCellMouseUp:e=>{this.hasSelectedItem()&&(s=!this.isCommandPassive(this.getSelectedItem()),this.executeCommand(e))},afterOnCellMouseUp:e=>{(0,d.isWindowsOS)()&&(0,f.isRightClick)(e)||!s||!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,n),this.hotMenu.addHook("afterInit",()=>this.onAfterInit()),this.hotMenu.init(),E(_,this,(0,r.createMenuNavigator)(this.hotMenu)),E(T,this,(0,a.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.getSelectedActive();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),i=new I(this.hot,{parent:this,name:o.name,className:this.options.className,keepInViewport:!0,container:this.options.container});return i.setMenuItems(o.submenu.items),i.open(),i.setPosition(t.getBoundingClientRect()),this.hotSubMenus[o.key]=i,this.hot.getSettings().ariaTags&&(0,g.setAttribute)(t,[(0,y.A11Y_EXPANDED)(!0)]),i}closeSubMenu(e){const t=this.hotMenu.getSourceDataAtRow(e),o=this.hotSubMenus[t.key];if(o){o.destroy(),delete this.hotSubMenus[t.key];const i=this.hotMenu.getCell(e,0);this.hot.getSettings().ariaTags&&(0,g.setAttribute)(i,[(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(),i=o?(0,h.normalizeSelection)(o):[];this.runLocalHooks("executeCommand",t.key,i,e),this.isSubMenu()&&this.parentMenu.runLocalHooks("executeCommand",t.key,i,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,i=e.holder.style,s=parseInt(o.width,10),n=(0,u.arrayReduce)(t,(e,t,o)=>{const i=this.hotMenu.getCell(o,0)?(0,g.outerHeight)(this.hotMenu.getCell(o,0)):0;return e+(t.name===l.SEPARATOR?1:i)},0);this.hotMenu.stylesHandler.isClassicTheme()?(i.width=`${s+3}px`,i.height=`${n+3}px`):(i.width=`${s}px`,i.height=`${n}px`),o.height=i.height}createContainer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=this.options.container.ownerDocument;let o,i=e;return i&&((0,p.isFunction)(i)&&(i=i.call(this.hot),i=null===i||(0,m.isUndefined)(i)?"":i.toString()),i=i.replace(/[^A-Za-z0-9]/g,"_"),i=`${this.options.className}Sub_${i}`,o=t.querySelector(`.${this.options.className}.${i}`)),o||(o=t.createElement("div"),(0,g.addClass)(o,`htMenu handsontable ${this.options.className}`),i&&(0,g.addClass)(o,i),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)},43181:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356);var s=i(o(24300)),n=o(26808),r=o(4138),a=o(58604),l=o(7886);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="search",d=t.PLUGIN_PRIORITY=190,g=function(e,t,o,i,s){e.getCellMeta(t,o).isSearchResult=s},f=function(e,t,o){return!((0,l.isUndefined)(e)||null===e||!e.toLocaleLowerCase||0===e.length)&&(!(0,l.isUndefined)(t)&&null!==t&&-1!==t.toString().toLocaleLowerCase(o.locale).indexOf(e.toLocaleLowerCase(o.locale)))};var p=new WeakSet;class m extends n.BasePlugin{constructor(){super(...arguments),h(this,p),(0,s.default)(this,"callback",g),(0,s.default)(this,"queryMethod",f),(0,s.default)(this,"searchResultClass","htSearchResult")}static get PLUGIN_KEY(){return u}static get PLUGIN_PRIORITY(){return d}isEnabled(){return this.hot.getSettings()[u]}enablePlugin(){var e=this;if(this.enabled)return;const t=this.hot.getSettings()[u];this.updatePluginSettings(t),this.addHook("beforeRenderer",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return c(p,e,w).call(e,...o)}),super.enablePlugin()}disablePlugin(){var e=this;const t=function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return c(p,e,w).call(e,...o)};this.hot.addHook("beforeRenderer",t),this.hot.addHookOnce("afterViewRender",()=>{this.hot.removeHook("beforeRenderer",t)}),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}query(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCallback(),o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.getQueryMethod();const i=this.hot.countRows(),s=this.hot.countCols(),n=[],r=this.hot;return(0,a.rangeEach)(0,i-1,i=>{(0,a.rangeEach)(0,s-1,s=>{const a=this.hot.getDataAtCell(i,s),l=this.hot.getCellMeta(i,s),h=l.search.callback||t,c=(l.search.queryMethod||o)(e,a,l);if(c){const e={row:i,col:s,data:a};n.push(e)}h&&h(r,i,s,a,c)})}),n}getCallback(){return this.callback}setCallback(e){this.callback=e}getQueryMethod(){return this.queryMethod}setQueryMethod(e){this.queryMethod=e}getSearchResultClass(){return this.searchResultClass}setSearchResultClass(e){this.searchResultClass=e}updatePluginSettings(e){(0,r.isObject)(e)&&(e.searchResultClass&&this.setSearchResultClass(e.searchResultClass),e.queryMethod&&this.setQueryMethod(e.queryMethod),e.callback&&this.setCallback(e.callback))}destroy(){super.destroy()}}function w(e,t,o,i,s,n){const r=n.className||[];let a=[];"string"==typeof r?a=r.split(" "):a.push(...r),this.isEnabled()&&n.isSearchResult?a.includes(this.searchResultClass)||a.push(`${this.searchResultClass}`):a.includes(this.searchResultClass)&&a.splice(a.indexOf(this.searchResultClass),1),n.className=a.join(" ")}t.Search=m},43290:(e,t,o)=>{"use strict";var i=o(60606),s=o(19098);e.exports=function(e){if("Function"===i(e))return s(e)}},43502:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(5085);var s=i(o(50236)),n=o(88422),r=o(5714),a=o(23228),l=o(63061),h=o(61654),c=o(5997),u=o(67347),d=o(13743);function g(e,t){const o=new s.default(e,t||{},n.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 s.default(e,t,n.rootInstanceSymbol)},g.DefaultSettings=(0,r.metaSchemaFactory)(),g.hooks=a.Hooks.getSingleton(),g.CellCoords=d.CellCoords,g.CellRange=d.CellRange,g.packageName="handsontable",g.buildDate="09/09/2025 12:56:53",g.version="16.1.0-next-1494b74-20250909",g.languages={dictionaryKeys:l.dictionaryKeys,getLanguageDictionary:l.getLanguageDictionary,getLanguagesDictionaries:l.getLanguagesDictionaries,registerLanguageDictionary:l.registerLanguageDictionary,getTranslatedPhrase:l.getTranslatedPhrase};t.default=g},43605:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(631);class r extends n.BaseAction{constructor(e){let{currentSortState:t,newSortState:o}=e;super("col_sort"),(0,s.default)(this,"previousSortState",void 0),(0,s.default)(this,"nextSortState",void 0),this.previousSortState=t,this.nextSortState=o}static startRegisteringEvents(e,t){e.addHook("beforeColumnSort",(e,o,i)=>{i&&t.done(()=>new r({currentSortState:e,newSortState:o}))})}undo(e,t){const o=e.getPlugin("columnSorting"),i=e.getPlugin("multiColumnSorting"),s=i.isEnabled()?i:o;this.previousSortState.length?s.sort(this.previousSortState):s.clearSort(),t()}redo(e,t){const o=e.getPlugin("columnSorting"),i=e.getPlugin("multiColumnSorting");(i.isEnabled()?i:o).sort(this.nextSortState),t()}}t.ColumnSortAction=r},43619:(e,t)=>{"use strict";t.__esModule=!0,t.cornerHeaderScrollStrategy=function(){return()=>{}}},43713:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=i(o(24300)),n=o(26808),r=o(47802),a=o(78966);function l(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 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="dragToScroll",u=t.PLUGIN_PRIORITY=100;var d=new WeakSet;class g extends n.BasePlugin{constructor(){super(...arguments),l(this,d),(0,s.default)(this,"boundaries",null),(0,s.default)(this,"callback",null),(0,s.default)(this,"listening",!1)}static get PLUGIN_KEY(){return c}static get PLUGIN_PRIORITY(){return u}isEnabled(){return!!this.hot.getSettings()[c]}enablePlugin(){this.enabled||(this.addHook("afterOnCellMouseDown",e=>h(d,this,f).call(this,e)),this.addHook("afterOnCellCornerMouseDown",e=>h(d,this,f).call(this,e)),this.registerEvents(),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.unregisterEvents(),super.disablePlugin()}setBoundaries(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{left:0,right:this.hot.rootWindow.innerWidth,top:0,bottom:this.hot.rootWindow.innerHeight};this.boundaries=e}setCallback(e){this.callback=e}check(e,t){let o=0,i=0;t<this.boundaries.top?i=t-this.boundaries.top:t>this.boundaries.bottom&&(i=t-this.boundaries.bottom),e<this.boundaries.left?o=e-this.boundaries.left:e>this.boundaries.right&&(o=e-this.boundaries.right),this.callback(o,i)}listen(){this.listening=!0}unlisten(){this.listening=!1}isListening(){return this.listening}registerEvents(){const{rootWindow:e}=this.hot;let t=e;for(;t;)this.eventManager.addEventListener(t.document,"contextmenu",()=>this.unlisten()),this.eventManager.addEventListener(t.document,"mouseup",()=>this.unlisten()),this.eventManager.addEventListener(t.document,"mousemove",e=>this.onMouseMove(e)),t=(0,a.getParentWindow)(t)}unregisterEvents(){this.eventManager.clear()}onMouseMove(e){this.isListening()&&this.check(e.clientX,e.clientY)}destroy(){super.destroy()}}function f(e){if((0,r.isRightClick)(e))return;const t=this.hot.view._wt.wtOverlays.topOverlay.mainTableScrollableElement;this.setBoundaries(t!==this.hot.rootWindow?t.getBoundingClientRect():void 0),this.setCallback((e,o)=>{var i,s;const n=null!==(i=t.scrollLeft)&&void 0!==i?i:t.scrollX,r=null!==(s=t.scrollTop)&&void 0!==s?s:t.scrollY;t.scroll(n+50*Math.sign(e),r+20*Math.sign(o))}),this.listen()}t.DragToScroll=g},44013:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(4138);const s={getFirstRenderedRow(){const e=this.getRenderedRowsCount();return 0===e?-1:this.wtSettings.getSetting("totalRows")-e},getFirstVisibleRow(){return this.getFirstRenderedRow()},getFirstPartiallyVisibleRow(){return this.getFirstRenderedRow()},getLastRenderedRow(){return 0===this.getRenderedRowsCount()?-1:this.wtSettings.getSetting("totalRows")-1},getLastVisibleRow(){return this.getLastRenderedRow()},getLastPartiallyVisibleRow(){return this.getLastRenderedRow()},getRenderedRowsCount(){return Math.min(this.wtSettings.getSetting("totalRows"),this.wtSettings.getSetting("fixedRowsBottom"))},getVisibleRowsCount(){return this.getRenderedRowsCount()},getColumnHeadersCount:()=>0};(0,i.defineGetter)(s,"MIXIN_NAME","stickyRowsBottom",{writable:!1,enumerable:!1});t.default=s},44031:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(81056);var s=o(26808),n=o(23228),r=i(o(8625)),a=i(o(39710));function l(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(e,t){return e.get(u(e,t))}function c(e,t,o){return e.set(u(e,t),o),o}function u(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("beforeColumnFreeze"),n.Hooks.getSingleton().register("afterColumnFreeze"),n.Hooks.getSingleton().register("beforeColumnUnfreeze"),n.Hooks.getSingleton().register("afterColumnUnfreeze");const d=t.PLUGIN_KEY="manualColumnFreeze",g=t.PLUGIN_PRIORITY=110;var f=new WeakMap,p=new WeakSet;class m extends s.BasePlugin{constructor(){var e,t;super(...arguments),l(e=this,t=p),t.add(e),function(e,t,o){l(e,t),t.set(e,o)}(this,f,!1)}static get PLUGIN_KEY(){return d}static get PLUGIN_PRIORITY(){return g}isEnabled(){return!!this.hot.getSettings()[d]}enablePlugin(){this.enabled||(this.addHook("afterContextMenuDefaultOptions",e=>u(p,this,w).call(this,e)),this.addHook("beforeColumnMove",(e,t)=>u(p,this,C).call(this,e,t)),super.enablePlugin())}disablePlugin(){c(f,this,!1),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}freezeColumn(e){const t=this.hot.getSettings(),o=t.fixedColumnsStart<this.hot.countCols()&&e>t.fixedColumnsStart-1;h(f,this)||c(f,this,!0);!1!==this.hot.runHooks("beforeColumnFreeze",e,o)&&(o&&(this.hot.columnIndexMapper.moveIndexes(e,t.fixedColumnsStart),t._fixedColumnsStart+=1),this.hot.runHooks("afterColumnFreeze",e,o))}unfreezeColumn(e){const t=this.hot.getSettings(),o=t.fixedColumnsStart>0&&e<=t.fixedColumnsStart-1;h(f,this)||c(f,this,!0);!1!==this.hot.runHooks("beforeColumnUnfreeze",e,o)&&(o&&(t._fixedColumnsStart-=1,this.hot.columnIndexMapper.moveIndexes(e,t.fixedColumnsStart)),this.hot.runHooks("afterColumnUnfreeze",e,o))}}function w(e){e.items.push({name:"---------"},(0,r.default)(this),(0,a.default)(this))}function C(e,t){if(h(f,this)){const o=this.hot.getSettings().fixedColumnsStart;if(t<o)return!1;if(e.some(e=>e<o))return!1}}t.ManualColumnFreeze=m},44251:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(34651);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.Loading=i.Loading},44270:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490);var i=o(28666);class s extends i.BaseTransformation{calculateOffset(){const e=this.getCurrentSelection(),{row:t,col:o}=e.getOuterTopStartCorner(),i=this.tableApi.countRenderableColumnsInRange(0,o-1),s=this.tableApi.countRenderableRowsInRange(0,t-1),n=e.highlight.isHeader(),r=n?Math.abs(o):0,a=n?Math.abs(t):0;return{x:o<0?r:-i,y:t<0?a:-s}}countRenderableRows(){const e=this.getCurrentSelection();return this.tableApi.countRenderableRowsInRange(0,e.getOuterBottomEndCorner().row)}countRenderableColumns(){const e=this.getCurrentSelection();return this.tableApi.countRenderableColumnsInRange(0,e.getOuterBottomEndCorner().col)}transformEnd(){throw new Error("`transformEnd` is not valid for focus selection use `transformStart` instead")}shouldSwitchSelectionLayer(){return!0}}t.FocusTransformation=s},44423:(e,t,o)=>{"use strict";var i=o(2382),s=o(60072),n=o(98363),r=o(90501),a=o(66431),l=o(61674);t.f=i&&!s?Object.defineProperties:function(e,t){r(e);for(var o,i=a(t),s=l(t),h=s.length,c=0;h>c;)n.f(e,o=s[c++],i[o]);return e}},44481:(e,t)=>{"use strict";t.__esModule=!0;const o=t.CONTEXT_MENU_ITEMS_NAMESPACE="ContextMenu:items",i=(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:"),s=t.FILTERS_CONDITIONS_NAMESPACE=`${i}conditions`,n=(t.FILTERS_CONDITIONS_NONE=`${s}.none`,t.FILTERS_CONDITIONS_EMPTY=`${s}.isEmpty`,t.FILTERS_CONDITIONS_NOT_EMPTY=`${s}.isNotEmpty`,t.FILTERS_CONDITIONS_EQUAL=`${s}.isEqualTo`,t.FILTERS_CONDITIONS_NOT_EQUAL=`${s}.isNotEqualTo`,t.FILTERS_CONDITIONS_BEGINS_WITH=`${s}.beginsWith`,t.FILTERS_CONDITIONS_ENDS_WITH=`${s}.endsWith`,t.FILTERS_CONDITIONS_CONTAINS=`${s}.contains`,t.FILTERS_CONDITIONS_NOT_CONTAIN=`${s}.doesNotContain`,t.FILTERS_CONDITIONS_BY_VALUE=`${s}.byValue`,t.FILTERS_CONDITIONS_GREATER_THAN=`${s}.greaterThan`,t.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL=`${s}.greaterThanOrEqualTo`,t.FILTERS_CONDITIONS_LESS_THAN=`${s}.lessThan`,t.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL=`${s}.lessThanOrEqualTo`,t.FILTERS_CONDITIONS_BETWEEN=`${s}.isBetween`,t.FILTERS_CONDITIONS_NOT_BETWEEN=`${s}.isNotBetween`,t.FILTERS_CONDITIONS_AFTER=`${s}.after`,t.FILTERS_CONDITIONS_BEFORE=`${s}.before`,t.FILTERS_CONDITIONS_TODAY=`${s}.today`,t.FILTERS_CONDITIONS_TOMORROW=`${s}.tomorrow`,t.FILTERS_CONDITIONS_YESTERDAY=`${s}.yesterday`,t.FILTERS_DIVS_FILTER_BY_CONDITION=`${i}labels.filterByCondition`,t.FILTERS_DIVS_FILTER_BY_VALUE=`${i}labels.filterByValue`,t.FILTERS_LABELS_CONJUNCTION=`${i}labels.conjunction`,t.FILTERS_LABELS_DISJUNCTION=`${i}labels.disjunction`,t.FILTERS_VALUES_BLANK_CELLS=`${i}values.blankCells`,t.FILTERS_BUTTONS_SELECT_ALL=`${i}buttons.selectAll`,t.FILTERS_BUTTONS_CLEAR=`${i}buttons.clear`,t.FILTERS_BUTTONS_OK=`${i}buttons.ok`,t.FILTERS_BUTTONS_CANCEL=`${i}buttons.cancel`,t.FILTERS_BUTTONS_PLACEHOLDER_SEARCH=`${i}buttons.placeholder.search`,t.FILTERS_BUTTONS_PLACEHOLDER_VALUE=`${i}buttons.placeholder.value`,t.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE=`${i}buttons.placeholder.secondValue`,t.PAGINATION_NAMESPACE="Pagination:"),r=(t.PAGINATION_SECTION=`${n}section.pagination`,t.PAGINATION_PAGE_SIZE_AUTO=`${n}.pageSize.auto`,t.PAGINATION_PAGE_SIZE_SECTION=`${n}section.pageSize`,t.PAGINATION_COUNTER_SECTION=`${n}section.counter`,t.PAGINATION_NAV_SECTION=`${n}section.navigation`,t.PAGINATION_FIRST_PAGE=`${n}firstPage`,t.PAGINATION_PREV_PAGE=`${n}prevPage`,t.PAGINATION_NEXT_PAGE=`${n}nextPage`,t.PAGINATION_LAST_PAGE=`${n}lastPage`,t.CHECKBOX_RENDERER_NAMESPACE="CheckboxRenderer:"),a=(t.CHECKBOX_CHECKED=`${r}checked`,t.CHECKBOX_UNCHECKED=`${r}unchecked`,t.LOADING_NAMESPACE="Loading:");t.LOADING_TITLE=`${a}title`},44624:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490),o(99356),o(82515),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(29810),o(90643),o(31143);var i=o(79521);function s(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 r(e,t,o){return e.set(l(e,t),o),o}function a(e,t){return e.get(l(e,t))}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 h=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakSet;function g(e){a(h,this).set(e,[]),a(c,this).set(e,0)}t.HooksBucket=class{constructor(){var e,t;n(e=this,t=d),t.add(e),s(this,h,new Map),s(this,c,new Map),s(this,u,new Set),i.REGISTERED_HOOKS.forEach(e=>l(d,this,g).call(this,e))}getHooks(e){var t;return null!==(t=a(h,this).get(e))&&void 0!==t?t:[]}add(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};a(h,this).has(e)||(l(d,this,g).call(this,e),i.REGISTERED_HOOKS.push(e));const s=a(h,this).get(e);if(s.find(e=>e.callback===t))return;const n=Number.isInteger(o.orderIndex)?o.orderIndex:0,r=!!o.runOnce,c=!!o.initialHook;let f=!1;if(c){const e=s.find(e=>e.initialHook);e&&(e.callback=t,f=!0)}if(!f){s.push({callback:t,orderIndex:n,runOnce:r,initialHook:c,skip:!1});let o=a(u,this).has(e);o||0===n||(o=!0,a(u,this).add(e)),o&&s.length>1&&a(h,this).set(e,s.toSorted((e,t)=>e.orderIndex-t.orderIndex))}}has(e){return a(h,this).has(e)&&a(h,this).get(e).length>0}remove(e,t){if(!a(h,this).has(e))return!1;const o=a(h,this).get(e),i=o.find(e=>e.callback===t);if(i){let t=a(c,this).get(e);return i.skip=!0,t+=1,t>100&&(a(h,this).set(e,o.filter(e=>!e.skip)),t=0),a(c,this).set(e,t),!0}return!1}destroy(){a(h,this).clear(),a(c,this).clear(),r(h,this,null),r(c,this,null)}}},44806:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostBottomInlineEnd",callback(e){const{selection:t,rowIndexMapper:o,columnIndexMapper:i}=e,s=parseInt(e.getSettings().fixedRowsBottom,10),n=o.getNearestNotHiddenIndex(e.countRows()-s-1,-1),r=i.getNearestNotHiddenIndex(e.countCols()-1,-1);t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(n,r)),t.markEndSource()}}},44827:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},44919:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(8249),o(31835);var s=i(o(24300));t.FullyVisibleRowsCalculationType=class{constructor(){(0,s.default)(this,"count",0),(0,s.default)(this,"startRow",null),(0,s.default)(this,"endRow",null),(0,s.default)(this,"startPosition",null),(0,s.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedHeight:o,zeroBasedScrollOffset:i,innerViewportHeight:s,rowHeight:n}=t;o>=i&&o+n<=s&&(null===this.startRow&&(this.startRow=e),this.endRow=e)}finalize(e){var t;const{scrollOffset:o,viewportHeight:i,horizontalScrollbarHeight:s,totalRows:n,needReverse:r,startPositions:a,rowHeight:l}=e;if(this.endRow===n-1&&r)for(this.startRow=this.endRow;this.startRow>0;){const e=a[this.endRow]+l-a[this.startRow-1];if(e<=i-s&&(this.startRow-=1),e>=i-s)break}this.startPosition=null!==(t=a[this.startRow])&&void 0!==t?t:null;o+i-s<(null===this.startRow?0:e.getRowHeight(this.startRow))||o>a.at(-1)?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,n<this.endRow&&(this.endRow=n-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}},45007:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(76439);t.RENDERER_TYPE=i.RENDERER_TYPE,t.numericRenderer=i.numericRenderer,t.getRenderedValue=i.getRenderedValue},45084:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.areValidSortStates=function(e){if(e.some(e=>!1===function(e){if(!1===(0,n.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(i,n){const{sortEmptyCells:r}=o;if(i===n)return l.DO_NOT_SWAP;if((0,a.isEmpty)(i))return(0,a.isEmpty)(n)?l.DO_NOT_SWAP:r&&"asc"===e?l.FIRST_BEFORE_SECOND:l.FIRST_AFTER_SECOND;if((0,a.isEmpty)(n))return r&&"asc"===e?l.FIRST_AFTER_SECOND:l.FIRST_BEFORE_SECOND;const h=(0,s.default)(i,t),c=(0,s.default)(n,t);return h.isValid()?c.isValid()?c.isAfter(h)?"asc"===e?l.FIRST_BEFORE_SECOND:l.FIRST_AFTER_SECOND:c.isBefore(h)?"asc"===e?l.FIRST_AFTER_SECOND:l.FIRST_BEFORE_SECOND:l.DO_NOT_SWAP:l.FIRST_BEFORE_SECOND:l.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
68
68
  Only \`${e}\` will work. The \`${t}\` plugin will remain disabled.`)},t.wasHeaderClickedProperly=function(e,t,o){return-1===e&&t>=0&&!1===(0,r.isRightClick)(o)},o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(940),o(81056);var s=i(o(86798)),n=o(4138),r=o(47802),a=o(7886),l=o(70705),h=o(7120),c=o(30738);const u=t.ASC_SORT_STATE="asc",d=t.DESC_SORT_STATE="desc",g=t.HEADER_SPAN_CLASS="colHeader"},45463:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(69213);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.Autofill=i.Autofill},45972:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=o(94576),n=o(58604),r=o(78966),a=i(o(78918)),l=o(72609);class h extends a.default{static get CSS_CLASSES(){return{indicatorContainer:"ht_nestingLevels",parent:"ht_nestingParent",indicator:"ht_nestingLevel",emptyIndicator:"ht_nestingLevel_empty",button:"ht_nestingButton",expandButton:"ht_nestingExpand",collapseButton:"ht_nestingCollapse"}}constructor(e,t){super(e,t),this.dataManager=this.plugin.dataManager,this.collapsingUI=this.plugin.collapsingUI,this.rowHeaderWidthCache=null}appendLevelIndicators(e,t){const o=this.hot.toPhysicalRow(e),i=this.dataManager.getDataObject(o);if(!i)return;const a=this.dataManager.getRowLevel(o),c=t.getElementsByTagName("DIV")[0],u=c.querySelector("span.rowHeader"),d=c.querySelectorAll('[class^="ht_nesting"]'),g=this.hot.getSettings().ariaTags;if((0,s.arrayEach)(d,e=>{e&&c.removeChild(e)}),(0,r.addClass)(t,h.CSS_CLASSES.indicatorContainer),a){const{rootDocument:e}=this.hot,t=u.cloneNode(!0);c.innerHTML="",(0,n.rangeEach)(0,a-1,()=>{const t=e.createElement("SPAN");(0,r.addClass)(t,h.CSS_CLASSES.emptyIndicator),c.appendChild(t)}),c.appendChild(t)}if(this.dataManager.hasChildren(i)){const e=this.hot.rootDocument.createElement("DIV");g&&(0,r.setAttribute)(e,[(0,l.A11Y_HIDDEN)()]),(0,r.addClass)(t,h.CSS_CLASSES.parent),this.collapsingUI.areChildrenCollapsed(o)?((0,r.addClass)(e,`${h.CSS_CLASSES.button} ${h.CSS_CLASSES.expandButton}`),g&&(0,r.setAttribute)(t,[(0,l.A11Y_EXPANDED)(!1)])):((0,r.addClass)(e,`${h.CSS_CLASSES.button} ${h.CSS_CLASSES.collapseButton}`),g&&(0,r.setAttribute)(t,[(0,l.A11Y_EXPANDED)(!0)])),c.appendChild(e)}}updateRowHeaderWidth(e){let t=e;t||(t=this.dataManager.cache.levelCount);let o=11;if(!this.hot.stylesHandler.isClassicTheme()){o=2*this.hot.stylesHandler.getCSSVariableValue("cell-horizontal-padding")}this.rowHeaderWidthCache=Math.max(50,o+10*t+25),this.hot.render()}}t.default=h},46337:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(99356);var s=i(o(24300)),n=o(4138),r=o(94576),a=o(58226);t.ItemsFactory=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,s.default)(this,"hot",void 0),(0,s.default)(this,"predefinedItems",(0,a.predefinedItems)()),(0,s.default)(this,"defaultOrderPattern",void 0),this.hot=e,this.defaultOrderPattern=t}setPredefinedItems(e){const t={};this.defaultOrderPattern.length=0,(0,n.objectEach)(e,(e,o)=>{let i="";e.name===a.SEPARATOR?(t[a.SEPARATOR]=e,i=a.SEPARATOR):isNaN(parseInt(o,10))?(e.key=void 0===e.key?o:e.key,t[o]=e,i=e.key):(t[e.key]=e,i=e.key),this.defaultOrderPattern.push(i)}),this.predefinedItems=t}getItems(){return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=[];let s=e;s&&s.items?s=s.items:Array.isArray(s)||(s=t);(0,n.isObject)(s)?(0,n.objectEach)(s,(e,t)=>{let s=o["string"==typeof e?e:t];s||(s=e),(0,n.isObject)(e)?(0,n.extend)(s,e):"string"==typeof s&&(s={name:s}),void 0===s.key&&(s.key=t),i.push(s)}):(0,r.arrayEach)(s,(e,t)=>{let s=o[e];!s&&a.ITEMS.indexOf(e)>=0||(s||(s={name:e,key:`${t}`}),(0,n.isObject)(e)&&(0,n.extend)(s,e),void 0===s.key&&(s.key=t),i.push(s))});return i}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,this.defaultOrderPattern,this.predefinedItems)}}},46367:(e,t,o)=>{"use strict";var i=o(19098),s=o(33266),n=o(44827),r=o(60606),a=o(84677),l=i([].push);e.exports=function(e){if(n(e))return e;if(s(e)){for(var t=e.length,o=[],i=0;i<t;i++){var h=e[i];"string"==typeof h?l(o,h):"number"!=typeof h&&"Number"!==r(h)&&"String"!==r(h)||l(o,a(h))}var c=o.length,u=!0;return function(e,t){if(u)return u=!1,t;if(s(this))return t;for(var i=0;i<c;i++)if(o[i]===e)return t}}}},46410:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(82467)),n=o(78966);class r extends s.default{build(){super.build(),(0,n.addClass)(this._element,"ht__manualColumnMove--backlight")}}t.default=r},46553:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"editorFastOpen",callback(e,t){const{highlight:o}=e.getSelectedRangeActive();o.isHeader()||e._getEditorManager().openEditor(null,t,!0)}}},46700:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"commentsReadOnly",name(){const t=this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT);return(0,s.checkSelectionConsistency)(this.getSelectedRange(),(t,o)=>e.getCommentMeta(t,o,n.META_READONLY))?(0,s.markLabelAsSelected)(t):t},callback(){this.getSelectedRangeActive().forAll((t,o)=>{if(t>=0&&o>=0){const i=!!e.getCommentMeta(t,o,n.META_READONLY);e.updateCommentMeta(t,o,{[n.META_READONLY]:!i})}})},disabled(){const t=this.getSelectedRangeActive();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 i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(83914),n=o(67837)},46802:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionUpByViewportHight",callback(e){const{selection:t}=e,{navigableHeaders:o}=e.getSettings(),i=o?e.countColHeaders():0,{row:s}=e.getSelectedRangeActive().highlight;let n=e.countVisibleRows()+i;n=0===n?-1:-n,s===-i?n=-1:s+n<i&&(n=-(s+i)),t.markSource("keyboard"),t.transformStart(n,0),t.markEndSource(),e.getSelectedRangeActive().highlight.row<0&&e.scrollViewportTo({row:0})}}},46848:(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(i.toSingleLine`The passed node is not the last node on the tree. Only for\x20
69
69
  the last node, the hide column modification can be applied.`);const{crossHiddenColumns:o}=e.data;if(o.includes(t))return;let s=!1;if(e.walkUp(e=>{const{data:{collapsible:t}}=e;if(t)return s=!0,!1}),s)return;e.walkUp(e=>{const{data:o}=e;o.crossHiddenColumns.push(t),o.colspan>1?o.colspan-=1:o.isHidden=!0})},o(52490),o(99356);var i=o(30738)},47057:(e,t,o)=>{"use strict";var i=o(88786),s=o(44827),n=o(60606),r=o(12033)("toStringTag"),a=Object,l="Arguments"===n(function(){return arguments}());e.exports=i?n:function(e){var t,o,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(o=function(e,t){try{return e[t]}catch(e){}}(t=a(e),r))?o:l?n(t):"Object"===(i=n(t))&&s(t.callee)?"Arguments":i}},47150: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}}},47271:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(9137),r=o(70705),a=o(45084),l=o(78966),h=o(29430),c=o(14207),u=o(13390);const d=t.PLUGIN_KEY="multiColumnSorting",g=t.PLUGIN_PRIORITY=170,f=d;(0,r.registerRootComparator)(d,h.rootComparator);class p extends n.ColumnSorting{constructor(){super(...arguments),(0,s.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.getSelectedRangeActive();return-1===e.row&&e.col>=0&&this.sort(this.getNextSortConfig(e.col,n.APPEND_COLUMN_CONFIG_STRATEGY)),!1},runOnlyIf:()=>{var e,t;const o=null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.highlight;return o&&(null===(t=this.hot.getSelectedRangeActive())||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),i=1;i<t;i++)o[i-1]=arguments[i];super.updateHeaderClasses(e,...o),(0,l.removeClass)(e,(0,c.getClassesToRemove)(e)),!1!==this.enabled&&(0,l.addClass)(e,(0,c.getClassesToAdd)(...o))}onAfterOnCellMouseDown(e,t){!1!==(0,a.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,n.APPEND_COLUMN_CONFIG_STRATEGY))):this.sort(this.getColumnNextConfig(t.col)))}}t.MultiColumnSorting=p},47343:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300));t.TableRenderer=class{constructor(e){let{cellRenderer:t,stylesHandler:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,s.default)(this,"rootNode",void 0),(0,s.default)(this,"rootDocument",void 0),(0,s.default)(this,"rowHeaders",null),(0,s.default)(this,"columnHeaders",null),(0,s.default)(this,"colGroup",null),(0,s.default)(this,"rows",null),(0,s.default)(this,"cells",null),(0,s.default)(this,"rowFilter",null),(0,s.default)(this,"columnFilter",null),(0,s.default)(this,"rowUtils",null),(0,s.default)(this,"columnUtils",null),(0,s.default)(this,"rowsToRender",0),(0,s.default)(this,"columnsToRender",0),(0,s.default)(this,"rowHeaderFunctions",[]),(0,s.default)(this,"rowHeadersCount",0),(0,s.default)(this,"columnHeaderFunctions",[]),(0,s.default)(this,"columnHeadersCount",0),(0,s.default)(this,"cellRenderer",void 0),(0,s.default)(this,"activeOverlayName",void 0),(0,s.default)(this,"stylesHandler",void 0),this.rootNode=e,this.rootDocument=this.rootNode.ownerDocument,this.cellRenderer=t,this.stylesHandler=o}setActiveOverlayName(e){this.activeOverlayName=e}setAxisUtils(e,t){this.rowUtils=e,this.columnUtils=t}setViewportSize(e,t){this.rowsToRender=e,this.columnsToRender=t}setFilters(e,t){this.rowFilter=e,this.columnFilter=t}setHeaderContentRenderers(e,t){this.rowHeaderFunctions=e,this.rowHeadersCount=e.length,this.columnHeaderFunctions=t,this.columnHeadersCount=t.length}setRenderers(){let{rowHeaders:e,columnHeaders:t,colGroup:o,rows:i,cells:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.setTable(this),t.setTable(this),o.setTable(this),i.setTable(this),s.setTable(this),this.rowHeaders=e,this.columnHeaders=t,this.colGroup=o,this.rows=i,this.cells=s}renderedRowToSource(e){return this.rowFilter.renderedToSource(e)}renderedColumnToSource(e){return this.columnFilter.renderedToSource(e)}isAriaEnabled(){return this.rowUtils.wtSettings.getSetting("ariaTags")}render(){this.colGroup.adjust(),this.columnHeaders.adjust(),this.rows.adjust(),this.rowHeaders.adjust(),this.columnHeaders.render(),this.rows.render(),this.rowHeaders.render(),this.cells.render(),this.columnUtils.calculateWidths(),this.colGroup.render();const{rowsToRender:e,rows:t}=this;for(let o=0;o<e;o++){const e=t.getRenderedNode(o),i=this.rowUtils;if(e.firstChild){const t=this.renderedRowToSource(o),s=i.getHeightByOverlayName(t,this.activeOverlayName),n=this.stylesHandler.areCellsBorderBox()?0:1;e.firstChild.style.height=s?s-n+"px":""}}}}},47520:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=n;var i=o(23895);const s=t.CONDITION_NAME="true";function n(){return!0}(0,i.registerCondition)(s,n,{name:"True"})},47742:(e,t,o)=>{"use strict";t.__esModule=!0,t.createKeysObserver=function(){const e=new Set;return{press(t){e.add(t)},release(t){e.delete(t)},releaseAll(){e.clear()},isPressed:t=>e.has(t)}},o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724)},47763:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(78966),s=o(29779),n=o(72609);class r extends s.BaseRenderer{constructor(e){super(null,e)}adjust(){const{columnHeadersCount:e,rowHeadersCount:t}=this.table;let o=this.rootNode.firstChild;if(e){const{columnsToRender:i}=this.table,s=i+t;for(let t=0,i=e;t<i;t++){for(o=this.rootNode.childNodes[t],o||(o=this.table.rootDocument.createElement("tr"),this.rootNode.appendChild(o)),this.renderedNodes=o.childNodes.length;this.renderedNodes<s;)o.appendChild(this.table.rootDocument.createElement("th")),this.renderedNodes+=1;for(;this.renderedNodes>s;)o.removeChild(o.lastChild),this.renderedNodes-=1}const n=this.rootNode.childNodes.length;if(n>e)for(let t=e;t<n;t++)this.rootNode.removeChild(this.rootNode.lastChild)}else o&&(0,i.empty)(o)}render(){const{columnHeadersCount:e}=this.table;this.table.isAriaEnabled()&&(0,i.setAttribute)(this.rootNode,[(0,n.A11Y_ROWGROUP)()]);for(let t=0;t<e;t+=1){const{columnHeaderFunctions:e,columnsToRender:o,rowHeadersCount:s}=this.table,r=this.rootNode.childNodes[t];this.table.isAriaEnabled()&&(0,i.setAttribute)(r,[(0,n.A11Y_ROW)(),(0,n.A11Y_ROWINDEX)(t+1)]);for(let a=-1*s;a<o;a+=1){const o=this.table.renderedColumnToSource(a),l=r.childNodes[a+s];l.className="",l.removeAttribute("style"),(0,i.removeAttribute)(l,[new RegExp("aria-(.*)"),new RegExp("role")]),this.table.isAriaEnabled()&&(0,i.setAttribute)(l,[(0,n.A11Y_COLINDEX)(a+1+this.table.rowHeadersCount),(0,n.A11Y_TABINDEX)(-1),(0,n.A11Y_COLUMNHEADER)(),...a>=0?[(0,n.A11Y_SCOPE_COL)()]:[(0,n.A11Y_GRIDCELL_BUTTON)(),(0,n.A11Y_LABEL)("Select whole grid")]]),e[t](o,l,t)}}}}t.ColumnHeadersRenderer=r},47802:(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 s=e.target;if(!(0,i.isHTMLElement)(t)||s!==t&&s.contains(t))return o;for(;s!==t;)o.x+=s.offsetLeft,o.y+=s.offsetTop,s=s.offsetParent;return o},t.stopImmediatePropagation=function(e){e.isImmediatePropagationEnabled=!1,e.cancelBubble=!0};var i=o(78966)},47833:(e,t,o)=>{"use strict";var i=o(61546);e.exports=function(e,t,o){for(var s in t)i(e,s,t[s],o);return e}},47845:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(29810);var s=i(o(24300)),n=o(78966),r=o(47802),a=o(94576),l=o(38830),h=o(4138),c=m(o(44481)),u=o(69572),d=m(o(65865)),g=o(2979),f=o(30095),p=o(23895);function m(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return(m=function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r})(e,t)}function w(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")}var v=new WeakSet;class y extends u.BaseComponent{constructor(e,t){super(e,{id:t.id,stateless:!1}),w(this,v),(0,s.default)(this,"name",""),(0,s.default)(this,"addSeparator",!1),this.name=t.name,this.addSeparator=t.addSeparator,this.elements.push(new f.SelectUI(this.hot,{menuContainer:t.menuContainer})),this.elements.push(new g.InputUI(this.hot,{placeholder:c.FILTERS_BUTTONS_PLACEHOLDER_VALUE})),this.elements.push(new g.InputUI(this.hot,{placeholder:c.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE})),this.registerHooks()}registerHooks(){this.getSelectElement().addLocalHook("select",e=>C(v,this,S).call(this,e)).addLocalHook("afterClose",()=>this.runLocalHooks("afterClose")).addLocalHook("tabKeydown",e=>this.runLocalHooks("selectTabKeydown",e)),(0,a.arrayEach)(this.getInputElements(),e=>{e.addLocalHook("keydown",e=>C(v,this,E).call(this,e))})}setState(e){if(this.reset(),!e)return;const t=(0,h.clone)(e.command);t.name.startsWith(c.FILTERS_CONDITIONS_NAMESPACE)&&(t.name=this.hot.getTranslatedPhrase(t.name)),this.getSelectElement().setValue(t),(0,a.arrayEach)(e.args,(e,o)=>{if(o>t.inputsCount-1)return!1;const i=this.getInputElement(o);i.setValue(e),i[t.inputsCount>o?"show":"hide"](),o||this.hot._registerTimeout(()=>i.focus(),10)})}getState(){const e=this.getSelectElement().getValue()||(0,p.getConditionDescriptor)(d.CONDITION_NONE),t=[];return(0,a.arrayEach)(this.getInputElements(),(o,i)=>{e.inputsCount>i&&t.push(o.getValue())}),{command:e,args:t}}updateState(e,t){const o=e?(0,p.getConditionDescriptor)(e.name):(0,p.getConditionDescriptor)(d.CONDITION_NONE);this.state.setValueAtIndex(t,{command:o,args:e?e.args:[]}),e||(0,a.arrayEach)(this.getInputElements(),e=>e.setValue(null))}getSelectElement(){return this.elements.filter(e=>e instanceof f.SelectUI)[0]}getInputElement(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.getInputElements()[e]}getInputElements(){return this.elements.filter(e=>e instanceof g.InputUI)}getMenuItemDescriptor(){return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:()=>this.isHidden(),renderer:(e,t,o,i,s,r)=>{(0,n.addClass)(t.parentNode,"htFiltersMenuCondition"),this.addSeparator&&(0,n.addClass)(t.parentNode,"border");const l=this.hot.rootDocument.createElement("div");return(0,n.addClass)(l,"htFiltersMenuLabel"),l.textContent=r,t.appendChild(l),t.parentElement.hasAttribute("ghost-table")||(0,a.arrayEach)(this.elements,e=>t.appendChild(e.element)),t}}}reset(){const e=this.hot.getPlugin("filters").getSelectedColumn();let t=[(0,p.getConditionDescriptor)(d.CONDITION_NONE)];if(null!==e){const{visualIndex:o}=e;t=(0,d.default)(this.hot.getDataType(0,o,this.hot.countRows(),o))}(0,a.arrayEach)(this.getInputElements(),e=>e.hide()),this.getSelectElement().setItems(t),super.reset(),this.getSelectElement().setValue(t[0])}}function S(e){(0,a.arrayEach)(this.getInputElements(),(t,o)=>{t[e.inputsCount>o?"show":"hide"](),0===o&&this.hot._registerTimeout(()=>t.focus(),10)}),this.runLocalHooks("change",e)}function E(e){(0,l.isKey)(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),(0,r.stopImmediatePropagation)(e))}t.ConditionComponent=y},47865:(e,t,o)=>{"use strict";var i=o(94266),s=o(15176),n=i.document,r=s(n)&&s(n.createElement);e.exports=function(e){return r?n.createElement(e):{}}},47927:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(99640)),n=i(o(24699));class r{constructor(e){e instanceof n.default?this._wot=e:this._initFromSettings(e)}_initFromSettings(e){e.facade=e=>{const t=new r(e);return()=>t},this._wot=new s.default(e.table,e)}get guid(){return this._wot.guid}get rootDocument(){return this._wot.domBindings.rootDocument}get rootWindow(){return this._wot.domBindings.rootWindow}get wtSettings(){return this._wot.wtSettings}get cloneSource(){return this._wot.cloneSource}get cloneOverlay(){return this._wot.cloneOverlay}get selectionManager(){return this._wot.selectionManager}get wtViewport(){return this._wot.wtViewport}get wtOverlays(){return this._wot.wtOverlays}get wtTable(){return this._wot.wtTable}get wtEvent(){return this._wot.wtEvent}get wtScroll(){return this._wot.wtScroll}get drawn(){return this._wot.drawn}set drawn(e){this._wot.drawn=e}get activeOverlayName(){return this._wot.activeOverlayName}get drawInterrupted(){return this._wot.drawInterrupted}set drawInterrupted(e){this._wot.drawInterrupted=e}get lastMouseOver(){return this._wot.lastMouseOver}set lastMouseOver(e){this._wot.lastMouseOver=e}get momentumScrolling(){return this._wot.momentumScrolling}set momentumScrolling(e){this._wot.momentumScrolling=e}get touchApplied(){return this._wot.touchApplied}set touchApplied(e){this._wot.touchApplied=e}get domBindings(){return this._wot.domBindings}get eventListeners(){return this._wot.eventListeners}set eventListeners(e){this._wot.eventListeners=e}get eventManager(){return this._wot.eventManager}createCellCoords(e,t){return this._wot.createCellCoords(e,t)}createCellRange(e,t,o){return this._wot.createCellRange(e,t,o)}draw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._wot.draw(e),this}getCell(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._wot.getCell(e,t)}scrollViewport(e,t,o){return this._wot.scrollViewport(e,t,o)}scrollViewportHorizontally(e,t){return this._wot.scrollViewportHorizontally(e,t)}scrollViewportVertically(e,t){return this._wot.scrollViewportVertically(e,t)}getViewport(){return this._wot.getViewport()}getOverlayName(){return this._wot.cloneOverlay?this._wot.cloneOverlay.type:"master"}getOverlayByName(e){return this._wot.getOverlayByName(e)}exportSettingsAsClassNames(){return this._wot.exportSettingsAsClassNames()}update(e,t){return this._wot.wtSettings.update(e,t),this}getSetting(e,t,o,i,s){return this._wot.wtSettings.getSetting(e,t,o,i,s)}hasSetting(e){return this._wot.wtSettings.hasSetting(e)}destroy(){this._wot.destroy()}}t.default=r},48099:e=>{"use strict";e.exports={}},48360:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(55656);const{getListWithInsertedItems:s,getListWithRemovedItems:n}=(0,i.alterUtilsFactory)("physicallyIndexed");class r extends i.IndexMap{constructor(){super(e=>e)}insert(e,t){this.indexedValues=s(this.indexedValues,e,t,(e,t)=>this.getNextValue(t)),super.insert(e,t)}remove(e){this.indexedValues=n(this.indexedValues,e),super.remove(e)}getNextValue(e){return Math.max(...this.getValues())+1+e}}t.default=r},48369:(e,t,o)=>{"use strict";var i=o(77439);e.exports=function(e,t,o){for(var s,n,r=o?e:e.iterator,a=e.next;!(s=i(a,r)).done;)if(void 0!==(n=t(s.value)))return n}},48370:(e,t)=>{"use strict";t.__esModule=!0,t.announce=function(e){if(!o)return;o.textContent="",setTimeout(()=>{o&&(o.textContent=e)},100)},t.install=function(e){const t=e.ownerDocument;if(!o){o=t.createElement("div"),o.setAttribute("role","status"),o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true");const i=o.style;i.position="absolute",i.width="1px",i.height="1px",i.margin="-1px",i.overflow="hidden",i.clipPath="rect(0 0 0 0)",i.whiteSpace="nowrap",e.appendChild(o)}i+=1},t.uninstall=function(){if(0===i)return;1===i&&(o.remove(),o=null);i-=1};let o=null,i=0},48404:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(31143);var s=i(o(24300)),n=o(78966),r=o(58604),a=o(30738),l=o(47802),h=o(7120),c=o(79930),u=o(26808),d=i(o(15981)),g=i(o(24181));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 S=new WeakMap,E=new WeakMap,R=new WeakMap,b=new WeakMap,_=new WeakMap,T=new WeakMap,M=new WeakSet;class I extends u.BasePlugin{constructor(){var e,t;super(...arguments),p(e=this,t=M),t.add(e),f(this,S,new d.default),f(this,E,null),f(this,R,null),f(this,b,!1),f(this,_,null),(0,s.default)(this,"ghostTable",new g.default(this.hot,(e,t)=>this.getHeaderSettings(e,t))),(0,s.default)(this,"detectedOverlappedHeaders",!1),f(this,T,()=>{var e;const t=null===(e=this.hot)||void 0===e?void 0:e.getSelectedRangeActive();if(!t)return;const{highlight:o}=t;if(o.isHeader()&&o.col>=0){const e=w(S,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()}})}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)(a.toSingleLine`Your Nested Headers plugin configuration is invalid. The settings has to be\x20
70
70
  passed as an array of arrays e.q. [['A1', { label: 'A2', colspan: 2 }]]`),this.addHook("init",()=>C(M,this,j).call(this)),this.addHook("afterLoadData",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,z).call(e,...o)}),this.addHook("beforeOnCellMouseDown",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,P).call(e,...o)}),this.addHook("afterOnCellMouseDown",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,H).call(e,...o)}),this.addHook("beforeOnCellMouseOver",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,x).call(e,...o)}),this.addHook("beforeOnCellMouseUp",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,k).call(e,...o)}),this.addHook("beforeSelectionHighlightSet",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,D).call(e,...o)}),this.addHook("modifyTransformStart",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,L).call(e,...o)}),this.addHook("afterSelection",()=>w(T,this).call(this)),this.addHook("afterSelectionFocusSet",()=>w(T,this).call(this)),this.addHook("beforeViewportScrollHorizontally",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,O).call(e,...o)}),this.addHook("afterGetColumnHeaderRenderers",e=>C(M,this,W).call(this,e)),this.addHook("modifyColWidth",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,B).call(e,...o)}),this.addHook("modifyColumnHeaderValue",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,U).call(e,...o)}),this.addHook("beforeHighlightingColumnHeader",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,A).call(e,...o)}),this.addHook("beforeCopy",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,N).call(e,...o)}),this.addHook("beforeSelectColumns",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,V).call(e,...o)}),this.addHook("afterViewportColumnCalculatorOverride",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,F).call(e,...o)}),this.addHook("modifyFocusedElement",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,Y).call(e,...o)}),this.hot.columnIndexMapper.addLocalHook("cacheUpdated",w(T,this)),this.hot.rowIndexMapper.addLocalHook("cacheUpdated",w(T,this)),super.enablePlugin(),this.updatePlugin()}updatePlugin(){if(!this.hot.view)return;const{nestedHeaders:e}=this.hot.getSettings();w(S,this).setColumnsLimit(this.hot.countCols()),Array.isArray(e)&&(this.detectedOverlappedHeaders=w(S,this).setState(e)),this.detectedOverlappedHeaders&&(0,h.warn)(a.toSingleLine`Your Nested Headers plugin setup contains overlapping headers. This kind of configuration\x20
71
- is currently not supported.`),this.enabled&&this.hot.columnIndexMapper.hidingMapsCollection.getMergedValues().forEach((e,t)=>{const o=!0===e?"hide-column":"show-column";w(S,this).triggerColumnModification(o,t)}),!w(E,this)&&this.enabled&&m(E,this,this.hot.columnIndexMapper.createChangesObserver("hiding").subscribe(e=>{e.forEach(e=>{let{op:t,index:o,newValue:i}=e;if("replace"===t){const e=!0===i?"hide-column":"show-column";w(S,this).triggerColumnModification(e,o)}}),this.ghostTable.buildWidthsMap()})),this.ghostTable.setLayersCount(this.getLayersCount()).buildWidthsMap(),super.updatePlugin()}disablePlugin(){this.hot.rowIndexMapper.removeLocalHook("cacheUpdated",w(T,this)),this.hot.columnIndexMapper.removeLocalHook("cacheUpdated",w(T,this)),this.clearColspans(),w(S,this).clear(),w(E,this).unsubscribe(),m(E,this,null),this.ghostTable.clear(),super.disablePlugin()}getStateManager(){return w(S,this)}getLayersCount(){return w(S,this).getLayersCount()}getHeaderSettings(e,t){return w(S,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,i=e.wtOverlays.topOverlay.clone.wtTable.THEAD,s=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 r=i.childNodes[e],a=s?s.childNodes[e]:null;for(let e=0,o=t.childNodes.length;e<o;e++)t.childNodes[e].removeAttribute("colspan"),(0,n.removeClass)(t.childNodes[e],"hiddenHeader"),r&&r.childNodes[e]&&(r.childNodes[e].removeAttribute("colspan"),(0,n.removeClass)(r.childNodes[e],"hiddenHeader")),s&&a&&a.childNodes[e]&&(a.childNodes[e].removeAttribute("colspan"),(0,n.removeClass)(a.childNodes[e],"hiddenHeader"))}}headerRendererFactory(e){var t=this;const o=this.hot.view._wt.getSetting("fixedColumnsStart");return(i,s)=>{var r;const{columnIndexMapper:a,view:l}=this.hot;let h=a.getVisualFromRenderableIndex(i);null===h&&(h=i),s.removeAttribute("colspan"),(0,n.removeClass)(s,"hiddenHeader"),(0,n.removeClass)(s,"hiddenHeaderText");const{colspan:c,isHidden:u,isPlaceholder:d,headerClassNames:g}=null!==(r=w(S,this).getHeaderSettings(e,h))&&void 0!==r?r:{label:""};if(d||u)(0,n.addClass)(s,"hiddenHeader");else if(c>1){var f,p,m;const{wtOverlays:e}=l._wt,t=null===(f=e.topInlineStartCornerOverlay)||void 0===f?void 0:f.clone.wtTable.THEAD.contains(s),r=null===(p=e.inlineStartOverlay)||void 0===p?void 0:p.clone.wtTable.THEAD.contains(s);(null===(m=e.topOverlay)||void 0===m?void 0:m.clone.wtTable.THEAD.contains(s))&&h<o&&(0,n.addClass)(s,"hiddenHeaderText");const a=t||r?Math.min(c,o-i):c;a>1&&s.setAttribute("colspan",a)}if(this.hot.view.appendColHeader(h,s,function(){return t.getColumnHeaderValue(...arguments)},e),!d&&!u){const e=s.querySelector("div.relative");e&&g&&g.length>0&&((0,n.removeClass)(e,this.hot.getColumnMeta(h).headerClassName),(0,n.addClass)(e,g))}}}getColumnHeaderValue(e,t){var o;const{isHidden:i,isPlaceholder:s}=null!==(o=w(S,this).getHeaderSettings(t,e))&&void 0!==o?o:{};return s||i?"":this.hot.getColHeader(e,t)}destroy(){m(S,this,null),null!==w(E,this)&&(w(E,this).unsubscribe(),m(E,this,null)),super.destroy()}_getHeaderTreeNodeDataByCoords(e){if(!(e.row>=0||e.col<0))return w(S,this).getHeaderTreeNodeData(e.row,e.col)}}function O(e,t){var o;const i=this.hot.getSelectedRangeActive();if(!i)return e;const{highlight:s}=i,{navigableHeaders:n}=this.hot.getSettings(),r=this.hot.selection.isSelectedByColumnHeader(),a=n?s.row:null===(o=w(_,this))||void 0===o?void 0:o.row,l=r?e:s.col,h=a<0&&l>=0;if(m(_,this,null),!h)return e;const c=this.hot.getFirstFullyVisibleColumn(),u=this.hot.getLastFullyVisibleColumn(),d=u-c+1,g=w(S,this).findLeftMostColumnIndex(a,l),f=w(S,this).findRightMostColumnIndex(a,l),p=f-g+1;if(g<c&&f>u)return g;if(r){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 A(e,t,o){const i=w(S,this).getHeaderTreeNodeData(t,e);if(!i)return e;const{columnCursor:s,selectionType:n,selectionWidth:r}=o,{isRoot:a,colspan:l}=w(S,this).getHeaderSettings(t,e);if(n===c.HEADER_TYPE){if(!a)return i.columnIndex}else if(n===c.ACTIVE_HEADER_TYPE&&(l>r-s||!a))return null;return e}function N(e,t,o){let{columnHeadersCount:i}=o;if(0!==i)for(let o=0;o<t.length;o++){const{startRow:i,startCol:n,endRow:r,endCol:a}=t[o],l=r-i+1;if(i>=0||1===n-a+1)break;for(let t=n;t<=a;t++)for(let o=i;o<=r;o++){var s;const i=l+o,r=t-n;if(0===r)continue;!1===(null===(s=w(S,this).getHeaderTreeNodeData(o,t))||void 0===s?void 0:s.isRoot)&&(e[i][r]="")}}}function P(e,t,o,i){this._getHeaderTreeNodeDataByCoords(t)&&(i.column=!0)}function H(e,t){const o=this._getHeaderTreeNodeDataByCoords(t);if(!o)return;m(R,this,t.clone()),m(b,this,!0);const{selection:i}=this.hot,s=i.isSelected()?i.getSelectedRange().current():null,n=[],{columnIndex:r,origColspan:a}=o,h=!i.inInSelection(t);e.shiftKey&&s?t.col<s.from.col?n.push(s.getTopEndCorner().col,r,t.row):t.col>s.from.col?n.push(s.getTopStartCorner().col,r+a-1,t.row):n.push(r,r+a-1,t.row):((0,l.isLeftClick)(e)||(0,l.isRightClick)(e)&&h||(0,l.isTouchEvent)(e))&&n.push(r,r+a-1,t.row),i.selectColumns(...n)}function x(e,t,o,i){if(!this.hot.view.isMouseDown()||i.column)return;const s=this._getHeaderTreeNodeDataByCoords(t);if(!s)return;const{columnIndex:n,origColspan:a}=s,l=this.hot.getSelectedRangeActive(),h=l.getTopStartCorner(),c=l.getBottomEndCorner(),{from:u}=l;i.column=!0,i.cell=!0;const d=[],g=(0,r.clamp)(t.row,-1/0,-1);t.col<u.col?d.push(c.col,n,g):t.col>u.col?d.push(h.col,n+a-1,g):d.push(n,n+a-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,i=t.getBottomEndCorner().col,{columnIndex:s,origColspan:n}=w(S,this).getHeaderTreeNodeData(w(R,this).row,w(R,this).col);if(t.setHighlight(w(R,this)),n>t.getWidth()||s<o||s+n-1>i){const e=w(S,this).findTopMostEntireHeaderLevel((0,r.clamp)(o,s,s+n-1),(0,r.clamp)(i,s,s+n-1));t.highlight.row=e,t.highlight.col=t.from.col}}function L(e){const{highlight:t}=this.hot.getSelectedRangeActive(),o=this.hot._createCellCoords(t.row+e.row,t.col+e.col);if(!(o.isHeader()&&o.col>=0))return;const i=w(S,this).findLeftMostColumnIndex(o.row,o.col),s=w(S,this).findRightMostColumnIndex(o.row,o.col);if(e.col<0){const o=t.col>=i&&t.col<=s?i-1:s,n=this.hot.columnIndexMapper.getNearestNotHiddenIndex(o,-1);e.col=null===n?-this.hot.view.countRenderableColumnsInRange(0,t.col):-Math.max(this.hot.view.countRenderableColumnsInRange(n,t.col)-1,1)}else if(e.col>0){const o=t.col>=i&&t.col<=s?s+1:i,n=this.hot.columnIndexMapper.getNearestNotHiddenIndex(o,1);e.col=null===n?this.hot.view.countRenderableColumnsInRange(t.col,this.hot.countCols()):Math.max(this.hot.view.countRenderableColumnsInRange(t.col,n)-1,1)}}function V(e,t,o){const i=e.row,s=this._getHeaderTreeNodeDataByCoords({row:i,col:e.col}),n=this._getHeaderTreeNodeDataByCoords({row:i,col:t.col});m(_,this,o.clone()),t.col<e.col?(s&&(e.col=s.columnIndex+s.origColspan-1),n&&(t.col=n.columnIndex)):t.col>=e.col&&(s&&(e.col=s.columnIndex),n&&(t.col=n.columnIndex+n.origColspan-1))}function W(e){if(w(S,this).getLayersCount()>0){e.length=0;for(let t=0;t<w(S,this).getLayersCount();t++)e.push(this.headerRendererFactory(t))}}function F(e){const t=w(S,this).getLayersCount();let o=e.startColumn,i=!!t;for(let s=0;s<t;s++){const t=w(S,this).findLeftMostColumnIndex(s,e.startColumn),n=this.hot.columnIndexMapper.getRenderableFromVisualIndex(t);if(t>=0&&(i=!1),(0,r.isNumeric)(n)&&n<e.startColumn){o=n;break}}e.startColumn=i?w(S,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 i;const{label:s}=null!==(i=w(S,this).getHeaderTreeNodeData(o,t))&&void 0!==i?i:{label:""};return s}function Y(e,t){if(e<0)return this.hot.getCell(e,w(S,this).findLeftMostColumnIndex(e,t),!0)}function j(){this.updatePlugin()}function z(e,t){t||this.updatePlugin()}t.NestedHeaders=I},48525:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=i(o(24300)),n=o(78966),r=o(4138);t.default=class{constructor(e){(0,s.default)(this,"settings",{}),(0,s.default)(this,"defaults",Object.freeze(this.getDefaults())),(0,r.objectEach)(this.defaults,(t,o)=>{if(void 0!==e[o])this.settings[o]=e[o];else{if(void 0===t)throw new Error(`A required setting "${o}" was not provided`);this.settings[o]=t}})}getDefaults(){return{facade:void 0,table:void 0,isDataViewInstance:!0,externalRowCalculator:!1,currentRowClassName:null,currentColumnClassName:null,preventOverflow:()=>!1,preventWheel:!1,data:void 0,fixedColumnsStart:0,fixedRowsTop:0,fixedRowsBottom:0,shouldRenderInlineStartOverlay:()=>this.getSetting("fixedColumnsStart")>0||this.getSetting("rowHeaders").length>0,shouldRenderTopOverlay:()=>this.getSetting("fixedRowsTop")>0||this.getSetting("columnHeaders").length>0,shouldRenderBottomOverlay:()=>this.getSetting("fixedRowsBottom")>0,minSpareRows:0,rowHeaders:()=>[],columnHeaders:()=>[],totalRows:void 0,totalColumns:void 0,cellRenderer:(e,t,o)=>{const i=this.getSetting("data",e,t);(0,n.fastInnerText)(o,null==i?"":i)},columnWidth(){},rowHeight(){},rowHeightByOverlayName(){},defaultColumnWidth:50,selections:null,hideBorderOnMouseDownOver:!1,viewportRowCalculatorOverride:null,viewportColumnCalculatorOverride:null,viewportRowRenderingThreshold:null,viewportColumnRenderingThreshold:null,onCellMouseDown:null,onCellContextMenu:null,onCellMouseOver:null,onCellMouseOut:null,onCellMouseUp:null,onCellDblClick:null,onCellCornerMouseDown:null,onCellCornerDblClick:null,beforeDraw:null,onDraw:null,onBeforeRemoveCellClassNames:null,onAfterDrawSelection:null,onBeforeDrawBorders:null,onBeforeViewportScrollHorizontally:e=>e,onBeforeViewportScrollVertically:e=>e,onScrollHorizontally:null,onScrollVertically:null,onBeforeTouchScroll:null,onAfterMomentumScroll:null,onModifyRowHeaderWidth:null,onModifyGetCellCoords:null,onModifyGetCoordsElement:null,onModifyGetCoords:null,onBeforeHighlightingRowHeader:e=>e,onBeforeHighlightingColumnHeader:e=>e,onWindowResize:null,onContainerElementResize:null,renderAllColumns:!1,renderAllRows:!1,groups:!1,rowHeaderWidth:null,columnHeaderHeight:null,headerClassName:null,rtlMode:!1,ariaTags:!0,stylesHandler:null}}update(e,t){return void 0===t?(0,r.objectEach)(e,(e,t)=>{this.settings[t]=e}):this.settings[e]=t,this}getSetting(e,t,o,i,s){return"function"==typeof this.settings[e]?this.settings[e](t,o,i,s):void 0!==t&&Array.isArray(this.settings[e])?this.settings[e][t]:this.settings[e]}getSettingPure(e){return this.settings[e]}has(e){return!!this.settings[e]}}},48622:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.createHighlight=function(e){let{...t}=e;return new n.default({className:"fill",border:{width:1,color:"#ff0000"},...t,selectionType:s.HIGHLIGHT_FILL_TYPE})};var s=o(13743),n=i(o(6711))},48685:(e,t,o)=>{"use strict";t.__esModule=!0,t.shortcutsEditorContext=function(e){const t=e.getShortcutManager().addContext("editor"),o=(0,s.createKeyboardShortcutCommandsPool)(e),n={group:i.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()}],n)};var i=o(6239),s=o(6941)},48722:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(14291);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.CollapsibleColumns=i.CollapsibleColumns},48969:(e,t,o)=>{"use strict";t.__esModule=!0,t.passwordRenderer=a;var i=o(54657),s=o(78966),n=o(58604);const r=t.RENDERER_TYPE="password";function a(e,t,o,r,a,l,h){i.textRenderer.apply(this,[e,t,o,r,a,l,h]);const c=h.hashLength||t.innerHTML.length,u=h.hashSymbol||"*";let d="";(0,n.rangeEach)(c-1,()=>{d+=u}),(0,s.fastInnerHTML)(t,d)}a.RENDERER_TYPE=r},48971:(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===r||t===a)return[];const o=p(t,{createCellCoords:e._createCellCoords.bind(e),createCellRange:e._createCellRange.bind(e)}),i=new Set;(0,s.arrayEach)(e.getSelected(),e=>{const{from:t,to:n}=o(e),r=Math.max(t.col,0),a=n.col-r+1;(0,s.arrayEach)(Array.from(new Array(a),(e,t)=>r+t),e=>{i.has(e)||i.add(e)})});const n=Array.from(i).sort((e,t)=>e-t);return(0,s.arrayReduce)(n,(e,t,o,i)=>(0!==o&&t===i[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===r||t===a)return[];const o=p(t,{createCellCoords:e._createCellCoords.bind(e),createCellRange:e._createCellRange.bind(e)}),i=new Set;(0,s.arrayEach)(e.getSelected(),e=>{const{from:t,to:n}=o(e),r=Math.max(t.row,0),a=n.row-r+1;(0,s.arrayEach)(Array.from(new Array(a),(e,t)=>r+t),e=>{i.has(e)||i.add(e)})});const n=Array.from(i).sort((e,t)=>e-t);return(0,s.arrayReduce)(n,(e,t,o,i)=>(0!==o&&t===i[o-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e),[])},o(52490),o(99356),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(81056);var i=o(13743),s=o(94576),n=o(7886);const r=t.SELECTION_TYPE_UNRECOGNIZED=0,a=t.SELECTION_TYPE_EMPTY=1,l=t.SELECTION_TYPE_ARRAY=2,h=t.SELECTION_TYPE_OBJECT=3,c=t.SELECTION_TYPES=[h,l],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),s=t===d;let n=r;if(o){const t=e[0];if(0===e.length)n=a;else if(s&&t instanceof i.CellRange)n=h;else if(s&&Array.isArray(t))n=f(t,g);else if(e.length>=2&&e.length<=4){!e.some((e,t)=>!u[t].includes(typeof e))&&(n=l)}}return n}function p(e){let{createCellCoords:t,createCellRange:o,keepDirection:i=!1,propToCol:s}=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(r){const a=e===h;let l=a?r.from.row:r[0],c=a?r.from.col:r[1],u=a?r.to.row:r[2],d=a?r.to.col:r[3];if("function"==typeof s&&("string"==typeof c&&(c=s(c)),"string"==typeof d&&(d=s(d))),(0,n.isUndefined)(u)&&(u=l),(0,n.isUndefined)(d)&&(d=c),!i){const e=l,t=c,o=u,i=d;l=Math.min(e,o),c=Math.min(t,i),u=Math.max(e,o),d=Math.max(t,i)}const g=a?r.highlight.clone():t(l,c),f=t(l,c),p=t(u,d);return o(g,f,p)}}},49463:(e,t,o)=>{"use strict";var i=o(12033),s=o(96858),n=o(98363).f,r=i("unscopables"),a=Array.prototype;void 0===a[r]&&n(a,r,{configurable:!0,value:s(null)}),e.exports=function(e){a[r][e]=!0}},49735:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(32813);const s=t.EDITOR_TYPE="time";class n extends i.TextEditor{static get EDITOR_TYPE(){return s}prepare(e,t,o,i,s,n){super.prepare(e,t,o,i,s,n),this.TEXTAREA.dir="ltr"}}t.TimeEditor=n},49819:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},49887:e=>{"use strict";e.exports=function(e){return null==e}},49974:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionUp",callback(e){const{selection:t}=e,{highlight:o}=e.getSelectedRangeActive();t.isSelectedByColumnHeader()||t.isSelectedByCorner()||!(o.isCell()||o.isHeader()&&t.isSelectedByRowHeader())||(t.markSource("keyboard"),t.transformEnd(-1,0),t.markEndSource())}}},50029:(e,t,o)=>{"use strict";t.__esModule=!0,t.compareFunctionFactory=function(e,t,o){const r=t.checkedTemplate,a=t.uncheckedTemplate,{sortEmptyCells:l}=o;return function(h,c){const u=(0,n.isEmpty)(h),d=(0,n.isEmpty)(c),g=u?a:h,f=d?a:c,p=g===a||g===r,m=f===a||f===r;if(!1===l){if(u&&!1===d)return i.FIRST_AFTER_SECOND;if(!1===u&&d)return i.FIRST_BEFORE_SECOND}return!1===p&&m?"asc"===e?i.FIRST_BEFORE_SECOND:i.FIRST_AFTER_SECOND:p&&!1===m?"asc"===e?i.FIRST_AFTER_SECOND:i.FIRST_BEFORE_SECOND:!1===p&&!1===m?(0,s.compareFunctionFactory)(e,t,o)(h,c):g===a&&f===r?"asc"===e?i.FIRST_BEFORE_SECOND:i.FIRST_AFTER_SECOND:g===r&&f===a?"asc"===e?i.FIRST_AFTER_SECOND:i.FIRST_BEFORE_SECOND:i.DO_NOT_SWAP}};var i=o(70705),s=o(3771),n=o(7886);t.COLUMN_DATA_TYPE="checkbox"},50095:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(32813),r=o(36062),a=o(78966),l=o(72609);const h=t.EDITOR_TYPE="password";class c extends n.TextEditor{constructor(){super(...arguments),(0,s.default)(this,"autoResize",(0,r.createInputElementResizer)(this.hot.rootDocument,{textContent:e=>"•".repeat(e.value.length)}))}static get EDITOR_TYPE(){return h}createElements(){super.createElements(),this.TEXTAREA=this.hot.rootDocument.createElement("input"),this.TEXTAREA.setAttribute("type","password"),this.TEXTAREA.setAttribute("data-hot-input",""),this.TEXTAREA.className="handsontableInput",this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,(0,a.empty)(this.TEXTAREA_PARENT),this.TEXTAREA.setAttribute(...(0,l.A11Y_TABINDEX)(-1)),this.TEXTAREA_PARENT.appendChild(this.TEXTAREA)}}t.PasswordEditor=c},50235:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){if(Array.isArray(e)&&Number.isInteger(t))return e[t];return e}},50236:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.default=function(e,t){var o,i,j=this;let z=arguments.length>2&&void 0!==arguments[2]&&arguments[2],G=this;const $=new h.default(G);let K,X,q,Q,J,Z,ee=!0;const te={...t.initialState,...t};(0,_.hasValidParameter)(z)&&(0,_.registerAsRootInstance)(this);this.rootContainer=e,this.rootWrapperElement=void 0,this.rootGridElement=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.rootGridElement=this.rootDocument.createElement("div"),this.rootPortalElement=this.rootDocument.createElement("div"),(0,s.addClass)(this.rootElement,["ht-wrapper","handsontable"]),(0,s.addClass)(this.rootWrapperElement,"ht-root-wrapper"),(0,s.addClass)(this.rootGridElement,"ht-grid"),this.rootGridElement.appendChild(this.rootElement),this.rootWrapperElement.appendChild(this.rootGridElement),this.rootContainer.appendChild(this.rootWrapperElement),(0,s.addClass)(this.rootPortalElement,"ht-portal"),this.rootDocument.body.appendChild(this.rootPortalElement));this.isDestroyed=!1,this.renderSuspendedCounter=0,this.executionSuspendedCounter=0;const oe=null!==(o=null==te?void 0:te.layoutDirection)&&void 0!==o?o:"inherit",ie=["rtl","ltr"].includes(oe)?oe:this.rootWindow.getComputedStyle(this.rootElement).direction;this.rootElement.setAttribute("dir",ie),null===(i=this.rootWrapperElement)||void 0===i||i.setAttribute("dir",ie),this.isRtl=function(){return"rtl"===ie},this.isLtr=function(){return!G.isRtl()},this.getDirectionFactor=function(){return G.isLtr()?1:-1},this.stylesHandler=new L.StylesHandler({rootElement:G.rootElement,rootDocument:G.rootDocument,onThemeChange:e=>{(0,_.isRootInstance)(this)&&((0,s.removeClass)(this.rootWrapperElement,/ht-theme-.*/g),(0,s.removeClass)(this.rootPortalElement,/ht-theme-.*/g),e&&((0,s.addClass)(this.rootWrapperElement,e),(0,s.addClass)(this.rootPortalElement,e),getComputedStyle(this.rootWrapperElement).getPropertyValue("--ht-line-height")||(0,V.warn)(`The "${e}" theme is enabled, but its stylesheets are missing or not imported correctly. Import the correct CSS files in order to use that theme.`)))}}),te.language=(0,I.getValidLanguageCode)(te.language);const se=Object.fromEntries(Object.entries(te).filter(e=>{let[t]=e;return!(M.Hooks.getSingleton().isRegistered(t)||M.Hooks.getSingleton().isDeprecated(t))})),ne=new N.MetaManager(G,se,[N.DynamicCellMetaMod,N.ExtendMetaPropertiesMod]),re=ne.getTableMeta(),ae=ne.getGlobalMeta(),le=(0,H.createUniqueMap)();this.container=this.rootDocument.createElement("div"),this.rootElement.insertBefore(this.container,this.rootElement.firstChild),this.guid=`ht_${(0,v.randomString)()}`,Y.set(this.guid,this),this.columnIndexMapper=new b.IndexMapper,this.rowIndexMapper=new b.IndexMapper,this.columnIndexMapper.addLocalHook("indexesSequenceChange",e=>{G.runHooks("afterColumnSequenceChange",e)}),this.rowIndexMapper.addLocalHook("indexesSequenceChange",e=>{G.runHooks("afterRowSequenceChange",e)}),$.addEventListener(this.rootDocument.documentElement,"compositionstart",e=>{G.runHooks("beforeCompositionStart",e)}),X=new E.default(G);const he=(0,f.staticRegister)(this.guid);he.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 ce=new A.Selection(re,{rowIndexMapper:G.rowIndexMapper,columnIndexMapper:G.columnIndexMapper,countCols:()=>G.countCols(),countRows:()=>G.countRows(),propToCol:e=>K.propToCol(e),isEditorOpened:()=>!!G.getActiveEditor()&&G.getActiveEditor().isOpened(),countRenderableColumns:()=>this.view.countRenderableColumns(),countRenderableRows:()=>this.view.countRenderableRows(),countRowHeaders:()=>this.countRowHeaders(),countColHeaders:()=>this.countColHeaders(),countRenderableRowsInRange:function(){return j.view.countRenderableRowsInRange(...arguments)},countRenderableColumnsInRange:function(){return j.view.countRenderableColumnsInRange(...arguments)},getShortcutManager:()=>G.getShortcutManager(),createCellCoords:(e,t)=>G._createCellCoords(e,t),createCellRange:(e,t,o)=>G._createCellRange(e,t,o),visualToRenderableCoords:e=>{const{row:t,col:o}=e;return G._createCellCoords(t>=0?G.rowIndexMapper.getRenderableFromVisualIndex(t):t,o>=0?G.columnIndexMapper.getRenderableFromVisualIndex(o):o)},renderableToVisualCoords:e=>{const{row:t,col:o}=e;return G._createCellCoords(t>=0?G.rowIndexMapper.getVisualFromRenderableIndex(t):t,o>=0?G.columnIndexMapper.getVisualFromRenderableIndex(o):o)},findFirstNonHiddenRenderableRow:(e,t)=>{const o=t>e?1:-1,i=Math.min(e,t),s=Math.max(e,t),n=G.rowIndexMapper.getNearestNotHiddenIndex(e,o);return null===n||1===o&&n>s||-1===o&&n<i?null:n>=0?G.rowIndexMapper.getRenderableFromVisualIndex(n):n},findFirstNonHiddenRenderableColumn:(e,t)=>{const o=t>e?1:-1,i=Math.min(e,t),s=Math.max(e,t),n=G.columnIndexMapper.getNearestNotHiddenIndex(e,o);return null===n||1===o&&n>s||-1===o&&n<i?null:n>=0?G.columnIndexMapper.getRenderableFromVisualIndex(n):n},isDisabledCellSelection:(e,t)=>e<0||t<0?G.getSettings().disableVisualSelection:G.getCellMeta(e,t).disableVisualSelection});this.selection=ce;const ue=e=>{let{hiddenIndexesChanged:t}=e;this.forceFullRender=!0,t&&this.selection.commit()};function de(e,t){const o="className"===e?G.rootElement:G.table;if(ee)(0,s.addClass)(o,t);else{let i=[],n=[];ae[e]&&(i=Array.isArray(ae[e])?ae[e]:(0,d.stringToArray)(ae[e])),t&&(n=Array.isArray(t)?t:(0,d.stringToArray)(t));const r=(0,d.getDifferenceOfArrays)(i,n),a=(0,d.getDifferenceOfArrays)(n,i);r.length&&(0,s.removeClass)(o,r),a.length&&(0,s.addClass)(o,a)}ae[e]=t}function ge(){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 fe(e,t,o){if(!e.length)return void o();const i=G.getActiveEditor(),s=new ge;let n=!0;s.onQueueEmpty=()=>{i&&n&&i.cancelChanges(),o()};for(let o=e.length-1;o>=0;o--){const[i,r,,a]=e[o],l=K.propToCol(r);let h;h=Number.isInteger(l)?G.getCellMeta(i,l):{...Object.getPrototypeOf(re),...re},G.getCellValidator(h)&&(s.addValidatorToQueue(),G.validateCell(a,h,function(t,o){return function(i){if("boolean"!=typeof i)throw new Error("Validation error: result is not boolean");!1===i&&!1===o.allowInvalid&&(n=!1,e.splice(t,1),o.valid=!0),s.removeValidatorFormQueue()}}(o,h),t))}s.checkIfQueueIsEmpty()}function pe(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(re.allowInsertRow)for(;e[t][0]>G.countRows()-1;){const{delta:e}=K.createRow(void 0,void 0,{source:"auto"});if(0===e){o=!0;break}}if("array"===G.dataType&&(!re.columns||0===re.columns.length)&&re.allowInsertColumn)for(;K.propToCol(e[t][1])>G.countCols()-1;){const{delta:e}=K.createCol(void 0,void 0,{source:"auto"});if(0===e){o=!0;break}}o||K.set(e[t][0],e[t][1],e[t][3])}}else e.splice(t,1)}if(e.length>0){q.adjustRowsAndCols(),G.runHooks("beforeChangeRender",e,t),Q.closeEditor(),G.view.adjustElementsSize(),G.render(),Q.prepareEditor(),G.runHooks("afterChange",e,t||"edit");const o=G.getActiveEditor();o&&(0,r.isDefined)(o.refreshValue)&&o.refreshValue()}else G.render()}function me(e,t,o){return Array.isArray(e)?e:[[e,t,o]]}function we(e,t){const o=G.runHooks("beforeChange",e,t||"edit"),i=e.filter(e=>null!==e);var s;if(!1===o||0===i.length)return null===(s=G.getActiveEditor())||void 0===s||s.cancelChanges(),[];for(let e=i.length-1;e>=0;e--){const[t,o,,s]=i[e],n=K.propToCol(o);let r;r=Number.isInteger(n)?G.getCellMeta(t,n):{...Object.getPrototypeOf(re),...re},i[e][3]=(0,B.getValueSetterValue)(s,r)}return i}this.columnIndexMapper.addLocalHook("cacheUpdated",ue),this.rowIndexMapper.addLocalHook("cacheUpdated",ue),this.selection.addLocalHook("afterSetRangeEnd",(e,t)=>{const o=(0,c.createObjectPropListener)(!1),i=this.selection.getSelectedRange(),{from:n,to:r}=i.current(),a=i.size()-1;this.runHooks("afterSelection",n.row,n.col,r.row,r.col,o,a),this.runHooks("afterSelectionByProp",n.row,G.colToProp(n.col),r.row,G.colToProp(r.col),o,a),t&&(!o.isTouched()||o.isTouched()&&!o.value)&&Z.scrollTo(e);const l=ce.isSelectedByRowHeader(),h=ce.isSelectedByColumnHeader();l&&h?(0,s.addClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]):l?((0,s.removeClass)(this.rootElement,"ht__selection--columns"),(0,s.addClass)(this.rootElement,"ht__selection--rows")):h?((0,s.removeClass)(this.rootElement,"ht__selection--rows"),(0,s.addClass)(this.rootElement,"ht__selection--columns")):(0,s.removeClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]),["shift","refresh"].includes(ce.getSelectionSource())||Q.closeEditor(null),"refresh"!==ce.getSelectionSource()&&(G.view.render(),Q.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)&&Z.scrollTo(e),Q.closeEditor(),G.view.render(),Q.prepareEditor()}),this.selection.addLocalHook("afterSelectionFinished",e=>{const t=e.length-1,{from:o,to:i}=e[t];this.runHooks("afterSelectionEnd",o.row,o.col,i.row,i.col,t),this.runHooks("afterSelectionEndByProp",o.row,G.colToProp(o.col),i.row,G.colToProp(i.col),t),"refresh"===ce.getSelectionSource()&&(G.view.render(),Q.prepareEditor())}),this.selection.addLocalHook("afterIsMultipleSelection",e=>{const t=this.runHooks("afterIsMultipleSelection",e.value);e.value&&(e.value=t)}),this.selection.addLocalHook("afterDeselect",()=>{Q.closeEditor(),G.view.render(),(0,s.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 j.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 j.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 j.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 j.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 j.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 j.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 j.runHooks("afterSelectRows",...t)}).addLocalHook("beforeSelectAll",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return j.runHooks("beforeSelectAll",...t)}).addLocalHook("afterSelectAll",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return j.runHooks("afterSelectAll",...t)}).addLocalHook("beforeModifyTransformStart",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return j.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 j.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 j.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 j.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 j.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 j.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 j.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 j.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")),q={alter(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;const n=e=>{if(0===e.length)return[];const t=[...e];t.sort((e,t)=>{let[o]=e,[i]=t;return o===i?0:o>i?1:-1});return(0,d.arrayReduce)(t,(e,t)=>{let[o,i]=t;const s=e[e.length-1],[n,r]=s,a=n+r;if(o<=a){const e=Math.max(i-(a-o),0);s[1]+=e}else e.push([o,i]);return e},[t[0]])};switch(e){case"insert_row_below":case"insert_row_above":const s=G.countSourceRows();if(re.maxRows===s)return;const a="insert_row_below"===e?"below":"above";t=null!=t?t:"below"===a?s:0;const{delta:l,startPhysicalIndex:h}=K.createRow(t,o,{source:i,mode:a});ce.shiftRows(G.toVisualRow(h),l);break;case"insert_col_start":case"insert_col_end":const c="insert_col_end"===e?"end":"start";t=null!=t?t:"end"===c?G.countSourceCols():0;const{delta:u,startPhysicalIndex:g}=K.createCol(t,o,{source:i,mode:c});if(u){if(Array.isArray(re.colHeaders)){const e=[G.toVisualColumn(g),0];e.length+=u,Array.prototype.splice.apply(re.colHeaders,e)}ce.shiftColumns(G.toVisualColumn(g),u)}break;case"remove_row":const f=e=>{let t=0;(0,d.arrayEach)(e,e=>{let[o,s]=e;const n=(0,r.isEmpty)(o)?G.countRows()-1:Math.max(o-t,0);Number.isInteger(o)&&(o=Math.max(o-t,0));if(!K.removeRow(o,s,i))return;if(ce.isSelected()){const{row:e}=G.getSelectedRangeActive().highlight;e>=o&&e<=o+s-1&&Q.closeEditor(!0)}const a=G.countRows(),l=re.fixedRowsTop;l>=n+1&&(re.fixedRowsTop-=Math.min(s,l-n));const h=re.fixedRowsBottom;if(h&&n>=a-h&&(re.fixedRowsBottom-=Math.min(s,h)),0===a)ce.deselect();else if("ContextMenu.removeRow"===i){const e=ce.getSelectedRange(),t=e.pop();e.clear().set(t.from).current().setTo(t.to),ce.refresh()}else ce.shiftRows(o,-s);t+=s})};Array.isArray(t)?f(n(t)):f([[t,o]]);break;case"remove_col":const p=e=>{let t=0;(0,d.arrayEach)(e,e=>{let[o,s]=e;const n=(0,r.isEmpty)(o)?G.countCols()-1:Math.max(o-t,0);let a=G.toPhysicalColumn(n);Number.isInteger(o)&&(o=Math.max(o-t,0));if(!K.removeCol(o,s,i))return;if(ce.isSelected()){const{col:e}=G.getSelectedRangeActive().highlight;e>=o&&e<=o+s-1&&Q.closeEditor(!0)}if(0===G.countCols())ce.deselect();else if("ContextMenu.removeColumn"===i){const e=ce.getSelectedRange(),t=e.pop();e.clear().set(t.from).current().setTo(t.to),ce.refresh()}else ce.shiftColumns(o,-s);const l=re.fixedColumnsStart;l>=n+1&&(re.fixedColumnsStart-=Math.min(s,l-n)),Array.isArray(re.colHeaders)&&(void 0===a&&(a=-1),re.colHeaders.splice(a,s)),t+=s})};Array.isArray(t)?p(n(t)):p([[t,o]]);break;default:throw new Error(`There is no such action "${e}"`)}s||q.adjustRowsAndCols(),G.view.adjustElementsSize(),G.view.render()},adjustRowsAndCols(){const e=re.minRows,t=re.minSpareRows,o=re.minCols,i=re.minSpareCols;if(e){const t=G.countRows();t<e&&K.createRow(t,e-t,{source:"auto"})}if(t){const e=G.countEmptyRows(!0);if(e<t){const o=t-e,i=Math.min(o,re.maxRows-G.countSourceRows());K.createRow(G.countRows(),i,{source:"auto"})}}{let e;(o||i)&&(e=G.countEmptyCols(!0));let t=G.countCols();if(o&&!re.columns&&t<o){const i=o-t;e+=i,K.createCol(t,i,{source:"auto"})}if(i&&!re.columns&&"array"===G.dataType&&e<i){t=G.countCols();const o=i-e,s=Math.min(o,re.maxCols-t);K.createCol(t,s,{source:"auto"})}}},populateFromArray(e,t,o,i,s){let n,r,a,l;const h=[],u={},g=[],f=e.row,p=e.col;if(r=t.length,0===r)return!1;let m=0,w=0;switch((0,c.isObject)(o)&&(m=o.col-p+1,w=o.row-f+1),s){case"shift_down":const s=(0,d.pivot)(t),v=s.length,y=Math.max(v,m),S=G.getData().slice(f),E=(0,d.pivot)(S).slice(p,p+y);for(a=0;a<y;a+=1)if(a<v){for(n=0,r=s[a].length;n<w-r;n+=1)s[a].push(s[a][n%r]);a<E.length?g.push(s[a].concat(E[a])):g.push(s[a].concat(new Array(S.length).fill(null)))}else g.push(s[a%v].concat(E[a]));G.populateFromArray(f,p,(0,d.pivot)(g));break;case"shift_right":const R=t.length,b=Math.max(R,w),_=G.getData().slice(f).map(e=>e.slice(p));for(n=0;n<b;n+=1)if(n<R){for(a=0,l=t[n].length;a<m-l;a+=1)t[n].push(t[n][a%l]);if(n<_.length)for(let e=0;e<_[n].length;e+=1)t[n].push(_[n][e]);else t[n].push(...new Array(_[0].length).fill(null))}else t.push(t[n%r].slice(0,b).concat(_[n]));G.populateFromArray(f,p,t);break;default:u.row=e.row,u.col=e.col;let T,M=0,I=0,O=!0;const A=function(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const i=t[e%t.length];return null!==o?i[o%i.length]:i},N=t.length,P=o?o.row-e.row+1:0;for(r=o?P:Math.max(N,P),n=0;n<r&&!(o&&u.row>o.row&&P>N||!re.allowInsertRow&&u.row>G.countRows()-1||u.row>=re.maxRows);n++){const t=n-M,s=A(t).length,d=o?o.col-e.col+1:0;if(l=o?d:Math.max(s,d),u.col=e.col,T=G.getCellMeta(u.row,u.col),"CopyPaste.paste"!==i&&"Autofill.fill"!==i||!T.skipRowOnPaste){for(I=0,a=0;a<l;a++){var C;if(o&&u.col>o.col&&d>s||!re.allowInsertColumn&&u.col>G.countCols()-1||u.col>=re.maxCols)break;if(T=G.getCellMeta(u.row,u.col),("CopyPaste.paste"===i||"Autofill.fill"===i)&&T.skipColumnOnPaste){I+=1,u.col+=1,l+=1;continue}if(T.readOnly&&"UndoRedo.undo"!==i){u.col+=1;continue}const e=a-I,n=!!T.valueSetter;let r=A(t,e),g=null!==(C=G.getSourceDataAtCell(u.row,u.col))&&void 0!==C?C:null;if(null!==r&&"object"==typeof r)if(Array.isArray(r)&&null===g&&(g=[]),n||"object"==typeof g&&null!==g){if(null!==g){const e=(0,c.duckSchema)(Array.isArray(g)?g:g[0]||g),t=(0,c.duckSchema)(Array.isArray(r)?r:r[0]||r);n||(0,c.isObjectEqual)(e,t)||Array.isArray(e)&&Array.isArray(t)?r=(0,c.deepClone)(r):O=!1}}else O=!1;else n||null===g||"object"!=typeof g||(O=!1);O&&h.push([u.row,u.col,r]),O=!0,u.col+=1}u.row+=1}else M+=1,u.row+=1,r+=1}G.setDataAtCell(h,null,null,i||"populateFromArray")}}},this.init=function(){X.setData(re.data),G.runHooks("beforeInit"),((0,a.isMobileBrowser)()||(0,a.isIpadOS)())&&(0,s.addClass)(G.rootElement,"mobile"),this.updateSettings(te,!0),this.view=new S.default(this),Q=l.default.getInstance(G,re,ce),Z=(0,P.createViewportScroller)(G),J=new u.FocusManager(G),(0,_.isRootInstance)(this)&&((0,P.installFocusCatcher)(G),(0,F.install)(G.rootPortalElement),(0,r._injectProductInfo)(te.licenseKey,this.rootWrapperElement)),G.runHooks("init"),this.render(),ee&&null===G.rootElement.offsetParent&&(0,s.observeVisibilityChangeOnce)(G.rootElement,()=>{G.view._wt.wtOverlays.updateLastSpreaderSize(),G.view.adjustElementsSize(),G.render()}),"object"==typeof ee&&(G.runHooks("afterChange",ee[0],ee[1]),ee=!1),G.runHooks("afterInit")},this._createCellCoords=function(e,t){return G.view._wt.createCellCoords(e,t)},this._createCellRange=function(e,t,o){return G.view._wt.createCellRange(e,t,o)},this.validateCell=function(e,t,o,i){let s=G.getCellValidator(t);function a(e){if(!(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])||!0===t.hidden)return void o(e);const i=t.visualCol,s=t.visualRow,n=G.getCell(s,i,!0);if(n&&"TH"!==n.nodeName){const e=G.rowIndexMapper.getRenderableFromVisualIndex(s),t=G.columnIndexMapper.getRenderableFromVisualIndex(i);G.view._wt.getSetting("cellRenderer",e,t,n)}o(e)}var l;(0,r.isRegExp)(s)&&(l=s,s=function(e,t){t(l.test(e))}),(0,n.isFunction)(s)?(e=G.runHooks("beforeValidate",e,t.visualRow,t.prop,i),G._registerImmediate(()=>{s.call(t,e,o=>{G&&(o=G.runHooks("afterValidate",o,e,t.visualRow,t.prop,i),t.valid=o,a(o),G.runHooks("postAfterValidate",o,e,t.visualRow,t.prop,i))})})):G._registerImmediate(()=>{t.valid=!0,a(t.valid,!1)})},this.setDataAtCell=function(e,t,o,i){const s=me(e,t,o),n=[];let r,a,l,h=i;for(r=0,a=s.length;r<a;r++){const[e,t,o]=s[r];if("object"!=typeof s[r])throw new Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof t)throw new Error("Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`");l=t>=this.countCols()?t:K.colToProp(t),n.push([e,l,X.getAtCell(this.toPhysicalRow(e),t),o])}h||"object"!=typeof e||(h=t);const c=we(n,h);G.runHooks("afterSetDataAtCell",c,h),fe(c,h,()=>{pe(c,h)})},this.setDataAtRowProp=function(e,t,o,i){const s=me(e,t,o),n=[];let r,a,l=i;for(r=0,a=s.length;r<a;r++){const[e,t,o]=s[r];n.push([e,t,X.getAtCell(this.toPhysicalRow(e),t),o])}l||"object"!=typeof e||(l=t);const h=we(n,i);G.runHooks("afterSetDataAtRowProp",h,l),fe(h,l,()=>{pe(h,l)})},this.listen=function(){G&&!G.isListening()&&(Y.forEach(e=>{G!==e&&e.unlisten()}),U=G.guid,G.runHooks("afterListen"))},this.unlisten=function(){this.isListening()&&(U=null,G.runHooks("afterUnlisten"))},this.isListening=function(){return U===G.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];Q.closeEditor(e),G.view.render(),t&&ce.isSelected()&&Q.prepareEditor()},this.populateFromArray=function(e,t,o,i,s,n,r){if("object"!=typeof o||"object"!=typeof o[0])throw new Error("populateFromArray parameter `input` must be an array of arrays");const a="number"==typeof i?G._createCellCoords(i,s):null;return q.populateFromArray(G._createCellCoords(e,t),o,a,n,r)},this.spliceCol=function(e,t,o){for(var i=arguments.length,s=new Array(i>3?i-3:0),n=3;n<i;n++)s[n-3]=arguments[n];return K.spliceCol(e,t,o,...s)},this.spliceRow=function(e,t,o){for(var i=arguments.length,s=new Array(i>3?i-3:0),n=3;n<i;n++)s[n-3]=arguments[n];return K.spliceRow(e,t,o,...s)},this.getSelected=function(){if(ce.isSelected())return(0,d.arrayMap)(ce.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.getSelectedActive=function(){const e=this.getSelectedRangeActive();if(!e)return;const{from:t,to:o}=e;return[t.row,t.col,o.row,o.col]},this.getSelectedRange=function(){if(ce.isSelected())return Array.from(ce.getSelectedRange())},this.getSelectedRangeLast=function(){const e=this.getSelectedRange();let t;return e&&e.length>0&&(t=e[e.length-1]),t},this.getSelectedRangeActive=function(){return ce.getActiveSelectedRange()},this.getActiveSelectionLayerIndex=function(){return ce.getActiveSelectionLayerIndex()},this.emptySelectedCells=function(e){if(!ce.isSelected()||0===this.countRows()||0===this.countCols())return;const t=[];(0,d.arrayEach)(ce.getSelectedRange(),e=>{if(e.isSingleHeader())return;const o=e.getTopStartCorner(),i=e.getBottomEndCorner();(0,y.rangeEach)(o.row,i.row,e=>{(0,y.rangeEach)(o.col,i.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||G.view.render()},this.render=function(){this.view&&(this.forceFullRender=!0,this.isRenderSuspended()||G.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(!G.view)return;const e=G.view,{width:t,height:o}=e.getLastSize(),{width:i,height:s}=G.rootElement.getBoundingClientRect(),n=i!==t||s!==o;!1===G.runHooks("beforeRefreshDimensions",{width:t,height:o},{width:i,height:s},n)||((n||e._wt.wtOverlays.scrollableElement===G.rootWindow)&&(e.setLastSize(i,s),e.adjustElementsSize(),G.render()),G.runHooks("afterRefreshDimensions",{width:t,height:o},{width:i,height:s},n))},this.updateData=function(e,t){(0,N.replaceData)(e,e=>{K=e},e=>{K=e,G.columnIndexMapper.fitToLength(this.getInitialColumnCount()),G.rowIndexMapper.fitToLength(this.countSourceRows()),q.adjustRowsAndCols(),ce.refresh()},{hotInstance:G,dataMap:K,dataSource:X,internalSource:"updateData",source:t,metaManager:ne,firstRun:ee})},this.loadData=function(e,t){(0,N.replaceData)(e,e=>{K=e},()=>{ne.clearCellsCache(),G.initIndexMappers(),q.adjustRowsAndCols(),ce.refresh(),ee&&(ee=[null,"loadData"])},{hotInstance:G,dataMap:K,dataSource:X,internalSource:"loadData",source:t,metaManager:ne,firstRun:ee})},this.getInitialColumnCount=function(){const e=re.columns;let t=0;if(Array.isArray(e))t=e.length;else if((0,n.isFunction)(e))if("array"===G.dataType){const o=this.countSourceCols();for(let i=0;i<o;i+=1)e(i)&&(t+=1)}else"object"!==G.dataType&&"function"!==G.dataType||(t=K.colToPropCache.length);else if((0,r.isDefined)(re.dataSchema)){const e=K.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,i){return(0,r.isUndefined)(e)?K.getAll():K.getRange(G._createCellCoords(e,t),G._createCellCoords(o,i),K.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,o,i){return K.getCopyableText(G._createCellCoords(e,t),G._createCellCoords(o,i))},this.getCopyableData=function(e,t){return K.getCopyable(e,K.colToProp(t))},this.getCopyableSourceData=function(e,t){return X.getCopyable(e,K.colToProp(t))},this.getSchema=function(){return K.getSchema()},this.updateSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=(ee?G.loadData:G.updateData).bind(this);let i,s,a=!1;if((0,r.isDefined)(e.rows))throw new Error('The "rows" setting is no longer supported. Do you mean startRows, minRows or maxRows?');if((0,r.isDefined)(e.cols))throw new Error('The "cols" setting is no longer supported. Do you mean startCols, minCols or maxCols?');if((0,r.isDefined)(e.ganttChart))throw new Error('Since 8.0.0 the "ganttChart" setting is no longer supported.');for(i in e)if("data"===i||"language"===i);else if("className"===i)de("className",e.className);else if("tableClassName"===i&&G.table)de("tableClassName",e.tableClassName),G.view._wt.wtOverlays.syncOverlayTableClassNames();else if(M.Hooks.getSingleton().isRegistered(i)||M.Hooks.getSingleton().isDeprecated(i)){const t=e[i];(0,n.isFunction)(t)?(M.Hooks.getSingleton().addAsFixed(i,t,G),re[i]=t):Array.isArray(t)&&(M.Hooks.getSingleton().add(i,t,G),re[i]=t)}else!t&&(0,c.hasOwnProperty)(e,i)&&(ae[i]=e[i]);if(t)G.useTheme(re.themeName||(0,D.getThemeClassName)(G.rootContainer));else{const t=G.getCurrentThemeName();(0,c.hasOwnProperty)(e,"themeName")&&t!==e.themeName&&G.useTheme(e.themeName)}(0,_.isRootInstance)(G)&&G.stylesHandler.isClassicTheme()&&(0,V.deprecatedWarn)("Handsontable classic theme is a legacy theme and will be removed in version 17.0. Please update your theme settings to ensure compatibility with future versions."),void 0===e.data&&void 0===re.data?o(null,"updateSettings"):void 0!==e.data?o(e.data,"updateSettings"):void 0!==e.columns&&(K.createMap(),G.initIndexMappers()),!ee&&e.language&&function(e){const t=(0,O.normalizeLanguageCode)(e);(0,I.hasLanguageDictionary)(t)?(G.runHooks("beforeLanguageChange",t),ae.language=t,G.runHooks("afterLanguageChange",t)):(0,O.warnUserAboutLanguageRegistration)(e)}(e.language);const l=G.countCols(),h=re.columns;if(h&&(0,n.isFunction)(h)&&(a=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||ne.clearCache(),l>0)for(i=0,s=0;i<l;i++){if(h){const e=a?h(i):h[s];e&&ne.updateColumnMeta(s,e)}s+=1}(0,r.isDefined)(e.cell)&&(0,c.objectEach)(e.cell,e=>{G.setCellMetaObject(e.row,e.col,e)}),G.runHooks("afterCellMetaReset");let u=G.rootElement.style.height;if(""!==u&&(u=parseInt(G.rootElement.style.height,10)),t){G.rootElement.getAttribute("style")&&G.rootElement.setAttribute("data-initialstyle",G.rootElement.getAttribute("style"))}let d=e.height;if(void 0!==e.height)if((0,n.isFunction)(d)&&(d=d()),d=G.runHooks("beforeHeightChange",d),null===d){const e=G.rootElement.getAttribute("data-initialstyle");e&&(e.indexOf("height")>-1||e.indexOf("overflow")>-1)?G.rootElement.setAttribute("style",e):(G.rootElement.style.height="",G.rootElement.style.overflow="")}else void 0!==d&&(G.rootElement.style.height=isNaN(d)?`${d}`:`${d}px`,G.rootElement.style.overflow="hidden");if(void 0!==e.width){let t=e.width;(0,n.isFunction)(t)&&(t=t()),t=G.runHooks("beforeWidthChange",t),G.rootElement.style.width=isNaN(t)?`${t}`:`${t}px`}t||(G.view&&(G.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked(),G.view._wt.exportSettingsAsClassNames()),G.runHooks("afterUpdateSettings",e)),q.adjustRowsAndCols(),G.view&&!ee&&(G.render(),G.view._wt.wtOverlays.adjustElementsSize()),t||!G.view||""!==u&&""!==d&&void 0!==d||u===d||G.view._wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){const e=G.getSelectedRangeActive();if(re.getValue){if((0,n.isFunction)(re.getValue))return re.getValue.call(G);if(e)return G.getData()[e.highlight.row][re.getValue]}else if(e)return G.getDataAtCell(e.highlight.row,e.highlight.col);return null},this.getSettings=function(){return re},this.clear=function(){this.selectAll(),this.emptySelectedCells()},this.alter=function(e,t,o,i,s){q.alter(e,t,o,i,s)},this.getCell=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t,s=e;if(t>=0){if(this.columnIndexMapper.isHidden(this.toPhysicalColumn(t)))return null;i=this.columnIndexMapper.getRenderableFromVisualIndex(t)}if(e>=0){if(this.rowIndexMapper.isHidden(this.toPhysicalRow(e)))return null;s=this.rowIndexMapper.getRenderableFromVisualIndex(e)}return null===s||null===i||void 0===s||void 0===i?null:G.view.getCellAtCoords(G._createCellCoords(s,i),o)},this.getCoords=function(e){const t=this.view._wt.wtTable.getCoords(e);if(null===t)return null;const{row:o,col:i}=t;let s=o,n=i;return o>=0&&(s=this.rowIndexMapper.getVisualFromRenderableIndex(o)),i>=0&&(n=this.columnIndexMapper.getVisualFromRenderableIndex(i)),G._createCellCoords(s,n)},this.colToProp=function(e){return K.colToProp(e)},this.propToCol=function(e){return K.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 K.get(e,K.colToProp(t))},this.getDataAtRowProp=function(e,t){return K.get(e,t)},this.getDataAtCol=function(e){const t=[],o=K.getRange(G._createCellCoords(0,e),G._createCellCoords(re.data.length-1,e),K.DESTINATION_RENDERER);for(let e=0;e<o.length;e+=1)for(let i=0;i<o[e].length;i+=1)t.push(o[e][i]);return t},this.getDataAtProp=function(e){const t=[],o=K.getRange(G._createCellCoords(0,K.propToCol(e)),G._createCellCoords(re.data.length-1,K.propToCol(e)),K.DESTINATION_RENDERER);for(let e=0;e<o.length;e+=1)for(let i=0;i<o[e].length;i+=1)t.push(o[e][i]);return t},this.getSourceData=function(e,t,o,i){let s;return s=void 0===e?X.getData():X.getByRange(G._createCellCoords(e,t),G._createCellCoords(o,i)),s},this.getSourceDataArray=function(e,t,o,i){let s;return s=void 0===e?X.getData(!0):X.getByRange(G._createCellCoords(e,t),G._createCellCoords(o,i),!0),s},this.getSourceDataAtCol=function(e){return X.getAtColumn(e)},this.setSourceDataAtCell=function(e,t,o,i){const s=me(e,t,o),n=this.hasHook("afterSetSourceDataAtCell"),a=[],l=(e,t)=>{const o=this.toVisualRow(e),i=this.toVisualColumn(t);return Number.isInteger(i)?this.getCellMeta(o,i):{...Object.getPrototypeOf(re),...re}};n&&(0,d.arrayEach)(s,e=>{let[t,o,i]=e;const s=(0,B.getValueSetterValue)(i,l(t,o));a.push([t,o,X.getAtCell(t,o),s])}),(0,d.arrayEach)(s,e=>{let[t,o,i]=e;const s=(0,B.getValueSetterValue)(i,l(t,o));X.setAtCell(t,o,s)}),n&&this.runHooks("afterSetSourceDataAtCell",a,i),this.render();const h=G.getActiveEditor();h&&(0,r.isDefined)(h.refreshValue)&&h.refreshValue()},this.getSourceDataAtRow=function(e){return X.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return X.getAtCell(e,t)},this.getDataAtRow=function(e){return K.getRange(G._createCellCoords(e,0),G._createCellCoords(e,this.countCols()-1),K.DESTINATION_RENDERER)[0]||[]},this.getDataType=function(e,t,o,i){const s=void 0===e?[0,0,this.countRows(),this.countCols()]:[e,t,o,i],[n,r]=s;let[,,a,l]=s,h=null,c=null;void 0===a&&(a=n),void 0===l&&(l=r);let u="mixed";return(0,y.rangeEach)(Math.max(Math.min(n,a),0),Math.max(n,a),e=>{let t=!0;return(0,y.rangeEach)(Math.max(Math.min(r,l),0),Math.max(r,l),o=>{const i=this.getCellMeta(e,o);return c=i.type,h?t=h===c:h=c,t}),u=t?c:"mixed",t}),u},this.removeCellMeta=function(e,t,o){const[i,s]=[this.toPhysicalRow(e),this.toPhysicalColumn(t)];let n=ne.getCellMetaKeyValue(i,s,o);!1!==G.runHooks("beforeRemoveCellMeta",e,t,o,n)&&(ne.removeCellMeta(i,s,o),G.runHooks("afterRemoveCellMeta",e,t,o,n)),n=null},this.spliceCellsMeta=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(var o=arguments.length,i=new Array(o>2?o-2:0),s=2;s<o;s++)i[s-2]=arguments[s];if(i.length>0&&!Array.isArray(i[0]))throw new Error("The 3rd argument (cellMetaRows) has to be passed as an array of cell meta objects array.");t>0&&ne.removeRow(this.toPhysicalRow(e),t),i.length>0&&(0,d.arrayEach)(i.reverse(),t=>{ne.createRow(this.toPhysicalRow(e)),(0,d.arrayEach)(t,(t,o)=>this.setCellMetaObject(e,o,t))}),G.render()},this.setCellMetaObject=function(e,t,o){"object"==typeof o&&(0,c.objectEach)(o,(o,i)=>{this.setCellMeta(e,t,i,o)})},this.setCellMeta=function(e,t,o,i){if(!1===G.runHooks("beforeSetCellMeta",e,t,o,i))return;let s=e,n=t;e<this.countRows()&&(s=this.toPhysicalRow(e)),t<this.countCols()&&(n=this.toPhysicalColumn(t)),ne.setCellMeta(s,n,o,i),G.runHooks("afterSetCellMeta",e,t,o,i)},this.getCellsMeta=function(){return ne.getCellsMeta()},this.getCellMeta=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{skipMetaExtension:!1},i=this.toPhysicalRow(e),s=this.toPhysicalColumn(t);return null===i&&(i=e),null===s&&(s=t),ne.getCellMeta(i,s,{visualRow:e,visualColumn:t,...o})},this.getColumnMeta=function(e){return ne.getColumnMeta(this.toPhysicalColumn(e))},this.getCellMetaAtRow=function(e){return ne.getCellsMetaAtRow(e)},this.isColumnModificationAllowed=function(){return!("object"===G.dataType||re.columns)},this.getCellRenderer=function(e,t){const o="number"==typeof e?G.getCellMeta(e,t).renderer:e.renderer;return"string"==typeof o?(0,m.getRenderer)(o):(0,r.isUndefined)(o)?(0,m.getRenderer)("text"):o},this.getCellEditor=function(e,t){const o="number"==typeof e?G.getCellMeta(e,t).editor:e.editor;return"string"==typeof o?(0,w.getEditor)(o):(0,r.isUndefined)(o)?(0,w.getEditor)("text"):o},this.getCellValidator=function(e,t){const o="number"==typeof e?G.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 i=new ge;e&&(i.onQueueEmpty=e);let s=G.countRows()-1;for(;s>=0;){if(void 0!==t&&-1===t.indexOf(s)){s-=1;continue}let e=G.countCols()-1;for(;e>=0;)void 0===o||-1!==o.indexOf(e)?(i.addValidatorToQueue(),G.validateCell(G.getDataAtCell(s,e),G.getCellMeta(s,e),e=>{if("boolean"!=typeof e)throw new Error("Validation error: result is not boolean");!1===e&&(i.valid=!1),i.removeValidatorFormQueue()},"validateCells"),e-=1):e-=1;s-=1}i.checkIfQueueIsEmpty()},this.getRowHeader=function(e){let t=re.rowHeaders,o=e;return void 0!==o&&(o=G.runHooks("modifyRowHeader",o)),void 0===o?(t=[],(0,y.rangeEach)(G.countRows()-1,e=>{t.push(G.getRowHeader(e))})):Array.isArray(t)&&void 0!==t[o]?t=t[o]:(0,n.isFunction)(t)?t=t(o):t&&"string"!=typeof t&&"number"!=typeof t&&(t=o+1),t},this.hasRowHeaders=function(){return!!re.rowHeaders},this.hasColHeaders=function(){if(void 0!==re.colHeaders&&null!==re.colHeaders)return!!re.colHeaders;for(let e=0,t=G.countCols();e<t;e++)if(G.getColHeader(e))return!0;return!1},this.getColHeader=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const o=G.runHooks("modifyColHeader",e);if(void 0===o){const e=[],t=G.countCols();for(let o=0;o<t;o++)e.push(G.getColHeader(o));return e}let i=re.colHeaders;const s=G.toPhysicalColumn(o),r=function(e){const t=[],o=G.countCols();let i=0;for(;i<o;i++)(0,n.isFunction)(re.columns)&&re.columns(i)&&t.push(i);return t[e]}(s);return!1===re.colHeaders?i=null:re.columns&&(0,n.isFunction)(re.columns)&&re.columns(r)&&re.columns(r).title?i=re.columns(r).title:re.columns&&re.columns[s]&&re.columns[s].title?i=re.columns[s].title:Array.isArray(re.colHeaders)&&void 0!==re.colHeaders[s]?i=re.colHeaders[s]:(0,n.isFunction)(re.colHeaders)?i=re.colHeaders(s):re.colHeaders&&"string"!=typeof re.colHeaders&&"number"!=typeof re.colHeaders&&(i=(0,R.spreadsheetColumnLabel)(o)),i=G.runHooks("modifyColumnHeaderValue",i,e,t),i},this._getColWidthFromSettings=function(e){let t;if(e>=0){t=G.getCellMeta(0,e).width}if(void 0!==t&&t!==re.width||(t=re.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=G._getColWidthFromSettings(e);return o=G.runHooks("modifyColWidth",o,e,t),void 0===o&&(o=T.DEFAULT_COLUMN_WIDTH),o},this._getRowHeightFromSettings=function(e){const t=G.stylesHandler.getDefaultRowHeight();let o=re.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=G._getRowHeightFromSettings(e);return o=G.runHooks("modifyRowHeight",o,e,t),o},this.countSourceRows=function(){return X.countRows()},this.countSourceCols=function(){return X.countFirstRowKeys()},this.countRows=function(){return K.getLength()},this.countCols=function(){const e=re.maxCols,t=this.columnIndexMapper.getNotTrimmedIndexesLength();return Math.min(e,t)},this.countRenderedRows=function(){return G.view._wt.drawn?G.view._wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return G.view._wt.drawn?G.view._wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return G.view._wt.drawn?G.view._wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return G.view._wt.drawn?G.view._wt.wtTable.getVisibleColumnsCount():-1},this.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)(G.countRows()-1,o=>{if(G.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)(G.countCols()-1,o=>{if(G.isEmptyCol(o))t+=1;else if(!0===e)return!1}),t},this.isEmptyRow=function(e){return re.isEmptyRow.call(G,e)},this.isEmptyCol=function(e){return re.isEmptyCol.call(G,e)},this.selectCell=function(e,t,o,i){let s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],n=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return!(0,r.isUndefined)(e)&&!(0,r.isUndefined)(t)&&this.selectCells([[e,t,o,i]],s,n)},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])&&Z.suspend();const o=ce.selectCells(e);return o&&t&&G.listen(),Z.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 ce.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 ce.selectRows(e,t,o)},this.deselectCell=function(){ce.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;Z.skipNextScrollCycle(),ce.selectAll(e,t,o)};const Ce=(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:i,col:s,considerHiddenIndexes:r}=null!=e?e:{};let a=i,l=s;if((0,n.isFunction)(t)&&this.addHookOnce("afterScroll",t),void 0===r||r){const e=Number.isInteger(i)&&i>=0,t=Number.isInteger(s)&&s>=0,o=e?Ce(this.rowIndexMapper,i):void 0,n=t?Ce(this.columnIndexMapper,s):void 0;if(null===o||null===n)return!1;a=e?G.rowIndexMapper.getRenderableFromVisualIndex(o):i,l=t?G.columnIndexMapper.getRenderableFromVisualIndex(n):s}const h=Number.isInteger(a),c=Number.isInteger(l);let u=!1;return h&&a>=0&&c&&l>=0?u=G.view.scrollViewport(G._createCellCoords(a,l),e.horizontalSnap,e.verticalSnap):h&&a>=0&&(c&&l<0||!c)?u=G.view.scrollViewportVertically(a,e.verticalSnap):c&&l>=0&&(h&&a<0||!h)&&(u=G.view.scrollViewportHorizontally(l,e.horizontalSnap)),(0,n.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,n.isFunction)(e)&&this.addHookOnce("afterScroll",e);const{highlight:t}=this.getSelectedRangeActive(),o=this.scrollViewportTo(t.toObject());return o?this.view.render():(0,n.isFunction)(e)&&(this.removeHook("afterScroll",e),this._registerMicrotask(()=>e())),o},this.destroy=function(){G._clearTimeouts(),G._clearImmediates(),G.view&&G.view.destroy(),X&&X.destroy(),X=null,(0,_.isRootInstance)(this)&&(0,F.uninstall)(),this.getShortcutManager().destroy(),he.clear(),ne.clearCache(),Y.delete(this.guid),$.destroy(),Q&&Q.destroy(),G.rootContainer&&(0,s.empty)(G.rootContainer),G.rootPortalElement&&G.rootPortalElement.remove(),G.batchExecution(()=>{G.rowIndexMapper.unregisterAll(),G.columnIndexMapper.unregisterAll(),le.getItems().forEach(e=>{let[,t]=e;t.destroy()}),le.clear(),G.runHooks("afterDestroy")},!0),M.Hooks.getSingleton().destroy(G),(0,c.objectEach)(G,(e,t,o)=>{var i;(0,n.isFunction)(e)?o[t]=(i=t,()=>{throw new Error(`The "${i}" method cannot be called because this Handsontable instance has been destroyed`)}):"guid"!==t&&(o[t]=null)}),G.isDestroyed=!0,K&&K.destroy(),K=null,q=null,ce=null,Q=null,G=null},this.getActiveEditor=function(){return Q.getActiveEditor()},this.getFirstRenderedVisibleRow=function(){return G.view.getFirstRenderedVisibleRow()},this.getLastRenderedVisibleRow=function(){return G.view.getLastRenderedVisibleRow()},this.getFirstRenderedVisibleColumn=function(){return G.view.getFirstRenderedVisibleColumn()},this.getLastRenderedVisibleColumn=function(){return G.view.getLastRenderedVisibleColumn()},this.getFirstFullyVisibleRow=function(){return G.view.getFirstFullyVisibleRow()},this.getLastFullyVisibleRow=function(){return G.view.getLastFullyVisibleRow()},this.getFirstFullyVisibleColumn=function(){return G.view.getFirstFullyVisibleColumn()},this.getLastFullyVisibleColumn=function(){return G.view.getLastFullyVisibleColumn()},this.getFirstPartiallyVisibleRow=function(){return G.view.getFirstPartiallyVisibleRow()},this.getLastPartiallyVisibleRow=function(){return G.view.getLastPartiallyVisibleRow()},this.getFirstPartiallyVisibleColumn=function(){return G.view.getFirstPartiallyVisibleColumn()},this.getLastPartiallyVisibleColumn=function(){return G.view.getLastPartiallyVisibleColumn()},this.getPlugin=function(e){return le.getItem((0,v.toUpperCaseFirst)(e))},this.getPluginName=function(e){return e===this.undoRedo?this.undoRedo.constructor.PLUGIN_KEY:le.getId(e)},this.getInstance=function(){return G},this.addHook=function(e,t,o){M.Hooks.getSingleton().add(e,t,G,o)},this.hasHook=function(e){return M.Hooks.getSingleton().has(e,G)||M.Hooks.getSingleton().has(e)},this.addHookOnce=function(e,t,o){M.Hooks.getSingleton().once(e,t,G,o)},this.removeHook=function(e,t){M.Hooks.getSingleton().remove(e,t,G)},this.runHooks=function(e,t,o,i,s,n,r){return M.Hooks.getSingleton().run(G,e,t,o,i,s,n,r)},this.getTranslatedPhrase=function(e,t){return(0,I.getTranslatedPhrase)(re.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=!!ee;this.stylesHandler.useTheme(e);const o=this.stylesHandler.getThemeName();t||(G.render(),G.scrollViewportTo(0,0),(0,D.getThemeClassName)(this.rootContainer)&&((0,s.removeClass)(this.rootContainer,/ht-theme-.*/g),o&&(0,s.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 Q};const ve=(0,x.createShortcutManager)({handleEvent:()=>G.isListening(),beforeKeyDown:e=>this.runHooks("beforeKeyDown",e),afterKeyDown:e=>{this.isDestroyed||G.runHooks("afterDocumentKeyDown",e)},ownerWindow:this.rootWindow});this.addHook("beforeOnCellMouseDown",e=>{!1===e.ctrlKey&&!1===e.metaKey&&ve.releasePressedKeys()}),this.getShortcutManager=function(){return ve},this.getFocusManager=function(){return J},(0,p.getPluginsNames)().forEach(e=>{const t=(0,p.getPlugin)(e);le.addItem(e,new t(this))}),(0,k.registerAllShortcutContexts)(G),ve.setActiveContextName("grid"),M.Hooks.getSingleton().run(G,"construct")},o(52490),o(99356),o(89083),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(29810),o(31143),o(940),o(38950);var s=o(78966),n=o(81761),r=o(7886),a=o(40929),l=i(o(83055)),h=i(o(59468)),c=o(4138),u=o(75548),d=o(94576),g=o(40920),f=o(25854),p=o(92641),m=o(88181),w=o(89211),C=o(36780),v=o(2744),y=o(58604),S=i(o(92582)),E=i(o(81217)),R=o(9013),b=o(55656),_=o(88422),T=o(13743),M=o(23228),I=o(63061),O=o(35701),A=o(79930),N=o(5714),P=o(51219),H=o(79675),x=o(28055),k=o(13390),D=o(3631),L=o(14443),V=o(7120),W=o(21034),F=o(48370),B=o(84566);let U=null;const Y=new Map;new Set},50415:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(3639)),n=i(o(44013)),r=i(o(62578)),a=o(4138),l=o(99700);class h extends s.default{constructor(e,t,o,i){super(e,t,o,i,l.CLONE_BOTTOM_INLINE_START_CORNER)}}(0,a.mixin)(h,n.default),(0,a.mixin)(h,r.default);t.default=h},50494:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(21831),s=o(24895),n=o(11840);const r=t.CELL_TYPE="checkbox";t.CheckboxCellType={CELL_TYPE:r,editor:i.CheckboxEditor,renderer:s.checkboxRenderer,valueSetter:n.valueSetter}},50506:(e,t,o)=>{"use strict";var i=o(72820),s=o(77439),n=o(94178),r=o(70792),a=o(90501),l=o(21177),h=o(99793),c=o(14483)("find",TypeError);i({target:"Iterator",proto:!0,real:!0,forced:c},{find:function(e){a(this);try{r(e)}catch(e){h(this,"throw",e)}if(c)return s(c,this,e);var t=l(this),o=0;return n(t,function(t,i){if(e(t,o++))return i(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},51219:(e,t,o)=>{"use strict";o(34478),o(31143),t.__esModule=!0;var i=o(71740);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))});var s=o(11991);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))})},51456:(e,t,o)=>{"use strict";var i=o(77439),s=o(90501),n=o(21177),r=o(71449);e.exports=function(e,t){t&&"string"==typeof e||s(e);var o=r(e);return n(s(void 0!==o?i(o,e):e))}},51610:(e,t,o)=>{"use strict";t.__esModule=!0,t.registerAllEditors=function(){(0,f.registerEditor)(s.BaseEditor),(0,f.registerEditor)(i.AutocompleteEditor),(0,f.registerEditor)(n.CheckboxEditor),(0,f.registerEditor)(r.DateEditor),(0,f.registerEditor)(a.DropdownEditor),(0,f.registerEditor)(l.HandsontableEditor),(0,f.registerEditor)(h.NumericEditor),(0,f.registerEditor)(c.PasswordEditor),(0,f.registerEditor)(u.SelectEditor),(0,f.registerEditor)(d.TextEditor),(0,f.registerEditor)(g.TimeEditor)};var i=o(81518);t.AutocompleteEditor=i.AutocompleteEditor,t.AUTOCOMPLETE_EDITOR=i.EDITOR_TYPE;var s=o(67347);t.BaseEditor=s.BaseEditor,t.BASE_EDITOR=s.EDITOR_TYPE;var n=o(21831);t.CheckboxEditor=n.CheckboxEditor,t.CHECKBOX_EDITOR=n.EDITOR_TYPE;var r=o(17286);t.DateEditor=r.DateEditor,t.DATE_EDITOR=r.EDITOR_TYPE;var a=o(24135);t.DropdownEditor=a.DropdownEditor,t.DROPDOWN_EDITOR=a.EDITOR_TYPE;var l=o(19975);t.HandsontableEditor=l.HandsontableEditor,t.HANDSONTABLE_EDITOR=l.EDITOR_TYPE;var h=o(42595);t.NumericEditor=h.NumericEditor,t.NUMERIC_EDITOR=h.EDITOR_TYPE;var c=o(64143);t.PasswordEditor=c.PasswordEditor,t.PASSWORD_EDITOR=c.EDITOR_TYPE;var u=o(35234);t.SelectEditor=u.SelectEditor,t.SELECT_EDITOR=u.EDITOR_TYPE;var d=o(32813);t.TextEditor=d.TextEditor,t.TEXT_EDITOR=d.EDITOR_TYPE;var g=o(73079);t.TimeEditor=g.TimeEditor,t.TIME_EDITOR=g.EDITOR_TYPE;var f=o(89211);t.registerEditor=f.registerEditor,t.RegisteredEditor=f.RegisteredEditor,t._getEditorInstance=f._getEditorInstance,t.getEditor=f.getEditor,t.getEditorInstance=f.getEditorInstance,t.getRegisteredEditorNames=f.getRegisteredEditorNames,t.getRegisteredEditors=f.getRegisteredEditors,t.hasEditor=f.hasEditor},51798:(e,t,o)=>{"use strict";t.__esModule=!0,t.loadingContent=function(e){let{id:t,icon:o,title:s,description:n}=e;return`\n <div class="${i.LOADING_CLASS_NAME}__content">\n <i class="${i.LOADING_CLASS_NAME}__icon">${o}</i>\n <div class="${i.LOADING_CLASS_NAME}__text">\n <h2 id="${t}-${i.PLUGIN_KEY}-title" class="${i.LOADING_CLASS_NAME}__title">${s}</h2>\n ${n?`<p id="${t}-${i.PLUGIN_KEY}-description" class="${i.LOADING_CLASS_NAME}__description">${n}</p>`:""}\n </div>\n </div>\n `};var i=o(34651)},51839:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(99234);t.parse=i.parse,t.stringify=i.stringify},51997:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(8249),o(31835);var s=i(o(24300));t.PartiallyVisibleColumnsCalculationType=class{constructor(){(0,s.default)(this,"count",0),(0,s.default)(this,"startColumn",null),(0,s.default)(this,"endColumn",null),(0,s.default)(this,"startPosition",null),(0,s.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedWidth:o,zeroBasedScrollOffset:i,viewportWidth:s}=t;o<=i&&(this.startColumn=e);o>=i&&o<=i+(i>0?s+1:s)&&(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=e)),this.endColumn=e}finalize(e){var t;const{scrollOffset:o,viewportWidth:i,inlineStartOffset:s,zeroBasedScrollOffset:n,totalColumns:r,needReverse:a,startPositions:l,columnWidth:h}=e;if(this.endColumn===r-1&&a)for(this.startColumn=this.endColumn;this.startColumn>0;){const e=l[this.endColumn]+h-l[this.startColumn-1];if(this.startColumn-=1,e>i)break}this.startPosition=null!==(t=l[this.startColumn])&&void 0!==t?t:null;o+i-(n>0?i+1:i)<-1*s||o>l.at(-1)+h||-1*o-i>0?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,r<this.endColumn&&(this.endColumn=r-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}},52183: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},52232:(e,t,o)=>{"use strict";var i=o(77439),s=o(19451),n=o(14815),r=o(67987),a=o(99677),l=RegExp.prototype;e.exports=r.correct?function(e){return e.flags}:function(e){return r.correct||!n(l,e)||s(e,"flags")?e.flags:i(a,e)}},52355:(e,t,o)=>{"use strict";var i=o(77439),s=o(15176),n=o(65455),r=o(85988),a=o(29516),l=o(12033),h=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!s(e)||n(e))return e;var o,l=r(e,c);if(l){if(void 0===t&&(t="default"),o=i(l,e,t),!s(o)||n(o))return o;throw new h("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},52490:(e,t,o)=>{"use strict";var i=o(72820),s=o(94266),n=o(69019),r=o(42559),a="WebAssembly",l=s[a],h=7!==new Error("e",{cause:7}).cause,c=function(e,t){var o={};o[e]=r(e,t,h),i({global:!0,constructor:!0,arity:1,forced:h},o)},u=function(e,t){if(l&&l[e]){var o={};o[e]=r(a+"."+e,t,h),i({target:a,stat:!0,constructor:!0,arity:1,forced:h},o)}};c("Error",function(e){return function(t){return n(e,this,arguments)}}),c("EvalError",function(e){return function(t){return n(e,this,arguments)}}),c("RangeError",function(e){return function(t){return n(e,this,arguments)}}),c("ReferenceError",function(e){return function(t){return n(e,this,arguments)}}),c("SyntaxError",function(e){return function(t){return n(e,this,arguments)}}),c("TypeError",function(e){return function(t){return n(e,this,arguments)}}),c("URIError",function(e){return function(t){return n(e,this,arguments)}}),u("CompileError",function(e){return function(t){return n(e,this,arguments)}}),u("LinkError",function(e){return function(t){return n(e,this,arguments)}}),u("RuntimeError",function(e){return function(t){return n(e,this,arguments)}})},52637:(e,t,o)=>{"use strict";var i,s,n=o(94266),r=o(92853),a=n.process,l=n.Deno,h=a&&a.versions||l&&l.version,c=h&&h.v8;c&&(s=(i=c.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!s&&r&&(!(i=r.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=r.match(/Chrome\/(\d+)/))&&(s=+i[1]),e.exports=s},52653:(e,t,o)=>{"use strict";var i=o(72820),s=o(77439),n=o(70792),r=o(90501),a=o(21177),l=o(51456),h=o(64276),c=o(99793),u=o(33973),d=o(47150),g=o(14483),f=!u&&!d("flatMap",function(){}),p=!u&&!f&&g("flatMap",TypeError),m=u||f||p,w=h(function(){for(var e,t,o=this.iterator,i=this.mapper;;){if(t=this.inner)try{if(!(e=r(s(t.next,t.iterator))).done)return e.value;this.inner=null}catch(e){c(o,"throw",e)}if(e=r(s(this.next,o)),this.done=!!e.done)return;try{this.inner=l(i(e.value,this.counter++),!1)}catch(e){c(o,"throw",e)}}});i({target:"Iterator",proto:!0,real:!0,forced:m},{flatMap:function(e){r(this);try{n(e)}catch(e){c(this,"throw",e)}return p?s(p,this,e):new w(a(this),{mapper:e,inner:null})}})},52695:(e,t,o)=>{"use strict";var i=o(72820),s=o(94266),n=o(96127).set,r=o(16610),a=s.setImmediate?r(n,!1):n;i({global:!0,bind:!0,enumerable:!0,forced:s.setImmediate!==a},{setImmediate:a})},52938:(e,t,o)=>{"use strict";var i=o(72820),s=o(77439),n=o(94178),r=o(70792),a=o(90501),l=o(21177),h=o(99793),c=o(14483)("forEach",TypeError);i({target:"Iterator",proto:!0,real:!0,forced:c},{forEach:function(e){a(this);try{r(e)}catch(e){h(this,"throw",e)}if(c)return s(c,this,e);var t=l(this),o=0;n(t,function(t){e(t,o++)},{IS_RECORD:!0})}})},52978:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(29779),s=o(7120),n=o(30738),r=o(78966);let a=!1;class l extends i.BaseRenderer{constructor(e){super(null,e)}adjust(){const{columnsToRender:e,rowHeadersCount:t}=this.table,o=e+t;for(;this.renderedNodes<o;)this.rootNode.appendChild(this.table.rootDocument.createElement("col")),this.renderedNodes+=1;for(;this.renderedNodes>o;)this.rootNode.removeChild(this.rootNode.lastChild),this.renderedNodes-=1}render(){this.adjust();const{columnsToRender:e,rowHeadersCount:t}=this.table;!a&&e>1e3&&(a=!0,(0,s.warn)(n.toSingleLine`Performance tip: Handsontable rendered more than 1000 visible columns.\x20
71
+ is currently not supported.`),this.enabled&&this.hot.columnIndexMapper.hidingMapsCollection.getMergedValues().forEach((e,t)=>{const o=!0===e?"hide-column":"show-column";w(S,this).triggerColumnModification(o,t)}),!w(E,this)&&this.enabled&&m(E,this,this.hot.columnIndexMapper.createChangesObserver("hiding").subscribe(e=>{e.forEach(e=>{let{op:t,index:o,newValue:i}=e;if("replace"===t){const e=!0===i?"hide-column":"show-column";w(S,this).triggerColumnModification(e,o)}}),this.ghostTable.buildWidthsMap()})),this.ghostTable.setLayersCount(this.getLayersCount()).buildWidthsMap(),super.updatePlugin()}disablePlugin(){this.hot.rowIndexMapper.removeLocalHook("cacheUpdated",w(T,this)),this.hot.columnIndexMapper.removeLocalHook("cacheUpdated",w(T,this)),this.clearColspans(),w(S,this).clear(),w(E,this).unsubscribe(),m(E,this,null),this.ghostTable.clear(),super.disablePlugin()}getStateManager(){return w(S,this)}getLayersCount(){return w(S,this).getLayersCount()}getHeaderSettings(e,t){return w(S,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,i=e.wtOverlays.topOverlay.clone.wtTable.THEAD,s=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 r=i.childNodes[e],a=s?s.childNodes[e]:null;for(let e=0,o=t.childNodes.length;e<o;e++)t.childNodes[e].removeAttribute("colspan"),(0,n.removeClass)(t.childNodes[e],"hiddenHeader"),r&&r.childNodes[e]&&(r.childNodes[e].removeAttribute("colspan"),(0,n.removeClass)(r.childNodes[e],"hiddenHeader")),s&&a&&a.childNodes[e]&&(a.childNodes[e].removeAttribute("colspan"),(0,n.removeClass)(a.childNodes[e],"hiddenHeader"))}}headerRendererFactory(e){var t=this;const o=this.hot.view._wt.getSetting("fixedColumnsStart");return(i,s)=>{var r;const{columnIndexMapper:a,view:l}=this.hot;let h=a.getVisualFromRenderableIndex(i);null===h&&(h=i),s.removeAttribute("colspan"),(0,n.removeClass)(s,"hiddenHeader"),(0,n.removeClass)(s,"hiddenHeaderText");const{colspan:c,isHidden:u,isPlaceholder:d,headerClassNames:g}=null!==(r=w(S,this).getHeaderSettings(e,h))&&void 0!==r?r:{label:""};if(d||u)(0,n.addClass)(s,"hiddenHeader");else if(c>1){var f,p,m;const{wtOverlays:e}=l._wt,t=null===(f=e.topInlineStartCornerOverlay)||void 0===f?void 0:f.clone.wtTable.THEAD.contains(s),r=null===(p=e.inlineStartOverlay)||void 0===p?void 0:p.clone.wtTable.THEAD.contains(s);(null===(m=e.topOverlay)||void 0===m?void 0:m.clone.wtTable.THEAD.contains(s))&&h<o&&(0,n.addClass)(s,"hiddenHeaderText");const a=t||r?Math.min(c,o-i):c;a>1&&s.setAttribute("colspan",a)}if(this.hot.view.appendColHeader(h,s,function(){return t.getColumnHeaderValue(...arguments)},e),!d&&!u){const e=s.querySelector("div.relative");e&&g&&g.length>0&&((0,n.removeClass)(e,this.hot.getColumnMeta(h).headerClassName),(0,n.addClass)(e,g))}}}getColumnHeaderValue(e,t){var o;const{isHidden:i,isPlaceholder:s}=null!==(o=w(S,this).getHeaderSettings(t,e))&&void 0!==o?o:{};return s||i?"":this.hot.getColHeader(e,t)}destroy(){m(S,this,null),null!==w(E,this)&&(w(E,this).unsubscribe(),m(E,this,null)),super.destroy()}_getHeaderTreeNodeDataByCoords(e){if(!(e.row>=0||e.col<0))return w(S,this).getHeaderTreeNodeData(e.row,e.col)}}function O(e,t){var o;const i=this.hot.getSelectedRangeActive();if(!i)return e;const{highlight:s}=i,{navigableHeaders:n}=this.hot.getSettings(),r=this.hot.selection.isSelectedByColumnHeader(),a=n?s.row:null===(o=w(_,this))||void 0===o?void 0:o.row,l=r?e:s.col,h=a<0&&l>=0;if(m(_,this,null),!h)return e;const c=this.hot.getFirstFullyVisibleColumn(),u=this.hot.getLastFullyVisibleColumn(),d=u-c+1,g=w(S,this).findLeftMostColumnIndex(a,l),f=w(S,this).findRightMostColumnIndex(a,l),p=f-g+1;if(g<c&&f>u)return g;if(r){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 A(e,t,o){const i=w(S,this).getHeaderTreeNodeData(t,e);if(!i)return e;const{columnCursor:s,selectionType:n,selectionWidth:r}=o,{isRoot:a,colspan:l}=w(S,this).getHeaderSettings(t,e);if(n===c.HEADER_TYPE){if(!a)return i.columnIndex}else if(n===c.ACTIVE_HEADER_TYPE&&(l>r-s||!a))return null;return e}function N(e,t,o){let{columnHeadersCount:i}=o;if(0!==i)for(let o=0;o<t.length;o++){const{startRow:i,startCol:n,endRow:r,endCol:a}=t[o],l=r-i+1;if(i>=0||1===n-a+1)break;for(let t=n;t<=a;t++)for(let o=i;o<=r;o++){var s;const i=l+o,r=t-n;if(0===r)continue;!1===(null===(s=w(S,this).getHeaderTreeNodeData(o,t))||void 0===s?void 0:s.isRoot)&&(e[i][r]="")}}}function P(e,t,o,i){this._getHeaderTreeNodeDataByCoords(t)&&(i.column=!0)}function H(e,t){const o=this._getHeaderTreeNodeDataByCoords(t);if(!o)return;m(R,this,t.clone()),m(b,this,!0);const{selection:i}=this.hot,s=i.isSelected()?i.getSelectedRange().current():null,n=[],{columnIndex:r,origColspan:a}=o,h=!i.inInSelection(t);e.shiftKey&&s?t.col<s.from.col?n.push(s.getTopEndCorner().col,r,t.row):t.col>s.from.col?n.push(s.getTopStartCorner().col,r+a-1,t.row):n.push(r,r+a-1,t.row):((0,l.isLeftClick)(e)||(0,l.isRightClick)(e)&&h||(0,l.isTouchEvent)(e))&&n.push(r,r+a-1,t.row),i.selectColumns(...n)}function x(e,t,o,i){if(!this.hot.view.isMouseDown()||i.column)return;const s=this._getHeaderTreeNodeDataByCoords(t);if(!s)return;const{columnIndex:n,origColspan:a}=s,l=this.hot.getSelectedRangeActive(),h=l.getTopStartCorner(),c=l.getBottomEndCorner(),{from:u}=l;i.column=!0,i.cell=!0;const d=[],g=(0,r.clamp)(t.row,-1/0,-1);t.col<u.col?d.push(c.col,n,g):t.col>u.col?d.push(h.col,n+a-1,g):d.push(n,n+a-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,i=t.getBottomEndCorner().col,{columnIndex:s,origColspan:n}=w(S,this).getHeaderTreeNodeData(w(R,this).row,w(R,this).col);if(t.setHighlight(w(R,this)),n>t.getWidth()||s<o||s+n-1>i){const e=w(S,this).findTopMostEntireHeaderLevel((0,r.clamp)(o,s,s+n-1),(0,r.clamp)(i,s,s+n-1));t.highlight.row=e,t.highlight.col=t.from.col}}function L(e){const{highlight:t}=this.hot.getSelectedRangeActive(),o=this.hot._createCellCoords(t.row+e.row,t.col+e.col);if(!(o.isHeader()&&o.col>=0))return;const i=w(S,this).findLeftMostColumnIndex(o.row,o.col),s=w(S,this).findRightMostColumnIndex(o.row,o.col);if(e.col<0){const o=t.col>=i&&t.col<=s?i-1:s,n=this.hot.columnIndexMapper.getNearestNotHiddenIndex(o,-1);e.col=null===n?-this.hot.view.countRenderableColumnsInRange(0,t.col):-Math.max(this.hot.view.countRenderableColumnsInRange(n,t.col)-1,1)}else if(e.col>0){const o=t.col>=i&&t.col<=s?s+1:i,n=this.hot.columnIndexMapper.getNearestNotHiddenIndex(o,1);e.col=null===n?this.hot.view.countRenderableColumnsInRange(t.col,this.hot.countCols()):Math.max(this.hot.view.countRenderableColumnsInRange(t.col,n)-1,1)}}function V(e,t,o){const i=e.row,s=this._getHeaderTreeNodeDataByCoords({row:i,col:e.col}),n=this._getHeaderTreeNodeDataByCoords({row:i,col:t.col});m(_,this,o.clone()),t.col<e.col?(s&&(e.col=s.columnIndex+s.origColspan-1),n&&(t.col=n.columnIndex)):t.col>=e.col&&(s&&(e.col=s.columnIndex),n&&(t.col=n.columnIndex+n.origColspan-1))}function W(e){if(w(S,this).getLayersCount()>0){e.length=0;for(let t=0;t<w(S,this).getLayersCount();t++)e.push(this.headerRendererFactory(t))}}function F(e){const t=w(S,this).getLayersCount();let o=e.startColumn,i=!!t;for(let s=0;s<t;s++){const t=w(S,this).findLeftMostColumnIndex(s,e.startColumn),n=this.hot.columnIndexMapper.getRenderableFromVisualIndex(t);if(t>=0&&(i=!1),(0,r.isNumeric)(n)&&n<e.startColumn){o=n;break}}e.startColumn=i?w(S,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 i;const{label:s}=null!==(i=w(S,this).getHeaderTreeNodeData(o,t))&&void 0!==i?i:{label:""};return s}function Y(e,t){if(e<0)return this.hot.getCell(e,w(S,this).findLeftMostColumnIndex(e,t),!0)}function j(){this.updatePlugin()}function z(e,t){t||this.updatePlugin()}t.NestedHeaders=I},48525:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=i(o(24300)),n=o(78966),r=o(4138);t.default=class{constructor(e){(0,s.default)(this,"settings",{}),(0,s.default)(this,"defaults",Object.freeze(this.getDefaults())),(0,r.objectEach)(this.defaults,(t,o)=>{if(void 0!==e[o])this.settings[o]=e[o];else{if(void 0===t)throw new Error(`A required setting "${o}" was not provided`);this.settings[o]=t}})}getDefaults(){return{facade:void 0,table:void 0,isDataViewInstance:!0,externalRowCalculator:!1,currentRowClassName:null,currentColumnClassName:null,preventOverflow:()=>!1,preventWheel:!1,data:void 0,fixedColumnsStart:0,fixedRowsTop:0,fixedRowsBottom:0,shouldRenderInlineStartOverlay:()=>this.getSetting("fixedColumnsStart")>0||this.getSetting("rowHeaders").length>0,shouldRenderTopOverlay:()=>this.getSetting("fixedRowsTop")>0||this.getSetting("columnHeaders").length>0,shouldRenderBottomOverlay:()=>this.getSetting("fixedRowsBottom")>0,minSpareRows:0,rowHeaders:()=>[],columnHeaders:()=>[],totalRows:void 0,totalColumns:void 0,cellRenderer:(e,t,o)=>{const i=this.getSetting("data",e,t);(0,n.fastInnerText)(o,null==i?"":i)},columnWidth(){},rowHeight(){},rowHeightByOverlayName(){},defaultColumnWidth:50,selections:null,hideBorderOnMouseDownOver:!1,viewportRowCalculatorOverride:null,viewportColumnCalculatorOverride:null,viewportRowRenderingThreshold:null,viewportColumnRenderingThreshold:null,onCellMouseDown:null,onCellContextMenu:null,onCellMouseOver:null,onCellMouseOut:null,onCellMouseUp:null,onCellDblClick:null,onCellCornerMouseDown:null,onCellCornerDblClick:null,beforeDraw:null,onDraw:null,onBeforeRemoveCellClassNames:null,onAfterDrawSelection:null,onBeforeDrawBorders:null,onBeforeViewportScrollHorizontally:e=>e,onBeforeViewportScrollVertically:e=>e,onScrollHorizontally:null,onScrollVertically:null,onBeforeTouchScroll:null,onAfterMomentumScroll:null,onModifyRowHeaderWidth:null,onModifyGetCellCoords:null,onModifyGetCoordsElement:null,onModifyGetCoords:null,onBeforeHighlightingRowHeader:e=>e,onBeforeHighlightingColumnHeader:e=>e,onWindowResize:null,onContainerElementResize:null,renderAllColumns:!1,renderAllRows:!1,groups:!1,rowHeaderWidth:null,columnHeaderHeight:null,headerClassName:null,rtlMode:!1,ariaTags:!0,stylesHandler:null}}update(e,t){return void 0===t?(0,r.objectEach)(e,(e,t)=>{this.settings[t]=e}):this.settings[e]=t,this}getSetting(e,t,o,i,s){return"function"==typeof this.settings[e]?this.settings[e](t,o,i,s):void 0!==t&&Array.isArray(this.settings[e])?this.settings[e][t]:this.settings[e]}getSettingPure(e){return this.settings[e]}has(e){return!!this.settings[e]}}},48622:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.createHighlight=function(e){let{...t}=e;return new n.default({className:"fill",border:{width:1,color:"#ff0000"},...t,selectionType:s.HIGHLIGHT_FILL_TYPE})};var s=o(13743),n=i(o(6711))},48685:(e,t,o)=>{"use strict";t.__esModule=!0,t.shortcutsEditorContext=function(e){const t=e.getShortcutManager().addContext("editor"),o=(0,s.createKeyboardShortcutCommandsPool)(e),n={group:i.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()}],n)};var i=o(6239),s=o(6941)},48722:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(14291);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.CollapsibleColumns=i.CollapsibleColumns},48969:(e,t,o)=>{"use strict";t.__esModule=!0,t.passwordRenderer=a;var i=o(54657),s=o(78966),n=o(58604);const r=t.RENDERER_TYPE="password";function a(e,t,o,r,a,l,h){i.textRenderer.apply(this,[e,t,o,r,a,l,h]);const c=h.hashLength||t.innerHTML.length,u=h.hashSymbol||"*";let d="";(0,n.rangeEach)(c-1,()=>{d+=u}),(0,s.fastInnerHTML)(t,d)}a.RENDERER_TYPE=r},48971:(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===r||t===a)return[];const o=p(t,{createCellCoords:e._createCellCoords.bind(e),createCellRange:e._createCellRange.bind(e)}),i=new Set;(0,s.arrayEach)(e.getSelected(),e=>{const{from:t,to:n}=o(e),r=Math.max(t.col,0),a=n.col-r+1;(0,s.arrayEach)(Array.from(new Array(a),(e,t)=>r+t),e=>{i.has(e)||i.add(e)})});const n=Array.from(i).sort((e,t)=>e-t);return(0,s.arrayReduce)(n,(e,t,o,i)=>(0!==o&&t===i[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===r||t===a)return[];const o=p(t,{createCellCoords:e._createCellCoords.bind(e),createCellRange:e._createCellRange.bind(e)}),i=new Set;(0,s.arrayEach)(e.getSelected(),e=>{const{from:t,to:n}=o(e),r=Math.max(t.row,0),a=n.row-r+1;(0,s.arrayEach)(Array.from(new Array(a),(e,t)=>r+t),e=>{i.has(e)||i.add(e)})});const n=Array.from(i).sort((e,t)=>e-t);return(0,s.arrayReduce)(n,(e,t,o,i)=>(0!==o&&t===i[o-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e),[])},o(52490),o(99356),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(81056);var i=o(13743),s=o(94576),n=o(7886);const r=t.SELECTION_TYPE_UNRECOGNIZED=0,a=t.SELECTION_TYPE_EMPTY=1,l=t.SELECTION_TYPE_ARRAY=2,h=t.SELECTION_TYPE_OBJECT=3,c=t.SELECTION_TYPES=[h,l],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),s=t===d;let n=r;if(o){const t=e[0];if(0===e.length)n=a;else if(s&&t instanceof i.CellRange)n=h;else if(s&&Array.isArray(t))n=f(t,g);else if(e.length>=2&&e.length<=4){!e.some((e,t)=>!u[t].includes(typeof e))&&(n=l)}}return n}function p(e){let{createCellCoords:t,createCellRange:o,keepDirection:i=!1,propToCol:s}=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(r){const a=e===h;let l=a?r.from.row:r[0],c=a?r.from.col:r[1],u=a?r.to.row:r[2],d=a?r.to.col:r[3];if("function"==typeof s&&("string"==typeof c&&(c=s(c)),"string"==typeof d&&(d=s(d))),(0,n.isUndefined)(u)&&(u=l),(0,n.isUndefined)(d)&&(d=c),!i){const e=l,t=c,o=u,i=d;l=Math.min(e,o),c=Math.min(t,i),u=Math.max(e,o),d=Math.max(t,i)}const g=a?r.highlight.clone():t(l,c),f=t(l,c),p=t(u,d);return o(g,f,p)}}},49463:(e,t,o)=>{"use strict";var i=o(12033),s=o(96858),n=o(98363).f,r=i("unscopables"),a=Array.prototype;void 0===a[r]&&n(a,r,{configurable:!0,value:s(null)}),e.exports=function(e){a[r][e]=!0}},49735:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(32813);const s=t.EDITOR_TYPE="time";class n extends i.TextEditor{static get EDITOR_TYPE(){return s}prepare(e,t,o,i,s,n){super.prepare(e,t,o,i,s,n),this.TEXTAREA.dir="ltr"}}t.TimeEditor=n},49819:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},49887:e=>{"use strict";e.exports=function(e){return null==e}},49974:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionUp",callback(e){const{selection:t}=e,{highlight:o}=e.getSelectedRangeActive();t.isSelectedByColumnHeader()||t.isSelectedByCorner()||!(o.isCell()||o.isHeader()&&t.isSelectedByRowHeader())||(t.markSource("keyboard"),t.transformEnd(-1,0),t.markEndSource())}}},50029:(e,t,o)=>{"use strict";t.__esModule=!0,t.compareFunctionFactory=function(e,t,o){const r=t.checkedTemplate,a=t.uncheckedTemplate,{sortEmptyCells:l}=o;return function(h,c){const u=(0,n.isEmpty)(h),d=(0,n.isEmpty)(c),g=u?a:h,f=d?a:c,p=g===a||g===r,m=f===a||f===r;if(!1===l){if(u&&!1===d)return i.FIRST_AFTER_SECOND;if(!1===u&&d)return i.FIRST_BEFORE_SECOND}return!1===p&&m?"asc"===e?i.FIRST_BEFORE_SECOND:i.FIRST_AFTER_SECOND:p&&!1===m?"asc"===e?i.FIRST_AFTER_SECOND:i.FIRST_BEFORE_SECOND:!1===p&&!1===m?(0,s.compareFunctionFactory)(e,t,o)(h,c):g===a&&f===r?"asc"===e?i.FIRST_BEFORE_SECOND:i.FIRST_AFTER_SECOND:g===r&&f===a?"asc"===e?i.FIRST_AFTER_SECOND:i.FIRST_BEFORE_SECOND:i.DO_NOT_SWAP}};var i=o(70705),s=o(3771),n=o(7886);t.COLUMN_DATA_TYPE="checkbox"},50095:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(32813),r=o(36062),a=o(78966),l=o(72609);const h=t.EDITOR_TYPE="password";class c extends n.TextEditor{constructor(){super(...arguments),(0,s.default)(this,"autoResize",(0,r.createInputElementResizer)(this.hot.rootDocument,{textContent:e=>"•".repeat(e.value.length)}))}static get EDITOR_TYPE(){return h}createElements(){super.createElements(),this.TEXTAREA=this.hot.rootDocument.createElement("input"),this.TEXTAREA.setAttribute("type","password"),this.TEXTAREA.setAttribute("data-hot-input",""),this.TEXTAREA.className="handsontableInput",this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,(0,a.empty)(this.TEXTAREA_PARENT),this.TEXTAREA.setAttribute(...(0,l.A11Y_TABINDEX)(-1)),this.TEXTAREA_PARENT.appendChild(this.TEXTAREA)}}t.PasswordEditor=c},50235:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){if(Array.isArray(e)&&Number.isInteger(t))return e[t];return e}},50236:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.default=function(e,t){var o,i,z=this;let G=arguments.length>2&&void 0!==arguments[2]&&arguments[2],$=this;const K=new h.default($);let X,q,Q,J,Z,ee,te=!0;const oe={...t.initialState,...t};(0,_.hasValidParameter)(G)&&(0,_.registerAsRootInstance)(this);this.rootContainer=e,this.rootWrapperElement=void 0,this.rootGridElement=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.rootGridElement=this.rootDocument.createElement("div"),this.rootPortalElement=this.rootDocument.createElement("div"),(0,s.addClass)(this.rootElement,["ht-wrapper","handsontable"]),(0,s.addClass)(this.rootWrapperElement,"ht-root-wrapper"),(0,s.addClass)(this.rootGridElement,"ht-grid"),this.rootGridElement.appendChild(this.rootElement),this.rootWrapperElement.appendChild(this.rootGridElement),this.rootContainer.appendChild(this.rootWrapperElement),(0,s.addClass)(this.rootPortalElement,"ht-portal"),this.rootDocument.body.appendChild(this.rootPortalElement));this.isDestroyed=!1,this.renderSuspendedCounter=0,this.executionSuspendedCounter=0;const ie=null!==(o=null==oe?void 0:oe.layoutDirection)&&void 0!==o?o:"inherit",se=["rtl","ltr"].includes(ie)?ie:this.rootWindow.getComputedStyle(this.rootElement).direction;this.rootElement.setAttribute("dir",se),null===(i=this.rootWrapperElement)||void 0===i||i.setAttribute("dir",se),this.isRtl=function(){return"rtl"===se},this.isLtr=function(){return!$.isRtl()},this.getDirectionFactor=function(){return $.isLtr()?1:-1},this.stylesHandler=new L.StylesHandler({rootElement:$.rootElement,rootDocument:$.rootDocument,onThemeChange:e=>{(0,_.isRootInstance)(this)&&((0,s.removeClass)(this.rootWrapperElement,/ht-theme-.*/g),(0,s.removeClass)(this.rootPortalElement,/ht-theme-.*/g),e&&((0,s.addClass)(this.rootWrapperElement,e),(0,s.addClass)(this.rootPortalElement,e),getComputedStyle(this.rootWrapperElement).getPropertyValue("--ht-line-height")||(0,V.warn)(`The "${e}" theme is enabled, but its stylesheets are missing or not imported correctly. Import the correct CSS files in order to use that theme.`)))}}),oe.language=(0,I.getValidLanguageCode)(oe.language);const ne=Object.fromEntries(Object.entries(oe).filter(e=>{let[t]=e;return!(M.Hooks.getSingleton().isRegistered(t)||M.Hooks.getSingleton().isDeprecated(t))})),re=new N.MetaManager($,ne,[N.DynamicCellMetaMod,N.ExtendMetaPropertiesMod]),ae=re.getTableMeta(),le=re.getGlobalMeta(),he=(0,H.createUniqueMap)();this.container=this.rootDocument.createElement("div"),this.rootElement.insertBefore(this.container,this.rootElement.firstChild),this.guid=`ht_${(0,v.randomString)()}`,j.set(this.guid,this),this.columnIndexMapper=new b.IndexMapper,this.rowIndexMapper=new b.IndexMapper,this.columnIndexMapper.addLocalHook("indexesSequenceChange",e=>{$.runHooks("afterColumnSequenceChange",e)}),this.rowIndexMapper.addLocalHook("indexesSequenceChange",e=>{$.runHooks("afterRowSequenceChange",e)}),K.addEventListener(this.rootDocument.documentElement,"compositionstart",e=>{$.runHooks("beforeCompositionStart",e)}),q=new E.default($);const ce=(0,f.staticRegister)(this.guid);ce.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 ue=new A.Selection(ae,{rowIndexMapper:$.rowIndexMapper,columnIndexMapper:$.columnIndexMapper,countCols:()=>$.countCols(),countRows:()=>$.countRows(),propToCol:e=>X.propToCol(e),isEditorOpened:()=>!!$.getActiveEditor()&&$.getActiveEditor().isOpened(),countRenderableColumns:()=>this.view.countRenderableColumns(),countRenderableRows:()=>this.view.countRenderableRows(),countRowHeaders:()=>this.countRowHeaders(),countColHeaders:()=>this.countColHeaders(),countRenderableRowsInRange:function(){return z.view.countRenderableRowsInRange(...arguments)},countRenderableColumnsInRange:function(){return z.view.countRenderableColumnsInRange(...arguments)},getShortcutManager:()=>$.getShortcutManager(),createCellCoords:(e,t)=>$._createCellCoords(e,t),createCellRange:(e,t,o)=>$._createCellRange(e,t,o),visualToRenderableCoords:e=>{const{row:t,col:o}=e;return $._createCellCoords(t>=0?$.rowIndexMapper.getRenderableFromVisualIndex(t):t,o>=0?$.columnIndexMapper.getRenderableFromVisualIndex(o):o)},renderableToVisualCoords:e=>{const{row:t,col:o}=e;return $._createCellCoords(t>=0?$.rowIndexMapper.getVisualFromRenderableIndex(t):t,o>=0?$.columnIndexMapper.getVisualFromRenderableIndex(o):o)},findFirstNonHiddenRenderableRow:(e,t)=>{const o=t>e?1:-1,i=Math.min(e,t),s=Math.max(e,t),n=$.rowIndexMapper.getNearestNotHiddenIndex(e,o);return null===n||1===o&&n>s||-1===o&&n<i?null:n>=0?$.rowIndexMapper.getRenderableFromVisualIndex(n):n},findFirstNonHiddenRenderableColumn:(e,t)=>{const o=t>e?1:-1,i=Math.min(e,t),s=Math.max(e,t),n=$.columnIndexMapper.getNearestNotHiddenIndex(e,o);return null===n||1===o&&n>s||-1===o&&n<i?null:n>=0?$.columnIndexMapper.getRenderableFromVisualIndex(n):n},isDisabledCellSelection:(e,t)=>e<0||t<0?$.getSettings().disableVisualSelection:$.getCellMeta(e,t).disableVisualSelection});this.selection=ue;const de=e=>{let{hiddenIndexesChanged:t}=e;this.forceFullRender=!0,t&&this.selection.commit()};function ge(e,t){const o="className"===e?$.rootElement:$.table;if(te)(0,s.addClass)(o,t);else{let i=[],n=[];le[e]&&(i=Array.isArray(le[e])?le[e]:(0,d.stringToArray)(le[e])),t&&(n=Array.isArray(t)?t:(0,d.stringToArray)(t));const r=(0,d.getDifferenceOfArrays)(i,n),a=(0,d.getDifferenceOfArrays)(n,i);r.length&&(0,s.removeClass)(o,r),a.length&&(0,s.addClass)(o,a)}le[e]=t}function fe(){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 pe(e,t,o){if(!e.length)return void o();const i=$.getActiveEditor(),s=new fe;let n=!0;s.onQueueEmpty=()=>{i&&n&&i.cancelChanges(),o()};for(let o=e.length-1;o>=0;o--){const[i,r,,a]=e[o],l=X.propToCol(r);let h;h=Number.isInteger(l)?$.getCellMeta(i,l):{...Object.getPrototypeOf(ae),...ae},$.getCellValidator(h)&&(s.addValidatorToQueue(),$.validateCell(a,h,function(t,o){return function(i){if("boolean"!=typeof i)throw new Error("Validation error: result is not boolean");!1===i&&!1===o.allowInvalid&&(n=!1,e.splice(t,1),o.valid=!0),s.removeValidatorFormQueue()}}(o,h),t))}s.checkIfQueueIsEmpty()}function me(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(ae.allowInsertRow)for(;e[t][0]>$.countRows()-1;){const{delta:e}=X.createRow(void 0,void 0,{source:"auto"});if(0===e){o=!0;break}}if("array"===$.dataType&&(!ae.columns||0===ae.columns.length)&&ae.allowInsertColumn)for(;X.propToCol(e[t][1])>$.countCols()-1;){const{delta:e}=X.createCol(void 0,void 0,{source:"auto"});if(0===e){o=!0;break}}o||X.set(e[t][0],e[t][1],e[t][3])}}else e.splice(t,1)}if(e.length>0){Q.adjustRowsAndCols(),$.runHooks("beforeChangeRender",e,t),J.closeEditor(),$.view.adjustElementsSize(),$.render(),J.prepareEditor(),$.runHooks("afterChange",e,t||"edit");const o=$.getActiveEditor();o&&(0,r.isDefined)(o.refreshValue)&&o.refreshValue()}else $.render()}function we(e,t,o){return Array.isArray(e)?e:[[e,t,o]]}function Ce(e,t){const o=$.runHooks("beforeChange",e,t||"edit"),i=e.filter(e=>null!==e);var s;if(!1===o||0===i.length)return null===(s=$.getActiveEditor())||void 0===s||s.cancelChanges(),[];for(let e=i.length-1;e>=0;e--){const[t,o,,s]=i[e],n=X.propToCol(o);let r;r=Number.isInteger(n)?$.getCellMeta(t,n):{...Object.getPrototypeOf(ae),...ae},i[e][3]=(0,B.getValueSetterValue)(s,r)}return i}this.columnIndexMapper.addLocalHook("cacheUpdated",de),this.rowIndexMapper.addLocalHook("cacheUpdated",de),this.selection.addLocalHook("afterSetRangeEnd",(e,t)=>{const o=(0,c.createObjectPropListener)(!1),i=this.selection.getSelectedRange(),{from:n,to:r}=i.current(),a=i.size()-1;this.runHooks("afterSelection",n.row,n.col,r.row,r.col,o,a),this.runHooks("afterSelectionByProp",n.row,$.colToProp(n.col),r.row,$.colToProp(r.col),o,a),t&&(!o.isTouched()||o.isTouched()&&!o.value)&&ee.scrollTo(e);const l=ue.isSelectedByRowHeader(),h=ue.isSelectedByColumnHeader();l&&h?(0,s.addClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]):l?((0,s.removeClass)(this.rootElement,"ht__selection--columns"),(0,s.addClass)(this.rootElement,"ht__selection--rows")):h?((0,s.removeClass)(this.rootElement,"ht__selection--rows"),(0,s.addClass)(this.rootElement,"ht__selection--columns")):(0,s.removeClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]),["shift","refresh"].includes(ue.getSelectionSource())||J.closeEditor(null),"refresh"!==ue.getSelectionSource()&&($.view.render(),J.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)&&ee.scrollTo(e),J.closeEditor(),$.view.render(),J.prepareEditor()}),this.selection.addLocalHook("afterSelectionFinished",e=>{const t=e.length-1,{from:o,to:i}=e[t];this.runHooks("afterSelectionEnd",o.row,o.col,i.row,i.col,t),this.runHooks("afterSelectionEndByProp",o.row,$.colToProp(o.col),i.row,$.colToProp(i.col),t),"refresh"===ue.getSelectionSource()&&($.view.render(),J.prepareEditor())}),this.selection.addLocalHook("afterIsMultipleSelection",e=>{const t=this.runHooks("afterIsMultipleSelection",e.value);e.value&&(e.value=t)}),this.selection.addLocalHook("afterDeselect",()=>{J.closeEditor(),$.view.render(),(0,s.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 z.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 z.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 z.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 z.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 z.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 z.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 z.runHooks("afterSelectRows",...t)}).addLocalHook("beforeSelectAll",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return z.runHooks("beforeSelectAll",...t)}).addLocalHook("afterSelectAll",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return z.runHooks("afterSelectAll",...t)}).addLocalHook("beforeModifyTransformStart",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return z.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 z.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 z.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 z.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 z.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 z.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 z.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 z.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")),Q={alter(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;const n=e=>{if(0===e.length)return[];const t=[...e];t.sort((e,t)=>{let[o]=e,[i]=t;return o===i?0:o>i?1:-1});return(0,d.arrayReduce)(t,(e,t)=>{let[o,i]=t;const s=e[e.length-1],[n,r]=s,a=n+r;if(o<=a){const e=Math.max(i-(a-o),0);s[1]+=e}else e.push([o,i]);return e},[t[0]])};switch(e){case"insert_row_below":case"insert_row_above":const s=$.countSourceRows();if(ae.maxRows===s)return;const a="insert_row_below"===e?"below":"above";t=null!=t?t:"below"===a?s:0;const{delta:l,startPhysicalIndex:h}=X.createRow(t,o,{source:i,mode:a});ue.shiftRows($.toVisualRow(h),l);break;case"insert_col_start":case"insert_col_end":const c="insert_col_end"===e?"end":"start";t=null!=t?t:"end"===c?$.countSourceCols():0;const{delta:u,startPhysicalIndex:g}=X.createCol(t,o,{source:i,mode:c});if(u){if(Array.isArray(ae.colHeaders)){const e=[$.toVisualColumn(g),0];e.length+=u,Array.prototype.splice.apply(ae.colHeaders,e)}ue.shiftColumns($.toVisualColumn(g),u)}break;case"remove_row":const f=e=>{let t=0;(0,d.arrayEach)(e,e=>{let[o,s]=e;const n=(0,r.isEmpty)(o)?$.countRows()-1:Math.max(o-t,0);Number.isInteger(o)&&(o=Math.max(o-t,0));if(!X.removeRow(o,s,i))return;if(ue.isSelected()){const{row:e}=$.getSelectedRangeActive().highlight;e>=o&&e<=o+s-1&&J.closeEditor(!0)}const a=$.countRows(),l=ae.fixedRowsTop;l>=n+1&&(ae.fixedRowsTop-=Math.min(s,l-n));const h=ae.fixedRowsBottom;if(h&&n>=a-h&&(ae.fixedRowsBottom-=Math.min(s,h)),0===a)ue.deselect();else if("ContextMenu.removeRow"===i){const e=ue.getSelectedRange(),t=e.pop();e.clear().set(t.from).current().setTo(t.to),ue.refresh()}else ue.shiftRows(o,-s);t+=s})};Array.isArray(t)?f(n(t)):f([[t,o]]);break;case"remove_col":const p=e=>{let t=0;(0,d.arrayEach)(e,e=>{let[o,s]=e;const n=(0,r.isEmpty)(o)?$.countCols()-1:Math.max(o-t,0);let a=$.toPhysicalColumn(n);Number.isInteger(o)&&(o=Math.max(o-t,0));if(!X.removeCol(o,s,i))return;if(ue.isSelected()){const{col:e}=$.getSelectedRangeActive().highlight;e>=o&&e<=o+s-1&&J.closeEditor(!0)}if(0===$.countCols())ue.deselect();else if("ContextMenu.removeColumn"===i){const e=ue.getSelectedRange(),t=e.pop();e.clear().set(t.from).current().setTo(t.to),ue.refresh()}else ue.shiftColumns(o,-s);const l=ae.fixedColumnsStart;l>=n+1&&(ae.fixedColumnsStart-=Math.min(s,l-n)),Array.isArray(ae.colHeaders)&&(void 0===a&&(a=-1),ae.colHeaders.splice(a,s)),t+=s})};Array.isArray(t)?p(n(t)):p([[t,o]]);break;default:throw new Error(`There is no such action "${e}"`)}s||Q.adjustRowsAndCols(),$.view.adjustElementsSize(),$.view.render()},adjustRowsAndCols(){const e=ae.minRows,t=ae.minSpareRows,o=ae.minCols,i=ae.minSpareCols;if(e){const t=$.countRows();t<e&&X.createRow(t,e-t,{source:"auto"})}if(t){const e=$.countEmptyRows(!0);if(e<t){const o=t-e,i=Math.min(o,ae.maxRows-$.countSourceRows());X.createRow($.countRows(),i,{source:"auto"})}}{let e;(o||i)&&(e=$.countEmptyCols(!0));let t=$.countCols();if(o&&!ae.columns&&t<o){const i=o-t;e+=i,X.createCol(t,i,{source:"auto"})}if(i&&!ae.columns&&"array"===$.dataType&&e<i){t=$.countCols();const o=i-e,s=Math.min(o,ae.maxCols-t);X.createCol(t,s,{source:"auto"})}}},populateFromArray(e,t,o,i,s){let n,r,a,l;const h=[],u={},g=[],f=e.row,p=e.col;if(r=t.length,0===r)return!1;let m=0,w=0;switch((0,c.isObject)(o)&&(m=o.col-p+1,w=o.row-f+1),s){case"shift_down":const s=(0,d.pivot)(t),v=s.length,y=Math.max(v,m),S=$.getData().slice(f),E=(0,d.pivot)(S).slice(p,p+y);for(a=0;a<y;a+=1)if(a<v){for(n=0,r=s[a].length;n<w-r;n+=1)s[a].push(s[a][n%r]);a<E.length?g.push(s[a].concat(E[a])):g.push(s[a].concat(new Array(S.length).fill(null)))}else g.push(s[a%v].concat(E[a]));$.populateFromArray(f,p,(0,d.pivot)(g));break;case"shift_right":const R=t.length,b=Math.max(R,w),_=$.getData().slice(f).map(e=>e.slice(p));for(n=0;n<b;n+=1)if(n<R){for(a=0,l=t[n].length;a<m-l;a+=1)t[n].push(t[n][a%l]);if(n<_.length)for(let e=0;e<_[n].length;e+=1)t[n].push(_[n][e]);else t[n].push(...new Array(_[0].length).fill(null))}else t.push(t[n%r].slice(0,b).concat(_[n]));$.populateFromArray(f,p,t);break;default:u.row=e.row,u.col=e.col;let T,M=0,I=0,O=!0;const A=function(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const i=t[e%t.length];return null!==o?i[o%i.length]:i},N=t.length,P=o?o.row-e.row+1:0;for(r=o?P:Math.max(N,P),n=0;n<r&&!(o&&u.row>o.row&&P>N||!ae.allowInsertRow&&u.row>$.countRows()-1||u.row>=ae.maxRows);n++){const t=n-M,s=A(t).length,d=o?o.col-e.col+1:0;if(l=o?d:Math.max(s,d),u.col=e.col,T=$.getCellMeta(u.row,u.col),"CopyPaste.paste"!==i&&"Autofill.fill"!==i||!T.skipRowOnPaste){for(I=0,a=0;a<l;a++){var C;if(o&&u.col>o.col&&d>s||!ae.allowInsertColumn&&u.col>$.countCols()-1||u.col>=ae.maxCols)break;if(T=$.getCellMeta(u.row,u.col),("CopyPaste.paste"===i||"Autofill.fill"===i)&&T.skipColumnOnPaste){I+=1,u.col+=1,l+=1;continue}if(T.readOnly&&"UndoRedo.undo"!==i){u.col+=1;continue}const e=a-I,n=!!T.valueSetter;let r=A(t,e),g=null!==(C=$.getSourceDataAtCell(u.row,u.col))&&void 0!==C?C:null;if(null!==r&&"object"==typeof r)if(Array.isArray(r)&&null===g&&(g=[]),n||"object"==typeof g&&null!==g){if(null!==g){const e=(0,c.duckSchema)(Array.isArray(g)?g:g[0]||g),t=(0,c.duckSchema)(Array.isArray(r)?r:r[0]||r);n||(0,c.isObjectEqual)(e,t)||Array.isArray(e)&&Array.isArray(t)?r=(0,c.deepClone)(r):O=!1}}else O=!1;else n||null===g||"object"!=typeof g||(O=!1);O&&h.push([u.row,u.col,r]),O=!0,u.col+=1}u.row+=1}else M+=1,u.row+=1,r+=1}$.setDataAtCell(h,null,null,i||"populateFromArray")}}},this.init=function(){q.setData(ae.data),$.runHooks("beforeInit"),((0,a.isMobileBrowser)()||(0,a.isIpadOS)())&&(0,s.addClass)($.rootElement,"mobile"),this.updateSettings(oe,!0),this.view=new S.default(this),J=l.default.getInstance($,ae,ue),ee=(0,P.createViewportScroller)($),Z=new u.FocusManager($),(0,_.isRootInstance)(this)&&((0,P.installFocusCatcher)($),(0,F.install)($.rootPortalElement),(0,r._injectProductInfo)(oe.licenseKey,this.rootWrapperElement)),$.runHooks("init"),this.render(),te&&null===$.rootElement.offsetParent&&(0,s.observeVisibilityChangeOnce)($.rootElement,()=>{$.view._wt.wtOverlays.updateLastSpreaderSize(),$.view.adjustElementsSize(),$.render()}),"object"==typeof te&&($.runHooks("afterChange",te[0],te[1]),te=!1),$.runHooks("afterInit")},this._createCellCoords=function(e,t){return $.view._wt.createCellCoords(e,t)},this._createCellRange=function(e,t,o){return $.view._wt.createCellRange(e,t,o)},this.validateCell=function(e,t,o,i){let s=$.getCellValidator(t);function a(e){if(!(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])||!0===t.hidden)return void o(e);const i=t.visualCol,s=t.visualRow,n=$.getCell(s,i,!0);if(n&&"TH"!==n.nodeName){const e=$.rowIndexMapper.getRenderableFromVisualIndex(s),t=$.columnIndexMapper.getRenderableFromVisualIndex(i);$.view._wt.getSetting("cellRenderer",e,t,n)}o(e)}var l;(0,r.isRegExp)(s)&&(l=s,s=function(e,t){t(l.test(e))}),(0,n.isFunction)(s)?(e=$.runHooks("beforeValidate",e,t.visualRow,t.prop,i),$._registerImmediate(()=>{s.call(t,e,o=>{$&&(o=$.runHooks("afterValidate",o,e,t.visualRow,t.prop,i),t.valid=o,a(o),$.runHooks("postAfterValidate",o,e,t.visualRow,t.prop,i))})})):$._registerImmediate(()=>{t.valid=!0,a(t.valid,!1)})},this.setDataAtCell=function(e,t,o,i){const s=we(e,t,o),n=[];let r,a,l,h=i;for(r=0,a=s.length;r<a;r++){const[e,t,o]=s[r];if("object"!=typeof s[r])throw new Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof t)throw new Error("Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`");l=t>=this.countCols()?t:X.colToProp(t),n.push([e,l,q.getAtCell(this.toPhysicalRow(e),t),o])}h||"object"!=typeof e||(h=t);const c=Ce(n,h);$.runHooks("afterSetDataAtCell",c,h),pe(c,h,()=>{me(c,h)})},this.setDataAtRowProp=function(e,t,o,i){const s=we(e,t,o),n=[];let r,a,l=i;for(r=0,a=s.length;r<a;r++){const[e,t,o]=s[r];n.push([e,t,q.getAtCell(this.toPhysicalRow(e),t),o])}l||"object"!=typeof e||(l=t);const h=Ce(n,i);$.runHooks("afterSetDataAtRowProp",h,l),pe(h,l,()=>{me(h,l)})},this.listen=function(){$&&!$.isListening()&&(j.forEach(e=>{$!==e&&e.unlisten()}),U=$.guid,$.runHooks("afterListen"))},this.unlisten=function(){this.isListening()&&(U=null,$.runHooks("afterUnlisten"))},this.isListening=function(){return U===$.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];J.closeEditor(e),$.view.render(),t&&ue.isSelected()&&J.prepareEditor()},this.populateFromArray=function(e,t,o,i,s,n,r){if("object"!=typeof o||"object"!=typeof o[0])throw new Error("populateFromArray parameter `input` must be an array of arrays");const a="number"==typeof i?$._createCellCoords(i,s):null;return Q.populateFromArray($._createCellCoords(e,t),o,a,n,r)},this.spliceCol=function(e,t,o){for(var i=arguments.length,s=new Array(i>3?i-3:0),n=3;n<i;n++)s[n-3]=arguments[n];return X.spliceCol(e,t,o,...s)},this.spliceRow=function(e,t,o){for(var i=arguments.length,s=new Array(i>3?i-3:0),n=3;n<i;n++)s[n-3]=arguments[n];return X.spliceRow(e,t,o,...s)},this.getSelected=function(){if(ue.isSelected())return(0,d.arrayMap)(ue.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.getSelectedActive=function(){const e=this.getSelectedRangeActive();if(!e)return;const{from:t,to:o}=e;return[t.row,t.col,o.row,o.col]},this.getSelectedRange=function(){if(ue.isSelected())return Array.from(ue.getSelectedRange())},this.getSelectedRangeLast=function(){const e=this.getSelectedRange();let t;return e&&e.length>0&&(t=e[e.length-1]),t},this.getSelectedRangeActive=function(){return ue.getActiveSelectedRange()},this.getActiveSelectionLayerIndex=function(){return ue.getActiveSelectionLayerIndex()},this.emptySelectedCells=function(e){if(!ue.isSelected()||0===this.countRows()||0===this.countCols())return;const t=[];(0,d.arrayEach)(ue.getSelectedRange(),e=>{if(e.isSingleHeader())return;const o=e.getTopStartCorner(),i=e.getBottomEndCorner();(0,y.rangeEach)(o.row,i.row,e=>{(0,y.rangeEach)(o.col,i.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||$.view.render()},this.render=function(){this.view&&(this.forceFullRender=!0,this.isRenderSuspended()||$.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(!$.view)return;const e=$.view,{width:t,height:o}=e.getLastSize(),{width:i,height:s}=$.rootElement.getBoundingClientRect(),n=i!==t||s!==o;!1===$.runHooks("beforeRefreshDimensions",{width:t,height:o},{width:i,height:s},n)||((n||e._wt.wtOverlays.scrollableElement===$.rootWindow)&&(e.setLastSize(i,s),e.adjustElementsSize(),$.render()),$.runHooks("afterRefreshDimensions",{width:t,height:o},{width:i,height:s},n))},this.updateData=function(e,t){(0,N.replaceData)(e,e=>{X=e},e=>{X=e,$.columnIndexMapper.fitToLength(this.getInitialColumnCount()),$.rowIndexMapper.fitToLength(this.countSourceRows()),Q.adjustRowsAndCols(),ue.refresh()},{hotInstance:$,dataMap:X,dataSource:q,internalSource:"updateData",source:t,metaManager:re,firstRun:te})},this.loadData=function(e,t){(0,N.replaceData)(e,e=>{X=e},()=>{re.clearCellsCache(),$.initIndexMappers(),Q.adjustRowsAndCols(),ue.refresh(),te&&(te=[null,"loadData"])},{hotInstance:$,dataMap:X,dataSource:q,internalSource:"loadData",source:t,metaManager:re,firstRun:te})},this.getInitialColumnCount=function(){const e=ae.columns;let t=0;if(Array.isArray(e))t=e.length;else if((0,n.isFunction)(e))if("array"===$.dataType){const o=this.countSourceCols();for(let i=0;i<o;i+=1)e(i)&&(t+=1)}else"object"!==$.dataType&&"function"!==$.dataType||(t=X.colToPropCache.length);else if((0,r.isDefined)(ae.dataSchema)){const e=X.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,i){return(0,r.isUndefined)(e)?X.getAll():X.getRange($._createCellCoords(e,t),$._createCellCoords(o,i),X.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,o,i){return X.getCopyableText($._createCellCoords(e,t),$._createCellCoords(o,i))},this.getCopyableData=function(e,t){return X.getCopyable(e,X.colToProp(t))},this.getCopyableSourceData=function(e,t){return q.getCopyable(e,X.colToProp(t))},this.getSchema=function(){return X.getSchema()},this.updateSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=(te?$.loadData:$.updateData).bind(this);let i,s,a=!1;if((0,r.isDefined)(e.rows))throw new Error('The "rows" setting is no longer supported. Do you mean startRows, minRows or maxRows?');if((0,r.isDefined)(e.cols))throw new Error('The "cols" setting is no longer supported. Do you mean startCols, minCols or maxCols?');if((0,r.isDefined)(e.ganttChart))throw new Error('Since 8.0.0 the "ganttChart" setting is no longer supported.');for(i in e)if("data"===i||"language"===i);else if("className"===i)ge("className",e.className);else if("tableClassName"===i&&$.table)ge("tableClassName",e.tableClassName),$.view._wt.wtOverlays.syncOverlayTableClassNames();else if(M.Hooks.getSingleton().isRegistered(i)||M.Hooks.getSingleton().isDeprecated(i)){const t=e[i];(0,n.isFunction)(t)?(M.Hooks.getSingleton().addAsFixed(i,t,$),ae[i]=t):Array.isArray(t)&&(M.Hooks.getSingleton().add(i,t,$),ae[i]=t)}else!t&&(0,c.hasOwnProperty)(e,i)&&(le[i]=e[i]);if(t)$.useTheme(ae.themeName||(0,D.getThemeClassName)($.rootContainer));else{const t=$.getCurrentThemeName();(0,c.hasOwnProperty)(e,"themeName")&&t!==e.themeName&&$.useTheme(e.themeName)}Y.has($)&&void 0!==$.stylesHandler.getThemeName()&&Y.delete($),(0,_.isRootInstance)($)&&!Y.has($)&&$.stylesHandler.isClassicTheme()&&((0,V.deprecatedWarn)("Handsontable classic theme is a legacy theme and will be removed in version 17.0. Please update your theme settings to ensure compatibility with future versions."),Y.add($)),void 0===e.data&&void 0===ae.data?o(null,"updateSettings"):void 0!==e.data?o(e.data,"updateSettings"):void 0!==e.columns&&(X.createMap(),$.initIndexMappers()),!te&&e.language&&function(e){const t=(0,O.normalizeLanguageCode)(e);(0,I.hasLanguageDictionary)(t)?($.runHooks("beforeLanguageChange",t),le.language=t,$.runHooks("afterLanguageChange",t)):(0,O.warnUserAboutLanguageRegistration)(e)}(e.language);const l=$.countCols(),h=ae.columns;if(h&&(0,n.isFunction)(h)&&(a=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||re.clearCache(),l>0)for(i=0,s=0;i<l;i++){if(h){const e=a?h(i):h[s];e&&re.updateColumnMeta(s,e)}s+=1}(0,r.isDefined)(e.cell)&&(0,c.objectEach)(e.cell,e=>{$.setCellMetaObject(e.row,e.col,e)}),$.runHooks("afterCellMetaReset");let u=$.rootElement.style.height;if(""!==u&&(u=parseInt($.rootElement.style.height,10)),t){$.rootElement.getAttribute("style")&&$.rootElement.setAttribute("data-initialstyle",$.rootElement.getAttribute("style"))}let d=e.height;if(void 0!==e.height)if((0,n.isFunction)(d)&&(d=d()),d=$.runHooks("beforeHeightChange",d),null===d){const e=$.rootElement.getAttribute("data-initialstyle");e&&(e.indexOf("height")>-1||e.indexOf("overflow")>-1)?$.rootElement.setAttribute("style",e):($.rootElement.style.height="",$.rootElement.style.overflow="")}else void 0!==d&&($.rootElement.style.height=isNaN(d)?`${d}`:`${d}px`,$.rootElement.style.overflow="hidden");if(void 0!==e.width){let t=e.width;(0,n.isFunction)(t)&&(t=t()),t=$.runHooks("beforeWidthChange",t),$.rootElement.style.width=isNaN(t)?`${t}`:`${t}px`}t||($.view&&($.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked(),$.view._wt.exportSettingsAsClassNames()),$.runHooks("afterUpdateSettings",e)),Q.adjustRowsAndCols(),$.view&&!te&&($.render(),$.view._wt.wtOverlays.adjustElementsSize()),t||!$.view||""!==u&&""!==d&&void 0!==d||u===d||$.view._wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){const e=$.getSelectedRangeActive();if(ae.getValue){if((0,n.isFunction)(ae.getValue))return ae.getValue.call($);if(e)return $.getData()[e.highlight.row][ae.getValue]}else if(e)return $.getDataAtCell(e.highlight.row,e.highlight.col);return null},this.getSettings=function(){return ae},this.clear=function(){this.selectAll(),this.emptySelectedCells()},this.alter=function(e,t,o,i,s){Q.alter(e,t,o,i,s)},this.getCell=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t,s=e;if(t>=0){if(this.columnIndexMapper.isHidden(this.toPhysicalColumn(t)))return null;i=this.columnIndexMapper.getRenderableFromVisualIndex(t)}if(e>=0){if(this.rowIndexMapper.isHidden(this.toPhysicalRow(e)))return null;s=this.rowIndexMapper.getRenderableFromVisualIndex(e)}return null===s||null===i||void 0===s||void 0===i?null:$.view.getCellAtCoords($._createCellCoords(s,i),o)},this.getCoords=function(e){const t=this.view._wt.wtTable.getCoords(e);if(null===t)return null;const{row:o,col:i}=t;let s=o,n=i;return o>=0&&(s=this.rowIndexMapper.getVisualFromRenderableIndex(o)),i>=0&&(n=this.columnIndexMapper.getVisualFromRenderableIndex(i)),$._createCellCoords(s,n)},this.colToProp=function(e){return X.colToProp(e)},this.propToCol=function(e){return X.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 X.get(e,X.colToProp(t))},this.getDataAtRowProp=function(e,t){return X.get(e,t)},this.getDataAtCol=function(e){const t=[],o=X.getRange($._createCellCoords(0,e),$._createCellCoords(ae.data.length-1,e),X.DESTINATION_RENDERER);for(let e=0;e<o.length;e+=1)for(let i=0;i<o[e].length;i+=1)t.push(o[e][i]);return t},this.getDataAtProp=function(e){const t=[],o=X.getRange($._createCellCoords(0,X.propToCol(e)),$._createCellCoords(ae.data.length-1,X.propToCol(e)),X.DESTINATION_RENDERER);for(let e=0;e<o.length;e+=1)for(let i=0;i<o[e].length;i+=1)t.push(o[e][i]);return t},this.getSourceData=function(e,t,o,i){let s;return s=void 0===e?q.getData():q.getByRange($._createCellCoords(e,t),$._createCellCoords(o,i)),s},this.getSourceDataArray=function(e,t,o,i){let s;return s=void 0===e?q.getData(!0):q.getByRange($._createCellCoords(e,t),$._createCellCoords(o,i),!0),s},this.getSourceDataAtCol=function(e){return q.getAtColumn(e)},this.setSourceDataAtCell=function(e,t,o,i){const s=we(e,t,o),n=this.hasHook("afterSetSourceDataAtCell"),a=[],l=(e,t)=>{const o=this.toVisualRow(e),i=this.toVisualColumn(t);return Number.isInteger(i)?this.getCellMeta(o,i):{...Object.getPrototypeOf(ae),...ae}};n&&(0,d.arrayEach)(s,e=>{let[t,o,i]=e;const s=(0,B.getValueSetterValue)(i,l(t,o));a.push([t,o,q.getAtCell(t,o),s])}),(0,d.arrayEach)(s,e=>{let[t,o,i]=e;const s=(0,B.getValueSetterValue)(i,l(t,o));q.setAtCell(t,o,s)}),n&&this.runHooks("afterSetSourceDataAtCell",a,i),this.render();const h=$.getActiveEditor();h&&(0,r.isDefined)(h.refreshValue)&&h.refreshValue()},this.getSourceDataAtRow=function(e){return q.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return q.getAtCell(e,t)},this.getDataAtRow=function(e){return X.getRange($._createCellCoords(e,0),$._createCellCoords(e,this.countCols()-1),X.DESTINATION_RENDERER)[0]||[]},this.getDataType=function(e,t,o,i){const s=void 0===e?[0,0,this.countRows(),this.countCols()]:[e,t,o,i],[n,r]=s;let[,,a,l]=s,h=null,c=null;void 0===a&&(a=n),void 0===l&&(l=r);let u="mixed";return(0,y.rangeEach)(Math.max(Math.min(n,a),0),Math.max(n,a),e=>{let t=!0;return(0,y.rangeEach)(Math.max(Math.min(r,l),0),Math.max(r,l),o=>{const i=this.getCellMeta(e,o);return c=i.type,h?t=h===c:h=c,t}),u=t?c:"mixed",t}),u},this.removeCellMeta=function(e,t,o){const[i,s]=[this.toPhysicalRow(e),this.toPhysicalColumn(t)];let n=re.getCellMetaKeyValue(i,s,o);!1!==$.runHooks("beforeRemoveCellMeta",e,t,o,n)&&(re.removeCellMeta(i,s,o),$.runHooks("afterRemoveCellMeta",e,t,o,n)),n=null},this.spliceCellsMeta=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(var o=arguments.length,i=new Array(o>2?o-2:0),s=2;s<o;s++)i[s-2]=arguments[s];if(i.length>0&&!Array.isArray(i[0]))throw new Error("The 3rd argument (cellMetaRows) has to be passed as an array of cell meta objects array.");t>0&&re.removeRow(this.toPhysicalRow(e),t),i.length>0&&(0,d.arrayEach)(i.reverse(),t=>{re.createRow(this.toPhysicalRow(e)),(0,d.arrayEach)(t,(t,o)=>this.setCellMetaObject(e,o,t))}),$.render()},this.setCellMetaObject=function(e,t,o){"object"==typeof o&&(0,c.objectEach)(o,(o,i)=>{this.setCellMeta(e,t,i,o)})},this.setCellMeta=function(e,t,o,i){if(!1===$.runHooks("beforeSetCellMeta",e,t,o,i))return;let s=e,n=t;e<this.countRows()&&(s=this.toPhysicalRow(e)),t<this.countCols()&&(n=this.toPhysicalColumn(t)),re.setCellMeta(s,n,o,i),$.runHooks("afterSetCellMeta",e,t,o,i)},this.getCellsMeta=function(){return re.getCellsMeta()},this.getCellMeta=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{skipMetaExtension:!1},i=this.toPhysicalRow(e),s=this.toPhysicalColumn(t);return null===i&&(i=e),null===s&&(s=t),re.getCellMeta(i,s,{visualRow:e,visualColumn:t,...o})},this.getColumnMeta=function(e){return re.getColumnMeta(this.toPhysicalColumn(e))},this.getCellMetaAtRow=function(e){return re.getCellsMetaAtRow(e)},this.isColumnModificationAllowed=function(){return!("object"===$.dataType||ae.columns)},this.getCellRenderer=function(e,t){const o="number"==typeof e?$.getCellMeta(e,t).renderer:e.renderer;return"string"==typeof o?(0,m.getRenderer)(o):(0,r.isUndefined)(o)?(0,m.getRenderer)("text"):o},this.getCellEditor=function(e,t){const o="number"==typeof e?$.getCellMeta(e,t).editor:e.editor;return"string"==typeof o?(0,w.getEditor)(o):(0,r.isUndefined)(o)?(0,w.getEditor)("text"):o},this.getCellValidator=function(e,t){const o="number"==typeof e?$.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 i=new fe;e&&(i.onQueueEmpty=e);let s=$.countRows()-1;for(;s>=0;){if(void 0!==t&&-1===t.indexOf(s)){s-=1;continue}let e=$.countCols()-1;for(;e>=0;)void 0===o||-1!==o.indexOf(e)?(i.addValidatorToQueue(),$.validateCell($.getDataAtCell(s,e),$.getCellMeta(s,e),e=>{if("boolean"!=typeof e)throw new Error("Validation error: result is not boolean");!1===e&&(i.valid=!1),i.removeValidatorFormQueue()},"validateCells"),e-=1):e-=1;s-=1}i.checkIfQueueIsEmpty()},this.getRowHeader=function(e){let t=ae.rowHeaders,o=e;return void 0!==o&&(o=$.runHooks("modifyRowHeader",o)),void 0===o?(t=[],(0,y.rangeEach)($.countRows()-1,e=>{t.push($.getRowHeader(e))})):Array.isArray(t)&&void 0!==t[o]?t=t[o]:(0,n.isFunction)(t)?t=t(o):t&&"string"!=typeof t&&"number"!=typeof t&&(t=o+1),t},this.hasRowHeaders=function(){return!!ae.rowHeaders},this.hasColHeaders=function(){if(void 0!==ae.colHeaders&&null!==ae.colHeaders)return!!ae.colHeaders;for(let e=0,t=$.countCols();e<t;e++)if($.getColHeader(e))return!0;return!1},this.getColHeader=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const o=$.runHooks("modifyColHeader",e);if(void 0===o){const e=[],t=$.countCols();for(let o=0;o<t;o++)e.push($.getColHeader(o));return e}let i=ae.colHeaders;const s=$.toPhysicalColumn(o),r=function(e){const t=[],o=$.countCols();let i=0;for(;i<o;i++)(0,n.isFunction)(ae.columns)&&ae.columns(i)&&t.push(i);return t[e]}(s);return!1===ae.colHeaders?i=null:ae.columns&&(0,n.isFunction)(ae.columns)&&ae.columns(r)&&ae.columns(r).title?i=ae.columns(r).title:ae.columns&&ae.columns[s]&&ae.columns[s].title?i=ae.columns[s].title:Array.isArray(ae.colHeaders)&&void 0!==ae.colHeaders[s]?i=ae.colHeaders[s]:(0,n.isFunction)(ae.colHeaders)?i=ae.colHeaders(s):ae.colHeaders&&"string"!=typeof ae.colHeaders&&"number"!=typeof ae.colHeaders&&(i=(0,R.spreadsheetColumnLabel)(o)),i=$.runHooks("modifyColumnHeaderValue",i,e,t),i},this._getColWidthFromSettings=function(e){let t;if(e>=0){t=$.getCellMeta(0,e).width}if(void 0!==t&&t!==ae.width||(t=ae.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=$._getColWidthFromSettings(e);return o=$.runHooks("modifyColWidth",o,e,t),void 0===o&&(o=T.DEFAULT_COLUMN_WIDTH),o},this._getRowHeightFromSettings=function(e){const t=$.stylesHandler.getDefaultRowHeight();let o=ae.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=$._getRowHeightFromSettings(e);return o=$.runHooks("modifyRowHeight",o,e,t),o},this.countSourceRows=function(){return q.countRows()},this.countSourceCols=function(){return q.countFirstRowKeys()},this.countRows=function(){return X.getLength()},this.countCols=function(){const e=ae.maxCols,t=this.columnIndexMapper.getNotTrimmedIndexesLength();return Math.min(e,t)},this.countRenderedRows=function(){return $.view._wt.drawn?$.view._wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return $.view._wt.drawn?$.view._wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return $.view._wt.drawn?$.view._wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return $.view._wt.drawn?$.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)($.countRows()-1,o=>{if($.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)($.countCols()-1,o=>{if($.isEmptyCol(o))t+=1;else if(!0===e)return!1}),t},this.isEmptyRow=function(e){return ae.isEmptyRow.call($,e)},this.isEmptyCol=function(e){return ae.isEmptyCol.call($,e)},this.selectCell=function(e,t,o,i){let s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],n=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return!(0,r.isUndefined)(e)&&!(0,r.isUndefined)(t)&&this.selectCells([[e,t,o,i]],s,n)},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])&&ee.suspend();const o=ue.selectCells(e);return o&&t&&$.listen(),ee.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 ue.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 ue.selectRows(e,t,o)},this.deselectCell=function(){ue.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;ee.skipNextScrollCycle(),ue.selectAll(e,t,o)};const ve=(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:i,col:s,considerHiddenIndexes:r}=null!=e?e:{};let a=i,l=s;if((0,n.isFunction)(t)&&this.addHookOnce("afterScroll",t),void 0===r||r){const e=Number.isInteger(i)&&i>=0,t=Number.isInteger(s)&&s>=0,o=e?ve(this.rowIndexMapper,i):void 0,n=t?ve(this.columnIndexMapper,s):void 0;if(null===o||null===n)return!1;a=e?$.rowIndexMapper.getRenderableFromVisualIndex(o):i,l=t?$.columnIndexMapper.getRenderableFromVisualIndex(n):s}const h=Number.isInteger(a),c=Number.isInteger(l);let u=!1;return h&&a>=0&&c&&l>=0?u=$.view.scrollViewport($._createCellCoords(a,l),e.horizontalSnap,e.verticalSnap):h&&a>=0&&(c&&l<0||!c)?u=$.view.scrollViewportVertically(a,e.verticalSnap):c&&l>=0&&(h&&a<0||!h)&&(u=$.view.scrollViewportHorizontally(l,e.horizontalSnap)),(0,n.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,n.isFunction)(e)&&this.addHookOnce("afterScroll",e);const{highlight:t}=this.getSelectedRangeActive(),o=this.scrollViewportTo(t.toObject());return o?this.view.render():(0,n.isFunction)(e)&&(this.removeHook("afterScroll",e),this._registerMicrotask(()=>e())),o},this.destroy=function(){$._clearTimeouts(),$._clearImmediates(),$.view&&$.view.destroy(),q&&q.destroy(),q=null,(0,_.isRootInstance)(this)&&(0,F.uninstall)(),this.getShortcutManager().destroy(),ce.clear(),re.clearCache(),j.delete(this.guid),K.destroy(),J&&J.destroy(),$.rootContainer&&(0,s.empty)($.rootContainer),$.rootPortalElement&&$.rootPortalElement.remove(),$.batchExecution(()=>{$.rowIndexMapper.unregisterAll(),$.columnIndexMapper.unregisterAll(),he.getItems().forEach(e=>{let[,t]=e;t.destroy()}),he.clear(),$.runHooks("afterDestroy")},!0),M.Hooks.getSingleton().destroy($),(0,c.objectEach)($,(e,t,o)=>{var i;(0,n.isFunction)(e)?o[t]=(i=t,()=>{throw new Error(`The "${i}" method cannot be called because this Handsontable instance has been destroyed`)}):"guid"!==t&&(o[t]=null)}),$.isDestroyed=!0,X&&X.destroy(),X=null,Q=null,ue=null,J=null,$=null},this.getActiveEditor=function(){return J.getActiveEditor()},this.getFirstRenderedVisibleRow=function(){return $.view.getFirstRenderedVisibleRow()},this.getLastRenderedVisibleRow=function(){return $.view.getLastRenderedVisibleRow()},this.getFirstRenderedVisibleColumn=function(){return $.view.getFirstRenderedVisibleColumn()},this.getLastRenderedVisibleColumn=function(){return $.view.getLastRenderedVisibleColumn()},this.getFirstFullyVisibleRow=function(){return $.view.getFirstFullyVisibleRow()},this.getLastFullyVisibleRow=function(){return $.view.getLastFullyVisibleRow()},this.getFirstFullyVisibleColumn=function(){return $.view.getFirstFullyVisibleColumn()},this.getLastFullyVisibleColumn=function(){return $.view.getLastFullyVisibleColumn()},this.getFirstPartiallyVisibleRow=function(){return $.view.getFirstPartiallyVisibleRow()},this.getLastPartiallyVisibleRow=function(){return $.view.getLastPartiallyVisibleRow()},this.getFirstPartiallyVisibleColumn=function(){return $.view.getFirstPartiallyVisibleColumn()},this.getLastPartiallyVisibleColumn=function(){return $.view.getLastPartiallyVisibleColumn()},this.getPlugin=function(e){return he.getItem((0,v.toUpperCaseFirst)(e))},this.getPluginName=function(e){return e===this.undoRedo?this.undoRedo.constructor.PLUGIN_KEY:he.getId(e)},this.getInstance=function(){return $},this.addHook=function(e,t,o){M.Hooks.getSingleton().add(e,t,$,o)},this.hasHook=function(e){return M.Hooks.getSingleton().has(e,$)||M.Hooks.getSingleton().has(e)},this.addHookOnce=function(e,t,o){M.Hooks.getSingleton().once(e,t,$,o)},this.removeHook=function(e,t){M.Hooks.getSingleton().remove(e,t,$)},this.runHooks=function(e,t,o,i,s,n,r){return M.Hooks.getSingleton().run($,e,t,o,i,s,n,r)},this.getTranslatedPhrase=function(e,t){return(0,I.getTranslatedPhrase)(ae.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=!!te;this.stylesHandler.useTheme(e);const o=this.stylesHandler.getThemeName();t||($.render(),$.scrollViewportTo(0,0),(0,D.getThemeClassName)(this.rootContainer)&&((0,s.removeClass)(this.rootContainer,/ht-theme-.*/g),o&&(0,s.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 J};const ye=(0,x.createShortcutManager)({handleEvent:()=>$.isListening(),beforeKeyDown:e=>this.runHooks("beforeKeyDown",e),afterKeyDown:e=>{this.isDestroyed||$.runHooks("afterDocumentKeyDown",e)},ownerWindow:this.rootWindow});this.addHook("beforeOnCellMouseDown",e=>{!1===e.ctrlKey&&!1===e.metaKey&&ye.releasePressedKeys()}),this.getShortcutManager=function(){return ye},this.getFocusManager=function(){return Z},(0,p.getPluginsNames)().forEach(e=>{const t=(0,p.getPlugin)(e);he.addItem(e,new t(this))}),(0,k.registerAllShortcutContexts)($),ye.setActiveContextName("grid"),M.Hooks.getSingleton().run($,"construct")},o(52490),o(99356),o(89083),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(29810),o(31143),o(940),o(38950);var s=o(78966),n=o(81761),r=o(7886),a=o(40929),l=i(o(83055)),h=i(o(59468)),c=o(4138),u=o(75548),d=o(94576),g=o(40920),f=o(25854),p=o(92641),m=o(88181),w=o(89211),C=o(36780),v=o(2744),y=o(58604),S=i(o(92582)),E=i(o(81217)),R=o(9013),b=o(55656),_=o(88422),T=o(13743),M=o(23228),I=o(63061),O=o(35701),A=o(79930),N=o(5714),P=o(51219),H=o(79675),x=o(28055),k=o(13390),D=o(3631),L=o(14443),V=o(7120),W=o(21034),F=o(48370),B=o(84566);let U=null;const Y=new WeakSet,j=new Map;new Set},50415:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(3639)),n=i(o(44013)),r=i(o(62578)),a=o(4138),l=o(99700);class h extends s.default{constructor(e,t,o,i){super(e,t,o,i,l.CLONE_BOTTOM_INLINE_START_CORNER)}}(0,a.mixin)(h,n.default),(0,a.mixin)(h,r.default);t.default=h},50494:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(21831),s=o(24895),n=o(11840);const r=t.CELL_TYPE="checkbox";t.CheckboxCellType={CELL_TYPE:r,editor:i.CheckboxEditor,renderer:s.checkboxRenderer,valueSetter:n.valueSetter}},50506:(e,t,o)=>{"use strict";var i=o(72820),s=o(77439),n=o(94178),r=o(70792),a=o(90501),l=o(21177),h=o(99793),c=o(14483)("find",TypeError);i({target:"Iterator",proto:!0,real:!0,forced:c},{find:function(e){a(this);try{r(e)}catch(e){h(this,"throw",e)}if(c)return s(c,this,e);var t=l(this),o=0;return n(t,function(t,i){if(e(t,o++))return i(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},51219:(e,t,o)=>{"use strict";o(34478),o(31143),t.__esModule=!0;var i=o(71740);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))});var s=o(11991);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))})},51456:(e,t,o)=>{"use strict";var i=o(77439),s=o(90501),n=o(21177),r=o(71449);e.exports=function(e,t){t&&"string"==typeof e||s(e);var o=r(e);return n(s(void 0!==o?i(o,e):e))}},51610:(e,t,o)=>{"use strict";t.__esModule=!0,t.registerAllEditors=function(){(0,f.registerEditor)(s.BaseEditor),(0,f.registerEditor)(i.AutocompleteEditor),(0,f.registerEditor)(n.CheckboxEditor),(0,f.registerEditor)(r.DateEditor),(0,f.registerEditor)(a.DropdownEditor),(0,f.registerEditor)(l.HandsontableEditor),(0,f.registerEditor)(h.NumericEditor),(0,f.registerEditor)(c.PasswordEditor),(0,f.registerEditor)(u.SelectEditor),(0,f.registerEditor)(d.TextEditor),(0,f.registerEditor)(g.TimeEditor)};var i=o(81518);t.AutocompleteEditor=i.AutocompleteEditor,t.AUTOCOMPLETE_EDITOR=i.EDITOR_TYPE;var s=o(67347);t.BaseEditor=s.BaseEditor,t.BASE_EDITOR=s.EDITOR_TYPE;var n=o(21831);t.CheckboxEditor=n.CheckboxEditor,t.CHECKBOX_EDITOR=n.EDITOR_TYPE;var r=o(17286);t.DateEditor=r.DateEditor,t.DATE_EDITOR=r.EDITOR_TYPE;var a=o(24135);t.DropdownEditor=a.DropdownEditor,t.DROPDOWN_EDITOR=a.EDITOR_TYPE;var l=o(19975);t.HandsontableEditor=l.HandsontableEditor,t.HANDSONTABLE_EDITOR=l.EDITOR_TYPE;var h=o(42595);t.NumericEditor=h.NumericEditor,t.NUMERIC_EDITOR=h.EDITOR_TYPE;var c=o(64143);t.PasswordEditor=c.PasswordEditor,t.PASSWORD_EDITOR=c.EDITOR_TYPE;var u=o(35234);t.SelectEditor=u.SelectEditor,t.SELECT_EDITOR=u.EDITOR_TYPE;var d=o(32813);t.TextEditor=d.TextEditor,t.TEXT_EDITOR=d.EDITOR_TYPE;var g=o(73079);t.TimeEditor=g.TimeEditor,t.TIME_EDITOR=g.EDITOR_TYPE;var f=o(89211);t.registerEditor=f.registerEditor,t.RegisteredEditor=f.RegisteredEditor,t._getEditorInstance=f._getEditorInstance,t.getEditor=f.getEditor,t.getEditorInstance=f.getEditorInstance,t.getRegisteredEditorNames=f.getRegisteredEditorNames,t.getRegisteredEditors=f.getRegisteredEditors,t.hasEditor=f.hasEditor},51798:(e,t,o)=>{"use strict";t.__esModule=!0,t.loadingContent=function(e){let{id:t,icon:o,title:s,description:n}=e;return`\n <div class="${i.LOADING_CLASS_NAME}__content">\n <i class="${i.LOADING_CLASS_NAME}__icon">${o}</i>\n <div class="${i.LOADING_CLASS_NAME}__text">\n <h2 id="${t}-${i.PLUGIN_KEY}-title" class="${i.LOADING_CLASS_NAME}__title">${s}</h2>\n ${n?`<p id="${t}-${i.PLUGIN_KEY}-description" class="${i.LOADING_CLASS_NAME}__description">${n}</p>`:""}\n </div>\n </div>\n `};var i=o(34651)},51839:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(99234);t.parse=i.parse,t.stringify=i.stringify},51997:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(8249),o(31835);var s=i(o(24300));t.PartiallyVisibleColumnsCalculationType=class{constructor(){(0,s.default)(this,"count",0),(0,s.default)(this,"startColumn",null),(0,s.default)(this,"endColumn",null),(0,s.default)(this,"startPosition",null),(0,s.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedWidth:o,zeroBasedScrollOffset:i,viewportWidth:s}=t;o<=i&&(this.startColumn=e);o>=i&&o<=i+(i>0?s+1:s)&&(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=e)),this.endColumn=e}finalize(e){var t;const{scrollOffset:o,viewportWidth:i,inlineStartOffset:s,zeroBasedScrollOffset:n,totalColumns:r,needReverse:a,startPositions:l,columnWidth:h}=e;if(this.endColumn===r-1&&a)for(this.startColumn=this.endColumn;this.startColumn>0;){const e=l[this.endColumn]+h-l[this.startColumn-1];if(this.startColumn-=1,e>i)break}this.startPosition=null!==(t=l[this.startColumn])&&void 0!==t?t:null;o+i-(n>0?i+1:i)<-1*s||o>l.at(-1)+h||-1*o-i>0?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,r<this.endColumn&&(this.endColumn=r-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}},52183: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},52232:(e,t,o)=>{"use strict";var i=o(77439),s=o(19451),n=o(14815),r=o(67987),a=o(99677),l=RegExp.prototype;e.exports=r.correct?function(e){return e.flags}:function(e){return r.correct||!n(l,e)||s(e,"flags")?e.flags:i(a,e)}},52355:(e,t,o)=>{"use strict";var i=o(77439),s=o(15176),n=o(65455),r=o(85988),a=o(29516),l=o(12033),h=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!s(e)||n(e))return e;var o,l=r(e,c);if(l){if(void 0===t&&(t="default"),o=i(l,e,t),!s(o)||n(o))return o;throw new h("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},52490:(e,t,o)=>{"use strict";var i=o(72820),s=o(94266),n=o(69019),r=o(42559),a="WebAssembly",l=s[a],h=7!==new Error("e",{cause:7}).cause,c=function(e,t){var o={};o[e]=r(e,t,h),i({global:!0,constructor:!0,arity:1,forced:h},o)},u=function(e,t){if(l&&l[e]){var o={};o[e]=r(a+"."+e,t,h),i({target:a,stat:!0,constructor:!0,arity:1,forced:h},o)}};c("Error",function(e){return function(t){return n(e,this,arguments)}}),c("EvalError",function(e){return function(t){return n(e,this,arguments)}}),c("RangeError",function(e){return function(t){return n(e,this,arguments)}}),c("ReferenceError",function(e){return function(t){return n(e,this,arguments)}}),c("SyntaxError",function(e){return function(t){return n(e,this,arguments)}}),c("TypeError",function(e){return function(t){return n(e,this,arguments)}}),c("URIError",function(e){return function(t){return n(e,this,arguments)}}),u("CompileError",function(e){return function(t){return n(e,this,arguments)}}),u("LinkError",function(e){return function(t){return n(e,this,arguments)}}),u("RuntimeError",function(e){return function(t){return n(e,this,arguments)}})},52637:(e,t,o)=>{"use strict";var i,s,n=o(94266),r=o(92853),a=n.process,l=n.Deno,h=a&&a.versions||l&&l.version,c=h&&h.v8;c&&(s=(i=c.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!s&&r&&(!(i=r.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=r.match(/Chrome\/(\d+)/))&&(s=+i[1]),e.exports=s},52653:(e,t,o)=>{"use strict";var i=o(72820),s=o(77439),n=o(70792),r=o(90501),a=o(21177),l=o(51456),h=o(64276),c=o(99793),u=o(33973),d=o(47150),g=o(14483),f=!u&&!d("flatMap",function(){}),p=!u&&!f&&g("flatMap",TypeError),m=u||f||p,w=h(function(){for(var e,t,o=this.iterator,i=this.mapper;;){if(t=this.inner)try{if(!(e=r(s(t.next,t.iterator))).done)return e.value;this.inner=null}catch(e){c(o,"throw",e)}if(e=r(s(this.next,o)),this.done=!!e.done)return;try{this.inner=l(i(e.value,this.counter++),!1)}catch(e){c(o,"throw",e)}}});i({target:"Iterator",proto:!0,real:!0,forced:m},{flatMap:function(e){r(this);try{n(e)}catch(e){c(this,"throw",e)}return p?s(p,this,e):new w(a(this),{mapper:e,inner:null})}})},52695:(e,t,o)=>{"use strict";var i=o(72820),s=o(94266),n=o(96127).set,r=o(16610),a=s.setImmediate?r(n,!1):n;i({global:!0,bind:!0,enumerable:!0,forced:s.setImmediate!==a},{setImmediate:a})},52938:(e,t,o)=>{"use strict";var i=o(72820),s=o(77439),n=o(94178),r=o(70792),a=o(90501),l=o(21177),h=o(99793),c=o(14483)("forEach",TypeError);i({target:"Iterator",proto:!0,real:!0,forced:c},{forEach:function(e){a(this);try{r(e)}catch(e){h(this,"throw",e)}if(c)return s(c,this,e);var t=l(this),o=0;n(t,function(t){e(t,o++)},{IS_RECORD:!0})}})},52978:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(29779),s=o(7120),n=o(30738),r=o(78966);let a=!1;class l extends i.BaseRenderer{constructor(e){super(null,e)}adjust(){const{columnsToRender:e,rowHeadersCount:t}=this.table,o=e+t;for(;this.renderedNodes<o;)this.rootNode.appendChild(this.table.rootDocument.createElement("col")),this.renderedNodes+=1;for(;this.renderedNodes>o;)this.rootNode.removeChild(this.rootNode.lastChild),this.renderedNodes-=1}render(){this.adjust();const{columnsToRender:e,rowHeadersCount:t}=this.table;!a&&e>1e3&&(a=!0,(0,s.warn)(n.toSingleLine`Performance tip: Handsontable rendered more than 1000 visible columns.\x20
72
72
  Consider limiting the number of rendered columns by specifying the table width and/or\x20
73
73
  turning off the "renderAllColumns" option.`));for(let e=0;e<t;e++){const t=this.table.renderedColumnToSource(e),o=this.table.columnUtils.getHeaderWidth(t);this.rootNode.childNodes[e].style.width=`${o}px`}for(let o=0;o<e;o++){const e=this.table.renderedColumnToSource(o),i=this.table.columnUtils.getWidth(e);this.rootNode.childNodes[o+t].style.width=`${i}px`}const o=this.rootNode.firstChild;o&&(0,r.addClass)(o,"rowHeader")}}t.ColGroupRenderer=l},53001:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},53143:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(38775);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.AutoRowSize=i.AutoRowSize},53341:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=o(26808),n=i(o(77416)),r=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(82919));const a=t.PLUGIN_KEY="exportFile",l=t.PLUGIN_PRIORITY=240;class h extends s.BasePlugin{static get PLUGIN_KEY(){return a}static get PLUGIN_PRIORITY(){return l}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:i}=this.hot,s=this._createTypeFormatter(e,t),n=this._createBlob(s),r=i.URL||i.webkitURL,a=o.createElement("a"),l=`${s.options.filename}.${s.options.fileExtension}`;if(void 0!==a.download){const e=r.createObjectURL(n);a.style.display="none",a.setAttribute("href",e),a.setAttribute("download",l),o.body.appendChild(a),a.dispatchEvent(new MouseEvent("click")),o.body.removeChild(a),setTimeout(()=>{r.revokeObjectURL(e)},100)}else navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob(n,l)}_createTypeFormatter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!r.EXPORT_TYPES[e])throw new Error(`Export format type "${e}" is not supported.`);return(0,r.default)(e,new n.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},53568:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"hidden_rows_hide",name(){const e=this.getSelectedActive();let t=0;if(Array.isArray(e)){const[o,,i]=e;o-i!==0&&(t=1)}return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_HIDE_ROW,t)},callback(){const{from:t,to:o}=this.getSelectedRangeActive(),i=Math.max(Math.min(t.row,o.row),0),s=Math.max(t.row,o.row),n=[];for(let e=i;e<=s;e+=1)n.push(e);e.hideRows(n);const r=n[n.length-1],a=this.rowIndexMapper.getNearestNotHiddenIndex(r,1,!0);Number.isInteger(a)&&a>=0?this.selectRows(a):this.deselectCell(),this.view.adjustElementsSize(),this.render()},disabled:!1,hidden(){return!(this.selection.isSelectedByRowHeader()||this.selection.isSelectedByCorner())}}},o(99356);var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481))},53711:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=i(o(24300)),n=o(7886),r=o(4138),a=i(o(78743)),l=o(78966);const h=t.EDITOR_TYPE="base",c=t.EDITOR_STATE=Object.freeze({VIRGIN:"STATE_VIRGIN",EDITING:"STATE_EDITING",WAITING:"STATE_WAITING",FINISHED:"STATE_FINISHED"});class u{static get EDITOR_TYPE(){return h}constructor(e){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"state",c.VIRGIN),(0,s.default)(this,"_opened",!1),(0,s.default)(this,"_fullEditMode",!1),(0,s.default)(this,"_closeCallback",null),(0,s.default)(this,"TD",null),(0,s.default)(this,"row",null),(0,s.default)(this,"col",null),(0,s.default)(this,"prop",null),(0,s.default)(this,"originalValue",null),(0,s.default)(this,"cellProperties",null),this.hot=e,this.init()}_fireCallbacks(e){this._closeCallback&&(this._closeCallback(e),this._closeCallback=null)}init(){}getValue(){throw Error("Editor getValue() method unimplemented")}setValue(){throw Error("Editor setValue() method unimplemented")}open(){throw Error("Editor open() method unimplemented")}close(){throw Error("Editor close() method unimplemented")}prepare(e,t,o,i,s,n){this.TD=i,this.row=e,this.col=t,this.prop=o,this.originalValue=s,this.cellProperties=n,this.state=this.isOpened()?this.state:c.VIRGIN}extend(){return class extends this.constructor{}}saveValue(e,t){let o,i,s,n;if(t){const e=this.hot.getSelectedRangeActive(),t=e.getTopStartCorner(),r=e.getBottomEndCorner();o=t.row,i=t.col,s=r.row,n=r.col}else[o,i,s,n]=[this.row,this.col,null,null];const r=this.hot.runHooks("modifyGetCellCoords",o,i,!1,"meta");Array.isArray(r)&&([o,i]=r),this.hot.populateFromArray(o,i,e,s,n,"edit")}beginEditing(e,t){if(this.state!==c.VIRGIN)return;const o=this.hot,i=o.rowIndexMapper.getRenderableFromVisualIndex(this.row),s=o.columnIndexMapper.getRenderableFromVisualIndex(this.col),r=()=>{if(this.state=c.EDITING,this.isInFullEditMode()){const t=this.cellProperties.valueGetter?this.cellProperties.valueGetter(this.originalValue):this.originalValue,o="string"==typeof e?e:(0,n.stringify)(t);this.setValue(o)}this.open(t),this._opened=!0,this.focus(),o.view.render(),o.runHooks("afterBeginEditing",this.row,this.col)};this.hot.addHookOnce("afterScroll",r);o.view.scrollViewport(o._createCellCoords(i,s))||(this.hot.removeHook("afterScroll",r),r()),this.addHook("beforeDialogShow",()=>this.cancelChanges())}finishEditing(e,t,o){let i;if(o){const e=this._closeCallback;this._closeCallback=t=>{e&&e(t),o(t),this.hot.view.render()}}if(!this.isWaiting())if(this.state!==c.VIRGIN){if(this.state===c.EDITING){if(e)return this.cancelChanges(),void this.hot.view.render();const o=this.getValue();i=this.cellProperties.trimWhitespace?[["string"==typeof o?String.prototype.trim.call(o||""):o]]:[[o]],this.state=c.WAITING,this.saveValue(i,t),this.hot.getCellValidator(this.cellProperties)?this.hot.addHookOnce("postAfterValidate",e=>{this.state=c.FINISHED,this.discardEditor(e)}):(this.state=c.FINISHED,this.discardEditor(!0))}}else this.hot._registerTimeout(()=>{this._fireCallbacks(!0)})}cancelChanges(){this.state=c.FINISHED,this.discardEditor()}discardEditor(e){if(this.state===c.FINISHED)if(!1===e&&!0!==this.cellProperties.allowInvalid)this.hot.selectCell(this.row,this.col),this.focus(),this.state=c.EDITING,this._fireCallbacks(!1);else{this.close(),this._opened=!1,this._fullEditMode=!1,this.state=c.VIRGIN,this._fireCallbacks(!0);this.hot.getShortcutManager().setActiveContextName("grid")}}enableFullEditMode(){this._fullEditMode=!0}isInFullEditMode(){return this._fullEditMode}isOpened(){return this._opened}isWaiting(){return this.state===c.WAITING}getEditedCellRect(){var e;const t=this.getEditedCell();if(!t)return;const{wtOverlays:o,wtViewport:i}=this.hot.view._wt,s=this.hot.rootWindow,n=(0,l.offset)(t),r=(0,l.outerWidth)(t),a=(0,l.offset)(this.hot.rootElement),h=(0,l.outerWidth)(this.hot.rootElement),c=o.topOverlay.holder,u=o.inlineStartOverlay.holder,d=c!==s?c.scrollTop:0,g=u!==s?u.scrollLeft:0,f=s.innerWidth-a.left-h,{wtTable:p}=null!==(e=o.getParentOverlay(t))&&void 0!==e?e:this.hot.view._wt,m=p.name,w=["master","inline_start"].includes(m)?d:0,C=["master","top","bottom"].includes(m)?g:0,v=n.top===a.top?0:1;let y=n.top-a.top-v-w,S=0;S=this.hot.isRtl()?s.innerWidth-n.left-r-f-1+C:n.left-a.left-1-C,["top","top_inline_start_corner"].includes(m)&&(y+=o.topOverlay.getOverlayOffset()),["inline_start","top_inline_start_corner"].includes(m)&&(S+=Math.abs(o.inlineStartOverlay.getOverlayOffset()));const E=this.hot.hasColHeaders(),R=this.hot.rowIndexMapper.getRenderableFromVisualIndex(this.row),b=this.hot.columnIndexMapper.getRenderableFromVisualIndex(this.col),_=this.hot.rowIndexMapper.getRenderableIndexesLength()-this.hot.view._wt.getSetting("fixedRowsBottom");(E&&R<=0||R===_)&&(y+=1),b<=0&&(S+=1);const T=i.rowsRenderCalculator.startPosition,M=i.columnsRenderCalculator.startPosition,I=Math.abs(o.inlineStartOverlay.getScrollPosition()),O=o.topOverlay.getScrollPosition(),A=(0,l.getScrollbarWidth)(this.hot.rootDocument);let N=t.offsetTop;if(["inline_start","master"].includes(m)&&(N+=T-O),["bottom","bottom_inline_start_corner"].includes(m)){const{wtViewport:e,wtTable:t}=o.bottomOverlay.clone;N+=e.getWorkspaceHeight()-t.getHeight()-A}let P=t.offsetLeft;this.hot.isRtl()?(P=P>=0?p.getWidth()-t.offsetLeft:Math.abs(P),P+=M-I-r):["top","master","bottom"].includes(m)&&(P+=M-I);const H=s.getComputedStyle(this.TD),x=this.hot.isRtl()?"borderRightWidth":"borderLeftWidth",k=parseInt(H[x],10)>0?0:1,D=parseInt(H.borderTopWidth,10)>0?0:1,L=(0,l.outerWidth)(t)+k,V=(0,l.outerHeight)(t)+D,W=(0,l.hasVerticalScrollbar)(c)?A:0,F=(0,l.hasHorizontalScrollbar)(u)?A:0,B=this.hot.view.maximumVisibleElementWidth(P)-W+k;return{top:y,start:S,height:V,maxHeight:Math.max(this.hot.view.maximumVisibleElementHeight(N)-F+D,this.hot.stylesHandler.getDefaultRowHeight()),width:L,maxWidth:B}}getEditedCellsLayerClass(){switch(this.checkEditorSection()){case"inline-start":return"ht_clone_left ht_clone_inline_start";case"bottom":return"ht_clone_bottom";case"bottom-inline-start-corner":return"ht_clone_bottom_left_corner ht_clone_bottom_inline_start_corner";case"top":return"ht_clone_top";case"top-inline-start-corner":return"ht_clone_top_left_corner ht_clone_top_inline_start_corner";default:return"ht_clone_master"}}getEditedCell(){return this.hot.getCell(this.row,this.col,!0)}checkEditorSection(){const e=this.hot.countRows();let t="";return this.row<this.hot.getSettings().fixedRowsTop?t=this.col<this.hot.getSettings().fixedColumnsStart?"top-inline-start-corner":"top":this.hot.getSettings().fixedRowsBottom&&this.row>=e-this.hot.getSettings().fixedRowsBottom?t=this.col<this.hot.getSettings().fixedColumnsStart?"bottom-inline-start-corner":"bottom":this.col<this.hot.getSettings().fixedColumnsStart&&(t="inline-start"),t}}t.BaseEditor=u,(0,r.mixin)(u,a.default)},53718:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionUpByViewportHeight",callback(e){const{selection:t,rowIndexMapper:o}=e,{to:i}=e.getSelectedRangeActive(),s=Math.max(i.row-e.countVisibleRows(),0),n=o.getNearestNotHiddenIndex(s,1);if(null!==n){const o=e._createCellCoords(n,i.col),s=i.row-e.getFirstFullyVisibleRow(),r=Math.max(o.row-s,0);t.markSource("keyboard"),t.setRangeEnd(o,e.getActiveSelectionLayerIndex()),t.markEndSource(),e.scrollViewportTo({row:r,verticalSnap:"top",horizontalSnap:"start"})}}}},53872:(e,t,o)=>{"use strict";var i=o(49887),s=TypeError;e.exports=function(e){if(i(e))throw new s("Can't call method on "+e);return e}},53912:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(17286),s=o(56882),n=o(12294);const r=t.CELL_TYPE="date";t.DateCellType={CELL_TYPE:r,editor:i.DateEditor,renderer:s.dateRenderer,validator:n.dateValidator}},53931:(e,t,o)=>{"use strict";var i=o(15105);e.exports=i("document","documentElement")},54405:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490);var i=o(26808),s=o(28259),n=o(31363),r=o(4138);function a(e,t,o){l(e,t),t.set(e,o)}function l(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(e,t,o){return e.set(u(e,t),o),o}function c(e,t){return e.get(u(e,t))}function u(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 d=t.PLUGIN_KEY="dialog",g=t.PLUGIN_PRIORITY=360,f=d,p=`plugin:${d}`;var m=new WeakMap,w=new WeakMap,C=new WeakMap,v=new WeakMap,y=new WeakSet;class S extends i.BasePlugin{constructor(){var e,t;super(...arguments),l(e=this,t=y),t.add(e),a(this,m,null),a(this,w,!1),a(this,C,null),a(this,v,null)}static get PLUGIN_KEY(){return d}static get PLUGIN_PRIORITY(){return g}static get DEFAULT_SETTINGS(){return{content:"",customClassName:"",background:"solid",contentBackground:!1,animation:!0,closable:!1,a11y:{role:"dialog",ariaLabel:"Dialog",ariaLabelledby:"",ariaDescribedby:""}}}static get SETTINGS_VALIDATORS(){return{content:e=>"string"==typeof e||"undefined"!=typeof HTMLElement&&e instanceof HTMLElement||"undefined"!=typeof DocumentFragment&&e instanceof DocumentFragment,customClassName:e=>"string"==typeof e,background:e=>["solid","semi-transparent"].includes(e),contentBackground:e=>"boolean"==typeof e,animation:e=>"boolean"==typeof e,closable:e=>"boolean"==typeof e,a11y:e=>(0,r.isObject)(e)&&(void 0===(null==e?void 0:e.role)||["dialog","alertdialog"].includes(null==e?void 0:e.role))&&(void 0===(null==e?void 0:e.ariaLabel)||"string"==typeof(null==e?void 0:e.ariaLabel))&&(void 0===(null==e?void 0:e.ariaLabelledby)||"string"==typeof(null==e?void 0:e.ariaLabelledby))&&(void 0===(null==e?void 0:e.ariaDescribedby)||"string"==typeof(null==e?void 0:e.ariaDescribedby))}}isEnabled(){return!!this.hot.getSettings()[d]}enablePlugin(){this.enabled||(c(m,this)||(h(m,this,new s.DialogUI({rootElement:this.hot.rootGridElement,isRtl:this.hot.isRtl()})),c(m,this).addLocalHook("clickDialogElement",()=>u(y,this,_).call(this)),h(C,this,(0,n.installFocusDetector)(this.hot,c(m,this).getDialogElement(),{onFocus:e=>{this.hot.getShortcutManager().setActiveContextName(p),this.hot.listen(),this.hot.runHooks("afterDialogFocus",`tab_${e}`)}}))),u(y,this,E).call(this),this.addHook("modifyFocusOnTabNavigation",e=>u(y,this,b).call(this,e),1),this.addHook("afterViewRender",()=>u(y,this,I).call(this)),this.addHook("afterListen",()=>u(y,this,T).call(this)),this.addHook("afterUnlisten",()=>u(y,this,M).call(this)),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.hide(),u(y,this,R).call(this),super.disablePlugin()}isVisible(){return c(w,this)}show(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.enabled)return;if(this.isVisible())return void this.update(e);this.hot.runHooks("beforeDialogShow"),this.update(e),c(m,this).showDialog(this.getSetting("animation")),h(w,this,!0),h(v,this,this.hot.selection.exportSelection()),this.hot.deselectCell(),this.hot.runHooks("afterDialogShow");const{activeElement:t}=this.hot.rootDocument;(this.hot.rootWrapperElement.contains(t)||this.hot.rootPortalElement.contains(t))&&(this.hot.unlisten(),this.hot.getShortcutManager().setActiveContextName(p),this.hot.listen(),c(m,this).focusDialog(),this.hot.runHooks("afterDialogFocus","show"))}hide(){this.isVisible()&&(this.hot.runHooks("beforeDialogHide"),c(m,this).hideDialog(this.getSetting("animation")),this.hot.getShortcutManager().setActiveContextName("grid"),h(w,this,!1),c(v,this)?(this.hot.selection.importSelection(c(v,this)),this.hot.view.render(),h(v,this,null)):this.hot.selectCell(0,0),this.hot.runHooks("afterDialogHide"))}update(e){this.enabled&&(this.updatePluginSettings(e),c(m,this).updateDialog({isVisible:this.isVisible(),content:this.getSetting("content"),customClassName:this.getSetting("customClassName"),background:this.getSetting("background"),contentBackground:this.getSetting("contentBackground"),animation:this.getSetting("animation"),a11y:this.getSetting("a11y")}))}focus(){c(m,this).focusDialog()}destroy(){var e;null===(e=c(m,this))||void 0===e||e.destroyDialog(),h(m,this,null),h(w,this,!1),h(C,this,null),h(v,this,null),super.destroy()}}function E(){var e;const t=this.hot.getShortcutManager(),o=null!==(e=t.getContext(p))&&void 0!==e?e:t.addContext(p);o.addShortcut({keys:[["Escape"]],callback:()=>{this.hide()},runOnlyIf:()=>c(w,this)&&this.getSetting("closable"),group:f}),o.addShortcut({keys:[["Shift","Tab"],["Tab"]],preventDefault:!1,callback:e=>{this.hot._registerTimeout(()=>{const{activeElement:t}=this.hot.rootDocument;c(m,this).isInsideDialog(t)?e.shiftKey?this.hot.runHooks("dialogFocusPreviousElement"):this.hot.runHooks("dialogFocusNextElement"):this.hot.unlisten()},0)},group:f})}function R(){this.hot.getShortcutManager().getContext(p).removeShortcutsByGroup(f)}function b(e){if(this.isVisible())return c(C,this).focus(e),!1}function _(){this.isVisible()&&!this.hot.isListening()&&(this.hot.getShortcutManager().setActiveContextName(p),this.hot.runHooks("afterDialogFocus","click")),this.hot.listen()}function T(){c(C,this).deactivate()}function M(){c(C,this).activate()}function I(){const{view:e,rootWrapperElement:t,rootWindow:o}=this.hot,i=e.isHorizontallyScrollableByWindow()?e.getTotalTableWidth():e.getWorkspaceWidth();c(m,this).updateWidth(i);const s=t.querySelector(".hot-display-license-info");if(s){const e=s.offsetHeight,t=parseFloat(o.getComputedStyle(s).marginTop);c(m,this).updateHeight(e+t)}}t.Dialog=S},54499:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(91173);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.DropdownMenu=i.DropdownMenu},54539:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(22715),r=o(18514);t.ViewSizeSet=class{constructor(){(0,s.default)(this,"size",new n.ViewSize),(0,s.default)(this,"workingSpace",r.WORKING_SPACE_ALL),(0,s.default)(this,"sharedSize",null)}setSize(e){this.size.setSize(e)}setOffset(e){this.size.setOffset(e)}getViewSize(){return this.size}isShared(){return null!==this.sharedSize}isPlaceOn(e){return this.workingSpace===e}append(e){this.workingSpace=r.WORKING_SPACE_TOP,e.workingSpace=r.WORKING_SPACE_BOTTOM,this.sharedSize=e.getViewSize()}prepend(e){this.workingSpace=r.WORKING_SPACE_BOTTOM,e.workingSpace=r.WORKING_SPACE_TOP,this.sharedSize=e.getViewSize()}}},54657:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(25325);t.RENDERER_TYPE=i.RENDERER_TYPE,t.textRenderer=i.textRenderer},54711:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=i(o(24300)),n=o(26808),r=o(23228),a=o(94576),l=o(4138),h=o(76323),c=o(46337),u=o(88711),d=o(83914),g=o(78966),f=o(58226);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;r.Hooks.getSingleton().register("afterContextMenuDefaultOptions"),r.Hooks.getSingleton().register("beforeContextMenuShow"),r.Hooks.getSingleton().register("afterContextMenuShow"),r.Hooks.getSingleton().register("afterContextMenuHide"),r.Hooks.getSingleton().register("afterContextMenuExecute");var y=new WeakSet;class S extends n.BasePlugin{constructor(){super(...arguments),p(this,y),(0,s.default)(this,"commandExecutor",new h.CommandExecutor(this.hot)),(0,s.default)(this,"itemsFactory",null),(0,s.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),i=0;i<t;i++)o[i]=arguments[i];return e.executeCommand.call(e,...o)}),this.addHook("afterOnCellContextMenu",e=>m(y,this,E).call(this,e)),this.addHook("beforeDialogShow",()=>this.close()),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.getSelectedRangeActive();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.getSelectedRangeActive())||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};null!==(t=this.menu)&&void 0!==t&&t.isOpened()||(this.prepareMenuItems(),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(),this.itemsFactory=null}executeCommand(e){null===this.itemsFactory&&this.prepareMenuItems();for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];this.commandExecutor.execute(e,...o)}prepareMenuItems(){this.itemsFactory=new c.ItemsFactory(this.hot,S.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,a.arrayEach)(o,e=>this.commandExecutor.registerCommand(e.key,e))}destroy(){this.close(),this.menu&&this.menu.destroy(),super.destroy()}}function E(e){const t=this.hot.getSettings(),o=t.rowHeaders,i=t.colHeaders;const s=e.target;if(this.close(),(0,g.hasClass)(s,"handsontableInput"))return;if(e.preventDefault(),e.stopPropagation(),!o&&!i&&!(function(e){return"TD"===e.nodeName||"TD"===e.parentNode.nodeName}(s)||(0,g.hasClass)(s,"current")&&(0,g.hasClass)(s,"wtBorder")))return;const n=(0,d.getDocumentOffsetByElement)(this.menu.container,this.hot.rootDocument);this.open({top:e.clientY+n.top,left:e.clientX+n.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=S,S.SEPARATOR={name:f.SEPARATOR}},55189:(e,t,o)=>{"use strict";t.__esModule=!0,t.handleMouseEvent=function(e,t){a.get(e.type)({isShiftKey:e.shiftKey,isLeftClick:(0,i.isLeftClick)(e)||"touchstart"===e.type,isRightClick:(0,i.isRightClick)(e),...t})},t.mouseDown=s,t.mouseOver=n,t.mouseUp=r,o(34478),o(940);var i=o(47802);function s(e){let{isShiftKey:t,isLeftClick:o,isRightClick:i,coords:s,selection:n,controller:r,cellCoordsFactory:a}=e;const l=n.isSelected()?n.getSelectedRange().current():null,h=n.isSelectedByCorner(),c=n.isSelectedByRowHeader();if(n.markSource("mouse"),t&&l)s.row>=0&&s.col>=0&&!r.cell?n.setRangeEnd(s):(h||c)&&s.row>=0&&s.col>=0&&!r.cell?n.setRangeEnd(a(s.row,s.col)):h&&s.row<0&&!r.column?n.setRangeEnd(a(l.to.row,s.col)):c&&s.col<0&&!r.row?n.setRangeEnd(a(s.row,l.to.col)):(!h&&!c&&s.col<0||h&&s.col<0)&&!r.row?n.selectRows(Math.max(l.from.row,0),s.row,s.col):(!h&&!c&&s.row<0||c&&s.row<0)&&!r.column&&n.selectColumns(Math.max(l.from.col,0),s.col,s.row);else{const e=!n.inInSelection(s),t=o||i&&e;s.row<0&&s.col>=0&&!r.column?t&&n.selectColumns(s.col,s.col,s.row):s.col<0&&s.row>=0&&!r.row?t&&n.selectRows(s.row,s.row,s.col):s.col>=0&&s.row>=0&&!r.cell?t&&n.setRangeStart(s):s.col<0&&s.row<0&&n.selectAll(!0,!0,{disableHeadersHighlight:!0,focusPosition:{row:0,col:0}})}n.markEndSource()}function n(e){let{isLeftClick:t,coords:o,selection:i,controller:s,cellCoordsFactory:n}=e;if(!t)return;const r=i.isSelectedByRowHeader(),a=i.isSelectedByColumnHeader(),l=i.tableProps.countCols(),h=i.tableProps.countRows();i.markSource("mouse"),a&&!s.column?i.setRangeEnd(n(h-1,o.col)):r&&!s.row?i.setRangeEnd(n(o.row,l-1)):s.cell||i.setRangeEnd(o),i.markEndSource()}function r(e){let{isLeftClick:t,selection:o,cellRangeMapper:i}=e;if(!t||"multiple"!==o.settings.selectionMode)return;const s=o.getSelectedRange(),n=s.clone().map(e=>i.toRenderable(e)),r=n.current();if(n.size()>1&&!r.isHeader()&&!o.isMultiple(r)){const e=n.findAll(r);e.length===n.size()?(s.pop(),o.refresh()):e.length>1&&(s.removeLayers(e.map(e=>{let{layer:t}=e;return t})),o.refresh())}}const a=new Map([["touchstart",s],["touchend",r],["mousedown",s],["mouseover",n],["mouseup",r]])},55656:(e,t,o)=>{"use strict";o(34478),o(31143),t.__esModule=!0;var i={IndexMapper:!0,getRegisteredMapsCounter:!0,getIncreasedIndexes:!0,getDecreasedIndexes:!0,alterUtilsFactory:!0},s=o(14245);t.IndexMapper=s.IndexMapper;var n=o(63988);t.getRegisteredMapsCounter=n.getRegisteredMapsCounter;var r=o(17604);t.getIncreasedIndexes=r.getIncreasedIndexes,t.getDecreasedIndexes=r.getDecreasedIndexes,t.alterUtilsFactory=r.alterUtilsFactory;var a=o(17738);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]))})},55805:(e,t,o)=>{"use strict";var i=o(52637),s=o(53001),n=o(94266).String;e.exports=!!Object.getOwnPropertySymbols&&!s(function(){var e=Symbol("symbol detection");return!n(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41})},55823:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(54711);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.ContextMenu=i.ContextMenu},55826:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(31425));t.default=class{constructor(){this.clipboardData=new s.default}preventDefault(){}composedPath(){return[]}}},56013:(e,t,o)=>{"use strict";t.__esModule=!0,t.createArrayAssertion=n,t.intersectValues=function(e,t,o,i){const r=[],a=e===t;let l;a||(l=n(t));return e.forEach(e=>{let t=!1;(a||l(e))&&(t=!0);const n={checked:t,value:e,visualValue:s(e,o)};i&&i(n),r.push(n)}),r},t.sortComparison=function(e,t){if("number"==typeof e&&"number"==typeof t)return e-t;return i(e,t)},t.toEmptyString=r,t.toVisualValue=s,t.unifyColumnValues=function(e){return Array.from(new Set(e)).map(e=>r(e)).sort((e,t)=>"number"==typeof e&&"number"==typeof t?e-t:e===t?0:e>t?1:-1)},o(99356),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(31143),o(940);const i=(0,o(79035).getComparisonFunction)();function s(e,t){let o=e;return""===o&&(o=`(${t})`),o}function n(e){const t=new Set(e);return function(e){return t.has(e)}}function r(e){return null==e?"":e}},56020:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostLeft",callback(e){const{selection:t,columnIndexMapper:o}=e,i=e.getSelectedRangeActive().highlight.row;let s=o.getNearestNotHiddenIndex(...e.isRtl()?[e.countCols()-1,-1]:[0,1]);null===s&&(s=e.isRtl()?-1:-e.countRowHeaders()),t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(i,s)),t.markEndSource()}}},56050:(e,t,o)=>{"use strict";var i=o(72820),s=o(71468),n=o(34701);i({target:"Set",proto:!0,real:!0,forced:!o(12874)("symmetricDifference")||!n("symmetricDifference")},{symmetricDifference:s})},56097:(e,t)=>{"use strict";t.__esModule=!0,t.sumCellsHeights=function(e,t,o){const{rowIndexMapper:i,stylesHandler:s}=e,n=s.getDefaultRowHeight();let r=0;for(let l=t;l<t+o;l++){var a;if(!i.isHidden(l))r+=null!==(a=e.getRowHeight(l))&&void 0!==a?a:n,0!==l||s.isClassicTheme()||(r+=1)}return r}},56259:(e,t,o)=>{"use strict";t.__esModule=!0,t.getMoves=function(e,t,o){return function(e){return e.forEach((t,o)=>{e.slice(o+1).forEach(e=>{const o=e.from<e.to;e.from>t.from&&o&&(e.from-=1)})}),e}(function(e,t){const o=[];return e.forEach(e=>{const i={from:e,to:t};o.forEach(e=>{const t=e.from>e.to,o=e.to<=i.from;e.from>i.from&&o&&t&&(i.from+=1)}),i.from>=t&&(t+=1),o.push(i)}),o}(e,function(e,t,o){const i=Array.from(Array(o).keys()).filter(t=>!1===e.includes(t));var s;return 0===t?null!==(s=i[t])&&void 0!==s?s:0:i[t-1]+1}(e,t,o)))},o(99356),o(34478),o(29810),o(31143)},56274:(e,t,o)=>{"use strict";var i=o(19098);e.exports=i([].slice)},56479:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(18350);t.CELL_TYPE=i.CELL_TYPE,t.HandsontableCellType=i.HandsontableCellType},56601:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_ROW_BELOW)},callback(){const e=this.getSelectedRangeActive().getBottomRightCorner();this.alter("insert_row_below",e.row,1,"ContextMenu.rowBelow")},disabled(){const e=this.getSelectedRangeActive();return!!(!e||this.selection.isSelectedByColumnHeader()||e.isSingleHeader()&&e.highlight.row<0||this.countSourceRows()>=this.getSettings().maxRows)},hidden(){return!this.getSettings().allowInsertRow}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481));const s=t.KEY="row_below"},56643:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},56782:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.replaceData=function(e,t,o,i){const{hotInstance:c,dataMap:u,dataSource:d,internalSource:g,source:f,metaManager:p,firstRun:m}=i,w=(0,s.toUpperCaseFirst)(g),C=c.getSettings();Array.isArray(C.dataSchema)?c.dataType="array":(0,n.isFunction)(C.dataSchema)?c.dataType="function":c.dataType="object";u&&u.destroy();e=c.runHooks(`before${w}`,e,m,f);const v=new r.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 i=0,s=0;for(i=0,s=C.startRows;i<s;i++)if("object"!==c.dataType&&"function"!==c.dataType||!C.dataSchema)if("array"===c.dataType)o=(0,a.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,a.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.view.adjustElementsSize(),c.render());c.getSettings().ariaTags&&(0,l.setAttribute)(c.rootElement,[(0,h.A11Y_ROWCOUNT)(-1),(0,h.A11Y_COLCOUNT)(c.countCols()+(c.view?c.countRowHeaders():0))])},o(52490),o(99356);var s=o(2744),n=o(81761),r=i(o(91376)),a=o(4138),l=o(78966),h=o(72609)},56799:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(66133),o(940);var s=o(26808),n=o(78966),r=o(58604),a=o(94576),l=o(58226),h=o(23228),c=i(o(53568)),u=i(o(15999)),d=o(55656);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 S extends s.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),i=0;i<t;i++)o[i]=arguments[i];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,E).call(this,e,t)),this.addHook("afterGetRowHeader",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];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 i=t;const s=f(v,this).getValues().slice(),n=e.length>0;if(o&&n){const t=e.map(e=>this.hot.toPhysicalRow(e));(0,a.arrayEach)(t,e=>{s[e]=!1}),i=(0,a.arrayReduce)(s,(e,t,o)=>(t&&e.push(this.hot.toVisualRow(o)),e),[])}!1!==this.hot.runHooks("beforeUnhideRows",t,i,o&&n)&&(o&&n&&f(v,this).setValues(s),this.hot.runHooks("afterUnhideRows",t,i,o&&n,o&&i.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 i=t;o&&(i=Array.from(new Set(t.concat(e))));!1!==this.hot.runHooks("beforeHideRows",t,i,o)&&(o&&this.hot.batchExecution(()=>{(0,a.arrayEach)(e,e=>{f(v,this).setValueAtIndex(this.hot.toPhysicalRow(e),!0)})},!0),this.hot.runHooks("afterHideRows",t,i,o,o&&i.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,a.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,a.arrayEach)(this.hot.getCellsMeta(),e=>{e.skipRowOnPaste=!1})}destroy(){p(v,this,null),super.destroy()}}function E(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,i,s)=>{t.push({startRow:e,endRow:o,startCol:i,endCol:s})};return(0,a.arrayEach)(e,e=>{let t=!0,i=0;(0,r.rangeEach)(e.startRow,e.endRow,s=>{this.isHidden(s)?(t||o(i,s-1,e.startCol,e.endCol),t=!0):(t&&(i=s),s===e.endRow&&o(i,s,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,n.addClass)(t,o)}function T(e){e.items.push({name:l.SEPARATOR},(0,c.default)(this),(0,u.default)(this))}function M(){const e=this.getSetting("rows");Array.isArray(e)&&this.hideRows(e)}t.HiddenRows=S},56882:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(5879);t.RENDERER_TYPE=i.RENDERER_TYPE,t.dateRenderer=i.dateRenderer},57041:(e,t,o)=>{"use strict";var i=o(9895),s=o(23002),n=i("keys");e.exports=function(e){return n[e]||(n[e]=s(e))}},57198:(e,t,o)=>{var i=o(52183).default;e.exports=function(e,t){if("object"!=i(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var s=o.call(e,t||"default");if("object"!=i(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},57330:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"commentsRemove",name(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_REMOVE_COMMENT)},callback(){this.getSelectedRangeActive().forAll((t,o)=>{t>=0&&o>=0&&e.removeCommentAtCell(t,o,!1)}),this.render()},disabled(){const e=this.getSelectedRangeActive();return!!(!e||e.highlight.isHeader()||this.selection.isEntireRowSelected()&&this.selection.isEntireColumnSelected()||0===this.countRenderedRows()||0===this.countRenderedCols())}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481))},57536:(e,t,o)=>{"use strict";var i=o(41462),s=o(59188),n=o(26023),r=o(94811);e.exports=function(e){var t=i(this),o=r(e);return!(s(t)>o.size)&&!1!==n(t,function(e){if(!o.includes(e))return!1},!0)}},57566:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy_column_headers_only",name(){const e=this.getSelectedRangeActive(),t=e?(0,s.clamp)(e.getWidth()-1,0,1):0;return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY,t)},callback(){e.copyColumnHeadersOnly()},disabled(){if(!this.hasColHeaders())return!0;const e=this.getSelectedRangeActive();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}};var i=o(44481),s=o(58604)},58131:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(66133);var s=i(o(24300)),n=o(78966),r=o(7886),a=o(4138),l=o(81761),h=o(94576),c=o(26808),u=o(55656),d=o(23228),g=o(20106),f=o(13390),p=o(45084),m=o(10416),w=o(19497),C=o(70705),v=o(72609);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 S(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 E=t.PLUGIN_KEY="columnSorting",R=t.PLUGIN_PRIORITY=50,b=t.APPEND_COLUMN_CONFIG_STRATEGY="append",_=t.REPLACE_COLUMN_CONFIG_STRATEGY="replace",T=E;(0,C.registerRootComparator)(E,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,s.default)(this,"columnStatesManager",null),(0,s.default)(this,"columnMetaCache",null),(0,s.default)(this,"pluginKey",E),(0,s.default)(this,"indexesSequenceCache",null)}static get PLUGIN_KEY(){return E}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)=>S(I,this,N).call(this,e,t)),this.addHook("beforeOnCellMouseDown",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return S(I,e,H).call(e,...o)}),this.addHook("afterOnCellMouseDown",(e,t)=>this.onAfterOnCellMouseDown(e,t)),this.addHook("afterInit",()=>S(I,this,A).call(this)),this.addHook("afterLoadData",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return S(I,e,P).call(e,...o)}),this.hot.view&&S(I,this,A).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.getSelectedRangeActive();return this.sort(this.getColumnNextConfig(e.col)),!1},runOnlyIf:()=>{var e,t;const o=null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.highlight;return o&&(null===(t=this.hot.getSelectedRangeActive())||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),i=this.areValidSortConfigs(o);!1!==this.hot.runHooks("beforeColumnSort",t,o,i)&&(0===t.length&&null===this.indexesSequenceCache&&(this.indexesSequenceCache=this.hot.rowIndexMapper.registerMap(this.pluginKey,new u.IndexesSequence),this.indexesSequenceCache.setValues(this.hot.rowIndexMapper.getIndexesSequence())),i&&(this.columnStatesManager.setSortStates(o),this.sortByPresetSortStates(o),this.saveAllSortSettings(o)),this.hot.runHooks("afterColumnSort",t,i?o:t,i),i&&this.hot.render())}clearSort(){this.sort([])}isSorted(){return this.enabled&&!this.columnStatesManager.isListOfSortedColumnsEmpty()}getSortConfig(e){return(0,r.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,r.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,r.isDefined)(t)){const o=(0,p.getNextSortOrder)(t);return(0,r.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),i=-1!==o,s=this.getSortConfig(),n=this.getColumnNextConfig(e);if(i){if((0,r.isUndefined)(n))return[...s.slice(0,o),...s.slice(o+1)];if(t===b)return[...s.slice(0,o),...s.slice(o+1),n];if(t===_)return[...s.slice(0,o),n,...s.slice(o+1)]}return(0,r.isDefined)(n)?s.concat(n):s}getPluginColumnConfig(e){if((0,a.isObject)(e)){const t=e[this.pluginKey];if((0,a.isObject)(t))return t}return{}}getMergedPluginSettings(e){const t=this.hot.getSettings()[this.pluginKey],o=this.columnStatesManager.getAllColumnsProperties(),i=this.hot.getCellMeta(0,e),s=Object.getPrototypeOf(i);return Array.isArray(s.columns)?Object.assign(o,t,this.getPluginColumnConfig(s.columns[e])):(0,l.isFunction)(s.columns)?Object.assign(o,t,this.getPluginColumnConfig(s.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(),i=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(i(e)));const s=(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(i(e)));const n=(0,h.arrayMap)(t,e=>e[0]),r=new Map((0,h.arrayMap)(s,(e,t)=>[e,n[t]])),a=(0,h.arrayMap)(this.hot.rowIndexMapper.getIndexesSequence(),e=>r.has(e)?r.get(e):e);this.hot.rowIndexMapper.setIndexesSequence(a)}sortBySettings(e){if((0,a.isObject)(e)){this.columnStatesManager.updateAllColumnsProperties(e);const t=e.initialConfig;(Array.isArray(t)||(0,a.isObject)(t))&&this.sort(t)}else this.hot.render()}updateHeaderClasses(e){if((0,n.removeClass)(e,(0,m.getClassesToRemove)(e)),!1!==this.enabled){for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];(0,n.addClass)(e,(0,m.getClassesToAdd)(...o))}}onUpdateSettings(e){super.onUpdateSettings(e),null!==this.columnMetaCache&&this.columnMetaCache.init(this.hot.columnIndexMapper.getNumberOfIndexes()),(0,r.isDefined)(e[this.pluginKey])&&this.sortBySettings(e[this.pluginKey])}wasClickableHeaderClicked(e,t){return this.getFirstCellSettings(t)[this.pluginKey].headerAction&&(0,n.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 A(){const e=this.getAllSavedSortSettings();if((0,a.isObject)(e))this.sortBySettings(e);else{const e=this.hot.getSettings()[this.pluginKey];this.sortBySettings(e)}}function N(e,t){const o=(0,p.getHeaderSpanElement)(t);if(!1===(0,p.isFirstLevelColumnHeader)(e,t)||null===o)return;const i=this.getFirstCellSettings(e)[this.pluginKey],s=i.indicator,r=i.headerAction;if(this.updateHeaderClasses(o,this.columnStatesManager,e,s,r),this.hot.getSettings().ariaTags){const o=this.columnStatesManager.getSortOrderOfColumn(e);(0,n.setAttribute)(t,...(0,v.A11Y_SORT)(o?`${o}ending`:"none"))}}function P(e){!0===e&&this.hot.view&&S(I,this,A).call(this)}function H(e,t,o,i){!1!==(0,p.wasHeaderClickedProperly)(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)&&this.hot.getShortcutManager().isCtrlPressed()&&(i.column=!0)}t.ColumnSorting=O},58226:(e,t,o)=>{"use strict";t.__esModule=!0,t.addItem=function(e,t){-1===C.indexOf(e)&&(v[e]=t)},t.predefinedItems=function(){const e={};return(0,i.objectEach)(v,(t,o)=>{e[o]=t()}),e};var i=o(4138),s=w(o(74435));t.ALIGNMENT=s.KEY;var n=w(o(21577));t.CLEAR_COLUMN=n.KEY;var r=w(o(87395));t.COLUMN_LEFT=r.KEY;var a=w(o(72746));t.COLUMN_RIGHT=a.KEY;var l=w(o(5994));t.READ_ONLY=l.KEY;var h=w(o(69468));t.REDO=h.KEY;var c=w(o(98414));t.REMOVE_COLUMN=c.KEY;var u=w(o(90606));t.REMOVE_ROW=u.KEY;var d=w(o(39969));t.ROW_ABOVE=d.KEY;var g=w(o(56601));t.ROW_BELOW=g.KEY;var f=w(o(5705));t.SEPARATOR=f.KEY;var p=w(o(98835));t.NO_ITEMS=p.KEY;var m=w(o(66030));function w(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return(w=function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r})(e,t)}t.UNDO=m.KEY;const C=t.ITEMS=[d.KEY,g.KEY,r.KEY,a.KEY,n.KEY,u.KEY,c.KEY,m.KEY,h.KEY,l.KEY,s.KEY,f.KEY,p.KEY],v={[f.KEY]:f.default,[p.KEY]:p.default,[d.KEY]:d.default,[g.KEY]:g.default,[r.KEY]:r.default,[a.KEY]:a.default,[n.KEY]:n.default,[u.KEY]:u.default,[c.KEY]:c.default,[m.KEY]:m.default,[h.KEY]:h.default,[l.KEY]:l.default,[s.KEY]:s.default}},58299:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(5676);t.VALIDATOR_TYPE=i.VALIDATOR_TYPE,t.numericValidator=i.numericValidator},58301:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(86672);t.VALIDATOR_TYPE=i.VALIDATOR_TYPE,t.timeValidator=i.timeValidator},58391:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(66133),o(940);var s=o(26808),n=o(78966),r=o(58604),a=o(94576),l=o(58226),h=o(23228),c=i(o(80368)),u=i(o(28093)),d=o(55656);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("beforeHideColumns"),h.Hooks.getSingleton().register("afterHideColumns"),h.Hooks.getSingleton().register("beforeUnhideColumns"),h.Hooks.getSingleton().register("afterUnhideColumns");const w=t.PLUGIN_KEY="hiddenColumns",C=t.PLUGIN_PRIORITY=310;var v=new WeakMap,y=new WeakSet;class S extends s.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,columns:[]}}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.columnIndexMapper.registerMap(this.pluginName,f(v,this)),this.addHook("afterContextMenuDefaultOptions",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];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("modifyColWidth",(e,t)=>m(y,this,E).call(this,e,t),2),this.addHook("afterGetColHeader",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];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.columnIndexMapper.unregisterMap(this.pluginName),this.resetCellsMeta()}showColumns(e){const t=this.getHiddenColumns(),o=this.isValidConfig(e);let i=t;const s=f(v,this).getValues().slice(),n=e.length>0;if(o&&n){const t=e.map(e=>this.hot.toPhysicalColumn(e));(0,a.arrayEach)(t,e=>{s[e]=!1}),i=(0,a.arrayReduce)(s,(e,t,o)=>(t&&e.push(this.hot.toVisualColumn(o)),e),[])}!1!==this.hot.runHooks("beforeUnhideColumns",t,i,o&&n)&&(o&&n&&f(v,this).setValues(s),this.hot.view.adjustElementsSize(),this.hot.runHooks("afterUnhideColumns",t,i,o&&n,o&&i.length<t.length))}showColumn(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];this.showColumns(t)}hideColumns(e){const t=this.getHiddenColumns(),o=this.isValidConfig(e);let i=t;o&&(i=Array.from(new Set(t.concat(e))));!1!==this.hot.runHooks("beforeHideColumns",t,i,o)&&(o&&this.hot.batchExecution(()=>{(0,a.arrayEach)(e,e=>{f(v,this).setValueAtIndex(this.hot.toPhysicalColumn(e),!0)})},!0),this.hot.runHooks("afterHideColumns",t,i,o,o&&i.length>t.length))}hideColumn(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];this.hideColumns(t)}getHiddenColumns(){return(0,a.arrayMap)(f(v,this).getHiddenIndexes(),e=>this.hot.toVisualColumn(e))}isHidden(e){return f(v,this).getValueAtIndex(this.hot.toPhysicalColumn(e))||!1}isValidConfig(e){const t=this.hot.countCols();return!!(Array.isArray(e)&&e.length>0)&&e.every(e=>Number.isInteger(e)&&e>=0&&e<t)}resetCellsMeta(){(0,a.arrayEach)(this.hot.getCellsMeta(),e=>{e.skipColumnOnPaste=!1})}destroy(){p(v,this,null),super.destroy()}}function E(e,t){return this.isHidden(t)?0:this.getSetting("indicators")&&(this.isHidden(t+1)||this.isHidden(t-1))&&"number"==typeof e&&this.hot.hasColHeaders()?e+15:void 0}function R(e,t,o){if(!1===this.getSetting("copyPasteEnabled")&&this.isHidden(t)&&(o.skipColumnOnPaste=!0),this.isHidden(t-1))o.className=o.className||"",-1===o.className.indexOf("afterHiddenColumn")&&(o.className+=" afterHiddenColumn");else if(o.className){const e=o.className.split(" ");if(e.length>0){const t=e.indexOf("afterHiddenColumn");t>-1&&e.splice(t,1),o.className=e.join(" ")}}}function b(e){if(this.getSetting("copyPasteEnabled"))return e;const t=[],o=(e,o,i,s)=>{t.push({startRow:e,endRow:o,startCol:i,endCol:s})};return(0,a.arrayEach)(e,e=>{let t=!0,i=0;(0,r.rangeEach)(e.startCol,e.endCol,s=>{this.isHidden(s)?(t||o(e.startRow,e.endRow,i,s-1),t=!0):(t&&(i=s),s===e.endCol&&o(e.startRow,e.endRow,i,s),t=!1)})}),t}function _(e,t){if(!this.getSetting("indicators")||e<0)return;const o=[];e>=1&&this.isHidden(e-1)&&o.push("afterHiddenColumn"),e<this.hot.countCols()-1&&this.isHidden(e+1)&&o.push("beforeHiddenColumn"),(0,n.addClass)(t,o)}function T(e){e.items.push({name:l.SEPARATOR},(0,c.default)(this),(0,u.default)(this))}function M(){const e=this.getSetting("columns");Array.isArray(e)&&this.hideColumns(e)}t.HiddenColumns=S},58584:(e,t,o)=>{"use strict";var i=o(72820),s=o(15105),n=o(69019),r=o(77439),a=o(19098),l=o(53001),h=o(44827),c=o(65455),u=o(56274),d=o(46367),g=o(55805),f=String,p=s("JSON","stringify"),m=a(/./.exec),w=a("".charAt),C=a("".charCodeAt),v=a("".replace),y=a(1.1.toString),S=/[\uD800-\uDFFF]/g,E=/^[\uD800-\uDBFF]$/,R=/^[\uDC00-\uDFFF]$/,b=!g||l(function(){var e=s("Symbol")("stringify detection");return"[null]"!==p([e])||"{}"!==p({a:e})||"{}"!==p(Object(e))}),_=l(function(){return'"\\udf06\\ud834"'!==p("\udf06\ud834")||'"\\udead"'!==p("\udead")}),T=function(e,t){var o=u(arguments),i=d(t);if(h(i)||void 0!==e&&!c(e))return o[1]=function(e,t){if(h(i)&&(t=r(i,this,f(e),t)),!c(t))return t},n(p,null,o)},M=function(e,t,o){var i=w(o,t-1),s=w(o,t+1);return m(E,e)&&!m(R,s)||m(R,e)&&!m(E,i)?"\\u"+y(C(e,0),16):e};p&&i({target:"JSON",stat:!0,arity:3,forced:b||_},{stringify:function(e,t,o){var i=u(arguments),s=n(b?T:p,null,i);return _&&"string"==typeof s?v(s,S,M):s}})},58604:(e,t,o)=>{"use strict";function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const o=typeof e;if("number"===o)return!isNaN(e)&&isFinite(e);if("string"===o){if(0===e.length)return!1;if(1===e.length)return/\d/.test(e);const o=Array.from(new Set([".",...t])).map(e=>`\\${e}`).join("|");return new RegExp(`^[+-]?(((${o})?\\d+((${o})\\d+)?(e[+-]?\\d+)?)|(0x[a-f\\d]+))$`,"i").test(e.trim())}return"object"===o&&!(!e||"number"!=typeof e.valueOf()||e instanceof Date)}t.__esModule=!0,t.clamp=function(e,t,o){if(Math.min(e,t)===e)return t;if(Math.max(e,o)===e)return o;return e},t.getParsedNumber=function(e){const t=e.replace(",",".");if(!1===isNaN(parseFloat(t)))return parseFloat(t);return null},t.isNumeric=i,t.isNumericLike=function(e){return i(e,[","])},t.isUnsignedNumber=function(e){return Number.isInteger(e)&&e>=0},t.rangeEach=function(e,t,o){let i=-1;"function"==typeof t?(o=t,t=e):i=e-1;for(;++i<=t&&!1!==o(i););},t.rangeEachReverse=function(e,t,o){let i=e+1;"function"==typeof t&&(o=t,t=0);for(;--i>=t&&!1!==o(i););},t.valueAccordingPercent=function(e,t){return t=parseInt(t.toString().replace("%",""),10),t=isNaN(t)?0:t,parseInt(e*t/100,10)},o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(940)},58712:(e,t,o)=>{"use strict";t.__esModule=!0,t.valueSetter=function(e){if("string"==typeof e&&(0,i.isNumericLike)(e)){const t=(0,i.getParsedNumber)(e);return(0,s.isNullish)(t)?e:t}return e};var i=o(58604),s=o(28520)},58781:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(2470));t.bottom=s.default;var n=i(o(94312));t.left=n.default;var r=i(o(61123));t.noBorders=r.default;var a=i(o(81963));t.right=a.default;var l=i(o(81890));t.top=l.default},59134:(e,t,o)=>{"use strict";t.__esModule=!0;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}
74
74
  /**