handsontable 16.2.0-next-90d1117-20251117 → 16.2.0-next-7d068f5-20251117
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 -0
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/dist/handsontable.css +3 -2
- package/dist/handsontable.full.css +3 -2
- package/dist/handsontable.full.js +16 -29
- package/dist/handsontable.full.min.css +3 -3
- package/dist/handsontable.full.min.js +5 -5
- package/dist/handsontable.js +16 -29
- package/dist/handsontable.min.css +3 -3
- package/dist/handsontable.min.js +5 -5
- package/editors/autocompleteEditor/autocompleteEditor.d.ts +9 -2
- package/editors/autocompleteEditor/autocompleteEditor.js +0 -1
- package/editors/autocompleteEditor/autocompleteEditor.mjs +0 -1
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/package.json +1 -1
- package/plugins/columnSummary/columnSummary.js +2 -2
- package/plugins/columnSummary/columnSummary.mjs +2 -2
- package/plugins/emptyDataState/ui.js +4 -1
- package/plugins/emptyDataState/ui.mjs +4 -1
- package/plugins/undoRedo/undoRedo.js +5 -20
- package/plugins/undoRedo/undoRedo.mjs +5 -20
- package/styles/handsontable.css +2 -2
- package/styles/handsontable.min.css +2 -2
- 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 +6 -6
- package/styles/ht-theme-classic-no-icons.min.css +3 -3
- package/styles/ht-theme-classic.css +6 -6
- package/styles/ht-theme-classic.min.css +3 -3
- package/styles/ht-theme-horizon-no-icons.css +8 -8
- package/styles/ht-theme-horizon-no-icons.min.css +3 -3
- package/styles/ht-theme-horizon.css +8 -8
- package/styles/ht-theme-horizon.min.css +3 -3
- 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: 20/11/2025 (built at 17/11/2025
|
|
28
|
+
* Version: 16.2.0-next-7d068f5-20251117
|
|
29
|
+
* Release date: 20/11/2025 (built at 17/11/2025 15:09:06)
|
|
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
|
|
@@ -238,7 +238,7 @@ const F=E(),U=g(),V=(e=>({loadLanguagesInNode:t=>w(t,e)}))($),B=d();let W=(e=>({
|
|
|
238
238
|
that does not exist. Before activation, register the context using the "addContext" method.`);c=e},isCtrlPressed:()=>!f&&(E.isPressed("control")||E.isPressed("meta")),releasePressedKeys:()=>E.releasePressedKeys(),destroy:()=>E.unmount()}}},23333:(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(68834),a=n(89090),l=n(51191),h=n(57440),u=r(n(4143)),c=r(n(70345)),d=n(89386),g=r(n(43203)),p=r(n(59914)),f=r(n(86916));function m(e,t,n){E(e,t),t.set(e,n)}function E(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function w(e,t,n){return e.set(C(e,t),n),n}function y(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 v=t.PLUGIN_KEY="comments",S=t.PLUGIN_PRIORITY=60,R=t.META_COMMENT="comment",T=t.META_COMMENT_VALUE="value",_=t.META_STYLE="style",N=t.META_READONLY="readOnly",A=v,b=`plugin:${v}`;var M=new WeakMap,I=new WeakMap,O=new WeakMap,x=new WeakMap,P=new WeakMap,L=new WeakMap,D=new WeakMap,k=new WeakSet;class H extends h.BasePlugin{constructor(){var e,t;super(...arguments),E(e=this,t=k),t.add(e),(0,s.default)(this,"range",{}),m(this,M,null),m(this,I,null),m(this,O,!1),m(this,x,!1),m(this,P,!1),m(this,L,null),m(this,D,"")}static get PLUGIN_KEY(){return v}static get PLUGIN_PRIORITY(){return S}static get DEFAULT_SETTINGS(){return{displayDelay:250}}isEnabled(){return!!this.hot.getSettings()[v]}enablePlugin(){var e=this;this.enabled||(y(M,this)||(w(M,this,new u.default(this.hot.rootDocument,this.hot.isRtl(),this.hot.rootPortalElement)),y(M,this).addLocalHook("resize",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return C(k,e,j).call(e,...n)}),this.hot.addHook("afterSetTheme",(e,t)=>{t||this.hide()})),y(I,this)||w(I,this,new c.default(this.getSetting("displayDelay"))),this.addHook("afterContextMenuDefaultOptions",e=>this.addToContextMenu(e)),this.addHook("afterRenderer",(e,t,n,r,s,i)=>C(k,this,W).call(this,e,i)),this.addHook("afterScroll",()=>C(k,this,$).call(this)),this.addHook("afterBeginEditing",()=>this.hide()),this.addHook("afterDocumentKeyDown",e=>C(k,this,z).call(this,e)),this.addHook("beforeCompositionStart",e=>C(k,this,z).call(this,e)),y(I,this).addLocalHook("hide",()=>this.hide()),y(I,this).addLocalHook("show",(e,t)=>this.showAtCell(e,t)),this.registerShortcuts(),this.registerListeners(),super.enablePlugin())}updatePlugin(){y(I,this).updateDelay(this.getSetting("displayDelay")),super.updatePlugin()}disablePlugin(){this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){const e=this.hot.getShortcutManager(),t=e.getContext("grid"),n=e.addContext(b);t.addShortcut({keys:[["Control","Alt","M"]],callback:()=>{const t=this.hot.getSelectedRangeActive();w(x,this,!0),this.hot.scrollToFocusedCell(()=>{this.setRange(t),this.show(),this.focusEditor(),e.setActiveContextName(b),this.hot._registerTimeout(()=>{w(x,this,!1)})})},stopPropagation:!0,runOnlyIf:()=>{var e;return null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.highlight.isCell()},group:A}),n.addShortcut({keys:[["Escape"]],callback:()=>{y(M,this).setValue(y(D,this)),this.hide(),e.setActiveContextName("grid")},runOnlyIf:()=>y(M,this).isVisible()&&y(M,this).isFocused(),group:A}),n.addShortcut({keys:[["Control/Meta","Enter"]],callback:()=>{this.hide(),e.setActiveContextName("grid")},runOnlyIf:()=>y(M,this).isVisible()&&y(M,this).isFocused(),group:A}),n.addShortcut({keys:[["Shift","Tab"],["Tab"]],forwardToContext:e.getContext("grid"),callback:()=>{w(P,this,!0),y(M,this).setValue(y(M,this).getValue()),this.setComment(),this.hide(),e.setActiveContextName("grid")},group:A})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(A)}registerListeners(){const{rootDocument:e}=this.hot,t=this.getEditorInputElement();this.eventManager.addEventListener(e,"mouseover",e=>C(k,this,V).call(this,e)),this.eventManager.addEventListener(e,"mousedown",e=>C(k,this,F).call(this,e)),this.eventManager.addEventListener(e,"mouseup",()=>C(k,this,B).call(this)),this.eventManager.addEventListener(t,"focus",()=>C(k,this,G).call(this)),this.eventManager.addEventListener(t,"blur",()=>C(k,this,Y).call(this)),this.eventManager.addEventListener(this.getEditorInputElement(),"mousedown",e=>C(k,this,U).call(this,e))}setRange(e){this.range=e}clearRange(){this.range={}}targetIsCellWithComment(e){const t=(0,i.closest)(e.target,"TD","TBODY");return!!(t&&(0,i.hasClass)(t,"htCommentCell")&&(0,i.closest)(t,[this.hot.rootElement]))}targetIsCommentTextArea(e){return this.getEditorInputElement()===e.target}setComment(e){if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');const t=y(M,this).getValue();let n="";null!=e?n=e:null!=t&&(n=t);const{row:r,col:s}=C(k,this,K).call(this);this.updateCommentMeta(r,s,{[T]:n}),this.hot.render()}setCommentAtCell(e,t,n){this.setRange({from:this.hot._createCellCoords(e,t)}),this.setComment(n)}removeComment(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');const{row:t,col:n}=C(k,this,K).call(this);this.hot.setCellMeta(t,n,R),e&&this.hot.render(),this.hide()}removeCommentAtCell(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.setRange({from:this.hot._createCellCoords(e,t)}),this.removeComment(n)}getComment(){const{row:e,col:t}=C(k,this,K).call(this);return this.getCommentMeta(e,t,T)}getCommentAtCell(e,t){return this.getCommentMeta(e,t,T)}show(){var e;if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');const{row:t,col:n}=C(k,this,K).call(this);if(t<0||t>this.hot.countSourceRows()-1||n<0||n>this.hot.countSourceCols()-1)return!1;const r=this.hot.getCellMeta(t,n);return y(I,this).cancelHiding(),y(M,this).setValue(null!==(e=r[R]?r[R][T]:null)&&void 0!==e?e:""),y(M,this).show(),this.refreshEditor(!0),!0}showAtCell(e,t){return this.setRange({from:this.hot._createCellCoords(e,t)}),this.show()}hide(){y(M,this).hide()}refreshEditor(){if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this.range.from&&y(M,this).isVisible()))return;const{rowIndexMapper:e,columnIndexMapper:t}=this.hot,{row:n,col:r}=C(k,this,K).call(this);let s=e.getRenderableFromVisualIndex(n),o=t.getRenderableFromVisualIndex(r);const a=null===s;y(M,this).setPosition(0,0),null===s&&(s=e.getRenderableFromVisualIndex(e.getNearestNotHiddenIndex(n,-1))),null===o&&(o=t.getRenderableFromVisualIndex(t.getNearestNotHiddenIndex(r,-1)));const l=null===s,h=null===o;s=null!=s?s:0,o=null!=o?o:0;const{rootWindow:u,view:{_wt:c}}=this.hot,{wtTable:d}=c,g=c.getCell({row:s,col:o},!0),p=this.getCommentMeta(n,r,_);p?y(M,this).setSize(p.width,p.height):y(M,this).resetSize();const f=h?0:d.getColumnWidth(o),m=a&&!l?(0,i.outerHeight)(g):0,{left:E,top:w,width:v,height:S}=g.getBoundingClientRect(),{width:R,height:T}=y(M,this).getSize(),{innerWidth:A,innerHeight:b}=this.hot.rootWindow,I=this.hot.rootDocument.documentElement,O=(0,i.getScrollbarWidth)(this.hot.rootDocument),x=(0,i.hasVerticalScrollbar)(this.hot.rootWindow)?O:0,P=(0,i.hasHorizontalScrollbar)(this.hot.rootWindow)?O:0;let L=E+u.scrollX+f,D=w+u.scrollY+m;this.hot.isRtl()&&(L-=R+f),this.hot.isLtr()&&E+v+R>A-x?L=E+u.scrollX-R-1:this.hot.isRtl()&&L<-(I.scrollWidth-I.clientWidth)&&(L=E+u.scrollX+f+1),w+T>b-P&&(D-=T-S+1),y(M,this).setPosition(L,D),y(M,this).setReadOnlyState(this.getCommentMeta(n,r,N)),y(M,this).observeSize()}focusEditor(){y(M,this).focus()}updateCommentMeta(e,t,n){const r=this.hot.getCellMeta(e,t)[R];let s;r?(s=(0,a.deepClone)(r),(0,a.deepExtend)(s,n)):s=n,this.hot.setCellMeta(e,t,R,s)}getCommentMeta(e,t,n){const r=this.hot.getCellMeta(e,t);if(r[R])return r[R][n]}addToContextMenu(e){e.items.push({name:d.SEPARATOR},(0,g.default)(this),(0,p.default)(this),(0,f.default)(this))}getEditorInputElement(){return y(M,this).getInputElement()}destroy(){var e,t;null===(e=y(M,this))||void 0===e||e.destroy(),null===(t=y(I,this))||void 0===t||t.destroy(),super.destroy()}}function F(e){if(this.hot.view&&this.hot.view._wt&&!y(O,this)&&!this.targetIsCommentTextArea(e)){const t=(0,i.closest)(e.target,"TD","TBODY");let n=null;t&&(n=this.hot.getCoords(t)),(!t||this.range.from&&n&&(this.range.from.row!==n.row||this.range.from.col!==n.col))&&this.hide()}}function U(e){e.stopPropagation()}function V(e){const{rootDocument:t}=this.hot;if(!(y(O,this)||y(M,this).isFocused()||(0,i.hasClass)(e.target,"wtBorder")||y(L,this)===e.target)&&y(M,this))if(w(L,this,t.elementFromPoint(e.clientX,e.clientY)),this.targetIsCellWithComment(e)){const t=this.hot._createCellRange(this.hot.getCoords(e.target));y(I,this).show(t)}else(0,i.isChildOf)(e.target,t)&&!this.targetIsCommentTextArea(e)&&y(I,this).hide()}function B(){w(O,this,!1)}function W(e,t){t[R]&&t[R][T]&&(0,i.addClass)(e,t.commentedCellClassName)}function Y(){y(P,this)?w(P,this,!1):(w(D,this,""),this.hot.getShortcutManager().setActiveContextName("grid"),this.setComment())}function G(){w(D,this,this.getComment()),this.hot.listen(),this.hot.getShortcutManager().setActiveContextName(b)}function j(e,t){const{row:n,col:r}=C(k,this,K).call(this);this.updateCommentMeta(n,r,{[_]:{width:e,height:t}})}function z(e){y(M,this).isFocused()&&(0,o.stopImmediatePropagation)(e)}function $(){y(x,this)||this.hide()}function K(){return this.range instanceof l.CellRange?this.range.highlight:this.hot._createCellCoords(this.range.from.row,this.range.from.col)}t.Comments=H},23463:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostInlineEnd",callback(e){const{selection:t,columnIndexMapper:n}=e,{highlight:r,from:s,to:i}=e.getSelectedRangeActive();if(!t.isSelectedByRowHeader()&&!t.isSelectedByCorner()&&r.isCell()){const o=n.getNearestNotHiddenIndex(e.countCols()-1,-1),a=s.clone();a.col=r.col,t.markSource("keyboard"),t.setRangeStart(a,void 0,!1,r.clone()),t.setRangeEnd(e._createCellCoords(i.row,o)),t.markEndSource()}}}},23633:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(69422);t.CELL_TYPE=r.CELL_TYPE,t.NumericCellType=r.NumericCellType},23813:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182);var s=r(n(81115)),i=n(89090),o=n(72740),a=n(54342);class l{static get SAMPLE_COUNT(){return 3}constructor(e){(0,s.default)(this,"samples",null),(0,s.default)(this,"dataFactory",null),(0,s.default)(this,"customSampleCount",null),(0,s.default)(this,"allowDuplicates",!1),(0,s.default)(this,"includeHidden",!1),this.dataFactory=e}getSampleCount(){return this.customSampleCount?this.customSampleCount:l.SAMPLE_COUNT}setSampleCount(e){this.customSampleCount=e}setAllowDuplicates(e){this.allowDuplicates=e}setIncludeHidden(e){this.includeHidden=e}generateRowSamples(e,t){return this.generateSamples("row",t,e)}generateColumnSamples(e,t){return this.generateSamples("col",t,e)}generateSamples(e,t,n){const r=new Map,{from:s,to:i}="number"==typeof n?{from:n,to:n}:n;return(0,o.rangeEach)(s,i,n=>{const s=this.generateSample(e,t,n);r.set(n,s)}),r}generateSample(e,t,n){if("row"!==e&&"col"!==e)throw new Error("Unsupported sample type");const r=new Map,s="row"===e?"col":"row",l=[];return(0,o.rangeEach)(t.from,t.to,t=>{const o="row"===e?this.dataFactory(n,t,this):this.dataFactory(t,n,this);if(!1===o)return;const{value:h,bundleSeed:u}=o,c="string"==typeof u&&u.length>0;let d;d=c?u:(0,i.isObject)(h)?`${Object.keys(h).length}`:Array.isArray(h)?`${h.length}`:`${(0,a.stringify)(h).length}`,r.has(d)||r.set(d,{needed:this.getSampleCount(),strings:[]});const g=r.get(d);if(g.needed){(!(l.indexOf(h)>-1)||this.allowDuplicates||c)&&(g.strings.push({value:h,[s]:t}),l.push(h),g.needed-=1)}}),r}}t.default=l},24112:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(44495);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ManualColumnMove=r.ManualColumnMove},24177:(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_after";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_AFTER,inputsCount:1,showOperators:!0})},24285:(e,t,n)=>{"use strict";t.__esModule=!0,n(66182);var r=n(89090),s=n(37849);const i={_localHooks:Object.create(null),addLocalHook(e,t){return this._localHooks[e]||(this._localHooks[e]=[]),this._localHooks[e].push(t),this},removeLocalHook(e,t){if(this._localHooks[e]){const n=this._localHooks[e].indexOf(t);n>-1&&this._localHooks[e].splice(n,1)}return this},runLocalHooks(e,t,n,r,i,o,a){if(this._localHooks[e]){const l=this._localHooks[e].length;for(let h=0;h<l;h++)(0,s.fastCall)(this._localHooks[e][h],this,t,n,r,i,o,a)}},clearLocalHooks(){return this._localHooks={},this}};(0,r.defineGetter)(i,"MIXIN_NAME","localHooks",{writable:!1,enumerable:!1});t.default=i},24360:(e,t,n)=>{"use strict";t.__esModule=!0,n(22588),n(66182),n(37637),n(78822),n(86192),n(80729),n(99888),n(12767),n(78644),n(97550),n(81396),n(81124),n(82101),n(88633);var r=n(29705);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,n){return e.set(l(e,t),n),n}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 WeakMap,c=new WeakMap,d=new WeakSet;function g(e){a(h,this).set(e,[]),a(u,this).set(e,0)}t.HooksBucket=class{constructor(){var e,t;i(e=this,t=d),t.add(e),s(this,h,new Map),s(this,u,new Map),s(this,c,new Set),r.REGISTERED_HOOKS.forEach(e=>l(d,this,g).call(this,e))}getHooks(e){var t;return null!==(t=a(h,this).get(e))&&void 0!==t?t:[]}add(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};a(h,this).has(e)||(l(d,this,g).call(this,e),r.REGISTERED_HOOKS.push(e));const s=a(h,this).get(e),i=s.find(e=>e.callback===t);if(i)return void(!0===i.skip&&(i.skip=!1));const o=Number.isInteger(n.orderIndex)?n.orderIndex:0,u=!!n.runOnce,p=!!n.initialHook;let f=!1;if(p){const e=s.find(e=>e.initialHook);e&&(e.callback=t,f=!0)}if(!f){s.push({callback:t,orderIndex:o,runOnce:u,initialHook:p,skip:!1});let n=a(c,this).has(e);n||0===o||(n=!0,a(c,this).add(e)),n&&s.length>1&&a(h,this).set(e,s.toSorted((e,t)=>e.orderIndex-t.orderIndex))}}has(e){return a(h,this).has(e)&&a(h,this).get(e).length>0}remove(e,t){if(!a(h,this).has(e))return!1;const n=a(h,this).get(e),r=n.find(e=>e.callback===t);if(r){let t=a(u,this).get(e);return r.skip=!0,t+=1,t>100&&(a(h,this).set(e,n.filter(e=>!e.skip)),t=0),a(u,this).set(e,t),!0}return!1}destroy(){a(h,this).clear(),a(u,this).clear(),o(h,this,null),o(u,this,null)}}},24427:(e,t,n)=>{"use strict";var r=n(19596),s=n(771),i=n(36724),o=function(e){return s.slice(0,e.length)===e};e.exports=o("Bun/")?"BUN":o("Cloudflare-Workers")?"CLOUDFLARE":o("Deno/")?"DENO":o("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"},24501:()=>{},24659:(e,t,n)=>{"use strict";var r,s,i=n(19596),o=n(771),a=i.process,l=i.Deno,h=a&&a.versions||l&&l.version,u=h&&h.v8;u&&(s=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!s&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(s=+r[1]),e.exports=s},24755:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},25007:(e,t,n)=>{var r=n(5172).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var s=n.call(e,t||"default");if("object"!=r(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},25039:(e,t,n)=>{"use strict";t.__esModule=!0,t.getCondition=function(e,t){if(!r[e])throw Error(`Filter condition "${e}" does not exist.`);const{condition:n,descriptor:s}=r[e];let i=t;s.inputValuesDecorator&&(i=s.inputValuesDecorator(i));return function(e){return n.apply(e.meta.instance,[].concat([e],[i]))}},t.getConditionDescriptor=function(e){if(!r[e])throw Error(`Filter condition "${e}" does not exist.`);return r[e].descriptor},t.registerCondition=function(e,t,n){n.key=e,r[e]={condition:t,descriptor:n}},n(22588);const r=t.conditions={}},25138:(e,t,n)=>{"use strict";var r=n(31884),s=n(54230),i=n(43209),o=n(29521);e.exports=function(e){var t=r(this),n=o(e);return!(s(t)>n.size)&&!1!==i(t,function(e){if(!n.includes(e))return!1},!0)}},25632:(e,t,n)=>{"use strict";t.__esModule=!0,t._dataToHTML=function(e){const t=e.length,n=["<table>"];for(let s=0;s<t;s+=1){const i=e[s],o=i.length,a=[];0===s&&n.push("<tbody>");for(let e=0;e<o;e+=1){const t=i[e],n=(0,r.isEmpty)(t)?"":t.toString().replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20{2,}/gi,e=>`<span style="mso-spacerun: yes">${" ".repeat(e.length-1)} </span>`).replace(/\t/gi,"	");a.push(`<td>${n}</td>`)}n.push("<tr>",...a,"</tr>"),s+1===t&&n.push("</tbody>")}return n.push("</table>"),n.join("")},t.htmlToGridSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;const n={},r=t.createDocumentFragment(),o=t.createElement("div");r.appendChild(o);let a=e;if("string"==typeof a){const e=a.replace(/<td\b[^>]*?>([\s\S]*?)<\/\s*td>/g,e=>{const t=e.match(/<td\b[^>]*?>/g)[0];return`${t}${e.substring(t.length,e.lastIndexOf("<")).trim().replaceAll(/\n\s+/g," ").replaceAll(/<p.*?>/g,"\n").replace("\n","").replaceAll(/<\/(.*)>\s+$/gm,"</$1>").replace(/(<(?!br)([^>]+)>)/gi,"").replaceAll(/^ $/gm,"")}</td>`});o.insertAdjacentHTML("afterbegin",`${e}`),a=o.querySelector("table")}if(!a||!function(e){return"TABLE"===(e&&e.nodeName||"")}(a))return;const l=o.querySelector('meta[name$="enerator"]'),h=null!==a.querySelector("tbody th"),u=a.querySelector("tr"),c=u?Array.from(u.cells).reduce((e,t)=>e+t.colSpan,0)-(h?1:0):0,d=a.tFoot&&Array.from(a.tFoot.rows)||[],g=[];let p=!1,f=0,m=0;if(a.tHead){const e=Array.from(a.tHead.rows).filter(e=>{const t=null!==e.querySelector("td");return t&&g.push(e),!t});f=e.length,p=f>0,f>1?n.nestedHeaders=Array.from(e).reduce((e,t)=>{const n=Array.from(t.cells).reduce((e,t,n)=>{if(h&&0===n)return e;const{colSpan:r,innerHTML:s}=t,i=r>1?{label:s,colspan:r}:s;return e.push(i),e},[]);return e.push(n),e},[]):p&&(n.colHeaders=Array.from(e[0].children).reduce((e,t,n)=>(h&&0===n||e.push(t.innerHTML),e),[]))}g.length&&(n.fixedRowsTop=g.length);d.length&&(n.fixedRowsBottom=d.length);const E=[...g,...Array.from(a.tBodies).reduce((e,t)=>(e.push(...Array.from(t.rows)),e),[]),...d];m=E.length;const w=new Array(m);for(let e=0;e<m;e++)w[e]=new Array(c);const y=[],C=[];for(let e=0;e<m;e++){const t=E[e],n=Array.from(t.cells),r=n.length;for(let t=0;t<r;t++){const r=n[t],{nodeName:o,innerHTML:a,rowSpan:h,colSpan:u}=r,c=w[e].findIndex(e=>void 0===e);if("TD"===o){if(h>1||u>1){for(let t=e;t<e+h;t++)if(t<m)for(let e=c;e<c+u;e++)w[t][e]=null;const t=r.getAttribute("style");t&&t.includes("mso-ignore:colspan")||y.push({col:c,row:e,rowspan:h,colspan:u})}let t="";t=l&&/excel/gi.test(l.content)?a.replace(/[\r\n][\x20]{0,2}/g," ").replace(/<br(\s*|\/)>[\r\n]?[\x20]{0,3}/gim,"\r\n"):a.replace(/<br(\s*|\/)>[\r\n]?/gim,"\r\n"),w[e][c]=t.replace(i,e=>s[e])}else C.push(a)}}y.length&&(n.mergeCells=y);C.length&&(n.rowHeaders=C);w.length&&(n.data=w);return n},t.instanceToHTML=function(e){const t=e.hasColHeaders(),n=e.hasRowHeaders(),s=[t?-1:0,n?-1:0,e.countRows()-1,e.countCols()-1],i=e.getData(...s),o=i.length,a=o>0?i[0].length:0,l=["<table>","</table>"],h=t?["<thead>","</thead>"]:[],u=["<tbody>","</tbody>"],c=n?1:0,d=t?1:0;for(let s=0;s<o;s+=1){const o=t&&0===s,l=[];for(let t=0;t<a;t+=1){const a=!o&&n&&0===t;let h="";if(o)h=`<th>${e.getColHeader(t-c)}</th>`;else if(a)h=`<th>${e.getRowHeader(s-d)}</th>`;else{const n=i[s][t],{hidden:o,rowspan:a,colspan:l}=e.getCellMeta(s-d,t-c);if(!o){const e=[];if(a&&e.push(`rowspan="${a}"`),l&&e.push(`colspan="${l}"`),(0,r.isEmpty)(n))h=`<td ${e.join(" ")}></td>`;else{const t=n.toString().replace(/</g,"<").replace(/>/g,">").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20/gi," ").replace(/\t/gi,"	");h=`<td ${e.join(" ")}>${t}</td>`}}}l.push(h)}const g=["<tr>",...l,"</tr>"].join("");o?h.splice(1,0,g):u.splice(-1,0,g)}return l.splice(1,0,h.join(""),u.join("")),l.join("")},n(66182),n(38094),n(81396),n(81124),n(14618),n(39716);var r=n(54342);const s={" ":" ","&":"&","<":"<",">":">"},i=new RegExp(Object.keys(s).map(e=>`(${e})`).join("|"),"gi")},25703:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(81396),n(14618);var s=n(30152),i=n(54342),o=r(n(44775));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")}const h=String.fromCharCode(13),u=String.fromCharCode(34),c=String.fromCharCode(10),d=String.fromCharCode(61),g=String.fromCharCode(43),p=String.fromCharCode(45),f=String.fromCharCode(64),m=String.fromCharCode(9);var E=new WeakSet;class w extends o.default{constructor(){super(...arguments),a(this,E)}static get DEFAULT_OPTIONS(){return{mimeType:"text/csv",fileExtension:"csv",bom:!0,columnDelimiter:",",rowDelimiter:"\r\n",sanitizeValues:!1}}export(){const e=this.options,t=this.dataProvider.getData();let n=this.dataProvider.getColumnHeaders();const r=n.length>0,i=this.dataProvider.getRowHeaders(),o=i.length>0;let a=e.bom?String.fromCharCode(65279):"";return r&&(n=(0,s.arrayMap)(n,t=>this._escapeCell(t,{force:!0,sanitizeValue:e.sanitizeValues})),o&&(a+=e.columnDelimiter),a+=n.join(e.columnDelimiter),a+=e.rowDelimiter),(0,s.arrayEach)(t,(t,n)=>{n>0&&(a+=e.rowDelimiter),o&&(a+=this._escapeCell(i[n],{sanitizeValue:e.sanitizeValues}),a+=e.columnDelimiter);const r=t.map(t=>this._escapeCell(t,{sanitizeValue:e.sanitizeValues})).join(e.columnDelimiter);a+=r}),a}_escapeCell(e){let{force:t=!1,sanitizeValue:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,i.stringify)(e);return""===r||(n&&(t=!0),n instanceof RegExp?r=l(E,this,C).call(this,r,n):"function"==typeof n?r=n(r):n&&(r=l(E,this,y).call(this,r)),(t||r.indexOf(h)>=0||r.indexOf(u)>=0||r.indexOf(c)>=0||r.indexOf(this.options.columnDelimiter)>=0)&&(r=r.replace(new RegExp('"',"g"),'""'),r=`"${r}"`)),r}}function y(e){return e.startsWith(d)||e.startsWith(g)||e.startsWith(p)||e.startsWith(f)||e.startsWith(m)||e.startsWith(h)?`'${e}`:e}function C(e,t){return t.test(e)?`'${e}`:e}t.default=w},25776:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(66182);var s=r(n(81115)),i=n(72740);t.default=class{constructor(e){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"options",{}),this.hot=e}setOptions(e){this.options=e}getData(){const{startRow:e,startCol:t,endRow:n,endCol:r}=this._getDataRange(),s=this.options,o=[];return(0,i.rangeEach)(e,n,e=>{const n=[];!s.exportHiddenRows&&this._isHiddenRow(e)||((0,i.rangeEach)(t,r,t=>{!s.exportHiddenColumns&&this._isHiddenColumn(t)||n.push(this.hot.getDataAtCell(e,t))}),o.push(n))}),o}getRowHeaders(){const e=[];if(this.options.rowHeaders){const{startRow:t,endRow:n}=this._getDataRange(),r=this.hot.getRowHeader();(0,i.rangeEach)(t,n,t=>{!this.options.exportHiddenRows&&this._isHiddenRow(t)||e.push(r[t])})}return e}getColumnHeaders(){const e=[];if(this.options.columnHeaders){const{startCol:t,endCol:n}=this._getDataRange(),r=this.hot.getColHeader();(0,i.rangeEach)(t,n,t=>{!this.options.exportHiddenColumns&&this._isHiddenColumn(t)||e.push(r[t])})}return e}_getDataRange(){const e=this.hot.countCols()-1,t=this.hot.countRows()-1;let[n=0,r=0,s=t,i=e]=this.options.range;return n=Math.max(n,0),r=Math.max(r,0),s=Math.min(s,t),i=Math.min(i,e),{startRow:n,startCol:r,endRow:s,endCol:i}}_isHiddenRow(e){return this.hot.rowIndexMapper.isHidden(this.hot.toPhysicalRow(e))}_isHiddenColumn(e){return this.hot.columnIndexMapper.isHidden(this.hot.toPhysicalColumn(e))}}},25807:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,t.getPhraseFormatters=t.getAll=function(){return l()},t.registerPhraseFormatter=t.register=h;var s=n(59766),i=r(n(83891)),o=r(n(76162));const{register:a,getValues:l}=(0,s.staticRegister)("phraseFormatters");function h(e,t){a(e,t)}h("pluralize",i.default),h("substitute",o.default)},25816:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182),n(81396),n(81124),n(88633);var s=r(n(81115)),i=n(26071),o=n(51053),a=n(89090),l=n(30152),h=n(72740),u=n(54342),c=n(14414);class d{static get DESTINATION_RENDERER(){return 1}static get DESTINATION_CLIPBOARD_GENERATOR(){return 2}constructor(e,t,n){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"metaManager",void 0),(0,s.default)(this,"tableMeta",void 0),(0,s.default)(this,"dataSource",void 0),(0,s.default)(this,"duckSchema",void 0),(0,s.default)(this,"colToPropCache",void 0),(0,s.default)(this,"propToColCache",void 0),this.hot=e,this.metaManager=n,this.tableMeta=n.getTableMeta(),this.dataSource=t,this.refreshDuckSchema(),this.createMap()}createMap(){const e=this.getSchema();if(void 0===e)throw new Error("trying to create `columns` definition but you didn't provide `schema` nor `data`");const t=this.tableMeta.columns;let n;if(this.colToPropCache=[],this.propToColCache=new Map,t){let r=0,s=0,i=!1;if("function"==typeof t){const t=(0,a.deepObjectSize)(e);r=t>0?t:this.countFirstRowKeys(),i=!0}else{const e=this.tableMeta.maxCols;r=Math.min(e,t.length)}for(n=0;n<r;n++){const e=i?t(n):t[n];if((0,a.isObject)(e)){if(void 0!==e.data){const t=i?s:n;this.colToPropCache[t]=e.data,this.propToColCache.set(e.data,t)}s+=1}}}else this.recursiveDuckColumns(e)}countFirstRowKeys(){return(0,o.countFirstRowKeys)(this.dataSource)}recursiveDuckColumns(e,t,n){let r,s=t,i=n;return void 0===s&&(s=0,i=""),"object"!=typeof e||Array.isArray(e)||(0,a.objectEach)(e,(e,t)=>{null===e?(r=i+t,this.colToPropCache.push(r),this.propToColCache.set(r,s),s+=1):s=this.recursiveDuckColumns(e,s,`${t}.`)}),s}colToProp(e){if(!1===Number.isInteger(e))return e;const t=this.hot.toPhysicalColumn(e);return null===t?e:this.colToPropCache&&(0,u.isDefined)(this.colToPropCache[t])?this.colToPropCache[t]:t}propToCol(e){const t=this.propToColCache.get(e);if((0,u.isDefined)(t))return this.hot.toVisualColumn(t);const n=this.hot.toVisualColumn(e);return null===n?e:n}getSchema(){const e=this.tableMeta.dataSchema;return e?"function"==typeof e?e():e:this.duckSchema}createDuckSchema(){return this.dataSource&&this.dataSource[0]?(0,a.duckSchema)(this.dataSource[0]):{}}refreshDuckSchema(){this.duckSchema=this.createDuckSchema()}createRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,{source:n,mode:r="above"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const s=this.hot.countSourceRows();let i=s,o=0,l=e;("number"!=typeof l||l>=s)&&(l=s),l<this.hot.countRows()&&(i=this.hot.toPhysicalRow(l));if(!1===this.hot.runHooks("beforeCreateRow",l,t,n)||null===i)return{delta:0};const u=this.tableMeta.maxRows,c=this.getSchema().length,d=[];for(;o<t&&s+o<u;){let e=null;"array"===this.hot.dataType?this.tableMeta.dataSchema?e=(0,a.deepClone)(this.getSchema()):(e=[],(0,h.rangeEach)(c-1,()=>e.push(null))):"function"===this.hot.dataType?e=this.tableMeta.dataSchema(l+o):(e={},(0,a.deepExtend)(e,this.getSchema())),d.push(e),o+=1}this.hot.rowIndexMapper.insertIndexes(l,o),"below"===r&&(i=Math.min(i+1,s)),this.spliceData(i,0,d);const g=this.hot.toVisualRow(i);return this.hot.countSourceRows()===d.length&&this.hot.columnIndexMapper.initToLength(this.hot.getInitialColumnCount()),o>0&&(null==e?this.metaManager.createRow(null,o):"auto"!==n&&this.metaManager.createRow(i,t)),this.hot.runHooks("afterCreateRow",g,o,n),{delta:o,startPhysicalIndex:i}}createCol(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,{source:n,mode:r="start"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this.hot.isColumnModificationAllowed())throw new Error("Cannot create new column. When data source in an object, you can only have as much columns as defined in first data row, data schema or in the 'columns' setting.If you want to be able to add new columns, you have to use array datasource.");const s=this.dataSource,i=this.tableMeta.maxCols,o=this.hot.countSourceCols(),a=this.hot.countCols(),l=this.hot.countSourceRows(),h="number"==typeof e&&e<=o?e:a;if(!1===this.hot.runHooks("beforeCreateCol",h,t,n))return{delta:0};const u=h<a?this.hot.toPhysicalColumn(h):o,c="end"===r?Math.min(u+1,o):u;let d=0;for(let e=c;d<t&&a+d<i;e++){if("number"!=typeof h||h>=a+d)if(l>0)for(let e=0;e<l;e+=1)void 0===s[e]&&(s[e]=[]),s[e].push(null);else s.push([null]);else for(let t=0;t<l;t++)s[t].splice(e,0,null);d+=1}return d>0&&(null==e?this.metaManager.createColumn(null,d):"auto"!==n&&this.metaManager.createColumn(c,t)),this.hot.columnIndexMapper.insertIndexes(h,d,r),this.hot.runHooks("afterCreateCol",this.hot.toVisualColumn(c),d,n),this.refreshDuckSchema(),{delta:d,startPhysicalIndex:c}}removeRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0,r=Number.isInteger(e)?e:-t;const s=this.visualRowsToPhysical(r,t),i=this.hot.countSourceRows();r=(i+r)%i;if(!1===this.hot.runHooks("beforeRemoveRow",r,s.length,s,n))return!1;const o=s.length;if(this.filterData(r,o,s),r<this.hot.countRows()){this.hot.rowIndexMapper.removeIndexes(s);const e=(0,u.isDefined)(this.tableMeta.columns)||(0,u.isDefined)(this.tableMeta.dataSchema)||this.tableMeta.colHeaders;0!==this.hot.rowIndexMapper.getNotTrimmedIndexesLength()||e||this.hot.columnIndexMapper.setIndexesSequence([])}return s.slice(0).sort((e,t)=>t-e).forEach(e=>{this.metaManager.removeRow(e,1)}),this.hot.runHooks("afterRemoveRow",r,o,s,n),!0}removeCol(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0;if("object"===this.hot.dataType||this.tableMeta.columns)throw new Error("cannot remove column with object data source or columns option specified");let r="number"!=typeof e?-t:e;r=(this.hot.countCols()+r)%this.hot.countCols();const s=this.visualColumnsToPhysical(r,t),i=s.slice(0).sort((e,t)=>t-e);if(!1===this.hot.runHooks("beforeRemoveCol",r,t,s,n))return!1;let o=!0;const a=i.length,l=this.dataSource;for(let e=0;e<a;e++)o&&s[0]!==s[e]-e&&(o=!1);if(o)for(let e=0,n=this.hot.countSourceRows();e<n;e++)l[e].splice(s[0],t),0===e&&this.metaManager.removeColumn(s[0],t);else for(let e=0,t=this.hot.countSourceRows();e<t;e++)for(let t=0;t<a;t++)l[e].splice(i[t],1),0===e&&this.metaManager.removeColumn(i[t],1);return r<this.hot.countCols()&&(this.hot.columnIndexMapper.removeIndexes(s),this.tableMeta.rowHeaders||0!==this.hot.columnIndexMapper.getNotTrimmedIndexesLength()||this.hot.rowIndexMapper.setIndexesSequence([])),this.hot.runHooks("afterRemoveCol",r,t,s,n),this.refreshDuckSchema(),!0}spliceCol(e,t,n){const r=this.hot.getDataAtCol(e),s=r.slice(t,t+n),i=r.slice(t+n);for(var o=arguments.length,a=new Array(o>3?o-3:0),h=3;h<o;h++)a[h-3]=arguments[h];(0,l.extendArray)(a,i);let u=0;for(;u<n;)a.push(null),u+=1;return(0,l.to2dArray)(a),this.hot.populateFromArray(t,e,a,null,null,"spliceCol"),s}spliceRow(e,t,n){const r=this.hot.getSourceDataAtRow(e),s=r.slice(t,t+n),i=r.slice(t+n);for(var o=arguments.length,a=new Array(o>3?o-3:0),h=3;h<o;h++)a[h-3]=arguments[h];(0,l.extendArray)(a,i);let u=0;for(;u<n;)a.push(null),u+=1;return this.hot.populateFromArray(e,t,[a],null,null,"spliceRow"),s}spliceData(e,t,n){if(!1!==this.hot.runHooks("beforeDataSplice",e,t,n)){const t=[...this.dataSource.slice(0,e),...n,...this.dataSource.slice(e)];this.dataSource.length=0,t.forEach(e=>this.dataSource.push(e))}}filterData(e,t,n){let r=this.hot.runHooks("filterData",e,t,n);!1===Array.isArray(r)&&(r=this.dataSource.filter((e,t)=>-1===n.indexOf(t))),this.dataSource.length=0,Array.prototype.push.apply(this.dataSource,r)}get(e,t){const n=this.hot.toPhysicalRow(e);let r=this.dataSource[n];const s=this.hot.runHooks("modifyRowData",n);r=isNaN(s)?s:r;const{dataDotNotation:i}=this.hot.getSettings();let o=null;if(r&&r.hasOwnProperty&&(0,a.hasOwnProperty)(r,t))o=r[t];else if(i&&"string"==typeof t&&t.indexOf(".")>-1){let e=r;if(!e)return null;const n=t.split(".");for(let t=0,r=n.length;t<r;t++)if(e=e[n[t]],void 0===e)return null;o=e}else"function"==typeof t&&(o=t(this.dataSource.slice(n,n+1)[0]));const l=this.propToCol(t),u=this.hot.toPhysicalColumn(l);if((0,h.isUnsignedNumber)(n)&&(0,h.isUnsignedNumber)(u)&&(o=(0,c.getValueGetterValue)(o,this.metaManager.getCellMeta(n,u,{visualRow:e,visualColumn:l,skipMetaExtension:!0}))),this.hot.hasHook("modifyData")){const t=(0,a.createObjectPropListener)(o);this.hot.runHooks("modifyData",e,l,t,"get"),t.isTouched()&&(o=t.value)}return o}getCopyable(e,t){return this.hot.getCellMeta(e,this.propToCol(t)).copyable?this.get(e,t):""}set(e,t,n){const r=this.hot.toPhysicalRow(e);let s=n,i=this.dataSource[r];const o=this.hot.runHooks("modifyRowData",r);if(i=isNaN(o)?o:i,this.hot.hasHook("modifyData")){const n=(0,a.createObjectPropListener)(s);this.hot.runHooks("modifyData",e,this.propToCol(t),n,"set"),n.isTouched()&&(s=n.value)}const{dataDotNotation:l}=this.hot.getSettings();if(i&&i.hasOwnProperty&&(0,a.hasOwnProperty)(i,t))i[t]=s;else if(l&&"string"==typeof t&&t.indexOf(".")>-1){let e,n=i,r=0;const o=t.split(".");for(r=0,e=o.length-1;r<e;r++){if("__proto__"===o[r]||"constructor"===o[r]||"prototype"===o[r])return;void 0===n[o[r]]&&(n[o[r]]={}),n=n[o[r]]}n[o[r]]=s}else if("function"==typeof t)t(this.dataSource.slice(r,r+1)[0],s);else{if("__proto__"===t||"constructor"===t||"prototype"===t)return;i[t]=s}}visualRowsToPhysical(e,t){const n=this.hot.countSourceRows(),r=[];let s,i=(n+e)%n,o=t;for(;i<n&&o;)s=this.hot.toPhysicalRow(i),r.push(s),o-=1,i+=1;return r}visualColumnsToPhysical(e,t){const n=this.hot.countCols(),r=[];let s=(n+e)%n,i=t;for(;s<n&&i;){const e=this.hot.toPhysicalColumn(s);r.push(e),i-=1,s+=1}return r}clear(){for(let e=0;e<this.hot.countSourceRows();e++)for(let t=0;t<this.hot.countCols();t++)this.set(e,this.colToProp(t),"")}getLength(){const e=this.tableMeta.maxRows;let t;t=e<0||0===e?0:e||1/0;const n=this.hot.rowIndexMapper.getNotTrimmedIndexesLength();return Math.min(n,t)}getAll(){const e={row:0,col:0},t={row:Math.max(this.hot.countRows()-1,0),col:Math.max(this.hot.countCols()-1,0)};return e.row-t.row!==0||this.hot.countSourceRows()?this.getRange(e,t,d.DESTINATION_RENDERER):[]}countCachedColumns(){return this.colToPropCache.length}getRange(e,t,n){const r=[];let s,i,o;const a=this.tableMeta.maxRows,l=this.tableMeta.maxCols;if(0===a||0===l)return[];const h=n===d.DESTINATION_CLIPBOARD_GENERATOR?this.getCopyable:this.get,u=Math.min(Math.max(a-1,0),Math.max(e.row,t.row)),c=Math.min(Math.max(l-1,0),Math.max(e.col,t.col));for(s=Math.min(e.row,t.row);s<=u;s++){o=[];const n=s>=0?this.hot.toPhysicalRow(s):s;for(i=Math.min(e.col,t.col);i<=c&&null!==n;i++)o.push(h.call(this,s,this.colToProp(i)));null!==n&&r.push(o)}return r}getText(e,t){return(0,i.stringify)(this.getRange(e,t,d.DESTINATION_RENDERER))}getCopyableText(e,t){return(0,i.stringify)(this.getRange(e,t,d.DESTINATION_CLIPBOARD_GENERATOR))}destroy(){this.hot=null,this.metaManager=null,this.dataSource=null,this.duckSchema=null,this.colToPropCache.length=0,this.propToColCache.clear(),this.propToColCache=void 0}}t.default=d},26071:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(69786);t.parse=r.parse,t.stringify=r.stringify},26075:(e,t,n)=>{"use strict";var r=n(36405),s=n(57596),i=r("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},26175:(e,t,n)=>{"use strict";t.__esModule=!0,t.singleScrollStrategy=function(e){return t=>{const n=e.selection.getSelectionSource(),{row:s,col:i}=t,o=()=>{(0,r.scrollWindowToCell)(e.getCell(s,i,!0))};if(s<0&&i>=0)e.scrollViewportTo({col:i},o);else if(i<0&&s>=0)e.scrollViewportTo({row:s},o);else{if("mouse"===n&&(i===e.view.getLastPartiallyVisibleColumn()||s===e.view.getLastPartiallyVisibleRow()))return;e.scrollViewportTo({row:s,col:i},o)}}};var r=n(92634)},26239:(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(42010);const o=t.CONDITION_NAME="not_between";function a(e,t){return!(0,s.getCondition)(i.CONDITION_NAME,t)(e)}(0,s.registerCondition)(o,a,{name:r.FILTERS_CONDITIONS_NOT_BETWEEN,inputsCount:2,showOperators:!0})},26257:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(81115));t.Cursor=class{constructor(e,t){(0,s.default)(this,"top",void 0),(0,s.default)(this,"topRelative",void 0),(0,s.default)(this,"left",void 0),(0,s.default)(this,"leftRelative",void 0),(0,s.default)(this,"scrollTop",void 0),(0,s.default)(this,"scrollLeft",void 0),(0,s.default)(this,"cellHeight",void 0),(0,s.default)(this,"cellWidth",void 0);const n=t.scrollY,r=t.scrollX;let i,o,a,l,h,u;this.rootWindow=t,this.type=this.getSourceType(e),"literal"===this.type?(i=parseInt(e.top,10),a=parseInt(e.left,10),h=e.height||0,u=e.width||0,o=i,l=a,i+=n,a+=r):"event"===this.type&&(i=parseInt(e.pageY,10),a=parseInt(e.pageX,10),h=e.target.clientHeight,u=e.target.clientWidth,o=i-n,l=a-r),this.top=i,this.topRelative=o,this.left=a,this.leftRelative=l,this.scrollTop=n,this.scrollLeft=r,this.cellHeight=h,this.cellWidth=u}getSourceType(e){let t="literal";return e instanceof Event&&(t="event"),t}fitsAbove(e){return this.topRelative>=e.offsetHeight}fitsBelow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.rootWindow.innerHeight;return this.topRelative+e.offsetHeight<=t}fitsOnRight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.rootWindow.document.documentElement.clientWidth;return this.leftRelative+this.cellWidth+e.offsetWidth<=t}fitsOnLeft(e){return this.leftRelative>=e.offsetWidth}}},26286:(e,t,n)=>{"use strict";var r=n(31884),s=n(84990),i=n(96938),o=n(29521),a=n(82719),l=s.add,h=s.has,u=s.remove;e.exports=function(e){var t=r(this),n=o(e).getIterator(),s=i(t);return a(n,function(e){h(t,e)?u(s,e):l(s,e)}),s}},26360:(e,t,n)=>{"use strict";t.__esModule=!0,t.condition=o;var r=n(25039),s=n(44917);const i=t.CONDITION_NAME="by_value";function o(e,t){let[n]=t;return n(e.value)}(0,r.registerCondition)(i,o,{name:"By value",inputsCount:0,inputValuesDecorator(e){let[t]=e;return[(0,s.createArrayAssertion)(t)]},showOperators:!1})},26545:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182),n(81396),n(82101);var s=r(n(81115)),i=n(38942),o=n(30152),a=n(14298),l=n(22268),h=n(77768),u=n(51330),c=n(82886),d=n(16905),g=n(74210);function p(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}var f=new WeakSet;class m extends l.BaseComponent{constructor(e,t){super(e,{id:t.id,stateless:!1}),p(this,f),(0,s.default)(this,"name",""),this.name=t.name,this.buildOperatorsElement()}getMenuItemDescriptor(){return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:()=>this.isHidden(),renderer:(e,t)=>((0,i.addClass)(t.parentNode,"htFiltersMenuOperators"),(0,o.arrayEach)(this.elements,e=>t.appendChild(e.element)),t)}}buildOperatorsElement(){const e=[u.OPERATION_ID,c.OPERATION_ID];(0,o.arrayEach)(e,t=>{const n=new g.RadioInputUI(this.hot,{name:"operator",label:{htmlFor:t,textContent:(0,h.getOperationName)(t)},value:t,checked:t===e[0],id:t});n.addLocalHook("change",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")}(f,this,E).call(this,e)),this.elements.push(n)})}setChecked(e){if(this.elements.length<e)throw Error(a.toSingleLine`Radio button with index ${e} doesn't exist.`);(0,o.arrayEach)(this.elements,(t,n)=>{t.setChecked(n===e)})}getActiveOperationId(){const e=this.elements.find(e=>e instanceof g.RadioInputUI&&e.isChecked());return e?e.getValue():u.OPERATION_ID}getState(){return this.getActiveOperationId()}setState(e){this.reset(),e&&this.getActiveOperationId()!==e&&(0,o.arrayEach)(this.elements,t=>{t.setChecked(t.getValue()===e)})}updateState(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.OPERATION_ID,t=arguments.length>1?arguments[1]:void 0,n=e;n===d.OPERATION_ID&&(n=c.OPERATION_ID),this.state.setValueAtIndex(t,n)}reset(){this.setChecked(0)}}function E(e){this.setState(e.target.value)}t.OperatorsComponent=m},26569:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(81396),n(39691);var s=r(n(81115)),i=n(89090),o=n(30152);t.default=class{constructor(e){(0,s.default)(this,"plugin",void 0),(0,s.default)(this,"mergedCellsCollection",void 0),(0,s.default)(this,"currentFillData",null),this.plugin=e,this.mergedCellsCollection=this.plugin.mergedCellsCollection}getDirection(e,t){let n=null;return n=t[0]===e[0]&&t[1]===e[1]&&t[3]===e[3]?"down":t[2]===e[2]&&t[1]===e[1]&&t[3]===e[3]?"up":t[1]===e[1]&&t[2]===e[2]?"right":"left",n}snapDragArea(e,t,n,r){const s=t.slice(0),i=this.getAutofillSize(e,t,n),[o,a,l,h]=e,u=["up","down"].indexOf(n)>-1?l-o+1:h-a+1,c=i-Math.floor(i/u)*u,d=this.getFarthestCollection(e,t,n,r);if(d)if("down"===n){const e=d.row+d.rowspan-o-c;s[2]+e>=this.plugin.hot.countRows()?s[2]-=c:s[2]+=c?e:0}else if("right"===n){const e=d.col+d.colspan-a-c;s[3]+e>=this.plugin.hot.countCols()?s[3]-=c:s[3]+=c?e:0}else if("up"===n){const e=l-c-d.row+1;s[0]+e<0?s[0]+=c:s[0]-=c?e:0}else if("left"===n){const e=h-c-d.col+1;s[1]+e<0?s[1]+=c:s[1]-=c?e:0}return this.updateCurrentFillCache({baseArea:e,dragDirection:n,foundMergedCells:r,fillSize:i,dragArea:s,cycleLength:u}),s}updateCurrentFillCache(e){this.currentFillData||(this.currentFillData={}),(0,i.extend)(this.currentFillData,e)}getAutofillSize(e,t,n){const[r,s,i,o]=e,[a,l,h,u]=t;switch(n){case"up":return r-a;case"down":return h-i;case"left":return s-l;case"right":return u-o;default:return null}}getDragArea(e,t,n){const[r,s,i,o]=e,[a,l,h,u]=t;switch(n){case"up":return[a,l,r-1,o];case"down":{const e=this.mergedCellsCollection.get(h,o);return[i+1,s,h+(e?e.rowspan-1:0),o]}case"left":return[a,l,i,s-1];case"right":{const e=this.mergedCellsCollection.get(h,o);return[r,o+(e?e.colspan-1:0),h,u]}default:return null}}getFarthestCollection(e,t,n,r){const[s,i,a,l]=e,h=["up","down"].indexOf(n)>-1,u=h?a:l,c=h?s:i,d=this.getAutofillSize(e,t,n),g=h?a-s+1:l-i+1,p=d-Math.floor(d/g)*g;let f=null,m=null,E=null;switch(n){case"up":f="includesVertically",E=u-p+1;break;case"left":f="includesHorizontally",E=u-p+1;break;case"down":f="includesVertically",E=c+p-1;break;case"right":f="includesHorizontally",E=c+p-1}return(0,o.arrayEach)(r,e=>{e[f](E)&&e.isFarther(m,n)&&(m=e)}),m}recreateAfterDataPopulation(e){if(!this.currentFillData)return;const t=this.getRangeFromChanges(e),n=this.currentFillData.foundMergedCells,r=this.currentFillData.dragDirection,s=(e,n)=>{switch(r){case"up":return e.row-n>=t.from.row;case"down":return e.row+e.rowspan-1+n<=t.to.row;case"left":return e.col-n>=t.from.column;case"right":return e.col+e.colspan-1+n<=t.to.column;default:return null}};let i=0,o=null,a=1;do{for(let e=0;e<n.length;e+=1){if(o=n[e],i=a*this.currentFillData.cycleLength,s(o,i))switch(r){case"up":this.plugin.mergedCellsCollection.add({row:o.row-i,rowspan:o.rowspan,col:o.col,colspan:o.colspan},!0);break;case"down":this.plugin.mergedCellsCollection.add({row:o.row+i,rowspan:o.rowspan,col:o.col,colspan:o.colspan},!0);break;case"left":this.plugin.mergedCellsCollection.add({row:o.row,rowspan:o.rowspan,col:o.col-i,colspan:o.colspan},!0);break;case"right":this.plugin.mergedCellsCollection.add({row:o.row,rowspan:o.rowspan,col:o.col+i,colspan:o.colspan},!0)}e===n.length-1&&(a+=1)}}while(s(o,i));this.currentFillData=null,this.plugin.hot.render(),n.length>0&&this.plugin.ifChromeForceRepaint()}getRangeFromChanges(e){const t={min:null,max:null},n={min:null,max:null};return(0,o.arrayEach)(e,e=>{const r=e[0],s=this.plugin.hot.propToCol(e[1]);(null===t.min||r<t.min)&&(t.min=r),(null===t.max||r>t.max)&&(t.max=r),(null===n.min||s<n.min)&&(n.min=s),(null===n.max||s>n.max)&&(n.max=s)}),{from:{row:t.min,column:n.min},to:{row:t.max,column:n.max}}}dragAreaOverlapsCollections(e,t,n){const r=this.getDragArea(e,t,n),[s,i,o,a]=r,l=this.plugin.hot._createCellCoords(s,i),h=this.plugin.hot._createCellCoords(o,a),u=this.plugin.hot._createCellRange(l,l,h);if(0===this.mergedCellsCollection.getWithinRange(u,!0).length)return!1;const c=this.mergedCellsCollection.getWithinRange(u,!1);return 0===c.length||("up"===n||"down"===n?!c.every(e=>{let{colspan:t}=e;return t===u.getWidth()}):!c.every(e=>{let{rowspan:t}=e;return t===u.getHeight()}))}}},26571:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(81115)),i=n(57440),o=r(n(2824)),a=n(92164),l=n(87544);a.Hooks.getSingleton().register("persistentStateSave"),a.Hooks.getSingleton().register("persistentStateLoad"),a.Hooks.getSingleton().register("persistentStateReset");const h=t.PLUGIN_KEY="persistentState",u=t.PLUGIN_PRIORITY=0,c=new WeakSet;class d extends i.BasePlugin{constructor(){super(...arguments),(0,s.default)(this,"storage",void 0)}static get PLUGIN_KEY(){return h}static get PLUGIN_PRIORITY(){return u}isEnabled(){return!!this.hot.getSettings()[h]}enablePlugin(){this.enabled||(c.has(this.hot)||(c.add(this.hot),(0,l.deprecatedWarn)("The PersistentState plugin is deprecated and will be removed in version 17.0. Please update your settings to ensure compatibility with future versions.")),this.storage||(this.storage=new o.default(this.hot.rootContainer.id||this.hot.rootElement.id,this.hot.rootWindow)),this.addHook("persistentStateSave",(e,t)=>this.saveValue(e,t)),this.addHook("persistentStateLoad",(e,t)=>this.loadValue(e,t)),this.addHook("persistentStateReset",()=>this.resetValue()),super.enablePlugin())}disablePlugin(){this.storage=void 0,super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}loadValue(e,t){t.value=this.storage.loadValue(e)}saveValue(e,t){this.storage.saveValue(e,t)}resetValue(e){void 0===e?this.storage.resetAll():this.storage.reset(e)}destroy(){super.destroy()}}t.PersistentState=d},26710:(e,t,n)=>{"use strict";t.__esModule=!0,t.expandNode=function e(t){const{data:n,childs:o}=t;if(!n.isCollapsed||n.isHidden||n.origColspan<=1)return{rollbackModification:()=>{},affectedColumns:[],colspanCompensation:0};if((0,i.isNodeReflectsFirstChildColspan)(t))return e(o[0]);n.isCollapsed=!1;const a=o.slice(1),l=new Set;let h=0;if(a.length>0)(0,r.arrayEach)(a,e=>{e.replaceTreeWith(e.data.clonedTree),e.data.clonedTree=null;const t=e.data;h+=t.colspan,(0,i.traverseHiddenNodeColumnIndexes)(e,e=>{l.add(e)})});else{const{colspan:e,origColspan:t,columnIndex:r}=n;h=t-e;for(let e=1;e<t;e++)l.add(r+e)}return t.walkUp(e=>{const{data:t}=e;t.colspan+=h,t.colspan>=t.origColspan?(t.colspan=t.origColspan,t.isCollapsed=!1):(0,i.isNodeReflectsFirstChildColspan)(e)&&(t.isCollapsed=(0,i.getFirstChildProperty)(e,"isCollapsed"))}),{rollbackModification:()=>(0,s.collapseNode)(t),affectedColumns:Array.from(l),colspanCompensation:h}},n(78822),n(86192),n(80729),n(99888),n(12767),n(78644),n(97550);var r=n(30152),s=n(66597),i=n(40104)},26875:(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(20751),o=n(19682),a=n(89090);class l extends i.BaseAction{constructor(e){let{index:t,data:n,fixedRowsBottom:r,fixedRowsTop:i,rowIndexesSequence:o,removedCellMetas:a}=e;super("remove_row"),(0,s.default)(this,"index",void 0),(0,s.default)(this,"data",void 0),(0,s.default)(this,"fixedRowsBottom",void 0),(0,s.default)(this,"fixedRowsTop",void 0),(0,s.default)(this,"rowIndexesSequence",void 0),(0,s.default)(this,"removedCellMetas",void 0),this.index=t,this.data=n,this.fixedRowsBottom=r,this.fixedRowsTop=i,this.rowIndexesSequence=o,this.removedCellMetas=a}static startRegisteringEvents(e,t){e.addHook("beforeRemoveRow",(n,r,s,i)=>{t.done(()=>{const t=e.toPhysicalRow(n),s=t+r-1,i=(0,a.deepClone)(e.getSourceData(t,0,t+r-1,e.countSourceCols()-1));return new l({index:t,data:i,fixedRowsBottom:e.getSettings().fixedRowsBottom,fixedRowsTop:e.getSettings().fixedRowsTop,rowIndexesSequence:e.rowIndexMapper.getIndexesSequence(),removedCellMetas:(0,o.getCellMetas)(e,t,s,0,e.countCols()-1)})},i)})}undo(e,t){const n=e.getSettings(),r=[];n.fixedRowsBottom=this.fixedRowsBottom,n.fixedRowsTop=this.fixedRowsTop,this.data.forEach((e,t)=>{Object.keys(e).forEach(n=>{const s=parseInt(n,10);r.push([this.index+t,isNaN(s)?n:s,e[n]])})}),e.rowIndexMapper.setIndexesSequence(this.rowIndexesSequence),e.alter("insert_row_above",e.toVisualRow(this.index),this.data.length,"UndoRedo.undo"),e.rowIndexMapper.setIndexesSequence(this.rowIndexesSequence),this.removedCellMetas.forEach(t=>{let[n,r,s]=t;e.setCellMetaObject(n,r,s)}),e.addHookOnce("afterViewRender",t),e.setSourceDataAtCell(r,null,null,"UndoRedo.undo")}redo(e,t){e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",e.toVisualRow(this.index),this.data.length,"UndoRedo.redo")}}t.RemoveRowAction=l},26955:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionDownByViewportHeight",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===e.countRows()-1?i=1:s+i>e.countRows()&&(i=e.countRows()-s-1),t.markSource("keyboard"),t.transformStart(i,0),t.markEndSource(),e.getSelectedRangeActive().highlight.row<0&&e.scrollViewportTo({row:0})}}},27317:()=>{},27328:(e,t,n)=>{"use strict";t.__esModule=!0,t.assert=function(e,t){if(!e())throw new Error(`Assertion failed: ${t}`)},t.columnFactory=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];function n(){}(0,r.inherit)(n,e);for(let e=0;e<t.length;e++)n.prototype[t[e]]=void 0;return n},t.extendByMetaType=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;const i="string"==typeof t.type?(0,s.getCellType)(t.type):t.type;e._automaticallyAssignedMetaProps&&(0,r.objectEach)(t,(t,n)=>{e._automaticallyAssignedMetaProps.delete(n)});if(!(0,r.isObject)(i))return;n!==e||e._automaticallyAssignedMetaProps||(e._automaticallyAssignedMetaProps=new Set);const o={};(0,r.objectEach)(i,(t,s)=>{var i;(function(e,t){var n;if("CELL_TYPE"===e)return!1;return(null===(n=t._automaticallyAssignedMetaProps)||void 0===n?void 0:n.has(e))||!(0,r.hasOwnProperty)(t,e)})(s,n)&&(o[s]=t,null===(i=e._automaticallyAssignedMetaProps)||void 0===i||i.add(s))}),(0,r.extend)(e,o)},t.isNullish=function(e){return null==e},n(22588),n(78822),n(86192),n(80729),n(99888),n(12767),n(78644),n(97550);var r=n(89090),s=n(17822)},27464:(e,t,n)=>{"use strict";t.__esModule=!0,t.hideColumn=function(e,t){if(!Number.isInteger(t))throw new Error("The passed gridColumnIndex argument has invalid type.");if(e.childs.length>0)throw new Error(r.toSingleLine`The passed node is not the last node on the tree. Only for\x20
|
|
239
239
|
the last node, the hide column modification can be applied.`);const{crossHiddenColumns:n}=e.data;if(n.includes(t))return;let s=!1;if(e.walkUp(e=>{const{data:{collapsible:t}}=e;if(t)return s=!0,!1}),s)return;e.walkUp(e=>{const{data:n}=e;n.crossHiddenColumns.push(t),n.colspan>1?n.colspan-=1:n.isHidden=!0})},n(22588),n(66182);var r=n(14298)},27538:(e,t,n)=>{"use strict";var r=n(19596),s=n(76887).f,i=n(39303),o=n(79212),a=n(22381),l=n(93904),h=n(20912);e.exports=function(e,t){var n,u,c,d,g,p=e.target,f=e.global,m=e.stat;if(n=f?r:m?r[p]||a(p,{}):r[p]&&r[p].prototype)for(u in t){if(d=t[u],c=e.dontCallGetSet?(g=s(n,u))&&g.value:n[u],!h(f?u:p+(m?".":"#")+u,e.forced)&&void 0!==c){if(typeof d==typeof c)continue;l(d,c)}(e.sham||c&&c.sham)&&i(d,"sham",!0),o(n,u,d,e)}}},27577:()=>{},27872:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(59135);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.HiddenColumns=r.HiddenColumns},28078:(e,t)=>{"use strict";t.__esModule=!0,t.hasValidParameter=function(e){return e===r},t.isRootInstance=function(e){return n.has(e)},t.registerAsRootInstance=function(e){n.set(e,!0)};const n=t.holder=new WeakMap,r=t.rootInstanceSymbol=Symbol("rootInstance")},28122:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(22155),s=n(87544),i=n(14298),o=n(38942);let a=!1;class l extends r.BaseRenderer{constructor(e){super(null,e)}adjust(){const{columnsToRender:e,rowHeadersCount:t}=this.table,n=e+t;for(;this.renderedNodes<n;)this.rootNode.appendChild(this.table.rootDocument.createElement("col")),this.renderedNodes+=1;for(;this.renderedNodes>n;)this.rootNode.removeChild(this.rootNode.lastChild),this.renderedNodes-=1}render(){this.adjust();const{columnsToRender:e,rowHeadersCount:t}=this.table;!a&&e>1e3&&(a=!0,(0,s.warn)(i.toSingleLine`Performance tip: Handsontable rendered more than 1000 visible columns.\x20
|
|
240
240
|
Consider limiting the number of rendered columns by specifying the table width and/or\x20
|
|
241
|
-
turning off the "renderAllColumns" option.`));for(let e=0;e<t;e++){const t=this.table.renderedColumnToSource(e),n=this.table.columnUtils.getHeaderWidth(t);this.rootNode.childNodes[e].style.width=`${n}px`}for(let n=0;n<e;n++){const e=this.table.renderedColumnToSource(n),r=this.table.columnUtils.getWidth(e);this.rootNode.childNodes[n+t].style.width=`${r}px`}const n=this.rootNode.firstChild;n&&(0,o.addClass)(n,"rowHeader")}}t.ColGroupRenderer=l},28138:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(81115)),i=n(89090),o=n(27328),a=r(n(85187));const l=["data","width"];t.default=class{constructor(e){(0,s.default)(this,"globalMeta",void 0),(0,s.default)(this,"metas",new a.default(()=>this._createMeta())),this.globalMeta=e,this.metas=new a.default(()=>this._createMeta())}updateMeta(e,t){const n=this.getMeta(e);(0,i.extend)(n,t),(0,o.extendByMetaType)(n,t)}createColumn(e,t){this.metas.insert(e,t)}removeColumn(e,t){this.metas.remove(e,t)}getMeta(e){return this.metas.obtain(e)}getMetaConstructor(e){return this.metas.obtain(e).constructor}clearCache(){this.metas.clear()}_createMeta(){return(0,o.columnFactory)(this.globalMeta.getMetaConstructor(),l).prototype}}},28235:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(94023);t.EDITOR_STATE=r.EDITOR_STATE,t.EDITOR_TYPE=r.EDITOR_TYPE,t.BaseEditor=r.BaseEditor},28242:(e,t,n)=>{"use strict";t.__esModule=!0,t.createMenuFocusController=function(e,t){let n,l=-1;const h=(0,r.createFocusNavigator)(t),u=e=>()=>{n.isOpened()&&n.getKeyboardShortcutsCtrl().listen(a),h.setCurrentPage(t.indexOf(e))};function c(e){const r=n.getKeyboardShortcutsCtrl(),u=e.getKeyboardShortcutsCtrl();h.clear(),u.addCustomShortcuts([{keys:[["Tab"],["Shift","Tab"]],forwardToContext:r.getContext(a),callback:()=>{e.isSubMenu()&&e.close(),r.listen(a)}}]),e.isSubMenu()||r.addCustomShortcuts([{keys:[["Tab"],["Shift","Tab"]],callback:e=>{const t=n.getNavigator();t.getCurrentPage()>-1&&(l=t.getCurrentPage()),t.clear(),e.shiftKey?h.toPreviousItem():h.toNextItem()}},{keys:[["Escape"]],callback:()=>{n.close()}},{keys:[["Enter"],["Space"]],preventDefault:!1,callback:e=>{const n=t[h.getCurrentPage()];n instanceof s.SelectUI&&(n.openOptions(),e.preventDefault()),n instanceof o.LinkUI&&(n.activate(),e.preventDefault()),n instanceof i.BaseUI||e.preventDefault()}}],a)}function d(e){e.addLocalHook("afterSelectionChange",e=>{e.key.startsWith("filter_")||h.clear()}),e.addLocalHook("afterSubmenuOpen",c),e.addLocalHook("afterOpen",c),n=e}return t.forEach(e=>{e instanceof i.BaseUI&&(e.addLocalHook("click",u(e)),e.addLocalHook("focus",u(e)),e.addLocalHook("afterClose",u(e)))}),d(e),{...h,listen:function(){n.focus(),n.getKeyboardShortcutsCtrl().listen(a)},setMenu:d,getMenu:function(){return n},getLastMenuPage:function(){return l}}},n(81396),n(88633);var r=n(43337),s=n(6951),i=n(31591),o=n(49039);const a="filters"},28382:()=>{},28465:()=>{},28585:(e,t,n)=>{"use strict";t.__esModule=!0,t.getPlugin=c,t.getPluginsNames=function(){return[...l.getItems(),...h.getItems()]},t.hasPlugin=function(e){return!!c(e)},t.registerPlugin=function(e,t,n){[e,t,n]=function(e,t,n){"function"==typeof e&&(e=(t=e).PLUGIN_KEY,n=t.PLUGIN_PRIORITY);return[e,t,n]}(e,t,n),void 0===c(e)&&function(e,t,n){const s=(0,r.toUpperCaseFirst)(e);if(u.hasItem(s))throw new Error(a(s));void 0===n?h.addItem(s):l.addItem(n,s);u.addItem(s,t)}(e,t,n)},n(22588);var r=n(16656),s=n(4778),i=n(66419),o=n(94045);const a=e=>`There is already registered "${e}" plugin.`,l=(0,s.createPriorityMap)({errorPriorityExists:e=>`There is already registered plugin on priority "${e}".`,errorPriorityNaN:e=>`The priority "${e}" is not a number.`}),h=(0,o.createUniqueSet)({errorItemExists:a}),u=(0,i.createUniqueMap)({errorIdExists:a});function c(e){const t=(0,r.toUpperCaseFirst)(e);return u.getItem(t)}},28601:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(81115)),i=n(38942),o=r(n(87901)),a=n(80484),l=n(21985);class h extends a.Overlay{constructor(e,t,n,r,i,o){super(e,t,l.CLONE_TOP_INLINE_START_CORNER,n,r),(0,s.default)(this,"topOverlay",void 0),(0,s.default)(this,"inlineStartOverlay",void 0),this.topOverlay=i,this.inlineStartOverlay=o}createTable(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new o.default(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderTopOverlay")&&this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}resetFixedPosition(){if(this.updateTrimmingContainer(),!this.wot.wtTable.holder.parentNode)return!1;const e=this.clone.wtTable.holder.parentNode;if(this.trimmingContainer===this.domBindings.rootWindow){const t=this.inlineStartOverlay.getOverlayOffset()*(this.isRtl()?-1:1),n=this.topOverlay.getOverlayOffset();(0,i.setOverlayPosition)(e,`${t}px`,`${n}px`)}else(0,i.resetCssTransform)(e);let t=(0,i.outerHeight)(this.clone.wtTable.TABLE);const n=(0,i.outerWidth)(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(t=0),e.style.height=`${t}px`,e.style.width=`${n}px`,!1}}t.TopInlineStartCornerOverlay=h},28636:()=>{},28749:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182),n(81396),n(81124);var s=r(n(81115)),i=n(38942),o=n(68834),a=n(30152),l=n(21510),h=n(89090),u=m(n(20217)),c=n(22268),d=m(n(76897)),g=n(54459),p=n(6951),f=n(25039);function m(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(m=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)}function E(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function w(e,t,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 y=new WeakSet;class C extends c.BaseComponent{constructor(e,t){super(e,{id:t.id,stateless:!1}),E(this,y),(0,s.default)(this,"name",""),(0,s.default)(this,"addSeparator",!1),this.name=t.name,this.addSeparator=t.addSeparator,this.elements.push(new p.SelectUI(this.hot,{menuContainer:t.menuContainer})),this.elements.push(new g.InputUI(this.hot,{placeholder:u.FILTERS_BUTTONS_PLACEHOLDER_VALUE})),this.elements.push(new g.InputUI(this.hot,{placeholder:u.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE})),this.registerHooks()}registerHooks(){this.getSelectElement().addLocalHook("select",e=>w(y,this,v).call(this,e)).addLocalHook("afterClose",()=>this.runLocalHooks("afterClose")).addLocalHook("tabKeydown",e=>this.runLocalHooks("selectTabKeydown",e)),(0,a.arrayEach)(this.getInputElements(),e=>{e.addLocalHook("keydown",e=>w(y,this,S).call(this,e))})}setState(e){if(this.reset(),!e)return;const t=(0,h.clone)(e.command);t.name.startsWith(u.FILTERS_CONDITIONS_NAMESPACE)&&(t.name=this.hot.getTranslatedPhrase(t.name)),this.getSelectElement().setValue(t),(0,a.arrayEach)(e.args,(e,n)=>{if(n>t.inputsCount-1)return!1;const r=this.getInputElement(n);r.setValue(e),r[t.inputsCount>n?"show":"hide"](),n||this.hot._registerTimeout(()=>r.focus(),10)})}getState(){const e=this.getSelectElement().getValue()||(0,f.getConditionDescriptor)(d.CONDITION_NONE),t=[];return(0,a.arrayEach)(this.getInputElements(),(n,r)=>{e.inputsCount>r&&t.push(n.getValue())}),{command:e,args:t}}updateState(e,t){const n=e?(0,f.getConditionDescriptor)(e.name):(0,f.getConditionDescriptor)(d.CONDITION_NONE);this.state.setValueAtIndex(t,{command:n,args:e?e.args:[]}),e||(0,a.arrayEach)(this.getInputElements(),e=>e.setValue(null))}getSelectElement(){return this.elements.filter(e=>e instanceof p.SelectUI)[0]}getInputElement(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.getInputElements()[e]}getInputElements(){return this.elements.filter(e=>e instanceof g.InputUI)}getMenuItemDescriptor(){return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:()=>this.isHidden(),renderer:(e,t,n,r,s,o)=>{(0,i.addClass)(t.parentNode,"htFiltersMenuCondition"),this.addSeparator&&(0,i.addClass)(t.parentNode,"border");const l=this.hot.rootDocument.createElement("div");return(0,i.addClass)(l,"htFiltersMenuLabel"),l.textContent=o,t.appendChild(l),t.parentElement.hasAttribute("ghost-table")||(0,a.arrayEach)(this.elements,e=>t.appendChild(e.element)),t}}}reset(){const e=this.hot.getPlugin("filters").getSelectedColumn();let t=[(0,f.getConditionDescriptor)(d.CONDITION_NONE)];if(null!==e){const{visualIndex:n}=e;t=(0,d.default)(this.hot.getDataType(0,n,this.hot.countRows(),n))}(0,a.arrayEach)(this.getInputElements(),e=>e.hide()),this.getSelectElement().setItems(t),super.reset(),this.getSelectElement().setValue(t[0])}}function v(e){(0,a.arrayEach)(this.getInputElements(),(t,n)=>{t[e.inputsCount>n?"show":"hide"](),0===n&&this.hot._registerTimeout(()=>t.focus(),10)}),this.runLocalHooks("change",e)}function S(e){(0,l.isKey)(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),(0,o.stopImmediatePropagation)(e))}t.ConditionComponent=C},28804:(e,t,n)=>{"use strict";var r=n(52576),s=n(20155);e.exports=Object.keys||function(e){return r(e,s)}},28861:(e,t,n)=>{"use strict";t.__esModule=!0,t.handleMouseEvent=function(e,t){a.get(e.type)({isShiftKey:e.shiftKey,isLeftClick:(0,r.isLeftClick)(e)||"touchstart"===e.type,isRightClick:(0,r.isRightClick)(e),...t})},t.mouseDown=s,t.mouseOver=i,t.mouseUp=o,n(81396),n(14618);var r=n(68834);function s(e){let{isShiftKey:t,isLeftClick:n,isRightClick:r,coords:s,selection:i,controller:o,cellCoordsFactory:a}=e;const l=i.isSelected()?i.getSelectedRange().current():null,h=i.isSelectedByCorner(),u=i.isSelectedByRowHeader();if(i.markSource("mouse"),t&&l)s.row>=0&&s.col>=0&&!o.cell?i.setRangeEnd(s):(h||u)&&s.row>=0&&s.col>=0&&!o.cell?i.setRangeEnd(a(s.row,s.col)):h&&s.row<0&&!o.column?i.setRangeEnd(a(l.to.row,s.col)):u&&s.col<0&&!o.row?i.setRangeEnd(a(s.row,l.to.col)):(!h&&!u&&s.col<0||h&&s.col<0)&&!o.row?i.selectRows(Math.max(l.from.row,0),s.row,s.col):(!h&&!u&&s.row<0||u&&s.row<0)&&!o.column&&i.selectColumns(Math.max(l.from.col,0),s.col,s.row);else{const e=!i.inInSelection(s),t=n||r&&e;s.row<0&&s.col>=0&&!o.column?t&&i.selectColumns(s.col,s.col,s.row):s.col<0&&s.row>=0&&!o.row?t&&i.selectRows(s.row,s.row,s.col):s.col>=0&&s.row>=0&&!o.cell?t&&i.setRangeStart(s):s.col<0&&s.row<0&&i.selectAll(!0,!0,{disableHeadersHighlight:!0,focusPosition:{row:0,col:0}})}i.markEndSource()}function i(e){let{isLeftClick:t,coords:n,selection:r,controller:s,cellCoordsFactory:i}=e;if(!t)return;const o=r.isSelectedByRowHeader(),a=r.isSelectedByColumnHeader(),l=r.tableProps.countCols(),h=r.tableProps.countRows();r.markSource("mouse"),a&&!s.column?r.setRangeEnd(i(h-1,n.col)):o&&!s.row?r.setRangeEnd(i(n.row,l-1)):s.cell||r.setRangeEnd(n),r.markEndSource()}function o(e){let{isLeftClick:t,selection:n,cellRangeMapper:r}=e;if(!t||"multiple"!==n.settings.selectionMode)return;const s=n.getSelectedRange(),i=s.clone().map(e=>r.toRenderable(e)),o=i.current();if(i.size()>1&&!o.isHeader()&&!n.isMultiple(o)){const e=i.findAll(o);e.length===i.size()?(s.pop(),n.refresh()):e.length>1&&(s.removeLayers(e.map(e=>{let{layer:t}=e;return t})),n.refresh())}}const a=new Map([["touchstart",s],["touchend",o],["mousedown",s],["mouseover",i],["mouseup",o]])},28874:(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(30217);const o=t.CONDITION_NAME="not_contains";function a(e,t){return!(0,s.getCondition)(i.CONDITION_NAME,t)(e)}(0,s.registerCondition)(o,a,{name:r.FILTERS_CONDITIONS_NOT_CONTAIN,inputsCount:1,showOperators:!0})},28924:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,t.getRegisteredMapsCounter=function(){return l},n(81396),n(88633);var s=r(n(81115)),i=n(54342),o=n(89090),a=r(n(24285));let l=0;class h{constructor(){(0,s.default)(this,"collection",new Map)}register(e,t){!1===this.collection.has(e)&&(this.collection.set(e,t),t.addLocalHook("change",()=>this.runLocalHooks("change",t)),l+=1)}unregister(e){const t=this.collection.get(e);(0,i.isDefined)(t)&&(t.destroy(),this.collection.delete(e),this.runLocalHooks("change",t),l-=1)}unregisterAll(){this.collection.forEach((e,t)=>this.unregister(t)),this.collection.clear()}get(e){return(0,i.isUndefined)(e)?Array.from(this.collection.values()):this.collection.get(e)}getLength(){return this.collection.size}removeFromEvery(e){this.collection.forEach(t=>{t.remove(e)})}insertToEvery(e,t){this.collection.forEach(n=>{n.insert(e,t)})}initEvery(e){this.collection.forEach(t=>{t.init(e)})}}t.MapCollection=h,(0,o.mixin)(h,a.default)},28949:()=>{},29160:()=>{},29194:(e,t,n)=>{"use strict";t.__esModule=!0,n(81396),n(14618);const r=new Map([[" ","space"],["spacebar","space"],["scroll","scrolllock"],["del","delete"],["esc","escape"],["medianexttrack","mediatracknext"],["mediaprevioustrack","mediatrackprevious"],["volumeup","audiovolumeup"],["volumedown","audiovolumedown"],["volumemute","audiovolumemute"],["multiply","*"],["add","+"],["divide","/"],["subtract","-"],["left","arrowleft"],["right","arrowright"],["up","arrowup"],["down","arrowdown"]]);t.normalizeKeys=e=>e.map(e=>{const t=e.toLowerCase();return r.has(t)?r.get(t):t}).sort().join("+");t.getKeysList=e=>e.split("+");const s=new Map([[96,"numpad0"],[97,"numpad1"],[98,"numpad2"],[99,"numpad3"],[100,"numpad4"],[101,"numpad5"],[102,"numpad6"],[103,"numpad7"],[104,"numpad8"],[105,"numpad9"],[106,"multiply"],[107,"add"],[108,"decimal"],[109,"subtract"],[110,"decimal"],[111,"divide"],[112,"f1"],[113,"f2"],[114,"f3"],[115,"f4"],[116,"f5"],[117,"f6"],[118,"f7"],[119,"f8"],[120,"f9"],[121,"f10"],[122,"f11"],[123,"f12"],[186,"semicolon"],[187,"equal"],[188,"comma"],[189,"minus"],[190,"period"],[191,"slash"],[192,"backquote"],[219,"bracketleft"],[220,"backslash"],[221,"bracketright"],[222,"quote"]]);t.normalizeEventKey=e=>{let{which:t,key:n}=e;if(s.has(t))return s.get(t);const r=String.fromCharCode(t).toLowerCase();return/^[a-z0-9]$/.test(r)?r:n.toLowerCase()}},29224:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(81396),n(81124);var s=r(n(81115)),i=n(20751);class o extends i.BaseAction{constructor(e){let{conditionsStack:t,previousConditionsStack:n}=e;super("filter"),(0,s.default)(this,"conditionsStack",void 0),(0,s.default)(this,"previousConditionsStack",void 0),this.conditionsStack=t,this.previousConditionsStack=n}static startRegisteringEvents(e,t){e.addHook("beforeFilter",(e,n)=>{t.done(()=>new o({conditionsStack:e,previousConditionsStack:n}))})}undo(e,t){const n=e.getPlugin("filters");e.addHookOnce("afterViewRender",t),n.importConditions(this.previousConditionsStack),n.filter()}redo(e,t){const n=e.getPlugin("filters");e.addHookOnce("afterViewRender",t),n.importConditions(this.conditionsStack),n.filter()}}t.FiltersAction=o},29521:(e,t,n)=>{"use strict";var r=n(49510),s=n(16539),i=n(19617),o=n(11127),a=n(83203),l="Invalid size",h=RangeError,u=TypeError,c=Math.max,d=function(e,t){this.set=e,this.size=c(t,0),this.has=r(e.has),this.keys=r(e.keys)};d.prototype={getIterator:function(){return a(s(i(this.keys,this.set)))},includes:function(e){return i(this.has,this.set,e)}},e.exports=function(e){s(e);var t=+e.size;if(t!=t)throw new u(l);var n=o(t);if(n<0)throw new h(l);return new d(e,n)}},29705:(e,t)=>{"use strict";t.__esModule=!0;t.REGISTERED_HOOKS=["afterCellMetaReset","afterChange","afterContextMenuDefaultOptions","beforeContextMenuSetItems","afterDropdownMenuDefaultOptions","beforeDropdownMenuSetItems","afterContextMenuHide","beforeContextMenuShow","afterContextMenuShow","afterCopyLimit","beforeCreateCol","afterColumnSequenceCacheUpdate","afterColumnSequenceChange","afterCreateCol","beforeCreateRow","afterCreateRow","afterDeselect","afterDestroy","afterDocumentKeyDown","afterDrawSelection","beforeRemoveCellClassNames","beforeCompositionStart","afterGetCellMeta","afterGetColHeader","afterGetRowHeader","afterInit","afterLoadData","afterUpdateData","afterMomentumScroll","afterOnCellCornerMouseDown","afterOnCellCornerDblClick","afterOnCellMouseDown","afterOnCellMouseUp","afterOnCellContextMenu","afterOnCellMouseOver","afterOnCellMouseOut","afterRemoveCol","afterRemoveRow","beforeRenderer","afterRenderer","afterRowSequenceCacheUpdate","afterRowSequenceChange","beforeViewportScrollVertically","beforeViewportScrollHorizontally","beforeViewportScroll","afterScrollHorizontally","afterScrollVertically","afterScroll","afterSelection","afterSelectionByProp","afterSelectionEnd","afterSelectionEndByProp","afterSelectionFocusSet","beforeSelectColumns","afterSelectColumns","beforeSelectRows","afterSelectRows","beforeSelectAll","afterSelectAll","afterSetCellMeta","afterRemoveCellMeta","afterSetDataAtCell","afterSetDataAtRowProp","afterSetSourceDataAtCell","afterSetTheme","afterUpdateSettings","afterValidate","beforeLanguageChange","afterLanguageChange","beforeAutofill","afterAutofill","beforeCellAlignment","beforeChange","beforeChangeRender","beforeHeightChange","beforeWidthChange","beforeDrawBorders","beforeGetCellMeta","beforeRemoveCellMeta","beforeInit","beforeInitWalkontable","beforeLoadData","beforeUpdateData","beforeKeyDown","beforeOnCellMouseDown","beforeOnCellMouseUp","beforeOnCellContextMenu","beforeOnCellMouseOver","beforeOnCellMouseOut","beforeRemoveCol","beforeRemoveRow","beforeViewRender","afterViewRender","beforeRender","afterRender","beforeRowWrap","beforeColumnWrap","beforeSetCellMeta","beforeSelectionFocusSet","beforeSetRangeStartOnly","beforeSetRangeStart","beforeSetRangeEnd","beforeSelectionHighlightSet","beforeTouchScroll","beforeValidate","beforeValueRender","construct","init","modifyColHeader","modifyColWidth","modifyFiltersMultiSelectValue","modifyFocusedElement","modifyRowHeader","modifyRowHeight","modifyRowHeightByOverlayName","modifyData","modifySourceData","modifyRowData","modifyGetCellCoords","modifyGetCoordsElement","modifyFocusOnTabNavigation","beforeHighlightingRowHeader","beforeHighlightingColumnHeader","persistentStateLoad","persistentStateReset","persistentStateSave","beforeColumnSort","afterColumnSort","modifyAutofillRange","modifyCopyableRange","beforeCut","afterCut","beforeCopy","afterCopy","beforePaste","afterPaste","beforeColumnFreeze","afterColumnFreeze","beforeColumnMove","afterColumnMove","beforeColumnUnfreeze","afterColumnUnfreeze","beforeRowMove","afterRowMove","beforeColumnResize","afterColumnResize","beforeRowResize","afterRowResize","afterGetColumnHeaderRenderers","afterGetRowHeaderRenderers","beforeStretchingColumnWidth","beforeFilter","afterFilter","beforePageChange","afterPageChange","beforePageSizeChange","afterPageSizeChange","afterPageSizeVisibilityChange","afterPageCounterVisibilityChange","afterPageNavigationVisibilityChange","afterFormulasValuesUpdate","afterNamedExpressionAdded","afterNamedExpressionRemoved","afterSheetAdded","afterSheetRenamed","afterSheetRemoved","modifyColumnHeaderHeight","modifyColumnHeaderValue","beforeUndo","beforeUndoStackChange","afterUndo","afterUndoStackChange","beforeRedo","beforeRedoStackChange","afterRedo","afterRedoStackChange","modifyRowHeaderWidth","modifyTransformFocus","modifyTransformStart","modifyTransformEnd","afterModifyTransformFocus","afterModifyTransformStart","afterModifyTransformEnd","afterViewportRowCalculatorOverride","afterViewportColumnCalculatorOverride","afterPluginsInitialized","beforeHideRows","afterHideRows","beforeUnhideRows","afterUnhideRows","beforeHideColumns","afterHideColumns","beforeUnhideColumns","afterUnhideColumns","beforeTrimRow","afterTrimRow","beforeUntrimRow","afterUntrimRow","beforeDropdownMenuShow","afterDropdownMenuShow","afterDropdownMenuHide","beforeAddChild","afterAddChild","beforeDetachChild","afterDetachChild","beforeBeginEditing","afterDialogHide","afterDialogShow","beforeDialogHide","beforeDialogShow","dialogFocusPreviousElement","dialogFocusNextElement","afterDialogFocus","beforeLoadingShow","afterLoadingShow","beforeLoadingHide","afterLoadingHide","beforeEmptyDataStateShow","afterEmptyDataStateShow","beforeEmptyDataStateHide","afterEmptyDataStateHide","afterBeginEditing","beforeMergeCells","afterMergeCells","beforeUnmergeCells","afterUnmergeCells","afterListen","afterUnlisten","afterRefreshDimensions","beforeRefreshDimensions","beforeColumnCollapse","afterColumnCollapse","beforeColumnExpand","afterColumnExpand","modifyAutoColumnSizeSeed"],t.REMOVED_HOOKS=new Map([["modifyRow","8.0.0"],["modifyCol","8.0.0"],["unmodifyRow","8.0.0"],["unmodifyCol","8.0.0"],["skipLengthCache","8.0.0"],["hiddenColumn","8.0.0"],["hiddenRow","8.0.0"]]),t.DEPRECATED_HOOKS=new Map([[]])},29775:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(23176);t.createShortcutManager=r.createShortcutManager},30009:(e,t)=>{"use strict";t.__esModule=!0;t.default=class{constructor(){this.data={}}setData(e,t){this.data[e]=t}getData(e){return this.data[e]||void 0}}},30137:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588);var s=r(n(81115)),i=r(n(37539)),o=r(n(11265)),a=n(28235),l=n(95605),h=n(38942),u=n(89090),c=n(21510),d=n(58617);function g(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function p(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 f=t.EDITOR_TYPE="date",m="dateEditor";var E=new WeakSet;class w extends l.TextEditor{constructor(){super(...arguments),g(this,E),(0,s.default)(this,"parentDestroyed",!1),(0,s.default)(this,"$datePicker",null)}static get EDITOR_TYPE(){return f}init(){if("function"!=typeof i.default)throw new Error("You need to include moment.js to your project.");if("function"!=typeof o.default)throw new Error("You need to include Pikaday to your project.");super.init(),this.hot.addHook("afterDestroy",()=>{this.parentDestroyed=!0,this.destroyElements()}),this.hot.addHook("afterSetTheme",(e,t)=>{t||this.close()})}createElements(){super.createElements(),this.datePicker=this.hot.rootDocument.createElement("DIV"),this.datePickerStyle=this.datePicker.style,this.datePickerStyle.position="absolute",this.datePickerStyle.top=0,this.datePickerStyle.left=0,this.datePickerStyle.zIndex=9999,this.datePicker.setAttribute("dir",this.hot.isRtl()?"rtl":"ltr"),(0,h.addClass)(this.datePicker,"htDatepickerHolder"),this.hot.rootPortalElement.appendChild(this.datePicker),this.eventManager.addEventListener(this.datePicker,"mousedown",e=>{(0,h.hasClass)(e.target,"pika-day")&&this.hideDatepicker(),e.stopPropagation()})}destroyElements(){const e=this.datePicker.parentNode;this.$datePicker&&this.$datePicker.destroy(),e&&e.removeChild(this.datePicker)}prepare(e,t,n,r,s,i){super.prepare(e,t,n,r,s,i)}open(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=this.hot.getShortcutManager().getContext("editor");this.showDatepicker(e),super.open(),t.addShortcuts([{keys:[["ArrowLeft"]],callback:()=>{this.$datePicker.adjustDate("subtract",1)}},{keys:[["ArrowRight"]],callback:()=>{this.$datePicker.adjustDate("add",1)}},{keys:[["ArrowUp"]],callback:()=>{this.$datePicker.adjustDate("subtract",7)}},{keys:[["ArrowDown"]],callback:()=>{this.$datePicker.adjustDate("add",7)}}],{group:m})}close(){var e;null!==(e=this.$datePicker)&&void 0!==e&&e.destroy&&this.$datePicker.destroy(),this.hot._registerTimeout(()=>{const e=this.hot._getEditorManager();e.closeEditor(),this.hot.view.render(),e.prepareEditor()});this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(m),super.close()}finishEditing(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super.finishEditing(e,t)}showDatepicker(e){const t=p(E,this,y).call(this),n=this.hot.view.isMouseDown(),r=!!e&&(0,c.isFunctionKey)(e.keyCode);let s;this.datePicker.style.display="block",this.$datePicker=new o.default(this.getDatePickerConfig()),"function"==typeof this.$datePicker.useMoment&&this.$datePicker.useMoment(i.default),this.$datePicker._onInputFocus=function(){},this.originalValue?(s=this.originalValue,(0,i.default)(s,t,!0).isValid()&&this.$datePicker.setMoment((0,i.default)(s,t),!0),this.getValue()!==this.originalValue&&this.setValue(this.originalValue),r||n||this.setValue("")):this.cellProperties.defaultDate?(s=this.cellProperties.defaultDate,(0,i.default)(s,t,!0).isValid()&&this.$datePicker.setMoment((0,i.default)(s,t),!0),r||n||this.setValue("")):this.$datePicker.gotoToday()}hideDatepicker(){this.datePickerStyle.display="none",this.$datePicker.hide()}getDatePickerConfig(){var e;const t=this.TEXTAREA,n={};this.cellProperties&&this.cellProperties.datePickerConfig&&(0,u.deepExtend)(n,this.cellProperties.datePickerConfig);const r=n.onSelect,s=n.onClose;return n.field=t,n.trigger=t,n.container=this.datePicker,n.bound=!1,n.keyboardInput=!1,n.format=null!==(e=n.format)&&void 0!==e?e:p(E,this,y).call(this),n.reposition=n.reposition||!1,n.isRTL=!1,n.onSelect=e=>{let t=e;isNaN(t.getTime())||(t=(0,i.default)(t).format(p(E,this,y).call(this))),this.setValue(t),r&&r(),(0,d.isMobileBrowser)()&&this.hideDatepicker()},n.onClose=()=>{this.parentDestroyed||this.finishEditing(!1),s&&s()},n}refreshDimensions(e){var t;if(super.refreshDimensions(e),this.state!==a.EDITOR_STATE.EDITING)return;if(this.TD=this.getEditedCell(),!this.TD)return void this.hideDatepicker();const{rowIndexMapper:n,columnIndexMapper:r}=this.hot,{wtOverlays:s}=this.hot.view._wt,{wtTable:i}=null!==(t=s.getParentOverlay(this.TD))&&void 0!==t?t:this.hot.view._wt,o=n.getVisualFromRenderableIndex(i.getFirstPartiallyVisibleRow()),l=n.getVisualFromRenderableIndex(i.getLastPartiallyVisibleRow()),u=r.getVisualFromRenderableIndex(i.getFirstPartiallyVisibleColumn()),c=r.getVisualFromRenderableIndex(i.getLastPartiallyVisibleColumn());if(this.row>=o&&this.row<=l&&this.col>=u&&this.col<=c){const e=this.TD.getBoundingClientRect();this.datePickerStyle.top=`${this.hot.rootWindow.pageYOffset+e.top+(0,h.outerHeight)(this.TD)}px`;let t=this.hot.rootWindow.pageXOffset;this.hot.isRtl()?t+=e.right-(0,h.outerWidth)(this.datePicker):t+=e.left,this.datePickerStyle.left=`${t}px`}else this.hideDatepicker()}}function y(){var e;return null!==(e=this.cellProperties.dateFormat)&&void 0!==e?e:"DD/MM/YYYY"}t.DateEditor=w},30152:(e,t,n)=>{"use strict";function r(e,t,n,r){let s=-1,i=e,o=n;Array.isArray(e)||(i=Array.from(e));const a=i.length;for(r&&a&&(s+=1,o=i[s]),s+=1;s<a;)o=t(o,i[s],s,i),s+=1;return o}function s(e,t){let n=0,r=e;Array.isArray(e)||(r=Array.from(e));const s=r.length;for(;n<s&&!1!==t(r[n],n,r);)n+=1;return e}function i(e){return r(e,(e,t)=>e+t,0)}t.__esModule=!0,t.arrayAvg=function(e){if(!e.length)return 0;return i(e)/e.length},t.arrayEach=s,t.arrayFilter=function(e,t){let n=0,r=e;Array.isArray(e)||(r=Array.from(e));const s=r.length,i=[];let o=-1;for(;n<s;){const e=r[n];t(e,n,r)&&(o+=1,i[o]=e),n+=1}return i},t.arrayFlatten=function e(t){return r(t,(t,n)=>t.concat(Array.isArray(n)?e(n):n),[])},t.arrayMap=function(e,t){let n=0,r=e;Array.isArray(e)||(r=Array.from(e));const s=r.length,i=[];let o=-1;for(;n<s;){const e=r[n];o+=1,i[o]=t(e,n,r),n+=1}return i},t.arrayMax=function(e){return r(e,(e,t)=>e>t?e:t,Array.isArray(e)?e[0]:void 0)},t.arrayMin=function(e){return r(e,(e,t)=>e<t?e:t,Array.isArray(e)?e[0]:void 0)},t.arrayReduce=r,t.arraySum=i,t.arrayUnique=function(e){const t=[];return s(e,e=>{-1===t.indexOf(e)&&t.push(e)}),t},t.extendArray=function(e,t){const n=t.length;let r=0;for(;r<n;)e.push(t[r]),r+=1},t.getDifferenceOfArrays=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const[r,...i]=[...t];let o=r;return s(i,e=>{o=o.filter(t=>!e.includes(t))}),o},t.getIntersectionOfArrays=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const[r,...i]=[...t];let o=r;return s(i,e=>{o=o.filter(t=>e.includes(t))}),o},t.getUnionOfArrays=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const[r,...i]=[...t],o=new Set(r);return s(i,e=>{s(e,e=>{o.has(e)||o.add(e)})}),Array.from(o)},t.pivot=function(e){const t=[];if(!e||0===e.length||!e[0]||0===e[0].length)return t;const n=e.length,r=e[0].length;for(let s=0;s<n;s++)for(let n=0;n<r;n++)t[n]||(t[n]=[]),t[n][s]=e[s][n];return t},t.stringToArray=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";return e.split(t)},t.to2dArray=function(e){const t=e.length;let n=0;for(;n<t;)e[n]=[e[n]],n+=1},n(66182),n(78822),n(86192),n(80729),n(99888),n(12767),n(78644),n(97550),n(81396),n(81124)},30161:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588);var s=n(89090),i=r(n(24285));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,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 l=new WeakMap;class h{constructor(){o(this,l,[])}subscribe(e){var t,n;return this.addLocalHook("change",e),this._write((n=this,(t=l).get(a(t,n)))),this}unsubscribe(){return this.runLocalHooks("unsubscribe"),this.clearLocalHooks(),this}_write(e){return e.length>0&&this.runLocalHooks("change",e),this}_writeInitialChanges(e){var t,n,r;n=this,r=e,(t=l).set(a(t,n),r)}}t.ChangesObserver=h,(0,s.mixin)(h,i.default)},30217:(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="contains";function a(e,t){let[n]=t;return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale).indexOf((0,s.stringify)(n))>=0}(0,i.registerCondition)(o,a,{name:r.FILTERS_CONDITIONS_CONTAINS,inputsCount:1,showOperators:!0})},30229:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182),n(81396),n(81124),n(88633),n(39716);var s=r(n(81115)),i=n(57440),o=n(66563),a=r(n(54620)),l=n(92164),h=n(89090),u=n(72740),c=r(n(23813)),d=n(16656),g=n(51191),p=n(20160);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(y(e,t))}function w(e,t,n){return e.set(y(e,t),n),n}function y(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")}l.Hooks.getSingleton().register("modifyAutoColumnSizeSeed");const C=t.PLUGIN_KEY="autoColumnSize",v=t.PLUGIN_PRIORITY=10;var S=new WeakMap,R=new WeakMap,T=new WeakMap,_=new WeakSet;class N extends i.BasePlugin{static get PLUGIN_KEY(){return C}static get PLUGIN_PRIORITY(){return v}static get SETTING_KEYS(){return!0}static get DEFAULT_SETTINGS(){return{useHeaders:!0,samplingRatio:null,allowSampleDuplicates:!1}}static get CALCULATION_STEP(){return 50}static get SYNC_CALCULATION_LIMIT(){return 50}constructor(e){var t,n;super(e),m(t=this,n=_),n.add(t),(0,s.default)(this,"ghostTable",new a.default(this.hot)),(0,s.default)(this,"samplesGenerator",new c.default((e,t)=>{const n=this.hot.toPhysicalRow(e),r=this.hot.toPhysicalColumn(t);if(this.hot.rowIndexMapper.isHidden(n)||this.hot.columnIndexMapper.isHidden(r))return!1;const s=this.hot.getCellMeta(e,t);let i="";s.spanned||(i=this.hot.getDataAtCell(e,t));let o="";return this.hot.hasHook("modifyAutoColumnSizeSeed")&&(o=this.hot.runHooks("modifyAutoColumnSizeSeed",o,s,i)),{value:i,bundleSeed:o}})),(0,s.default)(this,"inProgress",!1),(0,s.default)(this,"measuredColumns",0),(0,s.default)(this,"columnWidthsMap",new p.PhysicalIndexToValueMap),f(this,S,!1),f(this,R,[]),f(this,T,[]),this.hot.columnIndexMapper.registerMap("autoColumnSize",this.columnWidthsMap),this.addHook("beforeColumnResize",(e,t,n)=>y(_,this,P).call(this,e,t,n))}isEnabled(){return!1!==this.hot.getSettings()[C]&&!this.hot.getSettings().colWidths}enablePlugin(){var e=this;if(this.enabled)return;this.ghostTable.setSetting("useHeaders",this.getSetting("useHeaders")),this.samplesGenerator.setAllowDuplicates(this.getSetting("allowSampleDuplicates"));const t=this.getSetting("samplingRatio");t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),this.addHook("afterLoadData",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return y(_,e,O).call(e,...n)}),this.addHook("beforeChangeRender",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return y(_,e,x).call(e,...n)}),this.addHook("afterFormulasValuesUpdate",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return y(_,e,D).call(e,...n)}),this.addHook("beforeRender",()=>y(_,this,I).call(this)),this.addHook("modifyColWidth",(e,t)=>this.getColumnWidth(t,e)),this.addHook("init",()=>y(_,this,L).call(this)),super.enablePlugin()}updatePlugin(){w(T,this,this.findColumnsWhereHeaderWasChanged()),super.updatePlugin()}disablePlugin(){super.disablePlugin(),this.addHook("beforeColumnResize",(e,t,n)=>y(_,this,P).call(this,e,t,n))}calculateVisibleColumnsWidth(){if(!this.hot.countRows())return;const e=this.getFirstVisibleColumn(),t=this.getLastVisibleColumn();if(-1===e||-1===t)return;const n=this.hot.forceFullRender;this.calculateColumnsWidth({from:e,to:t},void 0,n)}calculateColumnsWidth(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countRows()-1},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r="number"==typeof e?{from:e,to:e}:e,s="number"==typeof t?{from:t,to:t}:t;(0,u.rangeEach)(r.from,r.to,e=>{let t=this.hot.toPhysicalColumn(e);null===t&&(t=e),(n||null===this.columnWidthsMap.getValueAtIndex(t)&&!this.hot._getColWidthFromSettings(t))&&y(_,this,b).call(this,e,s)}),this.ghostTable.columns.length&&(y(_,this,M).call(this),this.measuredColumns=r.to+1,this.ghostTable.clean())}calculateAllColumnsWidth(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0;const r=this.hot.countCols()-1;let s=null;this.inProgress=!0;const i=()=>{if(!this.hot)return(0,o.cancelAnimationFrame)(s),void(this.inProgress=!1);this.calculateColumnsWidth({from:n,to:Math.min(n+N.CALCULATION_STEP,r)},e,t),n=n+N.CALCULATION_STEP+1,n<r?s=(0,o.requestAnimationFrame)(i):((0,o.cancelAnimationFrame)(s),this.inProgress=!1,this.hot.view.adjustElementsSize())},a=this.getSyncCalculationLimit();a>=0&&(this.calculateColumnsWidth({from:0,to:a},e,t),n=a+1),n<r?i():this.inProgress=!1}recalculateAllColumnsWidth(){this.hot.view.isVisible()&&this.calculateAllColumnsWidth({from:0,to:this.hot.countRows()-1},!0)}getSyncCalculationLimit(){const e=this.hot.getSettings()[C];let t=N.SYNC_CALCULATION_LIMIT;const n=this.hot.countCols()-1;return(0,h.isObject)(e)&&(t=e.syncLimit,(0,d.isPercentValue)(t)?t=(0,u.valueAccordingPercent)(n,t):t>>=0),Math.min(t,n)}getColumnWidth(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=t;return void 0===r&&(r=this.columnWidthsMap.getValueAtIndex(this.hot.toPhysicalColumn(e)),n&&"number"==typeof r&&(r=Math.max(r,g.DEFAULT_COLUMN_WIDTH))),r}getFirstVisibleColumn(){var e;return null!==(e=this.hot.getFirstRenderedVisibleColumn())&&void 0!==e?e:-1}getLastVisibleColumn(){var e;return null!==(e=this.hot.getLastRenderedVisibleColumn())&&void 0!==e?e:-1}findColumnsWhereHeaderWasChanged(){return this.hot.getColHeader().reduce((e,t,n)=>{const r=E(R,this).length;return(r-1<n||E(R,this)[n]!==t)&&e.push(this.hot.toVisualColumn(n)),r-1<n?E(R,this).push(t):E(R,this)[n]=t,e},[])}clearCache(e){Array.isArray(e)?this.hot.batchExecution(()=>{e.forEach(e=>{this.columnWidthsMap.setValueAtIndex(e,null)})},!0):this.columnWidthsMap.clear()}isNeedRecalculate(){return!!this.columnWidthsMap.getValues().slice(0,this.measuredColumns).filter(e=>null===e).length}destroy(){this.ghostTable.clean(),super.destroy()}}function A(e){const t={from:0,to:this.hot.countRows()-1};e.forEach(e=>{const n=this.hot.toPhysicalColumn(e);null!==n&&(this.hot._getColWidthFromSettings(n)||y(_,this,b).call(this,e,t))}),this.ghostTable.columns.length&&(y(_,this,M).call(this),this.ghostTable.clean())}function b(e,t){this.samplesGenerator.generateColumnSamples(e,t).forEach((e,t)=>this.ghostTable.addColumn(t,e))}function M(){this.hot.batchExecution(()=>{this.ghostTable.getWidths((e,t)=>{const n=this.hot.toPhysicalColumn(e);this.columnWidthsMap.setValueAtIndex(n,t)})},!0)}function I(){this.calculateVisibleColumnsWidth(),this.inProgress||(y(_,this,A).call(this,E(T,this)),w(T,this,[]))}function O(e,t){t||this.recalculateAllColumnsWidth()}function x(e){const t=e.reduce((e,t)=>{let[,n]=t;const r=this.hot.propToCol(n);return Number.isInteger(r)&&-1===e.indexOf(r)&&e.push(r),e},[]);E(T,this).push(...t)}function P(e,t,n){let r=e;return n&&(this.calculateColumnsWidth(t,void 0,!0),r=this.getColumnWidth(t,void 0,!1)),r}function L(){w(R,this,this.hot.getColHeader()),this.recalculateAllColumnsWidth(),w(S,this,!0)}function D(e){if(!E(S,this))return;const t=e.reduce((e,t)=>{var n;const r=null===(n=t.address)||void 0===n?void 0:n.col;if(Number.isInteger(r)){const t=this.hot.toVisualColumn(r);-1===e.indexOf(t)&&e.push(t)}return e},[]);E(T,this).push(...t)}t.AutoColumnSize=N},30355:()=>{},30417:(e,t,n)=>{"use strict";var r=n(27538),s=n(94988),i=n(55210),o=n(11127),a=n(48651),l=n(89035),h=s("".charAt);r({target:"String",proto:!0,forced:l(function(){return"\ud842"!=="𠮷".at(-2)})},{at:function(e){var t=a(i(this)),n=t.length,r=o(e),s=r>=0?r:n+r;return s<0||s>=n?void 0:h(t,s)}})},30625:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionRight",callback(e){const{selection:t}=e;t.markSource("keyboard"),t.transformStart(0,e.getDirectionFactor()),t.markEndSource()}}},30934:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionLeft",callback(e){const{selection:t}=e;t.markSource("keyboard"),t.transformStart(0,-1*e.getDirectionFactor()),t.markEndSource()}}},31127:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(59830),s=n(39193),i=n(98524);class o extends r.IndexMap{constructor(){super(e=>e)}insert(e,t){const n=(0,i.getIncreasedIndexes)(this.indexedValues,t);this.indexedValues=(0,s.getListWithInsertedItems)(n,e,t),super.insert(e,t)}remove(e){const t=(0,s.getListWithRemovedItems)(this.indexedValues,e);this.indexedValues=(0,i.getDecreasedIndexes)(t,e),super.remove(e)}}t.IndexesSequence=o},31338:(e,t,n)=>{"use strict";var r=n(19596),s=n(14326),i=r.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},31342:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(81396),n(14618);var s=r(n(81115)),i=n(59830),o=n(99799),a=n(39193),l=n(96852),h=n(37849);class u extends i.IndexMap{constructor(){super(...arguments),(0,s.default)(this,"orderOfIndexes",[])}getValues(){return this.orderOfIndexes.map(e=>this.indexedValues[e])}setValues(e){this.orderOfIndexes=[...Array(e.length).keys()],super.setValues(e)}setValueAtIndex(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.orderOfIndexes.length;return e<this.indexedValues.length&&(this.indexedValues[e]=t,!1===this.orderOfIndexes.includes(e)&&this.orderOfIndexes.splice(n,0,e),this.runLocalHooks("change"),!0)}clearValue(e){this.orderOfIndexes=(0,a.getListWithRemovedItems)(this.orderOfIndexes,[e]),(0,h.isFunction)(this.initValueOrFn)?super.setValueAtIndex(e,this.initValueOrFn(e)):super.setValueAtIndex(e,this.initValueOrFn)}getLength(){return this.orderOfIndexes.length}setDefaultValues(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.orderOfIndexes.length=0,super.setDefaultValues(e)}insert(e,t){this.indexedValues=(0,o.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),this.orderOfIndexes=(0,l.getIncreasedIndexes)(this.orderOfIndexes,t),super.insert(e,t)}remove(e){this.indexedValues=(0,o.getListWithRemovedItems)(this.indexedValues,e),this.orderOfIndexes=(0,a.getListWithRemovedItems)(this.orderOfIndexes,e),this.orderOfIndexes=(0,l.getDecreasedIndexes)(this.orderOfIndexes,e),super.remove(e)}getEntries(){return this.orderOfIndexes.map(e=>[e,this.getValueAtIndex(e)])}}t.LinkedPhysicalIndexToValueMap=u},31572:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,t.createHighlight=function(e){let{activeHeaderClassName:t,...n}=e;return new i.default({className:t,...n,selectionType:s.HIGHLIGHT_ACTIVE_HEADER_TYPE})};var s=n(51191),i=r(n(5103))},31591:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(81115)),i=n(89090),o=r(n(24285)),a=r(n(90308)),l=n(38942),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));const c="built",d="building",g=["click","input","keydown","keypress","keyup","focus","blur","change"];class p{static get DEFAULTS(){return(0,i.clone)({className:"",value:"",tagName:"div",children:[],wrapIt:!0})}constructor(e,t){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"eventManager",new a.default(this)),(0,s.default)(this,"options",void 0),(0,s.default)(this,"_element",void 0),(0,s.default)(this,"buildState",void 0),this.hot=e,this.options=(0,i.extend)(p.DEFAULTS,t),this._element=this.hot.rootDocument.createElement(this.options.wrapIt?"div":this.options.tagName)}setValue(e){this.options.value=e,this.update()}getValue(){return this.options.value}get element(){return this.buildState===d?this._element:this.buildState===c?(this.update(),this._element):(this.buildState=d,this.build(),this.buildState=c,this._element)}isBuilt(){return this.buildState===c}translateIfPossible(e){return"string"==typeof e&&e.startsWith(u.FILTERS_NAMESPACE)?this.hot.getTranslatedPhrase(e):e}build(){const e=(e,t)=>{this.eventManager.addEventListener(e,t,e=>this.runLocalHooks(t,e,this))};if(this.buildState||(this.buildState=d),this._element.setAttribute("data-hot-input",!0),void 0!==this.options.tabIndex&&this._element.setAttribute("tabindex",this.options.tabIndex),void 0!==this.options.role&&this._element.setAttribute("role",this.options.role),this.options.className&&(0,l.addClass)(this._element,this.options.className),this.options.children.length)(0,h.arrayEach)(this.options.children,e=>this._element.appendChild(e.element));else if(this.options.wrapIt){const t=this.hot.rootDocument.createElement(this.options.tagName);t.setAttribute("data-hot-input",!0),(0,i.objectEach)(this.options,(e,n)=>{void 0!==t[n]&&"className"!==n&&"tagName"!==n&&"children"!==n&&(t[n]=this.translateIfPossible(e))}),this._element.appendChild(t),(0,h.arrayEach)(g,n=>e(t,n))}else(0,h.arrayEach)(g,t=>e(this._element,t))}update(){}reset(){this.options.value="",this.update()}show(){this.element.style.display=""}hide(){this.element.style.display="none"}focus(){}destroy(){this.eventManager.destroy(),this.eventManager=null,this.hot=null,this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null}}t.BaseUI=p,(0,i.mixin)(p,o.default)},31787:()=>{},31884:(e,t,n)=>{"use strict";var r=n(84990).has;e.exports=function(e){return r(e),e}},31937:()=>{},32039:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToColumns",callback(e){const{selection:t}=e,{highlight:n,from:r,to:s}=e.getSelectedRangeActive();t.markSource("keyboard"),t.isSelectedByRowHeader()?t.selectAll(!0,!0):e.selectColumns(r.col,s.col,n),t.markEndSource()}}},32089:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(66182);var s=r(n(81115)),i=n(28924),o=n(30152),a=n(54342);class l extends i.MapCollection{constructor(e,t){super(),(0,s.default)(this,"mergedValuesCache",[]),(0,s.default)(this,"aggregationFunction",void 0),(0,s.default)(this,"fallbackValue",void 0),this.aggregationFunction=e,this.fallbackValue=t}getMergedValues(){if(!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]))return this.mergedValuesCache;if(0===this.getLength())return[];const e=(0,o.arrayMap)(this.get(),e=>e.getValues()),t=[],n=(0,a.isDefined)(e[0])&&e[0].length||0;for(let r=0;r<n;r+=1){const n=[];for(let t=0;t<this.getLength();t+=1)n.push(e[t][r]);t.push(n)}return(0,o.arrayMap)(t,this.aggregationFunction)}getMergedValueAtIndex(e,t){const n=this.getMergedValues(t)[e];return(0,a.isDefined)(n)?n:this.fallbackValue}updateCache(){this.mergedValuesCache=this.getMergedValues(!1)}}t.AggregatedCollection=l},32153:()=>{},32234:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"borders:top",name(){let e=this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_BORDERS_TOP);return(0,s.checkSelectionBorders)(this,"top")&&(e=(0,s.markSelected)(e)),e},callback(t,n){const r=(0,s.checkSelectionBorders)(this,"top");e.prepareBorder(n,"top",r)}}};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)},32335:(e,t,n)=>{"use strict";n(81396),n(88633),t.__esModule=!0;var r=n(34160);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))})},32453:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182),n(81396),n(19874);var s=r(n(81115)),i=n(57440),o=n(92164),a=n(38942),l=n(89090),h=n(30152),u=n(54342),c=n(12634);function d(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function g(e,t,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("modifyAutofillRange"),o.Hooks.getSingleton().register("beforeAutofill"),o.Hooks.getSingleton().register("afterAutofill");const p=t.PLUGIN_KEY="autofill",f=t.PLUGIN_PRIORITY=20,m=["fillHandle"];var E=new WeakSet;class w extends i.BasePlugin{constructor(){super(...arguments),d(this,E),(0,s.default)(this,"addingStarted",!1),(0,s.default)(this,"mouseDownOnCellCorner",!1),(0,s.default)(this,"mouseDragOutside",!1),(0,s.default)(this,"handleDraggedCells",0),(0,s.default)(this,"directions",[]),(0,s.default)(this,"autoInsertRow",!1)}static get PLUGIN_KEY(){return p}static get PLUGIN_PRIORITY(){return f}static get SETTING_KEYS(){return[p,...m]}isEnabled(){return this.hot.getSettings().fillHandle}enablePlugin(){this.enabled||(this.mapSettings(),this.registerEvents(),this.addHook("afterOnCellCornerMouseDown",e=>g(E,this,v).call(this,e)),this.addHook("afterOnCellCornerDblClick",e=>g(E,this,C).call(this,e)),this.addHook("beforeOnCellMouseOver",(e,t)=>g(E,this,S).call(this,t)),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.clearMappedSettings(),super.disablePlugin()}getSelectionData(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.hot.getSelectedRangeLast(),{row:n,col:r}=t.getTopStartCorner(),{row:s,col:i}=t.getBottomEndCorner(),o=this.hot.runHooks("modifyCopyableRange",[{startRow:n,startCol:r,endRow:s,endCol:i}]),a=[],u=[],c=[];return(0,h.arrayEach)(o,e=>{for(let t=e.startRow;t<=e.endRow;t+=1)-1===a.indexOf(t)&&a.push(t);for(let t=e.startCol;t<=e.endCol;t+=1)-1===u.indexOf(t)&&u.push(t)}),(0,h.arrayEach)(a,t=>{const n=[];(0,h.arrayEach)(u,r=>{const s=e?this.hot.getSourceDataAtCell(t,r):null;e&&(0,l.isObject)(s)?n.push(this.hot.getCopyableSourceData(t,r)):n.push(this.hot.getCopyableData(t,r))}),c.push(n)}),c}fillIn(){if(this.hot.selection.highlight.getFill().isEmpty())return!1;const[e,t,n,r]=this.hot.selection.highlight.getFill().getVisualCorners(),s=this.hot.getSelectedRangeLast(),i=s.getTopStartCorner(),o=s.getBottomEndCorner();this.resetSelectionOfDraggedArea();const a=[i.row,i.col,o.row,o.col],h=this.hot.runHooks("modifyAutofillRange",[Math.min(i.row,e),Math.min(i.col,t),Math.max(o.row,n),Math.max(o.col,r)],a),{directionOfDrag:u,startOfDragCoords:d,endOfDragCoords:p}=(0,c.getDragDirectionAndRange)(a,h,(e,t)=>this.hot._createCellCoords(e,t));if(d&&d.row>-1&&d.col>-1){const e=this.getSelectionData(),t=this.getSelectionData(!0),n=s.clone(),r=this.hot._createCellRange(d,d,p),i=this.hot.runHooks("beforeAutofill",e,n,r,u);if(!1===i)return this.hot.selection.highlight.getFill().clear(),this.hot.render(),!1;let o=i;const a=i;if(["up","left"].indexOf(u)>-1&&(1!==a.length||0!==a[0].length))if(o=[],"up"===u){const e=p.row-d.row+1,t=e%a.length;for(let n=0;n<e;n++)o.push(a[(n+(a.length-t))%a.length])}else{const e=p.col-d.col+1,t=e%a[0].length;for(let n=0;n<a.length;n++){o.push([]);for(let r=0;r<e;r++)o[n].push(a[n][(r+(a[n].length-t))%a[n].length])}}if(t.some(e=>e.some(e=>(0,l.isObject)(e)))){const e=g(E,this,y).call(this,o,t,d,p,u);e.length&&(o=e)}this.hot.populateFromArray(d.row,d.col,o,p.row,p.col,`${this.pluginName}.fill`,null),this.setSelection(h),this.hot.runHooks("afterAutofill",o,n,r,u),this.hot.render()}else this.hot.view.render();return!0}reduceSelectionAreaIfNeeded(e){return e.row<0&&(e.row=0),e.col<0&&(e.col=0),e}getCoordsOfDragAndDropBorders(e){const t=this.hot.getSelectedRangeLast(),n=t.getBottomEndCorner();let r=e;if(this.directions.includes(c.DIRECTIONS.vertical)&&this.directions.includes(c.DIRECTIONS.horizontal)){const s=t.getTopStartCorner();(n.col<=e.col||s.col>=e.col)&&(r=this.hot._createCellCoords(n.row,e.col)),(n.row<e.row||s.row>e.row)&&(r=this.hot._createCellCoords(e.row,n.col))}else if(this.directions.includes(c.DIRECTIONS.vertical))r=this.hot._createCellCoords(e.row,n.col);else{if(!this.directions.includes(c.DIRECTIONS.horizontal))return;r=this.hot._createCellCoords(n.row,e.col)}return this.reduceSelectionAreaIfNeeded(r)}showBorder(e){const t=this.getCoordsOfDragAndDropBorders(e);t&&this.redrawBorders(t)}addRow(){this.hot._registerTimeout(()=>{this.hot.alter("insert_row_below",void 0,1,`${this.pluginName}.fill`),this.addingStarted=!1},200)}addNewRowIfNeeded(){if(!this.hot.selection.highlight.getFill().isEmpty()&&!1===this.addingStarted&&this.autoInsertRow){const e=this.hot.getSelectedLast(),t=this.hot.selection.highlight.getFill().getVisualCorners(),n=this.hot.countRows();e[2]<n-1&&t[2]===n-1&&(this.addingStarted=!0,this.addRow())}}getIndexOfLastAdjacentFilledInRow(e){const t=this.hot.getData(),n=this.hot.countRows();let r;for(let s=e[2]+1;s<n;s++){for(let n=e[1];n<=e[3];n++){const e=t[s][n];if(!(0,u.isEmpty)(e))return-1}const n=t[s][e[1]-1],i=t[s][e[3]+1];(0,u.isEmpty)(n)&&(0,u.isEmpty)(i)||(r=s)}return r}addSelectionFromStartAreaToSpecificRowIndex(e,t){this.hot.selection.highlight.getFill().clear().add(this.hot._createCellCoords(e[0],e[1])).add(this.hot._createCellCoords(t,e[3])).commit()}setSelection(e){this.hot.selectCell(...(0,h.arrayMap)(e,e=>Math.max(e,0)),!1,!1)}selectAdjacent(){const e=this.hot.getSelectedLast(),t=this.getIndexOfLastAdjacentFilledInRow(e);return-1!==t&&void 0!==t&&(this.addSelectionFromStartAreaToSpecificRowIndex(e,t),!0)}resetSelectionOfDraggedArea(){this.handleDraggedCells=0,this.hot.selection.highlight.getFill().clear()}redrawBorders(e){this.hot.selection.highlight.getFill().clear().add(this.hot.getSelectedRangeLast().from).add(this.hot.getSelectedRangeLast().to).add(e).commit(),this.hot.view.render()}getIfMouseWasDraggedOutside(e){const{documentElement:t}=this.hot.rootDocument,n=(0,a.offset)(this.hot.table).top-(this.hot.rootWindow.pageYOffset||t.scrollTop)+(0,a.outerHeight)(this.hot.table),r=(0,a.offset)(this.hot.table).left-(this.hot.rootWindow.pageXOffset||t.scrollLeft)+(0,a.outerWidth)(this.hot.table);return e.clientY>n&&e.clientX<=r}registerEvents(){const{documentElement:e}=this.hot.rootDocument;this.eventManager.addEventListener(e,"mouseup",()=>g(E,this,R).call(this)),this.eventManager.addEventListener(e,"mousemove",e=>g(E,this,T).call(this,e))}clearMappedSettings(){this.directions.length=0,this.autoInsertRow=!1}mapSettings(){const e=(0,c.getMappedFillHandleSetting)(this.hot.getSettings().fillHandle);this.directions=e.directions,this.autoInsertRow=e.autoInsertRow}destroy(){super.destroy()}}function y(e,t,n,r){const s=[];for(let i=Math.min(n.row,r.row);i<=Math.max(n.row,r.row);i+=1){s.push([]);for(let o=Math.min(n.col,r.col);o<=Math.max(n.col,r.col);o+=1){const a=this.hot.getSourceDataAtCell(i,o),h=i-Math.min(n.row,r.row),u=o-Math.min(n.col,r.col),c=h%t.length,d=u%t[0].length;(0,l.isObject)(a)?s[h][u]=t[c][d]:s[h][u]=e[c][d]}}return s}function C(){this.selectAdjacent()&&this.fillIn()}function v(){this.handleDraggedCells=1,this.mouseDownOnCellCorner=!0}function S(e){this.mouseDownOnCellCorner&&!this.hot.view.isMouseDown()&&this.handleDraggedCells&&(this.handleDraggedCells+=1,this.showBorder(e),this.addNewRowIfNeeded())}function R(){this.handleDraggedCells&&(this.handleDraggedCells>1&&this.fillIn(),this.handleDraggedCells=0,this.mouseDownOnCellCorner=!1)}function T(e){const t=this.getIfMouseWasDraggedOutside(e);!1===this.addingStarted&&this.handleDraggedCells>0&&t?(this.mouseDragOutside=!0,this.addingStarted=!0):this.mouseDragOutside=!1,this.mouseDragOutside&&this.autoInsertRow&&this.addRow()}t.Autofill=w},32474:()=>{},32490:(e,t,n)=>{"use strict";t.__esModule=!0,t.updateCaretPosition=function(e,t){const n=(0,r.getCaretPosition)(t),s=t.value.split("\n");let i=n,o=0;for(let t=0;t<s.length;t++){const r=s[t];0!==t&&(o+=s[t-1].length+1);const a=o+r.length;if("home"===e?i=o:"end"===e&&(i=a),n<=a)break}(0,r.setCaretPosition)(t,i)};var r=n(38942)},32591:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,t.default=function(e,t,n){if("function"==typeof o[e])return new o[e](t,n);return null};var s=r(n(25703));const i=t.TYPE_CSV="csv",o=(t.TYPE_EXCEL="excel",t.TYPE_PDF="pdf",t.EXPORT_TYPES={[i]:s.default})},32770:()=>{},32822:()=>{},32918:(e,t,n)=>{"use strict";t.__esModule=!0,t.createKeysObserver=function(){const e=new Set;return{press(t){e.add(t)},release(t){e.delete(t)},releaseAll(){e.clear()},isPressed:t=>e.has(t)}},n(78822),n(86192),n(80729),n(99888),n(12767),n(78644),n(97550)},33021:(e,t,n)=>{"use strict";t.__esModule=!0,t.timeRenderer=i;var r=n(40041);const s=t.RENDERER_TYPE="time";function i(e,t,n,s,i,o,a){r.textRenderer.apply(this,[e,t,n,s,i,o,a]),t.dir="ltr"}i.RENDERER_TYPE=s},33115:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(62601);t.EDITOR_TYPE=r.EDITOR_TYPE,t.NumericEditor=r.NumericEditor},33166:(e,t,n)=>{"use strict";n(88049)("flat")},33297:(e,t)=>{"use strict";t.__esModule=!0,t.getNormalizedDate=function(e){const t=new Date(e);if(!isNaN(new Date(`${e}T00:00`).getDate()))return new Date(t.getTime()+6e4*t.getTimezoneOffset());return t}},33455:()=>{},33462:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182),n(81396),n(88633),n(39716);var s=r(n(81115)),i=n(38942),o=n(66563),a=n(30152),l=n(21510),h=n(58617),u=n(87544),c=n(21596);function d(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 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")}var m=new WeakMap,E=new WeakMap,w=new WeakMap,y=new WeakMap;t.default=class{constructor(e,t,n,r,a,l){(0,s.default)(this,"wot",null),d(this,m,[]),(0,s.default)(this,"topOverlay",null),(0,s.default)(this,"bottomOverlay",null),(0,s.default)(this,"inlineStartOverlay",null),(0,s.default)(this,"topInlineStartCornerOverlay",null),(0,s.default)(this,"bottomInlineStartCornerOverlay",null),(0,s.default)(this,"browserLineHeight",void 0),(0,s.default)(this,"wtSettings",null),d(this,E,!1),d(this,w,0),d(this,y,null),(0,s.default)(this,"resizeObserver",new ResizeObserver(e=>{(0,o.requestAnimationFrame)(()=>{Array.isArray(e)&&e.length&&(g(w,this,p(w,this)+1),300===p(w,this)&&((0,u.warn)("The ResizeObserver callback was fired too many times in direct succession.\nThis may be due to an infinite loop caused by setting a dynamic height/width (for example, with the `dvh` units) to a Handsontable container's parent. \nThe observer will be disconnected."),this.resizeObserver.disconnect()),null!==p(y,this)&&clearTimeout(p(y,this)),g(y,this,setTimeout(()=>{g(w,this,0)},100)),this.wtSettings.getSetting("onContainerElementResize"))})})),this.wot=e,this.wtSettings=r,this.domBindings=n,this.facadeGetter=t,this.wtTable=l;const{rootDocument:h,rootWindow:c}=this.domBindings;this.instance=this.wot,this.eventManager=a,this.scrollbarSize=(0,i.getScrollbarWidth)(h);const f="hidden"===c.getComputedStyle(l.wtRootElement.parentNode).getPropertyValue("overflow");this.scrollableElement=f?l.holder:(0,i.getScrollableElement)(l.TABLE),this.initOverlays(),this.destroyed=!1,this.keyPressed=!1,this.spreaderLastSize={width:null,height:null},this.verticalScrolling=!1,this.horizontalScrolling=!1,this.initBrowserLineHeight(),this.registerListeners(),this.lastScrollX=c.scrollX,this.lastScrollY=c.scrollY}getOverlays(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=[...p(m,this)];return e&&t.push(this.wtTable),t}initBrowserLineHeight(){const{rootWindow:e,rootDocument:t}=this.domBindings,n=e.getComputedStyle(t.body),r=parseInt(n.lineHeight,10),s=1.2*parseInt(n.fontSize,10);this.browserLineHeight=r||s}initOverlays(){const e=[this.wot,this.facadeGetter,this.wtSettings,this.domBindings];this.topOverlay=new c.TopOverlay(...e),this.bottomOverlay=new c.BottomOverlay(...e),this.inlineStartOverlay=new c.InlineStartOverlay(...e),this.topInlineStartCornerOverlay=new c.TopInlineStartCornerOverlay(...e,this.topOverlay,this.inlineStartOverlay),this.bottomInlineStartCornerOverlay=new c.BottomInlineStartCornerOverlay(...e,this.bottomOverlay,this.inlineStartOverlay),g(m,this,[this.topOverlay,this.bottomOverlay,this.inlineStartOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay])}beforeDraw(){g(E,this,p(m,this).reduce((e,t)=>t.hasRenderingStateChanged()||e,!1)),p(m,this).forEach(e=>e.updateStateOfRendering("before"))}afterDraw(){this.syncScrollWithMaster(),p(m,this).forEach(e=>{const t=e.hasRenderingStateChanged();e.updateStateOfRendering("after"),t&&!e.needFullRender&&e.reset()})}refreshAll(){this.wot.drawn&&(this.wtTable.holder.parentNode?(this.wot.draw(!0),this.verticalScrolling&&this.inlineStartOverlay.onScroll(),this.horizontalScrolling&&this.topOverlay.onScroll(),this.verticalScrolling=!1,this.horizontalScrolling=!1):this.destroy())}registerListeners(){const{rootDocument:e,rootWindow:t}=this.domBindings,{mainTableScrollableElement:n}=this.topOverlay,{mainTableScrollableElement:r}=this.inlineStartOverlay;this.eventManager.addEventListener(e.documentElement,"keydown",e=>this.onKeyDown(e)),this.eventManager.addEventListener(e.documentElement,"keyup",()=>this.onKeyUp()),this.eventManager.addEventListener(e,"visibilitychange",()=>this.onKeyUp()),this.eventManager.addEventListener(n,"scroll",e=>this.onTableScroll(e),{passive:!0}),n!==r&&this.eventManager.addEventListener(r,"scroll",e=>this.onTableScroll(e),{passive:!0});const s=t.devicePixelRatio&&t.devicePixelRatio>1,i=this.scrollableElement===t,a=this.wtSettings.getSetting("preventWheel"),l={passive:i};(a||s||!(0,h.isChrome)())&&this.eventManager.addEventListener(this.wtTable.wtRootElement,"wheel",e=>this.onCloneWheel(e,a),l);let u;[this.topOverlay,this.bottomOverlay,this.inlineStartOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay].forEach(e=>{this.eventManager.addEventListener(e.clone.wtTable.holder,"wheel",e=>this.onCloneWheel(e,a),l)}),this.eventManager.addEventListener(t,"resize",()=>{(0,o.requestAnimationFrame)(()=>{clearTimeout(u),this.wtSettings.getSetting("onWindowResize"),u=setTimeout(()=>{g(w,this,0)},200)})}),i||this.resizeObserver.observe(this.wtTable.wtRootElement.parentElement)}onTableScroll(e){const t=this.domBindings.rootWindow,n=this.inlineStartOverlay.mainTableScrollableElement,r=this.topOverlay.mainTableScrollableElement,s=e.target;this.keyPressed&&(r!==t&&s!==t&&!e.target.contains(r)||n!==t&&s!==t&&!e.target.contains(n))||this.syncScrollPositions(e)}onCloneWheel(e,t){if(e.ctrlKey)return;const{rootWindow:n}=this.domBindings,r=this.inlineStartOverlay.mainTableScrollableElement,s=this.topOverlay.mainTableScrollableElement,i=e.target,o=s!==n&&i!==n&&!i.contains(s),a=r!==n&&i!==n&&!i.contains(r);if(this.keyPressed&&(o||a)||this.scrollableElement===n)return;const l=this.translateMouseWheelToScroll(e);(t||this.scrollableElement!==n&&l)&&e.preventDefault()}onKeyDown(e){this.keyPressed=(0,l.isKey)(e.keyCode,"ARROW_UP|ARROW_RIGHT|ARROW_DOWN|ARROW_LEFT")}onKeyUp(){this.keyPressed=!1}translateMouseWheelToScroll(e){let t=isNaN(e.deltaY)?-1*e.wheelDeltaY:e.deltaY,n=isNaN(e.deltaX)?-1*e.wheelDeltaX:e.deltaX;1===e.deltaMode&&(n+=n*this.browserLineHeight,t+=t*this.browserLineHeight);const r=this.scrollVertically(t),s=this.scrollHorizontally(n);return r||s}scrollVertically(e){const t=this.scrollableElement.scrollTop;return this.scrollableElement.scrollTop+=e,t!==this.scrollableElement.scrollTop}scrollHorizontally(e){const t=this.scrollableElement.scrollLeft;return this.scrollableElement.scrollLeft+=e,t!==this.scrollableElement.scrollLeft}syncScrollPositions(){if(this.destroyed)return;const e=this.topOverlay.clone.wtTable.holder,t=this.inlineStartOverlay.clone.wtTable.holder;let n=this.scrollableElement.scrollLeft,r=this.scrollableElement.scrollTop;if(this.wot.wtViewport.isHorizontallyScrollableByWindow()&&(n=this.scrollableElement.scrollX),this.wot.wtViewport.isVerticallyScrollableByWindow()&&(r=this.scrollableElement.scrollY),this.horizontalScrolling=this.lastScrollX!==n,this.verticalScrolling=this.lastScrollY!==r,this.lastScrollX=n,this.lastScrollY=r,this.horizontalScrolling){e.scrollLeft=n;const t=this.bottomOverlay.needFullRender?this.bottomOverlay.clone.wtTable.holder:null;t&&(t.scrollLeft=n)}this.verticalScrolling&&(t.scrollTop=r),this.refreshAll()}syncScrollWithMaster(){if(!p(E,this))return;const e=this.topOverlay.mainTableScrollableElement,{scrollLeft:t,scrollTop:n}=e;this.topOverlay.needFullRender&&(this.topOverlay.clone.wtTable.holder.scrollLeft=t),this.bottomOverlay.needFullRender&&(this.bottomOverlay.clone.wtTable.holder.scrollLeft=t),this.inlineStartOverlay.needFullRender&&(this.inlineStartOverlay.clone.wtTable.holder.scrollTop=n),g(E,this,!1)}updateMainScrollableElements(){this.eventManager.clearEvents(!0),this.inlineStartOverlay.updateMainScrollableElement(),this.topOverlay.updateMainScrollableElement(),this.bottomOverlay.needFullRender&&this.bottomOverlay.updateMainScrollableElement();const{wtTable:e}=this,{rootWindow:t}=this.domBindings;"hidden"===t.getComputedStyle(e.wtRootElement.parentNode).getPropertyValue("overflow")?this.scrollableElement=e.holder:this.scrollableElement=(0,i.getScrollableElement)(e.TABLE),this.registerListeners()}destroy(){this.resizeObserver.disconnect(),this.eventManager.destroy(),this.topOverlay.destroy(),this.bottomOverlay.clone&&this.bottomOverlay.destroy(),this.inlineStartOverlay.destroy(),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.destroy(),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.destroy(),this.destroyed=!0}refresh(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateLastSpreaderSize()&&this.adjustElementsSize(),this.bottomOverlay.clone&&this.bottomOverlay.refresh(e),this.inlineStartOverlay.refresh(e),this.topOverlay.refresh(e),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.refresh(e),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.refresh(e)}updateLastSpreaderSize(){const e=this.wtTable.spreader,t=e.clientWidth,n=e.clientHeight,r=t!==this.spreaderLastSize.width||n!==this.spreaderLastSize.height;return r&&(this.spreaderLastSize.width=t,this.spreaderLastSize.height=n),r}adjustElementsSize(){const{wtViewport:e}=this.wot,{wtTable:t}=this,{rootWindow:n}=this.domBindings,r=this.scrollableElement===n,s=this.wtSettings.getSetting("totalColumns"),i=this.wtSettings.getSetting("totalRows"),o=e.getRowHeaderWidth(),a=e.getColumnHeaderHeight(),l=this.wtSettings.getSetting("externalRowCalculator")?0:1,h=a+this.topOverlay.sumCellSizes(0,i)+l,u=o+this.inlineStartOverlay.sumCellSizes(0,s),c=t.hider.style,d=(()=>!r&&this.scrollableElement.scrollTop>Math.max(0,h-t.holder.clientHeight))()?1:0,g=(()=>!r&&this.scrollableElement.scrollLeft>Math.max(0,u-t.holder.clientWidth))()?1:0;c.width=`${u+g}px`,c.height=`${h+d}px`,this.topOverlay.adjustElementsSize(),this.inlineStartOverlay.adjustElementsSize(),this.bottomOverlay.adjustElementsSize()}expandHiderVerticallyBy(e){const{wtTable:t}=this;t.hider.style.height=`${parseInt(t.hider.style.height,10)+e}px`}expandHiderHorizontallyBy(e){const{wtTable:t}=this;t.hider.style.width=`${parseInt(t.hider.style.width,10)+e}px`}applyToDOM(){this.wtTable.isVisible()&&(this.topOverlay.applyToDOM(),this.bottomOverlay.clone&&this.bottomOverlay.applyToDOM(),this.inlineStartOverlay.applyToDOM())}getParentOverlay(e){if(!e)return null;const t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay];let n=null;return(0,a.arrayEach)(t,t=>{t&&t.clone&&t.clone.wtTable.TABLE.contains(e)&&(n=t.clone)}),n}syncOverlayTableClassNames(){const e=this.wtTable.TABLE,t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay];(0,a.arrayEach)(t,t=>{t&&(t.clone.wtTable.TABLE.className=e.className)})}}},33477:(e,t,n)=>{"use strict";var r=n(94988),s=n(87681),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},33895:(e,t,n)=>{"use strict";var r=n(16539);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},34039:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(81115));t.RenderedAllColumnsCalculationType=class{constructor(){(0,s.default)(this,"count",0),(0,s.default)(this,"startColumn",0),(0,s.default)(this,"endColumn",0),(0,s.default)(this,"startPosition",0),(0,s.default)(this,"isVisibleInTrimmingContainer",!0)}initialize(e){let{totalColumns:t}=e;this.count=t,this.endColumn=this.count-1}process(){}finalize(){}}},34067:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(54342),s=n(89090);t.default=()=>({_automaticallyAssignedMetaProps:void 0,activeHeaderClassName:"ht__active_highlight",allowEmpty:!0,allowHtml:!1,allowInsertColumn:!0,allowInsertRow:!0,allowInvalid:!0,allowRemoveColumn:!0,allowRemoveRow:!0,ariaTags:!0,autoColumnSize:void 0,autoRowSize:void 0,autoWrapCol:!1,autoWrapRow:!1,bindRowsWithHeaders:void 0,cell:[],cells:void 0,checkedTemplate:void 0,className:void 0,colHeaders:null,collapsibleColumns:void 0,columnHeaderHeight:void 0,columns:void 0,columnSorting:void 0,columnSummary:void 0,colWidths:void 0,commentedCellClassName:"htCommentCell",comments:!1,contextMenu:void 0,copyable:!0,copyPaste:!0,correctFormat:!1,currentColClassName:void 0,currentHeaderClassName:"ht__highlight",currentRowClassName:void 0,customBorders:!1,data:void 0,dataDotNotation:!0,dataSchema:void 0,dateFormat:"DD/MM/YYYY",timeFormat:"h:mm:ss a",datePickerConfig:void 0,defaultDate:void 0,disableVisualSelection:!1,dialog:!1,dragToScroll:!0,dropdownMenu:void 0,editor:void 0,emptyDataState:!1,enterBeginsEditing:!0,enterMoves:{col:0,row:1},fillHandle:{autoInsertRow:!1},filter:!0,filteringCaseSensitive:!1,filters:void 0,fixedColumnsLeft:0,fixedColumnsStart:0,fixedRowsBottom:0,fixedRowsTop:0,formulas:void 0,fragmentSelection:!1,headerClassName:void 0,height:void 0,hiddenColumns:void 0,hiddenRows:void 0,initialState:void 0,invalidCellClassName:"htInvalid",imeFastEdit:!1,isEmptyCol(e){let t,n,s;for(t=0,n=this.countRows();t<n;t++)if(s=this.getDataAtCell(t,e),!1===(0,r.isEmpty)(s))return!1;return!0},isEmptyRow(e){let t,n,i,o;for(t=0,n=this.countCols();t<n;t++)if(i=this.getDataAtCell(e,t),!1===(0,r.isEmpty)(i))return"object"==typeof i&&(o=this.getCellMeta(e,t),(0,s.isObjectEqual)(this.getSchema()[o.prop],i));return!0},label:void 0,language:"en-US",layoutDirection:"inherit",licenseKey:void 0,locale:"en-US",loading:!1,manualColumnFreeze:void 0,manualColumnMove:void 0,manualColumnResize:void 0,manualRowMove:void 0,manualRowResize:void 0,maxCols:1/0,maxRows:1/0,mergeCells:!1,minCols:0,minRowHeights:void 0,minRows:0,minSpareCols:0,minSpareRows:0,multiColumnSorting:void 0,navigableHeaders:!1,tabNavigation:!0,nestedHeaders:void 0,nestedRows:void 0,noWordWrapClassName:"htNoWrap",numericFormat:void 0,observeDOMVisibility:!0,outsideClickDeselects:!0,pagination:void 0,persistentState:void 0,placeholder:void 0,placeholderCellClassName:"htPlaceholder",preventOverflow:!1,preventWheel:!1,readOnly:!1,readOnlyCellClassName:"htDimmed",renderAllRows:!1,renderAllColumns:!1,renderer:void 0,rowHeaders:void 0,rowHeaderWidth:void 0,rowHeights:void 0,search:!1,selectionMode:"multiple",selectOptions:void 0,skipColumnOnPaste:!1,skipRowOnPaste:!1,sortByRelevance:!0,source:void 0,startCols:5,startRows:5,stretchH:"none",strict:void 0,tableClassName:void 0,textEllipsis:!1,themeName:void 0,tabMoves:{row:0,col:1},title:void 0,trimDropdown:!0,trimRows:void 0,trimWhitespace:!0,type:"text",uncheckedTemplate:void 0,undo:!0,validator:void 0,valueGetter:void 0,valueSetter:void 0,viewportColumnRenderingOffset:"auto",viewportRowRenderingOffset:"auto",viewportColumnRenderingThreshold:0,viewportRowRenderingThreshold:0,visibleRows:10,width:void 0,wordWrap:!0})},34105:(e,t,n)=>{"use strict";n(22588),t.__esModule=!0,n(81396),n(88633),n(14618);var r=n(14298),s=n(38942),i=n(14089),o=n(16656);function a(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 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="ht-empty-data-state",d=`<div data-ref="emptyDataStateElement" class="${c} handsontable">\n <div class="${c}__content-wrapper">\n <div data-ref="emptyDataStateInner" class="${c}__content-wrapper-inner"></div>\n </div>\n</div>`;var g=new WeakMap,p=new WeakMap,f=new WeakMap,m=new WeakMap;t.EmptyDataStateUI=class{constructor(e){let{rootElement:t,rootDocument:n}=e;a(this,g,void 0),a(this,p,void 0),a(this,f,void 0),a(this,m,void 0),h(g,this,t),h(p,this,n),this.install()}install(){var e;if(null!==(e=l(f,this))&&void 0!==e&&e.emptyDataStateElement)return;const t=r.html`${d}`;h(f,this,t.refs);const{emptyDataStateInner:n,emptyDataStateElement:o}=l(f,this);(0,s.setAttribute)(n,[(0,i.A11Y_TABINDEX)(-1)]),(0,s.setAttribute)(o,[(0,i.A11Y_TABINDEX)(-1)]),l(g,this).after(t.fragment)}getElement(){var e;return null===(e=l(f,this))||void 0===e?void 0:e.emptyDataStateElement}getFocusableElements(){const{emptyDataStateButtons:e,emptyDataStateInner:t}=l(f,this),n=Array.from(null==e?void 0:e.children);return 0===n.length?[t]:n}show(){var e;null!==(e=l(f,this))&&void 0!==e&&e.emptyDataStateElement&&(l(f,this).emptyDataStateElement.style.display="block")}hide(){var e,t;null!==(e=l(f,this))&&void 0!==e&&e.emptyDataStateElement&&(null===(t=l(m,this))||void 0===t||t.remove(),h(m,this,null),l(f,this).emptyDataStateElement.style.display="none")}updateContent(e){var t;const{emptyDataStateInner:n}=l(f,this);let s="";s="string"==typeof e?{title:e}:{title:null==e?void 0:e.title,description:null==e?void 0:e.description,buttons:null==e?void 0:e.buttons};const i=r.html`${(e=>{let{title:t,description:n,buttons:r}=e;return`\n <div class="${c}__content">\n ${t?`<h2 class="${c}__title">${(0,o.stripTags)(t)}</h2>`:""}\n ${n?`<p class="${c}__description">${(0,o.stripTags)(n)}</p>`:""}\n </div>\n <div\n data-ref="emptyDataStateButtons"\n class="${c}__buttons${(null==r?void 0:r.length)>0?` ${c}__buttons--has-buttons`:""}"\n >${(null==r?void 0:r.length)>0?r.map(e=>`<button class="ht-button ht-button--${e.type}">${(0,o.stripTags)(e.text)}</button>`).join(""):""}</div>`})(s)}`;h(f,this,{...l(f,this),...i.refs}),n.innerHTML="",n.appendChild(i.fragment),(null===(t=s.buttons)||void 0===t?void 0:t.length)>0&&Array.from(l(f,this).emptyDataStateButtons.children).forEach((e,t)=>{e.addEventListener("click",s.buttons[t].callback)})}updateClassNames(e){const{emptyDataStateElement:t}=l(f,this);e.countRenderableColumns()>0&&e.getColumnHeadersCount()>0?(0,s.addClass)(t,`${c}--disable-top-border`):(0,s.removeClass)(t,`${c}--disable-top-border`),e.countRenderableRows()>0&&e.getRowHeadersCount()>0?(0,s.addClass)(t,`${c}--disable-inline-border`):(0,s.removeClass)(t,`${c}--disable-inline-border`),e.hasHorizontalScroll()&&!e.isHorizontallyScrollableByWindow()?(0,s.addClass)(t,`${c}--disable-bottom-border`):(0,s.removeClass)(t,`${c}--disable-bottom-border`)}updateSize(e){const{emptyDataStateElement:t}=l(f,this),n=e.hasHorizontalScroll()?(0,s.getScrollbarWidth)(e.hot.rootDocument):0,r=e.countRenderableRows(),i=e.countRenderableColumns();var o;(t.style.top=i>0?`${e.getColumnHeaderHeight()}px`:"0px",t.style.insetInlineStart=r>0?`${e.getRowHeaderWidth()}px`:"0px",0===r)?(l(m,this)||(h(m,this,l(p,this).createElement("div")),l(m,this).classList.add(`${c}-placeholder`),e._wt.wtTable.holder.appendChild(l(m,this))),l(m,this).style.width="100%",l(m,this).style.height="150px"):(null===(o=l(m,this))||void 0===o||o.remove(),h(m,this,null));let a=e.getWorkspaceWidth(),u=e.getTableHeight();e.isHorizontallyScrollableByWindow()?i>0?a=e.getTotalTableWidth():r>0&&(a=e.getViewportWidth()):r>0?a=e.getViewportWidth():e.getTableWidth()-e.getRowHeaderWidth()<e.getViewportWidth()&&i>0&&(a=e.getTableWidth()),e.isVerticallyScrollableByWindow()||e.hasVerticalScroll()?u=i>0?e.hot.getTableHeight()-e.getColumnHeaderHeight():e.hot.getTableHeight():0===r&&(u=e.getViewportHeight()-n),t.style.width=`${a}px`,t.style.height=`${u}px`}destroy(){var e,t;null===(e=l(f,this))||void 0===e||null===(e=e.emptyDataStateElement)||void 0===e||e.remove(),null===(t=l(m,this))||void 0===t||t.remove(),h(m,this,null),h(f,this,null)}}},34160:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182);var s=r(n(81115)),i=n(46971),o=n(6446),a=n(96324),l=n(89386),h=n(77002),u=r(n(90308)),c=n(30152),d=n(58617),g=n(38942),p=n(68834),f=n(37849),m=n(54342),E=n(89090),w=r(n(24285)),y=n(77712),C=n(14089);function v(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 S(e,t,n){return e.set(T(e,t),n),n}function R(e,t){return e.get(T(e,t))}function T(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 _=new WeakMap,N=new WeakMap,A=new WeakMap;class b{get tableBorderWidth(){return void 0===R(A,this)&&this.hotMenu&&S(A,this,parseInt(this.hotMenu.rootWindow.getComputedStyle(this.hotMenu.view._wt.wtTable.TABLE).borderWidth,10)),R(A,this)}constructor(e,t){var n=this;(0,s.default)(this,"hot",void 0),(0,s.default)(this,"options",void 0),(0,s.default)(this,"eventManager",new u.default(this)),(0,s.default)(this,"container",void 0),(0,s.default)(this,"positioner",void 0),(0,s.default)(this,"hotMenu",null),(0,s.default)(this,"hotSubMenus",{}),(0,s.default)(this,"parentMenu",void 0),(0,s.default)(this,"menuItems",null),(0,s.default)(this,"origOutsideClickDeselects",null),v(this,_,void 0),v(this,N,void 0),v(this,A,void 0),this.hot=e,this.options=t||{parent:null,name:null,className:"",keepInViewport:!0,standalone:!1,minWidth:215,container:this.hot.rootPortalElement},this.container=this.createContainer(this.options.name),this.positioner=new i.Positioner(this.options.keepInViewport),this.parentMenu=this.options.parent||null,this.registerEvents(),this.isSubMenu()&&this.addLocalHook("afterSelectionChange",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.parentMenu.runLocalHooks("afterSelectionChange",...t)}),this.hot.addHook("afterSetTheme",(e,t)=>{this.options.container!==this.hot.rootPortalElement&&((0,g.removeClass)(this.options.container,/ht-theme-.*/g),(0,g.addClass)(this.options.container,e)),t||this.close()})}registerEvents(){let e=this.hot.rootWindow;for(;e;)this.eventManager.addEventListener(e.document,"mousedown",e=>this.onDocumentMouseDown(e)),this.eventManager.addEventListener(e.document,"touchstart",e=>this.onDocumentMouseDown(e)),this.eventManager.addEventListener(e.document,"contextmenu",e=>this.onDocumentContextMenu(e)),e=(0,g.getParentWindow)(e)}setMenuItems(e){this.menuItems=e}getNavigator(){return R(_,this)}getKeyboardShortcutsCtrl(){return R(N,this)}getSelectedItem(){return this.hasSelectedItem()?this.hotMenu.getSourceDataAtRow(this.hotMenu.getSelectedActive()[0]):null}hasSelectedItem(){return Array.isArray(this.hotMenu.getSelectedActive())}isSubMenu(){return null!==this.parentMenu}open(){this.runLocalHooks("beforeOpen"),this.container.removeAttribute("style"),this.container.style.display="block";const e=(0,f.debounce)(e=>this.openSubMenu(e),300),t=this.options.minWidth||215;let n=!1,r=(0,c.arrayFilter)(this.menuItems,e=>(e.key===l.NO_ITEMS&&(n=!0),(0,h.isItemHidden)(e,this.hot)));if(r.length<1&&!n)r.push((0,l.predefinedItems)()[l.NO_ITEMS]);else if(0===r.length)return;r=(0,h.filterSeparators)(r,l.SEPARATOR);let s=!1;const i={data:r,colHeaders:!1,autoColumnSize:!0,autoWrapRow:!1,modifyColWidth:e=>(0,m.isDefined)(e)&&e<t?t:e,autoRowSize:!1,readOnly:!0,editor:!1,copyPaste:!1,hiddenRows:!0,maxCols:1,columns:[{data:"name",renderer:(0,y.createMenuItemRenderer)(this.hot)}],renderAllRows:!0,fragmentSelection:!1,outsideClickDeselects:!1,disableVisualSelection:"area",layoutDirection:this.hot.isRtl()?"rtl":"ltr",ariaTags:!1,themeName:this.hot.getCurrentThemeName(),beforeRefreshDimensions:()=>!1,beforeOnCellMouseOver:(e,t)=>{this.hotMenu.stylesHandler.isClassicTheme()?R(_,this).setCurrentPage(t.row):R(_,this).setPageCursorAt(t.row)},afterOnCellMouseOver:(t,n)=>{this.isAllSubMenusClosed()?e(n.row):this.openSubMenu(n.row)},afterOnCellContextMenu:e=>{e.preventDefault(),(0,d.isWindowsOS)()&&s&&this.hasSelectedItem()&&this.close(!0)},afterSelection:(e,t,n,r,s)=>{this.hotMenu.view.isMouseDown()&&(s.value=!0),this.runLocalHooks("afterSelectionChange",this.getSelectedItem())},beforeOnCellMouseUp:e=>{this.hasSelectedItem()&&(s=!this.isCommandPassive(this.getSelectedItem()),this.executeCommand(e))},afterOnCellMouseUp:e=>{(0,d.isWindowsOS)()&&(0,p.isRightClick)(e)||!s||!this.hasSelectedItem()||((0,d.isMobileBrowser)()||(0,d.isIpadOS)()?this.hot._registerTimeout(()=>this.close(!0),325):this.close(!0))},afterUnlisten:()=>{!this.hasSelectedItem()&&this.isOpened()&&this.hotMenu.listen()}};this.origOutsideClickDeselects=this.hot.getSettings().outsideClickDeselects,this.hot.getSettings().outsideClickDeselects=!1,this.hotMenu=new this.hot.constructor(this.container,i),this.hotMenu.addHook("afterInit",()=>this.onAfterInit()),this.hotMenu.init(),S(_,this,(0,o.createMenuNavigator)(this.hotMenu)),S(N,this,(0,a.createKeyboardShortcutsCtrl)(this)),R(N,this).listen(),this.focus(),this.isSubMenu()&&this.addLocalHook("afterOpen",()=>this.parentMenu.runLocalHooks("afterSubmenuOpen",this)),this.runLocalHooks("afterOpen",this)}close(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isOpened())if(e&&this.isSubMenu())this.parentMenu.close();else if(R(_,this).clear(),this.closeAllSubMenus(),this.container.style.display="none",this.hotMenu.destroy(),this.hotMenu=null,this.hot.getSettings().outsideClickDeselects=this.origOutsideClickDeselects,this.runLocalHooks("afterClose"),this.isSubMenu()){if(this.hot.getSettings().ariaTags){const e=this.parentMenu.hotMenu.getSelectedActive();if(e){const t=this.parentMenu.hotMenu.getCell(e[0],0);(0,g.setAttribute)(t,[(0,C.A11Y_EXPANDED)(!1)])}}this.parentMenu.hotMenu.listen()}}openSubMenu(e){if(!this.hotMenu)return!1;const t=this.hotMenu.getCell(e,0);if(this.closeAllSubMenus(),!t||!(0,h.hasSubMenu)(t))return!1;const n=this.hotMenu.getSourceDataAtRow(e),r=new b(this.hot,{parent:this,name:n.name,className:this.options.className,keepInViewport:!0,container:this.options.container});return r.setMenuItems(n.submenu.items),r.open(),r.setPosition(t.getBoundingClientRect()),this.hotSubMenus[n.key]=r,this.hot.getSettings().ariaTags&&(0,g.setAttribute)(t,[(0,C.A11Y_EXPANDED)(!0)]),r}closeSubMenu(e){const t=this.hotMenu.getSourceDataAtRow(e),n=this.hotSubMenus[t.key];if(n){n.destroy(),delete this.hotSubMenus[t.key];const r=this.hotMenu.getCell(e,0);this.hot.getSettings().ariaTags&&(0,g.setAttribute)(r,[(0,C.A11Y_EXPANDED)(!1)])}}closeAllSubMenus(){(0,c.arrayEach)(this.hotMenu.getData(),(e,t)=>this.closeSubMenu(t))}isAllSubMenusClosed(){return 0===Object.keys(this.hotSubMenus).length}focus(){this.isOpened()&&(this.hotMenu.rootElement.focus({preventScroll:!0}),this.getKeyboardShortcutsCtrl().listen(),this.hotMenu.listen())}destroy(){const e=this.container.parentNode;this.clearLocalHooks(),this.close(),this.parentMenu=null,this.eventManager.destroy(),e&&e.removeChild(this.container)}isOpened(){return null!==this.hotMenu}executeCommand(e){if(!this.isOpened()||!this.hasSelectedItem())return;const t=this.getSelectedItem();if(this.runLocalHooks("select",t,e),this.isCommandPassive(t))return;const n=this.hot.getSelectedRange(),r=n?(0,h.normalizeSelection)(n):[];this.runLocalHooks("executeCommand",t.key,r,e),this.isSubMenu()&&this.parentMenu.runLocalHooks("executeCommand",t.key,r,e)}isCommandPassive(e){return!1===e.isCommand||(0,h.isItemSeparator)(e)||(0,h.isItemDisabled)(e,this.hot)||(0,h.isItemSubMenu)(e)}setOffset(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.positioner.setOffset(e,t)}setPosition(e){this.isSubMenu()&&this.positioner.setParentElement(this.parentMenu.container),this.positioner.setElement(this.container).updatePosition(e)}updateMenuDimensions(){const{wtTable:e}=this.hotMenu.view._wt,t=this.hotMenu.getSettings().data,n=e.hider.style,r=e.holder.style,s=parseInt(n.width,10),i=(0,c.arrayReduce)(t,(e,t,n)=>{const r=this.hotMenu.getCell(n,0)?(0,g.outerHeight)(this.hotMenu.getCell(n,0)):0;return e+(t.name===l.SEPARATOR?1:r)},0);this.hotMenu.stylesHandler.isClassicTheme()?(r.width=`${s+3}px`,r.height=`${i+3}px`):(r.width=`${s}px`,r.height=`${i}px`),n.height=r.height}createContainer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=this.options.container.ownerDocument;let n,r=e;return r&&((0,f.isFunction)(r)&&(r=r.call(this.hot),r=null===r||(0,m.isUndefined)(r)?"":r.toString()),r=r.replace(/[^A-Za-z0-9]/g,"_"),r=`${this.options.className}Sub_${r}`,n=t.querySelector(`.${this.options.className}.${r}`)),n||(n=t.createElement("div"),(0,g.addClass)(n,`htMenu handsontable ${this.options.className}`),r&&(0,g.addClass)(n,r),this.options.container.appendChild(n)),n}onAfterInit(){this.updateMenuDimensions(),this.hot.getSettings().ariaTags&&(0,g.setAttribute)(this.hotMenu.rootElement,[(0,C.A11Y_MENU)(),(0,C.A11Y_TABINDEX)(-1)])}onDocumentMouseDown(e){this.isOpened()&&(this.options.standalone&&this.hotMenu&&!(0,g.isChildOf)(e.target,this.hotMenu.rootElement)?this.close(!0):!this.isAllSubMenusClosed()&&!this.isSubMenu()||(0,g.isChildOf)(e.target,".htMenu")||this.close(!0))}onDocumentContextMenu(e){this.isOpened()&&(0,g.hasClass)(e.target,"htCore")&&(0,g.isChildOf)(e.target,this.hotMenu.rootElement)&&e.preventDefault()}}t.Menu=b,(0,E.mixin)(b,w.default)},34203:()=>{},34280:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(1999);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.NestedHeaders=r.NestedHeaders},34341:(e,t,n)=>{"use strict";var r=n(56769),s=n(64854),i=n(69946),o=function(e){return function(t,n,o){var a=r(t),l=i(a);if(0===l)return!e&&-1;var h,u=s(o,l);if(e&&n!=n){for(;l>u;)if((h=a[u++])!=h)return!0}else for(;l>u;u++)if((e||u in a)&&a[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},34899:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,t.createHighlight=function(e){let{cellCornerVisible:t,...n}=e;return new i.default({className:"current",headerAttributes:[(0,o.A11Y_SELECTED)()],border:{width:2,color:"#4b89ff",cornerVisible:t},...n,selectionType:s.HIGHLIGHT_FOCUS_TYPE})};var s=n(51191),i=r(n(5103)),o=n(14089)},34933:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(98190);t.CELL_TYPE=r.CELL_TYPE,t.TextCellType=r.TextCellType},35030:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(62243);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.Formulas=r.Formulas},35097:e=>{"use strict";e.exports={}},35514:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(63879);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ManualColumnFreeze=r.ManualColumnFreeze},35617:(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--guideline")}}t.default=o},35749:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(89090);const s={getFirstRenderedRow(){const e=this.getRenderedRowsCount();return 0===e?-1:this.wtSettings.getSetting("totalRows")-e},getFirstVisibleRow(){return this.getFirstRenderedRow()},getFirstPartiallyVisibleRow(){return this.getFirstRenderedRow()},getLastRenderedRow(){return 0===this.getRenderedRowsCount()?-1:this.wtSettings.getSetting("totalRows")-1},getLastVisibleRow(){return this.getLastRenderedRow()},getLastPartiallyVisibleRow(){return this.getLastRenderedRow()},getRenderedRowsCount(){return Math.min(this.wtSettings.getSetting("totalRows"),this.wtSettings.getSetting("fixedRowsBottom"))},getVisibleRowsCount(){return this.getRenderedRowsCount()},getColumnHeadersCount:()=>0};(0,r.defineGetter)(s,"MIXIN_NAME","stickyRowsBottom",{writable:!1,enumerable:!1});t.default=s},35845:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182);var s=r(n(81115)),i=r(n(82860));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(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;class u{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];var i,a,u;(0,s.default)(this,"highlight",null),(0,s.default)(this,"from",null),(0,s.default)(this,"to",null),o(this,h,!1),this.highlight=e.clone(),this.from=t.clone(),this.to=n.clone(),a=this,u=r,(i=h).set(l(i,a),u)}setHighlight(e){return this.highlight=e.clone(),this}setFrom(e){return this.from=e.clone(),this}setTo(e){return this.to=e.clone(),this}normalize(){return this.highlight.normalize(),this.from.normalize(),this.to.normalize(),this}isValid(e){return this.from.isValid(e)&&this.to.isValid(e)}isSingle(){return this.isSingleCell()||this.isSingleHeader()}isSingleCell(){return this.from.row>=0&&this.from.row===this.to.row&&this.from.col>=0&&this.from.col===this.to.col}isSingleHeader(){return(this.from.row<0||this.from.col<0)&&this.from.row===this.to.row&&this.from.col===this.to.col}isHeader(){return!(!this.from.isHeader()||!this.to.isHeader())||(this.from.col<0&&this.to.col<0||this.from.row<0&&this.to.row<0)}containsHeaders(){return this.from.isHeader()||this.to.isHeader()}getOuterHeight(){return Math.max(this.from.row,this.to.row)-Math.min(this.from.row,this.to.row)+1}getOuterWidth(){return Math.max(this.from.col,this.to.col)-Math.min(this.from.col,this.to.col)+1}getHeight(){if(this.from.row<0&&this.to.row<0)return 0;const e=Math.max(this.from.row,0),t=Math.max(this.to.row,0);return Math.max(e,t)-Math.min(e,t)+1}getWidth(){if(this.from.col<0&&this.to.col<0)return 0;const e=Math.max(this.from.col,0),t=Math.max(this.to.col,0);return Math.max(e,t)-Math.min(e,t)+1}getCellsCount(){return this.getWidth()*this.getHeight()}includes(e){const{row:t,col:n}=e,r=this.getOuterTopStartCorner(),s=this.getOuterBottomEndCorner();return r.row<=t&&s.row>=t&&r.col<=n&&s.col>=n}includesRange(e){return this.includes(e.getOuterTopStartCorner())&&this.includes(e.getOuterBottomEndCorner())}isEqual(e){return Math.min(this.from.row,this.to.row)===Math.min(e.from.row,e.to.row)&&Math.max(this.from.row,this.to.row)===Math.max(e.from.row,e.to.row)&&Math.min(this.from.col,this.to.col)===Math.min(e.from.col,e.to.col)&&Math.max(this.from.col,this.to.col)===Math.max(e.from.col,e.to.col)}overlaps(e){return e.isSouthEastOf(this.getOuterTopLeftCorner())&&e.isNorthWestOf(this.getOuterBottomRightCorner())}isSouthEastOf(e){return this.getOuterTopLeftCorner().isSouthEastOf(e)||this.getOuterBottomRightCorner().isSouthEastOf(e)}isNorthWestOf(e){return this.getOuterTopLeftCorner().isNorthWestOf(e)||this.getOuterBottomRightCorner().isNorthWestOf(e)}isOverlappingHorizontally(e){return this.getOuterTopEndCorner().col>=e.getOuterTopStartCorner().col&&this.getOuterTopEndCorner().col<=e.getOuterTopEndCorner().col||this.getOuterTopStartCorner().col<=e.getOuterTopEndCorner().col&&this.getOuterTopStartCorner().col>=e.getOuterTopStartCorner().col}isOverlappingVertically(e){return this.getOuterBottomStartCorner().row>=e.getOuterTopRightCorner().row&&this.getOuterBottomStartCorner().row<=e.getOuterBottomStartCorner().row||this.getOuterTopEndCorner().row<=e.getOuterBottomStartCorner().row&&this.getOuterTopEndCorner().row>=e.getOuterTopRightCorner().row}expand(e){const t=this.getOuterTopStartCorner(),n=this.getOuterBottomEndCorner();return(e.row<t.row||e.col<t.col||e.row>n.row||e.col>n.col)&&(this.from=this._createCellCoords(Math.min(t.row,e.row),Math.min(t.col,e.col)),this.to=this._createCellCoords(Math.max(n.row,e.row),Math.max(n.col,e.col)),!0)}expandByRange(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.includesRange(e)||!this.overlaps(e))return!1;const n=this.getOuterTopStartCorner(),r=this.getOuterBottomEndCorner(),s=this.getDirection(),i=e.getOuterTopStartCorner(),o=e.getOuterBottomEndCorner(),a=Math.min(n.row,i.row),l=Math.min(n.col,i.col),h=Math.max(r.row,o.row),u=Math.max(r.col,o.col),c=this._createCellCoords(a,l),d=this._createCellCoords(h,u);return this.from=c,this.to=d,this.setDirection(s),t&&(this.highlight.row===this.getOuterBottomRightCorner().row&&"N-S"===this.getVerticalDirection()&&this.flipDirectionVertically(),this.highlight.col===this.getOuterTopRightCorner().col&&"W-E"===this.getHorizontalDirection()&&this.flipDirectionHorizontally()),!0}getDirection(){return this.from.isNorthWestOf(this.to)?"NW-SE":this.from.isNorthEastOf(this.to)?"NE-SW":this.from.isSouthEastOf(this.to)?"SE-NW":this.from.isSouthWestOf(this.to)?"SW-NE":void 0}setDirection(e){switch(e){case"NW-SE":[this.from,this.to]=[this.getOuterTopLeftCorner(),this.getOuterBottomRightCorner()];break;case"NE-SW":[this.from,this.to]=[this.getOuterTopRightCorner(),this.getOuterBottomLeftCorner()];break;case"SE-NW":[this.from,this.to]=[this.getOuterBottomRightCorner(),this.getOuterTopLeftCorner()];break;case"SW-NE":[this.from,this.to]=[this.getOuterBottomLeftCorner(),this.getOuterTopRightCorner()]}}getVerticalDirection(){return["NE-SW","NW-SE"].indexOf(this.getDirection())>-1?"N-S":"S-N"}getHorizontalDirection(){return["NW-SE","SW-NE"].indexOf(this.getDirection())>-1?"W-E":"E-W"}flipDirectionVertically(){switch(this.getDirection()){case"NW-SE":this.setDirection("SW-NE");break;case"NE-SW":this.setDirection("SE-NW");break;case"SE-NW":this.setDirection("NE-SW");break;case"SW-NE":this.setDirection("NW-SE")}}flipDirectionHorizontally(){switch(this.getDirection()){case"NW-SE":this.setDirection("NE-SW");break;case"NE-SW":this.setDirection("NW-SE");break;case"SE-NW":this.setDirection("SW-NE");break;case"SW-NE":this.setDirection("SE-NW")}}getTopStartCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}getTopLeftCorner(){return a(h,this)?this.getTopEndCorner():this.getTopStartCorner()}getBottomEndCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}getBottomRightCorner(){return a(h,this)?this.getBottomStartCorner():this.getBottomEndCorner()}getTopEndCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}getTopRightCorner(){return a(h,this)?this.getTopStartCorner():this.getTopEndCorner()}getBottomStartCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}getBottomLeftCorner(){return a(h,this)?this.getBottomEndCorner():this.getBottomStartCorner()}getOuterTopStartCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}getOuterTopLeftCorner(){return a(h,this)?this.getOuterTopEndCorner():this.getOuterTopStartCorner()}getOuterBottomEndCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}getOuterBottomRightCorner(){return a(h,this)?this.getOuterBottomStartCorner():this.getOuterBottomEndCorner()}getOuterTopEndCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}getOuterTopRightCorner(){return a(h,this)?this.getOuterTopStartCorner():this.getOuterTopEndCorner()}getOuterBottomStartCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}getOuterBottomLeftCorner(){return a(h,this)?this.getOuterBottomEndCorner():this.getOuterBottomStartCorner()}isCorner(e){return e.isEqual(this.getOuterTopLeftCorner())||e.isEqual(this.getOuterTopRightCorner())||e.isEqual(this.getOuterBottomLeftCorner())||e.isEqual(this.getOuterBottomRightCorner())}getOppositeCorner(e){return e instanceof i.default&&(e.isEqual(this.getOuterBottomEndCorner())?this.getOuterTopStartCorner():e.isEqual(this.getOuterTopStartCorner())?this.getOuterBottomEndCorner():e.isEqual(this.getOuterTopEndCorner())?this.getOuterBottomStartCorner():e.isEqual(this.getOuterBottomStartCorner())?this.getOuterTopEndCorner():void 0)}getBordersSharedWith(e){if(!this.includesRange(e))return[];const t=Math.min(this.from.row,this.to.row),n=Math.max(this.from.row,this.to.row),r=Math.min(this.from.col,this.to.col),s=Math.max(this.from.col,this.to.col),i=Math.min(e.from.row,e.to.row),o=Math.max(e.from.row,e.to.row),l=Math.min(e.from.col,e.to.col),u=Math.max(e.from.col,e.to.col),c=[];return t===i&&c.push("top"),s===u&&c.push(a(h,this)?"left":"right"),n===o&&c.push("bottom"),r===l&&c.push(a(h,this)?"right":"left"),c}getInner(){const e=this.getOuterTopStartCorner(),t=this.getOuterBottomEndCorner(),n=[];for(let r=e.row;r<=t.row;r++)for(let s=e.col;s<=t.col;s++)this.from.row===r&&this.from.col===s||this.to.row===r&&this.to.col===s||n.push(this._createCellCoords(r,s));return n}getAll(){const e=this.getOuterTopStartCorner(),t=this.getOuterBottomEndCorner(),n=[];for(let r=e.row;r<=t.row;r++)for(let s=e.col;s<=t.col;s++)e.row===r&&e.col===s?n.push(e):t.row===r&&t.col===s?n.push(t):n.push(this._createCellCoords(r,s));return n}forAll(e){const t=this.getOuterTopStartCorner(),n=this.getOuterBottomEndCorner();for(let r=t.row;r<=n.row;r++)for(let s=t.col;s<=n.col;s++){if(!1===e(r,s))return}}clone(){return new u(this.highlight,this.from,this.to,a(h,this))}toObject(){return{from:this.from.toObject(),to:this.to.toObject()}}_createCellCoords(e,t){return new i.default(e,t,a(h,this))}}t.default=u},35891:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(47266);t.CELL_TYPE=r.CELL_TYPE,t.TimeCellType=r.TimeCellType},36018:()=>{},36037:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(59839),n(30417);var s=r(n(81115));t.PartiallyVisibleRowsCalculationType=class{constructor(){(0,s.default)(this,"count",0),(0,s.default)(this,"startRow",null),(0,s.default)(this,"endRow",null),(0,s.default)(this,"startPosition",null),(0,s.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedHeight:n,zeroBasedScrollOffset:r,innerViewportHeight:s}=t;n<=r&&(this.startRow=e),n>=r&&n<=s&&null===this.startRow&&(this.startRow=e),this.endRow=e}finalize(e){var t;const{scrollOffset:n,viewportHeight:r,horizontalScrollbarHeight:s,totalRows:i,needReverse:o,startPositions:a,rowHeight:l}=e;if(this.endRow===i-1&&o)for(this.startRow=this.endRow;this.startRow>0;){const e=a[this.endRow]+l-a[this.startRow-1];if(this.startRow-=1,e>=r-s)break}this.startPosition=null!==(t=a[this.startRow])&&void 0!==t?t:null;n+r-s<0||n>a.at(-1)+l?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,i<this.endRow&&(this.endRow=i-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}},36053:(e,t,n)=>{"use strict";var r,s,i,o=n(89035),a=n(14326),l=n(52270),h=n(54060),u=n(67343),c=n(79212),d=n(71671),g=n(58719),p=d("iterator"),f=!1;[].keys&&("next"in(i=[].keys())?(s=u(u(i)))!==Object.prototype&&(r=s):f=!0),!l(r)||o(function(){var e={};return r[p].call(e)!==e})?r={}:g&&(r=h(r)),a(r[p])||c(r,p,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}},36263:(e,t,n)=>{"use strict";t.__esModule=!0,t.multipleScrollStrategy=function(e){return t=>{const n=(0,r.createScrollTargetCalculator)(e),s={row:n.getComputedRowTarget(t),col:n.getComputedColumnTarget(t)};e.scrollViewportTo(s,()=>{const{row:t,col:n}=s;(0,r.scrollWindowToCell)(e.getCell(t,n,!0))})}};var r=n(92634)},36329:()=>{},36405:(e,t,n)=>{"use strict";var r=n(60369);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},36415:(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(37849),a=r(n(95050)),l=r(n(17194)),h=n(10175),u=r(n(40887)),c=r(n(67537)),d=n(21596),g=n(14089);t.default=class{constructor(e,t,n,r,o){(0,s.default)(this,"wtSettings",null),(0,s.default)(this,"domBindings",void 0),(0,s.default)(this,"TBODY",null),(0,s.default)(this,"THEAD",null),(0,s.default)(this,"COLGROUP",null),(0,s.default)(this,"hasTableHeight",!0),(0,s.default)(this,"hasTableWidth",!0),(0,s.default)(this,"isTableVisible",!1),(0,s.default)(this,"tableOffset",0),(0,s.default)(this,"holderOffset",0),this.domBindings=n,this.isMaster="master"===o,this.name=o,this.dataAccessObject=e,this.facadeGetter=t,this.wtSettings=r,this.instance=this.dataAccessObject.wot,this.wot=this.dataAccessObject.wot,this.TABLE=n.rootTable,(0,i.removeTextNodes)(this.TABLE),this.spreader=this.createSpreader(this.TABLE),this.hider=this.createHider(this.spreader),this.holder=this.createHolder(this.hider),this.wtRootElement=this.holder.parentNode,this.isMaster&&this.alignOverlaysWithTrimmingContainer(),this.fixTableDomTree(),this.rowFilter=null,this.columnFilter=null,this.correctHeaderWidth=!1;const a=this.wtSettings.getSettingPure("rowHeaderWidth");this.wtSettings.update("rowHeaderWidth",()=>this._modifyRowHeaderWidth(a)),this.rowUtils=new c.default(this.dataAccessObject,this.wtSettings),this.columnUtils=new u.default(this.dataAccessObject,this.wtSettings),this.tableRenderer=new h.Renderer({TABLE:this.TABLE,THEAD:this.THEAD,COLGROUP:this.COLGROUP,TBODY:this.TBODY,rowUtils:this.rowUtils,columnUtils:this.columnUtils,cellRenderer:this.wtSettings.getSettingPure("cellRenderer"),stylesHandler:this.wtSettings.getSetting("stylesHandler")})}is(e){return this.name===e}fixTableDomTree(){const e=this.domBindings.rootDocument;this.TBODY=this.TABLE.querySelector("tbody"),this.TBODY||(this.TBODY=e.createElement("tbody"),this.TABLE.appendChild(this.TBODY)),this.THEAD=this.TABLE.querySelector("thead"),this.THEAD||(this.THEAD=e.createElement("thead"),this.TABLE.insertBefore(this.THEAD,this.TBODY)),this.COLGROUP=this.TABLE.querySelector("colgroup"),this.COLGROUP||(this.COLGROUP=e.createElement("colgroup"),this.TABLE.insertBefore(this.COLGROUP,this.THEAD))}createSpreader(e){const t=e.parentNode;let n;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,i.hasClass)(t,"wtHolder")||(n=this.domBindings.rootDocument.createElement("div"),n.className="wtSpreader",t&&t.insertBefore(n,e),n.appendChild(e)),n.style.position="relative",this.wtSettings.getSetting("ariaTags")&&(0,i.setAttribute)(n,[(0,g.A11Y_PRESENTATION)()]),n}createHider(e){const t=e.parentNode;let n;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,i.hasClass)(t,"wtHolder")||(n=this.domBindings.rootDocument.createElement("div"),n.className="wtHider",t&&t.insertBefore(n,e),n.appendChild(e)),this.wtSettings.getSetting("ariaTags")&&(0,i.setAttribute)(n,[(0,g.A11Y_PRESENTATION)()]),n}createHolder(e){const t=e.parentNode;let n;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,i.hasClass)(t,"wtHolder")||(n=this.domBindings.rootDocument.createElement("div"),n.style.position="relative",n.className="wtHolder",this.isMaster&&(0,i.setAttribute)(n,[(0,g.A11Y_TABINDEX)(-1)]),t&&t.insertBefore(n,e),this.isMaster&&(n.parentNode.className+="ht_master handsontable",n.parentNode.setAttribute("dir",this.wtSettings.getSettingPure("rtlMode")?"rtl":"ltr"),this.wtSettings.getSetting("ariaTags")&&(0,i.setAttribute)(n.parentNode,[(0,g.A11Y_PRESENTATION)()])),n.appendChild(e)),this.wtSettings.getSetting("ariaTags")&&(0,i.setAttribute)(n,[(0,g.A11Y_PRESENTATION)()]),n}draw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{wtSettings:t}=this,{wtOverlays:n,wtViewport:r}=this.dataAccessObject,s=t.getSetting("totalRows"),o=t.getSetting("totalColumns"),h=t.getSetting("rowHeaders"),u=h.length,c=t.getSetting("columnHeaders"),g=c.length;let p=e;if(this.isMaster&&(n.beforeDraw(),this.holderOffset=(0,i.offset)(this.holder),p=r.createCalculators(p),u&&!t.getSetting("fixedColumnsStart"))){const e=n.inlineStartOverlay.getScrollPosition(),t=this.correctHeaderWidth;this.correctHeaderWidth=0!==e,t!==this.correctHeaderWidth&&(p=!1)}if(p)this.isMaster&&n.refresh(!0);else{this.isMaster?this.tableOffset=(0,i.offset)(this.TABLE):this.tableOffset=this.dataAccessObject.parentTableOffset;const e=Math.max(this.getFirstRenderedRow(),0),t=Math.max(this.getFirstRenderedColumn(),0);this.rowFilter=new l.default(e,s,g),this.columnFilter=new a.default(t,o,u);let p=!0;if(this.isMaster){this.alignOverlaysWithTrimmingContainer();const e={};this.wtSettings.getSetting("beforeDraw",!0,e),p=!0!==e.skipRender}p&&(this.tableRenderer.setHeaderContentRenderers(h,c),(this.is(d.CLONE_BOTTOM)||this.is(d.CLONE_BOTTOM_INLINE_START_CORNER))&&this.tableRenderer.setHeaderContentRenderers(h,[]),this.resetOversizedRows(),this.tableRenderer.setActiveOverlayName(this.name).setViewportSize(this.getRenderedRowsCount(),this.getRenderedColumnsCount()).setFilters(this.rowFilter,this.columnFilter).render(),this.isMaster&&this.markOversizedColumnHeaders(),this.adjustColumnHeaderHeights(),(this.isMaster||this.is(d.CLONE_BOTTOM))&&this.markOversizedRows(),this.isMaster?(this.wtSettings.getSetting("externalRowCalculator")||r.createVisibleCalculators(),n.refresh(!1),n.applyToDOM(),this.wtSettings.getSetting("onDraw",!0)):this.is(d.CLONE_BOTTOM)&&this.dataAccessObject.cloneSource.wtOverlays.adjustElementsSize())}let f=!1;return this.isMaster&&(f=n.topOverlay.resetFixedPosition(),n.bottomOverlay.clone&&(f=n.bottomOverlay.resetFixedPosition()||f),f=n.inlineStartOverlay.resetFixedPosition()||f,n.topInlineStartCornerOverlay&&n.topInlineStartCornerOverlay.resetFixedPosition(),n.bottomInlineStartCornerOverlay&&n.bottomInlineStartCornerOverlay.clone&&n.bottomInlineStartCornerOverlay.resetFixedPosition()),f?(n.refreshAll(),n.adjustElementsSize()):this.dataAccessObject.selectionManager.setActiveOverlay(this.facadeGetter()).render(p),this.isMaster&&n.afterDraw(),this.dataAccessObject.drawn=!0,this}markIfOversizedColumnHeader(e){const t=this.columnFilter.renderedToSource(e);let n=this.wtSettings.getSetting("columnHeaders").length;const r=this.wtSettings.getSetting("stylesHandler").getDefaultRowHeight();let s,o,a;const l=this.wtSettings.getSetting("columnHeaderHeight")||[];for(;n;)n-=1,s=this.getColumnHeaderHeight(n),o=this.getColumnHeader(t,n),o&&(a=(0,i.innerHeight)(o),(!s&&r<a||s<a)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[n]=a),Array.isArray(l)?null!==l[n]&&void 0!==l[n]&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[n]=l[n]):isNaN(l)||(this.dataAccessObject.wtViewport.oversizedColumnHeaders[n]=l),this.dataAccessObject.wtViewport.oversizedColumnHeaders[n]<(l[n]||l)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[n]=l[n]||l))}adjustColumnHeaderHeights(){const{wtSettings:e}=this,t=this.THEAD.childNodes,n=this.dataAccessObject.wtViewport.oversizedColumnHeaders;for(let r=0,s=e.getSetting("columnHeaders").length;r<s;r++)if(n[r]){if(!t[r]||0===t[r].childNodes.length)return;t[r].childNodes[0].style.height=`${n[r]}px`}}resetOversizedRows(){const{wtSettings:e}=this,{wtViewport:t}=this.dataAccessObject;if((this.isMaster||this.is(d.CLONE_BOTTOM))&&!e.getSetting("externalRowCalculator")){const e=this.getRenderedRowsCount();for(let n=0;n<e;n++){const e=this.rowFilter.renderedToSource(n);t.oversizedRows&&t.oversizedRows[e]&&(t.oversizedRows[e]=void 0)}}}getCell(e){let t=e.row,n=e.col;const r=this.wtSettings.getSetting("onModifyGetCellCoords",t,n,!this.isMaster,"render");if(r&&Array.isArray(r)&&([t,n]=r),this.isRowBeforeRenderedRows(t))return-1;if(this.isRowAfterRenderedRows(t))return-2;if(this.isColumnBeforeRenderedColumns(n))return-3;if(this.isColumnAfterRenderedColumns(n))return-4;const s=this.getRow(t);if(!s&&t>=0)throw new Error("TR was expected to be rendered but is not");const i=s.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(n)];if(!i&&n>=0)throw new Error("TD or TH was expected to be rendered but is not");return i}getRow(e){let t=null,n=null;var r,s;e<0?(t=null===(r=this.rowFilter)||void 0===r?void 0:r.sourceRowToVisibleColHeadedRow(e),n=this.THEAD):(t=null===(s=this.rowFilter)||void 0===s?void 0:s.sourceToRendered(e),n=this.TBODY);return void 0!==t&&void 0!==n&&(!(n.childNodes.length<t+1)&&n.childNodes[t])}getColumnHeader(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=this.THEAD.childNodes[t];return null==n?void 0:n.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e)]}getColumnHeaders(e){const t=[],n=this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e);return this.THEAD.childNodes.forEach(e=>{const r=e.childNodes[n];r&&t.push(r)}),t}getRowHeader(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(t>=this.wtSettings.getSetting("rowHeaders").length)return;const n=this.rowFilter.sourceToRendered(e),r=n<0?this.rowFilter.sourceRowToVisibleColHeadedRow(e):n,s=(n<0?this.THEAD:this.TBODY).childNodes[r];return null==s?void 0:s.childNodes[t]}getRowHeaders(e){const t=[],n=this.wtSettings.getSetting("rowHeaders").length;for(let r=0;r<n;r++){const n=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)],s=null==n?void 0:n.childNodes[r];s&&t.push(s)}return t}getCoords(e){let t=e;if("TD"!==t.nodeName&&"TH"!==t.nodeName&&(t=(0,i.closest)(t,["TD","TH"])),null===t)return null;const n=t.parentNode;if(!n)return null;const r=n.parentNode;let s=(0,i.index)(n),o=t.cellIndex;if((0,i.overlayContainsElement)(d.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,i.overlayContainsElement)(d.CLONE_TOP,t,this.wtRootElement))"THEAD"===r.nodeName&&(s-=r.childNodes.length);else if((0,i.overlayContainsElement)(d.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)||(0,i.overlayContainsElement)(d.CLONE_BOTTOM,t,this.wtRootElement)){s=this.wtSettings.getSetting("totalRows")-r.childNodes.length+s}else r===this.THEAD?s=this.rowFilter.visibleColHeadedRowToSourceRow(s):this.rowFilter&&(s=this.rowFilter.renderedToSource(s));(0,i.overlayContainsElement)(d.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,i.overlayContainsElement)(d.CLONE_INLINE_START,t,this.wtRootElement)||(0,i.overlayContainsElement)(d.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)?o=this.columnFilter.offsettedTH(o):this.columnFilter&&(o=this.columnFilter.visibleRowHeadedColumnToSourceColumn(o));const a=this.wtSettings.getSetting("onModifyGetCoordsElement",s,o);return a&&Array.isArray(a)&&([s,o]=a),this.wot.createCellCoords(s,o)}markOversizedRows(){if(this.wtSettings.getSetting("externalRowCalculator"))return;let e=this.TBODY.childNodes.length;const t=this.wtSettings.getSetting("stylesHandler"),n=e*t.getDefaultRowHeight(),r=(0,i.innerHeight)(this.TBODY)-1,s=t.areCellsBorderBox(),o=s?i.outerHeight:i.innerHeight,a=s?0:1,l=s?1:0;let h,u,c,d,g;if(n!==r||this.wtSettings.getSetting("fixedRowsBottom"))for(;e;){e-=1,c=this.rowFilter.renderedToSource(e),h=this.getRowHeight(c),d=this.getTrForRow(c),g=d.querySelector("th");const n=0===c?l:0;u=g?o(g):o(d)-a,(!h&&t.getDefaultRowHeight()<u-n||h<u)&&(s||(u+=1),this.dataAccessObject.wtViewport.oversizedRows[c]=u)}}getTrForRow(e){return this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)]}isColumnHeaderRendered(e){if(e>=0)return!1;const t=this.wtSettings.getSetting("rowHeaders").length;return Math.abs(e)<=t}isRowHeaderRendered(e){if(e>=0)return!1;const t=this.wtSettings.getSetting("columnHeaders").length;return Math.abs(e)<=t}isRowBeforeRenderedRows(e){const t=this.getFirstRenderedRow();return e<0&&t<=0?!this.isRowHeaderRendered(e):e<t}isRowAfterRenderedRows(e){return e>this.getLastRenderedRow()}isColumnBeforeRenderedColumns(e){const t=this.getFirstRenderedColumn();return e<0&&t<=0?!this.isColumnHeaderRendered(e):e<t}isColumnAfterRenderedColumns(e){return this.columnFilter&&e>this.getLastRenderedColumn()}isColumnAfterViewport(e){return this.columnFilter&&e>this.getLastVisibleColumn()}isRowAfterViewport(e){return this.rowFilter&&e>this.getLastVisibleRow()}isColumnBeforeViewport(e){return this.columnFilter&&this.columnFilter.sourceToRendered(e)<0&&e>=0}isLastRowFullyVisible(){return this.getLastVisibleRow()===this.getLastRenderedRow()}isLastColumnFullyVisible(){return this.getLastVisibleColumn()===this.getLastRenderedColumn()}allRowsInViewport(){return this.wtSettings.getSetting("totalRows")===this.getVisibleRowsCount()}allColumnsInViewport(){return this.wtSettings.getSetting("totalColumns")===this.getVisibleColumnsCount()}getRowHeight(e){return this.rowUtils.getHeight(e)}getColumnHeaderHeight(e){return this.columnUtils.getHeaderHeight(e)}getColumnWidth(e){return this.columnUtils.getWidth(e)}hasDefinedSize(){return this.hasTableHeight&&this.hasTableWidth}getWidth(){return(0,i.outerWidth)(this.TABLE)}getHeight(){return(0,i.outerHeight)(this.TABLE)}getTotalWidth(){const e=(0,i.outerWidth)(this.hider);return 0!==e?e:this.getWidth()}getTotalHeight(){const e=(0,i.outerHeight)(this.hider);return 0!==e?e:this.getHeight()}isVisible(){return(0,i.isVisible)(this.TABLE)}_modifyRowHeaderWidth(e){let t=(0,o.isFunction)(e)?e():null;return Array.isArray(t)?(t=[...t],t[t.length-1]=this._correctRowHeaderWidth(t[t.length-1])):t=this._correctRowHeaderWidth(t),t}_correctRowHeaderWidth(e){let t=e;return"number"!=typeof e&&(t=this.wtSettings.getSetting("defaultColumnWidth")),this.correctHeaderWidth&&(t+=1),t}}},36467:()=>{},36634:()=>{},36724:(e,t,n)=>{"use strict";var r=n(94988),s=r({}.toString),i=r("".slice);e.exports=function(e){return i(s(e),8,-1)}},36741:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(81396),n(88633);var s=r(n(97555)),i=r(n(99156)),o=r(n(28138)),a=r(n(99088)),l=r(n(24285)),h=n(89090);class u{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];this.hot=e,this.globalMeta=new s.default(e),this.tableMeta=new i.default(this.globalMeta),this.columnMeta=new o.default(this.globalMeta),this.cellMeta=new a.default(this.columnMeta),n.forEach(e=>new e(this)),this.globalMeta.updateMeta(t)}getGlobalMeta(){return this.globalMeta.getMeta()}updateGlobalMeta(e){this.globalMeta.updateMeta(e)}getTableMeta(){return this.tableMeta.getMeta()}updateTableMeta(e){this.tableMeta.updateMeta(e)}getColumnMeta(e){return this.columnMeta.getMeta(e)}updateColumnMeta(e,t){this.columnMeta.updateMeta(e,t)}getCellMeta(e,t,n){const r=this.cellMeta.getMeta(e,t);return r.visualRow=n.visualRow,r.visualCol=n.visualColumn,r.row=e,r.col=t,n.skipMetaExtension||this.runLocalHooks("afterGetCellMeta",r),r}getCellMetaKeyValue(e,t,n){if("string"!=typeof n)throw new Error("The passed cell meta object key is not a string");return this.cellMeta.getMeta(e,t,n)}setCellMeta(e,t,n,r){this.cellMeta.setMeta(e,t,n,r)}updateCellMeta(e,t,n){this.cellMeta.updateMeta(e,t,n)}removeCellMeta(e,t,n){this.cellMeta.removeMeta(e,t,n)}getCellsMeta(){return this.cellMeta.getMetas()}getCellsMetaAtRow(e){return this.cellMeta.getMetasAtRow(e)}createRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.createRow(e,t)}removeRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.removeRow(e,t)}createColumn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.createColumn(e,t),this.columnMeta.createColumn(e,t)}removeColumn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.removeColumn(e,t),this.columnMeta.removeColumn(e,t)}clearCellsCache(){this.cellMeta.clearCache()}clearCache(){this.cellMeta.clearCache(),this.columnMeta.clearCache()}}t.default=u,(0,h.mixin)(u,l.default)},36806:(e,t,n)=>{"use strict";t.__esModule=!0,t.valueGetter=function(e){return r.valueGetter.call(this,e)};var r=n(51897)},37223:(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_yesterday";function l(e){const t=(0,s.default)(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame((0,s.default)().subtract(1,"days").startOf("day"),"d")}(0,o.registerCondition)(a,l,{name:i.FILTERS_CONDITIONS_YESTERDAY,inputsCount:0})},37279:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(32453);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.Autofill=r.Autofill},37408:(e,t,n)=>{"use strict";var r=n(52270),s=n(36724),i=n(71671)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===s(e))}},37466:(e,t,n)=>{"use strict";var r=n(21912),s=n(89035);e.exports=r&&s(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},37515:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(81115)),i=n(72740),o=n(16656);const a="px";t.default=class{constructor(e){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"_element",null),(0,s.default)(this,"state",0),(0,s.default)(this,"inlineProperty",void 0),this.hot=e,this.inlineProperty=e.isRtl()?"right":"left"}appendTo(e){e.appendChild(this._element),this.state=2}build(){0===this.state&&(this._element=this.hot.rootDocument.createElement("div"),this.state=1)}destroy(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=0}isAppended(){return 2===this.state}isBuilt(){return this.state>=1}setPosition(e,t){(0,i.isNumeric)(e)&&(this._element.style.top=e+a),(0,i.isNumeric)(t)&&(this._element.style[this.inlineProperty]=t+a)}getPosition(){const e=this._element.style;return{top:e.top?parseInt(e.top,10):0,start:e[this.inlineProperty]?parseInt(e[this.inlineProperty],10):0}}setSize(e,t){(0,i.isNumeric)(e)&&(this._element.style.width=e+a),(0,i.isNumeric)(t)&&(this._element.style.height=t+a)}getSize(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}}setOffset(e,t){(0,i.isNumeric)(e)&&(this._element.style.marginTop=e+a),(0,i.isNumeric)(t)&&(this._element.style[`margin${(0,o.toUpperCaseFirst)(this.inlineProperty)}`]=t+a)}getOffset(){const e=this._element.style,t=`margin${(0,o.toUpperCaseFirst)(this.inlineProperty)}`;return{top:e.marginTop?parseInt(e.marginTop,10):0,start:e[t]?parseInt(e[t],10):0}}}},37539:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,r;function s(){return t.apply(null,arguments)}function i(e){t=e}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function h(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(l(e,t))return!1;return!0}function u(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function g(e,t){var n,r=[],s=e.length;for(n=0;n<s;++n)r.push(t(e[n],n));return r}function p(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,r){return Xn(e,t,n,r,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function E(e){return null==e._pf&&(e._pf=m()),e._pf}function w(e){var t=null,n=!1,s=e._d&&!isNaN(e._d.getTime());return s&&(t=E(e),n=r.call(t.parsedDateParts,function(e){return null!=e}),s=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(s=s&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?s:(e._isValid=s,e._isValid)}function y(e){var t=f(NaN);return null!=e?p(E(t),e):E(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var C=s.momentProperties=[],v=!1;function S(e,t){var n,r,s,i=C.length;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=E(t)),u(t._locale)||(e._locale=t._locale),i>0)for(n=0;n<i;n++)u(s=t[r=C[n]])||(e[r]=s);return e}function R(e){S(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,s.updateOffset(this),v=!1)}function T(e){return e instanceof R||null!=e&&null!=e._isAMomentObject}function _(e){!1===s.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function N(e,t){var n=!0;return p(function(){if(null!=s.deprecationHandler&&s.deprecationHandler(null,e),n){var r,i,o,a=[],h=arguments.length;for(i=0;i<h;i++){if(r="","object"==typeof arguments[i]){for(o in r+="\n["+i+"] ",arguments[0])l(arguments[0],o)&&(r+=o+": "+arguments[0][o]+", ");r=r.slice(0,-2)}else r=arguments[i];a.push(r)}_(e+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var A,b={};function M(e,t){null!=s.deprecationHandler&&s.deprecationHandler(e,t),b[e]||(_(t),b[e]=!0)}function I(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function O(e){var t,n;for(n in e)l(e,n)&&(I(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function x(e,t){var n,r=p({},e);for(n in t)l(t,n)&&(a(e[n])&&a(t[n])?(r[n]={},p(r[n],e[n]),p(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)l(e,n)&&!l(t,n)&&a(e[n])&&(r[n]=p({},r[n]));return r}function P(e){null!=e&&this.set(e)}s.suppressDeprecationWarnings=!1,s.deprecationHandler=null,A=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)l(e,t)&&n.push(t);return n};var L={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function D(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return I(r)?r.call(t,n):r}function k(e,t,n){var r=""+Math.abs(e),s=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+r}var H=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,F=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,U={},V={};function B(e,t,n,r){var s=r;"string"==typeof r&&(s=function(){return this[r]()}),e&&(V[e]=s),t&&(V[t[0]]=function(){return k(s.apply(this,arguments),t[1],t[2])}),n&&(V[n]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function W(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Y(e){var t,n,r=e.match(H);for(t=0,n=r.length;t<n;t++)V[r[t]]?r[t]=V[r[t]]:r[t]=W(r[t]);return function(t){var s,i="";for(s=0;s<n;s++)i+=I(r[s])?r[s].call(t,e):r[s];return i}}function G(e,t){return e.isValid()?(t=j(t,e.localeData()),U[t]=U[t]||Y(t),U[t](e)):e.localeData().invalidDate()}function j(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(F.lastIndex=0;n>=0&&F.test(e);)e=e.replace(F,r),F.lastIndex=0,n-=1;return e}var z={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function $(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(H).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])}var K="Invalid date";function X(){return this._invalidDate}var q="%d",Q=/\d{1,2}/;function Z(e){return this._ordinal.replace("%d",e)}var J={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ee(e,t,n,r){var s=this._relativeTime[n];return I(s)?s(e,t,n,r):s.replace(/%d/i,e)}function te(e,t){var n=this._relativeTime[e>0?"future":"past"];return I(n)?n(t):n.replace(/%s/i,t)}var ne={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function re(e){return"string"==typeof e?ne[e]||ne[e.toLowerCase()]:void 0}function se(e){var t,n,r={};for(n in e)l(e,n)&&(t=re(n))&&(r[t]=e[n]);return r}var ie={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function oe(e){var t,n=[];for(t in e)l(e,t)&&n.push({unit:t,priority:ie[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}var ae,le=/\d/,he=/\d\d/,ue=/\d{3}/,ce=/\d{4}/,de=/[+-]?\d{6}/,ge=/\d\d?/,pe=/\d\d\d\d?/,fe=/\d\d\d\d\d\d?/,me=/\d{1,3}/,Ee=/\d{1,4}/,we=/[+-]?\d{1,6}/,ye=/\d+/,Ce=/[+-]?\d+/,ve=/Z|[+-]\d\d:?\d\d/gi,Se=/Z|[+-]\d\d(?::?\d\d)?/gi,Re=/[+-]?\d+(\.\d{1,3})?/,Te=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,_e=/^[1-9]\d?/,Ne=/^([1-9]\d|\d)/;function Ae(e,t,n){ae[e]=I(t)?t:function(e,r){return e&&n?n:t}}function be(e,t){return l(ae,e)?ae[e](t._strict,t._locale):new RegExp(Me(e))}function Me(e){return Ie(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,s){return t||n||r||s}))}function Ie(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Oe(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function xe(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=Oe(t)),n}ae={};var Pe={};function Le(e,t){var n,r,s=t;for("string"==typeof e&&(e=[e]),c(t)&&(s=function(e,n){n[t]=xe(e)}),r=e.length,n=0;n<r;n++)Pe[e[n]]=s}function De(e,t){Le(e,function(e,n,r,s){r._w=r._w||{},t(e,r._w,r,s)})}function ke(e,t,n){null!=t&&l(Pe,e)&&Pe[e](t,n._a,n,e)}function He(e){return e%4==0&&e%100!=0||e%400==0}var Fe=0,Ue=1,Ve=2,Be=3,We=4,Ye=5,Ge=6,je=7,ze=8;function $e(e){return He(e)?366:365}B("Y",0,0,function(){var e=this.year();return e<=9999?k(e,4):"+"+e}),B(0,["YY",2],0,function(){return this.year()%100}),B(0,["YYYY",4],0,"year"),B(0,["YYYYY",5],0,"year"),B(0,["YYYYYY",6,!0],0,"year"),Ae("Y",Ce),Ae("YY",ge,he),Ae("YYYY",Ee,ce),Ae("YYYYY",we,de),Ae("YYYYYY",we,de),Le(["YYYYY","YYYYYY"],Fe),Le("YYYY",function(e,t){t[Fe]=2===e.length?s.parseTwoDigitYear(e):xe(e)}),Le("YY",function(e,t){t[Fe]=s.parseTwoDigitYear(e)}),Le("Y",function(e,t){t[Fe]=parseInt(e,10)}),s.parseTwoDigitYear=function(e){return xe(e)+(xe(e)>68?1900:2e3)};var Ke,Xe=Qe("FullYear",!0);function qe(){return He(this.year())}function Qe(e,t){return function(n){return null!=n?(Je(this,e,n),s.updateOffset(this,t),this):Ze(this,e)}}function Ze(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Je(e,t,n){var r,s,i,o,a;if(e.isValid()&&!isNaN(n)){switch(r=e._d,s=e._isUTC,t){case"Milliseconds":return void(s?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(s?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(s?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(s?r.setUTCHours(n):r.setHours(n));case"Date":return void(s?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}i=n,o=e.month(),a=29!==(a=e.date())||1!==o||He(i)?a:28,s?r.setUTCFullYear(i,o,a):r.setFullYear(i,o,a)}}function et(e){return I(this[e=re(e)])?this[e]():this}function tt(e,t){if("object"==typeof e){var n,r=oe(e=se(e)),s=r.length;for(n=0;n<s;n++)this[r[n].unit](e[r[n].unit])}else if(I(this[e=re(e)]))return this[e](t);return this}function nt(e,t){return(e%t+t)%t}function rt(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=nt(t,12);return e+=(t-n)/12,1===n?He(e)?29:28:31-n%7%2}Ke=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},B("M",["MM",2],"Mo",function(){return this.month()+1}),B("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),B("MMMM",0,0,function(e){return this.localeData().months(this,e)}),Ae("M",ge,_e),Ae("MM",ge,he),Ae("MMM",function(e,t){return t.monthsShortRegex(e)}),Ae("MMMM",function(e,t){return t.monthsRegex(e)}),Le(["M","MM"],function(e,t){t[Ue]=xe(e)-1}),Le(["MMM","MMMM"],function(e,t,n,r){var s=n._locale.monthsParse(e,r,n._strict);null!=s?t[Ue]=s:E(n).invalidMonth=e});var st="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),it="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ot=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,at=Te,lt=Te;function ht(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ot).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone}function ut(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ot.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ct(e,t,n){var r,s,i,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=f([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(s=Ke.call(this._shortMonthsParse,o))?s:null:-1!==(s=Ke.call(this._longMonthsParse,o))?s:null:"MMM"===t?-1!==(s=Ke.call(this._shortMonthsParse,o))||-1!==(s=Ke.call(this._longMonthsParse,o))?s:null:-1!==(s=Ke.call(this._longMonthsParse,o))||-1!==(s=Ke.call(this._shortMonthsParse,o))?s:null}function dt(e,t,n){var r,s,i;if(this._monthsParseExact)return ct.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(s=f([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function gt(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=xe(t);else if(!c(t=e.localeData().monthsParse(t)))return e;var n=t,r=e.date();return r=r<29?r:Math.min(r,rt(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function pt(e){return null!=e?(gt(this,e),s.updateOffset(this,!0),this):Ze(this,"Month")}function ft(){return rt(this.year(),this.month())}function mt(e){return this._monthsParseExact?(l(this,"_monthsRegex")||wt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=at),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Et(e){return this._monthsParseExact?(l(this,"_monthsRegex")||wt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=lt),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function wt(){function e(e,t){return t.length-e.length}var t,n,r,s,i=[],o=[],a=[];for(t=0;t<12;t++)n=f([2e3,t]),r=Ie(this.monthsShort(n,"")),s=Ie(this.months(n,"")),i.push(r),o.push(s),a.push(s),a.push(r);i.sort(e),o.sort(e),a.sort(e),this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function yt(e,t,n,r,s,i,o){var a;return e<100&&e>=0?(a=new Date(e+400,t,n,r,s,i,o),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,s,i,o),a}function Ct(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function vt(e,t,n){var r=7+t-n;return-(7+Ct(e,0,r).getUTCDay()-t)%7+r-1}function St(e,t,n,r,s){var i,o,a=1+7*(t-1)+(7+n-r)%7+vt(e,r,s);return a<=0?o=$e(i=e-1)+a:a>$e(e)?(i=e+1,o=a-$e(e)):(i=e,o=a),{year:i,dayOfYear:o}}function Rt(e,t,n){var r,s,i=vt(e.year(),t,n),o=Math.floor((e.dayOfYear()-i-1)/7)+1;return o<1?r=o+Tt(s=e.year()-1,t,n):o>Tt(e.year(),t,n)?(r=o-Tt(e.year(),t,n),s=e.year()+1):(s=e.year(),r=o),{week:r,year:s}}function Tt(e,t,n){var r=vt(e,t,n),s=vt(e+1,t,n);return($e(e)-r+s)/7}function _t(e){return Rt(e,this._week.dow,this._week.doy).week}B("w",["ww",2],"wo","week"),B("W",["WW",2],"Wo","isoWeek"),Ae("w",ge,_e),Ae("ww",ge,he),Ae("W",ge,_e),Ae("WW",ge,he),De(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=xe(e)});var Nt={dow:0,doy:6};function At(){return this._week.dow}function bt(){return this._week.doy}function Mt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function It(e){var t=Rt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Ot(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function xt(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Pt(e,t){return e.slice(t,7).concat(e.slice(0,t))}B("d",0,"do","day"),B("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),B("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),B("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),B("e",0,0,"weekday"),B("E",0,0,"isoWeekday"),Ae("d",ge),Ae("e",ge),Ae("E",ge),Ae("dd",function(e,t){return t.weekdaysMinRegex(e)}),Ae("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Ae("dddd",function(e,t){return t.weekdaysRegex(e)}),De(["dd","ddd","dddd"],function(e,t,n,r){var s=n._locale.weekdaysParse(e,r,n._strict);null!=s?t.d=s:E(n).invalidWeekday=e}),De(["d","e","E"],function(e,t,n,r){t[r]=xe(e)});var Lt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Dt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),kt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ht=Te,Ft=Te,Ut=Te;function Vt(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Pt(n,this._week.dow):e?n[e.day()]:n}function Bt(e){return!0===e?Pt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Wt(e){return!0===e?Pt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Yt(e,t,n){var r,s,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(s=Ke.call(this._weekdaysParse,o))?s:null:"ddd"===t?-1!==(s=Ke.call(this._shortWeekdaysParse,o))?s:null:-1!==(s=Ke.call(this._minWeekdaysParse,o))?s:null:"dddd"===t?-1!==(s=Ke.call(this._weekdaysParse,o))||-1!==(s=Ke.call(this._shortWeekdaysParse,o))||-1!==(s=Ke.call(this._minWeekdaysParse,o))?s:null:"ddd"===t?-1!==(s=Ke.call(this._shortWeekdaysParse,o))||-1!==(s=Ke.call(this._weekdaysParse,o))||-1!==(s=Ke.call(this._minWeekdaysParse,o))?s:null:-1!==(s=Ke.call(this._minWeekdaysParse,o))||-1!==(s=Ke.call(this._weekdaysParse,o))||-1!==(s=Ke.call(this._shortWeekdaysParse,o))?s:null}function Gt(e,t,n){var r,s,i;if(this._weekdaysParseExact)return Yt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(s=f([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function jt(e){if(!this.isValid())return null!=e?this:NaN;var t=Ze(this,"Day");return null!=e?(e=Ot(e,this.localeData()),this.add(e-t,"d")):t}function zt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function $t(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=xt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Kt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Ht),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Xt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ft),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function qt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ut),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Qt(){function e(e,t){return t.length-e.length}var t,n,r,s,i,o=[],a=[],l=[],h=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),r=Ie(this.weekdaysMin(n,"")),s=Ie(this.weekdaysShort(n,"")),i=Ie(this.weekdays(n,"")),o.push(r),a.push(s),l.push(i),h.push(r),h.push(s),h.push(i);o.sort(e),a.sort(e),l.sort(e),h.sort(e),this._weekdaysRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Zt(){return this.hours()%12||12}function Jt(){return this.hours()||24}function en(e,t){B(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function tn(e,t){return t._meridiemParse}function nn(e){return"p"===(e+"").toLowerCase().charAt(0)}B("H",["HH",2],0,"hour"),B("h",["hh",2],0,Zt),B("k",["kk",2],0,Jt),B("hmm",0,0,function(){return""+Zt.apply(this)+k(this.minutes(),2)}),B("hmmss",0,0,function(){return""+Zt.apply(this)+k(this.minutes(),2)+k(this.seconds(),2)}),B("Hmm",0,0,function(){return""+this.hours()+k(this.minutes(),2)}),B("Hmmss",0,0,function(){return""+this.hours()+k(this.minutes(),2)+k(this.seconds(),2)}),en("a",!0),en("A",!1),Ae("a",tn),Ae("A",tn),Ae("H",ge,Ne),Ae("h",ge,_e),Ae("k",ge,_e),Ae("HH",ge,he),Ae("hh",ge,he),Ae("kk",ge,he),Ae("hmm",pe),Ae("hmmss",fe),Ae("Hmm",pe),Ae("Hmmss",fe),Le(["H","HH"],Be),Le(["k","kk"],function(e,t,n){var r=xe(e);t[Be]=24===r?0:r}),Le(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),Le(["h","hh"],function(e,t,n){t[Be]=xe(e),E(n).bigHour=!0}),Le("hmm",function(e,t,n){var r=e.length-2;t[Be]=xe(e.substr(0,r)),t[We]=xe(e.substr(r)),E(n).bigHour=!0}),Le("hmmss",function(e,t,n){var r=e.length-4,s=e.length-2;t[Be]=xe(e.substr(0,r)),t[We]=xe(e.substr(r,2)),t[Ye]=xe(e.substr(s)),E(n).bigHour=!0}),Le("Hmm",function(e,t,n){var r=e.length-2;t[Be]=xe(e.substr(0,r)),t[We]=xe(e.substr(r))}),Le("Hmmss",function(e,t,n){var r=e.length-4,s=e.length-2;t[Be]=xe(e.substr(0,r)),t[We]=xe(e.substr(r,2)),t[Ye]=xe(e.substr(s))});var rn=/[ap]\.?m?\.?/i,sn=Qe("Hours",!0);function on(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,ln={calendar:L,longDateFormat:z,invalidDate:K,ordinal:q,dayOfMonthOrdinalParse:Q,relativeTime:J,months:st,monthsShort:it,week:Nt,weekdays:Lt,weekdaysMin:kt,weekdaysShort:Dt,meridiemParse:rn},hn={},un={};function cn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function dn(e){return e?e.toLowerCase().replace("_","-"):e}function gn(e){for(var t,n,r,s,i=0;i<e.length;){for(t=(s=dn(e[i]).split("-")).length,n=(n=dn(e[i+1]))?n.split("-"):null;t>0;){if(r=fn(s.slice(0,t).join("-")))return r;if(n&&n.length>=t&&cn(s,n)>=t-1)break;t--}i++}return an}function pn(e){return!(!e||!e.match("^[^/\\\\]*$"))}function fn(t){var r=null;if(void 0===hn[t]&&e&&e.exports&&pn(t))try{r=an._abbr,n(93398)("./"+t),mn(r)}catch(e){hn[t]=null}return hn[t]}function mn(e,t){var n;return e&&((n=u(t)?yn(e):En(e,t))?an=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function En(e,t){if(null!==t){var n,r=ln;if(t.abbr=e,null!=hn[e])M("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=hn[e]._config;else if(null!=t.parentLocale)if(null!=hn[t.parentLocale])r=hn[t.parentLocale]._config;else{if(null==(n=fn(t.parentLocale)))return un[t.parentLocale]||(un[t.parentLocale]=[]),un[t.parentLocale].push({name:e,config:t}),null;r=n._config}return hn[e]=new P(x(r,t)),un[e]&&un[e].forEach(function(e){En(e.name,e.config)}),mn(e),hn[e]}return delete hn[e],null}function wn(e,t){if(null!=t){var n,r,s=ln;null!=hn[e]&&null!=hn[e].parentLocale?hn[e].set(x(hn[e]._config,t)):(null!=(r=fn(e))&&(s=r._config),t=x(s,t),null==r&&(t.abbr=e),(n=new P(t)).parentLocale=hn[e],hn[e]=n),mn(e)}else null!=hn[e]&&(null!=hn[e].parentLocale?(hn[e]=hn[e].parentLocale,e===mn()&&mn(e)):null!=hn[e]&&delete hn[e]);return hn[e]}function yn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return an;if(!o(e)){if(t=fn(e))return t;e=[e]}return gn(e)}function Cn(){return A(hn)}function vn(e){var t,n=e._a;return n&&-2===E(e).overflow&&(t=n[Ue]<0||n[Ue]>11?Ue:n[Ve]<1||n[Ve]>rt(n[Fe],n[Ue])?Ve:n[Be]<0||n[Be]>24||24===n[Be]&&(0!==n[We]||0!==n[Ye]||0!==n[Ge])?Be:n[We]<0||n[We]>59?We:n[Ye]<0||n[Ye]>59?Ye:n[Ge]<0||n[Ge]>999?Ge:-1,E(e)._overflowDayOfYear&&(t<Fe||t>Ve)&&(t=Ve),E(e)._overflowWeeks&&-1===t&&(t=je),E(e)._overflowWeekday&&-1===t&&(t=ze),E(e).overflow=t),e}var Sn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Rn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Tn=/Z|[+-]\d\d(?::?\d\d)?/,_n=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Nn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],An=/^\/?Date\((-?\d+)/i,bn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Mn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function In(e){var t,n,r,s,i,o,a=e._i,l=Sn.exec(a)||Rn.exec(a),h=_n.length,u=Nn.length;if(l){for(E(e).iso=!0,t=0,n=h;t<n;t++)if(_n[t][1].exec(l[1])){s=_n[t][0],r=!1!==_n[t][2];break}if(null==s)return void(e._isValid=!1);if(l[3]){for(t=0,n=u;t<n;t++)if(Nn[t][1].exec(l[3])){i=(l[2]||" ")+Nn[t][0];break}if(null==i)return void(e._isValid=!1)}if(!r&&null!=i)return void(e._isValid=!1);if(l[4]){if(!Tn.exec(l[4]))return void(e._isValid=!1);o="Z"}e._f=s+(i||"")+(o||""),Wn(e)}else e._isValid=!1}function On(e,t,n,r,s,i){var o=[xn(e),it.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(s,10)];return i&&o.push(parseInt(i,10)),o}function xn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Pn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Ln(e,t,n){return!e||Dt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(E(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Dn(e,t,n){if(e)return Mn[e];if(t)return 0;var r=parseInt(n,10),s=r%100;return(r-s)/100*60+s}function kn(e){var t,n=bn.exec(Pn(e._i));if(n){if(t=On(n[4],n[3],n[2],n[5],n[6],n[7]),!Ln(n[1],t,e))return;e._a=t,e._tzm=Dn(n[8],n[9],n[10]),e._d=Ct.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),E(e).rfc2822=!0}else e._isValid=!1}function Hn(e){var t=An.exec(e._i);null===t?(In(e),!1===e._isValid&&(delete e._isValid,kn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:s.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Fn(e,t,n){return null!=e?e:null!=t?t:n}function Un(e){var t=new Date(s.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Vn(e){var t,n,r,s,i,o=[];if(!e._d){for(r=Un(e),e._w&&null==e._a[Ve]&&null==e._a[Ue]&&Bn(e),null!=e._dayOfYear&&(i=Fn(e._a[Fe],r[Fe]),(e._dayOfYear>$e(i)||0===e._dayOfYear)&&(E(e)._overflowDayOfYear=!0),n=Ct(i,0,e._dayOfYear),e._a[Ue]=n.getUTCMonth(),e._a[Ve]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=r[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Be]&&0===e._a[We]&&0===e._a[Ye]&&0===e._a[Ge]&&(e._nextDay=!0,e._a[Be]=0),e._d=(e._useUTC?Ct:yt).apply(null,o),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Be]=24),e._w&&void 0!==e._w.d&&e._w.d!==s&&(E(e).weekdayMismatch=!0)}}function Bn(e){var t,n,r,s,i,o,a,l,h;null!=(t=e._w).GG||null!=t.W||null!=t.E?(i=1,o=4,n=Fn(t.GG,e._a[Fe],Rt(qn(),1,4).year),r=Fn(t.W,1),((s=Fn(t.E,1))<1||s>7)&&(l=!0)):(i=e._locale._week.dow,o=e._locale._week.doy,h=Rt(qn(),i,o),n=Fn(t.gg,e._a[Fe],h.year),r=Fn(t.w,h.week),null!=t.d?((s=t.d)<0||s>6)&&(l=!0):null!=t.e?(s=t.e+i,(t.e<0||t.e>6)&&(l=!0)):s=i),r<1||r>Tt(n,i,o)?E(e)._overflowWeeks=!0:null!=l?E(e)._overflowWeekday=!0:(a=St(n,r,s,i,o),e._a[Fe]=a.year,e._dayOfYear=a.dayOfYear)}function Wn(e){if(e._f!==s.ISO_8601)if(e._f!==s.RFC_2822){e._a=[],E(e).empty=!0;var t,n,r,i,o,a,l,h=""+e._i,u=h.length,c=0;for(l=(r=j(e._f,e._locale).match(H)||[]).length,t=0;t<l;t++)i=r[t],(n=(h.match(be(i,e))||[])[0])&&((o=h.substr(0,h.indexOf(n))).length>0&&E(e).unusedInput.push(o),h=h.slice(h.indexOf(n)+n.length),c+=n.length),V[i]?(n?E(e).empty=!1:E(e).unusedTokens.push(i),ke(i,n,e)):e._strict&&!n&&E(e).unusedTokens.push(i);E(e).charsLeftOver=u-c,h.length>0&&E(e).unusedInput.push(h),e._a[Be]<=12&&!0===E(e).bigHour&&e._a[Be]>0&&(E(e).bigHour=void 0),E(e).parsedDateParts=e._a.slice(0),E(e).meridiem=e._meridiem,e._a[Be]=Yn(e._locale,e._a[Be],e._meridiem),null!==(a=E(e).era)&&(e._a[Fe]=e._locale.erasConvertYear(a,e._a[Fe])),Vn(e),vn(e)}else kn(e);else In(e)}function Yn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Gn(e){var t,n,r,s,i,o,a=!1,l=e._f.length;if(0===l)return E(e).invalidFormat=!0,void(e._d=new Date(NaN));for(s=0;s<l;s++)i=0,o=!1,t=S({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[s],Wn(t),w(t)&&(o=!0),i+=E(t).charsLeftOver,i+=10*E(t).unusedTokens.length,E(t).score=i,a?i<r&&(r=i,n=t):(null==r||i<r||o)&&(r=i,n=t,o&&(a=!0));p(e,n||t)}function jn(e){if(!e._d){var t=se(e._i),n=void 0===t.day?t.date:t.day;e._a=g([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),Vn(e)}}function zn(e){var t=new R(vn($n(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function $n(e){var t=e._i,n=e._f;return e._locale=e._locale||yn(e._l),null===t||void 0===n&&""===t?y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),T(t)?new R(vn(t)):(d(t)?e._d=t:o(n)?Gn(e):n?Wn(e):Kn(e),w(e)||(e._d=null),e))}function Kn(e){var t=e._i;u(t)?e._d=new Date(s.now()):d(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Hn(e):o(t)?(e._a=g(t.slice(0),function(e){return parseInt(e,10)}),Vn(e)):a(t)?jn(e):c(t)?e._d=new Date(t):s.createFromInputFallback(e)}function Xn(e,t,n,r,s){var i={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(a(e)&&h(e)||o(e)&&0===e.length)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=s,i._l=n,i._i=e,i._f=t,i._strict=r,zn(i)}function qn(e,t,n,r){return Xn(e,t,n,r,!1)}s.createFromInputFallback=N("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),s.ISO_8601=function(){},s.RFC_2822=function(){};var Qn=N("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=qn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()}),Zn=N("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=qn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:y()});function Jn(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return qn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function er(){return Jn("isBefore",[].slice.call(arguments,0))}function tr(){return Jn("isAfter",[].slice.call(arguments,0))}var nr=function(){return Date.now?Date.now():+new Date},rr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function sr(e){var t,n,r=!1,s=rr.length;for(t in e)if(l(e,t)&&(-1===Ke.call(rr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<s;++n)if(e[rr[n]]){if(r)return!1;parseFloat(e[rr[n]])!==xe(e[rr[n]])&&(r=!0)}return!0}function ir(){return this._isValid}function or(){return Mr(NaN)}function ar(e){var t=se(e),n=t.year||0,r=t.quarter||0,s=t.month||0,i=t.week||t.isoWeek||0,o=t.day||0,a=t.hour||0,l=t.minute||0,h=t.second||0,u=t.millisecond||0;this._isValid=sr(t),this._milliseconds=+u+1e3*h+6e4*l+1e3*a*60*60,this._days=+o+7*i,this._months=+s+3*r+12*n,this._data={},this._locale=yn(),this._bubble()}function lr(e){return e instanceof ar}function hr(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function ur(e,t,n){var r,s=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0;for(r=0;r<s;r++)(n&&e[r]!==t[r]||!n&&xe(e[r])!==xe(t[r]))&&o++;return o+i}function cr(e,t){B(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+k(~~(e/60),2)+t+k(~~e%60,2)})}cr("Z",":"),cr("ZZ",""),Ae("Z",Se),Ae("ZZ",Se),Le(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=gr(Se,e)});var dr=/([\+\-]|\d\d)/gi;function gr(e,t){var n,r,s=(t||"").match(e);return null===s?null:0===(r=60*(n=((s[s.length-1]||[])+"").match(dr)||["-",0,0])[1]+xe(n[2]))?0:"+"===n[0]?r:-r}function pr(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(T(e)||d(e)?e.valueOf():qn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),s.updateOffset(n,!1),n):qn(e).local()}function fr(e){return-Math.round(e._d.getTimezoneOffset())}function mr(e,t,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=gr(Se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=fr(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?Lr(this,Mr(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,s.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:fr(this)}function Er(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function wr(e){return this.utcOffset(0,e)}function yr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(fr(this),"m")),this}function Cr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=gr(ve,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function vr(e){return!!this.isValid()&&(e=e?qn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Sr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Rr(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return S(t,this),(t=$n(t))._a?(e=t._isUTC?f(t._a):qn(t._a),this._isDSTShifted=this.isValid()&&ur(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Tr(){return!!this.isValid()&&!this._isUTC}function _r(){return!!this.isValid()&&this._isUTC}function Nr(){return!!this.isValid()&&this._isUTC&&0===this._offset}s.updateOffset=function(){};var Ar=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,br=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Mr(e,t){var n,r,s,i=e,o=null;return lr(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(o=Ar.exec(e))?(n="-"===o[1]?-1:1,i={y:0,d:xe(o[Ve])*n,h:xe(o[Be])*n,m:xe(o[We])*n,s:xe(o[Ye])*n,ms:xe(hr(1e3*o[Ge]))*n}):(o=br.exec(e))?(n="-"===o[1]?-1:1,i={y:Ir(o[2],n),M:Ir(o[3],n),w:Ir(o[4],n),d:Ir(o[5],n),h:Ir(o[6],n),m:Ir(o[7],n),s:Ir(o[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(s=xr(qn(i.from),qn(i.to)),(i={}).ms=s.milliseconds,i.M=s.months),r=new ar(i),lr(e)&&l(e,"_locale")&&(r._locale=e._locale),lr(e)&&l(e,"_isValid")&&(r._isValid=e._isValid),r}function Ir(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Or(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function xr(e,t){var n;return e.isValid()&&t.isValid()?(t=pr(t,e),e.isBefore(t)?n=Or(e,t):((n=Or(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Pr(e,t){return function(n,r){var s;return null===r||isNaN(+r)||(M(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=n,n=r,r=s),Lr(this,Mr(n,r),e),this}}function Lr(e,t,n,r){var i=t._milliseconds,o=hr(t._days),a=hr(t._months);e.isValid()&&(r=null==r||r,a&>(e,Ze(e,"Month")+a*n),o&&Je(e,"Date",Ze(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&s.updateOffset(e,o||a))}Mr.fn=ar.prototype,Mr.invalid=or;var Dr=Pr(1,"add"),kr=Pr(-1,"subtract");function Hr(e){return"string"==typeof e||e instanceof String}function Fr(e){return T(e)||d(e)||Hr(e)||c(e)||Vr(e)||Ur(e)||null==e}function Ur(e){var t,n,r=a(e)&&!h(e),s=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o=i.length;for(t=0;t<o;t+=1)n=i[t],s=s||l(e,n);return r&&s}function Vr(e){var t=o(e),n=!1;return t&&(n=0===e.filter(function(t){return!c(t)&&Hr(e)}).length),t&&n}function Br(e){var t,n,r=a(e)&&!h(e),s=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<i.length;t+=1)n=i[t],s=s||l(e,n);return r&&s}function Wr(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Yr(e,t){1===arguments.length&&(arguments[0]?Fr(arguments[0])?(e=arguments[0],t=void 0):Br(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||qn(),r=pr(n,this).startOf("day"),i=s.calendarFormat(this,r)||"sameElse",o=t&&(I(t[i])?t[i].call(this,n):t[i]);return this.format(o||this.localeData().calendar(i,this,qn(n)))}function Gr(){return new R(this)}function jr(e,t){var n=T(e)?e:qn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function zr(e,t){var n=T(e)?e:qn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function $r(e,t,n,r){var s=T(e)?e:qn(e),i=T(t)?t:qn(t);return!!(this.isValid()&&s.isValid()&&i.isValid())&&("("===(r=r||"()")[0]?this.isAfter(s,n):!this.isBefore(s,n))&&(")"===r[1]?this.isBefore(i,n):!this.isAfter(i,n))}function Kr(e,t){var n,r=T(e)?e:qn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Xr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function qr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Qr(e,t,n){var r,s,i;if(!this.isValid())return NaN;if(!(r=pr(e,this)).isValid())return NaN;switch(s=6e4*(r.utcOffset()-this.utcOffset()),t=re(t)){case"year":i=Zr(this,r)/12;break;case"month":i=Zr(this,r);break;case"quarter":i=Zr(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-s)/864e5;break;case"week":i=(this-r-s)/6048e5;break;default:i=this-r}return n?i:Oe(i)}function Zr(e,t){if(e.date()<t.date())return-Zr(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Jr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function es(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?G(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):I(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",G(n,"Z")):G(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ts(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,s="moment",i="";return this.isLocal()||(s=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+s+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=i+'[")]',this.format(e+t+n+r)}function ns(e){e||(e=this.isUtc()?s.defaultFormatUtc:s.defaultFormat);var t=G(this,e);return this.localeData().postformat(t)}function rs(e,t){return this.isValid()&&(T(e)&&e.isValid()||qn(e).isValid())?Mr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ss(e){return this.from(qn(),e)}function is(e,t){return this.isValid()&&(T(e)&&e.isValid()||qn(e).isValid())?Mr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function os(e){return this.to(qn(),e)}function as(e){var t;return void 0===e?this._locale._abbr:(null!=(t=yn(e))&&(this._locale=t),this)}s.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",s.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ls=N("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function hs(){return this._locale}var us=1e3,cs=60*us,ds=60*cs,gs=3506328*ds;function ps(e,t){return(e%t+t)%t}function fs(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-gs:new Date(e,t,n).valueOf()}function ms(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-gs:Date.UTC(e,t,n)}function Es(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?ms:fs,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ps(t+(this._isUTC?0:this.utcOffset()*cs),ds);break;case"minute":t=this._d.valueOf(),t-=ps(t,cs);break;case"second":t=this._d.valueOf(),t-=ps(t,us)}return this._d.setTime(t),s.updateOffset(this,!0),this}function ws(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?ms:fs,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=ds-ps(t+(this._isUTC?0:this.utcOffset()*cs),ds)-1;break;case"minute":t=this._d.valueOf(),t+=cs-ps(t,cs)-1;break;case"second":t=this._d.valueOf(),t+=us-ps(t,us)-1}return this._d.setTime(t),s.updateOffset(this,!0),this}function ys(){return this._d.valueOf()-6e4*(this._offset||0)}function Cs(){return Math.floor(this.valueOf()/1e3)}function vs(){return new Date(this.valueOf())}function Ss(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Rs(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Ts(){return this.isValid()?this.toISOString():null}function _s(){return w(this)}function Ns(){return p({},E(this))}function As(){return E(this).overflow}function bs(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Ms(e,t){var n,r,i,o=this._eras||yn("en")._eras;for(n=0,r=o.length;n<r;++n)switch("string"==typeof o[n].since&&(i=s(o[n].since).startOf("day"),o[n].since=i.valueOf()),typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":i=s(o[n].until).startOf("day").valueOf(),o[n].until=i.valueOf()}return o}function Is(e,t,n){var r,s,i,o,a,l=this.eras();for(e=e.toUpperCase(),r=0,s=l.length;r<s;++r)if(i=l[r].name.toUpperCase(),o=l[r].abbr.toUpperCase(),a=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[r];break;case"NNNN":if(i===e)return l[r];break;case"NNNNN":if(a===e)return l[r]}else if([i,o,a].indexOf(e)>=0)return l[r]}function Os(e,t){var n=e.since<=e.until?1:-1;return void 0===t?s(e.since).year():s(e.since).year()+(t-e.offset)*n}function xs(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Ps(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Ls(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Ds(){var e,t,n,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-s(i[e].since).year())*n+i[e].offset;return this.year()}function ks(e){return l(this,"_erasNameRegex")||Ys.call(this),e?this._erasNameRegex:this._erasRegex}function Hs(e){return l(this,"_erasAbbrRegex")||Ys.call(this),e?this._erasAbbrRegex:this._erasRegex}function Fs(e){return l(this,"_erasNarrowRegex")||Ys.call(this),e?this._erasNarrowRegex:this._erasRegex}function Us(e,t){return t.erasAbbrRegex(e)}function Vs(e,t){return t.erasNameRegex(e)}function Bs(e,t){return t.erasNarrowRegex(e)}function Ws(e,t){return t._eraYearOrdinalRegex||ye}function Ys(){var e,t,n,r,s,i=[],o=[],a=[],l=[],h=this.eras();for(e=0,t=h.length;e<t;++e)n=Ie(h[e].name),r=Ie(h[e].abbr),s=Ie(h[e].narrow),o.push(n),i.push(r),a.push(s),l.push(n),l.push(r),l.push(s);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+o.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function Gs(e,t){B(0,[e,e.length],0,t)}function js(e){return Qs.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function zs(e){return Qs.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function $s(){return Tt(this.year(),1,4)}function Ks(){return Tt(this.isoWeekYear(),1,4)}function Xs(){var e=this.localeData()._week;return Tt(this.year(),e.dow,e.doy)}function qs(){var e=this.localeData()._week;return Tt(this.weekYear(),e.dow,e.doy)}function Qs(e,t,n,r,s){var i;return null==e?Rt(this,r,s).year:(t>(i=Tt(e,r,s))&&(t=i),Zs.call(this,e,t,n,r,s))}function Zs(e,t,n,r,s){var i=St(e,t,n,r,s),o=Ct(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Js(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}B("N",0,0,"eraAbbr"),B("NN",0,0,"eraAbbr"),B("NNN",0,0,"eraAbbr"),B("NNNN",0,0,"eraName"),B("NNNNN",0,0,"eraNarrow"),B("y",["y",1],"yo","eraYear"),B("y",["yy",2],0,"eraYear"),B("y",["yyy",3],0,"eraYear"),B("y",["yyyy",4],0,"eraYear"),Ae("N",Us),Ae("NN",Us),Ae("NNN",Us),Ae("NNNN",Vs),Ae("NNNNN",Bs),Le(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var s=n._locale.erasParse(e,r,n._strict);s?E(n).era=s:E(n).invalidEra=e}),Ae("y",ye),Ae("yy",ye),Ae("yyy",ye),Ae("yyyy",ye),Ae("yo",Ws),Le(["y","yy","yyy","yyyy"],Fe),Le(["yo"],function(e,t,n,r){var s;n._locale._eraYearOrdinalRegex&&(s=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Fe]=n._locale.eraYearOrdinalParse(e,s):t[Fe]=parseInt(e,10)}),B(0,["gg",2],0,function(){return this.weekYear()%100}),B(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Gs("gggg","weekYear"),Gs("ggggg","weekYear"),Gs("GGGG","isoWeekYear"),Gs("GGGGG","isoWeekYear"),Ae("G",Ce),Ae("g",Ce),Ae("GG",ge,he),Ae("gg",ge,he),Ae("GGGG",Ee,ce),Ae("gggg",Ee,ce),Ae("GGGGG",we,de),Ae("ggggg",we,de),De(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=xe(e)}),De(["gg","GG"],function(e,t,n,r){t[r]=s.parseTwoDigitYear(e)}),B("Q",0,"Qo","quarter"),Ae("Q",le),Le("Q",function(e,t){t[Ue]=3*(xe(e)-1)}),B("D",["DD",2],"Do","date"),Ae("D",ge,_e),Ae("DD",ge,he),Ae("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Le(["D","DD"],Ve),Le("Do",function(e,t){t[Ve]=xe(e.match(ge)[0])});var ei=Qe("Date",!0);function ti(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}B("DDD",["DDDD",3],"DDDo","dayOfYear"),Ae("DDD",me),Ae("DDDD",ue),Le(["DDD","DDDD"],function(e,t,n){n._dayOfYear=xe(e)}),B("m",["mm",2],0,"minute"),Ae("m",ge,Ne),Ae("mm",ge,he),Le(["m","mm"],We);var ni=Qe("Minutes",!1);B("s",["ss",2],0,"second"),Ae("s",ge,Ne),Ae("ss",ge,he),Le(["s","ss"],Ye);var ri,si,ii=Qe("Seconds",!1);for(B("S",0,0,function(){return~~(this.millisecond()/100)}),B(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),B(0,["SSS",3],0,"millisecond"),B(0,["SSSS",4],0,function(){return 10*this.millisecond()}),B(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),B(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),B(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),B(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),B(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Ae("S",me,le),Ae("SS",me,he),Ae("SSS",me,ue),ri="SSSS";ri.length<=9;ri+="S")Ae(ri,ye);function oi(e,t){t[Ge]=xe(1e3*("0."+e))}for(ri="S";ri.length<=9;ri+="S")Le(ri,oi);function ai(){return this._isUTC?"UTC":""}function li(){return this._isUTC?"Coordinated Universal Time":""}si=Qe("Milliseconds",!1),B("z",0,0,"zoneAbbr"),B("zz",0,0,"zoneName");var hi=R.prototype;function ui(e){return qn(1e3*e)}function ci(){return qn.apply(null,arguments).parseZone()}function di(e){return e}hi.add=Dr,hi.calendar=Yr,hi.clone=Gr,hi.diff=Qr,hi.endOf=ws,hi.format=ns,hi.from=rs,hi.fromNow=ss,hi.to=is,hi.toNow=os,hi.get=et,hi.invalidAt=As,hi.isAfter=jr,hi.isBefore=zr,hi.isBetween=$r,hi.isSame=Kr,hi.isSameOrAfter=Xr,hi.isSameOrBefore=qr,hi.isValid=_s,hi.lang=ls,hi.locale=as,hi.localeData=hs,hi.max=Zn,hi.min=Qn,hi.parsingFlags=Ns,hi.set=tt,hi.startOf=Es,hi.subtract=kr,hi.toArray=Ss,hi.toObject=Rs,hi.toDate=vs,hi.toISOString=es,hi.inspect=ts,"undefined"!=typeof Symbol&&null!=Symbol.for&&(hi[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),hi.toJSON=Ts,hi.toString=Jr,hi.unix=Cs,hi.valueOf=ys,hi.creationData=bs,hi.eraName=xs,hi.eraNarrow=Ps,hi.eraAbbr=Ls,hi.eraYear=Ds,hi.year=Xe,hi.isLeapYear=qe,hi.weekYear=js,hi.isoWeekYear=zs,hi.quarter=hi.quarters=Js,hi.month=pt,hi.daysInMonth=ft,hi.week=hi.weeks=Mt,hi.isoWeek=hi.isoWeeks=It,hi.weeksInYear=Xs,hi.weeksInWeekYear=qs,hi.isoWeeksInYear=$s,hi.isoWeeksInISOWeekYear=Ks,hi.date=ei,hi.day=hi.days=jt,hi.weekday=zt,hi.isoWeekday=$t,hi.dayOfYear=ti,hi.hour=hi.hours=sn,hi.minute=hi.minutes=ni,hi.second=hi.seconds=ii,hi.millisecond=hi.milliseconds=si,hi.utcOffset=mr,hi.utc=wr,hi.local=yr,hi.parseZone=Cr,hi.hasAlignedHourOffset=vr,hi.isDST=Sr,hi.isLocal=Tr,hi.isUtcOffset=_r,hi.isUtc=Nr,hi.isUTC=Nr,hi.zoneAbbr=ai,hi.zoneName=li,hi.dates=N("dates accessor is deprecated. Use date instead.",ei),hi.months=N("months accessor is deprecated. Use month instead",pt),hi.years=N("years accessor is deprecated. Use year instead",Xe),hi.zone=N("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Er),hi.isDSTShifted=N("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Rr);var gi=P.prototype;function pi(e,t,n,r){var s=yn(),i=f().set(r,t);return s[n](i,e)}function fi(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return pi(e,t,n,"month");var r,s=[];for(r=0;r<12;r++)s[r]=pi(e,r,n,"month");return s}function mi(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var s,i=yn(),o=e?i._week.dow:0,a=[];if(null!=n)return pi(t,(n+o)%7,r,"day");for(s=0;s<7;s++)a[s]=pi(t,(s+o)%7,r,"day");return a}function Ei(e,t){return fi(e,t,"months")}function wi(e,t){return fi(e,t,"monthsShort")}function yi(e,t,n){return mi(e,t,n,"weekdays")}function Ci(e,t,n){return mi(e,t,n,"weekdaysShort")}function vi(e,t,n){return mi(e,t,n,"weekdaysMin")}gi.calendar=D,gi.longDateFormat=$,gi.invalidDate=X,gi.ordinal=Z,gi.preparse=di,gi.postformat=di,gi.relativeTime=ee,gi.pastFuture=te,gi.set=O,gi.eras=Ms,gi.erasParse=Is,gi.erasConvertYear=Os,gi.erasAbbrRegex=Hs,gi.erasNameRegex=ks,gi.erasNarrowRegex=Fs,gi.months=ht,gi.monthsShort=ut,gi.monthsParse=dt,gi.monthsRegex=Et,gi.monthsShortRegex=mt,gi.week=_t,gi.firstDayOfYear=bt,gi.firstDayOfWeek=At,gi.weekdays=Vt,gi.weekdaysMin=Wt,gi.weekdaysShort=Bt,gi.weekdaysParse=Gt,gi.weekdaysRegex=Kt,gi.weekdaysShortRegex=Xt,gi.weekdaysMinRegex=qt,gi.isPM=nn,gi.meridiem=on,mn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===xe(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),s.lang=N("moment.lang is deprecated. Use moment.locale instead.",mn),s.langData=N("moment.langData is deprecated. Use moment.localeData instead.",yn);var Si=Math.abs;function Ri(){var e=this._data;return this._milliseconds=Si(this._milliseconds),this._days=Si(this._days),this._months=Si(this._months),e.milliseconds=Si(e.milliseconds),e.seconds=Si(e.seconds),e.minutes=Si(e.minutes),e.hours=Si(e.hours),e.months=Si(e.months),e.years=Si(e.years),this}function Ti(e,t,n,r){var s=Mr(t,n);return e._milliseconds+=r*s._milliseconds,e._days+=r*s._days,e._months+=r*s._months,e._bubble()}function _i(e,t){return Ti(this,e,t,1)}function Ni(e,t){return Ti(this,e,t,-1)}function Ai(e){return e<0?Math.floor(e):Math.ceil(e)}function bi(){var e,t,n,r,s,i=this._milliseconds,o=this._days,a=this._months,l=this._data;return i>=0&&o>=0&&a>=0||i<=0&&o<=0&&a<=0||(i+=864e5*Ai(Ii(a)+o),o=0,a=0),l.milliseconds=i%1e3,e=Oe(i/1e3),l.seconds=e%60,t=Oe(e/60),l.minutes=t%60,n=Oe(t/60),l.hours=n%24,o+=Oe(n/24),a+=s=Oe(Mi(o)),o-=Ai(Ii(s)),r=Oe(a/12),a%=12,l.days=o,l.months=a,l.years=r,this}function Mi(e){return 4800*e/146097}function Ii(e){return 146097*e/4800}function Oi(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Mi(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Ii(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function xi(e){return function(){return this.as(e)}}var Pi=xi("ms"),Li=xi("s"),Di=xi("m"),ki=xi("h"),Hi=xi("d"),Fi=xi("w"),Ui=xi("M"),Vi=xi("Q"),Bi=xi("y"),Wi=Pi;function Yi(){return Mr(this)}function Gi(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function ji(e){return function(){return this.isValid()?this._data[e]:NaN}}var zi=ji("milliseconds"),$i=ji("seconds"),Ki=ji("minutes"),Xi=ji("hours"),qi=ji("days"),Qi=ji("months"),Zi=ji("years");function Ji(){return Oe(this.days()/7)}var eo=Math.round,to={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function no(e,t,n,r,s){return s.relativeTime(t||1,!!n,e,r)}function ro(e,t,n,r){var s=Mr(e).abs(),i=eo(s.as("s")),o=eo(s.as("m")),a=eo(s.as("h")),l=eo(s.as("d")),h=eo(s.as("M")),u=eo(s.as("w")),c=eo(s.as("y")),d=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||o<=1&&["m"]||o<n.m&&["mm",o]||a<=1&&["h"]||a<n.h&&["hh",a]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(d=d||u<=1&&["w"]||u<n.w&&["ww",u]),(d=d||h<=1&&["M"]||h<n.M&&["MM",h]||c<=1&&["y"]||["yy",c])[2]=t,d[3]=+e>0,d[4]=r,no.apply(null,d)}function so(e){return void 0===e?eo:"function"==typeof e&&(eo=e,!0)}function io(e,t){return void 0!==to[e]&&(void 0===t?to[e]:(to[e]=t,"s"===e&&(to.ss=t-1),!0))}function oo(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,s=!1,i=to;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(s=e),"object"==typeof t&&(i=Object.assign({},to,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),r=ro(this,!s,i,n=this.localeData()),s&&(r=n.pastFuture(+this,r)),n.postformat(r)}var ao=Math.abs;function lo(e){return(e>0)-(e<0)||+e}function ho(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,s,i,o,a,l=ao(this._milliseconds)/1e3,h=ao(this._days),u=ao(this._months),c=this.asSeconds();return c?(e=Oe(l/60),t=Oe(e/60),l%=60,e%=60,n=Oe(u/12),u%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",s=c<0?"-":"",i=lo(this._months)!==lo(c)?"-":"",o=lo(this._days)!==lo(c)?"-":"",a=lo(this._milliseconds)!==lo(c)?"-":"",s+"P"+(n?i+n+"Y":"")+(u?i+u+"M":"")+(h?o+h+"D":"")+(t||e||l?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(l?a+r+"S":"")):"P0D"}var uo=ar.prototype;return uo.isValid=ir,uo.abs=Ri,uo.add=_i,uo.subtract=Ni,uo.as=Oi,uo.asMilliseconds=Pi,uo.asSeconds=Li,uo.asMinutes=Di,uo.asHours=ki,uo.asDays=Hi,uo.asWeeks=Fi,uo.asMonths=Ui,uo.asQuarters=Vi,uo.asYears=Bi,uo.valueOf=Wi,uo._bubble=bi,uo.clone=Yi,uo.get=Gi,uo.milliseconds=zi,uo.seconds=$i,uo.minutes=Ki,uo.hours=Xi,uo.days=qi,uo.weeks=Ji,uo.months=Qi,uo.years=Zi,uo.humanize=oo,uo.toISOString=ho,uo.toString=ho,uo.toJSON=ho,uo.locale=as,uo.localeData=hs,uo.toIsoString=N("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ho),uo.lang=ls,B("X",0,0,"unix"),B("x",0,0,"valueOf"),Ae("x",Ce),Ae("X",Re),Le("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),Le("x",function(e,t,n){n._d=new Date(xe(e))}),
|
|
241
|
+
turning off the "renderAllColumns" option.`));for(let e=0;e<t;e++){const t=this.table.renderedColumnToSource(e),n=this.table.columnUtils.getHeaderWidth(t);this.rootNode.childNodes[e].style.width=`${n}px`}for(let n=0;n<e;n++){const e=this.table.renderedColumnToSource(n),r=this.table.columnUtils.getWidth(e);this.rootNode.childNodes[n+t].style.width=`${r}px`}const n=this.rootNode.firstChild;n&&(0,o.addClass)(n,"rowHeader")}}t.ColGroupRenderer=l},28138:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(81115)),i=n(89090),o=n(27328),a=r(n(85187));const l=["data","width"];t.default=class{constructor(e){(0,s.default)(this,"globalMeta",void 0),(0,s.default)(this,"metas",new a.default(()=>this._createMeta())),this.globalMeta=e,this.metas=new a.default(()=>this._createMeta())}updateMeta(e,t){const n=this.getMeta(e);(0,i.extend)(n,t),(0,o.extendByMetaType)(n,t)}createColumn(e,t){this.metas.insert(e,t)}removeColumn(e,t){this.metas.remove(e,t)}getMeta(e){return this.metas.obtain(e)}getMetaConstructor(e){return this.metas.obtain(e).constructor}clearCache(){this.metas.clear()}_createMeta(){return(0,o.columnFactory)(this.globalMeta.getMetaConstructor(),l).prototype}}},28235:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(94023);t.EDITOR_STATE=r.EDITOR_STATE,t.EDITOR_TYPE=r.EDITOR_TYPE,t.BaseEditor=r.BaseEditor},28242:(e,t,n)=>{"use strict";t.__esModule=!0,t.createMenuFocusController=function(e,t){let n,l=-1;const h=(0,r.createFocusNavigator)(t),u=e=>()=>{n.isOpened()&&n.getKeyboardShortcutsCtrl().listen(a),h.setCurrentPage(t.indexOf(e))};function c(e){const r=n.getKeyboardShortcutsCtrl(),u=e.getKeyboardShortcutsCtrl();h.clear(),u.addCustomShortcuts([{keys:[["Tab"],["Shift","Tab"]],forwardToContext:r.getContext(a),callback:()=>{e.isSubMenu()&&e.close(),r.listen(a)}}]),e.isSubMenu()||r.addCustomShortcuts([{keys:[["Tab"],["Shift","Tab"]],callback:e=>{const t=n.getNavigator();t.getCurrentPage()>-1&&(l=t.getCurrentPage()),t.clear(),e.shiftKey?h.toPreviousItem():h.toNextItem()}},{keys:[["Escape"]],callback:()=>{n.close()}},{keys:[["Enter"],["Space"]],preventDefault:!1,callback:e=>{const n=t[h.getCurrentPage()];n instanceof s.SelectUI&&(n.openOptions(),e.preventDefault()),n instanceof o.LinkUI&&(n.activate(),e.preventDefault()),n instanceof i.BaseUI||e.preventDefault()}}],a)}function d(e){e.addLocalHook("afterSelectionChange",e=>{e.key.startsWith("filter_")||h.clear()}),e.addLocalHook("afterSubmenuOpen",c),e.addLocalHook("afterOpen",c),n=e}return t.forEach(e=>{e instanceof i.BaseUI&&(e.addLocalHook("click",u(e)),e.addLocalHook("focus",u(e)),e.addLocalHook("afterClose",u(e)))}),d(e),{...h,listen:function(){n.focus(),n.getKeyboardShortcutsCtrl().listen(a)},setMenu:d,getMenu:function(){return n},getLastMenuPage:function(){return l}}},n(81396),n(88633);var r=n(43337),s=n(6951),i=n(31591),o=n(49039);const a="filters"},28382:()=>{},28465:()=>{},28585:(e,t,n)=>{"use strict";t.__esModule=!0,t.getPlugin=c,t.getPluginsNames=function(){return[...l.getItems(),...h.getItems()]},t.hasPlugin=function(e){return!!c(e)},t.registerPlugin=function(e,t,n){[e,t,n]=function(e,t,n){"function"==typeof e&&(e=(t=e).PLUGIN_KEY,n=t.PLUGIN_PRIORITY);return[e,t,n]}(e,t,n),void 0===c(e)&&function(e,t,n){const s=(0,r.toUpperCaseFirst)(e);if(u.hasItem(s))throw new Error(a(s));void 0===n?h.addItem(s):l.addItem(n,s);u.addItem(s,t)}(e,t,n)},n(22588);var r=n(16656),s=n(4778),i=n(66419),o=n(94045);const a=e=>`There is already registered "${e}" plugin.`,l=(0,s.createPriorityMap)({errorPriorityExists:e=>`There is already registered plugin on priority "${e}".`,errorPriorityNaN:e=>`The priority "${e}" is not a number.`}),h=(0,o.createUniqueSet)({errorItemExists:a}),u=(0,i.createUniqueMap)({errorIdExists:a});function c(e){const t=(0,r.toUpperCaseFirst)(e);return u.getItem(t)}},28601:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(81115)),i=n(38942),o=r(n(87901)),a=n(80484),l=n(21985);class h extends a.Overlay{constructor(e,t,n,r,i,o){super(e,t,l.CLONE_TOP_INLINE_START_CORNER,n,r),(0,s.default)(this,"topOverlay",void 0),(0,s.default)(this,"inlineStartOverlay",void 0),this.topOverlay=i,this.inlineStartOverlay=o}createTable(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new o.default(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderTopOverlay")&&this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}resetFixedPosition(){if(this.updateTrimmingContainer(),!this.wot.wtTable.holder.parentNode)return!1;const e=this.clone.wtTable.holder.parentNode;if(this.trimmingContainer===this.domBindings.rootWindow){const t=this.inlineStartOverlay.getOverlayOffset()*(this.isRtl()?-1:1),n=this.topOverlay.getOverlayOffset();(0,i.setOverlayPosition)(e,`${t}px`,`${n}px`)}else(0,i.resetCssTransform)(e);let t=(0,i.outerHeight)(this.clone.wtTable.TABLE);const n=(0,i.outerWidth)(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(t=0),e.style.height=`${t}px`,e.style.width=`${n}px`,!1}}t.TopInlineStartCornerOverlay=h},28636:()=>{},28749:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182),n(81396),n(81124);var s=r(n(81115)),i=n(38942),o=n(68834),a=n(30152),l=n(21510),h=n(89090),u=m(n(20217)),c=n(22268),d=m(n(76897)),g=n(54459),p=n(6951),f=n(25039);function m(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(m=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)}function E(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function w(e,t,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 y=new WeakSet;class C extends c.BaseComponent{constructor(e,t){super(e,{id:t.id,stateless:!1}),E(this,y),(0,s.default)(this,"name",""),(0,s.default)(this,"addSeparator",!1),this.name=t.name,this.addSeparator=t.addSeparator,this.elements.push(new p.SelectUI(this.hot,{menuContainer:t.menuContainer})),this.elements.push(new g.InputUI(this.hot,{placeholder:u.FILTERS_BUTTONS_PLACEHOLDER_VALUE})),this.elements.push(new g.InputUI(this.hot,{placeholder:u.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE})),this.registerHooks()}registerHooks(){this.getSelectElement().addLocalHook("select",e=>w(y,this,v).call(this,e)).addLocalHook("afterClose",()=>this.runLocalHooks("afterClose")).addLocalHook("tabKeydown",e=>this.runLocalHooks("selectTabKeydown",e)),(0,a.arrayEach)(this.getInputElements(),e=>{e.addLocalHook("keydown",e=>w(y,this,S).call(this,e))})}setState(e){if(this.reset(),!e)return;const t=(0,h.clone)(e.command);t.name.startsWith(u.FILTERS_CONDITIONS_NAMESPACE)&&(t.name=this.hot.getTranslatedPhrase(t.name)),this.getSelectElement().setValue(t),(0,a.arrayEach)(e.args,(e,n)=>{if(n>t.inputsCount-1)return!1;const r=this.getInputElement(n);r.setValue(e),r[t.inputsCount>n?"show":"hide"](),n||this.hot._registerTimeout(()=>r.focus(),10)})}getState(){const e=this.getSelectElement().getValue()||(0,f.getConditionDescriptor)(d.CONDITION_NONE),t=[];return(0,a.arrayEach)(this.getInputElements(),(n,r)=>{e.inputsCount>r&&t.push(n.getValue())}),{command:e,args:t}}updateState(e,t){const n=e?(0,f.getConditionDescriptor)(e.name):(0,f.getConditionDescriptor)(d.CONDITION_NONE);this.state.setValueAtIndex(t,{command:n,args:e?e.args:[]}),e||(0,a.arrayEach)(this.getInputElements(),e=>e.setValue(null))}getSelectElement(){return this.elements.filter(e=>e instanceof p.SelectUI)[0]}getInputElement(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.getInputElements()[e]}getInputElements(){return this.elements.filter(e=>e instanceof g.InputUI)}getMenuItemDescriptor(){return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:()=>this.isHidden(),renderer:(e,t,n,r,s,o)=>{(0,i.addClass)(t.parentNode,"htFiltersMenuCondition"),this.addSeparator&&(0,i.addClass)(t.parentNode,"border");const l=this.hot.rootDocument.createElement("div");return(0,i.addClass)(l,"htFiltersMenuLabel"),l.textContent=o,t.appendChild(l),t.parentElement.hasAttribute("ghost-table")||(0,a.arrayEach)(this.elements,e=>t.appendChild(e.element)),t}}}reset(){const e=this.hot.getPlugin("filters").getSelectedColumn();let t=[(0,f.getConditionDescriptor)(d.CONDITION_NONE)];if(null!==e){const{visualIndex:n}=e;t=(0,d.default)(this.hot.getDataType(0,n,this.hot.countRows(),n))}(0,a.arrayEach)(this.getInputElements(),e=>e.hide()),this.getSelectElement().setItems(t),super.reset(),this.getSelectElement().setValue(t[0])}}function v(e){(0,a.arrayEach)(this.getInputElements(),(t,n)=>{t[e.inputsCount>n?"show":"hide"](),0===n&&this.hot._registerTimeout(()=>t.focus(),10)}),this.runLocalHooks("change",e)}function S(e){(0,l.isKey)(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),(0,o.stopImmediatePropagation)(e))}t.ConditionComponent=C},28804:(e,t,n)=>{"use strict";var r=n(52576),s=n(20155);e.exports=Object.keys||function(e){return r(e,s)}},28861:(e,t,n)=>{"use strict";t.__esModule=!0,t.handleMouseEvent=function(e,t){a.get(e.type)({isShiftKey:e.shiftKey,isLeftClick:(0,r.isLeftClick)(e)||"touchstart"===e.type,isRightClick:(0,r.isRightClick)(e),...t})},t.mouseDown=s,t.mouseOver=i,t.mouseUp=o,n(81396),n(14618);var r=n(68834);function s(e){let{isShiftKey:t,isLeftClick:n,isRightClick:r,coords:s,selection:i,controller:o,cellCoordsFactory:a}=e;const l=i.isSelected()?i.getSelectedRange().current():null,h=i.isSelectedByCorner(),u=i.isSelectedByRowHeader();if(i.markSource("mouse"),t&&l)s.row>=0&&s.col>=0&&!o.cell?i.setRangeEnd(s):(h||u)&&s.row>=0&&s.col>=0&&!o.cell?i.setRangeEnd(a(s.row,s.col)):h&&s.row<0&&!o.column?i.setRangeEnd(a(l.to.row,s.col)):u&&s.col<0&&!o.row?i.setRangeEnd(a(s.row,l.to.col)):(!h&&!u&&s.col<0||h&&s.col<0)&&!o.row?i.selectRows(Math.max(l.from.row,0),s.row,s.col):(!h&&!u&&s.row<0||u&&s.row<0)&&!o.column&&i.selectColumns(Math.max(l.from.col,0),s.col,s.row);else{const e=!i.inInSelection(s),t=n||r&&e;s.row<0&&s.col>=0&&!o.column?t&&i.selectColumns(s.col,s.col,s.row):s.col<0&&s.row>=0&&!o.row?t&&i.selectRows(s.row,s.row,s.col):s.col>=0&&s.row>=0&&!o.cell?t&&i.setRangeStart(s):s.col<0&&s.row<0&&i.selectAll(!0,!0,{disableHeadersHighlight:!0,focusPosition:{row:0,col:0}})}i.markEndSource()}function i(e){let{isLeftClick:t,coords:n,selection:r,controller:s,cellCoordsFactory:i}=e;if(!t)return;const o=r.isSelectedByRowHeader(),a=r.isSelectedByColumnHeader(),l=r.tableProps.countCols(),h=r.tableProps.countRows();r.markSource("mouse"),a&&!s.column?r.setRangeEnd(i(h-1,n.col)):o&&!s.row?r.setRangeEnd(i(n.row,l-1)):s.cell||r.setRangeEnd(n),r.markEndSource()}function o(e){let{isLeftClick:t,selection:n,cellRangeMapper:r}=e;if(!t||"multiple"!==n.settings.selectionMode)return;const s=n.getSelectedRange(),i=s.clone().map(e=>r.toRenderable(e)),o=i.current();if(i.size()>1&&!o.isHeader()&&!n.isMultiple(o)){const e=i.findAll(o);e.length===i.size()?(s.pop(),n.refresh()):e.length>1&&(s.removeLayers(e.map(e=>{let{layer:t}=e;return t})),n.refresh())}}const a=new Map([["touchstart",s],["touchend",o],["mousedown",s],["mouseover",i],["mouseup",o]])},28874:(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(30217);const o=t.CONDITION_NAME="not_contains";function a(e,t){return!(0,s.getCondition)(i.CONDITION_NAME,t)(e)}(0,s.registerCondition)(o,a,{name:r.FILTERS_CONDITIONS_NOT_CONTAIN,inputsCount:1,showOperators:!0})},28924:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,t.getRegisteredMapsCounter=function(){return l},n(81396),n(88633);var s=r(n(81115)),i=n(54342),o=n(89090),a=r(n(24285));let l=0;class h{constructor(){(0,s.default)(this,"collection",new Map)}register(e,t){!1===this.collection.has(e)&&(this.collection.set(e,t),t.addLocalHook("change",()=>this.runLocalHooks("change",t)),l+=1)}unregister(e){const t=this.collection.get(e);(0,i.isDefined)(t)&&(t.destroy(),this.collection.delete(e),this.runLocalHooks("change",t),l-=1)}unregisterAll(){this.collection.forEach((e,t)=>this.unregister(t)),this.collection.clear()}get(e){return(0,i.isUndefined)(e)?Array.from(this.collection.values()):this.collection.get(e)}getLength(){return this.collection.size}removeFromEvery(e){this.collection.forEach(t=>{t.remove(e)})}insertToEvery(e,t){this.collection.forEach(n=>{n.insert(e,t)})}initEvery(e){this.collection.forEach(t=>{t.init(e)})}}t.MapCollection=h,(0,o.mixin)(h,a.default)},28949:()=>{},29160:()=>{},29194:(e,t,n)=>{"use strict";t.__esModule=!0,n(81396),n(14618);const r=new Map([[" ","space"],["spacebar","space"],["scroll","scrolllock"],["del","delete"],["esc","escape"],["medianexttrack","mediatracknext"],["mediaprevioustrack","mediatrackprevious"],["volumeup","audiovolumeup"],["volumedown","audiovolumedown"],["volumemute","audiovolumemute"],["multiply","*"],["add","+"],["divide","/"],["subtract","-"],["left","arrowleft"],["right","arrowright"],["up","arrowup"],["down","arrowdown"]]);t.normalizeKeys=e=>e.map(e=>{const t=e.toLowerCase();return r.has(t)?r.get(t):t}).sort().join("+");t.getKeysList=e=>e.split("+");const s=new Map([[96,"numpad0"],[97,"numpad1"],[98,"numpad2"],[99,"numpad3"],[100,"numpad4"],[101,"numpad5"],[102,"numpad6"],[103,"numpad7"],[104,"numpad8"],[105,"numpad9"],[106,"multiply"],[107,"add"],[108,"decimal"],[109,"subtract"],[110,"decimal"],[111,"divide"],[112,"f1"],[113,"f2"],[114,"f3"],[115,"f4"],[116,"f5"],[117,"f6"],[118,"f7"],[119,"f8"],[120,"f9"],[121,"f10"],[122,"f11"],[123,"f12"],[186,"semicolon"],[187,"equal"],[188,"comma"],[189,"minus"],[190,"period"],[191,"slash"],[192,"backquote"],[219,"bracketleft"],[220,"backslash"],[221,"bracketright"],[222,"quote"]]);t.normalizeEventKey=e=>{let{which:t,key:n}=e;if(s.has(t))return s.get(t);const r=String.fromCharCode(t).toLowerCase();return/^[a-z0-9]$/.test(r)?r:n.toLowerCase()}},29224:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(81396),n(81124);var s=r(n(81115)),i=n(20751);class o extends i.BaseAction{constructor(e){let{conditionsStack:t,previousConditionsStack:n}=e;super("filter"),(0,s.default)(this,"conditionsStack",void 0),(0,s.default)(this,"previousConditionsStack",void 0),this.conditionsStack=t,this.previousConditionsStack=n}static startRegisteringEvents(e,t){e.addHook("beforeFilter",(e,n)=>{t.done(()=>new o({conditionsStack:e,previousConditionsStack:n}))})}undo(e,t){const n=e.getPlugin("filters");e.addHookOnce("afterViewRender",t),n.importConditions(this.previousConditionsStack),n.filter()}redo(e,t){const n=e.getPlugin("filters");e.addHookOnce("afterViewRender",t),n.importConditions(this.conditionsStack),n.filter()}}t.FiltersAction=o},29521:(e,t,n)=>{"use strict";var r=n(49510),s=n(16539),i=n(19617),o=n(11127),a=n(83203),l="Invalid size",h=RangeError,u=TypeError,c=Math.max,d=function(e,t){this.set=e,this.size=c(t,0),this.has=r(e.has),this.keys=r(e.keys)};d.prototype={getIterator:function(){return a(s(i(this.keys,this.set)))},includes:function(e){return i(this.has,this.set,e)}},e.exports=function(e){s(e);var t=+e.size;if(t!=t)throw new u(l);var n=o(t);if(n<0)throw new h(l);return new d(e,n)}},29705:(e,t)=>{"use strict";t.__esModule=!0;t.REGISTERED_HOOKS=["afterCellMetaReset","afterChange","afterContextMenuDefaultOptions","beforeContextMenuSetItems","afterDropdownMenuDefaultOptions","beforeDropdownMenuSetItems","afterContextMenuHide","beforeContextMenuShow","afterContextMenuShow","afterCopyLimit","beforeCreateCol","afterColumnSequenceCacheUpdate","afterColumnSequenceChange","afterCreateCol","beforeCreateRow","afterCreateRow","afterDeselect","afterDestroy","afterDocumentKeyDown","afterDrawSelection","beforeRemoveCellClassNames","beforeCompositionStart","afterGetCellMeta","afterGetColHeader","afterGetRowHeader","afterInit","afterLoadData","afterUpdateData","afterMomentumScroll","afterOnCellCornerMouseDown","afterOnCellCornerDblClick","afterOnCellMouseDown","afterOnCellMouseUp","afterOnCellContextMenu","afterOnCellMouseOver","afterOnCellMouseOut","afterRemoveCol","afterRemoveRow","beforeRenderer","afterRenderer","afterRowSequenceCacheUpdate","afterRowSequenceChange","beforeViewportScrollVertically","beforeViewportScrollHorizontally","beforeViewportScroll","afterScrollHorizontally","afterScrollVertically","afterScroll","afterSelection","afterSelectionByProp","afterSelectionEnd","afterSelectionEndByProp","afterSelectionFocusSet","beforeSelectColumns","afterSelectColumns","beforeSelectRows","afterSelectRows","beforeSelectAll","afterSelectAll","afterSetCellMeta","afterRemoveCellMeta","afterSetDataAtCell","afterSetDataAtRowProp","afterSetSourceDataAtCell","afterSetTheme","afterUpdateSettings","afterValidate","beforeLanguageChange","afterLanguageChange","beforeAutofill","afterAutofill","beforeCellAlignment","beforeChange","beforeChangeRender","beforeHeightChange","beforeWidthChange","beforeDrawBorders","beforeGetCellMeta","beforeRemoveCellMeta","beforeInit","beforeInitWalkontable","beforeLoadData","beforeUpdateData","beforeKeyDown","beforeOnCellMouseDown","beforeOnCellMouseUp","beforeOnCellContextMenu","beforeOnCellMouseOver","beforeOnCellMouseOut","beforeRemoveCol","beforeRemoveRow","beforeViewRender","afterViewRender","beforeRender","afterRender","beforeRowWrap","beforeColumnWrap","beforeSetCellMeta","beforeSelectionFocusSet","beforeSetRangeStartOnly","beforeSetRangeStart","beforeSetRangeEnd","beforeSelectionHighlightSet","beforeTouchScroll","beforeValidate","beforeValueRender","construct","init","modifyColHeader","modifyColWidth","modifyFiltersMultiSelectValue","modifyFocusedElement","modifyRowHeader","modifyRowHeight","modifyRowHeightByOverlayName","modifyData","modifySourceData","modifyRowData","modifyGetCellCoords","modifyGetCoordsElement","modifyFocusOnTabNavigation","beforeHighlightingRowHeader","beforeHighlightingColumnHeader","persistentStateLoad","persistentStateReset","persistentStateSave","beforeColumnSort","afterColumnSort","modifyAutofillRange","modifyCopyableRange","beforeCut","afterCut","beforeCopy","afterCopy","beforePaste","afterPaste","beforeColumnFreeze","afterColumnFreeze","beforeColumnMove","afterColumnMove","beforeColumnUnfreeze","afterColumnUnfreeze","beforeRowMove","afterRowMove","beforeColumnResize","afterColumnResize","beforeRowResize","afterRowResize","afterGetColumnHeaderRenderers","afterGetRowHeaderRenderers","beforeStretchingColumnWidth","beforeFilter","afterFilter","beforePageChange","afterPageChange","beforePageSizeChange","afterPageSizeChange","afterPageSizeVisibilityChange","afterPageCounterVisibilityChange","afterPageNavigationVisibilityChange","afterFormulasValuesUpdate","afterNamedExpressionAdded","afterNamedExpressionRemoved","afterSheetAdded","afterSheetRenamed","afterSheetRemoved","modifyColumnHeaderHeight","modifyColumnHeaderValue","beforeUndo","beforeUndoStackChange","afterUndo","afterUndoStackChange","beforeRedo","beforeRedoStackChange","afterRedo","afterRedoStackChange","modifyRowHeaderWidth","modifyTransformFocus","modifyTransformStart","modifyTransformEnd","afterModifyTransformFocus","afterModifyTransformStart","afterModifyTransformEnd","afterViewportRowCalculatorOverride","afterViewportColumnCalculatorOverride","afterPluginsInitialized","beforeHideRows","afterHideRows","beforeUnhideRows","afterUnhideRows","beforeHideColumns","afterHideColumns","beforeUnhideColumns","afterUnhideColumns","beforeTrimRow","afterTrimRow","beforeUntrimRow","afterUntrimRow","beforeDropdownMenuShow","afterDropdownMenuShow","afterDropdownMenuHide","beforeAddChild","afterAddChild","beforeDetachChild","afterDetachChild","beforeBeginEditing","afterDialogHide","afterDialogShow","beforeDialogHide","beforeDialogShow","dialogFocusPreviousElement","dialogFocusNextElement","afterDialogFocus","beforeLoadingShow","afterLoadingShow","beforeLoadingHide","afterLoadingHide","beforeEmptyDataStateShow","afterEmptyDataStateShow","beforeEmptyDataStateHide","afterEmptyDataStateHide","afterBeginEditing","beforeMergeCells","afterMergeCells","beforeUnmergeCells","afterUnmergeCells","afterListen","afterUnlisten","afterRefreshDimensions","beforeRefreshDimensions","beforeColumnCollapse","afterColumnCollapse","beforeColumnExpand","afterColumnExpand","modifyAutoColumnSizeSeed"],t.REMOVED_HOOKS=new Map([["modifyRow","8.0.0"],["modifyCol","8.0.0"],["unmodifyRow","8.0.0"],["unmodifyCol","8.0.0"],["skipLengthCache","8.0.0"],["hiddenColumn","8.0.0"],["hiddenRow","8.0.0"]]),t.DEPRECATED_HOOKS=new Map([[]])},29775:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(23176);t.createShortcutManager=r.createShortcutManager},30009:(e,t)=>{"use strict";t.__esModule=!0;t.default=class{constructor(){this.data={}}setData(e,t){this.data[e]=t}getData(e){return this.data[e]||void 0}}},30137:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588);var s=r(n(81115)),i=r(n(37539)),o=r(n(11265)),a=n(28235),l=n(95605),h=n(38942),u=n(89090),c=n(21510),d=n(58617);function g(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function p(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 f=t.EDITOR_TYPE="date",m="dateEditor";var E=new WeakSet;class w extends l.TextEditor{constructor(){super(...arguments),g(this,E),(0,s.default)(this,"parentDestroyed",!1),(0,s.default)(this,"$datePicker",null)}static get EDITOR_TYPE(){return f}init(){if("function"!=typeof i.default)throw new Error("You need to include moment.js to your project.");if("function"!=typeof o.default)throw new Error("You need to include Pikaday to your project.");super.init(),this.hot.addHook("afterDestroy",()=>{this.parentDestroyed=!0,this.destroyElements()}),this.hot.addHook("afterSetTheme",(e,t)=>{t||this.close()})}createElements(){super.createElements(),this.datePicker=this.hot.rootDocument.createElement("DIV"),this.datePickerStyle=this.datePicker.style,this.datePickerStyle.position="absolute",this.datePickerStyle.top=0,this.datePickerStyle.left=0,this.datePickerStyle.zIndex=9999,this.datePicker.setAttribute("dir",this.hot.isRtl()?"rtl":"ltr"),(0,h.addClass)(this.datePicker,"htDatepickerHolder"),this.hot.rootPortalElement.appendChild(this.datePicker),this.eventManager.addEventListener(this.datePicker,"mousedown",e=>{(0,h.hasClass)(e.target,"pika-day")&&this.hideDatepicker(),e.stopPropagation()})}destroyElements(){const e=this.datePicker.parentNode;this.$datePicker&&this.$datePicker.destroy(),e&&e.removeChild(this.datePicker)}prepare(e,t,n,r,s,i){super.prepare(e,t,n,r,s,i)}open(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=this.hot.getShortcutManager().getContext("editor");this.showDatepicker(e),super.open(),t.addShortcuts([{keys:[["ArrowLeft"]],callback:()=>{this.$datePicker.adjustDate("subtract",1)}},{keys:[["ArrowRight"]],callback:()=>{this.$datePicker.adjustDate("add",1)}},{keys:[["ArrowUp"]],callback:()=>{this.$datePicker.adjustDate("subtract",7)}},{keys:[["ArrowDown"]],callback:()=>{this.$datePicker.adjustDate("add",7)}}],{group:m})}close(){var e;null!==(e=this.$datePicker)&&void 0!==e&&e.destroy&&this.$datePicker.destroy(),this.hot._registerTimeout(()=>{const e=this.hot._getEditorManager();e.closeEditor(),this.hot.view.render(),e.prepareEditor()});this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(m),super.close()}finishEditing(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super.finishEditing(e,t)}showDatepicker(e){const t=p(E,this,y).call(this),n=this.hot.view.isMouseDown(),r=!!e&&(0,c.isFunctionKey)(e.keyCode);let s;this.datePicker.style.display="block",this.$datePicker=new o.default(this.getDatePickerConfig()),"function"==typeof this.$datePicker.useMoment&&this.$datePicker.useMoment(i.default),this.$datePicker._onInputFocus=function(){},this.originalValue?(s=this.originalValue,(0,i.default)(s,t,!0).isValid()&&this.$datePicker.setMoment((0,i.default)(s,t),!0),this.getValue()!==this.originalValue&&this.setValue(this.originalValue),r||n||this.setValue("")):this.cellProperties.defaultDate?(s=this.cellProperties.defaultDate,(0,i.default)(s,t,!0).isValid()&&this.$datePicker.setMoment((0,i.default)(s,t),!0),r||n||this.setValue("")):this.$datePicker.gotoToday()}hideDatepicker(){this.datePickerStyle.display="none",this.$datePicker.hide()}getDatePickerConfig(){var e;const t=this.TEXTAREA,n={};this.cellProperties&&this.cellProperties.datePickerConfig&&(0,u.deepExtend)(n,this.cellProperties.datePickerConfig);const r=n.onSelect,s=n.onClose;return n.field=t,n.trigger=t,n.container=this.datePicker,n.bound=!1,n.keyboardInput=!1,n.format=null!==(e=n.format)&&void 0!==e?e:p(E,this,y).call(this),n.reposition=n.reposition||!1,n.isRTL=!1,n.onSelect=e=>{let t=e;isNaN(t.getTime())||(t=(0,i.default)(t).format(p(E,this,y).call(this))),this.setValue(t),r&&r(),(0,d.isMobileBrowser)()&&this.hideDatepicker()},n.onClose=()=>{this.parentDestroyed||this.finishEditing(!1),s&&s()},n}refreshDimensions(e){var t;if(super.refreshDimensions(e),this.state!==a.EDITOR_STATE.EDITING)return;if(this.TD=this.getEditedCell(),!this.TD)return void this.hideDatepicker();const{rowIndexMapper:n,columnIndexMapper:r}=this.hot,{wtOverlays:s}=this.hot.view._wt,{wtTable:i}=null!==(t=s.getParentOverlay(this.TD))&&void 0!==t?t:this.hot.view._wt,o=n.getVisualFromRenderableIndex(i.getFirstPartiallyVisibleRow()),l=n.getVisualFromRenderableIndex(i.getLastPartiallyVisibleRow()),u=r.getVisualFromRenderableIndex(i.getFirstPartiallyVisibleColumn()),c=r.getVisualFromRenderableIndex(i.getLastPartiallyVisibleColumn());if(this.row>=o&&this.row<=l&&this.col>=u&&this.col<=c){const e=this.TD.getBoundingClientRect();this.datePickerStyle.top=`${this.hot.rootWindow.pageYOffset+e.top+(0,h.outerHeight)(this.TD)}px`;let t=this.hot.rootWindow.pageXOffset;this.hot.isRtl()?t+=e.right-(0,h.outerWidth)(this.datePicker):t+=e.left,this.datePickerStyle.left=`${t}px`}else this.hideDatepicker()}}function y(){var e;return null!==(e=this.cellProperties.dateFormat)&&void 0!==e?e:"DD/MM/YYYY"}t.DateEditor=w},30152:(e,t,n)=>{"use strict";function r(e,t,n,r){let s=-1,i=e,o=n;Array.isArray(e)||(i=Array.from(e));const a=i.length;for(r&&a&&(s+=1,o=i[s]),s+=1;s<a;)o=t(o,i[s],s,i),s+=1;return o}function s(e,t){let n=0,r=e;Array.isArray(e)||(r=Array.from(e));const s=r.length;for(;n<s&&!1!==t(r[n],n,r);)n+=1;return e}function i(e){return r(e,(e,t)=>e+t,0)}t.__esModule=!0,t.arrayAvg=function(e){if(!e.length)return 0;return i(e)/e.length},t.arrayEach=s,t.arrayFilter=function(e,t){let n=0,r=e;Array.isArray(e)||(r=Array.from(e));const s=r.length,i=[];let o=-1;for(;n<s;){const e=r[n];t(e,n,r)&&(o+=1,i[o]=e),n+=1}return i},t.arrayFlatten=function e(t){return r(t,(t,n)=>t.concat(Array.isArray(n)?e(n):n),[])},t.arrayMap=function(e,t){let n=0,r=e;Array.isArray(e)||(r=Array.from(e));const s=r.length,i=[];let o=-1;for(;n<s;){const e=r[n];o+=1,i[o]=t(e,n,r),n+=1}return i},t.arrayMax=function(e){return r(e,(e,t)=>e>t?e:t,Array.isArray(e)?e[0]:void 0)},t.arrayMin=function(e){return r(e,(e,t)=>e<t?e:t,Array.isArray(e)?e[0]:void 0)},t.arrayReduce=r,t.arraySum=i,t.arrayUnique=function(e){const t=[];return s(e,e=>{-1===t.indexOf(e)&&t.push(e)}),t},t.extendArray=function(e,t){const n=t.length;let r=0;for(;r<n;)e.push(t[r]),r+=1},t.getDifferenceOfArrays=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const[r,...i]=[...t];let o=r;return s(i,e=>{o=o.filter(t=>!e.includes(t))}),o},t.getIntersectionOfArrays=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const[r,...i]=[...t];let o=r;return s(i,e=>{o=o.filter(t=>e.includes(t))}),o},t.getUnionOfArrays=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const[r,...i]=[...t],o=new Set(r);return s(i,e=>{s(e,e=>{o.has(e)||o.add(e)})}),Array.from(o)},t.pivot=function(e){const t=[];if(!e||0===e.length||!e[0]||0===e[0].length)return t;const n=e.length,r=e[0].length;for(let s=0;s<n;s++)for(let n=0;n<r;n++)t[n]||(t[n]=[]),t[n][s]=e[s][n];return t},t.stringToArray=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";return e.split(t)},t.to2dArray=function(e){const t=e.length;let n=0;for(;n<t;)e[n]=[e[n]],n+=1},n(66182),n(78822),n(86192),n(80729),n(99888),n(12767),n(78644),n(97550),n(81396),n(81124)},30161:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588);var s=n(89090),i=r(n(24285));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,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 l=new WeakMap;class h{constructor(){o(this,l,[])}subscribe(e){var t,n;return this.addLocalHook("change",e),this._write((n=this,(t=l).get(a(t,n)))),this}unsubscribe(){return this.runLocalHooks("unsubscribe"),this.clearLocalHooks(),this}_write(e){return e.length>0&&this.runLocalHooks("change",e),this}_writeInitialChanges(e){var t,n,r;n=this,r=e,(t=l).set(a(t,n),r)}}t.ChangesObserver=h,(0,s.mixin)(h,i.default)},30217:(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="contains";function a(e,t){let[n]=t;return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale).indexOf((0,s.stringify)(n))>=0}(0,i.registerCondition)(o,a,{name:r.FILTERS_CONDITIONS_CONTAINS,inputsCount:1,showOperators:!0})},30229:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182),n(81396),n(81124),n(88633),n(39716);var s=r(n(81115)),i=n(57440),o=n(66563),a=r(n(54620)),l=n(92164),h=n(89090),u=n(72740),c=r(n(23813)),d=n(16656),g=n(51191),p=n(20160);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(y(e,t))}function w(e,t,n){return e.set(y(e,t),n),n}function y(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")}l.Hooks.getSingleton().register("modifyAutoColumnSizeSeed");const C=t.PLUGIN_KEY="autoColumnSize",v=t.PLUGIN_PRIORITY=10;var S=new WeakMap,R=new WeakMap,T=new WeakMap,_=new WeakSet;class N extends i.BasePlugin{static get PLUGIN_KEY(){return C}static get PLUGIN_PRIORITY(){return v}static get SETTING_KEYS(){return!0}static get DEFAULT_SETTINGS(){return{useHeaders:!0,samplingRatio:null,allowSampleDuplicates:!1}}static get CALCULATION_STEP(){return 50}static get SYNC_CALCULATION_LIMIT(){return 50}constructor(e){var t,n;super(e),m(t=this,n=_),n.add(t),(0,s.default)(this,"ghostTable",new a.default(this.hot)),(0,s.default)(this,"samplesGenerator",new c.default((e,t)=>{const n=this.hot.toPhysicalRow(e),r=this.hot.toPhysicalColumn(t);if(this.hot.rowIndexMapper.isHidden(n)||this.hot.columnIndexMapper.isHidden(r))return!1;const s=this.hot.getCellMeta(e,t);let i="";s.spanned||(i=this.hot.getDataAtCell(e,t));let o="";return this.hot.hasHook("modifyAutoColumnSizeSeed")&&(o=this.hot.runHooks("modifyAutoColumnSizeSeed",o,s,i)),{value:i,bundleSeed:o}})),(0,s.default)(this,"inProgress",!1),(0,s.default)(this,"measuredColumns",0),(0,s.default)(this,"columnWidthsMap",new p.PhysicalIndexToValueMap),f(this,S,!1),f(this,R,[]),f(this,T,[]),this.hot.columnIndexMapper.registerMap("autoColumnSize",this.columnWidthsMap),this.addHook("beforeColumnResize",(e,t,n)=>y(_,this,P).call(this,e,t,n))}isEnabled(){return!1!==this.hot.getSettings()[C]&&!this.hot.getSettings().colWidths}enablePlugin(){var e=this;if(this.enabled)return;this.ghostTable.setSetting("useHeaders",this.getSetting("useHeaders")),this.samplesGenerator.setAllowDuplicates(this.getSetting("allowSampleDuplicates"));const t=this.getSetting("samplingRatio");t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),this.addHook("afterLoadData",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return y(_,e,O).call(e,...n)}),this.addHook("beforeChangeRender",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return y(_,e,x).call(e,...n)}),this.addHook("afterFormulasValuesUpdate",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return y(_,e,D).call(e,...n)}),this.addHook("beforeRender",()=>y(_,this,I).call(this)),this.addHook("modifyColWidth",(e,t)=>this.getColumnWidth(t,e)),this.addHook("init",()=>y(_,this,L).call(this)),super.enablePlugin()}updatePlugin(){w(T,this,this.findColumnsWhereHeaderWasChanged()),super.updatePlugin()}disablePlugin(){super.disablePlugin(),this.addHook("beforeColumnResize",(e,t,n)=>y(_,this,P).call(this,e,t,n))}calculateVisibleColumnsWidth(){if(!this.hot.countRows())return;const e=this.getFirstVisibleColumn(),t=this.getLastVisibleColumn();if(-1===e||-1===t)return;const n=this.hot.forceFullRender;this.calculateColumnsWidth({from:e,to:t},void 0,n)}calculateColumnsWidth(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countRows()-1},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r="number"==typeof e?{from:e,to:e}:e,s="number"==typeof t?{from:t,to:t}:t;(0,u.rangeEach)(r.from,r.to,e=>{let t=this.hot.toPhysicalColumn(e);null===t&&(t=e),(n||null===this.columnWidthsMap.getValueAtIndex(t)&&!this.hot._getColWidthFromSettings(t))&&y(_,this,b).call(this,e,s)}),this.ghostTable.columns.length&&(y(_,this,M).call(this),this.measuredColumns=r.to+1,this.ghostTable.clean())}calculateAllColumnsWidth(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0;const r=this.hot.countCols()-1;let s=null;this.inProgress=!0;const i=()=>{if(!this.hot)return(0,o.cancelAnimationFrame)(s),void(this.inProgress=!1);this.calculateColumnsWidth({from:n,to:Math.min(n+N.CALCULATION_STEP,r)},e,t),n=n+N.CALCULATION_STEP+1,n<r?s=(0,o.requestAnimationFrame)(i):((0,o.cancelAnimationFrame)(s),this.inProgress=!1,this.hot.view.adjustElementsSize())},a=this.getSyncCalculationLimit();a>=0&&(this.calculateColumnsWidth({from:0,to:a},e,t),n=a+1),n<r?i():this.inProgress=!1}recalculateAllColumnsWidth(){this.hot.view.isVisible()&&this.calculateAllColumnsWidth({from:0,to:this.hot.countRows()-1},!0)}getSyncCalculationLimit(){const e=this.hot.getSettings()[C];let t=N.SYNC_CALCULATION_LIMIT;const n=this.hot.countCols()-1;return(0,h.isObject)(e)&&(t=e.syncLimit,(0,d.isPercentValue)(t)?t=(0,u.valueAccordingPercent)(n,t):t>>=0),Math.min(t,n)}getColumnWidth(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=t;return void 0===r&&(r=this.columnWidthsMap.getValueAtIndex(this.hot.toPhysicalColumn(e)),n&&"number"==typeof r&&(r=Math.max(r,g.DEFAULT_COLUMN_WIDTH))),r}getFirstVisibleColumn(){var e;return null!==(e=this.hot.getFirstRenderedVisibleColumn())&&void 0!==e?e:-1}getLastVisibleColumn(){var e;return null!==(e=this.hot.getLastRenderedVisibleColumn())&&void 0!==e?e:-1}findColumnsWhereHeaderWasChanged(){return this.hot.getColHeader().reduce((e,t,n)=>{const r=E(R,this).length;return(r-1<n||E(R,this)[n]!==t)&&e.push(this.hot.toVisualColumn(n)),r-1<n?E(R,this).push(t):E(R,this)[n]=t,e},[])}clearCache(e){Array.isArray(e)?this.hot.batchExecution(()=>{e.forEach(e=>{this.columnWidthsMap.setValueAtIndex(e,null)})},!0):this.columnWidthsMap.clear()}isNeedRecalculate(){return!!this.columnWidthsMap.getValues().slice(0,this.measuredColumns).filter(e=>null===e).length}destroy(){this.ghostTable.clean(),super.destroy()}}function A(e){const t={from:0,to:this.hot.countRows()-1};e.forEach(e=>{const n=this.hot.toPhysicalColumn(e);null!==n&&(this.hot._getColWidthFromSettings(n)||y(_,this,b).call(this,e,t))}),this.ghostTable.columns.length&&(y(_,this,M).call(this),this.ghostTable.clean())}function b(e,t){this.samplesGenerator.generateColumnSamples(e,t).forEach((e,t)=>this.ghostTable.addColumn(t,e))}function M(){this.hot.batchExecution(()=>{this.ghostTable.getWidths((e,t)=>{const n=this.hot.toPhysicalColumn(e);this.columnWidthsMap.setValueAtIndex(n,t)})},!0)}function I(){this.calculateVisibleColumnsWidth(),this.inProgress||(y(_,this,A).call(this,E(T,this)),w(T,this,[]))}function O(e,t){t||this.recalculateAllColumnsWidth()}function x(e){const t=e.reduce((e,t)=>{let[,n]=t;const r=this.hot.propToCol(n);return Number.isInteger(r)&&-1===e.indexOf(r)&&e.push(r),e},[]);E(T,this).push(...t)}function P(e,t,n){let r=e;return n&&(this.calculateColumnsWidth(t,void 0,!0),r=this.getColumnWidth(t,void 0,!1)),r}function L(){w(R,this,this.hot.getColHeader()),this.recalculateAllColumnsWidth(),w(S,this,!0)}function D(e){if(!E(S,this))return;const t=e.reduce((e,t)=>{var n;const r=null===(n=t.address)||void 0===n?void 0:n.col;if(Number.isInteger(r)){const t=this.hot.toVisualColumn(r);-1===e.indexOf(t)&&e.push(t)}return e},[]);E(T,this).push(...t)}t.AutoColumnSize=N},30355:()=>{},30417:(e,t,n)=>{"use strict";var r=n(27538),s=n(94988),i=n(55210),o=n(11127),a=n(48651),l=n(89035),h=s("".charAt);r({target:"String",proto:!0,forced:l(function(){return"\ud842"!=="𠮷".at(-2)})},{at:function(e){var t=a(i(this)),n=t.length,r=o(e),s=r>=0?r:n+r;return s<0||s>=n?void 0:h(t,s)}})},30625:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionRight",callback(e){const{selection:t}=e;t.markSource("keyboard"),t.transformStart(0,e.getDirectionFactor()),t.markEndSource()}}},30934:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionLeft",callback(e){const{selection:t}=e;t.markSource("keyboard"),t.transformStart(0,-1*e.getDirectionFactor()),t.markEndSource()}}},31127:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(59830),s=n(39193),i=n(98524);class o extends r.IndexMap{constructor(){super(e=>e)}insert(e,t){const n=(0,i.getIncreasedIndexes)(this.indexedValues,t);this.indexedValues=(0,s.getListWithInsertedItems)(n,e,t),super.insert(e,t)}remove(e){const t=(0,s.getListWithRemovedItems)(this.indexedValues,e);this.indexedValues=(0,i.getDecreasedIndexes)(t,e),super.remove(e)}}t.IndexesSequence=o},31338:(e,t,n)=>{"use strict";var r=n(19596),s=n(14326),i=r.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},31342:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(81396),n(14618);var s=r(n(81115)),i=n(59830),o=n(99799),a=n(39193),l=n(96852),h=n(37849);class u extends i.IndexMap{constructor(){super(...arguments),(0,s.default)(this,"orderOfIndexes",[])}getValues(){return this.orderOfIndexes.map(e=>this.indexedValues[e])}setValues(e){this.orderOfIndexes=[...Array(e.length).keys()],super.setValues(e)}setValueAtIndex(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.orderOfIndexes.length;return e<this.indexedValues.length&&(this.indexedValues[e]=t,!1===this.orderOfIndexes.includes(e)&&this.orderOfIndexes.splice(n,0,e),this.runLocalHooks("change"),!0)}clearValue(e){this.orderOfIndexes=(0,a.getListWithRemovedItems)(this.orderOfIndexes,[e]),(0,h.isFunction)(this.initValueOrFn)?super.setValueAtIndex(e,this.initValueOrFn(e)):super.setValueAtIndex(e,this.initValueOrFn)}getLength(){return this.orderOfIndexes.length}setDefaultValues(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.orderOfIndexes.length=0,super.setDefaultValues(e)}insert(e,t){this.indexedValues=(0,o.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),this.orderOfIndexes=(0,l.getIncreasedIndexes)(this.orderOfIndexes,t),super.insert(e,t)}remove(e){this.indexedValues=(0,o.getListWithRemovedItems)(this.indexedValues,e),this.orderOfIndexes=(0,a.getListWithRemovedItems)(this.orderOfIndexes,e),this.orderOfIndexes=(0,l.getDecreasedIndexes)(this.orderOfIndexes,e),super.remove(e)}getEntries(){return this.orderOfIndexes.map(e=>[e,this.getValueAtIndex(e)])}}t.LinkedPhysicalIndexToValueMap=u},31572:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,t.createHighlight=function(e){let{activeHeaderClassName:t,...n}=e;return new i.default({className:t,...n,selectionType:s.HIGHLIGHT_ACTIVE_HEADER_TYPE})};var s=n(51191),i=r(n(5103))},31591:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(81115)),i=n(89090),o=r(n(24285)),a=r(n(90308)),l=n(38942),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));const c="built",d="building",g=["click","input","keydown","keypress","keyup","focus","blur","change"];class p{static get DEFAULTS(){return(0,i.clone)({className:"",value:"",tagName:"div",children:[],wrapIt:!0})}constructor(e,t){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"eventManager",new a.default(this)),(0,s.default)(this,"options",void 0),(0,s.default)(this,"_element",void 0),(0,s.default)(this,"buildState",void 0),this.hot=e,this.options=(0,i.extend)(p.DEFAULTS,t),this._element=this.hot.rootDocument.createElement(this.options.wrapIt?"div":this.options.tagName)}setValue(e){this.options.value=e,this.update()}getValue(){return this.options.value}get element(){return this.buildState===d?this._element:this.buildState===c?(this.update(),this._element):(this.buildState=d,this.build(),this.buildState=c,this._element)}isBuilt(){return this.buildState===c}translateIfPossible(e){return"string"==typeof e&&e.startsWith(u.FILTERS_NAMESPACE)?this.hot.getTranslatedPhrase(e):e}build(){const e=(e,t)=>{this.eventManager.addEventListener(e,t,e=>this.runLocalHooks(t,e,this))};if(this.buildState||(this.buildState=d),this._element.setAttribute("data-hot-input",!0),void 0!==this.options.tabIndex&&this._element.setAttribute("tabindex",this.options.tabIndex),void 0!==this.options.role&&this._element.setAttribute("role",this.options.role),this.options.className&&(0,l.addClass)(this._element,this.options.className),this.options.children.length)(0,h.arrayEach)(this.options.children,e=>this._element.appendChild(e.element));else if(this.options.wrapIt){const t=this.hot.rootDocument.createElement(this.options.tagName);t.setAttribute("data-hot-input",!0),(0,i.objectEach)(this.options,(e,n)=>{void 0!==t[n]&&"className"!==n&&"tagName"!==n&&"children"!==n&&(t[n]=this.translateIfPossible(e))}),this._element.appendChild(t),(0,h.arrayEach)(g,n=>e(t,n))}else(0,h.arrayEach)(g,t=>e(this._element,t))}update(){}reset(){this.options.value="",this.update()}show(){this.element.style.display=""}hide(){this.element.style.display="none"}focus(){}destroy(){this.eventManager.destroy(),this.eventManager=null,this.hot=null,this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null}}t.BaseUI=p,(0,i.mixin)(p,o.default)},31787:()=>{},31884:(e,t,n)=>{"use strict";var r=n(84990).has;e.exports=function(e){return r(e),e}},31937:()=>{},32039:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToColumns",callback(e){const{selection:t}=e,{highlight:n,from:r,to:s}=e.getSelectedRangeActive();t.markSource("keyboard"),t.isSelectedByRowHeader()?t.selectAll(!0,!0):e.selectColumns(r.col,s.col,n),t.markEndSource()}}},32089:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(66182);var s=r(n(81115)),i=n(28924),o=n(30152),a=n(54342);class l extends i.MapCollection{constructor(e,t){super(),(0,s.default)(this,"mergedValuesCache",[]),(0,s.default)(this,"aggregationFunction",void 0),(0,s.default)(this,"fallbackValue",void 0),this.aggregationFunction=e,this.fallbackValue=t}getMergedValues(){if(!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]))return this.mergedValuesCache;if(0===this.getLength())return[];const e=(0,o.arrayMap)(this.get(),e=>e.getValues()),t=[],n=(0,a.isDefined)(e[0])&&e[0].length||0;for(let r=0;r<n;r+=1){const n=[];for(let t=0;t<this.getLength();t+=1)n.push(e[t][r]);t.push(n)}return(0,o.arrayMap)(t,this.aggregationFunction)}getMergedValueAtIndex(e,t){const n=this.getMergedValues(t)[e];return(0,a.isDefined)(n)?n:this.fallbackValue}updateCache(){this.mergedValuesCache=this.getMergedValues(!1)}}t.AggregatedCollection=l},32153:()=>{},32234:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"borders:top",name(){let e=this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_BORDERS_TOP);return(0,s.checkSelectionBorders)(this,"top")&&(e=(0,s.markSelected)(e)),e},callback(t,n){const r=(0,s.checkSelectionBorders)(this,"top");e.prepareBorder(n,"top",r)}}};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)},32335:(e,t,n)=>{"use strict";n(81396),n(88633),t.__esModule=!0;var r=n(34160);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))})},32453:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182),n(81396),n(19874);var s=r(n(81115)),i=n(57440),o=n(92164),a=n(38942),l=n(89090),h=n(30152),u=n(54342),c=n(12634);function d(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function g(e,t,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("modifyAutofillRange"),o.Hooks.getSingleton().register("beforeAutofill"),o.Hooks.getSingleton().register("afterAutofill");const p=t.PLUGIN_KEY="autofill",f=t.PLUGIN_PRIORITY=20,m=["fillHandle"];var E=new WeakSet;class w extends i.BasePlugin{constructor(){super(...arguments),d(this,E),(0,s.default)(this,"addingStarted",!1),(0,s.default)(this,"mouseDownOnCellCorner",!1),(0,s.default)(this,"mouseDragOutside",!1),(0,s.default)(this,"handleDraggedCells",0),(0,s.default)(this,"directions",[]),(0,s.default)(this,"autoInsertRow",!1)}static get PLUGIN_KEY(){return p}static get PLUGIN_PRIORITY(){return f}static get SETTING_KEYS(){return[p,...m]}isEnabled(){return this.hot.getSettings().fillHandle}enablePlugin(){this.enabled||(this.mapSettings(),this.registerEvents(),this.addHook("afterOnCellCornerMouseDown",e=>g(E,this,v).call(this,e)),this.addHook("afterOnCellCornerDblClick",e=>g(E,this,C).call(this,e)),this.addHook("beforeOnCellMouseOver",(e,t)=>g(E,this,S).call(this,t)),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.clearMappedSettings(),super.disablePlugin()}getSelectionData(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.hot.getSelectedRangeLast(),{row:n,col:r}=t.getTopStartCorner(),{row:s,col:i}=t.getBottomEndCorner(),o=this.hot.runHooks("modifyCopyableRange",[{startRow:n,startCol:r,endRow:s,endCol:i}]),a=[],u=[],c=[];return(0,h.arrayEach)(o,e=>{for(let t=e.startRow;t<=e.endRow;t+=1)-1===a.indexOf(t)&&a.push(t);for(let t=e.startCol;t<=e.endCol;t+=1)-1===u.indexOf(t)&&u.push(t)}),(0,h.arrayEach)(a,t=>{const n=[];(0,h.arrayEach)(u,r=>{const s=e?this.hot.getSourceDataAtCell(t,r):null;e&&(0,l.isObject)(s)?n.push(this.hot.getCopyableSourceData(t,r)):n.push(this.hot.getCopyableData(t,r))}),c.push(n)}),c}fillIn(){if(this.hot.selection.highlight.getFill().isEmpty())return!1;const[e,t,n,r]=this.hot.selection.highlight.getFill().getVisualCorners(),s=this.hot.getSelectedRangeLast(),i=s.getTopStartCorner(),o=s.getBottomEndCorner();this.resetSelectionOfDraggedArea();const a=[i.row,i.col,o.row,o.col],h=this.hot.runHooks("modifyAutofillRange",[Math.min(i.row,e),Math.min(i.col,t),Math.max(o.row,n),Math.max(o.col,r)],a),{directionOfDrag:u,startOfDragCoords:d,endOfDragCoords:p}=(0,c.getDragDirectionAndRange)(a,h,(e,t)=>this.hot._createCellCoords(e,t));if(d&&d.row>-1&&d.col>-1){const e=this.getSelectionData(),t=this.getSelectionData(!0),n=s.clone(),r=this.hot._createCellRange(d,d,p),i=this.hot.runHooks("beforeAutofill",e,n,r,u);if(!1===i)return this.hot.selection.highlight.getFill().clear(),this.hot.render(),!1;let o=i;const a=i;if(["up","left"].indexOf(u)>-1&&(1!==a.length||0!==a[0].length))if(o=[],"up"===u){const e=p.row-d.row+1,t=e%a.length;for(let n=0;n<e;n++)o.push(a[(n+(a.length-t))%a.length])}else{const e=p.col-d.col+1,t=e%a[0].length;for(let n=0;n<a.length;n++){o.push([]);for(let r=0;r<e;r++)o[n].push(a[n][(r+(a[n].length-t))%a[n].length])}}if(t.some(e=>e.some(e=>(0,l.isObject)(e)))){const e=g(E,this,y).call(this,o,t,d,p,u);e.length&&(o=e)}this.hot.populateFromArray(d.row,d.col,o,p.row,p.col,`${this.pluginName}.fill`,null),this.setSelection(h),this.hot.runHooks("afterAutofill",o,n,r,u),this.hot.render()}else this.hot.view.render();return!0}reduceSelectionAreaIfNeeded(e){return e.row<0&&(e.row=0),e.col<0&&(e.col=0),e}getCoordsOfDragAndDropBorders(e){const t=this.hot.getSelectedRangeLast(),n=t.getBottomEndCorner();let r=e;if(this.directions.includes(c.DIRECTIONS.vertical)&&this.directions.includes(c.DIRECTIONS.horizontal)){const s=t.getTopStartCorner();(n.col<=e.col||s.col>=e.col)&&(r=this.hot._createCellCoords(n.row,e.col)),(n.row<e.row||s.row>e.row)&&(r=this.hot._createCellCoords(e.row,n.col))}else if(this.directions.includes(c.DIRECTIONS.vertical))r=this.hot._createCellCoords(e.row,n.col);else{if(!this.directions.includes(c.DIRECTIONS.horizontal))return;r=this.hot._createCellCoords(n.row,e.col)}return this.reduceSelectionAreaIfNeeded(r)}showBorder(e){const t=this.getCoordsOfDragAndDropBorders(e);t&&this.redrawBorders(t)}addRow(){this.hot._registerTimeout(()=>{this.hot.alter("insert_row_below",void 0,1,`${this.pluginName}.fill`),this.addingStarted=!1},200)}addNewRowIfNeeded(){if(!this.hot.selection.highlight.getFill().isEmpty()&&!1===this.addingStarted&&this.autoInsertRow){const e=this.hot.getSelectedLast(),t=this.hot.selection.highlight.getFill().getVisualCorners(),n=this.hot.countRows();e[2]<n-1&&t[2]===n-1&&(this.addingStarted=!0,this.addRow())}}getIndexOfLastAdjacentFilledInRow(e){const t=this.hot.getData(),n=this.hot.countRows();let r;for(let s=e[2]+1;s<n;s++){for(let n=e[1];n<=e[3];n++){const e=t[s][n];if(!(0,u.isEmpty)(e))return-1}const n=t[s][e[1]-1],i=t[s][e[3]+1];(0,u.isEmpty)(n)&&(0,u.isEmpty)(i)||(r=s)}return r}addSelectionFromStartAreaToSpecificRowIndex(e,t){this.hot.selection.highlight.getFill().clear().add(this.hot._createCellCoords(e[0],e[1])).add(this.hot._createCellCoords(t,e[3])).commit()}setSelection(e){this.hot.selectCell(...(0,h.arrayMap)(e,e=>Math.max(e,0)),!1,!1)}selectAdjacent(){const e=this.hot.getSelectedLast(),t=this.getIndexOfLastAdjacentFilledInRow(e);return-1!==t&&void 0!==t&&(this.addSelectionFromStartAreaToSpecificRowIndex(e,t),!0)}resetSelectionOfDraggedArea(){this.handleDraggedCells=0,this.hot.selection.highlight.getFill().clear()}redrawBorders(e){this.hot.selection.highlight.getFill().clear().add(this.hot.getSelectedRangeLast().from).add(this.hot.getSelectedRangeLast().to).add(e).commit(),this.hot.view.render()}getIfMouseWasDraggedOutside(e){const{documentElement:t}=this.hot.rootDocument,n=(0,a.offset)(this.hot.table).top-(this.hot.rootWindow.pageYOffset||t.scrollTop)+(0,a.outerHeight)(this.hot.table),r=(0,a.offset)(this.hot.table).left-(this.hot.rootWindow.pageXOffset||t.scrollLeft)+(0,a.outerWidth)(this.hot.table);return e.clientY>n&&e.clientX<=r}registerEvents(){const{documentElement:e}=this.hot.rootDocument;this.eventManager.addEventListener(e,"mouseup",()=>g(E,this,R).call(this)),this.eventManager.addEventListener(e,"mousemove",e=>g(E,this,T).call(this,e))}clearMappedSettings(){this.directions.length=0,this.autoInsertRow=!1}mapSettings(){const e=(0,c.getMappedFillHandleSetting)(this.hot.getSettings().fillHandle);this.directions=e.directions,this.autoInsertRow=e.autoInsertRow}destroy(){super.destroy()}}function y(e,t,n,r){const s=[];for(let i=Math.min(n.row,r.row);i<=Math.max(n.row,r.row);i+=1){s.push([]);for(let o=Math.min(n.col,r.col);o<=Math.max(n.col,r.col);o+=1){const a=this.hot.getSourceDataAtCell(i,o),h=i-Math.min(n.row,r.row),u=o-Math.min(n.col,r.col),c=h%t.length,d=u%t[0].length;(0,l.isObject)(a)?s[h][u]=t[c][d]:s[h][u]=e[c][d]}}return s}function C(){this.selectAdjacent()&&this.fillIn()}function v(){this.handleDraggedCells=1,this.mouseDownOnCellCorner=!0}function S(e){this.mouseDownOnCellCorner&&!this.hot.view.isMouseDown()&&this.handleDraggedCells&&(this.handleDraggedCells+=1,this.showBorder(e),this.addNewRowIfNeeded())}function R(){this.handleDraggedCells&&(this.handleDraggedCells>1&&this.fillIn(),this.handleDraggedCells=0,this.mouseDownOnCellCorner=!1)}function T(e){const t=this.getIfMouseWasDraggedOutside(e);!1===this.addingStarted&&this.handleDraggedCells>0&&t?(this.mouseDragOutside=!0,this.addingStarted=!0):this.mouseDragOutside=!1,this.mouseDragOutside&&this.autoInsertRow&&this.addRow()}t.Autofill=w},32474:()=>{},32490:(e,t,n)=>{"use strict";t.__esModule=!0,t.updateCaretPosition=function(e,t){const n=(0,r.getCaretPosition)(t),s=t.value.split("\n");let i=n,o=0;for(let t=0;t<s.length;t++){const r=s[t];0!==t&&(o+=s[t-1].length+1);const a=o+r.length;if("home"===e?i=o:"end"===e&&(i=a),n<=a)break}(0,r.setCaretPosition)(t,i)};var r=n(38942)},32591:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,t.default=function(e,t,n){if("function"==typeof o[e])return new o[e](t,n);return null};var s=r(n(25703));const i=t.TYPE_CSV="csv",o=(t.TYPE_EXCEL="excel",t.TYPE_PDF="pdf",t.EXPORT_TYPES={[i]:s.default})},32770:()=>{},32822:()=>{},32918:(e,t,n)=>{"use strict";t.__esModule=!0,t.createKeysObserver=function(){const e=new Set;return{press(t){e.add(t)},release(t){e.delete(t)},releaseAll(){e.clear()},isPressed:t=>e.has(t)}},n(78822),n(86192),n(80729),n(99888),n(12767),n(78644),n(97550)},33021:(e,t,n)=>{"use strict";t.__esModule=!0,t.timeRenderer=i;var r=n(40041);const s=t.RENDERER_TYPE="time";function i(e,t,n,s,i,o,a){r.textRenderer.apply(this,[e,t,n,s,i,o,a]),t.dir="ltr"}i.RENDERER_TYPE=s},33115:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(62601);t.EDITOR_TYPE=r.EDITOR_TYPE,t.NumericEditor=r.NumericEditor},33166:(e,t,n)=>{"use strict";n(88049)("flat")},33297:(e,t)=>{"use strict";t.__esModule=!0,t.getNormalizedDate=function(e){const t=new Date(e);if(!isNaN(new Date(`${e}T00:00`).getDate()))return new Date(t.getTime()+6e4*t.getTimezoneOffset());return t}},33455:()=>{},33462:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182),n(81396),n(88633),n(39716);var s=r(n(81115)),i=n(38942),o=n(66563),a=n(30152),l=n(21510),h=n(58617),u=n(87544),c=n(21596);function d(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 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")}var m=new WeakMap,E=new WeakMap,w=new WeakMap,y=new WeakMap;t.default=class{constructor(e,t,n,r,a,l){(0,s.default)(this,"wot",null),d(this,m,[]),(0,s.default)(this,"topOverlay",null),(0,s.default)(this,"bottomOverlay",null),(0,s.default)(this,"inlineStartOverlay",null),(0,s.default)(this,"topInlineStartCornerOverlay",null),(0,s.default)(this,"bottomInlineStartCornerOverlay",null),(0,s.default)(this,"browserLineHeight",void 0),(0,s.default)(this,"wtSettings",null),d(this,E,!1),d(this,w,0),d(this,y,null),(0,s.default)(this,"resizeObserver",new ResizeObserver(e=>{(0,o.requestAnimationFrame)(()=>{Array.isArray(e)&&e.length&&(g(w,this,p(w,this)+1),300===p(w,this)&&((0,u.warn)("The ResizeObserver callback was fired too many times in direct succession.\nThis may be due to an infinite loop caused by setting a dynamic height/width (for example, with the `dvh` units) to a Handsontable container's parent. \nThe observer will be disconnected."),this.resizeObserver.disconnect()),null!==p(y,this)&&clearTimeout(p(y,this)),g(y,this,setTimeout(()=>{g(w,this,0)},100)),this.wtSettings.getSetting("onContainerElementResize"))})})),this.wot=e,this.wtSettings=r,this.domBindings=n,this.facadeGetter=t,this.wtTable=l;const{rootDocument:h,rootWindow:c}=this.domBindings;this.instance=this.wot,this.eventManager=a,this.scrollbarSize=(0,i.getScrollbarWidth)(h);const f="hidden"===c.getComputedStyle(l.wtRootElement.parentNode).getPropertyValue("overflow");this.scrollableElement=f?l.holder:(0,i.getScrollableElement)(l.TABLE),this.initOverlays(),this.destroyed=!1,this.keyPressed=!1,this.spreaderLastSize={width:null,height:null},this.verticalScrolling=!1,this.horizontalScrolling=!1,this.initBrowserLineHeight(),this.registerListeners(),this.lastScrollX=c.scrollX,this.lastScrollY=c.scrollY}getOverlays(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=[...p(m,this)];return e&&t.push(this.wtTable),t}initBrowserLineHeight(){const{rootWindow:e,rootDocument:t}=this.domBindings,n=e.getComputedStyle(t.body),r=parseInt(n.lineHeight,10),s=1.2*parseInt(n.fontSize,10);this.browserLineHeight=r||s}initOverlays(){const e=[this.wot,this.facadeGetter,this.wtSettings,this.domBindings];this.topOverlay=new c.TopOverlay(...e),this.bottomOverlay=new c.BottomOverlay(...e),this.inlineStartOverlay=new c.InlineStartOverlay(...e),this.topInlineStartCornerOverlay=new c.TopInlineStartCornerOverlay(...e,this.topOverlay,this.inlineStartOverlay),this.bottomInlineStartCornerOverlay=new c.BottomInlineStartCornerOverlay(...e,this.bottomOverlay,this.inlineStartOverlay),g(m,this,[this.topOverlay,this.bottomOverlay,this.inlineStartOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay])}beforeDraw(){g(E,this,p(m,this).reduce((e,t)=>t.hasRenderingStateChanged()||e,!1)),p(m,this).forEach(e=>e.updateStateOfRendering("before"))}afterDraw(){this.syncScrollWithMaster(),p(m,this).forEach(e=>{const t=e.hasRenderingStateChanged();e.updateStateOfRendering("after"),t&&!e.needFullRender&&e.reset()})}refreshAll(){this.wot.drawn&&(this.wtTable.holder.parentNode?(this.wot.draw(!0),this.verticalScrolling&&this.inlineStartOverlay.onScroll(),this.horizontalScrolling&&this.topOverlay.onScroll(),this.verticalScrolling=!1,this.horizontalScrolling=!1):this.destroy())}registerListeners(){const{rootDocument:e,rootWindow:t}=this.domBindings,{mainTableScrollableElement:n}=this.topOverlay,{mainTableScrollableElement:r}=this.inlineStartOverlay;this.eventManager.addEventListener(e.documentElement,"keydown",e=>this.onKeyDown(e)),this.eventManager.addEventListener(e.documentElement,"keyup",()=>this.onKeyUp()),this.eventManager.addEventListener(e,"visibilitychange",()=>this.onKeyUp()),this.eventManager.addEventListener(n,"scroll",e=>this.onTableScroll(e),{passive:!0}),n!==r&&this.eventManager.addEventListener(r,"scroll",e=>this.onTableScroll(e),{passive:!0});const s=t.devicePixelRatio&&t.devicePixelRatio>1,i=this.scrollableElement===t,a=this.wtSettings.getSetting("preventWheel"),l={passive:i};(a||s||!(0,h.isChrome)())&&this.eventManager.addEventListener(this.wtTable.wtRootElement,"wheel",e=>this.onCloneWheel(e,a),l);let u;[this.topOverlay,this.bottomOverlay,this.inlineStartOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay].forEach(e=>{this.eventManager.addEventListener(e.clone.wtTable.holder,"wheel",e=>this.onCloneWheel(e,a),l)}),this.eventManager.addEventListener(t,"resize",()=>{(0,o.requestAnimationFrame)(()=>{clearTimeout(u),this.wtSettings.getSetting("onWindowResize"),u=setTimeout(()=>{g(w,this,0)},200)})}),i||this.resizeObserver.observe(this.wtTable.wtRootElement.parentElement)}onTableScroll(e){const t=this.domBindings.rootWindow,n=this.inlineStartOverlay.mainTableScrollableElement,r=this.topOverlay.mainTableScrollableElement,s=e.target;this.keyPressed&&(r!==t&&s!==t&&!e.target.contains(r)||n!==t&&s!==t&&!e.target.contains(n))||this.syncScrollPositions(e)}onCloneWheel(e,t){if(e.ctrlKey)return;const{rootWindow:n}=this.domBindings,r=this.inlineStartOverlay.mainTableScrollableElement,s=this.topOverlay.mainTableScrollableElement,i=e.target,o=s!==n&&i!==n&&!i.contains(s),a=r!==n&&i!==n&&!i.contains(r);if(this.keyPressed&&(o||a)||this.scrollableElement===n)return;const l=this.translateMouseWheelToScroll(e);(t||this.scrollableElement!==n&&l)&&e.preventDefault()}onKeyDown(e){this.keyPressed=(0,l.isKey)(e.keyCode,"ARROW_UP|ARROW_RIGHT|ARROW_DOWN|ARROW_LEFT")}onKeyUp(){this.keyPressed=!1}translateMouseWheelToScroll(e){let t=isNaN(e.deltaY)?-1*e.wheelDeltaY:e.deltaY,n=isNaN(e.deltaX)?-1*e.wheelDeltaX:e.deltaX;1===e.deltaMode&&(n+=n*this.browserLineHeight,t+=t*this.browserLineHeight);const r=this.scrollVertically(t),s=this.scrollHorizontally(n);return r||s}scrollVertically(e){const t=this.scrollableElement.scrollTop;return this.scrollableElement.scrollTop+=e,t!==this.scrollableElement.scrollTop}scrollHorizontally(e){const t=this.scrollableElement.scrollLeft;return this.scrollableElement.scrollLeft+=e,t!==this.scrollableElement.scrollLeft}syncScrollPositions(){if(this.destroyed)return;const e=this.topOverlay.clone.wtTable.holder,t=this.inlineStartOverlay.clone.wtTable.holder;let n=this.scrollableElement.scrollLeft,r=this.scrollableElement.scrollTop;if(this.wot.wtViewport.isHorizontallyScrollableByWindow()&&(n=this.scrollableElement.scrollX),this.wot.wtViewport.isVerticallyScrollableByWindow()&&(r=this.scrollableElement.scrollY),this.horizontalScrolling=this.lastScrollX!==n,this.verticalScrolling=this.lastScrollY!==r,this.lastScrollX=n,this.lastScrollY=r,this.horizontalScrolling){e.scrollLeft=n;const t=this.bottomOverlay.needFullRender?this.bottomOverlay.clone.wtTable.holder:null;t&&(t.scrollLeft=n)}this.verticalScrolling&&(t.scrollTop=r),this.refreshAll()}syncScrollWithMaster(){if(!p(E,this))return;const e=this.topOverlay.mainTableScrollableElement,{scrollLeft:t,scrollTop:n}=e;this.topOverlay.needFullRender&&(this.topOverlay.clone.wtTable.holder.scrollLeft=t),this.bottomOverlay.needFullRender&&(this.bottomOverlay.clone.wtTable.holder.scrollLeft=t),this.inlineStartOverlay.needFullRender&&(this.inlineStartOverlay.clone.wtTable.holder.scrollTop=n),g(E,this,!1)}updateMainScrollableElements(){this.eventManager.clearEvents(!0),this.inlineStartOverlay.updateMainScrollableElement(),this.topOverlay.updateMainScrollableElement(),this.bottomOverlay.needFullRender&&this.bottomOverlay.updateMainScrollableElement();const{wtTable:e}=this,{rootWindow:t}=this.domBindings;"hidden"===t.getComputedStyle(e.wtRootElement.parentNode).getPropertyValue("overflow")?this.scrollableElement=e.holder:this.scrollableElement=(0,i.getScrollableElement)(e.TABLE),this.registerListeners()}destroy(){this.resizeObserver.disconnect(),this.eventManager.destroy(),this.topOverlay.destroy(),this.bottomOverlay.clone&&this.bottomOverlay.destroy(),this.inlineStartOverlay.destroy(),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.destroy(),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.destroy(),this.destroyed=!0}refresh(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateLastSpreaderSize()&&this.adjustElementsSize(),this.bottomOverlay.clone&&this.bottomOverlay.refresh(e),this.inlineStartOverlay.refresh(e),this.topOverlay.refresh(e),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.refresh(e),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.refresh(e)}updateLastSpreaderSize(){const e=this.wtTable.spreader,t=e.clientWidth,n=e.clientHeight,r=t!==this.spreaderLastSize.width||n!==this.spreaderLastSize.height;return r&&(this.spreaderLastSize.width=t,this.spreaderLastSize.height=n),r}adjustElementsSize(){const{wtViewport:e}=this.wot,{wtTable:t}=this,{rootWindow:n}=this.domBindings,r=this.scrollableElement===n,s=this.wtSettings.getSetting("totalColumns"),i=this.wtSettings.getSetting("totalRows"),o=e.getRowHeaderWidth(),a=e.getColumnHeaderHeight(),l=this.wtSettings.getSetting("externalRowCalculator")?0:1,h=a+this.topOverlay.sumCellSizes(0,i)+l,u=o+this.inlineStartOverlay.sumCellSizes(0,s),c=t.hider.style,d=(()=>!r&&this.scrollableElement.scrollTop>Math.max(0,h-t.holder.clientHeight))()?1:0,g=(()=>!r&&this.scrollableElement.scrollLeft>Math.max(0,u-t.holder.clientWidth))()?1:0;c.width=`${u+g}px`,c.height=`${h+d}px`,this.topOverlay.adjustElementsSize(),this.inlineStartOverlay.adjustElementsSize(),this.bottomOverlay.adjustElementsSize()}expandHiderVerticallyBy(e){const{wtTable:t}=this;t.hider.style.height=`${parseInt(t.hider.style.height,10)+e}px`}expandHiderHorizontallyBy(e){const{wtTable:t}=this;t.hider.style.width=`${parseInt(t.hider.style.width,10)+e}px`}applyToDOM(){this.wtTable.isVisible()&&(this.topOverlay.applyToDOM(),this.bottomOverlay.clone&&this.bottomOverlay.applyToDOM(),this.inlineStartOverlay.applyToDOM())}getParentOverlay(e){if(!e)return null;const t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay];let n=null;return(0,a.arrayEach)(t,t=>{t&&t.clone&&t.clone.wtTable.TABLE.contains(e)&&(n=t.clone)}),n}syncOverlayTableClassNames(){const e=this.wtTable.TABLE,t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay];(0,a.arrayEach)(t,t=>{t&&(t.clone.wtTable.TABLE.className=e.className)})}}},33477:(e,t,n)=>{"use strict";var r=n(94988),s=n(87681),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},33895:(e,t,n)=>{"use strict";var r=n(16539);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},34039:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(81115));t.RenderedAllColumnsCalculationType=class{constructor(){(0,s.default)(this,"count",0),(0,s.default)(this,"startColumn",0),(0,s.default)(this,"endColumn",0),(0,s.default)(this,"startPosition",0),(0,s.default)(this,"isVisibleInTrimmingContainer",!0)}initialize(e){let{totalColumns:t}=e;this.count=t,this.endColumn=this.count-1}process(){}finalize(){}}},34067:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(54342),s=n(89090);t.default=()=>({_automaticallyAssignedMetaProps:void 0,activeHeaderClassName:"ht__active_highlight",allowEmpty:!0,allowHtml:!1,allowInsertColumn:!0,allowInsertRow:!0,allowInvalid:!0,allowRemoveColumn:!0,allowRemoveRow:!0,ariaTags:!0,autoColumnSize:void 0,autoRowSize:void 0,autoWrapCol:!1,autoWrapRow:!1,bindRowsWithHeaders:void 0,cell:[],cells:void 0,checkedTemplate:void 0,className:void 0,colHeaders:null,collapsibleColumns:void 0,columnHeaderHeight:void 0,columns:void 0,columnSorting:void 0,columnSummary:void 0,colWidths:void 0,commentedCellClassName:"htCommentCell",comments:!1,contextMenu:void 0,copyable:!0,copyPaste:!0,correctFormat:!1,currentColClassName:void 0,currentHeaderClassName:"ht__highlight",currentRowClassName:void 0,customBorders:!1,data:void 0,dataDotNotation:!0,dataSchema:void 0,dateFormat:"DD/MM/YYYY",timeFormat:"h:mm:ss a",datePickerConfig:void 0,defaultDate:void 0,disableVisualSelection:!1,dialog:!1,dragToScroll:!0,dropdownMenu:void 0,editor:void 0,emptyDataState:!1,enterBeginsEditing:!0,enterMoves:{col:0,row:1},fillHandle:{autoInsertRow:!1},filter:!0,filteringCaseSensitive:!1,filters:void 0,fixedColumnsLeft:0,fixedColumnsStart:0,fixedRowsBottom:0,fixedRowsTop:0,formulas:void 0,fragmentSelection:!1,headerClassName:void 0,height:void 0,hiddenColumns:void 0,hiddenRows:void 0,initialState:void 0,invalidCellClassName:"htInvalid",imeFastEdit:!1,isEmptyCol(e){let t,n,s;for(t=0,n=this.countRows();t<n;t++)if(s=this.getDataAtCell(t,e),!1===(0,r.isEmpty)(s))return!1;return!0},isEmptyRow(e){let t,n,i,o;for(t=0,n=this.countCols();t<n;t++)if(i=this.getDataAtCell(e,t),!1===(0,r.isEmpty)(i))return"object"==typeof i&&(o=this.getCellMeta(e,t),(0,s.isObjectEqual)(this.getSchema()[o.prop],i));return!0},label:void 0,language:"en-US",layoutDirection:"inherit",licenseKey:void 0,locale:"en-US",loading:!1,manualColumnFreeze:void 0,manualColumnMove:void 0,manualColumnResize:void 0,manualRowMove:void 0,manualRowResize:void 0,maxCols:1/0,maxRows:1/0,mergeCells:!1,minCols:0,minRowHeights:void 0,minRows:0,minSpareCols:0,minSpareRows:0,multiColumnSorting:void 0,navigableHeaders:!1,tabNavigation:!0,nestedHeaders:void 0,nestedRows:void 0,noWordWrapClassName:"htNoWrap",numericFormat:void 0,observeDOMVisibility:!0,outsideClickDeselects:!0,pagination:void 0,persistentState:void 0,placeholder:void 0,placeholderCellClassName:"htPlaceholder",preventOverflow:!1,preventWheel:!1,readOnly:!1,readOnlyCellClassName:"htDimmed",renderAllRows:!1,renderAllColumns:!1,renderer:void 0,rowHeaders:void 0,rowHeaderWidth:void 0,rowHeights:void 0,search:!1,selectionMode:"multiple",selectOptions:void 0,skipColumnOnPaste:!1,skipRowOnPaste:!1,sortByRelevance:!0,source:void 0,startCols:5,startRows:5,stretchH:"none",strict:void 0,tableClassName:void 0,textEllipsis:!1,themeName:void 0,tabMoves:{row:0,col:1},title:void 0,trimDropdown:!0,trimRows:void 0,trimWhitespace:!0,type:"text",uncheckedTemplate:void 0,undo:!0,validator:void 0,valueGetter:void 0,valueSetter:void 0,viewportColumnRenderingOffset:"auto",viewportRowRenderingOffset:"auto",viewportColumnRenderingThreshold:0,viewportRowRenderingThreshold:0,visibleRows:10,width:void 0,wordWrap:!0})},34105:(e,t,n)=>{"use strict";n(22588),t.__esModule=!0,n(81396),n(88633),n(14618);var r=n(14298),s=n(38942),i=n(14089),o=n(16656);function a(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 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="ht-empty-data-state",d=`<div data-ref="emptyDataStateElement" class="${c} handsontable">\n <div class="${c}__content-wrapper">\n <div data-ref="emptyDataStateInner" class="${c}__content-wrapper-inner"></div>\n </div>\n</div>`;var g=new WeakMap,p=new WeakMap,f=new WeakMap,m=new WeakMap;t.EmptyDataStateUI=class{constructor(e){let{rootElement:t,rootDocument:n}=e;a(this,g,void 0),a(this,p,void 0),a(this,f,void 0),a(this,m,void 0),h(g,this,t),h(p,this,n),this.install()}install(){var e;if(null!==(e=l(f,this))&&void 0!==e&&e.emptyDataStateElement)return;const t=r.html`${d}`;h(f,this,t.refs);const{emptyDataStateInner:n,emptyDataStateElement:o}=l(f,this);(0,s.setAttribute)(n,[(0,i.A11Y_TABINDEX)(-1)]),(0,s.setAttribute)(o,[(0,i.A11Y_TABINDEX)(-1)]),l(g,this).after(t.fragment)}getElement(){var e;return null===(e=l(f,this))||void 0===e?void 0:e.emptyDataStateElement}getFocusableElements(){const{emptyDataStateButtons:e,emptyDataStateInner:t}=l(f,this),n=Array.from(null==e?void 0:e.children);return 0===n.length?[t]:n}show(){var e;null!==(e=l(f,this))&&void 0!==e&&e.emptyDataStateElement&&(l(f,this).emptyDataStateElement.style.display="block")}hide(){var e,t;null!==(e=l(f,this))&&void 0!==e&&e.emptyDataStateElement&&(null===(t=l(m,this))||void 0===t||t.remove(),h(m,this,null),l(f,this).emptyDataStateElement.style.display="none")}updateContent(e){var t;const{emptyDataStateInner:n}=l(f,this);let s="";s="string"==typeof e?{title:e}:{title:null==e?void 0:e.title,description:null==e?void 0:e.description,buttons:null==e?void 0:e.buttons};const i=r.html`${(e=>{let{title:t,description:n,buttons:r}=e;return`\n <div class="${c}__content">\n ${t?`<h2 class="${c}__title">${(0,o.stripTags)(t)}</h2>`:""}\n ${n?`<p class="${c}__description">${(0,o.stripTags)(n)}</p>`:""}\n </div>\n <div\n data-ref="emptyDataStateButtons"\n class="${c}__buttons${(null==r?void 0:r.length)>0?` ${c}__buttons--has-buttons`:""}"\n >${(null==r?void 0:r.length)>0?r.map(e=>`<button class="ht-button ht-button--${e.type}">${(0,o.stripTags)(e.text)}</button>`).join(""):""}</div>`})(s)}`;h(f,this,{...l(f,this),...i.refs}),n.innerHTML="",n.appendChild(i.fragment),(null===(t=s.buttons)||void 0===t?void 0:t.length)>0&&Array.from(l(f,this).emptyDataStateButtons.children).forEach((e,t)=>{e.addEventListener("click",s.buttons[t].callback)})}updateClassNames(e){const{emptyDataStateElement:t}=l(f,this);e.countRenderableColumns()>0&&e.getColumnHeadersCount()>0?(0,s.addClass)(t,`${c}--disable-top-border`):(0,s.removeClass)(t,`${c}--disable-top-border`),e.countRenderableRows()>0&&e.getRowHeadersCount()>0?(0,s.addClass)(t,`${c}--disable-inline-border`):(0,s.removeClass)(t,`${c}--disable-inline-border`),e.hasHorizontalScroll()&&!e.isHorizontallyScrollableByWindow()?(0,s.addClass)(t,`${c}--disable-bottom-border`):(0,s.removeClass)(t,`${c}--disable-bottom-border`)}updateSize(e){const{emptyDataStateElement:t}=l(f,this),n=e.hasHorizontalScroll()?(0,s.getScrollbarWidth)(e.hot.rootDocument):0,r=e.countRenderableRows(),i=e.countRenderableColumns(),o=e.getColumnHeadersCount();var a;(t.style.top=i>0?`${e.getColumnHeaderHeight()}px`:"0px",t.style.insetInlineStart=r>0?`${e.getRowHeaderWidth()}px`:"0px",0===r)?(l(m,this)||(h(m,this,l(p,this).createElement("div")),l(m,this).classList.add(`${c}-placeholder`),e._wt.wtTable.holder.appendChild(l(m,this))),l(m,this).style.width="100%",l(m,this).style.height="150px"):(null===(a=l(m,this))||void 0===a||a.remove(),h(m,this,null));let u=e.getWorkspaceWidth(),d=e.getTableHeight();e.isHorizontallyScrollableByWindow()?i>0?u=e.getTotalTableWidth():r>0&&(u=e.getViewportWidth()):r>0?u=e.getViewportWidth():e.getTableWidth()-e.getRowHeaderWidth()<e.getViewportWidth()&&i>0&&(u=e.getTableWidth()),e.isVerticallyScrollableByWindow()||e.hasVerticalScroll()?d=i>0?e.hot.getTableHeight()-e.getColumnHeaderHeight():e.hot.getTableHeight():o>0&&i>0?d=e.getViewportHeight()-n:o>0&&0===i&&(d=e.getWorkspaceHeight()-n),t.style.width=`${u}px`,t.style.height=`${d}px`}destroy(){var e,t;null===(e=l(f,this))||void 0===e||null===(e=e.emptyDataStateElement)||void 0===e||e.remove(),null===(t=l(m,this))||void 0===t||t.remove(),h(m,this,null),h(f,this,null)}}},34160:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182);var s=r(n(81115)),i=n(46971),o=n(6446),a=n(96324),l=n(89386),h=n(77002),u=r(n(90308)),c=n(30152),d=n(58617),g=n(38942),p=n(68834),f=n(37849),m=n(54342),E=n(89090),w=r(n(24285)),y=n(77712),C=n(14089);function v(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 S(e,t,n){return e.set(T(e,t),n),n}function R(e,t){return e.get(T(e,t))}function T(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 _=new WeakMap,N=new WeakMap,A=new WeakMap;class b{get tableBorderWidth(){return void 0===R(A,this)&&this.hotMenu&&S(A,this,parseInt(this.hotMenu.rootWindow.getComputedStyle(this.hotMenu.view._wt.wtTable.TABLE).borderWidth,10)),R(A,this)}constructor(e,t){var n=this;(0,s.default)(this,"hot",void 0),(0,s.default)(this,"options",void 0),(0,s.default)(this,"eventManager",new u.default(this)),(0,s.default)(this,"container",void 0),(0,s.default)(this,"positioner",void 0),(0,s.default)(this,"hotMenu",null),(0,s.default)(this,"hotSubMenus",{}),(0,s.default)(this,"parentMenu",void 0),(0,s.default)(this,"menuItems",null),(0,s.default)(this,"origOutsideClickDeselects",null),v(this,_,void 0),v(this,N,void 0),v(this,A,void 0),this.hot=e,this.options=t||{parent:null,name:null,className:"",keepInViewport:!0,standalone:!1,minWidth:215,container:this.hot.rootPortalElement},this.container=this.createContainer(this.options.name),this.positioner=new i.Positioner(this.options.keepInViewport),this.parentMenu=this.options.parent||null,this.registerEvents(),this.isSubMenu()&&this.addLocalHook("afterSelectionChange",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.parentMenu.runLocalHooks("afterSelectionChange",...t)}),this.hot.addHook("afterSetTheme",(e,t)=>{this.options.container!==this.hot.rootPortalElement&&((0,g.removeClass)(this.options.container,/ht-theme-.*/g),(0,g.addClass)(this.options.container,e)),t||this.close()})}registerEvents(){let e=this.hot.rootWindow;for(;e;)this.eventManager.addEventListener(e.document,"mousedown",e=>this.onDocumentMouseDown(e)),this.eventManager.addEventListener(e.document,"touchstart",e=>this.onDocumentMouseDown(e)),this.eventManager.addEventListener(e.document,"contextmenu",e=>this.onDocumentContextMenu(e)),e=(0,g.getParentWindow)(e)}setMenuItems(e){this.menuItems=e}getNavigator(){return R(_,this)}getKeyboardShortcutsCtrl(){return R(N,this)}getSelectedItem(){return this.hasSelectedItem()?this.hotMenu.getSourceDataAtRow(this.hotMenu.getSelectedActive()[0]):null}hasSelectedItem(){return Array.isArray(this.hotMenu.getSelectedActive())}isSubMenu(){return null!==this.parentMenu}open(){this.runLocalHooks("beforeOpen"),this.container.removeAttribute("style"),this.container.style.display="block";const e=(0,f.debounce)(e=>this.openSubMenu(e),300),t=this.options.minWidth||215;let n=!1,r=(0,c.arrayFilter)(this.menuItems,e=>(e.key===l.NO_ITEMS&&(n=!0),(0,h.isItemHidden)(e,this.hot)));if(r.length<1&&!n)r.push((0,l.predefinedItems)()[l.NO_ITEMS]);else if(0===r.length)return;r=(0,h.filterSeparators)(r,l.SEPARATOR);let s=!1;const i={data:r,colHeaders:!1,autoColumnSize:!0,autoWrapRow:!1,modifyColWidth:e=>(0,m.isDefined)(e)&&e<t?t:e,autoRowSize:!1,readOnly:!0,editor:!1,copyPaste:!1,hiddenRows:!0,maxCols:1,columns:[{data:"name",renderer:(0,y.createMenuItemRenderer)(this.hot)}],renderAllRows:!0,fragmentSelection:!1,outsideClickDeselects:!1,disableVisualSelection:"area",layoutDirection:this.hot.isRtl()?"rtl":"ltr",ariaTags:!1,themeName:this.hot.getCurrentThemeName(),beforeRefreshDimensions:()=>!1,beforeOnCellMouseOver:(e,t)=>{this.hotMenu.stylesHandler.isClassicTheme()?R(_,this).setCurrentPage(t.row):R(_,this).setPageCursorAt(t.row)},afterOnCellMouseOver:(t,n)=>{this.isAllSubMenusClosed()?e(n.row):this.openSubMenu(n.row)},afterOnCellContextMenu:e=>{e.preventDefault(),(0,d.isWindowsOS)()&&s&&this.hasSelectedItem()&&this.close(!0)},afterSelection:(e,t,n,r,s)=>{this.hotMenu.view.isMouseDown()&&(s.value=!0),this.runLocalHooks("afterSelectionChange",this.getSelectedItem())},beforeOnCellMouseUp:e=>{this.hasSelectedItem()&&(s=!this.isCommandPassive(this.getSelectedItem()),this.executeCommand(e))},afterOnCellMouseUp:e=>{(0,d.isWindowsOS)()&&(0,p.isRightClick)(e)||!s||!this.hasSelectedItem()||((0,d.isMobileBrowser)()||(0,d.isIpadOS)()?this.hot._registerTimeout(()=>this.close(!0),325):this.close(!0))},afterUnlisten:()=>{!this.hasSelectedItem()&&this.isOpened()&&this.hotMenu.listen()}};this.origOutsideClickDeselects=this.hot.getSettings().outsideClickDeselects,this.hot.getSettings().outsideClickDeselects=!1,this.hotMenu=new this.hot.constructor(this.container,i),this.hotMenu.addHook("afterInit",()=>this.onAfterInit()),this.hotMenu.init(),S(_,this,(0,o.createMenuNavigator)(this.hotMenu)),S(N,this,(0,a.createKeyboardShortcutsCtrl)(this)),R(N,this).listen(),this.focus(),this.isSubMenu()&&this.addLocalHook("afterOpen",()=>this.parentMenu.runLocalHooks("afterSubmenuOpen",this)),this.runLocalHooks("afterOpen",this)}close(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isOpened())if(e&&this.isSubMenu())this.parentMenu.close();else if(R(_,this).clear(),this.closeAllSubMenus(),this.container.style.display="none",this.hotMenu.destroy(),this.hotMenu=null,this.hot.getSettings().outsideClickDeselects=this.origOutsideClickDeselects,this.runLocalHooks("afterClose"),this.isSubMenu()){if(this.hot.getSettings().ariaTags){const e=this.parentMenu.hotMenu.getSelectedActive();if(e){const t=this.parentMenu.hotMenu.getCell(e[0],0);(0,g.setAttribute)(t,[(0,C.A11Y_EXPANDED)(!1)])}}this.parentMenu.hotMenu.listen()}}openSubMenu(e){if(!this.hotMenu)return!1;const t=this.hotMenu.getCell(e,0);if(this.closeAllSubMenus(),!t||!(0,h.hasSubMenu)(t))return!1;const n=this.hotMenu.getSourceDataAtRow(e),r=new b(this.hot,{parent:this,name:n.name,className:this.options.className,keepInViewport:!0,container:this.options.container});return r.setMenuItems(n.submenu.items),r.open(),r.setPosition(t.getBoundingClientRect()),this.hotSubMenus[n.key]=r,this.hot.getSettings().ariaTags&&(0,g.setAttribute)(t,[(0,C.A11Y_EXPANDED)(!0)]),r}closeSubMenu(e){const t=this.hotMenu.getSourceDataAtRow(e),n=this.hotSubMenus[t.key];if(n){n.destroy(),delete this.hotSubMenus[t.key];const r=this.hotMenu.getCell(e,0);this.hot.getSettings().ariaTags&&(0,g.setAttribute)(r,[(0,C.A11Y_EXPANDED)(!1)])}}closeAllSubMenus(){(0,c.arrayEach)(this.hotMenu.getData(),(e,t)=>this.closeSubMenu(t))}isAllSubMenusClosed(){return 0===Object.keys(this.hotSubMenus).length}focus(){this.isOpened()&&(this.hotMenu.rootElement.focus({preventScroll:!0}),this.getKeyboardShortcutsCtrl().listen(),this.hotMenu.listen())}destroy(){const e=this.container.parentNode;this.clearLocalHooks(),this.close(),this.parentMenu=null,this.eventManager.destroy(),e&&e.removeChild(this.container)}isOpened(){return null!==this.hotMenu}executeCommand(e){if(!this.isOpened()||!this.hasSelectedItem())return;const t=this.getSelectedItem();if(this.runLocalHooks("select",t,e),this.isCommandPassive(t))return;const n=this.hot.getSelectedRange(),r=n?(0,h.normalizeSelection)(n):[];this.runLocalHooks("executeCommand",t.key,r,e),this.isSubMenu()&&this.parentMenu.runLocalHooks("executeCommand",t.key,r,e)}isCommandPassive(e){return!1===e.isCommand||(0,h.isItemSeparator)(e)||(0,h.isItemDisabled)(e,this.hot)||(0,h.isItemSubMenu)(e)}setOffset(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.positioner.setOffset(e,t)}setPosition(e){this.isSubMenu()&&this.positioner.setParentElement(this.parentMenu.container),this.positioner.setElement(this.container).updatePosition(e)}updateMenuDimensions(){const{wtTable:e}=this.hotMenu.view._wt,t=this.hotMenu.getSettings().data,n=e.hider.style,r=e.holder.style,s=parseInt(n.width,10),i=(0,c.arrayReduce)(t,(e,t,n)=>{const r=this.hotMenu.getCell(n,0)?(0,g.outerHeight)(this.hotMenu.getCell(n,0)):0;return e+(t.name===l.SEPARATOR?1:r)},0);this.hotMenu.stylesHandler.isClassicTheme()?(r.width=`${s+3}px`,r.height=`${i+3}px`):(r.width=`${s}px`,r.height=`${i}px`),n.height=r.height}createContainer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=this.options.container.ownerDocument;let n,r=e;return r&&((0,f.isFunction)(r)&&(r=r.call(this.hot),r=null===r||(0,m.isUndefined)(r)?"":r.toString()),r=r.replace(/[^A-Za-z0-9]/g,"_"),r=`${this.options.className}Sub_${r}`,n=t.querySelector(`.${this.options.className}.${r}`)),n||(n=t.createElement("div"),(0,g.addClass)(n,`htMenu handsontable ${this.options.className}`),r&&(0,g.addClass)(n,r),this.options.container.appendChild(n)),n}onAfterInit(){this.updateMenuDimensions(),this.hot.getSettings().ariaTags&&(0,g.setAttribute)(this.hotMenu.rootElement,[(0,C.A11Y_MENU)(),(0,C.A11Y_TABINDEX)(-1)])}onDocumentMouseDown(e){this.isOpened()&&(this.options.standalone&&this.hotMenu&&!(0,g.isChildOf)(e.target,this.hotMenu.rootElement)?this.close(!0):!this.isAllSubMenusClosed()&&!this.isSubMenu()||(0,g.isChildOf)(e.target,".htMenu")||this.close(!0))}onDocumentContextMenu(e){this.isOpened()&&(0,g.hasClass)(e.target,"htCore")&&(0,g.isChildOf)(e.target,this.hotMenu.rootElement)&&e.preventDefault()}}t.Menu=b,(0,E.mixin)(b,w.default)},34203:()=>{},34280:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(1999);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.NestedHeaders=r.NestedHeaders},34341:(e,t,n)=>{"use strict";var r=n(56769),s=n(64854),i=n(69946),o=function(e){return function(t,n,o){var a=r(t),l=i(a);if(0===l)return!e&&-1;var h,u=s(o,l);if(e&&n!=n){for(;l>u;)if((h=a[u++])!=h)return!0}else for(;l>u;u++)if((e||u in a)&&a[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},34899:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,t.createHighlight=function(e){let{cellCornerVisible:t,...n}=e;return new i.default({className:"current",headerAttributes:[(0,o.A11Y_SELECTED)()],border:{width:2,color:"#4b89ff",cornerVisible:t},...n,selectionType:s.HIGHLIGHT_FOCUS_TYPE})};var s=n(51191),i=r(n(5103)),o=n(14089)},34933:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(98190);t.CELL_TYPE=r.CELL_TYPE,t.TextCellType=r.TextCellType},35030:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(62243);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.Formulas=r.Formulas},35097:e=>{"use strict";e.exports={}},35514:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(63879);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ManualColumnFreeze=r.ManualColumnFreeze},35617:(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--guideline")}}t.default=o},35749:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(89090);const s={getFirstRenderedRow(){const e=this.getRenderedRowsCount();return 0===e?-1:this.wtSettings.getSetting("totalRows")-e},getFirstVisibleRow(){return this.getFirstRenderedRow()},getFirstPartiallyVisibleRow(){return this.getFirstRenderedRow()},getLastRenderedRow(){return 0===this.getRenderedRowsCount()?-1:this.wtSettings.getSetting("totalRows")-1},getLastVisibleRow(){return this.getLastRenderedRow()},getLastPartiallyVisibleRow(){return this.getLastRenderedRow()},getRenderedRowsCount(){return Math.min(this.wtSettings.getSetting("totalRows"),this.wtSettings.getSetting("fixedRowsBottom"))},getVisibleRowsCount(){return this.getRenderedRowsCount()},getColumnHeadersCount:()=>0};(0,r.defineGetter)(s,"MIXIN_NAME","stickyRowsBottom",{writable:!1,enumerable:!1});t.default=s},35845:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182);var s=r(n(81115)),i=r(n(82860));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(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;class u{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];var i,a,u;(0,s.default)(this,"highlight",null),(0,s.default)(this,"from",null),(0,s.default)(this,"to",null),o(this,h,!1),this.highlight=e.clone(),this.from=t.clone(),this.to=n.clone(),a=this,u=r,(i=h).set(l(i,a),u)}setHighlight(e){return this.highlight=e.clone(),this}setFrom(e){return this.from=e.clone(),this}setTo(e){return this.to=e.clone(),this}normalize(){return this.highlight.normalize(),this.from.normalize(),this.to.normalize(),this}isValid(e){return this.from.isValid(e)&&this.to.isValid(e)}isSingle(){return this.isSingleCell()||this.isSingleHeader()}isSingleCell(){return this.from.row>=0&&this.from.row===this.to.row&&this.from.col>=0&&this.from.col===this.to.col}isSingleHeader(){return(this.from.row<0||this.from.col<0)&&this.from.row===this.to.row&&this.from.col===this.to.col}isHeader(){return!(!this.from.isHeader()||!this.to.isHeader())||(this.from.col<0&&this.to.col<0||this.from.row<0&&this.to.row<0)}containsHeaders(){return this.from.isHeader()||this.to.isHeader()}getOuterHeight(){return Math.max(this.from.row,this.to.row)-Math.min(this.from.row,this.to.row)+1}getOuterWidth(){return Math.max(this.from.col,this.to.col)-Math.min(this.from.col,this.to.col)+1}getHeight(){if(this.from.row<0&&this.to.row<0)return 0;const e=Math.max(this.from.row,0),t=Math.max(this.to.row,0);return Math.max(e,t)-Math.min(e,t)+1}getWidth(){if(this.from.col<0&&this.to.col<0)return 0;const e=Math.max(this.from.col,0),t=Math.max(this.to.col,0);return Math.max(e,t)-Math.min(e,t)+1}getCellsCount(){return this.getWidth()*this.getHeight()}includes(e){const{row:t,col:n}=e,r=this.getOuterTopStartCorner(),s=this.getOuterBottomEndCorner();return r.row<=t&&s.row>=t&&r.col<=n&&s.col>=n}includesRange(e){return this.includes(e.getOuterTopStartCorner())&&this.includes(e.getOuterBottomEndCorner())}isEqual(e){return Math.min(this.from.row,this.to.row)===Math.min(e.from.row,e.to.row)&&Math.max(this.from.row,this.to.row)===Math.max(e.from.row,e.to.row)&&Math.min(this.from.col,this.to.col)===Math.min(e.from.col,e.to.col)&&Math.max(this.from.col,this.to.col)===Math.max(e.from.col,e.to.col)}overlaps(e){return e.isSouthEastOf(this.getOuterTopLeftCorner())&&e.isNorthWestOf(this.getOuterBottomRightCorner())}isSouthEastOf(e){return this.getOuterTopLeftCorner().isSouthEastOf(e)||this.getOuterBottomRightCorner().isSouthEastOf(e)}isNorthWestOf(e){return this.getOuterTopLeftCorner().isNorthWestOf(e)||this.getOuterBottomRightCorner().isNorthWestOf(e)}isOverlappingHorizontally(e){return this.getOuterTopEndCorner().col>=e.getOuterTopStartCorner().col&&this.getOuterTopEndCorner().col<=e.getOuterTopEndCorner().col||this.getOuterTopStartCorner().col<=e.getOuterTopEndCorner().col&&this.getOuterTopStartCorner().col>=e.getOuterTopStartCorner().col}isOverlappingVertically(e){return this.getOuterBottomStartCorner().row>=e.getOuterTopRightCorner().row&&this.getOuterBottomStartCorner().row<=e.getOuterBottomStartCorner().row||this.getOuterTopEndCorner().row<=e.getOuterBottomStartCorner().row&&this.getOuterTopEndCorner().row>=e.getOuterTopRightCorner().row}expand(e){const t=this.getOuterTopStartCorner(),n=this.getOuterBottomEndCorner();return(e.row<t.row||e.col<t.col||e.row>n.row||e.col>n.col)&&(this.from=this._createCellCoords(Math.min(t.row,e.row),Math.min(t.col,e.col)),this.to=this._createCellCoords(Math.max(n.row,e.row),Math.max(n.col,e.col)),!0)}expandByRange(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.includesRange(e)||!this.overlaps(e))return!1;const n=this.getOuterTopStartCorner(),r=this.getOuterBottomEndCorner(),s=this.getDirection(),i=e.getOuterTopStartCorner(),o=e.getOuterBottomEndCorner(),a=Math.min(n.row,i.row),l=Math.min(n.col,i.col),h=Math.max(r.row,o.row),u=Math.max(r.col,o.col),c=this._createCellCoords(a,l),d=this._createCellCoords(h,u);return this.from=c,this.to=d,this.setDirection(s),t&&(this.highlight.row===this.getOuterBottomRightCorner().row&&"N-S"===this.getVerticalDirection()&&this.flipDirectionVertically(),this.highlight.col===this.getOuterTopRightCorner().col&&"W-E"===this.getHorizontalDirection()&&this.flipDirectionHorizontally()),!0}getDirection(){return this.from.isNorthWestOf(this.to)?"NW-SE":this.from.isNorthEastOf(this.to)?"NE-SW":this.from.isSouthEastOf(this.to)?"SE-NW":this.from.isSouthWestOf(this.to)?"SW-NE":void 0}setDirection(e){switch(e){case"NW-SE":[this.from,this.to]=[this.getOuterTopLeftCorner(),this.getOuterBottomRightCorner()];break;case"NE-SW":[this.from,this.to]=[this.getOuterTopRightCorner(),this.getOuterBottomLeftCorner()];break;case"SE-NW":[this.from,this.to]=[this.getOuterBottomRightCorner(),this.getOuterTopLeftCorner()];break;case"SW-NE":[this.from,this.to]=[this.getOuterBottomLeftCorner(),this.getOuterTopRightCorner()]}}getVerticalDirection(){return["NE-SW","NW-SE"].indexOf(this.getDirection())>-1?"N-S":"S-N"}getHorizontalDirection(){return["NW-SE","SW-NE"].indexOf(this.getDirection())>-1?"W-E":"E-W"}flipDirectionVertically(){switch(this.getDirection()){case"NW-SE":this.setDirection("SW-NE");break;case"NE-SW":this.setDirection("SE-NW");break;case"SE-NW":this.setDirection("NE-SW");break;case"SW-NE":this.setDirection("NW-SE")}}flipDirectionHorizontally(){switch(this.getDirection()){case"NW-SE":this.setDirection("NE-SW");break;case"NE-SW":this.setDirection("NW-SE");break;case"SE-NW":this.setDirection("SW-NE");break;case"SW-NE":this.setDirection("SE-NW")}}getTopStartCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}getTopLeftCorner(){return a(h,this)?this.getTopEndCorner():this.getTopStartCorner()}getBottomEndCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}getBottomRightCorner(){return a(h,this)?this.getBottomStartCorner():this.getBottomEndCorner()}getTopEndCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}getTopRightCorner(){return a(h,this)?this.getTopStartCorner():this.getTopEndCorner()}getBottomStartCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}getBottomLeftCorner(){return a(h,this)?this.getBottomEndCorner():this.getBottomStartCorner()}getOuterTopStartCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}getOuterTopLeftCorner(){return a(h,this)?this.getOuterTopEndCorner():this.getOuterTopStartCorner()}getOuterBottomEndCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}getOuterBottomRightCorner(){return a(h,this)?this.getOuterBottomStartCorner():this.getOuterBottomEndCorner()}getOuterTopEndCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}getOuterTopRightCorner(){return a(h,this)?this.getOuterTopStartCorner():this.getOuterTopEndCorner()}getOuterBottomStartCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}getOuterBottomLeftCorner(){return a(h,this)?this.getOuterBottomEndCorner():this.getOuterBottomStartCorner()}isCorner(e){return e.isEqual(this.getOuterTopLeftCorner())||e.isEqual(this.getOuterTopRightCorner())||e.isEqual(this.getOuterBottomLeftCorner())||e.isEqual(this.getOuterBottomRightCorner())}getOppositeCorner(e){return e instanceof i.default&&(e.isEqual(this.getOuterBottomEndCorner())?this.getOuterTopStartCorner():e.isEqual(this.getOuterTopStartCorner())?this.getOuterBottomEndCorner():e.isEqual(this.getOuterTopEndCorner())?this.getOuterBottomStartCorner():e.isEqual(this.getOuterBottomStartCorner())?this.getOuterTopEndCorner():void 0)}getBordersSharedWith(e){if(!this.includesRange(e))return[];const t=Math.min(this.from.row,this.to.row),n=Math.max(this.from.row,this.to.row),r=Math.min(this.from.col,this.to.col),s=Math.max(this.from.col,this.to.col),i=Math.min(e.from.row,e.to.row),o=Math.max(e.from.row,e.to.row),l=Math.min(e.from.col,e.to.col),u=Math.max(e.from.col,e.to.col),c=[];return t===i&&c.push("top"),s===u&&c.push(a(h,this)?"left":"right"),n===o&&c.push("bottom"),r===l&&c.push(a(h,this)?"right":"left"),c}getInner(){const e=this.getOuterTopStartCorner(),t=this.getOuterBottomEndCorner(),n=[];for(let r=e.row;r<=t.row;r++)for(let s=e.col;s<=t.col;s++)this.from.row===r&&this.from.col===s||this.to.row===r&&this.to.col===s||n.push(this._createCellCoords(r,s));return n}getAll(){const e=this.getOuterTopStartCorner(),t=this.getOuterBottomEndCorner(),n=[];for(let r=e.row;r<=t.row;r++)for(let s=e.col;s<=t.col;s++)e.row===r&&e.col===s?n.push(e):t.row===r&&t.col===s?n.push(t):n.push(this._createCellCoords(r,s));return n}forAll(e){const t=this.getOuterTopStartCorner(),n=this.getOuterBottomEndCorner();for(let r=t.row;r<=n.row;r++)for(let s=t.col;s<=n.col;s++){if(!1===e(r,s))return}}clone(){return new u(this.highlight,this.from,this.to,a(h,this))}toObject(){return{from:this.from.toObject(),to:this.to.toObject()}}_createCellCoords(e,t){return new i.default(e,t,a(h,this))}}t.default=u},35891:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(47266);t.CELL_TYPE=r.CELL_TYPE,t.TimeCellType=r.TimeCellType},36018:()=>{},36037:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(59839),n(30417);var s=r(n(81115));t.PartiallyVisibleRowsCalculationType=class{constructor(){(0,s.default)(this,"count",0),(0,s.default)(this,"startRow",null),(0,s.default)(this,"endRow",null),(0,s.default)(this,"startPosition",null),(0,s.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedHeight:n,zeroBasedScrollOffset:r,innerViewportHeight:s}=t;n<=r&&(this.startRow=e),n>=r&&n<=s&&null===this.startRow&&(this.startRow=e),this.endRow=e}finalize(e){var t;const{scrollOffset:n,viewportHeight:r,horizontalScrollbarHeight:s,totalRows:i,needReverse:o,startPositions:a,rowHeight:l}=e;if(this.endRow===i-1&&o)for(this.startRow=this.endRow;this.startRow>0;){const e=a[this.endRow]+l-a[this.startRow-1];if(this.startRow-=1,e>=r-s)break}this.startPosition=null!==(t=a[this.startRow])&&void 0!==t?t:null;n+r-s<0||n>a.at(-1)+l?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,i<this.endRow&&(this.endRow=i-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}},36053:(e,t,n)=>{"use strict";var r,s,i,o=n(89035),a=n(14326),l=n(52270),h=n(54060),u=n(67343),c=n(79212),d=n(71671),g=n(58719),p=d("iterator"),f=!1;[].keys&&("next"in(i=[].keys())?(s=u(u(i)))!==Object.prototype&&(r=s):f=!0),!l(r)||o(function(){var e={};return r[p].call(e)!==e})?r={}:g&&(r=h(r)),a(r[p])||c(r,p,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}},36263:(e,t,n)=>{"use strict";t.__esModule=!0,t.multipleScrollStrategy=function(e){return t=>{const n=(0,r.createScrollTargetCalculator)(e),s={row:n.getComputedRowTarget(t),col:n.getComputedColumnTarget(t)};e.scrollViewportTo(s,()=>{const{row:t,col:n}=s;(0,r.scrollWindowToCell)(e.getCell(t,n,!0))})}};var r=n(92634)},36329:()=>{},36405:(e,t,n)=>{"use strict";var r=n(60369);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},36415:(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(37849),a=r(n(95050)),l=r(n(17194)),h=n(10175),u=r(n(40887)),c=r(n(67537)),d=n(21596),g=n(14089);t.default=class{constructor(e,t,n,r,o){(0,s.default)(this,"wtSettings",null),(0,s.default)(this,"domBindings",void 0),(0,s.default)(this,"TBODY",null),(0,s.default)(this,"THEAD",null),(0,s.default)(this,"COLGROUP",null),(0,s.default)(this,"hasTableHeight",!0),(0,s.default)(this,"hasTableWidth",!0),(0,s.default)(this,"isTableVisible",!1),(0,s.default)(this,"tableOffset",0),(0,s.default)(this,"holderOffset",0),this.domBindings=n,this.isMaster="master"===o,this.name=o,this.dataAccessObject=e,this.facadeGetter=t,this.wtSettings=r,this.instance=this.dataAccessObject.wot,this.wot=this.dataAccessObject.wot,this.TABLE=n.rootTable,(0,i.removeTextNodes)(this.TABLE),this.spreader=this.createSpreader(this.TABLE),this.hider=this.createHider(this.spreader),this.holder=this.createHolder(this.hider),this.wtRootElement=this.holder.parentNode,this.isMaster&&this.alignOverlaysWithTrimmingContainer(),this.fixTableDomTree(),this.rowFilter=null,this.columnFilter=null,this.correctHeaderWidth=!1;const a=this.wtSettings.getSettingPure("rowHeaderWidth");this.wtSettings.update("rowHeaderWidth",()=>this._modifyRowHeaderWidth(a)),this.rowUtils=new c.default(this.dataAccessObject,this.wtSettings),this.columnUtils=new u.default(this.dataAccessObject,this.wtSettings),this.tableRenderer=new h.Renderer({TABLE:this.TABLE,THEAD:this.THEAD,COLGROUP:this.COLGROUP,TBODY:this.TBODY,rowUtils:this.rowUtils,columnUtils:this.columnUtils,cellRenderer:this.wtSettings.getSettingPure("cellRenderer"),stylesHandler:this.wtSettings.getSetting("stylesHandler")})}is(e){return this.name===e}fixTableDomTree(){const e=this.domBindings.rootDocument;this.TBODY=this.TABLE.querySelector("tbody"),this.TBODY||(this.TBODY=e.createElement("tbody"),this.TABLE.appendChild(this.TBODY)),this.THEAD=this.TABLE.querySelector("thead"),this.THEAD||(this.THEAD=e.createElement("thead"),this.TABLE.insertBefore(this.THEAD,this.TBODY)),this.COLGROUP=this.TABLE.querySelector("colgroup"),this.COLGROUP||(this.COLGROUP=e.createElement("colgroup"),this.TABLE.insertBefore(this.COLGROUP,this.THEAD))}createSpreader(e){const t=e.parentNode;let n;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,i.hasClass)(t,"wtHolder")||(n=this.domBindings.rootDocument.createElement("div"),n.className="wtSpreader",t&&t.insertBefore(n,e),n.appendChild(e)),n.style.position="relative",this.wtSettings.getSetting("ariaTags")&&(0,i.setAttribute)(n,[(0,g.A11Y_PRESENTATION)()]),n}createHider(e){const t=e.parentNode;let n;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,i.hasClass)(t,"wtHolder")||(n=this.domBindings.rootDocument.createElement("div"),n.className="wtHider",t&&t.insertBefore(n,e),n.appendChild(e)),this.wtSettings.getSetting("ariaTags")&&(0,i.setAttribute)(n,[(0,g.A11Y_PRESENTATION)()]),n}createHolder(e){const t=e.parentNode;let n;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,i.hasClass)(t,"wtHolder")||(n=this.domBindings.rootDocument.createElement("div"),n.style.position="relative",n.className="wtHolder",this.isMaster&&(0,i.setAttribute)(n,[(0,g.A11Y_TABINDEX)(-1)]),t&&t.insertBefore(n,e),this.isMaster&&(n.parentNode.className+="ht_master handsontable",n.parentNode.setAttribute("dir",this.wtSettings.getSettingPure("rtlMode")?"rtl":"ltr"),this.wtSettings.getSetting("ariaTags")&&(0,i.setAttribute)(n.parentNode,[(0,g.A11Y_PRESENTATION)()])),n.appendChild(e)),this.wtSettings.getSetting("ariaTags")&&(0,i.setAttribute)(n,[(0,g.A11Y_PRESENTATION)()]),n}draw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{wtSettings:t}=this,{wtOverlays:n,wtViewport:r}=this.dataAccessObject,s=t.getSetting("totalRows"),o=t.getSetting("totalColumns"),h=t.getSetting("rowHeaders"),u=h.length,c=t.getSetting("columnHeaders"),g=c.length;let p=e;if(this.isMaster&&(n.beforeDraw(),this.holderOffset=(0,i.offset)(this.holder),p=r.createCalculators(p),u&&!t.getSetting("fixedColumnsStart"))){const e=n.inlineStartOverlay.getScrollPosition(),t=this.correctHeaderWidth;this.correctHeaderWidth=0!==e,t!==this.correctHeaderWidth&&(p=!1)}if(p)this.isMaster&&n.refresh(!0);else{this.isMaster?this.tableOffset=(0,i.offset)(this.TABLE):this.tableOffset=this.dataAccessObject.parentTableOffset;const e=Math.max(this.getFirstRenderedRow(),0),t=Math.max(this.getFirstRenderedColumn(),0);this.rowFilter=new l.default(e,s,g),this.columnFilter=new a.default(t,o,u);let p=!0;if(this.isMaster){this.alignOverlaysWithTrimmingContainer();const e={};this.wtSettings.getSetting("beforeDraw",!0,e),p=!0!==e.skipRender}p&&(this.tableRenderer.setHeaderContentRenderers(h,c),(this.is(d.CLONE_BOTTOM)||this.is(d.CLONE_BOTTOM_INLINE_START_CORNER))&&this.tableRenderer.setHeaderContentRenderers(h,[]),this.resetOversizedRows(),this.tableRenderer.setActiveOverlayName(this.name).setViewportSize(this.getRenderedRowsCount(),this.getRenderedColumnsCount()).setFilters(this.rowFilter,this.columnFilter).render(),this.isMaster&&this.markOversizedColumnHeaders(),this.adjustColumnHeaderHeights(),(this.isMaster||this.is(d.CLONE_BOTTOM))&&this.markOversizedRows(),this.isMaster?(this.wtSettings.getSetting("externalRowCalculator")||r.createVisibleCalculators(),n.refresh(!1),n.applyToDOM(),this.wtSettings.getSetting("onDraw",!0)):this.is(d.CLONE_BOTTOM)&&this.dataAccessObject.cloneSource.wtOverlays.adjustElementsSize())}let f=!1;return this.isMaster&&(f=n.topOverlay.resetFixedPosition(),n.bottomOverlay.clone&&(f=n.bottomOverlay.resetFixedPosition()||f),f=n.inlineStartOverlay.resetFixedPosition()||f,n.topInlineStartCornerOverlay&&n.topInlineStartCornerOverlay.resetFixedPosition(),n.bottomInlineStartCornerOverlay&&n.bottomInlineStartCornerOverlay.clone&&n.bottomInlineStartCornerOverlay.resetFixedPosition()),f?(n.refreshAll(),n.adjustElementsSize()):this.dataAccessObject.selectionManager.setActiveOverlay(this.facadeGetter()).render(p),this.isMaster&&n.afterDraw(),this.dataAccessObject.drawn=!0,this}markIfOversizedColumnHeader(e){const t=this.columnFilter.renderedToSource(e);let n=this.wtSettings.getSetting("columnHeaders").length;const r=this.wtSettings.getSetting("stylesHandler").getDefaultRowHeight();let s,o,a;const l=this.wtSettings.getSetting("columnHeaderHeight")||[];for(;n;)n-=1,s=this.getColumnHeaderHeight(n),o=this.getColumnHeader(t,n),o&&(a=(0,i.innerHeight)(o),(!s&&r<a||s<a)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[n]=a),Array.isArray(l)?null!==l[n]&&void 0!==l[n]&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[n]=l[n]):isNaN(l)||(this.dataAccessObject.wtViewport.oversizedColumnHeaders[n]=l),this.dataAccessObject.wtViewport.oversizedColumnHeaders[n]<(l[n]||l)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[n]=l[n]||l))}adjustColumnHeaderHeights(){const{wtSettings:e}=this,t=this.THEAD.childNodes,n=this.dataAccessObject.wtViewport.oversizedColumnHeaders;for(let r=0,s=e.getSetting("columnHeaders").length;r<s;r++)if(n[r]){if(!t[r]||0===t[r].childNodes.length)return;t[r].childNodes[0].style.height=`${n[r]}px`}}resetOversizedRows(){const{wtSettings:e}=this,{wtViewport:t}=this.dataAccessObject;if((this.isMaster||this.is(d.CLONE_BOTTOM))&&!e.getSetting("externalRowCalculator")){const e=this.getRenderedRowsCount();for(let n=0;n<e;n++){const e=this.rowFilter.renderedToSource(n);t.oversizedRows&&t.oversizedRows[e]&&(t.oversizedRows[e]=void 0)}}}getCell(e){let t=e.row,n=e.col;const r=this.wtSettings.getSetting("onModifyGetCellCoords",t,n,!this.isMaster,"render");if(r&&Array.isArray(r)&&([t,n]=r),this.isRowBeforeRenderedRows(t))return-1;if(this.isRowAfterRenderedRows(t))return-2;if(this.isColumnBeforeRenderedColumns(n))return-3;if(this.isColumnAfterRenderedColumns(n))return-4;const s=this.getRow(t);if(!s&&t>=0)throw new Error("TR was expected to be rendered but is not");const i=s.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(n)];if(!i&&n>=0)throw new Error("TD or TH was expected to be rendered but is not");return i}getRow(e){let t=null,n=null;var r,s;e<0?(t=null===(r=this.rowFilter)||void 0===r?void 0:r.sourceRowToVisibleColHeadedRow(e),n=this.THEAD):(t=null===(s=this.rowFilter)||void 0===s?void 0:s.sourceToRendered(e),n=this.TBODY);return void 0!==t&&void 0!==n&&(!(n.childNodes.length<t+1)&&n.childNodes[t])}getColumnHeader(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=this.THEAD.childNodes[t];return null==n?void 0:n.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e)]}getColumnHeaders(e){const t=[],n=this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e);return this.THEAD.childNodes.forEach(e=>{const r=e.childNodes[n];r&&t.push(r)}),t}getRowHeader(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(t>=this.wtSettings.getSetting("rowHeaders").length)return;const n=this.rowFilter.sourceToRendered(e),r=n<0?this.rowFilter.sourceRowToVisibleColHeadedRow(e):n,s=(n<0?this.THEAD:this.TBODY).childNodes[r];return null==s?void 0:s.childNodes[t]}getRowHeaders(e){const t=[],n=this.wtSettings.getSetting("rowHeaders").length;for(let r=0;r<n;r++){const n=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)],s=null==n?void 0:n.childNodes[r];s&&t.push(s)}return t}getCoords(e){let t=e;if("TD"!==t.nodeName&&"TH"!==t.nodeName&&(t=(0,i.closest)(t,["TD","TH"])),null===t)return null;const n=t.parentNode;if(!n)return null;const r=n.parentNode;let s=(0,i.index)(n),o=t.cellIndex;if((0,i.overlayContainsElement)(d.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,i.overlayContainsElement)(d.CLONE_TOP,t,this.wtRootElement))"THEAD"===r.nodeName&&(s-=r.childNodes.length);else if((0,i.overlayContainsElement)(d.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)||(0,i.overlayContainsElement)(d.CLONE_BOTTOM,t,this.wtRootElement)){s=this.wtSettings.getSetting("totalRows")-r.childNodes.length+s}else r===this.THEAD?s=this.rowFilter.visibleColHeadedRowToSourceRow(s):this.rowFilter&&(s=this.rowFilter.renderedToSource(s));(0,i.overlayContainsElement)(d.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,i.overlayContainsElement)(d.CLONE_INLINE_START,t,this.wtRootElement)||(0,i.overlayContainsElement)(d.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)?o=this.columnFilter.offsettedTH(o):this.columnFilter&&(o=this.columnFilter.visibleRowHeadedColumnToSourceColumn(o));const a=this.wtSettings.getSetting("onModifyGetCoordsElement",s,o);return a&&Array.isArray(a)&&([s,o]=a),this.wot.createCellCoords(s,o)}markOversizedRows(){if(this.wtSettings.getSetting("externalRowCalculator"))return;let e=this.TBODY.childNodes.length;const t=this.wtSettings.getSetting("stylesHandler"),n=e*t.getDefaultRowHeight(),r=(0,i.innerHeight)(this.TBODY)-1,s=t.areCellsBorderBox(),o=s?i.outerHeight:i.innerHeight,a=s?0:1,l=s?1:0;let h,u,c,d,g;if(n!==r||this.wtSettings.getSetting("fixedRowsBottom"))for(;e;){e-=1,c=this.rowFilter.renderedToSource(e),h=this.getRowHeight(c),d=this.getTrForRow(c),g=d.querySelector("th");const n=0===c?l:0;u=g?o(g):o(d)-a,(!h&&t.getDefaultRowHeight()<u-n||h<u)&&(s||(u+=1),this.dataAccessObject.wtViewport.oversizedRows[c]=u)}}getTrForRow(e){return this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)]}isColumnHeaderRendered(e){if(e>=0)return!1;const t=this.wtSettings.getSetting("rowHeaders").length;return Math.abs(e)<=t}isRowHeaderRendered(e){if(e>=0)return!1;const t=this.wtSettings.getSetting("columnHeaders").length;return Math.abs(e)<=t}isRowBeforeRenderedRows(e){const t=this.getFirstRenderedRow();return e<0&&t<=0?!this.isRowHeaderRendered(e):e<t}isRowAfterRenderedRows(e){return e>this.getLastRenderedRow()}isColumnBeforeRenderedColumns(e){const t=this.getFirstRenderedColumn();return e<0&&t<=0?!this.isColumnHeaderRendered(e):e<t}isColumnAfterRenderedColumns(e){return this.columnFilter&&e>this.getLastRenderedColumn()}isColumnAfterViewport(e){return this.columnFilter&&e>this.getLastVisibleColumn()}isRowAfterViewport(e){return this.rowFilter&&e>this.getLastVisibleRow()}isColumnBeforeViewport(e){return this.columnFilter&&this.columnFilter.sourceToRendered(e)<0&&e>=0}isLastRowFullyVisible(){return this.getLastVisibleRow()===this.getLastRenderedRow()}isLastColumnFullyVisible(){return this.getLastVisibleColumn()===this.getLastRenderedColumn()}allRowsInViewport(){return this.wtSettings.getSetting("totalRows")===this.getVisibleRowsCount()}allColumnsInViewport(){return this.wtSettings.getSetting("totalColumns")===this.getVisibleColumnsCount()}getRowHeight(e){return this.rowUtils.getHeight(e)}getColumnHeaderHeight(e){return this.columnUtils.getHeaderHeight(e)}getColumnWidth(e){return this.columnUtils.getWidth(e)}hasDefinedSize(){return this.hasTableHeight&&this.hasTableWidth}getWidth(){return(0,i.outerWidth)(this.TABLE)}getHeight(){return(0,i.outerHeight)(this.TABLE)}getTotalWidth(){const e=(0,i.outerWidth)(this.hider);return 0!==e?e:this.getWidth()}getTotalHeight(){const e=(0,i.outerHeight)(this.hider);return 0!==e?e:this.getHeight()}isVisible(){return(0,i.isVisible)(this.TABLE)}_modifyRowHeaderWidth(e){let t=(0,o.isFunction)(e)?e():null;return Array.isArray(t)?(t=[...t],t[t.length-1]=this._correctRowHeaderWidth(t[t.length-1])):t=this._correctRowHeaderWidth(t),t}_correctRowHeaderWidth(e){let t=e;return"number"!=typeof e&&(t=this.wtSettings.getSetting("defaultColumnWidth")),this.correctHeaderWidth&&(t+=1),t}}},36467:()=>{},36634:()=>{},36724:(e,t,n)=>{"use strict";var r=n(94988),s=r({}.toString),i=r("".slice);e.exports=function(e){return i(s(e),8,-1)}},36741:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(81396),n(88633);var s=r(n(97555)),i=r(n(99156)),o=r(n(28138)),a=r(n(99088)),l=r(n(24285)),h=n(89090);class u{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];this.hot=e,this.globalMeta=new s.default(e),this.tableMeta=new i.default(this.globalMeta),this.columnMeta=new o.default(this.globalMeta),this.cellMeta=new a.default(this.columnMeta),n.forEach(e=>new e(this)),this.globalMeta.updateMeta(t)}getGlobalMeta(){return this.globalMeta.getMeta()}updateGlobalMeta(e){this.globalMeta.updateMeta(e)}getTableMeta(){return this.tableMeta.getMeta()}updateTableMeta(e){this.tableMeta.updateMeta(e)}getColumnMeta(e){return this.columnMeta.getMeta(e)}updateColumnMeta(e,t){this.columnMeta.updateMeta(e,t)}getCellMeta(e,t,n){const r=this.cellMeta.getMeta(e,t);return r.visualRow=n.visualRow,r.visualCol=n.visualColumn,r.row=e,r.col=t,n.skipMetaExtension||this.runLocalHooks("afterGetCellMeta",r),r}getCellMetaKeyValue(e,t,n){if("string"!=typeof n)throw new Error("The passed cell meta object key is not a string");return this.cellMeta.getMeta(e,t,n)}setCellMeta(e,t,n,r){this.cellMeta.setMeta(e,t,n,r)}updateCellMeta(e,t,n){this.cellMeta.updateMeta(e,t,n)}removeCellMeta(e,t,n){this.cellMeta.removeMeta(e,t,n)}getCellsMeta(){return this.cellMeta.getMetas()}getCellsMetaAtRow(e){return this.cellMeta.getMetasAtRow(e)}createRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.createRow(e,t)}removeRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.removeRow(e,t)}createColumn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.createColumn(e,t),this.columnMeta.createColumn(e,t)}removeColumn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.removeColumn(e,t),this.columnMeta.removeColumn(e,t)}clearCellsCache(){this.cellMeta.clearCache()}clearCache(){this.cellMeta.clearCache(),this.columnMeta.clearCache()}}t.default=u,(0,h.mixin)(u,l.default)},36806:(e,t,n)=>{"use strict";t.__esModule=!0,t.valueGetter=function(e){return r.valueGetter.call(this,e)};var r=n(51897)},37223:(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_yesterday";function l(e){const t=(0,s.default)(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame((0,s.default)().subtract(1,"days").startOf("day"),"d")}(0,o.registerCondition)(a,l,{name:i.FILTERS_CONDITIONS_YESTERDAY,inputsCount:0})},37279:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(32453);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.Autofill=r.Autofill},37408:(e,t,n)=>{"use strict";var r=n(52270),s=n(36724),i=n(71671)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===s(e))}},37466:(e,t,n)=>{"use strict";var r=n(21912),s=n(89035);e.exports=r&&s(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},37515:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(81115)),i=n(72740),o=n(16656);const a="px";t.default=class{constructor(e){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"_element",null),(0,s.default)(this,"state",0),(0,s.default)(this,"inlineProperty",void 0),this.hot=e,this.inlineProperty=e.isRtl()?"right":"left"}appendTo(e){e.appendChild(this._element),this.state=2}build(){0===this.state&&(this._element=this.hot.rootDocument.createElement("div"),this.state=1)}destroy(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=0}isAppended(){return 2===this.state}isBuilt(){return this.state>=1}setPosition(e,t){(0,i.isNumeric)(e)&&(this._element.style.top=e+a),(0,i.isNumeric)(t)&&(this._element.style[this.inlineProperty]=t+a)}getPosition(){const e=this._element.style;return{top:e.top?parseInt(e.top,10):0,start:e[this.inlineProperty]?parseInt(e[this.inlineProperty],10):0}}setSize(e,t){(0,i.isNumeric)(e)&&(this._element.style.width=e+a),(0,i.isNumeric)(t)&&(this._element.style.height=t+a)}getSize(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}}setOffset(e,t){(0,i.isNumeric)(e)&&(this._element.style.marginTop=e+a),(0,i.isNumeric)(t)&&(this._element.style[`margin${(0,o.toUpperCaseFirst)(this.inlineProperty)}`]=t+a)}getOffset(){const e=this._element.style,t=`margin${(0,o.toUpperCaseFirst)(this.inlineProperty)}`;return{top:e.marginTop?parseInt(e.marginTop,10):0,start:e[t]?parseInt(e[t],10):0}}}},37539:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,r;function s(){return t.apply(null,arguments)}function i(e){t=e}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function h(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(l(e,t))return!1;return!0}function u(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function g(e,t){var n,r=[],s=e.length;for(n=0;n<s;++n)r.push(t(e[n],n));return r}function p(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,r){return Xn(e,t,n,r,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function E(e){return null==e._pf&&(e._pf=m()),e._pf}function w(e){var t=null,n=!1,s=e._d&&!isNaN(e._d.getTime());return s&&(t=E(e),n=r.call(t.parsedDateParts,function(e){return null!=e}),s=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(s=s&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?s:(e._isValid=s,e._isValid)}function y(e){var t=f(NaN);return null!=e?p(E(t),e):E(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var C=s.momentProperties=[],v=!1;function S(e,t){var n,r,s,i=C.length;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=E(t)),u(t._locale)||(e._locale=t._locale),i>0)for(n=0;n<i;n++)u(s=t[r=C[n]])||(e[r]=s);return e}function R(e){S(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,s.updateOffset(this),v=!1)}function T(e){return e instanceof R||null!=e&&null!=e._isAMomentObject}function _(e){!1===s.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function N(e,t){var n=!0;return p(function(){if(null!=s.deprecationHandler&&s.deprecationHandler(null,e),n){var r,i,o,a=[],h=arguments.length;for(i=0;i<h;i++){if(r="","object"==typeof arguments[i]){for(o in r+="\n["+i+"] ",arguments[0])l(arguments[0],o)&&(r+=o+": "+arguments[0][o]+", ");r=r.slice(0,-2)}else r=arguments[i];a.push(r)}_(e+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var A,b={};function M(e,t){null!=s.deprecationHandler&&s.deprecationHandler(e,t),b[e]||(_(t),b[e]=!0)}function I(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function O(e){var t,n;for(n in e)l(e,n)&&(I(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function x(e,t){var n,r=p({},e);for(n in t)l(t,n)&&(a(e[n])&&a(t[n])?(r[n]={},p(r[n],e[n]),p(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)l(e,n)&&!l(t,n)&&a(e[n])&&(r[n]=p({},r[n]));return r}function P(e){null!=e&&this.set(e)}s.suppressDeprecationWarnings=!1,s.deprecationHandler=null,A=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)l(e,t)&&n.push(t);return n};var L={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function D(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return I(r)?r.call(t,n):r}function k(e,t,n){var r=""+Math.abs(e),s=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+r}var H=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,F=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,U={},V={};function B(e,t,n,r){var s=r;"string"==typeof r&&(s=function(){return this[r]()}),e&&(V[e]=s),t&&(V[t[0]]=function(){return k(s.apply(this,arguments),t[1],t[2])}),n&&(V[n]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function W(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Y(e){var t,n,r=e.match(H);for(t=0,n=r.length;t<n;t++)V[r[t]]?r[t]=V[r[t]]:r[t]=W(r[t]);return function(t){var s,i="";for(s=0;s<n;s++)i+=I(r[s])?r[s].call(t,e):r[s];return i}}function G(e,t){return e.isValid()?(t=j(t,e.localeData()),U[t]=U[t]||Y(t),U[t](e)):e.localeData().invalidDate()}function j(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(F.lastIndex=0;n>=0&&F.test(e);)e=e.replace(F,r),F.lastIndex=0,n-=1;return e}var z={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function $(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(H).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])}var K="Invalid date";function X(){return this._invalidDate}var q="%d",Q=/\d{1,2}/;function Z(e){return this._ordinal.replace("%d",e)}var J={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ee(e,t,n,r){var s=this._relativeTime[n];return I(s)?s(e,t,n,r):s.replace(/%d/i,e)}function te(e,t){var n=this._relativeTime[e>0?"future":"past"];return I(n)?n(t):n.replace(/%s/i,t)}var ne={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function re(e){return"string"==typeof e?ne[e]||ne[e.toLowerCase()]:void 0}function se(e){var t,n,r={};for(n in e)l(e,n)&&(t=re(n))&&(r[t]=e[n]);return r}var ie={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function oe(e){var t,n=[];for(t in e)l(e,t)&&n.push({unit:t,priority:ie[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}var ae,le=/\d/,he=/\d\d/,ue=/\d{3}/,ce=/\d{4}/,de=/[+-]?\d{6}/,ge=/\d\d?/,pe=/\d\d\d\d?/,fe=/\d\d\d\d\d\d?/,me=/\d{1,3}/,Ee=/\d{1,4}/,we=/[+-]?\d{1,6}/,ye=/\d+/,Ce=/[+-]?\d+/,ve=/Z|[+-]\d\d:?\d\d/gi,Se=/Z|[+-]\d\d(?::?\d\d)?/gi,Re=/[+-]?\d+(\.\d{1,3})?/,Te=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,_e=/^[1-9]\d?/,Ne=/^([1-9]\d|\d)/;function Ae(e,t,n){ae[e]=I(t)?t:function(e,r){return e&&n?n:t}}function be(e,t){return l(ae,e)?ae[e](t._strict,t._locale):new RegExp(Me(e))}function Me(e){return Ie(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,s){return t||n||r||s}))}function Ie(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Oe(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function xe(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=Oe(t)),n}ae={};var Pe={};function Le(e,t){var n,r,s=t;for("string"==typeof e&&(e=[e]),c(t)&&(s=function(e,n){n[t]=xe(e)}),r=e.length,n=0;n<r;n++)Pe[e[n]]=s}function De(e,t){Le(e,function(e,n,r,s){r._w=r._w||{},t(e,r._w,r,s)})}function ke(e,t,n){null!=t&&l(Pe,e)&&Pe[e](t,n._a,n,e)}function He(e){return e%4==0&&e%100!=0||e%400==0}var Fe=0,Ue=1,Ve=2,Be=3,We=4,Ye=5,Ge=6,je=7,ze=8;function $e(e){return He(e)?366:365}B("Y",0,0,function(){var e=this.year();return e<=9999?k(e,4):"+"+e}),B(0,["YY",2],0,function(){return this.year()%100}),B(0,["YYYY",4],0,"year"),B(0,["YYYYY",5],0,"year"),B(0,["YYYYYY",6,!0],0,"year"),Ae("Y",Ce),Ae("YY",ge,he),Ae("YYYY",Ee,ce),Ae("YYYYY",we,de),Ae("YYYYYY",we,de),Le(["YYYYY","YYYYYY"],Fe),Le("YYYY",function(e,t){t[Fe]=2===e.length?s.parseTwoDigitYear(e):xe(e)}),Le("YY",function(e,t){t[Fe]=s.parseTwoDigitYear(e)}),Le("Y",function(e,t){t[Fe]=parseInt(e,10)}),s.parseTwoDigitYear=function(e){return xe(e)+(xe(e)>68?1900:2e3)};var Ke,Xe=Qe("FullYear",!0);function qe(){return He(this.year())}function Qe(e,t){return function(n){return null!=n?(Je(this,e,n),s.updateOffset(this,t),this):Ze(this,e)}}function Ze(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Je(e,t,n){var r,s,i,o,a;if(e.isValid()&&!isNaN(n)){switch(r=e._d,s=e._isUTC,t){case"Milliseconds":return void(s?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(s?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(s?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(s?r.setUTCHours(n):r.setHours(n));case"Date":return void(s?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}i=n,o=e.month(),a=29!==(a=e.date())||1!==o||He(i)?a:28,s?r.setUTCFullYear(i,o,a):r.setFullYear(i,o,a)}}function et(e){return I(this[e=re(e)])?this[e]():this}function tt(e,t){if("object"==typeof e){var n,r=oe(e=se(e)),s=r.length;for(n=0;n<s;n++)this[r[n].unit](e[r[n].unit])}else if(I(this[e=re(e)]))return this[e](t);return this}function nt(e,t){return(e%t+t)%t}function rt(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=nt(t,12);return e+=(t-n)/12,1===n?He(e)?29:28:31-n%7%2}Ke=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},B("M",["MM",2],"Mo",function(){return this.month()+1}),B("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),B("MMMM",0,0,function(e){return this.localeData().months(this,e)}),Ae("M",ge,_e),Ae("MM",ge,he),Ae("MMM",function(e,t){return t.monthsShortRegex(e)}),Ae("MMMM",function(e,t){return t.monthsRegex(e)}),Le(["M","MM"],function(e,t){t[Ue]=xe(e)-1}),Le(["MMM","MMMM"],function(e,t,n,r){var s=n._locale.monthsParse(e,r,n._strict);null!=s?t[Ue]=s:E(n).invalidMonth=e});var st="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),it="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ot=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,at=Te,lt=Te;function ht(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ot).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone}function ut(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ot.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ct(e,t,n){var r,s,i,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=f([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(s=Ke.call(this._shortMonthsParse,o))?s:null:-1!==(s=Ke.call(this._longMonthsParse,o))?s:null:"MMM"===t?-1!==(s=Ke.call(this._shortMonthsParse,o))||-1!==(s=Ke.call(this._longMonthsParse,o))?s:null:-1!==(s=Ke.call(this._longMonthsParse,o))||-1!==(s=Ke.call(this._shortMonthsParse,o))?s:null}function dt(e,t,n){var r,s,i;if(this._monthsParseExact)return ct.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(s=f([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function gt(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=xe(t);else if(!c(t=e.localeData().monthsParse(t)))return e;var n=t,r=e.date();return r=r<29?r:Math.min(r,rt(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function pt(e){return null!=e?(gt(this,e),s.updateOffset(this,!0),this):Ze(this,"Month")}function ft(){return rt(this.year(),this.month())}function mt(e){return this._monthsParseExact?(l(this,"_monthsRegex")||wt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=at),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Et(e){return this._monthsParseExact?(l(this,"_monthsRegex")||wt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=lt),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function wt(){function e(e,t){return t.length-e.length}var t,n,r,s,i=[],o=[],a=[];for(t=0;t<12;t++)n=f([2e3,t]),r=Ie(this.monthsShort(n,"")),s=Ie(this.months(n,"")),i.push(r),o.push(s),a.push(s),a.push(r);i.sort(e),o.sort(e),a.sort(e),this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function yt(e,t,n,r,s,i,o){var a;return e<100&&e>=0?(a=new Date(e+400,t,n,r,s,i,o),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,s,i,o),a}function Ct(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function vt(e,t,n){var r=7+t-n;return-(7+Ct(e,0,r).getUTCDay()-t)%7+r-1}function St(e,t,n,r,s){var i,o,a=1+7*(t-1)+(7+n-r)%7+vt(e,r,s);return a<=0?o=$e(i=e-1)+a:a>$e(e)?(i=e+1,o=a-$e(e)):(i=e,o=a),{year:i,dayOfYear:o}}function Rt(e,t,n){var r,s,i=vt(e.year(),t,n),o=Math.floor((e.dayOfYear()-i-1)/7)+1;return o<1?r=o+Tt(s=e.year()-1,t,n):o>Tt(e.year(),t,n)?(r=o-Tt(e.year(),t,n),s=e.year()+1):(s=e.year(),r=o),{week:r,year:s}}function Tt(e,t,n){var r=vt(e,t,n),s=vt(e+1,t,n);return($e(e)-r+s)/7}function _t(e){return Rt(e,this._week.dow,this._week.doy).week}B("w",["ww",2],"wo","week"),B("W",["WW",2],"Wo","isoWeek"),Ae("w",ge,_e),Ae("ww",ge,he),Ae("W",ge,_e),Ae("WW",ge,he),De(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=xe(e)});var Nt={dow:0,doy:6};function At(){return this._week.dow}function bt(){return this._week.doy}function Mt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function It(e){var t=Rt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Ot(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function xt(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Pt(e,t){return e.slice(t,7).concat(e.slice(0,t))}B("d",0,"do","day"),B("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),B("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),B("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),B("e",0,0,"weekday"),B("E",0,0,"isoWeekday"),Ae("d",ge),Ae("e",ge),Ae("E",ge),Ae("dd",function(e,t){return t.weekdaysMinRegex(e)}),Ae("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Ae("dddd",function(e,t){return t.weekdaysRegex(e)}),De(["dd","ddd","dddd"],function(e,t,n,r){var s=n._locale.weekdaysParse(e,r,n._strict);null!=s?t.d=s:E(n).invalidWeekday=e}),De(["d","e","E"],function(e,t,n,r){t[r]=xe(e)});var Lt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Dt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),kt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ht=Te,Ft=Te,Ut=Te;function Vt(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Pt(n,this._week.dow):e?n[e.day()]:n}function Bt(e){return!0===e?Pt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Wt(e){return!0===e?Pt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Yt(e,t,n){var r,s,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(s=Ke.call(this._weekdaysParse,o))?s:null:"ddd"===t?-1!==(s=Ke.call(this._shortWeekdaysParse,o))?s:null:-1!==(s=Ke.call(this._minWeekdaysParse,o))?s:null:"dddd"===t?-1!==(s=Ke.call(this._weekdaysParse,o))||-1!==(s=Ke.call(this._shortWeekdaysParse,o))||-1!==(s=Ke.call(this._minWeekdaysParse,o))?s:null:"ddd"===t?-1!==(s=Ke.call(this._shortWeekdaysParse,o))||-1!==(s=Ke.call(this._weekdaysParse,o))||-1!==(s=Ke.call(this._minWeekdaysParse,o))?s:null:-1!==(s=Ke.call(this._minWeekdaysParse,o))||-1!==(s=Ke.call(this._weekdaysParse,o))||-1!==(s=Ke.call(this._shortWeekdaysParse,o))?s:null}function Gt(e,t,n){var r,s,i;if(this._weekdaysParseExact)return Yt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(s=f([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function jt(e){if(!this.isValid())return null!=e?this:NaN;var t=Ze(this,"Day");return null!=e?(e=Ot(e,this.localeData()),this.add(e-t,"d")):t}function zt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function $t(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=xt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Kt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Ht),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Xt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ft),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function qt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ut),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Qt(){function e(e,t){return t.length-e.length}var t,n,r,s,i,o=[],a=[],l=[],h=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),r=Ie(this.weekdaysMin(n,"")),s=Ie(this.weekdaysShort(n,"")),i=Ie(this.weekdays(n,"")),o.push(r),a.push(s),l.push(i),h.push(r),h.push(s),h.push(i);o.sort(e),a.sort(e),l.sort(e),h.sort(e),this._weekdaysRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Zt(){return this.hours()%12||12}function Jt(){return this.hours()||24}function en(e,t){B(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function tn(e,t){return t._meridiemParse}function nn(e){return"p"===(e+"").toLowerCase().charAt(0)}B("H",["HH",2],0,"hour"),B("h",["hh",2],0,Zt),B("k",["kk",2],0,Jt),B("hmm",0,0,function(){return""+Zt.apply(this)+k(this.minutes(),2)}),B("hmmss",0,0,function(){return""+Zt.apply(this)+k(this.minutes(),2)+k(this.seconds(),2)}),B("Hmm",0,0,function(){return""+this.hours()+k(this.minutes(),2)}),B("Hmmss",0,0,function(){return""+this.hours()+k(this.minutes(),2)+k(this.seconds(),2)}),en("a",!0),en("A",!1),Ae("a",tn),Ae("A",tn),Ae("H",ge,Ne),Ae("h",ge,_e),Ae("k",ge,_e),Ae("HH",ge,he),Ae("hh",ge,he),Ae("kk",ge,he),Ae("hmm",pe),Ae("hmmss",fe),Ae("Hmm",pe),Ae("Hmmss",fe),Le(["H","HH"],Be),Le(["k","kk"],function(e,t,n){var r=xe(e);t[Be]=24===r?0:r}),Le(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),Le(["h","hh"],function(e,t,n){t[Be]=xe(e),E(n).bigHour=!0}),Le("hmm",function(e,t,n){var r=e.length-2;t[Be]=xe(e.substr(0,r)),t[We]=xe(e.substr(r)),E(n).bigHour=!0}),Le("hmmss",function(e,t,n){var r=e.length-4,s=e.length-2;t[Be]=xe(e.substr(0,r)),t[We]=xe(e.substr(r,2)),t[Ye]=xe(e.substr(s)),E(n).bigHour=!0}),Le("Hmm",function(e,t,n){var r=e.length-2;t[Be]=xe(e.substr(0,r)),t[We]=xe(e.substr(r))}),Le("Hmmss",function(e,t,n){var r=e.length-4,s=e.length-2;t[Be]=xe(e.substr(0,r)),t[We]=xe(e.substr(r,2)),t[Ye]=xe(e.substr(s))});var rn=/[ap]\.?m?\.?/i,sn=Qe("Hours",!0);function on(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,ln={calendar:L,longDateFormat:z,invalidDate:K,ordinal:q,dayOfMonthOrdinalParse:Q,relativeTime:J,months:st,monthsShort:it,week:Nt,weekdays:Lt,weekdaysMin:kt,weekdaysShort:Dt,meridiemParse:rn},hn={},un={};function cn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function dn(e){return e?e.toLowerCase().replace("_","-"):e}function gn(e){for(var t,n,r,s,i=0;i<e.length;){for(t=(s=dn(e[i]).split("-")).length,n=(n=dn(e[i+1]))?n.split("-"):null;t>0;){if(r=fn(s.slice(0,t).join("-")))return r;if(n&&n.length>=t&&cn(s,n)>=t-1)break;t--}i++}return an}function pn(e){return!(!e||!e.match("^[^/\\\\]*$"))}function fn(t){var r=null;if(void 0===hn[t]&&e&&e.exports&&pn(t))try{r=an._abbr,n(93398)("./"+t),mn(r)}catch(e){hn[t]=null}return hn[t]}function mn(e,t){var n;return e&&((n=u(t)?yn(e):En(e,t))?an=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function En(e,t){if(null!==t){var n,r=ln;if(t.abbr=e,null!=hn[e])M("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=hn[e]._config;else if(null!=t.parentLocale)if(null!=hn[t.parentLocale])r=hn[t.parentLocale]._config;else{if(null==(n=fn(t.parentLocale)))return un[t.parentLocale]||(un[t.parentLocale]=[]),un[t.parentLocale].push({name:e,config:t}),null;r=n._config}return hn[e]=new P(x(r,t)),un[e]&&un[e].forEach(function(e){En(e.name,e.config)}),mn(e),hn[e]}return delete hn[e],null}function wn(e,t){if(null!=t){var n,r,s=ln;null!=hn[e]&&null!=hn[e].parentLocale?hn[e].set(x(hn[e]._config,t)):(null!=(r=fn(e))&&(s=r._config),t=x(s,t),null==r&&(t.abbr=e),(n=new P(t)).parentLocale=hn[e],hn[e]=n),mn(e)}else null!=hn[e]&&(null!=hn[e].parentLocale?(hn[e]=hn[e].parentLocale,e===mn()&&mn(e)):null!=hn[e]&&delete hn[e]);return hn[e]}function yn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return an;if(!o(e)){if(t=fn(e))return t;e=[e]}return gn(e)}function Cn(){return A(hn)}function vn(e){var t,n=e._a;return n&&-2===E(e).overflow&&(t=n[Ue]<0||n[Ue]>11?Ue:n[Ve]<1||n[Ve]>rt(n[Fe],n[Ue])?Ve:n[Be]<0||n[Be]>24||24===n[Be]&&(0!==n[We]||0!==n[Ye]||0!==n[Ge])?Be:n[We]<0||n[We]>59?We:n[Ye]<0||n[Ye]>59?Ye:n[Ge]<0||n[Ge]>999?Ge:-1,E(e)._overflowDayOfYear&&(t<Fe||t>Ve)&&(t=Ve),E(e)._overflowWeeks&&-1===t&&(t=je),E(e)._overflowWeekday&&-1===t&&(t=ze),E(e).overflow=t),e}var Sn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Rn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Tn=/Z|[+-]\d\d(?::?\d\d)?/,_n=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Nn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],An=/^\/?Date\((-?\d+)/i,bn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Mn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function In(e){var t,n,r,s,i,o,a=e._i,l=Sn.exec(a)||Rn.exec(a),h=_n.length,u=Nn.length;if(l){for(E(e).iso=!0,t=0,n=h;t<n;t++)if(_n[t][1].exec(l[1])){s=_n[t][0],r=!1!==_n[t][2];break}if(null==s)return void(e._isValid=!1);if(l[3]){for(t=0,n=u;t<n;t++)if(Nn[t][1].exec(l[3])){i=(l[2]||" ")+Nn[t][0];break}if(null==i)return void(e._isValid=!1)}if(!r&&null!=i)return void(e._isValid=!1);if(l[4]){if(!Tn.exec(l[4]))return void(e._isValid=!1);o="Z"}e._f=s+(i||"")+(o||""),Wn(e)}else e._isValid=!1}function On(e,t,n,r,s,i){var o=[xn(e),it.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(s,10)];return i&&o.push(parseInt(i,10)),o}function xn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Pn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Ln(e,t,n){return!e||Dt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(E(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Dn(e,t,n){if(e)return Mn[e];if(t)return 0;var r=parseInt(n,10),s=r%100;return(r-s)/100*60+s}function kn(e){var t,n=bn.exec(Pn(e._i));if(n){if(t=On(n[4],n[3],n[2],n[5],n[6],n[7]),!Ln(n[1],t,e))return;e._a=t,e._tzm=Dn(n[8],n[9],n[10]),e._d=Ct.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),E(e).rfc2822=!0}else e._isValid=!1}function Hn(e){var t=An.exec(e._i);null===t?(In(e),!1===e._isValid&&(delete e._isValid,kn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:s.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Fn(e,t,n){return null!=e?e:null!=t?t:n}function Un(e){var t=new Date(s.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Vn(e){var t,n,r,s,i,o=[];if(!e._d){for(r=Un(e),e._w&&null==e._a[Ve]&&null==e._a[Ue]&&Bn(e),null!=e._dayOfYear&&(i=Fn(e._a[Fe],r[Fe]),(e._dayOfYear>$e(i)||0===e._dayOfYear)&&(E(e)._overflowDayOfYear=!0),n=Ct(i,0,e._dayOfYear),e._a[Ue]=n.getUTCMonth(),e._a[Ve]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=r[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Be]&&0===e._a[We]&&0===e._a[Ye]&&0===e._a[Ge]&&(e._nextDay=!0,e._a[Be]=0),e._d=(e._useUTC?Ct:yt).apply(null,o),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Be]=24),e._w&&void 0!==e._w.d&&e._w.d!==s&&(E(e).weekdayMismatch=!0)}}function Bn(e){var t,n,r,s,i,o,a,l,h;null!=(t=e._w).GG||null!=t.W||null!=t.E?(i=1,o=4,n=Fn(t.GG,e._a[Fe],Rt(qn(),1,4).year),r=Fn(t.W,1),((s=Fn(t.E,1))<1||s>7)&&(l=!0)):(i=e._locale._week.dow,o=e._locale._week.doy,h=Rt(qn(),i,o),n=Fn(t.gg,e._a[Fe],h.year),r=Fn(t.w,h.week),null!=t.d?((s=t.d)<0||s>6)&&(l=!0):null!=t.e?(s=t.e+i,(t.e<0||t.e>6)&&(l=!0)):s=i),r<1||r>Tt(n,i,o)?E(e)._overflowWeeks=!0:null!=l?E(e)._overflowWeekday=!0:(a=St(n,r,s,i,o),e._a[Fe]=a.year,e._dayOfYear=a.dayOfYear)}function Wn(e){if(e._f!==s.ISO_8601)if(e._f!==s.RFC_2822){e._a=[],E(e).empty=!0;var t,n,r,i,o,a,l,h=""+e._i,u=h.length,c=0;for(l=(r=j(e._f,e._locale).match(H)||[]).length,t=0;t<l;t++)i=r[t],(n=(h.match(be(i,e))||[])[0])&&((o=h.substr(0,h.indexOf(n))).length>0&&E(e).unusedInput.push(o),h=h.slice(h.indexOf(n)+n.length),c+=n.length),V[i]?(n?E(e).empty=!1:E(e).unusedTokens.push(i),ke(i,n,e)):e._strict&&!n&&E(e).unusedTokens.push(i);E(e).charsLeftOver=u-c,h.length>0&&E(e).unusedInput.push(h),e._a[Be]<=12&&!0===E(e).bigHour&&e._a[Be]>0&&(E(e).bigHour=void 0),E(e).parsedDateParts=e._a.slice(0),E(e).meridiem=e._meridiem,e._a[Be]=Yn(e._locale,e._a[Be],e._meridiem),null!==(a=E(e).era)&&(e._a[Fe]=e._locale.erasConvertYear(a,e._a[Fe])),Vn(e),vn(e)}else kn(e);else In(e)}function Yn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Gn(e){var t,n,r,s,i,o,a=!1,l=e._f.length;if(0===l)return E(e).invalidFormat=!0,void(e._d=new Date(NaN));for(s=0;s<l;s++)i=0,o=!1,t=S({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[s],Wn(t),w(t)&&(o=!0),i+=E(t).charsLeftOver,i+=10*E(t).unusedTokens.length,E(t).score=i,a?i<r&&(r=i,n=t):(null==r||i<r||o)&&(r=i,n=t,o&&(a=!0));p(e,n||t)}function jn(e){if(!e._d){var t=se(e._i),n=void 0===t.day?t.date:t.day;e._a=g([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),Vn(e)}}function zn(e){var t=new R(vn($n(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function $n(e){var t=e._i,n=e._f;return e._locale=e._locale||yn(e._l),null===t||void 0===n&&""===t?y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),T(t)?new R(vn(t)):(d(t)?e._d=t:o(n)?Gn(e):n?Wn(e):Kn(e),w(e)||(e._d=null),e))}function Kn(e){var t=e._i;u(t)?e._d=new Date(s.now()):d(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Hn(e):o(t)?(e._a=g(t.slice(0),function(e){return parseInt(e,10)}),Vn(e)):a(t)?jn(e):c(t)?e._d=new Date(t):s.createFromInputFallback(e)}function Xn(e,t,n,r,s){var i={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(a(e)&&h(e)||o(e)&&0===e.length)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=s,i._l=n,i._i=e,i._f=t,i._strict=r,zn(i)}function qn(e,t,n,r){return Xn(e,t,n,r,!1)}s.createFromInputFallback=N("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),s.ISO_8601=function(){},s.RFC_2822=function(){};var Qn=N("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=qn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()}),Zn=N("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=qn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:y()});function Jn(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return qn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function er(){return Jn("isBefore",[].slice.call(arguments,0))}function tr(){return Jn("isAfter",[].slice.call(arguments,0))}var nr=function(){return Date.now?Date.now():+new Date},rr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function sr(e){var t,n,r=!1,s=rr.length;for(t in e)if(l(e,t)&&(-1===Ke.call(rr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<s;++n)if(e[rr[n]]){if(r)return!1;parseFloat(e[rr[n]])!==xe(e[rr[n]])&&(r=!0)}return!0}function ir(){return this._isValid}function or(){return Mr(NaN)}function ar(e){var t=se(e),n=t.year||0,r=t.quarter||0,s=t.month||0,i=t.week||t.isoWeek||0,o=t.day||0,a=t.hour||0,l=t.minute||0,h=t.second||0,u=t.millisecond||0;this._isValid=sr(t),this._milliseconds=+u+1e3*h+6e4*l+1e3*a*60*60,this._days=+o+7*i,this._months=+s+3*r+12*n,this._data={},this._locale=yn(),this._bubble()}function lr(e){return e instanceof ar}function hr(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function ur(e,t,n){var r,s=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0;for(r=0;r<s;r++)(n&&e[r]!==t[r]||!n&&xe(e[r])!==xe(t[r]))&&o++;return o+i}function cr(e,t){B(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+k(~~(e/60),2)+t+k(~~e%60,2)})}cr("Z",":"),cr("ZZ",""),Ae("Z",Se),Ae("ZZ",Se),Le(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=gr(Se,e)});var dr=/([\+\-]|\d\d)/gi;function gr(e,t){var n,r,s=(t||"").match(e);return null===s?null:0===(r=60*(n=((s[s.length-1]||[])+"").match(dr)||["-",0,0])[1]+xe(n[2]))?0:"+"===n[0]?r:-r}function pr(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(T(e)||d(e)?e.valueOf():qn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),s.updateOffset(n,!1),n):qn(e).local()}function fr(e){return-Math.round(e._d.getTimezoneOffset())}function mr(e,t,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=gr(Se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=fr(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?Lr(this,Mr(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,s.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:fr(this)}function Er(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function wr(e){return this.utcOffset(0,e)}function yr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(fr(this),"m")),this}function Cr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=gr(ve,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function vr(e){return!!this.isValid()&&(e=e?qn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Sr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Rr(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return S(t,this),(t=$n(t))._a?(e=t._isUTC?f(t._a):qn(t._a),this._isDSTShifted=this.isValid()&&ur(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Tr(){return!!this.isValid()&&!this._isUTC}function _r(){return!!this.isValid()&&this._isUTC}function Nr(){return!!this.isValid()&&this._isUTC&&0===this._offset}s.updateOffset=function(){};var Ar=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,br=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Mr(e,t){var n,r,s,i=e,o=null;return lr(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(o=Ar.exec(e))?(n="-"===o[1]?-1:1,i={y:0,d:xe(o[Ve])*n,h:xe(o[Be])*n,m:xe(o[We])*n,s:xe(o[Ye])*n,ms:xe(hr(1e3*o[Ge]))*n}):(o=br.exec(e))?(n="-"===o[1]?-1:1,i={y:Ir(o[2],n),M:Ir(o[3],n),w:Ir(o[4],n),d:Ir(o[5],n),h:Ir(o[6],n),m:Ir(o[7],n),s:Ir(o[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(s=xr(qn(i.from),qn(i.to)),(i={}).ms=s.milliseconds,i.M=s.months),r=new ar(i),lr(e)&&l(e,"_locale")&&(r._locale=e._locale),lr(e)&&l(e,"_isValid")&&(r._isValid=e._isValid),r}function Ir(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Or(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function xr(e,t){var n;return e.isValid()&&t.isValid()?(t=pr(t,e),e.isBefore(t)?n=Or(e,t):((n=Or(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Pr(e,t){return function(n,r){var s;return null===r||isNaN(+r)||(M(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=n,n=r,r=s),Lr(this,Mr(n,r),e),this}}function Lr(e,t,n,r){var i=t._milliseconds,o=hr(t._days),a=hr(t._months);e.isValid()&&(r=null==r||r,a&>(e,Ze(e,"Month")+a*n),o&&Je(e,"Date",Ze(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&s.updateOffset(e,o||a))}Mr.fn=ar.prototype,Mr.invalid=or;var Dr=Pr(1,"add"),kr=Pr(-1,"subtract");function Hr(e){return"string"==typeof e||e instanceof String}function Fr(e){return T(e)||d(e)||Hr(e)||c(e)||Vr(e)||Ur(e)||null==e}function Ur(e){var t,n,r=a(e)&&!h(e),s=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o=i.length;for(t=0;t<o;t+=1)n=i[t],s=s||l(e,n);return r&&s}function Vr(e){var t=o(e),n=!1;return t&&(n=0===e.filter(function(t){return!c(t)&&Hr(e)}).length),t&&n}function Br(e){var t,n,r=a(e)&&!h(e),s=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<i.length;t+=1)n=i[t],s=s||l(e,n);return r&&s}function Wr(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Yr(e,t){1===arguments.length&&(arguments[0]?Fr(arguments[0])?(e=arguments[0],t=void 0):Br(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||qn(),r=pr(n,this).startOf("day"),i=s.calendarFormat(this,r)||"sameElse",o=t&&(I(t[i])?t[i].call(this,n):t[i]);return this.format(o||this.localeData().calendar(i,this,qn(n)))}function Gr(){return new R(this)}function jr(e,t){var n=T(e)?e:qn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function zr(e,t){var n=T(e)?e:qn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function $r(e,t,n,r){var s=T(e)?e:qn(e),i=T(t)?t:qn(t);return!!(this.isValid()&&s.isValid()&&i.isValid())&&("("===(r=r||"()")[0]?this.isAfter(s,n):!this.isBefore(s,n))&&(")"===r[1]?this.isBefore(i,n):!this.isAfter(i,n))}function Kr(e,t){var n,r=T(e)?e:qn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Xr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function qr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Qr(e,t,n){var r,s,i;if(!this.isValid())return NaN;if(!(r=pr(e,this)).isValid())return NaN;switch(s=6e4*(r.utcOffset()-this.utcOffset()),t=re(t)){case"year":i=Zr(this,r)/12;break;case"month":i=Zr(this,r);break;case"quarter":i=Zr(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-s)/864e5;break;case"week":i=(this-r-s)/6048e5;break;default:i=this-r}return n?i:Oe(i)}function Zr(e,t){if(e.date()<t.date())return-Zr(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Jr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function es(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?G(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):I(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",G(n,"Z")):G(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ts(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,s="moment",i="";return this.isLocal()||(s=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+s+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=i+'[")]',this.format(e+t+n+r)}function ns(e){e||(e=this.isUtc()?s.defaultFormatUtc:s.defaultFormat);var t=G(this,e);return this.localeData().postformat(t)}function rs(e,t){return this.isValid()&&(T(e)&&e.isValid()||qn(e).isValid())?Mr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ss(e){return this.from(qn(),e)}function is(e,t){return this.isValid()&&(T(e)&&e.isValid()||qn(e).isValid())?Mr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function os(e){return this.to(qn(),e)}function as(e){var t;return void 0===e?this._locale._abbr:(null!=(t=yn(e))&&(this._locale=t),this)}s.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",s.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ls=N("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function hs(){return this._locale}var us=1e3,cs=60*us,ds=60*cs,gs=3506328*ds;function ps(e,t){return(e%t+t)%t}function fs(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-gs:new Date(e,t,n).valueOf()}function ms(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-gs:Date.UTC(e,t,n)}function Es(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?ms:fs,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ps(t+(this._isUTC?0:this.utcOffset()*cs),ds);break;case"minute":t=this._d.valueOf(),t-=ps(t,cs);break;case"second":t=this._d.valueOf(),t-=ps(t,us)}return this._d.setTime(t),s.updateOffset(this,!0),this}function ws(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?ms:fs,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=ds-ps(t+(this._isUTC?0:this.utcOffset()*cs),ds)-1;break;case"minute":t=this._d.valueOf(),t+=cs-ps(t,cs)-1;break;case"second":t=this._d.valueOf(),t+=us-ps(t,us)-1}return this._d.setTime(t),s.updateOffset(this,!0),this}function ys(){return this._d.valueOf()-6e4*(this._offset||0)}function Cs(){return Math.floor(this.valueOf()/1e3)}function vs(){return new Date(this.valueOf())}function Ss(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Rs(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Ts(){return this.isValid()?this.toISOString():null}function _s(){return w(this)}function Ns(){return p({},E(this))}function As(){return E(this).overflow}function bs(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Ms(e,t){var n,r,i,o=this._eras||yn("en")._eras;for(n=0,r=o.length;n<r;++n)switch("string"==typeof o[n].since&&(i=s(o[n].since).startOf("day"),o[n].since=i.valueOf()),typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":i=s(o[n].until).startOf("day").valueOf(),o[n].until=i.valueOf()}return o}function Is(e,t,n){var r,s,i,o,a,l=this.eras();for(e=e.toUpperCase(),r=0,s=l.length;r<s;++r)if(i=l[r].name.toUpperCase(),o=l[r].abbr.toUpperCase(),a=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[r];break;case"NNNN":if(i===e)return l[r];break;case"NNNNN":if(a===e)return l[r]}else if([i,o,a].indexOf(e)>=0)return l[r]}function Os(e,t){var n=e.since<=e.until?1:-1;return void 0===t?s(e.since).year():s(e.since).year()+(t-e.offset)*n}function xs(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Ps(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Ls(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Ds(){var e,t,n,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-s(i[e].since).year())*n+i[e].offset;return this.year()}function ks(e){return l(this,"_erasNameRegex")||Ys.call(this),e?this._erasNameRegex:this._erasRegex}function Hs(e){return l(this,"_erasAbbrRegex")||Ys.call(this),e?this._erasAbbrRegex:this._erasRegex}function Fs(e){return l(this,"_erasNarrowRegex")||Ys.call(this),e?this._erasNarrowRegex:this._erasRegex}function Us(e,t){return t.erasAbbrRegex(e)}function Vs(e,t){return t.erasNameRegex(e)}function Bs(e,t){return t.erasNarrowRegex(e)}function Ws(e,t){return t._eraYearOrdinalRegex||ye}function Ys(){var e,t,n,r,s,i=[],o=[],a=[],l=[],h=this.eras();for(e=0,t=h.length;e<t;++e)n=Ie(h[e].name),r=Ie(h[e].abbr),s=Ie(h[e].narrow),o.push(n),i.push(r),a.push(s),l.push(n),l.push(r),l.push(s);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+o.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function Gs(e,t){B(0,[e,e.length],0,t)}function js(e){return Qs.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function zs(e){return Qs.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function $s(){return Tt(this.year(),1,4)}function Ks(){return Tt(this.isoWeekYear(),1,4)}function Xs(){var e=this.localeData()._week;return Tt(this.year(),e.dow,e.doy)}function qs(){var e=this.localeData()._week;return Tt(this.weekYear(),e.dow,e.doy)}function Qs(e,t,n,r,s){var i;return null==e?Rt(this,r,s).year:(t>(i=Tt(e,r,s))&&(t=i),Zs.call(this,e,t,n,r,s))}function Zs(e,t,n,r,s){var i=St(e,t,n,r,s),o=Ct(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Js(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}B("N",0,0,"eraAbbr"),B("NN",0,0,"eraAbbr"),B("NNN",0,0,"eraAbbr"),B("NNNN",0,0,"eraName"),B("NNNNN",0,0,"eraNarrow"),B("y",["y",1],"yo","eraYear"),B("y",["yy",2],0,"eraYear"),B("y",["yyy",3],0,"eraYear"),B("y",["yyyy",4],0,"eraYear"),Ae("N",Us),Ae("NN",Us),Ae("NNN",Us),Ae("NNNN",Vs),Ae("NNNNN",Bs),Le(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var s=n._locale.erasParse(e,r,n._strict);s?E(n).era=s:E(n).invalidEra=e}),Ae("y",ye),Ae("yy",ye),Ae("yyy",ye),Ae("yyyy",ye),Ae("yo",Ws),Le(["y","yy","yyy","yyyy"],Fe),Le(["yo"],function(e,t,n,r){var s;n._locale._eraYearOrdinalRegex&&(s=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Fe]=n._locale.eraYearOrdinalParse(e,s):t[Fe]=parseInt(e,10)}),B(0,["gg",2],0,function(){return this.weekYear()%100}),B(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Gs("gggg","weekYear"),Gs("ggggg","weekYear"),Gs("GGGG","isoWeekYear"),Gs("GGGGG","isoWeekYear"),Ae("G",Ce),Ae("g",Ce),Ae("GG",ge,he),Ae("gg",ge,he),Ae("GGGG",Ee,ce),Ae("gggg",Ee,ce),Ae("GGGGG",we,de),Ae("ggggg",we,de),De(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=xe(e)}),De(["gg","GG"],function(e,t,n,r){t[r]=s.parseTwoDigitYear(e)}),B("Q",0,"Qo","quarter"),Ae("Q",le),Le("Q",function(e,t){t[Ue]=3*(xe(e)-1)}),B("D",["DD",2],"Do","date"),Ae("D",ge,_e),Ae("DD",ge,he),Ae("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Le(["D","DD"],Ve),Le("Do",function(e,t){t[Ve]=xe(e.match(ge)[0])});var ei=Qe("Date",!0);function ti(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}B("DDD",["DDDD",3],"DDDo","dayOfYear"),Ae("DDD",me),Ae("DDDD",ue),Le(["DDD","DDDD"],function(e,t,n){n._dayOfYear=xe(e)}),B("m",["mm",2],0,"minute"),Ae("m",ge,Ne),Ae("mm",ge,he),Le(["m","mm"],We);var ni=Qe("Minutes",!1);B("s",["ss",2],0,"second"),Ae("s",ge,Ne),Ae("ss",ge,he),Le(["s","ss"],Ye);var ri,si,ii=Qe("Seconds",!1);for(B("S",0,0,function(){return~~(this.millisecond()/100)}),B(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),B(0,["SSS",3],0,"millisecond"),B(0,["SSSS",4],0,function(){return 10*this.millisecond()}),B(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),B(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),B(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),B(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),B(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Ae("S",me,le),Ae("SS",me,he),Ae("SSS",me,ue),ri="SSSS";ri.length<=9;ri+="S")Ae(ri,ye);function oi(e,t){t[Ge]=xe(1e3*("0."+e))}for(ri="S";ri.length<=9;ri+="S")Le(ri,oi);function ai(){return this._isUTC?"UTC":""}function li(){return this._isUTC?"Coordinated Universal Time":""}si=Qe("Milliseconds",!1),B("z",0,0,"zoneAbbr"),B("zz",0,0,"zoneName");var hi=R.prototype;function ui(e){return qn(1e3*e)}function ci(){return qn.apply(null,arguments).parseZone()}function di(e){return e}hi.add=Dr,hi.calendar=Yr,hi.clone=Gr,hi.diff=Qr,hi.endOf=ws,hi.format=ns,hi.from=rs,hi.fromNow=ss,hi.to=is,hi.toNow=os,hi.get=et,hi.invalidAt=As,hi.isAfter=jr,hi.isBefore=zr,hi.isBetween=$r,hi.isSame=Kr,hi.isSameOrAfter=Xr,hi.isSameOrBefore=qr,hi.isValid=_s,hi.lang=ls,hi.locale=as,hi.localeData=hs,hi.max=Zn,hi.min=Qn,hi.parsingFlags=Ns,hi.set=tt,hi.startOf=Es,hi.subtract=kr,hi.toArray=Ss,hi.toObject=Rs,hi.toDate=vs,hi.toISOString=es,hi.inspect=ts,"undefined"!=typeof Symbol&&null!=Symbol.for&&(hi[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),hi.toJSON=Ts,hi.toString=Jr,hi.unix=Cs,hi.valueOf=ys,hi.creationData=bs,hi.eraName=xs,hi.eraNarrow=Ps,hi.eraAbbr=Ls,hi.eraYear=Ds,hi.year=Xe,hi.isLeapYear=qe,hi.weekYear=js,hi.isoWeekYear=zs,hi.quarter=hi.quarters=Js,hi.month=pt,hi.daysInMonth=ft,hi.week=hi.weeks=Mt,hi.isoWeek=hi.isoWeeks=It,hi.weeksInYear=Xs,hi.weeksInWeekYear=qs,hi.isoWeeksInYear=$s,hi.isoWeeksInISOWeekYear=Ks,hi.date=ei,hi.day=hi.days=jt,hi.weekday=zt,hi.isoWeekday=$t,hi.dayOfYear=ti,hi.hour=hi.hours=sn,hi.minute=hi.minutes=ni,hi.second=hi.seconds=ii,hi.millisecond=hi.milliseconds=si,hi.utcOffset=mr,hi.utc=wr,hi.local=yr,hi.parseZone=Cr,hi.hasAlignedHourOffset=vr,hi.isDST=Sr,hi.isLocal=Tr,hi.isUtcOffset=_r,hi.isUtc=Nr,hi.isUTC=Nr,hi.zoneAbbr=ai,hi.zoneName=li,hi.dates=N("dates accessor is deprecated. Use date instead.",ei),hi.months=N("months accessor is deprecated. Use month instead",pt),hi.years=N("years accessor is deprecated. Use year instead",Xe),hi.zone=N("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Er),hi.isDSTShifted=N("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Rr);var gi=P.prototype;function pi(e,t,n,r){var s=yn(),i=f().set(r,t);return s[n](i,e)}function fi(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return pi(e,t,n,"month");var r,s=[];for(r=0;r<12;r++)s[r]=pi(e,r,n,"month");return s}function mi(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var s,i=yn(),o=e?i._week.dow:0,a=[];if(null!=n)return pi(t,(n+o)%7,r,"day");for(s=0;s<7;s++)a[s]=pi(t,(s+o)%7,r,"day");return a}function Ei(e,t){return fi(e,t,"months")}function wi(e,t){return fi(e,t,"monthsShort")}function yi(e,t,n){return mi(e,t,n,"weekdays")}function Ci(e,t,n){return mi(e,t,n,"weekdaysShort")}function vi(e,t,n){return mi(e,t,n,"weekdaysMin")}gi.calendar=D,gi.longDateFormat=$,gi.invalidDate=X,gi.ordinal=Z,gi.preparse=di,gi.postformat=di,gi.relativeTime=ee,gi.pastFuture=te,gi.set=O,gi.eras=Ms,gi.erasParse=Is,gi.erasConvertYear=Os,gi.erasAbbrRegex=Hs,gi.erasNameRegex=ks,gi.erasNarrowRegex=Fs,gi.months=ht,gi.monthsShort=ut,gi.monthsParse=dt,gi.monthsRegex=Et,gi.monthsShortRegex=mt,gi.week=_t,gi.firstDayOfYear=bt,gi.firstDayOfWeek=At,gi.weekdays=Vt,gi.weekdaysMin=Wt,gi.weekdaysShort=Bt,gi.weekdaysParse=Gt,gi.weekdaysRegex=Kt,gi.weekdaysShortRegex=Xt,gi.weekdaysMinRegex=qt,gi.isPM=nn,gi.meridiem=on,mn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===xe(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),s.lang=N("moment.lang is deprecated. Use moment.locale instead.",mn),s.langData=N("moment.langData is deprecated. Use moment.localeData instead.",yn);var Si=Math.abs;function Ri(){var e=this._data;return this._milliseconds=Si(this._milliseconds),this._days=Si(this._days),this._months=Si(this._months),e.milliseconds=Si(e.milliseconds),e.seconds=Si(e.seconds),e.minutes=Si(e.minutes),e.hours=Si(e.hours),e.months=Si(e.months),e.years=Si(e.years),this}function Ti(e,t,n,r){var s=Mr(t,n);return e._milliseconds+=r*s._milliseconds,e._days+=r*s._days,e._months+=r*s._months,e._bubble()}function _i(e,t){return Ti(this,e,t,1)}function Ni(e,t){return Ti(this,e,t,-1)}function Ai(e){return e<0?Math.floor(e):Math.ceil(e)}function bi(){var e,t,n,r,s,i=this._milliseconds,o=this._days,a=this._months,l=this._data;return i>=0&&o>=0&&a>=0||i<=0&&o<=0&&a<=0||(i+=864e5*Ai(Ii(a)+o),o=0,a=0),l.milliseconds=i%1e3,e=Oe(i/1e3),l.seconds=e%60,t=Oe(e/60),l.minutes=t%60,n=Oe(t/60),l.hours=n%24,o+=Oe(n/24),a+=s=Oe(Mi(o)),o-=Ai(Ii(s)),r=Oe(a/12),a%=12,l.days=o,l.months=a,l.years=r,this}function Mi(e){return 4800*e/146097}function Ii(e){return 146097*e/4800}function Oi(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Mi(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Ii(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function xi(e){return function(){return this.as(e)}}var Pi=xi("ms"),Li=xi("s"),Di=xi("m"),ki=xi("h"),Hi=xi("d"),Fi=xi("w"),Ui=xi("M"),Vi=xi("Q"),Bi=xi("y"),Wi=Pi;function Yi(){return Mr(this)}function Gi(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function ji(e){return function(){return this.isValid()?this._data[e]:NaN}}var zi=ji("milliseconds"),$i=ji("seconds"),Ki=ji("minutes"),Xi=ji("hours"),qi=ji("days"),Qi=ji("months"),Zi=ji("years");function Ji(){return Oe(this.days()/7)}var eo=Math.round,to={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function no(e,t,n,r,s){return s.relativeTime(t||1,!!n,e,r)}function ro(e,t,n,r){var s=Mr(e).abs(),i=eo(s.as("s")),o=eo(s.as("m")),a=eo(s.as("h")),l=eo(s.as("d")),h=eo(s.as("M")),u=eo(s.as("w")),c=eo(s.as("y")),d=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||o<=1&&["m"]||o<n.m&&["mm",o]||a<=1&&["h"]||a<n.h&&["hh",a]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(d=d||u<=1&&["w"]||u<n.w&&["ww",u]),(d=d||h<=1&&["M"]||h<n.M&&["MM",h]||c<=1&&["y"]||["yy",c])[2]=t,d[3]=+e>0,d[4]=r,no.apply(null,d)}function so(e){return void 0===e?eo:"function"==typeof e&&(eo=e,!0)}function io(e,t){return void 0!==to[e]&&(void 0===t?to[e]:(to[e]=t,"s"===e&&(to.ss=t-1),!0))}function oo(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,s=!1,i=to;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(s=e),"object"==typeof t&&(i=Object.assign({},to,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),r=ro(this,!s,i,n=this.localeData()),s&&(r=n.pastFuture(+this,r)),n.postformat(r)}var ao=Math.abs;function lo(e){return(e>0)-(e<0)||+e}function ho(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,s,i,o,a,l=ao(this._milliseconds)/1e3,h=ao(this._days),u=ao(this._months),c=this.asSeconds();return c?(e=Oe(l/60),t=Oe(e/60),l%=60,e%=60,n=Oe(u/12),u%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",s=c<0?"-":"",i=lo(this._months)!==lo(c)?"-":"",o=lo(this._days)!==lo(c)?"-":"",a=lo(this._milliseconds)!==lo(c)?"-":"",s+"P"+(n?i+n+"Y":"")+(u?i+u+"M":"")+(h?o+h+"D":"")+(t||e||l?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(l?a+r+"S":"")):"P0D"}var uo=ar.prototype;return uo.isValid=ir,uo.abs=Ri,uo.add=_i,uo.subtract=Ni,uo.as=Oi,uo.asMilliseconds=Pi,uo.asSeconds=Li,uo.asMinutes=Di,uo.asHours=ki,uo.asDays=Hi,uo.asWeeks=Fi,uo.asMonths=Ui,uo.asQuarters=Vi,uo.asYears=Bi,uo.valueOf=Wi,uo._bubble=bi,uo.clone=Yi,uo.get=Gi,uo.milliseconds=zi,uo.seconds=$i,uo.minutes=Ki,uo.hours=Xi,uo.days=qi,uo.weeks=Ji,uo.months=Qi,uo.years=Zi,uo.humanize=oo,uo.toISOString=ho,uo.toString=ho,uo.toJSON=ho,uo.locale=as,uo.localeData=hs,uo.toIsoString=N("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ho),uo.lang=ls,B("X",0,0,"unix"),B("x",0,0,"valueOf"),Ae("x",Ce),Ae("X",Re),Le("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),Le("x",function(e,t,n){n._d=new Date(xe(e))}),
|
|
242
242
|
//! moment.js
|
|
243
243
|
s.version="2.30.1",i(qn),s.fn=hi,s.min=er,s.max=tr,s.now=nr,s.utc=f,s.unix=ui,s.months=Ei,s.isDate=d,s.locale=mn,s.invalid=y,s.duration=Mr,s.isMoment=T,s.weekdays=yi,s.parseZone=ci,s.localeData=yn,s.isDuration=lr,s.monthsShort=wi,s.weekdaysMin=vi,s.defineLocale=En,s.updateLocale=wn,s.locales=Cn,s.weekdaysShort=Ci,s.normalizeUnits=re,s.relativeTimeRounding=so,s.relativeTimeThreshold=io,s.calendarFormat=Wr,s.prototype=hi,s.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},s}(),window.moment=n(37539)},37613:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(81115));n(22588),n(78822),n(86192),n(80729),n(99888),n(12767),n(78644),n(97550),n(81396),n(81124),n(14618),n(19874);var i=n(30152),o=n(91506),a=n(66574),l=r(n(24285)),h=n(89090),u=n(54342),c=n(81406);new Set;class d{constructor(){(0,s.default)(this,"indexesSequence",new o.IndexesSequence),(0,s.default)(this,"trimmingMapsCollection",new a.AggregatedCollection(e=>e.some(e=>!0===e),!1)),(0,s.default)(this,"hidingMapsCollection",new a.AggregatedCollection(e=>e.some(e=>!0===e),!1)),(0,s.default)(this,"variousMapsCollection",new a.MapCollection),(0,s.default)(this,"hidingChangesObservable",new c.ChangesObservable({initialIndexValue:!1})),(0,s.default)(this,"notTrimmedIndexesCache",[]),(0,s.default)(this,"notHiddenIndexesCache",[]),(0,s.default)(this,"isBatched",!1),(0,s.default)(this,"indexesSequenceChanged",!1),(0,s.default)(this,"indexesChangeSource",void 0),(0,s.default)(this,"trimmedIndexesChanged",!1),(0,s.default)(this,"hiddenIndexesChanged",!1),(0,s.default)(this,"renderablePhysicalIndexesCache",[]),(0,s.default)(this,"fromPhysicalToVisualIndexesCache",new Map),(0,s.default)(this,"fromVisualToRenderableIndexesCache",new Map),this.indexesSequence.addLocalHook("change",()=>{this.indexesSequenceChanged=!0,this.updateCache(),this.runLocalHooks("indexesSequenceChange",this.indexesChangeSource),this.runLocalHooks("change",this.indexesSequence,null)}),this.trimmingMapsCollection.addLocalHook("change",e=>{this.trimmedIndexesChanged=!0,this.updateCache(),this.runLocalHooks("change",e,this.trimmingMapsCollection)}),this.hidingMapsCollection.addLocalHook("change",e=>{this.hiddenIndexesChanged=!0,this.updateCache(),this.runLocalHooks("change",e,this.hidingMapsCollection)}),this.variousMapsCollection.addLocalHook("change",e=>{this.runLocalHooks("change",e,this.variousMapsCollection)})}suspendOperations(){this.isBatched=!0}resumeOperations(){this.isBatched=!1,this.updateCache()}createChangesObserver(e){if("hiding"!==e)throw new Error(`Unsupported index map type "${e}".`);return this.hidingChangesObservable.createObserver()}createAndRegisterIndexMap(e,t,n){return this.registerMap(e,(0,o.createIndexMap)(t,n))}registerMap(e,t){if(this.trimmingMapsCollection.get(e)||this.hidingMapsCollection.get(e)||this.variousMapsCollection.get(e))throw Error(`Map with name "${e}" has been already registered.`);t instanceof o.TrimmingMap?this.trimmingMapsCollection.register(e,t):t instanceof o.HidingMap?this.hidingMapsCollection.register(e,t):this.variousMapsCollection.register(e,t);const n=this.getNumberOfIndexes();return n>0&&t.init(n),t}unregisterMap(e){this.trimmingMapsCollection.unregister(e),this.hidingMapsCollection.unregister(e),this.variousMapsCollection.unregister(e)}unregisterAll(){this.trimmingMapsCollection.unregisterAll(),this.hidingMapsCollection.unregisterAll(),this.variousMapsCollection.unregisterAll()}getPhysicalFromVisualIndex(e){const t=this.notTrimmedIndexesCache[e];return(0,u.isDefined)(t)?t:null}getPhysicalFromRenderableIndex(e){const t=this.renderablePhysicalIndexesCache[e];return(0,u.isDefined)(t)?t:null}getVisualFromPhysicalIndex(e){const t=this.fromPhysicalToVisualIndexesCache.get(e);return(0,u.isDefined)(t)?t:null}getVisualFromRenderableIndex(e){return this.getVisualFromPhysicalIndex(this.getPhysicalFromRenderableIndex(e))}getRenderableFromVisualIndex(e){const t=this.fromVisualToRenderableIndexesCache.get(e);return(0,u.isDefined)(t)?t:null}getNearestNotHiddenIndex(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null===this.getPhysicalFromVisualIndex(e))return null;if(this.fromVisualToRenderableIndexesCache.has(e))return e;const r=Array.from(this.fromVisualToRenderableIndexesCache.keys());let s=-1;return s=t>0?r.findIndex(t=>t>e):r.reverse().findIndex(t=>t<e),-1===s?n?this.getNearestNotHiddenIndex(e,-t,!1):null:r[s]}initToLength(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getNumberOfIndexes();this.notTrimmedIndexesCache=[...new Array(e).keys()],this.notHiddenIndexesCache=[...new Array(e).keys()],this.suspendOperations(),this.indexesChangeSource="init",this.indexesSequence.init(e),this.indexesChangeSource=void 0,this.trimmingMapsCollection.initEvery(e),this.resumeOperations(),this.suspendOperations(),this.hidingMapsCollection.initEvery(e),this.variousMapsCollection.initEvery(e),this.resumeOperations(),this.runLocalHooks("init")}fitToLength(e){const t=this.getNumberOfIndexes();if(e<t){const t=[...Array(this.getNumberOfIndexes()-e).keys()].map(t=>t+e);this.removeIndexes(t)}else this.insertIndexes(t,e-t)}getIndexesSequence(){return this.indexesSequence.getValues()}setIndexesSequence(e){void 0===this.indexesChangeSource&&(this.indexesChangeSource="update"),this.indexesSequence.setValues(e),"update"===this.indexesChangeSource&&(this.indexesChangeSource=void 0)}getNotTrimmedIndexes(){if(!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]))return this.notTrimmedIndexesCache;return this.getIndexesSequence().filter(e=>!1===this.isTrimmed(e))}getNotTrimmedIndexesLength(){return this.getNotTrimmedIndexes().length}getNotHiddenIndexes(){if(!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]))return this.notHiddenIndexesCache;return this.getIndexesSequence().filter(e=>!1===this.isHidden(e))}getNotHiddenIndexesLength(){return this.getNotHiddenIndexes().length}getRenderableIndexes(){if(!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]))return this.renderablePhysicalIndexesCache;return this.getNotTrimmedIndexes().filter(e=>!1===this.isHidden(e))}getRenderableIndexesLength(){return this.getRenderableIndexes().length}getNumberOfIndexes(){return this.getIndexesSequence().length}moveIndexes(e,t){"number"==typeof e&&(e=[e]);const n=(0,i.arrayMap)(e,e=>this.getPhysicalFromVisualIndex(e)),r=this.getNotTrimmedIndexesLength(),s=e.length,a=(0,o.getListWithRemovedItems)(this.getIndexesSequence(),n),l=a.filter(e=>!1===this.isTrimmed(e));let h=a.indexOf(l[l.length-1])+1;if(t+s<r){const e=l[t];h=a.indexOf(e)}this.indexesChangeSource="move",this.setIndexesSequence((0,o.getListWithInsertedItems)(a,h,n)),this.indexesChangeSource=void 0}isTrimmed(e){return this.trimmingMapsCollection.getMergedValueAtIndex(e)}isHidden(e){return this.hidingMapsCollection.getMergedValueAtIndex(e)}insertIndexes(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"start";const r=this.getNotTrimmedIndexes()[e],s=(0,u.isDefined)(r)?r:this.getNumberOfIndexes(),o=this.getIndexesSequence().includes(r)?this.getIndexesSequence().indexOf(r):this.getNumberOfIndexes(),a=(0,i.arrayMap)(new Array(t).fill(s),(e,t)=>e+t);this.suspendOperations(),this.indexesChangeSource="insert",this.indexesSequence.insert(o,a),this.indexesChangeSource=void 0;const l="end"===n?a.map(e=>e+1):a;this.trimmingMapsCollection.insertToEvery(o,l),this.hidingMapsCollection.insertToEvery(o,l),this.variousMapsCollection.insertToEvery(o,l),this.resumeOperations()}removeIndexes(e){this.suspendOperations(),this.indexesChangeSource="remove",this.indexesSequence.remove(e),this.indexesChangeSource=void 0,this.trimmingMapsCollection.removeFromEvery(e),this.hidingMapsCollection.removeFromEvery(e),this.variousMapsCollection.removeFromEvery(e),this.resumeOperations()}updateCache(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.indexesSequenceChanged||this.trimmedIndexesChanged||this.hiddenIndexesChanged;(!0===e||!1===this.isBatched&&!0===t)&&(this.trimmingMapsCollection.updateCache(),this.hidingMapsCollection.updateCache(),this.notTrimmedIndexesCache=this.getNotTrimmedIndexes(!1),this.notHiddenIndexesCache=this.getNotHiddenIndexes(!1),this.renderablePhysicalIndexesCache=this.getRenderableIndexes(!1),this.cacheFromPhysicalToVisualIndexes(),this.cacheFromVisualToRenderableIndexes(),this.hiddenIndexesChanged&&this.hidingChangesObservable.emit(this.hidingMapsCollection.getMergedValues()),this.runLocalHooks("cacheUpdated",{indexesSequenceChanged:this.indexesSequenceChanged,trimmedIndexesChanged:this.trimmedIndexesChanged,hiddenIndexesChanged:this.hiddenIndexesChanged}),this.indexesSequenceChanged=!1,this.trimmedIndexesChanged=!1,this.hiddenIndexesChanged=!1)}cacheFromPhysicalToVisualIndexes(){const e=this.getNotTrimmedIndexesLength();this.fromPhysicalToVisualIndexesCache.clear();for(let t=0;t<e;t+=1){const e=this.getPhysicalFromVisualIndex(t);this.fromPhysicalToVisualIndexesCache.set(e,t)}}cacheFromVisualToRenderableIndexes(){const e=this.getRenderableIndexesLength();this.fromVisualToRenderableIndexesCache.clear();for(let t=0;t<e;t+=1){const e=this.getPhysicalFromRenderableIndex(t),n=this.getVisualFromPhysicalIndex(e);this.fromVisualToRenderableIndexesCache.set(n,t)}}}t.IndexMapper=d,(0,h.mixin)(d,l.default)},37637:(e,t,n)=>{"use strict";var r=n(27538),s=n(94988),i=n(49510),o=n(56769),a=n(39326),l=n(224),h=n(88049),u=Array,c=s(l("Array","sort"));r({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&i(e);var t=o(this),n=a(u,t);return c(n,e)}}),h("toSorted")},37849:(e,t,n)=>{"use strict";t.__esModule=!0,t.curry=function(e){const t=e.length;return function n(r){return function(){for(var s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];const a=r.concat(i);let l;return l=a.length>=t?e.apply(this,a):n(a),l}}([])},t.curryRight=function(e){const t=e.length;return function n(r){return function(){for(var s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];const a=r.concat(i.reverse());let l;return l=a.length>=t?e.apply(this,a):n(a),l}}([])},t.debounce=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=null;return function(){for(var s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];return r&&clearTimeout(r),r=setTimeout(()=>{t=e.apply(this,i)},n),t}},t.fastCall=function(e,t,n,r,i,o,a,l){if((0,s.isDefined)(l))return e.call(t,n,r,i,o,a,l);if((0,s.isDefined)(a))return e.call(t,n,r,i,o,a);if((0,s.isDefined)(o))return e.call(t,n,r,i,o);if((0,s.isDefined)(i))return e.call(t,n,r,i);if((0,s.isDefined)(r))return e.call(t,n,r);if((0,s.isDefined)(n))return e.call(t,n);return e.call(t)},t.isFunction=function(e){return"function"==typeof e},t.partial=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 function(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return e.apply(this,n.concat(r))}},t.pipe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const[s,...i]=t;return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.arrayReduce)(i,(e,t)=>t(e),s.apply(this,t))}},t.throttle=i,t.throttleAfterHits=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;const r=i(e,t);let s=n;function o(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return s?(s-=1,e.apply(this,n)):r.apply(this,n)}return o.clearHits=function(){s=n},o};var r=n(30152),s=n(54342);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=0;const r={lastCallThrottled:!0};let s=null;return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];const l=Date.now();let h=!1;r.lastCallThrottled=!0,n||(n=l,h=!0);const u=t-(l-n);return h?(r.lastCallThrottled=!1,e.apply(this,o)):(s&&clearTimeout(s),s=setTimeout(()=>{r.lastCallThrottled=!1,e.apply(this,o),n=0,s=void 0},u)),r}}},38094:(e,t,n)=>{"use strict";var r=n(27538),s=n(19617),i=n(94988),o=n(55210),a=n(14326),l=n(52270),h=n(37408),u=n(48651),c=n(61338),d=n(68614),g=n(52554),p=n(71671),f=n(58719),m=p("replace"),E=TypeError,w=i("".indexOf),y=i("".replace),C=i("".slice),v=Math.max;r({target:"String",proto:!0},{replaceAll:function(e,t){var n,r,i,p,S,R,T,_,N,A,b=o(this),M=0,I="";if(l(e)){if((n=h(e))&&(r=u(o(d(e))),!~w(r,"g")))throw new E("`.replaceAll` does not allow non-global regexes");if(i=c(e,m))return s(i,e,b,t);if(f&&n)return y(u(b),e,t)}for(p=u(b),S=u(e),(R=a(t))||(t=u(t)),T=S.length,_=v(1,T),N=w(p,S);-1!==N;)A=R?u(t(S,N,p)):g(S,p,N,[],void 0,t),I+=C(p,M,N)+A,M=N+T,N=N+_>p.length?-1:w(p,S,N+_);return M<p.length&&(I+=C(p,M)),I}})},38251:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToRows",callback(e){const{selection:t}=e,{highlight:n,from:r,to:s}=e.getSelectedRangeActive();t.markSource("keyboard"),t.isSelectedByColumnHeader()?t.selectAll(!0,!0):e.selectRows(r.row,s.row,n),t.markEndSource()}}},38267:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(59839),n(30417);var s=r(n(81115));t.FullyVisibleColumnsCalculationType=class{constructor(){(0,s.default)(this,"count",0),(0,s.default)(this,"startColumn",null),(0,s.default)(this,"endColumn",null),(0,s.default)(this,"startPosition",null),(0,s.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedWidth:n,zeroBasedScrollOffset:r,viewportWidth:s,columnWidth:i}=t;n>=r&&n+i<=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(e<=r&&(this.startColumn-=1),e>=r)break}this.startPosition=null!==(t=l[this.startColumn])&&void 0!==t?t:null;const u=n+r-(i>0?r+1:r),c=null===this.startColumn?0:e.getColumnWidth(this.startColumn);u<-1*s||n>l.at(-1)||-1*n-r>-1*c?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,o<this.endColumn&&(this.endColumn=o-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}},38325:(e,t,n)=>{"use strict";t.__esModule=!0,t.htmlRenderer=o;var r=n(67287),s=n(38942);const i=t.RENDERER_TYPE="html";function o(e,t,n,i,o,a,l){r.baseRenderer.apply(this,[e,t,n,i,o,a,l]),(0,s.fastInnerHTML)(t,null==a?"":a,!1)}o.RENDERER_TYPE=i},38709:(e,t,n)=>{"use strict";t.__esModule=!0,t.showColumn=function(e,t){if(!Number.isInteger(t))throw new Error("The passed gridColumnIndex argument has invalid type.");if(e.childs.length>0)throw new Error(r.toSingleLine`The passed node is not the last node on the tree. Only for\x20
|
|
244
244
|
the last node, the show column modification can be applied.`);const{crossHiddenColumns:n}=e.data;if(!n.includes(t))return;let s=!1;if(e.walkUp(e=>{const{data:{collapsible:t}}=e;if(t)return s=!0,!1}),s)return;e.walkUp(e=>{const{data:n}=e;n.crossHiddenColumns.splice(n.crossHiddenColumns.indexOf(t),1),!n.isHidden&&n.colspan<n.origColspan&&(n.colspan+=1),n.isHidden=!1})},n(22588);var r=n(14298)},38773:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(66182);var s=r(n(81115)),i=n(57440),o=n(89090),a=n(72740),l=n(54342);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="search",d=t.PLUGIN_PRIORITY=190,g=function(e,t,n,r,s){e.getCellMeta(t,n).isSearchResult=s},p=function(e,t,n){return!((0,l.isUndefined)(e)||null===e||!e.toLocaleLowerCase||0===e.length)&&(!(0,l.isUndefined)(t)&&null!==t&&-1!==t.toString().toLocaleLowerCase(n.locale).indexOf(e.toLocaleLowerCase(n.locale)))};var f=new WeakSet;class m extends i.BasePlugin{constructor(){super(...arguments),h(this,f),(0,s.default)(this,"callback",g),(0,s.default)(this,"queryMethod",p),(0,s.default)(this,"searchResultClass","htSearchResult")}static get PLUGIN_KEY(){return c}static get PLUGIN_PRIORITY(){return d}isEnabled(){return this.hot.getSettings()[c]}enablePlugin(){var e=this;if(this.enabled)return;const t=this.hot.getSettings()[c];this.updatePluginSettings(t),this.addHook("beforeRenderer",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return u(f,e,E).call(e,...n)}),super.enablePlugin()}disablePlugin(){var e=this;const t=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return u(f,e,E).call(e,...n)};this.hot.addHook("beforeRenderer",t),this.hot.addHookOnce("afterViewRender",()=>{this.hot.removeHook("beforeRenderer",t)}),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}query(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCallback(),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.getQueryMethod();const r=this.hot.countRows(),s=this.hot.countCols(),i=[],o=this.hot;return(0,a.rangeEach)(0,r-1,r=>{(0,a.rangeEach)(0,s-1,s=>{const a=this.hot.getDataAtCell(r,s),l=this.hot.getCellMeta(r,s),h=l.search.callback||t,u=(l.search.queryMethod||n)(e,a,l);if(u){const e={row:r,col:s,data:a};i.push(e)}h&&h(o,r,s,a,u)})}),i}getCallback(){return this.callback}setCallback(e){this.callback=e}getQueryMethod(){return this.queryMethod}setQueryMethod(e){this.queryMethod=e}getSearchResultClass(){return this.searchResultClass}setSearchResultClass(e){this.searchResultClass=e}updatePluginSettings(e){(0,o.isObject)(e)&&(e.searchResultClass&&this.setSearchResultClass(e.searchResultClass),e.queryMethod&&this.setQueryMethod(e.queryMethod),e.callback&&this.setCallback(e.callback))}destroy(){super.destroy()}}function E(e,t,n,r,s,i){const o=i.className||[];let a=[];"string"==typeof o?a=o.split(" "):a.push(...o),this.isEnabled()&&i.isSearchResult?a.includes(this.searchResultClass)||a.push(`${this.searchResultClass}`):a.includes(this.searchResultClass)&&a.splice(a.indexOf(this.searchResultClass),1),i.className=a.join(" ")}t.Search=m},38815:(e,t,n)=>{"use strict";var r=n(89035);e.exports=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},38844:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(38267);t.FullyVisibleColumnsCalculationType=r.FullyVisibleColumnsCalculationType;var s=n(9903);t.FullyVisibleRowsCalculationType=s.FullyVisibleRowsCalculationType;var i=n(76613);t.PartiallyVisibleColumnsCalculationType=i.PartiallyVisibleColumnsCalculationType;var o=n(36037);t.PartiallyVisibleRowsCalculationType=o.PartiallyVisibleRowsCalculationType;var a=n(34039);t.RenderedAllColumnsCalculationType=a.RenderedAllColumnsCalculationType;var l=n(20923);t.RenderedAllRowsCalculationType=l.RenderedAllRowsCalculationType;var h=n(58370);t.RenderedColumnsCalculationType=h.RenderedColumnsCalculationType;var u=n(15748);t.RenderedRowsCalculationType=u.RenderedRowsCalculationType;var c=n(78869);t.ViewportColumnsCalculator=c.ViewportColumnsCalculator,t.DEFAULT_COLUMN_WIDTH=c.DEFAULT_WIDTH;var d=n(86933);t.ViewportRowsCalculator=d.ViewportRowsCalculator},38868:(e,t,n)=>{"use strict";t.__esModule=!0,t.registerAllModules=function(){(0,r.registerAllEditors)(),(0,s.registerAllRenderers)(),(0,i.registerAllValidators)(),(0,o.registerAllCellTypes)(),(0,a.registerAllPlugins)()};var r=n(82002);t.registerAllEditors=r.registerAllEditors;var s=n(22564);t.registerAllRenderers=s.registerAllRenderers;var i=n(77099);t.registerAllValidators=i.registerAllValidators;var o=n(97869);t.registerAllCellTypes=o.registerAllCellTypes;var a=n(73416);t.registerAllPlugins=a.registerAllPlugins},38893:(e,t,n)=>{"use strict";t.__esModule=!0,t.registerAllFocusScopes=function(e){[r.focusGridScope].forEach(t=>t(e))};var r=n(22409)},38902:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(76847),s=n(15383);const i=t.CELL_TYPE="handsontable";t.HandsontableCellType={CELL_TYPE:i,editor:r.HandsontableEditor,renderer:s.handsontableRenderer}},38942:(e,t,n)=>{"use strict";t.__esModule=!0,t.addClass=u,t.addEvent=function(e,t,n){e.addEventListener(t,n,!1)},t.clearTextSelection=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;e.getSelection&&(e.getSelection().empty?e.getSelection().empty():e.getSelection().removeAllRanges&&e.getSelection().removeAllRanges())},t.closest=a,t.closestDown=function(e,t,n){const r=[];let s=e;for(;s&&(s=a(s,t,n),s&&(!n||n.contains(s)));)r.push(s),s=s.host&&s.nodeType===Node.DOCUMENT_FRAGMENT_NODE?s.host:s.parentNode;const i=r.length;return i?r[i-1]:null},t.empty=g,t.fastInnerHTML=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];p.test(t)?e.innerHTML=n?(0,r.sanitize)(t):t:f(e,t)},t.fastInnerText=f,t.findFirstParentWithClass=function(e,t){const n={element:void 0,classNames:[]};let r=e;for(;null!==r&&r!==e.ownerDocument.documentElement&&!n.element;){if("string"==typeof t&&r.classList.contains(t))n.element=r,n.classNames.push(t);else if(t instanceof RegExp){const e=Array.from(r.classList).filter(e=>t.test(e));e.length&&(n.element=r,n.classNames.push(...e))}r=r.parentElement}return n},t.getCaretPosition=function(e){if(e.selectionStart)return e.selectionStart;return 0},t.getCssTransform=function(e){let t;if(e.style.transform&&""!==(t=e.style.transform))return["transform",t];return-1},t.getFractionalScalingCompensation=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(!(0,i.isWindowsOS)())return 0;return Number.isInteger(e.defaultView.devicePixelRatio||1)?0:2},t.getFrameElement=o,t.getMaximumScrollLeft=function(e){return e.scrollWidth-e.clientWidth},t.getMaximumScrollTop=function(e){return e.scrollHeight-e.clientHeight},t.getParent=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,r=null,s=e;for(;null!==s;){if(n===t){r=s;break}s.host&&s.nodeType===Node.DOCUMENT_FRAGMENT_NODE?s=s.host:(n+=1,s=s.parentNode)}return r},t.getParentWindow=function(e){return o(e)&&e.parent},t.getScrollLeft=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return E(t);return e.scrollLeft},t.getScrollTop=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return m(t);return e.scrollTop},t.getScrollableElement=function(e){let t=e.ownerDocument,n=t?t.defaultView:void 0;t||(t=e.document?e.document:e,n=t.defaultView);const r=["auto","scroll"];let s=e.parentNode;for(;s&&s.style&&t.body!==s;){let{overflow:e,overflowX:t,overflowY:i}=s.style;if([e,t,i].includes("scroll"))return s;if(({overflow:e,overflowX:t,overflowY:i}=n.getComputedStyle(s)),r.includes(e)||r.includes(t)||r.includes(i))return s;if(s.clientHeight<=s.scrollHeight+1&&(r.includes(i)||r.includes(e)))return s;if(s.clientWidth<=s.scrollWidth+1&&(r.includes(t)||r.includes(e)))return s;s=s.parentNode}return n},t.getScrollbarWidth=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;void 0===w&&(w=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;const t=e.createElement("div");t.style.height="200px",t.style.width="100%";const n=e.createElement("div");!(0,i.isSafari)()||(0,i.isMobileBrowser)()||(0,i.isIpadOS)()||n.classList.add("htScrollbarSafariTest");n.style.boxSizing="content-box",n.style.height="150px",n.style.left="0px",n.style.overflow="hidden",n.style.position="absolute",n.style.top="0px",n.style.width="200px",n.style.visibility="hidden",n.appendChild(t),(e.body||e.documentElement).appendChild(n);const r=t.getBoundingClientRect().width;n.style.overflow="scroll";let s=t.getBoundingClientRect().width;r===s&&(s=n.clientWidth);return(e.body||e.documentElement).removeChild(n),parseFloat((r-s).toFixed(3))}(e));return w},t.getSelectionEndPosition=function(e){if(e.selectionEnd)return e.selectionEnd;return 0},t.getSelectionText=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;const t=e.document;let n="";e.getSelection?n=e.getSelection().toString():t.selection&&"Control"!==t.selection.type&&(n=t.selection.createRange().text);return n},t.getStyle=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;if(!e)return;if(e===n)return"width"===t?`${n.innerWidth}px`:"height"===t?`${n.innerHeight}px`:void 0;const r=e.style[t];if(""!==r&&void 0!==r)return r;const s=n.getComputedStyle(e);if(""!==s[t]&&void 0!==s[t])return s[t]},t.getTrimmingContainer=function(e){const t=e.ownerDocument,n=t.defaultView;let r=e.parentNode;for(;r&&r.style&&t.body!==r;){if("visible"!==r.style.overflow&&""!==r.style.overflow)return r;const e=n.getComputedStyle(r),t=["scroll","hidden","auto"],s=e.getPropertyValue("overflow"),i=e.getPropertyValue("overflow-y"),o=e.getPropertyValue("overflow-x");if(t.includes(s)||t.includes(i)||t.includes(o))return r;r=r.parentNode}return n},t.getWindowScrollLeft=E,t.getWindowScrollTop=m,t.hasAccessToParentWindow=function(e){return!!Object.getPrototypeOf(e.parent)},t.hasClass=function(e,t){if(void 0===e.classList||"string"!=typeof t||""===t)return!1;return e.classList.contains(t)},t.hasHorizontalScrollbar=function(e){if(e instanceof Window)return e.document.body.scrollWidth>e.innerWidth;return e.offsetHeight!==e.clientHeight},t.hasVerticalScrollbar=function(e){if(e instanceof Window)return e.document.body.scrollHeight>e.innerHeight;return e.offsetWidth!==e.clientWidth},t.hasZeroHeight=function(e){const t=e.ownerDocument.defaultView;let n=e;for(;n.parentNode;){if("0px"===n.style.height||"0"===n.style.height)return"hidden"===t.getComputedStyle(n).overflow;n=n.parentNode}return!1},t.index=function(e){let t=0,n=e;if(n.previousSibling)for(;n=n.previousSibling;)t+=1;return t},t.innerHeight=function(e){return e.clientHeight||e.innerHeight},t.innerWidth=function(e){return e.clientWidth||e.innerWidth},t.isChildOf=function(e,t){let n=e.parentNode,r=[];"string"==typeof t?r=e.defaultView?Array.prototype.slice.call(e.querySelectorAll(t),0):Array.prototype.slice.call(e.ownerDocument.querySelectorAll(t),0):r.push(t);for(;null!==n;){if(r.indexOf(n)>-1)return!0;n=n.parentNode}return!1},t.isDetached=function(e){return!e.parentNode},t.isHTMLElement=function(e){var t;const n=null==e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView.Element;return!!(n&&null!==n&&e instanceof n)},t.isInput=y,t.isInternalElement=function(e,t){const n=e.closest(".handsontable");return!!n&&(n.parentNode===t||n===t)},t.isOutsideInput=C,t.isVisible=function e(t){const n=t.ownerDocument.documentElement,r=t.ownerDocument.defaultView;let s=t;for(;s!==n;){if(null===s)return!1;if(s.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(s.host){if(s.host.impl)return e(s.host.impl);if(s.host)return e(s.host);throw new Error("Lost in Web Components world")}return!1}if("none"===r.getComputedStyle(s).display)return!1;s=s.parentNode}return!0},t.makeElementContentEditableAndSelectItsContent=v,t.matchesCSSRules=function(e,t){const{selectorText:n}=t;let r=!1;t.type===CSSRule.STYLE_RULE&&n&&(e.msMatchesSelector?r=e.msMatchesSelector(n):e.matches&&(r=e.matches(n)));return r},t.observeVisibilityChangeOnce=function(e,t){new IntersectionObserver((n,r)=>{n.forEach(n=>{n.isIntersecting&&null!==e.offsetParent&&(t(),r.unobserve(e))})},{root:e.ownerDocument.body}).observe(e)},t.offset=function(e){const t=e.ownerDocument,n=t.defaultView,r=t.documentElement;let s,i,o,a=e;s=a.offsetLeft,i=a.offsetTop,o=a;for(;(a=a.offsetParent)&&a!==t.body&&"offsetLeft"in a;)s+=a.offsetLeft,i+=a.offsetTop,o=a;o&&"fixed"===o.style.position&&(s+=n.pageXOffset||r.scrollLeft,i+=n.pageYOffset||r.scrollTop);return{left:s,top:i}},t.outerHeight=function(e){return e.getBoundingClientRect().height},t.outerWidth=function(e){return e.offsetWidth},t.overlayContainsElement=function(e,t,n){const r=n.parentElement.querySelector(`.ht_clone_${e}`);return r?r.contains(t):null},t.removeAttribute=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];"string"==typeof t?t=t.split(" "):t instanceof RegExp&&(t=[t]);const{regexFree:n,regexes:r}=h(t,!0);n.forEach(t=>{""!==t&&e.removeAttribute(t)}),r.forEach(t=>{e.getAttributeNames().forEach(n=>{t.test(n)&&e.removeAttribute(n)})})},t.removeClass=c,t.removeContentEditableFromElementAndDeselect=S,t.removeEvent=function(e,t,n){e.removeEventListener(t,n,!1)},t.removeTextNodes=function e(t){if(3===t.nodeType)t.parentNode.removeChild(t);else if(["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(t.nodeName)>-1){const n=t.childNodes;for(let t=n.length-1;t>=0;t--)e(n[t])}},t.resetCssTransform=function(e){e.style.transform&&""!==e.style.transform&&(e.style.transform="")},t.runWithSelectedContendEditableElement=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];v(e,n),t(),S(e,n)},t.selectElementIfAllowed=function(e){C(e.ownerDocument.activeElement)||e.select()},t.setAttribute=d,t.setCaretPosition=function(e,t,n){void 0===n&&(n=t);if(e.setSelectionRange){e.focus();try{e.setSelectionRange(t,n)}catch(r){const s=e.parentNode,i=s.style.display;s.style.display="block",e.setSelectionRange(t,n),s.style.display=i}}},t.setOverlayPosition=function(e,t,n){e.style.transform=`translate3d(${t},${n},0)`},n(22588),n(66182),n(81396),n(81124),n(88633);var r=n(16656),s=n(14089),i=n(58617);function o(e){return Object.getPrototypeOf(e.parent)&&e.frameElement}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;const{ELEMENT_NODE:r,DOCUMENT_FRAGMENT_NODE:s}=Node;let i=e;for(;null!=i&&i!==n;){const{nodeType:e,nodeName:n}=i;if(e===r&&(t.includes(n)||t.includes(i)))return i;const{host:o}=i;i=o&&e===s?o:i.parentNode}return null}function l(e){return e&&e.length?e.filter(e=>!!e):[]}function h(e,t){if(!e||!e.length)return t?{regexFree:[],regexes:[]}:[];const n=[],r=[];return r.push(...e.filter(e=>{const r=e instanceof RegExp;return r&&t&&n.push(e),!r})),t?{regexFree:r,regexes:n}:r}function u(e,t){"string"==typeof t&&(t=t.split(" ")),(t=l(t)).length>0&&e.classList.add(...t)}function c(e,t){"string"==typeof t?t=t.split(" "):t instanceof RegExp&&(t=[t]);let{regexFree:n,regexes:r}=h(t,!0);n=l(n),n.length>0&&e.classList.remove(...n),r.forEach(t=>{e.classList.forEach(n=>{t.test(n)&&e.classList.remove(n)})})}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;Array.isArray(t)||(t=[[t,n]]),t.forEach(t=>{Array.isArray(t)&&""!==t[0]&&e.setAttribute(...t)})}function g(e){let t;for(;t=e.lastChild;)e.removeChild(t)}const p=t.HTML_CHARACTERS=/(<(.*)>|&(.*);)/;function f(e,t){const n=e.firstChild;n&&3===n.nodeType&&null===n.nextSibling?n.textContent=t:(g(e),e.appendChild(e.ownerDocument.createTextNode(t)))}function m(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).scrollY}function E(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).scrollX}let w;function y(e){return e&&(["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function C(e){return y(e)&&!1===e.hasAttribute("data-hot-input")}function v(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=e.ownerDocument,i=r.createRange(),o=r.defaultView.getSelection();d(e,"contenteditable",!0),n&&d(e,...(0,s.A11Y_HIDDEN)()),t&&u(e,"invisibleSelection"),i.selectNodeContents(e),o.removeAllRanges(),o.addRange(i)}function S(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=e.ownerDocument.defaultView.getSelection();e.hasAttribute("aria-hidden")&&e.removeAttribute("aria-hidden"),n.removeAllRanges(),t&&c(e,"invisibleSelection"),e.removeAttribute("contenteditable")}},38972:(e,t,n)=>{"use strict";var r=n(89035);e.exports=!r(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},38990:(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_today";function l(e){const t=(0,s.default)(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame((0,s.default)().startOf("day"),"d")}(0,o.registerCondition)(a,l,{name:i.FILTERS_CONDITIONS_TODAY,inputsCount:0})},39193:(e,t,n)=>{"use strict";t.__esModule=!0,t.getListWithInsertedItems=function(e,t,n){return[...e.slice(0,t),...n,...e.slice(t)]},t.getListWithRemovedItems=function(e,t){return(0,r.arrayFilter)(e,e=>!1===t.includes(e))};var r=n(30152)},39250:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Alternation:()=>pt,CstParser:()=>Ar,EMPTY_ALT:()=>Tr,EOF:()=>tt,EarlyExitException:()=>Vn,EmbeddedActionsParser:()=>br,Flat:()=>lt,GAstVisitor:()=>Ct,Lexer:()=>Be,LexerDefinitionErrorType:()=>Fe,MismatchedTokenException:()=>Hn,NoViableAltException:()=>Fn,NonTerminal:()=>ot,NotAllInputParsedException:()=>Un,Option:()=>ht,Parser:()=>Nr,ParserDefinitionErrorType:()=>vr,Repetition:()=>dt,RepetitionMandatory:()=>ut,RepetitionMandatoryWithSeparator:()=>ct,RepetitionWithSeparator:()=>gt,Rule:()=>at,Terminal:()=>ft,VERSION:()=>r,assignOccurrenceIndices:()=>In,clearCache:()=>Vr,createSyntaxDiagramsCode:()=>Mr,createToken:()=>et,createTokenInstance:()=>nt,defaultGrammarResolverErrorProvider:()=>Tn,defaultGrammarValidatorErrorProvider:()=>_n,defaultLexerErrorProvider:()=>Ue,defaultParserErrorProvider:()=>Rn,generateParserFactory:()=>Fr,generateParserModule:()=>Ur,isRecognitionException:()=>kn,resolveGrammar:()=>bn,serializeGrammar:()=>mt,serializeProduction:()=>Et,tokenLabel:()=>We,tokenMatcher:()=>rt,tokenName:()=>Ye,validateGrammar:()=>Mn});var r="6.5.0";function s(e){return e&&0===e.length}function i(e){return null==e?[]:Object.keys(e)}function o(e){for(var t=[],n=Object.keys(e),r=0;r<n.length;r++)t.push(e[n[r]]);return t}function a(e,t){for(var n=[],r=0;r<e.length;r++)n.push(t.call(null,e[r],r));return n}function l(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];Array.isArray(r)?t=t.concat(l(r)):t.push(r)}return t}function h(e){return s(e)?void 0:e[0]}function u(e){var t=e&&e.length;return t?e[t-1]:void 0}function c(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t.call(null,e[n],n);else{if(!I(e))throw Error("non exhaustive match");var r=i(e);for(n=0;n<r.length;n++){var s=r[n],o=e[s];t.call(null,o,s)}}}function d(e){return"string"==typeof e}function g(e){return void 0===e}function p(e){return e instanceof Function}function f(e,t){return void 0===t&&(t=1),e.slice(t,e.length)}function m(e,t){return void 0===t&&(t=1),e.slice(0,e.length-t)}function E(e,t){var n=[];if(Array.isArray(e))for(var r=0;r<e.length;r++){var s=e[r];t.call(null,s)&&n.push(s)}return n}function w(e,t){return E(e,function(e){return!t(e)})}function y(e,t){for(var n=Object.keys(e),r={},s=0;s<n.length;s++){var i=n[s],o=e[i];t(o)&&(r[i]=o)}return r}function C(e,t){return!!I(e)&&e.hasOwnProperty(t)}function v(e,t){return void 0!==T(e,function(e){return e===t})}function S(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t}function R(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function T(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t.call(null,r))return r}}function _(e,t,n){for(var r=Array.isArray(e),s=r?e:o(e),a=r?[]:i(e),l=n,h=0;h<s.length;h++)l=t.call(null,l,s[h],r?h:a[h]);return l}function N(e){return w(e,function(e){return null==e})}function A(e,t){void 0===t&&(t=function(e){return e});var n=[];return _(e,function(e,r){var s=t(r);return v(n,s)?e:(n.push(s),e.concat(r))},[])}function b(e){return Array.isArray(e)}function M(e){return e instanceof RegExp}function I(e){return e instanceof Object}function O(e,t){for(var n=0;n<e.length;n++)if(!t(e[n],n))return!1;return!0}function x(e,t){return w(e,function(e){return v(t,e)})}function P(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return!0;return!1}function L(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r++)for(var s=t[r],o=i(s),a=0;a<o.length;a++){var l=o[a];e[l]=s[l]}return e}function D(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r++){var s=t[r];if(!g(s))for(var o=i(s),a=0;a<o.length;a++){var l=o[a];C(e,l)||(e[l]=s[l])}}return e}function k(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return D.apply(null,[{}].concat(e))}function H(e,t){var n={};return c(e,function(e){var r=t(e),s=n[r];s?s.push(e):n[r]=[e]}),n}function F(e,t){for(var n=R(e),r=i(t),s=0;s<r.length;s++){var o=r[s],a=t[o];n[o]=a}return n}function U(){}function V(e){return e}function B(e){console&&console.error&&console.error("Error: "+e)}function W(e){console&&console.warn&&console.warn("Warning: "+e)}function Y(){return"function"==typeof Map}function G(e){function t(){}t.prototype=e;var n=new t;function r(){return typeof n.bar}return r(),r(),e}function j(e){return e[e.length-1]}function z(e){var t=(new Date).getTime(),n=e();return{time:(new Date).getTime()-t,value:n}}var $=n(75713),K={},X=new $.RegExpParser;function q(e){var t=e.toString();if(K.hasOwnProperty(t))return K[t];var n=X.pattern(t);return K[t]=n,n}var Q,Z=(Q=function(e,t){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},Q(e,t)},function(e,t){function n(){this.constructor=e}Q(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),J="Complement Sets are not supported for first char optimization",ee='Unable to use "first char" lexer optimizations:\n';function te(e,t){void 0===t&&(t=!1);try{var n=q(e);return ne(n.value,{},n.flags.ignoreCase)}catch(n){if(n.message===J)t&&W(ee+"\tUnable to optimize: < "+e.toString()+" >\n\tComplement Sets cannot be automatically optimized.\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.");else{var r="";t&&(r="\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details."),B(ee+"\n\tFailed parsing: < "+e.toString()+" >\n\tUsing the regexp-to-ast library version: "+$.VERSION+"\n\tPlease open an issue at: https://github.com/bd82/regexp-to-ast/issues"+r)}}return[]}function ne(e,t,n){switch(e.type){case"Disjunction":for(var r=0;r<e.value.length;r++)ne(e.value[r],t,n);break;case"Alternative":var s=e.value;for(r=0;r<s.length;r++){var i=s[r];switch(i.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}var a=i;switch(a.type){case"Character":re(a.value,t,n);break;case"Set":if(!0===a.complement)throw Error(J);c(a.value,function(e){if("number"==typeof e)re(e,t,n);else{var r=e;if(!0===n)for(var s=r.from;s<=r.to;s++)re(s,t,n);else{for(s=r.from;s<=r.to&&s<Ne;s++)re(s,t,n);if(r.to>=Ne)for(var i=r.from>=Ne?r.from:Ne,o=r.to,a=Ae(i),l=Ae(o),h=a;h<=l;h++)t[h]=h}}});break;case"Group":ne(a.value,t,n);break;default:throw Error("Non Exhaustive Match")}var l=void 0!==a.quantifier&&0===a.quantifier.atLeast;if("Group"===a.type&&!1===ie(a)||"Group"!==a.type&&!1===l)break}break;default:throw Error("non exhaustive match!")}return o(t)}function re(e,t,n){var r=Ae(e);t[r]=r,!0===n&&function(e,t){var n=String.fromCharCode(e),r=n.toUpperCase();if(r!==n){t[s=Ae(r.charCodeAt(0))]=s}else{var s,i=n.toLowerCase();if(i!==n)t[s=Ae(i.charCodeAt(0))]=s}}(e,t)}function se(e,t){return T(e.value,function(e){if("number"==typeof e)return v(t,e);var n=e;return void 0!==T(t,function(e){return n.from<=e&&e<=n.to})})}function ie(e){return!(!e.quantifier||0!==e.quantifier.atLeast)||!!e.value&&(b(e.value)?O(e.value,ie):ie(e.value))}var oe=function(e){function t(t){var n=e.call(this)||this;return n.targetCharCodes=t,n.found=!1,n}return Z(t,e),t.prototype.visitChildren=function(t){if(!0!==this.found){switch(t.type){case"Lookahead":return void this.visitLookahead(t);case"NegativeLookahead":return void this.visitNegativeLookahead(t)}e.prototype.visitChildren.call(this,t)}},t.prototype.visitCharacter=function(e){v(this.targetCharCodes,e.value)&&(this.found=!0)},t.prototype.visitSet=function(e){e.complement?void 0===se(e,this.targetCharCodes)&&(this.found=!0):void 0!==se(e,this.targetCharCodes)&&(this.found=!0)},t}($.BaseRegExpVisitor);function ae(e,t){if(t instanceof RegExp){var n=q(t),r=new oe(e);return r.visit(n),r.found}return void 0!==T(t,function(t){return v(e,t.charCodeAt(0))})}var le=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),he="PATTERN",ue="defaultMode",ce="modes",de="boolean"==typeof new RegExp("(?:)").sticky;function ge(e,t){var n,r=(t=k(t,{useSticky:de,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r","\n"],tracer:function(e,t){return t()}})).tracer;r("initCharCodeToOptimizedIndexMap",function(){!function(){if(s(be)){be=new Array(65536);for(var e=0;e<65536;e++)be[e]=e>255?255+~~(e/255):e}}()}),r("Reject Lexer.NA",function(){n=w(e,function(e){return e[he]===Be.NA})});var i,o,l,h,u,f,m,E,y,S,R,T=!1;r("Transform Patterns",function(){T=!1,i=a(n,function(e){var n=e[he];if(M(n)){var r=n.source;return 1===r.length&&"^"!==r&&"$"!==r&&"."!==r?r:2!==r.length||"\\"!==r[0]||v(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],r[1])?t.useSticky?we(n):Ee(n):r[1]}if(p(n))return T=!0,{exec:n};if(C(n,"exec"))return T=!0,n;if("string"==typeof n){if(1===n.length)return n;var s=n.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),i=new RegExp(s);return t.useSticky?we(i):Ee(i)}throw Error("non exhaustive match")})}),r("misc mapping",function(){o=a(n,function(e){return e.tokenTypeIdx}),l=a(n,function(e){var t=e.GROUP;if(t!==Be.SKIPPED){if(d(t))return t;if(g(t))return!1;throw Error("non exhaustive match")}}),h=a(n,function(e){var t=e.LONGER_ALT;if(t)return function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}(n,t)}),u=a(n,function(e){return e.PUSH_MODE}),f=a(n,function(e){return C(e,"POP_MODE")})}),r("Line Terminator Handling",function(){var e=Te(t.lineTerminatorCharacters);m=a(n,function(e){return!1}),"onlyOffset"!==t.positionTracking&&(m=a(n,function(t){return C(t,"LINE_BREAKS")?t.LINE_BREAKS:!1===Re(t,e)?ae(e,t.PATTERN):void 0}))}),r("Misc Mapping #2",function(){E=a(n,Ce),y=a(i,ve),S=_(n,function(e,t){var n=t.GROUP;return d(n)&&n!==Be.SKIPPED&&(e[n]=[]),e},{}),R=a(i,function(e,t){return{pattern:i[t],longerAlt:h[t],canLineTerminator:m[t],isCustom:E[t],short:y[t],group:l[t],push:u[t],pop:f[t],tokenTypeIdx:o[t],tokenType:n[t]}})});var N=!0,A=[];return t.safeMode||r("First Char Optimization",function(){A=_(n,function(e,n,r){if("string"==typeof n.PATTERN){var i=Ae(n.PATTERN.charCodeAt(0));_e(e,i,R[r])}else if(b(n.START_CHARS_HINT)){var o;c(n.START_CHARS_HINT,function(t){var n=Ae("string"==typeof t?t.charCodeAt(0):t);o!==n&&(o=n,_e(e,n,R[r]))})}else if(M(n.PATTERN))if(n.PATTERN.unicode)N=!1,t.ensureOptimizations&&B(ee+"\tUnable to analyze < "+n.PATTERN.toString()+" > pattern.\n\tThe regexp unicode flag is not currently supported by the regexp-to-ast library.\n\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE");else{var a=te(n.PATTERN,t.ensureOptimizations);s(a)&&(N=!1),c(a,function(t){_e(e,t,R[r])})}else t.ensureOptimizations&&B(ee+"\tTokenType: <"+n.name+"> is using a custom token pattern without providing <start_chars_hint> parameter.\n\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE"),N=!1;return e},[])}),r("ArrayPacking",function(){A=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(void 0!==r?r:void 0)}return t}(A)}),{emptyGroups:S,patternIdxToConfig:R,charCodeToPatternIdxToConfig:A,hasCustom:T,canBeOptimized:N}}function pe(e,t){var n=[],r=function(e){var t=E(e,function(e){return!C(e,he)}),n=a(t,function(e){return{message:"Token Type: ->"+e.name+"<- missing static 'PATTERN' property",type:Fe.MISSING_PATTERN,tokenTypes:[e]}}),r=x(e,t);return{errors:n,valid:r}}(e);n=n.concat(r.errors);var s=function(e){var t=E(e,function(e){var t=e[he];return!(M(t)||p(t)||C(t,"exec")||d(t))}),n=a(t,function(e){return{message:"Token Type: ->"+e.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:Fe.INVALID_PATTERN,tokenTypes:[e]}}),r=x(e,t);return{errors:n,valid:r}}(r.valid),i=s.valid;return n=(n=n.concat(s.errors)).concat(function(e){var t=[],n=E(e,function(e){return M(e[he])});return t=t.concat(function(e){var t=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.found=!1,t}return le(t,e),t.prototype.visitEndAnchor=function(e){this.found=!0},t}($.BaseRegExpVisitor),n=E(e,function(e){var n=e[he];try{var r=q(n),s=new t;return s.visit(r),s.found}catch(e){return fe.test(n.source)}}),r=a(n,function(e){return{message:"Unexpected RegExp Anchor Error:\n\tToken Type: ->"+e.name+"<- static 'PATTERN' cannot contain end of input anchor '$'\n\tSee sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS\tfor details.",type:Fe.EOI_ANCHOR_FOUND,tokenTypes:[e]}});return r}(n)),t=t.concat(function(e){var t=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.found=!1,t}return le(t,e),t.prototype.visitStartAnchor=function(e){this.found=!0},t}($.BaseRegExpVisitor),n=E(e,function(e){var n=e[he];try{var r=q(n),s=new t;return s.visit(r),s.found}catch(e){return me.test(n.source)}}),r=a(n,function(e){return{message:"Unexpected RegExp Anchor Error:\n\tToken Type: ->"+e.name+"<- static 'PATTERN' cannot contain start of input anchor '^'\n\tSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS\tfor details.",type:Fe.SOI_ANCHOR_FOUND,tokenTypes:[e]}});return r}(n)),t=t.concat(function(e){var t=E(e,function(e){var t=e[he];return t instanceof RegExp&&(t.multiline||t.global)}),n=a(t,function(e){return{message:"Token Type: ->"+e.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:Fe.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[e]}});return n}(n)),t=t.concat(function(e){var t=[],n=a(e,function(n){return _(e,function(e,r){return n.PATTERN.source!==r.PATTERN.source||v(t,r)||r.PATTERN===Be.NA||(t.push(r),e.push(r)),e},[])}),r=a(E(n=N(n),function(e){return e.length>1}),function(e){var t=a(e,function(e){return e.name});return{message:"The same RegExp pattern ->"+h(e).PATTERN+"<-has been used in all of the following Token Types: "+t.join(", ")+" <-",type:Fe.DUPLICATE_PATTERNS_FOUND,tokenTypes:e}});return r}(n)),t=t.concat(function(e){var t=E(e,function(e){return e[he].test("")}),n=a(t,function(e){return{message:"Token Type: ->"+e.name+"<- static 'PATTERN' must not match an empty string",type:Fe.EMPTY_MATCH_PATTERN,tokenTypes:[e]}});return n}(n)),t}(i)),n=n.concat(function(e){var t=E(e,function(e){if(!C(e,"GROUP"))return!1;var t=e.GROUP;return t!==Be.SKIPPED&&t!==Be.NA&&!d(t)}),n=a(t,function(e){return{message:"Token Type: ->"+e.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:Fe.INVALID_GROUP_TYPE_FOUND,tokenTypes:[e]}});return n}(i)),n=n.concat(function(e,t){var n=E(e,function(e){return void 0!==e.PUSH_MODE&&!v(t,e.PUSH_MODE)}),r=a(n,function(e){return{message:"Token Type: ->"+e.name+"<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->"+e.PUSH_MODE+"<-which does not exist",type:Fe.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[e]}});return r}(i,t)),n=n.concat(function(e){var t=[],n=_(e,function(e,t,n){var r,s=t.PATTERN;return s===Be.NA||(d(s)?e.push({str:s,idx:n,tokenType:t}):M(s)&&(r=s,void 0===T([".","\\","[","]","|","^","$","(",")","?","*","+","{"],function(e){return-1!==r.source.indexOf(e)}))&&e.push({str:s.source,idx:n,tokenType:t})),e},[]);return c(e,function(e,r){c(n,function(n){var s=n.str,i=n.idx,o=n.tokenType;if(r<i&&function(e,t){if(M(t)){var n=t.exec(e);return null!==n&&0===n.index}if(p(t))return t(e,0,[],{});if(C(t,"exec"))return t.exec(e,0,[],{});if("string"==typeof t)return t===e;throw Error("non exhaustive match")}(s,e.PATTERN)){var a="Token: ->"+o.name+"<- can never be matched.\nBecause it appears AFTER the Token Type ->"+e.name+"<-in the lexer's definition.\nSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNREACHABLE";t.push({message:a,type:Fe.UNREACHABLE_PATTERN,tokenTypes:[e,o]})}})}),t}(i)),n}var fe=/[^\\][\$]/;var me=/[^\\[][\^]|^\^/;function Ee(e){var t=e.ignoreCase?"i":"";return new RegExp("^(?:"+e.source+")",t)}function we(e){var t=e.ignoreCase?"iy":"y";return new RegExp(""+e.source,t)}function ye(e,t,n){var r=[],s=!1,o=w(N(l(function(e,t){for(var n=[],r=i(e),s=0;s<r.length;s++){var o=r[s];n.push(t.call(null,e[o],o))}return n}(e.modes,function(e){return e}))),function(e){return e[he]===Be.NA}),a=Te(n);return t&&c(o,function(e){var t=Re(e,a);if(!1!==t){var n=function(e,t){if(t.issue===Fe.IDENTIFY_TERMINATOR)return"Warning: unable to identify line terminator usage in pattern.\n\tThe problem is in the <"+e.name+"> Token Type\n\t Root cause: "+t.errMsg+".\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR";if(t.issue===Fe.CUSTOM_LINE_BREAK)return"Warning: A Custom Token Pattern should specify the <line_breaks> option.\n\tThe problem is in the <"+e.name+"> Token Type\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}(e,t),i={message:n,type:t.issue,tokenType:e};r.push(i)}else C(e,"LINE_BREAKS")?!0===e.LINE_BREAKS&&(s=!0):ae(a,e.PATTERN)&&(s=!0)}),t&&!s&&r.push({message:"Warning: No LINE_BREAKS Found.\n\tThis Lexer has been defined to track line and column information,\n\tBut none of the Token Types can be identified as matching a line terminator.\n\tSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n\tfor details.",type:Fe.NO_LINE_BREAKS_FLAGS}),r}function Ce(e){var t=e.PATTERN;if(M(t))return!1;if(p(t))return!0;if(C(t,"exec"))return!0;if(d(t))return!1;throw Error("non exhaustive match")}function ve(e){return!(!d(e)||1!==e.length)&&e.charCodeAt(0)}var Se={test:function(e){for(var t=e.length,n=this.lastIndex;n<t;n++){var r=e.charCodeAt(n);if(10===r)return this.lastIndex=n+1,!0;if(13===r)return 10===e.charCodeAt(n+1)?this.lastIndex=n+2:this.lastIndex=n+1,!0}return!1},lastIndex:0};function Re(e,t){if(C(e,"LINE_BREAKS"))return!1;if(M(e.PATTERN)){try{ae(t,e.PATTERN)}catch(e){return{issue:Fe.IDENTIFY_TERMINATOR,errMsg:e.message}}return!1}if(d(e.PATTERN))return!1;if(Ce(e))return{issue:Fe.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}function Te(e){return a(e,function(e){return d(e)&&e.length>0?e.charCodeAt(0):e})}function _e(e,t,n){void 0===e[t]?e[t]=[n]:e[t].push(n)}var Ne=256;function Ae(e){return e<Ne?e:be[e]}var be=[];function Me(e,t){var n=e.tokenTypeIdx;return n===t.tokenTypeIdx||!0===t.isParent&&!0===t.categoryMatchesMap[n]}function Ie(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}var Oe=1,xe={};function Pe(e){var t=function(e){var t=S(e),n=e,r=!0;for(;r;){var i=x(n=N(l(a(n,function(e){return e.CATEGORIES}))),t);t=t.concat(i),s(i)?r=!1:n=i}return t}(e);!function(e){c(e,function(e){De(e)||(xe[Oe]=e,e.tokenTypeIdx=Oe++),ke(e)&&!b(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),ke(e)||(e.CATEGORIES=[]),C(e,"categoryMatches")||(e.categoryMatches=[]),function(e){return C(e,"categoryMatchesMap")}(e)||(e.categoryMatchesMap={})})}(t),function(e){c(e,function(e){Le([],e)})}(t),function(e){c(e,function(e){e.categoryMatches=[],c(e.categoryMatchesMap,function(t,n){e.categoryMatches.push(xe[n].tokenTypeIdx)})})}(t),c(t,function(e){e.isParent=e.categoryMatches.length>0})}function Le(e,t){c(e,function(e){t.categoryMatchesMap[e.tokenTypeIdx]=!0}),c(t.CATEGORIES,function(n){var r=e.concat(t);v(r,n)||Le(r,n)})}function De(e){return C(e,"tokenTypeIdx")}function ke(e){return C(e,"CATEGORIES")}function He(e){return C(e,"tokenTypeIdx")}var Fe,Ue={buildUnableToPopLexerModeMessage:function(e){return"Unable to pop Lexer Mode after encountering Token ->"+e.image+"<- The Mode Stack is empty"},buildUnexpectedCharactersMessage:function(e,t,n,r,s){return"unexpected character: ->"+e.charAt(t)+"<- at offset: "+t+", skipped "+n+" characters."}};!function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK"}(Fe||(Fe={}));var Ve={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:["\n","\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:Ue,traceInitPerf:!1,skipValidations:!1};Object.freeze(Ve);var Be=function(){function e(e,t){var n=this;if(void 0===t&&(t=Ve),this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.config=void 0,this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},"boolean"==typeof t)throw Error("The second argument to the Lexer constructor is now an ILexerConfig Object.\na boolean 2nd argument is no longer supported");this.config=F(Ve,t);var r=this.config.traceInitPerf;!0===r?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):"number"==typeof r&&(this.traceInitMaxIdent=r,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",function(){var r,o=!0;n.TRACE_INIT("Lexer Config handling",function(){if(n.config.lineTerminatorsPattern===Ve.lineTerminatorsPattern)n.config.lineTerminatorsPattern=Se;else if(n.config.lineTerminatorCharacters===Ve.lineTerminatorCharacters)throw Error("Error: Missing <lineTerminatorCharacters> property on the Lexer config.\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS");if(t.safeMode&&t.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');n.trackStartLines=/full|onlyStart/i.test(n.config.positionTracking),n.trackEndLines=/full/i.test(n.config.positionTracking),b(e)?((r={modes:{}}).modes[ue]=S(e),r[ue]=ue):(o=!1,r=R(e))}),!1===n.config.skipValidations&&(n.TRACE_INIT("performRuntimeChecks",function(){n.lexerDefinitionErrors=n.lexerDefinitionErrors.concat(function(e){var t=[];return C(e,ue)||t.push({message:"A MultiMode Lexer cannot be initialized without a <"+ue+"> property in its definition\n",type:Fe.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),C(e,ce)||t.push({message:"A MultiMode Lexer cannot be initialized without a <modes> property in its definition\n",type:Fe.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),C(e,ce)&&C(e,ue)&&!C(e.modes,e.defaultMode)&&t.push({message:"A MultiMode Lexer cannot be initialized with a "+ue+": <"+e.defaultMode+">which does not exist\n",type:Fe.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),C(e,ce)&&c(e.modes,function(e,n){c(e,function(e,r){g(e)&&t.push({message:"A Lexer cannot be initialized using an undefined Token Type. Mode:<"+n+"> at index: <"+r+">\n",type:Fe.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})})}),t}(r,n.trackStartLines,n.config.lineTerminatorCharacters))}),n.TRACE_INIT("performWarningRuntimeChecks",function(){n.lexerDefinitionWarning=n.lexerDefinitionWarning.concat(ye(r,n.trackStartLines,n.config.lineTerminatorCharacters))})),r.modes=r.modes?r.modes:{},c(r.modes,function(e,t){r.modes[t]=w(e,function(e){return g(e)})});var l=i(r.modes);if(c(r.modes,function(e,r){n.TRACE_INIT("Mode: <"+r+"> processing",function(){var i;(n.modes.push(r),!1===n.config.skipValidations&&n.TRACE_INIT("validatePatterns",function(){n.lexerDefinitionErrors=n.lexerDefinitionErrors.concat(pe(e,l))}),s(n.lexerDefinitionErrors))&&(Pe(e),n.TRACE_INIT("analyzeTokenTypes",function(){i=ge(e,{lineTerminatorCharacters:n.config.lineTerminatorCharacters,positionTracking:t.positionTracking,ensureOptimizations:t.ensureOptimizations,safeMode:t.safeMode,tracer:n.TRACE_INIT.bind(n)})}),n.patternIdxToConfig[r]=i.patternIdxToConfig,n.charCodeToPatternIdxToConfig[r]=i.charCodeToPatternIdxToConfig,n.emptyGroups=F(n.emptyGroups,i.emptyGroups),n.hasCustom=i.hasCustom||n.hasCustom,n.canModeBeOptimized[r]=i.canBeOptimized)})}),n.defaultMode=r.defaultMode,!s(n.lexerDefinitionErrors)&&!n.config.deferDefinitionErrorsHandling){var h=a(n.lexerDefinitionErrors,function(e){return e.message}).join("-----------------------\n");throw new Error("Errors detected in definition of Lexer:\n"+h)}c(n.lexerDefinitionWarning,function(e){W(e.message)}),n.TRACE_INIT("Choosing sub-methods implementations",function(){if(de?(n.chopInput=V,n.match=n.matchWithTest):(n.updateLastIndex=U,n.match=n.matchWithExec),o&&(n.handleModes=U),!1===n.trackStartLines&&(n.computeNewColumn=V),!1===n.trackEndLines&&(n.updateTokenEndLineColumnLocation=U),/full/i.test(n.config.positionTracking))n.createTokenInstance=n.createFullToken;else if(/onlyStart/i.test(n.config.positionTracking))n.createTokenInstance=n.createStartOnlyToken;else{if(!/onlyOffset/i.test(n.config.positionTracking))throw Error('Invalid <positionTracking> config option: "'+n.config.positionTracking+'"');n.createTokenInstance=n.createOffsetOnlyToken}n.hasCustom?(n.addToken=n.addTokenUsingPush,n.handlePayload=n.handlePayloadWithCustom):(n.addToken=n.addTokenUsingMemberAccess,n.handlePayload=n.handlePayloadNoCustom)}),n.TRACE_INIT("Failed Optimization Warnings",function(){var e=_(n.canModeBeOptimized,function(e,t,n){return!1===t&&e.push(n),e},[]);if(t.ensureOptimizations&&!s(e))throw Error("Lexer Modes: < "+e.join(", ")+' > cannot be optimized.\n\t Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.\n\t Or inspect the console log for details on how to resolve these issues.')}),n.TRACE_INIT("clearRegExpParserCache",function(){K={}}),n.TRACE_INIT("toFastProperties",function(){G(n)})})}return e.prototype.tokenize=function(e,t){if(void 0===t&&(t=this.defaultMode),!s(this.lexerDefinitionErrors)){var n=a(this.lexerDefinitionErrors,function(e){return e.message}).join("-----------------------\n");throw new Error("Unable to Tokenize because Errors detected in definition of Lexer:\n"+n)}return this.tokenizeInternal(e,t)},e.prototype.tokenizeInternal=function(e,t){var n,r,s,o,a,l,h,d,g,p,f,m,E,w,y,C,v=this,S=e,R=S.length,T=0,_=0,N=this.hasCustom?0:Math.floor(e.length/10),A=new Array(N),M=[],I=this.trackStartLines?1:void 0,O=this.trackStartLines?1:void 0,x=(y=this.emptyGroups,C={},c(i(y),function(e){if(!b(y[e]))throw Error("non exhaustive match");C[e]=[]}),C),P=this.trackStartLines,L=this.config.lineTerminatorsPattern,D=0,k=[],H=[],F=[],U=[];Object.freeze(U);var V=void 0;function B(){return k}function W(e){var t=Ae(e),n=H[t];return void 0===n?U:n}var Y,G=function(e){if(1===F.length&&void 0===e.tokenType.PUSH_MODE){var t=v.config.errorMessageProvider.buildUnableToPopLexerModeMessage(e);M.push({offset:e.startOffset,line:void 0!==e.startLine?e.startLine:void 0,column:void 0!==e.startColumn?e.startColumn:void 0,length:e.image.length,message:t})}else{F.pop();var n=u(F);k=v.patternIdxToConfig[n],H=v.charCodeToPatternIdxToConfig[n],D=k.length;var r=v.canModeBeOptimized[n]&&!1===v.config.safeMode;V=H&&r?W:B}};function j(e){F.push(e),H=this.charCodeToPatternIdxToConfig[e],k=this.patternIdxToConfig[e],D=k.length,D=k.length;var t=this.canModeBeOptimized[e]&&!1===this.config.safeMode;V=H&&t?W:B}for(j.call(this,t);T<R;){a=null;var z=S.charCodeAt(T),$=V(z),K=$.length;for(n=0;n<K;n++){var X=(Y=$[n]).pattern;if(l=null,!1!==(ie=Y.short)?z===ie&&(a=X):!0===Y.isCustom?null!==(w=X.exec(S,T,A,x))?(a=w[0],void 0!==w.payload&&(l=w.payload)):a=null:(this.updateLastIndex(X,T),a=this.match(X,e,T)),null!==a){if(void 0!==(o=Y.longerAlt)){var q=k[o],Q=q.pattern;h=null,!0===q.isCustom?null!==(w=Q.exec(S,T,A,x))?(s=w[0],void 0!==w.payload&&(h=w.payload)):s=null:(this.updateLastIndex(Q,T),s=this.match(Q,e,T)),s&&s.length>a.length&&(a=s,l=h,Y=q)}break}}if(null!==a){if(d=a.length,void 0!==(g=Y.group)&&(p=Y.tokenTypeIdx,f=this.createTokenInstance(a,T,p,Y.tokenType,I,O,d),this.handlePayload(f,l),!1===g?_=this.addToken(A,_,f):x[g].push(f)),e=this.chopInput(e,d),T+=d,O=this.computeNewColumn(O,d),!0===P&&!0===Y.canLineTerminator){var Z=0,J=void 0,ee=void 0;L.lastIndex=0;do{!0===(J=L.test(a))&&(ee=L.lastIndex-1,Z++)}while(!0===J);0!==Z&&(I+=Z,O=d-ee,this.updateTokenEndLineColumnLocation(f,g,ee,Z,I,O,d))}this.handleModes(Y,G,j,f)}else{for(var te=T,ne=I,re=O,se=!1;!se&&T<R;)for(S.charCodeAt(T),e=this.chopInput(e,1),T++,r=0;r<D;r++){var ie,oe=k[r];X=oe.pattern;if(!1!==(ie=oe.short)?S.charCodeAt(T)===ie&&(se=!0):!0===oe.isCustom?se=null!==X.exec(S,T,A,x):(this.updateLastIndex(X,T),se=null!==X.exec(e)),!0===se)break}m=T-te,E=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(S,te,m,ne,re),M.push({offset:te,line:ne,column:re,length:m,message:E})}}return this.hasCustom||(A.length=_),{tokens:A,groups:x,errors:M}},e.prototype.handleModes=function(e,t,n,r){if(!0===e.pop){var s=e.push;t(r),void 0!==s&&n.call(this,s)}else void 0!==e.push&&n.call(this,e.push)},e.prototype.chopInput=function(e,t){return e.substring(t)},e.prototype.updateLastIndex=function(e,t){e.lastIndex=t},e.prototype.updateTokenEndLineColumnLocation=function(e,t,n,r,s,i,o){var a,l;void 0!==t&&(l=(a=n===o-1)?-1:0,1===r&&!0===a||(e.endLine=s+l,e.endColumn=i-1-l))},e.prototype.computeNewColumn=function(e,t){return e+t},e.prototype.createTokenInstance=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return null},e.prototype.createOffsetOnlyToken=function(e,t,n,r){return{image:e,startOffset:t,tokenTypeIdx:n,tokenType:r}},e.prototype.createStartOnlyToken=function(e,t,n,r,s,i){return{image:e,startOffset:t,startLine:s,startColumn:i,tokenTypeIdx:n,tokenType:r}},e.prototype.createFullToken=function(e,t,n,r,s,i,o){return{image:e,startOffset:t,endOffset:t+o-1,startLine:s,endLine:s,startColumn:i,endColumn:i+o-1,tokenTypeIdx:n,tokenType:r}},e.prototype.addToken=function(e,t,n){return 666},e.prototype.addTokenUsingPush=function(e,t,n){return e.push(n),t},e.prototype.addTokenUsingMemberAccess=function(e,t,n){return e[t]=n,++t},e.prototype.handlePayload=function(e,t){},e.prototype.handlePayloadNoCustom=function(e,t){},e.prototype.handlePayloadWithCustom=function(e,t){null!==t&&(e.payload=t)},e.prototype.match=function(e,t,n){return null},e.prototype.matchWithTest=function(e,t,n){return!0===e.test(t)?t.substring(n,e.lastIndex):null},e.prototype.matchWithExec=function(e,t){var n=e.exec(t);return null!==n?n[0]:n},e.prototype.TRACE_INIT=function(e,t){if(!0===this.traceInitPerf){this.traceInitIndent++;var n=new Array(this.traceInitIndent+1).join("\t");this.traceInitIndent<this.traceInitMaxIdent&&console.log(n+"--\x3e <"+e+">");var r=z(t),s=r.time,i=r.value,o=s>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&o(n+"<-- <"+e+"> time: "+s+"ms"),this.traceInitIndent--,i}return t()},e.SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",e.NA=/NOT_APPLICABLE/,e}();function We(e){return Ge(e)?e.LABEL:e.name}function Ye(e){return e.name}function Ge(e){return d(e.LABEL)&&""!==e.LABEL}var je="parent",ze="categories",$e="label",Ke="group",Xe="push_mode",qe="pop_mode",Qe="longer_alt",Ze="line_breaks",Je="start_chars_hint";function et(e){return function(e){var t=e.pattern,n={};n.name=e.name,g(t)||(n.PATTERN=t);if(C(e,je))throw"The parent property is no longer supported.\nSee: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details.";C(e,ze)&&(n.CATEGORIES=e[ze]);Pe([n]),C(e,$e)&&(n.LABEL=e[$e]);C(e,Ke)&&(n.GROUP=e[Ke]);C(e,qe)&&(n.POP_MODE=e[qe]);C(e,Xe)&&(n.PUSH_MODE=e[Xe]);C(e,Qe)&&(n.LONGER_ALT=e[Qe]);C(e,Ze)&&(n.LINE_BREAKS=e[Ze]);C(e,Je)&&(n.START_CHARS_HINT=e[Je]);return n}(e)}var tt=et({name:"EOF",pattern:Be.NA});function nt(e,t,n,r,s,i,o,a){return{image:t,startOffset:n,endOffset:r,startLine:s,endLine:i,startColumn:o,endColumn:a,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function rt(e,t){return Me(e,t)}Pe([tt]);var st=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),it=function(){function e(e){this.definition=e}return e.prototype.accept=function(e){e.visit(this),c(this.definition,function(t){t.accept(e)})},e}(),ot=function(e){function t(t){var n=e.call(this,[])||this;return n.idx=1,L(n,y(t,function(e){return void 0!==e})),n}return st(t,e),Object.defineProperty(t.prototype,"definition",{get:function(){return void 0!==this.referencedRule?this.referencedRule.definition:[]},set:function(e){},enumerable:!0,configurable:!0}),t.prototype.accept=function(e){e.visit(this)},t}(it),at=function(e){function t(t){var n=e.call(this,t.definition)||this;return n.orgText="",L(n,y(t,function(e){return void 0!==e})),n}return st(t,e),t}(it),lt=function(e){function t(t){var n=e.call(this,t.definition)||this;return n.ignoreAmbiguities=!1,L(n,y(t,function(e){return void 0!==e})),n}return st(t,e),t}(it),ht=function(e){function t(t){var n=e.call(this,t.definition)||this;return n.idx=1,L(n,y(t,function(e){return void 0!==e})),n}return st(t,e),t}(it),ut=function(e){function t(t){var n=e.call(this,t.definition)||this;return n.idx=1,L(n,y(t,function(e){return void 0!==e})),n}return st(t,e),t}(it),ct=function(e){function t(t){var n=e.call(this,t.definition)||this;return n.idx=1,L(n,y(t,function(e){return void 0!==e})),n}return st(t,e),t}(it),dt=function(e){function t(t){var n=e.call(this,t.definition)||this;return n.idx=1,L(n,y(t,function(e){return void 0!==e})),n}return st(t,e),t}(it),gt=function(e){function t(t){var n=e.call(this,t.definition)||this;return n.idx=1,L(n,y(t,function(e){return void 0!==e})),n}return st(t,e),t}(it),pt=function(e){function t(t){var n=e.call(this,t.definition)||this;return n.idx=1,n.ignoreAmbiguities=!1,n.hasPredicates=!1,L(n,y(t,function(e){return void 0!==e})),n}return st(t,e),t}(it),ft=function(){function e(e){this.idx=1,L(this,y(e,function(e){return void 0!==e}))}return e.prototype.accept=function(e){e.visit(this)},e}();function mt(e){return a(e,Et)}function Et(e){function t(e){return a(e,Et)}if(e instanceof ot)return{type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(e instanceof lt)return{type:"Flat",definition:t(e.definition)};if(e instanceof ht)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof ut)return{type:"RepetitionMandatory",name:e.name,idx:e.idx,definition:t(e.definition)};if(e instanceof ct)return{type:"RepetitionMandatoryWithSeparator",name:e.name,idx:e.idx,separator:Et(new ft({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof gt)return{type:"RepetitionWithSeparator",name:e.name,idx:e.idx,separator:Et(new ft({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof dt)return{type:"Repetition",name:e.name,idx:e.idx,definition:t(e.definition)};if(e instanceof pt)return{type:"Alternation",name:e.name,idx:e.idx,definition:t(e.definition)};if(e instanceof ft){var n={type:"Terminal",name:e.terminalType.name,label:We(e.terminalType),idx:e.idx},r=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(n.pattern=M(r)?r.source:r),n}if(e instanceof at)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}var wt=function(){function e(){}return e.prototype.walk=function(e,t){var n=this;void 0===t&&(t=[]),c(e.definition,function(r,s){var i=f(e.definition,s+1);if(r instanceof ot)n.walkProdRef(r,i,t);else if(r instanceof ft)n.walkTerminal(r,i,t);else if(r instanceof lt)n.walkFlat(r,i,t);else if(r instanceof ht)n.walkOption(r,i,t);else if(r instanceof ut)n.walkAtLeastOne(r,i,t);else if(r instanceof ct)n.walkAtLeastOneSep(r,i,t);else if(r instanceof gt)n.walkManySep(r,i,t);else if(r instanceof dt)n.walkMany(r,i,t);else{if(!(r instanceof pt))throw Error("non exhaustive match");n.walkOr(r,i,t)}})},e.prototype.walkTerminal=function(e,t,n){},e.prototype.walkProdRef=function(e,t,n){},e.prototype.walkFlat=function(e,t,n){var r=t.concat(n);this.walk(e,r)},e.prototype.walkOption=function(e,t,n){var r=t.concat(n);this.walk(e,r)},e.prototype.walkAtLeastOne=function(e,t,n){var r=[new ht({definition:e.definition})].concat(t,n);this.walk(e,r)},e.prototype.walkAtLeastOneSep=function(e,t,n){var r=yt(e,t,n);this.walk(e,r)},e.prototype.walkMany=function(e,t,n){var r=[new ht({definition:e.definition})].concat(t,n);this.walk(e,r)},e.prototype.walkManySep=function(e,t,n){var r=yt(e,t,n);this.walk(e,r)},e.prototype.walkOr=function(e,t,n){var r=this,s=t.concat(n);c(e.definition,function(e){var t=new lt({definition:[e]});r.walk(t,s)})},e}();function yt(e,t,n){return[new ht({definition:[new ft({terminalType:e.separator})].concat(e.definition)})].concat(t,n)}var Ct=function(){function e(){}return e.prototype.visit=function(e){var t=e;switch(t.constructor){case ot:return this.visitNonTerminal(t);case lt:return this.visitFlat(t);case ht:return this.visitOption(t);case ut:return this.visitRepetitionMandatory(t);case ct:return this.visitRepetitionMandatoryWithSeparator(t);case gt:return this.visitRepetitionWithSeparator(t);case dt:return this.visitRepetition(t);case pt:return this.visitAlternation(t);case ft:return this.visitTerminal(t);case at:return this.visitRule(t);default:throw Error("non exhaustive match")}},e.prototype.visitNonTerminal=function(e){},e.prototype.visitFlat=function(e){},e.prototype.visitOption=function(e){},e.prototype.visitRepetition=function(e){},e.prototype.visitRepetitionMandatory=function(e){},e.prototype.visitRepetitionMandatoryWithSeparator=function(e){},e.prototype.visitRepetitionWithSeparator=function(e){},e.prototype.visitAlternation=function(e){},e.prototype.visitTerminal=function(e){},e.prototype.visitRule=function(e){},e}(),vt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function St(e,t){return void 0===t&&(t=[]),!!(e instanceof ht||e instanceof dt||e instanceof gt)||(e instanceof pt?P(e.definition,function(e){return St(e,t)}):!(e instanceof ot&&v(t,e))&&(e instanceof it&&(e instanceof ot&&t.push(e),O(e.definition,function(e){return St(e,t)}))))}function Rt(e){if(e instanceof ot)return"SUBRULE";if(e instanceof ht)return"OPTION";if(e instanceof pt)return"OR";if(e instanceof ut)return"AT_LEAST_ONE";if(e instanceof ct)return"AT_LEAST_ONE_SEP";if(e instanceof gt)return"MANY_SEP";if(e instanceof dt)return"MANY";if(e instanceof ft)return"CONSUME";throw Error("non exhaustive match")}var Tt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.separator="-",t.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]},t}return vt(t,e),t.prototype.reset=function(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}},t.prototype.visitTerminal=function(e){var t=e.terminalType.name+this.separator+"Terminal";C(this.dslMethods,t)||(this.dslMethods[t]=[]),this.dslMethods[t].push(e)},t.prototype.visitNonTerminal=function(e){var t=e.nonTerminalName+this.separator+"Terminal";C(this.dslMethods,t)||(this.dslMethods[t]=[]),this.dslMethods[t].push(e)},t.prototype.visitOption=function(e){this.dslMethods.option.push(e)},t.prototype.visitRepetitionWithSeparator=function(e){this.dslMethods.repetitionWithSeparator.push(e)},t.prototype.visitRepetitionMandatory=function(e){this.dslMethods.repetitionMandatory.push(e)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)},t.prototype.visitRepetition=function(e){this.dslMethods.repetition.push(e)},t.prototype.visitAlternation=function(e){this.dslMethods.alternation.push(e)},t}(Ct),_t=new Tt;function Nt(e){if(e instanceof ot)return Nt(e.referencedRule);if(e instanceof ft)return[e.terminalType];if(function(e){return e instanceof lt||e instanceof ht||e instanceof dt||e instanceof ut||e instanceof ct||e instanceof gt||e instanceof ft||e instanceof at}(e))return function(e){var t,n=[],r=e.definition,s=0,i=r.length>s,o=!0;for(;i&&o;)o=St(t=r[s]),n=n.concat(Nt(t)),s+=1,i=r.length>s;return A(n)}(e);if(function(e){return e instanceof pt}(e))return function(e){var t=a(e.definition,function(e){return Nt(e)});return A(l(t))}(e);throw Error("non exhaustive match")}var At="_~IN~_",bt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mt=function(e){function t(t){var n=e.call(this)||this;return n.topProd=t,n.follows={},n}return bt(t,e),t.prototype.startWalking=function(){return this.walk(this.topProd),this.follows},t.prototype.walkTerminal=function(e,t,n){},t.prototype.walkProdRef=function(e,t,n){var r,s,i=(r=e.referencedRule,s=e.idx,r.name+s+At+this.topProd.name),o=t.concat(n),a=Nt(new lt({definition:o}));this.follows[i]=a},t}(wt);var It=256,Ot=512,xt=768,Pt=1024,Lt=1280,Dt=1536;function kt(e,t,n){return n|t|e}function Ht(e,t,n,r){var s=r+1<<24;return kt(e,t,n)|s}var Ft=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function Ut(e,t){!0===isNaN(e.startOffset)?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset==!0&&(e.endOffset=t.endOffset)}function Vt(e,t){!0===isNaN(e.startOffset)?(e.startOffset=t.startOffset,e.startColumn=t.startColumn,e.startLine=t.startLine,e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine):e.endOffset<t.endOffset==!0&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}function Bt(e,t,n){void 0===e.children[t]?e.children[t]=[n]:e.children[t].push(n)}var Wt=function(e){function t(t){var n=e.call(this)||this;return n.result=[],n.ruleIdx=t,n}return Ft(t,e),t.prototype.collectNamedDSLMethod=function(e,t,n){if(!g(e.name)){var r=void 0;if(e instanceof ht||e instanceof dt||e instanceof ut||e instanceof pt)r=new t({definition:e.definition,idx:e.idx});else{if(!(e instanceof ct||e instanceof gt))throw Error("non exhaustive match");r=new t({definition:e.definition,idx:e.idx,separator:e.separator})}var s=[r],i=kt(this.ruleIdx,n,e.idx);this.result.push({def:s,key:i,name:e.name,orgProd:e})}},t.prototype.visitOption=function(e){this.collectNamedDSLMethod(e,ht,Ot)},t.prototype.visitRepetition=function(e){this.collectNamedDSLMethod(e,dt,xt)},t.prototype.visitRepetitionMandatory=function(e){this.collectNamedDSLMethod(e,ut,Pt)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.collectNamedDSLMethod(e,ct,Dt)},t.prototype.visitRepetitionWithSeparator=function(e){this.collectNamedDSLMethod(e,gt,Lt)},t.prototype.visitAlternation=function(e){var t=this;this.collectNamedDSLMethod(e,pt,It);var n=e.definition.length>1;c(e.definition,function(r,s){if(!g(r.name)){var i=r.definition;i=n?[new ht({definition:r.definition})]:r.definition;var o=Ht(t.ruleIdx,It,e.idx,s);t.result.push({def:i,key:o,name:r.name,orgProd:r})}})},t}(Ct);var Yt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gt=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.path=n,r.nextTerminalName="",r.nextTerminalOccurrence=0,r.nextTerminalName=r.path.lastTok.name,r.nextTerminalOccurrence=r.path.lastTokOccurrence,r}return Yt(t,e),t.prototype.walkTerminal=function(e,t,n){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){var r=t.concat(n),s=new lt({definition:r});this.possibleTokTypes=Nt(s),this.found=!0}},t}(function(e){function t(t,n){var r=e.call(this)||this;return r.topProd=t,r.path=n,r.possibleTokTypes=[],r.nextProductionName="",r.nextProductionOccurrence=0,r.found=!1,r.isAtEndOfPath=!1,r}return Yt(t,e),t.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=S(this.path.ruleStack).reverse(),this.occurrenceStack=S(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes},t.prototype.walk=function(t,n){void 0===n&&(n=[]),this.found||e.prototype.walk.call(this,t,n)},t.prototype.walkProdRef=function(e,t,n){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){var r=t.concat(n);this.updateExpectedNext(),this.walk(e.referencedRule,r)}},t.prototype.updateExpectedNext=function(){s(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},t}(wt)),jt=function(e){function t(t,n){var r=e.call(this)||this;return r.topRule=t,r.occurrence=n,r.result={token:void 0,occurrence:void 0,isEndOfRule:void 0},r}return Yt(t,e),t.prototype.startWalking=function(){return this.walk(this.topRule),this.result},t}(wt),zt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yt(t,e),t.prototype.walkMany=function(t,n,r){if(t.idx===this.occurrence){var s=h(n.concat(r));this.result.isEndOfRule=void 0===s,s instanceof ft&&(this.result.token=s.terminalType,this.result.occurrence=s.idx)}else e.prototype.walkMany.call(this,t,n,r)},t}(jt),$t=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yt(t,e),t.prototype.walkManySep=function(t,n,r){if(t.idx===this.occurrence){var s=h(n.concat(r));this.result.isEndOfRule=void 0===s,s instanceof ft&&(this.result.token=s.terminalType,this.result.occurrence=s.idx)}else e.prototype.walkManySep.call(this,t,n,r)},t}(jt),Kt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yt(t,e),t.prototype.walkAtLeastOne=function(t,n,r){if(t.idx===this.occurrence){var s=h(n.concat(r));this.result.isEndOfRule=void 0===s,s instanceof ft&&(this.result.token=s.terminalType,this.result.occurrence=s.idx)}else e.prototype.walkAtLeastOne.call(this,t,n,r)},t}(jt),Xt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yt(t,e),t.prototype.walkAtLeastOneSep=function(t,n,r){if(t.idx===this.occurrence){var s=h(n.concat(r));this.result.isEndOfRule=void 0===s,s instanceof ft&&(this.result.token=s.terminalType,this.result.occurrence=s.idx)}else e.prototype.walkAtLeastOneSep.call(this,t,n,r)},t}(jt);function qt(e,t,n){void 0===n&&(n=[]),n=S(n);var r=[],s=0;function i(i){var o=qt(i.concat(f(e,s+1)),t,n);return r.concat(o)}for(;n.length<t&&s<e.length;){var o=e[s];if(o instanceof lt)return i(o.definition);if(o instanceof ot)return i(o.definition);if(o instanceof ht)r=i(o.definition);else{if(o instanceof ut)return i(a=o.definition.concat([new dt({definition:o.definition})]));if(o instanceof ct)return i(a=[new lt({definition:o.definition}),new dt({definition:[new ft({terminalType:o.separator})].concat(o.definition)})]);if(o instanceof gt){var a=o.definition.concat([new dt({definition:[new ft({terminalType:o.separator})].concat(o.definition)})]);r=i(a)}else if(o instanceof dt){a=o.definition.concat([new dt({definition:o.definition})]);r=i(a)}else{if(o instanceof pt)return c(o.definition,function(e){r=i(e.definition)}),r;if(!(o instanceof ft))throw Error("non exhaustive match");n.push(o.terminalType)}}s++}return r.push({partialPath:n,suffixDef:f(e,s)}),r}function Qt(e,t,n,r){var i="EXIT_NONE_TERMINAL",o=[i],a="EXIT_ALTERNATIVE",l=!1,h=t.length,c=h-r-1,d=[],g=[];for(g.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!s(g);){var p=g.pop();if(p!==a){var E=p.def,w=p.idx,y=p.ruleStack,C=p.occurrenceStack;if(!s(E)){var v=E[0];if(v===i){var R={idx:w,def:f(E),ruleStack:m(y),occurrenceStack:m(C)};g.push(R)}else if(v instanceof ft)if(w<h-1){var T=w+1;if(n(t[T],v.terminalType)){R={idx:T,def:f(E),ruleStack:y,occurrenceStack:C};g.push(R)}}else{if(w!==h-1)throw Error("non exhaustive match");d.push({nextTokenType:v.terminalType,nextTokenOccurrence:v.idx,ruleStack:y,occurrenceStack:C}),l=!0}else if(v instanceof ot){var _=S(y);_.push(v.nonTerminalName);var N=S(C);N.push(v.idx);R={idx:w,def:v.definition.concat(o,f(E)),ruleStack:_,occurrenceStack:N};g.push(R)}else if(v instanceof ht){var A={idx:w,def:f(E),ruleStack:y,occurrenceStack:C};g.push(A),g.push(a);var b={idx:w,def:v.definition.concat(f(E)),ruleStack:y,occurrenceStack:C};g.push(b)}else if(v instanceof ut){var M=new dt({definition:v.definition,idx:v.idx});R={idx:w,def:v.definition.concat([M],f(E)),ruleStack:y,occurrenceStack:C};g.push(R)}else if(v instanceof ct){var I=new ft({terminalType:v.separator});M=new dt({definition:[I].concat(v.definition),idx:v.idx}),R={idx:w,def:v.definition.concat([M],f(E)),ruleStack:y,occurrenceStack:C};g.push(R)}else if(v instanceof gt){A={idx:w,def:f(E),ruleStack:y,occurrenceStack:C};g.push(A),g.push(a);I=new ft({terminalType:v.separator});var O=new dt({definition:[I].concat(v.definition),idx:v.idx});b={idx:w,def:v.definition.concat([O],f(E)),ruleStack:y,occurrenceStack:C};g.push(b)}else if(v instanceof dt){A={idx:w,def:f(E),ruleStack:y,occurrenceStack:C};g.push(A),g.push(a);O=new dt({definition:v.definition,idx:v.idx}),b={idx:w,def:v.definition.concat([O],f(E)),ruleStack:y,occurrenceStack:C};g.push(b)}else if(v instanceof pt)for(var x=v.definition.length-1;x>=0;x--){var P={idx:w,def:v.definition[x].definition.concat(f(E)),ruleStack:y,occurrenceStack:C};g.push(P),g.push(a)}else if(v instanceof lt)g.push({idx:w,def:v.definition.concat(f(E)),ruleStack:y,occurrenceStack:C});else{if(!(v instanceof at))throw Error("non exhaustive match");g.push(Zt(v,w,y,C))}}}else l&&u(g).idx<=c&&g.pop()}return d}function Zt(e,t,n,r){var s=S(n);s.push(e.name);var i=S(r);return i.push(1),{idx:t,def:e.definition,ruleStack:s,occurrenceStack:i}}var Jt,en=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();!function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"}(Jt||(Jt={}));var tn=function(e){function t(t,n,r){var s=e.call(this)||this;return s.topProd=t,s.targetOccurrence=n,s.targetProdType=r,s}return en(t,e),t.prototype.startWalking=function(){return this.walk(this.topProd),this.restDef},t.prototype.checkIsTarget=function(e,t,n,r){return e.idx===this.targetOccurrence&&this.targetProdType===t&&(this.restDef=n.concat(r),!0)},t.prototype.walkOption=function(t,n,r){this.checkIsTarget(t,Jt.OPTION,n,r)||e.prototype.walkOption.call(this,t,n,r)},t.prototype.walkAtLeastOne=function(t,n,r){this.checkIsTarget(t,Jt.REPETITION_MANDATORY,n,r)||e.prototype.walkOption.call(this,t,n,r)},t.prototype.walkAtLeastOneSep=function(t,n,r){this.checkIsTarget(t,Jt.REPETITION_MANDATORY_WITH_SEPARATOR,n,r)||e.prototype.walkOption.call(this,t,n,r)},t.prototype.walkMany=function(t,n,r){this.checkIsTarget(t,Jt.REPETITION,n,r)||e.prototype.walkOption.call(this,t,n,r)},t.prototype.walkManySep=function(t,n,r){this.checkIsTarget(t,Jt.REPETITION_WITH_SEPARATOR,n,r)||e.prototype.walkOption.call(this,t,n,r)},t}(wt),nn=function(e){function t(t,n,r){var s=e.call(this)||this;return s.targetOccurrence=t,s.targetProdType=n,s.targetRef=r,s.result=[],s}return en(t,e),t.prototype.checkIsTarget=function(e,t){e.idx!==this.targetOccurrence||this.targetProdType!==t||void 0!==this.targetRef&&e!==this.targetRef||(this.result=e.definition)},t.prototype.visitOption=function(e){this.checkIsTarget(e,Jt.OPTION)},t.prototype.visitRepetition=function(e){this.checkIsTarget(e,Jt.REPETITION)},t.prototype.visitRepetitionMandatory=function(e){this.checkIsTarget(e,Jt.REPETITION_MANDATORY)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.checkIsTarget(e,Jt.REPETITION_MANDATORY_WITH_SEPARATOR)},t.prototype.visitRepetitionWithSeparator=function(e){this.checkIsTarget(e,Jt.REPETITION_WITH_SEPARATOR)},t.prototype.visitAlternation=function(e){this.checkIsTarget(e,Jt.ALTERNATION)},t}(Ct);function rn(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}function sn(e){for(var t=[""],n=0;n<e.length;n++){for(var r=e[n],s=[],i=0;i<t.length;i++){var o=t[i];s.push(o+"_"+r.tokenTypeIdx);for(var a=0;a<r.categoryMatches.length;a++){var l="_"+r.categoryMatches[a];s.push(o+l)}}t=s}return t}function on(e,t,n){for(var r=0;r<e.length;r++)if(r!==n)for(var s=e[r],i=0;i<t.length;i++){if(!0===s[t[i]])return!1}return!0}function an(e,t){for(var n=a(e,function(e){return qt([e],1)}),r=rn(n.length),i=a(n,function(e){var t={};return c(e,function(e){c(sn(e.partialPath),function(e){t[e]=!0})}),t}),o=n,l=1;l<=t;l++){var h=o;o=rn(h.length);for(var u=function(e){for(var n=h[e],a=0;a<n.length;a++){var u=n[a].partialPath,d=n[a].suffixDef,g=sn(u);if(on(i,g,e)||s(d)||u.length===t){var p=r[e];if(!1===un(p,u)){p.push(u);for(var f=0;f<g.length;f++){var m=g[f];i[e][m]=!0}}}else{var E=qt(d,l+1,u);o[e]=o[e].concat(E),c(E,function(t){c(sn(t.partialPath),function(t){i[e][t]=!0})})}}},d=0;d<h.length;d++)u(d)}return r}function ln(e,t,n,r){var s=new nn(e,Jt.ALTERNATION,r);return t.accept(s),an(s.result,n)}function hn(e,t,n,r){var s=new nn(e,n);t.accept(s);var i=s.result,o=new tn(t,e,n).startWalking();return an([new lt({definition:i}),new lt({definition:o})],r)}function un(e,t){e:for(var n=0;n<e.length;n++){var r=e[n];if(r.length===t.length){for(var s=0;s<r.length;s++){var i=t[s],o=r[s];if(!1===(i===o||void 0!==o.categoryMatchesMap[i.tokenTypeIdx]))continue e}return!0}}return!1}function cn(e){return O(e,function(e){return O(e,function(e){return O(e,function(e){return s(e.categoryMatches)})})})}var dn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function gn(e,t,n,r,i,u){var d=a(e,function(e){return function(e,t){var n=new mn;e.accept(n);var r=n.allProductions,s=a(o(y(H(r,pn),function(e){return e.length>1})),function(n){var r=h(n),s=t.buildDuplicateFoundError(e,n),i=Rt(r),o={message:s,type:vr.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:i,occurrence:r.idx},a=fn(r);return a&&(o.parameter=a),o});return s}(e,i)}),g=a(e,function(e){return yn(e,e,i)}),p=[],f=[],E=[];O(g,s)&&(p=a(e,function(e){return function(e,t){var n=new vn;e.accept(n);var r=_(n.alternations,function(n,r){var i=a(m(r.definition),function(n,i){return s(Qt([n],[],null,1))?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:r,emptyChoiceIdx:i}),type:vr.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:r.idx,alternative:i+1}:null});return n.concat(N(i))},[]);return r}(e,i)}),f=a(e,function(e){return function(e,t,n,r){var s=new vn;e.accept(s);var i=s.alternations,o=n[e.name];o&&(i=w(i,function(e){return o[Rt(e)+(0===e.idx?"":e.idx)]}));var l=_(i=w(i,function(e){return!0===e.ignoreAmbiguities}),function(n,s){var i=s.idx,o=s.maxLookahead||t,l=ln(i,e,o,s),h=function(e,t,n,r){var s=[],i=_(e,function(n,r,i){return!0===t.definition[i].ignoreAmbiguities||c(r,function(r){var o=[i];c(e,function(e,n){i!==n&&un(e,r)&&!0!==t.definition[n].ignoreAmbiguities&&o.push(n)}),o.length>1&&!un(s,r)&&(s.push(r),n.push({alts:o,path:r}))}),n},[]),o=a(i,function(e){var s=a(e.alts,function(e){return e+1});return{message:r.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:s,prefixPath:e.path}),type:vr.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:[e.alts]}});return o}(l,s,e,r),u=function(e,t,n,r){var s=[],i=_(e,function(e,t,n){var r=a(t,function(e){return{idx:n,path:e}});return e.concat(r)},[]);return c(i,function(e){if(!0!==t.definition[e.idx].ignoreAmbiguities){var o=e.idx,l=e.path,h=a(function(e,t){for(var n=[],r=0;r<e.length;r++){var s=e[r];t.call(null,s)&&n.push(s)}return n}(i,function(e){return!0!==t.definition[e.idx].ignoreAmbiguities&&e.idx<o&&(n=e.path,r=l,n.length<r.length&&O(n,function(e,t){var n=r[t];return e===n||n.categoryMatchesMap[e.tokenTypeIdx]}));var n,r}),function(e){var s=[e.idx+1,o+1],i=0===t.idx?"":t.idx;return{message:r.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:s,prefixPath:e.path}),type:vr.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:i,alternatives:s}});s=s.concat(h)}}),s}(l,s,e,r);return n.concat(h,u)},[]);return l}(e,t,r,i)}),E=function(e,t,n){var r=[];return c(e,function(e){var i=new Sn;e.accept(i),c(i.allProductions,function(i){var o=function(e){if(e instanceof ht)return Jt.OPTION;if(e instanceof dt)return Jt.REPETITION;if(e instanceof ut)return Jt.REPETITION_MANDATORY;if(e instanceof ct)return Jt.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof gt)return Jt.REPETITION_WITH_SEPARATOR;if(e instanceof pt)return Jt.ALTERNATION;throw Error("non exhaustive match")}(i),a=i.maxLookahead||t;if(s(l(hn(i.idx,e,o,a)[0]))){var h=n.buildEmptyRepetitionError({topLevelRule:e,repetition:i});r.push({message:h,type:vr.NO_NON_EMPTY_LOOKAHEAD,ruleName:e.name})}})}),r}(e,t,i));var C=function(e,t,n){var r=[],s=a(t,function(e){return e.name});return c(e,function(e){var t=e.name;if(v(s,t)){var i=n.buildNamespaceConflictError(e);r.push({message:i,type:vr.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:t})}}),r}(e,n,i),S=a(n,function(e){return function(e,t){var n=[];e.name.match(En)||n.push({message:t.buildTokenNameError({tokenType:e,expectedPattern:En}),type:vr.INVALID_TOKEN_NAME});return n}(e,i)}),R=function(e,t){var n=[];return c(e,function(e){var r=new Wt("");e.accept(r);var s=a(r.result,function(e){return e.orgProd});n.push(a(s,function(n){return function(e,t,n){var r,s=[];t.name.match(wn)||(r=n.buildInvalidNestedRuleNameError(e,t),s.push({message:r,type:vr.INVALID_NESTED_RULE_NAME,ruleName:e.name}));return s}(e,n,t)}))}),l(n)}(e,i),T=function(e,t){var n=[];return c(e,function(e){var r=new Wt("");e.accept(r),c(o(y(H(r.result,function(e){return e.name}),function(e){return e.length>1})),function(r){var s=a(r,function(e){return e.orgProd}),i=t.buildDuplicateNestedRuleNameError(e,s);n.push({message:i,type:vr.DUPLICATE_NESTED_NAME,ruleName:e.name})})}),n}(e,i),A=a(e,function(e){return function(e,t){var n=new vn;e.accept(n);var r=_(n.alternations,function(n,r){return r.definition.length>255&&n.push({message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:r}),type:vr.TOO_MANY_ALTS,ruleName:e.name,occurrence:r.idx}),n},[]);return r}(e,i)}),b=a(e,function(e){return function(e,t){var n=[],r=e.name;r.match(En)||n.push({message:t.buildInvalidRuleNameError({topLevelRule:e,expectedPattern:En}),type:vr.INVALID_RULE_NAME,ruleName:r});return n}(e,i)}),M=a(e,function(t){return function(e,t,n,r){var s=[],i=_(t,function(t,n){return n.name===e.name?t+1:t},0);if(i>1){var o=r.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});s.push({message:o,type:vr.DUPLICATE_RULE_NAME,ruleName:e.name})}return s}(t,e,u,i)});return l(d.concat(S,R,T,E,g,p,f,C,A,b,M))}function pn(e){return Rt(e)+"_#_"+e.idx+"_#_"+fn(e)}function fn(e){return e instanceof ft?e.terminalType.name:e instanceof ot?e.nonTerminalName:""}var mn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allProductions=[],t}return dn(t,e),t.prototype.visitNonTerminal=function(e){this.allProductions.push(e)},t.prototype.visitOption=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionWithSeparator=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionMandatory=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.allProductions.push(e)},t.prototype.visitRepetition=function(e){this.allProductions.push(e)},t.prototype.visitAlternation=function(e){this.allProductions.push(e)},t.prototype.visitTerminal=function(e){this.allProductions.push(e)},t}(Ct),En=/^[a-zA-Z_]\w*$/,wn=new RegExp(En.source.replace("^","^\\$"));function yn(e,t,n,r){void 0===r&&(r=[]);var i=[],o=Cn(t.definition);if(s(o))return[];var h=e.name;v(o,e)&&i.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:r}),type:vr.LEFT_RECURSION,ruleName:h});var u=a(x(o,r.concat([e])),function(t){var s=S(r);return s.push(t),yn(e,t,n,s)});return i.concat(l(u))}function Cn(e){var t=[];if(s(e))return t;var n=h(e);if(n instanceof ot)t.push(n.referencedRule);else if(n instanceof lt||n instanceof ht||n instanceof ut||n instanceof ct||n instanceof gt||n instanceof dt)t=t.concat(Cn(n.definition));else if(n instanceof pt)t=l(a(n.definition,function(e){return Cn(e.definition)}));else if(!(n instanceof ft))throw Error("non exhaustive match");var r=St(n),i=e.length>1;if(r&&i){var o=f(e);return t.concat(Cn(o))}return t}var vn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.alternations=[],t}return dn(t,e),t.prototype.visitAlternation=function(e){this.alternations.push(e)},t}(Ct);var Sn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allProductions=[],t}return dn(t,e),t.prototype.visitRepetitionWithSeparator=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionMandatory=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.allProductions.push(e)},t.prototype.visitRepetition=function(e){this.allProductions.push(e)},t}(Ct);var Rn={buildMismatchTokenMessage:function(e){var t=e.expected,n=e.actual;e.previous,e.ruleName;return"Expecting "+(Ge(t)?"--\x3e "+We(t)+" <--":"token of type --\x3e "+t.name+" <--")+" but found --\x3e '"+n.image+"' <--"},buildNotAllInputParsedMessage:function(e){var t=e.firstRedundant;e.ruleName;return"Redundant input, expecting EOF but found: "+t.image},buildNoViableAltMessage:function(e){var t=e.expectedPathsPerAlt,n=e.actual,r=(e.previous,e.customUserDescription),s=(e.ruleName,"Expecting: "),i="\nbut found: '"+h(n).image+"'";if(r)return s+r+i;var o=a(_(t,function(e,t){return e.concat(t)},[]),function(e){return"["+a(e,function(e){return We(e)}).join(", ")+"]"});return s+("one of these possible Token sequences:\n"+a(o,function(e,t){return" "+(t+1)+". "+e}).join("\n"))+i},buildEarlyExitMessage:function(e){var t=e.expectedIterationPaths,n=e.actual,r=e.customUserDescription,s=(e.ruleName,"Expecting: "),i="\nbut found: '"+h(n).image+"'";return r?s+r+i:s+("expecting at least one iteration which starts with one of these possible Token sequences::\n <"+a(t,function(e){return"["+a(e,function(e){return We(e)}).join(",")+"]"}).join(" ,")+">")+i}};Object.freeze(Rn);var Tn={buildRuleNotFoundError:function(e,t){return"Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+"<-\ninside top level rule: ->"+e.name+"<-"}},_n={buildDuplicateFoundError:function(e,t){var n,r=e.name,s=h(t),i=s.idx,o=Rt(s),a=(n=s)instanceof ft?n.terminalType.name:n instanceof ot?n.nonTerminalName:"",l="->"+o+(i>0?i:"")+"<- "+(a?"with argument: ->"+a+"<-":"")+"\n appears more than once ("+t.length+" times) in the top level rule: ->"+r+"<-. \n For further details see: https://sap.github.io/chevrotain/docs/FAQ.html#NUMERICAL_SUFFIXES \n ";return l=(l=l.replace(/[ \t]+/g," ")).replace(/\s\s+/g,"\n")},buildInvalidNestedRuleNameError:function(e,t){return"Invalid nested rule name: ->"+t.name+"<- inside rule: ->"+e.name+"<-\nit must match the pattern: ->"+wn.toString()+"<-.\nNote that this means a nested rule name must start with the '$'(dollar) sign."},buildDuplicateNestedRuleNameError:function(e,t){return"Duplicate nested rule name: ->"+h(t).name+"<- inside rule: ->"+e.name+"<-\nA nested name must be unique in the scope of a top level grammar rule."},buildNamespaceConflictError:function(e){return"Namespace conflict found in grammar.\nThe grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <"+e.name+">.\nTo resolve this make sure each Terminal and Non-Terminal names are unique\nThis is easy to accomplish by using the convention that Terminal names start with an uppercase letter\nand Non-Terminal names start with a lower case letter."},buildAlternationPrefixAmbiguityError:function(e){var t=a(e.prefixPath,function(e){return We(e)}).join(", "),n=0===e.alternation.idx?"":e.alternation.idx;return"Ambiguous alternatives: <"+e.ambiguityIndices.join(" ,")+"> due to common lookahead prefix\nin <OR"+n+"> inside <"+e.topLevelRule.name+"> Rule,\n<"+t+"> may appears as a prefix path in all these alternatives.\nSee: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\nFor Further details."},buildAlternationAmbiguityError:function(e){var t=a(e.prefixPath,function(e){return We(e)}).join(", "),n=0===e.alternation.idx?"":e.alternation.idx,r="Ambiguous Alternatives Detected: <"+e.ambiguityIndices.join(" ,")+"> in <OR"+n+"> inside <"+e.topLevelRule.name+"> Rule,\n<"+t+"> may appears as a prefix path in all these alternatives.\n";return r+="See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\nFor Further details."},buildEmptyRepetitionError:function(e){var t=Rt(e.repetition);return 0!==e.repetition.idx&&(t+=e.repetition.idx),"The repetition <"+t+"> within Rule <"+e.topLevelRule.name+"> can never consume any tokens.\nThis could lead to an infinite loop."},buildTokenNameError:function(e){return"Invalid Grammar Token name: ->"+e.tokenType.name+"<- it must match the pattern: ->"+e.expectedPattern.toString()+"<-"},buildEmptyAlternationError:function(e){return"Ambiguous empty alternative: <"+(e.emptyChoiceIdx+1)+"> in <OR"+e.alternation.idx+"> inside <"+e.topLevelRule.name+"> Rule.\nOnly the last alternative may be an empty alternative."},buildTooManyAlternativesError:function(e){return"An Alternation cannot have more than 256 alternatives:\n<OR"+e.alternation.idx+"> inside <"+e.topLevelRule.name+"> Rule.\n has "+(e.alternation.definition.length+1)+" alternatives."},buildLeftRecursionError:function(e){var t=e.topLevelRule.name;return"Left Recursion found in grammar.\nrule: <"+t+"> can be invoked from itself (directly or indirectly)\nwithout consuming any Tokens. The grammar path that causes this is: \n "+(t+" --\x3e "+a(e.leftRecursionPath,function(e){return e.name}).concat([t]).join(" --\x3e "))+"\n To fix this refactor your grammar to remove the left recursion.\nsee: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring."},buildInvalidRuleNameError:function(e){return"Invalid grammar rule name: ->"+e.topLevelRule.name+"<- it must match the pattern: ->"+e.expectedPattern.toString()+"<-"},buildDuplicateRuleNameError:function(e){return"Duplicate definition, rule: ->"+(e.topLevelRule instanceof at?e.topLevelRule.name:e.topLevelRule)+"<- is already defined in the grammar: ->"+e.grammarName+"<-"}},Nn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var An=function(e){function t(t,n){var r=e.call(this)||this;return r.nameToTopRule=t,r.errMsgProvider=n,r.errors=[],r}return Nn(t,e),t.prototype.resolveRefs=function(){var e=this;c(o(this.nameToTopRule),function(t){e.currTopLevel=t,t.accept(e)})},t.prototype.visitNonTerminal=function(e){var t=this.nameToTopRule[e.nonTerminalName];if(t)e.referencedRule=t;else{var n=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:n,type:vr.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}},t}(Ct);function bn(e){e=k(e,{errMsgProvider:Tn});var t,n,r,s={};return c(e.rules,function(e){s[e.name]=e}),t=s,n=e.errMsgProvider,(r=new An(t,n)).resolveRefs(),r.errors}function Mn(e){return gn((e=k(e,{errMsgProvider:_n,ignoredIssues:{}})).rules,e.maxLookahead,e.tokenTypes,e.ignoredIssues,e.errMsgProvider,e.grammarName)}function In(e){c(e.rules,function(e){var t=new Tt;e.accept(t),c(t.dslMethods,function(e){c(e,function(e,t){e.idx=t+1})})})}var On="MismatchedTokenException",xn="NoViableAltException",Pn="EarlyExitException",Ln="NotAllInputParsedException",Dn=[On,xn,Pn,Ln];function kn(e){return v(Dn,e.name)}function Hn(e,t,n){this.name=On,this.message=e,this.token=t,this.previousToken=n,this.resyncedTokens=[]}function Fn(e,t,n){this.name=xn,this.message=e,this.token=t,this.previousToken=n,this.resyncedTokens=[]}function Un(e,t){this.name=Ln,this.message=e,this.token=t,this.resyncedTokens=[]}function Vn(e,t,n){this.name=Pn,this.message=e,this.token=t,this.previousToken=n,this.resyncedTokens=[]}Object.freeze(Dn),Hn.prototype=Error.prototype,Fn.prototype=Error.prototype,Un.prototype=Error.prototype,Vn.prototype=Error.prototype;var Bn={},Wn="InRuleRecoveryException";function Yn(e){this.name=Wn,this.message=e}Yn.prototype=Error.prototype;var Gn=function(){function e(){}return e.prototype.initRecoverable=function(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=C(e,"recoveryEnabled")?e.recoveryEnabled:Sr.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=jn)},e.prototype.getTokenToInsert=function(e){var t=nt(e,"",NaN,NaN,NaN,NaN,NaN,NaN);return t.isInsertedInRecovery=!0,t},e.prototype.canTokenTypeBeInsertedInRecovery=function(e){return!0},e.prototype.tryInRepetitionRecovery=function(e,t,n,r){for(var s=this,i=this.findReSyncTokenType(),o=this.exportLexerState(),a=[],l=!1,h=this.LA(1),u=this.LA(1),c=function(){var e=s.LA(0),t=new Hn(s.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:h,previous:e,ruleName:s.getCurrRuleFullName()}),h,s.LA(0));t.resyncedTokens=m(a),s.SAVE_ERROR(t)};!l;){if(this.tokenMatcher(u,r))return void c();if(n.call(this))return c(),void e.apply(this,t);this.tokenMatcher(u,i)?l=!0:(u=this.SKIP_TOKEN(),this.addToResyncTokens(u,a))}this.importLexerState(o)},e.prototype.shouldInRepetitionRecoveryBeTried=function(e,t,n){return!1!==n&&(void 0!==e&&void 0!==t&&(!this.tokenMatcher(this.LA(1),e)&&(!this.isBackTracking()&&!this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,t)))))},e.prototype.getFollowsForInRuleRecovery=function(e,t){var n=this.getCurrentGrammarPath(e,t);return this.getNextPossibleTokenTypes(n)},e.prototype.tryInRuleRecovery=function(e,t){if(this.canRecoverWithSingleTokenInsertion(e,t))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){var n=this.SKIP_TOKEN();return this.consumeToken(),n}throw new Yn("sad sad panda")},e.prototype.canPerformInRuleRecovery=function(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)},e.prototype.canRecoverWithSingleTokenInsertion=function(e,t){var n=this;if(!this.canTokenTypeBeInsertedInRecovery(e))return!1;if(s(t))return!1;var r=this.LA(1);return void 0!==T(t,function(e){return n.tokenMatcher(r,e)})},e.prototype.canRecoverWithSingleTokenDeletion=function(e){return this.tokenMatcher(this.LA(2),e)},e.prototype.isInCurrentRuleReSyncSet=function(e){var t=this.getCurrFollowKey();return v(this.getFollowSetFromFollowKey(t),e)},e.prototype.findReSyncTokenType=function(){for(var e=this.flattenFollowSet(),t=this.LA(1),n=2;;){var r=t.tokenType;if(v(e,r))return r;t=this.LA(n),n++}},e.prototype.getCurrFollowKey=function(){if(1===this.RULE_STACK.length)return Bn;var e=this.getLastExplicitRuleShortName(),t=this.getLastExplicitRuleOccurrenceIndex(),n=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(n)}},e.prototype.buildFullFollowKeyStack=function(){var e=this,t=this.RULE_STACK,n=this.RULE_OCCURRENCE_STACK;return s(this.LAST_EXPLICIT_RULE_STACK)||(t=a(this.LAST_EXPLICIT_RULE_STACK,function(t){return e.RULE_STACK[t]}),n=a(this.LAST_EXPLICIT_RULE_STACK,function(t){return e.RULE_OCCURRENCE_STACK[t]})),a(t,function(r,s){return 0===s?Bn:{ruleName:e.shortRuleNameToFullName(r),idxInCallingRule:n[s],inRule:e.shortRuleNameToFullName(t[s-1])}})},e.prototype.flattenFollowSet=function(){var e=this;return l(a(this.buildFullFollowKeyStack(),function(t){return e.getFollowSetFromFollowKey(t)}))},e.prototype.getFollowSetFromFollowKey=function(e){if(e===Bn)return[tt];var t=e.ruleName+e.idxInCallingRule+At+e.inRule;return this.resyncFollows[t]},e.prototype.addToResyncTokens=function(e,t){return this.tokenMatcher(e,tt)||t.push(e),t},e.prototype.reSyncTo=function(e){for(var t=[],n=this.LA(1);!1===this.tokenMatcher(n,e);)n=this.SKIP_TOKEN(),this.addToResyncTokens(n,t);return m(t)},e.prototype.attemptInRepetitionRecovery=function(e,t,n,r,s,i,o){},e.prototype.getCurrentGrammarPath=function(e,t){return{ruleStack:this.getHumanReadableRuleStack(),occurrenceStack:S(this.RULE_OCCURRENCE_STACK),lastTok:e,lastTokOccurrence:t}},e.prototype.getHumanReadableRuleStack=function(){var e=this;return s(this.LAST_EXPLICIT_RULE_STACK)?a(this.RULE_STACK,function(t){return e.shortRuleNameToFullName(t)}):a(this.LAST_EXPLICIT_RULE_STACK,function(t){return e.shortRuleNameToFullName(e.RULE_STACK[t])})},e}();function jn(e,t,n,r,s,i,o){var a=this.getKeyForAutomaticLookahead(r,s),l=this.firstAfterRepMap[a];if(void 0===l){var h=this.getCurrRuleFullName();l=new i(this.getGAstProductions()[h],s).startWalking(),this.firstAfterRepMap[a]=l}var u=l.token,c=l.occurrence,d=l.isEndOfRule;1===this.RULE_STACK.length&&d&&void 0===u&&(u=tt,c=1),this.shouldInRepetitionRecoveryBeTried(u,c,o)&&this.tryInRepetitionRecovery(e,t,n,u)}var zn=function(){function e(){}return e.prototype.initLooksAhead=function(e){this.dynamicTokensEnabled=C(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:Sr.dynamicTokensEnabled,this.maxLookahead=C(e,"maxLookahead")?e.maxLookahead:Sr.maxLookahead,this.lookAheadFuncsCache=Y()?new Map:[],Y()?(this.getLaFuncFromCache=this.getLaFuncFromMap,this.setLaFuncCache=this.setLaFuncCacheUsingMap):(this.getLaFuncFromCache=this.getLaFuncFromObj,this.setLaFuncCache=this.setLaFuncUsingObj)},e.prototype.preComputeLookaheadFunctions=function(e){var t=this;c(e,function(e){t.TRACE_INIT(e.name+" Rule Lookahead",function(){var n=function(e){_t.reset(),e.accept(_t);var t=_t.dslMethods;return _t.reset(),t}(e),r=n.alternation,s=n.repetition,i=n.option,o=n.repetitionMandatory,a=n.repetitionMandatoryWithSeparator,l=n.repetitionWithSeparator;c(r,function(n){var r=0===n.idx?"":n.idx;t.TRACE_INIT(""+Rt(n)+r,function(){var r,s,i,o,a,l,h,u=(r=n.idx,s=e,i=n.maxLookahead||t.maxLookahead,o=n.hasPredicates,a=t.dynamicTokensEnabled,l=t.lookAheadBuilderForAlternatives,h=ln(r,s,i),l(h,o,cn(h)?Ie:Me,a)),c=kt(t.fullRuleNameToShort[e.name],It,n.idx);t.setLaFuncCache(c,u)})}),c(s,function(n){t.computeLookaheadFunc(e,n.idx,xt,Jt.REPETITION,n.maxLookahead,Rt(n))}),c(i,function(n){t.computeLookaheadFunc(e,n.idx,Ot,Jt.OPTION,n.maxLookahead,Rt(n))}),c(o,function(n){t.computeLookaheadFunc(e,n.idx,Pt,Jt.REPETITION_MANDATORY,n.maxLookahead,Rt(n))}),c(a,function(n){t.computeLookaheadFunc(e,n.idx,Dt,Jt.REPETITION_MANDATORY_WITH_SEPARATOR,n.maxLookahead,Rt(n))}),c(l,function(n){t.computeLookaheadFunc(e,n.idx,Lt,Jt.REPETITION_WITH_SEPARATOR,n.maxLookahead,Rt(n))})})})},e.prototype.computeLookaheadFunc=function(e,t,n,r,s,i){var o=this;this.TRACE_INIT(""+i+(0===t?"":t),function(){var i=function(e,t,n,r,s,i){var o=hn(e,t,s,n),a=cn(o)?Ie:Me;return i(o[0],a,r)}(t,e,s||o.maxLookahead,o.dynamicTokensEnabled,r,o.lookAheadBuilderForOptional),a=kt(o.fullRuleNameToShort[e.name],n,t);o.setLaFuncCache(a,i)})},e.prototype.lookAheadBuilderForOptional=function(e,t,n){return function(e,t,n){var r=O(e,function(e){return 1===e.length}),i=e.length;if(r&&!n){var o=l(e);if(1===o.length&&s(o[0].categoryMatches)){var a=o[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===a}}var h=_(o,function(e,t,n){return e[t.tokenTypeIdx]=!0,c(t.categoryMatches,function(t){e[t]=!0}),e},[]);return function(){var e=this.LA(1);return!0===h[e.tokenTypeIdx]}}return function(){e:for(var n=0;n<i;n++){for(var r=e[n],s=r.length,o=0;o<s;o++){var a=this.LA(o+1);if(!1===t(a,r[o]))continue e}return!0}return!1}}(e,t,n)},e.prototype.lookAheadBuilderForAlternatives=function(e,t,n,r){return function(e,t,n,r){var s=e.length,i=O(e,function(e){return O(e,function(e){return 1===e.length})});if(t)return function(t){for(var r=a(t,function(e){return e.GATE}),i=0;i<s;i++){var o=e[i],l=o.length,h=r[i];if(void 0===h||!1!==h.call(this))e:for(var u=0;u<l;u++){for(var c=o[u],d=c.length,g=0;g<d;g++){var p=this.LA(g+1);if(!1===n(p,c[g]))continue e}return i}}};if(i&&!r){var o=_(a(e,function(e){return l(e)}),function(e,t,n){return c(t,function(t){C(e,t.tokenTypeIdx)||(e[t.tokenTypeIdx]=n),c(t.categoryMatches,function(t){C(e,t)||(e[t]=n)})}),e},[]);return function(){var e=this.LA(1);return o[e.tokenTypeIdx]}}return function(){for(var t=0;t<s;t++){var r=e[t],i=r.length;e:for(var o=0;o<i;o++){for(var a=r[o],l=a.length,h=0;h<l;h++){var u=this.LA(h+1);if(!1===n(u,a[h]))continue e}return t}}}}(e,t,n,r)},e.prototype.getKeyForAutomaticLookahead=function(e,t){return kt(this.getLastExplicitRuleShortName(),e,t)},e.prototype.getLaFuncFromCache=function(e){},e.prototype.getLaFuncFromMap=function(e){return this.lookAheadFuncsCache.get(e)},e.prototype.getLaFuncFromObj=function(e){return this.lookAheadFuncsCache[e]},e.prototype.setLaFuncCache=function(e,t){},e.prototype.setLaFuncCacheUsingMap=function(e,t){this.lookAheadFuncsCache.set(e,t)},e.prototype.setLaFuncUsingObj=function(e,t){this.lookAheadFuncsCache[e]=t},e}();var $n,Kn=/^\s*function\s*(\S*)\s*\(/,Xn="name";function qn(e){var t=e.name;return t||e.toString().match(Kn)[1]}function Qn(e,t){var n=Object.getOwnPropertyDescriptor(e,Xn);return!(!g(n)&&!n.configurable)&&(Object.defineProperty(e,Xn,{enumerable:!1,configurable:!0,writable:!1,value:t}),!0)}function Zn(e,t){for(var n=i(e),r=n.length,s=0;s<r;s++)for(var o=e[n[s]],a=o.length,l=0;l<a;l++){var h=o[l];void 0===h.tokenTypeIdx&&(void 0!==h.fullName?this[h.fullName](h.children,t):this[h.name](h.children,t))}}function Jn(e,t){var n=function(){};Qn(n,e+"BaseSemantics");var r={visit:function(e,t){if(b(e)&&(e=e[0]),!g(e))return void 0!==e.fullName?this[e.fullName](e.children,t):this[e.name](e.children,t)},validateVisitor:function(){var e=function(e,t){var n=function(e,t){var n=a(t,function(t){if(!p(e[t]))return{msg:"Missing visitor method: <"+t+"> on "+qn(e.constructor)+" CST Visitor.",type:$n.MISSING_METHOD,methodName:t}});return N(n)}(e,t),r=function(e,t){var n=[];for(var r in e)En.test(r)&&p(e[r])&&!v(er,r)&&!v(t,r)&&n.push({msg:"Redundant visitor method: <"+r+"> on "+qn(e.constructor)+" CST Visitor\nThere is no Grammar Rule corresponding to this method's name.\nFor utility methods on visitor classes use methods names that do not match /"+En.source+"/.",type:$n.REDUNDANT_METHOD,methodName:r});return n}(e,t);return n.concat(r)}(this,t);if(!s(e)){var n=a(e,function(e){return e.msg});throw Error("Errors Detected in CST Visitor <"+qn(this.constructor)+">:\n\t"+n.join("\n\n").replace(/\n/g,"\n\t"))}}};return(n.prototype=r).constructor=n,n._RULE_NAMES=t,n}!function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"}($n||($n={}));var er=["constructor","visit","validateVisitor"];var tr=function(){function e(){}return e.prototype.initTreeBuilder=function(e){if(this.LAST_EXPLICIT_RULE_STACK=[],this.CST_STACK=[],this.outputCst=C(e,"outputCst")?e.outputCst:Sr.outputCst,this.nodeLocationTracking=C(e,"nodeLocationTracking")?e.nodeLocationTracking:Sr.nodeLocationTracking,this.outputCst)if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Vt,this.setNodeLocationFromNode=Vt,this.cstPostRule=U,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=U,this.setNodeLocationFromNode=U,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Ut,this.setNodeLocationFromNode=Ut,this.cstPostRule=U,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=U,this.setNodeLocationFromNode=U,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else{if(!/none/i.test(this.nodeLocationTracking))throw Error('Invalid <nodeLocationTracking> config option: "'+e.nodeLocationTracking+'"');this.setNodeLocationFromToken=U,this.setNodeLocationFromNode=U,this.cstPostRule=U,this.setInitialNodeLocation=U}else this.cstInvocationStateUpdate=U,this.cstFinallyStateUpdate=U,this.cstPostTerminal=U,this.cstPostNonTerminal=U,this.cstPostRule=U,this.getLastExplicitRuleShortName=this.getLastExplicitRuleShortNameNoCst,this.getPreviousExplicitRuleShortName=this.getPreviousExplicitRuleShortNameNoCst,this.getLastExplicitRuleOccurrenceIndex=this.getLastExplicitRuleOccurrenceIndexNoCst,this.manyInternal=this.manyInternalNoCst,this.orInternal=this.orInternalNoCst,this.optionInternal=this.optionInternalNoCst,this.atLeastOneInternal=this.atLeastOneInternalNoCst,this.manySepFirstInternal=this.manySepFirstInternalNoCst,this.atLeastOneSepFirstInternal=this.atLeastOneSepFirstInternalNoCst},e.prototype.setInitialNodeLocationOnlyOffsetRecovery=function(e){e.location={startOffset:NaN,endOffset:NaN}},e.prototype.setInitialNodeLocationOnlyOffsetRegular=function(e){e.location={startOffset:this.LA(1).startOffset,endOffset:NaN}},e.prototype.setInitialNodeLocationFullRecovery=function(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.setInitialNodeLocationFullRegular=function(e){var t=this.LA(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.cstNestedInvocationStateUpdate=function(e,t){var n={name:e,fullName:this.shortRuleNameToFull[this.getLastExplicitRuleShortName()]+e,children:{}};this.setInitialNodeLocation(n),this.CST_STACK.push(n)},e.prototype.cstInvocationStateUpdate=function(e,t){this.LAST_EXPLICIT_RULE_STACK.push(this.RULE_STACK.length-1);var n={name:e,children:{}};this.setInitialNodeLocation(n),this.CST_STACK.push(n)},e.prototype.cstFinallyStateUpdate=function(){this.LAST_EXPLICIT_RULE_STACK.pop(),this.CST_STACK.pop()},e.prototype.cstNestedFinallyStateUpdate=function(){var e=this.CST_STACK.pop();this.cstPostRule(e)},e.prototype.cstPostRuleFull=function(e){var t=this.LA(0),n=e.location;n.startOffset<=t.startOffset==!0?(n.endOffset=t.endOffset,n.endLine=t.endLine,n.endColumn=t.endColumn):(n.startOffset=NaN,n.startLine=NaN,n.startColumn=NaN)},e.prototype.cstPostRuleOnlyOffset=function(e){var t=this.LA(0),n=e.location;n.startOffset<=t.startOffset==!0?n.endOffset=t.endOffset:n.startOffset=NaN},e.prototype.cstPostTerminal=function(e,t){var n,r,s,i=this.CST_STACK[this.CST_STACK.length-1];r=t,s=e,void 0===(n=i).children[s]?n.children[s]=[r]:n.children[s].push(r),this.setNodeLocationFromToken(i.location,t)},e.prototype.cstPostNonTerminal=function(e,t){if(!0!==this.isBackTracking()){var n=this.CST_STACK[this.CST_STACK.length-1];Bt(n,t,e),this.setNodeLocationFromNode(n.location,e.location)}},e.prototype.getBaseCstVisitorConstructor=function(){if(g(this.baseCstVisitorConstructor)){var e=Jn(this.className,this.allRuleNames);return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(g(this.baseCstVisitorWithDefaultsConstructor)){var e=function(e,t,n){var r=function(){};Qn(r,e+"BaseSemanticsWithDefaults");var s=Object.create(n.prototype);return c(t,function(e){s[e]=Zn}),(r.prototype=s).constructor=r,r}(this.className,this.allRuleNames,this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor},e.prototype.nestedRuleBeforeClause=function(e,t){var n;return void 0!==e.NAME?(n=e.NAME,this.nestedRuleInvocationStateUpdate(n,t),n):void 0},e.prototype.nestedAltBeforeClause=function(e,t,n,r){var s,i=Ht(this.getLastExplicitRuleShortName(),n,t,r);return void 0!==e.NAME?(s=e.NAME,this.nestedRuleInvocationStateUpdate(s,i),{shortName:i,nestedName:s}):void 0},e.prototype.nestedRuleFinallyClause=function(e,t){var n=this.CST_STACK,r=n[n.length-1];this.nestedRuleFinallyStateUpdate();var s=n[n.length-1];Bt(s,t,r),this.setNodeLocationFromNode(s.location,r.location)},e.prototype.getLastExplicitRuleShortName=function(){var e=this.LAST_EXPLICIT_RULE_STACK[this.LAST_EXPLICIT_RULE_STACK.length-1];return this.RULE_STACK[e]},e.prototype.getLastExplicitRuleShortNameNoCst=function(){var e=this.RULE_STACK;return e[e.length-1]},e.prototype.getPreviousExplicitRuleShortName=function(){var e=this.LAST_EXPLICIT_RULE_STACK[this.LAST_EXPLICIT_RULE_STACK.length-2];return this.RULE_STACK[e]},e.prototype.getPreviousExplicitRuleShortNameNoCst=function(){var e=this.RULE_STACK;return e[e.length-2]},e.prototype.getLastExplicitRuleOccurrenceIndex=function(){var e=this.LAST_EXPLICIT_RULE_STACK[this.LAST_EXPLICIT_RULE_STACK.length-1];return this.RULE_OCCURRENCE_STACK[e]},e.prototype.getLastExplicitRuleOccurrenceIndexNoCst=function(){var e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]},e.prototype.nestedRuleInvocationStateUpdate=function(e,t){this.RULE_OCCURRENCE_STACK.push(1),this.RULE_STACK.push(t),this.cstNestedInvocationStateUpdate(e,t)},e.prototype.nestedRuleFinallyStateUpdate=function(){this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstNestedFinallyStateUpdate()},e}(),nr=function(){function e(){}return e.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(e.prototype,"input",{get:function(){return this.tokVector},set:function(e){if(!0!==this.selfAnalysisDone)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length},enumerable:!0,configurable:!0}),e.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):Cr},e.prototype.LA=function(e){var t=this.currIdx+e;return t<0||this.tokVectorLength<=t?Cr:this.tokVector[t]},e.prototype.consumeToken=function(){this.currIdx++},e.prototype.exportLexerState=function(){return this.currIdx},e.prototype.importLexerState=function(e){this.currIdx=e},e.prototype.resetLexerState=function(){this.currIdx=-1},e.prototype.moveToTerminatedState=function(){this.currIdx=this.tokVector.length-1},e.prototype.getLexerPosition=function(){return this.exportLexerState()},e}(),rr=function(){function e(){}return e.prototype.ACTION=function(e){return e.call(this)},e.prototype.consume=function(e,t,n){return this.consumeInternal(t,e,n)},e.prototype.subrule=function(e,t,n){return this.subruleInternal(t,e,n)},e.prototype.option=function(e,t){return this.optionInternal(t,e)},e.prototype.or=function(e,t){return this.orInternal(t,e)},e.prototype.many=function(e,t){return this.manyInternal(e,t)},e.prototype.atLeastOne=function(e,t){return this.atLeastOneInternal(e,t)},e.prototype.CONSUME=function(e,t){return this.consumeInternal(e,0,t)},e.prototype.CONSUME1=function(e,t){return this.consumeInternal(e,1,t)},e.prototype.CONSUME2=function(e,t){return this.consumeInternal(e,2,t)},e.prototype.CONSUME3=function(e,t){return this.consumeInternal(e,3,t)},e.prototype.CONSUME4=function(e,t){return this.consumeInternal(e,4,t)},e.prototype.CONSUME5=function(e,t){return this.consumeInternal(e,5,t)},e.prototype.CONSUME6=function(e,t){return this.consumeInternal(e,6,t)},e.prototype.CONSUME7=function(e,t){return this.consumeInternal(e,7,t)},e.prototype.CONSUME8=function(e,t){return this.consumeInternal(e,8,t)},e.prototype.CONSUME9=function(e,t){return this.consumeInternal(e,9,t)},e.prototype.SUBRULE=function(e,t){return this.subruleInternal(e,0,t)},e.prototype.SUBRULE1=function(e,t){return this.subruleInternal(e,1,t)},e.prototype.SUBRULE2=function(e,t){return this.subruleInternal(e,2,t)},e.prototype.SUBRULE3=function(e,t){return this.subruleInternal(e,3,t)},e.prototype.SUBRULE4=function(e,t){return this.subruleInternal(e,4,t)},e.prototype.SUBRULE5=function(e,t){return this.subruleInternal(e,5,t)},e.prototype.SUBRULE6=function(e,t){return this.subruleInternal(e,6,t)},e.prototype.SUBRULE7=function(e,t){return this.subruleInternal(e,7,t)},e.prototype.SUBRULE8=function(e,t){return this.subruleInternal(e,8,t)},e.prototype.SUBRULE9=function(e,t){return this.subruleInternal(e,9,t)},e.prototype.OPTION=function(e){return this.optionInternal(e,0)},e.prototype.OPTION1=function(e){return this.optionInternal(e,1)},e.prototype.OPTION2=function(e){return this.optionInternal(e,2)},e.prototype.OPTION3=function(e){return this.optionInternal(e,3)},e.prototype.OPTION4=function(e){return this.optionInternal(e,4)},e.prototype.OPTION5=function(e){return this.optionInternal(e,5)},e.prototype.OPTION6=function(e){return this.optionInternal(e,6)},e.prototype.OPTION7=function(e){return this.optionInternal(e,7)},e.prototype.OPTION8=function(e){return this.optionInternal(e,8)},e.prototype.OPTION9=function(e){return this.optionInternal(e,9)},e.prototype.OR=function(e){return this.orInternal(e,0)},e.prototype.OR1=function(e){return this.orInternal(e,1)},e.prototype.OR2=function(e){return this.orInternal(e,2)},e.prototype.OR3=function(e){return this.orInternal(e,3)},e.prototype.OR4=function(e){return this.orInternal(e,4)},e.prototype.OR5=function(e){return this.orInternal(e,5)},e.prototype.OR6=function(e){return this.orInternal(e,6)},e.prototype.OR7=function(e){return this.orInternal(e,7)},e.prototype.OR8=function(e){return this.orInternal(e,8)},e.prototype.OR9=function(e){return this.orInternal(e,9)},e.prototype.MANY=function(e){this.manyInternal(0,e)},e.prototype.MANY1=function(e){this.manyInternal(1,e)},e.prototype.MANY2=function(e){this.manyInternal(2,e)},e.prototype.MANY3=function(e){this.manyInternal(3,e)},e.prototype.MANY4=function(e){this.manyInternal(4,e)},e.prototype.MANY5=function(e){this.manyInternal(5,e)},e.prototype.MANY6=function(e){this.manyInternal(6,e)},e.prototype.MANY7=function(e){this.manyInternal(7,e)},e.prototype.MANY8=function(e){this.manyInternal(8,e)},e.prototype.MANY9=function(e){this.manyInternal(9,e)},e.prototype.MANY_SEP=function(e){this.manySepFirstInternal(0,e)},e.prototype.MANY_SEP1=function(e){this.manySepFirstInternal(1,e)},e.prototype.MANY_SEP2=function(e){this.manySepFirstInternal(2,e)},e.prototype.MANY_SEP3=function(e){this.manySepFirstInternal(3,e)},e.prototype.MANY_SEP4=function(e){this.manySepFirstInternal(4,e)},e.prototype.MANY_SEP5=function(e){this.manySepFirstInternal(5,e)},e.prototype.MANY_SEP6=function(e){this.manySepFirstInternal(6,e)},e.prototype.MANY_SEP7=function(e){this.manySepFirstInternal(7,e)},e.prototype.MANY_SEP8=function(e){this.manySepFirstInternal(8,e)},e.prototype.MANY_SEP9=function(e){this.manySepFirstInternal(9,e)},e.prototype.AT_LEAST_ONE=function(e){this.atLeastOneInternal(0,e)},e.prototype.AT_LEAST_ONE1=function(e){return this.atLeastOneInternal(1,e)},e.prototype.AT_LEAST_ONE2=function(e){this.atLeastOneInternal(2,e)},e.prototype.AT_LEAST_ONE3=function(e){this.atLeastOneInternal(3,e)},e.prototype.AT_LEAST_ONE4=function(e){this.atLeastOneInternal(4,e)},e.prototype.AT_LEAST_ONE5=function(e){this.atLeastOneInternal(5,e)},e.prototype.AT_LEAST_ONE6=function(e){this.atLeastOneInternal(6,e)},e.prototype.AT_LEAST_ONE7=function(e){this.atLeastOneInternal(7,e)},e.prototype.AT_LEAST_ONE8=function(e){this.atLeastOneInternal(8,e)},e.prototype.AT_LEAST_ONE9=function(e){this.atLeastOneInternal(9,e)},e.prototype.AT_LEAST_ONE_SEP=function(e){this.atLeastOneSepFirstInternal(0,e)},e.prototype.AT_LEAST_ONE_SEP1=function(e){this.atLeastOneSepFirstInternal(1,e)},e.prototype.AT_LEAST_ONE_SEP2=function(e){this.atLeastOneSepFirstInternal(2,e)},e.prototype.AT_LEAST_ONE_SEP3=function(e){this.atLeastOneSepFirstInternal(3,e)},e.prototype.AT_LEAST_ONE_SEP4=function(e){this.atLeastOneSepFirstInternal(4,e)},e.prototype.AT_LEAST_ONE_SEP5=function(e){this.atLeastOneSepFirstInternal(5,e)},e.prototype.AT_LEAST_ONE_SEP6=function(e){this.atLeastOneSepFirstInternal(6,e)},e.prototype.AT_LEAST_ONE_SEP7=function(e){this.atLeastOneSepFirstInternal(7,e)},e.prototype.AT_LEAST_ONE_SEP8=function(e){this.atLeastOneSepFirstInternal(8,e)},e.prototype.AT_LEAST_ONE_SEP9=function(e){this.atLeastOneSepFirstInternal(9,e)},e.prototype.RULE=function(e,t,n){if(void 0===n&&(n=Rr),v(this.definedRulesNames,e)){var r={message:_n.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:vr.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(r)}this.definedRulesNames.push(e);var s=this.defineRule(e,t,n);return this[e]=s,s},e.prototype.OVERRIDE_RULE=function(e,t,n){void 0===n&&(n=Rr);var r,s,i,o,a,l=[];l=l.concat((r=e,s=this.definedRulesNames,i=this.className,a=[],v(s,r)||(o="Invalid rule override, rule: ->"+r+"<- cannot be overridden in the grammar: ->"+i+"<-as it is not defined in any of the super grammars ",a.push({message:o,type:vr.INVALID_RULE_OVERRIDE,ruleName:r})),a)),this.definitionErrors.push.apply(this.definitionErrors,l);var h=this.defineRule(e,t,n);return this[e]=h,h},e.prototype.BACKTRACK=function(e,t){return function(){this.isBackTrackingStack.push(1);var n=this.saveRecogState();try{return e.apply(this,t),!0}catch(e){if(kn(e))return!1;throw e}finally{this.reloadRecogState(n),this.isBackTrackingStack.pop()}}},e.prototype.getGAstProductions=function(){return this.gastProductionsCache},e.prototype.getSerializedGastProductions=function(){return mt(o(this.gastProductionsCache))},e}(),sr=function(){function e(){}return e.prototype.initRecognizerEngine=function(e,t){if(this.className=qn(this.constructor),this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=Ie,this.definedRulesNames=[],this.tokensMap={},this.allRuleNames=[],this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},C(t,"serializedGrammar"))throw Error("The Parser's configuration can no longer contain a <serializedGrammar> property.\n\tSee: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_6-0-0\n\tFor Further details.");if(b(e)){if(s(e))throw Error("A Token Vocabulary cannot be empty.\n\tNote that the first argument for the parser constructor\n\tis no longer a Token vector (since v4.0).");if("number"==typeof e[0].startOffset)throw Error("The Parser constructor no longer accepts a token vector as the first argument.\n\tSee: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_4-0-0\n\tFor Further details.")}if(b(e))this.tokensMap=_(e,function(e,t){return e[t.name]=t,e},{});else if(C(e,"modes")&&O(l(o(e.modes)),He)){var n=A(l(o(e.modes)));this.tokensMap=_(n,function(e,t){return e[t.name]=t,e},{})}else{if(!I(e))throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap=R(e)}this.tokensMap.EOF=tt;var r=O(o(e),function(e){return s(e.categoryMatches)});this.tokenMatcher=r?Ie:Me,Pe(o(this.tokensMap))},e.prototype.defineRule=function(e,t,n){if(this.selfAnalysisDone)throw Error("Grammar rule <"+e+"> may not be defined after the 'performSelfAnalysis' method has been called'\nMake sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.");var r,s=C(n,"resyncEnabled")?n.resyncEnabled:Rr.resyncEnabled,i=C(n,"recoveryValueFunc")?n.recoveryValueFunc:Rr.recoveryValueFunc,o=this.ruleShortNameIdx<<12;function a(e){try{if(!0===this.outputCst){t.apply(this,e);var n=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(n),n}return t.apply(this,e)}catch(e){return this.invokeRuleCatch(e,s,i)}finally{this.ruleFinallyStateUpdate()}}this.ruleShortNameIdx++,this.shortRuleNameToFull[o]=e,this.fullRuleNameToShort[e]=o;return(r=function(t,n){return void 0===t&&(t=0),this.ruleInvocationStateUpdate(o,e,t),a.call(this,n)}).ruleName=e,r.originalGrammarAction=t,r},e.prototype.invokeRuleCatch=function(e,t,n){var r=1===this.RULE_STACK.length,s=t&&!this.isBackTracking()&&this.recoveryEnabled;if(kn(e)){var i=e;if(s){var o,a=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(a))return i.resyncedTokens=this.reSyncTo(a),this.outputCst?((o=this.CST_STACK[this.CST_STACK.length-1]).recoveredNode=!0,o):n();throw this.outputCst&&((o=this.CST_STACK[this.CST_STACK.length-1]).recoveredNode=!0,i.partialCstResult=o),i}if(r)return this.moveToTerminatedState(),n();throw i}throw e},e.prototype.optionInternal=function(e,t){var n=this.getKeyForAutomaticLookahead(Ot,t),r=this.nestedRuleBeforeClause(e,n);try{return this.optionInternalLogic(e,t,n)}finally{void 0!==r&&this.nestedRuleFinallyClause(n,r)}},e.prototype.optionInternalNoCst=function(e,t){var n=this.getKeyForAutomaticLookahead(Ot,t);return this.optionInternalLogic(e,t,n)},e.prototype.optionInternalLogic=function(e,t,n){var r,s,i=this,o=this.getLaFuncFromCache(n);if(void 0!==e.DEF){if(r=e.DEF,void 0!==(s=e.GATE)){var a=o;o=function(){return s.call(i)&&a.call(i)}}}else r=e;if(!0===o.call(this))return r.call(this)},e.prototype.atLeastOneInternal=function(e,t){var n=this.getKeyForAutomaticLookahead(Pt,e),r=this.nestedRuleBeforeClause(t,n);try{return this.atLeastOneInternalLogic(e,t,n)}finally{void 0!==r&&this.nestedRuleFinallyClause(n,r)}},e.prototype.atLeastOneInternalNoCst=function(e,t){var n=this.getKeyForAutomaticLookahead(Pt,e);this.atLeastOneInternalLogic(e,t,n)},e.prototype.atLeastOneInternalLogic=function(e,t,n){var r,s,i=this,o=this.getLaFuncFromCache(n);if(void 0!==t.DEF){if(r=t.DEF,void 0!==(s=t.GATE)){var a=o;o=function(){return s.call(i)&&a.call(i)}}}else r=t;if(!0!==o.call(this))throw this.raiseEarlyExitException(e,Jt.REPETITION_MANDATORY,t.ERR_MSG);for(var l=this.doSingleRepetition(r);!0===o.call(this)&&!0===l;)l=this.doSingleRepetition(r);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,t],o,Pt,e,Kt)},e.prototype.atLeastOneSepFirstInternal=function(e,t){var n=this.getKeyForAutomaticLookahead(Dt,e),r=this.nestedRuleBeforeClause(t,n);try{this.atLeastOneSepFirstInternalLogic(e,t,n)}finally{void 0!==r&&this.nestedRuleFinallyClause(n,r)}},e.prototype.atLeastOneSepFirstInternalNoCst=function(e,t){var n=this.getKeyForAutomaticLookahead(Dt,e);this.atLeastOneSepFirstInternalLogic(e,t,n)},e.prototype.atLeastOneSepFirstInternalLogic=function(e,t,n){var r=this,s=t.DEF,i=t.SEP;if(!0!==this.getLaFuncFromCache(n).call(this))throw this.raiseEarlyExitException(e,Jt.REPETITION_MANDATORY_WITH_SEPARATOR,t.ERR_MSG);s.call(this);for(var o=function(){return r.tokenMatcher(r.LA(1),i)};!0===this.tokenMatcher(this.LA(1),i);)this.CONSUME(i),s.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,o,s,Xt],o,Dt,e,Xt)},e.prototype.manyInternal=function(e,t){var n=this.getKeyForAutomaticLookahead(xt,e),r=this.nestedRuleBeforeClause(t,n);try{return this.manyInternalLogic(e,t,n)}finally{void 0!==r&&this.nestedRuleFinallyClause(n,r)}},e.prototype.manyInternalNoCst=function(e,t){var n=this.getKeyForAutomaticLookahead(xt,e);return this.manyInternalLogic(e,t,n)},e.prototype.manyInternalLogic=function(e,t,n){var r,s,i=this,o=this.getLaFuncFromCache(n);if(void 0!==t.DEF){if(r=t.DEF,void 0!==(s=t.GATE)){var a=o;o=function(){return s.call(i)&&a.call(i)}}}else r=t;for(var l=!0;!0===o.call(this)&&!0===l;)l=this.doSingleRepetition(r);this.attemptInRepetitionRecovery(this.manyInternal,[e,t],o,xt,e,zt,l)},e.prototype.manySepFirstInternal=function(e,t){var n=this.getKeyForAutomaticLookahead(Lt,e),r=this.nestedRuleBeforeClause(t,n);try{this.manySepFirstInternalLogic(e,t,n)}finally{void 0!==r&&this.nestedRuleFinallyClause(n,r)}},e.prototype.manySepFirstInternalNoCst=function(e,t){var n=this.getKeyForAutomaticLookahead(Lt,e);this.manySepFirstInternalLogic(e,t,n)},e.prototype.manySepFirstInternalLogic=function(e,t,n){var r=this,s=t.DEF,i=t.SEP;if(!0===this.getLaFuncFromCache(n).call(this)){s.call(this);for(var o=function(){return r.tokenMatcher(r.LA(1),i)};!0===this.tokenMatcher(this.LA(1),i);)this.CONSUME(i),s.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,o,s,$t],o,Lt,e,$t)}},e.prototype.repetitionSepSecondInternal=function(e,t,n,r,s){for(;n();)this.CONSUME(t),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,t,n,r,s],n,Dt,e,s)},e.prototype.doSingleRepetition=function(e){var t=this.getLexerPosition();return e.call(this),this.getLexerPosition()>t},e.prototype.orInternalNoCst=function(e,t){var n=b(e)?e:e.DEF,r=this.getKeyForAutomaticLookahead(It,t),s=this.getLaFuncFromCache(r).call(this,n);if(void 0!==s)return n[s].ALT.call(this);this.raiseNoAltException(t,e.ERR_MSG)},e.prototype.orInternal=function(e,t){var n=this.getKeyForAutomaticLookahead(It,t),r=this.nestedRuleBeforeClause(e,n);try{var s=b(e)?e:e.DEF,i=this.getLaFuncFromCache(n).call(this,s);if(void 0!==i){var o=s[i],a=this.nestedAltBeforeClause(o,t,It,i);try{return o.ALT.call(this)}finally{void 0!==a&&this.nestedRuleFinallyClause(a.shortName,a.nestedName)}}this.raiseNoAltException(t,e.ERR_MSG)}finally{void 0!==r&&this.nestedRuleFinallyClause(n,r)}},e.prototype.ruleFinallyStateUpdate=function(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),0===this.RULE_STACK.length&&!1===this.isAtEndOfInput()){var e=this.LA(1),t=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new Un(t,e))}},e.prototype.subruleInternal=function(e,t,n){var r;try{var s=void 0!==n?n.ARGS:void 0;return r=e.call(this,t,s),this.cstPostNonTerminal(r,void 0!==n&&void 0!==n.LABEL?n.LABEL:e.ruleName),r}catch(t){this.subruleInternalError(t,n,e.ruleName)}},e.prototype.subruleInternalError=function(e,t,n){throw kn(e)&&void 0!==e.partialCstResult&&(this.cstPostNonTerminal(e.partialCstResult,void 0!==t&&void 0!==t.LABEL?t.LABEL:n),delete e.partialCstResult),e},e.prototype.consumeInternal=function(e,t,n){var r;try{var s=this.LA(1);!0===this.tokenMatcher(s,e)?(this.consumeToken(),r=s):this.consumeInternalError(e,s,n)}catch(n){r=this.consumeInternalRecovery(e,t,n)}return this.cstPostTerminal(void 0!==n&&void 0!==n.LABEL?n.LABEL:e.name,r),r},e.prototype.consumeInternalError=function(e,t,n){var r,s=this.LA(0);throw r=void 0!==n&&n.ERR_MSG?n.ERR_MSG:this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:t,previous:s,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new Hn(r,t,s))},e.prototype.consumeInternalRecovery=function(e,t,n){if(!this.recoveryEnabled||"MismatchedTokenException"!==n.name||this.isBackTracking())throw n;var r=this.getFollowsForInRuleRecovery(e,t);try{return this.tryInRuleRecovery(e,r)}catch(e){throw e.name===Wn?n:e}},e.prototype.saveRecogState=function(){var e=this.errors,t=S(this.RULE_STACK);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:t,CST_STACK:this.CST_STACK,LAST_EXPLICIT_RULE_STACK:this.LAST_EXPLICIT_RULE_STACK}},e.prototype.reloadRecogState=function(e){this.errors=e.errors,this.importLexerState(e.lexerState),this.RULE_STACK=e.RULE_STACK},e.prototype.ruleInvocationStateUpdate=function(e,t,n){this.RULE_OCCURRENCE_STACK.push(n),this.RULE_STACK.push(e),this.cstInvocationStateUpdate(t,e)},e.prototype.isBackTracking=function(){return 0!==this.isBackTrackingStack.length},e.prototype.getCurrRuleFullName=function(){var e=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[e]},e.prototype.shortRuleNameToFullName=function(e){return this.shortRuleNameToFull[e]},e.prototype.isAtEndOfInput=function(){return this.tokenMatcher(this.LA(1),tt)},e.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.LAST_EXPLICIT_RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e}(),ir=function(){function e(){}return e.prototype.initErrorHandler=function(e){this._errors=[],this.errorMessageProvider=k(e.errorMessageProvider,Sr.errorMessageProvider)},e.prototype.SAVE_ERROR=function(e){if(kn(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:S(this.RULE_OCCURRENCE_STACK)},this._errors.push(e),e;throw Error("Trying to save an Error which is not a RecognitionException")},Object.defineProperty(e.prototype,"errors",{get:function(){return S(this._errors)},set:function(e){this._errors=e},enumerable:!0,configurable:!0}),e.prototype.raiseEarlyExitException=function(e,t,n){for(var r=this.getCurrRuleFullName(),s=hn(e,this.getGAstProductions()[r],t,this.maxLookahead)[0],i=[],o=1;o<=this.maxLookahead;o++)i.push(this.LA(o));var a=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:s,actual:i,previous:this.LA(0),customUserDescription:n,ruleName:r});throw this.SAVE_ERROR(new Vn(a,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(e,t){for(var n=this.getCurrRuleFullName(),r=ln(e,this.getGAstProductions()[n],this.maxLookahead),s=[],i=1;i<=this.maxLookahead;i++)s.push(this.LA(i));var o=this.LA(0),a=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:r,actual:s,previous:o,customUserDescription:t,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new Fn(a,this.LA(1),o))},e}(),or=function(){function e(){}return e.prototype.initContentAssist=function(){},e.prototype.computeContentAssist=function(e,t){var n=this.gastProductionsCache[e];if(g(n))throw Error("Rule ->"+e+"<- does not exist in this grammar.");return Qt([n],t,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(e){var t=h(e.ruleStack),n=this.getGAstProductions()[t];return new Gt(n,e).startWalking()},e}(),ar={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(ar);var lr=!0,hr=Math.pow(2,8)-1,ur=et({name:"RECORDING_PHASE_TOKEN",pattern:Be.NA});Pe([ur]);var cr=nt(ur,"This IToken indicates the Parser is in Recording Phase\n\tSee: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details",-1,-1,-1,-1,-1,-1);Object.freeze(cr);var dr={name:"This CSTNode indicates the Parser is in Recording Phase\n\tSee: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details",children:{}},gr=function(){function e(){}return e.prototype.initGastRecorder=function(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1},e.prototype.enableRecording=function(){var e=this;this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",function(){for(var t=function(t){var n=t>0?t:"";e["CONSUME"+n]=function(e,n){return this.consumeInternalRecord(e,t,n)},e["SUBRULE"+n]=function(e,n){return this.subruleInternalRecord(e,t,n)},e["OPTION"+n]=function(e){return this.optionInternalRecord(e,t)},e["OR"+n]=function(e){return this.orInternalRecord(e,t)},e["MANY"+n]=function(e){this.manyInternalRecord(t,e)},e["MANY_SEP"+n]=function(e){this.manySepFirstInternalRecord(t,e)},e["AT_LEAST_ONE"+n]=function(e){this.atLeastOneInternalRecord(t,e)},e["AT_LEAST_ONE_SEP"+n]=function(e){this.atLeastOneSepFirstInternalRecord(t,e)}},n=0;n<10;n++)t(n);e.consume=function(e,t,n){return this.consumeInternalRecord(t,e,n)},e.subrule=function(e,t,n){return this.subruleInternalRecord(t,e,n)},e.option=function(e,t){return this.optionInternalRecord(t,e)},e.or=function(e,t){return this.orInternalRecord(t,e)},e.many=function(e,t){this.manyInternalRecord(e,t)},e.atLeastOne=function(e,t){this.atLeastOneInternalRecord(e,t)},e.ACTION=e.ACTION_RECORD,e.BACKTRACK=e.BACKTRACK_RECORD,e.LA=e.LA_RECORD})},e.prototype.disableRecording=function(){var e=this;this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",function(){for(var t=0;t<10;t++){var n=t>0?t:"";delete e["CONSUME"+n],delete e["SUBRULE"+n],delete e["OPTION"+n],delete e["OR"+n],delete e["MANY"+n],delete e["MANY_SEP"+n],delete e["AT_LEAST_ONE"+n],delete e["AT_LEAST_ONE_SEP"+n]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA})},e.prototype.ACTION_RECORD=function(e){},e.prototype.BACKTRACK_RECORD=function(e,t){return function(){return!0}},e.prototype.LA_RECORD=function(e){return Cr},e.prototype.topLevelRuleRecord=function(e,t){try{var n=new at({definition:[],name:e});return n.name=e,this.recordingProdStack.push(n),t.call(this),this.recordingProdStack.pop(),n}catch(e){if(!0!==e.KNOWN_RECORDER_ERROR)try{e.message=e.message+'\n\t This error was thrown during the "grammar recording phase" For more info see:\n\thttps://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording'}catch(t){throw e}throw e}},e.prototype.optionInternalRecord=function(e,t){return pr.call(this,ht,e,t)},e.prototype.atLeastOneInternalRecord=function(e,t){pr.call(this,ut,t,e)},e.prototype.atLeastOneSepFirstInternalRecord=function(e,t){pr.call(this,ct,t,e,lr)},e.prototype.manyInternalRecord=function(e,t){pr.call(this,dt,t,e)},e.prototype.manySepFirstInternalRecord=function(e,t){pr.call(this,gt,t,e,lr)},e.prototype.orInternalRecord=function(e,t){return fr.call(this,e,t)},e.prototype.subruleInternalRecord=function(e,t,n){if(Er(t),!e||!1===C(e,"ruleName")){var r=new Error("<SUBRULE"+mr(t)+"> argument is invalid expecting a Parser method reference but got: <"+JSON.stringify(e)+">\n inside top level rule: <"+this.recordingProdStack[0].name+">");throw r.KNOWN_RECORDER_ERROR=!0,r}var s=j(this.recordingProdStack),i=e.ruleName,o=new ot({idx:t,nonTerminalName:i,referencedRule:void 0});return s.definition.push(o),this.outputCst?dr:ar},e.prototype.consumeInternalRecord=function(e,t,n){if(Er(t),!De(e)){var r=new Error("<CONSUME"+mr(t)+"> argument is invalid expecting a TokenType reference but got: <"+JSON.stringify(e)+">\n inside top level rule: <"+this.recordingProdStack[0].name+">");throw r.KNOWN_RECORDER_ERROR=!0,r}var s=j(this.recordingProdStack),i=new ft({idx:t,terminalType:e});return s.definition.push(i),cr},e}();function pr(e,t,n,r){void 0===r&&(r=!1),Er(n);var s=j(this.recordingProdStack),i=p(t)?t:t.DEF,o=new e({definition:[],idx:n});return C(t,"NAME")&&(o.name=t.NAME),r&&(o.separator=t.SEP),C(t,"MAX_LOOKAHEAD")&&(o.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(o),i.call(this),s.definition.push(o),this.recordingProdStack.pop(),ar}function fr(e,t){var n=this;Er(t);var r=j(this.recordingProdStack),s=!1===b(e),i=!1===s?e:e.DEF,o=new pt({definition:[],idx:t,ignoreAmbiguities:s&&!0===e.IGNORE_AMBIGUITIES});C(e,"NAME")&&(o.name=e.NAME),C(e,"MAX_LOOKAHEAD")&&(o.maxLookahead=e.MAX_LOOKAHEAD);var a=P(i,function(e){return p(e.GATE)});return o.hasPredicates=a,r.definition.push(o),c(i,function(e){var t=new lt({definition:[]});o.definition.push(t),C(e,"NAME")&&(t.name=e.NAME),C(e,"IGNORE_AMBIGUITIES")?t.ignoreAmbiguities=e.IGNORE_AMBIGUITIES:C(e,"GATE")&&(t.ignoreAmbiguities=!0),n.recordingProdStack.push(t),e.ALT.call(n),n.recordingProdStack.pop()}),ar}function mr(e){return 0===e?"":""+e}function Er(e){if(e<0||e>hr){var t=new Error("Invalid DSL Method idx value: <"+e+">\n\tIdx value must be a none negative value smaller than "+(hr+1));throw t.KNOWN_RECORDER_ERROR=!0,t}}var wr=function(){function e(){}return e.prototype.initPerformanceTracer=function(e){if(C(e,"traceInitPerf")){var t=e.traceInitPerf,n="number"==typeof t;this.traceInitMaxIdent=n?t:1/0,this.traceInitPerf=n?t>0:t}else this.traceInitMaxIdent=0,this.traceInitPerf=Sr.traceInitPerf;this.traceInitIndent=-1},e.prototype.TRACE_INIT=function(e,t){if(!0===this.traceInitPerf){this.traceInitIndent++;var n=new Array(this.traceInitIndent+1).join("\t");this.traceInitIndent<this.traceInitMaxIdent&&console.log(n+"--\x3e <"+e+">");var r=z(t),s=r.time,i=r.value,o=s>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&o(n+"<-- <"+e+"> time: "+s+"ms"),this.traceInitIndent--,i}return t()},e}(),yr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cr=nt(tt,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(Cr);var vr,Sr=Object.freeze({recoveryEnabled:!1,maxLookahead:4,ignoredIssues:{},dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:Rn,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),Rr=Object.freeze({recoveryValueFunc:function(){},resyncEnabled:!0});function Tr(e){return void 0===e&&(e=void 0),function(){return e}}!function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.INVALID_NESTED_RULE_NAME=10]="INVALID_NESTED_RULE_NAME",e[e.DUPLICATE_NESTED_NAME=11]="DUPLICATE_NESTED_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=12]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=13]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=14]="TOO_MANY_ALTS"}(vr||(vr={}));var _r,Nr=function(){function e(e,t){void 0===t&&(t=Sr),this.ignoredIssues=Sr.ignoredIssues,this.definitionErrors=[],this.selfAnalysisDone=!1;var n=this;n.initErrorHandler(t),n.initLexerAdapter(),n.initLooksAhead(t),n.initRecognizerEngine(e,t),n.initRecoverable(t),n.initTreeBuilder(t),n.initContentAssist(),n.initGastRecorder(t),n.initPerformanceTracer(t),C(t,"ignoredIssues")&&t.ignoredIssues!==Sr.ignoredIssues&&W("The <ignoredIssues> IParserConfig property is soft-deprecated and will be removed in future versions.\n\tPlease use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead."),this.ignoredIssues=C(t,"ignoredIssues")?t.ignoredIssues:Sr.ignoredIssues,this.skipValidations=C(t,"skipValidations")?t.skipValidations:Sr.skipValidations}return e.performSelfAnalysis=function(e){e.performSelfAnalysis()},e.prototype.performSelfAnalysis=function(){var t=this;this.TRACE_INIT("performSelfAnalysis",function(){var n;t.selfAnalysisDone=!0;var r=t.className;t.TRACE_INIT("toFastProps",function(){G(t)}),t.TRACE_INIT("Grammar Recording",function(){try{t.enableRecording(),c(t.definedRulesNames,function(e){var n=t[e].originalGrammarAction,r=void 0;t.TRACE_INIT(e+" Rule",function(){r=t.topLevelRuleRecord(e,n)}),t.gastProductionsCache[e]=r})}finally{t.disableRecording()}});var i=[];if(t.TRACE_INIT("Grammar Resolving",function(){i=bn({rules:o(t.gastProductionsCache)}),t.definitionErrors.push.apply(t.definitionErrors,i)}),t.TRACE_INIT("Grammar Validations",function(){if(s(i)&&!1===t.skipValidations){var e=Mn({rules:o(t.gastProductionsCache),maxLookahead:t.maxLookahead,tokenTypes:o(t.tokensMap),ignoredIssues:t.ignoredIssues,errMsgProvider:_n,grammarName:r});t.definitionErrors.push.apply(t.definitionErrors,e)}}),s(t.definitionErrors)&&(t.recoveryEnabled&&t.TRACE_INIT("computeAllProdsFollows",function(){var e,n,r=(e=o(t.gastProductionsCache),n={},c(e,function(e){var t=new Mt(e).startWalking();L(n,t)}),n);t.resyncFollows=r}),t.TRACE_INIT("ComputeLookaheadFunctions",function(){t.preComputeLookaheadFunctions(o(t.gastProductionsCache))})),t.TRACE_INIT("expandAllNestedRuleNames",function(){var e,n,r,s=(e=o(t.gastProductionsCache),n=t.fullRuleNameToShort,r={allRuleNames:[]},c(e,function(e){var t=n[e.name];r.allRuleNames.push(e.name);var s=new Wt(t);e.accept(s),c(s.result,function(t){t.def,t.key;var n=t.name;r.allRuleNames.push(e.name+n)})}),r);t.allRuleNames=s.allRuleNames}),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!s(t.definitionErrors))throw n=a(t.definitionErrors,function(e){return e.message}),new Error("Parser Definition Errors detected:\n "+n.join("\n-------------------------------\n"))})},e.DEFER_DEFINITION_ERRORS_HANDLING=!1,e}();_r=Nr,[Gn,zn,tr,nr,sr,rr,ir,or,gr,wr].forEach(function(e){var t=e.prototype;Object.getOwnPropertyNames(t).forEach(function(n){if("constructor"!==n){var r=Object.getOwnPropertyDescriptor(t,n);r&&(r.get||r.set)?Object.defineProperty(_r.prototype,n,r):_r.prototype[n]=e.prototype[n]}})});var Ar=function(e){function t(t,n){void 0===n&&(n=Sr);var r=R(n);return r.outputCst=!0,e.call(this,t,r)||this}return yr(t,e),t}(Nr),br=function(e){function t(t,n){void 0===n&&(n=Sr);var r=R(n);return r.outputCst=!1,e.call(this,t,r)||this}return yr(t,e),t}(Nr);function Mr(e,t){var n=void 0===t?{}:t,s=n.resourceBase,i=void 0===s?"https://unpkg.com/chevrotain@"+r+"/diagrams/":s,o=n.css;return'\n\x3c!-- This is a generated file --\x3e\n<!DOCTYPE html>\n<meta charset="utf-8">\n<style>\n body {\n background-color: hsl(30, 20%, 95%)\n }\n</style>\n\n'+("\n<link rel='stylesheet' href='"+(void 0===o?"https://unpkg.com/chevrotain@"+r+"/diagrams/diagrams.css":o)+"'>\n")+("\n<script src='"+i+"vendor/railroad-diagrams.js'><\/script>\n<script src='"+i+"src/diagrams_builder.js'><\/script>\n<script src='"+i+"src/diagrams_behavior.js'><\/script>\n<script src='"+i+"src/main.js'><\/script>\n")+'\n<div id="diagrams" align="center"></div> \n'+("\n<script>\n window.serializedGrammar = "+JSON.stringify(e,null," ")+";\n<\/script>\n")+'\n<script>\n var diagramsDiv = document.getElementById("diagrams");\n main.drawDiagramsFromSerializedGrammar(serializedGrammar, diagramsDiv);\n<\/script>\n'}var Ir="\n";function Or(e){return"\nfunction "+e.name+"(tokenVocabulary, config) {\n // invoke super constructor\n // No support for embedded actions currently, so we can 'hardcode'\n // The use of CstParser.\n chevrotain.CstParser.call(this, tokenVocabulary, config)\n\n const $ = this\n\n "+(a(e.rules,function(e){return function(e,t){var n=Hr(t,'$.RULE("'+e.name+'", function() {')+Ir;return n+=kr(e.definition,t+1),n+=Hr(t+1,"})")+Ir}(e,1)}).join("\n")+"\n\n // very important to call this after all the rules have been defined.\n // otherwise the parser may not work correctly as it will lack information\n // derived during the self analysis phase.\n this.performSelfAnalysis(this)\n}\n\n// inheritance as implemented in javascript in the previous decade... :(\n")+e.name+".prototype = Object.create(chevrotain.CstParser.prototype)\n"+e.name+".prototype.constructor = "+e.name+" \n "}function xr(e,t){var n=Hr(t,"$.OR"+e.idx+"([")+Ir,r=a(e.definition,function(e){return function(e,t){var n=Hr(t,"{")+Ir;e.name&&(n+=Hr(t+1,'NAME: "'+e.name+'",')+Ir);return n+=Hr(t+1,"ALT: function() {")+Ir,n+=kr(e.definition,t+1),n+=Hr(t+1,"}")+Ir,n+=Hr(t,"}"),n}(e,t+1)});return n+=r.join(","+Ir),n+=Ir+Hr(t,"])"+Ir)}function Pr(e,t){if(e instanceof ot)return function(e,t){return Hr(t,"$.SUBRULE"+e.idx+"($."+e.nonTerminalName+")"+Ir)}(e,t);if(e instanceof ht)return Lr("OPTION",e,t);if(e instanceof ut)return Lr("AT_LEAST_ONE",e,t);if(e instanceof ct)return Lr("AT_LEAST_ONE_SEP",e,t);if(e instanceof gt)return Lr("MANY_SEP",e,t);if(e instanceof dt)return Lr("MANY",e,t);if(e instanceof pt)return xr(e,t);if(e instanceof ft)return function(e,t){var n=e.terminalType.name;return Hr(t,"$.CONSUME"+e.idx+"(this.tokensMap."+n+")"+Ir)}(e,t);if(e instanceof lt)return kr(e.definition,t);throw Error("non exhaustive match")}function Lr(e,t,n){var r=Hr(n,"$."+(e+t.idx)+"(");return t.name||t.separator?(r+="{"+Ir,t.name&&(r+=Hr(n+1,'NAME: "'+t.name+'"')+","+Ir),t.separator&&(r+=Hr(n+1,"SEP: this.tokensMap."+t.separator.name)+","+Ir),r+="DEF: "+Dr(t.definition,n+2)+Ir,r+=Hr(n,"}")+Ir):r+=Dr(t.definition,n+1),r+=Hr(n,")")+Ir}function Dr(e,t){var n="function() {"+Ir;return n+=kr(e,t),n+=Hr(t,"}")+Ir}function kr(e,t){var n="";return c(e,function(e){n+=Pr(e,t+1)}),n}function Hr(e,t){return Array(4*e+1).join(" ")+t}function Fr(e){var t=function(e){return" \n"+Or(e)+"\nreturn new "+e.name+"(tokenVocabulary, config) \n"}({name:e.name,rules:e.rules}),r=new Function("tokenVocabulary","config","chevrotain",t);return function(t){return r(e.tokenVocabulary,t,n(39250))}}function Ur(e){return function(e){return"\n(function (root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['chevrotain'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // Node. Does not work with strict CommonJS, but\n // only CommonJS-like environments that support module.exports,\n // like Node.\n module.exports = factory(require('chevrotain'));\n } else {\n // Browser globals (root is window)\n root.returnExports = factory(root.b);\n }\n}(typeof self !== 'undefined' ? self : this, function (chevrotain) {\n\n"+Or(e)+"\n \nreturn {\n "+e.name+": "+e.name+" \n}\n}));\n"}({name:e.name,rules:e.rules})}function Vr(){console.warn("The clearCache function was 'soft' removed from the Chevrotain API.\n\t It performs no action other than printing this message.\n\t Please avoid using it as it will be completely removed in the future")}},39303:(e,t,n)=>{"use strict";var r=n(21912),s=n(82397),i=n(83640);e.exports=r?function(e,t,n){return s.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},39326:(e,t,n)=>{"use strict";var r=n(69946);e.exports=function(e,t,n){for(var s=0,i=arguments.length>2?n:r(t),o=new e(i);i>s;)o[s]=t[s++];return o}},39329:()=>{},39500:(e,t,n)=>{"use strict";t.__esModule=!0,t.getEngineSettingsOverrides=o,t.getEngineSettingsWithDefaultsAndOverrides=function(e){var t;const n=e[r.PLUGIN_KEY],s=a(null!=n&&null!==(t=n.engine)&&void 0!==t&&t.hyperformula?n.engine:{}),l=o(e);return{...i,...s,...l}},t.getEngineSettingsWithOverrides=function(e){var t;const n=e[r.PLUGIN_KEY],s=a(null!=n&&null!==(t=n.engine)&&void 0!==t&&t.hyperformula?n.engine:{}),i=o(e);return{...s,...i}},t.haveEngineSettingsChanged=function(e,t){return Object.keys(t).some(n=>void 0!==t[n]&&t[n]!==e[n])},n(81396),n(39716),n(19874);var r=n(62243);const s=t.DEFAULT_LICENSE_KEY="internal-use-in-handsontable",i=t.DEFAULT_SETTINGS={licenseKey:s,useArrayArithmetic:!0,useColumnIndex:!1,useStats:!1,evaluateNullToZero:!0,precisionEpsilon:1e-13,precisionRounding:14,smartRounding:!0,leapYear1900:!1,nullDate:{year:1899,month:12,day:30},nullYear:30,dateFormats:["DD/MM/YYYY","DD/MM/YY"],timeFormats:["hh:mm","hh:mm:ss.sss"],matchWholeCell:!0,useRegularExpressions:!1,useWildcards:!0,functionArgSeparator:",",thousandSeparator:"",decimalSeparator:".",language:"enGB"};function o(e){var t;return{maxColumns:e.maxColumns,maxRows:e.maxRows,language:null===(t=e[r.PLUGIN_KEY])||void 0===t||null===(t=t.language)||void 0===t?void 0:t.langCode}}function a(e){return Object.keys(e).reduce((t,n)=>("hyperformula"!==n&&(t[n]=e[n]),t),{})}},39522:(e,t,n)=>{"use strict";var r=n(19617),s=n(54060),i=n(39303),o=n(71939),a=n(71671),l=n(21033),h=n(61338),u=n(36053).IteratorPrototype,c=n(79733),d=n(13479),g=n(59317),p=a("toStringTag"),f="IteratorHelper",m="WrapForValidIterator",E="normal",w="throw",y=l.set,C=function(e){var t=l.getterFor(e?m:f);return o(s(u),{next:function(){var n=t(this);if(e)return n.nextHandler();if(n.done)return c(void 0,!0);try{var r=n.nextHandler();return n.returnHandlerResult?r:c(r,n.done)}catch(e){throw n.done=!0,e}},return:function(){var n=t(this),s=n.iterator;if(n.done=!0,e){var i=h(s,"return");return i?r(i,s):c(void 0,!0)}if(n.inner)try{d(n.inner.iterator,E)}catch(e){return d(s,w,e)}if(n.openIters)try{g(n.openIters,E)}catch(e){return d(s,w,e)}return s&&d(s,E),c(void 0,!0)}})},v=C(!0),S=C(!1);i(S,p,"Iterator Helper"),e.exports=function(e,t,n){var r=function(r,s){s?(s.iterator=r.iterator,s.next=r.next):s=r,s.type=t?m:f,s.returnHandlerResult=!!n,s.nextHandler=e,s.counter=0,s.done=!1,y(this,s)};return r.prototype=t?v:S,r}},39691:(e,t,n)=>{"use strict";n(79888)},39716:(e,t,n)=>{"use strict";n(10705)},39951:()=>{},40041:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(49013);t.RENDERER_TYPE=r.RENDERER_TYPE,t.textRenderer=r.textRenderer},40104:(e,t)=>{"use strict";function n(e,t){let{childs:n}=e;if(0!==n.length)return n[0].data[t]}t.__esModule=!0,t.getFirstChildProperty=n,t.isNodeReflectsFirstChildColspan=function(e){return n(e,"origColspan")===e.data.origColspan},t.traverseHiddenNodeColumnIndexes=function(e,t){e.walkDown(e=>{let{data:n,childs:r}=e;if(!n.isHidden&&(t(n.columnIndex),0===r.length))for(let e=1;e<n.colspan;e++)t(n.columnIndex+e)})}},40136:(e,t,n)=>{"use strict";var r=n(36724),s=n(94988);e.exports=function(e){if("Function"===r(e))return s(e)}},40311:(e,t)=>{"use strict";t.__esModule=!0;t.GRID_GROUP="gridDefault",t.GRID_SCOPE="grid",t.GRID_TAB_NAVIGATION_GROUP="grid.tabNavigation",t.EDITOR_EDIT_GROUP="editorManager.handlingEditor",t.EDITOR_SCOPE="editor"},40455:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(81115)),i=n(95605),o=n(91782),a=n(38942),l=n(14089);const h=t.EDITOR_TYPE="password";class u extends i.TextEditor{constructor(){super(...arguments),(0,s.default)(this,"autoResize",(0,o.createInputElementResizer)(this.hot.rootDocument,{textContent:e=>"•".repeat(e.value.length)}))}static get EDITOR_TYPE(){return h}createElements(){super.createElements(),this.TEXTAREA=this.hot.rootDocument.createElement("input"),this.TEXTAREA.setAttribute("type","password"),this.TEXTAREA.setAttribute("data-hot-input",""),this.TEXTAREA.className="handsontableInput",this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,(0,a.empty)(this.TEXTAREA_PARENT),this.TEXTAREA.setAttribute(...(0,l.A11Y_TABINDEX)(-1)),this.TEXTAREA_PARENT.appendChild(this.TEXTAREA)}}t.PasswordEditor=u},40556:()=>{},40663:(e,t,n)=>{"use strict";var r=n(89035),s=n(83640);e.exports=!r(function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)})},40825:e=>{"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},40887:(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),(0,s.default)(this,"headerWidths",new Map),this.dataAccessObject=e,this.wtSettings=t}getWidth(e){return this.wtSettings.getSetting("columnWidth",e)||this.wtSettings.getSetting("defaultColumnWidth")}getHeaderHeight(e){let t=this.wtSettings.getSetting("stylesHandler").getDefaultRowHeight();const n=this.dataAccessObject.wtViewport.oversizedColumnHeaders[e];return void 0!==n&&(t=t?Math.max(t,n):n),t}getHeaderWidth(e){return this.headerWidths.get(this.dataAccessObject.wtTable.columnFilter.sourceToRendered(e))}calculateWidths(){const{wtSettings:e}=this;let t=e.getSetting("rowHeaderWidth");if(t=e.getSetting("onModifyRowHeaderWidth",t),null!=t){const n=e.getSetting("rowHeaders").length,r=e.getSetting("defaultColumnWidth");for(let e=0;e<n;e++){let n=Array.isArray(t)?t[e]:t;n=null==n?r:n,this.headerWidths.set(e,n)}}}}},41238:()=>{},41266:()=>{},41406:(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=r(n(90308)),a=n(68834),l=r(n(51191)),h=n(28861),u=n(28078),c=n(59766),d=n(14089);function g(e,t,n){p(e,t),t.set(e,n)}function p(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function f(e,t){return e.get(E(e,t))}function m(e,t,n){return e.set(E(e,t),n),n}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 WeakMap,y=new WeakMap,C=new WeakMap,v=new WeakMap,S=new WeakMap,R=new WeakMap,T=new WeakMap,_=new WeakMap,N=new WeakSet;function A(){return parseInt(this.hot.rootElement.getAttribute((0,d.A11Y_COLCOUNT)()[0]),10)}function b(e){const t=E(N,this,A).call(this)+e;(0,i.setAttribute)(this.hot.rootElement,...(0,d.A11Y_COLCOUNT)(t))}function M(){const e=this.hot.rootElement;this.hasVerticalScroll()?(0,i.addClass)(e,"htHasScrollY"):(0,i.removeClass)(e,"htHasScrollY"),this.isVerticallyScrollableByWindow()?(0,i.addClass)(e,"htVerticallyScrollableByWindow"):(0,i.removeClass)(e,"htVerticallyScrollableByWindow"),this.hasHorizontalScroll()?(0,i.addClass)(e,"htHasScrollX"):(0,i.removeClass)(e,"htHasScrollX"),this.isHorizontallyScrollableByWindow()?(0,i.addClass)(e,"htHorizontallyScrollableByWindow"):(0,i.removeClass)(e,"htHorizontallyScrollableByWindow")}t.default=class{constructor(e){var t,n;p(t=this,n=N),n.add(t),(0,s.default)(this,"hot",void 0),(0,s.default)(this,"eventManager",void 0),(0,s.default)(this,"settings",void 0),(0,s.default)(this,"THEAD",void 0),(0,s.default)(this,"TBODY",void 0),(0,s.default)(this,"_wt",void 0),(0,s.default)(this,"activeWt",void 0),g(this,w,0),g(this,y,0),(0,s.default)(this,"postponedAdjustElementsSize",!1),g(this,C,!1),g(this,v,void 0),g(this,S,void 0),g(this,R,0),g(this,T,0),g(this,_,null),this.hot=e,this.eventManager=new o.default(this.hot),this.settings=this.hot.getSettings(),this.createElements(),this.registerEvents(),this.initializeWalkontable()}render(){if(!this.hot.isRenderSuspended()){const e=this.hot.forceFullRender;this.hot.runHooks("beforeRender",e),this._wt.draw(!e),E(N,this,M).call(this),this.postponedAdjustElementsSize&&(this.postponedAdjustElementsSize=!1,this.adjustElementsSize(!0)),this.hot.runHooks("afterRender",e),this.hot.forceFullRender=!1}}adjustElementsSize(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]?this._wt.wtOverlays.adjustElementsSize():this.postponedAdjustElementsSize=!0}getCellAtCoords(e,t){const n=this._wt.getCell(e,t);return n<0?null:n}scrollViewport(e,t,n){return this._wt.scrollViewport(e,t,n)}scrollViewportHorizontally(e,t){return this._wt.scrollViewportHorizontally(e,t)}scrollViewportVertically(e,t){return this._wt.scrollViewportVertically(e,t)}createElements(){const{rootElement:e,rootDocument:t}=this.hot,n=e.getAttribute("style");n&&e.setAttribute("data-originalstyle",n),(0,i.addClass)(e,"handsontable"),m(S,this,t.createElement("TABLE")),(0,i.addClass)(f(S,this),"htCore"),this.hot.getSettings().tableClassName&&(0,i.addClass)(f(S,this),this.hot.getSettings().tableClassName),this.settings.ariaTags&&((0,i.setAttribute)(f(S,this),[(0,d.A11Y_PRESENTATION)()]),(0,i.setAttribute)(e,[(0,d.A11Y_TREEGRID)(),(0,d.A11Y_ROWCOUNT)(-1),(0,d.A11Y_COLCOUNT)(this.hot.countCols()),(0,d.A11Y_MULTISELECTABLE)()])),this.THEAD=t.createElement("THEAD"),f(S,this).appendChild(this.THEAD),this.TBODY=t.createElement("TBODY"),f(S,this).appendChild(this.TBODY),this.hot.table=f(S,this),this.hot.container.insertBefore(f(S,this),this.hot.container.firstChild)}registerEvents(){const{rootWrapperElement:e,rootElement:t,rootDocument:n,selection:r,rootWindow:s}=this.hot,o=n.documentElement;this.eventManager.addEventListener(t,"mousedown",e=>{m(C,this,!0),this.isTextSelectionAllowed(e.target)||((0,i.clearTextSelection)(s),e.preventDefault(),s.focus())}),this.eventManager.addEventListener(t,"mouseup",()=>{m(C,this,!1)}),this.eventManager.addEventListener(t,"mousemove",e=>{f(C,this)&&!this.isTextSelectionAllowed(e.target)&&(this.settings.fragmentSelection&&(0,i.clearTextSelection)(s),e.preventDefault())}),this.eventManager.addEventListener(o,"keyup",e=>{r.isInProgress()&&!e.shiftKey&&r.finish()}),this.eventManager.addEventListener(o,"mouseup",s=>{r.isInProgress()&&(0,a.isLeftClick)(s)&&r.finish(),m(v,this,!1);const o=(0,i.isOutsideInput)(n.activeElement);(0,i.isInput)(n.activeElement)&&!o||!o&&(r.isSelected()||r.isSelectedByAnyHeader()||(null!=e?e:t).contains(s.target)||(0,a.isRightClick)(s))||this.hot.unlisten()}),this.eventManager.addEventListener(o,"contextmenu",e=>{r.isInProgress()&&(0,a.isRightClick)(e)&&(r.finish(),m(v,this,!1))}),this.eventManager.addEventListener(o,"touchend",()=>{r.isInProgress()&&r.finish(),m(v,this,!1)}),this.eventManager.addEventListener(o,"mousedown",e=>{const r=e.target,s=e.x||e.clientX,a=e.y||e.clientY;let l=e.target;if(f(v,this)||!t||!this.hot.view)return;const{holder:h}=this._wt.wtTable;if(l===h){const e=(0,i.getScrollbarWidth)(n);if(n.elementFromPoint(s+e,a)!==h||n.elementFromPoint(s,a+e)!==h)return}else for(;l!==o;){if(null===l){if(e.isTargetWebComponent)break;return}if(l===t)return;l=l.parentNode}("function"==typeof this.settings.outsideClickDeselects?this.settings.outsideClickDeselects(r):this.settings.outsideClickDeselects)?this.hot.deselectCell():this.hot.destroyEditor(!1,!1)});let l=(0,i.getParentWindow)(s);for(;null!==l;)this.eventManager.addEventListener(l.document.documentElement,"click",()=>{this.hot.unlisten()}),l=(0,i.getParentWindow)(l);this.eventManager.addEventListener(f(S,this),"selectstart",e=>{this.settings.fragmentSelection||(0,i.isInput)(e.target)||e.preventDefault()})}translateFromRenderableToVisualCoords(e){let{row:t,col:n}=e;return this.hot._createCellCoords(...this.translateFromRenderableToVisualIndex(t,n))}translateFromRenderableToVisualIndex(e,t){let n=e>=0?this.hot.rowIndexMapper.getVisualFromRenderableIndex(e):e,r=t>=0?this.hot.columnIndexMapper.getVisualFromRenderableIndex(t):t;return null===n&&(n=e),null===r&&(r=t),[n,r]}countRenderableIndexes(e,t){const n=Math.min(e.getNotTrimmedIndexesLength(),t),r=e.getNearestNotHiddenIndex(n-1,-1);return null===r?0:e.getRenderableFromVisualIndex(r)+1}countRenderableColumns(){return this.countRenderableIndexes(this.hot.columnIndexMapper,this.settings.maxCols)}countRenderableRows(){return this.countRenderableIndexes(this.hot.rowIndexMapper,this.settings.maxRows)}countNotHiddenRowIndexes(e,t){return this.countNotHiddenIndexes(e,t,this.hot.rowIndexMapper,this.countRenderableRows())}countNotHiddenColumnIndexes(e,t){return this.countNotHiddenIndexes(e,t,this.hot.columnIndexMapper,this.countRenderableColumns())}countNotHiddenIndexes(e,t,n,r){if(isNaN(e)||e<0)return 0;const s=n.getNearestNotHiddenIndex(e,t),i=n.getRenderableFromVisualIndex(s);if(!Number.isInteger(i))return 0;let o=0;return t<0?o=i+1:t>0&&(o=r-i),o}countNotHiddenFixedColumnsStart(){const e=this.hot.countCols(),t=Math.min(parseInt(this.settings.fixedColumnsStart,10),e)-1;return this.countNotHiddenColumnIndexes(t,-1)}countNotHiddenFixedRowsTop(){const e=this.hot.countRows(),t=Math.min(parseInt(this.settings.fixedRowsTop,10),e)-1;return this.countNotHiddenRowIndexes(t,-1)}countNotHiddenFixedRowsBottom(){const e=this.hot.countRows(),t=Math.max(e-parseInt(this.settings.fixedRowsBottom,10),0);return this.countNotHiddenRowIndexes(t,1)}countRenderableColumnsInRange(e,t){let n=0;for(let r=e;r<=t;r++)null!==this.hot.columnIndexMapper.getRenderableFromVisualIndex(r)&&(n+=1);return n}countRenderableRowsInRange(e,t){let n=0;for(let r=e;r<=t;r++)null!==this.hot.rowIndexMapper.getRenderableFromVisualIndex(r)&&(n+=1);return n}addClassNameToLicenseElement(e){var t;const n=null===(t=this.hot.rootElement.parentNode)||void 0===t?void 0:t.querySelector(".hot-display-license-info");n&&(0,i.addClass)(n,e)}removeClassNameFromLicenseElement(e){var t;const n=null===(t=this.hot.rootElement.parentNode)||void 0===t?void 0:t.querySelector(".hot-display-license-info");n&&(0,i.removeClass)(n,e)}isMainTableNotFullyCoveredByOverlays(){const e=this.countNotHiddenFixedRowsTop()+this.countNotHiddenFixedRowsBottom(),t=this.countNotHiddenFixedColumnsStart();return this.hot.countRenderedRows()>e&&this.hot.countRenderedCols()>t}initializeWalkontable(){const e={ariaTags:this.settings.ariaTags,rtlMode:this.hot.isRtl(),externalRowCalculator:this.hot.getPlugin("autoRowSize")&&this.hot.getPlugin("autoRowSize").isEnabled(),table:f(S,this),isDataViewInstance:()=>(0,u.isRootInstance)(this.hot),preventOverflow:()=>this.settings.preventOverflow,preventWheel:()=>this.settings.preventWheel,viewportColumnRenderingThreshold:()=>this.settings.viewportColumnRenderingThreshold,viewportRowRenderingThreshold:()=>this.settings.viewportRowRenderingThreshold,data:(e,t)=>this.hot.getDataAtCell(...this.translateFromRenderableToVisualIndex(e,t)),totalRows:()=>this.countRenderableRows(),totalColumns:()=>this.countRenderableColumns(),fixedColumnsStart:()=>this.countNotHiddenFixedColumnsStart(),fixedRowsTop:()=>this.countNotHiddenFixedRowsTop(),fixedRowsBottom:()=>this.countNotHiddenFixedRowsBottom(),shouldRenderInlineStartOverlay:()=>this.settings.fixedColumnsStart>0||e.rowHeaders().length>0,shouldRenderTopOverlay:()=>this.settings.fixedRowsTop>0||e.columnHeaders().length>0,shouldRenderBottomOverlay:()=>this.settings.fixedRowsBottom>0,minSpareRows:()=>this.settings.minSpareRows,renderAllRows:this.settings.renderAllRows,renderAllColumns:this.settings.renderAllColumns,rowHeaders:()=>{const e=[];return this.hot.hasRowHeaders()&&e.push((e,t)=>{const n=e>=0?this.hot.rowIndexMapper.getVisualFromRenderableIndex(e):e;this.appendRowHeader(n,t)}),this.hot.runHooks("afterGetRowHeaderRenderers",e),m(y,this,e.length),this.hot.getSettings().ariaTags&&E(N,this,A).call(this)===this.hot.countCols()&&E(N,this,b).call(this,f(y,this)),e},columnHeaders:()=>{const e=[];return this.hot.hasColHeaders()&&e.push((e,t)=>{const n=e>=0?this.hot.columnIndexMapper.getVisualFromRenderableIndex(e):e;this.appendColHeader(n,t)}),this.hot.runHooks("afterGetColumnHeaderRenderers",e),m(w,this,e.length),e},columnWidth:e=>{const t=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e);return this.hot.getColWidth(null===t?e:t)},rowHeight:e=>{const t=this.hot.rowIndexMapper.getVisualFromRenderableIndex(e);return this.hot.getRowHeight(null===t?e:t)},rowHeightByOverlayName:(e,t)=>{const n=this.hot.rowIndexMapper.getVisualFromRenderableIndex(e),r=null===n?e:n;return this.hot.runHooks("modifyRowHeightByOverlayName",this.hot.getRowHeight(r),r,t)},cellRenderer:(e,t,n)=>{const[r,s]=this.translateFromRenderableToVisualIndex(e,t),i=this.hot.runHooks("modifyGetCellCoords",r,s,!1,"meta");let o=r,a=s;Array.isArray(i)&&([o,a]=i);const l=this.hot.getCellMeta(o,a),h=this.hot.colToProp(a);let u=this.hot.getDataAtRowProp(o,h);this.hot.hasHook("beforeValueRender")&&(u=this.hot.runHooks("beforeValueRender",u,l)),this.hot.runHooks("beforeRenderer",n,r,s,h,u,l),this.hot.getCellRenderer(l)(this.hot,n,r,s,h,u,l),this.hot.runHooks("afterRenderer",n,r,s,h,u,l)},selections:this.hot.selection.highlight,hideBorderOnMouseDownOver:()=>this.settings.fragmentSelection,onWindowResize:()=>{this.hot&&!this.hot.isDestroyed&&this.hot.refreshDimensions()},onContainerElementResize:()=>{this.hot&&!this.hot.isDestroyed&&(0,i.isVisible)(this.hot.rootElement)&&this.hot.refreshDimensions()},onCellMouseDown:(e,t,n,r)=>{const s=this.translateFromRenderableToVisualCoords(t),i={row:!1,column:!1,cell:!1};this.hot.listen(),this.activeWt=r,m(v,this,!0),m(_,this,{x:e.clientX,y:e.clientY}),this.hot.runHooks("beforeOnCellMouseDown",e,s,n,i),(0,a.isImmediatePropagationStopped)(e)||((0,h.handleMouseEvent)(e,{coords:s,selection:this.hot.selection,controller:i,cellCoordsFactory:(e,t)=>this.hot._createCellCoords(e,t)}),this.hot.runHooks("afterOnCellMouseDown",e,s,n),this.activeWt=this._wt)},onCellContextMenu:(e,t,n,r)=>{const s=this.translateFromRenderableToVisualCoords(t);this.activeWt=r,m(v,this,!1),this.hot.selection.isInProgress()&&this.hot.selection.finish(),this.hot.runHooks("beforeOnCellContextMenu",e,s,n),(0,a.isImmediatePropagationStopped)(e)||(this.hot.runHooks("afterOnCellContextMenu",e,s,n),this.activeWt=this._wt)},onCellMouseOut:(e,t,n,r)=>{const s=this.translateFromRenderableToVisualCoords(t);this.activeWt=r,this.hot.runHooks("beforeOnCellMouseOut",e,s,n),(0,a.isImmediatePropagationStopped)(e)||(this.hot.runHooks("afterOnCellMouseOut",e,s,n),this.activeWt=this._wt)},onCellMouseOver:(e,t,n,r)=>{const s=this.translateFromRenderableToVisualCoords(t),i={row:!1,column:!1,cell:!1};this.activeWt=r,this.hot.runHooks("beforeOnCellMouseOver",e,s,n,i),(0,a.isImmediatePropagationStopped)(e)||(!f(v,this)||f(_,this)&&f(_,this).x===e.clientX&&f(_,this).y===e.clientY||(0,h.handleMouseEvent)(e,{coords:s,selection:this.hot.selection,controller:i,cellCoordsFactory:(e,t)=>this.hot._createCellCoords(e,t)}),this.hot.runHooks("afterOnCellMouseOver",e,s,n),this.activeWt=this._wt,m(_,this,null))},onCellMouseUp:(e,t,n,r)=>{const s=this.translateFromRenderableToVisualCoords(t);this.activeWt=r,this.hot.runHooks("beforeOnCellMouseUp",e,s,n),(0,a.isImmediatePropagationStopped)(e)||this.hot.isDestroyed||((0,h.handleMouseEvent)(e,{coords:s,selection:this.hot.selection,cellRangeMapper:(0,c.resolveWithInstance)(this.hot,"cellRangeMapper")}),this.hot.runHooks("afterOnCellMouseUp",e,s,n),this.activeWt=this._wt)},onCellCornerMouseDown:e=>{e.preventDefault(),this.hot.runHooks("afterOnCellCornerMouseDown",e)},onCellCornerDblClick:e=>{e.preventDefault(),this.hot.runHooks("afterOnCellCornerDblClick",e)},beforeDraw:(e,t)=>this.beforeRender(e,t),onDraw:e=>this.afterRender(e),onBeforeViewportScrollVertically:(e,t)=>{const n=this.hot.rowIndexMapper,r=e<0;let s=e;return r||(s=n.getVisualFromRenderableIndex(e),null!==s)?(s=this.hot.runHooks("beforeViewportScrollVertically",s,t),this.hot.runHooks("beforeViewportScroll"),r?s:n.getRenderableFromVisualIndex(s)):e},onBeforeViewportScrollHorizontally:(e,t)=>{const n=this.hot.columnIndexMapper,r=e<0;let s=e;return r||(s=n.getVisualFromRenderableIndex(e),null!==s)?(s=this.hot.runHooks("beforeViewportScrollHorizontally",s,t),this.hot.runHooks("beforeViewportScroll"),r?s:n.getRenderableFromVisualIndex(s)):e},onScrollVertically:()=>{this.hot.runHooks("afterScrollVertically"),this.hot.runHooks("afterScroll")},onScrollHorizontally:()=>{this.hot.runHooks("afterScrollHorizontally"),this.hot.runHooks("afterScroll")},onBeforeRemoveCellClassNames:()=>this.hot.runHooks("beforeRemoveCellClassNames"),onBeforeHighlightingRowHeader:(e,t,n)=>{const r=this.hot.rowIndexMapper,s=e<0;let i=e;s||(i=r.getVisualFromRenderableIndex(e));const o=this.hot.runHooks("beforeHighlightingRowHeader",i,t,n);return s?o:r.getRenderableFromVisualIndex(r.getNearestNotHiddenIndex(o,1))},onBeforeHighlightingColumnHeader:(e,t,n)=>{const r=this.hot.columnIndexMapper,s=e<0;let i=e;s||(i=r.getVisualFromRenderableIndex(e));const o=this.hot.runHooks("beforeHighlightingColumnHeader",i,t,n);return s?o:r.getRenderableFromVisualIndex(r.getNearestNotHiddenIndex(o,1))},onAfterDrawSelection:(e,t,n)=>{let r;const[s,i]=this.translateFromRenderableToVisualIndex(e,t),o=this.hot.selection.getSelectedRange();if(o.size()>0){const e=o.peekByIndex(null!=n?n:0);r=[e.from.row,e.from.col,e.to.row,e.to.col]}return this.hot.runHooks("afterDrawSelection",s,i,r,n)},onBeforeDrawBorders:(e,t)=>{const[n,r,s,i]=e,o=[this.hot.rowIndexMapper.getVisualFromRenderableIndex(n),this.hot.columnIndexMapper.getVisualFromRenderableIndex(r),this.hot.rowIndexMapper.getVisualFromRenderableIndex(s),this.hot.columnIndexMapper.getVisualFromRenderableIndex(i)];return this.hot.runHooks("beforeDrawBorders",o,t)},onBeforeTouchScroll:()=>this.hot.runHooks("beforeTouchScroll"),onAfterMomentumScroll:()=>this.hot.runHooks("afterMomentumScroll"),onModifyRowHeaderWidth:e=>this.hot.runHooks("modifyRowHeaderWidth",e),onModifyGetCellCoords:(e,t,n,r)=>{const s=this.hot.rowIndexMapper,i=this.hot.columnIndexMapper,o=t>=0?i.getVisualFromRenderableIndex(t):t,a=e>=0?s.getVisualFromRenderableIndex(e):e,l=this.hot.runHooks("modifyGetCellCoords",a,o,n,r);if(Array.isArray(l)){const[e,t,n,r]=l;return[e>=0?s.getRenderableFromVisualIndex(s.getNearestNotHiddenIndex(e,1)):e,t>=0?i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(t,1)):t,n>=0?s.getRenderableFromVisualIndex(s.getNearestNotHiddenIndex(n,-1)):n,r>=0?i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(r,-1)):r]}},onModifyGetCoordsElement:(e,t)=>{const n=this.hot.rowIndexMapper,r=this.hot.columnIndexMapper,s=t>=0?r.getVisualFromRenderableIndex(t):t,i=e>=0?n.getVisualFromRenderableIndex(e):e,o=this.hot.runHooks("modifyGetCoordsElement",i,s);if(Array.isArray(o)){const[e,t]=o;return[e>=0?n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(e,1)):e,t>=0?r.getRenderableFromVisualIndex(r.getNearestNotHiddenIndex(t,1)):t]}},viewportRowCalculatorOverride:e=>{let t=this.settings.viewportRowRenderingOffset;if("auto"===t&&this.settings.fixedRowsTop&&(t=10),t>0||"auto"===t){const n=this.countRenderableRows(),r=e.startRow,s=e.endRow;if("number"==typeof t)e.startRow=Math.max(r-t,0),e.endRow=Math.min(s+t,n-1);else if("auto"===t){const t=Math.max(1,Math.ceil(s/n*12));e.startRow=Math.max(r-t,0),e.endRow=Math.min(s+t,n-1)}}this.hot.runHooks("afterViewportRowCalculatorOverride",e)},viewportColumnCalculatorOverride:e=>{let t=this.settings.viewportColumnRenderingOffset;if("auto"===t&&this.settings.fixedColumnsStart&&(t=10),t>0||"auto"===t){const n=this.countRenderableColumns(),r=e.startColumn,s=e.endColumn;if("number"==typeof t&&(e.startColumn=Math.max(r-t,0),e.endColumn=Math.min(s+t,n-1)),"auto"===t){const t=Math.max(1,Math.ceil(s/n*6));e.startColumn=Math.max(r-t,0),e.endColumn=Math.min(s+t,n-1)}}this.hot.runHooks("afterViewportColumnCalculatorOverride",e)},rowHeaderWidth:()=>this.settings.rowHeaderWidth,columnHeaderHeight:()=>{const e=this.hot.runHooks("modifyColumnHeaderHeight");return this.settings.columnHeaderHeight||e},stylesHandler:()=>this.hot.stylesHandler};this.hot.runHooks("beforeInitWalkontable",e),this._wt=new l.default(e),this.activeWt=this._wt;const t=this._wt.wtTable.spreader,{width:n,height:r}=this.hot.rootElement.getBoundingClientRect();this.setLastSize(n,r),this.eventManager.addEventListener(t,"mousedown",e=>{e.target===t&&3===e.which&&e.stopPropagation()}),this.eventManager.addEventListener(t,"contextmenu",e=>{e.target===t&&3===e.which&&e.stopPropagation()}),this.eventManager.addEventListener(this.hot.rootDocument.documentElement,"click",()=>{this.settings.observeDOMVisibility&&this._wt.drawInterrupted&&this.hot.render()})}isTextSelectionAllowed(e){var t,n;if((0,i.isInput)(e))return!0;const r=(0,i.isChildOf)(e,this._wt.wtTable.spreader);if(!0===this.settings.fragmentSelection&&r)return!0;const s=null!==(t=null===(n=this.hot.getSelectedRangeActive())||void 0===n?void 0:n.isSingleCell())&&void 0!==t&&t;return!("cell"!==this.settings.fragmentSelection||!s||!r)||!(this.settings.fragmentSelection||!this.isCellEdited()||!s)}isMouseDown(){return f(v,this)}isCellEdited(){const e=this.hot.getActiveEditor();return e&&e.isOpened()}beforeRender(e,t){e&&this.hot.runHooks("beforeViewRender",this.hot.forceFullRender,t)}afterRender(e){e&&this.hot.runHooks("afterViewRender",this.hot.forceFullRender)}appendRowHeader(e,t){if(t.firstChild){const n=t.firstChild;if(!(0,i.hasClass)(n,"relative"))return(0,i.empty)(t),void this.appendRowHeader(e,t);this.updateCellHeader(n.querySelector(".rowHeader"),e,this.hot.getRowHeader)}else{const{rootDocument:n,getRowHeader:r}=this.hot,s=n.createElement("div"),i=n.createElement("span");s.className="relative",i.className="rowHeader",this.updateCellHeader(i,e,r),s.appendChild(i),t.appendChild(s)}this.hot.runHooks("afterGetRowHeader",e,t)}appendColHeader(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hot.getColHeader,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const s=()=>{const t=e>=0?this.hot.getColumnMeta(e).headerClassName:null;return t?t.split(" "):[]};if(t.firstChild){const o=t.firstChild;(0,i.hasClass)(o,"relative")?(this.updateCellHeader(o.querySelector(".colHeader"),e,n,r),o.className="",(0,i.addClass)(o,["relative",...s()])):((0,i.empty)(t),this.appendColHeader(e,t,n,r))}else{const{rootDocument:o}=this.hot,a=o.createElement("div"),l=o.createElement("span"),h=s();a.classList.add("relative",...h),l.className="colHeader",this.settings.ariaTags&&((0,i.setAttribute)(a,...(0,d.A11Y_PRESENTATION)()),(0,i.setAttribute)(l,...(0,d.A11Y_PRESENTATION)())),this.updateCellHeader(l,e,n,r),a.appendChild(l),t.appendChild(a)}this.hot.runHooks("afterGetColHeader",e,t,r)}updateCellHeader(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=t;const o=this._wt.wtOverlays.getParentOverlay(e)||this._wt;e.parentNode&&((0,i.hasClass)(e,"colHeader")?s=o.wtTable.columnFilter.sourceToRendered(t):(0,i.hasClass)(e,"rowHeader")&&(s=o.wtTable.rowFilter.sourceToRendered(t))),s>-1?(0,i.fastInnerHTML)(e,n(t,r)):((0,i.fastInnerText)(e,String.fromCharCode(160)),(0,i.addClass)(e,"cornerHeader"))}maximumVisibleElementWidth(e){const t=this._wt.wtViewport.getWorkspaceWidth()-e;return t>0?t:0}maximumVisibleElementHeight(e){const t=this._wt.wtViewport.getWorkspaceHeight()-e;return t>0?t:0}setLastSize(e,t){m(R,this,e),m(T,this,t)}getLastSize(){return{width:f(R,this),height:f(T,this)}}getFirstRenderedVisibleRow(){if(!this._wt.wtViewport.rowsRenderCalculator)return null;const e=this.hot.rowIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getFirstRenderedRow());return e.getNearestNotHiddenIndex(null!=t?t:0,1)}getLastRenderedVisibleRow(){if(!this._wt.wtViewport.rowsRenderCalculator)return null;const e=this.hot.rowIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getLastRenderedRow());return e.getNearestNotHiddenIndex(null!=t?t:this.hot.countRows()-1,-1)}getFirstRenderedVisibleColumn(){if(!this._wt.wtViewport.columnsRenderCalculator)return null;const e=this.hot.columnIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getFirstRenderedColumn());return e.getNearestNotHiddenIndex(null!=t?t:0,1)}getLastRenderedVisibleColumn(){if(!this._wt.wtViewport.columnsRenderCalculator)return null;const e=this.hot.columnIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getLastRenderedColumn());return e.getNearestNotHiddenIndex(null!=t?t:this.hot.countCols()-1,-1)}getFirstFullyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstVisibleRow())}getLastFullyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastVisibleRow())}getFirstFullyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstVisibleColumn())}getLastFullyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastVisibleColumn())}getFirstPartiallyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstPartiallyVisibleRow())}getLastPartiallyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastPartiallyVisibleRow())}getFirstPartiallyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstPartiallyVisibleColumn())}getLastPartiallyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastPartiallyVisibleColumn())}getColumnHeadersCount(){return f(w,this)}getRowHeadersCount(){return f(y,this)}getViewportWidth(){return this._wt.wtViewport.getViewportWidth()}getWorkspaceWidth(){return this._wt.wtViewport.getWorkspaceWidth()}getViewportHeight(){return this._wt.wtViewport.getViewportHeight()}getWorkspaceHeight(){return this._wt.wtViewport.getWorkspaceHeight()}getElementOverlayName(e){var t;return(null!==(t=this._wt.wtOverlays.getParentOverlay(e))&&void 0!==t?t:this._wt).wtTable.name}getOverlayByName(e){return this._wt.getOverlayByName(e)}getActiveOverlayName(){return this._wt.activeOverlayName}isVisible(){return this._wt.wtTable.isVisible()}hasVerticalScroll(){return this._wt.wtViewport.hasVerticalScroll()}hasHorizontalScroll(){return this._wt.wtViewport.hasHorizontalScroll()}getTableWidth(){return this._wt.wtTable.getWidth()}getTableHeight(){return this._wt.wtTable.getHeight()}getTotalTableWidth(){return this._wt.wtTable.getTotalWidth()}getTotalTableHeight(){return this._wt.wtTable.getTotalHeight()}getTableOffset(){return this._wt.wtViewport.getWorkspaceOffset()}getTableScrollPosition(){return{left:this._wt.wtTable.holder.scrollLeft,top:this._wt.wtTable.holder.scrollTop}}setTableScrollPosition(e){this._wt.wtTable.holder.scrollLeft=e.left,this._wt.wtTable.holder.scrollTop=e.top}getRowHeaderWidth(){return this._wt.wtViewport.getRowHeaderWidth()}getColumnHeaderHeight(){return this._wt.wtViewport.getColumnHeaderHeight()}isVerticallyScrollableByWindow(){return this._wt.wtViewport.isVerticallyScrollableByWindow()}isHorizontallyScrollableByWindow(){return this._wt.wtViewport.isHorizontallyScrollableByWindow()}destroy(){this._wt.destroy(),this.eventManager.destroy()}}},41419:(e,t,n)=>{"use strict";t.__esModule=!0,t.createFocusScope=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i={shortcutsContextName:s.DEFAULT_SHORTCUTS_CONTEXT,type:s.SCOPE_TYPES.INLINE,contains:e=>e===t||t.contains(e),runOnlyIf:()=>!0,...n},o=(0,r.installFocusDetector)(e,t);return{getType:()=>i.type,hasContainerDetached:()=>!e.rootWrapperElement.contains(t),getShortcutsContextName:()=>i.shortcutsContextName,runOnlyIf:()=>i.runOnlyIf(),contains:e=>i.contains(e),activate:function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.FOCUS_SOURCES.UNKNOWN;null===(e=i.onActivate)||void 0===e||e.call(i,t)},deactivate:()=>{var e;null===(e=i.onDeactivate)||void 0===e||e.call(i)},activateFocusCatchers:()=>{null==o||o.activate()},deactivateFocusCatchers:()=>{null==o||o.deactivate()},enable:()=>{t.removeAttribute("inert")},disable:()=>{t.setAttribute("inert","true")},destroy:()=>{null==o||o.destroy()}}};var r=n(76635),s=n(52846)},41531:(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(30152);t.default=class{constructor(e,t){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"data",null),(0,s.default)(this,"plugin",void 0),(0,s.default)(this,"parentReference",new WeakMap),(0,s.default)(this,"cache",{levels:[],levelCount:0,rows:[],nodeInfo:new WeakMap}),this.hot=t,this.plugin=e}setData(e){this.data=e}getData(){return this.data}getRawSourceData(){let e=null;return this.plugin.disableCoreAPIModifiers(),e=this.hot.getSourceData(),this.plugin.enableCoreAPIModifiers(),e}updateWithData(e){this.setData(e),this.rewriteCache()}rewriteCache(){this.cache={levels:[],levelCount:0,rows:[],nodeInfo:new WeakMap},(0,i.rangeEach)(0,this.data.length-1,e=>{this.cacheNode(this.data[e],0,null)})}cacheNode(e,t,n){this.cache.levels[t]||(this.cache.levels[t]=[],this.cache.levelCount+=1),this.cache.levels[t].push(e),this.cache.rows.push(e),this.cache.nodeInfo.set(e,{parent:n,row:this.cache.rows.length-1,level:t}),this.hasChildren(e)&&(0,a.arrayEach)(e.__children,n=>{this.cacheNode(n,t+1,e)})}getDataObject(e){return null==e?null:this.cache.rows[e]}readTreeNodes(e,t,n,r){let s=!1,i=t;if(isNaN(i)&&i.end)return i;let o=e;return o||(o={__children:this.data},s=!0,i-=1),null!=n&&i===n?{result:o,end:!0}:null!=r&&o===r?{result:i,end:!0}:(i+=1,o.__children&&(0,a.arrayEach)(o.__children,e=>{if(this.parentReference.set(e,s?null:o),i=this.readTreeNodes(e,i,n,r),isNaN(i)&&i.end)return!1}),i)}mockParent(){const e=this.mockNode();return e.__children=this.data,e}mockNode(){const e={};return(0,o.objectEach)(this.data[0],(t,n)=>{e[n]=null}),e}getRowIndex(e){return null==e?null:this.cache.nodeInfo.get(e).row}getRowIndexWithinParent(e){let t=null;t=isNaN(e)?e:this.getDataObject(e);const n=this.getRowParent(e);return null==n?this.data.indexOf(t):n.__children.indexOf(t)}countAllRows(){const e={__children:this.data};return this.countChildren(e)}countChildren(e){let t=0,n=e;return isNaN(n)||(n=this.getDataObject(n)),n&&n.__children?((0,a.arrayEach)(n.__children,e=>{t+=1,e.__children&&(t+=this.countChildren(e))}),t):0}getRowParent(e){let t;return t=isNaN(e)?e:this.getDataObject(e),this.getRowObjectParent(t)}getRowObjectParent(e){return e&&"object"==typeof e?this.cache.nodeInfo.get(e).parent:null}getRowLevel(e){let t=null;return t=isNaN(e)?e:this.getDataObject(e),t?this.getRowObjectLevel(t):null}getRowObjectLevel(e){return null==e?null:this.cache.nodeInfo.get(e).level}hasChildren(e){let t=e;return isNaN(t)||(t=this.getDataObject(t)),!(!t.__children||!t.__children.length)}isChild(e){return null!==this.getRowParent(e)}getChild(e,t){var n;return(null===(n=e.__children)||void 0===n?void 0:n[t])||null}isRowHighestLevel(e){return!this.isChild(e)}isParent(e){var t;let n=e;return isNaN(n)||(n=this.getDataObject(n)),n&&!!n.__children&&0!==(null===(t=n.__children)||void 0===t?void 0:t.length)}addChild(e,t){let n=t;this.hot.runHooks("beforeAddChild",e,n);let r=null;e&&(r=this.getRowIndex(e)),this.hot.runHooks("beforeCreateRow",r+this.countChildren(e)+1,1);let s=e;e||(s=this.mockParent()),s.__children||(s.__children=[]),n||(n=this.mockNode()),s.__children.push(n),this.rewriteCache();const i=this.getRowIndex(n);this.hot.rowIndexMapper.insertIndexes(i,1),this.hot.runHooks("afterCreateRow",i,1),this.hot.runHooks("afterAddChild",e,n)}addChildAtIndex(e,t,n){let r,s=n;if(s||(s=this.mockNode()),this.hot.runHooks("beforeAddChild",e,s,t),e){const n=this.getRowIndex(e)+t+1;this.hot.runHooks("beforeCreateRow",n,1),e.__children.splice(t,null,s),this.rewriteCache(),this.plugin.disableCoreAPIModifiers(),this.hot.setSourceDataAtCell(this.getRowIndexWithinParent(e),"__children",e.__children,"NestedRows.addChildAtIndex"),this.hot.rowIndexMapper.insertIndexes(n,1),this.plugin.enableCoreAPIModifiers(),this.hot.runHooks("afterCreateRow",n,1),r=n}else this.plugin.disableCoreAPIModifiers(),this.hot.alter("insert_row_above",t,1,"NestedRows.addChildAtIndex"),this.plugin.enableCoreAPIModifiers(),r=this.getRowIndex(this.data[t]);s=this.getDataObject(r),this.hot.runHooks("afterAddChild",e,s,t)}addSibling(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"below";const n=this.translateTrimmedRow(e),r=this.getRowParent(n),s=this.getRowIndexWithinParent(n);switch(t){case"below":this.addChildAtIndex(r,s+1,null);break;case"above":this.addChildAtIndex(r,s,null)}}detachFromParent(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=null;const r=[];Array.isArray(e)?((0,i.rangeEach)(e[0],e[2],e=>{const t=this.translateTrimmedRow(e);r.push(this.getDataObject(t))}),(0,i.rangeEach)(0,r.length-2,e=>{this.detachFromParent(r[e],!1)}),n=r[r.length-1]):n=e;const s=this.getRowIndex(n),o=this.countChildren(n),a=this.getRowIndexWithinParent(n),l=this.getRowParent(n),h=this.getRowParent(l),u=this.getRowIndex(h);let c=null;if(this.hot.runHooks("beforeDetachChild",l,n),null!=a){const e=Array.from(new Array(s+o+1).keys()).splice(-1*(o+1));if(this.hot.runHooks("beforeRemoveRow",s,o+1,e,this.plugin.pluginName),l.__children.splice(a,1),this.rewriteCache(),this.hot.runHooks("afterRemoveRow",s,o+1,e,this.plugin.pluginName),h){c=u+this.countChildren(h);const e=this.getChild(h,this.countChildren(h)-1),t=this.getRowIndex(e);this.hot.runHooks("beforeCreateRow",t+1,o+1,this.plugin.pluginName),h.__children.push(n)}else c=this.hot.countRows()+1,this.hot.runHooks("beforeCreateRow",c-2,o+1,this.plugin.pluginName),this.data.push(n)}this.rewriteCache(),this.hot.runHooks("afterCreateRow",c-2,o+1,this.plugin.pluginName),this.hot.runHooks("afterDetachChild",l,n,this.getRowIndex(n)),t&&this.hot.render()}filterData(e,t,n){const r=[];(0,a.arrayEach)(n,e=>{r.push(this.getDataObject(e))}),(0,a.arrayEach)(r,e=>{const t=this.getRowIndexWithinParent(e),n=this.getRowParent(e);null===n?this.data.splice(t,1):n.__children.splice(t,1)}),this.rewriteCache()}spliceData(e,t,n){const r=this.getDataObject(e-1);let s=null,i=e;r&&r.__children&&0===r.__children.length?(s=r,i=0):e<this.countAllRows()&&(s=this.getRowParent(e),i=this.getRowIndexWithinParent(e)),s?n?s.__children.splice(i,t,...n):s.__children.splice(i,t):n?this.data.splice(i,t,...n):this.data.splice(i,t),this.rewriteCache()}syncRowWithRawSource(e){let t=e,n=t;do{n=this.getRowParent(n),null!==n&&(t=n)}while(null!==n);this.plugin.disableCoreAPIModifiers(),this.hot.setSourceDataAtCell(this.getRowIndexWithinParent(t),"__children",t.__children,"NestedRows.syncRowWithRawSource"),this.plugin.enableCoreAPIModifiers()}moveRow(e,t,n,r){const s=t===this.hot.countRows(),i=this.getRowParent(e),o=this.getRowIndexWithinParent(e),a=i.__children.slice(o,o+1),l=e>t;let h=s?this.getRowParent(t-1):this.getRowParent(t);null==h&&(h=this.getRowParent(t-1)),null==h&&(h=this.getDataObject(t-1)),h?h.__children||(h.__children=[]):(h=this.getDataObject(t),h.__children=[]);const u=s||n||r?h.__children.length:this.getRowIndexWithinParent(t),c=i===h;h.__children.splice(u,0,a[0]),i.__children.splice(o+(l&&c?1:0),1),this.syncRowWithRawSource(i),c||this.syncRowWithRawSource(h)}translateTrimmedRow(e){return this.plugin.collapsingUI?this.plugin.collapsingUI.translateTrimmedRow(e):e}untranslateTrimmedRow(e){return this.plugin.collapsingUI?this.plugin.collapsingUI.untranslateTrimmedRow(e):e}}},41711:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0;var s=r(n(81115)),i=n(48793),o=n(18793),a=n(11412),l=n(38942),h=n(7438),u=n(68231),c=n(98438);const d=t.PLUGIN_KEY="multiColumnSorting",g=t.PLUGIN_PRIORITY=170,p=d;(0,o.registerRootComparator)(d,h.rootComparator);class f extends i.ColumnSorting{constructor(){super(...arguments),(0,s.default)(this,"pluginKey",d)}static get PLUGIN_KEY(){return d}static get PLUGIN_PRIORITY(){return g}isEnabled(){return!!this.hot.getSettings()[this.pluginKey]}enablePlugin(){super.enablePlugin()}disablePlugin(){super.disablePlugin()}registerShortcuts(){super.registerShortcuts(),this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Shift","Enter"]],callback:()=>{const{highlight:e}=this.hot.getSelectedRangeActive();return-1===e.row&&e.col>=0&&this.sort(this.getNextSortConfig(e.col,i.APPEND_COLUMN_CONFIG_STRATEGY)),!1},runOnlyIf:()=>{var e,t;const 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)&&n.isHeader()},relativeToGroup:c.EDITOR_EDIT_GROUP,position:"before",group:p})}unregisterShortcuts(){super.unregisterShortcuts(),this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(p)}sort(e){super.sort(e)}clearSort(){super.clearSort()}isSorted(){return super.isSorted()}getSortConfig(e){return super.getSortConfig(e)}setSortConfig(e){super.setSortConfig(e)}getNormalizedSortConfigs(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)?e:[e]}updateHeaderClasses(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];super.updateHeaderClasses(e,...n),(0,l.removeClass)(e,(0,u.getClassesToRemove)(e)),!1!==this.enabled&&(0,l.addClass)(e,(0,u.getClassesToAdd)(...n))}onAfterOnCellMouseDown(e,t){!1!==(0,a.wasHeaderClickedProperly)(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)&&(this.hot.getShortcutManager().isCtrlPressed()?(this.hot.deselectCell(),this.hot.selectColumns(t.col),this.sort(this.getNextSortConfig(t.col,i.APPEND_COLUMN_CONFIG_STRATEGY))):this.sort(this.getColumnNextConfig(t.col)))}}t.MultiColumnSorting=f},41812:()=>{},41833:(e,t,n)=>{"use strict";t.__esModule=!0,n(22588),n(66182);var r=n(89090),s=n(30152),i=n(71267);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")}const u=t.HEADER_CONFIGURABLE_PROPS=["label","collapsible"];var c=new WeakMap,d=new WeakMap,g=new WeakMap;t.default=class{constructor(){o(this,c,[]),o(this,d,0),o(this,g,1/0)}setColumnsLimit(e){l(g,this,e)}setData(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];l(c,this,(0,i.normalizeSettings)(e,a(g,this))),l(d,this,a(c,this).length)}getData(){return a(c,this)}mergeWith(e){(0,s.arrayEach)(e,e=>{let{row:t,col:n,...s}=e;const i=this.getHeaderSettings(t,n);null!==i&&(0,r.extend)(i,s,u)})}map(e){(0,s.arrayEach)(a(c,this),t=>{(0,s.arrayEach)(t,t=>{const n=e({...t});(0,r.isObject)(n)&&(0,r.extend)(t,n,u)})})}getHeaderSettings(e,t){var n;if(e>=a(d,this)||e<0)return null;const r=a(c,this)[e];return!1===Array.isArray(r)||t>=r.length?null:null!==(n=r[t])&&void 0!==n?n:null}getHeadersSettings(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const r=[];if(e>=a(d,this)||e<0)return r;const s=a(c,this)[e];let i=0;for(let e=t;e<s.length;e++){const t=s[e];if(t.isPlaceholder)throw new Error("The first column settings cannot overlap the other header layers");if(i+=t.colspan,r.push(t),t.colspan>1&&(e+=t.colspan-1),i===n)break;if(i>n)throw new Error("The last column settings cannot overlap the other header layers")}return r}getLayersCount(){return a(d,this)}getColumnsCount(){return a(d,this)>0?a(c,this)[0].length:0}clear(){l(c,this,[]),l(d,this,0)}}},41912:(e,t,n)=>{"use strict";t.__esModule=!0,t.shortcutsGridContext=function(e){const t=e.getShortcutManager().addContext(s.GRID_SCOPE),n=(0,i.createKeyboardShortcutCommandsPool)(e),o={runOnlyIf:()=>{const{navigableHeaders:t}=e.getSettings();return(0,r.isDefined)(e.getSelected())&&(t||!t&&e.countRenderedRows()>0&&e.countRenderedCols()>0)},group:s.GRID_GROUP};t.addShortcuts([{keys:[["F2"]],callback:e=>n.editorFastOpen(e)},{keys:[["Enter"],["Enter","Shift"]],callback:(e,t)=>n.editorOpen(e,t)},{keys:[["Backspace"],["Delete"]],callback:()=>n.emptySelectedCells()}],{group:s.EDITOR_EDIT_GROUP,runOnlyIf:()=>(0,r.isDefined)(e.getSelected())}),t.addShortcuts([{keys:[["Control/Meta","A"]],callback:()=>n.selectAllCells(),runOnlyIf:()=>{var t;return!(null!==(t=e.getSelectedRangeActive())&&void 0!==t&&t.highlight.isHeader())}},{keys:[["Control/Meta","A"]],callback:()=>{},runOnlyIf:()=>{var t;return null===(t=e.getSelectedRangeActive())||void 0===t?void 0:t.highlight.isHeader()},preventDefault:!0},{keys:[["Control/Meta","Shift","Space"]],callback:()=>n.selectAllCellsAndHeaders()},{keys:[["Control/Meta","Enter"]],callback:()=>n.populateSelectedCellsData(),runOnlyIf:()=>{var t,n;return!(null!==(t=e.getSelectedRangeActive())&&void 0!==t&&t.highlight.isHeader())&&(null===(n=e.getSelectedRangeActive())||void 0===n?void 0:n.getCellsCount())>1}},{keys:[["Control","Space"]],captureCtrl:!0,callback:()=>n.extendCellsSelectionToColumns()},{keys:[["Shift","Space"]],stopPropagation:!0,callback:()=>n.extendCellsSelectionToRows()},{keys:[["ArrowUp"]],callback:()=>n.moveCellSelectionUp()},{keys:[["ArrowUp","Control/Meta"]],captureCtrl:!0,callback:()=>n.moveCellSelectionToMostTop()},{keys:[["ArrowUp","Shift"]],callback:()=>n.extendCellsSelectionUp()},{keys:[["ArrowUp","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>n.extendCellsSelectionToMostTop(),runOnlyIf:()=>!(e.selection.isSelectedByCorner()||e.selection.isSelectedByColumnHeader())},{keys:[["ArrowDown"]],callback:()=>n.moveCellSelectionDown()},{keys:[["ArrowDown","Control/Meta"]],captureCtrl:!0,callback:()=>n.moveCellSelectionToMostBottom()},{keys:[["ArrowDown","Shift"]],callback:()=>n.extendCellsSelectionDown()},{keys:[["ArrowDown","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>n.extendCellsSelectionToMostBottom(),runOnlyIf:()=>!(e.selection.isSelectedByCorner()||e.selection.isSelectedByColumnHeader())},{keys:[["ArrowLeft"]],callback:()=>n.moveCellSelectionLeft()},{keys:[["ArrowLeft","Control/Meta"]],captureCtrl:!0,callback:()=>n.moveCellSelectionToMostLeft()},{keys:[["ArrowLeft","Shift"]],callback:()=>n.extendCellsSelectionLeft()},{keys:[["ArrowLeft","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>n.extendCellsSelectionToMostLeft(),runOnlyIf:()=>!(e.selection.isSelectedByCorner()||e.selection.isSelectedByRowHeader())},{keys:[["ArrowRight"]],callback:()=>n.moveCellSelectionRight()},{keys:[["ArrowRight","Control/Meta"]],captureCtrl:!0,callback:()=>n.moveCellSelectionToMostRight()},{keys:[["ArrowRight","Shift"]],callback:()=>n.extendCellsSelectionRight()},{keys:[["ArrowRight","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>n.extendCellsSelectionToMostRight(),runOnlyIf:()=>!(e.selection.isSelectedByCorner()||e.selection.isSelectedByRowHeader())},{keys:[["Home"]],captureCtrl:!0,callback:()=>n.moveCellSelectionToMostInlineStart(),runOnlyIf:()=>e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["Home","Shift"]],callback:()=>n.extendCellsSelectionToMostInlineStart()},{keys:[["Home","Control/Meta"]],captureCtrl:!0,callback:()=>n.moveCellSelectionToMostTopInlineStart(),runOnlyIf:()=>e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["End"]],captureCtrl:!0,callback:()=>n.moveCellSelectionToMostInlineEnd(),runOnlyIf:()=>e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["End","Shift"]],callback:()=>n.extendCellsSelectionToMostInlineEnd()},{keys:[["End","Control/Meta"]],captureCtrl:!0,callback:()=>n.moveCellSelectionToMostBottomInlineEnd(),runOnlyIf:()=>e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["PageUp"]],callback:()=>n.moveCellSelectionUpByViewportHight()},{keys:[["PageUp","Shift"]],callback:()=>n.extendCellsSelectionUpByViewportHeight()},{keys:[["PageDown"]],callback:()=>n.moveCellSelectionDownByViewportHeight()},{keys:[["PageDown","Shift"]],callback:()=>n.extendCellsSelectionDownByViewportHeight()},{keys:[["Tab"]],preventDefault:!1,callback:e=>n.moveCellSelectionInlineStart(e)},{keys:[["Shift","Tab"]],preventDefault:!1,callback:e=>n.moveCellSelectionInlineEnd(e)},{keys:[["Control/Meta","Backspace"]],callback:()=>n.scrollToFocusedCell()}],o);const a=n.tabNavigation();t.addShortcuts([{keys:[["Tab"],["Shift","Tab"]],preventDefault:!1,stopPropagation:!1,relativeToGroup:s.GRID_GROUP,group:s.GRID_TAB_NAVIGATION_GROUP,position:"before",callback:e=>a.before(e)},{keys:[["Tab"],["Shift","Tab"]],preventDefault:!1,stopPropagation:!1,relativeToGroup:s.GRID_GROUP,group:s.GRID_TAB_NAVIGATION_GROUP,callback:e=>a.after(e),position:"after"}])};var r=n(54342),s=n(40311),i=n(75317)},42010:(e,t,n)=>{"use strict";t.__esModule=!0,t.condition=l;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(24177),o=n(75300);const a=t.CONDITION_NAME="between";function l(e,t){let[n,r]=t,a=n,l=r;if("numeric"===e.meta.type){const e=parseFloat(a,10),t=parseFloat(l,10);a=Math.min(e,t),l=Math.max(e,t)}else if("date"===e.meta.type){const t=(0,s.getCondition)(o.CONDITION_NAME,[l]),n=(0,s.getCondition)(i.CONDITION_NAME,[a]);return t(e)&&n(e)}return e.value>=a&&e.value<=l}(0,s.registerCondition)(a,l,{name:r.FILTERS_CONDITIONS_BETWEEN,inputsCount:2,showOperators:!0})},42069:()=>{},42091:(e,t,n)=>{"use strict";var r=n(78656);t.__esModule=!0,n(22588),n(81396),n(81124),n(88633),n(14618);var s=n(14298),i=n(89090),o=r(n(24285)),a=n(38942),l=n(14089),h=n(80085),u=n(3888);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){return e.get(f(e,t))}function p(e,t,n){return e.set(f(e,t),n),n}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")}const m=`\n<div data-ref="dialogElement" class="${u.DIALOG_CLASS_NAME}">\n <div data-ref="dialogWrapperElement" class="${u.DIALOG_CLASS_NAME}__content-wrapper">\n</div>\n`;var E=new WeakMap,w=new WeakMap,y=new WeakMap,C=new WeakMap,v=new WeakMap,S=new WeakMap,R=new WeakSet;class T{constructor(e){let{rootElement:t,isRtl:n}=e;var r,s;d(r=this,s=R),s.add(r),c(this,E,void 0),c(this,w,void 0),c(this,y,!1),c(this,C,!1),c(this,v,h.TEMPLATES.get("base")),c(this,S,[]),p(E,this,t),p(y,this,n),this.install()}useTemplate(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!h.TEMPLATES.has(e)||"base"===e){const t=Array.from(h.TEMPLATES.keys()).filter(e=>"base"!==e).join(", ");throw new Error(s.toSingleLine`Invalid template: ${e}.\x20
|
|
@@ -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-90d1117-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-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`
|
|
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 11:49:12",g.version="16.2.0-next-90d1117-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="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
|
|
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
|