handsontable 16.2.0-next-bf17104-20251120 → 16.2.0-next-5b80421-20251121

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25,8 +25,8 @@
25
25
  * INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
26
26
  * USE OR INABILITY TO USE THIS SOFTWARE.
27
27
  *
28
- * Version: 16.2.0-next-bf17104-20251120
29
- * Release date: 25/11/2025 (built at 20/11/2025 13:06:47)
28
+ * Version: 16.2.0-next-5b80421-20251121
29
+ * Release date: 25/11/2025 (built at 21/11/2025 09:38:37)
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={58:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(29342);t.RENDERER_TYPE=i.RENDERER_TYPE,t.numericRenderer=i.numericRenderer,t.getRenderedValue=i.getRenderedValue},67:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(72586);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.MultiColumnSorting=i.MultiColumnSorting},96:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){const t=[];let o=e;D[o]||(o=x);return(0,s.arrayEach)(D[o],e=>{let o;o=e===n.SEPARATOR?{name:n.SEPARATOR}:(0,i.clone)((0,r.getConditionDescriptor)(e)),t.push(o)}),t},o(66182);var i=o(78437),s=o(94857),n=o(50151),r=o(76742),a=o(12557);t.CONDITION_NONE=a.CONDITION_NAME;var l=o(76978);t.CONDITION_EMPTY=l.CONDITION_NAME;var h=o(86485);t.CONDITION_NOT_EMPTY=h.CONDITION_NAME;var c=o(26447);t.CONDITION_EQUAL=c.CONDITION_NAME;var u=o(52392);t.CONDITION_NOT_EQUAL=u.CONDITION_NAME;var d=o(52958);t.CONDITION_GREATER_THAN=d.CONDITION_NAME;var g=o(39267);t.CONDITION_GREATER_THAN_OR_EQUAL=g.CONDITION_NAME;var f=o(2721);t.CONDITION_LESS_THAN=f.CONDITION_NAME;var p=o(27810);t.CONDITION_LESS_THAN_OR_EQUAL=p.CONDITION_NAME;var m=o(54687);t.CONDITION_BETWEEN=m.CONDITION_NAME;var w=o(14760);t.CONDITION_NOT_BETWEEN=w.CONDITION_NAME;var C=o(9961);t.CONDITION_BEGINS_WITH=C.CONDITION_NAME;var v=o(89161);t.CONDITION_ENDS_WITH=v.CONDITION_NAME;var y=o(66058);t.CONDITION_CONTAINS=y.CONDITION_NAME;var S=o(9091);t.CONDITION_NOT_CONTAINS=S.CONDITION_NAME;var E=o(6077);t.CONDITION_DATE_BEFORE=E.CONDITION_NAME;var R=o(43382);t.CONDITION_DATE_AFTER=R.CONDITION_NAME;var b=o(33429);t.CONDITION_TOMORROW=b.CONDITION_NAME;var _=o(46301);t.CONDITION_TODAY=_.CONDITION_NAME;var T=o(65688);t.CONDITION_YESTERDAY=T.CONDITION_NAME;var M=o(46485);t.CONDITION_BY_VALUE=M.CONDITION_NAME;var I=o(58583);t.CONDITION_TRUE=I.CONDITION_NAME;var O=o(33536);t.CONDITION_FALSE=O.CONDITION_NAME;var A=o(59311);t.OPERATION_AND=A.OPERATION_ID;var N=o(14119);t.OPERATION_OR=N.OPERATION_ID;var P=o(65192);t.OPERATION_OR_THEN_VARIABLE=P.OPERATION_ID;const H=t.TYPE_NUMERIC="numeric",x=t.TYPE_TEXT="text",k=t.TYPE_DATE="date",D=t.TYPES={[H]:[a.CONDITION_NAME,n.SEPARATOR,l.CONDITION_NAME,h.CONDITION_NAME,n.SEPARATOR,c.CONDITION_NAME,u.CONDITION_NAME,n.SEPARATOR,d.CONDITION_NAME,g.CONDITION_NAME,f.CONDITION_NAME,p.CONDITION_NAME,m.CONDITION_NAME,w.CONDITION_NAME],[x]:[a.CONDITION_NAME,n.SEPARATOR,l.CONDITION_NAME,h.CONDITION_NAME,n.SEPARATOR,c.CONDITION_NAME,u.CONDITION_NAME,n.SEPARATOR,C.CONDITION_NAME,v.CONDITION_NAME,n.SEPARATOR,y.CONDITION_NAME,S.CONDITION_NAME],[k]:[a.CONDITION_NAME,n.SEPARATOR,l.CONDITION_NAME,h.CONDITION_NAME,n.SEPARATOR,c.CONDITION_NAME,u.CONDITION_NAME,n.SEPARATOR,E.CONDITION_NAME,R.CONDITION_NAME,m.CONDITION_NAME,n.SEPARATOR,b.CONDITION_NAME,_.CONDITION_NAME,T.CONDITION_NAME]}},224:(e,t,o)=>{"use strict";var i=o(19596);e.exports=function(e,t){var o=i[e],s=o&&o.prototype;return s&&s[t]}},412:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=i(o(86798)),r=i(o(75972)),a=o(95220),l=o(73050),h=o(76651),c=o(78437),u=o(57455),d=o(12108);function g(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function f(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const p=t.EDITOR_TYPE="date",m="dateEditor";var w=new WeakSet;class C extends l.TextEditor{constructor(){super(...arguments),g(this,w),(0,s.default)(this,"parentDestroyed",!1),(0,s.default)(this,"$datePicker",null)}static get EDITOR_TYPE(){return p}init(){if("function"!=typeof n.default)throw new Error("You need to include moment.js to your project.");if("function"!=typeof r.default)throw new Error("You need to include Pikaday to your project.");super.init(),this.hot.addHook("afterDestroy",()=>{this.parentDestroyed=!0,this.destroyElements()}),this.hot.addHook("afterSetTheme",(e,t)=>{t||this.close()})}createElements(){super.createElements(),this.datePicker=this.hot.rootDocument.createElement("DIV"),this.datePickerStyle=this.datePicker.style,this.datePickerStyle.position="absolute",this.datePickerStyle.top=0,this.datePickerStyle.left=0,this.datePickerStyle.zIndex=9999,this.datePicker.setAttribute("dir",this.hot.isRtl()?"rtl":"ltr"),(0,h.addClass)(this.datePicker,"htDatepickerHolder"),this.hot.rootPortalElement.appendChild(this.datePicker),this.eventManager.addEventListener(this.datePicker,"mousedown",e=>{(0,h.hasClass)(e.target,"pika-day")&&this.hideDatepicker(),e.stopPropagation()})}destroyElements(){const e=this.datePicker.parentNode;this.$datePicker&&this.$datePicker.destroy(),e&&e.removeChild(this.datePicker)}prepare(e,t,o,i,s,n){super.prepare(e,t,o,i,s,n)}open(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=this.hot.getShortcutManager().getContext("editor");this.showDatepicker(e),super.open(),t.addShortcuts([{keys:[["ArrowLeft"]],callback:()=>{this.$datePicker.adjustDate("subtract",1)}},{keys:[["ArrowRight"]],callback:()=>{this.$datePicker.adjustDate("add",1)}},{keys:[["ArrowUp"]],callback:()=>{this.$datePicker.adjustDate("subtract",7)}},{keys:[["ArrowDown"]],callback:()=>{this.$datePicker.adjustDate("add",7)}}],{group:m})}close(){var e;null!==(e=this.$datePicker)&&void 0!==e&&e.destroy&&this.$datePicker.destroy(),this.hot._registerTimeout(()=>{const e=this.hot._getEditorManager();e.closeEditor(),this.hot.view.render(),e.prepareEditor()});this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(m),super.close()}finishEditing(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super.finishEditing(e,t)}showDatepicker(e){const t=f(w,this,v).call(this),o=this.hot.view.isMouseDown(),i=!!e&&(0,u.isFunctionKey)(e.keyCode);let s;this.datePicker.style.display="block",this.$datePicker=new r.default(this.getDatePickerConfig()),"function"==typeof this.$datePicker.useMoment&&this.$datePicker.useMoment(n.default),this.$datePicker._onInputFocus=function(){},this.originalValue?(s=this.originalValue,(0,n.default)(s,t,!0).isValid()&&this.$datePicker.setMoment((0,n.default)(s,t),!0),this.getValue()!==this.originalValue&&this.setValue(this.originalValue),i||o||this.setValue("")):this.cellProperties.defaultDate?(s=this.cellProperties.defaultDate,(0,n.default)(s,t,!0).isValid()&&this.$datePicker.setMoment((0,n.default)(s,t),!0),i||o||this.setValue("")):this.$datePicker.gotoToday()}hideDatepicker(){this.datePickerStyle.display="none",this.$datePicker.hide()}getDatePickerConfig(){var e;const t=this.TEXTAREA,o={};this.cellProperties&&this.cellProperties.datePickerConfig&&(0,c.deepExtend)(o,this.cellProperties.datePickerConfig);const i=o.onSelect,s=o.onClose;return o.field=t,o.trigger=t,o.container=this.datePicker,o.bound=!1,o.keyboardInput=!1,o.format=null!==(e=o.format)&&void 0!==e?e:f(w,this,v).call(this),o.reposition=o.reposition||!1,o.isRTL=!1,o.onSelect=e=>{let t=e;isNaN(t.getTime())||(t=(0,n.default)(t).format(f(w,this,v).call(this))),this.setValue(t),i&&i(),(0,d.isMobileBrowser)()&&this.hideDatepicker()},o.onClose=()=>{this.parentDestroyed||this.finishEditing(!1),s&&s()},o}refreshDimensions(e){var t;if(super.refreshDimensions(e),this.state!==a.EDITOR_STATE.EDITING)return;if(this.TD=this.getEditedCell(),!this.TD)return void this.hideDatepicker();const{rowIndexMapper:o,columnIndexMapper:i}=this.hot,{wtOverlays:s}=this.hot.view._wt,{wtTable:n}=null!==(t=s.getParentOverlay(this.TD))&&void 0!==t?t:this.hot.view._wt,r=o.getVisualFromRenderableIndex(n.getFirstPartiallyVisibleRow()),l=o.getVisualFromRenderableIndex(n.getLastPartiallyVisibleRow()),c=i.getVisualFromRenderableIndex(n.getFirstPartiallyVisibleColumn()),u=i.getVisualFromRenderableIndex(n.getLastPartiallyVisibleColumn());if(this.row>=r&&this.row<=l&&this.col>=c&&this.col<=u){const e=this.TD.getBoundingClientRect();this.datePickerStyle.top=`${this.hot.rootWindow.pageYOffset+e.top+(0,h.outerHeight)(this.TD)}px`;let t=this.hot.rootWindow.pageXOffset;this.hot.isRtl()?t+=e.right-(0,h.outerWidth)(this.datePicker):t+=e.left,this.datePickerStyle.left=`${t}px`}else this.hideDatepicker()}}function v(){var e;return null!==(e=this.cellProperties.dateFormat)&&void 0!==e?e:"DD/MM/YYYY"}t.DateEditor=C},428:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(26599),s=o(78437);t.default=()=>({_automaticallyAssignedMetaProps:void 0,activeHeaderClassName:"ht__active_highlight",allowEmpty:!0,allowHtml:!1,allowInsertColumn:!0,allowInsertRow:!0,allowInvalid:!0,allowRemoveColumn:!0,allowRemoveRow:!0,ariaTags:!0,autoColumnSize:void 0,autoRowSize:void 0,autoWrapCol:!1,autoWrapRow:!1,bindRowsWithHeaders:void 0,cell:[],cells:void 0,checkedTemplate:void 0,className:void 0,colHeaders:null,collapsibleColumns:void 0,columnHeaderHeight:void 0,columns:void 0,columnSorting:void 0,columnSummary:void 0,colWidths:void 0,commentedCellClassName:"htCommentCell",comments:!1,contextMenu:void 0,copyable:!0,copyPaste:!0,correctFormat:!1,currentColClassName:void 0,currentHeaderClassName:"ht__highlight",currentRowClassName:void 0,customBorders:!1,data:void 0,dataDotNotation:!0,dataSchema:void 0,dateFormat:"DD/MM/YYYY",timeFormat:"h:mm:ss a",datePickerConfig:void 0,defaultDate:void 0,disableVisualSelection:!1,dialog:!1,dragToScroll:!0,dropdownMenu:void 0,editor:void 0,emptyDataState:!1,enterBeginsEditing:!0,enterMoves:{col:0,row:1},fillHandle:{autoInsertRow:!1},filter:!0,filteringCaseSensitive:!1,filters:void 0,fixedColumnsLeft:0,fixedColumnsStart:0,fixedRowsBottom:0,fixedRowsTop:0,formulas:void 0,fragmentSelection:!1,headerClassName:void 0,height:void 0,hiddenColumns:void 0,hiddenRows:void 0,initialState:void 0,invalidCellClassName:"htInvalid",imeFastEdit:!1,isEmptyCol(e){let t,o,s;for(t=0,o=this.countRows();t<o;t++)if(s=this.getDataAtCell(t,e),!1===(0,i.isEmpty)(s))return!1;return!0},isEmptyRow(e){let t,o,n,r;for(t=0,o=this.countCols();t<o;t++)if(n=this.getDataAtCell(e,t),!1===(0,i.isEmpty)(n))return"object"==typeof n&&(r=this.getCellMeta(e,t),(0,s.isObjectEqual)(this.getSchema()[r.prop],n));return!0},label:void 0,language:"en-US",layoutDirection:"inherit",licenseKey:void 0,locale:"en-US",loading:!1,manualColumnFreeze:void 0,manualColumnMove:void 0,manualColumnResize:void 0,manualRowMove:void 0,manualRowResize:void 0,maxCols:1/0,maxRows:1/0,mergeCells:!1,minCols:0,minRowHeights:void 0,minRows:0,minSpareCols:0,minSpareRows:0,multiColumnSorting:void 0,navigableHeaders:!1,tabNavigation:!0,nestedHeaders:void 0,nestedRows:void 0,noWordWrapClassName:"htNoWrap",numericFormat:void 0,observeDOMVisibility:!0,outsideClickDeselects:!0,pagination:void 0,persistentState:void 0,placeholder:void 0,placeholderCellClassName:"htPlaceholder",preventOverflow:!1,preventWheel:!1,readOnly:!1,readOnlyCellClassName:"htDimmed",renderAllRows:!1,renderAllColumns:!1,renderer:void 0,rowHeaders:void 0,rowHeaderWidth:void 0,rowHeights:void 0,search:!1,selectionMode:"multiple",selectOptions:void 0,skipColumnOnPaste:!1,skipRowOnPaste:!1,sortByRelevance:!0,source:void 0,startCols:5,startRows:5,stretchH:"none",strict:void 0,tableClassName:void 0,textEllipsis:!1,themeName:void 0,tabMoves:{row:0,col:1},title:void 0,trimDropdown:!0,trimRows:void 0,trimWhitespace:!0,type:"text",uncheckedTemplate:void 0,undo:!0,validator:void 0,valueGetter:void 0,valueSetter:void 0,viewportColumnRenderingOffset:"auto",viewportRowRenderingOffset:"auto",viewportColumnRenderingThreshold:0,viewportRowRenderingThreshold:0,visibleRows:10,width:void 0,wordWrap:!0})},497:(e,t,o)=>{"use strict";var i=o(8467),s=o(14326),n=o(17621),r=o(83916),a=Object;e.exports=r?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return s(t)&&n(t.prototype,a(e))}},518:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(42479),r=o(97819),a=o(94857),l=o(78437),h=o(13726),c=o(97718),u=o(61276),d=o(32971),g=o(76651),f=o(50151);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}},624:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(67383);t.CELL_TYPE=i.CELL_TYPE,t.PasswordCellType=i.PasswordCellType},654:(e,t,o)=>{"use strict";o.r(t)},688:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(2289);t.registerRootComparator=i.registerRootComparator,t.getRootComparator=i.getRootComparator,t.getCompareFunctionFactory=i.getCompareFunctionFactory;var s=o(20152);t.FIRST_AFTER_SECOND=s.FIRST_AFTER_SECOND,t.FIRST_BEFORE_SECOND=s.FIRST_BEFORE_SECOND,t.DO_NOT_SWAP=s.DO_NOT_SWAP,t.sort=s.sort},730:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(44803);t.CELL_TYPE=i.CELL_TYPE,t.TextCellType=i.TextCellType},771:(e,t,o)=>{"use strict";var i=o(19596).navigator,s=i&&i.userAgent;e.exports=s?String(s):""},794:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(81396),o(81124),o(88633),o(14618);var s=o(34149),n=o(78437),r=i(o(86248)),a=o(76651),l=o(3226),h=o(28394),c=o(41323);function u(e,t,o){d(e,t),t.set(e,o)}function d(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function g(e,t){return e.get(p(e,t))}function f(e,t,o){return e.set(p(e,t),o),o}function p(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const m=`\n<div data-ref="dialogElement" class="${c.DIALOG_CLASS_NAME}">\n <div data-ref="dialogWrapperElement" class="${c.DIALOG_CLASS_NAME}__content-wrapper">\n</div>\n`;var w=new WeakMap,C=new WeakMap,v=new WeakMap,y=new WeakMap,S=new WeakMap,E=new WeakMap,R=new WeakSet;class b{constructor(e){let{rootElement:t,isRtl:o}=e;var i,s;d(i=this,s=R),s.add(i),u(this,w,void 0),u(this,C,void 0),u(this,v,!1),u(this,y,!1),u(this,S,h.TEMPLATES.get("base")),u(this,E,[]),f(w,this,t),f(v,this,o),this.install()}useTemplate(e){var t;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!h.TEMPLATES.has(e)||"base"===e){const t=Array.from(h.TEMPLATES.keys()).filter(e=>"base"!==e).join(", ");throw new Error(s.toSingleLine`Invalid template: ${e}.\x20
32
32
  Valid templates are: ${t}.`)}f(S,this,h.TEMPLATES.get(e)(o)),f(E,this,(null!==(t=o.buttons)&&void 0!==t?t:[]).map(e=>e.callback))}useDefaultTemplate(){f(S,this,h.TEMPLATES.get("base")()),f(E,this,[])}install(){var e;if(null!==(e=g(C,this))&&void 0!==e&&e.dialogElement)return;const t=s.html`${m}`;f(C,this,t.refs);const{dialogElement:o}=g(C,this);(0,a.setAttribute)(o,[(0,l.A11Y_MODAL)(),["dir",g(v,this)?"rtl":"ltr"]]),o.addEventListener("transitionstart",()=>p(R,this,T).call(this)),o.addEventListener("transitionend",()=>p(R,this,_).call(this)),g(w,this).after(t.fragment)}getContainer(){return g(C,this).dialogElement}getFocusableElements(){return g(S,this).focusableElements()}updateDialog(e){let{isVisible:t,content:o,customClassName:i,background:s,contentBackground:n,animation:r,a11y:h}=e;const u=g(S,this).compile(),{dialogElement:d,dialogWrapperElement:f}=g(C,this);f.innerHTML="",f.appendChild(u.fragment),Object.assign(g(C,this),u.refs);const{contentElement:p,buttonsContainer:m}=g(C,this);"base"!==g(S,this).TEMPLATE_NAME&&Object.assign(h,g(S,this).dialogA11YOptions());const w=i?` ${i}`:"",v=s?` ${c.DIALOG_CLASS_NAME}--background-${s}`:"",y=r?` ${c.DIALOG_CLASS_NAME}--animation`:"",R=t?` ${c.DIALOG_CLASS_NAME}--show`:"";d.className=[c.DIALOG_CLASS_NAME,`${c.DIALOG_CLASS_NAME}--${g(S,this).TEMPLATE_NAME}`,"handsontable",w,v,y,R].join(" "),(0,a.setAttribute)(d,["base"===g(S,this).TEMPLATE_NAME?(0,l.A11Y_TABINDEX)(-1):void 0]),(0,a.setAttribute)(d,["alertdialog"===h.role?(0,l.A11Y_ALERTDIALOG)():(0,l.A11Y_DIALOG)()]),h.ariaLabel&&!h.ariaLabelledby?(0,a.setAttribute)(d,[h.ariaLabel?(0,l.A11Y_LABEL)(h.ariaLabel):void 0]):(0,a.removeAttribute)(d,"aria-label"),h.ariaLabelledby?(0,a.setAttribute)(d,[(0,l.A11Y_LABELED_BY)(h.ariaLabelledby)]):(0,a.removeAttribute)(d,"aria-labelledby"),h.ariaDescribedby?(0,a.setAttribute)(d,[(0,l.A11Y_DESCRIBED_BY)(h.ariaDescribedby)]):(0,a.removeAttribute)(d,"aria-describedby");const b=n?` ${c.DIALOG_CLASS_NAME}__content--background`:"";return(0,a.addClass)(p,`${c.DIALOG_CLASS_NAME}__content${b}`),"base"===g(S,this).TEMPLATE_NAME?(p.innerHTML="","string"==typeof o?(0,a.fastInnerHTML)(p,o):(o instanceof HTMLElement||o instanceof DocumentFragment)&&p.appendChild(o)):m&&Array.from(m.children).forEach((e,t)=>{const o=g(E,this)[t];o&&e.addEventListener("click",o)}),this}showDialog(e){const{dialogElement:t}=g(C,this);return t.style.display="block",e&&t.offsetHeight,(0,a.addClass)(t,`${c.DIALOG_CLASS_NAME}--show`),f(y,this,!1),this}hideDialog(e){const{dialogElement:t}=g(C,this);return(0,a.removeClass)(t,`${c.DIALOG_CLASS_NAME}--show`),(e&&!g(y,this)||!e)&&(t.style.display="none"),f(y,this,!1),this}focusDialog(){g(C,this).dialogElement.focus()}updateWidth(e){return g(C,this).dialogElement.style.width=`${e}px`,this}updateHeight(e){return g(C,this).dialogElement.style.height=`calc(100% - ${e}px)`,this}destroyDialog(){var e;null===(e=g(C,this))||void 0===e||e.dialogElement.remove(),f(C,this,null)}}function _(){const{dialogElement:e}=g(C,this);(0,a.hasClass)(e,`${c.DIALOG_CLASS_NAME}--show`)||(e.style.display="none")}function T(){f(y,this,!0)}t.DialogUI=b,(0,n.mixin)(b,r.default)},843:(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},1002:(e,t,o)=>{"use strict";t.__esModule=!0,t.normalizeSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;const o=[];if(0===t)return o;(0,i.arrayEach)(e,e=>{const a=[];let l=0;o.push(a),(0,i.arrayEach)(e,e=>{const o=(0,r.createDefaultHeaderSettings)();if((0,s.isObject)(e)){const{label:t,colspan:i,headerClassName:s}=e;o.label=(0,n.stringify)(t),"number"==typeof i&&i>1&&(o.colspan=i,o.origColspan=i),"string"==typeof s&&(o.headerClassNames=[...s.split(" ")])}else o.label=(0,n.stringify)(e);l+=o.origColspan;let i=!1;if(l>=t&&(o.colspan=o.origColspan-(l-t),o.origColspan=o.colspan,i=!0),a.push(o),o.colspan>1)for(let e=0;e<o.colspan-1;e++)a.push((0,r.createPlaceholderHeaderSettings)());return!i})});const a=Math.max(...(0,i.arrayMap)(o,e=>e.length));return(0,i.arrayEach)(o,e=>{if(e.length<a){const t=(0,i.arrayMap)(new Array(a-e.length),()=>(0,r.createDefaultHeaderSettings)());e.splice(e.length,0,...t)}}),o},o(66182);var i=o(94857),s=o(78437),n=o(26599),r=o(4983)},1195:(e,t,o)=>{"use strict";var i=o(14326),s=o(52270),n=o(97931);e.exports=function(e,t,o){var r,a;return n&&i(r=t.constructor)&&r!==o&&s(a=r.prototype)&&a!==o.prototype&&n(e,a),e}},1316:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(12290);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.CustomBorders=i.CustomBorders},1402:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(77494);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.AutoRowSize=i.AutoRowSize},2224:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_CLEAR_COLUMN)},callback(e,t){const o=t[0].start.col,i=t[0].end.col;this.countRows()&&this.populateFromArray(0,o,[[null]],Math.max(t[0].start.row,t[0].end.row),i,"ContextMenu.clearColumn")},disabled(){const e=this.getSelectedRangeActive();if(!e||e.isSingleHeader()&&e.highlight.col<0||!this.selection.isSelectedByColumnHeader())return!0;let t=!1;return e.forAll((e,o)=>{if(e<0||o<0)return!0;const{readOnly:i}=this.getCellMeta(e,o);return!!i||(t=!0,!1)}),!t}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278));const s=t.KEY="clear_column"},2289:(e,t,o)=>{"use strict";t.__esModule=!0,t.getCompareFunctionFactory=function(e){if(u(e))return c(e);return c(i.COLUMN_DATA_TYPE)};var i=o(6888),s=o(99658),n=o(46808),r=o(9549),a=o(19348),l=o(43641);const{register:h,getItem:c,hasItem:u}=(0,l.staticRegister)("sorting.compareFunctionFactory"),{register:d,getItem:g}=(0,l.staticRegister)("sorting.mainSortComparator");t.getRootComparator=g,t.registerRootComparator=d,h(n.COLUMN_DATA_TYPE,n.compareFunctionFactory),h(r.COLUMN_DATA_TYPE,r.compareFunctionFactory),h(i.COLUMN_DATA_TYPE,i.compareFunctionFactory),h(s.COLUMN_DATA_TYPE,s.compareFunctionFactory),h(a.COLUMN_DATA_TYPE,a.compareFunctionFactory)},2721:(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(8278)),s=o(76742);const n=t.CONDITION_NAME="lt";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,inputsCount:1,showOperators:!0})},3182:(e,t,o)=>{"use strict";t.__esModule=!0,t.getPlugin=u,t.getPluginsNames=function(){return[...l.getItems(),...h.getItems()]},t.hasPlugin=function(e){return!!u(e)},t.registerPlugin=function(e,t,o){[e,t,o]=function(e,t,o){"function"==typeof e&&(e=(t=e).PLUGIN_KEY,o=t.PLUGIN_PRIORITY);return[e,t,o]}(e,t,o),void 0===u(e)&&function(e,t,o){const s=(0,i.toUpperCaseFirst)(e);if(c.hasItem(s))throw new Error(a(s));void 0===o?h.addItem(s):l.addItem(o,s);c.addItem(s,t)}(e,t,o)},o(22588);var i=o(73983),s=o(25281),n=o(79836),r=o(76030);const a=e=>`There is already registered "${e}" plugin.`,l=(0,s.createPriorityMap)({errorPriorityExists:e=>`There is already registered plugin on priority "${e}".`,errorPriorityNaN:e=>`The priority "${e}" is not a number.`}),h=(0,r.createUniqueSet)({errorItemExists:a}),c=(0,n.createUniqueMap)({errorIdExists:a});function u(e){const t=(0,i.toUpperCaseFirst)(e);return c.getItem(t)}},3226:(e,t)=>{"use strict";t.__esModule=!0;t.A11Y_TABINDEX=e=>["tabindex",e];t.A11Y_TREEGRID=()=>["role","treegrid"];t.A11Y_PRESENTATION=()=>["role","presentation"];t.A11Y_GRIDCELL=()=>["role","gridcell"];t.A11Y_GRIDCELL_BUTTON=()=>["role","gridcell button"];t.A11Y_ROWHEADER=()=>["role","rowheader"];t.A11Y_ROWGROUP=()=>["role","rowgroup"];t.A11Y_COLUMNHEADER=()=>["role","columnheader"];t.A11Y_ROW=()=>["role","row"];t.A11Y_MENU=()=>["role","menu"];t.A11Y_MENU_ITEM=()=>["role","menuitem"];t.A11Y_MENU_ITEM_CHECKBOX=()=>["role","menuitemcheckbox"];t.A11Y_COMBOBOX=()=>["role","combobox"];t.A11Y_LISTBOX=()=>["role","listbox"];t.A11Y_OPTION=()=>["role","option"];t.A11Y_CHECKBOX=()=>["role","checkbox"];t.A11Y_DIALOG=()=>["role","dialog"];t.A11Y_ALERTDIALOG=()=>["role","alertdialog"];t.A11Y_SCOPE_COL=()=>["scope","col"];t.A11Y_SCOPE_ROW=()=>["scope","row"];t.A11Y_TEXT=()=>["type","text"];t.A11Y_LABEL=e=>["aria-label",e];t.A11Y_LABELED_BY=e=>["aria-labelledby",e];t.A11Y_DESCRIBED_BY=e=>["aria-describedby",e];t.A11Y_HIDDEN=()=>["aria-hidden","true"];t.A11Y_DISABLED=function(){return["aria-disabled",!(arguments.length>0&&void 0!==arguments[0])||arguments[0]]};t.A11Y_MULTISELECTABLE=()=>["aria-multiselectable","true"];t.A11Y_HASPOPUP=e=>["aria-haspopup",e];t.A11Y_ROWCOUNT=e=>["aria-rowcount",e];t.A11Y_COLCOUNT=e=>["aria-colcount",e];t.A11Y_ROWINDEX=e=>["aria-rowindex",e];t.A11Y_COLINDEX=e=>["aria-colindex",e];t.A11Y_EXPANDED=e=>["aria-expanded",e];t.A11Y_SORT=e=>["aria-sort",e];t.A11Y_READONLY=()=>["aria-readonly","true"];t.A11Y_INVALID=()=>["aria-invalid","true"];t.A11Y_CHECKED=e=>["aria-checked",e];t.A11Y_SELECTED=()=>["aria-selected","true"];t.A11Y_AUTOCOMPLETE=()=>["aria-autocomplete","list"];t.A11Y_CONTROLS=e=>["aria-controls",e];t.A11Y_ACTIVEDESCENDANT=e=>["aria-activedescendant",e];t.A11Y_LIVE=e=>["aria-live",e];t.A11Y_RELEVANT=e=>["aria-relevant",e];t.A11Y_SETSIZE=e=>["aria-setsize",e];t.A11Y_POSINSET=e=>["aria-posinset",e];t.A11Y_MODAL=()=>["aria-modal","true"]},3229:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(81396),o(88633);var s=i(o(81115)),n=o(93232),r=o(70270);class a extends n.BaseAction{constructor(e){let{rows:t,finalIndex:o}=e;super("row_move"),(0,s.default)(this,"rows",void 0),(0,s.default)(this,"finalRowIndex",void 0),this.rows=t.slice(),this.finalRowIndex=o}static startRegisteringEvents(e,t){e.addHook("beforeRowMove",(e,o)=>{!1!==e&&t.done(()=>new a({rows:e,finalIndex:o}))})}undo(e,t){const o=e.getPlugin("manualRowMove");e.addHookOnce("afterViewRender",t);(0,r.getMoves)(this.rows,this.finalRowIndex,e.rowIndexMapper.getNumberOfIndexes()).reverse().forEach(e=>{let{from:t,to:i}=e;t<i&&(i-=1),o.moveRow(i,t)}),e.render(),e.deselectCell(),e.selectRows(this.rows[0],this.rows[0]+this.rows.length-1)}redo(e,t){const o=e.getPlugin("manualRowMove");e.addHookOnce("afterViewRender",t),o.moveRows(this.rows.slice(),this.finalRowIndex),e.render(),e.deselectCell(),e.selectRows(this.finalRowIndex,this.finalRowIndex+this.rows.length-1)}}t.RowMoveAction=a},3284:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(76651),r=i(o(19544)),a=o(61651),l=o(13533),h=o(82858);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},3343:(e,t,o)=>{"use strict";t.__esModule=!0,o(81396),o(14618);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()}},3536:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(68390);t.EDITOR_TYPE=i.EDITOR_TYPE,t.TimeEditor=i.TimeEditor},3561:(e,t,o)=>{"use strict";var i=o(78656);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(24496),n=i(o(73358))},3921:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(71154);t.RENDERER_TYPE=i.RENDERER_TYPE,t.autocompleteRenderer=i.autocompleteRenderer},4114:(e,t,o)=>{"use strict";var i=o(27538),s=o(8467),n=o(99949),r=o(19617),a=o(94988),l=o(89035),h=o(14326),c=o(497),u=o(4660),d=o(17169),g=o(71763),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}})},4360:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(50148);t.RENDERER_TYPE=i.RENDERER_TYPE,t.passwordRenderer=i.passwordRenderer},4369:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(30301),s=o(28617);const n=t.CELL_TYPE="select";t.SelectCellType={CELL_TYPE:n,editor:i.SelectEditor,renderer:s.selectRenderer}},4436:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"populateSelectedCellsData",callback(e){const t=e.getSelectedRange(),{row:o,col:i}=t[t.length-1].highlight.normalize(),s=e.getDataAtCell(o,i),n=new Map;for(let r=0;r<t.length;r++)t[r].forAll((t,r)=>{if(t>=0&&r>=0&&(t!==o||r!==i)){const{readOnly:o}=e.getCellMeta(t,r);o||n.set(`${t}x${r}`,[t,r,s])}});e.setDataAtCell(Array.from(n.values()))}}},4580:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(36647);t.CELL_TYPE=i.CELL_TYPE,t.TimeCellType=i.TimeCellType},4660:(e,t,o)=>{"use strict";var i=o(94988);e.exports=i([].slice)},4983:(e,t)=>{"use strict";t.__esModule=!0,t.createDefaultHeaderSettings=function(){let{label:e="",colspan:t=1,origColspan:o=1,collapsible:i=!1,crossHiddenColumns:s=[],isCollapsed:n=!1,isHidden:r=!1,isRoot:a=!1,isPlaceholder:l=!1,headerClassNames:h=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{label:e,colspan:t,origColspan:o,collapsible:i,isCollapsed:n,crossHiddenColumns:s,isHidden:r,isRoot:a,isPlaceholder:l,headerClassNames:h}},t.createPlaceholderHeaderSettings=function(){return{label:"",isPlaceholder:!0}}},5e3:(e,t,o)=>{"use strict";t.__esModule=!0,t.createFocusScope=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n={shortcutsContextName:s.DEFAULT_SHORTCUTS_CONTEXT,type:s.SCOPE_TYPES.INLINE,contains:e=>e===t||t.contains(e),runOnlyIf:()=>!0,...o},r=(0,i.installFocusDetector)(e,t);return{getType:()=>n.type,hasContainerDetached:()=>!e.rootWrapperElement.contains(t),getShortcutsContextName:()=>n.shortcutsContextName,runOnlyIf:()=>n.runOnlyIf(),contains:e=>n.contains(e),activate:function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.FOCUS_SOURCES.UNKNOWN;null===(e=n.onActivate)||void 0===e||e.call(n,t)},deactivate:()=>{var e;null===(e=n.onDeactivate)||void 0===e||e.call(n)},activateFocusCatchers:()=>{null==r||r.activate()},deactivateFocusCatchers:()=>{null==r||r.deactivate()},enable:()=>{t.removeAttribute("inert")},disable:()=>{t.setAttribute("inert","true")},destroy:()=>{null==r||r.destroy()}}};var i=o(60780),s=o(49669)},5172: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},5232:(e,t,o)=>{"use strict";t.__esModule=!0,o(81396),o(19874);t.command={name:"moveCellSelectionInlineEnd",callback(e,t){const{selection:o}=e,i=e.getSettings(),s=e.getSelectedRange(),n=e.getSelectedRangeActive(),r="function"==typeof i.tabMoves?i.tabMoves(t):i.tabMoves;o.markSource("keyboard"),(s.some(e=>o.isMultiple(e))||s.length>1)&&!n.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0?o.transformFocus(-r.row,-r.col):o.transformStart(-r.row,-r.col),o.markEndSource()}}},5271:(e,t,o)=>{"use strict";var i=o(27538),s=o(19617),n=o(81576),r=o(49510),a=o(16539),l=o(83203),h=o(13479),c=o(57625)("some",TypeError);i({target:"Iterator",proto:!0,real:!0,forced:c},{some: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}})},5326:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115));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":""}}}}},5363:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostInlineStart",callback(e){const{selection:t,columnIndexMapper:o}=e,i=parseInt(e.getSettings().fixedColumnsStart,10),s=e.getSelectedRangeActive().highlight.row,n=o.getNearestNotHiddenIndex(i,1);t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(s,n)),t.markEndSource()}}},5476:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588);var i=o(76651),s=o(78437),n=o(42732);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},5760:(e,t,o)=>{"use strict";t.__esModule=!0,t.getListWithInsertedItems=function(e,t,o){return[...e.slice(0,t),...o,...e.slice(t)]},t.getListWithRemovedItems=function(e,t){return(0,i.arrayFilter)(e,e=>!1===t.includes(e))};var i=o(94857)},5774:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(33166),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(88633),o(14618);var s=o(76651),n=o(54259),r=i(o(24384));function a(e,t,o){l(e,t),t.set(e,o)}function l(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(e,t){return e.get(u(e,t))}function c(e,t,o){return e.set(u(e,t),o),o}function u(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,w=new WeakMap,C=new WeakSet;function v(){const e=h(p,this).get(h(d,this)),t=h(d,this).wtSettings.getSetting("onBeforeRemoveCellClassNames");if(Array.isArray(t))for(let o=0;o<t.length;o++)e.add(t[o]);e.forEach(e=>{var t,o;const i=h(d,this).wtTable.TABLE.querySelectorAll(`.${e}`);let n=[];Array.isArray(null===(t=h(g,this).options)||void 0===t?void 0:t.cellAttributes)&&(n=h(g,this).options.cellAttributes.map(e=>e[0])),Array.isArray(null===(o=h(g,this).options)||void 0===o?void 0:o.headerAttributes)&&(n=[...n,...h(g,this).options.headerAttributes.map(e=>e[0])]);for(let t=0,o=i.length;t<o;t++)(0,s.removeClass)(i[t],e),(0,s.removeAttribute)(i[t],n)}),e.clear()}t.SelectionManager=class{constructor(e){var t,o;l(t=this,o=C),o.add(t),a(this,d,void 0),a(this,g,void 0),a(this,f,new n.SelectionScanner),a(this,p,new WeakMap),a(this,m,new WeakSet),a(this,w,new Map),c(g,this,e)}setActiveOverlay(e){return c(d,this,e),h(f,this).setActiveOverlay(h(d,this)),h(p,this).has(h(d,this))||h(p,this).set(h(d,this),new Set),this}getFocusSelection(){return null!==h(g,this)?h(g,this).getFocus():null}getAreaSelection(){return null!==h(g,this)?h(g,this).createLayeredArea():null}getBorderInstance(e){if(!e.settings.border)return null;if(h(w,this).has(e)){const t=h(w,this).get(e);if(t.has(h(d,this)))return t.get(h(d,this));const o=new r.default(h(d,this),e.settings);return t.set(h(d,this),o),o}const t=new r.default(h(d,this),e.settings);return h(w,this).set(e,new Map([[h(d,this),t]])),t}getBorderInstances(e){var t,o;return Array.from(null!==(t=null===(o=h(w,this).get(e))||void 0===o?void 0:o.values())&&void 0!==t?t:[])}destroyBorders(e){h(w,this).get(e).forEach(e=>e.destroy()),h(w,this).delete(e)}render(e){if(null===h(g,this))return;e&&u(C,this,v).call(this);const t=Array.from(h(g,this)),o=new Map,i=new Map;for(let e=0;e<t.length;e++){const s=t[e],{className:n,headerAttributes:r,createLayers:a,selectionType:l}=s.settings;h(m,this).has(s)||(h(m,this).add(s),s.addLocalHook("destroy",()=>this.destroyBorders(s)));const c=this.getBorderInstance(s);if(s.isEmpty()){null==c||c.disappear();continue}if(n){h(f,this).setActiveSelection(s).scan().forEach(e=>{if(o.has(e)){const t=o.get(e);t.has(n)&&!0===a?t.set(n,t.get(n)+1):t.set(n,1)}else o.set(e,new Map([[n,1]]));r&&(i.has(e)||i.set(e,[]),"TH"===e.nodeName&&i.get(e).push(...r))})}const u=s.getCorners();h(d,this).getSetting("onBeforeDrawBorders",u,l),null==c||c.appear(u)}o.forEach((e,t)=>{var o;const i=Array.from(e).map(e=>{let[t,o]=e;return 1===o?t:[t,...Array.from({length:o-1},(e,o)=>`${t}-${o+1}`)]}).flat();i.forEach(e=>h(p,this).get(h(d,this)).add(e)),(0,s.addClass)(t,i),"TD"===t.nodeName&&Array.isArray(null===(o=h(g,this).options)||void 0===o?void 0:o.cellAttributes)&&(0,s.setAttribute)(t,h(g,this).options.cellAttributes)}),Array.from(i.keys()).forEach(e=>{(0,s.setAttribute)(e,[...i.get(e)])})}}},5884:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(42479),r=o(70667),a=o(76651);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},6077:(e,t,o)=>{"use strict";var i=o(78656);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(8278)),r=o(76742);const a=t.CONDITION_NAME="date_before";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_BEFORE,inputsCount:1,showOperators:!0})},6307:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"hidden_columns_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_COLUMN,t)},callback(){const{from:t,to:o}=this.getSelectedRangeActive(),i=Math.max(Math.min(t.col,o.col),0),s=Math.max(t.col,o.col),n=[];for(let e=i;e<=s;e+=1)n.push(e);e.hideColumns(n);const r=n[n.length-1],a=this.columnIndexMapper.getNearestNotHiddenIndex(r,1,!0);Number.isInteger(a)&&a>=0?this.selectColumns(a):this.deselectCell(),this.view.adjustElementsSize(),this.render()},disabled:!1,hidden(){return!(this.selection.isSelectedByColumnHeader()||this.selection.isSelectedByCorner())}}},o(66182);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(8278))},6490:(e,t,o)=>{"use strict";t.__esModule=!0,o(66182);var i=o(75372),s=o(94857);class n extends i.PhysicalIndexToValueMap{constructor(){super(arguments.length>0&&void 0!==arguments[0]&&arguments[0])}getTrimmedIndexes(){return(0,s.arrayReduce)(this.getValues(),(e,t,o)=>(t&&e.push(o),e),[])}}t.TrimmingMap=n},6888:(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(26599),s=o(688);t.COLUMN_DATA_TYPE="default"},7037:(e,t,o)=>{"use strict";o(81396),o(88633),t.__esModule=!0;var i={registerAllShortcutContexts:!0};t.registerAllShortcutContexts=function(e){[n.shortcutsGridContext,s.shortcutsEditorContext].forEach(t=>t(e))};var s=o(70948),n=o(35353),r=o(26740);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===r[e]||(t[e]=r[e]))})},7225:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionLeft",callback(e){const{selection:t}=e;t.markSource("keyboard"),t.transformStart(0,-1*e.getDirectionFactor()),t.markEndSource()}}},7522:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588),o(81396),o(88633);var i=o(49581);function s(e,t,o){n(e,t),t.set(e,o)}function n(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function r(e,t){return e.get(l(e,t))}function a(e,t,o){return e.set(l(e,t),o),o}function l(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,w=new WeakMap,C=new WeakSet;function v(){const e=this.getCSSVariableValue("line-height"),t=this.getCSSVariableValue("cell-vertical-padding"),o=Math.ceil(parseFloat(this.getStyleForTD("border-bottom-width")));return null===e||null===t||isNaN(o)?null:e+2*t+o}function y(){this.isClassicTheme()||a(d,this,getComputedStyle(r(u,this)));const e=l(C,this,S).call(this,["box-sizing","border-bottom-width"]);r(m,this).td={...r(m,this).td,"box-sizing":e["box-sizing"],"border-bottom-width":e["border-bottom-width"]}}function S(e){const t=r(g,this),o=r(u,this),i=t.createElement("table"),s=t.createElement("tbody"),n=t.createElement("tr"),a=t.createElement("tr"),l=t.createElement("td");a.appendChild(l),s.appendChild(n),s.appendChild(a),i.appendChild(s),o.appendChild(i);const h=getComputedStyle(l),c={};return e.forEach(e=>{c[e]=h.getPropertyValue(e)}),o.removeChild(i),c}function E(e){const t=Math.ceil(parseFloat(l(C,this,R).call(this,e)));return Number.isNaN(t)?null:t}function R(e){const t=r(d,this).getPropertyValue(e);return""===t?null:t}function b(){a(m,this,{}),a(p,this,{}),a(f,this,!0)}t.StylesHandler=class{constructor(e){let{hot:t,rootElement:o,rootDocument:i,onThemeChange:r=()=>{}}=e;var l,v;n(l=this,v=C),v.add(l),s(this,h,void 0),s(this,c,void 0),s(this,u,void 0),s(this,d,void 0),s(this,g,void 0),s(this,f,!0),s(this,p,{}),s(this,m,{}),s(this,w,void 0),a(h,this,t),a(u,this,o),a(g,this,i),a(w,this,r)}isClassicTheme(){return r(f,this)}getCSSVariableValue(e){var t;if(r(f,this))return null;if(r(p,this)[`--ht-${e}`])return r(p,this)[`--ht-${e}`];const o=null!==(t=l(C,this,E).call(this,`--ht-${e}`))&&void 0!==t?t:l(C,this,R).call(this,`--ht-${e}`);return null!==o?(r(p,this)[`--ht-${e}`]=o,o):void 0}getStyleForTD(e){var t;return null===(t=r(m,this))||void 0===t?void 0:t.td[e]}getDefaultRowHeight(e){if(r(f,this))return 23;const t=l(C,this,v).call(this);return t?void 0!==e&&e===r(h,this).view.getFirstRenderedVisibleRow()?t+1:t:23}areCellsBorderBox(){return"border-box"===this.getStyleForTD("box-sizing")}useTheme(e){if(!e)return a(c,this,void 0),a(f,this,!0),r(w,this).call(this,r(c,this)),void l(C,this,y).call(this);if(e&&e!==r(c,this)){if(!/ht-theme-.*/.test(e))return(0,i.warn)(`Invalid theme name: ${e}. Please provide a valid theme name.`),a(c,this,void 0),a(f,this,!1),r(w,this).call(this,r(c,this)),void l(C,this,y).call(this);r(c,this)&&l(C,this,b).call(this),a(c,this,e),a(f,this,!1),r(w,this).call(this,r(c,this)),l(C,this,y).call(this)}}getThemeName(){return r(c,this)}}},7708:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(83398);t.EDITOR_TYPE=i.EDITOR_TYPE,t.DropdownEditor=i.DropdownEditor},7796:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(97700);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.Autofill=i.Autofill},7810:(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(8278));const s=t.KEY="row_above"},7884:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(88370);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.ManualRowResize=i.ManualRowResize},8079:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.correctFormat=c,t.dateValidator=h;var s=i(o(86798)),n=o(89640),r=o(92273),a=o(65146);const l=t.VALIDATOR_TYPE="date";function h(e,t){const o=(0,n.getEditorInstance)(r.EDITOR_TYPE,this.instance);let i=e,a=!0;null==i&&(i="");let l=(0,s.default)(i,this.dateFormat||o.defaultDateFormat,!0).isValid(),h=(0,s.default)(new Date(i)).isValid()||l;if(this.allowEmpty&&""===i&&(h=!0,l=!0),h||(a=!1),!h&&l&&(a=!0),h&&!l)if(!0===this.correctFormat){const e=c(i,this.dateFormat);this.instance.setDataAtCell(this.visualRow,this.visualCol,e,"dateValidator"),a=!0}else a=!1;t(a)}function c(e,t){const o=(0,s.default)((0,a.getNormalizedDate)(e)),i=(0,s.default)(e,t),n=e.search(/[A-Za-z]/g)>-1;let r;return r=o.isValid()&&o.format("x")===i.format("x")||!i.isValid()||n?o:i,r.format(t)}h.VALIDATOR_TYPE=l},8278:(e,t)=>{"use strict";t.__esModule=!0;const o=t.COMMON_NAMESPACE="Common:",i=(t.OK=`${o}ok`,t.CANCEL=`${o}cancel`,t.CONTEXT_MENU_ITEMS_NAMESPACE="ContextMenu:items"),s=(t.CONTEXTMENU_ITEMS_NO_ITEMS=`${i}.noItems`,t.CONTEXTMENU_ITEMS_ROW_ABOVE=`${i}.insertRowAbove`,t.CONTEXTMENU_ITEMS_ROW_BELOW=`${i}.insertRowBelow`,t.CONTEXTMENU_ITEMS_INSERT_LEFT=`${i}.insertColumnOnTheLeft`,t.CONTEXTMENU_ITEMS_INSERT_RIGHT=`${i}.insertColumnOnTheRight`,t.CONTEXTMENU_ITEMS_REMOVE_ROW=`${i}.removeRow`,t.CONTEXTMENU_ITEMS_REMOVE_COLUMN=`${i}.removeColumn`,t.CONTEXTMENU_ITEMS_UNDO=`${i}.undo`,t.CONTEXTMENU_ITEMS_REDO=`${i}.redo`,t.CONTEXTMENU_ITEMS_READ_ONLY=`${i}.readOnly`,t.CONTEXTMENU_ITEMS_CLEAR_COLUMN=`${i}.clearColumn`,t.CONTEXTMENU_ITEMS_COPY=`${i}.copy`,t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS=`${i}.copyWithHeaders`,t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS=`${i}.copyWithGroupHeaders`,t.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY=`${i}.copyHeadersOnly`,t.CONTEXTMENU_ITEMS_CUT=`${i}.cut`,t.CONTEXTMENU_ITEMS_FREEZE_COLUMN=`${i}.freezeColumn`,t.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN=`${i}.unfreezeColumn`,t.CONTEXTMENU_ITEMS_MERGE_CELLS=`${i}.mergeCells`,t.CONTEXTMENU_ITEMS_UNMERGE_CELLS=`${i}.unmergeCells`,t.CONTEXTMENU_ITEMS_ADD_COMMENT=`${i}.addComment`,t.CONTEXTMENU_ITEMS_EDIT_COMMENT=`${i}.editComment`,t.CONTEXTMENU_ITEMS_REMOVE_COMMENT=`${i}.removeComment`,t.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT=`${i}.readOnlyComment`,t.CONTEXTMENU_ITEMS_ALIGNMENT=`${i}.align`,t.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT=`${i}.align.left`,t.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER=`${i}.align.center`,t.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT=`${i}.align.right`,t.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY=`${i}.align.justify`,t.CONTEXTMENU_ITEMS_ALIGNMENT_TOP=`${i}.align.top`,t.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE=`${i}.align.middle`,t.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM=`${i}.align.bottom`,t.CONTEXTMENU_ITEMS_BORDERS=`${i}.borders`,t.CONTEXTMENU_ITEMS_BORDERS_TOP=`${i}.borders.top`,t.CONTEXTMENU_ITEMS_BORDERS_RIGHT=`${i}.borders.right`,t.CONTEXTMENU_ITEMS_BORDERS_BOTTOM=`${i}.borders.bottom`,t.CONTEXTMENU_ITEMS_BORDERS_LEFT=`${i}.borders.left`,t.CONTEXTMENU_ITEMS_REMOVE_BORDERS=`${i}.borders.remove`,t.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD=`${i}.nestedHeaders.insertChildRow`,t.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD=`${i}.nestedHeaders.detachFromParent`,t.CONTEXTMENU_ITEMS_HIDE_COLUMN=`${i}.hideColumn`,t.CONTEXTMENU_ITEMS_SHOW_COLUMN=`${i}.showColumn`,t.CONTEXTMENU_ITEMS_HIDE_ROW=`${i}.hideRow`,t.CONTEXTMENU_ITEMS_SHOW_ROW=`${i}.showRow`,t.FILTERS_NAMESPACE="Filters:"),n=t.FILTERS_CONDITIONS_NAMESPACE=`${s}conditions`,r=(t.FILTERS_CONDITIONS_NONE=`${n}.none`,t.FILTERS_CONDITIONS_EMPTY=`${n}.isEmpty`,t.FILTERS_CONDITIONS_NOT_EMPTY=`${n}.isNotEmpty`,t.FILTERS_CONDITIONS_EQUAL=`${n}.isEqualTo`,t.FILTERS_CONDITIONS_NOT_EQUAL=`${n}.isNotEqualTo`,t.FILTERS_CONDITIONS_BEGINS_WITH=`${n}.beginsWith`,t.FILTERS_CONDITIONS_ENDS_WITH=`${n}.endsWith`,t.FILTERS_CONDITIONS_CONTAINS=`${n}.contains`,t.FILTERS_CONDITIONS_NOT_CONTAIN=`${n}.doesNotContain`,t.FILTERS_CONDITIONS_BY_VALUE=`${n}.byValue`,t.FILTERS_CONDITIONS_GREATER_THAN=`${n}.greaterThan`,t.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL=`${n}.greaterThanOrEqualTo`,t.FILTERS_CONDITIONS_LESS_THAN=`${n}.lessThan`,t.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL=`${n}.lessThanOrEqualTo`,t.FILTERS_CONDITIONS_BETWEEN=`${n}.isBetween`,t.FILTERS_CONDITIONS_NOT_BETWEEN=`${n}.isNotBetween`,t.FILTERS_CONDITIONS_AFTER=`${n}.after`,t.FILTERS_CONDITIONS_BEFORE=`${n}.before`,t.FILTERS_CONDITIONS_TODAY=`${n}.today`,t.FILTERS_CONDITIONS_TOMORROW=`${n}.tomorrow`,t.FILTERS_CONDITIONS_YESTERDAY=`${n}.yesterday`,t.FILTERS_DIVS_FILTER_BY_CONDITION=`${s}labels.filterByCondition`,t.FILTERS_DIVS_FILTER_BY_VALUE=`${s}labels.filterByValue`,t.FILTERS_LABELS_CONJUNCTION=`${s}labels.conjunction`,t.FILTERS_LABELS_DISJUNCTION=`${s}labels.disjunction`,t.FILTERS_VALUES_BLANK_CELLS=`${s}values.blankCells`,t.FILTERS_BUTTONS_SELECT_ALL=`${s}buttons.selectAll`,t.FILTERS_BUTTONS_CLEAR=`${s}buttons.clear`,t.FILTERS_BUTTONS_OK=`${s}buttons.ok`,t.FILTERS_BUTTONS_CANCEL=`${s}buttons.cancel`,t.FILTERS_BUTTONS_PLACEHOLDER_SEARCH=`${s}buttons.placeholder.search`,t.FILTERS_BUTTONS_PLACEHOLDER_VALUE=`${s}buttons.placeholder.value`,t.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE=`${s}buttons.placeholder.secondValue`,t.PAGINATION_NAMESPACE="Pagination:"),a=(t.PAGINATION_SECTION=`${r}section.pagination`,t.PAGINATION_PAGE_SIZE_AUTO=`${r}.pageSize.auto`,t.PAGINATION_PAGE_SIZE_SECTION=`${r}section.pageSize`,t.PAGINATION_COUNTER_SECTION=`${r}section.counter`,t.PAGINATION_NAV_SECTION=`${r}section.navigation`,t.PAGINATION_FIRST_PAGE=`${r}firstPage`,t.PAGINATION_PREV_PAGE=`${r}prevPage`,t.PAGINATION_NEXT_PAGE=`${r}nextPage`,t.PAGINATION_LAST_PAGE=`${r}lastPage`,t.CHECKBOX_RENDERER_NAMESPACE="CheckboxRenderer:"),l=(t.CHECKBOX_CHECKED=`${a}checked`,t.CHECKBOX_UNCHECKED=`${a}unchecked`,t.LOADING_NAMESPACE="Loading:"),h=(t.LOADING_TITLE=`${l}title`,t.EMPTY_DATA_STATE_NAMESPACE="EmptyDataState:");t.EMPTY_DATA_STATE_TITLE=`${h}title`,t.EMPTY_DATA_STATE_DESCRIPTION=`${h}description`,t.EMPTY_DATA_STATE_TITLE_FILTERS=`${h}title.filters`,t.EMPTY_DATA_STATE_DESCRIPTION_FILTERS=`${h}description.filters`,t.EMPTY_DATA_STATE_BUTTONS_FILTERS_RESET=`${h}buttons.filters.reset`},8467:(e,t,o)=>{"use strict";var i=o(19596),s=o(14326);e.exports=function(e,t){return arguments.length<2?(o=i[e],s(o)?o:void 0):i[e]&&i[e][t];var o}},8994:(e,t,o)=>{"use strict";t.__esModule=!0,t.rootComparator=function(e,t){return function(o,s){const[,...n]=o,[,...r]=s;return function(o){const s=e[o],a=t[o],l=n[o],h=r[o],c=a.columnSorting;return(c.compareFunctionFactory?c.compareFunctionFactory:(0,i.getCompareFunctionFactory)(a.type))(s,a,c)(l,h)}(0)}};var i=o(688)},9041:(e,t,o)=>{"use strict";t.__esModule=!0,t.getCellType=function(e){if(!h(e))throw Error(`You declared cell type "${e}" as a string that is not mapped to a known object.\n Cell type must be an object or a string mapped to an object registered by\n "Handsontable.cellTypes.registerCellType" method`);return l(e)},t.registerCellType=function(e,t){"string"!=typeof e&&(e=(t=e).CELL_TYPE);const{editor:o,renderer:i,validator:l}=t;o&&(0,s.registerEditor)(e,o);i&&(0,n.registerRenderer)(e,i);l&&(0,r.registerValidator)(e,l);a(e,t)},o(22588);var i=o(43641),s=o(89640),n=o(83658),r=o(72657);const{register:a,getItem:l,hasItem:h,getNames:c,getValues:u}=(0,i.staticRegister)("cellTypes");t.getRegisteredCellTypes=u,t.getRegisteredCellTypeNames=c,t.hasCellType=h},9091:(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(8278)),s=o(76742),n=o(66058);const r=t.CONDITION_NAME="not_contains";function a(e,t){return!(0,s.getCondition)(n.CONDITION_NAME,t)(e)}(0,s.registerCondition)(r,a,{name:i.FILTERS_CONDITIONS_NOT_CONTAIN,inputsCount:1,showOperators:!0})},9240:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(81396),o(81124),o(14618);var s=i(o(81115)),n=o(76651),r=o(70667),a=o(94857),l=o(57455),h=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),c=o(35764),u=o(24293),d=o(59686),g=o(96),f=o(76742),p=o(58);function m(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function w(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var C=new WeakSet;class v extends u.BaseComponent{constructor(e,t){super(e,{id:t.id,stateless:!1}),m(this,C),(0,s.default)(this,"name",""),(0,s.default)(this,"searchMode",void 0),this.name=t.name,this.searchMode=t.searchMode,this.elements.push(new d.MultipleSelectUI(this.hot,{searchMode:this.searchMode})),this.registerHooks()}registerHooks(){this.getMultipleSelectElement().addLocalHook("keydown",e=>w(C,this,y).call(this,e)).addLocalHook("listTabKeydown",e=>this.runLocalHooks("listTabKeydown",e)),this.hot.addHook("modifyFiltersMultiSelectValue",(e,t)=>w(C,this,E).call(this,e,t))}getElements(){const e=this.getMultipleSelectElement();return[e.getSearchInputElement(),e.getSelectAllElement(),e.getClearAllElement(),this.getMultipleSelectElement()]}setState(e){if(this.reset(),e&&e.command.key===g.CONDITION_BY_VALUE){const t=this.getMultipleSelectElement();t.setItems(e.itemsSnapshot),t.setValue(e.args[0]),t.setLocale(e.locale)}}getState(){const e=this.getMultipleSelectElement(),t=e.getItems();return{command:{key:e.isSelectedAllValues()||!t.length?g.CONDITION_NONE:g.CONDITION_BY_VALUE},args:[e.getValue()],itemsSnapshot:t}}updateState(e){const t=(t,o,i,s,n)=>{const[r]=(0,a.arrayFilter)(o,e=>e.name===g.CONDITION_BY_VALUE),l={},u=this.hot.getTranslatedPhrase(h.FILTERS_VALUES_BLANK_CELLS);if(r){const o=s(t,n),h=(0,a.arrayMap)(o,e=>e.value),d=new Map(o.map(e=>[e.value,this.hot.getCellMeta(e.meta.visualRow,e.meta.visualCol)])),p=(0,c.unifyColumnValues)(h);i&&(r.args[0]=i);const m=[],v=(0,c.intersectValues)(p,r.args[0],u,e=>{e.checked&&m.push(e.value),w(C,this,S).call(this,e,d)}),y=e.editedConditionStack.column;l.locale=this.hot.getCellMeta(0,y).locale,l.args=[m],l.command=(0,f.getConditionDescriptor)(g.CONDITION_BY_VALUE),l.itemsSnapshot=v}else l.args=[],l.command=(0,f.getConditionDescriptor)(g.CONDITION_NONE);this.state.setValueAtIndex(t,l)};t(e.editedConditionStack.column,e.editedConditionStack.conditions,e.conditionArgsChange,e.filteredRowsFactory),e.dependentConditionStacks.length&&t(e.dependentConditionStacks[0].column,e.dependentConditionStacks[0].conditions,e.conditionArgsChange,e.filteredRowsFactory,e.editedConditionStack)}getMultipleSelectElement(){return this.elements.filter(e=>e instanceof d.MultipleSelectUI)[0]}getMenuItemDescriptor(){return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:()=>this.isHidden(),renderer:(e,t,o,i,s,r)=>{(0,n.addClass)(t.parentNode,"htFiltersMenuValue");const l=this.hot.rootDocument.createElement("div");return(0,n.addClass)(l,"htFiltersMenuLabel"),l.textContent=r,t.appendChild(l),t.parentElement.hasAttribute("ghost-table")||(0,a.arrayEach)(this.elements,e=>t.appendChild(e.element)),t}}}reset(){const e=this.hot.getTranslatedPhrase(h.FILTERS_VALUES_BLANK_CELLS),t=this._getColumnVisibleValues(),o=t.map(e=>e.value),i=new Map(t.map(e=>[e.value,e.meta])),s=(0,c.unifyColumnValues)(o),n=(0,c.intersectValues)(s,s,e,e=>{w(C,this,S).call(this,e,i)});this.getMultipleSelectElement().setItems(n),super.reset(),this.getMultipleSelectElement().setValue(s);const r=this.hot.getPlugin("filters").getSelectedColumn();null!==r&&this.getMultipleSelectElement().setLocale(this.hot.getCellMeta(0,r.visualIndex).locale)}_getColumnVisibleValues(){const e=this.hot.getPlugin("filters").getSelectedColumn();return null===e?[]:(0,a.arrayMap)(this.hot.getDataAtCol(e.visualIndex),(t,o)=>({value:(0,c.toEmptyString)(t),meta:this.hot.getCellMeta(o,e.visualIndex)}))}}function y(e){(0,l.isKey)(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),(0,r.stopImmediatePropagation)(e)),(0,l.isKey)(e.keyCode,"ENTER")&&("apply"===this.searchMode&&this.runLocalHooks("accept"),(0,r.stopImmediatePropagation)(e))}function S(e,t){this.hot.hasHook("modifyFiltersMultiSelectValue")&&(e.visualValue=this.hot.runHooks("modifyFiltersMultiSelectValue",e.visualValue,t.get(e.value)))}function E(e,t){return"numeric"===t.type?(0,p.getRenderedValue)(e,t):e}t.ValueComponent=v},9364:(e,t,o)=>{"use strict";t.__esModule=!0,t.collapseNode=function e(t){var o;const{data:r,childs:a}=t;if(r.isCollapsed||r.isHidden||r.origColspan<=1)return{rollbackModification:()=>{},affectedColumns:[],colspanCompensation:0};if((0,n.isNodeReflectsFirstChildColspan)(t))return e(a[0]);r.isCollapsed=!0;const l=a.slice(1),h=new Set;if(l.length>0)(0,i.arrayEach)(l,e=>{(0,n.traverseHiddenNodeColumnIndexes)(e,e=>{h.add(e)}),e.data.clonedTree=e.cloneTree(),e.walkDown(e=>{let{data:t}=e;t.isHidden=!0})});else{const{origColspan:e,columnIndex:t}=r;for(let o=1;o<e;o++){const e=t+o;h.add(e)}}const c=r.colspan-(null!==(o=(0,n.getFirstChildProperty)(t,"colspan"))&&void 0!==o?o:1);return t.walkUp(e=>{const{data:t}=e;t.colspan-=c,t.colspan<=1?(t.colspan=1,t.isCollapsed=!0):(0,n.isNodeReflectsFirstChildColspan)(e)&&(t.isCollapsed=(0,n.getFirstChildProperty)(e,"isCollapsed"))}),{rollbackModification:()=>(0,s.expandNode)(t),affectedColumns:Array.from(h),colspanCompensation:c}},o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550);var i=o(94857),s=o(57103),n=o(31557)},9479:(e,t,o)=>{"use strict";t.__esModule=!0,t.getEngineSettingsOverrides=r,t.getEngineSettingsWithDefaultsAndOverrides=function(e){var t;const o=e[i.PLUGIN_KEY],s=a(null!=o&&null!==(t=o.engine)&&void 0!==t&&t.hyperformula?o.engine:{}),l=r(e);return{...n,...s,...l}},t.getEngineSettingsWithOverrides=function(e){var t;const o=e[i.PLUGIN_KEY],s=a(null!=o&&null!==(t=o.engine)&&void 0!==t&&t.hyperformula?o.engine:{}),n=r(e);return{...s,...n}},t.haveEngineSettingsChanged=function(e,t){return Object.keys(t).some(o=>void 0!==t[o]&&t[o]!==e[o])},o(81396),o(39716),o(19874);var i=o(25502);const s=t.DEFAULT_LICENSE_KEY="internal-use-in-handsontable",n=t.DEFAULT_SETTINGS={licenseKey:s,useArrayArithmetic:!0,useColumnIndex:!1,useStats:!1,evaluateNullToZero:!0,precisionEpsilon:1e-13,precisionRounding:14,smartRounding:!0,leapYear1900:!1,nullDate:{year:1899,month:12,day:30},nullYear:30,dateFormats:["DD/MM/YYYY","DD/MM/YY"],timeFormats:["hh:mm","hh:mm:ss.sss"],matchWholeCell:!0,useRegularExpressions:!1,useWildcards:!0,functionArgSeparator:",",thousandSeparator:"",decimalSeparator:".",language:"enGB"};function r(e){var t;return{maxColumns:e.maxColumns,maxRows:e.maxRows,language:null===(t=e[i.PLUGIN_KEY])||void 0===t||null===(t=t.language)||void 0===t?void 0:t.langCode}}function a(e){return Object.keys(e).reduce((t,o)=>("hyperformula"!==o&&(t[o]=e[o]),t),{})}},9549:(e,t,o)=>{"use strict";t.__esModule=!0,t.compareFunctionFactory=function(e,t,o){return(0,i.createDateTimeCompareFunction)(e,t.dateFormat,o)};var i=o(39761);t.COLUMN_DATA_TYPE="date"},9961:(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(8278)),s=o(26599),n=o(76742);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})},10063:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(81396),o(14618);var s=i(o(81115)),n=o(78437),r=o(32435),a=o(26599);const l=["sortEmptyCells","indicator","headerAction","compareFunctionFactory"];t.ColumnStatesManager=class{constructor(e,t){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"sortingStates",new r.LinkedPhysicalIndexToValueMap),(0,s.default)(this,"sortEmptyCells",false),(0,s.default)(this,"indicator",true),(0,s.default)(this,"headerAction",true),(0,s.default)(this,"compareFunctionFactory",void 0),(0,s.default)(this,"mapName",void 0),this.hot=e,this.mapName=t,this.hot.columnIndexMapper.registerMap(t,this.sortingStates)}updateAllColumnsProperties(e){(0,n.isObject)(e)&&(0,n.objectEach)(e,(e,t)=>{l.includes(t)&&(this[t]=e)})}getAllColumnsProperties(){const e={sortEmptyCells:this.sortEmptyCells,indicator:this.indicator,headerAction:this.headerAction};return"function"==typeof this.compareFunctionFactory&&(e.compareFunctionFactory=this.compareFunctionFactory),e}getSortOrderOfColumn(e){var t;return null===(t=this.sortingStates.getValueAtIndex(this.hot.toPhysicalColumn(e)))||void 0===t?void 0:t.sortOrder}getIndexOfColumnInSortQueue(e){return e=this.hot.toPhysicalColumn(e),this.sortingStates.getEntries().findIndex(t=>{let[o]=t;return o===e})}getNumberOfSortedColumns(){return this.sortingStates.getLength()}isListOfSortedColumnsEmpty(){return 0===this.getNumberOfSortedColumns()}isColumnSorted(e){return(0,n.isObject)(this.sortingStates.getValueAtIndex(this.hot.toPhysicalColumn(e)))}getSortStates(){if(null===this.sortingStates)return[];return this.sortingStates.getEntries().map(e=>{let[t,o]=e;return{column:this.hot.toVisualColumn(t),...o}})}getColumnSortState(e){const t=this.getSortOrderOfColumn(e);if((0,a.isDefined)(t))return{column:e,sortOrder:t}}setSortStates(e){this.sortingStates.clear();for(let t=0;t<e.length;t+=1)this.sortingStates.setValueAtIndex(this.hot.toPhysicalColumn(e[t].column),{sortOrder:e[t].sortOrder})}destroy(){this.hot.columnIndexMapper.unregisterMap(this.mapName),this.sortingStates=null}}},10226:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182);var s=i(o(81115)),n=o(76651),r=o(73983),a=i(o(13683)),l=i(o(56795)),h=i(o(37135)),c=i(o(14120));t.default=class{get eventManager(){return new a.default(this)}constructor(e,t){(0,s.default)(this,"wtTable",void 0),(0,s.default)(this,"wtScroll",void 0),(0,s.default)(this,"wtViewport",void 0),(0,s.default)(this,"wtOverlays",void 0),(0,s.default)(this,"selectionManager",void 0),(0,s.default)(this,"wtEvent",void 0),(0,s.default)(this,"guid",`wt_${(0,r.randomString)()}`),(0,s.default)(this,"drawInterrupted",!1),(0,s.default)(this,"drawn",!1),(0,s.default)(this,"activeOverlayName","master"),(0,s.default)(this,"domBindings",void 0),(0,s.default)(this,"wtSettings",void 0),this.domBindings={rootTable:e,rootDocument:e.ownerDocument,rootWindow:e.ownerDocument.defaultView},this.wtSettings=t,this.wtScroll=new l.default(this.createScrollDao())}findOriginalHeaders(){const e=[];if(this.wtTable.THEAD.childNodes.length&&this.wtTable.THEAD.childNodes[0].childNodes.length){for(let t=0,o=this.wtTable.THEAD.childNodes[0].childNodes.length;t<o;t++)e.push(this.wtTable.THEAD.childNodes[0].childNodes[t].innerHTML);this.wtSettings.getSetting("columnHeaders").length||this.wtSettings.update("columnHeaders",[function(t,o){(0,n.fastInnerText)(o,e[t])}])}}createCellCoords(e,t){return new h.default(e,t,this.wtSettings.getSetting("rtlMode"))}createCellRange(e,t,o){return new c.default(e,t,o,this.wtSettings.getSetting("rtlMode"))}draw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.drawInterrupted=!1,!this.wtTable.isVisible()||(0,n.hasZeroHeight)(this.wtTable.wtRootElement.parentNode)?this.drawInterrupted=!0:this.wtTable.draw(e),this}getCell(e){if(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))return this.wtTable.getCell(e);const t=this.wtSettings.getSetting("totalRows"),o=this.wtSettings.getSetting("fixedRowsTop"),i=this.wtSettings.getSetting("fixedRowsBottom"),s=this.wtSettings.getSetting("fixedColumnsStart");if(e.row<o&&e.col<s)return this.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.getCell(e);if(e.row<o)return this.wtOverlays.topOverlay.clone.wtTable.getCell(e);if(e.col<s&&e.row>=t-i){if(this.wtOverlays.bottomInlineStartCornerOverlay&&this.wtOverlays.bottomInlineStartCornerOverlay.clone)return this.wtOverlays.bottomInlineStartCornerOverlay.clone.wtTable.getCell(e)}else{if(e.col<s)return this.wtOverlays.inlineStartOverlay.clone.wtTable.getCell(e);if(e.row<t&&e.row>=t-i&&this.wtOverlays.bottomOverlay&&this.wtOverlays.bottomOverlay.clone)return this.wtOverlays.bottomOverlay.clone.wtTable.getCell(e)}return this.wtTable.getCell(e)}scrollViewport(e,t,o){return this.wtScroll.scrollViewport(e,t,o)}scrollViewportHorizontally(e,t){return this.wtScroll.scrollViewportHorizontally(e,t)}scrollViewportVertically(e,t){return this.wtScroll.scrollViewportVertically(e,t)}getViewport(){return[this.wtTable.getFirstVisibleRow(),this.wtTable.getFirstVisibleColumn(),this.wtTable.getLastVisibleRow(),this.wtTable.getLastVisibleColumn()]}destroy(){this.wtOverlays.destroy(),this.wtEvent.destroy()}createScrollDao(){const e=this;return{get drawn(){return e.drawn},get topOverlay(){return e.wtOverlays.topOverlay},get inlineStartOverlay(){return e.wtOverlays.inlineStartOverlay},get wtTable(){return e.wtTable},get wtViewport(){return e.wtViewport},get wtSettings(){return e.wtSettings},get rootWindow(){return e.domBindings.rootWindow},get totalRows(){return e.wtSettings.getSetting("totalRows")},get totalColumns(){return e.wtSettings.getSetting("totalColumns")},get fixedRowsTop(){return e.wtSettings.getSetting("fixedRowsTop")},get fixedRowsBottom(){return e.wtSettings.getSetting("fixedRowsBottom")},get fixedColumnsStart(){return e.wtSettings.getSetting("fixedColumnsStart")}}}getTableDao(){const e=this;return{get wot(){return e},get parentTableOffset(){return e.cloneSource.wtTable.tableOffset},get cloneSource(){return e.cloneSource},get workspaceWidth(){return e.wtViewport.getWorkspaceWidth()},get wtViewport(){return e.wtViewport},get wtOverlays(){return e.wtOverlays},get selectionManager(){return e.selectionManager},get drawn(){return e.drawn},set drawn(t){e.drawn=t},get wtTable(){return e.wtTable},get startColumnRendered(){return e.wtViewport.columnsRenderCalculator.startColumn},get startColumnVisible(){return e.wtViewport.columnsVisibleCalculator.startColumn},get startColumnPartiallyVisible(){return e.wtViewport.columnsPartiallyVisibleCalculator.startColumn},get endColumnRendered(){return e.wtViewport.columnsRenderCalculator.endColumn},get endColumnVisible(){return e.wtViewport.columnsVisibleCalculator.endColumn},get endColumnPartiallyVisible(){return e.wtViewport.columnsPartiallyVisibleCalculator.endColumn},get countColumnsRendered(){return e.wtViewport.columnsRenderCalculator.count},get countColumnsVisible(){return e.wtViewport.columnsVisibleCalculator.count},get startRowRendered(){return e.wtViewport.rowsRenderCalculator.startRow},get startRowVisible(){return e.wtViewport.rowsVisibleCalculator.startRow},get startRowPartiallyVisible(){return e.wtViewport.rowsPartiallyVisibleCalculator.startRow},get endRowRendered(){return e.wtViewport.rowsRenderCalculator.endRow},get endRowVisible(){return e.wtViewport.rowsVisibleCalculator.endRow},get endRowPartiallyVisible(){return e.wtViewport.rowsPartiallyVisibleCalculator.endRow},get countRowsRendered(){return e.wtViewport.rowsRenderCalculator.count},get countRowsVisible(){return e.wtViewport.rowsVisibleCalculator.count},get columnHeaders(){return e.wtSettings.getSetting("columnHeaders")},get rowHeaders(){return e.wtSettings.getSetting("rowHeaders")}}}}},10441:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(81774);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.ManualRowMove=i.ManualRowMove},10705:(e,t,o)=>{"use strict";var i=o(27538),s=o(81576),n=o(49510),r=o(16539),a=o(83203),l=o(13479),h=o(57625),c=o(99949),u=o(89035),d=TypeError,g=u(function(){[].keys().reduce(function(){},void 0)}),f=!g&&h("reduce",d);i({target:"Iterator",proto:!0,real:!0,forced:g||f},{reduce:function(e){r(this);try{n(e)}catch(e){l(this,"throw",e)}var t=arguments.length<2,o=t?void 0:arguments[1];if(f)return c(f,this,t?[e]:[e,o]);var i=a(this),h=0;if(s(i,function(i){t?(t=!1,o=i):o=e(o,i,h),h++},{IS_RECORD:!0}),t)throw new d("Reduce of empty iterator with no initial value");return o}})},11127:(e,t,o)=>{"use strict";var i=o(40825);e.exports=function(e){var t=+e;return t!=t||0===t?0:i(t)}},11270:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){const t=e.hot.isRtl()?"start":"end";return{key:"borders:right",name(){let e=this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_BORDERS_RIGHT);return(0,s.checkSelectionBorders)(this,t)&&(e=(0,s.markSelected)(e)),e},callback(o,i){const n=(0,s.checkSelectionBorders)(this,t);e.prepareBorder(i,t,n)}}};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(8278)),s=o(39469)},11558:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){if(Array.isArray(e)&&Number.isInteger(t))return e[t];return e}},11797:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(85326);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.NestedHeaders=i.NestedHeaders},11882:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"borders:no_borders",name(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_REMOVE_BORDERS)},callback(t,o){e.prepareBorder(o,"noBorders")},disabled(){return!(0,s.checkSelectionBorders)(this)}}};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(8278)),s=o(39469)},11912:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(21372);t.RENDERER_TYPE=i.RENDERER_TYPE,t.htmlRenderer=i.htmlRenderer},12010:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115));t.default=class{constructor(e,t){(0,s.default)(this,"dataAccessObject",void 0),(0,s.default)(this,"wtSettings",void 0),(0,s.default)(this,"headerWidths",new Map),this.dataAccessObject=e,this.wtSettings=t}getWidth(e){return this.wtSettings.getSetting("columnWidth",e)||this.wtSettings.getSetting("defaultColumnWidth")}getHeaderHeight(e){let t=this.wtSettings.getSetting("stylesHandler").getDefaultRowHeight();const o=this.dataAccessObject.wtViewport.oversizedColumnHeaders[e];return void 0!==o&&(t=t?Math.max(t,o):o),t}getHeaderWidth(e){return this.headerWidths.get(this.dataAccessObject.wtTable.columnFilter.sourceToRendered(e))}calculateWidths(){const{wtSettings:e}=this;let t=e.getSetting("rowHeaderWidth");if(t=e.getSetting("onModifyRowHeaderWidth",t),null!=t){const o=e.getSetting("rowHeaders").length,i=e.getSetting("defaultColumnWidth");for(let e=0;e<o;e++){let o=Array.isArray(t)?t[e]:t;o=null==o?i:o,this.headerWidths.set(e,o)}}}}},12108:(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(78437),s=o(88014);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())},12290:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(81396),o(88633);var s=i(o(81115)),n=o(42479),r=o(78437),a=o(49581),l=o(58639),h=o(94857),c=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(8278)),u=o(99160),d=o(39469),g=o(68959),f=o(26599);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="customBorders",C=t.PLUGIN_PRIORITY=90,v=["dashed","dotted","solid"];var y=new WeakSet;class S extends n.BasePlugin{constructor(){super(...arguments),p(this,y),(0,s.default)(this,"savedBorders",[])}static get PLUGIN_KEY(){return w}static get PLUGIN_PRIORITY(){return C}isEnabled(){return!!this.hot.getSettings()[w]}enablePlugin(){this.enabled||(this.addHook("afterContextMenuDefaultOptions",e=>m(y,this,R).call(this,e)),this.addHook("init",()=>m(y,this,b).call(this)),super.enablePlugin())}disablePlugin(){this.hideBorders(),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.changeBorderSettings(),super.updatePlugin()}setBorders(e,t){let o=["top","bottom","start","end"],i=null;t&&(this.checkSettingsCohesion([t]),o=Object.keys(t),i=(0,d.normalizeBorder)(t));const s=(0,g.detectSelectionType)(e),n=(0,g.normalizeSelectionFactory)(s,{createCellCoords:this.hot._createCellCoords.bind(this.hot),createCellRange:this.hot._createCellRange.bind(this.hot)});(0,h.arrayEach)(e,e=>{n(e).forAll((e,t)=>{(0,h.arrayEach)(o,o=>{this.prepareBorderFromCustomAdded(e,t,i,(0,d.toInlinePropName)(o))})})}),this.hot.view.render()}getBorders(e){if(!Array.isArray(e))return this.savedBorders;const t=(0,g.detectSelectionType)(e),o=(0,g.normalizeSelectionFactory)(t,{createCellCoords:this.hot._createCellCoords.bind(this.hot),createCellRange:this.hot._createCellRange.bind(this.hot)}),i=[];return(0,h.arrayEach)(e,e=>{o(e).forAll((e,t)=>{(0,h.arrayEach)(this.savedBorders,o=>{o.row===e&&o.col===t&&i.push((0,d.denormalizeBorder)(o))})})}),i}clearBorders(e){e?this.setBorders(e):((0,h.arrayEach)(this.savedBorders,e=>{this.clearBordersFromSelectionSettings(e.id),this.clearNullCellRange(),this.hot.removeCellMeta(e.row,e.col,"borders")}),this.savedBorders.length=0)}insertBorderIntoSettings(e,t){this.checkSavedBorders(e)||this.savedBorders.push(e);const o=this.hot._createCellRange(this.hot._createCellCoords(e.row,e.col));this.checkCustomSelections(e,o,t)||this.hot.selection.highlight.addCustomSelection({border:e,visualCellRange:o})}prepareBorderFromCustomAdded(e,t,o,i){const s=this.hot.countRows(),n=this.hot.countCols();if(e>=s||t>=n)return;let r=(0,d.createEmptyBorders)(e,t);o&&(r=(0,d.extendDefaultBorder)(r,o),(0,h.arrayEach)(this.hot.selection.highlight.customSelections,e=>{if(r.id===e.settings.id)return Object.assign(e.settings,o),r.id=e.settings.id,r.top=e.settings.top,r.bottom=e.settings.bottom,r.start=e.settings.start,r.end=e.settings.end,!1})),this.hot.setCellMeta(e,t,"borders",(0,d.denormalizeBorder)(r)),this.insertBorderIntoSettings(r,i)}prepareBorderFromCustomAddedRange(e,t){const o=Math.min(e.to.row,this.hot.countRows()-1),i=Math.min(e.to.col,this.hot.countCols()-1);(0,l.rangeEach)(e.from.row,o,o=>{(0,l.rangeEach)(e.from.col,i,i=>{const s=(0,d.createEmptyBorders)(o,i);let n=0;o===e.from.row&&(0,r.hasOwnProperty)(t,"top")&&(n+=1,s.top=t.top),o===e.to.row&&(0,r.hasOwnProperty)(t,"bottom")&&(n+=1,s.bottom=t.bottom),i===e.from.col&&(0,r.hasOwnProperty)(t,"start")&&(n+=1,s.start=t.start),i===e.to.col&&(0,r.hasOwnProperty)(t,"end")&&(n+=1,s.end=t.end),n>0&&(this.hot.setCellMeta(o,i,"borders",(0,d.denormalizeBorder)(s)),this.insertBorderIntoSettings(s))})})}removeAllBorders(e,t){const o=(0,d.createId)(e,t);this.spliceBorder(o),this.clearBordersFromSelectionSettings(o),this.clearNullCellRange(),this.hot.removeCellMeta(e,t,"borders")}setBorder(e,t,o,i){let s=this.hot.getCellMeta(e,t).borders;if(s=s&&void 0!==s.border?(0,d.normalizeBorder)(s):(0,d.createEmptyBorders)(e,t),i){s[o]=(0,d.createSingleEmptyBorder)();if(4===this.countHide(s))this.removeAllBorders(e,t);else{this.checkCustomSelectionsFromContextMenu(s,o,i)||this.insertBorderIntoSettings(s),this.hot.setCellMeta(e,t,"borders",(0,d.denormalizeBorder)(s))}}else{s[o]=(0,d.createDefaultCustomBorder)();this.checkCustomSelectionsFromContextMenu(s,o,i)||this.insertBorderIntoSettings(s),this.hot.setCellMeta(e,t,"borders",(0,d.denormalizeBorder)(s))}}prepareBorder(e,t,o){(0,h.arrayEach)(e,e=>{let{start:i,end:s}=e;if(i.row===s.row&&i.col===s.col)"noBorders"===t?this.removeAllBorders(i.row,i.col):this.setBorder(i.row,i.col,t,o);else switch(t){case"noBorders":(0,l.rangeEach)(i.col,s.col,e=>{(0,l.rangeEach)(i.row,s.row,t=>{this.removeAllBorders(t,e)})});break;case"top":(0,l.rangeEach)(i.col,s.col,e=>{this.setBorder(i.row,e,t,o)});break;case"bottom":(0,l.rangeEach)(i.col,s.col,e=>{this.setBorder(s.row,e,t,o)});break;case"start":(0,l.rangeEach)(i.row,s.row,e=>{this.setBorder(e,i.col,t,o)});break;case"end":(0,l.rangeEach)(i.row,s.row,e=>{this.setBorder(e,s.col,t,o)})}})}createCustomBorders(e){(0,h.arrayEach)(e,e=>{const t=(0,d.normalizeBorder)(e);e.range?this.prepareBorderFromCustomAddedRange(e.range,t):this.prepareBorderFromCustomAdded(e.row,e.col,t)})}countHide(e){const{top:t,bottom:o,start:i,end:s}=e,n=[t,o,i,s];return(0,h.arrayReduce)(n,(e,t)=>{let o=e;return t&&t.hide&&(o+=1),o},0)}clearBordersFromSelectionSettings(e){const t=(0,h.arrayMap)(this.hot.selection.highlight.customSelections,e=>e.settings.id).indexOf(e);t>-1&&this.hot.selection.highlight.customSelections[t].clear()}clearNullCellRange(){(0,h.arrayEach)(this.hot.selection.highlight.customSelections,(e,t)=>{if(null===e.cellRange)return this.hot.selection.highlight.customSelections[t].destroy(),this.hot.selection.highlight.customSelections.splice(t,1),!1})}hideBorders(){(0,h.arrayEach)(this.savedBorders,e=>{this.clearBordersFromSelectionSettings(e.id),this.clearNullCellRange()})}spliceBorder(e){const t=(0,h.arrayMap)(this.savedBorders,e=>e.id).indexOf(e);t>-1&&this.savedBorders.splice(t,1)}checkSavedBorders(e){let t=!1;return 4===this.countHide(e)?(this.spliceBorder(e.id),t=!0):(0,h.arrayEach)(this.savedBorders,(o,i)=>{if(e.id===o.id)return this.savedBorders[i]=e,t=!0,!1}),t}checkCustomSelectionsFromContextMenu(e,t,o){let i=!1;return(0,h.arrayEach)(this.hot.selection.highlight.customSelections,s=>{if(e.id===s.settings.id){const e=this.hot.view._wt.selectionManager.getBorderInstances(s);return(0,h.arrayEach)(e,e=>{e.toggleHiddenClass(t,o)}),i=!0,!1}}),i}checkCustomSelections(e,t,o){const i=this.countHide(e);let s=!1;return 4===i?(this.removeAllBorders(e.row,e.col),s=!0):(0,h.arrayEach)(this.hot.selection.highlight.customSelections,i=>{if(e.id===i.settings.id){if(i.visualCellRange=t,i.commit(),o){const t=this.hot.view._wt.selectionManager.getBorderInstances(i);(0,h.arrayEach)(t,t=>{t.changeBorderStyle(o,e)})}return s=!0,!1}}),s}changeBorderSettings(){const e=this.hot.getSettings()[w];if(Array.isArray(e)){const t=(0,r.deepClone)(e);this.checkSettingsCohesion(t),t.length||(this.savedBorders=t),this.createCustomBorders(t)}else void 0!==e&&this.createCustomBorders(this.savedBorders)}checkSettingsCohesion(e){const t=(0,d.hasLeftRightTypeOptions)(e),o=(0,d.hasStartEndTypeOptions)(e);if(t&&o)throw new Error('The "left"/"right" and "start"/"end" options should not be used together. Please use only the option "start"/"end".');if(this.hot.isRtl()&&t)throw new Error('The "left"/"right" properties are not supported for RTL. Please use option "start"/"end".');m(y,this,E).call(this,e)}destroy(){super.destroy()}}function E(e){e.forEach(e=>{Object.keys(e).forEach(t=>{const o=e[t].style;(0,f.isDefined)(o)&&!v.includes(o)?((0,a.warn)(`The "${o}" border style is not supported. Please use one of the following styles: ${v.join(", ")}.\nThe border style will be ignored.`),delete e[t].style):(0,f.isDefined)(o)&&"solid"===o&&delete e[t].style})})}function R(e){this.hot.getSettings()[w]&&e.items.push({name:"---------"},{key:"borders",name(){return this.getTranslatedPhrase(c.CONTEXTMENU_ITEMS_BORDERS)},disabled(){const e=this.getSelectedRangeActive();return!e||(!!e.isSingleHeader()||this.selection.isSelectedByCorner())},submenu:{items:[(0,u.top)(this),(0,u.right)(this),(0,u.bottom)(this),(0,u.left)(this),(0,u.noBorders)(this)]}})}function b(){this.changeBorderSettings()}t.CustomBorders=S},12358:(e,t,o)=>{"use strict";var i=o(94988),s=o(14326),n=o(60369),r=i(Function.toString);s(n.inspectSource)||(n.inspectSource=function(e){return r(e)}),e.exports=n.inspectSource},12557:(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(8278)),s=o(76742);const n=t.CONDITION_NAME="none";function r(){return!0}(0,s.registerCondition)(n,r,{name:i.FILTERS_CONDITIONS_NONE,inputsCount:0,showOperators:!1})},12767:(e,t,o)=>{"use strict";var i=o(27538),s=o(49979);i({target:"Set",proto:!0,real:!0,forced:!o(90544)("isSupersetOf",function(e){return!e})},{isSupersetOf:s})},13117:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(91338),s=o(49581),n=o(34149),r=o(76651);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
@@ -43,7 +43,7 @@ the last node, the hide column modification can be applied.`);const{crossHiddenC
43
43
  *
44
44
  * Description: Definition file for English - United States language-country.
45
45
  */(o(8278));const s={languageCode:"en-US",[i.OK]:"OK",[i.CANCEL]:"Cancel",[i.CONTEXTMENU_ITEMS_NO_ITEMS]:"No available options",[i.CONTEXTMENU_ITEMS_ROW_ABOVE]:"Insert row above",[i.CONTEXTMENU_ITEMS_ROW_BELOW]:"Insert row below",[i.CONTEXTMENU_ITEMS_INSERT_LEFT]:"Insert column left",[i.CONTEXTMENU_ITEMS_INSERT_RIGHT]:"Insert column right",[i.CONTEXTMENU_ITEMS_REMOVE_ROW]:["Remove row","Remove rows"],[i.CONTEXTMENU_ITEMS_REMOVE_COLUMN]:["Remove column","Remove columns"],[i.CONTEXTMENU_ITEMS_UNDO]:"Undo",[i.CONTEXTMENU_ITEMS_REDO]:"Redo",[i.CONTEXTMENU_ITEMS_READ_ONLY]:"Read only",[i.CONTEXTMENU_ITEMS_CLEAR_COLUMN]:"Clear column",[i.CONTEXTMENU_ITEMS_ALIGNMENT]:"Alignment",[i.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT]:"Left",[i.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER]:"Center",[i.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT]:"Right",[i.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY]:"Justify",[i.CONTEXTMENU_ITEMS_ALIGNMENT_TOP]:"Top",[i.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE]:"Middle",[i.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM]:"Bottom",[i.CONTEXTMENU_ITEMS_FREEZE_COLUMN]:"Freeze column",[i.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN]:"Unfreeze column",[i.CONTEXTMENU_ITEMS_BORDERS]:"Borders",[i.CONTEXTMENU_ITEMS_BORDERS_TOP]:"Top",[i.CONTEXTMENU_ITEMS_BORDERS_RIGHT]:"Right",[i.CONTEXTMENU_ITEMS_BORDERS_BOTTOM]:"Bottom",[i.CONTEXTMENU_ITEMS_BORDERS_LEFT]:"Left",[i.CONTEXTMENU_ITEMS_REMOVE_BORDERS]:"Remove border(s)",[i.CONTEXTMENU_ITEMS_ADD_COMMENT]:"Add comment",[i.CONTEXTMENU_ITEMS_EDIT_COMMENT]:"Edit comment",[i.CONTEXTMENU_ITEMS_REMOVE_COMMENT]:"Delete comment",[i.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT]:"Read-only comment",[i.CONTEXTMENU_ITEMS_MERGE_CELLS]:"Merge cells",[i.CONTEXTMENU_ITEMS_UNMERGE_CELLS]:"Unmerge cells",[i.CONTEXTMENU_ITEMS_COPY]:"Copy",[i.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS]:["Copy with header","Copy with headers"],[i.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS]:["Copy with group header","Copy with group headers"],[i.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY]:["Copy header only","Copy headers only"],[i.CONTEXTMENU_ITEMS_CUT]:"Cut",[i.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD]:"Insert child row",[i.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD]:"Detach from parent",[i.CONTEXTMENU_ITEMS_HIDE_COLUMN]:["Hide column","Hide columns"],[i.CONTEXTMENU_ITEMS_SHOW_COLUMN]:["Show column","Show columns"],[i.CONTEXTMENU_ITEMS_HIDE_ROW]:["Hide row","Hide rows"],[i.CONTEXTMENU_ITEMS_SHOW_ROW]:["Show row","Show rows"],[i.FILTERS_CONDITIONS_NONE]:"None",[i.FILTERS_CONDITIONS_EMPTY]:"Is empty",[i.FILTERS_CONDITIONS_NOT_EMPTY]:"Is not empty",[i.FILTERS_CONDITIONS_EQUAL]:"Is equal to",[i.FILTERS_CONDITIONS_NOT_EQUAL]:"Is not equal to",[i.FILTERS_CONDITIONS_BEGINS_WITH]:"Begins with",[i.FILTERS_CONDITIONS_ENDS_WITH]:"Ends with",[i.FILTERS_CONDITIONS_CONTAINS]:"Contains",[i.FILTERS_CONDITIONS_NOT_CONTAIN]:"Does not contain",[i.FILTERS_CONDITIONS_GREATER_THAN]:"Greater than",[i.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL]:"Greater than or equal to",[i.FILTERS_CONDITIONS_LESS_THAN]:"Less than",[i.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL]:"Less than or equal to",[i.FILTERS_CONDITIONS_BETWEEN]:"Is between",[i.FILTERS_CONDITIONS_NOT_BETWEEN]:"Is not between",[i.FILTERS_CONDITIONS_AFTER]:"After",[i.FILTERS_CONDITIONS_BEFORE]:"Before",[i.FILTERS_CONDITIONS_TODAY]:"Today",[i.FILTERS_CONDITIONS_TOMORROW]:"Tomorrow",[i.FILTERS_CONDITIONS_YESTERDAY]:"Yesterday",[i.FILTERS_VALUES_BLANK_CELLS]:"Blank cells",[i.FILTERS_DIVS_FILTER_BY_CONDITION]:"Filter by condition",[i.FILTERS_DIVS_FILTER_BY_VALUE]:"Filter by value",[i.FILTERS_LABELS_CONJUNCTION]:"And",[i.FILTERS_LABELS_DISJUNCTION]:"Or",[i.FILTERS_BUTTONS_SELECT_ALL]:"Select all",[i.FILTERS_BUTTONS_CLEAR]:"Clear",[i.FILTERS_BUTTONS_OK]:"OK",[i.FILTERS_BUTTONS_CANCEL]:"Cancel",[i.FILTERS_BUTTONS_PLACEHOLDER_SEARCH]:"Search",[i.FILTERS_BUTTONS_PLACEHOLDER_VALUE]:"Value",[i.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE]:"Second value",[i.PAGINATION_SECTION]:"Pagination",[i.PAGINATION_PAGE_SIZE_SECTION]:"Page size",[i.PAGINATION_PAGE_SIZE_AUTO]:"Auto",[i.PAGINATION_COUNTER_SECTION]:"[start] - [end] of [total]",[i.PAGINATION_NAV_SECTION]:"Page [currentPage] of [totalPages]",[i.PAGINATION_FIRST_PAGE]:"Go to first page",[i.PAGINATION_PREV_PAGE]:"Go to previous page",[i.PAGINATION_NEXT_PAGE]:"Go to next page",[i.PAGINATION_LAST_PAGE]:"Go to last page",[i.CHECKBOX_CHECKED]:"Checked",[i.CHECKBOX_UNCHECKED]:"Unchecked",[i.LOADING_TITLE]:"Loading...",[i.EMPTY_DATA_STATE_TITLE]:"No data available",[i.EMPTY_DATA_STATE_DESCRIPTION]:"There’s nothing to display yet.",[i.EMPTY_DATA_STATE_TITLE_FILTERS]:"No results found",[i.EMPTY_DATA_STATE_DESCRIPTION_FILTERS]:"It looks like your current filters are hiding all results.",[i.EMPTY_DATA_STATE_BUTTONS_FILTERS_RESET]:"Reset filters"};t.default=s},19809:(e,t)=>{"use strict";var o={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,s=i&&!o.call({1:2},1);t.f=s?function(e){var t=i(this,e);return!!t&&t.enumerable}:o},19826:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(24272);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.StretchColumns=i.StretchColumns},19835:(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())}}},19874:(e,t,o)=>{"use strict";o(5271)},20038:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182);var s,n=i(o(81115)),r=o(76651),a=o(94857),l=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(8278)),h=o(24293),c=o(5476);function u(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}var d=new WeakSet;class g extends h.BaseComponent{static get BUTTON_OK(){return"ok"}static get BUTTON_CANCEL(){return"cancel"}constructor(e,t){super(e,{id:t.id,stateless:!0}),u(this,d),(0,n.default)(this,"name",""),this.name=t.name,this.elements.push(new c.InputUI(this.hot,{type:"button",value:l.FILTERS_BUTTONS_OK,className:"htUIButton htUIButtonOK",identifier:g.BUTTON_OK})),this.elements.push(new c.InputUI(this.hot,{type:"button",value:l.FILTERS_BUTTONS_CANCEL,className:"htUIButton htUIButtonCancel",identifier:g.BUTTON_CANCEL})),this.registerHooks()}registerHooks(){(0,a.arrayEach)(this.elements,e=>{e.addLocalHook("click",(e,t)=>function(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}(d,this,f).call(this,e,t))})}getMenuItemDescriptor(){return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:()=>this.isHidden(),renderer:(e,t)=>((0,r.addClass)(t.parentNode,"htFiltersMenuActionBar"),(0,a.arrayEach)(this.elements,e=>t.appendChild(e.element)),t)}}accept(){this.runLocalHooks("accept")}cancel(){this.runLocalHooks("cancel")}}function f(e,t){t.options.identifier===s.BUTTON_OK?this.accept():this.cancel()}t.ActionBarComponent=g,s=g},20152:(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(2289);t.DO_NOT_SWAP=0,t.FIRST_BEFORE_SECOND=-1,t.FIRST_AFTER_SECOND=1},20155:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},20164:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115));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(){}}},20168:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588),o(81396),o(88633);var i=o(24496),s=o(76651),n=o(27665),r=o(72992);function a(e,t,o){l(e,t),t.set(e,o)}function l(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(e,t){return e.get(u(e,t))}function c(e,t,o){return e.set(u(e,t),o),o}function u(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakSet;function w(){const{view:e,stylesHandler:t}=h(d,this);if(e.isVerticallyScrollableByWindow())return!1;const o=e.getViewportHeight(),i=h(d,this).countRows(),s=t.getDefaultRowHeight(),n=t.isClassicTheme(),r=e=>n&&0===e?1:0;let a=0,l=!1;for(let e=0;e<i;e++){var c;if(!h(d,this).rowIndexMapper.isHidden(h(d,this).toPhysicalRow(e))&&(a+=(null!==(c=h(d,this).getRowHeight(e))&&void 0!==c?c:s)+r(e),a>o)){l=!0;break}}return l}function C(e){var t;return null!==(t=h(d,this).getColWidth(e,"StretchColumns"))&&void 0!==t?t:i.DEFAULT_COLUMN_WIDTH}function v(e,t){return h(d,this).runHooks("beforeStretchingColumnWidth",e,t)}t.StretchCalculator=class{constructor(e){var t,o;l(t=this,o=m),o.add(t),a(this,d,void 0),a(this,g,void 0),a(this,f,new Map([["all",new n.StretchAllStrategy(u(m,this,v).bind(this))],["last",new r.StretchLastStrategy(u(m,this,v).bind(this))]])),a(this,p,"none"),c(d,this,e),c(g,this,h(d,this).columnIndexMapper.createAndRegisterIndexMap("stretchColumns","physicalIndexToValue"))}useStrategy(e){c(p,this,h(f,this).has(e)?e:"none")}refreshStretching(){"none"!==h(p,this)?h(d,this).batchExecution(()=>{h(g,this).clear();const e=h(f,this).get(h(p,this));let t=h(d,this).view.getViewportWidth();u(m,this,w).call(this)&&(t-=(0,s.getScrollbarWidth)(h(d,this).rootDocument)),e.prepare({viewportWidth:t});for(let t=0;t<h(d,this).countCols();t++)h(d,this).columnIndexMapper.isHidden(h(d,this).toPhysicalColumn(t))||e.setColumnBaseWidth(t,u(m,this,C).call(this,t));e.calculate(),e.getWidths().forEach(e=>{let[t,o]=e;h(g,this).setValueAtIndex(h(d,this).toPhysicalColumn(t),o)})},!0):h(g,this).clear()}getStretchedWidth(e){return h(g,this).getValueAtIndex(h(d,this).toPhysicalColumn(e))}}},20182:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(39043);t.VALIDATOR_TYPE=i.VALIDATOR_TYPE,t.timeValidator=i.timeValidator},20200:(e,t,o)=>{"use strict";var i=o(27538),s=o(19617),n=o(81576),r=o(49510),a=o(16539),l=o(83203),h=o(13479),c=o(57625)("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})}})},20330:(e,t,o)=>{"use strict";var i=o(11127),s=Math.min;e.exports=function(e){var t=i(e);return t>0?s(t,9007199254740991):0}},20385:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostTop",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(0,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()}}}},20479:(e,t,o)=>{"use strict";t.__esModule=!0,t._dataToHTML=function(e){const t=e.length,o=["<table>"];for(let s=0;s<t;s+=1){const n=e[s],r=n.length,a=[];0===s&&o.push("<tbody>");for(let e=0;e<r;e+=1){const t=n[e],o=(0,i.isEmpty)(t)?"":t.toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20{2,}/gi,e=>`<span style="mso-spacerun: yes">${"&nbsp;".repeat(e.length-1)} </span>`).replace(/\t/gi,"&#9;");a.push(`<td>${o}</td>`)}o.push("<tr>",...a,"</tr>"),s+1===t&&o.push("</tbody>")}return o.push("</table>"),o.join("")},t.htmlToGridSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;const o={},i=t.createDocumentFragment(),r=t.createElement("div");i.appendChild(r);let a=e;if("string"==typeof a){const e=a.replace(/<td\b[^>]*?>([\s\S]*?)<\/\s*td>/g,e=>{const t=e.match(/<td\b[^>]*?>/g)[0];return`${t}${e.substring(t.length,e.lastIndexOf("<")).trim().replaceAll(/\n\s+/g," ").replaceAll(/<p.*?>/g,"\n").replace("\n","").replaceAll(/<\/(.*)>\s+$/gm,"</$1>").replace(/(<(?!br)([^>]+)>)/gi,"").replaceAll(/^&nbsp;$/gm,"")}</td>`});r.insertAdjacentHTML("afterbegin",`${e}`),a=r.querySelector("table")}if(!a||!function(e){return"TABLE"===(e&&e.nodeName||"")}(a))return;const l=r.querySelector('meta[name$="enerator"]'),h=null!==a.querySelector("tbody th"),c=a.querySelector("tr"),u=c?Array.from(c.cells).reduce((e,t)=>e+t.colSpan,0)-(h?1:0):0,d=a.tFoot&&Array.from(a.tFoot.rows)||[],g=[];let f=!1,p=0,m=0;if(a.tHead){const e=Array.from(a.tHead.rows).filter(e=>{const t=null!==e.querySelector("td");return t&&g.push(e),!t});p=e.length,f=p>0,p>1?o.nestedHeaders=Array.from(e).reduce((e,t)=>{const o=Array.from(t.cells).reduce((e,t,o)=>{if(h&&0===o)return e;const{colSpan:i,innerHTML:s}=t,n=i>1?{label:s,colspan:i}:s;return e.push(n),e},[]);return e.push(o),e},[]):f&&(o.colHeaders=Array.from(e[0].children).reduce((e,t,o)=>(h&&0===o||e.push(t.innerHTML),e),[]))}g.length&&(o.fixedRowsTop=g.length);d.length&&(o.fixedRowsBottom=d.length);const w=[...g,...Array.from(a.tBodies).reduce((e,t)=>(e.push(...Array.from(t.rows)),e),[]),...d];m=w.length;const C=new Array(m);for(let e=0;e<m;e++)C[e]=new Array(u);const v=[],y=[];for(let e=0;e<m;e++){const t=w[e],o=Array.from(t.cells),i=o.length;for(let t=0;t<i;t++){const i=o[t],{nodeName:r,innerHTML:a,rowSpan:h,colSpan:c}=i,u=C[e].findIndex(e=>void 0===e);if("TD"===r){if(h>1||c>1){for(let t=e;t<e+h;t++)if(t<m)for(let e=u;e<u+c;e++)C[t][e]=null;const t=i.getAttribute("style");t&&t.includes("mso-ignore:colspan")||v.push({col:u,row:e,rowspan:h,colspan:c})}let t="";t=l&&/excel/gi.test(l.content)?a.replace(/[\r\n][\x20]{0,2}/g," ").replace(/<br(\s*|\/)>[\r\n]?[\x20]{0,3}/gim,"\r\n"):a.replace(/<br(\s*|\/)>[\r\n]?/gim,"\r\n"),C[e][u]=t.replace(n,e=>s[e])}else y.push(a)}}v.length&&(o.mergeCells=v);y.length&&(o.rowHeaders=y);C.length&&(o.data=C);return o},t.instanceToHTML=function(e){const t=e.hasColHeaders(),o=e.hasRowHeaders(),s=[t?-1:0,o?-1:0,e.countRows()-1,e.countCols()-1],n=e.getData(...s),r=n.length,a=r>0?n[0].length:0,l=["<table>","</table>"],h=t?["<thead>","</thead>"]:[],c=["<tbody>","</tbody>"],u=o?1:0,d=t?1:0;for(let s=0;s<r;s+=1){const r=t&&0===s,l=[];for(let t=0;t<a;t+=1){const a=!r&&o&&0===t;let h="";if(r)h=`<th>${e.getColHeader(t-u)}</th>`;else if(a)h=`<th>${e.getRowHeader(s-d)}</th>`;else{const o=n[s][t],{hidden:r,rowspan:a,colspan:l}=e.getCellMeta(s-d,t-u);if(!r){const e=[];if(a&&e.push(`rowspan="${a}"`),l&&e.push(`colspan="${l}"`),(0,i.isEmpty)(o))h=`<td ${e.join(" ")}></td>`;else{const t=o.toString().replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20/gi,"&nbsp;").replace(/\t/gi,"&#9;");h=`<td ${e.join(" ")}>${t}</td>`}}}l.push(h)}const g=["<tr>",...l,"</tr>"].join("");r?h.splice(1,0,g):c.splice(-1,0,g)}return l.splice(1,0,h.join(""),c.join("")),l.join("")},o(66182),o(38094),o(81396),o(81124),o(14618),o(39716);var i=o(26599);const s={"&nbsp;":" ","&amp;":"&","&lt;":"<","&gt;":">"},n=new RegExp(Object.keys(s).map(e=>`(${e})`).join("|"),"gi")},20699:(e,t,o)=>{"use strict";var i=o(94988),s=o(89035),n=o(36724),r=Object,a=i("".split);e.exports=s(function(){return!r("z").propertyIsEnumerable(0)})?function(e){return"String"===n(e)?a(e,""):r(e)}:r},20823:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(81396),o(81124);var s=i(o(81115)),n=o(94857),r=o(78437),a=o(99586),l=i(o(86248)),h=i(o(85532)),c=i(o(17691)),u=o(35764);function d(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 g(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var f=new WeakSet;class p{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>[];d(this,f),(0,s.default)(this,"hot",void 0),(0,s.default)(this,"conditionCollection",void 0),(0,s.default)(this,"columnDataFactory",void 0),(0,s.default)(this,"changes",[]),(0,s.default)(this,"grouping",!1),(0,s.default)(this,"latestEditedColumnPosition",-1),(0,s.default)(this,"latestOrderStack",[]),this.hot=e,this.conditionCollection=t,this.columnDataFactory=o,this.conditionCollection.addLocalHook("beforeRemove",e=>g(f,this,m).call(this,e)),this.conditionCollection.addLocalHook("afterRemove",e=>this.updateStatesAtColumn(e)),this.conditionCollection.addLocalHook("afterAdd",e=>this.updateStatesAtColumn(e)),this.conditionCollection.addLocalHook("beforeClean",()=>g(f,this,w).call(this)),this.conditionCollection.addLocalHook("afterClean",()=>g(f,this,C).call(this))}groupChanges(){this.grouping=!0}flush(){this.grouping=!1,(0,n.arrayEach)(this.changes,e=>{this.updateStatesAtColumn(e)}),this.changes.length=0}updateStatesAtColumn(e,t){var o=this;if(this.grouping)return void(-1===this.changes.indexOf(e)&&this.changes.push(e));const i=this.conditionCollection.exportAllConditions();let s=this.conditionCollection.getColumnStackPosition(e);-1===s&&(s=this.latestEditedColumnPosition);const r=i.slice(0,s),l=i.slice(s);l.length&&l[0].column===e&&l.shift();const d=(0,a.curry)(function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const s=new h.default(o.hot,!1),r=[].concat(e,i);s.importAllConditions(r);const a=o.columnDataFactory(t);let l;l=s.isEmpty()?a:new c.default(s,e=>o.columnDataFactory(e)).filter(),l=(0,n.arrayMap)(l,e=>e.meta.visualRow);const d=(0,u.createArrayAssertion)(l);return s.destroy(),(0,n.arrayFilter)(a,e=>d(e.meta.visualRow))})(r),g=[].concat(this.conditionCollection.getConditions(e));this.runLocalHooks("update",{editedConditionStack:{column:e,conditions:g},dependentConditionStacks:l,filteredRowsFactory:d,conditionArgsChange:t})}destroy(){this.clearLocalHooks(),(0,r.objectEach)(this,(e,t)=>{this[t]=null})}}function m(e){this.latestEditedColumnPosition=this.conditionCollection.getColumnStackPosition(e)}function w(){this.latestOrderStack=this.conditionCollection.getFilteredColumns()}function C(){(0,n.arrayEach)(this.latestOrderStack,e=>{this.updateStatesAtColumn(e)})}(0,r.mixin)(p,l.default);t.default=p},20846:e=>{"use strict";e.exports=i},20912:(e,t,o)=>{"use strict";var i=o(89035),s=o(14326),n=/#|\.prototype\./,r=function(e,t){var o=l[a(e)];return o===c||o!==h&&(s(t)?i(t):!!t)},a=r.normalize=function(e){return String(e).replace(n,".").toLowerCase()},l=r.data={},h=r.NATIVE="N",c=r.POLYFILL="P";e.exports=r},20925:(e,t,o)=>{"use strict";var i=o(8467),s=o(33477),n=o(39303),r=o(17621),a=o(97931),l=o(93904),h=o(47812),c=o(1195),u=o(72071),d=o(14060),g=o(69423),f=o(21912),p=o(58719);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}}},21033:(e,t,o)=>{"use strict";var i,s,n,r=o(31338),a=o(19596),l=o(52270),h=o(39303),c=o(33477),u=o(60369),d=o(26075),g=o(46049),f="Object already initialized",p=a.TypeError,m=a.WeakMap;if(r||u.state){var w=u.state||(u.state=new m);w.get=w.get,w.has=w.has,w.set=w.set,i=function(e,t){if(w.has(e))throw new p(f);return t.facade=e,w.set(e,t),t},s=function(e){return w.get(e)||{}},n=function(e){return w.has(e)}}else{var C=d("state");g[C]=!0,i=function(e,t){if(c(e,C))throw new p(f);return t.facade=e,h(e,C,t),t},s=function(e){return c(e,C)?e[C]:{}},n=function(e){return c(e,C)}}e.exports={set:i,get:s,has:n,enforce:function(e){return n(e)?s(e):i(e,{})},getterFor:function(e){return function(t){var o;if(!l(t)||(o=s(t)).type!==e)throw new p("Incompatible receiver, "+e+" required");return o}}}},21314:(e,t,o)=>{"use strict";var i=o(78656);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(24496),n=i(o(73358))},21342:(e,t,o)=>{"use strict";t.__esModule=!0,o(66182);var i=o(94857),s=o(78437);const n={_hooksStorage:Object.create(null),addHook(e,t){return this._hooksStorage[e]||(this._hooksStorage[e]=[]),this.hot.addHook(e,t),this._hooksStorage[e].push(t),this},removeHooksByKey(e){(0,i.arrayEach)(this._hooksStorage[e]||[],t=>{this.hot.removeHook(e,t)})},clearHooks(){(0,s.objectEach)(this._hooksStorage,(e,t)=>this.removeHooksByKey(t)),this._hooksStorage={}}};(0,s.defineGetter)(n,"MIXIN_NAME","hooksRefRegisterer",{writable:!1,enumerable:!1});t.default=n},21372:(e,t,o)=>{"use strict";t.__esModule=!0,t.htmlRenderer=r;var i=o(36814),s=o(76651);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},21375:(e,t,o)=>{"use strict";var i=o(73168),s=o(14326),n=o(36724),r=o(71671)("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}},21426:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionRight",callback(e){const{selection:t}=e,{highlight:o}=e.getSelectedRangeActive();t.isSelectedByRowHeader()||t.isSelectedByCorner()||!(o.isCell()||o.isHeader()&&t.isSelectedByColumnHeader())||(t.markSource("keyboard"),t.transformEnd(0,e.getDirectionFactor()),t.markEndSource())}}},21733:(e,t,o)=>{"use strict";t.__esModule=!0,t.getCellMetas=function(e,t,o,s,n){const r=["visualRow","visualCol","row","col","prop"],a=r.length,l=[];return(0,i.rangeEach)(s,n,s=>{(0,i.rangeEach)(t,o,t=>{const o=e.getCellMeta(t,s);if(Object.keys(o).length!==a){const e=Object.fromEntries(Object.entries(o).filter(e=>{let[t]=e;return!1===r.includes(t)}));l.push([o.visualRow,o.visualCol,e])}})}),l},o(66182),o(93773),o(81396),o(81124);var i=o(58639)},21774:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(43336),r=o(91338),a=o(76651),l=o(3226);class h extends r.BaseRenderer{constructor(){super("TH"),(0,s.default)(this,"orderViews",new WeakMap),(0,s.default)(this,"sourceRowIndex",0)}obtainOrderView(e){let t;return this.orderViews.has(e)?t=this.orderViews.get(e):(t=new n.SharedOrderView(e,e=>this.nodesPool.obtain(this.sourceRowIndex,e)),this.orderViews.set(e,t)),t}render(){const{rowsToRender:e,rowHeaderFunctions:t,rowHeadersCount:o,rows:i,cells:s}=this.table;for(let n=0;n<e;n++){const e=this.table.renderedRowToSource(n),r=i.getRenderedNode(n);this.sourceRowIndex=e;const h=this.obtainOrderView(r),c=s.obtainOrderView(r);h.appendView(c).setSize(o).setOffset(0).start();for(let i=o-1;i>=0;i--){h.render();const o=h.getCurrentNode();o.className="",o.removeAttribute("style"),(0,a.removeAttribute)(o,[new RegExp("aria-(.*)"),new RegExp("role")]),this.table.isAriaEnabled()&&(0,a.setAttribute)(o,[(0,l.A11Y_ROWHEADER)(),(0,l.A11Y_SCOPE_ROW)(),(0,l.A11Y_COLINDEX)(i+1),(0,l.A11Y_TABINDEX)(-1)]),t[i](e,o,i)}h.end()}}}t.RowHeadersRenderer=h},21797:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(81386);t.FullyVisibleColumnsCalculationType=i.FullyVisibleColumnsCalculationType;var s=o(69932);t.FullyVisibleRowsCalculationType=s.FullyVisibleRowsCalculationType;var n=o(88216);t.PartiallyVisibleColumnsCalculationType=n.PartiallyVisibleColumnsCalculationType;var r=o(68606);t.PartiallyVisibleRowsCalculationType=r.PartiallyVisibleRowsCalculationType;var a=o(20164);t.RenderedAllColumnsCalculationType=a.RenderedAllColumnsCalculationType;var l=o(33290);t.RenderedAllRowsCalculationType=l.RenderedAllRowsCalculationType;var h=o(58435);t.RenderedColumnsCalculationType=h.RenderedColumnsCalculationType;var c=o(91671);t.RenderedRowsCalculationType=c.RenderedRowsCalculationType;var u=o(46016);t.ViewportColumnsCalculator=u.ViewportColumnsCalculator,t.DEFAULT_COLUMN_WIDTH=u.DEFAULT_WIDTH;var d=o(26150);t.ViewportRowsCalculator=d.ViewportRowsCalculator},21912:(e,t,o)=>{"use strict";var i=o(89035);e.exports=!i(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},21956:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(55424);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.NestedRows=i.NestedRows},21968:(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(73517);t.AutocompleteCellType=i.AutocompleteCellType,t.AUTOCOMPLETE_TYPE=i.CELL_TYPE;var s=o(84168);t.CheckboxCellType=s.CheckboxCellType,t.CHECKBOX_TYPE=s.CELL_TYPE;var n=o(42257);t.DateCellType=n.DateCellType,t.DATE_TYPE=n.CELL_TYPE;var r=o(89144);t.DropdownCellType=r.DropdownCellType,t.DROPDOWN_TYPE=r.CELL_TYPE;var a=o(57440);t.HandsontableCellType=a.HandsontableCellType,t.HANDSONTABLE_TYPE=a.CELL_TYPE;var l=o(51472);t.NumericCellType=l.NumericCellType,t.NUMERIC_TYPE=l.CELL_TYPE;var h=o(624);t.PasswordCellType=h.PasswordCellType,t.PASSWORD_TYPE=h.CELL_TYPE;var c=o(79573);t.SelectCellType=c.SelectCellType,t.SELECT_TYPE=c.CELL_TYPE;var u=o(730);t.TextCellType=u.TextCellType,t.TEXT_TYPE=u.CELL_TYPE;var d=o(4580);t.TimeCellType=d.TimeCellType,t.TIME_TYPE=d.CELL_TYPE;var g=o(9041);t.registerCellType=g.registerCellType,t.getCellType=g.getCellType,t.getRegisteredCellTypeNames=g.getRegisteredCellTypeNames,t.getRegisteredCellTypes=g.getRegisteredCellTypes,t.hasCellType=g.hasCellType},22362:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(84996);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.Dialog=i.Dialog},22381:(e,t,o)=>{"use strict";var i=o(19596),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}},22588:(e,t,o)=>{"use strict";var i=o(27538),s=o(19596),n=o(99949),r=o(20925),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)}})},22625:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},22892:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182),o(81396),o(88633);var s=i(o(81115)),n=o(93232),r=o(21733),a=o(58639),l=o(94857);class h extends n.BaseAction{constructor(e){let{index:t,indexes:o,data:i,amount:n,headers:r,columnPositions:a,rowPositions:l,fixedColumnsStart:h,removedCellMetas:c}=e;super("remove_col"),(0,s.default)(this,"index",void 0),(0,s.default)(this,"indexes",void 0),(0,s.default)(this,"data",void 0),(0,s.default)(this,"amount",void 0),(0,s.default)(this,"headers",void 0),(0,s.default)(this,"columnPositions",void 0),(0,s.default)(this,"rowPositions",void 0),(0,s.default)(this,"fixedColumnsStart",void 0),(0,s.default)(this,"removedCellMetas",void 0),this.index=t,this.indexes=o,this.data=i,this.amount=n,this.headers=r,this.columnPositions=a.slice(0),this.rowPositions=l.slice(0),this.fixedColumnsStart=h,this.removedCellMetas=c}static startRegisteringEvents(e,t){e.addHook("beforeRemoveCol",(o,i,s,n)=>{t.done(()=>{const t=e.getSourceDataArray(),s=(e.countCols()+o)%e.countCols(),n=s+i-1,l=[],c=[],u=[];return(0,a.rangeEach)(t.length-1,o=>{const i=[],r=t[o];(0,a.rangeEach)(s,n,t=>{i.push(r[e.toPhysicalColumn(t)])}),l.push(i)}),(0,a.rangeEach)(i-1,t=>{u.push(e.toPhysicalColumn(s+t))}),Array.isArray(e.getSettings().colHeaders)&&(0,a.rangeEach)(i-1,t=>{c.push(e.getSettings().colHeaders[e.toPhysicalColumn(s+t)]||null)}),new h({index:s,indexes:u,data:l,amount:i,headers:c,columnPositions:e.columnIndexMapper.getIndexesSequence(),rowPositions:e.rowIndexMapper.getIndexesSequence(),fixedColumnsStart:e.getSettings().fixedColumnsStart,removedCellMetas:(0,r.getCellMetas)(e,0,e.countRows(),s,n)})},n)})}undo(e,t){e.getSettings().fixedColumnsStart=this.fixedColumnsStart;const o=this.indexes.slice(0).sort(),i=(e,t,i)=>i[this.indexes.indexOf(o[t])],s=this.data.length,n=[];for(let e=0;e<s;e++)n.push((0,l.arrayMap)(this.data[e],i));const r=(0,l.arrayMap)(this.headers,i),a=[];e.columnIndexMapper.setIndexesSequence(this.columnPositions),e.alter("insert_col_start",e.toVisualColumn(this.indexes[0]),this.indexes.length,"UndoRedo.undo"),e.batchExecution(()=>{e.rowIndexMapper.setIndexesSequence(this.rowPositions),e.columnIndexMapper.setIndexesSequence(this.columnPositions)},!0),(0,l.arrayEach)(e.getSourceDataArray(),(e,t)=>{(0,l.arrayEach)(o,(o,i)=>{e[o]=n[t][i],a.push([t,o,e[o]])})}),void 0!==this.headers&&(0,l.arrayEach)(r,(t,i)=>{e.getSettings().colHeaders[o[i]]=t}),this.removedCellMetas.forEach(t=>{let[o,i,s]=t;e.setCellMetaObject(o,i,s)}),e.addHookOnce("afterViewRender",t),e.setSourceDataAtCell(a,null,null,"UndoRedo.undo")}redo(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.redo")}}t.RemoveColumnAction=h},22953:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(78437),r=i(o(86248));function a(e,t,o){l(e,t),t.set(e,o)}function l(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(e,t){return e.get(u(e,t))}function c(e,t,o){return e.set(u(e,t),o),o}function u(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakSet;class m{constructor(e,t){var o,i;l(o=this,i=p),i.add(o),a(this,d,void 0),a(this,g,0),a(this,f,{x:0,y:0}),(0,s.default)(this,"tableApi",void 0),c(d,this,e),this.tableApi=t}setActiveLayerIndex(e){c(g,this,e)}getCurrentSelection(){return h(d,this).peekByIndex(h(g,this))}transformStart(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];c(f,this,this.calculateOffset());const i=this.tableApi.createCellCoords(e,t);let s=this.getCurrentSelection().highlight;const r=this.tableApi.visualToRenderableCoords(s);let a=0,l=0;if(this.runLocalHooks("beforeTransformStart",i),null!==r.row&&null!==r.col){let{width:e,height:t}=u(p,this,y).call(this);const{row:r,col:c}=u(p,this,b).call(this,s),g=this.tableApi.fixedRowsBottom(),f=this.tableApi.minSpareRows(),m=this.tableApi.minSpareCols(),E=this.tableApi.autoWrapRow(),R=this.tableApi.autoWrapCol(),T=this.tableApi.createCellCoords(r+i.row,c+i.col);if(T.row>=t){const i=(0,n.createObjectPropListener)(o&&f>0&&0===g),s=T.col+1,r=s>=e,a=this.tableApi.createCellCoords(T.row-t,r?s-e:s);if(this.runLocalHooks("beforeColumnWrap",i,u(p,this,_).call(this,a),r),i.value)this.runLocalHooks("insertRowRequire",this.countRenderableRows());else if(R){if(this.shouldSwitchSelectionLayer()&&r&&h(d,this).size()>1){u(p,this,w).call(this);const e=u(p,this,S).call(this,"forward");null!==e&&a.assign(e)}T.assign(a)}}else if(T.row<0){const o=(0,n.createObjectPropListener)(R),i=T.col-1,s=i<0,r=this.tableApi.createCellCoords(t+T.row,s?e+i:i);if(this.runLocalHooks("beforeColumnWrap",o,u(p,this,_).call(this,r),s),R){if(this.shouldSwitchSelectionLayer()&&s&&h(d,this).size()>1){u(p,this,C).call(this);const e=u(p,this,S).call(this,"backward");null!==e&&r.assign(e)}T.assign(r)}}if(({width:e,height:t}=u(p,this,y).call(this)),T.col>=e){const i=(0,n.createObjectPropListener)(o&&m>0),s=T.row+1,r=s>=t,a=this.tableApi.createCellCoords(r?s-t:s,T.col-e);if(this.runLocalHooks("beforeRowWrap",i,u(p,this,_).call(this,a),r),i.value)this.runLocalHooks("insertColRequire",this.countRenderableColumns());else if(E){if(this.shouldSwitchSelectionLayer()&&r&&h(d,this).size()>1){u(p,this,w).call(this);const e=u(p,this,S).call(this,"forward");null!==e&&a.assign(e)}T.assign(a)}}else if(T.col<0){const o=(0,n.createObjectPropListener)(E),i=T.row-1,s=i<0,r=this.tableApi.createCellCoords(s?t+i:i,e+T.col);if(this.runLocalHooks("beforeRowWrap",o,u(p,this,_).call(this,r),s),E){if(this.shouldSwitchSelectionLayer()&&s&&h(d,this).size()>1){u(p,this,C).call(this);const e=u(p,this,S).call(this,"backward");null!==e&&r.assign(e)}T.assign(r)}}const{rowDir:M,colDir:I}=u(p,this,v).call(this,T);a=M,l=I,s=u(p,this,_).call(this,T)}return this.runLocalHooks("afterTransformStart",s,a,l),{selectionLayer:h(g,this),visualCoords:s}}transformEnd(e,t){c(f,this,this.calculateOffset());const o=this.tableApi.createCellCoords(e,t),i=this.getCurrentSelection(),s=this.tableApi.visualToRenderableCoords(i.highlight),n=u(p,this,E).call(this,i.to.row,i.from.row),r=u(p,this,R).call(this,i.to.col,i.from.col),a=i.to.clone();let l=0,d=0;if(this.runLocalHooks("beforeTransformEnd",o),null!==s.row&&null!==s.col&&null!==n&&null!==r){const{row:e,col:t}=u(p,this,b).call(this,i.highlight),s=this.tableApi.createCellCoords(n+o.row,r+o.col),h=i.getTopStartCorner(),c=i.getTopEndCorner(),g=i.getBottomEndCorner();if(o.col<0&&r>=t&&s.col<t){const e=s.col-t;s.col=u(p,this,R).call(this,h.col,c.col)+e}else if(o.col>0&&r<=t&&s.col>t){const e=u(p,this,R).call(this,c.col,h.col),t=Math.max(s.col-e,1);s.col=e+t}if(o.row<0&&n>=e&&s.row<e){const t=s.row-e;s.row=u(p,this,E).call(this,h.row,g.row)+t}else if(o.row>0&&n<=e&&s.row>e){const e=u(p,this,E).call(this,g.row,h.row),t=Math.max(s.row-e,1);s.row=e+t}const{rowDir:f,colDir:m}=u(p,this,v).call(this,s);l=f,d=m;const w=u(p,this,_).call(this,s);0===o.row&&0!==o.col?a.col=w.col:0!==o.row&&0===o.col?a.row=w.row:(a.row=w.row,a.col=w.col)}return this.runLocalHooks("afterTransformEnd",a,l,d),{selectionLayer:h(g,this),visualCoords:a}}calculateOffset(){throw new Error("`calculateOffset` is not implemented")}countRenderableRows(){throw new Error("`countRenderableRows` is not implemented")}countRenderableColumns(){throw new Error("`countRenderableColumns` is not implemented")}shouldSwitchSelectionLayer(){throw new Error("`shouldSwitchSelectionLayer` is not implemented")}}function w(){const e=h(g,this)+1;this.setActiveLayerIndex(e>=h(d,this).size()?0:e),c(f,this,this.calculateOffset())}function C(){const e=h(g,this)-1;this.setActiveLayerIndex(e<0?h(d,this).size()-1:e),c(f,this,this.calculateOffset())}function v(e){const{width:t,height:o}=u(p,this,y).call(this);let i=0,s=0;return e.row<0?(i=-1,e.row=0):e.row>0&&e.row>=o&&(i=1,e.row=o-1),e.col<0?(s=-1,e.col=0):e.col>0&&e.col>=t&&(s=1,e.col=t-1),{rowDir:i,colDir:s}}function y(){return{width:h(f,this).x+this.countRenderableColumns(),height:h(f,this).y+this.countRenderableRows()}}function S(e){if(!["forward","backward"].includes(e))return null;const t=this.getCurrentSelection().getTopStartCorner(),o=this.getCurrentSelection().getBottomEndCorner(),[i,s,n,r]="forward"===e?[t.row,o.row,t.col,o.col]:[o.row,t.row,o.col,t.col],a=u(p,this,E).call(this,i,s),l=u(p,this,R).call(this,n,r);return null===a||null===l?null:this.tableApi.createCellCoords(a,l)}function E(e,t){const o=this.tableApi.findFirstNonHiddenRenderableRow(e,t);return null===o?null:h(f,this).y+o}function R(e,t){const o=this.tableApi.findFirstNonHiddenRenderableColumn(e,t);return null===o?null:h(f,this).x+o}function b(e){const{row:t,col:o}=this.tableApi.visualToRenderableCoords(e);if(null===t||null===o)throw new Error("Renderable coords are not visible.");return this.tableApi.createCellCoords(h(f,this).y+t,h(f,this).x+o)}function _(e){const t=e.clone();return t.col=e.col-h(f,this).x,t.row=e.row-h(f,this).y,this.tableApi.renderableToVisualCoords(t)}t.BaseTransformation=m,(0,n.mixin)(m,r.default)},23092:(e,t,o)=>{"use strict";var i=o(31884),s=o(84990),n=o(96938),r=o(54230),a=o(29521),l=o(43209),h=o(82719),c=s.has,u=s.remove;e.exports=function(e){var t=i(this),o=a(e),s=n(t);return r(t)<=o.size?l(t,function(e){o.includes(e)&&u(s,e)}):h(o.getIterator(),function(e){c(s,e)&&u(s,e)}),s}},23154:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182);var s=i(o(81115)),n=o(76651),r=o(94857),a=o(42479),l=o(88014);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},23268:(e,t,o)=>{"use strict";t.__esModule=!0,t.createKeyboardShortcutCommandsPool=function(e){const t={};return d.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(82452),s=o(78124),n=o(26766),r=o(13499),a=o(57065),l=o(56902),h=o(13595),c=o(4436),u=o(32381);const d=[...(0,i.getAllCommands)(),...(0,s.getAllCommands)(),...(0,n.getAllCommands)(),r.command,a.command,l.command,h.command,c.command,u.command]},23667:(e,t,o)=>{"use strict";t.__esModule=!0,t.rowHeaderScrollStrategy=function(e){return t=>{const o=(0,i.createScrollTargetCalculator)(e).getComputedRowTarget(t);e.scrollViewportTo({row:o},()=>{const t=!!e.getSettings().rowHeaders;(0,i.scrollWindowToCell)(e.getCell(o,t?-1:0,!0))})}};var i=o(57787)},23892:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=o(76651),n=o(78437),r=i(o(86248)),a=o(37309);function l(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function h(e,t){return e.get(u(e,t))}function c(e,t,o){return e.set(u(e,t),o),o}function u(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,w=new WeakMap,C=new WeakMap,v=new WeakMap;class y{static get CLASS_EDITOR_CONTAINER(){return"htCommentsContainer"}static get CLASS_EDITOR(){return"htComments"}static get CLASS_INPUT(){return"htCommentTextArea"}static get CLASS_CELL(){return"htCommentCell"}constructor(e,t,o){var i=this;l(this,d,void 0),l(this,g,void 0),l(this,f,!1),l(this,p,null),l(this,m,void 0),l(this,w,void 0),l(this,C,!0),l(this,v,new a.EditorResizeObserver),c(d,this,e),c(g,this,o),c(f,this,t),c(m,this,this.createEditor()),c(w,this,h(m,this).style),h(v,this).setObservedElement(this.getInputElement()),h(v,this).addLocalHook("resize",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return i.runLocalHooks("resize",...t)}),this.hide()}setPosition(e,t){h(w,this).left=`${e}px`,h(w,this).top=`${t}px`}setSize(e,t){if(e&&t){const o=this.getInputElement();o.style.width=`${e}px`,o.style.height=`${t}px`}}getSize(){return{width:(0,s.outerWidth)(this.getInputElement()),height:(0,s.outerHeight)(this.getInputElement())}}observeSize(){h(v,this).observe()}resetSize(){const e=this.getInputElement();e.style.width="",e.style.height=""}setReadOnlyState(e){this.getInputElement().readOnly=e}show(){h(w,this).display="block",c(C,this,!1)}hide(){h(v,this).unobserve(),h(C,this)||(h(w,this).display="none"),c(C,this,!0)}isVisible(){return"block"===h(w,this).display}setValue(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")||"";this.getInputElement().value=e}getValue(){return this.getInputElement().value}isFocused(){return h(d,this).activeElement===this.getInputElement()}focus(){this.getInputElement().focus()}createEditor(){const e=h(d,this).createElement("div"),t=h(d,this).createElement("textarea");return e.style.display="none",c(p,this,h(d,this).createElement("div")),h(p,this).setAttribute("dir",h(f,this)?"rtl":"ltr"),(0,s.addClass)(h(p,this),y.CLASS_EDITOR_CONTAINER),h(g,this).appendChild(h(p,this)),(0,s.addClass)(e,y.CLASS_EDITOR),(0,s.addClass)(t,y.CLASS_INPUT),t.setAttribute("data-hot-input",!0),e.appendChild(t),h(p,this).appendChild(e),e}getInputElement(){return h(m,this).querySelector(`.${y.CLASS_INPUT}`)}getEditorElement(){return h(m,this)}destroy(){const e=h(p,this)?h(p,this).parentNode:null;h(m,this).parentNode.removeChild(h(m,this)),c(m,this,null),c(w,this,null),h(v,this).destroy(),e&&e.removeChild(h(p,this))}}(0,n.mixin)(y,r.default);t.default=y},24272:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588),o(81396),o(88633);var i=o(42479),s=o(20168);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},24293:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(94857),r=o(78437),a=i(o(86248)),l=o(32435);class h{constructor(e,t){let{id:o,stateless:i=!0}=t;(0,s.default)(this,"hot",void 0),(0,s.default)(this,"id",void 0),(0,s.default)(this,"elements",[]),(0,s.default)(this,"hidden",!1),(0,s.default)(this,"stateId",""),(0,s.default)(this,"state",void 0),this.hot=e,this.id=o,this.stateId=`Filters.component.${this.id}`,this.state=i?null:this.hot.columnIndexMapper.registerMap(this.stateId,new l.LinkedPhysicalIndexToValueMap)}getElements(){return this.elements}reset(){(0,n.arrayEach)(this.elements,e=>e.reset())}hide(){this.hidden=!0}show(){this.hidden=!1}isHidden(){return null===this.hot||this.hidden}restoreState(e){this.state&&this.setState(this.state.getValueAtIndex(e))}setState(){throw new Error("The state setting logic is not implemented")}saveState(e){this.state&&this.state.setValueAtIndex(e,this.getState())}getState(){throw new Error("The state gathering logic is not implemented")}destroy(){this.hot.columnIndexMapper.unregisterMap(this.stateId),this.clearLocalHooks(),(0,n.arrayEach)(this.elements,e=>e.destroy()),this.state=null,this.elements=null,this.hot=null}}t.BaseComponent=h,(0,r.mixin)(h,a.default)},24302:(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
46
- before using it. Read more about this issue at: https://docs.handsontable.com/i18n/missing-language-code.`)};var i=o(26599),s=o(78437),n=o(49581),r=o(34149)},24364:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(64172)),n=i(o(43108)),r=i(o(45515)),a=o(78437),l=o(59719);class h extends s.default{constructor(e,t,o,i){super(e,t,o,i,l.CLONE_INLINE_START)}}(0,a.mixin)(h,n.default),(0,a.mixin)(h,r.default);t.default=h},24384:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(76651),s=o(70667),n=o(78437),r=o(12108),a=o(52709);const l="ht-border-style-";t.default=class{constructor(e,t){t&&(this.eventManager=e.eventManager,this.instance=e,this.wot=e,this.settings=t,this.mouseDown=!1,this.main=null,this.top=null,this.bottom=null,this.start=null,this.end=null,this.topStyle=null,this.bottomStyle=null,this.startStyle=null,this.endStyle=null,this.cornerDefaultStyle=(0,a.getCornerStyle)(this.instance),this.cornerCenterPointOffset=-Math.ceil(parseInt(this.cornerDefaultStyle.width,10)/2),this.corner=null,this.cornerStyle=null,this.createBorders(t),this.registerListeners())}registerListeners(){const e=this.wot.rootDocument.body;this.eventManager.addEventListener(e,"mousedown",()=>this.onMouseDown()),this.eventManager.addEventListener(e,"mouseup",()=>this.onMouseUp());for(let e=0,t=this.main.childNodes.length;e<t;e++){const t=this.main.childNodes[e];this.eventManager.addEventListener(t,"mouseenter",t=>this.onMouseEnter(t,this.main.childNodes[e]))}}onMouseDown(){this.mouseDown=!0}onMouseUp(){this.mouseDown=!1}onMouseEnter(e,t){if(!this.mouseDown||!this.wot.getSetting("hideBorderOnMouseDownOver"))return;e.preventDefault(),(0,s.stopImmediatePropagation)(e);const o=this,i=this.wot.rootDocument.body,n=t.getBoundingClientRect();t.style.display="none",this.eventManager.addEventListener(i,"mousemove",function e(s){var r;((r=s).clientY<Math.floor(n.top)||r.clientY>Math.ceil(n.top+n.height)||r.clientX<Math.floor(n.left)||r.clientX>Math.ceil(n.left+n.width))&&(o.eventManager.removeEventListener(i,"mousemove",e),t.style.display="block")})}createBorders(e){const{rootDocument:t}=this.wot;this.main=t.createElement("div");const o=["top","start","bottom","end","corner"];let i=this.main.style;i.position="absolute",i.top=0,i.left=0;for(let s=0;s<5;s++){const n=o[s],r=t.createElement("div"),a=t=>this.settings[n]&&this.settings[n][t]?this.settings[n][t]:e.border[t];r.className=`wtBorder ${this.settings.className||""}`,this.settings[n]&&this.settings[n].hide&&(r.className+=" hidden"),i=r.style;const h=a("style");h?(["start","end"].includes(n)?r.className+=` ${l}${h}-vertical`:r.className+=` ${l}${h}-horizontal`,i.setProperty("--ht-custom-border-size",`${a("width")}px`),i.setProperty("--ht-custom-border-color",a("color"))):i.backgroundColor=a("color"),i.height=`${a("width")}px`,i.width=`${a("width")}px`,this.main.appendChild(r)}this.top=this.main.childNodes[0],this.start=this.main.childNodes[1],this.bottom=this.main.childNodes[2],this.end=this.main.childNodes[3],this.topStyle=this.top.style,this.startStyle=this.start.style,this.bottomStyle=this.bottom.style,this.endStyle=this.end.style,this.corner=this.main.childNodes[4],this.corner.className+=" corner",this.cornerStyle=this.corner.style,this.cornerStyle.width=`${this.cornerDefaultStyle.width}px`,this.cornerStyle.height=`${this.cornerDefaultStyle.height}px`,this.cornerStyle.border=[`${this.cornerDefaultStyle.borderWidth}px`,this.cornerDefaultStyle.borderStyle,this.cornerDefaultStyle.borderColor].join(" "),(0,r.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&this.createMultipleSelectorHandles(),this.disappear();const{wtTable:s}=this.wot;let n=s.bordersHolder;n||(n=t.createElement("div"),n.className="htBorders",s.bordersHolder=n,s.spreader.appendChild(n)),n.appendChild(this.main)}createMultipleSelectorHandles(){const{rootDocument:e,wtSettings:t}=this.wot,o=t.getSetting("stylesHandler"),i=o.getCSSVariableValue("cell-mobile-handle-size"),s=o.getCSSVariableValue("cell-mobile-handle-border-radius"),r=o.getCSSVariableValue("cell-mobile-handle-background-color"),a=o.getCSSVariableValue("cell-mobile-handle-border-width"),l=o.getCSSVariableValue("cell-mobile-handle-border-color");this.selectionHandles={top:e.createElement("DIV"),topHitArea:e.createElement("DIV"),bottom:e.createElement("DIV"),bottomHitArea:e.createElement("DIV")};this.selectionHandles.top.className="topSelectionHandle topLeftSelectionHandle",this.selectionHandles.topHitArea.className="topSelectionHandle-HitArea topLeftSelectionHandle-HitArea",this.selectionHandles.bottom.className="bottomSelectionHandle bottomRightSelectionHandle",this.selectionHandles.bottomHitArea.className="bottomSelectionHandle-HitArea bottomRightSelectionHandle-HitArea",this.selectionHandles.styles={top:this.selectionHandles.top.style,topHitArea:this.selectionHandles.topHitArea.style,bottom:this.selectionHandles.bottom.style,bottomHitArea:this.selectionHandles.bottomHitArea.style};const h={position:"absolute",height:"40px",width:"40px","border-radius":`${parseInt(40/1.5,10)}px`};(0,n.objectEach)(h,(e,t)=>{this.selectionHandles.styles.bottomHitArea[t]=e,this.selectionHandles.styles.topHitArea[t]=e});const c=o.isClassicTheme()?{position:"absolute",height:"10px",width:"10px","border-radius":`${parseInt(10/1.5,10)}px`,background:"#F5F5FF",border:"1px solid #4285c8"}:{position:"absolute",height:`${i}px`,width:`${i}px`,"border-radius":`${s}px`,background:`${r}`,border:`${a}px solid ${l}`};(0,n.objectEach)(c,(e,t)=>{this.selectionHandles.styles.bottom[t]=e,this.selectionHandles.styles.top[t]=e}),this.main.appendChild(this.selectionHandles.top),this.main.appendChild(this.selectionHandles.bottom),this.main.appendChild(this.selectionHandles.topHitArea),this.main.appendChild(this.selectionHandles.bottomHitArea)}isPartRange(e,t){const o=this.wot.selectionManager.getAreaSelection();return!(!o.cellRange||e===o.cellRange.to.row&&t===o.cellRange.to.col)}updateMultipleSelectionHandlesPosition(e,t,o,i,s,n){const r=this.wot.wtSettings.getSetting("rtlMode")?"right":"left",{top:a,topHitArea:l,bottom:h,bottomHitArea:c}=this.selectionHandles.styles,u=parseInt(a.borderWidth,10),d=parseInt(a.width,10),g=parseInt(l.width,10),f=this.wot.wtTable.getWidth(),p=this.wot.wtTable.getHeight();a.top=`${parseInt(o-d-1,10)}px`,a[r]=`${parseInt(i-d-1,10)}px`,l.top=`${parseInt(o-g/4*3,10)}px`,l[r]=`${parseInt(i-g/4*3,10)}px`;const m=Math.min(parseInt(i+s,10),f-d-2*u),w=Math.min(parseInt(i+s-g/4,10),f-g-2*u);h[r]=`${m}px`,c[r]=`${w}px`;const C=Math.min(parseInt(o+n,10),p-d-2*u),v=Math.min(parseInt(o+n-g/4,10),p-g-2*u);h.top=`${C}px`,c.top=`${v}px`,this.settings.border.cornerVisible&&this.settings.border.cornerVisible()?(a.display="block",l.display="block",this.isPartRange(e,t)?(h.display="none",c.display="none"):(h.display="block",c.display="block")):(a.display="none",h.display="none",l.display="none",c.display="none"),e===this.wot.wtSettings.getSetting("fixedRowsTop")||t===this.wot.wtSettings.getSetting("fixedColumnsStart")?(a.zIndex="9999",l.zIndex="9999"):(a.zIndex="",l.zIndex="")}appear(e){if(this.disabled)return;let[t,o,s,n]=e;if(t<0&&s<0||o<0&&n<0)return void this.disappear();const{wtTable:a,rootDocument:l,rootWindow:h}=this.wot,c=t!==s||o!==n,u=this.wot.wtSettings.getSetting("stylesHandler").isClassicTheme(),d=a.getFirstRenderedRow(),g=a.getLastRenderedRow(),f=a.getFirstRenderedColumn(),p=a.getLastRenderedColumn();if(f<0&&p<0||d<0&&g<0)return void this.disappear();let m;if(c){if(o=Math.max(o,f),n=Math.min(n,p),t=Math.max(t,d),s=Math.min(s,g),n<o||s<t)return void this.disappear();m=a.getCell(this.wot.createCellCoords(t,o))}else if(m=a.getCell(this.wot.createCellCoords(t,o)),!(0,i.isHTMLElement)(m))return void this.disappear();const w=c?a.getCell(this.wot.createCellCoords(s,n)):m,C=(0,i.offset)(m),v=c?(0,i.offset)(w):C,y=(0,i.offset)(a.TABLE),S=C.top,E=C.left,R=this.wot.wtSettings.getSetting("rtlMode");let b=0,_=0;if(R){const e=(0,i.outerWidth)(a.TABLE),t=(0,i.outerWidth)(m),o=h.innerWidth-y.left-e;_=E+t-v.left,b=h.innerWidth-E-t-o-1}else _=v.left+(0,i.outerWidth)(w)-E,b=E-y.left-1;if(this.isEntireColumnSelected(t,s)){const e=t,i=this.getDimensionsFromHeader("columns",o,n,e,y);let s=null;i&&([s,b,_]=i),s&&(m=s)}let T=S-y.top-1,M=v.top+(0,i.outerHeight)(w)-S;if(this.isEntireRowSelected(o,n)){const e=o,i=this.getDimensionsFromHeader("rows",t,s,e,y);let n=null;i&&([n,T,M]=i),n&&(m=n)}const I=h.getComputedStyle(m);parseInt(I.borderTopWidth,10)>0&&(T+=1,M=M>0?M-1:0),parseInt(I[R?"borderRightWidth":"borderLeftWidth"],10)>0&&(b+=1,_=_>0?_-1:0);const O=R?"right":"left",A=Math.ceil(this.settings.border.width/2);this.topStyle.top=`${T}px`,this.topStyle[O]=`${b}px`,this.topStyle.width=`${_+A}px`,this.topStyle.display="block",this.startStyle.top=`${T}px`,this.startStyle[O]=`${b}px`,this.startStyle.height=`${M+A}px`,this.startStyle.display="block",this.bottomStyle.top=`${T+M-parseInt(this.bottomStyle.height,10)+A}px`,this.bottomStyle[O]=`${b}px`,this.bottomStyle.width=`${_+A}px`,this.bottomStyle.display="block",this.endStyle.top=`${T}px`,this.endStyle[O]=`${b+_-parseInt(this.endStyle.width,10)+A}px`,this.endStyle.height=`${M+A}px`,this.endStyle.display="block";let N=this.settings.border.cornerVisible;N="function"==typeof N?N(this.settings.layerLevel):N;const P=this.wot.getSetting("onModifyGetCellCoords",s,n,!1,"render");let[H,x]=[s,n];if(P&&Array.isArray(P)&&([,,H,x]=P),(0,r.isMobileBrowser)()||!N||this.isPartRange(H,x))this.cornerStyle.display="none";else{this.cornerStyle.top=T+M+this.cornerCenterPointOffset-this.cornerDefaultStyle.borderWidth+"px",this.cornerStyle[O]=b+_+this.cornerCenterPointOffset-this.cornerDefaultStyle.borderWidth+"px",this.cornerStyle.borderRightWidth=`${this.cornerDefaultStyle.borderWidth}px`,this.cornerStyle.borderLeftWidth=`${this.cornerDefaultStyle.borderWidth}px`,this.cornerStyle.borderBottomWidth=`${this.cornerDefaultStyle.borderWidth}px`,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.display="none";let e=(0,i.getTrimmingContainer)(a.TABLE);const t=e===h;t&&(e=l.documentElement);const o=parseInt(this.cornerDefaultStyle.borderWidth,10)-1,r=Math.ceil(parseInt(this.cornerDefaultStyle.width,10)/2),c=Math.ceil(parseInt(this.cornerDefaultStyle.height,10)/2);if(n===this.wot.getSetting("totalColumns")-1){const s=t?w.getBoundingClientRect().left:w.offsetLeft;let n=!1,a=0;if(R?(a=s-parseInt(this.cornerDefaultStyle.width,10)/2,n=a<0):(a=s+(0,i.outerWidth)(w)+parseInt(this.cornerDefaultStyle.width,10)/2,n=a>=(0,i.innerWidth)(e)),n){const e=Math.floor(b+_+this.cornerCenterPointOffset-r-o);u?(this.cornerStyle[O]=`${e}px`,this.cornerStyle[R?"borderLeftWidth":"borderRightWidth"]=0):this.cornerStyle[O]=e-1+"px"}}if(s===this.wot.getSetting("totalRows")-1){if((t?w.getBoundingClientRect().top:w.offsetTop)+(0,i.outerHeight)(w)+parseInt(this.cornerDefaultStyle.height,10)/2>=(0,i.innerHeight)(e)){const e=Math.floor(T+M+this.cornerCenterPointOffset-c-o);u?(this.cornerStyle.top=`${e}px`,this.cornerStyle.borderBottomWidth=0):this.cornerStyle.top=e-1+"px"}}this.cornerStyle.display="block"}(0,r.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&this.updateMultipleSelectionHandlesPosition(s,n,T,b,_,M)}isEntireColumnSelected(e,t){return e===this.wot.wtTable.getFirstRenderedRow()&&t===this.wot.wtTable.getLastRenderedRow()}isEntireRowSelected(e,t){return e===this.wot.wtTable.getFirstRenderedColumn()&&t===this.wot.wtTable.getLastRenderedColumn()}getDimensionsFromHeader(e,t,o,s,n){const{wtTable:r}=this.wot,a=r.wtRootElement.parentNode;let l=null,h=null,c=null,u=null,d=null,g=null,f=null,p=null;switch(e){case"rows":l=function(){return r.getRowHeader(...arguments)},h=function(){return(0,i.outerHeight)(...arguments)},c="ht__selection--rows",g="top";break;case"columns":l=function(){return r.getColumnHeader(...arguments)},h=function(){return(0,i.outerWidth)(...arguments)},c="ht__selection--columns",g="left"}if(a.classList.contains(c)){const e=this.wot.getSetting("columnHeaders").length;if(f=l(t,e-s),p=l(o,e-s),!f||!p)return!1;const r=(0,i.offset)(f),a=(0,i.offset)(p);return f&&p&&(u=r[g]-n[g]-1,d=a[g]+h(p)-r[g]),[f,u,d]}return!1}changeBorderStyle(e,t){const o=this[e].style,s=t[e];!s||s.hide?(0,i.addClass)(this[e],"hidden"):((0,i.hasClass)(this[e],"hidden")&&(0,i.removeClass)(this[e],"hidden"),o.backgroundColor=s.color,"top"!==e&&"bottom"!==e||(o.height=`${s.width}px`),"start"!==e&&"end"!==e||(o.width=`${s.width}px`))}changeBorderToDefaultStyle(e){const t=1,o="#000",i=this[e].style;i.backgroundColor=o,i.width=`${t}px`,i.height=`${t}px`}toggleHiddenClass(e,t){this.changeBorderToDefaultStyle(e),t?(0,i.addClass)(this[e],"hidden"):(0,i.removeClass)(this[e],"hidden")}disappear(){this.topStyle.display="none",this.bottomStyle.display="none",this.startStyle.display="none",this.endStyle.display="none",this.cornerStyle.display="none",(0,r.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&(this.selectionHandles.styles.top.display="none",this.selectionHandles.styles.topHitArea.display="none",this.selectionHandles.styles.bottom.display="none",this.selectionHandles.styles.bottomHitArea.display="none")}destroy(){this.eventManager.destroyWithOwnEventsOnly(),this.main.parentNode.removeChild(this.main)}}},24427:(e,t,o)=>{"use strict";var i=o(19596),s=o(771),n=o(36724),r=function(e){return s.slice(0,e.length)===e};e.exports=r("Bun/")?"BUN":r("Cloudflare-Workers")?"CLOUDFLARE":r("Deno/")?"DENO":r("Node.js/")?"NODE":i.Bun&&"string"==typeof Bun.version?"BUN":i.Deno&&"object"==typeof Deno.version?"DENO":"process"===n(i.process)?"NODE":i.window&&i.document?"BROWSER":"REST"},24496:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=o(21797);t.ViewportColumnsCalculator=s.ViewportColumnsCalculator,t.ViewportRowsCalculator=s.ViewportRowsCalculator,t.DEFAULT_COLUMN_WIDTH=s.DEFAULT_COLUMN_WIDTH;var n=i(o(37135));t.CellCoords=n.default;var r=i(o(14120));t.CellRange=r.default;var a=i(o(43080));t.default=a.default,t.Core=a.default;var l=o(13533);t.Selection=l.Selection,t.HIGHLIGHT_ACTIVE_HEADER_TYPE=l.ACTIVE_HEADER_TYPE,t.HIGHLIGHT_AREA_TYPE=l.AREA_TYPE,t.HIGHLIGHT_FOCUS_TYPE=l.FOCUS_TYPE,t.HIGHLIGHT_FILL_TYPE=l.FILL_TYPE,t.HIGHLIGHT_HEADER_TYPE=l.HEADER_TYPE,t.HIGHLIGHT_ROW_TYPE=l.ROW_TYPE,t.HIGHLIGHT_COLUMN_TYPE=l.COLUMN_TYPE,t.HIGHLIGHT_CUSTOM_SELECTION_TYPE=l.CUSTOM_SELECTION_TYPE;var h=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(68234));t.Renderer=h;var c=o(43336);t.OrderView=c.OrderView,t.SharedOrderView=c.SharedOrderView;var u=o(82649);t.NodesPool=u.NodesPool;var d=o(13683);t.getListenersCounter=d.getListenersCounter},24584:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionDownByViewportHeight",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===e.countRows()-1?n=1:s+n>e.countRows()&&(n=e.countRows()-s-1),t.markSource("keyboard"),t.transformStart(n,0),t.markEndSource(),e.getSelectedRangeActive().highlight.row<0&&e.scrollViewportTo({row:0})}}},24659:(e,t,o)=>{"use strict";var i,s,n=o(19596),r=o(771),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},24755:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},25007:(e,t,o)=>{var i=o(5172).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},25138:(e,t,o)=>{"use strict";var i=o(31884),s=o(54230),n=o(43209),r=o(29521);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)}},25281:(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(22588),o(81396),o(14618);var i=o(58639),s=o(99586);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.`},25502:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(4114),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(39691),o(88633),o(14618);var s=i(o(81115)),n=o(42479),r=o(43641),a=o(49581),l=o(58639),h=o(78437),c=o(26599),u=o(30935),d=o(64380),g=o(9479),f=o(91718),p=o(73983),m=o(97819),w=i(o(79098));function C(e,t,o){v(e,t),t.set(e,o)}function v(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function y(e,t,o){return e.set(E(e,t),o),o}function S(e,t){return e.get(E(e,t))}function E(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const R=t.PLUGIN_KEY="formulas",b=t.SETTING_KEYS=["maxRows","maxColumns","language"],_=t.PLUGIN_PRIORITY=260;m.Hooks.getSingleton().register("afterNamedExpressionAdded"),m.Hooks.getSingleton().register("afterNamedExpressionRemoved"),m.Hooks.getSingleton().register("afterSheetAdded"),m.Hooks.getSingleton().register("afterSheetRemoved"),m.Hooks.getSingleton().register("afterSheetRenamed"),m.Hooks.getSingleton().register("afterFormulasValuesUpdate");const T=e=>"UndoRedo.undo"===e||"UndoRedo.redo"===e||"auto"===e;var M=new WeakMap,I=new WeakMap,O=new WeakMap,A=new WeakSet;class N extends n.BasePlugin{constructor(){var e,t,o;super(...arguments),e=this,v(t=this,o=A),o.add(t),C(this,M,!1),C(this,I,!1),C(this,O,[["valuesUpdated",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return E(A,e,Z).call(e,...o)}],["namedExpressionAdded",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return E(A,e,ee).call(e,...o)}],["namedExpressionRemoved",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return E(A,e,te).call(e,...o)}],["sheetAdded",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return E(A,e,oe).call(e,...o)}],["sheetRenamed",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return E(A,e,ie).call(e,...o)}],["sheetRemoved",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return E(A,e,se).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 R}static get PLUGIN_PRIORITY(){return _}static get SETTING_KEYS(){return[R,...b]}isEnabled(){return!!this.hot.getSettings()[R]}enablePlugin(){var e,t=this;if(!this.enabled)if(this.engine=null!==(e=(0,u.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,E(A,this,x).call(this));!1!==e&&E(A,this,P).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 E(A,t,L).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 E(A,t,W).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 E(A,t,L).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 E(A,t,W).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 E(A,t,F).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 E(A,t,B).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 E(A,t,k).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 E(A,t,Y).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 E(A,t,U).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 E(A,t,U).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 E(A,t,j).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 E(A,t,G).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 E(A,t,K).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 E(A,t,X).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 E(A,t,z).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 E(A,t,$).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 E(A,t,q).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 E(A,t,Q).call(t,...o)}),this.indexSyncer=new w.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 E(A,t,V).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 E(A,t,J).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 E(A,t,D).call(t,...o)}),S(O,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(){S(O,this).forEach(e=>{let[t,o]=e;return this.engine.off(t,o)}),(0,u.unregisterEngine)(this.engine,this.hot),this.engine=null,super.disablePlugin()}updatePlugin(e){const t=(0,g.getEngineSettingsWithOverrides)(this.hot.getSettings());(0,g.haveEngineSettingsChanged)(this.engine.getConfig(),t)&&this.engine.updateConfig(t);const o=this.hot.getSettings()[R];if((0,c.isDefined)(o)&&(0,c.isDefined)(o.sheetName)&&o.sheetName!==this.sheetName&&this.switchSheet(o.sheetName),!e.data&&null===this.sheetName){const e=this.hot.getSettings()[R].sheetName;if(e&&this.engine.doesSheetExist(e))this.switchSheet(this.sheetName);else{const t=this.addSheet(null!=e?e:void 0,E(A,this,x).call(this));E(A,this,P).call(this,t)}}super.updatePlugin(e)}destroy(){S(O,this).forEach(e=>{var t;let[o,i]=e;return null===(t=this.engine)||void 0===t?void 0:t.off(o,i)}),y(O,this,null),(0,u.unregisterEngine)(this.engine,this.hot),this.engine=null,super.destroy()}addSheet(e,t){if((0,c.isDefined)(t)&&!(0,f.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.`);E(A,this,P).call(this,e);const t=this.engine.getSheetSerialized(this.sheetId);t.length>0&&this.hot.loadData(t,`${(0,p.toUpperCaseFirst)(R)}.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,u.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,c.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,c.isDefined)(n)||!1===(0,c.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,u.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,d.isDate)(o,s.type)&&((0,d.isDateValid)(o,s.dateFormat)?o=(0,d.getDateInHfFormat)(o,s.dateFormat):!1===(0,d.isFormula)(o)&&(o=`'${o}`)),this.engine.setCellContents(i,o)}}function P(e){this.sheetName=e,this.sheetId=this.engine.getSheetId(this.sheetName)}function H(e,t,o){if((0,h.isObject)(o)&&null!==o){const i=this.hot.toVisualRow(e),s=this.hot.toVisualColumn(t),n=this.hot.getCellMeta(i,s).valueGetter;return n?n.call(this.hot,o):o.toString()}return o}function x(e,t,o,i){return this.hot.getSourceDataArray(e,t,o,i).map((e,t)=>e.map((e,o)=>E(A,this,H).call(this,t,o,e)))}function k(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,d.getDateFromExcelDate)(s,o.dateFormat)),"object"==typeof s&&null!==s?s.value:s}return e}function D(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(),u={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(u,g),{row:p,col:m}=u.start,{row:w,col:C}=u.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,d.isDate)(o,n.type)&&(o.startsWith("'")?f[e][t]=o.slice(1):!1===this.isFormulaCellType(i,s,this.sheetId)&&(f[e][t]=(0,d.getDateInHotFormat)(o,n.dateFormat)))}return f}function L(e,t){(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"").includes((0,p.toUpperCaseFirst)(R))||y(I,this,(0,c.isUndefined)(this.hot.getSettings().data))}function V(){if(S(I,this))return void this.switchSheet(this.sheetName);const e=E(A,this,x).call(this);e.forEach((t,o)=>{t.forEach((t,i)=>{const s=this.hot.getCellMeta(o,i,{skipMetaExtension:!0}),n=s.dateFormat;(0,d.isDate)(t,s.type)&&((0,d.isDateValid)(t,n)?e[o][i]=(0,d.getDateInHfFormat)(t,n):t.startsWith("=")||(e[o][i]=`'${t}`))})}),y(M,this,!0);const t=this.engine.setSheetContent(this.sheetId,e);this.indexSyncer.setupSyncEndpoint(this.engine,this.sheetId),this.renderDependentSheets(t),y(M,this,!1)}function W(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(o.includes((0,p.toUpperCaseFirst)(R)))return;const i=(0,u.setupSheet)(this.engine,this.hot.getSettings()[R].sheetName);if(E(A,this,P).call(this,i),"updateSettings"!==o)if(S(I,this))this.switchSheet(this.sheetName);else{const e=E(A,this,x).call(this);if(this.engine.isItPossibleToReplaceSheetContent(this.sheetId,e)){y(M,this,!0);const t=this.engine.setSheetContent(this.sheetId,e);this.indexSyncer.setupSyncEndpoint(this.engine,this.sheetId),this.renderDependentSheets(t),y(M,this,!1)}}}function F(e,t,o,i){if("get"!==i||S(M,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,d.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,d.getDateFromExcelDate)(r,a.dateFormat)),o.value="object"==typeof r&&null!==r?r.value:r}function B(e,t,o,i){if("get"!==i||S(M,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 U(e,t){if(T(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};n=E(A,this,H).call(this,a,l,n),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 Y(e,t){if(T(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 j(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 G(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 z(e,t,o){return!1!==this.rowAxisSyncer.setRemovedHfIndexes(o).every(e=>this.engine.isItPossibleToRemoveRows(this.sheetId,[e,1]))&&void 0}function $(e,t,o){return!1!==this.columnAxisSyncer.setRemovedHfIndexes(o).every(e=>this.engine.isItPossibleToRemoveColumns(this.sheetId,[e,1]))&&void 0}function K(e,t,o){if(T(o))return;const i=this.engine.addRows(this.sheetId,[this.rowAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(i)}function X(e,t,o){if(T(o))return;const i=this.engine.addColumns(this.sheetId,[this.columnAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(i)}function q(e,t,o,i){if(T(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 Q(e,t,o,i){if(T(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 J(e,t,o){var i;y(M,this,!0);const s=E(A,this,x).call(this,o,0,o+((null===(i=t.__children)||void 0===i?void 0:i.length)||0),this.hot.countSourceCols());y(M,this,!1),s.forEach((e,t)=>{e.forEach((e,i)=>{this.engine.setCellContents({col:i,row:o+t,sheet:this.sheetId},[[e]])})})}function Z(e){this.hot.runHooks("afterFormulasValuesUpdate",e)}function ee(e,t){this.hot.runHooks("afterNamedExpressionAdded",e,t)}function te(e,t){this.hot.runHooks("afterNamedExpressionRemoved",e,t)}function oe(e){this.hot.runHooks("afterSheetAdded",e)}function ie(e,t){E(A,this,P).call(this,t),this.hot.runHooks("afterSheetRenamed",e,t)}function se(e,t){this.hot.runHooks("afterSheetRemoved",e,t)}t.Formulas=N},26075:(e,t,o)=>{"use strict";var i=o(36405),s=o(57596),n=i("keys");e.exports=function(e){return n[e]||(n[e]=s(e))}},26089:(e,t,o)=>{"use strict";t.__esModule=!0,t.baseTemplate=function(){let e=null;const t={};return{TEMPLATE_NAME:"base",dialogA11YOptions:()=>({role:"dialog"}),compile:function(){const o=s.html`${`\n <div data-ref="contentElement" class="${i.DIALOG_CLASS_NAME}__content"></div>\n `}`;return Object.assign(t,o.refs),e=o.fragment,o},focusableElements:function(){if(null===e)throw new Error("Compile the template first.");return[]}}},o(22588);var i=o(41323),s=o(34149)},26150:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182);var s=i(o(81115)),n=o(47646);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},26286:(e,t,o)=>{"use strict";var i=o(31884),s=o(84990),n=o(96938),r=o(29521),a=o(82719),l=s.add,h=s.has,c=s.remove;e.exports=function(e){var t=i(this),o=r(e).getIterator(),s=n(t);return a(o,function(e){h(t,e)?c(s,e):l(s,e)}),s}},26447:(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(8278)),s=o(26599),n=o(76742);const r=t.CONDITION_NAME="eq";function a(e,t){let[o]=t;return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale)===(0,s.stringify)(o)}(0,n.registerCondition)(r,a,{name:i.FILTERS_CONDITIONS_EQUAL,inputsCount:1,showOperators:!0})},26448:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(93232);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},26457:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(92273),s=o(46525),n=o(83597);const r=t.CELL_TYPE="date";t.DateCellType={CELL_TYPE:r,editor:i.DateEditor,renderer:s.dateRenderer,validator:n.dateValidator}},26599:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t._injectProductInfo=function(e,t){const o=!a(e),i="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),n="16.2.0-next-bf17104-20251120";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)("25/11/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.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(34149);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`
46
+ before using it. Read more about this issue at: https://docs.handsontable.com/i18n/missing-language-code.`)};var i=o(26599),s=o(78437),n=o(49581),r=o(34149)},24364:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(64172)),n=i(o(43108)),r=i(o(45515)),a=o(78437),l=o(59719);class h extends s.default{constructor(e,t,o,i){super(e,t,o,i,l.CLONE_INLINE_START)}}(0,a.mixin)(h,n.default),(0,a.mixin)(h,r.default);t.default=h},24384:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(76651),s=o(70667),n=o(78437),r=o(12108),a=o(52709);const l="ht-border-style-";t.default=class{constructor(e,t){t&&(this.eventManager=e.eventManager,this.instance=e,this.wot=e,this.settings=t,this.mouseDown=!1,this.main=null,this.top=null,this.bottom=null,this.start=null,this.end=null,this.topStyle=null,this.bottomStyle=null,this.startStyle=null,this.endStyle=null,this.cornerDefaultStyle=(0,a.getCornerStyle)(this.instance),this.cornerCenterPointOffset=-Math.ceil(parseInt(this.cornerDefaultStyle.width,10)/2),this.corner=null,this.cornerStyle=null,this.createBorders(t),this.registerListeners())}registerListeners(){const e=this.wot.rootDocument.body;this.eventManager.addEventListener(e,"mousedown",()=>this.onMouseDown()),this.eventManager.addEventListener(e,"mouseup",()=>this.onMouseUp());for(let e=0,t=this.main.childNodes.length;e<t;e++){const t=this.main.childNodes[e];this.eventManager.addEventListener(t,"mouseenter",t=>this.onMouseEnter(t,this.main.childNodes[e]))}}onMouseDown(){this.mouseDown=!0}onMouseUp(){this.mouseDown=!1}onMouseEnter(e,t){if(!this.mouseDown||!this.wot.getSetting("hideBorderOnMouseDownOver"))return;e.preventDefault(),(0,s.stopImmediatePropagation)(e);const o=this,i=this.wot.rootDocument.body,n=t.getBoundingClientRect();t.style.display="none",this.eventManager.addEventListener(i,"mousemove",function e(s){var r;((r=s).clientY<Math.floor(n.top)||r.clientY>Math.ceil(n.top+n.height)||r.clientX<Math.floor(n.left)||r.clientX>Math.ceil(n.left+n.width))&&(o.eventManager.removeEventListener(i,"mousemove",e),t.style.display="block")})}createBorders(e){const{rootDocument:t}=this.wot;this.main=t.createElement("div");const o=["top","start","bottom","end","corner"];let i=this.main.style;i.position="absolute",i.top=0,i.left=0;for(let s=0;s<5;s++){const n=o[s],r=t.createElement("div"),a=t=>this.settings[n]&&this.settings[n][t]?this.settings[n][t]:e.border[t];r.className=`wtBorder ${this.settings.className||""}`,this.settings[n]&&this.settings[n].hide&&(r.className+=" hidden"),i=r.style;const h=a("style");h?(["start","end"].includes(n)?r.className+=` ${l}${h}-vertical`:r.className+=` ${l}${h}-horizontal`,i.setProperty("--ht-custom-border-size",`${a("width")}px`),i.setProperty("--ht-custom-border-color",a("color"))):i.backgroundColor=a("color"),i.height=`${a("width")}px`,i.width=`${a("width")}px`,this.main.appendChild(r)}this.top=this.main.childNodes[0],this.start=this.main.childNodes[1],this.bottom=this.main.childNodes[2],this.end=this.main.childNodes[3],this.topStyle=this.top.style,this.startStyle=this.start.style,this.bottomStyle=this.bottom.style,this.endStyle=this.end.style,this.corner=this.main.childNodes[4],this.corner.className+=" corner",this.cornerStyle=this.corner.style,this.cornerStyle.width=`${this.cornerDefaultStyle.width}px`,this.cornerStyle.height=`${this.cornerDefaultStyle.height}px`,this.cornerStyle.border=[`${this.cornerDefaultStyle.borderWidth}px`,this.cornerDefaultStyle.borderStyle,this.cornerDefaultStyle.borderColor].join(" "),(0,r.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&this.createMultipleSelectorHandles(),this.disappear();const{wtTable:s}=this.wot;let n=s.bordersHolder;n||(n=t.createElement("div"),n.className="htBorders",s.bordersHolder=n,s.spreader.appendChild(n)),n.appendChild(this.main)}createMultipleSelectorHandles(){const{rootDocument:e,wtSettings:t}=this.wot,o=t.getSetting("stylesHandler"),i=o.getCSSVariableValue("cell-mobile-handle-size"),s=o.getCSSVariableValue("cell-mobile-handle-border-radius"),r=o.getCSSVariableValue("cell-mobile-handle-background-color"),a=o.getCSSVariableValue("cell-mobile-handle-border-width"),l=o.getCSSVariableValue("cell-mobile-handle-border-color");this.selectionHandles={top:e.createElement("DIV"),topHitArea:e.createElement("DIV"),bottom:e.createElement("DIV"),bottomHitArea:e.createElement("DIV")};this.selectionHandles.top.className="topSelectionHandle topLeftSelectionHandle",this.selectionHandles.topHitArea.className="topSelectionHandle-HitArea topLeftSelectionHandle-HitArea",this.selectionHandles.bottom.className="bottomSelectionHandle bottomRightSelectionHandle",this.selectionHandles.bottomHitArea.className="bottomSelectionHandle-HitArea bottomRightSelectionHandle-HitArea",this.selectionHandles.styles={top:this.selectionHandles.top.style,topHitArea:this.selectionHandles.topHitArea.style,bottom:this.selectionHandles.bottom.style,bottomHitArea:this.selectionHandles.bottomHitArea.style};const h={position:"absolute",height:"40px",width:"40px","border-radius":`${parseInt(40/1.5,10)}px`};(0,n.objectEach)(h,(e,t)=>{this.selectionHandles.styles.bottomHitArea[t]=e,this.selectionHandles.styles.topHitArea[t]=e});const c=o.isClassicTheme()?{position:"absolute",height:"10px",width:"10px","border-radius":`${parseInt(10/1.5,10)}px`,background:"#F5F5FF",border:"1px solid #4285c8"}:{position:"absolute",height:`${i}px`,width:`${i}px`,"border-radius":`${s}px`,background:`${r}`,border:`${a}px solid ${l}`};(0,n.objectEach)(c,(e,t)=>{this.selectionHandles.styles.bottom[t]=e,this.selectionHandles.styles.top[t]=e}),this.main.appendChild(this.selectionHandles.top),this.main.appendChild(this.selectionHandles.bottom),this.main.appendChild(this.selectionHandles.topHitArea),this.main.appendChild(this.selectionHandles.bottomHitArea)}isPartRange(e,t){const o=this.wot.selectionManager.getAreaSelection();return!(!o.cellRange||e===o.cellRange.to.row&&t===o.cellRange.to.col)}updateMultipleSelectionHandlesPosition(e,t,o,i,s,n){const r=this.wot.wtSettings.getSetting("rtlMode")?"right":"left",{top:a,topHitArea:l,bottom:h,bottomHitArea:c}=this.selectionHandles.styles,u=parseInt(a.borderWidth,10),d=parseInt(a.width,10),g=parseInt(l.width,10),f=this.wot.wtTable.getWidth(),p=this.wot.wtTable.getHeight();a.top=`${parseInt(o-d-1,10)}px`,a[r]=`${parseInt(i-d-1,10)}px`,l.top=`${parseInt(o-g/4*3,10)}px`,l[r]=`${parseInt(i-g/4*3,10)}px`;const m=Math.min(parseInt(i+s,10),f-d-2*u),w=Math.min(parseInt(i+s-g/4,10),f-g-2*u);h[r]=`${m}px`,c[r]=`${w}px`;const C=Math.min(parseInt(o+n,10),p-d-2*u),v=Math.min(parseInt(o+n-g/4,10),p-g-2*u);h.top=`${C}px`,c.top=`${v}px`,this.settings.border.cornerVisible&&this.settings.border.cornerVisible()?(a.display="block",l.display="block",this.isPartRange(e,t)?(h.display="none",c.display="none"):(h.display="block",c.display="block")):(a.display="none",h.display="none",l.display="none",c.display="none"),e===this.wot.wtSettings.getSetting("fixedRowsTop")||t===this.wot.wtSettings.getSetting("fixedColumnsStart")?(a.zIndex="9999",l.zIndex="9999"):(a.zIndex="",l.zIndex="")}appear(e){if(this.disabled)return;let[t,o,s,n]=e;if(t<0&&s<0||o<0&&n<0)return void this.disappear();const{wtTable:a,rootDocument:l,rootWindow:h}=this.wot,c=t!==s||o!==n,u=this.wot.wtSettings.getSetting("stylesHandler").isClassicTheme(),d=a.getFirstRenderedRow(),g=a.getLastRenderedRow(),f=a.getFirstRenderedColumn(),p=a.getLastRenderedColumn();if(f<0&&p<0||d<0&&g<0)return void this.disappear();let m;if(c){if(o=Math.max(o,f),n=Math.min(n,p),t=Math.max(t,d),s=Math.min(s,g),n<o||s<t)return void this.disappear();m=a.getCell(this.wot.createCellCoords(t,o))}else if(m=a.getCell(this.wot.createCellCoords(t,o)),!(0,i.isHTMLElement)(m))return void this.disappear();const w=c?a.getCell(this.wot.createCellCoords(s,n)):m,C=(0,i.offset)(m),v=c?(0,i.offset)(w):C,y=(0,i.offset)(a.TABLE),S=C.top,E=C.left,R=this.wot.wtSettings.getSetting("rtlMode");let b=0,_=0;if(R){const e=(0,i.outerWidth)(a.TABLE),t=(0,i.outerWidth)(m),o=h.innerWidth-y.left-e;_=E+t-v.left,b=h.innerWidth-E-t-o-1}else _=v.left+(0,i.outerWidth)(w)-E,b=E-y.left-1;if(this.isEntireColumnSelected(t,s)){const e=t,i=this.getDimensionsFromHeader("columns",o,n,e,y);let s=null;i&&([s,b,_]=i),s&&(m=s)}let T=S-y.top-1,M=v.top+(0,i.outerHeight)(w)-S;if(this.isEntireRowSelected(o,n)){const e=o,i=this.getDimensionsFromHeader("rows",t,s,e,y);let n=null;i&&([n,T,M]=i),n&&(m=n)}const I=h.getComputedStyle(m);parseInt(I.borderTopWidth,10)>0&&(T+=1,M=M>0?M-1:0),parseInt(I[R?"borderRightWidth":"borderLeftWidth"],10)>0&&(b+=1,_=_>0?_-1:0);const O=R?"right":"left",A=Math.ceil(this.settings.border.width/2);this.topStyle.top=`${T}px`,this.topStyle[O]=`${b}px`,this.topStyle.width=`${_+A}px`,this.topStyle.display="block",this.startStyle.top=`${T}px`,this.startStyle[O]=`${b}px`,this.startStyle.height=`${M+A}px`,this.startStyle.display="block",this.bottomStyle.top=`${T+M-parseInt(this.bottomStyle.height,10)+A}px`,this.bottomStyle[O]=`${b}px`,this.bottomStyle.width=`${_+A}px`,this.bottomStyle.display="block",this.endStyle.top=`${T}px`,this.endStyle[O]=`${b+_-parseInt(this.endStyle.width,10)+A}px`,this.endStyle.height=`${M+A}px`,this.endStyle.display="block";let N=this.settings.border.cornerVisible;N="function"==typeof N?N(this.settings.layerLevel):N;const P=this.wot.getSetting("onModifyGetCellCoords",s,n,!1,"render");let[H,x]=[s,n];if(P&&Array.isArray(P)&&([,,H,x]=P),(0,r.isMobileBrowser)()||!N||this.isPartRange(H,x))this.cornerStyle.display="none";else{this.cornerStyle.top=T+M+this.cornerCenterPointOffset-this.cornerDefaultStyle.borderWidth+"px",this.cornerStyle[O]=b+_+this.cornerCenterPointOffset-this.cornerDefaultStyle.borderWidth+"px",this.cornerStyle.borderRightWidth=`${this.cornerDefaultStyle.borderWidth}px`,this.cornerStyle.borderLeftWidth=`${this.cornerDefaultStyle.borderWidth}px`,this.cornerStyle.borderBottomWidth=`${this.cornerDefaultStyle.borderWidth}px`,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.display="none";let e=(0,i.getTrimmingContainer)(a.TABLE);const t=e===h;t&&(e=l.documentElement);const o=parseInt(this.cornerDefaultStyle.borderWidth,10)-1,r=Math.ceil(parseInt(this.cornerDefaultStyle.width,10)/2),c=Math.ceil(parseInt(this.cornerDefaultStyle.height,10)/2);if(n===this.wot.getSetting("totalColumns")-1){const s=t?w.getBoundingClientRect().left:w.offsetLeft;let n=!1,a=0;if(R?(a=s-parseInt(this.cornerDefaultStyle.width,10)/2,n=a<0):(a=s+(0,i.outerWidth)(w)+parseInt(this.cornerDefaultStyle.width,10)/2,n=a>=(0,i.innerWidth)(e)),n){const e=Math.floor(b+_+this.cornerCenterPointOffset-r-o);u?(this.cornerStyle[O]=`${e}px`,this.cornerStyle[R?"borderLeftWidth":"borderRightWidth"]=0):this.cornerStyle[O]=e-1+"px"}}if(s===this.wot.getSetting("totalRows")-1){if((t?w.getBoundingClientRect().top:w.offsetTop)+(0,i.outerHeight)(w)+parseInt(this.cornerDefaultStyle.height,10)/2>=(0,i.innerHeight)(e)){const e=Math.floor(T+M+this.cornerCenterPointOffset-c-o);u?(this.cornerStyle.top=`${e}px`,this.cornerStyle.borderBottomWidth=0):this.cornerStyle.top=e-1+"px"}}this.cornerStyle.display="block"}(0,r.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&this.updateMultipleSelectionHandlesPosition(s,n,T,b,_,M)}isEntireColumnSelected(e,t){return e===this.wot.wtTable.getFirstRenderedRow()&&t===this.wot.wtTable.getLastRenderedRow()}isEntireRowSelected(e,t){return e===this.wot.wtTable.getFirstRenderedColumn()&&t===this.wot.wtTable.getLastRenderedColumn()}getDimensionsFromHeader(e,t,o,s,n){const{wtTable:r}=this.wot,a=r.wtRootElement.parentNode;let l=null,h=null,c=null,u=null,d=null,g=null,f=null,p=null;switch(e){case"rows":l=function(){return r.getRowHeader(...arguments)},h=function(){return(0,i.outerHeight)(...arguments)},c="ht__selection--rows",g="top";break;case"columns":l=function(){return r.getColumnHeader(...arguments)},h=function(){return(0,i.outerWidth)(...arguments)},c="ht__selection--columns",g="left"}if(a.classList.contains(c)){const e=this.wot.getSetting("columnHeaders").length;if(f=l(t,e-s),p=l(o,e-s),!f||!p)return!1;const r=(0,i.offset)(f),a=(0,i.offset)(p);return f&&p&&(u=r[g]-n[g]-1,d=a[g]+h(p)-r[g]),[f,u,d]}return!1}changeBorderStyle(e,t){const o=this[e].style,s=t[e];!s||s.hide?(0,i.addClass)(this[e],"hidden"):((0,i.hasClass)(this[e],"hidden")&&(0,i.removeClass)(this[e],"hidden"),o.backgroundColor=s.color,"top"!==e&&"bottom"!==e||(o.height=`${s.width}px`),"start"!==e&&"end"!==e||(o.width=`${s.width}px`))}changeBorderToDefaultStyle(e){const t=1,o="#000",i=this[e].style;i.backgroundColor=o,i.width=`${t}px`,i.height=`${t}px`}toggleHiddenClass(e,t){this.changeBorderToDefaultStyle(e),t?(0,i.addClass)(this[e],"hidden"):(0,i.removeClass)(this[e],"hidden")}disappear(){this.topStyle.display="none",this.bottomStyle.display="none",this.startStyle.display="none",this.endStyle.display="none",this.cornerStyle.display="none",(0,r.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&(this.selectionHandles.styles.top.display="none",this.selectionHandles.styles.topHitArea.display="none",this.selectionHandles.styles.bottom.display="none",this.selectionHandles.styles.bottomHitArea.display="none")}destroy(){this.eventManager.destroyWithOwnEventsOnly(),this.main.parentNode.removeChild(this.main)}}},24427:(e,t,o)=>{"use strict";var i=o(19596),s=o(771),n=o(36724),r=function(e){return s.slice(0,e.length)===e};e.exports=r("Bun/")?"BUN":r("Cloudflare-Workers")?"CLOUDFLARE":r("Deno/")?"DENO":r("Node.js/")?"NODE":i.Bun&&"string"==typeof Bun.version?"BUN":i.Deno&&"object"==typeof Deno.version?"DENO":"process"===n(i.process)?"NODE":i.window&&i.document?"BROWSER":"REST"},24496:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=o(21797);t.ViewportColumnsCalculator=s.ViewportColumnsCalculator,t.ViewportRowsCalculator=s.ViewportRowsCalculator,t.DEFAULT_COLUMN_WIDTH=s.DEFAULT_COLUMN_WIDTH;var n=i(o(37135));t.CellCoords=n.default;var r=i(o(14120));t.CellRange=r.default;var a=i(o(43080));t.default=a.default,t.Core=a.default;var l=o(13533);t.Selection=l.Selection,t.HIGHLIGHT_ACTIVE_HEADER_TYPE=l.ACTIVE_HEADER_TYPE,t.HIGHLIGHT_AREA_TYPE=l.AREA_TYPE,t.HIGHLIGHT_FOCUS_TYPE=l.FOCUS_TYPE,t.HIGHLIGHT_FILL_TYPE=l.FILL_TYPE,t.HIGHLIGHT_HEADER_TYPE=l.HEADER_TYPE,t.HIGHLIGHT_ROW_TYPE=l.ROW_TYPE,t.HIGHLIGHT_COLUMN_TYPE=l.COLUMN_TYPE,t.HIGHLIGHT_CUSTOM_SELECTION_TYPE=l.CUSTOM_SELECTION_TYPE;var h=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(68234));t.Renderer=h;var c=o(43336);t.OrderView=c.OrderView,t.SharedOrderView=c.SharedOrderView;var u=o(82649);t.NodesPool=u.NodesPool;var d=o(13683);t.getListenersCounter=d.getListenersCounter},24584:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionDownByViewportHeight",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===e.countRows()-1?n=1:s+n>e.countRows()&&(n=e.countRows()-s-1),t.markSource("keyboard"),t.transformStart(n,0),t.markEndSource(),e.getSelectedRangeActive().highlight.row<0&&e.scrollViewportTo({row:0})}}},24659:(e,t,o)=>{"use strict";var i,s,n=o(19596),r=o(771),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},24755:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},25007:(e,t,o)=>{var i=o(5172).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},25138:(e,t,o)=>{"use strict";var i=o(31884),s=o(54230),n=o(43209),r=o(29521);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)}},25281:(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(22588),o(81396),o(14618);var i=o(58639),s=o(99586);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.`},25502:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(4114),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(39691),o(88633),o(14618);var s=i(o(81115)),n=o(42479),r=o(43641),a=o(49581),l=o(58639),h=o(78437),c=o(26599),u=o(30935),d=o(64380),g=o(9479),f=o(91718),p=o(73983),m=o(97819),w=i(o(79098));function C(e,t,o){v(e,t),t.set(e,o)}function v(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function y(e,t,o){return e.set(E(e,t),o),o}function S(e,t){return e.get(E(e,t))}function E(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const R=t.PLUGIN_KEY="formulas",b=t.SETTING_KEYS=["maxRows","maxColumns","language"],_=t.PLUGIN_PRIORITY=260;m.Hooks.getSingleton().register("afterNamedExpressionAdded"),m.Hooks.getSingleton().register("afterNamedExpressionRemoved"),m.Hooks.getSingleton().register("afterSheetAdded"),m.Hooks.getSingleton().register("afterSheetRemoved"),m.Hooks.getSingleton().register("afterSheetRenamed"),m.Hooks.getSingleton().register("afterFormulasValuesUpdate");const T=e=>"UndoRedo.undo"===e||"UndoRedo.redo"===e||"auto"===e;var M=new WeakMap,I=new WeakMap,O=new WeakMap,A=new WeakSet;class N extends n.BasePlugin{constructor(){var e,t,o;super(...arguments),e=this,v(t=this,o=A),o.add(t),C(this,M,!1),C(this,I,!1),C(this,O,[["valuesUpdated",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return E(A,e,Z).call(e,...o)}],["namedExpressionAdded",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return E(A,e,ee).call(e,...o)}],["namedExpressionRemoved",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return E(A,e,te).call(e,...o)}],["sheetAdded",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return E(A,e,oe).call(e,...o)}],["sheetRenamed",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return E(A,e,ie).call(e,...o)}],["sheetRemoved",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return E(A,e,se).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 R}static get PLUGIN_PRIORITY(){return _}static get SETTING_KEYS(){return[R,...b]}isEnabled(){return!!this.hot.getSettings()[R]}enablePlugin(){var e,t=this;if(!this.enabled)if(this.engine=null!==(e=(0,u.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,E(A,this,x).call(this));!1!==e&&E(A,this,P).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 E(A,t,L).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 E(A,t,W).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 E(A,t,L).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 E(A,t,W).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 E(A,t,F).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 E(A,t,B).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 E(A,t,k).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 E(A,t,Y).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 E(A,t,U).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 E(A,t,U).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 E(A,t,j).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 E(A,t,G).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 E(A,t,K).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 E(A,t,X).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 E(A,t,z).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 E(A,t,$).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 E(A,t,q).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 E(A,t,Q).call(t,...o)}),this.indexSyncer=new w.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 E(A,t,V).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 E(A,t,J).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 E(A,t,D).call(t,...o)}),S(O,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(){S(O,this).forEach(e=>{let[t,o]=e;return this.engine.off(t,o)}),(0,u.unregisterEngine)(this.engine,this.hot),this.engine=null,super.disablePlugin()}updatePlugin(e){const t=(0,g.getEngineSettingsWithOverrides)(this.hot.getSettings());(0,g.haveEngineSettingsChanged)(this.engine.getConfig(),t)&&this.engine.updateConfig(t);const o=this.hot.getSettings()[R];if((0,c.isDefined)(o)&&(0,c.isDefined)(o.sheetName)&&o.sheetName!==this.sheetName&&this.switchSheet(o.sheetName),!e.data&&null===this.sheetName){const e=this.hot.getSettings()[R].sheetName;if(e&&this.engine.doesSheetExist(e))this.switchSheet(this.sheetName);else{const t=this.addSheet(null!=e?e:void 0,E(A,this,x).call(this));E(A,this,P).call(this,t)}}super.updatePlugin(e)}destroy(){S(O,this).forEach(e=>{var t;let[o,i]=e;return null===(t=this.engine)||void 0===t?void 0:t.off(o,i)}),y(O,this,null),(0,u.unregisterEngine)(this.engine,this.hot),this.engine=null,super.destroy()}addSheet(e,t){if((0,c.isDefined)(t)&&!(0,f.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.`);E(A,this,P).call(this,e);const t=this.engine.getSheetSerialized(this.sheetId);t.length>0&&this.hot.loadData(t,`${(0,p.toUpperCaseFirst)(R)}.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,u.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,c.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,c.isDefined)(n)||!1===(0,c.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,u.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,d.isDate)(o,s.type)&&((0,d.isDateValid)(o,s.dateFormat)?o=(0,d.getDateInHfFormat)(o,s.dateFormat):!1===(0,d.isFormula)(o)&&(o=`'${o}`)),this.engine.setCellContents(i,o)}}function P(e){this.sheetName=e,this.sheetId=this.engine.getSheetId(this.sheetName)}function H(e,t,o){if((0,h.isObject)(o)&&null!==o){const i=this.hot.toVisualRow(e),s=this.hot.toVisualColumn(t),n=this.hot.getCellMeta(i,s).valueGetter;return n?n.call(this.hot,o):o.toString()}return o}function x(e,t,o,i){return this.hot.getSourceDataArray(e,t,o,i).map((e,t)=>e.map((e,o)=>E(A,this,H).call(this,t,o,e)))}function k(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,d.getDateFromExcelDate)(s,o.dateFormat)),"object"==typeof s&&null!==s?s.value:s}return e}function D(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(),u={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(u,g),{row:p,col:m}=u.start,{row:w,col:C}=u.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,d.isDate)(o,n.type)&&(o.startsWith("'")?f[e][t]=o.slice(1):!1===this.isFormulaCellType(i,s,this.sheetId)&&(f[e][t]=(0,d.getDateInHotFormat)(o,n.dateFormat)))}return f}function L(e,t){(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"").includes((0,p.toUpperCaseFirst)(R))||y(I,this,(0,c.isUndefined)(this.hot.getSettings().data))}function V(){if(S(I,this))return void this.switchSheet(this.sheetName);const e=E(A,this,x).call(this);e.forEach((t,o)=>{t.forEach((t,i)=>{const s=this.hot.getCellMeta(o,i,{skipMetaExtension:!0}),n=s.dateFormat;(0,d.isDate)(t,s.type)&&((0,d.isDateValid)(t,n)?e[o][i]=(0,d.getDateInHfFormat)(t,n):t.startsWith("=")||(e[o][i]=`'${t}`))})}),y(M,this,!0);const t=this.engine.setSheetContent(this.sheetId,e);this.indexSyncer.setupSyncEndpoint(this.engine,this.sheetId),this.renderDependentSheets(t),y(M,this,!1)}function W(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(o.includes((0,p.toUpperCaseFirst)(R)))return;const i=(0,u.setupSheet)(this.engine,this.hot.getSettings()[R].sheetName);if(E(A,this,P).call(this,i),"updateSettings"!==o)if(S(I,this))this.switchSheet(this.sheetName);else{const e=E(A,this,x).call(this);if(this.engine.isItPossibleToReplaceSheetContent(this.sheetId,e)){y(M,this,!0);const t=this.engine.setSheetContent(this.sheetId,e);this.indexSyncer.setupSyncEndpoint(this.engine,this.sheetId),this.renderDependentSheets(t),y(M,this,!1)}}}function F(e,t,o,i){if("get"!==i||S(M,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,d.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,d.getDateFromExcelDate)(r,a.dateFormat)),o.value="object"==typeof r&&null!==r?r.value:r}function B(e,t,o,i){if("get"!==i||S(M,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 U(e,t){if(T(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};n=E(A,this,H).call(this,a,l,n),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 Y(e,t){if(T(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 j(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 G(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 z(e,t,o){return!1!==this.rowAxisSyncer.setRemovedHfIndexes(o).every(e=>this.engine.isItPossibleToRemoveRows(this.sheetId,[e,1]))&&void 0}function $(e,t,o){return!1!==this.columnAxisSyncer.setRemovedHfIndexes(o).every(e=>this.engine.isItPossibleToRemoveColumns(this.sheetId,[e,1]))&&void 0}function K(e,t,o){if(T(o))return;const i=this.engine.addRows(this.sheetId,[this.rowAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(i)}function X(e,t,o){if(T(o))return;const i=this.engine.addColumns(this.sheetId,[this.columnAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(i)}function q(e,t,o,i){if(T(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 Q(e,t,o,i){if(T(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 J(e,t,o){var i;y(M,this,!0);const s=E(A,this,x).call(this,o,0,o+((null===(i=t.__children)||void 0===i?void 0:i.length)||0),this.hot.countSourceCols());y(M,this,!1),s.forEach((e,t)=>{e.forEach((e,i)=>{this.engine.setCellContents({col:i,row:o+t,sheet:this.sheetId},[[e]])})})}function Z(e){this.hot.runHooks("afterFormulasValuesUpdate",e)}function ee(e,t){this.hot.runHooks("afterNamedExpressionAdded",e,t)}function te(e,t){this.hot.runHooks("afterNamedExpressionRemoved",e,t)}function oe(e){this.hot.runHooks("afterSheetAdded",e)}function ie(e,t){E(A,this,P).call(this,t),this.hot.runHooks("afterSheetRenamed",e,t)}function se(e,t){this.hot.runHooks("afterSheetRemoved",e,t)}t.Formulas=N},26075:(e,t,o)=>{"use strict";var i=o(36405),s=o(57596),n=i("keys");e.exports=function(e){return n[e]||(n[e]=s(e))}},26089:(e,t,o)=>{"use strict";t.__esModule=!0,t.baseTemplate=function(){let e=null;const t={};return{TEMPLATE_NAME:"base",dialogA11YOptions:()=>({role:"dialog"}),compile:function(){const o=s.html`${`\n <div data-ref="contentElement" class="${i.DIALOG_CLASS_NAME}__content"></div>\n `}`;return Object.assign(t,o.refs),e=o.fragment,o},focusableElements:function(){if(null===e)throw new Error("Compile the template first.");return[]}}},o(22588);var i=o(41323),s=o(34149)},26150:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182);var s=i(o(81115)),n=o(47646);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},26286:(e,t,o)=>{"use strict";var i=o(31884),s=o(84990),n=o(96938),r=o(29521),a=o(82719),l=s.add,h=s.has,c=s.remove;e.exports=function(e){var t=i(this),o=r(e).getIterator(),s=n(t);return a(o,function(e){h(t,e)?c(s,e):l(s,e)}),s}},26447:(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(8278)),s=o(26599),n=o(76742);const r=t.CONDITION_NAME="eq";function a(e,t){let[o]=t;return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale)===(0,s.stringify)(o)}(0,n.registerCondition)(r,a,{name:i.FILTERS_CONDITIONS_EQUAL,inputsCount:1,showOperators:!0})},26448:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(93232);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},26457:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(92273),s=o(46525),n=o(83597);const r=t.CELL_TYPE="date";t.DateCellType={CELL_TYPE:r,editor:i.DateEditor,renderer:s.dateRenderer,validator:n.dateValidator}},26599:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t._injectProductInfo=function(e,t){const o=!a(e),i="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),n="16.2.0-next-5b80421-20251121";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)("25/11/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.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(34149);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`
47
47
  The license key for Handsontable is invalid.\x20
48
48
  If you need any help, contact us at support@handsontable.com.`,expired:e=>{let{keyValidityDate:t,hotVersion:o}=e;return n.toSingleLine`
49
49
  The license key for Handsontable expired on ${t}, and is not valid for the installed\x20
@@ -77,7 +77,7 @@ the last node, the hide column modification can be applied.`);const{crossHiddenC
77
77
  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},42257:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(26457);t.CELL_TYPE=i.CELL_TYPE,t.DateCellType=i.DateCellType},42388:(e,t,o)=>{"use strict";var i=o(36724);e.exports=Array.isArray||function(e){return"Array"===i(e)}},42479:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(42610);t.PLUGIN_KEY=i.PLUGIN_KEY,t.BasePlugin=i.BasePlugin,t.defaultMainSettingSymbol=i.defaultMainSettingSymbol},42489:(e,t,o)=>{"use strict";t.__esModule=!0,t.valueSetter=function(e,t,o){const{checkedTemplate:s,uncheckedTemplate:n}=this.getCellMeta(t,o),r=(0,i.stringify)(e),a=r===(0,i.stringify)(s),l=r===(0,i.stringify)(n);if(a||l)return a?s:n;return e};var i=o(26599)},42610:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(81396),o(88633),o(14618);var s=i(o(81115)),n=o(78437),r=o(94857),a=o(3182),l=o(9041),h=o(89640),c=o(83658),u=o(72657),d=i(o(13683)),g=o(49581);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){var t=this;const o=this.constructor.DEFAULT_SETTINGS,i=this.constructor.SETTINGS_VALIDATORS;if(void 0===e)return(0,n.isObject)(w(b,this))?(0,n.assignObjectDefaults)(w(b,this),o):w(b,this);let s;var r;if((Array.isArray(w(b,this))||(0,n.isObject)(w(b,this)))&&o[y]===e)s=Array.isArray(w(b,this))?w(b,this):null!==(r=w(b,this)[e])&&void 0!==r?r:o[e];else if(e.includes(".")){const t=(0,n.getProperty)(w(b,this),e),i=(0,n.getProperty)(o,e);s=(0,n.isObject)(t)?(0,n.assignObjectDefaults)(t,i):void 0!==t?t:i}else s=(0,n.isObject)(w(b,this))?(0,n.assignObjectDefaults)(w(b,this),o)[e]:o[e];if("function"==typeof s&&i&&"object"==typeof i){const o=i[e];if(o&&"function"==typeof o)return function(){for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];const a=s(...n);if(!1===o(a)){const o=n.map(e=>"string"==typeof e?`"${e}"`:"").join(", "),i=n.length>0?o:"";return void(0,g.warn)(`${t.pluginName} Plugin: "${e}" function (${i}) result is not valid and will be ignored.`)}return a}}return s}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}}},42652:(e,t,o)=>{"use strict";t.__esModule=!0,t.textRenderer=a;var i=o(36814),s=o(76651),n=o(26599);const r=t.RENDERER_TYPE="text";function a(e,t,o,r,a,l,h){i.baseRenderer.apply(this,[e,t,o,r,a,l,h]);let c=l;!c&&h.placeholder&&(c=h.placeholder),c=(0,n.stringify)(c),h.trimWhitespace&&(c=c.trim()),(0,s.fastInnerText)(t,c)}a.RENDERER_TYPE=r},42732:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(78437),r=i(o(86248)),a=i(o(13683)),l=o(76651),h=o(94857),c=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(8278));const u="built",d="building",g=["click","input","keydown","keypress","keyup","focus","blur","change"];class f{static get DEFAULTS(){return(0,n.clone)({className:"",value:"",tagName:"div",children:[],wrapIt:!0})}constructor(e,t){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"eventManager",new a.default(this)),(0,s.default)(this,"options",void 0),(0,s.default)(this,"_element",void 0),(0,s.default)(this,"buildState",void 0),this.hot=e,this.options=(0,n.extend)(f.DEFAULTS,t),this._element=this.hot.rootDocument.createElement(this.options.wrapIt?"div":this.options.tagName)}setValue(e){this.options.value=e,this.update()}getValue(){return this.options.value}get element(){return this.buildState===d?this._element:this.buildState===u?(this.update(),this._element):(this.buildState=d,this.build(),this.buildState=u,this._element)}isBuilt(){return this.buildState===u}translateIfPossible(e){return"string"==typeof e&&e.startsWith(c.FILTERS_NAMESPACE)?this.hot.getTranslatedPhrase(e):e}build(){const e=(e,t)=>{this.eventManager.addEventListener(e,t,e=>this.runLocalHooks(t,e,this))};if(this.buildState||(this.buildState=d),this._element.setAttribute("data-hot-input",!0),void 0!==this.options.tabIndex&&this._element.setAttribute("tabindex",this.options.tabIndex),void 0!==this.options.role&&this._element.setAttribute("role",this.options.role),this.options.className&&(0,l.addClass)(this._element,this.options.className),this.options.children.length)(0,h.arrayEach)(this.options.children,e=>this._element.appendChild(e.element));else if(this.options.wrapIt){const t=this.hot.rootDocument.createElement(this.options.tagName);t.setAttribute("data-hot-input",!0),(0,n.objectEach)(this.options,(e,o)=>{void 0!==t[o]&&"className"!==o&&"tagName"!==o&&"children"!==o&&(t[o]=this.translateIfPossible(e))}),this._element.appendChild(t),(0,h.arrayEach)(g,o=>e(t,o))}else(0,h.arrayEach)(g,t=>e(this._element,t))}update(){}reset(){this.options.value="",this.update()}show(){this.element.style.display=""}hide(){this.element.style.display="none"}focus(){}destroy(){this.eventManager.destroy(),this.eventManager=null,this.hot=null,this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null}}t.BaseUI=f,(0,n.mixin)(f,r.default)},42765:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588);var i=o(96488);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`}}},42784:(e,t)=>{"use strict";t.__esModule=!0;t.default=class{constructor(){this.data={}}setData(e,t){this.data[e]=t}getData(e){return this.data[e]||void 0}}},42890:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182);var s=i(o(81115)),n=o(76651),r=o(12108),a=o(42479);const l=t.PLUGIN_KEY="multipleSelectionHandles",h=t.PLUGIN_PRIORITY=160;class c extends a.BasePlugin{constructor(){super(...arguments),(0,s.default)(this,"dragged",[]),(0,s.default)(this,"lastSetCell",null)}static get PLUGIN_KEY(){return l}static get PLUGIN_PRIORITY(){return h}isEnabled(){return(0,r.isMobileBrowser)()}enablePlugin(){this.enabled||(this.registerListeners(),super.enablePlugin())}registerListeners(){const e=this,{rootElement:t}=this.hot;function o(t){if(1===e.dragged.length)return e.dragged.splice(0,e.dragged.length),!0;const o=e.dragged.indexOf(t);if(-1===o)return!1;0===o?e.dragged=e.dragged.slice(0,1):1===o&&(e.dragged=e.dragged.slice(-1))}this.eventManager.addEventListener(t,"touchstart",t=>{let o;return(0,n.hasClass)(t.target,"topSelectionHandle-HitArea")?(o=e.hot.getSelectedRangeActive(),e.dragged.push("top"),e.touchStartRange={width:o.getWidth(),height:o.getHeight(),direction:o.getDirection()},t.preventDefault(),!1):(0,n.hasClass)(t.target,"bottomSelectionHandle-HitArea")?(o=e.hot.getSelectedRangeActive(),e.dragged.push("bottom"),e.touchStartRange={width:o.getWidth(),height:o.getHeight(),direction:o.getDirection()},t.preventDefault(),!1):void 0}),this.eventManager.addEventListener(t,"touchend",t=>(0,n.hasClass)(t.target,"topSelectionHandle-HitArea")?(o.call(e,"top"),e.touchStartRange=void 0,t.preventDefault(),!1):(0,n.hasClass)(t.target,"bottomSelectionHandle-HitArea")?(o.call(e,"bottom"),e.touchStartRange=void 0,t.preventDefault(),!1):void 0),this.eventManager.addEventListener(t,"touchmove",t=>{const{rootDocument:o}=this.hot;let i,s,n,r,a,l;if(0===e.dragged.length)return;const h=o.elementFromPoint(t.touches[0].clientX,t.touches[0].clientY);h&&h!==e.lastSetCell&&("TD"!==h.nodeName&&"TH"!==h.nodeName||(i=e.hot.getCoords(h),-1===i.col&&(i.col=0),s=e.hot.getSelectedRangeActive(),n=s.getWidth(),r=s.getHeight(),a=s.getDirection(),1===n&&1===r&&e.hot.selection.setRangeEnd(i),l=e.getCurrentRangeCoords(s,i,e.touchStartRange.direction,a,e.dragged[0]),null!==l.start&&e.hot.selection.setRangeStart(l.start),e.hot.selection.setRangeEnd(l.end),e.lastSetCell=h),t.preventDefault())})}getCurrentRangeCoords(e,t,o,i,s){const n=e.getTopStartCorner(),r=e.getBottomEndCorner(),a=e.getBottomStartCorner(),l=e.getTopEndCorner();let h={start:null,end:null};switch(o){case"NE-SW":switch(i){case"NE-SW":case"NW-SE":h="top"===s?{start:this.hot._createCellCoords(t.row,e.highlight.col),end:this.hot._createCellCoords(a.row,t.col)}:{start:this.hot._createCellCoords(e.highlight.row,t.col),end:this.hot._createCellCoords(t.row,n.col)};break;case"SE-NW":"bottom"===s&&(h={start:this.hot._createCellCoords(r.row,t.col),end:this.hot._createCellCoords(t.row,n.col)})}break;case"NW-SE":switch(i){case"NE-SW":"top"===s?h={start:t,end:a}:h.end=t;break;case"NW-SE":"top"===s?h={start:t,end:r}:h.end=t;break;case"SE-NW":"top"===s?h={start:t,end:n}:h.end=t;break;case"SW-NE":"top"===s?h={start:t,end:l}:h.end=t}break;case"SW-NE":switch(i){case"NW-SE":h="bottom"===s?{start:this.hot._createCellCoords(t.row,n.col),end:this.hot._createCellCoords(a.row,t.col)}:{start:this.hot._createCellCoords(n.row,t.col),end:this.hot._createCellCoords(t.row,r.col)};break;case"SW-NE":h="top"===s?{start:this.hot._createCellCoords(e.highlight.row,t.col),end:this.hot._createCellCoords(t.row,r.col)}:{start:this.hot._createCellCoords(t.row,n.col),end:this.hot._createCellCoords(n.row,t.col)};break;case"SE-NW":"bottom"===s?h={start:this.hot._createCellCoords(t.row,l.col),end:this.hot._createCellCoords(n.row,t.col)}:"top"===s&&(h={start:a,end:t})}break;case"SE-NW":switch(i){case"NW-SE":case"NE-SW":case"SW-NE":"top"===s&&(h.end=t);break;case"SE-NW":"top"===s?h.end=t:h={start:t,end:n}}}return h}isDragged(){return this.dragged.length>0}}t.MultipleSelectionHandles=c},43080:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(36503)),n=i(o(10226));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},43108:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(78437);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},43209:(e,t,o)=>{"use strict";var i=o(94988),s=o(82719),n=o(84990),r=n.Set,a=n.proto,l=i(a.forEach),h=i(a.keys),c=h(new r).next;e.exports=function(e,t,o){return o?s({iterator:h(e),next:c},t):l(e,t)}},43235:(e,t,o)=>{"use strict";t.__esModule=!0,t.getMostBottomEndPosition=n,t.getMostTopStartPosition=s,t.normalizeCoordsIfNeeded=function(e){return t=>{if(!t)return null;const{rowIndexMapper:o,columnIndexMapper:r}=e;if(o.isHidden(t.row)||r.isHidden(t.col))return null;const a=s(e),l=n(e);return null===a||null===l?null:(t.row=(0,i.clamp)(t.row,a.row,l.row),t.col=(0,i.clamp)(t.col,a.col,l.col),t)}};var i=o(58639);function s(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;return 0===s&&(s=t.getVisualFromRenderableIndex(s)),0===n&&(n=o.getVisualFromRenderableIndex(n)),null===s||null===n?null:e._createCellCoords(s,n)}function n(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)}},43237:(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(67703),s=o(46261)},43336:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(93319);t.OrderView=i.OrderView;var s=o(95870);t.SharedOrderView=s.SharedOrderView},43382:(e,t,o)=>{"use strict";var i=o(78656);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(8278)),r=o(76742);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})},43458:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(77284);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.ManualColumnResize=i.ManualColumnResize},43641:(e,t)=>{"use strict";t.__esModule=!0,t.resolveWithInstance=function(e,t){var i;return null==o||null===(i=o.get(e.guid))||void 0===i?void 0:i.get(t)},t.staticRegister=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"common";o.has(e)||o.set(e,new Map);const t=o.get(e);return{register:function(e,o){t.set(e,o)},getItem:function(e){return t.get(e)},hasItem:function(e){return t.has(e)},getNames:function(){return[...t.keys()]},getValues:function(){return[...t.values()]},clear:function(){o.delete(e),t.clear()}}};const o=t.collection=new Map},43662:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(39691);var s=i(o(81115)),n=o(42479),r=o(32435),a=o(94857);function l(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}const h=t.PLUGIN_KEY="trimRows",c=t.PLUGIN_PRIORITY=330;var u=new WeakSet;class d extends n.BasePlugin{constructor(){super(...arguments),l(this,u),(0,s.default)(this,"trimmedRowsMap",null)}static get PLUGIN_KEY(){return h}static get PLUGIN_PRIORITY(){return c}isEnabled(){return!!this.hot.getSettings()[h]}enablePlugin(){this.enabled||(this.trimmedRowsMap=this.hot.rowIndexMapper.registerMap("trimRows",new r.TrimmingMap),this.trimmedRowsMap.addLocalHook("init",()=>function(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}(u,this,g).call(this)),super.enablePlugin())}updatePlugin(){const e=this.hot.getSettings()[h];Array.isArray(e)&&this.hot.batchExecution(()=>{this.trimmedRowsMap.clear(),(0,a.arrayEach)(e,e=>{this.trimmedRowsMap.setValueAtIndex(e,!0)})},!0),super.updatePlugin()}disablePlugin(){this.hot.rowIndexMapper.unregisterMap("trimRows"),super.disablePlugin()}getTrimmedRows(){return this.trimmedRowsMap.getTrimmedIndexes()}trimRows(e){const t=this.getTrimmedRows(),o=this.isValidConfig(e);let i=t;o&&(i=Array.from(new Set(t.concat(e))));!1!==this.hot.runHooks("beforeTrimRow",t,i,o)&&(o&&this.hot.batchExecution(()=>{(0,a.arrayEach)(e,e=>{this.trimmedRowsMap.setValueAtIndex(e,!0)})},!0),this.hot.runHooks("afterTrimRow",t,i,o,o&&i.length>t.length))}trimRow(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];this.trimRows(t)}untrimRows(e){const t=this.getTrimmedRows(),o=this.isValidConfig(e);let i=t;const s=this.trimmedRowsMap.getValues().slice(),n=e.length>0;o&&n&&((0,a.arrayEach)(e,e=>{s[e]=!1}),i=(0,a.arrayReduce)(s,(e,t,o)=>(t&&e.push(o),e),[]));!1!==this.hot.runHooks("beforeUntrimRow",t,i,o&&n)&&(o&&n&&this.trimmedRowsMap.setValues(s),this.hot.runHooks("afterUntrimRow",t,i,o&&n,o&&i.length<t.length))}untrimRow(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];this.untrimRows(t)}isTrimmed(e){return this.trimmedRowsMap.getValueAtIndex(e)||!1}untrimAll(){this.untrimRows(this.getTrimmedRows())}isValidConfig(e){const t=this.hot.countSourceRows();return e.every(e=>Number.isInteger(e)&&e>=0&&e<t)}destroy(){super.destroy()}}function g(){const e=this.hot.getSettings()[h];Array.isArray(e)&&this.hot.batchExecution(()=>{(0,a.arrayEach)(e,e=>{this.trimmedRowsMap.setValueAtIndex(e,!0)})},!0)}t.TrimRows=d},43778:(e,t,o)=>{"use strict";t.__esModule=!0,t.selectRenderer=n;var i=o(28454);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},43832: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}}},44402:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(95220),s=o(76651);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},44803:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(73050),s=o(28454);const n=t.CELL_TYPE="text";t.TextCellType={CELL_TYPE:n,editor:i.TextEditor,renderer:s.textRenderer}},45024:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(63556);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.Comments=i.Comments},45052:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(70610);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.PersistentState=i.PersistentState},45074:(e,t,o)=>{"use strict";t.__esModule=!0,t.createPaginatorStrategy=function(e){if(!n.has(e))throw new Error(`Unknown pagination strategy type: ${e}`);return new(n.get(e))},o(22588);var i=o(59494),s=o(62517);const n=new Map([["fixed",i.FixedPageSizeStrategy],["auto",s.AutoPageSizeStrategy]])},45127:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(42489);t.valueSetter=i.valueSetter},45272:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_INSERT_LEFT)},callback(){const e=this.getSelectedRangeActive().getTopLeftCorner(),t=this.isRtl()?"insert_col_end":"insert_col_start";this.alter(t,e.col,1,"ContextMenu.columnLeft")},disabled(){if(!this.isColumnModificationAllowed())return!0;const e=this.getSelectedRangeActive();return!!(!e||this.selection.isSelectedByRowHeader()||e.isSingleHeader()&&e.highlight.col<0||this.countSourceCols()>=this.getSettings().maxCols)||!!this.selection.isSelectedByCorner()&&0===this.countCols()},hidden(){return!this.getSettings().allowInsertColumn}}};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(8278));const s=t.KEY="col_left"},45515:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(78437);const s={getFirstRenderedColumn(){return 0===this.getRenderedColumnsCount()?-1:0},getFirstVisibleColumn(){return this.getFirstRenderedColumn()},getFirstPartiallyVisibleColumn(){return this.getFirstRenderedColumn()},getLastRenderedColumn(){return this.getRenderedColumnsCount()-1},getLastVisibleColumn(){return this.getLastRenderedColumn()},getLastPartiallyVisibleColumn(){return this.getLastRenderedColumn()},getRenderedColumnsCount(){return Math.min(this.wtSettings.getSetting("totalColumns"),this.wtSettings.getSetting("fixedColumnsStart"))},getVisibleColumnsCount(){return this.getRenderedColumnsCount()},getRowHeadersCount(){return this.dataAccessObject.rowHeaders.length}};(0,i.defineGetter)(s,"MIXIN_NAME","stickyColumnsStart",{writable:!1,enumerable:!1});t.default=s},45527:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){const t="undefined"!=typeof window&&window.jQuery;if(!t)return;t.fn.handsontable=function(t){const o=this.first();let i,s=o.data("handsontable");if("string"!=typeof t){const i=t||{};return s?s.updateSettings(i):(s=new e.Core(o[0],i),o.data("handsontable",s),s.init()),o}if(s){if(void 0===s[t])throw new Error(`Handsontable do not provide action: ${t}`);for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];i=s[t].call(s,...r),"destroy"===t&&o.removeData()}return i}},o(22588)},45571:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182),o(81396),o(88633),o(14618),o(19874);var s=i(o(81115)),n=o(26599),r=o(49581),a=o(34149);t.default=class{constructor(e){(0,s.default)(this,"plugin",void 0),(0,s.default)(this,"hot",void 0),(0,s.default)(this,"dataManager",void 0),(0,s.default)(this,"collapsingUI",void 0),this.plugin=e,this.hot=e.hot,this.dataManager=e.dataManager,this.collapsingUI=e.collapsingUI}onBeforeRowMove(e,t,o,i){if(this.displayAPICompatibilityWarning({rows:e,finalIndex:t,dropIndex:o,movePossible:i}))return!1;this.movedToCollapsed=!1;const s=o===this.hot.countRows(),n=s?this.hot.countSourceRows():this.dataManager.translateTrimmedRow(o);let r=!0;const a=e.map(e=>{if(!r)return!1;const t=this.dataManager.translateTrimmedRow(e);return r=this.shouldAllowMoving(t,n),t}),l=-1===a.indexOf(n);if(!r||!l)return!1;const h=this.getBaseParent(a),c=this.getTargetParent(s,n),u=h===c;return this.movedToCollapsed=this.collapsingUI.areChildrenCollapsed(c),this.collapsingUI.collapsedRowsStash.stash(),this.shiftCollapsibleParentsLocations(a,n,u),this.moveRows(a,n,c),this.dataManager.rewriteCache(),this.moveCellsMeta(a,n),this.collapsingUI.collapsedRowsStash.applyStash(!1),this.hot.runHooks("afterRowMove",e,t,o,i,i&&this.isRowOrderChanged(e,t)),this.hot.render(),this.selectCells(e,o),!1}displayAPICompatibilityWarning(e){const{rows:t,finalIndex:o,dropIndex:i,movePossible:s}=e;let l=!1;return(0,n.isUndefined)(i)&&((0,r.warn)(a.toSingleLine`Since version 8.0.0 of the Handsontable the 'moveRows' method isn't used for moving rows\x20
78
78
  when the NestedRows plugin is enabled. Please use the 'dragRows' method instead.`),this.hot.runHooks("afterRowMove",t,o,i,s,!1),l=!0),l}shouldAllowMoving(e,t){return!(this.dataManager.isParent(e)||this.dataManager.isRowHighestLevel(e)||e===t||0===t)}getBaseParent(e){return this.dataManager.getRowParent(e[0])}getTargetParent(e,t){let o=this.dataManager.getRowParent(e?t-1:t);return null==o&&(o=this.dataManager.getRowParent(t-1)),o}shiftCollapsibleParentsLocations(e,t,o){o||(Math.max(...e)<=t?this.collapsingUI.collapsedRowsStash.shiftStash(e[0],t,-1*e.length):this.collapsingUI.collapsedRowsStash.shiftStash(t,e[0],e.length))}moveRows(e,t,o){const i=t===this.dataManager.getRowIndex(o)+this.dataManager.countChildren(o)+1;this.hot.batchRender(()=>{e.forEach(e=>{this.dataManager.moveRow(e,t,this.movedToCollapsed,i)})})}moveCellsMeta(e,t){const o=[],i=Math.max(...e)<t;e.forEach(e=>{o.push(this.hot.getCellMetaAtRow(e))}),this.hot.spliceCellsMeta(e[0],e.length),this.hot.spliceCellsMeta(t-(i?o.length:0),0,...o)}selectCells(e,t){const o=e.length;let i=0,s=0;if(this.movedToCollapsed){let n=null;n=e[o-1]<t?this.dataManager.translateTrimmedRow(t-o):this.dataManager.translateTrimmedRow(t);const r=this.dataManager.getRowParent(null===n?this.hot.countSourceRows()-1:n-1),a=this.dataManager.getRowIndex(r);i=this.dataManager.untranslateTrimmedRow(a),s=i}else e[o-1]<t?(s=t-1,i=s-o+1):(i=t,s=i+o-1);this.hot.selectCells([[i,0,s,this.hot.countCols()-1]],!1)}isRowOrderChanged(e,t){return e.some((e,o)=>e-o!==t)}}},45882:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(81396),o(88633),o(19874);var s=i(o(81115)),n=o(94857),r=o(49581),a=o(13653);t.default=class{constructor(e,t){(0,s.default)(this,"plugin",void 0),(0,s.default)(this,"hot",void 0),(0,s.default)(this,"endpoints",[]),(0,s.default)(this,"settings",void 0),(0,s.default)(this,"settingsType","array"),(0,s.default)(this,"currentEndpoint",null),(0,s.default)(this,"cellsToSetCache",[]),this.plugin=e,this.hot=this.plugin.hot,this.settings=t}initEndpoints(){this.endpoints=this.parseSettings(),this.refreshAllEndpoints()}getEndpoint(e){return"function"===this.settingsType?this.fillMissingEndpointData(this.settings)[e]:this.endpoints[e]}getAllEndpoints(){return"function"===this.settingsType?this.fillMissingEndpointData(this.settings):this.endpoints}fillMissingEndpointData(e){return this.parseSettings(e.call(this))}parseSettings(e){const t=[];let o=e;if(o||"function"!=typeof this.settings)return o||(o=this.settings),(0,n.arrayEach)(o,e=>{const o={};this.assignSetting(e,o,"ranges",[[0,this.hot.countRows()-1]]),this.assignSetting(e,o,"reversedRowCoords",!1),this.assignSetting(e,o,"destinationRow",new Error("\n You must provide a destination row for the Column Summary plugin in order to work properly!\n ")),this.assignSetting(e,o,"destinationColumn",new Error("\n You must provide a destination column for the Column Summary plugin in order to work properly!\n ")),this.assignSetting(e,o,"sourceColumn",e.destinationColumn),this.assignSetting(e,o,"type","sum"),this.assignSetting(e,o,"forceNumeric",!1),this.assignSetting(e,o,"suppressDataTypeErrors",!0),this.assignSetting(e,o,"customFunction",null),this.assignSetting(e,o,"readOnly",!0),this.assignSetting(e,o,"roundFloat",!1),t.push(o)}),t;this.settingsType="function"}assignSetting(e,t,o,i){if("ranges"!==o||void 0!==e[o]){if("ranges"!==o||0!==e[o].length)if(void 0===e[o]){if(i instanceof Error)throw i;t[o]=i}else"destinationRow"===o&&t.reversedRowCoords?t[o]=this.hot.countRows()-e[o]-1:t[o]=e[o]}else t[o]=i}resetSetupBeforeStructureAlteration(e,t,o){if("function"!==this.settingsType)return;const i=e.indexOf("row")>-1?"row":"col",s=this.getAllEndpoints();(0,n.arrayEach)(s,s=>{"row"===i&&s.destinationRow>=t&&("insert_row"===e?s.alterRowOffset=o:"remove_row"===e&&(s.alterRowOffset=-1*o)),"col"===i&&s.destinationColumn>=t&&("insert_col"===e?s.alterColumnOffset=o:"remove_col"===e&&(s.alterColumnOffset=-1*o))}),this.resetAllEndpoints(s,!1)}resetSetupAfterStructureAlteration(e,t,o,i,s){let r=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if("auto"===s)return;if("function"===this.settingsType){const e=()=>(this.hot.removeHook("beforeViewRender",e),this.refreshAllEndpoints());return void this.hot.addHookOnce("beforeViewRender",e)}const a=e.indexOf("row")>-1?"row":"col",l=e.indexOf("remove")>-1?-1:1,h=this.getAllEndpoints(),c=0===e.indexOf("move_row"),u=t;(0,n.arrayEach)(h,e=>{"row"===a&&e.destinationRow>=u&&(e.alterRowOffset=l*o),"col"===a&&e.destinationColumn>=u&&(e.alterColumnOffset=l*o)}),this.resetAllEndpoints(h,!c),c?(0,n.arrayEach)(h,e=>{this.extendEndpointRanges(e,u,i[0],i.length),this.recreatePhysicalRanges(e),this.clearOffsetInformation(e)}):(0,n.arrayEach)(h,e=>{this.shiftEndpointCoordinates(e,u)}),r&&this.refreshAllEndpoints()}clearOffsetInformation(e){e.alterRowOffset=void 0,e.alterColumnOffset=void 0}extendEndpointRanges(e,t,o,i){(0,n.arrayEach)(e.ranges,e=>{e[1]&&(t>=e[0]&&t<=e[1]?o>e[1]?e[1]+=i:o<e[0]&&(e[0]-=i):o>=e[0]&&o<=e[1]&&(e[1]-=i,t<=e[0]&&(e[0]+=1,e[1]+=1)))})}recreatePhysicalRanges(e){const t=e.ranges,o=[],i=[];(0,n.arrayEach)(t,e=>{const t=[];if(e[1])for(let o=e[0];o<=e[1];o++)t.push(this.hot.toPhysicalRow(o));else t.push(this.hot.toPhysicalRow(e[0]));i.push(t)}),(0,n.arrayEach)(i,e=>{let t=[];(0,n.arrayEach)(e,(i,s)=>{0===s?t.push(i):e[s]!==e[s-1]+1&&(t.push(e[s-1]),o.push(t),t=[],t.push(i)),s===e.length-1&&(t.push(i),o.push(t))})}),e.ranges=o}shiftEndpointCoordinates(e,t){e.alterRowOffset&&0!==e.alterRowOffset?(e.destinationRow+=e.alterRowOffset||0,(0,n.arrayEach)(e.ranges,o=>{(0,n.arrayEach)(o,(i,s)=>{i>=t&&(o[s]+=e.alterRowOffset||0)})})):e.alterColumnOffset&&0!==e.alterColumnOffset&&(e.destinationColumn+=e.alterColumnOffset||0,e.sourceColumn+=e.alterColumnOffset||0)}resetAllEndpoints(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getAllEndpoints(),t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.some(e=>{const t=e.alterRowOffset||0,o=e.alterColumnOffset||0;return e.destinationRow+t>=this.hot.countRows()||e.destinationColumn+o>=this.hot.countCols()})||(this.cellsToSetCache=[],(0,n.arrayEach)(e,e=>{this.resetEndpointValue(e,t)}),this.cellsToSetCache.length&&this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[])}refreshAllEndpoints(){this.cellsToSetCache=[],(0,n.arrayEach)(this.getAllEndpoints(),e=>{this.currentEndpoint=e,this.plugin.calculate(e),this.setEndpointValue(e,"init")}),this.currentEndpoint=null,this.cellsToSetCache.length&&this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}refreshChangedEndpoints(e){const t=[];this.cellsToSetCache=[],(0,n.arrayEach)(e,(e,o,i)=>{`${e[2]||""}`!=`${e[3]}`&&(0,n.arrayEach)(this.getAllEndpoints(),(e,s)=>{this.hot.propToCol(i[o][1])===e.sourceColumn&&-1===t.indexOf(s)&&t.push(s)})}),(0,n.arrayEach)(t,e=>{this.refreshEndpoint(this.getEndpoint(e))}),this.cellsToSetCache.length&&this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}refreshCellMetas(){this.endpoints.forEach(e=>{const t=this.hot.toVisualRow(e.destinationRow);if(null!==t){const o=this.hot.getCellMeta(t,e.destinationColumn);o.readOnly=e.readOnly,o.className="columnSummaryResult"}})}refreshEndpoint(e){this.currentEndpoint=e,this.plugin.calculate(e),this.setEndpointValue(e),this.currentEndpoint=null}resetEndpointValue(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const o=e.alterRowOffset||0,i=e.alterColumnOffset||0;this.cellsToSetCache.push([this.hot.toVisualRow(e.destinationRow+(t?o:0)),this.hot.toVisualColumn(e.destinationColumn+(t?i:0)),""])}setEndpointValue(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const i=this.hot.toVisualRow(e.destinationRow);if(e.destinationRow>=this.hot.countRows()||e.destinationColumn>=this.hot.countCols())return void this.throwOutOfBoundsWarning();const s=this.hot.toVisualRow(e.destinationRow);if(null!==s){const o=this.hot.getCellMeta(s,e.destinationColumn);"init"!==t&&o.readOnly===e.readOnly||(o.readOnly=e.readOnly,o.className="columnSummaryResult")}e.result=(0,a.roundFloat)(e.result,e.roundFloat),o?this.hot.setDataAtCell(i,e.destinationColumn,e.result,"ColumnSummary.set"):this.cellsToSetCache.push([i,e.destinationColumn,e.result]),e.alterRowOffset=void 0,e.alterColumnOffset=void 0}throwOutOfBoundsWarning(){(0,r.warn)("One of the Column Summary plugins' destination points you provided is beyond the table boundaries!")}}},45945:(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(57787)},45986:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.createHighlight=function(e){let{rowClassName:t,...o}=e;return new n.default({className:t,...o,selectionType:s.HIGHLIGHT_ROW_TYPE})};var s=o(24496),n=i(o(73358))},46003:(e,t,o)=>{"use strict";var i=o(17621),s=TypeError;e.exports=function(e,t){if(i(t,e))return e;throw new s("Incorrect invocation")}},46016:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182);var s=i(o(81115)),n=o(47646);const r=t.DEFAULT_WIDTH=50;class a extends n.ViewportBaseCalculator{constructor(e){let{calculationTypes:t,viewportWidth:o,scrollOffset:i,totalColumns:n,columnWidthFn:r,overrideFn:a,inlineStartOffset:l}=e;super(t),(0,s.default)(this,"viewportWidth",0),(0,s.default)(this,"scrollOffset",0),(0,s.default)(this,"zeroBasedScrollOffset",0),(0,s.default)(this,"totalColumns",0),(0,s.default)(this,"columnWidthFn",null),(0,s.default)(this,"columnWidth",0),(0,s.default)(this,"overrideFn",null),(0,s.default)(this,"inlineStartOffset",0),(0,s.default)(this,"totalCalculatedWidth",0),(0,s.default)(this,"startPositions",[]),(0,s.default)(this,"needReverse",!0),this.viewportWidth=o,this.scrollOffset=i,this.zeroBasedScrollOffset=Math.max(i,0),this.totalColumns=n,this.columnWidthFn=r,this.overrideFn=a,this.inlineStartOffset=l,this.calculate()}calculate(){this._initialize(this);for(let e=0;e<this.totalColumns;e++)if(this.columnWidth=this.getColumnWidth(e),this._process(e,this),this.startPositions.push(this.totalCalculatedWidth),this.totalCalculatedWidth+=this.columnWidth,this.totalCalculatedWidth>=this.zeroBasedScrollOffset+this.viewportWidth){this.needReverse=!1;break}this._finalize(this)}getColumnWidth(e){const t=this.columnWidthFn(e);return isNaN(t)?r:t}}t.ViewportColumnsCalculator=a},46049:e=>{"use strict";e.exports={}},46198:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(42479),r=o(78437),a=i(o(45882)),l=o(34149),h=o(13653);function c(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 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="columnSummary",g=t.PLUGIN_PRIORITY=220;var f=new WeakSet;class p extends n.BasePlugin{constructor(){super(...arguments),c(this,f),(0,s.default)(this,"endpoints",null)}static get PLUGIN_KEY(){return d}static get PLUGIN_PRIORITY(){return g}isEnabled(){return!!this.hot.getSettings()[d]}enablePlugin(){var e=this;this.enabled||(this.settings=this.hot.getSettings()[d],this.endpoints=new a.default(this,this.settings),this.addHook("afterInit",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return u(f,e,m).call(e,...o)}),this.addHook("afterChange",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return u(f,e,C).call(e,...o)}),this.addHook("afterUpdateSettings",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return u(f,e,w).call(e,...o)}),this.addHook("afterLoadData",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return u(f,e,v).call(e,...o)}),this.addHook("afterUpdateData",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return u(f,e,y).call(e,...o)}),this.addHook("beforeCreateRow",(e,t,o)=>this.endpoints.resetSetupBeforeStructureAlteration("insert_row",e,t,null,o)),this.addHook("beforeCreateCol",(e,t,o)=>this.endpoints.resetSetupBeforeStructureAlteration("insert_col",e,t,null,o)),this.addHook("beforeRemoveRow",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return e.endpoints.resetSetupBeforeStructureAlteration("remove_row",...o)}),this.addHook("beforeRemoveCol",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return e.endpoints.resetSetupBeforeStructureAlteration("remove_col",...o)}),this.addHook("afterCreateRow",(e,t,o)=>this.endpoints.resetSetupAfterStructureAlteration("insert_row",e,t,null,o)),this.addHook("afterCreateCol",(e,t,o)=>this.endpoints.resetSetupAfterStructureAlteration("insert_col",e,t,null,o)),this.addHook("afterRemoveRow",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return e.endpoints.resetSetupAfterStructureAlteration("remove_row",...o)}),this.addHook("afterRemoveCol",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return e.endpoints.resetSetupAfterStructureAlteration("remove_col",...o)}),this.addHook("afterRowMove",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return u(f,e,S).call(e,...o)}),super.enablePlugin())}disablePlugin(){this.endpoints=null,this.settings=null,this.currentEndpoint=null,super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.endpoints.initEndpoints(),super.updatePlugin()}calculate(e){switch(e.type.toLowerCase()){case"sum":e.result=this.calculateSum(e);break;case"min":case"max":e.result=this.calculateMinMax(e,e.type);break;case"count":e.result=this.countEntries(e);break;case"average":e.result=this.calculateAverage(e);break;case"custom":e.result=e.customFunction.call(this,e)}}calculateSum(e){let t=0;return(0,r.objectEach)(e.ranges,o=>{t+=this.getPartialSum(o,e.sourceColumn)}),t}getPartialSum(e,t){let o=0,i=e[1]||e[0],s=null,n=0;do{if(s=this.getCellValue(i,t),s=(0,h.isNullishOrNaN)(s)?null:s,null!==s){const e=(`${s}`.split(".")[1]||[]).length||1;e>n&&(n=e)}o+=s||0,i-=1}while(i>=e[0]);return Math.round(o*10**n)/10**n}calculateMinMax(e,t){let o=null;return(0,r.objectEach)(e.ranges,i=>{const s=this.getPartialMinMax(i,e.sourceColumn,t);if(null===o&&null!==s&&(o=s),null!==s)switch(t){case"min":o=Math.min(o,s);break;case"max":o=Math.max(o,s)}}),null===o?"Not enough data":o}getPartialMinMax(e,t,o){let i,s=null,n=e[1]||e[0];do{if(i=this.getCellValue(n,t),i=(0,h.isNullishOrNaN)(i)?null:i,null===s)s=i;else if(null!==i)switch(o){case"min":s=Math.min(s,i);break;case"max":s=Math.max(s,i)}n-=1}while(n>=e[0]);return s}countEmpty(e,t){let o,i=0,s=e[1]||e[0];do{o=this.getCellValue(s,t),o=(0,h.isNullishOrNaN)(o)?null:o,null===o&&(i+=1),s-=1}while(s>=e[0]);return i}countEntries(e){let t=0;const o=e.ranges;return(0,r.objectEach)(o,o=>{const i=void 0===o[1]?1:o[1]-o[0]+1,s=this.countEmpty(o,e.sourceColumn);t+=i,t-=s}),t}calculateAverage(e){return this.calculateSum(e)/this.countEntries(e)}getCellValue(e,t){const o=this.hot.toVisualRow(e),i=this.hot.toVisualColumn(t);let s=this.hot.getSourceDataAtCell(e,t),n="";if(null!==o&&null!==i&&(n=this.hot.getCellMeta(o,i).className||""),n.indexOf("columnSummaryResult")>-1)return null;if(this.endpoints.currentEndpoint.forceNumeric&&("string"==typeof s&&(s=s.replace(/,/,".")),s=parseFloat(s)),isNaN(s)&&!this.endpoints.currentEndpoint.suppressDataTypeErrors)throw new Error(l.toSingleLine`ColumnSummary plugin: cell at (${e}, ${t}) is not in a\x20
79
79
  numeric format. Cannot do the calculation.`);return s}}function m(){this.endpoints.initEndpoints()}function w(e){void 0!==e.columns&&this.endpoints.refreshCellMetas()}function C(e,t){e&&"ColumnSummary.reset"!==t&&"ColumnSummary.set"!==t&&"loadData"!==t&&this.endpoints.refreshChangedEndpoints(e)}function v(e,t){t||this.endpoints.refreshAllEndpoints()}function y(e,t){t||this.endpoints.refreshAllEndpoints()}function S(e,t){this.endpoints.resetSetupBeforeStructureAlteration("move_row",e[0],e.length,e,this.pluginName),this.endpoints.resetSetupAfterStructureAlteration("move_row",t,e.length,e,this.pluginName)}t.ColumnSummary=p},46261:(e,t,o)=>{"use strict";t.__esModule=!0,t.filterSeparators=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.SEPARATOR,o=e.slice(0);return o=a(o,t),o=function(e,t){let o=e.slice(0);return o.reverse(),o=a(o,t),o.reverse(),o}(o,t),o=function(e){const t=[];return(0,i.arrayEach)(e,(e,o)=>{o>0?t[t.length-1].name!==e.name&&t.push(e):t.push(e)}),t}(o),o},t.hasSubMenu=function(e){return(0,n.hasClass)(e,"htSubmenu")},t.isDisabled=function(e){return(0,n.hasClass)(e,"htDisabled")},t.isItemCheckable=function(e){return!0===e.checkable},t.isItemDisabled=function(e,t){return!0===e.disabled||"function"==typeof e.disabled&&!0===e.disabled.call(t)},t.isItemHidden=function(e,t){return!e.hidden||!("function"==typeof e.hidden&&e.hidden.call(t))},t.isItemSelectionDisabled=function(e){return(0,s.hasOwnProperty)(e,"disableSelection")},t.isItemSeparator=function(e){return new RegExp(r.SEPARATOR,"i").test(e.name)},t.isItemSubMenu=function(e){return(0,s.hasOwnProperty)(e,"submenu")},t.isSelectionDisabled=function(e){return(0,n.hasClass)(e,"htSelectionDisabled")},t.isSeparator=function(e){return(0,n.hasClass)(e,"htSeparator")},t.normalizeSelection=function(e){return(0,i.arrayMap)(e,e=>({start:e.getTopStartCorner(),end:e.getBottomEndCorner()}))},o(66182);var i=o(94857),s=o(78437),n=o(76651),r=o(50151);function a(e,t){const o=e.slice(0);for(let e=0;e<o.length&&o[e].name===t;)o.shift();return o}},46301:(e,t,o)=>{"use strict";var i=o(78656);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(8278)),r=o(76742);const a=t.CONDITION_NAME="date_today";function l(e){const t=(0,s.default)(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame((0,s.default)().startOf("day"),"d")}(0,r.registerCondition)(a,l,{name:n.FILTERS_CONDITIONS_TODAY,inputsCount:0})},46485:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=r;var i=o(76742),s=o(35764);const n=t.CONDITION_NAME="by_value";function r(e,t){let[o]=t;return o(e.value)}(0,i.registerCondition)(n,r,{name:"By value",inputsCount:0,inputValuesDecorator(e){let[t]=e;return[(0,s.createArrayAssertion)(t)]},showOperators:!1})},46525:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(77690);t.RENDERER_TYPE=i.RENDERER_TYPE,t.dateRenderer=i.dateRenderer},46539:(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
80
- This combination is not supported. The plugin will remain disabled.`),o})};var i=o(34149),s=o(49581);const n=["nestedRows","mergeCells","fixedRowsTop","fixedRowsBottom"]},46808:(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(688),s=o(6888),n=o(26599);t.COLUMN_DATA_TYPE="checkbox"},46842:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(79060);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.Pagination=i.Pagination},46924:(e,t,o)=>{"use strict";var i=o(771);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(i)},47138:(e,t,o)=>{"use strict";var i=o(24755),s=TypeError;e.exports=function(e,t){if(!delete e[t])throw new s("Cannot delete property "+i(t)+" of "+i(e))}},47145:(e,t,o)=>{"use strict";var i=o(21912),s=o(89035),n=o(59899);e.exports=!i&&!s(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})},47151:(e,t,o)=>{"use strict";var i=o(21375),s=o(61338),n=o(91945),r=o(35097),a=o(71671)("iterator");e.exports=function(e){if(!n(e))return s(e,a)||s(e,"@@iterator")||r[i(e)]}},47183:(e,t,o)=>{"use strict";var i=o(27538),s=o(19617),n=o(49510),r=o(16539),a=o(83203),l=o(13234),h=o(39522),c=o(13479),u=o(58719),d=o(43832),g=o(57625),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})}})},47229:(e,t,o)=>{"use strict";t.__esModule=!0,t.registerAllPlugins=function(){(0,U.registerPlugin)(i.AutoColumnSize),(0,U.registerPlugin)(s.Autofill),(0,U.registerPlugin)(n.AutoRowSize),(0,U.registerPlugin)(a.BindRowsWithHeaders),(0,U.registerPlugin)(l.CollapsibleColumns),(0,U.registerPlugin)(h.ColumnSorting),(0,U.registerPlugin)(c.ColumnSummary),(0,U.registerPlugin)(u.Comments),(0,U.registerPlugin)(d.ContextMenu),(0,U.registerPlugin)(g.CopyPaste),(0,U.registerPlugin)(f.CustomBorders),(0,U.registerPlugin)(p.DragToScroll),(0,U.registerPlugin)(m.DropdownMenu),(0,U.registerPlugin)(w.ExportFile),(0,U.registerPlugin)(C.Filters),(0,U.registerPlugin)(v.Formulas),(0,U.registerPlugin)(y.HiddenColumns),(0,U.registerPlugin)(S.HiddenRows),(0,U.registerPlugin)(E.ManualColumnFreeze),(0,U.registerPlugin)(R.ManualColumnMove),(0,U.registerPlugin)(b.ManualColumnResize),(0,U.registerPlugin)(_.ManualRowMove),(0,U.registerPlugin)(T.ManualRowResize),(0,U.registerPlugin)(M.MergeCells),(0,U.registerPlugin)(I.MultiColumnSorting),(0,U.registerPlugin)(O.MultipleSelectionHandles),(0,U.registerPlugin)(A.NestedHeaders),(0,U.registerPlugin)(N.NestedRows),(0,U.registerPlugin)(P.Pagination),(0,U.registerPlugin)(H.PersistentState),(0,U.registerPlugin)(x.Search),(0,U.registerPlugin)(k.StretchColumns),(0,U.registerPlugin)(D.TouchScroll),(0,U.registerPlugin)(L.TrimRows),(0,U.registerPlugin)(V.UndoRedo),(0,U.registerPlugin)(W.Dialog),(0,U.registerPlugin)(F.Loading),(0,U.registerPlugin)(B.EmptyDataState)};var i=o(88886);t.AutoColumnSize=i.AutoColumnSize;var s=o(7796);t.Autofill=s.Autofill;var n=o(1402);t.AutoRowSize=n.AutoRowSize;var r=o(42479);t.BasePlugin=r.BasePlugin;var a=o(94366);t.BindRowsWithHeaders=a.BindRowsWithHeaders;var l=o(70641);t.CollapsibleColumns=l.CollapsibleColumns;var h=o(99048);t.ColumnSorting=h.ColumnSorting;var c=o(51964);t.ColumnSummary=c.ColumnSummary;var u=o(45024);t.Comments=u.Comments;var d=o(26746);t.ContextMenu=d.ContextMenu;var g=o(36250);t.CopyPaste=g.CopyPaste;var f=o(1316);t.CustomBorders=f.CustomBorders;var p=o(15576);t.DragToScroll=p.DragToScroll;var m=o(29328);t.DropdownMenu=m.DropdownMenu;var w=o(92326);t.ExportFile=w.ExportFile;var C=o(79385);t.Filters=C.Filters;var v=o(78865);t.Formulas=v.Formulas;var y=o(96789);t.HiddenColumns=y.HiddenColumns;var S=o(62831);t.HiddenRows=S.HiddenRows;var E=o(67289);t.ManualColumnFreeze=E.ManualColumnFreeze;var R=o(29099);t.ManualColumnMove=R.ManualColumnMove;var b=o(43458);t.ManualColumnResize=b.ManualColumnResize;var _=o(10441);t.ManualRowMove=_.ManualRowMove;var T=o(7884);t.ManualRowResize=T.ManualRowResize;var M=o(26643);t.MergeCells=M.MergeCells;var I=o(67);t.MultiColumnSorting=I.MultiColumnSorting;var O=o(73335);t.MultipleSelectionHandles=O.MultipleSelectionHandles;var A=o(11797);t.NestedHeaders=A.NestedHeaders;var N=o(21956);t.NestedRows=N.NestedRows;var P=o(46842);t.Pagination=P.Pagination;var H=o(45052);t.PersistentState=H.PersistentState;var x=o(37090);t.Search=x.Search;var k=o(19826);t.StretchColumns=k.StretchColumns;var D=o(64536);t.TouchScroll=D.TouchScroll;var L=o(60599);t.TrimRows=L.TrimRows;var V=o(80716);t.UndoRedo=V.UndoRedo;var W=o(22362);t.Dialog=W.Dialog;var F=o(32310);t.Loading=F.Loading;var B=o(91636);t.EmptyDataState=B.EmptyDataState;var U=o(3182);t.registerPlugin=U.registerPlugin,t.getPlugin=U.getPlugin,t.getPluginsNames=U.getPluginsNames},47572:(e,t,o)=>{"use strict";o(13348),o(60225)},47646:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(81396),o(88633);var s=i(o(81115));t.ViewportBaseCalculator=class{constructor(e){(0,s.default)(this,"calculationTypes",[]),(0,s.default)(this,"calculationResults",new Map),this.calculationTypes=e}_initialize(e){this.calculationTypes.forEach(t=>{let[o,i]=t;this.calculationResults.set(o,i),i.initialize(e)})}_process(e,t){this.calculationTypes.forEach(o=>{let[,i]=o;return i.process(e,t)})}_finalize(e){this.calculationTypes.forEach(t=>{let[,o]=t;return o.finalize(e)})}getResultsFor(e){return this.calculationResults.get(e)}}},47700:(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"},47730:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182),o(81396),o(81124),o(88633),o(14618),o(19874);var s=i(o(81115));class n{constructor(e){(0,s.default)(this,"ranges",[]),(0,s.default)(this,"createCellRange",void 0),this.createCellRange=e}isEmpty(){return 0===this.size()}set(e){return this.clear(),this.ranges.push(this.createCellRange(e)),this}add(e){return this.ranges.push(this.createCellRange(e)),this}push(e){return this.ranges.push(e),this}pop(){return this.ranges.pop()}current(){return this.peekByIndex(this.size()-1)}previous(){return this.peekByIndex(this.size()-2)}includes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>!0;return this.ranges.some((o,i)=>o.includes(e)&&t(o,i))}findAll(e){const t=[];return this.ranges.forEach((o,i)=>{o.isEqual(e)&&t.push({range:o,layer:i})}),t}remove(e){return this.ranges=this.ranges.filter(t=>!e.some(e=>e.isEqual(t))),this}removeLayers(e){return this.ranges=this.ranges.filter((t,o)=>!e.includes(o)),this}clear(){return this.ranges.length=0,this}size(){return this.ranges.length}clone(){const e=new n(this.createCellRange);return e.ranges=this.ranges.map(e=>e.clone()),e}map(e){return this.ranges=this.ranges.map((t,o)=>e(t,o)),this}peekByIndex(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t>=0&&t<this.size()&&(e=this.ranges[t]),e}[Symbol.iterator](){return this.ranges[Symbol.iterator]()}}t.default=n},47812:(e,t,o)=>{"use strict";var i=o(82397).f;e.exports=function(e,t,o){o in e||i(e,o,{configurable:!0,get:function(){return t[o]},set:function(e){t[o]=e}})}},47866:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115));t.ViewSize=class{constructor(){(0,s.default)(this,"currentSize",0),(0,s.default)(this,"nextSize",0),(0,s.default)(this,"currentOffset",0),(0,s.default)(this,"nextOffset",0)}setSize(e){this.currentSize=this.nextSize,this.nextSize=e}setOffset(e){this.currentOffset=this.nextOffset,this.nextOffset=e}}},47920:(e,t,o)=>{"use strict";t.__esModule=!0,o(81396),o(14618);var i=o(76651),s=o(78437),n=o(21797);t.default=class{constructor(e,t,o,i,s){this.dataAccessObject=e,this.wot=e.wot,this.instance=this.wot,this.domBindings=t,this.wtSettings=o,this.wtTable=s,this.oversizedRows=[],this.oversizedColumnHeaders=[],this.hasOversizedColumnHeadersMarked={},this.clientHeight=0,this.rowHeaderWidth=NaN,this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,this.rowsCalculatorTypes=new Map([["rendered",()=>this.wtSettings.getSetting("renderAllRows")?new n.RenderedAllRowsCalculationType:new n.RenderedRowsCalculationType],["fullyVisible",()=>new n.FullyVisibleRowsCalculationType],["partiallyVisible",()=>new n.PartiallyVisibleRowsCalculationType]]),this.columnsCalculatorTypes=new Map([["rendered",()=>this.wtSettings.getSetting("renderAllColumns")?new n.RenderedAllColumnsCalculationType:new n.RenderedColumnsCalculationType],["fullyVisible",()=>new n.FullyVisibleColumnsCalculationType],["partiallyVisible",()=>new n.PartiallyVisibleColumnsCalculationType]]),this.eventManager=i,this.eventManager.addEventListener(this.domBindings.rootWindow,"resize",()=>{this.clientHeight=this.getWorkspaceHeight()})}getWorkspaceHeight(){const e=this.domBindings.rootDocument,t=this.dataAccessObject.topOverlayTrimmingContainer;let o=0;if(t===this.domBindings.rootWindow)o=e.documentElement.clientHeight;else{o=(0,i.outerHeight)(t)>0&&t.clientHeight>0?t.clientHeight:1/0}return o}getViewportHeight(){let e=this.getWorkspaceHeight();if(e===1/0)return e;const t=this.getColumnHeaderHeight();return t>0&&(e-=t),e}getWorkspaceWidth(){const{rootDocument:e,rootWindow:t}=this.domBindings,o=this.dataAccessObject.inlineStartOverlayTrimmingContainer;let i;if(o===t){const t=this.wtSettings.getSetting("totalColumns");i=this.wtTable.holder.offsetWidth,this.getRowHeaderWidth()+this.sumColumnWidths(0,t)>i&&(i=e.documentElement.clientWidth)}else i=o.clientWidth;return i}getViewportWidth(){const e=this.getWorkspaceWidth();if(e===1/0)return e;const t=this.getRowHeaderWidth();return t>0?e-t:e}hasVerticalScroll(){if(this.isVerticallyScrollableByWindow()){const e=this.domBindings.rootDocument.documentElement;return e.scrollHeight>e.clientHeight}const{holder:e,hider:t}=this.wtTable,o=e.clientHeight,i=t.offsetHeight;return o<i||i>this.getWorkspaceHeight()}hasHorizontalScroll(){if(this.isVerticallyScrollableByWindow()){const e=this.domBindings.rootDocument.documentElement;return e.scrollWidth>e.clientWidth}const{hider:e}=this.wtTable,t=e.offsetWidth,o=this.hasVerticalScroll()?(0,i.getScrollbarWidth)():0;return t>this.getWorkspaceWidth()-o}isVerticallyScrollableByWindow(){return this.dataAccessObject.topOverlayTrimmingContainer===this.domBindings.rootWindow}isHorizontallyScrollableByWindow(){return this.dataAccessObject.inlineStartOverlayTrimmingContainer===this.domBindings.rootWindow}sumColumnWidths(e,t){let o=0,i=e;for(;i<t;)o+=this.wtTable.getColumnWidth(i),i+=1;return o}getWorkspaceOffset(){return(0,i.offset)(this.wtTable.holder)}getColumnHeaderHeight(){return this.wtSettings.getSetting("columnHeaders").length?isNaN(this.columnHeaderHeight)&&(this.columnHeaderHeight=(0,i.outerHeight)(this.wtTable.THEAD)):this.columnHeaderHeight=0,this.columnHeaderHeight}getRowHeaderWidth(){const e=this.wtSettings.getSetting("rowHeaderWidth"),t=this.wtSettings.getSetting("rowHeaders");if(e){this.rowHeaderWidth=0;for(let o=0,i=t.length;o<i;o++)this.rowHeaderWidth+=e[o]||e}if(isNaN(this.rowHeaderWidth))if(t.length){let e=this.wtTable.TABLE.querySelector("TH");this.rowHeaderWidth=0;for(let o=0,s=t.length;o<s;o++)e?(this.rowHeaderWidth+=(0,i.outerWidth)(e),e=e.nextSibling):this.rowHeaderWidth+=50}else this.rowHeaderWidth=0;return this.rowHeaderWidth=this.wtSettings.getSetting("onModifyRowHeaderWidth",this.rowHeaderWidth)||this.rowHeaderWidth,this.rowHeaderWidth}createRowsCalculator(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["rendered","fullyVisible","partiallyVisible"];const{wtSettings:t,wtTable:o}=this;let s,r,a=this.getViewportHeight();this.rowHeaderWidth=NaN;let l=this.dataAccessObject.topScrollPosition-this.dataAccessObject.topParentOffset;const h=t.getSetting("fixedRowsTop"),c=t.getSetting("fixedRowsBottom"),u=t.getSetting("totalRows");return h&&l>=0&&(r=this.dataAccessObject.topOverlay.sumCellSizes(0,h),l+=r,a-=r),c&&this.dataAccessObject.bottomOverlay.clone&&(r=this.dataAccessObject.bottomOverlay.sumCellSizes(u-c,u),a-=r),s=o.holder.clientHeight===o.holder.offsetHeight?0:(0,i.getScrollbarWidth)(this.domBindings.rootDocument),new n.ViewportRowsCalculator({calculationTypes:e.map(e=>[e,this.rowsCalculatorTypes.get(e)()]),viewportHeight:a,scrollOffset:l,totalRows:t.getSetting("totalRows"),defaultRowHeight:t.getSetting("stylesHandler").getDefaultRowHeight(),rowHeightFn:e=>o.getRowHeight(e),overrideFn:t.getSettingPure("viewportRowCalculatorOverride"),horizontalScrollbarHeight:s})}createColumnsCalculator(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["rendered","fullyVisible","partiallyVisible"];const{wtSettings:t,wtTable:o}=this;let s=this.getViewportWidth(),r=Math.abs(this.dataAccessObject.inlineStartScrollPosition)-this.dataAccessObject.inlineStartParentOffset;this.columnHeaderHeight=NaN;const a=t.getSetting("fixedColumnsStart");if(a&&r>=0){const e=this.dataAccessObject.inlineStartOverlay.sumCellSizes(0,a);r+=e,s-=e}return o.holder.clientWidth!==o.holder.offsetWidth&&(s-=(0,i.getScrollbarWidth)(this.domBindings.rootDocument)),new n.ViewportColumnsCalculator({calculationTypes:e.map(e=>[e,this.columnsCalculatorTypes.get(e)()]),viewportWidth:s,scrollOffset:r,totalColumns:t.getSetting("totalColumns"),columnWidthFn:e=>o.getColumnWidth(e),overrideFn:t.getSettingPure("viewportColumnCalculatorOverride"),inlineStartOffset:this.dataAccessObject.inlineStartParentOffset})}createCalculators(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{wtSettings:t}=this,o=this.createRowsCalculator(),i=this.createColumnsCalculator();if(e&&!t.getSetting("renderAllRows")){const t=o.getResultsFor("fullyVisible"),i=o.getResultsFor("partiallyVisible");e=this.areAllProposedVisibleRowsAlreadyRendered(t,i)}if(e&&!t.getSetting("renderAllColumns")){const t=i.getResultsFor("fullyVisible"),o=i.getResultsFor("partiallyVisible");e=this.areAllProposedVisibleColumnsAlreadyRendered(t,o)}return e||(this.rowsRenderCalculator=o.getResultsFor("rendered"),this.columnsRenderCalculator=i.getResultsFor("rendered")),this.rowsVisibleCalculator=o.getResultsFor("fullyVisible"),this.columnsVisibleCalculator=i.getResultsFor("fullyVisible"),this.rowsPartiallyVisibleCalculator=o.getResultsFor("partiallyVisible"),this.columnsPartiallyVisibleCalculator=i.getResultsFor("partiallyVisible"),e}createVisibleCalculators(){const e=this.createRowsCalculator(["fullyVisible","partiallyVisible"]),t=this.createColumnsCalculator(["fullyVisible","partiallyVisible"]);this.rowsVisibleCalculator=e.getResultsFor("fullyVisible"),this.columnsVisibleCalculator=t.getResultsFor("fullyVisible"),this.rowsPartiallyVisibleCalculator=e.getResultsFor("partiallyVisible"),this.columnsPartiallyVisibleCalculator=t.getResultsFor("partiallyVisible")}areAllProposedVisibleRowsAlreadyRendered(e,t){if(!this.rowsVisibleCalculator)return!1;let{startRow:o,endRow:i}=e;const{startRow:s,endRow:n}=t;if(null===o&&null===i){if(!e.isVisibleInTrimmingContainer&&!this.wtTable.isRowBeforeRenderedRows(s)&&!this.wtTable.isRowAfterRenderedRows(n))return!0;o=s,i=n}const{startRow:r,endRow:a,rowStartOffset:l,rowEndOffset:h}=this.rowsRenderCalculator,c=this.wtSettings.getSetting("totalRows")-1,u=this.wtSettings.getSetting("viewportRowRenderingThreshold");return Number.isInteger(u)&&u>0?(o=Math.max(0,o-Math.min(l,u)),i=Math.min(c,i+Math.min(h,u))):"auto"===u&&(o=Math.max(0,o-Math.ceil(l/2)),i=Math.min(c,i+Math.ceil(h/2))),!(o<r||o===r&&o>0)&&!(i>a||i===a&&i<c)}areAllProposedVisibleColumnsAlreadyRendered(e,t){if(!this.columnsVisibleCalculator)return!1;let{startColumn:o,endColumn:i}=e;const{startColumn:s,endColumn:n}=t;if(null===o&&null===i){if(!e.isVisibleInTrimmingContainer&&!this.wtTable.isColumnBeforeRenderedColumns(s)&&!this.wtTable.isColumnAfterRenderedColumns(n))return!0;o=s,i=n}const{startColumn:r,endColumn:a,columnStartOffset:l,columnEndOffset:h}=this.columnsRenderCalculator,c=this.wtSettings.getSetting("totalColumns")-1,u=this.wtSettings.getSetting("viewportColumnRenderingThreshold");return Number.isInteger(u)&&u>0?(o=Math.max(0,o-Math.min(l,u)),i=Math.min(c,i+Math.min(h,u))):"auto"===u&&(o=Math.max(0,o-Math.ceil(l/2)),i=Math.min(c,i+Math.ceil(h/2))),!(o<r||o===r&&o>0)&&!(i>a||i===a&&i<c)}resetHasOversizedColumnHeadersMarked(){(0,s.objectEach)(this.hasOversizedColumnHeadersMarked,(e,t,o)=>{o[t]=void 0})}}},48237:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(654);var s=i(o(72123)),n=o(74125),r=o(59195),a=o(97819),l=o(95820),h=o(9041),c=o(730),u=o(95220),d=o(24496);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="20/11/2025 13:06:47",g.version="16.2.0-next-bf17104-20251120",g.languages={dictionaryKeys:l.dictionaryKeys,getLanguageDictionary:l.getLanguageDictionary,getLanguagesDictionaries:l.getLanguagesDictionaries,registerLanguageDictionary:l.registerLanguageDictionary,getTranslatedPhrase:l.getTranslatedPhrase};t.default=g},48442:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(81124),o(88633),o(14618),o(39716);var s=i(o(81115)),n=o(42479),r=o(97819),a=i(o(13434)),l=i(o(65725)),h=i(o(88226)),c=i(o(97100)),u=i(o(27323)),d=o(94857),g=o(78437),f=o(49581),p=o(58639),m=o(76651),w=o(12108),C=o(59375),v=o(85180),y=o(57806);function S(e,t,o){E(e,t),t.set(e,o)}function E(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function R(e,t,o){return e.set(_(e,t),o),o}function b(e,t){return e.get(_(e,t))}function _(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}r.Hooks.getSingleton().register("beforeMergeCells"),r.Hooks.getSingleton().register("afterMergeCells"),r.Hooks.getSingleton().register("beforeUnmergeCells"),r.Hooks.getSingleton().register("afterUnmergeCells");const T=t.PLUGIN_KEY="mergeCells",M=t.PLUGIN_PRIORITY=150,I=T;var O=new WeakMap,A=new WeakMap,N=new WeakMap,P=new WeakMap,H=new WeakSet;class x extends n.BasePlugin{constructor(){var e,t;super(...arguments),E(e=this,t=H),t.add(e),(0,s.default)(this,"mergedCellsCollection",null),(0,s.default)(this,"autofillCalculations",null),(0,s.default)(this,"selectionCalculations",null),S(this,O,null),S(this,A,{row:0,col:0}),S(this,N,new C.FocusOrder({mergedCellsGetter:(e,t)=>this.mergedCellsCollection.get(e,t),rowIndexMapper:this.hot.rowIndexMapper,columnIndexMapper:this.hot.columnIndexMapper})),S(this,P,(0,v.createMergeCellRenderer)(this))}static get PLUGIN_KEY(){return T}static get PLUGIN_PRIORITY(){return M}static get DEFAULT_SETTINGS(){return{[n.defaultMainSettingSymbol]:"cells",virtualized:!1,cells:[]}}isEnabled(){return!!this.hot.getSettings()[T]}enablePlugin(){var e=this;this.enabled||(this.mergedCellsCollection=new a.default(this),this.autofillCalculations=new h.default(this),this.selectionCalculations=new c.default(this),this.addHook("afterInit",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,k).call(e,...o)}),this.addHook("modifyTransformFocus",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,L).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 _(H,e,V).call(e,...o)}),this.addHook("modifyTransformEnd",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,W).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 _(H,e,F).call(e,...o)}),this.addHook("beforeSetRangeStart",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,Y).call(e,...o)}),this.addHook("beforeSetRangeStartOnly",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,Y).call(e,...o)}),this.addHook("beforeSelectionFocusSet",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,j).call(e,...o)}),this.addHook("afterSelectionFocusSet",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,G).call(e,...o)}),this.addHook("afterSelectionEnd",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,z).call(e,...o)}),this.addHook("modifyGetCellCoords",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,B).call(e,...o)}),this.addHook("modifyGetCoordsElement",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,B).call(e,...o)}),this.addHook("afterIsMultipleSelection",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,D).call(e,...o)}),this.addHook("afterRenderer",function(){return b(P,e).after(...arguments)}),this.addHook("afterContextMenuDefaultOptions",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,U).call(e,...o)}),this.addHook("afterGetCellMeta",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,$).call(e,...o)}),this.addHook("afterViewportRowCalculatorOverride",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,K).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 _(H,e,X).call(e,...o)}),this.addHook("modifyAutofillRange",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,q).call(e,...o)}),this.addHook("afterCreateCol",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,Q).call(e,...o)}),this.addHook("afterRemoveCol",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,J).call(e,...o)}),this.addHook("afterCreateRow",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,Z).call(e,...o)}),this.addHook("afterRemoveRow",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,ee).call(e,...o)}),this.addHook("afterChange",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,te).call(e,...o)}),this.addHook("beforeDrawBorders",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,oe).call(e,...o)}),this.addHook("afterDrawSelection",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,ie).call(e,...o)}),this.addHook("beforeRemoveCellClassNames",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,se).call(e,...o)}),this.addHook("beforeBeginEditing",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,ne).call(e,...o)}),this.addHook("modifyRowHeightByOverlayName",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,re).call(e,...o)}),this.addHook("beforeUndoStackChange",(e,t)=>{if("MergeCells"===t)return!1}),this.registerShortcuts(),super.enablePlugin())}disablePlugin(){this.clearCollections(),this.unregisterShortcuts(),this.hot.render(),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.generateFromSettings(),super.updatePlugin()}ifChromeForceRepaint(){if(!(0,w.isChrome)())return;const e=[];let t=[];this.mergedCellsCollection.mergedCells.forEach(e=>{const{row:o,rowspan:i}=e;for(let e=o+1;e<o+i;e++)t.push(e)}),t=[...new Set(t)],t.forEach(t=>{const o=this.hot.rowIndexMapper.getRenderableFromVisualIndex(t);this.hot.view._wt.wtOverlays.getOverlays(!0).map(e=>"master"===(null==e?void 0:e.name)?e:e.clone.wtTable).forEach(t=>{const i=t.getRow(o);i&&(i.style.background=(0,m.getStyle)(i,"backgroundColor").replace(")",", 0.99)"),e.push(i))})}),this.hot._registerTimeout(()=>{e.forEach(e=>{var t;e.style.background=null===(t=(0,m.getStyle)(e,"backgroundColor"))||void 0===t?void 0:t.replace(", 0.99)",")")})},1)}validateSetting(e){return!!e&&(l.default.containsNegativeValues(e)?((0,f.warn)(l.default.NEGATIVE_VALUES_WARNING(e)),!1):l.default.isOutOfBounds(e,this.hot.countRows(),this.hot.countCols())?((0,f.warn)(l.default.IS_OUT_OF_BOUNDS_WARNING(e)),!1):l.default.isSingleCell(e)?((0,f.warn)(l.default.IS_SINGLE_CELL(e)),!1):!l.default.containsZeroSpan(e)||((0,f.warn)(l.default.ZERO_SPAN_WARNING(e)),!1))}generateFromSettings(){const e=this.getSetting("cells").filter(e=>this.validateSetting(e)),t=this.mergedCellsCollection.filterOverlappingMergeCells(e),o=[];t.forEach(e=>{const{row:t,col:i,rowspan:s,colspan:n}=e,r=this.hot._createCellCoords(t,i),a=this.hot._createCellCoords(t+s-1,i+n-1),l=this.hot._createCellRange(r,r,a);this.mergeRange(l,!0,!0);for(let e=t;e<t+s;e++)for(let s=i;s<i+n;s++)e===t&&s===i||o.push([e,s,null])}),0!==o.length&&this.hot.setDataAtCell(o,void 0,void 0,this.pluginName)}clearCollections(){this.mergedCellsCollection.clear()}canMergeRange(e){return!!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])||this.validateSetting(e)}mergeSelection(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeActive();if(!e)return;e.setDirection(this.hot.isRtl()?"NE-SW":"NW-SE");const{from:t,to:o}=e;this.unmergeRange(e,!0),this.mergeRange(e),this.hot.selectCell(t.row,t.col,o.row,o.col,!1)}unmergeSelection(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeActive();if(!e)return;const{from:t,to:o}=e;this.unmergeRange(e,!0),this.hot.selectCell(t.row,t.col,o.row,o.col,!1)}mergeRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const i=e.getTopStartCorner(),s=e.getBottomEndCorner(),n={row:i.row,col:i.col,rowspan:s.row-i.row+1,colspan:s.col-i.col+1},r=[];let a=null;if(!this.canMergeRange(n,t))return!1;this.hot.runHooks("beforeMergeCells",e,t),(0,p.rangeEach)(0,n.rowspan-1,e=>{(0,p.rangeEach)(0,n.colspan-1,t=>{let o=null;r[e]||(r[e]=[]),0===e&&0===t?o=this.hot.getSourceDataAtCell(this.hot.toPhysicalRow(n.row),this.hot.toPhysicalColumn(n.col)):this.hot.setCellMeta(n.row+e,n.col+t,"hidden",!0),r[e][t]=o})}),this.hot.setCellMeta(n.row,n.col,"spanned",!0);return!this.mergedCellsCollection.add(n,t)||(o?a=[n.row,n.col,r]:this.hot.populateFromArray(n.row,n.col,r,void 0,void 0,this.pluginName),t||this.ifChromeForceRepaint(),this.hot.runHooks("afterMergeCells",e,n,t),a)}unmergeRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=this.mergedCellsCollection.getWithinRange(e);0!==o.length&&(this.hot.runHooks("beforeUnmergeCells",e,t),(0,d.arrayEach)(o,e=>{this.mergedCellsCollection.remove(e.row,e.col),(0,p.rangeEach)(0,e.rowspan-1,t=>{(0,p.rangeEach)(0,e.colspan-1,o=>{this.hot.removeCellMeta(e.row+t,e.col+o,"hidden"),this.hot.removeCellMeta(e.row+t,e.col+o,"copyable")})}),this.hot.removeCellMeta(e.row,e.col,"spanned")}),this.hot.runHooks("afterUnmergeCells",e,t),this.hot.render())}toggleMerge(e){const{from:t,to:o}=e.clone().normalize(),i=this.mergedCellsCollection.get(t.row,t.col);i.row===t.row&&i.col===t.col&&i.row+i.rowspan-1===o.row&&i.col+i.colspan-1===o.col?this.unmergeRange(e):this.mergeSelection(e)}merge(e,t,o,i){const s=this.hot._createCellCoords(e,t),n=this.hot._createCellCoords(o,i);this.mergeRange(this.hot._createCellRange(s,s,n))}unmerge(e,t,o,i){const s=this.hot._createCellCoords(e,t),n=this.hot._createCellCoords(o,i);this.unmergeRange(this.hot._createCellRange(s,s,n))}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Control","m"]],callback:()=>{const e=this.hot.getSelectedRangeActive();e&&!e.isSingleHeader()&&(this.toggleMerge(e),this.hot.render())},runOnlyIf:e=>!e.altKey,group:I})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(I)}modifyViewportRowStart(e,t){const o=this.hot.rowIndexMapper,i=o.getVisualFromRenderableIndex(e.startRow);for(let s=0;s<t;s+=1){const n=this.mergedCellsCollection.get(i,s);if((0,g.isObject)(n)){const i=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(n.row,1));if(i<e.startRow)return e.startRow=i,void this.modifyViewportRowStart(e,t)}}}modifyViewportRowEnd(e,t){const o=this.hot.rowIndexMapper,i=o.getVisualFromRenderableIndex(e.endRow);for(let s=0;s<t;s+=1){const n=this.mergedCellsCollection.get(i,s);if((0,g.isObject)(n)){const i=n.row+n.rowspan-1,s=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(i,-1));if(s>e.endRow)return e.endRow=s,void this.modifyViewportRowEnd(e,t)}}}modifyViewportColumnStart(e,t){const o=this.hot.columnIndexMapper,i=o.getVisualFromRenderableIndex(e.startColumn);for(let s=0;s<t;s+=1){const n=this.mergedCellsCollection.get(s,i);if((0,g.isObject)(n)){const i=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(n.col,1));if(i<e.startColumn)return e.startColumn=i,void this.modifyViewportColumnStart(e,t)}}}modifyViewportColumnEnd(e,t){const o=this.hot.columnIndexMapper,i=o.getVisualFromRenderableIndex(e.endColumn);for(let s=0;s<t;s+=1){const n=this.mergedCellsCollection.get(s,i);if((0,g.isObject)(n)){const i=n.col+n.colspan-1,s=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(i,-1));if(s>e.endColumn)return e.endColumn=s,void this.modifyViewportColumnEnd(e,t)}}}translateMergedCellToRenderable(e,t,o,i){const{rowIndexMapper:s,columnIndexMapper:n}=this.hot;let r,a;r=0===t?s.getNearestNotHiddenIndex(e,1):s.getNearestNotHiddenIndex(e+t-1,-1),a=0===i?n.getNearestNotHiddenIndex(o,1):n.getNearestNotHiddenIndex(o+i-1,-1);return[e>=0?s.getRenderableFromVisualIndex(r):e,o>=0?n.getRenderableFromVisualIndex(a):o]}}function k(){this.generateFromSettings(),this.hot.render()}function D(e){if(e){const e=this.mergedCellsCollection.mergedCells,t=this.hot.getSelectedRangeActive(),o=t.getTopStartCorner(),i=t.getBottomEndCorner();for(let t=0;t<e.length;t+=1)if(o.row===e[t].row&&o.col===e[t].col&&i.row===e[t].row+e[t].rowspan-1&&i.col===e[t].col+e[t].colspan-1)return!1}return e}function L(e){b(A,this).row=e.row,b(A,this).col=e.col}function V(e){const t=this.hot.getSelectedRangeActive(),{highlight:o}=t,{columnIndexMapper:i,rowIndexMapper:s}=this.hot;b(O,this)&&(null!==s.getRenderableFromVisualIndex(b(O,this).row)&&(o.row=b(O,this).row),null!==i.getRenderableFromVisualIndex(b(O,this).col)&&(o.col=b(O,this).col),R(O,this,null));const n=this.mergedCellsCollection.get(o.row,o.col);if(!n)return;const r=n.col,a=n.col+n.colspan-1;if(e.col<0){const t=o.col>=r&&o.col<=a?r-1:a,s=i.getNearestNotHiddenIndex(t,-1);e.col=null===s?-this.hot.view.countRenderableColumnsInRange(0,o.col):-Math.max(this.hot.view.countRenderableColumnsInRange(s,o.col)-1,1)}else if(e.col>0){const t=o.col>=r&&o.col<=a?a+1:r,s=i.getNearestNotHiddenIndex(t,1);e.col=null===s?this.hot.view.countRenderableColumnsInRange(o.col,this.hot.countCols()):Math.max(this.hot.view.countRenderableColumnsInRange(o.col,s)-1,1)}const l=n.row,h=n.row+n.rowspan-1;if(e.row<0){const t=o.row>=l&&o.row<=h?l-1:h,i=s.getNearestNotHiddenIndex(t,-1);e.row=null===i?-this.hot.view.countRenderableRowsInRange(0,o.row):-Math.max(this.hot.view.countRenderableRowsInRange(i,o.row)-1,1)}else if(e.row>0){const t=o.row>=l&&o.row<=h?h+1:l,i=s.getNearestNotHiddenIndex(t,1);e.row=null===i?this.hot.view.countRenderableRowsInRange(o.row,this.hot.countRows()):Math.max(this.hot.view.countRenderableRowsInRange(o.row,i)-1,1)}}function W(e){const t=this.hot.getSelectedRangeActive(),o=t.clone(),{to:i}=t,{columnIndexMapper:s,rowIndexMapper:n}=this.hot,r=(e,t)=>{o.expand(this.hot._createCellCoords(e,t));for(let e=0;e<this.mergedCellsCollection.mergedCells.length;e+=1)o.expandByRange(this.mergedCellsCollection.mergedCells[e].getRange())};if(e.col<0){let n=this.mergedCellsCollection.getStartMostColumnIndex(t,i.col)+e.col;r(i.row,n),"E-W"===t.getHorizontalDirection()&&"E-W"===o.getHorizontalDirection()&&(n=o.getTopStartCorner().col);const a=s.getNearestNotHiddenIndex(n,1);null!==a&&(e.col=-Math.max(this.hot.view.countRenderableColumnsInRange(a,i.col)-1,1))}else if(e.col>0){let n=this.mergedCellsCollection.getEndMostColumnIndex(t,i.col)+e.col;r(i.row,n),"W-E"===t.getHorizontalDirection()&&"W-E"===o.getHorizontalDirection()&&(n=o.getBottomEndCorner().col);const a=s.getNearestNotHiddenIndex(n,-1);null!==a&&(e.col=Math.max(this.hot.view.countRenderableColumnsInRange(i.col,a)-1,1))}if(e.row<0){let s=this.mergedCellsCollection.getTopMostRowIndex(t,i.row)+e.row;r(s,i.col),"S-N"===t.getVerticalDirection()&&"S-N"===o.getVerticalDirection()&&(s=o.getTopStartCorner().row);const a=n.getNearestNotHiddenIndex(s,1);null!==a&&(e.row=-Math.max(this.hot.view.countRenderableRowsInRange(a,i.row)-1,1))}else if(e.row>0){let s=this.mergedCellsCollection.getBottomMostRowIndex(t,i.row)+e.row;r(s,i.col),"N-S"===t.getVerticalDirection()&&"N-S"===o.getVerticalDirection()&&(s=o.getBottomStartCorner().row);const a=n.getNearestNotHiddenIndex(s,-1);null!==a&&(e.row=Math.max(this.hot.view.countRenderableRowsInRange(i.row,a)-1,1))}}function F(){const e=this.hot.getSelectedRangeLast(),{highlight:t}=e;if(this.hot.selection.isSelectedByColumnHeader()||this.hot.selection.isSelectedByRowHeader())return void R(O,this,t.clone());for(let t=0;t<this.mergedCellsCollection.mergedCells.length;t+=1)e.expandByRange(this.mergedCellsCollection.mergedCells[t].getRange(),!1);for(let t=0;t<this.mergedCellsCollection.mergedCells.length;t+=1)e.expandByRange(this.mergedCellsCollection.mergedCells[t].getRange(),!1);const o=this.mergedCellsCollection.get(t.row,t.col);R(O,this,t.clone()),o&&t.assign(o)}function B(e,t,o,i){if(e<0||t<0)return;const s=this.mergedCellsCollection.get(e,t);if(!s)return;const{row:n,col:r,colspan:a,rowspan:l}=s,h=n,c=r,u=n+l-1,d=r+a-1;if("render"===i&&this.getSetting("virtualized")){const e=this.hot.view.getActiveOverlayName(),t=["top","top_inline_start_corner"].includes(e)?0:this.hot.getFirstRenderedVisibleRow(),o=["inline_start","top_inline_start_corner","bottom_inline_start_corner"].includes(e)?0:this.hot.getFirstRenderedVisibleColumn();return[(0,p.clamp)(t,h,u),(0,p.clamp)(o,c,d),(0,p.clamp)(this.hot.getLastRenderedVisibleRow(),h,u),(0,p.clamp)(this.hot.getLastRenderedVisibleColumn(),c,d)]}return[h,c,u,d]}function U(e){e.items.push({name:"---------"},(0,u.default)(this))}function Y(){R(O,this,null)}function j(){if(b(O,this).isCell())return;const e=this.hot.getSelectedRangeActive(),t=e.getVerticalDirection(),o=e.getHorizontalDirection(),i=b(O,this).clone().normalize();b(N,this).setActiveNode(i.row,i.col),b(A,this).row>0||b(A,this).col>0?b(N,this).setPrevNodeAsActive():("E-W"===o&&b(A,this).col<0||"S-N"===t&&b(A,this).row<0)&&b(N,this).setNextNodeAsActive()}function G(e,t){const{columnIndexMapper:o,rowIndexMapper:i}=this.hot;let s=this.hot.getActiveSelectionLayerIndex(),n=null,r=null;if(b(A,this).col<0){const{rowEnd:e,colEnd:t,selectionLayer:a}=b(N,this).getPrevHorizontalNode();r=o.getNearestNotHiddenIndex(t,-1),n=i.getNearestNotHiddenIndex(e,-1),s=a}else if(b(A,this).col>0){const{rowStart:e,colStart:t,selectionLayer:a}=b(N,this).getNextHorizontalNode();r=o.getNearestNotHiddenIndex(t,1),n=i.getNearestNotHiddenIndex(e,1),s=a}else if(b(A,this).row<0){const{rowEnd:e,colEnd:t,selectionLayer:a}=b(N,this).getPrevVerticalNode();r=o.getNearestNotHiddenIndex(t,-1),n=i.getNearestNotHiddenIndex(e,-1),s=a}else if(b(A,this).row>0){const{rowStart:e,colStart:t,selectionLayer:a}=b(N,this).getNextVerticalNode();r=o.getNearestNotHiddenIndex(t,1),n=i.getNearestNotHiddenIndex(e,1),s=a}if(null!==n||null!==r){this.hot.selection.setActiveSelectionLayerIndex(s);const o=this.hot.getSelectedRangeActive(),i=this.hot._createCellCoords(n,r),a=this.mergedCellsCollection.get(i.row,i.col),l=this.hot.selection.highlight.getFocus();e=i.row,t=i.col,a?o.highlight.assign({row:this.hot.rowIndexMapper.getNearestNotHiddenIndex(a.row,1),col:this.hot.columnIndexMapper.getNearestNotHiddenIndex(a.col,1)}):o.highlight.assign(i),l.clear(),l.add(i).commit()}b(N,this).setActiveNode(e,t,s),R(A,this,{row:0,col:0})}function z(){b(N,this).buildFocusOrder(this.hot.getSelectedRange())}function $(e,t,o){const i=this.mergedCellsCollection.get(e,t);i&&(i.row!==e||i.col!==t?o.copyable=!1:(o.rowspan=i.rowspan,o.colspan=i.colspan))}function K(e){if(this.getSetting("virtualized"))return;const t=this.hot.countCols();this.modifyViewportRowStart(e,t),this.modifyViewportRowEnd(e,t)}function X(e){if(this.getSetting("virtualized"))return;const t=this.hot.countRows();this.modifyViewportColumnStart(e,t),this.modifyViewportColumnEnd(e,t)}function q(e,t){const o=this.autofillCalculations.getDirection(t,e);if(this.autofillCalculations.dragAreaOverlapsCollections(t,e,o))return t;const i=this.hot._createCellCoords(t[0],t[1]),s=this.hot._createCellCoords(t[2],t[3]),n=this.hot._createCellRange(i,i,s),r=this.mergedCellsCollection.getWithinRange(n);return 0===r.length?e:this.autofillCalculations.snapDragArea(t,e,o,r)}function Q(e,t){this.mergedCellsCollection.shiftCollections("right",e,t)}function J(e,t){this.mergedCellsCollection.shiftCollections("left",e,t)}function Z(e,t,o){"auto"!==o&&this.mergedCellsCollection.shiftCollections("down",e,t)}function ee(e,t){this.mergedCellsCollection.shiftCollections("up",e,t)}function te(e,t){"Autofill.fill"===t&&this.autofillCalculations.recreateAfterDataPopulation(e)}function oe(e,t){if(t&&"area"===t){const t=this.hot.getSelectedRangeActive(),o=this.mergedCellsCollection.getWithinRange(t);(0,d.arrayEach)(o,o=>{t.getBottomEndCorner().row===o.getLastRow()&&t.getBottomEndCorner().col===o.getLastColumn()&&(e[2]=o.row,e[3]=o.col)})}}function ie(e,t,o,i){if(o)return this.selectionCalculations.getSelectedMergedCellClassName(e,t,o,i)}function se(){return this.selectionCalculations.getSelectedMergedCellClassNameToRemove()}function ne(e,t,o,i){if(!(i instanceof MouseEvent))return;const s=this.hot.getSelectedRangeActive(),n=this.mergedCellsCollection.getByRange(s);if(!n)return;const r=this.hot._createCellCoords(n.row,n.col),a=this.hot._createCellCoords(n.row+n.rowspan-1,n.col+n.colspan-1);return 0===this.hot.selection.getLayerLevel()&&s.isEqual(this.hot._createCellRange(r,r,a))}function re(e,t,o){if(this.hot.getSettings().rowHeaders||"bottom"===o||"bottom_inline_start_corner"===o)return e;let i,s;if("master"===o)i=this.hot.getFirstRenderedVisibleColumn(),s=this.hot.getLastRenderedVisibleColumn();else{const e=this.hot.view.getOverlayByName(o);i=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e.clone.wtTable.getFirstRenderedColumn()),s=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e.clone.wtTable.getLastRenderedColumn())}if(!this.mergedCellsCollection.get(t,i))return e;const n=this.hot._createCellCoords(t,i),r=this.hot._createCellCoords(t,s),a=this.hot._createCellRange(n,n,r),l=this.mergedCellsCollection.getWithinRange(a,!0),h=l.reduce((e,t)=>{let{rowspan:o}=t;return Math.max(e,o)},1);let c=0;return l.length>1&&l[0].rowspan<h&&(c=h-l[0].rowspan),l.forEach(i=>{let{rowspan:s}=i,n=0;n="top"===o||"top_inline_start_corner"===o?Math.min(h,this.hot.view.countNotHiddenFixedRowsTop()-t):s-c,e=Math.max(null!=e?e:0,(0,y.sumCellsHeights)(this.hot,t,n))}),e}t.MergeCells=x},48446:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(39691),o(14618);var s=o(42479),n=o(76651),r=o(58639),a=o(94857),l=o(50151),h=o(97819),c=i(o(6307)),u=i(o(16026)),d=o(32435);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},48538:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115));o(22588),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(81124),o(14618),o(19874);var n=o(94857),r=o(52411),a=o(89195),l=i(o(86248)),h=o(78437),c=o(26599),u=o(54283);new Set;class d{constructor(){(0,s.default)(this,"indexesSequence",new r.IndexesSequence),(0,s.default)(this,"trimmingMapsCollection",new a.AggregatedCollection(e=>e.some(e=>!0===e),!1)),(0,s.default)(this,"hidingMapsCollection",new a.AggregatedCollection(e=>e.some(e=>!0===e),!1)),(0,s.default)(this,"variousMapsCollection",new a.MapCollection),(0,s.default)(this,"hidingChangesObservable",new u.ChangesObservable({initialIndexValue:!1})),(0,s.default)(this,"notTrimmedIndexesCache",[]),(0,s.default)(this,"notHiddenIndexesCache",[]),(0,s.default)(this,"isBatched",!1),(0,s.default)(this,"indexesSequenceChanged",!1),(0,s.default)(this,"indexesChangeSource",void 0),(0,s.default)(this,"trimmedIndexesChanged",!1),(0,s.default)(this,"hiddenIndexesChanged",!1),(0,s.default)(this,"renderablePhysicalIndexesCache",[]),(0,s.default)(this,"fromPhysicalToVisualIndexesCache",new Map),(0,s.default)(this,"fromVisualToRenderableIndexesCache",new Map),this.indexesSequence.addLocalHook("change",()=>{this.indexesSequenceChanged=!0,this.updateCache(),this.runLocalHooks("indexesSequenceChange",this.indexesChangeSource),this.runLocalHooks("change",this.indexesSequence,null)}),this.trimmingMapsCollection.addLocalHook("change",e=>{this.trimmedIndexesChanged=!0,this.updateCache(),this.runLocalHooks("change",e,this.trimmingMapsCollection)}),this.hidingMapsCollection.addLocalHook("change",e=>{this.hiddenIndexesChanged=!0,this.updateCache(),this.runLocalHooks("change",e,this.hidingMapsCollection)}),this.variousMapsCollection.addLocalHook("change",e=>{this.runLocalHooks("change",e,this.variousMapsCollection)})}suspendOperations(){this.isBatched=!0}resumeOperations(){this.isBatched=!1,this.updateCache()}createChangesObserver(e){if("hiding"!==e)throw new Error(`Unsupported index map type "${e}".`);return this.hidingChangesObservable.createObserver()}createAndRegisterIndexMap(e,t,o){return this.registerMap(e,(0,r.createIndexMap)(t,o))}registerMap(e,t){if(this.trimmingMapsCollection.get(e)||this.hidingMapsCollection.get(e)||this.variousMapsCollection.get(e))throw Error(`Map with name "${e}" has been already registered.`);t instanceof r.TrimmingMap?this.trimmingMapsCollection.register(e,t):t instanceof r.HidingMap?this.hidingMapsCollection.register(e,t):this.variousMapsCollection.register(e,t);const o=this.getNumberOfIndexes();return o>0&&t.init(o),t}unregisterMap(e){this.trimmingMapsCollection.unregister(e),this.hidingMapsCollection.unregister(e),this.variousMapsCollection.unregister(e)}unregisterAll(){this.trimmingMapsCollection.unregisterAll(),this.hidingMapsCollection.unregisterAll(),this.variousMapsCollection.unregisterAll()}getPhysicalFromVisualIndex(e){const t=this.notTrimmedIndexesCache[e];return(0,c.isDefined)(t)?t:null}getPhysicalFromRenderableIndex(e){const t=this.renderablePhysicalIndexesCache[e];return(0,c.isDefined)(t)?t:null}getVisualFromPhysicalIndex(e){const t=this.fromPhysicalToVisualIndexesCache.get(e);return(0,c.isDefined)(t)?t:null}getVisualFromRenderableIndex(e){return this.getVisualFromPhysicalIndex(this.getPhysicalFromRenderableIndex(e))}getRenderableFromVisualIndex(e){const t=this.fromVisualToRenderableIndexesCache.get(e);return(0,c.isDefined)(t)?t:null}getNearestNotHiddenIndex(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null===this.getPhysicalFromVisualIndex(e))return null;if(this.fromVisualToRenderableIndexesCache.has(e))return e;const i=Array.from(this.fromVisualToRenderableIndexesCache.keys());let s=-1;return s=t>0?i.findIndex(t=>t>e):i.reverse().findIndex(t=>t<e),-1===s?o?this.getNearestNotHiddenIndex(e,-t,!1):null:i[s]}initToLength(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getNumberOfIndexes();this.notTrimmedIndexesCache=[...new Array(e).keys()],this.notHiddenIndexesCache=[...new Array(e).keys()],this.suspendOperations(),this.indexesChangeSource="init",this.indexesSequence.init(e),this.indexesChangeSource=void 0,this.trimmingMapsCollection.initEvery(e),this.resumeOperations(),this.suspendOperations(),this.hidingMapsCollection.initEvery(e),this.variousMapsCollection.initEvery(e),this.resumeOperations(),this.runLocalHooks("init")}fitToLength(e){const t=this.getNumberOfIndexes();if(e<t){const t=[...Array(this.getNumberOfIndexes()-e).keys()].map(t=>t+e);this.removeIndexes(t)}else this.insertIndexes(t,e-t)}getIndexesSequence(){return this.indexesSequence.getValues()}setIndexesSequence(e){void 0===this.indexesChangeSource&&(this.indexesChangeSource="update"),this.indexesSequence.setValues(e),"update"===this.indexesChangeSource&&(this.indexesChangeSource=void 0)}getNotTrimmedIndexes(){if(!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]))return this.notTrimmedIndexesCache;return this.getIndexesSequence().filter(e=>!1===this.isTrimmed(e))}getNotTrimmedIndexesLength(){return this.getNotTrimmedIndexes().length}getNotHiddenIndexes(){if(!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]))return this.notHiddenIndexesCache;return this.getIndexesSequence().filter(e=>!1===this.isHidden(e))}getNotHiddenIndexesLength(){return this.getNotHiddenIndexes().length}getRenderableIndexes(){if(!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]))return this.renderablePhysicalIndexesCache;return this.getNotTrimmedIndexes().filter(e=>!1===this.isHidden(e))}getRenderableIndexesLength(){return this.getRenderableIndexes().length}getNumberOfIndexes(){return this.getIndexesSequence().length}moveIndexes(e,t){"number"==typeof e&&(e=[e]);const o=(0,n.arrayMap)(e,e=>this.getPhysicalFromVisualIndex(e)),i=this.getNotTrimmedIndexesLength(),s=e.length,a=(0,r.getListWithRemovedItems)(this.getIndexesSequence(),o),l=a.filter(e=>!1===this.isTrimmed(e));let h=a.indexOf(l[l.length-1])+1;if(t+s<i){const e=l[t];h=a.indexOf(e)}this.indexesChangeSource="move",this.setIndexesSequence((0,r.getListWithInsertedItems)(a,h,o)),this.indexesChangeSource=void 0}isTrimmed(e){return this.trimmingMapsCollection.getMergedValueAtIndex(e)}isHidden(e){return this.hidingMapsCollection.getMergedValueAtIndex(e)}insertIndexes(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"start";const i=this.getNotTrimmedIndexes()[e],s=(0,c.isDefined)(i)?i:this.getNumberOfIndexes(),r=this.getIndexesSequence().includes(i)?this.getIndexesSequence().indexOf(i):this.getNumberOfIndexes(),a=(0,n.arrayMap)(new Array(t).fill(s),(e,t)=>e+t);this.suspendOperations(),this.indexesChangeSource="insert",this.indexesSequence.insert(r,a),this.indexesChangeSource=void 0;const l="end"===o?a.map(e=>e+1):a;this.trimmingMapsCollection.insertToEvery(r,l),this.hidingMapsCollection.insertToEvery(r,l),this.variousMapsCollection.insertToEvery(r,l),this.resumeOperations()}removeIndexes(e){this.suspendOperations(),this.indexesChangeSource="remove",this.indexesSequence.remove(e),this.indexesChangeSource=void 0,this.trimmingMapsCollection.removeFromEvery(e),this.hidingMapsCollection.removeFromEvery(e),this.variousMapsCollection.removeFromEvery(e),this.resumeOperations()}updateCache(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.indexesSequenceChanged||this.trimmedIndexesChanged||this.hiddenIndexesChanged;(!0===e||!1===this.isBatched&&!0===t)&&(this.trimmingMapsCollection.updateCache(),this.hidingMapsCollection.updateCache(),this.notTrimmedIndexesCache=this.getNotTrimmedIndexes(!1),this.notHiddenIndexesCache=this.getNotHiddenIndexes(!1),this.renderablePhysicalIndexesCache=this.getRenderableIndexes(!1),this.cacheFromPhysicalToVisualIndexes(),this.cacheFromVisualToRenderableIndexes(),this.hiddenIndexesChanged&&this.hidingChangesObservable.emit(this.hidingMapsCollection.getMergedValues()),this.runLocalHooks("cacheUpdated",{indexesSequenceChanged:this.indexesSequenceChanged,trimmedIndexesChanged:this.trimmedIndexesChanged,hiddenIndexesChanged:this.hiddenIndexesChanged}),this.indexesSequenceChanged=!1,this.trimmedIndexesChanged=!1,this.hiddenIndexesChanged=!1)}cacheFromPhysicalToVisualIndexes(){const e=this.getNotTrimmedIndexesLength();this.fromPhysicalToVisualIndexesCache.clear();for(let t=0;t<e;t+=1){const e=this.getPhysicalFromVisualIndex(t);this.fromPhysicalToVisualIndexesCache.set(e,t)}}cacheFromVisualToRenderableIndexes(){const e=this.getRenderableIndexesLength();this.fromVisualToRenderableIndexesCache.clear();for(let t=0;t<e;t+=1){const e=this.getPhysicalFromRenderableIndex(t),o=this.getVisualFromPhysicalIndex(e);this.fromVisualToRenderableIndexesCache.set(o,t)}}}t.IndexMapper=d,(0,h.mixin)(d,l.default)},48651:(e,t,o)=>{"use strict";var i=o(21375),s=String;e.exports=function(e){if("Symbol"===i(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},48744:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(93232);class r extends n.BaseAction{constructor(e){let{index:t,amount:o}=e;super("insert_row"),(0,s.default)(this,"index",void 0),(0,s.default)(this,"amount",void 0),this.index=t,this.amount=o}static startRegisteringEvents(e,t){e.addHook("afterCreateRow",(e,o,i)=>{t.done(()=>new r({index:e,amount:o}),i)})}undo(e,t){const o=e.countRows(),i=e.getSettings().minSpareRows;this.index>=o&&this.index-i<o&&(this.index-=i),e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",this.index,this.amount,"UndoRedo.undo")}redo(e,t){e.addHookOnce("afterCreateRow",t),e.alter("insert_row_above",this.index,this.amount,"UndoRedo.redo")}}t.CreateRowAction=r},49095:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(78437),r=o(84029);t.default=class{constructor(e){(0,s.default)(this,"meta",void 0);const t=e.getMetaConstructor();this.meta=new t}getMeta(){return this.meta}updateMeta(e){(0,n.extend)(this.meta,e),(0,r.extendByMetaType)(this.meta,e,e)}}},49146:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:r,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT)},disabled(){if(0===this.countRows()||0===this.countCols())return!0;const e=this.getSelectedRangeActive();return!e||(!!e.isSingleHeader()||!(this.getSelectedRange()&&!this.selection.isSelectedByCorner()))},submenu:{items:[{key:`${r}:left`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT)},callback(){const e=this.getSelectedRange(),t=(0,i.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="horizontal",s="htLeft";this.runHooks("beforeCellAlignment",t,e,o,s),(0,i.align)(e,o,s,(e,t)=>this.getCellMeta(e,t),(e,t,o,i)=>this.setCellMeta(e,t,o,i)),this.render()},disabled:!1},{key:`${r}:center`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER)},callback(){const e=this.getSelectedRange(),t=(0,i.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="horizontal",s="htCenter";this.runHooks("beforeCellAlignment",t,e,o,s),(0,i.align)(e,o,s,(e,t)=>this.getCellMeta(e,t),(e,t,o,i)=>this.setCellMeta(e,t,o,i)),this.render()},disabled:!1},{key:`${r}:right`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT)},callback(){const e=this.getSelectedRange(),t=(0,i.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="horizontal",s="htRight";this.runHooks("beforeCellAlignment",t,e,o,s),(0,i.align)(e,o,s,(e,t)=>this.getCellMeta(e,t),(e,t,o,i)=>this.setCellMeta(e,t,o,i)),this.render()},disabled:!1},{key:`${r}:justify`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY)},callback(){const e=this.getSelectedRange(),t=(0,i.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="horizontal",s="htJustify";this.runHooks("beforeCellAlignment",t,e,o,s),(0,i.align)(e,o,s,(e,t)=>this.getCellMeta(e,t),(e,t,o,i)=>this.setCellMeta(e,t,o,i)),this.render()},disabled:!1},{name:s.KEY},{key:`${r}:top`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_TOP)},callback(){const e=this.getSelectedRange(),t=(0,i.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="vertical",s="htTop";this.runHooks("beforeCellAlignment",t,e,o,s),(0,i.align)(e,o,s,(e,t)=>this.getCellMeta(e,t),(e,t,o,i)=>this.setCellMeta(e,t,o,i)),this.render()},disabled:!1},{key:`${r}:middle`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE)},callback(){const e=this.getSelectedRange(),t=(0,i.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="vertical",s="htMiddle";this.runHooks("beforeCellAlignment",t,e,o,s),(0,i.align)(e,o,s,(e,t)=>this.getCellMeta(e,t),(e,t,o,i)=>this.setCellMeta(e,t,o,i)),this.render()},disabled:!1},{key:`${r}:bottom`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM)},callback(){const e=this.getSelectedRange(),t=(0,i.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="vertical",s="htBottom";this.runHooks("beforeCellAlignment",t,e,o,s),(0,i.align)(e,o,s,(e,t)=>this.getCellMeta(e,t),(e,t,o,i)=>this.setCellMeta(e,t,o,i)),this.render()},disabled:!1}]}}};var i=o(32971),s=o(73192),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(8278));const r=t.KEY="alignment"},49262:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToRows",callback(e){const{selection:t}=e,{highlight:o,from:i,to:s}=e.getSelectedRangeActive();t.markSource("keyboard"),t.isSelectedByColumnHeader()?t.selectAll(!0,!0):e.selectRows(i.row,s.row,o),t.markEndSource()}}},49456:(e,t,o)=>{"use strict";var i=o(31884),s=o(84990).add,n=o(96938),r=o(29521),a=o(82719);e.exports=function(e){var t=i(this),o=r(e).getIterator(),l=n(t);return a(o,function(e){s(l,e)}),l}},49510:(e,t,o)=>{"use strict";var i=o(14326),s=o(24755),n=TypeError;e.exports=function(e){if(i(e))return e;throw new n(s(e)+" is not a function")}},49581:(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(26599)},49669:(e,t)=>{"use strict";t.__esModule=!0;t.SCOPE_TYPES=Object.freeze({INLINE:"inline",MODAL:"modal"}),t.FOCUS_SOURCES=Object.freeze({UNKNOWN:"unknown",CLICK:"click",TAB_FROM_ABOVE:"tab_from_above",TAB_FROM_BELOW:"tab_from_below"}),t.DEFAULT_SHORTCUTS_CONTEXT="grid"},49731:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(78437),r=o(84029),a=i(o(73652));const l=["data","width"];t.default=class{constructor(e){(0,s.default)(this,"globalMeta",void 0),(0,s.default)(this,"metas",new a.default(()=>this._createMeta())),this.globalMeta=e,this.metas=new a.default(()=>this._createMeta())}updateMeta(e,t){const o=this.getMeta(e);(0,n.extend)(o,t),(0,r.extendByMetaType)(o,t)}createColumn(e,t){this.metas.insert(e,t)}removeColumn(e,t){this.metas.remove(e,t)}getMeta(e){return this.metas.obtain(e)}getMetaConstructor(e){return this.metas.obtain(e).constructor}clearCache(){this.metas.clear()}_createMeta(){return(0,r.columnFactory)(this.globalMeta.getMetaConstructor(),l).prototype}}},49979:(e,t,o)=>{"use strict";var i=o(31884),s=o(84990).has,n=o(54230),r=o(29521),a=o(82719),l=o(13479);e.exports=function(e){var t=i(this),o=r(e);if(n(t)<o.size)return!1;var h=o.getIterator();return!1!==a(h,function(e){if(!s(t,e))return l(h,"normal",!1)})}},50148:(e,t,o)=>{"use strict";t.__esModule=!0,t.passwordRenderer=a;var i=o(28454),s=o(76651),n=o(58639);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},50151:(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(78437),s=w(o(49146));t.ALIGNMENT=s.KEY;var n=w(o(2224));t.CLEAR_COLUMN=n.KEY;var r=w(o(45272));t.COLUMN_LEFT=r.KEY;var a=w(o(77915));t.COLUMN_RIGHT=a.KEY;var l=w(o(59453));t.READ_ONLY=l.KEY;var h=w(o(62731));t.REDO=h.KEY;var c=w(o(63545));t.REMOVE_COLUMN=c.KEY;var u=w(o(97943));t.REMOVE_ROW=u.KEY;var d=w(o(7810));t.ROW_ABOVE=d.KEY;var g=w(o(32510));t.ROW_BELOW=g.KEY;var f=w(o(73192));t.SEPARATOR=f.KEY;var p=w(o(99038));t.NO_ITEMS=p.KEY;var m=w(o(81501));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}},51377:(e,t)=>{"use strict";t.__esModule=!0,t.parse=function(e){const t=[[""]];if(0===e.length)return t;let n,r=0,a=0;for(;e.length>0&&n!==e.length;)if(n=e.length,e.match(s))e=e.replace(s,""),r+=1,t[a][r]="";else if(e.match(o))e=e.replace(o,""),r=0,a+=1,t[a]=[""];else{let o="";if(e.startsWith('"')){let t=0,i=!0;for(;i;){const s=e.slice(0,1);'"'===s&&(t+=1),o+=s,(0===(e=e.slice(1)).length||e.match(/^[\t\r\n]/)&&t%2==0)&&(i=!1)}o=o.replace(/^"/,"").replace(/"$/,"").replace(/["]*/g,e=>new Array(Math.floor(e.length/2)).fill('"').join(""))}else{const t=e.match(i);o=t?t[0]:"",e=e.slice(o.length)}t[a][r]=o}return t},t.stringify=function(e){let t,o,i,s,n,r="";for(t=0,o=e.length;t<o;t+=1){for(s=e[t].length,i=0;i<s;i+=1)i>0&&(r+="\t"),n=e[t][i],"string"==typeof n?n.indexOf("\n")>-1?r+=`"${n.replace(/"/g,'""')}"`:r+=n:r+=null==n?"":n;t!==o-1&&(r+="\n")}return r};const o=/^(\r\n|\n\r|\r|\n)/,i=/^[^\t\r\n]+/,s=/^\t/},51472:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(93911);t.CELL_TYPE=i.CELL_TYPE,t.NumericCellType=i.NumericCellType},51637:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"editorCloseAndSaveByEnter",callback(e,t){const o=e._getEditorManager();o.closeEditorAndSaveChanges(t.ctrlKey||t.metaKey),o.moveSelectionAfterEnter(t)}}},51670:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(81396),o(14618);var s=o(94857),n=i(o(79596)),r=i(o(28752)),a=o(74419),l=o(14548),h=o(27783);function c(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function u(e,t,o){return e.set(g(e,t),o),o}function d(e,t){return e.get(g(e,t))}function g(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var f=new WeakMap,p=new WeakMap,m=new WeakMap;t.default=class{constructor(){c(this,f,new n.default),c(this,p,new r.default(d(f,this))),c(this,m,[[]])}setState(e){d(f,this).setData(e);let t=!1;try{d(p,this).buildTree()}catch(e){d(p,this).clear(),d(f,this).clear(),t=!0}return u(m,this,(0,l.generateMatrix)(d(p,this).getRoots())),t}setColumnsLimit(e){d(f,this).setColumnsLimit(e)}mergeStateWith(e){const t=(0,s.arrayMap)(e,e=>{let{row:t,...o}=e;return{row:t<0?this.rowCoordsToLevel(t):t,...o}});d(f,this).mergeWith(t),d(p,this).buildTree(),u(m,this,(0,l.generateMatrix)(d(p,this).getRoots()))}mapState(e){d(f,this).map(e),d(p,this).buildTree(),u(m,this,(0,l.generateMatrix)(d(p,this).getRoots()))}mapNodes(e){return(0,s.arrayReduce)(d(p,this).getRoots(),(t,o)=>(o.walkDown(o=>{const i=e(o.data);void 0!==i&&t.push(i)}),t),[])}triggerNodeModification(e,t,o){t<0&&(t=this.rowCoordsToLevel(t));const i=d(p,this).getNode(t,o);let s;return i&&(s=(0,a.triggerNodeModification)(e,i,o),u(m,this,(0,l.generateMatrix)(d(p,this).getRoots()))),s}triggerColumnModification(e,t){return this.triggerNodeModification(e,-1,t)}rowCoordsToLevel(e){if(e>=0)return null;const t=e+Math.max(this.getLayersCount(),1);return t<0?null:t}levelToRowCoords(e){if(e<0)return null;const t=e-Math.max(this.getLayersCount(),1);return t>=0?null:t}getHeaderSettings(e,t){var o,i;return e<0&&(e=this.rowCoordsToLevel(e)),null===e||e>=this.getLayersCount()?null:null!==(o=null===(i=d(m,this)[e])||void 0===i?void 0:i[t])&&void 0!==o?o:null}getHeaderTreeNodeData(e,t){const o=this.getHeaderTreeNode(e,t);return o?{...o.data}:null}getHeaderTreeNode(e,t){if(e<0&&(e=this.rowCoordsToLevel(e)),null===e||e>=this.getLayersCount())return null;const o=d(p,this).getNode(e,t);return o||null}findTopMostEntireHeaderLevel(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const o=t-e+1;let i=!1,s=null;for(let n=e;n<=t;n++){const r=d(p,this).getRootByColumn(n);if(!r)break;i=!0,r.walkDown(i=>{const{columnIndex:n,headerLevel:r,origColspan:a,isHidden:l}=i.data;l||a<=o&&n>=e&&n+a-1<=t&&(null===s||r<s)&&(s=r)},h.TRAVERSAL_DF_PRE)}return i&&null===s?-1:this.levelToRowCoords(null!=s?s:0)}findLeftMostColumnIndex(e,t){var o;const{isRoot:i}=null!==(o=this.getHeaderSettings(e,t))&&void 0!==o?o:{isRoot:!0};if(i)return t;let s=t-1;for(;s>=0;){var n;const{isRoot:t}=null!==(n=this.getHeaderSettings(e,s))&&void 0!==n?n:{isRoot:!0};if(t)break;s-=1}return s}findRightMostColumnIndex(e,t){var o;const{isRoot:i,origColspan:s}=null!==(o=this.getHeaderSettings(e,t))&&void 0!==o?o:{isRoot:!0,origColspan:1};if(i)return t+s-1;let n=t+1;for(;n<this.getColumnsCount();){var r;const{isRoot:t}=null!==(r=this.getHeaderSettings(e,n))&&void 0!==r?r:{isRoot:!0};if(t)break;n+=1}return n-1}getLayersCount(){return d(f,this).getLayersCount()}getColumnsCount(){return d(f,this).getColumnsCount()}clear(){u(m,this,[]),d(f,this).clear(),d(p,this).clear()}}},51736:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(37637),o(81396),o(39691),o(81124),o(82101),o(14618),o(39716);var s=i(o(81115)),n=o(82936),r=o(94857),a=o(78437),l=o(76651),h=o(26599),c=o(73983),u=o(57455),d=o(28454),g=o(3226),f=o(99586);function p(e,t,o){m(e,t),t.set(e,o)}function m(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function w(e,t){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.EDITOR_TYPE="autocomplete";var y=new WeakMap,S=new WeakMap,E=new WeakSet;class R extends n.HandsontableEditor{constructor(){var e,t;super(...arguments),m(e=this,t=E),t.add(e),(0,s.default)(this,"query",null),(0,s.default)(this,"strippedChoices",[]),(0,s.default)(this,"rawChoices",[]),p(this,y,this.hot.guid.slice(0,9)),p(this,S,(0,f.debounce)(()=>{this.focus()},100))}static get EDITOR_TYPE(){return v}getValue(){const e=this.rawChoices.find(e=>{const t=this.stripValueIfNeeded(e);return(C(E,this,_).call(this,t)?t.value:t)===this.TEXTAREA.value});return(0,h.isDefined)(e)?e:this.TEXTAREA.value}createElements(){super.createElements(),(0,l.addClass)(this.htContainer,"autocompleteEditor"),(0,l.addClass)(this.htContainer,-1===this.hot.rootWindow.navigator.platform.indexOf("Mac")?"":"htMacScroll"),this.hot.getSettings().ariaTags&&(0,l.setAttribute)(this.TEXTAREA,[(0,g.A11Y_TEXT)(),(0,g.A11Y_COMBOBOX)(),(0,g.A11Y_HASPOPUP)("listbox"),(0,g.A11Y_AUTOCOMPLETE)()])}prepare(e,t,o,i,s,n){super.prepare(e,t,o,i,s,n),this.hot.getSettings().ariaTags&&(0,l.setAttribute)(this.TEXTAREA,[(0,g.A11Y_EXPANDED)("false"),(0,g.A11Y_CONTROLS)(`${w(y,this)}-listbox-${e}-${t}`)]),this.htOptions={...this.htOptions,valueGetter:e=>C(E,this,_).call(this,e)?e.value:e}}open(){super.open();const e=void 0===this.cellProperties.trimDropdown||this.cellProperties.trimDropdown,t=this.hot.getSettings().ariaTags,o=Array.isArray(this.cellProperties.source)?this.cellProperties.source:null,i=null==o?void 0:o.length,{row:s,col:n}=this;this.showEditableElement(),this.focus(),this.addHook("beforeKeyDown",e=>this.onBeforeKeyDown(e)),this.htEditor.addHook("afterScroll",w(S,this)),this.htEditor.updateSettings({colWidths:e?[(0,l.outerWidth)(this.TEXTAREA)-2]:void 0,autoColumnSize:!0,renderer:(e,s,n,r,a,c,u)=>{(0,d.textRenderer)(e,s,n,r,a,c,u);const{filteringCaseSensitive:f,allowHtml:p,locale:m}=this.cellProperties,w=this.query;let C,v,y=(0,h.stringify)(c);y&&!p&&(C=!0===f?y.indexOf(w):y.toLocaleLowerCase(m).indexOf(w.toLocaleLowerCase(m)),-1!==C&&(v=y.substr(C,w.length),y=y.replace(v,`<strong>${v}</strong>`))),t&&(0,l.setAttribute)(s,[(0,g.A11Y_OPTION)(),...o?[(0,g.A11Y_SETSIZE)(i)]:[],...o?[(0,g.A11Y_POSINSET)(o.indexOf(c)+1)]:[],["id",`${this.htEditor.rootElement.id}_${n}-${r}`]]),s.innerHTML=y},afterSelectionEnd:(e,o)=>{if(t){const t=e=>{(0,l.setAttribute)(e,[(0,g.A11Y_SELECTED)()]),(0,l.setAttribute)(this.TEXTAREA,...(0,g.A11Y_ACTIVEDESCENDANT)(e.id))},i=this.htEditor.getCell(e,o,!0);null!==i?t(i):this.htEditor.addHookOnce("afterScrollVertically",()=>{const i=this.htEditor.getCell(e,o,!0);t(i)})}}}),t&&((0,l.setAttribute)(this.htEditor.view._wt.wtOverlays.wtTable.TABLE,...(0,g.A11Y_PRESENTATION)()),(0,l.setAttribute)(this.htEditor.rootElement,[(0,g.A11Y_LISTBOX)(),(0,g.A11Y_LIVE)("polite"),(0,g.A11Y_RELEVANT)("text"),["id",`${w(y,this)}-listbox-${s}-${n}`]]),(0,l.setAttribute)(this.TEXTAREA,...(0,g.A11Y_EXPANDED)("true"))),this.hot._registerTimeout(()=>{this.queryChoices(this.TEXTAREA.value)})}close(){this.removeHooksByKey("beforeKeyDown"),super.close(),this.hot.getSettings().ariaTags&&(0,l.setAttribute)(this.TEXTAREA,[(0,g.A11Y_EXPANDED)("false")])}discardEditor(e){super.discardEditor(e),this.hot.view.render()}finishEditing(e,t,o){if(this.isOpened()){const t=this.hot.getSelectedRangeActive();((0,h.isUndefined)(t)||(0,h.isDefined)(t)&&!t.includes(this.hot._createCellCoords(this.row,this.col)))&&(e=!0)}super.finishEditing(e,t,o)}queryChoices(e){const t=this.cellProperties.source;this.query=e,"function"==typeof t?t.call(this.cellProperties,e,e=>{this.rawChoices=e,this.updateChoicesList(this.stripValuesIfNeeded(e))}):Array.isArray(t)?(this.rawChoices=t,this.updateChoicesList(this.stripValuesIfNeeded(t))):this.updateChoicesList([])}updateChoicesList(e){const t=(0,l.getCaretPosition)(this.TEXTAREA),o=(0,l.getSelectionEndPosition)(this.TEXTAREA),i=this.cellProperties.sortByRelevance,s=this.cellProperties.filter,n=this.stripValueIfNeeded(this.getValue()),a=C(E,this,_).call(this,n)?n.value:n;let u=null,d=e;i||(d=d.toSorted());const g=[],f=this.cellProperties.locale,p=this.cellProperties.filteringCaseSensitive,m=p?a:a.toLocaleLowerCase(f);for(let e=0;e<d.length;e++){const t=C(E,this,_).call(this,d[e])?(0,c.stripTags)((0,h.stringify)(d[e].value)):(0,c.stripTags)((0,h.stringify)(d[e]));if(-1!==(p?t:t.toLocaleLowerCase(f)).indexOf(m)&&(g.push(e),!1===s))break}!1===s?n.length>0&&(u=g[0]):(d=g.map(e=>d[e]),u=d.indexOf(m)>-1?d.indexOf(m):0),this.strippedChoices=d,0===d.length?this.htEditor.rootElement.style.display="none":this.htEditor.rootElement.style.display="",this.htEditor.loadData((0,r.pivot)([d])),d.length>0&&(this.updateDropdownDimensions(),this.flipDropdownVerticallyIfNeeded(),!0===this.cellProperties.strict&&this.highlightBestMatchingChoice(u)),this.hot.listen(),(0,l.setCaretPosition)(this.TEXTAREA,t,t===o?void 0:o)}flipDropdownVerticallyIfNeeded(){const e=super.flipDropdownVerticallyIfNeeded(),{isFlipped:t,spaceAbove:o,spaceBelow:i}=e;return this.limitDropdownIfNeeded(t?o:i),e}limitDropdownIfNeeded(e){const t=this.getDropdownHeight();if(t>e){let o=0,i=0,s=null;do{i=this.htEditor.stylesHandler.getDefaultRowHeight(),o+=i}while(o<e);s=o-i,this.isFlippedVertically&&(this.htEditor.rootElement.style.top=parseInt(this.htEditor.rootElement.style.top,10)+t-s+"px"),this.setDropdownHeight(o-i)}}updateDropdownDimensions(){const e=(0,l.getFractionalScalingCompensation)(),t=this.getTargetEditorWidth()+e,o=this.getTargetEditorHeight()+e;this.htEditor.updateSettings({width:t,height:o}),C(E,this,b).call(this),this.htEditor.view._wt.wtTable.alignOverlaysWithTrimmingContainer()}setDropdownHeight(e){this.htEditor.updateSettings({height:e}),C(E,this,b).call(this),this.htEditor.view._wt.wtTable.alignOverlaysWithTrimmingContainer()}highlightBestMatchingChoice(e){"number"==typeof e?this.htEditor.selectCell(e,0,void 0,void 0,void 0,!1):this.htEditor.deselectCell()}getTargetEditorHeight(){let e=0;if(!this.hot.getCurrentThemeName()){const t=this.hot.rootWindow.getComputedStyle(this.htContainer.querySelector(".htCore"));e=parseInt(t.borderTopWidth,10)+parseInt(t.borderBottomWidth,10)}const t=Math.min(this.cellProperties.visibleRows,this.strippedChoices.length);return Array.from({length:t},(e,t)=>t).reduce((e,t)=>e+(this.hot.stylesHandler.getDefaultRowHeight()+(0===t?1:0)),0)+e}getTargetEditorWidth(){let e=0;if(!this.hot.getCurrentThemeName()){const t=this.hot.rootWindow.getComputedStyle(this.htContainer.querySelector(".htCore"));e=parseInt(t.borderInlineStartWidth,10)+parseInt(t.borderInlineEndWidth,10)}return this.htEditor.getColWidth(0)+e}stripValueIfNeeded(e){return this.stripValuesIfNeeded([e])[0]}stripValuesIfNeeded(e){const{allowHtml:t}=this.cellProperties,o=e=>(0,h.stringify)(t?e:(0,c.stripTags)(e));return e.every(e=>C(E,this,_).call(this,e))?e.map(e=>({key:o(e.key),value:o(e.value)})):e.map(e=>o(e))}onBeforeKeyDown(e){if((0,u.isPrintableChar)(e.keyCode)||e.keyCode===u.KEY_CODES.BACKSPACE||e.keyCode===u.KEY_CODES.DELETE||e.keyCode===u.KEY_CODES.INSERT){let t=10;if(e.keyCode===u.KEY_CODES.C&&(e.ctrlKey||e.metaKey))return;this.isOpened()||(t+=10),this.htEditor&&this.hot._registerTimeout(()=>{this.queryChoices(this.TEXTAREA.value)},t)}}}function b(){this.htEditor.view.hasVerticalScroll()&&this.htEditor.updateSettings({width:this.getTargetEditorWidth()+(0,l.getScrollbarWidth)(this.hot.rootDocument)})}function _(e){return(0,a.isObject)(e)&&(0,h.isDefined)(e.key)&&(0,h.isDefined)(e.value)}t.AutocompleteEditor=R},51964:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(46198);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.ColumnSummary=i.ColumnSummary},52072:(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(81396),o(14618);var i=o(70667);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]])},52150:(e,t,o)=>{"use strict";t.__esModule=!0,t.getClassesToAdd=function(e,t,o){const s=[];if(!1===o)return s;e.isColumnSorted(t)&&e.getNumberOfSortedColumns()>1&&s.push(`${i}-${e.getIndexOfColumnInSortQueue(t)+1}`);return s},t.getClassesToRemove=function(e){const t=e.className.split(" "),o=new RegExp(`^${i}-[0-9]{1,2}$`);return t.filter(e=>o.test(e))},o(66182),o(81396),o(81124);const i="sort"},52270:(e,t,o)=>{"use strict";var i=o(14326);e.exports=function(e){return"object"==typeof e?null!==e:i(e)}},52282:(e,t,o)=>{"use strict";var i=o(21912),s=o(33477),n=Function.prototype,r=i&&Object.getOwnPropertyDescriptor,a=s(n,"name"),l=a&&"something"===function(){}.name,h=a&&(!i||i&&r(n,"name").configurable);e.exports={EXISTS:a,PROPER:l,CONFIGURABLE:h}},52392:(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(8278)),s=o(76742),n=o(26447);const r=t.CONDITION_NAME="neq";function a(e,t){return!(0,s.getCondition)(n.CONDITION_NAME,t)(e)}(0,s.registerCondition)(r,a,{name:i.FILTERS_CONDITIONS_NOT_EQUAL,inputsCount:1,showOperators:!0})},52411:(e,t,o)=>{"use strict";o(81396),o(88633),t.__esModule=!0;var i={createIndexMap:!0,HidingMap:!0,IndexMap:!0,LinkedPhysicalIndexToValueMap:!0,PhysicalIndexToValueMap:!0,TrimmingMap:!0};t.createIndexMap=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!u.has(e))throw new Error(`The provided map type ("${e}") does not exist.`);return new(u.get(e))(t)},o(22588);var s=o(88928);t.HidingMap=s.HidingMap;var n=o(59405);t.IndexMap=n.IndexMap;var r=o(33943);t.LinkedPhysicalIndexToValueMap=r.LinkedPhysicalIndexToValueMap;var a=o(75372);t.PhysicalIndexToValueMap=a.PhysicalIndexToValueMap;var l=o(6490);t.TrimmingMap=l.TrimmingMap;var h=o(19454);Object.keys(h).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===h[e]||(t[e]=h[e]))});var c=o(5760);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===c[e]||(t[e]=c[e]))});const u=new Map([["hiding",s.HidingMap],["index",n.IndexMap],["linkedPhysicalIndexToValue",r.LinkedPhysicalIndexToValueMap],["physicalIndexToValue",a.PhysicalIndexToValueMap],["trimming",l.TrimmingMap]])},52554:(e,t,o)=>{"use strict";var i=o(94988),s=o(87681),n=Math.floor,r=i("".charAt),a=i("".replace),l=i("".slice),h=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,o,i,u,d){var g=o+e.length,f=i.length,p=c;return void 0!==u&&(u=s(u),p=h),a(d,p,function(s,a){var h;switch(r(a,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,o);case"'":return l(t,g);case"<":h=u[l(a,1,-1)];break;default:var c=+a;if(0===c)return s;if(c>f){var d=n(c/10);return 0===d?s:d<=f?void 0===i[d-1]?r(a,1):i[d-1]+r(a,1):s}h=i[c-1]}return void 0===h?"":h})}},52576:(e,t,o)=>{"use strict";var i=o(94988),s=o(33477),n=o(56769),r=o(34341).indexOf,a=o(46049),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}},52709:(e,t)=>{"use strict";t.__esModule=!0;t.getCornerStyle=e=>{const t=e.wtSettings.getSetting("stylesHandler");if(t.isClassicTheme())return Object.freeze({width:6,height:6,borderWidth:1,borderStyle:"solid",borderColor:"#FFF"});const o=t.getCSSVariableValue("cell-autofill-size"),i=t.getCSSVariableValue("cell-autofill-border-width"),s=t.getCSSVariableValue("cell-autofill-border-color");return Object.freeze({width:o,height:o,borderWidth:i,borderStyle:"solid",borderColor:s})}},52958:(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(8278)),s=o(76742);const n=t.CONDITION_NAME="gt";function r(e,t){let[o]=t,i=o;return"numeric"===e.meta.type&&(i=parseFloat(i,10)),e.value>i}(0,s.registerCondition)(n,r,{name:i.FILTERS_CONDITIONS_GREATER_THAN,inputsCount:1,showOperators:!0})},53074:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(73050),r=o(36997),a=o(76651),l=o(3226);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},53269:(e,t,o)=>{"use strict";var i=o(19617),s=o(52270),n=o(497),r=o(61338),a=o(57490),l=o(71671),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)}},53394:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionDownByViewportHeight",callback(e){const{selection:t,rowIndexMapper:o}=e,{to:i}=e.getSelectedRangeActive(),s=Math.min(i.row+e.countVisibleRows(),e.countRows()-1),n=o.getNearestNotHiddenIndex(s,-1);if(null!==n){const o=e._createCellCoords(n,i.col),s=i.row-e.getFirstFullyVisibleRow(),r=Math.min(o.row-s,e.countRows()-1);t.markSource("keyboard"),t.setRangeEnd(o,e.getActiveSelectionLayerIndex()),t.markEndSource(),e.scrollViewportTo({row:r,verticalSnap:"top",horizontalSnap:"start"})}}}},53557:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588);var i=o(68671);t.getDecreasedIndexes=i.getDecreasedIndexes,t.getIncreasedIndexes=i.getIncreasedIndexes;var s=o(5760),n=o(61570);const r=new Map([["indexesSequence",{getListWithInsertedItems:s.getListWithInsertedItems,getListWithRemovedItems:s.getListWithRemovedItems}],["physicallyIndexed",{getListWithInsertedItems:n.getListWithInsertedItems,getListWithRemovedItems:n.getListWithRemovedItems}]]);t.alterUtilsFactory=e=>{if(!1===r.has(e))throw new Error(`Alter strategy with ID '${e}' does not exist.`);return r.get(e)}},53708:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550);var s=i(o(81115)),n=o(97819),r=o(78437),a=o(99586);t.DynamicCellMetaMod=class{constructor(e){var t=this;(0,s.default)(this,"metaManager",void 0),(0,s.default)(this,"metaSyncMemo",new Map),this.metaManager=e,e.addLocalHook("afterGetCellMeta",function(){return t.extendCellMeta(...arguments)}),n.Hooks.getSingleton().add("beforeRender",e=>{e&&this.metaSyncMemo.clear()},this.metaManager.hot)}extendCellMeta(e){var t;const{row:o,col:i}=e;if(null!==(t=this.metaSyncMemo.get(o))&&void 0!==t&&t.has(i))return;const{visualRow:s,visualCol:n}=e,l=this.metaManager.hot,h=l.colToProp(n);e.prop=h,l.runHooks("beforeGetCellMeta",s,n,e);const c=(0,r.hasOwnProperty)(e,"type")?e.type:null;let u=(0,a.isFunction)(e.cells)?e.cells(o,i,h):null;var d;c&&(u?u.type=null!==(d=u.type)&&void 0!==d?d:c:u={type:c});u&&this.metaManager.updateCellMeta(o,i,u),l.runHooks("afterGetCellMeta",s,n,e),this.metaSyncMemo.has(o)||this.metaSyncMemo.set(o,new Set),this.metaSyncMemo.get(o).add(i)}}},54060:(e,t,o)=>{"use strict";var i,s=o(16539),n=o(16933),r=o(20155),a=o(46049),l=o(88025),h=o(59899),c=o(26075),u="prototype",d="script",g=c("IE_PROTO"),f=function(){},p=function(e){return"<"+d+">"+e+"</"+d+">"},m=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},w=function(){try{i=new ActiveXObject("htmlfile")}catch(e){}var e,t,o;w="undefined"!=typeof document?document.domain&&i?m(i):(t=h("iframe"),o="java"+d+":",t.style.display="none",l.appendChild(t),t.src=String(o),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):m(i);for(var s=r.length;s--;)delete w[u][r[s]];return w()};a[g]=!0,e.exports=Object.create||function(e,t){var o;return null!==e?(f[u]=s(e),o=new f,f[u]=null,o[g]=e):o=w(),void 0===t?o:n.f(o,t)}},54230:(e,t,o)=>{"use strict";var i=o(90254),s=o(84990);e.exports=i(s.proto,"size","get")||function(e){return e.size}},54259:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550);var i=o(76651);function s(e,t,o){n(e,t),t.set(e,o)}function n(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function r(e,t){return e.get(l(e,t))}function a(e,t,o){return e.set(l(e,t),o),o}function l(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,c=new WeakMap,u=new WeakSet;function d(e){let[t,o,s,n]=r(h,this).getCorners();if(t<0&&s<0||o<0&&n<0)return;const{wtTable:a}=r(c,this),l=t!==s||o!==n;if(o=Math.max(o,0),n=Math.max(n,0),t=Math.max(t,0),s=Math.max(s,0),l){if(o=Math.max(o,a.getFirstRenderedColumn()),n=Math.min(n,a.getLastRenderedColumn()),t=Math.max(t,a.getFirstRenderedRow()),s=Math.min(s,a.getLastRenderedRow()),n<o||s<t)return}else{const e=a.getCell(r(c,this).createCellCoords(t,o));if(!(0,i.isHTMLElement)(e))return}for(let i=t;i<=s;i+=1)for(let t=o;t<=n;t+=1)e(i,t)}function g(e){const{wtTable:t}=r(c,this),o=t.getRenderedRowsCount(),i=t.getRenderedColumnsCount();for(let s=0;s<o;s+=1){const o=t.rowFilter.renderedToSource(s);for(let s=0;s<i;s+=1)e(o,t.columnFilter.renderedToSource(s))}}t.SelectionScanner=class{constructor(){var e,t;n(e=this,t=u),t.add(e),s(this,h,void 0),s(this,c,void 0)}setActiveOverlay(e){return a(c,this,e),this}setActiveSelection(e){return a(h,this,e),this}scan(){const e=r(h,this).settings.selectionType,t=new Set;return"active-header"===e?(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanRowsInHeadersRange(e=>t.add(e))):"area"===e?this.scanCellsRange(e=>t.add(e)):"focus"===e?(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanRowsInHeadersRange(e=>t.add(e)),this.scanCellsRange(e=>t.add(e))):"fill"===e?this.scanCellsRange(e=>t.add(e)):"header"===e?(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanRowsInHeadersRange(e=>t.add(e))):"row"===e?(this.scanRowsInHeadersRange(e=>t.add(e)),this.scanRowsInCellsRange(e=>t.add(e))):"column"===e&&(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanColumnsInCellsRange(e=>t.add(e))),t}scanColumnsInHeadersRange(e){const[t,o,i,s]=r(h,this).getCorners(),{wtTable:n}=r(c,this),a=n.getRenderedColumnsCount(),l=n.getColumnHeadersCount();let u=0;for(let d=-n.getRowHeadersCount();d<a;d++){const a=n.columnFilter.renderedToSource(d);if(!(a<o||a>s)){for(let d=-l;d<0;d++){if(d<t||d>i)continue;const g=d+l;let f=n.getColumnHeader(a,g);const p=r(c,this).getSetting("onBeforeHighlightingColumnHeader",a,g,{selectionType:r(h,this).settings.selectionType,columnCursor:u,selectionWidth:s-o+1});null!==p&&(p!==a&&(f=n.getColumnHeader(p,g)),e(f))}u+=1}}}scanRowsInHeadersRange(e){const[t,o,i,s]=r(h,this).getCorners(),{wtTable:n}=r(c,this),a=n.getRenderedRowsCount(),l=n.getRowHeadersCount();let u=0;for(let d=-n.getColumnHeadersCount();d<a;d++){const a=n.rowFilter.renderedToSource(d);if(!(a<t||a>i)){for(let d=-l;d<0;d++){if(d<o||d>s)continue;const g=d+l;let f=n.getRowHeader(a,g);const p=r(c,this).getSetting("onBeforeHighlightingRowHeader",a,g,{selectionType:r(h,this).settings.selectionType,rowCursor:u,selectionHeight:i-t+1});null!==p&&(p!==a&&(f=n.getRowHeader(p,g)),e(f))}u+=1}}}scanCellsRange(e){const{wtTable:t}=r(c,this);l(u,this,d).call(this,(o,s)=>{const n=t.getCell(r(c,this).createCellCoords(o,s)),a=r(c,this).getSetting("onAfterDrawSelection",o,s,r(h,this).settings.layerLevel);"string"==typeof a&&(0,i.addClass)(n,a),e(n)})}scanRowsInCellsRange(e){const[t,,o]=r(h,this).getCorners(),{wtTable:i}=r(c,this);l(u,this,g).call(this,(s,n)=>{if(s>=t&&s<=o){const t=i.getCell(r(c,this).createCellCoords(s,n));e(t)}})}scanColumnsInCellsRange(e){const[,t,,o]=r(h,this).getCorners(),{wtTable:i}=r(c,this);l(u,this,g).call(this,(s,n)=>{if(n>=t&&n<=o){const t=i.getCell(r(c,this).createCellCoords(s,n));e(t)}})}}},54283:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(88633);var i=o(76952),s=o(96925);function n(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function r(e,t){return e.get(l(e,t))}function a(e,t,o){return e.set(l(e,t),o),o}function l(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,g=new WeakMap;t.ChangesObservable=class{constructor(){let{initialIndexValue:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,h,new Set),n(this,c,[]),n(this,u,[]),n(this,d,!1),n(this,g,!1),a(g,this,null!=e&&e)}createObserver(){const e=new i.ChangesObserver;return r(h,this).add(e),e.addLocalHook("unsubscribe",()=>{r(h,this).delete(e)}),e._writeInitialChanges((0,s.arrayDiff)(r(c,this),r(u,this))),e}emit(e){let t=r(u,this);r(d,this)&&r(c,this).length===e.length||(0===e.length?e=new Array(t.length).fill(r(g,this)):a(c,this,new Array(e.length).fill(r(g,this))),r(d,this)||(a(d,this,!0),t=r(c,this)));const o=(0,s.arrayDiff)(t,e);r(h,this).forEach(e=>e._write(o)),a(u,this,e)}}},54368:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(51377);t.parse=i.parse,t.stringify=i.stringify},54480:(e,t,o)=>{"use strict";var i=o(27538),s=o(19617),n=o(81576),r=o(49510),a=o(16539),l=o(83203),h=o(13479),c=o(57625)("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}})},54505:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.createHighlight=function(e){let{...t}=e;return new n.default({className:"highlight",...t,selectionType:s.HIGHLIGHT_AREA_TYPE})};var s=o(24496),n=i(o(73358))},54687:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=l;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),s=o(76742),n=o(43382),r=o(6077);const a=t.CONDITION_NAME="between";function l(e,t){let[o,i]=t,a=o,l=i;if("numeric"===e.meta.type){const e=parseFloat(a,10),t=parseFloat(l,10);a=Math.min(e,t),l=Math.max(e,t)}else if("date"===e.meta.type){const t=(0,s.getCondition)(r.CONDITION_NAME,[l]),o=(0,s.getCondition)(n.CONDITION_NAME,[a]);return t(e)&&o(e)}return e.value>=a&&e.value<=l}(0,s.registerCondition)(a,l,{name:i.FILTERS_CONDITIONS_BETWEEN,inputsCount:2,showOperators:!0})},55210:(e,t,o)=>{"use strict";var i=o(91945),s=TypeError;e.exports=function(e){if(i(e))throw new s("Can't call method on "+e);return e}},55424:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(88633),o(39716);var s=i(o(81115)),n=o(42479),r=i(o(80674)),a=i(o(40191)),l=i(o(70445)),h=i(o(75475)),c=o(49581),u=o(91718),d=o(32435),g=o(7037),f=i(o(45571));function p(e,t,o){m(e,t),t.set(e,o)}function m(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function w(e,t){return e.get(v(e,t))}function C(e,t,o){return e.set(v(e,t),o),o}function v(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const y=t.PLUGIN_KEY="nestedRows",S=t.PLUGIN_PRIORITY=300,E=y;var R=new WeakMap,b=new WeakMap,_=new WeakSet;class T extends n.BasePlugin{constructor(){var e,t;super(...arguments),m(e=this,t=_),t.add(e),(0,s.default)(this,"dataManager",null),(0,s.default)(this,"headersUI",null),(0,s.default)(this,"collapsedRowsMap",null),p(this,R,!1),p(this,b,!1)}static get PLUGIN_KEY(){return y}static get PLUGIN_PRIORITY(){return S}isEnabled(){return!!this.hot.getSettings()[y]}enablePlugin(){var e=this;this.enabled||(this.collapsedRowsMap=this.hot.rowIndexMapper.registerMap("nestedRows",new d.TrimmingMap),this.dataManager=new r.default(this,this.hot),this.collapsingUI=new a.default(this,this.hot),this.headersUI=new l.default(this,this.hot),this.contextMenuUI=new h.default(this,this.hot),this.rowMoveController=new f.default(this),this.addHook("afterInit",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,F).call(e,...o)}),this.addHook("beforeViewRender",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,B).call(e,...o)}),this.addHook("modifyRowData",function(){return e.onModifyRowData(...arguments)}),this.addHook("modifySourceLength",function(){return e.onModifySourceLength(...arguments)}),this.addHook("beforeDataSplice",function(){return e.onBeforeDataSplice(...arguments)}),this.addHook("filterData",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,O).call(e,...o)}),this.addHook("afterContextMenuDefaultOptions",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,A).call(e,...o)}),this.addHook("afterGetRowHeader",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,N).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 v(_,e,I).call(e,...o)}),this.addHook("beforeRemoveRow",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,x).call(e,...o)}),this.addHook("afterRemoveRow",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,H).call(e,...o)}),this.addHook("beforeAddChild",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,k).call(e,...o)}),this.addHook("afterAddChild",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,D).call(e,...o)}),this.addHook("beforeDetachChild",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,L).call(e,...o)}),this.addHook("afterDetachChild",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,V).call(e,...o)}),this.addHook("modifyRowHeaderWidth",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,P).call(e,...o)}),this.addHook("afterCreateRow",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,W).call(e,...o)}),this.addHook("beforeRowMove",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,M).call(e,...o)}),this.addHook("beforeLoadData",e=>v(_,this,U).call(this,e)),this.addHook("beforeUpdateData",e=>v(_,this,U).call(this,e)),this.registerShortcuts(),super.enablePlugin())}disablePlugin(){this.hot.rowIndexMapper.unregisterMap("nestedRows"),this.unregisterShortcuts(),super.disablePlugin()}updatePlugin(){this.disablePlugin();const e=this.dataManager.getData();this.enablePlugin(),this.dataManager.updateWithData(e),super.updatePlugin()}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Enter"]],callback:()=>{const{highlight:e}=this.hot.getSelectedRangeActive(),t=this.collapsingUI.translateTrimmedRow(e.row);return this.collapsingUI.areChildrenCollapsed(t)?this.collapsingUI.expandChildren(t):this.collapsingUI.collapseChildren(t),!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.col&&o.row>=0},group:E,relativeToGroup:g.EDITOR_EDIT_GROUP,position:"before"})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(E)}disableCoreAPIModifiers(){C(b,this,!0)}enableCoreAPIModifiers(){C(b,this,!1)}onModifyRowData(e){if(!w(b,this))return this.dataManager.getDataObject(e)}onModifySourceLength(){if(!w(b,this))return this.dataManager.countAllRows()}onBeforeDataSplice(e,t,o){return!(!w(b,this)&&!this.dataManager.isRowHighestLevel(e))||(this.dataManager.spliceData(e,t,o),!1)}destroy(){super.destroy()}}function M(e,t,o,i){return this.rowMoveController.onBeforeRowMove(e,t,o,i)}function I(e,t,o){this.collapsingUI.toggleState(e,t,o)}function O(e,t,o){return this.collapsingUI.collapsedRowsStash.stash(),this.collapsingUI.collapsedRowsStash.trimStash(o[0],t),this.collapsingUI.collapsedRowsStash.shiftStash(o[0],null,-1*t),this.dataManager.filterData(e,t,o),C(R,this,!0),this.dataManager.getData().slice()}function A(e){return this.contextMenuUI.appendOptions(e)}function N(e,t){this.headersUI.appendLevelIndicators(e,t)}function P(e){return Math.max(this.headersUI.rowHeaderWidthCache,e)}function H(e,t,o,i){i!==this.pluginName&&this.hot._registerTimeout(()=>{C(R,this,!1),this.headersUI.updateRowHeaderWidth(),this.collapsingUI.collapsedRowsStash.applyStash()})}function x(e,t,o){const i=Array.from(o.reduce((e,t)=>{if(this.dataManager.isParent(t)){const o=this.dataManager.getDataObject(t).__children;return e.add(t),Array.isArray(o)&&o.forEach(t=>e.add(this.dataManager.getRowIndex(t))),e}return e.add(t)},new Set));o.length=0,o.push(...i)}function k(){this.collapsingUI.collapsedRowsStash.stash()}function D(e,t){this.collapsingUI.collapsedRowsStash.shiftStash(this.dataManager.getRowIndex(t)),this.collapsingUI.collapsedRowsStash.applyStash(),this.headersUI.updateRowHeaderWidth()}function L(){this.collapsingUI.collapsedRowsStash.stash()}function V(e,t,o){this.collapsingUI.collapsedRowsStash.shiftStash(o,null,-1),this.collapsingUI.collapsedRowsStash.applyStash(),this.headersUI.updateRowHeaderWidth()}function W(){this.dataManager.rewriteCache()}function F(){this.headersUI.updateRowHeaderWidth()}function B(e,t){w(R,this)&&(t.skipRender=!0)}function U(e){if(!(0,u.isArrayOfObjects)(e))return(0,c.error)("The Nested Rows plugin requires an Array of Objects as a dataset to be provided. The plugin has been disabled."),this.hot.getSettings()[y]=!1,void this.disablePlugin();this.dataManager.setData(e),this.dataManager.rewriteCache()}t.NestedRows=T},55595:(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(8278)),s=o(32971),n=o(63556)},56284:(e,t,o)=>{"use strict";t.__esModule=!0,t.valueSetter=function(e,t,o){const n=this.getSourceDataAtCell(this.toPhysicalRow(t),this.toPhysicalColumn(o)),r=e=>(0,i.isObject)(e)&&(0,s.isDefined)(e.key)&&(0,s.isDefined)(e.value);if(r(n))return r(e)?e:{key:e,value:e};return e};var i=o(78437),s=o(26599)},56456:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToColumns",callback(e){const{selection:t}=e,{highlight:o,from:i,to:s}=e.getSelectedRangeActive();t.markSource("keyboard"),t.isSelectedByRowHeader()?t.selectAll(!0,!0):e.selectColumns(i.col,s.col,o),t.markEndSource()}}},56676:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(76651),r=i(o(86488)),a=o(61651),l=o(82858);class h extends a.Overlay{constructor(e,t,o,i,n,r){super(e,t,l.CLONE_TOP_INLINE_START_CORNER,o,i),(0,s.default)(this,"topOverlay",void 0),(0,s.default)(this,"inlineStartOverlay",void 0),this.topOverlay=n,this.inlineStartOverlay=r}createTable(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return new r.default(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderTopOverlay")&&this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}resetFixedPosition(){if(this.updateTrimmingContainer(),!this.wot.wtTable.holder.parentNode)return!1;const e=this.clone.wtTable.holder.parentNode;if(this.trimmingContainer===this.domBindings.rootWindow){const t=this.inlineStartOverlay.getOverlayOffset()*(this.isRtl()?-1:1),o=this.topOverlay.getOverlayOffset();(0,n.setOverlayPosition)(e,`${t}px`,`${o}px`)}else(0,n.resetCssTransform)(e);let t=(0,n.outerHeight)(this.clone.wtTable.TABLE);const o=(0,n.outerWidth)(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(t=0),e.style.height=`${t}px`,e.style.width=`${o}px`,!1}}t.TopInlineStartCornerOverlay=h},56769:(e,t,o)=>{"use strict";var i=o(20699),s=o(55210);e.exports=function(e){return i(s(e))}},56795:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(76651),r=o(78437);function a(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function l(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakSet;function c(e){const{wtSettings:t,inlineStartOverlay:o,wtTable:i,wtViewport:s,totalColumns:r,rootWindow:a}=this.dataAccessObject;if(o.mainTableScrollableElement===a){let l=null;if(t.getSetting("rtlMode")){const e=i.TABLE.getBoundingClientRect(),t=this.dataAccessObject.rootWindow.document.documentElement.offsetWidth;l=Math.abs(e.right-t)}else{l=(0,n.offset)(i.wtRootElement).left}const h=Math.abs((0,n.getScrollLeft)(a,a));if(l>h){const t=(0,n.innerWidth)(a);let i=s.getRowHeaderWidth();for(let s=1;s<=r;s++)if(i+=o.sumCellSizes(s-1,s),l+i-h>=t){e=s-2;break}}}return e}function u(e){const{topOverlay:t,wtTable:o,wtViewport:i,totalRows:s,rootWindow:r}=this.dataAccessObject;if(t.mainTableScrollableElement===r){const a=(0,n.offset)(o.wtRootElement),l=(0,n.getScrollTop)(r,r);if(a.top>l){const o=(0,n.innerHeight)(r);let h=i.getColumnHeaderHeight();for(let i=1;i<=s;i++)if(h+=t.sumCellSizes(i-1,i),a.top+h-l>=o){e=i-2;break}}}return e}t.default=class{constructor(e){a(this,h),(0,s.default)(this,"dataAccessObject",void 0),this.dataAccessObject=e}scrollViewport(e,t,o){if(e.col<0||e.row<0)return!1;const i=this.scrollViewportHorizontally(e.col,t),s=this.scrollViewportVertically(e.row,o);return i||s}scrollViewportHorizontally(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";const{drawn:o,totalColumns:i}=this.dataAccessObject;if(!o)return!1;const s=(0,r.createObjectPropListener)(t);if(e=this.dataAccessObject.wtSettings.getSetting("onBeforeViewportScrollHorizontally",e,s),!Number.isInteger(e)||e<0||e>i)return!1;t=s.value;const{fixedColumnsStart:n,inlineStartOverlay:a}=this.dataAccessObject,l="auto"===t;if(l&&e<n)return!1;const h=this.getFirstVisibleColumn(),c=this.getLastVisibleColumn();let u=!1;return(l&&(e<h||e>c)||!l)&&(u=a.scrollTo(e,l?e>=this.getLastPartiallyVisibleColumn():"end"===t)),u}scrollViewportVertically(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";const{drawn:o,totalRows:i}=this.dataAccessObject;if(!o)return!1;const s=(0,r.createObjectPropListener)(t);if(e=this.dataAccessObject.wtSettings.getSetting("onBeforeViewportScrollVertically",e,s),!Number.isInteger(e)||e<0||e>i)return!1;t=s.value;const{fixedRowsBottom:n,fixedRowsTop:a,topOverlay:l}=this.dataAccessObject,h="auto"===t;if(h&&(e<a||e>i-n-1))return!1;const c=this.getFirstVisibleRow(),u=this.getLastVisibleRow();let d=!1;return(h&&(e<c||e>u)||!h)&&(d=l.scrollTo(e,h?e>=this.getLastPartiallyVisibleRow():"bottom"===t)),d}getFirstVisibleRow(){return this.dataAccessObject.wtTable.getFirstVisibleRow()}getLastVisibleRow(){return l(h,this,u).call(this,this.dataAccessObject.wtTable.getLastVisibleRow())}getFirstPartiallyVisibleRow(){return this.dataAccessObject.wtTable.getFirstPartiallyVisibleRow()}getLastPartiallyVisibleRow(){return l(h,this,u).call(this,this.dataAccessObject.wtTable.getLastPartiallyVisibleRow())}getFirstVisibleColumn(){return this.dataAccessObject.wtTable.getFirstVisibleColumn()}getLastVisibleColumn(){return l(h,this,c).call(this,this.dataAccessObject.wtTable.getLastVisibleColumn())}getFirstPartiallyVisibleColumn(){return this.dataAccessObject.wtTable.getFirstPartiallyVisibleColumn()}getLastPartiallyVisibleColumn(){return l(h,this,c).call(this,this.dataAccessObject.wtTable.getLastPartiallyVisibleColumn())}}},56902:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"selectAllCells",callback(e){let{selection:t}=e;t.markSource("keyboard"),t.selectAll(!0,!0,{disableHeadersHighlight:!0}),t.markEndSource()}}},57065:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"scrollToFocusedCell",callback(e){const{highlight:t}=e.getSelectedRangeActive(),o=e.getFirstFullyVisibleRow()-1,i=e.getFirstFullyVisibleColumn()-1,s=e.getLastFullyVisibleRow()+1,n=e.getLastFullyVisibleColumn()+1,r=e._createCellCoords(o,i),a=e._createCellCoords(s,n);if(!e._createCellRange(r,r,a).includes(t)&&(t.row>=0||t.col>=0)){const o={};if(t.col>=0){const i=Math.floor(e.countVisibleCols()/2);o.col=Math.max(t.col-i,0)}if(t.row>=0){const i=Math.floor(e.countVisibleRows()/2);o.row=Math.max(t.row-i,0)}e.scrollViewportTo({...o,verticalSnap:"top",horizontalSnap:"start"})}}}},57103:(e,t,o)=>{"use strict";t.__esModule=!0,t.expandNode=function e(t){const{data:o,childs:r}=t;if(!o.isCollapsed||o.isHidden||o.origColspan<=1)return{rollbackModification:()=>{},affectedColumns:[],colspanCompensation:0};if((0,n.isNodeReflectsFirstChildColspan)(t))return e(r[0]);o.isCollapsed=!1;const a=r.slice(1),l=new Set;let h=0;if(a.length>0)(0,i.arrayEach)(a,e=>{e.replaceTreeWith(e.data.clonedTree),e.data.clonedTree=null;const t=e.data;h+=t.colspan,(0,n.traverseHiddenNodeColumnIndexes)(e,e=>{l.add(e)})});else{const{colspan:e,origColspan:t,columnIndex:i}=o;h=t-e;for(let e=1;e<t;e++)l.add(i+e)}return t.walkUp(e=>{const{data:t}=e;t.colspan+=h,t.colspan>=t.origColspan?(t.colspan=t.origColspan,t.isCollapsed=!1):(0,n.isNodeReflectsFirstChildColspan)(e)&&(t.isCollapsed=(0,n.getFirstChildProperty)(e,"isCollapsed"))}),{rollbackModification:()=>(0,s.collapseNode)(t),affectedColumns:Array.from(l),colspanCompensation:h}},o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550);var i=o(94857),s=o(9364),n=o(31557)},57151:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.createHighlight=function(e){let{activeHeaderClassName:t,...o}=e;return new n.default({className:t,...o,selectionType:s.HIGHLIGHT_ACTIVE_HEADER_TYPE})};var s=o(24496),n=i(o(73358))},57396:(e,t,o)=>{"use strict";var i=o(40136),s=o(49510),n=o(38972),r=i(i.bind);e.exports=function(e,t){return s(e),void 0===t?e:n?r(e,t):function(){return e.apply(t,arguments)}}},57440:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(85239);t.CELL_TYPE=i.CELL_TYPE,t.HandsontableCellType=i.HandsontableCellType},57455:(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(66182);var i=o(94857),s=o(12108);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]},57490:(e,t,o)=>{"use strict";var i=o(19617),s=o(14326),n=o(52270),r=TypeError;e.exports=function(e,t){var o,a;if("string"===t&&s(o=e.toString)&&!n(a=i(o,e)))return a;if(s(o=e.valueOf)&&!n(a=i(o,e)))return a;if("string"!==t&&s(o=e.toString)&&!n(a=i(o,e)))return a;throw new r("Can't convert object to primitive value")}},57596:(e,t,o)=>{"use strict";var i=o(94988),s=0,n=Math.random(),r=i(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++s+n,36)}},57625:(e,t,o)=>{"use strict";var i=o(19596);e.exports=function(e,t){var o=i.Iterator,s=o&&o.prototype,n=s&&s[e],r=!1;if(n)try{n.call({next:function(){return{done:!0}},return:function(){r=!0}},-1)}catch(e){e instanceof t||(r=!1)}if(!r)return n}},57678:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"editorCloseAndSave",callback(e){e._getEditorManager().closeEditorAndSaveChanges()}}},57787:(e,t,o)=>{"use strict";t.__esModule=!0,t.createScrollTargetCalculator=function(e){const{selection:t,view:o}=e,i=e.getSelectedRangeActive(),s=t.getSelectionSource(),n=o.getFirstFullyVisibleColumn(),r=o.getLastFullyVisibleColumn(),a=i.getTopStartCorner().col,l=i.getBottomEndCorner().col,h=a<=n,c=l>=r,u=o.getFirstFullyVisibleRow(),d=o.getLastFullyVisibleRow(),g=i.getTopStartCorner().row,f=i.getBottomEndCorner().row,p=g<=u,m=f>=d;return{getComputedColumnTarget:e=>"mouse"===s||"keyboard"===s?e.col:h&&c?i.highlight.col:h?a:c?l:e.col,getComputedRowTarget:e=>"mouse"===s||"keyboard"===s?e.row:p&&m?i.highlight.row:p?g:m?f:e.row}},t.scrollWindowToCell=function(e){(0,i.isHTMLElement)(e)&&e.scrollIntoView({block:"nearest",inline:"nearest"})};var i=o(76651)},57806:(e,t)=>{"use strict";t.__esModule=!0,t.sumCellsHeights=function(e,t,o){const{rowIndexMapper:i,stylesHandler:s}=e;let n=0;for(let a=t;a<t+o;a++){var r;if(!i.isHidden(a))n+=null!==(r=e.getRowHeight(a))&&void 0!==r?r:s.getDefaultRowHeight(a)}return n}},57849:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182);var s=i(o(81115)),n=o(42765),r=o(43237),a=o(82539),l=o(50151),h=o(46261),c=i(o(13683)),u=o(94857),d=o(12108),g=o(76651),f=o(70667),p=o(99586),m=o(26599),w=o(78437),C=i(o(86248)),v=o(26913),y=o(3226);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)},58294:(e,t,o)=>{"use strict";t.__esModule=!0,o(81396),o(19874);var i=o(70667);t.command={name:"editorOpen",callback(e,t,o){const{selection:s}=e,n=e._getEditorManager(),r=e.getSelectedRange(),a=e.getSelectedRangeActive(),{highlight:l}=a;if((r.some(e=>s.isMultiple(e))||r.length>1)&&!a.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0){const i=e.getSettings(),n="function"==typeof i.enterMoves?i.enterMoves(t):i.enterMoves;return void(o.includes("shift")?s.transformFocus(-n.row,-n.col):s.transformFocus(n.row,n.col))}l.isHeader()||(e.getSettings().enterBeginsEditing?n.cellProperties.readOnly?n.moveSelectionAfterEnter(t):n.openEditor(null,t,!0):n.moveSelectionAfterEnter(t),(0,i.stopImmediatePropagation)(t))}}},58435:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(88216);class r extends n.PartiallyVisibleColumnsCalculationType{constructor(){super(...arguments),(0,s.default)(this,"columnStartOffset",0),(0,s.default)(this,"columnEndOffset",0)}finalize(e){var t;super.finalize(e);const{overrideFn:o,totalColumns:i,startPositions:s}=e;if(null!==this.startColumn&&"function"==typeof o){const e=this.startColumn,t=this.endColumn;o(this),this.columnStartOffset=e-this.startColumn,this.columnEndOffset=this.endColumn-t}this.startColumn<0&&(this.startColumn=0),this.startPosition=null!==(t=s[this.startColumn])&&void 0!==t?t:null,i<this.endColumn&&(this.endColumn=i-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}t.RenderedColumnsCalculationType=r},58583:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=n;var i=o(76742);const s=t.CONDITION_NAME="true";function n(){return!0}(0,i.registerCondition)(s,n,{name:"True"})},58639:(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(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(14618)},58719:e=>{"use strict";e.exports=!1},58765:(e,t,o)=>{"use strict";t.__esModule=!0,t.createFocusScopeManager=function(e){const t=(0,i.createUniqueMap)({errorIdExists:e=>`The "${e}" focus scope is already registered.`}),o=e.getShortcutManager();let l=null;function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.FOCUS_SOURCES.UNKNOWN;l!==e&&(null!==l&&c(l),l=e,l.activate(t),o.setActiveContextName(e.getShortcutsContextName()))}function c(e){u(),l===e&&(l=null,e.deactivate())}function u(){const o=t.getValues(),i=o.filter(e=>e.runOnlyIf()&&"modal"===e.getType());o.forEach(t=>{i.length>0&&i.includes(t)||0===i.length||t.hasContainerDetached()?t.enable():t.disable(),t===l?t.contains(e.rootDocument.activeElement)?t.deactivateFocusCatchers():t.activateFocusCatchers():t.runOnlyIf()?t.activateFocusCatchers():t.deactivateFocusCatchers()})}function d(o,i){if(!o.isConnected||!(0,a.isVisible)(o))return;const s=t.getValues().filter(e=>e.runOnlyIf());let n=!1;s.forEach(t=>{!n&&t.contains(o)&&(n=!0,i!==r.FOCUS_SOURCES.UNKNOWN&&e.listen(),h(t,i))}),!n&&l&&(c(l),e.unlisten())}const g=(0,n.useEventListener)(e.rootWindow,{onFocus:e=>{var t;d(e.target,null!==(t=e.target.dataset.htFocusSource)&&void 0!==t?t:r.FOCUS_SOURCES.UNKNOWN)},onClick:e=>{d(e.target,r.FOCUS_SOURCES.CLICK)},onTabKeyDown:()=>{u()}});return g.mount(),{getActiveScopeId:function(){if(!l)return null;return t.getId(l)},registerScope:function(i,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.hasItem(i))throw new Error(`Scope with id "${i}" already registered`);const a=(0,s.createFocusScope)(e,n,r);t.addItem(i,a),o.getOrCreateContext(a.getShortcutsContextName())},unregisterScope:function(e){if(!t.hasItem(e))throw new Error(`Scope with id "${e}" not found`);t.getItem(e).destroy(),t.removeItem(e)},activateScope:e=>function(e){if(!t.hasItem(e))throw new Error(`Scope with id "${e}" not found`);h(t.getItem(e))}(e),deactivateScope:e=>function(e){if(!t.hasItem(e))throw new Error(`Scope with id "${e}" not found`);c(t.getItem(e))}(e),destroy:()=>g.unmount()}},o(22588),o(81396),o(81124),o(88633);var i=o(79836),s=o(5e3),n=o(94228),r=o(49669),a=o(76651)},59195:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(26657));t.DataMap=s.default;var n=i(o(82292));t.MetaManager=n.default;var r=i(o(428));t.metaSchemaFactory=r.default;var a=o(14839);t.replaceData=a.replaceData;var l=o(53708);t.DynamicCellMetaMod=l.DynamicCellMetaMod;var h=o(95582);t.ExtendMetaPropertiesMod=h.ExtendMetaPropertiesMod},59311:(e,t,o)=>{"use strict";t.__esModule=!0,t.operationResult=a,o(81396),o(39691);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(8278)),s=o(14251);const n=t.OPERATION_ID="conjunction",r=t.SHORT_NAME_FOR_COMPONENT=i.FILTERS_LABELS_CONJUNCTION;function a(e,t){return e.every(e=>e.func(t))}(0,s.registerOperation)(n,r,a)},59317:(e,t,o)=>{"use strict";var i=o(13479);e.exports=function(e,t,o){for(var s=e.length-1;s>=0;s--)if(void 0!==e[s])try{o=i(e[s].iterator,t,o)}catch(e){t="throw",o=e}if("throw"===t)throw o;return o}},59375:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(81396),o(88633);var s=i(o(64326));function n(e,t,o){r(e,t),t.set(e,o)}function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function a(e,t){return e.get(h(e,t))}function l(e,t,o){return e.set(h(e,t),o),o}function h(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var c=new WeakMap,u=new WeakMap,d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,w=new WeakSet;function C(e){let{selectedRange:t,selectionLayer:o,listOrder:i,mergeCellsVisitor:s,row:n,column:r}=e;const l=t.getTopStartCorner(),h=t.getBottomEndCorner(),c=t.highlight.clone().normalize(),u=a(f,this).call(this,n,r);if(u&&s.has(u))return null;const d={selectionLayer:o,colStart:r,colEnd:r,rowStart:n,rowEnd:n};if(u){if(s.add(u),u.row<l.row||u.row+u.rowspan-1>h.row||u.col<l.col||u.col+u.colspan-1>h.col)return null;d.colStart=u.col,d.colEnd=u.col+u.colspan-1,d.rowStart=u.row,d.rowEnd=u.row+u.rowspan-1}const g=i.push(d);return n===c.row&&r===c.col||u&&c.row>=u.row&&c.row<=u.row+u.rowspan-1&&c.col>=u.col&&c.col<=u.col+u.colspan-1?g:null}t.FocusOrder=class{constructor(e){let{mergedCellsGetter:t,rowIndexMapper:o,columnIndexMapper:i}=e;var a,h;r(a=this,h=w),h.add(a),n(this,c,new s.default),n(this,u,new s.default),n(this,d,null),n(this,g,null),n(this,f,null),n(this,p,null),n(this,m,null),l(f,this,t),l(p,this,o),l(m,this,i)}getCurrentVerticalNode(){return a(g,this).data}getFirstVerticalNode(){return a(u,this).first.data}getNextVerticalNode(){return a(g,this).next.data}getPrevVerticalNode(){return a(g,this).prev.data}getCurrentHorizontalNode(){return a(d,this).data}getFirstHorizontalNode(){return a(c,this).first.data}getNextHorizontalNode(){return a(d,this).next.data}getPrevHorizontalNode(){return a(d,this).prev.data}setPrevNodeAsActive(){l(g,this,a(g,this).prev),l(d,this,a(d,this).prev)}setNextNodeAsActive(){l(g,this,a(g,this).next),l(d,this,a(d,this).next)}buildFocusOrder(e){l(c,this,new s.default),e.forEach((e,t)=>{const o=new WeakSet,i=e.getTopStartCorner(),s=e.getBottomEndCorner();for(let n=i.row;n<=s.row;n++)if(!a(p,this).isHidden(n))for(let r=i.col;r<=s.col;r++){if(a(m,this).isHidden(r))continue;const i=h(w,this,C).call(this,{selectedRange:e,selectionLayer:t,listOrder:a(c,this),mergeCellsVisitor:o,row:n,column:r});i&&l(d,this,i)}}),a(c,this).first&&(a(c,this).first.prev=a(c,this).last,a(c,this).last.next=a(c,this).first),l(u,this,new s.default),e.forEach((e,t)=>{const o=new WeakSet,i=e.getTopStartCorner(),s=e.getBottomEndCorner();for(let n=i.col;n<=s.col;n++)if(!a(m,this).isHidden(n))for(let r=i.row;r<=s.row;r++){if(a(p,this).isHidden(r))continue;const i=h(w,this,C).call(this,{selectedRange:e,selectionLayer:t,listOrder:a(u,this),mergeCellsVisitor:o,row:r,column:n});i&&l(g,this,i)}}),a(u,this).first&&(a(u,this).first.prev=a(u,this).last,a(u,this).last.next=a(u,this).first)}setActiveNode(e,t,o){return a(c,this).inorder(i=>{const{selectionLayer:s,rowStart:n,rowEnd:r,colStart:a,colEnd:h}=i.data;if(s===o&&e>=n&&e<=r&&t>=a&&t<=h)return l(d,this,i),!0}),a(u,this).inorder(i=>{const{selectionLayer:s,rowStart:n,rowEnd:r,colStart:a,colEnd:h}=i.data;if(s===o&&e>=n&&e<=r&&t>=a&&t<=h)return l(g,this,i),!0}),this}}},59405:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182);var s=i(o(81115)),n=o(58639),r=o(78437),a=o(99586),l=i(o(86248));class h{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,s.default)(this,"indexedValues",[]),(0,s.default)(this,"initValueOrFn",void 0),this.initValueOrFn=e}getValues(){return this.indexedValues}getValueAtIndex(e){const t=this.indexedValues;if(e<t.length)return t[e]}setValues(e){this.indexedValues=e.slice(),this.runLocalHooks("change")}setValueAtIndex(e,t){return e<this.indexedValues.length&&(this.indexedValues[e]=t,this.runLocalHooks("change"),!0)}clear(){this.setDefaultValues()}getLength(){return this.getValues().length}setDefaultValues(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.indexedValues.length=0,(0,a.isFunction)(this.initValueOrFn)?(0,n.rangeEach)(e-1,e=>this.indexedValues.push(this.initValueOrFn(e))):(0,n.rangeEach)(e-1,()=>this.indexedValues.push(this.initValueOrFn)),this.runLocalHooks("change")}init(e){return this.setDefaultValues(e),this.runLocalHooks("init"),this}insert(){this.runLocalHooks("change")}remove(){this.runLocalHooks("change")}destroy(){this.clearLocalHooks(),this.indexedValues=null,this.initValueOrFn=null}}t.IndexMap=h,(0,r.mixin)(h,l.default)},59453:(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(32971),s=o(94857),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(8278));const r=t.KEY="make_read_only"},59494:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115));t.FixedPageSizeStrategy=class{constructor(){(0,s.default)(this,"pageSize",1),(0,s.default)(this,"totalItems",0),(0,s.default)(this,"totalPages",0)}calculate(e){let{pageSize:t,totalItems:o}=e;this.pageSize=Math.max(t,1),this.totalItems=o,this.totalPages=Math.max(1,Math.ceil(this.totalItems/this.pageSize))}getTotalPages(){return this.totalPages}getState(e){if((e-=1)<0||e>=this.getTotalPages())return;const t=e*this.pageSize;return{startIndex:t,endIndex:Math.max(0,Math.min(t+this.pageSize-1,this.totalItems-1)),pageSize:this.pageSize}}}},59665:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588),o(66182),o(81396),o(88633),o(14618);var i=o(73983),s=o(70270);function n(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function r(e,t){return e.get(l(e,t))}function a(e,t,o){return e.set(l(e,t),o),o}function l(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap;t.default=class{constructor(e,t,o){n(this,h,void 0),n(this,c,void 0),n(this,u,void 0),n(this,d,[]),n(this,g,[]),n(this,f,void 0),n(this,p,[]),a(h,this,e),a(c,this,t),a(u,this,o)}setRemovedHfIndexes(e){return a(p,this,e.map(e=>{const t=r(c,this).getVisualFromPhysicalIndex(e);return this.getHfIndexFromVisualIndex(t)})),r(p,this)}getRemovedHfIndexes(){return r(p,this)}getHfIndexFromVisualIndex(e){const t=r(c,this).getIndexesSequence(),o=r(c,this).getNotTrimmedIndexes();return t.indexOf(o[e],e)}syncMoves(e){const t=`move${(0,i.toUpperCaseFirst)(r(h,this))}s`;r(u,this).getEngine().batch(()=>{e.forEach(e=>{const o=e.from!==e.to,i=e.from+1!==e.to;o&&i&&r(u,this).getEngine()[t](r(u,this).getSheetId(),e.from,1,e.to)})})}storeMovesInformation(e,t,o){!1!==o&&(a(g,this,e.map(e=>this.getHfIndexFromVisualIndex(e))),a(f,this,this.getHfIndexFromVisualIndex(t)))}calculateAndSyncMoves(e,t){if(r(u,this).isPerformingUndoRedo())return;if(!1===e||!1===t)return;const o=(0,s.getMoves)(r(g,this),r(f,this),r(c,this).getNumberOfIndexes());null===r(u,this).getSheetId()?r(u,this).getPostponeAction(()=>this.syncMoves(o)):this.syncMoves(o)}getIndexesChangeSyncMethod(){const e=`set${(0,i.toUpperCaseFirst)(r(h,this))}Order`;return t=>{if(r(u,this).isPerformingUndoRedo())return;const o=r(c,this).getIndexesSequence();if("update"===t&&o.length>0){const t=r(d,this).map(e=>o.indexOf(e)),i=r(u,this).getEngine().getSheetDimensions(r(u,this).getSheetId());let s;s="row"===r(h,this)?i.height:i.width;for(let e=t.length;e<s;e+=1)t.push(e);r(u,this).getEngine()[e](r(u,this).getSheetId(),t)}a(d,this,o)}}init(){a(d,this,r(c,this).getIndexesSequence())}}},59686:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588),o(66182),o(81396),o(81124),o(88633),o(14618);var i=o(76651),s=o(78437),n=o(57455),r=o(99586),a=o(91718),l=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(8278)),h=o(70667),c=o(42732),u=o(5476),d=o(73094),g=o(35764);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){return e.get(C(e,t))}function w(e,t,o){return e.set(C(e,t),o),o}function C(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const v="multipleSelect.itemBox";var y=new WeakMap,S=new WeakMap,E=new WeakMap,R=new WeakMap,b=new WeakMap,_=new WeakMap,T=new WeakSet;class M extends c.BaseUI{static get DEFAULTS(){return(0,s.clone)({className:"htUIMultipleSelect",value:[]})}constructor(e,t){var o,i;super(e,(0,s.extend)(M.DEFAULTS,t)),p(o=this,i=T),i.add(o),f(this,y,[]),f(this,S,void 0),f(this,E,void 0),f(this,R,void 0),f(this,b,void 0),f(this,_,void 0),w(R,this,new u.InputUI(this.hot,{placeholder:l.FILTERS_BUTTONS_PLACEHOLDER_SEARCH,className:"htUIMultipleSelectSearch"})),w(b,this,new d.LinkUI(this.hot,{textContent:l.FILTERS_BUTTONS_SELECT_ALL,className:"htUISelectAll"})),w(_,this,new d.LinkUI(this.hot,{textContent:l.FILTERS_BUTTONS_CLEAR,className:"htUIClearAll"})),this.registerHooks()}getItemsBox(){return m(S,this)}registerHooks(){m(R,this).addLocalHook("keydown",e=>C(T,this,O).call(this,e)),m(R,this).addLocalHook("input",e=>C(T,this,I).call(this,e)),m(b,this).addLocalHook("click",e=>C(T,this,A).call(this,e)),m(_,this).addLocalHook("click",e=>C(T,this,N).call(this,e))}setItems(e){var t;w(y,this,e),null===(t=m(S,this))||void 0===t||t.loadData(m(y,this))}setLocale(e){w(E,this,e)}getLocale(){return m(E,this)}getItems(){return[...m(y,this)]}getValue(){return function(e){const t=[];return e.forEach(e=>{e.checked&&t.push(e.value)}),t}(m(y,this))}getSearchInputElement(){return m(R,this)}getSelectAllElement(){return m(b,this)}getClearAllElement(){return m(_,this)}isSelectedAllValues(){return m(y,this).length===this.getValue().length}build(){var e;super.build();const{rootDocument:t}=this.hot,o=t.createElement("div"),s=new c.BaseUI(this.hot,{className:"htUISelectionControls",children:[m(b,this),m(_,this)]});this._element.appendChild(m(R,this).element),this._element.appendChild(s.element),this._element.appendChild(o),null===(e=m(S,this))||void 0===e||e.destroy(),(0,i.addClass)(o,"htUIMultipleSelectHot"),w(S,this,new this.hot.constructor(o,{data:[[]],columns:[{data:"checked",type:"checkbox",label:{property:"visualValue",position:"after"}}],beforeRenderer:(e,t,o,i,s,n)=>{e.title=n.instance.getDataAtRowProp(t,n.label.property)},afterListen:()=>{this.runLocalHooks("focus",this)},beforeOnCellMouseUp:()=>{m(S,this).listen()},modifyColWidth:e=>{const o=m(S,this).container.scrollWidth-(0,i.getScrollbarWidth)(t);return void 0!==e&&e<o?o:e},autoColumnSize:!0,autoRowSize:!1,hiddenRows:!0,maxCols:1,autoWrapCol:!0,height:110,copyPaste:!1,disableVisualSelection:"area",fillHandle:!1,fragmentSelection:"cell",tabMoves:{row:1,col:0},themeName:this.hot.getCurrentThemeName(),layoutDirection:this.hot.isRtl()?"rtl":"ltr"})),m(S,this).init();const n=m(S,this).getShortcutManager().getContext("grid");n.removeShortcutsByKeys(["Tab"]),n.removeShortcutsByKeys(["Shift","Tab"]),n.addShortcut({keys:[["Escape"]],callback:e=>{this.runLocalHooks("keydown",e,this)},group:v}),n.addShortcut({keys:[["Tab"],["Shift","Tab"]],callback:e=>{m(S,this).deselectCell(),this.runLocalHooks("keydown",e,this),this.runLocalHooks("listTabKeydown",e,this)},group:v})}focus(){this.isBuilt()&&m(S,this).listen()}reset(){m(R,this).reset(),m(b,this).reset(),m(_,this).reset()}update(){this.isBuilt()&&0!==m(S,this).rootElement.offsetHeight&&(m(S,this).updateSettings({data:P(m(y,this),this.options.value)}),super.update())}destroy(){var e;null===(e=m(S,this))||void 0===e||e.destroy(),m(R,this).destroy(),m(_,this).destroy(),m(b,this).destroy(),w(R,this,null),w(_,this,null),w(b,this,null),w(S,this,null),w(y,this,null),super.destroy()}}function I(e){const t=e.target.value.toLocaleLowerCase(this.getLocale());if("apply"===this.options.searchMode){const e=m(S,this).getPlugin("hiddenRows");e.showRows(e.getHiddenRows()),m(y,this).forEach((o,i)=>{o.checked=`${o.value}`.toLocaleLowerCase(this.getLocale()).indexOf(t)>=0,o.checked||e.hideRow(i)}),m(S,this).view.adjustElementsSize(),m(S,this).render()}else{let e;e=""===t?[...m(y,this)]:m(y,this).filter(e=>`${e.value}`.toLocaleLowerCase(this.getLocale()).indexOf(t)>=0),m(S,this).loadData(e)}}function O(e){this.runLocalHooks("keydown",e,this);(0,r.partial)(n.isKey,e.keyCode)("ARROW_DOWN")&&(e.preventDefault(),(0,h.stopImmediatePropagation)(e),m(S,this).listen(),m(S,this).selectCell(0,0))}function A(e){const t=[];e.preventDefault(),m(S,this).getSourceData().forEach((e,o)=>{e.checked=!0,t.push((0,a.dataRowToChangesArray)(e,o)[0])}),m(S,this).setSourceDataAtCell(t)}function N(e){const t=[];e.preventDefault(),m(S,this).getSourceData().forEach((e,o)=>{e.checked=!1,t.push((0,a.dataRowToChangesArray)(e,o)[0])}),m(S,this).setSourceDataAtCell(t)}t.MultipleSelectUI=M;t.default=M;function P(e,t){const o=(0,g.createArrayAssertion)(t);return e.map(e=>(e.checked=o(e.value),e))}},59719:(e,t,o)=>{"use strict";o(81396),o(88633),t.__esModule=!0;var i={BottomInlineStartCornerOverlay:!0,BottomOverlay:!0,InlineStartOverlay:!0,Overlay:!0,TopInlineStartCornerOverlay:!0,TopOverlay:!0},s=o(91740);t.BottomInlineStartCornerOverlay=s.BottomInlineStartCornerOverlay;var n=o(94956);t.BottomOverlay=n.BottomOverlay;var r=o(17608);t.InlineStartOverlay=r.InlineStartOverlay;var a=o(61651);t.Overlay=a.Overlay;var l=o(56676);t.TopInlineStartCornerOverlay=l.TopInlineStartCornerOverlay;var h=o(3284);t.TopOverlay=h.TopOverlay;var c=o(82858);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===c[e]||(t[e]=c[e]))})},59839:(e,t,o)=>{"use strict";var i=o(27538),s=o(87681),n=o(69946),r=o(11127),a=o(88049);i({target:"Array",proto:!0},{at:function(e){var t=s(this),o=n(t),i=r(e),a=i>=0?i:o+i;return a<0||a>=o?void 0:t[a]}}),a("at")},59899:(e,t,o)=>{"use strict";var i=o(19596),s=o(52270),n=i.document,r=s(n)&&s(n.createElement);e.exports=function(e){return r?n.createElement(e):{}}},60054:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(95220);t.command={name:"editorCloseAndSaveByArrowKeys",callback(e,t,o){const s=e._getEditorManager(),n=s.getActiveEditor();n.isInFullEditMode()&&n.state===i.EDITOR_STATE.EDITING||(s.closeEditorAndSaveChanges(),e.getSelected()&&(o.includes("arrowdown")?e.selection.transformStart(1,0):o.includes("arrowup")?e.selection.transformStart(-1,0):o.includes("arrowleft")?e.selection.transformStart(0,-1*e.getDirectionFactor()):o.includes("arrowright")&&e.selection.transformStart(0,e.getDirectionFactor())),t.preventDefault())}}},60062:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(42479),r=i(o(92484)),a=i(o(90925));function l(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}const h=t.PLUGIN_KEY="bindRowsWithHeaders",c=t.PLUGIN_PRIORITY=210,u=new Map([["loose",r.default],["strict",a.default]]);var d=new WeakSet;class g extends n.BasePlugin{constructor(){super(...arguments),l(this,d),(0,s.default)(this,"headerIndexes",null)}static get PLUGIN_KEY(){return h}static get PLUGIN_PRIORITY(){return c}isEnabled(){return!!this.hot.getSettings()[h]}enablePlugin(){var e;if(this.enabled)return;const t=null!==(e=u.get(this.getSetting()))&&void 0!==e?e:u.get("loose");this.headerIndexes=this.hot.rowIndexMapper.registerMap("bindRowsWithHeaders",new t),this.addHook("modifyRowHeader",e=>function(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}(d,this,f).call(this,e)),super.enablePlugin()}disablePlugin(){this.hot.rowIndexMapper.unregisterMap("bindRowsWithHeaders"),super.disablePlugin()}destroy(){super.destroy()}}function f(e){return this.headerIndexes.getValueAtIndex(this.hot.toPhysicalRow(e))}t.BindRowsWithHeaders=g},60225:(e,t,o)=>{"use strict";var i=o(27538),s=o(19596),n=o(91733).set,r=o(68060),a=s.setImmediate?r(n,!1):n;i({global:!0,bind:!0,enumerable:!0,forced:s.setImmediate!==a},{setImmediate:a})},60354:(e,t,o)=>{"use strict";o(47183)},60369:(e,t,o)=>{"use strict";var i=o(58719),s=o(19596),n=o(22381),r="__core-js_shared__",a=e.exports=s[r]||n(r,{});(a.versions||(a.versions=[])).push({version:"3.46.0",mode:i?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE",source:"https://github.com/zloirock/core-js"})},60599:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(43662);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.TrimRows=i.TrimRows},60780:(e,t,o)=>{"use strict";t.__esModule=!0,t.installFocusDetector=function(e,t){const o=r(e,n.FOCUS_SOURCES.TAB_FROM_ABOVE),i=r(e,n.FOCUS_SOURCES.TAB_FROM_BELOW);return t.prepend(o),t.append(i),{activate(){o.tabIndex=0,i.tabIndex=0},deactivate(){o.tabIndex=-1,i.tabIndex=-1},destroy(){o.remove(),i.remove()}}};var i=o(76651),s=o(3226),n=o(49669);function r(e,t){const o=e.rootDocument.createElement("input");return o.type="text",o.name="htFocusCatcher",o.classList.add("htFocusCatcher"),o.dataset.htFocusSource=t,e.getSettings().ariaTags&&(0,i.setAttribute)(o,[(0,s.A11Y_LABEL)("Focus catcher")]),o}},60808:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.default=function(e,t,o){if("function"==typeof r[e])return new r[e](t,o);return null};var s=i(o(82480));const n=t.TYPE_CSV="csv",r=(t.TYPE_EXCEL="excel",t.TYPE_PDF="pdf",t.EXPORT_TYPES={[n]:s.default})},61089:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(51736);t.EDITOR_TYPE=i.EDITOR_TYPE,t.AutocompleteEditor=i.AutocompleteEditor},61276:(e,t,o)=>{"use strict";o(81396),o(88633),t.__esModule=!0;var i=o(57849);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))})},61338:(e,t,o)=>{"use strict";var i=o(49510),s=o(91945);e.exports=function(e,t){var o=e[t];return s(o)?void 0:i(o)}},61521:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182);var s=i(o(81115)),n=o(58639);t.default=class{constructor(e){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"options",{}),this.hot=e}setOptions(e){this.options=e}getData(){const{startRow:e,startCol:t,endRow:o,endCol:i}=this._getDataRange(),s=this.options,r=[];return(0,n.rangeEach)(e,o,e=>{const o=[];!s.exportHiddenRows&&this._isHiddenRow(e)||((0,n.rangeEach)(t,i,t=>{!s.exportHiddenColumns&&this._isHiddenColumn(t)||o.push(this.hot.getDataAtCell(e,t))}),r.push(o))}),r}getRowHeaders(){const e=[];if(this.options.rowHeaders){const{startRow:t,endRow:o}=this._getDataRange(),i=this.hot.getRowHeader();(0,n.rangeEach)(t,o,t=>{!this.options.exportHiddenRows&&this._isHiddenRow(t)||e.push(i[t])})}return e}getColumnHeaders(){const e=[];if(this.options.columnHeaders){const{startCol:t,endCol:o}=this._getDataRange(),i=this.hot.getColHeader();(0,n.rangeEach)(t,o,t=>{!this.options.exportHiddenColumns&&this._isHiddenColumn(t)||e.push(i[t])})}return e}_getDataRange(){const e=this.hot.countCols()-1,t=this.hot.countRows()-1;let[o=0,i=0,s=t,n=e]=this.options.range;return o=Math.max(o,0),i=Math.max(i,0),s=Math.min(s,t),n=Math.min(n,e),{startRow:o,startCol:i,endRow:s,endCol:n}}_isHiddenRow(e){return this.hot.rowIndexMapper.isHidden(this.hot.toPhysicalRow(e))}_isHiddenColumn(e){return this.hot.columnIndexMapper.isHidden(this.hot.toPhysicalColumn(e))}}},61570:(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(81396),o(14618);var i=o(99586),s=o(94857)},61635:(e,t,o)=>{"use strict";var i=o(8467),s=o(94988),n=o(93428),r=o(64649),a=o(16539),l=s([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=n.f(a(e)),o=r.f;return o?l(t,o(e)):t}},61651:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(76651),r=o(78437),a=o(49581),l=o(82858),h=i(o(30543)),c=o(3226);t.Overlay=class{constructor(e,t,o,i,a){(0,s.default)(this,"wtSettings",null),(0,r.defineGetter)(this,"wot",e,{writable:!1}),this.domBindings=a,this.facadeGetter=t,this.wtSettings=i;const{TABLE:l,hider:h,spreader:c,holder:u,wtRootElement:d}=this.wot.wtTable;this.instance=this.wot,this.type=o,this.mainTableScrollableElement=null,this.TABLE=l,this.hider=h,this.spreader=c,this.holder=u,this.wtRootElement=d,this.trimmingContainer=(0,n.getTrimmingContainer)(this.hider.parentNode.parentNode),this.needFullRender=this.shouldBeRendered(),this.clone=this.makeClone()}hasRenderingStateChanged(){return this.needFullRender!==this.shouldBeRendered()}updateStateOfRendering(e){"before"===e&&this.shouldBeRendered()?this.needFullRender=!0:"after"!==e||this.shouldBeRendered()||(this.needFullRender=!1)}shouldBeRendered(){return!0}updateTrimmingContainer(){this.trimmingContainer=(0,n.getTrimmingContainer)(this.hider.parentNode.parentNode)}updateMainScrollableElement(){const{wtTable:e}=this.wot,{rootWindow:t}=this.domBindings;"hidden"===t.getComputedStyle(e.wtRootElement.parentNode).getPropertyValue("overflow")?this.mainTableScrollableElement=this.wot.wtTable.holder:this.mainTableScrollableElement=(0,n.getScrollableElement)(e.TABLE)}getRelativeCellPosition(e,t,o){if(!1===this.clone.wtTable.holder.contains(e))return void(0,a.warn)(`The provided element is not a child of the ${this.type} overlay`);const i=this.mainTableScrollableElement===this.domBindings.rootWindow,s=o<this.wtSettings.getSetting("fixedColumnsStart"),n=t<this.wtSettings.getSetting("fixedRowsTop"),r=t>=this.wtSettings.getSetting("totalRows")-this.wtSettings.getSetting("fixedRowsBottom"),l=this.clone.wtTable.spreader,h={start:this.getRelativeStartPosition(l),top:l.offsetTop},c={start:this.getRelativeStartPosition(e),top:e.offsetTop};let u=null;return u=i?this.getRelativeCellPositionWithinWindow(n,s,c,h):this.getRelativeCellPositionWithinHolder(n,r,s,c,h),u}getRelativeStartPosition(e){return this.isRtl()?e.offsetParent.offsetWidth-e.offsetLeft-e.offsetWidth:e.offsetLeft}getRelativeCellPositionWithinWindow(e,t,o,i){const s=this.wot.wtTable.wtRootElement.getBoundingClientRect();let r=0,a=0;if(t){let e=s.left;this.isRtl()&&(e=this.domBindings.rootWindow.innerWidth-(s.left+s.width+(0,n.getScrollbarWidth)())),r=e<=0?-1*e:0}else r=i.start;if(e){a=this.clone.wtTable.TABLE.getBoundingClientRect().top-s.top}else a=i.top;return{start:o.start+r,top:o.top+a}}getRelativeCellPositionWithinHolder(e,t,o,i,s){const n=this.wot.wtOverlays.inlineStartOverlay.getScrollPosition(),r=this.wot.wtOverlays.topOverlay.getScrollPosition();let a=0,l=0;if(o||(a=n-s.start),t){const e=this.wot.wtTable.wtRootElement.getBoundingClientRect();l=-1*this.clone.wtTable.TABLE.getBoundingClientRect().top+e.top}else e||(l=r-s.top);return{start:i.start-a,top:i.top-l}}makeClone(){if(-1===l.CLONE_TYPES.indexOf(this.type))throw new Error(`Clone type "${this.type}" is not supported.`);const{wtTable:e,wtSettings:t}=this.wot,{rootDocument:o,rootWindow:i}=this.domBindings,s=o.createElement("div"),r=o.createElement("table"),a=e.wtRootElement.parentNode;s.className=`${l.CLONE_CLASS_NAMES.get(this.type)} handsontable`,s.setAttribute("dir",this.isRtl()?"rtl":"ltr"),s.style.position="absolute",s.style.top=0,s.style.overflow="visible",this.isRtl()?s.style.right=0:s.style.left=0,t.getSetting("ariaTags")&&(0,n.setAttribute)(s,[(0,c.A11Y_PRESENTATION)()]),r.className=e.TABLE.className;e.TABLE.getAttribute("role")&&r.setAttribute("role",e.TABLE.getAttribute("role")),s.appendChild(r),a.appendChild(s);const u=this.wtSettings.getSetting("preventOverflow");return!0===u||"horizontal"===u&&this.type===l.CLONE_TOP||"vertical"===u&&this.type===l.CLONE_INLINE_START?this.mainTableScrollableElement=i:"hidden"===i.getComputedStyle(a).getPropertyValue("overflow")?this.mainTableScrollableElement=e.holder:this.mainTableScrollableElement=(0,n.getScrollableElement)(e.TABLE),new h.default(r,this.wtSettings,{source:this.wot,overlay:this,viewport:this.wot.wtViewport,event:this.wot.wtEvent,selectionManager:this.wot.selectionManager})}refresh(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.needFullRender){const t=this.clone.cloneSource;t.activeOverlayName=this.clone.wtTable.name,this.clone.draw(e),t.activeOverlayName="master"}}reset(){const e=this.clone.wtTable.holder,t=this.clone.wtTable.hider;[e.style,t.style,e.parentNode.style].forEach(e=>{e.width="",e.height=""})}isRtl(){return this.wtSettings.getSetting("rtlMode")}destroy(){this.clone.eventManager.destroy()}}},61989:(e,t,o)=>{"use strict";var i=o(53269),s=o(497);e.exports=function(e){var t=i(e,"string");return s(t)?t:t+""}},62103:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=o(78437),n=i(o(86248));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},62517:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182);var s=i(o(81115));t.AutoPageSizeStrategy=class{constructor(){(0,s.default)(this,"pages",[])}calculate(e){let{itemsSizeProvider:t,viewportSizeProvider:o}=e;const i=t(),s=o(),n=[];let r=0,a=0,l=0;for(let e=0;e<i.length;e++){const t=i[e];l>0&&a+t>=s&&(n.push({startIndex:r,endIndex:e-1,pageSize:l}),r=e,a=0,l=0),a+=t,l+=1}n.push({startIndex:r,endIndex:Math.max(0,i.length-1),pageSize:l}),this.pages=n}getTotalPages(){return this.pages.length}getState(e){if(!((e-=1)<0||e>=this.getTotalPages()))return this.pages[e]}}},62731:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_REDO)},callback(){this.getPlugin("undoRedo").redo()},hidden(){const e=this.getPlugin("undoRedo");return!e||!e.isEnabled()},disabled(){return!this.getPlugin("undoRedo").isRedoAvailable()}}};var 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(8278));const s=t.KEY="redo"},62831:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(68750);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.HiddenRows=i.HiddenRows},63340:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(93232);class r extends n.BaseAction{constructor(e){let{index:t,amount:o}=e;super("insert_col"),(0,s.default)(this,"index",void 0),(0,s.default)(this,"amount",void 0),this.index=t,this.amount=o}static startRegisteringEvents(e,t){e.addHook("afterCreateCol",(e,o,i)=>{t.done(()=>new r({index:e,amount:o}),i)})}undo(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.undo")}redo(e,t){e.addHookOnce("afterCreateCol",t),e.alter("insert_col_start",this.index,this.amount,"UndoRedo.redo")}}t.CreateColumnAction=r},63342:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(78437),r=o(84029),a=i(o(428));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)}}},63464:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostInlineEnd",callback(e){const{selection:t,columnIndexMapper:o}=e,{highlight:i,from:s,to:n}=e.getSelectedRangeActive();if(!t.isSelectedByRowHeader()&&!t.isSelectedByCorner()&&i.isCell()){const r=o.getNearestNotHiddenIndex(e.countCols()-1,-1),a=s.clone();a.col=i.col,t.markSource("keyboard"),t.setRangeStart(a,void 0,!1,i.clone()),t.setRangeEnd(e._createCellCoords(n.row,r)),t.markEndSource()}}}},63545:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:n,name(){const e=this.getSelected();let t=0;if(e)if(e.length>1)t=1;else{const[,o,,i]=e[0];o-i!==0&&(t=1)}return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_REMOVE_COLUMN,t)},callback(){this.alter("remove_col",(0,i.transformSelectionToColumnDistance)(this),null,"ContextMenu.removeColumn")},disabled(){if(!this.isColumnModificationAllowed())return!0;const e=this.getSelectedRangeActive();if(!e)return!0;if(e.isSingleHeader()&&e.highlight.col<0)return!0;const t=this.countCols();return this.selection.isSelectedByCorner()?0===t:this.selection.isSelectedByRowHeader()||0===t},hidden(){return!this.getSettings().allowRemoveColumn}}};var i=o(32634),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(8278));const n=t.KEY="remove_col"},63556:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182);var s=i(o(81115)),n=o(76651),r=o(70667),a=o(78437),l=o(24496),h=o(42479),c=i(o(23892)),u=i(o(34706)),d=o(50151),g=i(o(40578)),f=i(o(17181)),p=i(o(55595));function m(e,t,o){w(e,t),t.set(e,o)}function w(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(y(e,t),o),o}function v(e,t){return e.get(y(e,t))}function y(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const S=t.PLUGIN_KEY="comments",E=t.PLUGIN_PRIORITY=60,R=t.META_COMMENT="comment",b=t.META_COMMENT_VALUE="value",_=t.META_STYLE="style",T=t.META_READONLY="readOnly",M=S,I=`plugin:${S}`;var O=new WeakMap,A=new WeakMap,N=new WeakMap,P=new WeakMap,H=new WeakMap,x=new WeakMap,k=new WeakMap,D=new WeakSet;class L extends h.BasePlugin{constructor(){var e,t;super(...arguments),w(e=this,t=D),t.add(e),(0,s.default)(this,"range",{}),m(this,O,null),m(this,A,null),m(this,N,!1),m(this,P,!1),m(this,H,!1),m(this,x,null),m(this,k,"")}static get PLUGIN_KEY(){return S}static get PLUGIN_PRIORITY(){return E}static get DEFAULT_SETTINGS(){return{displayDelay:250}}isEnabled(){return!!this.hot.getSettings()[S]}enablePlugin(){var e=this;this.enabled||(v(O,this)||(C(O,this,new c.default(this.hot.rootDocument,this.hot.isRtl(),this.hot.rootPortalElement)),v(O,this).addLocalHook("resize",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return y(D,e,G).call(e,...o)}),this.hot.addHook("afterSetTheme",(e,t)=>{t||this.hide()})),v(A,this)||C(A,this,new u.default(this.getSetting("displayDelay"))),this.addHook("afterContextMenuDefaultOptions",e=>this.addToContextMenu(e)),this.addHook("afterRenderer",(e,t,o,i,s,n)=>y(D,this,U).call(this,e,n)),this.addHook("afterScroll",()=>y(D,this,$).call(this)),this.addHook("afterBeginEditing",()=>this.hide()),this.addHook("afterDocumentKeyDown",e=>y(D,this,z).call(this,e)),this.addHook("beforeCompositionStart",e=>y(D,this,z).call(this,e)),v(A,this).addLocalHook("hide",()=>this.hide()),v(A,this).addLocalHook("show",(e,t)=>this.showAtCell(e,t)),this.registerShortcuts(),this.registerListeners(),super.enablePlugin())}updatePlugin(){v(A,this).updateDelay(this.getSetting("displayDelay")),super.updatePlugin()}disablePlugin(){this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){const e=this.hot.getShortcutManager(),t=e.getContext("grid"),o=e.addContext(I);t.addShortcut({keys:[["Control","Alt","M"]],callback:()=>{const t=this.hot.getSelectedRangeActive();C(P,this,!0),this.hot.scrollToFocusedCell(()=>{this.setRange(t),this.show(),this.focusEditor(),e.setActiveContextName(I),this.hot._registerTimeout(()=>{C(P,this,!1)})})},stopPropagation:!0,runOnlyIf:()=>{var e;return null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.highlight.isCell()},group:M}),o.addShortcut({keys:[["Escape"]],callback:()=>{v(O,this).setValue(v(k,this)),this.hide(),e.setActiveContextName("grid")},runOnlyIf:()=>v(O,this).isVisible()&&v(O,this).isFocused(),group:M}),o.addShortcut({keys:[["Control/Meta","Enter"]],callback:()=>{this.hide(),e.setActiveContextName("grid")},runOnlyIf:()=>v(O,this).isVisible()&&v(O,this).isFocused(),group:M}),o.addShortcut({keys:[["Shift","Tab"],["Tab"]],forwardToContext:e.getContext("grid"),callback:()=>{C(H,this,!0),v(O,this).setValue(v(O,this).getValue()),this.setComment(),this.hide(),e.setActiveContextName("grid")},group:M})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(M)}registerListeners(){const{rootDocument:e}=this.hot,t=this.getEditorInputElement();this.eventManager.addEventListener(e,"mouseover",e=>y(D,this,F).call(this,e)),this.eventManager.addEventListener(e,"mousedown",e=>y(D,this,V).call(this,e)),this.eventManager.addEventListener(e,"mouseup",()=>y(D,this,B).call(this)),this.eventManager.addEventListener(t,"focus",()=>y(D,this,j).call(this)),this.eventManager.addEventListener(t,"blur",()=>y(D,this,Y).call(this)),this.eventManager.addEventListener(this.getEditorInputElement(),"mousedown",e=>y(D,this,W).call(this,e))}setRange(e){this.range=e}clearRange(){this.range={}}targetIsCellWithComment(e){const t=(0,n.closest)(e.target,"TD","TBODY");return!!(t&&(0,n.hasClass)(t,"htCommentCell")&&(0,n.closest)(t,[this.hot.rootElement]))}targetIsCommentTextArea(e){return this.getEditorInputElement()===e.target}setComment(e){if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');const t=v(O,this).getValue();let o="";null!=e?o=e:null!=t&&(o=t);const{row:i,col:s}=y(D,this,K).call(this);this.updateCommentMeta(i,s,{[b]:o}),this.hot.render()}setCommentAtCell(e,t,o){this.setRange({from:this.hot._createCellCoords(e,t)}),this.setComment(o)}removeComment(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');const{row:t,col:o}=y(D,this,K).call(this);this.hot.setCellMeta(t,o,R),e&&this.hot.render(),this.hide()}removeCommentAtCell(e,t){let o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.setRange({from:this.hot._createCellCoords(e,t)}),this.removeComment(o)}getComment(){const{row:e,col:t}=y(D,this,K).call(this);return this.getCommentMeta(e,t,b)}getCommentAtCell(e,t){return this.getCommentMeta(e,t,b)}show(){var e;if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');const{row:t,col:o}=y(D,this,K).call(this);if(t<0||t>this.hot.countSourceRows()-1||o<0||o>this.hot.countSourceCols()-1)return!1;const i=this.hot.getCellMeta(t,o);return v(A,this).cancelHiding(),v(O,this).setValue(null!==(e=i[R]?i[R][b]:null)&&void 0!==e?e:""),v(O,this).show(),this.refreshEditor(!0),!0}showAtCell(e,t){return this.setRange({from:this.hot._createCellCoords(e,t)}),this.show()}hide(){v(O,this).hide()}refreshEditor(){if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this.range.from&&v(O,this).isVisible()))return;const{rowIndexMapper:e,columnIndexMapper:t}=this.hot,{row:o,col:i}=y(D,this,K).call(this);let s=e.getRenderableFromVisualIndex(o),r=t.getRenderableFromVisualIndex(i);const a=null===s;v(O,this).setPosition(0,0),null===s&&(s=e.getRenderableFromVisualIndex(e.getNearestNotHiddenIndex(o,-1))),null===r&&(r=t.getRenderableFromVisualIndex(t.getNearestNotHiddenIndex(i,-1)));const l=null===s,h=null===r;s=null!=s?s:0,r=null!=r?r:0;const{rootWindow:c,view:{_wt:u}}=this.hot,{wtTable:d}=u,g=u.getCell({row:s,col:r},!0),f=this.getCommentMeta(o,i,_);f?v(O,this).setSize(f.width,f.height):v(O,this).resetSize();const p=h?0:d.getColumnWidth(r),m=a&&!l?(0,n.outerHeight)(g):0,{left:w,top:C,width:S,height:E}=g.getBoundingClientRect(),{width:R,height:b}=v(O,this).getSize(),{innerWidth:M,innerHeight:I}=this.hot.rootWindow,A=this.hot.rootDocument.documentElement,N=(0,n.getScrollbarWidth)(this.hot.rootDocument),P=(0,n.hasVerticalScrollbar)(this.hot.rootWindow)?N:0,H=(0,n.hasHorizontalScrollbar)(this.hot.rootWindow)?N:0;let x=w+c.scrollX+p,k=C+c.scrollY+m;this.hot.isRtl()&&(x-=R+p),this.hot.isLtr()&&w+S+R>M-P?x=w+c.scrollX-R-1:this.hot.isRtl()&&x<-(A.scrollWidth-A.clientWidth)&&(x=w+c.scrollX+p+1),C+b>I-H&&(k-=b-E+1),v(O,this).setPosition(x,k),v(O,this).setReadOnlyState(this.getCommentMeta(o,i,T)),v(O,this).observeSize()}focusEditor(){v(O,this).focus()}updateCommentMeta(e,t,o){const i=this.hot.getCellMeta(e,t)[R];let s;i?(s=(0,a.deepClone)(i),(0,a.deepExtend)(s,o)):s=o,this.hot.setCellMeta(e,t,R,s)}getCommentMeta(e,t,o){const i=this.hot.getCellMeta(e,t);if(i[R])return i[R][o]}addToContextMenu(e){e.items.push({name:d.SEPARATOR},(0,g.default)(this),(0,f.default)(this),(0,p.default)(this))}getEditorInputElement(){return v(O,this).getInputElement()}destroy(){var e,t;null===(e=v(O,this))||void 0===e||e.destroy(),null===(t=v(A,this))||void 0===t||t.destroy(),super.destroy()}}function V(e){if(this.hot.view&&this.hot.view._wt&&!v(N,this)&&!this.targetIsCommentTextArea(e)){const t=(0,n.closest)(e.target,"TD","TBODY");let o=null;t&&(o=this.hot.getCoords(t)),(!t||this.range.from&&o&&(this.range.from.row!==o.row||this.range.from.col!==o.col))&&this.hide()}}function W(e){e.stopPropagation()}function F(e){const{rootDocument:t}=this.hot;if(!(v(N,this)||v(O,this).isFocused()||(0,n.hasClass)(e.target,"wtBorder")||v(x,this)===e.target)&&v(O,this))if(C(x,this,t.elementFromPoint(e.clientX,e.clientY)),this.targetIsCellWithComment(e)){const t=this.hot._createCellRange(this.hot.getCoords(e.target));v(A,this).show(t)}else(0,n.isChildOf)(e.target,t)&&!this.targetIsCommentTextArea(e)&&v(A,this).hide()}function B(){C(N,this,!1)}function U(e,t){t[R]&&t[R][b]&&(0,n.addClass)(e,t.commentedCellClassName)}function Y(){v(H,this)?C(H,this,!1):(C(k,this,""),this.hot.getShortcutManager().setActiveContextName("grid"),this.setComment())}function j(){C(k,this,this.getComment()),this.hot.listen(),this.hot.getShortcutManager().setActiveContextName(I)}function G(e,t){const{row:o,col:i}=y(D,this,K).call(this);this.updateCommentMeta(o,i,{[_]:{width:e,height:t}})}function z(e){v(O,this).isFocused()&&(0,r.stopImmediatePropagation)(e)}function $(){v(P,this)||this.hide()}function K(){return this.range instanceof l.CellRange?this.range.highlight:this.hot._createCellCoords(this.range.from.row,this.range.from.col)}t.Comments=L},63636:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182);var s=i(o(81115)),n=o(29213),r=o(68547);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}}},64172:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(81396),o(88633);var s=i(o(81115)),n=o(76651),r=o(99586),a=i(o(75949)),l=i(o(90235)),h=o(68234),c=i(o(12010)),u=i(o(84234)),d=o(59719),g=o(3226);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}}},64326:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115));class n{constructor(e){(0,s.default)(this,"data",void 0),(0,s.default)(this,"next",null),(0,s.default)(this,"prev",null),this.data=e}}t.NodeStructure=n;t.default=class{constructor(){(0,s.default)(this,"first",null),(0,s.default)(this,"last",null)}push(e){const t=new n(e);if(null===this.first)this.first=t,this.last=t;else{const e=this.last;this.last=t,t.prev=e,e.next=t}return t}unshift(e){const t=new n(e);if(null===this.first)this.first=t,this.last=t;else{const e=this.first;this.first=t,t.next=e,e.prev=t}}inorder(e){let t=this.first;for(;t;){const o=e(t);if(t===this.last||!0===o)break;t=t.next}}remove(e){if(null===this.first)return!1;let t,o,i=this.first;for(;i;){if(i.data===e)return t=i.next,o=i.prev,t&&(t.prev=o),o&&(o.next=t),i===this.first&&(this.first=t),i===this.last&&(this.last=o),!0;i=i.next}return!1}hasCycle(){let e=this.first,t=this.first;for(;;){if(null===e)return!1;if(e=e.next,null===e)return!1;if(e=e.next,t=t.next,e===t)return!0}}pop(){if(null===this.last)return null;const e=this.last;return this.last=this.last.prev,e}shift(){if(null===this.first)return null;const e=this.first;return this.first=this.first.next,e}recursiveReverse(){if(!this.first)return;!function e(t,o){o&&(e(o,o.next),o.next=t)}(this.first,this.first.next),this.first.next=null;const e=this.first;this.first=this.last,this.last=e}reverse(){if(!this.first||!this.first.next)return;let e,t=this.first.next,o=this.first;for(;t;)e=t.next,t.next=o,o.prev=t,o=t,t=e;this.first.next=null,this.last.prev=null,e=this.first,this.first=o,this.last=e}}},64334:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.getPhraseFormatters=t.getAll=function(){return l()},t.registerPhraseFormatter=t.register=h;var s=o(43641),n=i(o(11558)),r=i(o(66847));const{register:a,getValues:l}=(0,s.staticRegister)("phraseFormatters");function h(e,t){a(e,t)}h("pluralize",n.default),h("substitute",r.default)},64380:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.getDateFromExcelDate=function(e,t){const o=new Date(Date.UTC(0,0,e+-1));return(0,s.default)(o).format(t)},t.getDateInHfFormat=function(e,t){return(0,s.default)(e,t,!0).format(n)},t.getDateInHotFormat=function(e,t){return(0,s.default)(e,n,!0).format(t)},t.isDate=function(e,t){return"string"==typeof e&&"date"===t},t.isDateValid=function(e,t){return(0,s.default)(e,t,!0).isValid()},t.isEscapedFormulaExpression=r,t.isFormula=function(e){return"string"==typeof e&&e.startsWith("=")},t.unescapeFormulaExpression=function(e){return r(e)?e.substr(1):e};var s=i(o(86798));const n="DD/MM/YYYY";function r(e){return"string"==typeof e&&"'"===e.charAt(0)&&"="===e.charAt(1)}},64536:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(23154);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.TouchScroll=i.TouchScroll},64649:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},64721:(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()}}}},64854:(e,t,o)=>{"use strict";var i=o(11127),s=Math.max,n=Math.min;e.exports=function(e,t){var o=i(e);return o<0?s(o+t,0):n(o,t)}},64945:(e,t,o)=>{"use strict";t.__esModule=!0,o(81396),o(19874);t.command={name:"moveCellSelectionInlineStart",callback(e,t){const{selection:o}=e,i=e.getSettings(),s=e.getSelectedRange(),n=e.getSelectedRangeActive(),r="function"==typeof i.tabMoves?i.tabMoves(t):i.tabMoves;o.markSource("keyboard"),(s.some(e=>o.isMultiple(e))||s.length>1)&&!n.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0?o.transformFocus(r.row,r.col):o.transformStart(r.row,r.col),o.markEndSource()}}},64956:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(81396),o(81124);var s=i(o(81115)),n=o(76651),r=o(70667),a=o(94857),l=o(57455),h=o(78437),c=m(o(8278)),u=o(24293),d=m(o(96)),g=o(5476),f=o(90370),p=o(76742);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},65022:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(79356)),n=o(76651);class r extends s.default{build(){super.build(),(0,n.addClass)(this._element,"ht__manualRowMove--guideline")}}t.default=r},65146:(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}},65166:t=>{"use strict";t.exports=e},65192:(e,t,o)=>{"use strict";t.__esModule=!0,t.operationResult=a,o(22588),o(81396),o(19874);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(8278)),s=o(14251);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)},65688:(e,t,o)=>{"use strict";var i=o(78656);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(8278)),r=o(76742);const a=t.CONDITION_NAME="date_yesterday";function l(e){const t=(0,s.default)(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame((0,s.default)().subtract(1,"days").startOf("day"),"d")}(0,r.registerCondition)(a,l,{name:n.FILTERS_CONDITIONS_YESTERDAY,inputsCount:0})},65725:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(34149);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(h(e,t))}function l(e,t,o){return e.set(h(e,t),o),o}function h(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var c=new WeakMap;t.default=class{constructor(e,t,o,i,n,a){(0,s.default)(this,"row",void 0),(0,s.default)(this,"col",void 0),(0,s.default)(this,"rowspan",void 0),(0,s.default)(this,"colspan",void 0),(0,s.default)(this,"removed",!1),(0,s.default)(this,"cellCoordsFactory",void 0),(0,s.default)(this,"cellRangeFactory",void 0),r(this,c,null),this.row=e,this.col=t,this.rowspan=o,this.colspan=i,this.cellCoordsFactory=n,this.cellRangeFactory=a}static NEGATIVE_VALUES_WARNING(e){let{row:t,col:o,rowspan:i,colspan:s}=e;return n.toSingleLine`The merged cell declared with {row: ${t}, col: ${o},\x20
80
+ This combination is not supported. The plugin will remain disabled.`),o})};var i=o(34149),s=o(49581);const n=["nestedRows","mergeCells","fixedRowsTop","fixedRowsBottom"]},46808:(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(688),s=o(6888),n=o(26599);t.COLUMN_DATA_TYPE="checkbox"},46842:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(79060);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.Pagination=i.Pagination},46924:(e,t,o)=>{"use strict";var i=o(771);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(i)},47138:(e,t,o)=>{"use strict";var i=o(24755),s=TypeError;e.exports=function(e,t){if(!delete e[t])throw new s("Cannot delete property "+i(t)+" of "+i(e))}},47145:(e,t,o)=>{"use strict";var i=o(21912),s=o(89035),n=o(59899);e.exports=!i&&!s(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})},47151:(e,t,o)=>{"use strict";var i=o(21375),s=o(61338),n=o(91945),r=o(35097),a=o(71671)("iterator");e.exports=function(e){if(!n(e))return s(e,a)||s(e,"@@iterator")||r[i(e)]}},47183:(e,t,o)=>{"use strict";var i=o(27538),s=o(19617),n=o(49510),r=o(16539),a=o(83203),l=o(13234),h=o(39522),c=o(13479),u=o(58719),d=o(43832),g=o(57625),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})}})},47229:(e,t,o)=>{"use strict";t.__esModule=!0,t.registerAllPlugins=function(){(0,U.registerPlugin)(i.AutoColumnSize),(0,U.registerPlugin)(s.Autofill),(0,U.registerPlugin)(n.AutoRowSize),(0,U.registerPlugin)(a.BindRowsWithHeaders),(0,U.registerPlugin)(l.CollapsibleColumns),(0,U.registerPlugin)(h.ColumnSorting),(0,U.registerPlugin)(c.ColumnSummary),(0,U.registerPlugin)(u.Comments),(0,U.registerPlugin)(d.ContextMenu),(0,U.registerPlugin)(g.CopyPaste),(0,U.registerPlugin)(f.CustomBorders),(0,U.registerPlugin)(p.DragToScroll),(0,U.registerPlugin)(m.DropdownMenu),(0,U.registerPlugin)(w.ExportFile),(0,U.registerPlugin)(C.Filters),(0,U.registerPlugin)(v.Formulas),(0,U.registerPlugin)(y.HiddenColumns),(0,U.registerPlugin)(S.HiddenRows),(0,U.registerPlugin)(E.ManualColumnFreeze),(0,U.registerPlugin)(R.ManualColumnMove),(0,U.registerPlugin)(b.ManualColumnResize),(0,U.registerPlugin)(_.ManualRowMove),(0,U.registerPlugin)(T.ManualRowResize),(0,U.registerPlugin)(M.MergeCells),(0,U.registerPlugin)(I.MultiColumnSorting),(0,U.registerPlugin)(O.MultipleSelectionHandles),(0,U.registerPlugin)(A.NestedHeaders),(0,U.registerPlugin)(N.NestedRows),(0,U.registerPlugin)(P.Pagination),(0,U.registerPlugin)(H.PersistentState),(0,U.registerPlugin)(x.Search),(0,U.registerPlugin)(k.StretchColumns),(0,U.registerPlugin)(D.TouchScroll),(0,U.registerPlugin)(L.TrimRows),(0,U.registerPlugin)(V.UndoRedo),(0,U.registerPlugin)(W.Dialog),(0,U.registerPlugin)(F.Loading),(0,U.registerPlugin)(B.EmptyDataState)};var i=o(88886);t.AutoColumnSize=i.AutoColumnSize;var s=o(7796);t.Autofill=s.Autofill;var n=o(1402);t.AutoRowSize=n.AutoRowSize;var r=o(42479);t.BasePlugin=r.BasePlugin;var a=o(94366);t.BindRowsWithHeaders=a.BindRowsWithHeaders;var l=o(70641);t.CollapsibleColumns=l.CollapsibleColumns;var h=o(99048);t.ColumnSorting=h.ColumnSorting;var c=o(51964);t.ColumnSummary=c.ColumnSummary;var u=o(45024);t.Comments=u.Comments;var d=o(26746);t.ContextMenu=d.ContextMenu;var g=o(36250);t.CopyPaste=g.CopyPaste;var f=o(1316);t.CustomBorders=f.CustomBorders;var p=o(15576);t.DragToScroll=p.DragToScroll;var m=o(29328);t.DropdownMenu=m.DropdownMenu;var w=o(92326);t.ExportFile=w.ExportFile;var C=o(79385);t.Filters=C.Filters;var v=o(78865);t.Formulas=v.Formulas;var y=o(96789);t.HiddenColumns=y.HiddenColumns;var S=o(62831);t.HiddenRows=S.HiddenRows;var E=o(67289);t.ManualColumnFreeze=E.ManualColumnFreeze;var R=o(29099);t.ManualColumnMove=R.ManualColumnMove;var b=o(43458);t.ManualColumnResize=b.ManualColumnResize;var _=o(10441);t.ManualRowMove=_.ManualRowMove;var T=o(7884);t.ManualRowResize=T.ManualRowResize;var M=o(26643);t.MergeCells=M.MergeCells;var I=o(67);t.MultiColumnSorting=I.MultiColumnSorting;var O=o(73335);t.MultipleSelectionHandles=O.MultipleSelectionHandles;var A=o(11797);t.NestedHeaders=A.NestedHeaders;var N=o(21956);t.NestedRows=N.NestedRows;var P=o(46842);t.Pagination=P.Pagination;var H=o(45052);t.PersistentState=H.PersistentState;var x=o(37090);t.Search=x.Search;var k=o(19826);t.StretchColumns=k.StretchColumns;var D=o(64536);t.TouchScroll=D.TouchScroll;var L=o(60599);t.TrimRows=L.TrimRows;var V=o(80716);t.UndoRedo=V.UndoRedo;var W=o(22362);t.Dialog=W.Dialog;var F=o(32310);t.Loading=F.Loading;var B=o(91636);t.EmptyDataState=B.EmptyDataState;var U=o(3182);t.registerPlugin=U.registerPlugin,t.getPlugin=U.getPlugin,t.getPluginsNames=U.getPluginsNames},47572:(e,t,o)=>{"use strict";o(13348),o(60225)},47646:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(81396),o(88633);var s=i(o(81115));t.ViewportBaseCalculator=class{constructor(e){(0,s.default)(this,"calculationTypes",[]),(0,s.default)(this,"calculationResults",new Map),this.calculationTypes=e}_initialize(e){this.calculationTypes.forEach(t=>{let[o,i]=t;this.calculationResults.set(o,i),i.initialize(e)})}_process(e,t){this.calculationTypes.forEach(o=>{let[,i]=o;return i.process(e,t)})}_finalize(e){this.calculationTypes.forEach(t=>{let[,o]=t;return o.finalize(e)})}getResultsFor(e){return this.calculationResults.get(e)}}},47700:(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"},47730:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182),o(81396),o(81124),o(88633),o(14618),o(19874);var s=i(o(81115));class n{constructor(e){(0,s.default)(this,"ranges",[]),(0,s.default)(this,"createCellRange",void 0),this.createCellRange=e}isEmpty(){return 0===this.size()}set(e){return this.clear(),this.ranges.push(this.createCellRange(e)),this}add(e){return this.ranges.push(this.createCellRange(e)),this}push(e){return this.ranges.push(e),this}pop(){return this.ranges.pop()}current(){return this.peekByIndex(this.size()-1)}previous(){return this.peekByIndex(this.size()-2)}includes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>!0;return this.ranges.some((o,i)=>o.includes(e)&&t(o,i))}findAll(e){const t=[];return this.ranges.forEach((o,i)=>{o.isEqual(e)&&t.push({range:o,layer:i})}),t}remove(e){return this.ranges=this.ranges.filter(t=>!e.some(e=>e.isEqual(t))),this}removeLayers(e){return this.ranges=this.ranges.filter((t,o)=>!e.includes(o)),this}clear(){return this.ranges.length=0,this}size(){return this.ranges.length}clone(){const e=new n(this.createCellRange);return e.ranges=this.ranges.map(e=>e.clone()),e}map(e){return this.ranges=this.ranges.map((t,o)=>e(t,o)),this}peekByIndex(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t>=0&&t<this.size()&&(e=this.ranges[t]),e}[Symbol.iterator](){return this.ranges[Symbol.iterator]()}}t.default=n},47812:(e,t,o)=>{"use strict";var i=o(82397).f;e.exports=function(e,t,o){o in e||i(e,o,{configurable:!0,get:function(){return t[o]},set:function(e){t[o]=e}})}},47866:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115));t.ViewSize=class{constructor(){(0,s.default)(this,"currentSize",0),(0,s.default)(this,"nextSize",0),(0,s.default)(this,"currentOffset",0),(0,s.default)(this,"nextOffset",0)}setSize(e){this.currentSize=this.nextSize,this.nextSize=e}setOffset(e){this.currentOffset=this.nextOffset,this.nextOffset=e}}},47920:(e,t,o)=>{"use strict";t.__esModule=!0,o(81396),o(14618);var i=o(76651),s=o(78437),n=o(21797);t.default=class{constructor(e,t,o,i,s){this.dataAccessObject=e,this.wot=e.wot,this.instance=this.wot,this.domBindings=t,this.wtSettings=o,this.wtTable=s,this.oversizedRows=[],this.oversizedColumnHeaders=[],this.hasOversizedColumnHeadersMarked={},this.clientHeight=0,this.rowHeaderWidth=NaN,this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,this.rowsCalculatorTypes=new Map([["rendered",()=>this.wtSettings.getSetting("renderAllRows")?new n.RenderedAllRowsCalculationType:new n.RenderedRowsCalculationType],["fullyVisible",()=>new n.FullyVisibleRowsCalculationType],["partiallyVisible",()=>new n.PartiallyVisibleRowsCalculationType]]),this.columnsCalculatorTypes=new Map([["rendered",()=>this.wtSettings.getSetting("renderAllColumns")?new n.RenderedAllColumnsCalculationType:new n.RenderedColumnsCalculationType],["fullyVisible",()=>new n.FullyVisibleColumnsCalculationType],["partiallyVisible",()=>new n.PartiallyVisibleColumnsCalculationType]]),this.eventManager=i,this.eventManager.addEventListener(this.domBindings.rootWindow,"resize",()=>{this.clientHeight=this.getWorkspaceHeight()})}getWorkspaceHeight(){const e=this.domBindings.rootDocument,t=this.dataAccessObject.topOverlayTrimmingContainer;let o=0;if(t===this.domBindings.rootWindow)o=e.documentElement.clientHeight;else{o=(0,i.outerHeight)(t)>0&&t.clientHeight>0?t.clientHeight:1/0}return o}getViewportHeight(){let e=this.getWorkspaceHeight();if(e===1/0)return e;const t=this.getColumnHeaderHeight();return t>0&&(e-=t),e}getWorkspaceWidth(){const{rootDocument:e,rootWindow:t}=this.domBindings,o=this.dataAccessObject.inlineStartOverlayTrimmingContainer;let i;if(o===t){const t=this.wtSettings.getSetting("totalColumns");i=this.wtTable.holder.offsetWidth,this.getRowHeaderWidth()+this.sumColumnWidths(0,t)>i&&(i=e.documentElement.clientWidth)}else i=o.clientWidth;return i}getViewportWidth(){const e=this.getWorkspaceWidth();if(e===1/0)return e;const t=this.getRowHeaderWidth();return t>0?e-t:e}hasVerticalScroll(){if(this.isVerticallyScrollableByWindow()){const e=this.domBindings.rootDocument.documentElement;return e.scrollHeight>e.clientHeight}const{holder:e,hider:t}=this.wtTable,o=e.clientHeight,i=t.offsetHeight;return o<i||i>this.getWorkspaceHeight()}hasHorizontalScroll(){if(this.isVerticallyScrollableByWindow()){const e=this.domBindings.rootDocument.documentElement;return e.scrollWidth>e.clientWidth}const{hider:e}=this.wtTable,t=e.offsetWidth,o=this.hasVerticalScroll()?(0,i.getScrollbarWidth)():0;return t>this.getWorkspaceWidth()-o}isVerticallyScrollableByWindow(){return this.dataAccessObject.topOverlayTrimmingContainer===this.domBindings.rootWindow}isHorizontallyScrollableByWindow(){return this.dataAccessObject.inlineStartOverlayTrimmingContainer===this.domBindings.rootWindow}sumColumnWidths(e,t){let o=0,i=e;for(;i<t;)o+=this.wtTable.getColumnWidth(i),i+=1;return o}getWorkspaceOffset(){return(0,i.offset)(this.wtTable.holder)}getColumnHeaderHeight(){return this.wtSettings.getSetting("columnHeaders").length?isNaN(this.columnHeaderHeight)&&(this.columnHeaderHeight=(0,i.outerHeight)(this.wtTable.THEAD)):this.columnHeaderHeight=0,this.columnHeaderHeight}getRowHeaderWidth(){const e=this.wtSettings.getSetting("rowHeaderWidth"),t=this.wtSettings.getSetting("rowHeaders");if(e){this.rowHeaderWidth=0;for(let o=0,i=t.length;o<i;o++)this.rowHeaderWidth+=e[o]||e}if(isNaN(this.rowHeaderWidth))if(t.length){let e=this.wtTable.TABLE.querySelector("TH");this.rowHeaderWidth=0;for(let o=0,s=t.length;o<s;o++)e?(this.rowHeaderWidth+=(0,i.outerWidth)(e),e=e.nextSibling):this.rowHeaderWidth+=50}else this.rowHeaderWidth=0;return this.rowHeaderWidth=this.wtSettings.getSetting("onModifyRowHeaderWidth",this.rowHeaderWidth)||this.rowHeaderWidth,this.rowHeaderWidth}createRowsCalculator(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["rendered","fullyVisible","partiallyVisible"];const{wtSettings:t,wtTable:o}=this;let s,r,a=this.getViewportHeight();this.rowHeaderWidth=NaN;let l=this.dataAccessObject.topScrollPosition-this.dataAccessObject.topParentOffset;const h=t.getSetting("fixedRowsTop"),c=t.getSetting("fixedRowsBottom"),u=t.getSetting("totalRows");return h&&l>=0&&(r=this.dataAccessObject.topOverlay.sumCellSizes(0,h),l+=r,a-=r),c&&this.dataAccessObject.bottomOverlay.clone&&(r=this.dataAccessObject.bottomOverlay.sumCellSizes(u-c,u),a-=r),s=o.holder.clientHeight===o.holder.offsetHeight?0:(0,i.getScrollbarWidth)(this.domBindings.rootDocument),new n.ViewportRowsCalculator({calculationTypes:e.map(e=>[e,this.rowsCalculatorTypes.get(e)()]),viewportHeight:a,scrollOffset:l,totalRows:t.getSetting("totalRows"),defaultRowHeight:t.getSetting("stylesHandler").getDefaultRowHeight(),rowHeightFn:e=>o.getRowHeight(e),overrideFn:t.getSettingPure("viewportRowCalculatorOverride"),horizontalScrollbarHeight:s})}createColumnsCalculator(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["rendered","fullyVisible","partiallyVisible"];const{wtSettings:t,wtTable:o}=this;let s=this.getViewportWidth(),r=Math.abs(this.dataAccessObject.inlineStartScrollPosition)-this.dataAccessObject.inlineStartParentOffset;this.columnHeaderHeight=NaN;const a=t.getSetting("fixedColumnsStart");if(a&&r>=0){const e=this.dataAccessObject.inlineStartOverlay.sumCellSizes(0,a);r+=e,s-=e}return o.holder.clientWidth!==o.holder.offsetWidth&&(s-=(0,i.getScrollbarWidth)(this.domBindings.rootDocument)),new n.ViewportColumnsCalculator({calculationTypes:e.map(e=>[e,this.columnsCalculatorTypes.get(e)()]),viewportWidth:s,scrollOffset:r,totalColumns:t.getSetting("totalColumns"),columnWidthFn:e=>o.getColumnWidth(e),overrideFn:t.getSettingPure("viewportColumnCalculatorOverride"),inlineStartOffset:this.dataAccessObject.inlineStartParentOffset})}createCalculators(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{wtSettings:t}=this,o=this.createRowsCalculator(),i=this.createColumnsCalculator();if(e&&!t.getSetting("renderAllRows")){const t=o.getResultsFor("fullyVisible"),i=o.getResultsFor("partiallyVisible");e=this.areAllProposedVisibleRowsAlreadyRendered(t,i)}if(e&&!t.getSetting("renderAllColumns")){const t=i.getResultsFor("fullyVisible"),o=i.getResultsFor("partiallyVisible");e=this.areAllProposedVisibleColumnsAlreadyRendered(t,o)}return e||(this.rowsRenderCalculator=o.getResultsFor("rendered"),this.columnsRenderCalculator=i.getResultsFor("rendered")),this.rowsVisibleCalculator=o.getResultsFor("fullyVisible"),this.columnsVisibleCalculator=i.getResultsFor("fullyVisible"),this.rowsPartiallyVisibleCalculator=o.getResultsFor("partiallyVisible"),this.columnsPartiallyVisibleCalculator=i.getResultsFor("partiallyVisible"),e}createVisibleCalculators(){const e=this.createRowsCalculator(["fullyVisible","partiallyVisible"]),t=this.createColumnsCalculator(["fullyVisible","partiallyVisible"]);this.rowsVisibleCalculator=e.getResultsFor("fullyVisible"),this.columnsVisibleCalculator=t.getResultsFor("fullyVisible"),this.rowsPartiallyVisibleCalculator=e.getResultsFor("partiallyVisible"),this.columnsPartiallyVisibleCalculator=t.getResultsFor("partiallyVisible")}areAllProposedVisibleRowsAlreadyRendered(e,t){if(!this.rowsVisibleCalculator)return!1;let{startRow:o,endRow:i}=e;const{startRow:s,endRow:n}=t;if(null===o&&null===i){if(!e.isVisibleInTrimmingContainer&&!this.wtTable.isRowBeforeRenderedRows(s)&&!this.wtTable.isRowAfterRenderedRows(n))return!0;o=s,i=n}const{startRow:r,endRow:a,rowStartOffset:l,rowEndOffset:h}=this.rowsRenderCalculator,c=this.wtSettings.getSetting("totalRows")-1,u=this.wtSettings.getSetting("viewportRowRenderingThreshold");return Number.isInteger(u)&&u>0?(o=Math.max(0,o-Math.min(l,u)),i=Math.min(c,i+Math.min(h,u))):"auto"===u&&(o=Math.max(0,o-Math.ceil(l/2)),i=Math.min(c,i+Math.ceil(h/2))),!(o<r||o===r&&o>0)&&!(i>a||i===a&&i<c)}areAllProposedVisibleColumnsAlreadyRendered(e,t){if(!this.columnsVisibleCalculator)return!1;let{startColumn:o,endColumn:i}=e;const{startColumn:s,endColumn:n}=t;if(null===o&&null===i){if(!e.isVisibleInTrimmingContainer&&!this.wtTable.isColumnBeforeRenderedColumns(s)&&!this.wtTable.isColumnAfterRenderedColumns(n))return!0;o=s,i=n}const{startColumn:r,endColumn:a,columnStartOffset:l,columnEndOffset:h}=this.columnsRenderCalculator,c=this.wtSettings.getSetting("totalColumns")-1,u=this.wtSettings.getSetting("viewportColumnRenderingThreshold");return Number.isInteger(u)&&u>0?(o=Math.max(0,o-Math.min(l,u)),i=Math.min(c,i+Math.min(h,u))):"auto"===u&&(o=Math.max(0,o-Math.ceil(l/2)),i=Math.min(c,i+Math.ceil(h/2))),!(o<r||o===r&&o>0)&&!(i>a||i===a&&i<c)}resetHasOversizedColumnHeadersMarked(){(0,s.objectEach)(this.hasOversizedColumnHeadersMarked,(e,t,o)=>{o[t]=void 0})}}},48237:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(654);var s=i(o(72123)),n=o(74125),r=o(59195),a=o(97819),l=o(95820),h=o(9041),c=o(730),u=o(95220),d=o(24496);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="21/11/2025 09:38:37",g.version="16.2.0-next-5b80421-20251121",g.languages={dictionaryKeys:l.dictionaryKeys,getLanguageDictionary:l.getLanguageDictionary,getLanguagesDictionaries:l.getLanguagesDictionaries,registerLanguageDictionary:l.registerLanguageDictionary,getTranslatedPhrase:l.getTranslatedPhrase};t.default=g},48442:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(81124),o(88633),o(14618),o(39716);var s=i(o(81115)),n=o(42479),r=o(97819),a=i(o(13434)),l=i(o(65725)),h=i(o(88226)),c=i(o(97100)),u=i(o(27323)),d=o(94857),g=o(78437),f=o(49581),p=o(58639),m=o(76651),w=o(12108),C=o(59375),v=o(85180),y=o(57806);function S(e,t,o){E(e,t),t.set(e,o)}function E(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function R(e,t,o){return e.set(_(e,t),o),o}function b(e,t){return e.get(_(e,t))}function _(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}r.Hooks.getSingleton().register("beforeMergeCells"),r.Hooks.getSingleton().register("afterMergeCells"),r.Hooks.getSingleton().register("beforeUnmergeCells"),r.Hooks.getSingleton().register("afterUnmergeCells");const T=t.PLUGIN_KEY="mergeCells",M=t.PLUGIN_PRIORITY=150,I=T;var O=new WeakMap,A=new WeakMap,N=new WeakMap,P=new WeakMap,H=new WeakSet;class x extends n.BasePlugin{constructor(){var e,t;super(...arguments),E(e=this,t=H),t.add(e),(0,s.default)(this,"mergedCellsCollection",null),(0,s.default)(this,"autofillCalculations",null),(0,s.default)(this,"selectionCalculations",null),S(this,O,null),S(this,A,{row:0,col:0}),S(this,N,new C.FocusOrder({mergedCellsGetter:(e,t)=>this.mergedCellsCollection.get(e,t),rowIndexMapper:this.hot.rowIndexMapper,columnIndexMapper:this.hot.columnIndexMapper})),S(this,P,(0,v.createMergeCellRenderer)(this))}static get PLUGIN_KEY(){return T}static get PLUGIN_PRIORITY(){return M}static get DEFAULT_SETTINGS(){return{[n.defaultMainSettingSymbol]:"cells",virtualized:!1,cells:[]}}isEnabled(){return!!this.hot.getSettings()[T]}enablePlugin(){var e=this;this.enabled||(this.mergedCellsCollection=new a.default(this),this.autofillCalculations=new h.default(this),this.selectionCalculations=new c.default(this),this.addHook("afterInit",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,k).call(e,...o)}),this.addHook("modifyTransformFocus",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,L).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 _(H,e,V).call(e,...o)}),this.addHook("modifyTransformEnd",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,W).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 _(H,e,F).call(e,...o)}),this.addHook("beforeSetRangeStart",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,Y).call(e,...o)}),this.addHook("beforeSetRangeStartOnly",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,Y).call(e,...o)}),this.addHook("beforeSelectionFocusSet",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,j).call(e,...o)}),this.addHook("afterSelectionFocusSet",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,G).call(e,...o)}),this.addHook("afterSelectionEnd",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,z).call(e,...o)}),this.addHook("modifyGetCellCoords",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,B).call(e,...o)}),this.addHook("modifyGetCoordsElement",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,B).call(e,...o)}),this.addHook("afterIsMultipleSelection",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,D).call(e,...o)}),this.addHook("afterRenderer",function(){return b(P,e).after(...arguments)}),this.addHook("afterContextMenuDefaultOptions",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,U).call(e,...o)}),this.addHook("afterGetCellMeta",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,$).call(e,...o)}),this.addHook("afterViewportRowCalculatorOverride",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,K).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 _(H,e,X).call(e,...o)}),this.addHook("modifyAutofillRange",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,q).call(e,...o)}),this.addHook("afterCreateCol",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,Q).call(e,...o)}),this.addHook("afterRemoveCol",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,J).call(e,...o)}),this.addHook("afterCreateRow",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,Z).call(e,...o)}),this.addHook("afterRemoveRow",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,ee).call(e,...o)}),this.addHook("afterChange",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,te).call(e,...o)}),this.addHook("beforeDrawBorders",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,oe).call(e,...o)}),this.addHook("afterDrawSelection",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,ie).call(e,...o)}),this.addHook("beforeRemoveCellClassNames",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,se).call(e,...o)}),this.addHook("beforeBeginEditing",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,ne).call(e,...o)}),this.addHook("modifyRowHeightByOverlayName",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,re).call(e,...o)}),this.addHook("beforeUndoStackChange",(e,t)=>{if("MergeCells"===t)return!1}),this.registerShortcuts(),super.enablePlugin())}disablePlugin(){this.clearCollections(),this.unregisterShortcuts(),this.hot.render(),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.generateFromSettings(),super.updatePlugin()}ifChromeForceRepaint(){if(!(0,w.isChrome)())return;const e=[];let t=[];this.mergedCellsCollection.mergedCells.forEach(e=>{const{row:o,rowspan:i}=e;for(let e=o+1;e<o+i;e++)t.push(e)}),t=[...new Set(t)],t.forEach(t=>{const o=this.hot.rowIndexMapper.getRenderableFromVisualIndex(t);this.hot.view._wt.wtOverlays.getOverlays(!0).map(e=>"master"===(null==e?void 0:e.name)?e:e.clone.wtTable).forEach(t=>{const i=t.getRow(o);i&&(i.style.background=(0,m.getStyle)(i,"backgroundColor").replace(")",", 0.99)"),e.push(i))})}),this.hot._registerTimeout(()=>{e.forEach(e=>{var t;e.style.background=null===(t=(0,m.getStyle)(e,"backgroundColor"))||void 0===t?void 0:t.replace(", 0.99)",")")})},1)}validateSetting(e){return!!e&&(l.default.containsNegativeValues(e)?((0,f.warn)(l.default.NEGATIVE_VALUES_WARNING(e)),!1):l.default.isOutOfBounds(e,this.hot.countRows(),this.hot.countCols())?((0,f.warn)(l.default.IS_OUT_OF_BOUNDS_WARNING(e)),!1):l.default.isSingleCell(e)?((0,f.warn)(l.default.IS_SINGLE_CELL(e)),!1):!l.default.containsZeroSpan(e)||((0,f.warn)(l.default.ZERO_SPAN_WARNING(e)),!1))}generateFromSettings(){const e=this.getSetting("cells").filter(e=>this.validateSetting(e)),t=this.mergedCellsCollection.filterOverlappingMergeCells(e),o=[];t.forEach(e=>{const{row:t,col:i,rowspan:s,colspan:n}=e,r=this.hot._createCellCoords(t,i),a=this.hot._createCellCoords(t+s-1,i+n-1),l=this.hot._createCellRange(r,r,a);this.mergeRange(l,!0,!0);for(let e=t;e<t+s;e++)for(let s=i;s<i+n;s++)e===t&&s===i||o.push([e,s,null])}),0!==o.length&&this.hot.setDataAtCell(o,void 0,void 0,this.pluginName)}clearCollections(){this.mergedCellsCollection.clear()}canMergeRange(e){return!!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])||this.validateSetting(e)}mergeSelection(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeActive();if(!e)return;e.setDirection(this.hot.isRtl()?"NE-SW":"NW-SE");const{from:t,to:o}=e;this.unmergeRange(e,!0),this.mergeRange(e),this.hot.selectCell(t.row,t.col,o.row,o.col,!1)}unmergeSelection(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeActive();if(!e)return;const{from:t,to:o}=e;this.unmergeRange(e,!0),this.hot.selectCell(t.row,t.col,o.row,o.col,!1)}mergeRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const i=e.getTopStartCorner(),s=e.getBottomEndCorner(),n={row:i.row,col:i.col,rowspan:s.row-i.row+1,colspan:s.col-i.col+1},r=[];let a=null;if(!this.canMergeRange(n,t))return!1;this.hot.runHooks("beforeMergeCells",e,t),(0,p.rangeEach)(0,n.rowspan-1,e=>{(0,p.rangeEach)(0,n.colspan-1,t=>{let o=null;r[e]||(r[e]=[]),0===e&&0===t?o=this.hot.getSourceDataAtCell(this.hot.toPhysicalRow(n.row),this.hot.toPhysicalColumn(n.col)):this.hot.setCellMeta(n.row+e,n.col+t,"hidden",!0),r[e][t]=o})}),this.hot.setCellMeta(n.row,n.col,"spanned",!0);return!this.mergedCellsCollection.add(n,t)||(o?a=[n.row,n.col,r]:this.hot.populateFromArray(n.row,n.col,r,void 0,void 0,this.pluginName),t||this.ifChromeForceRepaint(),this.hot.runHooks("afterMergeCells",e,n,t),a)}unmergeRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=this.mergedCellsCollection.getWithinRange(e);0!==o.length&&(this.hot.runHooks("beforeUnmergeCells",e,t),(0,d.arrayEach)(o,e=>{this.mergedCellsCollection.remove(e.row,e.col),(0,p.rangeEach)(0,e.rowspan-1,t=>{(0,p.rangeEach)(0,e.colspan-1,o=>{this.hot.removeCellMeta(e.row+t,e.col+o,"hidden"),this.hot.removeCellMeta(e.row+t,e.col+o,"copyable")})}),this.hot.removeCellMeta(e.row,e.col,"spanned")}),this.hot.runHooks("afterUnmergeCells",e,t),this.hot.render())}toggleMerge(e){const{from:t,to:o}=e.clone().normalize(),i=this.mergedCellsCollection.get(t.row,t.col);i.row===t.row&&i.col===t.col&&i.row+i.rowspan-1===o.row&&i.col+i.colspan-1===o.col?this.unmergeRange(e):this.mergeSelection(e)}merge(e,t,o,i){const s=this.hot._createCellCoords(e,t),n=this.hot._createCellCoords(o,i);this.mergeRange(this.hot._createCellRange(s,s,n))}unmerge(e,t,o,i){const s=this.hot._createCellCoords(e,t),n=this.hot._createCellCoords(o,i);this.unmergeRange(this.hot._createCellRange(s,s,n))}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Control","m"]],callback:()=>{const e=this.hot.getSelectedRangeActive();e&&!e.isSingleHeader()&&(this.toggleMerge(e),this.hot.render())},runOnlyIf:e=>!e.altKey,group:I})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(I)}modifyViewportRowStart(e,t){const o=this.hot.rowIndexMapper,i=o.getVisualFromRenderableIndex(e.startRow);for(let s=0;s<t;s+=1){const n=this.mergedCellsCollection.get(i,s);if((0,g.isObject)(n)){const i=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(n.row,1));if(i<e.startRow)return e.startRow=i,void this.modifyViewportRowStart(e,t)}}}modifyViewportRowEnd(e,t){const o=this.hot.rowIndexMapper,i=o.getVisualFromRenderableIndex(e.endRow);for(let s=0;s<t;s+=1){const n=this.mergedCellsCollection.get(i,s);if((0,g.isObject)(n)){const i=n.row+n.rowspan-1,s=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(i,-1));if(s>e.endRow)return e.endRow=s,void this.modifyViewportRowEnd(e,t)}}}modifyViewportColumnStart(e,t){const o=this.hot.columnIndexMapper,i=o.getVisualFromRenderableIndex(e.startColumn);for(let s=0;s<t;s+=1){const n=this.mergedCellsCollection.get(s,i);if((0,g.isObject)(n)){const i=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(n.col,1));if(i<e.startColumn)return e.startColumn=i,void this.modifyViewportColumnStart(e,t)}}}modifyViewportColumnEnd(e,t){const o=this.hot.columnIndexMapper,i=o.getVisualFromRenderableIndex(e.endColumn);for(let s=0;s<t;s+=1){const n=this.mergedCellsCollection.get(s,i);if((0,g.isObject)(n)){const i=n.col+n.colspan-1,s=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(i,-1));if(s>e.endColumn)return e.endColumn=s,void this.modifyViewportColumnEnd(e,t)}}}translateMergedCellToRenderable(e,t,o,i){const{rowIndexMapper:s,columnIndexMapper:n}=this.hot;let r,a;r=0===t?s.getNearestNotHiddenIndex(e,1):s.getNearestNotHiddenIndex(e+t-1,-1),a=0===i?n.getNearestNotHiddenIndex(o,1):n.getNearestNotHiddenIndex(o+i-1,-1);return[e>=0?s.getRenderableFromVisualIndex(r):e,o>=0?n.getRenderableFromVisualIndex(a):o]}}function k(){this.generateFromSettings(),this.hot.render()}function D(e){if(e){const e=this.mergedCellsCollection.mergedCells,t=this.hot.getSelectedRangeActive(),o=t.getTopStartCorner(),i=t.getBottomEndCorner();for(let t=0;t<e.length;t+=1)if(o.row===e[t].row&&o.col===e[t].col&&i.row===e[t].row+e[t].rowspan-1&&i.col===e[t].col+e[t].colspan-1)return!1}return e}function L(e){b(A,this).row=e.row,b(A,this).col=e.col}function V(e){const t=this.hot.getSelectedRangeActive(),{highlight:o}=t,{columnIndexMapper:i,rowIndexMapper:s}=this.hot;b(O,this)&&(null!==s.getRenderableFromVisualIndex(b(O,this).row)&&(o.row=b(O,this).row),null!==i.getRenderableFromVisualIndex(b(O,this).col)&&(o.col=b(O,this).col),R(O,this,null));const n=this.mergedCellsCollection.get(o.row,o.col);if(!n)return;const r=n.col,a=n.col+n.colspan-1;if(e.col<0){const t=o.col>=r&&o.col<=a?r-1:a,s=i.getNearestNotHiddenIndex(t,-1);e.col=null===s?-this.hot.view.countRenderableColumnsInRange(0,o.col):-Math.max(this.hot.view.countRenderableColumnsInRange(s,o.col)-1,1)}else if(e.col>0){const t=o.col>=r&&o.col<=a?a+1:r,s=i.getNearestNotHiddenIndex(t,1);e.col=null===s?this.hot.view.countRenderableColumnsInRange(o.col,this.hot.countCols()):Math.max(this.hot.view.countRenderableColumnsInRange(o.col,s)-1,1)}const l=n.row,h=n.row+n.rowspan-1;if(e.row<0){const t=o.row>=l&&o.row<=h?l-1:h,i=s.getNearestNotHiddenIndex(t,-1);e.row=null===i?-this.hot.view.countRenderableRowsInRange(0,o.row):-Math.max(this.hot.view.countRenderableRowsInRange(i,o.row)-1,1)}else if(e.row>0){const t=o.row>=l&&o.row<=h?h+1:l,i=s.getNearestNotHiddenIndex(t,1);e.row=null===i?this.hot.view.countRenderableRowsInRange(o.row,this.hot.countRows()):Math.max(this.hot.view.countRenderableRowsInRange(o.row,i)-1,1)}}function W(e){const t=this.hot.getSelectedRangeActive(),o=t.clone(),{to:i}=t,{columnIndexMapper:s,rowIndexMapper:n}=this.hot,r=(e,t)=>{o.expand(this.hot._createCellCoords(e,t));for(let e=0;e<this.mergedCellsCollection.mergedCells.length;e+=1)o.expandByRange(this.mergedCellsCollection.mergedCells[e].getRange())};if(e.col<0){let n=this.mergedCellsCollection.getStartMostColumnIndex(t,i.col)+e.col;r(i.row,n),"E-W"===t.getHorizontalDirection()&&"E-W"===o.getHorizontalDirection()&&(n=o.getTopStartCorner().col);const a=s.getNearestNotHiddenIndex(n,1);null!==a&&(e.col=-Math.max(this.hot.view.countRenderableColumnsInRange(a,i.col)-1,1))}else if(e.col>0){let n=this.mergedCellsCollection.getEndMostColumnIndex(t,i.col)+e.col;r(i.row,n),"W-E"===t.getHorizontalDirection()&&"W-E"===o.getHorizontalDirection()&&(n=o.getBottomEndCorner().col);const a=s.getNearestNotHiddenIndex(n,-1);null!==a&&(e.col=Math.max(this.hot.view.countRenderableColumnsInRange(i.col,a)-1,1))}if(e.row<0){let s=this.mergedCellsCollection.getTopMostRowIndex(t,i.row)+e.row;r(s,i.col),"S-N"===t.getVerticalDirection()&&"S-N"===o.getVerticalDirection()&&(s=o.getTopStartCorner().row);const a=n.getNearestNotHiddenIndex(s,1);null!==a&&(e.row=-Math.max(this.hot.view.countRenderableRowsInRange(a,i.row)-1,1))}else if(e.row>0){let s=this.mergedCellsCollection.getBottomMostRowIndex(t,i.row)+e.row;r(s,i.col),"N-S"===t.getVerticalDirection()&&"N-S"===o.getVerticalDirection()&&(s=o.getBottomStartCorner().row);const a=n.getNearestNotHiddenIndex(s,-1);null!==a&&(e.row=Math.max(this.hot.view.countRenderableRowsInRange(i.row,a)-1,1))}}function F(){const e=this.hot.getSelectedRangeLast(),{highlight:t}=e;if(this.hot.selection.isSelectedByColumnHeader()||this.hot.selection.isSelectedByRowHeader())return void R(O,this,t.clone());for(let t=0;t<this.mergedCellsCollection.mergedCells.length;t+=1)e.expandByRange(this.mergedCellsCollection.mergedCells[t].getRange(),!1);for(let t=0;t<this.mergedCellsCollection.mergedCells.length;t+=1)e.expandByRange(this.mergedCellsCollection.mergedCells[t].getRange(),!1);const o=this.mergedCellsCollection.get(t.row,t.col);R(O,this,t.clone()),o&&t.assign(o)}function B(e,t,o,i){if(e<0||t<0)return;const s=this.mergedCellsCollection.get(e,t);if(!s)return;const{row:n,col:r,colspan:a,rowspan:l}=s,h=n,c=r,u=n+l-1,d=r+a-1;if("render"===i&&this.getSetting("virtualized")){const e=this.hot.view.getActiveOverlayName(),t=["top","top_inline_start_corner"].includes(e)?0:this.hot.getFirstRenderedVisibleRow(),o=["inline_start","top_inline_start_corner","bottom_inline_start_corner"].includes(e)?0:this.hot.getFirstRenderedVisibleColumn();return[(0,p.clamp)(t,h,u),(0,p.clamp)(o,c,d),(0,p.clamp)(this.hot.getLastRenderedVisibleRow(),h,u),(0,p.clamp)(this.hot.getLastRenderedVisibleColumn(),c,d)]}return[h,c,u,d]}function U(e){e.items.push({name:"---------"},(0,u.default)(this))}function Y(){R(O,this,null)}function j(){if(b(O,this).isCell())return;const e=this.hot.getSelectedRangeActive(),t=e.getVerticalDirection(),o=e.getHorizontalDirection(),i=b(O,this).clone().normalize();b(N,this).setActiveNode(i.row,i.col),b(A,this).row>0||b(A,this).col>0?b(N,this).setPrevNodeAsActive():("E-W"===o&&b(A,this).col<0||"S-N"===t&&b(A,this).row<0)&&b(N,this).setNextNodeAsActive()}function G(e,t){const{columnIndexMapper:o,rowIndexMapper:i}=this.hot;let s=this.hot.getActiveSelectionLayerIndex(),n=null,r=null;if(b(A,this).col<0){const{rowEnd:e,colEnd:t,selectionLayer:a}=b(N,this).getPrevHorizontalNode();r=o.getNearestNotHiddenIndex(t,-1),n=i.getNearestNotHiddenIndex(e,-1),s=a}else if(b(A,this).col>0){const{rowStart:e,colStart:t,selectionLayer:a}=b(N,this).getNextHorizontalNode();r=o.getNearestNotHiddenIndex(t,1),n=i.getNearestNotHiddenIndex(e,1),s=a}else if(b(A,this).row<0){const{rowEnd:e,colEnd:t,selectionLayer:a}=b(N,this).getPrevVerticalNode();r=o.getNearestNotHiddenIndex(t,-1),n=i.getNearestNotHiddenIndex(e,-1),s=a}else if(b(A,this).row>0){const{rowStart:e,colStart:t,selectionLayer:a}=b(N,this).getNextVerticalNode();r=o.getNearestNotHiddenIndex(t,1),n=i.getNearestNotHiddenIndex(e,1),s=a}if(null!==n||null!==r){this.hot.selection.setActiveSelectionLayerIndex(s);const o=this.hot.getSelectedRangeActive(),i=this.hot._createCellCoords(n,r),a=this.mergedCellsCollection.get(i.row,i.col),l=this.hot.selection.highlight.getFocus();e=i.row,t=i.col,a?o.highlight.assign({row:this.hot.rowIndexMapper.getNearestNotHiddenIndex(a.row,1),col:this.hot.columnIndexMapper.getNearestNotHiddenIndex(a.col,1)}):o.highlight.assign(i),l.clear(),l.add(i).commit()}b(N,this).setActiveNode(e,t,s),R(A,this,{row:0,col:0})}function z(){b(N,this).buildFocusOrder(this.hot.getSelectedRange())}function $(e,t,o){const i=this.mergedCellsCollection.get(e,t);i&&(i.row!==e||i.col!==t?o.copyable=!1:(o.rowspan=i.rowspan,o.colspan=i.colspan))}function K(e){if(this.getSetting("virtualized"))return;const t=this.hot.countCols();this.modifyViewportRowStart(e,t),this.modifyViewportRowEnd(e,t)}function X(e){if(this.getSetting("virtualized"))return;const t=this.hot.countRows();this.modifyViewportColumnStart(e,t),this.modifyViewportColumnEnd(e,t)}function q(e,t){const o=this.autofillCalculations.getDirection(t,e);if(this.autofillCalculations.dragAreaOverlapsCollections(t,e,o))return t;const i=this.hot._createCellCoords(t[0],t[1]),s=this.hot._createCellCoords(t[2],t[3]),n=this.hot._createCellRange(i,i,s),r=this.mergedCellsCollection.getWithinRange(n);return 0===r.length?e:this.autofillCalculations.snapDragArea(t,e,o,r)}function Q(e,t){this.mergedCellsCollection.shiftCollections("right",e,t)}function J(e,t){this.mergedCellsCollection.shiftCollections("left",e,t)}function Z(e,t,o){"auto"!==o&&this.mergedCellsCollection.shiftCollections("down",e,t)}function ee(e,t){this.mergedCellsCollection.shiftCollections("up",e,t)}function te(e,t){"Autofill.fill"===t&&this.autofillCalculations.recreateAfterDataPopulation(e)}function oe(e,t){if(t&&"area"===t){const t=this.hot.getSelectedRangeActive(),o=this.mergedCellsCollection.getWithinRange(t);(0,d.arrayEach)(o,o=>{t.getBottomEndCorner().row===o.getLastRow()&&t.getBottomEndCorner().col===o.getLastColumn()&&(e[2]=o.row,e[3]=o.col)})}}function ie(e,t,o,i){if(o)return this.selectionCalculations.getSelectedMergedCellClassName(e,t,o,i)}function se(){return this.selectionCalculations.getSelectedMergedCellClassNameToRemove()}function ne(e,t,o,i){if(!(i instanceof MouseEvent))return;const s=this.hot.getSelectedRangeActive(),n=this.mergedCellsCollection.getByRange(s);if(!n)return;const r=this.hot._createCellCoords(n.row,n.col),a=this.hot._createCellCoords(n.row+n.rowspan-1,n.col+n.colspan-1);return 0===this.hot.selection.getLayerLevel()&&s.isEqual(this.hot._createCellRange(r,r,a))}function re(e,t,o){if(this.hot.getSettings().rowHeaders||"bottom"===o||"bottom_inline_start_corner"===o)return e;let i,s;if("master"===o)i=this.hot.getFirstRenderedVisibleColumn(),s=this.hot.getLastRenderedVisibleColumn();else{const e=this.hot.view.getOverlayByName(o);i=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e.clone.wtTable.getFirstRenderedColumn()),s=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e.clone.wtTable.getLastRenderedColumn())}if(!this.mergedCellsCollection.get(t,i))return e;const n=this.hot._createCellCoords(t,i),r=this.hot._createCellCoords(t,s),a=this.hot._createCellRange(n,n,r),l=this.mergedCellsCollection.getWithinRange(a,!0),h=l.reduce((e,t)=>{let{rowspan:o}=t;return Math.max(e,o)},1);let c=0;return l.length>1&&l[0].rowspan<h&&(c=h-l[0].rowspan),l.forEach(i=>{let{rowspan:s}=i,n=0;n="top"===o||"top_inline_start_corner"===o?Math.min(h,this.hot.view.countNotHiddenFixedRowsTop()-t):s-c,e=Math.max(null!=e?e:0,(0,y.sumCellsHeights)(this.hot,t,n))}),e}t.MergeCells=x},48446:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(39691),o(14618);var s=o(42479),n=o(76651),r=o(58639),a=o(94857),l=o(50151),h=o(97819),c=i(o(6307)),u=i(o(16026)),d=o(32435);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},48538:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115));o(22588),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(81124),o(14618),o(19874);var n=o(94857),r=o(52411),a=o(89195),l=i(o(86248)),h=o(78437),c=o(26599),u=o(54283);new Set;class d{constructor(){(0,s.default)(this,"indexesSequence",new r.IndexesSequence),(0,s.default)(this,"trimmingMapsCollection",new a.AggregatedCollection(e=>e.some(e=>!0===e),!1)),(0,s.default)(this,"hidingMapsCollection",new a.AggregatedCollection(e=>e.some(e=>!0===e),!1)),(0,s.default)(this,"variousMapsCollection",new a.MapCollection),(0,s.default)(this,"hidingChangesObservable",new u.ChangesObservable({initialIndexValue:!1})),(0,s.default)(this,"notTrimmedIndexesCache",[]),(0,s.default)(this,"notHiddenIndexesCache",[]),(0,s.default)(this,"isBatched",!1),(0,s.default)(this,"indexesSequenceChanged",!1),(0,s.default)(this,"indexesChangeSource",void 0),(0,s.default)(this,"trimmedIndexesChanged",!1),(0,s.default)(this,"hiddenIndexesChanged",!1),(0,s.default)(this,"renderablePhysicalIndexesCache",[]),(0,s.default)(this,"fromPhysicalToVisualIndexesCache",new Map),(0,s.default)(this,"fromVisualToRenderableIndexesCache",new Map),this.indexesSequence.addLocalHook("change",()=>{this.indexesSequenceChanged=!0,this.updateCache(),this.runLocalHooks("indexesSequenceChange",this.indexesChangeSource),this.runLocalHooks("change",this.indexesSequence,null)}),this.trimmingMapsCollection.addLocalHook("change",e=>{this.trimmedIndexesChanged=!0,this.updateCache(),this.runLocalHooks("change",e,this.trimmingMapsCollection)}),this.hidingMapsCollection.addLocalHook("change",e=>{this.hiddenIndexesChanged=!0,this.updateCache(),this.runLocalHooks("change",e,this.hidingMapsCollection)}),this.variousMapsCollection.addLocalHook("change",e=>{this.runLocalHooks("change",e,this.variousMapsCollection)})}suspendOperations(){this.isBatched=!0}resumeOperations(){this.isBatched=!1,this.updateCache()}createChangesObserver(e){if("hiding"!==e)throw new Error(`Unsupported index map type "${e}".`);return this.hidingChangesObservable.createObserver()}createAndRegisterIndexMap(e,t,o){return this.registerMap(e,(0,r.createIndexMap)(t,o))}registerMap(e,t){if(this.trimmingMapsCollection.get(e)||this.hidingMapsCollection.get(e)||this.variousMapsCollection.get(e))throw Error(`Map with name "${e}" has been already registered.`);t instanceof r.TrimmingMap?this.trimmingMapsCollection.register(e,t):t instanceof r.HidingMap?this.hidingMapsCollection.register(e,t):this.variousMapsCollection.register(e,t);const o=this.getNumberOfIndexes();return o>0&&t.init(o),t}unregisterMap(e){this.trimmingMapsCollection.unregister(e),this.hidingMapsCollection.unregister(e),this.variousMapsCollection.unregister(e)}unregisterAll(){this.trimmingMapsCollection.unregisterAll(),this.hidingMapsCollection.unregisterAll(),this.variousMapsCollection.unregisterAll()}getPhysicalFromVisualIndex(e){const t=this.notTrimmedIndexesCache[e];return(0,c.isDefined)(t)?t:null}getPhysicalFromRenderableIndex(e){const t=this.renderablePhysicalIndexesCache[e];return(0,c.isDefined)(t)?t:null}getVisualFromPhysicalIndex(e){const t=this.fromPhysicalToVisualIndexesCache.get(e);return(0,c.isDefined)(t)?t:null}getVisualFromRenderableIndex(e){return this.getVisualFromPhysicalIndex(this.getPhysicalFromRenderableIndex(e))}getRenderableFromVisualIndex(e){const t=this.fromVisualToRenderableIndexesCache.get(e);return(0,c.isDefined)(t)?t:null}getNearestNotHiddenIndex(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null===this.getPhysicalFromVisualIndex(e))return null;if(this.fromVisualToRenderableIndexesCache.has(e))return e;const i=Array.from(this.fromVisualToRenderableIndexesCache.keys());let s=-1;return s=t>0?i.findIndex(t=>t>e):i.reverse().findIndex(t=>t<e),-1===s?o?this.getNearestNotHiddenIndex(e,-t,!1):null:i[s]}initToLength(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getNumberOfIndexes();this.notTrimmedIndexesCache=[...new Array(e).keys()],this.notHiddenIndexesCache=[...new Array(e).keys()],this.suspendOperations(),this.indexesChangeSource="init",this.indexesSequence.init(e),this.indexesChangeSource=void 0,this.trimmingMapsCollection.initEvery(e),this.resumeOperations(),this.suspendOperations(),this.hidingMapsCollection.initEvery(e),this.variousMapsCollection.initEvery(e),this.resumeOperations(),this.runLocalHooks("init")}fitToLength(e){const t=this.getNumberOfIndexes();if(e<t){const t=[...Array(this.getNumberOfIndexes()-e).keys()].map(t=>t+e);this.removeIndexes(t)}else this.insertIndexes(t,e-t)}getIndexesSequence(){return this.indexesSequence.getValues()}setIndexesSequence(e){void 0===this.indexesChangeSource&&(this.indexesChangeSource="update"),this.indexesSequence.setValues(e),"update"===this.indexesChangeSource&&(this.indexesChangeSource=void 0)}getNotTrimmedIndexes(){if(!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]))return this.notTrimmedIndexesCache;return this.getIndexesSequence().filter(e=>!1===this.isTrimmed(e))}getNotTrimmedIndexesLength(){return this.getNotTrimmedIndexes().length}getNotHiddenIndexes(){if(!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]))return this.notHiddenIndexesCache;return this.getIndexesSequence().filter(e=>!1===this.isHidden(e))}getNotHiddenIndexesLength(){return this.getNotHiddenIndexes().length}getRenderableIndexes(){if(!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]))return this.renderablePhysicalIndexesCache;return this.getNotTrimmedIndexes().filter(e=>!1===this.isHidden(e))}getRenderableIndexesLength(){return this.getRenderableIndexes().length}getNumberOfIndexes(){return this.getIndexesSequence().length}moveIndexes(e,t){"number"==typeof e&&(e=[e]);const o=(0,n.arrayMap)(e,e=>this.getPhysicalFromVisualIndex(e)),i=this.getNotTrimmedIndexesLength(),s=e.length,a=(0,r.getListWithRemovedItems)(this.getIndexesSequence(),o),l=a.filter(e=>!1===this.isTrimmed(e));let h=a.indexOf(l[l.length-1])+1;if(t+s<i){const e=l[t];h=a.indexOf(e)}this.indexesChangeSource="move",this.setIndexesSequence((0,r.getListWithInsertedItems)(a,h,o)),this.indexesChangeSource=void 0}isTrimmed(e){return this.trimmingMapsCollection.getMergedValueAtIndex(e)}isHidden(e){return this.hidingMapsCollection.getMergedValueAtIndex(e)}insertIndexes(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"start";const i=this.getNotTrimmedIndexes()[e],s=(0,c.isDefined)(i)?i:this.getNumberOfIndexes(),r=this.getIndexesSequence().includes(i)?this.getIndexesSequence().indexOf(i):this.getNumberOfIndexes(),a=(0,n.arrayMap)(new Array(t).fill(s),(e,t)=>e+t);this.suspendOperations(),this.indexesChangeSource="insert",this.indexesSequence.insert(r,a),this.indexesChangeSource=void 0;const l="end"===o?a.map(e=>e+1):a;this.trimmingMapsCollection.insertToEvery(r,l),this.hidingMapsCollection.insertToEvery(r,l),this.variousMapsCollection.insertToEvery(r,l),this.resumeOperations()}removeIndexes(e){this.suspendOperations(),this.indexesChangeSource="remove",this.indexesSequence.remove(e),this.indexesChangeSource=void 0,this.trimmingMapsCollection.removeFromEvery(e),this.hidingMapsCollection.removeFromEvery(e),this.variousMapsCollection.removeFromEvery(e),this.resumeOperations()}updateCache(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.indexesSequenceChanged||this.trimmedIndexesChanged||this.hiddenIndexesChanged;(!0===e||!1===this.isBatched&&!0===t)&&(this.trimmingMapsCollection.updateCache(),this.hidingMapsCollection.updateCache(),this.notTrimmedIndexesCache=this.getNotTrimmedIndexes(!1),this.notHiddenIndexesCache=this.getNotHiddenIndexes(!1),this.renderablePhysicalIndexesCache=this.getRenderableIndexes(!1),this.cacheFromPhysicalToVisualIndexes(),this.cacheFromVisualToRenderableIndexes(),this.hiddenIndexesChanged&&this.hidingChangesObservable.emit(this.hidingMapsCollection.getMergedValues()),this.runLocalHooks("cacheUpdated",{indexesSequenceChanged:this.indexesSequenceChanged,trimmedIndexesChanged:this.trimmedIndexesChanged,hiddenIndexesChanged:this.hiddenIndexesChanged}),this.indexesSequenceChanged=!1,this.trimmedIndexesChanged=!1,this.hiddenIndexesChanged=!1)}cacheFromPhysicalToVisualIndexes(){const e=this.getNotTrimmedIndexesLength();this.fromPhysicalToVisualIndexesCache.clear();for(let t=0;t<e;t+=1){const e=this.getPhysicalFromVisualIndex(t);this.fromPhysicalToVisualIndexesCache.set(e,t)}}cacheFromVisualToRenderableIndexes(){const e=this.getRenderableIndexesLength();this.fromVisualToRenderableIndexesCache.clear();for(let t=0;t<e;t+=1){const e=this.getPhysicalFromRenderableIndex(t),o=this.getVisualFromPhysicalIndex(e);this.fromVisualToRenderableIndexesCache.set(o,t)}}}t.IndexMapper=d,(0,h.mixin)(d,l.default)},48651:(e,t,o)=>{"use strict";var i=o(21375),s=String;e.exports=function(e){if("Symbol"===i(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},48744:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(93232);class r extends n.BaseAction{constructor(e){let{index:t,amount:o}=e;super("insert_row"),(0,s.default)(this,"index",void 0),(0,s.default)(this,"amount",void 0),this.index=t,this.amount=o}static startRegisteringEvents(e,t){e.addHook("afterCreateRow",(e,o,i)=>{t.done(()=>new r({index:e,amount:o}),i)})}undo(e,t){const o=e.countRows(),i=e.getSettings().minSpareRows;this.index>=o&&this.index-i<o&&(this.index-=i),e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",this.index,this.amount,"UndoRedo.undo")}redo(e,t){e.addHookOnce("afterCreateRow",t),e.alter("insert_row_above",this.index,this.amount,"UndoRedo.redo")}}t.CreateRowAction=r},49095:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(78437),r=o(84029);t.default=class{constructor(e){(0,s.default)(this,"meta",void 0);const t=e.getMetaConstructor();this.meta=new t}getMeta(){return this.meta}updateMeta(e){(0,n.extend)(this.meta,e),(0,r.extendByMetaType)(this.meta,e,e)}}},49146:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:r,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT)},disabled(){if(0===this.countRows()||0===this.countCols())return!0;const e=this.getSelectedRangeActive();return!e||(!!e.isSingleHeader()||!(this.getSelectedRange()&&!this.selection.isSelectedByCorner()))},submenu:{items:[{key:`${r}:left`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT)},callback(){const e=this.getSelectedRange(),t=(0,i.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="horizontal",s="htLeft";this.runHooks("beforeCellAlignment",t,e,o,s),(0,i.align)(e,o,s,(e,t)=>this.getCellMeta(e,t),(e,t,o,i)=>this.setCellMeta(e,t,o,i)),this.render()},disabled:!1},{key:`${r}:center`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER)},callback(){const e=this.getSelectedRange(),t=(0,i.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="horizontal",s="htCenter";this.runHooks("beforeCellAlignment",t,e,o,s),(0,i.align)(e,o,s,(e,t)=>this.getCellMeta(e,t),(e,t,o,i)=>this.setCellMeta(e,t,o,i)),this.render()},disabled:!1},{key:`${r}:right`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT)},callback(){const e=this.getSelectedRange(),t=(0,i.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="horizontal",s="htRight";this.runHooks("beforeCellAlignment",t,e,o,s),(0,i.align)(e,o,s,(e,t)=>this.getCellMeta(e,t),(e,t,o,i)=>this.setCellMeta(e,t,o,i)),this.render()},disabled:!1},{key:`${r}:justify`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY)},callback(){const e=this.getSelectedRange(),t=(0,i.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="horizontal",s="htJustify";this.runHooks("beforeCellAlignment",t,e,o,s),(0,i.align)(e,o,s,(e,t)=>this.getCellMeta(e,t),(e,t,o,i)=>this.setCellMeta(e,t,o,i)),this.render()},disabled:!1},{name:s.KEY},{key:`${r}:top`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_TOP)},callback(){const e=this.getSelectedRange(),t=(0,i.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="vertical",s="htTop";this.runHooks("beforeCellAlignment",t,e,o,s),(0,i.align)(e,o,s,(e,t)=>this.getCellMeta(e,t),(e,t,o,i)=>this.setCellMeta(e,t,o,i)),this.render()},disabled:!1},{key:`${r}:middle`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE)},callback(){const e=this.getSelectedRange(),t=(0,i.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="vertical",s="htMiddle";this.runHooks("beforeCellAlignment",t,e,o,s),(0,i.align)(e,o,s,(e,t)=>this.getCellMeta(e,t),(e,t,o,i)=>this.setCellMeta(e,t,o,i)),this.render()},disabled:!1},{key:`${r}:bottom`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM)},callback(){const e=this.getSelectedRange(),t=(0,i.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="vertical",s="htBottom";this.runHooks("beforeCellAlignment",t,e,o,s),(0,i.align)(e,o,s,(e,t)=>this.getCellMeta(e,t),(e,t,o,i)=>this.setCellMeta(e,t,o,i)),this.render()},disabled:!1}]}}};var i=o(32971),s=o(73192),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(8278));const r=t.KEY="alignment"},49262:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToRows",callback(e){const{selection:t}=e,{highlight:o,from:i,to:s}=e.getSelectedRangeActive();t.markSource("keyboard"),t.isSelectedByColumnHeader()?t.selectAll(!0,!0):e.selectRows(i.row,s.row,o),t.markEndSource()}}},49456:(e,t,o)=>{"use strict";var i=o(31884),s=o(84990).add,n=o(96938),r=o(29521),a=o(82719);e.exports=function(e){var t=i(this),o=r(e).getIterator(),l=n(t);return a(o,function(e){s(l,e)}),l}},49510:(e,t,o)=>{"use strict";var i=o(14326),s=o(24755),n=TypeError;e.exports=function(e){if(i(e))return e;throw new n(s(e)+" is not a function")}},49581:(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(26599)},49669:(e,t)=>{"use strict";t.__esModule=!0;t.SCOPE_TYPES=Object.freeze({INLINE:"inline",MODAL:"modal"}),t.FOCUS_SOURCES=Object.freeze({UNKNOWN:"unknown",CLICK:"click",TAB_FROM_ABOVE:"tab_from_above",TAB_FROM_BELOW:"tab_from_below"}),t.DEFAULT_SHORTCUTS_CONTEXT="grid"},49731:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(78437),r=o(84029),a=i(o(73652));const l=["data","width"];t.default=class{constructor(e){(0,s.default)(this,"globalMeta",void 0),(0,s.default)(this,"metas",new a.default(()=>this._createMeta())),this.globalMeta=e,this.metas=new a.default(()=>this._createMeta())}updateMeta(e,t){const o=this.getMeta(e);(0,n.extend)(o,t),(0,r.extendByMetaType)(o,t)}createColumn(e,t){this.metas.insert(e,t)}removeColumn(e,t){this.metas.remove(e,t)}getMeta(e){return this.metas.obtain(e)}getMetaConstructor(e){return this.metas.obtain(e).constructor}clearCache(){this.metas.clear()}_createMeta(){return(0,r.columnFactory)(this.globalMeta.getMetaConstructor(),l).prototype}}},49979:(e,t,o)=>{"use strict";var i=o(31884),s=o(84990).has,n=o(54230),r=o(29521),a=o(82719),l=o(13479);e.exports=function(e){var t=i(this),o=r(e);if(n(t)<o.size)return!1;var h=o.getIterator();return!1!==a(h,function(e){if(!s(t,e))return l(h,"normal",!1)})}},50148:(e,t,o)=>{"use strict";t.__esModule=!0,t.passwordRenderer=a;var i=o(28454),s=o(76651),n=o(58639);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},50151:(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(78437),s=w(o(49146));t.ALIGNMENT=s.KEY;var n=w(o(2224));t.CLEAR_COLUMN=n.KEY;var r=w(o(45272));t.COLUMN_LEFT=r.KEY;var a=w(o(77915));t.COLUMN_RIGHT=a.KEY;var l=w(o(59453));t.READ_ONLY=l.KEY;var h=w(o(62731));t.REDO=h.KEY;var c=w(o(63545));t.REMOVE_COLUMN=c.KEY;var u=w(o(97943));t.REMOVE_ROW=u.KEY;var d=w(o(7810));t.ROW_ABOVE=d.KEY;var g=w(o(32510));t.ROW_BELOW=g.KEY;var f=w(o(73192));t.SEPARATOR=f.KEY;var p=w(o(99038));t.NO_ITEMS=p.KEY;var m=w(o(81501));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}},51377:(e,t)=>{"use strict";t.__esModule=!0,t.parse=function(e){const t=[[""]];if(0===e.length)return t;let n,r=0,a=0;for(;e.length>0&&n!==e.length;)if(n=e.length,e.match(s))e=e.replace(s,""),r+=1,t[a][r]="";else if(e.match(o))e=e.replace(o,""),r=0,a+=1,t[a]=[""];else{let o="";if(e.startsWith('"')){let t=0,i=!0;for(;i;){const s=e.slice(0,1);'"'===s&&(t+=1),o+=s,(0===(e=e.slice(1)).length||e.match(/^[\t\r\n]/)&&t%2==0)&&(i=!1)}o=o.replace(/^"/,"").replace(/"$/,"").replace(/["]*/g,e=>new Array(Math.floor(e.length/2)).fill('"').join(""))}else{const t=e.match(i);o=t?t[0]:"",e=e.slice(o.length)}t[a][r]=o}return t},t.stringify=function(e){let t,o,i,s,n,r="";for(t=0,o=e.length;t<o;t+=1){for(s=e[t].length,i=0;i<s;i+=1)i>0&&(r+="\t"),n=e[t][i],"string"==typeof n?n.indexOf("\n")>-1?r+=`"${n.replace(/"/g,'""')}"`:r+=n:r+=null==n?"":n;t!==o-1&&(r+="\n")}return r};const o=/^(\r\n|\n\r|\r|\n)/,i=/^[^\t\r\n]+/,s=/^\t/},51472:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(93911);t.CELL_TYPE=i.CELL_TYPE,t.NumericCellType=i.NumericCellType},51637:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"editorCloseAndSaveByEnter",callback(e,t){const o=e._getEditorManager();o.closeEditorAndSaveChanges(t.ctrlKey||t.metaKey),o.moveSelectionAfterEnter(t)}}},51670:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(81396),o(14618);var s=o(94857),n=i(o(79596)),r=i(o(28752)),a=o(74419),l=o(14548),h=o(27783);function c(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function u(e,t,o){return e.set(g(e,t),o),o}function d(e,t){return e.get(g(e,t))}function g(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var f=new WeakMap,p=new WeakMap,m=new WeakMap;t.default=class{constructor(){c(this,f,new n.default),c(this,p,new r.default(d(f,this))),c(this,m,[[]])}setState(e){d(f,this).setData(e);let t=!1;try{d(p,this).buildTree()}catch(e){d(p,this).clear(),d(f,this).clear(),t=!0}return u(m,this,(0,l.generateMatrix)(d(p,this).getRoots())),t}setColumnsLimit(e){d(f,this).setColumnsLimit(e)}mergeStateWith(e){const t=(0,s.arrayMap)(e,e=>{let{row:t,...o}=e;return{row:t<0?this.rowCoordsToLevel(t):t,...o}});d(f,this).mergeWith(t),d(p,this).buildTree(),u(m,this,(0,l.generateMatrix)(d(p,this).getRoots()))}mapState(e){d(f,this).map(e),d(p,this).buildTree(),u(m,this,(0,l.generateMatrix)(d(p,this).getRoots()))}mapNodes(e){return(0,s.arrayReduce)(d(p,this).getRoots(),(t,o)=>(o.walkDown(o=>{const i=e(o.data);void 0!==i&&t.push(i)}),t),[])}triggerNodeModification(e,t,o){t<0&&(t=this.rowCoordsToLevel(t));const i=d(p,this).getNode(t,o);let s;return i&&(s=(0,a.triggerNodeModification)(e,i,o),u(m,this,(0,l.generateMatrix)(d(p,this).getRoots()))),s}triggerColumnModification(e,t){return this.triggerNodeModification(e,-1,t)}rowCoordsToLevel(e){if(e>=0)return null;const t=e+Math.max(this.getLayersCount(),1);return t<0?null:t}levelToRowCoords(e){if(e<0)return null;const t=e-Math.max(this.getLayersCount(),1);return t>=0?null:t}getHeaderSettings(e,t){var o,i;return e<0&&(e=this.rowCoordsToLevel(e)),null===e||e>=this.getLayersCount()?null:null!==(o=null===(i=d(m,this)[e])||void 0===i?void 0:i[t])&&void 0!==o?o:null}getHeaderTreeNodeData(e,t){const o=this.getHeaderTreeNode(e,t);return o?{...o.data}:null}getHeaderTreeNode(e,t){if(e<0&&(e=this.rowCoordsToLevel(e)),null===e||e>=this.getLayersCount())return null;const o=d(p,this).getNode(e,t);return o||null}findTopMostEntireHeaderLevel(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const o=t-e+1;let i=!1,s=null;for(let n=e;n<=t;n++){const r=d(p,this).getRootByColumn(n);if(!r)break;i=!0,r.walkDown(i=>{const{columnIndex:n,headerLevel:r,origColspan:a,isHidden:l}=i.data;l||a<=o&&n>=e&&n+a-1<=t&&(null===s||r<s)&&(s=r)},h.TRAVERSAL_DF_PRE)}return i&&null===s?-1:this.levelToRowCoords(null!=s?s:0)}findLeftMostColumnIndex(e,t){var o;const{isRoot:i}=null!==(o=this.getHeaderSettings(e,t))&&void 0!==o?o:{isRoot:!0};if(i)return t;let s=t-1;for(;s>=0;){var n;const{isRoot:t}=null!==(n=this.getHeaderSettings(e,s))&&void 0!==n?n:{isRoot:!0};if(t)break;s-=1}return s}findRightMostColumnIndex(e,t){var o;const{isRoot:i,origColspan:s}=null!==(o=this.getHeaderSettings(e,t))&&void 0!==o?o:{isRoot:!0,origColspan:1};if(i)return t+s-1;let n=t+1;for(;n<this.getColumnsCount();){var r;const{isRoot:t}=null!==(r=this.getHeaderSettings(e,n))&&void 0!==r?r:{isRoot:!0};if(t)break;n+=1}return n-1}getLayersCount(){return d(f,this).getLayersCount()}getColumnsCount(){return d(f,this).getColumnsCount()}clear(){u(m,this,[]),d(f,this).clear(),d(p,this).clear()}}},51736:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(37637),o(81396),o(39691),o(81124),o(82101),o(14618),o(39716);var s=i(o(81115)),n=o(82936),r=o(94857),a=o(78437),l=o(76651),h=o(26599),c=o(73983),u=o(57455),d=o(28454),g=o(3226),f=o(99586);function p(e,t,o){m(e,t),t.set(e,o)}function m(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function w(e,t){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.EDITOR_TYPE="autocomplete";var y=new WeakMap,S=new WeakMap,E=new WeakSet;class R extends n.HandsontableEditor{constructor(){var e,t;super(...arguments),m(e=this,t=E),t.add(e),(0,s.default)(this,"query",null),(0,s.default)(this,"strippedChoices",[]),(0,s.default)(this,"rawChoices",[]),p(this,y,this.hot.guid.slice(0,9)),p(this,S,(0,f.debounce)(()=>{this.focus()},100))}static get EDITOR_TYPE(){return v}getValue(){const e=this.rawChoices.find(e=>{const t=this.stripValueIfNeeded(e);return(C(E,this,_).call(this,t)?t.value:t)===this.TEXTAREA.value});return(0,h.isDefined)(e)?e:this.TEXTAREA.value}createElements(){super.createElements(),(0,l.addClass)(this.htContainer,"autocompleteEditor"),(0,l.addClass)(this.htContainer,-1===this.hot.rootWindow.navigator.platform.indexOf("Mac")?"":"htMacScroll"),this.hot.getSettings().ariaTags&&(0,l.setAttribute)(this.TEXTAREA,[(0,g.A11Y_TEXT)(),(0,g.A11Y_COMBOBOX)(),(0,g.A11Y_HASPOPUP)("listbox"),(0,g.A11Y_AUTOCOMPLETE)()])}prepare(e,t,o,i,s,n){super.prepare(e,t,o,i,s,n),this.hot.getSettings().ariaTags&&(0,l.setAttribute)(this.TEXTAREA,[(0,g.A11Y_EXPANDED)("false"),(0,g.A11Y_CONTROLS)(`${w(y,this)}-listbox-${e}-${t}`)]),this.htOptions={...this.htOptions,valueGetter:e=>C(E,this,_).call(this,e)?e.value:e}}open(){super.open();const e=void 0===this.cellProperties.trimDropdown||this.cellProperties.trimDropdown,t=this.hot.getSettings().ariaTags,o=Array.isArray(this.cellProperties.source)?this.cellProperties.source:null,i=null==o?void 0:o.length,{row:s,col:n}=this;this.showEditableElement(),this.focus(),this.addHook("beforeKeyDown",e=>this.onBeforeKeyDown(e)),this.htEditor.addHook("afterScroll",w(S,this)),this.htEditor.updateSettings({colWidths:e?[(0,l.outerWidth)(this.TEXTAREA)-2]:void 0,autoColumnSize:!0,renderer:(e,s,n,r,a,c,u)=>{(0,d.textRenderer)(e,s,n,r,a,c,u);const{filteringCaseSensitive:f,allowHtml:p,locale:m}=this.cellProperties,w=this.query;let C,v,y=(0,h.stringify)(c);y&&!p&&(C=!0===f?y.indexOf(w):y.toLocaleLowerCase(m).indexOf(w.toLocaleLowerCase(m)),-1!==C&&(v=y.substr(C,w.length),y=y.replace(v,`<strong>${v}</strong>`))),t&&(0,l.setAttribute)(s,[(0,g.A11Y_OPTION)(),...o?[(0,g.A11Y_SETSIZE)(i)]:[],...o?[(0,g.A11Y_POSINSET)(o.indexOf(c)+1)]:[],["id",`${this.htEditor.rootElement.id}_${n}-${r}`]]),s.innerHTML=y},afterSelectionEnd:(e,o)=>{if(t){const t=e=>{(0,l.setAttribute)(e,[(0,g.A11Y_SELECTED)()]),(0,l.setAttribute)(this.TEXTAREA,...(0,g.A11Y_ACTIVEDESCENDANT)(e.id))},i=this.htEditor.getCell(e,o,!0);null!==i?t(i):this.htEditor.addHookOnce("afterScrollVertically",()=>{const i=this.htEditor.getCell(e,o,!0);t(i)})}}}),t&&((0,l.setAttribute)(this.htEditor.view._wt.wtOverlays.wtTable.TABLE,...(0,g.A11Y_PRESENTATION)()),(0,l.setAttribute)(this.htEditor.rootElement,[(0,g.A11Y_LISTBOX)(),(0,g.A11Y_LIVE)("polite"),(0,g.A11Y_RELEVANT)("text"),["id",`${w(y,this)}-listbox-${s}-${n}`]]),(0,l.setAttribute)(this.TEXTAREA,...(0,g.A11Y_EXPANDED)("true"))),this.hot._registerTimeout(()=>{this.queryChoices(this.TEXTAREA.value)})}close(){this.removeHooksByKey("beforeKeyDown"),super.close(),this.hot.getSettings().ariaTags&&(0,l.setAttribute)(this.TEXTAREA,[(0,g.A11Y_EXPANDED)("false")])}discardEditor(e){super.discardEditor(e),this.hot.view.render()}finishEditing(e,t,o){if(this.isOpened()){const t=this.hot.getSelectedRangeActive();((0,h.isUndefined)(t)||(0,h.isDefined)(t)&&!t.includes(this.hot._createCellCoords(this.row,this.col)))&&(e=!0)}super.finishEditing(e,t,o)}queryChoices(e){const t=this.cellProperties.source;this.query=e,"function"==typeof t?t.call(this.cellProperties,e,e=>{this.rawChoices=e,this.updateChoicesList(this.stripValuesIfNeeded(e))}):Array.isArray(t)?(this.rawChoices=t,this.updateChoicesList(this.stripValuesIfNeeded(t))):this.updateChoicesList([])}updateChoicesList(e){const t=(0,l.getCaretPosition)(this.TEXTAREA),o=(0,l.getSelectionEndPosition)(this.TEXTAREA),i=this.cellProperties.sortByRelevance,s=this.cellProperties.filter,n=this.stripValueIfNeeded(this.getValue()),a=C(E,this,_).call(this,n)?n.value:n;let u=null,d=e;i||(d=d.toSorted());const g=[],f=this.cellProperties.locale,p=this.cellProperties.filteringCaseSensitive,m=p?a:a.toLocaleLowerCase(f);for(let e=0;e<d.length;e++){const t=C(E,this,_).call(this,d[e])?(0,c.stripTags)((0,h.stringify)(d[e].value)):(0,c.stripTags)((0,h.stringify)(d[e]));if(-1!==(p?t:t.toLocaleLowerCase(f)).indexOf(m)&&(g.push(e),!1===s))break}!1===s?n.length>0&&(u=g[0]):(d=g.map(e=>d[e]),u=d.indexOf(m)>-1?d.indexOf(m):0),this.strippedChoices=d,0===d.length?this.htEditor.rootElement.style.display="none":this.htEditor.rootElement.style.display="",this.htEditor.loadData((0,r.pivot)([d])),d.length>0&&(this.updateDropdownDimensions(),this.flipDropdownVerticallyIfNeeded(),!0===this.cellProperties.strict&&this.highlightBestMatchingChoice(u)),this.hot.listen(),(0,l.setCaretPosition)(this.TEXTAREA,t,t===o?void 0:o)}flipDropdownVerticallyIfNeeded(){const e=super.flipDropdownVerticallyIfNeeded(),{isFlipped:t,spaceAbove:o,spaceBelow:i}=e;return this.limitDropdownIfNeeded(t?o:i),e}limitDropdownIfNeeded(e){const t=this.getDropdownHeight();if(t>e){let o=0,i=0,s=null;do{i=this.htEditor.stylesHandler.getDefaultRowHeight(),o+=i}while(o<e);s=o-i,this.isFlippedVertically&&(this.htEditor.rootElement.style.top=parseInt(this.htEditor.rootElement.style.top,10)+t-s+"px"),this.setDropdownHeight(o-i)}}updateDropdownDimensions(){const e=(0,l.getFractionalScalingCompensation)(),t=this.getTargetEditorWidth()+e,o=this.getTargetEditorHeight()+e;this.htEditor.updateSettings({width:t,height:o}),C(E,this,b).call(this),this.htEditor.view._wt.wtTable.alignOverlaysWithTrimmingContainer()}setDropdownHeight(e){this.htEditor.updateSettings({height:e}),C(E,this,b).call(this),this.htEditor.view._wt.wtTable.alignOverlaysWithTrimmingContainer()}highlightBestMatchingChoice(e){"number"==typeof e?this.htEditor.selectCell(e,0,void 0,void 0,void 0,!1):this.htEditor.deselectCell()}getTargetEditorHeight(){let e=0;if(!this.hot.getCurrentThemeName()){const t=this.hot.rootWindow.getComputedStyle(this.htContainer.querySelector(".htCore"));e=parseInt(t.borderTopWidth,10)+parseInt(t.borderBottomWidth,10)}const t=Math.min(this.cellProperties.visibleRows,this.strippedChoices.length);return Array.from({length:t},(e,t)=>t).reduce((e,t)=>e+(this.hot.stylesHandler.getDefaultRowHeight()+(0===t?1:0)),0)+e}getTargetEditorWidth(){let e=0;if(!this.hot.getCurrentThemeName()){const t=this.hot.rootWindow.getComputedStyle(this.htContainer.querySelector(".htCore"));e=parseInt(t.borderInlineStartWidth,10)+parseInt(t.borderInlineEndWidth,10)}return this.htEditor.getColWidth(0)+e}stripValueIfNeeded(e){return this.stripValuesIfNeeded([e])[0]}stripValuesIfNeeded(e){const{allowHtml:t}=this.cellProperties,o=e=>(0,h.stringify)(t?e:(0,c.stripTags)(e));return e.every(e=>C(E,this,_).call(this,e))?e.map(e=>({key:o(e.key),value:o(e.value)})):e.map(e=>o(e))}onBeforeKeyDown(e){if((0,u.isPrintableChar)(e.keyCode)||e.keyCode===u.KEY_CODES.BACKSPACE||e.keyCode===u.KEY_CODES.DELETE||e.keyCode===u.KEY_CODES.INSERT){let t=10;if(e.keyCode===u.KEY_CODES.C&&(e.ctrlKey||e.metaKey))return;this.isOpened()||(t+=10),this.htEditor&&this.hot._registerTimeout(()=>{this.queryChoices(this.TEXTAREA.value)},t)}}}function b(){this.htEditor.view.hasVerticalScroll()&&this.htEditor.updateSettings({width:this.getTargetEditorWidth()+(0,l.getScrollbarWidth)(this.hot.rootDocument)})}function _(e){return(0,a.isObject)(e)&&(0,h.isDefined)(e.key)&&(0,h.isDefined)(e.value)}t.AutocompleteEditor=R},51964:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(46198);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.ColumnSummary=i.ColumnSummary},52072:(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(81396),o(14618);var i=o(70667);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]])},52150:(e,t,o)=>{"use strict";t.__esModule=!0,t.getClassesToAdd=function(e,t,o){const s=[];if(!1===o)return s;e.isColumnSorted(t)&&e.getNumberOfSortedColumns()>1&&s.push(`${i}-${e.getIndexOfColumnInSortQueue(t)+1}`);return s},t.getClassesToRemove=function(e){const t=e.className.split(" "),o=new RegExp(`^${i}-[0-9]{1,2}$`);return t.filter(e=>o.test(e))},o(66182),o(81396),o(81124);const i="sort"},52270:(e,t,o)=>{"use strict";var i=o(14326);e.exports=function(e){return"object"==typeof e?null!==e:i(e)}},52282:(e,t,o)=>{"use strict";var i=o(21912),s=o(33477),n=Function.prototype,r=i&&Object.getOwnPropertyDescriptor,a=s(n,"name"),l=a&&"something"===function(){}.name,h=a&&(!i||i&&r(n,"name").configurable);e.exports={EXISTS:a,PROPER:l,CONFIGURABLE:h}},52392:(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(8278)),s=o(76742),n=o(26447);const r=t.CONDITION_NAME="neq";function a(e,t){return!(0,s.getCondition)(n.CONDITION_NAME,t)(e)}(0,s.registerCondition)(r,a,{name:i.FILTERS_CONDITIONS_NOT_EQUAL,inputsCount:1,showOperators:!0})},52411:(e,t,o)=>{"use strict";o(81396),o(88633),t.__esModule=!0;var i={createIndexMap:!0,HidingMap:!0,IndexMap:!0,LinkedPhysicalIndexToValueMap:!0,PhysicalIndexToValueMap:!0,TrimmingMap:!0};t.createIndexMap=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!u.has(e))throw new Error(`The provided map type ("${e}") does not exist.`);return new(u.get(e))(t)},o(22588);var s=o(88928);t.HidingMap=s.HidingMap;var n=o(59405);t.IndexMap=n.IndexMap;var r=o(33943);t.LinkedPhysicalIndexToValueMap=r.LinkedPhysicalIndexToValueMap;var a=o(75372);t.PhysicalIndexToValueMap=a.PhysicalIndexToValueMap;var l=o(6490);t.TrimmingMap=l.TrimmingMap;var h=o(19454);Object.keys(h).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===h[e]||(t[e]=h[e]))});var c=o(5760);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===c[e]||(t[e]=c[e]))});const u=new Map([["hiding",s.HidingMap],["index",n.IndexMap],["linkedPhysicalIndexToValue",r.LinkedPhysicalIndexToValueMap],["physicalIndexToValue",a.PhysicalIndexToValueMap],["trimming",l.TrimmingMap]])},52554:(e,t,o)=>{"use strict";var i=o(94988),s=o(87681),n=Math.floor,r=i("".charAt),a=i("".replace),l=i("".slice),h=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,o,i,u,d){var g=o+e.length,f=i.length,p=c;return void 0!==u&&(u=s(u),p=h),a(d,p,function(s,a){var h;switch(r(a,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,o);case"'":return l(t,g);case"<":h=u[l(a,1,-1)];break;default:var c=+a;if(0===c)return s;if(c>f){var d=n(c/10);return 0===d?s:d<=f?void 0===i[d-1]?r(a,1):i[d-1]+r(a,1):s}h=i[c-1]}return void 0===h?"":h})}},52576:(e,t,o)=>{"use strict";var i=o(94988),s=o(33477),n=o(56769),r=o(34341).indexOf,a=o(46049),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}},52709:(e,t)=>{"use strict";t.__esModule=!0;t.getCornerStyle=e=>{const t=e.wtSettings.getSetting("stylesHandler");if(t.isClassicTheme())return Object.freeze({width:6,height:6,borderWidth:1,borderStyle:"solid",borderColor:"#FFF"});const o=t.getCSSVariableValue("cell-autofill-size"),i=t.getCSSVariableValue("cell-autofill-border-width"),s=t.getCSSVariableValue("cell-autofill-border-color");return Object.freeze({width:o,height:o,borderWidth:i,borderStyle:"solid",borderColor:s})}},52958:(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(8278)),s=o(76742);const n=t.CONDITION_NAME="gt";function r(e,t){let[o]=t,i=o;return"numeric"===e.meta.type&&(i=parseFloat(i,10)),e.value>i}(0,s.registerCondition)(n,r,{name:i.FILTERS_CONDITIONS_GREATER_THAN,inputsCount:1,showOperators:!0})},53074:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(73050),r=o(36997),a=o(76651),l=o(3226);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},53269:(e,t,o)=>{"use strict";var i=o(19617),s=o(52270),n=o(497),r=o(61338),a=o(57490),l=o(71671),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)}},53394:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionDownByViewportHeight",callback(e){const{selection:t,rowIndexMapper:o}=e,{to:i}=e.getSelectedRangeActive(),s=Math.min(i.row+e.countVisibleRows(),e.countRows()-1),n=o.getNearestNotHiddenIndex(s,-1);if(null!==n){const o=e._createCellCoords(n,i.col),s=i.row-e.getFirstFullyVisibleRow(),r=Math.min(o.row-s,e.countRows()-1);t.markSource("keyboard"),t.setRangeEnd(o,e.getActiveSelectionLayerIndex()),t.markEndSource(),e.scrollViewportTo({row:r,verticalSnap:"top",horizontalSnap:"start"})}}}},53557:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588);var i=o(68671);t.getDecreasedIndexes=i.getDecreasedIndexes,t.getIncreasedIndexes=i.getIncreasedIndexes;var s=o(5760),n=o(61570);const r=new Map([["indexesSequence",{getListWithInsertedItems:s.getListWithInsertedItems,getListWithRemovedItems:s.getListWithRemovedItems}],["physicallyIndexed",{getListWithInsertedItems:n.getListWithInsertedItems,getListWithRemovedItems:n.getListWithRemovedItems}]]);t.alterUtilsFactory=e=>{if(!1===r.has(e))throw new Error(`Alter strategy with ID '${e}' does not exist.`);return r.get(e)}},53708:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550);var s=i(o(81115)),n=o(97819),r=o(78437),a=o(99586);t.DynamicCellMetaMod=class{constructor(e){var t=this;(0,s.default)(this,"metaManager",void 0),(0,s.default)(this,"metaSyncMemo",new Map),this.metaManager=e,e.addLocalHook("afterGetCellMeta",function(){return t.extendCellMeta(...arguments)}),n.Hooks.getSingleton().add("beforeRender",e=>{e&&this.metaSyncMemo.clear()},this.metaManager.hot)}extendCellMeta(e){var t;const{row:o,col:i}=e;if(null!==(t=this.metaSyncMemo.get(o))&&void 0!==t&&t.has(i))return;const{visualRow:s,visualCol:n}=e,l=this.metaManager.hot,h=l.colToProp(n);e.prop=h,l.runHooks("beforeGetCellMeta",s,n,e);const c=(0,r.hasOwnProperty)(e,"type")?e.type:null;let u=(0,a.isFunction)(e.cells)?e.cells(o,i,h):null;var d;c&&(u?u.type=null!==(d=u.type)&&void 0!==d?d:c:u={type:c});u&&this.metaManager.updateCellMeta(o,i,u),l.runHooks("afterGetCellMeta",s,n,e),this.metaSyncMemo.has(o)||this.metaSyncMemo.set(o,new Set),this.metaSyncMemo.get(o).add(i)}}},54060:(e,t,o)=>{"use strict";var i,s=o(16539),n=o(16933),r=o(20155),a=o(46049),l=o(88025),h=o(59899),c=o(26075),u="prototype",d="script",g=c("IE_PROTO"),f=function(){},p=function(e){return"<"+d+">"+e+"</"+d+">"},m=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},w=function(){try{i=new ActiveXObject("htmlfile")}catch(e){}var e,t,o;w="undefined"!=typeof document?document.domain&&i?m(i):(t=h("iframe"),o="java"+d+":",t.style.display="none",l.appendChild(t),t.src=String(o),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):m(i);for(var s=r.length;s--;)delete w[u][r[s]];return w()};a[g]=!0,e.exports=Object.create||function(e,t){var o;return null!==e?(f[u]=s(e),o=new f,f[u]=null,o[g]=e):o=w(),void 0===t?o:n.f(o,t)}},54230:(e,t,o)=>{"use strict";var i=o(90254),s=o(84990);e.exports=i(s.proto,"size","get")||function(e){return e.size}},54259:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550);var i=o(76651);function s(e,t,o){n(e,t),t.set(e,o)}function n(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function r(e,t){return e.get(l(e,t))}function a(e,t,o){return e.set(l(e,t),o),o}function l(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,c=new WeakMap,u=new WeakSet;function d(e){let[t,o,s,n]=r(h,this).getCorners();if(t<0&&s<0||o<0&&n<0)return;const{wtTable:a}=r(c,this),l=t!==s||o!==n;if(o=Math.max(o,0),n=Math.max(n,0),t=Math.max(t,0),s=Math.max(s,0),l){if(o=Math.max(o,a.getFirstRenderedColumn()),n=Math.min(n,a.getLastRenderedColumn()),t=Math.max(t,a.getFirstRenderedRow()),s=Math.min(s,a.getLastRenderedRow()),n<o||s<t)return}else{const e=a.getCell(r(c,this).createCellCoords(t,o));if(!(0,i.isHTMLElement)(e))return}for(let i=t;i<=s;i+=1)for(let t=o;t<=n;t+=1)e(i,t)}function g(e){const{wtTable:t}=r(c,this),o=t.getRenderedRowsCount(),i=t.getRenderedColumnsCount();for(let s=0;s<o;s+=1){const o=t.rowFilter.renderedToSource(s);for(let s=0;s<i;s+=1)e(o,t.columnFilter.renderedToSource(s))}}t.SelectionScanner=class{constructor(){var e,t;n(e=this,t=u),t.add(e),s(this,h,void 0),s(this,c,void 0)}setActiveOverlay(e){return a(c,this,e),this}setActiveSelection(e){return a(h,this,e),this}scan(){const e=r(h,this).settings.selectionType,t=new Set;return"active-header"===e?(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanRowsInHeadersRange(e=>t.add(e))):"area"===e?this.scanCellsRange(e=>t.add(e)):"focus"===e?(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanRowsInHeadersRange(e=>t.add(e)),this.scanCellsRange(e=>t.add(e))):"fill"===e?this.scanCellsRange(e=>t.add(e)):"header"===e?(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanRowsInHeadersRange(e=>t.add(e))):"row"===e?(this.scanRowsInHeadersRange(e=>t.add(e)),this.scanRowsInCellsRange(e=>t.add(e))):"column"===e&&(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanColumnsInCellsRange(e=>t.add(e))),t}scanColumnsInHeadersRange(e){const[t,o,i,s]=r(h,this).getCorners(),{wtTable:n}=r(c,this),a=n.getRenderedColumnsCount(),l=n.getColumnHeadersCount();let u=0;for(let d=-n.getRowHeadersCount();d<a;d++){const a=n.columnFilter.renderedToSource(d);if(!(a<o||a>s)){for(let d=-l;d<0;d++){if(d<t||d>i)continue;const g=d+l;let f=n.getColumnHeader(a,g);const p=r(c,this).getSetting("onBeforeHighlightingColumnHeader",a,g,{selectionType:r(h,this).settings.selectionType,columnCursor:u,selectionWidth:s-o+1});null!==p&&(p!==a&&(f=n.getColumnHeader(p,g)),e(f))}u+=1}}}scanRowsInHeadersRange(e){const[t,o,i,s]=r(h,this).getCorners(),{wtTable:n}=r(c,this),a=n.getRenderedRowsCount(),l=n.getRowHeadersCount();let u=0;for(let d=-n.getColumnHeadersCount();d<a;d++){const a=n.rowFilter.renderedToSource(d);if(!(a<t||a>i)){for(let d=-l;d<0;d++){if(d<o||d>s)continue;const g=d+l;let f=n.getRowHeader(a,g);const p=r(c,this).getSetting("onBeforeHighlightingRowHeader",a,g,{selectionType:r(h,this).settings.selectionType,rowCursor:u,selectionHeight:i-t+1});null!==p&&(p!==a&&(f=n.getRowHeader(p,g)),e(f))}u+=1}}}scanCellsRange(e){const{wtTable:t}=r(c,this);l(u,this,d).call(this,(o,s)=>{const n=t.getCell(r(c,this).createCellCoords(o,s)),a=r(c,this).getSetting("onAfterDrawSelection",o,s,r(h,this).settings.layerLevel);"string"==typeof a&&(0,i.addClass)(n,a),e(n)})}scanRowsInCellsRange(e){const[t,,o]=r(h,this).getCorners(),{wtTable:i}=r(c,this);l(u,this,g).call(this,(s,n)=>{if(s>=t&&s<=o){const t=i.getCell(r(c,this).createCellCoords(s,n));e(t)}})}scanColumnsInCellsRange(e){const[,t,,o]=r(h,this).getCorners(),{wtTable:i}=r(c,this);l(u,this,g).call(this,(s,n)=>{if(n>=t&&n<=o){const t=i.getCell(r(c,this).createCellCoords(s,n));e(t)}})}}},54283:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(88633);var i=o(76952),s=o(96925);function n(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function r(e,t){return e.get(l(e,t))}function a(e,t,o){return e.set(l(e,t),o),o}function l(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,g=new WeakMap;t.ChangesObservable=class{constructor(){let{initialIndexValue:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,h,new Set),n(this,c,[]),n(this,u,[]),n(this,d,!1),n(this,g,!1),a(g,this,null!=e&&e)}createObserver(){const e=new i.ChangesObserver;return r(h,this).add(e),e.addLocalHook("unsubscribe",()=>{r(h,this).delete(e)}),e._writeInitialChanges((0,s.arrayDiff)(r(c,this),r(u,this))),e}emit(e){let t=r(u,this);r(d,this)&&r(c,this).length===e.length||(0===e.length?e=new Array(t.length).fill(r(g,this)):a(c,this,new Array(e.length).fill(r(g,this))),r(d,this)||(a(d,this,!0),t=r(c,this)));const o=(0,s.arrayDiff)(t,e);r(h,this).forEach(e=>e._write(o)),a(u,this,e)}}},54368:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(51377);t.parse=i.parse,t.stringify=i.stringify},54480:(e,t,o)=>{"use strict";var i=o(27538),s=o(19617),n=o(81576),r=o(49510),a=o(16539),l=o(83203),h=o(13479),c=o(57625)("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}})},54505:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.createHighlight=function(e){let{...t}=e;return new n.default({className:"highlight",...t,selectionType:s.HIGHLIGHT_AREA_TYPE})};var s=o(24496),n=i(o(73358))},54687:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=l;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),s=o(76742),n=o(43382),r=o(6077);const a=t.CONDITION_NAME="between";function l(e,t){let[o,i]=t,a=o,l=i;if("numeric"===e.meta.type){const e=parseFloat(a,10),t=parseFloat(l,10);a=Math.min(e,t),l=Math.max(e,t)}else if("date"===e.meta.type){const t=(0,s.getCondition)(r.CONDITION_NAME,[l]),o=(0,s.getCondition)(n.CONDITION_NAME,[a]);return t(e)&&o(e)}return e.value>=a&&e.value<=l}(0,s.registerCondition)(a,l,{name:i.FILTERS_CONDITIONS_BETWEEN,inputsCount:2,showOperators:!0})},55210:(e,t,o)=>{"use strict";var i=o(91945),s=TypeError;e.exports=function(e){if(i(e))throw new s("Can't call method on "+e);return e}},55424:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(88633),o(39716);var s=i(o(81115)),n=o(42479),r=i(o(80674)),a=i(o(40191)),l=i(o(70445)),h=i(o(75475)),c=o(49581),u=o(91718),d=o(32435),g=o(7037),f=i(o(45571));function p(e,t,o){m(e,t),t.set(e,o)}function m(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function w(e,t){return e.get(v(e,t))}function C(e,t,o){return e.set(v(e,t),o),o}function v(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const y=t.PLUGIN_KEY="nestedRows",S=t.PLUGIN_PRIORITY=300,E=y;var R=new WeakMap,b=new WeakMap,_=new WeakSet;class T extends n.BasePlugin{constructor(){var e,t;super(...arguments),m(e=this,t=_),t.add(e),(0,s.default)(this,"dataManager",null),(0,s.default)(this,"headersUI",null),(0,s.default)(this,"collapsedRowsMap",null),p(this,R,!1),p(this,b,!1)}static get PLUGIN_KEY(){return y}static get PLUGIN_PRIORITY(){return S}isEnabled(){return!!this.hot.getSettings()[y]}enablePlugin(){var e=this;this.enabled||(this.collapsedRowsMap=this.hot.rowIndexMapper.registerMap("nestedRows",new d.TrimmingMap),this.dataManager=new r.default(this,this.hot),this.collapsingUI=new a.default(this,this.hot),this.headersUI=new l.default(this,this.hot),this.contextMenuUI=new h.default(this,this.hot),this.rowMoveController=new f.default(this),this.addHook("afterInit",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,F).call(e,...o)}),this.addHook("beforeViewRender",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,B).call(e,...o)}),this.addHook("modifyRowData",function(){return e.onModifyRowData(...arguments)}),this.addHook("modifySourceLength",function(){return e.onModifySourceLength(...arguments)}),this.addHook("beforeDataSplice",function(){return e.onBeforeDataSplice(...arguments)}),this.addHook("filterData",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,O).call(e,...o)}),this.addHook("afterContextMenuDefaultOptions",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,A).call(e,...o)}),this.addHook("afterGetRowHeader",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,N).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 v(_,e,I).call(e,...o)}),this.addHook("beforeRemoveRow",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,x).call(e,...o)}),this.addHook("afterRemoveRow",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,H).call(e,...o)}),this.addHook("beforeAddChild",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,k).call(e,...o)}),this.addHook("afterAddChild",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,D).call(e,...o)}),this.addHook("beforeDetachChild",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,L).call(e,...o)}),this.addHook("afterDetachChild",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,V).call(e,...o)}),this.addHook("modifyRowHeaderWidth",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,P).call(e,...o)}),this.addHook("afterCreateRow",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,W).call(e,...o)}),this.addHook("beforeRowMove",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,M).call(e,...o)}),this.addHook("beforeLoadData",e=>v(_,this,U).call(this,e)),this.addHook("beforeUpdateData",e=>v(_,this,U).call(this,e)),this.registerShortcuts(),super.enablePlugin())}disablePlugin(){this.hot.rowIndexMapper.unregisterMap("nestedRows"),this.unregisterShortcuts(),super.disablePlugin()}updatePlugin(){this.disablePlugin();const e=this.dataManager.getData();this.enablePlugin(),this.dataManager.updateWithData(e),super.updatePlugin()}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Enter"]],callback:()=>{const{highlight:e}=this.hot.getSelectedRangeActive(),t=this.collapsingUI.translateTrimmedRow(e.row);return this.collapsingUI.areChildrenCollapsed(t)?this.collapsingUI.expandChildren(t):this.collapsingUI.collapseChildren(t),!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.col&&o.row>=0},group:E,relativeToGroup:g.EDITOR_EDIT_GROUP,position:"before"})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(E)}disableCoreAPIModifiers(){C(b,this,!0)}enableCoreAPIModifiers(){C(b,this,!1)}onModifyRowData(e){if(!w(b,this))return this.dataManager.getDataObject(e)}onModifySourceLength(){if(!w(b,this))return this.dataManager.countAllRows()}onBeforeDataSplice(e,t,o){return!(!w(b,this)&&!this.dataManager.isRowHighestLevel(e))||(this.dataManager.spliceData(e,t,o),!1)}destroy(){super.destroy()}}function M(e,t,o,i){return this.rowMoveController.onBeforeRowMove(e,t,o,i)}function I(e,t,o){this.collapsingUI.toggleState(e,t,o)}function O(e,t,o){return this.collapsingUI.collapsedRowsStash.stash(),this.collapsingUI.collapsedRowsStash.trimStash(o[0],t),this.collapsingUI.collapsedRowsStash.shiftStash(o[0],null,-1*t),this.dataManager.filterData(e,t,o),C(R,this,!0),this.dataManager.getData().slice()}function A(e){return this.contextMenuUI.appendOptions(e)}function N(e,t){this.headersUI.appendLevelIndicators(e,t)}function P(e){return Math.max(this.headersUI.rowHeaderWidthCache,e)}function H(e,t,o,i){i!==this.pluginName&&this.hot._registerTimeout(()=>{C(R,this,!1),this.headersUI.updateRowHeaderWidth(),this.collapsingUI.collapsedRowsStash.applyStash()})}function x(e,t,o){const i=Array.from(o.reduce((e,t)=>{if(this.dataManager.isParent(t)){const o=this.dataManager.getDataObject(t).__children;return e.add(t),Array.isArray(o)&&o.forEach(t=>e.add(this.dataManager.getRowIndex(t))),e}return e.add(t)},new Set));o.length=0,o.push(...i)}function k(){this.collapsingUI.collapsedRowsStash.stash()}function D(e,t){this.collapsingUI.collapsedRowsStash.shiftStash(this.dataManager.getRowIndex(t)),this.collapsingUI.collapsedRowsStash.applyStash(),this.headersUI.updateRowHeaderWidth()}function L(){this.collapsingUI.collapsedRowsStash.stash()}function V(e,t,o){this.collapsingUI.collapsedRowsStash.shiftStash(o,null,-1),this.collapsingUI.collapsedRowsStash.applyStash(),this.headersUI.updateRowHeaderWidth()}function W(){this.dataManager.rewriteCache()}function F(){this.headersUI.updateRowHeaderWidth()}function B(e,t){w(R,this)&&(t.skipRender=!0)}function U(e){if(!(0,u.isArrayOfObjects)(e))return(0,c.error)("The Nested Rows plugin requires an Array of Objects as a dataset to be provided. The plugin has been disabled."),this.hot.getSettings()[y]=!1,void this.disablePlugin();this.dataManager.setData(e),this.dataManager.rewriteCache()}t.NestedRows=T},55595:(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(8278)),s=o(32971),n=o(63556)},56284:(e,t,o)=>{"use strict";t.__esModule=!0,t.valueSetter=function(e,t,o){const n=this.getSourceDataAtCell(this.toPhysicalRow(t),this.toPhysicalColumn(o)),r=e=>(0,i.isObject)(e)&&(0,s.isDefined)(e.key)&&(0,s.isDefined)(e.value);if(r(n))return r(e)?e:{key:e,value:e};return e};var i=o(78437),s=o(26599)},56456:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToColumns",callback(e){const{selection:t}=e,{highlight:o,from:i,to:s}=e.getSelectedRangeActive();t.markSource("keyboard"),t.isSelectedByRowHeader()?t.selectAll(!0,!0):e.selectColumns(i.col,s.col,o),t.markEndSource()}}},56676:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(76651),r=i(o(86488)),a=o(61651),l=o(82858);class h extends a.Overlay{constructor(e,t,o,i,n,r){super(e,t,l.CLONE_TOP_INLINE_START_CORNER,o,i),(0,s.default)(this,"topOverlay",void 0),(0,s.default)(this,"inlineStartOverlay",void 0),this.topOverlay=n,this.inlineStartOverlay=r}createTable(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return new r.default(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderTopOverlay")&&this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}resetFixedPosition(){if(this.updateTrimmingContainer(),!this.wot.wtTable.holder.parentNode)return!1;const e=this.clone.wtTable.holder.parentNode;if(this.trimmingContainer===this.domBindings.rootWindow){const t=this.inlineStartOverlay.getOverlayOffset()*(this.isRtl()?-1:1),o=this.topOverlay.getOverlayOffset();(0,n.setOverlayPosition)(e,`${t}px`,`${o}px`)}else(0,n.resetCssTransform)(e);let t=(0,n.outerHeight)(this.clone.wtTable.TABLE);const o=(0,n.outerWidth)(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(t=0),e.style.height=`${t}px`,e.style.width=`${o}px`,!1}}t.TopInlineStartCornerOverlay=h},56769:(e,t,o)=>{"use strict";var i=o(20699),s=o(55210);e.exports=function(e){return i(s(e))}},56795:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(76651),r=o(78437);function a(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function l(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakSet;function c(e){const{wtSettings:t,inlineStartOverlay:o,wtTable:i,wtViewport:s,totalColumns:r,rootWindow:a}=this.dataAccessObject;if(o.mainTableScrollableElement===a){let l=null;if(t.getSetting("rtlMode")){const e=i.TABLE.getBoundingClientRect(),t=this.dataAccessObject.rootWindow.document.documentElement.offsetWidth;l=Math.abs(e.right-t)}else{l=(0,n.offset)(i.wtRootElement).left}const h=Math.abs((0,n.getScrollLeft)(a,a));if(l>h){const t=(0,n.innerWidth)(a);let i=s.getRowHeaderWidth();for(let s=1;s<=r;s++)if(i+=o.sumCellSizes(s-1,s),l+i-h>=t){e=s-2;break}}}return e}function u(e){const{topOverlay:t,wtTable:o,wtViewport:i,totalRows:s,rootWindow:r}=this.dataAccessObject;if(t.mainTableScrollableElement===r){const a=(0,n.offset)(o.wtRootElement),l=(0,n.getScrollTop)(r,r);if(a.top>l){const o=(0,n.innerHeight)(r);let h=i.getColumnHeaderHeight();for(let i=1;i<=s;i++)if(h+=t.sumCellSizes(i-1,i),a.top+h-l>=o){e=i-2;break}}}return e}t.default=class{constructor(e){a(this,h),(0,s.default)(this,"dataAccessObject",void 0),this.dataAccessObject=e}scrollViewport(e,t,o){if(e.col<0||e.row<0)return!1;const i=this.scrollViewportHorizontally(e.col,t),s=this.scrollViewportVertically(e.row,o);return i||s}scrollViewportHorizontally(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";const{drawn:o,totalColumns:i}=this.dataAccessObject;if(!o)return!1;const s=(0,r.createObjectPropListener)(t);if(e=this.dataAccessObject.wtSettings.getSetting("onBeforeViewportScrollHorizontally",e,s),!Number.isInteger(e)||e<0||e>i)return!1;t=s.value;const{fixedColumnsStart:n,inlineStartOverlay:a}=this.dataAccessObject,l="auto"===t;if(l&&e<n)return!1;const h=this.getFirstVisibleColumn(),c=this.getLastVisibleColumn();let u=!1;return(l&&(e<h||e>c)||!l)&&(u=a.scrollTo(e,l?e>=this.getLastPartiallyVisibleColumn():"end"===t)),u}scrollViewportVertically(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";const{drawn:o,totalRows:i}=this.dataAccessObject;if(!o)return!1;const s=(0,r.createObjectPropListener)(t);if(e=this.dataAccessObject.wtSettings.getSetting("onBeforeViewportScrollVertically",e,s),!Number.isInteger(e)||e<0||e>i)return!1;t=s.value;const{fixedRowsBottom:n,fixedRowsTop:a,topOverlay:l}=this.dataAccessObject,h="auto"===t;if(h&&(e<a||e>i-n-1))return!1;const c=this.getFirstVisibleRow(),u=this.getLastVisibleRow();let d=!1;return(h&&(e<c||e>u)||!h)&&(d=l.scrollTo(e,h?e>=this.getLastPartiallyVisibleRow():"bottom"===t)),d}getFirstVisibleRow(){return this.dataAccessObject.wtTable.getFirstVisibleRow()}getLastVisibleRow(){return l(h,this,u).call(this,this.dataAccessObject.wtTable.getLastVisibleRow())}getFirstPartiallyVisibleRow(){return this.dataAccessObject.wtTable.getFirstPartiallyVisibleRow()}getLastPartiallyVisibleRow(){return l(h,this,u).call(this,this.dataAccessObject.wtTable.getLastPartiallyVisibleRow())}getFirstVisibleColumn(){return this.dataAccessObject.wtTable.getFirstVisibleColumn()}getLastVisibleColumn(){return l(h,this,c).call(this,this.dataAccessObject.wtTable.getLastVisibleColumn())}getFirstPartiallyVisibleColumn(){return this.dataAccessObject.wtTable.getFirstPartiallyVisibleColumn()}getLastPartiallyVisibleColumn(){return l(h,this,c).call(this,this.dataAccessObject.wtTable.getLastPartiallyVisibleColumn())}}},56902:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"selectAllCells",callback(e){let{selection:t}=e;t.markSource("keyboard"),t.selectAll(!0,!0,{disableHeadersHighlight:!0}),t.markEndSource()}}},57065:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"scrollToFocusedCell",callback(e){const{highlight:t}=e.getSelectedRangeActive(),o=e.getFirstFullyVisibleRow()-1,i=e.getFirstFullyVisibleColumn()-1,s=e.getLastFullyVisibleRow()+1,n=e.getLastFullyVisibleColumn()+1,r=e._createCellCoords(o,i),a=e._createCellCoords(s,n);if(!e._createCellRange(r,r,a).includes(t)&&(t.row>=0||t.col>=0)){const o={};if(t.col>=0){const i=Math.floor(e.countVisibleCols()/2);o.col=Math.max(t.col-i,0)}if(t.row>=0){const i=Math.floor(e.countVisibleRows()/2);o.row=Math.max(t.row-i,0)}e.scrollViewportTo({...o,verticalSnap:"top",horizontalSnap:"start"})}}}},57103:(e,t,o)=>{"use strict";t.__esModule=!0,t.expandNode=function e(t){const{data:o,childs:r}=t;if(!o.isCollapsed||o.isHidden||o.origColspan<=1)return{rollbackModification:()=>{},affectedColumns:[],colspanCompensation:0};if((0,n.isNodeReflectsFirstChildColspan)(t))return e(r[0]);o.isCollapsed=!1;const a=r.slice(1),l=new Set;let h=0;if(a.length>0)(0,i.arrayEach)(a,e=>{e.replaceTreeWith(e.data.clonedTree),e.data.clonedTree=null;const t=e.data;h+=t.colspan,(0,n.traverseHiddenNodeColumnIndexes)(e,e=>{l.add(e)})});else{const{colspan:e,origColspan:t,columnIndex:i}=o;h=t-e;for(let e=1;e<t;e++)l.add(i+e)}return t.walkUp(e=>{const{data:t}=e;t.colspan+=h,t.colspan>=t.origColspan?(t.colspan=t.origColspan,t.isCollapsed=!1):(0,n.isNodeReflectsFirstChildColspan)(e)&&(t.isCollapsed=(0,n.getFirstChildProperty)(e,"isCollapsed"))}),{rollbackModification:()=>(0,s.collapseNode)(t),affectedColumns:Array.from(l),colspanCompensation:h}},o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550);var i=o(94857),s=o(9364),n=o(31557)},57151:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.createHighlight=function(e){let{activeHeaderClassName:t,...o}=e;return new n.default({className:t,...o,selectionType:s.HIGHLIGHT_ACTIVE_HEADER_TYPE})};var s=o(24496),n=i(o(73358))},57396:(e,t,o)=>{"use strict";var i=o(40136),s=o(49510),n=o(38972),r=i(i.bind);e.exports=function(e,t){return s(e),void 0===t?e:n?r(e,t):function(){return e.apply(t,arguments)}}},57440:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(85239);t.CELL_TYPE=i.CELL_TYPE,t.HandsontableCellType=i.HandsontableCellType},57455:(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(66182);var i=o(94857),s=o(12108);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]},57490:(e,t,o)=>{"use strict";var i=o(19617),s=o(14326),n=o(52270),r=TypeError;e.exports=function(e,t){var o,a;if("string"===t&&s(o=e.toString)&&!n(a=i(o,e)))return a;if(s(o=e.valueOf)&&!n(a=i(o,e)))return a;if("string"!==t&&s(o=e.toString)&&!n(a=i(o,e)))return a;throw new r("Can't convert object to primitive value")}},57596:(e,t,o)=>{"use strict";var i=o(94988),s=0,n=Math.random(),r=i(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++s+n,36)}},57625:(e,t,o)=>{"use strict";var i=o(19596);e.exports=function(e,t){var o=i.Iterator,s=o&&o.prototype,n=s&&s[e],r=!1;if(n)try{n.call({next:function(){return{done:!0}},return:function(){r=!0}},-1)}catch(e){e instanceof t||(r=!1)}if(!r)return n}},57678:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"editorCloseAndSave",callback(e){e._getEditorManager().closeEditorAndSaveChanges()}}},57787:(e,t,o)=>{"use strict";t.__esModule=!0,t.createScrollTargetCalculator=function(e){const{selection:t,view:o}=e,i=e.getSelectedRangeActive(),s=t.getSelectionSource(),n=o.getFirstFullyVisibleColumn(),r=o.getLastFullyVisibleColumn(),a=i.getTopStartCorner().col,l=i.getBottomEndCorner().col,h=a<=n,c=l>=r,u=o.getFirstFullyVisibleRow(),d=o.getLastFullyVisibleRow(),g=i.getTopStartCorner().row,f=i.getBottomEndCorner().row,p=g<=u,m=f>=d;return{getComputedColumnTarget:e=>"mouse"===s||"keyboard"===s?e.col:h&&c?i.highlight.col:h?a:c?l:e.col,getComputedRowTarget:e=>"mouse"===s||"keyboard"===s?e.row:p&&m?i.highlight.row:p?g:m?f:e.row}},t.scrollWindowToCell=function(e){(0,i.isHTMLElement)(e)&&e.scrollIntoView({block:"nearest",inline:"nearest"})};var i=o(76651)},57806:(e,t)=>{"use strict";t.__esModule=!0,t.sumCellsHeights=function(e,t,o){const{rowIndexMapper:i,stylesHandler:s}=e;let n=0;for(let a=t;a<t+o;a++){var r;if(!i.isHidden(a))n+=null!==(r=e.getRowHeight(a))&&void 0!==r?r:s.getDefaultRowHeight(a)}return n}},57849:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182);var s=i(o(81115)),n=o(42765),r=o(43237),a=o(82539),l=o(50151),h=o(46261),c=i(o(13683)),u=o(94857),d=o(12108),g=o(76651),f=o(70667),p=o(99586),m=o(26599),w=o(78437),C=i(o(86248)),v=o(26913),y=o(3226);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)},58294:(e,t,o)=>{"use strict";t.__esModule=!0,o(81396),o(19874);var i=o(70667);t.command={name:"editorOpen",callback(e,t,o){const{selection:s}=e,n=e._getEditorManager(),r=e.getSelectedRange(),a=e.getSelectedRangeActive(),{highlight:l}=a;if((r.some(e=>s.isMultiple(e))||r.length>1)&&!a.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0){const i=e.getSettings(),n="function"==typeof i.enterMoves?i.enterMoves(t):i.enterMoves;return void(o.includes("shift")?s.transformFocus(-n.row,-n.col):s.transformFocus(n.row,n.col))}l.isHeader()||(e.getSettings().enterBeginsEditing?n.cellProperties.readOnly?n.moveSelectionAfterEnter(t):n.openEditor(null,t,!0):n.moveSelectionAfterEnter(t),(0,i.stopImmediatePropagation)(t))}}},58435:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(88216);class r extends n.PartiallyVisibleColumnsCalculationType{constructor(){super(...arguments),(0,s.default)(this,"columnStartOffset",0),(0,s.default)(this,"columnEndOffset",0)}finalize(e){var t;super.finalize(e);const{overrideFn:o,totalColumns:i,startPositions:s}=e;if(null!==this.startColumn&&"function"==typeof o){const e=this.startColumn,t=this.endColumn;o(this),this.columnStartOffset=e-this.startColumn,this.columnEndOffset=this.endColumn-t}this.startColumn<0&&(this.startColumn=0),this.startPosition=null!==(t=s[this.startColumn])&&void 0!==t?t:null,i<this.endColumn&&(this.endColumn=i-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}t.RenderedColumnsCalculationType=r},58583:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=n;var i=o(76742);const s=t.CONDITION_NAME="true";function n(){return!0}(0,i.registerCondition)(s,n,{name:"True"})},58639:(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(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(14618)},58719:e=>{"use strict";e.exports=!1},58765:(e,t,o)=>{"use strict";t.__esModule=!0,t.createFocusScopeManager=function(e){const t=(0,i.createUniqueMap)({errorIdExists:e=>`The "${e}" focus scope is already registered.`}),o=e.getShortcutManager();let l=null;function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.FOCUS_SOURCES.UNKNOWN;l!==e&&(null!==l&&c(l),l=e,l.activate(t),o.setActiveContextName(e.getShortcutsContextName()))}function c(e){u(),l===e&&(l=null,e.deactivate())}function u(){const o=t.getValues(),i=o.filter(e=>e.runOnlyIf()&&"modal"===e.getType());o.forEach(t=>{i.length>0&&i.includes(t)||0===i.length||t.hasContainerDetached()?t.enable():t.disable(),t===l?t.contains(e.rootDocument.activeElement)?t.deactivateFocusCatchers():t.activateFocusCatchers():t.runOnlyIf()?t.activateFocusCatchers():t.deactivateFocusCatchers()})}function d(o,i){if(!o.isConnected||!(0,a.isVisible)(o))return;const s=t.getValues().filter(e=>e.runOnlyIf());let n=!1;s.forEach(t=>{!n&&t.contains(o)&&(n=!0,i!==r.FOCUS_SOURCES.UNKNOWN&&e.listen(),h(t,i))}),!n&&l&&(c(l),e.unlisten())}const g=(0,n.useEventListener)(e.rootWindow,{onFocus:e=>{var t;d(e.target,null!==(t=e.target.dataset.htFocusSource)&&void 0!==t?t:r.FOCUS_SOURCES.UNKNOWN)},onClick:e=>{d(e.target,r.FOCUS_SOURCES.CLICK)},onTabKeyDown:()=>{u()}});return g.mount(),{getActiveScopeId:function(){if(!l)return null;return t.getId(l)},registerScope:function(i,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.hasItem(i))throw new Error(`Scope with id "${i}" already registered`);const a=(0,s.createFocusScope)(e,n,r);t.addItem(i,a),o.getOrCreateContext(a.getShortcutsContextName())},unregisterScope:function(e){if(!t.hasItem(e))throw new Error(`Scope with id "${e}" not found`);t.getItem(e).destroy(),t.removeItem(e)},activateScope:e=>function(e){if(!t.hasItem(e))throw new Error(`Scope with id "${e}" not found`);h(t.getItem(e))}(e),deactivateScope:e=>function(e){if(!t.hasItem(e))throw new Error(`Scope with id "${e}" not found`);c(t.getItem(e))}(e),destroy:()=>g.unmount()}},o(22588),o(81396),o(81124),o(88633);var i=o(79836),s=o(5e3),n=o(94228),r=o(49669),a=o(76651)},59195:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(26657));t.DataMap=s.default;var n=i(o(82292));t.MetaManager=n.default;var r=i(o(428));t.metaSchemaFactory=r.default;var a=o(14839);t.replaceData=a.replaceData;var l=o(53708);t.DynamicCellMetaMod=l.DynamicCellMetaMod;var h=o(95582);t.ExtendMetaPropertiesMod=h.ExtendMetaPropertiesMod},59311:(e,t,o)=>{"use strict";t.__esModule=!0,t.operationResult=a,o(81396),o(39691);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(8278)),s=o(14251);const n=t.OPERATION_ID="conjunction",r=t.SHORT_NAME_FOR_COMPONENT=i.FILTERS_LABELS_CONJUNCTION;function a(e,t){return e.every(e=>e.func(t))}(0,s.registerOperation)(n,r,a)},59317:(e,t,o)=>{"use strict";var i=o(13479);e.exports=function(e,t,o){for(var s=e.length-1;s>=0;s--)if(void 0!==e[s])try{o=i(e[s].iterator,t,o)}catch(e){t="throw",o=e}if("throw"===t)throw o;return o}},59375:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(81396),o(88633);var s=i(o(64326));function n(e,t,o){r(e,t),t.set(e,o)}function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function a(e,t){return e.get(h(e,t))}function l(e,t,o){return e.set(h(e,t),o),o}function h(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var c=new WeakMap,u=new WeakMap,d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,w=new WeakSet;function C(e){let{selectedRange:t,selectionLayer:o,listOrder:i,mergeCellsVisitor:s,row:n,column:r}=e;const l=t.getTopStartCorner(),h=t.getBottomEndCorner(),c=t.highlight.clone().normalize(),u=a(f,this).call(this,n,r);if(u&&s.has(u))return null;const d={selectionLayer:o,colStart:r,colEnd:r,rowStart:n,rowEnd:n};if(u){if(s.add(u),u.row<l.row||u.row+u.rowspan-1>h.row||u.col<l.col||u.col+u.colspan-1>h.col)return null;d.colStart=u.col,d.colEnd=u.col+u.colspan-1,d.rowStart=u.row,d.rowEnd=u.row+u.rowspan-1}const g=i.push(d);return n===c.row&&r===c.col||u&&c.row>=u.row&&c.row<=u.row+u.rowspan-1&&c.col>=u.col&&c.col<=u.col+u.colspan-1?g:null}t.FocusOrder=class{constructor(e){let{mergedCellsGetter:t,rowIndexMapper:o,columnIndexMapper:i}=e;var a,h;r(a=this,h=w),h.add(a),n(this,c,new s.default),n(this,u,new s.default),n(this,d,null),n(this,g,null),n(this,f,null),n(this,p,null),n(this,m,null),l(f,this,t),l(p,this,o),l(m,this,i)}getCurrentVerticalNode(){return a(g,this).data}getFirstVerticalNode(){return a(u,this).first.data}getNextVerticalNode(){return a(g,this).next.data}getPrevVerticalNode(){return a(g,this).prev.data}getCurrentHorizontalNode(){return a(d,this).data}getFirstHorizontalNode(){return a(c,this).first.data}getNextHorizontalNode(){return a(d,this).next.data}getPrevHorizontalNode(){return a(d,this).prev.data}setPrevNodeAsActive(){l(g,this,a(g,this).prev),l(d,this,a(d,this).prev)}setNextNodeAsActive(){l(g,this,a(g,this).next),l(d,this,a(d,this).next)}buildFocusOrder(e){l(c,this,new s.default),e.forEach((e,t)=>{const o=new WeakSet,i=e.getTopStartCorner(),s=e.getBottomEndCorner();for(let n=i.row;n<=s.row;n++)if(!a(p,this).isHidden(n))for(let r=i.col;r<=s.col;r++){if(a(m,this).isHidden(r))continue;const i=h(w,this,C).call(this,{selectedRange:e,selectionLayer:t,listOrder:a(c,this),mergeCellsVisitor:o,row:n,column:r});i&&l(d,this,i)}}),a(c,this).first&&(a(c,this).first.prev=a(c,this).last,a(c,this).last.next=a(c,this).first),l(u,this,new s.default),e.forEach((e,t)=>{const o=new WeakSet,i=e.getTopStartCorner(),s=e.getBottomEndCorner();for(let n=i.col;n<=s.col;n++)if(!a(m,this).isHidden(n))for(let r=i.row;r<=s.row;r++){if(a(p,this).isHidden(r))continue;const i=h(w,this,C).call(this,{selectedRange:e,selectionLayer:t,listOrder:a(u,this),mergeCellsVisitor:o,row:r,column:n});i&&l(g,this,i)}}),a(u,this).first&&(a(u,this).first.prev=a(u,this).last,a(u,this).last.next=a(u,this).first)}setActiveNode(e,t,o){return a(c,this).inorder(i=>{const{selectionLayer:s,rowStart:n,rowEnd:r,colStart:a,colEnd:h}=i.data;if(s===o&&e>=n&&e<=r&&t>=a&&t<=h)return l(d,this,i),!0}),a(u,this).inorder(i=>{const{selectionLayer:s,rowStart:n,rowEnd:r,colStart:a,colEnd:h}=i.data;if(s===o&&e>=n&&e<=r&&t>=a&&t<=h)return l(g,this,i),!0}),this}}},59405:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182);var s=i(o(81115)),n=o(58639),r=o(78437),a=o(99586),l=i(o(86248));class h{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,s.default)(this,"indexedValues",[]),(0,s.default)(this,"initValueOrFn",void 0),this.initValueOrFn=e}getValues(){return this.indexedValues}getValueAtIndex(e){const t=this.indexedValues;if(e<t.length)return t[e]}setValues(e){this.indexedValues=e.slice(),this.runLocalHooks("change")}setValueAtIndex(e,t){return e<this.indexedValues.length&&(this.indexedValues[e]=t,this.runLocalHooks("change"),!0)}clear(){this.setDefaultValues()}getLength(){return this.getValues().length}setDefaultValues(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.indexedValues.length=0,(0,a.isFunction)(this.initValueOrFn)?(0,n.rangeEach)(e-1,e=>this.indexedValues.push(this.initValueOrFn(e))):(0,n.rangeEach)(e-1,()=>this.indexedValues.push(this.initValueOrFn)),this.runLocalHooks("change")}init(e){return this.setDefaultValues(e),this.runLocalHooks("init"),this}insert(){this.runLocalHooks("change")}remove(){this.runLocalHooks("change")}destroy(){this.clearLocalHooks(),this.indexedValues=null,this.initValueOrFn=null}}t.IndexMap=h,(0,r.mixin)(h,l.default)},59453:(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(32971),s=o(94857),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(8278));const r=t.KEY="make_read_only"},59494:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115));t.FixedPageSizeStrategy=class{constructor(){(0,s.default)(this,"pageSize",1),(0,s.default)(this,"totalItems",0),(0,s.default)(this,"totalPages",0)}calculate(e){let{pageSize:t,totalItems:o}=e;this.pageSize=Math.max(t,1),this.totalItems=o,this.totalPages=Math.max(1,Math.ceil(this.totalItems/this.pageSize))}getTotalPages(){return this.totalPages}getState(e){if((e-=1)<0||e>=this.getTotalPages())return;const t=e*this.pageSize;return{startIndex:t,endIndex:Math.max(0,Math.min(t+this.pageSize-1,this.totalItems-1)),pageSize:this.pageSize}}}},59665:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588),o(66182),o(81396),o(88633),o(14618);var i=o(73983),s=o(70270);function n(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function r(e,t){return e.get(l(e,t))}function a(e,t,o){return e.set(l(e,t),o),o}function l(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap;t.default=class{constructor(e,t,o){n(this,h,void 0),n(this,c,void 0),n(this,u,void 0),n(this,d,[]),n(this,g,[]),n(this,f,void 0),n(this,p,[]),a(h,this,e),a(c,this,t),a(u,this,o)}setRemovedHfIndexes(e){return a(p,this,e.map(e=>{const t=r(c,this).getVisualFromPhysicalIndex(e);return this.getHfIndexFromVisualIndex(t)})),r(p,this)}getRemovedHfIndexes(){return r(p,this)}getHfIndexFromVisualIndex(e){const t=r(c,this).getIndexesSequence(),o=r(c,this).getNotTrimmedIndexes();return t.indexOf(o[e],e)}syncMoves(e){const t=`move${(0,i.toUpperCaseFirst)(r(h,this))}s`;r(u,this).getEngine().batch(()=>{e.forEach(e=>{const o=e.from!==e.to,i=e.from+1!==e.to;o&&i&&r(u,this).getEngine()[t](r(u,this).getSheetId(),e.from,1,e.to)})})}storeMovesInformation(e,t,o){!1!==o&&(a(g,this,e.map(e=>this.getHfIndexFromVisualIndex(e))),a(f,this,this.getHfIndexFromVisualIndex(t)))}calculateAndSyncMoves(e,t){if(r(u,this).isPerformingUndoRedo())return;if(!1===e||!1===t)return;const o=(0,s.getMoves)(r(g,this),r(f,this),r(c,this).getNumberOfIndexes());null===r(u,this).getSheetId()?r(u,this).getPostponeAction(()=>this.syncMoves(o)):this.syncMoves(o)}getIndexesChangeSyncMethod(){const e=`set${(0,i.toUpperCaseFirst)(r(h,this))}Order`;return t=>{if(r(u,this).isPerformingUndoRedo())return;const o=r(c,this).getIndexesSequence();if("update"===t&&o.length>0){const t=r(d,this).map(e=>o.indexOf(e)),i=r(u,this).getEngine().getSheetDimensions(r(u,this).getSheetId());let s;s="row"===r(h,this)?i.height:i.width;for(let e=t.length;e<s;e+=1)t.push(e);r(u,this).getEngine()[e](r(u,this).getSheetId(),t)}a(d,this,o)}}init(){a(d,this,r(c,this).getIndexesSequence())}}},59686:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588),o(66182),o(81396),o(81124),o(88633),o(14618);var i=o(76651),s=o(78437),n=o(57455),r=o(99586),a=o(91718),l=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(8278)),h=o(70667),c=o(42732),u=o(5476),d=o(73094),g=o(35764);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){return e.get(C(e,t))}function w(e,t,o){return e.set(C(e,t),o),o}function C(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const v="multipleSelect.itemBox";var y=new WeakMap,S=new WeakMap,E=new WeakMap,R=new WeakMap,b=new WeakMap,_=new WeakMap,T=new WeakSet;class M extends c.BaseUI{static get DEFAULTS(){return(0,s.clone)({className:"htUIMultipleSelect",value:[]})}constructor(e,t){var o,i;super(e,(0,s.extend)(M.DEFAULTS,t)),p(o=this,i=T),i.add(o),f(this,y,[]),f(this,S,void 0),f(this,E,void 0),f(this,R,void 0),f(this,b,void 0),f(this,_,void 0),w(R,this,new u.InputUI(this.hot,{placeholder:l.FILTERS_BUTTONS_PLACEHOLDER_SEARCH,className:"htUIMultipleSelectSearch"})),w(b,this,new d.LinkUI(this.hot,{textContent:l.FILTERS_BUTTONS_SELECT_ALL,className:"htUISelectAll"})),w(_,this,new d.LinkUI(this.hot,{textContent:l.FILTERS_BUTTONS_CLEAR,className:"htUIClearAll"})),this.registerHooks()}getItemsBox(){return m(S,this)}registerHooks(){m(R,this).addLocalHook("keydown",e=>C(T,this,O).call(this,e)),m(R,this).addLocalHook("input",e=>C(T,this,I).call(this,e)),m(b,this).addLocalHook("click",e=>C(T,this,A).call(this,e)),m(_,this).addLocalHook("click",e=>C(T,this,N).call(this,e))}setItems(e){var t;w(y,this,e),null===(t=m(S,this))||void 0===t||t.loadData(m(y,this))}setLocale(e){w(E,this,e)}getLocale(){return m(E,this)}getItems(){return[...m(y,this)]}getValue(){return function(e){const t=[];return e.forEach(e=>{e.checked&&t.push(e.value)}),t}(m(y,this))}getSearchInputElement(){return m(R,this)}getSelectAllElement(){return m(b,this)}getClearAllElement(){return m(_,this)}isSelectedAllValues(){return m(y,this).length===this.getValue().length}build(){var e;super.build();const{rootDocument:t}=this.hot,o=t.createElement("div"),s=new c.BaseUI(this.hot,{className:"htUISelectionControls",children:[m(b,this),m(_,this)]});this._element.appendChild(m(R,this).element),this._element.appendChild(s.element),this._element.appendChild(o),null===(e=m(S,this))||void 0===e||e.destroy(),(0,i.addClass)(o,"htUIMultipleSelectHot"),w(S,this,new this.hot.constructor(o,{data:[[]],columns:[{data:"checked",type:"checkbox",label:{property:"visualValue",position:"after"}}],beforeRenderer:(e,t,o,i,s,n)=>{e.title=n.instance.getDataAtRowProp(t,n.label.property)},afterListen:()=>{this.runLocalHooks("focus",this)},beforeOnCellMouseUp:()=>{m(S,this).listen()},modifyColWidth:e=>{const o=m(S,this).container.scrollWidth-(0,i.getScrollbarWidth)(t);return void 0!==e&&e<o?o:e},autoColumnSize:!0,autoRowSize:!1,hiddenRows:!0,maxCols:1,autoWrapCol:!0,height:110,copyPaste:!1,disableVisualSelection:"area",fillHandle:!1,fragmentSelection:"cell",tabMoves:{row:1,col:0},themeName:this.hot.getCurrentThemeName(),layoutDirection:this.hot.isRtl()?"rtl":"ltr"})),m(S,this).init();const n=m(S,this).getShortcutManager().getContext("grid");n.removeShortcutsByKeys(["Tab"]),n.removeShortcutsByKeys(["Shift","Tab"]),n.addShortcut({keys:[["Escape"]],callback:e=>{this.runLocalHooks("keydown",e,this)},group:v}),n.addShortcut({keys:[["Tab"],["Shift","Tab"]],callback:e=>{m(S,this).deselectCell(),this.runLocalHooks("keydown",e,this),this.runLocalHooks("listTabKeydown",e,this)},group:v})}focus(){this.isBuilt()&&m(S,this).listen()}reset(){m(R,this).reset(),m(b,this).reset(),m(_,this).reset()}update(){this.isBuilt()&&0!==m(S,this).rootElement.offsetHeight&&(m(S,this).updateSettings({data:P(m(y,this),this.options.value)}),super.update())}destroy(){var e;null===(e=m(S,this))||void 0===e||e.destroy(),m(R,this).destroy(),m(_,this).destroy(),m(b,this).destroy(),w(R,this,null),w(_,this,null),w(b,this,null),w(S,this,null),w(y,this,null),super.destroy()}}function I(e){const t=e.target.value.toLocaleLowerCase(this.getLocale());if("apply"===this.options.searchMode){const e=m(S,this).getPlugin("hiddenRows");e.showRows(e.getHiddenRows()),m(y,this).forEach((o,i)=>{o.checked=`${o.value}`.toLocaleLowerCase(this.getLocale()).indexOf(t)>=0,o.checked||e.hideRow(i)}),m(S,this).view.adjustElementsSize(),m(S,this).render()}else{let e;e=""===t?[...m(y,this)]:m(y,this).filter(e=>`${e.value}`.toLocaleLowerCase(this.getLocale()).indexOf(t)>=0),m(S,this).loadData(e)}}function O(e){this.runLocalHooks("keydown",e,this);(0,r.partial)(n.isKey,e.keyCode)("ARROW_DOWN")&&(e.preventDefault(),(0,h.stopImmediatePropagation)(e),m(S,this).listen(),m(S,this).selectCell(0,0))}function A(e){const t=[];e.preventDefault(),m(S,this).getSourceData().forEach((e,o)=>{e.checked=!0,t.push((0,a.dataRowToChangesArray)(e,o)[0])}),m(S,this).setSourceDataAtCell(t)}function N(e){const t=[];e.preventDefault(),m(S,this).getSourceData().forEach((e,o)=>{e.checked=!1,t.push((0,a.dataRowToChangesArray)(e,o)[0])}),m(S,this).setSourceDataAtCell(t)}t.MultipleSelectUI=M;t.default=M;function P(e,t){const o=(0,g.createArrayAssertion)(t);return e.map(e=>(e.checked=o(e.value),e))}},59719:(e,t,o)=>{"use strict";o(81396),o(88633),t.__esModule=!0;var i={BottomInlineStartCornerOverlay:!0,BottomOverlay:!0,InlineStartOverlay:!0,Overlay:!0,TopInlineStartCornerOverlay:!0,TopOverlay:!0},s=o(91740);t.BottomInlineStartCornerOverlay=s.BottomInlineStartCornerOverlay;var n=o(94956);t.BottomOverlay=n.BottomOverlay;var r=o(17608);t.InlineStartOverlay=r.InlineStartOverlay;var a=o(61651);t.Overlay=a.Overlay;var l=o(56676);t.TopInlineStartCornerOverlay=l.TopInlineStartCornerOverlay;var h=o(3284);t.TopOverlay=h.TopOverlay;var c=o(82858);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===c[e]||(t[e]=c[e]))})},59839:(e,t,o)=>{"use strict";var i=o(27538),s=o(87681),n=o(69946),r=o(11127),a=o(88049);i({target:"Array",proto:!0},{at:function(e){var t=s(this),o=n(t),i=r(e),a=i>=0?i:o+i;return a<0||a>=o?void 0:t[a]}}),a("at")},59899:(e,t,o)=>{"use strict";var i=o(19596),s=o(52270),n=i.document,r=s(n)&&s(n.createElement);e.exports=function(e){return r?n.createElement(e):{}}},60054:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(95220);t.command={name:"editorCloseAndSaveByArrowKeys",callback(e,t,o){const s=e._getEditorManager(),n=s.getActiveEditor();n.isInFullEditMode()&&n.state===i.EDITOR_STATE.EDITING||(s.closeEditorAndSaveChanges(),e.getSelected()&&(o.includes("arrowdown")?e.selection.transformStart(1,0):o.includes("arrowup")?e.selection.transformStart(-1,0):o.includes("arrowleft")?e.selection.transformStart(0,-1*e.getDirectionFactor()):o.includes("arrowright")&&e.selection.transformStart(0,e.getDirectionFactor())),t.preventDefault())}}},60062:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(42479),r=i(o(92484)),a=i(o(90925));function l(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}const h=t.PLUGIN_KEY="bindRowsWithHeaders",c=t.PLUGIN_PRIORITY=210,u=new Map([["loose",r.default],["strict",a.default]]);var d=new WeakSet;class g extends n.BasePlugin{constructor(){super(...arguments),l(this,d),(0,s.default)(this,"headerIndexes",null)}static get PLUGIN_KEY(){return h}static get PLUGIN_PRIORITY(){return c}isEnabled(){return!!this.hot.getSettings()[h]}enablePlugin(){var e;if(this.enabled)return;const t=null!==(e=u.get(this.getSetting()))&&void 0!==e?e:u.get("loose");this.headerIndexes=this.hot.rowIndexMapper.registerMap("bindRowsWithHeaders",new t),this.addHook("modifyRowHeader",e=>function(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}(d,this,f).call(this,e)),super.enablePlugin()}disablePlugin(){this.hot.rowIndexMapper.unregisterMap("bindRowsWithHeaders"),super.disablePlugin()}destroy(){super.destroy()}}function f(e){return this.headerIndexes.getValueAtIndex(this.hot.toPhysicalRow(e))}t.BindRowsWithHeaders=g},60225:(e,t,o)=>{"use strict";var i=o(27538),s=o(19596),n=o(91733).set,r=o(68060),a=s.setImmediate?r(n,!1):n;i({global:!0,bind:!0,enumerable:!0,forced:s.setImmediate!==a},{setImmediate:a})},60354:(e,t,o)=>{"use strict";o(47183)},60369:(e,t,o)=>{"use strict";var i=o(58719),s=o(19596),n=o(22381),r="__core-js_shared__",a=e.exports=s[r]||n(r,{});(a.versions||(a.versions=[])).push({version:"3.46.0",mode:i?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE",source:"https://github.com/zloirock/core-js"})},60599:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(43662);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.TrimRows=i.TrimRows},60780:(e,t,o)=>{"use strict";t.__esModule=!0,t.installFocusDetector=function(e,t){const o=r(e,n.FOCUS_SOURCES.TAB_FROM_ABOVE),i=r(e,n.FOCUS_SOURCES.TAB_FROM_BELOW);return t.prepend(o),t.append(i),{activate(){o.tabIndex=0,i.tabIndex=0},deactivate(){o.tabIndex=-1,i.tabIndex=-1},destroy(){o.remove(),i.remove()}}};var i=o(76651),s=o(3226),n=o(49669);function r(e,t){const o=e.rootDocument.createElement("input");return o.type="text",o.name="htFocusCatcher",o.classList.add("htFocusCatcher"),o.dataset.htFocusSource=t,e.getSettings().ariaTags&&(0,i.setAttribute)(o,[(0,s.A11Y_LABEL)("Focus catcher")]),o}},60808:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.default=function(e,t,o){if("function"==typeof r[e])return new r[e](t,o);return null};var s=i(o(82480));const n=t.TYPE_CSV="csv",r=(t.TYPE_EXCEL="excel",t.TYPE_PDF="pdf",t.EXPORT_TYPES={[n]:s.default})},61089:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(51736);t.EDITOR_TYPE=i.EDITOR_TYPE,t.AutocompleteEditor=i.AutocompleteEditor},61276:(e,t,o)=>{"use strict";o(81396),o(88633),t.__esModule=!0;var i=o(57849);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))})},61338:(e,t,o)=>{"use strict";var i=o(49510),s=o(91945);e.exports=function(e,t){var o=e[t];return s(o)?void 0:i(o)}},61521:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182);var s=i(o(81115)),n=o(58639);t.default=class{constructor(e){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"options",{}),this.hot=e}setOptions(e){this.options=e}getData(){const{startRow:e,startCol:t,endRow:o,endCol:i}=this._getDataRange(),s=this.options,r=[];return(0,n.rangeEach)(e,o,e=>{const o=[];!s.exportHiddenRows&&this._isHiddenRow(e)||((0,n.rangeEach)(t,i,t=>{!s.exportHiddenColumns&&this._isHiddenColumn(t)||o.push(this.hot.getDataAtCell(e,t))}),r.push(o))}),r}getRowHeaders(){const e=[];if(this.options.rowHeaders){const{startRow:t,endRow:o}=this._getDataRange(),i=this.hot.getRowHeader();(0,n.rangeEach)(t,o,t=>{!this.options.exportHiddenRows&&this._isHiddenRow(t)||e.push(i[t])})}return e}getColumnHeaders(){const e=[];if(this.options.columnHeaders){const{startCol:t,endCol:o}=this._getDataRange(),i=this.hot.getColHeader();(0,n.rangeEach)(t,o,t=>{!this.options.exportHiddenColumns&&this._isHiddenColumn(t)||e.push(i[t])})}return e}_getDataRange(){const e=this.hot.countCols()-1,t=this.hot.countRows()-1;let[o=0,i=0,s=t,n=e]=this.options.range;return o=Math.max(o,0),i=Math.max(i,0),s=Math.min(s,t),n=Math.min(n,e),{startRow:o,startCol:i,endRow:s,endCol:n}}_isHiddenRow(e){return this.hot.rowIndexMapper.isHidden(this.hot.toPhysicalRow(e))}_isHiddenColumn(e){return this.hot.columnIndexMapper.isHidden(this.hot.toPhysicalColumn(e))}}},61570:(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(81396),o(14618);var i=o(99586),s=o(94857)},61635:(e,t,o)=>{"use strict";var i=o(8467),s=o(94988),n=o(93428),r=o(64649),a=o(16539),l=s([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=n.f(a(e)),o=r.f;return o?l(t,o(e)):t}},61651:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(76651),r=o(78437),a=o(49581),l=o(82858),h=i(o(30543)),c=o(3226);t.Overlay=class{constructor(e,t,o,i,a){(0,s.default)(this,"wtSettings",null),(0,r.defineGetter)(this,"wot",e,{writable:!1}),this.domBindings=a,this.facadeGetter=t,this.wtSettings=i;const{TABLE:l,hider:h,spreader:c,holder:u,wtRootElement:d}=this.wot.wtTable;this.instance=this.wot,this.type=o,this.mainTableScrollableElement=null,this.TABLE=l,this.hider=h,this.spreader=c,this.holder=u,this.wtRootElement=d,this.trimmingContainer=(0,n.getTrimmingContainer)(this.hider.parentNode.parentNode),this.needFullRender=this.shouldBeRendered(),this.clone=this.makeClone()}hasRenderingStateChanged(){return this.needFullRender!==this.shouldBeRendered()}updateStateOfRendering(e){"before"===e&&this.shouldBeRendered()?this.needFullRender=!0:"after"!==e||this.shouldBeRendered()||(this.needFullRender=!1)}shouldBeRendered(){return!0}updateTrimmingContainer(){this.trimmingContainer=(0,n.getTrimmingContainer)(this.hider.parentNode.parentNode)}updateMainScrollableElement(){const{wtTable:e}=this.wot,{rootWindow:t}=this.domBindings;"hidden"===t.getComputedStyle(e.wtRootElement.parentNode).getPropertyValue("overflow")?this.mainTableScrollableElement=this.wot.wtTable.holder:this.mainTableScrollableElement=(0,n.getScrollableElement)(e.TABLE)}getRelativeCellPosition(e,t,o){if(!1===this.clone.wtTable.holder.contains(e))return void(0,a.warn)(`The provided element is not a child of the ${this.type} overlay`);const i=this.mainTableScrollableElement===this.domBindings.rootWindow,s=o<this.wtSettings.getSetting("fixedColumnsStart"),n=t<this.wtSettings.getSetting("fixedRowsTop"),r=t>=this.wtSettings.getSetting("totalRows")-this.wtSettings.getSetting("fixedRowsBottom"),l=this.clone.wtTable.spreader,h={start:this.getRelativeStartPosition(l),top:l.offsetTop},c={start:this.getRelativeStartPosition(e),top:e.offsetTop};let u=null;return u=i?this.getRelativeCellPositionWithinWindow(n,s,c,h):this.getRelativeCellPositionWithinHolder(n,r,s,c,h),u}getRelativeStartPosition(e){return this.isRtl()?e.offsetParent.offsetWidth-e.offsetLeft-e.offsetWidth:e.offsetLeft}getRelativeCellPositionWithinWindow(e,t,o,i){const s=this.wot.wtTable.wtRootElement.getBoundingClientRect();let r=0,a=0;if(t){let e=s.left;this.isRtl()&&(e=this.domBindings.rootWindow.innerWidth-(s.left+s.width+(0,n.getScrollbarWidth)())),r=e<=0?-1*e:0}else r=i.start;if(e){a=this.clone.wtTable.TABLE.getBoundingClientRect().top-s.top}else a=i.top;return{start:o.start+r,top:o.top+a}}getRelativeCellPositionWithinHolder(e,t,o,i,s){const n=this.wot.wtOverlays.inlineStartOverlay.getScrollPosition(),r=this.wot.wtOverlays.topOverlay.getScrollPosition();let a=0,l=0;if(o||(a=n-s.start),t){const e=this.wot.wtTable.wtRootElement.getBoundingClientRect();l=-1*this.clone.wtTable.TABLE.getBoundingClientRect().top+e.top}else e||(l=r-s.top);return{start:i.start-a,top:i.top-l}}makeClone(){if(-1===l.CLONE_TYPES.indexOf(this.type))throw new Error(`Clone type "${this.type}" is not supported.`);const{wtTable:e,wtSettings:t}=this.wot,{rootDocument:o,rootWindow:i}=this.domBindings,s=o.createElement("div"),r=o.createElement("table"),a=e.wtRootElement.parentNode;s.className=`${l.CLONE_CLASS_NAMES.get(this.type)} handsontable`,s.setAttribute("dir",this.isRtl()?"rtl":"ltr"),s.style.position="absolute",s.style.top=0,s.style.overflow="visible",this.isRtl()?s.style.right=0:s.style.left=0,t.getSetting("ariaTags")&&(0,n.setAttribute)(s,[(0,c.A11Y_PRESENTATION)()]),r.className=e.TABLE.className;e.TABLE.getAttribute("role")&&r.setAttribute("role",e.TABLE.getAttribute("role")),s.appendChild(r),a.appendChild(s);const u=this.wtSettings.getSetting("preventOverflow");return!0===u||"horizontal"===u&&this.type===l.CLONE_TOP||"vertical"===u&&this.type===l.CLONE_INLINE_START?this.mainTableScrollableElement=i:"hidden"===i.getComputedStyle(a).getPropertyValue("overflow")?this.mainTableScrollableElement=e.holder:this.mainTableScrollableElement=(0,n.getScrollableElement)(e.TABLE),new h.default(r,this.wtSettings,{source:this.wot,overlay:this,viewport:this.wot.wtViewport,event:this.wot.wtEvent,selectionManager:this.wot.selectionManager})}refresh(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.needFullRender){const t=this.clone.cloneSource;t.activeOverlayName=this.clone.wtTable.name,this.clone.draw(e),t.activeOverlayName="master"}}reset(){const e=this.clone.wtTable.holder,t=this.clone.wtTable.hider;[e.style,t.style,e.parentNode.style].forEach(e=>{e.width="",e.height=""})}isRtl(){return this.wtSettings.getSetting("rtlMode")}destroy(){this.clone.eventManager.destroy()}}},61989:(e,t,o)=>{"use strict";var i=o(53269),s=o(497);e.exports=function(e){var t=i(e,"string");return s(t)?t:t+""}},62103:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=o(78437),n=i(o(86248));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},62517:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182);var s=i(o(81115));t.AutoPageSizeStrategy=class{constructor(){(0,s.default)(this,"pages",[])}calculate(e){let{itemsSizeProvider:t,viewportSizeProvider:o}=e;const i=t(),s=o(),n=[];let r=0,a=0,l=0;for(let e=0;e<i.length;e++){const t=i[e];l>0&&a+t>=s&&(n.push({startIndex:r,endIndex:e-1,pageSize:l}),r=e,a=0,l=0),a+=t,l+=1}n.push({startIndex:r,endIndex:Math.max(0,i.length-1),pageSize:l}),this.pages=n}getTotalPages(){return this.pages.length}getState(e){if(!((e-=1)<0||e>=this.getTotalPages()))return this.pages[e]}}},62731:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_REDO)},callback(){this.getPlugin("undoRedo").redo()},hidden(){const e=this.getPlugin("undoRedo");return!e||!e.isEnabled()},disabled(){return!this.getPlugin("undoRedo").isRedoAvailable()}}};var 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(8278));const s=t.KEY="redo"},62831:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(68750);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.HiddenRows=i.HiddenRows},63340:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(93232);class r extends n.BaseAction{constructor(e){let{index:t,amount:o}=e;super("insert_col"),(0,s.default)(this,"index",void 0),(0,s.default)(this,"amount",void 0),this.index=t,this.amount=o}static startRegisteringEvents(e,t){e.addHook("afterCreateCol",(e,o,i)=>{t.done(()=>new r({index:e,amount:o}),i)})}undo(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.undo")}redo(e,t){e.addHookOnce("afterCreateCol",t),e.alter("insert_col_start",this.index,this.amount,"UndoRedo.redo")}}t.CreateColumnAction=r},63342:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115)),n=o(78437),r=o(84029),a=i(o(428));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)}}},63464:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostInlineEnd",callback(e){const{selection:t,columnIndexMapper:o}=e,{highlight:i,from:s,to:n}=e.getSelectedRangeActive();if(!t.isSelectedByRowHeader()&&!t.isSelectedByCorner()&&i.isCell()){const r=o.getNearestNotHiddenIndex(e.countCols()-1,-1),a=s.clone();a.col=i.col,t.markSource("keyboard"),t.setRangeStart(a,void 0,!1,i.clone()),t.setRangeEnd(e._createCellCoords(n.row,r)),t.markEndSource()}}}},63545:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:n,name(){const e=this.getSelected();let t=0;if(e)if(e.length>1)t=1;else{const[,o,,i]=e[0];o-i!==0&&(t=1)}return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_REMOVE_COLUMN,t)},callback(){this.alter("remove_col",(0,i.transformSelectionToColumnDistance)(this),null,"ContextMenu.removeColumn")},disabled(){if(!this.isColumnModificationAllowed())return!0;const e=this.getSelectedRangeActive();if(!e)return!0;if(e.isSingleHeader()&&e.highlight.col<0)return!0;const t=this.countCols();return this.selection.isSelectedByCorner()?0===t:this.selection.isSelectedByRowHeader()||0===t},hidden(){return!this.getSettings().allowRemoveColumn}}};var i=o(32634),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(8278));const n=t.KEY="remove_col"},63556:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182);var s=i(o(81115)),n=o(76651),r=o(70667),a=o(78437),l=o(24496),h=o(42479),c=i(o(23892)),u=i(o(34706)),d=o(50151),g=i(o(40578)),f=i(o(17181)),p=i(o(55595));function m(e,t,o){w(e,t),t.set(e,o)}function w(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(y(e,t),o),o}function v(e,t){return e.get(y(e,t))}function y(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const S=t.PLUGIN_KEY="comments",E=t.PLUGIN_PRIORITY=60,R=t.META_COMMENT="comment",b=t.META_COMMENT_VALUE="value",_=t.META_STYLE="style",T=t.META_READONLY="readOnly",M=S,I=`plugin:${S}`;var O=new WeakMap,A=new WeakMap,N=new WeakMap,P=new WeakMap,H=new WeakMap,x=new WeakMap,k=new WeakMap,D=new WeakSet;class L extends h.BasePlugin{constructor(){var e,t;super(...arguments),w(e=this,t=D),t.add(e),(0,s.default)(this,"range",{}),m(this,O,null),m(this,A,null),m(this,N,!1),m(this,P,!1),m(this,H,!1),m(this,x,null),m(this,k,"")}static get PLUGIN_KEY(){return S}static get PLUGIN_PRIORITY(){return E}static get DEFAULT_SETTINGS(){return{displayDelay:250}}isEnabled(){return!!this.hot.getSettings()[S]}enablePlugin(){var e=this;this.enabled||(v(O,this)||(C(O,this,new c.default(this.hot.rootDocument,this.hot.isRtl(),this.hot.rootPortalElement)),v(O,this).addLocalHook("resize",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return y(D,e,G).call(e,...o)}),this.hot.addHook("afterSetTheme",(e,t)=>{t||this.hide()})),v(A,this)||C(A,this,new u.default(this.getSetting("displayDelay"))),this.addHook("afterContextMenuDefaultOptions",e=>this.addToContextMenu(e)),this.addHook("afterRenderer",(e,t,o,i,s,n)=>y(D,this,U).call(this,e,n)),this.addHook("afterScroll",()=>y(D,this,$).call(this)),this.addHook("afterBeginEditing",()=>this.hide()),this.addHook("afterDocumentKeyDown",e=>y(D,this,z).call(this,e)),this.addHook("beforeCompositionStart",e=>y(D,this,z).call(this,e)),v(A,this).addLocalHook("hide",()=>this.hide()),v(A,this).addLocalHook("show",(e,t)=>this.showAtCell(e,t)),this.registerShortcuts(),this.registerListeners(),super.enablePlugin())}updatePlugin(){v(A,this).updateDelay(this.getSetting("displayDelay")),super.updatePlugin()}disablePlugin(){this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){const e=this.hot.getShortcutManager(),t=e.getContext("grid"),o=e.addContext(I);t.addShortcut({keys:[["Control","Alt","M"]],callback:()=>{const t=this.hot.getSelectedRangeActive();C(P,this,!0),this.hot.scrollToFocusedCell(()=>{this.setRange(t),this.show(),this.focusEditor(),e.setActiveContextName(I),this.hot._registerTimeout(()=>{C(P,this,!1)})})},stopPropagation:!0,runOnlyIf:()=>{var e;return null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.highlight.isCell()},group:M}),o.addShortcut({keys:[["Escape"]],callback:()=>{v(O,this).setValue(v(k,this)),this.hide(),e.setActiveContextName("grid")},runOnlyIf:()=>v(O,this).isVisible()&&v(O,this).isFocused(),group:M}),o.addShortcut({keys:[["Control/Meta","Enter"]],callback:()=>{this.hide(),e.setActiveContextName("grid")},runOnlyIf:()=>v(O,this).isVisible()&&v(O,this).isFocused(),group:M}),o.addShortcut({keys:[["Shift","Tab"],["Tab"]],forwardToContext:e.getContext("grid"),callback:()=>{C(H,this,!0),v(O,this).setValue(v(O,this).getValue()),this.setComment(),this.hide(),e.setActiveContextName("grid")},group:M})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(M)}registerListeners(){const{rootDocument:e}=this.hot,t=this.getEditorInputElement();this.eventManager.addEventListener(e,"mouseover",e=>y(D,this,F).call(this,e)),this.eventManager.addEventListener(e,"mousedown",e=>y(D,this,V).call(this,e)),this.eventManager.addEventListener(e,"mouseup",()=>y(D,this,B).call(this)),this.eventManager.addEventListener(t,"focus",()=>y(D,this,j).call(this)),this.eventManager.addEventListener(t,"blur",()=>y(D,this,Y).call(this)),this.eventManager.addEventListener(this.getEditorInputElement(),"mousedown",e=>y(D,this,W).call(this,e))}setRange(e){this.range=e}clearRange(){this.range={}}targetIsCellWithComment(e){const t=(0,n.closest)(e.target,"TD","TBODY");return!!(t&&(0,n.hasClass)(t,"htCommentCell")&&(0,n.closest)(t,[this.hot.rootElement]))}targetIsCommentTextArea(e){return this.getEditorInputElement()===e.target}setComment(e){if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');const t=v(O,this).getValue();let o="";null!=e?o=e:null!=t&&(o=t);const{row:i,col:s}=y(D,this,K).call(this);this.updateCommentMeta(i,s,{[b]:o}),this.hot.render()}setCommentAtCell(e,t,o){this.setRange({from:this.hot._createCellCoords(e,t)}),this.setComment(o)}removeComment(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');const{row:t,col:o}=y(D,this,K).call(this);this.hot.setCellMeta(t,o,R),e&&this.hot.render(),this.hide()}removeCommentAtCell(e,t){let o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.setRange({from:this.hot._createCellCoords(e,t)}),this.removeComment(o)}getComment(){const{row:e,col:t}=y(D,this,K).call(this);return this.getCommentMeta(e,t,b)}getCommentAtCell(e,t){return this.getCommentMeta(e,t,b)}show(){var e;if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');const{row:t,col:o}=y(D,this,K).call(this);if(t<0||t>this.hot.countSourceRows()-1||o<0||o>this.hot.countSourceCols()-1)return!1;const i=this.hot.getCellMeta(t,o);return v(A,this).cancelHiding(),v(O,this).setValue(null!==(e=i[R]?i[R][b]:null)&&void 0!==e?e:""),v(O,this).show(),this.refreshEditor(!0),!0}showAtCell(e,t){return this.setRange({from:this.hot._createCellCoords(e,t)}),this.show()}hide(){v(O,this).hide()}refreshEditor(){if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this.range.from&&v(O,this).isVisible()))return;const{rowIndexMapper:e,columnIndexMapper:t}=this.hot,{row:o,col:i}=y(D,this,K).call(this);let s=e.getRenderableFromVisualIndex(o),r=t.getRenderableFromVisualIndex(i);const a=null===s;v(O,this).setPosition(0,0),null===s&&(s=e.getRenderableFromVisualIndex(e.getNearestNotHiddenIndex(o,-1))),null===r&&(r=t.getRenderableFromVisualIndex(t.getNearestNotHiddenIndex(i,-1)));const l=null===s,h=null===r;s=null!=s?s:0,r=null!=r?r:0;const{rootWindow:c,view:{_wt:u}}=this.hot,{wtTable:d}=u,g=u.getCell({row:s,col:r},!0),f=this.getCommentMeta(o,i,_);f?v(O,this).setSize(f.width,f.height):v(O,this).resetSize();const p=h?0:d.getColumnWidth(r),m=a&&!l?(0,n.outerHeight)(g):0,{left:w,top:C,width:S,height:E}=g.getBoundingClientRect(),{width:R,height:b}=v(O,this).getSize(),{innerWidth:M,innerHeight:I}=this.hot.rootWindow,A=this.hot.rootDocument.documentElement,N=(0,n.getScrollbarWidth)(this.hot.rootDocument),P=(0,n.hasVerticalScrollbar)(this.hot.rootWindow)?N:0,H=(0,n.hasHorizontalScrollbar)(this.hot.rootWindow)?N:0;let x=w+c.scrollX+p,k=C+c.scrollY+m;this.hot.isRtl()&&(x-=R+p),this.hot.isLtr()&&w+S+R>M-P?x=w+c.scrollX-R-1:this.hot.isRtl()&&x<-(A.scrollWidth-A.clientWidth)&&(x=w+c.scrollX+p+1),C+b>I-H&&(k-=b-E+1),v(O,this).setPosition(x,k),v(O,this).setReadOnlyState(this.getCommentMeta(o,i,T)),v(O,this).observeSize()}focusEditor(){v(O,this).focus()}updateCommentMeta(e,t,o){const i=this.hot.getCellMeta(e,t)[R];let s;i?(s=(0,a.deepClone)(i),(0,a.deepExtend)(s,o)):s=o,this.hot.setCellMeta(e,t,R,s)}getCommentMeta(e,t,o){const i=this.hot.getCellMeta(e,t);if(i[R])return i[R][o]}addToContextMenu(e){e.items.push({name:d.SEPARATOR},(0,g.default)(this),(0,f.default)(this),(0,p.default)(this))}getEditorInputElement(){return v(O,this).getInputElement()}destroy(){var e,t;null===(e=v(O,this))||void 0===e||e.destroy(),null===(t=v(A,this))||void 0===t||t.destroy(),super.destroy()}}function V(e){if(this.hot.view&&this.hot.view._wt&&!v(N,this)&&!this.targetIsCommentTextArea(e)){const t=(0,n.closest)(e.target,"TD","TBODY");let o=null;t&&(o=this.hot.getCoords(t)),(!t||this.range.from&&o&&(this.range.from.row!==o.row||this.range.from.col!==o.col))&&this.hide()}}function W(e){e.stopPropagation()}function F(e){const{rootDocument:t}=this.hot;if(!(v(N,this)||v(O,this).isFocused()||(0,n.hasClass)(e.target,"wtBorder")||v(x,this)===e.target)&&v(O,this))if(C(x,this,t.elementFromPoint(e.clientX,e.clientY)),this.targetIsCellWithComment(e)){const t=this.hot._createCellRange(this.hot.getCoords(e.target));v(A,this).show(t)}else(0,n.isChildOf)(e.target,t)&&!this.targetIsCommentTextArea(e)&&v(A,this).hide()}function B(){C(N,this,!1)}function U(e,t){t[R]&&t[R][b]&&(0,n.addClass)(e,t.commentedCellClassName)}function Y(){v(H,this)?C(H,this,!1):(C(k,this,""),this.hot.getShortcutManager().setActiveContextName("grid"),this.setComment())}function j(){C(k,this,this.getComment()),this.hot.listen(),this.hot.getShortcutManager().setActiveContextName(I)}function G(e,t){const{row:o,col:i}=y(D,this,K).call(this);this.updateCommentMeta(o,i,{[_]:{width:e,height:t}})}function z(e){v(O,this).isFocused()&&(0,r.stopImmediatePropagation)(e)}function $(){v(P,this)||this.hide()}function K(){return this.range instanceof l.CellRange?this.range.highlight:this.hot._createCellCoords(this.range.from.row,this.range.from.col)}t.Comments=L},63636:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(66182);var s=i(o(81115)),n=o(29213),r=o(68547);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}}},64172:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(81396),o(88633);var s=i(o(81115)),n=o(76651),r=o(99586),a=i(o(75949)),l=i(o(90235)),h=o(68234),c=i(o(12010)),u=i(o(84234)),d=o(59719),g=o(3226);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}}},64326:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115));class n{constructor(e){(0,s.default)(this,"data",void 0),(0,s.default)(this,"next",null),(0,s.default)(this,"prev",null),this.data=e}}t.NodeStructure=n;t.default=class{constructor(){(0,s.default)(this,"first",null),(0,s.default)(this,"last",null)}push(e){const t=new n(e);if(null===this.first)this.first=t,this.last=t;else{const e=this.last;this.last=t,t.prev=e,e.next=t}return t}unshift(e){const t=new n(e);if(null===this.first)this.first=t,this.last=t;else{const e=this.first;this.first=t,t.next=e,e.prev=t}}inorder(e){let t=this.first;for(;t;){const o=e(t);if(t===this.last||!0===o)break;t=t.next}}remove(e){if(null===this.first)return!1;let t,o,i=this.first;for(;i;){if(i.data===e)return t=i.next,o=i.prev,t&&(t.prev=o),o&&(o.next=t),i===this.first&&(this.first=t),i===this.last&&(this.last=o),!0;i=i.next}return!1}hasCycle(){let e=this.first,t=this.first;for(;;){if(null===e)return!1;if(e=e.next,null===e)return!1;if(e=e.next,t=t.next,e===t)return!0}}pop(){if(null===this.last)return null;const e=this.last;return this.last=this.last.prev,e}shift(){if(null===this.first)return null;const e=this.first;return this.first=this.first.next,e}recursiveReverse(){if(!this.first)return;!function e(t,o){o&&(e(o,o.next),o.next=t)}(this.first,this.first.next),this.first.next=null;const e=this.first;this.first=this.last,this.last=e}reverse(){if(!this.first||!this.first.next)return;let e,t=this.first.next,o=this.first;for(;t;)e=t.next,t.next=o,o.prev=t,o=t,t=e;this.first.next=null,this.last.prev=null,e=this.first,this.first=o,this.last=e}}},64334:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.getPhraseFormatters=t.getAll=function(){return l()},t.registerPhraseFormatter=t.register=h;var s=o(43641),n=i(o(11558)),r=i(o(66847));const{register:a,getValues:l}=(0,s.staticRegister)("phraseFormatters");function h(e,t){a(e,t)}h("pluralize",n.default),h("substitute",r.default)},64380:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.getDateFromExcelDate=function(e,t){const o=new Date(Date.UTC(0,0,e+-1));return(0,s.default)(o).format(t)},t.getDateInHfFormat=function(e,t){return(0,s.default)(e,t,!0).format(n)},t.getDateInHotFormat=function(e,t){return(0,s.default)(e,n,!0).format(t)},t.isDate=function(e,t){return"string"==typeof e&&"date"===t},t.isDateValid=function(e,t){return(0,s.default)(e,t,!0).isValid()},t.isEscapedFormulaExpression=r,t.isFormula=function(e){return"string"==typeof e&&e.startsWith("=")},t.unescapeFormulaExpression=function(e){return r(e)?e.substr(1):e};var s=i(o(86798));const n="DD/MM/YYYY";function r(e){return"string"==typeof e&&"'"===e.charAt(0)&&"="===e.charAt(1)}},64536:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(23154);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.TouchScroll=i.TouchScroll},64649:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},64721:(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()}}}},64854:(e,t,o)=>{"use strict";var i=o(11127),s=Math.max,n=Math.min;e.exports=function(e,t){var o=i(e);return o<0?s(o+t,0):n(o,t)}},64945:(e,t,o)=>{"use strict";t.__esModule=!0,o(81396),o(19874);t.command={name:"moveCellSelectionInlineStart",callback(e,t){const{selection:o}=e,i=e.getSettings(),s=e.getSelectedRange(),n=e.getSelectedRangeActive(),r="function"==typeof i.tabMoves?i.tabMoves(t):i.tabMoves;o.markSource("keyboard"),(s.some(e=>o.isMultiple(e))||s.length>1)&&!n.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0?o.transformFocus(r.row,r.col):o.transformStart(r.row,r.col),o.markEndSource()}}},64956:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(81396),o(81124);var s=i(o(81115)),n=o(76651),r=o(70667),a=o(94857),l=o(57455),h=o(78437),c=m(o(8278)),u=o(24293),d=m(o(96)),g=o(5476),f=o(90370),p=o(76742);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},65022:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(79356)),n=o(76651);class r extends s.default{build(){super.build(),(0,n.addClass)(this._element,"ht__manualRowMove--guideline")}}t.default=r},65146:(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}},65166:t=>{"use strict";t.exports=e},65192:(e,t,o)=>{"use strict";t.__esModule=!0,t.operationResult=a,o(22588),o(81396),o(19874);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(8278)),s=o(14251);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)},65688:(e,t,o)=>{"use strict";var i=o(78656);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(8278)),r=o(76742);const a=t.CONDITION_NAME="date_yesterday";function l(e){const t=(0,s.default)(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame((0,s.default)().subtract(1,"days").startOf("day"),"d")}(0,r.registerCondition)(a,l,{name:n.FILTERS_CONDITIONS_YESTERDAY,inputsCount:0})},65725:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(34149);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(h(e,t))}function l(e,t,o){return e.set(h(e,t),o),o}function h(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var c=new WeakMap;t.default=class{constructor(e,t,o,i,n,a){(0,s.default)(this,"row",void 0),(0,s.default)(this,"col",void 0),(0,s.default)(this,"rowspan",void 0),(0,s.default)(this,"colspan",void 0),(0,s.default)(this,"removed",!1),(0,s.default)(this,"cellCoordsFactory",void 0),(0,s.default)(this,"cellRangeFactory",void 0),r(this,c,null),this.row=e,this.col=t,this.rowspan=o,this.colspan=i,this.cellCoordsFactory=n,this.cellRangeFactory=a}static NEGATIVE_VALUES_WARNING(e){let{row:t,col:o,rowspan:i,colspan:s}=e;return n.toSingleLine`The merged cell declared with {row: ${t}, col: ${o},\x20
81
81
  rowspan: ${i}, colspan: ${s}} contains negative values, which is\x20
82
82
  not supported. It will not be added to the collection.`}static IS_OUT_OF_BOUNDS_WARNING(e){let{row:t,col:o}=e;return n.toSingleLine`The merged cell declared at [${t}, ${o}] is positioned\x20
83
83
  (or positioned partially) outside of the table range. It was not added to the table, please fix your setup.`}static IS_SINGLE_CELL(e){let{row:t,col:o}=e;return n.toSingleLine`The merged cell declared at [${t}, ${o}] has both "rowspan"\x20