handsontable 16.2.0-next-7d068f5-20251117 → 16.2.0-next-bf17104-20251120
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/dist/handsontable.css +2 -2
- package/dist/handsontable.full.css +2 -2
- package/dist/handsontable.full.js +6 -6
- package/dist/handsontable.full.min.css +2 -2
- package/dist/handsontable.full.min.js +4 -4
- package/dist/handsontable.js +6 -6
- package/dist/handsontable.min.css +2 -2
- package/dist/handsontable.min.js +4 -4
- package/helpers/mixed.js +2 -2
- package/helpers/mixed.mjs +2 -2
- package/package.json +1 -1
- package/styles/handsontable.css +3 -3
- package/styles/handsontable.min.css +3 -3
- package/styles/ht-icons-horizon.css +2 -2
- package/styles/ht-icons-horizon.min.css +2 -2
- package/styles/ht-icons-main.css +2 -2
- package/styles/ht-icons-main.min.css +2 -2
- package/styles/ht-theme-classic-no-icons.css +2 -2
- package/styles/ht-theme-classic-no-icons.min.css +2 -2
- package/styles/ht-theme-classic.css +2 -2
- package/styles/ht-theme-classic.min.css +2 -2
- package/styles/ht-theme-horizon-no-icons.css +2 -2
- package/styles/ht-theme-horizon-no-icons.min.css +2 -2
- package/styles/ht-theme-horizon.css +2 -2
- package/styles/ht-theme-horizon.min.css +2 -2
- package/styles/ht-theme-main-no-icons.css +2 -2
- package/styles/ht-theme-main-no-icons.min.css +2 -2
- package/styles/ht-theme-main.css +2 -2
- package/styles/ht-theme-main.min.css +2 -2
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
* INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
|
|
26
26
|
* USE OR INABILITY TO USE THIS SOFTWARE.
|
|
27
27
|
*
|
|
28
|
-
* Version: 16.2.0-next-
|
|
29
|
-
* Release date:
|
|
28
|
+
* Version: 16.2.0-next-bf17104-20251120
|
|
29
|
+
* Release date: 25/11/2025 (built at 20/11/2025 13:06:47)
|
|
30
30
|
*/
|
|
31
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={224:(e,t,n)=>{"use strict";var r=n(19596);e.exports=function(e,t){var n=r[e],s=n&&n.prototype;return s&&s[t]}},465:(e,t,n)=>{"use strict";t.__esModule=!0,t.compareFunctionFactory=function(e,t,n){return function(t,i){const o=parseFloat(t),a=parseFloat(i),{sortEmptyCells:l}=n;if(o===a||isNaN(o)&&isNaN(a))return s.DO_NOT_SWAP;if(l){if((0,r.isEmpty)(t))return"asc"===e?s.FIRST_BEFORE_SECOND:s.FIRST_AFTER_SECOND;if((0,r.isEmpty)(i))return"asc"===e?s.FIRST_AFTER_SECOND:s.FIRST_BEFORE_SECOND}return isNaN(o)?s.FIRST_AFTER_SECOND:isNaN(a)?s.FIRST_BEFORE_SECOND:o<a?"asc"===e?s.FIRST_BEFORE_SECOND:s.FIRST_AFTER_SECOND:o>a?"asc"===e?s.FIRST_AFTER_SECOND:s.FIRST_BEFORE_SECOND:s.DO_NOT_SWAP}};var r=n(54342),s=n(18793);t.COLUMN_DATA_TYPE="numeric"},469:()=>{},497:(e,t,n)=>{"use strict";var r=n(8467),s=n(14326),i=n(17621),o=n(83916),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return s(t)&&i(t.prototype,a(e))}},594:()=>{},763:()=>{},771:(e,t,n)=>{"use strict";var r=n(19596).navigator,s=r&&r.userAgent;e.exports=s?String(s):""},827:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182);var s=r(n(81115)),i=n(38942),o=n(30152),a=n(57440),l=n(66563);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,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const c=t.PLUGIN_KEY="touchScroll",d=t.PLUGIN_PRIORITY=200;var g=new WeakSet;class p extends a.BasePlugin{constructor(){super(...arguments),h(this,g),(0,s.default)(this,"scrollbars",[]),(0,s.default)(this,"clones",[]),(0,s.default)(this,"lockedCollection",!1),(0,s.default)(this,"freezeOverlays",!1)}static get PLUGIN_KEY(){return c}static get PLUGIN_PRIORITY(){return d}static get SETTING_KEYS(){return!0}isEnabled(){return(0,l.isTouchSupported)()}enablePlugin(){this.enabled||(this.addHook("afterViewRender",()=>u(g,this,f).call(this)),this.registerEvents(),super.enablePlugin())}updatePlugin(){this.lockedCollection=!1,super.updatePlugin()}disablePlugin(){super.disablePlugin()}registerEvents(){this.addHook("beforeTouchScroll",()=>u(g,this,m).call(this)),this.addHook("afterMomentumScroll",()=>u(g,this,E).call(this))}}function f(){if(this.lockedCollection)return;const{topOverlay:e,bottomOverlay:t,inlineStartOverlay:n,topInlineStartCornerOverlay:r,bottomInlineStartCornerOverlay:s}=this.hot.view._wt.wtOverlays;this.lockedCollection=!0,this.scrollbars.length=0,this.scrollbars.push(e),t.clone&&this.scrollbars.push(t),this.scrollbars.push(n),r&&this.scrollbars.push(r),s&&s.clone&&this.scrollbars.push(s),this.clones=[],e.needFullRender&&this.clones.push(e.clone.wtTable.holder.parentNode),t.needFullRender&&this.clones.push(t.clone.wtTable.holder.parentNode),n.needFullRender&&this.clones.push(n.clone.wtTable.holder.parentNode),r&&this.clones.push(r.clone.wtTable.holder.parentNode),s&&s.clone&&this.clones.push(s.clone.wtTable.holder.parentNode)}function m(){this.freezeOverlays=!0,(0,o.arrayEach)(this.clones,e=>{(0,i.addClass)(e,"hide-tween")})}function E(){this.freezeOverlays=!1,(0,o.arrayEach)(this.clones,e=>{(0,i.removeClass)(e,"hide-tween"),(0,i.addClass)(e,"show-tween")}),this.hot._registerTimeout(()=>{(0,o.arrayEach)(this.clones,e=>{(0,i.removeClass)(e,"show-tween")})},400),(0,o.arrayEach)(this.scrollbars,e=>{e.refresh(),e.resetFixedPosition()}),this.hot.view._wt.wtOverlays.syncScrollWithMaster()}t.TouchScroll=p},983:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(11049);t.RENDERER_TYPE=r.RENDERER_TYPE,t.checkboxRenderer=r.checkboxRenderer},1181:()=>{},1195:(e,t,n)=>{"use strict";var r=n(14326),s=n(52270),i=n(97931);e.exports=function(e,t,n){var o,a;return i&&r(o=t.constructor)&&o!==n&&s(a=o.prototype)&&a!==n.prototype&&i(e,a),e}},1229:(e,t,n)=>{"use strict";t.__esModule=!0,n(22588),n(59839),n(30417),n(81396),n(39691);var r=n(57440),s=n(42091),i=n(89090),o=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217));function a(e,t,n){l(e,t),t.set(e,n)}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,n){return e.set(c(e,t),n),n}function u(e,t){return e.get(c(e,t))}function c(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const d=t.PLUGIN_KEY="dialog",g=t.PLUGIN_PRIORITY=360,p=d,f=`plugin:${d}`;var m=new WeakMap,E=new WeakMap,w=new WeakMap,y=new WeakSet;class C extends r.BasePlugin{constructor(){var e,t;super(...arguments),l(e=this,t=y),t.add(e),a(this,m,null),a(this,E,!1),a(this,w,null)}static get PLUGIN_KEY(){return d}static get PLUGIN_PRIORITY(){return g}static get DEFAULT_SETTINGS(){return{template:null,content:"",customClassName:"",background:"solid",contentBackground:!1,animation:!0,closable:!1,a11y:{role:"dialog",ariaLabel:"Dialog",ariaLabelledby:"",ariaDescribedby:""}}}static get SETTINGS_VALIDATORS(){return{template:e=>(0,i.isObject)(e)&&typeof["alert","confirm"].includes(e.type)&&"string"==typeof e.title&&(void 0===(null==e?void 0:e.description)||"string"==typeof(null==e?void 0:e.description))&&(void 0===(null==e?void 0:e.buttons)||Array.isArray(null==e?void 0:e.buttons)&&e.buttons.every(e=>"object"==typeof e&&"string"==typeof e.text&&["primary","secondary"].includes(e.type)&&(void 0===e.callback||"function"==typeof e.callback))),content:e=>"string"==typeof e||"undefined"!=typeof HTMLElement&&e instanceof HTMLElement||"undefined"!=typeof DocumentFragment&&e instanceof DocumentFragment,customClassName:e=>"string"==typeof e,background:e=>["solid","semi-transparent"].includes(e),contentBackground:e=>"boolean"==typeof e,animation:e=>"boolean"==typeof e,closable:e=>"boolean"==typeof e,a11y:e=>(0,i.isObject)(e)&&(void 0===(null==e?void 0:e.role)||["dialog","alertdialog"].includes(null==e?void 0:e.role))&&(void 0===(null==e?void 0:e.ariaLabel)||"string"==typeof(null==e?void 0:e.ariaLabel))&&(void 0===(null==e?void 0:e.ariaLabelledby)||"string"==typeof(null==e?void 0:e.ariaLabelledby))&&(void 0===(null==e?void 0:e.ariaDescribedby)||"string"==typeof(null==e?void 0:e.ariaDescribedby))}}isEnabled(){return!!this.hot.getSettings()[d]}enablePlugin(){this.enabled||(u(m,this)||h(m,this,new s.DialogUI({rootElement:this.hot.rootGridElement,isRtl:this.hot.isRtl()})),c(y,this,v).call(this),c(y,this,R).call(this),this.addHook("afterViewRender",()=>c(y,this,_).call(this)),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.hide(),c(y,this,S).call(this),c(y,this,T).call(this),super.disablePlugin()}isVisible(){return u(E,this)}show(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.enabled&&(this.isVisible()?this.update(e):(this.hot.runHooks("beforeDialogShow"),this.update(e),u(m,this).showDialog(this.getSetting("animation")),h(E,this,!0),this.hot.getFocusScopeManager().activateScope(d),h(w,this,this.hot.selection.exportSelection()),this.hot.deselectCell(),this.hot.runHooks("afterDialogShow")))}hide(){var e;this.isVisible()&&(this.hot.runHooks("beforeDialogHide"),u(m,this).hideDialog(this.getSetting("animation")),h(E,this,!1),this.hot.getFocusScopeManager().deactivateScope(d),(null===(e=u(w,this))||void 0===e?void 0:e.ranges.length)>0?(this.hot.selection.importSelection(u(w,this)),this.hot.view.render(),h(w,this,null)):this.hot.selectCell(0,0),this.hot.runHooks("afterDialogHide"))}update(e){if(!this.enabled)return;this.updatePluginSettings(e);const t=this.getSetting("template");if(t!==C.DEFAULT_SETTINGS.template&&this.getSetting("content")!==C.DEFAULT_SETTINGS.content)throw new Error("The `template` option cannot be used together with the `content` option.");t?u(m,this).useTemplate(t.type,{id:this.hot.guid,...t}):u(m,this).useDefaultTemplate(),u(m,this).updateDialog({isVisible:this.isVisible(),content:this.getSetting("content"),customClassName:this.getSetting("customClassName"),background:this.getSetting("background"),contentBackground:this.getSetting("contentBackground"),animation:this.getSetting("animation"),a11y:this.getSetting("a11y")})}showAlert(e,t){const{title:n="Alert",description:r}=(0,i.isObject)(e)?e:{title:e};this.show({template:{type:"confirm",title:n,description:r,buttons:[{text:this.hot.getTranslatedPhrase(o.OK),type:"primary",callback:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t?void 0:t(...n)}}]},contentBackground:!1,background:"solid",animation:!0,closable:!1})}showConfirm(e,t,n){const{title:r="Confirm",description:s}=(0,i.isObject)(e)?e:{title:e};this.show({template:{type:"confirm",title:r,description:s,buttons:[{text:this.hot.getTranslatedPhrase(o.CANCEL),type:"secondary",callback:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n?void 0:n(...t)}},{text:this.hot.getTranslatedPhrase(o.OK),type:"primary",callback:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t?void 0:t(...n)}}]},contentBackground:!0,background:"semi-transparent",animation:!0,closable:!1})}focus(){u(m,this).focusDialog()}destroy(){var e;null===(e=u(m,this))||void 0===e||e.destroyDialog(),h(m,this,null),h(E,this,!1),h(w,this,null),super.destroy()}}function v(){var e;const t=this.hot.getShortcutManager(),n=null!==(e=t.getContext(f))&&void 0!==e?e:t.addContext(f);n.addShortcut({keys:[["Escape"]],callback:()=>{this.hide()},runOnlyIf:()=>u(E,this)&&this.getSetting("closable"),group:p}),n.addShortcut({keys:[["Shift","Tab"],["Tab"]],preventDefault:!1,callback:e=>{this.hot._registerTimeout(()=>{e.shiftKey?this.hot.runHooks("dialogFocusPreviousElement"):this.hot.runHooks("dialogFocusNextElement")})},group:p})}function S(){this.hot.getShortcutManager().getContext(f).removeShortcutsByGroup(p)}function R(){this.hot.getFocusScopeManager().registerScope(d,u(m,this).getContainer(),{shortcutsContextName:f,type:"modal",runOnlyIf:()=>this.isVisible(),onActivate:e=>{const t=this.hot.isListening(),n=u(m,this).getFocusableElements();n.length>0?"tab_from_above"===e?n.at(0).focus():"tab_from_below"===e&&n.at(-1).focus():"tab_from_above"!==e&&"tab_from_below"!==e&&t&&!u(m,this).getContainer().contains(this.hot.rootDocument.activeElement)&&u(m,this).getContainer().focus(),t&&this.hot.runHooks("afterDialogFocus","unknown"===e?"show":e)}})}function T(){this.hot.getFocusScopeManager().unregisterScope(d)}function _(){const{view:e,rootWrapperElement:t,rootWindow:n}=this.hot,r=e.isHorizontallyScrollableByWindow()?e.getTotalTableWidth():e.getWorkspaceWidth();u(m,this).updateWidth(r);const s=t.querySelector(".hot-display-license-info");if(s){const e=s.offsetHeight,t=Number.parseFloat(n.getComputedStyle(s).marginTop);u(m,this).updateHeight(e+t)}}t.Dialog=C},1237:(e,t,n)=>{"use strict";t.__esModule=!0,t.dropdownRenderer=i;var r=n(15454);const s=t.RENDERER_TYPE="dropdown";function i(e,t,n,s,i,o,a){r.autocompleteRenderer.apply(this,[e,t,n,s,i,o,a])}i.RENDERER_TYPE=s},1401:(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()}}},1409:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_CLEAR_COLUMN)},callback(e,t){const n=t[0].start.col,r=t[0].end.col;this.countRows()&&this.populateFromArray(0,n,[[null]],Math.max(t[0].start.row,t[0].end.row),r,"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,n)=>{if(e<0||n<0)return!0;const{readOnly:r}=this.getCellMeta(e,n);return!!r||(t=!0,!1)}),!t}}};var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217));const s=t.KEY="clear_column"},1411:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(23333);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.Comments=r.Comments},1804:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(8742),s=n(15454),i=n(59262),o=n(51897);const a=t.CELL_TYPE="autocomplete";t.AutocompleteCellType={CELL_TYPE:a,editor:r.AutocompleteEditor,renderer:s.autocompleteRenderer,validator:i.autocompleteValidator,valueGetter:o.valueGetter,valueSetter:o.valueSetter}},1872:()=>{},1934:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(98007),s=n(89127);const i=t.CELL_TYPE="password";t.PasswordCellType={CELL_TYPE:i,editor:r.PasswordEditor,renderer:s.passwordRenderer,copyable:!1}},1999:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182),n(81396),n(88633);var s=r(n(81115)),i=n(38942),o=n(72740),a=n(14298),l=n(68834),h=n(87544),u=n(21650),c=n(57440),d=r(n(94949)),g=r(n(87405));function p(e,t,n){f(e,t),t.set(e,n)}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,n){return e.set(w(e,t),n),n}function E(e,t){return e.get(w(e,t))}function w(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;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,_=new WeakMap,N=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,_,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,N,()=>{var e;const t=null===(e=this.hot)||void 0===e?void 0:e.getSelectedRangeActive();if(!t)return;const{highlight:n}=t;if(n.isHeader()&&n.col>=0){const e=E(v,this).findLeftMostColumnIndex(n.row,n.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",()=>w(A,this,G).call(this)),this.addHook("afterLoadData",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(A,e,j).call(e,...n)}),this.addHook("beforeOnCellMouseDown",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(A,e,x).call(e,...n)}),this.addHook("afterOnCellMouseDown",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(A,e,P).call(e,...n)}),this.addHook("beforeOnCellMouseOver",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(A,e,L).call(e,...n)}),this.addHook("beforeOnCellMouseUp",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(A,e,D).call(e,...n)}),this.addHook("beforeSelectionHighlightSet",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(A,e,k).call(e,...n)}),this.addHook("modifyTransformStart",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(A,e,H).call(e,...n)}),this.addHook("afterSelection",()=>E(N,this).call(this)),this.addHook("afterSelectionFocusSet",()=>E(N,this).call(this)),this.addHook("beforeViewportScrollHorizontally",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(A,e,M).call(e,...n)}),this.addHook("afterGetColumnHeaderRenderers",e=>w(A,this,U).call(this,e)),this.addHook("modifyColWidth",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(A,e,B).call(e,...n)}),this.addHook("modifyColumnHeaderValue",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(A,e,W).call(e,...n)}),this.addHook("beforeHighlightingColumnHeader",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(A,e,I).call(e,...n)}),this.addHook("beforeCopy",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(A,e,O).call(e,...n)}),this.addHook("beforeSelectColumns",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(A,e,F).call(e,...n)}),this.addHook("afterViewportColumnCalculatorOverride",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(A,e,V).call(e,...n)}),this.addHook("modifyFocusedElement",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(A,e,Y).call(e,...n)}),this.hot.columnIndexMapper.addLocalHook("cacheUpdated",E(N,this)),this.hot.rowIndexMapper.addLocalHook("cacheUpdated",E(N,this)),super.enablePlugin(),this.updatePlugin()}updatePlugin(){if(!this.hot.view)return;const{nestedHeaders:e}=this.hot.getSettings();E(v,this).setColumnsLimit(this.hot.countCols()),Array.isArray(e)&&(this.detectedOverlappedHeaders=E(v,this).setState(e)),this.detectedOverlappedHeaders&&(0,h.warn)(a.toSingleLine`Your Nested Headers plugin setup contains overlapping headers. This kind of configuration\x20
|
|
@@ -258,7 +258,7 @@ the last node, the show column modification can be applied.`);const{crossHiddenC
|
|
|
258
258
|
*
|
|
259
259
|
* Description: Definition file for English - United States language-country.
|
|
260
260
|
*/(n(20217));const s={languageCode:"en-US",[r.OK]:"OK",[r.CANCEL]:"Cancel",[r.CONTEXTMENU_ITEMS_NO_ITEMS]:"No available options",[r.CONTEXTMENU_ITEMS_ROW_ABOVE]:"Insert row above",[r.CONTEXTMENU_ITEMS_ROW_BELOW]:"Insert row below",[r.CONTEXTMENU_ITEMS_INSERT_LEFT]:"Insert column left",[r.CONTEXTMENU_ITEMS_INSERT_RIGHT]:"Insert column right",[r.CONTEXTMENU_ITEMS_REMOVE_ROW]:["Remove row","Remove rows"],[r.CONTEXTMENU_ITEMS_REMOVE_COLUMN]:["Remove column","Remove columns"],[r.CONTEXTMENU_ITEMS_UNDO]:"Undo",[r.CONTEXTMENU_ITEMS_REDO]:"Redo",[r.CONTEXTMENU_ITEMS_READ_ONLY]:"Read only",[r.CONTEXTMENU_ITEMS_CLEAR_COLUMN]:"Clear column",[r.CONTEXTMENU_ITEMS_ALIGNMENT]:"Alignment",[r.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT]:"Left",[r.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER]:"Center",[r.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT]:"Right",[r.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY]:"Justify",[r.CONTEXTMENU_ITEMS_ALIGNMENT_TOP]:"Top",[r.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE]:"Middle",[r.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM]:"Bottom",[r.CONTEXTMENU_ITEMS_FREEZE_COLUMN]:"Freeze column",[r.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN]:"Unfreeze column",[r.CONTEXTMENU_ITEMS_BORDERS]:"Borders",[r.CONTEXTMENU_ITEMS_BORDERS_TOP]:"Top",[r.CONTEXTMENU_ITEMS_BORDERS_RIGHT]:"Right",[r.CONTEXTMENU_ITEMS_BORDERS_BOTTOM]:"Bottom",[r.CONTEXTMENU_ITEMS_BORDERS_LEFT]:"Left",[r.CONTEXTMENU_ITEMS_REMOVE_BORDERS]:"Remove border(s)",[r.CONTEXTMENU_ITEMS_ADD_COMMENT]:"Add comment",[r.CONTEXTMENU_ITEMS_EDIT_COMMENT]:"Edit comment",[r.CONTEXTMENU_ITEMS_REMOVE_COMMENT]:"Delete comment",[r.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT]:"Read-only comment",[r.CONTEXTMENU_ITEMS_MERGE_CELLS]:"Merge cells",[r.CONTEXTMENU_ITEMS_UNMERGE_CELLS]:"Unmerge cells",[r.CONTEXTMENU_ITEMS_COPY]:"Copy",[r.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS]:["Copy with header","Copy with headers"],[r.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS]:["Copy with group header","Copy with group headers"],[r.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY]:["Copy header only","Copy headers only"],[r.CONTEXTMENU_ITEMS_CUT]:"Cut",[r.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD]:"Insert child row",[r.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD]:"Detach from parent",[r.CONTEXTMENU_ITEMS_HIDE_COLUMN]:["Hide column","Hide columns"],[r.CONTEXTMENU_ITEMS_SHOW_COLUMN]:["Show column","Show columns"],[r.CONTEXTMENU_ITEMS_HIDE_ROW]:["Hide row","Hide rows"],[r.CONTEXTMENU_ITEMS_SHOW_ROW]:["Show row","Show rows"],[r.FILTERS_CONDITIONS_NONE]:"None",[r.FILTERS_CONDITIONS_EMPTY]:"Is empty",[r.FILTERS_CONDITIONS_NOT_EMPTY]:"Is not empty",[r.FILTERS_CONDITIONS_EQUAL]:"Is equal to",[r.FILTERS_CONDITIONS_NOT_EQUAL]:"Is not equal to",[r.FILTERS_CONDITIONS_BEGINS_WITH]:"Begins with",[r.FILTERS_CONDITIONS_ENDS_WITH]:"Ends with",[r.FILTERS_CONDITIONS_CONTAINS]:"Contains",[r.FILTERS_CONDITIONS_NOT_CONTAIN]:"Does not contain",[r.FILTERS_CONDITIONS_GREATER_THAN]:"Greater than",[r.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL]:"Greater than or equal to",[r.FILTERS_CONDITIONS_LESS_THAN]:"Less than",[r.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL]:"Less than or equal to",[r.FILTERS_CONDITIONS_BETWEEN]:"Is between",[r.FILTERS_CONDITIONS_NOT_BETWEEN]:"Is not between",[r.FILTERS_CONDITIONS_AFTER]:"After",[r.FILTERS_CONDITIONS_BEFORE]:"Before",[r.FILTERS_CONDITIONS_TODAY]:"Today",[r.FILTERS_CONDITIONS_TOMORROW]:"Tomorrow",[r.FILTERS_CONDITIONS_YESTERDAY]:"Yesterday",[r.FILTERS_VALUES_BLANK_CELLS]:"Blank cells",[r.FILTERS_DIVS_FILTER_BY_CONDITION]:"Filter by condition",[r.FILTERS_DIVS_FILTER_BY_VALUE]:"Filter by value",[r.FILTERS_LABELS_CONJUNCTION]:"And",[r.FILTERS_LABELS_DISJUNCTION]:"Or",[r.FILTERS_BUTTONS_SELECT_ALL]:"Select all",[r.FILTERS_BUTTONS_CLEAR]:"Clear",[r.FILTERS_BUTTONS_OK]:"OK",[r.FILTERS_BUTTONS_CANCEL]:"Cancel",[r.FILTERS_BUTTONS_PLACEHOLDER_SEARCH]:"Search",[r.FILTERS_BUTTONS_PLACEHOLDER_VALUE]:"Value",[r.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE]:"Second value",[r.PAGINATION_SECTION]:"Pagination",[r.PAGINATION_PAGE_SIZE_SECTION]:"Page size",[r.PAGINATION_PAGE_SIZE_AUTO]:"Auto",[r.PAGINATION_COUNTER_SECTION]:"[start] - [end] of [total]",[r.PAGINATION_NAV_SECTION]:"Page [currentPage] of [totalPages]",[r.PAGINATION_FIRST_PAGE]:"Go to first page",[r.PAGINATION_PREV_PAGE]:"Go to previous page",[r.PAGINATION_NEXT_PAGE]:"Go to next page",[r.PAGINATION_LAST_PAGE]:"Go to last page",[r.CHECKBOX_CHECKED]:"Checked",[r.CHECKBOX_UNCHECKED]:"Unchecked",[r.LOADING_TITLE]:"Loading...",[r.EMPTY_DATA_STATE_TITLE]:"No data available",[r.EMPTY_DATA_STATE_DESCRIPTION]:"There’s nothing to display yet.",[r.EMPTY_DATA_STATE_TITLE_FILTERS]:"No results found",[r.EMPTY_DATA_STATE_DESCRIPTION_FILTERS]:"It looks like your current filters are hiding all results.",[r.EMPTY_DATA_STATE_BUTTONS_FILTERS_RESET]:"Reset filters"};t.default=s},49456:(e,t,n)=>{"use strict";var r=n(31884),s=n(84990).add,i=n(96938),o=n(29521),a=n(82719);e.exports=function(e){var t=r(this),n=o(e).getIterator(),l=i(t);return a(n,function(e){s(l,e)}),l}},49510:(e,t,n)=>{"use strict";var r=n(14326),s=n(24755),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(s(e)+" is not a function")}},49555:(e,t,n)=>{"use strict";t.__esModule=!0,t.condition=o;var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217)),s=n(25039);const i=t.CONDITION_NAME="gt";function o(e,t){let[n]=t,r=n;return"numeric"===e.meta.type&&(r=parseFloat(r,10)),e.value>r}(0,s.registerCondition)(i,o,{name:r.FILTERS_CONDITIONS_GREATER_THAN,inputsCount:1,showOperators:!0})},49702:(e,t,n)=>{"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[,n,,r]=e[0];n-r!==0&&(t=1)}return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_REMOVE_COLUMN,t)},callback(){this.alter("remove_col",(0,r.transformSelectionToColumnDistance)(this),null,"ContextMenu.removeColumn")},disabled(){if(!this.isColumnModificationAllowed())return!0;const e=this.getSelectedRangeActive();if(!e)return!0;if(e.isSingleHeader()&&e.highlight.col<0)return!0;const t=this.countCols();return this.selection.isSelectedByCorner()?0===t:this.selection.isSelectedByRowHeader()||0===t},hidden(){return!this.getSettings().allowRemoveColumn}}};var r=n(67379),s=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217));const i=t.KEY="remove_col"},49744:()=>{},49979:(e,t,n)=>{"use strict";var r=n(31884),s=n(84990).has,i=n(54230),o=n(29521),a=n(82719),l=n(13479);e.exports=function(e){var t=r(this),n=o(e);if(i(t)<n.size)return!1;var h=n.getIterator();return!1!==a(h,function(e){if(!s(t,e))return l(h,"normal",!1)})}},50056:()=>{},50154:(e,t,n)=>{"use strict";t.__esModule=!0,t.condition=o;var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217)),s=n(25039);const i=t.CONDITION_NAME="lt";function o(e,t){let[n]=t,r=n;return"numeric"===e.meta.type&&(r=parseFloat(r,10)),e.value<r}(0,s.registerCondition)(i,o,{name:r.FILTERS_CONDITIONS_LESS_THAN,inputsCount:1,showOperators:!0})},50259:(e,t,n)=>{"use strict";t.__esModule=!0,t.RegisteredEditor=c,t.getEditorInstance=t._getEditorInstance=function(e,t){let n;if("function"==typeof e)i.get(e)||d(null,e),n=i.get(e);else{if("string"!=typeof e)throw Error('Only strings and functions can be passed as "editor" parameter');n=a(e)}if(!n)throw Error(`No editor registered under name "${e}"`);return n.getInstance(t)},t.getEditor=function(e){if("function"==typeof e)return e;if(!l(e))throw Error(`No registered editor found under "${e}" name`);return a(e).getConstructor()},t.registerEditor=d,n(22588);var r=n(92164),s=n(59766);const i=new WeakMap,{register:o,getItem:a,hasItem:l,getNames:h,getValues:u}=(0,s.staticRegister)("editors");function c(e){const t={},n=e;this.getConstructor=function(){return e},this.getInstance=function(e){return e.guid in t||(t[e.guid]=new n(e)),t[e.guid]},r.Hooks.getSingleton().add("afterDestroy",function(){t[this.guid]=null})}function d(e,t){e&&"string"!=typeof e&&(e=(t=e).EDITOR_TYPE);const n=new c(t);"string"==typeof e&&o(e,n),i.set(t,n)}t.getRegisteredEditors=u,t.getRegisteredEditorNames=h,t.hasEditor=l},50305:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(827);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.TouchScroll=r.TouchScroll},50379:(e,t)=>{"use strict";t.__esModule=!0,t.createDefaultShortcutsList=function(e){const{hot:t,hotMenu:n}=e;return[{keys:[["Control/Meta","A"]],forwardToContext:t.getShortcutManager().getContext("grid"),callback:()=>e.close(!0)},{keys:[["Tab"],["Shift","Tab"]],callback:(n,r)=>{const s=t.getSettings(),i="function"==typeof s.tabMoves?s.tabMoves(n):s.tabMoves;r.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=n.getSelectedActive();if(t){const n=e.openSubMenu(t[0]);n&&n.getNavigator().toFirstItem()}}},{keys:[[t.isRtl()?"ArrowRight":"ArrowLeft"]],callback:()=>{n.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 r=n.getSelectedActive();r&&(n.getSourceDataAtRow(r[0]).submenu?e.openSubMenu(r[0]).getNavigator().toFirstItem():(e.executeCommand(t),e.close(!0)))}},{keys:[["PageUp"]],callback:()=>{n.getSelectedActive()?n.selection.transformStart(-n.countVisibleRows(),0):e.getNavigator().toFirstItem()}},{keys:[["PageDown"]],callback:()=>{n.getSelectedActive()?n.selection.transformStart(n.countVisibleRows(),0):e.getNavigator().toLastItem()}}]}},50471:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(66182),n(81396),n(81124),n(88633),n(14618),n(19874);var s=r(n(81115));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((n,r)=>n.includes(e)&&t(n,r))}findAll(e){const t=[];return this.ranges.forEach((n,r)=>{n.isEqual(e)&&t.push({range:n,layer:r})}),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,n)=>!e.includes(n)),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,n)=>e(t,n)),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},50506:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(74745);t.EDITOR_TYPE=r.EDITOR_TYPE,t.SelectEditor=r.SelectEditor},50686:(e,t,n)=>{"use strict";t.__esModule=!0,t.condition=a;var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217)),s=n(54342),i=n(25039);const o=t.CONDITION_NAME="eq";function a(e,t){let[n]=t;return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale)===(0,s.stringify)(n)}(0,i.registerCondition)(o,a,{name:r.FILTERS_CONDITIONS_EQUAL,inputsCount:1,showOperators:!0})},50898:(e,t,n)=>{"use strict";t.__esModule=!0,t.condition=a;var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217)),s=n(25039),i=n(70363);const o=t.CONDITION_NAME="not_empty";function a(e,t){return!(0,s.getCondition)(i.CONDITION_NAME,t)(e)}(0,s.registerCondition)(o,a,{name:r.FILTERS_CONDITIONS_NOT_EMPTY,inputsCount:0,showOperators:!0})},51053:(e,t,n)=>{"use strict";t.__esModule=!0,t.countFirstRowKeys=function(e){let t=0;Array.isArray(e)&&(e[0]&&Array.isArray(e[0])?t=e[0].length:e[0]&&(0,r.isObject)(e[0])&&(t=(0,r.deepObjectSize)(e[0])));return t},t.createEmptySpreadsheetData=function(e,t){const n=[];let r;for(let s=0;s<e;s++){r=[];for(let e=0;e<t;e++)r.push("");n.push(r)}return n},t.createSpreadsheetData=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const n=[];let r,s;for(r=0;r<e;r++){const e=[];for(s=0;s<t;s++)e.push(o(s)+(r+1));n.push(e)}return n},t.createSpreadsheetObjectData=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const n=[];let r,s;for(r=0;r<e;r++){const e={};for(s=0;s<t;s++)e[`prop${s}`]=o(s)+(r+1);n.push(e)}return n},t.dataRowToChangesArray=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e;const r=[];Array.isArray(e)&&Array.isArray(e[0])||(n=[e]);return n.forEach((e,n)=>{Array.isArray(e)?e.forEach((e,s)=>{r.push([n+t,s,e])}):Object.keys(e).forEach(s=>{r.push([n+t,s,e[s]])})}),r},t.isArrayOfArrays=function(e){return!!(Array.isArray(e)&&e.length&&e.every(e=>Array.isArray(e)))},t.isArrayOfObjects=function(e){return!!(Array.isArray(e)&&e.length&&e.every(e=>"object"==typeof e&&!Array.isArray(e)&&null!==e))},t.spreadsheetColumnIndex=function(e){let t=0;if(e)for(let n=0,r=e.length-1;n<e.length;n+=1,r-=1)t+=i**r*(s.indexOf(e[n])+1);return t-=1,t},t.spreadsheetColumnLabel=o,n(66182),n(81396),n(39691),n(88633);var r=n(89090);const s="ABCDEFGHIJKLMNOPQRSTUVWXYZ",i=s.length;function o(e){let t,n=e+1,r="";for(;n>0;)t=(n-1)%i,r=String.fromCharCode(65+t)+r,n=parseInt((n-t)/i,10);return r}},51191:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=n(38844);t.ViewportColumnsCalculator=s.ViewportColumnsCalculator,t.ViewportRowsCalculator=s.ViewportRowsCalculator,t.DEFAULT_COLUMN_WIDTH=s.DEFAULT_COLUMN_WIDTH;var i=r(n(82860));t.CellCoords=i.default;var o=r(n(35845));t.CellRange=o.default;var a=r(n(98223));t.default=a.default,t.Core=a.default;var l=n(7878);t.Selection=l.Selection,t.HIGHLIGHT_ACTIVE_HEADER_TYPE=l.ACTIVE_HEADER_TYPE,t.HIGHLIGHT_AREA_TYPE=l.AREA_TYPE,t.HIGHLIGHT_FOCUS_TYPE=l.FOCUS_TYPE,t.HIGHLIGHT_FILL_TYPE=l.FILL_TYPE,t.HIGHLIGHT_HEADER_TYPE=l.HEADER_TYPE,t.HIGHLIGHT_ROW_TYPE=l.ROW_TYPE,t.HIGHLIGHT_COLUMN_TYPE=l.COLUMN_TYPE,t.HIGHLIGHT_CUSTOM_SELECTION_TYPE=l.CUSTOM_SELECTION_TYPE;var h=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(10175));t.Renderer=h;var u=n(78359);t.OrderView=u.OrderView,t.SharedOrderView=u.SharedOrderView;var c=n(78158);t.NodesPool=c.NodesPool;var d=n(90308);t.getListenersCounter=d.getListenersCounter},51219:(e,t,n)=>{"use strict";t.__esModule=!0,t.getAllCommands=function(){return[r.command,s.command,i.command,o.command,a.command,l.command]};var r=n(91679),s=n(95445),i=n(8961),o=n(1401),a=n(72049),l=n(45391)},51330:(e,t,n)=>{"use strict";t.__esModule=!0,t.operationResult=a,n(81396),n(39691);var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217)),s=n(77768);const i=t.OPERATION_ID="conjunction",o=t.SHORT_NAME_FOR_COMPONENT=r.FILTERS_LABELS_CONJUNCTION;function a(e,t){return e.every(e=>e.func(t))}(0,s.registerOperation)(i,o,a)},51784:()=>{},51842:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(81115)),i=r(n(75467)),o=r(n(62963));class a extends o.default{constructor(e,t,n){super(e,t),(0,s.default)(this,"cloneSource",void 0),(0,s.default)(this,"cloneOverlay",void 0);const r=this.wtSettings.getSetting("facade",this);this.cloneSource=n.source,this.cloneOverlay=n.overlay,this.wtTable=this.cloneOverlay.createTable(this.getTableDao(),r,this.domBindings,this.wtSettings),this.wtViewport=n.viewport,this.selectionManager=n.selectionManager,this.wtEvent=new i.default(r,this.domBindings,this.wtSettings,this.eventManager,this.wtTable,this.selectionManager,n.event),this.findOriginalHeaders()}}t.default=a},51897:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(82311);t.valueGetter=r.valueGetter;var s=n(46723);t.valueSetter=s.valueSetter},51948:(e,t,n)=>{"use strict";t.__esModule=!0,n(22588),n(78822),n(86192),n(80729),n(99888),n(12767),n(78644),n(97550);var r=n(38942);function s(e,t,n){i(e,t),t.set(e,n)}function i(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function o(e,t){return e.get(l(e,t))}function a(e,t,n){return e.set(l(e,t),n),n}function l(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,u=new WeakMap,c=new WeakSet;function d(e){let[t,n,s,i]=o(h,this).getCorners();if(t<0&&s<0||n<0&&i<0)return;const{wtTable:a}=o(u,this),l=t!==s||n!==i;if(n=Math.max(n,0),i=Math.max(i,0),t=Math.max(t,0),s=Math.max(s,0),l){if(n=Math.max(n,a.getFirstRenderedColumn()),i=Math.min(i,a.getLastRenderedColumn()),t=Math.max(t,a.getFirstRenderedRow()),s=Math.min(s,a.getLastRenderedRow()),i<n||s<t)return}else{const e=a.getCell(o(u,this).createCellCoords(t,n));if(!(0,r.isHTMLElement)(e))return}for(let r=t;r<=s;r+=1)for(let t=n;t<=i;t+=1)e(r,t)}function g(e){const{wtTable:t}=o(u,this),n=t.getRenderedRowsCount(),r=t.getRenderedColumnsCount();for(let s=0;s<n;s+=1){const n=t.rowFilter.renderedToSource(s);for(let s=0;s<r;s+=1)e(n,t.columnFilter.renderedToSource(s))}}t.SelectionScanner=class{constructor(){var e,t;i(e=this,t=c),t.add(e),s(this,h,void 0),s(this,u,void 0)}setActiveOverlay(e){return a(u,this,e),this}setActiveSelection(e){return a(h,this,e),this}scan(){const e=o(h,this).settings.selectionType,t=new Set;return"active-header"===e?(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanRowsInHeadersRange(e=>t.add(e))):"area"===e?this.scanCellsRange(e=>t.add(e)):"focus"===e?(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanRowsInHeadersRange(e=>t.add(e)),this.scanCellsRange(e=>t.add(e))):"fill"===e?this.scanCellsRange(e=>t.add(e)):"header"===e?(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanRowsInHeadersRange(e=>t.add(e))):"row"===e?(this.scanRowsInHeadersRange(e=>t.add(e)),this.scanRowsInCellsRange(e=>t.add(e))):"column"===e&&(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanColumnsInCellsRange(e=>t.add(e))),t}scanColumnsInHeadersRange(e){const[t,n,r,s]=o(h,this).getCorners(),{wtTable:i}=o(u,this),a=i.getRenderedColumnsCount(),l=i.getColumnHeadersCount();let c=0;for(let d=-i.getRowHeadersCount();d<a;d++){const a=i.columnFilter.renderedToSource(d);if(!(a<n||a>s)){for(let d=-l;d<0;d++){if(d<t||d>r)continue;const g=d+l;let p=i.getColumnHeader(a,g);const f=o(u,this).getSetting("onBeforeHighlightingColumnHeader",a,g,{selectionType:o(h,this).settings.selectionType,columnCursor:c,selectionWidth:s-n+1});null!==f&&(f!==a&&(p=i.getColumnHeader(f,g)),e(p))}c+=1}}}scanRowsInHeadersRange(e){const[t,n,r,s]=o(h,this).getCorners(),{wtTable:i}=o(u,this),a=i.getRenderedRowsCount(),l=i.getRowHeadersCount();let c=0;for(let d=-i.getColumnHeadersCount();d<a;d++){const a=i.rowFilter.renderedToSource(d);if(!(a<t||a>r)){for(let d=-l;d<0;d++){if(d<n||d>s)continue;const g=d+l;let p=i.getRowHeader(a,g);const f=o(u,this).getSetting("onBeforeHighlightingRowHeader",a,g,{selectionType:o(h,this).settings.selectionType,rowCursor:c,selectionHeight:r-t+1});null!==f&&(f!==a&&(p=i.getRowHeader(f,g)),e(p))}c+=1}}}scanCellsRange(e){const{wtTable:t}=o(u,this);l(c,this,d).call(this,(n,s)=>{const i=t.getCell(o(u,this).createCellCoords(n,s)),a=o(u,this).getSetting("onAfterDrawSelection",n,s,o(h,this).settings.layerLevel);"string"==typeof a&&(0,r.addClass)(i,a),e(i)})}scanRowsInCellsRange(e){const[t,,n]=o(h,this).getCorners(),{wtTable:r}=o(u,this);l(c,this,g).call(this,(s,i)=>{if(s>=t&&s<=n){const t=r.getCell(o(u,this).createCellCoords(s,i));e(t)}})}scanColumnsInCellsRange(e){const[,t,,n]=o(h,this).getCorners(),{wtTable:r}=o(u,this);l(c,this,g).call(this,(s,i)=>{if(i>=t&&i<=n){const t=r.getCell(o(u,this).createCellCoords(s,i));e(t)}})}}},51957:()=>{},52035:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(e){const t=e.hot.isRtl()?"start":"end";return{key:"borders:right",name(){let e=this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_BORDERS_RIGHT);return(0,s.checkSelectionBorders)(this,t)&&(e=(0,s.markSelected)(e)),e},callback(n,r){const i=(0,s.checkSelectionBorders)(this,t);e.prepareBorder(r,t,i)}}};var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217)),s=n(6528)},52270:(e,t,n)=>{"use strict";var r=n(14326);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},52282:(e,t,n)=>{"use strict";var r=n(21912),s=n(33477),i=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,a=s(i,"name"),l=a&&"something"===function(){}.name,h=a&&(!r||r&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:l,CONFIGURABLE:h}},52554:(e,t,n)=>{"use strict";var r=n(94988),s=n(87681),i=Math.floor,o=r("".charAt),a=r("".replace),l=r("".slice),h=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,c,d){var g=n+e.length,p=r.length,f=u;return void 0!==c&&(c=s(c),f=h),a(d,f,function(s,a){var h;switch(o(a,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,g);case"<":h=c[l(a,1,-1)];break;default:var u=+a;if(0===u)return s;if(u>p){var d=i(u/10);return 0===d?s:d<=p?void 0===r[d-1]?o(a,1):r[d-1]+o(a,1):s}h=r[u-1]}return void 0===h?"":h})}},52576:(e,t,n)=>{"use strict";var r=n(94988),s=n(33477),i=n(56769),o=n(34341).indexOf,a=n(46049),l=r([].push);e.exports=function(e,t){var n,r=i(e),h=0,u=[];for(n in r)!s(a,n)&&s(r,n)&&l(u,n);for(;t.length>h;)s(r,n=t[h++])&&(~o(u,n)||l(u,n));return u}},52661:()=>{},52846:(e,t)=>{"use strict";t.__esModule=!0;t.SCOPE_TYPES=Object.freeze({INLINE:"inline",MODAL:"modal"}),t.FOCUS_SOURCES=Object.freeze({UNKNOWN:"unknown",CLICK:"click",TAB_FROM_ABOVE:"tab_from_above",TAB_FROM_BELOW:"tab_from_below"}),t.DEFAULT_SHORTCUTS_CONTEXT="grid"},52857:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182),n(33166),n(78822),n(86192),n(80729),n(99888),n(12767),n(78644),n(97550),n(81396),n(88633),n(14618);var s=n(38942),i=n(51948),o=r(n(16183));function a(e,t,n){l(e,t),t.set(e,n)}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,n){return e.set(c(e,t),n),n}function c(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;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,E=new WeakMap,w=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 n=0;n<t.length;n++)e.add(t[n]);e.forEach(e=>{var t,n;const r=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===(n=h(g,this).options)||void 0===n?void 0:n.headerAttributes)&&(i=[...i,...h(g,this).options.headerAttributes.map(e=>e[0])]);for(let t=0,n=r.length;t<n;t++)(0,s.removeClass)(r[t],e),(0,s.removeAttribute)(r[t],i)}),e.clear()}t.SelectionManager=class{constructor(e){var t,n;l(t=this,n=w),n.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,E,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(E,this).has(e)){const t=h(E,this).get(e);if(t.has(h(d,this)))return t.get(h(d,this));const n=new o.default(h(d,this),e.settings);return t.set(h(d,this),n),n}const t=new o.default(h(d,this),e.settings);return h(E,this).set(e,new Map([[h(d,this),t]])),t}getBorderInstances(e){var t,n;return Array.from(null!==(t=null===(n=h(E,this).get(e))||void 0===n?void 0:n.values())&&void 0!==t?t:[])}destroyBorders(e){h(E,this).get(e).forEach(e=>e.destroy()),h(E,this).delete(e)}render(e){if(null===h(g,this))return;e&&c(w,this,y).call(this);const t=Array.from(h(g,this)),n=new Map,r=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(n.has(e)){const t=n.get(e);t.has(i)&&!0===a?t.set(i,t.get(i)+1):t.set(i,1)}else n.set(e,new Map([[i,1]]));o&&(r.has(e)||r.set(e,[]),"TH"===e.nodeName&&r.get(e).push(...o))})}const c=s.getCorners();h(d,this).getSetting("onBeforeDrawBorders",c,l),null==u||u.appear(c)}n.forEach((e,t)=>{var n;const r=Array.from(e).map(e=>{let[t,n]=e;return 1===n?t:[t,...Array.from({length:n-1},(e,n)=>`${t}-${n+1}`)]}).flat();r.forEach(e=>h(f,this).get(h(d,this)).add(e)),(0,s.addClass)(t,r),"TD"===t.nodeName&&Array.isArray(null===(n=h(g,this).options)||void 0===n?void 0:n.cellAttributes)&&(0,s.setAttribute)(t,h(g,this).options.cellAttributes)}),Array.from(r.keys()).forEach(e=>{(0,s.setAttribute)(e,[...r.get(e)])})}}},52863:()=>{},52877:(e,t,n)=>{"use strict";t.__esModule=!0,n(22588),n(59839),n(30417),n(81396),n(88633),n(14618);var r=n(57440),s=n(72740),i=n(38942),o=n(7267),a=n(7516),l=n(5386),h=n(86431),u=n(14298),c=n(87544);function d(e,t,n){g(e,t),t.set(e,n)}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,n){return e.set(m(e,t),n),n}function m(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const E=t.PLUGIN_KEY="pagination",w=t.PLUGIN_PRIORITY=900,y=`plugin:${E}`,C=u.toSingleLine`The \`auto\` page size setting requires the \`autoRowSize\`\x20
|
|
261
|
-
plugin to be enabled. Set the \`autoRowSize: true\` in the configuration to ensure correct behavior.`;var v=new WeakMap,S=new WeakMap,R=new WeakMap,T=new WeakMap,_=new WeakMap,N=new WeakMap,A=new WeakMap,b=new WeakSet,M=new WeakMap;class I extends r.BasePlugin{constructor(){var e,t;super(...arguments),g(e=this,t=b),t.add(e),d(this,v,null),d(this,S,1),d(this,R,10),d(this,T,null),d(this,_,null),d(this,N,!1),d(this,A,!1),d(this,M,()=>{var e;!p(N,this)&&null!==(e=this.hot)&&void 0!==e&&e.view&&m(b,this,x).call(this)})}static get PLUGIN_KEY(){return E}static get PLUGIN_PRIORITY(){return w}static get DEFAULT_SETTINGS(){return{pageSize:10,pageSizeList:["auto",5,10,20,50,100],initialPage:1,showPageSize:!0,showCounter:!0,showNavigation:!0,uiContainer:null}}isEnabled(){return!!this.hot.getSettings()[E]}enablePlugin(){var e,t=this;if((0,a.checkPluginSettingsConflict)(this.hot.getSettings()))return void(this.hot.getSettings()[E]=!1);if(this.enabled)return;const n=this.hot.getSettings()[E];void 0!==(null==n?void 0:n.initialPage)&&f(S,this,this.getSetting("initialPage")),void 0!==(null==n?void 0:n.pageSize)&&f(R,this,this.getSetting("pageSize")),f(v,this,this.hot.rowIndexMapper.createAndRegisterIndexMap(this.pluginName,"hiding",!1)),"auto"!==p(R,this)||null!==(e=this.hot.getPlugin("autoRowSize"))&&void 0!==e&&e.enabled||(0,c.warn)(C),f(_,this,(0,h.createPaginatorStrategy)("auto"===p(R,this)?"auto":"fixed")),p(T,this)||(f(T,this,new o.PaginationUI({rootElement:this.hot.rootGridElement,uiContainer:this.getSetting("uiContainer"),isRtl:this.hot.isRtl(),themeName:this.hot.getSettings().themeName,phraseTranslator:function(){return t.hot.getTranslatedPhrase(...arguments)},shouldHaveBorder:()=>m(b,this,P).call(this),a11yAnnouncer:e=>(0,l.announce)(e)})),m(b,this,O).call(this),p(T,this).addLocalHook("firstPageClick",()=>this.firstPage()).addLocalHook("prevPageClick",()=>this.prevPage()).addLocalHook("nextPageClick",()=>this.nextPage()).addLocalHook("lastPageClick",()=>this.lastPage()).addLocalHook("pageSizeChange",e=>this.setPageSize(e))),this.addHook("init",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return m(b,t,Y).call(t,...n)},-1),this.addHook("beforeSelectAll",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return m(b,t,k).call(t,...n)}),this.addHook("beforeSelectColumns",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return m(b,t,k).call(t,...n)}),this.addHook("beforeSetRangeEnd",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return m(b,t,H).call(t,...n)}),this.addHook("beforeSelectionHighlightSet",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return m(b,t,F).call(t,...n)}),this.addHook("beforePaste",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return m(b,t,U).call(t,...n)}),this.addHook("afterViewRender",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return m(b,t,V).call(t,...n)}),this.addHook("afterRender",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return m(b,t,B).call(t,...n)}),this.addHook("afterScrollVertically",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return m(b,t,G).call(t,...n)}),this.addHook("afterLanguageChange",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return m(b,t,j).call(t,...n)}),this.addHook("beforeHeightChange",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return m(b,t,W).call(t,...n)}),this.addHook("afterSetTheme",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return m(b,t,z).call(t,...n)}),this.hot.rowIndexMapper.addLocalHook("cacheUpdated",p(M,this)),m(b,this,L).call(this),super.enablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),m(b,this,x).call(this),super.updatePlugin()}disablePlugin(){this.hot.rowIndexMapper.removeLocalHook("cacheUpdated",p(M,this)).unregisterMap(this.pluginName),m(b,this,D).call(this),p(T,this).destroy(),f(T,this,null),super.disablePlugin()}getPaginationData(){const e=p(_,this).getTotalPages();let t=-1,n=-1;const{pageSize:r,startIndex:s}=p(_,this).getState(p(S,this)),i=this.hot.countRows();let o=0;for(let e=s;o<r&&!(e>=i);e++)this.hot.rowIndexMapper.isHidden(this.hot.toPhysicalRow(e))||(-1===t&&(t=e),n=e,o+=1);return{currentPage:p(S,this),totalPages:e,pageSize:r,pageSizeList:[...this.getSetting("pageSizeList")],autoPageSize:"auto"===p(R,this),numberOfRenderedRows:this.hot.rowIndexMapper.getRenderableIndexesLength(),firstVisibleRowIndex:t,lastVisibleRowIndex:n}}setPage(e){const t=p(S,this);!1!==this.hot.runHooks("beforePageChange",t,e)&&(f(S,this,e),m(b,this,x).call(this),this.hot.scrollViewportTo({row:0}),this.hot.runHooks("afterPageChange",t,p(S,this)),this.hot.view.adjustElementsSize(),this.hot.render())}resetPage(){this.setPage(this.getSetting("initialPage"))}setPageSize(e){var t;const n=p(R,this);!1!==this.hot.runHooks("beforePageSizeChange",n,e)&&("auto"!==e||null!==(t=this.hot.getPlugin("autoRowSize"))&&void 0!==t&&t.enabled||(0,c.warn)(C),f(_,this,(0,h.createPaginatorStrategy)("auto"===e?"auto":"fixed")),f(R,this,e),m(b,this,x).call(this),this.hot.runHooks("afterPageSizeChange",n,p(R,this)),this.hot.view.adjustElementsSize(),this.hot.render())}resetPageSize(){this.setPageSize(this.getSetting("pageSize"))}resetPagination(){this.resetPage(),this.resetPageSize(),m(b,this,O).call(this)}nextPage(){this.setPage(p(S,this)+1)}prevPage(){this.setPage(p(S,this)-1)}firstPage(){this.setPage(1)}lastPage(){this.setPage(p(_,this).getTotalPages())}hasPreviousPage(){return p(S,this)>1}hasNextPage(){return p(S,this)<p(_,this).getTotalPages()}getCurrentPageData(){const{firstVisibleRowIndex:e,lastVisibleRowIndex:t}=this.getPaginationData();return-1===e||-1===t?[]:this.hot.getData(e,0,t,this.hot.countCols()-1)}showPageSizeSection(){p(T,this).setPageSizeSectionVisibility(!0),this.hot.runHooks("afterPageSizeVisibilityChange",!0)}hidePageSizeSection(){p(T,this).setPageSizeSectionVisibility(!1),this.hot.runHooks("afterPageSizeVisibilityChange",!1)}showPageCounterSection(){p(T,this).setCounterSectionVisibility(!0),this.hot.runHooks("afterPageCounterVisibilityChange",!0)}hidePageCounterSection(){p(T,this).setCounterSectionVisibility(!1),this.hot.runHooks("afterPageCounterVisibilityChange",!1)}showPageNavigationSection(){p(T,this).setNavigationSectionVisibility(!0),this.hot.runHooks("afterPageNavigationVisibilityChange",!0)}hidePageNavigationSection(){p(T,this).setNavigationSectionVisibility(!1),this.hot.runHooks("afterPageNavigationVisibilityChange",!1)}destroy(){var e;f(v,this,null),f(_,this,null),null===(e=p(T,this))||void 0===e||e.destroy(),f(T,this,null),super.destroy()}}function O(){this.getSetting("showPageSize")?this.showPageSizeSection():this.hidePageSizeSection(),this.getSetting("showCounter")?this.showPageCounterSection():this.hidePageCounterSection(),this.getSetting("showNavigation")?this.showPageNavigationSection():this.hidePageNavigationSection()}function x(){f(N,this,!0),p(v,this).clear();const e=this.hot.rowIndexMapper.getRenderableIndexes(),t=e.length,{stylesHandler:n}=this.hot;p(_,this).calculate({pageSize:p(R,this),totalItems:t,viewportSizeProvider:()=>{const{view:e}=this.hot;if(e.isVerticallyScrollableByWindow()){const t=getComputedStyle(this.hot.rootDocument.body),n=Number.parseInt(t.marginTop,10)+Number.parseInt(t.marginBottom,10),r=this.hot.hasColHeaders()?e._wt.wtTable.getColumnHeaderHeight():0,s=p(T,this).getHeight();return e.getWorkspaceHeight()-s-r-n}const t=e.hasHorizontalScroll()?(0,i.getScrollbarWidth)():0;return e.getViewportHeight()-t},itemsSizeProvider:()=>this.hot.rowIndexMapper.getRenderableIndexes().map(e=>{var t;const r=this.hot.toVisualRow(e);return null!==(t=this.hot.getRowHeight(r))&&void 0!==t?t:n.getDefaultRowHeight(r)})});const r=p(_,this).getTotalPages();if(f(S,this,(0,s.clamp)(p(S,this),1,r)),e.length>0){const{startIndex:t,pageSize:n}=p(_,this).getState(p(S,this));e.splice(t,n)}e.length>0?this.hot.batchExecution(()=>{e.forEach(e=>p(v,this).setValueAtIndex(e,!0))},!0):this.hot.rowIndexMapper.updateCache(!0),f(N,this,!1);const o=this.getPaginationData();p(T,this).updateState({...o,totalRenderedRows:t})}function P(){if(!this.hot.view)return!0;const{view:e}=this.hot;if(e.isVerticallyScrollableByWindow())return!1;if(e.hasHorizontalScroll()||e.getTableHeight()<e.getWorkspaceHeight())return!0;const{lastVisibleRowIndex:t}=this.getPaginationData();return e.getLastFullyVisibleRow()!==t}function L(){this.hot.getFocusScopeManager().registerScope(E,p(T,this).getContainer(),{shortcutsContextName:y,runOnlyIf:()=>this.getSetting("showPageSize")||this.getSetting("showNavigation"),onActivate:e=>{const t=p(T,this).getFocusableElements();t.length>0&&("tab_from_above"===e?t.at(0).focus():"tab_from_below"===e&&t.at(-1).focus())}})}function D(){this.hot.getFocusScopeManager().unregisterScope(E)}function k(e,t){const{firstVisibleRowIndex:n,lastVisibleRowIndex:r}=this.getPaginationData();(p(S,this)>1||e.row>=0)&&(e.row=n),t.row=r}function H(e){if(this.hot.selection.isSelectedByColumnHeader()){const{lastVisibleRowIndex:t}=this.getPaginationData();e.row=t}}function F(){if(!this.hot.getSettings().navigableHeaders)return;const e=this.hot.getSelectedRangeLast();if(!e.isSingle()){const{highlight:t}=e;t.row=(0,s.clamp)(t.row,e.getTopStartCorner().row,e.getBottomEndCorner().row)}}function U(e,t){const{firstVisibleRowIndex:n,lastVisibleRowIndex:r}=this.getPaginationData();if(-1===n||-1===r)return!1;t.forEach(t=>{let{startRow:n}=t;if(0===e.length)return;const s=Math.min(e.length-(r-n+1),e.length);e.splice(0,s)})}function V(){"auto"!==p(R,this)||p(A,this)?f(A,this,!1):(m(b,this,x).call(this),f(A,this,!0),this.hot.view.adjustElementsSize(),this.hot.render())}function B(){const{view:e}=this.hot,t=e.isHorizontallyScrollableByWindow()?e.getTotalTableWidth():e.getWorkspaceWidth();p(T,this).updateWidth(t).refreshBorderState()}function W(e){if(this.getSetting("uiContainer"))return e;if(!("number"==typeof e||"string"==typeof e&&/^\d+$/.test(e)||"string"==typeof e&&e.endsWith("px")))return e;return`calc(${"string"==typeof e&&e.endsWith("px")?e:`${e}px`} - ${p(T,this).getHeight()}px)`}function Y(){"auto"!==p(R,this)&&m(b,this,x).call(this)}function G(){p(T,this).refreshBorderState()}function j(){m(b,this,x).call(this)}function z(e){p(T,this).updateTheme(e)}t.Pagination=I},52912:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(66182);var s=r(n(81115)),i=n(30152);t.default=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>[];(0,s.default)(this,"conditionCollection",void 0),(0,s.default)(this,"columnDataFactory",void 0),this.conditionCollection=e,this.columnDataFactory=t}filter(){let e=[];return(0,i.arrayEach)(this.conditionCollection.getFilteredColumns(),(t,n)=>{let r=this.columnDataFactory(t);n&&(r=this._getIntersectData(r,e)),e=this.filterByColumn(t,r)}),e}filterByColumn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=[];return(0,i.arrayEach)(t,t=>{void 0!==t&&this.conditionCollection.isMatch(t,e)&&n.push(t)}),n}_getIntersectData(e,t){const n=[];return(0,i.arrayEach)(t,t=>{const r=t.meta.visualRow;void 0!==e[r]&&(n[r]=e[r])}),n}}},53113:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(66135);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ColumnSummary=r.ColumnSummary},53119:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(95605);const s=t.EDITOR_TYPE="time";class i extends r.TextEditor{static get EDITOR_TYPE(){return s}prepare(e,t,n,r,s,i){super.prepare(e,t,n,r,s,i),this.TEXTAREA.dir="ltr"}}t.TimeEditor=i},53246:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostBottom",callback(e){const{selection:t,rowIndexMapper:n}=e,{highlight:r,from:s,to:i}=e.getSelectedRangeActive(),o=r.isHeader()&&t.isSelectedByRowHeader();if(r.isCell()||o){const a=n.getNearestNotHiddenIndex(e.countRows()-1,-1),l=s.clone();l.row=r.row,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,r.clone()),o&&t.selectedByRowHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(a,i.col)),t.markEndSource()}}}},53269:(e,t,n)=>{"use strict";var r=n(19617),s=n(52270),i=n(497),o=n(61338),a=n(57490),l=n(71671),h=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!s(e)||i(e))return e;var n,l=o(e,u);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!s(n)||i(n))return n;throw new h("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},53570:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588);var s=r(n(81115)),i=n(38942),o=n(89090);t.default=class{constructor(e){(0,s.default)(this,"settings",{}),(0,s.default)(this,"defaults",Object.freeze(this.getDefaults())),(0,o.objectEach)(this.defaults,(t,n)=>{if(void 0!==e[n])this.settings[n]=e[n];else{if(void 0===t)throw new Error(`A required setting "${n}" was not provided`);this.settings[n]=t}})}getDefaults(){return{facade:void 0,table:void 0,isDataViewInstance:!0,externalRowCalculator:!1,currentRowClassName:null,currentColumnClassName:null,preventOverflow:()=>!1,preventWheel:!1,data:void 0,fixedColumnsStart:0,fixedRowsTop:0,fixedRowsBottom:0,shouldRenderInlineStartOverlay:()=>this.getSetting("fixedColumnsStart")>0||this.getSetting("rowHeaders").length>0,shouldRenderTopOverlay:()=>this.getSetting("fixedRowsTop")>0||this.getSetting("columnHeaders").length>0,shouldRenderBottomOverlay:()=>this.getSetting("fixedRowsBottom")>0,minSpareRows:0,rowHeaders:()=>[],columnHeaders:()=>[],totalRows:void 0,totalColumns:void 0,cellRenderer:(e,t,n)=>{const r=this.getSetting("data",e,t);(0,i.fastInnerText)(n,null==r?"":r)},columnWidth(){},rowHeight(){},rowHeightByOverlayName(){},defaultColumnWidth:50,selections:null,hideBorderOnMouseDownOver:!1,viewportRowCalculatorOverride:null,viewportColumnCalculatorOverride:null,viewportRowRenderingThreshold:null,viewportColumnRenderingThreshold:null,onCellMouseDown:null,onCellContextMenu:null,onCellMouseOver:null,onCellMouseOut:null,onCellMouseUp:null,onCellDblClick:null,onCellCornerMouseDown:null,onCellCornerDblClick:null,beforeDraw:null,onDraw:null,onBeforeRemoveCellClassNames:null,onAfterDrawSelection:null,onBeforeDrawBorders:null,onBeforeViewportScrollHorizontally:e=>e,onBeforeViewportScrollVertically:e=>e,onScrollHorizontally:null,onScrollVertically:null,onBeforeTouchScroll:null,onAfterMomentumScroll:null,onModifyRowHeaderWidth:null,onModifyGetCellCoords:null,onModifyGetCoordsElement:null,onModifyGetCoords:null,onBeforeHighlightingRowHeader:e=>e,onBeforeHighlightingColumnHeader:e=>e,onWindowResize:null,onContainerElementResize:null,renderAllColumns:!1,renderAllRows:!1,groups:!1,rowHeaderWidth:null,columnHeaderHeight:null,headerClassName:null,rtlMode:!1,ariaTags:!0,stylesHandler:null}}update(e,t){return void 0===t?(0,o.objectEach)(e,(e,t)=>{this.settings[t]=e}):this.settings[e]=t,this}getSetting(e,t,n,r,s){return"function"==typeof this.settings[e]?this.settings[e](t,n,r,s):void 0!==t&&Array.isArray(this.settings[e])?this.settings[e][t]:this.settings[e]}getSettingPure(e){return this.settings[e]}has(e){return!!this.settings[e]}}},53588:(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 n=t.getCSSVariableValue("cell-autofill-size"),r=t.getCSSVariableValue("cell-autofill-border-width"),s=t.getCSSVariableValue("cell-autofill-border-color");return Object.freeze({width:n,height:n,borderWidth:r,borderStyle:"solid",borderColor:s})}},53686:()=>{},53791:(e,t,n)=>{"use strict";t.__esModule=!0,t.useEventListener=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!1;function s(e){var r;n||(null===(r=t.onFocus)||void 0===r||r.call(t,e))}function i(e){var n;null===(n=t.onClick)||void 0===n||n.call(t,e)}function o(e){var n;"Tab"===e.key&&(null===(n=t.onTabKeyDown)||void 0===n||n.call(t,e))}function a(){n=!0}function l(){n=!1}return{mount:()=>{let t=e;for(;t;){const{documentElement:e}=t.document;e.addEventListener("focusin",s),e.addEventListener("click",i),e.addEventListener("keydown",o),e.addEventListener("mousedown",a),e.addEventListener("mouseup",l),t=(0,r.getParentWindow)(t)}},unmount:()=>{let t=e;for(;t;){const{documentElement:e}=t.document;e.removeEventListener("focusin",s),e.removeEventListener("click",i),e.removeEventListener("keydown",o),e.removeEventListener("mousedown",a),e.removeEventListener("mouseup",l),t=(0,r.getParentWindow)(t)}}}};var r=n(38942)},54060:(e,t,n)=>{"use strict";var r,s=n(16539),i=n(16933),o=n(20155),a=n(46049),l=n(88025),h=n(59899),u=n(26075),c="prototype",d="script",g=u("IE_PROTO"),p=function(){},f=function(e){return"<"+d+">"+e+"</"+d+">"},m=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},E=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;E="undefined"!=typeof document?document.domain&&r?m(r):(t=h("iframe"),n="java"+d+":",t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):m(r);for(var s=o.length;s--;)delete E[c][o[s]];return E()};a[g]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p[c]=s(e),n=new p,p[c]=null,n[g]=e):n=E(),void 0===t?n:i.f(n,t)}},54070:()=>{},54088:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=n(89090),i=r(n(24285));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},54230:(e,t,n)=>{"use strict";var r=n(90254),s=n(84990);e.exports=r(s.proto,"size","get")||function(e){return e.size}},54271:()=>{},54342:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,t._injectProductInfo=function(e,t){const n=!a(e),r="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),i="16.2.0-next-7d068f5-20251117";let o,y="invalid",C="invalid";const v=function(e){let t=[][l],n=t;if(e[l]!==d("Z"))return!1;for(let t="",r="B<H4P+".split(""),s=d(r.shift());s;s=d(r.shift()||"A"))--s<""[l]?n|=(u(`${u(h(t)+(h(c(e,Math.abs(s),2))+[]).padStart(2,"0"))}`)%97||2)>>1:t=c(e,s,s?1===r[l]?9:8:6);return n===t}(e=g(e||""));if(n||r||v)if(v){const t=(0,s.default)("20/11/2025","DD/MM/YYYY"),n=Math.floor(t.toDate().getTime()/864e5),r=p(e);o=(0,s.default)(864e5*(r+1),"x").format("MMMM DD, YYYY"),n>r?(y="expired",C="expired"):(y="valid",C="valid")}else r?(y="non_commercial",C="valid"):(y="invalid",C="invalid");else y="missing",C="missing";f()&&(y="valid",C="valid");if(!m&&"valid"!==y){E[y]({keyValidityDate:o,hotVersion:i})&&console["non_commercial"===y?"info":"warn"](E[y]({keyValidityDate:o,hotVersion:i})),m=!0}if("valid"!==C&&t){if(w[C]({keyValidityDate:o,hotVersion:i})){const e=document.createElement("div");e.className="handsontable hot-display-license-info",e.innerHTML=w[C]({keyValidityDate:o,hotVersion:i}),t.appendChild(e)}}},t.isDefined=function(e){return void 0!==e},t.isEmpty=a,t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.isUndefined=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=r(n(37539)),i=n(14298);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,n)=>e.substr(t,n),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 E={invalid:()=>i.toSingleLine`
|
|
261
|
+
plugin to be enabled. Set the \`autoRowSize: true\` in the configuration to ensure correct behavior.`;var v=new WeakMap,S=new WeakMap,R=new WeakMap,T=new WeakMap,_=new WeakMap,N=new WeakMap,A=new WeakMap,b=new WeakSet,M=new WeakMap;class I extends r.BasePlugin{constructor(){var e,t;super(...arguments),g(e=this,t=b),t.add(e),d(this,v,null),d(this,S,1),d(this,R,10),d(this,T,null),d(this,_,null),d(this,N,!1),d(this,A,!1),d(this,M,()=>{var e;!p(N,this)&&null!==(e=this.hot)&&void 0!==e&&e.view&&m(b,this,x).call(this)})}static get PLUGIN_KEY(){return E}static get PLUGIN_PRIORITY(){return w}static get DEFAULT_SETTINGS(){return{pageSize:10,pageSizeList:["auto",5,10,20,50,100],initialPage:1,showPageSize:!0,showCounter:!0,showNavigation:!0,uiContainer:null}}isEnabled(){return!!this.hot.getSettings()[E]}enablePlugin(){var e,t=this;if((0,a.checkPluginSettingsConflict)(this.hot.getSettings()))return void(this.hot.getSettings()[E]=!1);if(this.enabled)return;const n=this.hot.getSettings()[E];void 0!==(null==n?void 0:n.initialPage)&&f(S,this,this.getSetting("initialPage")),void 0!==(null==n?void 0:n.pageSize)&&f(R,this,this.getSetting("pageSize")),f(v,this,this.hot.rowIndexMapper.createAndRegisterIndexMap(this.pluginName,"hiding",!1)),"auto"!==p(R,this)||null!==(e=this.hot.getPlugin("autoRowSize"))&&void 0!==e&&e.enabled||(0,c.warn)(C),f(_,this,(0,h.createPaginatorStrategy)("auto"===p(R,this)?"auto":"fixed")),p(T,this)||(f(T,this,new o.PaginationUI({rootElement:this.hot.rootGridElement,uiContainer:this.getSetting("uiContainer"),isRtl:this.hot.isRtl(),themeName:this.hot.getSettings().themeName,phraseTranslator:function(){return t.hot.getTranslatedPhrase(...arguments)},shouldHaveBorder:()=>m(b,this,P).call(this),a11yAnnouncer:e=>(0,l.announce)(e)})),m(b,this,O).call(this),p(T,this).addLocalHook("firstPageClick",()=>this.firstPage()).addLocalHook("prevPageClick",()=>this.prevPage()).addLocalHook("nextPageClick",()=>this.nextPage()).addLocalHook("lastPageClick",()=>this.lastPage()).addLocalHook("pageSizeChange",e=>this.setPageSize(e))),this.addHook("init",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return m(b,t,Y).call(t,...n)},-1),this.addHook("beforeSelectAll",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return m(b,t,k).call(t,...n)}),this.addHook("beforeSelectColumns",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return m(b,t,k).call(t,...n)}),this.addHook("beforeSetRangeEnd",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return m(b,t,H).call(t,...n)}),this.addHook("beforeSelectionHighlightSet",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return m(b,t,F).call(t,...n)}),this.addHook("beforePaste",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return m(b,t,U).call(t,...n)}),this.addHook("afterViewRender",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return m(b,t,V).call(t,...n)}),this.addHook("afterRender",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return m(b,t,B).call(t,...n)}),this.addHook("afterScrollVertically",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return m(b,t,G).call(t,...n)}),this.addHook("afterLanguageChange",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return m(b,t,j).call(t,...n)}),this.addHook("beforeHeightChange",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return m(b,t,W).call(t,...n)}),this.addHook("afterSetTheme",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return m(b,t,z).call(t,...n)}),this.hot.rowIndexMapper.addLocalHook("cacheUpdated",p(M,this)),m(b,this,L).call(this),super.enablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),m(b,this,x).call(this),super.updatePlugin()}disablePlugin(){this.hot.rowIndexMapper.removeLocalHook("cacheUpdated",p(M,this)).unregisterMap(this.pluginName),m(b,this,D).call(this),p(T,this).destroy(),f(T,this,null),super.disablePlugin()}getPaginationData(){const e=p(_,this).getTotalPages();let t=-1,n=-1;const{pageSize:r,startIndex:s}=p(_,this).getState(p(S,this)),i=this.hot.countRows();let o=0;for(let e=s;o<r&&!(e>=i);e++)this.hot.rowIndexMapper.isHidden(this.hot.toPhysicalRow(e))||(-1===t&&(t=e),n=e,o+=1);return{currentPage:p(S,this),totalPages:e,pageSize:r,pageSizeList:[...this.getSetting("pageSizeList")],autoPageSize:"auto"===p(R,this),numberOfRenderedRows:this.hot.rowIndexMapper.getRenderableIndexesLength(),firstVisibleRowIndex:t,lastVisibleRowIndex:n}}setPage(e){const t=p(S,this);!1!==this.hot.runHooks("beforePageChange",t,e)&&(f(S,this,e),m(b,this,x).call(this),this.hot.scrollViewportTo({row:0}),this.hot.runHooks("afterPageChange",t,p(S,this)),this.hot.view.adjustElementsSize(),this.hot.render())}resetPage(){this.setPage(this.getSetting("initialPage"))}setPageSize(e){var t;const n=p(R,this);!1!==this.hot.runHooks("beforePageSizeChange",n,e)&&("auto"!==e||null!==(t=this.hot.getPlugin("autoRowSize"))&&void 0!==t&&t.enabled||(0,c.warn)(C),f(_,this,(0,h.createPaginatorStrategy)("auto"===e?"auto":"fixed")),f(R,this,e),m(b,this,x).call(this),this.hot.runHooks("afterPageSizeChange",n,p(R,this)),this.hot.view.adjustElementsSize(),this.hot.render())}resetPageSize(){this.setPageSize(this.getSetting("pageSize"))}resetPagination(){this.resetPage(),this.resetPageSize(),m(b,this,O).call(this)}nextPage(){this.setPage(p(S,this)+1)}prevPage(){this.setPage(p(S,this)-1)}firstPage(){this.setPage(1)}lastPage(){this.setPage(p(_,this).getTotalPages())}hasPreviousPage(){return p(S,this)>1}hasNextPage(){return p(S,this)<p(_,this).getTotalPages()}getCurrentPageData(){const{firstVisibleRowIndex:e,lastVisibleRowIndex:t}=this.getPaginationData();return-1===e||-1===t?[]:this.hot.getData(e,0,t,this.hot.countCols()-1)}showPageSizeSection(){p(T,this).setPageSizeSectionVisibility(!0),this.hot.runHooks("afterPageSizeVisibilityChange",!0)}hidePageSizeSection(){p(T,this).setPageSizeSectionVisibility(!1),this.hot.runHooks("afterPageSizeVisibilityChange",!1)}showPageCounterSection(){p(T,this).setCounterSectionVisibility(!0),this.hot.runHooks("afterPageCounterVisibilityChange",!0)}hidePageCounterSection(){p(T,this).setCounterSectionVisibility(!1),this.hot.runHooks("afterPageCounterVisibilityChange",!1)}showPageNavigationSection(){p(T,this).setNavigationSectionVisibility(!0),this.hot.runHooks("afterPageNavigationVisibilityChange",!0)}hidePageNavigationSection(){p(T,this).setNavigationSectionVisibility(!1),this.hot.runHooks("afterPageNavigationVisibilityChange",!1)}destroy(){var e;f(v,this,null),f(_,this,null),null===(e=p(T,this))||void 0===e||e.destroy(),f(T,this,null),super.destroy()}}function O(){this.getSetting("showPageSize")?this.showPageSizeSection():this.hidePageSizeSection(),this.getSetting("showCounter")?this.showPageCounterSection():this.hidePageCounterSection(),this.getSetting("showNavigation")?this.showPageNavigationSection():this.hidePageNavigationSection()}function x(){f(N,this,!0),p(v,this).clear();const e=this.hot.rowIndexMapper.getRenderableIndexes(),t=e.length,{stylesHandler:n}=this.hot;p(_,this).calculate({pageSize:p(R,this),totalItems:t,viewportSizeProvider:()=>{const{view:e}=this.hot;if(e.isVerticallyScrollableByWindow()){const t=getComputedStyle(this.hot.rootDocument.body),n=Number.parseInt(t.marginTop,10)+Number.parseInt(t.marginBottom,10),r=this.hot.hasColHeaders()?e._wt.wtTable.getColumnHeaderHeight():0,s=p(T,this).getHeight();return e.getWorkspaceHeight()-s-r-n}const t=e.hasHorizontalScroll()?(0,i.getScrollbarWidth)():0;return e.getViewportHeight()-t},itemsSizeProvider:()=>this.hot.rowIndexMapper.getRenderableIndexes().map(e=>{var t;const r=this.hot.toVisualRow(e);return null!==(t=this.hot.getRowHeight(r))&&void 0!==t?t:n.getDefaultRowHeight(r)})});const r=p(_,this).getTotalPages();if(f(S,this,(0,s.clamp)(p(S,this),1,r)),e.length>0){const{startIndex:t,pageSize:n}=p(_,this).getState(p(S,this));e.splice(t,n)}e.length>0?this.hot.batchExecution(()=>{e.forEach(e=>p(v,this).setValueAtIndex(e,!0))},!0):this.hot.rowIndexMapper.updateCache(!0),f(N,this,!1);const o=this.getPaginationData();p(T,this).updateState({...o,totalRenderedRows:t})}function P(){if(!this.hot.view)return!0;const{view:e}=this.hot;if(e.isVerticallyScrollableByWindow())return!1;if(e.hasHorizontalScroll()||e.getTableHeight()<e.getWorkspaceHeight())return!0;const{lastVisibleRowIndex:t}=this.getPaginationData();return e.getLastFullyVisibleRow()!==t}function L(){this.hot.getFocusScopeManager().registerScope(E,p(T,this).getContainer(),{shortcutsContextName:y,runOnlyIf:()=>this.getSetting("showPageSize")||this.getSetting("showNavigation"),onActivate:e=>{const t=p(T,this).getFocusableElements();t.length>0&&("tab_from_above"===e?t.at(0).focus():"tab_from_below"===e&&t.at(-1).focus())}})}function D(){this.hot.getFocusScopeManager().unregisterScope(E)}function k(e,t){const{firstVisibleRowIndex:n,lastVisibleRowIndex:r}=this.getPaginationData();(p(S,this)>1||e.row>=0)&&(e.row=n),t.row=r}function H(e){if(this.hot.selection.isSelectedByColumnHeader()){const{lastVisibleRowIndex:t}=this.getPaginationData();e.row=t}}function F(){if(!this.hot.getSettings().navigableHeaders)return;const e=this.hot.getSelectedRangeLast();if(!e.isSingle()){const{highlight:t}=e;t.row=(0,s.clamp)(t.row,e.getTopStartCorner().row,e.getBottomEndCorner().row)}}function U(e,t){const{firstVisibleRowIndex:n,lastVisibleRowIndex:r}=this.getPaginationData();if(-1===n||-1===r)return!1;t.forEach(t=>{let{startRow:n}=t;if(0===e.length)return;const s=Math.min(e.length-(r-n+1),e.length);e.splice(0,s)})}function V(){"auto"!==p(R,this)||p(A,this)?f(A,this,!1):(m(b,this,x).call(this),f(A,this,!0),this.hot.view.adjustElementsSize(),this.hot.render())}function B(){const{view:e}=this.hot,t=e.isHorizontallyScrollableByWindow()?e.getTotalTableWidth():e.getWorkspaceWidth();p(T,this).updateWidth(t).refreshBorderState()}function W(e){if(this.getSetting("uiContainer"))return e;if(!("number"==typeof e||"string"==typeof e&&/^\d+$/.test(e)||"string"==typeof e&&e.endsWith("px")))return e;return`calc(${"string"==typeof e&&e.endsWith("px")?e:`${e}px`} - ${p(T,this).getHeight()}px)`}function Y(){"auto"!==p(R,this)&&m(b,this,x).call(this)}function G(){p(T,this).refreshBorderState()}function j(){m(b,this,x).call(this)}function z(e){p(T,this).updateTheme(e)}t.Pagination=I},52912:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(66182);var s=r(n(81115)),i=n(30152);t.default=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>[];(0,s.default)(this,"conditionCollection",void 0),(0,s.default)(this,"columnDataFactory",void 0),this.conditionCollection=e,this.columnDataFactory=t}filter(){let e=[];return(0,i.arrayEach)(this.conditionCollection.getFilteredColumns(),(t,n)=>{let r=this.columnDataFactory(t);n&&(r=this._getIntersectData(r,e)),e=this.filterByColumn(t,r)}),e}filterByColumn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=[];return(0,i.arrayEach)(t,t=>{void 0!==t&&this.conditionCollection.isMatch(t,e)&&n.push(t)}),n}_getIntersectData(e,t){const n=[];return(0,i.arrayEach)(t,t=>{const r=t.meta.visualRow;void 0!==e[r]&&(n[r]=e[r])}),n}}},53113:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(66135);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ColumnSummary=r.ColumnSummary},53119:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(95605);const s=t.EDITOR_TYPE="time";class i extends r.TextEditor{static get EDITOR_TYPE(){return s}prepare(e,t,n,r,s,i){super.prepare(e,t,n,r,s,i),this.TEXTAREA.dir="ltr"}}t.TimeEditor=i},53246:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostBottom",callback(e){const{selection:t,rowIndexMapper:n}=e,{highlight:r,from:s,to:i}=e.getSelectedRangeActive(),o=r.isHeader()&&t.isSelectedByRowHeader();if(r.isCell()||o){const a=n.getNearestNotHiddenIndex(e.countRows()-1,-1),l=s.clone();l.row=r.row,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,r.clone()),o&&t.selectedByRowHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(a,i.col)),t.markEndSource()}}}},53269:(e,t,n)=>{"use strict";var r=n(19617),s=n(52270),i=n(497),o=n(61338),a=n(57490),l=n(71671),h=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!s(e)||i(e))return e;var n,l=o(e,u);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!s(n)||i(n))return n;throw new h("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},53570:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588);var s=r(n(81115)),i=n(38942),o=n(89090);t.default=class{constructor(e){(0,s.default)(this,"settings",{}),(0,s.default)(this,"defaults",Object.freeze(this.getDefaults())),(0,o.objectEach)(this.defaults,(t,n)=>{if(void 0!==e[n])this.settings[n]=e[n];else{if(void 0===t)throw new Error(`A required setting "${n}" was not provided`);this.settings[n]=t}})}getDefaults(){return{facade:void 0,table:void 0,isDataViewInstance:!0,externalRowCalculator:!1,currentRowClassName:null,currentColumnClassName:null,preventOverflow:()=>!1,preventWheel:!1,data:void 0,fixedColumnsStart:0,fixedRowsTop:0,fixedRowsBottom:0,shouldRenderInlineStartOverlay:()=>this.getSetting("fixedColumnsStart")>0||this.getSetting("rowHeaders").length>0,shouldRenderTopOverlay:()=>this.getSetting("fixedRowsTop")>0||this.getSetting("columnHeaders").length>0,shouldRenderBottomOverlay:()=>this.getSetting("fixedRowsBottom")>0,minSpareRows:0,rowHeaders:()=>[],columnHeaders:()=>[],totalRows:void 0,totalColumns:void 0,cellRenderer:(e,t,n)=>{const r=this.getSetting("data",e,t);(0,i.fastInnerText)(n,null==r?"":r)},columnWidth(){},rowHeight(){},rowHeightByOverlayName(){},defaultColumnWidth:50,selections:null,hideBorderOnMouseDownOver:!1,viewportRowCalculatorOverride:null,viewportColumnCalculatorOverride:null,viewportRowRenderingThreshold:null,viewportColumnRenderingThreshold:null,onCellMouseDown:null,onCellContextMenu:null,onCellMouseOver:null,onCellMouseOut:null,onCellMouseUp:null,onCellDblClick:null,onCellCornerMouseDown:null,onCellCornerDblClick:null,beforeDraw:null,onDraw:null,onBeforeRemoveCellClassNames:null,onAfterDrawSelection:null,onBeforeDrawBorders:null,onBeforeViewportScrollHorizontally:e=>e,onBeforeViewportScrollVertically:e=>e,onScrollHorizontally:null,onScrollVertically:null,onBeforeTouchScroll:null,onAfterMomentumScroll:null,onModifyRowHeaderWidth:null,onModifyGetCellCoords:null,onModifyGetCoordsElement:null,onModifyGetCoords:null,onBeforeHighlightingRowHeader:e=>e,onBeforeHighlightingColumnHeader:e=>e,onWindowResize:null,onContainerElementResize:null,renderAllColumns:!1,renderAllRows:!1,groups:!1,rowHeaderWidth:null,columnHeaderHeight:null,headerClassName:null,rtlMode:!1,ariaTags:!0,stylesHandler:null}}update(e,t){return void 0===t?(0,o.objectEach)(e,(e,t)=>{this.settings[t]=e}):this.settings[e]=t,this}getSetting(e,t,n,r,s){return"function"==typeof this.settings[e]?this.settings[e](t,n,r,s):void 0!==t&&Array.isArray(this.settings[e])?this.settings[e][t]:this.settings[e]}getSettingPure(e){return this.settings[e]}has(e){return!!this.settings[e]}}},53588:(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 n=t.getCSSVariableValue("cell-autofill-size"),r=t.getCSSVariableValue("cell-autofill-border-width"),s=t.getCSSVariableValue("cell-autofill-border-color");return Object.freeze({width:n,height:n,borderWidth:r,borderStyle:"solid",borderColor:s})}},53686:()=>{},53791:(e,t,n)=>{"use strict";t.__esModule=!0,t.useEventListener=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!1;function s(e){var r;n||(null===(r=t.onFocus)||void 0===r||r.call(t,e))}function i(e){var n;null===(n=t.onClick)||void 0===n||n.call(t,e)}function o(e){var n;"Tab"===e.key&&(null===(n=t.onTabKeyDown)||void 0===n||n.call(t,e))}function a(){n=!0}function l(){n=!1}return{mount:()=>{let t=e;for(;t;){const{documentElement:e}=t.document;e.addEventListener("focusin",s),e.addEventListener("click",i),e.addEventListener("keydown",o),e.addEventListener("mousedown",a),e.addEventListener("mouseup",l),t=(0,r.getParentWindow)(t)}},unmount:()=>{let t=e;for(;t;){const{documentElement:e}=t.document;e.removeEventListener("focusin",s),e.removeEventListener("click",i),e.removeEventListener("keydown",o),e.removeEventListener("mousedown",a),e.removeEventListener("mouseup",l),t=(0,r.getParentWindow)(t)}}}};var r=n(38942)},54060:(e,t,n)=>{"use strict";var r,s=n(16539),i=n(16933),o=n(20155),a=n(46049),l=n(88025),h=n(59899),u=n(26075),c="prototype",d="script",g=u("IE_PROTO"),p=function(){},f=function(e){return"<"+d+">"+e+"</"+d+">"},m=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},E=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;E="undefined"!=typeof document?document.domain&&r?m(r):(t=h("iframe"),n="java"+d+":",t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):m(r);for(var s=o.length;s--;)delete E[c][o[s]];return E()};a[g]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p[c]=s(e),n=new p,p[c]=null,n[g]=e):n=E(),void 0===t?n:i.f(n,t)}},54070:()=>{},54088:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=n(89090),i=r(n(24285));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},54230:(e,t,n)=>{"use strict";var r=n(90254),s=n(84990);e.exports=r(s.proto,"size","get")||function(e){return e.size}},54271:()=>{},54342:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,t._injectProductInfo=function(e,t){const n=!a(e),r="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),i="16.2.0-next-bf17104-20251120";let o,y="invalid",C="invalid";const v=function(e){let t=[][l],n=t;if(e[l]!==d("Z"))return!1;for(let t="",r="B<H4P+".split(""),s=d(r.shift());s;s=d(r.shift()||"A"))--s<""[l]?n|=(u(`${u(h(t)+(h(c(e,Math.abs(s),2))+[]).padStart(2,"0"))}`)%97||2)>>1:t=c(e,s,s?1===r[l]?9:8:6);return n===t}(e=g(e||""));if(n||r||v)if(v){const t=(0,s.default)("25/11/2025","DD/MM/YYYY"),n=Math.floor(t.toDate().getTime()/864e5),r=p(e);o=(0,s.default)(864e5*(r+1),"x").format("MMMM DD, YYYY"),n>r?(y="expired",C="expired"):(y="valid",C="valid")}else r?(y="non_commercial",C="valid"):(y="invalid",C="invalid");else y="missing",C="missing";f()&&(y="valid",C="valid");if(!m&&"valid"!==y){E[y]({keyValidityDate:o,hotVersion:i})&&console["non_commercial"===y?"info":"warn"](E[y]({keyValidityDate:o,hotVersion:i})),m=!0}if("valid"!==C&&t){if(w[C]({keyValidityDate:o,hotVersion:i})){const e=document.createElement("div");e.className="handsontable hot-display-license-info",e.innerHTML=w[C]({keyValidityDate:o,hotVersion:i}),t.appendChild(e)}}},t.isDefined=function(e){return void 0!==e},t.isEmpty=a,t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.isUndefined=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=r(n(37539)),i=n(14298);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,n)=>e.substr(t,n),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 E={invalid:()=>i.toSingleLine`
|
|
262
262
|
The license key for Handsontable is invalid.\x20
|
|
263
263
|
If you need any help, contact us at support@handsontable.com.`,expired:e=>{let{keyValidityDate:t,hotVersion:n}=e;return i.toSingleLine`
|
|
264
264
|
The license key for Handsontable expired on ${t}, and is not valid for the installed\x20
|
|
@@ -282,7 +282,7 @@ the last node, the show column modification can be applied.`);const{crossHiddenC
|
|
|
282
282
|
the documentation or contact us at <a href="mailto:support@handsontable.com">support@handsontable.com</a>.`,non_commercial:()=>""}},54459:(e,t,n)=>{"use strict";t.__esModule=!0,n(22588);var r=n(38942),s=n(89090),i=n(31591);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){return e.get(l(e,t))}function l(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,u=new WeakSet;class c extends i.BaseUI{static get DEFAULTS(){return(0,s.clone)({placeholder:"",type:"text",tagName:"input",tabIndex:-1})}constructor(e,t){var n,r;super(e,(0,s.extend)(c.DEFAULTS,t)),o(n=this,r=u),r.add(n),function(e,t,n){o(e,t),t.set(e,n)}(this,h,void 0),this.registerHooks()}registerHooks(){this.addLocalHook("keyup",e=>l(u,this,d).call(this,e))}build(){super.build();const e=this.hot.rootDocument.createElement("div");var t,n,s;t=h,n=this,s=this._element.firstChild,t.set(l(t,n),s),(0,r.addClass)(this._element,"htUIInput"),(0,r.addClass)(e,"htUIInputIcon"),this._element.appendChild(e),this.update()}update(){this.isBuilt()&&(a(h,this).type=this.options.type,a(h,this).placeholder=this.translateIfPossible(this.options.placeholder),a(h,this).value=this.translateIfPossible(this.options.value))}focus(){this.isBuilt()&&a(h,this).focus()}}function d(e){this.options.value=e.target.value}t.InputUI=c},54477:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"selectAllCells",callback(e){let{selection:t}=e;t.markSource("keyboard"),t.selectAll(!0,!0,{disableHeadersHighlight:!0}),t.markEndSource()}}},54480:(e,t,n)=>{"use strict";var r=n(27538),s=n(19617),i=n(81576),o=n(49510),a=n(16539),l=n(83203),h=n(13479),u=n(57625)("find",TypeError);r({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),n=0;return i(t,function(t,r){if(e(t,n++))return r(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},54620:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182),n(81396),n(88633);var s=r(n(81115)),i=n(38942),o=n(30152);t.default=class{constructor(e){(0,s.default)(this,"hot",null),(0,s.default)(this,"container",null),(0,s.default)(this,"injected",!1),(0,s.default)(this,"rows",[]),(0,s.default)(this,"columns",[]),(0,s.default)(this,"samples",null),(0,s.default)(this,"settings",{useHeaders:!0}),this.hot=e}addRow(e,t){if(this.columns.length)throw new Error("Doesn't support multi-dimensional table");this.rows.length||(this.container=this.createContainer(this.hot.rootElement.className));const n={row:e};this.rows.push(n),this.samples=t,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol(e)),this.table.tr.appendChild(this.createRow(e)),this.container.container.appendChild(this.table.fragment),n.table=this.table.table}addColumnHeadersRow(e){const t=this.hot.getColHeader(0);if(null!=t){const t={row:-1};this.rows.push(t),this.container=this.createContainer(this.hot.rootElement.className),this.samples=e,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol()),this.appendColumnHeadersRow(),this.container.container.appendChild(this.table.fragment),t.table=this.table.table}}addColumn(e,t){if(this.rows.length)throw new Error("Doesn't support multi-dimensional table");this.columns.length||(this.container=this.createContainer(this.hot.rootElement.className));const n={col:e};this.columns.push(n),this.samples=t,this.table=this.createTable(this.hot.table.className),this.getSetting("useHeaders")&&null!==this.hot.getColHeader(e)&&this.hot.view.appendColHeader(e,this.table.th,void 0,-1),this.table.tBody.appendChild(this.createCol(e)),this.container.container.appendChild(this.table.fragment),n.table=this.table.table}getHeights(e){this.injected||this.injectTable(),(0,o.arrayEach)(this.rows,t=>{const{height:n}=t.table.getBoundingClientRect();e(t.row,Math.ceil(n))})}getWidths(e){this.injected||this.injectTable(),(0,o.arrayEach)(this.columns,t=>{const{width:n}=t.table.getBoundingClientRect();e(t.col,Math.ceil(n))})}setSettings(e){this.settings=e}setSetting(e,t){this.settings||(this.settings={}),this.settings[e]=t}getSettings(){return this.settings}getSetting(e){return this.settings?this.settings[e]:null}createColGroupsCol(e){const t=this.hot.rootDocument.createDocumentFragment();return this.hot.hasRowHeaders()&&t.appendChild(this.createColElement(-1,-1)),this.samples.forEach(n=>{(0,o.arrayEach)(n.strings,n=>{t.appendChild(this.createColElement(n.col,e))})}),t}createRow(e){const{rootDocument:t}=this.hot,n=t.createDocumentFragment(),r=t.createElement("th");return this.hot.hasRowHeaders()&&(this.hot.view.appendRowHeader(e,r),n.appendChild(r)),this.samples.forEach(r=>{(0,o.arrayEach)(r.strings,r=>{const s=r.col,i=this.hot.getCellMeta(e,s),o=this.hot.getCellRenderer(i),a=t.createElement("td");a.setAttribute("ghost-table",1),o(this.hot,a,e,s,this.hot.colToProp(s),r.value,i),n.appendChild(a)})}),n}appendColumnHeadersRow(){const{rootDocument:e}=this.hot,t=e.createDocumentFragment(),n=[];if(this.hot.hasRowHeaders()){const r=e.createElement("th");n.push([-1,r]),t.appendChild(r)}this.samples.forEach(r=>{(0,o.arrayEach)(r.strings,r=>{const s=r.col,i=e.createElement("th");n.push([s,i]),t.appendChild(i)})}),this.table.tHead.appendChild(t),(0,o.arrayEach)(n,e=>{const[t,n]=e;this.hot.view.appendColHeader(t,n)})}createCol(e){const{rootDocument:t}=this.hot,n=t.createDocumentFragment();return this.samples.forEach(r=>{(0,o.arrayEach)(r.strings,r=>{const s=r.row,i=this.hot.getCellMeta(s,e),o=this.hot.getCellRenderer(i),a=t.createElement("td"),l=t.createElement("tr");a.setAttribute("ghost-table",1),o(this.hot,a,s,e,this.hot.colToProp(e),r.value,i),l.appendChild(a),n.appendChild(l)})}),n}clean(){this.rows.length=0,this.rows[-1]=void 0,this.columns.length=0,this.samples&&this.samples.clear(),this.samples=null,this.removeTable()}injectTable(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.injected||((e||this.hot.rootElement).appendChild(this.container.fragment),this.injected=!0)}removeTable(){this.injected&&this.container.container.parentNode&&(this.container.container.parentNode.removeChild(this.container.container),this.container=null,this.injected=!1)}createColElement(e,t){const n=this.hot.rootDocument.createElement("col");let r=0;t>=0&&e>=0&&(r=this.hot.getCellMeta(t,e).colspan);let s=this.hot.getColWidth(e);if(r>1)for(let t=e+1;t<e+r;t++)s+=this.hot.getColWidth(t);return n.style.width=`${s}px`,n}createTable(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const{rootDocument:t}=this.hot,n=t.createDocumentFragment(),r=t.createElement("table"),s=t.createElement("thead"),o=t.createElement("tbody"),a=t.createElement("colgroup"),l=t.createElement("tr"),h=t.createElement("th");return this.isVertical()&&r.appendChild(a),this.isHorizontal()&&(l.appendChild(h),s.appendChild(l),r.style.tableLayout="auto",r.style.width="auto"),r.appendChild(s),this.isVertical()&&o.appendChild(l),r.appendChild(o),(0,i.addClass)(r,e),n.appendChild(r),{fragment:n,table:r,tHead:s,tBody:o,colGroup:a,tr:l,th:h}}createContainer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const{rootDocument:t}=this.hot,n=t.createDocumentFragment(),r=t.createElement("div"),s=`htGhostTable htAutoSize ${e.trim()}`;return(0,i.addClass)(r,s),n.appendChild(r),{fragment:n,container:r}}isVertical(){return!(!this.rows.length||this.columns.length)}isHorizontal(){return!(!this.columns.length||this.rows.length)}}},54994:(e,t,n)=>{"use strict";function r(e,t,n){s(e,t),t.set(e,n)}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,n){return e.set(a(e,t),n),n}function a(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}t.__esModule=!0,n(22588);var l=new WeakMap,h=new WeakMap,u=new WeakSet;function c(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;const r=a(u,this,d).call(this,i(l,this),e.row,t);if(null===r)return null;const s=a(u,this,d).call(this,i(h,this),e.col,n);return null===s?null:e.clone().assign({row:r,col:s})}function d(e,t,n){return t<0?t:e.getNearestNotHiddenIndex(t,n)}t.CellRangeToRenderableMapper=class{constructor(e){let{rowIndexMapper:t,columnIndexMapper:n}=e;var i,a;s(i=this,a=u),a.add(i),r(this,l,void 0),r(this,h,void 0),o(l,this,t),o(h,this,n)}toRenderable(e){const t="N-S"===e.getVerticalDirection()?1:-1,n="W-E"===e.getHorizontalDirection()?1:-1,r=a(u,this,c).call(this,e.from,t,n);if(null===r)return null;const s=a(u,this,c).call(this,e.to,-t,-n);if(null===s)return null;const i=e.clone();return i.from=r,i.to=s,i.includes(e.highlight)||(i.highlight=r),i}}},55026:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588);var s=r(n(81115)),i=n(72740),o=n(30152),a=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217)),l=r(n(10878));function h(e,t,n){(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,n)}function u(e,t){return e.get(function(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}(e,t))}var c=new WeakMap;class d extends l.default{constructor(){super(...arguments),(0,s.default)(this,"dataManager",this.plugin.dataManager),h(this,c,{row_above:(e,t)=>{const n=t[t.length-1];this.dataManager.addSibling(n.start.row,"above")},row_below:(e,t)=>{const n=t[t.length-1];this.dataManager.addSibling(n.start.row,"below")}})}appendOptions(e){const t=[{key:"add_child",name(){return this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD)},callback:()=>{const e=this.dataManager.translateTrimmedRow(this.hot.getSelectedActive()[0]),t=this.dataManager.getDataObject(e);this.dataManager.addChild(t)},disabled:()=>{const e=this.hot.getSelectedActive();return!e||e[0]<0||this.hot.selection.isSelectedByColumnHeader()||this.hot.countRows()>=this.hot.getSettings().maxRows}},{key:"detach_from_parent",name(){return this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD)},callback:()=>{this.dataManager.detachFromParent(this.hot.getSelectedActive())},disabled:()=>{const e=this.hot.getSelectedActive(),t=this.dataManager.translateTrimmedRow(e[0]);return!this.dataManager.getRowParent(t)||!e||e[0]<0||this.hot.selection.isSelectedByColumnHeader()||this.hot.countRows()>=this.hot.getSettings().maxRows}},{name:"---------"}];return(0,i.rangeEach)(0,e.items.length-1,n=>{if(0===n)return(0,o.arrayEach)(t,(t,r)=>{e.items.splice(n+r,0,t)}),!1}),this.modifyRowInsertingOptions(e)}modifyRowInsertingOptions(e){return(0,i.rangeEach)(0,e.items.length-1,t=>{const n=u(c,this)[e.items[t].key];null!=n&&(e.items[t].callback=n)}),e}}t.default=d},55210:(e,t,n)=>{"use strict";var r=n(91945),s=TypeError;e.exports=function(e){if(r(e))throw new s("Can't call method on "+e);return e}},55417:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182);var s=r(n(81115)),i=n(31572),o=n(98708),a=n(8606),l=n(79449),h=n(34899),u=n(88600),c=n(82790),d=n(19618),g=n(8343),p=n(51191);t.ACTIVE_HEADER_TYPE=p.HIGHLIGHT_ACTIVE_HEADER_TYPE,t.AREA_TYPE=p.HIGHLIGHT_AREA_TYPE,t.FOCUS_TYPE=p.HIGHLIGHT_FOCUS_TYPE,t.CUSTOM_SELECTION_TYPE=p.HIGHLIGHT_CUSTOM_SELECTION_TYPE,t.FILL_TYPE=p.HIGHLIGHT_FILL_TYPE,t.HEADER_TYPE=p.HIGHLIGHT_HEADER_TYPE,t.ROW_TYPE=p.HIGHLIGHT_ROW_TYPE,t.COLUMN_TYPE=p.HIGHLIGHT_COLUMN_TYPE;var f=n(30152);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 E(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var w=new WeakSet;class y{constructor(e){m(this,w),(0,s.default)(this,"options",void 0),(0,s.default)(this,"layerLevel",0),(0,s.default)(this,"focus",void 0),(0,s.default)(this,"fill",void 0),(0,s.default)(this,"layeredAreas",new Map),(0,s.default)(this,"areas",new Map),(0,s.default)(this,"rowHeaders",new Map),(0,s.default)(this,"columnHeaders",new Map),(0,s.default)(this,"activeRowHeaders",new Map),(0,s.default)(this,"activeColumnHeaders",new Map),(0,s.default)(this,"activeCornerHeaders",new Map),(0,s.default)(this,"rowHighlights",new Map),(0,s.default)(this,"columnHighlights",new Map),(0,s.default)(this,"customSelections",[]),this.options=e,this.focus=(0,h.createHighlight)(e),this.fill=(0,c.createHighlight)(e)}isEnabledFor(e,t){let n=e;e===p.HIGHLIGHT_FOCUS_TYPE&&(n="current");let r=this.options.disabledCellSelection(t.row,t.col);return"string"==typeof r&&(r=[r]),!1===r||Array.isArray(r)&&!r.includes(n)}useLayerLevel(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.layerLevel=e,this}getFocus(){return this.focus}getFill(){return this.fill}createLayeredArea(){return E(w,this,C).call(this,this.layeredAreas,o.createHighlight)}getLayeredAreas(){return[...this.layeredAreas.values()]}createArea(){return E(w,this,C).call(this,this.areas,a.createHighlight)}getAreas(){return[...this.areas.values()]}createRowHeader(){return E(w,this,C).call(this,this.rowHeaders,d.createHighlight)}getRowHeaders(){return[...this.rowHeaders.values()]}createColumnHeader(){return E(w,this,C).call(this,this.columnHeaders,d.createHighlight)}getColumnHeaders(){return[...this.columnHeaders.values()]}createActiveRowHeader(){return E(w,this,C).call(this,this.activeRowHeaders,i.createHighlight)}getActiveRowHeaders(){return[...this.activeRowHeaders.values()]}createActiveColumnHeader(){return E(w,this,C).call(this,this.activeColumnHeaders,i.createHighlight)}getActiveColumnHeaders(){return[...this.activeColumnHeaders.values()]}createActiveCornerHeader(){return E(w,this,C).call(this,this.activeCornerHeaders,i.createHighlight)}getActiveCornerHeaders(){return[...this.activeCornerHeaders.values()]}createRowHighlight(){return E(w,this,C).call(this,this.rowHighlights,g.createHighlight)}getRowHighlights(){return[...this.rowHighlights.values()]}createColumnHighlight(){return E(w,this,C).call(this,this.columnHighlights,l.createHighlight)}getColumnHighlights(){return[...this.columnHighlights.values()]}getCustomSelections(){return[...this.customSelections.values()]}addCustomSelection(e){this.customSelections.push((0,u.createHighlight)({...this.options,...e}))}clear(){this.focus.clear(),this.fill.clear(),(0,f.arrayEach)(this.areas.values(),e=>{e.clear()}),(0,f.arrayEach)(this.layeredAreas.values(),e=>{e.clear()}),(0,f.arrayEach)(this.rowHeaders.values(),e=>{e.clear()}),(0,f.arrayEach)(this.columnHeaders.values(),e=>{e.clear()}),(0,f.arrayEach)(this.activeRowHeaders.values(),e=>{e.clear()}),(0,f.arrayEach)(this.activeColumnHeaders.values(),e=>{e.clear()}),(0,f.arrayEach)(this.activeCornerHeaders.values(),e=>{e.clear()}),(0,f.arrayEach)(this.rowHighlights.values(),e=>{e.clear()}),(0,f.arrayEach)(this.columnHighlights.values(),e=>{e.clear()})}[Symbol.iterator](){return[this.focus,this.fill,...this.areas.values(),...this.layeredAreas.values(),...this.rowHeaders.values(),...this.columnHeaders.values(),...this.activeRowHeaders.values(),...this.activeColumnHeaders.values(),...this.activeCornerHeaders.values(),...this.rowHighlights.values(),...this.columnHighlights.values(),...this.customSelections][Symbol.iterator]()}}function C(e,t){const n=this.layerLevel;if(e.has(n))return e.get(n);const r=t({layerLevel:n,...this.options});return e.set(n,r),r}t.default=y},55766:()=>{},55953:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(83197);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.StretchColumns=r.StretchColumns},55962:()=>{},56033:(e,t,n)=>{"use strict";t.__esModule=!0,n(81396),n(19874);t.command={name:"moveCellSelectionInlineEnd",callback(e,t){const{selection:n}=e,r=e.getSettings(),s=e.getSelectedRange(),i=e.getSelectedRangeActive(),o="function"==typeof r.tabMoves?r.tabMoves(t):r.tabMoves;n.markSource("keyboard"),(s.some(e=>n.isMultiple(e))||s.length>1)&&!i.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0?n.transformFocus(-o.row,-o.col):n.transformStart(-o.row,-o.col),n.markEndSource()}}},56180:(e,t,n)=>{"use strict";t.__esModule=!0,t.isContextObject=u,n(22588),n(66182),n(81396),n(81124),n(88633);var r=n(66419),s=n(29194),i=n(54342),o=n(37849),a=n(89090),l=n(14298);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 n=(0,r.createUniqueMap)({errorIdExists:t=>`The "${t}" shortcut is already registered in the "${e}" context.`}),c=function(){let{keys:e,callback:t,group:r,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)(r))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
|
|
283
283
|
using the KeyboardEvent.key properties:\x20
|
|
284
284
|
https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values.`);const m={callback:t,group:r,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(n.hasItem(t)){const e=n.getItem(t);let r=e.findIndex(e=>e.group===g);-1!==r?"before"===p?r-=1:r+=1:r=e.length,e.splice(r,0,m)}else n.addItem(t,[m])})},d=e=>{const t=(0,s.normalizeKeys)(e);n.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,(n,r)=>{!1===Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=t[r])}),c(e)})},getShortcuts:e=>{const t=(0,s.normalizeKeys)(e),r=n.getItem(t);return(0,i.isDefined)(r)?r.slice():[]},hasShortcut:e=>{const t=(0,s.normalizeKeys)(e);return n.hasItem(t)},removeShortcutsByKeys:d,removeShortcutsByGroup:e=>{n.getItems().forEach(t=>{let[n,r]=t;const i=r.filter(t=>t.group!==e);0===i.length?d((0,s.getKeysList)(n)):(r.length=0,r.push(...i))})}}}},56288:(e,t,n)=>{"use strict";t.__esModule=!0,t.getRegisteredHotInstances=function(e){var t;const n=u(),r=0===n.size?[]:Array.from(null!==(t=n.get(e))&&void 0!==t?t:[]);return new Map(r.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(),n=t[l.PLUGIN_KEY],r=null==n?void 0:n.engine;if(!0===n)return null;if((0,s.isUndefined)(r))return null;var g;if("function"==typeof r.hyperformula||"function"==typeof r)return d(null!==(g=r.hyperformula)&&void 0!==g?g:r,t,e);if("object"==typeof r&&(0,s.isUndefined)(r.hyperformula)){const t=u(),n=c().get(r);return t.has(r)||t.set(r,[]),t.get(r).push(e),n&&n.push(e.guid),r.getConfig().licenseKey||r.updateConfig({licenseKey:h.DEFAULT_LICENSE_KEY}),r.getConfig().leapYear1900===h.DEFAULT_SETTINGS.leapYear1900&&!1!==(0,a.isObjectEqual)(r.getConfig().nullDate,h.DEFAULT_SETTINGS.nullDate)||(0,o.warn)(i.toSingleLine`If you use HyperFormula with Handsontable, keep the default \`leapYear1900\` and \`nullDate\`
|
|
285
|
-
settings. Otherwise, HyperFormula's dates may not sync correctly with Handsontable's dates.`),r}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 n=u(),r=n.get(e),s=c(),i=s.get(e);r&&r.includes(t)&&(r.splice(r.indexOf(t),1),0===r.length&&n.delete(e)),i&&i.includes(t.guid)&&(i.splice(i.indexOf(t.guid),1),0===i.length&&(s.delete(e),e.destroy()))}},n(66182),n(81396),n(88633),n(14618);var r=n(59766),s=n(54342),i=n(14298),o=n(87544),a=n(89090),l=n(62243),h=n(39500);function u(){const e="engine_relationship",t=(0,r.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,r.staticRegister)(l.PLUGIN_KEY);return t.hasItem(e)||t.register(e,new Map),t.getItem(e)}function d(e,t,n){const r=t[l.PLUGIN_KEY],s=(0,h.getEngineSettingsWithDefaultsAndOverrides)(t),i=u(),o=c();g(e,r.functions),p(e,r.language);const a=e.buildEmpty(s);return i.set(a,[n]),o.set(a,[n.guid]),f(a,r.namedExpressions),a.on("sheetAdded",()=>{a.rebuildAndRecalculate()}),a.on("sheetRemoved",()=>{a.rebuildAndRecalculate()}),a}function g(e,t){t&&t.forEach(t=>{const{name:n,plugin:r,translations:s}=t;try{e.registerFunction(n,r,s)}catch(e){(0,o.warn)(e.message)}})}function p(e,t){if(t){const{langCode:n}=t;try{e.registerLanguage(n,t)}catch(e){(0,o.warn)(e.message)}}}function f(e,t){t&&(e.suspendEvaluation(),t.forEach(t=>{const{name:n,expression:r,scope:s,options:i}=t;try{e.addNamedExpression(n,r,s,i)}catch(e){(0,o.warn)(e.message)}}),e.resumeEvaluation())}},56445:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(81115)),i=n(20751);class o extends i.BaseAction{constructor(e){let{currentSortState:t,newSortState:n}=e;super("col_sort"),(0,s.default)(this,"previousSortState",void 0),(0,s.default)(this,"nextSortState",void 0),this.previousSortState=t,this.nextSortState=n}static startRegisteringEvents(e,t){e.addHook("beforeColumnSort",(e,n,r)=>{r&&t.done(()=>new o({currentSortState:e,newSortState:n}))})}undo(e,t){const n=e.getPlugin("columnSorting"),r=e.getPlugin("multiColumnSorting"),s=r.isEnabled()?r:n;this.previousSortState.length?s.sort(this.previousSortState):s.clearSort(),t()}redo(e,t){const n=e.getPlugin("columnSorting"),r=e.getPlugin("multiColumnSorting");(r.isEnabled()?r:n).sort(this.nextSortState),t()}}t.ColumnSortAction=o},56769:(e,t,n)=>{"use strict";var r=n(20699),s=n(55210);e.exports=function(e){return r(s(e))}},57396:(e,t,n)=>{"use strict";var r=n(40136),s=n(49510),i=n(38972),o=r(r.bind);e.exports=function(e,t){return s(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},57440:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(69535);t.PLUGIN_KEY=r.PLUGIN_KEY,t.BasePlugin=r.BasePlugin,t.defaultMainSettingSymbol=r.defaultMainSettingSymbol},57490:(e,t,n)=>{"use strict";var r=n(19617),s=n(14326),i=n(52270),o=TypeError;e.exports=function(e,t){var n,a;if("string"===t&&s(n=e.toString)&&!i(a=r(n,e)))return a;if(s(n=e.valueOf)&&!i(a=r(n,e)))return a;if("string"!==t&&s(n=e.toString)&&!i(a=r(n,e)))return a;throw new o("Can't convert object to primitive value")}},57596:(e,t,n)=>{"use strict";var r=n(94988),s=0,i=Math.random(),o=r(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},57625:(e,t,n)=>{"use strict";var r=n(19596);e.exports=function(e,t){var n=r.Iterator,s=n&&n.prototype,i=s&&s[e],o=!1;if(i)try{i.call({next:function(){return{done:!0}},return:function(){o=!0}},-1)}catch(e){e instanceof t||(o=!1)}if(!o)return i}},57799:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(38902);t.CELL_TYPE=r.CELL_TYPE,t.HandsontableCellType=r.HandsontableCellType},57945:(e,t,n)=>{"use strict";t.__esModule=!0,t.handsontableRenderer=i;var r=n(15454);const s=t.RENDERER_TYPE="handsontable";function i(e,t,n,s,i,o,a){r.autocompleteRenderer.apply(this,[e,t,n,s,i,o,a])}i.RENDERER_TYPE=s},58102:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(94844);var s=r(n(76916)),i=n(28078),o=n(61050),a=n(92164),l=n(43181),h=n(17822),u=n(34933),c=n(28235),d=n(51191);function g(e,t){const n=new s.default(e,t||{},i.rootInstanceSymbol);return n.init(),n}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="17/11/2025 15:09:06",g.version="16.2.0-next-7d068f5-20251117",g.languages={dictionaryKeys:l.dictionaryKeys,getLanguageDictionary:l.getLanguageDictionary,getLanguagesDictionaries:l.getLanguagesDictionaries,registerLanguageDictionary:l.registerLanguageDictionary,getTranslatedPhrase:l.getTranslatedPhrase};t.default=g},58158:()=>{},58214:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(99967),s=n(983),i=n(45240);const o=t.CELL_TYPE="checkbox";t.CheckboxCellType={CELL_TYPE:o,editor:r.CheckboxEditor,renderer:s.checkboxRenderer,valueSetter:i.valueSetter}},58370:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(81115)),i=n(76613);class o extends i.PartiallyVisibleColumnsCalculationType{constructor(){super(...arguments),(0,s.default)(this,"columnStartOffset",0),(0,s.default)(this,"columnEndOffset",0)}finalize(e){var t;super.finalize(e);const{overrideFn:n,totalColumns:r,startPositions:s}=e;if(null!==this.startColumn&&"function"==typeof n){const e=this.startColumn,t=this.endColumn;n(this),this.columnStartOffset=e-this.startColumn,this.columnEndOffset=this.endColumn-t}this.startColumn<0&&(this.startColumn=0),this.startPosition=null!==(t=s[this.startColumn])&&void 0!==t?t:null,r<this.endColumn&&(this.endColumn=r-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}t.RenderedColumnsCalculationType=o},58379:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"borders:no_borders",name(){return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_REMOVE_BORDERS)},callback(t,n){e.prepareBorder(n,"noBorders")},disabled(){return!(0,s.checkSelectionBorders)(this)}}};var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217)),s=n(6528)},58502:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(21103),s=n(21319),i=n(89769),o=n(91660);const a=t.CELL_TYPE="dropdown";t.DropdownCellType={CELL_TYPE:a,editor:r.DropdownEditor,renderer:s.dropdownRenderer,validator:i.dropdownValidator,filter:!1,strict:!0,valueGetter:o.valueGetter,valueSetter:o.valueSetter}},58617:(e,t,n)=>{"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 r=n(89090),s=n(66563);const i=e=>{const t={value:!1,test:(n,r)=>{t.value=e(n,r)}};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,r.objectEach)(o,n=>{let{test:r}=n;r(e,t)})}function h(){let{platform:e=navigator.platform}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,r.objectEach)(a,t=>{let{test:n}=t;n(e)})}(0,s.isCSR)()&&(l(),h())},58719:e=>{"use strict";e.exports=!1},58946:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(37515)),i=n(38942);class o extends s.default{build(){super.build(),(0,i.addClass)(this._element,"ht__manualColumnMove--backlight")}}t.default=o},59055:(e,t,n)=>{"use strict";t.__esModule=!0,n(66182);var r=n(60765),s=n(30152);class i extends r.PhysicalIndexToValueMap{constructor(){super(arguments.length>0&&void 0!==arguments[0]&&arguments[0])}getTrimmedIndexes(){return(0,s.arrayReduce)(this.getValues(),(e,t,n)=>(t&&e.push(n),e),[])}}t.TrimmingMap=i},59135:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182),n(78822),n(86192),n(80729),n(99888),n(12767),n(78644),n(97550),n(81396),n(39691),n(14618);var s=n(57440),i=n(38942),o=n(72740),a=n(30152),l=n(89386),h=n(92164),u=r(n(64696)),c=r(n(5669)),d=n(20160);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,n){return e.set(m(e,t),n),n}function m(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;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 E=t.PLUGIN_KEY="hiddenColumns",w=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,n){g(e,t),t.set(e,n)}(this,y,null)}static get PLUGIN_KEY(){return E}static get PLUGIN_PRIORITY(){return w}static get DEFAULT_SETTINGS(){return{copyPasteEnabled:!0,indicators:!1,columns:[]}}isEnabled(){return!!this.hot.getSettings()[E]}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,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(C,e,N).call(e,...n)}),this.addHook("afterGetCellMeta",(e,t,n)=>m(C,this,R).call(this,e,t,n)),this.addHook("modifyColWidth",(e,t)=>m(C,this,S).call(this,e,t),2),this.addHook("afterGetColHeader",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(C,e,_).call(e,...n)}),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(),n=this.isValidConfig(e);let r=t;const s=p(y,this).getValues().slice(),i=e.length>0;if(n&&i){const t=e.map(e=>this.hot.toPhysicalColumn(e));(0,a.arrayEach)(t,e=>{s[e]=!1}),r=(0,a.arrayReduce)(s,(e,t,n)=>(t&&e.push(this.hot.toVisualColumn(n)),e),[])}!1!==this.hot.runHooks("beforeUnhideColumns",t,r,n&&i)&&(n&&i&&p(y,this).setValues(s),this.hot.view.adjustElementsSize(),this.hot.runHooks("afterUnhideColumns",t,r,n&&i,n&&r.length<t.length))}showColumn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.showColumns(t)}hideColumns(e){const t=this.getHiddenColumns(),n=this.isValidConfig(e);let r=t;n&&(r=Array.from(new Set(t.concat(e))));!1!==this.hot.runHooks("beforeHideColumns",t,r,n)&&(n&&this.hot.batchExecution(()=>{(0,a.arrayEach)(e,e=>{p(y,this).setValueAtIndex(this.hot.toPhysicalColumn(e),!0)})},!0),this.hot.runHooks("afterHideColumns",t,r,n,n&&r.length>t.length))}hideColumn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];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,n){if(!1===this.getSetting("copyPasteEnabled")&&this.isHidden(t)&&(n.skipColumnOnPaste=!0),this.isHidden(t-1))n.className=n.className||"",-1===n.className.indexOf("afterHiddenColumn")&&(n.className+=" afterHiddenColumn");else if(n.className){const e=n.className.split(" ");if(e.length>0){const t=e.indexOf("afterHiddenColumn");t>-1&&e.splice(t,1),n.className=e.join(" ")}}}function T(e){if(this.getSetting("copyPasteEnabled"))return e;const t=[],n=(e,n,r,s)=>{t.push({startRow:e,endRow:n,startCol:r,endCol:s})};return(0,a.arrayEach)(e,e=>{let t=!0,r=0;(0,o.rangeEach)(e.startCol,e.endCol,s=>{this.isHidden(s)?(t||n(e.startRow,e.endRow,r,s-1),t=!0):(t&&(r=s),s===e.endCol&&n(e.startRow,e.endRow,r,s),t=!1)})}),t}function _(e,t){if(!this.getSetting("indicators")||e<0)return;const n=[];e>=1&&this.isHidden(e-1)&&n.push("afterHiddenColumn"),e<this.hot.countCols()-1&&this.isHidden(e+1)&&n.push("beforeHiddenColumn"),(0,i.addClass)(t,n)}function N(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},59262:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(68196);t.VALIDATOR_TYPE=r.VALIDATOR_TYPE,t.autocompleteValidator=r.autocompleteValidator},59317:(e,t,n)=>{"use strict";var r=n(13479);e.exports=function(e,t,n){for(var s=e.length-1;s>=0;s--)if(void 0!==e[s])try{n=r(e[s].iterator,t,n)}catch(e){t="throw",n=e}if("throw"===t)throw n;return n}},59766:(e,t)=>{"use strict";t.__esModule=!0,t.resolveWithInstance=function(e,t){var r;return null==n||null===(r=n.get(e.guid))||void 0===r?void 0:r.get(t)},t.staticRegister=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"common";n.has(e)||n.set(e,new Map);const t=n.get(e);return{register:function(e,n){t.set(e,n)},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(){n.delete(e),t.clear()}}};const n=t.collection=new Map},59830:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(66182);var s=r(n(81115)),i=n(72740),o=n(89090),a=n(37849),l=r(n(24285));class h{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,s.default)(this,"indexedValues",[]),(0,s.default)(this,"initValueOrFn",void 0),this.initValueOrFn=e}getValues(){return this.indexedValues}getValueAtIndex(e){const t=this.indexedValues;if(e<t.length)return t[e]}setValues(e){this.indexedValues=e.slice(),this.runLocalHooks("change")}setValueAtIndex(e,t){return e<this.indexedValues.length&&(this.indexedValues[e]=t,this.runLocalHooks("change"),!0)}clear(){this.setDefaultValues()}getLength(){return this.getValues().length}setDefaultValues(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.indexedValues.length=0,(0,a.isFunction)(this.initValueOrFn)?(0,i.rangeEach)(e-1,e=>this.indexedValues.push(this.initValueOrFn(e))):(0,i.rangeEach)(e-1,()=>this.indexedValues.push(this.initValueOrFn)),this.runLocalHooks("change")}init(e){return this.setDefaultValues(e),this.runLocalHooks("init"),this}insert(){this.runLocalHooks("change")}remove(){this.runLocalHooks("change")}destroy(){this.clearLocalHooks(),this.indexedValues=null,this.initValueOrFn=null}}t.IndexMap=h,(0,o.mixin)(h,l.default)},59839:(e,t,n)=>{"use strict";var r=n(27538),s=n(87681),i=n(69946),o=n(11127),a=n(88049);r({target:"Array",proto:!0},{at:function(e){var t=s(this),n=i(t),r=o(e),a=r>=0?r:n+r;return a<0||a>=n?void 0:t[a]}}),a("at")},59884:(e,t,n)=>{"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(r.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 r=n(20217),s=n(72740)},59899:(e,t,n)=>{"use strict";var r=n(19596),s=n(52270),i=r.document,o=s(i)&&s(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},59914:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"commentsRemove",name(){return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_REMOVE_COMMENT)},callback(){this.getSelectedRangeActive().forAll((t,n)=>{t>=0&&n>=0&&e.removeCommentAtCell(t,n,!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 r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217))},60036:()=>{},60225:(e,t,n)=>{"use strict";var r=n(27538),s=n(19596),i=n(91733).set,o=n(68060),a=s.setImmediate?o(i,!1):i;r({global:!0,bind:!0,enumerable:!0,forced:s.setImmediate!==a},{setImmediate:a})},60296:()=>{},60309:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(30229);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.AutoColumnSize=r.AutoColumnSize},60354:(e,t,n)=>{"use strict";n(47183)},60369:(e,t,n)=>{"use strict";var r=n(58719),s=n(19596),i=n(22381),o="__core-js_shared__",a=e.exports=s[o]||i(o,{});(a.versions||(a.versions=[])).push({version:"3.46.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE",source:"https://github.com/zloirock/core-js"})},60549:()=>{},60557:(e,t,n)=>{"use strict";t.__esModule=!0,t.baseRenderer=a,n(66182);var r=n(38942),s=n(14089);const i=t.RENDERER_TYPE="base",o="htTextEllipsis";function a(e,t,n,i,a,l,h){const u=h.ariaTags,c=[],d=[],g=[],p=[];h.className&&(0,r.addClass)(t,h.className),h.readOnly?(c.push(h.readOnlyCellClassName),u&&p.push((0,s.A11Y_READONLY)())):u&&g.push((0,s.A11Y_READONLY)()[0]),!1===h.valid&&h.invalidCellClassName?(c.push(h.invalidCellClassName),u&&p.push((0,s.A11Y_INVALID)())):(d.push(h.invalidCellClassName),u&&g.push((0,s.A11Y_INVALID)()[0])),!1===h.wordWrap&&h.noWordWrapClassName&&c.push(h.noWordWrapClassName),!l&&h.placeholder&&c.push(h.placeholderCellClassName),h.textEllipsis&&c.push(o),(0,r.removeClass)(t,d),(0,r.addClass)(t,c),(0,r.removeAttribute)(t,g),(0,r.setAttribute)(t,p)}a.RENDERER_TYPE=i},60664:()=>{},60698:()=>{},60702:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(86844);t.VALIDATOR_TYPE=r.VALIDATOR_TYPE,t.correctFormat=r.correctFormat,t.dateValidator=r.dateValidator},60765:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(59830),s=n(99799);class i extends r.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},60964:(e,t,n)=>{"use strict";t.__esModule=!0,t.numericValidator=i;var r=n(72740);const s=t.VALIDATOR_TYPE="numeric";function i(e,t){let n=e;null==n&&(n=""),this.allowEmpty&&""===n?t(!0):t(""!==n&&(0,r.isNumeric)(e))}i.VALIDATOR_TYPE=s},61050:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(25816));t.DataMap=s.default;var i=r(n(36741));t.MetaManager=i.default;var o=r(n(34067));t.metaSchemaFactory=o.default;var a=n(95190);t.replaceData=a.replaceData;var l=n(86415);t.DynamicCellMetaMod=l.DynamicCellMetaMod;var h=n(98327);t.ExtendMetaPropertiesMod=h.ExtendMetaPropertiesMod},61094:()=>{},61292:()=>{},61338:(e,t,n)=>{"use strict";var r=n(49510),s=n(91945);e.exports=function(e,t){var n=e[t];return s(n)?void 0:r(n)}},61635:(e,t,n)=>{"use strict";var r=n(8467),s=n(94988),i=n(93428),o=n(64649),a=n(16539),l=s([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?l(t,n(e)):t}},61767:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(36415)),i=r(n(35749)),o=r(n(48906)),a=n(89090),l=n(21596);class h extends s.default{constructor(e,t,n,r){super(e,t,n,r,l.CLONE_BOTTOM_INLINE_START_CORNER)}}(0,a.mixin)(h,i.default),(0,a.mixin)(h,o.default);t.default=h},61869:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(36415)),i=r(n(35749)),o=r(n(21617)),a=n(89090),l=n(21596);class h extends s.default{constructor(e,t,n,r){super(e,t,n,r,l.CLONE_BOTTOM)}}(0,a.mixin)(h,i.default),(0,a.mixin)(h,o.default);t.default=h},61989:(e,t,n)=>{"use strict";var r=n(53269),s=n(497);e.exports=function(e){var t=r(e,"string");return s(t)?t:t+""}},62007:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(10386);class s extends r.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},62081:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(r.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 r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217));const s=t.KEY="row_below"},62115:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182),n(81396),n(88633),n(19874);var s=r(n(81115)),i=n(30152),o=n(87544),a=n(9492);t.default=class{constructor(e,t){(0,s.default)(this,"plugin",void 0),(0,s.default)(this,"hot",void 0),(0,s.default)(this,"endpoints",[]),(0,s.default)(this,"settings",void 0),(0,s.default)(this,"settingsType","array"),(0,s.default)(this,"currentEndpoint",null),(0,s.default)(this,"cellsToSetCache",[]),this.plugin=e,this.hot=this.plugin.hot,this.settings=t}initEndpoints(){this.endpoints=this.parseSettings(),this.refreshAllEndpoints()}getEndpoint(e){return"function"===this.settingsType?this.fillMissingEndpointData(this.settings)[e]:this.endpoints[e]}getAllEndpoints(){return"function"===this.settingsType?this.fillMissingEndpointData(this.settings):this.endpoints}fillMissingEndpointData(e){return this.parseSettings(e.call(this))}parseSettings(e){const t=[];let n=e;if(n||"function"!=typeof this.settings)return n||(n=this.settings),(0,i.arrayEach)(n,e=>{const n={};this.assignSetting(e,n,"ranges",[[0,this.hot.countRows()-1]]),this.assignSetting(e,n,"reversedRowCoords",!1),this.assignSetting(e,n,"destinationRow",new Error("\n You must provide a destination row for the Column Summary plugin in order to work properly!\n ")),this.assignSetting(e,n,"destinationColumn",new Error("\n You must provide a destination column for the Column Summary plugin in order to work properly!\n ")),this.assignSetting(e,n,"sourceColumn",e.destinationColumn),this.assignSetting(e,n,"type","sum"),this.assignSetting(e,n,"forceNumeric",!1),this.assignSetting(e,n,"suppressDataTypeErrors",!0),this.assignSetting(e,n,"customFunction",null),this.assignSetting(e,n,"readOnly",!0),this.assignSetting(e,n,"roundFloat",!1),t.push(n)}),t;this.settingsType="function"}assignSetting(e,t,n,r){if("ranges"!==n||void 0!==e[n]){if("ranges"!==n||0!==e[n].length)if(void 0===e[n]){if(r instanceof Error)throw r;t[n]=r}else"destinationRow"===n&&t.reversedRowCoords?t[n]=this.hot.countRows()-e[n]-1:t[n]=e[n]}else t[n]=r}resetSetupBeforeStructureAlteration(e,t,n){if("function"!==this.settingsType)return;const r=e.indexOf("row")>-1?"row":"col",s=this.getAllEndpoints();(0,i.arrayEach)(s,s=>{"row"===r&&s.destinationRow>=t&&("insert_row"===e?s.alterRowOffset=n:"remove_row"===e&&(s.alterRowOffset=-1*n)),"col"===r&&s.destinationColumn>=t&&("insert_col"===e?s.alterColumnOffset=n:"remove_col"===e&&(s.alterColumnOffset=-1*n))}),this.resetAllEndpoints(s,!1)}resetSetupAfterStructureAlteration(e,t,n,r,s){let o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if("auto"===s)return;if("function"===this.settingsType){const e=()=>(this.hot.removeHook("beforeViewRender",e),this.refreshAllEndpoints());return void this.hot.addHookOnce("beforeViewRender",e)}const a=e.indexOf("row")>-1?"row":"col",l=e.indexOf("remove")>-1?-1:1,h=this.getAllEndpoints(),u=0===e.indexOf("move_row"),c=t;(0,i.arrayEach)(h,e=>{"row"===a&&e.destinationRow>=c&&(e.alterRowOffset=l*n),"col"===a&&e.destinationColumn>=c&&(e.alterColumnOffset=l*n)}),this.resetAllEndpoints(h,!u),u?(0,i.arrayEach)(h,e=>{this.extendEndpointRanges(e,c,r[0],r.length),this.recreatePhysicalRanges(e),this.clearOffsetInformation(e)}):(0,i.arrayEach)(h,e=>{this.shiftEndpointCoordinates(e,c)}),o&&this.refreshAllEndpoints()}clearOffsetInformation(e){e.alterRowOffset=void 0,e.alterColumnOffset=void 0}extendEndpointRanges(e,t,n,r){(0,i.arrayEach)(e.ranges,e=>{e[1]&&(t>=e[0]&&t<=e[1]?n>e[1]?e[1]+=r:n<e[0]&&(e[0]-=r):n>=e[0]&&n<=e[1]&&(e[1]-=r,t<=e[0]&&(e[0]+=1,e[1]+=1)))})}recreatePhysicalRanges(e){const t=e.ranges,n=[],r=[];(0,i.arrayEach)(t,e=>{const t=[];if(e[1])for(let n=e[0];n<=e[1];n++)t.push(this.hot.toPhysicalRow(n));else t.push(this.hot.toPhysicalRow(e[0]));r.push(t)}),(0,i.arrayEach)(r,e=>{let t=[];(0,i.arrayEach)(e,(r,s)=>{0===s?t.push(r):e[s]!==e[s-1]+1&&(t.push(e[s-1]),n.push(t),t=[],t.push(r)),s===e.length-1&&(t.push(r),n.push(t))})}),e.ranges=n}shiftEndpointCoordinates(e,t){e.alterRowOffset&&0!==e.alterRowOffset?(e.destinationRow+=e.alterRowOffset||0,(0,i.arrayEach)(e.ranges,n=>{(0,i.arrayEach)(n,(r,s)=>{r>=t&&(n[s]+=e.alterRowOffset||0)})})):e.alterColumnOffset&&0!==e.alterColumnOffset&&(e.destinationColumn+=e.alterColumnOffset||0,e.sourceColumn+=e.alterColumnOffset||0)}resetAllEndpoints(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getAllEndpoints(),t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.some(e=>{const t=e.alterRowOffset||0,n=e.alterColumnOffset||0;return e.destinationRow+t>=this.hot.countRows()||e.destinationColumn+n>=this.hot.countCols()})||(this.cellsToSetCache=[],(0,i.arrayEach)(e,e=>{this.resetEndpointValue(e,t)}),this.cellsToSetCache.length&&this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[])}refreshAllEndpoints(){this.cellsToSetCache=[],(0,i.arrayEach)(this.getAllEndpoints(),e=>{this.currentEndpoint=e,this.plugin.calculate(e),this.setEndpointValue(e,"init")}),this.currentEndpoint=null,this.cellsToSetCache.length&&this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}refreshChangedEndpoints(e){const t=[];this.cellsToSetCache=[],(0,i.arrayEach)(e,(e,n,r)=>{`${e[2]||""}`!=`${e[3]}`&&(0,i.arrayEach)(this.getAllEndpoints(),(e,s)=>{this.hot.propToCol(r[n][1])===e.sourceColumn&&-1===t.indexOf(s)&&t.push(s)})}),(0,i.arrayEach)(t,e=>{this.refreshEndpoint(this.getEndpoint(e))}),this.cellsToSetCache.length&&this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}refreshCellMetas(){this.endpoints.forEach(e=>{const t=this.hot.toVisualRow(e.destinationRow);if(null!==t){const n=this.hot.getCellMeta(t,e.destinationColumn);n.readOnly=e.readOnly,n.className="columnSummaryResult"}})}refreshEndpoint(e){this.currentEndpoint=e,this.plugin.calculate(e),this.setEndpointValue(e),this.currentEndpoint=null}resetEndpointValue(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=e.alterRowOffset||0,r=e.alterColumnOffset||0;this.cellsToSetCache.push([this.hot.toVisualRow(e.destinationRow+(t?n:0)),this.hot.toVisualColumn(e.destinationColumn+(t?r:0)),""])}setEndpointValue(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=this.hot.toVisualRow(e.destinationRow);if(e.destinationRow>=this.hot.countRows()||e.destinationColumn>=this.hot.countCols())return void this.throwOutOfBoundsWarning();const s=this.hot.toVisualRow(e.destinationRow);if(null!==s){const n=this.hot.getCellMeta(s,e.destinationColumn);"init"!==t&&n.readOnly===e.readOnly||(n.readOnly=e.readOnly,n.className="columnSummaryResult")}e.result=(0,a.roundFloat)(e.result,e.roundFloat),n?this.hot.setDataAtCell(r,e.destinationColumn,e.result,"ColumnSummary.set"):this.cellsToSetCache.push([r,e.destinationColumn,e.result]),e.alterRowOffset=void 0,e.alterColumnOffset=void 0}throwOutOfBoundsWarning(){(0,o.warn)("One of the Column Summary plugins' destination points you provided is beyond the table boundaries!")}}},62243:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182),n(4114),n(78822),n(86192),n(80729),n(99888),n(12767),n(78644),n(97550),n(81396),n(39691),n(88633),n(14618);var s=r(n(81115)),i=n(57440),o=n(59766),a=n(87544),l=n(72740),h=n(89090),u=n(54342),c=n(56288),d=n(64247),g=n(39500),p=n(51053),f=n(16656),m=n(92164),E=r(n(78061));function w(e,t,n){y(e,t),t.set(e,n)}function y(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function C(e,t,n){return e.set(S(e,t),n),n}function v(e,t){return e.get(S(e,t))}function S(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const R=t.PLUGIN_KEY="formulas",T=t.SETTING_KEYS=["maxRows","maxColumns","language"],_=t.PLUGIN_PRIORITY=260;m.Hooks.getSingleton().register("afterNamedExpressionAdded"),m.Hooks.getSingleton().register("afterNamedExpressionRemoved"),m.Hooks.getSingleton().register("afterSheetAdded"),m.Hooks.getSingleton().register("afterSheetRemoved"),m.Hooks.getSingleton().register("afterSheetRenamed"),m.Hooks.getSingleton().register("afterFormulasValuesUpdate");const N=e=>"UndoRedo.undo"===e||"UndoRedo.redo"===e||"auto"===e;var A=new WeakMap,b=new WeakMap,M=new WeakMap,I=new WeakSet;class O extends i.BasePlugin{constructor(){var e,t,n;super(...arguments),e=this,y(t=this,n=I),n.add(t),w(this,A,!1),w(this,b,!1),w(this,M,[["valuesUpdated",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return S(I,e,J).call(e,...n)}],["namedExpressionAdded",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return S(I,e,ee).call(e,...n)}],["namedExpressionRemoved",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return S(I,e,te).call(e,...n)}],["sheetAdded",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return S(I,e,ne).call(e,...n)}],["sheetRenamed",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return S(I,e,re).call(e,...n)}],["sheetRemoved",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return S(I,e,se).call(e,...n)}]]),(0,s.default)(this,"staticRegister",(0,o.staticRegister)("formulas")),(0,s.default)(this,"engine",null),(0,s.default)(this,"sheetId",null),(0,s.default)(this,"sheetName",null),(0,s.default)(this,"indexSyncer",null),(0,s.default)(this,"rowAxisSyncer",null),(0,s.default)(this,"columnAxisSyncer",null)}static get PLUGIN_KEY(){return R}static get PLUGIN_PRIORITY(){return _}static get SETTING_KEYS(){return[R,...T]}isEnabled(){return!!this.hot.getSettings()[R]}enablePlugin(){var e,t=this;if(!this.enabled)if(this.engine=null!==(e=(0,c.setupEngine)(this.hot))&&void 0!==e?e:this.engine,this.engine){if(null!==this.sheetName&&!this.engine.doesSheetExist(this.sheetName)){const e=this.addSheet(this.sheetName,S(I,this,L).call(this));!1!==e&&S(I,this,x).call(this,e)}this.addHook("beforeLoadData",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,H).call(t,...n)}),this.addHook("afterLoadData",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,U).call(t,...n)}),this.addHook("beforeUpdateData",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,H).call(t,...n)}),this.addHook("afterUpdateData",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,U).call(t,...n)}),this.addHook("modifyData",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,V).call(t,...n)}),this.addHook("modifySourceData",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,B).call(t,...n)}),this.addHook("beforeValidate",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,D).call(t,...n)}),this.addHook("afterSetSourceDataAtCell",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,Y).call(t,...n)}),this.addHook("afterSetDataAtCell",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,W).call(t,...n)}),this.addHook("afterSetDataAtRowProp",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,W).call(t,...n)}),this.addHook("beforeCreateRow",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,G).call(t,...n)}),this.addHook("beforeCreateCol",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,j).call(t,...n)}),this.addHook("afterCreateRow",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,K).call(t,...n)}),this.addHook("afterCreateCol",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,X).call(t,...n)}),this.addHook("beforeRemoveRow",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,z).call(t,...n)}),this.addHook("beforeRemoveCol",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,$).call(t,...n)}),this.addHook("afterRemoveRow",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,q).call(t,...n)}),this.addHook("afterRemoveCol",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,Q).call(t,...n)}),this.indexSyncer=new E.default(this.hot.rowIndexMapper,this.hot.columnIndexMapper,e=>{this.hot.addHookOnce("init",()=>{e()})}),this.rowAxisSyncer=this.indexSyncer.getForAxis("row"),this.columnAxisSyncer=this.indexSyncer.getForAxis("column"),this.hot.addHook("afterRowSequenceChange",this.rowAxisSyncer.getIndexesChangeSyncMethod()),this.hot.addHook("afterColumnSequenceChange",this.columnAxisSyncer.getIndexesChangeSyncMethod()),this.hot.addHook("beforeRowMove",(e,t,n,r)=>{this.rowAxisSyncer.storeMovesInformation(e,t,r)}),this.hot.addHook("beforeColumnMove",(e,t,n,r)=>{this.columnAxisSyncer.storeMovesInformation(e,t,r)}),this.hot.addHook("afterRowMove",(e,t,n,r,s)=>{this.rowAxisSyncer.calculateAndSyncMoves(r,s)}),this.hot.addHook("afterColumnMove",(e,t,n,r,s)=>{this.columnAxisSyncer.calculateAndSyncMoves(r,s)}),this.hot.addHook("beforeColumnFreeze",(e,t)=>{this.columnAxisSyncer.storeMovesInformation([e],this.hot.getSettings().fixedColumnsStart,t)}),this.hot.addHook("afterColumnFreeze",(e,t)=>{this.columnAxisSyncer.calculateAndSyncMoves(t,t)}),this.hot.addHook("beforeColumnUnfreeze",(e,t)=>{this.columnAxisSyncer.storeMovesInformation([e],this.hot.getSettings().fixedColumnsStart-1,t)}),this.hot.addHook("afterColumnUnfreeze",(e,t)=>{this.columnAxisSyncer.calculateAndSyncMoves(t,t)}),this.addHook("afterCellMetaReset",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,F).call(t,...n)}),this.addHook("beforeUndo",()=>{this.indexSyncer.setPerformUndo(!0),this.engine.undo()}),this.addHook("beforeRedo",()=>{this.indexSyncer.setPerformRedo(!0),this.engine.redo()}),this.addHook("afterUndo",()=>{this.indexSyncer.setPerformUndo(!1)}),this.addHook("afterUndo",()=>{this.indexSyncer.setPerformRedo(!1)}),this.addHook("afterDetachChild",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,Z).call(t,...n)}),this.addHook("beforeAutofill",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,k).call(t,...n)}),v(M,this).forEach(e=>{let[t,n]=e;return this.engine.on(t,n)}),super.enablePlugin()}else(0,a.warn)("Missing the required `engine` key in the Formulas settings. Please fill it with either an engine class or an engine instance.")}disablePlugin(){v(M,this).forEach(e=>{let[t,n]=e;return this.engine.off(t,n)}),(0,c.unregisterEngine)(this.engine,this.hot),this.engine=null,super.disablePlugin()}updatePlugin(e){const t=(0,g.getEngineSettingsWithOverrides)(this.hot.getSettings());(0,g.haveEngineSettingsChanged)(this.engine.getConfig(),t)&&this.engine.updateConfig(t);const n=this.hot.getSettings()[R];if((0,u.isDefined)(n)&&(0,u.isDefined)(n.sheetName)&&n.sheetName!==this.sheetName&&this.switchSheet(n.sheetName),!e.data&&null===this.sheetName){const e=this.hot.getSettings()[R].sheetName;if(e&&this.engine.doesSheetExist(e))this.switchSheet(this.sheetName);else{const t=this.addSheet(null!=e?e:void 0,S(I,this,L).call(this));S(I,this,x).call(this,t)}}super.updatePlugin(e)}destroy(){v(M,this).forEach(e=>{var t;let[n,r]=e;return null===(t=this.engine)||void 0===t?void 0:t.off(n,r)}),C(M,this,null),(0,c.unregisterEngine)(this.engine,this.hot),this.engine=null,super.destroy()}addSheet(e,t){if((0,u.isDefined)(t)&&!(0,p.isArrayOfArrays)(t))return(0,a.warn)("The provided data should be an array of arrays."),!1;if(null!=e&&this.engine.doesSheetExist(e))return(0,a.warn)("Sheet with the provided name already exists."),!1;try{const n=this.engine.addSheet(null!=e?e:void 0);return t&&this.engine.setSheetContent(this.engine.getSheetId(n),t),n}catch(e){return(0,a.warn)(e.message),!1}}switchSheet(e){if(!this.engine.doesSheetExist(e))return void(0,a.error)(`The sheet named \`${e}\` does not exist, switch aborted.`);S(I,this,x).call(this,e);const t=this.engine.getSheetSerialized(this.sheetId);t.length>0&&this.hot.loadData(t,`${(0,f.toUpperCaseFirst)(R)}.switchSheet`)}getCellType(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.sheetId;const r=this.hot.toPhysicalRow(e),s=this.hot.toPhysicalColumn(t);return null!==r&&null!==s?this.engine.getCellType({sheet:n,row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t)}):"EMPTY"}isFormulaCellType(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.sheetId;return this.engine.doesCellHaveFormula({sheet:n,row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t)})}renderDependentSheets(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=new Set;e.forEach(e=>{var t;const r=null==e||null===(t=e.address)||void 0===t?void 0:t.sheet;void 0!==r&&(n.has(r)||n.add(r))}),(0,c.getRegisteredHotInstances)(this.engine).forEach((e,r)=>{var s;(t||r!==this.sheetId)&&n.has(r)&&(e.render(),null===(s=e.view)||void 0===s||s.adjustElementsSize())})}validateDependentCells(e){const t=e=>{var t;const{row:n,col:r,sheet:s}=null!==(t=null==e?void 0:e.address)&&void 0!==t?t:{};return(0,u.isDefined)(s)?`${s}:${n}x${r}`:""},n=new Set((arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).map(e=>t(e)));e.forEach(e=>{var r,s;const{row:i,col:o}=null!==(r=e.address)&&void 0!==r?r:{};if(!1===(0,u.isDefined)(i)||!1===(0,u.isDefined)(o)||i>=this.hot.countRows()||o>=this.hot.countCols())return;const a=null==e||null===(s=e.address)||void 0===s?void 0:s.sheet,l=t(e);if(void 0!==a&&!n.has(l)){const e=(0,c.getRegisteredHotInstances)(this.engine).get(a);if(!e)return;e.validateCell(e.getDataAtCell(i,o),e.getCellMeta(i,o),()=>{})}})}syncChangeWithEngine(e,t,n){const r={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t),sheet:this.sheetId};if(!this.engine.isItPossibleToSetCellContents(r))return void(0,a.warn)(`Not possible to set cell data at ${JSON.stringify(r)}`);const s=this.hot.getCellMeta(e,t);return(0,d.isDate)(n,s.type)&&((0,d.isDateValid)(n,s.dateFormat)?n=(0,d.getDateInHfFormat)(n,s.dateFormat):!1===(0,d.isFormula)(n)&&(n=`'${n}`)),this.engine.setCellContents(r,n)}}function x(e){this.sheetName=e,this.sheetId=this.engine.getSheetId(this.sheetName)}function P(e,t,n){if((0,h.isObject)(n)&&null!==n){const r=this.hot.toVisualRow(e),s=this.hot.toVisualColumn(t),i=this.hot.getCellMeta(r,s).valueGetter;return i?i.call(this.hot,n):n.toString()}return n}function L(e,t,n,r){return this.hot.getSourceDataArray(e,t,n,r).map((e,t)=>e.map((e,n)=>S(I,this,P).call(this,t,n,e)))}function D(e,t,n){const r=this.hot.propToCol(n);if(this.isFormulaCellType(t,r)){const e={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(r),sheet:this.sheetId},n=this.hot.getCellMeta(t,r);let s=this.engine.getCellValue(e);return"date"===n.type&&(0,l.isNumeric)(s)&&(s=(0,d.getDateFromExcelDate)(s,n.dateFormat)),"object"==typeof s&&null!==s?s.value:s}return e}function k(e,t,n){const{row:r,col:s}=t.getTopStartCorner(),{row:i,col:o}=t.getBottomEndCorner(),{row:a,col:l}=n.getTopStartCorner(),{row:h,col:u}=n.getBottomEndCorner(),c={start:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(r),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(s),sheet:this.sheetId},end:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(i),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(o),sheet:this.sheetId}},g={start:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(a),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(l),sheet:this.sheetId},end:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(h),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(u),sheet:this.sheetId}};if(!1===this.engine.isItPossibleToSetCellContents(g))return!1;const p=this.engine.getFillRangeData(c,g),{row:f,col:m}=c.start,{row:E,col:w}=c.end,y=E-f+1,C=w-m+1;for(let e=0;e<p.length;e+=1)for(let t=0;t<p[e].length;t+=1){const n=p[e][t],r=f+e%y,s=m+t%C,i=this.hot.getCellMeta(r,s);(0,d.isDate)(n,i.type)&&(n.startsWith("'")?p[e][t]=n.slice(1):!1===this.isFormulaCellType(r,s,this.sheetId)&&(p[e][t]=(0,d.getDateInHotFormat)(n,i.dateFormat)))}return p}function H(e,t){(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"").includes((0,f.toUpperCaseFirst)(R))||C(b,this,(0,u.isUndefined)(this.hot.getSettings().data))}function F(){if(v(b,this))return void this.switchSheet(this.sheetName);const e=S(I,this,L).call(this);e.forEach((t,n)=>{t.forEach((t,r)=>{const s=this.hot.getCellMeta(n,r,{skipMetaExtension:!0}),i=s.dateFormat;(0,d.isDate)(t,s.type)&&((0,d.isDateValid)(t,i)?e[n][r]=(0,d.getDateInHfFormat)(t,i):t.startsWith("=")||(e[n][r]=`'${t}`))})}),C(A,this,!0);const t=this.engine.setSheetContent(this.sheetId,e);this.indexSyncer.setupSyncEndpoint(this.engine,this.sheetId),this.renderDependentSheets(t),C(A,this,!1)}function U(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(n.includes((0,f.toUpperCaseFirst)(R)))return;const r=(0,c.setupSheet)(this.engine,this.hot.getSettings()[R].sheetName);if(S(I,this,x).call(this,r),"updateSettings"!==n)if(v(b,this))this.switchSheet(this.sheetName);else{const e=S(I,this,L).call(this);if(this.engine.isItPossibleToReplaceSheetContent(this.sheetId,e)){C(A,this,!0);const t=this.engine.setSheetContent(this.sheetId,e);this.indexSyncer.setupSyncEndpoint(this.engine,this.sheetId),this.renderDependentSheets(t),C(A,this,!1)}}}function V(e,t,n,r){if("get"!==r||v(A,this)||null===this.sheetName||!this.engine.doesSheetExist(this.sheetName))return;if(null===e||null===t)return;const s=this.getCellType(e,t);if("VALUE"===s||"EMPTY"===s)return void(n.value=(0,d.unescapeFormulaExpression)(n.value));const i={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t),sheet:this.sheetId};let o=this.engine.getCellValue(i);const a=this.hot.getCellMeta(e,t,{skipMetaExtension:!0});"date"===a.type&&(0,l.isNumeric)(o)&&(o=(0,d.getDateFromExcelDate)(o,a.dateFormat)),n.value="object"==typeof o&&null!==o?o.value:o}function B(e,t,n,r){if("get"!==r||v(A,this)||null===this.sheetName||!this.engine.doesSheetExist(this.sheetName))return;const s=this.hot.toVisualRow(e),i=this.hot.propToCol(t);if(null===s||null===i)return;const o=this.getCellType(s,i);if("VALUE"===o||"EMPTY"===o)return;const a=this.engine.getSheetDimensions(this.engine.getSheetId(this.sheetName));if(0===a.width&&0===a.height)return;const l={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(s),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(i),sheet:this.sheetId};n.value=this.engine.getCellSerialized(l)}function W(e,t){if(N(t))return;const n=[],r=[],s=this.engine.batch(()=>{e.forEach(e=>{let[t,s,,i]=e;const o=this.hot.propToCol(s),a=this.hot.toPhysicalRow(t),l=this.hot.toPhysicalColumn(o),h={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(o),sheet:this.sheetId};i=S(I,this,P).call(this,a,l,i),null!==a&&null!==l?this.syncChangeWithEngine(t,o,i):n.push([t,o,i]),r.push({address:h})})});n.length&&this.hot.addHookOnce("afterChange",()=>{const e=this.engine.batch(()=>{n.forEach(e=>{let[t,n,r]=e;this.syncChangeWithEngine(t,n,r)})});this.renderDependentSheets(e,!0)}),this.renderDependentSheets(s),this.validateDependentCells(s,r)}function Y(e,t){if(N(t))return;const n=[],r=[];e.forEach(e=>{let[t,s,,i]=e;const o=this.hot.propToCol(s);if(!(0,l.isNumeric)(o))return;const h={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(o),sheet:this.sheetId};this.engine.isItPossibleToSetCellContents(h)?(r.push({address:h}),n.push(...this.engine.setCellContents(h,i))):(0,a.warn)(`Not possible to set source cell data at ${JSON.stringify(h)}`)}),this.renderDependentSheets(n),this.validateDependentCells(n,r)}function G(e,t){let n=this.rowAxisSyncer.getHfIndexFromVisualIndex(e);if(e>=this.hot.countRows()&&(n=e),null===this.sheetId||!this.engine.doesSheetExist(this.sheetName)||!this.engine.isItPossibleToAddRows(this.sheetId,[n,t]))return!1}function j(e,t){let n=this.columnAxisSyncer.getHfIndexFromVisualIndex(e);if(e>=this.hot.countCols()&&(n=e),null===this.sheetId||!this.engine.doesSheetExist(this.sheetName)||!this.engine.isItPossibleToAddColumns(this.sheetId,[n,t]))return!1}function z(e,t,n){return!1!==this.rowAxisSyncer.setRemovedHfIndexes(n).every(e=>this.engine.isItPossibleToRemoveRows(this.sheetId,[e,1]))&&void 0}function $(e,t,n){return!1!==this.columnAxisSyncer.setRemovedHfIndexes(n).every(e=>this.engine.isItPossibleToRemoveColumns(this.sheetId,[e,1]))&&void 0}function K(e,t,n){if(N(n))return;const r=this.engine.addRows(this.sheetId,[this.rowAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(r)}function X(e,t,n){if(N(n))return;const r=this.engine.addColumns(this.sheetId,[this.columnAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(r)}function q(e,t,n,r){if(N(r))return;const s=this.rowAxisSyncer.getRemovedHfIndexes().sort((e,t)=>t-e),i=this.engine.batch(()=>{s.forEach(e=>{this.engine.removeRows(this.sheetId,[e,1])})});this.renderDependentSheets(i)}function Q(e,t,n,r){if(N(r))return;const s=this.columnAxisSyncer.getRemovedHfIndexes().sort((e,t)=>t-e),i=this.engine.batch(()=>{s.forEach(e=>{this.engine.removeColumns(this.sheetId,[e,1])})});this.renderDependentSheets(i)}function Z(e,t,n){var r;C(A,this,!0);const s=S(I,this,L).call(this,n,0,n+((null===(r=t.__children)||void 0===r?void 0:r.length)||0),this.hot.countSourceCols());C(A,this,!1),s.forEach((e,t)=>{e.forEach((e,r)=>{this.engine.setCellContents({col:r,row:n+t,sheet:this.sheetId},[[e]])})})}function J(e){this.hot.runHooks("afterFormulasValuesUpdate",e)}function ee(e,t){this.hot.runHooks("afterNamedExpressionAdded",e,t)}function te(e,t){this.hot.runHooks("afterNamedExpressionRemoved",e,t)}function ne(e){this.hot.runHooks("afterSheetAdded",e)}function re(e,t){S(I,this,x).call(this,t),this.hot.runHooks("afterSheetRenamed",e,t)}function se(e,t){this.hot.runHooks("afterSheetRemoved",e,t)}t.Formulas=O},62487:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588);var s=r(n(81115)),i=n(57440),o=r(n(20083)),a=r(n(98032));function l(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}const h=t.PLUGIN_KEY="bindRowsWithHeaders",u=t.PLUGIN_PRIORITY=210,c=new Map([["loose",o.default],["strict",a.default]]);var d=new WeakSet;class g extends i.BasePlugin{constructor(){super(...arguments),l(this,d),(0,s.default)(this,"headerIndexes",null)}static get PLUGIN_KEY(){return h}static get PLUGIN_PRIORITY(){return u}isEnabled(){return!!this.hot.getSettings()[h]}enablePlugin(){var e;if(this.enabled)return;const t=null!==(e=c.get(this.getSetting()))&&void 0!==e?e:c.get("loose");this.headerIndexes=this.hot.rowIndexMapper.registerMap("bindRowsWithHeaders",new t),this.addHook("modifyRowHeader",e=>function(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}(d,this,p).call(this,e)),super.enablePlugin()}disablePlugin(){this.hot.rowIndexMapper.unregisterMap("bindRowsWithHeaders"),super.disablePlugin()}destroy(){super.destroy()}}function p(e){return this.headerIndexes.getValueAtIndex(this.hot.toPhysicalRow(e))}t.BindRowsWithHeaders=g},62601:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(95605);const s=t.EDITOR_TYPE="numeric";class i extends r.TextEditor{static get EDITOR_TYPE(){return s}}t.NumericEditor=i},62963:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(66182);var s=r(n(81115)),i=n(38942),o=n(16656),a=r(n(90308)),l=r(n(69550)),h=r(n(82860)),u=r(n(35845));t.default=class{get eventManager(){return new a.default(this)}constructor(e,t){(0,s.default)(this,"wtTable",void 0),(0,s.default)(this,"wtScroll",void 0),(0,s.default)(this,"wtViewport",void 0),(0,s.default)(this,"wtOverlays",void 0),(0,s.default)(this,"selectionManager",void 0),(0,s.default)(this,"wtEvent",void 0),(0,s.default)(this,"guid",`wt_${(0,o.randomString)()}`),(0,s.default)(this,"drawInterrupted",!1),(0,s.default)(this,"drawn",!1),(0,s.default)(this,"activeOverlayName","master"),(0,s.default)(this,"domBindings",void 0),(0,s.default)(this,"wtSettings",void 0),this.domBindings={rootTable:e,rootDocument:e.ownerDocument,rootWindow:e.ownerDocument.defaultView},this.wtSettings=t,this.wtScroll=new l.default(this.createScrollDao())}findOriginalHeaders(){const e=[];if(this.wtTable.THEAD.childNodes.length&&this.wtTable.THEAD.childNodes[0].childNodes.length){for(let t=0,n=this.wtTable.THEAD.childNodes[0].childNodes.length;t<n;t++)e.push(this.wtTable.THEAD.childNodes[0].childNodes[t].innerHTML);this.wtSettings.getSetting("columnHeaders").length||this.wtSettings.update("columnHeaders",[function(t,n){(0,i.fastInnerText)(n,e[t])}])}}createCellCoords(e,t){return new h.default(e,t,this.wtSettings.getSetting("rtlMode"))}createCellRange(e,t,n){return new u.default(e,t,n,this.wtSettings.getSetting("rtlMode"))}draw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.drawInterrupted=!1,!this.wtTable.isVisible()||(0,i.hasZeroHeight)(this.wtTable.wtRootElement.parentNode)?this.drawInterrupted=!0:this.wtTable.draw(e),this}getCell(e){if(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))return this.wtTable.getCell(e);const t=this.wtSettings.getSetting("totalRows"),n=this.wtSettings.getSetting("fixedRowsTop"),r=this.wtSettings.getSetting("fixedRowsBottom"),s=this.wtSettings.getSetting("fixedColumnsStart");if(e.row<n&&e.col<s)return this.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.getCell(e);if(e.row<n)return this.wtOverlays.topOverlay.clone.wtTable.getCell(e);if(e.col<s&&e.row>=t-r){if(this.wtOverlays.bottomInlineStartCornerOverlay&&this.wtOverlays.bottomInlineStartCornerOverlay.clone)return this.wtOverlays.bottomInlineStartCornerOverlay.clone.wtTable.getCell(e)}else{if(e.col<s)return this.wtOverlays.inlineStartOverlay.clone.wtTable.getCell(e);if(e.row<t&&e.row>=t-r&&this.wtOverlays.bottomOverlay&&this.wtOverlays.bottomOverlay.clone)return this.wtOverlays.bottomOverlay.clone.wtTable.getCell(e)}return this.wtTable.getCell(e)}scrollViewport(e,t,n){return this.wtScroll.scrollViewport(e,t,n)}scrollViewportHorizontally(e,t){return this.wtScroll.scrollViewportHorizontally(e,t)}scrollViewportVertically(e,t){return this.wtScroll.scrollViewportVertically(e,t)}getViewport(){return[this.wtTable.getFirstVisibleRow(),this.wtTable.getFirstVisibleColumn(),this.wtTable.getLastVisibleRow(),this.wtTable.getLastVisibleColumn()]}destroy(){this.wtOverlays.destroy(),this.wtEvent.destroy()}createScrollDao(){const e=this;return{get drawn(){return e.drawn},get topOverlay(){return e.wtOverlays.topOverlay},get inlineStartOverlay(){return e.wtOverlays.inlineStartOverlay},get wtTable(){return e.wtTable},get wtViewport(){return e.wtViewport},get wtSettings(){return e.wtSettings},get rootWindow(){return e.domBindings.rootWindow},get totalRows(){return e.wtSettings.getSetting("totalRows")},get totalColumns(){return e.wtSettings.getSetting("totalColumns")},get fixedRowsTop(){return e.wtSettings.getSetting("fixedRowsTop")},get fixedRowsBottom(){return e.wtSettings.getSetting("fixedRowsBottom")},get fixedColumnsStart(){return e.wtSettings.getSetting("fixedColumnsStart")}}}getTableDao(){const e=this;return{get wot(){return e},get parentTableOffset(){return e.cloneSource.wtTable.tableOffset},get cloneSource(){return e.cloneSource},get workspaceWidth(){return e.wtViewport.getWorkspaceWidth()},get wtViewport(){return e.wtViewport},get wtOverlays(){return e.wtOverlays},get selectionManager(){return e.selectionManager},get drawn(){return e.drawn},set drawn(t){e.drawn=t},get wtTable(){return e.wtTable},get startColumnRendered(){return e.wtViewport.columnsRenderCalculator.startColumn},get startColumnVisible(){return e.wtViewport.columnsVisibleCalculator.startColumn},get startColumnPartiallyVisible(){return e.wtViewport.columnsPartiallyVisibleCalculator.startColumn},get endColumnRendered(){return e.wtViewport.columnsRenderCalculator.endColumn},get endColumnVisible(){return e.wtViewport.columnsVisibleCalculator.endColumn},get endColumnPartiallyVisible(){return e.wtViewport.columnsPartiallyVisibleCalculator.endColumn},get countColumnsRendered(){return e.wtViewport.columnsRenderCalculator.count},get countColumnsVisible(){return e.wtViewport.columnsVisibleCalculator.count},get startRowRendered(){return e.wtViewport.rowsRenderCalculator.startRow},get startRowVisible(){return e.wtViewport.rowsVisibleCalculator.startRow},get startRowPartiallyVisible(){return e.wtViewport.rowsPartiallyVisibleCalculator.startRow},get endRowRendered(){return e.wtViewport.rowsRenderCalculator.endRow},get endRowVisible(){return e.wtViewport.rowsVisibleCalculator.endRow},get endRowPartiallyVisible(){return e.wtViewport.rowsPartiallyVisibleCalculator.endRow},get countRowsRendered(){return e.wtViewport.rowsRenderCalculator.count},get countRowsVisible(){return e.wtViewport.rowsVisibleCalculator.count},get columnHeaders(){return e.wtSettings.getSetting("columnHeaders")},get rowHeaders(){return e.wtSettings.getSetting("rowHeaders")}}}}},63453:()=>{},63529:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182),n(37637),n(81396),n(39691),n(81124),n(82101),n(14618),n(39716);var s=r(n(81115)),i=n(76847),o=n(30152),a=n(89090),l=n(38942),h=n(54342),u=n(16656),c=n(21510),d=n(40041),g=n(14089),p=n(37849);function f(e,t,n){m(e,t),t.set(e,n)}function m(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function E(e,t){return e.get(w(e,t))}function w(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const y=t.EDITOR_TYPE="autocomplete";var C=new WeakMap,v=new WeakMap,S=new WeakSet;class R extends i.HandsontableEditor{constructor(){var e,t;super(...arguments),m(e=this,t=S),t.add(e),(0,s.default)(this,"query",null),(0,s.default)(this,"strippedChoices",[]),(0,s.default)(this,"rawChoices",[]),f(this,C,this.hot.guid.slice(0,9)),f(this,v,(0,p.debounce)(()=>{this.focus()},100))}static get EDITOR_TYPE(){return y}getValue(){const e=this.rawChoices.find(e=>{const t=this.stripValueIfNeeded(e);return(w(S,this,_).call(this,t)?t.value:t)===this.TEXTAREA.value});return(0,h.isDefined)(e)?e:this.TEXTAREA.value}createElements(){super.createElements(),(0,l.addClass)(this.htContainer,"autocompleteEditor"),(0,l.addClass)(this.htContainer,-1===this.hot.rootWindow.navigator.platform.indexOf("Mac")?"":"htMacScroll"),this.hot.getSettings().ariaTags&&(0,l.setAttribute)(this.TEXTAREA,[(0,g.A11Y_TEXT)(),(0,g.A11Y_COMBOBOX)(),(0,g.A11Y_HASPOPUP)("listbox"),(0,g.A11Y_AUTOCOMPLETE)()])}prepare(e,t,n,r,s,i){super.prepare(e,t,n,r,s,i),this.hot.getSettings().ariaTags&&(0,l.setAttribute)(this.TEXTAREA,[(0,g.A11Y_EXPANDED)("false"),(0,g.A11Y_CONTROLS)(`${E(C,this)}-listbox-${e}-${t}`)]),this.htOptions={...this.htOptions,valueGetter:e=>w(S,this,_).call(this,e)?e.value:e}}open(){super.open();const e=void 0===this.cellProperties.trimDropdown||this.cellProperties.trimDropdown,t=this.hot.getSettings().ariaTags,n=Array.isArray(this.cellProperties.source)?this.cellProperties.source:null,r=null==n?void 0:n.length,{row:s,col:i}=this;this.showEditableElement(),this.focus(),this.addHook("beforeKeyDown",e=>this.onBeforeKeyDown(e)),this.htEditor.addHook("afterScroll",E(v,this)),this.htEditor.updateSettings({colWidths:e?[(0,l.outerWidth)(this.TEXTAREA)-2]:void 0,autoColumnSize:!0,renderer:(e,s,i,o,a,u,c)=>{(0,d.textRenderer)(e,s,i,o,a,u,c);const{filteringCaseSensitive:p,allowHtml:f,locale:m}=this.cellProperties,E=this.query;let w,y,C=(0,h.stringify)(u);C&&!f&&(w=!0===p?C.indexOf(E):C.toLocaleLowerCase(m).indexOf(E.toLocaleLowerCase(m)),-1!==w&&(y=C.substr(w,E.length),C=C.replace(y,`<strong>${y}</strong>`))),t&&(0,l.setAttribute)(s,[(0,g.A11Y_OPTION)(),...n?[(0,g.A11Y_SETSIZE)(r)]:[],...n?[(0,g.A11Y_POSINSET)(n.indexOf(u)+1)]:[],["id",`${this.htEditor.rootElement.id}_${i}-${o}`]]),s.innerHTML=C},afterSelectionEnd:(e,n)=>{if(t){const t=e=>{(0,l.setAttribute)(e,[(0,g.A11Y_SELECTED)()]),(0,l.setAttribute)(this.TEXTAREA,...(0,g.A11Y_ACTIVEDESCENDANT)(e.id))},r=this.htEditor.getCell(e,n,!0);null!==r?t(r):this.htEditor.addHookOnce("afterScrollVertically",()=>{const r=this.htEditor.getCell(e,n,!0);t(r)})}}}),t&&((0,l.setAttribute)(this.htEditor.view._wt.wtOverlays.wtTable.TABLE,...(0,g.A11Y_PRESENTATION)()),(0,l.setAttribute)(this.htEditor.rootElement,[(0,g.A11Y_LISTBOX)(),(0,g.A11Y_LIVE)("polite"),(0,g.A11Y_RELEVANT)("text"),["id",`${E(C,this)}-listbox-${s}-${i}`]]),(0,l.setAttribute)(this.TEXTAREA,...(0,g.A11Y_EXPANDED)("true"))),this.hot._registerTimeout(()=>{this.queryChoices(this.TEXTAREA.value)})}close(){this.removeHooksByKey("beforeKeyDown"),super.close(),this.hot.getSettings().ariaTags&&(0,l.setAttribute)(this.TEXTAREA,[(0,g.A11Y_EXPANDED)("false")])}discardEditor(e){super.discardEditor(e),this.hot.view.render()}finishEditing(e,t,n){if(this.isOpened()){const t=this.hot.getSelectedRangeActive();((0,h.isUndefined)(t)||(0,h.isDefined)(t)&&!t.includes(this.hot._createCellCoords(this.row,this.col)))&&(e=!0)}super.finishEditing(e,t,n)}queryChoices(e){const t=this.cellProperties.source;this.query=e,"function"==typeof t?t.call(this.cellProperties,e,e=>{this.rawChoices=e,this.updateChoicesList(this.stripValuesIfNeeded(e))}):Array.isArray(t)?(this.rawChoices=t,this.updateChoicesList(this.stripValuesIfNeeded(t))):this.updateChoicesList([])}updateChoicesList(e){const t=(0,l.getCaretPosition)(this.TEXTAREA),n=(0,l.getSelectionEndPosition)(this.TEXTAREA),r=this.cellProperties.sortByRelevance,s=this.cellProperties.filter,i=this.stripValueIfNeeded(this.getValue()),a=w(S,this,_).call(this,i)?i.value:i;let c=null,d=e;r||(d=d.toSorted());const g=[],p=this.cellProperties.locale,f=this.cellProperties.filteringCaseSensitive,m=f?a:a.toLocaleLowerCase(p);for(let e=0;e<d.length;e++){const t=w(S,this,_).call(this,d[e])?(0,u.stripTags)((0,h.stringify)(d[e].value)):(0,u.stripTags)((0,h.stringify)(d[e]));if(-1!==(f?t:t.toLocaleLowerCase(p)).indexOf(m)&&(g.push(e),!1===s))break}!1===s?i.length>0&&(c=g[0]):(d=g.map(e=>d[e]),c=d.indexOf(m)>-1?d.indexOf(m):0),this.strippedChoices=d,0===d.length?this.htEditor.rootElement.style.display="none":this.htEditor.rootElement.style.display="",this.htEditor.loadData((0,o.pivot)([d])),d.length>0&&(this.updateDropdownDimensions(),this.flipDropdownVerticallyIfNeeded(),!0===this.cellProperties.strict&&this.highlightBestMatchingChoice(c)),this.hot.listen(),(0,l.setCaretPosition)(this.TEXTAREA,t,t===n?void 0:n)}flipDropdownVerticallyIfNeeded(){const e=super.flipDropdownVerticallyIfNeeded(),{isFlipped:t,spaceAbove:n,spaceBelow:r}=e;return this.limitDropdownIfNeeded(t?n:r),e}limitDropdownIfNeeded(e){const t=this.getDropdownHeight();if(t>e){let n=0,r=0,s=null;do{r=this.htEditor.stylesHandler.getDefaultRowHeight(),n+=r}while(n<e);s=n-r,this.isFlippedVertically&&(this.htEditor.rootElement.style.top=parseInt(this.htEditor.rootElement.style.top,10)+t-s+"px"),this.setDropdownHeight(n-r)}}updateDropdownDimensions(){const e=(0,l.getFractionalScalingCompensation)(),t=this.getTargetEditorWidth()+e,n=this.getTargetEditorHeight()+e;this.htEditor.updateSettings({width:t,height:n}),w(S,this,T).call(this),this.htEditor.view._wt.wtTable.alignOverlaysWithTrimmingContainer()}setDropdownHeight(e){this.htEditor.updateSettings({height:e}),w(S,this,T).call(this),this.htEditor.view._wt.wtTable.alignOverlaysWithTrimmingContainer()}highlightBestMatchingChoice(e){"number"==typeof e?this.htEditor.selectCell(e,0,void 0,void 0,void 0,!1):this.htEditor.deselectCell()}getTargetEditorHeight(){let e=0;if(!this.hot.getCurrentThemeName()){const t=this.hot.rootWindow.getComputedStyle(this.htContainer.querySelector(".htCore"));e=parseInt(t.borderTopWidth,10)+parseInt(t.borderBottomWidth,10)}const t=Math.min(this.cellProperties.visibleRows,this.strippedChoices.length);return Array.from({length:t},(e,t)=>t).reduce((e,t)=>e+(this.hot.stylesHandler.getDefaultRowHeight()+(0===t?1:0)),0)+e}getTargetEditorWidth(){let e=0;if(!this.hot.getCurrentThemeName()){const t=this.hot.rootWindow.getComputedStyle(this.htContainer.querySelector(".htCore"));e=parseInt(t.borderInlineStartWidth,10)+parseInt(t.borderInlineEndWidth,10)}return this.htEditor.getColWidth(0)+e}stripValueIfNeeded(e){return this.stripValuesIfNeeded([e])[0]}stripValuesIfNeeded(e){const{allowHtml:t}=this.cellProperties,n=e=>(0,h.stringify)(t?e:(0,u.stripTags)(e));return e.every(e=>w(S,this,_).call(this,e))?e.map(e=>({key:n(e.key),value:n(e.value)})):e.map(e=>n(e))}onBeforeKeyDown(e){if((0,c.isPrintableChar)(e.keyCode)||e.keyCode===c.KEY_CODES.BACKSPACE||e.keyCode===c.KEY_CODES.DELETE||e.keyCode===c.KEY_CODES.INSERT){let t=10;if(e.keyCode===c.KEY_CODES.C&&(e.ctrlKey||e.metaKey))return;this.isOpened()||(t+=10),this.htEditor&&this.hot._registerTimeout(()=>{this.queryChoices(this.TEXTAREA.value)},t)}}}function T(){this.htEditor.view.hasVerticalScroll()&&this.htEditor.updateSettings({width:this.getTargetEditorWidth()+(0,l.getScrollbarWidth)(this.hot.rootDocument)})}function _(e){return(0,a.isObject)(e)&&(0,h.isDefined)(e.key)&&(0,h.isDefined)(e.value)}t.AutocompleteEditor=R},63775:()=>{},63879:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182),n(81396),n(19874);var s=n(57440),i=n(92164),o=r(n(12009)),a=r(n(3686));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,n){return e.set(c(e,t),n),n}function c(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}i.Hooks.getSingleton().register("beforeColumnFreeze"),i.Hooks.getSingleton().register("afterColumnFreeze"),i.Hooks.getSingleton().register("beforeColumnUnfreeze"),i.Hooks.getSingleton().register("afterColumnUnfreeze");const d=t.PLUGIN_KEY="manualColumnFreeze",g=t.PLUGIN_PRIORITY=110;var p=new WeakMap,f=new WeakSet;class m extends s.BasePlugin{constructor(){var e,t;super(...arguments),l(e=this,t=f),t.add(e),function(e,t,n){l(e,t),t.set(e,n)}(this,p,!1)}static get PLUGIN_KEY(){return d}static get PLUGIN_PRIORITY(){return g}isEnabled(){return!!this.hot.getSettings()[d]}enablePlugin(){this.enabled||(this.addHook("afterContextMenuDefaultOptions",e=>c(f,this,E).call(this,e)),this.addHook("beforeColumnMove",(e,t)=>c(f,this,w).call(this,e,t)),super.enablePlugin())}disablePlugin(){u(p,this,!1),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}freezeColumn(e){const t=this.hot.getSettings(),n=t.fixedColumnsStart<this.hot.countCols()&&e>t.fixedColumnsStart-1;h(p,this)||u(p,this,!0);!1!==this.hot.runHooks("beforeColumnFreeze",e,n)&&(n&&(this.hot.columnIndexMapper.moveIndexes(e,t.fixedColumnsStart),t._fixedColumnsStart+=1),this.hot.runHooks("afterColumnFreeze",e,n))}unfreezeColumn(e){const t=this.hot.getSettings(),n=t.fixedColumnsStart>0&&e<=t.fixedColumnsStart-1;h(p,this)||u(p,this,!0);!1!==this.hot.runHooks("beforeColumnUnfreeze",e,n)&&(n&&(t._fixedColumnsStart-=1,this.hot.columnIndexMapper.moveIndexes(e,t.fixedColumnsStart)),this.hot.runHooks("afterColumnUnfreeze",e,n))}}function E(e){e.items.push({name:"---------"},(0,o.default)(this),(0,a.default)(this))}function w(e,t){if(h(p,this)){const n=this.hot.getSettings().fixedColumnsStart;if(t<n)return!1;if(e.some(e=>e<n))return!1}}t.ManualColumnFreeze=m},64078:()=>{},64195:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy_with_column_group_headers",name(){const e=this.getSelectedRangeActive(),t=e?(0,s.clamp)(e.getWidth()-1,0,1):0;return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS,t)},callback(){e.copyWithAllColumnHeaders()},disabled(){if(!this.hasColHeaders()||!this.getSettings().nestedHeaders)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 r=n(20217),s=n(72740)},64235:(e,t,n)=>{"use strict";n(81396),n(88633),t.__esModule=!0;var r=n(22699);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))});var s=n(92164);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))});var i=n(17279);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))})},64247:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,t.getDateFromExcelDate=function(e,t){const n=new Date(Date.UTC(0,0,e+-1));return(0,s.default)(n).format(t)},t.getDateInHfFormat=function(e,t){return(0,s.default)(e,t,!0).format(i)},t.getDateInHotFormat=function(e,t){return(0,s.default)(e,i,!0).format(t)},t.isDate=function(e,t){return"string"==typeof e&&"date"===t},t.isDateValid=function(e,t){return(0,s.default)(e,t,!0).isValid()},t.isEscapedFormulaExpression=o,t.isFormula=function(e){return"string"==typeof e&&e.startsWith("=")},t.unescapeFormulaExpression=function(e){return o(e)?e.substr(1):e};var s=r(n(37539));const i="DD/MM/YYYY";function o(e){return"string"==typeof e&&"'"===e.charAt(0)&&"="===e.charAt(1)}},64496:(e,t,n)=>{"use strict";t.__esModule=!0,t.rowHeaderScrollStrategy=function(e){return t=>{const n=(0,r.createScrollTargetCalculator)(e).getComputedRowTarget(t);e.scrollViewportTo({row:n},()=>{const t=!!e.getSettings().rowHeaders;(0,r.scrollWindowToCell)(e.getCell(n,t?-1:0,!0))})}};var r=n(92634)},64605:()=>{},64649:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},64696:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"hidden_columns_hide",name(){const e=this.getSelectedActive();let t=0;if(Array.isArray(e)){const[,n,,r]=e;n-r!==0&&(t=1)}return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_HIDE_COLUMN,t)},callback(){const{from:t,to:n}=this.getSelectedRangeActive(),r=Math.max(Math.min(t.col,n.col),0),s=Math.max(t.col,n.col),i=[];for(let e=r;e<=s;e+=1)i.push(e);e.hideColumns(i);const o=i[i.length-1],a=this.columnIndexMapper.getNearestNotHiddenIndex(o,1,!0);Number.isInteger(a)&&a>=0?this.selectColumns(a):this.deselectCell(),this.view.adjustElementsSize(),this.render()},disabled:!1,hidden(){return!(this.selection.isSelectedByColumnHeader()||this.selection.isSelectedByCorner())}}},n(66182);var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217))},64845:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588);var s=r(n(81115)),i=n(57440),o=n(30152),a=n(89090),l=n(89051),h=n(90082),u=n(38942),c=n(67305),d=n(32335),g=n(92164),p=n(89386),f=n(14089);function m(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function E(e,t,n){return e.set(w(e,t),n),n}function w(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;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 _ 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,n;super(e),m(t=this,n=T),n.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,n){m(e,t),t.set(e,n)}(this,R,!1),this.hot.addHook("afterGetColHeader",(e,t)=>w(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,_.DEFAULT_ITEMS),this.addHook("beforeOnCellMouseDown",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(T,e,L).call(e,...n)}),this.addHook("beforeViewportScrollHorizontally",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(T,e,P).call(e,...n)}),this.addHook("beforeDialogShow",()=>this.close());const t=this.hot.getSettings()[y],n={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",n),this.itemsFactory.setPredefinedItems(n.items);const r=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",r),this.menu.setMenuItems(r),this.menu.addLocalHook("beforeOpen",()=>w(T,this,M).call(this)),this.menu.addLocalHook("afterOpen",()=>w(T,this,I).call(this)),this.menu.addLocalHook("afterSubmenuOpen",e=>w(T,this,O).call(this,e)),this.menu.addLocalHook("afterClose",()=>w(T,this,x).call(this)),this.menu.addLocalHook("executeCommand",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.executeCommand.call(e,...n)}),(0,o.arrayEach)(r,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(),n=(0,h.getDocumentOffsetByElement)(this.menu.container,this.hot.rootDocument),r=this.hot.getCell(-1,t.col,!0).querySelector(`.${v}`),s=r.getBoundingClientRect();this.open({left:s.left+n.left,top:s.top+r.offsetHeight+n.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=>w(T,this,A).call(this,e))}open(e){var t;let n=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)(n,(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,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.commandExecutor.execute(e,...n)}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 N(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),n=e.target.getBoundingClientRect();e.stopPropagation(),E(R,this,!1),this.open({left:n.left+t.left,top:n.top+e.target.offsetHeight+t.top},{left:n.width,right:0,above:0,below:3})}}function b(e,t){const n=t.parentNode;if(!n)return;const r=n.parentNode.childNodes,s=Array.prototype.indexOf.call(r,n);if(e<0||s!==r.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),w(T,this,N).call(this,this.menu)}function O(e){w(T,this,N).call(this,e)}function x(){this.hot.listen(),this.hot.runHooks("afterDropdownMenuHide",this)}function P(e){return n=this,(t=R).get(w(t,n))?null:e;var t,n}function L(e){(0,u.hasClass)(e.target,v)&&E(R,this,!0)}t.DropdownMenu=_,_.SEPARATOR={name:p.SEPARATOR}},64854:(e,t,n)=>{"use strict";var r=n(11127),s=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?s(n+t,0):i(n,t)}},65032:()=>{},65092:()=>{},65109:()=>{},65131:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_INSERT_LEFT)},callback(){const e=this.getSelectedRangeActive().getTopLeftCorner(),t=this.isRtl()?"insert_col_end":"insert_col_start";this.alter(t,e.col,1,"ContextMenu.columnLeft")},disabled(){if(!this.isColumnModificationAllowed())return!0;const e=this.getSelectedRangeActive();return!!(!e||this.selection.isSelectedByRowHeader()||e.isSingleHeader()&&e.highlight.col<0||this.countSourceCols()>=this.getSettings().maxCols)||!!this.selection.isSelectedByCorner()&&0===this.countCols()},hidden(){return!this.getSettings().allowInsertColumn}}};var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217));const s=t.KEY="col_left"},65781:(e,t,n)=>{"use strict";var r=n(24427);e.exports="NODE"===r},65876:()=>{},66135:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588);var s=r(n(81115)),i=n(57440),o=n(89090),a=r(n(62115)),l=n(14298),h=n(9492);function u(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function c(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const d=t.PLUGIN_KEY="columnSummary",g=t.PLUGIN_PRIORITY=220;var p=new WeakSet;class f extends i.BasePlugin{constructor(){super(...arguments),u(this,p),(0,s.default)(this,"endpoints",null)}static get PLUGIN_KEY(){return d}static get PLUGIN_PRIORITY(){return g}isEnabled(){return!!this.hot.getSettings()[d]}enablePlugin(){var e=this;this.enabled||(this.settings=this.hot.getSettings()[d],this.endpoints=new a.default(this,this.settings),this.addHook("afterInit",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(p,e,m).call(e,...n)}),this.addHook("afterChange",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(p,e,w).call(e,...n)}),this.addHook("afterUpdateSettings",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(p,e,E).call(e,...n)}),this.addHook("afterLoadData",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(p,e,y).call(e,...n)}),this.addHook("afterUpdateData",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(p,e,C).call(e,...n)}),this.addHook("beforeCreateRow",(e,t,n)=>this.endpoints.resetSetupBeforeStructureAlteration("insert_row",e,t,null,n)),this.addHook("beforeCreateCol",(e,t,n)=>this.endpoints.resetSetupBeforeStructureAlteration("insert_col",e,t,null,n)),this.addHook("beforeRemoveRow",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.endpoints.resetSetupBeforeStructureAlteration("remove_row",...n)}),this.addHook("beforeRemoveCol",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.endpoints.resetSetupBeforeStructureAlteration("remove_col",...n)}),this.addHook("afterCreateRow",(e,t,n)=>this.endpoints.resetSetupAfterStructureAlteration("insert_row",e,t,null,n)),this.addHook("afterCreateCol",(e,t,n)=>this.endpoints.resetSetupAfterStructureAlteration("insert_col",e,t,null,n)),this.addHook("afterRemoveRow",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.endpoints.resetSetupAfterStructureAlteration("remove_row",...n)}),this.addHook("afterRemoveCol",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.endpoints.resetSetupAfterStructureAlteration("remove_col",...n)}),this.addHook("afterRowMove",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(p,e,v).call(e,...n)}),super.enablePlugin())}disablePlugin(){this.endpoints=null,this.settings=null,this.currentEndpoint=null,super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.endpoints.initEndpoints(),super.updatePlugin()}calculate(e){switch(e.type.toLowerCase()){case"sum":e.result=this.calculateSum(e);break;case"min":case"max":e.result=this.calculateMinMax(e,e.type);break;case"count":e.result=this.countEntries(e);break;case"average":e.result=this.calculateAverage(e);break;case"custom":e.result=e.customFunction.call(this,e)}}calculateSum(e){let t=0;return(0,o.objectEach)(e.ranges,n=>{t+=this.getPartialSum(n,e.sourceColumn)}),t}getPartialSum(e,t){let n=0,r=e[1]||e[0],s=null,i=0;do{if(s=this.getCellValue(r,t),s=(0,h.isNullishOrNaN)(s)?null:s,null!==s){const e=(`${s}`.split(".")[1]||[]).length||1;e>i&&(i=e)}n+=s||0,r-=1}while(r>=e[0]);return Math.round(n*10**i)/10**i}calculateMinMax(e,t){let n=null;return(0,o.objectEach)(e.ranges,r=>{const s=this.getPartialMinMax(r,e.sourceColumn,t);if(null===n&&null!==s&&(n=s),null!==s)switch(t){case"min":n=Math.min(n,s);break;case"max":n=Math.max(n,s)}}),null===n?"Not enough data":n}getPartialMinMax(e,t,n){let r,s=null,i=e[1]||e[0];do{if(r=this.getCellValue(i,t),r=(0,h.isNullishOrNaN)(r)?null:r,null===s)s=r;else if(null!==r)switch(n){case"min":s=Math.min(s,r);break;case"max":s=Math.max(s,r)}i-=1}while(i>=e[0]);return s}countEmpty(e,t){let n,r=0,s=e[1]||e[0];do{n=this.getCellValue(s,t),n=(0,h.isNullishOrNaN)(n)?null:n,null===n&&(r+=1),s-=1}while(s>=e[0]);return r}countEntries(e){let t=0;const n=e.ranges;return(0,o.objectEach)(n,n=>{const r=void 0===n[1]?1:n[1]-n[0]+1,s=this.countEmpty(n,e.sourceColumn);t+=r,t-=s}),t}calculateAverage(e){return this.calculateSum(e)/this.countEntries(e)}getCellValue(e,t){const n=this.hot.toVisualRow(e),r=this.hot.toVisualColumn(t);let s=this.hot.getSourceDataAtCell(e,t),i="";if(null!==n&&null!==r&&(i=this.hot.getCellMeta(n,r).className||""),i.indexOf("columnSummaryResult")>-1)return null;if(this.endpoints.currentEndpoint.forceNumeric&&("string"==typeof s&&(s=s.replace(/,/,".")),s=parseFloat(s)),isNaN(s)&&!this.endpoints.currentEndpoint.suppressDataTypeErrors)throw new Error(l.toSingleLine`ColumnSummary plugin: cell at (${e}, ${t}) is not in a\x20
|
|
285
|
+
settings. Otherwise, HyperFormula's dates may not sync correctly with Handsontable's dates.`),r}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 n=u(),r=n.get(e),s=c(),i=s.get(e);r&&r.includes(t)&&(r.splice(r.indexOf(t),1),0===r.length&&n.delete(e)),i&&i.includes(t.guid)&&(i.splice(i.indexOf(t.guid),1),0===i.length&&(s.delete(e),e.destroy()))}},n(66182),n(81396),n(88633),n(14618);var r=n(59766),s=n(54342),i=n(14298),o=n(87544),a=n(89090),l=n(62243),h=n(39500);function u(){const e="engine_relationship",t=(0,r.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,r.staticRegister)(l.PLUGIN_KEY);return t.hasItem(e)||t.register(e,new Map),t.getItem(e)}function d(e,t,n){const r=t[l.PLUGIN_KEY],s=(0,h.getEngineSettingsWithDefaultsAndOverrides)(t),i=u(),o=c();g(e,r.functions),p(e,r.language);const a=e.buildEmpty(s);return i.set(a,[n]),o.set(a,[n.guid]),f(a,r.namedExpressions),a.on("sheetAdded",()=>{a.rebuildAndRecalculate()}),a.on("sheetRemoved",()=>{a.rebuildAndRecalculate()}),a}function g(e,t){t&&t.forEach(t=>{const{name:n,plugin:r,translations:s}=t;try{e.registerFunction(n,r,s)}catch(e){(0,o.warn)(e.message)}})}function p(e,t){if(t){const{langCode:n}=t;try{e.registerLanguage(n,t)}catch(e){(0,o.warn)(e.message)}}}function f(e,t){t&&(e.suspendEvaluation(),t.forEach(t=>{const{name:n,expression:r,scope:s,options:i}=t;try{e.addNamedExpression(n,r,s,i)}catch(e){(0,o.warn)(e.message)}}),e.resumeEvaluation())}},56445:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(81115)),i=n(20751);class o extends i.BaseAction{constructor(e){let{currentSortState:t,newSortState:n}=e;super("col_sort"),(0,s.default)(this,"previousSortState",void 0),(0,s.default)(this,"nextSortState",void 0),this.previousSortState=t,this.nextSortState=n}static startRegisteringEvents(e,t){e.addHook("beforeColumnSort",(e,n,r)=>{r&&t.done(()=>new o({currentSortState:e,newSortState:n}))})}undo(e,t){const n=e.getPlugin("columnSorting"),r=e.getPlugin("multiColumnSorting"),s=r.isEnabled()?r:n;this.previousSortState.length?s.sort(this.previousSortState):s.clearSort(),t()}redo(e,t){const n=e.getPlugin("columnSorting"),r=e.getPlugin("multiColumnSorting");(r.isEnabled()?r:n).sort(this.nextSortState),t()}}t.ColumnSortAction=o},56769:(e,t,n)=>{"use strict";var r=n(20699),s=n(55210);e.exports=function(e){return r(s(e))}},57396:(e,t,n)=>{"use strict";var r=n(40136),s=n(49510),i=n(38972),o=r(r.bind);e.exports=function(e,t){return s(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},57440:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(69535);t.PLUGIN_KEY=r.PLUGIN_KEY,t.BasePlugin=r.BasePlugin,t.defaultMainSettingSymbol=r.defaultMainSettingSymbol},57490:(e,t,n)=>{"use strict";var r=n(19617),s=n(14326),i=n(52270),o=TypeError;e.exports=function(e,t){var n,a;if("string"===t&&s(n=e.toString)&&!i(a=r(n,e)))return a;if(s(n=e.valueOf)&&!i(a=r(n,e)))return a;if("string"!==t&&s(n=e.toString)&&!i(a=r(n,e)))return a;throw new o("Can't convert object to primitive value")}},57596:(e,t,n)=>{"use strict";var r=n(94988),s=0,i=Math.random(),o=r(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},57625:(e,t,n)=>{"use strict";var r=n(19596);e.exports=function(e,t){var n=r.Iterator,s=n&&n.prototype,i=s&&s[e],o=!1;if(i)try{i.call({next:function(){return{done:!0}},return:function(){o=!0}},-1)}catch(e){e instanceof t||(o=!1)}if(!o)return i}},57799:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(38902);t.CELL_TYPE=r.CELL_TYPE,t.HandsontableCellType=r.HandsontableCellType},57945:(e,t,n)=>{"use strict";t.__esModule=!0,t.handsontableRenderer=i;var r=n(15454);const s=t.RENDERER_TYPE="handsontable";function i(e,t,n,s,i,o,a){r.autocompleteRenderer.apply(this,[e,t,n,s,i,o,a])}i.RENDERER_TYPE=s},58102:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(94844);var s=r(n(76916)),i=n(28078),o=n(61050),a=n(92164),l=n(43181),h=n(17822),u=n(34933),c=n(28235),d=n(51191);function g(e,t){const n=new s.default(e,t||{},i.rootInstanceSymbol);return n.init(),n}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="20/11/2025 13:06:47",g.version="16.2.0-next-bf17104-20251120",g.languages={dictionaryKeys:l.dictionaryKeys,getLanguageDictionary:l.getLanguageDictionary,getLanguagesDictionaries:l.getLanguagesDictionaries,registerLanguageDictionary:l.registerLanguageDictionary,getTranslatedPhrase:l.getTranslatedPhrase};t.default=g},58158:()=>{},58214:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(99967),s=n(983),i=n(45240);const o=t.CELL_TYPE="checkbox";t.CheckboxCellType={CELL_TYPE:o,editor:r.CheckboxEditor,renderer:s.checkboxRenderer,valueSetter:i.valueSetter}},58370:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(81115)),i=n(76613);class o extends i.PartiallyVisibleColumnsCalculationType{constructor(){super(...arguments),(0,s.default)(this,"columnStartOffset",0),(0,s.default)(this,"columnEndOffset",0)}finalize(e){var t;super.finalize(e);const{overrideFn:n,totalColumns:r,startPositions:s}=e;if(null!==this.startColumn&&"function"==typeof n){const e=this.startColumn,t=this.endColumn;n(this),this.columnStartOffset=e-this.startColumn,this.columnEndOffset=this.endColumn-t}this.startColumn<0&&(this.startColumn=0),this.startPosition=null!==(t=s[this.startColumn])&&void 0!==t?t:null,r<this.endColumn&&(this.endColumn=r-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}t.RenderedColumnsCalculationType=o},58379:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"borders:no_borders",name(){return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_REMOVE_BORDERS)},callback(t,n){e.prepareBorder(n,"noBorders")},disabled(){return!(0,s.checkSelectionBorders)(this)}}};var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217)),s=n(6528)},58502:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(21103),s=n(21319),i=n(89769),o=n(91660);const a=t.CELL_TYPE="dropdown";t.DropdownCellType={CELL_TYPE:a,editor:r.DropdownEditor,renderer:s.dropdownRenderer,validator:i.dropdownValidator,filter:!1,strict:!0,valueGetter:o.valueGetter,valueSetter:o.valueSetter}},58617:(e,t,n)=>{"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 r=n(89090),s=n(66563);const i=e=>{const t={value:!1,test:(n,r)=>{t.value=e(n,r)}};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,r.objectEach)(o,n=>{let{test:r}=n;r(e,t)})}function h(){let{platform:e=navigator.platform}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,r.objectEach)(a,t=>{let{test:n}=t;n(e)})}(0,s.isCSR)()&&(l(),h())},58719:e=>{"use strict";e.exports=!1},58946:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(37515)),i=n(38942);class o extends s.default{build(){super.build(),(0,i.addClass)(this._element,"ht__manualColumnMove--backlight")}}t.default=o},59055:(e,t,n)=>{"use strict";t.__esModule=!0,n(66182);var r=n(60765),s=n(30152);class i extends r.PhysicalIndexToValueMap{constructor(){super(arguments.length>0&&void 0!==arguments[0]&&arguments[0])}getTrimmedIndexes(){return(0,s.arrayReduce)(this.getValues(),(e,t,n)=>(t&&e.push(n),e),[])}}t.TrimmingMap=i},59135:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182),n(78822),n(86192),n(80729),n(99888),n(12767),n(78644),n(97550),n(81396),n(39691),n(14618);var s=n(57440),i=n(38942),o=n(72740),a=n(30152),l=n(89386),h=n(92164),u=r(n(64696)),c=r(n(5669)),d=n(20160);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,n){return e.set(m(e,t),n),n}function m(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;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 E=t.PLUGIN_KEY="hiddenColumns",w=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,n){g(e,t),t.set(e,n)}(this,y,null)}static get PLUGIN_KEY(){return E}static get PLUGIN_PRIORITY(){return w}static get DEFAULT_SETTINGS(){return{copyPasteEnabled:!0,indicators:!1,columns:[]}}isEnabled(){return!!this.hot.getSettings()[E]}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,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(C,e,N).call(e,...n)}),this.addHook("afterGetCellMeta",(e,t,n)=>m(C,this,R).call(this,e,t,n)),this.addHook("modifyColWidth",(e,t)=>m(C,this,S).call(this,e,t),2),this.addHook("afterGetColHeader",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(C,e,_).call(e,...n)}),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(),n=this.isValidConfig(e);let r=t;const s=p(y,this).getValues().slice(),i=e.length>0;if(n&&i){const t=e.map(e=>this.hot.toPhysicalColumn(e));(0,a.arrayEach)(t,e=>{s[e]=!1}),r=(0,a.arrayReduce)(s,(e,t,n)=>(t&&e.push(this.hot.toVisualColumn(n)),e),[])}!1!==this.hot.runHooks("beforeUnhideColumns",t,r,n&&i)&&(n&&i&&p(y,this).setValues(s),this.hot.view.adjustElementsSize(),this.hot.runHooks("afterUnhideColumns",t,r,n&&i,n&&r.length<t.length))}showColumn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.showColumns(t)}hideColumns(e){const t=this.getHiddenColumns(),n=this.isValidConfig(e);let r=t;n&&(r=Array.from(new Set(t.concat(e))));!1!==this.hot.runHooks("beforeHideColumns",t,r,n)&&(n&&this.hot.batchExecution(()=>{(0,a.arrayEach)(e,e=>{p(y,this).setValueAtIndex(this.hot.toPhysicalColumn(e),!0)})},!0),this.hot.runHooks("afterHideColumns",t,r,n,n&&r.length>t.length))}hideColumn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];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,n){if(!1===this.getSetting("copyPasteEnabled")&&this.isHidden(t)&&(n.skipColumnOnPaste=!0),this.isHidden(t-1))n.className=n.className||"",-1===n.className.indexOf("afterHiddenColumn")&&(n.className+=" afterHiddenColumn");else if(n.className){const e=n.className.split(" ");if(e.length>0){const t=e.indexOf("afterHiddenColumn");t>-1&&e.splice(t,1),n.className=e.join(" ")}}}function T(e){if(this.getSetting("copyPasteEnabled"))return e;const t=[],n=(e,n,r,s)=>{t.push({startRow:e,endRow:n,startCol:r,endCol:s})};return(0,a.arrayEach)(e,e=>{let t=!0,r=0;(0,o.rangeEach)(e.startCol,e.endCol,s=>{this.isHidden(s)?(t||n(e.startRow,e.endRow,r,s-1),t=!0):(t&&(r=s),s===e.endCol&&n(e.startRow,e.endRow,r,s),t=!1)})}),t}function _(e,t){if(!this.getSetting("indicators")||e<0)return;const n=[];e>=1&&this.isHidden(e-1)&&n.push("afterHiddenColumn"),e<this.hot.countCols()-1&&this.isHidden(e+1)&&n.push("beforeHiddenColumn"),(0,i.addClass)(t,n)}function N(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},59262:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(68196);t.VALIDATOR_TYPE=r.VALIDATOR_TYPE,t.autocompleteValidator=r.autocompleteValidator},59317:(e,t,n)=>{"use strict";var r=n(13479);e.exports=function(e,t,n){for(var s=e.length-1;s>=0;s--)if(void 0!==e[s])try{n=r(e[s].iterator,t,n)}catch(e){t="throw",n=e}if("throw"===t)throw n;return n}},59766:(e,t)=>{"use strict";t.__esModule=!0,t.resolveWithInstance=function(e,t){var r;return null==n||null===(r=n.get(e.guid))||void 0===r?void 0:r.get(t)},t.staticRegister=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"common";n.has(e)||n.set(e,new Map);const t=n.get(e);return{register:function(e,n){t.set(e,n)},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(){n.delete(e),t.clear()}}};const n=t.collection=new Map},59830:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(66182);var s=r(n(81115)),i=n(72740),o=n(89090),a=n(37849),l=r(n(24285));class h{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,s.default)(this,"indexedValues",[]),(0,s.default)(this,"initValueOrFn",void 0),this.initValueOrFn=e}getValues(){return this.indexedValues}getValueAtIndex(e){const t=this.indexedValues;if(e<t.length)return t[e]}setValues(e){this.indexedValues=e.slice(),this.runLocalHooks("change")}setValueAtIndex(e,t){return e<this.indexedValues.length&&(this.indexedValues[e]=t,this.runLocalHooks("change"),!0)}clear(){this.setDefaultValues()}getLength(){return this.getValues().length}setDefaultValues(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.indexedValues.length=0,(0,a.isFunction)(this.initValueOrFn)?(0,i.rangeEach)(e-1,e=>this.indexedValues.push(this.initValueOrFn(e))):(0,i.rangeEach)(e-1,()=>this.indexedValues.push(this.initValueOrFn)),this.runLocalHooks("change")}init(e){return this.setDefaultValues(e),this.runLocalHooks("init"),this}insert(){this.runLocalHooks("change")}remove(){this.runLocalHooks("change")}destroy(){this.clearLocalHooks(),this.indexedValues=null,this.initValueOrFn=null}}t.IndexMap=h,(0,o.mixin)(h,l.default)},59839:(e,t,n)=>{"use strict";var r=n(27538),s=n(87681),i=n(69946),o=n(11127),a=n(88049);r({target:"Array",proto:!0},{at:function(e){var t=s(this),n=i(t),r=o(e),a=r>=0?r:n+r;return a<0||a>=n?void 0:t[a]}}),a("at")},59884:(e,t,n)=>{"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(r.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 r=n(20217),s=n(72740)},59899:(e,t,n)=>{"use strict";var r=n(19596),s=n(52270),i=r.document,o=s(i)&&s(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},59914:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"commentsRemove",name(){return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_REMOVE_COMMENT)},callback(){this.getSelectedRangeActive().forAll((t,n)=>{t>=0&&n>=0&&e.removeCommentAtCell(t,n,!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 r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217))},60036:()=>{},60225:(e,t,n)=>{"use strict";var r=n(27538),s=n(19596),i=n(91733).set,o=n(68060),a=s.setImmediate?o(i,!1):i;r({global:!0,bind:!0,enumerable:!0,forced:s.setImmediate!==a},{setImmediate:a})},60296:()=>{},60309:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(30229);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.AutoColumnSize=r.AutoColumnSize},60354:(e,t,n)=>{"use strict";n(47183)},60369:(e,t,n)=>{"use strict";var r=n(58719),s=n(19596),i=n(22381),o="__core-js_shared__",a=e.exports=s[o]||i(o,{});(a.versions||(a.versions=[])).push({version:"3.46.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE",source:"https://github.com/zloirock/core-js"})},60549:()=>{},60557:(e,t,n)=>{"use strict";t.__esModule=!0,t.baseRenderer=a,n(66182);var r=n(38942),s=n(14089);const i=t.RENDERER_TYPE="base",o="htTextEllipsis";function a(e,t,n,i,a,l,h){const u=h.ariaTags,c=[],d=[],g=[],p=[];h.className&&(0,r.addClass)(t,h.className),h.readOnly?(c.push(h.readOnlyCellClassName),u&&p.push((0,s.A11Y_READONLY)())):u&&g.push((0,s.A11Y_READONLY)()[0]),!1===h.valid&&h.invalidCellClassName?(c.push(h.invalidCellClassName),u&&p.push((0,s.A11Y_INVALID)())):(d.push(h.invalidCellClassName),u&&g.push((0,s.A11Y_INVALID)()[0])),!1===h.wordWrap&&h.noWordWrapClassName&&c.push(h.noWordWrapClassName),!l&&h.placeholder&&c.push(h.placeholderCellClassName),h.textEllipsis&&c.push(o),(0,r.removeClass)(t,d),(0,r.addClass)(t,c),(0,r.removeAttribute)(t,g),(0,r.setAttribute)(t,p)}a.RENDERER_TYPE=i},60664:()=>{},60698:()=>{},60702:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(86844);t.VALIDATOR_TYPE=r.VALIDATOR_TYPE,t.correctFormat=r.correctFormat,t.dateValidator=r.dateValidator},60765:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(59830),s=n(99799);class i extends r.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},60964:(e,t,n)=>{"use strict";t.__esModule=!0,t.numericValidator=i;var r=n(72740);const s=t.VALIDATOR_TYPE="numeric";function i(e,t){let n=e;null==n&&(n=""),this.allowEmpty&&""===n?t(!0):t(""!==n&&(0,r.isNumeric)(e))}i.VALIDATOR_TYPE=s},61050:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(25816));t.DataMap=s.default;var i=r(n(36741));t.MetaManager=i.default;var o=r(n(34067));t.metaSchemaFactory=o.default;var a=n(95190);t.replaceData=a.replaceData;var l=n(86415);t.DynamicCellMetaMod=l.DynamicCellMetaMod;var h=n(98327);t.ExtendMetaPropertiesMod=h.ExtendMetaPropertiesMod},61094:()=>{},61292:()=>{},61338:(e,t,n)=>{"use strict";var r=n(49510),s=n(91945);e.exports=function(e,t){var n=e[t];return s(n)?void 0:r(n)}},61635:(e,t,n)=>{"use strict";var r=n(8467),s=n(94988),i=n(93428),o=n(64649),a=n(16539),l=s([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?l(t,n(e)):t}},61767:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(36415)),i=r(n(35749)),o=r(n(48906)),a=n(89090),l=n(21596);class h extends s.default{constructor(e,t,n,r){super(e,t,n,r,l.CLONE_BOTTOM_INLINE_START_CORNER)}}(0,a.mixin)(h,i.default),(0,a.mixin)(h,o.default);t.default=h},61869:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(36415)),i=r(n(35749)),o=r(n(21617)),a=n(89090),l=n(21596);class h extends s.default{constructor(e,t,n,r){super(e,t,n,r,l.CLONE_BOTTOM)}}(0,a.mixin)(h,i.default),(0,a.mixin)(h,o.default);t.default=h},61989:(e,t,n)=>{"use strict";var r=n(53269),s=n(497);e.exports=function(e){var t=r(e,"string");return s(t)?t:t+""}},62007:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(10386);class s extends r.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},62081:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(r.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 r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217));const s=t.KEY="row_below"},62115:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182),n(81396),n(88633),n(19874);var s=r(n(81115)),i=n(30152),o=n(87544),a=n(9492);t.default=class{constructor(e,t){(0,s.default)(this,"plugin",void 0),(0,s.default)(this,"hot",void 0),(0,s.default)(this,"endpoints",[]),(0,s.default)(this,"settings",void 0),(0,s.default)(this,"settingsType","array"),(0,s.default)(this,"currentEndpoint",null),(0,s.default)(this,"cellsToSetCache",[]),this.plugin=e,this.hot=this.plugin.hot,this.settings=t}initEndpoints(){this.endpoints=this.parseSettings(),this.refreshAllEndpoints()}getEndpoint(e){return"function"===this.settingsType?this.fillMissingEndpointData(this.settings)[e]:this.endpoints[e]}getAllEndpoints(){return"function"===this.settingsType?this.fillMissingEndpointData(this.settings):this.endpoints}fillMissingEndpointData(e){return this.parseSettings(e.call(this))}parseSettings(e){const t=[];let n=e;if(n||"function"!=typeof this.settings)return n||(n=this.settings),(0,i.arrayEach)(n,e=>{const n={};this.assignSetting(e,n,"ranges",[[0,this.hot.countRows()-1]]),this.assignSetting(e,n,"reversedRowCoords",!1),this.assignSetting(e,n,"destinationRow",new Error("\n You must provide a destination row for the Column Summary plugin in order to work properly!\n ")),this.assignSetting(e,n,"destinationColumn",new Error("\n You must provide a destination column for the Column Summary plugin in order to work properly!\n ")),this.assignSetting(e,n,"sourceColumn",e.destinationColumn),this.assignSetting(e,n,"type","sum"),this.assignSetting(e,n,"forceNumeric",!1),this.assignSetting(e,n,"suppressDataTypeErrors",!0),this.assignSetting(e,n,"customFunction",null),this.assignSetting(e,n,"readOnly",!0),this.assignSetting(e,n,"roundFloat",!1),t.push(n)}),t;this.settingsType="function"}assignSetting(e,t,n,r){if("ranges"!==n||void 0!==e[n]){if("ranges"!==n||0!==e[n].length)if(void 0===e[n]){if(r instanceof Error)throw r;t[n]=r}else"destinationRow"===n&&t.reversedRowCoords?t[n]=this.hot.countRows()-e[n]-1:t[n]=e[n]}else t[n]=r}resetSetupBeforeStructureAlteration(e,t,n){if("function"!==this.settingsType)return;const r=e.indexOf("row")>-1?"row":"col",s=this.getAllEndpoints();(0,i.arrayEach)(s,s=>{"row"===r&&s.destinationRow>=t&&("insert_row"===e?s.alterRowOffset=n:"remove_row"===e&&(s.alterRowOffset=-1*n)),"col"===r&&s.destinationColumn>=t&&("insert_col"===e?s.alterColumnOffset=n:"remove_col"===e&&(s.alterColumnOffset=-1*n))}),this.resetAllEndpoints(s,!1)}resetSetupAfterStructureAlteration(e,t,n,r,s){let o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if("auto"===s)return;if("function"===this.settingsType){const e=()=>(this.hot.removeHook("beforeViewRender",e),this.refreshAllEndpoints());return void this.hot.addHookOnce("beforeViewRender",e)}const a=e.indexOf("row")>-1?"row":"col",l=e.indexOf("remove")>-1?-1:1,h=this.getAllEndpoints(),u=0===e.indexOf("move_row"),c=t;(0,i.arrayEach)(h,e=>{"row"===a&&e.destinationRow>=c&&(e.alterRowOffset=l*n),"col"===a&&e.destinationColumn>=c&&(e.alterColumnOffset=l*n)}),this.resetAllEndpoints(h,!u),u?(0,i.arrayEach)(h,e=>{this.extendEndpointRanges(e,c,r[0],r.length),this.recreatePhysicalRanges(e),this.clearOffsetInformation(e)}):(0,i.arrayEach)(h,e=>{this.shiftEndpointCoordinates(e,c)}),o&&this.refreshAllEndpoints()}clearOffsetInformation(e){e.alterRowOffset=void 0,e.alterColumnOffset=void 0}extendEndpointRanges(e,t,n,r){(0,i.arrayEach)(e.ranges,e=>{e[1]&&(t>=e[0]&&t<=e[1]?n>e[1]?e[1]+=r:n<e[0]&&(e[0]-=r):n>=e[0]&&n<=e[1]&&(e[1]-=r,t<=e[0]&&(e[0]+=1,e[1]+=1)))})}recreatePhysicalRanges(e){const t=e.ranges,n=[],r=[];(0,i.arrayEach)(t,e=>{const t=[];if(e[1])for(let n=e[0];n<=e[1];n++)t.push(this.hot.toPhysicalRow(n));else t.push(this.hot.toPhysicalRow(e[0]));r.push(t)}),(0,i.arrayEach)(r,e=>{let t=[];(0,i.arrayEach)(e,(r,s)=>{0===s?t.push(r):e[s]!==e[s-1]+1&&(t.push(e[s-1]),n.push(t),t=[],t.push(r)),s===e.length-1&&(t.push(r),n.push(t))})}),e.ranges=n}shiftEndpointCoordinates(e,t){e.alterRowOffset&&0!==e.alterRowOffset?(e.destinationRow+=e.alterRowOffset||0,(0,i.arrayEach)(e.ranges,n=>{(0,i.arrayEach)(n,(r,s)=>{r>=t&&(n[s]+=e.alterRowOffset||0)})})):e.alterColumnOffset&&0!==e.alterColumnOffset&&(e.destinationColumn+=e.alterColumnOffset||0,e.sourceColumn+=e.alterColumnOffset||0)}resetAllEndpoints(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getAllEndpoints(),t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.some(e=>{const t=e.alterRowOffset||0,n=e.alterColumnOffset||0;return e.destinationRow+t>=this.hot.countRows()||e.destinationColumn+n>=this.hot.countCols()})||(this.cellsToSetCache=[],(0,i.arrayEach)(e,e=>{this.resetEndpointValue(e,t)}),this.cellsToSetCache.length&&this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[])}refreshAllEndpoints(){this.cellsToSetCache=[],(0,i.arrayEach)(this.getAllEndpoints(),e=>{this.currentEndpoint=e,this.plugin.calculate(e),this.setEndpointValue(e,"init")}),this.currentEndpoint=null,this.cellsToSetCache.length&&this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}refreshChangedEndpoints(e){const t=[];this.cellsToSetCache=[],(0,i.arrayEach)(e,(e,n,r)=>{`${e[2]||""}`!=`${e[3]}`&&(0,i.arrayEach)(this.getAllEndpoints(),(e,s)=>{this.hot.propToCol(r[n][1])===e.sourceColumn&&-1===t.indexOf(s)&&t.push(s)})}),(0,i.arrayEach)(t,e=>{this.refreshEndpoint(this.getEndpoint(e))}),this.cellsToSetCache.length&&this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}refreshCellMetas(){this.endpoints.forEach(e=>{const t=this.hot.toVisualRow(e.destinationRow);if(null!==t){const n=this.hot.getCellMeta(t,e.destinationColumn);n.readOnly=e.readOnly,n.className="columnSummaryResult"}})}refreshEndpoint(e){this.currentEndpoint=e,this.plugin.calculate(e),this.setEndpointValue(e),this.currentEndpoint=null}resetEndpointValue(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=e.alterRowOffset||0,r=e.alterColumnOffset||0;this.cellsToSetCache.push([this.hot.toVisualRow(e.destinationRow+(t?n:0)),this.hot.toVisualColumn(e.destinationColumn+(t?r:0)),""])}setEndpointValue(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=this.hot.toVisualRow(e.destinationRow);if(e.destinationRow>=this.hot.countRows()||e.destinationColumn>=this.hot.countCols())return void this.throwOutOfBoundsWarning();const s=this.hot.toVisualRow(e.destinationRow);if(null!==s){const n=this.hot.getCellMeta(s,e.destinationColumn);"init"!==t&&n.readOnly===e.readOnly||(n.readOnly=e.readOnly,n.className="columnSummaryResult")}e.result=(0,a.roundFloat)(e.result,e.roundFloat),n?this.hot.setDataAtCell(r,e.destinationColumn,e.result,"ColumnSummary.set"):this.cellsToSetCache.push([r,e.destinationColumn,e.result]),e.alterRowOffset=void 0,e.alterColumnOffset=void 0}throwOutOfBoundsWarning(){(0,o.warn)("One of the Column Summary plugins' destination points you provided is beyond the table boundaries!")}}},62243:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182),n(4114),n(78822),n(86192),n(80729),n(99888),n(12767),n(78644),n(97550),n(81396),n(39691),n(88633),n(14618);var s=r(n(81115)),i=n(57440),o=n(59766),a=n(87544),l=n(72740),h=n(89090),u=n(54342),c=n(56288),d=n(64247),g=n(39500),p=n(51053),f=n(16656),m=n(92164),E=r(n(78061));function w(e,t,n){y(e,t),t.set(e,n)}function y(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function C(e,t,n){return e.set(S(e,t),n),n}function v(e,t){return e.get(S(e,t))}function S(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const R=t.PLUGIN_KEY="formulas",T=t.SETTING_KEYS=["maxRows","maxColumns","language"],_=t.PLUGIN_PRIORITY=260;m.Hooks.getSingleton().register("afterNamedExpressionAdded"),m.Hooks.getSingleton().register("afterNamedExpressionRemoved"),m.Hooks.getSingleton().register("afterSheetAdded"),m.Hooks.getSingleton().register("afterSheetRemoved"),m.Hooks.getSingleton().register("afterSheetRenamed"),m.Hooks.getSingleton().register("afterFormulasValuesUpdate");const N=e=>"UndoRedo.undo"===e||"UndoRedo.redo"===e||"auto"===e;var A=new WeakMap,b=new WeakMap,M=new WeakMap,I=new WeakSet;class O extends i.BasePlugin{constructor(){var e,t,n;super(...arguments),e=this,y(t=this,n=I),n.add(t),w(this,A,!1),w(this,b,!1),w(this,M,[["valuesUpdated",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return S(I,e,J).call(e,...n)}],["namedExpressionAdded",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return S(I,e,ee).call(e,...n)}],["namedExpressionRemoved",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return S(I,e,te).call(e,...n)}],["sheetAdded",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return S(I,e,ne).call(e,...n)}],["sheetRenamed",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return S(I,e,re).call(e,...n)}],["sheetRemoved",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return S(I,e,se).call(e,...n)}]]),(0,s.default)(this,"staticRegister",(0,o.staticRegister)("formulas")),(0,s.default)(this,"engine",null),(0,s.default)(this,"sheetId",null),(0,s.default)(this,"sheetName",null),(0,s.default)(this,"indexSyncer",null),(0,s.default)(this,"rowAxisSyncer",null),(0,s.default)(this,"columnAxisSyncer",null)}static get PLUGIN_KEY(){return R}static get PLUGIN_PRIORITY(){return _}static get SETTING_KEYS(){return[R,...T]}isEnabled(){return!!this.hot.getSettings()[R]}enablePlugin(){var e,t=this;if(!this.enabled)if(this.engine=null!==(e=(0,c.setupEngine)(this.hot))&&void 0!==e?e:this.engine,this.engine){if(null!==this.sheetName&&!this.engine.doesSheetExist(this.sheetName)){const e=this.addSheet(this.sheetName,S(I,this,L).call(this));!1!==e&&S(I,this,x).call(this,e)}this.addHook("beforeLoadData",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,H).call(t,...n)}),this.addHook("afterLoadData",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,U).call(t,...n)}),this.addHook("beforeUpdateData",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,H).call(t,...n)}),this.addHook("afterUpdateData",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,U).call(t,...n)}),this.addHook("modifyData",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,V).call(t,...n)}),this.addHook("modifySourceData",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,B).call(t,...n)}),this.addHook("beforeValidate",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,D).call(t,...n)}),this.addHook("afterSetSourceDataAtCell",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,Y).call(t,...n)}),this.addHook("afterSetDataAtCell",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,W).call(t,...n)}),this.addHook("afterSetDataAtRowProp",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,W).call(t,...n)}),this.addHook("beforeCreateRow",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,G).call(t,...n)}),this.addHook("beforeCreateCol",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,j).call(t,...n)}),this.addHook("afterCreateRow",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,K).call(t,...n)}),this.addHook("afterCreateCol",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,X).call(t,...n)}),this.addHook("beforeRemoveRow",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,z).call(t,...n)}),this.addHook("beforeRemoveCol",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,$).call(t,...n)}),this.addHook("afterRemoveRow",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,q).call(t,...n)}),this.addHook("afterRemoveCol",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,Q).call(t,...n)}),this.indexSyncer=new E.default(this.hot.rowIndexMapper,this.hot.columnIndexMapper,e=>{this.hot.addHookOnce("init",()=>{e()})}),this.rowAxisSyncer=this.indexSyncer.getForAxis("row"),this.columnAxisSyncer=this.indexSyncer.getForAxis("column"),this.hot.addHook("afterRowSequenceChange",this.rowAxisSyncer.getIndexesChangeSyncMethod()),this.hot.addHook("afterColumnSequenceChange",this.columnAxisSyncer.getIndexesChangeSyncMethod()),this.hot.addHook("beforeRowMove",(e,t,n,r)=>{this.rowAxisSyncer.storeMovesInformation(e,t,r)}),this.hot.addHook("beforeColumnMove",(e,t,n,r)=>{this.columnAxisSyncer.storeMovesInformation(e,t,r)}),this.hot.addHook("afterRowMove",(e,t,n,r,s)=>{this.rowAxisSyncer.calculateAndSyncMoves(r,s)}),this.hot.addHook("afterColumnMove",(e,t,n,r,s)=>{this.columnAxisSyncer.calculateAndSyncMoves(r,s)}),this.hot.addHook("beforeColumnFreeze",(e,t)=>{this.columnAxisSyncer.storeMovesInformation([e],this.hot.getSettings().fixedColumnsStart,t)}),this.hot.addHook("afterColumnFreeze",(e,t)=>{this.columnAxisSyncer.calculateAndSyncMoves(t,t)}),this.hot.addHook("beforeColumnUnfreeze",(e,t)=>{this.columnAxisSyncer.storeMovesInformation([e],this.hot.getSettings().fixedColumnsStart-1,t)}),this.hot.addHook("afterColumnUnfreeze",(e,t)=>{this.columnAxisSyncer.calculateAndSyncMoves(t,t)}),this.addHook("afterCellMetaReset",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,F).call(t,...n)}),this.addHook("beforeUndo",()=>{this.indexSyncer.setPerformUndo(!0),this.engine.undo()}),this.addHook("beforeRedo",()=>{this.indexSyncer.setPerformRedo(!0),this.engine.redo()}),this.addHook("afterUndo",()=>{this.indexSyncer.setPerformUndo(!1)}),this.addHook("afterUndo",()=>{this.indexSyncer.setPerformRedo(!1)}),this.addHook("afterDetachChild",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,Z).call(t,...n)}),this.addHook("beforeAutofill",function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return S(I,t,k).call(t,...n)}),v(M,this).forEach(e=>{let[t,n]=e;return this.engine.on(t,n)}),super.enablePlugin()}else(0,a.warn)("Missing the required `engine` key in the Formulas settings. Please fill it with either an engine class or an engine instance.")}disablePlugin(){v(M,this).forEach(e=>{let[t,n]=e;return this.engine.off(t,n)}),(0,c.unregisterEngine)(this.engine,this.hot),this.engine=null,super.disablePlugin()}updatePlugin(e){const t=(0,g.getEngineSettingsWithOverrides)(this.hot.getSettings());(0,g.haveEngineSettingsChanged)(this.engine.getConfig(),t)&&this.engine.updateConfig(t);const n=this.hot.getSettings()[R];if((0,u.isDefined)(n)&&(0,u.isDefined)(n.sheetName)&&n.sheetName!==this.sheetName&&this.switchSheet(n.sheetName),!e.data&&null===this.sheetName){const e=this.hot.getSettings()[R].sheetName;if(e&&this.engine.doesSheetExist(e))this.switchSheet(this.sheetName);else{const t=this.addSheet(null!=e?e:void 0,S(I,this,L).call(this));S(I,this,x).call(this,t)}}super.updatePlugin(e)}destroy(){v(M,this).forEach(e=>{var t;let[n,r]=e;return null===(t=this.engine)||void 0===t?void 0:t.off(n,r)}),C(M,this,null),(0,c.unregisterEngine)(this.engine,this.hot),this.engine=null,super.destroy()}addSheet(e,t){if((0,u.isDefined)(t)&&!(0,p.isArrayOfArrays)(t))return(0,a.warn)("The provided data should be an array of arrays."),!1;if(null!=e&&this.engine.doesSheetExist(e))return(0,a.warn)("Sheet with the provided name already exists."),!1;try{const n=this.engine.addSheet(null!=e?e:void 0);return t&&this.engine.setSheetContent(this.engine.getSheetId(n),t),n}catch(e){return(0,a.warn)(e.message),!1}}switchSheet(e){if(!this.engine.doesSheetExist(e))return void(0,a.error)(`The sheet named \`${e}\` does not exist, switch aborted.`);S(I,this,x).call(this,e);const t=this.engine.getSheetSerialized(this.sheetId);t.length>0&&this.hot.loadData(t,`${(0,f.toUpperCaseFirst)(R)}.switchSheet`)}getCellType(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.sheetId;const r=this.hot.toPhysicalRow(e),s=this.hot.toPhysicalColumn(t);return null!==r&&null!==s?this.engine.getCellType({sheet:n,row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t)}):"EMPTY"}isFormulaCellType(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.sheetId;return this.engine.doesCellHaveFormula({sheet:n,row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t)})}renderDependentSheets(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=new Set;e.forEach(e=>{var t;const r=null==e||null===(t=e.address)||void 0===t?void 0:t.sheet;void 0!==r&&(n.has(r)||n.add(r))}),(0,c.getRegisteredHotInstances)(this.engine).forEach((e,r)=>{var s;(t||r!==this.sheetId)&&n.has(r)&&(e.render(),null===(s=e.view)||void 0===s||s.adjustElementsSize())})}validateDependentCells(e){const t=e=>{var t;const{row:n,col:r,sheet:s}=null!==(t=null==e?void 0:e.address)&&void 0!==t?t:{};return(0,u.isDefined)(s)?`${s}:${n}x${r}`:""},n=new Set((arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).map(e=>t(e)));e.forEach(e=>{var r,s;const{row:i,col:o}=null!==(r=e.address)&&void 0!==r?r:{};if(!1===(0,u.isDefined)(i)||!1===(0,u.isDefined)(o)||i>=this.hot.countRows()||o>=this.hot.countCols())return;const a=null==e||null===(s=e.address)||void 0===s?void 0:s.sheet,l=t(e);if(void 0!==a&&!n.has(l)){const e=(0,c.getRegisteredHotInstances)(this.engine).get(a);if(!e)return;e.validateCell(e.getDataAtCell(i,o),e.getCellMeta(i,o),()=>{})}})}syncChangeWithEngine(e,t,n){const r={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t),sheet:this.sheetId};if(!this.engine.isItPossibleToSetCellContents(r))return void(0,a.warn)(`Not possible to set cell data at ${JSON.stringify(r)}`);const s=this.hot.getCellMeta(e,t);return(0,d.isDate)(n,s.type)&&((0,d.isDateValid)(n,s.dateFormat)?n=(0,d.getDateInHfFormat)(n,s.dateFormat):!1===(0,d.isFormula)(n)&&(n=`'${n}`)),this.engine.setCellContents(r,n)}}function x(e){this.sheetName=e,this.sheetId=this.engine.getSheetId(this.sheetName)}function P(e,t,n){if((0,h.isObject)(n)&&null!==n){const r=this.hot.toVisualRow(e),s=this.hot.toVisualColumn(t),i=this.hot.getCellMeta(r,s).valueGetter;return i?i.call(this.hot,n):n.toString()}return n}function L(e,t,n,r){return this.hot.getSourceDataArray(e,t,n,r).map((e,t)=>e.map((e,n)=>S(I,this,P).call(this,t,n,e)))}function D(e,t,n){const r=this.hot.propToCol(n);if(this.isFormulaCellType(t,r)){const e={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(r),sheet:this.sheetId},n=this.hot.getCellMeta(t,r);let s=this.engine.getCellValue(e);return"date"===n.type&&(0,l.isNumeric)(s)&&(s=(0,d.getDateFromExcelDate)(s,n.dateFormat)),"object"==typeof s&&null!==s?s.value:s}return e}function k(e,t,n){const{row:r,col:s}=t.getTopStartCorner(),{row:i,col:o}=t.getBottomEndCorner(),{row:a,col:l}=n.getTopStartCorner(),{row:h,col:u}=n.getBottomEndCorner(),c={start:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(r),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(s),sheet:this.sheetId},end:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(i),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(o),sheet:this.sheetId}},g={start:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(a),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(l),sheet:this.sheetId},end:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(h),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(u),sheet:this.sheetId}};if(!1===this.engine.isItPossibleToSetCellContents(g))return!1;const p=this.engine.getFillRangeData(c,g),{row:f,col:m}=c.start,{row:E,col:w}=c.end,y=E-f+1,C=w-m+1;for(let e=0;e<p.length;e+=1)for(let t=0;t<p[e].length;t+=1){const n=p[e][t],r=f+e%y,s=m+t%C,i=this.hot.getCellMeta(r,s);(0,d.isDate)(n,i.type)&&(n.startsWith("'")?p[e][t]=n.slice(1):!1===this.isFormulaCellType(r,s,this.sheetId)&&(p[e][t]=(0,d.getDateInHotFormat)(n,i.dateFormat)))}return p}function H(e,t){(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"").includes((0,f.toUpperCaseFirst)(R))||C(b,this,(0,u.isUndefined)(this.hot.getSettings().data))}function F(){if(v(b,this))return void this.switchSheet(this.sheetName);const e=S(I,this,L).call(this);e.forEach((t,n)=>{t.forEach((t,r)=>{const s=this.hot.getCellMeta(n,r,{skipMetaExtension:!0}),i=s.dateFormat;(0,d.isDate)(t,s.type)&&((0,d.isDateValid)(t,i)?e[n][r]=(0,d.getDateInHfFormat)(t,i):t.startsWith("=")||(e[n][r]=`'${t}`))})}),C(A,this,!0);const t=this.engine.setSheetContent(this.sheetId,e);this.indexSyncer.setupSyncEndpoint(this.engine,this.sheetId),this.renderDependentSheets(t),C(A,this,!1)}function U(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(n.includes((0,f.toUpperCaseFirst)(R)))return;const r=(0,c.setupSheet)(this.engine,this.hot.getSettings()[R].sheetName);if(S(I,this,x).call(this,r),"updateSettings"!==n)if(v(b,this))this.switchSheet(this.sheetName);else{const e=S(I,this,L).call(this);if(this.engine.isItPossibleToReplaceSheetContent(this.sheetId,e)){C(A,this,!0);const t=this.engine.setSheetContent(this.sheetId,e);this.indexSyncer.setupSyncEndpoint(this.engine,this.sheetId),this.renderDependentSheets(t),C(A,this,!1)}}}function V(e,t,n,r){if("get"!==r||v(A,this)||null===this.sheetName||!this.engine.doesSheetExist(this.sheetName))return;if(null===e||null===t)return;const s=this.getCellType(e,t);if("VALUE"===s||"EMPTY"===s)return void(n.value=(0,d.unescapeFormulaExpression)(n.value));const i={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t),sheet:this.sheetId};let o=this.engine.getCellValue(i);const a=this.hot.getCellMeta(e,t,{skipMetaExtension:!0});"date"===a.type&&(0,l.isNumeric)(o)&&(o=(0,d.getDateFromExcelDate)(o,a.dateFormat)),n.value="object"==typeof o&&null!==o?o.value:o}function B(e,t,n,r){if("get"!==r||v(A,this)||null===this.sheetName||!this.engine.doesSheetExist(this.sheetName))return;const s=this.hot.toVisualRow(e),i=this.hot.propToCol(t);if(null===s||null===i)return;const o=this.getCellType(s,i);if("VALUE"===o||"EMPTY"===o)return;const a=this.engine.getSheetDimensions(this.engine.getSheetId(this.sheetName));if(0===a.width&&0===a.height)return;const l={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(s),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(i),sheet:this.sheetId};n.value=this.engine.getCellSerialized(l)}function W(e,t){if(N(t))return;const n=[],r=[],s=this.engine.batch(()=>{e.forEach(e=>{let[t,s,,i]=e;const o=this.hot.propToCol(s),a=this.hot.toPhysicalRow(t),l=this.hot.toPhysicalColumn(o),h={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(o),sheet:this.sheetId};i=S(I,this,P).call(this,a,l,i),null!==a&&null!==l?this.syncChangeWithEngine(t,o,i):n.push([t,o,i]),r.push({address:h})})});n.length&&this.hot.addHookOnce("afterChange",()=>{const e=this.engine.batch(()=>{n.forEach(e=>{let[t,n,r]=e;this.syncChangeWithEngine(t,n,r)})});this.renderDependentSheets(e,!0)}),this.renderDependentSheets(s),this.validateDependentCells(s,r)}function Y(e,t){if(N(t))return;const n=[],r=[];e.forEach(e=>{let[t,s,,i]=e;const o=this.hot.propToCol(s);if(!(0,l.isNumeric)(o))return;const h={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(o),sheet:this.sheetId};this.engine.isItPossibleToSetCellContents(h)?(r.push({address:h}),n.push(...this.engine.setCellContents(h,i))):(0,a.warn)(`Not possible to set source cell data at ${JSON.stringify(h)}`)}),this.renderDependentSheets(n),this.validateDependentCells(n,r)}function G(e,t){let n=this.rowAxisSyncer.getHfIndexFromVisualIndex(e);if(e>=this.hot.countRows()&&(n=e),null===this.sheetId||!this.engine.doesSheetExist(this.sheetName)||!this.engine.isItPossibleToAddRows(this.sheetId,[n,t]))return!1}function j(e,t){let n=this.columnAxisSyncer.getHfIndexFromVisualIndex(e);if(e>=this.hot.countCols()&&(n=e),null===this.sheetId||!this.engine.doesSheetExist(this.sheetName)||!this.engine.isItPossibleToAddColumns(this.sheetId,[n,t]))return!1}function z(e,t,n){return!1!==this.rowAxisSyncer.setRemovedHfIndexes(n).every(e=>this.engine.isItPossibleToRemoveRows(this.sheetId,[e,1]))&&void 0}function $(e,t,n){return!1!==this.columnAxisSyncer.setRemovedHfIndexes(n).every(e=>this.engine.isItPossibleToRemoveColumns(this.sheetId,[e,1]))&&void 0}function K(e,t,n){if(N(n))return;const r=this.engine.addRows(this.sheetId,[this.rowAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(r)}function X(e,t,n){if(N(n))return;const r=this.engine.addColumns(this.sheetId,[this.columnAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(r)}function q(e,t,n,r){if(N(r))return;const s=this.rowAxisSyncer.getRemovedHfIndexes().sort((e,t)=>t-e),i=this.engine.batch(()=>{s.forEach(e=>{this.engine.removeRows(this.sheetId,[e,1])})});this.renderDependentSheets(i)}function Q(e,t,n,r){if(N(r))return;const s=this.columnAxisSyncer.getRemovedHfIndexes().sort((e,t)=>t-e),i=this.engine.batch(()=>{s.forEach(e=>{this.engine.removeColumns(this.sheetId,[e,1])})});this.renderDependentSheets(i)}function Z(e,t,n){var r;C(A,this,!0);const s=S(I,this,L).call(this,n,0,n+((null===(r=t.__children)||void 0===r?void 0:r.length)||0),this.hot.countSourceCols());C(A,this,!1),s.forEach((e,t)=>{e.forEach((e,r)=>{this.engine.setCellContents({col:r,row:n+t,sheet:this.sheetId},[[e]])})})}function J(e){this.hot.runHooks("afterFormulasValuesUpdate",e)}function ee(e,t){this.hot.runHooks("afterNamedExpressionAdded",e,t)}function te(e,t){this.hot.runHooks("afterNamedExpressionRemoved",e,t)}function ne(e){this.hot.runHooks("afterSheetAdded",e)}function re(e,t){S(I,this,x).call(this,t),this.hot.runHooks("afterSheetRenamed",e,t)}function se(e,t){this.hot.runHooks("afterSheetRemoved",e,t)}t.Formulas=O},62487:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588);var s=r(n(81115)),i=n(57440),o=r(n(20083)),a=r(n(98032));function l(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}const h=t.PLUGIN_KEY="bindRowsWithHeaders",u=t.PLUGIN_PRIORITY=210,c=new Map([["loose",o.default],["strict",a.default]]);var d=new WeakSet;class g extends i.BasePlugin{constructor(){super(...arguments),l(this,d),(0,s.default)(this,"headerIndexes",null)}static get PLUGIN_KEY(){return h}static get PLUGIN_PRIORITY(){return u}isEnabled(){return!!this.hot.getSettings()[h]}enablePlugin(){var e;if(this.enabled)return;const t=null!==(e=c.get(this.getSetting()))&&void 0!==e?e:c.get("loose");this.headerIndexes=this.hot.rowIndexMapper.registerMap("bindRowsWithHeaders",new t),this.addHook("modifyRowHeader",e=>function(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}(d,this,p).call(this,e)),super.enablePlugin()}disablePlugin(){this.hot.rowIndexMapper.unregisterMap("bindRowsWithHeaders"),super.disablePlugin()}destroy(){super.destroy()}}function p(e){return this.headerIndexes.getValueAtIndex(this.hot.toPhysicalRow(e))}t.BindRowsWithHeaders=g},62601:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(95605);const s=t.EDITOR_TYPE="numeric";class i extends r.TextEditor{static get EDITOR_TYPE(){return s}}t.NumericEditor=i},62963:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(66182);var s=r(n(81115)),i=n(38942),o=n(16656),a=r(n(90308)),l=r(n(69550)),h=r(n(82860)),u=r(n(35845));t.default=class{get eventManager(){return new a.default(this)}constructor(e,t){(0,s.default)(this,"wtTable",void 0),(0,s.default)(this,"wtScroll",void 0),(0,s.default)(this,"wtViewport",void 0),(0,s.default)(this,"wtOverlays",void 0),(0,s.default)(this,"selectionManager",void 0),(0,s.default)(this,"wtEvent",void 0),(0,s.default)(this,"guid",`wt_${(0,o.randomString)()}`),(0,s.default)(this,"drawInterrupted",!1),(0,s.default)(this,"drawn",!1),(0,s.default)(this,"activeOverlayName","master"),(0,s.default)(this,"domBindings",void 0),(0,s.default)(this,"wtSettings",void 0),this.domBindings={rootTable:e,rootDocument:e.ownerDocument,rootWindow:e.ownerDocument.defaultView},this.wtSettings=t,this.wtScroll=new l.default(this.createScrollDao())}findOriginalHeaders(){const e=[];if(this.wtTable.THEAD.childNodes.length&&this.wtTable.THEAD.childNodes[0].childNodes.length){for(let t=0,n=this.wtTable.THEAD.childNodes[0].childNodes.length;t<n;t++)e.push(this.wtTable.THEAD.childNodes[0].childNodes[t].innerHTML);this.wtSettings.getSetting("columnHeaders").length||this.wtSettings.update("columnHeaders",[function(t,n){(0,i.fastInnerText)(n,e[t])}])}}createCellCoords(e,t){return new h.default(e,t,this.wtSettings.getSetting("rtlMode"))}createCellRange(e,t,n){return new u.default(e,t,n,this.wtSettings.getSetting("rtlMode"))}draw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.drawInterrupted=!1,!this.wtTable.isVisible()||(0,i.hasZeroHeight)(this.wtTable.wtRootElement.parentNode)?this.drawInterrupted=!0:this.wtTable.draw(e),this}getCell(e){if(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))return this.wtTable.getCell(e);const t=this.wtSettings.getSetting("totalRows"),n=this.wtSettings.getSetting("fixedRowsTop"),r=this.wtSettings.getSetting("fixedRowsBottom"),s=this.wtSettings.getSetting("fixedColumnsStart");if(e.row<n&&e.col<s)return this.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.getCell(e);if(e.row<n)return this.wtOverlays.topOverlay.clone.wtTable.getCell(e);if(e.col<s&&e.row>=t-r){if(this.wtOverlays.bottomInlineStartCornerOverlay&&this.wtOverlays.bottomInlineStartCornerOverlay.clone)return this.wtOverlays.bottomInlineStartCornerOverlay.clone.wtTable.getCell(e)}else{if(e.col<s)return this.wtOverlays.inlineStartOverlay.clone.wtTable.getCell(e);if(e.row<t&&e.row>=t-r&&this.wtOverlays.bottomOverlay&&this.wtOverlays.bottomOverlay.clone)return this.wtOverlays.bottomOverlay.clone.wtTable.getCell(e)}return this.wtTable.getCell(e)}scrollViewport(e,t,n){return this.wtScroll.scrollViewport(e,t,n)}scrollViewportHorizontally(e,t){return this.wtScroll.scrollViewportHorizontally(e,t)}scrollViewportVertically(e,t){return this.wtScroll.scrollViewportVertically(e,t)}getViewport(){return[this.wtTable.getFirstVisibleRow(),this.wtTable.getFirstVisibleColumn(),this.wtTable.getLastVisibleRow(),this.wtTable.getLastVisibleColumn()]}destroy(){this.wtOverlays.destroy(),this.wtEvent.destroy()}createScrollDao(){const e=this;return{get drawn(){return e.drawn},get topOverlay(){return e.wtOverlays.topOverlay},get inlineStartOverlay(){return e.wtOverlays.inlineStartOverlay},get wtTable(){return e.wtTable},get wtViewport(){return e.wtViewport},get wtSettings(){return e.wtSettings},get rootWindow(){return e.domBindings.rootWindow},get totalRows(){return e.wtSettings.getSetting("totalRows")},get totalColumns(){return e.wtSettings.getSetting("totalColumns")},get fixedRowsTop(){return e.wtSettings.getSetting("fixedRowsTop")},get fixedRowsBottom(){return e.wtSettings.getSetting("fixedRowsBottom")},get fixedColumnsStart(){return e.wtSettings.getSetting("fixedColumnsStart")}}}getTableDao(){const e=this;return{get wot(){return e},get parentTableOffset(){return e.cloneSource.wtTable.tableOffset},get cloneSource(){return e.cloneSource},get workspaceWidth(){return e.wtViewport.getWorkspaceWidth()},get wtViewport(){return e.wtViewport},get wtOverlays(){return e.wtOverlays},get selectionManager(){return e.selectionManager},get drawn(){return e.drawn},set drawn(t){e.drawn=t},get wtTable(){return e.wtTable},get startColumnRendered(){return e.wtViewport.columnsRenderCalculator.startColumn},get startColumnVisible(){return e.wtViewport.columnsVisibleCalculator.startColumn},get startColumnPartiallyVisible(){return e.wtViewport.columnsPartiallyVisibleCalculator.startColumn},get endColumnRendered(){return e.wtViewport.columnsRenderCalculator.endColumn},get endColumnVisible(){return e.wtViewport.columnsVisibleCalculator.endColumn},get endColumnPartiallyVisible(){return e.wtViewport.columnsPartiallyVisibleCalculator.endColumn},get countColumnsRendered(){return e.wtViewport.columnsRenderCalculator.count},get countColumnsVisible(){return e.wtViewport.columnsVisibleCalculator.count},get startRowRendered(){return e.wtViewport.rowsRenderCalculator.startRow},get startRowVisible(){return e.wtViewport.rowsVisibleCalculator.startRow},get startRowPartiallyVisible(){return e.wtViewport.rowsPartiallyVisibleCalculator.startRow},get endRowRendered(){return e.wtViewport.rowsRenderCalculator.endRow},get endRowVisible(){return e.wtViewport.rowsVisibleCalculator.endRow},get endRowPartiallyVisible(){return e.wtViewport.rowsPartiallyVisibleCalculator.endRow},get countRowsRendered(){return e.wtViewport.rowsRenderCalculator.count},get countRowsVisible(){return e.wtViewport.rowsVisibleCalculator.count},get columnHeaders(){return e.wtSettings.getSetting("columnHeaders")},get rowHeaders(){return e.wtSettings.getSetting("rowHeaders")}}}}},63453:()=>{},63529:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182),n(37637),n(81396),n(39691),n(81124),n(82101),n(14618),n(39716);var s=r(n(81115)),i=n(76847),o=n(30152),a=n(89090),l=n(38942),h=n(54342),u=n(16656),c=n(21510),d=n(40041),g=n(14089),p=n(37849);function f(e,t,n){m(e,t),t.set(e,n)}function m(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function E(e,t){return e.get(w(e,t))}function w(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const y=t.EDITOR_TYPE="autocomplete";var C=new WeakMap,v=new WeakMap,S=new WeakSet;class R extends i.HandsontableEditor{constructor(){var e,t;super(...arguments),m(e=this,t=S),t.add(e),(0,s.default)(this,"query",null),(0,s.default)(this,"strippedChoices",[]),(0,s.default)(this,"rawChoices",[]),f(this,C,this.hot.guid.slice(0,9)),f(this,v,(0,p.debounce)(()=>{this.focus()},100))}static get EDITOR_TYPE(){return y}getValue(){const e=this.rawChoices.find(e=>{const t=this.stripValueIfNeeded(e);return(w(S,this,_).call(this,t)?t.value:t)===this.TEXTAREA.value});return(0,h.isDefined)(e)?e:this.TEXTAREA.value}createElements(){super.createElements(),(0,l.addClass)(this.htContainer,"autocompleteEditor"),(0,l.addClass)(this.htContainer,-1===this.hot.rootWindow.navigator.platform.indexOf("Mac")?"":"htMacScroll"),this.hot.getSettings().ariaTags&&(0,l.setAttribute)(this.TEXTAREA,[(0,g.A11Y_TEXT)(),(0,g.A11Y_COMBOBOX)(),(0,g.A11Y_HASPOPUP)("listbox"),(0,g.A11Y_AUTOCOMPLETE)()])}prepare(e,t,n,r,s,i){super.prepare(e,t,n,r,s,i),this.hot.getSettings().ariaTags&&(0,l.setAttribute)(this.TEXTAREA,[(0,g.A11Y_EXPANDED)("false"),(0,g.A11Y_CONTROLS)(`${E(C,this)}-listbox-${e}-${t}`)]),this.htOptions={...this.htOptions,valueGetter:e=>w(S,this,_).call(this,e)?e.value:e}}open(){super.open();const e=void 0===this.cellProperties.trimDropdown||this.cellProperties.trimDropdown,t=this.hot.getSettings().ariaTags,n=Array.isArray(this.cellProperties.source)?this.cellProperties.source:null,r=null==n?void 0:n.length,{row:s,col:i}=this;this.showEditableElement(),this.focus(),this.addHook("beforeKeyDown",e=>this.onBeforeKeyDown(e)),this.htEditor.addHook("afterScroll",E(v,this)),this.htEditor.updateSettings({colWidths:e?[(0,l.outerWidth)(this.TEXTAREA)-2]:void 0,autoColumnSize:!0,renderer:(e,s,i,o,a,u,c)=>{(0,d.textRenderer)(e,s,i,o,a,u,c);const{filteringCaseSensitive:p,allowHtml:f,locale:m}=this.cellProperties,E=this.query;let w,y,C=(0,h.stringify)(u);C&&!f&&(w=!0===p?C.indexOf(E):C.toLocaleLowerCase(m).indexOf(E.toLocaleLowerCase(m)),-1!==w&&(y=C.substr(w,E.length),C=C.replace(y,`<strong>${y}</strong>`))),t&&(0,l.setAttribute)(s,[(0,g.A11Y_OPTION)(),...n?[(0,g.A11Y_SETSIZE)(r)]:[],...n?[(0,g.A11Y_POSINSET)(n.indexOf(u)+1)]:[],["id",`${this.htEditor.rootElement.id}_${i}-${o}`]]),s.innerHTML=C},afterSelectionEnd:(e,n)=>{if(t){const t=e=>{(0,l.setAttribute)(e,[(0,g.A11Y_SELECTED)()]),(0,l.setAttribute)(this.TEXTAREA,...(0,g.A11Y_ACTIVEDESCENDANT)(e.id))},r=this.htEditor.getCell(e,n,!0);null!==r?t(r):this.htEditor.addHookOnce("afterScrollVertically",()=>{const r=this.htEditor.getCell(e,n,!0);t(r)})}}}),t&&((0,l.setAttribute)(this.htEditor.view._wt.wtOverlays.wtTable.TABLE,...(0,g.A11Y_PRESENTATION)()),(0,l.setAttribute)(this.htEditor.rootElement,[(0,g.A11Y_LISTBOX)(),(0,g.A11Y_LIVE)("polite"),(0,g.A11Y_RELEVANT)("text"),["id",`${E(C,this)}-listbox-${s}-${i}`]]),(0,l.setAttribute)(this.TEXTAREA,...(0,g.A11Y_EXPANDED)("true"))),this.hot._registerTimeout(()=>{this.queryChoices(this.TEXTAREA.value)})}close(){this.removeHooksByKey("beforeKeyDown"),super.close(),this.hot.getSettings().ariaTags&&(0,l.setAttribute)(this.TEXTAREA,[(0,g.A11Y_EXPANDED)("false")])}discardEditor(e){super.discardEditor(e),this.hot.view.render()}finishEditing(e,t,n){if(this.isOpened()){const t=this.hot.getSelectedRangeActive();((0,h.isUndefined)(t)||(0,h.isDefined)(t)&&!t.includes(this.hot._createCellCoords(this.row,this.col)))&&(e=!0)}super.finishEditing(e,t,n)}queryChoices(e){const t=this.cellProperties.source;this.query=e,"function"==typeof t?t.call(this.cellProperties,e,e=>{this.rawChoices=e,this.updateChoicesList(this.stripValuesIfNeeded(e))}):Array.isArray(t)?(this.rawChoices=t,this.updateChoicesList(this.stripValuesIfNeeded(t))):this.updateChoicesList([])}updateChoicesList(e){const t=(0,l.getCaretPosition)(this.TEXTAREA),n=(0,l.getSelectionEndPosition)(this.TEXTAREA),r=this.cellProperties.sortByRelevance,s=this.cellProperties.filter,i=this.stripValueIfNeeded(this.getValue()),a=w(S,this,_).call(this,i)?i.value:i;let c=null,d=e;r||(d=d.toSorted());const g=[],p=this.cellProperties.locale,f=this.cellProperties.filteringCaseSensitive,m=f?a:a.toLocaleLowerCase(p);for(let e=0;e<d.length;e++){const t=w(S,this,_).call(this,d[e])?(0,u.stripTags)((0,h.stringify)(d[e].value)):(0,u.stripTags)((0,h.stringify)(d[e]));if(-1!==(f?t:t.toLocaleLowerCase(p)).indexOf(m)&&(g.push(e),!1===s))break}!1===s?i.length>0&&(c=g[0]):(d=g.map(e=>d[e]),c=d.indexOf(m)>-1?d.indexOf(m):0),this.strippedChoices=d,0===d.length?this.htEditor.rootElement.style.display="none":this.htEditor.rootElement.style.display="",this.htEditor.loadData((0,o.pivot)([d])),d.length>0&&(this.updateDropdownDimensions(),this.flipDropdownVerticallyIfNeeded(),!0===this.cellProperties.strict&&this.highlightBestMatchingChoice(c)),this.hot.listen(),(0,l.setCaretPosition)(this.TEXTAREA,t,t===n?void 0:n)}flipDropdownVerticallyIfNeeded(){const e=super.flipDropdownVerticallyIfNeeded(),{isFlipped:t,spaceAbove:n,spaceBelow:r}=e;return this.limitDropdownIfNeeded(t?n:r),e}limitDropdownIfNeeded(e){const t=this.getDropdownHeight();if(t>e){let n=0,r=0,s=null;do{r=this.htEditor.stylesHandler.getDefaultRowHeight(),n+=r}while(n<e);s=n-r,this.isFlippedVertically&&(this.htEditor.rootElement.style.top=parseInt(this.htEditor.rootElement.style.top,10)+t-s+"px"),this.setDropdownHeight(n-r)}}updateDropdownDimensions(){const e=(0,l.getFractionalScalingCompensation)(),t=this.getTargetEditorWidth()+e,n=this.getTargetEditorHeight()+e;this.htEditor.updateSettings({width:t,height:n}),w(S,this,T).call(this),this.htEditor.view._wt.wtTable.alignOverlaysWithTrimmingContainer()}setDropdownHeight(e){this.htEditor.updateSettings({height:e}),w(S,this,T).call(this),this.htEditor.view._wt.wtTable.alignOverlaysWithTrimmingContainer()}highlightBestMatchingChoice(e){"number"==typeof e?this.htEditor.selectCell(e,0,void 0,void 0,void 0,!1):this.htEditor.deselectCell()}getTargetEditorHeight(){let e=0;if(!this.hot.getCurrentThemeName()){const t=this.hot.rootWindow.getComputedStyle(this.htContainer.querySelector(".htCore"));e=parseInt(t.borderTopWidth,10)+parseInt(t.borderBottomWidth,10)}const t=Math.min(this.cellProperties.visibleRows,this.strippedChoices.length);return Array.from({length:t},(e,t)=>t).reduce((e,t)=>e+(this.hot.stylesHandler.getDefaultRowHeight()+(0===t?1:0)),0)+e}getTargetEditorWidth(){let e=0;if(!this.hot.getCurrentThemeName()){const t=this.hot.rootWindow.getComputedStyle(this.htContainer.querySelector(".htCore"));e=parseInt(t.borderInlineStartWidth,10)+parseInt(t.borderInlineEndWidth,10)}return this.htEditor.getColWidth(0)+e}stripValueIfNeeded(e){return this.stripValuesIfNeeded([e])[0]}stripValuesIfNeeded(e){const{allowHtml:t}=this.cellProperties,n=e=>(0,h.stringify)(t?e:(0,u.stripTags)(e));return e.every(e=>w(S,this,_).call(this,e))?e.map(e=>({key:n(e.key),value:n(e.value)})):e.map(e=>n(e))}onBeforeKeyDown(e){if((0,c.isPrintableChar)(e.keyCode)||e.keyCode===c.KEY_CODES.BACKSPACE||e.keyCode===c.KEY_CODES.DELETE||e.keyCode===c.KEY_CODES.INSERT){let t=10;if(e.keyCode===c.KEY_CODES.C&&(e.ctrlKey||e.metaKey))return;this.isOpened()||(t+=10),this.htEditor&&this.hot._registerTimeout(()=>{this.queryChoices(this.TEXTAREA.value)},t)}}}function T(){this.htEditor.view.hasVerticalScroll()&&this.htEditor.updateSettings({width:this.getTargetEditorWidth()+(0,l.getScrollbarWidth)(this.hot.rootDocument)})}function _(e){return(0,a.isObject)(e)&&(0,h.isDefined)(e.key)&&(0,h.isDefined)(e.value)}t.AutocompleteEditor=R},63775:()=>{},63879:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182),n(81396),n(19874);var s=n(57440),i=n(92164),o=r(n(12009)),a=r(n(3686));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,n){return e.set(c(e,t),n),n}function c(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}i.Hooks.getSingleton().register("beforeColumnFreeze"),i.Hooks.getSingleton().register("afterColumnFreeze"),i.Hooks.getSingleton().register("beforeColumnUnfreeze"),i.Hooks.getSingleton().register("afterColumnUnfreeze");const d=t.PLUGIN_KEY="manualColumnFreeze",g=t.PLUGIN_PRIORITY=110;var p=new WeakMap,f=new WeakSet;class m extends s.BasePlugin{constructor(){var e,t;super(...arguments),l(e=this,t=f),t.add(e),function(e,t,n){l(e,t),t.set(e,n)}(this,p,!1)}static get PLUGIN_KEY(){return d}static get PLUGIN_PRIORITY(){return g}isEnabled(){return!!this.hot.getSettings()[d]}enablePlugin(){this.enabled||(this.addHook("afterContextMenuDefaultOptions",e=>c(f,this,E).call(this,e)),this.addHook("beforeColumnMove",(e,t)=>c(f,this,w).call(this,e,t)),super.enablePlugin())}disablePlugin(){u(p,this,!1),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}freezeColumn(e){const t=this.hot.getSettings(),n=t.fixedColumnsStart<this.hot.countCols()&&e>t.fixedColumnsStart-1;h(p,this)||u(p,this,!0);!1!==this.hot.runHooks("beforeColumnFreeze",e,n)&&(n&&(this.hot.columnIndexMapper.moveIndexes(e,t.fixedColumnsStart),t._fixedColumnsStart+=1),this.hot.runHooks("afterColumnFreeze",e,n))}unfreezeColumn(e){const t=this.hot.getSettings(),n=t.fixedColumnsStart>0&&e<=t.fixedColumnsStart-1;h(p,this)||u(p,this,!0);!1!==this.hot.runHooks("beforeColumnUnfreeze",e,n)&&(n&&(t._fixedColumnsStart-=1,this.hot.columnIndexMapper.moveIndexes(e,t.fixedColumnsStart)),this.hot.runHooks("afterColumnUnfreeze",e,n))}}function E(e){e.items.push({name:"---------"},(0,o.default)(this),(0,a.default)(this))}function w(e,t){if(h(p,this)){const n=this.hot.getSettings().fixedColumnsStart;if(t<n)return!1;if(e.some(e=>e<n))return!1}}t.ManualColumnFreeze=m},64078:()=>{},64195:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy_with_column_group_headers",name(){const e=this.getSelectedRangeActive(),t=e?(0,s.clamp)(e.getWidth()-1,0,1):0;return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS,t)},callback(){e.copyWithAllColumnHeaders()},disabled(){if(!this.hasColHeaders()||!this.getSettings().nestedHeaders)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 r=n(20217),s=n(72740)},64235:(e,t,n)=>{"use strict";n(81396),n(88633),t.__esModule=!0;var r=n(22699);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))});var s=n(92164);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))});var i=n(17279);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))})},64247:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,t.getDateFromExcelDate=function(e,t){const n=new Date(Date.UTC(0,0,e+-1));return(0,s.default)(n).format(t)},t.getDateInHfFormat=function(e,t){return(0,s.default)(e,t,!0).format(i)},t.getDateInHotFormat=function(e,t){return(0,s.default)(e,i,!0).format(t)},t.isDate=function(e,t){return"string"==typeof e&&"date"===t},t.isDateValid=function(e,t){return(0,s.default)(e,t,!0).isValid()},t.isEscapedFormulaExpression=o,t.isFormula=function(e){return"string"==typeof e&&e.startsWith("=")},t.unescapeFormulaExpression=function(e){return o(e)?e.substr(1):e};var s=r(n(37539));const i="DD/MM/YYYY";function o(e){return"string"==typeof e&&"'"===e.charAt(0)&&"="===e.charAt(1)}},64496:(e,t,n)=>{"use strict";t.__esModule=!0,t.rowHeaderScrollStrategy=function(e){return t=>{const n=(0,r.createScrollTargetCalculator)(e).getComputedRowTarget(t);e.scrollViewportTo({row:n},()=>{const t=!!e.getSettings().rowHeaders;(0,r.scrollWindowToCell)(e.getCell(n,t?-1:0,!0))})}};var r=n(92634)},64605:()=>{},64649:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},64696:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"hidden_columns_hide",name(){const e=this.getSelectedActive();let t=0;if(Array.isArray(e)){const[,n,,r]=e;n-r!==0&&(t=1)}return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_HIDE_COLUMN,t)},callback(){const{from:t,to:n}=this.getSelectedRangeActive(),r=Math.max(Math.min(t.col,n.col),0),s=Math.max(t.col,n.col),i=[];for(let e=r;e<=s;e+=1)i.push(e);e.hideColumns(i);const o=i[i.length-1],a=this.columnIndexMapper.getNearestNotHiddenIndex(o,1,!0);Number.isInteger(a)&&a>=0?this.selectColumns(a):this.deselectCell(),this.view.adjustElementsSize(),this.render()},disabled:!1,hidden(){return!(this.selection.isSelectedByColumnHeader()||this.selection.isSelectedByCorner())}}},n(66182);var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217))},64845:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588);var s=r(n(81115)),i=n(57440),o=n(30152),a=n(89090),l=n(89051),h=n(90082),u=n(38942),c=n(67305),d=n(32335),g=n(92164),p=n(89386),f=n(14089);function m(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function E(e,t,n){return e.set(w(e,t),n),n}function w(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;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 _ 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,n;super(e),m(t=this,n=T),n.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,n){m(e,t),t.set(e,n)}(this,R,!1),this.hot.addHook("afterGetColHeader",(e,t)=>w(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,_.DEFAULT_ITEMS),this.addHook("beforeOnCellMouseDown",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(T,e,L).call(e,...n)}),this.addHook("beforeViewportScrollHorizontally",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(T,e,P).call(e,...n)}),this.addHook("beforeDialogShow",()=>this.close());const t=this.hot.getSettings()[y],n={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",n),this.itemsFactory.setPredefinedItems(n.items);const r=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",r),this.menu.setMenuItems(r),this.menu.addLocalHook("beforeOpen",()=>w(T,this,M).call(this)),this.menu.addLocalHook("afterOpen",()=>w(T,this,I).call(this)),this.menu.addLocalHook("afterSubmenuOpen",e=>w(T,this,O).call(this,e)),this.menu.addLocalHook("afterClose",()=>w(T,this,x).call(this)),this.menu.addLocalHook("executeCommand",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.executeCommand.call(e,...n)}),(0,o.arrayEach)(r,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(),n=(0,h.getDocumentOffsetByElement)(this.menu.container,this.hot.rootDocument),r=this.hot.getCell(-1,t.col,!0).querySelector(`.${v}`),s=r.getBoundingClientRect();this.open({left:s.left+n.left,top:s.top+r.offsetHeight+n.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=>w(T,this,A).call(this,e))}open(e){var t;let n=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)(n,(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,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.commandExecutor.execute(e,...n)}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 N(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),n=e.target.getBoundingClientRect();e.stopPropagation(),E(R,this,!1),this.open({left:n.left+t.left,top:n.top+e.target.offsetHeight+t.top},{left:n.width,right:0,above:0,below:3})}}function b(e,t){const n=t.parentNode;if(!n)return;const r=n.parentNode.childNodes,s=Array.prototype.indexOf.call(r,n);if(e<0||s!==r.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),w(T,this,N).call(this,this.menu)}function O(e){w(T,this,N).call(this,e)}function x(){this.hot.listen(),this.hot.runHooks("afterDropdownMenuHide",this)}function P(e){return n=this,(t=R).get(w(t,n))?null:e;var t,n}function L(e){(0,u.hasClass)(e.target,v)&&E(R,this,!0)}t.DropdownMenu=_,_.SEPARATOR={name:p.SEPARATOR}},64854:(e,t,n)=>{"use strict";var r=n(11127),s=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?s(n+t,0):i(n,t)}},65032:()=>{},65092:()=>{},65109:()=>{},65131:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_INSERT_LEFT)},callback(){const e=this.getSelectedRangeActive().getTopLeftCorner(),t=this.isRtl()?"insert_col_end":"insert_col_start";this.alter(t,e.col,1,"ContextMenu.columnLeft")},disabled(){if(!this.isColumnModificationAllowed())return!0;const e=this.getSelectedRangeActive();return!!(!e||this.selection.isSelectedByRowHeader()||e.isSingleHeader()&&e.highlight.col<0||this.countSourceCols()>=this.getSettings().maxCols)||!!this.selection.isSelectedByCorner()&&0===this.countCols()},hidden(){return!this.getSettings().allowInsertColumn}}};var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217));const s=t.KEY="col_left"},65781:(e,t,n)=>{"use strict";var r=n(24427);e.exports="NODE"===r},65876:()=>{},66135:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588);var s=r(n(81115)),i=n(57440),o=n(89090),a=r(n(62115)),l=n(14298),h=n(9492);function u(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function c(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const d=t.PLUGIN_KEY="columnSummary",g=t.PLUGIN_PRIORITY=220;var p=new WeakSet;class f extends i.BasePlugin{constructor(){super(...arguments),u(this,p),(0,s.default)(this,"endpoints",null)}static get PLUGIN_KEY(){return d}static get PLUGIN_PRIORITY(){return g}isEnabled(){return!!this.hot.getSettings()[d]}enablePlugin(){var e=this;this.enabled||(this.settings=this.hot.getSettings()[d],this.endpoints=new a.default(this,this.settings),this.addHook("afterInit",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(p,e,m).call(e,...n)}),this.addHook("afterChange",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(p,e,w).call(e,...n)}),this.addHook("afterUpdateSettings",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(p,e,E).call(e,...n)}),this.addHook("afterLoadData",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(p,e,y).call(e,...n)}),this.addHook("afterUpdateData",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(p,e,C).call(e,...n)}),this.addHook("beforeCreateRow",(e,t,n)=>this.endpoints.resetSetupBeforeStructureAlteration("insert_row",e,t,null,n)),this.addHook("beforeCreateCol",(e,t,n)=>this.endpoints.resetSetupBeforeStructureAlteration("insert_col",e,t,null,n)),this.addHook("beforeRemoveRow",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.endpoints.resetSetupBeforeStructureAlteration("remove_row",...n)}),this.addHook("beforeRemoveCol",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.endpoints.resetSetupBeforeStructureAlteration("remove_col",...n)}),this.addHook("afterCreateRow",(e,t,n)=>this.endpoints.resetSetupAfterStructureAlteration("insert_row",e,t,null,n)),this.addHook("afterCreateCol",(e,t,n)=>this.endpoints.resetSetupAfterStructureAlteration("insert_col",e,t,null,n)),this.addHook("afterRemoveRow",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.endpoints.resetSetupAfterStructureAlteration("remove_row",...n)}),this.addHook("afterRemoveCol",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.endpoints.resetSetupAfterStructureAlteration("remove_col",...n)}),this.addHook("afterRowMove",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(p,e,v).call(e,...n)}),super.enablePlugin())}disablePlugin(){this.endpoints=null,this.settings=null,this.currentEndpoint=null,super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.endpoints.initEndpoints(),super.updatePlugin()}calculate(e){switch(e.type.toLowerCase()){case"sum":e.result=this.calculateSum(e);break;case"min":case"max":e.result=this.calculateMinMax(e,e.type);break;case"count":e.result=this.countEntries(e);break;case"average":e.result=this.calculateAverage(e);break;case"custom":e.result=e.customFunction.call(this,e)}}calculateSum(e){let t=0;return(0,o.objectEach)(e.ranges,n=>{t+=this.getPartialSum(n,e.sourceColumn)}),t}getPartialSum(e,t){let n=0,r=e[1]||e[0],s=null,i=0;do{if(s=this.getCellValue(r,t),s=(0,h.isNullishOrNaN)(s)?null:s,null!==s){const e=(`${s}`.split(".")[1]||[]).length||1;e>i&&(i=e)}n+=s||0,r-=1}while(r>=e[0]);return Math.round(n*10**i)/10**i}calculateMinMax(e,t){let n=null;return(0,o.objectEach)(e.ranges,r=>{const s=this.getPartialMinMax(r,e.sourceColumn,t);if(null===n&&null!==s&&(n=s),null!==s)switch(t){case"min":n=Math.min(n,s);break;case"max":n=Math.max(n,s)}}),null===n?"Not enough data":n}getPartialMinMax(e,t,n){let r,s=null,i=e[1]||e[0];do{if(r=this.getCellValue(i,t),r=(0,h.isNullishOrNaN)(r)?null:r,null===s)s=r;else if(null!==r)switch(n){case"min":s=Math.min(s,r);break;case"max":s=Math.max(s,r)}i-=1}while(i>=e[0]);return s}countEmpty(e,t){let n,r=0,s=e[1]||e[0];do{n=this.getCellValue(s,t),n=(0,h.isNullishOrNaN)(n)?null:n,null===n&&(r+=1),s-=1}while(s>=e[0]);return r}countEntries(e){let t=0;const n=e.ranges;return(0,o.objectEach)(n,n=>{const r=void 0===n[1]?1:n[1]-n[0]+1,s=this.countEmpty(n,e.sourceColumn);t+=r,t-=s}),t}calculateAverage(e){return this.calculateSum(e)/this.countEntries(e)}getCellValue(e,t){const n=this.hot.toVisualRow(e),r=this.hot.toVisualColumn(t);let s=this.hot.getSourceDataAtCell(e,t),i="";if(null!==n&&null!==r&&(i=this.hot.getCellMeta(n,r).className||""),i.indexOf("columnSummaryResult")>-1)return null;if(this.endpoints.currentEndpoint.forceNumeric&&("string"==typeof s&&(s=s.replace(/,/,".")),s=parseFloat(s)),isNaN(s)&&!this.endpoints.currentEndpoint.suppressDataTypeErrors)throw new Error(l.toSingleLine`ColumnSummary plugin: cell at (${e}, ${t}) is not in a\x20
|
|
286
286
|
numeric format. Cannot do the calculation.`);return s}}function m(){this.endpoints.initEndpoints()}function E(e){void 0!==e.columns&&this.endpoints.refreshCellMetas()}function w(e,t){e&&"ColumnSummary.reset"!==t&&"ColumnSummary.set"!==t&&"loadData"!==t&&this.endpoints.refreshChangedEndpoints(e)}function y(e,t){t||this.endpoints.refreshAllEndpoints()}function C(e,t){t||this.endpoints.refreshAllEndpoints()}function v(e,t){this.endpoints.resetSetupBeforeStructureAlteration("move_row",e[0],e.length,e,this.pluginName),this.endpoints.resetSetupAfterStructureAlteration("move_row",t,e.length,e,this.pluginName)}t.ColumnSummary=f},66182:(e,t,n)=>{"use strict";var r=n(27538),s=n(87681),i=n(69946),o=n(90331),a=n(22625);r({target:"Array",proto:!0,arity:1,forced:n(89035)(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=s(this),n=i(t),r=arguments.length;a(n+r);for(var l=0;l<r;l++)t[n]=arguments[l],n++;return o(t,n),n}})},66213:(e,t,n)=>{"use strict";t.__esModule=!0,t.compareFunctionFactory=function(e,t,n){const o=t.checkedTemplate,a=t.uncheckedTemplate,{sortEmptyCells:l}=n;return function(h,u){const c=(0,i.isEmpty)(h),d=(0,i.isEmpty)(u),g=c?a:h,p=d?a:u,f=g===a||g===o,m=p===a||p===o;if(!1===l){if(c&&!1===d)return r.FIRST_AFTER_SECOND;if(!1===c&&d)return r.FIRST_BEFORE_SECOND}return!1===f&&m?"asc"===e?r.FIRST_BEFORE_SECOND:r.FIRST_AFTER_SECOND:f&&!1===m?"asc"===e?r.FIRST_AFTER_SECOND:r.FIRST_BEFORE_SECOND:!1===f&&!1===m?(0,s.compareFunctionFactory)(e,t,n)(h,u):g===a&&p===o?"asc"===e?r.FIRST_BEFORE_SECOND:r.FIRST_AFTER_SECOND:g===o&&p===a?"asc"===e?r.FIRST_AFTER_SECOND:r.FIRST_BEFORE_SECOND:r.DO_NOT_SWAP}};var r=n(18793),s=n(68627),i=n(54342);t.COLUMN_DATA_TYPE="checkbox"},66349:(e,t,n)=>{"use strict";t.__esModule=!0,t.useRecorder=function(e,t,n,r,d){const g=e=>l.includes(e),p=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=[];return e.altKey&&n.push("alt"),t&&(e.ctrlKey||e.metaKey)?n.push("control/meta"):(e.ctrlKey&&n.push("control"),e.metaKey&&n.push("meta")),e.shiftKey&&n.push("shift"),n},f=e=>{if(!1===t(e))return;if(!1===n(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))),r(e)},m=e=>{if("string"==typeof e.key){const t=(0,s.normalizeEventKey)(e);g(t)&&h.press(t)}},E=e=>{if("string"==typeof e.key){const t=(0,s.normalizeEventKey)(e);g(t)&&h.release(t)}},w=()=>{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",E),u.push({event:"keyup",listener:E})),t.document.documentElement.addEventListener("keydown",f),t.document.documentElement.addEventListener("blur",w),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:n,listener:r}=u[e];t.document.documentElement.removeEventListener(n,r)}u.length=0}t.document.documentElement.removeEventListener("keydown",f),t.document.documentElement.removeEventListener("blur",w),t=(0,o.getParentWindow)(t)}},isPressed:e=>h.isPressed(e),releasePressedKeys:()=>h.releaseAll()}},n(66182);var r=n(32918),s=n(29194),i=n(68834),o=n(38942),a=n(58617);const l=["meta","alt","shift","control"],h=(0,r.createKeysObserver)(),u=[];let c=0},66418:(e,t,n)=>{"use strict";t.__esModule=!0,t.condition=o;var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217)),s=n(25039);const i=t.CONDITION_NAME="none";function o(){return!0}(0,s.registerCondition)(i,o,{name:r.FILTERS_CONDITIONS_NONE,inputsCount:0,showOperators:!1})},66419:(e,t,n)=>{"use strict";t.__esModule=!0,t.createUniqueMap=function(){let{errorIdExists:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=new Map;function n(){return[...t]}function i(e){return t.has(e)}return e=(0,r.isFunction)(e)?e:s,{addItem:function(n,r){if(i(n))throw new Error(e(n));t.set(n,r)},clear:function(){t.clear()},getId:function(e){const[t]=n().find(t=>{let[n,r]=t;return e===r&&n})||[null];return t},getItem:function(e){return t.get(e)},getItems:n,getValues:function(){return[...t.values()]},hasItem:i,removeItem:function(e){return t.delete(e)}}},n(22588),n(81396),n(82101);var r=n(37849);const s=e=>`The id '${e}' is already declared in a map.`},66455:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(74601);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.EmptyDataState=r.EmptyDataState},66527:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588);var s=r(n(81115)),i=n(38942),o=r(n(19683)),a=n(80484),l=n(7878),h=n(21985);class u extends a.Overlay{constructor(e,t,n,r){super(e,t,h.CLONE_TOP,n,r),(0,s.default)(this,"cachedFixedRowsTop",-1),this.cachedFixedRowsTop=this.wtSettings.getSetting("fixedRowsTop")}createTable(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new o.default(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderTopOverlay")}resetFixedPosition(){if(!this.needFullRender||!this.shouldBeRendered()||!this.wot.wtTable.holder.parentNode)return!1;const e=this.clone.wtTable.holder.parentNode,{rootWindow:t}=this.domBindings,n=this.wtSettings.getSetting("preventOverflow");let r=0,s=!1;if(this.trimmingContainer!==t||n&&"vertical"===n)r=this.getScrollPosition(),(0,i.resetCssTransform)(e);else{const{wtTable:t}=this.wot,n=t.hider.getBoundingClientRect();s=Math.ceil(n.bottom)===e.offsetHeight,r=this.getOverlayOffset(),(0,i.setOverlayPosition)(e,"0px",`${r}px`)}const o=this.adjustHeaderBordersPosition(r,s);return this.adjustElementsSize(),o}setScrollPosition(e){const{rootWindow:t}=this.domBindings,n=this.mainTableScrollableElement;let r=!1;if(n===t&&e!==t.scrollY){const n=t.scrollY;t.scrollTo((0,i.getWindowScrollLeft)(t),e),r=n!==t.scrollY}else if(e!==n.scrollTop){const t=n.scrollTop;n.scrollTop=e,r=t!==n.scrollTop}return r}onScroll(){this.wtSettings.getSetting("onScrollHorizontally")}sumCellSizes(e,t){const n=this.wtSettings.getSetting("stylesHandler").getDefaultRowHeight();let r=e,s=0;for(;r<t;){const e=this.wot.wtTable.getRowHeight(r);s+=void 0===e?n:e,r+=1}return s}adjustElementsSize(){this.updateTrimmingContainer(),this.needFullRender&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}adjustRootElementSize(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:n,rootWindow:r}=this.domBindings,s=this.clone.wtTable.holder.parentNode.style,o=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==r||"horizontal"===o){let r=t.getWorkspaceWidth();t.hasVerticalScroll()&&(r-=(0,i.getScrollbarWidth)(n)),r=Math.min(r,e.wtRootElement.scrollWidth),s.width=`${r}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,t=(0,l.getCornerStyle)(this.wot),n=this.wot.selectionManager.getFocusSelection()?parseInt(t.height,10)/2:0;this.clone.wtTable.hider.style.width=this.hider.style.width,e.style.width=e.parentNode.style.width,e.style.height=`${parseInt(e.parentNode.style.height,10)+n}px`}applyToDOM(){const e=this.wtSettings.getSetting("totalRows");if("number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top=`${this.wot.wtViewport.rowsRenderCalculator.startPosition}px`;else{if(0!==e)throw new Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="",this.needFullRender&&this.syncOverlayOffset()}syncOverlayOffset(){const e=this.isRtl()?"right":"left",{spreader:t}=this.clone.wtTable;"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?t.style[e]=`${this.wot.wtViewport.columnsRenderCalculator.startPosition}px`:t.style[e]=""}scrollTo(e,t){const{wot:n,wtSettings:r}=this,s=(n.cloneSource?n.cloneSource:n).wtTable.holder,o=r.getSetting("columnHeaders"),a=0===r.getSetting("fixedRowsTop")&&o.length>0&&!(0,i.hasClass)(s.parentNode,"innerBorderTop")?1:0;let l=this.getTableParentOffset(),h=0;if(t){this.wot.wtTable.getRowHeight(e)>this.wot.wtViewport.getViewportHeight()&&(t=!1)}if(t&&s.offsetHeight!==s.clientHeight&&(h=(0,i.getScrollbarWidth)(this.domBindings.rootDocument)),t){const t=r.getSetting("fixedRowsBottom"),s=r.getSetting("totalRows");l+=this.sumCellSizes(0,e+1),l-=n.wtViewport.getViewportHeight()-this.sumCellSizes(s-t,s),l+=1,l+=a}else l+=this.sumCellSizes(r.getSetting("fixedRowsTop"),e);return l+=h,(0,i.getMaximumScrollTop)(this.mainTableScrollableElement)===l-a&&a>0&&this.wot.wtOverlays.expandHiderVerticallyBy(a),this.setScrollPosition(l)}getTableParentOffset(){return this.mainTableScrollableElement===this.domBindings.rootWindow?this.wot.wtTable.holderOffset.top:0}getScrollPosition(){return(0,i.getScrollTop)(this.mainTableScrollableElement,this.domBindings.rootWindow)}getOverlayOffset(){const{rootWindow:e}=this.domBindings,t=this.wtSettings.getSetting("preventOverflow");let n=0;if(this.trimmingContainer===e&&(!t||"vertical"!==t)){const e=this.wot.wtTable.getTotalHeight()-this.clone.wtTable.getTotalHeight();n=Math.max(this.getScrollPosition()-this.getTableParentOffset(),0),n>e&&(n=0)}return n}adjustHeaderBordersPosition(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{wtSettings:n}=this,r=this.wot.wtTable.holder.parentNode,s=n.getSetting("totalColumns"),o="horizontal"===n.getSetting("preventOverflow");s?(0,i.removeClass)(r,"emptyColumns"):(0,i.addClass)(r,"emptyColumns");let a=!1;if(!t&&!o){const t=n.getSetting("fixedRowsTop"),s=this.cachedFixedRowsTop!==t,o=n.getSetting("columnHeaders");if((s||0===t)&&o.length>0){const t=(0,i.hasClass)(r,"innerBorderTop");this.cachedFixedRowsTop=n.getSetting("fixedRowsTop"),e||0===n.getSetting("totalRows")?((0,i.addClass)(r,"innerBorderTop"),a=!t):((0,i.removeClass)(r,"innerBorderTop"),a=t)}}return a}}t.TopOverlay=u},66563:(e,t)=>{"use strict";let n;t.__esModule=!0,t.cancelAnimationFrame=function(e){window.cancelAnimationFrame(e)},t.getComparisonFunction=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n)return n;n="object"==typeof Intl?new Intl.Collator(e,t).compare:"function"==typeof String.prototype.localeCompare?(e,t)=>`${e}`.localeCompare(t):(e,t)=>e===t?0:e>t?-1:1;return n},t.isCSR=function(){return"undefined"!=typeof window},t.isTouchSupported=function(){return"ontouchstart"in window},t.requestAnimationFrame=function(e){return window.requestAnimationFrame(e)}},66574:(e,t,n)=>{"use strict";n(81396),n(88633),t.__esModule=!0;var r=n(32089);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))});var s=n(28924);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))})},66597:(e,t,n)=>{"use strict";t.__esModule=!0,t.collapseNode=function e(t){var n;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,r.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 n=1;n<e;n++){const e=t+n;h.add(e)}}const u=o.colspan-(null!==(n=(0,i.getFirstChildProperty)(t,"colspan"))&&void 0!==n?n: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}},n(78822),n(86192),n(80729),n(99888),n(12767),n(78644),n(97550);var r=n(30152),s=n(26710),i=n(40104)},66917:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(95742));t.bottom=s.default;var i=r(n(17632));t.left=i.default;var o=r(n(58379));t.noBorders=o.default;var a=r(n(52035));t.right=a.default;var l=r(n(32234));t.top=l.default},67026:(e,t,n)=>{"use strict";t.__esModule=!0,t.arrayDiff=function(e,t){const n=[];let r=0,s=0;for(;r<e.length&&s<t.length;r++,s++)e[r]!==t[s]&&n.push({op:"replace",index:s,oldValue:e[r],newValue:t[s]});for(;r<t.length;r++)n.push({op:"insert",index:r,oldValue:void 0,newValue:t[r]});for(;s<e.length;s++)n.push({op:"remove",index:s,oldValue:e[s],newValue:void 0});return n},n(66182)},67287:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(60557);t.RENDERER_TYPE=r.RENDERER_TYPE,t.baseRenderer=r.baseRenderer},67305:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(66182);var s=r(n(81115)),i=n(89090),o=n(30152),a=n(89386);t.ItemsFactory=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,s.default)(this,"hot",void 0),(0,s.default)(this,"predefinedItems",(0,a.predefinedItems)()),(0,s.default)(this,"defaultOrderPattern",void 0),this.hot=e,this.defaultOrderPattern=t}setPredefinedItems(e){const t={};this.defaultOrderPattern.length=0,(0,i.objectEach)(e,(e,n)=>{let r="";e.name===a.SEPARATOR?(t[a.SEPARATOR]=e,r=a.SEPARATOR):isNaN(parseInt(n,10))?(e.key=void 0===e.key?n:e.key,t[n]=e,r=e.key):(t[e.key]=e,r=e.key),this.defaultOrderPattern.push(r)}),this.predefinedItems=t}getItems(){return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=[];let s=e;s&&s.items?s=s.items:Array.isArray(s)||(s=t);(0,i.isObject)(s)?(0,i.objectEach)(s,(e,t)=>{let s=n["string"==typeof e?e:t];s||(s=e),(0,i.isObject)(e)?(0,i.extend)(s,e):"string"==typeof s&&(s={name:s}),void 0===s.key&&(s.key=t),r.push(s)}):(0,o.arrayEach)(s,(e,t)=>{let s=n[e];!s&&a.ITEMS.indexOf(e)>=0||(s||(s={name:e,key:`${t}`}),(0,i.isObject)(e)&&(0,i.extend)(s,e),void 0===s.key&&(s.key=t),r.push(s))});return r}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,this.defaultOrderPattern,this.predefinedItems)}}},67320:()=>{},67343:(e,t,n)=>{"use strict";var r=n(33477),s=n(14326),i=n(87681),o=n(26075),a=n(38815),l=o("IE_PROTO"),h=Object,u=h.prototype;e.exports=a?h.getPrototypeOf:function(e){var t=i(e);if(r(t,l))return t[l];var n=t.constructor;return s(n)&&t instanceof n?n.prototype:t instanceof h?u:null}},67379:(e,t,n)=>{"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 n=f(t,{createCellCoords:e._createCellCoords.bind(e),createCellRange:e._createCellRange.bind(e)}),r=new Set;(0,s.arrayEach)(e.getSelected(),e=>{const{from:t,to:i}=n(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=>{r.has(e)||r.add(e)})});const i=Array.from(r).sort((e,t)=>e-t);return(0,s.arrayReduce)(i,(e,t,n,r)=>(0!==n&&t===r[n-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 n=f(t,{createCellCoords:e._createCellCoords.bind(e),createCellRange:e._createCellRange.bind(e)}),r=new Set;(0,s.arrayEach)(e.getSelected(),e=>{const{from:t,to:i}=n(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=>{r.has(e)||r.add(e)})});const i=Array.from(r).sort((e,t)=>e-t);return(0,s.arrayReduce)(i,(e,t,n,r)=>(0!==n&&t===r[n-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e),[])},n(22588),n(66182),n(78822),n(86192),n(80729),n(99888),n(12767),n(78644),n(97550),n(81396),n(19874);var r=n(51191),s=n(30152),i=n(54342);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 n=Array.isArray(e),s=t===d;let i=o;if(n){const t=e[0];if(0===e.length)i=a;else if(s&&t instanceof r.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:n,keepDirection:r=!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),!r){const e=l,t=u,n=c,r=d;l=Math.min(e,n),u=Math.min(t,r),c=Math.max(e,n),d=Math.max(t,r)}const g=a?o.highlight.clone():t(l,u),p=t(l,u),f=t(c,d);return n(g,p,f)}}},67447:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(81115)),i=n(20751);class o extends i.BaseAction{constructor(e){let{index:t,amount:n}=e;super("insert_row"),(0,s.default)(this,"index",void 0),(0,s.default)(this,"amount",void 0),this.index=t,this.amount=n}static startRegisteringEvents(e,t){e.addHook("afterCreateRow",(e,n,r)=>{t.done(()=>new o({index:e,amount:n}),r)})}undo(e,t){const n=e.countRows(),r=e.getSettings().minSpareRows;this.index>=n&&this.index-r<n&&(this.index-=r),e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",this.index,this.amount,"UndoRedo.undo")}redo(e,t){e.addHookOnce("afterCreateRow",t),e.alter("insert_row_above",this.index,this.amount,"UndoRedo.redo")}}t.CreateRowAction=o},67537:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(81115));t.default=class{constructor(e,t){(0,s.default)(this,"dataAccessObject",void 0),(0,s.default)(this,"wtSettings",void 0),this.dataAccessObject=e,this.wtSettings=t}getHeight(e){let t=this.wtSettings.getSetting("rowHeight",e);const n=this.dataAccessObject.wtViewport.oversizedRows[e];return void 0!==n&&(t=void 0===t?n:Math.max(t,n)),t}getHeightByOverlayName(e,t){let n=this.wtSettings.getSetting("rowHeightByOverlayName",e,t);const r=this.dataAccessObject.wtViewport.oversizedRows[e];return void 0!==r&&(n=void 0===n?r:Math.max(n,r)),n}}},67600:(e,t,n)=>{"use strict";t.__esModule=!0,t.normalizeRanges=function(e){const t=[],n=[];return(0,r.arrayEach)(e,e=>{const r=Math.min(e.startRow,e.endRow),i=Math.max(e.startRow,e.endRow);(0,s.rangeEach)(r,i,e=>{-1===t.indexOf(e)&&t.push(e)});const o=Math.min(e.startCol,e.endCol),a=Math.max(e.startCol,e.endCol);(0,s.rangeEach)(o,a,e=>{-1===n.indexOf(e)&&n.push(e)})}),{rows:t,columns:n}},n(22588),n(66182);var r=n(30152),s=n(72740);function i(e,t,n){o(e,t),t.set(e,n)}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){return e.get(h(e,t))}function l(e,t,n){return e.set(h(e,t),n),n}function h(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var u=new WeakMap,c=new WeakMap,d=new WeakMap,g=new WeakMap,p=new WeakMap,f=new WeakMap,m=new WeakSet;function E(e,t){return Math.min(t,Math.max(e+a(p,this).call(this)-1,e))}function w(e,t){return Math.min(t,Math.max(e+a(g,this).call(this)-1,e))}t.CopyableRangesFactory=class{constructor(e){let{countRows:t,countColumns:n,rowsLimit:r,columnsLimit:s,countColumnHeaders:a}=e;var h,E;o(h=this,E=m),E.add(h),i(this,u,void 0),i(this,c,void 0),i(this,d,void 0),i(this,g,void 0),i(this,p,void 0),i(this,f,void 0),l(c,this,t),l(d,this,n),l(g,this,r),l(p,this,s),l(f,this,a)}setSelectedRange(e){l(u,this,e)}getCellsRange(){if(0===a(c,this).call(this)||0===a(d,this).call(this))return null;const{row:e,col:t}=a(u,this).getTopStartCorner(),{row:n,col:r}=a(u,this).getBottomEndCorner(),s=h(m,this,w).call(this,e,n),i=h(m,this,E).call(this,t,r);return{isRangeTrimmed:n!==s||r!==i,startRow:e,startCol:t,endRow:s,endCol:i}}getMostBottomColumnHeadersRange(){if(0===a(d,this).call(this)||0===a(f,this).call(this))return null;const{col:e}=a(u,this).getTopStartCorner(),{col:t}=a(u,this).getBottomEndCorner(),n=h(m,this,E).call(this,e,t);return{isRangeTrimmed:t!==n,startRow:-1,startCol:e,endRow:-1,endCol:n}}getAllColumnHeadersRange(){if(0===a(d,this).call(this)||0===a(f,this).call(this))return null;const{col:e}=a(u,this).getTopStartCorner(),{col:t}=a(u,this).getBottomEndCorner(),n=h(m,this,E).call(this,e,t);return{isRangeTrimmed:t!==n,startRow:-a(f,this).call(this),startCol:e,endRow:-1,endCol:n}}}},67772:()=>{},67781:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(26571);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.PersistentState=r.PersistentState},67875:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(4169);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.NestedRows=r.NestedRows},67983:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(53119);t.EDITOR_TYPE=r.EDITOR_TYPE,t.TimeEditor=r.TimeEditor},68060:(e,t,n)=>{"use strict";var r,s=n(19596),i=n(99949),o=n(14326),a=n(24427),l=n(771),h=n(4660),u=n(90024),c=s.Function,d=/MSIE .\./.test(l)||"BUN"===a&&((r=s.Bun.version.split(".")).length<3||"0"===r[0]&&(r[1]<3||"3"===r[1]&&"0"===r[2]));e.exports=function(e,t){var n=t?2:1;return d?function(r,s){var a=u(arguments.length,1)>n,l=o(r)?r:c(r),d=a?h(arguments,n):[],g=a?function(){i(l,this,d)}:l;return t?e(g,s):e(g)}:e}},68149:(e,t,n)=>{"use strict";var r=n(71671),s=n(35097),i=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||o[i]===e)}},68196:(e,t,n)=>{"use strict";t.__esModule=!0,t.autocompleteValidator=i;var r=n(89090);const s=t.VALIDATOR_TYPE="autocomplete";function i(e,t){let n=e;null==n&&(n=""),this.allowEmpty&&""===n?t(!0):this.strict&&this.source?"function"==typeof this.source?this.source(n,o(n,t)):o(n,t)(this.source):t(!0)}function o(e,t){const n=e;return function(e){let s=!1;for(let t=0,i=e.length;t<i;t++)if((0,r.isObjectEqual)(n,e[t])){s=!0;break}t(s)}}i.VALIDATOR_TYPE=s},68207:()=>{},68225:()=>{},68231:(e,t,n)=>{"use strict";t.__esModule=!0,t.getClassesToAdd=function(e,t,n){const s=[];if(!1===n)return s;e.isColumnSorted(t)&&e.getNumberOfSortedColumns()>1&&s.push(`${r}-${e.getIndexOfColumnInSortQueue(t)+1}`);return s},t.getClassesToRemove=function(e){const t=e.className.split(" "),n=new RegExp(`^${r}-[0-9]{1,2}$`);return t.filter(e=>n.test(e))},n(66182),n(81396),n(81124);const r="sort"},68457:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(1229);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.Dialog=r.Dialog},68600:(e,t,n)=>{"use strict";t.__esModule=!0,t.condition=o;var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217)),s=n(25039);const i=t.CONDITION_NAME="gte";function o(e,t){let[n]=t,r=n;return"numeric"===e.meta.type&&(r=parseFloat(r,10)),e.value>=r}(0,s.registerCondition)(i,o,{name:r.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL,inputsCount:1,showOperators:!0})},68614:(e,t,n)=>{"use strict";var r=n(19617),s=n(33477),i=n(17621),o=n(84521),a=n(33895),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:r(a,e)}},68627:(e,t,n)=>{"use strict";t.__esModule=!0,t.compareFunctionFactory=function(e,t,n){const i=t.locale;return function(t,o){const{sortEmptyCells:a}=n;return"string"==typeof t&&(t=t.toLocaleLowerCase(i)),"string"==typeof o&&(o=o.toLocaleLowerCase(i)),t===o?s.DO_NOT_SWAP:(0,r.isEmpty)(t)?(0,r.isEmpty)(o)?s.DO_NOT_SWAP:a&&"asc"===e?s.FIRST_BEFORE_SECOND:s.FIRST_AFTER_SECOND:(0,r.isEmpty)(o)?a&&"asc"===e?s.FIRST_AFTER_SECOND:s.FIRST_BEFORE_SECOND:isNaN(t)&&!isNaN(o)?"asc"===e?s.FIRST_AFTER_SECOND:s.FIRST_BEFORE_SECOND:!isNaN(t)&&isNaN(o)?"asc"===e?s.FIRST_BEFORE_SECOND:s.FIRST_AFTER_SECOND:(isNaN(t)||isNaN(o)||(t=parseFloat(t),o=parseFloat(o)),t<o?"asc"===e?s.FIRST_BEFORE_SECOND:s.FIRST_AFTER_SECOND:t>o?"asc"===e?s.FIRST_AFTER_SECOND:s.FIRST_BEFORE_SECOND:s.DO_NOT_SWAP)}};var r=n(54342),s=n(18793);t.COLUMN_DATA_TYPE="default"},68834:(e,t,n)=>{"use strict";t.__esModule=!0,t.isImmediatePropagationStopped=function(e){return!1===e.isImmediatePropagationEnabled},t.isLeftClick=function(e){return 0===e.button},t.isRightClick=function(e){return 2===e.button},t.isTouchEvent=function(e){return"undefined"!=typeof TouchEvent&&e instanceof TouchEvent},t.offsetRelativeTo=function(e,t){const n={x:e.offsetX,y:e.offsetY};let s=e.target;if(!(0,r.isHTMLElement)(t)||s!==t&&s.contains(t))return n;for(;s!==t;)n.x+=s.offsetLeft,n.y+=s.offsetTop,s=s.offsetParent;return n},t.stopImmediatePropagation=function(e){e.isImmediatePropagationEnabled=!1,e.cancelBubble=!0};var r=n(38942)},68881:()=>{},68994:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(81115)),i=n(20751);class o extends i.BaseAction{constructor(e){let{data:t,cellRange:n}=e;super("merge_cells"),(0,s.default)(this,"cellRange",void 0),this.cellRange=n,this.data=t}static startRegisteringEvents(e,t){e.addHook("beforeMergeCells",(n,r)=>{if(r)return;const s=n.getTopStartCorner(),i=n.getBottomEndCorner(),a=e.getData(s.row,s.col,i.row,i.col);t.done(()=>new o({data:a,cellRange:n}))})}undo(e,t){const n=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),n.unmergeRange(this.cellRange,!0);const r=this.cellRange.getTopStartCorner();e.populateFromArray(r.row,r.col,this.data,void 0,void 0,"MergeCells")}redo(e,t){const n=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),n.mergeRange(this.cellRange)}}t.MergeCellsAction=o},69089:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(95275)),i=n(38942);class o extends s.default{build(){super.build(),(0,i.addClass)(this._element,"ht__manualRowMove--guideline")}}t.default=o},69102:()=>{},69255:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588);var s=r(n(81115)),i=n(21510),o=n(68834),a=n(50259),l=r(n(90308));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,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var c=new WeakSet;class d{constructor(e,t,n){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=n,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,n)=>u(c,this,p).call(this,e,t,n))}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:n,col:r}=t,s=this.hot.runHooks("modifyGetCellCoords",n,r,!1,"meta");let i=n,o=r;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(n,r,!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(n,r,t,l,s,this.cellProperties)}}isEditorOpened(){return this.activeEditor&&this.activeEditor.isOpened()}openEditor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this.isCellEditable())return void this.clearActiveEditor();const r=this.hot.getSelectedRangeActive();let s=this.hot.runHooks("beforeBeginEditing",r.highlight.row,r.highlight.col,e,t,n);t instanceof MouseEvent&&"boolean"!=typeof s&&(s=0===this.hot.selection.getLayerLevel()&&r.isSingle()),!1!==s?(this.activeEditor||(this.hot.scrollToFocusedCell(),this.prepareEditor()),this.activeEditor&&(n&&this.activeEditor.enableFullEditMode(),this.activeEditor.beginEditing(e,t))):this.clearActiveEditor()}closeEditor(e,t,n){this.activeEditor?this.activeEditor.finishEditing(e,t,n):n&&n(!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:n,col:r}=e.highlight,{rowIndexMapper:s,columnIndexMapper:i}=this.hot,o=s.isHidden(this.hot.toPhysicalRow(n))||i.isHidden(this.hot.toPhysicalColumn(r));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:n}=e,r=(e.ctrlKey||e.metaKey)&&!e.altKey;(!this.activeEditor||this.activeEditor&&!this.activeEditor.isWaiting())&&((0,i.isFunctionKey)(n)||(0,i.isCtrlMetaKey)(n)||r||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,n){let r=f.get(e);return r||(r=new d(e,t,n),f.set(e,r)),r};t.default=d},69373:()=>{},69422:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(33115),s=n(75207),i=n(70355),o=n(9258);const a=t.CELL_TYPE="numeric";t.NumericCellType={CELL_TYPE:a,editor:r.NumericEditor,renderer:s.numericRenderer,validator:i.numericValidator,dataType:"number",valueSetter:o.valueSetter}},69423:(e,t,n)=>{"use strict";var r=n(39303),s=n(77669),i=n(40663),o=Error.captureStackTrace;e.exports=function(e,t,n,a){i&&(o?o(e,t):r(e,"stack",s(n,a)))}},69535:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182),n(81396),n(88633),n(14618);var s=r(n(81115)),i=n(89090),o=n(30152),a=n(28585),l=n(17822),h=n(50259),u=n(95261),c=n(21540),d=r(n(90308)),g=n(87544);function p(e,t,n){f(e,t),t.set(e,n)}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,n){return e.set(w(e,t),n),n}function E(e,t){return e.get(w(e,t))}function w(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const y=new Map([["plugin",a.hasPlugin],["cell-type",l.hasCellType],["editor",h.hasEditor],["renderer",u.hasRenderer],["validator",c.hasValidator]]),C=t.defaultMainSettingSymbol=Symbol("mainSetting"),v=t.PLUGIN_KEY="base",S=[];let R=null;var T=new WeakMap,_=new WeakMap,N=new WeakSet;function A(e){if(!e)return!1;const t=this.constructor.SETTING_KEYS;if("boolean"==typeof t)return t;for(let n=0;n<t.length;n++)if(void 0!==e[t[n]])return!0;return!1}t.BasePlugin=class{static get PLUGIN_KEY(){return v}static get SETTING_KEYS(){return[this.PLUGIN_KEY]}static get DEFAULT_SETTINGS(){return{}}static get SETTINGS_VALIDATORS(){return null}constructor(e){var t,n;f(t=this,n=N),n.add(t),p(this,T,null),(0,s.default)(this,"eventManager",new d.default(this)),(0,s.default)(this,"pluginName",null),(0,s.default)(this,"pluginsInitializedCallbacks",[]),(0,s.default)(this,"isPluginsReady",!1),(0,s.default)(this,"enabled",!1),(0,s.default)(this,"initialized",!1),p(this,_,{}),(0,i.defineGetter)(this,"hot",e,{writable:!1}),R=null,this.hot.addHook("afterPluginsInitialized",()=>this.onAfterPluginsInitialized()),this.hot.addHook("afterUpdateSettings",e=>this.onUpdateSettings(e)),this.hot.addHook("beforeInit",()=>this.init())}init(){this.pluginName=this.hot.getPluginName(this),this.updatePluginSettings(this.hot.getSettings()[this.constructor.PLUGIN_KEY]);const e=this.constructor.PLUGIN_DEPS,t=Array.isArray(e)?e:[];if(t.length>0){const e=[];if(t.forEach(t=>{const[n,r]=t.split(":");if(!y.has(n))throw new Error(`Unknown plugin dependency type "${n}" was found.`);y.get(n)(r)||e.push(` - ${r} (${n})`)}),e.length>0){const t=[`The ${this.pluginName} plugin requires the following modules:\n`,`${e.join("\n")}\n`].join("");S.push(t)}}R||(R=(0,a.getPluginsNames)()),R.indexOf(this.pluginName)>=0&&R.splice(R.indexOf(this.pluginName),1),this.hot.addHookOnce("afterPluginsInitialized",()=>{this.isEnabled&&this.isEnabled()&&this.enablePlugin()});if(0===R.length){if(S.length>0){const e=[`${S.join("\n")}\n`,"You have to import and register them manually."].join("");throw S.length=0,new Error(e)}this.hot.runHooks("afterPluginsInitialized")}this.initialized=!0}enablePlugin(){this.enabled=!0}disablePlugin(){var e;null===(e=this.eventManager)||void 0===e||e.clear(),this.clearHooks(),this.enabled=!1}getSetting(e){var t=this;const n=this.constructor.DEFAULT_SETTINGS,r=this.constructor.SETTINGS_VALIDATORS;if(void 0===e)return(0,i.isObject)(E(T,this))?(0,i.assignObjectDefaults)(E(T,this),n):E(T,this);let s;var o;if((Array.isArray(E(T,this))||(0,i.isObject)(E(T,this)))&&n[C]===e)s=Array.isArray(E(T,this))?E(T,this):null!==(o=E(T,this)[e])&&void 0!==o?o:n[e];else if(e.includes(".")){const t=(0,i.getProperty)(E(T,this),e),r=(0,i.getProperty)(n,e);s=(0,i.isObject)(t)?(0,i.assignObjectDefaults)(t,r):void 0!==t?t:r}else s=(0,i.isObject)(E(T,this))?(0,i.assignObjectDefaults)(E(T,this),n)[e]:n[e];if("function"==typeof s&&r&&"object"==typeof r){const n=r[e];if(n&&"function"==typeof n)return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];const a=s(...i);if(!1===n(a)){const n=i.map(e=>"string"==typeof e?`"${e}"`:"").join(", "),r=i.length>0?n:"";return void(0,g.warn)(`${t.pluginName} Plugin: "${e}" function (${r}) result is not valid and will be ignored.`)}return a}}return s}updatePluginSettings(e){const t=this.constructor.SETTINGS_VALIDATORS;if(t&&"function"==typeof t&&"object"!=typeof e){return!1===t(e)?void(0,g.warn)(`${this.pluginName} Plugin: option is not valid and it will be ignored.`):(m(T,this,e),E(T,this))}return t&&"object"==typeof t&&"object"==typeof e?(null!==E(T,this)&&"object"==typeof E(T,this)||m(T,this,{...this.constructor.DEFAULT_SETTINGS}),Object.keys(t).forEach(n=>{if(!(n in e))return;const r=t[n];!1!==(!r||r(e[n]))?E(T,this)[n]=e[n]:(0,g.warn)(`${this.pluginName} Plugin: "${n}" option is not valid and it will be ignored.`)}),E(T,this)):(m(T,this,e),e)}addHook(e,t,n){E(_,this)[e]=E(_,this)[e]||[];const r=E(_,this)[e];this.hot.addHook(e,t,n),r.push(t),E(_,this)[e]=r}removeHooks(e){(0,o.arrayEach)(E(_,this)[e]||[],t=>{this.hot.removeHook(e,t)})}clearHooks(){const e=E(_,this);(0,i.objectEach)(e,(e,t)=>this.removeHooks(t)),e.length=0}callOnPluginsReady(e){this.isPluginsReady?e():this.pluginsInitializedCallbacks.push(e)}onAfterPluginsInitialized(){(0,o.arrayEach)(this.pluginsInitializedCallbacks,e=>e()),this.pluginsInitializedCallbacks.length=0,this.isPluginsReady=!0}onUpdateSettings(e){const t=w(N,this,A).call(this,e);this.isEnabled&&(this.enabled&&!this.isEnabled()&&this.disablePlugin(),!this.enabled&&this.isEnabled()&&this.enablePlugin(),this.enabled&&this.isEnabled()&&t&&(this.updatePluginSettings(e[this.constructor.PLUGIN_KEY]),this.updatePlugin(e)))}updatePlugin(){}destroy(){var e;m(T,this,null),null===(e=this.eventManager)||void 0===e||e.destroy(),this.clearHooks(),(0,i.objectEach)(this,(e,t)=>{"hot"!==t&&(this[t]=null)}),delete this.t,delete this.hot}}},69550:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588);var s=r(n(81115)),i=n(38942),o=n(89090);function a(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function l(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var h=new WeakSet;function u(e){const{wtSettings:t,inlineStartOverlay:n,wtTable:r,wtViewport:s,totalColumns:o,rootWindow:a}=this.dataAccessObject;if(n.mainTableScrollableElement===a){let l=null;if(t.getSetting("rtlMode")){const e=r.TABLE.getBoundingClientRect(),t=this.dataAccessObject.rootWindow.document.documentElement.offsetWidth;l=Math.abs(e.right-t)}else{l=(0,i.offset)(r.wtRootElement).left}const h=Math.abs((0,i.getScrollLeft)(a,a));if(l>h){const t=(0,i.innerWidth)(a);let r=s.getRowHeaderWidth();for(let s=1;s<=o;s++)if(r+=n.sumCellSizes(s-1,s),l+r-h>=t){e=s-2;break}}}return e}function c(e){const{topOverlay:t,wtTable:n,wtViewport:r,totalRows:s,rootWindow:o}=this.dataAccessObject;if(t.mainTableScrollableElement===o){const a=(0,i.offset)(n.wtRootElement),l=(0,i.getScrollTop)(o,o);if(a.top>l){const n=(0,i.innerHeight)(o);let h=r.getColumnHeaderHeight();for(let r=1;r<=s;r++)if(h+=t.sumCellSizes(r-1,r),a.top+h-l>=n){e=r-2;break}}}return e}t.default=class{constructor(e){a(this,h),(0,s.default)(this,"dataAccessObject",void 0),this.dataAccessObject=e}scrollViewport(e,t,n){if(e.col<0||e.row<0)return!1;const r=this.scrollViewportHorizontally(e.col,t),s=this.scrollViewportVertically(e.row,n);return r||s}scrollViewportHorizontally(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";const{drawn:n,totalColumns:r}=this.dataAccessObject;if(!n)return!1;const s=(0,o.createObjectPropListener)(t);if(e=this.dataAccessObject.wtSettings.getSetting("onBeforeViewportScrollHorizontally",e,s),!Number.isInteger(e)||e<0||e>r)return!1;t=s.value;const{fixedColumnsStart:i,inlineStartOverlay:a}=this.dataAccessObject,l="auto"===t;if(l&&e<i)return!1;const h=this.getFirstVisibleColumn(),u=this.getLastVisibleColumn();let c=!1;return(l&&(e<h||e>u)||!l)&&(c=a.scrollTo(e,l?e>=this.getLastPartiallyVisibleColumn():"end"===t)),c}scrollViewportVertically(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";const{drawn:n,totalRows:r}=this.dataAccessObject;if(!n)return!1;const s=(0,o.createObjectPropListener)(t);if(e=this.dataAccessObject.wtSettings.getSetting("onBeforeViewportScrollVertically",e,s),!Number.isInteger(e)||e<0||e>r)return!1;t=s.value;const{fixedRowsBottom:i,fixedRowsTop:a,topOverlay:l}=this.dataAccessObject,h="auto"===t;if(h&&(e<a||e>r-i-1))return!1;const u=this.getFirstVisibleRow(),c=this.getLastVisibleRow();let d=!1;return(h&&(e<u||e>c)||!h)&&(d=l.scrollTo(e,h?e>=this.getLastPartiallyVisibleRow():"bottom"===t)),d}getFirstVisibleRow(){return this.dataAccessObject.wtTable.getFirstVisibleRow()}getLastVisibleRow(){return l(h,this,c).call(this,this.dataAccessObject.wtTable.getLastVisibleRow())}getFirstPartiallyVisibleRow(){return this.dataAccessObject.wtTable.getFirstPartiallyVisibleRow()}getLastPartiallyVisibleRow(){return l(h,this,c).call(this,this.dataAccessObject.wtTable.getLastPartiallyVisibleRow())}getFirstVisibleColumn(){return this.dataAccessObject.wtTable.getFirstVisibleColumn()}getLastVisibleColumn(){return l(h,this,u).call(this,this.dataAccessObject.wtTable.getLastVisibleColumn())}getFirstPartiallyVisibleColumn(){return this.dataAccessObject.wtTable.getFirstPartiallyVisibleColumn()}getLastPartiallyVisibleColumn(){return l(h,this,u).call(this,this.dataAccessObject.wtTable.getLastPartiallyVisibleColumn())}}},69786:(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(n))e=e.replace(n,""),o=0,a+=1,t[a]=[""];else{let n="";if(e.startsWith('"')){let t=0,r=!0;for(;r;){const s=e.slice(0,1);'"'===s&&(t+=1),n+=s,(0===(e=e.slice(1)).length||e.match(/^[\t\r\n]/)&&t%2==0)&&(r=!1)}n=n.replace(/^"/,"").replace(/"$/,"").replace(/["]*/g,e=>new Array(Math.floor(e.length/2)).fill('"').join(""))}else{const t=e.match(r);n=t?t[0]:"",e=e.slice(n.length)}t[a][o]=n}return t},t.stringify=function(e){let t,n,r,s,i,o="";for(t=0,n=e.length;t<n;t+=1){for(s=e[t].length,r=0;r<s;r+=1)r>0&&(o+="\t"),i=e[t][r],"string"==typeof i?i.indexOf("\n")>-1?o+=`"${i.replace(/"/g,'""')}"`:o+=i:o+=null==i?"":i;t!==n-1&&(o+="\n")}return o};const n=/^(\r\n|\n\r|\r|\n)/,r=/^[^\t\r\n]+/,s=/^\t/},69843:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(33021);t.RENDERER_TYPE=r.RENDERER_TYPE,t.timeRenderer=r.timeRenderer},69911:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(1934);t.CELL_TYPE=r.CELL_TYPE,t.PasswordCellType=r.PasswordCellType},69946:(e,t,n)=>{"use strict";var r=n(20330);e.exports=function(e){return r(e.length)}},70155:(e,t,n)=>{"use strict";var r=n(16539),s=n(13479);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){s(e,"throw",t)}}},70345:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(81115)),i=n(37849),o=n(89090),a=r(n(24285));class l{constructor(e){(0,s.default)(this,"wasLastActionShow",!0),(0,s.default)(this,"showDebounced",null),(0,s.default)(this,"hidingTimer",null),this.updateDelay(e)}hide(){this.wasLastActionShow=!1,this.hidingTimer=setTimeout(()=>{!1===this.wasLastActionShow&&this.runLocalHooks("hide")},250)}show(e){this.wasLastActionShow=!0,this.showDebounced(e)}cancelHiding(){this.wasLastActionShow=!0,clearTimeout(this.hidingTimer),this.hidingTimer=null}updateDelay(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250;this.showDebounced=(0,i.debounce)(e=>{this.wasLastActionShow&&this.runLocalHooks("show",e.from.row,e.from.col)},e)}destroy(){this.clearLocalHooks()}}(0,o.mixin)(l,a.default);t.default=l},70355:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(60964);t.VALIDATOR_TYPE=r.VALIDATOR_TYPE,t.numericValidator=r.numericValidator},70363:(e,t,n)=>{"use strict";t.__esModule=!0,t.condition=a;var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217)),s=n(25039),i=n(54342);const o=t.CONDITION_NAME="empty";function a(e){return(0,i.isEmpty)(e.value)}(0,s.registerCondition)(o,a,{name:r.FILTERS_CONDITIONS_EMPTY,inputsCount:0,showOperators:!0})},70385:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(89090);const s={getFirstRenderedRow(){const e=this.dataAccessObject.startRowRendered;return null===e?-1:e},getFirstVisibleRow(){const e=this.dataAccessObject.startRowVisible;return null===e?-1:e},getFirstPartiallyVisibleRow(){const e=this.dataAccessObject.startRowPartiallyVisible;return null===e?-1:e},getLastRenderedRow(){const e=this.dataAccessObject.endRowRendered;return null===e?-1:e},getLastVisibleRow(){const e=this.dataAccessObject.endRowVisible;return null===e?-1:e},getLastPartiallyVisibleRow(){const e=this.dataAccessObject.endRowPartiallyVisible;return null===e?-1:e},getRenderedRowsCount(){return this.dataAccessObject.countRowsRendered},getVisibleRowsCount(){return this.dataAccessObject.countRowsVisible},getColumnHeadersCount(){return this.dataAccessObject.columnHeaders.length}};(0,r.defineGetter)(s,"MIXIN_NAME","calculatedRows",{writable:!1,enumerable:!1});t.default=s},70573:(e,t,n)=>{"use strict";var r=n(27538),s=n(19617),i=n(49510),o=n(16539),a=n(83203),l=n(39522),h=n(70155),u=n(58719),c=n(13479),d=n(43832),g=n(57625),p=!u&&!d("filter",function(){}),f=!u&&!p&&g("filter",TypeError),m=u||p||f,E=l(function(){for(var e,t,n=this.iterator,r=this.predicate,i=this.next;;){if(e=o(s(i,n)),this.done=!!e.done)return;if(t=e.value,h(n,r,[t,this.counter++],!0))return t}});r({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 E(a(this),{predicate:e})}})},70672:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostRight",callback(e){const{selection:t,columnIndexMapper:n}=e,{highlight:r,from:s,to:i}=e.getSelectedRangeActive(),o=r.isHeader()&&t.isSelectedByColumnHeader();if(r.isCell()||o){const a=n.getNearestNotHiddenIndex(...e.isRtl()?[0,1]:[e.countCols()-1,-1]),l=s.clone();l.col=r.col,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,r.clone()),o&&t.selectedByColumnHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(i.row,a)),t.markEndSource()}}}},70923:(e,t,n)=>{"use strict";var r=n(27538),s=n(19596),i=n(46003),o=n(16539),a=n(14326),l=n(67343),h=n(73678),u=n(75460),c=n(89035),d=n(33477),g=n(71671),p=n(36053).IteratorPrototype,f=n(21912),m=n(58719),E="constructor",w="Iterator",y=g("toStringTag"),C=TypeError,v=s[w],S=m||!a(v)||v.prototype!==p||!c(function(){v({})}),R=function(){if(i(this,p),l(this)===p)throw new C("Abstract class Iterator not directly constructable")},T=function(e,t){f?h(p,e,{configurable:!0,get:function(){return t},set:function(t){if(o(this),this===p)throw new C("You can't redefine this property");d(this,e)?this[e]=t:u(this,e,t)}}):p[e]=t};d(p,y)||T(y,w),!S&&d(p,E)&&p[E]!==Object||T(E,R),R.prototype=p,r({global:!0,constructor:!0,forced:S},{Iterator:R})},71219:()=>{},71267:(e,t,n)=>{"use strict";t.__esModule=!0,t.normalizeSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;const n=[];if(0===t)return n;(0,r.arrayEach)(e,e=>{const a=[];let l=0;n.push(a),(0,r.arrayEach)(e,e=>{const n=(0,o.createDefaultHeaderSettings)();if((0,s.isObject)(e)){const{label:t,colspan:r,headerClassName:s}=e;n.label=(0,i.stringify)(t),"number"==typeof r&&r>1&&(n.colspan=r,n.origColspan=r),"string"==typeof s&&(n.headerClassNames=[...s.split(" ")])}else n.label=(0,i.stringify)(e);l+=n.origColspan;let r=!1;if(l>=t&&(n.colspan=n.origColspan-(l-t),n.origColspan=n.colspan,r=!0),a.push(n),n.colspan>1)for(let e=0;e<n.colspan-1;e++)a.push((0,o.createPlaceholderHeaderSettings)());return!r})});const a=Math.max(...(0,r.arrayMap)(n,e=>e.length));return(0,r.arrayEach)(n,e=>{if(e.length<a){const t=(0,r.arrayMap)(new Array(a-e.length),()=>(0,o.createDefaultHeaderSettings)());e.splice(e.length,0,...t)}}),n},n(66182);var r=n(30152),s=n(89090),i=n(54342),o=n(94528)},71399:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182),n(78822),n(86192),n(80729),n(99888),n(12767),n(78644),n(97550),n(81396),n(39691),n(14618);var s=n(57440),i=n(38942),o=n(72740),a=n(30152),l=n(89386),h=n(92164),u=r(n(81736)),c=r(n(12455)),d=n(20160);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,n){return e.set(m(e,t),n),n}function m(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;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 E=t.PLUGIN_KEY="hiddenRows",w=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,n){g(e,t),t.set(e,n)}(this,y,null)}static get PLUGIN_KEY(){return E}static get PLUGIN_PRIORITY(){return w}static get DEFAULT_SETTINGS(){return{copyPasteEnabled:!0,indicators:!1,rows:[]}}isEnabled(){return!!this.hot.getSettings()[E]}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,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(C,e,N).call(e,...n)}),this.addHook("afterGetCellMeta",(e,t,n)=>m(C,this,R).call(this,e,t,n)),this.addHook("modifyRowHeight",(e,t)=>m(C,this,S).call(this,e,t)),this.addHook("afterGetRowHeader",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(C,e,_).call(e,...n)}),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(),n=this.isValidConfig(e);let r=t;const s=p(y,this).getValues().slice(),i=e.length>0;if(n&&i){const t=e.map(e=>this.hot.toPhysicalRow(e));(0,a.arrayEach)(t,e=>{s[e]=!1}),r=(0,a.arrayReduce)(s,(e,t,n)=>(t&&e.push(this.hot.toVisualRow(n)),e),[])}!1!==this.hot.runHooks("beforeUnhideRows",t,r,n&&i)&&(n&&i&&p(y,this).setValues(s),this.hot.runHooks("afterUnhideRows",t,r,n&&i,n&&r.length<t.length))}showRow(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.showRows(t)}hideRows(e){const t=this.getHiddenRows(),n=this.isValidConfig(e);let r=t;n&&(r=Array.from(new Set(t.concat(e))));!1!==this.hot.runHooks("beforeHideRows",t,r,n)&&(n&&this.hot.batchExecution(()=>{(0,a.arrayEach)(e,e=>{p(y,this).setValueAtIndex(this.hot.toPhysicalRow(e),!0)})},!0),this.hot.runHooks("afterHideRows",t,r,n,n&&r.length>t.length))}hideRow(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];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,n){if(!1===this.getSetting("copyPasteEnabled")&&this.isHidden(e)&&(n.skipRowOnPaste=!0),this.isHidden(e-1))n.className=n.className||"",-1===n.className.indexOf("afterHiddenRow")&&(n.className+=" afterHiddenRow");else if(n.className){const e=n.className.split(" ");if(e.length>0){const t=e.indexOf("afterHiddenRow");t>-1&&e.splice(t,1),n.className=e.join(" ")}}}function T(e){if(this.getSetting("copyPasteEnabled"))return e;const t=[],n=(e,n,r,s)=>{t.push({startRow:e,endRow:n,startCol:r,endCol:s})};return(0,a.arrayEach)(e,e=>{let t=!0,r=0;(0,o.rangeEach)(e.startRow,e.endRow,s=>{this.isHidden(s)?(t||n(r,s-1,e.startCol,e.endCol),t=!0):(t&&(r=s),s===e.endRow&&n(r,s,e.startCol,e.endCol),t=!1)})}),t}function _(e,t){if(!this.getSetting("indicators")||e<0)return;const n=[];e>=1&&this.isHidden(e-1)&&n.push("afterHiddenRow"),e<this.hot.countRows()-1&&this.isHidden(e+1)&&n.push("beforeHiddenRow"),(0,i.addClass)(t,n)}function N(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},71426:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:o,checkable:!0,ariaChecked(){return(0,r.checkSelectionConsistency)(this.getSelectedRange(),(e,t)=>this.getCellMeta(e,t).readOnly)},ariaLabel(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_READ_ONLY)},name(){let e=this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_READ_ONLY);return(0,r.checkSelectionConsistency)(this.getSelectedRange(),(e,t)=>this.getCellMeta(e,t).readOnly)&&(e=(0,r.markLabelAsSelected)(e)),e},callback(){const e=this.getSelectedRange(),t=(0,r.checkSelectionConsistency)(e,(e,t)=>this.getCellMeta(e,t).readOnly);(0,s.arrayEach)(e,e=>{e.forAll((e,n)=>{e>=0&&n>=0&&this.setCellMeta(e,n,"readOnly",!t)})}),this.render()},disabled(){const e=this.getSelectedRangeActive();return!e||(!!e.isSingleHeader()||(!!this.selection.isSelectedByCorner()||(0===this.countRows()||0===this.countCols()||(!this.getSelectedRange()||0===this.getSelectedRange().length))))}}};var r=n(90082),s=n(30152),i=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217));const o=t.KEY="make_read_only"},71427:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588);var s=n(38942),i=r(n(3159)),o=n(80484),a=n(7878),l=n(21985);class h extends o.Overlay{constructor(e,t,n,r){super(e,t,l.CLONE_INLINE_START,n,r)}createTable(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new i.default(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}resetFixedPosition(){const{wtTable:e}=this.wot;if(!this.needFullRender||!this.shouldBeRendered()||!e.holder.parentNode)return!1;const{rootWindow:t}=this.domBindings,n=this.clone.wtTable.holder.parentNode,r=this.wtSettings.getSetting("preventOverflow");let i=0;this.trimmingContainer!==t||r&&"horizontal"===r?(i=this.getScrollPosition(),(0,s.resetCssTransform)(n)):(i=this.getOverlayOffset()*(this.isRtl()?-1:1),(0,s.setOverlayPosition)(n,`${i}px`,"0px"));const o=this.adjustHeaderBordersPosition(i);return this.adjustElementsSize(),o}setScrollPosition(e){const{rootWindow:t}=this.domBindings;let n=!1;this.isRtl()&&(e=-e);const r=this.mainTableScrollableElement;if(r===t&&e!==t.scrollX){const r=t.scrollX;t.scrollTo(e,(0,s.getWindowScrollTop)(t)),n=r!==t.scrollX}else if(e!==r.scrollLeft){const t=r.scrollLeft;r.scrollLeft=e,n=t!==r.scrollLeft}return n}onScroll(){this.wtSettings.getSetting("onScrollVertically")}sumCellSizes(e,t){const n=this.wtSettings.getSetting("defaultColumnWidth");let r=e,s=0;for(;r<t;)s+=this.wot.wtTable.getColumnWidth(r)||n,r+=1;return s}adjustElementsSize(){this.updateTrimmingContainer(),this.needFullRender&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}adjustRootElementSize(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:n,rootWindow:r}=this.domBindings,i=this.clone.wtTable.holder.parentNode.style,o=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==r||"vertical"===o){let r=t.getWorkspaceHeight();t.hasHorizontalScroll()&&(r-=(0,s.getScrollbarWidth)(n)),r=Math.min(r,e.wtRootElement.scrollHeight),i.height=`${r}px`}else i.height="";this.clone.wtTable.holder.style.height=i.height;const a=(0,s.outerWidth)(this.clone.wtTable.TABLE);i.width=`${a}px`}adjustRootChildrenSize(){const{holder:e}=this.clone.wtTable,t=(0,a.getCornerStyle)(this.wot),n=this.wot.selectionManager.getFocusSelection()?parseInt(t.width,10)/2:0;this.clone.wtTable.hider.style.height=this.hider.style.height,e.style.height=e.parentNode.style.height,e.style.width=`${parseInt(e.parentNode.style.width,10)+n}px`}applyToDOM(){const e=this.wtSettings.getSetting("totalColumns"),t=this.isRtl()?"right":"left";if("number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition)this.spreader.style[t]=`${this.wot.wtViewport.columnsRenderCalculator.startPosition}px`;else{if(0!==e)throw new Error("Incorrect value of the columnsRenderCalculator");this.spreader.style[t]="0"}this.isRtl()?this.spreader.style.left="":this.spreader.style.right="",this.needFullRender&&this.syncOverlayOffset()}syncOverlayOffset(){"number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition?this.clone.wtTable.spreader.style.top=`${this.wot.wtViewport.rowsRenderCalculator.startPosition}px`:this.clone.wtTable.spreader.style.top=""}scrollTo(e,t){const{wtSettings:n}=this,r=n.getSetting("rowHeaders"),i=n.getSetting("fixedColumnsStart"),o=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,a=0===i&&r.length>0&&!(0,s.hasClass)(o.parentNode,"innerBorderInlineStart")?1:0;let l=this.getTableParentOffset(),h=0;if(t){this.wot.wtTable.getColumnWidth(e)>this.wot.wtViewport.getViewportWidth()&&(t=!1)}return t&&o.offsetWidth!==o.clientWidth&&(h=(0,s.getScrollbarWidth)(this.domBindings.rootDocument)),t?(l+=this.sumCellSizes(0,e+1),l-=this.wot.wtViewport.getViewportWidth(),l+=a):l+=this.sumCellSizes(this.wtSettings.getSetting("fixedColumnsStart"),e),l+=h,(0,s.getMaximumScrollLeft)(this.mainTableScrollableElement)===l-a&&a>0&&this.wot.wtOverlays.expandHiderHorizontallyBy(a),this.setScrollPosition(l)}getTableParentOffset(){let e=0;return this.wtSettings.getSetting("preventOverflow")||this.trimmingContainer!==this.domBindings.rootWindow||(e=this.wot.wtTable.holderOffset.left),e}getScrollPosition(){return Math.abs((0,s.getScrollLeft)(this.mainTableScrollableElement,this.domBindings.rootWindow))}getOverlayOffset(){const{rootWindow:e}=this.domBindings,t=this.wtSettings.getSetting("preventOverflow");let n=0;if(this.trimmingContainer===e&&(!t||"horizontal"!==t)){n=this.isRtl()?Math.abs(Math.min(this.getTableParentOffset()-this.getScrollPosition(),0)):Math.max(this.getScrollPosition()-this.getTableParentOffset(),0);n>this.wot.wtTable.getTotalWidth()-this.clone.wtTable.getTotalWidth()&&(n=0)}return n}adjustHeaderBordersPosition(e){const{wtSettings:t}=this,n=this.wot.wtTable.holder.parentNode,r=t.getSetting("rowHeaders"),i=t.getSetting("fixedColumnsStart"),o=t.getSetting("totalRows"),a="vertical"===t.getSetting("preventOverflow");o?(0,s.removeClass)(n,"emptyRows"):(0,s.addClass)(n,"emptyRows");let l=!1;if(!a)if(i&&!r.length)(0,s.addClass)(n,"innerBorderLeft innerBorderInlineStart");else if(!i&&r.length){const t=(0,s.hasClass)(n,"innerBorderInlineStart");e?((0,s.addClass)(n,"innerBorderLeft innerBorderInlineStart"),l=!t):((0,s.removeClass)(n,"innerBorderLeft innerBorderInlineStart"),l=t)}return l}}t.InlineStartOverlay=h},71671:(e,t,n)=>{"use strict";var r=n(19596),s=n(36405),i=n(33477),o=n(57596),a=n(71763),l=n(83916),h=r.Symbol,u=s("wks"),c=l?h.for||h:h&&h.withoutSetter||o;e.exports=function(e){return i(u,e)||(u[e]=a&&i(h,e)?h[e]:c("Symbol."+e)),u[e]}},71740:(e,t,n)=>{"use strict";t.__esModule=!0,t.triggerNodeModification=function(e,t,n){if(!a.has(e))throw new Error(`The node modifier action ("${e}") does not exist.`);return a.get(e)(t,n)},n(22588);var r=n(66597),s=n(26710),i=n(27464),o=n(38709);const a=new Map([["collapse",r.collapseNode],["expand",s.expandNode],["hide-column",i.hideColumn],["show-column",o.showColumn]])},71749:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588);var s=n(57440),i=r(n(25776)),o=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(32591));const a=t.PLUGIN_KEY="exportFile",l=t.PLUGIN_PRIORITY=240;class h extends s.BasePlugin{static get PLUGIN_KEY(){return a}static get PLUGIN_PRIORITY(){return l}isEnabled(){return!0}exportAsString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._createTypeFormatter(e,t).export()}exportAsBlob(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._createBlob(this._createTypeFormatter(e,t))}downloadFile(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{rootDocument:n,rootWindow:r}=this.hot,s=this._createTypeFormatter(e,t),i=this._createBlob(s),o=r.URL||r.webkitURL,a=n.createElement("a"),l=`${s.options.filename}.${s.options.fileExtension}`;if(void 0!==a.download){const e=o.createObjectURL(i);a.style.display="none",a.setAttribute("href",e),a.setAttribute("download",l),n.body.appendChild(a),a.dispatchEvent(new MouseEvent("click")),n.body.removeChild(a),setTimeout(()=>{o.revokeObjectURL(e)},100)}else navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob(i,l)}_createTypeFormatter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!o.EXPORT_TYPES[e])throw new Error(`Export format type "${e}" is not supported.`);return(0,o.default)(e,new i.default(this.hot),t)}_createBlob(e){let t=null;return"undefined"!=typeof Blob&&(t=new Blob([e.export()],{type:`${e.options.mimeType};charset=${e.options.encoding}`})),t}}t.ExportFile=h},71763:(e,t,n)=>{"use strict";var r=n(24659),s=n(89035),i=n(19596).String;e.exports=!!Object.getOwnPropertySymbols&&!s(function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})},71794:(e,t,n)=>{"use strict";var r=n(31884),s=n(84990),i=n(54230),o=n(29521),a=n(43209),l=n(82719),h=s.Set,u=s.add,c=s.has;e.exports=function(e){var t=r(this),n=o(e),s=new h;return i(t)>n.size?l(n.getIterator(),function(e){c(t,e)&&u(s,e)}):a(t,function(e){n.includes(e)&&u(s,e)}),s}},71939:(e,t,n)=>{"use strict";var r=n(79212);e.exports=function(e,t,n){for(var s in t)r(e,s,t[s],n);return e}},72023:e=>{"use strict";e.exports=function(e){try{var t=new Set,n={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}},r=t[e](n);return 1===r.size&&4===r.values().next().value}catch(e){return!1}}},72049:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"editorFastOpen",callback(e,t){const{highlight:n}=e.getSelectedRangeActive();n.isHeader()||e._getEditorManager().openEditor(null,t,!0)}}},72071:(e,t,n)=>{"use strict";var r=n(48651);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},72109:()=>{},72632:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"scrollToFocusedCell",callback(e){const{highlight:t}=e.getSelectedRangeActive(),n=e.getFirstFullyVisibleRow()-1,r=e.getFirstFullyVisibleColumn()-1,s=e.getLastFullyVisibleRow()+1,i=e.getLastFullyVisibleColumn()+1,o=e._createCellCoords(n,r),a=e._createCellCoords(s,i);if(!e._createCellRange(o,o,a).includes(t)&&(t.row>=0||t.col>=0)){const n={};if(t.col>=0){const r=Math.floor(e.countVisibleCols()/2);n.col=Math.max(t.col-r,0)}if(t.row>=0){const r=Math.floor(e.countVisibleRows()/2);n.row=Math.max(t.row-r,0)}e.scrollViewportTo({...n,verticalSnap:"top",horizontalSnap:"start"})}}}},72740:(e,t,n)=>{"use strict";function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=typeof e;if("number"===n)return!isNaN(e)&&isFinite(e);if("string"===n){if(0===e.length)return!1;if(1===e.length)return/\d/.test(e);const n=Array.from(new Set([".",...t])).map(e=>`\\${e}`).join("|");return new RegExp(`^[+-]?(((${n})?\\d+((${n})\\d+)?(e[+-]?\\d+)?)|(0x[a-f\\d]+))$`,"i").test(e.trim())}return"object"===n&&!(!e||"number"!=typeof e.valueOf()||e instanceof Date)}t.__esModule=!0,t.clamp=function(e,t,n){if(Math.min(e,t)===e)return t;if(Math.max(e,n)===e)return n;return e},t.getParsedNumber=function(e){const t=e.replace(",",".");if(!1===isNaN(parseFloat(t)))return parseFloat(t);return null},t.isNumeric=r,t.isNumericLike=function(e){return r(e,[","])},t.isUnsignedNumber=function(e){return Number.isInteger(e)&&e>=0},t.rangeEach=function(e,t,n){let r=-1;"function"==typeof t?(n=t,t=e):r=e-1;for(;++r<=t&&!1!==n(r););},t.rangeEachReverse=function(e,t,n){let r=e+1;"function"==typeof t&&(n=t,t=0);for(;--r>=t&&!1!==n(r););},t.valueAccordingPercent=function(e,t){return t=parseInt(t.toString().replace("%",""),10),t=isNaN(t)?0:t,parseInt(e*t/100,10)},n(78822),n(86192),n(80729),n(99888),n(12767),n(78644),n(97550),n(81396),n(14618)},73168:(e,t,n)=>{"use strict";var r={};r[n(71671)("toStringTag")]="z",e.exports="[object z]"===String(r)},73374:()=>{},73416:(e,t,n)=>{"use strict";t.__esModule=!0,t.registerAllPlugins=function(){(0,W.registerPlugin)(r.AutoColumnSize),(0,W.registerPlugin)(s.Autofill),(0,W.registerPlugin)(i.AutoRowSize),(0,W.registerPlugin)(a.BindRowsWithHeaders),(0,W.registerPlugin)(l.CollapsibleColumns),(0,W.registerPlugin)(h.ColumnSorting),(0,W.registerPlugin)(u.ColumnSummary),(0,W.registerPlugin)(c.Comments),(0,W.registerPlugin)(d.ContextMenu),(0,W.registerPlugin)(g.CopyPaste),(0,W.registerPlugin)(p.CustomBorders),(0,W.registerPlugin)(f.DragToScroll),(0,W.registerPlugin)(m.DropdownMenu),(0,W.registerPlugin)(E.ExportFile),(0,W.registerPlugin)(w.Filters),(0,W.registerPlugin)(y.Formulas),(0,W.registerPlugin)(C.HiddenColumns),(0,W.registerPlugin)(v.HiddenRows),(0,W.registerPlugin)(S.ManualColumnFreeze),(0,W.registerPlugin)(R.ManualColumnMove),(0,W.registerPlugin)(T.ManualColumnResize),(0,W.registerPlugin)(_.ManualRowMove),(0,W.registerPlugin)(N.ManualRowResize),(0,W.registerPlugin)(A.MergeCells),(0,W.registerPlugin)(b.MultiColumnSorting),(0,W.registerPlugin)(M.MultipleSelectionHandles),(0,W.registerPlugin)(I.NestedHeaders),(0,W.registerPlugin)(O.NestedRows),(0,W.registerPlugin)(x.Pagination),(0,W.registerPlugin)(P.PersistentState),(0,W.registerPlugin)(L.Search),(0,W.registerPlugin)(D.StretchColumns),(0,W.registerPlugin)(k.TouchScroll),(0,W.registerPlugin)(H.TrimRows),(0,W.registerPlugin)(F.UndoRedo),(0,W.registerPlugin)(U.Dialog),(0,W.registerPlugin)(V.Loading),(0,W.registerPlugin)(B.EmptyDataState)};var r=n(60309);t.AutoColumnSize=r.AutoColumnSize;var s=n(37279);t.Autofill=s.Autofill;var i=n(90063);t.AutoRowSize=i.AutoRowSize;var o=n(57440);t.BasePlugin=o.BasePlugin;var a=n(81615);t.BindRowsWithHeaders=a.BindRowsWithHeaders;var l=n(7690);t.CollapsibleColumns=l.CollapsibleColumns;var h=n(48793);t.ColumnSorting=h.ColumnSorting;var u=n(53113);t.ColumnSummary=u.ColumnSummary;var c=n(1411);t.Comments=c.Comments;var d=n(85111);t.ContextMenu=d.ContextMenu;var g=n(4307);t.CopyPaste=g.CopyPaste;var p=n(15941);t.CustomBorders=p.CustomBorders;var f=n(84803);t.DragToScroll=f.DragToScroll;var m=n(13627);t.DropdownMenu=m.DropdownMenu;var E=n(93605);t.ExportFile=E.ExportFile;var w=n(43580);t.Filters=w.Filters;var y=n(35030);t.Formulas=y.Formulas;var C=n(27872);t.HiddenColumns=C.HiddenColumns;var v=n(88596);t.HiddenRows=v.HiddenRows;var S=n(35514);t.ManualColumnFreeze=S.ManualColumnFreeze;var R=n(24112);t.ManualColumnMove=R.ManualColumnMove;var T=n(8741);t.ManualColumnResize=T.ManualColumnResize;var _=n(85008);t.ManualRowMove=_.ManualRowMove;var N=n(43461);t.ManualRowResize=N.ManualRowResize;var A=n(7344);t.MergeCells=A.MergeCells;var b=n(95532);t.MultiColumnSorting=b.MultiColumnSorting;var M=n(46356);t.MultipleSelectionHandles=M.MultipleSelectionHandles;var I=n(34280);t.NestedHeaders=I.NestedHeaders;var O=n(67875);t.NestedRows=O.NestedRows;var x=n(22001);t.Pagination=x.Pagination;var P=n(67781);t.PersistentState=P.PersistentState;var L=n(89185);t.Search=L.Search;var D=n(55953);t.StretchColumns=D.StretchColumns;var k=n(50305);t.TouchScroll=k.TouchScroll;var H=n(42772);t.TrimRows=H.TrimRows;var F=n(98359);t.UndoRedo=F.UndoRedo;var U=n(68457);t.Dialog=U.Dialog;var V=n(77587);t.Loading=V.Loading;var B=n(66455);t.EmptyDataState=B.EmptyDataState;var W=n(28585);t.registerPlugin=W.registerPlugin,t.getPlugin=W.getPlugin,t.getPluginsNames=W.getPluginsNames},73481:(e,t,n)=>{"use strict";var r=n(27538),s=n(19617),i=n(49510),o=n(16539),a=n(83203),l=n(39522),h=n(70155),u=n(13479),c=n(43832),d=n(57625),g=n(58719),p=!g&&!c("map",function(){}),f=!g&&!p&&d("map",TypeError),m=g||p||f,E=l(function(){var e=this.iterator,t=o(s(this.next,e));if(!(this.done=!!t.done))return h(e,this.mapper,[t.value,this.counter++],!0)});r({target:"Iterator",proto:!0,real:!0,forced:m},{map:function(e){o(this);try{i(e)}catch(e){u(this,"throw",e)}return f?s(f,this,e):new E(a(this),{mapper:e})}})},73678:(e,t,n)=>{"use strict";var r=n(16135),s=n(82397);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),s.f(e,t,n)}},73722:(e,t,n)=>{"use strict";
|
|
287
287
|
/*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */const{entries:r,setPrototypeOf:s,isFrozen:i,getPrototypeOf:o,getOwnPropertyDescriptor:a}=Object;let{freeze:l,seal:h,create:u}=Object,{apply:c,construct:d}="undefined"!=typeof Reflect&&Reflect;l||(l=function(e){return e}),h||(h=function(e){return e}),c||(c=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),s=2;s<n;s++)r[s-2]=arguments[s];return e.apply(t,r)}),d||(d=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const g=b(Array.prototype.forEach),p=b(Array.prototype.lastIndexOf),f=b(Array.prototype.pop),m=b(Array.prototype.push),E=b(Array.prototype.splice),w=b(String.prototype.toLowerCase),y=b(String.prototype.toString),C=b(String.prototype.match),v=b(String.prototype.replace),S=b(String.prototype.indexOf),R=b(String.prototype.trim),T=b(Object.prototype.hasOwnProperty),_=b(RegExp.prototype.test),N=(A=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d(A,t)});var A;function b(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return c(e,t,r)}}function M(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w;s&&s(e,null);let r=t.length;for(;r--;){let s=t[r];if("string"==typeof s){const e=n(s);e!==s&&(i(t)||(t[r]=e),s=e)}e[s]=!0}return e}function I(e){for(let t=0;t<e.length;t++){T(e,t)||(e[t]=null)}return e}function O(e){const t=u(null);for(const[n,s]of r(e)){T(e,n)&&(Array.isArray(s)?t[n]=I(s):s&&"object"==typeof s&&s.constructor===Object?t[n]=O(s):t[n]=s)}return t}function x(e,t){for(;null!==e;){const n=a(e,t);if(n){if(n.get)return b(n.get);if("function"==typeof n.value)return b(n.value)}e=o(e)}return function(){return null}}const P=l(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),L=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),D=l(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),k=l(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),H=l(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),F=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),U=l(["#text"]),V=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),B=l(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),W=l(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Y=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),G=h(/\{\{[\w\W]*|[\w\W]*\}\}/gm),j=h(/<%[\w\W]*|[\w\W]*%>/gm),z=h(/\$\{[\w\W]*/gm),$=h(/^data-[\-\w.\u00B7-\uFFFF]+$/),K=h(/^aria-[\-\w]+$/),X=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=h(/^(?:\w+script|data):/i),Q=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Z=h(/^html$/i),J=h(/^[a-z][.\w]*(-[.\w]+)+$/i);var ee=Object.freeze({__proto__:null,ARIA_ATTR:K,ATTR_WHITESPACE:Q,CUSTOM_ELEMENT:J,DATA_ATTR:$,DOCTYPE_NAME:Z,ERB_EXPR:j,IS_ALLOWED_URI:X,IS_SCRIPT_OR_DATA:q,MUSTACHE_EXPR:G,TMPLIT_EXPR:z});const te=1,ne=3,re=7,se=8,ie=9,oe=function(){return"undefined"==typeof window?null:window};var ae=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oe();const n=t=>e(t);if(n.version="3.3.0",n.removed=[],!t||!t.document||t.document.nodeType!==ie||!t.Element)return n.isSupported=!1,n;let{document:s}=t;const i=s,o=i.currentScript,{DocumentFragment:a,HTMLTemplateElement:h,Node:c,Element:d,NodeFilter:A,NamedNodeMap:b=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:I,DOMParser:G,trustedTypes:j}=t,z=d.prototype,$=x(z,"cloneNode"),K=x(z,"remove"),q=x(z,"nextSibling"),Q=x(z,"childNodes"),J=x(z,"parentNode");if("function"==typeof h){const e=s.createElement("template");e.content&&e.content.ownerDocument&&(s=e.content.ownerDocument)}let ae,le="";const{implementation:he,createNodeIterator:ue,createDocumentFragment:ce,getElementsByTagName:de}=s,{importNode:ge}=i;let pe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof r&&"function"==typeof J&&he&&void 0!==he.createHTMLDocument;const{MUSTACHE_EXPR:fe,ERB_EXPR:me,TMPLIT_EXPR:Ee,DATA_ATTR:we,ARIA_ATTR:ye,IS_SCRIPT_OR_DATA:Ce,ATTR_WHITESPACE:ve,CUSTOM_ELEMENT:Se}=ee;let{IS_ALLOWED_URI:Re}=ee,Te=null;const _e=M({},[...P,...L,...D,...H,...U]);let Ne=null;const Ae=M({},[...V,...B,...W,...Y]);let be=Object.seal(u(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Me=null,Ie=null;const Oe=Object.seal(u(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let xe=!0,Pe=!0,Le=!1,De=!0,ke=!1,He=!0,Fe=!1,Ue=!1,Ve=!1,Be=!1,We=!1,Ye=!1,Ge=!0,je=!1,ze=!0,$e=!1,Ke={},Xe=null;const qe=M({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Qe=null;const Ze=M({},["audio","video","img","source","image","track"]);let Je=null;const et=M({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tt="http://www.w3.org/1998/Math/MathML",nt="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml";let st=rt,it=!1,ot=null;const at=M({},[tt,nt,rt],y);let lt=M({},["mi","mo","mn","ms","mtext"]),ht=M({},["annotation-xml"]);const ut=M({},["title","style","font","a","script"]);let ct=null;const dt=["application/xhtml+xml","text/html"];let gt=null,pt=null;const ft=s.createElement("form"),mt=function(e){return e instanceof RegExp||e instanceof Function},Et=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!pt||pt!==e){if(e&&"object"==typeof e||(e={}),e=O(e),ct=-1===dt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,gt="application/xhtml+xml"===ct?y:w,Te=T(e,"ALLOWED_TAGS")?M({},e.ALLOWED_TAGS,gt):_e,Ne=T(e,"ALLOWED_ATTR")?M({},e.ALLOWED_ATTR,gt):Ae,ot=T(e,"ALLOWED_NAMESPACES")?M({},e.ALLOWED_NAMESPACES,y):at,Je=T(e,"ADD_URI_SAFE_ATTR")?M(O(et),e.ADD_URI_SAFE_ATTR,gt):et,Qe=T(e,"ADD_DATA_URI_TAGS")?M(O(Ze),e.ADD_DATA_URI_TAGS,gt):Ze,Xe=T(e,"FORBID_CONTENTS")?M({},e.FORBID_CONTENTS,gt):qe,Me=T(e,"FORBID_TAGS")?M({},e.FORBID_TAGS,gt):O({}),Ie=T(e,"FORBID_ATTR")?M({},e.FORBID_ATTR,gt):O({}),Ke=!!T(e,"USE_PROFILES")&&e.USE_PROFILES,xe=!1!==e.ALLOW_ARIA_ATTR,Pe=!1!==e.ALLOW_DATA_ATTR,Le=e.ALLOW_UNKNOWN_PROTOCOLS||!1,De=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,ke=e.SAFE_FOR_TEMPLATES||!1,He=!1!==e.SAFE_FOR_XML,Fe=e.WHOLE_DOCUMENT||!1,Be=e.RETURN_DOM||!1,We=e.RETURN_DOM_FRAGMENT||!1,Ye=e.RETURN_TRUSTED_TYPE||!1,Ve=e.FORCE_BODY||!1,Ge=!1!==e.SANITIZE_DOM,je=e.SANITIZE_NAMED_PROPS||!1,ze=!1!==e.KEEP_CONTENT,$e=e.IN_PLACE||!1,Re=e.ALLOWED_URI_REGEXP||X,st=e.NAMESPACE||rt,lt=e.MATHML_TEXT_INTEGRATION_POINTS||lt,ht=e.HTML_INTEGRATION_POINTS||ht,be=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(be.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(be.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(be.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ke&&(Pe=!1),We&&(Be=!0),Ke&&(Te=M({},U),Ne=[],!0===Ke.html&&(M(Te,P),M(Ne,V)),!0===Ke.svg&&(M(Te,L),M(Ne,B),M(Ne,Y)),!0===Ke.svgFilters&&(M(Te,D),M(Ne,B),M(Ne,Y)),!0===Ke.mathMl&&(M(Te,H),M(Ne,W),M(Ne,Y))),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?Oe.tagCheck=e.ADD_TAGS:(Te===_e&&(Te=O(Te)),M(Te,e.ADD_TAGS,gt))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?Oe.attributeCheck=e.ADD_ATTR:(Ne===Ae&&(Ne=O(Ne)),M(Ne,e.ADD_ATTR,gt))),e.ADD_URI_SAFE_ATTR&&M(Je,e.ADD_URI_SAFE_ATTR,gt),e.FORBID_CONTENTS&&(Xe===qe&&(Xe=O(Xe)),M(Xe,e.FORBID_CONTENTS,gt)),ze&&(Te["#text"]=!0),Fe&&M(Te,["html","head","body"]),Te.table&&(M(Te,["tbody"]),delete Me.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw N('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw N('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ae=e.TRUSTED_TYPES_POLICY,le=ae.createHTML("")}else void 0===ae&&(ae=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const s="dompurify"+(n?"#"+n:"");try{return e.createPolicy(s,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+s+" could not be created."),null}}(j,o)),null!==ae&&"string"==typeof le&&(le=ae.createHTML(""));l&&l(e),pt=e}},wt=M({},[...L,...D,...k]),yt=M({},[...H,...F]),Ct=function(e){m(n.removed,{element:e});try{J(e).removeChild(e)}catch(t){K(e)}},vt=function(e,t){try{m(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){m(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Be||We)try{Ct(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},St=function(e){let t=null,n=null;if(Ve)e="<remove></remove>"+e;else{const t=C(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ct&&st===rt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=ae?ae.createHTML(e):e;if(st===rt)try{t=(new G).parseFromString(r,ct)}catch(e){}if(!t||!t.documentElement){t=he.createDocument(st,"template",null);try{t.documentElement.innerHTML=it?le:r}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(s.createTextNode(n),i.childNodes[0]||null),st===rt?de.call(t,Fe?"html":"body")[0]:Fe?t.documentElement:i},Rt=function(e){return ue.call(e.ownerDocument||e,e,A.SHOW_ELEMENT|A.SHOW_COMMENT|A.SHOW_TEXT|A.SHOW_PROCESSING_INSTRUCTION|A.SHOW_CDATA_SECTION,null)},Tt=function(e){return e instanceof I&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof b)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},_t=function(e){return"function"==typeof c&&e instanceof c};function Nt(e,t,r){g(e,e=>{e.call(n,t,r,pt)})}const At=function(e){let t=null;if(Nt(pe.beforeSanitizeElements,e,null),Tt(e))return Ct(e),!0;const r=gt(e.nodeName);if(Nt(pe.uponSanitizeElement,e,{tagName:r,allowedTags:Te}),He&&e.hasChildNodes()&&!_t(e.firstElementChild)&&_(/<[/\w!]/g,e.innerHTML)&&_(/<[/\w!]/g,e.textContent))return Ct(e),!0;if(e.nodeType===re)return Ct(e),!0;if(He&&e.nodeType===se&&_(/<[/\w]/g,e.data))return Ct(e),!0;if(!(Oe.tagCheck instanceof Function&&Oe.tagCheck(r))&&(!Te[r]||Me[r])){if(!Me[r]&&Mt(r)){if(be.tagNameCheck instanceof RegExp&&_(be.tagNameCheck,r))return!1;if(be.tagNameCheck instanceof Function&&be.tagNameCheck(r))return!1}if(ze&&!Xe[r]){const t=J(e)||e.parentNode,n=Q(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r){const s=$(n[r],!0);s.__removalCount=(e.__removalCount||0)+1,t.insertBefore(s,q(e))}}}return Ct(e),!0}return e instanceof d&&!function(e){let t=J(e);t&&t.tagName||(t={namespaceURI:st,tagName:"template"});const n=w(e.tagName),r=w(t.tagName);return!!ot[e.namespaceURI]&&(e.namespaceURI===nt?t.namespaceURI===rt?"svg"===n:t.namespaceURI===tt?"svg"===n&&("annotation-xml"===r||lt[r]):Boolean(wt[n]):e.namespaceURI===tt?t.namespaceURI===rt?"math"===n:t.namespaceURI===nt?"math"===n&&ht[r]:Boolean(yt[n]):e.namespaceURI===rt?!(t.namespaceURI===nt&&!ht[r])&&!(t.namespaceURI===tt&&!lt[r])&&!yt[n]&&(ut[n]||!wt[n]):!("application/xhtml+xml"!==ct||!ot[e.namespaceURI]))}(e)?(Ct(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!_(/<\/no(script|embed|frames)/i,e.innerHTML)?(ke&&e.nodeType===ne&&(t=e.textContent,g([fe,me,Ee],e=>{t=v(t,e," ")}),e.textContent!==t&&(m(n.removed,{element:e.cloneNode()}),e.textContent=t)),Nt(pe.afterSanitizeElements,e,null),!1):(Ct(e),!0)},bt=function(e,t,n){if(Ge&&("id"===t||"name"===t)&&(n in s||n in ft))return!1;if(Pe&&!Ie[t]&&_(we,t));else if(xe&&_(ye,t));else if(Oe.attributeCheck instanceof Function&&Oe.attributeCheck(t,e));else if(!Ne[t]||Ie[t]){if(!(Mt(e)&&(be.tagNameCheck instanceof RegExp&&_(be.tagNameCheck,e)||be.tagNameCheck instanceof Function&&be.tagNameCheck(e))&&(be.attributeNameCheck instanceof RegExp&&_(be.attributeNameCheck,t)||be.attributeNameCheck instanceof Function&&be.attributeNameCheck(t,e))||"is"===t&&be.allowCustomizedBuiltInElements&&(be.tagNameCheck instanceof RegExp&&_(be.tagNameCheck,n)||be.tagNameCheck instanceof Function&&be.tagNameCheck(n))))return!1}else if(Je[t]);else if(_(Re,v(n,ve,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==S(n,"data:")||!Qe[e]){if(Le&&!_(Ce,v(n,ve,"")));else if(n)return!1}else;return!0},Mt=function(e){return"annotation-xml"!==e&&C(e,Se)},It=function(e){Nt(pe.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Tt(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ne,forceKeepAttr:void 0};let s=t.length;for(;s--;){const i=t[s],{name:o,namespaceURI:a,value:l}=i,h=gt(o),u=l;let c="value"===o?u:R(u);if(r.attrName=h,r.attrValue=c,r.keepAttr=!0,r.forceKeepAttr=void 0,Nt(pe.uponSanitizeAttribute,e,r),c=r.attrValue,!je||"id"!==h&&"name"!==h||(vt(o,e),c="user-content-"+c),He&&_(/((--!?|])>)|<\/(style|title|textarea)/i,c)){vt(o,e);continue}if("attributename"===h&&C(c,"href")){vt(o,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){vt(o,e);continue}if(!De&&_(/\/>/i,c)){vt(o,e);continue}ke&&g([fe,me,Ee],e=>{c=v(c,e," ")});const d=gt(e.nodeName);if(bt(d,h,c)){if(ae&&"object"==typeof j&&"function"==typeof j.getAttributeType)if(a);else switch(j.getAttributeType(d,h)){case"TrustedHTML":c=ae.createHTML(c);break;case"TrustedScriptURL":c=ae.createScriptURL(c)}if(c!==u)try{a?e.setAttributeNS(a,o,c):e.setAttribute(o,c),Tt(e)?Ct(e):f(n.removed)}catch(t){vt(o,e)}}else vt(o,e)}Nt(pe.afterSanitizeAttributes,e,null)},Ot=function e(t){let n=null;const r=Rt(t);for(Nt(pe.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Nt(pe.uponSanitizeShadowNode,n,null),At(n),It(n),n.content instanceof a&&e(n.content);Nt(pe.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,s=null,o=null,l=null;if(it=!e,it&&(e="\x3c!--\x3e"),"string"!=typeof e&&!_t(e)){if("function"!=typeof e.toString)throw N("toString is not a function");if("string"!=typeof(e=e.toString()))throw N("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Ue||Et(t),n.removed=[],"string"==typeof e&&($e=!1),$e){if(e.nodeName){const t=gt(e.nodeName);if(!Te[t]||Me[t])throw N("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof c)r=St("\x3c!----\x3e"),s=r.ownerDocument.importNode(e,!0),s.nodeType===te&&"BODY"===s.nodeName||"HTML"===s.nodeName?r=s:r.appendChild(s);else{if(!Be&&!ke&&!Fe&&-1===e.indexOf("<"))return ae&&Ye?ae.createHTML(e):e;if(r=St(e),!r)return Be?null:Ye?le:""}r&&Ve&&Ct(r.firstChild);const h=Rt($e?e:r);for(;o=h.nextNode();)At(o),It(o),o.content instanceof a&&Ot(o.content);if($e)return e;if(Be){if(We)for(l=ce.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(Ne.shadowroot||Ne.shadowrootmode)&&(l=ge.call(i,l,!0)),l}let u=Fe?r.outerHTML:r.innerHTML;return Fe&&Te["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&_(Z,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),ke&&g([fe,me,Ee],e=>{u=v(u,e," ")}),ae&&Ye?ae.createHTML(u):u},n.setConfig=function(){Et(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ue=!0},n.clearConfig=function(){pt=null,Ue=!1},n.isValidAttribute=function(e,t,n){pt||Et({});const r=gt(e),s=gt(t);return bt(r,s,n)},n.addHook=function(e,t){"function"==typeof t&&m(pe[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=p(pe[e],t);return-1===n?void 0:E(pe[e],n,1)[0]}return f(pe[e])},n.removeHooks=function(e){pe[e]=[]},n.removeAllHooks=function(){pe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();e.exports=ae,window.DOMPurify=n(73722)},74103:()=>{},74210:(e,t,n)=>{"use strict";t.__esModule=!0,n(22588);var r=n(89090),s=n(31591);function i(e,t,n){(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,n)}function o(e,t){return e.get(l(e,t))}function a(e,t,n){return e.set(l(e,t),n),n}function l(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;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,r.clone)({type:"radio",tagName:"input",className:"htUIRadio",label:{}})}constructor(e,t){super(e,(0,r.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},74601:(e,t,n)=>{"use strict";t.__esModule=!0,n(22588),n(59839),n(30417),n(81396),n(39691),n(81124);var r=n(57440),s=n(34105),i=n(89090),o=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217));function a(e,t,n){l(e,t),t.set(e,n)}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,n){return e.set(c(e,t),n),n}function u(e,t){return e.get(c(e,t))}function c(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const d=t.PLUGIN_KEY="emptyDataState",g=t.PLUGIN_PRIORITY=370,p=(t.EMPTY_DATA_STATE_CLASS_NAME=`ht-${d}`,Object.freeze({UNKNOWN:"unknown",FILTERS:"filters"})),f=`plugin:${d}`;var m=new WeakMap,E=new WeakMap,w=new WeakMap,y=new WeakMap,C=new WeakMap,v=new WeakSet;class S extends r.BasePlugin{constructor(){var e,t;super(...arguments),l(e=this,t=v),t.add(e),a(this,m,!1),a(this,E,null),a(this,w,null),a(this,y,!1),a(this,C,null)}static get PLUGIN_KEY(){return d}static get PLUGIN_PRIORITY(){return g}static get DEFAULT_SETTINGS(){return{message:void 0}}static get SETTINGS_VALIDATORS(){return{message:e=>"string"==typeof e||"function"==typeof e||(0,i.isObject)(e)&&(void 0===(null==e?void 0:e.title)||"string"==typeof(null==e?void 0:e.title))&&(void 0===(null==e?void 0:e.description)||"string"==typeof(null==e?void 0:e.description))&&(void 0===(null==e?void 0:e.buttons)||Array.isArray(null==e?void 0:e.buttons)&&(null==e?void 0:e.buttons.every(e=>"object"==typeof e&&"string"==typeof e.text&&"string"==typeof e.type&&["primary","secondary"].includes(e.type)&&"function"==typeof e.callback)))||void 0===e}}isEnabled(){return!!this.hot.getSettings()[d]}enablePlugin(){this.enabled||(u(E,this)||(h(E,this,new s.EmptyDataStateUI({rootElement:this.hot.rootGridElement,rootDocument:this.hot.rootDocument})),c(v,this,N).call(this),c(v,this,R).call(this),c(v,this,T).call(this)),this.addHook("afterInit",()=>c(v,this,L).call(this)),this.addHook("afterRender",()=>c(v,this,D).call(this)),this.addHook("afterRowSequenceCacheUpdate",()=>c(v,this,M).call(this)),this.addHook("afterColumnSequenceCacheUpdate",()=>c(v,this,M).call(this)),this.addHook("beforeFilter",e=>c(v,this,k).call(this,e)),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),c(v,this,O).call(this),this.isVisible()&&u(E,this).show(),super.updatePlugin()}disablePlugin(){c(v,this,A).call(this),c(v,this,_).call(this),u(E,this).destroy(),h(E,this,null),super.disablePlugin()}isVisible(){return u(m,this)}destroy(){var e;h(m,this,!1),null===(e=u(E,this))||void 0===e||e.destroy(),h(E,this,null),h(w,this,null),h(y,this,!1),h(C,this,null),super.destroy()}}function R(){this.eventManager.addEventListener(u(E,this).getElement(),"wheel",e=>c(v,this,P).call(this,e))}function T(){h(w,this,new MutationObserver(()=>{if(!this.hot)return;const e=u(E,this).getElement();this.hot.rootGridElement.nextElementSibling!==e&&this.hot.rootGridElement.after(e)})),u(w,this).observe(this.hot.rootWrapperElement,{childList:!0})}function _(){u(w,this).disconnect(),h(w,this,null)}function N(){this.hot.getFocusScopeManager().registerScope(d,u(E,this).getElement(),{shortcutsContextName:f,runOnlyIf:()=>this.isVisible(),onActivate:e=>{var t;const n=null===(t=u(E,this))||void 0===t?void 0:t.getFocusableElements();n.length>0&&("tab_from_above"===e?n.at(0).focus():"tab_from_below"===e&&n.at(-1).focus())}})}function A(){this.hot.getFocusScopeManager().unregisterScope(d)}function b(e){var t,n,r;let s;return s="function"==typeof this.getSetting("message")?this.getSetting("message")(e):this.getSetting("message"),"string"==typeof s&&(s={title:s}),null!==(t=s)&&void 0!==t&&t.title||null!==(n=s)&&void 0!==n&&n.description||null!==(r=s)&&void 0!==r&&r.buttons||(s={},e===p.FILTERS?(s.title=this.hot.getTranslatedPhrase(o.EMPTY_DATA_STATE_TITLE_FILTERS),s.description=this.hot.getTranslatedPhrase(o.EMPTY_DATA_STATE_DESCRIPTION_FILTERS),s.buttons=[{text:this.hot.getTranslatedPhrase(o.EMPTY_DATA_STATE_BUTTONS_FILTERS_RESET),type:"secondary",callback:()=>{const e=this.hot.getPlugin("filters");e&&(e.clearConditions(),e.filter())}}]):(s.title=this.hot.getTranslatedPhrase(o.EMPTY_DATA_STATE_TITLE),s.description=this.hot.getTranslatedPhrase(o.EMPTY_DATA_STATE_DESCRIPTION))),s}function M(){this.hot.view&&(0===this.hot.view.countRenderableColumns()||0===this.hot.view.countRenderableRows()?c(v,this,I).call(this):c(v,this,x).call(this))}function I(){u(m,this)||(this.hot.runHooks("beforeEmptyDataStateShow"),c(v,this,O).call(this),u(E,this).show(),h(m,this,!0),h(C,this,this.hot.selection.exportSelection()),this.hot.getFocusScopeManager().activateScope(d),this.hot.runHooks("afterEmptyDataStateShow"))}function O(){u(y,this)?u(E,this).updateContent(c(v,this,b).call(this,p.FILTERS)):u(E,this).updateContent(c(v,this,b).call(this,p.UNKNOWN))}function x(){var e;u(m,this)&&(this.hot.runHooks("beforeEmptyDataStateHide"),u(E,this).hide(),h(m,this,!1),this.hot.getFocusScopeManager().deactivateScope(d),(null===(e=u(C,this))||void 0===e?void 0:e.ranges.length)>0?(this.hot.selection.importSelection(u(C,this)),this.hot.view.render(),h(C,this,null)):this.hot.selectCell(0,0),this.hot.runHooks("afterEmptyDataStateHide"))}function P(e){const t=Number.isNaN(e.deltaX)?-1*e.wheelDeltaX:e.deltaX;0!==t&&this.hot.view.hasHorizontalScroll()&&!this.hot.view.isHorizontallyScrollableByWindow()&&(this.hot.view.setTableScrollPosition({left:this.hot.view.getTableScrollPosition().left+t}),e.preventDefault())}function L(){c(v,this,M).call(this),this.hot.render()}function D(){var e;null!==(e=u(E,this))&&void 0!==e&&e.getElement()&&this.isVisible()&&(u(E,this).updateSize(this.hot.view),u(E,this).updateClassNames(this.hot.view))}function k(e){h(y,this,(null==e?void 0:e.length)>0),this.isVisible()&&c(v,this,O).call(this)}t.EmptyDataState=S},74745:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(28235),s=n(38942),i=n(89090),o=n(14089);const a="ht_editor_visible",l="selectEditor",h=t.EDITOR_TYPE="select";class u extends r.BaseEditor{static get EDITOR_TYPE(){return h}init(){this.selectWrapper=this.hot.rootDocument.createElement("div"),this.select=this.hot.rootDocument.createElement("select"),this.select.setAttribute("data-hot-input","true"),this.selectWrapper.style.display="none";const e=this.hot.rootDocument.createElement("DIV"),t=this.hot.getSettings().ariaTags;e.className="htAutocompleteArrow",t&&e.setAttribute(...(0,o.A11Y_HIDDEN)()),e.appendChild(this.hot.rootDocument.createTextNode(String.fromCharCode(9660))),(0,s.addClass)(this.selectWrapper,"htSelectEditor"),this.selectWrapper.appendChild(this.select),this.selectWrapper.insertBefore(e,this.selectWrapper.firstChild),this.hot.rootElement.appendChild(this.selectWrapper),this.registerHooks()}getValue(){return this.select.value}setValue(e){this.select.value=e}open(){this._opened=!0,this.refreshDimensions(),this.selectWrapper.style.display="";this.hot.getShortcutManager().setActiveContextName("editor"),this.registerShortcuts()}close(){this._opened=!1,this.selectWrapper.style.display="none",(0,s.hasClass)(this.selectWrapper,a)&&(0,s.removeClass)(this.selectWrapper,a),this.unregisterShortcuts(),this.clearHooks()}focus(){this.select.focus()}registerHooks(){this.addHook("afterScrollHorizontally",()=>this.refreshDimensions()),this.addHook("afterScrollVertically",()=>this.refreshDimensions()),this.addHook("afterColumnResize",()=>this.refreshDimensions()),this.addHook("afterRowResize",()=>this.refreshDimensions())}prepare(e,t,n,r,o,a){super.prepare(e,t,n,r,o,a);const l=this.cellProperties.selectOptions;let h;h="function"==typeof l?this.prepareOptions(l(this.row,this.col,this.prop)):this.prepareOptions(l),(0,s.empty)(this.select),(0,i.objectEach)(h,(e,t)=>{const n=this.hot.rootDocument.createElement("OPTION");n.value=t,(0,s.fastInnerHTML)(n,e),this.select.appendChild(n)})}prepareOptions(e){let t={};if(Array.isArray(e))for(let n=0,r=e.length;n<r;n++)t[e[n]]=e[n];else"object"==typeof e&&(t=e);return t}refreshValue(){const e=this.hot.getSourceDataAtCell(this.row,this.prop);this.originalValue=e,this.setValue(e),this.refreshDimensions()}refreshDimensions(){if(this.state!==r.EDITOR_STATE.EDITING)return;if(this.TD=this.getEditedCell(),!this.TD)return void this.close();const{top:e,start:t,width:n,height:i}=this.getEditedCellRect(),o=this.selectWrapper.style;o.height=`${i}px`,o.width=`${n}px`,o.top=`${e}px`,o[this.hot.isRtl()?"right":"left"]=`${t}px`,o.margin="0px",(0,s.addClass)(this.selectWrapper,a)}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("editor"),t={group:l};this.isInFullEditMode()&&e.addShortcuts([{keys:[["ArrowUp"]],callback:()=>{const e=this.select.selectedIndex-1;e>=0&&(this.select[e].selected=!0)}},{keys:[["ArrowDown"]],callback:()=>{const e=this.select.selectedIndex+1;e<=this.select.length-1&&(this.select[e].selected=!0)}}],t)}unregisterShortcuts(){this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(l)}}t.SelectEditor=u},75207:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(7871);t.RENDERER_TYPE=r.RENDERER_TYPE,t.numericRenderer=r.numericRenderer,t.getRenderedValue=r.getRenderedValue},75300:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,t.condition=l;var s=r(n(37539)),i=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217)),o=n(25039);const a=t.CONDITION_NAME="date_before";function l(e,t){let[n]=t;const r=(0,s.default)(e.value,e.meta.dateFormat),i=(0,s.default)(n,e.meta.dateFormat);return!(!r.isValid()||!i.isValid())&&r.diff(i)<=0}(0,o.registerCondition)(a,l,{name:i.FILTERS_CONDITIONS_BEFORE,inputsCount:1,showOperators:!0})},75317:(e,t,n)=>{"use strict";t.__esModule=!0,t.createKeyboardShortcutCommandsPool=function(e){const t={};return d.forEach(n=>{let{name:r,callback:s}=n;t[r]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return s(e,...n)}}),t};var r=n(51219),s=n(83067),i=n(46495),o=n(45976),a=n(72632),l=n(54477),h=n(94184),u=n(22261),c=n(75984);const d=[...(0,r.getAllCommands)(),...(0,s.getAllCommands)(),...(0,i.getAllCommands)(),o.command,a.command,l.command,h.command,u.command,c.command]},75460:(e,t,n)=>{"use strict";var r=n(21912),s=n(82397),i=n(83640);e.exports=function(e,t,n){r?s.f(e,t,i(0,n)):e[t]=n}},75467:(e,t,n)=>{"use strict";t.__esModule=!0,n(22588);var r=n(38942),s=n(37849),i=n(66563),o=n(58617),a=n(54342);function l(e,t,n){(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,n)}function h(e,t){return e.get(c(e,t))}function u(e,t,n){return e.set(c(e,t),n),n}function c(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;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,E=new WeakMap,w=new WeakMap,y=new WeakMap,C=new WeakMap,v=new WeakMap;t.default=class{constructor(e,t,n,r,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,E,void 0),l(this,w,void 0),l(this,y,void 0),l(this,C,[null,null]),l(this,v,[null,null]),u(d,this,n),u(g,this,t),u(p,this,s),u(f,this,i),u(m,this,o),u(E,this,r),u(w,this,e),this.registerEvents()}registerEvents(){h(E,this).addEventListener(h(p,this).holder,"contextmenu",e=>this.onContextMenu(e)),h(E,this).addEventListener(h(p,this).TABLE,"mouseover",e=>this.onMouseOver(e)),h(E,this).addEventListener(h(p,this).TABLE,"mouseout",e=>this.onMouseOut(e));const e=()=>{h(E,this).addEventListener(h(p,this).holder,"touchstart",e=>this.onTouchStart(e)),h(E,this).addEventListener(h(p,this).holder,"touchend",e=>this.onTouchEnd(e)),this.momentumScrolling||(this.momentumScrolling={}),h(E,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(E,this).addEventListener(h(p,this).holder,"mouseup",e=>this.onMouseUp(e)),h(E,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,n]=[t.row,h(y,this).from.row],[r,s]=[t.col,h(y,this).from.col];return e===n&&r===s}return!1}parentCell(e){const t={},n=h(p,this).TABLE,s=(0,r.closestDown)(e,["TD","TH"],n);return s?(t.coords=h(p,this).getCoords(s),t.TD=s):(0,r.hasClass)(e,"wtBorder")&&(0,r.hasClass)(e,"current")?(t.coords=h(f,this).getFocusSelection().cellRange.highlight,t.TD=h(p,this).getCell(t.coords)):(0,r.hasClass)(e,"wtBorder")&&(0,r.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,n=(0,s.partial)(r.getParent,e.target),i=e.target;if(!["TD","TH"].includes(t.nodeName)&&(i===t||n(0)===t||n(1)===t))return;const o=this.parentCell(i);(0,r.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,n=(0,r.closestDown)(e.target,["TD","TH"],t),s=h(m,this)||this;n&&n!==s.lastMouseOver&&(0,r.isChildOf)(n,t)&&(s.lastMouseOver=n,this.callListener("onCellMouseOver",e,h(p,this).getCoords(n),n))}onMouseOut(e){if(!h(d,this).has("onCellMouseOut"))return;const t=h(p,this).TABLE,n=(0,r.closestDown)(e.target,["TD","TH"],t),s=(0,r.closestDown)(e.relatedTarget,["TD","TH"],t),i=h(m,this)||this;n&&n!==s&&(0,r.isChildOf)(n,t)&&(this.callListener("onCellMouseOut",e,h(p,this).getCoords(n),n),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,r.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 n=e.target,r=null===(t=this.parentCell(n))||void 0===t?void 0:t.coords,s=(0,a.isDefined)(r)&&r.row>=0&&r.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(n)&&!t.includes(n.tagName)?e.preventDefault():this.selectedCellWasTouched(n)||e.preventDefault()}this.onMouseUp(e),this.touchApplied=!1}callListener(e,t,n,r){const s=h(d,this).getSettingPure(e);s&&s(t,n,r,h(w,this).call(this))}destroy(){clearTimeout(h(C,this)[0]),clearTimeout(h(C,this)[1]),h(E,this).destroy()}}},75590:()=>{},75655:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(81115)),i=n(28235),o=r(n(90308)),a=n(58617),l=n(38942),h=n(72740),u=n(91782),c=n(54342),d=n(32490),g=n(14089);const p="ht_editor_hidden",f="textEditor",m=t.EDITOR_TYPE="text";class E extends i.BaseEditor{static get EDITOR_TYPE(){return m}constructor(e){super(e),(0,s.default)(this,"eventManager",new o.default(this)),(0,s.default)(this,"autoResize",(0,u.createInputElementResizer)(this.hot.rootDocument)),(0,s.default)(this,"TEXTAREA",void 0),(0,s.default)(this,"textareaStyle",void 0),(0,s.default)(this,"TEXTAREA_PARENT",void 0),(0,s.default)(this,"textareaParentStyle",void 0),(0,s.default)(this,"layerClass",void 0),this.eventManager=new o.default(this),this.createElements(),this.bindEvents(),this.hot.addHookOnce("afterDestroy",()=>this.destroy())}getValue(){return this.TEXTAREA.value}setValue(e){this.TEXTAREA.value=e}open(){this._opened=!0,this.refreshDimensions(),this.showEditableElement(),this.hot.getShortcutManager().setActiveContextName("editor"),this.registerShortcuts()}close(){this._opened=!1,this.autoResize.unObserve(),(0,l.isInternalElement)(this.hot.rootDocument.activeElement,this.hot.rootElement)&&this.hot.listen(),this.hideEditableElement(),this.unregisterShortcuts()}prepare(e,t,n,r,s,o){const a=this.state;if(super.prepare(e,t,n,r,s,o),!o.readOnly){this.refreshDimensions(!0);const{allowInvalid:e}=o;e&&!this.isOpened()&&(this.TEXTAREA.value=""),a===i.EDITOR_STATE.FINISHED||this.isOpened()||this.hideEditableElement()}}beginEditing(e,t){this.state===i.EDITOR_STATE.VIRGIN&&(this.TEXTAREA.value="",super.beginEditing(e,t))}focus(){this.TEXTAREA.select(),(0,l.setCaretPosition)(this.TEXTAREA,this.TEXTAREA.value.length)}createElements(){const{rootDocument:e}=this.hot;this.TEXTAREA=e.createElement("TEXTAREA"),(0,l.setAttribute)(this.TEXTAREA,[["data-hot-input",""],(0,g.A11Y_TABINDEX)(-1)]),(0,l.addClass)(this.TEXTAREA,"handsontableInput"),this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,this.textareaStyle.overflowY="visible",this.TEXTAREA_PARENT=e.createElement("DIV"),(0,l.addClass)(this.TEXTAREA_PARENT,"handsontableInputHolder"),(0,l.hasClass)(this.TEXTAREA_PARENT,this.layerClass)&&(0,l.removeClass)(this.TEXTAREA_PARENT,this.layerClass),(0,l.addClass)(this.TEXTAREA_PARENT,p),this.textareaParentStyle=this.TEXTAREA_PARENT.style,this.TEXTAREA_PARENT.appendChild(this.TEXTAREA),this.hot.rootElement.appendChild(this.TEXTAREA_PARENT)}hideEditableElement(){(0,a.isEdge)()&&(this.textareaStyle.textIndent="-99999px"),this.textareaStyle.overflowY="visible",this.textareaParentStyle.opacity="0",this.textareaParentStyle.height="1px",(0,l.removeClass)(this.TEXTAREA_PARENT,this.layerClass),(0,l.addClass)(this.TEXTAREA_PARENT,p)}showEditableElement(){this.textareaParentStyle.height="",this.textareaParentStyle.overflow="",this.textareaParentStyle.position="",this.textareaParentStyle[this.hot.isRtl()?"left":"right"]="auto",this.textareaParentStyle.opacity="1",this.textareaStyle.textIndent="";const e=this.TEXTAREA_PARENT.childNodes;let t=!1;(0,h.rangeEach)(e.length-1,n=>{const r=e[n];if((0,l.hasClass)(r,"handsontableEditor"))return t=!0,!1}),(0,l.hasClass)(this.TEXTAREA_PARENT,p)&&(0,l.removeClass)(this.TEXTAREA_PARENT,p),t?(this.layerClass="ht_editor_visible",(0,l.addClass)(this.TEXTAREA_PARENT,this.layerClass)):(this.layerClass=this.getEditedCellsLayerClass(),(0,l.addClass)(this.TEXTAREA_PARENT,this.layerClass))}refreshValue(){const e=this.hot.toPhysicalRow(this.row),t=this.hot.getSourceDataAtCell(e,this.col);this.originalValue=t,this.setValue(t),this.refreshDimensions()}refreshDimensions(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.state!==i.EDITOR_STATE.EDITING&&!e)return;if(this.TD=this.getEditedCell(),!this.TD)return void(e||this.close());const{top:t,start:n,width:r,maxWidth:s,height:o,maxHeight:a}=this.getEditedCellRect();this.textareaParentStyle.top=`${t}px`,this.textareaParentStyle[this.hot.isRtl()?"right":"left"]=`${n}px`,this.showEditableElement();const l=this.hot.rootWindow.getComputedStyle(this.TD);this.TEXTAREA.style.fontSize=l.fontSize,this.TEXTAREA.style.fontFamily=l.fontFamily,this.TEXTAREA.style.backgroundColor=this.TD.style.backgroundColor,this.autoResize.init(this.TEXTAREA,{minWidth:Math.min(r,s),minHeight:Math.min(o,a),maxWidth:s,maxHeight:a},!0)}bindEvents(){(0,a.isIOS)()&&this.eventManager.addEventListener(this.TEXTAREA,"focusout",()=>this.finishEditing(!1)),this.addHook("afterScrollHorizontally",()=>this.refreshDimensions()),this.addHook("afterScrollVertically",()=>this.refreshDimensions()),this.addHook("afterColumnResize",()=>{this.refreshDimensions(),this.state===i.EDITOR_STATE.EDITING&&this.focus()}),this.addHook("afterRowResize",()=>{this.refreshDimensions(),this.state===i.EDITOR_STATE.EDITING&&this.focus()})}destroy(){this.eventManager.destroy(),this.clearHooks()}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("editor"),t={runOnlyIf:()=>(0,c.isDefined)(this.hot.getSelected()),group:f},n=()=>{this.hot.rootDocument.execCommand("insertText",!1,"\n")};e.addShortcuts([{keys:[["Control","Enter"]],callback:()=>(n(),!1),runOnlyIf:e=>!this.hot.selection.isMultiple()&&!e.altKey},{keys:[["Meta","Enter"]],callback:()=>(n(),!1),runOnlyIf:()=>!this.hot.selection.isMultiple()},{keys:[["Alt","Enter"]],callback:()=>(n(),!1)},{keys:[["Home"]],callback:(e,t)=>{let[n]=t;(0,d.updateCaretPosition)(n,this.TEXTAREA)}},{keys:[["End"]],callback:(e,t)=>{let[n]=t;(0,d.updateCaretPosition)(n,this.TEXTAREA)}}],t)}unregisterShortcuts(){this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(f)}}t.TextEditor=E},75674:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy",name(){return this.getTranslatedPhrase(r.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 r=n(20217)},75713:function(e,t){var n,r,s;"undefined"!=typeof self&&self,r=[],void 0===(s="function"==typeof(n=function(){function e(){}e.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}},e.prototype.restoreState=function(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx},e.prototype.pattern=function(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");var t=this.disjunction();this.consumeChar("/");for(var n={type:"Flags",global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};this.isRegExpFlag();)switch(this.popChar()){case"g":a(n,"global");break;case"i":a(n,"ignoreCase");break;case"m":a(n,"multiLine");break;case"u":a(n,"unicode");break;case"y":a(n,"sticky")}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:n,value:t}},e.prototype.disjunction=function(){var e=[];for(e.push(this.alternative());"|"===this.peekChar();)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e}},e.prototype.alternative=function(){for(var e=[];this.isTerm();)e.push(this.term());return{type:"Alternative",value:e}},e.prototype.term=function(){return this.isAssertion()?this.assertion():this.atom()},e.prototype.assertion=function(){switch(this.popChar()){case"^":return{type:"StartAnchor"};case"$":return{type:"EndAnchor"};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary"};case"B":return{type:"NonWordBoundary"}}throw Error("Invalid Assertion Escape");case"(":var e;switch(this.consumeChar("?"),this.popChar()){case"=":e="Lookahead";break;case"!":e="NegativeLookahead"}l(e);var t=this.disjunction();return this.consumeChar(")"),{type:e,value:t}}h()},e.prototype.quantifier=function(e){var t;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":var n=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:n,atMost:n};break;case",":t=this.isDigit()?{atLeast:n,atMost:this.integerIncludingZero()}:{atLeast:n,atMost:1/0},this.consumeChar("}")}if(!0===e&&void 0===t)return;l(t)}if(!0!==e||void 0!==t)return l(t),"?"===this.peekChar(0)?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t},e.prototype.atom=function(){var e;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group()}return void 0===e&&this.isPatternCharacter()&&(e=this.patternCharacter()),l(e),this.isQuantifier()&&(e.quantifier=this.quantifier()),e},e.prototype.dotAll=function(){return this.consumeChar("."),{type:"Set",complement:!0,value:[i("\n"),i("\r"),i("\u2028"),i("\u2029")]}},e.prototype.atomEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},e.prototype.decimalEscapeAtom=function(){return{type:"GroupBackReference",value:this.positiveInteger()}},e.prototype.characterClassEscape=function(){var e,t=!1;switch(this.popChar()){case"d":e=u;break;case"D":e=u,t=!0;break;case"s":e=d;break;case"S":e=d,t=!0;break;case"w":e=c;break;case"W":e=c,t=!0}return l(e),{type:"Set",value:e,complement:t}},e.prototype.controlEscapeAtom=function(){var e;switch(this.popChar()){case"f":e=i("\f");break;case"n":e=i("\n");break;case"r":e=i("\r");break;case"t":e=i("\t");break;case"v":e=i("\v")}return l(e),{type:"Character",value:e}},e.prototype.controlLetterEscapeAtom=function(){this.consumeChar("c");var e=this.popChar();if(!1===/[a-zA-Z]/.test(e))throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}},e.prototype.nulCharacterAtom=function(){return this.consumeChar("0"),{type:"Character",value:i("\0")}},e.prototype.hexEscapeSequenceAtom=function(){return this.consumeChar("x"),this.parseHexDigits(2)},e.prototype.regExpUnicodeEscapeSequenceAtom=function(){return this.consumeChar("u"),this.parseHexDigits(4)},e.prototype.identityEscapeAtom=function(){return{type:"Character",value:i(this.popChar())}},e.prototype.classPatternCharacterAtom=function(){switch(this.peekChar()){case"\n":case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:return{type:"Character",value:i(this.popChar())}}},e.prototype.characterClass=function(){var e=[],t=!1;for(this.consumeChar("["),"^"===this.peekChar(0)&&(this.consumeChar("^"),t=!0);this.isClassAtom();){var n=this.classAtom();if("Character"===n.type&&this.isRangeDash()){this.consumeChar("-");var r=this.classAtom();if("Character"===r.type){if(r.value<n.value)throw Error("Range out of order in character class");e.push({from:n.value,to:r.value})}else o(n.value,e),e.push(i("-")),o(r.value,e)}else o(n.value,e)}return this.consumeChar("]"),{type:"Set",complement:t,value:e}},e.prototype.classAtom=function(){switch(this.peekChar()){case"]":case"\n":case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}},e.prototype.classEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:i("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},e.prototype.group=function(){var e=!0;this.consumeChar("("),"?"===this.peekChar(0)?(this.consumeChar("?"),this.consumeChar(":"),e=!1):this.groupIdx++;var t=this.disjunction();this.consumeChar(")");var n={type:"Group",capturing:e,value:t};return e&&(n.idx=this.groupIdx),n},e.prototype.positiveInteger=function(){var e=this.popChar();if(!1===s.test(e))throw Error("Expecting a positive integer");for(;r.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)},e.prototype.integerIncludingZero=function(){var e=this.popChar();if(!1===r.test(e))throw Error("Expecting an integer");for(;r.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)},e.prototype.patternCharacter=function(){var e=this.popChar();switch(e){case"\n":case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:i(e)}}},e.prototype.isRegExpFlag=function(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}},e.prototype.isRangeDash=function(){return"-"===this.peekChar()&&this.isClassAtom(1)},e.prototype.isDigit=function(){return r.test(this.peekChar(0))},e.prototype.isClassAtom=function(e){switch(void 0===e&&(e=0),this.peekChar(e)){case"]":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.isTerm=function(){return this.isAtom()||this.isAssertion()},e.prototype.isAtom=function(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}},e.prototype.isAssertion=function(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return"?"===this.peekChar(1)&&("="===this.peekChar(2)||"!"===this.peekChar(2));default:return!1}},e.prototype.isQuantifier=function(){var e=this.saveState();try{return void 0!==this.quantifier(!0)}catch(e){return!1}finally{this.restoreState(e)}},e.prototype.isPatternCharacter=function(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.parseHexDigits=function(e){for(var t="",r=0;r<e;r++){var s=this.popChar();if(!1===n.test(s))throw Error("Expecting a HexDecimal digits");t+=s}return{type:"Character",value:parseInt(t,16)}},e.prototype.peekChar=function(e){return void 0===e&&(e=0),this.input[this.idx+e]},e.prototype.popChar=function(){var e=this.peekChar(0);return this.consumeChar(),e},e.prototype.consumeChar=function(e){if(void 0!==e&&this.input[this.idx]!==e)throw Error("Expected: '"+e+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++};var t,n=/[0-9a-fA-F]/,r=/[0-9]/,s=/[1-9]/;function i(e){return e.charCodeAt(0)}function o(e,t){void 0!==e.length?e.forEach(function(e){t.push(e)}):t.push(e)}function a(e,t){if(!0===e[t])throw"duplicate flag "+t;e[t]=!0}function l(e){if(void 0===e)throw Error("Internal Error - Should never get here!")}function h(){throw Error("Internal Error - Should never get here!")}var u=[];for(t=i("0");t<=i("9");t++)u.push(t);var c=[i("_")].concat(u);for(t=i("a");t<=i("z");t++)c.push(t);for(t=i("A");t<=i("Z");t++)c.push(t);var d=[i(" "),i("\f"),i("\n"),i("\r"),i("\t"),i("\v"),i("\t"),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i("\u2028"),i("\u2029"),i(" "),i(" "),i(" "),i("\ufeff")];function g(){}return g.prototype.visitChildren=function(e){for(var t in e){var n=e[t];e.hasOwnProperty(t)&&(void 0!==n.type?this.visit(n):Array.isArray(n)&&n.forEach(function(e){this.visit(e)},this))}},g.prototype.visit=function(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e)}this.visitChildren(e)},g.prototype.visitPattern=function(e){},g.prototype.visitFlags=function(e){},g.prototype.visitDisjunction=function(e){},g.prototype.visitAlternative=function(e){},g.prototype.visitStartAnchor=function(e){},g.prototype.visitEndAnchor=function(e){},g.prototype.visitWordBoundary=function(e){},g.prototype.visitNonWordBoundary=function(e){},g.prototype.visitLookahead=function(e){},g.prototype.visitNegativeLookahead=function(e){},g.prototype.visitCharacter=function(e){},g.prototype.visitSet=function(e){},g.prototype.visitGroup=function(e){},g.prototype.visitGroupBackReference=function(e){},g.prototype.visitQuantifier=function(e){},{RegExpParser:e,BaseRegExpVisitor:g,VERSION:"0.4.0"}})?n.apply(t,r):n)||(e.exports=s)},75720:()=>{},75984:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"tabNavigation",callback(e){const t={wrapped:!1,flipped:!1};let n=!1,r=!1;return e.addHook("afterSelection",(e,s,i,o,a)=>{n&&(t.wrapped&&t.flipped||r)&&(r=!1,a.value=!0)}),e.addHook("beforeRowWrap",(e,n,r)=>{t.wrapped=!0,t.flipped=r}),{before(){const{tabNavigation:t}=e.getSettings();n=!0,t||(r=!0)},after(r){const{tabNavigation:s,autoWrapRow:i}=e.getSettings();if(n=!1,!s||!e.selection.isSelected()||i&&t.wrapped&&t.flipped||!i&&t.wrapped)return t.wrapped=!1,t.flipped=!1,e.deselectCell(),!1;r.preventDefault()}}}}},76089:()=>{},76122:(e,t,n)=>{"use strict";t.__esModule=!0,t.valueSetter=function(e,t,n,s){return r.valueSetter.call(this,e,t,n,s)};var r=n(51897)},76162:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function e(t,n){if(Array.isArray(t))return t.map(t=>e(t,n));return(0,r.substitute)(t,n)},n(81396),n(14618);var r=n(16656)},76458:(e,t,n)=>{"use strict";t.__esModule=!0,t.condition=a;var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217)),s=n(54342),i=n(25039);const o=t.CONDITION_NAME="ends_with";function a(e,t){let[n]=t;return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale).endsWith((0,s.stringify)(n))}(0,i.registerCondition)(o,a,{name:r.FILTERS_CONDITIONS_ENDS_WITH,inputsCount:1,showOperators:!0})},76613:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(59839),n(30417);var s=r(n(81115));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:n,zeroBasedScrollOffset:r,viewportWidth:s}=t;n<=r&&(this.startColumn=e);n>=r&&n<=r+(r>0?s+1:s)&&(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=e)),this.endColumn=e}finalize(e){var t;const{scrollOffset:n,viewportWidth:r,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>r)break}this.startPosition=null!==(t=l[this.startColumn])&&void 0!==t?t:null;n+r-(i>0?r+1:r)<-1*s||n>l.at(-1)+h||-1*n-r>0?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,o<this.endColumn&&(this.endColumn=o-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}},76635:(e,t,n)=>{"use strict";t.__esModule=!0,t.installFocusDetector=function(e,t){const n=o(e,i.FOCUS_SOURCES.TAB_FROM_ABOVE),r=o(e,i.FOCUS_SOURCES.TAB_FROM_BELOW);return t.prepend(n),t.append(r),{activate(){n.tabIndex=0,r.tabIndex=0},deactivate(){n.tabIndex=-1,r.tabIndex=-1},destroy(){n.remove(),r.remove()}}};var r=n(38942),s=n(14089),i=n(52846);function o(e,t){const n=e.rootDocument.createElement("input");return n.type="text",n.name="htFocusCatcher",n.classList.add("htFocusCatcher"),n.dataset.htFocusSource=t,e.getSettings().ariaTags&&(0,r.setAttribute)(n,[(0,s.A11Y_LABEL)("Focus catcher")]),n}},76847:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(95095);t.EDITOR_TYPE=r.EDITOR_TYPE,t.HandsontableEditor=r.HandsontableEditor},76887:(e,t,n)=>{"use strict";var r=n(21912),s=n(19617),i=n(19809),o=n(83640),a=n(56769),l=n(61989),h=n(33477),u=n(47145),c=Object.getOwnPropertyDescriptor;t.f=r?c:function(e,t){if(e=a(e),t=l(t),u)try{return c(e,t)}catch(e){}if(h(e,t))return o(!s(i.f,e,t),e[t])}},76897:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(e){const t=[];let n=e;k[n]||(n=L);return(0,s.arrayEach)(k[n],e=>{let n;n=e===i.SEPARATOR?{name:i.SEPARATOR}:(0,r.clone)((0,o.getConditionDescriptor)(e)),t.push(n)}),t},n(66182);var r=n(89090),s=n(30152),i=n(89386),o=n(25039),a=n(66418);t.CONDITION_NONE=a.CONDITION_NAME;var l=n(70363);t.CONDITION_EMPTY=l.CONDITION_NAME;var h=n(50898);t.CONDITION_NOT_EMPTY=h.CONDITION_NAME;var u=n(50686);t.CONDITION_EQUAL=u.CONDITION_NAME;var c=n(85871);t.CONDITION_NOT_EQUAL=c.CONDITION_NAME;var d=n(49555);t.CONDITION_GREATER_THAN=d.CONDITION_NAME;var g=n(68600);t.CONDITION_GREATER_THAN_OR_EQUAL=g.CONDITION_NAME;var p=n(50154);t.CONDITION_LESS_THAN=p.CONDITION_NAME;var f=n(88151);t.CONDITION_LESS_THAN_OR_EQUAL=f.CONDITION_NAME;var m=n(42010);t.CONDITION_BETWEEN=m.CONDITION_NAME;var E=n(26239);t.CONDITION_NOT_BETWEEN=E.CONDITION_NAME;var w=n(78190);t.CONDITION_BEGINS_WITH=w.CONDITION_NAME;var y=n(76458);t.CONDITION_ENDS_WITH=y.CONDITION_NAME;var C=n(30217);t.CONDITION_CONTAINS=C.CONDITION_NAME;var v=n(28874);t.CONDITION_NOT_CONTAINS=v.CONDITION_NAME;var S=n(75300);t.CONDITION_DATE_BEFORE=S.CONDITION_NAME;var R=n(24177);t.CONDITION_DATE_AFTER=R.CONDITION_NAME;var T=n(5680);t.CONDITION_TOMORROW=T.CONDITION_NAME;var _=n(38990);t.CONDITION_TODAY=_.CONDITION_NAME;var N=n(37223);t.CONDITION_YESTERDAY=N.CONDITION_NAME;var A=n(26360);t.CONDITION_BY_VALUE=A.CONDITION_NAME;var b=n(92616);t.CONDITION_TRUE=b.CONDITION_NAME;var M=n(13425);t.CONDITION_FALSE=M.CONDITION_NAME;var I=n(51330);t.OPERATION_AND=I.OPERATION_ID;var O=n(82886);t.OPERATION_OR=O.OPERATION_ID;var x=n(16905);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,E.CONDITION_NAME],[L]:[a.CONDITION_NAME,i.SEPARATOR,l.CONDITION_NAME,h.CONDITION_NAME,i.SEPARATOR,u.CONDITION_NAME,c.CONDITION_NAME,i.SEPARATOR,w.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,_.CONDITION_NAME,N.CONDITION_NAME]}},76916:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,t.default=function(e,t){var n,r,Y=this;let G=arguments.length>2&&void 0!==arguments[2]&&arguments[2],j=this;const z=new h.default(j);let $,K,X,q,Q,Z,J=!0;const ee={...t.initialState,...t};(0,T.hasValidParameter)(G)&&(0,T.registerAsRootInstance)(this);this.rootContainer=e,this.rootWrapperElement=void 0,this.rootGridElement=void 0,this.rootPortalElement=void 0,this.rootElement=(0,T.isRootInstance)(this)?e.ownerDocument.createElement("div"):e,this.rootDocument=e.ownerDocument,this.rootWindow=this.rootDocument.defaultView,(0,T.isRootInstance)(this)&&(this.rootWrapperElement=this.rootDocument.createElement("div"),this.rootGridElement=this.rootDocument.createElement("div"),this.rootPortalElement=this.rootDocument.createElement("div"),(0,s.addClass)(this.rootElement,["ht-wrapper","handsontable"]),(0,s.addClass)(this.rootWrapperElement,"ht-root-wrapper"),(0,s.addClass)(this.rootGridElement,"ht-grid"),this.rootGridElement.appendChild(this.rootElement),this.rootWrapperElement.appendChild(this.rootGridElement),this.rootContainer.appendChild(this.rootWrapperElement),(0,s.addClass)(this.rootPortalElement,"ht-portal"),this.rootDocument.body.appendChild(this.rootPortalElement));this.isDestroyed=!1,this.renderSuspendedCounter=0,this.executionSuspendedCounter=0;const te=null!==(n=null==ee?void 0:ee.layoutDirection)&&void 0!==n?n:"inherit",ne=["rtl","ltr"].includes(te)?te:this.rootWindow.getComputedStyle(this.rootElement).direction;this.rootElement.setAttribute("dir",ne),null===(r=this.rootWrapperElement)||void 0===r||r.setAttribute("dir",ne),this.isRtl=function(){return"rtl"===ne},this.isLtr=function(){return!j.isRtl()},this.getDirectionFactor=function(){return j.isLtr()?1:-1},this.stylesHandler=new k.StylesHandler({hot:j,rootElement:j.rootElement,rootDocument:j.rootDocument,onThemeChange:e=>{(0,T.isRootInstance)(this)&&((0,s.removeClass)(this.rootWrapperElement,/ht-theme-.*/g),(0,s.removeClass)(this.rootPortalElement,/ht-theme-.*/g),e&&((0,s.addClass)(this.rootWrapperElement,e),(0,s.addClass)(this.rootPortalElement,e),getComputedStyle(this.rootWrapperElement).getPropertyValue("--ht-line-height")||(0,H.warn)(`The "${e}" theme is enabled, but its stylesheets are missing or not imported correctly. Import the correct CSS files in order to use that theme.`)))}}),ee.language=(0,N.getValidLanguageCode)(ee.language);const re=Object.fromEntries(Object.entries(ee).filter(e=>{let[t]=e;return!(I.Hooks.getSingleton().isRegistered(t)||I.Hooks.getSingleton().isDeprecated(t))})),se=new M.MetaManager(j,re,[M.DynamicCellMetaMod,M.ExtendMetaPropertiesMod]),ie=se.getTableMeta(),oe=se.getGlobalMeta(),ae=(0,x.createUniqueMap)();this.container=this.rootDocument.createElement("div"),this.rootElement.insertBefore(this.container,this.rootElement.firstChild),this.guid=`ht_${(0,w.randomString)()}`,W.set(this.guid,this),this.columnIndexMapper=new R.IndexMapper,this.rowIndexMapper=new R.IndexMapper,this.columnIndexMapper.addLocalHook("indexesSequenceChange",e=>{j.runHooks("afterColumnSequenceChange",e)}),this.rowIndexMapper.addLocalHook("indexesSequenceChange",e=>{j.runHooks("afterRowSequenceChange",e)}),z.addEventListener(this.rootDocument.documentElement,"compositionstart",e=>{j.runHooks("beforeCompositionStart",e)}),K=new v.default(j);const le=(0,g.staticRegister)(this.guid);le.register("cellRangeMapper",new I.CellRangeToRenderableMapper({rowIndexMapper:this.rowIndexMapper,columnIndexMapper:this.columnIndexMapper})),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid);let he=new b.Selection(ie,{rowIndexMapper:j.rowIndexMapper,columnIndexMapper:j.columnIndexMapper,countCols:()=>j.countCols(),countRows:()=>j.countRows(),propToCol:e=>$.propToCol(e),isEditorOpened:()=>!!j.getActiveEditor()&&j.getActiveEditor().isOpened(),countRenderableColumns:()=>this.view.countRenderableColumns(),countRenderableRows:()=>this.view.countRenderableRows(),countRowHeaders:()=>this.countRowHeaders(),countColHeaders:()=>this.countColHeaders(),countRenderableRowsInRange:function(){return Y.view.countRenderableRowsInRange(...arguments)},countRenderableColumnsInRange:function(){return Y.view.countRenderableColumnsInRange(...arguments)},getShortcutManager:()=>j.getShortcutManager(),createCellCoords:(e,t)=>j._createCellCoords(e,t),createCellRange:(e,t,n)=>j._createCellRange(e,t,n),visualToRenderableCoords:e=>{const{row:t,col:n}=e;return j._createCellCoords(t>=0?j.rowIndexMapper.getRenderableFromVisualIndex(t):t,n>=0?j.columnIndexMapper.getRenderableFromVisualIndex(n):n)},renderableToVisualCoords:e=>{const{row:t,col:n}=e;return j._createCellCoords(t>=0?j.rowIndexMapper.getVisualFromRenderableIndex(t):t,n>=0?j.columnIndexMapper.getVisualFromRenderableIndex(n):n)},findFirstNonHiddenRenderableRow:(e,t)=>{const n=t>e?1:-1,r=Math.min(e,t),s=Math.max(e,t),i=j.rowIndexMapper.getNearestNotHiddenIndex(e,n);return null===i||1===n&&i>s||-1===n&&i<r?null:i>=0?j.rowIndexMapper.getRenderableFromVisualIndex(i):i},findFirstNonHiddenRenderableColumn:(e,t)=>{const n=t>e?1:-1,r=Math.min(e,t),s=Math.max(e,t),i=j.columnIndexMapper.getNearestNotHiddenIndex(e,n);return null===i||1===n&&i>s||-1===n&&i<r?null:i>=0?j.columnIndexMapper.getRenderableFromVisualIndex(i):i},isDisabledCellSelection:(e,t)=>e<0||t<0?j.getSettings().disableVisualSelection:j.getCellMeta(e,t).disableVisualSelection});this.selection=he;const ue=e=>{let{hiddenIndexesChanged:t}=e;this.forceFullRender=!0,t&&this.selection.commit()};function ce(e,t){const n="className"===e?j.rootElement:j.table;if(J)(0,s.addClass)(n,t);else{let r=[],i=[];oe[e]&&(r=Array.isArray(oe[e])?oe[e]:(0,c.stringToArray)(oe[e])),t&&(i=Array.isArray(t)?t:(0,c.stringToArray)(t));const o=(0,c.getDifferenceOfArrays)(r,i),a=(0,c.getDifferenceOfArrays)(i,r);o.length&&(0,s.removeClass)(n,o),a.length&&(0,s.addClass)(n,a)}oe[e]=t}function de(){let e=!1;return{validatorsInQueue:0,valid:!0,addValidatorToQueue(){this.validatorsInQueue+=1,e=!1},removeValidatorFormQueue(){this.validatorsInQueue=this.validatorsInQueue-1<0?0:this.validatorsInQueue-1,this.checkIfQueueIsEmpty()},onQueueEmpty(){},checkIfQueueIsEmpty(){0===this.validatorsInQueue&&!1===e&&(e=!0,this.onQueueEmpty(this.valid))}}}function ge(e,t,n){if(!e.length)return void n();const r=j.getActiveEditor(),s=new de;let i=!0;s.onQueueEmpty=()=>{r&&i&&r.cancelChanges(),n()};for(let n=e.length-1;n>=0;n--){const[r,o,,a]=e[n],l=$.propToCol(o);let h;h=Number.isInteger(l)?j.getCellMeta(r,l):{...Object.getPrototypeOf(ie),...ie},j.getCellValidator(h)&&(s.addValidatorToQueue(),j.validateCell(a,h,function(t,n){return function(r){if("boolean"!=typeof r)throw new Error("Validation error: result is not boolean");!1===r&&!1===n.allowInvalid&&(i=!1,e.splice(t,1),n.valid=!0),s.removeValidatorFormQueue()}}(n,h),t))}s.checkIfQueueIsEmpty()}function pe(e,t){for(let t=e.length-1;t>=0;t--){let n=!1;if(null!==e[t]){if(null!==e[t][2]&&void 0!==e[t][2]||null!==e[t][3]&&void 0!==e[t][3]){if(ie.allowInsertRow)for(;e[t][0]>j.countRows()-1;){const{delta:e}=$.createRow(void 0,void 0,{source:"auto"});if(0===e){n=!0;break}}if("array"===j.dataType&&(!ie.columns||0===ie.columns.length)&&ie.allowInsertColumn)for(;$.propToCol(e[t][1])>j.countCols()-1;){const{delta:e}=$.createCol(void 0,void 0,{source:"auto"});if(0===e){n=!0;break}}n||$.set(e[t][0],e[t][1],e[t][3])}}else e.splice(t,1)}if(e.length>0){X.adjustRowsAndCols(),j.runHooks("beforeChangeRender",e,t),q.closeEditor(),j.view.adjustElementsSize(),j.render(),q.prepareEditor(),j.runHooks("afterChange",e,t||"edit");const n=j.getActiveEditor();n&&(0,o.isDefined)(n.refreshValue)&&n.refreshValue()}else j.render()}function fe(e,t,n){return Array.isArray(e)?e:[[e,t,n]]}function me(e,t){const n=j.runHooks("beforeChange",e,t||"edit"),r=e.filter(e=>null!==e);var s;if(!1===n||0===r.length)return null===(s=j.getActiveEditor())||void 0===s||s.cancelChanges(),[];for(let e=r.length-1;e>=0;e--){const[t,n,,s]=r[e],i=$.propToCol(n);let o;o=Number.isInteger(i)?j.getCellMeta(t,i):{...Object.getPrototypeOf(ie),...ie},r[e][3]=(0,U.getValueSetterValue)(s,o)}return r}this.columnIndexMapper.addLocalHook("cacheUpdated",e=>{ue(e),this.runHooks("afterColumnSequenceCacheUpdate",e)}),this.rowIndexMapper.addLocalHook("cacheUpdated",e=>{ue(e),this.runHooks("afterRowSequenceCacheUpdate",e)}),this.selection.addLocalHook("afterSetRangeEnd",(e,t)=>{const n=(0,u.createObjectPropListener)(!1),r=this.selection.getSelectedRange(),{from:i,to:o}=r.current(),a=r.size()-1;this.runHooks("afterSelection",i.row,i.col,o.row,o.col,n,a),this.runHooks("afterSelectionByProp",i.row,j.colToProp(i.col),o.row,j.colToProp(o.col),n,a),t&&(!n.isTouched()||n.isTouched()&&!n.value)&&Z.scrollTo(e);const l=he.isSelectedByRowHeader(),h=he.isSelectedByColumnHeader();l&&h?(0,s.addClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]):l?((0,s.removeClass)(this.rootElement,"ht__selection--columns"),(0,s.addClass)(this.rootElement,"ht__selection--rows")):h?((0,s.removeClass)(this.rootElement,"ht__selection--rows"),(0,s.addClass)(this.rootElement,"ht__selection--columns")):(0,s.removeClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]),["shift","refresh"].includes(he.getSelectionSource())||q.closeEditor(null),"refresh"!==he.getSelectionSource()&&(j.view.render(),q.prepareEditor())}),this.selection.addLocalHook("beforeSetFocus",e=>{this.runHooks("beforeSelectionFocusSet",e.row,e.col)}),this.selection.addLocalHook("afterSetFocus",e=>{const t=(0,u.createObjectPropListener)(!1);this.runHooks("afterSelectionFocusSet",e.row,e.col,t),(!t.isTouched()||t.isTouched()&&!t.value)&&Z.scrollTo(e),q.closeEditor(),j.view.render(),q.prepareEditor()}),this.selection.addLocalHook("afterSelectionFinished",e=>{const t=e.length-1,{from:n,to:r}=e[t];this.runHooks("afterSelectionEnd",n.row,n.col,r.row,r.col,t),this.runHooks("afterSelectionEndByProp",n.row,j.colToProp(n.col),r.row,j.colToProp(r.col),t),"refresh"===he.getSelectionSource()&&(j.view.render(),q.prepareEditor())}),this.selection.addLocalHook("afterIsMultipleSelection",e=>{const t=this.runHooks("afterIsMultipleSelection",e.value);e.value&&(e.value=t)}),this.selection.addLocalHook("afterDeselect",()=>{q.closeEditor(),j.view.render(),(0,s.removeClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]),this.runHooks("afterDeselect")}),this.selection.addLocalHook("beforeHighlightSet",()=>this.runHooks("beforeSelectionHighlightSet")).addLocalHook("beforeSetRangeStart",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Y.runHooks("beforeSetRangeStart",...t)}).addLocalHook("beforeSetRangeStartOnly",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Y.runHooks("beforeSetRangeStartOnly",...t)}).addLocalHook("beforeSetRangeEnd",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Y.runHooks("beforeSetRangeEnd",...t)}).addLocalHook("beforeSelectColumns",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Y.runHooks("beforeSelectColumns",...t)}).addLocalHook("afterSelectColumns",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Y.runHooks("afterSelectColumns",...t)}).addLocalHook("beforeSelectRows",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Y.runHooks("beforeSelectRows",...t)}).addLocalHook("afterSelectRows",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Y.runHooks("afterSelectRows",...t)}).addLocalHook("beforeSelectAll",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Y.runHooks("beforeSelectAll",...t)}).addLocalHook("afterSelectAll",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Y.runHooks("afterSelectAll",...t)}).addLocalHook("beforeModifyTransformStart",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Y.runHooks("modifyTransformStart",...t)}).addLocalHook("afterModifyTransformStart",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Y.runHooks("afterModifyTransformStart",...t)}).addLocalHook("beforeModifyTransformFocus",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Y.runHooks("modifyTransformFocus",...t)}).addLocalHook("afterModifyTransformFocus",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Y.runHooks("afterModifyTransformFocus",...t)}).addLocalHook("beforeModifyTransformEnd",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Y.runHooks("modifyTransformEnd",...t)}).addLocalHook("afterModifyTransformEnd",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Y.runHooks("afterModifyTransformEnd",...t)}).addLocalHook("beforeRowWrap",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Y.runHooks("beforeRowWrap",...t)}).addLocalHook("beforeColumnWrap",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Y.runHooks("beforeColumnWrap",...t)}).addLocalHook("insertRowRequire",e=>this.alter("insert_row_above",e,1,"auto")).addLocalHook("insertColRequire",e=>this.alter("insert_col_start",e,1,"auto")),X={alter(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;const i=e=>{if(0===e.length)return[];const t=[...e];t.sort((e,t)=>{let[n]=e,[r]=t;return n===r?0:n>r?1:-1});return(0,c.arrayReduce)(t,(e,t)=>{let[n,r]=t;const s=e[e.length-1],[i,o]=s,a=i+o;if(n<=a){const e=Math.max(r-(a-n),0);s[1]+=e}else e.push([n,r]);return e},[t[0]])};switch(e){case"insert_row_below":case"insert_row_above":const s=j.countSourceRows();if(ie.maxRows===s)return;const a="insert_row_below"===e?"below":"above";t=null!=t?t:"below"===a?s:0;const{delta:l,startPhysicalIndex:h}=$.createRow(t,n,{source:r,mode:a});he.shiftRows(j.toVisualRow(h),l);break;case"insert_col_start":case"insert_col_end":const u="insert_col_end"===e?"end":"start";t=null!=t?t:"end"===u?j.countSourceCols():0;const{delta:d,startPhysicalIndex:g}=$.createCol(t,n,{source:r,mode:u});if(d){if(Array.isArray(ie.colHeaders)){const e=[j.toVisualColumn(g),0];e.length+=d,Array.prototype.splice.apply(ie.colHeaders,e)}he.shiftColumns(j.toVisualColumn(g),d)}break;case"remove_row":const p=e=>{let t=0;(0,c.arrayEach)(e,e=>{let[n,s]=e;const i=(0,o.isEmpty)(n)?j.countRows()-1:Math.max(n-t,0);Number.isInteger(n)&&(n=Math.max(n-t,0));if(!$.removeRow(n,s,r))return;if(he.isSelected()){const{row:e}=j.getSelectedRangeActive().highlight;e>=n&&e<=n+s-1&&q.closeEditor(!0)}const a=j.countRows(),l=ie.fixedRowsTop;l>=i+1&&(ie.fixedRowsTop-=Math.min(s,l-i));const h=ie.fixedRowsBottom;if(h&&i>=a-h&&(ie.fixedRowsBottom-=Math.min(s,h)),0===a)he.deselect();else if("ContextMenu.removeRow"===r){const e=he.getSelectedRange(),t=e.pop();e.clear().set(t.from).current().setTo(t.to),he.refresh()}else he.shiftRows(n,-s);t+=s})};Array.isArray(t)?p(i(t)):p([[t,n]]);break;case"remove_col":const f=e=>{let t=0;(0,c.arrayEach)(e,e=>{let[n,s]=e;const i=(0,o.isEmpty)(n)?j.countCols()-1:Math.max(n-t,0);let a=j.toPhysicalColumn(i);Number.isInteger(n)&&(n=Math.max(n-t,0));if(!$.removeCol(n,s,r))return;if(he.isSelected()){const{col:e}=j.getSelectedRangeActive().highlight;e>=n&&e<=n+s-1&&q.closeEditor(!0)}if(0===j.countCols())he.deselect();else if("ContextMenu.removeColumn"===r){const e=he.getSelectedRange(),t=e.pop();e.clear().set(t.from).current().setTo(t.to),he.refresh()}else he.shiftColumns(n,-s);const l=ie.fixedColumnsStart;l>=i+1&&(ie.fixedColumnsStart-=Math.min(s,l-i)),Array.isArray(ie.colHeaders)&&(void 0===a&&(a=-1),ie.colHeaders.splice(a,s)),t+=s})};Array.isArray(t)?f(i(t)):f([[t,n]]);break;default:throw new Error(`There is no such action "${e}"`)}s||X.adjustRowsAndCols(),j.view.adjustElementsSize(),j.view.render()},adjustRowsAndCols(){const e=ie.minRows,t=ie.minSpareRows,n=ie.minCols,r=ie.minSpareCols;if(e){const t=j.countRows();t<e&&$.createRow(t,e-t,{source:"auto"})}if(t){const e=j.countEmptyRows(!0);if(e<t){const n=t-e,r=Math.min(n,ie.maxRows-j.countSourceRows());$.createRow(j.countRows(),r,{source:"auto"})}}{let e;(n||r)&&(e=j.countEmptyCols(!0));let t=j.countCols();if(n&&!ie.columns&&t<n){const r=n-t;e+=r,$.createCol(t,r,{source:"auto"})}if(r&&!ie.columns&&"array"===j.dataType&&e<r){t=j.countCols();const n=r-e,s=Math.min(n,ie.maxCols-t);$.createCol(t,s,{source:"auto"})}}},populateFromArray(e,t,n,r,s){let i,o,a,l;const h=[],d={},g=[],p=e.row,f=e.col;if(o=t.length,0===o)return!1;let m=0,E=0;switch((0,u.isObject)(n)&&(m=n.col-f+1,E=n.row-p+1),s){case"shift_down":const s=(0,c.pivot)(t),y=s.length,C=Math.max(y,m),v=j.getData().slice(p),S=(0,c.pivot)(v).slice(f,f+C);for(a=0;a<C;a+=1)if(a<y){for(i=0,o=s[a].length;i<E-o;i+=1)s[a].push(s[a][i%o]);a<S.length?g.push(s[a].concat(S[a])):g.push(s[a].concat(new Array(v.length).fill(null)))}else g.push(s[a%y].concat(S[a]));j.populateFromArray(p,f,(0,c.pivot)(g));break;case"shift_right":const R=t.length,T=Math.max(R,E),_=j.getData().slice(p).map(e=>e.slice(f));for(i=0;i<T;i+=1)if(i<R){for(a=0,l=t[i].length;a<m-l;a+=1)t[i].push(t[i][a%l]);if(i<_.length)for(let e=0;e<_[i].length;e+=1)t[i].push(_[i][e]);else t[i].push(...new Array(_[0].length).fill(null))}else t.push(t[i%o].slice(0,T).concat(_[i]));j.populateFromArray(p,f,t);break;default:d.row=e.row,d.col=e.col;let N,A=0,b=0,M=!0;const I=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const r=t[e%t.length];return null!==n?r[n%r.length]:r},O=t.length,x=n?n.row-e.row+1:0;for(o=n?x:Math.max(O,x),i=0;i<o&&!(n&&d.row>n.row&&x>O||!ie.allowInsertRow&&d.row>j.countRows()-1||d.row>=ie.maxRows);i++){const t=i-A,s=I(t).length,c=n?n.col-e.col+1:0;if(l=n?c:Math.max(s,c),d.col=e.col,N=j.getCellMeta(d.row,d.col),"CopyPaste.paste"!==r&&"Autofill.fill"!==r||!N.skipRowOnPaste){for(b=0,a=0;a<l;a++){var w;if(n&&d.col>n.col&&c>s||!ie.allowInsertColumn&&d.col>j.countCols()-1||d.col>=ie.maxCols)break;if(N=j.getCellMeta(d.row,d.col),("CopyPaste.paste"===r||"Autofill.fill"===r)&&N.skipColumnOnPaste){b+=1,d.col+=1,l+=1;continue}if(N.readOnly&&"UndoRedo.undo"!==r){d.col+=1;continue}const e=a-b,i=!!N.valueSetter;let o=I(t,e),g=null!==(w=j.getSourceDataAtCell(d.row,d.col))&&void 0!==w?w:null;if(null!==o&&"object"==typeof o)if(Array.isArray(o)&&null===g&&(g=[]),i||"object"==typeof g&&null!==g){if(null!==g){const e=(0,u.duckSchema)(Array.isArray(g)?g:g[0]||g),t=(0,u.duckSchema)(Array.isArray(o)?o:o[0]||o);i||(0,u.isObjectEqual)(e,t)||Array.isArray(e)&&Array.isArray(t)?o=(0,u.deepClone)(o):M=!1}}else M=!1;else i||null===g||"object"!=typeof g||(M=!1);M&&h.push([d.row,d.col,o]),M=!0,d.col+=1}d.row+=1}else A+=1,d.row+=1,o+=1}j.setDataAtCell(h,null,null,r||"populateFromArray")}}},this.init=function(){K.setData(ie.data),j.runHooks("beforeInit"),((0,a.isMobileBrowser)()||(0,a.isIpadOS)())&&(0,s.addClass)(j.rootElement,"mobile"),this.updateSettings(ee,!0),this.view=new C.default(this),q=l.default.getInstance(j,ie,he),Z=(0,I.createViewportScroller)(j),Q.init(),(0,T.isRootInstance)(this)&&((0,F.install)(j.rootPortalElement),(0,o._injectProductInfo)(ee.licenseKey,this.rootWrapperElement)),j.runHooks("init"),this.render(),J&&null===j.rootElement.offsetParent&&(0,s.observeVisibilityChangeOnce)(j.rootElement,()=>{j.view._wt.wtOverlays.updateLastSpreaderSize(),j.view.adjustElementsSize(),j.render()}),"object"==typeof J&&(j.runHooks("afterChange",J[0],J[1]),J=!1),j.runHooks("afterInit")},this._createCellCoords=function(e,t){return j.view._wt.createCellCoords(e,t)},this._createCellRange=function(e,t,n){return j.view._wt.createCellRange(e,t,n)},this.validateCell=function(e,t,n,r){let s=j.getCellValidator(t);function a(e){if(!(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])||!0===t.hidden)return void n(e);const r=t.visualCol,s=t.visualRow,i=j.getCell(s,r,!0);if(i&&"TH"!==i.nodeName){const e=j.rowIndexMapper.getRenderableFromVisualIndex(s),t=j.columnIndexMapper.getRenderableFromVisualIndex(r);j.view._wt.getSetting("cellRenderer",e,t,i)}n(e)}var l;(0,o.isRegExp)(s)&&(l=s,s=function(e,t){t(l.test(e))}),(0,i.isFunction)(s)?(e=j.runHooks("beforeValidate",e,t.visualRow,t.prop,r),j._registerImmediate(()=>{s.call(t,e,n=>{j&&(n=j.runHooks("afterValidate",n,e,t.visualRow,t.prop,r),t.valid=n,a(n),j.runHooks("postAfterValidate",n,e,t.visualRow,t.prop,r))})})):j._registerImmediate(()=>{t.valid=!0,a(t.valid,!1)})},this.setDataAtCell=function(e,t,n,r){const s=fe(e,t,n),i=[];let o,a,l,h=r;for(o=0,a=s.length;o<a;o++){const[e,t,n]=s[o];if("object"!=typeof s[o])throw new Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof t)throw new Error("Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`");l=t>=this.countCols()?t:$.colToProp(t),i.push([e,l,K.getAtCell(this.toPhysicalRow(e),t),n])}h||"object"!=typeof e||(h=t);const u=me(i,h);j.runHooks("afterSetDataAtCell",u,h),ge(u,h,()=>{pe(u,h)})},this.setDataAtRowProp=function(e,t,n,r){const s=fe(e,t,n),i=[];let o,a,l=r;for(o=0,a=s.length;o<a;o++){const[e,t,n]=s[o];i.push([e,t,K.getAtCell(this.toPhysicalRow(e),t),n])}l||"object"!=typeof e||(l=t);const h=me(i,r);j.runHooks("afterSetDataAtRowProp",h,l),ge(h,l,()=>{pe(h,l)})},this.listen=function(){j&&!j.isListening()&&(W.forEach(e=>{j!==e&&e.unlisten()}),V=j.guid,j.runHooks("afterListen"))},this.unlisten=function(){this.isListening()&&(V=null,j.runHooks("afterUnlisten"))},this.isListening=function(){return V===j.guid},this.destroyEditor=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];q.closeEditor(e),j.view.render(),t&&he.isSelected()&&q.prepareEditor()},this.populateFromArray=function(e,t,n,r,s,i,o){if("object"!=typeof n||"object"!=typeof n[0])throw new Error("populateFromArray parameter `input` must be an array of arrays");const a="number"==typeof r?j._createCellCoords(r,s):null;return X.populateFromArray(j._createCellCoords(e,t),n,a,i,o)},this.spliceCol=function(e,t,n){for(var r=arguments.length,s=new Array(r>3?r-3:0),i=3;i<r;i++)s[i-3]=arguments[i];return $.spliceCol(e,t,n,...s)},this.spliceRow=function(e,t,n){for(var r=arguments.length,s=new Array(r>3?r-3:0),i=3;i<r;i++)s[i-3]=arguments[i];return $.spliceRow(e,t,n,...s)},this.getSelected=function(){if(he.isSelected())return(0,c.arrayMap)(he.getSelectedRange(),e=>{let{from:t,to:n}=e;return[t.row,t.col,n.row,n.col]})},this.getSelectedLast=function(){const e=this.getSelected();let t;return e&&e.length>0&&(t=e[e.length-1]),t},this.getSelectedActive=function(){const e=this.getSelectedRangeActive();if(!e)return;const{from:t,to:n}=e;return[t.row,t.col,n.row,n.col]},this.getSelectedRange=function(){if(he.isSelected())return Array.from(he.getSelectedRange())},this.getSelectedRangeLast=function(){const e=this.getSelectedRange();let t;return e&&e.length>0&&(t=e[e.length-1]),t},this.getSelectedRangeActive=function(){return he.getActiveSelectedRange()},this.getActiveSelectionLayerIndex=function(){return he.getActiveSelectionLayerIndex()},this.emptySelectedCells=function(e){if(!he.isSelected()||0===this.countRows()||0===this.countCols())return;const t=[];(0,c.arrayEach)(he.getSelectedRange(),e=>{if(e.isSingleHeader())return;const n=e.getTopStartCorner(),r=e.getBottomEndCorner();(0,y.rangeEach)(n.row,r.row,e=>{(0,y.rangeEach)(n.col,r.col,n=>{this.getCellMeta(e,n).readOnly||t.push([e,n,null])})})}),t.length>0&&this.setDataAtCell(t,e)},this.isRenderSuspended=function(){return this.renderSuspendedCounter>0},this.suspendRender=function(){this.renderSuspendedCounter+=1},this.resumeRender=function(){const e=this.renderSuspendedCounter-1;this.renderSuspendedCounter=Math.max(e,0),this.isRenderSuspended()||e!==this.renderSuspendedCounter||j.view.render()},this.render=function(){this.view&&(this.forceFullRender=!0,this.isRenderSuspended()||j.view.render())},this.batchRender=function(e){this.suspendRender();const t=e();return this.resumeRender(),t},this.isExecutionSuspended=function(){return this.executionSuspendedCounter>0},this.suspendExecution=function(){this.executionSuspendedCounter+=1,this.columnIndexMapper.suspendOperations(),this.rowIndexMapper.suspendOperations()},this.resumeExecution=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.executionSuspendedCounter-1;this.executionSuspendedCounter=Math.max(t,0),(!this.isExecutionSuspended()&&t===this.executionSuspendedCounter||e)&&(this.columnIndexMapper.resumeOperations(),this.rowIndexMapper.resumeOperations())},this.batchExecution=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.suspendExecution();const n=e();return this.resumeExecution(t),n},this.batch=function(e){this.suspendRender(),this.suspendExecution();const t=e();return this.resumeExecution(),this.resumeRender(),t},this.refreshDimensions=function(){if(!j.view)return;const e=j.view,{width:t,height:n}=e.getLastSize(),{width:r,height:s}=j.rootElement.getBoundingClientRect(),i=r!==t||s!==n;!1===j.runHooks("beforeRefreshDimensions",{width:t,height:n},{width:r,height:s},i)||((i||e._wt.wtOverlays.scrollableElement===j.rootWindow)&&(e.setLastSize(r,s),e.adjustElementsSize(),j.render()),j.runHooks("afterRefreshDimensions",{width:t,height:n},{width:r,height:s},i))},this.updateData=function(e,t){(0,M.replaceData)(e,e=>{$=e},e=>{$=e,j.columnIndexMapper.fitToLength(this.getInitialColumnCount()),j.rowIndexMapper.fitToLength(this.countSourceRows()),X.adjustRowsAndCols(),he.refresh()},{hotInstance:j,dataMap:$,dataSource:K,internalSource:"updateData",source:t,metaManager:se,firstRun:J})},this.loadData=function(e,t){(0,M.replaceData)(e,e=>{$=e},()=>{se.clearCellsCache(),j.initIndexMappers(),X.adjustRowsAndCols(),he.refresh(),J&&(J=[null,"loadData"])},{hotInstance:j,dataMap:$,dataSource:K,internalSource:"loadData",source:t,metaManager:se,firstRun:J})},this.getInitialColumnCount=function(){const e=ie.columns;let t=0;if(Array.isArray(e))t=e.length;else if((0,i.isFunction)(e))if("array"===j.dataType){const n=this.countSourceCols();for(let r=0;r<n;r+=1)e(r)&&(t+=1)}else"object"!==j.dataType&&"function"!==j.dataType||(t=$.colToPropCache.length);else if((0,o.isDefined)(ie.dataSchema)){const e=$.getSchema();t=Array.isArray(e)?e.length:(0,u.deepObjectSize)(e)}else t=this.countSourceCols();return t},this.initIndexMappers=function(){this.columnIndexMapper.initToLength(this.getInitialColumnCount()),this.rowIndexMapper.initToLength(this.countSourceRows())},this.getData=function(e,t,n,r){return(0,o.isUndefined)(e)?$.getAll():$.getRange(j._createCellCoords(e,t),j._createCellCoords(n,r),$.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,n,r){return $.getCopyableText(j._createCellCoords(e,t),j._createCellCoords(n,r))},this.getCopyableData=function(e,t){return $.getCopyable(e,$.colToProp(t))},this.getCopyableSourceData=function(e,t){return K.getCopyable(e,$.colToProp(t))},this.getSchema=function(){return $.getSchema()},this.updateSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=(J?j.loadData:j.updateData).bind(this);let r,s,a=!1;if((0,o.isDefined)(e.rows))throw new Error('The "rows" setting is no longer supported. Do you mean startRows, minRows or maxRows?');if((0,o.isDefined)(e.cols))throw new Error('The "cols" setting is no longer supported. Do you mean startCols, minCols or maxCols?');if((0,o.isDefined)(e.ganttChart))throw new Error('Since 8.0.0 the "ganttChart" setting is no longer supported.');for(r in(0,o.isDefined)(e.rowHeights)&&(0,o.isDefined)(e.minRowHeights)&&(0,H.warn)("Both `rowHeights` and `minRowHeights` are defined in your configuration. As one is the alias of the other, only one of them can be used at a time. `rowHeights` will be used as the row height configuration."),e)if("data"===r||"language"===r);else if("className"===r)ce("className",e.className);else if("tableClassName"===r&&j.table)ce("tableClassName",e.tableClassName),j.view._wt.wtOverlays.syncOverlayTableClassNames();else if(I.Hooks.getSingleton().isRegistered(r)||I.Hooks.getSingleton().isDeprecated(r)){const t=e[r];(0,i.isFunction)(t)?(I.Hooks.getSingleton().addAsFixed(r,t,j),ie[r]=t):Array.isArray(t)&&(I.Hooks.getSingleton().add(r,t,j),ie[r]=t)}else!t&&(0,u.hasOwnProperty)(e,r)&&(oe[r]=e[r]);if(t)j.useTheme(ie.themeName||(0,D.getThemeClassName)(j.rootContainer));else{const t=j.getCurrentThemeName();(0,u.hasOwnProperty)(e,"themeName")&&t!==e.themeName&&j.useTheme(e.themeName)}B.has(j)&&void 0!==j.stylesHandler.getThemeName()&&B.delete(j),(0,T.isRootInstance)(j)&&!B.has(j)&&j.stylesHandler.isClassicTheme()&&((0,H.deprecatedWarn)("The stylesheet you are using is deprecated and will be removed in version 17.0. Please update your theme configuration to ensure compatibility with future releases."),B.add(j)),void 0===e.data&&void 0===ie.data?n(null,"updateSettings"):void 0!==e.data?n(e.data,"updateSettings"):void 0!==e.columns&&($.createMap(),j.initIndexMappers()),!J&&e.language&&function(e){const t=(0,A.normalizeLanguageCode)(e);(0,N.hasLanguageDictionary)(t)?(j.runHooks("beforeLanguageChange",t),oe.language=t,j.runHooks("afterLanguageChange",t)):(0,A.warnUserAboutLanguageRegistration)(e)}(e.language);const l=j.countCols(),h=ie.columns;if(h&&(0,i.isFunction)(h)&&(a=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||se.clearCache(),l>0)for(r=0,s=0;r<l;r++){if(h){const e=a?h(r):h[s];e&&se.updateColumnMeta(s,e)}s+=1}(0,o.isDefined)(e.cell)&&(0,u.objectEach)(e.cell,e=>{j.setCellMetaObject(e.row,e.col,e)}),j.runHooks("afterCellMetaReset");let c=j.rootElement.style.height;if(""!==c&&(c=parseInt(j.rootElement.style.height,10)),t){j.rootElement.getAttribute("style")&&j.rootElement.setAttribute("data-initialstyle",j.rootElement.getAttribute("style"))}let d=e.height;if(void 0!==e.height)if((0,i.isFunction)(d)&&(d=d()),d=j.runHooks("beforeHeightChange",d),null===d){const e=j.rootElement.getAttribute("data-initialstyle");e&&(e.indexOf("height")>-1||e.indexOf("overflow")>-1)?j.rootElement.setAttribute("style",e):(j.rootElement.style.height="",j.rootElement.style.overflow="")}else void 0!==d&&(j.rootElement.style.height=isNaN(d)?`${d}`:`${d}px`,j.rootElement.style.overflow="hidden");if(void 0!==e.width){let t=e.width;(0,i.isFunction)(t)&&(t=t()),t=j.runHooks("beforeWidthChange",t),j.rootElement.style.width=isNaN(t)?`${t}`:`${t}px`}t||(j.view&&(j.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked(),j.view._wt.exportSettingsAsClassNames()),j.runHooks("afterUpdateSettings",e)),X.adjustRowsAndCols(),j.view&&!J&&(j.render(),j.view._wt.wtOverlays.adjustElementsSize()),t||!j.view||""!==c&&""!==d&&void 0!==d||c===d||j.view._wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){const e=j.getSelectedRangeActive();if(ie.getValue){if((0,i.isFunction)(ie.getValue))return ie.getValue.call(j);if(e)return j.getData()[e.highlight.row][ie.getValue]}else if(e)return j.getDataAtCell(e.highlight.row,e.highlight.col);return null},this.getSettings=function(){return ie},this.clear=function(){this.selectAll(),this.emptySelectedCells()},this.alter=function(e,t,n,r,s){X.alter(e,t,n,r,s)},this.getCell=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t,s=e;if(t>=0){if(this.columnIndexMapper.isHidden(this.toPhysicalColumn(t)))return null;r=this.columnIndexMapper.getRenderableFromVisualIndex(t)}if(e>=0){if(this.rowIndexMapper.isHidden(this.toPhysicalRow(e)))return null;s=this.rowIndexMapper.getRenderableFromVisualIndex(e)}return null===s||null===r||void 0===s||void 0===r?null:j.view.getCellAtCoords(j._createCellCoords(s,r),n)},this.getCoords=function(e){const t=this.view._wt.wtTable.getCoords(e);if(null===t)return null;const{row:n,col:r}=t;let s=n,i=r;return n>=0&&(s=this.rowIndexMapper.getVisualFromRenderableIndex(n)),r>=0&&(i=this.columnIndexMapper.getVisualFromRenderableIndex(r)),j._createCellCoords(s,i)},this.colToProp=function(e){return $.colToProp(e)},this.propToCol=function(e){return $.propToCol(e)},this.toVisualRow=e=>this.rowIndexMapper.getVisualFromPhysicalIndex(e),this.toVisualColumn=e=>this.columnIndexMapper.getVisualFromPhysicalIndex(e),this.toPhysicalRow=e=>this.rowIndexMapper.getPhysicalFromVisualIndex(e),this.toPhysicalColumn=e=>this.columnIndexMapper.getPhysicalFromVisualIndex(e),this.getDataAtCell=function(e,t){return $.get(e,$.colToProp(t))},this.getDataAtRowProp=function(e,t){return $.get(e,t)},this.getDataAtCol=function(e){const t=[],n=$.getRange(j._createCellCoords(0,e),j._createCellCoords(ie.data.length-1,e),$.DESTINATION_RENDERER);for(let e=0;e<n.length;e+=1)for(let r=0;r<n[e].length;r+=1)t.push(n[e][r]);return t},this.getDataAtProp=function(e){const t=[],n=$.getRange(j._createCellCoords(0,$.propToCol(e)),j._createCellCoords(ie.data.length-1,$.propToCol(e)),$.DESTINATION_RENDERER);for(let e=0;e<n.length;e+=1)for(let r=0;r<n[e].length;r+=1)t.push(n[e][r]);return t},this.getSourceData=function(e,t,n,r){let s;return s=void 0===e?K.getData():K.getByRange(j._createCellCoords(e,t),j._createCellCoords(n,r)),s},this.getSourceDataArray=function(e,t,n,r){let s;return s=void 0===e?K.getData(!0):K.getByRange(j._createCellCoords(e,t),j._createCellCoords(n,r),!0),s},this.getSourceDataAtCol=function(e){return K.getAtColumn(e)},this.setSourceDataAtCell=function(e,t,n,r){const s=fe(e,t,n),i=this.hasHook("afterSetSourceDataAtCell"),a=[],l=(e,t)=>{const n=this.toVisualRow(e),r=this.toVisualColumn(t);return Number.isInteger(r)?this.getCellMeta(n,r):{...Object.getPrototypeOf(ie),...ie}};i&&(0,c.arrayEach)(s,e=>{let[t,n,r]=e;const s=(0,U.getValueSetterValue)(r,l(t,n));a.push([t,n,K.getAtCell(t,n),s])}),(0,c.arrayEach)(s,e=>{let[t,n,r]=e;const s=(0,U.getValueSetterValue)(r,l(t,n));K.setAtCell(t,n,s)}),i&&this.runHooks("afterSetSourceDataAtCell",a,r),this.render();const h=j.getActiveEditor();h&&(0,o.isDefined)(h.refreshValue)&&h.refreshValue()},this.getSourceDataAtRow=function(e){return K.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return K.getAtCell(e,t)},this.getDataAtRow=function(e){return $.getRange(j._createCellCoords(e,0),j._createCellCoords(e,this.countCols()-1),$.DESTINATION_RENDERER)[0]||[]},this.getDataType=function(e,t,n,r){const s=void 0===e?[0,0,this.countRows(),this.countCols()]:[e,t,n,r],[i,o]=s;let[,,a,l]=s,h=null,u=null;void 0===a&&(a=i),void 0===l&&(l=o);let c="mixed";return(0,y.rangeEach)(Math.max(Math.min(i,a),0),Math.max(i,a),e=>{let t=!0;return(0,y.rangeEach)(Math.max(Math.min(o,l),0),Math.max(o,l),n=>{const r=this.getCellMeta(e,n);return u=r.type,h?t=h===u:h=u,t}),c=t?u:"mixed",t}),c},this.removeCellMeta=function(e,t,n){const[r,s]=[this.toPhysicalRow(e),this.toPhysicalColumn(t)];let i=se.getCellMetaKeyValue(r,s,n);!1!==j.runHooks("beforeRemoveCellMeta",e,t,n,i)&&(se.removeCellMeta(r,s,n),j.runHooks("afterRemoveCellMeta",e,t,n,i)),i=null},this.spliceCellsMeta=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(var n=arguments.length,r=new Array(n>2?n-2:0),s=2;s<n;s++)r[s-2]=arguments[s];if(r.length>0&&!Array.isArray(r[0]))throw new Error("The 3rd argument (cellMetaRows) has to be passed as an array of cell meta objects array.");t>0&&se.removeRow(this.toPhysicalRow(e),t),r.length>0&&(0,c.arrayEach)(r.reverse(),t=>{se.createRow(this.toPhysicalRow(e)),(0,c.arrayEach)(t,(t,n)=>this.setCellMetaObject(e,n,t))}),j.render()},this.setCellMetaObject=function(e,t,n){"object"==typeof n&&(0,u.objectEach)(n,(n,r)=>{this.setCellMeta(e,t,r,n)})},this.setCellMeta=function(e,t,n,r){if(!1===j.runHooks("beforeSetCellMeta",e,t,n,r))return;let s=e,i=t;e<this.countRows()&&(s=this.toPhysicalRow(e)),t<this.countCols()&&(i=this.toPhysicalColumn(t)),se.setCellMeta(s,i,n,r),j.runHooks("afterSetCellMeta",e,t,n,r)},this.getCellsMeta=function(){return se.getCellsMeta()},this.getCellMeta=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{skipMetaExtension:!1},r=this.toPhysicalRow(e),s=this.toPhysicalColumn(t);return null===r&&(r=e),null===s&&(s=t),se.getCellMeta(r,s,{visualRow:e,visualColumn:t,...n})},this.getColumnMeta=function(e){return se.getColumnMeta(this.toPhysicalColumn(e))},this.getCellMetaAtRow=function(e){return se.getCellsMetaAtRow(e)},this.isColumnModificationAllowed=function(){return!("object"===j.dataType||ie.columns)},this.getCellRenderer=function(e,t){const n="number"==typeof e?j.getCellMeta(e,t).renderer:e.renderer;return"string"==typeof n?(0,f.getRenderer)(n):(0,o.isUndefined)(n)?(0,f.getRenderer)("text"):n},this.getCellEditor=function(e,t){const n="number"==typeof e?j.getCellMeta(e,t).editor:e.editor;return"string"==typeof n?(0,m.getEditor)(n):(0,o.isUndefined)(n)?(0,m.getEditor)("text"):n},this.getCellValidator=function(e,t){const n="number"==typeof e?j.getCellMeta(e,t).validator:e.validator;return"string"==typeof n?(0,E.getValidator)(n):n},this.validateCells=function(e){this._validateCells(e)},this.validateRows=function(e,t){if(!Array.isArray(e))throw new Error("validateRows parameter `rows` must be an array");this._validateCells(t,e)},this.validateColumns=function(e,t){if(!Array.isArray(e))throw new Error("validateColumns parameter `columns` must be an array");this._validateCells(t,void 0,e)},this._validateCells=function(e,t,n){const r=new de;e&&(r.onQueueEmpty=e);let s=j.countRows()-1;for(;s>=0;){if(void 0!==t&&-1===t.indexOf(s)){s-=1;continue}let e=j.countCols()-1;for(;e>=0;)void 0===n||-1!==n.indexOf(e)?(r.addValidatorToQueue(),j.validateCell(j.getDataAtCell(s,e),j.getCellMeta(s,e),e=>{if("boolean"!=typeof e)throw new Error("Validation error: result is not boolean");!1===e&&(r.valid=!1),r.removeValidatorFormQueue()},"validateCells"),e-=1):e-=1;s-=1}r.checkIfQueueIsEmpty()},this.getRowHeader=function(e){let t=ie.rowHeaders,n=e;return void 0!==n&&(n=j.runHooks("modifyRowHeader",n)),void 0===n?(t=[],(0,y.rangeEach)(j.countRows()-1,e=>{t.push(j.getRowHeader(e))})):Array.isArray(t)&&void 0!==t[n]?t=t[n]:(0,i.isFunction)(t)?t=t(n):t&&"string"!=typeof t&&"number"!=typeof t&&(t=n+1),t},this.hasRowHeaders=function(){return!!ie.rowHeaders},this.hasColHeaders=function(){if(void 0!==ie.colHeaders&&null!==ie.colHeaders)return!!ie.colHeaders;for(let e=0,t=j.countCols();e<t;e++)if(j.getColHeader(e))return!0;return!1},this.getColHeader=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const n=j.runHooks("modifyColHeader",e);if(void 0===n){const e=[],t=j.countCols();for(let n=0;n<t;n++)e.push(j.getColHeader(n));return e}let r=ie.colHeaders;const s=j.toPhysicalColumn(n),o=function(e){const t=[],n=j.countCols();let r=0;for(;r<n;r++)(0,i.isFunction)(ie.columns)&&ie.columns(r)&&t.push(r);return t[e]}(s);return!1===ie.colHeaders?r=null:ie.columns&&(0,i.isFunction)(ie.columns)&&ie.columns(o)&&ie.columns(o).title?r=ie.columns(o).title:ie.columns&&ie.columns[s]&&ie.columns[s].title?r=ie.columns[s].title:Array.isArray(ie.colHeaders)&&void 0!==ie.colHeaders[s]?r=ie.colHeaders[s]:(0,i.isFunction)(ie.colHeaders)?r=ie.colHeaders(s):ie.colHeaders&&"string"!=typeof ie.colHeaders&&"number"!=typeof ie.colHeaders&&(r=(0,S.spreadsheetColumnLabel)(n)),r=j.runHooks("modifyColumnHeaderValue",r,e,t),r},this._getColWidthFromSettings=function(e){let t;if(e>=0){t=j.getCellMeta(0,e).width}if(void 0!==t&&t!==ie.width||(t=ie.colWidths),null!=t){switch(typeof t){case"object":t=t[e];break;case"function":t=t(e)}"string"==typeof t&&(t=Number.parseInt(t,10))}return t},this.getColWidth=function(e,t){let n=j._getColWidthFromSettings(e);return n=j.runHooks("modifyColWidth",n,e,t),void 0===n&&(n=_.DEFAULT_COLUMN_WIDTH),n},this._getRowHeightFromSettings=function(e){var t;const n=j.stylesHandler.getDefaultRowHeight(e);let r=null!==(t=ie.rowHeights)&&void 0!==t?t:ie.minRowHeights;if(null!=r){switch(typeof r){case"object":r=r[e];break;case"function":r=r(e)}"string"==typeof r&&(r=Number.parseInt(r,10))}return null!=r&&r<n?n:r},this.getRowHeight=function(e,t){let n=j._getRowHeightFromSettings(e);return n=j.runHooks("modifyRowHeight",n,e,t),n},this.countSourceRows=function(){return K.countRows()},this.countSourceCols=function(){return K.countFirstRowKeys()},this.countRows=function(){return $.getLength()},this.countCols=function(){const e=ie.maxCols,t=this.columnIndexMapper.getNotTrimmedIndexesLength();return Math.min(e,t)},this.countRenderedRows=function(){return j.view._wt.drawn?j.view._wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return j.view._wt.drawn?j.view._wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return j.view._wt.drawn?j.view._wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return j.view._wt.drawn?j.view._wt.wtTable.getVisibleColumnsCount():-1},this.countRowHeaders=function(){return this.view.getRowHeadersCount()},this.countColHeaders=function(){return this.view.getColumnHeadersCount()},this.countEmptyRows=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return(0,y.rangeEachReverse)(j.countRows()-1,n=>{if(j.isEmptyRow(n))t+=1;else if(!0===e)return!1}),t},this.countEmptyCols=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return(0,y.rangeEachReverse)(j.countCols()-1,n=>{if(j.isEmptyCol(n))t+=1;else if(!0===e)return!1}),t},this.isEmptyRow=function(e){return ie.isEmptyRow.call(j,e)},this.isEmptyCol=function(e){return ie.isEmptyCol.call(j,e)},this.selectCell=function(e,t,n,r){let s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return!(0,o.isUndefined)(e)&&!(0,o.isUndefined)(t)&&this.selectCells([[e,t,n,r]],s,i)},this.selectCells=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[[]],t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&Z.suspend();const n=he.selectCells(e);return n&&t&&j.listen(),Z.resume(),n},this.selectColumns=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2?arguments[2]:void 0;return he.selectColumns(e,t,n)},this.selectRows=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2?arguments[2]:void 0;return he.selectRows(e,t,n)},this.deselectCell=function(){he.deselect()},this.selectAll=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2?arguments[2]:void 0;Z.skipNextScrollCycle(),he.selectAll(e,t,n)};const Ee=(e,t)=>e.getNearestNotHiddenIndex(t,1,!0);this.scrollViewportTo=function(e,t){var n;"number"==typeof e&&(e={row:arguments[0],col:arguments[1],verticalSnap:arguments[2]?"bottom":"top",horizontalSnap:arguments[3]?"end":"start",considerHiddenIndexes:null===(n=arguments[4])||void 0===n||n});const{row:r,col:s,considerHiddenIndexes:o}=null!=e?e:{};let a=r,l=s;if((0,i.isFunction)(t)&&this.addHookOnce("afterScroll",t),void 0===o||o){const e=Number.isInteger(r)&&r>=0,t=Number.isInteger(s)&&s>=0,n=e?Ee(this.rowIndexMapper,r):void 0,i=t?Ee(this.columnIndexMapper,s):void 0;if(null===n||null===i)return!1;a=e?j.rowIndexMapper.getRenderableFromVisualIndex(n):r,l=t?j.columnIndexMapper.getRenderableFromVisualIndex(i):s}const h=Number.isInteger(a),u=Number.isInteger(l);let c=!1;return h&&a>=0&&u&&l>=0?c=j.view.scrollViewport(j._createCellCoords(a,l),e.horizontalSnap,e.verticalSnap):h&&a>=0&&(u&&l<0||!u)?c=j.view.scrollViewportVertically(a,e.verticalSnap):u&&l>=0&&(h&&a<0||!h)&&(c=j.view.scrollViewportHorizontally(l,e.horizontalSnap)),(0,i.isFunction)(t)&&(c?this.view.render():(this.removeHook("afterScroll",t),this._registerMicrotask(()=>t()))),c},this.scrollToFocusedCell=function(e){if(!this.selection.isSelected())return!1;(0,i.isFunction)(e)&&this.addHookOnce("afterScroll",e);const{highlight:t}=this.getSelectedRangeActive(),n=this.scrollViewportTo(t.toObject());return n?this.view.render():(0,i.isFunction)(e)&&(this.removeHook("afterScroll",e),this._registerMicrotask(()=>e())),n},this.destroy=function(){j._clearTimeouts(),j._clearImmediates(),j.view&&j.view.destroy(),K&&K.destroy(),K=null,(0,T.isRootInstance)(this)&&((0,F.uninstall)(),this.getFocusScopeManager().destroy()),this.getShortcutManager().destroy(),le.clear(),se.clearCache(),W.delete(this.guid),z.destroy(),q&&q.destroy(),j.rootContainer&&(0,s.empty)(j.rootContainer),j.rootPortalElement&&j.rootPortalElement.remove(),j.batchExecution(()=>{j.rowIndexMapper.unregisterAll(),j.columnIndexMapper.unregisterAll(),ae.getItems().forEach(e=>{let[,t]=e;t.destroy()}),ae.clear(),j.runHooks("afterDestroy")},!0),I.Hooks.getSingleton().destroy(j),(0,u.objectEach)(j,(e,t,n)=>{var r;(0,i.isFunction)(e)?n[t]=(r=t,()=>{throw new Error(`The "${r}" method cannot be called because this Handsontable instance has been destroyed`)}):"guid"!==t&&(n[t]=null)}),j.isDestroyed=!0,$&&$.destroy(),$=null,X=null,he=null,q=null,j=null},this.getActiveEditor=function(){return q.getActiveEditor()},this.getFirstRenderedVisibleRow=function(){return j.view.getFirstRenderedVisibleRow()},this.getLastRenderedVisibleRow=function(){return j.view.getLastRenderedVisibleRow()},this.getFirstRenderedVisibleColumn=function(){return j.view.getFirstRenderedVisibleColumn()},this.getLastRenderedVisibleColumn=function(){return j.view.getLastRenderedVisibleColumn()},this.getFirstFullyVisibleRow=function(){return j.view.getFirstFullyVisibleRow()},this.getLastFullyVisibleRow=function(){return j.view.getLastFullyVisibleRow()},this.getFirstFullyVisibleColumn=function(){return j.view.getFirstFullyVisibleColumn()},this.getLastFullyVisibleColumn=function(){return j.view.getLastFullyVisibleColumn()},this.getFirstPartiallyVisibleRow=function(){return j.view.getFirstPartiallyVisibleRow()},this.getLastPartiallyVisibleRow=function(){return j.view.getLastPartiallyVisibleRow()},this.getFirstPartiallyVisibleColumn=function(){return j.view.getFirstPartiallyVisibleColumn()},this.getLastPartiallyVisibleColumn=function(){return j.view.getLastPartiallyVisibleColumn()},this.getPlugin=function(e){return ae.getItem((0,w.toUpperCaseFirst)(e))},this.getPluginName=function(e){return e===this.undoRedo?this.undoRedo.constructor.PLUGIN_KEY:ae.getId(e)},this.getInstance=function(){return j},this.addHook=function(e,t,n){I.Hooks.getSingleton().add(e,t,j,n)},this.hasHook=function(e){return I.Hooks.getSingleton().has(e,j)||I.Hooks.getSingleton().has(e)},this.addHookOnce=function(e,t,n){I.Hooks.getSingleton().once(e,t,j,n)},this.removeHook=function(e,t){I.Hooks.getSingleton().remove(e,t,j)},this.runHooks=function(e,t,n,r,s,i,o){return I.Hooks.getSingleton().run(j,e,t,n,r,s,i,o)},this.getTranslatedPhrase=function(e,t){return(0,N.getTranslatedPhrase)(ie.language,e,t)},this.toHTML=()=>(0,d.instanceToHTML)(this),this.toTableElement=()=>{const e=this.rootDocument.createElement("div");return e.insertAdjacentHTML("afterbegin",(0,d.instanceToHTML)(this)),e.firstElementChild},this.timeouts=[],this.useTheme=e=>{const t=!!J;this.stylesHandler.useTheme(e);const n=this.stylesHandler.getThemeName();t||(j.render(),j.scrollViewportTo(0,0),(0,D.getThemeClassName)(this.rootContainer)&&((0,s.removeClass)(this.rootContainer,/ht-theme-.*/g),n&&(0,s.addClass)(this.rootContainer,n))),this.runHooks("afterSetTheme",n,t)},this.getCurrentThemeName=()=>this.stylesHandler.getThemeName(),this.getTableHeight=()=>this.rootElement.offsetHeight,this.getTableWidth=()=>this.rootElement.offsetWidth,this._registerTimeout=function(e){let t=e;"function"==typeof t&&(t=setTimeout(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)),this.timeouts.push(t)},this._clearTimeouts=function(){(0,c.arrayEach)(this.timeouts,e=>{clearTimeout(e)})},this.immediates=[],this._registerImmediate=function(e){this.immediates.push(setImmediate(e))},this._clearImmediates=function(){(0,c.arrayEach)(this.immediates,e=>{clearImmediate(e)})},this._registerMicrotask=function(e){this.rootWindow.queueMicrotask(()=>{this.isDestroyed||e()})},this._getEditorManager=function(){return q};const we=(0,P.createShortcutManager)({handleEvent:()=>j.isListening(),beforeKeyDown:e=>this.runHooks("beforeKeyDown",e),afterKeyDown:e=>{this.isDestroyed||j.runHooks("afterDocumentKeyDown",e)},ownerWindow:this.rootWindow});this.addHook("beforeOnCellMouseDown",e=>{!1===e.ctrlKey&&!1===e.metaKey&&we.releasePressedKeys()}),this.getShortcutManager=function(){return we},Q=new O.FocusGridManager(j);const ye=(0,T.isRootInstance)(this)?(0,O.createFocusScopeManager)(j):null;this.getFocusManager=function(){return Q},this.getFocusScopeManager=function(){if(!(0,T.isRootInstance)(j))throw new Error("The FocusScopeManager is only available for the main Handsontable instance.");return ye},(0,p.getPluginsNames)().forEach(e=>{const t=(0,p.getPlugin)(e);ae.addItem(e,new t(this))}),(0,L.registerAllShortcutContexts)(j),(0,T.isRootInstance)(this)&&(0,O.registerAllFocusScopes)(j);we.setActiveContextName("grid"),I.Hooks.getSingleton().run(j,"construct")},n(22588),n(66182),n(93773),n(78822),n(86192),n(80729),n(99888),n(12767),n(78644),n(97550),n(81396),n(81124),n(88633),n(14618),n(47572);var s=n(38942),i=n(37849),o=n(54342),a=n(58617),l=r(n(69255)),h=r(n(90308)),u=n(89090),c=n(30152),d=n(25632),g=n(59766),p=n(28585),f=n(95261),m=n(50259),E=n(21540),w=n(16656),y=n(72740),C=r(n(41406)),v=r(n(86553)),S=n(51053),R=n(20160),T=n(28078),_=n(51191),N=n(43181),A=n(93309),b=n(21650),M=n(61050),I=n(64235),O=n(87755),x=n(66419),P=n(29775),L=n(98438),D=n(81127),k=n(9763),H=n(87544),F=n(5386),U=n(14414);let V=null;const B=new WeakSet,W=new Map;new Set},77002:(e,t,n)=>{"use strict";t.__esModule=!0,t.filterSeparators=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.SEPARATOR,n=e.slice(0);return n=a(n,t),n=function(e,t){let n=e.slice(0);return n.reverse(),n=a(n,t),n.reverse(),n}(n,t),n=function(e){const t=[];return(0,r.arrayEach)(e,(e,n)=>{n>0?t[t.length-1].name!==e.name&&t.push(e):t.push(e)}),t}(n),n},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,r.arrayMap)(e,e=>({start:e.getTopStartCorner(),end:e.getBottomEndCorner()}))},n(66182);var r=n(30152),s=n(89090),i=n(38942),o=n(89386);function a(e,t){const n=e.slice(0);for(let e=0;e<n.length&&n[e].name===t;)n.shift();return n}},77099:(e,t,n)=>{"use strict";t.__esModule=!0,t.registerAllValidators=function(){(0,l.registerValidator)(r.autocompleteValidator),(0,l.registerValidator)(i.dropdownValidator),(0,l.registerValidator)(s.dateValidator),(0,l.registerValidator)(o.numericValidator),(0,l.registerValidator)(a.timeValidator)};var r=n(59262);t.autocompleteValidator=r.autocompleteValidator,t.AUTOCOMPLETE_VALIDATOR=r.VALIDATOR_TYPE;var s=n(60702);t.dateValidator=s.dateValidator,t.DATE_VALIDATOR=s.VALIDATOR_TYPE;var i=n(89769);t.dropdownValidator=i.dropdownValidator,t.DROPDOWN_VALIDATOR=i.VALIDATOR_TYPE;var o=n(70355);t.numericValidator=o.numericValidator,t.NUMERIC_VALIDATOR=o.VALIDATOR_TYPE;var a=n(99221);t.timeValidator=a.timeValidator,t.TIME_VALIDATOR=a.VALIDATOR_TYPE;var l=n(21540);t.registerValidator=l.registerValidator,t.getRegisteredValidatorNames=l.getRegisteredValidatorNames,t.getRegisteredValidators=l.getRegisteredValidators,t.getValidator=l.getValidator,t.hasValidator=l.hasValidator},77299:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(58502);t.CELL_TYPE=r.CELL_TYPE,t.DropdownCellType=r.DropdownCellType},77422:(e,t,n)=>{"use strict";t.__esModule=!0,t.valueSetter=function(e,t,n){const{checkedTemplate:s,uncheckedTemplate:i}=this.getCellMeta(t,n),o=(0,r.stringify)(e),a=o===(0,r.stringify)(s),l=o===(0,r.stringify)(i);if(a||l)return a?s:i;return e};var r=n(54342)},77437:()=>{},77467:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182),n(81396),n(39691);var s=r(n(81115)),i=n(38942),o=n(54342),a=n(89090),l=n(37849),h=n(30152),u=n(57440),c=n(20160),d=n(92164),g=n(7938),p=n(98438),f=n(11412),m=n(44376),E=n(80065),w=n(18793),y=n(14089);function C(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function v(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const S=t.PLUGIN_KEY="columnSorting",R=t.PLUGIN_PRIORITY=50,T=t.APPEND_COLUMN_CONFIG_STRATEGY="append",_=t.REPLACE_COLUMN_CONFIG_STRATEGY="replace",N=S;(0,w.registerRootComparator)(S,E.rootComparator),d.Hooks.getSingleton().register("beforeColumnSort"),d.Hooks.getSingleton().register("afterColumnSort");const A=new WeakMap;var b=new WeakSet;class M extends u.BasePlugin{constructor(){super(...arguments),C(this,b),(0,s.default)(this,"columnStatesManager",null),(0,s.default)(this,"columnMetaCache",null),(0,s.default)(this,"pluginKey",S),(0,s.default)(this,"indexesSequenceCache",null)}static get PLUGIN_KEY(){return S}static get PLUGIN_PRIORITY(){return R}isEnabled(){return!!this.hot.getSettings()[this.pluginKey]}enablePlugin(){var e=this;if(A.has(this.hot)&&A.get(this.hot)!==this.pluginKey)return this.hot.updateSettings({[this.pluginKey]:!1}),void(0,f.warnAboutPluginsConflict)(A.get(this.hot),this.pluginKey);this.enabled||(A.set(this.hot,this.pluginKey),this.columnStatesManager=new g.ColumnStatesManager(this.hot,`${this.pluginKey}.sortingStates`),this.columnMetaCache=new c.PhysicalIndexToValueMap(e=>{let t=this.hot.toVisualColumn(e);return null===t&&(t=e),this.getMergedPluginSettings(t)}),this.hot.columnIndexMapper.registerMap(`${this.pluginKey}.columnMeta`,this.columnMetaCache),this.addHook("afterGetColHeader",(e,t)=>v(b,this,O).call(this,e,t)),this.addHook("beforeOnCellMouseDown",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return v(b,e,P).call(e,...n)}),this.addHook("afterOnCellMouseDown",(e,t)=>this.onAfterOnCellMouseDown(e,t)),this.addHook("afterInit",()=>v(b,this,I).call(this)),this.addHook("afterLoadData",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return v(b,e,x).call(e,...n)}),this.hot.view&&v(b,this,I).call(this),this.registerShortcuts(),super.enablePlugin())}disablePlugin(){const e=(e,t)=>{const n=(0,f.getHeaderSpanElement)(t);!1!==(0,f.isFirstLevelColumnHeader)(e,t)&&null!==n&&this.updateHeaderClasses(n)};A.delete(this.hot),this.hot.addHook("afterGetColHeader",e),this.hot.addHookOnce("afterViewRender",()=>{this.hot.removeHook("afterGetColHeader",e)}),this.hot.batchExecution(()=>{null!==this.indexesSequenceCache&&(this.hot.rowIndexMapper.setIndexesSequence(this.indexesSequenceCache.getValues()),this.hot.rowIndexMapper.unregisterMap(this.pluginKey),this.indexesSequenceCache=null)},!0),this.hot.columnIndexMapper.unregisterMap(`${this.pluginKey}.columnMeta`),this.columnStatesManager.destroy(),this.columnMetaCache=null,this.columnStatesManager=null,this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Enter"]],callback:()=>{const{highlight:e}=this.hot.getSelectedRangeActive();return this.sort(this.getColumnNextConfig(e.col)),!1},runOnlyIf:()=>{var e,t;const n=null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.highlight;return n&&(null===(t=this.hot.getSelectedRangeActive())||void 0===t?void 0:t.isSingle())&&this.hot.selection.isCellVisible(n)&&-1===n.row&&n.col>=0},relativeToGroup:p.EDITOR_EDIT_GROUP,position:"before",group:N})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(N)}sort(e){const t=this.getSortConfig(),n=this.getNormalizedSortConfigs(e),r=this.areValidSortConfigs(n);!1!==this.hot.runHooks("beforeColumnSort",t,n,r)&&(0===t.length&&null===this.indexesSequenceCache&&(this.indexesSequenceCache=this.hot.rowIndexMapper.registerMap(this.pluginKey,new c.IndexesSequence),this.indexesSequenceCache.setValues(this.hot.rowIndexMapper.getIndexesSequence())),r&&(this.columnStatesManager.setSortStates(n),this.sortByPresetSortStates(n),this.saveAllSortSettings(n)),this.hot.runHooks("afterColumnSort",t,r?n:t,r),r&&this.hot.render())}clearSort(){this.sort([])}isSorted(){return this.enabled&&!this.columnStatesManager.isListOfSortedColumnsEmpty()}getSortConfig(e){return(0,o.isDefined)(e)?this.columnStatesManager.getColumnSortState(e):this.columnStatesManager.getSortStates()}setSortConfig(e){const t=this.getNormalizedSortConfigs(e);this.areValidSortConfigs(t)&&this.columnStatesManager.setSortStates(t)}getNormalizedSortConfigs(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)?e.slice(0,1):[e]}areValidSortConfigs(e){const t=this.hot.countCols();return(0,f.areValidSortStates)(e)&&e.every(e=>{let{column:n}=e;return n<=t&&n>=0})}saveAllSortSettings(e){const t=this.columnStatesManager.getAllColumnsProperties();t.initialConfig=(0,h.arrayMap)(e,e=>{let{column:t,...n}=e;return{column:this.hot.toPhysicalColumn(t),...n}}),this.hot.runHooks("persistentStateSave","columnSorting",t)}getAllSavedSortSettings(){const e={};this.hot.runHooks("persistentStateLoad","columnSorting",e);const t=e.value,n=e=>{let{column:t,...n}=e;return{column:this.hot.toVisualColumn(t),...n}};return(0,o.isDefined)(t)&&Array.isArray(t.initialConfig)&&(t.initialConfig=(0,h.arrayMap)(t.initialConfig,n)),t}getColumnNextConfig(e){const t=this.columnStatesManager.getSortOrderOfColumn(e);if((0,o.isDefined)(t)){const n=(0,f.getNextSortOrder)(t);return(0,o.isDefined)(n)?{column:e,sortOrder:n}:void 0}const n=this.hot.countCols();if(Number.isInteger(e)&&e>=0&&e<n)return{column:e,sortOrder:(0,f.getNextSortOrder)()}}getNextSortConfig(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T;const n=this.columnStatesManager.getIndexOfColumnInSortQueue(e),r=-1!==n,s=this.getSortConfig(),i=this.getColumnNextConfig(e);if(r){if((0,o.isUndefined)(i))return[...s.slice(0,n),...s.slice(n+1)];if(t===T)return[...s.slice(0,n),...s.slice(n+1),i];if(t===_)return[...s.slice(0,n),i,...s.slice(n+1)]}return(0,o.isDefined)(i)?s.concat(i):s}getPluginColumnConfig(e){if((0,a.isObject)(e)){const t=e[this.pluginKey];if((0,a.isObject)(t))return t}return{}}getMergedPluginSettings(e){const t=this.hot.getSettings()[this.pluginKey],n=this.columnStatesManager.getAllColumnsProperties(),r=this.hot.getCellMeta(0,e),s=Object.getPrototypeOf(r);return Array.isArray(s.columns)?Object.assign(n,t,this.getPluginColumnConfig(s.columns[e])):(0,l.isFunction)(s.columns)?Object.assign(n,t,this.getPluginColumnConfig(s.columns(e))):Object.assign(n,t)}getFirstCellSettings(e){const t=this.hot.getCellMeta(0,e),n=Object.create(t);return n[this.pluginKey]=this.columnMetaCache.getValueAtIndex(this.hot.toPhysicalColumn(e)),n}getNumberOfRowsToSort(e){const t=this.hot.getSettings();return t.maxRows<=e?t.maxRows:e-t.minSpareRows}sortByPresetSortStates(e){if(this.hot.rowIndexMapper.setIndexesSequence(this.indexesSequenceCache.getValues()),0===e.length)return;const t=[],n=this.hot.countRows(),r=t=>(0,h.arrayMap)(e,e=>this.hot.getDataAtCell(t,e.column));for(let e=0;e<this.getNumberOfRowsToSort(n);e+=1)t.push([this.hot.toPhysicalRow(e)].concat(r(e)));const s=(0,h.arrayMap)(t,e=>e[0]);(0,w.sort)(t,this.pluginKey,(0,h.arrayMap)(e,e=>e.sortOrder),(0,h.arrayMap)(e,e=>this.getFirstCellSettings(e.column)));for(let e=t.length;e<n;e+=1)t.push([e].concat(r(e)));const i=(0,h.arrayMap)(t,e=>e[0]),o=new Map((0,h.arrayMap)(s,(e,t)=>[e,i[t]])),a=(0,h.arrayMap)(this.hot.rowIndexMapper.getIndexesSequence(),e=>o.has(e)?o.get(e):e);this.hot.rowIndexMapper.setIndexesSequence(a)}sortBySettings(e){if((0,a.isObject)(e)){this.columnStatesManager.updateAllColumnsProperties(e);const t=e.initialConfig;(Array.isArray(t)||(0,a.isObject)(t))&&this.sort(t)}else this.hot.render()}updateHeaderClasses(e){if((0,i.removeClass)(e,(0,m.getClassesToRemove)(e)),!1!==this.enabled){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(0,i.addClass)(e,(0,m.getClassesToAdd)(...n))}}onUpdateSettings(e){super.onUpdateSettings(e),null!==this.columnMetaCache&&this.columnMetaCache.init(this.hot.columnIndexMapper.getNumberOfIndexes()),(0,o.isDefined)(e[this.pluginKey])&&this.sortBySettings(e[this.pluginKey])}wasClickableHeaderClicked(e,t){return this.getFirstCellSettings(t)[this.pluginKey].headerAction&&(0,i.hasClass)(e.target,f.HEADER_SPAN_CLASS)}onAfterOnCellMouseDown(e,t){if(!1!==(0,f.wasHeaderClickedProperly)(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)){this.hot.getShortcutManager().isCtrlPressed()&&(this.hot.deselectCell(),this.hot.selectColumns(t.col));const e=this.hot.getActiveEditor(),n=this.getColumnNextConfig(t.col);null!=e&&e.isOpened()&&this.hot.getCellValidator(e.row,e.col)?this.hot.addHookOnce("postAfterValidate",()=>{this.sort(n)}):this.sort(n)}}destroy(){var e;null===(e=this.columnStatesManager)||void 0===e||e.destroy(),super.destroy()}}function I(){const e=this.getAllSavedSortSettings();if((0,a.isObject)(e))this.sortBySettings(e);else{const e=this.hot.getSettings()[this.pluginKey];this.sortBySettings(e)}}function O(e,t){const n=(0,f.getHeaderSpanElement)(t);if(!1===(0,f.isFirstLevelColumnHeader)(e,t)||null===n)return;const r=this.getFirstCellSettings(e)[this.pluginKey],s=r.indicator,o=r.headerAction;if(this.updateHeaderClasses(n,this.columnStatesManager,e,s,o),this.hot.getSettings().ariaTags){const n=this.columnStatesManager.getSortOrderOfColumn(e);(0,i.setAttribute)(t,...(0,y.A11Y_SORT)(n?`${n}ending`:"none"))}}function x(e){!0===e&&this.hot.view&&v(b,this,I).call(this)}function P(e,t,n,r){!1!==(0,f.wasHeaderClickedProperly)(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)&&this.hot.getShortcutManager().isCtrlPressed()&&(r.column=!0)}t.ColumnSorting=M},77587:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(12483);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.Loading=r.Loading},77618:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionLeft",callback(e){const{selection:t}=e,{highlight:n}=e.getSelectedRangeActive();t.isSelectedByRowHeader()||t.isSelectedByCorner()||!(n.isCell()||n.isHeader()&&t.isSelectedByColumnHeader())||(t.markSource("keyboard"),t.transformEnd(0,-1*e.getDirectionFactor()),t.markEndSource())}}},77669:(e,t,n)=>{"use strict";var r=n(94988),s=Error,i=r("".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}},77712:(e,t,n)=>{"use strict";t.__esModule=!0,t.createMenuItemRenderer=function(e){return(t,n,o,a,l,h)=>{const u=t.getSourceDataAtRow(o),c=e.rootDocument.createElement("div"),d="function"==typeof h?h.call(e):h,g="function"==typeof u.ariaLabel?u.ariaLabel.call(e):u.ariaLabel,p="function"==typeof u.ariaChecked?u.ariaChecked.call(e):u.ariaChecked;if((0,s.empty)(n),(0,s.addClass)(c,"htItemWrapper"),e.getSettings().ariaTags){const t=!(0,r.isItemDisabled)(u,e)&&!(0,r.isItemSelectionDisabled)(u)&&!(0,r.isItemSeparator)(u);(0,s.setAttribute)(n,[...(0,r.isItemCheckable)(u)?[(0,i.A11Y_MENU_ITEM_CHECKBOX)(),(0,i.A11Y_LABEL)(g),(0,i.A11Y_CHECKED)(p)]:[(0,i.A11Y_MENU_ITEM)(),(0,i.A11Y_LABEL)(d)],...t?[(0,i.A11Y_TABINDEX)(-1)]:[],...(0,r.isItemDisabled)(u,e)?[(0,i.A11Y_DISABLED)()]:[],...(0,r.isItemSubMenu)(u)?[(0,i.A11Y_EXPANDED)(!1)]:[]])}n.className="",n.appendChild(c),(0,r.isItemSeparator)(u)?(0,s.addClass)(n,"htSeparator"):"function"==typeof u.renderer?((0,s.addClass)(n,"htCustomMenuRenderer"),n.appendChild(u.renderer(t,c,o,a,l,d))):(0,s.fastInnerHTML)(c,d),(0,r.isItemDisabled)(u,e)?(0,s.addClass)(n,"htDisabled"):(0,r.isItemSelectionDisabled)(u)?(0,s.addClass)(n,"htSelectionDisabled"):(0,r.isItemSubMenu)(u)&&(0,s.addClass)(n,"htSubmenu")}};var r=n(77002),s=n(38942),i=n(14089)},77749:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(81396),n(88633);var s=r(n(81115));t.ViewportBaseCalculator=class{constructor(e){(0,s.default)(this,"calculationTypes",[]),(0,s.default)(this,"calculationResults",new Map),this.calculationTypes=e}_initialize(e){this.calculationTypes.forEach(t=>{let[n,r]=t;this.calculationResults.set(n,r),r.initialize(e)})}_process(e,t){this.calculationTypes.forEach(n=>{let[,r]=n;return r.process(e,t)})}_finalize(e){this.calculationTypes.forEach(t=>{let[,n]=t;return n.finalize(e)})}getResultsFor(e){return this.calculationResults.get(e)}}},77768:(e,t,n)=>{"use strict";t.__esModule=!0,t.getOperationFunc=function(e){if(!r[e])throw Error(`Operation with id "${e}" does not exist.`);const t=r[e].func;return function(e,n){return t(e,n)}},t.getOperationName=function(e){return r[e].name},t.registerOperation=function(e,t,n){r[e]={name:t,func:n}},n(22588);const r=t.operations={}},77799:(e,t,n)=>{"use strict";t.__esModule=!0,n(22588);var r=n(87544),s=n(38942),i=n(37849);function o(e,t,n){a(e,t),t.set(e,n)}function a(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function l(e,t){return e.get(u(e,t))}function h(e,t,n){return e.set(u(e,t),n),n}function u(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const c=Object.freeze({CELL:"cell",MIXED:"mixed"});var d=new WeakMap,g=new WeakMap,p=new WeakMap,f=new WeakMap,m=new WeakMap,E=new WeakMap,w=new WeakSet;function y(e){var t;const n=null===(t=l(d,this).getSelectedRangeActive())||void 0===t?void 0:t.highlight;if(!n||!l(d,this).selection.isCellVisible(n))return void e(null);const r=l(d,this).getCell(n.row,n.col,!0);null===r?l(d,this).addHookOnce("afterScroll",()=>{e(l(d,this).getCell(n.row,n.col,!0))}):e(r)}function C(){u(w,this,y).call(this,e=>{const{activeElement:t}=l(d,this).rootDocument;t&&(0,s.isOutsideInput)(t)&&t.blur(),this.focusOnHighlightedCell(e)})}function v(){u(w,this,y).call(this,e=>{this.getFocusMode()===c.MIXED&&"TD"===(null==e?void 0:e.nodeName)&&this.refocusToEditorTextarea()})}function S(){h(E,this,!0)}function R(){l(E,this)&&(h(E,this,!1),u(w,this,C).call(this))}function T(e){"boolean"==typeof e.imeFastEdit&&this.setFocusMode(e.imeFastEdit?c.MIXED:c.CELL)}t.FocusGridManager=class{constructor(e){var t,n;a(t=this,n=w),n.add(t),o(this,d,void 0),o(this,g,void 0),o(this,p,1),o(this,f,null),o(this,m,new Map),o(this,E,!1),h(d,this,e)}init(){var e=this;const t=l(d,this).getSettings();h(g,this,t.imeFastEdit?c.MIXED:c.CELL),l(d,this).addHook("afterUpdateSettings",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return u(w,e,T).call(e,...n)}),l(d,this).addHook("afterSelection",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return u(w,e,S).call(e,...n)}),l(d,this).addHook("afterSelectionFocusSet",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return u(w,e,S).call(e,...n)}),l(d,this).addHook("afterSelectionEnd",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return u(w,e,v).call(e,...n)}),l(d,this).addHook("afterRender",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return u(w,e,R).call(e,...n)})}getFocusMode(){return l(g,this)}setFocusMode(e){Object.values(c).includes(e)?h(g,this,e):(0,r.warn)(`"${e}" is not a valid focus mode.`)}getRefocusDelay(){return l(p,this)}setRefocusDelay(e){h(p,this,e)}setRefocusElementGetter(e){h(f,this,e)}getRefocusElement(){var e;return"function"==typeof l(f,this)?l(f,this).call(this):null===(e=l(d,this).getActiveEditor())||void 0===e?void 0:e.TEXTAREA}focusOnHighlightedCell(e){const t=e=>{var t,n;const r=null===(t=l(d,this).getSelectedRangeActive())||void 0===t?void 0:t.highlight;if(!r)return;let i=l(d,this).runHooks("modifyFocusedElement",r.row,r.col,e);(0,s.isHTMLElement)(i)||(i=e),!i||null!==(n=l(d,this).getActiveEditor())&&void 0!==n&&n.isOpened()||i.focus({preventScroll:!0})};e?t(e):u(w,this,y).call(this,e=>t(e))}refocusToEditorTextarea(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l(p,this);var n,r;!l(d,this).getSettings().imeFastEdit||null!==(e=l(d,this).getActiveEditor())&&void 0!==e&&e.isOpened()||(null===(n=l(d,this).getActiveEditor())||void 0===n||null===(r=n.refreshValue)||void 0===r||r.call(n),l(m,this).has(t)||l(m,this).set(t,(0,i.debounce)(()=>{var e;l(d,this).isDestroyed||(null===(e=this.getRefocusElement())||void 0===e||e.select())},t)),l(m,this).get(t)())}}},78061:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588);var s=r(n(6656));function i(e,t,n){(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,n)}function o(e,t){return e.get(l(e,t))}function a(e,t,n){return e.set(l(e,t),n),n}function l(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,u=new WeakMap,c=new WeakMap,d=new WeakMap,g=new WeakMap,p=new WeakMap,f=new WeakMap;t.default=class{constructor(e,t,n){i(this,h,void 0),i(this,u,void 0),i(this,c,void 0),i(this,d,!1),i(this,g,!1),i(this,p,null),i(this,f,null),a(h,this,new s.default("row",e,this)),a(u,this,new s.default("column",t,this)),a(c,this,n)}getForAxis(e){return o("row"===e?h:u,this)}setPerformUndo(e){a(d,this,e)}setPerformRedo(e){a(g,this,e)}isPerformingUndoRedo(){return o(d,this)||o(g,this)}getSheetId(){return o(f,this)}getEngine(){return o(p,this)}getPostponeAction(){return o(c,this)}setupSyncEndpoint(e,t){a(p,this,e),a(f,this,t),o(h,this).init(),o(u,this).init()}}},78158:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(81115));t.NodesPool=class{constructor(e){(0,s.default)(this,"nodeType",void 0),(0,s.default)(this,"pool",new Map),this.nodeType=e.toUpperCase()}setRootDocument(e){this.rootDocument=e}obtain(e,t){const n="number"==typeof t?`${e}x${t}`:e.toString();if(this.pool.has(n))return this.pool.get(n);const r=this.rootDocument.createElement(this.nodeType);return this.pool.set(n,r),r}}},78190:(e,t,n)=>{"use strict";t.__esModule=!0,t.condition=a;var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217)),s=n(54342),i=n(25039);const o=t.CONDITION_NAME="begins_with";function a(e,t){let[n]=t;return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale).startsWith((0,s.stringify)(n))}(0,i.registerCondition)(o,a,{name:r.FILTERS_CONDITIONS_BEGINS_WITH,inputsCount:1,showOperators:!0})},78282:()=>{},78358:(e,t,n)=>{"use strict";t.__esModule=!0,t.createPaginator=function(e){let{initialPage:t=-1,size:n=()=>0,onItemSelect:s=()=>{},onClear:i=()=>{}}=e;const o=new Set;let a=(0,r.clamp)(t,-1,h()-1);function l(e,t){const n=h()-1;if(e<0&&(e=n),e>n&&(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(n(),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()}}},n(78822),n(86192),n(80729),n(99888),n(12767),n(78644),n(97550);var r=n(72740)},78359:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(12238);t.OrderView=r.OrderView;var s=n(48291);t.SharedOrderView=s.SharedOrderView},78409:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588);var s=r(n(81115)),i=n(57440),o=n(68834),a=n(38942);function l(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function h(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const u=t.PLUGIN_KEY="dragToScroll",c=t.PLUGIN_PRIORITY=100;var d=new WeakSet;class g extends i.BasePlugin{constructor(){super(...arguments),l(this,d),(0,s.default)(this,"boundaries",null),(0,s.default)(this,"callback",null),(0,s.default)(this,"listening",!1)}static get PLUGIN_KEY(){return u}static get PLUGIN_PRIORITY(){return c}isEnabled(){return!!this.hot.getSettings()[u]}enablePlugin(){this.enabled||(this.addHook("afterOnCellMouseDown",e=>h(d,this,p).call(this,e)),this.addHook("afterOnCellCornerMouseDown",e=>h(d,this,p).call(this,e)),this.registerEvents(),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.unregisterEvents(),super.disablePlugin()}setBoundaries(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{left:0,right:this.hot.rootWindow.innerWidth,top:0,bottom:this.hot.rootWindow.innerHeight};this.boundaries=e}setCallback(e){this.callback=e}check(e,t){let n=0,r=0;t<this.boundaries.top?r=t-this.boundaries.top:t>this.boundaries.bottom&&(r=t-this.boundaries.bottom),e<this.boundaries.left?n=e-this.boundaries.left:e>this.boundaries.right&&(n=e-this.boundaries.right),this.callback(n,r)}listen(){this.listening=!0}unlisten(){this.listening=!1}isListening(){return this.listening}registerEvents(){const{rootWindow:e}=this.hot;let t=e;for(;t;)this.eventManager.addEventListener(t.document,"contextmenu",()=>this.unlisten()),this.eventManager.addEventListener(t.document,"mouseup",()=>this.unlisten()),this.eventManager.addEventListener(t.document,"mousemove",e=>this.onMouseMove(e)),t=(0,a.getParentWindow)(t)}unregisterEvents(){this.eventManager.clear()}onMouseMove(e){this.isListening()&&this.check(e.clientX,e.clientY)}destroy(){super.destroy()}}function p(e){if((0,o.isRightClick)(e))return;const t=this.hot.view._wt.wtOverlays.topOverlay.mainTableScrollableElement;this.setBoundaries(t!==this.hot.rootWindow?t.getBoundingClientRect():void 0),this.setCallback((e,n)=>{var r,s;const i=null!==(r=t.scrollLeft)&&void 0!==r?r:t.scrollX,o=null!==(s=t.scrollTop)&&void 0!==s?s:t.scrollY;t.scroll(i+50*Math.sign(e),o+20*Math.sign(n))}),this.listen()}t.DragToScroll=g},78434:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostBottom",callback(e){const{selection:t}=e,{col:n}=e.getSelectedRangeActive().highlight;let r=e.rowIndexMapper.getNearestNotHiddenIndex(e.countRows()-1,-1);null===r&&(r=-1),t.setRangeStart(e._createCellCoords(r,n))}}},78595:(e,t,n)=>{"use strict";t.__esModule=!0,n(22588),n(66182),n(81396),n(81124),n(88633),n(14618);var r=n(38942),s=n(89090),i=n(21510),o=n(37849),a=n(51053),l=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217)),h=n(68834),u=n(31591),c=n(54459),d=n(49039),g=n(44917);function p(e,t,n){f(e,t),t.set(e,n)}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){return e.get(w(e,t))}function E(e,t,n){return e.set(w(e,t),n),n}function w(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const y="multipleSelect.itemBox";var C=new WeakMap,v=new WeakMap,S=new WeakMap,R=new WeakMap,T=new WeakMap,_=new WeakMap,N=new WeakSet;class A extends u.BaseUI{static get DEFAULTS(){return(0,s.clone)({className:"htUIMultipleSelect",value:[]})}constructor(e,t){var n,r;super(e,(0,s.extend)(A.DEFAULTS,t)),f(n=this,r=N),r.add(n),p(this,C,[]),p(this,v,void 0),p(this,S,void 0),p(this,R,void 0),p(this,T,void 0),p(this,_,void 0),E(R,this,new c.InputUI(this.hot,{placeholder:l.FILTERS_BUTTONS_PLACEHOLDER_SEARCH,className:"htUIMultipleSelectSearch"})),E(T,this,new d.LinkUI(this.hot,{textContent:l.FILTERS_BUTTONS_SELECT_ALL,className:"htUISelectAll"})),E(_,this,new d.LinkUI(this.hot,{textContent:l.FILTERS_BUTTONS_CLEAR,className:"htUIClearAll"})),this.registerHooks()}getItemsBox(){return m(v,this)}registerHooks(){m(R,this).addLocalHook("keydown",e=>w(N,this,M).call(this,e)),m(R,this).addLocalHook("input",e=>w(N,this,b).call(this,e)),m(T,this).addLocalHook("click",e=>w(N,this,I).call(this,e)),m(_,this).addLocalHook("click",e=>w(N,this,O).call(this,e))}setItems(e){var t;E(C,this,e),null===(t=m(v,this))||void 0===t||t.loadData(m(C,this))}setLocale(e){E(S,this,e)}getLocale(){return m(S,this)}getItems(){return[...m(C,this)]}getValue(){return function(e){const t=[];return e.forEach(e=>{e.checked&&t.push(e.value)}),t}(m(C,this))}getSearchInputElement(){return m(R,this)}getSelectAllElement(){return m(T,this)}getClearAllElement(){return m(_,this)}isSelectedAllValues(){return m(C,this).length===this.getValue().length}build(){var e;super.build();const{rootDocument:t}=this.hot,n=t.createElement("div"),s=new u.BaseUI(this.hot,{className:"htUISelectionControls",children:[m(T,this),m(_,this)]});this._element.appendChild(m(R,this).element),this._element.appendChild(s.element),this._element.appendChild(n),null===(e=m(v,this))||void 0===e||e.destroy(),(0,r.addClass)(n,"htUIMultipleSelectHot"),E(v,this,new this.hot.constructor(n,{data:[[]],columns:[{data:"checked",type:"checkbox",label:{property:"visualValue",position:"after"}}],beforeRenderer:(e,t,n,r,s,i)=>{e.title=i.instance.getDataAtRowProp(t,i.label.property)},afterListen:()=>{this.runLocalHooks("focus",this)},beforeOnCellMouseUp:()=>{m(v,this).listen()},modifyColWidth:e=>{const n=m(v,this).container.scrollWidth-(0,r.getScrollbarWidth)(t);return void 0!==e&&e<n?n:e},autoColumnSize:!0,autoRowSize:!1,hiddenRows:!0,maxCols:1,autoWrapCol:!0,height:110,copyPaste:!1,disableVisualSelection:"area",fillHandle:!1,fragmentSelection:"cell",tabMoves:{row:1,col:0},themeName:this.hot.getCurrentThemeName(),layoutDirection:this.hot.isRtl()?"rtl":"ltr"})),m(v,this).init();const i=m(v,this).getShortcutManager().getContext("grid");i.removeShortcutsByKeys(["Tab"]),i.removeShortcutsByKeys(["Shift","Tab"]),i.addShortcut({keys:[["Escape"]],callback:e=>{this.runLocalHooks("keydown",e,this)},group:y}),i.addShortcut({keys:[["Tab"],["Shift","Tab"]],callback:e=>{m(v,this).deselectCell(),this.runLocalHooks("keydown",e,this),this.runLocalHooks("listTabKeydown",e,this)},group:y})}focus(){this.isBuilt()&&m(v,this).listen()}reset(){m(R,this).reset(),m(T,this).reset(),m(_,this).reset()}update(){this.isBuilt()&&0!==m(v,this).rootElement.offsetHeight&&(m(v,this).updateSettings({data:x(m(C,this),this.options.value)}),super.update())}destroy(){var e;null===(e=m(v,this))||void 0===e||e.destroy(),m(R,this).destroy(),m(_,this).destroy(),m(T,this).destroy(),E(R,this,null),E(_,this,null),E(T,this,null),E(v,this,null),E(C,this,null),super.destroy()}}function b(e){const t=e.target.value.toLocaleLowerCase(this.getLocale());if("apply"===this.options.searchMode){const e=m(v,this).getPlugin("hiddenRows");e.showRows(e.getHiddenRows()),m(C,this).forEach((n,r)=>{n.checked=`${n.value}`.toLocaleLowerCase(this.getLocale()).indexOf(t)>=0,n.checked||e.hideRow(r)}),m(v,this).view.adjustElementsSize(),m(v,this).render()}else{let e;e=""===t?[...m(C,this)]:m(C,this).filter(e=>`${e.value}`.toLocaleLowerCase(this.getLocale()).indexOf(t)>=0),m(v,this).loadData(e)}}function M(e){this.runLocalHooks("keydown",e,this);(0,o.partial)(i.isKey,e.keyCode)("ARROW_DOWN")&&(e.preventDefault(),(0,h.stopImmediatePropagation)(e),m(v,this).listen(),m(v,this).selectCell(0,0))}function I(e){const t=[];e.preventDefault(),m(v,this).getSourceData().forEach((e,n)=>{e.checked=!0,t.push((0,a.dataRowToChangesArray)(e,n)[0])}),m(v,this).setSourceDataAtCell(t)}function O(e){const t=[];e.preventDefault(),m(v,this).getSourceData().forEach((e,n)=>{e.checked=!1,t.push((0,a.dataRowToChangesArray)(e,n)[0])}),m(v,this).setSourceDataAtCell(t)}t.MultipleSelectUI=A;t.default=A;function x(e,t){const n=(0,g.createArrayAssertion)(t);return e.map(e=>(e.checked=n(e.value),e))}},78644:(e,t,n)=>{"use strict";var r=n(27538),s=n(26286),i=n(72023);r({target:"Set",proto:!0,real:!0,forced:!n(90544)("symmetricDifference")||!i("symmetricDifference")},{symmetricDifference:s})},78656:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},78777:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_ROW_ABOVE)},callback(){const e=this.getSelectedRangeActive().getTopLeftCorner();this.alter("insert_row_above",e.row,1,"ContextMenu.rowAbove")},disabled(){const e=this.getSelectedRangeActive();return!!(!e||this.selection.isSelectedByColumnHeader()||e.isSingleHeader()&&e.highlight.row<0||this.countSourceRows()>=this.getSettings().maxRows)||!!this.selection.isSelectedByCorner()&&0===this.countRows()},hidden(){return!this.getSettings().allowInsertRow}}};var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217));const s=t.KEY="row_above"},78822:(e,t,n)=>{"use strict";var r=n(27538),s=n(23092),i=n(89035);r({target:"Set",proto:!0,real:!0,forced:!n(90544)("difference",function(e){return 0===e.size})||i(function(){var e={size:1,has:function(){return!0},keys:function(){var e=0;return{next:function(){var n=e++>1;return t.has(1)&&t.clear(),{done:n,value:2}}}}},t=new Set([1,2,3,4]);return 3!==t.difference(e).size})},{difference:s})},78869:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(66182);var s=r(n(81115)),i=n(77749);const o=t.DEFAULT_WIDTH=50;class a extends i.ViewportBaseCalculator{constructor(e){let{calculationTypes:t,viewportWidth:n,scrollOffset:r,totalColumns:i,columnWidthFn:o,overrideFn:a,inlineStartOffset:l}=e;super(t),(0,s.default)(this,"viewportWidth",0),(0,s.default)(this,"scrollOffset",0),(0,s.default)(this,"zeroBasedScrollOffset",0),(0,s.default)(this,"totalColumns",0),(0,s.default)(this,"columnWidthFn",null),(0,s.default)(this,"columnWidth",0),(0,s.default)(this,"overrideFn",null),(0,s.default)(this,"inlineStartOffset",0),(0,s.default)(this,"totalCalculatedWidth",0),(0,s.default)(this,"startPositions",[]),(0,s.default)(this,"needReverse",!0),this.viewportWidth=n,this.scrollOffset=r,this.zeroBasedScrollOffset=Math.max(r,0),this.totalColumns=i,this.columnWidthFn=o,this.overrideFn=a,this.inlineStartOffset=l,this.calculate()}calculate(){this._initialize(this);for(let e=0;e<this.totalColumns;e++)if(this.columnWidth=this.getColumnWidth(e),this._process(e,this),this.startPositions.push(this.totalCalculatedWidth),this.totalCalculatedWidth+=this.columnWidth,this.totalCalculatedWidth>=this.zeroBasedScrollOffset+this.viewportWidth){this.needReverse=!1;break}this._finalize(this)}getColumnWidth(e){const t=this.columnWidthFn(e);return isNaN(t)?o:t}}t.ViewportColumnsCalculator=a},79089:(e,t,n)=>{"use strict";t.__esModule=!0,t.createMergeCellRenderer=function(e){const{hot:t}=e,{rowIndexMapper:n,columnIndexMapper:o}=t,a=new Map;return{before:function(){},after:function(l,h,u){const c=e.mergedCellsCollection.get(h,u);if(!(0,r.isObject)(c))return l.removeAttribute("rowspan"),l.removeAttribute("colspan"),a.has(h)&&!t.getSettings().rowHeaders&&(l.style.height=`${a.get(h)}px`,a.delete(h)),void(l.style.display="");const{row:d,col:g,colspan:p,rowspan:f}=c,[m,E]=e.translateMergedCellToRenderable(d,f,g,p),w=e.getSetting("virtualized");if(0===g&&!t.getSettings().rowHeaders){const e=t._getRowHeightFromSettings(h);if(void 0!==e){const n=t.stylesHandler.areCellsBorderBox()?0:1;a.set(h,e-n)}else if((0,s.isSafari)()){const e=(0,i.sumCellsHeights)(t,d,f);a.set(h,e/f)}}const y=m-n.getRenderableFromVisualIndex(h)+1,C=E-o.getRenderableFromVisualIndex(u)+1;let v=n.getNearestNotHiddenIndex(d,1),S=o.getNearestNotHiddenIndex(g,1);if(w){const e=t.view.getActiveOverlayName();["top","top_inline_start_corner"].includes(e)||(v=Math.max(v,t.getFirstRenderedVisibleRow())),["inline_start","top_inline_start_corner","bottom_inline_start_corner"].includes(e)||(S=Math.max(S,t.getFirstRenderedVisibleColumn()))}const R=Math.min(f,y),T=Math.min(p,C);v===h&&S===u?(l.setAttribute("rowspan",R),l.setAttribute("colspan",T)):(l.removeAttribute("rowspan"),l.removeAttribute("colspan"),l.style.display="none")}}};var r=n(89090),s=n(58617),i=n(44457)},79115:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionDown",callback(e){const{selection:t}=e,{highlight:n}=e.getSelectedRangeActive();t.isSelectedByColumnHeader()||t.isSelectedByCorner()||!(n.isCell()||n.isHeader()&&t.isSelectedByRowHeader())||(t.markSource("keyboard"),t.transformEnd(1,0),t.markEndSource())}}},79212:(e,t,n)=>{"use strict";var r=n(14326),s=n(82397),i=n(16135),o=n(22381);e.exports=function(e,t,n,a){a||(a={});var l=a.enumerable,h=void 0!==a.name?a.name:t;if(r(n)&&i(n,h,a),a.global)l?e[t]=n:o(t,n);else{try{a.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:s.f(e,t,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},79329:(e,t,n)=>{"use strict";t.__esModule=!0,n(22588),n(66182),n(81396),n(88633);var r=n(57440),s=n(38942),i=n(30152),o=n(72740),a=n(20160);function l(e,t,n){h(e,t),t.set(e,n)}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,n){return e.set(d(e,t),n),n}function c(e,t){return e.get(d(e,t))}function d(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;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,E=new WeakMap,w=new WeakMap,y=new WeakMap,C=new WeakMap,v=new WeakMap,S=new WeakMap,R=new WeakMap,T=new WeakMap,_=new WeakMap,N=new WeakMap,A=new WeakMap,b=new WeakMap,M=new WeakMap,I=new WeakMap,O=new WeakMap,x=new WeakSet;class P extends r.BasePlugin{static get PLUGIN_KEY(){return g}static get PLUGIN_PRIORITY(){return p}constructor(e){var t,n;super(e),h(t=this,n=x),n.add(t),l(this,m,null),l(this,E,null),l(this,w,[]),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,_,this.hot.rootDocument.createElement("DIV")),l(this,N,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(_,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,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return d(x,e,V).call(e,...n)},1),this.addHook("beforeStretchingColumnWidth",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return d(x,e,B).call(e,...n)},1),this.addHook("beforeColumnResize",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return d(x,e,W).call(e,...n)}),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 n=Math.max(t,20),r=this.hot.toPhysicalColumn(e);return c(I,this).setValueAtIndex(r,n),n}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,n=t.wtTable.getCoords(c(m,this)),r=n.col;if(r<0)return;const a=(0,s.outerHeight)(c(m,this)),l=c(m,this).getBoundingClientRect();let h;r<t.getSetting("fixedColumnsStart")&&(h=t.wtOverlays.topInlineStartCornerOverlay.getRelativeCellPosition(c(m,this),n.row,n.col)),h||(h=t.wtOverlays.topOverlay.getRelativeCellPosition(c(m,this),n.row,n.col)),u(E,this,this.hot.columnIndexMapper.getVisualFromRenderableIndex(r)),u(w,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,n=e.getBottomEndCorner().col;(0,o.rangeEach)(t,n,e=>{c(w,this).includes(e)||c(w,this).push(e)})})}c(w,this).includes(c(E,this))||u(w,this,[c(E,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,n=this.hot.view.getTableHeight();(0,s.addClass)(c(T,this),"active"),(0,s.addClass)(c(_,this),"active"),c(_,this).style.top=`${t}px`,this.refreshGuidePosition(),c(_,this).style.height=n-e+"px",this.hot.rootElement.appendChild(c(_,this))}refreshGuidePosition(){c(_,this).style[this.inlineDir]=c(T,this).style[this.inlineDir]}hideHandleAndGuide(){(0,s.removeClass)(c(T,this),"active"),(0,s.removeClass)(c(_,this),"active")}checkIfColumnHeader(e){const t=(0,s.closest)(e,["THEAD"],this.hot.rootElement),{topOverlay:n,topInlineStartCornerOverlay:r}=this.hot.view._wt.wtOverlays;return[n.clone.wtTable.THEAD,r.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,n)=>{const r=this.hot.runHooks("beforeColumnResize",c(C,this),t,!0);void 0!==r&&u(C,this,r),this.setManualSize(t,c(C,this)),this.saveManualColumnWidths(),this.hot.runHooks("afterColumnResize",c(C,this),t,!0),n&&e()};if(c(b,this)>=2){c(w,this).length>1?((0,i.arrayEach)(c(w,this),e=>{t(e)}),e()):(0,i.arrayEach)(c(w,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 n=t.getAttribute("colspan");!t||null!==n&&"1"!==n||c(N,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(N,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(N,this)){const t=(e.pageX-this.startX)*this.hot.getDirectionFactor();u(y,this,c(S,this)+t),(0,i.arrayEach)(c(w,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,n)=>{this.hot.runHooks("beforeColumnResize",c(C,this),t,!1),n&&e(),this.saveManualColumnWidths(),this.hot.runHooks("afterColumnResize",c(C,this),t,!1)};if(c(N,this)){if(this.hideHandleAndGuide(),u(N,this,!1),c(C,this)!==c(S,this)){c(w,this).length>1?((0,i.arrayEach)(c(w,this),e=>{t(e)}),e()):(0,i.arrayEach)(c(w,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(_,this)),u(N,this,!1),u(A,this,!0),this.hot._registerImmediate(()=>{u(A,this,!1)})}function V(e,t){let n=e;if(this.enabled){const e=this.hot.toPhysicalColumn(t),r=c(I,this).getValueAtIndex(e);this.hot.getSettings()[g]&&r&&(n=r)}return n}function B(e,t){const n=c(I,this).getValueAtIndex(this.hot.toPhysicalColumn(t));return"number"==typeof n?n:e}function W(){this.hot.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked()}t.ManualColumnResize=P},79449:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,t.createHighlight=function(e){let{columnClassName:t,...n}=e;return new i.default({className:t,...n,selectionType:s.HIGHLIGHT_COLUMN_TYPE})};var s=n(51191),i=r(n(5103))},79733:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},79888:(e,t,n)=>{"use strict";var r=n(27538),s=n(19617),i=n(81576),o=n(49510),a=n(16539),l=n(83203),h=n(13479),u=n(57625)("every",TypeError);r({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),n=0;return!i(t,function(t,r){if(!e(t,n++))return r()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},80065:(e,t,n)=>{"use strict";t.__esModule=!0,t.rootComparator=function(e,t){return function(n,s){const[,...i]=n,[,...o]=s;return function(n){const s=e[n],a=t[n],l=i[n],h=o[n],u=a.columnSorting;return(u.compareFunctionFactory?u.compareFunctionFactory:(0,r.getCompareFunctionFactory)(a.type))(s,a,u)(l,h)}(0)}};var r=n(18793)},80085:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(14736),s=n(84145);t.TEMPLATES=new Map([["base",r.baseTemplate],["confirm",s.confirmTemplate]])},80152:()=>{},80350:()=>{},80387:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182),n(81396),n(88633);var s=r(n(81115)),i=n(57440),o=n(89090),a=n(87544),l=n(72740),h=n(30152),u=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217)),c=n(66917),d=n(6528),g=n(21650),p=n(54342);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,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const E=t.PLUGIN_KEY="customBorders",w=t.PLUGIN_PRIORITY=90,y=["dashed","dotted","solid"];var C=new WeakSet;class v extends i.BasePlugin{constructor(){super(...arguments),f(this,C),(0,s.default)(this,"savedBorders",[])}static get PLUGIN_KEY(){return E}static get PLUGIN_PRIORITY(){return w}isEnabled(){return!!this.hot.getSettings()[E]}enablePlugin(){this.enabled||(this.addHook("afterContextMenuDefaultOptions",e=>m(C,this,R).call(this,e)),this.addHook("init",()=>m(C,this,T).call(this)),super.enablePlugin())}disablePlugin(){this.hideBorders(),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.changeBorderSettings(),super.updatePlugin()}setBorders(e,t){let n=["top","bottom","start","end"],r=null;t&&(this.checkSettingsCohesion([t]),n=Object.keys(t),r=(0,d.normalizeBorder)(t));const s=(0,g.detectSelectionType)(e),i=(0,g.normalizeSelectionFactory)(s,{createCellCoords:this.hot._createCellCoords.bind(this.hot),createCellRange:this.hot._createCellRange.bind(this.hot)});(0,h.arrayEach)(e,e=>{i(e).forAll((e,t)=>{(0,h.arrayEach)(n,n=>{this.prepareBorderFromCustomAdded(e,t,r,(0,d.toInlinePropName)(n))})})}),this.hot.view.render()}getBorders(e){if(!Array.isArray(e))return this.savedBorders;const t=(0,g.detectSelectionType)(e),n=(0,g.normalizeSelectionFactory)(t,{createCellCoords:this.hot._createCellCoords.bind(this.hot),createCellRange:this.hot._createCellRange.bind(this.hot)}),r=[];return(0,h.arrayEach)(e,e=>{n(e).forAll((e,t)=>{(0,h.arrayEach)(this.savedBorders,n=>{n.row===e&&n.col===t&&r.push((0,d.denormalizeBorder)(n))})})}),r}clearBorders(e){e?this.setBorders(e):((0,h.arrayEach)(this.savedBorders,e=>{this.clearBordersFromSelectionSettings(e.id),this.clearNullCellRange(),this.hot.removeCellMeta(e.row,e.col,"borders")}),this.savedBorders.length=0)}insertBorderIntoSettings(e,t){this.checkSavedBorders(e)||this.savedBorders.push(e);const n=this.hot._createCellRange(this.hot._createCellCoords(e.row,e.col));this.checkCustomSelections(e,n,t)||this.hot.selection.highlight.addCustomSelection({border:e,visualCellRange:n})}prepareBorderFromCustomAdded(e,t,n,r){const s=this.hot.countRows(),i=this.hot.countCols();if(e>=s||t>=i)return;let o=(0,d.createEmptyBorders)(e,t);n&&(o=(0,d.extendDefaultBorder)(o,n),(0,h.arrayEach)(this.hot.selection.highlight.customSelections,e=>{if(o.id===e.settings.id)return Object.assign(e.settings,n),o.id=e.settings.id,o.top=e.settings.top,o.bottom=e.settings.bottom,o.start=e.settings.start,o.end=e.settings.end,!1})),this.hot.setCellMeta(e,t,"borders",(0,d.denormalizeBorder)(o)),this.insertBorderIntoSettings(o,r)}prepareBorderFromCustomAddedRange(e,t){const n=Math.min(e.to.row,this.hot.countRows()-1),r=Math.min(e.to.col,this.hot.countCols()-1);(0,l.rangeEach)(e.from.row,n,n=>{(0,l.rangeEach)(e.from.col,r,r=>{const s=(0,d.createEmptyBorders)(n,r);let i=0;n===e.from.row&&(0,o.hasOwnProperty)(t,"top")&&(i+=1,s.top=t.top),n===e.to.row&&(0,o.hasOwnProperty)(t,"bottom")&&(i+=1,s.bottom=t.bottom),r===e.from.col&&(0,o.hasOwnProperty)(t,"start")&&(i+=1,s.start=t.start),r===e.to.col&&(0,o.hasOwnProperty)(t,"end")&&(i+=1,s.end=t.end),i>0&&(this.hot.setCellMeta(n,r,"borders",(0,d.denormalizeBorder)(s)),this.insertBorderIntoSettings(s))})})}removeAllBorders(e,t){const n=(0,d.createId)(e,t);this.spliceBorder(n),this.clearBordersFromSelectionSettings(n),this.clearNullCellRange(),this.hot.removeCellMeta(e,t,"borders")}setBorder(e,t,n,r){let s=this.hot.getCellMeta(e,t).borders;if(s=s&&void 0!==s.border?(0,d.normalizeBorder)(s):(0,d.createEmptyBorders)(e,t),r){s[n]=(0,d.createSingleEmptyBorder)();if(4===this.countHide(s))this.removeAllBorders(e,t);else{this.checkCustomSelectionsFromContextMenu(s,n,r)||this.insertBorderIntoSettings(s),this.hot.setCellMeta(e,t,"borders",(0,d.denormalizeBorder)(s))}}else{s[n]=(0,d.createDefaultCustomBorder)();this.checkCustomSelectionsFromContextMenu(s,n,r)||this.insertBorderIntoSettings(s),this.hot.setCellMeta(e,t,"borders",(0,d.denormalizeBorder)(s))}}prepareBorder(e,t,n){(0,h.arrayEach)(e,e=>{let{start:r,end:s}=e;if(r.row===s.row&&r.col===s.col)"noBorders"===t?this.removeAllBorders(r.row,r.col):this.setBorder(r.row,r.col,t,n);else switch(t){case"noBorders":(0,l.rangeEach)(r.col,s.col,e=>{(0,l.rangeEach)(r.row,s.row,t=>{this.removeAllBorders(t,e)})});break;case"top":(0,l.rangeEach)(r.col,s.col,e=>{this.setBorder(r.row,e,t,n)});break;case"bottom":(0,l.rangeEach)(r.col,s.col,e=>{this.setBorder(s.row,e,t,n)});break;case"start":(0,l.rangeEach)(r.row,s.row,e=>{this.setBorder(e,r.col,t,n)});break;case"end":(0,l.rangeEach)(r.row,s.row,e=>{this.setBorder(e,s.col,t,n)})}})}createCustomBorders(e){(0,h.arrayEach)(e,e=>{const t=(0,d.normalizeBorder)(e);e.range?this.prepareBorderFromCustomAddedRange(e.range,t):this.prepareBorderFromCustomAdded(e.row,e.col,t)})}countHide(e){const{top:t,bottom:n,start:r,end:s}=e,i=[t,n,r,s];return(0,h.arrayReduce)(i,(e,t)=>{let n=e;return t&&t.hide&&(n+=1),n},0)}clearBordersFromSelectionSettings(e){const t=(0,h.arrayMap)(this.hot.selection.highlight.customSelections,e=>e.settings.id).indexOf(e);t>-1&&this.hot.selection.highlight.customSelections[t].clear()}clearNullCellRange(){(0,h.arrayEach)(this.hot.selection.highlight.customSelections,(e,t)=>{if(null===e.cellRange)return this.hot.selection.highlight.customSelections[t].destroy(),this.hot.selection.highlight.customSelections.splice(t,1),!1})}hideBorders(){(0,h.arrayEach)(this.savedBorders,e=>{this.clearBordersFromSelectionSettings(e.id),this.clearNullCellRange()})}spliceBorder(e){const t=(0,h.arrayMap)(this.savedBorders,e=>e.id).indexOf(e);t>-1&&this.savedBorders.splice(t,1)}checkSavedBorders(e){let t=!1;return 4===this.countHide(e)?(this.spliceBorder(e.id),t=!0):(0,h.arrayEach)(this.savedBorders,(n,r)=>{if(e.id===n.id)return this.savedBorders[r]=e,t=!0,!1}),t}checkCustomSelectionsFromContextMenu(e,t,n){let r=!1;return(0,h.arrayEach)(this.hot.selection.highlight.customSelections,s=>{if(e.id===s.settings.id){const e=this.hot.view._wt.selectionManager.getBorderInstances(s);return(0,h.arrayEach)(e,e=>{e.toggleHiddenClass(t,n)}),r=!0,!1}}),r}checkCustomSelections(e,t,n){const r=this.countHide(e);let s=!1;return 4===r?(this.removeAllBorders(e.row,e.col),s=!0):(0,h.arrayEach)(this.hot.selection.highlight.customSelections,r=>{if(e.id===r.settings.id){if(r.visualCellRange=t,r.commit(),n){const t=this.hot.view._wt.selectionManager.getBorderInstances(r);(0,h.arrayEach)(t,t=>{t.changeBorderStyle(n,e)})}return s=!0,!1}}),s}changeBorderSettings(){const e=this.hot.getSettings()[E];if(Array.isArray(e)){const t=(0,o.deepClone)(e);this.checkSettingsCohesion(t),t.length||(this.savedBorders=t),this.createCustomBorders(t)}else void 0!==e&&this.createCustomBorders(this.savedBorders)}checkSettingsCohesion(e){const t=(0,d.hasLeftRightTypeOptions)(e),n=(0,d.hasStartEndTypeOptions)(e);if(t&&n)throw new Error('The "left"/"right" and "start"/"end" options should not be used together. Please use only the option "start"/"end".');if(this.hot.isRtl()&&t)throw new Error('The "left"/"right" properties are not supported for RTL. Please use option "start"/"end".');m(C,this,S).call(this,e)}destroy(){super.destroy()}}function S(e){e.forEach(e=>{Object.keys(e).forEach(t=>{const n=e[t].style;(0,p.isDefined)(n)&&!y.includes(n)?((0,a.warn)(`The "${n}" border style is not supported. Please use one of the following styles: ${y.join(", ")}.\nThe border style will be ignored.`),delete e[t].style):(0,p.isDefined)(n)&&"solid"===n&&delete e[t].style})})}function R(e){this.hot.getSettings()[E]&&e.items.push({name:"---------"},{key:"borders",name(){return this.getTranslatedPhrase(u.CONTEXTMENU_ITEMS_BORDERS)},disabled(){const e=this.getSelectedRangeActive();return!e||(!!e.isSingleHeader()||this.selection.isSelectedByCorner())},submenu:{items:[(0,c.top)(this),(0,c.right)(this),(0,c.bottom)(this),(0,c.left)(this),(0,c.noBorders)(this)]}})}function T(){this.changeBorderSettings()}t.CustomBorders=v},80484:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588);var s=r(n(81115)),i=n(38942),o=n(89090),a=n(87544),l=n(21985),h=r(n(51842)),u=n(14089);t.Overlay=class{constructor(e,t,n,r,a){(0,s.default)(this,"wtSettings",null),(0,o.defineGetter)(this,"wot",e,{writable:!1}),this.domBindings=a,this.facadeGetter=t,this.wtSettings=r;const{TABLE:l,hider:h,spreader:u,holder:c,wtRootElement:d}=this.wot.wtTable;this.instance=this.wot,this.type=n,this.mainTableScrollableElement=null,this.TABLE=l,this.hider=h,this.spreader=u,this.holder=c,this.wtRootElement=d,this.trimmingContainer=(0,i.getTrimmingContainer)(this.hider.parentNode.parentNode),this.needFullRender=this.shouldBeRendered(),this.clone=this.makeClone()}hasRenderingStateChanged(){return this.needFullRender!==this.shouldBeRendered()}updateStateOfRendering(e){"before"===e&&this.shouldBeRendered()?this.needFullRender=!0:"after"!==e||this.shouldBeRendered()||(this.needFullRender=!1)}shouldBeRendered(){return!0}updateTrimmingContainer(){this.trimmingContainer=(0,i.getTrimmingContainer)(this.hider.parentNode.parentNode)}updateMainScrollableElement(){const{wtTable:e}=this.wot,{rootWindow:t}=this.domBindings;"hidden"===t.getComputedStyle(e.wtRootElement.parentNode).getPropertyValue("overflow")?this.mainTableScrollableElement=this.wot.wtTable.holder:this.mainTableScrollableElement=(0,i.getScrollableElement)(e.TABLE)}getRelativeCellPosition(e,t,n){if(!1===this.clone.wtTable.holder.contains(e))return void(0,a.warn)(`The provided element is not a child of the ${this.type} overlay`);const r=this.mainTableScrollableElement===this.domBindings.rootWindow,s=n<this.wtSettings.getSetting("fixedColumnsStart"),i=t<this.wtSettings.getSetting("fixedRowsTop"),o=t>=this.wtSettings.getSetting("totalRows")-this.wtSettings.getSetting("fixedRowsBottom"),l=this.clone.wtTable.spreader,h={start:this.getRelativeStartPosition(l),top:l.offsetTop},u={start:this.getRelativeStartPosition(e),top:e.offsetTop};let c=null;return c=r?this.getRelativeCellPositionWithinWindow(i,s,u,h):this.getRelativeCellPositionWithinHolder(i,o,s,u,h),c}getRelativeStartPosition(e){return this.isRtl()?e.offsetParent.offsetWidth-e.offsetLeft-e.offsetWidth:e.offsetLeft}getRelativeCellPositionWithinWindow(e,t,n,r){const s=this.wot.wtTable.wtRootElement.getBoundingClientRect();let o=0,a=0;if(t){let e=s.left;this.isRtl()&&(e=this.domBindings.rootWindow.innerWidth-(s.left+s.width+(0,i.getScrollbarWidth)())),o=e<=0?-1*e:0}else o=r.start;if(e){a=this.clone.wtTable.TABLE.getBoundingClientRect().top-s.top}else a=r.top;return{start:n.start+o,top:n.top+a}}getRelativeCellPositionWithinHolder(e,t,n,r,s){const i=this.wot.wtOverlays.inlineStartOverlay.getScrollPosition(),o=this.wot.wtOverlays.topOverlay.getScrollPosition();let a=0,l=0;if(n||(a=i-s.start),t){const e=this.wot.wtTable.wtRootElement.getBoundingClientRect();l=-1*this.clone.wtTable.TABLE.getBoundingClientRect().top+e.top}else e||(l=o-s.top);return{start:r.start-a,top:r.top-l}}makeClone(){if(-1===l.CLONE_TYPES.indexOf(this.type))throw new Error(`Clone type "${this.type}" is not supported.`);const{wtTable:e,wtSettings:t}=this.wot,{rootDocument:n,rootWindow:r}=this.domBindings,s=n.createElement("div"),o=n.createElement("table"),a=e.wtRootElement.parentNode;s.className=`${l.CLONE_CLASS_NAMES.get(this.type)} handsontable`,s.setAttribute("dir",this.isRtl()?"rtl":"ltr"),s.style.position="absolute",s.style.top=0,s.style.overflow="visible",this.isRtl()?s.style.right=0:s.style.left=0,t.getSetting("ariaTags")&&(0,i.setAttribute)(s,[(0,u.A11Y_PRESENTATION)()]),o.className=e.TABLE.className;e.TABLE.getAttribute("role")&&o.setAttribute("role",e.TABLE.getAttribute("role")),s.appendChild(o),a.appendChild(s);const c=this.wtSettings.getSetting("preventOverflow");return!0===c||"horizontal"===c&&this.type===l.CLONE_TOP||"vertical"===c&&this.type===l.CLONE_INLINE_START?this.mainTableScrollableElement=r:"hidden"===r.getComputedStyle(a).getPropertyValue("overflow")?this.mainTableScrollableElement=e.holder:this.mainTableScrollableElement=(0,i.getScrollableElement)(e.TABLE),new h.default(o,this.wtSettings,{source:this.wot,overlay:this,viewport:this.wot.wtViewport,event:this.wot.wtEvent,selectionManager:this.wot.selectionManager})}refresh(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.needFullRender){const t=this.clone.cloneSource;t.activeOverlayName=this.clone.wtTable.name,this.clone.draw(e),t.activeOverlayName="master"}}reset(){const e=this.clone.wtTable.holder,t=this.clone.wtTable.hider;[e.style,t.style,e.parentNode.style].forEach(e=>{e.width="",e.height=""})}isRtl(){return this.wtSettings.getSetting("rtlMode")}destroy(){this.clone.eventManager.destroy()}}},80729:(e,t,n)=>{"use strict";var r=n(27538),s=n(89973);r({target:"Set",proto:!0,real:!0,forced:!n(90544)("isDisjointFrom",function(e){return!e})},{isDisjointFrom:s})},80811:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(38942),s=n(22155),i=n(14089);class o extends s.BaseRenderer{constructor(e){super(null,e)}adjust(){const{columnHeadersCount:e,rowHeadersCount:t}=this.table;let n=this.rootNode.firstChild;if(e){const{columnsToRender:r}=this.table,s=r+t;for(let t=0,r=e;t<r;t++){for(n=this.rootNode.childNodes[t],n||(n=this.table.rootDocument.createElement("tr"),this.rootNode.appendChild(n)),this.renderedNodes=n.childNodes.length;this.renderedNodes<s;)n.appendChild(this.table.rootDocument.createElement("th")),this.renderedNodes+=1;for(;this.renderedNodes>s;)n.removeChild(n.lastChild),this.renderedNodes-=1}const i=this.rootNode.childNodes.length;if(i>e)for(let t=e;t<i;t++)this.rootNode.removeChild(this.rootNode.lastChild)}else n&&(0,r.empty)(n)}render(){const{columnHeadersCount:e}=this.table;this.table.isAriaEnabled()&&(0,r.setAttribute)(this.rootNode,[(0,i.A11Y_ROWGROUP)()]);for(let t=0;t<e;t+=1){const{columnHeaderFunctions:e,columnsToRender:n,rowHeadersCount:s}=this.table,o=this.rootNode.childNodes[t];this.table.isAriaEnabled()&&(0,r.setAttribute)(o,[(0,i.A11Y_ROW)(),(0,i.A11Y_ROWINDEX)(t+1)]);for(let a=-1*s;a<n;a+=1){const n=this.table.renderedColumnToSource(a),l=o.childNodes[a+s];l.className="",l.removeAttribute("style"),(0,r.removeAttribute)(l,[new RegExp("aria-(.*)"),new RegExp("role")]),this.table.isAriaEnabled()&&(0,r.setAttribute)(l,[(0,i.A11Y_COLINDEX)(a+1+this.table.rowHeadersCount),(0,i.A11Y_TABINDEX)(-1),(0,i.A11Y_COLUMNHEADER)(),...a>=0?[(0,i.A11Y_SCOPE_COL)()]:[(0,i.A11Y_GRIDCELL_BUTTON)(),(0,i.A11Y_LABEL)("Select whole grid")]]),e[t](n,l,t)}}}}t.ColumnHeadersRenderer=o},80911:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182),n(78822),n(86192),n(80729),n(99888),n(12767),n(78644),n(97550),n(81396),n(81124),n(88633),n(14618),n(39716);var s=r(n(81115)),i=n(57440),o=n(92164),a=r(n(3293)),l=r(n(91188)),h=r(n(26569)),u=r(n(43313)),c=r(n(10688)),d=n(30152),g=n(89090),p=n(87544),f=n(72740),m=n(38942),E=n(58617),w=n(2534),y=n(79089),C=n(44457);function v(e,t,n){S(e,t),t.set(e,n)}function S(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function R(e,t,n){return e.set(_(e,t),n),n}function T(e,t){return e.get(_(e,t))}function _(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}o.Hooks.getSingleton().register("beforeMergeCells"),o.Hooks.getSingleton().register("afterMergeCells"),o.Hooks.getSingleton().register("beforeUnmergeCells"),o.Hooks.getSingleton().register("afterUnmergeCells");const N=t.PLUGIN_KEY="mergeCells",A=t.PLUGIN_PRIORITY=150,b=N;var M=new WeakMap,I=new WeakMap,O=new WeakMap,x=new WeakMap,P=new WeakSet;class L extends i.BasePlugin{constructor(){var e,t;super(...arguments),S(e=this,t=P),t.add(e),(0,s.default)(this,"mergedCellsCollection",null),(0,s.default)(this,"autofillCalculations",null),(0,s.default)(this,"selectionCalculations",null),v(this,M,null),v(this,I,{row:0,col:0}),v(this,O,new w.FocusOrder({mergedCellsGetter:(e,t)=>this.mergedCellsCollection.get(e,t),rowIndexMapper:this.hot.rowIndexMapper,columnIndexMapper:this.hot.columnIndexMapper})),v(this,x,(0,y.createMergeCellRenderer)(this))}static get PLUGIN_KEY(){return N}static get PLUGIN_PRIORITY(){return A}static get DEFAULT_SETTINGS(){return{[i.defaultMainSettingSymbol]:"cells",virtualized:!1,cells:[]}}isEnabled(){return!!this.hot.getSettings()[N]}enablePlugin(){var e=this;this.enabled||(this.mergedCellsCollection=new a.default(this),this.autofillCalculations=new h.default(this),this.selectionCalculations=new u.default(this),this.addHook("afterInit",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _(P,e,D).call(e,...n)}),this.addHook("modifyTransformFocus",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _(P,e,H).call(e,...n)}),this.addHook("modifyTransformStart",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _(P,e,F).call(e,...n)}),this.addHook("modifyTransformEnd",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _(P,e,U).call(e,...n)}),this.addHook("beforeSelectionHighlightSet",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _(P,e,V).call(e,...n)}),this.addHook("beforeSetRangeStart",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _(P,e,Y).call(e,...n)}),this.addHook("beforeSetRangeStartOnly",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _(P,e,Y).call(e,...n)}),this.addHook("beforeSelectionFocusSet",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _(P,e,G).call(e,...n)}),this.addHook("afterSelectionFocusSet",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _(P,e,j).call(e,...n)}),this.addHook("afterSelectionEnd",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _(P,e,z).call(e,...n)}),this.addHook("modifyGetCellCoords",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _(P,e,B).call(e,...n)}),this.addHook("modifyGetCoordsElement",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _(P,e,B).call(e,...n)}),this.addHook("afterIsMultipleSelection",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _(P,e,k).call(e,...n)}),this.addHook("afterRenderer",function(){return T(x,e).after(...arguments)}),this.addHook("afterContextMenuDefaultOptions",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _(P,e,W).call(e,...n)}),this.addHook("afterGetCellMeta",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _(P,e,$).call(e,...n)}),this.addHook("afterViewportRowCalculatorOverride",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _(P,e,K).call(e,...n)}),this.addHook("afterViewportColumnCalculatorOverride",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _(P,e,X).call(e,...n)}),this.addHook("modifyAutofillRange",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _(P,e,q).call(e,...n)}),this.addHook("afterCreateCol",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _(P,e,Q).call(e,...n)}),this.addHook("afterRemoveCol",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _(P,e,Z).call(e,...n)}),this.addHook("afterCreateRow",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _(P,e,J).call(e,...n)}),this.addHook("afterRemoveRow",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _(P,e,ee).call(e,...n)}),this.addHook("afterChange",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _(P,e,te).call(e,...n)}),this.addHook("beforeDrawBorders",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _(P,e,ne).call(e,...n)}),this.addHook("afterDrawSelection",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _(P,e,re).call(e,...n)}),this.addHook("beforeRemoveCellClassNames",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _(P,e,se).call(e,...n)}),this.addHook("beforeBeginEditing",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _(P,e,ie).call(e,...n)}),this.addHook("modifyRowHeightByOverlayName",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _(P,e,oe).call(e,...n)}),this.addHook("beforeUndoStackChange",(e,t)=>{if("MergeCells"===t)return!1}),this.registerShortcuts(),super.enablePlugin())}disablePlugin(){this.clearCollections(),this.unregisterShortcuts(),this.hot.render(),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.generateFromSettings(),super.updatePlugin()}ifChromeForceRepaint(){if(!(0,E.isChrome)())return;const e=[];let t=[];this.mergedCellsCollection.mergedCells.forEach(e=>{const{row:n,rowspan:r}=e;for(let e=n+1;e<n+r;e++)t.push(e)}),t=[...new Set(t)],t.forEach(t=>{const n=this.hot.rowIndexMapper.getRenderableFromVisualIndex(t);this.hot.view._wt.wtOverlays.getOverlays(!0).map(e=>"master"===(null==e?void 0:e.name)?e:e.clone.wtTable).forEach(t=>{const r=t.getRow(n);r&&(r.style.background=(0,m.getStyle)(r,"backgroundColor").replace(")",", 0.99)"),e.push(r))})}),this.hot._registerTimeout(()=>{e.forEach(e=>{var t;e.style.background=null===(t=(0,m.getStyle)(e,"backgroundColor"))||void 0===t?void 0:t.replace(", 0.99)",")")})},1)}validateSetting(e){return!!e&&(l.default.containsNegativeValues(e)?((0,p.warn)(l.default.NEGATIVE_VALUES_WARNING(e)),!1):l.default.isOutOfBounds(e,this.hot.countRows(),this.hot.countCols())?((0,p.warn)(l.default.IS_OUT_OF_BOUNDS_WARNING(e)),!1):l.default.isSingleCell(e)?((0,p.warn)(l.default.IS_SINGLE_CELL(e)),!1):!l.default.containsZeroSpan(e)||((0,p.warn)(l.default.ZERO_SPAN_WARNING(e)),!1))}generateFromSettings(){const e=this.getSetting("cells").filter(e=>this.validateSetting(e)),t=this.mergedCellsCollection.filterOverlappingMergeCells(e),n=[];t.forEach(e=>{const{row:t,col:r,rowspan:s,colspan:i}=e,o=this.hot._createCellCoords(t,r),a=this.hot._createCellCoords(t+s-1,r+i-1),l=this.hot._createCellRange(o,o,a);this.mergeRange(l,!0,!0);for(let e=t;e<t+s;e++)for(let s=r;s<r+i;s++)e===t&&s===r||n.push([e,s,null])}),0!==n.length&&this.hot.setDataAtCell(n,void 0,void 0,this.pluginName)}clearCollections(){this.mergedCellsCollection.clear()}canMergeRange(e){return!!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])||this.validateSetting(e)}mergeSelection(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeActive();if(!e)return;e.setDirection(this.hot.isRtl()?"NE-SW":"NW-SE");const{from:t,to:n}=e;this.unmergeRange(e,!0),this.mergeRange(e),this.hot.selectCell(t.row,t.col,n.row,n.col,!1)}unmergeSelection(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeActive();if(!e)return;const{from:t,to:n}=e;this.unmergeRange(e,!0),this.hot.selectCell(t.row,t.col,n.row,n.col,!1)}mergeRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=e.getTopStartCorner(),s=e.getBottomEndCorner(),i={row:r.row,col:r.col,rowspan:s.row-r.row+1,colspan:s.col-r.col+1},o=[];let a=null;if(!this.canMergeRange(i,t))return!1;this.hot.runHooks("beforeMergeCells",e,t),(0,f.rangeEach)(0,i.rowspan-1,e=>{(0,f.rangeEach)(0,i.colspan-1,t=>{let n=null;o[e]||(o[e]=[]),0===e&&0===t?n=this.hot.getSourceDataAtCell(this.hot.toPhysicalRow(i.row),this.hot.toPhysicalColumn(i.col)):this.hot.setCellMeta(i.row+e,i.col+t,"hidden",!0),o[e][t]=n})}),this.hot.setCellMeta(i.row,i.col,"spanned",!0);return!this.mergedCellsCollection.add(i,t)||(n?a=[i.row,i.col,o]:this.hot.populateFromArray(i.row,i.col,o,void 0,void 0,this.pluginName),t||this.ifChromeForceRepaint(),this.hot.runHooks("afterMergeCells",e,i,t),a)}unmergeRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.mergedCellsCollection.getWithinRange(e);0!==n.length&&(this.hot.runHooks("beforeUnmergeCells",e,t),(0,d.arrayEach)(n,e=>{this.mergedCellsCollection.remove(e.row,e.col),(0,f.rangeEach)(0,e.rowspan-1,t=>{(0,f.rangeEach)(0,e.colspan-1,n=>{this.hot.removeCellMeta(e.row+t,e.col+n,"hidden"),this.hot.removeCellMeta(e.row+t,e.col+n,"copyable")})}),this.hot.removeCellMeta(e.row,e.col,"spanned")}),this.hot.runHooks("afterUnmergeCells",e,t),this.hot.render())}toggleMerge(e){const{from:t,to:n}=e.clone().normalize(),r=this.mergedCellsCollection.get(t.row,t.col);r.row===t.row&&r.col===t.col&&r.row+r.rowspan-1===n.row&&r.col+r.colspan-1===n.col?this.unmergeRange(e):this.mergeSelection(e)}merge(e,t,n,r){const s=this.hot._createCellCoords(e,t),i=this.hot._createCellCoords(n,r);this.mergeRange(this.hot._createCellRange(s,s,i))}unmerge(e,t,n,r){const s=this.hot._createCellCoords(e,t),i=this.hot._createCellCoords(n,r);this.unmergeRange(this.hot._createCellRange(s,s,i))}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Control","m"]],callback:()=>{const e=this.hot.getSelectedRangeActive();e&&!e.isSingleHeader()&&(this.toggleMerge(e),this.hot.render())},runOnlyIf:e=>!e.altKey,group:b})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(b)}modifyViewportRowStart(e,t){const n=this.hot.rowIndexMapper,r=n.getVisualFromRenderableIndex(e.startRow);for(let s=0;s<t;s+=1){const i=this.mergedCellsCollection.get(r,s);if((0,g.isObject)(i)){const r=n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(i.row,1));if(r<e.startRow)return e.startRow=r,void this.modifyViewportRowStart(e,t)}}}modifyViewportRowEnd(e,t){const n=this.hot.rowIndexMapper,r=n.getVisualFromRenderableIndex(e.endRow);for(let s=0;s<t;s+=1){const i=this.mergedCellsCollection.get(r,s);if((0,g.isObject)(i)){const r=i.row+i.rowspan-1,s=n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(r,-1));if(s>e.endRow)return e.endRow=s,void this.modifyViewportRowEnd(e,t)}}}modifyViewportColumnStart(e,t){const n=this.hot.columnIndexMapper,r=n.getVisualFromRenderableIndex(e.startColumn);for(let s=0;s<t;s+=1){const i=this.mergedCellsCollection.get(s,r);if((0,g.isObject)(i)){const r=n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(i.col,1));if(r<e.startColumn)return e.startColumn=r,void this.modifyViewportColumnStart(e,t)}}}modifyViewportColumnEnd(e,t){const n=this.hot.columnIndexMapper,r=n.getVisualFromRenderableIndex(e.endColumn);for(let s=0;s<t;s+=1){const i=this.mergedCellsCollection.get(s,r);if((0,g.isObject)(i)){const r=i.col+i.colspan-1,s=n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(r,-1));if(s>e.endColumn)return e.endColumn=s,void this.modifyViewportColumnEnd(e,t)}}}translateMergedCellToRenderable(e,t,n,r){const{rowIndexMapper:s,columnIndexMapper:i}=this.hot;let o,a;o=0===t?s.getNearestNotHiddenIndex(e,1):s.getNearestNotHiddenIndex(e+t-1,-1),a=0===r?i.getNearestNotHiddenIndex(n,1):i.getNearestNotHiddenIndex(n+r-1,-1);return[e>=0?s.getRenderableFromVisualIndex(o):e,n>=0?i.getRenderableFromVisualIndex(a):n]}}function D(){this.generateFromSettings(),this.hot.render()}function k(e){if(e){const e=this.mergedCellsCollection.mergedCells,t=this.hot.getSelectedRangeActive(),n=t.getTopStartCorner(),r=t.getBottomEndCorner();for(let t=0;t<e.length;t+=1)if(n.row===e[t].row&&n.col===e[t].col&&r.row===e[t].row+e[t].rowspan-1&&r.col===e[t].col+e[t].colspan-1)return!1}return e}function H(e){T(I,this).row=e.row,T(I,this).col=e.col}function F(e){const t=this.hot.getSelectedRangeActive(),{highlight:n}=t,{columnIndexMapper:r,rowIndexMapper:s}=this.hot;T(M,this)&&(null!==s.getRenderableFromVisualIndex(T(M,this).row)&&(n.row=T(M,this).row),null!==r.getRenderableFromVisualIndex(T(M,this).col)&&(n.col=T(M,this).col),R(M,this,null));const i=this.mergedCellsCollection.get(n.row,n.col);if(!i)return;const o=i.col,a=i.col+i.colspan-1;if(e.col<0){const t=n.col>=o&&n.col<=a?o-1:a,s=r.getNearestNotHiddenIndex(t,-1);e.col=null===s?-this.hot.view.countRenderableColumnsInRange(0,n.col):-Math.max(this.hot.view.countRenderableColumnsInRange(s,n.col)-1,1)}else if(e.col>0){const t=n.col>=o&&n.col<=a?a+1:o,s=r.getNearestNotHiddenIndex(t,1);e.col=null===s?this.hot.view.countRenderableColumnsInRange(n.col,this.hot.countCols()):Math.max(this.hot.view.countRenderableColumnsInRange(n.col,s)-1,1)}const l=i.row,h=i.row+i.rowspan-1;if(e.row<0){const t=n.row>=l&&n.row<=h?l-1:h,r=s.getNearestNotHiddenIndex(t,-1);e.row=null===r?-this.hot.view.countRenderableRowsInRange(0,n.row):-Math.max(this.hot.view.countRenderableRowsInRange(r,n.row)-1,1)}else if(e.row>0){const t=n.row>=l&&n.row<=h?h+1:l,r=s.getNearestNotHiddenIndex(t,1);e.row=null===r?this.hot.view.countRenderableRowsInRange(n.row,this.hot.countRows()):Math.max(this.hot.view.countRenderableRowsInRange(n.row,r)-1,1)}}function U(e){const t=this.hot.getSelectedRangeActive(),n=t.clone(),{to:r}=t,{columnIndexMapper:s,rowIndexMapper:i}=this.hot,o=(e,t)=>{n.expand(this.hot._createCellCoords(e,t));for(let e=0;e<this.mergedCellsCollection.mergedCells.length;e+=1)n.expandByRange(this.mergedCellsCollection.mergedCells[e].getRange())};if(e.col<0){let i=this.mergedCellsCollection.getStartMostColumnIndex(t,r.col)+e.col;o(r.row,i),"E-W"===t.getHorizontalDirection()&&"E-W"===n.getHorizontalDirection()&&(i=n.getTopStartCorner().col);const a=s.getNearestNotHiddenIndex(i,1);null!==a&&(e.col=-Math.max(this.hot.view.countRenderableColumnsInRange(a,r.col)-1,1))}else if(e.col>0){let i=this.mergedCellsCollection.getEndMostColumnIndex(t,r.col)+e.col;o(r.row,i),"W-E"===t.getHorizontalDirection()&&"W-E"===n.getHorizontalDirection()&&(i=n.getBottomEndCorner().col);const a=s.getNearestNotHiddenIndex(i,-1);null!==a&&(e.col=Math.max(this.hot.view.countRenderableColumnsInRange(r.col,a)-1,1))}if(e.row<0){let s=this.mergedCellsCollection.getTopMostRowIndex(t,r.row)+e.row;o(s,r.col),"S-N"===t.getVerticalDirection()&&"S-N"===n.getVerticalDirection()&&(s=n.getTopStartCorner().row);const a=i.getNearestNotHiddenIndex(s,1);null!==a&&(e.row=-Math.max(this.hot.view.countRenderableRowsInRange(a,r.row)-1,1))}else if(e.row>0){let s=this.mergedCellsCollection.getBottomMostRowIndex(t,r.row)+e.row;o(s,r.col),"N-S"===t.getVerticalDirection()&&"N-S"===n.getVerticalDirection()&&(s=n.getBottomStartCorner().row);const a=i.getNearestNotHiddenIndex(s,-1);null!==a&&(e.row=Math.max(this.hot.view.countRenderableRowsInRange(r.row,a)-1,1))}}function V(){const e=this.hot.getSelectedRangeLast(),{highlight:t}=e;if(this.hot.selection.isSelectedByColumnHeader()||this.hot.selection.isSelectedByRowHeader())return void R(M,this,t.clone());for(let t=0;t<this.mergedCellsCollection.mergedCells.length;t+=1)e.expandByRange(this.mergedCellsCollection.mergedCells[t].getRange(),!1);for(let t=0;t<this.mergedCellsCollection.mergedCells.length;t+=1)e.expandByRange(this.mergedCellsCollection.mergedCells[t].getRange(),!1);const n=this.mergedCellsCollection.get(t.row,t.col);R(M,this,t.clone()),n&&t.assign(n)}function B(e,t,n,r){if(e<0||t<0)return;const s=this.mergedCellsCollection.get(e,t);if(!s)return;const{row:i,col:o,colspan:a,rowspan:l}=s,h=i,u=o,c=i+l-1,d=o+a-1;if("render"===r&&this.getSetting("virtualized")){const e=this.hot.view.getActiveOverlayName(),t=["top","top_inline_start_corner"].includes(e)?0:this.hot.getFirstRenderedVisibleRow(),n=["inline_start","top_inline_start_corner","bottom_inline_start_corner"].includes(e)?0:this.hot.getFirstRenderedVisibleColumn();return[(0,f.clamp)(t,h,c),(0,f.clamp)(n,u,d),(0,f.clamp)(this.hot.getLastRenderedVisibleRow(),h,c),(0,f.clamp)(this.hot.getLastRenderedVisibleColumn(),u,d)]}return[h,u,c,d]}function W(e){e.items.push({name:"---------"},(0,c.default)(this))}function Y(){R(M,this,null)}function G(){if(T(M,this).isCell())return;const e=this.hot.getSelectedRangeActive(),t=e.getVerticalDirection(),n=e.getHorizontalDirection(),r=T(M,this).clone().normalize();T(O,this).setActiveNode(r.row,r.col),T(I,this).row>0||T(I,this).col>0?T(O,this).setPrevNodeAsActive():("E-W"===n&&T(I,this).col<0||"S-N"===t&&T(I,this).row<0)&&T(O,this).setNextNodeAsActive()}function j(e,t){const{columnIndexMapper:n,rowIndexMapper:r}=this.hot;let s=this.hot.getActiveSelectionLayerIndex(),i=null,o=null;if(T(I,this).col<0){const{rowEnd:e,colEnd:t,selectionLayer:a}=T(O,this).getPrevHorizontalNode();o=n.getNearestNotHiddenIndex(t,-1),i=r.getNearestNotHiddenIndex(e,-1),s=a}else if(T(I,this).col>0){const{rowStart:e,colStart:t,selectionLayer:a}=T(O,this).getNextHorizontalNode();o=n.getNearestNotHiddenIndex(t,1),i=r.getNearestNotHiddenIndex(e,1),s=a}else if(T(I,this).row<0){const{rowEnd:e,colEnd:t,selectionLayer:a}=T(O,this).getPrevVerticalNode();o=n.getNearestNotHiddenIndex(t,-1),i=r.getNearestNotHiddenIndex(e,-1),s=a}else if(T(I,this).row>0){const{rowStart:e,colStart:t,selectionLayer:a}=T(O,this).getNextVerticalNode();o=n.getNearestNotHiddenIndex(t,1),i=r.getNearestNotHiddenIndex(e,1),s=a}if(null!==i||null!==o){this.hot.selection.setActiveSelectionLayerIndex(s);const n=this.hot.getSelectedRangeActive(),r=this.hot._createCellCoords(i,o),a=this.mergedCellsCollection.get(r.row,r.col),l=this.hot.selection.highlight.getFocus();e=r.row,t=r.col,a?n.highlight.assign({row:this.hot.rowIndexMapper.getNearestNotHiddenIndex(a.row,1),col:this.hot.columnIndexMapper.getNearestNotHiddenIndex(a.col,1)}):n.highlight.assign(r),l.clear(),l.add(r).commit()}T(O,this).setActiveNode(e,t,s),R(I,this,{row:0,col:0})}function z(){T(O,this).buildFocusOrder(this.hot.getSelectedRange())}function $(e,t,n){const r=this.mergedCellsCollection.get(e,t);r&&(r.row!==e||r.col!==t?n.copyable=!1:(n.rowspan=r.rowspan,n.colspan=r.colspan))}function K(e){if(this.getSetting("virtualized"))return;const t=this.hot.countCols();this.modifyViewportRowStart(e,t),this.modifyViewportRowEnd(e,t)}function X(e){if(this.getSetting("virtualized"))return;const t=this.hot.countRows();this.modifyViewportColumnStart(e,t),this.modifyViewportColumnEnd(e,t)}function q(e,t){const n=this.autofillCalculations.getDirection(t,e);if(this.autofillCalculations.dragAreaOverlapsCollections(t,e,n))return t;const r=this.hot._createCellCoords(t[0],t[1]),s=this.hot._createCellCoords(t[2],t[3]),i=this.hot._createCellRange(r,r,s),o=this.mergedCellsCollection.getWithinRange(i);return 0===o.length?e:this.autofillCalculations.snapDragArea(t,e,n,o)}function Q(e,t){this.mergedCellsCollection.shiftCollections("right",e,t)}function Z(e,t){this.mergedCellsCollection.shiftCollections("left",e,t)}function J(e,t,n){"auto"!==n&&this.mergedCellsCollection.shiftCollections("down",e,t)}function ee(e,t){this.mergedCellsCollection.shiftCollections("up",e,t)}function te(e,t){"Autofill.fill"===t&&this.autofillCalculations.recreateAfterDataPopulation(e)}function ne(e,t){if(t&&"area"===t){const t=this.hot.getSelectedRangeActive(),n=this.mergedCellsCollection.getWithinRange(t);(0,d.arrayEach)(n,n=>{t.getBottomEndCorner().row===n.getLastRow()&&t.getBottomEndCorner().col===n.getLastColumn()&&(e[2]=n.row,e[3]=n.col)})}}function re(e,t,n,r){if(n)return this.selectionCalculations.getSelectedMergedCellClassName(e,t,n,r)}function se(){return this.selectionCalculations.getSelectedMergedCellClassNameToRemove()}function ie(e,t,n,r){if(!(r instanceof MouseEvent))return;const s=this.hot.getSelectedRangeActive(),i=this.mergedCellsCollection.getByRange(s);if(!i)return;const o=this.hot._createCellCoords(i.row,i.col),a=this.hot._createCellCoords(i.row+i.rowspan-1,i.col+i.colspan-1);return 0===this.hot.selection.getLayerLevel()&&s.isEqual(this.hot._createCellRange(o,o,a))}function oe(e,t,n){if(this.hot.getSettings().rowHeaders||"bottom"===n||"bottom_inline_start_corner"===n)return e;let r,s;if("master"===n)r=this.hot.getFirstRenderedVisibleColumn(),s=this.hot.getLastRenderedVisibleColumn();else{const e=this.hot.view.getOverlayByName(n);r=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e.clone.wtTable.getFirstRenderedColumn()),s=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e.clone.wtTable.getLastRenderedColumn())}if(!this.mergedCellsCollection.get(t,r))return e;const i=this.hot._createCellCoords(t,r),o=this.hot._createCellCoords(t,s),a=this.hot._createCellRange(i,i,o),l=this.mergedCellsCollection.getWithinRange(a,!0),h=l.reduce((e,t)=>{let{rowspan:n}=t;return Math.max(e,n)},1);let u=0;return l.length>1&&l[0].rowspan<h&&(u=h-l[0].rowspan),l.forEach(r=>{let{rowspan:s}=r,i=0;i="top"===n||"top_inline_start_corner"===n?Math.min(h,this.hot.view.countNotHiddenFixedRowsTop()-t):s-u,e=Math.max(null!=e?e:0,(0,C.sumCellsHeights)(this.hot,t,i))}),e}t.MergeCells=L},81115:(e,t,n)=>{var r=n(17802);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},81124:(e,t,n)=>{"use strict";n(70573)},81127:(e,t,n)=>{"use strict";t.__esModule=!0,t.getThemeClassName=function(e){const{classNames:t}=(0,r.findFirstParentWithClass)(e,/ht-theme-[a-zA-Z0-9_-]+/);return t.pop()};var r=n(38942)},81350:(e,t,n)=>{"use strict";var r=n(85921),s=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i("Can't set "+s(e)+" as a prototype")}},81384:()=>{},81396:(e,t,n)=>{"use strict";n(70923)},81406:(e,t,n)=>{"use strict";t.__esModule=!0,n(22588),n(78822),n(86192),n(80729),n(99888),n(12767),n(78644),n(97550),n(81396),n(88633);var r=n(30161),s=n(67026);function i(e,t,n){(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,n)}function o(e,t){return e.get(l(e,t))}function a(e,t,n){return e.set(l(e,t),n),n}function l(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,u=new WeakMap,c=new WeakMap,d=new WeakMap,g=new WeakMap;t.ChangesObservable=class{constructor(){let{initialIndexValue:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,h,new Set),i(this,u,[]),i(this,c,[]),i(this,d,!1),i(this,g,!1),a(g,this,null!=e&&e)}createObserver(){const e=new r.ChangesObserver;return o(h,this).add(e),e.addLocalHook("unsubscribe",()=>{o(h,this).delete(e)}),e._writeInitialChanges((0,s.arrayDiff)(o(u,this),o(c,this))),e}emit(e){let t=o(c,this);o(d,this)&&o(u,this).length===e.length||(0===e.length?e=new Array(t.length).fill(o(g,this)):a(u,this,new Array(e.length).fill(o(g,this))),o(d,this)||(a(d,this,!0),t=o(u,this)));const n=(0,s.arrayDiff)(t,e);o(h,this).forEach(e=>e._write(n)),a(c,this,e)}}},81576:(e,t,n)=>{"use strict";var r=n(57396),s=n(19617),i=n(16539),o=n(24755),a=n(68149),l=n(69946),h=n(17621),u=n(86293),c=n(47151),d=n(13479),g=TypeError,p=function(e,t){this.stopped=e,this.result=t},f=p.prototype;e.exports=function(e,t,n){var m,E,w,y,C,v,S,R=n&&n.that,T=!(!n||!n.AS_ENTRIES),_=!(!n||!n.IS_RECORD),N=!(!n||!n.IS_ITERATOR),A=!(!n||!n.INTERRUPTED),b=r(t,R),M=function(e){return m&&d(m,"normal"),new p(!0,e)},I=function(e){return T?(i(e),A?b(e[0],e[1],M):b(e[0],e[1])):A?b(e,M):b(e)};if(_)m=e.iterator;else if(N)m=e;else{if(!(E=c(e)))throw new g(o(e)+" is not iterable");if(a(E)){for(w=0,y=l(e);y>w;w++)if((C=I(e[w]))&&h(f,C))return C;return new p(!1)}m=u(e,E)}for(v=_?e.next:m.next;!(S=s(v,m)).done;){try{C=I(S.value)}catch(e){d(m,"throw",e)}if("object"==typeof C&&C&&h(f,C))return C}return new p(!1)}},81615:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(62487);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.BindRowsWithHeaders=r.BindRowsWithHeaders},81736:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"hidden_rows_hide",name(){const e=this.getSelectedActive();let t=0;if(Array.isArray(e)){const[n,,r]=e;n-r!==0&&(t=1)}return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_HIDE_ROW,t)},callback(){const{from:t,to:n}=this.getSelectedRangeActive(),r=Math.max(Math.min(t.row,n.row),0),s=Math.max(t.row,n.row),i=[];for(let e=r;e<=s;e+=1)i.push(e);e.hideRows(i);const o=i[i.length-1],a=this.rowIndexMapper.getNearestNotHiddenIndex(o,1,!0);Number.isInteger(a)&&a>=0?this.selectRows(a):this.deselectCell(),this.view.adjustElementsSize(),this.render()},disabled:!1,hidden(){return!(this.selection.isSelectedByRowHeader()||this.selection.isSelectedByCorner())}}},n(66182);var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217))},82002:(e,t,n)=>{"use strict";t.__esModule=!0,t.registerAllEditors=function(){(0,p.registerEditor)(s.BaseEditor),(0,p.registerEditor)(r.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 r=n(8742);t.AutocompleteEditor=r.AutocompleteEditor,t.AUTOCOMPLETE_EDITOR=r.EDITOR_TYPE;var s=n(28235);t.BaseEditor=s.BaseEditor,t.BASE_EDITOR=s.EDITOR_TYPE;var i=n(99967);t.CheckboxEditor=i.CheckboxEditor,t.CHECKBOX_EDITOR=i.EDITOR_TYPE;var o=n(89374);t.DateEditor=o.DateEditor,t.DATE_EDITOR=o.EDITOR_TYPE;var a=n(21103);t.DropdownEditor=a.DropdownEditor,t.DROPDOWN_EDITOR=a.EDITOR_TYPE;var l=n(76847);t.HandsontableEditor=l.HandsontableEditor,t.HANDSONTABLE_EDITOR=l.EDITOR_TYPE;var h=n(33115);t.NumericEditor=h.NumericEditor,t.NUMERIC_EDITOR=h.EDITOR_TYPE;var u=n(98007);t.PasswordEditor=u.PasswordEditor,t.PASSWORD_EDITOR=u.EDITOR_TYPE;var c=n(50506);t.SelectEditor=c.SelectEditor,t.SELECT_EDITOR=c.EDITOR_TYPE;var d=n(95605);t.TextEditor=d.TextEditor,t.TEXT_EDITOR=d.EDITOR_TYPE;var g=n(67983);t.TimeEditor=g.TimeEditor,t.TIME_EDITOR=g.EDITOR_TYPE;var p=n(50259);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},82101:(e,t,n)=>{"use strict";n(54480)},82311:(e,t,n)=>{"use strict";t.__esModule=!0,t.valueGetter=function(e){return(0,r.isObject)(e)&&void 0!==e.value?e.value:e};var r=n(89090)},82397:(e,t,n)=>{"use strict";var r=n(21912),s=n(47145),i=n(37466),o=n(16539),a=n(61989),l=TypeError,h=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c="enumerable",d="configurable",g="writable";t.f=r?i?function(e,t,n){if(o(e),t=a(t),o(n),"function"==typeof e&&"prototype"===t&&"value"in n&&g in n&&!n[g]){var r=u(e,t);r&&r[g]&&(e[t]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:c in n?n[c]:r[c],writable:!1})}return h(e,t,n)}:h:function(e,t,n){if(o(e),t=a(t),o(n),s)try{return h(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},82438:(e,t,n)=>{"use strict";t.__esModule=!0,n(22588);var r=n(10386);class s extends r.BaseTransformation{calculateOffset(){const e=this.getCurrentSelection(),{row:t,col:n}=e.getOuterTopStartCorner(),r=this.tableApi.countRenderableColumnsInRange(0,n-1),s=this.tableApi.countRenderableRowsInRange(0,t-1),i=e.highlight.isHeader(),o=i?Math.abs(n):0,a=i?Math.abs(t):0;return{x:n<0?o:-r,y:t<0?a:-s}}countRenderableRows(){const e=this.getCurrentSelection();return this.tableApi.countRenderableRowsInRange(0,e.getOuterBottomEndCorner().row)}countRenderableColumns(){const e=this.getCurrentSelection();return this.tableApi.countRenderableColumnsInRange(0,e.getOuterBottomEndCorner().col)}transformEnd(){throw new Error("`transformEnd` is not valid for focus selection use `transformStart` instead")}shouldSwitchSelectionLayer(){return!0}}t.FocusTransformation=s},82719:(e,t,n)=>{"use strict";var r=n(19617);e.exports=function(e,t,n){for(var s,i,o=n?e:e.iterator,a=e.next;!(s=r(a,o)).done;)if(void 0!==(i=t(s.value)))return i}},82790:(e,t,n)=>{"use strict";var r=n(78656);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=n(51191),i=r(n(5103))},82860:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588);var s=r(n(81115));function i(e,t,n){(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,n)}function o(e,t){return e.get(l(e,t))}function a(e,t,n){return e.set(l(e,t),n),n}function l(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var h=new WeakMap;class u{constructor(e,t){let n=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,n),void 0!==e&&void 0!==t&&(this.row=e,this.col=t)}isValid(e){const{countRows:t,countCols:n,countRowHeaders:r,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<-r)&&!(this.row>=t||this.col>=n))}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},82886:(e,t,n)=>{"use strict";t.__esModule=!0,t.operationResult=a,n(81396),n(19874);var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217)),s=n(77768);const i=t.OPERATION_ID="disjunction",o=t.SHORT_NAME_FOR_COMPONENT=r.FILTERS_LABELS_DISJUNCTION;function a(e,t){return e.some(e=>e.func(t))}(0,s.registerOperation)(i,o,a)},82896:(e,t,n)=>{"use strict";t.__esModule=!0,t.valueSetter=function(e){if("string"==typeof e&&(0,r.isNumericLike)(e)){const t=(0,r.getParsedNumber)(e);return(0,s.isNullish)(t)?e:t}return e};var r=n(72740),s=n(27328)},82997:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionRight",callback(e){const{selection:t}=e,{highlight:n}=e.getSelectedRangeActive();t.isSelectedByRowHeader()||t.isSelectedByCorner()||!(n.isCell()||n.isHeader()&&t.isSelectedByColumnHeader())||(t.markSource("keyboard"),t.transformEnd(0,e.getDirectionFactor()),t.markEndSource())}}},83067:(e,t,n)=>{"use strict";t.__esModule=!0,t.getAllCommands=function(){return[r.command,s.command,i.command,o.command,a.command,l.command,h.command,u.command,c.command,d.command,g.command,p.command,f.command,m.command]};var r=n(79115),s=n(99943),i=n(77618),o=n(82997),a=n(32039),l=n(53246),h=n(23463),u=n(10746),c=n(83936),d=n(70672),g=n(45098),p=n(38251),f=n(95918),m=n(85966)},83197:(e,t,n)=>{"use strict";t.__esModule=!0,n(22588),n(81396),n(88633);var r=n(57440),s=n(6453);function i(e,t,n){o(e,t),t.set(e,n)}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,n){return e.set(h(e,t),n),n}function l(e,t){return e.get(h(e,t))}function h(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;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 r.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,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return h(f,e,w).call(e,...n)}),this.addHook("modifyColWidth",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return h(f,e,E).call(e,...n)},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 E(e,t,n){if(n===this.pluginName)return;const r=this.getColumnWidth(t);return"number"==typeof r?r:e}function w(e){e&&l(d,this).refreshStretching()}t.StretchColumns=m},83203:e=>{"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},83252:()=>{},83367:()=>{},83438:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(5135);t.RENDERER_TYPE=r.RENDERER_TYPE,t.selectRenderer=r.selectRenderer},83454:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostTop",callback(e){const{selection:t}=e,{col:n}=e.getSelectedRangeActive().highlight;let r=e.rowIndexMapper.getNearestNotHiddenIndex(0,1);null===r&&(r=-e.countColHeaders()),t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(r,n)),t.markEndSource()}}},83640:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},83788:()=>{},83891:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){if(Array.isArray(e)&&Number.isInteger(t))return e[t];return e}},83916:(e,t,n)=>{"use strict";var r=n(71763);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},83936:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostLeft",callback(e){const{selection:t,columnIndexMapper:n}=e,{highlight:r,from:s,to:i}=e.getSelectedRangeActive(),o=r.isHeader()&&t.isSelectedByColumnHeader();if(r.isCell()||o){const a=n.getNearestNotHiddenIndex(...e.isRtl()?[e.countCols()-1,-1]:[0,1]),l=s.clone();l.col=r.col,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,r.clone()),o&&t.selectedByColumnHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(i.row,a)),t.markEndSource()}}}},83958:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(43520);t.CELL_TYPE=r.CELL_TYPE,t.DateCellType=r.DateCellType},84101:()=>{},84145:(e,t,n)=>{"use strict";t.__esModule=!0,t.confirmTemplate=function(e){let{id:t="",title:n="",description:o="",buttons:a=[]}=e;let l=null;const h={};return{TEMPLATE_NAME:"confirm",dialogA11YOptions:()=>({role:"alertdialog",ariaLabelledby:`${t}-dialog-confirm-title`,ariaDescribedby:o?`${t}-dialog-confirm-description`:void 0}),compile:function(){const e=i.html`${`\n <div tabindex="-1" data-ref="contentElement" class="${r.DIALOG_CLASS_NAME}__content-wrapper-inner">\n <div class="${r.DIALOG_CLASS_NAME}__content">\n <h2\n id="${t}-dialog-confirm-title"\n class="${r.DIALOG_CLASS_NAME}__title">${(0,s.stripTags)(n)}</h2>\n <p\n id="${t}-dialog-confirm-description"\n class="${r.DIALOG_CLASS_NAME}__description">${(0,s.stripTags)(o)}</p>\n </div>\n ${a.length>0?`\n <div data-ref="buttonsContainer" class="${r.DIALOG_CLASS_NAME}__buttons">\n ${a.map(e=>`\n <button class="ht-button ht-button--${e.type}">${(0,s.stripTags)(e.text)}</button>\n `).join("")}\n </div>\n `:""}\n </div>\n `}`;return Object.assign(h,e.refs),l=e.fragment,e},focusableElements:function(){if(null===l)throw new Error("Compile the template first.");const{contentElement:e,buttonsContainer:t}=h,n=[];return t?n.push(...Array.from(t.children)):n.push(e),n}}},n(22588),n(66182),n(81396),n(14618);var r=n(3888),s=n(16656),i=n(14298)},84250:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionUpByViewportHight",callback(e){const{selection:t}=e,{navigableHeaders:n}=e.getSettings(),r=n?e.countColHeaders():0,{row:s}=e.getSelectedRangeActive().highlight;let i=e.countVisibleRows()+r;i=0===i?-1:-i,s===-r?i=-1:s+i<r&&(i=-(s+r)),t.markSource("keyboard"),t.transformStart(i,0),t.markEndSource(),e.getSelectedRangeActive().highlight.row<0&&e.scrollViewportTo({row:0})}}},84521:(e,t,n)=>{"use strict";var r=n(19596),s=n(89035),i=r.RegExp,o=!s(function(){var e=!0;try{i(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",s=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(o.hasIndices="d"),o)s(a,o[a]);return Object.getOwnPropertyDescriptor(i.prototype,"flags").get.call(t)!==r||n!==r});e.exports={correct:o}},84803:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(78409);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.DragToScroll=r.DragToScroll},84888:()=>{},84990:(e,t,n)=>{"use strict";var r=n(94988),s=Set.prototype;e.exports={Set,add:r(s.add),has:r(s.has),remove:r(s.delete),proto:s}},85008:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(89583);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ManualRowMove=r.ManualRowMove},85111:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(2655);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ContextMenu=r.ContextMenu},85126:(e,t,n)=>{"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[n,,r]=e[0];n-r!==0&&(t=1)}return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_REMOVE_ROW,t)},callback(){this.alter("remove_row",(0,r.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 r=n(67379),s=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217));const i=t.KEY="remove_row"},85187:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(66182),n(78822),n(86192),n(80729),n(99888),n(12767),n(78644),n(97550),n(81396),n(81124);var s=r(n(81115)),i=n(27328),o=n(72740);class a{constructor(e){(0,s.default)(this,"valueFactory",void 0),(0,s.default)(this,"data",[]),(0,s.default)(this,"index",[]),(0,s.default)(this,"holes",new Set),this.valueFactory=e}obtain(e){(0,i.assert)(()=>(0,o.isUnsignedNumber)(e),"Expecting an unsigned number.");const t=this._getStorageIndexByKey(e);let n;if(t>=0)n=this.data[t],void 0===n&&(n=this.valueFactory(e),this.data[t]=n);else if(n=this.valueFactory(e),this.holes.size>0){const t=this.holes.values().next().value;this.holes.delete(t),this.data[t]=n,this.index[e]=t}else this.data.push(n),this.index[e]=this.data.length-1;return n}insert(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;(0,i.assert)(()=>(0,o.isUnsignedNumber)(e)||(0,i.isNullish)(e),"Expecting an unsigned number or null/undefined argument.");const n=[],r=this.data.length;for(let e=0;e<t;e++)n.push(r+e),this.data.push(void 0);const s=(0,i.isNullish)(e)?this.index.length:e;this.index=[...this.index.slice(0,s),...n,...this.index.slice(s)]}remove(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;(0,i.assert)(()=>(0,o.isUnsignedNumber)(e)||(0,i.isNullish)(e),"Expecting an unsigned number or null/undefined argument.");const n=this.index.splice((0,i.isNullish)(e)?this.index.length-t:e,t);for(let e=0;e<n.length;e++){const t=n[e];"number"==typeof t&&this.holes.add(t)}}size(){return this.data.length-this.holes.size}values(){return this.data.filter((e,t)=>void 0!==e&&!this.holes.has(t))[Symbol.iterator]()}entries(){const e=[];for(let t=0;t<this.data.length;t++){const n=this._getKeyByStorageIndex(t);-1!==n&&void 0!==this.data[t]&&e.push([n,this.data[t]])}let t=0;return{next:()=>{if(t<e.length){const n=e[t];return t+=1,{value:n,done:!1}}return{done:!0}}}}clear(){this.data=[],this.index=[],this.holes.clear()}_getStorageIndexByKey(e){return this.index.length>e?this.index[e]:-1}_getKeyByStorageIndex(e){return this.index.indexOf(e)}[Symbol.iterator](){return this.entries()}}t.default=a},85422:(e,t,n)=>{"use strict";t.__esModule=!0,t.loadingContent=function(e){let{id:t,icon:n,title:s,description:i}=e;return`\n <div class="${r.LOADING_CLASS_NAME}__content">\n <i class="${r.LOADING_CLASS_NAME}__icon">${n}</i>\n <div class="${r.LOADING_CLASS_NAME}__text">\n <h2 id="${t}-${r.PLUGIN_KEY}-title" class="${r.LOADING_CLASS_NAME}__title">${s}</h2>\n ${i?`<p id="${t}-${r.PLUGIN_KEY}-description" class="${r.LOADING_CLASS_NAME}__description">${i}</p>`:""}\n </div>\n </div>\n `};var r=n(12483)},85555:()=>{},85742:()=>{},85871:(e,t,n)=>{"use strict";t.__esModule=!0,t.condition=a;var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217)),s=n(25039),i=n(50686);const o=t.CONDITION_NAME="neq";function a(e,t){return!(0,s.getCondition)(i.CONDITION_NAME,t)(e)}(0,s.registerCondition)(o,a,{name:r.FILTERS_CONDITIONS_NOT_EQUAL,inputsCount:1,showOperators:!0})},85921:(e,t,n)=>{"use strict";var r=n(52270);e.exports=function(e){return r(e)||null===e}},85966:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionUpByViewportHeight",callback(e){const{selection:t,rowIndexMapper:n}=e,{to:r}=e.getSelectedRangeActive(),s=Math.max(r.row-e.countVisibleRows(),0),i=n.getNearestNotHiddenIndex(s,1);if(null!==i){const n=e._createCellCoords(i,r.col),s=r.row-e.getFirstFullyVisibleRow(),o=Math.max(n.row-s,0);t.markSource("keyboard"),t.setRangeEnd(n,e.getActiveSelectionLayerIndex()),t.markEndSource(),e.scrollViewportTo({row:o,verticalSnap:"top",horizontalSnap:"start"})}}}},86192:(e,t,n)=>{"use strict";var r=n(27538),s=n(89035),i=n(71794);r({target:"Set",proto:!0,real:!0,forced:!n(90544)("intersection",function(e){return 2===e.size&&e.has(1)&&e.has(2)})||s(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))})},{intersection:i})},86293:(e,t,n)=>{"use strict";var r=n(19617),s=n(49510),i=n(16539),o=n(24755),a=n(47151),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?a(e):t;if(s(n))return i(r(n,e));throw new l(o(e)+" is not iterable")}},86415:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(78822),n(86192),n(80729),n(99888),n(12767),n(78644),n(97550);var s=r(n(81115)),i=n(92164),o=n(89090),a=n(37849);t.DynamicCellMetaMod=class{constructor(e){var t=this;(0,s.default)(this,"metaManager",void 0),(0,s.default)(this,"metaSyncMemo",new Map),this.metaManager=e,e.addLocalHook("afterGetCellMeta",function(){return t.extendCellMeta(...arguments)}),i.Hooks.getSingleton().add("beforeRender",e=>{e&&this.metaSyncMemo.clear()},this.metaManager.hot)}extendCellMeta(e){var t;const{row:n,col:r}=e;if(null!==(t=this.metaSyncMemo.get(n))&&void 0!==t&&t.has(r))return;const{visualRow:s,visualCol:i}=e,l=this.metaManager.hot,h=l.colToProp(i);e.prop=h,l.runHooks("beforeGetCellMeta",s,i,e);const u=(0,o.hasOwnProperty)(e,"type")?e.type:null;let c=(0,a.isFunction)(e.cells)?e.cells(n,r,h):null;var d;u&&(c?c.type=null!==(d=c.type)&&void 0!==d?d:u:c={type:u});c&&this.metaManager.updateCellMeta(n,r,c),l.runHooks("afterGetCellMeta",s,i,e),this.metaSyncMemo.has(n)||this.metaSyncMemo.set(n,new Set),this.metaSyncMemo.get(n).add(r)}}},86431:(e,t,n)=>{"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))},n(22588);var r=n(91931),s=n(94658);const i=new Map([["fixed",r.FixedPageSizeStrategy],["auto",s.AutoPageSizeStrategy]])},86534:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_UNDO)},callback(){this.getPlugin("undoRedo").undo()},hidden(){const e=this.getPlugin("undoRedo");return!e||!e.isEnabled()},disabled(){return!this.getPlugin("undoRedo").isUndoAvailable()}}};var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217));const s=t.KEY="undo"},86553:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(66182),n(81396),n(88633);var s=r(n(81115)),i=n(89090),o=n(51053),a=n(30152),l=n(72740),h=n(37849);t.default=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];(0,s.default)(this,"hot",void 0),(0,s.default)(this,"data",void 0),(0,s.default)(this,"dataType","array"),(0,s.default)(this,"colToProp",()=>{}),(0,s.default)(this,"propToCol",()=>{}),this.hot=e,this.data=t}modifyRowData(e){let t;return this.hot.hasHook("modifyRowData")&&(t=this.hot.runHooks("modifyRowData",e)),void 0===t||Number.isInteger(t)?this.data[e]:t}getData(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.data&&0!==this.data.length?this.getByRange(null,null,e):this.data}setData(e){this.data=e}getAtColumn(e){const t=[];return(0,a.arrayEach)(this.data,(n,r)=>{const s=this.getAtCell(r,e);t.push(s)}),t}getAtRow(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const s=void 0===t&&void 0===n,{dataDotNotation:o}=this.hot.getSettings();let a=null,u=null;if(a=this.modifyRowData(e),Array.isArray(a))u=[],s?a.forEach((t,n)=>{u[n]=this.getAtPhysicalCell(e,n,a)}):(0,l.rangeEach)(t,n,n=>{u[n-t]=this.getAtPhysicalCell(e,n,a)});else if((0,i.isObject)(a)||(0,h.isFunction)(a))if(u=r?[]:{},!s||r){const s=0,h=this.countFirstRowKeys()-1;(0,l.rangeEach)(s,h,l=>{const c=this.colToProp(l);if(l>=(t||s)&&l<=(n||h)&&!Number.isInteger(c)){const t=this.getAtPhysicalCell(e,c,a);r?u.push(t):o?(0,i.setProperty)(u,c,t):u[c]=t}})}else(0,i.objectEach)(a,(t,n)=>{const r=this.getAtPhysicalCell(e,n,a);o?(0,i.setProperty)(u,n,r):u[n]=r});return u}setAtCell(e,t,n){if(!(e>=this.countRows()||t>=this.countFirstRowKeys())){if(this.hot.hasHook("modifySourceData")){const r=(0,i.createObjectPropListener)(n);this.hot.runHooks("modifySourceData",e,t,r,"set"),r.isTouched()&&(n=r.value)}["__proto__","constructor","prototype"].includes(e)||(Number.isInteger(t)?this.data[e][t]=n:(0,i.setProperty)(this.data[e],t,n))}}getAtPhysicalCell(e,t,n){let r=null;if(n)if("string"==typeof t){const{dataDotNotation:e}=this.hot.getSettings();r=e?(0,i.getProperty)(n,t):n[t]}else r="function"==typeof t?t(n):n[t];if(this.hot.hasHook("modifySourceData")){const n=(0,i.createObjectPropListener)(r);this.hot.runHooks("modifySourceData",e,t,n,"get"),n.isTouched()&&(r=n.value)}return r}getAtCell(e,t){const n=this.modifyRowData(e);return this.getAtPhysicalCell(e,this.colToProp(t),n)}getByRange(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!1,s=null,i=null,o=null,a=null;null===e||null===t?(r=!0,s=0,o=this.countRows()-1):(s=Math.min(e.row,t.row),i=Math.min(e.col,t.col),o=Math.max(e.row,t.row),a=Math.max(e.col,t.col));const h=[];return(0,l.rangeEach)(s,o,e=>{h.push(r?this.getAtRow(e,void 0,void 0,n):this.getAtRow(e,i,a,n))}),h}getCopyable(e,t){const n=this.propToCol(t);return this.hot.getCellMeta(e,n).copyable?this.getAtCell(this.hot.toPhysicalRow(e),n):""}countRows(){if(this.hot.hasHook("modifySourceLength")){const e=this.hot.runHooks("modifySourceLength");if(Number.isInteger(e))return e}return this.data.length}countFirstRowKeys(){return(0,o.countFirstRowKeys)(this.data)}destroy(){this.data=null,this.hot=null}}},86568:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,t.timeValidator=a;var s=r(n(37539));const i=["YYYY-MM-DDTHH:mm:ss.SSSZ","X","x"],o=t.VALIDATOR_TYPE="time";function a(e,t){const n=this.timeFormat||"h:mm:ss a";let r=!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,n);let h=l.isValid(),u=(0,s.default)(o,n,!0).isValid()&&!a;if(this.allowEmpty&&""===o&&(h=!0,u=!0),h||(r=!1),!h&&u&&(r=!0),h&&!u)if(!0===this.correctFormat){const e=l.format(n);this.instance.setDataAtCell(this.visualRow,this.visualCol,e,"timeValidator"),r=!0}else r=!1;t(r)}a.VALIDATOR_TYPE=o},86602:()=>{},86672:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(50506),s=n(83438);const i=t.CELL_TYPE="select";t.SelectCellType={CELL_TYPE:i,editor:r.SelectEditor,renderer:s.selectRenderer}},86844:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,t.correctFormat=u,t.dateValidator=h;var s=r(n(37539)),i=n(50259),o=n(89374),a=n(33297);const l=t.VALIDATOR_TYPE="date";function h(e,t){const n=(0,i.getEditorInstance)(o.EDITOR_TYPE,this.instance);let r=e,a=!0;null==r&&(r="");let l=(0,s.default)(r,this.dateFormat||n.defaultDateFormat,!0).isValid(),h=(0,s.default)(new Date(r)).isValid()||l;if(this.allowEmpty&&""===r&&(h=!0,l=!0),h||(a=!1),!h&&l&&(a=!0),h&&!l)if(!0===this.correctFormat){const e=u(r,this.dateFormat);this.instance.setDataAtCell(this.visualRow,this.visualCol,e,"dateValidator"),a=!0}else a=!1;t(a)}function u(e,t){const n=(0,s.default)((0,a.getNormalizedDate)(e)),r=(0,s.default)(e,t),i=e.search(/[A-Za-z]/g)>-1;let o;return o=n.isValid()&&n.format("x")===r.format("x")||!r.isValid()||i?n:r,o.format(t)}h.VALIDATOR_TYPE=l},86916:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"commentsReadOnly",name(){const t=this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT);return(0,s.checkSelectionConsistency)(this.getSelectedRange(),(t,n)=>e.getCommentMeta(t,n,i.META_READONLY))?(0,s.markLabelAsSelected)(t):t},callback(){this.getSelectedRangeActive().forAll((t,n)=>{if(t>=0&&n>=0){const r=!!e.getCommentMeta(t,n,i.META_READONLY);e.updateCommentMeta(t,n,{[i.META_READONLY]:!r})}})},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 r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217)),s=n(90082),i=n(23333)},86933:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(66182);var s=r(n(81115)),i=n(77749);class o extends i.ViewportBaseCalculator{constructor(e){let{calculationTypes:t,viewportHeight:n,scrollOffset:r,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=n,this.scrollOffset=r,this.zeroBasedScrollOffset=Math.max(r,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},87085:()=>{},87405:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(81115)),i=n(38942);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"),n=t.length;this.widthsMap.clear();for(let e=0;e<n;e++){const n=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e),r=this.hot.toPhysicalColumn(n);this.widthsMap.setValueAtIndex(r,t[e].offsetWidth)}this.container.parentNode.removeChild(this.container),this.container=null}_buildGhostTable(e){const{rootDocument:t,columnIndexMapper:n}=this.hot,r=t.createDocumentFragment(),s=t.createElement("table"),o=!!this.hot.getSettings().dropdownMenu,a=n.getRenderableIndexesLength();for(let e=0;e<this.layersCount;e++){const r=t.createElement("tr");for(let s=0;s<a;s++){let a=n.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,r.appendChild(l)}}s.appendChild(r)}r.appendChild(s),e.appendChild(r)}clear(){this.widthsMap.clear(),this.container=null}}},87513:()=>{},87544:(e,t,n)=>{"use strict";t.__esModule=!0,t.deprecatedWarn=function(e){(0,r.isDefined)(console)&&console.warn(`Deprecated: ${e}`)},t.error=function(){(0,r.isDefined)(console)&&console.error(...arguments)},t.info=function(){(0,r.isDefined)(console)&&console.info(...arguments)},t.log=function(){(0,r.isDefined)(console)&&console.log(...arguments)},t.warn=function(){(0,r.isDefined)(console)&&console.warn(...arguments)};var r=n(54342)},87681:(e,t,n)=>{"use strict";var r=n(55210),s=Object;e.exports=function(e){return s(r(e))}},87755:(e,t,n)=>{"use strict";n(81396),n(88633),t.__esModule=!0;var r={createFocusScopeManager:!0,FocusGridManager:!0},s=n(47896);t.createFocusScopeManager=s.createFocusScopeManager;var i=n(77799);t.FocusGridManager=i.FocusGridManager;var o=n(38893);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===o[e]||(t[e]=o[e]))})},87901:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(36415)),i=r(n(95979)),o=r(n(48906)),a=n(89090),l=n(21596);class h extends s.default{constructor(e,t,n,r){super(e,t,n,r,l.CLONE_TOP_INLINE_START_CORNER)}}(0,a.mixin)(h,i.default),(0,a.mixin)(h,o.default);t.default=h},88025:(e,t,n)=>{"use strict";var r=n(8467);e.exports=r("document","documentElement")},88049:(e,t,n)=>{"use strict";var r=n(71671),s=n(54060),i=n(82397).f,o=r("unscopables"),a=Array.prototype;void 0===a[o]&&i(a,o,{configurable:!0,value:s(null)}),e.exports=function(e){a[o][e]=!0}},88151:(e,t,n)=>{"use strict";t.__esModule=!0,t.condition=o;var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=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?r:n){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)}(n(20217)),s=n(25039);const i=t.CONDITION_NAME="lte";function o(e,t){let[n]=t,r=n;return"numeric"===e.meta.type&&(r=parseFloat(r,10)),e.value<=r}(0,s.registerCondition)(i,o,{name:r.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL,inputsCount:1,showOperators:!0})},88205:(e,t,n)=>{"use strict";var r=n(27538),s=n(87681),i=n(69946),o=n(90331),a=n(47138),l=n(22625);r({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}()},{unshift:function(e){var t=s(this),n=i(t),r=arguments.length;if(r){l(n+r);for(var h=n;h--;){var u=h+r;h in t?t[u]=t[h]:a(t,u)}for(var c=0;c<r;c++)t[c]=arguments[c]}return o(t,n+r)}})},88356:()=>{},88501:(e,t,n)=>{"use strict";t.__esModule=!0,t.focusScrollStrategy=function(e){return t=>{e.scrollViewportTo(t.toObject(),()=>{const t=e.getSelectedRangeActive();if(!t)return;const{row:n,col:s}=t.highlight;(0,r.scrollWindowToCell)(e.getCell(n,s,!0))})}};var r=n(92634)},88574:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostBottomInlineEnd",callback(e){const{selection:t,rowIndexMapper:n,columnIndexMapper:r}=e,s=parseInt(e.getSettings().fixedRowsBottom,10),i=n.getNearestNotHiddenIndex(e.countRows()-s-1,-1),o=r.getNearestNotHiddenIndex(e.countCols()-1,-1);t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(i,o)),t.markEndSource()}}},88591:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(38325);t.RENDERER_TYPE=r.RENDERER_TYPE,t.htmlRenderer=r.htmlRenderer},88596:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(71399);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.HiddenRows=r.HiddenRows},88600:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,t.createHighlight=function(e){let{border:t,visualCellRange:n,...r}=e;return new i.default({...t,...r,selectionType:s.HIGHLIGHT_CUSTOM_SELECTION_TYPE},n)};var s=n(51191),i=r(n(5103))},88633:(e,t,n)=>{"use strict";n(20200)},88921:()=>{},89035:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},89051:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182),n(88205);var s=r(n(81115)),i=n(30152),o=n(89090);t.CommandExecutor=class{constructor(e){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"commands",{}),(0,s.default)(this,"commonCallback",null),this.hot=e}registerCommand(e,t){this.commands[e]=t}setCommonCallback(e){this.commonCallback=e}execute(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const s=e.split(":"),a=s[0],l=2===s.length?s[1]:null;let h=this.commands[a];if(!h)throw new Error(`Menu command '${a}' not exists.`);if(l&&h.submenu&&(h=function(e,t){let n;return(0,i.arrayEach)(t,t=>{const r=t.key?t.key.split(":"):null;if(Array.isArray(r)&&r[1]===e)return n=t,!1}),n}(l,h.submenu.items)),!0===h.disabled)return;if("function"==typeof h.disabled&&!0===h.disabled.call(this.hot))return;if((0,o.hasOwnProperty)(h,"submenu"))return;const u=[];"function"==typeof h.callback&&u.push(h.callback),"function"==typeof this.commonCallback&&u.push(this.commonCallback),n.unshift(s.join(":")),(0,i.arrayEach)(u,e=>e.apply(this.hot,n))}}},89090:(e,t,n)=>{"use strict";t.__esModule=!0,t.assignObjectDefaults=function e(t,n){if("object"!=typeof t||null===t)return n;if("object"!=typeof n||null===n)return t;const r={};return Object.keys(n).forEach(s=>{"object"!=typeof n[s]||null===n[s]||Array.isArray(n[s])?r[s]=a(t,s)&&void 0!==t[s]?t[s]:n[s]:r[s]=e(t[s],n[s])}),Object.keys(t).forEach(e=>{a(r,e)||(r[e]=t[e])}),r},t.clone=function(e){const t={};return o(e,(e,n)=>{t[n]=e}),t},t.createObjectPropListener=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";const n=`_${t}`,r={_touched:!1,[n]:e,isTouched(){return this._touched}};return Object.defineProperty(r,t,{get(){return this[n]},set(e){this._touched=!0,this[n]=e},enumerable:!0,configurable:!0}),r},t.deepClone=s,t.deepExtend=function e(t,n){o(n,(r,s)=>{n[s]&&"object"==typeof n[s]?(t[s]||(Array.isArray(n[s])?t[s]=[]:"[object Date]"===Object.prototype.toString.call(n[s])?t[s]=n[s]:t[s]={}),e(t[s],n[s])):t[s]=n[s]})},t.deepObjectSize=function(e){if(!i(e))return 0;const t=function(e){let n=0;return i(e)?o(e,(e,r)=>{"__children"!==r&&(n+=t(e))}):n+=1,n};return t(e)},t.defineGetter=function(e,t,n,r){r.value=n,r.writable=!1!==r.writable,r.enumerable=!1!==r.enumerable,r.configurable=!1!==r.configurable,Object.defineProperty(e,t,r)},t.duckSchema=function e(t){let n;Array.isArray(t)?n=t.length?new Array(t.length).fill(null):[]:(n={},o(t,(t,r)=>{"__children"!==r&&(t&&"object"==typeof t&&!Array.isArray(t)?n[r]=e(t):Array.isArray(t)?t.length&&"object"==typeof t[0]&&!Array.isArray(t[0])?n[r]=[e(t[0])]:n[r]=[]:n[r]=null)}));return n},t.extend=function(e,t,n){const r=Array.isArray(n);return o(t,(t,s)=>{(!1===r||n.includes(s))&&(e[s]=t)}),e},t.getProperty=function(e,t){const n=t.split(".");let r=e;return o(n,e=>{if(r=r[e],void 0===r)return r=void 0,!1}),r},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,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return(0,r.arrayEach)(n,t=>{e.MIXINS.push(t.MIXIN_NAME),o(t,(t,n)=>{if(void 0!==e.prototype[n])throw new Error(`Mixin conflict. Property '${n}' already exist and cannot be overwritten.`);if("function"==typeof t)e.prototype[n]=t;else{const r=function(e,t){const n=`_${e}`;return function(){return void 0===this[n]&&(this[n]=(e=>{let t=e;return(Array.isArray(t)||i(t))&&(t=s(t)),t})(t)),this[n]}},o=function(e){const t=`_${e}`;return function(e){this[t]=e}};Object.defineProperty(e.prototype,n,{get:r(n,t),set:o(n),configurable:!0})}})}),e},t.objectEach=o,t.setProperty=function(e,t,n){if("string"!=typeof t)return;const r=t.split(".");let s=e;r.forEach((e,t)=>{"__proto__"!==e&&"constructor"!==e&&"prototype"!==e&&(t!==r.length-1?(a(s,e)||(s[e]={}),s=s[e]):s[e]=n)})},n(22588),n(66182),n(4114),n(81396),n(88633);var r=n(30152);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 n in e)if((!e.hasOwnProperty||e.hasOwnProperty&&Object.prototype.hasOwnProperty.call(e,n))&&!1===t(e[n],n,e))break;return e}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},89127:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(7185);t.RENDERER_TYPE=r.RENDERER_TYPE,t.passwordRenderer=r.passwordRenderer},89185:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(38773);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.Search=r.Search},89374:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(30137);t.EDITOR_TYPE=r.EDITOR_TYPE,t.DateEditor=r.DateEditor},89386:(e,t,n)=>{"use strict";t.__esModule=!0,t.addItem=function(e,t){-1===w.indexOf(e)&&(y[e]=t)},t.predefinedItems=function(){const e={};return(0,r.objectEach)(y,(t,n)=>{e[n]=t()}),e};var r=n(89090),s=E(n(17243));t.ALIGNMENT=s.KEY;var i=E(n(1409));t.CLEAR_COLUMN=i.KEY;var o=E(n(65131));t.COLUMN_LEFT=o.KEY;var a=E(n(19058));t.COLUMN_RIGHT=a.KEY;var l=E(n(71426));t.READ_ONLY=l.KEY;var h=E(n(23108));t.REDO=h.KEY;var u=E(n(49702));t.REMOVE_COLUMN=u.KEY;var c=E(n(85126));t.REMOVE_ROW=c.KEY;var d=E(n(78777));t.ROW_ABOVE=d.KEY;var g=E(n(62081));t.ROW_BELOW=g.KEY;var p=E(n(15361));t.SEPARATOR=p.KEY;var f=E(n(5979));t.NO_ITEMS=f.KEY;var m=E(n(86534));function E(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(E=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?r:n){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)}t.UNDO=m.KEY;const w=t.ITEMS=[d.KEY,g.KEY,o.KEY,a.KEY,i.KEY,c.KEY,u.KEY,m.KEY,h.KEY,l.KEY,s.KEY,p.KEY,f.KEY],y={[p.KEY]:p.default,[f.KEY]:f.default,[d.KEY]:d.default,[g.KEY]:g.default,[o.KEY]:o.default,[a.KEY]:a.default,[i.KEY]:i.default,[c.KEY]:c.default,[u.KEY]:u.default,[m.KEY]:m.default,[h.KEY]:h.default,[l.KEY]:l.default,[s.KEY]:s.default}},89472:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(66182);var s=r(n(75467)),i=r(n(33462)),o=n(21596),a=r(n(53570)),l=r(n(47960)),h=r(n(17033)),u=r(n(62963)),c=n(52857),d=n(89090),g=n(38942);class p extends u.default{constructor(e,t){super(e,new a.default(t));const n=this.wtSettings.getSetting("facade",this);this.wtTable=new l.default(this.getTableDao(),n,this.domBindings,this.wtSettings),this.wtViewport=new h.default(this.getViewportDao(),this.domBindings,this.wtSettings,this.eventManager,this.wtTable),this.selectionManager=new c.SelectionManager(this.wtSettings.getSetting("selections")),this.wtEvent=new s.default(n,this.domBindings,this.wtSettings,this.eventManager,this.wtTable,this.selectionManager),this.wtOverlays=new i.default(this,n,this.domBindings,this.wtSettings,this.eventManager,this.wtTable),this.exportSettingsAsClassNames(),this.findOriginalHeaders()}exportSettingsAsClassNames(){const e=[],t=[];(0,d.objectEach)({rowHeaders:"htRowHeaders",columnHeaders:"htColumnHeaders"},(n,r)=>{this.wtSettings.getSetting(r).length&&t.push(n),e.push(n)}),(0,g.removeClass)(this.wtTable.wtRootElement.parentNode,e),(0,g.addClass)(this.wtTable.wtRootElement.parentNode,t)}getOverlayByName(e){var t;if(!o.CLONE_TYPES.includes(e))return null;const n=e.replace(/_([a-z])/g,e=>e[1].toUpperCase());return null!==(t=this.wtOverlays[`${n}Overlay`])&&void 0!==t?t:null}getViewportDao(){const e=this;return{get wot(){return e},get topOverlayTrimmingContainer(){return e.wtOverlays.topOverlay.trimmingContainer},get inlineStartOverlayTrimmingContainer(){return e.wtOverlays.inlineStartOverlay.trimmingContainer},get topScrollPosition(){return e.wtOverlays.topOverlay.getScrollPosition()},get topParentOffset(){return e.wtOverlays.topOverlay.getTableParentOffset()},get inlineStartScrollPosition(){return e.wtOverlays.inlineStartOverlay.getScrollPosition()},get inlineStartParentOffset(){return e.wtOverlays.inlineStartOverlay.getTableParentOffset()},get topOverlay(){return e.wtOverlays.topOverlay},get inlineStartOverlay(){return e.wtOverlays.inlineStartOverlay},get bottomOverlay(){return e.wtOverlays.bottomOverlay}}}}t.default=p},89577:()=>{},89583:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182),n(81396),n(19874);var s=n(57440),i=n(92164),o=n(30152),a=n(38942),l=n(72740),h=r(n(46498)),u=r(n(69089));function c(e,t,n){d(e,t),t.set(e,n)}function d(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function g(e,t,n){return e.set(f(e,t),n),n}function p(e,t){return e.get(f(e,t))}function f(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}i.Hooks.getSingleton().register("beforeRowMove"),i.Hooks.getSingleton().register("afterRowMove");const m=t.PLUGIN_KEY="manualRowMove",E=t.PLUGIN_PRIORITY=140,w="ht__manualRowMove",y="show-ui",C="on-moving--rows",v="after-selection--rows";var S=new WeakMap,R=new WeakMap,T=new WeakMap,_=new WeakMap,N=new WeakMap,A=new WeakMap,b=new WeakSet;class M extends s.BasePlugin{constructor(){var e,t;super(...arguments),d(e=this,t=b),t.add(e),c(this,S,new h.default(this.hot)),c(this,R,new u.default(this.hot)),c(this,T,[]),c(this,_,void 0),c(this,N,{}),c(this,A,void 0)}static get PLUGIN_KEY(){return m}static get PLUGIN_PRIORITY(){return E}isEnabled(){return!!this.hot.getSettings()[m]}enablePlugin(){var e=this;this.enabled||(this.addHook("beforeOnCellMouseDown",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return f(b,e,I).call(e,...n)}),this.addHook("beforeOnCellMouseOver",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return f(b,e,x).call(e,...n)}),this.addHook("afterScrollHorizontally",()=>f(b,this,L).call(this)),this.addHook("afterLoadData",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return f(b,e,D).call(e,...n)}),this.buildPluginUI(),this.registerEvents(),(0,a.addClass)(this.hot.rootElement,w),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.moveBySettingsOrLoad(),super.updatePlugin()}disablePlugin(){(0,a.removeClass)(this.hot.rootElement,w),this.unregisterEvents(),p(S,this).destroy(),p(R,this).destroy(),super.disablePlugin()}moveRow(e,t){return this.moveRows([e],t)}moveRows(e,t){const n=p(A,this),r=this.isMovePossible(e,t),s=this.hot.runHooks("beforeRowMove",e,t,n,r);if(g(A,this,void 0),!1===s)return;r&&this.hot.rowIndexMapper.moveIndexes(e,t);const i=r&&this.isRowOrderChanged(e,t);return this.hot.runHooks("afterRowMove",e,t,n,r,i),i}dragRow(e,t){return this.dragRows([e],t)}dragRows(e,t){const n=this.countFinalIndex(e,t);return g(A,this,t),this.moveRows(e,n)}isMovePossible(e,t){const n=this.hot.rowIndexMapper.getNotTrimmedIndexesLength(),r=e.length+t>n,s=t<0,i=e.some(e=>e<0),o=e.some(e=>e>=n);return!(r||s||i||o)}isRowOrderChanged(e,t){return e.some((e,n)=>e-n!==t)}countFinalIndex(e,t){const n=(0,o.arrayReduce)(e,(e,n)=>(n<t&&(e+=1),e),0);return t-n}getRowsHeight(e,t){const n=this.hot.rowIndexMapper;let r=0;for(let s=e;s<=t;s++){const e=n.getRenderableFromVisualIndex(s);null!==e&&(r+=this.hot.view._wt.wtTable.getRowHeight(e)||this.hot.stylesHandler.getDefaultRowHeight())}return r}moveBySettingsOrLoad(){const e=this.hot.getSettings()[m];if(Array.isArray(e))this.moveRows(e,0);else if(void 0!==e){const e=this.persistentStateLoad();e.length&&this.moveRows(e,0)}}isFixedRowTop(e){return e<this.hot.getSettings().fixedRowsTop}isFixedRowBottom(e){return e>this.hot.countRows()-1-this.hot.getSettings().fixedRowsBottom}persistentStateSave(){this.hot.runHooks("persistentStateSave","manualRowMove",this.hot.rowIndexMapper.getIndexesSequence())}persistentStateLoad(){const e={};return this.hot.runHooks("persistentStateLoad","manualRowMove",e),e.value?e.value:[]}prepareRowsToMoving(){const e=this.hot.getSelectedRangeActive(),t=[];if(!e)return t;const{from:n,to:r}=e,s=Math.min(n.row,r.row),i=Math.max(n.row,r.row);return(0,l.rangeEach)(s,i,e=>{t.push(e)}),t}refreshPositions(){const e=p(N,this).coords,t=this.hot.getFirstFullyVisibleRow(),n=this.hot.getLastFullyVisibleRow(),r=this.hot.countRows();this.isFixedRowTop(e.row)&&t>0&&this.hot.scrollViewportTo(this.hot.rowIndexMapper.getNearestNotHiddenIndex(t-1,-1)),this.isFixedRowBottom(e.row)&&n<r&&this.hot.scrollViewportTo(this.hot.rowIndexMapper.getNearestNotHiddenIndex(n+1,1),void 0,!0);const s=this.hot.view._wt.wtTable,i=p(N,this).TD,o=this.hot.rootElement,l=(0,a.offset)(o),h=(0,a.getTrimmingContainer)(o),u=s.holder.scrollTop,c=this.hot.rootWindow!==h?h.scrollTop:0,d=l.top-c,g=p(N,this).eventPageY-d+u,f=s.hider.offsetHeight,m=s.TBODY.offsetTop,E=p(S,this).getOffset().top,w=p(S,this).getSize().height,y=i.offsetHeight/2,C=i.offsetHeight;let v=this.hot.view.THEAD.offsetHeight+this.getRowsHeight(0,e.row-1);const T=g>=v+y;this.isFixedRowTop(e.row)&&(v+=this.hot.view._wt.wtOverlays.topOverlay.getOverlayOffset()),e.row<0?p(N,this).row=t>0?t-1:t:T?(p(N,this).row=e.row+1,v+=0===e.row?C-1:C):p(N,this).row=e.row;let _=g,A=v;g+w+E>=f?_=f-w-E:g+E<m&&(_=m+Math.abs(E)),v>=f-1&&(A=f-1),p(S,this).setPosition(_),p(R,this).setPosition(A)}registerEvents(){const{documentElement:e}=this.hot.rootDocument;this.eventManager.addEventListener(e,"mousemove",e=>f(b,this,O).call(this,e)),this.eventManager.addEventListener(e,"mouseup",()=>f(b,this,P).call(this))}unregisterEvents(){this.eventManager.clear()}buildPluginUI(){p(S,this).build(),p(R,this).build()}destroy(){p(S,this).destroy(),p(R,this).destroy(),super.destroy()}}function I(e,t,n,r){const{wtTable:s,wtViewport:i}=this.hot.view._wt,o=this.hot.selection.isSelectedByRowHeader(),l=this.hot.getSelectedRangeActive();if(!l||!o||p(_,this)||0!==e.button)return g(_,this,!1),p(T,this).length=0,void(0,a.removeClass)(this.hot.rootElement,[C,y]);const h=p(R,this).isBuilt()&&!p(R,this).isAppended(),u=p(S,this).isBuilt()&&!p(S,this).isAppended();h&&u&&(p(R,this).appendTo(s.hider),p(S,this).appendTo(s.hider));const{from:c,to:d}=l,f=Math.min(c.row,d.row),m=Math.max(c.row,d.row);if(t.col<0&&t.row>=f&&t.row<=m){r.row=!0,g(_,this,!0),p(N,this).eventPageY=e.pageY,p(N,this).coords=t,p(N,this).TD=n,g(T,this,this.prepareRowsToMoving());const o=s.holder.scrollLeft+i.getRowHeaderWidth(),l=this.getRowsHeight(f,t.row-1)+(e.clientY-n.getBoundingClientRect().top);p(S,this).setPosition(null,o),p(S,this).setSize(s.hider.offsetWidth-o,this.getRowsHeight(f,m)),p(S,this).setOffset(-l,null),(0,a.addClass)(this.hot.rootElement,C),this.refreshPositions()}else(0,a.removeClass)(this.hot.rootElement,v),g(_,this,!1),p(T,this).length=0}function O(e){p(_,this)&&(p(N,this).eventPageY=e.pageY,this.refreshPositions())}function x(e,t,n,r){this.hot.getSelectedRangeActive()&&p(_,this)&&(p(T,this).indexOf(t.row)>-1?(0,a.removeClass)(this.hot.rootElement,y):(0,a.addClass)(this.hot.rootElement,y),r.row=!0,r.column=!0,r.cell=!0,p(N,this).coords=t,p(N,this).TD=n)}function P(){const e=p(N,this).row,t=p(T,this).length;if(g(_,this,!1),(0,a.removeClass)(this.hot.rootElement,[C,y,v]),this.hot.selection.isSelectedByRowHeader()&&(0,a.addClass)(this.hot.rootElement,v),t<1||void 0===e)return;const n=p(T,this)[0],r=this.hot.toPhysicalRow(n),s=this.dragRows(p(T,this),e);if(p(T,this).length=0,!0===s){this.persistentStateSave(),this.hot.view.adjustElementsSize(),this.hot.render();const e=this.hot.toVisualRow(r),n=e+t-1;this.hot.selectRows(e,n)}}function L(){const e=this.hot.view._wt.wtTable,t=this.hot.view._wt.wtViewport.getRowHeaderWidth()+e.holder.scrollLeft;p(S,this).setPosition(null,t),p(S,this).setSize(e.hider.offsetWidth-t)}function D(){this.moveBySettingsOrLoad()}t.ManualRowMove=M},89769:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(93868);t.VALIDATOR_TYPE=r.VALIDATOR_TYPE,t.dropdownValidator=r.dropdownValidator},89973:(e,t,n)=>{"use strict";var r=n(31884),s=n(84990).has,i=n(54230),o=n(29521),a=n(43209),l=n(82719),h=n(13479);e.exports=function(e){var t=r(this),n=o(e);if(i(t)<=n.size)return!1!==a(t,function(e){if(n.includes(e))return!1},!0);var u=n.getIterator();return!1!==l(u,function(e){if(s(t,e))return h(u,"normal",!1)})}},90024:e=>{"use strict";var t=TypeError;e.exports=function(e,n){if(e<n)throw new t("Not enough arguments");return e}},90063:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(96159);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.AutoRowSize=r.AutoRowSize},90082:(e,t,n)=>{"use strict";t.__esModule=!0,t.align=function(e,t,n,o,a){(0,r.arrayEach)(e,e=>{e.forAll((e,r)=>{e>=0&&r>=0&&function(e,t,n,r,o,a){const l=o(e,t);let h=r;l.className&&(h="vertical"===n?s(l.className,r):i(l.className,r));a(e,t,"className",h)}(e,r,t,n,o,a)})})},t.checkSelectionConsistency=function(e,t){let n=!1;Array.isArray(e)&&(0,r.arrayEach)(e,e=>(e.forAll((e,r)=>{if(e>=0&&r>=0&&t(e,r))return n=!0,!1}),n));return n},t.getAlignmentClasses=function(e,t){const n={};return(0,r.arrayEach)(e,e=>{e.forAll((e,r)=>{e>=0&&r>=0&&(n[e]||(n[e]=[]),n[e][r]=t(e,r))})}),n},t.getAlignmentComparatorByClass=function(e){return function(t,n){const r=this.getCellMeta(t,n).className;return r&&-1!==r.indexOf(e)}},t.getDocumentOffsetByElement=function(e,t){const n={top:0,left:0};if(t!==e.ownerDocument){const{frameElement:e}=t.defaultView,{top:r,left:s}=e.getBoundingClientRect();n.top=r,n.left=s}return n},t.markLabelAsSelected=function(e){return`<span class="selected">${String.fromCharCode(10003)}</span>${e}`},t.prepareHorizontalAlignClass=i,t.prepareVerticalAlignClass=s;var r=n(30152);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}`}},90254:(e,t,n)=>{"use strict";var r=n(94988),s=n(49510);e.exports=function(e,t,n){try{return r(s(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},90308:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,t.getListenersCounter=function(){return o},n(66182);var s=r(n(81115)),i=n(68834);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,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];function s(e){n.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:n,callbackProxy:s,options:r,eventManager:this}),e.addEventListener(t,s,r),o+=1,()=>{this.removeEventListener(e,t,n)}}removeEventListener(e,t,n){let r,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=this.context.eventListeners.length;for(;i;)if(i-=1,r=this.context.eventListeners[i],r.event===t&&r.element===e){if(n&&n!==r.callback)continue;if(s&&r.eventManager!==this)continue;this.context.eventListeners.splice(i,1),r.element.removeEventListener(r.event,r.callbackProxy,r.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 n=this.context.eventListeners[t];e&&n.eventManager!==this||(this.context.eventListeners.splice(t,1),n.element.removeEventListener(n.event,n.callbackProxy,n.options),o-=1)}}clear(){this.clearEvents()}destroy(){this.clearEvents(),this.context=null}destroyWithOwnEventsOnly(){this.clearEvents(!0),this.context=null}fireEvent(e,t){let n=e.document,r=e;n||(n=e.ownerDocument?e.ownerDocument:e,r=n.defaultView);const s={bubbles:!0,cancelable:"mousemove"!==t,view:r,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;n.createEvent?(i=n.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||n.body.parentNode)):i=n.createEventObject(),e.dispatchEvent?e.dispatchEvent(i):e.fireEvent(`on${t}`,i)}}},90331:(e,t,n)=>{"use strict";var r=n(21912),s=n(42388),i=TypeError,o=Object.getOwnPropertyDescriptor,a=r&&!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}},90433:()=>{},90544:(e,t,n)=>{"use strict";var r=n(8467),s=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},i=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};e.exports=function(e,t){var n=r("Set");try{(new n)[e](s(0));try{return(new n)[e](s(-1)),!1}catch(r){if(!t)return!0;try{return(new n)[e](i(-1/0)),!1}catch(r){var o=new n;return o.add(1),o.add(2),t(o[e](i(1/0)))}}}catch(e){return!1}}},90560:(e,t,n)=>{"use strict";t.__esModule=!0,t.getMostBottomEndPosition=i,t.getMostTopStartPosition=s,t.normalizeCoordsIfNeeded=function(e){return t=>{if(!t)return null;const{rowIndexMapper:n,columnIndexMapper:o}=e;if(n.isHidden(t.row)||o.isHidden(t.col))return null;const a=s(e),l=i(e);return null===a||null===l?null:(t.row=(0,r.clamp)(t.row,a.row,l.row),t.col=(0,r.clamp)(t.col,a.col,l.col),t)}};var r=n(72740);function s(e){const{rowIndexMapper:t,columnIndexMapper:n}=e,{navigableHeaders:r}=e.getSettings();let s=r&&e.countColHeaders()>0?-e.countColHeaders():0,i=r&&e.countRowHeaders()>0?-e.countRowHeaders():0;return 0===s&&(s=t.getVisualFromRenderableIndex(s)),0===i&&(i=n.getVisualFromRenderableIndex(i)),null===s||null===i?null:e._createCellCoords(s,i)}function i(e){var t,n;const{rowIndexMapper:r,columnIndexMapper:s}=e,{navigableHeaders:i}=e.getSettings();let o=r.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=r.getVisualFromRenderableIndex(o))&&void 0!==t?t:o,null!==(n=s.getVisualFromRenderableIndex(a))&&void 0!==n?n:a)}},90653:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(81115)),i=n(78359),o=n(22155),a=n(38942),l=n(14089);class h extends o.BaseRenderer{constructor(){super("TH"),(0,s.default)(this,"orderViews",new WeakMap),(0,s.default)(this,"sourceRowIndex",0)}obtainOrderView(e){let t;return this.orderViews.has(e)?t=this.orderViews.get(e):(t=new i.SharedOrderView(e,e=>this.nodesPool.obtain(this.sourceRowIndex,e)),this.orderViews.set(e,t)),t}render(){const{rowsToRender:e,rowHeaderFunctions:t,rowHeadersCount:n,rows:r,cells:s}=this.table;for(let i=0;i<e;i++){const e=this.table.renderedRowToSource(i),o=r.getRenderedNode(i);this.sourceRowIndex=e;const h=this.obtainOrderView(o),u=s.obtainOrderView(o);h.appendView(u).setSize(n).setOffset(0).start();for(let r=n-1;r>=0;r--){h.render();const n=h.getCurrentNode();n.className="",n.removeAttribute("style"),(0,a.removeAttribute)(n,[new RegExp("aria-(.*)"),new RegExp("role")]),this.table.isAriaEnabled()&&(0,a.setAttribute)(n,[(0,l.A11Y_ROWHEADER)(),(0,l.A11Y_SCOPE_ROW)(),(0,l.A11Y_COLINDEX)(r+1),(0,l.A11Y_TABINDEX)(-1)]),t[r](e,n,r)}h.end()}}}t.RowHeadersRenderer=h},90721:(e,t,n)=>{"use strict";n(88049)("flatMap")},91188:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588);var s=r(n(81115)),i=n(14298);function o(e,t,n){(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,n)}function a(e,t){return e.get(h(e,t))}function l(e,t,n){return e.set(h(e,t),n),n}function h(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var u=new WeakMap;t.default=class{constructor(e,t,n,r,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=n,this.colspan=r,this.cellCoordsFactory=i,this.cellRangeFactory=a}static NEGATIVE_VALUES_WARNING(e){let{row:t,col:n,rowspan:r,colspan:s}=e;return i.toSingleLine`The merged cell declared with {row: ${t}, col: ${n},\x20
|
|
288
288
|
rowspan: ${r}, colspan: ${s}} contains negative values, which is\x20
|