handsontable 16.1.0-next-abd8f2e-20250904 → 16.1.0-next-91b8a0f-20250905
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.
- package/CHANGELOG.md +22 -22
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/core.js +1 -1
- package/core.mjs +1 -1
- package/dist/handsontable.css +2 -2
- package/dist/handsontable.full.css +2 -2
- package/dist/handsontable.full.js +8 -10
- package/dist/handsontable.full.min.css +2 -2
- package/dist/handsontable.full.min.js +6 -6
- package/dist/handsontable.js +8 -10
- package/dist/handsontable.min.css +2 -2
- package/dist/handsontable.min.js +7 -7
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/package.json +1 -1
- package/plugins/dialog/dialog.js +1 -1
- package/plugins/dialog/dialog.mjs +1 -1
- package/plugins/loading/loading.js +1 -3
- package/plugins/loading/loading.mjs +1 -3
- package/styles/handsontable.css +4 -4
- package/styles/handsontable.min.css +3 -3
- package/styles/ht-theme-classic.css +2 -2
- package/styles/ht-theme-classic.min.css +2 -2
- package/styles/ht-theme-horizon.css +2 -2
- package/styles/ht-theme-horizon.min.css +2 -2
- package/styles/ht-theme-main.css +2 -2
- package/styles/ht-theme-main.min.css +2 -2
package/dist/handsontable.min.js
CHANGED
@@ -25,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-
|
29
|
-
* Release date: 11/09/2025 (built at
|
28
|
+
* Version: 16.1.0-next-91b8a0f-20250905
|
29
|
+
* Release date: 11/09/2025 (built at 05/09/2025 09:35:50)
|
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-abd8f2e-20250904";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-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`
|
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
|
@@ -62,15 +62,15 @@ the last node, the show column modification can be applied.`);const{crossHiddenC
|
|
62
62
|
filter operation. Use \`removeConditions\` to clear the current conditions and then add new ones.\x20
|
63
63
|
Mind that you cannot mix different types of operations (for instance, if you use \`conjunction\`,\x20
|
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
|
-
\`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.updateSettings({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
|
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,"&").replace(/</g,"<").replace(/>/g,">").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20{2,}/gi,e=>`<span style="mso-spacerun: yes">${" ".repeat(e.length-1)} </span>`).replace(/\t/gi,"	");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(/^ $/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,"<").replace(/>/g,">").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20/gi," ").replace(/\t/gi,"	");h=`<td ${e.join(" ")}>${t}</td>`}}}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={" ":" ","&":"&","<":"<",">":">"},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="04/09/2025 07:51:06",g.version="16.1.0-next-abd8f2e-20250904",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,"&").replace(/</g,"<").replace(/>/g,">").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20{2,}/gi,e=>`<span style="mso-spacerun: yes">${" ".repeat(e.length-1)} </span>`).replace(/\t/gi,"	");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(/^ $/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,"<").replace(/>/g,">").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20/gi," ").replace(/\t/gi,"	");h=`<td ${e.join(" ")}>${t}</td>`}}}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={" ":" ","&":"&","<":"<",">":">"},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
|
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)}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,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
|
72
72
|
Consider limiting the number of rendered columns by specifying the table width and/or\x20
|
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=340,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)}
|
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
|
/**
|
75
75
|
* @preserve
|
76
76
|
* Authors: Handsoncode
|