handsontable 16.1.0-next-1494b74-20250909 → 16.1.0-next-75c35bc-20250911

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,10 +25,10 @@
25
25
  * INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
26
26
  * USE OR INABILITY TO USE THIS SOFTWARE.
27
27
  *
28
- * Version: 16.1.0-next-1494b74-20250909
29
- * Release date: 11/09/2025 (built at 09/09/2025 12:56:53)
28
+ * Version: 16.1.0-next-75c35bc-20250911
29
+ * Release date: 15/09/2025 (built at 11/09/2025 08:34:03)
30
30
  */
31
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Handsontable",[],t):"object"==typeof exports?exports.Handsontable=t():e.Handsontable=t()}("undefined"!=typeof self?self:this,()=>(()=>{var e={162:(e,t)=>{"use strict";t.__esModule=!0,t.createDefaultShortcutsList=function(e){const{hot:t,hotMenu:r}=e;return[{keys:[["Control/Meta","A"]],forwardToContext:t.getShortcutManager().getContext("grid"),callback:()=>e.close(!0)},{keys:[["Tab"],["Shift","Tab"]],callback:(r,n)=>{const s=t.getSettings(),i="function"==typeof s.tabMoves?s.tabMoves(r):s.tabMoves;n.includes("shift")?t.selection.transformStart(-i.row,-i.col):t.selection.transformStart(i.row,i.col),e.close(!0)}},{keys:[["Escape"]],callback:()=>e.close()},{keys:[["ArrowDown"]],callback:()=>e.getNavigator().toNextItem()},{keys:[["ArrowUp"]],callback:()=>e.getNavigator().toPreviousItem()},{keys:[[t.isRtl()?"ArrowLeft":"ArrowRight"]],callback:()=>{const t=r.getSelectedActive();if(t){const r=e.openSubMenu(t[0]);r&&r.getNavigator().toFirstItem()}}},{keys:[[t.isRtl()?"ArrowRight":"ArrowLeft"]],callback:()=>{r.getSelectedActive()&&e.isSubMenu()&&(e.close(),e.isSubMenu()&&e.parentMenu.hotMenu.listen())}},{keys:[["Control/Meta","ArrowUp"],["Home"]],callback:()=>e.getNavigator().toFirstItem()},{keys:[["Control/Meta","ArrowDown"],["End"]],callback:()=>e.getNavigator().toLastItem()},{keys:[["Enter"],["Space"]],callback:t=>{const n=r.getSelectedActive();n&&(r.getSourceDataAtRow(n[0]).submenu?e.openSubMenu(n[0]).getNavigator().toFirstItem():(e.executeCommand(t),e.close(!0)))}},{keys:[["PageUp"]],callback:()=>{r.getSelectedActive()?r.selection.transformStart(-r.countVisibleRows(),0):e.getNavigator().toFirstItem()}},{keys:[["PageDown"]],callback:()=>{r.getSelectedActive()?r.selection.transformStart(r.countVisibleRows(),0):e.getNavigator().toLastItem()}}]}},211:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300));t.default=class{constructor(e,t,r){(0,s.default)(this,"offset",void 0),(0,s.default)(this,"total",void 0),(0,s.default)(this,"countTH",void 0),this.offset=e,this.total=t,this.countTH=r}offsetted(e){return e+this.offset}unOffsetted(e){return e-this.offset}renderedToSource(e){return this.offsetted(e)}sourceToRendered(e){return this.unOffsetted(e)}offsettedTH(e){return e-this.countTH}unOffsettedTH(e){return e+this.countTH}visibleColHeadedRowToSourceRow(e){return this.renderedToSource(this.offsettedTH(e))}sourceRowToVisibleColHeadedRow(e){return this.unOffsettedTH(this.sourceToRendered(e))}}},346:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(99356),r(34478),r(29810),r(31143),r(940),r(81056);var s=n(r(24300));class i{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((r,n)=>r.includes(e)&&t(r,n))}findAll(e){const t=[];return this.ranges.forEach((r,n)=>{r.isEqual(e)&&t.push({range:r,layer:n})}),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,r)=>!e.includes(r)),this}clear(){return this.ranges.length=0,this}size(){return this.ranges.length}clone(){const e=new i(this.createCellRange);return e.ranges=this.ranges.map(e=>e.clone()),e}map(e){return this.ranges=this.ranges.map((t,r)=>e(t,r)),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=i},469:()=>{},594:()=>{},763:()=>{},918:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300));t.TableRenderer=class{constructor(e){let{cellRenderer:t,stylesHandler:r}=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=r}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:r,rows:n,cells:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.setTable(this),t.setTable(this),r.setTable(this),n.setTable(this),s.setTable(this),this.rowHeaders=e,this.columnHeaders=t,this.colGroup=r,this.rows=n,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 r=0;r<e;r++){const e=t.getRenderedNode(r),n=this.rowUtils;if(e.firstChild){const t=this.renderedRowToSource(r),s=n.getHeightByOverlayName(t,this.activeOverlayName),i=this.stylesHandler.areCellsBorderBox()?0:1;e.firstChild.style.height=s?s-i+"px":""}}}}},940:(e,t,r)=>{"use strict";r(60791)},982:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(14001);class s extends n.BaseTransformation{calculateOffset(){return{x:this.tableApi.navigableHeaders()?this.tableApi.countRowHeaders():0,y:this.tableApi.navigableHeaders()?this.tableApi.countColHeaders():0}}countRenderableRows(){return this.tableApi.countRenderableRows()}countRenderableColumns(){return this.tableApi.countRenderableColumns()}shouldSwitchSelectionLayer(){return!1}}t.ExtenderTransformation=s},1145:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(34478),r(31143);var s=n(r(24300)),i=r(9208),o=r(17334);class a extends i.BaseAction{constructor(e){let{columns:t,finalIndex:r}=e;super("col_move"),(0,s.default)(this,"columns",void 0),(0,s.default)(this,"finalColumnIndex",void 0),this.columns=t.slice(),this.finalColumnIndex=r}static startRegisteringEvents(e,t){e.addHook("beforeColumnMove",(e,r)=>{!1!==e&&t.done(()=>new a({columns:e,finalIndex:r}))})}undo(e,t){const r=e.getPlugin("manualColumnMove");e.addHookOnce("afterViewRender",t);(0,o.getMoves)(this.columns,this.finalColumnIndex,e.columnIndexMapper.getNumberOfIndexes()).reverse().forEach(e=>{let{from:t,to:n}=e;t<n&&(n-=1),r.moveColumn(n,t)}),e.render(),e.deselectCell(),e.selectColumns(this.columns[0],this.columns[0]+this.columns.length-1)}redo(e,t){const r=e.getPlugin("manualColumnMove");e.addHookOnce("afterViewRender",t),r.moveColumns(this.columns.slice(),this.finalColumnIndex),e.render(),e.deselectCell(),e.selectColumns(this.finalColumnIndex,this.finalColumnIndex+this.columns.length-1)}}t.ColumnMoveAction=a},1181:()=>{},1202:(e,t,r)=>{"use strict";t.__esModule=!0,t.normalizeSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;const r=[];if(0===t)return r;(0,n.arrayEach)(e,e=>{const a=[];let l=0;r.push(a),(0,n.arrayEach)(e,e=>{const r=(0,o.createDefaultHeaderSettings)();if((0,s.isObject)(e)){const{label:t,colspan:n,headerClassName:s}=e;r.label=(0,i.stringify)(t),"number"==typeof n&&n>1&&(r.colspan=n,r.origColspan=n),"string"==typeof s&&(r.headerClassNames=[...s.split(" ")])}else r.label=(0,i.stringify)(e);l+=r.origColspan;let n=!1;if(l>=t&&(r.colspan=r.origColspan-(l-t),r.origColspan=r.colspan,n=!0),a.push(r),r.colspan>1)for(let e=0;e<r.colspan-1;e++)a.push((0,o.createPlaceholderHeaderSettings)());return!n})});const a=Math.max(...(0,n.arrayMap)(r,e=>e.length));return(0,n.arrayEach)(r,e=>{if(e.length<a){const t=(0,n.arrayMap)(new Array(a-e.length),()=>(0,o.createDefaultHeaderSettings)());e.splice(e.length,0,...t)}}),r},r(99356);var n=r(40785),s=r(21389),i=r(27727),o=r(93711)},1221:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(62551);var s=n(r(85219)),i=r(55941),o=r(57971),a=r(17715),l=r(73364),h=r(51241),u=r(33746),c=r(95484),d=r(74216);function g(e,t){const r=new s.default(e,t||{},i.rootInstanceSymbol);return r.init(),r}t.CellCoords=d.CellCoords,t.CellRange=d.CellRange,(0,h.registerCellType)(u.TextCellType),g.editors={BaseEditor:c.BaseEditor},g.Core=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new s.default(e,t,i.rootInstanceSymbol)},g.DefaultSettings=(0,o.metaSchemaFactory)(),g.hooks=a.Hooks.getSingleton(),g.CellCoords=d.CellCoords,g.CellRange=d.CellRange,g.packageName="handsontable",g.buildDate="09/09/2025 12:56:53",g.version="16.1.0-next-1494b74-20250909",g.languages={dictionaryKeys:l.dictionaryKeys,getLanguageDictionary:l.getLanguageDictionary,getLanguagesDictionaries:l.getLanguagesDictionaries,registerLanguageDictionary:l.registerLanguageDictionary,getTranslatedPhrase:l.getTranslatedPhrase};t.default=g},1354:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300)),i=r(53383),o=n(r(73333)),a=r(17715);a.Hooks.getSingleton().register("persistentStateSave"),a.Hooks.getSingleton().register("persistentStateLoad"),a.Hooks.getSingleton().register("persistentStateReset");const l=t.PLUGIN_KEY="persistentState",h=t.PLUGIN_PRIORITY=0;class u extends i.BasePlugin{constructor(){super(...arguments),(0,s.default)(this,"storage",void 0)}static get PLUGIN_KEY(){return l}static get PLUGIN_PRIORITY(){return h}isEnabled(){return!!this.hot.getSettings()[l]}enablePlugin(){this.enabled||(this.storage||(this.storage=new o.default(this.hot.rootContainer.id||this.hot.rootElement.id,this.hot.rootWindow)),this.addHook("persistentStateSave",(e,t)=>this.saveValue(e,t)),this.addHook("persistentStateLoad",(e,t)=>this.loadValue(e,t)),this.addHook("persistentStateReset",()=>this.resetValue()),super.enablePlugin())}disablePlugin(){this.storage=void 0,super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}loadValue(e,t){t.value=this.storage.loadValue(e)}saveValue(e,t){this.storage.saveValue(e,t)}resetValue(e){void 0===e?this.storage.resetAll():this.storage.reset(e)}destroy(){super.destroy()}}t.PersistentState=u},1402:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"cut",name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_CUT)},callback(){e.cut()},disabled(){if(0===this.countRows()||0===this.countCols())return!0;const e=this.getSelectedRangeActive();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}};var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230))},1487:(e,t,r)=>{"use strict";t.__esModule=!0,t.operationResult=a,r(34478),r(81056);var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),s=r(13283);const i=t.OPERATION_ID="disjunction",o=t.SHORT_NAME_FOR_COMPONENT=n.FILTERS_LABELS_DISJUNCTION;function a(e,t){return e.some(e=>e.func(t))}(0,s.registerOperation)(i,o,a)},1531:(e,t,r)=>{"use strict";r(34478),r(31143),t.__esModule=!0;var n={IndexMapper:!0,getRegisteredMapsCounter:!0,getIncreasedIndexes:!0,getDecreasedIndexes:!0,alterUtilsFactory:!0},s=r(17330);t.IndexMapper=s.IndexMapper;var i=r(58033);t.getRegisteredMapsCounter=i.getRegisteredMapsCounter;var o=r(51453);t.getIncreasedIndexes=o.getIncreasedIndexes,t.getDecreasedIndexes=o.getDecreasedIndexes,t.alterUtilsFactory=o.alterUtilsFactory;var a=r(36915);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||(t[e]=a[e]))})},1766:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(34478),r(31143);var s=n(r(24300)),i=r(6083),o=r(4407),a=r(42685),l=r(31075),h=r(96357),u=r(9671),c=r(53383),d=n(r(40638)),g=n(r(24726));function p(e,t,r){f(e,t),t.set(e,r)}function f(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function m(e,t,r){return e.set(E(e,t),r),r}function w(e,t){return e.get(E(e,t))}function E(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const y=t.PLUGIN_KEY="nestedHeaders",C=t.PLUGIN_PRIORITY=280;var v=new WeakMap,S=new WeakMap,R=new WeakMap,T=new WeakMap,N=new WeakMap,_=new WeakMap,A=new WeakSet;class b extends c.BasePlugin{constructor(){var e,t;super(...arguments),f(e=this,t=A),t.add(e),p(this,v,new d.default),p(this,S,null),p(this,R,null),p(this,T,!1),p(this,N,null),(0,s.default)(this,"ghostTable",new g.default(this.hot,(e,t)=>this.getHeaderSettings(e,t))),(0,s.default)(this,"detectedOverlappedHeaders",!1),p(this,_,()=>{var e;const t=null===(e=this.hot)||void 0===e?void 0:e.getSelectedRangeActive();if(!t)return;const{highlight:r}=t;if(r.isHeader()&&r.col>=0){const e=w(v,this).findLeftMostColumnIndex(r.row,r.col),t=this.hot.selection.highlight.getFocus();t.visualCellRange.highlight.col=e,t.visualCellRange.from.col=e,t.visualCellRange.to.col=e,t.commit()}})}static get PLUGIN_KEY(){return y}static get PLUGIN_PRIORITY(){return C}isEnabled(){return!!this.hot.getSettings()[y]}enablePlugin(){var e=this;if(this.enabled)return;const{nestedHeaders:t}=this.hot.getSettings();Array.isArray(t)&&Array.isArray(t[0])||(0,h.warn)(a.toSingleLine`Your Nested Headers plugin configuration is invalid. The settings has to be\x20
31
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Handsontable",[],t):"object"==typeof exports?exports.Handsontable=t():e.Handsontable=t()}("undefined"!=typeof self?self:this,()=>(()=>{var e={162:(e,t)=>{"use strict";t.__esModule=!0,t.createDefaultShortcutsList=function(e){const{hot:t,hotMenu:r}=e;return[{keys:[["Control/Meta","A"]],forwardToContext:t.getShortcutManager().getContext("grid"),callback:()=>e.close(!0)},{keys:[["Tab"],["Shift","Tab"]],callback:(r,n)=>{const s=t.getSettings(),i="function"==typeof s.tabMoves?s.tabMoves(r):s.tabMoves;n.includes("shift")?t.selection.transformStart(-i.row,-i.col):t.selection.transformStart(i.row,i.col),e.close(!0)}},{keys:[["Escape"]],callback:()=>e.close()},{keys:[["ArrowDown"]],callback:()=>e.getNavigator().toNextItem()},{keys:[["ArrowUp"]],callback:()=>e.getNavigator().toPreviousItem()},{keys:[[t.isRtl()?"ArrowLeft":"ArrowRight"]],callback:()=>{const t=r.getSelectedActive();if(t){const r=e.openSubMenu(t[0]);r&&r.getNavigator().toFirstItem()}}},{keys:[[t.isRtl()?"ArrowRight":"ArrowLeft"]],callback:()=>{r.getSelectedActive()&&e.isSubMenu()&&(e.close(),e.isSubMenu()&&e.parentMenu.hotMenu.listen())}},{keys:[["Control/Meta","ArrowUp"],["Home"]],callback:()=>e.getNavigator().toFirstItem()},{keys:[["Control/Meta","ArrowDown"],["End"]],callback:()=>e.getNavigator().toLastItem()},{keys:[["Enter"],["Space"]],callback:t=>{const n=r.getSelectedActive();n&&(r.getSourceDataAtRow(n[0]).submenu?e.openSubMenu(n[0]).getNavigator().toFirstItem():(e.executeCommand(t),e.close(!0)))}},{keys:[["PageUp"]],callback:()=>{r.getSelectedActive()?r.selection.transformStart(-r.countVisibleRows(),0):e.getNavigator().toFirstItem()}},{keys:[["PageDown"]],callback:()=>{r.getSelectedActive()?r.selection.transformStart(r.countVisibleRows(),0):e.getNavigator().toLastItem()}}]}},211:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300));t.default=class{constructor(e,t,r){(0,s.default)(this,"offset",void 0),(0,s.default)(this,"total",void 0),(0,s.default)(this,"countTH",void 0),this.offset=e,this.total=t,this.countTH=r}offsetted(e){return e+this.offset}unOffsetted(e){return e-this.offset}renderedToSource(e){return this.offsetted(e)}sourceToRendered(e){return this.unOffsetted(e)}offsettedTH(e){return e-this.countTH}unOffsettedTH(e){return e+this.countTH}visibleColHeadedRowToSourceRow(e){return this.renderedToSource(this.offsettedTH(e))}sourceRowToVisibleColHeadedRow(e){return this.unOffsettedTH(this.sourceToRendered(e))}}},346:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(99356),r(34478),r(29810),r(31143),r(940),r(81056);var s=n(r(24300));class i{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((r,n)=>r.includes(e)&&t(r,n))}findAll(e){const t=[];return this.ranges.forEach((r,n)=>{r.isEqual(e)&&t.push({range:r,layer:n})}),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,r)=>!e.includes(r)),this}clear(){return this.ranges.length=0,this}size(){return this.ranges.length}clone(){const e=new i(this.createCellRange);return e.ranges=this.ranges.map(e=>e.clone()),e}map(e){return this.ranges=this.ranges.map((t,r)=>e(t,r)),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=i},469:()=>{},594:()=>{},763:()=>{},918:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300));t.TableRenderer=class{constructor(e){let{cellRenderer:t,stylesHandler:r}=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=r}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:r,rows:n,cells:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.setTable(this),t.setTable(this),r.setTable(this),n.setTable(this),s.setTable(this),this.rowHeaders=e,this.columnHeaders=t,this.colGroup=r,this.rows=n,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 r=0;r<e;r++){const e=t.getRenderedNode(r),n=this.rowUtils;if(e.firstChild){const t=this.renderedRowToSource(r),s=n.getHeightByOverlayName(t,this.activeOverlayName),i=this.stylesHandler.areCellsBorderBox()?0:1;e.firstChild.style.height=s?s-i+"px":""}}}}},940:(e,t,r)=>{"use strict";r(60791)},982:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(14001);class s extends n.BaseTransformation{calculateOffset(){return{x:this.tableApi.navigableHeaders()?this.tableApi.countRowHeaders():0,y:this.tableApi.navigableHeaders()?this.tableApi.countColHeaders():0}}countRenderableRows(){return this.tableApi.countRenderableRows()}countRenderableColumns(){return this.tableApi.countRenderableColumns()}shouldSwitchSelectionLayer(){return!1}}t.ExtenderTransformation=s},1145:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(34478),r(31143);var s=n(r(24300)),i=r(9208),o=r(17334);class a extends i.BaseAction{constructor(e){let{columns:t,finalIndex:r}=e;super("col_move"),(0,s.default)(this,"columns",void 0),(0,s.default)(this,"finalColumnIndex",void 0),this.columns=t.slice(),this.finalColumnIndex=r}static startRegisteringEvents(e,t){e.addHook("beforeColumnMove",(e,r)=>{!1!==e&&t.done(()=>new a({columns:e,finalIndex:r}))})}undo(e,t){const r=e.getPlugin("manualColumnMove");e.addHookOnce("afterViewRender",t);(0,o.getMoves)(this.columns,this.finalColumnIndex,e.columnIndexMapper.getNumberOfIndexes()).reverse().forEach(e=>{let{from:t,to:n}=e;t<n&&(n-=1),r.moveColumn(n,t)}),e.render(),e.deselectCell(),e.selectColumns(this.columns[0],this.columns[0]+this.columns.length-1)}redo(e,t){const r=e.getPlugin("manualColumnMove");e.addHookOnce("afterViewRender",t),r.moveColumns(this.columns.slice(),this.finalColumnIndex),e.render(),e.deselectCell(),e.selectColumns(this.finalColumnIndex,this.finalColumnIndex+this.columns.length-1)}}t.ColumnMoveAction=a},1181:()=>{},1202:(e,t,r)=>{"use strict";t.__esModule=!0,t.normalizeSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;const r=[];if(0===t)return r;(0,n.arrayEach)(e,e=>{const a=[];let l=0;r.push(a),(0,n.arrayEach)(e,e=>{const r=(0,o.createDefaultHeaderSettings)();if((0,s.isObject)(e)){const{label:t,colspan:n,headerClassName:s}=e;r.label=(0,i.stringify)(t),"number"==typeof n&&n>1&&(r.colspan=n,r.origColspan=n),"string"==typeof s&&(r.headerClassNames=[...s.split(" ")])}else r.label=(0,i.stringify)(e);l+=r.origColspan;let n=!1;if(l>=t&&(r.colspan=r.origColspan-(l-t),r.origColspan=r.colspan,n=!0),a.push(r),r.colspan>1)for(let e=0;e<r.colspan-1;e++)a.push((0,o.createPlaceholderHeaderSettings)());return!n})});const a=Math.max(...(0,n.arrayMap)(r,e=>e.length));return(0,n.arrayEach)(r,e=>{if(e.length<a){const t=(0,n.arrayMap)(new Array(a-e.length),()=>(0,o.createDefaultHeaderSettings)());e.splice(e.length,0,...t)}}),r},r(99356);var n=r(40785),s=r(21389),i=r(27727),o=r(93711)},1221:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(62551);var s=n(r(85219)),i=r(55941),o=r(57971),a=r(17715),l=r(73364),h=r(51241),u=r(33746),c=r(95484),d=r(74216);function g(e,t){const r=new s.default(e,t||{},i.rootInstanceSymbol);return r.init(),r}t.CellCoords=d.CellCoords,t.CellRange=d.CellRange,(0,h.registerCellType)(u.TextCellType),g.editors={BaseEditor:c.BaseEditor},g.Core=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new s.default(e,t,i.rootInstanceSymbol)},g.DefaultSettings=(0,o.metaSchemaFactory)(),g.hooks=a.Hooks.getSingleton(),g.CellCoords=d.CellCoords,g.CellRange=d.CellRange,g.packageName="handsontable",g.buildDate="11/09/2025 08:34:03",g.version="16.1.0-next-75c35bc-20250911",g.languages={dictionaryKeys:l.dictionaryKeys,getLanguageDictionary:l.getLanguageDictionary,getLanguagesDictionaries:l.getLanguagesDictionaries,registerLanguageDictionary:l.registerLanguageDictionary,getTranslatedPhrase:l.getTranslatedPhrase};t.default=g},1354:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300)),i=r(53383),o=n(r(73333)),a=r(17715);a.Hooks.getSingleton().register("persistentStateSave"),a.Hooks.getSingleton().register("persistentStateLoad"),a.Hooks.getSingleton().register("persistentStateReset");const l=t.PLUGIN_KEY="persistentState",h=t.PLUGIN_PRIORITY=0;class u extends i.BasePlugin{constructor(){super(...arguments),(0,s.default)(this,"storage",void 0)}static get PLUGIN_KEY(){return l}static get PLUGIN_PRIORITY(){return h}isEnabled(){return!!this.hot.getSettings()[l]}enablePlugin(){this.enabled||(this.storage||(this.storage=new o.default(this.hot.rootContainer.id||this.hot.rootElement.id,this.hot.rootWindow)),this.addHook("persistentStateSave",(e,t)=>this.saveValue(e,t)),this.addHook("persistentStateLoad",(e,t)=>this.loadValue(e,t)),this.addHook("persistentStateReset",()=>this.resetValue()),super.enablePlugin())}disablePlugin(){this.storage=void 0,super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}loadValue(e,t){t.value=this.storage.loadValue(e)}saveValue(e,t){this.storage.saveValue(e,t)}resetValue(e){void 0===e?this.storage.resetAll():this.storage.reset(e)}destroy(){super.destroy()}}t.PersistentState=u},1402:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"cut",name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_CUT)},callback(){e.cut()},disabled(){if(0===this.countRows()||0===this.countCols())return!0;const e=this.getSelectedRangeActive();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}};var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230))},1487:(e,t,r)=>{"use strict";t.__esModule=!0,t.operationResult=a,r(34478),r(81056);var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),s=r(13283);const i=t.OPERATION_ID="disjunction",o=t.SHORT_NAME_FOR_COMPONENT=n.FILTERS_LABELS_DISJUNCTION;function a(e,t){return e.some(e=>e.func(t))}(0,s.registerOperation)(i,o,a)},1531:(e,t,r)=>{"use strict";r(34478),r(31143),t.__esModule=!0;var n={IndexMapper:!0,getRegisteredMapsCounter:!0,getIncreasedIndexes:!0,getDecreasedIndexes:!0,alterUtilsFactory:!0},s=r(17330);t.IndexMapper=s.IndexMapper;var i=r(58033);t.getRegisteredMapsCounter=i.getRegisteredMapsCounter;var o=r(51453);t.getIncreasedIndexes=o.getIncreasedIndexes,t.getDecreasedIndexes=o.getDecreasedIndexes,t.alterUtilsFactory=o.alterUtilsFactory;var a=r(36915);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||(t[e]=a[e]))})},1766:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(34478),r(31143);var s=n(r(24300)),i=r(6083),o=r(4407),a=r(42685),l=r(31075),h=r(96357),u=r(9671),c=r(53383),d=n(r(40638)),g=n(r(24726));function p(e,t,r){f(e,t),t.set(e,r)}function f(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function m(e,t,r){return e.set(E(e,t),r),r}function w(e,t){return e.get(E(e,t))}function E(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const y=t.PLUGIN_KEY="nestedHeaders",C=t.PLUGIN_PRIORITY=280;var v=new WeakMap,S=new WeakMap,R=new WeakMap,T=new WeakMap,N=new WeakMap,_=new WeakMap,A=new WeakSet;class b extends c.BasePlugin{constructor(){var e,t;super(...arguments),f(e=this,t=A),t.add(e),p(this,v,new d.default),p(this,S,null),p(this,R,null),p(this,T,!1),p(this,N,null),(0,s.default)(this,"ghostTable",new g.default(this.hot,(e,t)=>this.getHeaderSettings(e,t))),(0,s.default)(this,"detectedOverlappedHeaders",!1),p(this,_,()=>{var e;const t=null===(e=this.hot)||void 0===e?void 0:e.getSelectedRangeActive();if(!t)return;const{highlight:r}=t;if(r.isHeader()&&r.col>=0){const e=w(v,this).findLeftMostColumnIndex(r.row,r.col),t=this.hot.selection.highlight.getFocus();t.visualCellRange.highlight.col=e,t.visualCellRange.from.col=e,t.visualCellRange.to.col=e,t.commit()}})}static get PLUGIN_KEY(){return y}static get PLUGIN_PRIORITY(){return C}isEnabled(){return!!this.hot.getSettings()[y]}enablePlugin(){var e=this;if(this.enabled)return;const{nestedHeaders:t}=this.hot.getSettings();Array.isArray(t)&&Array.isArray(t[0])||(0,h.warn)(a.toSingleLine`Your Nested Headers plugin configuration is invalid. The settings has to be\x20
32
32
  passed as an array of arrays e.q. [['A1', { label: 'A2', colspan: 2 }]]`),this.addHook("init",()=>E(A,this,G).call(this)),this.addHook("afterLoadData",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return E(A,e,j).call(e,...r)}),this.addHook("beforeOnCellMouseDown",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return E(A,e,x).call(e,...r)}),this.addHook("afterOnCellMouseDown",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return E(A,e,P).call(e,...r)}),this.addHook("beforeOnCellMouseOver",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return E(A,e,L).call(e,...r)}),this.addHook("beforeOnCellMouseUp",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return E(A,e,D).call(e,...r)}),this.addHook("beforeSelectionHighlightSet",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return E(A,e,k).call(e,...r)}),this.addHook("modifyTransformStart",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return E(A,e,H).call(e,...r)}),this.addHook("afterSelection",()=>w(_,this).call(this)),this.addHook("afterSelectionFocusSet",()=>w(_,this).call(this)),this.addHook("beforeViewportScrollHorizontally",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return E(A,e,M).call(e,...r)}),this.addHook("afterGetColumnHeaderRenderers",e=>E(A,this,U).call(this,e)),this.addHook("modifyColWidth",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return E(A,e,B).call(e,...r)}),this.addHook("modifyColumnHeaderValue",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return E(A,e,W).call(e,...r)}),this.addHook("beforeHighlightingColumnHeader",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return E(A,e,I).call(e,...r)}),this.addHook("beforeCopy",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return E(A,e,O).call(e,...r)}),this.addHook("beforeSelectColumns",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return E(A,e,F).call(e,...r)}),this.addHook("afterViewportColumnCalculatorOverride",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return E(A,e,V).call(e,...r)}),this.addHook("modifyFocusedElement",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return E(A,e,Y).call(e,...r)}),this.hot.columnIndexMapper.addLocalHook("cacheUpdated",w(_,this)),this.hot.rowIndexMapper.addLocalHook("cacheUpdated",w(_,this)),super.enablePlugin(),this.updatePlugin()}updatePlugin(){if(!this.hot.view)return;const{nestedHeaders:e}=this.hot.getSettings();w(v,this).setColumnsLimit(this.hot.countCols()),Array.isArray(e)&&(this.detectedOverlappedHeaders=w(v,this).setState(e)),this.detectedOverlappedHeaders&&(0,h.warn)(a.toSingleLine`Your Nested Headers plugin setup contains overlapping headers. This kind of configuration\x20
33
33
  is currently not supported.`),this.enabled&&this.hot.columnIndexMapper.hidingMapsCollection.getMergedValues().forEach((e,t)=>{const r=!0===e?"hide-column":"show-column";w(v,this).triggerColumnModification(r,t)}),!w(S,this)&&this.enabled&&m(S,this,this.hot.columnIndexMapper.createChangesObserver("hiding").subscribe(e=>{e.forEach(e=>{let{op:t,index:r,newValue:n}=e;if("replace"===t){const e=!0===n?"hide-column":"show-column";w(v,this).triggerColumnModification(e,r)}}),this.ghostTable.buildWidthsMap()})),this.ghostTable.setLayersCount(this.getLayersCount()).buildWidthsMap(),super.updatePlugin()}disablePlugin(){this.hot.rowIndexMapper.removeLocalHook("cacheUpdated",w(_,this)),this.hot.columnIndexMapper.removeLocalHook("cacheUpdated",w(_,this)),this.clearColspans(),w(v,this).clear(),w(S,this).unsubscribe(),m(S,this,null),this.ghostTable.clear(),super.disablePlugin()}getStateManager(){return w(v,this)}getLayersCount(){return w(v,this).getLayersCount()}getHeaderSettings(e,t){return w(v,this).getHeaderSettings(e,t)}clearColspans(){if(!this.hot.view)return;const{_wt:e}=this.hot.view,t=e.getSetting("columnHeaders").length,r=e.wtTable.THEAD,n=e.wtOverlays.topOverlay.clone.wtTable.THEAD,s=e.wtOverlays.topInlineStartCornerOverlay?e.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.THEAD:null;for(let e=0;e<t;e++){const t=r.childNodes[e];if(!t)break;const o=n.childNodes[e],a=s?s.childNodes[e]:null;for(let e=0,r=t.childNodes.length;e<r;e++)t.childNodes[e].removeAttribute("colspan"),(0,i.removeClass)(t.childNodes[e],"hiddenHeader"),o&&o.childNodes[e]&&(o.childNodes[e].removeAttribute("colspan"),(0,i.removeClass)(o.childNodes[e],"hiddenHeader")),s&&a&&a.childNodes[e]&&(a.childNodes[e].removeAttribute("colspan"),(0,i.removeClass)(a.childNodes[e],"hiddenHeader"))}}headerRendererFactory(e){var t=this;const r=this.hot.view._wt.getSetting("fixedColumnsStart");return(n,s)=>{var o;const{columnIndexMapper:a,view:l}=this.hot;let h=a.getVisualFromRenderableIndex(n);null===h&&(h=n),s.removeAttribute("colspan"),(0,i.removeClass)(s,"hiddenHeader"),(0,i.removeClass)(s,"hiddenHeaderText");const{colspan:u,isHidden:c,isPlaceholder:d,headerClassNames:g}=null!==(o=w(v,this).getHeaderSettings(e,h))&&void 0!==o?o:{label:""};if(d||c)(0,i.addClass)(s,"hiddenHeader");else if(u>1){var p,f,m;const{wtOverlays:e}=l._wt,t=null===(p=e.topInlineStartCornerOverlay)||void 0===p?void 0:p.clone.wtTable.THEAD.contains(s),o=null===(f=e.inlineStartOverlay)||void 0===f?void 0:f.clone.wtTable.THEAD.contains(s);(null===(m=e.topOverlay)||void 0===m?void 0:m.clone.wtTable.THEAD.contains(s))&&h<r&&(0,i.addClass)(s,"hiddenHeaderText");const a=t||o?Math.min(u,r-n):u;a>1&&s.setAttribute("colspan",a)}if(this.hot.view.appendColHeader(h,s,function(){return t.getColumnHeaderValue(...arguments)},e),!d&&!c){const e=s.querySelector("div.relative");e&&g&&g.length>0&&((0,i.removeClass)(e,this.hot.getColumnMeta(h).headerClassName),(0,i.addClass)(e,g))}}}getColumnHeaderValue(e,t){var r;const{isHidden:n,isPlaceholder:s}=null!==(r=w(v,this).getHeaderSettings(t,e))&&void 0!==r?r:{};return s||n?"":this.hot.getColHeader(e,t)}destroy(){m(v,this,null),null!==w(S,this)&&(w(S,this).unsubscribe(),m(S,this,null)),super.destroy()}_getHeaderTreeNodeDataByCoords(e){if(!(e.row>=0||e.col<0))return w(v,this).getHeaderTreeNodeData(e.row,e.col)}}function M(e,t){var r;const n=this.hot.getSelectedRangeActive();if(!n)return e;const{highlight:s}=n,{navigableHeaders:i}=this.hot.getSettings(),o=this.hot.selection.isSelectedByColumnHeader(),a=i?s.row:null===(r=w(N,this))||void 0===r?void 0:r.row,l=o?e:s.col,h=a<0&&l>=0;if(m(N,this,null),!h)return e;const u=this.hot.getFirstFullyVisibleColumn(),c=this.hot.getLastFullyVisibleColumn(),d=c-u+1,g=w(v,this).findLeftMostColumnIndex(a,l),p=w(v,this).findRightMostColumnIndex(a,l),f=p-g+1;if(g<u&&p>c)return g;if(o){let e=null;return g>=u&&p>c?f>d?(t.value="start",e=g):(t.value="end",e=p):g<u&&p<=c&&(f>d?(t.value="end",e=p):(t.value="start",e=g)),e}return g<=u?g:p}function I(e,t,r){const n=w(v,this).getHeaderTreeNodeData(t,e);if(!n)return e;const{columnCursor:s,selectionType:i,selectionWidth:o}=r,{isRoot:a,colspan:l}=w(v,this).getHeaderSettings(t,e);if(i===u.HEADER_TYPE){if(!a)return n.columnIndex}else if(i===u.ACTIVE_HEADER_TYPE&&(l>o-s||!a))return null;return e}function O(e,t,r){let{columnHeadersCount:n}=r;if(0!==n)for(let r=0;r<t.length;r++){const{startRow:n,startCol:i,endRow:o,endCol:a}=t[r],l=o-n+1;if(n>=0||1===i-a+1)break;for(let t=i;t<=a;t++)for(let r=n;r<=o;r++){var s;const n=l+r,o=t-i;if(0===o)continue;!1===(null===(s=w(v,this).getHeaderTreeNodeData(r,t))||void 0===s?void 0:s.isRoot)&&(e[n][o]="")}}}function x(e,t,r,n){this._getHeaderTreeNodeDataByCoords(t)&&(n.column=!0)}function P(e,t){const r=this._getHeaderTreeNodeDataByCoords(t);if(!r)return;m(R,this,t.clone()),m(T,this,!0);const{selection:n}=this.hot,s=n.isSelected()?n.getSelectedRange().current():null,i=[],{columnIndex:o,origColspan:a}=r,h=!n.inInSelection(t);e.shiftKey&&s?t.col<s.from.col?i.push(s.getTopEndCorner().col,o,t.row):t.col>s.from.col?i.push(s.getTopStartCorner().col,o+a-1,t.row):i.push(o,o+a-1,t.row):((0,l.isLeftClick)(e)||(0,l.isRightClick)(e)&&h||(0,l.isTouchEvent)(e))&&i.push(o,o+a-1,t.row),n.selectColumns(...i)}function L(e,t,r,n){if(!this.hot.view.isMouseDown()||n.column)return;const s=this._getHeaderTreeNodeDataByCoords(t);if(!s)return;const{columnIndex:i,origColspan:a}=s,l=this.hot.getSelectedRangeActive(),h=l.getTopStartCorner(),u=l.getBottomEndCorner(),{from:c}=l;n.column=!0,n.cell=!0;const d=[],g=(0,o.clamp)(t.row,-1/0,-1);t.col<c.col?d.push(u.col,i,g):t.col>c.col?d.push(h.col,i+a-1,g):d.push(i,i+a-1,g),this.hot.selection.selectColumns(...d)}function D(){m(T,this,!1)}function k(){const{navigableHeaders:e}=this.hot.getSettings();if(!this.hot.view.isMouseDown()||!w(T,this)||!e)return;const t=this.hot.getSelectedRangeLast(),r=t.getTopStartCorner().col,n=t.getBottomEndCorner().col,{columnIndex:s,origColspan:i}=w(v,this).getHeaderTreeNodeData(w(R,this).row,w(R,this).col);if(t.setHighlight(w(R,this)),i>t.getWidth()||s<r||s+i-1>n){const e=w(v,this).findTopMostEntireHeaderLevel((0,o.clamp)(r,s,s+i-1),(0,o.clamp)(n,s,s+i-1));t.highlight.row=e,t.highlight.col=t.from.col}}function H(e){const{highlight:t}=this.hot.getSelectedRangeActive(),r=this.hot._createCellCoords(t.row+e.row,t.col+e.col);if(!(r.isHeader()&&r.col>=0))return;const n=w(v,this).findLeftMostColumnIndex(r.row,r.col),s=w(v,this).findRightMostColumnIndex(r.row,r.col);if(e.col<0){const r=t.col>=n&&t.col<=s?n-1:s,i=this.hot.columnIndexMapper.getNearestNotHiddenIndex(r,-1);e.col=null===i?-this.hot.view.countRenderableColumnsInRange(0,t.col):-Math.max(this.hot.view.countRenderableColumnsInRange(i,t.col)-1,1)}else if(e.col>0){const r=t.col>=n&&t.col<=s?s+1:n,i=this.hot.columnIndexMapper.getNearestNotHiddenIndex(r,1);e.col=null===i?this.hot.view.countRenderableColumnsInRange(t.col,this.hot.countCols()):Math.max(this.hot.view.countRenderableColumnsInRange(t.col,i)-1,1)}}function F(e,t,r){const n=e.row,s=this._getHeaderTreeNodeDataByCoords({row:n,col:e.col}),i=this._getHeaderTreeNodeDataByCoords({row:n,col:t.col});m(N,this,r.clone()),t.col<e.col?(s&&(e.col=s.columnIndex+s.origColspan-1),i&&(t.col=i.columnIndex)):t.col>=e.col&&(s&&(e.col=s.columnIndex),i&&(t.col=i.columnIndex+i.origColspan-1))}function U(e){if(w(v,this).getLayersCount()>0){e.length=0;for(let t=0;t<w(v,this).getLayersCount();t++)e.push(this.headerRendererFactory(t))}}function V(e){const t=w(v,this).getLayersCount();let r=e.startColumn,n=!!t;for(let s=0;s<t;s++){const t=w(v,this).findLeftMostColumnIndex(s,e.startColumn),i=this.hot.columnIndexMapper.getRenderableFromVisualIndex(t);if(t>=0&&(n=!1),(0,o.isNumeric)(i)&&i<e.startColumn){r=i;break}}e.startColumn=n?w(v,this).getHeaderTreeNodeData(0,r).columnIndex:r}function B(e,t){const r=this.ghostTable.getWidth(t);return e>r?e:r}function W(e,t,r){var n;const{label:s}=null!==(n=w(v,this).getHeaderTreeNodeData(r,t))&&void 0!==n?n:{label:""};return s}function Y(e,t){if(e<0)return this.hot.getCell(e,w(v,this).findLeftMostColumnIndex(e,t),!0)}function G(){this.updatePlugin()}function j(e,t){t||this.updatePlugin()}t.NestedHeaders=b},1858:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"borders:no_borders",name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_REMOVE_BORDERS)},callback(t,r){e.prepareBorder(r,"noBorders")},disabled(){return!(0,s.checkSelectionBorders)(this)}}};var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),s=r(36053)},1872:()=>{},2029:(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 r=t.getCSSVariableValue("cell-autofill-size"),n=t.getCSSVariableValue("cell-autofill-border-width"),s=t.getCSSVariableValue("cell-autofill-border-color");return Object.freeze({width:r,height:r,borderWidth:n,borderStyle:"solid",borderColor:s})}},2090:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(99356);var s=n(r(24300)),i=r(58033),o=r(40785),a=r(27727);class l extends i.MapCollection{constructor(e,t){super(),(0,s.default)(this,"mergedValuesCache",[]),(0,s.default)(this,"aggregationFunction",void 0),(0,s.default)(this,"fallbackValue",void 0),this.aggregationFunction=e,this.fallbackValue=t}getMergedValues(){if(!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]))return this.mergedValuesCache;if(0===this.getLength())return[];const e=(0,o.arrayMap)(this.get(),e=>e.getValues()),t=[],r=(0,a.isDefined)(e[0])&&e[0].length||0;for(let n=0;n<r;n+=1){const r=[];for(let t=0;t<this.getLength();t+=1)r.push(e[t][n]);t.push(r)}return(0,o.arrayMap)(t,this.aggregationFunction)}getMergedValueAtIndex(e,t){const r=this.getMergedValues(t)[e];return(0,a.isDefined)(r)?r:this.fallbackValue}updateCache(){this.mergedValuesCache=this.getMergedValues(!1)}}t.AggregatedCollection=l},2332:(e,t,r)=>{"use strict";t.__esModule=!0,r(52490),r(99356),r(34478),r(31143);var n=r(53383),s=r(6083),i=r(40785),o=r(4407),a=r(1531);function l(e,t,r){h(e,t),t.set(e,r)}function h(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function u(e,t,r){return e.set(d(e,t),r),r}function c(e,t){return e.get(d(e,t))}function d(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const g=t.PLUGIN_KEY="manualColumnResize",p=t.PLUGIN_PRIORITY=130,f="manualColumnWidths";var m=new WeakMap,w=new WeakMap,E=new WeakMap,y=new WeakMap,C=new WeakMap,v=new WeakMap,S=new WeakMap,R=new WeakMap,T=new WeakMap,N=new WeakMap,_=new WeakMap,A=new WeakMap,b=new WeakMap,M=new WeakMap,I=new WeakMap,O=new WeakMap,x=new WeakSet;class P extends n.BasePlugin{static get PLUGIN_KEY(){return g}static get PLUGIN_PRIORITY(){return p}constructor(e){var t,r;super(e),h(t=this,r=x),r.add(t),l(this,m,null),l(this,w,null),l(this,E,[]),l(this,y,null),l(this,C,null),l(this,v,null),l(this,S,null),l(this,R,null),l(this,T,this.hot.rootDocument.createElement("DIV")),l(this,N,this.hot.rootDocument.createElement("DIV")),l(this,_,null),l(this,A,!1),l(this,b,0),l(this,M,null),l(this,I,void 0),l(this,O,void 0),(0,s.addClass)(c(T,this),"manualColumnResizer"),(0,s.addClass)(c(N,this),"manualColumnResizerGuide")}get inlineDir(){return this.hot.isRtl()?"right":"left"}isEnabled(){return this.hot.getSettings()[g]}enablePlugin(){var e=this;this.enabled||(u(I,this,new a.PhysicalIndexToValueMap),c(I,this).addLocalHook("init",()=>d(x,this,L).call(this)),this.hot.columnIndexMapper.registerMap(this.pluginName,c(I,this)),this.addHook("modifyColWidth",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return d(x,e,V).call(e,...r)},1),this.addHook("beforeStretchingColumnWidth",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return d(x,e,B).call(e,...r)},1),this.addHook("beforeColumnResize",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return d(x,e,W).call(e,...r)}),this.bindEvents(),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){u(O,this,c(I,this).getValues()),this.hot.columnIndexMapper.unregisterMap(this.pluginName),super.disablePlugin()}saveManualColumnWidths(){this.hot.runHooks("persistentStateSave",f,c(I,this).getValues())}loadManualColumnWidths(){const e={};return this.hot.runHooks("persistentStateLoad",f,e),e.value}setManualSize(e,t){const r=Math.max(t,20),n=this.hot.toPhysicalColumn(e);return c(I,this).setValueAtIndex(n,r),r}clearManualSize(e){const t=this.hot.toPhysicalColumn(e);c(I,this).setValueAtIndex(t,null)}setupHandlePosition(e){if(!e.parentNode||c(b,this)>1)return;u(m,this,e);const{_wt:t}=this.hot.view,r=t.wtTable.getCoords(c(m,this)),n=r.col;if(n<0)return;const a=(0,s.outerHeight)(c(m,this)),l=c(m,this).getBoundingClientRect();let h;n<t.getSetting("fixedColumnsStart")&&(h=t.wtOverlays.topInlineStartCornerOverlay.getRelativeCellPosition(c(m,this),r.row,r.col)),h||(h=t.wtOverlays.topOverlay.getRelativeCellPosition(c(m,this),r.row,r.col)),u(w,this,this.hot.columnIndexMapper.getVisualFromRenderableIndex(n)),u(E,this,[]);const d=this.hot.selection.isSelectedByCorner()||this.hot.selection.isSelectedByColumnHeader();if(this.hot.selection.isSelected()&&d){const e=this.hot.getSelectedRange();(0,i.arrayEach)(e,e=>{const t=e.getTopStartCorner().col,r=e.getBottomEndCorner().col;(0,o.rangeEach)(t,r,e=>{c(E,this).includes(e)||c(E,this).push(e)})})}c(E,this).includes(c(w,this))||u(E,this,[c(w,this)]),u(R,this,h.start-6),u(S,this,parseInt(l.width,10)),c(T,this).style.top=`${h.top}px`,c(T,this).style[this.inlineDir]=`${c(R,this)+c(S,this)}px`,c(T,this).style.height=`${a}px`,this.hot.rootElement.appendChild(c(T,this))}refreshHandlePosition(){c(T,this).style[this.inlineDir]=`${c(R,this)+c(y,this)}px`}setupGuidePosition(){const e=parseInt((0,s.outerHeight)(c(T,this)),10),t=parseInt(c(T,this).style.top,10)+e,r=this.hot.view.getTableHeight();(0,s.addClass)(c(T,this),"active"),(0,s.addClass)(c(N,this),"active"),c(N,this).style.top=`${t}px`,this.refreshGuidePosition(),c(N,this).style.height=r-e+"px",this.hot.rootElement.appendChild(c(N,this))}refreshGuidePosition(){c(N,this).style[this.inlineDir]=c(T,this).style[this.inlineDir]}hideHandleAndGuide(){(0,s.removeClass)(c(T,this),"active"),(0,s.removeClass)(c(N,this),"active")}checkIfColumnHeader(e){const t=(0,s.closest)(e,["THEAD"],this.hot.rootElement),{topOverlay:r,topInlineStartCornerOverlay:n}=this.hot.view._wt.wtOverlays;return[r.clone.wtTable.THEAD,n.clone.wtTable.THEAD].includes(t)}getClosestTHParent(e){return"TABLE"!==e.tagName?"TH"===e.tagName?e:this.getClosestTHParent(e.parentNode):null}afterMouseDownTimeout(){const e=()=>{this.hot.view.adjustElementsSize(),this.hot.render()},t=(t,r)=>{const n=this.hot.runHooks("beforeColumnResize",c(C,this),t,!0);void 0!==n&&u(C,this,n),this.setManualSize(t,c(C,this)),this.saveManualColumnWidths(),this.hot.runHooks("afterColumnResize",c(C,this),t,!0),r&&e()};if(c(b,this)>=2){c(E,this).length>1?((0,i.arrayEach)(c(E,this),e=>{t(e)}),e()):(0,i.arrayEach)(c(E,this),e=>{t(e,!0)})}u(b,this,0),u(M,this,null)}bindEvents(){const{rootWindow:e,rootElement:t}=this.hot;this.eventManager.addEventListener(t,"mouseover",e=>d(x,this,D).call(this,e)),this.eventManager.addEventListener(t,"mousedown",e=>d(x,this,k).call(this,e)),this.eventManager.addEventListener(e,"mousemove",e=>d(x,this,H).call(this,e)),this.eventManager.addEventListener(e,"mouseup",()=>d(x,this,F).call(this)),this.eventManager.addEventListener(c(T,this),"contextmenu",()=>d(x,this,U).call(this))}destroy(){super.destroy()}}function L(){const e=this.hot.getSettings()[g],t=this.loadManualColumnWidths();void 0!==t?this.hot.batchExecution(()=>{t.forEach((e,t)=>{c(I,this).setValueAtIndex(t,e)})},!0):Array.isArray(e)?(this.hot.batchExecution(()=>{e.forEach((e,t)=>{c(I,this).setValueAtIndex(t,e)})},!0),u(O,this,e)):!0===e&&Array.isArray(c(O,this))&&this.hot.batchExecution(()=>{c(O,this).forEach((e,t)=>{c(I,this).setValueAtIndex(t,e)})},!0)}function D(e){if(!(0,s.isDetached)(e.target)&&!0!==c(A,this)&&this.checkIfColumnHeader(e.target)){const t=this.getClosestTHParent(e.target);if(!t)return;const r=t.getAttribute("colspan");!t||null!==r&&"1"!==r||c(_,this)||this.setupHandlePosition(t)}}function k(e){e.target.parentNode===this.hot.rootElement&&(0,s.hasClass)(e.target,"manualColumnResizer")&&(this.setupHandlePosition(c(m,this)),this.setupGuidePosition(),u(_,this,!0),null===c(M,this)&&(u(M,this,setTimeout(()=>this.afterMouseDownTimeout(),500)),this.hot._registerTimeout(c(M,this))),u(b,this,c(b,this)+1),this.startX=e.pageX,u(C,this,c(S,this)))}function H(e){if(c(_,this)){const t=(e.pageX-this.startX)*this.hot.getDirectionFactor();u(y,this,c(S,this)+t),(0,i.arrayEach)(c(E,this),e=>{u(C,this,this.setManualSize(e,c(y,this)))}),this.refreshHandlePosition(),this.refreshGuidePosition()}}function F(){const e=()=>{this.hot.view.adjustElementsSize(),this.hot.render()},t=(t,r)=>{this.hot.runHooks("beforeColumnResize",c(C,this),t,!1),r&&e(),this.saveManualColumnWidths(),this.hot.runHooks("afterColumnResize",c(C,this),t,!1)};if(c(_,this)){if(this.hideHandleAndGuide(),u(_,this,!1),c(C,this)!==c(S,this)){c(E,this).length>1?((0,i.arrayEach)(c(E,this),e=>{t(e)}),e()):(0,i.arrayEach)(c(E,this),e=>{t(e,!0)})}this.setupHandlePosition(c(m,this))}}function U(){this.hideHandleAndGuide(),this.hot.rootElement.removeChild(c(T,this)),this.hot.rootElement.removeChild(c(N,this)),u(_,this,!1),u(A,this,!0),this.hot._registerImmediate(()=>{u(A,this,!1)})}function V(e,t){let r=e;if(this.enabled){const e=this.hot.toPhysicalColumn(t),n=c(I,this).getValueAtIndex(e);this.hot.getSettings()[g]&&n&&(r=n)}return r}function B(e,t){const r=c(I,this).getValueAtIndex(this.hot.toPhysicalColumn(t));return"number"==typeof r?r:e}function W(){this.hot.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked()}t.ManualColumnResize=P},2382:(e,t,r)=>{"use strict";var n=r(53001);e.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},2509:()=>{},2520:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(4665);t.registerRootComparator=n.registerRootComparator,t.getRootComparator=n.getRootComparator,t.getCompareFunctionFactory=n.getCompareFunctionFactory;var s=r(12688);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},2527:()=>{},2668:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"editorCloseWithoutSaving",callback(e){const t=e._getEditorManager();t.closeEditorAndRestoreOriginalValue(e.getShortcutManager().isCtrlPressed()),t.activeEditor.focus()}}},2686:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(99356);var s=n(r(24300)),i=r(23718);class o extends i.ViewportBaseCalculator{constructor(e){let{calculationTypes:t,viewportHeight:r,scrollOffset:n,totalRows:i,defaultRowHeight:o,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=o,this.viewportHeight=r,this.scrollOffset=n,this.zeroBasedScrollOffset=Math.max(n,0),this.totalRows=i,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=o},2732:()=>{},2788:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(42660)),i=n(r(97996)),o=n(r(80595)),a=r(21389),l=r(82175);class h extends s.default{constructor(e,t,r,n){super(e,t,r,n,l.CLONE_INLINE_START)}}(0,a.mixin)(h,i.default),(0,a.mixin)(h,o.default);t.default=h},2835:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy_column_headers_only",name(){const e=this.getSelectedRangeActive(),t=e?(0,s.clamp)(e.getWidth()-1,0,1):0;return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY,t)},callback(){e.copyColumnHeadersOnly()},disabled(){if(!this.hasColHeaders())return!0;const e=this.getSelectedRangeActive();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}};var n=r(15230),s=r(4407)},2847:(e,t,r)=>{"use strict";var n=r(94266),s=Object.defineProperty;e.exports=function(e,t){try{s(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},2898:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(34478),r(81056);var s=r(53383),i=r(17715),o=r(40785),a=r(6083),l=r(31075),h=r(4407),u=n(r(17283)),c=n(r(83276));function d(e,t,r){g(e,t),t.set(e,r)}function g(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function p(e,t,r){return e.set(m(e,t),r),r}function f(e,t){return e.get(m(e,t))}function m(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}i.Hooks.getSingleton().register("beforeColumnMove"),i.Hooks.getSingleton().register("afterColumnMove");const w=t.PLUGIN_KEY="manualColumnMove",E=t.PLUGIN_PRIORITY=120,y="ht__manualColumnMove",C="show-ui",v="on-moving--columns",S="after-selection--columns";var R=new WeakMap,T=new WeakMap,N=new WeakMap,_=new WeakMap,A=new WeakMap,b=new WeakMap,M=new WeakMap,I=new WeakMap,O=new WeakMap,x=new WeakMap,P=new WeakMap,L=new WeakSet;class D extends s.BasePlugin{constructor(){var e,t;super(...arguments),g(e=this,t=L),t.add(e),d(this,R,new u.default(this.hot)),d(this,T,new c.default(this.hot)),d(this,N,[]),d(this,_,0),d(this,A,!1),d(this,b,{}),d(this,M,void 0),d(this,I,void 0),d(this,O,void 0),d(this,x,void 0),d(this,P,void 0)}static get PLUGIN_KEY(){return w}static get PLUGIN_PRIORITY(){return E}isEnabled(){return!!this.hot.getSettings()[w]}enablePlugin(){var e=this;this.enabled||(this.addHook("beforeOnCellMouseDown",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return m(L,e,k).call(e,...r)}),this.addHook("beforeOnCellMouseOver",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return m(L,e,F).call(e,...r)}),this.addHook("afterScrollVertically",()=>m(L,this,V).call(this)),this.addHook("afterLoadData",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return m(L,e,B).call(e,...r)}),this.buildPluginUI(),this.registerEvents(),(0,a.addClass)(this.hot.rootElement,y),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.moveBySettingsOrLoad(),super.updatePlugin()}disablePlugin(){(0,a.removeClass)(this.hot.rootElement,y),this.unregisterEvents(),f(R,this).destroy(),f(T,this).destroy(),super.disablePlugin()}moveColumn(e,t){return this.moveColumns([e],t)}moveColumns(e,t){const r=f(M,this),n=this.isMovePossible(e,t),s=this.hot.runHooks("beforeColumnMove",e,t,r,n);if(p(M,this,void 0),!1===s)return;n&&this.hot.columnIndexMapper.moveIndexes(e,t);const i=n&&this.isColumnOrderChanged(e,t);return this.hot.runHooks("afterColumnMove",e,t,r,n,i),i}dragColumn(e,t){return this.dragColumns([e],t)}dragColumns(e,t){const r=this.countFinalIndex(e,t);return p(M,this,t),this.moveColumns(e,r)}isMovePossible(e,t){const r=this.hot.columnIndexMapper.getNotTrimmedIndexesLength(),n=e.length+t>r,s=t<0,i=e.some(e=>e<0),o=e.some(e=>e>=r);return!(n||s||i||o)}isColumnOrderChanged(e,t){return e.some((e,r)=>e-r!==t)}countFinalIndex(e,t){const r=(0,o.arrayReduce)(e,(e,r)=>(r<t&&(e+=1),e),0);return t-r}getColumnsWidth(e,t){const r=this.hot.columnIndexMapper;let n=0;for(let s=e;s<=t;s+=1){const e=r.getRenderableFromVisualIndex(s);s<0?n+=this.hot.view._wt.wtViewport.getRowHeaderWidth()||0:null!==e&&(n+=this.hot.view._wt.wtTable.getColumnWidth(e)||0)}return n}moveBySettingsOrLoad(){const e=this.hot.getSettings()[w];if(Array.isArray(e))this.moveColumns(e,0);else if(void 0!==e){const e=this.persistentStateLoad();e.length&&this.moveColumns(e,0)}}isFixedColumnsStart(e){return e<this.hot.getSettings().fixedColumnsStart}persistentStateSave(){this.hot.runHooks("persistentStateSave","manualColumnMove",this.hot.columnIndexMapper.getIndexesSequence())}persistentStateLoad(){const e={};return this.hot.runHooks("persistentStateLoad","manualColumnMove",e),e.value?e.value:[]}prepareColumnsToMoving(e,t){const r=[];return(0,h.rangeEach)(e,t,e=>{r.push(e)}),r}refreshPositions(){const e=this.hot.view.getFirstFullyVisibleColumn();this.isFixedColumnsStart(f(I,this))&&e>0&&this.hot.scrollViewportTo({col:this.hot.columnIndexMapper.getNearestNotHiddenIndex(e-1,-1)});const t=this.hot.view._wt.wtTable,r=this.hot.view._wt.wtOverlays.scrollableElement,n="number"==typeof r.scrollX?r.scrollX:r.scrollLeft;let s=this.hot.view.THEAD.offsetLeft+this.getColumnsWidth(0,f(I,this)-1);const i=t.hider.offsetWidth,o=t.TBODY.offsetLeft,l=f(R,this).getOffset().start,h=f(R,this).getSize().width;let u=0,c=0;if(this.hot.isRtl()){const e=this.hot.rootWindow,t=(0,a.outerWidth)(this.hot.rootElement),s=e.innerWidth-f(O,this)-t;c=e.innerWidth-f(b,this).eventPageX-s-(void 0===r.scrollX?n:0)}else c=f(b,this).eventPageX-(f(O,this)-(void 0===r.scrollX?n:0));if(f(x,this)&&(u=this.hot.view._wt.wtOverlays.inlineStartOverlay.clone.wtTable.getColumnHeader(-1).offsetWidth),this.isFixedColumnsStart(f(I,this))&&(s+=n),s+=u,f(I,this)<0)f(P,this)>0?f(b,this).col=0:f(b,this).col=e>0?e-1:e;else if(f(b,this).TD.offsetWidth/2+s<=c){const e=f(I,this)>=f(_,this)?f(_,this)-1:f(I,this);f(b,this).col=e+1,s+=f(b,this).TD.offsetWidth}else f(b,this).col=f(I,this);let d=c,g=s;c+h+l>=i?d=i-h-l:c+l<o+u&&(d=o+u+Math.abs(l)),s>=i-1?g=i-1:0===g?g=1:void 0!==r.scrollX&&f(I,this)<f(P,this)&&(g-=f(O,this)<=r.scrollX?f(O,this):0),f(R,this).setPosition(null,d),f(T,this).setPosition(null,g)}registerEvents(){const{documentElement:e}=this.hot.rootDocument;this.eventManager.addEventListener(e,"mousemove",e=>m(L,this,H).call(this,e)),this.eventManager.addEventListener(e,"mouseup",()=>m(L,this,U).call(this))}unregisterEvents(){this.eventManager.clear()}buildPluginUI(){f(R,this).build(),f(T,this).build()}destroy(){f(R,this).destroy(),f(T,this).destroy(),super.destroy()}}function k(e,t,r,n){const s=this.hot.view._wt.wtTable,i=this.hot.selection.isSelectedByColumnHeader(),o=this.hot.getSelectedRangeActive(),h=(0,a.hasClass)(e.target,"sortAction");if(!o||!i||f(A,this)||0!==e.button||h)return p(A,this,!1),f(N,this).length=0,void(0,a.removeClass)(this.hot.rootElement,[v,C]);const u=f(T,this).isBuilt()&&!f(T,this).isAppended(),c=f(R,this).isBuilt()&&!f(R,this).isAppended();u&&c&&(f(T,this).appendTo(s.hider),f(R,this).appendTo(s.hider));const{from:d,to:g}=o,m=Math.min(d.col,g.col),w=Math.max(d.col,g.col);if(t.row<0&&t.col>=m&&t.col<=w){n.column=!0,p(A,this,!0);const i=r.firstChild?(0,l.offsetRelativeTo)(e,r.firstChild).x:e.offsetX;f(b,this).eventPageX=e.pageX,p(I,this,t.col),f(b,this).TD=r,f(b,this).col=t.col,p(N,this,this.prepareColumnsToMoving(m,w)),p(x,this,!!this.hot.getSettings().rowHeaders),p(_,this,this.hot.countCols()),p(P,this,this.hot.getSettings().fixedColumnsStart),p(O,this,(0,a.offset)(this.hot.rootElement).left);const o=f(x,this)?-1:0,h=s.holder.scrollTop+s.getColumnHeaderHeight(0)+1,u=t.col<f(P,this),c=this.hot.view._wt.wtOverlays.inlineStartOverlay.getOverlayOffset(),d=Math.abs(i-(this.hot.isRtl()?r.offsetWidth:0)),g=this.getColumnsWidth(m,t.col-1)+d,E=this.getColumnsWidth(o,m-1)+(u?c:0)+g;f(R,this).setPosition(h,E),f(R,this).setSize(this.getColumnsWidth(m,w),s.hider.offsetHeight-h),f(R,this).setOffset(null,-g),(0,a.addClass)(this.hot.rootElement,v)}else(0,a.removeClass)(this.hot.rootElement,S),p(A,this,!1),f(N,this).length=0}function H(e){f(A,this)&&(f(b,this).eventPageX=e.pageX,this.refreshPositions())}function F(e,t,r,n){this.hot.getSelectedRangeActive()&&f(A,this)&&(f(N,this).indexOf(t.col)>-1?(0,a.removeClass)(this.hot.rootElement,C):(0,a.addClass)(this.hot.rootElement,C),n.row=!0,n.column=!0,n.cell=!0,p(I,this,t.col),f(b,this).TD=r)}function U(){const e=f(b,this).col,t=f(N,this).length;if(p(I,this,void 0),p(A,this,!1),(0,a.removeClass)(this.hot.rootElement,[v,C,S]),this.hot.selection.isSelectedByColumnHeader()&&(0,a.addClass)(this.hot.rootElement,S),t<1||void 0===e)return;const r=f(N,this)[0],n=this.hot.toPhysicalColumn(r),s=this.dragColumns(f(N,this),e);if(f(N,this).length=0,!0===s){this.persistentStateSave(),this.hot.view.adjustElementsSize(),this.hot.render();const e=this.hot.toVisualColumn(n),r=e+t-1;this.hot.selectColumns(e,r)}}function V(){const e=this.hot.view._wt.wtTable,t=e.getColumnHeaderHeight(0)+1+e.holder.scrollTop;f(R,this).setPosition(t),f(R,this).setSize(null,e.hider.offsetHeight-t)}function B(){this.moveBySettingsOrLoad()}t.ManualColumnMove=D},2943:()=>{},3166:(e,t,r)=>{"use strict";t.__esModule=!0,r(52490);var n=r(21389),s=r(11492);function i(e,t,r){(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,r)}function o(e,t){return e.get(a(e,t))}function a(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var l=new WeakMap;class h extends s.BaseUI{static get DEFAULTS(){return(0,n.clone)({href:"#",tagName:"a",tabIndex:-1,role:"button"})}constructor(e,t){super(e,(0,n.extend)(h.DEFAULTS,t)),i(this,l,void 0)}build(){var e,t,r;super.build(),e=l,t=this,r=this._element.firstChild,e.set(a(e,t),r)}update(){this.isBuilt()&&(o(l,this).textContent=this.translateIfPossible(this.options.textContent))}focus(){this.isBuilt()&&o(l,this).focus()}activate(){o(l,this).click()}}t.LinkUI=h},3418:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionDownByViewportHeight",callback(e){const{selection:t,rowIndexMapper:r}=e,{to:n}=e.getSelectedRangeActive(),s=Math.min(n.row+e.countVisibleRows(),e.countRows()-1),i=r.getNearestNotHiddenIndex(s,-1);if(null!==i){const r=e._createCellCoords(i,n.col),s=n.row-e.getFirstFullyVisibleRow(),o=Math.min(r.row-s,e.countRows()-1);t.markSource("keyboard"),t.setRangeEnd(r,e.getActiveSelectionLayerIndex()),t.markEndSource(),e.scrollViewportTo({row:o,verticalSnap:"top",horizontalSnap:"start"})}}}},3442:(e,t,r)=>{"use strict";t.__esModule=!0,t.detectSelectionType=p,t.normalizeSelectionFactory=f,t.transformSelectionToColumnDistance=function(e){const t=p(e.getSelected());if(t===o||t===a)return[];const r=f(t,{createCellCoords:e._createCellCoords.bind(e),createCellRange:e._createCellRange.bind(e)}),n=new Set;(0,s.arrayEach)(e.getSelected(),e=>{const{from:t,to:i}=r(e),o=Math.max(t.col,0),a=i.col-o+1;(0,s.arrayEach)(Array.from(new Array(a),(e,t)=>o+t),e=>{n.has(e)||n.add(e)})});const i=Array.from(n).sort((e,t)=>e-t);return(0,s.arrayReduce)(i,(e,t,r,n)=>(0!==r&&t===n[r-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e),[])},t.transformSelectionToRowDistance=function(e){const t=p(e.getSelected());if(t===o||t===a)return[];const r=f(t,{createCellCoords:e._createCellCoords.bind(e),createCellRange:e._createCellRange.bind(e)}),n=new Set;(0,s.arrayEach)(e.getSelected(),e=>{const{from:t,to:i}=r(e),o=Math.max(t.row,0),a=i.row-o+1;(0,s.arrayEach)(Array.from(new Array(a),(e,t)=>o+t),e=>{n.has(e)||n.add(e)})});const i=Array.from(n).sort((e,t)=>e-t);return(0,s.arrayReduce)(i,(e,t,r,n)=>(0!==r&&t===n[r-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e),[])},r(52490),r(99356),r(89624),r(14950),r(98831),r(67046),r(38221),r(56050),r(65724),r(34478),r(81056);var n=r(74216),s=r(40785),i=r(27727);const o=t.SELECTION_TYPE_UNRECOGNIZED=0,a=t.SELECTION_TYPE_EMPTY=1,l=t.SELECTION_TYPE_ARRAY=2,h=t.SELECTION_TYPE_OBJECT=3,u=t.SELECTION_TYPES=[h,l],c=[["number"],["number","string"],["number","undefined"],["number","string","undefined"]],d=Symbol("root"),g=Symbol("child");function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d;if(t!==d&&t!==g)throw new Error("The second argument is used internally only and cannot be overwritten.");const r=Array.isArray(e),s=t===d;let i=o;if(r){const t=e[0];if(0===e.length)i=a;else if(s&&t instanceof n.CellRange)i=h;else if(s&&Array.isArray(t))i=p(t,g);else if(e.length>=2&&e.length<=4){!e.some((e,t)=>!c[t].includes(typeof e))&&(i=l)}}return i}function f(e){let{createCellCoords:t,createCellRange:r,keepDirection:n=!1,propToCol:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!u.includes(e))throw new Error("Unsupported selection ranges schema type was provided.");return function(o){const a=e===h;let l=a?o.from.row:o[0],u=a?o.from.col:o[1],c=a?o.to.row:o[2],d=a?o.to.col:o[3];if("function"==typeof s&&("string"==typeof u&&(u=s(u)),"string"==typeof d&&(d=s(d))),(0,i.isUndefined)(c)&&(c=l),(0,i.isUndefined)(d)&&(d=u),!n){const e=l,t=u,r=c,n=d;l=Math.min(e,r),u=Math.min(t,n),c=Math.max(e,r),d=Math.max(t,n)}const g=a?o.highlight.clone():t(l,u),p=t(l,u),f=t(c,d);return r(g,p,f)}}},3518:(e,t,r)=>{"use strict";var n=r(72820),s=r(77439),i=r(94178),o=r(70792),a=r(90501),l=r(21177),h=r(99793),u=r(14483)("every",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:u},{every:function(e){a(this);try{o(e)}catch(e){h(this,"throw",e)}if(u)return s(u,this,e);var t=l(this),r=0;return!i(t,function(t,n){if(!e(t,r++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},3538:()=>{},3732:e=>{function t(){}t.prototype={on:function(e,t,r){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){var n=this;function s(){n.off(e,s),t.apply(r,arguments)}return s._=t,this.on(e,s,r)},emit:function(e){for(var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),n=0,s=r.length;n<s;n++)r[n].fn.apply(r[n].ctx,t);return this},off:function(e,t){var r=this.e||(this.e={}),n=r[e],s=[];if(n&&t)for(var i=0,o=n.length;i<o;i++)n[i].fn!==t&&n[i].fn._!==t&&s.push(n[i]);return s.length?r[e]=s:delete r[e],this}},e.exports=t,e.exports.TinyEmitter=t},3837:(e,t,r)=>{"use strict";t.__esModule=!0,t.createMenuNavigator=function(e){return(0,n.createPaginator)({size:()=>e.countRows(),onItemSelect(t,r){const n=e.getCell(t,0);if(!n||(0,s.isSeparator)(n)||(0,s.isDisabled)(n)||(0,s.isSelectionDisabled)(n))return!1;e.selectCell(t,0,...r?[t,0,!1,!1]:[])},onClear(){e.deselectCell()}})};var n=r(43679),s=r(55517)},4407:(e,t,r)=>{"use strict";function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const r=typeof e;if("number"===r)return!isNaN(e)&&isFinite(e);if("string"===r){if(0===e.length)return!1;if(1===e.length)return/\d/.test(e);const r=Array.from(new Set([".",...t])).map(e=>`\\${e}`).join("|");return new RegExp(`^[+-]?(((${r})?\\d+((${r})\\d+)?(e[+-]?\\d+)?)|(0x[a-f\\d]+))$`,"i").test(e.trim())}return"object"===r&&!(!e||"number"!=typeof e.valueOf()||e instanceof Date)}t.__esModule=!0,t.clamp=function(e,t,r){if(Math.min(e,t)===e)return t;if(Math.max(e,r)===e)return r;return e},t.getParsedNumber=function(e){const t=e.replace(",",".");if(!1===isNaN(parseFloat(t)))return parseFloat(t);return null},t.isNumeric=n,t.isNumericLike=function(e){return n(e,[","])},t.isUnsignedNumber=function(e){return Number.isInteger(e)&&e>=0},t.rangeEach=function(e,t,r){let n=-1;"function"==typeof t?(r=t,t=e):n=e-1;for(;++n<=t&&!1!==r(n););},t.rangeEachReverse=function(e,t,r){let n=e+1;"function"==typeof t&&(r=t,t=0);for(;--n>=t&&!1!==r(n););},t.valueAccordingPercent=function(e,t){return t=parseInt(t.toString().replace("%",""),10),t=isNaN(t)?0:t,parseInt(e*t/100,10)},r(89624),r(14950),r(98831),r(67046),r(38221),r(56050),r(65724),r(34478),r(940)},4462:(e,t,r)=>{"use strict";var n=r(72820),s=r(94266),i=r(96127).clear;n({global:!0,bind:!0,enumerable:!0,forced:s.clearImmediate!==i},{clearImmediate:i})},4553:(e,t,r)=>{"use strict";t.__esModule=!0,t.createPriorityMap=function(){let{errorPriorityExists:e,errorPriorityNaN:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=new Map;return e=(0,s.isFunction)(e)?e:l,t=(0,s.isFunction)(t)?t:h,{addItem:function(s,i){if(!(0,n.isNumeric)(s))throw new Error(t(s));if(r.has(s))throw new Error(e(s));r.set(s,i)},getItems:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;const[t,n]=a.get(e)||a.get(i);return[...r].sort((e,r)=>e[0]<r[0]?t:n).map(e=>e[1])}}},r(52490),r(34478),r(940);var n=r(4407),s=r(99242);const i=t.ASC="asc",o=t.DESC="desc",a=new Map([[i,[-1,1]],[o,[1,-1]]]),l=e=>`The priority '${e}' is already declared in a map.`,h=e=>`The priority '${e}' is not a number.`},4665:(e,t,r)=>{"use strict";t.__esModule=!0,t.getCompareFunctionFactory=function(e){if(c(e))return u(e);return u(n.COLUMN_DATA_TYPE)};var n=r(17008),s=r(93490),i=r(33440),o=r(92149),a=r(60764),l=r(55585);const{register:h,getItem:u,hasItem:c}=(0,l.staticRegister)("sorting.compareFunctionFactory"),{register:d,getItem:g}=(0,l.staticRegister)("sorting.mainSortComparator");t.getRootComparator=g,t.registerRootComparator=d,h(i.COLUMN_DATA_TYPE,i.compareFunctionFactory),h(o.COLUMN_DATA_TYPE,o.compareFunctionFactory),h(n.COLUMN_DATA_TYPE,n.compareFunctionFactory),h(s.COLUMN_DATA_TYPE,s.compareFunctionFactory),h(a.COLUMN_DATA_TYPE,a.compareFunctionFactory)},4911:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=r(21389),i=n(r(50496));class o{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)(o,i.default);t.default=o},4998:(e,t,r)=>{"use strict";t.__esModule=!0,t.condition=o;var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),s=r(11278);const i=t.CONDITION_NAME="gt";function o(e,t){let[r]=t,n=r;return"numeric"===e.meta.type&&(n=parseFloat(n,10)),e.value>n}(0,s.registerCondition)(i,o,{name:n.FILTERS_CONDITIONS_GREATER_THAN,inputsCount:1,showOperators:!0})},5003:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.timeValidator=a;var s=n(r(37539));const i=["YYYY-MM-DDTHH:mm:ss.SSSZ","X","x"],o=t.VALIDATOR_TYPE="time";function a(e,t){const r=this.timeFormat||"h:mm:ss a";let n=!0,o=e;null===o&&(o=""),o=/^\d{3,}$/.test(o)?parseInt(o,10):o;const a=/^\d{1,2}$/.test(o);a&&(o+=":00");const l=(0,s.default)(o,i,!0).isValid()?(0,s.default)(o):(0,s.default)(o,r);let h=l.isValid(),u=(0,s.default)(o,r,!0).isValid()&&!a;if(this.allowEmpty&&""===o&&(h=!0,u=!0),h||(n=!1),!h&&u&&(n=!0),h&&!u)if(!0===this.correctFormat){const e=l.format(r);this.instance.setDataAtCell(this.visualRow,this.visualCol,e,"timeValidator"),n=!0}else n=!1;t(n)}a.VALIDATOR_TYPE=o},5022:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(85364);t.RENDERER_TYPE=n.RENDERER_TYPE,t.textRenderer=n.textRenderer},5184:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490);var s=r(21389),i=n(r(50496));function o(e,t,r){(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,r)}function a(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var l=new WeakMap;class h{constructor(){o(this,l,[])}subscribe(e){var t,r;return this.addLocalHook("change",e),this._write((r=this,(t=l).get(a(t,r)))),this}unsubscribe(){return this.runLocalHooks("unsubscribe"),this.clearLocalHooks(),this}_write(e){return e.length>0&&this.runLocalHooks("change",e),this}_writeInitialChanges(e){var t,r,n;r=this,n=e,(t=l).set(a(t,r),n)}}t.ChangesObserver=h,(0,s.mixin)(h,i.default)},5841:(e,t,r)=>{"use strict";t.__esModule=!0,t.condition=a;var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),s=r(27727),i=r(11278);const o=t.CONDITION_NAME="ends_with";function a(e,t){let[r]=t;return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale).endsWith((0,s.stringify)(r))}(0,i.registerCondition)(o,a,{name:n.FILTERS_CONDITIONS_ENDS_WITH,inputsCount:1,showOperators:!0})},5864:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){const t=[];let r=e;k[r]||(r=L);return(0,s.arrayEach)(k[r],e=>{let r;r=e===i.SEPARATOR?{name:i.SEPARATOR}:(0,n.clone)((0,o.getConditionDescriptor)(e)),t.push(r)}),t},r(99356);var n=r(21389),s=r(40785),i=r(70095),o=r(11278),a=r(70133);t.CONDITION_NONE=a.CONDITION_NAME;var l=r(64922);t.CONDITION_EMPTY=l.CONDITION_NAME;var h=r(35373);t.CONDITION_NOT_EMPTY=h.CONDITION_NAME;var u=r(7751);t.CONDITION_EQUAL=u.CONDITION_NAME;var c=r(97392);t.CONDITION_NOT_EQUAL=c.CONDITION_NAME;var d=r(4998);t.CONDITION_GREATER_THAN=d.CONDITION_NAME;var g=r(23451);t.CONDITION_GREATER_THAN_OR_EQUAL=g.CONDITION_NAME;var p=r(39081);t.CONDITION_LESS_THAN=p.CONDITION_NAME;var f=r(61690);t.CONDITION_LESS_THAN_OR_EQUAL=f.CONDITION_NAME;var m=r(76823);t.CONDITION_BETWEEN=m.CONDITION_NAME;var w=r(79696);t.CONDITION_NOT_BETWEEN=w.CONDITION_NAME;var E=r(26241);t.CONDITION_BEGINS_WITH=E.CONDITION_NAME;var y=r(5841);t.CONDITION_ENDS_WITH=y.CONDITION_NAME;var C=r(48130);t.CONDITION_CONTAINS=C.CONDITION_NAME;var v=r(37227);t.CONDITION_NOT_CONTAINS=v.CONDITION_NAME;var S=r(57093);t.CONDITION_DATE_BEFORE=S.CONDITION_NAME;var R=r(9598);t.CONDITION_DATE_AFTER=R.CONDITION_NAME;var T=r(36781);t.CONDITION_TOMORROW=T.CONDITION_NAME;var N=r(57861);t.CONDITION_TODAY=N.CONDITION_NAME;var _=r(52e3);t.CONDITION_YESTERDAY=_.CONDITION_NAME;var A=r(97021);t.CONDITION_BY_VALUE=A.CONDITION_NAME;var b=r(27823);t.CONDITION_TRUE=b.CONDITION_NAME;var M=r(57976);t.CONDITION_FALSE=M.CONDITION_NAME;var I=r(36327);t.OPERATION_AND=I.OPERATION_ID;var O=r(1487);t.OPERATION_OR=O.OPERATION_ID;var x=r(9696);t.OPERATION_OR_THEN_VARIABLE=x.OPERATION_ID;const P=t.TYPE_NUMERIC="numeric",L=t.TYPE_TEXT="text",D=t.TYPE_DATE="date",k=t.TYPES={[P]:[a.CONDITION_NAME,i.SEPARATOR,l.CONDITION_NAME,h.CONDITION_NAME,i.SEPARATOR,u.CONDITION_NAME,c.CONDITION_NAME,i.SEPARATOR,d.CONDITION_NAME,g.CONDITION_NAME,p.CONDITION_NAME,f.CONDITION_NAME,m.CONDITION_NAME,w.CONDITION_NAME],[L]:[a.CONDITION_NAME,i.SEPARATOR,l.CONDITION_NAME,h.CONDITION_NAME,i.SEPARATOR,u.CONDITION_NAME,c.CONDITION_NAME,i.SEPARATOR,E.CONDITION_NAME,y.CONDITION_NAME,i.SEPARATOR,C.CONDITION_NAME,v.CONDITION_NAME],[D]:[a.CONDITION_NAME,i.SEPARATOR,l.CONDITION_NAME,h.CONDITION_NAME,i.SEPARATOR,u.CONDITION_NAME,c.CONDITION_NAME,i.SEPARATOR,S.CONDITION_NAME,R.CONDITION_NAME,m.CONDITION_NAME,i.SEPARATOR,T.CONDITION_NAME,N.CONDITION_NAME,_.CONDITION_NAME]}},6036:()=>{},6083:(e,t,r)=>{"use strict";t.__esModule=!0,t.addClass=u,t.addEvent=function(e,t,r){e.addEventListener(t,r,!1)},t.clearTextSelection=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;e.getSelection&&(e.getSelection().empty?e.getSelection().empty():e.getSelection().removeAllRanges&&e.getSelection().removeAllRanges())},t.closest=a,t.closestDown=function(e,t,r){const n=[];let s=e;for(;s&&(s=a(s,t,r),s&&(!r||r.contains(s)));)n.push(s),s=s.host&&s.nodeType===Node.DOCUMENT_FRAGMENT_NODE?s.host:s.parentNode;const i=n.length;return i?n[i-1]:null},t.empty=g,t.fastInnerHTML=function(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];p.test(t)?e.innerHTML=r?(0,n.sanitize)(t):t:f(e,t)},t.fastInnerText=f,t.findFirstParentWithClass=function(e,t){const r={element:void 0,classNames:[]};let n=e;for(;null!==n&&n!==e.ownerDocument.documentElement&&!r.element;){if("string"==typeof t&&n.classList.contains(t))r.element=n,r.classNames.push(t);else if(t instanceof RegExp){const e=Array.from(n.classList).filter(e=>t.test(e));e.length&&(r.element=n,r.classNames.push(...e))}n=n.parentElement}return r},t.getCaretPosition=function(e){if(e.selectionStart)return e.selectionStart;return 0},t.getCssTransform=function(e){let t;if(e.style.transform&&""!==(t=e.style.transform))return["transform",t];return-1},t.getFractionalScalingCompensation=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(!(0,i.isWindowsOS)())return 0;return Number.isInteger(e.defaultView.devicePixelRatio||1)?0:2},t.getFrameElement=o,t.getMaximumScrollLeft=function(e){return e.scrollWidth-e.clientWidth},t.getMaximumScrollTop=function(e){return e.scrollHeight-e.clientHeight},t.getParent=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1,n=null,s=e;for(;null!==s;){if(r===t){n=s;break}s.host&&s.nodeType===Node.DOCUMENT_FRAGMENT_NODE?s=s.host:(r+=1,s=s.parentNode)}return n},t.getParentWindow=function(e){return o(e)&&e.parent},t.getScrollLeft=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return w(t);return e.scrollLeft},t.getScrollTop=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return m(t);return e.scrollTop},t.getScrollableElement=function(e){let t=e.ownerDocument,r=t?t.defaultView:void 0;t||(t=e.document?e.document:e,r=t.defaultView);const n=["auto","scroll"];let s=e.parentNode;for(;s&&s.style&&t.body!==s;){let{overflow:e,overflowX:t,overflowY:i}=s.style;if([e,t,i].includes("scroll"))return s;if(({overflow:e,overflowX:t,overflowY:i}=r.getComputedStyle(s)),n.includes(e)||n.includes(t)||n.includes(i))return s;if(s.clientHeight<=s.scrollHeight+1&&(n.includes(i)||n.includes(e)))return s;if(s.clientWidth<=s.scrollWidth+1&&(n.includes(t)||n.includes(e)))return s;s=s.parentNode}return r},t.getScrollbarWidth=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;void 0===E&&(E=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;const t=e.createElement("div");t.style.height="200px",t.style.width="100%";const r=e.createElement("div");(0,i.isSafari)()&&!(0,i.isMobileBrowser)()&&r.classList.add("htScrollbarSafariTest");r.style.boxSizing="content-box",r.style.height="150px",r.style.left="0px",r.style.overflow="hidden",r.style.position="absolute",r.style.top="0px",r.style.width="200px",r.style.visibility="hidden",r.appendChild(t),(e.body||e.documentElement).appendChild(r);const n=t.getBoundingClientRect().width;r.style.overflow="scroll";let s=t.getBoundingClientRect().width;n===s&&(s=r.clientWidth);return(e.body||e.documentElement).removeChild(r),parseFloat((n-s).toFixed(3))}(e));return E},t.getSelectionEndPosition=function(e){if(e.selectionEnd)return e.selectionEnd;return 0},t.getSelectionText=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;const t=e.document;let r="";e.getSelection?r=e.getSelection().toString():t.selection&&"Control"!==t.selection.type&&(r=t.selection.createRange().text);return r},t.getStyle=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;if(!e)return;if(e===r)return"width"===t?`${r.innerWidth}px`:"height"===t?`${r.innerHeight}px`:void 0;const n=e.style[t];if(""!==n&&void 0!==n)return n;const s=r.getComputedStyle(e);if(""!==s[t]&&void 0!==s[t])return s[t]},t.getTrimmingContainer=function(e){const t=e.ownerDocument,r=t.defaultView;let n=e.parentNode;for(;n&&n.style&&t.body!==n;){if("visible"!==n.style.overflow&&""!==n.style.overflow)return n;const e=r.getComputedStyle(n),t=["scroll","hidden","auto"],s=e.getPropertyValue("overflow"),i=e.getPropertyValue("overflow-y"),o=e.getPropertyValue("overflow-x");if(t.includes(s)||t.includes(i)||t.includes(o))return n;n=n.parentNode}return r},t.getWindowScrollLeft=w,t.getWindowScrollTop=m,t.hasAccessToParentWindow=function(e){return!!Object.getPrototypeOf(e.parent)},t.hasClass=function(e,t){if(void 0===e.classList||"string"!=typeof t||""===t)return!1;return e.classList.contains(t)},t.hasHorizontalScrollbar=function(e){if(e instanceof Window)return e.document.body.scrollWidth>e.innerWidth;return e.offsetHeight!==e.clientHeight},t.hasVerticalScrollbar=function(e){if(e instanceof Window)return e.document.body.scrollHeight>e.innerHeight;return e.offsetWidth!==e.clientWidth},t.hasZeroHeight=function(e){const t=e.ownerDocument.defaultView;let r=e;for(;r.parentNode;){if("0px"===r.style.height||"0"===r.style.height)return"hidden"===t.getComputedStyle(r).overflow;r=r.parentNode}return!1},t.index=function(e){let t=0,r=e;if(r.previousSibling)for(;r=r.previousSibling;)t+=1;return t},t.innerHeight=function(e){return e.clientHeight||e.innerHeight},t.innerWidth=function(e){return e.clientWidth||e.innerWidth},t.isChildOf=function(e,t){let r=e.parentNode,n=[];"string"==typeof t?n=e.defaultView?Array.prototype.slice.call(e.querySelectorAll(t),0):Array.prototype.slice.call(e.ownerDocument.querySelectorAll(t),0):n.push(t);for(;null!==r;){if(n.indexOf(r)>-1)return!0;r=r.parentNode}return!1},t.isDetached=function(e){return!e.parentNode},t.isHTMLElement=function(e){var t;const r=null==e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView.Element;return!!(r&&null!==r&&e instanceof r)},t.isInput=y,t.isInternalElement=function(e,t){const r=e.closest(".handsontable");return!!r&&(r.parentNode===t||r===t)},t.isOutsideInput=C,t.isVisible=function e(t){const r=t.ownerDocument.documentElement,n=t.ownerDocument.defaultView;let s=t;for(;s!==r;){if(null===s)return!1;if(s.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(s.host){if(s.host.impl)return e(s.host.impl);if(s.host)return e(s.host);throw new Error("Lost in Web Components world")}return!1}if("none"===n.getComputedStyle(s).display)return!1;s=s.parentNode}return!0},t.makeElementContentEditableAndSelectItsContent=v,t.matchesCSSRules=function(e,t){const{selectorText:r}=t;let n=!1;t.type===CSSRule.STYLE_RULE&&r&&(e.msMatchesSelector?n=e.msMatchesSelector(r):e.matches&&(n=e.matches(r)));return n},t.observeVisibilityChangeOnce=function(e,t){new IntersectionObserver((r,n)=>{r.forEach(r=>{r.isIntersecting&&null!==e.offsetParent&&(t(),n.unobserve(e))})},{root:e.ownerDocument.body}).observe(e)},t.offset=function(e){const t=e.ownerDocument,r=t.defaultView,n=t.documentElement;let s,i,o,a=e;s=a.offsetLeft,i=a.offsetTop,o=a;for(;(a=a.offsetParent)&&a!==t.body&&"offsetLeft"in a;)s+=a.offsetLeft,i+=a.offsetTop,o=a;o&&"fixed"===o.style.position&&(s+=r.pageXOffset||n.scrollLeft,i+=r.pageYOffset||n.scrollTop);return{left:s,top:i}},t.outerHeight=function(e){return e.getBoundingClientRect().height},t.outerWidth=function(e){return e.offsetWidth},t.overlayContainsElement=function(e,t,r){const n=r.parentElement.querySelector(`.ht_clone_${e}`);return n?n.contains(t):null},t.removeAttribute=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];"string"==typeof t?t=t.split(" "):t instanceof RegExp&&(t=[t]);const{regexFree:r,regexes:n}=h(t,!0);r.forEach(t=>{""!==t&&e.removeAttribute(t)}),n.forEach(t=>{e.getAttributeNames().forEach(r=>{t.test(r)&&e.removeAttribute(r)})})},t.removeClass=c,t.removeContentEditableFromElementAndDeselect=S,t.removeEvent=function(e,t,r){e.removeEventListener(t,r,!1)},t.removeTextNodes=function e(t){if(3===t.nodeType)t.parentNode.removeChild(t);else if(["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(t.nodeName)>-1){const r=t.childNodes;for(let t=r.length-1;t>=0;t--)e(r[t])}},t.resetCssTransform=function(e){e.style.transform&&""!==e.style.transform&&(e.style.transform="")},t.runWithSelectedContendEditableElement=function(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];v(e,r),t(),S(e,r)},t.selectElementIfAllowed=function(e){C(e.ownerDocument.activeElement)||e.select()},t.setAttribute=d,t.setCaretPosition=function(e,t,r){void 0===r&&(r=t);if(e.setSelectionRange){e.focus();try{e.setSelectionRange(t,r)}catch(n){const s=e.parentNode,i=s.style.display;s.style.display="block",e.setSelectionRange(t,r),s.style.display=i}}},t.setOverlayPosition=function(e,t,r){e.style.transform=`translate3d(${t},${r},0)`},r(52490),r(99356),r(34478),r(29810),r(31143);var n=r(82887),s=r(13618),i=r(55924);function o(e){return Object.getPrototypeOf(e.parent)&&e.frameElement}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;const{ELEMENT_NODE:n,DOCUMENT_FRAGMENT_NODE:s}=Node;let i=e;for(;null!=i&&i!==r;){const{nodeType:e,nodeName:r}=i;if(e===n&&(t.includes(r)||t.includes(i)))return i;const{host:o}=i;i=o&&e===s?o:i.parentNode}return null}function l(e){return e&&e.length?e.filter(e=>!!e):[]}function h(e,t){if(!e||!e.length)return t?{regexFree:[],regexes:[]}:[];const r=[],n=[];return n.push(...e.filter(e=>{const n=e instanceof RegExp;return n&&t&&r.push(e),!n})),t?{regexFree:n,regexes:r}:n}function u(e,t){"string"==typeof t&&(t=t.split(" ")),(t=l(t)).length>0&&e.classList.add(...t)}function c(e,t){"string"==typeof t?t=t.split(" "):t instanceof RegExp&&(t=[t]);let{regexFree:r,regexes:n}=h(t,!0);r=l(r),r.length>0&&e.classList.remove(...r),n.forEach(t=>{e.classList.forEach(r=>{t.test(r)&&e.classList.remove(r)})})}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;Array.isArray(t)||(t=[[t,r]]),t.forEach(t=>{Array.isArray(t)&&""!==t[0]&&e.setAttribute(...t)})}function g(e){let t;for(;t=e.lastChild;)e.removeChild(t)}const p=t.HTML_CHARACTERS=/(<(.*)>|&(.*);)/;function f(e,t){const r=e.firstChild;r&&3===r.nodeType&&null===r.nextSibling?r.textContent=t:(g(e),e.appendChild(e.ownerDocument.createTextNode(t)))}function m(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).scrollY}function w(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).scrollX}let E;function y(e){return e&&(["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function C(e){return y(e)&&!1===e.hasAttribute("data-hot-input")}function v(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const n=e.ownerDocument,i=n.createRange(),o=n.defaultView.getSelection();d(e,"contenteditable",!0),r&&d(e,...(0,s.A11Y_HIDDEN)()),t&&u(e,"invisibleSelection"),i.selectNodeContents(e),o.removeAllRanges(),o.addRange(i)}function S(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=e.ownerDocument.defaultView.getSelection();e.hasAttribute("aria-hidden")&&e.removeAttribute("aria-hidden"),r.removeAllRanges(),t&&c(e,"invisibleSelection"),e.removeAttribute("contenteditable")}},6105:(e,t)=>{"use strict";t.__esModule=!0,t.parse=function(e){const t=[[""]];if(0===e.length)return t;let i,o=0,a=0;for(;e.length>0&&i!==e.length;)if(i=e.length,e.match(s))e=e.replace(s,""),o+=1,t[a][o]="";else if(e.match(r))e=e.replace(r,""),o=0,a+=1,t[a]=[""];else{let r="";if(e.startsWith('"')){let t=0,n=!0;for(;n;){const s=e.slice(0,1);'"'===s&&(t+=1),r+=s,(0===(e=e.slice(1)).length||e.match(/^[\t\r\n]/)&&t%2==0)&&(n=!1)}r=r.replace(/^"/,"").replace(/"$/,"").replace(/["]*/g,e=>new Array(Math.floor(e.length/2)).fill('"').join(""))}else{const t=e.match(n);r=t?t[0]:"",e=e.slice(r.length)}t[a][o]=r}return t},t.stringify=function(e){let t,r,n,s,i,o="";for(t=0,r=e.length;t<r;t+=1){for(s=e[t].length,n=0;n<s;n+=1)n>0&&(o+="\t"),i=e[t][n],"string"==typeof i?i.indexOf("\n")>-1?o+=`"${i.replace(/"/g,'""')}"`:o+=i:o+=null==i?"":i;t!==r-1&&(o+="\n")}return o};const r=/^(\r\n|\n\r|\r|\n)/,n=/^[^\t\r\n]+/,s=/^\t/},6224:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(42660)),i=n(r(56300)),o=n(r(80595)),a=r(21389),l=r(82175);class h extends s.default{constructor(e,t,r,n){super(e,t,r,n,l.CLONE_TOP_INLINE_START_CORNER)}}(0,a.mixin)(h,i.default),(0,a.mixin)(h,o.default);t.default=h},6229:()=>{},6232:(e,t,r)=>{"use strict";t.__esModule=!0,r(99356);var n=r(53076),s=r(40785);class i extends n.PhysicalIndexToValueMap{constructor(){super(arguments.length>0&&void 0!==arguments[0]&&arguments[0])}getHiddenIndexes(){return(0,s.arrayReduce)(this.getValues(),(e,t,r)=>(t&&e.push(r),e),[])}}t.HidingMap=i},6329:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostLeft",callback(e){const{selection:t,columnIndexMapper:r}=e,{highlight:n,from:s,to:i}=e.getSelectedRangeActive(),o=n.isHeader()&&t.isSelectedByColumnHeader();if(n.isCell()||o){const a=r.getNearestNotHiddenIndex(...e.isRtl()?[e.countCols()-1,-1]:[0,1]),l=s.clone();l.col=n.col,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,n.clone()),o&&t.selectedByColumnHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(i.row,a)),t.markEndSource()}}}},6396:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490);var s=r(6083),i=r(21389),o=n(r(50496)),a=r(73029);function l(e,t,r){(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,r)}function h(e,t){return e.get(c(e,t))}function u(e,t,r){return e.set(c(e,t),r),r}function c(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var d=new WeakMap,g=new WeakMap,p=new WeakMap,f=new WeakMap,m=new WeakMap,w=new WeakMap,E=new WeakMap,y=new WeakMap;class C{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,r){var n=this;l(this,d,void 0),l(this,g,void 0),l(this,p,!1),l(this,f,null),l(this,m,void 0),l(this,w,void 0),l(this,E,!0),l(this,y,new a.EditorResizeObserver),u(d,this,e),u(g,this,r),u(p,this,t),u(m,this,this.createEditor()),u(w,this,h(m,this).style),h(y,this).setObservedElement(this.getInputElement()),h(y,this).addLocalHook("resize",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.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 r=this.getInputElement();r.style.width=`${e}px`,r.style.height=`${t}px`}}getSize(){return{width:(0,s.outerWidth)(this.getInputElement()),height:(0,s.outerHeight)(this.getInputElement())}}observeSize(){h(y,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",u(E,this,!1)}hide(){h(y,this).unobserve(),h(E,this)||(h(w,this).display="none"),u(E,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",u(f,this,h(d,this).createElement("div")),h(f,this).setAttribute("dir",h(p,this)?"rtl":"ltr"),(0,s.addClass)(h(f,this),C.CLASS_EDITOR_CONTAINER),h(g,this).appendChild(h(f,this)),(0,s.addClass)(e,C.CLASS_EDITOR),(0,s.addClass)(t,C.CLASS_INPUT),t.setAttribute("data-hot-input",!0),e.appendChild(t),h(f,this).appendChild(e),e}getInputElement(){return h(m,this).querySelector(`.${C.CLASS_INPUT}`)}getEditorElement(){return h(m,this)}destroy(){const e=h(f,this)?h(f,this).parentNode:null;h(m,this).parentNode.removeChild(h(m,this)),u(m,this,null),u(w,this,null),h(y,this).destroy(),e&&e.removeChild(h(f,this))}}(0,i.mixin)(C,o.default);t.default=C},6558:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>K});var n,s,i,o,a,l,h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function u(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}
34
34
  /*!
@@ -232,7 +232,7 @@ const F=w(),U=g(),V=(e=>({loadLanguagesInNode:t=>E(t,e)}))($),B=d();let W=(e=>({
232
232
  learn about the migration path.`;class g{constructor(){(0,s.default)(this,"globalBucket",new c.HooksBucket)}static getSingleton(){return p}getBucket(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?(e.pluginHookBucket||(e.pluginHookBucket=new c.HooksBucket),e.pluginHookBucket):this.globalBucket}add(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0;return Array.isArray(t)?(0,i.arrayEach)(t,t=>this.add(e,t,r)):(u.REMOVED_HOOKS.has(e)&&(0,a.warn)((0,o.substitute)(d,{hookName:e,removedInVersion:u.REMOVED_HOOKS.get(e)})),u.DEPRECATED_HOOKS.has(e)&&(0,a.warn)(u.DEPRECATED_HOOKS.get(e)),this.getBucket(r).add(e,t,{orderIndex:n,runOnce:!1})),this}once(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0;return Array.isArray(t)?(0,i.arrayEach)(t,t=>this.once(e,t,r)):this.getBucket(r).add(e,t,{orderIndex:n,runOnce:!0}),this}addAsFixed(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Array.isArray(t)?(0,i.arrayEach)(t,t=>this.addAsFixed(e,t,r)):this.getBucket(r).add(e,t,{initialHook:!0}),this}remove(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this.getBucket(r).remove(e,t)}has(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.getBucket(t).has(e)}run(e,t,r,n,s,i,o,a){{const l=this.getBucket().getHooks(t),u=l?l.length:0;let c=0;if(u)for(;c<u;){if(!l[c]||l[c].skip){c+=1;continue}const u=(0,h.fastCall)(l[c].callback,e,r,n,s,i,o,a);void 0!==u&&(r=u),l[c]&&l[c].runOnce&&this.remove(t,l[c].callback),c+=1}}{const l=this.getBucket(e).getHooks(t),u=l?l.length:0;let c=0;if(u)for(;c<u;){if(!l[c]||l[c].skip){c+=1;continue}const u=(0,h.fastCall)(l[c].callback,e,r,n,s,i,o,a);void 0!==u&&(r=u),l[c]&&l[c].runOnce&&this.remove(t,l[c].callback,e),c+=1}}return r}destroy(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.getBucket(e).destroy()}register(e){this.isRegistered(e)||u.REGISTERED_HOOKS.push(e)}deregister(e){this.isRegistered(e)&&u.REGISTERED_HOOKS.splice(u.REGISTERED_HOOKS.indexOf(e),1)}isDeprecated(e){return u.DEPRECATED_HOOKS.has(e)||u.REMOVED_HOOKS.has(e)}isRegistered(e){return u.REGISTERED_HOOKS.indexOf(e)>=0}getRegistered(){return u.REGISTERED_HOOKS}}t.Hooks=g;const p=new g;t.default=g},18088:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionRight",callback(e){const{selection:t}=e;t.markSource("keyboard"),t.transformStart(0,e.getDirectionFactor()),t.markEndSource()}}},18095:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.depthFirstPreOrder=o;var s=n(r(24300));r(52490),r(99356);const i=t.TRAVERSAL_DF_PRE="DF-pre-order";function o(e,t){let r=e.call(t,this);for(let n=0;n<this.childs.length;n++){if(!1===r)return!1;r=o.call(this.childs[n],e,t)}return r}const a=t.TRAVERSAL_DF_POST="DF-post-order";const l=t.TRAVERSAL_BF="BF";const h=l,u=new Map([[i,o],[a,function e(t,r){for(let n=0;n<this.childs.length;n++){if(!1===e.call(this.childs[n],t,r))return!1}return t.call(r,this)}],[l,function(e,t){const r=[this];!function n(){if(0===r.length)return;const s=r.shift();r.push(...s.childs),!1!==e.call(t,s)&&n()}()}]]);class c{constructor(e){(0,s.default)(this,"data",{}),(0,s.default)(this,"parent",null),(0,s.default)(this,"childs",[]),this.data=e}addChild(e){e.parent=this,this.childs.push(e)}cloneTree(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this;const t=new c({...e.data});for(let r=0;r<e.childs.length;r++)t.addChild(this.cloneTree(e.childs[r]));return t}replaceTreeWith(e){this.data={...e.data},this.childs=[];for(let t=0;t<e.childs.length;t++)this.addChild(e.childs[t])}walkDown(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;if(!u.has(t))throw new Error(`Traversal strategy "${t}" does not exist`);u.get(t).call(this,e,this)}walkUp(e){const t=this,r=n=>{!1!==e.call(t,n)&&null!==n.parent&&r(n.parent)};r(this)}}t.default=c},18101:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(92850),s=r(96357),i=r(42685),o=r(6083);let a=!1;class l extends n.BaseRenderer{constructor(e){super(null,e)}adjust(){const{columnsToRender:e,rowHeadersCount:t}=this.table,r=e+t;for(;this.renderedNodes<r;)this.rootNode.appendChild(this.table.rootDocument.createElement("col")),this.renderedNodes+=1;for(;this.renderedNodes>r;)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)(i.toSingleLine`Performance tip: Handsontable rendered more than 1000 visible columns.\x20
233
233
  Consider limiting the number of rendered columns by specifying the table width and/or\x20
234
234
  turning off the "renderAllColumns" option.`));for(let e=0;e<t;e++){const t=this.table.renderedColumnToSource(e),r=this.table.columnUtils.getHeaderWidth(t);this.rootNode.childNodes[e].style.width=`${r}px`}for(let r=0;r<e;r++){const e=this.table.renderedColumnToSource(r),n=this.table.columnUtils.getWidth(e);this.rootNode.childNodes[r+t].style.width=`${n}px`}const r=this.rootNode.firstChild;r&&(0,o.addClass)(r,"rowHeader")}}t.ColGroupRenderer=l},18334:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(24834);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.Loading=n.Loading},18372:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){const t=[];return{key:"hidden_rows_show",name(){const e=t.length>1?1:0;return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_SHOW_ROW,e)},callback(){var r,n;if(0===t.length)return;let s=t[0],i=t[t.length-1];s=null!==(r=this.rowIndexMapper.getNearestNotHiddenIndex(s-1,-1))&&void 0!==r?r:0,i=null!==(n=this.rowIndexMapper.getNearestNotHiddenIndex(i+1,1))&&void 0!==n?n:this.countRows()-1,e.showRows(t),this.view.adjustElementsSize(),this.render();i-s+1===this.countRows()||this.selectRows(s,i)},disabled:!1,hidden(){const r=(0,n.arrayMap)(e.getHiddenRows(),e=>this.toPhysicalRow(e));if(!this.selection.isSelectedByRowHeader()&&!this.selection.isSelectedByCorner()||r.length<1)return!0;t.length=0;const s=this.getSelectedRangeActive(),i=s.getTopStartCorner().row,o=s.getBottomEndCorner().row,a=this.rowIndexMapper,l=a.getRenderableFromVisualIndex(i),h=a.getRenderableFromVisualIndex(o),u=a.getNotTrimmedIndexes(),c=[];if(i!==o){if(o-i+1>h-l+1){const e=u.slice(i,o+1);c.push(...e.filter(e=>r.includes(e)))}}else if(0===l&&l<i)c.push(...u.slice(0,i));else if(null===l)c.push(...u.slice(0,this.countRows()));else{const e=this.countRows()-1;h===a.getRenderableFromVisualIndex(a.getNearestNotHiddenIndex(e,-1))&&e>o&&c.push(...u.slice(o+1))}return(0,n.arrayEach)(c,e=>{t.push(this.toVisualRow(e))}),0===t.length}}},r(99356),r(34478),r(29810);var n=r(40785),s=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230))},18546:(e,t,r)=>{"use strict";t.__esModule=!0,t.singleScrollStrategy=function(e){return t=>{const r=e.selection.getSelectionSource(),{row:s,col:i}=t,o=()=>{(0,n.scrollWindowToCell)(e.getCell(s,i,!0))};if(s<0&&i>=0)e.scrollViewportTo({col:i},o);else if(i<0&&s>=0)e.scrollViewportTo({row:s},o);else{if("mouse"===r&&(i===e.view.getLastPartiallyVisibleColumn()||s===e.view.getLastPartiallyVisibleRow()))return;e.scrollViewportTo({row:s,col:i},o)}}};var n=r(62147)},18639:(e,t,r)=>{"use strict";function n(e,t,r){s(e,t),t.set(e,r)}function s(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function i(e,t){return e.get(a(e,t))}function o(e,t,r){return e.set(a(e,t),r),r}function a(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}t.__esModule=!0,r(52490);var l=new WeakMap,h=new WeakMap,u=new WeakSet;function c(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;const n=a(u,this,d).call(this,i(l,this),e.row,t);if(null===n)return null;const s=a(u,this,d).call(this,i(h,this),e.col,r);return null===s?null:e.clone().assign({row:n,col:s})}function d(e,t,r){return t<0?t:e.getNearestNotHiddenIndex(t,r)}t.CellRangeToRenderableMapper=class{constructor(e){let{rowIndexMapper:t,columnIndexMapper:r}=e;var i,a;s(i=this,a=u),a.add(i),n(this,l,void 0),n(this,h,void 0),o(l,this,t),o(h,this,r)}toRenderable(e){const t="N-S"===e.getVerticalDirection()?1:-1,r="W-E"===e.getHorizontalDirection()?1:-1,n=a(u,this,c).call(this,e.from,t,r);if(null===n)return null;const s=a(u,this,c).call(this,e.to,-t,-r);if(null===s)return null;const i=e.clone();return i.from=n,i.to=s,i.includes(e.highlight)||(i.highlight=n),i}}},18675:(e,t,r)=>{"use strict";t.__esModule=!0,t.rootComparator=function(e,t){return function(r,s){const[,...i]=r,[,...o]=s;return function r(s){const a=e[s],l=t[s],h=i[s],u=o[s],c=l.multiColumnSorting,d=(c.compareFunctionFactory?c.compareFunctionFactory:(0,n.getCompareFunctionFactory)(l.type))(a,l,c)(h,u);if(d===n.DO_NOT_SWAP){const e=s+1;if(void 0!==t[e])return r(e)}return d}(0)}};var n=r(2520)},18689:(e,t,r)=>{"use strict";t.__esModule=!0,t.valueSetter=function(e,t,r){const{checkedTemplate:s,uncheckedTemplate:i}=this.getCellMeta(t,r),o=(0,n.stringify)(e),a=o===(0,n.stringify)(s),l=o===(0,n.stringify)(i);if(a||l)return a?s:i;return e};var n=r(27727)},18711:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(99356);var s=r(31075),i=r(40785),o=r(4407),a=r(6083),l=n(r(75175)),h=n(r(23861));class u extends l.default{constructor(e,t){var r;super(e,t),r=this,this.dataManager=this.plugin.dataManager,this.collapsedRows=[],this.collapsedRowsStash={stash:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];r.lastCollapsedRows=r.collapsedRows.slice(0),r.expandMultipleChildren(r.lastCollapsedRows,e)},shiftStash:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;null==t&&(t=1/0),(0,i.arrayEach)(r.lastCollapsedRows,(s,i)=>{s>=e&&s<t&&(r.lastCollapsedRows[i]=s+n)})},applyStash:function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];r.collapseMultipleChildren(r.lastCollapsedRows,e),r.lastCollapsedRows=void 0},trimStash:(e,t)=>{(0,o.rangeEach)(e,e+t-1,e=>{const t=this.lastCollapsedRows.indexOf(e);t>-1&&this.lastCollapsedRows.splice(t,1)})}}}collapseChildren(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const n=[];let s=null,o=null,a=null;return isNaN(e)?(s=e,o=this.dataManager.getRowIndex(s)):(s=this.dataManager.getDataObject(e),o=e),this.dataManager.hasChildren(s)&&(0,i.arrayEach)(s.__children,e=>{n.push(this.dataManager.getRowIndex(e))}),a=this.collapseRows(n,!0,!1),r&&this.trimRows(a),t&&this.renderAndAdjust(),-1===this.collapsedRows.indexOf(o)&&this.collapsedRows.push(o),a}collapseMultipleChildren(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const n=[];(0,i.arrayEach)(e,e=>{n.push(...this.collapseChildren(e,!1,!1))}),r&&this.trimRows(n),t&&this.renderAndAdjust()}collapseRow(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.collapseRows([e],t)}collapseRows(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=[];return(0,i.arrayEach)(e,e=>{n.push(e),t&&this.collapseChildRows(e,n)}),r&&this.trimRows(n),n}collapseChildRows(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.dataManager.hasChildren(e)){const r=this.dataManager.getDataObject(e);(0,i.arrayEach)(r.__children,e=>{const r=this.dataManager.getRowIndex(e);t.push(r),this.collapseChildRows(r,t)})}r&&this.trimRows(t)}expandRow(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.expandRows([e],t)}expandRows(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=[];return(0,i.arrayEach)(e,e=>{n.push(e),t&&this.expandChildRows(e,n)}),r&&this.untrimRows(n),n}expandChildRows(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.dataManager.hasChildren(e)){const r=this.dataManager.getDataObject(e);(0,i.arrayEach)(r.__children,e=>{if(!this.isAnyParentCollapsed(e)){const r=this.dataManager.getRowIndex(e);t.push(r),this.expandChildRows(r,t)}})}r&&this.untrimRows(t)}expandChildren(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const n=[];let s=null,o=null,a=null;return isNaN(e)?(s=e,o=this.dataManager.getRowIndex(e)):(s=this.dataManager.getDataObject(e),o=e),this.collapsedRows.splice(this.collapsedRows.indexOf(o),1),this.dataManager.hasChildren(s)&&(0,i.arrayEach)(s.__children,e=>{const t=this.dataManager.getRowIndex(e);n.push(t)}),a=this.expandRows(n,!0,!1),r&&this.untrimRows(a),t&&this.renderAndAdjust(),a}expandMultipleChildren(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const n=[];(0,i.arrayEach)(e,e=>{n.push(...this.expandChildren(e,!1,!1))}),r&&this.untrimRows(n),t&&this.renderAndAdjust()}collapseAll(){const e=this.dataManager.getData(),t=[];(0,i.arrayEach)(e,e=>{this.dataManager.hasChildren(e)&&t.push(e)}),this.collapseMultipleChildren(t),this.renderAndAdjust()}expandAll(){const e=this.dataManager.getData(),t=[];(0,i.arrayEach)(e,e=>{this.dataManager.hasChildren(e)&&t.push(e)}),this.expandMultipleChildren(t),this.renderAndAdjust()}trimRows(e){this.hot.batchExecution(()=>{(0,i.arrayEach)(e,e=>{this.plugin.collapsedRowsMap.setValueAtIndex(e,!0)})},!0)}untrimRows(e){this.hot.batchExecution(()=>{(0,i.arrayEach)(e,e=>{this.plugin.collapsedRowsMap.setValueAtIndex(e,!1)})},!0)}areChildrenCollapsed(e){let t=isNaN(e)?e:this.dataManager.getDataObject(e),r=!0;return null===t&&(t={__children:this.dataManager.data}),this.dataManager.hasChildren(t)&&(0,i.arrayEach)(t.__children,e=>{const t=this.dataManager.getRowIndex(e);if(!this.plugin.collapsedRowsMap.getValueAtIndex(t))return r=!1,!1}),r}isAnyParentCollapsed(e){let t=e;for(;null!==t;){t=this.dataManager.getRowParent(t);const e=this.dataManager.getRowIndex(t);if(this.collapsedRows.indexOf(e)>-1)return!0}return!1}toggleState(e,t){if(t.col>=0)return;const r=this.translateTrimmedRow(t.row);(0,a.hasClass)(e.target,h.default.CSS_CLASSES.button)&&(this.areChildrenCollapsed(r)?this.expandChildren(r):this.collapseChildren(r),(0,s.stopImmediatePropagation)(e))}translateTrimmedRow(e){return this.hot.toPhysicalRow(e)}untranslateTrimmedRow(e){return this.hot.toVisualRow(e)}renderAndAdjust(){this.hot.view.adjustElementsSize(),this.hot.render()}}t.default=u},19026:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){const t=[];return{key:"hidden_columns_show",name(){const e=t.length>1?1:0;return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_SHOW_COLUMN,e)},callback(){var r,n;if(0===t.length)return;let s=t[0],i=t[t.length-1];s=null!==(r=this.columnIndexMapper.getNearestNotHiddenIndex(s-1,-1))&&void 0!==r?r:0,i=null!==(n=this.columnIndexMapper.getNearestNotHiddenIndex(i+1,1))&&void 0!==n?n:this.countCols()-1,e.showColumns(t),this.view.adjustElementsSize(),this.render();i-s+1===this.countCols()||this.selectColumns(s,i)},disabled:!1,hidden(){const r=(0,n.arrayMap)(e.getHiddenColumns(),e=>this.toPhysicalColumn(e));if(!this.selection.isSelectedByColumnHeader()&&!this.selection.isSelectedByCorner()||r.length<1)return!0;t.length=0;const s=this.getSelectedRangeActive(),i=s.getTopStartCorner().col,o=s.getBottomEndCorner().col,a=this.columnIndexMapper,l=a.getRenderableFromVisualIndex(i),h=a.getRenderableFromVisualIndex(o),u=a.getNotTrimmedIndexes(),c=[];if(i!==o){if(o-i+1>h-l+1){const e=u.slice(i,o+1);c.push(...e.filter(e=>r.includes(e)))}}else if(0===l&&l<i)c.push(...u.slice(0,i));else if(null===l)c.push(...u.slice(0,this.countCols()));else{const e=this.countCols()-1;h===a.getRenderableFromVisualIndex(a.getNearestNotHiddenIndex(e,-1))&&e>o&&c.push(...u.slice(o+1))}return(0,n.arrayEach)(c,e=>{t.push(this.toVisualColumn(e))}),0===t.length}}},r(99356),r(34478),r(29810);var n=r(40785),s=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230))},19098:(e,t,r)=>{"use strict";var n=r(19682),s=Function.prototype,i=s.call,o=n&&s.bind.bind(i,i);e.exports=n?o:function(e){return function(){return i.apply(e,arguments)}}},19199:(e,t,r)=>{"use strict";t.__esModule=!0,t.getRegisteredHotInstances=function(e){var t;const r=u(),n=0===r.size?[]:Array.from(null!==(t=r.get(e))&&void 0!==t?t:[]);return new Map(n.map(e=>[e.getPlugin("formulas").sheetId,e]))},t.registerCustomFunctions=g,t.registerEngine=d,t.registerLanguage=p,t.registerNamedExpressions=f,t.setupEngine=function(e){const t=e.getSettings(),r=t[l.PLUGIN_KEY],n=null==r?void 0:r.engine;if(!0===r)return null;if((0,s.isUndefined)(n))return null;var g;if("function"==typeof n.hyperformula||"function"==typeof n)return d(null!==(g=n.hyperformula)&&void 0!==g?g:n,t,e);if("object"==typeof n&&(0,s.isUndefined)(n.hyperformula)){const t=u(),r=c().get(n);return t.has(n)||t.set(n,[]),t.get(n).push(e),r&&r.push(e.guid),n.getConfig().licenseKey||n.updateConfig({licenseKey:h.DEFAULT_LICENSE_KEY}),n.getConfig().leapYear1900===h.DEFAULT_SETTINGS.leapYear1900&&!1!==(0,a.isObjectEqual)(n.getConfig().nullDate,h.DEFAULT_SETTINGS.nullDate)||(0,o.warn)(i.toSingleLine`If you use HyperFormula with Handsontable, keep the default \`leapYear1900\` and \`nullDate\`
235
- settings. Otherwise, HyperFormula's dates may not sync correctly with Handsontable's dates.`),n}return null},t.setupSheet=function(e,t){!(0,s.isUndefined)(t)&&e.doesSheetExist(t)||(t=e.addSheet(t));return t},t.unregisterEngine=function(e,t){if(e){const r=u(),n=r.get(e),s=c(),i=s.get(e);n&&n.includes(t)&&(n.splice(n.indexOf(t),1),0===n.length&&r.delete(e)),i&&i.includes(t.guid)&&(i.splice(i.indexOf(t.guid),1),0===i.length&&(s.delete(e),e.destroy()))}},r(99356),r(34478),r(31143),r(940);var n=r(55585),s=r(27727),i=r(42685),o=r(96357),a=r(21389),l=r(90742),h=r(95519);function u(){const e="engine_relationship",t=(0,n.staticRegister)(l.PLUGIN_KEY);return t.hasItem(e)||t.register(e,new Map),t.getItem(e)}function c(){const e="shared_engine_usage",t=(0,n.staticRegister)(l.PLUGIN_KEY);return t.hasItem(e)||t.register(e,new Map),t.getItem(e)}function d(e,t,r){const n=t[l.PLUGIN_KEY],s=(0,h.getEngineSettingsWithDefaultsAndOverrides)(t),i=u(),o=c();g(e,n.functions),p(e,n.language);const a=e.buildEmpty(s);return i.set(a,[r]),o.set(a,[r.guid]),f(a,n.namedExpressions),a.on("sheetAdded",()=>{a.rebuildAndRecalculate()}),a.on("sheetRemoved",()=>{a.rebuildAndRecalculate()}),a}function g(e,t){t&&t.forEach(t=>{const{name:r,plugin:n,translations:s}=t;try{e.registerFunction(r,n,s)}catch(e){(0,o.warn)(e.message)}})}function p(e,t){if(t){const{langCode:r}=t;try{e.registerLanguage(r,t)}catch(e){(0,o.warn)(e.message)}}}function f(e,t){t&&(e.suspendEvaluation(),t.forEach(t=>{const{name:r,expression:n,scope:s,options:i}=t;try{e.addNamedExpression(r,n,s,i)}catch(e){(0,o.warn)(e.message)}}),e.resumeEvaluation())}},19247:()=>{},19429:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"commentsRemove",name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_REMOVE_COMMENT)},callback(){this.getSelectedRangeActive().forAll((t,r)=>{t>=0&&r>=0&&e.removeCommentAtCell(t,r,!1)}),this.render()},disabled(){const e=this.getSelectedRangeActive();return!!(!e||e.highlight.isHeader()||this.selection.isEntireRowSelected()&&this.selection.isEntireColumnSelected()||0===this.countRenderedRows()||0===this.countRenderedCols())}}};var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230))},19451:(e,t,r)=>{"use strict";var n=r(19098),s=r(82683),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},19648:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(34478),r(29810),r(940);var s=n(r(24300)),i=r(6083),o=r(31075),a=r(40785),l=r(58231),h=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),u=r(44876),c=r(8173),d=r(63470),g=r(5864),p=r(11278),f=r(49890);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,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var E=new WeakSet;class y extends c.BaseComponent{constructor(e,t){super(e,{id:t.id,stateless:!1}),m(this,E),(0,s.default)(this,"name",""),this.name=t.name,this.elements.push(new d.MultipleSelectUI(this.hot)),this.registerHooks()}registerHooks(){this.getMultipleSelectElement().addLocalHook("keydown",e=>w(E,this,C).call(this,e)).addLocalHook("listTabKeydown",e=>this.runLocalHooks("listTabKeydown",e)),this.hot.addHook("modifyFiltersMultiSelectValue",(e,t)=>w(E,this,S).call(this,e,t))}getElements(){const e=this.getMultipleSelectElement();return[e.getSearchInputElement(),e.getSelectAllElement(),e.getClearAllElement(),this.getMultipleSelectElement()]}setState(e){if(this.reset(),e&&e.command.key===g.CONDITION_BY_VALUE){const t=this.getMultipleSelectElement();t.setItems(e.itemsSnapshot),t.setValue(e.args[0]),t.setLocale(e.locale)}}getState(){const e=this.getMultipleSelectElement(),t=e.getItems();return{command:{key:e.isSelectedAllValues()||!t.length?g.CONDITION_NONE:g.CONDITION_BY_VALUE},args:[e.getValue()],itemsSnapshot:t}}updateState(e){const t=(t,r,n,s,i)=>{const[o]=(0,a.arrayFilter)(r,e=>e.name===g.CONDITION_BY_VALUE),l={},c=this.hot.getTranslatedPhrase(h.FILTERS_VALUES_BLANK_CELLS);if(o){const r=s(t,i),h=(0,a.arrayMap)(r,e=>e.value),d=new Map(r.map(e=>[e.value,this.hot.getCellMeta(e.meta.visualRow,e.meta.visualCol)])),f=(0,u.unifyColumnValues)(h);n&&(o.args[0]=n);const m=[],y=(0,u.intersectValues)(f,o.args[0],c,e=>{e.checked&&m.push(e.value),w(E,this,v).call(this,e,d)}),C=e.editedConditionStack.column;l.locale=this.hot.getCellMeta(0,C).locale,l.args=[m],l.command=(0,p.getConditionDescriptor)(g.CONDITION_BY_VALUE),l.itemsSnapshot=y}else l.args=[],l.command=(0,p.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,r,n,s,o)=>{(0,i.addClass)(t.parentNode,"htFiltersMenuValue");const l=this.hot.rootDocument.createElement("div");return(0,i.addClass)(l,"htFiltersMenuLabel"),l.textContent=o,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(),r=t.map(e=>e.value),n=new Map(t.map(e=>[e.value,e.meta])),s=(0,u.unifyColumnValues)(r),i=(0,u.intersectValues)(s,s,e,e=>{w(E,this,v).call(this,e,n)});this.getMultipleSelectElement().setItems(i),super.reset(),this.getMultipleSelectElement().setValue(s);const o=this.hot.getPlugin("filters").getSelectedColumn();null!==o&&this.getMultipleSelectElement().setLocale(this.hot.getCellMeta(0,o.visualIndex).locale)}_getColumnVisibleValues(){const e=this.hot.getPlugin("filters").getSelectedColumn();return null===e?[]:(0,a.arrayMap)(this.hot.getDataAtCol(e.visualIndex),(t,r)=>({value:(0,u.toEmptyString)(t),meta:this.hot.getCellMeta(r,e.visualIndex)}))}}function C(e){(0,l.isKey)(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),(0,o.stopImmediatePropagation)(e))}function v(e,t){this.hot.hasHook("modifyFiltersMultiSelectValue")&&(e.visualValue=this.hot.runHooks("modifyFiltersMultiSelectValue",e.visualValue,t.get(e.value)))}function S(e,t){return"numeric"===t.type?(0,f.getRenderedValue)(e,t):e}t.ValueComponent=y},19682:(e,t,r)=>{"use strict";var n=r(53001);e.exports=!n(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},20022:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300)),i=r(21389),o=r(96645),a=n(r(93236));t.default=class{constructor(e){(0,s.default)(this,"metaCtor",class{}),(0,s.default)(this,"meta",void 0),this.meta=this.metaCtor.prototype,(0,i.extend)(this.meta,(0,a.default)()),this.meta.instance=e}getMetaConstructor(){return this.metaCtor}getMeta(){return this.meta}updateMeta(e){var t;(0,i.extend)(this.meta,e),(0,o.extendByMetaType)(this.meta,{...e,type:null!==(t=e.type)&&void 0!==t?t:this.meta.type},e)}}},20048:(e,t,r)=>{"use strict";t.__esModule=!0,t.createFocusNavigator=function(e){return(0,n.createPaginator)({initialPage:0,size:()=>e.length,onItemSelect:(t,r)=>{const n=e[t];return n instanceof i.MultipleSelectUI?r:!(n.element&&!(0,s.isVisible)(n.element))&&void n.focus()}})};var n=r(43679),s=r(6083),i=r(63470)},20188:(e,t,r)=>{"use strict";t.__esModule=!0,t.timeRenderer=i;var n=r(5022);const s=t.RENDERER_TYPE="time";function i(e,t,r,s,i,o,a){n.textRenderer.apply(this,[e,t,r,s,i,o,a]),t.dir="ltr"}i.RENDERER_TYPE=s},20362:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionRight",callback(e){const{selection:t}=e,{highlight:r}=e.getSelectedRangeActive();t.isSelectedByRowHeader()||t.isSelectedByCorner()||!(r.isCell()||r.isHeader()&&t.isSelectedByColumnHeader())||(t.markSource("keyboard"),t.transformEnd(0,e.getDirectionFactor()),t.markEndSource())}}},20390:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostInlineEnd",callback(e){const{selection:t,columnIndexMapper:r}=e;t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(e.getSelectedRangeActive().highlight.row,r.getNearestNotHiddenIndex(e.countCols()-1,-1))),t.markEndSource()}}},20514:()=>{},20536:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_CLEAR_COLUMN)},callback(e,t){const r=t[0].start.col,n=t[0].end.col;this.countRows()&&this.populateFromArray(0,r,[[null]],Math.max(t[0].start.row,t[0].end.row),n,"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,r)=>{if(e<0||r<0)return!0;const{readOnly:n}=this.getCellMeta(e,r);return!!n||(t=!0,!1)}),!t}}};var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230));const s=t.KEY="clear_column"},20559:(e,t,r)=>{"use strict";t.__esModule=!0,t.registerAllEditors=function(){(0,p.registerEditor)(s.BaseEditor),(0,p.registerEditor)(n.AutocompleteEditor),(0,p.registerEditor)(i.CheckboxEditor),(0,p.registerEditor)(o.DateEditor),(0,p.registerEditor)(a.DropdownEditor),(0,p.registerEditor)(l.HandsontableEditor),(0,p.registerEditor)(h.NumericEditor),(0,p.registerEditor)(u.PasswordEditor),(0,p.registerEditor)(c.SelectEditor),(0,p.registerEditor)(d.TextEditor),(0,p.registerEditor)(g.TimeEditor)};var n=r(50057);t.AutocompleteEditor=n.AutocompleteEditor,t.AUTOCOMPLETE_EDITOR=n.EDITOR_TYPE;var s=r(95484);t.BaseEditor=s.BaseEditor,t.BASE_EDITOR=s.EDITOR_TYPE;var i=r(14864);t.CheckboxEditor=i.CheckboxEditor,t.CHECKBOX_EDITOR=i.EDITOR_TYPE;var o=r(85689);t.DateEditor=o.DateEditor,t.DATE_EDITOR=o.EDITOR_TYPE;var a=r(8116);t.DropdownEditor=a.DropdownEditor,t.DROPDOWN_EDITOR=a.EDITOR_TYPE;var l=r(69488);t.HandsontableEditor=l.HandsontableEditor,t.HANDSONTABLE_EDITOR=l.EDITOR_TYPE;var h=r(12638);t.NumericEditor=h.NumericEditor,t.NUMERIC_EDITOR=h.EDITOR_TYPE;var u=r(41736);t.PasswordEditor=u.PasswordEditor,t.PASSWORD_EDITOR=u.EDITOR_TYPE;var c=r(25589);t.SelectEditor=c.SelectEditor,t.SELECT_EDITOR=c.EDITOR_TYPE;var d=r(91698);t.TextEditor=d.TextEditor,t.TEXT_EDITOR=d.EDITOR_TYPE;var g=r(78072);t.TimeEditor=g.TimeEditor,t.TIME_EDITOR=g.EDITOR_TYPE;var p=r(69264);t.registerEditor=p.registerEditor,t.RegisteredEditor=p.RegisteredEditor,t._getEditorInstance=p._getEditorInstance,t.getEditor=p.getEditor,t.getEditorInstance=p.getEditorInstance,t.getRegisteredEditorNames=p.getRegisteredEditorNames,t.getRegisteredEditors=p.getRegisteredEditors,t.hasEditor=p.hasEditor},20620:()=>{},20635:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"borders:top",name(){let e=this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_BORDERS_TOP);return(0,s.checkSelectionBorders)(this,"top")&&(e=(0,s.markSelected)(e)),e},callback(t,r){const n=(0,s.checkSelectionBorders)(this,"top");e.prepareBorder(r,"top",n)}}};var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),s=r(36053)},20637:(e,t,r)=>{"use strict";var n=r(2382),s=r(98363),i=r(70906);e.exports=n?function(e,t,r){return s.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},20678:()=>{},20745:()=>{},20954:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(34478),r(66133);var s=n(r(24300)),i=r(21389),o=r(40785);t.default=class{constructor(e){(0,s.default)(this,"plugin",void 0),(0,s.default)(this,"mergedCellsCollection",void 0),(0,s.default)(this,"currentFillData",null),this.plugin=e,this.mergedCellsCollection=this.plugin.mergedCellsCollection}getDirection(e,t){let r=null;return r=t[0]===e[0]&&t[1]===e[1]&&t[3]===e[3]?"down":t[2]===e[2]&&t[1]===e[1]&&t[3]===e[3]?"up":t[1]===e[1]&&t[2]===e[2]?"right":"left",r}snapDragArea(e,t,r,n){const s=t.slice(0),i=this.getAutofillSize(e,t,r),[o,a,l,h]=e,u=["up","down"].indexOf(r)>-1?l-o+1:h-a+1,c=i-Math.floor(i/u)*u,d=this.getFarthestCollection(e,t,r,n);if(d)if("down"===r){const e=d.row+d.rowspan-o-c;s[2]+e>=this.plugin.hot.countRows()?s[2]-=c:s[2]+=c?e:0}else if("right"===r){const e=d.col+d.colspan-a-c;s[3]+e>=this.plugin.hot.countCols()?s[3]-=c:s[3]+=c?e:0}else if("up"===r){const e=l-c-d.row+1;s[0]+e<0?s[0]+=c:s[0]-=c?e:0}else if("left"===r){const e=h-c-d.col+1;s[1]+e<0?s[1]+=c:s[1]-=c?e:0}return this.updateCurrentFillCache({baseArea:e,dragDirection:r,foundMergedCells:n,fillSize:i,dragArea:s,cycleLength:u}),s}updateCurrentFillCache(e){this.currentFillData||(this.currentFillData={}),(0,i.extend)(this.currentFillData,e)}getAutofillSize(e,t,r){const[n,s,i,o]=e,[a,l,h,u]=t;switch(r){case"up":return n-a;case"down":return h-i;case"left":return s-l;case"right":return u-o;default:return null}}getDragArea(e,t,r){const[n,s,i,o]=e,[a,l,h,u]=t;switch(r){case"up":return[a,l,n-1,o];case"down":{const e=this.mergedCellsCollection.get(h,o);return[i+1,s,h+(e?e.rowspan-1:0),o]}case"left":return[a,l,i,s-1];case"right":{const e=this.mergedCellsCollection.get(h,o);return[n,o+(e?e.colspan-1:0),h,u]}default:return null}}getFarthestCollection(e,t,r,n){const[s,i,a,l]=e,h=["up","down"].indexOf(r)>-1,u=h?a:l,c=h?s:i,d=this.getAutofillSize(e,t,r),g=h?a-s+1:l-i+1,p=d-Math.floor(d/g)*g;let f=null,m=null,w=null;switch(r){case"up":f="includesVertically",w=u-p+1;break;case"left":f="includesHorizontally",w=u-p+1;break;case"down":f="includesVertically",w=c+p-1;break;case"right":f="includesHorizontally",w=c+p-1}return(0,o.arrayEach)(n,e=>{e[f](w)&&e.isFarther(m,r)&&(m=e)}),m}recreateAfterDataPopulation(e){if(!this.currentFillData)return;const t=this.getRangeFromChanges(e),r=this.currentFillData.foundMergedCells,n=this.currentFillData.dragDirection,s=(e,r)=>{switch(n){case"up":return e.row-r>=t.from.row;case"down":return e.row+e.rowspan-1+r<=t.to.row;case"left":return e.col-r>=t.from.column;case"right":return e.col+e.colspan-1+r<=t.to.column;default:return null}};let i=0,o=null,a=1;do{for(let e=0;e<r.length;e+=1){if(o=r[e],i=a*this.currentFillData.cycleLength,s(o,i))switch(n){case"up":this.plugin.mergedCellsCollection.add({row:o.row-i,rowspan:o.rowspan,col:o.col,colspan:o.colspan},!0);break;case"down":this.plugin.mergedCellsCollection.add({row:o.row+i,rowspan:o.rowspan,col:o.col,colspan:o.colspan},!0);break;case"left":this.plugin.mergedCellsCollection.add({row:o.row,rowspan:o.rowspan,col:o.col-i,colspan:o.colspan},!0);break;case"right":this.plugin.mergedCellsCollection.add({row:o.row,rowspan:o.rowspan,col:o.col+i,colspan:o.colspan},!0)}e===r.length-1&&(a+=1)}}while(s(o,i));this.currentFillData=null,this.plugin.hot.render(),r.length>0&&this.plugin.ifChromeForceRepaint()}getRangeFromChanges(e){const t={min:null,max:null},r={min:null,max:null};return(0,o.arrayEach)(e,e=>{const n=e[0],s=this.plugin.hot.propToCol(e[1]);(null===t.min||n<t.min)&&(t.min=n),(null===t.max||n>t.max)&&(t.max=n),(null===r.min||s<r.min)&&(r.min=s),(null===r.max||s>r.max)&&(r.max=s)}),{from:{row:t.min,column:r.min},to:{row:t.max,column:r.max}}}dragAreaOverlapsCollections(e,t,r){const n=this.getDragArea(e,t,r),[s,i,o,a]=n,l=this.plugin.hot._createCellCoords(s,i),h=this.plugin.hot._createCellCoords(o,a),u=this.plugin.hot._createCellRange(l,l,h);if(0===this.mergedCellsCollection.getWithinRange(u,!0).length)return!1;const c=this.mergedCellsCollection.getWithinRange(u,!1);return 0===c.length||("up"===r||"down"===r?!c.every(e=>{let{colspan:t}=e;return t===u.getWidth()}):!c.every(e=>{let{rowspan:t}=e;return t===u.getHeight()}))}}},21177:e=>{"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},21389:(e,t,r)=>{"use strict";t.__esModule=!0,t.assignObjectDefaults=function e(t,r){if("object"!=typeof t||null===t)return r;if("object"!=typeof r||null===r)return t;const n={};return Object.keys(r).forEach(s=>{"object"!=typeof r[s]||null===r[s]||Array.isArray(r[s])?n[s]=a(t,s)&&void 0!==t[s]?t[s]:r[s]:n[s]=e(t[s],r[s])}),Object.keys(t).forEach(e=>{a(n,e)||(n[e]=t[e])}),n},t.clone=function(e){const t={};return o(e,(e,r)=>{t[r]=e}),t},t.createObjectPropListener=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";const r=`_${t}`,n={_touched:!1,[r]:e,isTouched(){return this._touched}};return Object.defineProperty(n,t,{get(){return this[r]},set(e){this._touched=!0,this[r]=e},enumerable:!0,configurable:!0}),n},t.deepClone=s,t.deepExtend=function e(t,r){o(r,(n,s)=>{r[s]&&"object"==typeof r[s]?(t[s]||(Array.isArray(r[s])?t[s]=[]:"[object Date]"===Object.prototype.toString.call(r[s])?t[s]=r[s]:t[s]={}),e(t[s],r[s])):t[s]=r[s]})},t.deepObjectSize=function(e){if(!i(e))return 0;const t=function(e){let r=0;return i(e)?o(e,(e,n)=>{"__children"!==n&&(r+=t(e))}):r+=1,r};return t(e)},t.defineGetter=function(e,t,r,n){n.value=r,n.writable=!1!==n.writable,n.enumerable=!1!==n.enumerable,n.configurable=!1!==n.configurable,Object.defineProperty(e,t,n)},t.duckSchema=function e(t){let r;Array.isArray(t)?r=t.length?new Array(t.length).fill(null):[]:(r={},o(t,(t,n)=>{"__children"!==n&&(t&&"object"==typeof t&&!Array.isArray(t)?r[n]=e(t):Array.isArray(t)?t.length&&"object"==typeof t[0]&&!Array.isArray(t[0])?r[n]=[e(t[0])]:r[n]=[]:r[n]=null)}));return r},t.extend=function(e,t,r){const n=Array.isArray(r);return o(t,(t,s)=>{(!1===n||r.includes(s))&&(e[s]=t)}),e},t.getProperty=function(e,t){const r=t.split(".");let n=e;return o(r,e=>{if(n=n[e],void 0===n)return n=void 0,!1}),n},t.hasOwnProperty=a,t.inherit=function(e,t){return t.prototype.constructor=t,e.prototype=new t,e.prototype.constructor=e,e},t.isObject=i,t.isObjectEqual=function(e,t){return JSON.stringify(e)===JSON.stringify(t)},t.mixin=function(e){e.MIXINS||(e.MIXINS=[]);for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];return(0,n.arrayEach)(r,t=>{e.MIXINS.push(t.MIXIN_NAME),o(t,(t,r)=>{if(void 0!==e.prototype[r])throw new Error(`Mixin conflict. Property '${r}' already exist and cannot be overwritten.`);if("function"==typeof t)e.prototype[r]=t;else{const n=function(e,t){const r=`_${e}`;return function(){return void 0===this[r]&&(this[r]=(e=>{let t=e;return(Array.isArray(t)||i(t))&&(t=s(t)),t})(t)),this[r]}},o=function(e){const t=`_${e}`;return function(e){this[t]=e}};Object.defineProperty(e.prototype,r,{get:n(r,t),set:o(r),configurable:!0})}})}),e},t.objectEach=o,t.setProperty=function(e,t,r){if("string"!=typeof t)return;const n=t.split(".");let s=e;n.forEach((e,t)=>{"__proto__"!==e&&"constructor"!==e&&"prototype"!==e&&(t!==n.length-1?(a(s,e)||(s[e]={}),s=s[e]):s[e]=r)})},r(52490),r(99356),r(58584),r(34478),r(31143);var n=r(40785);function s(e){return"object"==typeof e?JSON.parse(JSON.stringify(e)):e}function i(e){return"[object Object]"===Object.prototype.toString.call(e)}function o(e,t){for(const r in e)if((!e.hasOwnProperty||e.hasOwnProperty&&Object.prototype.hasOwnProperty.call(e,r))&&!1===t(e[r],r,e))break;return e}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},21422:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300));t.FixedPageSizeStrategy=class{constructor(){(0,s.default)(this,"pageSize",1),(0,s.default)(this,"totalItems",0),(0,s.default)(this,"totalPages",0)}calculate(e){let{pageSize:t,totalItems:r}=e;this.pageSize=Math.max(t,1),this.totalItems=r,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}}}},21439:(e,t,r)=>{"use strict";var n=r(19098),s=Error,i=n("".replace),o=String(new s("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,l=a.test(o);e.exports=function(e,t){if(l&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},21574:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(79956)),i=r(6083);class o extends s.default{build(){super.build(),(0,i.addClass)(this._element,"ht__manualRowMove--guideline")}}t.default=o},21639:(e,t,r)=>{"use strict";var n=r(72820),s=r(77439),i=r(70792),o=r(90501),a=r(21177),l=r(64276),h=r(91509),u=r(33973),c=r(99793),d=r(47150),g=r(14483),p=!u&&!d("filter",function(){}),f=!u&&!p&&g("filter",TypeError),m=u||p||f,w=l(function(){for(var e,t,r=this.iterator,n=this.predicate,i=this.next;;){if(e=o(s(i,r)),this.done=!!e.done)return;if(t=e.value,h(r,n,[t,this.counter++],!0))return t}});n({target:"Iterator",proto:!0,real:!0,forced:m},{filter:function(e){o(this);try{i(e)}catch(e){c(this,"throw",e)}return f?s(f,this,e):new w(a(this),{predicate:e})}})},21769:(e,t,r)=>{"use strict";var n=r(19098),s=r(53001),i=r(44827),o=r(19451),a=r(2382),l=r(10768).CONFIGURABLE,h=r(88932),u=r(62579),c=u.enforce,d=u.get,g=String,p=Object.defineProperty,f=n("".slice),m=n("".replace),w=n([].join),E=a&&!s(function(){return 8!==p(function(){},"length",{value:8}).length}),y=String(String).split("String"),C=e.exports=function(e,t,r){"Symbol("===f(g(t),0,7)&&(t="["+m(g(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!o(e,"name")||l&&e.name!==t)&&(a?p(e,"name",{value:t,configurable:!0}):e.name=t),E&&r&&o(r,"arity")&&e.length!==r.arity&&p(e,"length",{value:r.arity});try{r&&o(r,"constructor")&&r.constructor?a&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=c(e);return o(n,"source")||(n.source=w(y,"string"==typeof t?t:"")),e};Function.prototype.toString=C(function(){return i(this)&&d(this).source||h(this)},"toString")},21860:()=>{},22063:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(14864),s=r(37864),i=r(83247);const o=t.CELL_TYPE="checkbox";t.CheckboxCellType={CELL_TYPE:o,editor:n.CheckboxEditor,renderer:s.checkboxRenderer,valueSetter:i.valueSetter}},22199:(e,t,r)=>{"use strict";t.__esModule=!0,t.loadingContent=function(e){let{id:t,icon:r,title:s,description:i}=e;return`\n <div class="${n.LOADING_CLASS_NAME}__content">\n <i class="${n.LOADING_CLASS_NAME}__icon">${r}</i>\n <div class="${n.LOADING_CLASS_NAME}__text">\n <h2 id="${t}-${n.PLUGIN_KEY}-title" class="${n.LOADING_CLASS_NAME}__title">${s}</h2>\n ${i?`<p id="${t}-${n.PLUGIN_KEY}-description" class="${n.LOADING_CLASS_NAME}__description">${i}</p>`:""}\n </div>\n </div>\n `};var n=r(24834)},22208:(e,t,r)=>{"use strict";var n=r(79268);e.exports=function(e){return n(e.length)}},22350:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356);var s=n(r(24300)),i=r(53383),o=r(40785),a=r(4407),l=r(96357),h=r(6083),u=r(31075),c=r(88453),d=r(13618);function g(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function p(e,t){return e.get(m(e,t))}function f(e,t,r){return e.set(m(e,t),r),r}function m(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const w=t.PLUGIN_KEY="collapsibleColumns",E=t.PLUGIN_PRIORITY=290,y=["nestedHeaders"],C="collapsibleIndicator",v=w,S=new Map([["collapse",{hideColumn:!0,beforeHook:"beforeColumnCollapse",afterHook:"afterColumnCollapse"}],["expand",{hideColumn:!1,beforeHook:"beforeColumnExpand",afterHook:"afterColumnExpand"}]]);var R=new WeakMap,T=new WeakSet;class N extends i.BasePlugin{constructor(){var e,t;super(...arguments),g(e=this,t=T),t.add(e),(0,s.default)(this,"nestedHeadersPlugin",null),(0,s.default)(this,"headerStateManager",null),function(e,t,r){g(e,t),t.set(e,r)}(this,R,null)}static get PLUGIN_KEY(){return w}static get PLUGIN_PRIORITY(){return E}static get PLUGIN_DEPS(){return["plugin:NestedHeaders"]}static get SETTING_KEYS(){return[w,...y]}isEnabled(){return!!this.hot.getSettings()[w]}enablePlugin(){var e=this;if(this.enabled)return;const{nestedHeaders:t}=this.hot.getSettings();t||(0,l.warn)("You need to configure the Nested Headers plugin in order to use collapsible headers."),f(R,this,this.hot.columnIndexMapper.createAndRegisterIndexMap(this.pluginName,"hiding")),this.nestedHeadersPlugin=this.hot.getPlugin("nestedHeaders"),this.headerStateManager=this.nestedHeadersPlugin.getStateManager(),this.addHook("init",()=>m(T,this,b).call(this)),this.addHook("afterLoadData",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return m(T,e,M).call(e,...r)}),this.addHook("afterGetColHeader",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return m(T,e,_).call(e,...r)}),this.addHook("beforeOnCellMouseDown",(e,t,r)=>m(T,this,A).call(this,e,t,r)),this.registerShortcuts(),super.enablePlugin(),this.updatePlugin()}updatePlugin(){if(this.hot.view){if(!this.nestedHeadersPlugin.detectedOverlappedHeaders){const{collapsibleColumns:e}=this.hot.getSettings();"boolean"==typeof e?this.headerStateManager.mapState(e=>({collapsible:e.origColspan>1})):Array.isArray(e)&&(this.headerStateManager.mapState(()=>({collapsible:!1})),this.headerStateManager.mergeStateWith(e))}super.updatePlugin()}}disablePlugin(){this.hot.columnIndexMapper.unregisterMap(this.pluginName),f(R,this,null),this.nestedHeadersPlugin=null,this.unregisterShortcuts(),this.clearButtons(),super.disablePlugin()}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Enter"]],callback:()=>{var e;const{row:t,col:r}=this.hot.getSelectedRangeActive().highlight,{collapsible:n,isCollapsed:s,columnIndex:i}=null!==(e=this.headerStateManager.getHeaderTreeNodeData(t,r))&&void 0!==e?e:{};if(n)return s?this.expandSection({row:t,col:i}):this.collapseSection({row:t,col:i}),!1},runOnlyIf:()=>{var e,t;return(null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.isSingle())&&(null===(t=this.hot.getSelectedRangeActive())||void 0===t?void 0:t.highlight.isHeader())},group:v,relativeToGroup:c.EDITOR_EDIT_GROUP,position:"before"})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(v)}clearButtons(){if(!this.hot.view)return;const e=this.hot.view._wt.getSetting("columnHeaders").length,t=this.hot.view._wt.wtTable.THEAD,r=this.hot.view._wt.wtOverlays.topOverlay.clone.wtTable.THEAD,n=this.hot.view._wt.wtOverlays.topInlineStartCornerOverlay?this.hot.view._wt.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.THEAD:null,s=function(e){e&&e.parentNode.removeChild(e)};(0,a.rangeEach)(0,e-1,e=>{const i=t.childNodes[e],o=r.childNodes[e],l=n?n.childNodes[e]:null;(0,a.rangeEach)(0,i.childNodes.length-1,e=>{let t=i.childNodes[e].querySelector(`.${C}`);s(t),o&&o.childNodes[e]&&(t=o.childNodes[e].querySelector(`.${C}`),s(t)),n&&l&&l.childNodes[e]&&(t=l.childNodes[e].querySelector(`.${C}`),s(t))})},!0)}expandSection(e){this.toggleCollapsibleSection([e],"expand")}collapseSection(e){this.toggleCollapsibleSection([e],"collapse")}toggleAllCollapsibleSections(e){const t=this.headerStateManager.mapNodes(t=>{const{collapsible:r,origColspan:n,headerLevel:s,columnIndex:i,isCollapsed:o}=t;if(!0===r&&n>1&&(o&&"expand"===e||!o&&"collapse"===e))return{row:this.headerStateManager.levelToRowCoords(s),col:i}});this.toggleCollapsibleSection(t,e)}collapseAll(){this.toggleAllCollapsibleSections("collapse")}expandAll(){this.toggleAllCollapsibleSections("expand")}toggleCollapsibleSection(e,t){if(!S.has(t))throw new Error(`Unsupported action is passed (${t}).`);if(!Array.isArray(e))return;const r=(0,o.arrayFilter)(e,e=>{let{row:t}=e;return t<0});let n=r.length>0;(0,o.arrayEach)(r,e=>{var r;let{row:s,col:i}=e;const{collapsible:o,isCollapsed:a}=null!==(r=this.headerStateManager.getHeaderSettings(s,i))&&void 0!==r?r:{};if(!o||a&&"collapse"===t||!a&&"expand"===t)return n=!1,!1});const s=[],i=[];n&&(0,o.arrayEach)(r,e=>{let{row:r,col:n}=e;const{colspanCompensation:o,affectedColumns:a,rollbackModification:l}=this.headerStateManager.triggerNodeModification(t,r,n);o>0&&(i.push(...a),s.push(l))});const a=this.getCollapsedColumns();let l=[];"collapse"===t?l=(0,o.arrayUnique)([...a,...i]):"expand"===t&&(l=(0,o.arrayFilter)(a,e=>!i.includes(e)));const h=S.get(t);if(!1===this.hot.runHooks(h.beforeHook,a,l,n))return void(0,o.arrayEach)(s,e=>{e()});this.hot.batchExecution(()=>{(0,o.arrayEach)(i,e=>{p(R,this).setValueAtIndex(this.hot.toPhysicalColumn(e),h.hideColumn)})},!0);const u=this.getCollapsedColumns().length!==a.length,c=this.hot.getSelectedRangeActive();if("collapse"===t&&u&&c){const{row:e,col:t}=c.highlight;if((this.hot.rowIndexMapper.isHidden(e)||this.hot.columnIndexMapper.isHidden(t))&&i.includes(t)){const r=e>=0?this.hot.rowIndexMapper.getNearestNotHiddenIndex(e,1,!0):e,n=t>=0?this.hot.columnIndexMapper.getNearestNotHiddenIndex(t,1,!0):t;null!==r&&null!==n&&this.hot.selectCell(r,n)}}this.hot.runHooks(h.afterHook,a,l,n,u),this.hot.view.adjustElementsSize(),this.hot.render()}getCollapsedColumns(){return p(R,this).getHiddenIndexes()}destroy(){f(R,this,null),super.destroy()}}function _(e,t,r){var n;const{collapsible:s,origColspan:i,isCollapsed:o}=null!==(n=this.headerStateManager.getHeaderSettings(r,e))&&void 0!==n?n:{},a=s&&i>1&&e>=this.hot.getSettings().fixedColumnsStart,l=this.hot.getSettings().ariaTags;let u=t.querySelector(`.${C}`);var c;((0,h.removeAttribute)(t,[(0,d.A11Y_EXPANDED)("")[0]]),a)?(u||(u=this.hot.rootDocument.createElement("div"),(0,h.addClass)(u,C),t.querySelector("div:first-child").appendChild(u)),(0,h.removeClass)(u,["collapsed","expanded"]),o?((0,h.addClass)(u,"collapsed"),(0,h.fastInnerText)(u,"+"),l&&(0,h.setAttribute)(t,...(0,d.A11Y_EXPANDED)(!1))):((0,h.addClass)(u,"expanded"),(0,h.fastInnerText)(u,"-"),l&&(0,h.setAttribute)(t,...(0,d.A11Y_EXPANDED)(!0))),l&&(0,h.setAttribute)(u,...(0,d.A11Y_HIDDEN)())):null===(c=u)||void 0===c||c.remove()}function A(e,t){(0,h.hasClass)(e.target,C)&&((0,h.hasClass)(e.target,"expanded")?(this.eventManager.fireEvent(e.target,"mouseup"),this.toggleCollapsibleSection([t],"collapse")):(0,h.hasClass)(e.target,"collapsed")&&(this.eventManager.fireEvent(e.target,"mouseup"),this.toggleCollapsibleSection([t],"expand")),(0,u.stopImmediatePropagation)(e))}function b(){this.updatePlugin()}function M(e,t){t||this.updatePlugin()}t.CollapsibleColumns=N},22493:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.createHighlight=function(e){let{...t}=e;return new i.default({className:"fill",border:{width:1,color:"#ff0000"},...t,selectionType:s.HIGHLIGHT_FILL_TYPE})};var s=r(74216),i=n(r(44982))},22546:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(8249),r(31835);var s=n(r(24300));t.FullyVisibleColumnsCalculationType=class{constructor(){(0,s.default)(this,"count",0),(0,s.default)(this,"startColumn",null),(0,s.default)(this,"endColumn",null),(0,s.default)(this,"startPosition",null),(0,s.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedWidth:r,zeroBasedScrollOffset:n,viewportWidth:s,columnWidth:i}=t;r>=n&&r+i<=n+(n>0?s+1:s)&&(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=e),this.endColumn=e)}finalize(e){var t;const{scrollOffset:r,viewportWidth:n,inlineStartOffset:s,zeroBasedScrollOffset:i,totalColumns:o,needReverse:a,startPositions:l,columnWidth:h}=e;if(this.endColumn===o-1&&a)for(this.startColumn=this.endColumn;this.startColumn>0;){const e=l[this.endColumn]+h-l[this.startColumn-1];if(e<=n&&(this.startColumn-=1),e>=n)break}this.startPosition=null!==(t=l[this.startColumn])&&void 0!==t?t:null;const u=r+n-(i>0?n+1:n),c=null===this.startColumn?0:e.getColumnWidth(this.startColumn);u<-1*s||r>l.at(-1)||-1*r-n>-1*c?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,o<this.endColumn&&(this.endColumn=o-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}},22849:(e,t,r)=>{"use strict";var n=r(20637),s=r(21439),i=r(11613),o=Error.captureStackTrace;e.exports=function(e,t,r,a){i&&(o?o(e,t):n(e,"stack",s(r,a)))}},23002:(e,t,r)=>{"use strict";var n=r(19098),s=0,i=Math.random(),o=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},23173:(e,t,r)=>{"use strict";t.__esModule=!0,t.getDragDirectionAndRange=function(e,t,r){let n,s,i;t[0]===e[0]&&t[1]<e[1]?(i="left",n=r(t[0],t[1]),s=r(t[2],e[1]-1)):t[2]===e[2]&&t[0]===e[0]&&t[3]>e[3]?(i="right",n=r(t[0],e[3]+1),s=r(t[2],t[3])):t[0]<e[0]&&t[1]===e[1]?(i="up",n=r(t[0],t[1]),s=r(e[0]-1,t[3])):t[2]>e[2]&&t[1]===e[1]&&(i="down",n=r(e[2]+1,t[1]),s=r(t[2],t[3]));n&&n.normalize();s&&s.normalize();return{directionOfDrag:i,startOfDragCoords:n,endOfDragCoords:s}},t.getMappedFillHandleSetting=function(e){const t={};!0===e?(t.directions=Object.keys(i),t.autoInsertRow=!0):(0,n.isObject)(e)?((0,s.isDefined)(e.autoInsertRow)?e.direction===i.horizontal?t.autoInsertRow=!1:t.autoInsertRow=e.autoInsertRow:t.autoInsertRow=!1,(0,s.isDefined)(e.direction)?t.directions=[e.direction]:t.directions=Object.keys(i)):"string"==typeof e?(t.directions=[e],t.autoInsertRow=!0):(t.directions=[],t.autoInsertRow=!1);return t};var n=r(21389),s=r(27727);const i=t.DIRECTIONS={horizontal:"horizontal",vertical:"vertical"}},23224:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(50575);t.CELL_TYPE=n.CELL_TYPE,t.HandsontableCellType=n.HandsontableCellType},23304:(e,t,r)=>{"use strict";t.__esModule=!0,r(52490),r(34478),r(31143);var n=r(53383),s=r(96832);function i(e,t,r){o(e,t),t.set(e,r)}function o(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function a(e,t,r){return e.set(h(e,t),r),r}function l(e,t){return e.get(h(e,t))}function h(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const u=t.PLUGIN_KEY="stretchColumns",c=t.PLUGIN_PRIORITY=155;var d=new WeakMap,g=new WeakMap,p=new WeakMap,f=new WeakSet;class m extends n.BasePlugin{constructor(){var e,t;super(...arguments),o(e=this,t=f),t.add(e),i(this,d,new s.StretchCalculator(this.hot)),i(this,g,null),i(this,p,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 u}static get PLUGIN_PRIORITY(){return c}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(p,this).observe(this.hot.rootElement),this.addHook("beforeRender",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return h(f,e,E).call(e,...r)}),this.addHook("modifyColWidth",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return h(f,e,w).call(e,...r)},10),super.enablePlugin())}updatePlugin(){l(d,this).useStrategy(this.hot.getSettings().stretchH),super.updatePlugin()}disablePlugin(){super.disablePlugin(),l(p,this).unobserve(this.hot.rootElement)}getColumnWidth(e){return l(d,this).getStretchedWidth(e)}destroy(){l(p,this).disconnect(),a(p,this,null),a(d,this,null),super.destroy()}}function w(e,t,r){if(r===this.pluginName)return;const n=this.getColumnWidth(t);return"number"==typeof n?n:e}function E(e){e&&l(d,this).refreshStretching()}t.StretchColumns=m},23451:(e,t,r)=>{"use strict";t.__esModule=!0,t.condition=o;var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),s=r(11278);const i=t.CONDITION_NAME="gte";function o(e,t){let[r]=t,n=r;return"numeric"===e.meta.type&&(n=parseFloat(n,10)),e.value>=n}(0,s.registerCondition)(i,o,{name:n.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL,inputsCount:1,showOperators:!0})},23624:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(6083),s=r(31075),i=r(21389),o=r(55924),a=r(2029);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 r=this,n=this.wot.rootDocument.body,i=t.getBoundingClientRect();t.style.display="none",this.eventManager.addEventListener(n,"mousemove",function e(s){var o;((o=s).clientY<Math.floor(i.top)||o.clientY>Math.ceil(i.top+i.height)||o.clientX<Math.floor(i.left)||o.clientX>Math.ceil(i.left+i.width))&&(r.eventManager.removeEventListener(n,"mousemove",e),t.style.display="block")})}createBorders(e){const{rootDocument:t}=this.wot;this.main=t.createElement("div");const r=["top","start","bottom","end","corner"];let n=this.main.style;n.position="absolute",n.top=0,n.left=0;for(let s=0;s<5;s++){const i=r[s],o=t.createElement("div");o.className=`wtBorder ${this.settings.className||""}`,this.settings[i]&&this.settings[i].hide&&(o.className+=" hidden"),n=o.style,n.backgroundColor=this.settings[i]&&this.settings[i].color?this.settings[i].color:e.border.color,n.height=this.settings[i]&&this.settings[i].width?`${this.settings[i].width}px`:`${e.border.width}px`,n.width=this.settings[i]&&this.settings[i].width?`${this.settings[i].width}px`:`${e.border.width}px`,this.main.appendChild(o)}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,o.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&this.createMultipleSelectorHandles(),this.disappear();const{wtTable:s}=this.wot;let i=s.bordersHolder;i||(i=t.createElement("div"),i.className="htBorders",s.bordersHolder=i,s.spreader.appendChild(i)),i.appendChild(this.main)}createMultipleSelectorHandles(){const{rootDocument:e,wtSettings:t}=this.wot,r=t.getSetting("stylesHandler"),n=r.getCSSVariableValue("cell-mobile-handle-size"),s=r.getCSSVariableValue("cell-mobile-handle-border-radius"),o=r.getCSSVariableValue("cell-mobile-handle-background-color"),a=r.getCSSVariableValue("cell-mobile-handle-border-width"),l=r.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,i.objectEach)(h,(e,t)=>{this.selectionHandles.styles.bottomHitArea[t]=e,this.selectionHandles.styles.topHitArea[t]=e});const u=r.isClassicTheme()?{position:"absolute",height:"10px",width:"10px","border-radius":`${parseInt(10/1.5,10)}px`,background:"#F5F5FF",border:"1px solid #4285c8"}:{position:"absolute",height:`${n}px`,width:`${n}px`,"border-radius":`${s}px`,background:`${o}`,border:`${a}px solid ${l}`};(0,i.objectEach)(u,(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 r=this.wot.selectionManager.getAreaSelection();return!(!r.cellRange||e===r.cellRange.to.row&&t===r.cellRange.to.col)}updateMultipleSelectionHandlesPosition(e,t,r,n,s,i){const o=this.wot.wtSettings.getSetting("rtlMode")?"right":"left",{top:a,topHitArea:l,bottom:h,bottomHitArea:u}=this.selectionHandles.styles,c=parseInt(a.borderWidth,10),d=parseInt(a.width,10),g=parseInt(l.width,10),p=this.wot.wtTable.getWidth(),f=this.wot.wtTable.getHeight();a.top=`${parseInt(r-d-1,10)}px`,a[o]=`${parseInt(n-d-1,10)}px`,l.top=`${parseInt(r-g/4*3,10)}px`,l[o]=`${parseInt(n-g/4*3,10)}px`;const m=Math.min(parseInt(n+s,10),p-d-2*c),w=Math.min(parseInt(n+s-g/4,10),p-g-2*c);h[o]=`${m}px`,u[o]=`${w}px`;const E=Math.min(parseInt(r+i,10),f-d-2*c),y=Math.min(parseInt(r+i-g/4,10),f-g-2*c);h.top=`${E}px`,u.top=`${y}px`,this.settings.border.cornerVisible&&this.settings.border.cornerVisible()?(a.display="block",l.display="block",this.isPartRange(e,t)?(h.display="none",u.display="none"):(h.display="block",u.display="block")):(a.display="none",h.display="none",l.display="none",u.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,r,s,i]=e;if(t<0&&s<0||r<0&&i<0)return void this.disappear();const{wtTable:a,rootDocument:l,rootWindow:h}=this.wot,u=t!==s||r!==i,c=this.wot.wtSettings.getSetting("stylesHandler").isClassicTheme(),d=a.getFirstRenderedRow(),g=a.getLastRenderedRow(),p=a.getFirstRenderedColumn(),f=a.getLastRenderedColumn();if(p<0&&f<0||d<0&&g<0)return void this.disappear();let m;if(u){if(r=Math.max(r,p),i=Math.min(i,f),t=Math.max(t,d),s=Math.min(s,g),i<r||s<t)return void this.disappear();m=a.getCell(this.wot.createCellCoords(t,r))}else if(m=a.getCell(this.wot.createCellCoords(t,r)),!(0,n.isHTMLElement)(m))return void this.disappear();const w=u?a.getCell(this.wot.createCellCoords(s,i)):m,E=(0,n.offset)(m),y=u?(0,n.offset)(w):E,C=(0,n.offset)(a.TABLE),v=E.top,S=E.left,R=this.wot.wtSettings.getSetting("rtlMode");let T=0,N=0;if(R){const e=(0,n.outerWidth)(a.TABLE),t=(0,n.outerWidth)(m),r=h.innerWidth-C.left-e;N=S+t-y.left,T=h.innerWidth-S-t-r-1}else N=y.left+(0,n.outerWidth)(w)-S,T=S-C.left-1;if(this.isEntireColumnSelected(t,s)){const e=t,n=this.getDimensionsFromHeader("columns",r,i,e,C);let s=null;n&&([s,T,N]=n),s&&(m=s)}let _=v-C.top-1,A=y.top+(0,n.outerHeight)(w)-v;if(this.isEntireRowSelected(r,i)){const e=r,n=this.getDimensionsFromHeader("rows",t,s,e,C);let i=null;n&&([i,_,A]=n),i&&(m=i)}const b=h.getComputedStyle(m);parseInt(b.borderTopWidth,10)>0&&(_+=1,A=A>0?A-1:0),parseInt(b[R?"borderRightWidth":"borderLeftWidth"],10)>0&&(T+=1,N=N>0?N-1:0);const M=R?"right":"left",I=Math.ceil(this.settings.border.width/2);this.topStyle.top=`${_}px`,this.topStyle[M]=`${T}px`,this.topStyle.width=`${N+I}px`,this.topStyle.display="block",this.startStyle.top=`${_}px`,this.startStyle[M]=`${T}px`,this.startStyle.height=`${A+I}px`,this.startStyle.display="block",this.bottomStyle.top=`${_+A-parseInt(this.bottomStyle.height,10)+I}px`,this.bottomStyle[M]=`${T}px`,this.bottomStyle.width=`${N+I}px`,this.bottomStyle.display="block",this.endStyle.top=`${_}px`,this.endStyle[M]=`${T+N-parseInt(this.endStyle.width,10)+I}px`,this.endStyle.height=`${A+I}px`,this.endStyle.display="block";let O=this.settings.border.cornerVisible;O="function"==typeof O?O(this.settings.layerLevel):O;const x=this.wot.getSetting("onModifyGetCellCoords",s,i,!1,"render");let[P,L]=[s,i];if(x&&Array.isArray(x)&&([,,P,L]=x),(0,o.isMobileBrowser)()||!O||this.isPartRange(P,L))this.cornerStyle.display="none";else{this.cornerStyle.top=_+A+this.cornerCenterPointOffset-this.cornerDefaultStyle.borderWidth+"px",this.cornerStyle[M]=T+N+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,n.getTrimmingContainer)(a.TABLE);const t=e===h;t&&(e=l.documentElement);const r=parseInt(this.cornerDefaultStyle.borderWidth,10)-1,o=Math.ceil(parseInt(this.cornerDefaultStyle.width,10)/2),u=Math.ceil(parseInt(this.cornerDefaultStyle.height,10)/2);if(i===this.wot.getSetting("totalColumns")-1){const s=t?w.getBoundingClientRect().left:w.offsetLeft;let i=!1,a=0;if(R?(a=s-parseInt(this.cornerDefaultStyle.width,10)/2,i=a<0):(a=s+(0,n.outerWidth)(w)+parseInt(this.cornerDefaultStyle.width,10)/2,i=a>=(0,n.innerWidth)(e)),i){const e=Math.floor(T+N+this.cornerCenterPointOffset-o-r);c?(this.cornerStyle[M]=`${e}px`,this.cornerStyle[R?"borderLeftWidth":"borderRightWidth"]=0):this.cornerStyle[M]=e-1+"px"}}if(s===this.wot.getSetting("totalRows")-1){if((t?w.getBoundingClientRect().top:w.offsetTop)+(0,n.outerHeight)(w)+parseInt(this.cornerDefaultStyle.height,10)/2>=(0,n.innerHeight)(e)){const e=Math.floor(_+A+this.cornerCenterPointOffset-u-r);c?(this.cornerStyle.top=`${e}px`,this.cornerStyle.borderBottomWidth=0):this.cornerStyle.top=e-1+"px"}}this.cornerStyle.display="block"}(0,o.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&this.updateMultipleSelectionHandlesPosition(s,i,_,T,N,A)}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,r,s,i){const{wtTable:o}=this.wot,a=o.wtRootElement.parentNode;let l=null,h=null,u=null,c=null,d=null,g=null,p=null,f=null;switch(e){case"rows":l=function(){return o.getRowHeader(...arguments)},h=function(){return(0,n.outerHeight)(...arguments)},u="ht__selection--rows",g="top";break;case"columns":l=function(){return o.getColumnHeader(...arguments)},h=function(){return(0,n.outerWidth)(...arguments)},u="ht__selection--columns",g="left"}if(a.classList.contains(u)){const e=this.wot.getSetting("columnHeaders").length;if(p=l(t,e-s),f=l(r,e-s),!p||!f)return!1;const o=(0,n.offset)(p),a=(0,n.offset)(f);return p&&f&&(c=o[g]-i[g]-1,d=a[g]+h(f)-o[g]),[p,c,d]}return!1}changeBorderStyle(e,t){const r=this[e].style,s=t[e];!s||s.hide?(0,n.addClass)(this[e],"hidden"):((0,n.hasClass)(this[e],"hidden")&&(0,n.removeClass)(this[e],"hidden"),r.backgroundColor=s.color,"top"!==e&&"bottom"!==e||(r.height=`${s.width}px`),"start"!==e&&"end"!==e||(r.width=`${s.width}px`))}changeBorderToDefaultStyle(e){const t=1,r="#000",n=this[e].style;n.backgroundColor=r,n.width=`${t}px`,n.height=`${t}px`}toggleHiddenClass(e,t){this.changeBorderToDefaultStyle(e),t?(0,n.addClass)(this[e],"hidden"):(0,n.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,o.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)}}},23718:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(34478),r(31143);var s=n(r(24300));t.ViewportBaseCalculator=class{constructor(e){(0,s.default)(this,"calculationTypes",[]),(0,s.default)(this,"calculationResults",new Map),this.calculationTypes=e}_initialize(e){this.calculationTypes.forEach(t=>{let[r,n]=t;this.calculationResults.set(r,n),n.initialize(e)})}_process(e,t){this.calculationTypes.forEach(r=>{let[,n]=r;return n.process(e,t)})}_finalize(e){this.calculationTypes.forEach(t=>{let[,r]=t;return r.finalize(e)})}getResultsFor(e){return this.calculationResults.get(e)}}},23720:(e,t,r)=>{"use strict";var n=r(21769),s=r(98363);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),s.f(e,t,r)}},23845:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(74418);t.RENDERER_TYPE=n.RENDERER_TYPE,t.dateRenderer=n.dateRenderer},23861:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=r(40785),i=r(4407),o=r(6083),a=n(r(75175)),l=r(13618);class h extends a.default{static get CSS_CLASSES(){return{indicatorContainer:"ht_nestingLevels",parent:"ht_nestingParent",indicator:"ht_nestingLevel",emptyIndicator:"ht_nestingLevel_empty",button:"ht_nestingButton",expandButton:"ht_nestingExpand",collapseButton:"ht_nestingCollapse"}}constructor(e,t){super(e,t),this.dataManager=this.plugin.dataManager,this.collapsingUI=this.plugin.collapsingUI,this.rowHeaderWidthCache=null}appendLevelIndicators(e,t){const r=this.hot.toPhysicalRow(e),n=this.dataManager.getDataObject(r);if(!n)return;const a=this.dataManager.getRowLevel(r),u=t.getElementsByTagName("DIV")[0],c=u.querySelector("span.rowHeader"),d=u.querySelectorAll('[class^="ht_nesting"]'),g=this.hot.getSettings().ariaTags;if((0,s.arrayEach)(d,e=>{e&&u.removeChild(e)}),(0,o.addClass)(t,h.CSS_CLASSES.indicatorContainer),a){const{rootDocument:e}=this.hot,t=c.cloneNode(!0);u.innerHTML="",(0,i.rangeEach)(0,a-1,()=>{const t=e.createElement("SPAN");(0,o.addClass)(t,h.CSS_CLASSES.emptyIndicator),u.appendChild(t)}),u.appendChild(t)}if(this.dataManager.hasChildren(n)){const e=this.hot.rootDocument.createElement("DIV");g&&(0,o.setAttribute)(e,[(0,l.A11Y_HIDDEN)()]),(0,o.addClass)(t,h.CSS_CLASSES.parent),this.collapsingUI.areChildrenCollapsed(r)?((0,o.addClass)(e,`${h.CSS_CLASSES.button} ${h.CSS_CLASSES.expandButton}`),g&&(0,o.setAttribute)(t,[(0,l.A11Y_EXPANDED)(!1)])):((0,o.addClass)(e,`${h.CSS_CLASSES.button} ${h.CSS_CLASSES.collapseButton}`),g&&(0,o.setAttribute)(t,[(0,l.A11Y_EXPANDED)(!0)])),u.appendChild(e)}}updateRowHeaderWidth(e){let t=e;t||(t=this.dataManager.cache.levelCount);let r=11;if(!this.hot.stylesHandler.isClassicTheme()){r=2*this.hot.stylesHandler.getCSSVariableValue("cell-horizontal-padding")}this.rowHeaderWidthCache=Math.max(50,r+10*t+25),this.hot.render()}}t.default=h},23869:(e,t,r)=>{"use strict";t.__esModule=!0,t.getCellMetas=function(e,t,r,s,i){const o=["visualRow","visualCol","row","col","prop"],a=o.length,l=[];return(0,n.rangeEach)(s,i,s=>{(0,n.rangeEach)(t,r,t=>{const r=e.getCellMeta(t,s);if(Object.keys(r).length!==a){const e=Object.fromEntries(Object.entries(r).filter(e=>{let[t]=e;return!1===o.includes(t)}));l.push([r.visualRow,r.visualCol,e])}})}),l},r(99356),r(89083),r(34478),r(29810);var n=r(4407)},24144:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(26172);t.RENDERER_TYPE=n.RENDERER_TYPE,t.handsontableRenderer=n.handsontableRenderer},24184:(e,t,r)=>{"use strict";t.__esModule=!0,t.registerActions=function(e,t){[n.CellAlignmentAction,s.ColumnMoveAction,i.ColumnSortAction,o.CreateColumnAction,a.CreateRowAction,l.DataChangeAction,h.FiltersAction,u.MergeCellsAction,c.RemoveColumnAction,d.RemoveRowAction,g.RowMoveAction,p.UnmergeCellsAction].forEach(r=>r.startRegisteringEvents(e,t))};var n=r(93961),s=r(1145),i=r(63260),o=r(60564),a=r(98736),l=r(25614),h=r(29891),u=r(90375),c=r(15604),d=r(28816),g=r(39621),p=r(40408)},24234:(e,t,r)=>{"use strict";t.__esModule=!0,t.createPaginatorStrategy=function(e){if(!i.has(e))throw new Error(`Unknown pagination strategy type: ${e}`);return new(i.get(e))},r(52490);var n=r(21422),s=r(82973);const i=new Map([["fixed",n.FixedPageSizeStrategy],["auto",s.AutoPageSizeStrategy]])},24278:(e,t)=>{"use strict";t.__esModule=!0;t.REGISTERED_HOOKS=["afterCellMetaReset","afterChange","afterContextMenuDefaultOptions","beforeContextMenuSetItems","afterDropdownMenuDefaultOptions","beforeDropdownMenuSetItems","afterContextMenuHide","beforeContextMenuShow","afterContextMenuShow","afterCopyLimit","beforeCreateCol","afterColumnSequenceChange","afterCreateCol","beforeCreateRow","afterCreateRow","afterDeselect","afterDestroy","afterDocumentKeyDown","afterDrawSelection","beforeRemoveCellClassNames","beforeCompositionStart","afterGetCellMeta","afterGetColHeader","afterGetRowHeader","afterInit","afterLoadData","afterUpdateData","afterMomentumScroll","afterOnCellCornerMouseDown","afterOnCellCornerDblClick","afterOnCellMouseDown","afterOnCellMouseUp","afterOnCellContextMenu","afterOnCellMouseOver","afterOnCellMouseOut","afterRemoveCol","afterRemoveRow","beforeRenderer","afterRenderer","afterRowSequenceChange","beforeViewportScrollVertically","beforeViewportScrollHorizontally","beforeViewportScroll","afterScrollHorizontally","afterScrollVertically","afterScroll","afterSelection","afterSelectionByProp","afterSelectionEnd","afterSelectionEndByProp","afterSelectionFocusSet","beforeSelectColumns","afterSelectColumns","beforeSelectRows","afterSelectRows","beforeSelectAll","afterSelectAll","afterSetCellMeta","afterRemoveCellMeta","afterSetDataAtCell","afterSetDataAtRowProp","afterSetSourceDataAtCell","afterSetTheme","afterUpdateSettings","afterValidate","beforeLanguageChange","afterLanguageChange","beforeAutofill","afterAutofill","beforeCellAlignment","beforeChange","beforeChangeRender","beforeHeightChange","beforeWidthChange","beforeDrawBorders","beforeGetCellMeta","beforeRemoveCellMeta","beforeInit","beforeInitWalkontable","beforeLoadData","beforeUpdateData","beforeKeyDown","beforeOnCellMouseDown","beforeOnCellMouseUp","beforeOnCellContextMenu","beforeOnCellMouseOver","beforeOnCellMouseOut","beforeRemoveCol","beforeRemoveRow","beforeViewRender","afterViewRender","beforeRender","afterRender","beforeRowWrap","beforeColumnWrap","beforeSetCellMeta","beforeSelectionFocusSet","beforeSetRangeStartOnly","beforeSetRangeStart","beforeSetRangeEnd","beforeSelectionHighlightSet","beforeTouchScroll","beforeValidate","beforeValueRender","construct","init","modifyColHeader","modifyColWidth","modifyFiltersMultiSelectValue","modifyFocusedElement","modifyRowHeader","modifyRowHeight","modifyRowHeightByOverlayName","modifyData","modifySourceData","modifyRowData","modifyGetCellCoords","modifyGetCoordsElement","modifyFocusOnTabNavigation","beforeHighlightingRowHeader","beforeHighlightingColumnHeader","persistentStateLoad","persistentStateReset","persistentStateSave","beforeColumnSort","afterColumnSort","modifyAutofillRange","modifyCopyableRange","beforeCut","afterCut","beforeCopy","afterCopy","beforePaste","afterPaste","beforeColumnFreeze","afterColumnFreeze","beforeColumnMove","afterColumnMove","beforeColumnUnfreeze","afterColumnUnfreeze","beforeRowMove","afterRowMove","beforeColumnResize","afterColumnResize","beforeRowResize","afterRowResize","afterGetColumnHeaderRenderers","afterGetRowHeaderRenderers","beforeStretchingColumnWidth","beforeFilter","afterFilter","beforePageChange","afterPageChange","beforePageSizeChange","afterPageSizeChange","afterPageSizeVisibilityChange","afterPageCounterVisibilityChange","afterPageNavigationVisibilityChange","afterFormulasValuesUpdate","afterNamedExpressionAdded","afterNamedExpressionRemoved","afterSheetAdded","afterSheetRenamed","afterSheetRemoved","modifyColumnHeaderHeight","modifyColumnHeaderValue","beforeUndo","beforeUndoStackChange","afterUndo","afterUndoStackChange","beforeRedo","beforeRedoStackChange","afterRedo","afterRedoStackChange","modifyRowHeaderWidth","modifyTransformFocus","modifyTransformStart","modifyTransformEnd","afterModifyTransformFocus","afterModifyTransformStart","afterModifyTransformEnd","afterViewportRowCalculatorOverride","afterViewportColumnCalculatorOverride","afterPluginsInitialized","beforeHideRows","afterHideRows","beforeUnhideRows","afterUnhideRows","beforeHideColumns","afterHideColumns","beforeUnhideColumns","afterUnhideColumns","beforeTrimRow","afterTrimRow","beforeUntrimRow","afterUntrimRow","beforeDropdownMenuShow","afterDropdownMenuShow","afterDropdownMenuHide","beforeAddChild","afterAddChild","beforeDetachChild","afterDetachChild","beforeBeginEditing","afterDialogHide","afterDialogShow","beforeDialogHide","beforeDialogShow","dialogFocusPreviousElement","dialogFocusNextElement","afterDialogFocus","beforeLoadingShow","afterLoadingShow","beforeLoadingHide","afterLoadingHide","afterBeginEditing","beforeMergeCells","afterMergeCells","beforeUnmergeCells","afterUnmergeCells","afterListen","afterUnlisten","afterRefreshDimensions","beforeRefreshDimensions","beforeColumnCollapse","afterColumnCollapse","beforeColumnExpand","afterColumnExpand","modifyAutoColumnSizeSeed"],t.REMOVED_HOOKS=new Map([["modifyRow","8.0.0"],["modifyCol","8.0.0"],["unmodifyRow","8.0.0"],["unmodifyCol","8.0.0"],["skipLengthCache","8.0.0"],["hiddenColumn","8.0.0"],["hiddenRow","8.0.0"]]),t.DEPRECATED_HOOKS=new Map([[]])},24300:(e,t,r)=>{var n=r(74851);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},24501:()=>{},24726:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300)),i=r(6083);t.default=class{constructor(e,t){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"nestedHeaderSettingsGetter",void 0),(0,s.default)(this,"layersCount",0),(0,s.default)(this,"container",void 0),(0,s.default)(this,"widthsMap",void 0),this.hot=e,this.nestedHeaderSettingsGetter=t,this.widthsMap=this.hot.columnIndexMapper.createAndRegisterIndexMap("nestedHeaders.widthsMap","physicalIndexToValue")}setLayersCount(e){return this.layersCount=e,this}getWidth(e){return this.widthsMap.getValueAtIndex(this.hot.toPhysicalColumn(e))}buildWidthsMap(){const e=this.hot.getCurrentThemeName();this.container=this.hot.rootDocument.createElement("div"),this.container.classList.add("handsontable","htGhostTable","htAutoSize"),e&&this.container.classList.add(e),this._buildGhostTable(this.container),this.hot.rootDocument.body.appendChild(this.container);const t=this.container.querySelectorAll("tr:last-of-type th"),r=t.length;this.widthsMap.clear();for(let e=0;e<r;e++){const r=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e),n=this.hot.toPhysicalColumn(r);this.widthsMap.setValueAtIndex(n,t[e].offsetWidth)}this.container.parentNode.removeChild(this.container),this.container=null}_buildGhostTable(e){const{rootDocument:t,columnIndexMapper:r}=this.hot,n=t.createDocumentFragment(),s=t.createElement("table"),o=!!this.hot.getSettings().dropdownMenu,a=r.getRenderableIndexesLength();for(let e=0;e<this.layersCount;e++){const n=t.createElement("tr");for(let s=0;s<a;s++){let a=r.getVisualFromRenderableIndex(s);null===a&&(a=s);const l=t.createElement("th"),h=this.nestedHeaderSettingsGetter(e,a);if(h&&(!h.isPlaceholder||h.isHidden)){let e=h.label;o&&(e+='<button class="changeType"></button>'),(0,i.fastInnerHTML)(l,e),l.colSpan=h.colspan,n.appendChild(l)}}s.appendChild(n)}n.appendChild(s),e.appendChild(n)}clear(){this.widthsMap.clear(),this.container=null}}},24834:(e,t,r)=>{"use strict";t.__esModule=!0,r(52490);var n=r(53383),s=r(22199),i=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230));function o(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function a(e,t,r){return e.set(h(e,t),r),r}function l(e,t){return e.get(h(e,t))}function h(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const u=t.PLUGIN_KEY="loading",c=t.PLUGIN_PRIORITY=350,d=t.LOADING_CLASS_NAME=`ht-${u}`;var g=new WeakMap,p=new WeakSet;class f extends n.BasePlugin{constructor(){var e,t;super(...arguments),o(e=this,t=p),t.add(e),function(e,t,r){o(e,t),t.set(e,r)}(this,g,null)}static get PLUGIN_KEY(){return u}static get PLUGIN_PRIORITY(){return c}static get DEFAULT_SETTINGS(){return{icon:`<svg class="${d}__icon-svg" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path stroke="currentColor" stroke-width="2" d="M15 8a7 7 0 1 1-3.5-6.062"></path></svg>`,title:void 0,description:""}}static get SETTINGS_VALIDATORS(){return{icon:e=>"string"==typeof e,title:e=>"string"==typeof e,description:e=>"string"==typeof e}}isEnabled(){return!!this.hot.getSettings()[u]}enablePlugin(){if(!this.enabled){var e;if(null===l(g,this))a(g,this,this.hot.getPlugin("dialog")),null!==(e=l(g,this))&&void 0!==e&&e.isEnabled()||(this.hot.getSettings().dialog=!0),this.hot.addHook("afterDialogFocus",()=>h(p,this,m).call(this));super.enablePlugin()}}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.hide(),super.disablePlugin()}isVisible(){var e,t;return null!==(e=null===(t=l(g,this))||void 0===t?void 0:t.isVisible())&&void 0!==e&&e}show(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.isEnabled()||!l(g,this)||null===(e=l(g,this))||void 0===e||!e.isEnabled())return;if(this.isVisible())return void this.update(t);!1!==this.hot.runHooks("beforeLoadingShow")&&(this.update(t),l(g,this).show(),this.hot.runHooks("afterLoadingShow"))}hide(){var e;if(!l(g,this)||null===(e=l(g,this))||void 0===e||!e.isEnabled()||!this.isVisible())return;!1!==this.hot.runHooks("beforeLoadingHide")&&(l(g,this).hide(),this.hot.runHooks("afterLoadingHide"))}update(e){var t,r;if(!this.isEnabled()||!l(g,this)||null===(t=l(g,this))||void 0===t||!t.isEnabled())return;this.updatePluginSettings(e);const n=this.hot.guid,o=this.getSetting("icon"),a=null!==(r=this.getSetting("title"))&&void 0!==r?r:this.hot.getTranslatedPhrase(i.LOADING_TITLE),h=this.getSetting("description"),c=(0,s.loadingContent)({id:n,icon:o,title:a,description:h});l(g,this).update({content:c,customClassName:d,background:0===this.hot.countSourceRows()?"solid":"semi-transparent",a11y:{role:"alertdialog",ariaLabelledby:`${n}-${u}-title`,ariaDescribedby:h?`${n}-${u}-description`:void 0}})}destroy(){a(g,this,null),super.destroy()}}function m(){l(g,this).focus()}t.Loading=f},25043:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356);var s=n(r(24300)),i=r(6083),o=n(r(46427)),a=r(31075),l=n(r(74216)),h=r(28416),u=r(55941),c=r(55585),d=r(13618);function g(e,t,r){p(e,t),t.set(e,r)}function p(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(w(e,t))}function m(e,t,r){return e.set(w(e,t),r),r}function w(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var E=new WeakMap,y=new WeakMap,C=new WeakMap,v=new WeakMap,S=new WeakMap,R=new WeakMap,T=new WeakMap,N=new WeakMap,_=new WeakSet;function A(){return parseInt(this.hot.rootElement.getAttribute((0,d.A11Y_COLCOUNT)()[0]),10)}function b(e){const t=w(_,this,A).call(this)+e;(0,i.setAttribute)(this.hot.rootElement,...(0,d.A11Y_COLCOUNT)(t))}function M(){const e=this.hot.rootElement;this.hasVerticalScroll()?(0,i.addClass)(e,"htHasScrollY"):(0,i.removeClass)(e,"htHasScrollY"),this.isVerticallyScrollableByWindow()?(0,i.addClass)(e,"htVerticallyScrollableByWindow"):(0,i.removeClass)(e,"htVerticallyScrollableByWindow"),this.hasHorizontalScroll()?(0,i.addClass)(e,"htHasScrollX"):(0,i.removeClass)(e,"htHasScrollX"),this.isHorizontallyScrollableByWindow()?(0,i.addClass)(e,"htHorizontallyScrollableByWindow"):(0,i.removeClass)(e,"htHorizontallyScrollableByWindow")}t.default=class{constructor(e){var t,r;p(t=this,r=_),r.add(t),(0,s.default)(this,"hot",void 0),(0,s.default)(this,"eventManager",void 0),(0,s.default)(this,"settings",void 0),(0,s.default)(this,"THEAD",void 0),(0,s.default)(this,"TBODY",void 0),(0,s.default)(this,"_wt",void 0),(0,s.default)(this,"activeWt",void 0),g(this,E,0),g(this,y,0),(0,s.default)(this,"postponedAdjustElementsSize",!1),g(this,C,!1),g(this,v,void 0),g(this,S,void 0),g(this,R,0),g(this,T,0),g(this,N,null),this.hot=e,this.eventManager=new o.default(this.hot),this.settings=this.hot.getSettings(),this.createElements(),this.registerEvents(),this.initializeWalkontable()}render(){if(!this.hot.isRenderSuspended()){const e=this.hot.forceFullRender;this.hot.runHooks("beforeRender",e),this._wt.draw(!e),w(_,this,M).call(this),this.postponedAdjustElementsSize&&(this.postponedAdjustElementsSize=!1,this.adjustElementsSize(!0)),this.hot.runHooks("afterRender",e),this.hot.forceFullRender=!1}}adjustElementsSize(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]?this._wt.wtOverlays.adjustElementsSize():this.postponedAdjustElementsSize=!0}getCellAtCoords(e,t){const r=this._wt.getCell(e,t);return r<0?null:r}scrollViewport(e,t,r){return this._wt.scrollViewport(e,t,r)}scrollViewportHorizontally(e,t){return this._wt.scrollViewportHorizontally(e,t)}scrollViewportVertically(e,t){return this._wt.scrollViewportVertically(e,t)}createElements(){const{rootElement:e,rootDocument:t}=this.hot,r=e.getAttribute("style");r&&e.setAttribute("data-originalstyle",r),(0,i.addClass)(e,"handsontable"),m(S,this,t.createElement("TABLE")),(0,i.addClass)(f(S,this),"htCore"),this.hot.getSettings().tableClassName&&(0,i.addClass)(f(S,this),this.hot.getSettings().tableClassName),this.settings.ariaTags&&((0,i.setAttribute)(f(S,this),[(0,d.A11Y_PRESENTATION)()]),(0,i.setAttribute)(e,[(0,d.A11Y_TREEGRID)(),(0,d.A11Y_ROWCOUNT)(-1),(0,d.A11Y_COLCOUNT)(this.hot.countCols()),(0,d.A11Y_MULTISELECTABLE)()])),this.THEAD=t.createElement("THEAD"),f(S,this).appendChild(this.THEAD),this.TBODY=t.createElement("TBODY"),f(S,this).appendChild(this.TBODY),this.hot.table=f(S,this),this.hot.container.insertBefore(f(S,this),this.hot.container.firstChild)}registerEvents(){const{rootWrapperElement:e,rootElement:t,rootDocument:r,selection:n,rootWindow:s}=this.hot,o=r.documentElement;this.eventManager.addEventListener(t,"mousedown",e=>{m(C,this,!0),this.isTextSelectionAllowed(e.target)||((0,i.clearTextSelection)(s),e.preventDefault(),s.focus())}),this.eventManager.addEventListener(t,"mouseup",()=>{m(C,this,!1)}),this.eventManager.addEventListener(t,"mousemove",e=>{f(C,this)&&!this.isTextSelectionAllowed(e.target)&&(this.settings.fragmentSelection&&(0,i.clearTextSelection)(s),e.preventDefault())}),this.eventManager.addEventListener(o,"keyup",e=>{n.isInProgress()&&!e.shiftKey&&n.finish()}),this.eventManager.addEventListener(o,"mouseup",s=>{var o;n.isInProgress()&&(0,a.isLeftClick)(s)&&n.finish(),m(v,this,!1);const l=(0,i.isOutsideInput)(r.activeElement),h=null===(o=r.querySelector(".ht-dialog"))||void 0===o?void 0:o.contains(r.activeElement);(0,i.isInput)(r.activeElement)&&!l||h||!l&&(n.isSelected()||n.isSelectedByAnyHeader()||(null!=e?e:t).contains(s.target)||(0,a.isRightClick)(s))||this.hot.unlisten()}),this.eventManager.addEventListener(o,"contextmenu",e=>{n.isInProgress()&&(0,a.isRightClick)(e)&&(n.finish(),m(v,this,!1))}),this.eventManager.addEventListener(o,"touchend",()=>{n.isInProgress()&&n.finish(),m(v,this,!1)}),this.eventManager.addEventListener(o,"mousedown",e=>{const n=e.target,s=e.x||e.clientX,a=e.y||e.clientY;let l=e.target;if(f(v,this)||!t||!this.hot.view)return;const{holder:h}=this._wt.wtTable;if(l===h){const e=(0,i.getScrollbarWidth)(r);if(r.elementFromPoint(s+e,a)!==h||r.elementFromPoint(s,a+e)!==h)return}else for(;l!==o;){if(null===l){if(e.isTargetWebComponent)break;return}if(l===t)return;l=l.parentNode}("function"==typeof this.settings.outsideClickDeselects?this.settings.outsideClickDeselects(n):this.settings.outsideClickDeselects)?this.hot.deselectCell():this.hot.destroyEditor(!1,!1)});let l=(0,i.getParentWindow)(s);for(;null!==l;)this.eventManager.addEventListener(l.document.documentElement,"click",()=>{this.hot.unlisten()}),l=(0,i.getParentWindow)(l);this.eventManager.addEventListener(f(S,this),"selectstart",e=>{this.settings.fragmentSelection||(0,i.isInput)(e.target)||e.preventDefault()})}translateFromRenderableToVisualCoords(e){let{row:t,col:r}=e;return this.hot._createCellCoords(...this.translateFromRenderableToVisualIndex(t,r))}translateFromRenderableToVisualIndex(e,t){let r=e>=0?this.hot.rowIndexMapper.getVisualFromRenderableIndex(e):e,n=t>=0?this.hot.columnIndexMapper.getVisualFromRenderableIndex(t):t;return null===r&&(r=e),null===n&&(n=t),[r,n]}countRenderableIndexes(e,t){const r=Math.min(e.getNotTrimmedIndexesLength(),t),n=e.getNearestNotHiddenIndex(r-1,-1);return null===n?0:e.getRenderableFromVisualIndex(n)+1}countRenderableColumns(){return this.countRenderableIndexes(this.hot.columnIndexMapper,this.settings.maxCols)}countRenderableRows(){return this.countRenderableIndexes(this.hot.rowIndexMapper,this.settings.maxRows)}countNotHiddenRowIndexes(e,t){return this.countNotHiddenIndexes(e,t,this.hot.rowIndexMapper,this.countRenderableRows())}countNotHiddenColumnIndexes(e,t){return this.countNotHiddenIndexes(e,t,this.hot.columnIndexMapper,this.countRenderableColumns())}countNotHiddenIndexes(e,t,r,n){if(isNaN(e)||e<0)return 0;const s=r.getNearestNotHiddenIndex(e,t),i=r.getRenderableFromVisualIndex(s);if(!Number.isInteger(i))return 0;let o=0;return t<0?o=i+1:t>0&&(o=n-i),o}countNotHiddenFixedColumnsStart(){const e=this.hot.countCols(),t=Math.min(parseInt(this.settings.fixedColumnsStart,10),e)-1;return this.countNotHiddenColumnIndexes(t,-1)}countNotHiddenFixedRowsTop(){const e=this.hot.countRows(),t=Math.min(parseInt(this.settings.fixedRowsTop,10),e)-1;return this.countNotHiddenRowIndexes(t,-1)}countNotHiddenFixedRowsBottom(){const e=this.hot.countRows(),t=Math.max(e-parseInt(this.settings.fixedRowsBottom,10),0);return this.countNotHiddenRowIndexes(t,1)}countRenderableColumnsInRange(e,t){let r=0;for(let n=e;n<=t;n++)null!==this.hot.columnIndexMapper.getRenderableFromVisualIndex(n)&&(r+=1);return r}countRenderableRowsInRange(e,t){let r=0;for(let n=e;n<=t;n++)null!==this.hot.rowIndexMapper.getRenderableFromVisualIndex(n)&&(r+=1);return r}addClassNameToLicenseElement(e){var t;const r=null===(t=this.hot.rootElement.parentNode)||void 0===t?void 0:t.querySelector(".hot-display-license-info");r&&(0,i.addClass)(r,e)}removeClassNameFromLicenseElement(e){var t;const r=null===(t=this.hot.rootElement.parentNode)||void 0===t?void 0:t.querySelector(".hot-display-license-info");r&&(0,i.removeClass)(r,e)}isMainTableNotFullyCoveredByOverlays(){const e=this.countNotHiddenFixedRowsTop()+this.countNotHiddenFixedRowsBottom(),t=this.countNotHiddenFixedColumnsStart();return this.hot.countRenderedRows()>e&&this.hot.countRenderedCols()>t}initializeWalkontable(){const e={ariaTags:this.settings.ariaTags,rtlMode:this.hot.isRtl(),externalRowCalculator:this.hot.getPlugin("autoRowSize")&&this.hot.getPlugin("autoRowSize").isEnabled(),table:f(S,this),isDataViewInstance:()=>(0,u.isRootInstance)(this.hot),preventOverflow:()=>this.settings.preventOverflow,preventWheel:()=>this.settings.preventWheel,viewportColumnRenderingThreshold:()=>this.settings.viewportColumnRenderingThreshold,viewportRowRenderingThreshold:()=>this.settings.viewportRowRenderingThreshold,data:(e,t)=>this.hot.getDataAtCell(...this.translateFromRenderableToVisualIndex(e,t)),totalRows:()=>this.countRenderableRows(),totalColumns:()=>this.countRenderableColumns(),fixedColumnsStart:()=>this.countNotHiddenFixedColumnsStart(),fixedRowsTop:()=>this.countNotHiddenFixedRowsTop(),fixedRowsBottom:()=>this.countNotHiddenFixedRowsBottom(),shouldRenderInlineStartOverlay:()=>this.settings.fixedColumnsStart>0||e.rowHeaders().length>0,shouldRenderTopOverlay:()=>this.settings.fixedRowsTop>0||e.columnHeaders().length>0,shouldRenderBottomOverlay:()=>this.settings.fixedRowsBottom>0,minSpareRows:()=>this.settings.minSpareRows,renderAllRows:this.settings.renderAllRows,renderAllColumns:this.settings.renderAllColumns,rowHeaders:()=>{const e=[];return this.hot.hasRowHeaders()&&e.push((e,t)=>{const r=e>=0?this.hot.rowIndexMapper.getVisualFromRenderableIndex(e):e;this.appendRowHeader(r,t)}),this.hot.runHooks("afterGetRowHeaderRenderers",e),m(y,this,e.length),this.hot.getSettings().ariaTags&&w(_,this,A).call(this)===this.hot.countCols()&&w(_,this,b).call(this,f(y,this)),e},columnHeaders:()=>{const e=[];return this.hot.hasColHeaders()&&e.push((e,t)=>{const r=e>=0?this.hot.columnIndexMapper.getVisualFromRenderableIndex(e):e;this.appendColHeader(r,t)}),this.hot.runHooks("afterGetColumnHeaderRenderers",e),m(E,this,e.length),e},columnWidth:e=>{const t=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e);return this.hot.getColWidth(null===t?e:t)},rowHeight:e=>{const t=this.hot.rowIndexMapper.getVisualFromRenderableIndex(e);return this.hot.getRowHeight(null===t?e:t)},rowHeightByOverlayName:(e,t)=>{const r=this.hot.rowIndexMapper.getVisualFromRenderableIndex(e),n=null===r?e:r;return this.hot.runHooks("modifyRowHeightByOverlayName",this.hot.getRowHeight(n),n,t)},cellRenderer:(e,t,r)=>{const[n,s]=this.translateFromRenderableToVisualIndex(e,t),i=this.hot.runHooks("modifyGetCellCoords",n,s,!1,"meta");let o=n,a=s;Array.isArray(i)&&([o,a]=i);const l=this.hot.getCellMeta(o,a),h=this.hot.colToProp(a);let u=this.hot.getDataAtRowProp(o,h);this.hot.hasHook("beforeValueRender")&&(u=this.hot.runHooks("beforeValueRender",u,l)),this.hot.runHooks("beforeRenderer",r,n,s,h,u,l),this.hot.getCellRenderer(l)(this.hot,r,n,s,h,u,l),this.hot.runHooks("afterRenderer",r,n,s,h,u,l)},selections:this.hot.selection.highlight,hideBorderOnMouseDownOver:()=>this.settings.fragmentSelection,onWindowResize:()=>{this.hot&&!this.hot.isDestroyed&&this.hot.refreshDimensions()},onContainerElementResize:()=>{this.hot&&!this.hot.isDestroyed&&(0,i.isVisible)(this.hot.rootElement)&&this.hot.refreshDimensions()},onCellMouseDown:(e,t,r,n)=>{const s=this.translateFromRenderableToVisualCoords(t),i={row:!1,column:!1,cell:!1};this.hot.listen(),this.activeWt=n,m(v,this,!0),m(N,this,{x:e.clientX,y:e.clientY}),this.hot.runHooks("beforeOnCellMouseDown",e,s,r,i),(0,a.isImmediatePropagationStopped)(e)||((0,h.handleMouseEvent)(e,{coords:s,selection:this.hot.selection,controller:i,cellCoordsFactory:(e,t)=>this.hot._createCellCoords(e,t)}),this.hot.runHooks("afterOnCellMouseDown",e,s,r),this.activeWt=this._wt)},onCellContextMenu:(e,t,r,n)=>{const s=this.translateFromRenderableToVisualCoords(t);this.activeWt=n,m(v,this,!1),this.hot.selection.isInProgress()&&this.hot.selection.finish(),this.hot.runHooks("beforeOnCellContextMenu",e,s,r),(0,a.isImmediatePropagationStopped)(e)||(this.hot.runHooks("afterOnCellContextMenu",e,s,r),this.activeWt=this._wt)},onCellMouseOut:(e,t,r,n)=>{const s=this.translateFromRenderableToVisualCoords(t);this.activeWt=n,this.hot.runHooks("beforeOnCellMouseOut",e,s,r),(0,a.isImmediatePropagationStopped)(e)||(this.hot.runHooks("afterOnCellMouseOut",e,s,r),this.activeWt=this._wt)},onCellMouseOver:(e,t,r,n)=>{const s=this.translateFromRenderableToVisualCoords(t),i={row:!1,column:!1,cell:!1};this.activeWt=n,this.hot.runHooks("beforeOnCellMouseOver",e,s,r,i),(0,a.isImmediatePropagationStopped)(e)||(!f(v,this)||f(N,this)&&f(N,this).x===e.clientX&&f(N,this).y===e.clientY||(0,h.handleMouseEvent)(e,{coords:s,selection:this.hot.selection,controller:i,cellCoordsFactory:(e,t)=>this.hot._createCellCoords(e,t)}),this.hot.runHooks("afterOnCellMouseOver",e,s,r),this.activeWt=this._wt,m(N,this,null))},onCellMouseUp:(e,t,r,n)=>{const s=this.translateFromRenderableToVisualCoords(t);this.activeWt=n,this.hot.runHooks("beforeOnCellMouseUp",e,s,r),(0,a.isImmediatePropagationStopped)(e)||this.hot.isDestroyed||((0,h.handleMouseEvent)(e,{coords:s,selection:this.hot.selection,cellRangeMapper:(0,c.resolveWithInstance)(this.hot,"cellRangeMapper")}),this.hot.runHooks("afterOnCellMouseUp",e,s,r),this.activeWt=this._wt)},onCellCornerMouseDown:e=>{e.preventDefault(),this.hot.runHooks("afterOnCellCornerMouseDown",e)},onCellCornerDblClick:e=>{e.preventDefault(),this.hot.runHooks("afterOnCellCornerDblClick",e)},beforeDraw:(e,t)=>this.beforeRender(e,t),onDraw:e=>this.afterRender(e),onBeforeViewportScrollVertically:(e,t)=>{const r=this.hot.rowIndexMapper,n=e<0;let s=e;return n||(s=r.getVisualFromRenderableIndex(e),null!==s)?(s=this.hot.runHooks("beforeViewportScrollVertically",s,t),this.hot.runHooks("beforeViewportScroll"),n?s:r.getRenderableFromVisualIndex(s)):e},onBeforeViewportScrollHorizontally:(e,t)=>{const r=this.hot.columnIndexMapper,n=e<0;let s=e;return n||(s=r.getVisualFromRenderableIndex(e),null!==s)?(s=this.hot.runHooks("beforeViewportScrollHorizontally",s,t),this.hot.runHooks("beforeViewportScroll"),n?s:r.getRenderableFromVisualIndex(s)):e},onScrollVertically:()=>{this.hot.runHooks("afterScrollVertically"),this.hot.runHooks("afterScroll")},onScrollHorizontally:()=>{this.hot.runHooks("afterScrollHorizontally"),this.hot.runHooks("afterScroll")},onBeforeRemoveCellClassNames:()=>this.hot.runHooks("beforeRemoveCellClassNames"),onBeforeHighlightingRowHeader:(e,t,r)=>{const n=this.hot.rowIndexMapper,s=e<0;let i=e;s||(i=n.getVisualFromRenderableIndex(e));const o=this.hot.runHooks("beforeHighlightingRowHeader",i,t,r);return s?o:n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(o,1))},onBeforeHighlightingColumnHeader:(e,t,r)=>{const n=this.hot.columnIndexMapper,s=e<0;let i=e;s||(i=n.getVisualFromRenderableIndex(e));const o=this.hot.runHooks("beforeHighlightingColumnHeader",i,t,r);return s?o:n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(o,1))},onAfterDrawSelection:(e,t,r)=>{let n;const[s,i]=this.translateFromRenderableToVisualIndex(e,t),o=this.hot.selection.getSelectedRange();if(o.size()>0){const e=o.peekByIndex(null!=r?r:0);n=[e.from.row,e.from.col,e.to.row,e.to.col]}return this.hot.runHooks("afterDrawSelection",s,i,n,r)},onBeforeDrawBorders:(e,t)=>{const[r,n,s,i]=e,o=[this.hot.rowIndexMapper.getVisualFromRenderableIndex(r),this.hot.columnIndexMapper.getVisualFromRenderableIndex(n),this.hot.rowIndexMapper.getVisualFromRenderableIndex(s),this.hot.columnIndexMapper.getVisualFromRenderableIndex(i)];return this.hot.runHooks("beforeDrawBorders",o,t)},onBeforeTouchScroll:()=>this.hot.runHooks("beforeTouchScroll"),onAfterMomentumScroll:()=>this.hot.runHooks("afterMomentumScroll"),onModifyRowHeaderWidth:e=>this.hot.runHooks("modifyRowHeaderWidth",e),onModifyGetCellCoords:(e,t,r,n)=>{const s=this.hot.rowIndexMapper,i=this.hot.columnIndexMapper,o=t>=0?i.getVisualFromRenderableIndex(t):t,a=e>=0?s.getVisualFromRenderableIndex(e):e,l=this.hot.runHooks("modifyGetCellCoords",a,o,r,n);if(Array.isArray(l)){const[e,t,r,n]=l;return[e>=0?s.getRenderableFromVisualIndex(s.getNearestNotHiddenIndex(e,1)):e,t>=0?i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(t,1)):t,r>=0?s.getRenderableFromVisualIndex(s.getNearestNotHiddenIndex(r,-1)):r,n>=0?i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(n,-1)):n]}},onModifyGetCoordsElement:(e,t)=>{const r=this.hot.rowIndexMapper,n=this.hot.columnIndexMapper,s=t>=0?n.getVisualFromRenderableIndex(t):t,i=e>=0?r.getVisualFromRenderableIndex(e):e,o=this.hot.runHooks("modifyGetCoordsElement",i,s);if(Array.isArray(o)){const[e,t]=o;return[e>=0?r.getRenderableFromVisualIndex(r.getNearestNotHiddenIndex(e,1)):e,t>=0?n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(t,1)):t]}},viewportRowCalculatorOverride:e=>{let t=this.settings.viewportRowRenderingOffset;if("auto"===t&&this.settings.fixedRowsTop&&(t=10),t>0||"auto"===t){const r=this.countRenderableRows(),n=e.startRow,s=e.endRow;if("number"==typeof t)e.startRow=Math.max(n-t,0),e.endRow=Math.min(s+t,r-1);else if("auto"===t){const t=Math.max(1,Math.ceil(s/r*12));e.startRow=Math.max(n-t,0),e.endRow=Math.min(s+t,r-1)}}this.hot.runHooks("afterViewportRowCalculatorOverride",e)},viewportColumnCalculatorOverride:e=>{let t=this.settings.viewportColumnRenderingOffset;if("auto"===t&&this.settings.fixedColumnsStart&&(t=10),t>0||"auto"===t){const r=this.countRenderableColumns(),n=e.startColumn,s=e.endColumn;if("number"==typeof t&&(e.startColumn=Math.max(n-t,0),e.endColumn=Math.min(s+t,r-1)),"auto"===t){const t=Math.max(1,Math.ceil(s/r*6));e.startColumn=Math.max(n-t,0),e.endColumn=Math.min(s+t,r-1)}}this.hot.runHooks("afterViewportColumnCalculatorOverride",e)},rowHeaderWidth:()=>this.settings.rowHeaderWidth,columnHeaderHeight:()=>{const e=this.hot.runHooks("modifyColumnHeaderHeight");return this.settings.columnHeaderHeight||e},stylesHandler:()=>this.hot.stylesHandler};this.hot.runHooks("beforeInitWalkontable",e),this._wt=new l.default(e),this.activeWt=this._wt;const t=this._wt.wtTable.spreader,{width:r,height:n}=this.hot.rootElement.getBoundingClientRect();this.setLastSize(r,n),this.eventManager.addEventListener(t,"mousedown",e=>{e.target===t&&3===e.which&&e.stopPropagation()}),this.eventManager.addEventListener(t,"contextmenu",e=>{e.target===t&&3===e.which&&e.stopPropagation()}),this.eventManager.addEventListener(this.hot.rootDocument.documentElement,"click",()=>{this.settings.observeDOMVisibility&&this._wt.drawInterrupted&&this.hot.render()})}isTextSelectionAllowed(e){var t,r;if((0,i.isInput)(e))return!0;const n=(0,i.isChildOf)(e,this._wt.wtTable.spreader);if(!0===this.settings.fragmentSelection&&n)return!0;const s=null!==(t=null===(r=this.hot.getSelectedRangeActive())||void 0===r?void 0:r.isSingleCell())&&void 0!==t&&t;return!("cell"!==this.settings.fragmentSelection||!s||!n)||!(this.settings.fragmentSelection||!this.isCellEdited()||!s)}isMouseDown(){return f(v,this)}isCellEdited(){const e=this.hot.getActiveEditor();return e&&e.isOpened()}beforeRender(e,t){e&&this.hot.runHooks("beforeViewRender",this.hot.forceFullRender,t)}afterRender(e){e&&this.hot.runHooks("afterViewRender",this.hot.forceFullRender)}appendRowHeader(e,t){if(t.firstChild){const r=t.firstChild;if(!(0,i.hasClass)(r,"relative"))return(0,i.empty)(t),void this.appendRowHeader(e,t);this.updateCellHeader(r.querySelector(".rowHeader"),e,this.hot.getRowHeader)}else{const{rootDocument:r,getRowHeader:n}=this.hot,s=r.createElement("div"),i=r.createElement("span");s.className="relative",i.className="rowHeader",this.updateCellHeader(i,e,n),s.appendChild(i),t.appendChild(s)}this.hot.runHooks("afterGetRowHeader",e,t)}appendColHeader(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hot.getColHeader,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const s=()=>{const t=e>=0?this.hot.getColumnMeta(e).headerClassName:null;return t?t.split(" "):[]};if(t.firstChild){const o=t.firstChild;(0,i.hasClass)(o,"relative")?(this.updateCellHeader(o.querySelector(".colHeader"),e,r,n),o.className="",(0,i.addClass)(o,["relative",...s()])):((0,i.empty)(t),this.appendColHeader(e,t,r,n))}else{const{rootDocument:o}=this.hot,a=o.createElement("div"),l=o.createElement("span"),h=s();a.classList.add("relative",...h),l.className="colHeader",this.settings.ariaTags&&((0,i.setAttribute)(a,...(0,d.A11Y_PRESENTATION)()),(0,i.setAttribute)(l,...(0,d.A11Y_PRESENTATION)())),this.updateCellHeader(l,e,r,n),a.appendChild(l),t.appendChild(a)}this.hot.runHooks("afterGetColHeader",e,t,n)}updateCellHeader(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=t;const o=this._wt.wtOverlays.getParentOverlay(e)||this._wt;e.parentNode&&((0,i.hasClass)(e,"colHeader")?s=o.wtTable.columnFilter.sourceToRendered(t):(0,i.hasClass)(e,"rowHeader")&&(s=o.wtTable.rowFilter.sourceToRendered(t))),s>-1?(0,i.fastInnerHTML)(e,r(t,n)):((0,i.fastInnerText)(e,String.fromCharCode(160)),(0,i.addClass)(e,"cornerHeader"))}maximumVisibleElementWidth(e){const t=this._wt.wtViewport.getWorkspaceWidth()-e;return t>0?t:0}maximumVisibleElementHeight(e){const t=this._wt.wtViewport.getWorkspaceHeight()-e;return t>0?t:0}setLastSize(e,t){m(R,this,e),m(T,this,t)}getLastSize(){return{width:f(R,this),height:f(T,this)}}getFirstRenderedVisibleRow(){if(!this._wt.wtViewport.rowsRenderCalculator)return null;const e=this.hot.rowIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getFirstRenderedRow());return e.getNearestNotHiddenIndex(null!=t?t:0,1)}getLastRenderedVisibleRow(){if(!this._wt.wtViewport.rowsRenderCalculator)return null;const e=this.hot.rowIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getLastRenderedRow());return e.getNearestNotHiddenIndex(null!=t?t:this.hot.countRows()-1,-1)}getFirstRenderedVisibleColumn(){if(!this._wt.wtViewport.columnsRenderCalculator)return null;const e=this.hot.columnIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getFirstRenderedColumn());return e.getNearestNotHiddenIndex(null!=t?t:0,1)}getLastRenderedVisibleColumn(){if(!this._wt.wtViewport.columnsRenderCalculator)return null;const e=this.hot.columnIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getLastRenderedColumn());return e.getNearestNotHiddenIndex(null!=t?t:this.hot.countCols()-1,-1)}getFirstFullyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstVisibleRow())}getLastFullyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastVisibleRow())}getFirstFullyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstVisibleColumn())}getLastFullyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastVisibleColumn())}getFirstPartiallyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstPartiallyVisibleRow())}getLastPartiallyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastPartiallyVisibleRow())}getFirstPartiallyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstPartiallyVisibleColumn())}getLastPartiallyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastPartiallyVisibleColumn())}getColumnHeadersCount(){return f(E,this)}getRowHeadersCount(){return f(y,this)}getViewportWidth(){return this._wt.wtViewport.getViewportWidth()}getWorkspaceWidth(){return this._wt.wtViewport.getWorkspaceWidth()}getViewportHeight(){return this._wt.wtViewport.getViewportHeight()}getWorkspaceHeight(){return this._wt.wtViewport.getWorkspaceHeight()}getElementOverlayName(e){var t;return(null!==(t=this._wt.wtOverlays.getParentOverlay(e))&&void 0!==t?t:this._wt).wtTable.name}getOverlayByName(e){return this._wt.getOverlayByName(e)}getActiveOverlayName(){return this._wt.activeOverlayName}isVisible(){return this._wt.wtTable.isVisible()}hasVerticalScroll(){return this._wt.wtViewport.hasVerticalScroll()}hasHorizontalScroll(){return this._wt.wtViewport.hasHorizontalScroll()}getTableWidth(){return this._wt.wtTable.getWidth()}getTableHeight(){return this._wt.wtTable.getHeight()}getTotalTableWidth(){return this._wt.wtTable.getTotalWidth()}getTotalTableHeight(){return this._wt.wtTable.getTotalHeight()}getTableOffset(){return this._wt.wtViewport.getWorkspaceOffset()}getRowHeaderWidth(){return this._wt.wtViewport.getRowHeaderWidth()}getColumnHeaderHeight(){return this._wt.wtViewport.getColumnHeaderHeight()}isVerticallyScrollableByWindow(){return this._wt.wtViewport.isVerticallyScrollableByWindow()}isHorizontallyScrollableByWindow(){return this._wt.wtViewport.isHorizontallyScrollableByWindow()}destroy(){this._wt.destroy(),this.eventManager.destroy()}}},25116:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(34478),r(81056);var s=n(r(24300)),i=r(53383),o=r(17715),a=r(6083),l=r(21389),h=r(40785),u=r(27727),c=r(23173);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,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}o.Hooks.getSingleton().register("modifyAutofillRange"),o.Hooks.getSingleton().register("beforeAutofill"),o.Hooks.getSingleton().register("afterAutofill");const p=t.PLUGIN_KEY="autofill",f=t.PLUGIN_PRIORITY=20,m=["fillHandle"];var w=new WeakSet;class E extends i.BasePlugin{constructor(){super(...arguments),d(this,w),(0,s.default)(this,"addingStarted",!1),(0,s.default)(this,"mouseDownOnCellCorner",!1),(0,s.default)(this,"mouseDragOutside",!1),(0,s.default)(this,"handleDraggedCells",0),(0,s.default)(this,"directions",[]),(0,s.default)(this,"autoInsertRow",!1)}static get PLUGIN_KEY(){return p}static get PLUGIN_PRIORITY(){return f}static get SETTING_KEYS(){return[p,...m]}isEnabled(){return this.hot.getSettings().fillHandle}enablePlugin(){this.enabled||(this.mapSettings(),this.registerEvents(),this.addHook("afterOnCellCornerMouseDown",e=>g(w,this,v).call(this,e)),this.addHook("afterOnCellCornerDblClick",e=>g(w,this,C).call(this,e)),this.addHook("beforeOnCellMouseOver",(e,t)=>g(w,this,S).call(this,t)),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.clearMappedSettings(),super.disablePlugin()}getSelectionData(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.hot.getSelectedRangeLast(),{row:r,col:n}=t.getTopStartCorner(),{row:s,col:i}=t.getBottomEndCorner(),o=this.hot.runHooks("modifyCopyableRange",[{startRow:r,startCol:n,endRow:s,endCol:i}]),a=[],u=[],c=[];return(0,h.arrayEach)(o,e=>{for(let t=e.startRow;t<=e.endRow;t+=1)-1===a.indexOf(t)&&a.push(t);for(let t=e.startCol;t<=e.endCol;t+=1)-1===u.indexOf(t)&&u.push(t)}),(0,h.arrayEach)(a,t=>{const r=[];(0,h.arrayEach)(u,n=>{const s=e?this.hot.getSourceDataAtCell(t,n):null;e&&(0,l.isObject)(s)?r.push(this.hot.getCopyableSourceData(t,n)):r.push(this.hot.getCopyableData(t,n))}),c.push(r)}),c}fillIn(){if(this.hot.selection.highlight.getFill().isEmpty())return!1;const[e,t,r,n]=this.hot.selection.highlight.getFill().getVisualCorners(),s=this.hot.getSelectedRangeLast(),i=s.getTopStartCorner(),o=s.getBottomEndCorner();this.resetSelectionOfDraggedArea();const a=[i.row,i.col,o.row,o.col],h=this.hot.runHooks("modifyAutofillRange",[Math.min(i.row,e),Math.min(i.col,t),Math.max(o.row,r),Math.max(o.col,n)],a),{directionOfDrag:u,startOfDragCoords:d,endOfDragCoords:p}=(0,c.getDragDirectionAndRange)(a,h,(e,t)=>this.hot._createCellCoords(e,t));if(d&&d.row>-1&&d.col>-1){const e=this.getSelectionData(),t=this.getSelectionData(!0),r=s.clone(),n=this.hot._createCellRange(d,d,p),i=this.hot.runHooks("beforeAutofill",e,r,n,u);if(!1===i)return this.hot.selection.highlight.getFill().clear(),this.hot.render(),!1;let o=i;const a=i;if(["up","left"].indexOf(u)>-1&&(1!==a.length||0!==a[0].length))if(o=[],"up"===u){const e=p.row-d.row+1,t=e%a.length;for(let r=0;r<e;r++)o.push(a[(r+(a.length-t))%a.length])}else{const e=p.col-d.col+1,t=e%a[0].length;for(let r=0;r<a.length;r++){o.push([]);for(let n=0;n<e;n++)o[r].push(a[r][(n+(a[r].length-t))%a[r].length])}}if(t.some(e=>e.some(e=>(0,l.isObject)(e)))){const e=g(w,this,y).call(this,o,t,d,p,u);e.length&&(o=e)}this.hot.populateFromArray(d.row,d.col,o,p.row,p.col,`${this.pluginName}.fill`,null),this.setSelection(h),this.hot.runHooks("afterAutofill",o,r,n,u),this.hot.render()}else this.hot.view.render();return!0}reduceSelectionAreaIfNeeded(e){return e.row<0&&(e.row=0),e.col<0&&(e.col=0),e}getCoordsOfDragAndDropBorders(e){const t=this.hot.getSelectedRangeLast(),r=t.getBottomEndCorner();let n=e;if(this.directions.includes(c.DIRECTIONS.vertical)&&this.directions.includes(c.DIRECTIONS.horizontal)){const s=t.getTopStartCorner();(r.col<=e.col||s.col>=e.col)&&(n=this.hot._createCellCoords(r.row,e.col)),(r.row<e.row||s.row>e.row)&&(n=this.hot._createCellCoords(e.row,r.col))}else if(this.directions.includes(c.DIRECTIONS.vertical))n=this.hot._createCellCoords(e.row,r.col);else{if(!this.directions.includes(c.DIRECTIONS.horizontal))return;n=this.hot._createCellCoords(r.row,e.col)}return this.reduceSelectionAreaIfNeeded(n)}showBorder(e){const t=this.getCoordsOfDragAndDropBorders(e);t&&this.redrawBorders(t)}addRow(){this.hot._registerTimeout(()=>{this.hot.alter("insert_row_below",void 0,1,`${this.pluginName}.fill`),this.addingStarted=!1},200)}addNewRowIfNeeded(){if(!this.hot.selection.highlight.getFill().isEmpty()&&!1===this.addingStarted&&this.autoInsertRow){const e=this.hot.getSelectedLast(),t=this.hot.selection.highlight.getFill().getVisualCorners(),r=this.hot.countRows();e[2]<r-1&&t[2]===r-1&&(this.addingStarted=!0,this.addRow())}}getIndexOfLastAdjacentFilledInRow(e){const t=this.hot.getData(),r=this.hot.countRows();let n;for(let s=e[2]+1;s<r;s++){for(let r=e[1];r<=e[3];r++){const e=t[s][r];if(!(0,u.isEmpty)(e))return-1}const r=t[s][e[1]-1],i=t[s][e[3]+1];(0,u.isEmpty)(r)&&(0,u.isEmpty)(i)||(n=s)}return n}addSelectionFromStartAreaToSpecificRowIndex(e,t){this.hot.selection.highlight.getFill().clear().add(this.hot._createCellCoords(e[0],e[1])).add(this.hot._createCellCoords(t,e[3])).commit()}setSelection(e){this.hot.selectCell(...(0,h.arrayMap)(e,e=>Math.max(e,0)),!1,!1)}selectAdjacent(){const e=this.hot.getSelectedLast(),t=this.getIndexOfLastAdjacentFilledInRow(e);return-1!==t&&void 0!==t&&(this.addSelectionFromStartAreaToSpecificRowIndex(e,t),!0)}resetSelectionOfDraggedArea(){this.handleDraggedCells=0,this.hot.selection.highlight.getFill().clear()}redrawBorders(e){this.hot.selection.highlight.getFill().clear().add(this.hot.getSelectedRangeLast().from).add(this.hot.getSelectedRangeLast().to).add(e).commit(),this.hot.view.render()}getIfMouseWasDraggedOutside(e){const{documentElement:t}=this.hot.rootDocument,r=(0,a.offset)(this.hot.table).top-(this.hot.rootWindow.pageYOffset||t.scrollTop)+(0,a.outerHeight)(this.hot.table),n=(0,a.offset)(this.hot.table).left-(this.hot.rootWindow.pageXOffset||t.scrollLeft)+(0,a.outerWidth)(this.hot.table);return e.clientY>r&&e.clientX<=n}registerEvents(){const{documentElement:e}=this.hot.rootDocument;this.eventManager.addEventListener(e,"mouseup",()=>g(w,this,R).call(this)),this.eventManager.addEventListener(e,"mousemove",e=>g(w,this,T).call(this,e))}clearMappedSettings(){this.directions.length=0,this.autoInsertRow=!1}mapSettings(){const e=(0,c.getMappedFillHandleSetting)(this.hot.getSettings().fillHandle);this.directions=e.directions,this.autoInsertRow=e.autoInsertRow}destroy(){super.destroy()}}function y(e,t,r,n){const s=[];for(let i=Math.min(r.row,n.row);i<=Math.max(r.row,n.row);i+=1){s.push([]);for(let o=Math.min(r.col,n.col);o<=Math.max(r.col,n.col);o+=1){const a=this.hot.getSourceDataAtCell(i,o),h=i-Math.min(r.row,n.row),u=o-Math.min(r.col,n.col),c=h%t.length,d=u%t[0].length;(0,l.isObject)(a)?s[h][u]=t[c][d]:s[h][u]=e[c][d]}}return s}function C(){this.selectAdjacent()&&this.fillIn()}function v(){this.handleDraggedCells=1,this.mouseDownOnCellCorner=!0}function S(e){this.mouseDownOnCellCorner&&!this.hot.view.isMouseDown()&&this.handleDraggedCells&&(this.handleDraggedCells+=1,this.showBorder(e),this.addNewRowIfNeeded())}function R(){this.handleDraggedCells&&(this.handleDraggedCells>1&&this.fillIn(),this.handleDraggedCells=0,this.mouseDownOnCellCorner=!1)}function T(e){const t=this.getIfMouseWasDraggedOutside(e);!1===this.addingStarted&&this.handleDraggedCells>0&&t?(this.mouseDragOutside=!0,this.addingStarted=!0):this.mouseDragOutside=!1,this.mouseDragOutside&&this.autoInsertRow&&this.addRow()}t.Autofill=E},25145:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostTop",callback(e){const{selection:t,rowIndexMapper:r}=e,{highlight:n,from:s,to:i}=e.getSelectedRangeActive(),o=n.isHeader()&&t.isSelectedByRowHeader();if(n.isCell()||o){const a=r.getNearestNotHiddenIndex(0,1),l=s.clone();l.row=n.row,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,n.clone()),o&&t.selectedByRowHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(a,i.col)),t.markEndSource()}}}},25250:(e,t,r)=>{"use strict";var n=r(92853);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},25589:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(27972);t.EDITOR_TYPE=n.EDITOR_TYPE,t.SelectEditor=n.SelectEditor},25614:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(99356),r(34478),r(90643),r(31143),r(33098);var s=n(r(24300)),i=r(9208),o=r(21389);class a extends i.BaseAction{constructor(e){let{changes:t,selected:r,countCols:n,countRows:i}=e;super("change"),(0,s.default)(this,"changes",void 0),(0,s.default)(this,"selected",void 0),(0,s.default)(this,"countCols",void 0),(0,s.default)(this,"countRows",void 0),this.changes=t,this.selected=r,this.countCols=n,this.countRows=i}static startRegisteringEvents(e,t){e.addHook("beforeChange",function(r,n){const s=r&&r.length;if(!s)return;if(!r.find(e=>{const[,,t,r]=e;return t!==r}))return;t.done(()=>{const t=r.reduce((e,t)=>(e.push([...t]),e),[]);t.forEach(t=>{t[1]=e.propToCol(t[1])});const n=s>1?this.getSelected():[[t[0][0],t[0][1]]];return new a({changes:t,selected:n,countCols:e.countCols(),countRows:e.countRows()})},n)})}undo(e,t){const r=(0,o.deepClone)(this.changes);for(let e=0,t=r.length;e<t;e++)r[e].splice(3,1);e.addHookOnce("afterChange",()=>{const r=e.countRows()-this.countRows;r>0&&e.alter("remove_row",null,r,"UndoRedo.undo");const n=e.countCols()-this.countCols;n>0&&e.isColumnModificationAllowed()&&e.alter("remove_col",null,n,"UndoRedo.undo"),e.scrollToFocusedCell(),e.selectCells(this.selected,!1,!1),t()}),e.setDataAtCell(r,null,null,"UndoRedo.undo")}redo(e,t){const r=(0,o.deepClone)(this.changes);for(let e=0,t=r.length;e<t;e++)r[e].splice(2,1);e.addHookOnce("afterChange",()=>{e.selectCells(this.selected,!1,!1),t()}),e.setDataAtCell(r,null,null,"UndoRedo.redo")}}t.DataChangeAction=a},26005:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(48136));t.default=class{constructor(){this.clipboardData=new s.default}preventDefault(){}composedPath(){return[]}}},26023:(e,t,r)=>{"use strict";var n=r(19098),s=r(48369),i=r(31520),o=i.Set,a=i.proto,l=n(a.forEach),h=n(a.keys),u=h(new o).next;e.exports=function(e,t,r){return r?s({iterator:h(e),next:u},t):l(e,t)}},26172:(e,t,r)=>{"use strict";t.__esModule=!0,t.handsontableRenderer=i;var n=r(40697);const s=t.RENDERER_TYPE="handsontable";function i(e,t,r,s,i,o,a){n.autocompleteRenderer.apply(this,[e,t,r,s,i,o,a])}i.RENDERER_TYPE=s},26241:(e,t,r)=>{"use strict";t.__esModule=!0,t.condition=a;var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),s=r(27727),i=r(11278);const o=t.CONDITION_NAME="begins_with";function a(e,t){let[r]=t;return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale).startsWith((0,s.stringify)(r))}(0,i.registerCondition)(o,a,{name:n.FILTERS_CONDITIONS_BEGINS_WITH,inputsCount:1,showOperators:!0})},26520:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(42660)),i=n(r(14228)),o=n(r(80595)),a=r(21389),l=r(82175);class h extends s.default{constructor(e,t,r,n){super(e,t,r,n,l.CLONE_BOTTOM_INLINE_START_CORNER)}}(0,a.mixin)(h,i.default),(0,a.mixin)(h,o.default);t.default=h},26648:(e,t,r)=>{"use strict";var n=r(72820),s=r(77439),i=r(19098),o=r(53872),a=r(44827),l=r(15176),h=r(80706),u=r(84677),c=r(85988),d=r(52232),g=r(66228),p=r(12033),f=r(33973),m=p("replace"),w=TypeError,E=i("".indexOf),y=i("".replace),C=i("".slice),v=Math.max;n({target:"String",proto:!0},{replaceAll:function(e,t){var r,n,i,p,S,R,T,N,_,A,b=o(this),M=0,I="";if(l(e)){if((r=h(e))&&(n=u(o(d(e))),!~E(n,"g")))throw new w("`.replaceAll` does not allow non-global regexes");if(i=c(e,m))return s(i,e,b,t);if(f&&r)return y(u(b),e,t)}for(p=u(b),S=u(e),(R=a(t))||(t=u(t)),T=S.length,N=v(1,T),_=E(p,S);-1!==_;)A=R?u(t(S,_,p)):g(S,p,_,[],void 0,t),I+=C(p,M,_)+A,M=_+T,_=_+N>p.length?-1:E(p,S,_+N);return M<p.length&&(I+=C(p,M)),I}})},27089:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"scrollToFocusedCell",callback(e){const{highlight:t}=e.getSelectedRangeActive(),r=e.getFirstFullyVisibleRow()-1,n=e.getFirstFullyVisibleColumn()-1,s=e.getLastFullyVisibleRow()+1,i=e.getLastFullyVisibleColumn()+1,o=e._createCellCoords(r,n),a=e._createCellCoords(s,i);if(!e._createCellRange(o,o,a).includes(t)&&(t.row>=0||t.col>=0)){const r={};if(t.col>=0){const n=Math.floor(e.countVisibleCols()/2);r.col=Math.max(t.col-n,0)}if(t.row>=0){const n=Math.floor(e.countVisibleRows()/2);r.row=Math.max(t.row-n,0)}e.scrollViewportTo({...r,verticalSnap:"top",horizontalSnap:"start"})}}}},27317:()=>{},27367:(e,t,r)=>{"use strict";t.__esModule=!0,t.expandNode=function e(t){const{data:r,childs:o}=t;if(!r.isCollapsed||r.isHidden||r.origColspan<=1)return{rollbackModification:()=>{},affectedColumns:[],colspanCompensation:0};if((0,i.isNodeReflectsFirstChildColspan)(t))return e(o[0]);r.isCollapsed=!1;const a=o.slice(1),l=new Set;let h=0;if(a.length>0)(0,n.arrayEach)(a,e=>{e.replaceTreeWith(e.data.clonedTree),e.data.clonedTree=null;const t=e.data;h+=t.colspan,(0,i.traverseHiddenNodeColumnIndexes)(e,e=>{l.add(e)})});else{const{colspan:e,origColspan:t,columnIndex:n}=r;h=t-e;for(let e=1;e<t;e++)l.add(n+e)}return t.walkUp(e=>{const{data:t}=e;t.colspan+=h,t.colspan>=t.origColspan?(t.colspan=t.origColspan,t.isCollapsed=!1):(0,i.isNodeReflectsFirstChildColspan)(e)&&(t.isCollapsed=(0,i.getFirstChildProperty)(e,"isCollapsed"))}),{rollbackModification:()=>(0,s.collapseNode)(t),affectedColumns:Array.from(l),colspanCompensation:h}},r(89624),r(14950),r(98831),r(67046),r(38221),r(56050),r(65724);var n=r(40785),s=r(55708),i=r(42413)},27446:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(89624),r(14950),r(98831),r(67046),r(38221),r(56050),r(65724),r(34478),r(66133),r(940);var s=r(53383),i=r(6083),o=r(4407),a=r(40785),l=r(70095),h=r(17715),u=n(r(62107)),c=n(r(19026)),d=r(1531);function g(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function p(e,t){return e.get(m(e,t))}function f(e,t,r){return e.set(m(e,t),r),r}function m(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;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",E=t.PLUGIN_PRIORITY=310;var y=new WeakMap,C=new WeakSet;class v extends s.BasePlugin{constructor(){var e,t;super(...arguments),g(e=this,t=C),t.add(e),function(e,t,r){g(e,t),t.set(e,r)}(this,y,null)}static get PLUGIN_KEY(){return w}static get PLUGIN_PRIORITY(){return E}static get DEFAULT_SETTINGS(){return{copyPasteEnabled:!0,indicators:!1,columns:[]}}isEnabled(){return!!this.hot.getSettings()[w]}enablePlugin(){var e=this;this.enabled||(f(y,this,new d.HidingMap),p(y,this).addLocalHook("init",()=>m(C,this,A).call(this)),this.hot.columnIndexMapper.registerMap(this.pluginName,p(y,this)),this.addHook("afterContextMenuDefaultOptions",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return m(C,e,_).call(e,...r)}),this.addHook("afterGetCellMeta",(e,t,r)=>m(C,this,R).call(this,e,t,r)),this.addHook("modifyColWidth",(e,t)=>m(C,this,S).call(this,e,t),2),this.addHook("afterGetColHeader",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return m(C,e,N).call(e,...r)}),this.addHook("modifyCopyableRange",e=>m(C,this,T).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(),r=this.isValidConfig(e);let n=t;const s=p(y,this).getValues().slice(),i=e.length>0;if(r&&i){const t=e.map(e=>this.hot.toPhysicalColumn(e));(0,a.arrayEach)(t,e=>{s[e]=!1}),n=(0,a.arrayReduce)(s,(e,t,r)=>(t&&e.push(this.hot.toVisualColumn(r)),e),[])}!1!==this.hot.runHooks("beforeUnhideColumns",t,n,r&&i)&&(r&&i&&p(y,this).setValues(s),this.hot.view.adjustElementsSize(),this.hot.runHooks("afterUnhideColumns",t,n,r&&i,r&&n.length<t.length))}showColumn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.showColumns(t)}hideColumns(e){const t=this.getHiddenColumns(),r=this.isValidConfig(e);let n=t;r&&(n=Array.from(new Set(t.concat(e))));!1!==this.hot.runHooks("beforeHideColumns",t,n,r)&&(r&&this.hot.batchExecution(()=>{(0,a.arrayEach)(e,e=>{p(y,this).setValueAtIndex(this.hot.toPhysicalColumn(e),!0)})},!0),this.hot.runHooks("afterHideColumns",t,n,r,r&&n.length>t.length))}hideColumn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.hideColumns(t)}getHiddenColumns(){return(0,a.arrayMap)(p(y,this).getHiddenIndexes(),e=>this.hot.toVisualColumn(e))}isHidden(e){return p(y,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(){f(y,this,null),super.destroy()}}function S(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,r){if(!1===this.getSetting("copyPasteEnabled")&&this.isHidden(t)&&(r.skipColumnOnPaste=!0),this.isHidden(t-1))r.className=r.className||"",-1===r.className.indexOf("afterHiddenColumn")&&(r.className+=" afterHiddenColumn");else if(r.className){const e=r.className.split(" ");if(e.length>0){const t=e.indexOf("afterHiddenColumn");t>-1&&e.splice(t,1),r.className=e.join(" ")}}}function T(e){if(this.getSetting("copyPasteEnabled"))return e;const t=[],r=(e,r,n,s)=>{t.push({startRow:e,endRow:r,startCol:n,endCol:s})};return(0,a.arrayEach)(e,e=>{let t=!0,n=0;(0,o.rangeEach)(e.startCol,e.endCol,s=>{this.isHidden(s)?(t||r(e.startRow,e.endRow,n,s-1),t=!0):(t&&(n=s),s===e.endCol&&r(e.startRow,e.endRow,n,s),t=!1)})}),t}function N(e,t){if(!this.getSetting("indicators")||e<0)return;const r=[];e>=1&&this.isHidden(e-1)&&r.push("afterHiddenColumn"),e<this.hot.countCols()-1&&this.isHidden(e+1)&&r.push("beforeHiddenColumn"),(0,i.addClass)(t,r)}function _(e){e.items.push({name:l.SEPARATOR},(0,u.default)(this),(0,c.default)(this))}function A(){const e=this.getSetting("columns");Array.isArray(e)&&this.hideColumns(e)}t.HiddenColumns=v},27577:()=>{},27600:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(8249),r(31835);var s=n(r(24300));t.PartiallyVisibleColumnsCalculationType=class{constructor(){(0,s.default)(this,"count",0),(0,s.default)(this,"startColumn",null),(0,s.default)(this,"endColumn",null),(0,s.default)(this,"startPosition",null),(0,s.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedWidth:r,zeroBasedScrollOffset:n,viewportWidth:s}=t;r<=n&&(this.startColumn=e);r>=n&&r<=n+(n>0?s+1:s)&&(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=e)),this.endColumn=e}finalize(e){var t;const{scrollOffset:r,viewportWidth:n,inlineStartOffset:s,zeroBasedScrollOffset:i,totalColumns:o,needReverse:a,startPositions:l,columnWidth:h}=e;if(this.endColumn===o-1&&a)for(this.startColumn=this.endColumn;this.startColumn>0;){const e=l[this.endColumn]+h-l[this.startColumn-1];if(this.startColumn-=1,e>n)break}this.startPosition=null!==(t=l[this.startColumn])&&void 0!==t?t:null;r+n-(i>0?n+1:n)<-1*s||r>l.at(-1)+h||-1*r-n>0?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,o<this.endColumn&&(this.endColumn=o-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}},27727:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t._injectProductInfo=function(e,t){const r=!a(e),n="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),i="16.1.0-next-1494b74-20250909";let o,y="invalid",C="invalid";const v=function(e){let t=[][l],r=t;if(e[l]!==d("Z"))return!1;for(let t="",n="B<H4P+".split(""),s=d(n.shift());s;s=d(n.shift()||"A"))--s<""[l]?r|=(u(`${u(h(t)+(h(c(e,Math.abs(s),2))+[]).padStart(2,"0"))}`)%97||2)>>1:t=c(e,s,s?1===n[l]?9:8:6);return r===t}(e=g(e||""));if(r||n||v)if(v){const t=(0,s.default)("11/09/2025","DD/MM/YYYY"),r=Math.floor(t.toDate().getTime()/864e5),n=p(e);o=(0,s.default)(864e5*(n+1),"x").format("MMMM DD, YYYY"),r>n?(y="expired",C="expired"):(y="valid",C="valid")}else n?(y="non_commercial",C="valid"):(y="invalid",C="invalid");else y="missing",C="missing";f()&&(y="valid",C="valid");if(!m&&"valid"!==y){w[y]({keyValidityDate:o,hotVersion:i})&&console["non_commercial"===y?"info":"warn"](w[y]({keyValidityDate:o,hotVersion:i})),m=!0}if("valid"!==C&&t){if(E[C]({keyValidityDate:o,hotVersion:i})){const e=document.createElement("div");e.className="handsontable hot-display-license-info",e.innerHTML=E[C]({keyValidityDate:o,hotVersion:i}),t.appendChild(e)}}},t.getMostBottomEndPosition=function(e){var t,r;const{rowIndexMapper:n,columnIndexMapper:s}=e,{navigableHeaders:i}=e.getSettings();let o=n.getRenderableIndexesLength()-1,a=s.getRenderableIndexesLength()-1;if(o<0){if(!i||0===e.countColHeaders())return null;o=-1}if(a<0){if(!i||0===e.countColHeaders())return null;a=-1}return e._createCellCoords(null!==(t=n.getVisualFromRenderableIndex(o))&&void 0!==t?t:o,null!==(r=s.getVisualFromRenderableIndex(a))&&void 0!==r?r:a)},t.getMostTopStartPosition=function(e){const{rowIndexMapper:t,columnIndexMapper:r}=e,{navigableHeaders:n}=e.getSettings();let s=n&&e.countColHeaders()>0?-e.countColHeaders():0,i=n&&e.countRowHeaders()>0?-e.countRowHeaders():0;0===s&&(s=t.getVisualFromRenderableIndex(s));0===i&&(i=r.getVisualFromRenderableIndex(i));if(null===s||null===i)return null;return e._createCellCoords(s,i)},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=o,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=n(r(37539)),i=r(42685);function o(e){return void 0===e}function a(e){return null===e||""===e||o(e)}const l="length",h=e=>parseInt(e,16),u=e=>parseInt(e,10),c=(e,t,r)=>e.substr(t,r),d=e=>e.codePointAt(0)-65,g=e=>`${e}`.replace(/\-/g,""),p=e=>h(c(g(e),h("12"),d("F")))/(h(c(g(e),d("B"),~~![][l]))||9),f=()=>"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:()=>i.toSingleLine`
235
+ settings. Otherwise, HyperFormula's dates may not sync correctly with Handsontable's dates.`),n}return null},t.setupSheet=function(e,t){!(0,s.isUndefined)(t)&&e.doesSheetExist(t)||(t=e.addSheet(t));return t},t.unregisterEngine=function(e,t){if(e){const r=u(),n=r.get(e),s=c(),i=s.get(e);n&&n.includes(t)&&(n.splice(n.indexOf(t),1),0===n.length&&r.delete(e)),i&&i.includes(t.guid)&&(i.splice(i.indexOf(t.guid),1),0===i.length&&(s.delete(e),e.destroy()))}},r(99356),r(34478),r(31143),r(940);var n=r(55585),s=r(27727),i=r(42685),o=r(96357),a=r(21389),l=r(90742),h=r(95519);function u(){const e="engine_relationship",t=(0,n.staticRegister)(l.PLUGIN_KEY);return t.hasItem(e)||t.register(e,new Map),t.getItem(e)}function c(){const e="shared_engine_usage",t=(0,n.staticRegister)(l.PLUGIN_KEY);return t.hasItem(e)||t.register(e,new Map),t.getItem(e)}function d(e,t,r){const n=t[l.PLUGIN_KEY],s=(0,h.getEngineSettingsWithDefaultsAndOverrides)(t),i=u(),o=c();g(e,n.functions),p(e,n.language);const a=e.buildEmpty(s);return i.set(a,[r]),o.set(a,[r.guid]),f(a,n.namedExpressions),a.on("sheetAdded",()=>{a.rebuildAndRecalculate()}),a.on("sheetRemoved",()=>{a.rebuildAndRecalculate()}),a}function g(e,t){t&&t.forEach(t=>{const{name:r,plugin:n,translations:s}=t;try{e.registerFunction(r,n,s)}catch(e){(0,o.warn)(e.message)}})}function p(e,t){if(t){const{langCode:r}=t;try{e.registerLanguage(r,t)}catch(e){(0,o.warn)(e.message)}}}function f(e,t){t&&(e.suspendEvaluation(),t.forEach(t=>{const{name:r,expression:n,scope:s,options:i}=t;try{e.addNamedExpression(r,n,s,i)}catch(e){(0,o.warn)(e.message)}}),e.resumeEvaluation())}},19247:()=>{},19429:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"commentsRemove",name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_REMOVE_COMMENT)},callback(){this.getSelectedRangeActive().forAll((t,r)=>{t>=0&&r>=0&&e.removeCommentAtCell(t,r,!1)}),this.render()},disabled(){const e=this.getSelectedRangeActive();return!!(!e||e.highlight.isHeader()||this.selection.isEntireRowSelected()&&this.selection.isEntireColumnSelected()||0===this.countRenderedRows()||0===this.countRenderedCols())}}};var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230))},19451:(e,t,r)=>{"use strict";var n=r(19098),s=r(82683),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},19648:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(34478),r(29810),r(940);var s=n(r(24300)),i=r(6083),o=r(31075),a=r(40785),l=r(58231),h=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),u=r(44876),c=r(8173),d=r(63470),g=r(5864),p=r(11278),f=r(49890);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,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var E=new WeakSet;class y extends c.BaseComponent{constructor(e,t){super(e,{id:t.id,stateless:!1}),m(this,E),(0,s.default)(this,"name",""),this.name=t.name,this.elements.push(new d.MultipleSelectUI(this.hot)),this.registerHooks()}registerHooks(){this.getMultipleSelectElement().addLocalHook("keydown",e=>w(E,this,C).call(this,e)).addLocalHook("listTabKeydown",e=>this.runLocalHooks("listTabKeydown",e)),this.hot.addHook("modifyFiltersMultiSelectValue",(e,t)=>w(E,this,S).call(this,e,t))}getElements(){const e=this.getMultipleSelectElement();return[e.getSearchInputElement(),e.getSelectAllElement(),e.getClearAllElement(),this.getMultipleSelectElement()]}setState(e){if(this.reset(),e&&e.command.key===g.CONDITION_BY_VALUE){const t=this.getMultipleSelectElement();t.setItems(e.itemsSnapshot),t.setValue(e.args[0]),t.setLocale(e.locale)}}getState(){const e=this.getMultipleSelectElement(),t=e.getItems();return{command:{key:e.isSelectedAllValues()||!t.length?g.CONDITION_NONE:g.CONDITION_BY_VALUE},args:[e.getValue()],itemsSnapshot:t}}updateState(e){const t=(t,r,n,s,i)=>{const[o]=(0,a.arrayFilter)(r,e=>e.name===g.CONDITION_BY_VALUE),l={},c=this.hot.getTranslatedPhrase(h.FILTERS_VALUES_BLANK_CELLS);if(o){const r=s(t,i),h=(0,a.arrayMap)(r,e=>e.value),d=new Map(r.map(e=>[e.value,this.hot.getCellMeta(e.meta.visualRow,e.meta.visualCol)])),f=(0,u.unifyColumnValues)(h);n&&(o.args[0]=n);const m=[],y=(0,u.intersectValues)(f,o.args[0],c,e=>{e.checked&&m.push(e.value),w(E,this,v).call(this,e,d)}),C=e.editedConditionStack.column;l.locale=this.hot.getCellMeta(0,C).locale,l.args=[m],l.command=(0,p.getConditionDescriptor)(g.CONDITION_BY_VALUE),l.itemsSnapshot=y}else l.args=[],l.command=(0,p.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,r,n,s,o)=>{(0,i.addClass)(t.parentNode,"htFiltersMenuValue");const l=this.hot.rootDocument.createElement("div");return(0,i.addClass)(l,"htFiltersMenuLabel"),l.textContent=o,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(),r=t.map(e=>e.value),n=new Map(t.map(e=>[e.value,e.meta])),s=(0,u.unifyColumnValues)(r),i=(0,u.intersectValues)(s,s,e,e=>{w(E,this,v).call(this,e,n)});this.getMultipleSelectElement().setItems(i),super.reset(),this.getMultipleSelectElement().setValue(s);const o=this.hot.getPlugin("filters").getSelectedColumn();null!==o&&this.getMultipleSelectElement().setLocale(this.hot.getCellMeta(0,o.visualIndex).locale)}_getColumnVisibleValues(){const e=this.hot.getPlugin("filters").getSelectedColumn();return null===e?[]:(0,a.arrayMap)(this.hot.getDataAtCol(e.visualIndex),(t,r)=>({value:(0,u.toEmptyString)(t),meta:this.hot.getCellMeta(r,e.visualIndex)}))}}function C(e){(0,l.isKey)(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),(0,o.stopImmediatePropagation)(e))}function v(e,t){this.hot.hasHook("modifyFiltersMultiSelectValue")&&(e.visualValue=this.hot.runHooks("modifyFiltersMultiSelectValue",e.visualValue,t.get(e.value)))}function S(e,t){return"numeric"===t.type?(0,f.getRenderedValue)(e,t):e}t.ValueComponent=y},19682:(e,t,r)=>{"use strict";var n=r(53001);e.exports=!n(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},20022:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300)),i=r(21389),o=r(96645),a=n(r(93236));t.default=class{constructor(e){(0,s.default)(this,"metaCtor",class{}),(0,s.default)(this,"meta",void 0),this.meta=this.metaCtor.prototype,(0,i.extend)(this.meta,(0,a.default)()),this.meta.instance=e}getMetaConstructor(){return this.metaCtor}getMeta(){return this.meta}updateMeta(e){var t;(0,i.extend)(this.meta,e),(0,o.extendByMetaType)(this.meta,{...e,type:null!==(t=e.type)&&void 0!==t?t:this.meta.type},e)}}},20048:(e,t,r)=>{"use strict";t.__esModule=!0,t.createFocusNavigator=function(e){return(0,n.createPaginator)({initialPage:0,size:()=>e.length,onItemSelect:(t,r)=>{const n=e[t];return n instanceof i.MultipleSelectUI?r:!(n.element&&!(0,s.isVisible)(n.element))&&void n.focus()}})};var n=r(43679),s=r(6083),i=r(63470)},20188:(e,t,r)=>{"use strict";t.__esModule=!0,t.timeRenderer=i;var n=r(5022);const s=t.RENDERER_TYPE="time";function i(e,t,r,s,i,o,a){n.textRenderer.apply(this,[e,t,r,s,i,o,a]),t.dir="ltr"}i.RENDERER_TYPE=s},20362:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionRight",callback(e){const{selection:t}=e,{highlight:r}=e.getSelectedRangeActive();t.isSelectedByRowHeader()||t.isSelectedByCorner()||!(r.isCell()||r.isHeader()&&t.isSelectedByColumnHeader())||(t.markSource("keyboard"),t.transformEnd(0,e.getDirectionFactor()),t.markEndSource())}}},20390:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostInlineEnd",callback(e){const{selection:t,columnIndexMapper:r}=e;t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(e.getSelectedRangeActive().highlight.row,r.getNearestNotHiddenIndex(e.countCols()-1,-1))),t.markEndSource()}}},20514:()=>{},20536:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_CLEAR_COLUMN)},callback(e,t){const r=t[0].start.col,n=t[0].end.col;this.countRows()&&this.populateFromArray(0,r,[[null]],Math.max(t[0].start.row,t[0].end.row),n,"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,r)=>{if(e<0||r<0)return!0;const{readOnly:n}=this.getCellMeta(e,r);return!!n||(t=!0,!1)}),!t}}};var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230));const s=t.KEY="clear_column"},20559:(e,t,r)=>{"use strict";t.__esModule=!0,t.registerAllEditors=function(){(0,p.registerEditor)(s.BaseEditor),(0,p.registerEditor)(n.AutocompleteEditor),(0,p.registerEditor)(i.CheckboxEditor),(0,p.registerEditor)(o.DateEditor),(0,p.registerEditor)(a.DropdownEditor),(0,p.registerEditor)(l.HandsontableEditor),(0,p.registerEditor)(h.NumericEditor),(0,p.registerEditor)(u.PasswordEditor),(0,p.registerEditor)(c.SelectEditor),(0,p.registerEditor)(d.TextEditor),(0,p.registerEditor)(g.TimeEditor)};var n=r(50057);t.AutocompleteEditor=n.AutocompleteEditor,t.AUTOCOMPLETE_EDITOR=n.EDITOR_TYPE;var s=r(95484);t.BaseEditor=s.BaseEditor,t.BASE_EDITOR=s.EDITOR_TYPE;var i=r(14864);t.CheckboxEditor=i.CheckboxEditor,t.CHECKBOX_EDITOR=i.EDITOR_TYPE;var o=r(85689);t.DateEditor=o.DateEditor,t.DATE_EDITOR=o.EDITOR_TYPE;var a=r(8116);t.DropdownEditor=a.DropdownEditor,t.DROPDOWN_EDITOR=a.EDITOR_TYPE;var l=r(69488);t.HandsontableEditor=l.HandsontableEditor,t.HANDSONTABLE_EDITOR=l.EDITOR_TYPE;var h=r(12638);t.NumericEditor=h.NumericEditor,t.NUMERIC_EDITOR=h.EDITOR_TYPE;var u=r(41736);t.PasswordEditor=u.PasswordEditor,t.PASSWORD_EDITOR=u.EDITOR_TYPE;var c=r(25589);t.SelectEditor=c.SelectEditor,t.SELECT_EDITOR=c.EDITOR_TYPE;var d=r(91698);t.TextEditor=d.TextEditor,t.TEXT_EDITOR=d.EDITOR_TYPE;var g=r(78072);t.TimeEditor=g.TimeEditor,t.TIME_EDITOR=g.EDITOR_TYPE;var p=r(69264);t.registerEditor=p.registerEditor,t.RegisteredEditor=p.RegisteredEditor,t._getEditorInstance=p._getEditorInstance,t.getEditor=p.getEditor,t.getEditorInstance=p.getEditorInstance,t.getRegisteredEditorNames=p.getRegisteredEditorNames,t.getRegisteredEditors=p.getRegisteredEditors,t.hasEditor=p.hasEditor},20620:()=>{},20635:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"borders:top",name(){let e=this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_BORDERS_TOP);return(0,s.checkSelectionBorders)(this,"top")&&(e=(0,s.markSelected)(e)),e},callback(t,r){const n=(0,s.checkSelectionBorders)(this,"top");e.prepareBorder(r,"top",n)}}};var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),s=r(36053)},20637:(e,t,r)=>{"use strict";var n=r(2382),s=r(98363),i=r(70906);e.exports=n?function(e,t,r){return s.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},20678:()=>{},20745:()=>{},20954:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(34478),r(66133);var s=n(r(24300)),i=r(21389),o=r(40785);t.default=class{constructor(e){(0,s.default)(this,"plugin",void 0),(0,s.default)(this,"mergedCellsCollection",void 0),(0,s.default)(this,"currentFillData",null),this.plugin=e,this.mergedCellsCollection=this.plugin.mergedCellsCollection}getDirection(e,t){let r=null;return r=t[0]===e[0]&&t[1]===e[1]&&t[3]===e[3]?"down":t[2]===e[2]&&t[1]===e[1]&&t[3]===e[3]?"up":t[1]===e[1]&&t[2]===e[2]?"right":"left",r}snapDragArea(e,t,r,n){const s=t.slice(0),i=this.getAutofillSize(e,t,r),[o,a,l,h]=e,u=["up","down"].indexOf(r)>-1?l-o+1:h-a+1,c=i-Math.floor(i/u)*u,d=this.getFarthestCollection(e,t,r,n);if(d)if("down"===r){const e=d.row+d.rowspan-o-c;s[2]+e>=this.plugin.hot.countRows()?s[2]-=c:s[2]+=c?e:0}else if("right"===r){const e=d.col+d.colspan-a-c;s[3]+e>=this.plugin.hot.countCols()?s[3]-=c:s[3]+=c?e:0}else if("up"===r){const e=l-c-d.row+1;s[0]+e<0?s[0]+=c:s[0]-=c?e:0}else if("left"===r){const e=h-c-d.col+1;s[1]+e<0?s[1]+=c:s[1]-=c?e:0}return this.updateCurrentFillCache({baseArea:e,dragDirection:r,foundMergedCells:n,fillSize:i,dragArea:s,cycleLength:u}),s}updateCurrentFillCache(e){this.currentFillData||(this.currentFillData={}),(0,i.extend)(this.currentFillData,e)}getAutofillSize(e,t,r){const[n,s,i,o]=e,[a,l,h,u]=t;switch(r){case"up":return n-a;case"down":return h-i;case"left":return s-l;case"right":return u-o;default:return null}}getDragArea(e,t,r){const[n,s,i,o]=e,[a,l,h,u]=t;switch(r){case"up":return[a,l,n-1,o];case"down":{const e=this.mergedCellsCollection.get(h,o);return[i+1,s,h+(e?e.rowspan-1:0),o]}case"left":return[a,l,i,s-1];case"right":{const e=this.mergedCellsCollection.get(h,o);return[n,o+(e?e.colspan-1:0),h,u]}default:return null}}getFarthestCollection(e,t,r,n){const[s,i,a,l]=e,h=["up","down"].indexOf(r)>-1,u=h?a:l,c=h?s:i,d=this.getAutofillSize(e,t,r),g=h?a-s+1:l-i+1,p=d-Math.floor(d/g)*g;let f=null,m=null,w=null;switch(r){case"up":f="includesVertically",w=u-p+1;break;case"left":f="includesHorizontally",w=u-p+1;break;case"down":f="includesVertically",w=c+p-1;break;case"right":f="includesHorizontally",w=c+p-1}return(0,o.arrayEach)(n,e=>{e[f](w)&&e.isFarther(m,r)&&(m=e)}),m}recreateAfterDataPopulation(e){if(!this.currentFillData)return;const t=this.getRangeFromChanges(e),r=this.currentFillData.foundMergedCells,n=this.currentFillData.dragDirection,s=(e,r)=>{switch(n){case"up":return e.row-r>=t.from.row;case"down":return e.row+e.rowspan-1+r<=t.to.row;case"left":return e.col-r>=t.from.column;case"right":return e.col+e.colspan-1+r<=t.to.column;default:return null}};let i=0,o=null,a=1;do{for(let e=0;e<r.length;e+=1){if(o=r[e],i=a*this.currentFillData.cycleLength,s(o,i))switch(n){case"up":this.plugin.mergedCellsCollection.add({row:o.row-i,rowspan:o.rowspan,col:o.col,colspan:o.colspan},!0);break;case"down":this.plugin.mergedCellsCollection.add({row:o.row+i,rowspan:o.rowspan,col:o.col,colspan:o.colspan},!0);break;case"left":this.plugin.mergedCellsCollection.add({row:o.row,rowspan:o.rowspan,col:o.col-i,colspan:o.colspan},!0);break;case"right":this.plugin.mergedCellsCollection.add({row:o.row,rowspan:o.rowspan,col:o.col+i,colspan:o.colspan},!0)}e===r.length-1&&(a+=1)}}while(s(o,i));this.currentFillData=null,this.plugin.hot.render(),r.length>0&&this.plugin.ifChromeForceRepaint()}getRangeFromChanges(e){const t={min:null,max:null},r={min:null,max:null};return(0,o.arrayEach)(e,e=>{const n=e[0],s=this.plugin.hot.propToCol(e[1]);(null===t.min||n<t.min)&&(t.min=n),(null===t.max||n>t.max)&&(t.max=n),(null===r.min||s<r.min)&&(r.min=s),(null===r.max||s>r.max)&&(r.max=s)}),{from:{row:t.min,column:r.min},to:{row:t.max,column:r.max}}}dragAreaOverlapsCollections(e,t,r){const n=this.getDragArea(e,t,r),[s,i,o,a]=n,l=this.plugin.hot._createCellCoords(s,i),h=this.plugin.hot._createCellCoords(o,a),u=this.plugin.hot._createCellRange(l,l,h);if(0===this.mergedCellsCollection.getWithinRange(u,!0).length)return!1;const c=this.mergedCellsCollection.getWithinRange(u,!1);return 0===c.length||("up"===r||"down"===r?!c.every(e=>{let{colspan:t}=e;return t===u.getWidth()}):!c.every(e=>{let{rowspan:t}=e;return t===u.getHeight()}))}}},21177:e=>{"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},21389:(e,t,r)=>{"use strict";t.__esModule=!0,t.assignObjectDefaults=function e(t,r){if("object"!=typeof t||null===t)return r;if("object"!=typeof r||null===r)return t;const n={};return Object.keys(r).forEach(s=>{"object"!=typeof r[s]||null===r[s]||Array.isArray(r[s])?n[s]=a(t,s)&&void 0!==t[s]?t[s]:r[s]:n[s]=e(t[s],r[s])}),Object.keys(t).forEach(e=>{a(n,e)||(n[e]=t[e])}),n},t.clone=function(e){const t={};return o(e,(e,r)=>{t[r]=e}),t},t.createObjectPropListener=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";const r=`_${t}`,n={_touched:!1,[r]:e,isTouched(){return this._touched}};return Object.defineProperty(n,t,{get(){return this[r]},set(e){this._touched=!0,this[r]=e},enumerable:!0,configurable:!0}),n},t.deepClone=s,t.deepExtend=function e(t,r){o(r,(n,s)=>{r[s]&&"object"==typeof r[s]?(t[s]||(Array.isArray(r[s])?t[s]=[]:"[object Date]"===Object.prototype.toString.call(r[s])?t[s]=r[s]:t[s]={}),e(t[s],r[s])):t[s]=r[s]})},t.deepObjectSize=function(e){if(!i(e))return 0;const t=function(e){let r=0;return i(e)?o(e,(e,n)=>{"__children"!==n&&(r+=t(e))}):r+=1,r};return t(e)},t.defineGetter=function(e,t,r,n){n.value=r,n.writable=!1!==n.writable,n.enumerable=!1!==n.enumerable,n.configurable=!1!==n.configurable,Object.defineProperty(e,t,n)},t.duckSchema=function e(t){let r;Array.isArray(t)?r=t.length?new Array(t.length).fill(null):[]:(r={},o(t,(t,n)=>{"__children"!==n&&(t&&"object"==typeof t&&!Array.isArray(t)?r[n]=e(t):Array.isArray(t)?t.length&&"object"==typeof t[0]&&!Array.isArray(t[0])?r[n]=[e(t[0])]:r[n]=[]:r[n]=null)}));return r},t.extend=function(e,t,r){const n=Array.isArray(r);return o(t,(t,s)=>{(!1===n||r.includes(s))&&(e[s]=t)}),e},t.getProperty=function(e,t){const r=t.split(".");let n=e;return o(r,e=>{if(n=n[e],void 0===n)return n=void 0,!1}),n},t.hasOwnProperty=a,t.inherit=function(e,t){return t.prototype.constructor=t,e.prototype=new t,e.prototype.constructor=e,e},t.isObject=i,t.isObjectEqual=function(e,t){return JSON.stringify(e)===JSON.stringify(t)},t.mixin=function(e){e.MIXINS||(e.MIXINS=[]);for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];return(0,n.arrayEach)(r,t=>{e.MIXINS.push(t.MIXIN_NAME),o(t,(t,r)=>{if(void 0!==e.prototype[r])throw new Error(`Mixin conflict. Property '${r}' already exist and cannot be overwritten.`);if("function"==typeof t)e.prototype[r]=t;else{const n=function(e,t){const r=`_${e}`;return function(){return void 0===this[r]&&(this[r]=(e=>{let t=e;return(Array.isArray(t)||i(t))&&(t=s(t)),t})(t)),this[r]}},o=function(e){const t=`_${e}`;return function(e){this[t]=e}};Object.defineProperty(e.prototype,r,{get:n(r,t),set:o(r),configurable:!0})}})}),e},t.objectEach=o,t.setProperty=function(e,t,r){if("string"!=typeof t)return;const n=t.split(".");let s=e;n.forEach((e,t)=>{"__proto__"!==e&&"constructor"!==e&&"prototype"!==e&&(t!==n.length-1?(a(s,e)||(s[e]={}),s=s[e]):s[e]=r)})},r(52490),r(99356),r(58584),r(34478),r(31143);var n=r(40785);function s(e){return"object"==typeof e?JSON.parse(JSON.stringify(e)):e}function i(e){return"[object Object]"===Object.prototype.toString.call(e)}function o(e,t){for(const r in e)if((!e.hasOwnProperty||e.hasOwnProperty&&Object.prototype.hasOwnProperty.call(e,r))&&!1===t(e[r],r,e))break;return e}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},21422:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300));t.FixedPageSizeStrategy=class{constructor(){(0,s.default)(this,"pageSize",1),(0,s.default)(this,"totalItems",0),(0,s.default)(this,"totalPages",0)}calculate(e){let{pageSize:t,totalItems:r}=e;this.pageSize=Math.max(t,1),this.totalItems=r,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}}}},21439:(e,t,r)=>{"use strict";var n=r(19098),s=Error,i=n("".replace),o=String(new s("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,l=a.test(o);e.exports=function(e,t){if(l&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},21574:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(79956)),i=r(6083);class o extends s.default{build(){super.build(),(0,i.addClass)(this._element,"ht__manualRowMove--guideline")}}t.default=o},21639:(e,t,r)=>{"use strict";var n=r(72820),s=r(77439),i=r(70792),o=r(90501),a=r(21177),l=r(64276),h=r(91509),u=r(33973),c=r(99793),d=r(47150),g=r(14483),p=!u&&!d("filter",function(){}),f=!u&&!p&&g("filter",TypeError),m=u||p||f,w=l(function(){for(var e,t,r=this.iterator,n=this.predicate,i=this.next;;){if(e=o(s(i,r)),this.done=!!e.done)return;if(t=e.value,h(r,n,[t,this.counter++],!0))return t}});n({target:"Iterator",proto:!0,real:!0,forced:m},{filter:function(e){o(this);try{i(e)}catch(e){c(this,"throw",e)}return f?s(f,this,e):new w(a(this),{predicate:e})}})},21769:(e,t,r)=>{"use strict";var n=r(19098),s=r(53001),i=r(44827),o=r(19451),a=r(2382),l=r(10768).CONFIGURABLE,h=r(88932),u=r(62579),c=u.enforce,d=u.get,g=String,p=Object.defineProperty,f=n("".slice),m=n("".replace),w=n([].join),E=a&&!s(function(){return 8!==p(function(){},"length",{value:8}).length}),y=String(String).split("String"),C=e.exports=function(e,t,r){"Symbol("===f(g(t),0,7)&&(t="["+m(g(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!o(e,"name")||l&&e.name!==t)&&(a?p(e,"name",{value:t,configurable:!0}):e.name=t),E&&r&&o(r,"arity")&&e.length!==r.arity&&p(e,"length",{value:r.arity});try{r&&o(r,"constructor")&&r.constructor?a&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=c(e);return o(n,"source")||(n.source=w(y,"string"==typeof t?t:"")),e};Function.prototype.toString=C(function(){return i(this)&&d(this).source||h(this)},"toString")},21860:()=>{},22063:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(14864),s=r(37864),i=r(83247);const o=t.CELL_TYPE="checkbox";t.CheckboxCellType={CELL_TYPE:o,editor:n.CheckboxEditor,renderer:s.checkboxRenderer,valueSetter:i.valueSetter}},22199:(e,t,r)=>{"use strict";t.__esModule=!0,t.loadingContent=function(e){let{id:t,icon:r,title:s,description:i}=e;return`\n <div class="${n.LOADING_CLASS_NAME}__content">\n <i class="${n.LOADING_CLASS_NAME}__icon">${r}</i>\n <div class="${n.LOADING_CLASS_NAME}__text">\n <h2 id="${t}-${n.PLUGIN_KEY}-title" class="${n.LOADING_CLASS_NAME}__title">${s}</h2>\n ${i?`<p id="${t}-${n.PLUGIN_KEY}-description" class="${n.LOADING_CLASS_NAME}__description">${i}</p>`:""}\n </div>\n </div>\n `};var n=r(24834)},22208:(e,t,r)=>{"use strict";var n=r(79268);e.exports=function(e){return n(e.length)}},22350:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356);var s=n(r(24300)),i=r(53383),o=r(40785),a=r(4407),l=r(96357),h=r(6083),u=r(31075),c=r(88453),d=r(13618);function g(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function p(e,t){return e.get(m(e,t))}function f(e,t,r){return e.set(m(e,t),r),r}function m(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const w=t.PLUGIN_KEY="collapsibleColumns",E=t.PLUGIN_PRIORITY=290,y=["nestedHeaders"],C="collapsibleIndicator",v=w,S=new Map([["collapse",{hideColumn:!0,beforeHook:"beforeColumnCollapse",afterHook:"afterColumnCollapse"}],["expand",{hideColumn:!1,beforeHook:"beforeColumnExpand",afterHook:"afterColumnExpand"}]]);var R=new WeakMap,T=new WeakSet;class N extends i.BasePlugin{constructor(){var e,t;super(...arguments),g(e=this,t=T),t.add(e),(0,s.default)(this,"nestedHeadersPlugin",null),(0,s.default)(this,"headerStateManager",null),function(e,t,r){g(e,t),t.set(e,r)}(this,R,null)}static get PLUGIN_KEY(){return w}static get PLUGIN_PRIORITY(){return E}static get PLUGIN_DEPS(){return["plugin:NestedHeaders"]}static get SETTING_KEYS(){return[w,...y]}isEnabled(){return!!this.hot.getSettings()[w]}enablePlugin(){var e=this;if(this.enabled)return;const{nestedHeaders:t}=this.hot.getSettings();t||(0,l.warn)("You need to configure the Nested Headers plugin in order to use collapsible headers."),f(R,this,this.hot.columnIndexMapper.createAndRegisterIndexMap(this.pluginName,"hiding")),this.nestedHeadersPlugin=this.hot.getPlugin("nestedHeaders"),this.headerStateManager=this.nestedHeadersPlugin.getStateManager(),this.addHook("init",()=>m(T,this,b).call(this)),this.addHook("afterLoadData",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return m(T,e,M).call(e,...r)}),this.addHook("afterGetColHeader",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return m(T,e,_).call(e,...r)}),this.addHook("beforeOnCellMouseDown",(e,t,r)=>m(T,this,A).call(this,e,t,r)),this.registerShortcuts(),super.enablePlugin(),this.updatePlugin()}updatePlugin(){if(this.hot.view){if(!this.nestedHeadersPlugin.detectedOverlappedHeaders){const{collapsibleColumns:e}=this.hot.getSettings();"boolean"==typeof e?this.headerStateManager.mapState(e=>({collapsible:e.origColspan>1})):Array.isArray(e)&&(this.headerStateManager.mapState(()=>({collapsible:!1})),this.headerStateManager.mergeStateWith(e))}super.updatePlugin()}}disablePlugin(){this.hot.columnIndexMapper.unregisterMap(this.pluginName),f(R,this,null),this.nestedHeadersPlugin=null,this.unregisterShortcuts(),this.clearButtons(),super.disablePlugin()}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Enter"]],callback:()=>{var e;const{row:t,col:r}=this.hot.getSelectedRangeActive().highlight,{collapsible:n,isCollapsed:s,columnIndex:i}=null!==(e=this.headerStateManager.getHeaderTreeNodeData(t,r))&&void 0!==e?e:{};if(n)return s?this.expandSection({row:t,col:i}):this.collapseSection({row:t,col:i}),!1},runOnlyIf:()=>{var e,t;return(null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.isSingle())&&(null===(t=this.hot.getSelectedRangeActive())||void 0===t?void 0:t.highlight.isHeader())},group:v,relativeToGroup:c.EDITOR_EDIT_GROUP,position:"before"})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(v)}clearButtons(){if(!this.hot.view)return;const e=this.hot.view._wt.getSetting("columnHeaders").length,t=this.hot.view._wt.wtTable.THEAD,r=this.hot.view._wt.wtOverlays.topOverlay.clone.wtTable.THEAD,n=this.hot.view._wt.wtOverlays.topInlineStartCornerOverlay?this.hot.view._wt.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.THEAD:null,s=function(e){e&&e.parentNode.removeChild(e)};(0,a.rangeEach)(0,e-1,e=>{const i=t.childNodes[e],o=r.childNodes[e],l=n?n.childNodes[e]:null;(0,a.rangeEach)(0,i.childNodes.length-1,e=>{let t=i.childNodes[e].querySelector(`.${C}`);s(t),o&&o.childNodes[e]&&(t=o.childNodes[e].querySelector(`.${C}`),s(t)),n&&l&&l.childNodes[e]&&(t=l.childNodes[e].querySelector(`.${C}`),s(t))})},!0)}expandSection(e){this.toggleCollapsibleSection([e],"expand")}collapseSection(e){this.toggleCollapsibleSection([e],"collapse")}toggleAllCollapsibleSections(e){const t=this.headerStateManager.mapNodes(t=>{const{collapsible:r,origColspan:n,headerLevel:s,columnIndex:i,isCollapsed:o}=t;if(!0===r&&n>1&&(o&&"expand"===e||!o&&"collapse"===e))return{row:this.headerStateManager.levelToRowCoords(s),col:i}});this.toggleCollapsibleSection(t,e)}collapseAll(){this.toggleAllCollapsibleSections("collapse")}expandAll(){this.toggleAllCollapsibleSections("expand")}toggleCollapsibleSection(e,t){if(!S.has(t))throw new Error(`Unsupported action is passed (${t}).`);if(!Array.isArray(e))return;const r=(0,o.arrayFilter)(e,e=>{let{row:t}=e;return t<0});let n=r.length>0;(0,o.arrayEach)(r,e=>{var r;let{row:s,col:i}=e;const{collapsible:o,isCollapsed:a}=null!==(r=this.headerStateManager.getHeaderSettings(s,i))&&void 0!==r?r:{};if(!o||a&&"collapse"===t||!a&&"expand"===t)return n=!1,!1});const s=[],i=[];n&&(0,o.arrayEach)(r,e=>{let{row:r,col:n}=e;const{colspanCompensation:o,affectedColumns:a,rollbackModification:l}=this.headerStateManager.triggerNodeModification(t,r,n);o>0&&(i.push(...a),s.push(l))});const a=this.getCollapsedColumns();let l=[];"collapse"===t?l=(0,o.arrayUnique)([...a,...i]):"expand"===t&&(l=(0,o.arrayFilter)(a,e=>!i.includes(e)));const h=S.get(t);if(!1===this.hot.runHooks(h.beforeHook,a,l,n))return void(0,o.arrayEach)(s,e=>{e()});this.hot.batchExecution(()=>{(0,o.arrayEach)(i,e=>{p(R,this).setValueAtIndex(this.hot.toPhysicalColumn(e),h.hideColumn)})},!0);const u=this.getCollapsedColumns().length!==a.length,c=this.hot.getSelectedRangeActive();if("collapse"===t&&u&&c){const{row:e,col:t}=c.highlight;if((this.hot.rowIndexMapper.isHidden(e)||this.hot.columnIndexMapper.isHidden(t))&&i.includes(t)){const r=e>=0?this.hot.rowIndexMapper.getNearestNotHiddenIndex(e,1,!0):e,n=t>=0?this.hot.columnIndexMapper.getNearestNotHiddenIndex(t,1,!0):t;null!==r&&null!==n&&this.hot.selectCell(r,n)}}this.hot.runHooks(h.afterHook,a,l,n,u),this.hot.view.adjustElementsSize(),this.hot.render()}getCollapsedColumns(){return p(R,this).getHiddenIndexes()}destroy(){f(R,this,null),super.destroy()}}function _(e,t,r){var n;const{collapsible:s,origColspan:i,isCollapsed:o}=null!==(n=this.headerStateManager.getHeaderSettings(r,e))&&void 0!==n?n:{},a=s&&i>1&&e>=this.hot.getSettings().fixedColumnsStart,l=this.hot.getSettings().ariaTags;let u=t.querySelector(`.${C}`);var c;((0,h.removeAttribute)(t,[(0,d.A11Y_EXPANDED)("")[0]]),a)?(u||(u=this.hot.rootDocument.createElement("div"),(0,h.addClass)(u,C),t.querySelector("div:first-child").appendChild(u)),(0,h.removeClass)(u,["collapsed","expanded"]),o?((0,h.addClass)(u,"collapsed"),(0,h.fastInnerText)(u,"+"),l&&(0,h.setAttribute)(t,...(0,d.A11Y_EXPANDED)(!1))):((0,h.addClass)(u,"expanded"),(0,h.fastInnerText)(u,"-"),l&&(0,h.setAttribute)(t,...(0,d.A11Y_EXPANDED)(!0))),l&&(0,h.setAttribute)(u,...(0,d.A11Y_HIDDEN)())):null===(c=u)||void 0===c||c.remove()}function A(e,t){(0,h.hasClass)(e.target,C)&&((0,h.hasClass)(e.target,"expanded")?(this.eventManager.fireEvent(e.target,"mouseup"),this.toggleCollapsibleSection([t],"collapse")):(0,h.hasClass)(e.target,"collapsed")&&(this.eventManager.fireEvent(e.target,"mouseup"),this.toggleCollapsibleSection([t],"expand")),(0,u.stopImmediatePropagation)(e))}function b(){this.updatePlugin()}function M(e,t){t||this.updatePlugin()}t.CollapsibleColumns=N},22493:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.createHighlight=function(e){let{...t}=e;return new i.default({className:"fill",border:{width:1,color:"#ff0000"},...t,selectionType:s.HIGHLIGHT_FILL_TYPE})};var s=r(74216),i=n(r(44982))},22546:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(8249),r(31835);var s=n(r(24300));t.FullyVisibleColumnsCalculationType=class{constructor(){(0,s.default)(this,"count",0),(0,s.default)(this,"startColumn",null),(0,s.default)(this,"endColumn",null),(0,s.default)(this,"startPosition",null),(0,s.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedWidth:r,zeroBasedScrollOffset:n,viewportWidth:s,columnWidth:i}=t;r>=n&&r+i<=n+(n>0?s+1:s)&&(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=e),this.endColumn=e)}finalize(e){var t;const{scrollOffset:r,viewportWidth:n,inlineStartOffset:s,zeroBasedScrollOffset:i,totalColumns:o,needReverse:a,startPositions:l,columnWidth:h}=e;if(this.endColumn===o-1&&a)for(this.startColumn=this.endColumn;this.startColumn>0;){const e=l[this.endColumn]+h-l[this.startColumn-1];if(e<=n&&(this.startColumn-=1),e>=n)break}this.startPosition=null!==(t=l[this.startColumn])&&void 0!==t?t:null;const u=r+n-(i>0?n+1:n),c=null===this.startColumn?0:e.getColumnWidth(this.startColumn);u<-1*s||r>l.at(-1)||-1*r-n>-1*c?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,o<this.endColumn&&(this.endColumn=o-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}},22849:(e,t,r)=>{"use strict";var n=r(20637),s=r(21439),i=r(11613),o=Error.captureStackTrace;e.exports=function(e,t,r,a){i&&(o?o(e,t):n(e,"stack",s(r,a)))}},23002:(e,t,r)=>{"use strict";var n=r(19098),s=0,i=Math.random(),o=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},23173:(e,t,r)=>{"use strict";t.__esModule=!0,t.getDragDirectionAndRange=function(e,t,r){let n,s,i;t[0]===e[0]&&t[1]<e[1]?(i="left",n=r(t[0],t[1]),s=r(t[2],e[1]-1)):t[2]===e[2]&&t[0]===e[0]&&t[3]>e[3]?(i="right",n=r(t[0],e[3]+1),s=r(t[2],t[3])):t[0]<e[0]&&t[1]===e[1]?(i="up",n=r(t[0],t[1]),s=r(e[0]-1,t[3])):t[2]>e[2]&&t[1]===e[1]&&(i="down",n=r(e[2]+1,t[1]),s=r(t[2],t[3]));n&&n.normalize();s&&s.normalize();return{directionOfDrag:i,startOfDragCoords:n,endOfDragCoords:s}},t.getMappedFillHandleSetting=function(e){const t={};!0===e?(t.directions=Object.keys(i),t.autoInsertRow=!0):(0,n.isObject)(e)?((0,s.isDefined)(e.autoInsertRow)?e.direction===i.horizontal?t.autoInsertRow=!1:t.autoInsertRow=e.autoInsertRow:t.autoInsertRow=!1,(0,s.isDefined)(e.direction)?t.directions=[e.direction]:t.directions=Object.keys(i)):"string"==typeof e?(t.directions=[e],t.autoInsertRow=!0):(t.directions=[],t.autoInsertRow=!1);return t};var n=r(21389),s=r(27727);const i=t.DIRECTIONS={horizontal:"horizontal",vertical:"vertical"}},23224:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(50575);t.CELL_TYPE=n.CELL_TYPE,t.HandsontableCellType=n.HandsontableCellType},23304:(e,t,r)=>{"use strict";t.__esModule=!0,r(52490),r(34478),r(31143);var n=r(53383),s=r(96832);function i(e,t,r){o(e,t),t.set(e,r)}function o(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function a(e,t,r){return e.set(h(e,t),r),r}function l(e,t){return e.get(h(e,t))}function h(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const u=t.PLUGIN_KEY="stretchColumns",c=t.PLUGIN_PRIORITY=155;var d=new WeakMap,g=new WeakMap,p=new WeakMap,f=new WeakSet;class m extends n.BasePlugin{constructor(){var e,t;super(...arguments),o(e=this,t=f),t.add(e),i(this,d,new s.StretchCalculator(this.hot)),i(this,g,null),i(this,p,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 u}static get PLUGIN_PRIORITY(){return c}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(p,this).observe(this.hot.rootElement),this.addHook("beforeRender",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return h(f,e,E).call(e,...r)}),this.addHook("modifyColWidth",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return h(f,e,w).call(e,...r)},10),super.enablePlugin())}updatePlugin(){l(d,this).useStrategy(this.hot.getSettings().stretchH),super.updatePlugin()}disablePlugin(){super.disablePlugin(),l(p,this).unobserve(this.hot.rootElement)}getColumnWidth(e){return l(d,this).getStretchedWidth(e)}destroy(){l(p,this).disconnect(),a(p,this,null),a(d,this,null),super.destroy()}}function w(e,t,r){if(r===this.pluginName)return;const n=this.getColumnWidth(t);return"number"==typeof n?n:e}function E(e){e&&l(d,this).refreshStretching()}t.StretchColumns=m},23451:(e,t,r)=>{"use strict";t.__esModule=!0,t.condition=o;var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),s=r(11278);const i=t.CONDITION_NAME="gte";function o(e,t){let[r]=t,n=r;return"numeric"===e.meta.type&&(n=parseFloat(n,10)),e.value>=n}(0,s.registerCondition)(i,o,{name:n.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL,inputsCount:1,showOperators:!0})},23624:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(6083),s=r(31075),i=r(21389),o=r(55924),a=r(2029);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 r=this,n=this.wot.rootDocument.body,i=t.getBoundingClientRect();t.style.display="none",this.eventManager.addEventListener(n,"mousemove",function e(s){var o;((o=s).clientY<Math.floor(i.top)||o.clientY>Math.ceil(i.top+i.height)||o.clientX<Math.floor(i.left)||o.clientX>Math.ceil(i.left+i.width))&&(r.eventManager.removeEventListener(n,"mousemove",e),t.style.display="block")})}createBorders(e){const{rootDocument:t}=this.wot;this.main=t.createElement("div");const r=["top","start","bottom","end","corner"];let n=this.main.style;n.position="absolute",n.top=0,n.left=0;for(let s=0;s<5;s++){const i=r[s],o=t.createElement("div");o.className=`wtBorder ${this.settings.className||""}`,this.settings[i]&&this.settings[i].hide&&(o.className+=" hidden"),n=o.style,n.backgroundColor=this.settings[i]&&this.settings[i].color?this.settings[i].color:e.border.color,n.height=this.settings[i]&&this.settings[i].width?`${this.settings[i].width}px`:`${e.border.width}px`,n.width=this.settings[i]&&this.settings[i].width?`${this.settings[i].width}px`:`${e.border.width}px`,this.main.appendChild(o)}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,o.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&this.createMultipleSelectorHandles(),this.disappear();const{wtTable:s}=this.wot;let i=s.bordersHolder;i||(i=t.createElement("div"),i.className="htBorders",s.bordersHolder=i,s.spreader.appendChild(i)),i.appendChild(this.main)}createMultipleSelectorHandles(){const{rootDocument:e,wtSettings:t}=this.wot,r=t.getSetting("stylesHandler"),n=r.getCSSVariableValue("cell-mobile-handle-size"),s=r.getCSSVariableValue("cell-mobile-handle-border-radius"),o=r.getCSSVariableValue("cell-mobile-handle-background-color"),a=r.getCSSVariableValue("cell-mobile-handle-border-width"),l=r.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,i.objectEach)(h,(e,t)=>{this.selectionHandles.styles.bottomHitArea[t]=e,this.selectionHandles.styles.topHitArea[t]=e});const u=r.isClassicTheme()?{position:"absolute",height:"10px",width:"10px","border-radius":`${parseInt(10/1.5,10)}px`,background:"#F5F5FF",border:"1px solid #4285c8"}:{position:"absolute",height:`${n}px`,width:`${n}px`,"border-radius":`${s}px`,background:`${o}`,border:`${a}px solid ${l}`};(0,i.objectEach)(u,(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 r=this.wot.selectionManager.getAreaSelection();return!(!r.cellRange||e===r.cellRange.to.row&&t===r.cellRange.to.col)}updateMultipleSelectionHandlesPosition(e,t,r,n,s,i){const o=this.wot.wtSettings.getSetting("rtlMode")?"right":"left",{top:a,topHitArea:l,bottom:h,bottomHitArea:u}=this.selectionHandles.styles,c=parseInt(a.borderWidth,10),d=parseInt(a.width,10),g=parseInt(l.width,10),p=this.wot.wtTable.getWidth(),f=this.wot.wtTable.getHeight();a.top=`${parseInt(r-d-1,10)}px`,a[o]=`${parseInt(n-d-1,10)}px`,l.top=`${parseInt(r-g/4*3,10)}px`,l[o]=`${parseInt(n-g/4*3,10)}px`;const m=Math.min(parseInt(n+s,10),p-d-2*c),w=Math.min(parseInt(n+s-g/4,10),p-g-2*c);h[o]=`${m}px`,u[o]=`${w}px`;const E=Math.min(parseInt(r+i,10),f-d-2*c),y=Math.min(parseInt(r+i-g/4,10),f-g-2*c);h.top=`${E}px`,u.top=`${y}px`,this.settings.border.cornerVisible&&this.settings.border.cornerVisible()?(a.display="block",l.display="block",this.isPartRange(e,t)?(h.display="none",u.display="none"):(h.display="block",u.display="block")):(a.display="none",h.display="none",l.display="none",u.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,r,s,i]=e;if(t<0&&s<0||r<0&&i<0)return void this.disappear();const{wtTable:a,rootDocument:l,rootWindow:h}=this.wot,u=t!==s||r!==i,c=this.wot.wtSettings.getSetting("stylesHandler").isClassicTheme(),d=a.getFirstRenderedRow(),g=a.getLastRenderedRow(),p=a.getFirstRenderedColumn(),f=a.getLastRenderedColumn();if(p<0&&f<0||d<0&&g<0)return void this.disappear();let m;if(u){if(r=Math.max(r,p),i=Math.min(i,f),t=Math.max(t,d),s=Math.min(s,g),i<r||s<t)return void this.disappear();m=a.getCell(this.wot.createCellCoords(t,r))}else if(m=a.getCell(this.wot.createCellCoords(t,r)),!(0,n.isHTMLElement)(m))return void this.disappear();const w=u?a.getCell(this.wot.createCellCoords(s,i)):m,E=(0,n.offset)(m),y=u?(0,n.offset)(w):E,C=(0,n.offset)(a.TABLE),v=E.top,S=E.left,R=this.wot.wtSettings.getSetting("rtlMode");let T=0,N=0;if(R){const e=(0,n.outerWidth)(a.TABLE),t=(0,n.outerWidth)(m),r=h.innerWidth-C.left-e;N=S+t-y.left,T=h.innerWidth-S-t-r-1}else N=y.left+(0,n.outerWidth)(w)-S,T=S-C.left-1;if(this.isEntireColumnSelected(t,s)){const e=t,n=this.getDimensionsFromHeader("columns",r,i,e,C);let s=null;n&&([s,T,N]=n),s&&(m=s)}let _=v-C.top-1,A=y.top+(0,n.outerHeight)(w)-v;if(this.isEntireRowSelected(r,i)){const e=r,n=this.getDimensionsFromHeader("rows",t,s,e,C);let i=null;n&&([i,_,A]=n),i&&(m=i)}const b=h.getComputedStyle(m);parseInt(b.borderTopWidth,10)>0&&(_+=1,A=A>0?A-1:0),parseInt(b[R?"borderRightWidth":"borderLeftWidth"],10)>0&&(T+=1,N=N>0?N-1:0);const M=R?"right":"left",I=Math.ceil(this.settings.border.width/2);this.topStyle.top=`${_}px`,this.topStyle[M]=`${T}px`,this.topStyle.width=`${N+I}px`,this.topStyle.display="block",this.startStyle.top=`${_}px`,this.startStyle[M]=`${T}px`,this.startStyle.height=`${A+I}px`,this.startStyle.display="block",this.bottomStyle.top=`${_+A-parseInt(this.bottomStyle.height,10)+I}px`,this.bottomStyle[M]=`${T}px`,this.bottomStyle.width=`${N+I}px`,this.bottomStyle.display="block",this.endStyle.top=`${_}px`,this.endStyle[M]=`${T+N-parseInt(this.endStyle.width,10)+I}px`,this.endStyle.height=`${A+I}px`,this.endStyle.display="block";let O=this.settings.border.cornerVisible;O="function"==typeof O?O(this.settings.layerLevel):O;const x=this.wot.getSetting("onModifyGetCellCoords",s,i,!1,"render");let[P,L]=[s,i];if(x&&Array.isArray(x)&&([,,P,L]=x),(0,o.isMobileBrowser)()||!O||this.isPartRange(P,L))this.cornerStyle.display="none";else{this.cornerStyle.top=_+A+this.cornerCenterPointOffset-this.cornerDefaultStyle.borderWidth+"px",this.cornerStyle[M]=T+N+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,n.getTrimmingContainer)(a.TABLE);const t=e===h;t&&(e=l.documentElement);const r=parseInt(this.cornerDefaultStyle.borderWidth,10)-1,o=Math.ceil(parseInt(this.cornerDefaultStyle.width,10)/2),u=Math.ceil(parseInt(this.cornerDefaultStyle.height,10)/2);if(i===this.wot.getSetting("totalColumns")-1){const s=t?w.getBoundingClientRect().left:w.offsetLeft;let i=!1,a=0;if(R?(a=s-parseInt(this.cornerDefaultStyle.width,10)/2,i=a<0):(a=s+(0,n.outerWidth)(w)+parseInt(this.cornerDefaultStyle.width,10)/2,i=a>=(0,n.innerWidth)(e)),i){const e=Math.floor(T+N+this.cornerCenterPointOffset-o-r);c?(this.cornerStyle[M]=`${e}px`,this.cornerStyle[R?"borderLeftWidth":"borderRightWidth"]=0):this.cornerStyle[M]=e-1+"px"}}if(s===this.wot.getSetting("totalRows")-1){if((t?w.getBoundingClientRect().top:w.offsetTop)+(0,n.outerHeight)(w)+parseInt(this.cornerDefaultStyle.height,10)/2>=(0,n.innerHeight)(e)){const e=Math.floor(_+A+this.cornerCenterPointOffset-u-r);c?(this.cornerStyle.top=`${e}px`,this.cornerStyle.borderBottomWidth=0):this.cornerStyle.top=e-1+"px"}}this.cornerStyle.display="block"}(0,o.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&this.updateMultipleSelectionHandlesPosition(s,i,_,T,N,A)}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,r,s,i){const{wtTable:o}=this.wot,a=o.wtRootElement.parentNode;let l=null,h=null,u=null,c=null,d=null,g=null,p=null,f=null;switch(e){case"rows":l=function(){return o.getRowHeader(...arguments)},h=function(){return(0,n.outerHeight)(...arguments)},u="ht__selection--rows",g="top";break;case"columns":l=function(){return o.getColumnHeader(...arguments)},h=function(){return(0,n.outerWidth)(...arguments)},u="ht__selection--columns",g="left"}if(a.classList.contains(u)){const e=this.wot.getSetting("columnHeaders").length;if(p=l(t,e-s),f=l(r,e-s),!p||!f)return!1;const o=(0,n.offset)(p),a=(0,n.offset)(f);return p&&f&&(c=o[g]-i[g]-1,d=a[g]+h(f)-o[g]),[p,c,d]}return!1}changeBorderStyle(e,t){const r=this[e].style,s=t[e];!s||s.hide?(0,n.addClass)(this[e],"hidden"):((0,n.hasClass)(this[e],"hidden")&&(0,n.removeClass)(this[e],"hidden"),r.backgroundColor=s.color,"top"!==e&&"bottom"!==e||(r.height=`${s.width}px`),"start"!==e&&"end"!==e||(r.width=`${s.width}px`))}changeBorderToDefaultStyle(e){const t=1,r="#000",n=this[e].style;n.backgroundColor=r,n.width=`${t}px`,n.height=`${t}px`}toggleHiddenClass(e,t){this.changeBorderToDefaultStyle(e),t?(0,n.addClass)(this[e],"hidden"):(0,n.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,o.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)}}},23718:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(34478),r(31143);var s=n(r(24300));t.ViewportBaseCalculator=class{constructor(e){(0,s.default)(this,"calculationTypes",[]),(0,s.default)(this,"calculationResults",new Map),this.calculationTypes=e}_initialize(e){this.calculationTypes.forEach(t=>{let[r,n]=t;this.calculationResults.set(r,n),n.initialize(e)})}_process(e,t){this.calculationTypes.forEach(r=>{let[,n]=r;return n.process(e,t)})}_finalize(e){this.calculationTypes.forEach(t=>{let[,r]=t;return r.finalize(e)})}getResultsFor(e){return this.calculationResults.get(e)}}},23720:(e,t,r)=>{"use strict";var n=r(21769),s=r(98363);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),s.f(e,t,r)}},23845:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(74418);t.RENDERER_TYPE=n.RENDERER_TYPE,t.dateRenderer=n.dateRenderer},23861:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=r(40785),i=r(4407),o=r(6083),a=n(r(75175)),l=r(13618);class h extends a.default{static get CSS_CLASSES(){return{indicatorContainer:"ht_nestingLevels",parent:"ht_nestingParent",indicator:"ht_nestingLevel",emptyIndicator:"ht_nestingLevel_empty",button:"ht_nestingButton",expandButton:"ht_nestingExpand",collapseButton:"ht_nestingCollapse"}}constructor(e,t){super(e,t),this.dataManager=this.plugin.dataManager,this.collapsingUI=this.plugin.collapsingUI,this.rowHeaderWidthCache=null}appendLevelIndicators(e,t){const r=this.hot.toPhysicalRow(e),n=this.dataManager.getDataObject(r);if(!n)return;const a=this.dataManager.getRowLevel(r),u=t.getElementsByTagName("DIV")[0],c=u.querySelector("span.rowHeader"),d=u.querySelectorAll('[class^="ht_nesting"]'),g=this.hot.getSettings().ariaTags;if((0,s.arrayEach)(d,e=>{e&&u.removeChild(e)}),(0,o.addClass)(t,h.CSS_CLASSES.indicatorContainer),a){const{rootDocument:e}=this.hot,t=c.cloneNode(!0);u.innerHTML="",(0,i.rangeEach)(0,a-1,()=>{const t=e.createElement("SPAN");(0,o.addClass)(t,h.CSS_CLASSES.emptyIndicator),u.appendChild(t)}),u.appendChild(t)}if(this.dataManager.hasChildren(n)){const e=this.hot.rootDocument.createElement("DIV");g&&(0,o.setAttribute)(e,[(0,l.A11Y_HIDDEN)()]),(0,o.addClass)(t,h.CSS_CLASSES.parent),this.collapsingUI.areChildrenCollapsed(r)?((0,o.addClass)(e,`${h.CSS_CLASSES.button} ${h.CSS_CLASSES.expandButton}`),g&&(0,o.setAttribute)(t,[(0,l.A11Y_EXPANDED)(!1)])):((0,o.addClass)(e,`${h.CSS_CLASSES.button} ${h.CSS_CLASSES.collapseButton}`),g&&(0,o.setAttribute)(t,[(0,l.A11Y_EXPANDED)(!0)])),u.appendChild(e)}}updateRowHeaderWidth(e){let t=e;t||(t=this.dataManager.cache.levelCount);let r=11;if(!this.hot.stylesHandler.isClassicTheme()){r=2*this.hot.stylesHandler.getCSSVariableValue("cell-horizontal-padding")}this.rowHeaderWidthCache=Math.max(50,r+10*t+25),this.hot.render()}}t.default=h},23869:(e,t,r)=>{"use strict";t.__esModule=!0,t.getCellMetas=function(e,t,r,s,i){const o=["visualRow","visualCol","row","col","prop"],a=o.length,l=[];return(0,n.rangeEach)(s,i,s=>{(0,n.rangeEach)(t,r,t=>{const r=e.getCellMeta(t,s);if(Object.keys(r).length!==a){const e=Object.fromEntries(Object.entries(r).filter(e=>{let[t]=e;return!1===o.includes(t)}));l.push([r.visualRow,r.visualCol,e])}})}),l},r(99356),r(89083),r(34478),r(29810);var n=r(4407)},24144:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(26172);t.RENDERER_TYPE=n.RENDERER_TYPE,t.handsontableRenderer=n.handsontableRenderer},24184:(e,t,r)=>{"use strict";t.__esModule=!0,t.registerActions=function(e,t){[n.CellAlignmentAction,s.ColumnMoveAction,i.ColumnSortAction,o.CreateColumnAction,a.CreateRowAction,l.DataChangeAction,h.FiltersAction,u.MergeCellsAction,c.RemoveColumnAction,d.RemoveRowAction,g.RowMoveAction,p.UnmergeCellsAction].forEach(r=>r.startRegisteringEvents(e,t))};var n=r(93961),s=r(1145),i=r(63260),o=r(60564),a=r(98736),l=r(25614),h=r(29891),u=r(90375),c=r(15604),d=r(28816),g=r(39621),p=r(40408)},24234:(e,t,r)=>{"use strict";t.__esModule=!0,t.createPaginatorStrategy=function(e){if(!i.has(e))throw new Error(`Unknown pagination strategy type: ${e}`);return new(i.get(e))},r(52490);var n=r(21422),s=r(82973);const i=new Map([["fixed",n.FixedPageSizeStrategy],["auto",s.AutoPageSizeStrategy]])},24278:(e,t)=>{"use strict";t.__esModule=!0;t.REGISTERED_HOOKS=["afterCellMetaReset","afterChange","afterContextMenuDefaultOptions","beforeContextMenuSetItems","afterDropdownMenuDefaultOptions","beforeDropdownMenuSetItems","afterContextMenuHide","beforeContextMenuShow","afterContextMenuShow","afterCopyLimit","beforeCreateCol","afterColumnSequenceChange","afterCreateCol","beforeCreateRow","afterCreateRow","afterDeselect","afterDestroy","afterDocumentKeyDown","afterDrawSelection","beforeRemoveCellClassNames","beforeCompositionStart","afterGetCellMeta","afterGetColHeader","afterGetRowHeader","afterInit","afterLoadData","afterUpdateData","afterMomentumScroll","afterOnCellCornerMouseDown","afterOnCellCornerDblClick","afterOnCellMouseDown","afterOnCellMouseUp","afterOnCellContextMenu","afterOnCellMouseOver","afterOnCellMouseOut","afterRemoveCol","afterRemoveRow","beforeRenderer","afterRenderer","afterRowSequenceChange","beforeViewportScrollVertically","beforeViewportScrollHorizontally","beforeViewportScroll","afterScrollHorizontally","afterScrollVertically","afterScroll","afterSelection","afterSelectionByProp","afterSelectionEnd","afterSelectionEndByProp","afterSelectionFocusSet","beforeSelectColumns","afterSelectColumns","beforeSelectRows","afterSelectRows","beforeSelectAll","afterSelectAll","afterSetCellMeta","afterRemoveCellMeta","afterSetDataAtCell","afterSetDataAtRowProp","afterSetSourceDataAtCell","afterSetTheme","afterUpdateSettings","afterValidate","beforeLanguageChange","afterLanguageChange","beforeAutofill","afterAutofill","beforeCellAlignment","beforeChange","beforeChangeRender","beforeHeightChange","beforeWidthChange","beforeDrawBorders","beforeGetCellMeta","beforeRemoveCellMeta","beforeInit","beforeInitWalkontable","beforeLoadData","beforeUpdateData","beforeKeyDown","beforeOnCellMouseDown","beforeOnCellMouseUp","beforeOnCellContextMenu","beforeOnCellMouseOver","beforeOnCellMouseOut","beforeRemoveCol","beforeRemoveRow","beforeViewRender","afterViewRender","beforeRender","afterRender","beforeRowWrap","beforeColumnWrap","beforeSetCellMeta","beforeSelectionFocusSet","beforeSetRangeStartOnly","beforeSetRangeStart","beforeSetRangeEnd","beforeSelectionHighlightSet","beforeTouchScroll","beforeValidate","beforeValueRender","construct","init","modifyColHeader","modifyColWidth","modifyFiltersMultiSelectValue","modifyFocusedElement","modifyRowHeader","modifyRowHeight","modifyRowHeightByOverlayName","modifyData","modifySourceData","modifyRowData","modifyGetCellCoords","modifyGetCoordsElement","modifyFocusOnTabNavigation","beforeHighlightingRowHeader","beforeHighlightingColumnHeader","persistentStateLoad","persistentStateReset","persistentStateSave","beforeColumnSort","afterColumnSort","modifyAutofillRange","modifyCopyableRange","beforeCut","afterCut","beforeCopy","afterCopy","beforePaste","afterPaste","beforeColumnFreeze","afterColumnFreeze","beforeColumnMove","afterColumnMove","beforeColumnUnfreeze","afterColumnUnfreeze","beforeRowMove","afterRowMove","beforeColumnResize","afterColumnResize","beforeRowResize","afterRowResize","afterGetColumnHeaderRenderers","afterGetRowHeaderRenderers","beforeStretchingColumnWidth","beforeFilter","afterFilter","beforePageChange","afterPageChange","beforePageSizeChange","afterPageSizeChange","afterPageSizeVisibilityChange","afterPageCounterVisibilityChange","afterPageNavigationVisibilityChange","afterFormulasValuesUpdate","afterNamedExpressionAdded","afterNamedExpressionRemoved","afterSheetAdded","afterSheetRenamed","afterSheetRemoved","modifyColumnHeaderHeight","modifyColumnHeaderValue","beforeUndo","beforeUndoStackChange","afterUndo","afterUndoStackChange","beforeRedo","beforeRedoStackChange","afterRedo","afterRedoStackChange","modifyRowHeaderWidth","modifyTransformFocus","modifyTransformStart","modifyTransformEnd","afterModifyTransformFocus","afterModifyTransformStart","afterModifyTransformEnd","afterViewportRowCalculatorOverride","afterViewportColumnCalculatorOverride","afterPluginsInitialized","beforeHideRows","afterHideRows","beforeUnhideRows","afterUnhideRows","beforeHideColumns","afterHideColumns","beforeUnhideColumns","afterUnhideColumns","beforeTrimRow","afterTrimRow","beforeUntrimRow","afterUntrimRow","beforeDropdownMenuShow","afterDropdownMenuShow","afterDropdownMenuHide","beforeAddChild","afterAddChild","beforeDetachChild","afterDetachChild","beforeBeginEditing","afterDialogHide","afterDialogShow","beforeDialogHide","beforeDialogShow","dialogFocusPreviousElement","dialogFocusNextElement","afterDialogFocus","beforeLoadingShow","afterLoadingShow","beforeLoadingHide","afterLoadingHide","afterBeginEditing","beforeMergeCells","afterMergeCells","beforeUnmergeCells","afterUnmergeCells","afterListen","afterUnlisten","afterRefreshDimensions","beforeRefreshDimensions","beforeColumnCollapse","afterColumnCollapse","beforeColumnExpand","afterColumnExpand","modifyAutoColumnSizeSeed"],t.REMOVED_HOOKS=new Map([["modifyRow","8.0.0"],["modifyCol","8.0.0"],["unmodifyRow","8.0.0"],["unmodifyCol","8.0.0"],["skipLengthCache","8.0.0"],["hiddenColumn","8.0.0"],["hiddenRow","8.0.0"]]),t.DEPRECATED_HOOKS=new Map([[]])},24300:(e,t,r)=>{var n=r(74851);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},24501:()=>{},24726:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300)),i=r(6083);t.default=class{constructor(e,t){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"nestedHeaderSettingsGetter",void 0),(0,s.default)(this,"layersCount",0),(0,s.default)(this,"container",void 0),(0,s.default)(this,"widthsMap",void 0),this.hot=e,this.nestedHeaderSettingsGetter=t,this.widthsMap=this.hot.columnIndexMapper.createAndRegisterIndexMap("nestedHeaders.widthsMap","physicalIndexToValue")}setLayersCount(e){return this.layersCount=e,this}getWidth(e){return this.widthsMap.getValueAtIndex(this.hot.toPhysicalColumn(e))}buildWidthsMap(){const e=this.hot.getCurrentThemeName();this.container=this.hot.rootDocument.createElement("div"),this.container.classList.add("handsontable","htGhostTable","htAutoSize"),e&&this.container.classList.add(e),this._buildGhostTable(this.container),this.hot.rootDocument.body.appendChild(this.container);const t=this.container.querySelectorAll("tr:last-of-type th"),r=t.length;this.widthsMap.clear();for(let e=0;e<r;e++){const r=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e),n=this.hot.toPhysicalColumn(r);this.widthsMap.setValueAtIndex(n,t[e].offsetWidth)}this.container.parentNode.removeChild(this.container),this.container=null}_buildGhostTable(e){const{rootDocument:t,columnIndexMapper:r}=this.hot,n=t.createDocumentFragment(),s=t.createElement("table"),o=!!this.hot.getSettings().dropdownMenu,a=r.getRenderableIndexesLength();for(let e=0;e<this.layersCount;e++){const n=t.createElement("tr");for(let s=0;s<a;s++){let a=r.getVisualFromRenderableIndex(s);null===a&&(a=s);const l=t.createElement("th"),h=this.nestedHeaderSettingsGetter(e,a);if(h&&(!h.isPlaceholder||h.isHidden)){let e=h.label;o&&(e+='<button class="changeType"></button>'),(0,i.fastInnerHTML)(l,e),l.colSpan=h.colspan,n.appendChild(l)}}s.appendChild(n)}n.appendChild(s),e.appendChild(n)}clear(){this.widthsMap.clear(),this.container=null}}},24834:(e,t,r)=>{"use strict";t.__esModule=!0,r(52490);var n=r(53383),s=r(22199),i=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230));function o(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function a(e,t,r){return e.set(h(e,t),r),r}function l(e,t){return e.get(h(e,t))}function h(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const u=t.PLUGIN_KEY="loading",c=t.PLUGIN_PRIORITY=350,d=t.LOADING_CLASS_NAME=`ht-${u}`;var g=new WeakMap,p=new WeakSet;class f extends n.BasePlugin{constructor(){var e,t;super(...arguments),o(e=this,t=p),t.add(e),function(e,t,r){o(e,t),t.set(e,r)}(this,g,null)}static get PLUGIN_KEY(){return u}static get PLUGIN_PRIORITY(){return c}static get DEFAULT_SETTINGS(){return{icon:`<svg class="${d}__icon-svg" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path stroke="currentColor" stroke-width="2" d="M15 8a7 7 0 1 1-3.5-6.062"></path></svg>`,title:void 0,description:""}}static get SETTINGS_VALIDATORS(){return{icon:e=>"string"==typeof e,title:e=>"string"==typeof e,description:e=>"string"==typeof e}}isEnabled(){return!!this.hot.getSettings()[u]}enablePlugin(){if(!this.enabled){var e;if(null===l(g,this))a(g,this,this.hot.getPlugin("dialog")),null!==(e=l(g,this))&&void 0!==e&&e.isEnabled()||(this.hot.getSettings().dialog=!0),this.hot.addHook("afterDialogFocus",()=>h(p,this,m).call(this));super.enablePlugin()}}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.hide(),super.disablePlugin()}isVisible(){var e,t;return null!==(e=null===(t=l(g,this))||void 0===t?void 0:t.isVisible())&&void 0!==e&&e}show(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.isEnabled()||!l(g,this)||null===(e=l(g,this))||void 0===e||!e.isEnabled())return;if(this.isVisible())return void this.update(t);!1!==this.hot.runHooks("beforeLoadingShow")&&(this.update(t),l(g,this).show(),this.hot.runHooks("afterLoadingShow"))}hide(){var e;if(!l(g,this)||null===(e=l(g,this))||void 0===e||!e.isEnabled()||!this.isVisible())return;!1!==this.hot.runHooks("beforeLoadingHide")&&(l(g,this).hide(),this.hot.runHooks("afterLoadingHide"))}update(e){var t,r;if(!this.isEnabled()||!l(g,this)||null===(t=l(g,this))||void 0===t||!t.isEnabled())return;this.updatePluginSettings(e);const n=this.hot.guid,o=this.getSetting("icon"),a=null!==(r=this.getSetting("title"))&&void 0!==r?r:this.hot.getTranslatedPhrase(i.LOADING_TITLE),h=this.getSetting("description"),c=(0,s.loadingContent)({id:n,icon:o,title:a,description:h});l(g,this).update({content:c,customClassName:d,background:0===this.hot.countSourceRows()?"solid":"semi-transparent",a11y:{role:"alertdialog",ariaLabelledby:`${n}-${u}-title`,ariaDescribedby:h?`${n}-${u}-description`:void 0}})}destroy(){a(g,this,null),super.destroy()}}function m(){l(g,this).focus()}t.Loading=f},25043:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356);var s=n(r(24300)),i=r(6083),o=n(r(46427)),a=r(31075),l=n(r(74216)),h=r(28416),u=r(55941),c=r(55585),d=r(13618);function g(e,t,r){p(e,t),t.set(e,r)}function p(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(w(e,t))}function m(e,t,r){return e.set(w(e,t),r),r}function w(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var E=new WeakMap,y=new WeakMap,C=new WeakMap,v=new WeakMap,S=new WeakMap,R=new WeakMap,T=new WeakMap,N=new WeakMap,_=new WeakSet;function A(){return parseInt(this.hot.rootElement.getAttribute((0,d.A11Y_COLCOUNT)()[0]),10)}function b(e){const t=w(_,this,A).call(this)+e;(0,i.setAttribute)(this.hot.rootElement,...(0,d.A11Y_COLCOUNT)(t))}function M(){const e=this.hot.rootElement;this.hasVerticalScroll()?(0,i.addClass)(e,"htHasScrollY"):(0,i.removeClass)(e,"htHasScrollY"),this.isVerticallyScrollableByWindow()?(0,i.addClass)(e,"htVerticallyScrollableByWindow"):(0,i.removeClass)(e,"htVerticallyScrollableByWindow"),this.hasHorizontalScroll()?(0,i.addClass)(e,"htHasScrollX"):(0,i.removeClass)(e,"htHasScrollX"),this.isHorizontallyScrollableByWindow()?(0,i.addClass)(e,"htHorizontallyScrollableByWindow"):(0,i.removeClass)(e,"htHorizontallyScrollableByWindow")}t.default=class{constructor(e){var t,r;p(t=this,r=_),r.add(t),(0,s.default)(this,"hot",void 0),(0,s.default)(this,"eventManager",void 0),(0,s.default)(this,"settings",void 0),(0,s.default)(this,"THEAD",void 0),(0,s.default)(this,"TBODY",void 0),(0,s.default)(this,"_wt",void 0),(0,s.default)(this,"activeWt",void 0),g(this,E,0),g(this,y,0),(0,s.default)(this,"postponedAdjustElementsSize",!1),g(this,C,!1),g(this,v,void 0),g(this,S,void 0),g(this,R,0),g(this,T,0),g(this,N,null),this.hot=e,this.eventManager=new o.default(this.hot),this.settings=this.hot.getSettings(),this.createElements(),this.registerEvents(),this.initializeWalkontable()}render(){if(!this.hot.isRenderSuspended()){const e=this.hot.forceFullRender;this.hot.runHooks("beforeRender",e),this._wt.draw(!e),w(_,this,M).call(this),this.postponedAdjustElementsSize&&(this.postponedAdjustElementsSize=!1,this.adjustElementsSize(!0)),this.hot.runHooks("afterRender",e),this.hot.forceFullRender=!1}}adjustElementsSize(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]?this._wt.wtOverlays.adjustElementsSize():this.postponedAdjustElementsSize=!0}getCellAtCoords(e,t){const r=this._wt.getCell(e,t);return r<0?null:r}scrollViewport(e,t,r){return this._wt.scrollViewport(e,t,r)}scrollViewportHorizontally(e,t){return this._wt.scrollViewportHorizontally(e,t)}scrollViewportVertically(e,t){return this._wt.scrollViewportVertically(e,t)}createElements(){const{rootElement:e,rootDocument:t}=this.hot,r=e.getAttribute("style");r&&e.setAttribute("data-originalstyle",r),(0,i.addClass)(e,"handsontable"),m(S,this,t.createElement("TABLE")),(0,i.addClass)(f(S,this),"htCore"),this.hot.getSettings().tableClassName&&(0,i.addClass)(f(S,this),this.hot.getSettings().tableClassName),this.settings.ariaTags&&((0,i.setAttribute)(f(S,this),[(0,d.A11Y_PRESENTATION)()]),(0,i.setAttribute)(e,[(0,d.A11Y_TREEGRID)(),(0,d.A11Y_ROWCOUNT)(-1),(0,d.A11Y_COLCOUNT)(this.hot.countCols()),(0,d.A11Y_MULTISELECTABLE)()])),this.THEAD=t.createElement("THEAD"),f(S,this).appendChild(this.THEAD),this.TBODY=t.createElement("TBODY"),f(S,this).appendChild(this.TBODY),this.hot.table=f(S,this),this.hot.container.insertBefore(f(S,this),this.hot.container.firstChild)}registerEvents(){const{rootWrapperElement:e,rootElement:t,rootDocument:r,selection:n,rootWindow:s}=this.hot,o=r.documentElement;this.eventManager.addEventListener(t,"mousedown",e=>{m(C,this,!0),this.isTextSelectionAllowed(e.target)||((0,i.clearTextSelection)(s),e.preventDefault(),s.focus())}),this.eventManager.addEventListener(t,"mouseup",()=>{m(C,this,!1)}),this.eventManager.addEventListener(t,"mousemove",e=>{f(C,this)&&!this.isTextSelectionAllowed(e.target)&&(this.settings.fragmentSelection&&(0,i.clearTextSelection)(s),e.preventDefault())}),this.eventManager.addEventListener(o,"keyup",e=>{n.isInProgress()&&!e.shiftKey&&n.finish()}),this.eventManager.addEventListener(o,"mouseup",s=>{var o;n.isInProgress()&&(0,a.isLeftClick)(s)&&n.finish(),m(v,this,!1);const l=(0,i.isOutsideInput)(r.activeElement),h=null===(o=r.querySelector(".ht-dialog"))||void 0===o?void 0:o.contains(r.activeElement);(0,i.isInput)(r.activeElement)&&!l||h||!l&&(n.isSelected()||n.isSelectedByAnyHeader()||(null!=e?e:t).contains(s.target)||(0,a.isRightClick)(s))||this.hot.unlisten()}),this.eventManager.addEventListener(o,"contextmenu",e=>{n.isInProgress()&&(0,a.isRightClick)(e)&&(n.finish(),m(v,this,!1))}),this.eventManager.addEventListener(o,"touchend",()=>{n.isInProgress()&&n.finish(),m(v,this,!1)}),this.eventManager.addEventListener(o,"mousedown",e=>{const n=e.target,s=e.x||e.clientX,a=e.y||e.clientY;let l=e.target;if(f(v,this)||!t||!this.hot.view)return;const{holder:h}=this._wt.wtTable;if(l===h){const e=(0,i.getScrollbarWidth)(r);if(r.elementFromPoint(s+e,a)!==h||r.elementFromPoint(s,a+e)!==h)return}else for(;l!==o;){if(null===l){if(e.isTargetWebComponent)break;return}if(l===t)return;l=l.parentNode}("function"==typeof this.settings.outsideClickDeselects?this.settings.outsideClickDeselects(n):this.settings.outsideClickDeselects)?this.hot.deselectCell():this.hot.destroyEditor(!1,!1)});let l=(0,i.getParentWindow)(s);for(;null!==l;)this.eventManager.addEventListener(l.document.documentElement,"click",()=>{this.hot.unlisten()}),l=(0,i.getParentWindow)(l);this.eventManager.addEventListener(f(S,this),"selectstart",e=>{this.settings.fragmentSelection||(0,i.isInput)(e.target)||e.preventDefault()})}translateFromRenderableToVisualCoords(e){let{row:t,col:r}=e;return this.hot._createCellCoords(...this.translateFromRenderableToVisualIndex(t,r))}translateFromRenderableToVisualIndex(e,t){let r=e>=0?this.hot.rowIndexMapper.getVisualFromRenderableIndex(e):e,n=t>=0?this.hot.columnIndexMapper.getVisualFromRenderableIndex(t):t;return null===r&&(r=e),null===n&&(n=t),[r,n]}countRenderableIndexes(e,t){const r=Math.min(e.getNotTrimmedIndexesLength(),t),n=e.getNearestNotHiddenIndex(r-1,-1);return null===n?0:e.getRenderableFromVisualIndex(n)+1}countRenderableColumns(){return this.countRenderableIndexes(this.hot.columnIndexMapper,this.settings.maxCols)}countRenderableRows(){return this.countRenderableIndexes(this.hot.rowIndexMapper,this.settings.maxRows)}countNotHiddenRowIndexes(e,t){return this.countNotHiddenIndexes(e,t,this.hot.rowIndexMapper,this.countRenderableRows())}countNotHiddenColumnIndexes(e,t){return this.countNotHiddenIndexes(e,t,this.hot.columnIndexMapper,this.countRenderableColumns())}countNotHiddenIndexes(e,t,r,n){if(isNaN(e)||e<0)return 0;const s=r.getNearestNotHiddenIndex(e,t),i=r.getRenderableFromVisualIndex(s);if(!Number.isInteger(i))return 0;let o=0;return t<0?o=i+1:t>0&&(o=n-i),o}countNotHiddenFixedColumnsStart(){const e=this.hot.countCols(),t=Math.min(parseInt(this.settings.fixedColumnsStart,10),e)-1;return this.countNotHiddenColumnIndexes(t,-1)}countNotHiddenFixedRowsTop(){const e=this.hot.countRows(),t=Math.min(parseInt(this.settings.fixedRowsTop,10),e)-1;return this.countNotHiddenRowIndexes(t,-1)}countNotHiddenFixedRowsBottom(){const e=this.hot.countRows(),t=Math.max(e-parseInt(this.settings.fixedRowsBottom,10),0);return this.countNotHiddenRowIndexes(t,1)}countRenderableColumnsInRange(e,t){let r=0;for(let n=e;n<=t;n++)null!==this.hot.columnIndexMapper.getRenderableFromVisualIndex(n)&&(r+=1);return r}countRenderableRowsInRange(e,t){let r=0;for(let n=e;n<=t;n++)null!==this.hot.rowIndexMapper.getRenderableFromVisualIndex(n)&&(r+=1);return r}addClassNameToLicenseElement(e){var t;const r=null===(t=this.hot.rootElement.parentNode)||void 0===t?void 0:t.querySelector(".hot-display-license-info");r&&(0,i.addClass)(r,e)}removeClassNameFromLicenseElement(e){var t;const r=null===(t=this.hot.rootElement.parentNode)||void 0===t?void 0:t.querySelector(".hot-display-license-info");r&&(0,i.removeClass)(r,e)}isMainTableNotFullyCoveredByOverlays(){const e=this.countNotHiddenFixedRowsTop()+this.countNotHiddenFixedRowsBottom(),t=this.countNotHiddenFixedColumnsStart();return this.hot.countRenderedRows()>e&&this.hot.countRenderedCols()>t}initializeWalkontable(){const e={ariaTags:this.settings.ariaTags,rtlMode:this.hot.isRtl(),externalRowCalculator:this.hot.getPlugin("autoRowSize")&&this.hot.getPlugin("autoRowSize").isEnabled(),table:f(S,this),isDataViewInstance:()=>(0,u.isRootInstance)(this.hot),preventOverflow:()=>this.settings.preventOverflow,preventWheel:()=>this.settings.preventWheel,viewportColumnRenderingThreshold:()=>this.settings.viewportColumnRenderingThreshold,viewportRowRenderingThreshold:()=>this.settings.viewportRowRenderingThreshold,data:(e,t)=>this.hot.getDataAtCell(...this.translateFromRenderableToVisualIndex(e,t)),totalRows:()=>this.countRenderableRows(),totalColumns:()=>this.countRenderableColumns(),fixedColumnsStart:()=>this.countNotHiddenFixedColumnsStart(),fixedRowsTop:()=>this.countNotHiddenFixedRowsTop(),fixedRowsBottom:()=>this.countNotHiddenFixedRowsBottom(),shouldRenderInlineStartOverlay:()=>this.settings.fixedColumnsStart>0||e.rowHeaders().length>0,shouldRenderTopOverlay:()=>this.settings.fixedRowsTop>0||e.columnHeaders().length>0,shouldRenderBottomOverlay:()=>this.settings.fixedRowsBottom>0,minSpareRows:()=>this.settings.minSpareRows,renderAllRows:this.settings.renderAllRows,renderAllColumns:this.settings.renderAllColumns,rowHeaders:()=>{const e=[];return this.hot.hasRowHeaders()&&e.push((e,t)=>{const r=e>=0?this.hot.rowIndexMapper.getVisualFromRenderableIndex(e):e;this.appendRowHeader(r,t)}),this.hot.runHooks("afterGetRowHeaderRenderers",e),m(y,this,e.length),this.hot.getSettings().ariaTags&&w(_,this,A).call(this)===this.hot.countCols()&&w(_,this,b).call(this,f(y,this)),e},columnHeaders:()=>{const e=[];return this.hot.hasColHeaders()&&e.push((e,t)=>{const r=e>=0?this.hot.columnIndexMapper.getVisualFromRenderableIndex(e):e;this.appendColHeader(r,t)}),this.hot.runHooks("afterGetColumnHeaderRenderers",e),m(E,this,e.length),e},columnWidth:e=>{const t=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e);return this.hot.getColWidth(null===t?e:t)},rowHeight:e=>{const t=this.hot.rowIndexMapper.getVisualFromRenderableIndex(e);return this.hot.getRowHeight(null===t?e:t)},rowHeightByOverlayName:(e,t)=>{const r=this.hot.rowIndexMapper.getVisualFromRenderableIndex(e),n=null===r?e:r;return this.hot.runHooks("modifyRowHeightByOverlayName",this.hot.getRowHeight(n),n,t)},cellRenderer:(e,t,r)=>{const[n,s]=this.translateFromRenderableToVisualIndex(e,t),i=this.hot.runHooks("modifyGetCellCoords",n,s,!1,"meta");let o=n,a=s;Array.isArray(i)&&([o,a]=i);const l=this.hot.getCellMeta(o,a),h=this.hot.colToProp(a);let u=this.hot.getDataAtRowProp(o,h);this.hot.hasHook("beforeValueRender")&&(u=this.hot.runHooks("beforeValueRender",u,l)),this.hot.runHooks("beforeRenderer",r,n,s,h,u,l),this.hot.getCellRenderer(l)(this.hot,r,n,s,h,u,l),this.hot.runHooks("afterRenderer",r,n,s,h,u,l)},selections:this.hot.selection.highlight,hideBorderOnMouseDownOver:()=>this.settings.fragmentSelection,onWindowResize:()=>{this.hot&&!this.hot.isDestroyed&&this.hot.refreshDimensions()},onContainerElementResize:()=>{this.hot&&!this.hot.isDestroyed&&(0,i.isVisible)(this.hot.rootElement)&&this.hot.refreshDimensions()},onCellMouseDown:(e,t,r,n)=>{const s=this.translateFromRenderableToVisualCoords(t),i={row:!1,column:!1,cell:!1};this.hot.listen(),this.activeWt=n,m(v,this,!0),m(N,this,{x:e.clientX,y:e.clientY}),this.hot.runHooks("beforeOnCellMouseDown",e,s,r,i),(0,a.isImmediatePropagationStopped)(e)||((0,h.handleMouseEvent)(e,{coords:s,selection:this.hot.selection,controller:i,cellCoordsFactory:(e,t)=>this.hot._createCellCoords(e,t)}),this.hot.runHooks("afterOnCellMouseDown",e,s,r),this.activeWt=this._wt)},onCellContextMenu:(e,t,r,n)=>{const s=this.translateFromRenderableToVisualCoords(t);this.activeWt=n,m(v,this,!1),this.hot.selection.isInProgress()&&this.hot.selection.finish(),this.hot.runHooks("beforeOnCellContextMenu",e,s,r),(0,a.isImmediatePropagationStopped)(e)||(this.hot.runHooks("afterOnCellContextMenu",e,s,r),this.activeWt=this._wt)},onCellMouseOut:(e,t,r,n)=>{const s=this.translateFromRenderableToVisualCoords(t);this.activeWt=n,this.hot.runHooks("beforeOnCellMouseOut",e,s,r),(0,a.isImmediatePropagationStopped)(e)||(this.hot.runHooks("afterOnCellMouseOut",e,s,r),this.activeWt=this._wt)},onCellMouseOver:(e,t,r,n)=>{const s=this.translateFromRenderableToVisualCoords(t),i={row:!1,column:!1,cell:!1};this.activeWt=n,this.hot.runHooks("beforeOnCellMouseOver",e,s,r,i),(0,a.isImmediatePropagationStopped)(e)||(!f(v,this)||f(N,this)&&f(N,this).x===e.clientX&&f(N,this).y===e.clientY||(0,h.handleMouseEvent)(e,{coords:s,selection:this.hot.selection,controller:i,cellCoordsFactory:(e,t)=>this.hot._createCellCoords(e,t)}),this.hot.runHooks("afterOnCellMouseOver",e,s,r),this.activeWt=this._wt,m(N,this,null))},onCellMouseUp:(e,t,r,n)=>{const s=this.translateFromRenderableToVisualCoords(t);this.activeWt=n,this.hot.runHooks("beforeOnCellMouseUp",e,s,r),(0,a.isImmediatePropagationStopped)(e)||this.hot.isDestroyed||((0,h.handleMouseEvent)(e,{coords:s,selection:this.hot.selection,cellRangeMapper:(0,c.resolveWithInstance)(this.hot,"cellRangeMapper")}),this.hot.runHooks("afterOnCellMouseUp",e,s,r),this.activeWt=this._wt)},onCellCornerMouseDown:e=>{e.preventDefault(),this.hot.runHooks("afterOnCellCornerMouseDown",e)},onCellCornerDblClick:e=>{e.preventDefault(),this.hot.runHooks("afterOnCellCornerDblClick",e)},beforeDraw:(e,t)=>this.beforeRender(e,t),onDraw:e=>this.afterRender(e),onBeforeViewportScrollVertically:(e,t)=>{const r=this.hot.rowIndexMapper,n=e<0;let s=e;return n||(s=r.getVisualFromRenderableIndex(e),null!==s)?(s=this.hot.runHooks("beforeViewportScrollVertically",s,t),this.hot.runHooks("beforeViewportScroll"),n?s:r.getRenderableFromVisualIndex(s)):e},onBeforeViewportScrollHorizontally:(e,t)=>{const r=this.hot.columnIndexMapper,n=e<0;let s=e;return n||(s=r.getVisualFromRenderableIndex(e),null!==s)?(s=this.hot.runHooks("beforeViewportScrollHorizontally",s,t),this.hot.runHooks("beforeViewportScroll"),n?s:r.getRenderableFromVisualIndex(s)):e},onScrollVertically:()=>{this.hot.runHooks("afterScrollVertically"),this.hot.runHooks("afterScroll")},onScrollHorizontally:()=>{this.hot.runHooks("afterScrollHorizontally"),this.hot.runHooks("afterScroll")},onBeforeRemoveCellClassNames:()=>this.hot.runHooks("beforeRemoveCellClassNames"),onBeforeHighlightingRowHeader:(e,t,r)=>{const n=this.hot.rowIndexMapper,s=e<0;let i=e;s||(i=n.getVisualFromRenderableIndex(e));const o=this.hot.runHooks("beforeHighlightingRowHeader",i,t,r);return s?o:n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(o,1))},onBeforeHighlightingColumnHeader:(e,t,r)=>{const n=this.hot.columnIndexMapper,s=e<0;let i=e;s||(i=n.getVisualFromRenderableIndex(e));const o=this.hot.runHooks("beforeHighlightingColumnHeader",i,t,r);return s?o:n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(o,1))},onAfterDrawSelection:(e,t,r)=>{let n;const[s,i]=this.translateFromRenderableToVisualIndex(e,t),o=this.hot.selection.getSelectedRange();if(o.size()>0){const e=o.peekByIndex(null!=r?r:0);n=[e.from.row,e.from.col,e.to.row,e.to.col]}return this.hot.runHooks("afterDrawSelection",s,i,n,r)},onBeforeDrawBorders:(e,t)=>{const[r,n,s,i]=e,o=[this.hot.rowIndexMapper.getVisualFromRenderableIndex(r),this.hot.columnIndexMapper.getVisualFromRenderableIndex(n),this.hot.rowIndexMapper.getVisualFromRenderableIndex(s),this.hot.columnIndexMapper.getVisualFromRenderableIndex(i)];return this.hot.runHooks("beforeDrawBorders",o,t)},onBeforeTouchScroll:()=>this.hot.runHooks("beforeTouchScroll"),onAfterMomentumScroll:()=>this.hot.runHooks("afterMomentumScroll"),onModifyRowHeaderWidth:e=>this.hot.runHooks("modifyRowHeaderWidth",e),onModifyGetCellCoords:(e,t,r,n)=>{const s=this.hot.rowIndexMapper,i=this.hot.columnIndexMapper,o=t>=0?i.getVisualFromRenderableIndex(t):t,a=e>=0?s.getVisualFromRenderableIndex(e):e,l=this.hot.runHooks("modifyGetCellCoords",a,o,r,n);if(Array.isArray(l)){const[e,t,r,n]=l;return[e>=0?s.getRenderableFromVisualIndex(s.getNearestNotHiddenIndex(e,1)):e,t>=0?i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(t,1)):t,r>=0?s.getRenderableFromVisualIndex(s.getNearestNotHiddenIndex(r,-1)):r,n>=0?i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(n,-1)):n]}},onModifyGetCoordsElement:(e,t)=>{const r=this.hot.rowIndexMapper,n=this.hot.columnIndexMapper,s=t>=0?n.getVisualFromRenderableIndex(t):t,i=e>=0?r.getVisualFromRenderableIndex(e):e,o=this.hot.runHooks("modifyGetCoordsElement",i,s);if(Array.isArray(o)){const[e,t]=o;return[e>=0?r.getRenderableFromVisualIndex(r.getNearestNotHiddenIndex(e,1)):e,t>=0?n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(t,1)):t]}},viewportRowCalculatorOverride:e=>{let t=this.settings.viewportRowRenderingOffset;if("auto"===t&&this.settings.fixedRowsTop&&(t=10),t>0||"auto"===t){const r=this.countRenderableRows(),n=e.startRow,s=e.endRow;if("number"==typeof t)e.startRow=Math.max(n-t,0),e.endRow=Math.min(s+t,r-1);else if("auto"===t){const t=Math.max(1,Math.ceil(s/r*12));e.startRow=Math.max(n-t,0),e.endRow=Math.min(s+t,r-1)}}this.hot.runHooks("afterViewportRowCalculatorOverride",e)},viewportColumnCalculatorOverride:e=>{let t=this.settings.viewportColumnRenderingOffset;if("auto"===t&&this.settings.fixedColumnsStart&&(t=10),t>0||"auto"===t){const r=this.countRenderableColumns(),n=e.startColumn,s=e.endColumn;if("number"==typeof t&&(e.startColumn=Math.max(n-t,0),e.endColumn=Math.min(s+t,r-1)),"auto"===t){const t=Math.max(1,Math.ceil(s/r*6));e.startColumn=Math.max(n-t,0),e.endColumn=Math.min(s+t,r-1)}}this.hot.runHooks("afterViewportColumnCalculatorOverride",e)},rowHeaderWidth:()=>this.settings.rowHeaderWidth,columnHeaderHeight:()=>{const e=this.hot.runHooks("modifyColumnHeaderHeight");return this.settings.columnHeaderHeight||e},stylesHandler:()=>this.hot.stylesHandler};this.hot.runHooks("beforeInitWalkontable",e),this._wt=new l.default(e),this.activeWt=this._wt;const t=this._wt.wtTable.spreader,{width:r,height:n}=this.hot.rootElement.getBoundingClientRect();this.setLastSize(r,n),this.eventManager.addEventListener(t,"mousedown",e=>{e.target===t&&3===e.which&&e.stopPropagation()}),this.eventManager.addEventListener(t,"contextmenu",e=>{e.target===t&&3===e.which&&e.stopPropagation()}),this.eventManager.addEventListener(this.hot.rootDocument.documentElement,"click",()=>{this.settings.observeDOMVisibility&&this._wt.drawInterrupted&&this.hot.render()})}isTextSelectionAllowed(e){var t,r;if((0,i.isInput)(e))return!0;const n=(0,i.isChildOf)(e,this._wt.wtTable.spreader);if(!0===this.settings.fragmentSelection&&n)return!0;const s=null!==(t=null===(r=this.hot.getSelectedRangeActive())||void 0===r?void 0:r.isSingleCell())&&void 0!==t&&t;return!("cell"!==this.settings.fragmentSelection||!s||!n)||!(this.settings.fragmentSelection||!this.isCellEdited()||!s)}isMouseDown(){return f(v,this)}isCellEdited(){const e=this.hot.getActiveEditor();return e&&e.isOpened()}beforeRender(e,t){e&&this.hot.runHooks("beforeViewRender",this.hot.forceFullRender,t)}afterRender(e){e&&this.hot.runHooks("afterViewRender",this.hot.forceFullRender)}appendRowHeader(e,t){if(t.firstChild){const r=t.firstChild;if(!(0,i.hasClass)(r,"relative"))return(0,i.empty)(t),void this.appendRowHeader(e,t);this.updateCellHeader(r.querySelector(".rowHeader"),e,this.hot.getRowHeader)}else{const{rootDocument:r,getRowHeader:n}=this.hot,s=r.createElement("div"),i=r.createElement("span");s.className="relative",i.className="rowHeader",this.updateCellHeader(i,e,n),s.appendChild(i),t.appendChild(s)}this.hot.runHooks("afterGetRowHeader",e,t)}appendColHeader(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hot.getColHeader,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const s=()=>{const t=e>=0?this.hot.getColumnMeta(e).headerClassName:null;return t?t.split(" "):[]};if(t.firstChild){const o=t.firstChild;(0,i.hasClass)(o,"relative")?(this.updateCellHeader(o.querySelector(".colHeader"),e,r,n),o.className="",(0,i.addClass)(o,["relative",...s()])):((0,i.empty)(t),this.appendColHeader(e,t,r,n))}else{const{rootDocument:o}=this.hot,a=o.createElement("div"),l=o.createElement("span"),h=s();a.classList.add("relative",...h),l.className="colHeader",this.settings.ariaTags&&((0,i.setAttribute)(a,...(0,d.A11Y_PRESENTATION)()),(0,i.setAttribute)(l,...(0,d.A11Y_PRESENTATION)())),this.updateCellHeader(l,e,r,n),a.appendChild(l),t.appendChild(a)}this.hot.runHooks("afterGetColHeader",e,t,n)}updateCellHeader(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=t;const o=this._wt.wtOverlays.getParentOverlay(e)||this._wt;e.parentNode&&((0,i.hasClass)(e,"colHeader")?s=o.wtTable.columnFilter.sourceToRendered(t):(0,i.hasClass)(e,"rowHeader")&&(s=o.wtTable.rowFilter.sourceToRendered(t))),s>-1?(0,i.fastInnerHTML)(e,r(t,n)):((0,i.fastInnerText)(e,String.fromCharCode(160)),(0,i.addClass)(e,"cornerHeader"))}maximumVisibleElementWidth(e){const t=this._wt.wtViewport.getWorkspaceWidth()-e;return t>0?t:0}maximumVisibleElementHeight(e){const t=this._wt.wtViewport.getWorkspaceHeight()-e;return t>0?t:0}setLastSize(e,t){m(R,this,e),m(T,this,t)}getLastSize(){return{width:f(R,this),height:f(T,this)}}getFirstRenderedVisibleRow(){if(!this._wt.wtViewport.rowsRenderCalculator)return null;const e=this.hot.rowIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getFirstRenderedRow());return e.getNearestNotHiddenIndex(null!=t?t:0,1)}getLastRenderedVisibleRow(){if(!this._wt.wtViewport.rowsRenderCalculator)return null;const e=this.hot.rowIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getLastRenderedRow());return e.getNearestNotHiddenIndex(null!=t?t:this.hot.countRows()-1,-1)}getFirstRenderedVisibleColumn(){if(!this._wt.wtViewport.columnsRenderCalculator)return null;const e=this.hot.columnIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getFirstRenderedColumn());return e.getNearestNotHiddenIndex(null!=t?t:0,1)}getLastRenderedVisibleColumn(){if(!this._wt.wtViewport.columnsRenderCalculator)return null;const e=this.hot.columnIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getLastRenderedColumn());return e.getNearestNotHiddenIndex(null!=t?t:this.hot.countCols()-1,-1)}getFirstFullyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstVisibleRow())}getLastFullyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastVisibleRow())}getFirstFullyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstVisibleColumn())}getLastFullyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastVisibleColumn())}getFirstPartiallyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstPartiallyVisibleRow())}getLastPartiallyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastPartiallyVisibleRow())}getFirstPartiallyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstPartiallyVisibleColumn())}getLastPartiallyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastPartiallyVisibleColumn())}getColumnHeadersCount(){return f(E,this)}getRowHeadersCount(){return f(y,this)}getViewportWidth(){return this._wt.wtViewport.getViewportWidth()}getWorkspaceWidth(){return this._wt.wtViewport.getWorkspaceWidth()}getViewportHeight(){return this._wt.wtViewport.getViewportHeight()}getWorkspaceHeight(){return this._wt.wtViewport.getWorkspaceHeight()}getElementOverlayName(e){var t;return(null!==(t=this._wt.wtOverlays.getParentOverlay(e))&&void 0!==t?t:this._wt).wtTable.name}getOverlayByName(e){return this._wt.getOverlayByName(e)}getActiveOverlayName(){return this._wt.activeOverlayName}isVisible(){return this._wt.wtTable.isVisible()}hasVerticalScroll(){return this._wt.wtViewport.hasVerticalScroll()}hasHorizontalScroll(){return this._wt.wtViewport.hasHorizontalScroll()}getTableWidth(){return this._wt.wtTable.getWidth()}getTableHeight(){return this._wt.wtTable.getHeight()}getTotalTableWidth(){return this._wt.wtTable.getTotalWidth()}getTotalTableHeight(){return this._wt.wtTable.getTotalHeight()}getTableOffset(){return this._wt.wtViewport.getWorkspaceOffset()}getRowHeaderWidth(){return this._wt.wtViewport.getRowHeaderWidth()}getColumnHeaderHeight(){return this._wt.wtViewport.getColumnHeaderHeight()}isVerticallyScrollableByWindow(){return this._wt.wtViewport.isVerticallyScrollableByWindow()}isHorizontallyScrollableByWindow(){return this._wt.wtViewport.isHorizontallyScrollableByWindow()}destroy(){this._wt.destroy(),this.eventManager.destroy()}}},25116:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(34478),r(81056);var s=n(r(24300)),i=r(53383),o=r(17715),a=r(6083),l=r(21389),h=r(40785),u=r(27727),c=r(23173);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,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}o.Hooks.getSingleton().register("modifyAutofillRange"),o.Hooks.getSingleton().register("beforeAutofill"),o.Hooks.getSingleton().register("afterAutofill");const p=t.PLUGIN_KEY="autofill",f=t.PLUGIN_PRIORITY=20,m=["fillHandle"];var w=new WeakSet;class E extends i.BasePlugin{constructor(){super(...arguments),d(this,w),(0,s.default)(this,"addingStarted",!1),(0,s.default)(this,"mouseDownOnCellCorner",!1),(0,s.default)(this,"mouseDragOutside",!1),(0,s.default)(this,"handleDraggedCells",0),(0,s.default)(this,"directions",[]),(0,s.default)(this,"autoInsertRow",!1)}static get PLUGIN_KEY(){return p}static get PLUGIN_PRIORITY(){return f}static get SETTING_KEYS(){return[p,...m]}isEnabled(){return this.hot.getSettings().fillHandle}enablePlugin(){this.enabled||(this.mapSettings(),this.registerEvents(),this.addHook("afterOnCellCornerMouseDown",e=>g(w,this,v).call(this,e)),this.addHook("afterOnCellCornerDblClick",e=>g(w,this,C).call(this,e)),this.addHook("beforeOnCellMouseOver",(e,t)=>g(w,this,S).call(this,t)),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.clearMappedSettings(),super.disablePlugin()}getSelectionData(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.hot.getSelectedRangeLast(),{row:r,col:n}=t.getTopStartCorner(),{row:s,col:i}=t.getBottomEndCorner(),o=this.hot.runHooks("modifyCopyableRange",[{startRow:r,startCol:n,endRow:s,endCol:i}]),a=[],u=[],c=[];return(0,h.arrayEach)(o,e=>{for(let t=e.startRow;t<=e.endRow;t+=1)-1===a.indexOf(t)&&a.push(t);for(let t=e.startCol;t<=e.endCol;t+=1)-1===u.indexOf(t)&&u.push(t)}),(0,h.arrayEach)(a,t=>{const r=[];(0,h.arrayEach)(u,n=>{const s=e?this.hot.getSourceDataAtCell(t,n):null;e&&(0,l.isObject)(s)?r.push(this.hot.getCopyableSourceData(t,n)):r.push(this.hot.getCopyableData(t,n))}),c.push(r)}),c}fillIn(){if(this.hot.selection.highlight.getFill().isEmpty())return!1;const[e,t,r,n]=this.hot.selection.highlight.getFill().getVisualCorners(),s=this.hot.getSelectedRangeLast(),i=s.getTopStartCorner(),o=s.getBottomEndCorner();this.resetSelectionOfDraggedArea();const a=[i.row,i.col,o.row,o.col],h=this.hot.runHooks("modifyAutofillRange",[Math.min(i.row,e),Math.min(i.col,t),Math.max(o.row,r),Math.max(o.col,n)],a),{directionOfDrag:u,startOfDragCoords:d,endOfDragCoords:p}=(0,c.getDragDirectionAndRange)(a,h,(e,t)=>this.hot._createCellCoords(e,t));if(d&&d.row>-1&&d.col>-1){const e=this.getSelectionData(),t=this.getSelectionData(!0),r=s.clone(),n=this.hot._createCellRange(d,d,p),i=this.hot.runHooks("beforeAutofill",e,r,n,u);if(!1===i)return this.hot.selection.highlight.getFill().clear(),this.hot.render(),!1;let o=i;const a=i;if(["up","left"].indexOf(u)>-1&&(1!==a.length||0!==a[0].length))if(o=[],"up"===u){const e=p.row-d.row+1,t=e%a.length;for(let r=0;r<e;r++)o.push(a[(r+(a.length-t))%a.length])}else{const e=p.col-d.col+1,t=e%a[0].length;for(let r=0;r<a.length;r++){o.push([]);for(let n=0;n<e;n++)o[r].push(a[r][(n+(a[r].length-t))%a[r].length])}}if(t.some(e=>e.some(e=>(0,l.isObject)(e)))){const e=g(w,this,y).call(this,o,t,d,p,u);e.length&&(o=e)}this.hot.populateFromArray(d.row,d.col,o,p.row,p.col,`${this.pluginName}.fill`,null),this.setSelection(h),this.hot.runHooks("afterAutofill",o,r,n,u),this.hot.render()}else this.hot.view.render();return!0}reduceSelectionAreaIfNeeded(e){return e.row<0&&(e.row=0),e.col<0&&(e.col=0),e}getCoordsOfDragAndDropBorders(e){const t=this.hot.getSelectedRangeLast(),r=t.getBottomEndCorner();let n=e;if(this.directions.includes(c.DIRECTIONS.vertical)&&this.directions.includes(c.DIRECTIONS.horizontal)){const s=t.getTopStartCorner();(r.col<=e.col||s.col>=e.col)&&(n=this.hot._createCellCoords(r.row,e.col)),(r.row<e.row||s.row>e.row)&&(n=this.hot._createCellCoords(e.row,r.col))}else if(this.directions.includes(c.DIRECTIONS.vertical))n=this.hot._createCellCoords(e.row,r.col);else{if(!this.directions.includes(c.DIRECTIONS.horizontal))return;n=this.hot._createCellCoords(r.row,e.col)}return this.reduceSelectionAreaIfNeeded(n)}showBorder(e){const t=this.getCoordsOfDragAndDropBorders(e);t&&this.redrawBorders(t)}addRow(){this.hot._registerTimeout(()=>{this.hot.alter("insert_row_below",void 0,1,`${this.pluginName}.fill`),this.addingStarted=!1},200)}addNewRowIfNeeded(){if(!this.hot.selection.highlight.getFill().isEmpty()&&!1===this.addingStarted&&this.autoInsertRow){const e=this.hot.getSelectedLast(),t=this.hot.selection.highlight.getFill().getVisualCorners(),r=this.hot.countRows();e[2]<r-1&&t[2]===r-1&&(this.addingStarted=!0,this.addRow())}}getIndexOfLastAdjacentFilledInRow(e){const t=this.hot.getData(),r=this.hot.countRows();let n;for(let s=e[2]+1;s<r;s++){for(let r=e[1];r<=e[3];r++){const e=t[s][r];if(!(0,u.isEmpty)(e))return-1}const r=t[s][e[1]-1],i=t[s][e[3]+1];(0,u.isEmpty)(r)&&(0,u.isEmpty)(i)||(n=s)}return n}addSelectionFromStartAreaToSpecificRowIndex(e,t){this.hot.selection.highlight.getFill().clear().add(this.hot._createCellCoords(e[0],e[1])).add(this.hot._createCellCoords(t,e[3])).commit()}setSelection(e){this.hot.selectCell(...(0,h.arrayMap)(e,e=>Math.max(e,0)),!1,!1)}selectAdjacent(){const e=this.hot.getSelectedLast(),t=this.getIndexOfLastAdjacentFilledInRow(e);return-1!==t&&void 0!==t&&(this.addSelectionFromStartAreaToSpecificRowIndex(e,t),!0)}resetSelectionOfDraggedArea(){this.handleDraggedCells=0,this.hot.selection.highlight.getFill().clear()}redrawBorders(e){this.hot.selection.highlight.getFill().clear().add(this.hot.getSelectedRangeLast().from).add(this.hot.getSelectedRangeLast().to).add(e).commit(),this.hot.view.render()}getIfMouseWasDraggedOutside(e){const{documentElement:t}=this.hot.rootDocument,r=(0,a.offset)(this.hot.table).top-(this.hot.rootWindow.pageYOffset||t.scrollTop)+(0,a.outerHeight)(this.hot.table),n=(0,a.offset)(this.hot.table).left-(this.hot.rootWindow.pageXOffset||t.scrollLeft)+(0,a.outerWidth)(this.hot.table);return e.clientY>r&&e.clientX<=n}registerEvents(){const{documentElement:e}=this.hot.rootDocument;this.eventManager.addEventListener(e,"mouseup",()=>g(w,this,R).call(this)),this.eventManager.addEventListener(e,"mousemove",e=>g(w,this,T).call(this,e))}clearMappedSettings(){this.directions.length=0,this.autoInsertRow=!1}mapSettings(){const e=(0,c.getMappedFillHandleSetting)(this.hot.getSettings().fillHandle);this.directions=e.directions,this.autoInsertRow=e.autoInsertRow}destroy(){super.destroy()}}function y(e,t,r,n){const s=[];for(let i=Math.min(r.row,n.row);i<=Math.max(r.row,n.row);i+=1){s.push([]);for(let o=Math.min(r.col,n.col);o<=Math.max(r.col,n.col);o+=1){const a=this.hot.getSourceDataAtCell(i,o),h=i-Math.min(r.row,n.row),u=o-Math.min(r.col,n.col),c=h%t.length,d=u%t[0].length;(0,l.isObject)(a)?s[h][u]=t[c][d]:s[h][u]=e[c][d]}}return s}function C(){this.selectAdjacent()&&this.fillIn()}function v(){this.handleDraggedCells=1,this.mouseDownOnCellCorner=!0}function S(e){this.mouseDownOnCellCorner&&!this.hot.view.isMouseDown()&&this.handleDraggedCells&&(this.handleDraggedCells+=1,this.showBorder(e),this.addNewRowIfNeeded())}function R(){this.handleDraggedCells&&(this.handleDraggedCells>1&&this.fillIn(),this.handleDraggedCells=0,this.mouseDownOnCellCorner=!1)}function T(e){const t=this.getIfMouseWasDraggedOutside(e);!1===this.addingStarted&&this.handleDraggedCells>0&&t?(this.mouseDragOutside=!0,this.addingStarted=!0):this.mouseDragOutside=!1,this.mouseDragOutside&&this.autoInsertRow&&this.addRow()}t.Autofill=E},25145:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostTop",callback(e){const{selection:t,rowIndexMapper:r}=e,{highlight:n,from:s,to:i}=e.getSelectedRangeActive(),o=n.isHeader()&&t.isSelectedByRowHeader();if(n.isCell()||o){const a=r.getNearestNotHiddenIndex(0,1),l=s.clone();l.row=n.row,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,n.clone()),o&&t.selectedByRowHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(a,i.col)),t.markEndSource()}}}},25250:(e,t,r)=>{"use strict";var n=r(92853);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},25589:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(27972);t.EDITOR_TYPE=n.EDITOR_TYPE,t.SelectEditor=n.SelectEditor},25614:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(99356),r(34478),r(90643),r(31143),r(33098);var s=n(r(24300)),i=r(9208),o=r(21389);class a extends i.BaseAction{constructor(e){let{changes:t,selected:r,countCols:n,countRows:i}=e;super("change"),(0,s.default)(this,"changes",void 0),(0,s.default)(this,"selected",void 0),(0,s.default)(this,"countCols",void 0),(0,s.default)(this,"countRows",void 0),this.changes=t,this.selected=r,this.countCols=n,this.countRows=i}static startRegisteringEvents(e,t){e.addHook("beforeChange",function(r,n){const s=r&&r.length;if(!s)return;if(!r.find(e=>{const[,,t,r]=e;return t!==r}))return;t.done(()=>{const t=r.reduce((e,t)=>(e.push([...t]),e),[]);t.forEach(t=>{t[1]=e.propToCol(t[1])});const n=s>1?this.getSelected():[[t[0][0],t[0][1]]];return new a({changes:t,selected:n,countCols:e.countCols(),countRows:e.countRows()})},n)})}undo(e,t){const r=(0,o.deepClone)(this.changes);for(let e=0,t=r.length;e<t;e++)r[e].splice(3,1);e.addHookOnce("afterChange",()=>{const r=e.countRows()-this.countRows;r>0&&e.alter("remove_row",null,r,"UndoRedo.undo");const n=e.countCols()-this.countCols;n>0&&e.isColumnModificationAllowed()&&e.alter("remove_col",null,n,"UndoRedo.undo"),e.scrollToFocusedCell(),e.selectCells(this.selected,!1,!1),t()}),e.setDataAtCell(r,null,null,"UndoRedo.undo")}redo(e,t){const r=(0,o.deepClone)(this.changes);for(let e=0,t=r.length;e<t;e++)r[e].splice(2,1);e.addHookOnce("afterChange",()=>{e.selectCells(this.selected,!1,!1),t()}),e.setDataAtCell(r,null,null,"UndoRedo.redo")}}t.DataChangeAction=a},26005:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(48136));t.default=class{constructor(){this.clipboardData=new s.default}preventDefault(){}composedPath(){return[]}}},26023:(e,t,r)=>{"use strict";var n=r(19098),s=r(48369),i=r(31520),o=i.Set,a=i.proto,l=n(a.forEach),h=n(a.keys),u=h(new o).next;e.exports=function(e,t,r){return r?s({iterator:h(e),next:u},t):l(e,t)}},26172:(e,t,r)=>{"use strict";t.__esModule=!0,t.handsontableRenderer=i;var n=r(40697);const s=t.RENDERER_TYPE="handsontable";function i(e,t,r,s,i,o,a){n.autocompleteRenderer.apply(this,[e,t,r,s,i,o,a])}i.RENDERER_TYPE=s},26241:(e,t,r)=>{"use strict";t.__esModule=!0,t.condition=a;var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),s=r(27727),i=r(11278);const o=t.CONDITION_NAME="begins_with";function a(e,t){let[r]=t;return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale).startsWith((0,s.stringify)(r))}(0,i.registerCondition)(o,a,{name:n.FILTERS_CONDITIONS_BEGINS_WITH,inputsCount:1,showOperators:!0})},26520:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(42660)),i=n(r(14228)),o=n(r(80595)),a=r(21389),l=r(82175);class h extends s.default{constructor(e,t,r,n){super(e,t,r,n,l.CLONE_BOTTOM_INLINE_START_CORNER)}}(0,a.mixin)(h,i.default),(0,a.mixin)(h,o.default);t.default=h},26648:(e,t,r)=>{"use strict";var n=r(72820),s=r(77439),i=r(19098),o=r(53872),a=r(44827),l=r(15176),h=r(80706),u=r(84677),c=r(85988),d=r(52232),g=r(66228),p=r(12033),f=r(33973),m=p("replace"),w=TypeError,E=i("".indexOf),y=i("".replace),C=i("".slice),v=Math.max;n({target:"String",proto:!0},{replaceAll:function(e,t){var r,n,i,p,S,R,T,N,_,A,b=o(this),M=0,I="";if(l(e)){if((r=h(e))&&(n=u(o(d(e))),!~E(n,"g")))throw new w("`.replaceAll` does not allow non-global regexes");if(i=c(e,m))return s(i,e,b,t);if(f&&r)return y(u(b),e,t)}for(p=u(b),S=u(e),(R=a(t))||(t=u(t)),T=S.length,N=v(1,T),_=E(p,S);-1!==_;)A=R?u(t(S,_,p)):g(S,p,_,[],void 0,t),I+=C(p,M,_)+A,M=_+T,_=_+N>p.length?-1:E(p,S,_+N);return M<p.length&&(I+=C(p,M)),I}})},27089:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"scrollToFocusedCell",callback(e){const{highlight:t}=e.getSelectedRangeActive(),r=e.getFirstFullyVisibleRow()-1,n=e.getFirstFullyVisibleColumn()-1,s=e.getLastFullyVisibleRow()+1,i=e.getLastFullyVisibleColumn()+1,o=e._createCellCoords(r,n),a=e._createCellCoords(s,i);if(!e._createCellRange(o,o,a).includes(t)&&(t.row>=0||t.col>=0)){const r={};if(t.col>=0){const n=Math.floor(e.countVisibleCols()/2);r.col=Math.max(t.col-n,0)}if(t.row>=0){const n=Math.floor(e.countVisibleRows()/2);r.row=Math.max(t.row-n,0)}e.scrollViewportTo({...r,verticalSnap:"top",horizontalSnap:"start"})}}}},27317:()=>{},27367:(e,t,r)=>{"use strict";t.__esModule=!0,t.expandNode=function e(t){const{data:r,childs:o}=t;if(!r.isCollapsed||r.isHidden||r.origColspan<=1)return{rollbackModification:()=>{},affectedColumns:[],colspanCompensation:0};if((0,i.isNodeReflectsFirstChildColspan)(t))return e(o[0]);r.isCollapsed=!1;const a=o.slice(1),l=new Set;let h=0;if(a.length>0)(0,n.arrayEach)(a,e=>{e.replaceTreeWith(e.data.clonedTree),e.data.clonedTree=null;const t=e.data;h+=t.colspan,(0,i.traverseHiddenNodeColumnIndexes)(e,e=>{l.add(e)})});else{const{colspan:e,origColspan:t,columnIndex:n}=r;h=t-e;for(let e=1;e<t;e++)l.add(n+e)}return t.walkUp(e=>{const{data:t}=e;t.colspan+=h,t.colspan>=t.origColspan?(t.colspan=t.origColspan,t.isCollapsed=!1):(0,i.isNodeReflectsFirstChildColspan)(e)&&(t.isCollapsed=(0,i.getFirstChildProperty)(e,"isCollapsed"))}),{rollbackModification:()=>(0,s.collapseNode)(t),affectedColumns:Array.from(l),colspanCompensation:h}},r(89624),r(14950),r(98831),r(67046),r(38221),r(56050),r(65724);var n=r(40785),s=r(55708),i=r(42413)},27446:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(89624),r(14950),r(98831),r(67046),r(38221),r(56050),r(65724),r(34478),r(66133),r(940);var s=r(53383),i=r(6083),o=r(4407),a=r(40785),l=r(70095),h=r(17715),u=n(r(62107)),c=n(r(19026)),d=r(1531);function g(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function p(e,t){return e.get(m(e,t))}function f(e,t,r){return e.set(m(e,t),r),r}function m(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;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",E=t.PLUGIN_PRIORITY=310;var y=new WeakMap,C=new WeakSet;class v extends s.BasePlugin{constructor(){var e,t;super(...arguments),g(e=this,t=C),t.add(e),function(e,t,r){g(e,t),t.set(e,r)}(this,y,null)}static get PLUGIN_KEY(){return w}static get PLUGIN_PRIORITY(){return E}static get DEFAULT_SETTINGS(){return{copyPasteEnabled:!0,indicators:!1,columns:[]}}isEnabled(){return!!this.hot.getSettings()[w]}enablePlugin(){var e=this;this.enabled||(f(y,this,new d.HidingMap),p(y,this).addLocalHook("init",()=>m(C,this,A).call(this)),this.hot.columnIndexMapper.registerMap(this.pluginName,p(y,this)),this.addHook("afterContextMenuDefaultOptions",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return m(C,e,_).call(e,...r)}),this.addHook("afterGetCellMeta",(e,t,r)=>m(C,this,R).call(this,e,t,r)),this.addHook("modifyColWidth",(e,t)=>m(C,this,S).call(this,e,t),2),this.addHook("afterGetColHeader",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return m(C,e,N).call(e,...r)}),this.addHook("modifyCopyableRange",e=>m(C,this,T).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(),r=this.isValidConfig(e);let n=t;const s=p(y,this).getValues().slice(),i=e.length>0;if(r&&i){const t=e.map(e=>this.hot.toPhysicalColumn(e));(0,a.arrayEach)(t,e=>{s[e]=!1}),n=(0,a.arrayReduce)(s,(e,t,r)=>(t&&e.push(this.hot.toVisualColumn(r)),e),[])}!1!==this.hot.runHooks("beforeUnhideColumns",t,n,r&&i)&&(r&&i&&p(y,this).setValues(s),this.hot.view.adjustElementsSize(),this.hot.runHooks("afterUnhideColumns",t,n,r&&i,r&&n.length<t.length))}showColumn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.showColumns(t)}hideColumns(e){const t=this.getHiddenColumns(),r=this.isValidConfig(e);let n=t;r&&(n=Array.from(new Set(t.concat(e))));!1!==this.hot.runHooks("beforeHideColumns",t,n,r)&&(r&&this.hot.batchExecution(()=>{(0,a.arrayEach)(e,e=>{p(y,this).setValueAtIndex(this.hot.toPhysicalColumn(e),!0)})},!0),this.hot.runHooks("afterHideColumns",t,n,r,r&&n.length>t.length))}hideColumn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.hideColumns(t)}getHiddenColumns(){return(0,a.arrayMap)(p(y,this).getHiddenIndexes(),e=>this.hot.toVisualColumn(e))}isHidden(e){return p(y,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(){f(y,this,null),super.destroy()}}function S(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,r){if(!1===this.getSetting("copyPasteEnabled")&&this.isHidden(t)&&(r.skipColumnOnPaste=!0),this.isHidden(t-1))r.className=r.className||"",-1===r.className.indexOf("afterHiddenColumn")&&(r.className+=" afterHiddenColumn");else if(r.className){const e=r.className.split(" ");if(e.length>0){const t=e.indexOf("afterHiddenColumn");t>-1&&e.splice(t,1),r.className=e.join(" ")}}}function T(e){if(this.getSetting("copyPasteEnabled"))return e;const t=[],r=(e,r,n,s)=>{t.push({startRow:e,endRow:r,startCol:n,endCol:s})};return(0,a.arrayEach)(e,e=>{let t=!0,n=0;(0,o.rangeEach)(e.startCol,e.endCol,s=>{this.isHidden(s)?(t||r(e.startRow,e.endRow,n,s-1),t=!0):(t&&(n=s),s===e.endCol&&r(e.startRow,e.endRow,n,s),t=!1)})}),t}function N(e,t){if(!this.getSetting("indicators")||e<0)return;const r=[];e>=1&&this.isHidden(e-1)&&r.push("afterHiddenColumn"),e<this.hot.countCols()-1&&this.isHidden(e+1)&&r.push("beforeHiddenColumn"),(0,i.addClass)(t,r)}function _(e){e.items.push({name:l.SEPARATOR},(0,u.default)(this),(0,c.default)(this))}function A(){const e=this.getSetting("columns");Array.isArray(e)&&this.hideColumns(e)}t.HiddenColumns=v},27577:()=>{},27600:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(8249),r(31835);var s=n(r(24300));t.PartiallyVisibleColumnsCalculationType=class{constructor(){(0,s.default)(this,"count",0),(0,s.default)(this,"startColumn",null),(0,s.default)(this,"endColumn",null),(0,s.default)(this,"startPosition",null),(0,s.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedWidth:r,zeroBasedScrollOffset:n,viewportWidth:s}=t;r<=n&&(this.startColumn=e);r>=n&&r<=n+(n>0?s+1:s)&&(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=e)),this.endColumn=e}finalize(e){var t;const{scrollOffset:r,viewportWidth:n,inlineStartOffset:s,zeroBasedScrollOffset:i,totalColumns:o,needReverse:a,startPositions:l,columnWidth:h}=e;if(this.endColumn===o-1&&a)for(this.startColumn=this.endColumn;this.startColumn>0;){const e=l[this.endColumn]+h-l[this.startColumn-1];if(this.startColumn-=1,e>n)break}this.startPosition=null!==(t=l[this.startColumn])&&void 0!==t?t:null;r+n-(i>0?n+1:n)<-1*s||r>l.at(-1)+h||-1*r-n>0?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,o<this.endColumn&&(this.endColumn=o-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}},27727:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t._injectProductInfo=function(e,t){const r=!a(e),n="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),i="16.1.0-next-75c35bc-20250911";let o,y="invalid",C="invalid";const v=function(e){let t=[][l],r=t;if(e[l]!==d("Z"))return!1;for(let t="",n="B<H4P+".split(""),s=d(n.shift());s;s=d(n.shift()||"A"))--s<""[l]?r|=(u(`${u(h(t)+(h(c(e,Math.abs(s),2))+[]).padStart(2,"0"))}`)%97||2)>>1:t=c(e,s,s?1===n[l]?9:8:6);return r===t}(e=g(e||""));if(r||n||v)if(v){const t=(0,s.default)("15/09/2025","DD/MM/YYYY"),r=Math.floor(t.toDate().getTime()/864e5),n=p(e);o=(0,s.default)(864e5*(n+1),"x").format("MMMM DD, YYYY"),r>n?(y="expired",C="expired"):(y="valid",C="valid")}else n?(y="non_commercial",C="valid"):(y="invalid",C="invalid");else y="missing",C="missing";f()&&(y="valid",C="valid");if(!m&&"valid"!==y){w[y]({keyValidityDate:o,hotVersion:i})&&console["non_commercial"===y?"info":"warn"](w[y]({keyValidityDate:o,hotVersion:i})),m=!0}if("valid"!==C&&t){if(E[C]({keyValidityDate:o,hotVersion:i})){const e=document.createElement("div");e.className="handsontable hot-display-license-info",e.innerHTML=E[C]({keyValidityDate:o,hotVersion:i}),t.appendChild(e)}}},t.getMostBottomEndPosition=function(e){var t,r;const{rowIndexMapper:n,columnIndexMapper:s}=e,{navigableHeaders:i}=e.getSettings();let o=n.getRenderableIndexesLength()-1,a=s.getRenderableIndexesLength()-1;if(o<0){if(!i||0===e.countColHeaders())return null;o=-1}if(a<0){if(!i||0===e.countColHeaders())return null;a=-1}return e._createCellCoords(null!==(t=n.getVisualFromRenderableIndex(o))&&void 0!==t?t:o,null!==(r=s.getVisualFromRenderableIndex(a))&&void 0!==r?r:a)},t.getMostTopStartPosition=function(e){const{rowIndexMapper:t,columnIndexMapper:r}=e,{navigableHeaders:n}=e.getSettings();let s=n&&e.countColHeaders()>0?-e.countColHeaders():0,i=n&&e.countRowHeaders()>0?-e.countRowHeaders():0;0===s&&(s=t.getVisualFromRenderableIndex(s));0===i&&(i=r.getVisualFromRenderableIndex(i));if(null===s||null===i)return null;return e._createCellCoords(s,i)},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=o,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=n(r(37539)),i=r(42685);function o(e){return void 0===e}function a(e){return null===e||""===e||o(e)}const l="length",h=e=>parseInt(e,16),u=e=>parseInt(e,10),c=(e,t,r)=>e.substr(t,r),d=e=>e.codePointAt(0)-65,g=e=>`${e}`.replace(/\-/g,""),p=e=>h(c(g(e),h("12"),d("F")))/(h(c(g(e),d("B"),~~![][l]))||9),f=()=>"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:()=>i.toSingleLine`
236
236
  The license key for Handsontable is invalid.\x20
237
237
  If you need any help, contact us at support@handsontable.com.`,expired:e=>{let{keyValidityDate:t,hotVersion:r}=e;return i.toSingleLine`
238
238
  The license key for Handsontable expired on ${t}, and is not valid for the installed\x20
@@ -260,7 +260,7 @@ s.version="2.30.1",i(Xr),s.fn=hi,s.min=Jr,s.max=en,s.now=tn,s.utc=f,s.unix=ui,s.
260
260
  that does not exist. Before activation, register the context using the "addContext" method.`);c=e},isCtrlPressed:()=>!p&&(m.isPressed("control")||m.isPressed("meta")),releasePressedKeys:()=>m.releasePressedKeys(),destroy:()=>m.unmount()}}},38729:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(25589),s=r(76097);const i=t.CELL_TYPE="select";t.SelectCellType={CELL_TYPE:i,editor:n.SelectEditor,renderer:s.selectRenderer}},38950:(e,t,r)=>{"use strict";r(4462),r(52695)},38987:(e,t,r)=>{"use strict";t.__esModule=!0,t.getClassesToAdd=function(e,t,r,s){const h=[o];s&&h.push(a);if(!1===r)return h.push(i),h;const u=e.getSortOrderOfColumn(t);(0,n.isDefined)(u)&&h.push(l.get(u));return h},t.getClassesToRemove=function(){return Array.from(l.values()).concat(a,i,o)},r(99356);var n=r(27727),s=r(52665);const i="indicatorDisabled",o="columnSorting",a="sortAction",l=new Map([[s.ASC_SORT_STATE,"ascending"],[s.DESC_SORT_STATE,"descending"]])},39081:(e,t,r)=>{"use strict";t.__esModule=!0,t.condition=o;var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),s=r(11278);const i=t.CONDITION_NAME="lt";function o(e,t){let[r]=t,n=r;return"numeric"===e.meta.type&&(n=parseFloat(n,10)),e.value<n}(0,s.registerCondition)(i,o,{name:n.FILTERS_CONDITIONS_LESS_THAN,inputsCount:1,showOperators:!0})},39250:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Alternation:()=>pt,CstParser:()=>An,EMPTY_ALT:()=>Tn,EOF:()=>tt,EarlyExitException:()=>Ur,EmbeddedActionsParser:()=>bn,Flat:()=>lt,GAstVisitor:()=>Ct,Lexer:()=>Be,LexerDefinitionErrorType:()=>Fe,MismatchedTokenException:()=>kr,NoViableAltException:()=>Hr,NonTerminal:()=>ot,NotAllInputParsedException:()=>Fr,Option:()=>ht,Parser:()=>_n,ParserDefinitionErrorType:()=>vn,Repetition:()=>dt,RepetitionMandatory:()=>ut,RepetitionMandatoryWithSeparator:()=>ct,RepetitionWithSeparator:()=>gt,Rule:()=>at,Terminal:()=>ft,VERSION:()=>n,assignOccurrenceIndices:()=>Mr,clearCache:()=>Vn,createSyntaxDiagramsCode:()=>Mn,createToken:()=>et,createTokenInstance:()=>rt,defaultGrammarResolverErrorProvider:()=>Rr,defaultGrammarValidatorErrorProvider:()=>Tr,defaultLexerErrorProvider:()=>Ue,defaultParserErrorProvider:()=>Sr,generateParserFactory:()=>Fn,generateParserModule:()=>Un,isRecognitionException:()=>Dr,resolveGrammar:()=>Ar,serializeGrammar:()=>mt,serializeProduction:()=>wt,tokenLabel:()=>We,tokenMatcher:()=>nt,tokenName:()=>Ye,validateGrammar:()=>br});var n="6.5.0";function s(e){return e&&0===e.length}function i(e){return null==e?[]:Object.keys(e)}function o(e){for(var t=[],r=Object.keys(e),n=0;n<r.length;n++)t.push(e[r[n]]);return t}function a(e,t){for(var r=[],n=0;n<e.length;n++)r.push(t.call(null,e[n],n));return r}function l(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];Array.isArray(n)?t=t.concat(l(n)):t.push(n)}return t}function h(e){return s(e)?void 0:e[0]}function u(e){var t=e&&e.length;return t?e[t-1]:void 0}function c(e,t){if(Array.isArray(e))for(var r=0;r<e.length;r++)t.call(null,e[r],r);else{if(!I(e))throw Error("non exhaustive match");var n=i(e);for(r=0;r<n.length;r++){var s=n[r],o=e[s];t.call(null,o,s)}}}function d(e){return"string"==typeof e}function g(e){return void 0===e}function p(e){return e instanceof Function}function f(e,t){return void 0===t&&(t=1),e.slice(t,e.length)}function m(e,t){return void 0===t&&(t=1),e.slice(0,e.length-t)}function w(e,t){var r=[];if(Array.isArray(e))for(var n=0;n<e.length;n++){var s=e[n];t.call(null,s)&&r.push(s)}return r}function E(e,t){return w(e,function(e){return!t(e)})}function y(e,t){for(var r=Object.keys(e),n={},s=0;s<r.length;s++){var i=r[s],o=e[i];t(o)&&(n[i]=o)}return n}function C(e,t){return!!I(e)&&e.hasOwnProperty(t)}function v(e,t){return void 0!==T(e,function(e){return e===t})}function S(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r]);return t}function R(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}function T(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(t.call(null,n))return n}}function N(e,t,r){for(var n=Array.isArray(e),s=n?e:o(e),a=n?[]:i(e),l=r,h=0;h<s.length;h++)l=t.call(null,l,s[h],n?h:a[h]);return l}function _(e){return E(e,function(e){return null==e})}function A(e,t){void 0===t&&(t=function(e){return e});var r=[];return N(e,function(e,n){var s=t(n);return v(r,s)?e:(r.push(s),e.concat(n))},[])}function b(e){return Array.isArray(e)}function M(e){return e instanceof RegExp}function I(e){return e instanceof Object}function O(e,t){for(var r=0;r<e.length;r++)if(!t(e[r],r))return!1;return!0}function x(e,t){return E(e,function(e){return v(t,e)})}function P(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return!0;return!1}function L(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0;n<t.length;n++)for(var s=t[n],o=i(s),a=0;a<o.length;a++){var l=o[a];e[l]=s[l]}return e}function D(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0;n<t.length;n++){var s=t[n];if(!g(s))for(var o=i(s),a=0;a<o.length;a++){var l=o[a];C(e,l)||(e[l]=s[l])}}return e}function k(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return D.apply(null,[{}].concat(e))}function H(e,t){var r={};return c(e,function(e){var n=t(e),s=r[n];s?s.push(e):r[n]=[e]}),r}function F(e,t){for(var r=R(e),n=i(t),s=0;s<n.length;s++){var o=n[s],a=t[o];r[o]=a}return r}function U(){}function V(e){return e}function B(e){console&&console.error&&console.error("Error: "+e)}function W(e){console&&console.warn&&console.warn("Warning: "+e)}function Y(){return"function"==typeof Map}function G(e){function t(){}t.prototype=e;var r=new t;function n(){return typeof r.bar}return n(),n(),e}function j(e){return e[e.length-1]}function z(e){var t=(new Date).getTime(),r=e();return{time:(new Date).getTime()-t,value:r}}var $=r(75713),K={},X=new $.RegExpParser;function q(e){var t=e.toString();if(K.hasOwnProperty(t))return K[t];var r=X.pattern(t);return K[t]=r,r}var Q,Z=(Q=function(e,t){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},Q(e,t)},function(e,t){function r(){this.constructor=e}Q(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),J="Complement Sets are not supported for first char optimization",ee='Unable to use "first char" lexer optimizations:\n';function te(e,t){void 0===t&&(t=!1);try{var r=q(e);return re(r.value,{},r.flags.ignoreCase)}catch(r){if(r.message===J)t&&W(ee+"\tUnable to optimize: < "+e.toString()+" >\n\tComplement Sets cannot be automatically optimized.\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.");else{var n="";t&&(n="\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details."),B(ee+"\n\tFailed parsing: < "+e.toString()+" >\n\tUsing the regexp-to-ast library version: "+$.VERSION+"\n\tPlease open an issue at: https://github.com/bd82/regexp-to-ast/issues"+n)}}return[]}function re(e,t,r){switch(e.type){case"Disjunction":for(var n=0;n<e.value.length;n++)re(e.value[n],t,r);break;case"Alternative":var s=e.value;for(n=0;n<s.length;n++){var i=s[n];switch(i.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}var a=i;switch(a.type){case"Character":ne(a.value,t,r);break;case"Set":if(!0===a.complement)throw Error(J);c(a.value,function(e){if("number"==typeof e)ne(e,t,r);else{var n=e;if(!0===r)for(var s=n.from;s<=n.to;s++)ne(s,t,r);else{for(s=n.from;s<=n.to&&s<_e;s++)ne(s,t,r);if(n.to>=_e)for(var i=n.from>=_e?n.from:_e,o=n.to,a=Ae(i),l=Ae(o),h=a;h<=l;h++)t[h]=h}}});break;case"Group":re(a.value,t,r);break;default:throw Error("Non Exhaustive Match")}var l=void 0!==a.quantifier&&0===a.quantifier.atLeast;if("Group"===a.type&&!1===ie(a)||"Group"!==a.type&&!1===l)break}break;default:throw Error("non exhaustive match!")}return o(t)}function ne(e,t,r){var n=Ae(e);t[n]=n,!0===r&&function(e,t){var r=String.fromCharCode(e),n=r.toUpperCase();if(n!==r){t[s=Ae(n.charCodeAt(0))]=s}else{var s,i=r.toLowerCase();if(i!==r)t[s=Ae(i.charCodeAt(0))]=s}}(e,t)}function se(e,t){return T(e.value,function(e){if("number"==typeof e)return v(t,e);var r=e;return void 0!==T(t,function(e){return r.from<=e&&e<=r.to})})}function ie(e){return!(!e.quantifier||0!==e.quantifier.atLeast)||!!e.value&&(b(e.value)?O(e.value,ie):ie(e.value))}var oe=function(e){function t(t){var r=e.call(this)||this;return r.targetCharCodes=t,r.found=!1,r}return Z(t,e),t.prototype.visitChildren=function(t){if(!0!==this.found){switch(t.type){case"Lookahead":return void this.visitLookahead(t);case"NegativeLookahead":return void this.visitNegativeLookahead(t)}e.prototype.visitChildren.call(this,t)}},t.prototype.visitCharacter=function(e){v(this.targetCharCodes,e.value)&&(this.found=!0)},t.prototype.visitSet=function(e){e.complement?void 0===se(e,this.targetCharCodes)&&(this.found=!0):void 0!==se(e,this.targetCharCodes)&&(this.found=!0)},t}($.BaseRegExpVisitor);function ae(e,t){if(t instanceof RegExp){var r=q(t),n=new oe(e);return n.visit(r),n.found}return void 0!==T(t,function(t){return v(e,t.charCodeAt(0))})}var le=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),he="PATTERN",ue="defaultMode",ce="modes",de="boolean"==typeof new RegExp("(?:)").sticky;function ge(e,t){var r,n=(t=k(t,{useSticky:de,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r","\n"],tracer:function(e,t){return t()}})).tracer;n("initCharCodeToOptimizedIndexMap",function(){!function(){if(s(be)){be=new Array(65536);for(var e=0;e<65536;e++)be[e]=e>255?255+~~(e/255):e}}()}),n("Reject Lexer.NA",function(){r=E(e,function(e){return e[he]===Be.NA})});var i,o,l,h,u,f,m,w,y,S,R,T=!1;n("Transform Patterns",function(){T=!1,i=a(r,function(e){var r=e[he];if(M(r)){var n=r.source;return 1===n.length&&"^"!==n&&"$"!==n&&"."!==n?n:2!==n.length||"\\"!==n[0]||v(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],n[1])?t.useSticky?Ee(r):we(r):n[1]}if(p(r))return T=!0,{exec:r};if(C(r,"exec"))return T=!0,r;if("string"==typeof r){if(1===r.length)return r;var s=r.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),i=new RegExp(s);return t.useSticky?Ee(i):we(i)}throw Error("non exhaustive match")})}),n("misc mapping",function(){o=a(r,function(e){return e.tokenTypeIdx}),l=a(r,function(e){var t=e.GROUP;if(t!==Be.SKIPPED){if(d(t))return t;if(g(t))return!1;throw Error("non exhaustive match")}}),h=a(r,function(e){var t=e.LONGER_ALT;if(t)return function(e,t){for(var r=0;r<e.length;r++)if(e[r]===t)return r;return-1}(r,t)}),u=a(r,function(e){return e.PUSH_MODE}),f=a(r,function(e){return C(e,"POP_MODE")})}),n("Line Terminator Handling",function(){var e=Te(t.lineTerminatorCharacters);m=a(r,function(e){return!1}),"onlyOffset"!==t.positionTracking&&(m=a(r,function(t){return C(t,"LINE_BREAKS")?t.LINE_BREAKS:!1===Re(t,e)?ae(e,t.PATTERN):void 0}))}),n("Misc Mapping #2",function(){w=a(r,Ce),y=a(i,ve),S=N(r,function(e,t){var r=t.GROUP;return d(r)&&r!==Be.SKIPPED&&(e[r]=[]),e},{}),R=a(i,function(e,t){return{pattern:i[t],longerAlt:h[t],canLineTerminator:m[t],isCustom:w[t],short:y[t],group:l[t],push:u[t],pop:f[t],tokenTypeIdx:o[t],tokenType:r[t]}})});var _=!0,A=[];return t.safeMode||n("First Char Optimization",function(){A=N(r,function(e,r,n){if("string"==typeof r.PATTERN){var i=Ae(r.PATTERN.charCodeAt(0));Ne(e,i,R[n])}else if(b(r.START_CHARS_HINT)){var o;c(r.START_CHARS_HINT,function(t){var r=Ae("string"==typeof t?t.charCodeAt(0):t);o!==r&&(o=r,Ne(e,r,R[n]))})}else if(M(r.PATTERN))if(r.PATTERN.unicode)_=!1,t.ensureOptimizations&&B(ee+"\tUnable to analyze < "+r.PATTERN.toString()+" > pattern.\n\tThe regexp unicode flag is not currently supported by the regexp-to-ast library.\n\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE");else{var a=te(r.PATTERN,t.ensureOptimizations);s(a)&&(_=!1),c(a,function(t){Ne(e,t,R[n])})}else t.ensureOptimizations&&B(ee+"\tTokenType: <"+r.name+"> is using a custom token pattern without providing <start_chars_hint> parameter.\n\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE"),_=!1;return e},[])}),n("ArrayPacking",function(){A=function(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];t.push(void 0!==n?n:void 0)}return t}(A)}),{emptyGroups:S,patternIdxToConfig:R,charCodeToPatternIdxToConfig:A,hasCustom:T,canBeOptimized:_}}function pe(e,t){var r=[],n=function(e){var t=w(e,function(e){return!C(e,he)}),r=a(t,function(e){return{message:"Token Type: ->"+e.name+"<- missing static 'PATTERN' property",type:Fe.MISSING_PATTERN,tokenTypes:[e]}}),n=x(e,t);return{errors:r,valid:n}}(e);r=r.concat(n.errors);var s=function(e){var t=w(e,function(e){var t=e[he];return!(M(t)||p(t)||C(t,"exec")||d(t))}),r=a(t,function(e){return{message:"Token Type: ->"+e.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:Fe.INVALID_PATTERN,tokenTypes:[e]}}),n=x(e,t);return{errors:r,valid:n}}(n.valid),i=s.valid;return r=(r=r.concat(s.errors)).concat(function(e){var t=[],r=w(e,function(e){return M(e[he])});return t=t.concat(function(e){var t=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.found=!1,t}return le(t,e),t.prototype.visitEndAnchor=function(e){this.found=!0},t}($.BaseRegExpVisitor),r=w(e,function(e){var r=e[he];try{var n=q(r),s=new t;return s.visit(n),s.found}catch(e){return fe.test(r.source)}}),n=a(r,function(e){return{message:"Unexpected RegExp Anchor Error:\n\tToken Type: ->"+e.name+"<- static 'PATTERN' cannot contain end of input anchor '$'\n\tSee sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS\tfor details.",type:Fe.EOI_ANCHOR_FOUND,tokenTypes:[e]}});return n}(r)),t=t.concat(function(e){var t=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.found=!1,t}return le(t,e),t.prototype.visitStartAnchor=function(e){this.found=!0},t}($.BaseRegExpVisitor),r=w(e,function(e){var r=e[he];try{var n=q(r),s=new t;return s.visit(n),s.found}catch(e){return me.test(r.source)}}),n=a(r,function(e){return{message:"Unexpected RegExp Anchor Error:\n\tToken Type: ->"+e.name+"<- static 'PATTERN' cannot contain start of input anchor '^'\n\tSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS\tfor details.",type:Fe.SOI_ANCHOR_FOUND,tokenTypes:[e]}});return n}(r)),t=t.concat(function(e){var t=w(e,function(e){var t=e[he];return t instanceof RegExp&&(t.multiline||t.global)}),r=a(t,function(e){return{message:"Token Type: ->"+e.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:Fe.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[e]}});return r}(r)),t=t.concat(function(e){var t=[],r=a(e,function(r){return N(e,function(e,n){return r.PATTERN.source!==n.PATTERN.source||v(t,n)||n.PATTERN===Be.NA||(t.push(n),e.push(n)),e},[])}),n=a(w(r=_(r),function(e){return e.length>1}),function(e){var t=a(e,function(e){return e.name});return{message:"The same RegExp pattern ->"+h(e).PATTERN+"<-has been used in all of the following Token Types: "+t.join(", ")+" <-",type:Fe.DUPLICATE_PATTERNS_FOUND,tokenTypes:e}});return n}(r)),t=t.concat(function(e){var t=w(e,function(e){return e[he].test("")}),r=a(t,function(e){return{message:"Token Type: ->"+e.name+"<- static 'PATTERN' must not match an empty string",type:Fe.EMPTY_MATCH_PATTERN,tokenTypes:[e]}});return r}(r)),t}(i)),r=r.concat(function(e){var t=w(e,function(e){if(!C(e,"GROUP"))return!1;var t=e.GROUP;return t!==Be.SKIPPED&&t!==Be.NA&&!d(t)}),r=a(t,function(e){return{message:"Token Type: ->"+e.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:Fe.INVALID_GROUP_TYPE_FOUND,tokenTypes:[e]}});return r}(i)),r=r.concat(function(e,t){var r=w(e,function(e){return void 0!==e.PUSH_MODE&&!v(t,e.PUSH_MODE)}),n=a(r,function(e){return{message:"Token Type: ->"+e.name+"<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->"+e.PUSH_MODE+"<-which does not exist",type:Fe.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[e]}});return n}(i,t)),r=r.concat(function(e){var t=[],r=N(e,function(e,t,r){var n,s=t.PATTERN;return s===Be.NA||(d(s)?e.push({str:s,idx:r,tokenType:t}):M(s)&&(n=s,void 0===T([".","\\","[","]","|","^","$","(",")","?","*","+","{"],function(e){return-1!==n.source.indexOf(e)}))&&e.push({str:s.source,idx:r,tokenType:t})),e},[]);return c(e,function(e,n){c(r,function(r){var s=r.str,i=r.idx,o=r.tokenType;if(n<i&&function(e,t){if(M(t)){var r=t.exec(e);return null!==r&&0===r.index}if(p(t))return t(e,0,[],{});if(C(t,"exec"))return t.exec(e,0,[],{});if("string"==typeof t)return t===e;throw Error("non exhaustive match")}(s,e.PATTERN)){var a="Token: ->"+o.name+"<- can never be matched.\nBecause it appears AFTER the Token Type ->"+e.name+"<-in the lexer's definition.\nSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNREACHABLE";t.push({message:a,type:Fe.UNREACHABLE_PATTERN,tokenTypes:[e,o]})}})}),t}(i)),r}var fe=/[^\\][\$]/;var me=/[^\\[][\^]|^\^/;function we(e){var t=e.ignoreCase?"i":"";return new RegExp("^(?:"+e.source+")",t)}function Ee(e){var t=e.ignoreCase?"iy":"y";return new RegExp(""+e.source,t)}function ye(e,t,r){var n=[],s=!1,o=E(_(l(function(e,t){for(var r=[],n=i(e),s=0;s<n.length;s++){var o=n[s];r.push(t.call(null,e[o],o))}return r}(e.modes,function(e){return e}))),function(e){return e[he]===Be.NA}),a=Te(r);return t&&c(o,function(e){var t=Re(e,a);if(!1!==t){var r=function(e,t){if(t.issue===Fe.IDENTIFY_TERMINATOR)return"Warning: unable to identify line terminator usage in pattern.\n\tThe problem is in the <"+e.name+"> Token Type\n\t Root cause: "+t.errMsg+".\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR";if(t.issue===Fe.CUSTOM_LINE_BREAK)return"Warning: A Custom Token Pattern should specify the <line_breaks> option.\n\tThe problem is in the <"+e.name+"> Token Type\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}(e,t),i={message:r,type:t.issue,tokenType:e};n.push(i)}else C(e,"LINE_BREAKS")?!0===e.LINE_BREAKS&&(s=!0):ae(a,e.PATTERN)&&(s=!0)}),t&&!s&&n.push({message:"Warning: No LINE_BREAKS Found.\n\tThis Lexer has been defined to track line and column information,\n\tBut none of the Token Types can be identified as matching a line terminator.\n\tSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n\tfor details.",type:Fe.NO_LINE_BREAKS_FLAGS}),n}function Ce(e){var t=e.PATTERN;if(M(t))return!1;if(p(t))return!0;if(C(t,"exec"))return!0;if(d(t))return!1;throw Error("non exhaustive match")}function ve(e){return!(!d(e)||1!==e.length)&&e.charCodeAt(0)}var Se={test:function(e){for(var t=e.length,r=this.lastIndex;r<t;r++){var n=e.charCodeAt(r);if(10===n)return this.lastIndex=r+1,!0;if(13===n)return 10===e.charCodeAt(r+1)?this.lastIndex=r+2:this.lastIndex=r+1,!0}return!1},lastIndex:0};function Re(e,t){if(C(e,"LINE_BREAKS"))return!1;if(M(e.PATTERN)){try{ae(t,e.PATTERN)}catch(e){return{issue:Fe.IDENTIFY_TERMINATOR,errMsg:e.message}}return!1}if(d(e.PATTERN))return!1;if(Ce(e))return{issue:Fe.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}function Te(e){return a(e,function(e){return d(e)&&e.length>0?e.charCodeAt(0):e})}function Ne(e,t,r){void 0===e[t]?e[t]=[r]:e[t].push(r)}var _e=256;function Ae(e){return e<_e?e:be[e]}var be=[];function Me(e,t){var r=e.tokenTypeIdx;return r===t.tokenTypeIdx||!0===t.isParent&&!0===t.categoryMatchesMap[r]}function Ie(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}var Oe=1,xe={};function Pe(e){var t=function(e){var t=S(e),r=e,n=!0;for(;n;){var i=x(r=_(l(a(r,function(e){return e.CATEGORIES}))),t);t=t.concat(i),s(i)?n=!1:r=i}return t}(e);!function(e){c(e,function(e){De(e)||(xe[Oe]=e,e.tokenTypeIdx=Oe++),ke(e)&&!b(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),ke(e)||(e.CATEGORIES=[]),C(e,"categoryMatches")||(e.categoryMatches=[]),function(e){return C(e,"categoryMatchesMap")}(e)||(e.categoryMatchesMap={})})}(t),function(e){c(e,function(e){Le([],e)})}(t),function(e){c(e,function(e){e.categoryMatches=[],c(e.categoryMatchesMap,function(t,r){e.categoryMatches.push(xe[r].tokenTypeIdx)})})}(t),c(t,function(e){e.isParent=e.categoryMatches.length>0})}function Le(e,t){c(e,function(e){t.categoryMatchesMap[e.tokenTypeIdx]=!0}),c(t.CATEGORIES,function(r){var n=e.concat(t);v(n,r)||Le(n,r)})}function De(e){return C(e,"tokenTypeIdx")}function ke(e){return C(e,"CATEGORIES")}function He(e){return C(e,"tokenTypeIdx")}var Fe,Ue={buildUnableToPopLexerModeMessage:function(e){return"Unable to pop Lexer Mode after encountering Token ->"+e.image+"<- The Mode Stack is empty"},buildUnexpectedCharactersMessage:function(e,t,r,n,s){return"unexpected character: ->"+e.charAt(t)+"<- at offset: "+t+", skipped "+r+" characters."}};!function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK"}(Fe||(Fe={}));var Ve={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:["\n","\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:Ue,traceInitPerf:!1,skipValidations:!1};Object.freeze(Ve);var Be=function(){function e(e,t){var r=this;if(void 0===t&&(t=Ve),this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.config=void 0,this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},"boolean"==typeof t)throw Error("The second argument to the Lexer constructor is now an ILexerConfig Object.\na boolean 2nd argument is no longer supported");this.config=F(Ve,t);var n=this.config.traceInitPerf;!0===n?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):"number"==typeof n&&(this.traceInitMaxIdent=n,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",function(){var n,o=!0;r.TRACE_INIT("Lexer Config handling",function(){if(r.config.lineTerminatorsPattern===Ve.lineTerminatorsPattern)r.config.lineTerminatorsPattern=Se;else if(r.config.lineTerminatorCharacters===Ve.lineTerminatorCharacters)throw Error("Error: Missing <lineTerminatorCharacters> property on the Lexer config.\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS");if(t.safeMode&&t.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');r.trackStartLines=/full|onlyStart/i.test(r.config.positionTracking),r.trackEndLines=/full/i.test(r.config.positionTracking),b(e)?((n={modes:{}}).modes[ue]=S(e),n[ue]=ue):(o=!1,n=R(e))}),!1===r.config.skipValidations&&(r.TRACE_INIT("performRuntimeChecks",function(){r.lexerDefinitionErrors=r.lexerDefinitionErrors.concat(function(e){var t=[];return C(e,ue)||t.push({message:"A MultiMode Lexer cannot be initialized without a <"+ue+"> property in its definition\n",type:Fe.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),C(e,ce)||t.push({message:"A MultiMode Lexer cannot be initialized without a <modes> property in its definition\n",type:Fe.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),C(e,ce)&&C(e,ue)&&!C(e.modes,e.defaultMode)&&t.push({message:"A MultiMode Lexer cannot be initialized with a "+ue+": <"+e.defaultMode+">which does not exist\n",type:Fe.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),C(e,ce)&&c(e.modes,function(e,r){c(e,function(e,n){g(e)&&t.push({message:"A Lexer cannot be initialized using an undefined Token Type. Mode:<"+r+"> at index: <"+n+">\n",type:Fe.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})})}),t}(n,r.trackStartLines,r.config.lineTerminatorCharacters))}),r.TRACE_INIT("performWarningRuntimeChecks",function(){r.lexerDefinitionWarning=r.lexerDefinitionWarning.concat(ye(n,r.trackStartLines,r.config.lineTerminatorCharacters))})),n.modes=n.modes?n.modes:{},c(n.modes,function(e,t){n.modes[t]=E(e,function(e){return g(e)})});var l=i(n.modes);if(c(n.modes,function(e,n){r.TRACE_INIT("Mode: <"+n+"> processing",function(){var i;(r.modes.push(n),!1===r.config.skipValidations&&r.TRACE_INIT("validatePatterns",function(){r.lexerDefinitionErrors=r.lexerDefinitionErrors.concat(pe(e,l))}),s(r.lexerDefinitionErrors))&&(Pe(e),r.TRACE_INIT("analyzeTokenTypes",function(){i=ge(e,{lineTerminatorCharacters:r.config.lineTerminatorCharacters,positionTracking:t.positionTracking,ensureOptimizations:t.ensureOptimizations,safeMode:t.safeMode,tracer:r.TRACE_INIT.bind(r)})}),r.patternIdxToConfig[n]=i.patternIdxToConfig,r.charCodeToPatternIdxToConfig[n]=i.charCodeToPatternIdxToConfig,r.emptyGroups=F(r.emptyGroups,i.emptyGroups),r.hasCustom=i.hasCustom||r.hasCustom,r.canModeBeOptimized[n]=i.canBeOptimized)})}),r.defaultMode=n.defaultMode,!s(r.lexerDefinitionErrors)&&!r.config.deferDefinitionErrorsHandling){var h=a(r.lexerDefinitionErrors,function(e){return e.message}).join("-----------------------\n");throw new Error("Errors detected in definition of Lexer:\n"+h)}c(r.lexerDefinitionWarning,function(e){W(e.message)}),r.TRACE_INIT("Choosing sub-methods implementations",function(){if(de?(r.chopInput=V,r.match=r.matchWithTest):(r.updateLastIndex=U,r.match=r.matchWithExec),o&&(r.handleModes=U),!1===r.trackStartLines&&(r.computeNewColumn=V),!1===r.trackEndLines&&(r.updateTokenEndLineColumnLocation=U),/full/i.test(r.config.positionTracking))r.createTokenInstance=r.createFullToken;else if(/onlyStart/i.test(r.config.positionTracking))r.createTokenInstance=r.createStartOnlyToken;else{if(!/onlyOffset/i.test(r.config.positionTracking))throw Error('Invalid <positionTracking> config option: "'+r.config.positionTracking+'"');r.createTokenInstance=r.createOffsetOnlyToken}r.hasCustom?(r.addToken=r.addTokenUsingPush,r.handlePayload=r.handlePayloadWithCustom):(r.addToken=r.addTokenUsingMemberAccess,r.handlePayload=r.handlePayloadNoCustom)}),r.TRACE_INIT("Failed Optimization Warnings",function(){var e=N(r.canModeBeOptimized,function(e,t,r){return!1===t&&e.push(r),e},[]);if(t.ensureOptimizations&&!s(e))throw Error("Lexer Modes: < "+e.join(", ")+' > cannot be optimized.\n\t Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.\n\t Or inspect the console log for details on how to resolve these issues.')}),r.TRACE_INIT("clearRegExpParserCache",function(){K={}}),r.TRACE_INIT("toFastProperties",function(){G(r)})})}return e.prototype.tokenize=function(e,t){if(void 0===t&&(t=this.defaultMode),!s(this.lexerDefinitionErrors)){var r=a(this.lexerDefinitionErrors,function(e){return e.message}).join("-----------------------\n");throw new Error("Unable to Tokenize because Errors detected in definition of Lexer:\n"+r)}return this.tokenizeInternal(e,t)},e.prototype.tokenizeInternal=function(e,t){var r,n,s,o,a,l,h,d,g,p,f,m,w,E,y,C,v=this,S=e,R=S.length,T=0,N=0,_=this.hasCustom?0:Math.floor(e.length/10),A=new Array(_),M=[],I=this.trackStartLines?1:void 0,O=this.trackStartLines?1:void 0,x=(y=this.emptyGroups,C={},c(i(y),function(e){if(!b(y[e]))throw Error("non exhaustive match");C[e]=[]}),C),P=this.trackStartLines,L=this.config.lineTerminatorsPattern,D=0,k=[],H=[],F=[],U=[];Object.freeze(U);var V=void 0;function B(){return k}function W(e){var t=Ae(e),r=H[t];return void 0===r?U:r}var Y,G=function(e){if(1===F.length&&void 0===e.tokenType.PUSH_MODE){var t=v.config.errorMessageProvider.buildUnableToPopLexerModeMessage(e);M.push({offset:e.startOffset,line:void 0!==e.startLine?e.startLine:void 0,column:void 0!==e.startColumn?e.startColumn:void 0,length:e.image.length,message:t})}else{F.pop();var r=u(F);k=v.patternIdxToConfig[r],H=v.charCodeToPatternIdxToConfig[r],D=k.length;var n=v.canModeBeOptimized[r]&&!1===v.config.safeMode;V=H&&n?W:B}};function j(e){F.push(e),H=this.charCodeToPatternIdxToConfig[e],k=this.patternIdxToConfig[e],D=k.length,D=k.length;var t=this.canModeBeOptimized[e]&&!1===this.config.safeMode;V=H&&t?W:B}for(j.call(this,t);T<R;){a=null;var z=S.charCodeAt(T),$=V(z),K=$.length;for(r=0;r<K;r++){var X=(Y=$[r]).pattern;if(l=null,!1!==(ie=Y.short)?z===ie&&(a=X):!0===Y.isCustom?null!==(E=X.exec(S,T,A,x))?(a=E[0],void 0!==E.payload&&(l=E.payload)):a=null:(this.updateLastIndex(X,T),a=this.match(X,e,T)),null!==a){if(void 0!==(o=Y.longerAlt)){var q=k[o],Q=q.pattern;h=null,!0===q.isCustom?null!==(E=Q.exec(S,T,A,x))?(s=E[0],void 0!==E.payload&&(h=E.payload)):s=null:(this.updateLastIndex(Q,T),s=this.match(Q,e,T)),s&&s.length>a.length&&(a=s,l=h,Y=q)}break}}if(null!==a){if(d=a.length,void 0!==(g=Y.group)&&(p=Y.tokenTypeIdx,f=this.createTokenInstance(a,T,p,Y.tokenType,I,O,d),this.handlePayload(f,l),!1===g?N=this.addToken(A,N,f):x[g].push(f)),e=this.chopInput(e,d),T+=d,O=this.computeNewColumn(O,d),!0===P&&!0===Y.canLineTerminator){var Z=0,J=void 0,ee=void 0;L.lastIndex=0;do{!0===(J=L.test(a))&&(ee=L.lastIndex-1,Z++)}while(!0===J);0!==Z&&(I+=Z,O=d-ee,this.updateTokenEndLineColumnLocation(f,g,ee,Z,I,O,d))}this.handleModes(Y,G,j,f)}else{for(var te=T,re=I,ne=O,se=!1;!se&&T<R;)for(S.charCodeAt(T),e=this.chopInput(e,1),T++,n=0;n<D;n++){var ie,oe=k[n];X=oe.pattern;if(!1!==(ie=oe.short)?S.charCodeAt(T)===ie&&(se=!0):!0===oe.isCustom?se=null!==X.exec(S,T,A,x):(this.updateLastIndex(X,T),se=null!==X.exec(e)),!0===se)break}m=T-te,w=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(S,te,m,re,ne),M.push({offset:te,line:re,column:ne,length:m,message:w})}}return this.hasCustom||(A.length=N),{tokens:A,groups:x,errors:M}},e.prototype.handleModes=function(e,t,r,n){if(!0===e.pop){var s=e.push;t(n),void 0!==s&&r.call(this,s)}else void 0!==e.push&&r.call(this,e.push)},e.prototype.chopInput=function(e,t){return e.substring(t)},e.prototype.updateLastIndex=function(e,t){e.lastIndex=t},e.prototype.updateTokenEndLineColumnLocation=function(e,t,r,n,s,i,o){var a,l;void 0!==t&&(l=(a=r===o-1)?-1:0,1===n&&!0===a||(e.endLine=s+l,e.endColumn=i-1-l))},e.prototype.computeNewColumn=function(e,t){return e+t},e.prototype.createTokenInstance=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return null},e.prototype.createOffsetOnlyToken=function(e,t,r,n){return{image:e,startOffset:t,tokenTypeIdx:r,tokenType:n}},e.prototype.createStartOnlyToken=function(e,t,r,n,s,i){return{image:e,startOffset:t,startLine:s,startColumn:i,tokenTypeIdx:r,tokenType:n}},e.prototype.createFullToken=function(e,t,r,n,s,i,o){return{image:e,startOffset:t,endOffset:t+o-1,startLine:s,endLine:s,startColumn:i,endColumn:i+o-1,tokenTypeIdx:r,tokenType:n}},e.prototype.addToken=function(e,t,r){return 666},e.prototype.addTokenUsingPush=function(e,t,r){return e.push(r),t},e.prototype.addTokenUsingMemberAccess=function(e,t,r){return e[t]=r,++t},e.prototype.handlePayload=function(e,t){},e.prototype.handlePayloadNoCustom=function(e,t){},e.prototype.handlePayloadWithCustom=function(e,t){null!==t&&(e.payload=t)},e.prototype.match=function(e,t,r){return null},e.prototype.matchWithTest=function(e,t,r){return!0===e.test(t)?t.substring(r,e.lastIndex):null},e.prototype.matchWithExec=function(e,t){var r=e.exec(t);return null!==r?r[0]:r},e.prototype.TRACE_INIT=function(e,t){if(!0===this.traceInitPerf){this.traceInitIndent++;var r=new Array(this.traceInitIndent+1).join("\t");this.traceInitIndent<this.traceInitMaxIdent&&console.log(r+"--\x3e <"+e+">");var n=z(t),s=n.time,i=n.value,o=s>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&o(r+"<-- <"+e+"> time: "+s+"ms"),this.traceInitIndent--,i}return t()},e.SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",e.NA=/NOT_APPLICABLE/,e}();function We(e){return Ge(e)?e.LABEL:e.name}function Ye(e){return e.name}function Ge(e){return d(e.LABEL)&&""!==e.LABEL}var je="parent",ze="categories",$e="label",Ke="group",Xe="push_mode",qe="pop_mode",Qe="longer_alt",Ze="line_breaks",Je="start_chars_hint";function et(e){return function(e){var t=e.pattern,r={};r.name=e.name,g(t)||(r.PATTERN=t);if(C(e,je))throw"The parent property is no longer supported.\nSee: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details.";C(e,ze)&&(r.CATEGORIES=e[ze]);Pe([r]),C(e,$e)&&(r.LABEL=e[$e]);C(e,Ke)&&(r.GROUP=e[Ke]);C(e,qe)&&(r.POP_MODE=e[qe]);C(e,Xe)&&(r.PUSH_MODE=e[Xe]);C(e,Qe)&&(r.LONGER_ALT=e[Qe]);C(e,Ze)&&(r.LINE_BREAKS=e[Ze]);C(e,Je)&&(r.START_CHARS_HINT=e[Je]);return r}(e)}var tt=et({name:"EOF",pattern:Be.NA});function rt(e,t,r,n,s,i,o,a){return{image:t,startOffset:r,endOffset:n,startLine:s,endLine:i,startColumn:o,endColumn:a,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function nt(e,t){return Me(e,t)}Pe([tt]);var st=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),it=function(){function e(e){this.definition=e}return e.prototype.accept=function(e){e.visit(this),c(this.definition,function(t){t.accept(e)})},e}(),ot=function(e){function t(t){var r=e.call(this,[])||this;return r.idx=1,L(r,y(t,function(e){return void 0!==e})),r}return st(t,e),Object.defineProperty(t.prototype,"definition",{get:function(){return void 0!==this.referencedRule?this.referencedRule.definition:[]},set:function(e){},enumerable:!0,configurable:!0}),t.prototype.accept=function(e){e.visit(this)},t}(it),at=function(e){function t(t){var r=e.call(this,t.definition)||this;return r.orgText="",L(r,y(t,function(e){return void 0!==e})),r}return st(t,e),t}(it),lt=function(e){function t(t){var r=e.call(this,t.definition)||this;return r.ignoreAmbiguities=!1,L(r,y(t,function(e){return void 0!==e})),r}return st(t,e),t}(it),ht=function(e){function t(t){var r=e.call(this,t.definition)||this;return r.idx=1,L(r,y(t,function(e){return void 0!==e})),r}return st(t,e),t}(it),ut=function(e){function t(t){var r=e.call(this,t.definition)||this;return r.idx=1,L(r,y(t,function(e){return void 0!==e})),r}return st(t,e),t}(it),ct=function(e){function t(t){var r=e.call(this,t.definition)||this;return r.idx=1,L(r,y(t,function(e){return void 0!==e})),r}return st(t,e),t}(it),dt=function(e){function t(t){var r=e.call(this,t.definition)||this;return r.idx=1,L(r,y(t,function(e){return void 0!==e})),r}return st(t,e),t}(it),gt=function(e){function t(t){var r=e.call(this,t.definition)||this;return r.idx=1,L(r,y(t,function(e){return void 0!==e})),r}return st(t,e),t}(it),pt=function(e){function t(t){var r=e.call(this,t.definition)||this;return r.idx=1,r.ignoreAmbiguities=!1,r.hasPredicates=!1,L(r,y(t,function(e){return void 0!==e})),r}return st(t,e),t}(it),ft=function(){function e(e){this.idx=1,L(this,y(e,function(e){return void 0!==e}))}return e.prototype.accept=function(e){e.visit(this)},e}();function mt(e){return a(e,wt)}function wt(e){function t(e){return a(e,wt)}if(e instanceof ot)return{type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(e instanceof lt)return{type:"Flat",definition:t(e.definition)};if(e instanceof ht)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof ut)return{type:"RepetitionMandatory",name:e.name,idx:e.idx,definition:t(e.definition)};if(e instanceof ct)return{type:"RepetitionMandatoryWithSeparator",name:e.name,idx:e.idx,separator:wt(new ft({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof gt)return{type:"RepetitionWithSeparator",name:e.name,idx:e.idx,separator:wt(new ft({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof dt)return{type:"Repetition",name:e.name,idx:e.idx,definition:t(e.definition)};if(e instanceof pt)return{type:"Alternation",name:e.name,idx:e.idx,definition:t(e.definition)};if(e instanceof ft){var r={type:"Terminal",name:e.terminalType.name,label:We(e.terminalType),idx:e.idx},n=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(r.pattern=M(n)?n.source:n),r}if(e instanceof at)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}var Et=function(){function e(){}return e.prototype.walk=function(e,t){var r=this;void 0===t&&(t=[]),c(e.definition,function(n,s){var i=f(e.definition,s+1);if(n instanceof ot)r.walkProdRef(n,i,t);else if(n instanceof ft)r.walkTerminal(n,i,t);else if(n instanceof lt)r.walkFlat(n,i,t);else if(n instanceof ht)r.walkOption(n,i,t);else if(n instanceof ut)r.walkAtLeastOne(n,i,t);else if(n instanceof ct)r.walkAtLeastOneSep(n,i,t);else if(n instanceof gt)r.walkManySep(n,i,t);else if(n instanceof dt)r.walkMany(n,i,t);else{if(!(n instanceof pt))throw Error("non exhaustive match");r.walkOr(n,i,t)}})},e.prototype.walkTerminal=function(e,t,r){},e.prototype.walkProdRef=function(e,t,r){},e.prototype.walkFlat=function(e,t,r){var n=t.concat(r);this.walk(e,n)},e.prototype.walkOption=function(e,t,r){var n=t.concat(r);this.walk(e,n)},e.prototype.walkAtLeastOne=function(e,t,r){var n=[new ht({definition:e.definition})].concat(t,r);this.walk(e,n)},e.prototype.walkAtLeastOneSep=function(e,t,r){var n=yt(e,t,r);this.walk(e,n)},e.prototype.walkMany=function(e,t,r){var n=[new ht({definition:e.definition})].concat(t,r);this.walk(e,n)},e.prototype.walkManySep=function(e,t,r){var n=yt(e,t,r);this.walk(e,n)},e.prototype.walkOr=function(e,t,r){var n=this,s=t.concat(r);c(e.definition,function(e){var t=new lt({definition:[e]});n.walk(t,s)})},e}();function yt(e,t,r){return[new ht({definition:[new ft({terminalType:e.separator})].concat(e.definition)})].concat(t,r)}var Ct=function(){function e(){}return e.prototype.visit=function(e){var t=e;switch(t.constructor){case ot:return this.visitNonTerminal(t);case lt:return this.visitFlat(t);case ht:return this.visitOption(t);case ut:return this.visitRepetitionMandatory(t);case ct:return this.visitRepetitionMandatoryWithSeparator(t);case gt:return this.visitRepetitionWithSeparator(t);case dt:return this.visitRepetition(t);case pt:return this.visitAlternation(t);case ft:return this.visitTerminal(t);case at:return this.visitRule(t);default:throw Error("non exhaustive match")}},e.prototype.visitNonTerminal=function(e){},e.prototype.visitFlat=function(e){},e.prototype.visitOption=function(e){},e.prototype.visitRepetition=function(e){},e.prototype.visitRepetitionMandatory=function(e){},e.prototype.visitRepetitionMandatoryWithSeparator=function(e){},e.prototype.visitRepetitionWithSeparator=function(e){},e.prototype.visitAlternation=function(e){},e.prototype.visitTerminal=function(e){},e.prototype.visitRule=function(e){},e}(),vt=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function St(e,t){return void 0===t&&(t=[]),!!(e instanceof ht||e instanceof dt||e instanceof gt)||(e instanceof pt?P(e.definition,function(e){return St(e,t)}):!(e instanceof ot&&v(t,e))&&(e instanceof it&&(e instanceof ot&&t.push(e),O(e.definition,function(e){return St(e,t)}))))}function Rt(e){if(e instanceof ot)return"SUBRULE";if(e instanceof ht)return"OPTION";if(e instanceof pt)return"OR";if(e instanceof ut)return"AT_LEAST_ONE";if(e instanceof ct)return"AT_LEAST_ONE_SEP";if(e instanceof gt)return"MANY_SEP";if(e instanceof dt)return"MANY";if(e instanceof ft)return"CONSUME";throw Error("non exhaustive match")}var Tt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.separator="-",t.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]},t}return vt(t,e),t.prototype.reset=function(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}},t.prototype.visitTerminal=function(e){var t=e.terminalType.name+this.separator+"Terminal";C(this.dslMethods,t)||(this.dslMethods[t]=[]),this.dslMethods[t].push(e)},t.prototype.visitNonTerminal=function(e){var t=e.nonTerminalName+this.separator+"Terminal";C(this.dslMethods,t)||(this.dslMethods[t]=[]),this.dslMethods[t].push(e)},t.prototype.visitOption=function(e){this.dslMethods.option.push(e)},t.prototype.visitRepetitionWithSeparator=function(e){this.dslMethods.repetitionWithSeparator.push(e)},t.prototype.visitRepetitionMandatory=function(e){this.dslMethods.repetitionMandatory.push(e)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)},t.prototype.visitRepetition=function(e){this.dslMethods.repetition.push(e)},t.prototype.visitAlternation=function(e){this.dslMethods.alternation.push(e)},t}(Ct),Nt=new Tt;function _t(e){if(e instanceof ot)return _t(e.referencedRule);if(e instanceof ft)return[e.terminalType];if(function(e){return e instanceof lt||e instanceof ht||e instanceof dt||e instanceof ut||e instanceof ct||e instanceof gt||e instanceof ft||e instanceof at}(e))return function(e){var t,r=[],n=e.definition,s=0,i=n.length>s,o=!0;for(;i&&o;)o=St(t=n[s]),r=r.concat(_t(t)),s+=1,i=n.length>s;return A(r)}(e);if(function(e){return e instanceof pt}(e))return function(e){var t=a(e.definition,function(e){return _t(e)});return A(l(t))}(e);throw Error("non exhaustive match")}var At="_~IN~_",bt=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Mt=function(e){function t(t){var r=e.call(this)||this;return r.topProd=t,r.follows={},r}return bt(t,e),t.prototype.startWalking=function(){return this.walk(this.topProd),this.follows},t.prototype.walkTerminal=function(e,t,r){},t.prototype.walkProdRef=function(e,t,r){var n,s,i=(n=e.referencedRule,s=e.idx,n.name+s+At+this.topProd.name),o=t.concat(r),a=_t(new lt({definition:o}));this.follows[i]=a},t}(Et);var It=256,Ot=512,xt=768,Pt=1024,Lt=1280,Dt=1536;function kt(e,t,r){return r|t|e}function Ht(e,t,r,n){var s=n+1<<24;return kt(e,t,r)|s}var Ft=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function Ut(e,t){!0===isNaN(e.startOffset)?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset==!0&&(e.endOffset=t.endOffset)}function Vt(e,t){!0===isNaN(e.startOffset)?(e.startOffset=t.startOffset,e.startColumn=t.startColumn,e.startLine=t.startLine,e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine):e.endOffset<t.endOffset==!0&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}function Bt(e,t,r){void 0===e.children[t]?e.children[t]=[r]:e.children[t].push(r)}var Wt=function(e){function t(t){var r=e.call(this)||this;return r.result=[],r.ruleIdx=t,r}return Ft(t,e),t.prototype.collectNamedDSLMethod=function(e,t,r){if(!g(e.name)){var n=void 0;if(e instanceof ht||e instanceof dt||e instanceof ut||e instanceof pt)n=new t({definition:e.definition,idx:e.idx});else{if(!(e instanceof ct||e instanceof gt))throw Error("non exhaustive match");n=new t({definition:e.definition,idx:e.idx,separator:e.separator})}var s=[n],i=kt(this.ruleIdx,r,e.idx);this.result.push({def:s,key:i,name:e.name,orgProd:e})}},t.prototype.visitOption=function(e){this.collectNamedDSLMethod(e,ht,Ot)},t.prototype.visitRepetition=function(e){this.collectNamedDSLMethod(e,dt,xt)},t.prototype.visitRepetitionMandatory=function(e){this.collectNamedDSLMethod(e,ut,Pt)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.collectNamedDSLMethod(e,ct,Dt)},t.prototype.visitRepetitionWithSeparator=function(e){this.collectNamedDSLMethod(e,gt,Lt)},t.prototype.visitAlternation=function(e){var t=this;this.collectNamedDSLMethod(e,pt,It);var r=e.definition.length>1;c(e.definition,function(n,s){if(!g(n.name)){var i=n.definition;i=r?[new ht({definition:n.definition})]:n.definition;var o=Ht(t.ruleIdx,It,e.idx,s);t.result.push({def:i,key:o,name:n.name,orgProd:n})}})},t}(Ct);var Yt=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Gt=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.path=r,n.nextTerminalName="",n.nextTerminalOccurrence=0,n.nextTerminalName=n.path.lastTok.name,n.nextTerminalOccurrence=n.path.lastTokOccurrence,n}return Yt(t,e),t.prototype.walkTerminal=function(e,t,r){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){var n=t.concat(r),s=new lt({definition:n});this.possibleTokTypes=_t(s),this.found=!0}},t}(function(e){function t(t,r){var n=e.call(this)||this;return n.topProd=t,n.path=r,n.possibleTokTypes=[],n.nextProductionName="",n.nextProductionOccurrence=0,n.found=!1,n.isAtEndOfPath=!1,n}return Yt(t,e),t.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=S(this.path.ruleStack).reverse(),this.occurrenceStack=S(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes},t.prototype.walk=function(t,r){void 0===r&&(r=[]),this.found||e.prototype.walk.call(this,t,r)},t.prototype.walkProdRef=function(e,t,r){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){var n=t.concat(r);this.updateExpectedNext(),this.walk(e.referencedRule,n)}},t.prototype.updateExpectedNext=function(){s(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},t}(Et)),jt=function(e){function t(t,r){var n=e.call(this)||this;return n.topRule=t,n.occurrence=r,n.result={token:void 0,occurrence:void 0,isEndOfRule:void 0},n}return Yt(t,e),t.prototype.startWalking=function(){return this.walk(this.topRule),this.result},t}(Et),zt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yt(t,e),t.prototype.walkMany=function(t,r,n){if(t.idx===this.occurrence){var s=h(r.concat(n));this.result.isEndOfRule=void 0===s,s instanceof ft&&(this.result.token=s.terminalType,this.result.occurrence=s.idx)}else e.prototype.walkMany.call(this,t,r,n)},t}(jt),$t=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yt(t,e),t.prototype.walkManySep=function(t,r,n){if(t.idx===this.occurrence){var s=h(r.concat(n));this.result.isEndOfRule=void 0===s,s instanceof ft&&(this.result.token=s.terminalType,this.result.occurrence=s.idx)}else e.prototype.walkManySep.call(this,t,r,n)},t}(jt),Kt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yt(t,e),t.prototype.walkAtLeastOne=function(t,r,n){if(t.idx===this.occurrence){var s=h(r.concat(n));this.result.isEndOfRule=void 0===s,s instanceof ft&&(this.result.token=s.terminalType,this.result.occurrence=s.idx)}else e.prototype.walkAtLeastOne.call(this,t,r,n)},t}(jt),Xt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yt(t,e),t.prototype.walkAtLeastOneSep=function(t,r,n){if(t.idx===this.occurrence){var s=h(r.concat(n));this.result.isEndOfRule=void 0===s,s instanceof ft&&(this.result.token=s.terminalType,this.result.occurrence=s.idx)}else e.prototype.walkAtLeastOneSep.call(this,t,r,n)},t}(jt);function qt(e,t,r){void 0===r&&(r=[]),r=S(r);var n=[],s=0;function i(i){var o=qt(i.concat(f(e,s+1)),t,r);return n.concat(o)}for(;r.length<t&&s<e.length;){var o=e[s];if(o instanceof lt)return i(o.definition);if(o instanceof ot)return i(o.definition);if(o instanceof ht)n=i(o.definition);else{if(o instanceof ut)return i(a=o.definition.concat([new dt({definition:o.definition})]));if(o instanceof ct)return i(a=[new lt({definition:o.definition}),new dt({definition:[new ft({terminalType:o.separator})].concat(o.definition)})]);if(o instanceof gt){var a=o.definition.concat([new dt({definition:[new ft({terminalType:o.separator})].concat(o.definition)})]);n=i(a)}else if(o instanceof dt){a=o.definition.concat([new dt({definition:o.definition})]);n=i(a)}else{if(o instanceof pt)return c(o.definition,function(e){n=i(e.definition)}),n;if(!(o instanceof ft))throw Error("non exhaustive match");r.push(o.terminalType)}}s++}return n.push({partialPath:r,suffixDef:f(e,s)}),n}function Qt(e,t,r,n){var i="EXIT_NONE_TERMINAL",o=[i],a="EXIT_ALTERNATIVE",l=!1,h=t.length,c=h-n-1,d=[],g=[];for(g.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!s(g);){var p=g.pop();if(p!==a){var w=p.def,E=p.idx,y=p.ruleStack,C=p.occurrenceStack;if(!s(w)){var v=w[0];if(v===i){var R={idx:E,def:f(w),ruleStack:m(y),occurrenceStack:m(C)};g.push(R)}else if(v instanceof ft)if(E<h-1){var T=E+1;if(r(t[T],v.terminalType)){R={idx:T,def:f(w),ruleStack:y,occurrenceStack:C};g.push(R)}}else{if(E!==h-1)throw Error("non exhaustive match");d.push({nextTokenType:v.terminalType,nextTokenOccurrence:v.idx,ruleStack:y,occurrenceStack:C}),l=!0}else if(v instanceof ot){var N=S(y);N.push(v.nonTerminalName);var _=S(C);_.push(v.idx);R={idx:E,def:v.definition.concat(o,f(w)),ruleStack:N,occurrenceStack:_};g.push(R)}else if(v instanceof ht){var A={idx:E,def:f(w),ruleStack:y,occurrenceStack:C};g.push(A),g.push(a);var b={idx:E,def:v.definition.concat(f(w)),ruleStack:y,occurrenceStack:C};g.push(b)}else if(v instanceof ut){var M=new dt({definition:v.definition,idx:v.idx});R={idx:E,def:v.definition.concat([M],f(w)),ruleStack:y,occurrenceStack:C};g.push(R)}else if(v instanceof ct){var I=new ft({terminalType:v.separator});M=new dt({definition:[I].concat(v.definition),idx:v.idx}),R={idx:E,def:v.definition.concat([M],f(w)),ruleStack:y,occurrenceStack:C};g.push(R)}else if(v instanceof gt){A={idx:E,def:f(w),ruleStack:y,occurrenceStack:C};g.push(A),g.push(a);I=new ft({terminalType:v.separator});var O=new dt({definition:[I].concat(v.definition),idx:v.idx});b={idx:E,def:v.definition.concat([O],f(w)),ruleStack:y,occurrenceStack:C};g.push(b)}else if(v instanceof dt){A={idx:E,def:f(w),ruleStack:y,occurrenceStack:C};g.push(A),g.push(a);O=new dt({definition:v.definition,idx:v.idx}),b={idx:E,def:v.definition.concat([O],f(w)),ruleStack:y,occurrenceStack:C};g.push(b)}else if(v instanceof pt)for(var x=v.definition.length-1;x>=0;x--){var P={idx:E,def:v.definition[x].definition.concat(f(w)),ruleStack:y,occurrenceStack:C};g.push(P),g.push(a)}else if(v instanceof lt)g.push({idx:E,def:v.definition.concat(f(w)),ruleStack:y,occurrenceStack:C});else{if(!(v instanceof at))throw Error("non exhaustive match");g.push(Zt(v,E,y,C))}}}else l&&u(g).idx<=c&&g.pop()}return d}function Zt(e,t,r,n){var s=S(r);s.push(e.name);var i=S(n);return i.push(1),{idx:t,def:e.definition,ruleStack:s,occurrenceStack:i}}var Jt,er=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();!function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"}(Jt||(Jt={}));var tr=function(e){function t(t,r,n){var s=e.call(this)||this;return s.topProd=t,s.targetOccurrence=r,s.targetProdType=n,s}return er(t,e),t.prototype.startWalking=function(){return this.walk(this.topProd),this.restDef},t.prototype.checkIsTarget=function(e,t,r,n){return e.idx===this.targetOccurrence&&this.targetProdType===t&&(this.restDef=r.concat(n),!0)},t.prototype.walkOption=function(t,r,n){this.checkIsTarget(t,Jt.OPTION,r,n)||e.prototype.walkOption.call(this,t,r,n)},t.prototype.walkAtLeastOne=function(t,r,n){this.checkIsTarget(t,Jt.REPETITION_MANDATORY,r,n)||e.prototype.walkOption.call(this,t,r,n)},t.prototype.walkAtLeastOneSep=function(t,r,n){this.checkIsTarget(t,Jt.REPETITION_MANDATORY_WITH_SEPARATOR,r,n)||e.prototype.walkOption.call(this,t,r,n)},t.prototype.walkMany=function(t,r,n){this.checkIsTarget(t,Jt.REPETITION,r,n)||e.prototype.walkOption.call(this,t,r,n)},t.prototype.walkManySep=function(t,r,n){this.checkIsTarget(t,Jt.REPETITION_WITH_SEPARATOR,r,n)||e.prototype.walkOption.call(this,t,r,n)},t}(Et),rr=function(e){function t(t,r,n){var s=e.call(this)||this;return s.targetOccurrence=t,s.targetProdType=r,s.targetRef=n,s.result=[],s}return er(t,e),t.prototype.checkIsTarget=function(e,t){e.idx!==this.targetOccurrence||this.targetProdType!==t||void 0!==this.targetRef&&e!==this.targetRef||(this.result=e.definition)},t.prototype.visitOption=function(e){this.checkIsTarget(e,Jt.OPTION)},t.prototype.visitRepetition=function(e){this.checkIsTarget(e,Jt.REPETITION)},t.prototype.visitRepetitionMandatory=function(e){this.checkIsTarget(e,Jt.REPETITION_MANDATORY)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.checkIsTarget(e,Jt.REPETITION_MANDATORY_WITH_SEPARATOR)},t.prototype.visitRepetitionWithSeparator=function(e){this.checkIsTarget(e,Jt.REPETITION_WITH_SEPARATOR)},t.prototype.visitAlternation=function(e){this.checkIsTarget(e,Jt.ALTERNATION)},t}(Ct);function nr(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=[];return t}function sr(e){for(var t=[""],r=0;r<e.length;r++){for(var n=e[r],s=[],i=0;i<t.length;i++){var o=t[i];s.push(o+"_"+n.tokenTypeIdx);for(var a=0;a<n.categoryMatches.length;a++){var l="_"+n.categoryMatches[a];s.push(o+l)}}t=s}return t}function ir(e,t,r){for(var n=0;n<e.length;n++)if(n!==r)for(var s=e[n],i=0;i<t.length;i++){if(!0===s[t[i]])return!1}return!0}function or(e,t){for(var r=a(e,function(e){return qt([e],1)}),n=nr(r.length),i=a(r,function(e){var t={};return c(e,function(e){c(sr(e.partialPath),function(e){t[e]=!0})}),t}),o=r,l=1;l<=t;l++){var h=o;o=nr(h.length);for(var u=function(e){for(var r=h[e],a=0;a<r.length;a++){var u=r[a].partialPath,d=r[a].suffixDef,g=sr(u);if(ir(i,g,e)||s(d)||u.length===t){var p=n[e];if(!1===hr(p,u)){p.push(u);for(var f=0;f<g.length;f++){var m=g[f];i[e][m]=!0}}}else{var w=qt(d,l+1,u);o[e]=o[e].concat(w),c(w,function(t){c(sr(t.partialPath),function(t){i[e][t]=!0})})}}},d=0;d<h.length;d++)u(d)}return n}function ar(e,t,r,n){var s=new rr(e,Jt.ALTERNATION,n);return t.accept(s),or(s.result,r)}function lr(e,t,r,n){var s=new rr(e,r);t.accept(s);var i=s.result,o=new tr(t,e,r).startWalking();return or([new lt({definition:i}),new lt({definition:o})],n)}function hr(e,t){e:for(var r=0;r<e.length;r++){var n=e[r];if(n.length===t.length){for(var s=0;s<n.length;s++){var i=t[s],o=n[s];if(!1===(i===o||void 0!==o.categoryMatchesMap[i.tokenTypeIdx]))continue e}return!0}}return!1}function ur(e){return O(e,function(e){return O(e,function(e){return O(e,function(e){return s(e.categoryMatches)})})})}var cr=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function dr(e,t,r,n,i,u){var d=a(e,function(e){return function(e,t){var r=new fr;e.accept(r);var n=r.allProductions,s=a(o(y(H(n,gr),function(e){return e.length>1})),function(r){var n=h(r),s=t.buildDuplicateFoundError(e,r),i=Rt(n),o={message:s,type:vn.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:i,occurrence:n.idx},a=pr(n);return a&&(o.parameter=a),o});return s}(e,i)}),g=a(e,function(e){return Er(e,e,i)}),p=[],f=[],w=[];O(g,s)&&(p=a(e,function(e){return function(e,t){var r=new Cr;e.accept(r);var n=N(r.alternations,function(r,n){var i=a(m(n.definition),function(r,i){return s(Qt([r],[],null,1))?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:n,emptyChoiceIdx:i}),type:vn.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:n.idx,alternative:i+1}:null});return r.concat(_(i))},[]);return n}(e,i)}),f=a(e,function(e){return function(e,t,r,n){var s=new Cr;e.accept(s);var i=s.alternations,o=r[e.name];o&&(i=E(i,function(e){return o[Rt(e)+(0===e.idx?"":e.idx)]}));var l=N(i=E(i,function(e){return!0===e.ignoreAmbiguities}),function(r,s){var i=s.idx,o=s.maxLookahead||t,l=ar(i,e,o,s),h=function(e,t,r,n){var s=[],i=N(e,function(r,n,i){return!0===t.definition[i].ignoreAmbiguities||c(n,function(n){var o=[i];c(e,function(e,r){i!==r&&hr(e,n)&&!0!==t.definition[r].ignoreAmbiguities&&o.push(r)}),o.length>1&&!hr(s,n)&&(s.push(n),r.push({alts:o,path:n}))}),r},[]),o=a(i,function(e){var s=a(e.alts,function(e){return e+1});return{message:n.buildAlternationAmbiguityError({topLevelRule:r,alternation:t,ambiguityIndices:s,prefixPath:e.path}),type:vn.AMBIGUOUS_ALTS,ruleName:r.name,occurrence:t.idx,alternatives:[e.alts]}});return o}(l,s,e,n),u=function(e,t,r,n){var s=[],i=N(e,function(e,t,r){var n=a(t,function(e){return{idx:r,path:e}});return e.concat(n)},[]);return c(i,function(e){if(!0!==t.definition[e.idx].ignoreAmbiguities){var o=e.idx,l=e.path,h=a(function(e,t){for(var r=[],n=0;n<e.length;n++){var s=e[n];t.call(null,s)&&r.push(s)}return r}(i,function(e){return!0!==t.definition[e.idx].ignoreAmbiguities&&e.idx<o&&(r=e.path,n=l,r.length<n.length&&O(r,function(e,t){var r=n[t];return e===r||r.categoryMatchesMap[e.tokenTypeIdx]}));var r,n}),function(e){var s=[e.idx+1,o+1],i=0===t.idx?"":t.idx;return{message:n.buildAlternationPrefixAmbiguityError({topLevelRule:r,alternation:t,ambiguityIndices:s,prefixPath:e.path}),type:vn.AMBIGUOUS_PREFIX_ALTS,ruleName:r.name,occurrence:i,alternatives:s}});s=s.concat(h)}}),s}(l,s,e,n);return r.concat(h,u)},[]);return l}(e,t,n,i)}),w=function(e,t,r){var n=[];return c(e,function(e){var i=new vr;e.accept(i),c(i.allProductions,function(i){var o=function(e){if(e instanceof ht)return Jt.OPTION;if(e instanceof dt)return Jt.REPETITION;if(e instanceof ut)return Jt.REPETITION_MANDATORY;if(e instanceof ct)return Jt.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof gt)return Jt.REPETITION_WITH_SEPARATOR;if(e instanceof pt)return Jt.ALTERNATION;throw Error("non exhaustive match")}(i),a=i.maxLookahead||t;if(s(l(lr(i.idx,e,o,a)[0]))){var h=r.buildEmptyRepetitionError({topLevelRule:e,repetition:i});n.push({message:h,type:vn.NO_NON_EMPTY_LOOKAHEAD,ruleName:e.name})}})}),n}(e,t,i));var C=function(e,t,r){var n=[],s=a(t,function(e){return e.name});return c(e,function(e){var t=e.name;if(v(s,t)){var i=r.buildNamespaceConflictError(e);n.push({message:i,type:vn.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:t})}}),n}(e,r,i),S=a(r,function(e){return function(e,t){var r=[];e.name.match(mr)||r.push({message:t.buildTokenNameError({tokenType:e,expectedPattern:mr}),type:vn.INVALID_TOKEN_NAME});return r}(e,i)}),R=function(e,t){var r=[];return c(e,function(e){var n=new Wt("");e.accept(n);var s=a(n.result,function(e){return e.orgProd});r.push(a(s,function(r){return function(e,t,r){var n,s=[];t.name.match(wr)||(n=r.buildInvalidNestedRuleNameError(e,t),s.push({message:n,type:vn.INVALID_NESTED_RULE_NAME,ruleName:e.name}));return s}(e,r,t)}))}),l(r)}(e,i),T=function(e,t){var r=[];return c(e,function(e){var n=new Wt("");e.accept(n),c(o(y(H(n.result,function(e){return e.name}),function(e){return e.length>1})),function(n){var s=a(n,function(e){return e.orgProd}),i=t.buildDuplicateNestedRuleNameError(e,s);r.push({message:i,type:vn.DUPLICATE_NESTED_NAME,ruleName:e.name})})}),r}(e,i),A=a(e,function(e){return function(e,t){var r=new Cr;e.accept(r);var n=N(r.alternations,function(r,n){return n.definition.length>255&&r.push({message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:n}),type:vn.TOO_MANY_ALTS,ruleName:e.name,occurrence:n.idx}),r},[]);return n}(e,i)}),b=a(e,function(e){return function(e,t){var r=[],n=e.name;n.match(mr)||r.push({message:t.buildInvalidRuleNameError({topLevelRule:e,expectedPattern:mr}),type:vn.INVALID_RULE_NAME,ruleName:n});return r}(e,i)}),M=a(e,function(t){return function(e,t,r,n){var s=[],i=N(t,function(t,r){return r.name===e.name?t+1:t},0);if(i>1){var o=n.buildDuplicateRuleNameError({topLevelRule:e,grammarName:r});s.push({message:o,type:vn.DUPLICATE_RULE_NAME,ruleName:e.name})}return s}(t,e,u,i)});return l(d.concat(S,R,T,w,g,p,f,C,A,b,M))}function gr(e){return Rt(e)+"_#_"+e.idx+"_#_"+pr(e)}function pr(e){return e instanceof ft?e.terminalType.name:e instanceof ot?e.nonTerminalName:""}var fr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allProductions=[],t}return cr(t,e),t.prototype.visitNonTerminal=function(e){this.allProductions.push(e)},t.prototype.visitOption=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionWithSeparator=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionMandatory=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.allProductions.push(e)},t.prototype.visitRepetition=function(e){this.allProductions.push(e)},t.prototype.visitAlternation=function(e){this.allProductions.push(e)},t.prototype.visitTerminal=function(e){this.allProductions.push(e)},t}(Ct),mr=/^[a-zA-Z_]\w*$/,wr=new RegExp(mr.source.replace("^","^\\$"));function Er(e,t,r,n){void 0===n&&(n=[]);var i=[],o=yr(t.definition);if(s(o))return[];var h=e.name;v(o,e)&&i.push({message:r.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:n}),type:vn.LEFT_RECURSION,ruleName:h});var u=a(x(o,n.concat([e])),function(t){var s=S(n);return s.push(t),Er(e,t,r,s)});return i.concat(l(u))}function yr(e){var t=[];if(s(e))return t;var r=h(e);if(r instanceof ot)t.push(r.referencedRule);else if(r instanceof lt||r instanceof ht||r instanceof ut||r instanceof ct||r instanceof gt||r instanceof dt)t=t.concat(yr(r.definition));else if(r instanceof pt)t=l(a(r.definition,function(e){return yr(e.definition)}));else if(!(r instanceof ft))throw Error("non exhaustive match");var n=St(r),i=e.length>1;if(n&&i){var o=f(e);return t.concat(yr(o))}return t}var Cr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.alternations=[],t}return cr(t,e),t.prototype.visitAlternation=function(e){this.alternations.push(e)},t}(Ct);var vr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allProductions=[],t}return cr(t,e),t.prototype.visitRepetitionWithSeparator=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionMandatory=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.allProductions.push(e)},t.prototype.visitRepetition=function(e){this.allProductions.push(e)},t}(Ct);var Sr={buildMismatchTokenMessage:function(e){var t=e.expected,r=e.actual;e.previous,e.ruleName;return"Expecting "+(Ge(t)?"--\x3e "+We(t)+" <--":"token of type --\x3e "+t.name+" <--")+" but found --\x3e '"+r.image+"' <--"},buildNotAllInputParsedMessage:function(e){var t=e.firstRedundant;e.ruleName;return"Redundant input, expecting EOF but found: "+t.image},buildNoViableAltMessage:function(e){var t=e.expectedPathsPerAlt,r=e.actual,n=(e.previous,e.customUserDescription),s=(e.ruleName,"Expecting: "),i="\nbut found: '"+h(r).image+"'";if(n)return s+n+i;var o=a(N(t,function(e,t){return e.concat(t)},[]),function(e){return"["+a(e,function(e){return We(e)}).join(", ")+"]"});return s+("one of these possible Token sequences:\n"+a(o,function(e,t){return" "+(t+1)+". "+e}).join("\n"))+i},buildEarlyExitMessage:function(e){var t=e.expectedIterationPaths,r=e.actual,n=e.customUserDescription,s=(e.ruleName,"Expecting: "),i="\nbut found: '"+h(r).image+"'";return n?s+n+i:s+("expecting at least one iteration which starts with one of these possible Token sequences::\n <"+a(t,function(e){return"["+a(e,function(e){return We(e)}).join(",")+"]"}).join(" ,")+">")+i}};Object.freeze(Sr);var Rr={buildRuleNotFoundError:function(e,t){return"Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+"<-\ninside top level rule: ->"+e.name+"<-"}},Tr={buildDuplicateFoundError:function(e,t){var r,n=e.name,s=h(t),i=s.idx,o=Rt(s),a=(r=s)instanceof ft?r.terminalType.name:r instanceof ot?r.nonTerminalName:"",l="->"+o+(i>0?i:"")+"<- "+(a?"with argument: ->"+a+"<-":"")+"\n appears more than once ("+t.length+" times) in the top level rule: ->"+n+"<-. \n For further details see: https://sap.github.io/chevrotain/docs/FAQ.html#NUMERICAL_SUFFIXES \n ";return l=(l=l.replace(/[ \t]+/g," ")).replace(/\s\s+/g,"\n")},buildInvalidNestedRuleNameError:function(e,t){return"Invalid nested rule name: ->"+t.name+"<- inside rule: ->"+e.name+"<-\nit must match the pattern: ->"+wr.toString()+"<-.\nNote that this means a nested rule name must start with the '$'(dollar) sign."},buildDuplicateNestedRuleNameError:function(e,t){return"Duplicate nested rule name: ->"+h(t).name+"<- inside rule: ->"+e.name+"<-\nA nested name must be unique in the scope of a top level grammar rule."},buildNamespaceConflictError:function(e){return"Namespace conflict found in grammar.\nThe grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <"+e.name+">.\nTo resolve this make sure each Terminal and Non-Terminal names are unique\nThis is easy to accomplish by using the convention that Terminal names start with an uppercase letter\nand Non-Terminal names start with a lower case letter."},buildAlternationPrefixAmbiguityError:function(e){var t=a(e.prefixPath,function(e){return We(e)}).join(", "),r=0===e.alternation.idx?"":e.alternation.idx;return"Ambiguous alternatives: <"+e.ambiguityIndices.join(" ,")+"> due to common lookahead prefix\nin <OR"+r+"> inside <"+e.topLevelRule.name+"> Rule,\n<"+t+"> may appears as a prefix path in all these alternatives.\nSee: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\nFor Further details."},buildAlternationAmbiguityError:function(e){var t=a(e.prefixPath,function(e){return We(e)}).join(", "),r=0===e.alternation.idx?"":e.alternation.idx,n="Ambiguous Alternatives Detected: <"+e.ambiguityIndices.join(" ,")+"> in <OR"+r+"> inside <"+e.topLevelRule.name+"> Rule,\n<"+t+"> may appears as a prefix path in all these alternatives.\n";return n+="See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\nFor Further details."},buildEmptyRepetitionError:function(e){var t=Rt(e.repetition);return 0!==e.repetition.idx&&(t+=e.repetition.idx),"The repetition <"+t+"> within Rule <"+e.topLevelRule.name+"> can never consume any tokens.\nThis could lead to an infinite loop."},buildTokenNameError:function(e){return"Invalid Grammar Token name: ->"+e.tokenType.name+"<- it must match the pattern: ->"+e.expectedPattern.toString()+"<-"},buildEmptyAlternationError:function(e){return"Ambiguous empty alternative: <"+(e.emptyChoiceIdx+1)+"> in <OR"+e.alternation.idx+"> inside <"+e.topLevelRule.name+"> Rule.\nOnly the last alternative may be an empty alternative."},buildTooManyAlternativesError:function(e){return"An Alternation cannot have more than 256 alternatives:\n<OR"+e.alternation.idx+"> inside <"+e.topLevelRule.name+"> Rule.\n has "+(e.alternation.definition.length+1)+" alternatives."},buildLeftRecursionError:function(e){var t=e.topLevelRule.name;return"Left Recursion found in grammar.\nrule: <"+t+"> can be invoked from itself (directly or indirectly)\nwithout consuming any Tokens. The grammar path that causes this is: \n "+(t+" --\x3e "+a(e.leftRecursionPath,function(e){return e.name}).concat([t]).join(" --\x3e "))+"\n To fix this refactor your grammar to remove the left recursion.\nsee: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring."},buildInvalidRuleNameError:function(e){return"Invalid grammar rule name: ->"+e.topLevelRule.name+"<- it must match the pattern: ->"+e.expectedPattern.toString()+"<-"},buildDuplicateRuleNameError:function(e){return"Duplicate definition, rule: ->"+(e.topLevelRule instanceof at?e.topLevelRule.name:e.topLevelRule)+"<- is already defined in the grammar: ->"+e.grammarName+"<-"}},Nr=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();var _r=function(e){function t(t,r){var n=e.call(this)||this;return n.nameToTopRule=t,n.errMsgProvider=r,n.errors=[],n}return Nr(t,e),t.prototype.resolveRefs=function(){var e=this;c(o(this.nameToTopRule),function(t){e.currTopLevel=t,t.accept(e)})},t.prototype.visitNonTerminal=function(e){var t=this.nameToTopRule[e.nonTerminalName];if(t)e.referencedRule=t;else{var r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:r,type:vn.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}},t}(Ct);function Ar(e){e=k(e,{errMsgProvider:Rr});var t,r,n,s={};return c(e.rules,function(e){s[e.name]=e}),t=s,r=e.errMsgProvider,(n=new _r(t,r)).resolveRefs(),n.errors}function br(e){return dr((e=k(e,{errMsgProvider:Tr,ignoredIssues:{}})).rules,e.maxLookahead,e.tokenTypes,e.ignoredIssues,e.errMsgProvider,e.grammarName)}function Mr(e){c(e.rules,function(e){var t=new Tt;e.accept(t),c(t.dslMethods,function(e){c(e,function(e,t){e.idx=t+1})})})}var Ir="MismatchedTokenException",Or="NoViableAltException",xr="EarlyExitException",Pr="NotAllInputParsedException",Lr=[Ir,Or,xr,Pr];function Dr(e){return v(Lr,e.name)}function kr(e,t,r){this.name=Ir,this.message=e,this.token=t,this.previousToken=r,this.resyncedTokens=[]}function Hr(e,t,r){this.name=Or,this.message=e,this.token=t,this.previousToken=r,this.resyncedTokens=[]}function Fr(e,t){this.name=Pr,this.message=e,this.token=t,this.resyncedTokens=[]}function Ur(e,t,r){this.name=xr,this.message=e,this.token=t,this.previousToken=r,this.resyncedTokens=[]}Object.freeze(Lr),kr.prototype=Error.prototype,Hr.prototype=Error.prototype,Fr.prototype=Error.prototype,Ur.prototype=Error.prototype;var Vr={},Br="InRuleRecoveryException";function Wr(e){this.name=Br,this.message=e}Wr.prototype=Error.prototype;var Yr=function(){function e(){}return e.prototype.initRecoverable=function(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=C(e,"recoveryEnabled")?e.recoveryEnabled:Sn.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=Gr)},e.prototype.getTokenToInsert=function(e){var t=rt(e,"",NaN,NaN,NaN,NaN,NaN,NaN);return t.isInsertedInRecovery=!0,t},e.prototype.canTokenTypeBeInsertedInRecovery=function(e){return!0},e.prototype.tryInRepetitionRecovery=function(e,t,r,n){for(var s=this,i=this.findReSyncTokenType(),o=this.exportLexerState(),a=[],l=!1,h=this.LA(1),u=this.LA(1),c=function(){var e=s.LA(0),t=new kr(s.errorMessageProvider.buildMismatchTokenMessage({expected:n,actual:h,previous:e,ruleName:s.getCurrRuleFullName()}),h,s.LA(0));t.resyncedTokens=m(a),s.SAVE_ERROR(t)};!l;){if(this.tokenMatcher(u,n))return void c();if(r.call(this))return c(),void e.apply(this,t);this.tokenMatcher(u,i)?l=!0:(u=this.SKIP_TOKEN(),this.addToResyncTokens(u,a))}this.importLexerState(o)},e.prototype.shouldInRepetitionRecoveryBeTried=function(e,t,r){return!1!==r&&(void 0!==e&&void 0!==t&&(!this.tokenMatcher(this.LA(1),e)&&(!this.isBackTracking()&&!this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,t)))))},e.prototype.getFollowsForInRuleRecovery=function(e,t){var r=this.getCurrentGrammarPath(e,t);return this.getNextPossibleTokenTypes(r)},e.prototype.tryInRuleRecovery=function(e,t){if(this.canRecoverWithSingleTokenInsertion(e,t))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){var r=this.SKIP_TOKEN();return this.consumeToken(),r}throw new Wr("sad sad panda")},e.prototype.canPerformInRuleRecovery=function(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)},e.prototype.canRecoverWithSingleTokenInsertion=function(e,t){var r=this;if(!this.canTokenTypeBeInsertedInRecovery(e))return!1;if(s(t))return!1;var n=this.LA(1);return void 0!==T(t,function(e){return r.tokenMatcher(n,e)})},e.prototype.canRecoverWithSingleTokenDeletion=function(e){return this.tokenMatcher(this.LA(2),e)},e.prototype.isInCurrentRuleReSyncSet=function(e){var t=this.getCurrFollowKey();return v(this.getFollowSetFromFollowKey(t),e)},e.prototype.findReSyncTokenType=function(){for(var e=this.flattenFollowSet(),t=this.LA(1),r=2;;){var n=t.tokenType;if(v(e,n))return n;t=this.LA(r),r++}},e.prototype.getCurrFollowKey=function(){if(1===this.RULE_STACK.length)return Vr;var e=this.getLastExplicitRuleShortName(),t=this.getLastExplicitRuleOccurrenceIndex(),r=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(r)}},e.prototype.buildFullFollowKeyStack=function(){var e=this,t=this.RULE_STACK,r=this.RULE_OCCURRENCE_STACK;return s(this.LAST_EXPLICIT_RULE_STACK)||(t=a(this.LAST_EXPLICIT_RULE_STACK,function(t){return e.RULE_STACK[t]}),r=a(this.LAST_EXPLICIT_RULE_STACK,function(t){return e.RULE_OCCURRENCE_STACK[t]})),a(t,function(n,s){return 0===s?Vr:{ruleName:e.shortRuleNameToFullName(n),idxInCallingRule:r[s],inRule:e.shortRuleNameToFullName(t[s-1])}})},e.prototype.flattenFollowSet=function(){var e=this;return l(a(this.buildFullFollowKeyStack(),function(t){return e.getFollowSetFromFollowKey(t)}))},e.prototype.getFollowSetFromFollowKey=function(e){if(e===Vr)return[tt];var t=e.ruleName+e.idxInCallingRule+At+e.inRule;return this.resyncFollows[t]},e.prototype.addToResyncTokens=function(e,t){return this.tokenMatcher(e,tt)||t.push(e),t},e.prototype.reSyncTo=function(e){for(var t=[],r=this.LA(1);!1===this.tokenMatcher(r,e);)r=this.SKIP_TOKEN(),this.addToResyncTokens(r,t);return m(t)},e.prototype.attemptInRepetitionRecovery=function(e,t,r,n,s,i,o){},e.prototype.getCurrentGrammarPath=function(e,t){return{ruleStack:this.getHumanReadableRuleStack(),occurrenceStack:S(this.RULE_OCCURRENCE_STACK),lastTok:e,lastTokOccurrence:t}},e.prototype.getHumanReadableRuleStack=function(){var e=this;return s(this.LAST_EXPLICIT_RULE_STACK)?a(this.RULE_STACK,function(t){return e.shortRuleNameToFullName(t)}):a(this.LAST_EXPLICIT_RULE_STACK,function(t){return e.shortRuleNameToFullName(e.RULE_STACK[t])})},e}();function Gr(e,t,r,n,s,i,o){var a=this.getKeyForAutomaticLookahead(n,s),l=this.firstAfterRepMap[a];if(void 0===l){var h=this.getCurrRuleFullName();l=new i(this.getGAstProductions()[h],s).startWalking(),this.firstAfterRepMap[a]=l}var u=l.token,c=l.occurrence,d=l.isEndOfRule;1===this.RULE_STACK.length&&d&&void 0===u&&(u=tt,c=1),this.shouldInRepetitionRecoveryBeTried(u,c,o)&&this.tryInRepetitionRecovery(e,t,r,u)}var jr=function(){function e(){}return e.prototype.initLooksAhead=function(e){this.dynamicTokensEnabled=C(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:Sn.dynamicTokensEnabled,this.maxLookahead=C(e,"maxLookahead")?e.maxLookahead:Sn.maxLookahead,this.lookAheadFuncsCache=Y()?new Map:[],Y()?(this.getLaFuncFromCache=this.getLaFuncFromMap,this.setLaFuncCache=this.setLaFuncCacheUsingMap):(this.getLaFuncFromCache=this.getLaFuncFromObj,this.setLaFuncCache=this.setLaFuncUsingObj)},e.prototype.preComputeLookaheadFunctions=function(e){var t=this;c(e,function(e){t.TRACE_INIT(e.name+" Rule Lookahead",function(){var r=function(e){Nt.reset(),e.accept(Nt);var t=Nt.dslMethods;return Nt.reset(),t}(e),n=r.alternation,s=r.repetition,i=r.option,o=r.repetitionMandatory,a=r.repetitionMandatoryWithSeparator,l=r.repetitionWithSeparator;c(n,function(r){var n=0===r.idx?"":r.idx;t.TRACE_INIT(""+Rt(r)+n,function(){var n,s,i,o,a,l,h,u=(n=r.idx,s=e,i=r.maxLookahead||t.maxLookahead,o=r.hasPredicates,a=t.dynamicTokensEnabled,l=t.lookAheadBuilderForAlternatives,h=ar(n,s,i),l(h,o,ur(h)?Ie:Me,a)),c=kt(t.fullRuleNameToShort[e.name],It,r.idx);t.setLaFuncCache(c,u)})}),c(s,function(r){t.computeLookaheadFunc(e,r.idx,xt,Jt.REPETITION,r.maxLookahead,Rt(r))}),c(i,function(r){t.computeLookaheadFunc(e,r.idx,Ot,Jt.OPTION,r.maxLookahead,Rt(r))}),c(o,function(r){t.computeLookaheadFunc(e,r.idx,Pt,Jt.REPETITION_MANDATORY,r.maxLookahead,Rt(r))}),c(a,function(r){t.computeLookaheadFunc(e,r.idx,Dt,Jt.REPETITION_MANDATORY_WITH_SEPARATOR,r.maxLookahead,Rt(r))}),c(l,function(r){t.computeLookaheadFunc(e,r.idx,Lt,Jt.REPETITION_WITH_SEPARATOR,r.maxLookahead,Rt(r))})})})},e.prototype.computeLookaheadFunc=function(e,t,r,n,s,i){var o=this;this.TRACE_INIT(""+i+(0===t?"":t),function(){var i=function(e,t,r,n,s,i){var o=lr(e,t,s,r),a=ur(o)?Ie:Me;return i(o[0],a,n)}(t,e,s||o.maxLookahead,o.dynamicTokensEnabled,n,o.lookAheadBuilderForOptional),a=kt(o.fullRuleNameToShort[e.name],r,t);o.setLaFuncCache(a,i)})},e.prototype.lookAheadBuilderForOptional=function(e,t,r){return function(e,t,r){var n=O(e,function(e){return 1===e.length}),i=e.length;if(n&&!r){var o=l(e);if(1===o.length&&s(o[0].categoryMatches)){var a=o[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===a}}var h=N(o,function(e,t,r){return e[t.tokenTypeIdx]=!0,c(t.categoryMatches,function(t){e[t]=!0}),e},[]);return function(){var e=this.LA(1);return!0===h[e.tokenTypeIdx]}}return function(){e:for(var r=0;r<i;r++){for(var n=e[r],s=n.length,o=0;o<s;o++){var a=this.LA(o+1);if(!1===t(a,n[o]))continue e}return!0}return!1}}(e,t,r)},e.prototype.lookAheadBuilderForAlternatives=function(e,t,r,n){return function(e,t,r,n){var s=e.length,i=O(e,function(e){return O(e,function(e){return 1===e.length})});if(t)return function(t){for(var n=a(t,function(e){return e.GATE}),i=0;i<s;i++){var o=e[i],l=o.length,h=n[i];if(void 0===h||!1!==h.call(this))e:for(var u=0;u<l;u++){for(var c=o[u],d=c.length,g=0;g<d;g++){var p=this.LA(g+1);if(!1===r(p,c[g]))continue e}return i}}};if(i&&!n){var o=N(a(e,function(e){return l(e)}),function(e,t,r){return c(t,function(t){C(e,t.tokenTypeIdx)||(e[t.tokenTypeIdx]=r),c(t.categoryMatches,function(t){C(e,t)||(e[t]=r)})}),e},[]);return function(){var e=this.LA(1);return o[e.tokenTypeIdx]}}return function(){for(var t=0;t<s;t++){var n=e[t],i=n.length;e:for(var o=0;o<i;o++){for(var a=n[o],l=a.length,h=0;h<l;h++){var u=this.LA(h+1);if(!1===r(u,a[h]))continue e}return t}}}}(e,t,r,n)},e.prototype.getKeyForAutomaticLookahead=function(e,t){return kt(this.getLastExplicitRuleShortName(),e,t)},e.prototype.getLaFuncFromCache=function(e){},e.prototype.getLaFuncFromMap=function(e){return this.lookAheadFuncsCache.get(e)},e.prototype.getLaFuncFromObj=function(e){return this.lookAheadFuncsCache[e]},e.prototype.setLaFuncCache=function(e,t){},e.prototype.setLaFuncCacheUsingMap=function(e,t){this.lookAheadFuncsCache.set(e,t)},e.prototype.setLaFuncUsingObj=function(e,t){this.lookAheadFuncsCache[e]=t},e}();var zr,$r=/^\s*function\s*(\S*)\s*\(/,Kr="name";function Xr(e){var t=e.name;return t||e.toString().match($r)[1]}function qr(e,t){var r=Object.getOwnPropertyDescriptor(e,Kr);return!(!g(r)&&!r.configurable)&&(Object.defineProperty(e,Kr,{enumerable:!1,configurable:!0,writable:!1,value:t}),!0)}function Qr(e,t){for(var r=i(e),n=r.length,s=0;s<n;s++)for(var o=e[r[s]],a=o.length,l=0;l<a;l++){var h=o[l];void 0===h.tokenTypeIdx&&(void 0!==h.fullName?this[h.fullName](h.children,t):this[h.name](h.children,t))}}function Zr(e,t){var r=function(){};qr(r,e+"BaseSemantics");var n={visit:function(e,t){if(b(e)&&(e=e[0]),!g(e))return void 0!==e.fullName?this[e.fullName](e.children,t):this[e.name](e.children,t)},validateVisitor:function(){var e=function(e,t){var r=function(e,t){var r=a(t,function(t){if(!p(e[t]))return{msg:"Missing visitor method: <"+t+"> on "+Xr(e.constructor)+" CST Visitor.",type:zr.MISSING_METHOD,methodName:t}});return _(r)}(e,t),n=function(e,t){var r=[];for(var n in e)mr.test(n)&&p(e[n])&&!v(Jr,n)&&!v(t,n)&&r.push({msg:"Redundant visitor method: <"+n+"> on "+Xr(e.constructor)+" CST Visitor\nThere is no Grammar Rule corresponding to this method's name.\nFor utility methods on visitor classes use methods names that do not match /"+mr.source+"/.",type:zr.REDUNDANT_METHOD,methodName:n});return r}(e,t);return r.concat(n)}(this,t);if(!s(e)){var r=a(e,function(e){return e.msg});throw Error("Errors Detected in CST Visitor <"+Xr(this.constructor)+">:\n\t"+r.join("\n\n").replace(/\n/g,"\n\t"))}}};return(r.prototype=n).constructor=r,r._RULE_NAMES=t,r}!function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"}(zr||(zr={}));var Jr=["constructor","visit","validateVisitor"];var en=function(){function e(){}return e.prototype.initTreeBuilder=function(e){if(this.LAST_EXPLICIT_RULE_STACK=[],this.CST_STACK=[],this.outputCst=C(e,"outputCst")?e.outputCst:Sn.outputCst,this.nodeLocationTracking=C(e,"nodeLocationTracking")?e.nodeLocationTracking:Sn.nodeLocationTracking,this.outputCst)if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Vt,this.setNodeLocationFromNode=Vt,this.cstPostRule=U,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=U,this.setNodeLocationFromNode=U,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Ut,this.setNodeLocationFromNode=Ut,this.cstPostRule=U,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=U,this.setNodeLocationFromNode=U,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else{if(!/none/i.test(this.nodeLocationTracking))throw Error('Invalid <nodeLocationTracking> config option: "'+e.nodeLocationTracking+'"');this.setNodeLocationFromToken=U,this.setNodeLocationFromNode=U,this.cstPostRule=U,this.setInitialNodeLocation=U}else this.cstInvocationStateUpdate=U,this.cstFinallyStateUpdate=U,this.cstPostTerminal=U,this.cstPostNonTerminal=U,this.cstPostRule=U,this.getLastExplicitRuleShortName=this.getLastExplicitRuleShortNameNoCst,this.getPreviousExplicitRuleShortName=this.getPreviousExplicitRuleShortNameNoCst,this.getLastExplicitRuleOccurrenceIndex=this.getLastExplicitRuleOccurrenceIndexNoCst,this.manyInternal=this.manyInternalNoCst,this.orInternal=this.orInternalNoCst,this.optionInternal=this.optionInternalNoCst,this.atLeastOneInternal=this.atLeastOneInternalNoCst,this.manySepFirstInternal=this.manySepFirstInternalNoCst,this.atLeastOneSepFirstInternal=this.atLeastOneSepFirstInternalNoCst},e.prototype.setInitialNodeLocationOnlyOffsetRecovery=function(e){e.location={startOffset:NaN,endOffset:NaN}},e.prototype.setInitialNodeLocationOnlyOffsetRegular=function(e){e.location={startOffset:this.LA(1).startOffset,endOffset:NaN}},e.prototype.setInitialNodeLocationFullRecovery=function(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.setInitialNodeLocationFullRegular=function(e){var t=this.LA(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.cstNestedInvocationStateUpdate=function(e,t){var r={name:e,fullName:this.shortRuleNameToFull[this.getLastExplicitRuleShortName()]+e,children:{}};this.setInitialNodeLocation(r),this.CST_STACK.push(r)},e.prototype.cstInvocationStateUpdate=function(e,t){this.LAST_EXPLICIT_RULE_STACK.push(this.RULE_STACK.length-1);var r={name:e,children:{}};this.setInitialNodeLocation(r),this.CST_STACK.push(r)},e.prototype.cstFinallyStateUpdate=function(){this.LAST_EXPLICIT_RULE_STACK.pop(),this.CST_STACK.pop()},e.prototype.cstNestedFinallyStateUpdate=function(){var e=this.CST_STACK.pop();this.cstPostRule(e)},e.prototype.cstPostRuleFull=function(e){var t=this.LA(0),r=e.location;r.startOffset<=t.startOffset==!0?(r.endOffset=t.endOffset,r.endLine=t.endLine,r.endColumn=t.endColumn):(r.startOffset=NaN,r.startLine=NaN,r.startColumn=NaN)},e.prototype.cstPostRuleOnlyOffset=function(e){var t=this.LA(0),r=e.location;r.startOffset<=t.startOffset==!0?r.endOffset=t.endOffset:r.startOffset=NaN},e.prototype.cstPostTerminal=function(e,t){var r,n,s,i=this.CST_STACK[this.CST_STACK.length-1];n=t,s=e,void 0===(r=i).children[s]?r.children[s]=[n]:r.children[s].push(n),this.setNodeLocationFromToken(i.location,t)},e.prototype.cstPostNonTerminal=function(e,t){if(!0!==this.isBackTracking()){var r=this.CST_STACK[this.CST_STACK.length-1];Bt(r,t,e),this.setNodeLocationFromNode(r.location,e.location)}},e.prototype.getBaseCstVisitorConstructor=function(){if(g(this.baseCstVisitorConstructor)){var e=Zr(this.className,this.allRuleNames);return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(g(this.baseCstVisitorWithDefaultsConstructor)){var e=function(e,t,r){var n=function(){};qr(n,e+"BaseSemanticsWithDefaults");var s=Object.create(r.prototype);return c(t,function(e){s[e]=Qr}),(n.prototype=s).constructor=n,n}(this.className,this.allRuleNames,this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor},e.prototype.nestedRuleBeforeClause=function(e,t){var r;return void 0!==e.NAME?(r=e.NAME,this.nestedRuleInvocationStateUpdate(r,t),r):void 0},e.prototype.nestedAltBeforeClause=function(e,t,r,n){var s,i=Ht(this.getLastExplicitRuleShortName(),r,t,n);return void 0!==e.NAME?(s=e.NAME,this.nestedRuleInvocationStateUpdate(s,i),{shortName:i,nestedName:s}):void 0},e.prototype.nestedRuleFinallyClause=function(e,t){var r=this.CST_STACK,n=r[r.length-1];this.nestedRuleFinallyStateUpdate();var s=r[r.length-1];Bt(s,t,n),this.setNodeLocationFromNode(s.location,n.location)},e.prototype.getLastExplicitRuleShortName=function(){var e=this.LAST_EXPLICIT_RULE_STACK[this.LAST_EXPLICIT_RULE_STACK.length-1];return this.RULE_STACK[e]},e.prototype.getLastExplicitRuleShortNameNoCst=function(){var e=this.RULE_STACK;return e[e.length-1]},e.prototype.getPreviousExplicitRuleShortName=function(){var e=this.LAST_EXPLICIT_RULE_STACK[this.LAST_EXPLICIT_RULE_STACK.length-2];return this.RULE_STACK[e]},e.prototype.getPreviousExplicitRuleShortNameNoCst=function(){var e=this.RULE_STACK;return e[e.length-2]},e.prototype.getLastExplicitRuleOccurrenceIndex=function(){var e=this.LAST_EXPLICIT_RULE_STACK[this.LAST_EXPLICIT_RULE_STACK.length-1];return this.RULE_OCCURRENCE_STACK[e]},e.prototype.getLastExplicitRuleOccurrenceIndexNoCst=function(){var e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]},e.prototype.nestedRuleInvocationStateUpdate=function(e,t){this.RULE_OCCURRENCE_STACK.push(1),this.RULE_STACK.push(t),this.cstNestedInvocationStateUpdate(e,t)},e.prototype.nestedRuleFinallyStateUpdate=function(){this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstNestedFinallyStateUpdate()},e}(),tn=function(){function e(){}return e.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(e.prototype,"input",{get:function(){return this.tokVector},set:function(e){if(!0!==this.selfAnalysisDone)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length},enumerable:!0,configurable:!0}),e.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):Cn},e.prototype.LA=function(e){var t=this.currIdx+e;return t<0||this.tokVectorLength<=t?Cn:this.tokVector[t]},e.prototype.consumeToken=function(){this.currIdx++},e.prototype.exportLexerState=function(){return this.currIdx},e.prototype.importLexerState=function(e){this.currIdx=e},e.prototype.resetLexerState=function(){this.currIdx=-1},e.prototype.moveToTerminatedState=function(){this.currIdx=this.tokVector.length-1},e.prototype.getLexerPosition=function(){return this.exportLexerState()},e}(),rn=function(){function e(){}return e.prototype.ACTION=function(e){return e.call(this)},e.prototype.consume=function(e,t,r){return this.consumeInternal(t,e,r)},e.prototype.subrule=function(e,t,r){return this.subruleInternal(t,e,r)},e.prototype.option=function(e,t){return this.optionInternal(t,e)},e.prototype.or=function(e,t){return this.orInternal(t,e)},e.prototype.many=function(e,t){return this.manyInternal(e,t)},e.prototype.atLeastOne=function(e,t){return this.atLeastOneInternal(e,t)},e.prototype.CONSUME=function(e,t){return this.consumeInternal(e,0,t)},e.prototype.CONSUME1=function(e,t){return this.consumeInternal(e,1,t)},e.prototype.CONSUME2=function(e,t){return this.consumeInternal(e,2,t)},e.prototype.CONSUME3=function(e,t){return this.consumeInternal(e,3,t)},e.prototype.CONSUME4=function(e,t){return this.consumeInternal(e,4,t)},e.prototype.CONSUME5=function(e,t){return this.consumeInternal(e,5,t)},e.prototype.CONSUME6=function(e,t){return this.consumeInternal(e,6,t)},e.prototype.CONSUME7=function(e,t){return this.consumeInternal(e,7,t)},e.prototype.CONSUME8=function(e,t){return this.consumeInternal(e,8,t)},e.prototype.CONSUME9=function(e,t){return this.consumeInternal(e,9,t)},e.prototype.SUBRULE=function(e,t){return this.subruleInternal(e,0,t)},e.prototype.SUBRULE1=function(e,t){return this.subruleInternal(e,1,t)},e.prototype.SUBRULE2=function(e,t){return this.subruleInternal(e,2,t)},e.prototype.SUBRULE3=function(e,t){return this.subruleInternal(e,3,t)},e.prototype.SUBRULE4=function(e,t){return this.subruleInternal(e,4,t)},e.prototype.SUBRULE5=function(e,t){return this.subruleInternal(e,5,t)},e.prototype.SUBRULE6=function(e,t){return this.subruleInternal(e,6,t)},e.prototype.SUBRULE7=function(e,t){return this.subruleInternal(e,7,t)},e.prototype.SUBRULE8=function(e,t){return this.subruleInternal(e,8,t)},e.prototype.SUBRULE9=function(e,t){return this.subruleInternal(e,9,t)},e.prototype.OPTION=function(e){return this.optionInternal(e,0)},e.prototype.OPTION1=function(e){return this.optionInternal(e,1)},e.prototype.OPTION2=function(e){return this.optionInternal(e,2)},e.prototype.OPTION3=function(e){return this.optionInternal(e,3)},e.prototype.OPTION4=function(e){return this.optionInternal(e,4)},e.prototype.OPTION5=function(e){return this.optionInternal(e,5)},e.prototype.OPTION6=function(e){return this.optionInternal(e,6)},e.prototype.OPTION7=function(e){return this.optionInternal(e,7)},e.prototype.OPTION8=function(e){return this.optionInternal(e,8)},e.prototype.OPTION9=function(e){return this.optionInternal(e,9)},e.prototype.OR=function(e){return this.orInternal(e,0)},e.prototype.OR1=function(e){return this.orInternal(e,1)},e.prototype.OR2=function(e){return this.orInternal(e,2)},e.prototype.OR3=function(e){return this.orInternal(e,3)},e.prototype.OR4=function(e){return this.orInternal(e,4)},e.prototype.OR5=function(e){return this.orInternal(e,5)},e.prototype.OR6=function(e){return this.orInternal(e,6)},e.prototype.OR7=function(e){return this.orInternal(e,7)},e.prototype.OR8=function(e){return this.orInternal(e,8)},e.prototype.OR9=function(e){return this.orInternal(e,9)},e.prototype.MANY=function(e){this.manyInternal(0,e)},e.prototype.MANY1=function(e){this.manyInternal(1,e)},e.prototype.MANY2=function(e){this.manyInternal(2,e)},e.prototype.MANY3=function(e){this.manyInternal(3,e)},e.prototype.MANY4=function(e){this.manyInternal(4,e)},e.prototype.MANY5=function(e){this.manyInternal(5,e)},e.prototype.MANY6=function(e){this.manyInternal(6,e)},e.prototype.MANY7=function(e){this.manyInternal(7,e)},e.prototype.MANY8=function(e){this.manyInternal(8,e)},e.prototype.MANY9=function(e){this.manyInternal(9,e)},e.prototype.MANY_SEP=function(e){this.manySepFirstInternal(0,e)},e.prototype.MANY_SEP1=function(e){this.manySepFirstInternal(1,e)},e.prototype.MANY_SEP2=function(e){this.manySepFirstInternal(2,e)},e.prototype.MANY_SEP3=function(e){this.manySepFirstInternal(3,e)},e.prototype.MANY_SEP4=function(e){this.manySepFirstInternal(4,e)},e.prototype.MANY_SEP5=function(e){this.manySepFirstInternal(5,e)},e.prototype.MANY_SEP6=function(e){this.manySepFirstInternal(6,e)},e.prototype.MANY_SEP7=function(e){this.manySepFirstInternal(7,e)},e.prototype.MANY_SEP8=function(e){this.manySepFirstInternal(8,e)},e.prototype.MANY_SEP9=function(e){this.manySepFirstInternal(9,e)},e.prototype.AT_LEAST_ONE=function(e){this.atLeastOneInternal(0,e)},e.prototype.AT_LEAST_ONE1=function(e){return this.atLeastOneInternal(1,e)},e.prototype.AT_LEAST_ONE2=function(e){this.atLeastOneInternal(2,e)},e.prototype.AT_LEAST_ONE3=function(e){this.atLeastOneInternal(3,e)},e.prototype.AT_LEAST_ONE4=function(e){this.atLeastOneInternal(4,e)},e.prototype.AT_LEAST_ONE5=function(e){this.atLeastOneInternal(5,e)},e.prototype.AT_LEAST_ONE6=function(e){this.atLeastOneInternal(6,e)},e.prototype.AT_LEAST_ONE7=function(e){this.atLeastOneInternal(7,e)},e.prototype.AT_LEAST_ONE8=function(e){this.atLeastOneInternal(8,e)},e.prototype.AT_LEAST_ONE9=function(e){this.atLeastOneInternal(9,e)},e.prototype.AT_LEAST_ONE_SEP=function(e){this.atLeastOneSepFirstInternal(0,e)},e.prototype.AT_LEAST_ONE_SEP1=function(e){this.atLeastOneSepFirstInternal(1,e)},e.prototype.AT_LEAST_ONE_SEP2=function(e){this.atLeastOneSepFirstInternal(2,e)},e.prototype.AT_LEAST_ONE_SEP3=function(e){this.atLeastOneSepFirstInternal(3,e)},e.prototype.AT_LEAST_ONE_SEP4=function(e){this.atLeastOneSepFirstInternal(4,e)},e.prototype.AT_LEAST_ONE_SEP5=function(e){this.atLeastOneSepFirstInternal(5,e)},e.prototype.AT_LEAST_ONE_SEP6=function(e){this.atLeastOneSepFirstInternal(6,e)},e.prototype.AT_LEAST_ONE_SEP7=function(e){this.atLeastOneSepFirstInternal(7,e)},e.prototype.AT_LEAST_ONE_SEP8=function(e){this.atLeastOneSepFirstInternal(8,e)},e.prototype.AT_LEAST_ONE_SEP9=function(e){this.atLeastOneSepFirstInternal(9,e)},e.prototype.RULE=function(e,t,r){if(void 0===r&&(r=Rn),v(this.definedRulesNames,e)){var n={message:Tr.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:vn.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(n)}this.definedRulesNames.push(e);var s=this.defineRule(e,t,r);return this[e]=s,s},e.prototype.OVERRIDE_RULE=function(e,t,r){void 0===r&&(r=Rn);var n,s,i,o,a,l=[];l=l.concat((n=e,s=this.definedRulesNames,i=this.className,a=[],v(s,n)||(o="Invalid rule override, rule: ->"+n+"<- cannot be overridden in the grammar: ->"+i+"<-as it is not defined in any of the super grammars ",a.push({message:o,type:vn.INVALID_RULE_OVERRIDE,ruleName:n})),a)),this.definitionErrors.push.apply(this.definitionErrors,l);var h=this.defineRule(e,t,r);return this[e]=h,h},e.prototype.BACKTRACK=function(e,t){return function(){this.isBackTrackingStack.push(1);var r=this.saveRecogState();try{return e.apply(this,t),!0}catch(e){if(Dr(e))return!1;throw e}finally{this.reloadRecogState(r),this.isBackTrackingStack.pop()}}},e.prototype.getGAstProductions=function(){return this.gastProductionsCache},e.prototype.getSerializedGastProductions=function(){return mt(o(this.gastProductionsCache))},e}(),nn=function(){function e(){}return e.prototype.initRecognizerEngine=function(e,t){if(this.className=Xr(this.constructor),this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=Ie,this.definedRulesNames=[],this.tokensMap={},this.allRuleNames=[],this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},C(t,"serializedGrammar"))throw Error("The Parser's configuration can no longer contain a <serializedGrammar> property.\n\tSee: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_6-0-0\n\tFor Further details.");if(b(e)){if(s(e))throw Error("A Token Vocabulary cannot be empty.\n\tNote that the first argument for the parser constructor\n\tis no longer a Token vector (since v4.0).");if("number"==typeof e[0].startOffset)throw Error("The Parser constructor no longer accepts a token vector as the first argument.\n\tSee: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_4-0-0\n\tFor Further details.")}if(b(e))this.tokensMap=N(e,function(e,t){return e[t.name]=t,e},{});else if(C(e,"modes")&&O(l(o(e.modes)),He)){var r=A(l(o(e.modes)));this.tokensMap=N(r,function(e,t){return e[t.name]=t,e},{})}else{if(!I(e))throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap=R(e)}this.tokensMap.EOF=tt;var n=O(o(e),function(e){return s(e.categoryMatches)});this.tokenMatcher=n?Ie:Me,Pe(o(this.tokensMap))},e.prototype.defineRule=function(e,t,r){if(this.selfAnalysisDone)throw Error("Grammar rule <"+e+"> may not be defined after the 'performSelfAnalysis' method has been called'\nMake sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.");var n,s=C(r,"resyncEnabled")?r.resyncEnabled:Rn.resyncEnabled,i=C(r,"recoveryValueFunc")?r.recoveryValueFunc:Rn.recoveryValueFunc,o=this.ruleShortNameIdx<<12;function a(e){try{if(!0===this.outputCst){t.apply(this,e);var r=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(r),r}return t.apply(this,e)}catch(e){return this.invokeRuleCatch(e,s,i)}finally{this.ruleFinallyStateUpdate()}}this.ruleShortNameIdx++,this.shortRuleNameToFull[o]=e,this.fullRuleNameToShort[e]=o;return(n=function(t,r){return void 0===t&&(t=0),this.ruleInvocationStateUpdate(o,e,t),a.call(this,r)}).ruleName=e,n.originalGrammarAction=t,n},e.prototype.invokeRuleCatch=function(e,t,r){var n=1===this.RULE_STACK.length,s=t&&!this.isBackTracking()&&this.recoveryEnabled;if(Dr(e)){var i=e;if(s){var o,a=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(a))return i.resyncedTokens=this.reSyncTo(a),this.outputCst?((o=this.CST_STACK[this.CST_STACK.length-1]).recoveredNode=!0,o):r();throw this.outputCst&&((o=this.CST_STACK[this.CST_STACK.length-1]).recoveredNode=!0,i.partialCstResult=o),i}if(n)return this.moveToTerminatedState(),r();throw i}throw e},e.prototype.optionInternal=function(e,t){var r=this.getKeyForAutomaticLookahead(Ot,t),n=this.nestedRuleBeforeClause(e,r);try{return this.optionInternalLogic(e,t,r)}finally{void 0!==n&&this.nestedRuleFinallyClause(r,n)}},e.prototype.optionInternalNoCst=function(e,t){var r=this.getKeyForAutomaticLookahead(Ot,t);return this.optionInternalLogic(e,t,r)},e.prototype.optionInternalLogic=function(e,t,r){var n,s,i=this,o=this.getLaFuncFromCache(r);if(void 0!==e.DEF){if(n=e.DEF,void 0!==(s=e.GATE)){var a=o;o=function(){return s.call(i)&&a.call(i)}}}else n=e;if(!0===o.call(this))return n.call(this)},e.prototype.atLeastOneInternal=function(e,t){var r=this.getKeyForAutomaticLookahead(Pt,e),n=this.nestedRuleBeforeClause(t,r);try{return this.atLeastOneInternalLogic(e,t,r)}finally{void 0!==n&&this.nestedRuleFinallyClause(r,n)}},e.prototype.atLeastOneInternalNoCst=function(e,t){var r=this.getKeyForAutomaticLookahead(Pt,e);this.atLeastOneInternalLogic(e,t,r)},e.prototype.atLeastOneInternalLogic=function(e,t,r){var n,s,i=this,o=this.getLaFuncFromCache(r);if(void 0!==t.DEF){if(n=t.DEF,void 0!==(s=t.GATE)){var a=o;o=function(){return s.call(i)&&a.call(i)}}}else n=t;if(!0!==o.call(this))throw this.raiseEarlyExitException(e,Jt.REPETITION_MANDATORY,t.ERR_MSG);for(var l=this.doSingleRepetition(n);!0===o.call(this)&&!0===l;)l=this.doSingleRepetition(n);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,t],o,Pt,e,Kt)},e.prototype.atLeastOneSepFirstInternal=function(e,t){var r=this.getKeyForAutomaticLookahead(Dt,e),n=this.nestedRuleBeforeClause(t,r);try{this.atLeastOneSepFirstInternalLogic(e,t,r)}finally{void 0!==n&&this.nestedRuleFinallyClause(r,n)}},e.prototype.atLeastOneSepFirstInternalNoCst=function(e,t){var r=this.getKeyForAutomaticLookahead(Dt,e);this.atLeastOneSepFirstInternalLogic(e,t,r)},e.prototype.atLeastOneSepFirstInternalLogic=function(e,t,r){var n=this,s=t.DEF,i=t.SEP;if(!0!==this.getLaFuncFromCache(r).call(this))throw this.raiseEarlyExitException(e,Jt.REPETITION_MANDATORY_WITH_SEPARATOR,t.ERR_MSG);s.call(this);for(var o=function(){return n.tokenMatcher(n.LA(1),i)};!0===this.tokenMatcher(this.LA(1),i);)this.CONSUME(i),s.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,o,s,Xt],o,Dt,e,Xt)},e.prototype.manyInternal=function(e,t){var r=this.getKeyForAutomaticLookahead(xt,e),n=this.nestedRuleBeforeClause(t,r);try{return this.manyInternalLogic(e,t,r)}finally{void 0!==n&&this.nestedRuleFinallyClause(r,n)}},e.prototype.manyInternalNoCst=function(e,t){var r=this.getKeyForAutomaticLookahead(xt,e);return this.manyInternalLogic(e,t,r)},e.prototype.manyInternalLogic=function(e,t,r){var n,s,i=this,o=this.getLaFuncFromCache(r);if(void 0!==t.DEF){if(n=t.DEF,void 0!==(s=t.GATE)){var a=o;o=function(){return s.call(i)&&a.call(i)}}}else n=t;for(var l=!0;!0===o.call(this)&&!0===l;)l=this.doSingleRepetition(n);this.attemptInRepetitionRecovery(this.manyInternal,[e,t],o,xt,e,zt,l)},e.prototype.manySepFirstInternal=function(e,t){var r=this.getKeyForAutomaticLookahead(Lt,e),n=this.nestedRuleBeforeClause(t,r);try{this.manySepFirstInternalLogic(e,t,r)}finally{void 0!==n&&this.nestedRuleFinallyClause(r,n)}},e.prototype.manySepFirstInternalNoCst=function(e,t){var r=this.getKeyForAutomaticLookahead(Lt,e);this.manySepFirstInternalLogic(e,t,r)},e.prototype.manySepFirstInternalLogic=function(e,t,r){var n=this,s=t.DEF,i=t.SEP;if(!0===this.getLaFuncFromCache(r).call(this)){s.call(this);for(var o=function(){return n.tokenMatcher(n.LA(1),i)};!0===this.tokenMatcher(this.LA(1),i);)this.CONSUME(i),s.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,o,s,$t],o,Lt,e,$t)}},e.prototype.repetitionSepSecondInternal=function(e,t,r,n,s){for(;r();)this.CONSUME(t),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,t,r,n,s],r,Dt,e,s)},e.prototype.doSingleRepetition=function(e){var t=this.getLexerPosition();return e.call(this),this.getLexerPosition()>t},e.prototype.orInternalNoCst=function(e,t){var r=b(e)?e:e.DEF,n=this.getKeyForAutomaticLookahead(It,t),s=this.getLaFuncFromCache(n).call(this,r);if(void 0!==s)return r[s].ALT.call(this);this.raiseNoAltException(t,e.ERR_MSG)},e.prototype.orInternal=function(e,t){var r=this.getKeyForAutomaticLookahead(It,t),n=this.nestedRuleBeforeClause(e,r);try{var s=b(e)?e:e.DEF,i=this.getLaFuncFromCache(r).call(this,s);if(void 0!==i){var o=s[i],a=this.nestedAltBeforeClause(o,t,It,i);try{return o.ALT.call(this)}finally{void 0!==a&&this.nestedRuleFinallyClause(a.shortName,a.nestedName)}}this.raiseNoAltException(t,e.ERR_MSG)}finally{void 0!==n&&this.nestedRuleFinallyClause(r,n)}},e.prototype.ruleFinallyStateUpdate=function(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),0===this.RULE_STACK.length&&!1===this.isAtEndOfInput()){var e=this.LA(1),t=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new Fr(t,e))}},e.prototype.subruleInternal=function(e,t,r){var n;try{var s=void 0!==r?r.ARGS:void 0;return n=e.call(this,t,s),this.cstPostNonTerminal(n,void 0!==r&&void 0!==r.LABEL?r.LABEL:e.ruleName),n}catch(t){this.subruleInternalError(t,r,e.ruleName)}},e.prototype.subruleInternalError=function(e,t,r){throw Dr(e)&&void 0!==e.partialCstResult&&(this.cstPostNonTerminal(e.partialCstResult,void 0!==t&&void 0!==t.LABEL?t.LABEL:r),delete e.partialCstResult),e},e.prototype.consumeInternal=function(e,t,r){var n;try{var s=this.LA(1);!0===this.tokenMatcher(s,e)?(this.consumeToken(),n=s):this.consumeInternalError(e,s,r)}catch(r){n=this.consumeInternalRecovery(e,t,r)}return this.cstPostTerminal(void 0!==r&&void 0!==r.LABEL?r.LABEL:e.name,n),n},e.prototype.consumeInternalError=function(e,t,r){var n,s=this.LA(0);throw n=void 0!==r&&r.ERR_MSG?r.ERR_MSG:this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:t,previous:s,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new kr(n,t,s))},e.prototype.consumeInternalRecovery=function(e,t,r){if(!this.recoveryEnabled||"MismatchedTokenException"!==r.name||this.isBackTracking())throw r;var n=this.getFollowsForInRuleRecovery(e,t);try{return this.tryInRuleRecovery(e,n)}catch(e){throw e.name===Br?r:e}},e.prototype.saveRecogState=function(){var e=this.errors,t=S(this.RULE_STACK);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:t,CST_STACK:this.CST_STACK,LAST_EXPLICIT_RULE_STACK:this.LAST_EXPLICIT_RULE_STACK}},e.prototype.reloadRecogState=function(e){this.errors=e.errors,this.importLexerState(e.lexerState),this.RULE_STACK=e.RULE_STACK},e.prototype.ruleInvocationStateUpdate=function(e,t,r){this.RULE_OCCURRENCE_STACK.push(r),this.RULE_STACK.push(e),this.cstInvocationStateUpdate(t,e)},e.prototype.isBackTracking=function(){return 0!==this.isBackTrackingStack.length},e.prototype.getCurrRuleFullName=function(){var e=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[e]},e.prototype.shortRuleNameToFullName=function(e){return this.shortRuleNameToFull[e]},e.prototype.isAtEndOfInput=function(){return this.tokenMatcher(this.LA(1),tt)},e.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.LAST_EXPLICIT_RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e}(),sn=function(){function e(){}return e.prototype.initErrorHandler=function(e){this._errors=[],this.errorMessageProvider=k(e.errorMessageProvider,Sn.errorMessageProvider)},e.prototype.SAVE_ERROR=function(e){if(Dr(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:S(this.RULE_OCCURRENCE_STACK)},this._errors.push(e),e;throw Error("Trying to save an Error which is not a RecognitionException")},Object.defineProperty(e.prototype,"errors",{get:function(){return S(this._errors)},set:function(e){this._errors=e},enumerable:!0,configurable:!0}),e.prototype.raiseEarlyExitException=function(e,t,r){for(var n=this.getCurrRuleFullName(),s=lr(e,this.getGAstProductions()[n],t,this.maxLookahead)[0],i=[],o=1;o<=this.maxLookahead;o++)i.push(this.LA(o));var a=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:s,actual:i,previous:this.LA(0),customUserDescription:r,ruleName:n});throw this.SAVE_ERROR(new Ur(a,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(e,t){for(var r=this.getCurrRuleFullName(),n=ar(e,this.getGAstProductions()[r],this.maxLookahead),s=[],i=1;i<=this.maxLookahead;i++)s.push(this.LA(i));var o=this.LA(0),a=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:n,actual:s,previous:o,customUserDescription:t,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new Hr(a,this.LA(1),o))},e}(),on=function(){function e(){}return e.prototype.initContentAssist=function(){},e.prototype.computeContentAssist=function(e,t){var r=this.gastProductionsCache[e];if(g(r))throw Error("Rule ->"+e+"<- does not exist in this grammar.");return Qt([r],t,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(e){var t=h(e.ruleStack),r=this.getGAstProductions()[t];return new Gt(r,e).startWalking()},e}(),an={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(an);var ln=!0,hn=Math.pow(2,8)-1,un=et({name:"RECORDING_PHASE_TOKEN",pattern:Be.NA});Pe([un]);var cn=rt(un,"This IToken indicates the Parser is in Recording Phase\n\tSee: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details",-1,-1,-1,-1,-1,-1);Object.freeze(cn);var dn={name:"This CSTNode indicates the Parser is in Recording Phase\n\tSee: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details",children:{}},gn=function(){function e(){}return e.prototype.initGastRecorder=function(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1},e.prototype.enableRecording=function(){var e=this;this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",function(){for(var t=function(t){var r=t>0?t:"";e["CONSUME"+r]=function(e,r){return this.consumeInternalRecord(e,t,r)},e["SUBRULE"+r]=function(e,r){return this.subruleInternalRecord(e,t,r)},e["OPTION"+r]=function(e){return this.optionInternalRecord(e,t)},e["OR"+r]=function(e){return this.orInternalRecord(e,t)},e["MANY"+r]=function(e){this.manyInternalRecord(t,e)},e["MANY_SEP"+r]=function(e){this.manySepFirstInternalRecord(t,e)},e["AT_LEAST_ONE"+r]=function(e){this.atLeastOneInternalRecord(t,e)},e["AT_LEAST_ONE_SEP"+r]=function(e){this.atLeastOneSepFirstInternalRecord(t,e)}},r=0;r<10;r++)t(r);e.consume=function(e,t,r){return this.consumeInternalRecord(t,e,r)},e.subrule=function(e,t,r){return this.subruleInternalRecord(t,e,r)},e.option=function(e,t){return this.optionInternalRecord(t,e)},e.or=function(e,t){return this.orInternalRecord(t,e)},e.many=function(e,t){this.manyInternalRecord(e,t)},e.atLeastOne=function(e,t){this.atLeastOneInternalRecord(e,t)},e.ACTION=e.ACTION_RECORD,e.BACKTRACK=e.BACKTRACK_RECORD,e.LA=e.LA_RECORD})},e.prototype.disableRecording=function(){var e=this;this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",function(){for(var t=0;t<10;t++){var r=t>0?t:"";delete e["CONSUME"+r],delete e["SUBRULE"+r],delete e["OPTION"+r],delete e["OR"+r],delete e["MANY"+r],delete e["MANY_SEP"+r],delete e["AT_LEAST_ONE"+r],delete e["AT_LEAST_ONE_SEP"+r]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA})},e.prototype.ACTION_RECORD=function(e){},e.prototype.BACKTRACK_RECORD=function(e,t){return function(){return!0}},e.prototype.LA_RECORD=function(e){return Cn},e.prototype.topLevelRuleRecord=function(e,t){try{var r=new at({definition:[],name:e});return r.name=e,this.recordingProdStack.push(r),t.call(this),this.recordingProdStack.pop(),r}catch(e){if(!0!==e.KNOWN_RECORDER_ERROR)try{e.message=e.message+'\n\t This error was thrown during the "grammar recording phase" For more info see:\n\thttps://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording'}catch(t){throw e}throw e}},e.prototype.optionInternalRecord=function(e,t){return pn.call(this,ht,e,t)},e.prototype.atLeastOneInternalRecord=function(e,t){pn.call(this,ut,t,e)},e.prototype.atLeastOneSepFirstInternalRecord=function(e,t){pn.call(this,ct,t,e,ln)},e.prototype.manyInternalRecord=function(e,t){pn.call(this,dt,t,e)},e.prototype.manySepFirstInternalRecord=function(e,t){pn.call(this,gt,t,e,ln)},e.prototype.orInternalRecord=function(e,t){return fn.call(this,e,t)},e.prototype.subruleInternalRecord=function(e,t,r){if(wn(t),!e||!1===C(e,"ruleName")){var n=new Error("<SUBRULE"+mn(t)+"> argument is invalid expecting a Parser method reference but got: <"+JSON.stringify(e)+">\n inside top level rule: <"+this.recordingProdStack[0].name+">");throw n.KNOWN_RECORDER_ERROR=!0,n}var s=j(this.recordingProdStack),i=e.ruleName,o=new ot({idx:t,nonTerminalName:i,referencedRule:void 0});return s.definition.push(o),this.outputCst?dn:an},e.prototype.consumeInternalRecord=function(e,t,r){if(wn(t),!De(e)){var n=new Error("<CONSUME"+mn(t)+"> argument is invalid expecting a TokenType reference but got: <"+JSON.stringify(e)+">\n inside top level rule: <"+this.recordingProdStack[0].name+">");throw n.KNOWN_RECORDER_ERROR=!0,n}var s=j(this.recordingProdStack),i=new ft({idx:t,terminalType:e});return s.definition.push(i),cn},e}();function pn(e,t,r,n){void 0===n&&(n=!1),wn(r);var s=j(this.recordingProdStack),i=p(t)?t:t.DEF,o=new e({definition:[],idx:r});return C(t,"NAME")&&(o.name=t.NAME),n&&(o.separator=t.SEP),C(t,"MAX_LOOKAHEAD")&&(o.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(o),i.call(this),s.definition.push(o),this.recordingProdStack.pop(),an}function fn(e,t){var r=this;wn(t);var n=j(this.recordingProdStack),s=!1===b(e),i=!1===s?e:e.DEF,o=new pt({definition:[],idx:t,ignoreAmbiguities:s&&!0===e.IGNORE_AMBIGUITIES});C(e,"NAME")&&(o.name=e.NAME),C(e,"MAX_LOOKAHEAD")&&(o.maxLookahead=e.MAX_LOOKAHEAD);var a=P(i,function(e){return p(e.GATE)});return o.hasPredicates=a,n.definition.push(o),c(i,function(e){var t=new lt({definition:[]});o.definition.push(t),C(e,"NAME")&&(t.name=e.NAME),C(e,"IGNORE_AMBIGUITIES")?t.ignoreAmbiguities=e.IGNORE_AMBIGUITIES:C(e,"GATE")&&(t.ignoreAmbiguities=!0),r.recordingProdStack.push(t),e.ALT.call(r),r.recordingProdStack.pop()}),an}function mn(e){return 0===e?"":""+e}function wn(e){if(e<0||e>hn){var t=new Error("Invalid DSL Method idx value: <"+e+">\n\tIdx value must be a none negative value smaller than "+(hn+1));throw t.KNOWN_RECORDER_ERROR=!0,t}}var En=function(){function e(){}return e.prototype.initPerformanceTracer=function(e){if(C(e,"traceInitPerf")){var t=e.traceInitPerf,r="number"==typeof t;this.traceInitMaxIdent=r?t:1/0,this.traceInitPerf=r?t>0:t}else this.traceInitMaxIdent=0,this.traceInitPerf=Sn.traceInitPerf;this.traceInitIndent=-1},e.prototype.TRACE_INIT=function(e,t){if(!0===this.traceInitPerf){this.traceInitIndent++;var r=new Array(this.traceInitIndent+1).join("\t");this.traceInitIndent<this.traceInitMaxIdent&&console.log(r+"--\x3e <"+e+">");var n=z(t),s=n.time,i=n.value,o=s>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&o(r+"<-- <"+e+"> time: "+s+"ms"),this.traceInitIndent--,i}return t()},e}(),yn=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Cn=rt(tt,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(Cn);var vn,Sn=Object.freeze({recoveryEnabled:!1,maxLookahead:4,ignoredIssues:{},dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:Sr,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),Rn=Object.freeze({recoveryValueFunc:function(){},resyncEnabled:!0});function Tn(e){return void 0===e&&(e=void 0),function(){return e}}!function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.INVALID_NESTED_RULE_NAME=10]="INVALID_NESTED_RULE_NAME",e[e.DUPLICATE_NESTED_NAME=11]="DUPLICATE_NESTED_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=12]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=13]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=14]="TOO_MANY_ALTS"}(vn||(vn={}));var Nn,_n=function(){function e(e,t){void 0===t&&(t=Sn),this.ignoredIssues=Sn.ignoredIssues,this.definitionErrors=[],this.selfAnalysisDone=!1;var r=this;r.initErrorHandler(t),r.initLexerAdapter(),r.initLooksAhead(t),r.initRecognizerEngine(e,t),r.initRecoverable(t),r.initTreeBuilder(t),r.initContentAssist(),r.initGastRecorder(t),r.initPerformanceTracer(t),C(t,"ignoredIssues")&&t.ignoredIssues!==Sn.ignoredIssues&&W("The <ignoredIssues> IParserConfig property is soft-deprecated and will be removed in future versions.\n\tPlease use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead."),this.ignoredIssues=C(t,"ignoredIssues")?t.ignoredIssues:Sn.ignoredIssues,this.skipValidations=C(t,"skipValidations")?t.skipValidations:Sn.skipValidations}return e.performSelfAnalysis=function(e){e.performSelfAnalysis()},e.prototype.performSelfAnalysis=function(){var t=this;this.TRACE_INIT("performSelfAnalysis",function(){var r;t.selfAnalysisDone=!0;var n=t.className;t.TRACE_INIT("toFastProps",function(){G(t)}),t.TRACE_INIT("Grammar Recording",function(){try{t.enableRecording(),c(t.definedRulesNames,function(e){var r=t[e].originalGrammarAction,n=void 0;t.TRACE_INIT(e+" Rule",function(){n=t.topLevelRuleRecord(e,r)}),t.gastProductionsCache[e]=n})}finally{t.disableRecording()}});var i=[];if(t.TRACE_INIT("Grammar Resolving",function(){i=Ar({rules:o(t.gastProductionsCache)}),t.definitionErrors.push.apply(t.definitionErrors,i)}),t.TRACE_INIT("Grammar Validations",function(){if(s(i)&&!1===t.skipValidations){var e=br({rules:o(t.gastProductionsCache),maxLookahead:t.maxLookahead,tokenTypes:o(t.tokensMap),ignoredIssues:t.ignoredIssues,errMsgProvider:Tr,grammarName:n});t.definitionErrors.push.apply(t.definitionErrors,e)}}),s(t.definitionErrors)&&(t.recoveryEnabled&&t.TRACE_INIT("computeAllProdsFollows",function(){var e,r,n=(e=o(t.gastProductionsCache),r={},c(e,function(e){var t=new Mt(e).startWalking();L(r,t)}),r);t.resyncFollows=n}),t.TRACE_INIT("ComputeLookaheadFunctions",function(){t.preComputeLookaheadFunctions(o(t.gastProductionsCache))})),t.TRACE_INIT("expandAllNestedRuleNames",function(){var e,r,n,s=(e=o(t.gastProductionsCache),r=t.fullRuleNameToShort,n={allRuleNames:[]},c(e,function(e){var t=r[e.name];n.allRuleNames.push(e.name);var s=new Wt(t);e.accept(s),c(s.result,function(t){t.def,t.key;var r=t.name;n.allRuleNames.push(e.name+r)})}),n);t.allRuleNames=s.allRuleNames}),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!s(t.definitionErrors))throw r=a(t.definitionErrors,function(e){return e.message}),new Error("Parser Definition Errors detected:\n "+r.join("\n-------------------------------\n"))})},e.DEFER_DEFINITION_ERRORS_HANDLING=!1,e}();Nn=_n,[Yr,jr,en,tn,nn,rn,sn,on,gn,En].forEach(function(e){var t=e.prototype;Object.getOwnPropertyNames(t).forEach(function(r){if("constructor"!==r){var n=Object.getOwnPropertyDescriptor(t,r);n&&(n.get||n.set)?Object.defineProperty(Nn.prototype,r,n):Nn.prototype[r]=e.prototype[r]}})});var An=function(e){function t(t,r){void 0===r&&(r=Sn);var n=R(r);return n.outputCst=!0,e.call(this,t,n)||this}return yn(t,e),t}(_n),bn=function(e){function t(t,r){void 0===r&&(r=Sn);var n=R(r);return n.outputCst=!1,e.call(this,t,n)||this}return yn(t,e),t}(_n);function Mn(e,t){var r=void 0===t?{}:t,s=r.resourceBase,i=void 0===s?"https://unpkg.com/chevrotain@"+n+"/diagrams/":s,o=r.css;return'\n\x3c!-- This is a generated file --\x3e\n<!DOCTYPE html>\n<meta charset="utf-8">\n<style>\n body {\n background-color: hsl(30, 20%, 95%)\n }\n</style>\n\n'+("\n<link rel='stylesheet' href='"+(void 0===o?"https://unpkg.com/chevrotain@"+n+"/diagrams/diagrams.css":o)+"'>\n")+("\n<script src='"+i+"vendor/railroad-diagrams.js'><\/script>\n<script src='"+i+"src/diagrams_builder.js'><\/script>\n<script src='"+i+"src/diagrams_behavior.js'><\/script>\n<script src='"+i+"src/main.js'><\/script>\n")+'\n<div id="diagrams" align="center"></div> \n'+("\n<script>\n window.serializedGrammar = "+JSON.stringify(e,null," ")+";\n<\/script>\n")+'\n<script>\n var diagramsDiv = document.getElementById("diagrams");\n main.drawDiagramsFromSerializedGrammar(serializedGrammar, diagramsDiv);\n<\/script>\n'}var In="\n";function On(e){return"\nfunction "+e.name+"(tokenVocabulary, config) {\n // invoke super constructor\n // No support for embedded actions currently, so we can 'hardcode'\n // The use of CstParser.\n chevrotain.CstParser.call(this, tokenVocabulary, config)\n\n const $ = this\n\n "+(a(e.rules,function(e){return function(e,t){var r=Hn(t,'$.RULE("'+e.name+'", function() {')+In;return r+=kn(e.definition,t+1),r+=Hn(t+1,"})")+In}(e,1)}).join("\n")+"\n\n // very important to call this after all the rules have been defined.\n // otherwise the parser may not work correctly as it will lack information\n // derived during the self analysis phase.\n this.performSelfAnalysis(this)\n}\n\n// inheritance as implemented in javascript in the previous decade... :(\n")+e.name+".prototype = Object.create(chevrotain.CstParser.prototype)\n"+e.name+".prototype.constructor = "+e.name+" \n "}function xn(e,t){var r=Hn(t,"$.OR"+e.idx+"([")+In,n=a(e.definition,function(e){return function(e,t){var r=Hn(t,"{")+In;e.name&&(r+=Hn(t+1,'NAME: "'+e.name+'",')+In);return r+=Hn(t+1,"ALT: function() {")+In,r+=kn(e.definition,t+1),r+=Hn(t+1,"}")+In,r+=Hn(t,"}"),r}(e,t+1)});return r+=n.join(","+In),r+=In+Hn(t,"])"+In)}function Pn(e,t){if(e instanceof ot)return function(e,t){return Hn(t,"$.SUBRULE"+e.idx+"($."+e.nonTerminalName+")"+In)}(e,t);if(e instanceof ht)return Ln("OPTION",e,t);if(e instanceof ut)return Ln("AT_LEAST_ONE",e,t);if(e instanceof ct)return Ln("AT_LEAST_ONE_SEP",e,t);if(e instanceof gt)return Ln("MANY_SEP",e,t);if(e instanceof dt)return Ln("MANY",e,t);if(e instanceof pt)return xn(e,t);if(e instanceof ft)return function(e,t){var r=e.terminalType.name;return Hn(t,"$.CONSUME"+e.idx+"(this.tokensMap."+r+")"+In)}(e,t);if(e instanceof lt)return kn(e.definition,t);throw Error("non exhaustive match")}function Ln(e,t,r){var n=Hn(r,"$."+(e+t.idx)+"(");return t.name||t.separator?(n+="{"+In,t.name&&(n+=Hn(r+1,'NAME: "'+t.name+'"')+","+In),t.separator&&(n+=Hn(r+1,"SEP: this.tokensMap."+t.separator.name)+","+In),n+="DEF: "+Dn(t.definition,r+2)+In,n+=Hn(r,"}")+In):n+=Dn(t.definition,r+1),n+=Hn(r,")")+In}function Dn(e,t){var r="function() {"+In;return r+=kn(e,t),r+=Hn(t,"}")+In}function kn(e,t){var r="";return c(e,function(e){r+=Pn(e,t+1)}),r}function Hn(e,t){return Array(4*e+1).join(" ")+t}function Fn(e){var t=function(e){return" \n"+On(e)+"\nreturn new "+e.name+"(tokenVocabulary, config) \n"}({name:e.name,rules:e.rules}),n=new Function("tokenVocabulary","config","chevrotain",t);return function(t){return n(e.tokenVocabulary,t,r(39250))}}function Un(e){return function(e){return"\n(function (root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['chevrotain'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // Node. Does not work with strict CommonJS, but\n // only CommonJS-like environments that support module.exports,\n // like Node.\n module.exports = factory(require('chevrotain'));\n } else {\n // Browser globals (root is window)\n root.returnExports = factory(root.b);\n }\n}(typeof self !== 'undefined' ? self : this, function (chevrotain) {\n\n"+On(e)+"\n \nreturn {\n "+e.name+": "+e.name+" \n}\n}));\n"}({name:e.name,rules:e.rules})}function Vn(){console.warn("The clearCache function was 'soft' removed from the Chevrotain API.\n\t It performs no action other than printing this message.\n\t Please avoid using it as it will be completely removed in the future")}},39329:()=>{},39372:(e,t,r)=>{"use strict";var n=r(30617),s=TypeError;e.exports=function(e,t){if(!delete e[t])throw new s("Cannot delete property "+n(t)+" of "+n(e))}},39393:(e,t,r)=>{"use strict";var n=r(53001);e.exports=!n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},39621:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(34478),r(31143);var s=n(r(24300)),i=r(9208),o=r(17334);class a extends i.BaseAction{constructor(e){let{rows:t,finalIndex:r}=e;super("row_move"),(0,s.default)(this,"rows",void 0),(0,s.default)(this,"finalRowIndex",void 0),this.rows=t.slice(),this.finalRowIndex=r}static startRegisteringEvents(e,t){e.addHook("beforeRowMove",(e,r)=>{!1!==e&&t.done(()=>new a({rows:e,finalIndex:r}))})}undo(e,t){const r=e.getPlugin("manualRowMove");e.addHookOnce("afterViewRender",t);(0,o.getMoves)(this.rows,this.finalRowIndex,e.rowIndexMapper.getNumberOfIndexes()).reverse().forEach(e=>{let{from:t,to:n}=e;t<n&&(n-=1),r.moveRow(n,t)}),e.render(),e.deselectCell(),e.selectRows(this.rows[0],this.rows[0]+this.rows.length-1)}redo(e,t){const r=e.getPlugin("manualRowMove");e.addHookOnce("afterViewRender",t),r.moveRows(this.rows.slice(),this.finalRowIndex),e.render(),e.deselectCell(),e.selectRows(this.finalRowIndex,this.finalRowIndex+this.rows.length-1)}}t.RowMoveAction=a},39705:(e,t,r)=>{"use strict";t.__esModule=!0,t.getValidator=function(e){if("function"==typeof e)return e;if(!o(e))throw Error(`No registered validator found under "${e}" name`);return i(e)},t.registerValidator=function(e,t){"string"!=typeof e&&(e=(t=e).VALIDATOR_TYPE);s(e,t)},r(52490);var n=r(55585);const{register:s,getItem:i,hasItem:o,getNames:a,getValues:l}=(0,n.staticRegister)("validators");t.getRegisteredValidators=l,t.getRegisteredValidatorNames=a,t.hasValidator=o},39748:(e,t,r)=>{"use strict";r(52653)},39774:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(50380);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.AutoColumnSize=n.AutoColumnSize},39832:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(34478),r(90643);var s=n(r(24300)),i=r(6083),o=r(40785),a=r(42685),l=r(8173),h=r(13283),u=r(36327),c=r(1487),d=r(9696),g=r(47299);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)}var f=new WeakSet;class m extends l.BaseComponent{constructor(e,t){super(e,{id:t.id,stateless:!1}),p(this,f),(0,s.default)(this,"name",""),this.name=t.name,this.buildOperatorsElement()}getMenuItemDescriptor(){return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:()=>this.isHidden(),renderer:(e,t)=>((0,i.addClass)(t.parentNode,"htFiltersMenuOperators"),(0,o.arrayEach)(this.elements,e=>t.appendChild(e.element)),t)}}buildOperatorsElement(){const e=[u.OPERATION_ID,c.OPERATION_ID];(0,o.arrayEach)(e,t=>{const r=new g.RadioInputUI(this.hot,{name:"operator",label:{htmlFor:t,textContent:(0,h.getOperationName)(t)},value:t,checked:t===e[0],id:t});r.addLocalHook("change",e=>function(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}(f,this,w).call(this,e)),this.elements.push(r)})}setChecked(e){if(this.elements.length<e)throw Error(a.toSingleLine`Radio button with index ${e} doesn't exist.`);(0,o.arrayEach)(this.elements,(t,r)=>{t.setChecked(r===e)})}getActiveOperationId(){const e=this.elements.find(e=>e instanceof g.RadioInputUI&&e.isChecked());return e?e.getValue():u.OPERATION_ID}getState(){return this.getActiveOperationId()}setState(e){this.reset(),e&&this.getActiveOperationId()!==e&&(0,o.arrayEach)(this.elements,t=>{t.setChecked(t.getValue()===e)})}updateState(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.OPERATION_ID,t=arguments.length>1?arguments[1]:void 0,r=e;r===d.OPERATION_ID&&(r=c.OPERATION_ID),this.state.setValueAtIndex(t,r)}reset(){this.setChecked(0)}}function w(e){this.setState(e.target.value)}t.OperatorsComponent=m},39843:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostLeft",callback(e){const{selection:t,columnIndexMapper:r}=e,n=e.getSelectedRangeActive().highlight.row;let s=r.getNearestNotHiddenIndex(...e.isRtl()?[e.countCols()-1,-1]:[0,1]);null===s&&(s=e.isRtl()?-1:-e.countRowHeaders()),t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(n,s)),t.markEndSource()}}},39888:(e,t,r)=>{"use strict";var n=r(41462),s=r(31520),i=r(59188),o=r(94811),a=r(26023),l=r(48369),h=s.Set,u=s.add,c=s.has;e.exports=function(e){var t=n(this),r=o(e),s=new h;return i(t)>r.size?l(r.getIterator(),function(e){c(t,e)&&u(s,e)}):a(t,function(e){r.includes(e)&&u(s,e)}),s}},39951:()=>{},40038:(e,t,r)=>{"use strict";t.__esModule=!0,t.getPlugin=c,t.getPluginsNames=function(){return[...l.getItems(),...h.getItems()]},t.hasPlugin=function(e){return!!c(e)},t.registerPlugin=function(e,t,r){[e,t,r]=function(e,t,r){"function"==typeof e&&(e=(t=e).PLUGIN_KEY,r=t.PLUGIN_PRIORITY);return[e,t,r]}(e,t,r),void 0===c(e)&&function(e,t,r){const s=(0,n.toUpperCaseFirst)(e);if(u.hasItem(s))throw new Error(a(s));void 0===r?h.addItem(s):l.addItem(r,s);u.addItem(s,t)}(e,t,r)},r(52490);var n=r(82887),s=r(4553),i=r(79300),o=r(99958);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,o.createUniqueSet)({errorItemExists:a}),u=(0,i.createUniqueMap)({errorIdExists:a});function c(e){const t=(0,n.toUpperCaseFirst)(e);return u.getItem(t)}},40059:(e,t,r)=>{"use strict";r(49463)("flatMap")},40172:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(1531);const{getListWithInsertedItems:s,getListWithRemovedItems:i}=(0,n.alterUtilsFactory)("physicallyIndexed");class o extends n.IndexMap{constructor(){super(e=>e)}insert(e,t){const r=(0,n.getIncreasedIndexes)(this.indexedValues,t);this.indexedValues=s(r,e,t,this.initValueOrFn),super.insert(e,t)}remove(e){const t=i(this.indexedValues,e);this.indexedValues=(0,n.getDecreasedIndexes)(t,e),super.remove(e)}}t.default=o},40393:(e,t,r)=>{"use strict";t.__esModule=!0,t.valueSetter=function(e){if("string"==typeof e&&(0,n.isNumericLike)(e)){const t=(0,n.getParsedNumber)(e);return(0,s.isNullish)(t)?e:t}return e};var n=r(4407),s=r(96645)},40408:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300)),i=r(9208);class o extends i.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,r)=>{r||t.done(()=>new o({cellRange:e}))})}undo(e,t){const r=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),r.mergeRange(this.cellRange,!0)}redo(e,t){const r=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),r.unmergeRange(this.cellRange,!0),e.render()}}t.UnmergeCellsAction=o},40539:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"unfreeze_column",name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN)},callback(t,r){const[{start:{col:n}}]=r;e.unfreezeColumn(n),this.view.adjustElementsSize(),this.render()},hidden(){const e=this.getSelectedRange();let t=!1;return(void 0===e||e.length>1||e[0].from.col!==e[0].to.col||e[0].from.col>=this.getSettings().fixedColumnsStart)&&(t=!0),t}}};var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230))},40556:()=>{},40638:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(34478),r(940);var s=r(40785),i=n(r(69124)),o=n(r(54635)),a=r(47947),l=r(38460),h=r(18095);function u(e,t,r){(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,r)}function c(e,t,r){return e.set(g(e,t),r),r}function d(e,t){return e.get(g(e,t))}function g(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var p=new WeakMap,f=new WeakMap,m=new WeakMap;t.default=class{constructor(){u(this,p,new i.default),u(this,f,new o.default(d(p,this))),u(this,m,[[]])}setState(e){d(p,this).setData(e);let t=!1;try{d(f,this).buildTree()}catch(e){d(f,this).clear(),d(p,this).clear(),t=!0}return c(m,this,(0,l.generateMatrix)(d(f,this).getRoots())),t}setColumnsLimit(e){d(p,this).setColumnsLimit(e)}mergeStateWith(e){const t=(0,s.arrayMap)(e,e=>{let{row:t,...r}=e;return{row:t<0?this.rowCoordsToLevel(t):t,...r}});d(p,this).mergeWith(t),d(f,this).buildTree(),c(m,this,(0,l.generateMatrix)(d(f,this).getRoots()))}mapState(e){d(p,this).map(e),d(f,this).buildTree(),c(m,this,(0,l.generateMatrix)(d(f,this).getRoots()))}mapNodes(e){return(0,s.arrayReduce)(d(f,this).getRoots(),(t,r)=>(r.walkDown(r=>{const n=e(r.data);void 0!==n&&t.push(n)}),t),[])}triggerNodeModification(e,t,r){t<0&&(t=this.rowCoordsToLevel(t));const n=d(f,this).getNode(t,r);let s;return n&&(s=(0,a.triggerNodeModification)(e,n,r),c(m,this,(0,l.generateMatrix)(d(f,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 r,n;return e<0&&(e=this.rowCoordsToLevel(e)),null===e||e>=this.getLayersCount()?null:null!==(r=null===(n=d(m,this)[e])||void 0===n?void 0:n[t])&&void 0!==r?r:null}getHeaderTreeNodeData(e,t){const r=this.getHeaderTreeNode(e,t);return r?{...r.data}:null}getHeaderTreeNode(e,t){if(e<0&&(e=this.rowCoordsToLevel(e)),null===e||e>=this.getLayersCount())return null;const r=d(f,this).getNode(e,t);return r||null}findTopMostEntireHeaderLevel(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const r=t-e+1;let n=!1,s=null;for(let i=e;i<=t;i++){const o=d(f,this).getRootByColumn(i);if(!o)break;n=!0,o.walkDown(n=>{const{columnIndex:i,headerLevel:o,origColspan:a,isHidden:l}=n.data;l||a<=r&&i>=e&&i+a-1<=t&&(null===s||o<s)&&(s=o)},h.TRAVERSAL_DF_PRE)}return n&&null===s?-1:this.levelToRowCoords(null!=s?s:0)}findLeftMostColumnIndex(e,t){var r;const{isRoot:n}=null!==(r=this.getHeaderSettings(e,t))&&void 0!==r?r:{isRoot:!0};if(n)return t;let s=t-1;for(;s>=0;){var i;const{isRoot:t}=null!==(i=this.getHeaderSettings(e,s))&&void 0!==i?i:{isRoot:!0};if(t)break;s-=1}return s}findRightMostColumnIndex(e,t){var r;const{isRoot:n,origColspan:s}=null!==(r=this.getHeaderSettings(e,t))&&void 0!==r?r:{isRoot:!0,origColspan:1};if(n)return t+s-1;let i=t+1;for(;i<this.getColumnsCount();){var o;const{isRoot:t}=null!==(o=this.getHeaderSettings(e,i))&&void 0!==o?o:{isRoot:!0};if(t)break;i+=1}return i-1}getLayersCount(){return d(p,this).getLayersCount()}getColumnsCount(){return d(p,this).getColumnsCount()}clear(){c(m,this,[]),d(p,this).clear(),d(f,this).clear()}}},40697:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(69002);t.RENDERER_TYPE=n.RENDERER_TYPE,t.autocompleteRenderer=n.autocompleteRenderer},40761:(e,t,r)=>{"use strict";var n=r(2382),s=r(33266),i=TypeError,o=Object.getOwnPropertyDescriptor,a=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=a?function(e,t){if(s(e)&&!o(e,"length").writable)throw new i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},40765:(e,t)=>{"use strict";function r(e,t,r){e.addEventListener(t,r,!1)}function n(e,t,r){e.removeEventListener(t,r,!1)}function s(e){return e.ownerDocument.defaultView.getComputedStyle(e)}t.__esModule=!0,t.createInputElementResizer=function(e){const t={minHeight:200,maxHeight:300,minWidth:100,maxWidth:300,textContent:e=>e.value,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}},i=e.body,o=e.createTextNode(""),a=e.createElement("span");let l;function h(){var e,r;o.textContent=t.textContent(l),a.style.position="absolute",a.style.fontSize=s(l).fontSize,a.style.fontFamily=s(l).fontFamily,a.style.whiteSpace="pre",i.appendChild(a);const n=parseInt((null===(e=s(l))||void 0===e?void 0:e.paddingInlineStart)||0,10),h=parseInt((null===(r=s(l))||void 0===r?void 0:r.paddingInlineEnd)||0,10),u=a.clientWidth+n+h+1;i.removeChild(a);const c=l.style;c.height=`${t.minHeight}px`,t.minWidth>u?c.width=`${t.minWidth}px`:u>t.maxWidth?c.width=`${t.maxWidth}px`:c.width=`${u}px`;const d=l.scrollHeight?l.scrollHeight-1:0;t.minHeight>d?c.height=`${t.minHeight}px`:t.maxHeight<d?(c.height=`${t.maxHeight}px`,c.overflowY="visible"):c.height=`${d}px`}function u(){e.defaultView.setTimeout(h,0)}return{init:function(e,n){let s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];l=e,function(e){if(e&&e.minHeight)if("inherit"===e.minHeight)t.minHeight=l.clientHeight;else{const r=parseInt(e.minHeight,10);isNaN(r)||(t.minHeight=r)}if(e&&e.maxHeight)if("inherit"===e.maxHeight)t.maxHeight=l.clientHeight;else{const r=parseInt(e.maxHeight,10);isNaN(r)||(t.maxHeight=r)}if(e&&e.minWidth)if("inherit"===e.minWidth)t.minWidth=l.clientWidth;else{const r=parseInt(e.minWidth,10);isNaN(r)||(t.minWidth=r)}if(e&&e.maxWidth)if("inherit"===e.maxWidth)t.maxWidth=l.clientWidth;else{const r=parseInt(e.maxWidth,10);isNaN(r)||(t.maxWidth=r)}a.firstChild||(a.className="autoResize",a.style.display="inline-block",a.appendChild(o))}(n),"TEXTAREA"===l.nodeName&&(l.style.resize="none",l.style.height=`${t.minHeight}px`,l.style.minWidth=`${t.minWidth}px`,l.style.maxWidth=`${t.maxWidth}px`,l.style.overflowY="hidden"),s&&(r(l,"input",h),r(l,"keydown",u)),h()},resize:h,unObserve(){n(l,"input",h),n(l,"keydown",u)}}}},40785:(e,t,r)=>{"use strict";function n(e,t,r,n){let s=-1,i=e,o=r;Array.isArray(e)||(i=Array.from(e));const a=i.length;for(n&&a&&(s+=1,o=i[s]),s+=1;s<a;)o=t(o,i[s],s,i),s+=1;return o}function s(e,t){let r=0,n=e;Array.isArray(e)||(n=Array.from(e));const s=n.length;for(;r<s&&!1!==t(n[r],r,n);)r+=1;return e}function i(e){return n(e,(e,t)=>e+t,0)}t.__esModule=!0,t.arrayAvg=function(e){if(!e.length)return 0;return i(e)/e.length},t.arrayEach=s,t.arrayFilter=function(e,t){let r=0,n=e;Array.isArray(e)||(n=Array.from(e));const s=n.length,i=[];let o=-1;for(;r<s;){const e=n[r];t(e,r,n)&&(o+=1,i[o]=e),r+=1}return i},t.arrayFlatten=function e(t){return n(t,(t,r)=>t.concat(Array.isArray(r)?e(r):r),[])},t.arrayMap=function(e,t){let r=0,n=e;Array.isArray(e)||(n=Array.from(e));const s=n.length,i=[];let o=-1;for(;r<s;){const e=n[r];o+=1,i[o]=t(e,r,n),r+=1}return i},t.arrayMax=function(e){return n(e,(e,t)=>e>t?e:t,Array.isArray(e)?e[0]:void 0)},t.arrayMin=function(e){return n(e,(e,t)=>e<t?e:t,Array.isArray(e)?e[0]:void 0)},t.arrayReduce=n,t.arraySum=i,t.arrayUnique=function(e){const t=[];return s(e,e=>{-1===t.indexOf(e)&&t.push(e)}),t},t.extendArray=function(e,t){const r=t.length;let n=0;for(;n<r;)e.push(t[n]),n+=1},t.getDifferenceOfArrays=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const[n,...i]=[...t];let o=n;return s(i,e=>{o=o.filter(t=>!e.includes(t))}),o},t.getIntersectionOfArrays=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const[n,...i]=[...t];let o=n;return s(i,e=>{o=o.filter(t=>e.includes(t))}),o},t.getUnionOfArrays=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const[n,...i]=[...t],o=new Set(n);return s(i,e=>{s(e,e=>{o.has(e)||o.add(e)})}),Array.from(o)},t.pivot=function(e){const t=[];if(!e||0===e.length||!e[0]||0===e[0].length)return t;const r=e.length,n=e[0].length;for(let s=0;s<r;s++)for(let r=0;r<n;r++)t[r]||(t[r]=[]),t[r][s]=e[s][r];return t},t.stringToArray=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";return e.split(t)},t.to2dArray=function(e){const t=e.length;let r=0;for(;r<t;)e[r]=[e[r]],r+=1},r(99356),r(89624),r(14950),r(98831),r(67046),r(38221),r(56050),r(65724),r(34478),r(29810)},40981:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},41238:()=>{},41266:()=>{},41296:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(22063);t.CELL_TYPE=n.CELL_TYPE,t.CheckboxCellType=n.CheckboxCellType},41316:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"editorFastOpen",callback(e,t){const{highlight:r}=e.getSelectedRangeActive();r.isHeader()||e._getEditorManager().openEditor(null,t,!0)}}},41462:(e,t,r)=>{"use strict";var n=r(31520).has;e.exports=function(e){return n(e),e}},41736:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(11290);t.EDITOR_TYPE=n.EDITOR_TYPE,t.PasswordEditor=n.PasswordEditor},41757:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy",name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_COPY)},callback(){e.copyCellsOnly()},disabled(){if(0===this.countRows()||0===this.countCols())return!0;const e=this.getSelectedRangeActive();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}};var n=r(15230)},41812:()=>{},41970:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300));t.StretchStrategy=class{constructor(e){(0,s.default)(this,"viewportWidth",void 0),(0,s.default)(this,"overwriteColumnWidthFn",void 0),(0,s.default)(this,"baseWidths",new Map),(0,s.default)(this,"stretchedWidths",new Map),this.overwriteColumnWidthFn=e}prepare(e){let{viewportWidth:t}=e;this.viewportWidth=t,this.baseWidths.clear(),this.stretchedWidths.clear()}setColumnBaseWidth(e,t){this.baseWidths.set(e,t)}calculate(){}getWidths(){return Array.from(this.stretchedWidths)}}},42050:(e,t,r)=>{"use strict";t.__esModule=!0,t.createPaginationFocusController=function(e){let{focusableElements:t}=e;return(0,n.createPaginator)({initialPage:0,size:()=>t().length,onItemSelect:e=>{t()[e].focus()}})};var n=r(43679)},42069:()=>{},42093:()=>{},42210:(e,t)=>{"use strict";t.__esModule=!0;const r=t.CLONE_TOP="top",n=t.CLONE_BOTTOM="bottom",s=t.CLONE_INLINE_START="inline_start",i=t.CLONE_TOP_INLINE_START_CORNER="top_inline_start_corner",o=t.CLONE_BOTTOM_INLINE_START_CORNER="bottom_inline_start_corner";t.CLONE_TYPES=[r,n,s,i,o],t.CLONE_CLASS_NAMES=new Map([[r,`ht_clone_${r}`],[n,`ht_clone_${n}`],[s,`ht_clone_${s} ht_clone_left`],[i,`ht_clone_${i} ht_clone_top_left_corner`],[o,`ht_clone_${o} ht_clone_bottom_left_corner`]])},42277:(e,t,r)=>{"use strict";t.__esModule=!0,t.arrayDiff=function(e,t){const r=[];let n=0,s=0;for(;n<e.length&&s<t.length;n++,s++)e[n]!==t[s]&&r.push({op:"replace",index:s,oldValue:e[n],newValue:t[s]});for(;n<t.length;n++)r.push({op:"insert",index:n,oldValue:void 0,newValue:t[n]});for(;s<e.length;s++)r.push({op:"remove",index:s,oldValue:e[s],newValue:void 0});return r},r(99356)},42326:(e,t,r)=>{"use strict";var n=r(19098),s=r(19451),i=r(66431),o=r(62283).indexOf,a=r(48099),l=n([].push);e.exports=function(e,t){var r,n=i(e),h=0,u=[];for(r in n)!s(a,r)&&s(n,r)&&l(u,r);for(;t.length>h;)s(n,r=t[h++])&&(~o(u,r)||l(u,r));return u}},42328:(e,t,r)=>{"use strict";var n=r(19098),s=r(70792);e.exports=function(e,t,r){try{return n(s(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},42413:(e,t)=>{"use strict";function r(e,t){let{childs:r}=e;if(0!==r.length)return r[0].data[t]}t.__esModule=!0,t.getFirstChildProperty=r,t.isNodeReflectsFirstChildColspan=function(e){return r(e,"origColspan")===e.data.origColspan},t.traverseHiddenNodeColumnIndexes=function(e,t){e.walkDown(e=>{let{data:r,childs:n}=e;if(!r.isHidden&&(t(r.columnIndex),0===n.length))for(let e=1;e<r.colspan;e++)t(r.columnIndex+e)})}},42559:(e,t,r)=>{"use strict";var n=r(15105),s=r(19451),i=r(20637),o=r(14815),a=r(79937),l=r(31622),h=r(17374),u=r(59549),c=r(82497),d=r(92434),g=r(22849),p=r(2382),f=r(33973);e.exports=function(e,t,r,m){var w="stackTraceLimit",E=m?2:1,y=e.split("."),C=y[y.length-1],v=n.apply(null,y);if(v){var S=v.prototype;if(!f&&s(S,"cause")&&delete S.cause,!r)return v;var R=n("Error"),T=t(function(e,t){var r=c(m?t:e,void 0),n=m?new v(e):new v;return void 0!==r&&i(n,"message",r),g(n,T,n.stack,2),this&&o(S,this)&&u(n,this,T),arguments.length>E&&d(n,arguments[E]),n});if(T.prototype=S,"Error"!==C?a?a(T,R):l(T,R,{name:!0}):p&&w in v&&(h(T,v,w),h(T,v,"prepareStackTrace")),l(T,v),!f)try{S.name!==C&&i(S,"name",C),S.constructor=T}catch(e){}return T}}},42623:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:i,name(){const e=this.getSelected();let t=0;if(e)if(e.length>1)t=1;else{const[r,,n]=e[0];r-n!==0&&(t=1)}return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_REMOVE_ROW,t)},callback(){this.alter("remove_row",(0,n.transformSelectionToRowDistance)(this),1,"ContextMenu.removeRow")},disabled(){const e=this.getSelectedRangeActive();if(!e)return!0;if(e.isSingleHeader()&&e.highlight.row<0)return!0;const t=this.countRows();return this.selection.isSelectedByCorner()?0===t:this.selection.isSelectedByColumnHeader()||0===t},hidden(){return!this.getSettings().allowRemoveRow}}};var n=r(3442),s=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230));const i=t.KEY="remove_row"},42660:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(34478),r(31143);var s=n(r(24300)),i=r(6083),o=r(99242),a=n(r(45861)),l=n(r(211)),h=r(84786),u=n(r(96498)),c=n(r(97938)),d=r(82175),g=r(13618);t.default=class{constructor(e,t,r,n,o){(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=r,this.isMaster="master"===o,this.name=o,this.dataAccessObject=e,this.facadeGetter=t,this.wtSettings=n,this.instance=this.dataAccessObject.wot,this.wot=this.dataAccessObject.wot,this.TABLE=r.rootTable,(0,i.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 c.default(this.dataAccessObject,this.wtSettings),this.columnUtils=new u.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 r;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,i.hasClass)(t,"wtHolder")||(r=this.domBindings.rootDocument.createElement("div"),r.className="wtSpreader",t&&t.insertBefore(r,e),r.appendChild(e)),r.style.position="relative",this.wtSettings.getSetting("ariaTags")&&(0,i.setAttribute)(r,[(0,g.A11Y_PRESENTATION)()]),r}createHider(e){const t=e.parentNode;let r;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,i.hasClass)(t,"wtHolder")||(r=this.domBindings.rootDocument.createElement("div"),r.className="wtHider",t&&t.insertBefore(r,e),r.appendChild(e)),this.wtSettings.getSetting("ariaTags")&&(0,i.setAttribute)(r,[(0,g.A11Y_PRESENTATION)()]),r}createHolder(e){const t=e.parentNode;let r;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,i.hasClass)(t,"wtHolder")||(r=this.domBindings.rootDocument.createElement("div"),r.style.position="relative",r.className="wtHolder",this.isMaster&&(0,i.setAttribute)(r,[(0,g.A11Y_TABINDEX)(-1)]),t&&t.insertBefore(r,e),this.isMaster&&(r.parentNode.className+="ht_master handsontable",r.parentNode.setAttribute("dir",this.wtSettings.getSettingPure("rtlMode")?"rtl":"ltr"),this.wtSettings.getSetting("ariaTags")&&(0,i.setAttribute)(r.parentNode,[(0,g.A11Y_PRESENTATION)()])),r.appendChild(e)),this.wtSettings.getSetting("ariaTags")&&(0,i.setAttribute)(r,[(0,g.A11Y_PRESENTATION)()]),r}draw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{wtSettings:t}=this,{wtOverlays:r,wtViewport:n}=this.dataAccessObject,s=t.getSetting("totalRows"),o=t.getSetting("totalColumns"),h=t.getSetting("rowHeaders"),u=h.length,c=t.getSetting("columnHeaders"),g=c.length;let p=e;if(this.isMaster&&(r.beforeDraw(),this.holderOffset=(0,i.offset)(this.holder),p=n.createCalculators(p),u&&!t.getSetting("fixedColumnsStart"))){const e=r.inlineStartOverlay.getScrollPosition(),t=this.correctHeaderWidth;this.correctHeaderWidth=0!==e,t!==this.correctHeaderWidth&&(p=!1)}if(p)this.isMaster&&r.refresh(!0);else{this.isMaster?this.tableOffset=(0,i.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,o,u);let p=!0;if(this.isMaster){this.alignOverlaysWithTrimmingContainer();const e={};this.wtSettings.getSetting("beforeDraw",!0,e),p=!0!==e.skipRender}p&&(this.tableRenderer.setHeaderContentRenderers(h,c),(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")||n.createVisibleCalculators(),r.refresh(!1),r.applyToDOM(),this.wtSettings.getSetting("onDraw",!0)):this.is(d.CLONE_BOTTOM)&&this.dataAccessObject.cloneSource.wtOverlays.adjustElementsSize())}let f=!1;return this.isMaster&&(f=r.topOverlay.resetFixedPosition(),r.bottomOverlay.clone&&(f=r.bottomOverlay.resetFixedPosition()||f),f=r.inlineStartOverlay.resetFixedPosition()||f,r.topInlineStartCornerOverlay&&r.topInlineStartCornerOverlay.resetFixedPosition(),r.bottomInlineStartCornerOverlay&&r.bottomInlineStartCornerOverlay.clone&&r.bottomInlineStartCornerOverlay.resetFixedPosition()),f?(r.refreshAll(),r.adjustElementsSize()):this.dataAccessObject.selectionManager.setActiveOverlay(this.facadeGetter()).render(p),this.isMaster&&r.afterDraw(),this.dataAccessObject.drawn=!0,this}markIfOversizedColumnHeader(e){const t=this.columnFilter.renderedToSource(e);let r=this.wtSettings.getSetting("columnHeaders").length;const n=this.wtSettings.getSetting("stylesHandler").getDefaultRowHeight();let s,o,a;const l=this.wtSettings.getSetting("columnHeaderHeight")||[];for(;r;)r-=1,s=this.getColumnHeaderHeight(r),o=this.getColumnHeader(t,r),o&&(a=(0,i.innerHeight)(o),(!s&&n<a||s<a)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[r]=a),Array.isArray(l)?null!==l[r]&&void 0!==l[r]&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[r]=l[r]):isNaN(l)||(this.dataAccessObject.wtViewport.oversizedColumnHeaders[r]=l),this.dataAccessObject.wtViewport.oversizedColumnHeaders[r]<(l[r]||l)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[r]=l[r]||l))}adjustColumnHeaderHeights(){const{wtSettings:e}=this,t=this.THEAD.childNodes,r=this.dataAccessObject.wtViewport.oversizedColumnHeaders;for(let n=0,s=e.getSetting("columnHeaders").length;n<s;n++)if(r[n]){if(!t[n]||0===t[n].childNodes.length)return;t[n].childNodes[0].style.height=`${r[n]}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 r=0;r<e;r++){const e=this.rowFilter.renderedToSource(r);t.oversizedRows&&t.oversizedRows[e]&&(t.oversizedRows[e]=void 0)}}}getCell(e){let t=e.row,r=e.col;const n=this.wtSettings.getSetting("onModifyGetCellCoords",t,r,!this.isMaster,"render");if(n&&Array.isArray(n)&&([t,r]=n),this.isRowBeforeRenderedRows(t))return-1;if(this.isRowAfterRenderedRows(t))return-2;if(this.isColumnBeforeRenderedColumns(r))return-3;if(this.isColumnAfterRenderedColumns(r))return-4;const s=this.getRow(t);if(!s&&t>=0)throw new Error("TR was expected to be rendered but is not");const i=s.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(r)];if(!i&&r>=0)throw new Error("TD or TH was expected to be rendered but is not");return i}getRow(e){let t=null,r=null;var n,s;e<0?(t=null===(n=this.rowFilter)||void 0===n?void 0:n.sourceRowToVisibleColHeadedRow(e),r=this.THEAD):(t=null===(s=this.rowFilter)||void 0===s?void 0:s.sourceToRendered(e),r=this.TBODY);return void 0!==t&&void 0!==r&&(!(r.childNodes.length<t+1)&&r.childNodes[t])}getColumnHeader(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const r=this.THEAD.childNodes[t];return null==r?void 0:r.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e)]}getColumnHeaders(e){const t=[],r=this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e);return this.THEAD.childNodes.forEach(e=>{const n=e.childNodes[r];n&&t.push(n)}),t}getRowHeader(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(t>=this.wtSettings.getSetting("rowHeaders").length)return;const r=this.rowFilter.sourceToRendered(e),n=r<0?this.rowFilter.sourceRowToVisibleColHeadedRow(e):r,s=(r<0?this.THEAD:this.TBODY).childNodes[n];return null==s?void 0:s.childNodes[t]}getRowHeaders(e){const t=[],r=this.wtSettings.getSetting("rowHeaders").length;for(let n=0;n<r;n++){const r=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)],s=null==r?void 0:r.childNodes[n];s&&t.push(s)}return t}getCoords(e){let t=e;if("TD"!==t.nodeName&&"TH"!==t.nodeName&&(t=(0,i.closest)(t,["TD","TH"])),null===t)return null;const r=t.parentNode;if(!r)return null;const n=r.parentNode;let s=(0,i.index)(r),o=t.cellIndex;if((0,i.overlayContainsElement)(d.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,i.overlayContainsElement)(d.CLONE_TOP,t,this.wtRootElement))"THEAD"===n.nodeName&&(s-=n.childNodes.length);else if((0,i.overlayContainsElement)(d.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)||(0,i.overlayContainsElement)(d.CLONE_BOTTOM,t,this.wtRootElement)){s=this.wtSettings.getSetting("totalRows")-n.childNodes.length+s}else n===this.THEAD?s=this.rowFilter.visibleColHeadedRowToSourceRow(s):this.rowFilter&&(s=this.rowFilter.renderedToSource(s));(0,i.overlayContainsElement)(d.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,i.overlayContainsElement)(d.CLONE_INLINE_START,t,this.wtRootElement)||(0,i.overlayContainsElement)(d.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)?o=this.columnFilter.offsettedTH(o):this.columnFilter&&(o=this.columnFilter.visibleRowHeadedColumnToSourceColumn(o));const a=this.wtSettings.getSetting("onModifyGetCoordsElement",s,o);return a&&Array.isArray(a)&&([s,o]=a),this.wot.createCellCoords(s,o)}markOversizedRows(){if(this.wtSettings.getSetting("externalRowCalculator"))return;let e=this.TBODY.childNodes.length;const t=this.wtSettings.getSetting("stylesHandler"),r=e*t.getDefaultRowHeight(),n=(0,i.innerHeight)(this.TBODY)-1,s=t.areCellsBorderBox(),o=s?i.outerHeight:i.innerHeight,a=s?0:1,l=s?1:0;let h,u,c,d,g;if(r!==n||this.wtSettings.getSetting("fixedRowsBottom"))for(;e;){e-=1,c=this.rowFilter.renderedToSource(e),h=this.getRowHeight(c),d=this.getTrForRow(c),g=d.querySelector("th");const r=0===c?l:0;u=g?o(g):o(d)-a,(!h&&t.getDefaultRowHeight()<u-r||h<u)&&(s||(u+=1),this.dataAccessObject.wtViewport.oversizedRows[c]=u)}}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,i.outerWidth)(this.TABLE)}getHeight(){return(0,i.outerHeight)(this.TABLE)}getTotalWidth(){const e=(0,i.outerWidth)(this.hider);return 0!==e?e:this.getWidth()}getTotalHeight(){const e=(0,i.outerHeight)(this.hider);return 0!==e?e:this.getHeight()}isVisible(){return(0,i.isVisible)(this.TABLE)}_modifyRowHeaderWidth(e){let t=(0,o.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}}},42666:()=>{},42685:(e,t,r)=>{"use strict";t.__esModule=!0,t.html=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];const s=document.createElement("template");s.innerHTML=e.reduce((e,t,n)=>{var s;return e+t+(null!==(s=r[n])&&void 0!==s?s:"")},"");const i=s.content.cloneNode(!0),o={};return i.querySelectorAll("[data-ref]").forEach(e=>{const t=e.getAttribute("data-ref");e.removeAttribute("data-ref"),o[t]=e}),{fragment:i,refs:o}},t.toSingleLine=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),s=1;s<t;s++)r[s-1]=arguments[s];return(0,n.arrayReduce)(e,(e,t,n)=>e+t.replace(/\r?\n\s*/g,"")+(r[n]?r[n]:""),"").trim()},r(34478),r(31143),r(33098);var n=r(40785)},42981:()=>{},43008:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(74492);t.RENDERER_TYPE=n.RENDERER_TYPE,t.passwordRenderer=n.passwordRenderer},43290:(e,t,r)=>{"use strict";var n=r(60606),s=r(19098);e.exports=function(e){if("Function"===n(e))return s(e)}},43447:(e,t,r)=>{"use strict";t.__esModule=!0,t._dataToHTML=function(e){const t=e.length,r=["<table>"];for(let s=0;s<t;s+=1){const i=e[s],o=i.length,a=[];0===s&&r.push("<tbody>");for(let e=0;e<o;e+=1){const t=i[e],r=(0,n.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>${r}</td>`)}r.push("<tr>",...a,"</tr>"),s+1===t&&r.push("</tbody>")}return r.push("</table>"),r.join("")},t.htmlToGridSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;const r={},n=t.createDocumentFragment(),o=t.createElement("div");n.appendChild(o);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>`});o.insertAdjacentHTML("afterbegin",`${e}`),a=o.querySelector("table")}if(!a||!function(e){return"TABLE"===(e&&e.nodeName||"")}(a))return;const l=o.querySelector('meta[name$="enerator"]'),h=null!==a.querySelector("tbody th"),u=a.querySelector("tr"),c=u?Array.from(u.cells).reduce((e,t)=>e+t.colSpan,0)-(h?1:0):0,d=a.tFoot&&Array.from(a.tFoot.rows)||[],g=[];let p=!1,f=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});f=e.length,p=f>0,f>1?r.nestedHeaders=Array.from(e).reduce((e,t)=>{const r=Array.from(t.cells).reduce((e,t,r)=>{if(h&&0===r)return e;const{colSpan:n,innerHTML:s}=t,i=n>1?{label:s,colspan:n}:s;return e.push(i),e},[]);return e.push(r),e},[]):p&&(r.colHeaders=Array.from(e[0].children).reduce((e,t,r)=>(h&&0===r||e.push(t.innerHTML),e),[]))}g.length&&(r.fixedRowsTop=g.length);d.length&&(r.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 E=new Array(m);for(let e=0;e<m;e++)E[e]=new Array(c);const y=[],C=[];for(let e=0;e<m;e++){const t=w[e],r=Array.from(t.cells),n=r.length;for(let t=0;t<n;t++){const n=r[t],{nodeName:o,innerHTML:a,rowSpan:h,colSpan:u}=n,c=E[e].findIndex(e=>void 0===e);if("TD"===o){if(h>1||u>1){for(let t=e;t<e+h;t++)if(t<m)for(let e=c;e<c+u;e++)E[t][e]=null;const t=n.getAttribute("style");t&&t.includes("mso-ignore:colspan")||y.push({col:c,row:e,rowspan:h,colspan:u})}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"),E[e][c]=t.replace(i,e=>s[e])}else C.push(a)}}y.length&&(r.mergeCells=y);C.length&&(r.rowHeaders=C);E.length&&(r.data=E);return r},t.instanceToHTML=function(e){const t=e.hasColHeaders(),r=e.hasRowHeaders(),s=[t?-1:0,r?-1:0,e.countRows()-1,e.countCols()-1],i=e.getData(...s),o=i.length,a=o>0?i[0].length:0,l=["<table>","</table>"],h=t?["<thead>","</thead>"]:[],u=["<tbody>","</tbody>"],c=r?1:0,d=t?1:0;for(let s=0;s<o;s+=1){const o=t&&0===s,l=[];for(let t=0;t<a;t+=1){const a=!o&&r&&0===t;let h="";if(o)h=`<th>${e.getColHeader(t-c)}</th>`;else if(a)h=`<th>${e.getRowHeader(s-d)}</th>`;else{const r=i[s][t],{hidden:o,rowspan:a,colspan:l}=e.getCellMeta(s-d,t-c);if(!o){const e=[];if(a&&e.push(`rowspan="${a}"`),l&&e.push(`colspan="${l}"`),(0,n.isEmpty)(r))h=`<td ${e.join(" ")}></td>`;else{const t=r.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("");o?h.splice(1,0,g):u.splice(-1,0,g)}return l.splice(1,0,h.join(""),u.join("")),l.join("")},r(99356),r(26648),r(34478),r(29810),r(940),r(33098);var n=r(27727);const s={"&nbsp;":" ","&amp;":"&","&lt;":"<","&gt;":">"},i=new RegExp(Object.keys(s).map(e=>`(${e})`).join("|"),"gi")},43513:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(22350);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.CollapsibleColumns=n.CollapsibleColumns},43522:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300)),i=r(65280),o=r(2520),a=r(52665),l=r(6083),h=r(18675),u=r(71470),c=r(88453);const d=t.PLUGIN_KEY="multiColumnSorting",g=t.PLUGIN_PRIORITY=170,p=d;(0,o.registerRootComparator)(d,h.rootComparator);class f extends i.ColumnSorting{constructor(){super(...arguments),(0,s.default)(this,"pluginKey",d)}static get PLUGIN_KEY(){return d}static get PLUGIN_PRIORITY(){return g}isEnabled(){return!!this.hot.getSettings()[this.pluginKey]}enablePlugin(){super.enablePlugin()}disablePlugin(){super.disablePlugin()}registerShortcuts(){super.registerShortcuts(),this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Shift","Enter"]],callback:()=>{const{highlight:e}=this.hot.getSelectedRangeActive();return-1===e.row&&e.col>=0&&this.sort(this.getNextSortConfig(e.col,i.APPEND_COLUMN_CONFIG_STRATEGY)),!1},runOnlyIf:()=>{var e,t;const r=null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.highlight;return r&&(null===(t=this.hot.getSelectedRangeActive())||void 0===t?void 0:t.isSingle())&&this.hot.selection.isCellVisible(r)&&r.isHeader()},relativeToGroup:c.EDITOR_EDIT_GROUP,position:"before",group:p})}unregisterShortcuts(){super.unregisterShortcuts(),this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(p)}sort(e){super.sort(e)}clearSort(){super.clearSort()}isSorted(){return super.isSorted()}getSortConfig(e){return super.getSortConfig(e)}setSortConfig(e){super.setSortConfig(e)}getNormalizedSortConfigs(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)?e:[e]}updateHeaderClasses(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];super.updateHeaderClasses(e,...r),(0,l.removeClass)(e,(0,u.getClassesToRemove)(e)),!1!==this.enabled&&(0,l.addClass)(e,(0,u.getClassesToAdd)(...r))}onAfterOnCellMouseDown(e,t){!1!==(0,a.wasHeaderClickedProperly)(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)&&(this.hot.getShortcutManager().isCtrlPressed()?(this.hot.deselectCell(),this.hot.selectColumns(t.col),this.sort(this.getNextSortConfig(t.col,i.APPEND_COLUMN_CONFIG_STRATEGY))):this.sort(this.getColumnNextConfig(t.col)))}}t.MultiColumnSorting=f},43655:(e,t,r)=>{"use strict";t.__esModule=!0,t.getDecreasedIndexes=function(e,t){return(0,n.arrayMap)(e,e=>e-t.filter(t=>t<e).length)},t.getIncreasedIndexes=function(e,t){const r=t[0],s=t.length;return(0,n.arrayMap)(e,e=>e>=r?e+s:e)},r(34478),r(29810);var n=r(40785)},43679:(e,t,r)=>{"use strict";t.__esModule=!0,t.createPaginator=function(e){let{initialPage:t=-1,size:r=()=>0,onItemSelect:s=()=>{},onClear:i=()=>{}}=e;const o=new Set;let a=(0,n.clamp)(t,-1,h()-1);function l(e,t){const r=h()-1;if(e<0&&(e=r),e>r&&(e=0),o.has(e))return-1;o.add(e);return!1===s(e,!1)&&(e=l(1===t?++e:--e,t)),e}function h(){return Math.max(r(),0)}return{setCurrentPage:function(e){e>-1&&e<h()&&!1!==s(e,!0)&&(a=e)},setPageCursorAt:function(e){e>-1&&e<h()&&(a=e)},getCurrentPage:function(){return a},toFirstItem:function(){h()>0&&(o.clear(),a=l(0,1))},toLastItem:function(){h()>0&&(o.clear(),a=l(h()-1,-1))},toNextItem:function(){h()>0&&(o.clear(),a=l(++a,1))},toPreviousItem:function(){h()>0&&(o.clear(),a=l(--a,-1))},getSize:h,clear:function(){o.clear(),a=t,i()}}},r(89624),r(14950),r(98831),r(67046),r(38221),r(56050),r(65724);var n=r(4407)},44057:()=>{},44423:(e,t,r)=>{"use strict";var n=r(2382),s=r(60072),i=r(98363),o=r(90501),a=r(66431),l=r(61674);t.f=n&&!s?Object.defineProperties:function(e,t){o(e);for(var r,n=a(t),s=l(t),h=s.length,u=0;h>u;)i.f(e,r=s[u++],n[r]);return e}},44827:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},44874:()=>{},44876:(e,t,r)=>{"use strict";t.__esModule=!0,t.createArrayAssertion=i,t.intersectValues=function(e,t,r,n){const o=[],a=e===t;let l;a||(l=i(t));return e.forEach(e=>{let t=!1;(a||l(e))&&(t=!0);const i={checked:t,value:e,visualValue:s(e,r)};n&&n(i),o.push(i)}),o},t.sortComparison=function(e,t){if("number"==typeof e&&"number"==typeof t)return e-t;return n(e,t)},t.toEmptyString=o,t.toVisualValue=s,t.unifyColumnValues=function(e){return Array.from(new Set(e)).map(e=>o(e)).sort((e,t)=>"number"==typeof e&&"number"==typeof t?e-t:e===t?0:e>t?1:-1)},r(99356),r(89624),r(14950),r(98831),r(67046),r(38221),r(56050),r(65724),r(34478),r(31143),r(940);const n=(0,r(31078).getComparisonFunction)();function s(e,t){let r=e;return""===r&&(r=`(${t})`),r}function i(e){const t=new Set(e);return function(e){return t.has(e)}}function o(e){return null==e?"":e}},44982:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300)),i=r(74216);class o extends i.Selection{constructor(e,t){super(e,null),(0,s.default)(this,"visualCellRange",null),this.visualCellRange=t||null,this.commit()}add(e){return null===this.visualCellRange?this.visualCellRange=this.settings.createCellRange(e):this.visualCellRange.expand(e),this}clear(){return this.visualCellRange=null,super.clear()}trimToVisibleCellsRangeOnly(e){let{from:t,to:r}=e,n=this.getNearestNotHiddenCoords(t,1),s=this.getNearestNotHiddenCoords(r,-1);return null===n||null===s?null:((n.row>s.row||n.col>s.col)&&(n=t,s=r),this.settings.createCellRange(n,n,s))}getNearestNotHiddenCoords(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;const n=this.getNearestNotHiddenIndex(this.settings.rowIndexMapper,e.row,t);if(null===n)return null;const s=this.getNearestNotHiddenIndex(this.settings.columnIndexMapper,e.col,r);return null===s?null:this.settings.createCellCoords(n,s)}getNearestNotHiddenIndex(e,t,r){return t<0?t:e.getNearestNotHiddenIndex(t,r)}commit(){if(null===this.visualCellRange)return this;const e=this.trimToVisibleCellsRangeOnly(this.visualCellRange);return this.cellRange=null===e?null:this.createRenderableCellRange(e.from,e.to),this}syncWith(e){const t=e.from.clone().normalize(),r="N-S"===e.getVerticalDirection()?1:-1,n="W-E"===e.getHorizontalDirection()?1:-1,s=this.settings.visualToRenderableCoords(this.visualCellRange.highlight);let i=null;if(null!==s&&null!==s.col&&null!==s.row||(i=this.getNearestNotHiddenCoords(t,r,n)),null!==i&&e.overlaps(i)){const t=e.highlight.clone();if(t.row>=0&&(t.row=i.row),t.col>=0&&(t.col=i.col),null===this.cellRange){const e=this.settings.visualToRenderableCoords(t);this.cellRange=this.settings.createCellRange(e)}e.setHighlight(t)}return"focus"===this.settings.selectionType&&null!==s&&null===i&&e.setHighlight(this.visualCellRange.highlight),this}getCorners(){const{from:e,to:t}=this.cellRange;return[Math.min(e.row,t.row),Math.min(e.col,t.col),Math.max(e.row,t.row),Math.max(e.col,t.col)]}getVisualCorners(){const e=this.settings.renderableToVisualCoords(this.cellRange.getTopStartCorner()),t=this.settings.renderableToVisualCoords(this.cellRange.getBottomEndCorner());return[e.row,e.col,t.row,t.col]}createRenderableCellRange(e,t){const r=this.settings.visualToRenderableCoords(e),n=this.settings.visualToRenderableCoords(t);return null===r.row||null===r.col||null===n.row||null===n.col?null:this.settings.createCellRange(r,r,n)}}t.default=o},45320:()=>{},45504:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionDownByViewportHeight",callback(e){const{selection:t}=e,{navigableHeaders:r}=e.getSettings(),n=r?e.countColHeaders():0,{row:s}=e.getSelectedRangeActive().highlight;let i=e.countVisibleRows()+n;i=0===i?1:i,s===e.countRows()-1?i=1:s+i>e.countRows()&&(i=e.countRows()-s-1),t.markSource("keyboard"),t.transformStart(i,0),t.markEndSource(),e.getSelectedRangeActive().highlight.row<0&&e.scrollViewportTo({row:0})}}},45614:(e,t,r)=>{"use strict";t.__esModule=!0,r(34478),r(29810);var n=r(50057);const s=t.EDITOR_TYPE="dropdown";class i extends n.AutocompleteEditor{static get EDITOR_TYPE(){return s}prepare(e,t,r,n,s,i){i.filter=!1,i.strict=!0,super.prepare(e,t,r,n,s,i)}}t.DropdownEditor=i},45861:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300));t.default=class{constructor(e,t,r){(0,s.default)(this,"offset",void 0),(0,s.default)(this,"total",void 0),(0,s.default)(this,"countTH",void 0),this.offset=e,this.total=t,this.countTH=r}offsetted(e){return e+this.offset}unOffsetted(e){return e-this.offset}renderedToSource(e){return this.offsetted(e)}sourceToRendered(e){return this.unOffsetted(e)}offsettedTH(e){return e-this.countTH}unOffsettedTH(e){return e+this.countTH}visibleRowHeadedColumnToSourceColumn(e){return this.renderedToSource(this.offsettedTH(e))}sourceColumnToVisibleRowHeadedColumn(e){return this.unOffsettedTH(this.sourceToRendered(e))}}},46052:(e,t,r)=>{"use strict";t.__esModule=!0,r(52490);var n=r(6083),s=r(99242),i=r(31078),o=r(55924),a=r(27727);function l(e,t,r){(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,r)}function h(e,t){return e.get(c(e,t))}function u(e,t,r){return e.set(c(e,t),r),r}function c(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var d=new WeakMap,g=new WeakMap,p=new WeakMap,f=new WeakMap,m=new WeakMap,w=new WeakMap,E=new WeakMap,y=new WeakMap,C=new WeakMap,v=new WeakMap;t.default=class{constructor(e,t,r,n,s,i){let o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;l(this,d,void 0),l(this,g,void 0),l(this,p,void 0),l(this,f,void 0),l(this,m,void 0),l(this,w,void 0),l(this,E,void 0),l(this,y,void 0),l(this,C,[null,null]),l(this,v,[null,null]),u(d,this,r),u(g,this,t),u(p,this,s),u(f,this,i),u(m,this,o),u(w,this,n),u(E,this,e),this.registerEvents()}registerEvents(){h(w,this).addEventListener(h(p,this).holder,"contextmenu",e=>this.onContextMenu(e)),h(w,this).addEventListener(h(p,this).TABLE,"mouseover",e=>this.onMouseOver(e)),h(w,this).addEventListener(h(p,this).TABLE,"mouseout",e=>this.onMouseOut(e));const e=()=>{h(w,this).addEventListener(h(p,this).holder,"touchstart",e=>this.onTouchStart(e)),h(w,this).addEventListener(h(p,this).holder,"touchend",e=>this.onTouchEnd(e)),this.momentumScrolling||(this.momentumScrolling={}),h(w,this).addEventListener(h(p,this).holder,"scroll",()=>{clearTimeout(this.momentumScrolling._timeout),this.momentumScrolling.ongoing||h(d,this).getSetting("onBeforeTouchScroll"),this.momentumScrolling.ongoing=!0,this.momentumScrolling._timeout=setTimeout(()=>{this.touchApplied||(this.momentumScrolling.ongoing=!1,h(d,this).getSetting("onAfterMomentumScroll"))},200)})},t=()=>{h(w,this).addEventListener(h(p,this).holder,"mouseup",e=>this.onMouseUp(e)),h(w,this).addEventListener(h(p,this).holder,"mousedown",e=>this.onMouseDown(e))};(0,o.isMobileBrowser)()?e():((0,i.isTouchSupported)()&&e(),t())}selectedCellWasTouched(e){const t=this.parentCell(e).coords;if(h(y,this)&&t){const[e,r]=[t.row,h(y,this).from.row],[n,s]=[t.col,h(y,this).from.col];return e===r&&n===s}return!1}parentCell(e){const t={},r=h(p,this).TABLE,s=(0,n.closestDown)(e,["TD","TH"],r);return s?(t.coords=h(p,this).getCoords(s),t.TD=s):(0,n.hasClass)(e,"wtBorder")&&(0,n.hasClass)(e,"current")?(t.coords=h(f,this).getFocusSelection().cellRange.highlight,t.TD=h(p,this).getCell(t.coords)):(0,n.hasClass)(e,"wtBorder")&&(0,n.hasClass)(e,"area")&&h(f,this).getAreaSelection().cellRange&&(t.coords=h(f,this).getAreaSelection().cellRange.to,t.TD=h(p,this).getCell(t.coords)),t}onMouseDown(e){const t=h(g,this).rootDocument.activeElement,r=(0,s.partial)(n.getParent,e.target),i=e.target;if(!["TD","TH"].includes(t.nodeName)&&(i===t||r(0)===t||r(1)===t))return;const o=this.parentCell(i);(0,n.hasClass)(i,"corner")?h(d,this).getSetting("onCellCornerMouseDown",e,i):o.TD&&h(d,this).has("onCellMouseDown")&&this.callListener("onCellMouseDown",e,o.coords,o.TD),(0===e.button||this.touchApplied)&&o.TD&&(h(v,this)[0]=o.TD,clearTimeout(h(C,this)[0]),h(C,this)[0]=setTimeout(()=>{h(v,this)[0]=null},1e3))}onContextMenu(e){if(h(d,this).has("onCellContextMenu")){const t=this.parentCell(e.target);t.TD&&this.callListener("onCellContextMenu",e,t.coords,t.TD)}}onMouseOver(e){if(!h(d,this).has("onCellMouseOver"))return;const t=h(p,this).TABLE,r=(0,n.closestDown)(e.target,["TD","TH"],t),s=h(m,this)||this;r&&r!==s.lastMouseOver&&(0,n.isChildOf)(r,t)&&(s.lastMouseOver=r,this.callListener("onCellMouseOver",e,h(p,this).getCoords(r),r))}onMouseOut(e){if(!h(d,this).has("onCellMouseOut"))return;const t=h(p,this).TABLE,r=(0,n.closestDown)(e.target,["TD","TH"],t),s=(0,n.closestDown)(e.relatedTarget,["TD","TH"],t),i=h(m,this)||this;r&&r!==s&&(0,n.isChildOf)(r,t)&&(this.callListener("onCellMouseOut",e,h(p,this).getCoords(r),r),null===s&&(i.lastMouseOver=null))}onMouseUp(e){const t=this.parentCell(e.target);t.TD&&h(d,this).has("onCellMouseUp")&&this.callListener("onCellMouseUp",e,t.coords,t.TD),(0===e.button||this.touchApplied)&&(t.TD===h(v,this)[0]&&t.TD===h(v,this)[1]?((0,n.hasClass)(e.target,"corner")?this.callListener("onCellCornerDblClick",e,t.coords,t.TD):this.callListener("onCellDblClick",e,t.coords,t.TD),h(v,this)[0]=null,h(v,this)[1]=null):t.TD===h(v,this)[0]&&(h(v,this)[1]=t.TD,clearTimeout(h(C,this)[1]),h(C,this)[1]=setTimeout(()=>{h(v,this)[1]=null},500)))}onTouchStart(e){u(y,this,h(f,this).getFocusSelection().cellRange),this.touchApplied=!0,this.onMouseDown(e)}onTouchEnd(e){var t;const r=e.target,n=null===(t=this.parentCell(r))||void 0===t?void 0:t.coords,s=(0,a.isDefined)(n)&&n.row>=0&&n.col>=0;if(e.cancelable&&s&&h(d,this).getSetting("isDataViewInstance")){const t=["A","BUTTON","INPUT"];(0,o.isIOS)()&&((0,o.isChromeWebKit)()||(0,o.isFirefoxWebKit)())&&this.selectedCellWasTouched(r)&&!t.includes(r.tagName)?e.preventDefault():this.selectedCellWasTouched(r)||e.preventDefault()}this.onMouseUp(e),this.touchApplied=!1}callListener(e,t,r,n){const s=h(d,this).getSettingPure(e);s&&s(t,r,n,h(E,this).call(this))}destroy(){clearTimeout(h(C,this)[0]),clearTimeout(h(C,this)[1]),h(w,this).destroy()}}},46258:()=>{},46334:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490);var s=n(r(24300)),i=r(53383),o=r(17715),a=r(40785),l=r(21389),h=r(97062),u=r(17710),c=r(37428),d=r(57011),g=r(6083),p=r(70095);function f(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function m(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const w=t.PLUGIN_KEY="contextMenu",E=t.PLUGIN_PRIORITY=70,y=w;o.Hooks.getSingleton().register("afterContextMenuDefaultOptions"),o.Hooks.getSingleton().register("beforeContextMenuShow"),o.Hooks.getSingleton().register("afterContextMenuShow"),o.Hooks.getSingleton().register("afterContextMenuHide"),o.Hooks.getSingleton().register("afterContextMenuExecute");var C=new WeakSet;class v extends i.BasePlugin{constructor(){super(...arguments),f(this,C),(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 E}static get PLUGIN_DEPS(){return["plugin:AutoColumnSize"]}static get DEFAULT_ITEMS(){return[p.ROW_ABOVE,p.ROW_BELOW,p.SEPARATOR,p.COLUMN_LEFT,p.COLUMN_RIGHT,p.SEPARATOR,p.REMOVE_ROW,p.REMOVE_COLUMN,p.SEPARATOR,p.UNDO,p.REDO,p.SEPARATOR,p.READ_ONLY,p.SEPARATOR,p.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 c.Menu(this.hot,{className:"htContextMenu",keepInViewport:!0,container:t.uiContainer||this.hot.rootPortalElement}),this.menu.addLocalHook("beforeOpen",()=>m(C,this,R).call(this)),this.menu.addLocalHook("afterOpen",()=>m(C,this,T).call(this)),this.menu.addLocalHook("afterClose",()=>m(C,this,N).call(this)),this.menu.addLocalHook("executeCommand",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.executeCommand.call(e,...r)}),this.addHook("afterOnCellContextMenu",e=>m(C,this,S).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(),r=(0,d.getDocumentOffsetByElement)(this.menu.container,this.hot.rootDocument);this.open({left:t.left+r.left,top:t.top+r.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:y})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(y)}open(e){var t;let r=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)(r,(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,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.commandExecutor.execute(e,...r)}prepareMenuItems(){this.itemsFactory=new u.ItemsFactory(this.hot,v.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 r=this.itemsFactory.getItems(e);this.hot.runHooks("beforeContextMenuSetItems",r),this.menu.setMenuItems(r),(0,a.arrayEach)(r,e=>this.commandExecutor.registerCommand(e.key,e))}destroy(){this.close(),this.menu&&this.menu.destroy(),super.destroy()}}function S(e){const t=this.hot.getSettings(),r=t.rowHeaders,n=t.colHeaders;const s=e.target;if(this.close(),(0,g.hasClass)(s,"handsontableInput"))return;if(e.preventDefault(),e.stopPropagation(),!r&&!n&&!(function(e){return"TD"===e.nodeName||"TD"===e.parentNode.nodeName}(s)||(0,g.hasClass)(s,"current")&&(0,g.hasClass)(s,"wtBorder")))return;const i=(0,d.getDocumentOffsetByElement)(this.menu.container,this.hot.rootDocument);this.open({top:e.clientY+i.top,left:e.clientX+i.left})}function R(){this.hot.runHooks("beforeContextMenuShow",this)}function T(){this.hot.runHooks("afterContextMenuShow",this)}function N(){this.hot.listen(),this.hot.runHooks("afterContextMenuHide",this)}t.ContextMenu=v,v.SEPARATOR={name:p.SEPARATOR}},46367:(e,t,r)=>{"use strict";var n=r(19098),s=r(33266),i=r(44827),o=r(60606),a=r(84677),l=n([].push);e.exports=function(e){if(i(e))return e;if(s(e)){for(var t=e.length,r=[],n=0;n<t;n++){var h=e[n];"string"==typeof h?l(r,h):"number"!=typeof h&&"Number"!==o(h)&&"String"!==o(h)||l(r,a(h))}var u=r.length,c=!0;return function(e,t){if(c)return c=!1,t;if(s(this))return t;for(var n=0;n<u;n++)if(r[n]===e)return t}}}},46427:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.getListenersCounter=function(){return o},r(99356);var s=n(r(24300)),i=r(31075);let o=0;t.default=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,s.default)(this,"context",void 0),this.context=e||this,this.context.eventListeners||(this.context.eventListeners=[])}addEventListener(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];function s(e){r.call(this,function(e){const t=e.stopImmediatePropagation;return e.stopImmediatePropagation=function(){t.apply(this),(0,i.stopImmediatePropagation)(this)},e}(e))}return this.context.eventListeners.push({element:e,event:t,callback:r,callbackProxy:s,options:n,eventManager:this}),e.addEventListener(t,s,n),o+=1,()=>{this.removeEventListener(e,t,r)}}removeEventListener(e,t,r){let n,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=this.context.eventListeners.length;for(;i;)if(i-=1,n=this.context.eventListeners[i],n.event===t&&n.element===e){if(r&&r!==n.callback)continue;if(s&&n.eventManager!==this)continue;this.context.eventListeners.splice(i,1),n.element.removeEventListener(n.event,n.callbackProxy,n.options),o-=1}}clearEvents(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.context)return;let t=this.context.eventListeners.length;for(;t;){t-=1;const r=this.context.eventListeners[t];e&&r.eventManager!==this||(this.context.eventListeners.splice(t,1),r.element.removeEventListener(r.event,r.callbackProxy,r.options),o-=1)}}clear(){this.clearEvents()}destroy(){this.clearEvents(),this.context=null}destroyWithOwnEventsOnly(){this.clearEvents(!0),this.context=null}fireEvent(e,t){let r=e.document,n=e;r||(r=e.ownerDocument?e.ownerDocument:e,n=r.defaultView);const s={bubbles:!0,cancelable:"mousemove"!==t,view:n,detail:0,screenX:0,screenY:0,clientX:1,clientY:1,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:void 0};let i;r.createEvent?(i=r.createEvent("MouseEvents"),i.initMouseEvent(t,s.bubbles,s.cancelable,s.view,s.detail,s.screenX,s.screenY,s.clientX,s.clientY,s.ctrlKey,s.altKey,s.shiftKey,s.metaKey,s.button,s.relatedTarget||r.body.parentNode)):i=r.createEventObject(),e.dispatchEvent?e.dispatchEvent(i):e.fireEvent(`on${t}`,i)}}},46539:()=>{},46830:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300)),i=r(4407),o=r(82887);const a="px";t.default=class{constructor(e){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"_element",null),(0,s.default)(this,"state",0),(0,s.default)(this,"inlineProperty",void 0),this.hot=e,this.inlineProperty=e.isRtl()?"right":"left"}appendTo(e){e.appendChild(this._element),this.state=2}build(){0===this.state&&(this._element=this.hot.rootDocument.createElement("div"),this.state=1)}destroy(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=0}isAppended(){return 2===this.state}isBuilt(){return this.state>=1}setPosition(e,t){(0,i.isNumeric)(e)&&(this._element.style.top=e+a),(0,i.isNumeric)(t)&&(this._element.style[this.inlineProperty]=t+a)}getPosition(){const e=this._element.style;return{top:e.top?parseInt(e.top,10):0,start:e[this.inlineProperty]?parseInt(e[this.inlineProperty],10):0}}setSize(e,t){(0,i.isNumeric)(e)&&(this._element.style.width=e+a),(0,i.isNumeric)(t)&&(this._element.style.height=t+a)}getSize(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}}setOffset(e,t){(0,i.isNumeric)(e)&&(this._element.style.marginTop=e+a),(0,i.isNumeric)(t)&&(this._element.style[`margin${(0,o.toUpperCaseFirst)(this.inlineProperty)}`]=t+a)}getOffset(){const e=this._element.style,t=`margin${(0,o.toUpperCaseFirst)(this.inlineProperty)}`;return{top:e.marginTop?parseInt(e.marginTop,10):0,start:e[t]?parseInt(e[t],10):0}}}},46963:(e,t)=>{"use strict";t.__esModule=!0,t.announce=function(e){if(!r)return;r.textContent="",setTimeout(()=>{r&&(r.textContent=e)},100)},t.install=function(e){const t=e.ownerDocument;if(!r){r=t.createElement("div"),r.setAttribute("role","status"),r.setAttribute("aria-live","assertive"),r.setAttribute("aria-atomic","true");const n=r.style;n.position="absolute",n.width="1px",n.height="1px",n.margin="-1px",n.overflow="hidden",n.clipPath="rect(0 0 0 0)",n.whiteSpace="nowrap",e.appendChild(r)}n+=1},t.uninstall=function(){if(0===n)return;1===n&&(r.remove(),r=null);n-=1};let r=null,n=0},47057:(e,t,r)=>{"use strict";var n=r(88786),s=r(44827),i=r(60606),o=r(12033)("toStringTag"),a=Object,l="Arguments"===i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?r:l?i(t):"Object"===(n=i(t))&&s(t.callee)?"Arguments":n}},47063:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300)),i=n(r(46052)),o=n(r(80218));class a extends o.default{constructor(e,t,r){super(e,t),(0,s.default)(this,"cloneSource",void 0),(0,s.default)(this,"cloneOverlay",void 0);const n=this.wtSettings.getSetting("facade",this);this.cloneSource=r.source,this.cloneOverlay=r.overlay,this.wtTable=this.cloneOverlay.createTable(this.getTableDao(),n,this.domBindings,this.wtSettings),this.wtViewport=r.viewport,this.selectionManager=r.selectionManager,this.wtEvent=new i.default(n,this.domBindings,this.wtSettings,this.eventManager,this.wtTable,this.selectionManager,r.event),this.findOriginalHeaders()}}t.default=a},47124:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490);var s=n(r(24300)),i=r(53383),o=r(40785),a=r(21389),l=r(97062),h=r(57011),u=r(6083),c=r(17710),d=r(37428),g=r(17715),p=r(70095),f=r(13618);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,r){return e.set(E(e,t),r),r}function E(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}g.Hooks.getSingleton().register("afterDropdownMenuDefaultOptions"),g.Hooks.getSingleton().register("beforeDropdownMenuShow"),g.Hooks.getSingleton().register("afterDropdownMenuShow"),g.Hooks.getSingleton().register("afterDropdownMenuHide"),g.Hooks.getSingleton().register("afterDropdownMenuExecute");const y=t.PLUGIN_KEY="dropdownMenu",C=t.PLUGIN_PRIORITY=230,v="changeType",S=y;var R=new WeakMap,T=new WeakSet;class N extends i.BasePlugin{static get PLUGIN_KEY(){return y}static get PLUGIN_PRIORITY(){return C}static get PLUGIN_DEPS(){return["plugin:AutoColumnSize"]}static get DEFAULT_ITEMS(){return[p.COLUMN_LEFT,p.COLUMN_RIGHT,p.SEPARATOR,p.REMOVE_COLUMN,p.SEPARATOR,p.CLEAR_COLUMN,p.SEPARATOR,p.READ_ONLY,p.SEPARATOR,p.ALIGNMENT]}constructor(e){var t,r;super(e),m(t=this,r=T),r.add(t),(0,s.default)(this,"commandExecutor",new l.CommandExecutor(this.hot)),(0,s.default)(this,"itemsFactory",null),(0,s.default)(this,"menu",null),function(e,t,r){m(e,t),t.set(e,r)}(this,R,!1),this.hot.addHook("afterGetColHeader",(e,t)=>E(T,this,b).call(this,e,t))}isEnabled(){return this.hot.getSettings()[y]}enablePlugin(){var e=this;if(this.enabled)return;this.itemsFactory=new c.ItemsFactory(this.hot,N.DEFAULT_ITEMS),this.addHook("beforeOnCellMouseDown",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return E(T,e,L).call(e,...r)}),this.addHook("beforeViewportScrollHorizontally",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return E(T,e,P).call(e,...r)}),this.addHook("beforeDialogShow",()=>this.close());const t=this.hot.getSettings()[y],r={items:this.itemsFactory.getItems(t)};this.registerEvents(),"function"==typeof t.callback&&this.commandExecutor.setCommonCallback(t.callback),this.registerShortcuts(),super.enablePlugin(),this.callOnPluginsReady(()=>{this.hot.runHooks("afterDropdownMenuDefaultOptions",r),this.itemsFactory.setPredefinedItems(r.items);const n=this.itemsFactory.getItems(t);this.menu&&this.menu.destroy(),this.menu=new d.Menu(this.hot,{className:"htDropdownMenu",keepInViewport:!0,container:t.uiContainer||this.hot.rootPortalElement}),this.hot.runHooks("beforeDropdownMenuSetItems",n),this.menu.setMenuItems(n),this.menu.addLocalHook("beforeOpen",()=>E(T,this,M).call(this)),this.menu.addLocalHook("afterOpen",()=>E(T,this,I).call(this)),this.menu.addLocalHook("afterSubmenuOpen",e=>E(T,this,O).call(this,e)),this.menu.addLocalHook("afterClose",()=>E(T,this,x).call(this)),this.menu.addLocalHook("executeCommand",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.executeCommand.call(e,...r)}),(0,o.arrayEach)(n,e=>this.commandExecutor.registerCommand(e.key,e))})}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.close(),this.menu&&this.menu.destroy(),this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){const e=()=>{const{highlight:e}=this.hot.getSelectedRangeActive();if((e.isHeader()&&-1===e.row||e.isCell())&&e.col>=0){this.hot.selectColumns(e.col,e.col,-1);const{from:t}=this.hot.getSelectedRangeActive(),r=(0,h.getDocumentOffsetByElement)(this.menu.container,this.hot.rootDocument),n=this.hot.getCell(-1,t.col,!0).querySelector(`.${v}`),s=n.getBoundingClientRect();this.open({left:s.left+r.left,top:s.top+n.offsetHeight+r.top},{left:s.width,right:0,above:0,below:3}),this.menu.getNavigator().toFirstItem()}};this.hot.getShortcutManager().getContext("grid").addShortcuts([{keys:[["Shift","Alt","ArrowDown"],["Control/Meta","Enter"]],callback:e,runOnlyIf:()=>{var e;const t=null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.highlight;return t&&this.hot.selection.isCellVisible(t)&&t.isHeader()&&!this.menu.isOpened()},captureCtrl:!0,group:S},{keys:[["Shift","Alt","ArrowDown"]],callback:e,runOnlyIf:()=>{var e;const t=null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.highlight;return t&&this.hot.selection.isCellVisible(t)&&t.isCell()&&!this.menu.isOpened()},group:S}])}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(S)}registerEvents(){this.eventManager.addEventListener(this.hot.rootElement,"click",e=>E(T,this,A).call(this,e))}open(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{above:0,below:0,left:0,right:0};null!==(t=this.menu)&&void 0!==t&&t.isOpened()||(this.menu.open(),(0,a.objectEach)(r,(e,t)=>{this.menu.setOffset(t,e)}),this.menu.setPosition(e))}close(){var e;null===(e=this.menu)||void 0===e||e.close()}executeCommand(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.commandExecutor.execute(e,...r)}setListening(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.menu.isOpened()&&(e?this.menu.hotMenu.listen():this.menu.hotMenu.unlisten())}destroy(){this.close(),this.menu&&this.menu.destroy(),super.destroy()}}function _(e){e.getKeyboardShortcutsCtrl().addCustomShortcuts([{keys:[["Control/Meta","A"]],callback:()=>!1}])}function A(e){if((0,u.hasClass)(e.target,v)){const t=(0,h.getDocumentOffsetByElement)(this.menu.container,this.hot.rootDocument),r=e.target.getBoundingClientRect();e.stopPropagation(),w(R,this,!1),this.open({left:r.left+t.left,top:r.top+e.target.offsetHeight+t.top},{left:r.width,right:0,above:0,below:3})}}function b(e,t){const r=t.parentNode;if(!r)return;const n=r.parentNode.childNodes,s=Array.prototype.indexOf.call(n,r);if(e<0||s!==n.length-1)return;const i=t.querySelector(`.${v}`);if(this.enabled&&i)return;if(!this.enabled)return void(i&&i.parentNode.removeChild(i));const o=this.hot.rootDocument.createElement("button");o.className=v,o.type="button",o.tabIndex=-1,this.hot.getSettings().ariaTags&&((0,u.setAttribute)(o,[(0,f.A11Y_HIDDEN)(),(0,f.A11Y_LABEL)(" ")]),(0,u.setAttribute)(t,[(0,f.A11Y_HASPOPUP)("menu")])),o.onclick=function(){return!1},t.firstChild.insertBefore(o,t.firstChild.firstChild)}function M(){this.hot.runHooks("beforeDropdownMenuShow",this)}function I(){this.hot.runHooks("afterDropdownMenuShow",this),E(T,this,_).call(this,this.menu)}function O(e){E(T,this,_).call(this,e)}function x(){this.hot.listen(),this.hot.runHooks("afterDropdownMenuHide",this)}function P(e){return r=this,(t=R).get(E(t,r))?null:e;var t,r}function L(e){(0,u.hasClass)(e.target,v)&&w(R,this,!0)}t.DropdownMenu=N,N.SEPARATOR={name:p.SEPARATOR}},47150:e=>{"use strict";e.exports=function(e,t){var r="function"==typeof Iterator&&Iterator.prototype[e];if(r)try{r.call({next:null},t).next()}catch(e){return!0}}},47299:(e,t,r)=>{"use strict";t.__esModule=!0,r(52490);var n=r(21389),s=r(11492);function i(e,t,r){(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,r)}function o(e,t){return e.get(l(e,t))}function a(e,t,r){return e.set(l(e,t),r),r}function l(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,u=new WeakMap;class c extends s.BaseUI{static get DEFAULTS(){return(0,n.clone)({type:"radio",tagName:"input",className:"htUIRadio",label:{}})}constructor(e,t){super(e,(0,n.extend)(c.DEFAULTS,t)),i(this,h,void 0),i(this,u,void 0)}build(){super.build();const e=this.hot.rootDocument.createElement("label");e.textContent=this.translateIfPossible(this.options.label.textContent),e.htmlFor=this.translateIfPossible(this.options.label.htmlFor),a(u,this,e),a(h,this,this._element.firstChild),o(h,this).checked=this.options.checked,this._element.appendChild(e),this.update()}update(){this.isBuilt()&&(o(u,this).textContent=this.translateIfPossible(this.options.label.textContent))}isChecked(){return!!this.isBuilt()&&o(h,this).checked}setChecked(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.isBuilt()&&(o(h,this).checked=e)}focus(){this.isBuilt()&&o(h,this).focus()}}t.RadioInputUI=c},47464:()=>{},47491:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionLeft",callback(e){const{selection:t}=e,{highlight:r}=e.getSelectedRangeActive();t.isSelectedByRowHeader()||t.isSelectedByCorner()||!(r.isCell()||r.isHeader()&&t.isSelectedByColumnHeader())||(t.markSource("keyboard"),t.transformEnd(0,-1*e.getDirectionFactor()),t.markEndSource())}}},47565:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(22546);t.FullyVisibleColumnsCalculationType=n.FullyVisibleColumnsCalculationType;var s=r(93396);t.FullyVisibleRowsCalculationType=s.FullyVisibleRowsCalculationType;var i=r(27600);t.PartiallyVisibleColumnsCalculationType=i.PartiallyVisibleColumnsCalculationType;var o=r(69558);t.PartiallyVisibleRowsCalculationType=o.PartiallyVisibleRowsCalculationType;var a=r(64588);t.RenderedAllColumnsCalculationType=a.RenderedAllColumnsCalculationType;var l=r(73618);t.RenderedAllRowsCalculationType=l.RenderedAllRowsCalculationType;var h=r(72411);t.RenderedColumnsCalculationType=h.RenderedColumnsCalculationType;var u=r(96943);t.RenderedRowsCalculationType=u.RenderedRowsCalculationType;var c=r(32568);t.ViewportColumnsCalculator=c.ViewportColumnsCalculator,t.DEFAULT_COLUMN_WIDTH=c.DEFAULT_WIDTH;var d=r(2686);t.ViewportRowsCalculator=d.ViewportRowsCalculator},47797:()=>{},47833:(e,t,r)=>{"use strict";var n=r(61546);e.exports=function(e,t,r){for(var s in t)n(e,s,t[s],r);return e}},47859:()=>{},47865:(e,t,r)=>{"use strict";var n=r(94266),s=r(15176),i=n.document,o=s(i)&&s(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},47947:(e,t,r)=>{"use strict";t.__esModule=!0,t.triggerNodeModification=function(e,t,r){if(!a.has(e))throw new Error(`The node modifier action ("${e}") does not exist.`);return a.get(e)(t,r)},r(52490);var n=r(55708),s=r(27367),i=r(64765),o=r(86424);const a=new Map([["collapse",n.collapseNode],["expand",s.expandNode],["hide-column",i.hideColumn],["show-column",o.showColumn]])},48099:e=>{"use strict";e.exports={}},48130:(e,t,r)=>{"use strict";t.__esModule=!0,t.condition=a;var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),s=r(27727),i=r(11278);const o=t.CONDITION_NAME="contains";function a(e,t){let[r]=t;return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale).indexOf((0,s.stringify)(r))>=0}(0,i.registerCondition)(o,a,{name:n.FILTERS_CONDITIONS_CONTAINS,inputsCount:1,showOperators:!0})},48136:(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}}},48369:(e,t,r)=>{"use strict";var n=r(77439);e.exports=function(e,t,r){for(var s,i,o=r?e:e.iterator,a=e.next;!(s=n(a,o)).done;)if(void 0!==(i=t(s.value)))return i}},48401:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(10758);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.ManualRowMove=n.ManualRowMove},48894:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(95484);t.command={name:"editorCloseAndSaveByArrowKeys",callback(e,t,r){const s=e._getEditorManager(),i=s.getActiveEditor();i.isInFullEditMode()&&i.state===n.EDITOR_STATE.EDITING||(s.closeEditorAndSaveChanges(),e.getSelected()&&(r.includes("arrowdown")?e.selection.transformStart(1,0):r.includes("arrowup")?e.selection.transformStart(-1,0):r.includes("arrowleft")?e.selection.transformStart(0,-1*e.getDirectionFactor()):r.includes("arrowright")&&e.selection.transformStart(0,e.getDirectionFactor())),t.preventDefault())}}},49463:(e,t,r)=>{"use strict";var n=r(12033),s=r(96858),i=r(98363).f,o=n("unscopables"),a=Array.prototype;void 0===a[o]&&i(a,o,{configurable:!0,value:s(null)}),e.exports=function(e){a[o][e]=!0}},49634:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(8846);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.CopyPaste=n.CopyPaste},49744:()=>{},49819:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},49856:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(11188);t.RENDERER_TYPE=n.RENDERER_TYPE,t.htmlRenderer=n.htmlRenderer},49865:(e,t,r)=>{"use strict";t.__esModule=!0,t.getValueGetterValue=function(e,t){const{instance:r,visualRow:s,visualCol:i,valueGetter:o}=t;if((0,n.isFunction)(o))return o.call(r,e,s,i,t);return e},t.getValueSetterValue=function(e,t){const{instance:r,visualRow:s,visualCol:i,valueSetter:o}=t;if((0,n.isFunction)(o))return o.call(r,e,s,i,t);return e};var n=r(99242)},49887:e=>{"use strict";e.exports=function(e){return null==e}},49890:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(66070);t.RENDERER_TYPE=n.RENDERER_TYPE,t.numericRenderer=n.numericRenderer,t.getRenderedValue=n.getRenderedValue},50056:()=>{},50057:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(14368);t.EDITOR_TYPE=n.EDITOR_TYPE,t.AutocompleteEditor=n.AutocompleteEditor},50113:(e,t,r)=>{"use strict";t.__esModule=!0,t.isContextObject=u,r(52490),r(99356),r(34478),r(29810),r(31143);var n=r(79300),s=r(86951),i=r(27727),o=r(99242),a=r(21389),l=r(42685);const h=Symbol("shortcut-context");function u(e){return(0,a.isObject)(e)&&e.__kindOf===h}t.createContext=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"table";const r=(0,n.createUniqueMap)({errorIdExists:t=>`The "${t}" shortcut is already registered in the "${e}" context.`}),c=function(){let{keys:e,callback:t,group:n,runOnlyIf:a=()=>!0,captureCtrl:h=!1,preventDefault:c=!0,stopPropagation:d=!1,relativeToGroup:g,position:p,forwardToContext:f}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,i.isUndefined)(n))throw new Error("You need to define the shortcut's group.");if(!1===(0,o.isFunction)(t))throw new Error("The shortcut's callback needs to be a function.");if(!1===Array.isArray(e))throw new Error(l.toSingleLine`Pass the shortcut\'s keys as an array of arrays,\x20
261
261
  using the KeyboardEvent.key properties:\x20
262
262
  https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values.`);const m={callback:t,group:n,runOnlyIf:a,captureCtrl:h,preventDefault:c,stopPropagation:d};(0,i.isDefined)(g)&&(m.relativeToGroup=g,m.position=p),u(f)&&(m.forwardToContext=f),e.forEach(e=>{const t=(0,s.normalizeKeys)(e);if(r.hasItem(t)){const e=r.getItem(t);let n=e.findIndex(e=>e.group===g);-1!==n?"before"===p?n-=1:n+=1:n=e.length,e.splice(n,0,m)}else r.addItem(t,[m])})},d=e=>{const t=(0,s.normalizeKeys)(e);r.removeItem(t)};return{__kindOf:h,scope:t,addShortcut:c,addShortcuts:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach(e=>{(0,a.objectEach)(t,(r,n)=>{!1===Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=t[n])}),c(e)})},getShortcuts:e=>{const t=(0,s.normalizeKeys)(e),n=r.getItem(t);return(0,i.isDefined)(n)?n.slice():[]},hasShortcut:e=>{const t=(0,s.normalizeKeys)(e);return r.hasItem(t)},removeShortcutsByKeys:d,removeShortcutsByGroup:e=>{r.getItems().forEach(t=>{let[r,n]=t;const i=n.filter(t=>t.group!==e);0===i.length?d((0,s.getKeysList)(r)):(n.length=0,n.push(...i))})}}}},50182:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(82328),r(89624),r(14950),r(98831),r(67046),r(38221),r(56050),r(65724),r(34478),r(31143),r(940);var s=r(6083),i=r(66123),o=n(r(23624));function a(e,t,r){l(e,t),t.set(e,r)}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(c(e,t))}function u(e,t,r){return e.set(c(e,t),r),r}function c(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var d=new WeakMap,g=new WeakMap,p=new WeakMap,f=new WeakMap,m=new WeakMap,w=new WeakMap,E=new WeakSet;function y(){const e=h(f,this).get(h(d,this)),t=h(d,this).wtSettings.getSetting("onBeforeRemoveCellClassNames");if(Array.isArray(t))for(let r=0;r<t.length;r++)e.add(t[r]);e.forEach(e=>{var t,r;const n=h(d,this).wtTable.TABLE.querySelectorAll(`.${e}`);let i=[];Array.isArray(null===(t=h(g,this).options)||void 0===t?void 0:t.cellAttributes)&&(i=h(g,this).options.cellAttributes.map(e=>e[0])),Array.isArray(null===(r=h(g,this).options)||void 0===r?void 0:r.headerAttributes)&&(i=[...i,...h(g,this).options.headerAttributes.map(e=>e[0])]);for(let t=0,r=n.length;t<r;t++)(0,s.removeClass)(n[t],e),(0,s.removeAttribute)(n[t],i)}),e.clear()}t.SelectionManager=class{constructor(e){var t,r;l(t=this,r=E),r.add(t),a(this,d,void 0),a(this,g,void 0),a(this,p,new i.SelectionScanner),a(this,f,new WeakMap),a(this,m,new WeakSet),a(this,w,new Map),u(g,this,e)}setActiveOverlay(e){return u(d,this,e),h(p,this).setActiveOverlay(h(d,this)),h(f,this).has(h(d,this))||h(f,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 r=new o.default(h(d,this),e.settings);return t.set(h(d,this),r),r}const t=new o.default(h(d,this),e.settings);return h(w,this).set(e,new Map([[h(d,this),t]])),t}getBorderInstances(e){var t,r;return Array.from(null!==(t=null===(r=h(w,this).get(e))||void 0===r?void 0:r.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&&c(E,this,y).call(this);const t=Array.from(h(g,this)),r=new Map,n=new Map;for(let e=0;e<t.length;e++){const s=t[e],{className:i,headerAttributes:o,createLayers:a,selectionType:l}=s.settings;h(m,this).has(s)||(h(m,this).add(s),s.addLocalHook("destroy",()=>this.destroyBorders(s)));const u=this.getBorderInstance(s);if(s.isEmpty()){null==u||u.disappear();continue}if(i){h(p,this).setActiveSelection(s).scan().forEach(e=>{if(r.has(e)){const t=r.get(e);t.has(i)&&!0===a?t.set(i,t.get(i)+1):t.set(i,1)}else r.set(e,new Map([[i,1]]));o&&(n.has(e)||n.set(e,[]),"TH"===e.nodeName&&n.get(e).push(...o))})}const c=s.getCorners();h(d,this).getSetting("onBeforeDrawBorders",c,l),null==u||u.appear(c)}r.forEach((e,t)=>{var r;const n=Array.from(e).map(e=>{let[t,r]=e;return 1===r?t:[t,...Array.from({length:r-1},(e,r)=>`${t}-${r+1}`)]}).flat();n.forEach(e=>h(f,this).get(h(d,this)).add(e)),(0,s.addClass)(t,n),"TD"===t.nodeName&&Array.isArray(null===(r=h(g,this).options)||void 0===r?void 0:r.cellAttributes)&&(0,s.setAttribute)(t,h(g,this).options.cellAttributes)}),Array.from(n.keys()).forEach(e=>{(0,s.setAttribute)(e,[...n.get(e)])})}}},50231:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function e(t,r){if(Array.isArray(t))return t.map(t=>e(t,r));return(0,n.substitute)(t,r)},r(34478),r(940);var n=r(82887)},50287:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(74941);t.valueGetter=n.valueGetter;var s=r(32577);t.valueSetter=s.valueSetter},50380:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(34478),r(29810),r(31143),r(33098);var s=n(r(24300)),i=r(53383),o=r(31078),a=n(r(97539)),l=r(17715),h=r(21389),u=r(4407),c=n(r(38602)),d=r(82887),g=r(74216),p=r(1531);function f(e,t,r){m(e,t),t.set(e,r)}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(y(e,t))}function E(e,t,r){return e.set(y(e,t),r),r}function y(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}l.Hooks.getSingleton().register("modifyAutoColumnSizeSeed");const C=t.PLUGIN_KEY="autoColumnSize",v=t.PLUGIN_PRIORITY=10;var S=new WeakMap,R=new WeakMap,T=new WeakMap,N=new WeakSet;class _ extends i.BasePlugin{static get PLUGIN_KEY(){return C}static get PLUGIN_PRIORITY(){return v}static get SETTING_KEYS(){return!0}static get DEFAULT_SETTINGS(){return{useHeaders:!0,samplingRatio:null,allowSampleDuplicates:!1}}static get CALCULATION_STEP(){return 50}static get SYNC_CALCULATION_LIMIT(){return 50}constructor(e){var t,r;super(e),m(t=this,r=N),r.add(t),(0,s.default)(this,"ghostTable",new a.default(this.hot)),(0,s.default)(this,"samplesGenerator",new c.default((e,t)=>{const r=this.hot.toPhysicalRow(e),n=this.hot.toPhysicalColumn(t);if(this.hot.rowIndexMapper.isHidden(r)||this.hot.columnIndexMapper.isHidden(n))return!1;const s=this.hot.getCellMeta(e,t);let i="";s.spanned||(i=this.hot.getDataAtCell(e,t));let o="";return this.hot.hasHook("modifyAutoColumnSizeSeed")&&(o=this.hot.runHooks("modifyAutoColumnSizeSeed",o,s,i)),{value:i,bundleSeed:o}})),(0,s.default)(this,"inProgress",!1),(0,s.default)(this,"measuredColumns",0),(0,s.default)(this,"columnWidthsMap",new p.PhysicalIndexToValueMap),f(this,S,!1),f(this,R,[]),f(this,T,[]),this.hot.columnIndexMapper.registerMap("autoColumnSize",this.columnWidthsMap),this.addHook("beforeColumnResize",(e,t,r)=>y(N,this,P).call(this,e,t,r))}isEnabled(){return!1!==this.hot.getSettings()[C]&&!this.hot.getSettings().colWidths}enablePlugin(){var e=this;if(this.enabled)return;this.ghostTable.setSetting("useHeaders",this.getSetting("useHeaders")),this.samplesGenerator.setAllowDuplicates(this.getSetting("allowSampleDuplicates"));const t=this.getSetting("samplingRatio");t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),this.addHook("afterLoadData",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return y(N,e,O).call(e,...r)}),this.addHook("beforeChangeRender",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return y(N,e,x).call(e,...r)}),this.addHook("afterFormulasValuesUpdate",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return y(N,e,D).call(e,...r)}),this.addHook("beforeRender",()=>y(N,this,I).call(this)),this.addHook("modifyColWidth",(e,t)=>this.getColumnWidth(t,e)),this.addHook("init",()=>y(N,this,L).call(this)),super.enablePlugin()}updatePlugin(){E(T,this,this.findColumnsWhereHeaderWasChanged()),super.updatePlugin()}disablePlugin(){super.disablePlugin(),this.addHook("beforeColumnResize",(e,t,r)=>y(N,this,P).call(this,e,t,r))}calculateVisibleColumnsWidth(){if(!this.hot.countRows())return;const e=this.getFirstVisibleColumn(),t=this.getLastVisibleColumn();if(-1===e||-1===t)return;const r=this.hot.forceFullRender;this.calculateColumnsWidth({from:e,to:t},void 0,r)}calculateColumnsWidth(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countRows()-1},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n="number"==typeof e?{from:e,to:e}:e,s="number"==typeof t?{from:t,to:t}:t;(0,u.rangeEach)(n.from,n.to,e=>{let t=this.hot.toPhysicalColumn(e);null===t&&(t=e),(r||null===this.columnWidthsMap.getValueAtIndex(t)&&!this.hot._getColWidthFromSettings(t))&&y(N,this,b).call(this,e,s)}),this.ghostTable.columns.length&&(y(N,this,M).call(this),this.measuredColumns=n.to+1,this.ghostTable.clean())}calculateAllColumnsWidth(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=0;const n=this.hot.countCols()-1;let s=null;this.inProgress=!0;const i=()=>{if(!this.hot)return(0,o.cancelAnimationFrame)(s),void(this.inProgress=!1);this.calculateColumnsWidth({from:r,to:Math.min(r+_.CALCULATION_STEP,n)},e,t),r=r+_.CALCULATION_STEP+1,r<n?s=(0,o.requestAnimationFrame)(i):((0,o.cancelAnimationFrame)(s),this.inProgress=!1,this.hot.view.adjustElementsSize())},a=this.getSyncCalculationLimit();a>=0&&(this.calculateColumnsWidth({from:0,to:a},e,t),r=a+1),r<n?i():this.inProgress=!1}recalculateAllColumnsWidth(){this.hot.view.isVisible()&&this.calculateAllColumnsWidth({from:0,to:this.hot.countRows()-1},!0)}getSyncCalculationLimit(){const e=this.hot.getSettings()[C];let t=_.SYNC_CALCULATION_LIMIT;const r=this.hot.countCols()-1;return(0,h.isObject)(e)&&(t=e.syncLimit,(0,d.isPercentValue)(t)?t=(0,u.valueAccordingPercent)(r,t):t>>=0),Math.min(t,r)}getColumnWidth(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=t;return void 0===n&&(n=this.columnWidthsMap.getValueAtIndex(this.hot.toPhysicalColumn(e)),r&&"number"==typeof n&&(n=Math.max(n,g.DEFAULT_COLUMN_WIDTH))),n}getFirstVisibleColumn(){var e;return null!==(e=this.hot.getFirstRenderedVisibleColumn())&&void 0!==e?e:-1}getLastVisibleColumn(){var e;return null!==(e=this.hot.getLastRenderedVisibleColumn())&&void 0!==e?e:-1}findColumnsWhereHeaderWasChanged(){return this.hot.getColHeader().reduce((e,t,r)=>{const n=w(R,this).length;return(n-1<r||w(R,this)[r]!==t)&&e.push(this.hot.toVisualColumn(r)),n-1<r?w(R,this).push(t):w(R,this)[r]=t,e},[])}clearCache(e){Array.isArray(e)?this.hot.batchExecution(()=>{e.forEach(e=>{this.columnWidthsMap.setValueAtIndex(e,null)})},!0):this.columnWidthsMap.clear()}isNeedRecalculate(){return!!this.columnWidthsMap.getValues().slice(0,this.measuredColumns).filter(e=>null===e).length}destroy(){this.ghostTable.clean(),super.destroy()}}function A(e){const t={from:0,to:this.hot.countRows()-1};e.forEach(e=>{const r=this.hot.toPhysicalColumn(e);null!==r&&(this.hot._getColWidthFromSettings(r)||y(N,this,b).call(this,e,t))}),this.ghostTable.columns.length&&(y(N,this,M).call(this),this.ghostTable.clean())}function b(e,t){this.samplesGenerator.generateColumnSamples(e,t).forEach((e,t)=>this.ghostTable.addColumn(t,e))}function M(){this.hot.batchExecution(()=>{this.ghostTable.getWidths((e,t)=>{const r=this.hot.toPhysicalColumn(e);this.columnWidthsMap.setValueAtIndex(r,t)})},!0)}function I(){this.calculateVisibleColumnsWidth(),this.inProgress||(y(N,this,A).call(this,w(T,this)),E(T,this,[]))}function O(e,t){t||this.recalculateAllColumnsWidth()}function x(e){const t=e.reduce((e,t)=>{let[,r]=t;const n=this.hot.propToCol(r);return Number.isInteger(n)&&-1===e.indexOf(n)&&e.push(n),e},[]);w(T,this).push(...t)}function P(e,t,r){let n=e;return r&&(this.calculateColumnsWidth(t,void 0,!0),n=this.getColumnWidth(t,void 0,!1)),n}function L(){E(R,this,this.hot.getColHeader()),this.recalculateAllColumnsWidth(),E(S,this,!0)}function D(e){if(!w(S,this))return;const t=e.reduce((e,t)=>{var r;const n=null===(r=t.address)||void 0===r?void 0:r.col;if(Number.isInteger(n)){const t=this.hot.toVisualColumn(n);-1===e.indexOf(t)&&e.push(t)}return e},[]);w(T,this).push(...t)}t.AutoColumnSize=_},50496:(e,t,r)=>{"use strict";t.__esModule=!0,r(99356);var n=r(21389),s=r(99242);const i={_localHooks:Object.create(null),addLocalHook(e,t){return this._localHooks[e]||(this._localHooks[e]=[]),this._localHooks[e].push(t),this},removeLocalHook(e,t){if(this._localHooks[e]){const r=this._localHooks[e].indexOf(t);r>-1&&this._localHooks[e].splice(r,1)}return this},runLocalHooks(e,t,r,n,i,o,a){if(this._localHooks[e]){const l=this._localHooks[e].length;for(let h=0;h<l;h++)(0,s.fastCall)(this._localHooks[e][h],this,t,r,n,i,o,a)}},clearLocalHooks(){return this._localHooks={},this}};(0,n.defineGetter)(i,"MIXIN_NAME","localHooks",{writable:!1,enumerable:!1});t.default=i},50506:(e,t,r)=>{"use strict";var n=r(72820),s=r(77439),i=r(94178),o=r(70792),a=r(90501),l=r(21177),h=r(99793),u=r(14483)("find",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:u},{find:function(e){a(this);try{o(e)}catch(e){h(this,"throw",e)}if(u)return s(u,this,e);var t=l(this),r=0;return i(t,function(t,n){if(e(t,r++))return n(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},50575:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(69488),s=r(24144);const i=t.CELL_TYPE="handsontable";t.HandsontableCellType={CELL_TYPE:i,editor:n.HandsontableEditor,renderer:s.handsontableRenderer}},50874:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.createHighlight=function(e){let{columnClassName:t,...r}=e;return new i.default({className:t,...r,selectionType:s.HIGHLIGHT_COLUMN_TYPE})};var s=r(74216),i=n(r(44982))},51142:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(89624),r(14950),r(98831),r(67046),r(38221),r(56050),r(65724),r(34478),r(66133),r(940);var s=r(53383),i=r(6083),o=r(4407),a=r(40785),l=r(70095),h=r(17715),u=n(r(14731)),c=n(r(18372)),d=r(1531);function g(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function p(e,t){return e.get(m(e,t))}function f(e,t,r){return e.set(m(e,t),r),r}function m(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}h.Hooks.getSingleton().register("beforeHideRows"),h.Hooks.getSingleton().register("afterHideRows"),h.Hooks.getSingleton().register("beforeUnhideRows"),h.Hooks.getSingleton().register("afterUnhideRows");const w=t.PLUGIN_KEY="hiddenRows",E=t.PLUGIN_PRIORITY=320;var y=new WeakMap,C=new WeakSet;class v extends s.BasePlugin{constructor(){var e,t;super(...arguments),g(e=this,t=C),t.add(e),function(e,t,r){g(e,t),t.set(e,r)}(this,y,null)}static get PLUGIN_KEY(){return w}static get PLUGIN_PRIORITY(){return E}static get DEFAULT_SETTINGS(){return{copyPasteEnabled:!0,indicators:!1,rows:[]}}isEnabled(){return!!this.hot.getSettings()[w]}enablePlugin(){var e=this;this.enabled||(f(y,this,new d.HidingMap),p(y,this).addLocalHook("init",()=>m(C,this,A).call(this)),this.hot.rowIndexMapper.registerMap(this.pluginName,p(y,this)),this.addHook("afterContextMenuDefaultOptions",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return m(C,e,_).call(e,...r)}),this.addHook("afterGetCellMeta",(e,t,r)=>m(C,this,R).call(this,e,t,r)),this.addHook("modifyRowHeight",(e,t)=>m(C,this,S).call(this,e,t)),this.addHook("afterGetRowHeader",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return m(C,e,N).call(e,...r)}),this.addHook("modifyCopyableRange",e=>m(C,this,T).call(this,e)),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){super.disablePlugin(),this.hot.rowIndexMapper.unregisterMap(this.pluginName),this.resetCellsMeta()}showRows(e){const t=this.getHiddenRows(),r=this.isValidConfig(e);let n=t;const s=p(y,this).getValues().slice(),i=e.length>0;if(r&&i){const t=e.map(e=>this.hot.toPhysicalRow(e));(0,a.arrayEach)(t,e=>{s[e]=!1}),n=(0,a.arrayReduce)(s,(e,t,r)=>(t&&e.push(this.hot.toVisualRow(r)),e),[])}!1!==this.hot.runHooks("beforeUnhideRows",t,n,r&&i)&&(r&&i&&p(y,this).setValues(s),this.hot.runHooks("afterUnhideRows",t,n,r&&i,r&&n.length<t.length))}showRow(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.showRows(t)}hideRows(e){const t=this.getHiddenRows(),r=this.isValidConfig(e);let n=t;r&&(n=Array.from(new Set(t.concat(e))));!1!==this.hot.runHooks("beforeHideRows",t,n,r)&&(r&&this.hot.batchExecution(()=>{(0,a.arrayEach)(e,e=>{p(y,this).setValueAtIndex(this.hot.toPhysicalRow(e),!0)})},!0),this.hot.runHooks("afterHideRows",t,n,r,r&&n.length>t.length))}hideRow(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.hideRows(t)}getHiddenRows(){return(0,a.arrayMap)(p(y,this).getHiddenIndexes(),e=>this.hot.toVisualRow(e))}isHidden(e){return p(y,this).getValueAtIndex(this.hot.toPhysicalRow(e))||!1}isValidConfig(e){const t=this.hot.countRows();return!!(Array.isArray(e)&&e.length>0)&&e.every(e=>Number.isInteger(e)&&e>=0&&e<t)}resetCellsMeta(){(0,a.arrayEach)(this.hot.getCellsMeta(),e=>{e.skipRowOnPaste=!1})}destroy(){f(y,this,null),super.destroy()}}function S(e,t){return this.isHidden(t)?0:e}function R(e,t,r){if(!1===this.getSetting("copyPasteEnabled")&&this.isHidden(e)&&(r.skipRowOnPaste=!0),this.isHidden(e-1))r.className=r.className||"",-1===r.className.indexOf("afterHiddenRow")&&(r.className+=" afterHiddenRow");else if(r.className){const e=r.className.split(" ");if(e.length>0){const t=e.indexOf("afterHiddenRow");t>-1&&e.splice(t,1),r.className=e.join(" ")}}}function T(e){if(this.getSetting("copyPasteEnabled"))return e;const t=[],r=(e,r,n,s)=>{t.push({startRow:e,endRow:r,startCol:n,endCol:s})};return(0,a.arrayEach)(e,e=>{let t=!0,n=0;(0,o.rangeEach)(e.startRow,e.endRow,s=>{this.isHidden(s)?(t||r(n,s-1,e.startCol,e.endCol),t=!0):(t&&(n=s),s===e.endRow&&r(n,s,e.startCol,e.endCol),t=!1)})}),t}function N(e,t){if(!this.getSetting("indicators")||e<0)return;const r=[];e>=1&&this.isHidden(e-1)&&r.push("afterHiddenRow"),e<this.hot.countRows()-1&&this.isHidden(e+1)&&r.push("beforeHiddenRow"),(0,i.addClass)(t,r)}function _(e){e.items.push({name:l.SEPARATOR},(0,u.default)(this),(0,c.default)(this))}function A(){const e=this.getSetting("rows");Array.isArray(e)&&this.hideRows(e)}t.HiddenRows=v},51188:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(62346);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.ManualRowResize=n.ManualRowResize},51217:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy_with_column_headers",name(){const e=this.getSelectedRangeActive(),t=e?(0,s.clamp)(e.getWidth()-1,0,1):0;return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS,t)},callback(){e.copyWithColumnHeaders()},disabled(){if(!this.hasColHeaders())return!0;const e=this.getSelectedRangeActive();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}};var n=r(15230),s=r(4407)},51241:(e,t,r)=>{"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:r,renderer:n,validator:l}=t;r&&(0,s.registerEditor)(e,r);n&&(0,i.registerRenderer)(e,n);l&&(0,o.registerValidator)(e,l);a(e,t)},r(52490);var n=r(55585),s=r(69264),i=r(38594),o=r(39705);const{register:a,getItem:l,hasItem:h,getNames:u,getValues:c}=(0,n.staticRegister)("cellTypes");t.getRegisteredCellTypes=c,t.getRegisteredCellTypeNames=u,t.hasCellType=h},51453:(e,t,r)=>{"use strict";t.__esModule=!0,r(52490);var n=r(43655);t.getDecreasedIndexes=n.getDecreasedIndexes,t.getIncreasedIndexes=n.getIncreasedIndexes;var s=r(99544),i=r(85994);const o=new Map([["indexesSequence",{getListWithInsertedItems:s.getListWithInsertedItems,getListWithRemovedItems:s.getListWithRemovedItems}],["physicallyIndexed",{getListWithInsertedItems:i.getListWithInsertedItems,getListWithRemovedItems:i.getListWithRemovedItems}]]);t.alterUtilsFactory=e=>{if(!1===o.has(e))throw new Error(`Alter strategy with ID '${e}' does not exist.`);return o.get(e)}},51456:(e,t,r)=>{"use strict";var n=r(77439),s=r(90501),i=r(21177),o=r(71449);e.exports=function(e,t){t&&"string"==typeof e||s(e);var r=o(e);return i(s(void 0!==r?n(r,e):e))}},51530:(e,t,r)=>{"use strict";t.__esModule=!0,t.useRecorder=function(e,t,r,n,d){const g=e=>l.includes(e),p=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=[];return e.altKey&&r.push("alt"),t&&(e.ctrlKey||e.metaKey)?r.push("control/meta"):(e.ctrlKey&&r.push("control"),e.metaKey&&r.push("meta")),e.shiftKey&&r.push("shift"),r},f=e=>{if(!1===t(e))return;if(!1===r(e)||229===e.keyCode||"string"!=typeof e.key||(0,i.isImmediatePropagationStopped)(e))return;const o=(0,s.normalizeEventKey)(e);let l=[];g(o)||(l=p(e));const h=[o].concat(l);!d(e,h)&&((0,a.isMacOS)()&&l.includes("meta")||!(0,a.isMacOS)()&&l.includes("control"))&&d(e,[o].concat(p(e,!0))),n(e)},m=e=>{if("string"==typeof e.key){const t=(0,s.normalizeEventKey)(e);g(t)&&h.press(t)}},w=e=>{if("string"==typeof e.key){const t=(0,s.normalizeEventKey)(e);g(t)&&h.release(t)}},E=()=>{h.releaseAll()};return{mount:()=>{let t=e;for(c+=1;t;)1===c&&(t.document.documentElement.addEventListener("keydown",m),u.push({event:"keydown",listener:m}),t.document.documentElement.addEventListener("keyup",w),u.push({event:"keyup",listener:w})),t.document.documentElement.addEventListener("keydown",f),t.document.documentElement.addEventListener("blur",E),t=(0,o.getParentWindow)(t)},unmount:()=>{let t=e;for(c-=1;t;){if(0===c){for(let e=0;e<u.length;e++){const{event:r,listener:n}=u[e];t.document.documentElement.removeEventListener(r,n)}u.length=0}t.document.documentElement.removeEventListener("keydown",f),t.document.documentElement.removeEventListener("blur",E),t=(0,o.getParentWindow)(t)}},isPressed:e=>h.isPressed(e),releasePressedKeys:()=>h.releaseAll()}},r(99356);var n=r(30407),s=r(86951),i=r(31075),o=r(6083),a=r(55924);const l=["meta","alt","shift","control"],h=(0,n.createKeysObserver)(),u=[];let c=0},51784:()=>{},51957:()=>{},52e3:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.condition=l;var s=n(r(37539)),i=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),o=r(11278);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,o.registerCondition)(a,l,{name:i.FILTERS_CONDITIONS_YESTERDAY,inputsCount:0})},52183:e=>{function t(r){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(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},52232:(e,t,r)=>{"use strict";var n=r(77439),s=r(19451),i=r(14815),o=r(67987),a=r(99677),l=RegExp.prototype;e.exports=o.correct?function(e){return e.flags}:function(e){return o.correct||!i(l,e)||s(e,"flags")?e.flags:n(a,e)}},52328:(e,t,r)=>{"use strict";t.__esModule=!0,t.registerAllCellTypes=function(){(0,g.registerCellType)(n.AutocompleteCellType),(0,g.registerCellType)(s.CheckboxCellType),(0,g.registerCellType)(i.DateCellType),(0,g.registerCellType)(o.DropdownCellType),(0,g.registerCellType)(a.HandsontableCellType),(0,g.registerCellType)(l.NumericCellType),(0,g.registerCellType)(h.PasswordCellType),(0,g.registerCellType)(u.SelectCellType),(0,g.registerCellType)(c.TextCellType),(0,g.registerCellType)(d.TimeCellType)};var n=r(58293);t.AutocompleteCellType=n.AutocompleteCellType,t.AUTOCOMPLETE_TYPE=n.CELL_TYPE;var s=r(41296);t.CheckboxCellType=s.CheckboxCellType,t.CHECKBOX_TYPE=s.CELL_TYPE;var i=r(57849);t.DateCellType=i.DateCellType,t.DATE_TYPE=i.CELL_TYPE;var o=r(55696);t.DropdownCellType=o.DropdownCellType,t.DROPDOWN_TYPE=o.CELL_TYPE;var a=r(23224);t.HandsontableCellType=a.HandsontableCellType,t.HANDSONTABLE_TYPE=a.CELL_TYPE;var l=r(84440);t.NumericCellType=l.NumericCellType,t.NUMERIC_TYPE=l.CELL_TYPE;var h=r(71976);t.PasswordCellType=h.PasswordCellType,t.PASSWORD_TYPE=h.CELL_TYPE;var u=r(32749);t.SelectCellType=u.SelectCellType,t.SELECT_TYPE=u.CELL_TYPE;var c=r(33746);t.TextCellType=c.TextCellType,t.TEXT_TYPE=c.CELL_TYPE;var d=r(95372);t.TimeCellType=d.TimeCellType,t.TIME_TYPE=d.CELL_TYPE;var g=r(51241);t.registerCellType=g.registerCellType,t.getCellType=g.getCellType,t.getRegisteredCellTypeNames=g.getRegisteredCellTypeNames,t.getRegisteredCellTypes=g.getRegisteredCellTypes,t.hasCellType=g.hasCellType},52355:(e,t,r)=>{"use strict";var n=r(77439),s=r(15176),i=r(65455),o=r(85988),a=r(29516),l=r(12033),h=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!s(e)||i(e))return e;var r,l=o(e,u);if(l){if(void 0===t&&(t="default"),r=n(l,e,t),!s(r)||i(r))return r;throw new h("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},52490:(e,t,r)=>{"use strict";var n=r(72820),s=r(94266),i=r(69019),o=r(42559),a="WebAssembly",l=s[a],h=7!==new Error("e",{cause:7}).cause,u=function(e,t){var r={};r[e]=o(e,t,h),n({global:!0,constructor:!0,arity:1,forced:h},r)},c=function(e,t){if(l&&l[e]){var r={};r[e]=o(a+"."+e,t,h),n({target:a,stat:!0,constructor:!0,arity:1,forced:h},r)}};u("Error",function(e){return function(t){return i(e,this,arguments)}}),u("EvalError",function(e){return function(t){return i(e,this,arguments)}}),u("RangeError",function(e){return function(t){return i(e,this,arguments)}}),u("ReferenceError",function(e){return function(t){return i(e,this,arguments)}}),u("SyntaxError",function(e){return function(t){return i(e,this,arguments)}}),u("TypeError",function(e){return function(t){return i(e,this,arguments)}}),u("URIError",function(e){return function(t){return i(e,this,arguments)}}),c("CompileError",function(e){return function(t){return i(e,this,arguments)}}),c("LinkError",function(e){return function(t){return i(e,this,arguments)}}),c("RuntimeError",function(e){return function(t){return i(e,this,arguments)}})},52613:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(99356);var s=n(r(24300)),i=r(96645),o=n(r(35244)),a=r(21389),l=r(27727),h=r(4407);t.default=class{constructor(e){(0,s.default)(this,"columnMeta",void 0),(0,s.default)(this,"metas",new o.default(()=>this._createRow())),this.columnMeta=e}updateMeta(e,t,r){const n=this.getMeta(e,t);(0,a.extend)(n,r),(0,i.extendByMetaType)(n,r)}createRow(e,t){this.metas.insert(e,t)}createColumn(e,t){for(let r=0;r<this.metas.size();r++)this.metas.obtain(r).insert(e,t)}removeRow(e,t){this.metas.remove(e,t)}removeColumn(e,t){for(let r=0;r<this.metas.size();r++)this.metas.obtain(r).remove(e,t)}getMeta(e,t,r){const n=this.metas.obtain(e).obtain(t);return void 0===r?n:n[r]}setMeta(e,t,r,n){var s;const i=this.metas.obtain(e).obtain(t);null===(s=i._automaticallyAssignedMetaProps)||void 0===s||s.delete(r),i[r]=n}removeMeta(e,t,r){delete this.metas.obtain(e).obtain(t)[r]}getMetas(){const e=[],t=Array.from(this.metas.values());for(let r=0;r<t.length;r++)(0,l.isDefined)(t[r])&&e.push(...t[r].values());return e}getMetasAtRow(e){(0,i.assert)(()=>(0,h.isUnsignedNumber)(e),"Expecting an unsigned number.");const t=new Map(this.metas);return t.has(e)?Array.from(t.get(e).values()):[]}clearCache(){this.metas.clear()}_createRow(){return new o.default(e=>this._createMeta(e))}_createMeta(e){return new(this.columnMeta.getMetaConstructor(e))}}},52637:(e,t,r)=>{"use strict";var n,s,i=r(94266),o=r(92853),a=i.process,l=i.Deno,h=a&&a.versions||l&&l.version,u=h&&h.v8;u&&(s=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(s=+n[1]),e.exports=s},52653:(e,t,r)=>{"use strict";var n=r(72820),s=r(77439),i=r(70792),o=r(90501),a=r(21177),l=r(51456),h=r(64276),u=r(99793),c=r(33973),d=r(47150),g=r(14483),p=!c&&!d("flatMap",function(){}),f=!c&&!p&&g("flatMap",TypeError),m=c||p||f,w=h(function(){for(var e,t,r=this.iterator,n=this.mapper;;){if(t=this.inner)try{if(!(e=o(s(t.next,t.iterator))).done)return e.value;this.inner=null}catch(e){u(r,"throw",e)}if(e=o(s(this.next,r)),this.done=!!e.done)return;try{this.inner=l(n(e.value,this.counter++),!1)}catch(e){u(r,"throw",e)}}});n({target:"Iterator",proto:!0,real:!0,forced:m},{flatMap:function(e){o(this);try{i(e)}catch(e){u(this,"throw",e)}return f?s(f,this,e):new w(a(this),{mapper:e,inner:null})}})},52661:()=>{},52665:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.areValidSortStates=function(e){if(e.some(e=>!1===function(e){if(!1===(0,i.isObject)(e))return!1;const{column:t,sortOrder:r}=e;return Number.isInteger(t)&&[c,d].includes(r)}(e)))return!1;const t=e.map(e=>{let{column:t}=e;return t});return new Set(t).size===t.length},t.createDateTimeCompareFunction=function(e,t,r){return function(n,i){const{sortEmptyCells:o}=r;if(n===i)return l.DO_NOT_SWAP;if((0,a.isEmpty)(n))return(0,a.isEmpty)(i)?l.DO_NOT_SWAP:o&&"asc"===e?l.FIRST_BEFORE_SECOND:l.FIRST_AFTER_SECOND;if((0,a.isEmpty)(i))return o&&"asc"===e?l.FIRST_AFTER_SECOND:l.FIRST_BEFORE_SECOND;const h=(0,s.default)(n,t),u=(0,s.default)(i,t);return h.isValid()?u.isValid()?u.isAfter(h)?"asc"===e?l.FIRST_BEFORE_SECOND:l.FIRST_AFTER_SECOND:u.isBefore(h)?"asc"===e?l.FIRST_AFTER_SECOND:l.FIRST_BEFORE_SECOND:l.DO_NOT_SWAP:l.FIRST_BEFORE_SECOND:l.FIRST_AFTER_SECOND}},t.getHeaderSpanElement=function(e){return e.querySelector(`.${g}`)},t.getNextSortOrder=function(e){if(e===d)return;if(e===c)return d;return c},t.isFirstLevelColumnHeader=function(e,t){if(e<0||!t.parentNode)return!1;const r=t.parentNode.parentNode.childNodes;if(Array.from(r).indexOf(t.parentNode)-r.length!==-1)return!1;return!0},t.warnAboutPluginsConflict=function(e,t){(0,h.warn)(u.toSingleLine`Plugins \`columnSorting\` and \`multiColumnSorting\` should not be enabled simultaneously.\x20
263
- Only \`${e}\` will work. The \`${t}\` plugin will remain disabled.`)},t.wasHeaderClickedProperly=function(e,t,r){return-1===e&&t>=0&&!1===(0,o.isRightClick)(r)},r(89624),r(14950),r(98831),r(67046),r(38221),r(56050),r(65724),r(34478),r(940),r(81056);var s=n(r(37539)),i=r(21389),o=r(31075),a=r(27727),l=r(2520),h=r(96357),u=r(42685);const c=t.ASC_SORT_STATE="asc",d=t.DESC_SORT_STATE="desc",g=t.HEADER_SPAN_CLASS="colHeader"},52695:(e,t,r)=>{"use strict";var n=r(72820),s=r(94266),i=r(96127).set,o=r(16610),a=s.setImmediate?o(i,!1):i;n({global:!0,bind:!0,enumerable:!0,forced:s.setImmediate!==a},{setImmediate:a})},52732:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300)),i=r(6083),o=n(r(6224)),a=r(37131),l=r(42210);class h extends a.Overlay{constructor(e,t,r,n,i,o){super(e,t,l.CLONE_TOP_INLINE_START_CORNER,r,n),(0,s.default)(this,"topOverlay",void 0),(0,s.default)(this,"inlineStartOverlay",void 0),this.topOverlay=i,this.inlineStartOverlay=o}createTable(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return new o.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),r=this.topOverlay.getOverlayOffset();(0,i.setOverlayPosition)(e,`${t}px`,`${r}px`)}else(0,i.resetCssTransform)(e);let t=(0,i.outerHeight)(this.clone.wtTable.TABLE);const r=(0,i.outerWidth)(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(t=0),e.style.height=`${t}px`,e.style.width=`${r}px`,!1}}t.TopInlineStartCornerOverlay=h},52863:()=>{},52938:(e,t,r)=>{"use strict";var n=r(72820),s=r(77439),i=r(94178),o=r(70792),a=r(90501),l=r(21177),h=r(99793),u=r(14483)("forEach",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:u},{forEach:function(e){a(this);try{o(e)}catch(e){h(this,"throw",e)}if(u)return s(u,this,e);var t=l(this),r=0;i(t,function(t){e(t,r++)},{IS_RECORD:!0})}})},53001:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},53076:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(63301),s=r(85994);class i extends n.IndexMap{insert(e,t){this.indexedValues=(0,s.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),super.insert(e,t)}remove(e){this.indexedValues=(0,s.getListWithRemovedItems)(this.indexedValues,e),super.remove(e)}}t.PhysicalIndexToValueMap=i},53175:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(34478),r(31143),r(33098);var s=n(r(24300)),i=r(6083),o=r(31078),a=r(40785),l=r(58231),h=r(55924),u=r(96357),c=r(82175);function d(e,t,r){(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,r)}function g(e,t,r){return e.set(f(e,t),r),r}function p(e,t){return e.get(f(e,t))}function f(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var m=new WeakMap,w=new WeakMap,E=new WeakMap,y=new WeakMap;t.default=class{constructor(e,t,r,n,a,l){(0,s.default)(this,"wot",null),d(this,m,[]),(0,s.default)(this,"topOverlay",null),(0,s.default)(this,"bottomOverlay",null),(0,s.default)(this,"inlineStartOverlay",null),(0,s.default)(this,"topInlineStartCornerOverlay",null),(0,s.default)(this,"bottomInlineStartCornerOverlay",null),(0,s.default)(this,"browserLineHeight",void 0),(0,s.default)(this,"wtSettings",null),d(this,w,!1),d(this,E,0),d(this,y,null),(0,s.default)(this,"resizeObserver",new ResizeObserver(e=>{(0,o.requestAnimationFrame)(()=>{Array.isArray(e)&&e.length&&(g(E,this,p(E,this)+1),300===p(E,this)&&((0,u.warn)("The ResizeObserver callback was fired too many times in direct succession.\nThis may be due to an infinite loop caused by setting a dynamic height/width (for example, with the `dvh` units) to a Handsontable container's parent. \nThe observer will be disconnected."),this.resizeObserver.disconnect()),null!==p(y,this)&&clearTimeout(p(y,this)),g(y,this,setTimeout(()=>{g(E,this,0)},100)),this.wtSettings.getSetting("onContainerElementResize"))})})),this.wot=e,this.wtSettings=n,this.domBindings=r,this.facadeGetter=t,this.wtTable=l;const{rootDocument:h,rootWindow:c}=this.domBindings;this.instance=this.wot,this.eventManager=a,this.scrollbarSize=(0,i.getScrollbarWidth)(h);const f="hidden"===c.getComputedStyle(l.wtRootElement.parentNode).getPropertyValue("overflow");this.scrollableElement=f?l.holder:(0,i.getScrollableElement)(l.TABLE),this.initOverlays(),this.destroyed=!1,this.keyPressed=!1,this.spreaderLastSize={width:null,height:null},this.verticalScrolling=!1,this.horizontalScrolling=!1,this.initBrowserLineHeight(),this.registerListeners(),this.lastScrollX=c.scrollX,this.lastScrollY=c.scrollY}getOverlays(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=[...p(m,this)];return e&&t.push(this.wtTable),t}initBrowserLineHeight(){const{rootWindow:e,rootDocument:t}=this.domBindings,r=e.getComputedStyle(t.body),n=parseInt(r.lineHeight,10),s=1.2*parseInt(r.fontSize,10);this.browserLineHeight=n||s}initOverlays(){const e=[this.wot,this.facadeGetter,this.wtSettings,this.domBindings];this.topOverlay=new c.TopOverlay(...e),this.bottomOverlay=new c.BottomOverlay(...e),this.inlineStartOverlay=new c.InlineStartOverlay(...e),this.topInlineStartCornerOverlay=new c.TopInlineStartCornerOverlay(...e,this.topOverlay,this.inlineStartOverlay),this.bottomInlineStartCornerOverlay=new c.BottomInlineStartCornerOverlay(...e,this.bottomOverlay,this.inlineStartOverlay),g(m,this,[this.topOverlay,this.bottomOverlay,this.inlineStartOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay])}beforeDraw(){g(w,this,p(m,this).reduce((e,t)=>t.hasRenderingStateChanged()||e,!1)),p(m,this).forEach(e=>e.updateStateOfRendering("before"))}afterDraw(){this.syncScrollWithMaster(),p(m,this).forEach(e=>{const t=e.hasRenderingStateChanged();e.updateStateOfRendering("after"),t&&!e.needFullRender&&e.reset()})}refreshAll(){this.wot.drawn&&(this.wtTable.holder.parentNode?(this.wot.draw(!0),this.verticalScrolling&&this.inlineStartOverlay.onScroll(),this.horizontalScrolling&&this.topOverlay.onScroll(),this.verticalScrolling=!1,this.horizontalScrolling=!1):this.destroy())}registerListeners(){const{rootDocument:e,rootWindow:t}=this.domBindings,{mainTableScrollableElement:r}=this.topOverlay,{mainTableScrollableElement:n}=this.inlineStartOverlay;this.eventManager.addEventListener(e.documentElement,"keydown",e=>this.onKeyDown(e)),this.eventManager.addEventListener(e.documentElement,"keyup",()=>this.onKeyUp()),this.eventManager.addEventListener(e,"visibilitychange",()=>this.onKeyUp()),this.eventManager.addEventListener(r,"scroll",e=>this.onTableScroll(e),{passive:!0}),r!==n&&this.eventManager.addEventListener(n,"scroll",e=>this.onTableScroll(e),{passive:!0});const s=t.devicePixelRatio&&t.devicePixelRatio>1,i=this.scrollableElement===t,a=this.wtSettings.getSetting("preventWheel"),l={passive:i};(a||s||!(0,h.isChrome)())&&this.eventManager.addEventListener(this.wtTable.wtRootElement,"wheel",e=>this.onCloneWheel(e,a),l);let u;[this.topOverlay,this.bottomOverlay,this.inlineStartOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay].forEach(e=>{this.eventManager.addEventListener(e.clone.wtTable.holder,"wheel",e=>this.onCloneWheel(e,a),l)}),this.eventManager.addEventListener(t,"resize",()=>{(0,o.requestAnimationFrame)(()=>{clearTimeout(u),this.wtSettings.getSetting("onWindowResize"),u=setTimeout(()=>{g(E,this,0)},200)})}),i||this.resizeObserver.observe(this.wtTable.wtRootElement.parentElement)}onTableScroll(e){const t=this.domBindings.rootWindow,r=this.inlineStartOverlay.mainTableScrollableElement,n=this.topOverlay.mainTableScrollableElement,s=e.target;this.keyPressed&&(n!==t&&s!==t&&!e.target.contains(n)||r!==t&&s!==t&&!e.target.contains(r))||this.syncScrollPositions(e)}onCloneWheel(e,t){if(e.ctrlKey)return;const{rootWindow:r}=this.domBindings,n=this.inlineStartOverlay.mainTableScrollableElement,s=this.topOverlay.mainTableScrollableElement,i=e.target,o=s!==r&&i!==r&&!i.contains(s),a=n!==r&&i!==r&&!i.contains(n);if(this.keyPressed&&(o||a)||this.scrollableElement===r)return;const l=this.translateMouseWheelToScroll(e);(t||this.scrollableElement!==r&&l)&&e.preventDefault()}onKeyDown(e){this.keyPressed=(0,l.isKey)(e.keyCode,"ARROW_UP|ARROW_RIGHT|ARROW_DOWN|ARROW_LEFT")}onKeyUp(){this.keyPressed=!1}translateMouseWheelToScroll(e){let t=isNaN(e.deltaY)?-1*e.wheelDeltaY:e.deltaY,r=isNaN(e.deltaX)?-1*e.wheelDeltaX:e.deltaX;1===e.deltaMode&&(r+=r*this.browserLineHeight,t+=t*this.browserLineHeight);const n=this.scrollVertically(t),s=this.scrollHorizontally(r);return n||s}scrollVertically(e){const t=this.scrollableElement.scrollTop;return this.scrollableElement.scrollTop+=e,t!==this.scrollableElement.scrollTop}scrollHorizontally(e){const t=this.scrollableElement.scrollLeft;return this.scrollableElement.scrollLeft+=e,t!==this.scrollableElement.scrollLeft}syncScrollPositions(){if(this.destroyed)return;const e=this.topOverlay.clone.wtTable.holder,t=this.inlineStartOverlay.clone.wtTable.holder;let r=this.scrollableElement.scrollLeft,n=this.scrollableElement.scrollTop;if(this.wot.wtViewport.isHorizontallyScrollableByWindow()&&(r=this.scrollableElement.scrollX),this.wot.wtViewport.isVerticallyScrollableByWindow()&&(n=this.scrollableElement.scrollY),this.horizontalScrolling=this.lastScrollX!==r,this.verticalScrolling=this.lastScrollY!==n,this.lastScrollX=r,this.lastScrollY=n,this.horizontalScrolling){e.scrollLeft=r;const t=this.bottomOverlay.needFullRender?this.bottomOverlay.clone.wtTable.holder:null;t&&(t.scrollLeft=r)}this.verticalScrolling&&(t.scrollTop=n),this.refreshAll()}syncScrollWithMaster(){if(!p(w,this))return;const e=this.topOverlay.mainTableScrollableElement,{scrollLeft:t,scrollTop:r}=e;this.topOverlay.needFullRender&&(this.topOverlay.clone.wtTable.holder.scrollLeft=t),this.bottomOverlay.needFullRender&&(this.bottomOverlay.clone.wtTable.holder.scrollLeft=t),this.inlineStartOverlay.needFullRender&&(this.inlineStartOverlay.clone.wtTable.holder.scrollTop=r),g(w,this,!1)}updateMainScrollableElements(){this.eventManager.clearEvents(!0),this.inlineStartOverlay.updateMainScrollableElement(),this.topOverlay.updateMainScrollableElement(),this.bottomOverlay.needFullRender&&this.bottomOverlay.updateMainScrollableElement();const{wtTable:e}=this,{rootWindow:t}=this.domBindings;"hidden"===t.getComputedStyle(e.wtRootElement.parentNode).getPropertyValue("overflow")?this.scrollableElement=e.holder:this.scrollableElement=(0,i.getScrollableElement)(e.TABLE),this.registerListeners()}destroy(){this.resizeObserver.disconnect(),this.eventManager.destroy(),this.topOverlay.destroy(),this.bottomOverlay.clone&&this.bottomOverlay.destroy(),this.inlineStartOverlay.destroy(),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.destroy(),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.destroy(),this.destroyed=!0}refresh(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateLastSpreaderSize()&&this.adjustElementsSize(),this.bottomOverlay.clone&&this.bottomOverlay.refresh(e),this.inlineStartOverlay.refresh(e),this.topOverlay.refresh(e),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.refresh(e),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.refresh(e)}updateLastSpreaderSize(){const e=this.wtTable.spreader,t=e.clientWidth,r=e.clientHeight,n=t!==this.spreaderLastSize.width||r!==this.spreaderLastSize.height;return n&&(this.spreaderLastSize.width=t,this.spreaderLastSize.height=r),n}adjustElementsSize(){const{wtViewport:e}=this.wot,{wtTable:t}=this,{rootWindow:r}=this.domBindings,n=this.scrollableElement===r,s=this.wtSettings.getSetting("totalColumns"),i=this.wtSettings.getSetting("totalRows"),o=e.getRowHeaderWidth(),a=e.getColumnHeaderHeight(),l=this.wtSettings.getSetting("externalRowCalculator")?0:1,h=a+this.topOverlay.sumCellSizes(0,i)+l,u=o+this.inlineStartOverlay.sumCellSizes(0,s),c=t.hider.style,d=(()=>!n&&this.scrollableElement.scrollTop>Math.max(0,h-t.holder.clientHeight))()?1:0,g=(()=>!n&&this.scrollableElement.scrollLeft>Math.max(0,u-t.holder.clientWidth))()?1:0;c.width=`${u+g}px`,c.height=`${h+d}px`,this.topOverlay.adjustElementsSize(),this.inlineStartOverlay.adjustElementsSize(),this.bottomOverlay.adjustElementsSize()}expandHiderVerticallyBy(e){const{wtTable:t}=this;t.hider.style.height=`${parseInt(t.hider.style.height,10)+e}px`}expandHiderHorizontallyBy(e){const{wtTable:t}=this;t.hider.style.width=`${parseInt(t.hider.style.width,10)+e}px`}applyToDOM(){this.wtTable.isVisible()&&(this.topOverlay.applyToDOM(),this.bottomOverlay.clone&&this.bottomOverlay.applyToDOM(),this.inlineStartOverlay.applyToDOM())}getParentOverlay(e){if(!e)return null;const t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay];let r=null;return(0,a.arrayEach)(t,t=>{t&&t.clone&&t.clone.wtTable.TABLE.contains(e)&&(r=t.clone)}),r}syncOverlayTableClassNames(){const e=this.wtTable.TABLE,t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay];(0,a.arrayEach)(t,t=>{t&&(t.clone.wtTable.TABLE.className=e.className)})}}},53180:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"populateSelectedCellsData",callback(e){const t=e.getSelectedRange(),{row:r,col:n}=t[t.length-1].highlight.normalize(),s=e.getDataAtCell(r,n),i=new Map;for(let o=0;o<t.length;o++)t[o].forAll((t,o)=>{if(t>=0&&o>=0&&(t!==r||o!==n)){const{readOnly:r}=e.getCellMeta(t,o);r||i.set(`${t}x${o}`,[t,o,s])}});e.setDataAtCell(Array.from(i.values()))}}},53209:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(89624),r(14950),r(98831),r(67046),r(38221),r(56050),r(65724),r(34478),r(66133);var s=n(r(24300)),i=r(53383),o=r(1531),a=r(40785);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",u=t.PLUGIN_PRIORITY=330;var c=new WeakSet;class d extends i.BasePlugin{constructor(){super(...arguments),l(this,c),(0,s.default)(this,"trimmedRowsMap",null)}static get PLUGIN_KEY(){return h}static get PLUGIN_PRIORITY(){return u}isEnabled(){return!!this.hot.getSettings()[h]}enablePlugin(){this.enabled||(this.trimmedRowsMap=this.hot.rowIndexMapper.registerMap("trimRows",new o.TrimmingMap),this.trimmedRowsMap.addLocalHook("init",()=>function(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}(c,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(),r=this.isValidConfig(e);let n=t;r&&(n=Array.from(new Set(t.concat(e))));!1!==this.hot.runHooks("beforeTrimRow",t,n,r)&&(r&&this.hot.batchExecution(()=>{(0,a.arrayEach)(e,e=>{this.trimmedRowsMap.setValueAtIndex(e,!0)})},!0),this.hot.runHooks("afterTrimRow",t,n,r,r&&n.length>t.length))}trimRow(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.trimRows(t)}untrimRows(e){const t=this.getTrimmedRows(),r=this.isValidConfig(e);let n=t;const s=this.trimmedRowsMap.getValues().slice(),i=e.length>0;r&&i&&((0,a.arrayEach)(e,e=>{s[e]=!1}),n=(0,a.arrayReduce)(s,(e,t,r)=>(t&&e.push(r),e),[]));!1!==this.hot.runHooks("beforeUntrimRow",t,n,r&&i)&&(r&&i&&this.trimmedRowsMap.setValues(s),this.hot.runHooks("afterUntrimRow",t,n,r&&i,r&&n.length<t.length))}untrimRow(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];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},53383:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(90474);t.PLUGIN_KEY=n.PLUGIN_KEY,t.BasePlugin=n.BasePlugin,t.defaultMainSettingSymbol=n.defaultMainSettingSymbol},53439:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(8706);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.MultipleSelectionHandles=n.MultipleSelectionHandles},53477:(e,t,r)=>{"use strict";r(34478),r(31143);var n=r(73805);t.__esModule=!0;var s={SelectionManager:!0,Selection:!0},i=n(r(4911));t.Selection=i.default;var o=r(72380);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===o[e]||(t[e]=o[e]))});var a=r(2029);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===a[e]||(t[e]=a[e]))});var l=r(50182);t.SelectionManager=l.SelectionManager},53683:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"commentsReadOnly",name(){const t=this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT);return(0,s.checkSelectionConsistency)(this.getSelectedRange(),(t,r)=>e.getCommentMeta(t,r,i.META_READONLY))?(0,s.markLabelAsSelected)(t):t},callback(){this.getSelectedRangeActive().forAll((t,r)=>{if(t>=0&&r>=0){const n=!!e.getCommentMeta(t,r,i.META_READONLY);e.updateCommentMeta(t,r,{[i.META_READONLY]:!n})}})},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 n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),s=r(57011),i=r(95804)},53686:()=>{},53772:(e,t,r)=>{"use strict";t.__esModule=!0,t.createKeyboardShortcutCommandsPool=function(e){const t={};return c.forEach(r=>{let{name:n,callback:s}=r;t[n]=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return s(e,...r)}}),t};var n=r(63036),s=r(74164),i=r(6886),o=r(15667),a=r(27089),l=r(68830),h=r(75891),u=r(53180);const c=[...(0,n.getAllCommands)(),...(0,s.getAllCommands)(),...(0,i.getAllCommands)(),o.command,a.command,l.command,h.command,u.command]},53872:(e,t,r)=>{"use strict";var n=r(49887),s=TypeError;e.exports=function(e){if(n(e))throw new s("Can't call method on "+e);return e}},53931:(e,t,r)=>{"use strict";var n=r(15105);e.exports=n("document","documentElement")},54070:()=>{},54193:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(85689),s=r(23845),i=r(75829);const o=t.CELL_TYPE="date";t.DateCellType={CELL_TYPE:o,editor:n.DateEditor,renderer:s.dateRenderer,validator:i.dateValidator}},54271:()=>{},54415:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostBottom",callback(e){const{selection:t,rowIndexMapper:r}=e,{highlight:n,from:s,to:i}=e.getSelectedRangeActive(),o=n.isHeader()&&t.isSelectedByRowHeader();if(n.isCell()||o){const a=r.getNearestNotHiddenIndex(e.countRows()-1,-1),l=s.clone();l.row=n.row,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,n.clone()),o&&t.selectedByRowHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(a,i.col)),t.markEndSource()}}}},54430:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(75240);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.ExportFile=n.ExportFile},54531:(e,t,r)=>{"use strict";r(34478),r(31143),t.__esModule=!0;var n=r(2090);Object.keys(n).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||(t[e]=n[e]))});var s=r(58033);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))})},54635:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490);var s=r(40785),i=n(r(18095));function o(e,t,r){(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,r)}function a(e,t){return e.get(l(e,t))}function l(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,u=new WeakMap,c=new WeakMap;t.default=class{constructor(e){var t,r,n;o(this,h,new Map),o(this,u,new Map),o(this,c,null),r=this,n=e,(t=c).set(l(t,r),n)}getRoots(){return Array.from(a(h,this).values())}getRootByColumn(e){let t;return a(u,this).has(e)&&(t=a(h,this).get(a(u,this).get(e))),t}getNode(e,t){const r=this.getRootByColumn(t);if(!r)return;const n=t-a(u,this).get(t);let s,i=0;return r.walkDown(r=>{const{data:{origColspan:o,headerLevel:a}}=r;if(e===a){if(n>=i&&n<=i+o-1)return s=r,s.data.isRoot=t===s.data.columnIndex,!1;i+=o}}),s}rebuildTreeIndex(){let e=0;a(u,this).clear(),(0,s.arrayEach)(a(h,this),t=>{let[,{data:{colspan:r}}]=t;for(let t=e;t<e+r;t++)a(u,this).set(t,e);e+=r})}buildTree(){this.clear();const e=a(c,this).getColumnsCount();let t=0;for(;t<e;){const e=a(c,this).getHeaderSettings(0,t),r=new i.default;a(h,this).set(t,r),this.buildLeaves(r,t,0,e.origColspan),t+=e.origColspan}this.rebuildTreeIndex()}buildLeaves(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const o=a(c,this).getHeadersSettings(r,t,n);r+=1,(0,s.arrayEach)(o,n=>{const s={...n,headerLevel:r-1,columnIndex:t};let o;1===r?(e.data=s,o=e):(o=new i.default(s),e.addChild(o)),r<a(c,this).getLayersCount()&&this.buildLeaves(o,t,r,n.origColspan),t+=n.origColspan})}clear(){a(h,this).clear(),a(u,this).clear()}}},54919:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(51142);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.HiddenRows=n.HiddenRows},54983:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490);var s=n(r(24300));function i(e,t,r){(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,r)}function o(e,t){return e.get(l(e,t))}function a(e,t,r){return e.set(l(e,t),r),r}function l(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var h=new WeakMap;class u{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,s.default)(this,"row",null),(0,s.default)(this,"col",null),i(this,h,!1),a(h,this,r),void 0!==e&&void 0!==t&&(this.row=e,this.col=t)}isValid(e){const{countRows:t,countCols:r,countRowHeaders:n,countColHeaders:s}={countRows:0,countCols:0,countRowHeaders:0,countColHeaders:0,...e};return!(!Number.isInteger(this.row)||!Number.isInteger(this.col))&&(!(this.row<-s||this.col<-n)&&!(this.row>=t||this.col>=r))}isEqual(e){return e===this||this.row===e.row&&this.col===e.col}isHeader(){return!this.isCell()}isCell(){return this.row>=0&&this.col>=0}isRtl(){return o(h,this)}isSouthEastOf(e){return this.row>=e.row&&(o(h,this)?this.col<=e.col:this.col>=e.col)}isNorthWestOf(e){return this.row<=e.row&&(o(h,this)?this.col>=e.col:this.col<=e.col)}isSouthWestOf(e){return this.row>=e.row&&(o(h,this)?this.col>=e.col:this.col<=e.col)}isNorthEastOf(e){return this.row<=e.row&&(o(h,this)?this.col<=e.col:this.col>=e.col)}normalize(){return this.row=null===this.row?this.row:Math.max(this.row,0),this.col=null===this.col?this.col:Math.max(this.col,0),this}assign(e){return Number.isInteger(null==e?void 0:e.row)&&(this.row=e.row),Number.isInteger(null==e?void 0:e.col)&&(this.col=e.col),e instanceof u&&a(h,this,e.isRtl()),this}clone(){return new u(this.row,this.col,o(h,this))}toObject(){return{row:this.row,col:this.col}}}t.default=u},55237:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490);var s=n(r(24300)),i=r(58231),o=r(31075),a=r(69264),l=n(r(46427));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 u(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var c=new WeakSet;class d{constructor(e,t,r){h(this,c),(0,s.default)(this,"hot",void 0),(0,s.default)(this,"tableMeta",void 0),(0,s.default)(this,"selection",void 0),(0,s.default)(this,"eventManager",void 0),(0,s.default)(this,"destroyed",!1),(0,s.default)(this,"activeEditor",void 0),(0,s.default)(this,"cellProperties",void 0),this.hot=e,this.tableMeta=t,this.selection=r,this.eventManager=new l.default(e),this.hot.addHook("afterDocumentKeyDown",e=>u(c,this,g).call(this,e)),this.hot.addHook("beforeCompositionStart",e=>u(c,this,g).call(this,e)),this.hot.view._wt.update("onCellDblClick",(e,t,r)=>u(c,this,p).call(this,e,t,r))}getActiveEditor(){return this.activeEditor}prepareEditor(){var e;if(this.activeEditor&&this.activeEditor.isWaiting())return void this.closeEditor(!1,!1,e=>{e&&this.prepareEditor()});const t=null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.highlight;if(!t||t.isHeader())return;const{row:r,col:n}=t,s=this.hot.runHooks("modifyGetCellCoords",r,n,!1,"meta");let i=r,o=n;if(Array.isArray(s)&&([i,o]=s),this.cellProperties=this.hot.getCellMeta(i,o),!this.isCellEditable())return void this.clearActiveEditor();const l=this.hot.getCell(r,n,!0);if(l){const e=this.hot.getCellEditor(this.cellProperties),t=this.hot.colToProp(o),s=this.hot.getSourceDataAtCell(this.hot.toPhysicalRow(i),o);this.activeEditor=(0,a.getEditorInstance)(e,this.hot),this.activeEditor.prepare(r,n,t,l,s,this.cellProperties)}}isEditorOpened(){return this.activeEditor&&this.activeEditor.isOpened()}openEditor(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this.isCellEditable())return void this.clearActiveEditor();const n=this.hot.getSelectedRangeActive();let s=this.hot.runHooks("beforeBeginEditing",n.highlight.row,n.highlight.col,e,t,r);t instanceof MouseEvent&&"boolean"!=typeof s&&(s=0===this.hot.selection.getLayerLevel()&&n.isSingle()),!1!==s?(this.activeEditor||(this.hot.scrollToFocusedCell(),this.prepareEditor()),this.activeEditor&&(r&&this.activeEditor.enableFullEditMode(),this.activeEditor.beginEditing(e,t))):this.clearActiveEditor()}closeEditor(e,t,r){this.activeEditor?this.activeEditor.finishEditing(e,t,r):r&&r(!1)}closeEditorAndSaveChanges(e){this.closeEditor(!1,e)}closeEditorAndRestoreOriginalValue(e){this.closeEditor(!0,e)}clearActiveEditor(){this.activeEditor=void 0}isCellEditable(){const e=this.hot.getSelectedRangeActive();if(!e)return!1;const t=this.hot.getCellEditor(this.cellProperties),{row:r,col:n}=e.highlight,{rowIndexMapper:s,columnIndexMapper:i}=this.hot,o=s.isHidden(this.hot.toPhysicalRow(r))||i.isHidden(this.hot.toPhysicalColumn(n));return!(this.cellProperties.readOnly||!t||o)}moveSelectionAfterEnter(e){const t={..."function"==typeof this.tableMeta.enterMoves?this.tableMeta.enterMoves(e):this.tableMeta.enterMoves};e.shiftKey&&(t.row=-t.row,t.col=-t.col),this.hot.selection.isMultiple()?this.selection.transformFocus(t.row,t.col):this.selection.transformStart(t.row,t.col,!0)}destroy(){this.destroyed=!0,this.eventManager.destroy()}}function g(e){const t=this.hot.getSelectedRangeActive();if(!this.hot.isListening()||!t||t.highlight.isHeader()||(0,o.isImmediatePropagationStopped)(e))return;const{keyCode:r}=e,n=(e.ctrlKey||e.metaKey)&&!e.altKey;(!this.activeEditor||this.activeEditor&&!this.activeEditor.isWaiting())&&((0,i.isFunctionKey)(r)||(0,i.isCtrlMetaKey)(r)||n||this.isEditorOpened()||this.openEditor("",e))}function p(e,t){t.isCell()&&(this.hot.getShortcutManager().isCtrlPressed()?this.clearActiveEditor():this.openEditor(null,e,!0))}const f=new WeakMap;d.getInstance=function(e,t,r){let n=f.get(e);return n||(n=new d(e,t,r),f.set(e,n)),n};t.default=d},55316:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490);var s=n(r(24300)),i=r(6083),o=n(r(97816)),a=r(37131),l=r(42210);class h extends a.Overlay{constructor(e,t,r,n){super(e,t,l.CLONE_BOTTOM,r,n),(0,s.default)(this,"cachedFixedRowsBottom",-1),this.cachedFixedRowsBottom=this.wtSettings.getSetting("fixedRowsBottom")}createTable(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return new o.default(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderBottomOverlay")}resetFixedPosition(){if(!this.needFullRender||!this.shouldBeRendered()||!this.wot.wtTable.holder.parentNode)return!1;const{rootWindow:e}=this.domBindings,t=this.clone.wtTable.holder.parentNode;t.style.top="";let r=0;const n=this.wtSettings.getSetting("preventOverflow");this.trimmingContainer!==e||n&&"vertical"===n?(r=this.getScrollPosition(),this.repositionOverlay()):(r=this.getOverlayOffset(),t.style.bottom=`${r}px`);const s=this.adjustHeaderBordersPosition(r);return this.adjustElementsSize(),s}repositionOverlay(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:r}=this.domBindings,n=this.clone.wtTable.holder.parentNode;let s=0;t.hasVerticalScroll()||(s+=t.getWorkspaceHeight()-e.getTotalHeight()),t.hasVerticalScroll()&&t.hasHorizontalScroll()&&(s+=(0,i.getScrollbarWidth)(r)),n.style.bottom=`${s}px`}setScrollPosition(e){const{rootWindow:t}=this.domBindings,r=this.mainTableScrollableElement;let n=!1;if(r===t&&e!==t.scrollY){const e=t.scrollY;t.scrollTo((0,i.getWindowScrollLeft)(t),top),n=e!==t.scrollY}else if(e!==r.scrollTop){const t=r.scrollTop;r.scrollTop=e,n=t!==r.scrollTop}return n}onScroll(){this.wtSettings.getSetting("onScrollHorizontally")}sumCellSizes(e,t){const{wtTable:r,wtSettings:n}=this.wot,s=n.getSetting("stylesHandler").getDefaultRowHeight();let i=e,o=0;for(;i<t;){const e=r.getRowHeight(i);o+=void 0===e?s:e,i+=1}return o}adjustElementsSize(){this.updateTrimmingContainer(),this.needFullRender&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}adjustRootElementSize(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:r,rootWindow:n}=this.domBindings,s=this.clone.wtTable.holder.parentNode.style,o=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==n||"horizontal"===o){let n=t.getWorkspaceWidth();t.hasVerticalScroll()&&(n-=(0,i.getScrollbarWidth)(r)),n=Math.min(n,e.wtRootElement.scrollWidth),s.width=`${n}px`}else s.width="";this.clone.wtTable.holder.style.width=s.width;let a=(0,i.outerHeight)(this.clone.wtTable.TABLE);e.hasDefinedSize()||(a=0),s.height=`${a}px`}adjustRootChildrenSize(){const{holder:e}=this.clone.wtTable;this.clone.wtTable.hider.style.width=this.hider.style.width,e.style.width=e.parentNode.style.width,e.style.height=e.parentNode.style.height}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){let r=this.getTableParentOffset();const n=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder;let s=0;t&&n.offsetHeight!==n.clientHeight&&(s=(0,i.getScrollbarWidth)(this.domBindings.rootDocument)),t?(r+=this.sumCellSizes(0,e+1),r-=this.wot.wtViewport.getViewportHeight(),r+=1):r+=this.sumCellSizes(this.wtSettings.getSetting("fixedRowsBottom"),e),r+=s,this.setScrollPosition(r)}getTableParentOffset(){return this.mainTableScrollableElement===this.domBindings.rootWindow?this.wot.wtTable.holderOffset.top:0}getScrollPosition(){return(0,i.getScrollTop)(this.mainTableScrollableElement,this.domBindings.rootWindow)}getOverlayOffset(){const{rootWindow:e}=this.domBindings,t=this.wtSettings.getSetting("preventOverflow");let r=0;if(this.trimmingContainer===e&&(!t||"vertical"!==t)){const e=this.wot.wtTable.getTotalHeight(),t=e-this.clone.wtTable.getTotalHeight(),n=this.domBindings.rootDocument.documentElement.clientHeight;r=Math.max(this.getTableParentOffset()-this.getScrollPosition()-n+e,0),r>t&&(r=0)}return r}adjustHeaderBordersPosition(e){const t=this.wtSettings.getSetting("fixedRowsBottom"),r=this.cachedFixedRowsBottom!==t,n=this.wtSettings.getSetting("columnHeaders");let s=!1;if((r||0===t)&&n.length>0){const t=this.wot.wtTable.holder.parentNode,r=(0,i.hasClass)(t,"innerBorderBottom");this.cachedFixedRowsBottom=this.wtSettings.getSetting("fixedRowsBottom"),e||0===this.wtSettings.getSetting("totalRows")?((0,i.addClass)(t,"innerBorderBottom"),s=!r):((0,i.removeClass)(t,"innerBorderBottom"),s=r)}return s}}t.BottomOverlay=h},55517:(e,t,r)=>{"use strict";t.__esModule=!0,t.filterSeparators=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.SEPARATOR,r=e.slice(0);return r=a(r,t),r=function(e,t){let r=e.slice(0);return r.reverse(),r=a(r,t),r.reverse(),r}(r,t),r=function(e){const t=[];return(0,n.arrayEach)(e,(e,r)=>{r>0?t[t.length-1].name!==e.name&&t.push(e):t.push(e)}),t}(r),r},t.hasSubMenu=function(e){return(0,i.hasClass)(e,"htSubmenu")},t.isDisabled=function(e){return(0,i.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(o.SEPARATOR,"i").test(e.name)},t.isItemSubMenu=function(e){return(0,s.hasOwnProperty)(e,"submenu")},t.isSelectionDisabled=function(e){return(0,i.hasClass)(e,"htSelectionDisabled")},t.isSeparator=function(e){return(0,i.hasClass)(e,"htSeparator")},t.normalizeSelection=function(e){return(0,n.arrayMap)(e,e=>({start:e.getTopStartCorner(),end:e.getBottomEndCorner()}))},r(99356);var n=r(40785),s=r(21389),i=r(6083),o=r(70095);function a(e,t){const r=e.slice(0);for(let e=0;e<r.length&&r[e].name===t;)r.shift();return r}},55585:(e,t)=>{"use strict";t.__esModule=!0,t.resolveWithInstance=function(e,t){var n;return null==r||null===(n=r.get(e.guid))||void 0===n?void 0:n.get(t)},t.staticRegister=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"common";r.has(e)||r.set(e,new Map);const t=r.get(e);return{register:function(e,r){t.set(e,r)},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(){r.delete(e),t.clear()}}};const r=t.collection=new Map},55696:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(16607);t.CELL_TYPE=n.CELL_TYPE,t.DropdownCellType=n.DropdownCellType},55708:(e,t,r)=>{"use strict";t.__esModule=!0,t.collapseNode=function e(t){var r;const{data:o,childs:a}=t;if(o.isCollapsed||o.isHidden||o.origColspan<=1)return{rollbackModification:()=>{},affectedColumns:[],colspanCompensation:0};if((0,i.isNodeReflectsFirstChildColspan)(t))return e(a[0]);o.isCollapsed=!0;const l=a.slice(1),h=new Set;if(l.length>0)(0,n.arrayEach)(l,e=>{(0,i.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}=o;for(let r=1;r<e;r++){const e=t+r;h.add(e)}}const u=o.colspan-(null!==(r=(0,i.getFirstChildProperty)(t,"colspan"))&&void 0!==r?r:1);return t.walkUp(e=>{const{data:t}=e;t.colspan-=u,t.colspan<=1?(t.colspan=1,t.isCollapsed=!0):(0,i.isNodeReflectsFirstChildColspan)(e)&&(t.isCollapsed=(0,i.getFirstChildProperty)(e,"isCollapsed"))}),{rollbackModification:()=>(0,s.expandNode)(t),affectedColumns:Array.from(h),colspanCompensation:u}},r(89624),r(14950),r(98831),r(67046),r(38221),r(56050),r(65724);var n=r(40785),s=r(27367),i=r(42413)},55761:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.createHighlight=function(e){let{border:t,visualCellRange:r,...n}=e;return new i.default({...t,...n,selectionType:s.HIGHLIGHT_CUSTOM_SELECTION_TYPE},r)};var s=r(74216),i=n(r(44982))},55766:()=>{},55805:(e,t,r)=>{"use strict";var n=r(52637),s=r(53001),i=r(94266).String;e.exports=!!Object.getOwnPropertySymbols&&!s(function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},55924:(e,t,r)=>{"use strict";t.__esModule=!0,t.isChrome=function(){return o.chrome.value},t.isChromeWebKit=function(){return o.chromeWebKit.value},t.isEdge=function(){return o.edge.value},t.isEdgeWebKit=function(){return o.edgeWebKit.value},t.isFirefox=function(){return o.firefox.value},t.isFirefoxWebKit=function(){return o.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 o.mobile.value},t.isSafari=function(){return o.safari.value},t.isWindowsOS=function(){return a.win.value},t.setBrowserMeta=l,t.setPlatformMeta=h;var n=r(21389),s=r(31078);const i=e=>{const t={value:!1,test:(r,n)=>{t.value=e(r,n)}};return t},o={chrome:i((e,t)=>/Chrome/.test(e)&&/Google/.test(t)),chromeWebKit:i(e=>/CriOS/.test(e)),edge:i(e=>/Edge/.test(e)),edgeWebKit:i(e=>/EdgiOS/.test(e)),firefox:i(e=>/Firefox/.test(e)),firefoxWebKit:i(e=>/FxiOS/.test(e)),mobile:i(e=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)),safari:i((e,t)=>/Safari/.test(e)&&/Apple Computer/.test(t))},a={mac:i(e=>/^Mac/.test(e)),win:i(e=>/^Win/.test(e)),linux:i(e=>/^Linux/.test(e)),ios:i(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,n.objectEach)(o,r=>{let{test:n}=r;n(e,t)})}function h(){let{platform:e=navigator.platform}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,n.objectEach)(a,t=>{let{test:r}=t;r(e)})}(0,s.isCSR)()&&(l(),h())},55941:(e,t)=>{"use strict";t.__esModule=!0,t.hasValidParameter=function(e){return e===n},t.isRootInstance=function(e){return r.has(e)},t.registerAsRootInstance=function(e){r.set(e,!0)};const r=t.holder=new WeakMap,n=t.rootInstanceSymbol=Symbol("rootInstance")},55962:()=>{},56050:(e,t,r)=>{"use strict";var n=r(72820),s=r(71468),i=r(34701);n({target:"Set",proto:!0,real:!0,forced:!r(12874)("symmetricDifference")||!i("symmetricDifference")},{symmetricDifference:s})},56274:(e,t,r)=>{"use strict";var n=r(19098);e.exports=n([].slice)},56300:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(21389);const s={getFirstRenderedRow(){return 0===this.getRenderedRowsCount()?-1:0},getFirstVisibleRow(){return this.getFirstRenderedRow()},getFirstPartiallyVisibleRow(){return this.getFirstRenderedRow()},getLastRenderedRow(){return this.getRenderedRowsCount()-1},getLastVisibleRow(){return this.getLastRenderedRow()},getLastPartiallyVisibleRow(){return this.getLastRenderedRow()},getRenderedRowsCount(){return Math.min(this.wtSettings.getSetting("totalRows"),this.wtSettings.getSetting("fixedRowsTop"))},getVisibleRowsCount(){return this.getRenderedRowsCount()},getColumnHeadersCount(){return this.dataAccessObject.columnHeaders.length}};(0,n.defineGetter)(s,"MIXIN_NAME","stickyRowsTop",{writable:!1,enumerable:!1});t.default=s},56426:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(72032);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.Search=n.Search},56643:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},57006:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(34478),r(29810),r(31143),r(33098);var s=n(r(24300)),i=r(53383),o=r(31078),a=n(r(97539)),l=r(21389),h=r(4407),u=n(r(38602)),c=r(82887),d=r(1531),g=r(6083);function p(e,t,r){f(e,t),t.set(e,r)}function f(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function m(e,t,r){return e.set(E(e,t),r),r}function w(e,t){return e.get(E(e,t))}function E(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const y=t.PLUGIN_KEY="autoRowSize",C=t.PLUGIN_PRIORITY=40,v="htFirstDatasetColumnNotRendered";var S=new WeakMap,R=new WeakMap,T=new WeakSet;class N extends i.BasePlugin{static get PLUGIN_KEY(){return y}static get PLUGIN_PRIORITY(){return C}static get SETTING_KEYS(){return!0}static get DEFAULT_SETTINGS(){return{useHeaders:!0,samplingRatio:null,allowSampleDuplicates:!1}}static get CALCULATION_STEP(){return 50}static get SYNC_CALCULATION_LIMIT(){return 500}constructor(e){var t,r;super(e),f(t=this,r=T),r.add(t),(0,s.default)(this,"headerHeight",null),(0,s.default)(this,"ghostTable",new a.default(this.hot)),(0,s.default)(this,"samplesGenerator",new u.default((e,t)=>{const r=this.hot.toPhysicalColumn(t);if(this.hot.columnIndexMapper.isHidden(r))return!1;if(e>=0&&t>=0){if(this.hot.getCellMeta(e,t).hidden)return!1}let n;return e>=0?n=this.hot.getDataAtCell(e,t):-1===e&&(n=this.hot.getColHeader(t)),{value:n}})),(0,s.default)(this,"inProgress",!1),(0,s.default)(this,"measuredRows",0),(0,s.default)(this,"rowHeightsMap",new d.PhysicalIndexToValueMap),p(this,S,[]),p(this,R,!1),this.hot.rowIndexMapper.registerMap("autoRowSize",this.rowHeightsMap),this.addHook("beforeRowResize",(e,t,r)=>E(T,this,I).call(this,e,t,r))}isEnabled(){const e=this.hot.getSettings()[y];return!0===e||(0,l.isObject)(e)}enablePlugin(){var e=this;if(this.enabled)return;this.samplesGenerator.setAllowDuplicates(this.getSetting("allowSampleDuplicates"));const t=this.getSetting("samplingRatio");t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),this.addHook("afterLoadData",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return E(T,e,O).call(e,...r)}),this.addHook("beforeChangeRender",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return E(T,e,x).call(e,...r)}),this.addHook("beforeColumnResize",()=>this.recalculateAllRowsHeight()),this.addHook("afterFormulasValuesUpdate",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return E(T,e,L).call(e,...r)}),this.addHook("beforeViewRender",()=>E(T,this,b).call(this)),this.addHook("beforeRender",()=>E(T,this,M).call(this)),this.addHook("modifyRowHeight",(e,t)=>this.getRowHeight(t,e)),this.addHook("init",()=>E(T,this,P).call(this)),this.addHook("modifyColumnHeaderHeight",()=>this.getColumnHeaderHeight()),super.enablePlugin()}disablePlugin(){this.headerHeight=null,super.disablePlugin(),E(T,this,A).call(this,!1),this.addHook("beforeRowResize",(e,t,r)=>E(T,this,I).call(this,e,t,r))}calculateVisibleRowsHeight(){if(!this.hot.countCols())return;const e=this.getFirstVisibleRow(),t=this.getLastVisibleRow();if(-1===e||-1===t)return;const r=this.hot.forceFullRender;this.calculateRowsHeight({from:e,to:t},void 0,r)}calculateRowsHeight(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countCols()-1},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n="number"==typeof e?{from:e,to:e}:e,s="number"==typeof t?{from:t,to:t}:t;if(null!==this.hot.getColHeader(0)){const e=this.samplesGenerator.generateRowSamples(-1,s);this.ghostTable.addColumnHeadersRow(e.get(-1))}(0,h.rangeEach)(n.from,n.to,e=>{let t=this.hot.toPhysicalRow(e);if(null===t&&(t=e),r||null===this.rowHeightsMap.getValueAtIndex(t)){this.samplesGenerator.generateRowSamples(e,s).forEach((e,t)=>this.ghostTable.addRow(t,e))}}),this.ghostTable.rows.length&&(this.hot.batchExecution(()=>{this.ghostTable.getHeights((e,t)=>{e<0?this.headerHeight=t:this.rowHeightsMap.setValueAtIndex(this.hot.toPhysicalRow(e),t)})},!0),this.measuredRows=n.to+1,this.ghostTable.clean())}calculateAllRowsHeight(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=0;const n=this.hot.countRows()-1;let s=null;this.inProgress=!0;const i=()=>{if(!this.hot)return(0,o.cancelAnimationFrame)(s),void(this.inProgress=!1);this.calculateRowsHeight({from:r,to:Math.min(r+N.CALCULATION_STEP,n)},e,t),r=r+N.CALCULATION_STEP+1,r<n?s=(0,o.requestAnimationFrame)(i):((0,o.cancelAnimationFrame)(s),this.inProgress=!1,this.hot.view.adjustElementsSize())},a=this.getSyncCalculationLimit();a>=0&&(this.calculateRowsHeight({from:0,to:a},e,t),r=a+1),r<n?i():(this.inProgress=!1,this.hot.view.adjustElementsSize())}recalculateAllRowsHeight(){this.hot.view.isVisible()&&this.calculateAllRowsHeight({from:0,to:this.hot.countCols()-1},!0)}getSyncCalculationLimit(){const e=this.hot.getSettings()[y];let t=N.SYNC_CALCULATION_LIMIT;const r=this.hot.countRows()-1;return(0,l.isObject)(e)&&(t=e.syncLimit,(0,c.isPercentValue)(t)?t=(0,h.valueAccordingPercent)(r,t):t>>=0),Math.min(t,r)}getRowHeight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.hot.stylesHandler.getDefaultRowHeight();var r;if(e<0)return null!==(r=this.headerHeight)&&void 0!==r?r:t;const n=this.hot.toPhysicalRow(e);if(this.hot.rowIndexMapper.isHidden(n))return t;const s=this.rowHeightsMap.getValueAtIndex(n);let i=t;return null!==s&&s>t&&(i=s),i}getColumnHeaderHeight(){return this.headerHeight}getFirstVisibleRow(){var e;return null!==(e=this.hot.getFirstRenderedVisibleRow())&&void 0!==e?e:-1}getLastVisibleRow(){var e;return null!==(e=this.hot.getLastRenderedVisibleRow())&&void 0!==e?e:-1}clearCache(e){this.headerHeight=null,Array.isArray(e)?this.hot.batchExecution(()=>{e.forEach(e=>{this.rowHeightsMap.setValueAtIndex(e,null)})},!0):this.rowHeightsMap.clear()}clearCacheByRange(e){const{from:t,to:r}="number"==typeof e?{from:e,to:e}:e;this.hot.batchExecution(()=>{(0,h.rangeEach)(Math.min(t,r),Math.max(t,r),e=>{this.rowHeightsMap.setValueAtIndex(e,null)})},!0)}isNeedRecalculate(){return!!this.rowHeightsMap.getValues().slice(0,this.measuredRows).filter(e=>null===e).length}destroy(){this.ghostTable.clean(),super.destroy()}}function _(e){const t={from:0,to:this.hot.countCols()-1};e.forEach(e=>{this.samplesGenerator.generateRowSamples(e,t).forEach((e,t)=>this.ghostTable.addRow(t,e))}),this.ghostTable.rows.length&&(this.hot.batchExecution(()=>{this.ghostTable.getHeights((e,t)=>{const r=this.hot.toPhysicalRow(e);this.rowHeightsMap.setValueAtIndex(r,t)})},!0),this.ghostTable.clean())}function A(e){if(this.hot.stylesHandler.isClassicTheme()){const t=this.hot.getFirstRenderedVisibleColumn(),r=this.hot.columnIndexMapper.getPhysicalFromVisualIndex(t);!1===e||r===this.hot.columnIndexMapper.getPhysicalFromRenderableIndex(0)?(0,g.removeClass)(this.hot.rootElement,v):(0,g.addClass)(this.hot.rootElement,v)}}function b(){E(T,this,A).call(this)}function M(){this.calculateVisibleRowsHeight(),this.inProgress||(E(T,this,_).call(this,w(S,this)),m(S,this,[]))}function I(e,t,r){let n=e;return r&&(this.calculateRowsHeight(t,void 0,!0),n=this.getRowHeight(t)),n}function O(e,t){t||this.recalculateAllRowsHeight()}function x(e){const t=e.reduce((e,t)=>{let[r]=t;return-1===e.indexOf(r)&&e.push(r),e},[]);w(S,this).push(...t)}function P(){this.recalculateAllRowsHeight(),m(R,this,!0)}function L(e){if(!w(R,this))return;const t=e.reduce((e,t)=>{var r;const n=null===(r=t.address)||void 0===r?void 0:r.row;if(Number.isInteger(n)){const t=this.hot.toVisualRow(n);-1===e.indexOf(t)&&e.push(t)}return e},[]);w(S,this).push(...t)}t.AutoRowSize=N},57011:(e,t,r)=>{"use strict";t.__esModule=!0,t.align=function(e,t,r,o,a){(0,n.arrayEach)(e,e=>{e.forAll((e,n)=>{e>=0&&n>=0&&function(e,t,r,n,o,a){const l=o(e,t);let h=n;l.className&&(h="vertical"===r?s(l.className,n):i(l.className,n));a(e,t,"className",h)}(e,n,t,r,o,a)})})},t.checkSelectionConsistency=function(e,t){let r=!1;Array.isArray(e)&&(0,n.arrayEach)(e,e=>(e.forAll((e,n)=>{if(e>=0&&n>=0&&t(e,n))return r=!0,!1}),r));return r},t.getAlignmentClasses=function(e,t){const r={};return(0,n.arrayEach)(e,e=>{e.forAll((e,n)=>{e>=0&&n>=0&&(r[e]||(r[e]=[]),r[e][n]=t(e,n))})}),r},t.getAlignmentComparatorByClass=function(e){return function(t,r){const n=this.getCellMeta(t,r).className;return n&&-1!==n.indexOf(e)}},t.getDocumentOffsetByElement=function(e,t){const r={top:0,left:0};if(t!==e.ownerDocument){const{frameElement:e}=t.defaultView,{top:n,left:s}=e.getBoundingClientRect();r.top=n,r.left=s}return r},t.markLabelAsSelected=function(e){return`<span class="selected">${String.fromCharCode(10003)}</span>${e}`},t.prepareHorizontalAlignClass=i,t.prepareVerticalAlignClass=s;var n=r(40785);function s(e,t){if(-1!==e.indexOf(t))return e;return`${e.replace("htTop","").replace("htMiddle","").replace("htBottom","").replace(" ","")} ${t}`}function i(e,t){if(-1!==e.indexOf(t))return e;return`${e.replace("htLeft","").replace("htCenter","").replace("htRight","").replace("htJustify","").replace(" ","")} ${t}`}},57041:(e,t,r)=>{"use strict";var n=r(9895),s=r(23002),i=n("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},57093:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.condition=l;var s=n(r(37539)),i=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),o=r(11278);const a=t.CONDITION_NAME="date_before";function l(e,t){let[r]=t;const n=(0,s.default)(e.value,e.meta.dateFormat),i=(0,s.default)(r,e.meta.dateFormat);return!(!n.isValid()||!i.isValid())&&n.diff(i)<=0}(0,o.registerCondition)(a,l,{name:i.FILTERS_CONDITIONS_BEFORE,inputsCount:1,showOperators:!0})},57198:(e,t,r)=>{var n=r(52183).default;e.exports=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var s=r.call(e,t||"default");if("object"!=n(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},57536:(e,t,r)=>{"use strict";var n=r(41462),s=r(59188),i=r(26023),o=r(94811);e.exports=function(e){var t=n(this),r=o(e);return!(s(t)>r.size)&&!1!==i(t,function(e){if(!r.includes(e))return!1},!0)}},57849:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(54193);t.CELL_TYPE=n.CELL_TYPE,t.DateCellType=n.DateCellType},57861:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.condition=l;var s=n(r(37539)),i=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),o=r(11278);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,o.registerCondition)(a,l,{name:i.FILTERS_CONDITIONS_TODAY,inputsCount:0})},57971:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(99257));t.DataMap=s.default;var i=n(r(34700));t.MetaManager=i.default;var o=n(r(93236));t.metaSchemaFactory=o.default;var a=r(81231);t.replaceData=a.replaceData;var l=r(94980);t.DynamicCellMetaMod=l.DynamicCellMetaMod;var h=r(59174);t.ExtendMetaPropertiesMod=h.ExtendMetaPropertiesMod},57976:(e,t,r)=>{"use strict";t.__esModule=!0,t.condition=i;var n=r(11278);const s=t.CONDITION_NAME="false";function i(){return!1}(0,n.registerCondition)(s,i,{name:"False"})},58033:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.getRegisteredMapsCounter=function(){return l},r(34478),r(31143);var s=n(r(24300)),i=r(27727),o=r(21389),a=n(r(50496));let l=0;class h{constructor(){(0,s.default)(this,"collection",new Map)}register(e,t){!1===this.collection.has(e)&&(this.collection.set(e,t),t.addLocalHook("change",()=>this.runLocalHooks("change",t)),l+=1)}unregister(e){const t=this.collection.get(e);(0,i.isDefined)(t)&&(t.destroy(),this.collection.delete(e),this.runLocalHooks("change",t),l-=1)}unregisterAll(){this.collection.forEach((e,t)=>this.unregister(t)),this.collection.clear()}get(e){return(0,i.isUndefined)(e)?Array.from(this.collection.values()):this.collection.get(e)}getLength(){return this.collection.size}removeFromEvery(e){this.collection.forEach(t=>{t.remove(e)})}insertToEvery(e,t){this.collection.forEach(r=>{r.insert(e,t)})}initEvery(e){this.collection.forEach(t=>{t.init(e)})}}t.MapCollection=h,(0,o.mixin)(h,a.default)},58158:()=>{},58231:(e,t,r)=>{"use strict";t.__esModule=!0,t.isCtrlKey=function(e){const t=[];(0,s.isMacOS)()?t.push(i.COMMAND_LEFT,i.COMMAND_RIGHT,i.COMMAND_FIREFOX):t.push(i.CONTROL);return t.includes(e)},t.isCtrlMetaKey=function(e){return[i.CONTROL,i.COMMAND_LEFT,i.COMMAND_RIGHT,i.COMMAND_FIREFOX].includes(e)},t.isFunctionKey=function(e){return o.includes(e)},t.isKey=function(e,t){const r=t.split("|");let s=!1;return(0,n.arrayEach)(r,t=>{if(e===i[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},r(99356);var n=r(40785),s=r(55924);const i=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},o=[i.ALT,i.ARROW_DOWN,i.ARROW_LEFT,i.ARROW_RIGHT,i.ARROW_UP,i.AUDIO_DOWN,i.AUDIO_MUTE,i.AUDIO_UP,i.BACKSPACE,i.CAPS_LOCK,i.DELETE,i.END,i.ENTER,i.ESCAPE,i.F1,i.F2,i.F3,i.F4,i.F5,i.F6,i.F7,i.F8,i.F9,i.F10,i.F11,i.F12,i.F13,i.F14,i.F15,i.F16,i.F17,i.F18,i.F19,i.HOME,i.INSERT,i.MEDIA_NEXT,i.MEDIA_PLAY_PAUSE,i.MEDIA_PREV,i.MEDIA_STOP,i.NULL,i.NUM_LOCK,i.PAGE_DOWN,i.PAGE_UP,i.PAUSE,i.SCROLL_LOCK,i.SHIFT,i.TAB]},58293:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(90113);t.AutocompleteCellType=n.AutocompleteCellType,t.CELL_TYPE=n.CELL_TYPE},58527:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionUpByViewportHeight",callback(e){const{selection:t,rowIndexMapper:r}=e,{to:n}=e.getSelectedRangeActive(),s=Math.max(n.row-e.countVisibleRows(),0),i=r.getNearestNotHiddenIndex(s,1);if(null!==i){const r=e._createCellCoords(i,n.col),s=n.row-e.getFirstFullyVisibleRow(),o=Math.max(r.row-s,0);t.markSource("keyboard"),t.setRangeEnd(r,e.getActiveSelectionLayerIndex()),t.markEndSource(),e.scrollViewportTo({row:o,verticalSnap:"top",horizontalSnap:"start"})}}}},58584:(e,t,r)=>{"use strict";var n=r(72820),s=r(15105),i=r(69019),o=r(77439),a=r(19098),l=r(53001),h=r(44827),u=r(65455),c=r(56274),d=r(46367),g=r(55805),p=String,f=s("JSON","stringify"),m=a(/./.exec),w=a("".charAt),E=a("".charCodeAt),y=a("".replace),C=a(1.1.toString),v=/[\uD800-\uDFFF]/g,S=/^[\uD800-\uDBFF]$/,R=/^[\uDC00-\uDFFF]$/,T=!g||l(function(){var e=s("Symbol")("stringify detection");return"[null]"!==f([e])||"{}"!==f({a:e})||"{}"!==f(Object(e))}),N=l(function(){return'"\\udf06\\ud834"'!==f("\udf06\ud834")||'"\\udead"'!==f("\udead")}),_=function(e,t){var r=c(arguments),n=d(t);if(h(n)||void 0!==e&&!u(e))return r[1]=function(e,t){if(h(n)&&(t=o(n,this,p(e),t)),!u(t))return t},i(f,null,r)},A=function(e,t,r){var n=w(r,t-1),s=w(r,t+1);return m(S,e)&&!m(R,s)||m(R,e)&&!m(S,n)?"\\u"+C(E(e,0),16):e};f&&n({target:"JSON",stat:!0,arity:3,forced:T||N},{stringify:function(e,t,r){var n=c(arguments),s=i(T?_:f,null,n);return N&&"string"==typeof s?y(s,v,A):s}})},58710:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ROW_BELOW)},callback(){const e=this.getSelectedRangeActive().getBottomRightCorner();this.alter("insert_row_below",e.row,1,"ContextMenu.rowBelow")},disabled(){const e=this.getSelectedRangeActive();return!!(!e||this.selection.isSelectedByColumnHeader()||e.isSingleHeader()&&e.highlight.row<0||this.countSourceRows()>=this.getSettings().maxRows)},hidden(){return!this.getSettings().allowInsertRow}}};var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230));const s=t.KEY="row_below"},59174:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(89624),r(14950),r(98831),r(67046),r(38221),r(56050),r(65724),r(34478),r(31143);var s=n(r(24300));function i(e,t,r){(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,r)}function o(e,t){return e.get(function(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}(e,t))}var a=new WeakMap;t.ExtendMetaPropertiesMod=class{constructor(e){(0,s.default)(this,"metaManager",void 0),(0,s.default)(this,"usageTracker",new Set),(0,s.default)(this,"propDescriptors",new Map([["ariaTags",{initOnly:!0}],["fixedColumnsLeft",{target:"fixedColumnsStart",onChange(e){if(this.metaManager.hot.isRtl()&&"fixedColumnsLeft"===e)throw new Error("The `fixedColumnsLeft` is not supported for RTL. Please use option `fixedColumnsStart`.");if(this.usageTracker.has("fixedColumnsLeft")&&this.usageTracker.has("fixedColumnsStart"))throw new Error("The `fixedColumnsLeft` and `fixedColumnsStart` should not be used together. Please use only the option `fixedColumnsStart`.")}}],["layoutDirection",{initOnly:!0}],["renderAllColumns",{initOnly:!0}],["renderAllRows",{initOnly:!0}]])),i(this,a,(e,t,r)=>{if(!r)throw new Error(`The \`${e}\` option can not be updated after the Handsontable is initialized.`)}),this.metaManager=e,this.extendMetaProps()}extendMetaProps(){this.propDescriptors.forEach((e,t)=>{const{initOnly:r,target:n,onChange:s}=e,i="string"==typeof n,l=i?n:t,h=`_${l}`;this.metaManager.globalMeta.meta[h]=this.metaManager.globalMeta.meta[l],s?(this.installPropWatcher(t,h,s),i&&this.installPropWatcher(n,h,s)):r&&(this.installPropWatcher(t,h,o(a,this)),this.metaManager.globalMeta.meta._initOnlySettings||(this.metaManager.globalMeta.meta._initOnlySettings=[]),this.metaManager.globalMeta.meta._initOnlySettings.push(t))})}installPropWatcher(e,t,r){const n=this;Object.defineProperty(this.metaManager.globalMeta.meta,e,{get(){return this[t]},set(s){const i=!n.usageTracker.has(e);n.usageTracker.add(e),r.call(n,e,s,i),this[t]=s},enumerable:!0,configurable:!0})}}},59188:(e,t,r)=>{"use strict";var n=r(42328),s=r(31520);e.exports=n(s.proto,"size","get")||function(e){return e.size}},59476:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(99356);var s=n(r(24300));t.default=class{constructor(e){(0,s.default)(this,"plugin",void 0),(0,s.default)(this,"hot",void 0),(0,s.default)(this,"fullySelectedMergedCellClassName","fullySelectedMergedCell"),this.plugin=e,this.hot=e.hot}getSelectedMergedCellClassName(e,t,r,n){const s=Math.min(r[0],r[2]),i=Math.min(r[1],r[3]),o=Math.max(r[0],r[2]),a=Math.max(r[1],r[3]);if(void 0===n)return;if(!this.plugin.mergedCellsCollection.isFirstRenderableMergedCell(e,t))return;const l=this.plugin.mergedCellsCollection.get(e,t);if(!l)return;const h=l.getLastRow(),u=l.getLastColumn();return s<=l.row&&i<=l.col&&o>=h&&a>=u?`${this.fullySelectedMergedCellClassName}-${n}`:this.isMergeCellFullySelected(l,this.plugin.hot.getSelectedRange())?`${this.fullySelectedMergedCellClassName}-multiple`:void 0}isMergeCellFullySelected(e,t){const r=[];if(!t||!e)return!1;for(let t=0;t<e.rowspan;t+=1)for(let n=0;n<e.colspan;n+=1)r.push(this.hot._createCellCoords(e.row+t,e.col+n));for(let e=0;e<r.length;e+=1){const n=[];for(let s=0;s<t.length;s+=1)n[s]=t[s].includes(r[e]);if(!n.includes(!0))return!1}return!0}getSelectedMergedCellClassNameToRemove(){const e=[];for(let t=0;t<=7;t+=1)e.push(`${this.fullySelectedMergedCellClassName}-${t}`);return e.push(`${this.fullySelectedMergedCellClassName}-multiple`),e}}},59549:(e,t,r)=>{"use strict";var n=r(44827),s=r(15176),i=r(79937);e.exports=function(e,t,r){var o,a;return i&&n(o=t.constructor)&&o!==r&&s(a=o.prototype)&&a!==r.prototype&&i(e,a),e}},59589:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490);var s=n(r(24300)),i=r(42685);function o(e,t,r){(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,r)}function a(e,t){return e.get(h(e,t))}function l(e,t,r){return e.set(h(e,t),r),r}function h(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var u=new WeakMap;t.default=class{constructor(e,t,r,n,i,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),o(this,u,null),this.row=e,this.col=t,this.rowspan=r,this.colspan=n,this.cellCoordsFactory=i,this.cellRangeFactory=a}static NEGATIVE_VALUES_WARNING(e){let{row:t,col:r,rowspan:n,colspan:s}=e;return i.toSingleLine`The merged cell declared with {row: ${t}, col: ${r},\x20
263
+ Only \`${e}\` will work. The \`${t}\` plugin will remain disabled.`)},t.wasHeaderClickedProperly=function(e,t,r){return-1===e&&t>=0&&!1===(0,o.isRightClick)(r)},r(89624),r(14950),r(98831),r(67046),r(38221),r(56050),r(65724),r(34478),r(940),r(81056);var s=n(r(37539)),i=r(21389),o=r(31075),a=r(27727),l=r(2520),h=r(96357),u=r(42685);const c=t.ASC_SORT_STATE="asc",d=t.DESC_SORT_STATE="desc",g=t.HEADER_SPAN_CLASS="colHeader"},52695:(e,t,r)=>{"use strict";var n=r(72820),s=r(94266),i=r(96127).set,o=r(16610),a=s.setImmediate?o(i,!1):i;n({global:!0,bind:!0,enumerable:!0,forced:s.setImmediate!==a},{setImmediate:a})},52732:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300)),i=r(6083),o=n(r(6224)),a=r(37131),l=r(42210);class h extends a.Overlay{constructor(e,t,r,n,i,o){super(e,t,l.CLONE_TOP_INLINE_START_CORNER,r,n),(0,s.default)(this,"topOverlay",void 0),(0,s.default)(this,"inlineStartOverlay",void 0),this.topOverlay=i,this.inlineStartOverlay=o}createTable(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return new o.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),r=this.topOverlay.getOverlayOffset();(0,i.setOverlayPosition)(e,`${t}px`,`${r}px`)}else(0,i.resetCssTransform)(e);let t=(0,i.outerHeight)(this.clone.wtTable.TABLE);const r=(0,i.outerWidth)(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(t=0),e.style.height=`${t}px`,e.style.width=`${r}px`,!1}}t.TopInlineStartCornerOverlay=h},52863:()=>{},52938:(e,t,r)=>{"use strict";var n=r(72820),s=r(77439),i=r(94178),o=r(70792),a=r(90501),l=r(21177),h=r(99793),u=r(14483)("forEach",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:u},{forEach:function(e){a(this);try{o(e)}catch(e){h(this,"throw",e)}if(u)return s(u,this,e);var t=l(this),r=0;i(t,function(t){e(t,r++)},{IS_RECORD:!0})}})},53001:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},53076:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(63301),s=r(85994);class i extends n.IndexMap{insert(e,t){this.indexedValues=(0,s.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),super.insert(e,t)}remove(e){this.indexedValues=(0,s.getListWithRemovedItems)(this.indexedValues,e),super.remove(e)}}t.PhysicalIndexToValueMap=i},53175:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(34478),r(31143),r(33098);var s=n(r(24300)),i=r(6083),o=r(31078),a=r(40785),l=r(58231),h=r(55924),u=r(96357),c=r(82175);function d(e,t,r){(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,r)}function g(e,t,r){return e.set(f(e,t),r),r}function p(e,t){return e.get(f(e,t))}function f(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var m=new WeakMap,w=new WeakMap,E=new WeakMap,y=new WeakMap;t.default=class{constructor(e,t,r,n,a,l){(0,s.default)(this,"wot",null),d(this,m,[]),(0,s.default)(this,"topOverlay",null),(0,s.default)(this,"bottomOverlay",null),(0,s.default)(this,"inlineStartOverlay",null),(0,s.default)(this,"topInlineStartCornerOverlay",null),(0,s.default)(this,"bottomInlineStartCornerOverlay",null),(0,s.default)(this,"browserLineHeight",void 0),(0,s.default)(this,"wtSettings",null),d(this,w,!1),d(this,E,0),d(this,y,null),(0,s.default)(this,"resizeObserver",new ResizeObserver(e=>{(0,o.requestAnimationFrame)(()=>{Array.isArray(e)&&e.length&&(g(E,this,p(E,this)+1),300===p(E,this)&&((0,u.warn)("The ResizeObserver callback was fired too many times in direct succession.\nThis may be due to an infinite loop caused by setting a dynamic height/width (for example, with the `dvh` units) to a Handsontable container's parent. \nThe observer will be disconnected."),this.resizeObserver.disconnect()),null!==p(y,this)&&clearTimeout(p(y,this)),g(y,this,setTimeout(()=>{g(E,this,0)},100)),this.wtSettings.getSetting("onContainerElementResize"))})})),this.wot=e,this.wtSettings=n,this.domBindings=r,this.facadeGetter=t,this.wtTable=l;const{rootDocument:h,rootWindow:c}=this.domBindings;this.instance=this.wot,this.eventManager=a,this.scrollbarSize=(0,i.getScrollbarWidth)(h);const f="hidden"===c.getComputedStyle(l.wtRootElement.parentNode).getPropertyValue("overflow");this.scrollableElement=f?l.holder:(0,i.getScrollableElement)(l.TABLE),this.initOverlays(),this.destroyed=!1,this.keyPressed=!1,this.spreaderLastSize={width:null,height:null},this.verticalScrolling=!1,this.horizontalScrolling=!1,this.initBrowserLineHeight(),this.registerListeners(),this.lastScrollX=c.scrollX,this.lastScrollY=c.scrollY}getOverlays(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=[...p(m,this)];return e&&t.push(this.wtTable),t}initBrowserLineHeight(){const{rootWindow:e,rootDocument:t}=this.domBindings,r=e.getComputedStyle(t.body),n=parseInt(r.lineHeight,10),s=1.2*parseInt(r.fontSize,10);this.browserLineHeight=n||s}initOverlays(){const e=[this.wot,this.facadeGetter,this.wtSettings,this.domBindings];this.topOverlay=new c.TopOverlay(...e),this.bottomOverlay=new c.BottomOverlay(...e),this.inlineStartOverlay=new c.InlineStartOverlay(...e),this.topInlineStartCornerOverlay=new c.TopInlineStartCornerOverlay(...e,this.topOverlay,this.inlineStartOverlay),this.bottomInlineStartCornerOverlay=new c.BottomInlineStartCornerOverlay(...e,this.bottomOverlay,this.inlineStartOverlay),g(m,this,[this.topOverlay,this.bottomOverlay,this.inlineStartOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay])}beforeDraw(){g(w,this,p(m,this).reduce((e,t)=>t.hasRenderingStateChanged()||e,!1)),p(m,this).forEach(e=>e.updateStateOfRendering("before"))}afterDraw(){this.syncScrollWithMaster(),p(m,this).forEach(e=>{const t=e.hasRenderingStateChanged();e.updateStateOfRendering("after"),t&&!e.needFullRender&&e.reset()})}refreshAll(){this.wot.drawn&&(this.wtTable.holder.parentNode?(this.wot.draw(!0),this.verticalScrolling&&this.inlineStartOverlay.onScroll(),this.horizontalScrolling&&this.topOverlay.onScroll(),this.verticalScrolling=!1,this.horizontalScrolling=!1):this.destroy())}registerListeners(){const{rootDocument:e,rootWindow:t}=this.domBindings,{mainTableScrollableElement:r}=this.topOverlay,{mainTableScrollableElement:n}=this.inlineStartOverlay;this.eventManager.addEventListener(e.documentElement,"keydown",e=>this.onKeyDown(e)),this.eventManager.addEventListener(e.documentElement,"keyup",()=>this.onKeyUp()),this.eventManager.addEventListener(e,"visibilitychange",()=>this.onKeyUp()),this.eventManager.addEventListener(r,"scroll",e=>this.onTableScroll(e),{passive:!0}),r!==n&&this.eventManager.addEventListener(n,"scroll",e=>this.onTableScroll(e),{passive:!0});const s=t.devicePixelRatio&&t.devicePixelRatio>1,i=this.scrollableElement===t,a=this.wtSettings.getSetting("preventWheel"),l={passive:i};(a||s||!(0,h.isChrome)())&&this.eventManager.addEventListener(this.wtTable.wtRootElement,"wheel",e=>this.onCloneWheel(e,a),l);let u;[this.topOverlay,this.bottomOverlay,this.inlineStartOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay].forEach(e=>{this.eventManager.addEventListener(e.clone.wtTable.holder,"wheel",e=>this.onCloneWheel(e,a),l)}),this.eventManager.addEventListener(t,"resize",()=>{(0,o.requestAnimationFrame)(()=>{clearTimeout(u),this.wtSettings.getSetting("onWindowResize"),u=setTimeout(()=>{g(E,this,0)},200)})}),i||this.resizeObserver.observe(this.wtTable.wtRootElement.parentElement)}onTableScroll(e){const t=this.domBindings.rootWindow,r=this.inlineStartOverlay.mainTableScrollableElement,n=this.topOverlay.mainTableScrollableElement,s=e.target;this.keyPressed&&(n!==t&&s!==t&&!e.target.contains(n)||r!==t&&s!==t&&!e.target.contains(r))||this.syncScrollPositions(e)}onCloneWheel(e,t){if(e.ctrlKey)return;const{rootWindow:r}=this.domBindings,n=this.inlineStartOverlay.mainTableScrollableElement,s=this.topOverlay.mainTableScrollableElement,i=e.target,o=s!==r&&i!==r&&!i.contains(s),a=n!==r&&i!==r&&!i.contains(n);if(this.keyPressed&&(o||a)||this.scrollableElement===r)return;const l=this.translateMouseWheelToScroll(e);(t||this.scrollableElement!==r&&l)&&e.preventDefault()}onKeyDown(e){this.keyPressed=(0,l.isKey)(e.keyCode,"ARROW_UP|ARROW_RIGHT|ARROW_DOWN|ARROW_LEFT")}onKeyUp(){this.keyPressed=!1}translateMouseWheelToScroll(e){let t=isNaN(e.deltaY)?-1*e.wheelDeltaY:e.deltaY,r=isNaN(e.deltaX)?-1*e.wheelDeltaX:e.deltaX;1===e.deltaMode&&(r+=r*this.browserLineHeight,t+=t*this.browserLineHeight);const n=this.scrollVertically(t),s=this.scrollHorizontally(r);return n||s}scrollVertically(e){const t=this.scrollableElement.scrollTop;return this.scrollableElement.scrollTop+=e,t!==this.scrollableElement.scrollTop}scrollHorizontally(e){const t=this.scrollableElement.scrollLeft;return this.scrollableElement.scrollLeft+=e,t!==this.scrollableElement.scrollLeft}syncScrollPositions(){if(this.destroyed)return;const e=this.topOverlay.clone.wtTable.holder,t=this.inlineStartOverlay.clone.wtTable.holder;let r=this.scrollableElement.scrollLeft,n=this.scrollableElement.scrollTop;if(this.wot.wtViewport.isHorizontallyScrollableByWindow()&&(r=this.scrollableElement.scrollX),this.wot.wtViewport.isVerticallyScrollableByWindow()&&(n=this.scrollableElement.scrollY),this.horizontalScrolling=this.lastScrollX!==r,this.verticalScrolling=this.lastScrollY!==n,this.lastScrollX=r,this.lastScrollY=n,this.horizontalScrolling){e.scrollLeft=r;const t=this.bottomOverlay.needFullRender?this.bottomOverlay.clone.wtTable.holder:null;t&&(t.scrollLeft=r)}this.verticalScrolling&&(t.scrollTop=n),this.refreshAll()}syncScrollWithMaster(){if(!p(w,this))return;const e=this.topOverlay.mainTableScrollableElement,{scrollLeft:t,scrollTop:r}=e;this.topOverlay.needFullRender&&(this.topOverlay.clone.wtTable.holder.scrollLeft=t),this.bottomOverlay.needFullRender&&(this.bottomOverlay.clone.wtTable.holder.scrollLeft=t),this.inlineStartOverlay.needFullRender&&(this.inlineStartOverlay.clone.wtTable.holder.scrollTop=r),g(w,this,!1)}updateMainScrollableElements(){this.eventManager.clearEvents(!0),this.inlineStartOverlay.updateMainScrollableElement(),this.topOverlay.updateMainScrollableElement(),this.bottomOverlay.needFullRender&&this.bottomOverlay.updateMainScrollableElement();const{wtTable:e}=this,{rootWindow:t}=this.domBindings;"hidden"===t.getComputedStyle(e.wtRootElement.parentNode).getPropertyValue("overflow")?this.scrollableElement=e.holder:this.scrollableElement=(0,i.getScrollableElement)(e.TABLE),this.registerListeners()}destroy(){this.resizeObserver.disconnect(),this.eventManager.destroy(),this.topOverlay.destroy(),this.bottomOverlay.clone&&this.bottomOverlay.destroy(),this.inlineStartOverlay.destroy(),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.destroy(),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.destroy(),this.destroyed=!0}refresh(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateLastSpreaderSize()&&this.adjustElementsSize(),this.bottomOverlay.clone&&this.bottomOverlay.refresh(e),this.inlineStartOverlay.refresh(e),this.topOverlay.refresh(e),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.refresh(e),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.refresh(e)}updateLastSpreaderSize(){const e=this.wtTable.spreader,t=e.clientWidth,r=e.clientHeight,n=t!==this.spreaderLastSize.width||r!==this.spreaderLastSize.height;return n&&(this.spreaderLastSize.width=t,this.spreaderLastSize.height=r),n}adjustElementsSize(){const{wtViewport:e}=this.wot,{wtTable:t}=this,{rootWindow:r}=this.domBindings,n=this.scrollableElement===r,s=this.wtSettings.getSetting("totalColumns"),i=this.wtSettings.getSetting("totalRows"),o=e.getRowHeaderWidth(),a=e.getColumnHeaderHeight(),l=this.wtSettings.getSetting("externalRowCalculator")?0:1,h=a+this.topOverlay.sumCellSizes(0,i)+l,u=o+this.inlineStartOverlay.sumCellSizes(0,s),c=t.hider.style,d=(()=>!n&&this.scrollableElement.scrollTop>Math.max(0,h-t.holder.clientHeight))()?1:0,g=(()=>!n&&this.scrollableElement.scrollLeft>Math.max(0,u-t.holder.clientWidth))()?1:0;c.width=`${u+g}px`,c.height=`${h+d}px`,this.topOverlay.adjustElementsSize(),this.inlineStartOverlay.adjustElementsSize(),this.bottomOverlay.adjustElementsSize()}expandHiderVerticallyBy(e){const{wtTable:t}=this;t.hider.style.height=`${parseInt(t.hider.style.height,10)+e}px`}expandHiderHorizontallyBy(e){const{wtTable:t}=this;t.hider.style.width=`${parseInt(t.hider.style.width,10)+e}px`}applyToDOM(){this.wtTable.isVisible()&&(this.topOverlay.applyToDOM(),this.bottomOverlay.clone&&this.bottomOverlay.applyToDOM(),this.inlineStartOverlay.applyToDOM())}getParentOverlay(e){if(!e)return null;const t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay];let r=null;return(0,a.arrayEach)(t,t=>{t&&t.clone&&t.clone.wtTable.TABLE.contains(e)&&(r=t.clone)}),r}syncOverlayTableClassNames(){const e=this.wtTable.TABLE,t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay];(0,a.arrayEach)(t,t=>{t&&(t.clone.wtTable.TABLE.className=e.className)})}}},53180:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"populateSelectedCellsData",callback(e){const t=e.getSelectedRange(),{row:r,col:n}=t[t.length-1].highlight.normalize(),s=e.getDataAtCell(r,n),i=new Map;for(let o=0;o<t.length;o++)t[o].forAll((t,o)=>{if(t>=0&&o>=0&&(t!==r||o!==n)){const{readOnly:r}=e.getCellMeta(t,o);r||i.set(`${t}x${o}`,[t,o,s])}});e.setDataAtCell(Array.from(i.values()))}}},53209:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(89624),r(14950),r(98831),r(67046),r(38221),r(56050),r(65724),r(34478),r(66133);var s=n(r(24300)),i=r(53383),o=r(1531),a=r(40785);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",u=t.PLUGIN_PRIORITY=330;var c=new WeakSet;class d extends i.BasePlugin{constructor(){super(...arguments),l(this,c),(0,s.default)(this,"trimmedRowsMap",null)}static get PLUGIN_KEY(){return h}static get PLUGIN_PRIORITY(){return u}isEnabled(){return!!this.hot.getSettings()[h]}enablePlugin(){this.enabled||(this.trimmedRowsMap=this.hot.rowIndexMapper.registerMap("trimRows",new o.TrimmingMap),this.trimmedRowsMap.addLocalHook("init",()=>function(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}(c,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(),r=this.isValidConfig(e);let n=t;r&&(n=Array.from(new Set(t.concat(e))));!1!==this.hot.runHooks("beforeTrimRow",t,n,r)&&(r&&this.hot.batchExecution(()=>{(0,a.arrayEach)(e,e=>{this.trimmedRowsMap.setValueAtIndex(e,!0)})},!0),this.hot.runHooks("afterTrimRow",t,n,r,r&&n.length>t.length))}trimRow(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.trimRows(t)}untrimRows(e){const t=this.getTrimmedRows(),r=this.isValidConfig(e);let n=t;const s=this.trimmedRowsMap.getValues().slice(),i=e.length>0;r&&i&&((0,a.arrayEach)(e,e=>{s[e]=!1}),n=(0,a.arrayReduce)(s,(e,t,r)=>(t&&e.push(r),e),[]));!1!==this.hot.runHooks("beforeUntrimRow",t,n,r&&i)&&(r&&i&&this.trimmedRowsMap.setValues(s),this.hot.runHooks("afterUntrimRow",t,n,r&&i,r&&n.length<t.length))}untrimRow(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];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},53383:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(90474);t.PLUGIN_KEY=n.PLUGIN_KEY,t.BasePlugin=n.BasePlugin,t.defaultMainSettingSymbol=n.defaultMainSettingSymbol},53439:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(8706);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.MultipleSelectionHandles=n.MultipleSelectionHandles},53477:(e,t,r)=>{"use strict";r(34478),r(31143);var n=r(73805);t.__esModule=!0;var s={SelectionManager:!0,Selection:!0},i=n(r(4911));t.Selection=i.default;var o=r(72380);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===o[e]||(t[e]=o[e]))});var a=r(2029);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===a[e]||(t[e]=a[e]))});var l=r(50182);t.SelectionManager=l.SelectionManager},53683:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"commentsReadOnly",name(){const t=this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT);return(0,s.checkSelectionConsistency)(this.getSelectedRange(),(t,r)=>e.getCommentMeta(t,r,i.META_READONLY))?(0,s.markLabelAsSelected)(t):t},callback(){this.getSelectedRangeActive().forAll((t,r)=>{if(t>=0&&r>=0){const n=!!e.getCommentMeta(t,r,i.META_READONLY);e.updateCommentMeta(t,r,{[i.META_READONLY]:!n})}})},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 n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),s=r(57011),i=r(95804)},53686:()=>{},53772:(e,t,r)=>{"use strict";t.__esModule=!0,t.createKeyboardShortcutCommandsPool=function(e){const t={};return c.forEach(r=>{let{name:n,callback:s}=r;t[n]=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return s(e,...r)}}),t};var n=r(63036),s=r(74164),i=r(6886),o=r(15667),a=r(27089),l=r(68830),h=r(75891),u=r(53180);const c=[...(0,n.getAllCommands)(),...(0,s.getAllCommands)(),...(0,i.getAllCommands)(),o.command,a.command,l.command,h.command,u.command]},53872:(e,t,r)=>{"use strict";var n=r(49887),s=TypeError;e.exports=function(e){if(n(e))throw new s("Can't call method on "+e);return e}},53931:(e,t,r)=>{"use strict";var n=r(15105);e.exports=n("document","documentElement")},54070:()=>{},54193:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(85689),s=r(23845),i=r(75829);const o=t.CELL_TYPE="date";t.DateCellType={CELL_TYPE:o,editor:n.DateEditor,renderer:s.dateRenderer,validator:i.dateValidator}},54271:()=>{},54415:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostBottom",callback(e){const{selection:t,rowIndexMapper:r}=e,{highlight:n,from:s,to:i}=e.getSelectedRangeActive(),o=n.isHeader()&&t.isSelectedByRowHeader();if(n.isCell()||o){const a=r.getNearestNotHiddenIndex(e.countRows()-1,-1),l=s.clone();l.row=n.row,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,n.clone()),o&&t.selectedByRowHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(a,i.col)),t.markEndSource()}}}},54430:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(75240);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.ExportFile=n.ExportFile},54531:(e,t,r)=>{"use strict";r(34478),r(31143),t.__esModule=!0;var n=r(2090);Object.keys(n).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||(t[e]=n[e]))});var s=r(58033);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))})},54635:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490);var s=r(40785),i=n(r(18095));function o(e,t,r){(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,r)}function a(e,t){return e.get(l(e,t))}function l(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,u=new WeakMap,c=new WeakMap;t.default=class{constructor(e){var t,r,n;o(this,h,new Map),o(this,u,new Map),o(this,c,null),r=this,n=e,(t=c).set(l(t,r),n)}getRoots(){return Array.from(a(h,this).values())}getRootByColumn(e){let t;return a(u,this).has(e)&&(t=a(h,this).get(a(u,this).get(e))),t}getNode(e,t){const r=this.getRootByColumn(t);if(!r)return;const n=t-a(u,this).get(t);let s,i=0;return r.walkDown(r=>{const{data:{origColspan:o,headerLevel:a}}=r;if(e===a){if(n>=i&&n<=i+o-1)return s=r,s.data.isRoot=t===s.data.columnIndex,!1;i+=o}}),s}rebuildTreeIndex(){let e=0;a(u,this).clear(),(0,s.arrayEach)(a(h,this),t=>{let[,{data:{colspan:r}}]=t;for(let t=e;t<e+r;t++)a(u,this).set(t,e);e+=r})}buildTree(){this.clear();const e=a(c,this).getColumnsCount();let t=0;for(;t<e;){const e=a(c,this).getHeaderSettings(0,t),r=new i.default;a(h,this).set(t,r),this.buildLeaves(r,t,0,e.origColspan),t+=e.origColspan}this.rebuildTreeIndex()}buildLeaves(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const o=a(c,this).getHeadersSettings(r,t,n);r+=1,(0,s.arrayEach)(o,n=>{const s={...n,headerLevel:r-1,columnIndex:t};let o;1===r?(e.data=s,o=e):(o=new i.default(s),e.addChild(o)),r<a(c,this).getLayersCount()&&this.buildLeaves(o,t,r,n.origColspan),t+=n.origColspan})}clear(){a(h,this).clear(),a(u,this).clear()}}},54919:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(51142);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.HiddenRows=n.HiddenRows},54983:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490);var s=n(r(24300));function i(e,t,r){(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,r)}function o(e,t){return e.get(l(e,t))}function a(e,t,r){return e.set(l(e,t),r),r}function l(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var h=new WeakMap;class u{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,s.default)(this,"row",null),(0,s.default)(this,"col",null),i(this,h,!1),a(h,this,r),void 0!==e&&void 0!==t&&(this.row=e,this.col=t)}isValid(e){const{countRows:t,countCols:r,countRowHeaders:n,countColHeaders:s}={countRows:0,countCols:0,countRowHeaders:0,countColHeaders:0,...e};return!(!Number.isInteger(this.row)||!Number.isInteger(this.col))&&(!(this.row<-s||this.col<-n)&&!(this.row>=t||this.col>=r))}isEqual(e){return e===this||this.row===e.row&&this.col===e.col}isHeader(){return!this.isCell()}isCell(){return this.row>=0&&this.col>=0}isRtl(){return o(h,this)}isSouthEastOf(e){return this.row>=e.row&&(o(h,this)?this.col<=e.col:this.col>=e.col)}isNorthWestOf(e){return this.row<=e.row&&(o(h,this)?this.col>=e.col:this.col<=e.col)}isSouthWestOf(e){return this.row>=e.row&&(o(h,this)?this.col>=e.col:this.col<=e.col)}isNorthEastOf(e){return this.row<=e.row&&(o(h,this)?this.col<=e.col:this.col>=e.col)}normalize(){return this.row=null===this.row?this.row:Math.max(this.row,0),this.col=null===this.col?this.col:Math.max(this.col,0),this}assign(e){return Number.isInteger(null==e?void 0:e.row)&&(this.row=e.row),Number.isInteger(null==e?void 0:e.col)&&(this.col=e.col),e instanceof u&&a(h,this,e.isRtl()),this}clone(){return new u(this.row,this.col,o(h,this))}toObject(){return{row:this.row,col:this.col}}}t.default=u},55237:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490);var s=n(r(24300)),i=r(58231),o=r(31075),a=r(69264),l=n(r(46427));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 u(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var c=new WeakSet;class d{constructor(e,t,r){h(this,c),(0,s.default)(this,"hot",void 0),(0,s.default)(this,"tableMeta",void 0),(0,s.default)(this,"selection",void 0),(0,s.default)(this,"eventManager",void 0),(0,s.default)(this,"destroyed",!1),(0,s.default)(this,"activeEditor",void 0),(0,s.default)(this,"cellProperties",void 0),this.hot=e,this.tableMeta=t,this.selection=r,this.eventManager=new l.default(e),this.hot.addHook("afterDocumentKeyDown",e=>u(c,this,g).call(this,e)),this.hot.addHook("beforeCompositionStart",e=>u(c,this,g).call(this,e)),this.hot.view._wt.update("onCellDblClick",(e,t,r)=>u(c,this,p).call(this,e,t,r))}getActiveEditor(){return this.activeEditor}prepareEditor(){var e;if(this.activeEditor&&this.activeEditor.isWaiting())return void this.closeEditor(!1,!1,e=>{e&&this.prepareEditor()});const t=null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.highlight;if(!t||t.isHeader())return;const{row:r,col:n}=t,s=this.hot.runHooks("modifyGetCellCoords",r,n,!1,"meta");let i=r,o=n;if(Array.isArray(s)&&([i,o]=s),this.cellProperties=this.hot.getCellMeta(i,o),!this.isCellEditable())return void this.clearActiveEditor();const l=this.hot.getCell(r,n,!0);if(l){const e=this.hot.getCellEditor(this.cellProperties),t=this.hot.colToProp(o),s=this.hot.getSourceDataAtCell(this.hot.toPhysicalRow(i),o);this.activeEditor=(0,a.getEditorInstance)(e,this.hot),this.activeEditor.prepare(r,n,t,l,s,this.cellProperties)}}isEditorOpened(){return this.activeEditor&&this.activeEditor.isOpened()}openEditor(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this.isCellEditable())return void this.clearActiveEditor();const n=this.hot.getSelectedRangeActive();let s=this.hot.runHooks("beforeBeginEditing",n.highlight.row,n.highlight.col,e,t,r);t instanceof MouseEvent&&"boolean"!=typeof s&&(s=0===this.hot.selection.getLayerLevel()&&n.isSingle()),!1!==s?(this.activeEditor||(this.hot.scrollToFocusedCell(),this.prepareEditor()),this.activeEditor&&(r&&this.activeEditor.enableFullEditMode(),this.activeEditor.beginEditing(e,t))):this.clearActiveEditor()}closeEditor(e,t,r){this.activeEditor?this.activeEditor.finishEditing(e,t,r):r&&r(!1)}closeEditorAndSaveChanges(e){this.closeEditor(!1,e)}closeEditorAndRestoreOriginalValue(e){this.closeEditor(!0,e)}clearActiveEditor(){this.activeEditor=void 0}isCellEditable(){const e=this.hot.getSelectedRangeActive();if(!e)return!1;const t=this.hot.getCellEditor(this.cellProperties),{row:r,col:n}=e.highlight,{rowIndexMapper:s,columnIndexMapper:i}=this.hot,o=s.isHidden(this.hot.toPhysicalRow(r))||i.isHidden(this.hot.toPhysicalColumn(n));return!(this.cellProperties.readOnly||!t||o)}moveSelectionAfterEnter(e){const t={..."function"==typeof this.tableMeta.enterMoves?this.tableMeta.enterMoves(e):this.tableMeta.enterMoves};e.shiftKey&&(t.row=-t.row,t.col=-t.col),this.hot.selection.isMultiple()?this.selection.transformFocus(t.row,t.col):this.selection.transformStart(t.row,t.col,!0)}destroy(){this.destroyed=!0,this.eventManager.destroy()}}function g(e){const t=this.hot.getSelectedRangeActive();if(!this.hot.isListening()||!t||t.highlight.isHeader()||(0,o.isImmediatePropagationStopped)(e))return;const{keyCode:r}=e,n=(e.ctrlKey||e.metaKey)&&!e.altKey;(!this.activeEditor||this.activeEditor&&!this.activeEditor.isWaiting())&&((0,i.isFunctionKey)(r)||(0,i.isCtrlMetaKey)(r)||n||this.isEditorOpened()||this.openEditor("",e))}function p(e,t){t.isCell()&&(this.hot.getShortcutManager().isCtrlPressed()?this.clearActiveEditor():this.openEditor(null,e,!0))}const f=new WeakMap;d.getInstance=function(e,t,r){let n=f.get(e);return n||(n=new d(e,t,r),f.set(e,n)),n};t.default=d},55316:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490);var s=n(r(24300)),i=r(6083),o=n(r(97816)),a=r(37131),l=r(42210);class h extends a.Overlay{constructor(e,t,r,n){super(e,t,l.CLONE_BOTTOM,r,n),(0,s.default)(this,"cachedFixedRowsBottom",-1),this.cachedFixedRowsBottom=this.wtSettings.getSetting("fixedRowsBottom")}createTable(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return new o.default(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderBottomOverlay")}resetFixedPosition(){if(!this.needFullRender||!this.shouldBeRendered()||!this.wot.wtTable.holder.parentNode)return!1;const{rootWindow:e}=this.domBindings,t=this.clone.wtTable.holder.parentNode;t.style.top="";let r=0;const n=this.wtSettings.getSetting("preventOverflow");this.trimmingContainer!==e||n&&"vertical"===n?(r=this.getScrollPosition(),this.repositionOverlay()):(r=this.getOverlayOffset(),t.style.bottom=`${r}px`);const s=this.adjustHeaderBordersPosition(r);return this.adjustElementsSize(),s}repositionOverlay(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:r}=this.domBindings,n=this.clone.wtTable.holder.parentNode;let s=0;t.hasVerticalScroll()||(s+=t.getWorkspaceHeight()-e.getTotalHeight()),t.hasVerticalScroll()&&t.hasHorizontalScroll()&&(s+=(0,i.getScrollbarWidth)(r)),n.style.bottom=`${s}px`}setScrollPosition(e){const{rootWindow:t}=this.domBindings,r=this.mainTableScrollableElement;let n=!1;if(r===t&&e!==t.scrollY){const e=t.scrollY;t.scrollTo((0,i.getWindowScrollLeft)(t),top),n=e!==t.scrollY}else if(e!==r.scrollTop){const t=r.scrollTop;r.scrollTop=e,n=t!==r.scrollTop}return n}onScroll(){this.wtSettings.getSetting("onScrollHorizontally")}sumCellSizes(e,t){const{wtTable:r,wtSettings:n}=this.wot,s=n.getSetting("stylesHandler").getDefaultRowHeight();let i=e,o=0;for(;i<t;){const e=r.getRowHeight(i);o+=void 0===e?s:e,i+=1}return o}adjustElementsSize(){this.updateTrimmingContainer(),this.needFullRender&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}adjustRootElementSize(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:r,rootWindow:n}=this.domBindings,s=this.clone.wtTable.holder.parentNode.style,o=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==n||"horizontal"===o){let n=t.getWorkspaceWidth();t.hasVerticalScroll()&&(n-=(0,i.getScrollbarWidth)(r)),n=Math.min(n,e.wtRootElement.scrollWidth),s.width=`${n}px`}else s.width="";this.clone.wtTable.holder.style.width=s.width;let a=(0,i.outerHeight)(this.clone.wtTable.TABLE);e.hasDefinedSize()||(a=0),s.height=`${a}px`}adjustRootChildrenSize(){const{holder:e}=this.clone.wtTable;this.clone.wtTable.hider.style.width=this.hider.style.width,e.style.width=e.parentNode.style.width,e.style.height=e.parentNode.style.height}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){let r=this.getTableParentOffset();const n=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder;let s=0;t&&n.offsetHeight!==n.clientHeight&&(s=(0,i.getScrollbarWidth)(this.domBindings.rootDocument)),t?(r+=this.sumCellSizes(0,e+1),r-=this.wot.wtViewport.getViewportHeight(),r+=1):r+=this.sumCellSizes(this.wtSettings.getSetting("fixedRowsBottom"),e),r+=s,this.setScrollPosition(r)}getTableParentOffset(){return this.mainTableScrollableElement===this.domBindings.rootWindow?this.wot.wtTable.holderOffset.top:0}getScrollPosition(){return(0,i.getScrollTop)(this.mainTableScrollableElement,this.domBindings.rootWindow)}getOverlayOffset(){const{rootWindow:e}=this.domBindings,t=this.wtSettings.getSetting("preventOverflow");let r=0;if(this.trimmingContainer===e&&(!t||"vertical"!==t)){const e=this.wot.wtTable.getTotalHeight(),t=e-this.clone.wtTable.getTotalHeight(),n=this.domBindings.rootDocument.documentElement.clientHeight;r=Math.max(this.getTableParentOffset()-this.getScrollPosition()-n+e,0),r>t&&(r=0)}return r}adjustHeaderBordersPosition(e){const t=this.wtSettings.getSetting("fixedRowsBottom"),r=this.cachedFixedRowsBottom!==t,n=this.wtSettings.getSetting("columnHeaders");let s=!1;if((r||0===t)&&n.length>0){const t=this.wot.wtTable.holder.parentNode,r=(0,i.hasClass)(t,"innerBorderBottom");this.cachedFixedRowsBottom=this.wtSettings.getSetting("fixedRowsBottom"),e||0===this.wtSettings.getSetting("totalRows")?((0,i.addClass)(t,"innerBorderBottom"),s=!r):((0,i.removeClass)(t,"innerBorderBottom"),s=r)}return s}}t.BottomOverlay=h},55517:(e,t,r)=>{"use strict";t.__esModule=!0,t.filterSeparators=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.SEPARATOR,r=e.slice(0);return r=a(r,t),r=function(e,t){let r=e.slice(0);return r.reverse(),r=a(r,t),r.reverse(),r}(r,t),r=function(e){const t=[];return(0,n.arrayEach)(e,(e,r)=>{r>0?t[t.length-1].name!==e.name&&t.push(e):t.push(e)}),t}(r),r},t.hasSubMenu=function(e){return(0,i.hasClass)(e,"htSubmenu")},t.isDisabled=function(e){return(0,i.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(o.SEPARATOR,"i").test(e.name)},t.isItemSubMenu=function(e){return(0,s.hasOwnProperty)(e,"submenu")},t.isSelectionDisabled=function(e){return(0,i.hasClass)(e,"htSelectionDisabled")},t.isSeparator=function(e){return(0,i.hasClass)(e,"htSeparator")},t.normalizeSelection=function(e){return(0,n.arrayMap)(e,e=>({start:e.getTopStartCorner(),end:e.getBottomEndCorner()}))},r(99356);var n=r(40785),s=r(21389),i=r(6083),o=r(70095);function a(e,t){const r=e.slice(0);for(let e=0;e<r.length&&r[e].name===t;)r.shift();return r}},55585:(e,t)=>{"use strict";t.__esModule=!0,t.resolveWithInstance=function(e,t){var n;return null==r||null===(n=r.get(e.guid))||void 0===n?void 0:n.get(t)},t.staticRegister=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"common";r.has(e)||r.set(e,new Map);const t=r.get(e);return{register:function(e,r){t.set(e,r)},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(){r.delete(e),t.clear()}}};const r=t.collection=new Map},55696:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(16607);t.CELL_TYPE=n.CELL_TYPE,t.DropdownCellType=n.DropdownCellType},55708:(e,t,r)=>{"use strict";t.__esModule=!0,t.collapseNode=function e(t){var r;const{data:o,childs:a}=t;if(o.isCollapsed||o.isHidden||o.origColspan<=1)return{rollbackModification:()=>{},affectedColumns:[],colspanCompensation:0};if((0,i.isNodeReflectsFirstChildColspan)(t))return e(a[0]);o.isCollapsed=!0;const l=a.slice(1),h=new Set;if(l.length>0)(0,n.arrayEach)(l,e=>{(0,i.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}=o;for(let r=1;r<e;r++){const e=t+r;h.add(e)}}const u=o.colspan-(null!==(r=(0,i.getFirstChildProperty)(t,"colspan"))&&void 0!==r?r:1);return t.walkUp(e=>{const{data:t}=e;t.colspan-=u,t.colspan<=1?(t.colspan=1,t.isCollapsed=!0):(0,i.isNodeReflectsFirstChildColspan)(e)&&(t.isCollapsed=(0,i.getFirstChildProperty)(e,"isCollapsed"))}),{rollbackModification:()=>(0,s.expandNode)(t),affectedColumns:Array.from(h),colspanCompensation:u}},r(89624),r(14950),r(98831),r(67046),r(38221),r(56050),r(65724);var n=r(40785),s=r(27367),i=r(42413)},55761:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.createHighlight=function(e){let{border:t,visualCellRange:r,...n}=e;return new i.default({...t,...n,selectionType:s.HIGHLIGHT_CUSTOM_SELECTION_TYPE},r)};var s=r(74216),i=n(r(44982))},55766:()=>{},55805:(e,t,r)=>{"use strict";var n=r(52637),s=r(53001),i=r(94266).String;e.exports=!!Object.getOwnPropertySymbols&&!s(function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},55924:(e,t,r)=>{"use strict";t.__esModule=!0,t.isChrome=function(){return o.chrome.value},t.isChromeWebKit=function(){return o.chromeWebKit.value},t.isEdge=function(){return o.edge.value},t.isEdgeWebKit=function(){return o.edgeWebKit.value},t.isFirefox=function(){return o.firefox.value},t.isFirefoxWebKit=function(){return o.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 o.mobile.value},t.isSafari=function(){return o.safari.value},t.isWindowsOS=function(){return a.win.value},t.setBrowserMeta=l,t.setPlatformMeta=h;var n=r(21389),s=r(31078);const i=e=>{const t={value:!1,test:(r,n)=>{t.value=e(r,n)}};return t},o={chrome:i((e,t)=>/Chrome/.test(e)&&/Google/.test(t)),chromeWebKit:i(e=>/CriOS/.test(e)),edge:i(e=>/Edge/.test(e)),edgeWebKit:i(e=>/EdgiOS/.test(e)),firefox:i(e=>/Firefox/.test(e)),firefoxWebKit:i(e=>/FxiOS/.test(e)),mobile:i(e=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)),safari:i((e,t)=>/Safari/.test(e)&&/Apple Computer/.test(t))},a={mac:i(e=>/^Mac/.test(e)),win:i(e=>/^Win/.test(e)),linux:i(e=>/^Linux/.test(e)),ios:i(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,n.objectEach)(o,r=>{let{test:n}=r;n(e,t)})}function h(){let{platform:e=navigator.platform}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,n.objectEach)(a,t=>{let{test:r}=t;r(e)})}(0,s.isCSR)()&&(l(),h())},55941:(e,t)=>{"use strict";t.__esModule=!0,t.hasValidParameter=function(e){return e===n},t.isRootInstance=function(e){return r.has(e)},t.registerAsRootInstance=function(e){r.set(e,!0)};const r=t.holder=new WeakMap,n=t.rootInstanceSymbol=Symbol("rootInstance")},55962:()=>{},56050:(e,t,r)=>{"use strict";var n=r(72820),s=r(71468),i=r(34701);n({target:"Set",proto:!0,real:!0,forced:!r(12874)("symmetricDifference")||!i("symmetricDifference")},{symmetricDifference:s})},56274:(e,t,r)=>{"use strict";var n=r(19098);e.exports=n([].slice)},56300:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(21389);const s={getFirstRenderedRow(){return 0===this.getRenderedRowsCount()?-1:0},getFirstVisibleRow(){return this.getFirstRenderedRow()},getFirstPartiallyVisibleRow(){return this.getFirstRenderedRow()},getLastRenderedRow(){return this.getRenderedRowsCount()-1},getLastVisibleRow(){return this.getLastRenderedRow()},getLastPartiallyVisibleRow(){return this.getLastRenderedRow()},getRenderedRowsCount(){return Math.min(this.wtSettings.getSetting("totalRows"),this.wtSettings.getSetting("fixedRowsTop"))},getVisibleRowsCount(){return this.getRenderedRowsCount()},getColumnHeadersCount(){return this.dataAccessObject.columnHeaders.length}};(0,n.defineGetter)(s,"MIXIN_NAME","stickyRowsTop",{writable:!1,enumerable:!1});t.default=s},56426:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(72032);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.Search=n.Search},56643:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},57006:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(34478),r(29810),r(31143),r(33098);var s=n(r(24300)),i=r(53383),o=r(31078),a=n(r(97539)),l=r(21389),h=r(4407),u=n(r(38602)),c=r(82887),d=r(1531),g=r(6083);function p(e,t,r){f(e,t),t.set(e,r)}function f(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function m(e,t,r){return e.set(E(e,t),r),r}function w(e,t){return e.get(E(e,t))}function E(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const y=t.PLUGIN_KEY="autoRowSize",C=t.PLUGIN_PRIORITY=40,v="htFirstDatasetColumnNotRendered";var S=new WeakMap,R=new WeakMap,T=new WeakSet;class N extends i.BasePlugin{static get PLUGIN_KEY(){return y}static get PLUGIN_PRIORITY(){return C}static get SETTING_KEYS(){return!0}static get DEFAULT_SETTINGS(){return{useHeaders:!0,samplingRatio:null,allowSampleDuplicates:!1}}static get CALCULATION_STEP(){return 50}static get SYNC_CALCULATION_LIMIT(){return 500}constructor(e){var t,r;super(e),f(t=this,r=T),r.add(t),(0,s.default)(this,"headerHeight",null),(0,s.default)(this,"ghostTable",new a.default(this.hot)),(0,s.default)(this,"samplesGenerator",new u.default((e,t)=>{const r=this.hot.toPhysicalColumn(t);if(this.hot.columnIndexMapper.isHidden(r))return!1;if(e>=0&&t>=0){if(this.hot.getCellMeta(e,t).hidden)return!1}let n;return e>=0?n=this.hot.getDataAtCell(e,t):-1===e&&(n=this.hot.getColHeader(t)),{value:n}})),(0,s.default)(this,"inProgress",!1),(0,s.default)(this,"measuredRows",0),(0,s.default)(this,"rowHeightsMap",new d.PhysicalIndexToValueMap),p(this,S,[]),p(this,R,!1),this.hot.rowIndexMapper.registerMap("autoRowSize",this.rowHeightsMap),this.addHook("beforeRowResize",(e,t,r)=>E(T,this,I).call(this,e,t,r))}isEnabled(){const e=this.hot.getSettings()[y];return!0===e||(0,l.isObject)(e)}enablePlugin(){var e=this;if(this.enabled)return;this.samplesGenerator.setAllowDuplicates(this.getSetting("allowSampleDuplicates"));const t=this.getSetting("samplingRatio");t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),this.addHook("afterLoadData",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return E(T,e,O).call(e,...r)}),this.addHook("beforeChangeRender",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return E(T,e,x).call(e,...r)}),this.addHook("beforeColumnResize",()=>this.recalculateAllRowsHeight()),this.addHook("afterFormulasValuesUpdate",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return E(T,e,L).call(e,...r)}),this.addHook("beforeViewRender",()=>E(T,this,b).call(this)),this.addHook("beforeRender",()=>E(T,this,M).call(this)),this.addHook("modifyRowHeight",(e,t)=>this.getRowHeight(t,e)),this.addHook("init",()=>E(T,this,P).call(this)),this.addHook("modifyColumnHeaderHeight",()=>this.getColumnHeaderHeight()),super.enablePlugin()}disablePlugin(){this.headerHeight=null,super.disablePlugin(),E(T,this,A).call(this,!1),this.addHook("beforeRowResize",(e,t,r)=>E(T,this,I).call(this,e,t,r))}calculateVisibleRowsHeight(){if(!this.hot.countCols())return;const e=this.getFirstVisibleRow(),t=this.getLastVisibleRow();if(-1===e||-1===t)return;const r=this.hot.forceFullRender;this.calculateRowsHeight({from:e,to:t},void 0,r)}calculateRowsHeight(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countCols()-1},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n="number"==typeof e?{from:e,to:e}:e,s="number"==typeof t?{from:t,to:t}:t;if(null!==this.hot.getColHeader(0)){const e=this.samplesGenerator.generateRowSamples(-1,s);this.ghostTable.addColumnHeadersRow(e.get(-1))}(0,h.rangeEach)(n.from,n.to,e=>{let t=this.hot.toPhysicalRow(e);if(null===t&&(t=e),r||null===this.rowHeightsMap.getValueAtIndex(t)){this.samplesGenerator.generateRowSamples(e,s).forEach((e,t)=>this.ghostTable.addRow(t,e))}}),this.ghostTable.rows.length&&(this.hot.batchExecution(()=>{this.ghostTable.getHeights((e,t)=>{e<0?this.headerHeight=t:this.rowHeightsMap.setValueAtIndex(this.hot.toPhysicalRow(e),t)})},!0),this.measuredRows=n.to+1,this.ghostTable.clean())}calculateAllRowsHeight(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=0;const n=this.hot.countRows()-1;let s=null;this.inProgress=!0;const i=()=>{if(!this.hot)return(0,o.cancelAnimationFrame)(s),void(this.inProgress=!1);this.calculateRowsHeight({from:r,to:Math.min(r+N.CALCULATION_STEP,n)},e,t),r=r+N.CALCULATION_STEP+1,r<n?s=(0,o.requestAnimationFrame)(i):((0,o.cancelAnimationFrame)(s),this.inProgress=!1,this.hot.view.adjustElementsSize())},a=this.getSyncCalculationLimit();a>=0&&(this.calculateRowsHeight({from:0,to:a},e,t),r=a+1),r<n?i():(this.inProgress=!1,this.hot.view.adjustElementsSize())}recalculateAllRowsHeight(){this.hot.view.isVisible()&&this.calculateAllRowsHeight({from:0,to:this.hot.countCols()-1},!0)}getSyncCalculationLimit(){const e=this.hot.getSettings()[y];let t=N.SYNC_CALCULATION_LIMIT;const r=this.hot.countRows()-1;return(0,l.isObject)(e)&&(t=e.syncLimit,(0,c.isPercentValue)(t)?t=(0,h.valueAccordingPercent)(r,t):t>>=0),Math.min(t,r)}getRowHeight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.hot.stylesHandler.getDefaultRowHeight();var r;if(e<0)return null!==(r=this.headerHeight)&&void 0!==r?r:t;const n=this.hot.toPhysicalRow(e);if(this.hot.rowIndexMapper.isHidden(n))return t;const s=this.rowHeightsMap.getValueAtIndex(n);let i=t;return null!==s&&s>t&&(i=s),i}getColumnHeaderHeight(){return this.headerHeight}getFirstVisibleRow(){var e;return null!==(e=this.hot.getFirstRenderedVisibleRow())&&void 0!==e?e:-1}getLastVisibleRow(){var e;return null!==(e=this.hot.getLastRenderedVisibleRow())&&void 0!==e?e:-1}clearCache(e){this.headerHeight=null,Array.isArray(e)?this.hot.batchExecution(()=>{e.forEach(e=>{this.rowHeightsMap.setValueAtIndex(e,null)})},!0):this.rowHeightsMap.clear()}clearCacheByRange(e){const{from:t,to:r}="number"==typeof e?{from:e,to:e}:e;this.hot.batchExecution(()=>{(0,h.rangeEach)(Math.min(t,r),Math.max(t,r),e=>{this.rowHeightsMap.setValueAtIndex(e,null)})},!0)}isNeedRecalculate(){return!!this.rowHeightsMap.getValues().slice(0,this.measuredRows).filter(e=>null===e).length}destroy(){this.ghostTable.clean(),super.destroy()}}function _(e){const t={from:0,to:this.hot.countCols()-1};e.forEach(e=>{this.samplesGenerator.generateRowSamples(e,t).forEach((e,t)=>this.ghostTable.addRow(t,e))}),this.ghostTable.rows.length&&(this.hot.batchExecution(()=>{this.ghostTable.getHeights((e,t)=>{const r=this.hot.toPhysicalRow(e);this.rowHeightsMap.setValueAtIndex(r,t)})},!0),this.ghostTable.clean())}function A(e){const t=this.hot.getFirstRenderedVisibleColumn(),r=this.hot.columnIndexMapper.getPhysicalFromVisualIndex(t);!1===e||r===this.hot.columnIndexMapper.getPhysicalFromRenderableIndex(0)?(0,g.removeClass)(this.hot.rootElement,v):(0,g.addClass)(this.hot.rootElement,v)}function b(){E(T,this,A).call(this)}function M(){this.calculateVisibleRowsHeight(),this.inProgress||(E(T,this,_).call(this,w(S,this)),m(S,this,[]))}function I(e,t,r){let n=e;return r&&(this.calculateRowsHeight(t,void 0,!0),n=this.getRowHeight(t)),n}function O(e,t){t||this.recalculateAllRowsHeight()}function x(e){const t=e.reduce((e,t)=>{let[r]=t;return-1===e.indexOf(r)&&e.push(r),e},[]);w(S,this).push(...t)}function P(){this.recalculateAllRowsHeight(),m(R,this,!0)}function L(e){if(!w(R,this))return;const t=e.reduce((e,t)=>{var r;const n=null===(r=t.address)||void 0===r?void 0:r.row;if(Number.isInteger(n)){const t=this.hot.toVisualRow(n);-1===e.indexOf(t)&&e.push(t)}return e},[]);w(S,this).push(...t)}t.AutoRowSize=N},57011:(e,t,r)=>{"use strict";t.__esModule=!0,t.align=function(e,t,r,o,a){(0,n.arrayEach)(e,e=>{e.forAll((e,n)=>{e>=0&&n>=0&&function(e,t,r,n,o,a){const l=o(e,t);let h=n;l.className&&(h="vertical"===r?s(l.className,n):i(l.className,n));a(e,t,"className",h)}(e,n,t,r,o,a)})})},t.checkSelectionConsistency=function(e,t){let r=!1;Array.isArray(e)&&(0,n.arrayEach)(e,e=>(e.forAll((e,n)=>{if(e>=0&&n>=0&&t(e,n))return r=!0,!1}),r));return r},t.getAlignmentClasses=function(e,t){const r={};return(0,n.arrayEach)(e,e=>{e.forAll((e,n)=>{e>=0&&n>=0&&(r[e]||(r[e]=[]),r[e][n]=t(e,n))})}),r},t.getAlignmentComparatorByClass=function(e){return function(t,r){const n=this.getCellMeta(t,r).className;return n&&-1!==n.indexOf(e)}},t.getDocumentOffsetByElement=function(e,t){const r={top:0,left:0};if(t!==e.ownerDocument){const{frameElement:e}=t.defaultView,{top:n,left:s}=e.getBoundingClientRect();r.top=n,r.left=s}return r},t.markLabelAsSelected=function(e){return`<span class="selected">${String.fromCharCode(10003)}</span>${e}`},t.prepareHorizontalAlignClass=i,t.prepareVerticalAlignClass=s;var n=r(40785);function s(e,t){if(-1!==e.indexOf(t))return e;return`${e.replace("htTop","").replace("htMiddle","").replace("htBottom","").replace(" ","")} ${t}`}function i(e,t){if(-1!==e.indexOf(t))return e;return`${e.replace("htLeft","").replace("htCenter","").replace("htRight","").replace("htJustify","").replace(" ","")} ${t}`}},57041:(e,t,r)=>{"use strict";var n=r(9895),s=r(23002),i=n("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},57093:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.condition=l;var s=n(r(37539)),i=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),o=r(11278);const a=t.CONDITION_NAME="date_before";function l(e,t){let[r]=t;const n=(0,s.default)(e.value,e.meta.dateFormat),i=(0,s.default)(r,e.meta.dateFormat);return!(!n.isValid()||!i.isValid())&&n.diff(i)<=0}(0,o.registerCondition)(a,l,{name:i.FILTERS_CONDITIONS_BEFORE,inputsCount:1,showOperators:!0})},57198:(e,t,r)=>{var n=r(52183).default;e.exports=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var s=r.call(e,t||"default");if("object"!=n(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},57536:(e,t,r)=>{"use strict";var n=r(41462),s=r(59188),i=r(26023),o=r(94811);e.exports=function(e){var t=n(this),r=o(e);return!(s(t)>r.size)&&!1!==i(t,function(e){if(!r.includes(e))return!1},!0)}},57849:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(54193);t.CELL_TYPE=n.CELL_TYPE,t.DateCellType=n.DateCellType},57861:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.condition=l;var s=n(r(37539)),i=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),o=r(11278);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,o.registerCondition)(a,l,{name:i.FILTERS_CONDITIONS_TODAY,inputsCount:0})},57971:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(99257));t.DataMap=s.default;var i=n(r(34700));t.MetaManager=i.default;var o=n(r(93236));t.metaSchemaFactory=o.default;var a=r(81231);t.replaceData=a.replaceData;var l=r(94980);t.DynamicCellMetaMod=l.DynamicCellMetaMod;var h=r(59174);t.ExtendMetaPropertiesMod=h.ExtendMetaPropertiesMod},57976:(e,t,r)=>{"use strict";t.__esModule=!0,t.condition=i;var n=r(11278);const s=t.CONDITION_NAME="false";function i(){return!1}(0,n.registerCondition)(s,i,{name:"False"})},58033:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.getRegisteredMapsCounter=function(){return l},r(34478),r(31143);var s=n(r(24300)),i=r(27727),o=r(21389),a=n(r(50496));let l=0;class h{constructor(){(0,s.default)(this,"collection",new Map)}register(e,t){!1===this.collection.has(e)&&(this.collection.set(e,t),t.addLocalHook("change",()=>this.runLocalHooks("change",t)),l+=1)}unregister(e){const t=this.collection.get(e);(0,i.isDefined)(t)&&(t.destroy(),this.collection.delete(e),this.runLocalHooks("change",t),l-=1)}unregisterAll(){this.collection.forEach((e,t)=>this.unregister(t)),this.collection.clear()}get(e){return(0,i.isUndefined)(e)?Array.from(this.collection.values()):this.collection.get(e)}getLength(){return this.collection.size}removeFromEvery(e){this.collection.forEach(t=>{t.remove(e)})}insertToEvery(e,t){this.collection.forEach(r=>{r.insert(e,t)})}initEvery(e){this.collection.forEach(t=>{t.init(e)})}}t.MapCollection=h,(0,o.mixin)(h,a.default)},58158:()=>{},58231:(e,t,r)=>{"use strict";t.__esModule=!0,t.isCtrlKey=function(e){const t=[];(0,s.isMacOS)()?t.push(i.COMMAND_LEFT,i.COMMAND_RIGHT,i.COMMAND_FIREFOX):t.push(i.CONTROL);return t.includes(e)},t.isCtrlMetaKey=function(e){return[i.CONTROL,i.COMMAND_LEFT,i.COMMAND_RIGHT,i.COMMAND_FIREFOX].includes(e)},t.isFunctionKey=function(e){return o.includes(e)},t.isKey=function(e,t){const r=t.split("|");let s=!1;return(0,n.arrayEach)(r,t=>{if(e===i[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},r(99356);var n=r(40785),s=r(55924);const i=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},o=[i.ALT,i.ARROW_DOWN,i.ARROW_LEFT,i.ARROW_RIGHT,i.ARROW_UP,i.AUDIO_DOWN,i.AUDIO_MUTE,i.AUDIO_UP,i.BACKSPACE,i.CAPS_LOCK,i.DELETE,i.END,i.ENTER,i.ESCAPE,i.F1,i.F2,i.F3,i.F4,i.F5,i.F6,i.F7,i.F8,i.F9,i.F10,i.F11,i.F12,i.F13,i.F14,i.F15,i.F16,i.F17,i.F18,i.F19,i.HOME,i.INSERT,i.MEDIA_NEXT,i.MEDIA_PLAY_PAUSE,i.MEDIA_PREV,i.MEDIA_STOP,i.NULL,i.NUM_LOCK,i.PAGE_DOWN,i.PAGE_UP,i.PAUSE,i.SCROLL_LOCK,i.SHIFT,i.TAB]},58293:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(90113);t.AutocompleteCellType=n.AutocompleteCellType,t.CELL_TYPE=n.CELL_TYPE},58527:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionUpByViewportHeight",callback(e){const{selection:t,rowIndexMapper:r}=e,{to:n}=e.getSelectedRangeActive(),s=Math.max(n.row-e.countVisibleRows(),0),i=r.getNearestNotHiddenIndex(s,1);if(null!==i){const r=e._createCellCoords(i,n.col),s=n.row-e.getFirstFullyVisibleRow(),o=Math.max(r.row-s,0);t.markSource("keyboard"),t.setRangeEnd(r,e.getActiveSelectionLayerIndex()),t.markEndSource(),e.scrollViewportTo({row:o,verticalSnap:"top",horizontalSnap:"start"})}}}},58584:(e,t,r)=>{"use strict";var n=r(72820),s=r(15105),i=r(69019),o=r(77439),a=r(19098),l=r(53001),h=r(44827),u=r(65455),c=r(56274),d=r(46367),g=r(55805),p=String,f=s("JSON","stringify"),m=a(/./.exec),w=a("".charAt),E=a("".charCodeAt),y=a("".replace),C=a(1.1.toString),v=/[\uD800-\uDFFF]/g,S=/^[\uD800-\uDBFF]$/,R=/^[\uDC00-\uDFFF]$/,T=!g||l(function(){var e=s("Symbol")("stringify detection");return"[null]"!==f([e])||"{}"!==f({a:e})||"{}"!==f(Object(e))}),N=l(function(){return'"\\udf06\\ud834"'!==f("\udf06\ud834")||'"\\udead"'!==f("\udead")}),_=function(e,t){var r=c(arguments),n=d(t);if(h(n)||void 0!==e&&!u(e))return r[1]=function(e,t){if(h(n)&&(t=o(n,this,p(e),t)),!u(t))return t},i(f,null,r)},A=function(e,t,r){var n=w(r,t-1),s=w(r,t+1);return m(S,e)&&!m(R,s)||m(R,e)&&!m(S,n)?"\\u"+C(E(e,0),16):e};f&&n({target:"JSON",stat:!0,arity:3,forced:T||N},{stringify:function(e,t,r){var n=c(arguments),s=i(T?_:f,null,n);return N&&"string"==typeof s?y(s,v,A):s}})},58710:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ROW_BELOW)},callback(){const e=this.getSelectedRangeActive().getBottomRightCorner();this.alter("insert_row_below",e.row,1,"ContextMenu.rowBelow")},disabled(){const e=this.getSelectedRangeActive();return!!(!e||this.selection.isSelectedByColumnHeader()||e.isSingleHeader()&&e.highlight.row<0||this.countSourceRows()>=this.getSettings().maxRows)},hidden(){return!this.getSettings().allowInsertRow}}};var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230));const s=t.KEY="row_below"},59174:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(89624),r(14950),r(98831),r(67046),r(38221),r(56050),r(65724),r(34478),r(31143);var s=n(r(24300));function i(e,t,r){(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,r)}function o(e,t){return e.get(function(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}(e,t))}var a=new WeakMap;t.ExtendMetaPropertiesMod=class{constructor(e){(0,s.default)(this,"metaManager",void 0),(0,s.default)(this,"usageTracker",new Set),(0,s.default)(this,"propDescriptors",new Map([["ariaTags",{initOnly:!0}],["fixedColumnsLeft",{target:"fixedColumnsStart",onChange(e){if(this.metaManager.hot.isRtl()&&"fixedColumnsLeft"===e)throw new Error("The `fixedColumnsLeft` is not supported for RTL. Please use option `fixedColumnsStart`.");if(this.usageTracker.has("fixedColumnsLeft")&&this.usageTracker.has("fixedColumnsStart"))throw new Error("The `fixedColumnsLeft` and `fixedColumnsStart` should not be used together. Please use only the option `fixedColumnsStart`.")}}],["layoutDirection",{initOnly:!0}],["renderAllColumns",{initOnly:!0}],["renderAllRows",{initOnly:!0}]])),i(this,a,(e,t,r)=>{if(!r)throw new Error(`The \`${e}\` option can not be updated after the Handsontable is initialized.`)}),this.metaManager=e,this.extendMetaProps()}extendMetaProps(){this.propDescriptors.forEach((e,t)=>{const{initOnly:r,target:n,onChange:s}=e,i="string"==typeof n,l=i?n:t,h=`_${l}`;this.metaManager.globalMeta.meta[h]=this.metaManager.globalMeta.meta[l],s?(this.installPropWatcher(t,h,s),i&&this.installPropWatcher(n,h,s)):r&&(this.installPropWatcher(t,h,o(a,this)),this.metaManager.globalMeta.meta._initOnlySettings||(this.metaManager.globalMeta.meta._initOnlySettings=[]),this.metaManager.globalMeta.meta._initOnlySettings.push(t))})}installPropWatcher(e,t,r){const n=this;Object.defineProperty(this.metaManager.globalMeta.meta,e,{get(){return this[t]},set(s){const i=!n.usageTracker.has(e);n.usageTracker.add(e),r.call(n,e,s,i),this[t]=s},enumerable:!0,configurable:!0})}}},59188:(e,t,r)=>{"use strict";var n=r(42328),s=r(31520);e.exports=n(s.proto,"size","get")||function(e){return e.size}},59476:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(99356);var s=n(r(24300));t.default=class{constructor(e){(0,s.default)(this,"plugin",void 0),(0,s.default)(this,"hot",void 0),(0,s.default)(this,"fullySelectedMergedCellClassName","fullySelectedMergedCell"),this.plugin=e,this.hot=e.hot}getSelectedMergedCellClassName(e,t,r,n){const s=Math.min(r[0],r[2]),i=Math.min(r[1],r[3]),o=Math.max(r[0],r[2]),a=Math.max(r[1],r[3]);if(void 0===n)return;if(!this.plugin.mergedCellsCollection.isFirstRenderableMergedCell(e,t))return;const l=this.plugin.mergedCellsCollection.get(e,t);if(!l)return;const h=l.getLastRow(),u=l.getLastColumn();return s<=l.row&&i<=l.col&&o>=h&&a>=u?`${this.fullySelectedMergedCellClassName}-${n}`:this.isMergeCellFullySelected(l,this.plugin.hot.getSelectedRange())?`${this.fullySelectedMergedCellClassName}-multiple`:void 0}isMergeCellFullySelected(e,t){const r=[];if(!t||!e)return!1;for(let t=0;t<e.rowspan;t+=1)for(let n=0;n<e.colspan;n+=1)r.push(this.hot._createCellCoords(e.row+t,e.col+n));for(let e=0;e<r.length;e+=1){const n=[];for(let s=0;s<t.length;s+=1)n[s]=t[s].includes(r[e]);if(!n.includes(!0))return!1}return!0}getSelectedMergedCellClassNameToRemove(){const e=[];for(let t=0;t<=7;t+=1)e.push(`${this.fullySelectedMergedCellClassName}-${t}`);return e.push(`${this.fullySelectedMergedCellClassName}-multiple`),e}}},59549:(e,t,r)=>{"use strict";var n=r(44827),s=r(15176),i=r(79937);e.exports=function(e,t,r){var o,a;return i&&n(o=t.constructor)&&o!==r&&s(a=o.prototype)&&a!==r.prototype&&i(e,a),e}},59589:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490);var s=n(r(24300)),i=r(42685);function o(e,t,r){(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,r)}function a(e,t){return e.get(h(e,t))}function l(e,t,r){return e.set(h(e,t),r),r}function h(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var u=new WeakMap;t.default=class{constructor(e,t,r,n,i,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),o(this,u,null),this.row=e,this.col=t,this.rowspan=r,this.colspan=n,this.cellCoordsFactory=i,this.cellRangeFactory=a}static NEGATIVE_VALUES_WARNING(e){let{row:t,col:r,rowspan:n,colspan:s}=e;return i.toSingleLine`The merged cell declared with {row: ${t}, col: ${r},\x20
264
264
  rowspan: ${n}, colspan: ${s}} contains negative values, which is\x20
265
265
  not supported. It will not be added to the collection.`}static IS_OUT_OF_BOUNDS_WARNING(e){let{row:t,col:r}=e;return i.toSingleLine`The merged cell declared at [${t}, ${r}] is positioned\x20
266
266
  (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:r}=e;return i.toSingleLine`The merged cell declared at [${t}, ${r}] has both "rowspan"\x20