handsontable 19.0.0-rc2 → 19.0.0-rc4

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.
Files changed (71) hide show
  1. package/CHANGELOG.md +7 -2
  2. package/base.js +2 -2
  3. package/base.mjs +2 -2
  4. package/core/license.js +2 -2
  5. package/core/license.mjs +2 -2
  6. package/core.js +7 -8
  7. package/core.mjs +7 -8
  8. package/dist/handsontable.full.js +21 -22
  9. package/dist/handsontable.full.min.js +7 -7
  10. package/dist/handsontable.js +21 -22
  11. package/dist/handsontable.min.js +7 -7
  12. package/dist/handsontable.settings-schema.js +7 -7
  13. package/dist/handsontable.settings-schema.min.js +2 -2
  14. package/dist/manifest.json +1 -1
  15. package/dist/themes/classic.js +2 -2
  16. package/dist/themes/classic.min.js +2 -2
  17. package/dist/themes/horizon.js +2 -2
  18. package/dist/themes/horizon.min.js +2 -2
  19. package/dist/themes/main.js +2 -2
  20. package/dist/themes/main.min.js +2 -2
  21. package/dist/themes/static/variables/colors/ant.js +2 -2
  22. package/dist/themes/static/variables/colors/ant.min.js +2 -2
  23. package/dist/themes/static/variables/colors/classic.js +2 -2
  24. package/dist/themes/static/variables/colors/classic.min.js +2 -2
  25. package/dist/themes/static/variables/colors/horizon.js +2 -2
  26. package/dist/themes/static/variables/colors/horizon.min.js +2 -2
  27. package/dist/themes/static/variables/colors/main.js +2 -2
  28. package/dist/themes/static/variables/colors/main.min.js +2 -2
  29. package/dist/themes/static/variables/colors/material.js +2 -2
  30. package/dist/themes/static/variables/colors/material.min.js +2 -2
  31. package/dist/themes/static/variables/colors/shadcn.js +2 -2
  32. package/dist/themes/static/variables/colors/shadcn.min.js +2 -2
  33. package/dist/themes/static/variables/density.js +2 -2
  34. package/dist/themes/static/variables/density.min.js +2 -2
  35. package/dist/themes/static/variables/helpers/iconStyles.js +2 -2
  36. package/dist/themes/static/variables/helpers/iconStyles.min.js +2 -2
  37. package/dist/themes/static/variables/helpers/iconsMap.js +2 -2
  38. package/dist/themes/static/variables/helpers/iconsMap.min.js +2 -2
  39. package/dist/themes/static/variables/icons/horizon.js +2 -2
  40. package/dist/themes/static/variables/icons/horizon.min.js +2 -2
  41. package/dist/themes/static/variables/icons/main.js +2 -2
  42. package/dist/themes/static/variables/icons/main.min.js +2 -2
  43. package/dist/themes/static/variables/sizing.js +2 -2
  44. package/dist/themes/static/variables/sizing.min.js +2 -2
  45. package/dist/themes/static/variables/tokens/classic.js +2 -2
  46. package/dist/themes/static/variables/tokens/classic.min.js +2 -2
  47. package/dist/themes/static/variables/tokens/horizon.js +2 -2
  48. package/dist/themes/static/variables/tokens/horizon.min.js +2 -2
  49. package/dist/themes/static/variables/tokens/main.js +2 -2
  50. package/dist/themes/static/variables/tokens/main.min.js +2 -2
  51. package/helpers/mixed.js +5 -5
  52. package/helpers/mixed.mjs +5 -5
  53. package/package.json +1 -1
  54. package/plugins/formulas/formulas.d.ts +2 -2
  55. package/plugins/formulas/formulas.js +2 -2
  56. package/plugins/formulas/formulas.mjs +2 -2
  57. package/styles/handsontable.css +2 -2
  58. package/styles/handsontable.min.css +2 -2
  59. package/styles/handsontableStyles.d.ts +1 -1
  60. package/styles/handsontableStyles.js +1 -1
  61. package/styles/handsontableStyles.mjs +1 -1
  62. package/styles/ht-icons-horizon.min.css +2 -2
  63. package/styles/ht-icons-main.min.css +2 -2
  64. package/styles/ht-theme-classic-no-icons.min.css +2 -2
  65. package/styles/ht-theme-classic.min.css +2 -2
  66. package/styles/ht-theme-horizon-no-icons.min.css +2 -2
  67. package/styles/ht-theme-horizon.min.css +2 -2
  68. package/styles/ht-theme-main-no-icons.min.css +2 -2
  69. package/styles/ht-theme-main.min.css +2 -2
  70. package/utils/licenseNotification.js +2 -2
  71. package/utils/licenseNotification.mjs +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: 19.0.0-rc2
29
- * Release date: 17/11/2026 (built at 17/11/2026 11:12:30)
28
+ * Version: 19.0.0-rc4
29
+ * Release date: 20/11/2026 (built at 20/11/2026 12:42:43)
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()}("u">typeof self?self:this,()=>(()=>{"use strict";let e,t,i,o;var r={};r.d=(e,t)=>{for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};r.d(n,{default:()=>WU});var s={};r.r(s),r.d(s,{arrayAvg:()=>eh,arrayEach:()=>en,arrayFilter:()=>eo,arrayFlatten:()=>function e(t){return ei(t,(t,i)=>t.concat(Array.isArray(i)?e(i):i),[])},arrayMap:()=>er,arrayMax:()=>el,arrayMin:()=>ea,arrayReduce:()=>ei,arraySum:()=>es,arrayToString:()=>ew,arrayUnique:()=>ec,extendArray:()=>ee,getDifferenceOfArrays:()=>eg,getIntersectionOfArrays:()=>ep,getUnionOfArrays:()=>em,insertValuesInPlace:()=>eu,pivot:()=>et,removeIndexesInPlace:()=>ed,stringToArray:()=>ef,to2dArray:()=>J});var l={};r.r(l),r.d(l,{_BLOCKING_MODAL_STATES:()=>tn,_LICENSE_EXPIRED_TITLE:()=>te,_PURCHASE_LICENSE_TEXT:()=>tt,_buildMissingFeaturesMessage:()=>e9,_createLicenseBar:()=>tg,_createLicenseBarBlock:()=>tp,_formatExpiryClause:()=>e8,_formatIsoDate:()=>th,_getLicenseState:()=>tc,_injectProductInfo:()=>ta,_renderMessageParts:()=>e4,isDefined:()=>eU,isEmpty:()=>ej,isRegExp:()=>eq,isUndefined:()=>eG,stringify:()=>e$});var a={};r.r(a),r.d(a,{throwWithCause:()=>tf});var h={};r.r(h),r.d(h,{assignObjectDefaults:()=>tF,clone:()=>tv,createObjectPropListener:()=>tP,deepClone:()=>tS,deepExtend:()=>ty,deepMerge:()=>tN,deepObjectSize:()=>tD,defineGetter:()=>tI,duckSchema:()=>tw,extend:()=>tC,getProperty:()=>tA,hasOwnProperty:()=>t_,inherit:()=>tb,isKeyValueObject:()=>tL,isObject:()=>tE,isObjectEqual:()=>tx,isPlainObject:()=>tM,mixin:()=>tR,objectEach:()=>tT,setProperty:()=>tO,stripFunctionValues:()=>tk,writeOwnProperty:()=>tH});var d={};r.r(d),r.d(d,{cancelAnimationFrame:()=>tV,cancelIdleTask:()=>tW,getComparisonFunction:()=>tG,isCSR:()=>tU,isTouchSupported:()=>t$,requestAnimationFrame:()=>tB,requestIdleTask:()=>tz});var u={};r.r(u),r.d(u,{isChrome:()=>tQ,isChromeWebKit:()=>tJ,isEdge:()=>t6,isEdgeWebKit:()=>t4,isFirefox:()=>t0,isFirefoxWebKit:()=>t1,isIOS:()=>t8,isIpadOS:()=>t7,isLinuxOS:()=>ii,isMacOS:()=>it,isMobileBrowser:()=>t5,isMobileOrIpadOS:()=>t9,isSafari:()=>t2,isSafariBefore261:()=>t3,isWindowsOS:()=>ie,setBrowserMeta:()=>tX,setPlatformMeta:()=>tZ});var c={};r.r(c),r.d(c,{CELL_CLIP_CLASS:()=>i3,HTML_CHARACTERS:()=>iZ,SANITIZER_WARN_KEY:()=>iQ,addClass:()=>iG,addEvent:()=>oR,clearTextSelection:()=>oI,closest:()=>iP,closestDown:()=>i_,empty:()=>iX,eventTargetEl:()=>iT,fastInnerHTML:()=>i1,fastInnerText:()=>i2,findFirstParentWithClass:()=>iF,getCaretPosition:()=>oE,getCellContentRoot:()=>i6,getChildEl:()=>oQ,getComposedEventTargetEl:()=>iA,getCssTransform:()=>o_,getDeepActiveElement:()=>oZ,getFixedContainingBlockRect:()=>om,getFractionalScalingCompensation:()=>oA,getFrameElement:()=>iH,getMaximumScrollLeft:()=>ol,getMaximumScrollTop:()=>os,getParent:()=>ik,getParentWindow:()=>iO,getScrollLeft:()=>or,getScrollTop:()=>oo,getScrollableElement:()=>on,getScrollbarWidth:()=>oH,getSelectionEndPosition:()=>oM,getSelectionText:()=>ok,getShadowHostChain:()=>oX,getStyle:()=>ow,getTrimmingContainer:()=>of,getWindowScrollLeft:()=>oi,getWindowScrollTop:()=>ot,hasAccessToParentWindow:()=>iD,hasClass:()=>iU,hasHorizontalScrollbar:()=>oD,hasVerticalScrollbar:()=>oO,hasZeroHeight:()=>i9,index:()=>iL,innerHeight:()=>oS,innerWidth:()=>ov,isBottomMostColumnHeader:()=>iV,isChildOf:()=>iN,isDetached:()=>oV,isDocumentFragment:()=>oj,isHTMLElement:()=>oG,isHTMLInputElement:()=>oK,isHTMLTableCellElement:()=>oq,isInput:()=>oN,isInternalElement:()=>iI,isOutsideInput:()=>oL,isShadowRoot:()=>oY,isStartGapCovered:()=>i5,isTopGapCovered:()=>i8,isVisible:()=>i7,makeElementContentEditableAndSelectItsContent:()=>oW,matchesCSSRules:()=>ob,missingSanitizerMessage:()=>iJ,normalizeClassNames:()=>iW,observeVisibilityChangeOnce:()=>oz,offset:()=>oe,outerHeight:()=>oy,outerWidth:()=>oC,overlayContainsElement:()=>iB,removeAttribute:()=>iK,removeClass:()=>ij,removeContentEditableFromElementAndDeselect:()=>o$,removeEvent:()=>ox,removeInlineStyle:()=>oJ,removeTextNodes:()=>iY,resetCssTransform:()=>oF,runWithSelectedContendEditableElement:()=>oU,selectElementIfAllowed:()=>oB,setAttribute:()=>iq,setCaretPosition:()=>oT,setOverlayPosition:()=>oP,standsBehindRowHeader:()=>i4});var g={};r.r(g),r.d(g,{curry:()=>o9,curryRight:()=>re,debounce:()=>o5,fastCall:()=>rt,isFunction:()=>o3,partial:()=>o7,pipe:()=>o8,throttle:()=>o6,throttleAfterHits:()=>o4});var p={};r.r(p),r.d(p,{KEY_CODES:()=>ri,isCtrlKey:()=>rs,isCtrlMetaKey:()=>rl,isFunctionKey:()=>rn,isKey:()=>ra,isPrintableChar:()=>rr});var m={};r.r(m),r.d(m,{POINTER_DRAG_TOLERANCE:()=>rC,getFirstChangedTouch:()=>rf,getTouchPointById:()=>rw,hasPointerTraveled:()=>ry,hasTouchList:()=>rm,isImmediatePropagationStopped:()=>rd,isLeftClick:()=>rc,isMiddleClick:()=>rg,isRightClick:()=>ru,isTouchEvent:()=>rp,offsetRelativeTo:()=>rb,stopImmediatePropagation:()=>rh});var f={};r.r(f),r.d(f,{decodeHtmlEntities:()=>ni,equalsIgnoreCase:()=>r8,escapeHtml:()=>ns,getCharacterLength:()=>nm,htmlToPlainText:()=>no,isJSON:()=>r9,isPercentValue:()=>ne,localeLowerCase:()=>nu,randomString:()=>r7,removeCharactersBefore:()=>nf,splitIntoCharacters:()=>np,stripTags:()=>nr,substitute:()=>io,toHyphen:()=>nl,toUpperCaseFirst:()=>r5});var w={};r.r(w),r.d(w,{_dataToHTML:()=>nE,htmlToGridSettings:()=>nA,instanceToHTML:()=>nv,instanceToTableElement:()=>nx,replaceTdCellsWithTextContent:()=>nT});var b={};r.r(b),r.d(b,{clamp:()=>nB,getParsedNumber:()=>nV,isCommaThousandsGroupedInteger:()=>nD,isDotThousandsGroupedFloat:()=>n_,isDotThousandsGroupedInteger:()=>nP,isLossyNumericConversion:()=>nW,isNumeric:()=>nH,isNumericLike:()=>nO,isUnsignedNumber:()=>n$,rangeEach:()=>nF,rangeEachReverse:()=>nN,valueAccordingPercent:()=>nL});var C={};r.r(C),r.d(C,{cloneRow:()=>dg,countFirstRowKeys:()=>dd,createEmptySpreadsheetData:()=>dl,createSpreadsheetData:()=>dn,createSpreadsheetObjectData:()=>ds,dataRowToChangesArray:()=>da,hasChangeForCell:()=>dh,isArrayOfArrays:()=>du,isArrayOfObjects:()=>dc,spreadsheetColumnIndex:()=>dr,spreadsheetColumnLabel:()=>di});var y={};r.r(y),r.d(y,{CANCEL:()=>dW,CHECKBOX_CHECKED:()=>cA,CHECKBOX_HEADER_CHECK_ALL:()=>cO,CHECKBOX_RENDERER_NAMESPACE:()=>cT,CHECKBOX_UNCHECKED:()=>cH,COLUMN_SORTING_ANNOUNCEMENT_ASCENDING:()=>gl,COLUMN_SORTING_ANNOUNCEMENT_DESCENDING:()=>ga,COLUMN_SORTING_ANNOUNCEMENT_REMOVED:()=>gh,COLUMN_SORTING_NAMESPACE:()=>gs,COMMON_NAMESPACE:()=>dV,CONTEXTMENU_ITEMS_ADD_COMMENT:()=>uo,CONTEXTMENU_ITEMS_ALIGNMENT:()=>ul,CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM:()=>up,CONTEXTMENU_ITEMS_ALIGNMENT_CENTER:()=>uh,CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY:()=>uu,CONTEXTMENU_ITEMS_ALIGNMENT_LEFT:()=>ua,CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE:()=>ug,CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT:()=>ud,CONTEXTMENU_ITEMS_ALIGNMENT_TOP:()=>uc,CONTEXTMENU_ITEMS_BORDERS:()=>um,CONTEXTMENU_ITEMS_BORDERS_BOTTOM:()=>ub,CONTEXTMENU_ITEMS_BORDERS_LEFT:()=>uC,CONTEXTMENU_ITEMS_BORDERS_RIGHT:()=>uw,CONTEXTMENU_ITEMS_BORDERS_TOP:()=>uf,CONTEXTMENU_ITEMS_CLEAR_COLUMN:()=>d0,CONTEXTMENU_ITEMS_COPY:()=>d1,CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY:()=>d6,CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS:()=>d3,CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS:()=>d2,CONTEXTMENU_ITEMS_CUT:()=>d4,CONTEXTMENU_ITEMS_EDIT_COMMENT:()=>ur,CONTEXTMENU_ITEMS_EXPORT:()=>d5,CONTEXTMENU_ITEMS_EXPORT_FILE_CSV:()=>d8,CONTEXTMENU_ITEMS_EXPORT_FILE_XLSX:()=>d7,CONTEXTMENU_ITEMS_FREEZE_COLUMN:()=>d9,CONTEXTMENU_ITEMS_HIDE_COLUMN:()=>uR,CONTEXTMENU_ITEMS_HIDE_ROW:()=>uE,CONTEXTMENU_ITEMS_INSERT_LEFT:()=>dq,CONTEXTMENU_ITEMS_INSERT_RIGHT:()=>dK,CONTEXTMENU_ITEMS_MERGE_CELLS:()=>ut,CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD:()=>uv,CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD:()=>uS,CONTEXTMENU_ITEMS_NO_ITEMS:()=>dU,CONTEXTMENU_ITEMS_READ_ONLY:()=>dJ,CONTEXTMENU_ITEMS_READ_ONLY_COMMENT:()=>us,CONTEXTMENU_ITEMS_REDO:()=>dQ,CONTEXTMENU_ITEMS_REMOVE_BORDERS:()=>uy,CONTEXTMENU_ITEMS_REMOVE_COLUMN:()=>dX,CONTEXTMENU_ITEMS_REMOVE_COMMENT:()=>un,CONTEXTMENU_ITEMS_REMOVE_ROW:()=>dY,CONTEXTMENU_ITEMS_ROW_ABOVE:()=>dG,CONTEXTMENU_ITEMS_ROW_BELOW:()=>dj,CONTEXTMENU_ITEMS_SHOW_COLUMN:()=>ux,CONTEXTMENU_ITEMS_SHOW_ROW:()=>uM,CONTEXTMENU_ITEMS_UNDO:()=>dZ,CONTEXTMENU_ITEMS_UNFREEZE_COLUMN:()=>ue,CONTEXTMENU_ITEMS_UNMERGE_CELLS:()=>ui,CONTEXT_MENU_ITEMS_NAMESPACE:()=>d$,DATA_PROVIDER_BUTTONS_REFETCH:()=>cJ,DATA_PROVIDER_ERRORS_CREATE:()=>cY,DATA_PROVIDER_ERRORS_FETCH:()=>cK,DATA_PROVIDER_ERRORS_REMOVE:()=>cZ,DATA_PROVIDER_ERRORS_REQUEST_FAILED:()=>cQ,DATA_PROVIDER_ERRORS_UPDATE:()=>cX,DATA_PROVIDER_NAMESPACE:()=>cq,EMPTY_DATA_STATE_BUTTONS_FILTERS_RESET:()=>cU,EMPTY_DATA_STATE_DESCRIPTION:()=>cz,EMPTY_DATA_STATE_DESCRIPTION_FILTERS:()=>c$,EMPTY_DATA_STATE_DESCRIPTION_LOADING:()=>cj,EMPTY_DATA_STATE_NAMESPACE:()=>cB,EMPTY_DATA_STATE_TITLE:()=>cV,EMPTY_DATA_STATE_TITLE_FILTERS:()=>cW,EMPTY_DATA_STATE_TITLE_LOADING:()=>cG,EXPORT_FILE_DIALOG_TITLE:()=>cL,EXPORT_FILE_NAMESPACE:()=>cN,FILTERS_BUTTONS_CANCEL:()=>u5,FILTERS_BUTTONS_CLEAR:()=>u6,FILTERS_BUTTONS_OK:()=>u4,FILTERS_BUTTONS_PLACEHOLDER_SEARCH:()=>u8,FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE:()=>u9,FILTERS_BUTTONS_PLACEHOLDER_VALUE:()=>u7,FILTERS_BUTTONS_SELECT_ALL:()=>u3,FILTERS_CONDITIONS_AFTER:()=>uG,FILTERS_CONDITIONS_AFTER_OR_EQUAL:()=>uj,FILTERS_CONDITIONS_BEFORE:()=>uq,FILTERS_CONDITIONS_BEFORE_OR_EQUAL:()=>uK,FILTERS_CONDITIONS_BEGINS_WITH:()=>uP,FILTERS_CONDITIONS_BETWEEN:()=>u$,FILTERS_CONDITIONS_BY_VALUE:()=>uL,FILTERS_CONDITIONS_CONTAINS:()=>uF,FILTERS_CONDITIONS_EMPTY:()=>uA,FILTERS_CONDITIONS_ENDS_WITH:()=>u_,FILTERS_CONDITIONS_EQUAL:()=>uO,FILTERS_CONDITIONS_GREATER_THAN:()=>uB,FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL:()=>uV,FILTERS_CONDITIONS_LESS_THAN:()=>uz,FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL:()=>uW,FILTERS_CONDITIONS_NAMESPACE:()=>uI,FILTERS_CONDITIONS_NONE:()=>uT,FILTERS_CONDITIONS_NOT_BETWEEN:()=>uU,FILTERS_CONDITIONS_NOT_CONTAIN:()=>uN,FILTERS_CONDITIONS_NOT_EMPTY:()=>uH,FILTERS_CONDITIONS_NOT_EQUAL:()=>uD,FILTERS_CONDITIONS_TODAY:()=>uY,FILTERS_CONDITIONS_TOMORROW:()=>uX,FILTERS_CONDITIONS_YESTERDAY:()=>uZ,FILTERS_DIVS_FILTER_BY_CONDITION:()=>uQ,FILTERS_DIVS_FILTER_BY_VALUE:()=>uJ,FILTERS_LABELS_CONJUNCTION:()=>u0,FILTERS_LABELS_DISJUNCTION:()=>u1,FILTERS_NAMESPACE:()=>uk,FILTERS_VALUES_BLANK_CELLS:()=>u2,FORMULA_BUILDER_ACCEPT_HINT:()=>gm,FORMULA_BUILDER_CELL_ADDRESS:()=>gg,FORMULA_BUILDER_CELL_ERROR:()=>gk,FORMULA_BUILDER_CELL_UNAVAILABLE:()=>gM,FORMULA_BUILDER_CLOSE:()=>gx,FORMULA_BUILDER_DEPENDENT_ERROR:()=>gI,FORMULA_BUILDER_DEPENDENT_ERRORS:()=>gT,FORMULA_BUILDER_EDITOR:()=>gu,FORMULA_BUILDER_FUNCTION_DESCRIPTION:()=>gy,FORMULA_BUILDER_FUNCTION_EXAMPLE:()=>gC,FORMULA_BUILDER_FUNCTION_HELP:()=>gw,FORMULA_BUILDER_FUNCTION_HELP_FOR:()=>gb,FORMULA_BUILDER_INPUT:()=>gc,FORMULA_BUILDER_INVALID_ADDRESS:()=>gE,FORMULA_BUILDER_LEARN_MORE:()=>gR,FORMULA_BUILDER_NAMESPACE:()=>gd,FORMULA_BUILDER_NAVIGATE_HINT:()=>gf,FORMULA_BUILDER_OPTIONAL_ARGUMENT:()=>gS,FORMULA_BUILDER_REPEATABLE_ARGUMENT:()=>gv,FORMULA_BUILDER_SUGGESTIONS:()=>gp,FREEZE_BAR_COLUMNS_END:()=>gi,FREEZE_BAR_COLUMNS_START:()=>gt,FREEZE_BAR_NAMESPACE:()=>c7,FREEZE_BAR_ROWS_BOTTOM:()=>ge,FREEZE_BAR_ROWS_TOP:()=>c9,LOADING_NAMESPACE:()=>cD,LOADING_TITLE:()=>cP,NESTED_ROWS_ANNOUNCEMENT_COLLAPSED:()=>gn,NESTED_ROWS_ANNOUNCEMENT_EXPANDED:()=>gr,NESTED_ROWS_NAMESPACE:()=>go,NOTIFICATION_BUTTONS_CLOSE:()=>cF,NOTIFICATION_NAMESPACE:()=>c_,OK:()=>dz,PAGINATION_COUNTER_SECTION:()=>cr,PAGINATION_FIRST_PAGE:()=>cs,PAGINATION_LAST_PAGE:()=>ch,PAGINATION_NAMESPACE:()=>ce,PAGINATION_NAV_SECTION:()=>cn,PAGINATION_NEXT_PAGE:()=>ca,PAGINATION_PAGE_SIZE_AUTO:()=>ci,PAGINATION_PAGE_SIZE_SECTION:()=>co,PAGINATION_PREV_PAGE:()=>cl,PAGINATION_SECTION:()=>ct,ROW_SELECTION_ANNOUNCE_COUNT:()=>c4,ROW_SELECTION_ANNOUNCE_ROW_DESELECTED:()=>c6,ROW_SELECTION_ANNOUNCE_ROW_SELECTED:()=>c3,ROW_SELECTION_MENU_CLEAR:()=>c8,ROW_SELECTION_MENU_REMOVE:()=>c5,ROW_SELECTION_NAMESPACE:()=>c0,ROW_SELECTION_SELECT_ALL:()=>c2,ROW_SELECTION_SELECT_ROW:()=>c1,SHEETS_BAR_ADD_SHEET:()=>cc,SHEETS_BAR_ALL_SHEETS:()=>cg,SHEETS_BAR_DEFAULT_SHEET_NAME:()=>cI,SHEETS_BAR_ITEMS_DELETE:()=>cf,SHEETS_BAR_ITEMS_DUPLICATE:()=>cw,SHEETS_BAR_ITEMS_MOVE_LEFT:()=>cy,SHEETS_BAR_ITEMS_MOVE_RIGHT:()=>cC,SHEETS_BAR_ITEMS_RENAME:()=>cb,SHEETS_BAR_NAMESPACE:()=>cd,SHEETS_BAR_PAGE_NEXT:()=>cv,SHEETS_BAR_PAGE_PREV:()=>cS,SHEETS_BAR_RENAME_NOT_CHANGED:()=>cE,SHEETS_BAR_RENAME_REJECTED:()=>cx,SHEETS_BAR_RENAME_SHEET:()=>cm,SHEETS_BAR_SECTION:()=>cu,SHEETS_BAR_SHEET_CHANGED:()=>cR,SHEETS_BAR_SHEET_DUPLICATED:()=>cM,SHEETS_BAR_SHEET_MENU:()=>cp,SHEETS_BAR_SHEET_MOVED:()=>ck});var S={};r.r(S),r.d(S,{ISO_DATETIME_REGEX:()=>bV,ISO_DATE_REGEX:()=>bH,TIME_REGEX:()=>bN,formatLocalDate:()=>bY,getDateTimeFormat:()=>bK,getNormalizedDate:()=>bO,getRelativeLocalDate:()=>bU,getTodayLocalDate:()=>b$,isSameLocalDay:()=>bG,isValidISODate:()=>bF,isValidISODateTime:()=>bW,isValidTime:()=>bB,parseToLocalDate:()=>bD,parseToLocalDateTime:()=>bz,parseToLocalTime:()=>bL});let v=e=>["tabindex",e],R=()=>["role","presentation"],x=()=>["role","gridcell"],E=()=>["role","gridcell button"],M=()=>["role","rowheader"],k=()=>["role","rowgroup"],I=()=>["role","columnheader"],T=()=>["role","row"],A=()=>["role","listbox"],H=()=>["role","group"],O=()=>["scope","col"],D=()=>["scope","row"],P=e=>["aria-label",e],_=e=>["aria-labelledby",e],F=e=>["aria-describedby",e],N=e=>["aria-description",e],L=()=>["aria-hidden","true"],B=(e=!0)=>["aria-disabled",e],V=e=>["aria-haspopup",e],z=e=>["aria-rowcount",e],W=e=>["aria-colcount",e],$=e=>["aria-rowindex",e],U=e=>["aria-colindex",e],G=e=>["aria-expanded",e],j=()=>["aria-readonly","true"],q=()=>["aria-invalid","true"],K=e=>["aria-checked",e],Y=()=>["aria-selected","true"],X=e=>["aria-setsize",e],Z=e=>["aria-posinset",e],Q=()=>["aria-busy","true"];function J(e){let t=e.length,i=0;for(;i<t;)e[i]=[e[i]],i+=1}function ee(e,t){let i=t.length,o=0;for(;o<i;)e.push(t[o]),o+=1}function et(e){let t=[];if(!e||0===e.length)return t;let i=e.length,o=0;for(let t=0;t<i;t++){let i=e[t];i&&i.length>o&&(o=i.length)}for(let r=0;r<o;r++){let o=Array(i);for(let t=0;t<i;t++){let i=e[t],n=i?i[r]:void 0;o[t]=void 0===n?null:n}t[r]=o}return t}function ei(e,t,i,o){let r=-1,n=Array.isArray(e)?e:Array.from(e),s=n.length;o&&s&&(r+=1,i=n[r]);let l=i;for(r+=1;r<s;)l=t(l,n[r],r,n),r+=1;return l}function eo(e,t){let i=0,o=Array.isArray(e)?e:Array.from(e),r=o.length,n=[],s=-1;for(;i<r;){let e=o[i];t(e,i,o)&&(n[s+=1]=e),i+=1}return n}function er(e,t){let i=0,o=Array.isArray(e)?e:Array.from(e),r=o.length,n=[],s=-1;for(;i<r;){let e=o[i];n[s+=1]=t(e,i,o),i+=1}return n}function en(e,t){let i,o=0,r=(i=Array.isArray(e)?e:Array.from(e)).length;for(;o<r&&!1!==t(i[o],o,i);)o+=1;return i}function es(e){return ei(e,(e,t)=>e+t,0)}function el(e){return ei(e,(e,t)=>void 0!==e&&e>t?e:t,e[0])}function ea(e){return ei(e,(e,t)=>void 0!==e&&e<t?e:t,e[0])}function eh(e){return e.length?es(e)/e.length:0}function ed(e,t){let i=0;for(let o=0;o<e.length;o++)t.has(o)||(e[i]=e[o],i+=1);return e.length=i,e}function eu(e,t,i,o){if(i<=0)return e;let r=e.length,n=Math.min(t,r);e.length=r+i;for(let t=r-1;t>=n;t--)e[t+i]=e[t];return e.fill(o,n,n+i),e}function ec(e){let t=[],i=new Set;return en(e,e=>{i.has(e)||(i.add(e),t.push(e))}),t}function eg(...e){let[t,...i]=[...e],o=t;return en(i,e=>{let t=new Set(e);o=o.filter(e=>!t.has(e))}),o}function ep(...e){let t,i=[];en(e,(o,r)=>{"function"==typeof o?r===e.length-1&&(t=o):i.push(o)});let[o,...r]=i,n=o;return en(r,e=>{if(t)n=n.filter(i=>e.some(e=>t(i,e)));else{let t=new Set(e);n=n.filter(e=>t.has(e))}}),n}function em(...e){let[t,...i]=[...e],o=new Set(t);return en(i,e=>{en(e,e=>{o.has(e)||o.add(e)})}),Array.from(o)}function ef(e,t=" "){return e.split(t)}function ew(e,t=" "){return e.join(t)}function eb(e,...t){return ei(Array.from(e),(e,i,o)=>{let r=i.replace(/\r?\n\s*/g,""),n=t[o];return e+r+(n||0===n?n:"")},"").trim()}let eC=/^[0-9a-fA-F]{25}$/;function ey(e){return"entitlement"===function(e){if("string"!=typeof e)return"unknown";let t=e.trim(),i=t.lastIndexOf("[");return -1!==i&&-1!==t.indexOf("]",i)?"entitlement":eC.test(t.replace(/-/g,""))?"legacy":"unknown"}(e)}let eS=["usage_until","release_until"],ev=[0x428a2f98,0xd728ae22,0x71374491,0x23ef65cd,0xb5c0fbcf,0xec4d3b2f,0xe9b5dba5,0x8189dbbc,0x3956c25b,0xf348b538,0x59f111f1,0xb605d019,0x923f82a4,0xaf194f9b,0xab1c5ed5,0xda6d8118,0xd807aa98,0xa3030242,0x12835b01,0x45706fbe,0x243185be,0x4ee4b28c,0x550c7dc3,0xd5ffb4e2,0x72be5d74,0xf27b896f,0x80deb1fe,0x3b1696b1,0x9bdc06a7,0x25c71235,0xc19bf174,0xcf692694,0xe49b69c1,0x9ef14ad2,0xefbe4786,0x384f25e3,0xfc19dc6,0x8b8cd5b5,0x240ca1cc,0x77ac9c65,0x2de92c6f,0x592b0275,0x4a7484aa,0x6ea6e483,0x5cb0a9dc,0xbd41fbd4,0x76f988da,0x831153b5,0x983e5152,0xee66dfab,0xa831c66d,0x2db43210,0xb00327c8,0x98fb213f,0xbf597fc7,0xbeef0ee4,0xc6e00bf3,0x3da88fc2,0xd5a79147,0x930aa725,0x6ca6351,0xe003826f,0x14292967,0xa0e6e70,0x27b70a85,0x46d22ffc,0x2e1b2138,0x5c26c926,0x4d2c6dfc,0x5ac42aed,0x53380d13,0x9d95b3df,0x650a7354,0x8baf63de,0x766a0abb,0x3c77b2a8,0x81c2c92e,0x47edaee6,0x92722c85,0x1482353b,0xa2bfe8a1,0x4cf10364,0xa81a664b,0xbc423001,0xc24b8b70,0xd0f89791,0xc76c51a3,0x654be30,0xd192e819,0xd6ef5218,0xd6990624,0x5565a910,0xf40e3585,0x5771202a,0x106aa070,0x32bbd1b8,0x19a4c116,0xb8d2d0c8,0x1e376c08,0x5141ab53,0x2748774c,0xdf8eeb99,0x34b0bcb5,0xe19b48a8,0x391c0cb3,0xc5c95a63,0x4ed8aa4a,0xe3418acb,0x5b9cca4f,0x7763e373,0x682e6ff3,0xd6b2b8a3,0x748f82ee,0x5defb2fc,0x78a5636f,0x43172f60,0x84c87814,0xa1f0ab72,0x8cc70208,0x1a6439ec,0x90befffa,0x23631e28,0xa4506ceb,0xde82bde9,0xbef9a3f7,0xb2c67915,0xc67178f2,0xe372532b,0xca273ece,0xea26619c,0xd186b8c7,0x21c0c207,0xeada7dd6,0xcde0eb1e,0xf57d4f7f,0xee6ed178,0x6f067aa,0x72176fba,0xa637dc5,0xa2c898a6,0x113f9804,0xbef90dae,0x1b710b35,0x131c471b,0x28db77f5,0x23047d84,0x32caab7b,0x40c72493,0x3c9ebe0a,0x15c9bebc,0x431d67c4,0x9c100d4c,0x4cc5d4be,0xcb3e42b6,0x597f299c,0xfc657e2a,0x5fcb6fab,0x3ad6faec,0x6c44198c,0x4a475817];function eR(e){return`00000000${(e>>>0).toString(16)}`.slice(-8)}function ex(e){let t=e.length,i=Math.ceil((t+17)/128),o=new Uint8Array(128*i);o.set(e),o[t]=128;let r=8*t,n=o.length;o[n-7]=255&Math.floor(r/0x1000000000000),o[n-6]=255&Math.floor(r/0x10000000000),o[n-5]=255&Math.floor(r/0x100000000),o[n-4]=r>>>24&255,o[n-3]=r>>>16&255,o[n-2]=r>>>8&255,o[n-1]=255&r;let s=[0x6a09e667,0xf3bcc908,0xbb67ae85,0x84caa73b,0x3c6ef372,0xfe94f82b,0xa54ff53a,0x5f1d36f1,0x510e527f,0xade682d1,0x9b05688c,0x2b3e6c1f,0x1f83d9ab,0xfb41bd6b,0x5be0cd19,0x137e2179],l=Array(80),a=Array(80);for(let e=0;e<i;e+=1){let t=128*e;for(let e=0;e<16;e+=1){let i=t+8*e;l[e]=(o[i]<<24|o[i+1]<<16|o[i+2]<<8|o[i+3])>>>0,a[e]=(o[i+4]<<24|o[i+5]<<16|o[i+6]<<8|o[i+7])>>>0}for(let e=16;e<80;e+=1){let t=l[e-2],i=a[e-2],o=l[e-15],r=a[e-15],n=(t>>>19|i<<13)^(i>>>29|t<<3)^t>>>6,s=(o>>>1|r<<31)^(o>>>8|r<<24)^o>>>7,h=(r>>>1|o<<31)^(r>>>8|o<<24)^(r>>>7|o<<25),d=(((i>>>19|t<<13)^(t>>>29|i<<3)^(i>>>6|t<<26))>>>0)+(a[e-7]>>>0)+(h>>>0)+(a[e-16]>>>0);a[e]=d>>>0,l[e]=(n>>>0)+(l[e-7]>>>0)+(s>>>0)+(l[e-16]>>>0)+Math.floor(d/0x100000000)>>>0}let i=s[0],r=s[1],n=s[2],h=s[3],d=s[4],u=s[5],c=s[6],g=s[7],p=s[8],m=s[9],f=s[10],w=s[11],b=s[12],C=s[13],y=s[14],S=s[15];for(let e=0;e<80;e+=1){let t=(p>>>14|m<<18)^(p>>>18|m<<14)^(m>>>9|p<<23),o=(m>>>14|p<<18)^(m>>>18|p<<14)^(p>>>9|m<<23),s=(i>>>28|r<<4)^(r>>>2|i<<30)^(r>>>7|i<<25),v=(r>>>28|i<<4)^(i>>>2|r<<30)^(i>>>7|r<<25),R=p&f^~p&b,x=i&n^i&d^n&d,E=r&h^r&u^h&u,M=(S>>>0)+(o>>>0)+((m&w^~m&C)>>>0)+(ev[2*e+1]>>>0)+(a[e]>>>0),k=M>>>0,I=(y>>>0)+(t>>>0)+(R>>>0)+(ev[2*e]>>>0)+(l[e]>>>0)+Math.floor(M/0x100000000)>>>0,T=(v>>>0)+(E>>>0),A=T>>>0,H=(s>>>0)+(x>>>0)+Math.floor(T/0x100000000)>>>0;y=b,S=C,b=f,C=w,f=p,w=m;let O=(g>>>0)+k;m=O>>>0,p=(c>>>0)+I+Math.floor(O/0x100000000)>>>0,c=d,g=u,d=n,u=h,n=i,h=r;let D=k+A;r=D>>>0,i=I+H+Math.floor(D/0x100000000)>>>0}let v=[i,r,n,h,d,u,c,g,p,m,f,w,b,C,y,S];for(let e=0;e<16;e+=2){let t=(s[e+1]>>>0)+(v[e+1]>>>0);s[e+1]=t>>>0,s[e]=(s[e]>>>0)+(v[e]>>>0)+Math.floor(t/0x100000000)>>>0}}return s.map(eR).join("")}function eE(e){let t=[];for(let i=0;i<e.length;i+=1){let o=e.charCodeAt(i);if(o>=55296&&o<=56319&&i+1<e.length){let t=e.charCodeAt(i+1);t>=56320&&t<=57343&&(o=(o-55296)*1024+(t-56320)+65536,i+=1)}o<128?t.push(o):o<2048?t.push(192|o>>6,128|63&o):o<65536?t.push(224|o>>12,128|o>>6&63,128|63&o):t.push(240|o>>18,128|o>>12&63,128|o>>6&63,128|63&o)}return t}function eM(e){let t="string"==typeof e?/^(\d{4})-(\d{2})-(\d{2})$/.exec(e):null;if(null===t)return null;let i=parseInt(t[1],10),o=parseInt(t[2],10),r=parseInt(t[3],10);if(i<100)return null;let n=Date.UTC(i,o-1,r),s=new Date(n);return s.getUTCFullYear()!==i||s.getUTCMonth()!==o-1||s.getUTCDate()!==r?null:n}let ek=/^[A-Za-z0-9\-_]+$/,eI=/^[0-9a-f]+$/,eT=/[\t\n\v\f\r \u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/g,eA=/\\[nrt]/g;function eH(e){return e.replace(eA,"").replace(eT,"")}function eO(e){return eH(e).normalize("NFC")}function eD(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function eP(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function e_(e){return"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e&&e>=0}function eF(e){return Array.isArray(e)&&e.every(e=>"string"==typeof e)}function eN(e,t,i){Object.defineProperty(e,t,{value:i,enumerable:!0,writable:!0,configurable:!0})}let eL=null,eB=null;function eV(e){return 864e5*Math.floor(e/864e5)}function ez(e,t){return(e-eV(t))/864e5}let eW="tier:";function e$(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}function eU(e){return void 0!==e}function eG(e){return void 0===e}function ej(e){return null===e||""===e||eG(e)}function eq(e){return"[object RegExp]"===Object.prototype.toString.call(e)}let eK="length",eY=e=>parseInt(e,16),eX=e=>parseInt(e,10),eZ=(e,t,i)=>e.substr(t,i),eQ=e=>(e.codePointAt(0)??0)-65,eJ=e=>`${e}`.replace(/\-/g,""),e0=e=>eY(eZ(eJ(e),eY("12"),eQ("F")))/(eY(eZ(eJ(e),eQ("B"),~~![][eK]))||9),e1=()=>"u">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),e2=!1,e3=new Set,e6={invalid:()=>eb`
32
32
  The license key for Handsontable is invalid.\x20
@@ -49,7 +49,7 @@
49
49
  To renew your license, contact sales@handsontable.com.`},usage_soft_stop:{severity:"error",message:ti},usage_hard_stop:{severity:"error",message:ti},release_expired:{severity:"error",message:({licensedUntil:e,hotVersion:t})=>eb`
50
50
  The license key for Handsontable expired on ${e}, and is not valid for the installed\x20
51
51
  version ${t}. Renew your license key or downgrade to a version released on or before\x20
52
- ${e}. If you need any help, contact us at sales@handsontable.com.`}},tr={trial_soft_stop:()=>[`${te} ${tt} `,{text:"Contact Sales",href:"mailto:sales@handsontable.com"},"."],release_expired:({licensedUntil:e,hotVersion:t})=>[`The license key for Handsontable expired on ${e}, and is not valid for the installed version ${t}. `,{text:"Renew",href:"https://handsontable.com/pricing",target:"_blank"},` your license key or downgrade to a version released on or before ${e}. If you need any help, contact us at `,{text:"sales@handsontable.com",href:"mailto:sales@handsontable.com"},"."]},tn=Object.freeze(["trial_hard_stop","invalid","missing"]);function ts(e){return -1!==tn.indexOf(e)}function tl(e){return"string"==typeof e?e.trim():e}function ta({className:e,key:t,element:i,releaseDate:o}){let r;if(ey(t=tl(t)))return function({className:e,key:t,element:i,releaseDate:o}){if(e1())return null;let{lifecycle:r,channels:n}=tc(t,o),{state:s}=r,l={daysRemaining:r.daysRemaining,licensedUntil:r.licensedUntil??void 0,hotVersion:"19.0.0-rc2"};if(n.console&&!e3.has(t??"")){let e="invalid"===s?{severity:"warn",message:()=>e6.invalid({})}:to[s];e&&(console[e.severity](e.message(l)),e3.add(t??""))}if(!n.ui||!i||ts(s))return null;let a=tr[s];if(!a)return null;let h=i.ownerDocument,d=String(e),u=tg(h,d);return u.appendChild(tp(h,d,a(l))),i.appendChild(u),u}({className:e,key:t,element:i,releaseDate:o});let n=!ej(t),s="19.0.0-rc2",l="invalid",a="invalid",h=tm(t=eJ(t||""));if(n||h)if(h){let[e,i,n]=(o??"17/11/2026"??"").split("/").map(Number),s=Math.floor(Date.UTC(n,i-1,e)/864e5),h=e0(t);r=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"long",day:"2-digit",timeZone:"UTC"}).format((h+1)*864e5),s>h?(l="expired",a="expired"):(l="valid",a="valid")}else l="invalid",a="invalid";else l="missing",a="missing";if(e1()&&(l="valid",a="valid"),e2||"valid"===l||(console.warn(e6[l]({keyValidityDate:r,hotVersion:s})),e2=!0),"valid"!==a&&!ts(a)&&i){let t=e5[a]({keyValidityDate:r,hotVersion:s});if(t.length>0){let o=i.ownerDocument,r=o.createElement("div"),n=o.createElement("div");return r.className=`handsontable ${e}`,n.className=`${e}_inner`,e4(n,t,o),r.appendChild(n),i.appendChild(r),r}}return null}function th(e){return new Date(e).toISOString().slice(0,10)}let td=Object.freeze({console:!0,ui:!0});function tu(e,t=null){return{state:e,isTrial:!1,daysRemaining:null,licensedUntil:t}}function tc(e,t){var i;let o,r=tl(e);if(e1())return{lifecycle:tu("legacy_valid"),channels:td,badge:!1,tiers:null};if(!ey(r))return{lifecycle:function(e,t){if(ej(e))return tu("missing");let i=eJ(e||"");if(!tm(i))return tu("invalid");let[o,r,n]=(t??"17/11/2026"??"").split("/").map(Number),s=Math.floor(Date.UTC(n,r-1,o)/864e5),l=e0(i);return s>l?tu("legacy_expired",th((l+1)*864e5)):tu("legacy_valid")}(r,t),channels:td,badge:!1,tiers:null};let n=function(e){if("string"!=typeof e)return null;if(e!==eL){let t=function(e){let t,i,o=e.lastIndexOf("[");if(-1===o)return null;let r=e.indexOf("]",o);if(-1===r)return null;let n=eH(e.slice(o+1,r));if(n.length<=128)return null;let s=n.slice(0,-128),l=n.slice(-128);if(!ek.test(s)||!eI.test(l)||ex(eE(s))!==l)return null;let a=null===(i=function(e){let t=`${e}`.replace(/-/g,"+").replace(/_/g,"/").replace(/=+$/,"");if(!/^[A-Za-z0-9+/]*$/.test(t)||t.length%4==1)return null;let i=[];for(let e=0;e<t.length;e+=4){let o=[0,1,2,3].map(i=>{let o=t.charAt(e+i);return""===o?-1:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(o)});i.push(o[0]<<2|o[1]>>4),-1!==o[2]&&i.push((15&o[1])<<4|o[2]>>2),-1!==o[3]&&i.push((3&o[2])<<6|o[3])}return i}(s))?null:function(e){let t="",i=0;for(;i<e.length;){let o,r=e[i];r<128?(o=r,i+=1):r<224?(o=(31&r)<<6|63&e[i+1],i+=2):r<240?(o=(15&r)<<12|(63&e[i+1])<<6|63&e[i+2],i+=3):(o=(7&r)<<18|(63&e[i+1])<<12|(63&e[i+2])<<6|63&e[i+3],i+=4),o>=65536?(o-=65536,t+=String.fromCharCode(55296+(o>>10),56320+(1023&o))):t+=String.fromCharCode(o)}return t}(i);if(null===a)return null;try{t=JSON.parse(a)}catch(e){return null}if(!eP(t)||!eP(t.products))return null;let h=eD(p=t,"v")?!e_(p.v)||p.v<2?null:p.v:1;if(null===h||h>=2&&!function(e,t,i){if(""!==eO(i))return!1;let o=eO(t);return""!==o&&eD(e,"prose")&&"string"==typeof e.prose&&ex(eE(o)).slice(0,64)===e.prose}(t,e.slice(0,o),e.slice(r+1)))return null;let d={},u=t.products,c=!1;if(Object.keys(u).forEach(e=>{let t=function(e){if(!eP(e)||!eF(e.capabilities))return null;let t=eS.filter(t=>void 0!==e[t]);if(1!==t.length||null===eM(e[t[0]])||!e_(e.notice)||!e_(e.grace)||void 0!==e.flags&&!eF(e.flags))return null;let i={};return Object.keys(e).forEach(t=>eN(i,t,e[t])),eN(i,"capabilities",e.capabilities.slice()),eN(i,"notice",e.notice),eN(i,"grace",e.grace),eN(i,"flags",void 0===e.flags?[]:e.flags.slice()),eN(i,t[0],e[t[0]]),i}(u[e]);if(null===t){c=!0;return}eN(d,e,t)}),c)return null;var g,p,m={version:h,products:d};let f=[m];for(;f.length>0;){let e=f.pop();null===(g=e)||"object"!=typeof g||Object.isFrozen(g)||(Object.freeze(e),Object.keys(e).forEach(t=>f.push(e[t])))}return m}(e);eL=e,eB=t}return eB}(r),s=null===n?null:function(e,t){if(!eD(e.products,t))return null;let i=e.products[t];return eP(i)?i:null}(n,"handsontable");if(null===n||null===s)return{lifecycle:tu("invalid"),channels:td,badge:!1,tiers:null};let l=t||"17/11/2026";return{lifecycle:function(e,t){let i=-1!==e.flags.indexOf("trial");if(void 0!==e.release_until){let o=e.release_until;return{state:o>=t.buildDate||null===eM(t.buildDate)?"release_valid":"release_expired",isTrial:i,daysRemaining:null,licensedUntil:o}}let o=`${e.usage_until}`,r=eM(o)??eV(t.now),n=function(e,t,i){let o=e+864e5;if(i>=o)return i<o+864e5*t.grace?"soft_stop":"hard_stop";let r=ez(e,i);return t.notice>0&&r<=t.notice?"notice":"valid"}(r,e,t.now);return{state:`${i?"trial":"usage"}_${n}`,isTrial:i,daysRemaining:ez(r,t.now),licensedUntil:o}}(s,{now:Date.now(),buildDate:function(e){let[t,i,o]=`${e}`.split("/");return t&&i&&o?`${o}-${i.padStart(2,"0")}-${t.padStart(2,"0")}`:""}(l)}),channels:{console:-1===s.flags.indexOf("no-console-warns"),ui:-1===s.flags.indexOf("no-ui-warns")},badge:-1!==s.flags.indexOf("badge"),tiers:(i=s.capabilities,o=[],i.forEach(e=>{e.startsWith(eW)&&e.length>eW.length&&o.push(e.slice(eW.length))}),o.length>0?o:null)}}function tg(e,t){let i=e.createElement("div");return i.className=`handsontable ${t}`,i}function tp(e,t,i,o){let r=e.createElement("div");return r.className=o?`${t}_inner ${o}`:`${t}_inner`,e4(r,i,e),r}function tm(e){let t=[][eK],i=t;if(e[eK]!==eQ("Z"))return!1;for(let t="",o="B<H4P+".split(""),r=eQ(o.shift()??"A");r;r=eQ(o.shift()??"A"))--r<""[eK]?i|=(eX(`${eX(eY(t)+(eY(eZ(e,Math.abs(r),2))+String([])).padStart(2,"0"))}`)%97||2)>>1:t=eZ(e,r,r?1===o[eK]?9:8:6);return i===t}function tf(e){let t=Error(e);throw t.cause={handsontable:!0},t}function tw(e){let t;if(Array.isArray(e))t=e.length?Array(e.length).fill(null):[];else{let i=Object.create(null);tT(e,(e,t)=>{"__children"!==t&&(e&&"object"==typeof e&&!Array.isArray(e)?i[t]=tw(e):Array.isArray(e)?e.length&&"object"==typeof e[0]&&!Array.isArray(e[0])?i[t]=[tw(e[0])]:i[t]=[]:i[t]=null)}),t=i}return t}function tb(e,t){return t.prototype.constructor=t,e.prototype=new t,e.prototype.constructor=e,e}function tC(e,t,i){let o=Array.isArray(i);return tT(t,(t,r)=>{"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(!1===o||i.includes(r))&&(e[r]=t)}),e}function ty(e,t){tT(t,(i,o)=>{if("__proto__"===o||"constructor"===o||"prototype"===o)return;let r=t[o];r&&"object"==typeof r?(e[o]||(Array.isArray(r)?e[o]=[]:"[object Date]"===Object.prototype.toString.call(r)?e[o]=r:e[o]={}),ty(e[o],r)):e[o]=r})}function tS(e){if(Array.isArray(e))return e.map(e=>tS(e));if(e instanceof Date)return new Date(e);if("object"==typeof e&&null!==e){let t={};for(let[i,o]of Object.entries(e))"__proto__"!==i&&"constructor"!==i&&"prototype"!==i&&(t[i]=tS(o));return t}return e}function tv(e){let t={};return tT(e,(e,i)=>{t[i]=e}),t}function tR(e,...t){return e.MIXINS||(e.MIXINS=[]),en(t,t=>{e.MIXINS.push(t.MIXIN_NAME),tT(t,(t,i)=>{if(void 0!==e.prototype[i]&&tf(`Mixin conflict. Property '${i}' already exist and cannot be overwritten.`),"function"==typeof t)e.prototype[i]=t;else{let o,r;Object.defineProperty(e.prototype,i,{get:(o=`_${i}`,function(){let e;return void 0===this[o]&&(this[o]=((Array.isArray(e=t)||tM(e))&&(e=tS(e)),e)),this[o]}),set:(r=`_${i}`,function(e){this[r]=e}),configurable:!0})}})}),e}function tx(e,t){let i=e=>{if(void 0===e)return"undefined";if(Array.isArray(e))return`[${e.map(i).join(",")}]`;if(e instanceof Date)return JSON.stringify(e);if(null!==e&&"object"==typeof e){let t=Object.entries(e).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>`${JSON.stringify(e)}:${i(t)}`);return`{${t.join(",")}}`}return JSON.stringify(e)};return i(e)===i(t)}function tE(e){return tM(e)}function tM(e){return"[object Object]"===Object.prototype.toString.call(e)}function tk(e){Array.isArray(e)?e.forEach((t,i)=>{"function"==typeof t?e[i]=null:tk(t)}):tM(e)&&Object.keys(e).forEach(t=>{"function"==typeof e[t]?delete e[t]:tk(e[t])})}function tI(e,t,i,o){o.value=i,o.writable=!1!==o.writable,o.enumerable=!1!==o.enumerable,o.configurable=!1!==o.configurable,Object.defineProperty(e,t,o)}function tT(e,t){for(let i in e)if((!e.hasOwnProperty||e.hasOwnProperty&&Object.prototype.hasOwnProperty.call(e,i))&&!1===t(e[i],i,e))break;return e}function tA(e,t){let i=t.split("."),o=e;for(let e=0;e<i.length;e+=1)if(void 0===(o=o[i[e]])||null===o&&e<i.length-1)return;return o}function tH(e,t,i){if("__proto__"===t||"constructor"===t||"prototype"===t)return;let o=Object.getOwnPropertyDescriptor(e,t);if(o&&(o.get||o.set)){"function"==typeof o.set&&o.set.call(e,i);return}if(o&&!1===o.configurable){!0===o.writable&&(e[t]=i);return}Object.defineProperty(e,t,{value:i,writable:!0,enumerable:!0,configurable:!0})}function tO(e,t,i){if("string"!=typeof t||null===e||"object"!=typeof e)return;let o=t.split("."),r=e;for(let e=0;e<o.length;e+=1){let t=o[e];if("__proto__"===t||"constructor"===t||"prototype"===t)return;if(e!==o.length-1){t_(r,t)||(r[t]={});let e=r[t];if(!tM(e))return;r=e}else tH(r,t,i)}}function tD(e){if(!tM(e))return 0;let t=function(e){let i=0;return tM(e)?tT(e,(e,o)=>{"__children"!==o&&(i+=t(e))}):i+=1,i};return t(e)}function tP(e,t="value"){let i=`_${t}`,o={_touched:!1,[i]:e,isTouched(){return!!this._touched},value:void 0};return Object.defineProperty(o,t,{get(){return this[i]},set(e){this._touched=!0,this[i]=e},enumerable:!0,configurable:!0}),o}function t_(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function tF(e,t){if("object"!=typeof e||null===e)return t;if("object"!=typeof t||null===t)return e;let i={};return Object.keys(t).forEach(o=>{let r=t[o],n=e[o];tM(r)?i[o]=tF(tM(n)?n:{},r):i[o]=t_(e,o)&&void 0!==n?n:r}),Object.keys(e).forEach(t=>{t_(i,t)||(i[t]=e[t])}),i}function tN(e={},t={}){let i={...e};return Object.keys(t).forEach(e=>{if("__proto__"===e||"constructor"===e||"prototype"===e)return;let o=t[e],r=i[e];tM(o)&&tM(r)?i[e]=tN(r,o):i[e]=o}),i}function tL(e){return tM(e)&&eU(e.key)&&eU(e.value)}function tB(e){return window.requestAnimationFrame(e)}function tV(e){window.cancelAnimationFrame(e)}function tz(e,t=100){return"function"==typeof window.requestIdleCallback?window.requestIdleCallback(()=>e(),{timeout:t}):window.requestAnimationFrame(e)}function tW(e){"function"==typeof window.cancelIdleCallback?window.cancelIdleCallback(e):window.cancelAnimationFrame(e)}function t$(){return"ontouchstart"in window}function tU(){return"u">typeof window}function tG(t,i={}){return e||(e="object"==typeof Intl?new Intl.Collator(t,i).compare:"function"==typeof String.prototype.localeCompare?(e,t)=>`${e}`.localeCompare(t):(e,t)=>e===t?0:e>t?-1:1)}let tj=e=>{let t={value:!1,test(i,o){t.value=e(i,o)}};return t},tq=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i,tK={chrome:tj((e,t)=>/Chrome/.test(e)&&/Google/.test(t??"")),chromeWebKit:tj(e=>/CriOS/.test(e)),edge:tj(e=>/Edge/.test(e)),edgeWebKit:tj(e=>/EdgiOS/.test(e)),firefox:tj(e=>/Firefox/.test(e)),firefoxWebKit:tj(e=>/FxiOS/.test(e)),mobile:tj(e=>tq.test(e)),safari:tj((e,t)=>/Safari/.test(e)&&/Apple Computer/.test(t??"")),safariBefore261:tj((e,t)=>{if(!/Safari/.test(e)||!/Apple Computer/.test(t??""))return!1;let i=/Version\/(\d+(?:\.\d+)?)/i.exec(e);return(i?Number.parseFloat(i[1]):0)<26.1})},tY={mac:tj(e=>/^Mac/.test(e)),win:tj(e=>/^Win/.test(e)),linux:tj(e=>/^Linux/.test(e)),ios:tj(e=>/iPhone|iPad|iPod/i.test(e))};function tX({userAgent:e=navigator.userAgent,vendor:t=navigator.vendor}={}){tT(tK,({test:i})=>i(e,t))}function tZ({platform:e=navigator.platform}={}){tT(tY,({test:t})=>t(e))}function tQ(){return tK.chrome.value}function tJ(){return tK.chromeWebKit.value}function t0(){return tK.firefox.value}function t1(){return tK.firefoxWebKit.value}function t2(){return tK.safari.value}function t3(){return tK.safariBefore261.value}function t6(){return tK.edge.value}function t4(){return tK.edgeWebKit.value}function t5(e){return"string"==typeof e?.userAgent?tq.test(e.userAgent):tK.mobile.value}function t8(){return tY.ios.value}function t7(e){let t=(e??navigator).maxTouchPoints??0,i="string"==typeof e?.platform?/^Mac/.test(e.platform):tY.mac.value;return t>2&&i}function t9(e){return t5(e)||t7(e)}function ie(){return tY.win.value}function it(){return tY.mac.value}function ii(){return tY.linux.value}function io(e,t={}){return`${e}`.replace(/(?:\\)?\[([^[\]]+)]/g,(e,i)=>"\\"===e.charAt(0)?e.substr(1,e.length-1):void 0===t[i]?"":String(t[i]))}function ir(...e){eU(console)&&console.warn(...e)}tU()&&(tX(),tZ());let is=new WeakMap;function il(e,t,...i){let o=is.get(e);void 0===o&&(o=new Set,is.set(e,o)),o.has(t)||(o.add(t),ir(...i))}let ia=new Set;function ih(e,t){ia.has(e)||eU(console)&&(ia.add(e),console.warn(t))}function id(e,t){ih(e,`Deprecated: ${t}`)}function iu(...e){eU(console)&&console.error(...e)}let ic="bottom",ig="inline_start",ip="inline_end",im="top_inline_start_corner",iw="bottom_inline_start_corner",ib="top_inline_end_corner",iC="bottom_inline_end_corner",iy=["top",ic,ig,ip,im,iw,ib,iC],iS=[ip,ib,iC],iv="htScrollbarClearanceFillers",iR="htScrollbarClearanceFiller",ix="htScrollbarProxy",iE="htOverlayRail",iM=new Map([["top","ht_clone_top"],[ic,`ht_clone_${ic}`],[ig,`ht_clone_${ig} ht_clone_left`],[im,`ht_clone_${im} ht_clone_top_left_corner`],[iw,`ht_clone_${iw} ht_clone_bottom_left_corner`],[ip,`ht_clone_${ip}`],[ib,`ht_clone_${ib}`],[iC,`ht_clone_${iC}`]]);function ik(e,t=0){let i=-1,o=null,r=e;for(;null!==r;){if(i===t){o=oG(r)?r:null;break}oY(r)?r=r.host:(i+=1,r=r.parentNode)}return o}function iI(e,t){let i=e.closest(".handsontable");if(!i)return!1;let o=i.parentNode;return oG(o)&&o.classList.contains(iE)&&(o=o.parentNode),i===t||o===t}function iT(e){return e.target}function iA(e){let t=iT(e);if(null===t||"function"!=typeof e.composedPath)return t;let[i]=e.composedPath();return oG(i)&&i!==t&&oX(i).includes(t)?i:t}function iH(e){let{frameElement:t}=e;return e.parent&&Object.getPrototypeOf(e.parent)&&t instanceof HTMLIFrameElement?t:null}function iO(e){return iH(e)?e.parent:null}function iD(e){return!!Object.getPrototypeOf(e.parent)}function iP(e,t=[],i){let{ELEMENT_NODE:o,DOCUMENT_FRAGMENT_NODE:r}=Node,n=e;for(;null!=n&&n!==i;){let{nodeType:e,nodeName:i}=n;if(e===o&&oG(n)&&(t.includes(i)||t.includes(n)))return n;n=oY(n)?n.host:n.parentNode}return null}function i_(e,t,i){let o=[],r=oG(e)?e:null;for(;r&&(r=iP(r,t,i))&&(!i||i.contains(r));)if(o.push(r),oY(r)){let{host:e}=r;r=oG(e)?e:null}else r=r.parentElement;let n=o.length;return n?o[n-1]:null}function iF(e,t){let i={element:void 0,classNames:[]},o=e;for(;null!==o&&o!==e.ownerDocument.documentElement&&!i.element;){if("string"==typeof t&&o.classList.contains(t))i.element=o,i.classNames.push(t);else if(t instanceof RegExp){let e=Array.from(o.classList).filter(e=>t.test(e));e.length&&(i.element=o,i.classNames.push(...e))}o=o.parentElement}return i}function iN(e,t){let i=e.parentNode,o=[];for("string"==typeof t?o=e instanceof Document?Array.from(e.querySelectorAll(t)):Array.from(e.ownerDocument.querySelectorAll(t)):o.push(t);null!==i;){if(o.indexOf(i)>-1)return!0;i=i.parentNode}return!1}function iL(e){let t=0,i=e;if(i.previousSibling)for(;i=i.previousSibling;)t+=1;return t}function iB(e,t,i){let o=i.parentElement?.querySelector(`.ht_clone_${e}`);return!!o&&o.contains(t)}function iV(e){if(!e||!e.classList||!e.parentNode||!e.parentNode.parentNode||e.classList.contains("hiddenHeader")||"none"===e.style.display)return!1;let t=e.parentNode,i=Array.from(t?.parentNode?.childNodes??[]);return(t?i.indexOf(t):-1)+(Number.parseInt(e.getAttribute("rowspan")??"",10)||1)>=i.length}function iz(e){return e&&e.length?e.filter(e=>!!e):[]}function iW(e){return Array.isArray(e)?iz(e):"string"==typeof e?iz(e.split(" ")):[]}function i$(e,t){if(!e||!e.length)return t?{regexFree:[],regexes:[]}:[];let i=[],o=[];return o.push(...e.filter(e=>{let o=e instanceof RegExp;return o&&t&&i.push(e),!o})),t?{regexFree:o,regexes:i}:o}function iU(e,t){return void 0!==e.classList&&"string"==typeof t&&""!==t&&e.classList.contains(t)}function iG(e,t){"string"==typeof t&&(t=t.split(" ")),(t=iz(t)).length>0&&e.classList.add(...t)}function ij(e,t){"string"==typeof t?t=t.split(" "):t instanceof RegExp&&(t=[t]);let{regexFree:i,regexes:o}=i$(t,!0);(i=iz(i)).length>0&&e.classList.remove(...i),o.forEach(t=>{e.classList.forEach(i=>{t.test(i)&&e.classList.remove(i)})})}function iq(e,t=[],i){Array.isArray(t)||(t=[[t,i??""]]),t.forEach(t=>{Array.isArray(t)&&""!==t[0]&&e.setAttribute(t[0],String(t[1]))})}function iK(e,t=[]){"string"==typeof t?t=t.split(" "):t instanceof RegExp&&(t=[t]);let{regexFree:i,regexes:o}=i$(t,!0);if(i.forEach(t=>{""!==t&&e.removeAttribute(t)}),o.length>0){let t=e.getAttributeNames();for(let i=0;i<t.length;i++){let r=t[i];for(let t=0;t<o.length;t++)if(o[t].test(r)){e.removeAttribute(r);break}}}}function iY(e){if(3===e.nodeType)e.parentNode?.removeChild(e);else if(["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(e.nodeName)>-1){let t=e.childNodes;for(let e=t.length-1;e>=0;e--)iY(t[e])}}function iX(e){let t;for(;t=e.lastChild;)e.removeChild(t)}let iZ=/(?:<\/?[a-z][^<>]*>)|(?:<[!?])|(?:&[a-z][a-z\d]+;)|(?:&#x?[\da-f]+;)/i,iQ="sanitizer";function iJ(e){return`HTML content is being written to the DOM ("${e}") without a sanitizer. Configure the "sanitizer" option to prevent XSS vulnerabilities.`}let i0={};function i1(e,t,i=!0,o="innerHTML",r=i0){if(iZ.test(t)){let n;"function"==typeof i?n=i(t,o)??"":(!1!==i&&il(r,iQ,iJ(o)),n=t);let s=i6(e);if(""===n)return void iX(s);s.innerHTML=n}else i2(e,t)}function i2(e,t){let i=i6(e),o=i.firstChild;o&&3===o.nodeType&&null===o.nextSibling?o.textContent=t:(iX(i),i.appendChild(i.ownerDocument.createTextNode(t)))}let i3="htCellClip";function i6(e){let t=e.firstChild;return t&&t.nodeType===Node.ELEMENT_NODE&&null===t.nextSibling&&oG(t)&&iU(t,i3)?t:e}function i4(e){return e.previousElementSibling?.nodeName==="TH"}function i5(e,t,i){return(i?t.left-e.right:e.left-t.right)<.5}function i8(e,t){return e.top-t.bottom<.5}function i7(e){if("function"==typeof e.checkVisibility)return e.checkVisibility();let t=e.ownerDocument.documentElement,i=e.ownerDocument.defaultView,o=e;for(;o!==t;){if(null===o)return!1;if(oY(o)){let e=o.host;if(e.impl)return i7(e.impl);return i7(e)}if(o.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;else if(o.nodeType===Node.ELEMENT_NODE&&oG(o)&&i?.getComputedStyle(o).display==="none")return!1;o=o.parentNode}return!0}function i9(e){let t=e.ownerDocument.defaultView,i=e;for(;i.parentElement;){if("0px"===i.style.height||"0"===i.style.height){let e=t?.getComputedStyle(i).getPropertyValue("overflow");return"hidden"===e||"clip"===e}i=i.parentElement}return!1}function oe(e){let t,i,o,r=e.ownerDocument,n=r.defaultView,s=r.documentElement,l=e;for(t=l.offsetLeft,i=l.offsetTop,o=l;(l=oG(l.offsetParent)?l.offsetParent:null)&&l!==r.body&&"offsetLeft"in l;)t+=l.offsetLeft,i+=l.offsetTop,o=l;return o&&"fixed"===o.style.position&&(t+=(n?.pageXOffset??0)||s.scrollLeft,i+=(n?.pageYOffset??0)||s.scrollTop),{left:t,top:i}}function ot(e=window){return e.scrollY}function oi(e=window){return e.scrollX}function oo(e,t=window){return oG(e)?e.scrollTop:ot(t)}function or(e,t=window){return oG(e)?e.scrollLeft:oi(t)}function on(e){let t=e.ownerDocument,i=t.defaultView,o=["auto","scroll"],r=e.parentElement;for(;r&&r.style&&t.body!==r;){let{overflow:e,overflowX:t,overflowY:n}=r.style;if([e,t,n].includes("scroll")||(i&&({overflow:e,overflowX:t,overflowY:n}=i.getComputedStyle(r)),o.includes(e)||o.includes(t)||o.includes(n))||r.clientHeight<=r.scrollHeight+1&&(o.includes(n)||o.includes(e))||r.clientWidth<=r.scrollWidth+1&&(o.includes(t)||o.includes(e)))return r;r=r.parentElement}return i??t.documentElement}function os(e){return e.scrollHeight-e.clientHeight}function ol(e){return e.scrollWidth-e.clientWidth}let oa=["scroll","hidden","auto","clip"],oh=["visible","clip","hidden","scroll","auto","overlay"];function od(e,t){return oa.includes(e)&&("clip"!==e||"visible"!==t&&""!==t)}function ou(e,t){let[i="",o=i]=e.style.overflow.split(/\s+/).filter(Boolean),r=(e,i,o)=>{let r=e||i;return oh.includes(r)?r:t.getPropertyValue(o)};return{x:r(e.style.overflowX,i,"overflow-x"),y:r(e.style.overflowY,o,"overflow-y")}}let oc=["transform","translate","rotate","scale","perspective","filter","backdropFilter"],og=["paint","layout","strict","content"],op=["transform","translate","rotate","scale","perspective","filter","backdrop-filter","contain"];function om(e){let t=e.ownerDocument,i=t.defaultView,o={top:0,left:0,width:t.documentElement.clientWidth,height:t.documentElement.clientHeight};if(!i)return o;let r=e.parentNode;for(;r&&r!==t.documentElement;){if(oY(r)){r=r.host;continue}if(!oG(r)){r=r.parentNode;continue}let e=r,t=i.getComputedStyle(e);if(function(e){if(oc.some(t=>{let i=e[t];return void 0!==i&&""!==i&&"none"!==i}))return!0;let t=e.contain??"";if(og.some(e=>t.split(/\s+/).includes(e)))return!0;let i=e.willChange??"";return op.some(e=>i.split(/[\s,]+/).includes(e))}(t)){let i=e.getBoundingClientRect(),o=parseFloat(t.borderTopWidth)||0,r=parseFloat(t.borderLeftWidth)||0,n=parseFloat(t.borderBottomWidth)||0,s=parseFloat(t.borderRightWidth)||0;return{top:i.top+o,left:i.left+r,width:Math.max(i.width-r-s,0),height:Math.max(i.height-o-n,0)}}r=e.parentNode}return function(e,t,i){let{documentElement:o}=e;if(t.innerWidth<=o.clientWidth)return i;let r=e.createElement("div");r.style.cssText="position: fixed; top: 0; left: 0; right: 0; height: 0; visibility: hidden; pointer-events: none; margin: 0; padding: 0; border: 0;",o.appendChild(r);let{left:n,width:s}=r.getBoundingClientRect();return r.remove(),s>0?{...i,left:n,width:s}:i}(t,i,o)}function of(e,t){let i=e.ownerDocument,o=i.defaultView,r=e.parentElement;for(;r&&r.style&&i.body!==r;){if(void 0!==t){if(function(e,t,i){if(i){let o=ou(e,i.getComputedStyle(e));return oa.includes(o[t])}let[o="",r=o]=e.style.overflow.split(/\s+/).filter(Boolean),n="x"===t?e.style.overflowX||o:e.style.overflowY||r;return oa.includes(n)}(r,t,o))return r}else if(o){let{x:e,y:t}=ou(r,o.getComputedStyle(r));if(od(e,t)||od(t,e))return r}else if("visible"!==r.style.overflow&&""!==r.style.overflow)return r;r=r.parentElement}return o??i.documentElement}function ow(e,t,i=window){if(!e)return;if(e instanceof Window)return"width"===t?`${e.innerWidth}px`:"height"===t?`${e.innerHeight}px`:void 0;let o=e.style.getPropertyValue(t)||e.style[t];if(""!==o&&void 0!==o)return o;let r=i.getComputedStyle(e),n=r.getPropertyValue(t)||r[t];if(""!==n&&void 0!==n)return n}function ob(e,t){let i=!1;return t instanceof CSSStyleRule&&t.selectorText&&("msMatchesSelector"in e&&"function"==typeof e.msMatchesSelector?i=e.msMatchesSelector(t.selectorText):e.matches&&(i=e.matches(t.selectorText))),i}function oC(e){return e.offsetWidth}function oy(e){return e.offsetHeight}function oS(e){return e instanceof Window?e.innerHeight:e.clientHeight}function ov(e){return e instanceof Window?e.innerWidth:e.clientWidth}function oR(e,t,i){e.addEventListener(t,i,!1)}function ox(e,t,i){e.removeEventListener(t,i,!1)}function oE(e){return e.selectionStart?e.selectionStart:0}function oM(e){return e.selectionEnd?e.selectionEnd:0}function ok(e=window){let t=e.document,i="";return e.getSelection?i=e.getSelection()?.toString()??"":"selection"in t&&t.selection&&"Control"!==t.selection.type&&(i=t.selection.createRange().text),i}function oI(e=window){if(e.getSelection){let t=e.getSelection();t?.empty?t.empty():t?.removeAllRanges&&t.removeAllRanges()}}function oT(e,t,i){if((void 0===i&&(i=t),e.setSelectionRange)&&(e.focus(),null!==e.selectionStart))try{e.setSelectionRange(t,i)}catch(r){let o=e.parentElement;if(o){let r=o.style.display;o.style.display="block",e.setSelectionRange(t,i),o.style.display=r}}}function oA(e=document){return ie()?2*!Number.isInteger(e.defaultView?.devicePixelRatio||1):0}function oH(e=document){return void 0===t&&(t=function(e=document){let t=(t=!1)=>{let i=e.createElement("div");i.style.height="200px",i.style.width="100%";let o=e.createElement("div");o.classList.add("htScrollbarTest"),t&&o.classList.add("htScrollbarSafariTest"),o.style.boxSizing="content-box",o.style.height="150px",o.style.left="0px",o.style.overflow="hidden",o.style.position="absolute",o.style.top="0px",o.style.width="200px",o.style.visibility="hidden",o.appendChild(i),e.body.appendChild(o);let r=i.offsetWidth;o.style.overflow="scroll";let n=i.offsetWidth;return r===n&&(n=o.clientWidth),e.body.removeChild(o),r-n},i=t();return 0===i&&t3()&&!t9()?t(!0):i}(e)),t}function oO(e){return e instanceof Window?e.document.body.scrollHeight>e.innerHeight:e.offsetWidth!==e.clientWidth}function oD(e){return e instanceof Window?e.document.body.scrollWidth>e.innerWidth:e.offsetHeight!==e.clientHeight}function oP(e,t,i){e.style.transform=`translate3d(${t},${i},0)`}function o_(e){let t;return e.style.transform&&""!==(t=e.style.transform)?["transform",t]:-1}function oF(e){e.style.transform&&""!==e.style.transform&&(e.style.transform="")}function oN(e){return e&&(["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function oL(e){return oN(e)&&"hotInput"in e.dataset==!1}function oB(e){let t=oZ(e.ownerDocument);oG(t)&&!oL(t)&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&e.select()}function oV(e){return!e.parentNode}function oz(e,t){let i=new IntersectionObserver((e,i)=>{e.forEach(e=>{e.isIntersecting&&(t(),i.disconnect())})});return i.observe(e),i}function oW(e,t=!0,i=!0){let o=e.ownerDocument,r=o.createRange(),n=o.defaultView?.getSelection();if(iq(e,"contenteditable",!0),i){let t=L();iq(e,t[0],t[1])}t&&iG(e,"invisibleSelection"),r.selectNodeContents(e),n?.removeAllRanges(),n?.addRange(r)}function o$(e,t=!0){let i=e.ownerDocument.defaultView?.getSelection();e.hasAttribute("aria-hidden")&&e.removeAttribute("aria-hidden"),i?.removeAllRanges(),t&&ij(e,"invisibleSelection"),e.removeAttribute("contenteditable")}function oU(e,t,i=!0){oW(e,i),t(),o$(e,i)}function oG(e){if("object"!=typeof e||null===e)return!1;let t=e.ownerDocument?.defaultView?.Element;return!!(t&&e instanceof t)}function oj(e){if("object"!=typeof e||null===e)return!1;if("u">typeof DocumentFragment&&e instanceof DocumentFragment)return!0;let t=e.ownerDocument?.defaultView?.DocumentFragment;return!!(t&&e instanceof t)}function oq(e){return oG(e)&&("TD"===e.tagName||"TH"===e.tagName)}function oK(e){return"INPUT"===e.tagName}function oY(e){return"object"==typeof e&&null!==e&&"nodeType"in e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}function oX(e){let t=[],i=e.getRootNode();for(;oY(i);){let{host:e}=i;if(!oG(e))break;t.push(e),i=e.getRootNode()}return t}function oZ(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t}function oQ(e,t){return e.childNodes[t]||null}function oJ(e){e.hasAttribute("style")&&e.removeAttribute("style")}let o0="_renderVersion";function o1(e){e[o0]=(e[o0]??0)+1}class o2{#e=0;get epoch(){return this.#e}markAllChanged(){this.#e+=1}}function o3(e){return"function"==typeof e}function o6(e,t=200){let i=0,o={lastCallThrottled:!0},r=null;return function(...n){let s=Date.now(),l=!1;o.lastCallThrottled=!0,i||(i=s,l=!0);let a=t-(s-i);return l?(o.lastCallThrottled=!1,e.apply(this,n)):(r&&clearTimeout(r),r=setTimeout(()=>{o.lastCallThrottled=!1,e.apply(this,n),i=0,r=null},a)),o}}function o4(e,t=200,i=10){let o=o6(e,t),r=i;function n(...t){return r?(r-=1,e.apply(this,t)):o.apply(this,t)}return n.clearHits=function(){r=i},n}function o5(e,t=200){let i,o=null;function r(...n){return o&&clearTimeout(o),o=setTimeout(()=>{o=null,i=e.apply(this,n)},t),i}return r.cancel=function(){null!==o&&(clearTimeout(o),o=null)},r}function o8(...e){let[t,...i]=e;return function(...e){return ei(i,(e,t)=>t(e),t.apply(this,e))}}function o7(e,...t){return function(...i){return e.apply(this,t.concat(i))}}function o9(e){let t=e.length;return function i(o){return function(...r){let n=o.concat(r);return n.length>=t?e.apply(this,n):i(n)}}([])}function re(e){let t=e.length;return function i(o){return function(...r){let n=o.concat(r.reverse());return n.length>=t?e.apply(this,n):i(n)}}([])}function rt(e,t,i,o,r,n,s,l){if(eU(l))return e.call(t,i,o,r,n,s,l);if(eU(s))return e.call(t,i,o,r,n,s);if(eU(n))return e.call(t,i,o,r,n);if(eU(r))return e.call(t,i,o,r);if(eU(o))return e.call(t,i,o);else if(eU(i))return e.call(t,i);return e.call(t)}let ri={ALT:18,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,ARROW_UP:38,AUDIO_DOWN:t0()?182:174,AUDIO_MUTE:t0()?181:173,AUDIO_UP:t0()?183:175,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND_LEFT:91,COMMAND_RIGHT:93,COMMAND_FIREFOX:224,CONTROL:17,DELETE:46,END:35,ENTER:13,ESCAPE:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,F16:127,F17:128,F18:129,F19:130,HOME:36,INSERT:45,MEDIA_NEXT:176,MEDIA_PLAY_PAUSE:179,MEDIA_PREV:177,MEDIA_STOP:178,NULL:0,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PERIOD:190,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,A:65,C:67,D:68,F:70,L:76,O:79,P:80,S:83,V:86,X:88,Y:89,Z:90},ro=[ri.ALT,ri.ARROW_DOWN,ri.ARROW_LEFT,ri.ARROW_RIGHT,ri.ARROW_UP,ri.AUDIO_DOWN,ri.AUDIO_MUTE,ri.AUDIO_UP,ri.BACKSPACE,ri.CAPS_LOCK,ri.DELETE,ri.END,ri.ENTER,ri.ESCAPE,ri.F1,ri.F2,ri.F3,ri.F4,ri.F5,ri.F6,ri.F7,ri.F8,ri.F9,ri.F10,ri.F11,ri.F12,ri.F13,ri.F14,ri.F15,ri.F16,ri.F17,ri.F18,ri.F19,ri.HOME,ri.INSERT,ri.MEDIA_NEXT,ri.MEDIA_PLAY_PAUSE,ri.MEDIA_PREV,ri.MEDIA_STOP,ri.NULL,ri.NUM_LOCK,ri.PAGE_DOWN,ri.PAGE_UP,ri.PAUSE,ri.SCROLL_LOCK,ri.SHIFT,ri.TAB];function rr(e){return 32===e||e>=48&&e<=57||e>=96&&e<=111||e>=186&&e<=192||e>=219&&e<=222||e>=226||e>=65&&e<=90}function rn(e){return ro.includes(e)}function rs(e){let t=[];return it()?t.push(ri.COMMAND_LEFT,ri.COMMAND_RIGHT,ri.COMMAND_FIREFOX):t.push(ri.CONTROL),t.includes(e)}function rl(e){return[ri.CONTROL,ri.COMMAND_LEFT,ri.COMMAND_RIGHT,ri.COMMAND_FIREFOX].includes(e)}function ra(e,t){let i=t.split("|"),o=!1;return en(i,t=>{if(e===ri[t])return o=!0,!1}),o}function rh(e){e.isImmediatePropagationEnabled=!1,e.cancelBubble=!0}function rd(e){return!1===e.isImmediatePropagationEnabled}function ru(e){return 2===e.button}function rc(e){return 0===e.button}function rg(e){return 1===e.button}function rp(e){return"u">typeof TouchEvent&&e instanceof TouchEvent}function rm(e){return"touches"in e&&"changedTouches"in e}function rf(e){if(!rm(e)||0===e.changedTouches.length)return null;let{identifier:t,clientX:i,clientY:o}=e.changedTouches[0];return{identifier:t,clientX:i,clientY:o}}function rw(e,t){if(!rm(e))return null;for(let i=0;i<e.touches.length;i++){let o=e.touches[i];if(o.identifier===t)return{identifier:o.identifier,clientX:o.clientX,clientY:o.clientY}}return null}function rb(e,t){let i={x:e.offsetX,y:e.offsetY},o=iT(e);if(!oG(t)||o!==t&&o.contains(t))return i;for(;o!==t;)i.x+=o.offsetLeft,i.y+=o.offsetTop,o=o.offsetParent;return i}let rC=3;function ry(e,t){return Math.abs(t.clientX-e.x)>rC||Math.abs(t.clientY-e.y)>rC}let rS=["afterCellMetaReset","afterChange","afterContextMenuDefaultOptions","beforeContextMenuSetItems","afterDropdownMenuDefaultOptions","beforeDropdownMenuSetItems","afterContextMenuHide","beforeContextMenuShow","afterContextMenuShow","afterCopyLimit","beforeCreateCol","afterColumnSequenceCacheUpdate","afterColumnSequenceChange","afterCreateCol","beforeCreateRow","afterCreateRow","beforeAlter","afterDeselect","afterDestroy","afterDocumentKeyDown","afterDrawSelection","beforeRemoveCellClassNames","beforeCompositionStart","afterFontsLoad","afterGetCellMeta","afterGetColHeader","afterGetRowHeader","afterImport","afterInit","afterLoadData","afterUpdateData","afterDataProviderFetch","afterDataProviderFetchError","afterDataProviderFetchAbort","hasExternalDataSource","beforeRowsMutation","afterRowsMutation","afterRowsMutationError","afterMomentumScroll","afterOnCellCornerMouseDown","afterOnSelectionHandleMouseDown","afterOnSelectionEdgeMouseDown","beforeMoveCells","afterMoveCells","afterOnCellCornerDblClick","afterOnCellMouseDown","afterOnCellMouseUp","afterOnCellContextMenu","afterOnCellMouseOver","afterOnCellMouseOut","afterOnCellMouseOverOutside","afterRemoveCol","afterRemoveRow","beforeRenderer","afterRenderer","afterRowIdsRemoved","afterRowIdsReset","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","afterAsyncValueStart","beforeAsyncValueStart","beforeAsyncValueResolve","afterAsyncValueResolve","afterAsyncValueReject","afterAsyncValueCancel","afterAsyncValuesIdle","beforeCellAlignment","beforeReadOnlyToggle","beforeChange","beforeChangeRender","beforeHeightChange","beforeWidthChange","beforeDrawBorders","beforeGetCellMeta","beforeRemoveCellMeta","beforeImport","beforeInit","beforeInitWalkontable","beforeLoadData","beforeUpdateData","beforeDataProviderFetch","beforeKeyDown","beforeOnCellMouseDown","beforeOnCellMouseUp","beforeOnCellContextMenu","beforeOnCellMouseOver","beforeOnCellMouseOut","beforeOnCellMouseOverOutside","beforeRemoveCol","beforeRemoveRow","beforeViewRender","afterViewRender","beforeRender","afterRender","beforeSuspendExecution","afterSuspendExecution","beforeResumeExecution","afterResumeExecution","beforeRowWrap","beforeColumnWrap","beforeSetCellMeta","beforeSelectionFocusSet","beforeSetRangeStartOnly","beforeSetRangeStart","beforeSetRangeEnd","beforeSelectionHighlightSet","beforeTouchScroll","beforeValidate","beforeValueRender","construct","init","modifyColHeader","modifyColWidth","modifyFiltersMultiSelectValue","modifyFiltersMatchedRows","modifyFocusedElement","modifyRowHeader","modifyRowHeight","modifyRowHeightByOverlayName","modifyData","modifySourceData","modifyRowData","modifyGetCellCoords","modifyGetCoordsElement","modifyFocusOnTabNavigation","beforeHighlightingRowHeader","beforeHighlightingColumnHeader","beforeColumnSort","afterColumnSort","modifyAutofillRange","modifyCopyableRange","beforeCut","afterCut","beforeCopy","afterCopy","beforePasteParse","beforePaste","afterPaste","beforeColumnFreeze","afterColumnFreeze","beforeColumnMove","afterColumnMove","afterCustomBordersUpdate","beforeColumnUnfreeze","afterColumnUnfreeze","beforeRowCollapse","afterRowCollapse","beforeRowExpand","afterRowExpand","beforeRowMove","afterRowMove","beforeFreezeChange","afterFreezeChange","beforeColumnResize","afterColumnResize","beforeRowResize","afterRowResize","afterGetColumnHeaderRenderers","afterGetRowHeaderRenderers","beforeStretchingColumnWidth","beforeFilter","afterFilter","beforePageChange","afterPageChange","beforePageSizeChange","afterPageSizeChange","afterPageSizeVisibilityChange","afterPageCounterVisibilityChange","afterPageNavigationVisibilityChange","beforeSheetTabChange","afterSheetTabChange","beforeSheetTabAdd","afterSheetTabAdd","beforeSheetTabRemove","afterSheetTabRemove","beforeSheetTabRename","afterSheetTabRename","beforeSheetTabMove","afterSheetTabMove","afterSheetTabStateCapture","afterSheetTabStateRestore","afterFormulasValuesUpdate","afterNamedExpressionAdded","afterNamedExpressionRemoved","afterSheetAdded","afterSheetRenamed","afterSheetRemoved","modifyColumnHeaderHeight","modifySinglePassLayout","modifyColumnHeaderValue","beforeUndo","beforeUndoStackChange","afterUndo","afterUndoStackChange","beforeRedo","beforeRedoStackChange","afterRedo","afterRedoStackChange","modifyRowHeaderWidth","modifyTransformFocus","modifyTransformStart","modifyTransformEnd","afterModifyTransformFocus","afterModifyTransformStart","afterModifyTransformEnd","afterViewportRowCalculatorOverride","afterViewportColumnCalculatorOverride","afterPluginsInitialized","beforeHideRows","afterHideRows","beforeUnhideRows","afterUnhideRows","beforeRowSelectionChange","afterRowSelectionChange","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","beforeNotificationShow","afterNotificationShow","beforeNotificationHide","afterNotificationHide","afterBeginEditing","beforeMergeCells","afterMergeCells","beforeUnmergeCells","afterUnmergeCells","afterListen","afterUnlisten","afterRefreshDimensions","beforeRefreshDimensions","beforeColumnCollapse","afterColumnCollapse","beforeColumnExpand","afterColumnExpand","modifyAutoColumnSizeSeed"],rv=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"],["persistentStateSave","17.0.0"],["persistentStateLoad","17.0.0"],["persistentStateReset","17.0.0"]]),rR=new Map([]),rx=Symbol.for("handsontable.forwardedHookCallback");function rE(e){if("function"!=typeof e)return e;let t=e[rx];return"function"==typeof t?t:e}class rM{#t=new Map;constructor(){rS.forEach(e=>this.#i(e))}getList(e){return this.#t.get(e)??null}getHooks(e){let t=this.#t.get(e),i=[];if(t){let e=t.head;for(;e;)i.push(e),e=e.next}return i}add(e,t,i={}){let o=this.#t.get(e);o||(o=this.#i(e),rS.push(e));let r=!!i.fromSettings,n=rE(t);for(let r=o.head;null!==r;r=r.next)if(r.identity===n)return void this.#o(e,r,t,i);let s=Number.isInteger(i.orderIndex)?i.orderIndex??0:0,l=!!i.runOnce,a=!!i.initialHook;if(a){for(let e=o.head;null!==e;e=e.next)if(e.initialHook){e.callback=t,e.identity=n,e.fromSettings=r;return}}this.#r(o,{callback:t,orderIndex:s,runOnce:l,initialHook:a,fromSettings:r,identity:n,next:null})}#o(e,t,i,o){i!==t.callback&&i!==t.identity&&(t.callback=i);let r=!!o.initialHook&&!!o.fromSettings&&!t.initialHook;if(t.runOnce&&!o.runOnce&&(t.runOnce=!1,t.fromSettings=!!o.fromSettings,t.initialHook=!!o.initialHook),!o.fromSettings&&!o.runOnce){t.fromSettings=!1,t.initialHook=!1;return}r&&this.#n(e,e=>e===t||!e.initialHook)}has(e){let t=this.#t.get(e);return!!t&&null!==t.head}remove(e,t){let i=rE(t);return this.#s(e,e=>e.identity===i)}removeFromSettings(e){return this.#n(e,()=>!1)}replaceFromSettings(e,t){if(Array.isArray(t)){let i=new Set(t.map(e=>rE(e)));this.#n(e,e=>i.has(e.identity)),t.forEach(t=>this.add(e,t,{fromSettings:!0}));return}let i=null;this.#n(e,e=>null===i&&!!e.initialHook&&(i=e,!0));let o=i,r=this.getHooks(e).some(e=>e!==o&&e.identity===rE(t));if(o&&!r){o.callback=t,o.identity=rE(t);return}o&&this.#n(e,e=>e!==o),this.add(e,t,{initialHook:!0,fromSettings:!0})}#n(e,t){let i=this.#t.get(e);if(!i)return 0;let o=[],r=0,n=null,s=i.head;for(i.head=null;null!==s;){let e=s.next;if(s.fromSettings&&!t(s))o.push(s),r+=1;else{n?n.next=s:i.head=s;for(let e=0;e<o.length;e+=1)o[e].next=s;o.length=0,n=s}s=e}for(let e=0;e<o.length;e+=1)o[e].next=null;return n&&(n.next=null),i.tail=n,r}#s(e,t){let i=this.#t.get(e);if(!i)return!1;let o=null,r=i.head;for(;null!==r;){if(t(r))return o?o.next=r.next:i.head=r.next,r===i.tail&&(i.tail=o),!0;o=r,r=r.next}return!1}destroy(){this.#t.clear()}#r(e,t){if(null===e.head){e.head=t,e.tail=t;return}if(t.orderIndex>=e.tail.orderIndex){e.tail.next=t,e.tail=t;return}let i=null,o=e.head;for(;null!==o&&o.orderIndex<=t.orderIndex;)i=o,o=o.next;null===i?(t.next=e.head,e.head=t):(t.next=o,i.next=t)}#i(e){let t={head:null,tail:null};return this.#t.set(e,t),t}}let rk=eb`The plugin hook "[hookName]" was removed in Handsontable [removedInVersion].\x20
52
+ ${e}. If you need any help, contact us at sales@handsontable.com.`}},tr={trial_soft_stop:()=>[`${te} ${tt} `,{text:"Contact Sales",href:"mailto:sales@handsontable.com"},"."],release_expired:({licensedUntil:e,hotVersion:t})=>[`The license key for Handsontable expired on ${e}, and is not valid for the installed version ${t}. `,{text:"Renew",href:"https://handsontable.com/pricing",target:"_blank"},` your license key or downgrade to a version released on or before ${e}. If you need any help, contact us at `,{text:"sales@handsontable.com",href:"mailto:sales@handsontable.com"},"."]},tn=Object.freeze(["trial_hard_stop","invalid","missing"]);function ts(e){return -1!==tn.indexOf(e)}function tl(e){return"string"==typeof e?e.trim():e}function ta({className:e,key:t,element:i,releaseDate:o}){let r;if(ey(t=tl(t)))return function({className:e,key:t,element:i,releaseDate:o}){if(e1())return null;let{lifecycle:r,channels:n}=tc(t,o),{state:s}=r,l={daysRemaining:r.daysRemaining,licensedUntil:r.licensedUntil??void 0,hotVersion:"19.0.0-rc4"};if(n.console&&!e3.has(t??"")){let e="invalid"===s?{severity:"warn",message:()=>e6.invalid({})}:to[s];e&&(console[e.severity](e.message(l)),e3.add(t??""))}if(!n.ui||!i||ts(s))return null;let a=tr[s];if(!a)return null;let h=i.ownerDocument,d=String(e),u=tg(h,d);return u.appendChild(tp(h,d,a(l))),i.appendChild(u),u}({className:e,key:t,element:i,releaseDate:o});let n=!ej(t),s="19.0.0-rc4",l="invalid",a="invalid",h=tm(t=eJ(t||""));if(n||h)if(h){let[e,i,n]=(o??"20/11/2026"??"").split("/").map(Number),s=Math.floor(Date.UTC(n,i-1,e)/864e5),h=e0(t);r=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"long",day:"2-digit",timeZone:"UTC"}).format((h+1)*864e5),s>h?(l="expired",a="expired"):(l="valid",a="valid")}else l="invalid",a="invalid";else l="missing",a="missing";if(e1()&&(l="valid",a="valid"),e2||"valid"===l||(console.warn(e6[l]({keyValidityDate:r,hotVersion:s})),e2=!0),"valid"!==a&&!ts(a)&&i){let t=e5[a]({keyValidityDate:r,hotVersion:s});if(t.length>0){let o=i.ownerDocument,r=o.createElement("div"),n=o.createElement("div");return r.className=`handsontable ${e}`,n.className=`${e}_inner`,e4(n,t,o),r.appendChild(n),i.appendChild(r),r}}return null}function th(e){return new Date(e).toISOString().slice(0,10)}let td=Object.freeze({console:!0,ui:!0});function tu(e,t=null){return{state:e,isTrial:!1,daysRemaining:null,licensedUntil:t}}function tc(e,t){var i;let o,r=tl(e);if(e1())return{lifecycle:tu("legacy_valid"),channels:td,badge:!1,tiers:null};if(!ey(r))return{lifecycle:function(e,t){if(ej(e))return tu("missing");let i=eJ(e||"");if(!tm(i))return tu("invalid");let[o,r,n]=(t??"20/11/2026"??"").split("/").map(Number),s=Math.floor(Date.UTC(n,r-1,o)/864e5),l=e0(i);return s>l?tu("legacy_expired",th((l+1)*864e5)):tu("legacy_valid")}(r,t),channels:td,badge:!1,tiers:null};let n=function(e){if("string"!=typeof e)return null;if(e!==eL){let t=function(e){let t,i,o=e.lastIndexOf("[");if(-1===o)return null;let r=e.indexOf("]",o);if(-1===r)return null;let n=eH(e.slice(o+1,r));if(n.length<=128)return null;let s=n.slice(0,-128),l=n.slice(-128);if(!ek.test(s)||!eI.test(l)||ex(eE(s))!==l)return null;let a=null===(i=function(e){let t=`${e}`.replace(/-/g,"+").replace(/_/g,"/").replace(/=+$/,"");if(!/^[A-Za-z0-9+/]*$/.test(t)||t.length%4==1)return null;let i=[];for(let e=0;e<t.length;e+=4){let o=[0,1,2,3].map(i=>{let o=t.charAt(e+i);return""===o?-1:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(o)});i.push(o[0]<<2|o[1]>>4),-1!==o[2]&&i.push((15&o[1])<<4|o[2]>>2),-1!==o[3]&&i.push((3&o[2])<<6|o[3])}return i}(s))?null:function(e){let t="",i=0;for(;i<e.length;){let o,r=e[i];r<128?(o=r,i+=1):r<224?(o=(31&r)<<6|63&e[i+1],i+=2):r<240?(o=(15&r)<<12|(63&e[i+1])<<6|63&e[i+2],i+=3):(o=(7&r)<<18|(63&e[i+1])<<12|(63&e[i+2])<<6|63&e[i+3],i+=4),o>=65536?(o-=65536,t+=String.fromCharCode(55296+(o>>10),56320+(1023&o))):t+=String.fromCharCode(o)}return t}(i);if(null===a)return null;try{t=JSON.parse(a)}catch(e){return null}if(!eP(t)||!eP(t.products))return null;let h=eD(p=t,"v")?!e_(p.v)||p.v<2?null:p.v:1;if(null===h||h>=2&&!function(e,t,i){if(""!==eO(i))return!1;let o=eO(t);return""!==o&&eD(e,"prose")&&"string"==typeof e.prose&&ex(eE(o)).slice(0,64)===e.prose}(t,e.slice(0,o),e.slice(r+1)))return null;let d={},u=t.products,c=!1;if(Object.keys(u).forEach(e=>{let t=function(e){if(!eP(e)||!eF(e.capabilities))return null;let t=eS.filter(t=>void 0!==e[t]);if(1!==t.length||null===eM(e[t[0]])||!e_(e.notice)||!e_(e.grace)||void 0!==e.flags&&!eF(e.flags))return null;let i={};return Object.keys(e).forEach(t=>eN(i,t,e[t])),eN(i,"capabilities",e.capabilities.slice()),eN(i,"notice",e.notice),eN(i,"grace",e.grace),eN(i,"flags",void 0===e.flags?[]:e.flags.slice()),eN(i,t[0],e[t[0]]),i}(u[e]);if(null===t){c=!0;return}eN(d,e,t)}),c)return null;var g,p,m={version:h,products:d};let f=[m];for(;f.length>0;){let e=f.pop();null===(g=e)||"object"!=typeof g||Object.isFrozen(g)||(Object.freeze(e),Object.keys(e).forEach(t=>f.push(e[t])))}return m}(e);eL=e,eB=t}return eB}(r),s=null===n?null:function(e,t){if(!eD(e.products,t))return null;let i=e.products[t];return eP(i)?i:null}(n,"handsontable");if(null===n||null===s)return{lifecycle:tu("invalid"),channels:td,badge:!1,tiers:null};let l=t||"20/11/2026";return{lifecycle:function(e,t){let i=-1!==e.flags.indexOf("trial");if(void 0!==e.release_until){let o=e.release_until;return{state:o>=t.buildDate||null===eM(t.buildDate)?"release_valid":"release_expired",isTrial:i,daysRemaining:null,licensedUntil:o}}let o=`${e.usage_until}`,r=eM(o)??eV(t.now),n=function(e,t,i){let o=e+864e5;if(i>=o)return i<o+864e5*t.grace?"soft_stop":"hard_stop";let r=ez(e,i);return t.notice>0&&r<=t.notice?"notice":"valid"}(r,e,t.now);return{state:`${i?"trial":"usage"}_${n}`,isTrial:i,daysRemaining:ez(r,t.now),licensedUntil:o}}(s,{now:Date.now(),buildDate:function(e){let[t,i,o]=`${e}`.split("/");return t&&i&&o?`${o}-${i.padStart(2,"0")}-${t.padStart(2,"0")}`:""}(l)}),channels:{console:-1===s.flags.indexOf("no-console-warns"),ui:-1===s.flags.indexOf("no-ui-warns")},badge:-1!==s.flags.indexOf("badge"),tiers:(i=s.capabilities,o=[],i.forEach(e=>{e.startsWith(eW)&&e.length>eW.length&&o.push(e.slice(eW.length))}),o.length>0?o:null)}}function tg(e,t){let i=e.createElement("div");return i.className=`handsontable ${t}`,i}function tp(e,t,i,o){let r=e.createElement("div");return r.className=o?`${t}_inner ${o}`:`${t}_inner`,e4(r,i,e),r}function tm(e){let t=[][eK],i=t;if(e[eK]!==eQ("Z"))return!1;for(let t="",o="B<H4P+".split(""),r=eQ(o.shift()??"A");r;r=eQ(o.shift()??"A"))--r<""[eK]?i|=(eX(`${eX(eY(t)+(eY(eZ(e,Math.abs(r),2))+String([])).padStart(2,"0"))}`)%97||2)>>1:t=eZ(e,r,r?1===o[eK]?9:8:6);return i===t}function tf(e){let t=Error(e);throw t.cause={handsontable:!0},t}function tw(e){let t;if(Array.isArray(e))t=e.length?Array(e.length).fill(null):[];else{let i=Object.create(null);tT(e,(e,t)=>{"__children"!==t&&(e&&"object"==typeof e&&!Array.isArray(e)?i[t]=tw(e):Array.isArray(e)?e.length&&"object"==typeof e[0]&&!Array.isArray(e[0])?i[t]=[tw(e[0])]:i[t]=[]:i[t]=null)}),t=i}return t}function tb(e,t){return t.prototype.constructor=t,e.prototype=new t,e.prototype.constructor=e,e}function tC(e,t,i){let o=Array.isArray(i);return tT(t,(t,r)=>{"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(!1===o||i.includes(r))&&(e[r]=t)}),e}function ty(e,t){tT(t,(i,o)=>{if("__proto__"===o||"constructor"===o||"prototype"===o)return;let r=t[o];r&&"object"==typeof r?(e[o]||(Array.isArray(r)?e[o]=[]:"[object Date]"===Object.prototype.toString.call(r)?e[o]=r:e[o]={}),ty(e[o],r)):e[o]=r})}function tS(e){if(Array.isArray(e))return e.map(e=>tS(e));if(e instanceof Date)return new Date(e);if("object"==typeof e&&null!==e){let t={};for(let[i,o]of Object.entries(e))"__proto__"!==i&&"constructor"!==i&&"prototype"!==i&&(t[i]=tS(o));return t}return e}function tv(e){let t={};return tT(e,(e,i)=>{t[i]=e}),t}function tR(e,...t){return e.MIXINS||(e.MIXINS=[]),en(t,t=>{e.MIXINS.push(t.MIXIN_NAME),tT(t,(t,i)=>{if(void 0!==e.prototype[i]&&tf(`Mixin conflict. Property '${i}' already exist and cannot be overwritten.`),"function"==typeof t)e.prototype[i]=t;else{let o,r;Object.defineProperty(e.prototype,i,{get:(o=`_${i}`,function(){let e;return void 0===this[o]&&(this[o]=((Array.isArray(e=t)||tM(e))&&(e=tS(e)),e)),this[o]}),set:(r=`_${i}`,function(e){this[r]=e}),configurable:!0})}})}),e}function tx(e,t){let i=e=>{if(void 0===e)return"undefined";if(Array.isArray(e))return`[${e.map(i).join(",")}]`;if(e instanceof Date)return JSON.stringify(e);if(null!==e&&"object"==typeof e){let t=Object.entries(e).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>`${JSON.stringify(e)}:${i(t)}`);return`{${t.join(",")}}`}return JSON.stringify(e)};return i(e)===i(t)}function tE(e){return tM(e)}function tM(e){return"[object Object]"===Object.prototype.toString.call(e)}function tk(e){Array.isArray(e)?e.forEach((t,i)=>{"function"==typeof t?e[i]=null:tk(t)}):tM(e)&&Object.keys(e).forEach(t=>{"function"==typeof e[t]?delete e[t]:tk(e[t])})}function tI(e,t,i,o){o.value=i,o.writable=!1!==o.writable,o.enumerable=!1!==o.enumerable,o.configurable=!1!==o.configurable,Object.defineProperty(e,t,o)}function tT(e,t){for(let i in e)if((!e.hasOwnProperty||e.hasOwnProperty&&Object.prototype.hasOwnProperty.call(e,i))&&!1===t(e[i],i,e))break;return e}function tA(e,t){let i=t.split("."),o=e;for(let e=0;e<i.length;e+=1)if(void 0===(o=o[i[e]])||null===o&&e<i.length-1)return;return o}function tH(e,t,i){if("__proto__"===t||"constructor"===t||"prototype"===t)return;let o=Object.getOwnPropertyDescriptor(e,t);if(o&&(o.get||o.set)){"function"==typeof o.set&&o.set.call(e,i);return}if(o&&!1===o.configurable){!0===o.writable&&(e[t]=i);return}Object.defineProperty(e,t,{value:i,writable:!0,enumerable:!0,configurable:!0})}function tO(e,t,i){if("string"!=typeof t||null===e||"object"!=typeof e)return;let o=t.split("."),r=e;for(let e=0;e<o.length;e+=1){let t=o[e];if("__proto__"===t||"constructor"===t||"prototype"===t)return;if(e!==o.length-1){t_(r,t)||(r[t]={});let e=r[t];if(!tM(e))return;r=e}else tH(r,t,i)}}function tD(e){if(!tM(e))return 0;let t=function(e){let i=0;return tM(e)?tT(e,(e,o)=>{"__children"!==o&&(i+=t(e))}):i+=1,i};return t(e)}function tP(e,t="value"){let i=`_${t}`,o={_touched:!1,[i]:e,isTouched(){return!!this._touched},value:void 0};return Object.defineProperty(o,t,{get(){return this[i]},set(e){this._touched=!0,this[i]=e},enumerable:!0,configurable:!0}),o}function t_(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function tF(e,t){if("object"!=typeof e||null===e)return t;if("object"!=typeof t||null===t)return e;let i={};return Object.keys(t).forEach(o=>{let r=t[o],n=e[o];tM(r)?i[o]=tF(tM(n)?n:{},r):i[o]=t_(e,o)&&void 0!==n?n:r}),Object.keys(e).forEach(t=>{t_(i,t)||(i[t]=e[t])}),i}function tN(e={},t={}){let i={...e};return Object.keys(t).forEach(e=>{if("__proto__"===e||"constructor"===e||"prototype"===e)return;let o=t[e],r=i[e];tM(o)&&tM(r)?i[e]=tN(r,o):i[e]=o}),i}function tL(e){return tM(e)&&eU(e.key)&&eU(e.value)}function tB(e){return window.requestAnimationFrame(e)}function tV(e){window.cancelAnimationFrame(e)}function tz(e,t=100){return"function"==typeof window.requestIdleCallback?window.requestIdleCallback(()=>e(),{timeout:t}):window.requestAnimationFrame(e)}function tW(e){"function"==typeof window.cancelIdleCallback?window.cancelIdleCallback(e):window.cancelAnimationFrame(e)}function t$(){return"ontouchstart"in window}function tU(){return"u">typeof window}function tG(t,i={}){return e||(e="object"==typeof Intl?new Intl.Collator(t,i).compare:"function"==typeof String.prototype.localeCompare?(e,t)=>`${e}`.localeCompare(t):(e,t)=>e===t?0:e>t?-1:1)}let tj=e=>{let t={value:!1,test(i,o){t.value=e(i,o)}};return t},tq=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i,tK={chrome:tj((e,t)=>/Chrome/.test(e)&&/Google/.test(t??"")),chromeWebKit:tj(e=>/CriOS/.test(e)),edge:tj(e=>/Edge/.test(e)),edgeWebKit:tj(e=>/EdgiOS/.test(e)),firefox:tj(e=>/Firefox/.test(e)),firefoxWebKit:tj(e=>/FxiOS/.test(e)),mobile:tj(e=>tq.test(e)),safari:tj((e,t)=>/Safari/.test(e)&&/Apple Computer/.test(t??"")),safariBefore261:tj((e,t)=>{if(!/Safari/.test(e)||!/Apple Computer/.test(t??""))return!1;let i=/Version\/(\d+(?:\.\d+)?)/i.exec(e);return(i?Number.parseFloat(i[1]):0)<26.1})},tY={mac:tj(e=>/^Mac/.test(e)),win:tj(e=>/^Win/.test(e)),linux:tj(e=>/^Linux/.test(e)),ios:tj(e=>/iPhone|iPad|iPod/i.test(e))};function tX({userAgent:e=navigator.userAgent,vendor:t=navigator.vendor}={}){tT(tK,({test:i})=>i(e,t))}function tZ({platform:e=navigator.platform}={}){tT(tY,({test:t})=>t(e))}function tQ(){return tK.chrome.value}function tJ(){return tK.chromeWebKit.value}function t0(){return tK.firefox.value}function t1(){return tK.firefoxWebKit.value}function t2(){return tK.safari.value}function t3(){return tK.safariBefore261.value}function t6(){return tK.edge.value}function t4(){return tK.edgeWebKit.value}function t5(e){return"string"==typeof e?.userAgent?tq.test(e.userAgent):tK.mobile.value}function t8(){return tY.ios.value}function t7(e){let t=(e??navigator).maxTouchPoints??0,i="string"==typeof e?.platform?/^Mac/.test(e.platform):tY.mac.value;return t>2&&i}function t9(e){return t5(e)||t7(e)}function ie(){return tY.win.value}function it(){return tY.mac.value}function ii(){return tY.linux.value}function io(e,t={}){return`${e}`.replace(/(?:\\)?\[([^[\]]+)]/g,(e,i)=>"\\"===e.charAt(0)?e.substr(1,e.length-1):void 0===t[i]?"":String(t[i]))}function ir(...e){eU(console)&&console.warn(...e)}tU()&&(tX(),tZ());let is=new WeakMap;function il(e,t,...i){let o=is.get(e);void 0===o&&(o=new Set,is.set(e,o)),o.has(t)||(o.add(t),ir(...i))}let ia=new Set;function ih(e,t){ia.has(e)||eU(console)&&(ia.add(e),console.warn(t))}function id(e,t){ih(e,`Deprecated: ${t}`)}function iu(...e){eU(console)&&console.error(...e)}let ic="bottom",ig="inline_start",ip="inline_end",im="top_inline_start_corner",iw="bottom_inline_start_corner",ib="top_inline_end_corner",iC="bottom_inline_end_corner",iy=["top",ic,ig,ip,im,iw,ib,iC],iS=[ip,ib,iC],iv="htScrollbarClearanceFillers",iR="htScrollbarClearanceFiller",ix="htScrollbarProxy",iE="htOverlayRail",iM=new Map([["top","ht_clone_top"],[ic,`ht_clone_${ic}`],[ig,`ht_clone_${ig} ht_clone_left`],[im,`ht_clone_${im} ht_clone_top_left_corner`],[iw,`ht_clone_${iw} ht_clone_bottom_left_corner`],[ip,`ht_clone_${ip}`],[ib,`ht_clone_${ib}`],[iC,`ht_clone_${iC}`]]);function ik(e,t=0){let i=-1,o=null,r=e;for(;null!==r;){if(i===t){o=oG(r)?r:null;break}oY(r)?r=r.host:(i+=1,r=r.parentNode)}return o}function iI(e,t){let i=e.closest(".handsontable");if(!i)return!1;let o=i.parentNode;return oG(o)&&o.classList.contains(iE)&&(o=o.parentNode),i===t||o===t}function iT(e){return e.target}function iA(e){let t=iT(e);if(null===t||"function"!=typeof e.composedPath)return t;let[i]=e.composedPath();return oG(i)&&i!==t&&oX(i).includes(t)?i:t}function iH(e){let{frameElement:t}=e;return e.parent&&Object.getPrototypeOf(e.parent)&&t instanceof HTMLIFrameElement?t:null}function iO(e){return iH(e)?e.parent:null}function iD(e){return!!Object.getPrototypeOf(e.parent)}function iP(e,t=[],i){let{ELEMENT_NODE:o,DOCUMENT_FRAGMENT_NODE:r}=Node,n=e;for(;null!=n&&n!==i;){let{nodeType:e,nodeName:i}=n;if(e===o&&oG(n)&&(t.includes(i)||t.includes(n)))return n;n=oY(n)?n.host:n.parentNode}return null}function i_(e,t,i){let o=[],r=oG(e)?e:null;for(;r&&(r=iP(r,t,i))&&(!i||i.contains(r));)if(o.push(r),oY(r)){let{host:e}=r;r=oG(e)?e:null}else r=r.parentElement;let n=o.length;return n?o[n-1]:null}function iF(e,t){let i={element:void 0,classNames:[]},o=e;for(;null!==o&&o!==e.ownerDocument.documentElement&&!i.element;){if("string"==typeof t&&o.classList.contains(t))i.element=o,i.classNames.push(t);else if(t instanceof RegExp){let e=Array.from(o.classList).filter(e=>t.test(e));e.length&&(i.element=o,i.classNames.push(...e))}o=o.parentElement}return i}function iN(e,t){let i=e.parentNode,o=[];for("string"==typeof t?o=e instanceof Document?Array.from(e.querySelectorAll(t)):Array.from(e.ownerDocument.querySelectorAll(t)):o.push(t);null!==i;){if(o.indexOf(i)>-1)return!0;i=i.parentNode}return!1}function iL(e){let t=0,i=e;if(i.previousSibling)for(;i=i.previousSibling;)t+=1;return t}function iB(e,t,i){let o=i.parentElement?.querySelector(`.ht_clone_${e}`);return!!o&&o.contains(t)}function iV(e){if(!e||!e.classList||!e.parentNode||!e.parentNode.parentNode||e.classList.contains("hiddenHeader")||"none"===e.style.display)return!1;let t=e.parentNode,i=Array.from(t?.parentNode?.childNodes??[]);return(t?i.indexOf(t):-1)+(Number.parseInt(e.getAttribute("rowspan")??"",10)||1)>=i.length}function iz(e){return e&&e.length?e.filter(e=>!!e):[]}function iW(e){return Array.isArray(e)?iz(e):"string"==typeof e?iz(e.split(" ")):[]}function i$(e,t){if(!e||!e.length)return t?{regexFree:[],regexes:[]}:[];let i=[],o=[];return o.push(...e.filter(e=>{let o=e instanceof RegExp;return o&&t&&i.push(e),!o})),t?{regexFree:o,regexes:i}:o}function iU(e,t){return void 0!==e.classList&&"string"==typeof t&&""!==t&&e.classList.contains(t)}function iG(e,t){"string"==typeof t&&(t=t.split(" ")),(t=iz(t)).length>0&&e.classList.add(...t)}function ij(e,t){"string"==typeof t?t=t.split(" "):t instanceof RegExp&&(t=[t]);let{regexFree:i,regexes:o}=i$(t,!0);(i=iz(i)).length>0&&e.classList.remove(...i),o.forEach(t=>{e.classList.forEach(i=>{t.test(i)&&e.classList.remove(i)})})}function iq(e,t=[],i){Array.isArray(t)||(t=[[t,i??""]]),t.forEach(t=>{Array.isArray(t)&&""!==t[0]&&e.setAttribute(t[0],String(t[1]))})}function iK(e,t=[]){"string"==typeof t?t=t.split(" "):t instanceof RegExp&&(t=[t]);let{regexFree:i,regexes:o}=i$(t,!0);if(i.forEach(t=>{""!==t&&e.removeAttribute(t)}),o.length>0){let t=e.getAttributeNames();for(let i=0;i<t.length;i++){let r=t[i];for(let t=0;t<o.length;t++)if(o[t].test(r)){e.removeAttribute(r);break}}}}function iY(e){if(3===e.nodeType)e.parentNode?.removeChild(e);else if(["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(e.nodeName)>-1){let t=e.childNodes;for(let e=t.length-1;e>=0;e--)iY(t[e])}}function iX(e){let t;for(;t=e.lastChild;)e.removeChild(t)}let iZ=/(?:<\/?[a-z][^<>]*>)|(?:<[!?])|(?:&[a-z][a-z\d]+;)|(?:&#x?[\da-f]+;)/i,iQ="sanitizer";function iJ(e){return`HTML content is being written to the DOM ("${e}") without a sanitizer. Configure the "sanitizer" option to prevent XSS vulnerabilities.`}let i0={};function i1(e,t,i=!0,o="innerHTML",r=i0){if(iZ.test(t)){let n;"function"==typeof i?n=i(t,o)??"":(!1!==i&&il(r,iQ,iJ(o)),n=t);let s=i6(e);if(""===n)return void iX(s);s.innerHTML=n}else i2(e,t)}function i2(e,t){let i=i6(e),o=i.firstChild;o&&3===o.nodeType&&null===o.nextSibling?o.textContent=t:(iX(i),i.appendChild(i.ownerDocument.createTextNode(t)))}let i3="htCellClip";function i6(e){let t=e.firstChild;return t&&t.nodeType===Node.ELEMENT_NODE&&null===t.nextSibling&&oG(t)&&iU(t,i3)?t:e}function i4(e){return e.previousElementSibling?.nodeName==="TH"}function i5(e,t,i){return(i?t.left-e.right:e.left-t.right)<.5}function i8(e,t){return e.top-t.bottom<.5}function i7(e){if("function"==typeof e.checkVisibility)return e.checkVisibility();let t=e.ownerDocument.documentElement,i=e.ownerDocument.defaultView,o=e;for(;o!==t;){if(null===o)return!1;if(oY(o)){let e=o.host;if(e.impl)return i7(e.impl);return i7(e)}if(o.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;else if(o.nodeType===Node.ELEMENT_NODE&&oG(o)&&i?.getComputedStyle(o).display==="none")return!1;o=o.parentNode}return!0}function i9(e){let t=e.ownerDocument.defaultView,i=e;for(;i.parentElement;){if("0px"===i.style.height||"0"===i.style.height){let e=t?.getComputedStyle(i).getPropertyValue("overflow");return"hidden"===e||"clip"===e}i=i.parentElement}return!1}function oe(e){let t,i,o,r=e.ownerDocument,n=r.defaultView,s=r.documentElement,l=e;for(t=l.offsetLeft,i=l.offsetTop,o=l;(l=oG(l.offsetParent)?l.offsetParent:null)&&l!==r.body&&"offsetLeft"in l;)t+=l.offsetLeft,i+=l.offsetTop,o=l;return o&&"fixed"===o.style.position&&(t+=(n?.pageXOffset??0)||s.scrollLeft,i+=(n?.pageYOffset??0)||s.scrollTop),{left:t,top:i}}function ot(e=window){return e.scrollY}function oi(e=window){return e.scrollX}function oo(e,t=window){return oG(e)?e.scrollTop:ot(t)}function or(e,t=window){return oG(e)?e.scrollLeft:oi(t)}function on(e){let t=e.ownerDocument,i=t.defaultView,o=["auto","scroll"],r=e.parentElement;for(;r&&r.style&&t.body!==r;){let{overflow:e,overflowX:t,overflowY:n}=r.style;if([e,t,n].includes("scroll")||(i&&({overflow:e,overflowX:t,overflowY:n}=i.getComputedStyle(r)),o.includes(e)||o.includes(t)||o.includes(n))||r.clientHeight<=r.scrollHeight+1&&(o.includes(n)||o.includes(e))||r.clientWidth<=r.scrollWidth+1&&(o.includes(t)||o.includes(e)))return r;r=r.parentElement}return i??t.documentElement}function os(e){return e.scrollHeight-e.clientHeight}function ol(e){return e.scrollWidth-e.clientWidth}let oa=["scroll","hidden","auto","clip"],oh=["visible","clip","hidden","scroll","auto","overlay"];function od(e,t){return oa.includes(e)&&("clip"!==e||"visible"!==t&&""!==t)}function ou(e,t){let[i="",o=i]=e.style.overflow.split(/\s+/).filter(Boolean),r=(e,i,o)=>{let r=e||i;return oh.includes(r)?r:t.getPropertyValue(o)};return{x:r(e.style.overflowX,i,"overflow-x"),y:r(e.style.overflowY,o,"overflow-y")}}let oc=["transform","translate","rotate","scale","perspective","filter","backdropFilter"],og=["paint","layout","strict","content"],op=["transform","translate","rotate","scale","perspective","filter","backdrop-filter","contain"];function om(e){let t=e.ownerDocument,i=t.defaultView,o={top:0,left:0,width:t.documentElement.clientWidth,height:t.documentElement.clientHeight};if(!i)return o;let r=e.parentNode;for(;r&&r!==t.documentElement;){if(oY(r)){r=r.host;continue}if(!oG(r)){r=r.parentNode;continue}let e=r,t=i.getComputedStyle(e);if(function(e){if(oc.some(t=>{let i=e[t];return void 0!==i&&""!==i&&"none"!==i}))return!0;let t=e.contain??"";if(og.some(e=>t.split(/\s+/).includes(e)))return!0;let i=e.willChange??"";return op.some(e=>i.split(/[\s,]+/).includes(e))}(t)){let i=e.getBoundingClientRect(),o=parseFloat(t.borderTopWidth)||0,r=parseFloat(t.borderLeftWidth)||0,n=parseFloat(t.borderBottomWidth)||0,s=parseFloat(t.borderRightWidth)||0;return{top:i.top+o,left:i.left+r,width:Math.max(i.width-r-s,0),height:Math.max(i.height-o-n,0)}}r=e.parentNode}return function(e,t,i){let{documentElement:o}=e;if(t.innerWidth<=o.clientWidth)return i;let r=e.createElement("div");r.style.cssText="position: fixed; top: 0; left: 0; right: 0; height: 0; visibility: hidden; pointer-events: none; margin: 0; padding: 0; border: 0;",o.appendChild(r);let{left:n,width:s}=r.getBoundingClientRect();return r.remove(),s>0?{...i,left:n,width:s}:i}(t,i,o)}function of(e,t){let i=e.ownerDocument,o=i.defaultView,r=e.parentElement;for(;r&&r.style&&i.body!==r;){if(void 0!==t){if(function(e,t,i){if(i){let o=ou(e,i.getComputedStyle(e));return oa.includes(o[t])}let[o="",r=o]=e.style.overflow.split(/\s+/).filter(Boolean),n="x"===t?e.style.overflowX||o:e.style.overflowY||r;return oa.includes(n)}(r,t,o))return r}else if(o){let{x:e,y:t}=ou(r,o.getComputedStyle(r));if(od(e,t)||od(t,e))return r}else if("visible"!==r.style.overflow&&""!==r.style.overflow)return r;r=r.parentElement}return o??i.documentElement}function ow(e,t,i=window){if(!e)return;if(e instanceof Window)return"width"===t?`${e.innerWidth}px`:"height"===t?`${e.innerHeight}px`:void 0;let o=e.style.getPropertyValue(t)||e.style[t];if(""!==o&&void 0!==o)return o;let r=i.getComputedStyle(e),n=r.getPropertyValue(t)||r[t];if(""!==n&&void 0!==n)return n}function ob(e,t){let i=!1;return t instanceof CSSStyleRule&&t.selectorText&&("msMatchesSelector"in e&&"function"==typeof e.msMatchesSelector?i=e.msMatchesSelector(t.selectorText):e.matches&&(i=e.matches(t.selectorText))),i}function oC(e){return e.offsetWidth}function oy(e){return e.offsetHeight}function oS(e){return e instanceof Window?e.innerHeight:e.clientHeight}function ov(e){return e instanceof Window?e.innerWidth:e.clientWidth}function oR(e,t,i){e.addEventListener(t,i,!1)}function ox(e,t,i){e.removeEventListener(t,i,!1)}function oE(e){return e.selectionStart?e.selectionStart:0}function oM(e){return e.selectionEnd?e.selectionEnd:0}function ok(e=window){let t=e.document,i="";return e.getSelection?i=e.getSelection()?.toString()??"":"selection"in t&&t.selection&&"Control"!==t.selection.type&&(i=t.selection.createRange().text),i}function oI(e=window){if(e.getSelection){let t=e.getSelection();t?.empty?t.empty():t?.removeAllRanges&&t.removeAllRanges()}}function oT(e,t,i){if((void 0===i&&(i=t),e.setSelectionRange)&&(e.focus(),null!==e.selectionStart))try{e.setSelectionRange(t,i)}catch(r){let o=e.parentElement;if(o){let r=o.style.display;o.style.display="block",e.setSelectionRange(t,i),o.style.display=r}}}function oA(e=document){return ie()?2*!Number.isInteger(e.defaultView?.devicePixelRatio||1):0}function oH(e=document){return void 0===t&&(t=function(e=document){let t=(t=!1)=>{let i=e.createElement("div");i.style.height="200px",i.style.width="100%";let o=e.createElement("div");o.classList.add("htScrollbarTest"),t&&o.classList.add("htScrollbarSafariTest"),o.style.boxSizing="content-box",o.style.height="150px",o.style.left="0px",o.style.overflow="hidden",o.style.position="absolute",o.style.top="0px",o.style.width="200px",o.style.visibility="hidden",o.appendChild(i),e.body.appendChild(o);let r=i.offsetWidth;o.style.overflow="scroll";let n=i.offsetWidth;return r===n&&(n=o.clientWidth),e.body.removeChild(o),r-n},i=t();return 0===i&&t3()&&!t9()?t(!0):i}(e)),t}function oO(e){return e instanceof Window?e.document.body.scrollHeight>e.innerHeight:e.offsetWidth!==e.clientWidth}function oD(e){return e instanceof Window?e.document.body.scrollWidth>e.innerWidth:e.offsetHeight!==e.clientHeight}function oP(e,t,i){e.style.transform=`translate3d(${t},${i},0)`}function o_(e){let t;return e.style.transform&&""!==(t=e.style.transform)?["transform",t]:-1}function oF(e){e.style.transform&&""!==e.style.transform&&(e.style.transform="")}function oN(e){return e&&(["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function oL(e){return oN(e)&&"hotInput"in e.dataset==!1}function oB(e){let t=oZ(e.ownerDocument);oG(t)&&!oL(t)&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&e.select()}function oV(e){return!e.parentNode}function oz(e,t){let i=new IntersectionObserver((e,i)=>{e.forEach(e=>{e.isIntersecting&&(t(),i.disconnect())})});return i.observe(e),i}function oW(e,t=!0,i=!0){let o=e.ownerDocument,r=o.createRange(),n=o.defaultView?.getSelection();if(iq(e,"contenteditable",!0),i){let t=L();iq(e,t[0],t[1])}t&&iG(e,"invisibleSelection"),r.selectNodeContents(e),n?.removeAllRanges(),n?.addRange(r)}function o$(e,t=!0){let i=e.ownerDocument.defaultView?.getSelection();e.hasAttribute("aria-hidden")&&e.removeAttribute("aria-hidden"),i?.removeAllRanges(),t&&ij(e,"invisibleSelection"),e.removeAttribute("contenteditable")}function oU(e,t,i=!0){oW(e,i),t(),o$(e,i)}function oG(e){if("object"!=typeof e||null===e)return!1;let t=e.ownerDocument?.defaultView?.Element;return!!(t&&e instanceof t)}function oj(e){if("object"!=typeof e||null===e)return!1;if("u">typeof DocumentFragment&&e instanceof DocumentFragment)return!0;let t=e.ownerDocument?.defaultView?.DocumentFragment;return!!(t&&e instanceof t)}function oq(e){return oG(e)&&("TD"===e.tagName||"TH"===e.tagName)}function oK(e){return"INPUT"===e.tagName}function oY(e){return"object"==typeof e&&null!==e&&"nodeType"in e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}function oX(e){let t=[],i=e.getRootNode();for(;oY(i);){let{host:e}=i;if(!oG(e))break;t.push(e),i=e.getRootNode()}return t}function oZ(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t}function oQ(e,t){return e.childNodes[t]||null}function oJ(e){e.hasAttribute("style")&&e.removeAttribute("style")}let o0="_renderVersion";function o1(e){e[o0]=(e[o0]??0)+1}class o2{#e=0;get epoch(){return this.#e}markAllChanged(){this.#e+=1}}function o3(e){return"function"==typeof e}function o6(e,t=200){let i=0,o={lastCallThrottled:!0},r=null;return function(...n){let s=Date.now(),l=!1;o.lastCallThrottled=!0,i||(i=s,l=!0);let a=t-(s-i);return l?(o.lastCallThrottled=!1,e.apply(this,n)):(r&&clearTimeout(r),r=setTimeout(()=>{o.lastCallThrottled=!1,e.apply(this,n),i=0,r=null},a)),o}}function o4(e,t=200,i=10){let o=o6(e,t),r=i;function n(...t){return r?(r-=1,e.apply(this,t)):o.apply(this,t)}return n.clearHits=function(){r=i},n}function o5(e,t=200){let i,o=null;function r(...n){return o&&clearTimeout(o),o=setTimeout(()=>{o=null,i=e.apply(this,n)},t),i}return r.cancel=function(){null!==o&&(clearTimeout(o),o=null)},r}function o8(...e){let[t,...i]=e;return function(...e){return ei(i,(e,t)=>t(e),t.apply(this,e))}}function o7(e,...t){return function(...i){return e.apply(this,t.concat(i))}}function o9(e){let t=e.length;return function i(o){return function(...r){let n=o.concat(r);return n.length>=t?e.apply(this,n):i(n)}}([])}function re(e){let t=e.length;return function i(o){return function(...r){let n=o.concat(r.reverse());return n.length>=t?e.apply(this,n):i(n)}}([])}function rt(e,t,i,o,r,n,s,l){if(eU(l))return e.call(t,i,o,r,n,s,l);if(eU(s))return e.call(t,i,o,r,n,s);if(eU(n))return e.call(t,i,o,r,n);if(eU(r))return e.call(t,i,o,r);if(eU(o))return e.call(t,i,o);else if(eU(i))return e.call(t,i);return e.call(t)}let ri={ALT:18,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,ARROW_UP:38,AUDIO_DOWN:t0()?182:174,AUDIO_MUTE:t0()?181:173,AUDIO_UP:t0()?183:175,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND_LEFT:91,COMMAND_RIGHT:93,COMMAND_FIREFOX:224,CONTROL:17,DELETE:46,END:35,ENTER:13,ESCAPE:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,F16:127,F17:128,F18:129,F19:130,HOME:36,INSERT:45,MEDIA_NEXT:176,MEDIA_PLAY_PAUSE:179,MEDIA_PREV:177,MEDIA_STOP:178,NULL:0,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PERIOD:190,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,A:65,C:67,D:68,F:70,L:76,O:79,P:80,S:83,V:86,X:88,Y:89,Z:90},ro=[ri.ALT,ri.ARROW_DOWN,ri.ARROW_LEFT,ri.ARROW_RIGHT,ri.ARROW_UP,ri.AUDIO_DOWN,ri.AUDIO_MUTE,ri.AUDIO_UP,ri.BACKSPACE,ri.CAPS_LOCK,ri.DELETE,ri.END,ri.ENTER,ri.ESCAPE,ri.F1,ri.F2,ri.F3,ri.F4,ri.F5,ri.F6,ri.F7,ri.F8,ri.F9,ri.F10,ri.F11,ri.F12,ri.F13,ri.F14,ri.F15,ri.F16,ri.F17,ri.F18,ri.F19,ri.HOME,ri.INSERT,ri.MEDIA_NEXT,ri.MEDIA_PLAY_PAUSE,ri.MEDIA_PREV,ri.MEDIA_STOP,ri.NULL,ri.NUM_LOCK,ri.PAGE_DOWN,ri.PAGE_UP,ri.PAUSE,ri.SCROLL_LOCK,ri.SHIFT,ri.TAB];function rr(e){return 32===e||e>=48&&e<=57||e>=96&&e<=111||e>=186&&e<=192||e>=219&&e<=222||e>=226||e>=65&&e<=90}function rn(e){return ro.includes(e)}function rs(e){let t=[];return it()?t.push(ri.COMMAND_LEFT,ri.COMMAND_RIGHT,ri.COMMAND_FIREFOX):t.push(ri.CONTROL),t.includes(e)}function rl(e){return[ri.CONTROL,ri.COMMAND_LEFT,ri.COMMAND_RIGHT,ri.COMMAND_FIREFOX].includes(e)}function ra(e,t){let i=t.split("|"),o=!1;return en(i,t=>{if(e===ri[t])return o=!0,!1}),o}function rh(e){e.isImmediatePropagationEnabled=!1,e.cancelBubble=!0}function rd(e){return!1===e.isImmediatePropagationEnabled}function ru(e){return 2===e.button}function rc(e){return 0===e.button}function rg(e){return 1===e.button}function rp(e){return"u">typeof TouchEvent&&e instanceof TouchEvent}function rm(e){return"touches"in e&&"changedTouches"in e}function rf(e){if(!rm(e)||0===e.changedTouches.length)return null;let{identifier:t,clientX:i,clientY:o}=e.changedTouches[0];return{identifier:t,clientX:i,clientY:o}}function rw(e,t){if(!rm(e))return null;for(let i=0;i<e.touches.length;i++){let o=e.touches[i];if(o.identifier===t)return{identifier:o.identifier,clientX:o.clientX,clientY:o.clientY}}return null}function rb(e,t){let i={x:e.offsetX,y:e.offsetY},o=iT(e);if(!oG(t)||o!==t&&o.contains(t))return i;for(;o!==t;)i.x+=o.offsetLeft,i.y+=o.offsetTop,o=o.offsetParent;return i}let rC=3;function ry(e,t){return Math.abs(t.clientX-e.x)>rC||Math.abs(t.clientY-e.y)>rC}let rS=["afterCellMetaReset","afterChange","afterContextMenuDefaultOptions","beforeContextMenuSetItems","afterDropdownMenuDefaultOptions","beforeDropdownMenuSetItems","afterContextMenuHide","beforeContextMenuShow","afterContextMenuShow","afterCopyLimit","beforeCreateCol","afterColumnSequenceCacheUpdate","afterColumnSequenceChange","afterCreateCol","beforeCreateRow","afterCreateRow","beforeAlter","afterDeselect","afterDestroy","afterDocumentKeyDown","afterDrawSelection","beforeRemoveCellClassNames","beforeCompositionStart","afterFontsLoad","afterGetCellMeta","afterGetColHeader","afterGetRowHeader","afterImport","afterInit","afterLoadData","afterUpdateData","afterDataProviderFetch","afterDataProviderFetchError","afterDataProviderFetchAbort","hasExternalDataSource","beforeRowsMutation","afterRowsMutation","afterRowsMutationError","afterMomentumScroll","afterOnCellCornerMouseDown","afterOnSelectionHandleMouseDown","afterOnSelectionEdgeMouseDown","beforeMoveCells","afterMoveCells","afterOnCellCornerDblClick","afterOnCellMouseDown","afterOnCellMouseUp","afterOnCellContextMenu","afterOnCellMouseOver","afterOnCellMouseOut","afterOnCellMouseOverOutside","afterRemoveCol","afterRemoveRow","beforeRenderer","afterRenderer","afterRowIdsRemoved","afterRowIdsReset","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","afterAsyncValueStart","beforeAsyncValueStart","beforeAsyncValueResolve","afterAsyncValueResolve","afterAsyncValueReject","afterAsyncValueCancel","afterAsyncValuesIdle","beforeCellAlignment","beforeReadOnlyToggle","beforeChange","beforeChangeRender","beforeHeightChange","beforeWidthChange","beforeDrawBorders","beforeGetCellMeta","beforeRemoveCellMeta","beforeImport","beforeInit","beforeInitWalkontable","beforeLoadData","beforeUpdateData","beforeDataProviderFetch","beforeKeyDown","beforeOnCellMouseDown","beforeOnCellMouseUp","beforeOnCellContextMenu","beforeOnCellMouseOver","beforeOnCellMouseOut","beforeOnCellMouseOverOutside","beforeRemoveCol","beforeRemoveRow","beforeViewRender","afterViewRender","beforeRender","afterRender","beforeSuspendExecution","afterSuspendExecution","beforeResumeExecution","afterResumeExecution","beforeRowWrap","beforeColumnWrap","beforeSetCellMeta","beforeSelectionFocusSet","beforeSetRangeStartOnly","beforeSetRangeStart","beforeSetRangeEnd","beforeSelectionHighlightSet","beforeTouchScroll","beforeValidate","beforeValueRender","construct","init","modifyColHeader","modifyColWidth","modifyFiltersMultiSelectValue","modifyFiltersMatchedRows","modifyFocusedElement","modifyRowHeader","modifyRowHeight","modifyRowHeightByOverlayName","modifyData","modifySourceData","modifyRowData","modifyGetCellCoords","modifyGetCoordsElement","modifyFocusOnTabNavigation","beforeHighlightingRowHeader","beforeHighlightingColumnHeader","beforeColumnSort","afterColumnSort","modifyAutofillRange","modifyCopyableRange","beforeCut","afterCut","beforeCopy","afterCopy","beforePasteParse","beforePaste","afterPaste","beforeColumnFreeze","afterColumnFreeze","beforeColumnMove","afterColumnMove","afterCustomBordersUpdate","beforeColumnUnfreeze","afterColumnUnfreeze","beforeRowCollapse","afterRowCollapse","beforeRowExpand","afterRowExpand","beforeRowMove","afterRowMove","beforeFreezeChange","afterFreezeChange","beforeColumnResize","afterColumnResize","beforeRowResize","afterRowResize","afterGetColumnHeaderRenderers","afterGetRowHeaderRenderers","beforeStretchingColumnWidth","beforeFilter","afterFilter","beforePageChange","afterPageChange","beforePageSizeChange","afterPageSizeChange","afterPageSizeVisibilityChange","afterPageCounterVisibilityChange","afterPageNavigationVisibilityChange","beforeSheetTabChange","afterSheetTabChange","beforeSheetTabAdd","afterSheetTabAdd","beforeSheetTabRemove","afterSheetTabRemove","beforeSheetTabRename","afterSheetTabRename","beforeSheetTabMove","afterSheetTabMove","afterSheetTabStateCapture","afterSheetTabStateRestore","afterFormulasValuesUpdate","afterNamedExpressionAdded","afterNamedExpressionRemoved","afterSheetAdded","afterSheetRenamed","afterSheetRemoved","modifyColumnHeaderHeight","modifySinglePassLayout","modifyColumnHeaderValue","beforeUndo","beforeUndoStackChange","afterUndo","afterUndoStackChange","beforeRedo","beforeRedoStackChange","afterRedo","afterRedoStackChange","modifyRowHeaderWidth","modifyTransformFocus","modifyTransformStart","modifyTransformEnd","afterModifyTransformFocus","afterModifyTransformStart","afterModifyTransformEnd","afterViewportRowCalculatorOverride","afterViewportColumnCalculatorOverride","afterPluginsInitialized","beforeHideRows","afterHideRows","beforeUnhideRows","afterUnhideRows","beforeRowSelectionChange","afterRowSelectionChange","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","beforeNotificationShow","afterNotificationShow","beforeNotificationHide","afterNotificationHide","afterBeginEditing","beforeMergeCells","afterMergeCells","beforeUnmergeCells","afterUnmergeCells","afterListen","afterUnlisten","afterRefreshDimensions","beforeRefreshDimensions","beforeColumnCollapse","afterColumnCollapse","beforeColumnExpand","afterColumnExpand","modifyAutoColumnSizeSeed"],rv=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"],["persistentStateSave","17.0.0"],["persistentStateLoad","17.0.0"],["persistentStateReset","17.0.0"]]),rR=new Map([]),rx=Symbol.for("handsontable.forwardedHookCallback");function rE(e){if("function"!=typeof e)return e;let t=e[rx];return"function"==typeof t?t:e}class rM{#t=new Map;constructor(){rS.forEach(e=>this.#i(e))}getList(e){return this.#t.get(e)??null}getHooks(e){let t=this.#t.get(e),i=[];if(t){let e=t.head;for(;e;)i.push(e),e=e.next}return i}add(e,t,i={}){let o=this.#t.get(e);o||(o=this.#i(e),rS.push(e));let r=!!i.fromSettings,n=rE(t);for(let r=o.head;null!==r;r=r.next)if(r.identity===n)return void this.#o(e,r,t,i);let s=Number.isInteger(i.orderIndex)?i.orderIndex??0:0,l=!!i.runOnce,a=!!i.initialHook;if(a){for(let e=o.head;null!==e;e=e.next)if(e.initialHook){e.callback=t,e.identity=n,e.fromSettings=r;return}}this.#r(o,{callback:t,orderIndex:s,runOnce:l,initialHook:a,fromSettings:r,identity:n,next:null})}#o(e,t,i,o){i!==t.callback&&i!==t.identity&&(t.callback=i);let r=!!o.initialHook&&!!o.fromSettings&&!t.initialHook;if(t.runOnce&&!o.runOnce&&(t.runOnce=!1,t.fromSettings=!!o.fromSettings,t.initialHook=!!o.initialHook),!o.fromSettings&&!o.runOnce){t.fromSettings=!1,t.initialHook=!1;return}r&&this.#n(e,e=>e===t||!e.initialHook)}has(e){let t=this.#t.get(e);return!!t&&null!==t.head}remove(e,t){let i=rE(t);return this.#s(e,e=>e.identity===i)}removeFromSettings(e){return this.#n(e,()=>!1)}replaceFromSettings(e,t){if(Array.isArray(t)){let i=new Set(t.map(e=>rE(e)));this.#n(e,e=>i.has(e.identity)),t.forEach(t=>this.add(e,t,{fromSettings:!0}));return}let i=null;this.#n(e,e=>null===i&&!!e.initialHook&&(i=e,!0));let o=i,r=this.getHooks(e).some(e=>e!==o&&e.identity===rE(t));if(o&&!r){o.callback=t,o.identity=rE(t);return}o&&this.#n(e,e=>e!==o),this.add(e,t,{initialHook:!0,fromSettings:!0})}#n(e,t){let i=this.#t.get(e);if(!i)return 0;let o=[],r=0,n=null,s=i.head;for(i.head=null;null!==s;){let e=s.next;if(s.fromSettings&&!t(s))o.push(s),r+=1;else{n?n.next=s:i.head=s;for(let e=0;e<o.length;e+=1)o[e].next=s;o.length=0,n=s}s=e}for(let e=0;e<o.length;e+=1)o[e].next=null;return n&&(n.next=null),i.tail=n,r}#s(e,t){let i=this.#t.get(e);if(!i)return!1;let o=null,r=i.head;for(;null!==r;){if(t(r))return o?o.next=r.next:i.head=r.next,r===i.tail&&(i.tail=o),!0;o=r,r=r.next}return!1}destroy(){this.#t.clear()}#r(e,t){if(null===e.head){e.head=t,e.tail=t;return}if(t.orderIndex>=e.tail.orderIndex){e.tail.next=t,e.tail=t;return}let i=null,o=e.head;for(;null!==o&&o.orderIndex<=t.orderIndex;)i=o,o=o.next;null===i?(t.next=e.head,e.head=t):(t.next=o,i.next=t)}#i(e){let t={head:null,tail:null};return this.#t.set(e,t),t}}let rk=eb`The plugin hook "[hookName]" was removed in Handsontable [removedInVersion].\x20
53
53
  Please consult release notes https://github.com/handsontable/handsontable/releases/tag/[removedInVersion] to\x20
54
54
  learn about the migration path.`;class rI{static getSingleton(){return rT}globalBucket=new rM;getBucket(e=null){return e?(e.pluginHookBucket||(e.pluginHookBucket=new rM),e.pluginHookBucket):this.globalBucket}add(e,t,i=null,o){return Array.isArray(t)?en(t,t=>this.add(e,t,i)):(this.#l(e),this.getBucket(i).add(e,t,{orderIndex:o,runOnce:!1})),this}once(e,t,i=null,o){return Array.isArray(t)?en(t,t=>this.once(e,t,i)):this.getBucket(i).add(e,t,{orderIndex:o,runOnce:!0}),this}addAsFixed(e,t,i=null){return Array.isArray(t)?en(t,t=>this.addAsFixed(e,t,i)):this.getBucket(i).add(e,t,{initialHook:!0}),this}_addFromSettings(e,t,i){return Array.isArray(t)?en(t,t=>{this.#l(e),this.getBucket(i).add(e,t,{fromSettings:!0})}):this.getBucket(i).add(e,t,{initialHook:!0,fromSettings:!0}),this}_removeFromSettings(e,t){return this.getBucket(t).removeFromSettings(e)}_replaceFromSettings(e,t,i){return this.getBucket(i).replaceFromSettings(e,t),this}remove(e,t,i=null){return this.getBucket(i).remove(e,t)}has(e,t=null){return this.getBucket(t).has(e)}run(e,t,i,o,r,n,s,l){return i=this.#a(this.getBucket().getList(t),e,t,null,i,o,r,n,s,l),i=this.#a(this.getBucket(e).getList(t),e,t,e,i,o,r,n,s,l)}#l(e){rv.has(e)&&ir(io(rk,{hookName:e,removedInVersion:rv.get(e)})),rR.has(e)&&ir(rR.get(e))}#a(e,t,i,o,r,n,s,l,a,h){if(null===e||null===e.head)return r;let d=e.head,u=e.tail;for(;null!==d;){let e=rt(d.callback,t,r,n,s,l,a,h);if(void 0!==e&&(r=e),d.runOnce&&this.remove(i,d.callback,o),d===u)break;d=d.next}return r}destroy(e=null){this.getBucket(e).destroy()}register(e){this.isRegistered(e)||rS.push(e)}deregister(e){this.isRegistered(e)&&rS.splice(rS.indexOf(e),1)}isDeprecated(e){return rR.has(e)||rv.has(e)}isRegistered(e){return rS.indexOf(e)>=0}getRegistered(){return rS}}let rT=new rI,rA=new Map;function rH(e="common"){rA.has(e)||rA.set(e,new Map);let t=rA.get(e);return{register:function(e,i){t.set(e,i)},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(){rA.delete(e),t.clear()}}}let{register:rO,getItem:rD,hasItem:rP,getNames:r_,getValues:rF}=rH("editors");class rN{#h;#d={};constructor(e){this.#h=e;const t=this.#d;rI.getSingleton().add("afterDestroy",function(){t[this.guid]=null})}getConstructor(){return this.#h}getInstance(e){return e.guid in this.#d||(this.#d[e.guid]=new this.#h(e)),this.#d[e.guid]}}let rL=new WeakMap;function rB(e){return"function"==typeof e}function rV(e){return rB(e)||tf("Editor class must be a constructor function."),e}function rz(e){return"string"!=typeof e?rV(e):(rP(e)||tf(`No registered editor found under "${e}" name`),rD(e).getConstructor())}function rW(e,t){let i="string"==typeof e?e:null,o=t;e&&rB(e)&&(o=e,i=e.EDITOR_TYPE??null),o||tf("Editor class is required to register an editor.");let r=rV(o),n=new rN(r);null!==i&&rO(i,n),rL.set(r,n)}let r$={_hooksStorage:Object.create(null),addHook(e,t){return this._hooksStorage[e]||(this._hooksStorage[e]=[]),this.hot.addHook(e,t),this._hooksStorage[e].push(t),this},removeHooksByKey(e){en(this._hooksStorage[e]||[],t=>{this.hot.removeHook(e,t)})},clearHooks(){tT(this._hooksStorage,(e,t)=>this.removeHooksByKey(t)),this._hooksStorage={}}};function rU(e,t,i){let{instance:o,visualRow:r,visualCol:n,valueSetter:s,emptyValue:l}=t,a=e;return(o3(s)&&(a=s.call(o,e,r,n,t,i)),""!==a||""===l||void 0===l||"string"==typeof i&&i.startsWith("UndoRedo.")||function(e){let{type:t}=e;return"checkbox"===t?""===e.checkedTemplate||""===e.uncheckedTemplate:("autocomplete"===t||"dropdown"===t)&&Array.isArray(e.source)&&e.source.includes("")}(t))?a:l}function rG(e,t){let{instance:i,visualRow:o,visualCol:r,valueGetter:n}=t;return o3(n)?n.call(i,e,o,r,t):e}function rj(e,t,i,o,r){let n=[];return rq(e,t,i,o,r,n),n}function rq(e,t,i,o,r,n){let s={visited:i.length>1?new Set:null,columnCount:e.countCols(),skipArea:function(e,t,i){if("number"!=typeof t||"number"!=typeof i)return null;let o=e.runHooks("modifyGetCellCoords",t,i,!1,"meta");if(Array.isArray(o)&&o.length>=4){let[e,t,i,r]=o;return{fromRow:e,fromColumn:t,toRow:i,toColumn:r}}if(Array.isArray(o)&&o.length>=2){let[e,t]=o;return{fromRow:e,fromColumn:t,toRow:e,toColumn:t}}return{fromRow:t,fromColumn:i,toRow:t,toColumn:i}}(e,o,r)};for(let o=0;o<i.length;o++){let r=function(e,t){if(t.isSingleHeader())return null;let i=Math.max(t.from.row??-1,t.to.row??-1),o=Math.max(t.from.col??-1,t.to.col??-1);if(i<0||o<0)return null;let r=t.getTopStartCorner().row,n=t.getTopStartCorner().col,s=e.runHooks("modifyGetCellCoords",r,n,!1,"meta");return Array.isArray(s)&&([r,n]=s),{fromRow:Math.max(r,0),fromColumn:Math.max(n,0),toRow:Math.min(t.getBottomEndCorner().row,e.countRows()-1),toColumn:Math.min(t.getBottomEndCorner().col,e.countCols()-1)}}(e,i[o]);if(null!==r&&function(e,t,i,o,r){for(let a=i.fromRow;a<=i.toRow;a++)for(let h=i.fromColumn;h<=i.toColumn;h++){var n,s,l;if(!(function(e,t,i,o){if(null===e)return!1;let r=i*t+o;return!!e.has(r)||(e.add(r),!1)}(o.visited,o.columnCount,a,h)||(n=o.skipArea,s=a,l=h,null!==n&&s>=n.fromRow&&s<=n.toRow&&l>=n.fromColumn&&l<=n.toColumn))&&function(e,t,i,o){var r;let n=e.getCellMetaTransient(i,o);if(n.readOnly)return!1;let s=e.getSourceDataAtCell(e.toPhysicalRow(i),o)??null;return r=!!n.valueSetter,null!==t&&"object"==typeof t||r||null===s||"object"!=typeof s}(e,t,a,h)){if(null===r)return!0;r.push([a,h,null!==t&&"object"==typeof t?tS(t):t])}}return!1}(e,t,r,s,n))return!0}return!1}function rK(e,t,i,o){let r=e.getSelectedRange();return!!r?.length&&rq(e,t,r,i,o,null)}tI(r$,"MIXIN_NAME","hooksRefRegisterer",{writable:!1,enumerable:!1});let rY=new WeakMap;function rX(e,t){let i=new Set(e._getWaitingChangeSets().map(({changes:e})=>e));if(t(),e.isDestroyed)return[];let o=e._getWaitingChangeSets().map(({changes:e})=>e).filter(e=>!i.has(e));return o.forEach(t=>{let i=rY.get(e);i||(i=new WeakSet,rY.set(e,i)),i.add(t)}),o}let rZ="edit";function rQ(e,t,i){return t===e.visualRow&&("function"==typeof e.prop?i===e.visualCol:i===e.prop)}let rJ=Object.freeze({VIRGIN:"STATE_VIRGIN",EDITING:"STATE_EDITING",WAITING:"STATE_WAITING",FINISHED:"STATE_FINISHED"});class r0{static get EDITOR_TYPE(){return"base"}state=rJ.VIRGIN;_opened=!1;_fullEditMode=!1;_closeCallback=null;_closeAfterDataChange=!0;TD=null;preventCloseElement;row=null;col=null;prop=null;originalValue=null;#u=null;#c=null;#g=!1;#p=null;#m=null;#f=void 0;#w=void 0;#b=null;#C=null;#y=new Set;resetValueBeforeEdit(){this.#g&&(this.#u=this.getValue(),this.#c=rG(this.originalValue,this.cellProperties))}constructor(e){this.hot=e,this.init()}_fireCallbacks(e){this._closeCallback&&(this._closeCallback(e),this._closeCallback=null)}init(){}getValue(){tf("Editor getValue() method unimplemented")}setValue(e){tf("Editor setValue() method unimplemented")}open(e){tf("Editor open() method unimplemented")}close(){tf("Editor close() method unimplemented")}focus(){tf("Editor focus() method unimplemented")}prepare(e,t,i,o,r,n){this.TD=o,this.row=e,this.col=t,this.prop=i,this.originalValue=r,this.cellProperties=n,this.state=this.isOpened()?this.state:rJ.VIRGIN}extend(){return class extends this.constructor{}}saveValue(e,t){if(t){let t=this.hot.getSelectedRange();if(t?.length)return void this.#S(e,t)}this.#v(e)}#v(e){let t=this.row,i=this.col,o=this.hot.runHooks("modifyGetCellCoords",t,i,!1,"meta");Array.isArray(o)&&([t,i]=o),this.hot.populateFromArray(t,i,e,null,null,rZ)}#S(e,t){let i=Array.isArray(e)&&Array.isArray(e[0])?e[0][0]:e,o=rj(this.hot,i,t);o.length>0&&this.hot.setDataAtCell(o,null,null,rZ)}beginEditing(e,t){if(this.state!==rJ.VIRGIN)return;if(null===this.row||null===this.col)return void ir("Editor opened without valid cell coordinates.");let i=this.hot,o=i.rowIndexMapper.getRenderableFromVisualIndex(this.row),r=i.columnIndexMapper.getRenderableFromVisualIndex(this.col);null!==o&&null!==r&&i.view.scrollViewport({row:o,col:r}),this.state=rJ.EDITING;let n=!1,s=null,l=null;if(this.isInFullEditMode()){let t=rG(this.originalValue,this.hot.getCellMeta(this.row,this.col)),i="string"!=typeof e;n=i,s=i?e$(t):e,l=i?t:null,this.setValue(i?t:e)}this.open(t),this._opened=!0,this.focus(),this.#g=n,this.#u=n?s:null,this.#c=l,i.view.render(),i.runHooks("afterBeginEditing",this.row,this.col),this.addHook("beforeDialogShow",()=>this.cancelChanges())}finishEditing(e,t,i){if(i){let e=this._closeCallback;this._closeCallback=t=>{e&&e(t),i(t),this.hot.view.render()}}if(!this.isWaiting()){if(this.state===rJ.VIRGIN)return void this.hot._registerTimeout(()=>{this._fireCallbacks(!0)});if(this.state===rJ.EDITING){if(e){this.cancelChanges(),this.hot.view.render();return}let i=this.getValue();this.cellProperties.trimWhitespace&&(i="string"==typeof i?String.prototype.trim.call(i||""):i);let o=i;"function"==typeof this.cellProperties.valueParser&&(i=this.cellProperties.valueParser(i,this.cellProperties));let r=!0===t&&rK(this.hot,i,this.row,this.col);if(!r&&this.isEditUnchanged(o,i))return void this.#R();if(this.state=rJ.WAITING,!this.hot.getCellValidator(this.cellProperties)){if(rX(this.hot,()=>this.saveValue([[i]],t)),this.hot.isDestroyed)return;this.state=rJ.FINISHED,this.discardEditor(!0);return}let n=this.#x(e=>{this.discardEditor(e)}),{validatesEditedCell:s,validatedCells:l,writtenCells:a,startsWrite:h}=this.#E(i,t);if(this.hot.isDestroyed||s||!this.isWaiting())return;if(l.length>0&&r)n(!0);else if(l.length>0){if(this.#p){let e=l.filter(e=>a.some(([t,i])=>t===e.row&&(i===e.col||i===this.hot.colToProp(e.col))));0===e.length?n(!0):this.#p.validatedCells=e.map(({row:e,col:t,source:i})=>({meta:this.#M(e,t),source:i}))}}else h?n(!0):this.#p&&(this.#p.acceptsAnyAnswer=!0)}}}#E(e,t){let i=!1,o=!1,r=()=>{o=!0},n=[],s=(e,t,o,r)=>{n.push({row:t,col:o,source:r}),this.#k(t,o)&&(i=!0,this.#p?.sources.add(r))};this.hot.addHook("beforeValidate",s),this.hot.addHook("beforeChange",r);let l=[];try{l=rX(this.hot,()=>this.saveValue([[e]],t)).flatMap(e=>e.map(([e,t])=>[e,t]))}finally{this.hot.isDestroyed||(this.hot.removeHook("beforeValidate",s),this.hot.removeHook("beforeChange",r))}return{validatesEditedCell:i,validatedCells:n,writtenCells:l,startsWrite:o}}#M(e,t){let i=this.hot.propToCol(t);if("number"==typeof i){let o=this.hot.getCellMeta(e,i);if(rQ(o,e,t))return o}return this.hot.getCellMeta(e,t)}isEditUnchanged(e,t){let i=e===this.#u||e===this.#c,o=t===this.#u||t===this.#c;return this.#g&&i&&o}#R(){if(!this.hot.getCellValidator(this.cellProperties)){this.state=rJ.FINISHED,this.discardEditor(!0),this.hot.view.render();return}this.state=rJ.WAITING,this.#x(e=>{this.discardEditor(e),this.hot.view.render()}),this.hot.validateCell(this.originalValue,this.cellProperties,()=>{},rZ)}#x(e){let t={sources:new Set,acceptsAnyAnswer:!1,validatedCells:null},i=i=>{if(this.hot.removeHook("postAfterValidate",o),this.#p!==t)return;this.#p=null,this.#C=null;let r=this.#I();this.#f=null===r?null:this.#T(),this.#w=r??void 0,this.#A(),this.state=rJ.FINISHED,e(i)},o=(e,o,r,n,s)=>{this.hot.isDestroyed||this.hot._isAnsweringStaleValidation()||(t.acceptsAnyAnswer||this.#H(t,r,n,s))&&i(e)};return this.#O(),this.#A(),this.#f=void 0,this.#w=void 0,this.#m=null===this.row?null:this.hot._trackRecord(this.row,this.col??void 0),this.#b=null===this.#m?null:this.hot._prepareRowReveal(),this.#p=t,this.#C=o,this.hot.addHook("postAfterValidate",o),i}#H(e,t,i,o){return null!==e.validatedCells?e.validatedCells.some(e=>e.source===o&&rQ(e.meta,t,i)):this.#k(t,i)&&(o===rZ||e.sources.has(o))}#k(e,t){return rQ(this.cellProperties,e,t)}#T(){if(null!==this.#m)return this.#m.getVisualRow()}#I(){if(null===this.#m)return;let e=this.#m.getVisualColumn();return"number"==typeof e&&null===this.hot.columnIndexMapper.getRenderableFromVisualIndex(e)?null:e}#D(e,t){let i=this.hot.getCell(e,t,!0);this.prepare(e,t,this.hot.colToProp(t)??this.prop,i??this.TD,this.originalValue,this.hot.getCellMeta(e,t)),"refreshDimensions"in this&&"function"==typeof this.refreshDimensions&&this.refreshDimensions()}#A(){this.#m?.release(),this.#m=null}#O(){this.#C&&(this.hot.removeHook("postAfterValidate",this.#C),this.#C=null)}_endValidationWait(){if(!this.isWaiting())return null;let e=this._closeCallback;return this._closeCallback=null,this.#p=null,this.#O(),this.#A(),this.cancelChanges(),e?()=>e(!1):null}cancelChanges(){this.#p=null,this.#O(),this.#A(),this.state=rJ.FINISHED,this.discardEditor()}discardEditor(e){if(this.state!==rJ.FINISHED)return;let t=!1===e&&!0!==this.cellProperties.allowInvalid,i=this.#b,o=this.#f,r=this.#w;(this.#f=void 0,this.#w=void 0,this.#b=null,t&&"number"==typeof o&&null!==i)?null!==this.hot.rowIndexMapper.getRenderableFromVisualIndex(o)?this.#P(t,i(o)?o:null,r):this.hot._runAfterValidatorAnswer(()=>{this.state===rJ.FINISHED&&this.#P(t,i(o)?o:null,r)}):this.#P(t,o,r)}_addFinishListener(e){this.#y.add(e)}_removeFinishListener(e){this.#y.delete(e)}#P(e,t,i){try{this.#_(e,t,i)}finally{this.hot.isDestroyed||[...this.#y].forEach(e=>e())}}#_(e,t,i){if(e&&null!==t){let e=t??this.row,o=i??this.col;null!==e&&null!==o&&((e!==this.row||o!==this.col)&&this.#D(e,o),this.hot.selectCell(e,o),this.focus(),this.state=rJ.EDITING,this._fireCallbacks(!1))}else this.close(),this._opened=!1,this._fullEditMode=!1,this.#g=!1,this.#u=null,this.#c=null,this.state=rJ.VIRGIN,this._fireCallbacks(!e),this.hot.getShortcutManager().setActiveContextName("grid")}enableFullEditMode(){this._fullEditMode=!0}isInFullEditMode(){return this._fullEditMode}isOpened(){return this._opened}isWaiting(){return this.state===rJ.WAITING}getEditedCellRect(){let e=this.getEditedCell();if(!e)return;let{wtOverlays:t,wtViewport:i}=this.hot.view._wt,o=this.hot.rootWindow,r=oe(e),n=oC(e),s=oe(this.hot.rootElement),l=oC(this.hot.rootElement),a=t.topOverlay?.holder,h=t.inlineStartOverlay?.holder,d=a!==o?a.scrollTop:0,u=h!==o?h.scrollLeft:0,c=o.innerWidth-s.left-l,{wtTable:g}=t.getParentOverlay(e)??this.hot.view._wt,p=g.name,m=g.getSpreaderOffset();r.top+=m.y,r.left+=m.x;let f=["master","inline_start","inline_end"].includes(p)?d:0,w=["master","top","bottom"].includes(p)?u:0,b=+(r.top!==s.top),C=r.top-s.top-b-f,y=0;y=this.hot.isRtl()?o.innerWidth-r.left-n-c-1+w:r.left-s.left-1-w,["top","top_inline_start_corner","top_inline_end_corner"].includes(p)&&(C+=t.topOverlay?.getOverlayTransformOffset()??0),["inline_start","top_inline_start_corner"].includes(p)&&(y+=Math.abs(t.inlineStartOverlay?.getOverlayTransformOffset()??0)),["inline_end","top_inline_end_corner"].includes(p)&&(y+=Math.abs(t.inlineEndOverlay?.getOverlayTransformOffset()??0));let S=this.hot.hasColHeaders(),v=this.hot.rowIndexMapper.getRenderableFromVisualIndex(this.row??0),R=this.hot.rowIndexMapper.getRenderableIndexesLength()-this.hot.view._wt.getSetting("fixedRowsBottom");(S&&(v??0)<=0||v===R)&&(C+=1);let x=o.getComputedStyle(e),E=Number.parseFloat(x[this.hot.isRtl()?"borderRightWidth":"borderLeftWidth"])>0||this.#F(e,p)?0:1;0===E&&(y+=1);let M=i.rowsRenderCalculator?.startPosition??0,k=i.columnsRenderCalculator?.startPosition??0,I=Math.abs(t.inlineStartOverlay?.getScrollPosition()??0),T=t.topOverlay?.getScrollPosition()??0,A=oH(this.hot.rootDocument),H=this.#N(e,p,M,T,A),O=["inline_end","top_inline_end_corner","bottom_inline_end_corner"].includes(p)?y-(t.inlineStartOverlay?.mainTableScrollableElement===o?I:0):this.#L(e,p,g,n,k,I),D=Number.parseFloat(x.borderTopWidth)>0?0:1,P=oC(e)+E,_=oy(e)+D,F=a&&oO(a)?A:0,N=h&&oD(h)?A:0,L=Math.max(this.hot.view.maximumVisibleElementWidth(O)-F+E-this.#B(p),0);return{top:C,start:y,height:_,maxHeight:Math.max(this.hot.view.maximumVisibleElementHeight(H??0)-N+D,this.hot.stylesHandler.getDefaultRowHeight()??0),width:P,maxWidth:L}}#F(e,t){if(i4(e))return!0;let{wtOverlays:i}=this.hot.view._wt,o={master:i.inlineStartOverlay,top:i.topInlineStartCornerOverlay,bottom:i.bottomInlineStartCornerOverlay}[t];return!!o?.needFullRender&&!!o.clone&&i5(e.getBoundingClientRect(),o.clone.wtTable.TABLE.getBoundingClientRect(),this.hot.isRtl())}#B(e){if(["inline_end","top_inline_end_corner","bottom_inline_end_corner"].includes(e))return 0;let{wtOverlays:t,wtViewport:i,wtTable:o}=this.hot.view._wt,r=t.inlineEndOverlay?.getBandWidth()??0;return 0===r?0:r+(i.hasHorizontalScroll()?0:Math.max(i.getWorkspaceWidth()-o.getTotalWidth(),0))+(t.inlineEndOverlay?.getFreezeLineOverlap()??0)}#N(e,t,i,o,r){let n=e.offsetTop,{wtOverlays:s}=this.hot.view._wt;if(["inline_start","inline_end","master"].includes(t)&&(n+=i-o),["bottom","bottom_inline_start_corner","bottom_inline_end_corner"].includes(t)&&s.bottomOverlay?.clone){let{wtViewport:e,wtTable:t}=s.bottomOverlay.clone;n+=e.getWorkspaceHeight()-t.getHeight()-r}return n}#L(e,t,i,o,r,n){let s=e.offsetLeft;return this.hot.isRtl()?s=(s>=0?i.getWidth()-e.offsetLeft:Math.abs(s))+(r-n-o):["top","master","bottom"].includes(t)&&(s+=r-n),s}getEditedCellsLayerClass(){switch(this.checkEditorSection()){case"inline-start":return"ht_clone_left ht_clone_inline_start";case"inline-end":return"ht_clone_inline_end";case"bottom":return"ht_clone_bottom";case"bottom-inline-start-corner":return"ht_clone_bottom_left_corner ht_clone_bottom_inline_start_corner";case"bottom-inline-end-corner":return"ht_clone_bottom_inline_end_corner";case"top":return"ht_clone_top";case"top-inline-start-corner":return"ht_clone_top_left_corner ht_clone_top_inline_start_corner";case"top-inline-end-corner":return"ht_clone_top_inline_end_corner";default:return"ht_clone_master"}}getEditedCell(){return null===this.row||null===this.col?null:this.hot.getCell(this.row,this.col,!0)}checkEditorSection(){if(null===this.row||null===this.col)return"";let e=this.hot.countRows(),t=this.hot.countCols(),i=this.hot.view.countFixedColumnsStart(),o=this.hot.view.countFixedRowsBottom(),r=t-this.hot.view.countFixedColumnsEnd(),n=this.col<i,s=!n&&this.col>=r,l="";return this.row<this.hot.view.countFixedRowsTop()?l=n?"top-inline-start-corner":s?"top-inline-end-corner":"top":o&&this.row>=e-o?l=n?"bottom-inline-start-corner":s?"bottom-inline-end-corner":"bottom":n?l="inline-start":s&&(l="inline-end"),l}}tR(r0,r$);let r1=0,r2=class{constructor(e=null){this.context=e||this,this.context.eventListeners||(this.context.eventListeners=[])}addEventListener(e,t,i,o=!1){if(!this.context)return()=>{};function r(e){i.call(this,function(e){let t=Object.getOwnPropertyDescriptor(e,"stopImmediatePropagation");if(void 0!==t&&!0!==t.writable&&"function"!=typeof t.set)return e;let i=e.stopImmediatePropagation;return e.stopImmediatePropagation=function(){i.apply(this),rh(this)},e}(e))}return this.context.eventListeners.push({element:e,event:t,callback:i,callbackProxy:r,options:o,eventManager:this}),e.addEventListener(t,r,o),r1+=1,()=>{this.removeEventListener(e,t,i)}}removeEventListener(e,t,i,o=!1){let r;if(!this.context)return;let n=this.context.eventListeners.length;for(;n;)if(n-=1,(r=this.context.eventListeners[n]).event===t&&r.element===e){if(i&&i!==r.callback||o&&r.eventManager!==this)continue;this.context.eventListeners.splice(n,1),r.element.removeEventListener(r.event,r.callbackProxy,r.options),r1-=1}}clearEvents(e=!1){if(!this.context)return;let t=this.context.eventListeners.length;for(;t;){t-=1;let i=this.context.eventListeners[t];e&&i.eventManager!==this||(this.context.eventListeners.splice(t,1),i.element.removeEventListener(i.event,i.callbackProxy,i.options),r1-=1)}}clear(){this.clearEvents()}destroy(){this.clearEvents(),this.context=null}destroyWithOwnEventsOnly(){this.clearEvents(!0),this.context=null}fireEvent(e,t){let i,o="document"in e?e.document:void 0,r="window"in e?e:void 0;o||(r=(o=e.ownerDocument?e.ownerDocument:e).defaultView);let n={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};o.createEvent?(i=o.createEvent("MouseEvents")).initMouseEvent(t,n.bubbles,n.cancelable,n.view,n.detail,n.screenX,n.screenY,n.clientX,n.clientY,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey,n.button,n.relatedTarget||o.body.parentNode):i=o.createEventObject(),e.dispatchEvent?e.dispatchEvent(i):e.fireEvent(`on${t}`,i)}};function r3(e,t){let i=e.colToProp(t);return null===i&&null===e.toPhysicalColumn(t)?t:i}class r6{destroyed=!1;#V=!1;#z=null;#W=null;#$=0;#U=(e={indexesSequenceChanged:!1,trimmedIndexesChanged:!1})=>{this.#G(this.#j(e),e)};#q=(e={indexesSequenceChanged:!1,trimmedIndexesChanged:!1})=>{this.#G(this.#j(e),e)};#K=(e,t,i)=>{i&&this.#Y()};#X=!1;#Y(){let e=this.activeEditor;if(!this.destroyed&&e?.isOpened()){if(e.state===rJ.WAITING)return void this.#Z("postAfterValidate");if(this.hot.isRenderSuspended())return void this.#Z("afterRender");this.#Q()}}#Z(e){this.#X||(this.#X=!0,this.hot.addHookOnce(e,()=>{this.#X=!1,this.#Y()}))}#Q(){let e=this.activeEditor;e?.isOpened()&&null!==e.row&&null!==e.col&&(this.hot.scrollViewportTo({row:e.row,col:e.col})&&this.hot.view.render(),"refreshDimensions"in e&&"function"==typeof e.refreshDimensions&&e.refreshDimensions())}#j(e){return"insert"===e.indexesChangeSource||"remove"===e.indexesChangeSource}#G(e,t){this.destroyed||(e?this.#J():this.#ee(t),this.#et())}constructor(e,t,i){this.hot=e,this.tableMeta=t,this.selection=i,this.eventManager=new r2(e),this.hot.addHook("afterDocumentKeyDown",e=>this.#ei(e)),this.hot.addHook("beforeCompositionStart",e=>this.#ei(e)),this.hot.addHook("afterRowSequenceCacheUpdate",this.#U),this.hot.addHook("afterColumnSequenceCacheUpdate",this.#q),this.hot.addHook("afterRefreshDimensions",this.#K),this.hot.view._wt.update("onCellDblClick",(e,t,i)=>this.#eo(e,t))}getActiveEditor(){return this.activeEditor}suspendStrandDiscards(){this.#$+=1}resumeStrandDiscards(){this.#$=Math.max(0,this.#$-1)}prepareEditor(){if(this.#V=!1,this.activeEditor&&this.activeEditor.isWaiting())return void this.closeEditor(!1,!1,e=>{e&&this.prepareEditor()});let e=this.hot.getSelectedRangeActive()?.highlight;if(!e||e.isHeader())return;let{row:t,col:i}=e,o=this.hot.runHooks("modifyGetCellCoords",t,i,!1,"meta"),r=t,n=i;Array.isArray(o)&&([r,n]=o);let s=this.hot.getCellMeta(r,n);if(this.cellProperties=s,!this.isCellEditable())return void this.clearActiveEditor();let l=this.hot.getCell(t,i,!0);if(l){var a;let e,o=this.hot.getCellEditor(s),h=r3(this.hot,n),d=this.hot.getSourceDataAtCell(this.hot.toPhysicalRow(r),n);this.activeEditor=(a=this.hot,rB(o)?(rL.get(o)||rW(null,o),e=rL.get(o)):"string"==typeof o?e=rD(o):tf('Only strings and functions can be passed as "editor" parameter'),e||tf(`No editor registered under name "${o}"`),e.getInstance(a)),this.activeEditor.prepare(t,i,h,l,d,s),this.#z=this.hot.rowIndexMapper.getPhysicalFromVisualIndex(t),this.#W=this.hot.columnIndexMapper.getPhysicalFromVisualIndex(i)}}isEditorOpened(){return this.activeEditor&&this.activeEditor.isOpened()}openEditor(e,t,i=!1){if(this.activeEditor?.isOpened()||this.activeEditor?.isWaiting()||this.prepareEditor(),!this.isCellEditable())return void this.clearActiveEditor();let o=this.hot.getSelectedRangeActive(),r=this.hot.runHooks("beforeBeginEditing",o.highlight.row,o.highlight.col,e,t,i);(t instanceof MouseEvent&&"boolean"!=typeof r&&(r=0===this.hot.selection.getLayerLevel()&&o.isSingle()),!1===r)?this.clearActiveEditor():(this.activeEditor||(this.hot.scrollToFocusedCell(),this.prepareEditor()),this.activeEditor&&(i&&this.activeEditor.enableFullEditMode(),this.activeEditor.beginEditing(e,t)))}closeEditor(e=!1,t=!1,i){this.activeEditor?this.activeEditor.finishEditing(e,t,i):i&&i(!1)}closeEditorAndSaveChanges(e){this.closeEditor(!1,e)}closeEditorAndRestoreOriginalValue(e){this.closeEditor(!0,e)}clearActiveEditor(){this.activeEditor=void 0,this.#z=null,this.#W=null}isCellEditable(){let e=this.hot.getSelectedRangeActive()?.highlight;if(!e||e.isHeader())return!1;let t=this.cellProperties,{row:i,col:o}=e;if(null===i||null===o||!t)return!1;let r=this.hot.getCellEditor(t);return!(t.readOnly||!r||this.#er(i,o))}moveSelectionAfterEnter(e){if(!this.hot.getSelected())return;let t={..."function"==typeof this.tableMeta.enterMoves?this.tableMeta.enterMoves(e):this.tableMeta.enterMoves};e.shiftKey&&(t.row=-(t.row??0),t.col=-(t.col??0)),this.hot.selection.isMultiple()||(this.hot.getSelectedRange()?.length??0)>1?this.selection.transformFocus(t.row??0,t.col??0):this.selection.transformStart(t.row??0,t.col??0,!0)}#er(e,t){return this.hot.rowIndexMapper.isHidden(this.hot.toPhysicalRow(e))||this.hot.columnIndexMapper.isHidden(this.hot.toPhysicalColumn(t))}#J(){let e=this.activeEditor;if(!e||e.state!==rJ.EDITING&&e.state!==rJ.VIRGIN||null===e.row||null===e.col)return;let t=this.hot.rowIndexMapper.getPhysicalFromVisualIndex(e.row),i=this.hot.columnIndexMapper.getPhysicalFromVisualIndex(e.col);if(null===t||null===i){this.#z=null,this.#W=null;return}this.#z=t,this.#W=i}#ee(e){let t=this.activeEditor,i=t?.state===rJ.EDITING,o=t?.state===rJ.VIRGIN;if(!e.trimmedIndexesChanged&&!e.indexesSequenceChanged||!t||!i&&!o)return;if(null===this.#z||null===this.#W){0===this.#$&&(null===this.hot.rowIndexMapper.getPhysicalFromVisualIndex(t.row)||null===this.hot.columnIndexMapper.getPhysicalFromVisualIndex(t.col))&&(i&&t.cancelChanges(),this.clearActiveEditor());return}let r=this.hot.rowIndexMapper.getVisualFromPhysicalIndex(this.#z),n=this.hot.columnIndexMapper.getVisualFromPhysicalIndex(this.#W);if(o){(r!==t.row||n!==t.col)&&this.clearActiveEditor();return}if(null===r||null===n){t.cancelChanges(),this.clearActiveEditor();return}t.row=r,t.col=n}#et(e){let t=this.activeEditor??e;if(t&&null!==t.row&&null!==t.col&&this.#er(t.row,t.col)){if(t.isWaiting()){this.#V||(this.#V=!0,this.hot.addHookOnce("postAfterValidate",()=>{this.#V=!1,this.hot._registerTimeout(()=>this.#et(t),0)}));return}t.state!==rJ.EDITING||this.#V||(this.#V=!0,this.hot._registerTimeout(()=>{this.#V=!1,!this.destroyed&&t.state===rJ.EDITING&&null!==t.row&&null!==t.col&&this.#er(t.row,t.col)&&t.finishEditing(!1,!1,e=>{e||t.finishEditing(!0)})},0))}}#ei(e){let t=this.hot.getSelectedRangeActive();if(!this.hot.isListening()||!t||t.highlight.isHeader()||rd(e))return;let{keyCode:i}=e,o=(e.ctrlKey||e.metaKey)&&!e.altKey;this.activeEditor&&(!this.activeEditor||this.activeEditor.isWaiting())||rn(i)||rl(i)||o||this.isEditorOpened()||this.openEditor("",e)}#eo(e,t){t?.isCell()&&(this.hot.getShortcutManager().isCtrlPressed()?this.clearActiveEditor():this.openEditor(null,e,!0))}destroy(){this.destroyed=!0,this.eventManager.destroy()}}let r4=new WeakMap;function r5(e){return e[0].toUpperCase()+e.substr(1)}function r8(...e){let t=[],i=e.length;for(;i;){let o=e$(e[i-=1]).toLowerCase();-1===t.indexOf(o)&&t.push(o)}return 1===t.length}function r7(){let e=new Uint16Array(4);return globalThis.crypto.getRandomValues(e),Array.from(e,e=>e.toString(16).padStart(4,"0")).join("")}function r9(e){if("string"!=typeof e)return!1;try{let t=JSON.parse(e);return"object"==typeof t&&null!==t}catch{return!1}}function ne(e){return/^(?:\d\d?%|100%)$/.test(e)}r6.getInstance=function(e,t,i){let o=r4.get(e);return o||(o=new r6(e,t,i),r4.set(e,o)),o};let nt={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:"\xa0",ndash:"\u2013",mdash:"\u2014",hellip:"\u2026",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",laquo:"\xab",raquo:"\xbb",bull:"\u2022",middot:"\xb7",dagger:"\u2020",copy:"\xa9",reg:"\xae",trade:"\u2122",deg:"\xb0",plusmn:"\xb1",times:"\xd7",divide:"\xf7",euro:"\u20AC",pound:"\xa3",yen:"\xa5",cent:"\xa2",sect:"\xa7",para:"\xb6",shy:"\xad",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009"};function ni(e){return String(e).replace(/&(#[0-9]+|#[xX][0-9a-fA-F]+|[a-zA-Z]+);/g,(e,t)=>{if("#"===t[0]){let i="x"===t[1]||"X"===t[1]?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return!Number.isFinite(i)||i<0||i>1114111?e:0===i||i>=55296&&i<=57343?"\uFFFD":String.fromCodePoint(i)}return Object.hasOwn(nt,t)?nt[t]:e})}function no(e){return ni(nr(e))}function nr(e){let t=String(e),i="",o=0,r=!1,n="";for(let e=0;e<t.length;e++){let s=t[e];o>0&&!r&&('"'===s||"'"===s)?(r=!0,n=s):r&&s===n?r=!1:r||"<"!==s?!r&&">"===s&&o>0?o-=1:0===o&&(i+=s):o+=1}return i}let nn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ns(e){return String(e).replace(/[&<>"']/g,e=>nn[e])}function nl(e){return"string"!=typeof e?e:e.replace(/([A-Z])/g,"-$1").replaceAll("_","-").toLowerCase()}let na="I\u0130\xcc\xcd\u0128",nh=na.toLowerCase(),nd=new Map;function nu(e,t){return!function(e){let t,i=nd.get(e);if(void 0!==i)return i;try{t=na.toLocaleLowerCase(e)!==nh}catch{t=!1}return nd.set(e,t),t}(t)?e.toLowerCase():e.toLocaleLowerCase(t)}let nc=null,ng=/^[^\r\u0300-\uFFFF]*$/;function np(e){return ng.test(e)?e.split(""):Array.from((nc??=new Intl.Segmenter).segment(e),e=>e.segment)}function nm(e){if(ng.test(e))return e.length;nc??=new Intl.Segmenter;let t=0;for(let i of nc.segment(e))t+=1;return t}function nf(e,t,i){let o=np(e.slice(0,t)),r=o.slice(0,Math.max(o.length-i,0)).join("");return{value:r+e.slice(t),index:r.length}}function nw(e,t=!0){return e.getSettings().sanitizer??t}function nb(e,t,i,o=!0){if(!t)return t;let{sanitizer:r}=e.getSettings();return"function"==typeof r?r(t,i)??"":(o&&iZ.test(t)&&il(e.rootElement,iQ,iJ(i)),t)}let nC={"&nbsp;":" ","&amp;":"&","&lt;":"<","&gt;":">"},ny=RegExp(Object.keys(nC).map(e=>`(${e})`).join("|"),"gi");function nS(e,t){let i=String(t);return iZ.test(i)?String(nb(e,i,"header",!1)):i}function nv(e){let t=e.hasColHeaders(),i=e.hasRowHeaders(),o=[t?-1:0,i?-1:0,e.countRows()-1,e.countCols()-1],r=e.getData(...o),n=r.length,s=n>0?r[0].length:0,l=["<table>","</table>"],a=t?["<thead>","</thead>"]:[],h=["<tbody>","</tbody>"],d=+!!i,u=+!!t;for(let o=0;o<n;o+=1){let n=t&&0===o,l=[];for(let t=0;t<s;t+=1){let s=!n&&i&&0===t,a="";if(n)a=`<th>${nS(e,e.getColHeader(t-d))}</th>`;else if(s)a=`<th>${nS(e,e.getRowHeader(o-u))}</th>`;else{let i=r[o][t],{hidden:n,rowspan:s,colspan:l}=e.getCellMetaTransient(o-u,t-d);if(!n){let e=[];if(s&&e.push(`rowspan="${s}"`),l&&e.push(`colspan="${l}"`),ej(i))a=`<td ${e.join(" ")}></td>`;else{let t=String(i).replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20/gi,"&nbsp;").replace(/\t/gi,"&#9;");a=`<td ${e.join(" ")}>${t}</td>`}}}l.push(a)}let c=["<tr>",...l,"</tr>"].join("");n?a.splice(1,0,c):h.splice(-1,0,c)}return l.splice(1,0,a.join(""),h.join("")),l.join("")}function nR(e){return ni(e.replaceAll(" ","\xa0").replaceAll("\r","\n"))}function nx(e,t){let i=e.hasColHeaders(),o=e.hasRowHeaders(),r=[i?-1:0,o?-1:0,e.countRows()-1,e.countCols()-1],n=e.getData(...r),s=n.length,l=s>0?n[0].length:0,a=+!!o,h=+!!i,d=t.createElement("table"),u=t.createElement("thead"),c=t.createElement("tbody"),g=(t,i)=>{i1(t,String(i),nw(e,!1),"header",e.rootElement)},p=(e,i)=>{String(i).split(/\r\n|\n/).forEach((i,o)=>{if(o>0){e.appendChild(t.createElement("br")),e.appendChild(t.createTextNode(`
55
55
  ${nR(i)}`));return}e.appendChild(t.createTextNode(nR(i)))})};for(let r=0;r<s;r+=1){let s=i&&0===r,d=t.createElement("tr");for(let i=0;i<l;i+=1){let l=!s&&o&&0===i;if(s){let o=t.createElement("th");g(o,e.getColHeader(i-a)),d.appendChild(o)}else if(l){let i=t.createElement("th");g(i,e.getRowHeader(r-h)),d.appendChild(i)}else{let o=n[r][i],{hidden:s,rowspan:l,colspan:u}=e.getCellMetaTransient(r-h,i-a);if(!s){let e=t.createElement("td");l&&e.setAttribute("rowspan",String(l)),u&&e.setAttribute("colspan",String(u)),ej(o)||p(e,o),d.appendChild(e)}}}s?u.appendChild(d):c.appendChild(d)}return i&&d.appendChild(u),d.appendChild(c),d}function nE(e){let t=e.length,i=["<table>"];for(let o=0;o<t;o+=1){let r=e[o],n=r.length,s=[];0===o&&i.push("<tbody>");for(let e=0;e<n;e+=1){let t=r[e],i=ej(t)?"":t.toString().replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20{2,}/gi,e=>`<span style="mso-spacerun: yes">${"&nbsp;".repeat(e.length-1)} </span>`).replace(/\t/gi,"&#9;");s.push(`<td>${i}</td>`)}i.push("<tr>",...s,"</tr>"),o+1===t&&i.push("</tbody>")}return i.push("</table>"),i.join("")}let nM=/<td\b[^>]*>/i,nk=/<\/\s*td\s*>/i,nI=/<p.*?>/g;function nT(e){let t=[],i=0;for(;i<e.length;){let o,r=e.substring(i).match(nM);if(!r){t.push(e.substring(i));break}let n=i+(r.index??0),s=r[0],l=n+s.length;t.push(e.substring(i,n));let a=function(e,t){let i=1,o=t;for(;i>0;){let t=e.substring(o),r=t.match(nM),n=t.match(nk);if(!n)break;let s=o+(n.index??0),l=n[0].length,a=r?o+(r.index??0):e.length;if(a<s)i+=1,o=a+(r?.[0].length??0);else{if(0==(i-=1))return{start:s,length:l};o=s+l}}return null}(e,l);if(!a){t.push(e.substring(n));break}let h=e.substring(n,a.start+a.length),d=a.start-n,u=h.substring(s.length,d).trim().replaceAll(/\n\s+/g," ").replaceAll(nI,"\n").replace(/^\n+/,"").replaceAll(/<\/(.*)>\s+$/mg,"</$1>");do o=u,u=u.replace(/<(?!br\b)[^>]+>/gi,"");while(u!==o);u=u.replaceAll(/^&nbsp;$/mg,""),t.push(`${s}${u}</td>`),i=a.start+a.length}return t.join("")}function nA(e,t=document,i={}){var o;let r={},n=e,s=null;if(null!=n&&("string"==typeof n||!n.nodeType)){let e=!1===i.normalize||"string"!=typeof n?n:nT(n);n=(s=new(t.defaultView?.DOMParser??DOMParser)().parseFromString(e,"text/html")).querySelector("table")}if(!n||"TABLE"!==((o=n)&&o.nodeName||""))return;let l=n,a=s?.querySelector('meta[name$="enerator"]')??null,h=null!==l.querySelector("tbody th"),d=function(e){let t=e.rows,i=[],o=0;for(let e=0;e<t.length;e+=1){let r=t[e].cells,n=function(e){for(let t=e.length-1;t>=0;t-=1)if("TD"===e[t].nodeName)return t;return -1}(r),s=i[e]||0;for(let o=0;o<=n;o+=1){let{colSpan:l,rowSpan:a,nodeName:h}=r[o];if("TD"===h){let r=o===n?1:l,h=Math.min(e+a,t.length);s+=r;for(let t=e+1;t<h;t+=1)i[t]=(i[t]||0)+l}}o=Math.max(o,s)}return o}(l),u=l.tFoot&&Array.from(l.tFoot.rows)||[],c=[],g=!1,p=0,m=0;if(l.tHead){let e=Array.from(l.tHead.rows).filter(e=>{let t=null!==e.querySelector("td");return t&&c.push(e),!t});g=(p=e.length)>0,p>1?r.nestedHeaders=Array.from(e).reduce((e,t)=>{let i=Array.from(t.cells).reduce((e,t,i)=>{if(h&&0===i)return e;let{colSpan:o,innerHTML:r}=t;return e.push(o>1?{label:r,colspan:o}:r),e},[]);return e.push(i),e},[]):g&&(r.colHeaders=Array.from(e[0].children).reduce((e,t,i)=>(h&&0===i||e.push(t.innerHTML),e),[]))}c.length&&(r.fixedRowsTop=c.length),u.length&&(r.fixedRowsBottom=u.length);let f=[...c,...Array.from(l.tBodies).reduce((e,t)=>(Array.from(t.rows).forEach(t=>{e.push(t)}),e),[]),...u],w=Array.from({length:m=f.length},()=>Array.from({length:d})),b=[],C=[];for(let e=0;e<m;e++){let t=Array.from(f[e].cells),i=t.length;for(let o=0;o<i;o++){let i=t[o],{nodeName:r,innerHTML:n,rowSpan:s,colSpan:l}=i,h=w[e].findIndex(e=>void 0===e);if("TD"===r){let t=Math.min(l,d-h);if(s>1||t>1){for(let i=e;i<e+s;i++)if(i<m)for(let e=h;e<h+t;e++)w[i][e]=null;let o=i.getAttribute("style");o&&o.includes("mso-ignore:colspan")||b.push({col:h,row:e,rowspan:s,colspan:t})}let o="";o=a&&/excel/gi.test(a.content)?n.replace(/[\r\n][\x20]{0,2}/g," ").replace(/<br(\s*|\/)>[\r\n]?[\x20]{0,3}/gim,"\r\n"):n.replace(/<br(\s*|\/)>[\r\n]?/gim,"\r\n"),w[e][h]=o.replace(ny,e=>nC[e])}else C.push(n)}}return b.length&&(r.mergeCells=b),C.length&&(r.rowHeaders=C),w.length&&(r.data=w),r}function nH(e,t=[]){if("number"==typeof e)return!isNaN(e)&&isFinite(e);if("string"==typeof e){if(0===e.length)return!1;if(1===e.length)return/\d/.test(e);let i=Array.from(new Set([".",...t])).map(e=>`\\${e}`).join("|");return RegExp(`^[+-]?(((${i})?\\d+((${i})\\d+)?(e[+-]?\\d+)?)|(0x[a-f\\d]+))$`,"i").test(e.trim())}return"object"==typeof e&&null!==e&&"number"==typeof e.valueOf()&&!(e instanceof Date)}function nO(e){return nH(e,[","])}function nD(e,t){return"."===t&&"string"==typeof e&&/^[+-]?[1-9]\d{0,2}(,\d{3})+$/.test(e.trim())}function nP(e,t){return","===t&&"string"==typeof e&&/^[+-]?[1-9]\d{0,2}(\.\d{3})+$/.test(e.trim())}function n_(e,t){return","===t&&"string"==typeof e&&/^[+-]?[1-9]\d{0,2}(\.\d{3})+,\d+$/.test(e.trim())}function nF(e,t,i){let o,r,n;for("function"==typeof t?(o=-1,r=e,n=t):(o=e-1,r=t,n=i);++o<=r&&!1!==n(o););}function nN(e,t,i){let o,r,n=e+1;for("function"==typeof t?(r=t,o=0):(r=i,o=t);--n>=o&&!1!==r(n););}function nL(e,t){return Number.parseInt(String(e*(t=isNaN(t=Number.parseInt(t.toString().replace("%",""),10))?0:t)/100),10)}function nB(e,t,i){return Math.min(e,t)===e?t:Math.max(e,i)===e?i:e}function nV(e,t={}){let{decimalSeparator:i}=t,o=e.trim();if(nD(e,i))return Number.parseFloat(o.replaceAll(",",""));if(nP(e,i))return Number.parseFloat(o.replaceAll(".",""));if(n_(e,i))return Number.parseFloat(o.replaceAll(".","").replace(",","."));let r=o.replace(",",".");return!1===isNaN(Number.parseFloat(r))?Number.parseFloat(r):null}function nz(e){let t=/^([+-]?)(\d*)(?:\.(\d*))?(?:e([+-]?\d+))?$/i.exec(e.trim());if(null===t||""===t[2]&&(t[3]??"")==="")return e.trim();let i="-"===t[1]?"-":"",o=t[2],r=t[3]??"",n=Number.parseInt(t[4]??"0",10);if(Math.abs(n)>1e3)return e.trim();let s=`${o}${r}`,l=o.length+n;l>s.length&&(s=s.padEnd(l,"0")),l<1&&(s=`${"0".repeat(1-l)}${s}`,l=1);let a=s.slice(0,l).replace(/^0+(?=\d)/,""),h=s.slice(l);return`${i}${a}${h.length>0?`.${h}`:""}`}function nW(e,t){let i=Object.is(t,-0)?"-0":String(t);return nz(e.replace(",","."))!==nz(i)}function n$(e){return Number.isInteger(e)&&"number"==typeof e&&e>=0}let nU=new Map([["asc",[-1,1]],["desc",[1,-1]]]),nG=e=>`The priority '${e}' is already declared in a map.`,nj=e=>`The priority '${e}' is not a number.`,nq=e=>`The id '${e}' is already declared in a map.`;function nK({errorIdExists:e}={}){let t=new Map,i=o3(e)?e:nq;function o(){return[...t]}function r(e){return t.has(e)}return{addItem:function(e,o){r(e)&&tf(String(i(e))),t.set(e,o)},clear:function(){t.clear()},getId:function(e){let[t]=o().find(([t,i])=>e===i&&t)||[null];return t},getItem:function(e){return t.get(e)},getItems:o,getValues:function(){return[...t.values()]},hasItem:r,removeItem:function(e){return t.delete(e)}}}let nY=e=>`'${e}' value is already declared in a unique set.`,nX=e=>`There is already registered "${e}" plugin.`,nZ=function({errorPriorityExists:e,errorPriorityNaN:t}={}){let i=new Map,o=o3(e)?e:nG,r=o3(t)?t:nj;return{addItem:function(e,t){nH(e)||tf(String(r(e))),i.has(e)&&tf(String(o(e))),i.set(e,t)},getItems:function(e="asc"){let[t,o]=nU.get(e)||nU.get("asc");return[...i].sort((e,i)=>e[0]<i[0]?t:o).map(e=>e[1])}}}({errorPriorityExists:e=>`There is already registered plugin on priority "${e}".`,errorPriorityNaN:e=>`The priority "${e}" is not a number.`}),nQ=function({errorItemExists:e}={}){let t=new Set,i=o3(e)?e:nY;return{addItem:function(e){t.has(e)&&tf(String(i(e))),t.add(e)},clear:function(){t.clear()},getItems:function(){return[...t]}}}({errorItemExists:nX}),nJ=nK({errorIdExists:nX}),n0=0;function n1(){return[...nZ.getItems(),...nQ.getItems()]}function n2(e){let t=r5(e);return nJ.getItem(t)}function n3(e){return!!n2(e)}function n6(e,t,i){var o,r,n,s,l,a;let h,[d,u,c]=(o=e,r=t,n=i,"function"==typeof o&&(o=(r=o).PLUGIN_KEY,n=r.PLUGIN_PRIORITY),[o,r,n]);void 0===n2(d)&&(s=d,l=u,a=c,h=r5(s),nJ.hasItem(h)&&tf(nX(h)),void 0===a?nQ.addItem(h):nZ.addItem(a,h),nJ.addItem(h,l),n0+=1)}let{register:n4,getItem:n5,hasItem:n8,getNames:n7,getValues:n9}=rH("renderers");function se(e){return"function"==typeof e?e:(n8(e)||tf(`No registered renderer found under "${e}" name`),n5(e))}function st(e,t){"string"!=typeof e&&(t=e,e=e.RENDERER_TYPE),n4(e,t)}let{register:si,getItem:so,hasItem:sr,getNames:sn,getValues:ss}=rH("validators");function sl(e){return"function"==typeof e?e:(sr(e)||tf(`No registered validator found under "${e}" name`),so(e))}function sa(e,t){"string"!=typeof e&&(t=e,e=e.VALIDATOR_TYPE),si(e,t)}let{register:sh,getItem:sd,hasItem:su,getNames:sc,getValues:sg}=rH("cellTypes");function sp(e){return su(e)||tf(`You declared cell type "${e}" as a string that is not mapped to a known object.
@@ -64,8 +64,8 @@ ${nR(i)}`));return}e.appendChild(t.createTextNode(nR(i)))})};for(let r=0;r<s;r+=
64
64
  before using it. Read more about this issue at:\x20
65
65
  https://handsontable.com/docs/javascript-data-grid/language/#load-the-prepared-language-files`)}tR(d_,dp);let{register:dL,getValues:dB}=rH("phraseFormatters");dL("pluralize",function(e,t){return Array.isArray(e)&&Number.isInteger(t)?e[t]:e}),dL("substitute",function e(t,i){return Array.isArray(t)?t.map(t=>e(t,i)):io(t,i)});let dV="Common:",dz=`${dV}ok`,dW=`${dV}cancel`,d$="ContextMenu:items",dU=`${d$}.noItems`,dG=`${d$}.insertRowAbove`,dj=`${d$}.insertRowBelow`,dq=`${d$}.insertColumnOnTheLeft`,dK=`${d$}.insertColumnOnTheRight`,dY=`${d$}.removeRow`,dX=`${d$}.removeColumn`,dZ=`${d$}.undo`,dQ=`${d$}.redo`,dJ=`${d$}.readOnly`,d0=`${d$}.clearColumn`,d1=`${d$}.copy`,d2=`${d$}.copyWithHeaders`,d3=`${d$}.copyWithGroupHeaders`,d6=`${d$}.copyHeadersOnly`,d4=`${d$}.cut`,d5=`${d$}.export`,d8=`${d$}.exportFileCsv`,d7=`${d$}.exportFileXlsx`,d9=`${d$}.freezeColumn`,ue=`${d$}.unfreezeColumn`,ut=`${d$}.mergeCells`,ui=`${d$}.unmergeCells`,uo=`${d$}.addComment`,ur=`${d$}.editComment`,un=`${d$}.removeComment`,us=`${d$}.readOnlyComment`,ul=`${d$}.align`,ua=`${d$}.align.left`,uh=`${d$}.align.center`,ud=`${d$}.align.right`,uu=`${d$}.align.justify`,uc=`${d$}.align.top`,ug=`${d$}.align.middle`,up=`${d$}.align.bottom`,um=`${d$}.borders`,uf=`${d$}.borders.top`,uw=`${d$}.borders.right`,ub=`${d$}.borders.bottom`,uC=`${d$}.borders.left`,uy=`${d$}.borders.remove`,uS=`${d$}.nestedHeaders.insertChildRow`,uv=`${d$}.nestedHeaders.detachFromParent`,uR=`${d$}.hideColumn`,ux=`${d$}.showColumn`,uE=`${d$}.hideRow`,uM=`${d$}.showRow`,uk="Filters:",uI=`${uk}conditions`,uT=`${uI}.none`,uA=`${uI}.isEmpty`,uH=`${uI}.isNotEmpty`,uO=`${uI}.isEqualTo`,uD=`${uI}.isNotEqualTo`,uP=`${uI}.beginsWith`,u_=`${uI}.endsWith`,uF=`${uI}.contains`,uN=`${uI}.doesNotContain`,uL=`${uI}.byValue`,uB=`${uI}.greaterThan`,uV=`${uI}.greaterThanOrEqualTo`,uz=`${uI}.lessThan`,uW=`${uI}.lessThanOrEqualTo`,u$=`${uI}.isBetween`,uU=`${uI}.isNotBetween`,uG=`${uI}.after`,uj=`${uI}.afterOrEqual`,uq=`${uI}.before`,uK=`${uI}.beforeOrEqual`,uY=`${uI}.today`,uX=`${uI}.tomorrow`,uZ=`${uI}.yesterday`,uQ=`${uk}labels.filterByCondition`,uJ=`${uk}labels.filterByValue`,u0=`${uk}labels.conjunction`,u1=`${uk}labels.disjunction`,u2=`${uk}values.blankCells`,u3=`${uk}buttons.selectAll`,u6=`${uk}buttons.clear`,u4=`${uk}buttons.ok`,u5=`${uk}buttons.cancel`,u8=`${uk}buttons.placeholder.search`,u7=`${uk}buttons.placeholder.value`,u9=`${uk}buttons.placeholder.secondValue`,ce="Pagination:",ct=`${ce}section.pagination`,ci=`${ce}.pageSize.auto`,co=`${ce}section.pageSize`,cr=`${ce}section.counter`,cn=`${ce}section.navigation`,cs=`${ce}firstPage`,cl=`${ce}prevPage`,ca=`${ce}nextPage`,ch=`${ce}lastPage`,cd="SheetsBar:",cu=`${cd}section.sheetsBar`,cc=`${cd}addSheet`,cg=`${cd}allSheets`,cp=`${cd}sheetMenu`,cm=`${cd}renameSheet`,cf=`${cd}items.delete`,cw=`${cd}items.duplicate`,cb=`${cd}items.rename`,cC=`${cd}items.moveRight`,cy=`${cd}items.moveLeft`,cS=`${cd}pagePrev`,cv=`${cd}pageNext`,cR=`${cd}announcement.sheetChanged`,cx=`${cd}announcement.renameRejected`,cE=`${cd}announcement.renameNotChanged`,cM=`${cd}announcement.sheetDuplicated`,ck=`${cd}announcement.sheetMoved`,cI=`${cd}defaultSheetName`,cT="CheckboxRenderer:",cA=`${cT}checked`,cH=`${cT}unchecked`,cO=`${cT}headerCheckAll`,cD="Loading:",cP=`${cD}title`,c_="Notification:",cF=`${c_}buttons.close`,cN="ExportFile:",cL=`${cN}dialog.title`,cB="EmptyDataState:",cV=`${cB}title`,cz=`${cB}description`,cW=`${cB}title.filters`,c$=`${cB}description.filters`,cU=`${cB}buttons.filters.reset`,cG=`${cB}title.loading`,cj=`${cB}description.loading`,cq="DataProvider:",cK=`${cq}errors.fetch`,cY=`${cq}errors.create`,cX=`${cq}errors.update`,cZ=`${cq}errors.remove`,cQ=`${cq}errors.requestFailed`,cJ=`${cq}buttons.refetch`,c0="RowSelection:",c1=`${c0}selectRow`,c2=`${c0}selectAll`,c3=`${c0}announce.rowSelected`,c6=`${c0}announce.rowDeselected`,c4=`${c0}announce.count`,c5=`${c0}menu.removeSelectedRows`,c8=`${c0}menu.clearSelection`,c7="FreezeBar:",c9=`${c7}rows.top`,ge=`${c7}rows.bottom`,gt=`${c7}columns.start`,gi=`${c7}columns.end`,go="NestedRows:",gr=`${go}announcement.expanded`,gn=`${go}announcement.collapsed`,gs="ColumnSorting:",gl=`${gs}announcement.ascending`,ga=`${gs}announcement.descending`,gh=`${gs}announcement.removed`,gd="FormulaBuilder:",gu=`${gd}labels.formulaEditor`,gc=`${gd}labels.formulaInput`,gg=`${gd}labels.cellAddress`,gp=`${gd}labels.formulaSuggestions`,gm=`${gd}hints.acceptSuggestion`,gf=`${gd}hints.navigateSuggestions`,gw=`${gd}labels.functionHelp`,gb=`${gd}labels.functionHelpFor`,gC=`${gd}labels.functionExample`,gy=`${gd}labels.functionDescription`,gS=`${gd}labels.optionalArgument`,gv=`${gd}labels.repeatableArgument`,gR=`${gd}labels.learnMore`,gx=`${gd}labels.close`,gE=`${gd}announce.invalidCellAddress`,gM=`${gd}announce.cellUnavailable`,gk=`${gd}announce.cellError`,gI=`${gd}announce.dependentCellError`,gT=`${gd}announce.dependentCellErrors`,gA={languageCode:"en-US",[dz]:"OK",[dW]:"Cancel",[dU]:"No available options",[dG]:"Insert row above",[dj]:"Insert row below",[dq]:"Insert column left",[dK]:"Insert column right",[dY]:["Remove row","Remove rows"],[dX]:["Remove column","Remove columns"],[dZ]:"Undo",[dQ]:"Redo",[dJ]:"Read only",[d0]:"Clear column",[ul]:"Alignment",[ua]:"Left",[uh]:"Center",[ud]:"Right",[uu]:"Justify",[uc]:"Top",[ug]:"Middle",[up]:"Bottom",[d9]:"Freeze column",[ue]:"Unfreeze column",[um]:"Borders",[uf]:"Top",[uw]:"Right",[ub]:"Bottom",[uC]:"Left",[uy]:"Remove border(s)",[uo]:"Add comment",[ur]:"Edit comment",[un]:"Delete comment",[us]:"Read-only comment",[ut]:"Merge cells",[ui]:"Unmerge cells",[d1]:"Copy",[d2]:["Copy with header","Copy with headers"],[d3]:["Copy with group header","Copy with group headers"],[d6]:["Copy header only","Copy headers only"],[d4]:"Cut",[d5]:"Export",[d8]:"To CSV",[d7]:"To Excel",[cL]:"Exporting\u2026",[uS]:"Insert child row",[uv]:"Detach from parent",[uR]:["Hide column","Hide columns"],[ux]:["Show column","Show columns"],[uE]:["Hide row","Hide rows"],[uM]:["Show row","Show rows"],[uT]:"None",[uA]:"Is empty",[uH]:"Is not empty",[uO]:"Is equal to",[uD]:"Is not equal to",[uP]:"Begins with",[u_]:"Ends with",[uF]:"Contains",[uN]:"Does not contain",[uB]:"Greater than",[uV]:"Greater than or equal to",[uz]:"Less than",[uW]:"Less than or equal to",[u$]:"Is between",[uU]:"Is not between",[uG]:"After",[uj]:"After or equal to",[uq]:"Before",[uK]:"Before or equal to",[uY]:"Today",[uX]:"Tomorrow",[uZ]:"Yesterday",[u2]:"Blank cells",[uQ]:"Filter by condition",[uJ]:"Filter by value",[u0]:"And",[u1]:"Or",[u3]:"Select all",[u6]:"Select none",[u4]:"OK",[u5]:"Cancel",[u8]:"Search",[u7]:"Value",[u9]:"Second value",[ct]:"Pagination",[co]:"Page size",[ci]:"Auto",[cr]:"[start] - [end] of [total]",[cn]:"Page [currentPage] of [totalPages]",[cs]:"Go to first page",[cl]:"Go to previous page",[ca]:"Go to next page",[ch]:"Go to last page",[cu]:"Sheets",[cc]:"Add sheet",[cg]:"All sheets",[cp]:"Sheet actions: [name]",[cm]:"Sheet name",[cf]:"Delete",[cw]:"Duplicate",[cb]:"Rename",[cC]:"Move right",[cy]:"Move left",[cS]:"Scroll sheets backward",[cv]:"Scroll sheets forward",[cR]:"Sheet [name] activated",[cx]:"Sheet name not changed: [name] is already in use",[cE]:"Sheet name not changed",[cM]:"Sheet [name] duplicated as [copy]",[ck]:"Sheet [name] moved to position [position] of [count]",[cI]:"Sheet",[cA]:"Checked",[cH]:"Unchecked",[cP]:"Loading...",[cF]:"Close",[cV]:"No data available",[cz]:"There\u2019s nothing to display yet.",[cW]:"No results found",[c$]:"It looks like your current filters are hiding all results.",[cU]:"Reset filters",[cG]:"Loading data",[cj]:"Please wait.",[cK]:"Could not load data",[cY]:"Could not create rows",[cX]:"Could not update rows",[cZ]:"Could not remove rows",[cQ]:"Request failed",[cJ]:"Refetch",[c1]:"Select row [row]",[c2]:"Select all rows ([selected] of [total] selected)",[cO]:"Check all ([checked] of [total] checked)",[c3]:"Row [row] selected",[c6]:"Row [row] deselected",[c4]:"[selected] of [total] rows selected",[c5]:"Remove selected rows ([count])",[c8]:"Clear row selection",[c9]:"Frozen rows at the top",[ge]:"Frozen rows at the bottom",[gt]:"Frozen columns at the start",[gi]:"Frozen columns at the end",[gr]:"Expanded row [label], expanded rows shown: [count]",[gn]:"Collapsed row [label]",[gl]:"Sorted by [label], ascending",[ga]:"Sorted by [label], descending",[gh]:"Sorting removed from [label]",[gu]:"Formula editor",[gc]:"Formula input",[gg]:"Cell address",[gp]:"Formula suggestions",[gm]:"to accept.",[gf]:"to navigate",[gw]:"Function help",[gb]:"[name] function help",[gC]:"Example",[gy]:"About",[gS]:"optional",[gv]:"repeatable",[gR]:"Learn more",[gx]:"Close",[gE]:"Invalid cell address: [text]",[gM]:"Cannot select [text]",[gk]:"Error in [cell]: [message].",[gI]:"[count] more cell now contains an error.",[gT]:"[count] more cells now contain errors."},gH=gA.languageCode,gO="sr-SP",{register:gD,getItem:gP,hasItem:g_,getValues:gF}=rH("languagesDictionaries");function gN(e,t){let i=e,o=t;return tM(e)&&(i=String((o=e).languageCode)),function(e,t){e!==gH&&tT(gP(gH),(e,i)=>{eG(t[i])&&(t[i]=e)})}(i,o),gD(i,tS(o)),tS(o)}function gL(e){return g_(e)?tS(gP(e)):null}gN(gA);function gB(e,t,i){var o,r;let n=gL(e);if(null===n)return null;let s=n[t];if(eG(s))return null;let l=(o=s,r=i,dB().reduce((e,t)=>t(e,r),o));return Array.isArray(l)?l[0]:l}function gV(e){e===gO&&id(`language.${gO}`,`The "${gO}" language code will be removed in 20.0.0. Use the "sr-Latn-RS" language code instead.`)}class gz{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(){let e=this.cellRange.getOuterTopStartCorner(),t=this.cellRange.getOuterBottomEndCorner();return[e.row??0,e.col??0,t.row??0,t.col??0]}destroy(){this.runLocalHooks("destroy")}}tR(gz,dp);let gW=gz,g$=class extends gW{visualCellRange=null;constructor(e,t){super(e,null),this.visualCellRange=t||null,this.commit()}add(e){return null===this.visualCellRange?this.visualCellRange=this.settings.createCellRange(e):this.visualCellRange.expand(e),this}clear(){return this.visualCellRange=null,super.clear()}trimToVisibleCellsRangeOnly(e){let{from:t,to:i}=e,o="N-S"===e.getVerticalDirection()?1:-1,r="start-end"===e.getInlineDirection()?1:-1,n=this.getNearestNotHiddenCoords(t,o,r),s=this.getNearestNotHiddenCoords(i,-o,-r);if(null===n||null===s)return null;let l=n.row??0,a=s.row??0,h=n.col??0,d=s.col??0,u=1===r&&h>d||-1===r&&h<d;return 1===o&&l>a||-1===o&&l<a||u?null:this.settings.createCellRange(n,n,s)}getNearestNotHiddenCoords(e,t,i=t){if(null===e.row||null===e.col)return null;let o=this.getNearestNotHiddenIndex(this.settings.rowIndexMapper,e.row,t);if(null===o)return null;let r=this.getNearestNotHiddenIndex(this.settings.columnIndexMapper,e.col,i);return null===r?null:this.settings.createCellCoords(o,r)}getNearestNotHiddenIndex(e,t,i){return t<0?t:e.getNearestNotHiddenIndex(t,i)}commit(){if(null===this.visualCellRange)return this;let e=this.trimToVisibleCellsRangeOnly(this.visualCellRange);return null===e?this.cellRange=null:this.cellRange=this.createRenderableCellRange(e.from,e.to),this}syncWith(e){let t=e.from.clone().normalize(),i="N-S"===e.getVerticalDirection()?1:-1,o="W-E"===e.getHorizontalDirection()?1:-1,r=this.visualCellRange?this.settings.visualToRenderableCoords(this.visualCellRange.highlight):null,n=null;if((null===r||null===r.col||null===r.row)&&(n=this.getNearestNotHiddenCoords(t,i,o)),null!==n&&e.includes(n)){let t=e.highlight.clone();if((t.row??-1)>=0&&(t.row=n.row),(t.col??-1)>=0&&(t.col=n.col),null===this.cellRange){let e=this.settings.visualToRenderableCoords(t);this.cellRange=this.settings.createCellRange(e)}e.setHighlight(t)}return"focus"===this.settings.selectionType&&null!==r&&null===n&&null!==this.visualCellRange&&e.setHighlight(this.visualCellRange.highlight),this}getCorners(){let{from:e,to:t}=this.cellRange;return[Math.min(e.row??0,t.row??0),Math.min(e.col??0,t.col??0),Math.max(e.row??0,t.row??0),Math.max(e.col??0,t.col??0)]}getVisualCorners(){let e=this.cellRange,t=this.settings.renderableToVisualCoords(e.getTopStartCorner()),i=this.settings.renderableToVisualCoords(e.getBottomEndCorner());return[t.row,t.col,i.row,i.col]}createRenderableCellRange(e,t){let i=this.settings.visualToRenderableCoords(e),o=this.settings.visualToRenderableCoords(t);return null===i.row||null===i.col||null===o.row||null===o.col?null:this.settings.createCellRange(i,i,o)}};function gU({activeHeaderClassName:e,...t}){return new g$({className:e,...t,selectionType:hA})}function gG({areaCornerVisible:e,adjustHandlesVisible:t,moveEnabled:i,...o}){return new g$({className:"area",createLayers:!0,border:{width:1,color:"#4b89ff",cornerVisible:e,adjustHandlesVisible:t,moveEnabled:i},...o,selectionType:"area"})}function gj({...e}){return new g$({className:"highlight",...e,selectionType:"area"})}function gq({columnClassName:e,...t}){return new g$({className:e,...t,selectionType:"column"})}function gK({headerClassName:e,...t}){return new g$({className:e,...t,selectionType:"header"})}function gY({rowClassName:e,...t}){return new g$({className:e,...t,selectionType:"row"})}class gX{layerLevel=0;layeredAreas=new Map;areas=new Map;rowHeaders=new Map;columnHeaders=new Map;activeRowHeaders=new Map;activeColumnHeaders=new Map;activeCornerHeaders=new Map;rowHighlights=new Map;columnHighlights=new Map;customSelections=[];constructor(e){this.options=e,this.focus=function({cellCornerVisible:e,cellMoveEnabled:t,...i}){return new g$({className:"current",headerAttributes:[Y()],border:{width:2,color:"#4b89ff",cornerVisible:e,moveEnabled:t},...i,selectionType:"focus"})}(e),this.fill=function({...e}){return new g$({className:"fill",border:{width:1,color:"#ff0000"},...e,selectionType:"fill"})}(e)}isEnabledFor(e,t){let i=e;"focus"===e&&(i="current");let o=this.options.disabledCellSelection;if("function"!=typeof o)return!0;let r=o(t.row,t.col);return"string"==typeof r&&(r=[r]),!r||Array.isArray(r)&&!r.includes(i)}useLayerLevel(e=0){return this.layerLevel=e,this}getFocus(){return this.focus}getFill(){return this.fill}createLayeredArea(){return this.#nT(this.layeredAreas,gG)}getLayeredAreas(){return[...this.layeredAreas.values()]}createArea(){return this.#nT(this.areas,gj)}getAreas(){return[...this.areas.values()]}createRowHeader(){return this.#nT(this.rowHeaders,gK)}getRowHeaders(){return[...this.rowHeaders.values()]}createColumnHeader(){return this.#nT(this.columnHeaders,gK)}getColumnHeaders(){return[...this.columnHeaders.values()]}createActiveRowHeader(){return this.#nT(this.activeRowHeaders,gU)}getActiveRowHeaders(){return[...this.activeRowHeaders.values()]}createActiveColumnHeader(){return this.#nT(this.activeColumnHeaders,gU)}getActiveColumnHeaders(){return[...this.activeColumnHeaders.values()]}createActiveCornerHeader(){return this.#nT(this.activeCornerHeaders,gU)}getActiveCornerHeaders(){return[...this.activeCornerHeaders.values()]}createRowHighlight(){return this.#nT(this.rowHighlights,gY)}getRowHighlights(){return[...this.rowHighlights.values()]}createColumnHighlight(){return this.#nT(this.columnHighlights,gq)}getColumnHighlights(){return[...this.columnHighlights.values()]}getCustomSelections(){return[...this.customSelections.values()]}addCustomSelection(e){this.customSelections.push(function({border:e,visualCellRange:t,...i}){return new g$({...e,...i,selectionType:hH},t)}({...this.options,...e}))}updateHighlightClassNames(e){"rowClassName"in e&&(this.options.rowClassName=e.rowClassName,en(this.rowHighlights.values(),t=>{t.settings.className=e.rowClassName})),"columnClassName"in e&&(this.options.columnClassName=e.columnClassName,en(this.columnHighlights.values(),t=>{t.settings.className=e.columnClassName})),"headerClassName"in e&&(this.options.headerClassName=e.headerClassName,en(this.rowHeaders.values(),t=>{t.settings.className=e.headerClassName}),en(this.columnHeaders.values(),t=>{t.settings.className=e.headerClassName})),"activeHeaderClassName"in e&&(this.options.activeHeaderClassName=e.activeHeaderClassName,en(this.activeRowHeaders.values(),t=>{t.settings.className=e.activeHeaderClassName}),en(this.activeColumnHeaders.values(),t=>{t.settings.className=e.activeHeaderClassName}),en(this.activeCornerHeaders.values(),t=>{t.settings.className=e.activeHeaderClassName}))}clear(){this.focus.clear(),this.fill.clear(),this.areas.forEach(e=>e.clear()),this.layeredAreas.forEach(e=>e.clear()),this.rowHeaders.forEach(e=>e.clear()),this.columnHeaders.forEach(e=>e.clear()),this.activeRowHeaders.forEach(e=>e.clear()),this.activeColumnHeaders.forEach(e=>e.clear()),this.activeCornerHeaders.forEach(e=>e.clear()),this.rowHighlights.forEach(e=>e.clear()),this.columnHighlights.forEach(e=>e.clear())}#nT(e,t){let i=this.layerLevel;if(e.has(i))return e.get(i);let o=t({layerLevel:i,...this.options});return e.set(i,o),o}[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]()}}class gZ{ranges=[];createCellRange;constructor(e){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,t=()=>!0){return this.ranges.some((i,o)=>i.includes(e)&&t(i,o))}findAll(e){let t=[];return this.ranges.forEach((i,o)=>{i.isEqual(e)&&t.push({range:i,layer:o})}),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,i)=>!e.includes(i)),this}clear(){return this.ranges.length=0,this}size(){return this.ranges.length}clone(){let e=new gZ(this.createCellRange);return e.ranges=this.ranges.map(e=>e.clone()),e}map(e){return this.ranges=this.ranges.map((t,i)=>e(t,i)),this}peekByIndex(e=0){let t;return e>=0&&e<this.size()&&(t=this.ranges[e]),t}[Symbol.iterator](){return this.ranges[Symbol.iterator]()}}class gQ{#nA;#nH=0;#nO={x:0,y:0};constructor(e,t){this.#nA=e,this.tableApi=t}setActiveLayerIndex(e){this.#nH=e}getCurrentSelection(){return this.#nA.peekByIndex(this.#nH)}transformStart(e,t,i=!1){this.#nO=this.calculateOffset();let o=this.tableApi.createCellCoords(e,t),r=this.getCurrentSelection().highlight,n=this.tableApi.visualToRenderableCoords(r),s=0,l=0;if(this.runLocalHooks("beforeTransformStart",o),null!==n.row&&null!==n.col){let{width:e,height:t}=this.#nD(),{row:n,col:a}=this.#nP(r),h=this.tableApi.fixedRowsBottom(),d=this.tableApi.fixedColumnsEnd(),u=this.tableApi.minSpareRows(),c=this.tableApi.minSpareCols(),g=this.tableApi.autoWrapRow(),p=this.tableApi.autoWrapCol(),m=this.tableApi.createCellCoords((n??0)+(o.row??0),(a??0)+(o.col??0));if((m.row??0)>=t){let o=tP(i&&u>0&&0===h),r=(m.col??0)+1,n=r>=e,s=this.tableApi.createCellCoords((m.row??0)-t,n?r-e:r);if(this.runLocalHooks("beforeColumnWrap",o,this.#n_(s),n),o.value)this.runLocalHooks("insertRowRequire",this.countRenderableRows());else if(p){if(this.shouldSwitchSelectionLayer()&&n&&this.#nA.size()>1){this.#nF();let e=this.#nN("forward");null!==e&&s.assign(e)}m.assign(s)}}else if((m.row??0)<0){let i=tP(p),o=(m.col??0)-1,r=o<0,n=this.tableApi.createCellCoords(t+(m.row??0),r?e+o:o);if(this.runLocalHooks("beforeColumnWrap",i,this.#n_(n),r),p){if(this.shouldSwitchSelectionLayer()&&r&&this.#nA.size()>1){this.#nL();let e=this.#nN("backward");null!==e&&n.assign(e)}m.assign(n)}}if({width:e,height:t}=this.#nD(),(m.col??0)>=e){let o=tP(i&&c>0&&0===d),r=(m.row??0)+1,n=r>=t,s=this.tableApi.createCellCoords(n?r-t:r,(m.col??0)-e);if(this.runLocalHooks("beforeRowWrap",o,this.#n_(s),n),o.value)this.runLocalHooks("insertColRequire",this.countRenderableColumns());else if(g){if(this.shouldSwitchSelectionLayer()&&n&&this.#nA.size()>1){this.#nF();let e=this.#nN("forward");null!==e&&s.assign(e)}m.assign(s)}}else if((m.col??0)<0){let i=tP(g),o=(m.row??0)-1,r=o<0,n=this.tableApi.createCellCoords(r?t+o:o,e+(m.col??0));if(this.runLocalHooks("beforeRowWrap",i,this.#n_(n),r),g){if(this.shouldSwitchSelectionLayer()&&r&&this.#nA.size()>1){this.#nL();let e=this.#nN("backward");null!==e&&n.assign(e)}m.assign(n)}}let{rowDir:f,colDir:w}=this.#nB(m);s=f,l=w,r=this.#n_(m)}return this.runLocalHooks("afterTransformStart",r,s,l),{selectionLayer:this.#nH,visualCoords:r}}transformEnd(e,t){this.#nO=this.calculateOffset();let i=this.tableApi.createCellCoords(e,t),o=this.getCurrentSelection(),r=this.tableApi.visualToRenderableCoords(o.highlight),n=this.#nV(o.to.row??0,o.from.row??0),s=this.#nz(o.to.col??0,o.from.col??0),l=o.to.clone(),a=0,h=0;if(this.runLocalHooks("beforeTransformEnd",i),null!==r.row&&null!==r.col&&null!==n&&null!==s){let{row:e,col:t}=this.#nP(o.highlight),r=this.tableApi.createCellCoords(n+(i.row??0),s+(i.col??0)),d=o.getTopStartCorner(),u=o.getTopEndCorner(),c=o.getBottomEndCorner();if((i.col??0)<0&&s>=(t??0)&&(r.col??0)<(t??0)){let e=(r.col??0)-(t??0);r.col=(this.#nz(d.col??0,u.col??0)??0)+e}else if((i.col??0)>0&&s<=(t??0)&&(r.col??0)>(t??0)){let e=this.#nz(u.col??0,d.col??0),t=Math.max((r.col??0)-(e??0),1);r.col=(e??0)+t}if((i.row??0)<0&&n>=(e??0)&&(r.row??0)<(e??0)){let t=(r.row??0)-(e??0);r.row=(this.#nV(d.row??0,c.row??0)??0)+t}else if((i.row??0)>0&&n<=(e??0)&&(r.row??0)>(e??0)){let e=this.#nV(c.row??0,d.row??0),t=Math.max((r.row??0)-(e??0),1);r.row=(e??0)+t}let{rowDir:g,colDir:p}=this.#nB(r);a=g,h=p;let m=this.#n_(r);0===i.row&&0!==i.col?l.col=m.col:0!==i.row&&0===i.col?l.row=m.row:(l.row=m.row,l.col=m.col)}return this.runLocalHooks("afterTransformEnd",l,a,h),{selectionLayer:this.#nH,visualCoords:l}}calculateOffset(){tf("`calculateOffset` is not implemented")}countRenderableRows(){tf("`countRenderableRows` is not implemented")}countRenderableColumns(){tf("`countRenderableColumns` is not implemented")}shouldSwitchSelectionLayer(){tf("`shouldSwitchSelectionLayer` is not implemented")}#nF(){let e=this.#nH+1;this.setActiveLayerIndex(e>=this.#nA.size()?0:e),this.#nO=this.calculateOffset()}#nL(){let e=this.#nH-1;this.setActiveLayerIndex(e<0?this.#nA.size()-1:e),this.#nO=this.calculateOffset()}#nB(e){let{width:t,height:i}=this.#nD(),o=0,r=0;return(e.row??0)<0?(o=-1,e.row=0):(e.row??0)>0&&(e.row??0)>=i&&(o=1,e.row=i-1),(e.col??0)<0?(r=-1,e.col=0):(e.col??0)>0&&(e.col??0)>=t&&(r=1,e.col=t-1),{rowDir:o,colDir:r}}#nD(){return{width:this.#nO.x+this.countRenderableColumns(),height:this.#nO.y+this.countRenderableRows()}}#nN(e){if(!["forward","backward"].includes(e))return null;let t=this.getCurrentSelection().getTopStartCorner(),i=this.getCurrentSelection().getBottomEndCorner(),[o,r,n,s]="forward"===e?[t.row,i.row,t.col,i.col]:[i.row,t.row,i.col,t.col],l=this.#nV(o??0,r??0),a=this.#nz(n??0,s??0);return null===l||null===a?null:this.tableApi.createCellCoords(l,a)}#nV(e,t){let i=this.tableApi.findFirstNonHiddenRenderableRow(e,t);return null===i?null:this.#nO.y+i}#nz(e,t){let i=this.tableApi.findFirstNonHiddenRenderableColumn(e,t);return null===i?null:this.#nO.x+i}#nP(e){let{row:t,col:i}=this.tableApi.visualToRenderableCoords(e);return(null===t||null===i)&&tf("Renderable coords are not visible."),this.tableApi.createCellCoords(this.#nO.y+t,this.#nO.x+i)}#n_(e){let t=e.clone();return t.col=(e.col??0)-this.#nO.x,t.row=(e.row??0)-this.#nO.y,this.tableApi.renderableToVisualCoords(t)}}tR(gQ,dp);class gJ extends gQ{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}}class g0 extends gQ{calculateOffset(){let e=this.getCurrentSelection(),{row:t,col:i}=e.getOuterTopStartCorner(),o=t??0,r=i??0,n=this.tableApi.countRenderableColumnsInRange(0,r-1),s=this.tableApi.countRenderableRowsInRange(0,o-1),l=e.highlight.isHeader(),a=l?Math.abs(r):0,h=l?Math.abs(o):0;return{x:r<0?a:-n,y:o<0?h:-s}}countRenderableRows(){let e=this.getCurrentSelection();return this.tableApi.countRenderableRowsInRange(0,e.getOuterBottomEndCorner().row??0)}countRenderableColumns(){let e=this.getCurrentSelection();return this.tableApi.countRenderableColumnsInRange(0,e.getOuterBottomEndCorner().col??0)}transformEnd(e,t){tf("`transformEnd` is not valid for focus selection use `transformStart` instead")}shouldSwitchSelectionLayer(){return!0}}let g1=[3,2],g2=[["number"],["number","string"],["number","undefined"],["number","string","undefined"]],g3=Symbol("root"),g6=Symbol("child");function g4(e,t=g3){t!==g3&&t!==g6&&tf("The second argument is used internally only and cannot be overwritten.");let i=Array.isArray(e),o=t===g3,r=0;if(i){let t=e[0];0===e.length?r=1:o&&t instanceof l5?r=3:o&&Array.isArray(t)?r=g4(t,g6):e.length>=2&&e.length<=4&&(e.some((e,t)=>!g2[t].includes(typeof e))||(r=2))}return r}function g5(e,{createCellCoords:t,createCellRange:i,keepDirection:o=!1,propToCol:r}={}){return g1.includes(e)||tf("Unsupported selection ranges schema type was provided."),function(n){let s=3===e,l=s?n.from.row:n[0],a=s?n.from.col:n[1],h=s?n.to.row:n[2],d=s?n.to.col:n[3];"function"==typeof r&&("string"==typeof a&&(a=r(a)),"string"==typeof d&&(d=r(d))),eG(h)&&(h=l),eG(d)&&(d=a);let u=a,c=d;if(!o){let e=l,t=h,i=u,o=c;l=Math.min(e??0,t??0),u=Math.min(i??0,o??0),h=Math.max(e??0,t??0),c=Math.max(i??0,o??0)}return i(s?n.highlight.clone():t(l??0,u??0),t(l??0,u??0),t(h??0,c??0))}}function g8(e,t,i){let o=!1,r=!0;for(;r;){r=!1;let n=g7(e);for(let o=0;o<t.length;o+=1)(function(e,t){let i=t.row+t.rowspan-1,o=t.col+t.colspan-1,r=t.row<=e.bottom&&i>=e.top&&t.col<=e.end&&o>=e.start,n=t.row>=e.top&&i<=e.bottom&&t.col>=e.start&&o<=e.end;return r&&!n})(n,t[o])&&e.expandByRange(t[o].getRange(),i)&&(r=!0,n=g7(e));o=o||r}return o}function g7(e){let t=e.getOuterTopStartCorner(),i=e.getOuterBottomEndCorner();return{top:t.row??0,bottom:i.row??0,start:t.col??0,end:i.col??0}}function g9(e,t,i,o,r){let{row:n,col:s}=t.getTopStartCorner(),{row:l,col:a}=t.getBottomEndCorner(),h="row"===i,d=(h?n:s)??0,u=(h?l:a)??0,c=h?(a??0)-(s??0)+1:(l??0)-(n??0)+1,g=e=>1===o?e>=r:e<=r,p=function(e,t,i,o){let{row:r,col:n}=t.getTopStartCorner(),{row:s,col:l}=t.getBottomEndCorner(),a=r??0,h=n??0,d=s??0,u=l??0,c="row"===i,g=c?a:h,p=c?d:u,m=c?h:a,f=c?u:d,w=new Map;for(let t=0;t<e.length;t++){let i=e[t],r=c?i.row:i.col,n=r+(c?i.rowspan:i.colspan)-1,s=c?i.col:i.row,l=s+(c?i.colspan:i.rowspan)-1;if(n<g||r>p||l<m||s>f)continue;let a=1===o?n:r,h=Math.min(l,f)-Math.max(s,m)+1,d=Math.max(r,g),u=Math.min(n,p);for(let e=d;e<=u;e++){let t=w.get(e);t||(t={extents:new Set,coveredCells:0},w.set(e,t)),t.extents.add(a),t.coveredCells+=h}}return w}(e,t,i,o),m=Array.from(p.keys()).sort((e,t)=>(e-t)*o),f=null,w=0;for(let e=0;e<m.length;e++){let t=m[e],{extents:i,coveredCells:o}=p.get(t);if(o<c&&i.add(t),1===i.size){let e=i.values().next().value;if(g(e)){f=t,w=e;break}}}let b=1===o?Math.max(d,r):Math.min(u,r);for(;b>=d&&b<=u&&p.has(b);)b+=o;let C=b>=d&&b<=u;return null===f?C?b:r:!C||(f-b)*o<=0?w:b}class pe{#nW=[];#n$=null;#nU=null;#nG;#nj;#nq;constructor({blockGetter:e,rowIndexMapper:t,columnIndexMapper:i}){this.#nG=e,this.#nj=t,this.#nq=i}getCurrentVerticalNode(){return this.#nU??void 0}getFirstVerticalNode(){return this.#nK("vertical")}getNextVerticalNode(){return this.#nY(this.#nU,"vertical",1)}getPrevVerticalNode(){return this.#nY(this.#nU,"vertical",-1)}getCurrentHorizontalNode(){return this.#n$??void 0}getFirstHorizontalNode(){return this.#nK("horizontal")}getNextHorizontalNode(){return this.#nY(this.#n$,"horizontal",1)}getPrevHorizontalNode(){return this.#nY(this.#n$,"horizontal",-1)}getNodeAnchor(e){return this.#nX(e)}setPrevNodeAsActive(){this.#nU&&(this.#nU=this.#nZ(this.#nU,"vertical",-1)),this.#n$&&(this.#n$=this.#nZ(this.#n$,"horizontal",-1))}setNextNodeAsActive(){this.#nU&&(this.#nU=this.#nZ(this.#nU,"vertical",1)),this.#n$&&(this.#n$=this.#nZ(this.#n$,"horizontal",1))}buildFocusOrder(e){this.#nW=e.map(e=>{let t=e.getTopStartCorner(),i=e.getBottomEndCorner(),o=e.highlight.clone().normalize();return{rowFrom:t.row??0,rowTo:i.row??0,colFrom:t.col??0,colTo:i.col??0,highlightRow:o.row??0,highlightCol:o.col??0}});let t=null;for(let e=0;e<this.#nW.length;e++){let{highlightRow:i,highlightCol:o}=this.#nW[e],r=this.#nQ(e,i,o);r&&(t=r)}this.#n$=t,this.#nU=t}setActiveNode(e,t,i){if(void 0===i)return this;let o=this.#nQ(i,e,t);return o&&(this.#n$=o,this.#nU=o),this}#nQ(e,t,i){let o=this.#nW[e];if(!o)return null;let r=this.#nG(t,i);return r?this.#nJ(e,r):t<o.rowFrom||t>o.rowTo||i<o.colFrom||i>o.colTo||this.#nj.isHidden(t)||this.#nq.isHidden(i)?null:{selectionLayer:e,rowStart:t,rowEnd:t,colStart:i,colEnd:i}}#nJ(e,t){let i=this.#nW[e],o=t.row,r=t.row+t.rowspan-1,n=t.col,s=t.col+t.colspan-1;return o<i.rowFrom||r>i.rowTo||n<i.colFrom||s>i.colTo||null===this.#n0(o,r,n,s)?null:{selectionLayer:e,rowStart:o,rowEnd:r,colStart:n,colEnd:s}}#n0(e,t,i,o){let r=this.#nj.getNearestNotHiddenIndex(e,1),n=this.#nq.getNearestNotHiddenIndex(i,1);return null===r||r>t||null===n||n>o?null:{row:r,column:n}}#nX(e){return this.#n0(e.rowStart,e.rowEnd,e.colStart,e.colEnd)??{row:e.rowStart,column:e.colStart}}#nY(e,t,i){if(e)return this.#nZ(e,t,i)??void 0}#nZ(e,t,i){let o=this.#nW.length;if(0===o)return null;let r=this.#nW[e.selectionLayer]?e.selectionLayer:0,n=this.#n1(r,this.#nX(e),t,i);for(let e=1;null===n&&e<=o;e++){let s=((r+e*i)%o+o)%o;n=this.#n1(s,null,t,i)}return n}#nK(e){for(let t=0;t<this.#nW.length;t++){let i=this.#n1(t,null,e,1);if(i)return i}}#n1(e,t,i,o){let r=this.#nW[e];if(!r)return null;let n=null===t?this.#n2(r,o):this.#n3(r,t,i,o);for(;null!==n;){let t=this.#nG(n.row,n.column);if(!t)return{selectionLayer:e,rowStart:n.row,rowEnd:n.row,colStart:n.column,colEnd:n.column};let s=this.#nJ(e,t);if(s&&this.#n6(s,n,i,o))return s;n=this.#n4(r,n,t,i,o)}return null}#n6(e,t,i,o){let r=this.#n0(e.rowStart,e.rowEnd,e.colStart,e.colEnd);return null!==r&&(1===o?r.row===t.row&&r.column===t.column:"horizontal"===i?r.row===t.row:r.column===t.column)}#n4(e,t,i,o,r){if("horizontal"===o){let n=1===r?Math.min(i.col+i.colspan-1,e.colTo):Math.max(i.col,e.colFrom);return this.#n3(e,{row:t.row,column:n},o,r)}let n=1===r?Math.min(i.row+i.rowspan-1,e.rowTo):Math.max(i.row,e.rowFrom);return this.#n3(e,{row:n,column:t.column},o,r)}#n2(e,t){let i=1===t?this.#nj.getNearestNotHiddenIndex(e.rowFrom,1):this.#nj.getNearestNotHiddenIndex(e.rowTo,-1),o=1===t?this.#nq.getNearestNotHiddenIndex(e.colFrom,1):this.#nq.getNearestNotHiddenIndex(e.colTo,-1);return null===i||i<e.rowFrom||i>e.rowTo||null===o||o<e.colFrom||o>e.colTo?null:{row:i,column:o}}#n3(e,t,i,o){if("horizontal"===i){let i=this.#nq.getNearestNotHiddenIndex(t.column+o,o);if(null!==i&&i>=e.colFrom&&i<=e.colTo)return{row:t.row,column:i};let r=this.#nj.getNearestNotHiddenIndex(t.row+o,o),n=1===o?this.#nq.getNearestNotHiddenIndex(e.colFrom,1):this.#nq.getNearestNotHiddenIndex(e.colTo,-1);return null===r||r<e.rowFrom||r>e.rowTo||null===n||n<e.colFrom||n>e.colTo?null:{row:r,column:n}}let r=this.#nj.getNearestNotHiddenIndex(t.row+o,o);if(null!==r&&r>=e.rowFrom&&r<=e.rowTo)return{row:r,column:t.column};let n=this.#nq.getNearestNotHiddenIndex(t.column+o,o),s=1===o?this.#nj.getNearestNotHiddenIndex(e.rowFrom,1):this.#nj.getNearestNotHiddenIndex(e.rowTo,-1);return null===n||n<e.colFrom||n>e.colTo||null===s||s<e.rowFrom||s>e.rowTo?null:{row:s,column:n}}}function pt(e){return"object"==typeof e&&null!==e&&Number.isInteger(e.row)&&Number.isInteger(e.col)}function pi(e,t,i){if(!i||t<0)return t;let o=e.getNearestNotHiddenIndex(t,1,!0);return null===o?t:o}let po=new Set;class pr{settings;tableProps;inProgress=!1;selectedRange=new gZ((e,t,i)=>this.tableProps.createCellRange(e,t,i));highlight;#n5;#n8;selectedByRowHeader=new Set;selectedByColumnHeader=new Set;#n7=!1;#n9=!1;#se="unknown";#st=!1;#si=-1;#so=0;#sr={row:[],column:[]};#sn={row:[],column:[]};#ss={row:new Set,column:new Set};#sl=0;#sa=null;#sh=null;#sd=null;#t1=!1;#su=null;#sc=new Set;#sg=new Set;#sp=[];#sm=0;#sf=[];#sw=[];#sb=null;#sC=null;#sy;#sS=null;constructor(e,t){this.settings=e,this.tableProps=t,this.highlight=new gX({headerClassName:e.currentHeaderClassName,activeHeaderClassName:e.activeHeaderClassName,rowClassName:e.currentRowClassName,columnClassName:e.currentColClassName,cellAttributes:[Y()],rowIndexMapper:this.tableProps.rowIndexMapper,columnIndexMapper:this.tableProps.columnIndexMapper,disabledCellSelection:(e,t)=>this.tableProps.isDisabledCellSelection(e,t),cellCornerVisible:()=>this.isCellCornerVisible(),areaCornerVisible:e=>this.isAreaCornerVisible(e),adjustHandlesVisible:e=>this.isAdjustHandlesVisibleFor(e),moveEnabled:()=>this.isRangeMovable(),cellMoveEnabled:()=>this.isSingleCellMovable(),visualToRenderableCoords:e=>this.tableProps.visualToRenderableCoords(e),renderableToVisualCoords:e=>this.tableProps.renderableToVisualCoords(e),createCellCoords:(e,t)=>this.tableProps.createCellCoords(e,t),createCellRange:(e,t,i)=>this.tableProps.createCellRange(e,t,i)}),this.#n5=new gJ(this.selectedRange,{...this.tableProps,navigableHeaders:()=>!!e.navigableHeaders,fixedRowsBottom:()=>Number(e.fixedRowsBottom),fixedColumnsEnd:()=>Math.max(Math.floor(Number(e.fixedColumnsEnd))||0,0),minSpareRows:()=>Number(e.minSpareRows),minSpareCols:()=>Number(e.minSpareCols),autoWrapRow:()=>!!e.autoWrapRow,autoWrapCol:()=>!!e.autoWrapCol}),this.#n8=new g0(this.selectedRange,{...this.tableProps,navigableHeaders:()=>!!e.navigableHeaders,fixedRowsBottom:()=>0,fixedColumnsEnd:()=>0,minSpareRows:()=>0,minSpareCols:()=>0,autoWrapRow:()=>!0,autoWrapCol:()=>!0}),this.#n5.addLocalHook("beforeTransformStart",e=>{this.#sv(e),this.runLocalHooks("beforeModifyTransformStart",e)}),this.#n5.addLocalHook("afterTransformStart",(...e)=>this.runLocalHooks("afterModifyTransformStart",...e)),this.#n5.addLocalHook("beforeTransformEnd",e=>{this.#sR(e),this.runLocalHooks("beforeModifyTransformEnd",e)}),this.#n5.addLocalHook("afterTransformEnd",(...e)=>this.runLocalHooks("afterModifyTransformEnd",...e)),this.#n5.addLocalHook("insertRowRequire",(...e)=>this.runLocalHooks("insertRowRequire",...e)),this.#n5.addLocalHook("insertColRequire",(...e)=>this.runLocalHooks("insertColRequire",...e)),this.#n5.addLocalHook("beforeRowWrap",(...e)=>this.runLocalHooks("beforeRowWrap",...e)),this.#n5.addLocalHook("beforeColumnWrap",(...e)=>this.runLocalHooks("beforeColumnWrap",...e)),this.#n8.addLocalHook("beforeTransformStart",e=>{this.runLocalHooks("beforeModifyTransformFocus",e),this.#sS={row:e.row??0,col:e.col??0}}),this.#n8.addLocalHook("afterTransformStart",(...e)=>this.runLocalHooks("afterModifyTransformFocus",...e)),this.#sy=new pe({blockGetter:(e,t)=>this.#sb?.getBlockAt(e,t)??null,rowIndexMapper:this.tableProps.rowIndexMapper,columnIndexMapper:this.tableProps.columnIndexMapper})}updateHighlightClassNames(){this.highlight.updateHighlightClassNames({rowClassName:this.settings.currentRowClassName,columnClassName:this.settings.currentColClassName,headerClassName:this.settings.currentHeaderClassName,activeHeaderClassName:this.settings.activeHeaderClassName})}getSelectedRange(){return this.selectedRange}getActiveSelectedRange(){return this.selectedRange.peekByIndex(this.#so)}getActiveSelectionLayerIndex(){return this.#so}setActiveSelectionLayerIndex(e){this.#so=e}markSource(e){this.#se=e,this.#st=!1}markTabNavigation(){this.#st=!0}isDuringTabNavigation(){return this.#st}markEndSource(){this.#se="unknown",this.#st=!1}getSelectionSource(){return this.#se}setExpectedLayers(e){this.#si=e}begin(){this.inProgress=!0}destroy(){this.#t1=!0}finish(){this.runLocalHooks("afterSelectionFinished",Array.from(this.selectedRange)),this.inProgress=!1,this.#si=-1}isInProgress(){return this.inProgress}setRangeStart(e,t,i=!1,o=e){let r="multiple"===this.settings.selectionMode,n=eG(t)?this.tableProps.getShortcutManager().isCtrlPressed():t,s=e.clone();this.#sx(),this.#n9=!1,this.#n7=!1,this.#sC=null,this.runLocalHooks(`beforeSetRangeStart${i?"Only":""}`,s),(!r||r&&!n&&eG(t))&&(this.selectedRange.clear(),this.highlight.getAreas().forEach(e=>e.clear()),this.highlight.getLayeredAreas().forEach(e=>e.clear()),this.highlight.getRowHeaders().forEach(e=>e.clear()),this.highlight.getColumnHeaders().forEach(e=>e.clear()),this.highlight.getActiveRowHeaders().forEach(e=>e.clear()),this.highlight.getActiveColumnHeaders().forEach(e=>e.clear()),this.highlight.getActiveCornerHeaders().forEach(e=>e.clear()),this.highlight.getRowHighlights().forEach(e=>e.clear()),this.highlight.getColumnHighlights().forEach(e=>e.clear())),this.selectedRange.add(s).current()?.setHighlight(o.clone()),0===this.getLayerLevel()&&(this.selectedByRowHeader.clear(),this.selectedByColumnHeader.clear(),this.#sc.clear(),this.#sg.clear()),this.#sE(),i||this.setRangeEnd(e)}setRangeStartOnly(e,t,i=e){this.setRangeStart(e,t,!0,i)}setRangeEnd(e,t=this.getLayerLevel()){if(this.selectedRange.isEmpty())return;this.setActiveSelectionLayerIndex(t);let i=e.clone(),o=this.tableProps.countRows(),r=this.tableProps.countCols(),n=this.getActiveSelectedRange()?.clone().setTo(e).isSingleHeader();if((o>0||r>0)&&(0===o&&(i.col??0)<0&&!n||0===r&&(i.row??0)<0&&!n))return;this.runLocalHooks("beforeSetRangeEnd",i),this.begin();let s=this.getActiveSelectedRange();if(!s)return;if(this.settings.navigableHeaders||s.highlight.normalize(),"single"===this.settings.selectionMode)s.setFrom(s.highlight),s.setTo(s.highlight);else{let e=s.getHorizontalDirection(),t=s.getVerticalDirection(),o=this.isMultiple();s.setTo(i),o&&(e!==s.getHorizontalDirection()||1===s.getWidth()&&!s.includes(s.highlight))&&s.from.assign({col:s.highlight.col??void 0}),o&&(t!==s.getVerticalDirection()||1===s.getHeight()&&!s.includes(s.highlight))&&s.from.assign({row:s.highlight.row??void 0})}o>0&&r>0&&(!this.settings.navigableHeaders||this.settings.navigableHeaders&&!s.isSingleHeader())&&s.to.normalize(),this.#sM(s),this.runLocalHooks("beforeHighlightSet"),this.setRangeFocus(this.getActiveSelectedRange()?.highlight??s.highlight,t),this.applyAndCommit(this.getActiveSelectedRange()??s,t);let l=-1===this.#si||this.selectedRange.size()===this.#si;this.runLocalHooks("afterSetRangeEnd",e,l)}applyAndCommit(e=this.getActiveSelectedRange(),t=this.getLayerLevel()){if(!e)return;let i=this.tableProps.countRows(),o=this.tableProps.countCols();this.highlight.useLayerLevel(t);let r=this.highlight.createArea(),n=this.highlight.createLayeredArea(),s=this.highlight.createRowHeader(),l=this.highlight.createColumnHeader(),a=this.highlight.createActiveRowHeader(),h=this.highlight.createActiveColumnHeader(),d=this.highlight.createActiveCornerHeader(),u=this.highlight.createRowHighlight(),c=this.highlight.createColumnHighlight();r?.clear(),n?.clear(),s?.clear(),l?.clear(),a?.clear(),h?.clear(),d?.clear(),u?.clear(),c?.clear();let g=this.highlight.isEnabledFor("focus",e.highlight),p=this.highlight.isEnabledFor("area",e.highlight),m=this.highlight.isEnabledFor("header",e.highlight);if(p&&(this.isMultiple(e)||t>=1)&&(r?.add(e.from).add(e.to).commit(),n?.add(e.from).add(e.to).commit(),1===t)){let e=this.selectedRange.peekByIndex(t-1);e&&(this.highlight.useLayerLevel(t-1),this.highlight.createArea()?.add(e.from).commit().syncWith(e),this.highlight.createLayeredArea()?.add(e.from).commit().syncWith(e),this.highlight.useLayerLevel(t))}(g||p||m)&&this.#sk(e,u,c),m&&this.#sI(e,t,i,o,s,l,a,h,d)}#sk(e,t,i){if(e.isSingleHeader())return;let{rowCoordsFrom:o,rowCoordsTo:r,columnCoordsFrom:n,columnCoordsTo:s}=this.#sT(e,!0);t?.add(o).add(r).commit(),i?.add(n).add(s).commit()}#sT(e,t){let i=t?Math.min(-this.tableProps.countRowHeaders(),-1):-1,o=t?Math.min(-this.tableProps.countColHeaders(),-1):-1;return{rowCoordsFrom:this.tableProps.createCellCoords(Math.max(e.from.row??0,0),i),rowCoordsTo:this.tableProps.createCellCoords(e.to.row??0,-1),columnCoordsFrom:this.tableProps.createCellCoords(o,Math.max(e.from.col??0,0)),columnCoordsTo:this.tableProps.createCellCoords(-1,e.to.col??0)}}#sI(e,t,i,o,r,n,s,l,a){if(!e.isSingleHeader()){let{rowCoordsFrom:t,rowCoordsTo:i,columnCoordsFrom:o,columnCoordsTo:s}=this.#sT(e,!1);"single"===this.settings.selectionMode?(r?.add(t).commit(),n?.add(o).commit()):(r?.add(t).add(i).commit(),n?.add(o).add(s).commit())}let h=!this.#n9&&this.isEntireRowSelected(t)&&(o>0&&o===e.getWidth()||0===o&&this.isSelectedByRowHeader(t)),d=!this.#n9&&this.isEntireColumnSelected(t)&&(i>0&&i===e.getHeight()||0===i&&this.isSelectedByColumnHeader(t));h&&s?.add(this.tableProps.createCellCoords(Math.max(e.from.row??0,0),Math.min(-this.tableProps.countRowHeaders(),-1))).add(this.tableProps.createCellCoords(Math.max(e.to.row??0,0),-1)).commit(),d&&l?.add(this.tableProps.createCellCoords(Math.min(-this.tableProps.countColHeaders(),-1),Math.max(e.from.col??0,0))).add(this.tableProps.createCellCoords(-1,Math.max(e.to.col??0,0))).commit(),h&&d&&a?.add(this.tableProps.createCellCoords(-this.tableProps.countColHeaders(),-this.tableProps.countRowHeaders())).add(this.tableProps.createCellCoords(-1,-1)).commit()}setRangeFocus(e,t=this.getLayerLevel()){this.#sA(e,t,null)}#sA(e,t,i){if(this.selectedRange.isEmpty())return;this.setActiveSelectionLayerIndex(t),this.#n5.setActiveLayerIndex(t),this.#n8.setActiveLayerIndex(t);let o=this.getActiveSelectedRange();if(this.inProgress||this.runLocalHooks("beforeSetFocus",e),!o)return;let r=this.highlight.getFocus();r.clear(),o.setHighlight(e),this.inProgress||(this.#sM(o,i),this.runLocalHooks("beforeHighlightSet")),this.highlight.isEnabledFor("focus",o.highlight)&&r.add(o.highlight).commit().syncWith(o),this.inProgress||(this.#n7=!0,this.runLocalHooks("afterSetFocus",o.highlight)),this.#sE()}transformStart(e,t,i=!1){if(!this.isSelected())return;let{visualCoords:o}=this.#n5.transformStart(e,t,i);this.setRangeStart(o,void 0,!1,o)}transformEnd(e,t){if(!this.isSelected())return;let{visualCoords:i,selectionLayer:o}=this.#n5.transformEnd(e,t);this.setRangeEnd(i,o)}transformFocus(e,t){if(!this.isSelected())return;this.#sS=null;let{selectionLayer:i,visualCoords:o}=this.#n8.transformStart(e,t),r=this.#sH(o,i);r?this.#sA(r.coords,r.layerIndex,r.entry):this.setRangeFocus(o.normalize(),i)}suspendShifts(e=!0){this.#sp.push({sequence:null,ownsIndexChange:e})}resumeShifts(e=!0){if(this.#sp.pop(),!(this.#sp.length>0))if(e){try{this.#sO()}catch(e){throw this.#sD(),e}this.#sP()}else this.#sx(),this.#sD()}flushHeldShifts(){this.#s_()||this.#sO()}#sx(){this.#sf.length=0,this.#sw.length=0}#sO(){if(0===this.#sf.length&&0===this.#sw.length)return;let e=this.#sF(this.#sf),t=this.#sF(this.#sw);this.#sf=[],this.#sw=[],this.#sN(e),this.#sL(t)}markStructuralIndexChange(){let e=this.#sp[this.#sp.length-1];e&&e.ownsIndexChange&&(this.#sm+=1,e.sequence=this.#sm)}#sB(){let e=this.#sp[this.#sp.length-1];return e?(null===e.sequence&&(this.#sm+=1,e.sequence=this.#sm),e.sequence):0}#s_(){for(let e=0;e<this.#sp.length-1;e++)if(null!==this.#sp[e].sequence)return!0;return!1}#sF(e){return e.slice().sort((e,t)=>e.sequence-t.sequence).map(({index:e,amount:t})=>[e,t])}shiftRows(e,t){!this.isSelected()||(this.#sf.push({sequence:this.#sB(),index:e,amount:t}),this.#s_()||this.#sO())}#sN(e){if(0===e.length||!this.isSelected())return;let t=this.getActiveSelectedRange();if(this.isSelectedByCorner())return void this.selectAll(!0,!0,{disableHeadersHighlight:!0});if(!t)return;let{from:i,to:o,highlight:r}=t,n=this.isSelectedByRowHeader(),s=this.isSelectedByColumnHeader(),l=i.row??0,a=o.row??0,h=r.row??0,d=t.getOuterTopStartCorner().row??0,u=!1,c=!1;if(e.forEach(([e,t])=>{if(!s&&d<e)return;let i=s?0:t;u=!0,l+=i,d+=i,a+=t,h>=e&&(c=!0,h+=t)}),!u)return;let g=this.tableProps.countRows(),p=s?-1:0,m=i.row===o.row,f=e=>pi(this.tableProps.rowIndexMapper,e,m),w=new Set(this.#sc),b=new Set(this.#sg);this.getSelectedRange().pop();let C=this.tableProps.createCellCoords(f(nB(l,p,g-1)),i.col??0),y=this.tableProps.createCellCoords(f(nB(a,p,g-1)),o.col??0);this.markSource("shift"),c?this.setRangeStartOnly(C,!0,this.tableProps.createCellCoords(f(nB(h,0,g-1)),r.col??0)):this.setRangeStartOnly(C,!0),n&&this.selectedByRowHeader.add(this.getLayerLevel()),s&&this.selectedByColumnHeader.add(this.getLayerLevel()),this.#sc=w,this.#sg=b,this.setRangeEnd(y),this.markEndSource()}shiftColumns(e,t){!this.isSelected()||(this.#sw.push({sequence:this.#sB(),index:e,amount:t}),this.#s_()||this.#sO())}#sL(e){if(0===e.length||!this.isSelected())return;let t=this.getActiveSelectedRange();if(this.isSelectedByCorner())return void this.selectAll(!0,!0,{disableHeadersHighlight:!0});if(!t)return;let{from:i,to:o,highlight:r}=t,n=this.isSelectedByRowHeader(),s=this.isSelectedByColumnHeader(),l=i.col??0,a=o.col??0,h=r.col??0,d=t.getOuterTopStartCorner().col??0,u=!1,c=!1;if(e.forEach(([e,t])=>{if(!n&&d<e)return;let i=n?0:t;u=!0,l+=i,d+=i,a+=t,h>=e&&(c=!0,h+=t)}),!u)return;let g=this.tableProps.countCols(),p=n?-1:0,m=i.col===o.col,f=e=>pi(this.tableProps.columnIndexMapper,e,m),w=new Set(this.#sc),b=new Set(this.#sg);this.getSelectedRange().pop();let C=this.tableProps.createCellCoords(i.row??0,f(nB(l,p,g-1))),y=this.tableProps.createCellCoords(o.row??0,f(nB(a,p,g-1)));this.markSource("shift"),c?this.setRangeStartOnly(C,!0,this.tableProps.createCellCoords(r.row??0,f(nB(h,0,g-1)))):this.setRangeStartOnly(C,!0),n&&this.selectedByRowHeader.add(this.getLayerLevel()),s&&this.selectedByColumnHeader.add(this.getLayerLevel()),this.#sc=w,this.#sg=b,this.setRangeEnd(y),this.markEndSource()}getLayerLevel(){return this.selectedRange.size()-1}isSelected(){return!this.selectedRange.isEmpty()}isMultiple(e=this.getActiveSelectedRange()){if(!this.isSelected()||!e)return!1;let t=tP(!e.isSingle()&&!this.#sV(e));return this.runLocalHooks("afterIsMultipleSelection",t),t.value}setCellBlockProvider(e){this.#sb=e}#sV(e){if(null===this.#sb)return!1;let{row:t,col:i}=e.getTopStartCorner(),o=null===t||null===i?null:this.#sb.getBlockAt(t,i);return null!==o&&function(e,t){let i=e.getTopStartCorner(),o=e.getBottomEndCorner();for(let e=0;e<t.length;e+=1){let{row:r,col:n,rowspan:s,colspan:l}=t[e];if(i.row===r&&i.col===n&&o.row===r+s-1&&o.col===n+l-1)return!0}return!1}(e,[o])}#sM(e,t=null){if(null===this.#sb)return;let{highlight:i}=e;if(this.#sz()){this.#sC=t??i.clone();return}if(g8(e,this.#sb.getBlocks(),!1),null===i.row||null===i.col)return;let o=this.#sb.getBlockAt(i.row,i.col);this.#sC=t??i.clone(),null!==o&&null===t&&i.assign({row:o.row,col:o.col})}#sz(){let e=this.getActiveSelectionLayerIndex();return this.isSelectedByColumnHeader(e)||this.isSelectedByRowHeader(e)}#sv(e){let t=this.#sb,i=this.getActiveSelectedRange();if(null===t||!i)return;let{highlight:o}=i;if(this.#sW(o),null===o.row||null===o.col)return;let r=t.getBlockAt(o.row,o.col);if(null===r)return;let n=this.#s$("col",e,o,r);if(0===e.row&&n&&!this.isDuringTabNavigation()){let e=this.tableProps.rowIndexMapper.getNearestNotHiddenIndex(r.row,1);null!==e&&e<=r.row+r.rowspan-1&&(o.row=e)}this.#s$("row",e,o,r)}#sR(e){let t=this.#sb,i=this.getActiveSelectedRange();if(null===t||!i||this.#sz())return;let o=t.getBlocks(),r=i.clone();this.#sU("col",e,i,r,o),this.#sU("row",e,i,r,o)}#sU(e,t,i,o,r){let n=t[e]??0;if(0===n)return;let s=n<0?-1:1,l=i.to[e]??0,a=g9(r,i,e,s,l)+n,h=this.tableProps.createCellCoords(i.to.row??0,i.to.col??0);h[e]=a,o.expand(h),g8(o,r,!0);let[d,u]="row"===e?["S-N","N-S"]:["E-W","W-E"],c=this.#sG(i,e),g=this.#sG(o,e);s<0&&c===d&&g===d?a=o.getTopStartCorner()[e]??a:s>0&&c===u&&g===u&&(a=o.getBottomEndCorner()[e]??a);let p=this.#sj(e).getNearestNotHiddenIndex(a,s<0?1:-1);null!==p&&(t[e]=s<0?-Math.max(this.#sq(e,p,l)-1,1):Math.max(this.#sq(e,l,p)-1,1))}#sj(e){return"row"===e?this.tableProps.rowIndexMapper:this.tableProps.columnIndexMapper}#sq(e,t,i){return"row"===e?this.tableProps.countRenderableRowsInRange(t,i):this.tableProps.countRenderableColumnsInRange(t,i)}#sG(e,t){return"row"===t?e.getVerticalDirection():e.getHorizontalDirection()}#sH(e,t){let i=this.#sS,o=this.getActiveSelectedRange();if(this.#sS=null,null===this.#sb||null===i||!o||0===i.row&&0===i.col)return null;let r=this.#sK(o,i);if(!r)return null;let{selectionLayer:n,rowStart:s,rowEnd:l,colStart:a,colEnd:h}=r,{row:d,column:u}=this.#sy.getNodeAnchor(r),c=this.tableProps.createCellCoords(d,u);return{coords:c,entry:n===t&&null!==e.row&&null!==e.col&&e.row>=s&&e.row<=l&&e.col>=a&&e.col<=h?e.clone():c.clone(),layerIndex:n}}#sK(e,t){let i=this.#sy,o=e.highlight.clone().normalize();return(i.buildFocusOrder(Array.from(this.selectedRange)),null!==o.row&&null!==o.col&&i.setActiveNode(o.row,o.col,this.getActiveSelectionLayerIndex()),!e.highlight.isCell()&&(t.row>0||t.col>0?i.setPrevNodeAsActive():("E-W"===e.getHorizontalDirection()&&t.col<0||"S-N"===e.getVerticalDirection()&&t.row<0)&&i.setNextNodeAsActive()),0!==t.col)?t.col<0?i.getPrevHorizontalNode():i.getNextHorizontalNode():t.row<0?i.getPrevVerticalNode():i.getNextVerticalNode()}#sW(e){let t=this.#sC;if(null===t)return;let{rowIndexMapper:i,columnIndexMapper:o}=this.tableProps;null!==t.row&&null!==i.getRenderableFromVisualIndex(t.row)&&(e.row=t.row),null!==t.col&&null!==o.getRenderableFromVisualIndex(t.col)&&(e.col=t.col),this.#sC=null}#s$(e,t,i,o){let r=t[e]??0,n=i[e]??0;if(0===r)return!1;let s="row"===e,l=this.#sj(e),a=s?o.row:o.col,h=a+(s?o.rowspan:o.colspan)-1,d=n>=a&&n<=h;if(r<0){let i=l.getNearestNotHiddenIndex(d?a-1:h,-1);return t[e]=null===i?-this.#sq(e,0,n):-Math.max(this.#sq(e,i,n)-1,1),null!==i}let u=l.getNearestNotHiddenIndex(d?h+1:a,1),c=s?this.tableProps.countRows():this.tableProps.countCols();return t[e]=null===u?this.#sq(e,n,c):Math.max(this.#sq(e,n,u)-1,1),null!==u}#sE(){let e=this.getActiveSelectedRange()?.highlight;if(!e){this.#sd=null,this.#su=null;return}let{row:t,col:i}=e;this.#sd=null===t||t<0?null:this.tableProps.rowIndexMapper.getPhysicalFromVisualIndex(t),this.#su=null===i||i<0?null:this.tableProps.columnIndexMapper.getPhysicalFromVisualIndex(i)}#sY(e,t){return null!==e&&!(e<0)&&0!==t&&e>t-1}#sX(e,t,i,o){return null!==e&&!(e<0)&&0!==o&&null!==t&&null===i.getVisualFromPhysicalIndex(t)}#sZ(){return!(!0!==this.settings.moveCells||this.settings.disableVisualSelection||this.tableProps.isEditorOpened())&&!!this.tableProps.isPluginEnabled("moveCells")&&function({rangeCount:e,isEntireRow:t,isEntireColumn:i,isHeader:o}){return 1===e&&!t&&!i&&!o}({rangeCount:this.getSelectedRange().size(),isEntireRow:this.isEntireRowSelected(),isEntireColumn:this.isEntireColumnSelected(),isHeader:this.isSelectedByRowHeader()||this.isSelectedByColumnHeader()})}isRangeMovable(){let e=this.getActiveSelectedRange();return this.#sZ()&&!!e&&!e.isSingle()}isSingleCellMovable(){let e=this.getActiveSelectedRange();return this.#sZ()&&!!e&&e.isSingle()}isFocusSelectionChanged(){return this.isSelected()&&this.#n7}isSelectedByRowHeader(e=this.getLayerLevel()){return!this.isSelectedByCorner()&&(-1===e?this.selectedByRowHeader.size>0:this.selectedByRowHeader.has(e))}isEntireRowSelected(e=this.getLayerLevel()){let t=e=>{let{col:t}=e.getOuterTopStartCorner(),i=this.tableProps.countRowHeaders(),o=this.tableProps.countCols();return(i>0&&(t??0)<0||0===i)&&e.getWidth()===o};if(-1===e)return Array.from(this.selectedRange).some(e=>t(e));let i=this.selectedRange.peekByIndex(e);return!!i&&t(i)}isSelectedByColumnHeader(e=this.getLayerLevel()){return!this.isSelectedByCorner()&&(-1===e?this.selectedByColumnHeader.size>0:this.selectedByColumnHeader.has(e))}isEntireColumnSelected(e=this.getLayerLevel()){let t=e=>{let{row:t}=e.getOuterTopStartCorner(),i=this.tableProps.countColHeaders(),o=this.tableProps.countRows();return(i>0&&(t??0)<0||0===i)&&e.getHeight()===o};if(-1===e)return Array.from(this.selectedRange).some(e=>t(e));let i=this.selectedRange.peekByIndex(e);return!!i&&t(i)}isSelectedByAnyHeader(){return this.isSelectedByRowHeader(-1)||this.isSelectedByColumnHeader(-1)||this.isSelectedByCorner()}isSelectedByCorner(){return this.selectedByColumnHeader.has(this.getLayerLevel())&&this.selectedByRowHeader.has(this.getLayerLevel())}inInSelection(e){return this.selectedRange.includes(e)}getLayerContaining(e){if(this.selectedRange.isEmpty())return null;for(let t=this.selectedRange.size()-1;t>=0;t--)if(this.selectedRange.peekByIndex(t)?.includes(e))return t;return null}isCellCornerVisible(){return this.#sQ()&&!this.isMultiple()}isCellVisible(e){let t=this.tableProps.visualToRenderableCoords(e);return null!==t.row&&null!==t.col}isAreaCornerVisible(e){return(!Number.isInteger(e)||e===this.getLayerLevel())&&this.#sQ()&&this.isMultiple()}#sQ(){return!(!this.settings.fillHandle||this.tableProps.isEditorOpened()||this.#sJ())&&(!this.tableProps.isPluginRegistered("autofill")||this.tableProps.isPluginEnabled("autofill"))}#sJ(){return this.selectedRange.size()>1}isAdjustHandlesVisibleFor(e){return!(!0!==this.settings.selectionHandles||this.tableProps.isEditorOpened()||!this.tableProps.isPluginEnabled("selectionHandles")||"single"===this.settings.selectionMode||this.#sh!==e||this.isEntireRowSelected(e)||this.isEntireColumnSelected(e))}getHandlesHoveredLayer(){return this.#sh}setHandlesHoveredLayer(e){this.#sh!==e&&(this.#sh=e,this.runLocalHooks("afterSetHandlesHoveredLayer",e))}clear(){this.selectedRange.clear(),this.highlight.clear(),this.#sd=null,this.#su=null,this.#sc.clear(),this.#sg.clear()}recaptureHighlightRecord(){this.#sE()}deselectIfHighlightStranded({unresolvableOnly:e=!1}={}){if(!this.isSelected())return!1;let t=this.getActiveSelectedRange();if(!t)return!1;let{highlight:i,from:o,to:r}=t,{row:n,col:s}=i,l=this.tableProps.rowIndexMapper.getNotTrimmedIndexesLength()-1,a=this.tableProps.columnIndexMapper.getNotTrimmedIndexesLength()-1,h=this.#sY(n,l+1)||this.#sY(o.row,l+1)||this.#sY(r.row,l+1),d=this.#sY(s,a+1)||this.#sY(o.col,a+1)||this.#sY(r.col,a+1);if(h||d){let e=this.getActiveSelectionLayerIndex(),t=this.#sc.has(e),i=this.#sg.has(e);return h&&!t||d&&!i?(this.deselect(),!0):(this.#s0(),!1)}return!e&&!!(this.#sX(n,this.#sd,this.tableProps.rowIndexMapper,l+1)||this.#sX(s,this.#su,this.tableProps.columnIndexMapper,a+1))&&(this.deselect(),!0)}deselect(){this.isSelected()&&(this.inProgress=!1,this.#sD(),this.clear(),this.runLocalHooks("afterDeselect"))}selectAll(e=!1,t=!1,i={focusPosition:!1,disableHeadersHighlight:!1}){let o=this.tableProps.countRows(),r=this.tableProps.countCols(),n=this.tableProps.countRowHeaders(),s=this.tableProps.countColHeaders(),l=t?-s:0,a=e?-n:0;if(0===l&&0===a&&(0===o||0===r))return;let h=this.getActiveSelectedRange()?.highlight,{focusPosition:d,disableHeadersHighlight:u}=i;pt(d)&&(h=this.tableProps.createCellCoords(nB(d.row,l,o-1),nB(d.col,a,r-1)));let c=this.tableProps.createCellCoords(l,a),g=this.tableProps.createCellCoords(o-1,r-1);this.clear(),this.runLocalHooks("beforeSelectAll",c,g,h),this.setRangeStartOnly(c,void 0,h),this.#n9=u??!1,this.#sc.add(this.getLayerLevel()),this.#sg.add(this.getLayerLevel()),a<0&&this.selectedByRowHeader.add(this.getLayerLevel()),l<0&&this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(g),this.#t1||(this.runLocalHooks("afterSelectAll",c,g,h),this.finish())}selectCells(e){let t=g4(e);if(1===t)return!1;0===t&&tf(eb`Unsupported format of the selection ranges was passed. To select cells pass\x20
66
66
  the coordinates as an array of arrays ([[rowStart, columnStart/columnPropStart, rowEnd,\x20
67
- columnEnd/columnPropEnd]]) or as an array of CellRange objects.`);let i=g5(t,{createCellCoords:(...e)=>this.tableProps.createCellCoords(...e),createCellRange:(...e)=>this.tableProps.createCellRange(...e),propToCol:e=>this.tableProps.propToCol(e),keepDirection:!0}),o=this.settings.navigableHeaders,r={countRows:this.tableProps.countRows(),countCols:this.tableProps.countCols(),countRowHeaders:o?this.tableProps.countRowHeaders():0,countColHeaders:o?this.tableProps.countColHeaders():0},n=!e.some(e=>{let t=i(e),o=t.isValid(r);return!(o&&!t.containsHeaders()||o&&t.containsHeaders()&&t.isSingleHeader())});if(n){this.clear(),this.setExpectedLayers(e.length);for(let t=0;t<e.length;t++){let{from:o,to:r}=i(e[t]);if(this.setRangeStartOnly(o.clone(),!1),this.setRangeEnd(r.clone()),this.#t1)return n}this.finish()}return n}selectColumns(e,t=e,i=0){let o="string"==typeof e?this.tableProps.propToCol(e):e,r="string"==typeof t?this.tableProps.propToCol(t):t,n=this.tableProps.countRows(),s=this.tableProps.countCols(),l=this.tableProps.countColHeaders(),a=0===l?0:-l,h=this.tableProps.createCellCoords(a,o),d=this.tableProps.createCellCoords(n-1,r),u=this.tableProps.createCellRange(h,h,d).isValid({countRows:n,countCols:s,countRowHeaders:0,countColHeaders:l});if(u){let e=0,t=0;pt(i)?(e=nB(i.row??0,a,n-1),t=nB(i.col??0,Math.min(o,r),Math.max(o,r))):(e=nB("number"==typeof i?i:0,a,n-1),t=o);let s=this.tableProps.createCellCoords(e,t),h=0===l?0:nB(s.row??0,a,-1),d=this.tableProps.createCellCoords(h,o),c=this.tableProps.createCellCoords(n-1,r);if(this.runLocalHooks("beforeSelectColumns",d,c,s),this.setRangeStartOnly(d,void 0,s),this.selectedByColumnHeader.add(this.getLayerLevel()),this.#sc.add(this.getLayerLevel()),this.setRangeEnd(c),this.#t1)return u;this.runLocalHooks("afterSelectColumns",d,c,s),"mouse"!==this.getSelectionSource()&&this.finish()}return u}selectRows(e,t=e,i=0){let o=this.tableProps.countRows(),r=this.tableProps.countCols(),n=this.tableProps.countRowHeaders(),s=0===n?0:-n,l=this.tableProps.createCellCoords(e,s),a=this.tableProps.createCellCoords(t,r-1),h=this.tableProps.createCellRange(l,l,a).isValid({countRows:o,countCols:r,countRowHeaders:n,countColHeaders:0});if(h){let o=0,l=0;pt(i)?(o=nB(i.row??0,Math.min(e,t),Math.max(e,t)),l=nB(i.col??0,s,r-1)):(o=e,l=nB("number"==typeof i?i:0,s,r-1));let a=this.tableProps.createCellCoords(o,l),d=0===n?0:nB(a.col??0,s,-1),u=this.tableProps.createCellCoords(e,d),c=this.tableProps.createCellCoords(t,r-1);if(this.runLocalHooks("beforeSelectRows",u,c,a),this.setRangeStartOnly(u,void 0,a),this.selectedByRowHeader.add(this.getLayerLevel()),this.#sg.add(this.getLayerLevel()),this.setRangeEnd(c),this.#t1)return h;this.runLocalHooks("afterSelectRows",u,c,a),"mouse"!==this.getSelectionSource()&&this.finish()}return h}importSelection({ranges:e,activeRange:t,activeSelectionLayer:i,selectedByRowHeader:o,selectedByColumnHeader:r,disableHeadersHighlight:n,rowExtentSpansGrid:s=[],columnExtentSpansGrid:l=[]}){0!==e.length&&(this.selectedRange.clear(),this.highlight.clear(),this.inProgress=!1,this.#n9=n,this.selectedByRowHeader=new Set(o),this.selectedByColumnHeader=new Set(r),this.#sc=new Set(s),this.#sg=new Set(l),this.setActiveSelectionLayerIndex(0),e.forEach((e,t)=>{this.selectedRange.push(e),this.applyAndCommit(e,t)}),this.setRangeFocus(t.highlight,i),this.#n9=!1,this.inProgress=!1)}exportSelection(){return{ranges:Array.from(this.selectedRange).map(e=>e.clone()),activeRange:this.getActiveSelectedRange(),activeSelectionLayer:this.getActiveSelectionLayerIndex(),selectedByRowHeader:Array.from(this.selectedByRowHeader),selectedByColumnHeader:Array.from(this.selectedByColumnHeader),disableHeadersHighlight:this.#n9,rowExtentSpansGrid:Array.from(this.#sc),columnExtentSpansGrid:Array.from(this.#sg)}}capturePhysicalSelection(e,t=!0,i=!0){let o=this.getActiveSelectedRange();if(this.#sn[e].push(i&&o?this.#s1(e):po),!t||!this.tableProps.isEditorOpened()||!o)return void this.#sr[e].push(null);let r="row"===e?this.tableProps.rowIndexMapper:this.tableProps.columnIndexMapper,n=this.#sn[e],s=n[n.length-1],l="row"===e?"row":"col",a=[];(this.selectedRange.ranges.forEach((t,i)=>{let o=this.#s2(t,e=>{let t=e.clone();return t[l]=this.#s3(e[l],r),t});if(this.#s6(o,e)){let n=s.has(i);a.push({physical:o,visual:t.clone(),physicalSpan:this.#s4(t,e,r,n),spansAxis:n,originalLayerIndex:i})}}),a.some(({originalLayerIndex:e})=>e===this.#so))?this.#sr[e].push({ranges:a,activeSelectionLayer:this.#so,selectedByRowHeader:new Set(this.selectedByRowHeader),selectedByColumnHeader:new Set(this.selectedByColumnHeader),rowExtentSpansGrid:new Set(this.#sc),columnExtentSpansGrid:new Set(this.#sg),disableHeadersHighlight:this.#n9,selectionSource:this.#se}):this.#sr[e].push(null)}restorePhysicalSelection(e){let t=this.#sr[e],i=t.length>0?t[t.length-1]:null;if(t.length>0&&(t[t.length-1]=null),!i)return;let o=this.tableProps.rowIndexMapper.getNotTrimmedIndexesLength(),r=this.tableProps.columnIndexMapper.getNotTrimmedIndexesLength();if(0===o||0===r)return void this.#s5(e);let n=[];i.ranges.forEach(({physical:t,visual:o,physicalSpan:r,spansAxis:s,originalLayerIndex:l})=>{let a=this.#s8(t,o,r,s,l,e,i);a&&n.push({range:a,originalLayerIndex:l})});let s=n.findIndex(({originalLayerIndex:e})=>e===i.activeSelectionLayer);0===n.length||-1===s?this.#s5(e):(this.selectedRange.ranges=n.map(({range:e})=>e),this.#so=s,this.selectedByRowHeader=this.#s7(i.selectedByRowHeader,n),this.selectedByColumnHeader=this.#s7(i.selectedByColumnHeader,n),this.#sc=this.#s7(i.rowExtentSpansGrid,n),this.#sg=this.#s7(i.columnExtentSpansGrid,n),this.#s9(e,n),this.#n9=i.disableHeadersHighlight,this.#se=i.selectionSource,this.#n5.setActiveLayerIndex(this.#so),this.#n8.setActiveLayerIndex(this.#so),this.commitHighlightsDirectly())}#s9(e,t){let i=this.#sn[e];i.length>0&&(i[i.length-1]=this.#s7(i[i.length-1],t))}commitHighlightsDirectly(){this.highlight.clear(),this.selectedRange.ranges.forEach((e,t)=>this.applyAndCommit(e,t));let e=this.getActiveSelectedRange();this.highlight.useLayerLevel(this.#so),this.highlight.getFocus().clear(),e&&this.highlight.isEnabledFor("focus",e.highlight)&&this.highlight.getFocus().add(e.highlight).commit().syncWith(e)}#s5(e){this.clear(),this.selectedByRowHeader.clear(),this.selectedByColumnHeader.clear(),this.inProgress=!1,this.#sa=e}notifyDeferredDeselect(e){this.#sa===e&&(this.#sa=null,this.isSelected()||this.runLocalHooks("afterDeselect"))}discardPhysicalSelectionSnapshot(e){this.#sr[e].pop(),this.#sn[e].pop()}fitGridTrackingExtents(e){let t=this.#sn[e],i=t.length>0?t[t.length-1]:null;if(i&&0!==i.size&&this.isSelected()){if(this.#le())return void i.forEach(t=>this.#ss[e].add(t));this.#lt(e,i)&&this.#li()}}suspendGridTrackingFits(){this.#sl+=1}resumeGridTrackingFits(e=!0){(this.#sl=Math.max(0,this.#sl-1),e)?this.#sP():this.#sD()}#le(){return this.#sp.length>0||this.#sl>0}#sP(){if(this.#le())return;let{row:e,column:t}=this.#ss;if(0===e.size&&0===t.size)return;let i=new Set(e),o=new Set(t);if(this.#sD(),!this.isSelected())return;let r=this.#lt("row",i),n=this.#lt("column",o);(r||n)&&this.#li()}#sD(){this.#ss.row.clear(),this.#ss.column.clear()}#lt(e,t){if(0===t.size)return!1;let i="row"===e?this.tableProps.rowIndexMapper:this.tableProps.columnIndexMapper,o="row"===e?this.#sc:this.#sg,r="row"===e?"row":"col",n="row"===e?this.settings.maxRows:this.settings.maxCols,s=Math.min(i.getNotTrimmedIndexesLength(),n??1/0)-1,l=!1;return!(s<0)&&(this.selectedRange.ranges.forEach((e,i)=>{t.has(i)&&o.has(i)&&e.to[r]!==s&&(e.to[r]=s,l=!0)}),l)}#li(){this.tableProps.isEditorOpened()?this.commitHighlightsDirectly():this.#s0()}#s0(){let e="unknown"===this.getSelectionSource();e&&this.markSource("shift");try{this.refresh()}finally{e&&this.markEndSource()}}refresh(){if(!this.isSelected())return;let e=this.tableProps.countRows(),t=this.tableProps.countCols();if(0===e||0===t)return void this.deselect();let i=this.selectedRange.ranges.map(e=>e.clone());"unknown"===this.getSelectionSource()&&this.markSource("refresh");let o=new Set(this.selectedByRowHeader),r=new Set(this.selectedByColumnHeader),n=new Set(this.#sc),s=new Set(this.#sg);this.clear(),this.setExpectedLayers(i.length),i.forEach(i=>{let{from:o,to:r,highlight:n}=i,s=e-1,l=t-1;n.assign({row:nB(n.row??0,this.settings.navigableHeaders?-1/0:0,s),col:nB(n.col??0,this.settings.navigableHeaders?-1/0:0,l)}),o.assign({row:nB(o.row??0,-1/0,s),col:nB(o.col??0,-1/0,l)}),r.assign({row:nB(r.row??0,-1/0,s),col:nB(r.col??0,-1/0,l)}),this.setRangeStartOnly(o,!0,n),this.setRangeEnd(r)}),this.selectedByRowHeader=o,this.selectedByColumnHeader=r,this.#sc=n,this.#sg=s,this.finish(),this.markEndSource()}#s2(e,t){return this.tableProps.createCellRange(t(e.highlight),t(e.from),t(e.to))}#s3(e,t){return null===e||e<0?e:t.getPhysicalFromVisualIndex(e)}#s1(e){let t=("row"===e?this.tableProps.rowIndexMapper:this.tableProps.columnIndexMapper).getNotTrimmedIndexesLength(),i=new Set;return this.selectedRange.ranges.forEach((o,r)=>{this.#lo(o,r,e,t)&&i.add(r)}),i}#lo(e,t,i,o){let r="row"===i?this.#sc:this.#sg,n="row"===i?"row":"col",s=e.from[n],l=e.to[n];return r.has(t)&&(s??0)<=0&&(l??-1)>=o-1}#s6(e,t){let i="row"===t?"row":"col";return[e.highlight,e.from,e.to].every(e=>null!==e[i])}#s4(e,t,i,o){let r="row"===t?"row":"col",n=e.from[r],s=e.to[r];if(o||null===n||null===s)return[];let l=s>=n?1:-1,a=[];for(let e=n;l>0?e<=s:e>=s;e+=l){let t=this.#s3(e,i);null!==t&&t>=0&&a.push(t)}return a}#lr(e,t,i){let o="row"===t?this.tableProps.rowIndexMapper:this.tableProps.columnIndexMapper;for(let t=0;t<e.length;t++){let r=e[i?t:e.length-1-t],n=o.getVisualFromPhysicalIndex(r);if(null!==n)return n}return null}#ln(e,t){return null!==e&&e<0?e:null===e?null:t.getVisualFromPhysicalIndex(e)}#ls(e,t,i,o,r=null){let n="row"===i?this.tableProps.rowIndexMapper:this.tableProps.columnIndexMapper,s="row"===i?"row":"col",l=o??this.#ln(e[s],n)??r;if(null===l)return null;let a=t.clone();return a[s]=l,a}#s8(e,t,i,o,r,n,s){let l,a,h="row"===n?"row":"col",d=r===s.activeSelectionLayer,u=("row"===n?this.tableProps.rowIndexMapper:this.tableProps.columnIndexMapper).getNotTrimmedIndexesLength();if(o){let e=t.from[h];l=null!==e&&e<0?e:0,a=u-1}let c=this.#lr(i,n,!0),g=this.#lr(i,n,!1),p=t.highlight[h],m=null!==p&&p>=0&&p<u,f=null;null===c&&(o?f=nB(p??0,0,u-1):d&&m&&(f=p));let w=this.#ls(e.highlight,t.highlight,n,void 0,d||o?c??f:null),b=this.#ls(e.from,t.from,n,l,c??f),C=this.#ls(e.to,t.to,n,a,g??f);if(!w||!b||!C)return null;if(this.#ll(b,C,i,o,n)){if(!d)return null;let i=this.#ls(e.highlight,t.highlight,n,void 0,c??f);return i?this.tableProps.createCellRange(i,i.clone(),i.clone()):null}return this.tableProps.createCellRange(w,b,C)}#ll(e,t,i,o,r){if(o||0===i.length)return!1;let n="row"===r?"row":"col",s=e[n],l=t[n];if(null===s||null===l)return!1;let a="row"===r?this.tableProps.rowIndexMapper:this.tableProps.columnIndexMapper,h=new Set(i),d=Math.min(s,l),u=Math.max(s,l);for(let e=Math.max(d,0);e<=u;e++){let t=this.#s3(e,a);if(null!==t&&t>=0&&!h.has(t))return!0}return!1}#s7(e,t){let i=new Set;return t.forEach(({originalLayerIndex:t},o)=>{e.has(t)&&i.add(o)}),i}commit(){if(this.highlight.getCustomSelections().forEach(e=>{e.commit()}),!this.isSelected())return;let e=this.getLayerLevel(),t=this.getActiveSelectedRange();t&&this.highlight.isEnabledFor("focus",t.highlight)&&this.highlight.getFocus().commit().syncWith(t);for(let e=0;e<this.selectedRange.size();e+=1){this.highlight.useLayerLevel(e);let t=this.highlight.createArea(),i=this.highlight.createLayeredArea(),o=this.highlight.createRowHeader(),r=this.highlight.createColumnHeader(),n=this.highlight.createActiveRowHeader(),s=this.highlight.createActiveColumnHeader(),l=this.highlight.createActiveCornerHeader(),a=this.highlight.createRowHighlight(),h=this.highlight.createColumnHighlight();t?.commit(),i?.commit(),o?.commit(),r?.commit(),n?.commit(),s?.commit(),l?.commit(),a?.commit(),h?.commit()}this.highlight.useLayerLevel(e)}}tR(pr,dp);let pn=new WeakMap,ps="_typeEditorRequested";function pl(e,t,i=e,o=!1,r){let n="string"==typeof t.type?sp(t.type):t.type;if(e._automaticallyAssignedMetaProps&&tT(t,(t,i)=>{e._automaticallyAssignedMetaProps.delete(i)}),t_(t,"editor")&&pn.delete(e),!tM(n))return;i!==e||e._automaticallyAssignedMetaProps||(e._automaticallyAssignedMetaProps=new Set);let s={},l=!(o||t_(e,ps)&&!0===e[ps])&&function(e){if(!1!==e.editor)return!1;let t=function(e,t){let i=e;for(;i&&!t_(i,t);)i=Object.getPrototypeOf(i);return i}(e,"editor");return null!==t&&!(pn.has(t)&&pn.get(t)===t.editor)}(e);tT(n,(t,o)=>{("editor"!==o||!l)&&"CELL_TYPE"!==o&&(i._automaticallyAssignedMetaProps?.has(o)||!t_(i,o))&&(s[o]=t,e._automaticallyAssignedMetaProps?.add(o),r?.set(o,t),"editor"===o&&pn.set(e,t))}),tC(e,s)}function pa(e,t){e()||tf(`Assertion failed: ${t}`)}function ph(e){if(!0!==e.editor)return e;let t={...e};return delete t.editor,t}function pd(e,t,i,o){if(t_(e,t)||!o||!i||"string"!=typeof t||-1===t.indexOf("."))return e[t];let r=e;for(let e of t.split(".")){if(null==r)return;r=r[e]}return r}function pu(e,t,i){return"object"==typeof e?tx(t,e):i&&t===e}function pc(e,t,i){if("function"==typeof t)return t(e.toPhysicalRow(i))}let pg=()=>({_automaticallyAssignedMetaProps:void 0,_userDefinedMetaProps:void 0,_cellOptionMetaProps:void 0,_persistedMetaProps:void 0,activeHeaderClassName:"ht__active_highlight",allowEmpty:!0,allowHtml:!1,allowInsertColumn:!0,allowInsertRow:!0,allowInvalid:!0,allowRemoveColumn:!0,allowRemoveRow:!0,ariaTags:!0,asyncValues:!1,autoLink:!1,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,currentColClassName:void 0,currentHeaderClassName:"ht__highlight",currentRowClassName:void 0,customBorders:!1,customBordersProgressive:!1,data:void 0,dataProvider:void 0,dataDotNotation:!0,dataSchema:void 0,rowId:void 0,dateFormat:{year:"numeric",month:"2-digit",day:"2-digit"},timeFormat:{hour:"2-digit",minute:"2-digit"},dateTimeFormat:{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1},defaultDate:void 0,disableVisualSelection:!1,dialog:!1,dragToScroll:!0,dropdownMenu:void 0,editor:void 0,emptyDataState:!1,enterBeginsEditing:!0,enterCommits:!0,enterMoves:{col:0,row:1},exportFile:void 0,importFile:void 0,fillHandle:{autoInsertRow:!1},filter:!0,filterValueComparator:void 0,filteringCaseSensitive:!1,filters:void 0,filterSelectedItems:!0,fixedColumnsEnd:0,fixedColumnsLeft:0,fixedColumnsStart:0,fixedRowsBottom:0,fixedRowsTop:0,formulaBuilder:void 0,formulas:void 0,fragmentSelection:!1,hashLength:void 0,hashRevealDelay:void 0,hashSymbol:"*",headerClassName:void 0,headerCheckbox:void 0,height:void 0,hiddenColumns:void 0,hiddenRows:void 0,initialState:void 0,invalidCellClassName:"htInvalid",imeFastEdit:!1,isEmptyCol(e){let t,i,{dataSchema:o,dataDotNotation:r}=this.getSettings(),n=!!o,s=this.getSchema(),l=this.colToProp(e),a=this.countRows(),h="function"==typeof o,d=null===l?void 0:pd(s,l,r,n);for(t=0;t<a;t++)if(!1===ej(i=this.getDataAtCell(t,e))&&(h&&null!==l&&(d=pd(pc(this,o,t),l,r,n)),!pu(i,d,n)))return!1;return!0},isEmptyRow(e){let t,i,{dataSchema:o,dataDotNotation:r}=this.getSettings(),n=!!o,s=pc(this,o,e)??this.getSchema(),l=this.countCols();for(t=0;t<l;t++)if(!1===ej(i=this.getDataAtCell(e,t))){let e=this.colToProp(t);if(!pu(i,null===e?void 0:pd(s,e,r,n),n))return!1}return!0},label:void 0,language:"en-US",layoutDirection:"inherit",layout:void 0,licenseKey:void 0,limitFixedToViewport:!1,locale:"en-US",loading:!1,notification:!1,freezeBar:void 0,manualColumnFreeze:void 0,manualColumnMove:void 0,manualColumnResize:void 0,manualRowMove:void 0,manualRowResize:void 0,maxCols:1/0,maxLength:1/0,maxRows:1/0,maxSelections:void 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,preserveNumericLiteral:!1,observeDOMVisibility:!0,outsideClickDeselects:!0,pagination:void 0,placeholder:void 0,placeholderCellClassName:"htPlaceholder",preserveTextValue:!1,preventOverflow:!1,preventWheel:!1,readOnly:!1,readOnlyCellClassName:"htDimmed",readOnlyStyling:!0,renderAllRows:!1,renderMode:"always",renderAllColumns:!1,renderer:void 0,valueFormatter:void 0,valueParser:void 0,rowHeaders:void 0,rowHeaderWidth:void 0,autoRowHeaderSize:void 0,rowHeights:void 0,rowSelection:void 0,search:!1,searchInput:!0,selectionMode:"multiple",selectionHandles:!1,sheetsBar:void 0,moveCells:!1,selectOptions:void 0,skipColumnOnPaste:!1,skipRowOnPaste:!1,sortByRelevance:!0,sourceSortFunction:void 0,source:void 0,sourceLabel:void 0,startCols:5,startRows:5,stretchH:"none",strict:void 0,tableClassName:void 0,textEllipsis:!1,themeName:void 0,theme:void 0,colorScheme:void 0,density:void 0,injectCoreCss:!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,sourceDataValidator:void 0,sourceDataWarningMessage:void 0,valueGetter:void 0,valueSetter:void 0,emptyValue:"",viewportColumnRenderingOffset:"auto",viewportRowRenderingOffset:"auto",viewportColumnRenderingThreshold:0,viewportRowRenderingThreshold:0,visibleRows:10,width:void 0,wordWrap:!0,sanitizer:void 0,textExtractor:void 0,parsePastedValue:!1});class pp{metaCtor=class{};#la=new Set;#lh=new Map;#ld=null;#lu;#lc=new Set;constructor(e){this.meta=this.metaCtor.prototype,tC(this.meta,pg()),this.meta.instance=e}getMetaConstructor(){return this.metaCtor}getMeta(){return this.meta}updateMeta(e){let t=ph(e);tC(this.meta,t),Object.keys(t).forEach(e=>{this.#la.add(e),void 0===t[e]&&this.#lc.add(e)});let i=t.type??this.meta.type;this.#ld=this.#lg(i)??this.#ld,this.#lu=null===this.#ld?this.#lu:i,pl(this.meta,{...t,type:i},t,!0===e.editor,this.#lh)}updateTypeFromSettings(e){var t;let i,o=this.#ld,r=null!==o&&Object.keys(e).some(t=>this.#lp(t,e[t])&&t_(o,t)),n=("string"==typeof e.type||tM(e.type))&&null!==this.#lg(e.type);t_(e,"type")&&!n&&"string"==typeof e.type&&(this.meta.type=this.#lu);let s=null;if(n?s=this.#lg(e.type):r&&(s=this.#lg(this.meta.type)??o),this.#lm(e,n),null===s)return!1;let l=s!==o;l&&this.#lf();let a={};return this.#la.forEach(e=>{a[e]=!0}),this.#ld=s,this.#lu=n?e.type:this.#lu,pl(this.meta,{type:s},a,!0===e.editor,this.#lh),l&&!(null!==o&&(i=Object.keys(t=s)).length===Object.keys(o).length&&i.every(e=>t_(o,e)&&t[e]===o[e]))}#lm(e,t){Object.keys(e).forEach(i=>{"editor"===i&&!0===e[i]?t&&this.#la.delete(i):this.#lp(i,e[i])?this.#la.delete(i):this.#la.add(i)})}#lp(e,t){return void 0===t&&!this.#lc.has(e)}#lg(e){if("string"==typeof e&&!su(e))return null;let t="string"==typeof e?sp(e):e;return tM(t)?t:null}#lf(){let e=pg();this.#lh.forEach((t,i)=>{this.#la.has(i)||this.meta[i]!==t&&void 0!==this.meta[i]||(t_(e,i)?this.meta[i]=e[i]:Reflect.deleteProperty(this.meta,i))}),this.#lh.clear()}}class pm{constructor(e){const t=e.getMetaConstructor();this.meta=new t}getMeta(){return this.meta}updateMeta(e){let t=ph(e);tC(this.meta,t),pl(this.meta,t,t,!0===e.editor)}}function pf(e){n$(e)||null==e||tf("Assertion failed: Expecting an unsigned number or null/undefined argument.")}class pw{#lw=new Map;#ns=0;#lb=[];#lC=0;#ly=-1;#lS=!0;#lv=!1;constructor(e){this.valueFactory=e}obtain(e){n$(e)||tf("Assertion failed: Expecting an unsigned number.");let t=e;this.#lb.length>0&&-1===(t=this.#lR(e))&&(this.#lx(),t=e);let i=this.#lw.get(t);if(void 0===i){i=this.valueFactory(e),this.#lw.set(t,i),e>=this.#ns&&(this.#ns=e+1);let o=t>e?t:e;o>=this.#lC&&(this.#lC=o+1),t>this.#ly?this.#ly=t:this.#lS=!1}return i}has(e){return void 0!==this.getIfExists(e)}insert(e,t=1){pf(e);let i=null==e?this.#ns:e;this.#ns+=t,i>=this.#lC||(this.#lC+=t,this.#lE({start:i,amount:t,isInsert:!0}))}remove(e,t=1){let i;if(pf(e),null==e){let e=this.#ns-t;i=e<0?Math.max(this.#ns+e,0):e}else i=e;let o=Math.max(Math.min(this.#ns-i,t),0),r=i>=this.#lC;this.#ns-=o,this.#lC>this.#ns&&(this.#lC=this.#ns),r||this.#lE({start:i,amount:t,isInsert:!1})}size(){return this.#lb.length>0&&this.#lx(),this.#lw.size}values(){return this.#lb.length>0&&this.#lx(),this.#lv=!0,this.#lw.values()}entries(){return this.#lb.length>0&&this.#lx(),this.#lv=!0,this.#lw.entries()}evict(e){if(this.#lb.length>0){let t=this.#lR(e);-1!==t&&this.#lw.delete(t);return}this.#lw.delete(e)}getIfExists(e){if(this.#lb.length>0){let t=this.#lR(e);return -1===t?void 0:this.#lw.get(t)}return this.#lw.get(e)}clear(){this.#lw.clear(),this.#lb=[],this.#ns=0,this.#lC=0,this.#ly=-1,this.#lS=!0,this.#lv=!1}#lE(e){let t=this.#lb,i=t.length>0?t[t.length-1]:void 0;!(void 0!==i&&i.isInsert===e.isInsert&&this.#lM(i,e))&&(t.push(e),t.length>=1024&&this.#lx())}#lM(e,t){return t.isInsert?t.start>=e.start&&t.start<=e.start+e.amount&&(e.amount+=t.amount,!0):t.start===e.start?(e.amount+=t.amount,!0):t.start+t.amount===e.start&&(e.start=t.start,e.amount+=t.amount,!0)}#lR(e){let t=this.#lb,i=e;for(let e=t.length-1;e>=0;e--){let{start:o,amount:r,isInsert:n}=t[e];if(n){if(i>=o+r)i-=r;else if(i>=o)return -1}else i>=o&&(i+=r)}return i}#lx(){let e=this.#lb;if(this.#lb=[],1===e.length&&!e[0].isInsert&&!this.#lv&&this.#lS&&this.#ly===this.#lw.size-1)return void this.#lk(e[0].start,e[0].amount);let t=Array(e.length),i=1/0;for(let o=e.length-1;o>=0;o--)e[o].start<i&&(i=e[o].start),t[o]=i;let o=!1;for(let e of this.#lw.keys())if(e>=i){o=!0;break}if(!o)return;let r=new Map,n=-1,s=!0,l=-1;for(let[i,o]of this.#lw){let a=this.#lI(i,e,t);-1!==a&&(r.set(a,o),a>n&&(n=a),a<=l&&(s=!1),l=a)}this.#lw=r,this.#lv=!1,this.#lC=n+1,this.#ly=n,this.#lS=s}#lk(e,t){let i=this.#lw,o=i.size,r=Math.max(o-t,e);for(let o=e;o<r;o++)i.set(o,i.get(o+t));for(let e=r;e<o;e++)i.delete(e);this.#ly=r-1,this.#lC=r}#lI(e,t,i){let o=e;for(let e=0;e<t.length&&!(o<i[e]);e++){let{start:i,amount:r,isInsert:n}=t[e];if(n)o>=i&&(o+=r);else if(o>=i+r)o-=r;else if(o>=i)return -1}return o}[Symbol.iterator](){return this.entries()}}let pb=["data","width"];class pC{metas=new pw(()=>this._createMeta());constructor(e){this.globalMeta=e,this.metas=new pw(()=>this._createMeta())}updateMeta(e,t){let i=this.getMeta(e),o=ph(t);tC(i,o),pl(i,o,i,!0===t.editor)}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 function(e,t=[]){function i(){}tb(i,e);for(let e=0;e<t.length;e++)i.prototype[t[e]]=void 0;return i}(this.globalMeta.getMetaConstructor(),pb).prototype}}let py=new WeakMap;function pS(e,t){let i=py.get(e);return void 0===i||"string"!=typeof t?t:iW(t).filter(e=>!i.includes(e)).join(" ")}function pv(e){return t_(e,"valid")&&!1===e.valid}let pR=Object.freeze({hadOwn:!1,value:void 0,origin:"none"});function px(e,t){let i=e[t];return i instanceof Set?i:void 0}function pE(e,t){let i=e[t];return"className"===t?pS(e,i):i}function pM(e,t){return px(e,"_userDefinedMetaProps")?.has(t)?"user":px(e,"_cellOptionMetaProps")?.has(t)?"cellOption":"none"}class pk{metas=new pw(()=>this._createRow());#lT=0;#lA=0;constructor(e){this.columnMeta=e}enableUserDefinedMetaRecording(){this.#lT>0&&(this.#lT-=1)}disableUserDefinedMetaRecording(){this.#lT+=1}isUserDefinedMetaRecording(){return 0===this.#lT}startCellOptionMetaRecording(){this.#lA+=1,this.disableUserDefinedMetaRecording()}isRecordingCellOptionMeta(){return this.#lA>0}endCellOptionMetaRecording(){0!==this.#lA&&(this.#lA-=1,this.enableUserDefinedMetaRecording())}updateMeta(e,t,i){o1(this.extendMeta(e,t,i))}extendMeta(e,t,i){let o=this.getMeta(e,t),r=ph(i),n=!1;tT(r,(e,t)=>{o[t]!==e&&(n=!0)});let s=o.editor;return tC(o,r),pl(o,r,o,!0===i.editor),o.editor!==s&&(n=!0),n&&o1(o),o}createRow(e,t){this.metas.insert(e,t)}createColumn(e,t){for(let[,i]of this.metas)i.insert(e,t)}removeRow(e,t){this.metas.remove(e,t)}removeColumn(e,t){for(let[,i]of this.metas)i.remove(e,t)}getMeta(e,t,i){let o=this.metas.obtain(e).obtain(t);return void 0===i?o:o[i]}hasMeta(e,t){return this.metas.has(e)&&this.metas.obtain(e).has(t)}getMetaIfExists(e,t){return this.metas.getIfExists(e)?.getIfExists(t)}createTransientMeta(e){return this._createMeta(e)}setMeta(e,t,i,o){let r=this.metas.obtain(e).obtain(t);if(o1(r),"editor"===i&&!0===o){delete r[i],r._persistedMetaProps?.delete(i),r._userDefinedMetaProps?.delete(i),r._cellOptionMetaProps?.delete(i),this.setMeta(e,t,ps,!0);return}"editor"===i&&this.removeMeta(e,t,ps),r._automaticallyAssignedMetaProps?.delete(i),r[i]=o,"className"===i&&function(e,t){let i=py.get(e);if(void 0===i)return;let o="string"==typeof t||Array.isArray(t)?iW(t):[],r=i.filter(e=>!o.includes(e));0===r.length?py.delete(e):py.set(e,r)}(r,o),void 0===r._persistedMetaProps&&(r._persistedMetaProps=new Set),r._persistedMetaProps.add(i);let n=this.#lA>0&&this.#lT===this.#lA;0===this.#lT?(void 0===r._userDefinedMetaProps&&(r._userDefinedMetaProps=new Set),r._userDefinedMetaProps.add(i),r._cellOptionMetaProps?.delete(i)):n?(void 0===r._cellOptionMetaProps&&(r._cellOptionMetaProps=new Set),r._cellOptionMetaProps.add(i),r._userDefinedMetaProps?.delete(i)):(r._userDefinedMetaProps?.delete(i),r._cellOptionMetaProps?.delete(i))}removeMeta(e,t,i){let o=this.metas.getIfExists(e)?.getIfExists(t);void 0!==o&&(delete o[i],o._userDefinedMetaProps?.delete(i),o._cellOptionMetaProps?.delete(i),o._persistedMetaProps?.delete(i),o1(o),"editor"===i&&this.removeMeta(e,t,ps),i===ps&&t_(o,"editor")&&!px(o,"_persistedMetaProps")?.has("editor")&&delete o.editor)}getMetaKeyState(e,t,i){let o=this.metas.getIfExists(e)?.getIfExists(t);return void 0!==o&&px(o,"_persistedMetaProps")?.has(i)&&t_(o,i)?{hadOwn:!0,value:pE(o,i),origin:pM(o,i)}:pR}applyMetaKeyState(e,t,i,o){if(!o.hadOwn)return void this.removeMeta(e,t,i);if("cellOption"===o.origin){this.startCellOptionMetaRecording();try{this.setMeta(e,t,i,o.value)}finally{this.endCellOptionMetaRecording()}}else if("none"===o.origin){this.disableUserDefinedMetaRecording();try{this.setMeta(e,t,i,o.value)}finally{this.enableUserDefinedMetaRecording()}}else this.setMeta(e,t,i,o.value)}captureRowMetaKeyStates(e,t){let i=this.metas.getIfExists(e);if(void 0!==i)for(let[o,r]of i)this.#lH(e,o,r,t)}captureColumnMetaKeyStates(e,t){for(let[i,o]of this.metas){let r=o.getIfExists(e);void 0!==r&&this.#lH(i,e,r,t)}}getMetas(){let e=[],t=Array.from(this.metas.values());for(let i=0;i<t.length;i++)eU(t[i])&&e.push(...Array.from(t[i].values()));return e}getMetasAtRow(e){pa(()=>n$(e),"Expecting an unsigned number.");let t=this.metas.getIfExists(e);return void 0===t?[]:Array.from(t).sort(([e],[t])=>e-t).map(([,e])=>e)}getMetasAtRowWithPhysicalColumns(e){pa(()=>n$(e),"Expecting an unsigned number.");let t=this.metas.getIfExists(e);return void 0===t?[]:Array.from(t).sort(([e],[t])=>e-t).map(([e,t])=>({physicalColumn:e,meta:t}))}getUserDefinedMetas(){return this.#lO("_userDefinedMetaProps")}getCellOptionMetas(){return this.#lO("_cellOptionMetaProps")}#lH(e,t,i,o){let r=px(i,"_persistedMetaProps");r?.forEach(r=>{let n=pM(i,r);if("none"!==n&&t_(i,r)){let s=pE(i,r);o.push({physicalRow:e,physicalColumn:t,key:r,state:{hadOwn:!0,value:s,origin:n}})}})}#lO(e){let t=[];for(let[i,o]of this.metas)for(let[r,n]of o){let o=n[e];void 0!==o&&o.forEach(e=>{t_(n,e)&&t.push({physicalRow:i,physicalColumn:r,key:e,value:pE(n,e)})})}return t}getInvalidMetas(){let e=[];for(let[t,i]of this.metas)for(let[o,r]of i)pv(r)&&e.push({physicalRow:t,physicalColumn:o});return e}restoreInvalidMetas(e){e.forEach(({physicalRow:e,physicalColumn:t})=>{let i=this.getMeta(e,t);i.valid=!1,o1(i)})}evictRow(e){let t=this.metas.getIfExists(e);if(void 0===t)return[];let i=!1,o=[];for(let[e,r]of t){let n=px(r,"_persistedMetaProps"),s=void 0!==n&&n.size>0,l=pv(r);s||l?i=!0:(t.evict(e),o.push(e))}return i||this.metas.evict(e),o}clearCache(){this.metas.clear()}_createRow(){return new pw(e=>this._createMeta(e))}_createMeta(e){return new(this.columnMeta.getMetaConstructor(e))}}let pI="The `fixedColumnsLeft` is not supported for RTL. Please use option `fixedColumnsStart`.";function pT(e,t){return t_(e,"fixedColumnsLeft")?(t_(e,"fixedColumnsStart")&&tf("The `fixedColumnsLeft` and `fixedColumnsStart` should not be used together. Please use only the option `fixedColumnsStart`."),t&&tf(pI),pA(e)):e}function pA(e){if(!t_(e,"fixedColumnsLeft"))return e;let{fixedColumnsLeft:t,...i}=e;return{...i,fixedColumnsStart:t_(i,"fixedColumnsStart")?i.fixedColumnsStart:t}}function pH(e,t){if(!t_(t,"fixedColumnsLeft")||!t_(e,"fixedColumnsStart"))return e;let{fixedColumnsStart:i,...o}=e;return{...o,fixedColumnsLeft:i}}function pO(e){tf(`The \`${e}\` option can not be updated after the Handsontable is initialized.`)}class pD{metaManager;usageTracker=new Set;propDescriptors=new Map([["ariaTags",{initOnly:!0}],["fixedColumnsLeft",{target:"fixedColumnsStart",onChange(e){this.metaManager.hot.isRtl()&&"fixedColumnsLeft"===e&&tf(pI)}}],["layoutDirection",{initOnly:!0}],["renderAllColumns",{initOnly:!0}],["renderAllRows",{initOnly:!0}]]);constructor(e){this.metaManager=e,this.extendMetaProps()}#lD=(e,t,i)=>{i||pO(e)};extendMetaProps(){this.propDescriptors.forEach((e,t)=>{let{initOnly:i,target:o,onChange:r}=e,n="string"==typeof o,s=n?o:t,l=`_${s}`;this.metaManager.globalMeta.meta[l]=this.metaManager.globalMeta.meta[s],r?(this.installPropWatcher(t,l,r),n&&this.installPropWatcher(o,l,r)):i&&(this.installPropWatcher(t,l,this.#lD),this.metaManager.globalMeta.meta._initOnlySettings||(this.metaManager.globalMeta.meta._initOnlySettings=[]),this.metaManager.globalMeta.meta._initOnlySettings.push(t))})}installPropWatcher(e,t,i){let{usageTracker:o}=this,r=i.bind(this),n=()=>this.metaManager.isInitialized();Object.defineProperty(this.metaManager.globalMeta.meta,e,{get(){return this[t]},set(i){let s=!n()&&!o.has(e);o.add(e),r(e,i,s),this[t]=i},enumerable:!0,configurable:!0})}}class pP{#lP=0;#l_=!1;constructor(e,t={},i=[]){this.hot=e,this.globalMeta=new pp(e),this.tableMeta=new pm(this.globalMeta),this.columnMeta=new pC(this.globalMeta),this.cellMeta=new pk(this.columnMeta),i.forEach(e=>new e(this)),this.globalMeta.updateMeta(t)}finishInitialization(){this.#l_=!0}isInitialized(){return this.#l_}assertNoInitOnlyUpdates(e){this.#l_&&(this.globalMeta.getMeta()._initOnlySettings??[]).forEach(t=>{t_(e,t)&&pO(t)})}getGlobalMeta(){return this.globalMeta.getMeta()}updateGlobalMeta(e){this.globalMeta.updateMeta(e)}updateGlobalTypeFromSettings(e){return this.globalMeta.updateTypeFromSettings(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,i){let o=this.cellMeta.getMeta(e,t);return o.visualRow=i.visualRow,o.visualCol=i.visualColumn,o.row=e,o.col=t,i.skipMetaExtension||this.runLocalHooks("afterGetCellMeta",o),o}getCellMetaUncached(e,t,i){let o=this.cellMeta.getMetaIfExists(e,t)??this.cellMeta.createTransientMeta(t);return o.visualRow=i.visualRow,o.visualCol=i.visualColumn,o.row=e,o.col=t,o}createTransientColumnMeta(e){return this.cellMeta.createTransientMeta(e)}getCellMetaTransient(e,t,i){let o=this.cellMeta.getMetaIfExists(e,t);if(void 0!==o)return o.visualRow=i.visualRow,o.visualCol=i.visualColumn,o.row=e,o.col=t,this.runLocalHooks("afterGetCellMeta",o),o;let r=this.cellMeta.createTransientMeta(t);return r.visualRow=i.visualRow,r.visualCol=i.visualColumn,r.row=e,r.col=t,this.runLocalHooks("extendTransientCellMeta",r),r}getCellMetaKeyValue(e,t,i){return"string"!=typeof i&&tf("The passed cell meta object key is not a string"),this.cellMeta.getMeta(e,t,i)}setCellMeta(e,t,i,o){this.cellMeta.setMeta(e,t,i,o)}updateCellMeta(e,t,i){this.cellMeta.updateMeta(e,t,i)}extendCellMeta(e,t,i){this.cellMeta.extendMeta(e,t,i)}removeCellMeta(e,t,i){this.cellMeta.removeMeta(e,t,i)}getCellMetaKeyState(e,t,i){return this.cellMeta.getMetaKeyState(e,t,i)}applyCellMetaKeyState(e,t,i,o){this.cellMeta.applyMetaKeyState(e,t,i,o)}isUserDefinedMetaRecording(){return this.cellMeta.isUserDefinedMetaRecording()}captureRowMetaKeyStates(e,t){this.cellMeta.captureRowMetaKeyStates(e,t)}captureColumnMetaKeyStates(e,t){this.cellMeta.captureColumnMetaKeyStates(e,t)}getCellsMeta(){return this.cellMeta.getMetas()}getCellsMetaAtRow(e){return this.cellMeta.getMetasAtRow(e)}getCellsMetaAtRowWithPhysicalColumns(e){return this.cellMeta.getMetasAtRowWithPhysicalColumns(e)}getUserDefinedCellMetas(){return this.cellMeta.getUserDefinedMetas()}getCellMetaIfExists(e,t){return this.cellMeta.getMetaIfExists(e,t)}getStructureVersion(){return this.#lP}getInvalidCellMetas(){return this.cellMeta.getInvalidMetas()}restoreInvalidCellMetas(e){this.cellMeta.restoreInvalidMetas(e)}getCellOptionCellMetas(){return this.cellMeta.getCellOptionMetas()}enableUserDefinedMetaRecording(){this.cellMeta.enableUserDefinedMetaRecording()}disableUserDefinedMetaRecording(){this.cellMeta.disableUserDefinedMetaRecording()}startCellOptionMetaRecording(){this.cellMeta.startCellOptionMetaRecording()}endCellOptionMetaRecording(){this.cellMeta.endCellOptionMetaRecording()}isRecordingCellOptionMeta(){return this.cellMeta.isRecordingCellOptionMeta()}createRow(e,t=1){this.#lP+=1,this.cellMeta.createRow(e,t)}removeRow(e,t=1){this.#lP+=1,this.cellMeta.removeRow(e,t)}createColumn(e,t=1){this.#lP+=1,this.cellMeta.createColumn(e,t),this.columnMeta.createColumn(e,t)}removeColumn(e,t=1){this.#lP+=1,this.cellMeta.removeColumn(e,t),this.columnMeta.removeColumn(e,t)}invalidateMetaExtensions(){this.runLocalHooks("invalidateMetaExtensions")}clearCellsCache(){this.#lP+=1,this.cellMeta.clearCache()}clearCache(){this.cellMeta.clearCache(),this.columnMeta.clearCache()}}tR(pP,dp);class p_{metaSyncMemo=new Map;#lF=0;#lN=0;#lL=!1;constructor(e){this.metaManager=e,e.addLocalHook("afterGetCellMeta",e=>{this.extendCellMeta(e)}),e.addLocalHook("extendTransientCellMeta",e=>{this.extendTransientCellMeta(e)}),e.addLocalHook("invalidateMetaExtensions",()=>{this.metaSyncMemo.clear()}),rI.getSingleton().add("beforeRender",e=>{e&&this.metaSyncMemo.clear()},this.metaManager.hot);const t=()=>this.#lB();rI.getSingleton().add("afterScrollVertically",t,this.metaManager.hot),rI.getSingleton().add("afterViewRender",t,this.metaManager.hot)}extendCellMeta(e){let t=e.row,i=e.col;if(this.metaSyncMemo.get(t)?.has(i))return;this.#lV(e,e=>{this.metaManager.extendCellMeta(t,i,e)});let o=this.metaSyncMemo.get(t);void 0===o&&(o=new Set,this.metaSyncMemo.set(t,o)),o.add(i)}extendTransientCellMeta(e){this.#lV(e,t=>{let i=ph(t);tC(e,i),pl(e,i,e,!0===t.editor)})}#lV(e,t){let i=e.row,o=e.col,r=e.visualRow,n=e.visualCol,s=this.metaManager.hot,l=r3(s,n);e.prop=l,s.runHooks("beforeGetCellMeta",r,n,e);let a=t_(e,"type")?e.type:null,h=o3(e.cells)?e.cells(i,o,l):null;a&&(h?h.type=h.type??a:h={type:a}),h&&t(h),!h?.type&&function(e){if(!0!==e[ps]||!t_(e,ps)||t_(e,"type")||t_(e,"editor")||!1!==e.editor)return!1;let t="string"==typeof e.type?sp(e.type):e.type;if(!tM(t)||!t_(t,"editor"))return!1;let i=t.editor;return e.editor=i,pn.set(e,i),!0}(e)&&o1(e),s.runHooks("afterGetCellMeta",r,n,e)}#lB(){let e=this.metaManager.hot,t=e.getFirstRenderedVisibleRow(),i=e.getLastRenderedVisibleRow();if(!Number.isInteger(t)||!Number.isInteger(i)||i<t)return;let o=i-t+1,r=t-o,n=i+o,s=this.#lF,l=this.#lN;this.#lL&&(this.#lz(s,Math.min(l,r-1)),this.#lz(Math.max(s,n+1),l)),this.#lF=r,this.#lN=n,this.#lL=!0}#lz(e,t){if(e>t)return;let i=this.metaManager.hot,o=i.getSelectedRangeLast(),r=o?o.highlight.row:null;for(let o=e;o<=t;o++){let e=i.toPhysicalRow(o);o!==r&&Number.isInteger(e)&&this.#lW(e)}}#lW(e){let t=this.metaManager.cellMeta.evictRow(e);if(0===t.length)return;let i=this.metaSyncMemo.get(e);if(void 0!==i){for(let e=0;e<t.length;e++)i.delete(t[e]);0===i.size&&this.metaSyncMemo.delete(e)}}}function pF(e){return"function"==typeof e}let pN=class{dataType="array";colToProp=e=>void 0;propToCol=e=>void 0;countCachedColumns;#l$={colToProp:e=>this.colToProp(e),toPhysicalColumn:e=>this.hot.toPhysicalColumn(e)};constructor(e,t=[]){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(e=!1){return this.data?.length?e||this.hot.hasHook("modifySourceData")||this.hot.hasHook("modifyRowData")?this.getByRange(null,null,e):this.data.map(dg):this.data}setData(e){this.data=e}getAtColumn(e){let t=[];return en(this.data,(i,o)=>{let r=this.getAtCell(o,e);t.push(r)}),t}getAtRow(e,t,i,o=!1){let r=void 0===t&&void 0===i,{dataDotNotation:n,columns:s,maxCols:l}=this.hot.getSettings(),a=null,h=null;if(Array.isArray(a=this.modifyRowData(e)))h=[],r?a.forEach((t,i)=>{h[i]=this.getAtPhysicalCell(e,i,a)}):nF(t,i,i=>{h[i-t]=this.getAtPhysicalCell(e,i,a)});else if(tM(a)||o3(a))if(h=o?[]:{},!r||o){let r=this.countCachedColumns?.()??0,d=Array.isArray(s)?Math.max(r,Math.min(l??1/0,s.length)):r,u=Math.max(this.countFirstRowKeys(),d)-1;nF(0,u,r=>{let s=r3(this.#l$,r),l=!Number.isInteger(s)||o&&r<d&&null!==this.hot.toPhysicalColumn(r);if(r>=(t||0)&&r<=(i??u)&&l){let t=this.getAtPhysicalCell(e,s,a);o?h.push(t):n?null!==h&&tO(h,s,t):h[s]=t}})}else tT(a,(t,i)=>{let o=this.getAtPhysicalCell(e,i,a);n?null!==h&&tO(h,i,o):h[i]=o});return h}setAtCell(e,t,i,o=!1){let r;if("string"==typeof e){let t=Number(e);if(Number.isNaN(t)||!Number.isInteger(t)||t<0)return;r=t}else{if("number"!=typeof e||!Number.isInteger(e)||e<0)return;r=e}if(r>=this.countRows()||!o&&"number"==typeof t&&t>=this.countFirstRowKeys())return;if(this.hot.hasHook("modifySourceData")){let e=tP(i);this.hot.runHooks("modifySourceData",r,t,e,"set"),e.isTouched()&&(i=e.value)}let n=this.modifyRowData(r);if("function"==typeof t){null!=n&&t(n,i);return}if(Number.isInteger(t))Array.isArray(n)?n[t]=i:tM(n)&&tO(n,String(t),i);else if(Array.isArray(n)){let e=Number(t);!Number.isNaN(e)&&Number.isInteger(e)&&e>=0&&e<this.countFirstRowKeys()&&(n[e]=i)}else tM(n)&&this.#lU(n,String(t),i,o)}#lU(e,t,i,o){!o||!t_(e,t)&&!0===this.hot.getSettings().dataDotNotation&&t.includes(".")?tO(e,t,i):tH(e,t,i)}getAtPhysicalCell(e,t,i){let o=this.#lG(t,i);if(this.hot.hasHook("modifySourceData")){let i=tP(o);this.hot.runHooks("modifySourceData",e,t,i,"get"),i.isTouched()&&(o=i.value)}return o}getAtCell(e,t){let i=this.modifyRowData(e),o="function"==typeof t?t:r3(this.#l$,t);return this.getAtPhysicalCell(e,o,i)}getAtCellByProp(e,t,i){return this.getAtPhysicalCell(e,t,void 0===i?this.modifyRowData(e):i)}getRawAtCellByProp(e,t){let i=this.modifyRowData(e);return"string"==typeof t&&tM(i)&&t_(i,t)?i[t]:this.#lG(t,i)}#lG(e,t){if(!t)return null;if("string"==typeof e){let{dataDotNotation:i}=this.hot.getSettings();return i?tA(t,e):t[e]}return"function"==typeof e?e(t):t[e]}getByRange(e=null,t=null,i=!1){let o=!1,r=null,n=null,s=null,l=null;null===e||null===t?(o=!0,r=0,s=this.countRows()-1):(r=Math.min(e.row,t.row),n=Math.min(e.col,t.col),s=Math.max(e.row,t.row),l=Math.max(e.col,t.col));let a=[];return nF(r,s,e=>{a.push(o?this.getAtRow(e,void 0,void 0,i):this.getAtRow(e,n,l,i))}),a}getCopyable(e,t){let i=this.propToCol(t)??t;return"number"==typeof i&&this.hot.getCellMetaTransient(e,i).copyable?this.getAtCell(this.hot.toPhysicalRow(e),i):""}countRows(){if(this.hot.hasHook("modifySourceLength")){let e=this.hot.runHooks("modifySourceLength");if("number"==typeof e&&Number.isInteger(e))return e}return this.data.length}countFirstRowKeys(){return dd(this.data??[])}destroy(){this.data=null,this.hot=null}},pL=/^(\r\n|\n\r|\r|\n)/,pB=/^[^\t\r\n]+/,pV=/^\t/;function pz(e){let t,i,o,r,n,s="";for(t=0,i=e.length;t<i;t+=1){for(o=0,r=e[t].length;o<r;o+=1)o>0&&(s+=" "),"string"==typeof(n=e[t][o])?n.indexOf("\n")>-1?s+=`"${n.replaceAll('"','""')}"`:s+=n:null==n?s+="":s+=n;t!==i-1&&(s+="\n")}return s}let pW=new Set(["valid"]);function p$(e){return"object"==typeof e&&null!==e?tS(e):e}function pU(e,t,i){let o=e.getRecordingTransaction();if(null===o)return;let r=o.journal[o.journal.length-1];void 0!==i?null!==i.op&&r===i.op?i.op.changes.push(t):(i.op={type:"cells",changes:[t],reversed:!0},e.append(o,i.op)):r?.type==="cells"&&!0!==r.reversed&&e.isLatestEntry(r)?r.changes.push(t):e.append(o,{type:"cells",changes:[t]})}function pG(e,t,i,o){let r=e._getOperationScope();if(null===r.getRecordingTransaction()||o<=0)return;let n=[];if(!t){let t=e._getMetaManager();for(let e=i;e<i+o;e++)t.captureRowMetaKeyStates(e,n)}r.record({type:"metaRows",insert:t,physicalRow:i,amount:o,metas:n})}function pj(e,t){let i=t-e.length;return e.every((e,t)=>e===i+t)}class pq{static get DESTINATION_RENDERER(){return 1}static get DESTINATION_CLIPBOARD_GENERATOR(){return 2}tableMeta;#lj=0;#lq=0;constructor(e,t,i){this.hot=e,this.metaManager=i,this.tableMeta=i.getTableMeta(),this.dataSource=t,this.colToPropCache=[],this.propToColCache=new Map,this.refreshDuckSchema(),this.createMap()}createMap(){let e=this.getSchema();void 0===e&&tf("trying to create `columns` definition but you didn't provide `schema` nor `data`");let t=this.tableMeta.columns;this.colToPropCache=[],this.propToColCache=new Map,t?this.#lK(t,e):this.recursiveDuckColumns(e)}#lY(e){return null===e&&!this.propToColCache.has(null)}#lK(e,t){let i=0,o=0,r="function"==typeof e;if(r){let e=tD(t);i=e>0?e:this.countFirstRowKeys()}else i=Math.min(this.tableMeta.maxCols??1/0,e.length);for(let t=0;t<i;t++){let i=r?e(t):e[t];if(tM(i)){if(void 0!==i.data){let e=r?o:t,n=i.data;this.colToPropCache[e]=n,this.propToColCache.set(n,e)}o+=1}}}countFirstRowKeys(){return dd(this.dataSource??[])}recursiveDuckColumns(e,t,i){let o,r=t??0,n=i??"";return"object"!=typeof e||null===e||Array.isArray(e)||tT(e,(e,t)=>{let i="object"==typeof e&&null!==e;!("__children"===t||"function"==typeof e||Array.isArray(e))&&(!i||tM(e))&&(tM(e)?r=this.recursiveDuckColumns(e,r,`${n}${t}.`):(o=n+t,this.colToPropCache.push(o),this.propToColCache.set(o,r),r+=1))}),r}colToProp(e){if(!1===Number.isInteger(e))return e;let t=this.hot.toPhysicalColumn(e);return null===t?null:this.colToPropCache&&eU(this.colToPropCache[t])?this.colToPropCache[t]:t}propToCol(e){let t=this.propToColCache.get(e);return void 0!==t?this.hot.toVisualColumn(t):null===e?null:"number"!=typeof e?e:this.hot.toVisualColumn(e)}getSchema(){let e=this.tableMeta.dataSchema;return e?"function"==typeof e?e():e:this.duckSchema}createDuckSchema(){return this.dataSource&&this.dataSource[0]?tw(this.dataSource[0]):{}}refreshDuckSchema(){this.duckSchema=this.createDuckSchema()}createRow(e,t=1,{source:i,mode:o="above",fillsMinimumSize:r=!1}={}){let n=this.hot.countSourceRows(),s=n,l=0,a=e;if(("number"!=typeof a||a>=n)&&(a=n),a<this.hot.countRows()&&(s=this.hot.toPhysicalRow(a)),!1===this.hot.runHooks("beforeCreateRow",a,t,i)||null===s)return{delta:0};let h=this.tableMeta.maxRows,d=this.getSchema().length,u=[];for(;l<t&&n+l<(h??1/0);){let e=null;if("array"===this.hot.dataType)this.tableMeta.dataSchema?e=tS(this.getSchema()):(e=[],nF(d-1,()=>e.push(null)));else if("function"===this.hot.dataType){let t=this.tableMeta.dataSchema;"function"!=typeof t&&tf("`dataSchema` must be a function when `dataType` is `function`"),e=t(a+l)}else ty(e={},this.getSchema());u.push(e),l+=1}this.hot.rowIndexMapper.insertIndexes(a,l,"below"===o?"end":"start"),"below"===o&&(s=Math.min(s+1,n)),this.#lX(s,l,n,r),this.spliceData(s,0,u),l>0&&this.hot._getOperationScope().record({type:"insertRows",physicalIndex:s,amount:l,atAxisEnd:s===this.hot.rowIndexMapper.getNumberOfIndexes()-l});let c=this.hot.toVisualRow(s);return this.hot.countSourceRows()===u.length&&this.hot.columnIndexMapper.initToLength(this.hot.getInitialColumnCount()),l>0&&(null==e?this.metaManager.createRow(null,l):"auto"!==i&&this.metaManager.createRow(s,t)),this.hot.runHooks("afterCreateRow",c,l,i),{delta:l,startPhysicalIndex:s}}createCol(e,t=1,{source:i,mode:o="start",fillsMinimumSize:r=!1}={}){this.hot.isColumnModificationAllowed()||tf('Cannot create a new column when the data source holds objects or the "columns" option is set. You can only have as many columns as defined in the first data row, the data schema, or the "columns" setting. To add new columns, use an array data source without the "columns" option.');let n=this.dataSource??[],s=this.tableMeta.maxCols,l=this.hot.columnIndexMapper.getNumberOfIndexes(),a=this.hot.countCols(),h=this.hot.countSourceRows(),d="number"==typeof e&&e<=l?e:a;if(!1===this.hot.runHooks("beforeCreateCol",d,t,i))return{delta:0};let u=d<a?this.hot.toPhysicalColumn(d):l,c="end"===o?Math.min(u+1,l):u,g=Math.max(0,Math.min(t,(s??1/0)-a));return this.#lZ(c,g,l,r),this.#lQ(n,c,d,a,h,g),g>0&&this.hot._getOperationScope().record({type:"insertColumns",physicalIndex:c,amount:g,atAxisEnd:c===this.hot.columnIndexMapper.getNumberOfIndexes()}),g>0&&(null==e?this.metaManager.createColumn(null,g):"auto"!==i&&this.metaManager.createColumn(c,t)),this.hot.columnIndexMapper.insertIndexes(d,g,o),this.hot.runHooks("afterCreateCol",this.hot.toVisualColumn(c),g,i),this.refreshDuckSchema(),{delta:g,startPhysicalIndex:c}}#lQ(e,t,i,o,r,n){if(!(n<=0)){if(0===r){let t="number"==typeof i?Math.max(0,Math.min(n,i-o+1)):n;for(let i=0;i<t;i++)e.push([null]);return}for(let i=0;i<r;i++)void 0===e[i]&&(e[i]=[]),eu(e[i],t,n,null)}}#lJ(e,t,i,o,r){return i<=0?e:r&&t>=o?e+i:t>o-e?Math.max(o-t,0):e}#l0(e,t,i){let o=i-e,r=0;return t.forEach(e=>{e>=o&&(r+=1)}),Math.max(e-r,0)}#lX(e,t,i,o){this.#lj=this.#lJ(this.#lj,e,t,i,o)}#lZ(e,t,i,o){this.#lq=this.#lJ(this.#lq,e,t,i,o)}removeRow(e,t=1,i){let o=Number.isInteger(e)?e:-t,r=this.visualRowsToPhysical(o,t),n=this.hot.countRows();if(o=(n+o)%n,!1===this.hot.runHooks("beforeRemoveRow",o,r.length,r,i))return!1;let s=r.length;if(!function(e,t){let i=e._getOperationScope();if(null===i.getRecordingTransaction()||0===t.length)return;let o=t.slice(0).sort((e,t)=>e-t),r=function(e){let t=[];for(let i=0;i<e.countCols();i++){let o=e.colToProp(i);pF(o)&&t.push([e.toPhysicalColumn(i),o])}return t}(e),n=e._getMetaManager(),s=[],l=[],a=[];o.forEach(t=>{let i;s.push((tM(i=tS(e.getSourceDataAtRow(t)))&&(delete i.__children,tk(i)),i)),l.push(r.map(([i,o])=>[i,p$(e.getSourceDataAtCell(t,o))])),n.captureRowMetaKeyStates(t,a)}),i.record({type:"removeRows",physicalIndexes:o,firstPhysicalIndex:t[0],rows:s,accessorValues:l,metas:a,atAxisEnd:pj(o,e.rowIndexMapper.getNumberOfIndexes())})}(this.hot,r),this.#l1(r),this.filterData(o,s,r),o<this.hot.countRows()){this.hot.rowIndexMapper.removeIndexes(r);let e=eU(this.tableMeta.columns)||eU(this.tableMeta.dataSchema)||this.tableMeta.colHeaders;0!==this.hot.rowIndexMapper.getNotTrimmedIndexesLength()||e||this.hot.columnIndexMapper.setIndexesSequence([])}let l=r.slice(0).sort((e,t)=>t-e);return this.#l2(l,(e,t)=>{this.metaManager.removeRow(e,t)}),this.hot.runHooks("afterRemoveRow",o,s,r,i),!0}removeCol(e,t=1,i){("object"===this.hot.dataType||this.tableMeta.columns)&&tf('Cannot remove a column when the data source holds objects or the "columns" option is set.');let o="number"!=typeof e?-t:e;o=(this.hot.countCols()+o)%this.hot.countCols();let r=this.visualColumnsToPhysical(o,t),n=r.slice(0).sort((e,t)=>t-e);if(!1===this.hot.runHooks("beforeRemoveCol",o,t,r,i))return!1;let s=!0,l=n.length,a=this.dataSource??[];for(let e=0;e<l;e++)s&&r[0]!==r[e]-e&&(s=!1);return!function(e,t,i){let o=e._getOperationScope();if(null===o.getRecordingTransaction()||0===i.length)return;let r=i.slice(0).sort((e,t)=>e-t),n=e._getMetaManager(),s=[],l=r.map(e=>{let i=[];for(let o=0;o<t.length;o++){let r=t[o];i.push(Array.isArray(r)?p$(r[e]):void 0)}return n.captureColumnMetaKeyStates(e,s),i});o.record({type:"removeColumns",physicalIndexes:r,values:l,metas:s,atAxisEnd:pj(r,e.columnIndexMapper.getNumberOfIndexes())})}(this.hot,a,r),this.#l3(r),this.#l6(a,s,r,n,t),o<this.hot.countCols()&&(this.hot.columnIndexMapper.removeIndexes(r),this.tableMeta.rowHeaders||0!==this.hot.columnIndexMapper.getNotTrimmedIndexesLength()||this.hot.rowIndexMapper.setIndexesSequence([])),this.hot.runHooks("afterRemoveCol",o,t,r,i),this.refreshDuckSchema(),!0}isTrailingFillerRow(e){return null!==e&&e>=this.hot.countSourceRows()-this.#lj}isTrailingFillerColumn(e){return null!==e&&e>=this.hot.countSourceCols()-this.#lq}#l6(e,t,i,o,r){if(t)for(let t=0,o=this.hot.countSourceRows();t<o;t++)e[t].splice(i[0],r),0===t&&this.metaManager.removeColumn(i[0],r);else{let t=new Set(i),r=this.hot.countSourceRows();for(let i=0;i<r;i++)ed(e[i],t);r>0&&this.#l2(o,(e,t)=>{this.metaManager.removeColumn(e,t)})}}#l3(e){this.#lq=this.#l0(this.#lq,e,this.hot.countSourceCols())}#l1(e){this.#lj=this.#l0(this.#lj,e,this.hot.countSourceRows())}#l2(e,t){let i=0;for(let o=0;o<e.length;o++)(o+1>=e.length||e[o+1]!==e[o]-1)&&(t(e[o],o-i+1),i=o+1)}spliceCol(e,t,i,...o){let r=this.hot.getDataAtCol(e),n=r.slice(t,t+i);ee(o,r.slice(t+i));let s=0;for(;s<i;)o.push(null),s+=1;return J(o),this.hot.populateFromArray(t,e,o,void 0,void 0,"spliceCol"),n}spliceRow(e,t,i,...o){let r=this.hot.getSourceDataAtRow(e),n=r.slice(t,t+i);ee(o,r.slice(t+i));let s=0;for(;s<i;)o.push(null),s+=1;return this.hot.populateFromArray(e,t,[o],void 0,void 0,"spliceRow"),n}spliceData(e,t,i){if(!1!==this.hot.runHooks("beforeDataSplice",e,t,i)){let t=[...this.dataSource.slice(0,e),...i,...this.dataSource.slice(e)];this.dataSource.length=0,t.forEach(e=>this.dataSource.push(e))}}filterData(e,t,i){let o=this.hot.runHooks("filterData",e,t,i);Array.isArray(o)?(this.dataSource.length=0,o.forEach(e=>{this.dataSource.push(e)})):ed(this.dataSource,new Set(i))}get(e,t,i){let o=i?.skipValueGetter===!0,r=this.hot.toPhysicalRow(e),n=this.dataSource[r],s=this.hot.runHooks("modifyRowData",r);n="number"!=typeof s?s:n;let{dataDotNotation:l}=this.hot.getSettings(),a=null;if(n&&!this.#lY(t)&&"function"!=typeof t&&t_(n,t))a=n[t];else if(l&&"string"==typeof t&&t.indexOf(".")>-1){let e=n;if(!e)return null;let i=t.split(".");for(let t=0,o=i.length;t<o;t++)if(void 0===(e=e[i[t]])||null===e&&t<o-1)return null;a=e}else"function"==typeof t&&n&&(a=t(n));let h=this.propToCol(t),d="number"==typeof h?this.hot.toPhysicalColumn(h):null;if(!o&&"number"==typeof h&&n$(r)&&n$(d)&&(a=rG(a,this.metaManager.getCellMetaUncached(r,d,{visualRow:e,visualColumn:h}))),this.hot.hasHook("modifyData")){let t=tP(a);this.hot.runHooks("modifyData",e,h,t,"get"),t.isTouched()&&(a=t.value)}return a}getAtColumnForRows(e,t){let i=this.colToProp(e),o=t.length,r=[],n=this.propToCol(i),s="number"==typeof n?this.hot.toPhysicalColumn(n):null,l="number"==typeof n&&n$(s),{dataDotNotation:a}=this.hot.getSettings();if(!("function"!=typeof i&&!(a&&"string"==typeof i&&i.indexOf(".")>-1)&&!this.hot.hasHook("modifyRowData")&&!this.hot.hasHook("modifyData")&&!this.hot.hasHook("modifySourceData")&&!(l&&o3(this.metaManager.getColumnMeta(s).valueGetter)))){for(let e=0;e<o;e++)r.push(this.get(this.hot.toVisualRow(t[e]),i));return r}let h=this.dataSource;for(let e=0;e<o;e++){let o=t[e];if(l&&n$(o)&&void 0!==this.metaManager.getCellMetaIfExists(o,s)){r.push(this.get(this.hot.toVisualRow(o),i));continue}let n=h[o];r.push(n&&t_(n,i)?n[i]:null)}return r}getCopyable(e,t){let i=this.propToCol(t)??t;return"number"==typeof i&&this.hot.getCellMetaTransient(e,i).copyable?this.get(e,t):""}set(e,t,i){this.setAtPhysicalRow(this.hot.toPhysicalRow(e),t,i,e)}setAtPhysicalRow(e,t,i,o){if(this.#lY(t))return;let r=i,n=this.dataSource[e],s=this.hot.runHooks("modifyRowData",e);if(n="number"!=typeof s?s:n,this.hot.hasHook("modifyData")){let e=tP(r);this.hot.runHooks("modifyData",o,this.propToCol(t),e,"set"),e.isTouched()&&(r=e.value)}let{dataDotNotation:l}=this.hot.getSettings();if(n&&"function"!=typeof t&&t_(n,t))n[t]=r;else if(l&&"string"==typeof t&&t.indexOf(".")>-1){let e,i=n,o=0,s=t.split(".");for(o=0,e=s.length-1;o<e;o++){if("__proto__"===s[o]||"constructor"===s[o]||"prototype"===s[o])return;(void 0===i[s[o]]||null===i[s[o]])&&(i[s[o]]={}),i=i[s[o]]}i[s[o]]=r}else if("function"==typeof t)n&&t(n,r);else{if("__proto__"===t||"constructor"===t||"prototype"===t)return;n[t]=r}}visualRowsToPhysical(e,t){let i=this.hot.countRows(),o=[],r=(i+e)%i,n=t;for(;r<i&&n;)o.push(this.hot.toPhysicalRow(r)),n-=1,r+=1;return o}visualColumnsToPhysical(e,t){let i=this.hot.countCols(),o=[],r=(i+e)%i,n=t;for(;r<i&&n;){let e=this.hot.toPhysicalColumn(r);o.push(e),n-=1,r+=1}return o}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(){let e,t=this.tableMeta.maxRows;return e=(t??0)<0||0===t?0:t||1/0,Math.min(this.hot.rowIndexMapper.getNotTrimmedIndexesLength(),e)}getAll(){let 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,pq.DESTINATION_RENDERER):[]}countCachedColumns(){return this.colToPropCache.length}getRange(e,t,i){let o,r,n,s=[],l=this.tableMeta.maxRows,a=this.tableMeta.maxCols;if(0===l||0===a)return[];let h=i===pq.DESTINATION_CLIPBOARD_GENERATOR?this.getCopyable:this.get,d=Math.min(Math.max((l??1/0)-1,0),Math.max(e.row,t.row)),u=Math.min(Math.max((a??1/0)-1,0),Math.max(e.col,t.col));for(o=Math.min(e.row,t.row);o<=d;o++){n=[];let i=o>=0?this.hot.toPhysicalRow(o):o;for(r=Math.min(e.col,t.col);r<=u&&null!==i;r++)n.push(h.call(this,o,r3(this.hot,r)));null!==i&&s.push(n)}return s}getText(e,t){return pz(this.getRange(e,t,pq.DESTINATION_RENDERER))}getCopyableText(e,t){return pz(this.getRange(e,t,pq.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}}function pK(e,t,i,o,r,n,s,l){let a=e.sourceDataValidator;if(!o3(a)||!0===a(t,e,l))return;!1===e.allowInvalid&&n.setAtCell(i,r,null);let h=e.sourceDataWarningMessage;if(h){let e=s.get(h)??[];e.push({row:i,col:o,value:t,message:h}),s.set(h,e)}}let pY=new Set(["type","sourceDataValidator"]);function pX(e,t){let i=e.countSourceRows(),o=e.countSourceCols();if(0===i||0===o)return;let r=e.getSettings(),n=e._getDataSource(),s=new Map,l=function(e,t){let i=[];for(let o=0;o<t;o+=1){let t=e.columnIndexMapper.getVisualFromPhysicalIndex(o);if(null!==t){let r=e.colToProp(t);null!==r&&i.push({physicalColumn:o,visualColumn:t,sourceColumn:r})}}return i}(e,o),{fullScan:a,columns:h}=function(e,t){let i=e._getMetaManager(),o=[];for(let e=0;e<t.length;e+=1){let r=t[e],{physicalColumn:n,visualColumn:s}=r,l=i.getCellMetaUncached(0,n,{visualRow:0,visualColumn:s}),a=l.sourceDataValidator;if(o3(a)){if(!0!==a.rowIndependent)return{fullScan:!0,columns:[]};o.push({...r,cellMeta:l})}}return{fullScan:!1,columns:o}}(e,l);(a||0!==h.length||Array.isArray(r.cell)&&r.cell.length>0||e._getMetaManager().getUserDefinedCellMetas().some(({key:e})=>pY.has(e)))&&(a||Array.isArray(r.cell)&&r.cell.length>0||e._getMetaManager().getUserDefinedCellMetas().length>0?!function(e,t,i,o,r,n){let{rowIndexMapper:s}=e,l=e._getMetaManager();for(let e=0;e<i;e+=1){let i=s.getVisualFromPhysicalIndex(e);if(null===i)continue;let a=null,h=!1;for(let s=0;s<o.length;s+=1){let{physicalColumn:d,visualColumn:u,sourceColumn:c}=o[s],g=l.getCellMetaUncached(e,d,{visualRow:i,visualColumn:u});o3(g.sourceDataValidator)&&(h||(a=t.modifyRowData(e),h=!0),pK(g,t.getAtCellByProp(e,c,a),e,d,c,t,r,n))}}}(e,n,i,l,s,t):!function(e,t,i,o,r,n){for(let s=0;s<i;s+=1){if(null===o(s))continue;let i=t.modifyRowData(s);for(let o=0;o<e.length;o+=1){let{physicalColumn:l,sourceColumn:a,cellMeta:h}=e[o];pK(h,t.getAtCellByProp(s,a,i),s,l,a,t,r,n)}}}(h,n,i,t=>e.rowIndexMapper.getVisualFromPhysicalIndex(t),s,t),s.forEach((e,t)=>{pZ(t,e)}))}function pZ(e,t){!function({logFunction:e=function(...e){eU(console)&&console.log(...e)},message:t="",items:i=[],maxSample:o=5,itemFormatter:r=e=>`${e}`}={}){if(!Array.isArray(i)||0===i.length)return;let n=i.length,s=i.slice(0,o).map(e=>` - ${r(e)}`),l=n>o?` - ...and ${n-o} more`:"";e(io(t,{itemsCount:`${n} cell${n>1?"s":""}`,affectedCells:["Affected cells:",...s,...l?[l]:[]].join("\n")}))}({logFunction:ir,message:e,items:t,itemFormatter:e=>{let{row:t,col:i,value:o}=e,r=e$(o),n=r.length>64?`${r.slice(0,64)}...`:r;return`row ${t}, col ${i}, value: "${n}"`}})}function pQ(e,t,i,o){let{hotInstance:r,dataMap:n,dataSource:s,internalSource:l,source:a,metaManager:h,firstRun:d,beforeRender:u}=o,c=r5(l),g=r.getSettings();Array.isArray(g.dataSchema)?r.dataType="array":o3(g.dataSchema)?r.dataType="function":r.dataType="object",n&&n.destroy(),e=r.runHooks(`before${c}`,e,d,a);let p=new pq(r,e,h);t(p),"object"==typeof e&&null!==e?e.push&&e.splice||(e=[e]):null===e?e=function(e,t,i){let o=t.getSchema(),r=[];for(let t=0,n=i.startRows;t<n;t++){let t;if(("object"===e.dataType||"function"===e.dataType)&&i.dataSchema)t=tS(o);else if("array"===e.dataType)t=tS(o[0]);else{t=[];for(let e=0,o=i.startCols;e<o;e++)t.push(null)}r.push(t)}return r}(r,p,g):tf(`${l} only accepts array of objects or array of arrays (${typeof e} given)`),Array.isArray(e[0])&&(r.dataType="array"),g.data=e,p.dataSource=e,s.data=e,s.dataType=r.dataType,s.colToProp=e=>p.colToProp(e),s.propToCol=e=>p.propToCol(e),s.countCachedColumns=p.countCachedColumns.bind(p);let m=e.length;i(p),function(e,t,i){let{columns:o,dataSchema:r,maxCols:n,allowInsertColumn:s}=e.getSettings(),l=Array.isArray(o)||o3(o),a=eU(r)&&null!==r;if(0===i||0===e.countSourceRows()||e.columnIndexMapper.getNumberOfIndexes()>0||l||a||0===n)return;let h=!1;for(let e=1;e<t.length&&!h;e++)h=dd([t[e]])>0;if("array"===e.dataType&&!h&&s)return;let d=h?", while later rows have fields that no column displays":"";il(e,"replaceData.undetectableColumns",`Handsontable found no columns in the data source, so the grid displays rows with no cells. Without the \`columns\` or \`dataSchema\` option, the number of columns is read from the first row of \`data\`, and it has no fields${d}. Define the columns with the \`columns\` or \`dataSchema\` option, or start \`data\` with a row that contains every field.`)}(r,e,m),d||r._isDataWorkDeferred()||pX(r,l),r.runHooks(`after${c}`,e,d,a),d||(u(),r.runHooks("afterChange",null,l),u(),r.render()),r.getSettings().ariaTags&&iq(r.rootElement,[z(-1)])}class pJ{#nj;#nq;constructor({rowIndexMapper:e,columnIndexMapper:t}){this.#nj=e,this.#nq=t}toRenderable(e){let t="N-S"===e.getVerticalDirection()?1:-1,i="W-E"===e.getHorizontalDirection()?1:-1,o=this.#l4(e.from,t,i);if(null===o)return null;let r=this.#l4(e.to,-t,-i);if(null===r)return null;let n=e.clone();return n.from=o,n.to=r,n.includes(e.highlight)||(n.highlight=o),n}#l4(e,t,i=t){if(null===e.row||null===e.col)return null;let o=this.#l5(this.#nj,e.row,t);if(null===o)return null;let r=this.#l5(this.#nq,e.col,i);return null===r?null:e.clone().assign({row:o,col:r})}#l5(e,t,i){return t<0?t:e.getNearestNotHiddenIndex(t,i)}}function p0(e){let t=Number(e);return t>0?t:0}function p1(e,t,i){let o=0;for(;o<t&&o<e&&i(e-1-o);)o+=1;return o}class p2{#eb;#l8=null;#l7=null;#l9=0;#ae=null;#at=null;#ai=null;#lw=null;#ao=new WeakMap;#ar=null;#an=!1;constructor(e){this.#eb=e,e.addHook("beforeInit",this.#as),e.addHook("afterUpdateSettings",this.#as),e.addHook("beforeLoadData",this.#al),e.addHook("beforeUpdateData",this.#al),e.addHook("afterLoadData",this.#aa),e.addHook("afterUpdateData",this.#aa),e.columnIndexMapper.addLocalHook("indexesInserted",this.#ah),e.columnIndexMapper.addLocalHook("indexesRemoved",this.#ah)}getDeclaredIndex(e,t){if(null===this.#l8||t!==this.#at)return e;let i=this.#l8.getValueAtIndex(e);return"number"==typeof i?i:null}#as=()=>{this.#ad()};#al=()=>{this.#an=!0,this.#eb._registerMicrotask(this.#au),this.#ad(),null!==this.#ar&&(this.#ac(this.#ar.declared,this.#ar.values),this.#ar=null),null!==this.#l8&&null!==this.#at&&this.#ac(this.#at,this.#l8.getValues().slice())};#au=()=>{this.#an=!1};#ah=()=>{this.#an||"object"!=typeof this.#lw||null===this.#lw||(this.#ao.delete(this.#lw),this.#ar=null)};#ac(e,t){let i=this.#lw;if("object"!=typeof i||null===i)return;let o=this.#ao.get(i);void 0===o&&(o=new Map,this.#ao.set(i,o)),o.set(e,t)}#aa=e=>{this.#an=!1,this.#lw=e;let t=this.#l8,i=this.#at,o="object"==typeof e&&null!==e?this.#ao.get(e):void 0;if(void 0!==o&&this.#ao.delete(e),null===t||null===i||void 0===o)return;let r=o.get(i);void 0!==r&&r.length===t.getLength()&&!function(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i+=1)if(e[i]!==t[i])return!1;return!0}(t.getValues(),r)&&t.setValues(r)};#ad(){let e=this.#eb.getSettings().colWidths;Array.isArray(e)?this.#ag(e):this.#ap()}#ag(e){if(this.#at===e)return;null!==this.#at&&this.#ap();let t=new dM((e,i)=>{if(void 0===i)return e;if(0===i){let i=Math.min(e,t.getLength()),{columnIndexMapper:o}=this.#eb,r=e>=t.getLength()&&(o.indexesSequence.isIdentity()||function(e,t){let i=e.indexOf(t);for(let o=i+1;o<e.length;o+=1)if(e[o]<t)return!1;return!0}(o.getIndexesSequence(),i));this.#ai=r?function(e){let t=0;for(let i=0;i<e.length;i+=1){let o=e[i];"number"==typeof o&&o>=t&&(t=o+1)}return t}(t.getValues()):null}return null===this.#ai?null:this.#ai+i}),i=`colWidths.declaredIndex.${this.#l9}`;this.#l9+=1,this.#l8=t,this.#l7=i,this.#at=e,this.#eb.columnIndexMapper.registerMap(i,t),this.#ae=this.#eb.columnIndexMapper.observeMapChange(t,()=>{this.#eb.view?.invalidateColumnWidthCache()})}#ap(){null!==this.#l7&&(null!==this.#l8&&null!==this.#at&&(this.#ar={declared:this.#at,values:this.#l8.getValues().slice()}),this.#ae?.(),this.#eb.columnIndexMapper.unregisterMap(this.#l7),this.#l8=null,this.#l7=null,this.#ae=null,this.#at=null)}}let p3=["rowHeights","minRowHeights"];function p6(e){let t=0;for(let i=0;i<e.length;i+=1){let o=e[i];"number"==typeof o&&o>=t&&(t=o+1)}return t}class p4{#eb;#am=new Map;#af=new Map;#l9=0;#aw=new Map;#at=new Map;#ab=null;#ai=null;#lw=null;#ao=new WeakMap;#ar=new Map;#an=!1;constructor(e){this.#eb=e,e.rowIndexMapper.addLocalHook("indexesInserted",this.#aC),e.rowIndexMapper.addLocalHook("indexesRemoved",this.#ay),e.addHook("beforeInit",this.#as),e.addHook("afterUpdateSettings",this.#as),e.addHook("beforeLoadData",this.#al),e.addHook("beforeUpdateData",this.#al),e.addHook("afterLoadData",this.#aa),e.addHook("afterUpdateData",this.#aa)}getDeclaredIndex(e,t){let i=this.#am.get(e);if(void 0===i)return t;let o=i.getValueAtIndex(t);return"number"==typeof o?o:null}alignInsertedRows(e,t){let i=this.#ab;this.#ab=null,null===i||i===e||t<=0||this.#am.forEach(o=>{let r=o.getValues(),n=Math.min(i,r.length-t),s=r.slice(0,n).concat(r.slice(n+t)),l=e+t>=r.length,a=l?p6(s):0,h=Array(t);for(let e=0;e<t;e+=1)h[e]=l?a+e:null;o.setValues(s.slice(0,e).concat(h,s.slice(e)))})}readOrigins(){if(0===this.#am.size)return null;let e=new Map;return this.#am.forEach((t,i)=>e.set(i,t.getValues().slice())),e}writeOrigins(e){e.forEach((e,t)=>{this.#am.get(t)?.setValues(e)})}#aC=(e,t)=>{if(this.#ay(),this.#ab=null,this.#ai=null,0===e.length||0===this.#am.size)return;let i=this.#eb.rowIndexMapper.getNumberOfIndexes()-e.length,o=Math.min(e[0]+ +("end"===t),i),r=o>=i&&function(e,t){let i=e.indexOf(t);for(let o=i+1;o<e.length;o+=1)if(e[o]<t)return!1;return!0}(this.#eb.rowIndexMapper.getIndexesSequence(),o);this.#ab=o,this.#ai=new Map,this.#am.forEach((e,t)=>{r&&this.#ai.set(t,p6(e.getValues()))})};#ay=()=>{this.#an||"object"!=typeof this.#lw||null===this.#lw||(this.#ao.delete(this.#lw),this.#ar.clear())};#al=()=>{this.#an=!0,this.#ar.forEach(({declared:e,values:t},i)=>this.#ac(i,e,t)),this.#ar.clear(),this.#aS()};#as=()=>{let e=this.#eb.getSettings();p3.forEach(t=>{let i=e[t];Array.isArray(i)?this.#ag(t,i):this.#ap(t)})};#aS(){this.#am.forEach((e,t)=>{let i=this.#at.get(t);void 0!==i&&this.#ac(t,i,e.getValues().slice())})}#aa=e=>{this.#an=!1,this.#lw=e,this.#am.forEach((e,t)=>this.#av(t)),"object"==typeof e&&null!==e&&this.#ao.delete(e)};#ac(e,t,i){let o=this.#lw;if("object"!=typeof o||null===o)return;let r=this.#ao.get(o);void 0===r&&(r=new Map,this.#ao.set(o,r));let n=r.get(e);void 0===n&&(n=new Map,r.set(e,n)),n.set(t,i)}#av(e){let t=this.#am.get(e),i=this.#at.get(e),o=this.#lw,r="object"==typeof o&&null!==o?this.#ao.get(o)?.get(e):void 0;if(void 0===t||void 0===i||void 0===r)return;let n=r.get(i);void 0!==n&&n.length===t.getLength()&&t.setValues(n)}#ag(e,t){let i=this.#at.get(e);if(i===t)return;void 0!==i&&this.#ap(e);let o=new dM((t,i)=>{if(void 0===i)return t;let o=this.#ai?.get(e);return void 0===o?null:o+i}),r=`${e}.declaredIndex.${this.#l9}`;this.#l9+=1,this.#am.set(e,o),this.#af.set(e,r),this.#at.set(e,t),this.#eb.rowIndexMapper.registerMap(r,o),this.#aw.set(e,this.#eb.rowIndexMapper.observeMapChange(o,()=>{this.#eb.view?.invalidateRowHeightCache()}))}#ap(e){let t=this.#af.get(e);if(void 0===t)return;let i=this.#am.get(e),o=this.#at.get(e);void 0!==i&&void 0!==o&&this.#ar.set(e,{declared:o,values:i.getValues().slice()}),this.#aw.get(e)?.(),this.#eb.rowIndexMapper.unregisterMap(t),this.#am.delete(e),this.#af.delete(e),this.#aw.delete(e),this.#at.delete(e)}}function p5(e,t,i,o=!1){for(let r=0;r<i;r+=1){let i=e.props[r],n=t.props[r];if(i!==n&&!(o&&"function"==typeof i&&"function"==typeof n))return!1}return!0}let p8=Object.freeze({CELL:"cell",MIXED:"mixed"});class p7{#eb;#aR=null;#ax=!1;#aE;#aM=1;#ak=null;#aI=new Map;#aT=null;#aA=!1;#aH=new Set;constructor(e){this.#eb=e}init(){let e=this.#eb.getSettings();this.#aE=e.imeFastEdit?p8.MIXED:p8.CELL,this.#eb.addHook("afterUpdateSettings",(...e)=>this.#aO(e[0])),this.#eb.addHook("afterSelection",(...e)=>this.#aD()),this.#eb.addHook("afterSelectionFocusSet",(...e)=>this.#aD()),this.#eb.addHook("afterSelectionEnd",(...e)=>this.#aP()),this.#eb.addHook("afterRender",(...e)=>this.#a_()),this.#aR=new r2(this.#eb);let t=[this.#eb.rootWrapperElement??this.#eb.rootElement,this.#eb.rootPortalElement].filter(e=>oG(e));t.forEach(e=>{this.#aR.addEventListener(e,"focusin",()=>{this.#ax=!0}),this.#aR.addEventListener(e,"focusout",e=>{let i=e.relatedTarget;this.#ax=oG(i)&&t.some(e=>e.contains(i))})})}hasBrowserFocus(){return this.#ax}registerOutsideClickExemptElement(e){this.#aH.add(e)}unregisterOutsideClickExemptElement(e){this.#aH.delete(e)}isPathOutsideClickExempt(e){return 0!==this.#aH.size&&e.some(e=>oG(e)&&this.#aH.has(e))}isForeignFocusTarget(e){let{rootElement:t,rootWrapperElement:i,rootPortalElement:o,rootDocument:r}=this.#eb,n=!!i&&i.contains(e)&&!t.contains(e);return!(null===e||e===r.body||e===r.documentElement||iI(e,t)||n||o&&o.contains(e))&&!oX(t).includes(e)}getFocusMode(){return this.#aE}setFocusMode(e){Object.values(p8).includes(e)?this.#aE=e:ir(`"${e}" is not a valid focus mode.`)}getRefocusDelay(){return this.#aM}setRefocusDelay(e){this.#aM=e}setRefocusElementGetter(e){this.#ak=e}suspend(){this.#aA=!0}resume(){this.#aA=!1}getRefocusElement(){return"function"==typeof this.#ak?this.#ak():this.#eb.getActiveEditor()?.TEXTAREA}focusElement(e,t){return!!oG(e)&&!!e.isConnected&&(e.focus(t),!0)}focusOnHighlightedCell(e){let t=e=>{let t=this.#eb.getSelectedRangeActive()?.highlight;if(!t)return;let i=this.#eb.runHooks("modifyFocusedElement",t.row,t.col,e);oG(i)||(i=e),i&&!this.#eb.getActiveEditor()?.isOpened?.()&&this.focusElement(i,{preventScroll:!0})};e?t(e):this.#aF(e=>t(e))}refocusToEditorTextarea(e=this.#aM){this.#eb.getSettings().imeFastEdit&&!this.#eb.getActiveEditor()?.isOpened?.()&&(this.#eb.getActiveEditor()?.refreshValue?.(),this.#aI.has(e)||this.#aI.set(e,o5(()=>{if(!this.#eb.isDestroyed){let e=this.getRefocusElement();e&&this.focusElement(e,{preventScroll:!0})&&"function"==typeof e.select&&e.select()}},e)),this.#aI.get(e)())}#aF(e){let t=this.#eb.getSelectedRangeActive()?.highlight;if(!t||!this.#eb.selection.isCellVisible(t)||null===t.row||null===t.col)return void e(null);let{row:i,col:o}=t,r=this.#eb.getCell(i,o,!0);null===r?this.#eb.addHookOnce("afterScroll",()=>{e(this.#eb.getCell(i,o,!0))}):e(r)}#aN(e){this.#aF(t=>{let i=oZ(this.#eb.rootDocument),o=oG(i)?i:null;e&&o&&oL(o)||(o&&oL(o)&&o.blur(),this.focusOnHighlightedCell(t))})}#aP(){if(this.#aA){let e=oZ(this.#eb.rootDocument),t=oG(e)?e:null;if(t&&oL(t))return}this.#aF(e=>{this.getFocusMode()===p8.MIXED&&e?.nodeName==="TD"&&this.refocusToEditorTextarea()})}#aD(){this.#aT=this.#aA}#a_(){let e=this.#aT;null===e||this.#eb.isDestroyed||(this.#aT=null,this.#aN(e))}#aO(e){"boolean"==typeof e.imeFastEdit&&this.setFocusMode(e.imeFastEdit?p8.MIXED:p8.CELL)}}let p9=Object.freeze({INLINE:"inline",MODAL:"modal"}),me=Object.freeze({UNKNOWN:"unknown",CLICK:"click",TAB_FROM_ABOVE:"tab_from_above",TAB_FROM_BELOW:"tab_from_below"});function mt(e,t){let i=e.rootDocument.createElement("div");return i.style.display="none",i.classList.add("htFocusCatcher"),i.dataset.htFocusSource=t,i}function mi(e){let{rowIndexMapper:t,columnIndexMapper:i}=e,{navigableHeaders:o}=e.getSettings(),r=o&&e.countColHeaders()>0?-e.countColHeaders():0,n=o&&e.countRowHeaders()>0?-e.countRowHeaders():0,s=0===r?t.getVisualFromRenderableIndex(r):r,l=0===n?i.getVisualFromRenderableIndex(n):n;return null===s||null===l?null:e._createCellCoords(s,l)}function mo(e){let{rowIndexMapper:t,columnIndexMapper:i}=e,{navigableHeaders:o}=e.getSettings(),r=t.getRenderableIndexesLength()-1,n=i.getRenderableIndexesLength()-1;if(r<0){if(!o||0===e.countColHeaders())return null;r=-1}if(n<0){if(!o||0===e.countColHeaders())return null;n=-1}return e._createCellCoords(t.getVisualFromRenderableIndex(r)??r,i.getVisualFromRenderableIndex(n)??n)}let mr="gridDefault",mn=[["Control/Meta","C"],["Control/Meta","X"],["Control/Meta","V"]],ms="grid.tabNavigation",ml="editorManager.handlingEditor";function ma(e){return e.countRenderedRows()>0&&e.countRenderedCols()>0}function mh(e){return!!sy(e)&&e.getFocusScopeManager().isGridBodyCovered()}function md(e){return ma(e)&&!mh(e)}function mu(e){let{navigableHeaders:t}=e.getSettings();return mh(e)?!0===t&&e.getSelectedRangeActive()?.highlight.isHeader()===!0:!0===t||ma(e)}let mc=new WeakMap;function mg(e){let t=mc.get(e);return void 0===t&&(t={coords:void 0,leftByTab:!1},mc.set(e,t)),t}function mp(e){return mg(e).coords}function mm(e,t){mg(e).coords=t}function mf(e,t){mg(e).leftByTab=t}function mw(e){let t=t=>{if(!t)return null;let{rowIndexMapper:i,columnIndexMapper:o}=e;if(i.isHidden(t.row)||o.isHidden(t.col))return null;let r=mi(e),n=mo(e);return null===r||null===n?null:(t.row=nB(t.row,r.row??t.row,n.row??t.row),t.col=nB(t.col,r.col??t.col,n.col??t.col),t)},i={wrapped:!1,flipped:!1},o=!0,r=!1,n=!1;e.addHook("afterSelection",()=>{mf(e,!1),o&&mm(e,e.getSelectedRangeActive()?.highlight)}),e.addHook("afterDeselect",()=>{mf(e,n)}),e.addHook("afterDocumentKeyDown",()=>{n=!1}),e.addHook("afterLoadData",()=>{mm(e,void 0),mf(e,!1)}),e.addHook("beforeRowWrap",(e,t,o)=>{i.wrapped=!0,i.flipped=o}),e.addHook("beforeEmptyDataStateShow",()=>{r=!0}),e.addHook("beforeEmptyDataStateHide",()=>{r=!1});let s=e.getShortcutManager().getContext("grid");s?.addShortcuts([{keys:[["Tab"],["Shift","Tab"]],preventDefault:!1,stopPropagation:!1,relativeToGroup:mr,group:ms,position:"before",callback(){let{tabNavigation:t}=e.getSettings();n=!0,e.getSelectedRangeActive()&&!t&&(o=!1)}},{keys:[["Tab"],["Shift","Tab"]],preventDefault:!1,stopPropagation:!1,relativeToGroup:mr,group:ms,callback(t){let{tabNavigation:r,autoWrapRow:n}=e.getSettings();if(o=!0,!r||!e.selection.isSelected()||n&&i.wrapped&&i.flipped||!n&&i.wrapped){if(n&&i.wrapped&&i.flipped){let i=t.shiftKey?mi(e):mo(e);mm(e,i)}i.wrapped=!1,i.flipped=!1}},position:"after"}]);let l=e.rootGridContentElement??e.rootElement;e.getFocusScopeManager().registerScope("grid",l,{contains:t=>!!(l===t||l.contains(t))||null===t.closest(".htMenu")&&e.rootPortalElement.contains(t),runOnlyIf:()=>{let{navigableHeaders:t}=e.getSettings();return!((r||!t)&&0===e.countRenderedRows()&&0===e.countRenderedCols()&&e.countRowHeaders()>0&&e.countColHeaders()>0)&&!!(!t&&ma(e)||t&&(e.countRowHeaders()>0||e.countColHeaders()>0))},onActivate:i=>{if("tab_from_above"===i){let i=t(mp(e))??mi(e);if(i){let t=e.runHooks("modifyFocusOnTabNavigation","from_above",i),{row:o,col:r}=i;!1!==t&&null!==o&&null!==r&&(e.selectCell(o,r),e.getFocusManager().focusOnHighlightedCell())}}else if("tab_from_below"===i){let i=t(mp(e))??mo(e);if(i){let t=e.runHooks("modifyFocusOnTabNavigation","from_below",i),{row:o,col:r}=i;!1!==t&&null!==o&&null!==r&&e.selectCell(o,r)}}}})}let mb=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"]]),mC=e=>e.map(e=>{let t=e.toLowerCase();return mb.has(t)?mb.get(t)??t:t}).sort((e,t)=>e.localeCompare(t)).join("+"),my=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"]]),mS=({which:e,key:t})=>{if(my.has(e))return my.get(e)??t.toLowerCase();let i=String.fromCharCode(e).toLowerCase();return/^[a-z0-9]$/.test(i)?i:t.toLowerCase()},mv=["meta","alt","shift","control"],mR=(e,t=!1)=>{let i=[];return e.altKey&&i.push("alt"),t&&(e.ctrlKey||e.metaKey)?i.push("control/meta"):(e.ctrlKey&&i.push("control"),e.metaKey&&i.push("meta")),e.shiftKey&&i.push("shift"),i},mx=(e,t)=>{if("string"!=typeof e.key)return[];let i=mS(e),o=mv.includes(i),r=o?[]:mR(e),n=[[i].concat(r)];return!o&&("function"==typeof t&&t()?r.includes("meta"):r.includes("control"))&&n.push([i].concat(mR(e,!0))),n},mE=Symbol("shortcut-context");function mM(e){return tM(e)&&e.__kindOf===mE}let mk=(e,t)=>e.relativeToGroup===t&&"before"===e.position,mI=(i=new Set,{press(e){i.add(e)},release(e){i.delete(e)},setPressed(e,t){t?i.add(e):i.delete(e)},releaseAll(){i.clear()},isPressed:e=>i.has(e)}),mT=new WeakMap,mA=e=>{mI.setPressed("alt",e.altKey),mI.setPressed("control",e.ctrlKey),mI.setPressed("meta",e.metaKey),mI.setPressed("shift",e.shiftKey)},mH=e=>{if("string"==typeof e.key){mA(e);let t=mS(e);mv.includes(t)&&mI.press(t)}},mO=e=>{if("string"==typeof e.key){mA(e);let t=mS(e);mv.includes(t)&&mI.release(t)}};function mD(e){let t=e.countCols(),i=e.view.countFixedColumnsEnd(),o=e.columnIndexMapper.getNearestNotHiddenIndex(t-i-1,-1);return 0===i||null!==o&&o>=e.view.countFixedColumnsStart()?o:null}let mP={name:"selectAllCells",callback({selection:e}){e.markSource("keyboard"),e.selectAll(!0,!0,{disableHeadersHighlight:!0}),e.markEndSource()}},m_="ht-link",mF="ht-link-scheme",mN=/^mailto:/i,mL=/^tel:/i;function mB(e,{href:t,target:i,classNames:o=[]}){let r=e.createElement("a");return r.className=[m_,...o.map(e=>e.trim()).filter(e=>""!==e)].join(" "),r.href=t,r.target=i,r.rel="noopener noreferrer",r.tabIndex=-1,r}function mV(e,t){let i=i6(e);for(;i.firstChild;)t.appendChild(i.firstChild);i.appendChild(t)}function mz(e){let t;if("mailto:"===e.protocol)t=mN;else{if("tel:"!==e.protocol)return!1;t=mL}let i=e.ownerDocument,o=i.createTreeWalker(e,NodeFilter.SHOW_TEXT),r=null,n=o.nextNode();for(;null!==n;){if(/\S/.test(n.data)){r=n;break}n=o.nextNode()}if(null===r||!t.test(r.data.trimStart()))return!1;let s=r.data.length-r.data.trimStart().length,l=s>0?r.splitText(s):r;l.splitText(e.protocol.length);let a=i.createElement("span");return a.className=mF,l.parentNode?.insertBefore(a,l),a.appendChild(l),!0}function mW(e,t){if(null===e.firstElementChild)return 0;let i=new Set,o=0;for(let r of Array.from(e.querySelectorAll(t))){if(!e.contains(r))continue;let t=function(e){let{parentNode:t}=e;for(;e.firstChild;)t?.insertBefore(e.firstChild,e);return e.remove(),t}(r);null!==t&&i.add(t),o+=1}return i.forEach(e=>e.normalize()),o}function m$(e){let t=e.getSelectedRangeActive()?.highlight;return t&&t.isCell()&&null!==t.row&&null!==t.col?e.getCell(t.row,t.col)?.querySelector(`a.${m_}`)??null:null}let mU=[{name:"editorCloseAndSave",callback(e){e._getEditorManager().closeEditorAndSaveChanges()}},{name:"editorCloseAndSaveByArrowKeys",callback(e,t,i){let o=e._getEditorManager(),r=o.getActiveEditor();if(!r?.isInFullEditMode()||r?.state!==rJ.EDITING){if(o.closeEditorAndSaveChanges(),e.isDestroyed)return void t.preventDefault();e.getSelected()&&(i.includes("arrowdown")?e.selection.transformStart(1,0):i.includes("arrowup")?e.selection.transformStart(-1,0):i.includes("arrowleft")?e.selection.transformStart(0,-1*e.getDirectionFactor()):i.includes("arrowright")&&e.selection.transformStart(0,e.getDirectionFactor())),t.preventDefault()}}},{name:"editorCloseAndSaveByEnter",callback(e,t){let i=e._getEditorManager();i.closeEditorAndSaveChanges(t.ctrlKey||t.metaKey),e.isDestroyed||i.moveSelectionAfterEnter(t)}},{name:"editorCloseWithoutSaving",callback(e){let t=e._getEditorManager();t.closeEditorAndRestoreOriginalValue(e.getShortcutManager().isCtrlPressed()),t.activeEditor?.focus()}},{name:"editorFastOpen",callback(e,t){let i=e.getSelectedRangeActive()?.highlight;i?.isHeader()||e._getEditorManager().openEditor(null,t,!0)}},{name:"editorOpen",callback(e,t,i){let{selection:o}=e,r=e._getEditorManager(),n=e.getSelectedRange(),s=e.getSelectedRangeActive(),l=s?.highlight;if((n?.some(e=>o.isMultiple(e))||(n?.length??0)>1)&&!s?.isHeader()&&ma(e)){let r=e.getSettings(),n="function"==typeof r.enterMoves?r.enterMoves(t):r.enterMoves;i.includes("shift")?o.transformFocus(-(n?.row??0),-(n?.col??0)):o.transformFocus(n?.row??0,n?.col??0);return}l?.isHeader()||(e.getSettings().enterBeginsEditing?(r.openEditor(null,t,!0),!r.isEditorOpened()&&r.cellProperties?.readOnly&&r.moveSelectionAfterEnter(t)):r.moveSelectionAfterEnter(t),rh(t))}},{name:"extendCellsSelectionDown",callback(e){let{selection:t}=e,i=e.getSelectedRangeActive()?.highlight;!t.isSelectedByColumnHeader()&&!t.isSelectedByCorner()&&(i?.isCell()||i?.isHeader()&&t.isSelectedByRowHeader())&&(t.markSource("keyboard"),t.transformEnd(1,0),t.markEndSource())}},{name:"extendCellsSelectionDownByViewportHeight",callback(e){let{selection:t,rowIndexMapper:i}=e,o=e.getSelectedRangeActive();if(!o)return;let{to:r}=o,n=r.row??0,s=Math.min(n+e.countVisibleRows(),e.countRows()-1),l=i.getNearestNotHiddenIndex(s,-1);if(null!==l){let i=e._createCellCoords(l,r.col??0),o=n-(e.getFirstFullyVisibleRow()??0),s=Math.min((i.row??0)-o,e.countRows()-1);t.markSource("keyboard"),t.setRangeEnd(i,e.getActiveSelectionLayerIndex()),t.markEndSource(),e.scrollViewportTo({row:s,verticalSnap:"top",horizontalSnap:"start"})}}},{name:"extendCellsSelectionLeft",callback(e){let{selection:t}=e,i=e.getSelectedRangeActive()?.highlight;!t.isSelectedByRowHeader()&&!t.isSelectedByCorner()&&(i?.isCell()||i?.isHeader()&&t.isSelectedByColumnHeader())&&(t.markSource("keyboard"),t.transformEnd(0,-1*e.getDirectionFactor()),t.markEndSource())}},{name:"extendCellsSelectionRight",callback(e){let{selection:t}=e,i=e.getSelectedRangeActive()?.highlight;!t.isSelectedByRowHeader()&&!t.isSelectedByCorner()&&(i?.isCell()||i?.isHeader()&&t.isSelectedByColumnHeader())&&(t.markSource("keyboard"),t.transformEnd(0,e.getDirectionFactor()),t.markEndSource())}},{name:"extendCellsSelectionToColumns",callback(e){let{selection:t}=e,i=e.getSelectedRangeActive();if(!i)return;let{highlight:o,from:r,to:n}=i;t.markSource("keyboard"),t.isSelectedByRowHeader()?t.selectAll(!0,!0):e.selectColumns(r.col??0,n.col??0,o),t.markEndSource()}},{name:"extendCellsSelectionToMostBottom",callback(e){let{selection:t,rowIndexMapper:i}=e,o=e.getSelectedRangeActive();if(!o)return;let{highlight:r,from:n,to:s}=o,l=r.isHeader()&&t.isSelectedByRowHeader();if(r.isCell()||l){let o=i.getNearestNotHiddenIndex(e.countRows()-1,-1),a=n.clone();a.row=r.row,t.markSource("keyboard"),t.setRangeStart(a,void 0,!1,r.clone()),l&&t.selectedByRowHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(o??0,s.col??0)),t.markEndSource()}}},{name:"extendCellsSelectionToMostInlineEnd",callback(e){let{selection:t}=e,i=e.getSelectedRangeActive();if(!i)return;let{highlight:o,from:r,to:n}=i;if(!t.isSelectedByRowHeader()&&!t.isSelectedByCorner()&&o.isCell()){let i=mD(e);if(null===i&&(e.getSettings().fixedColumnsEnd??0)>0)return;let s=r.clone();s.col=o.col,t.markSource("keyboard"),t.setRangeStart(s,void 0,!1,o.clone()),t.setRangeEnd(e._createCellCoords(n.row??0,i??0)),t.markEndSource()}}},{name:"extendCellsSelectionToMostInlineStart",callback(e){let{selection:t,columnIndexMapper:i}=e,o=e.getSelectedRangeActive();if(!o)return;let{highlight:r,from:n,to:s}=o;if(!t.isSelectedByRowHeader()&&!t.isSelectedByCorner()&&r.isCell()){let o=e.view.countFixedColumnsStart(),l=i.getNearestNotHiddenIndex(o,1),a=n.clone();a.col=r.col,t.markSource("keyboard"),t.setRangeStart(a,void 0,!1,r.clone()),t.setRangeEnd(e._createCellCoords(s.row??0,l??0)),t.markEndSource()}}},{name:"extendCellsSelectionToMostLeft",callback(e){let{selection:t,columnIndexMapper:i}=e,o=e.getSelectedRangeActive();if(!o)return;let{highlight:r,from:n,to:s}=o,l=r.isHeader()&&t.isSelectedByColumnHeader();if(r.isCell()||l){let o=e.isRtl()?i.getNearestNotHiddenIndex(e.countCols()-1,-1):i.getNearestNotHiddenIndex(0,1),a=n.clone();a.col=r.col,t.markSource("keyboard"),t.setRangeStart(a,void 0,!1,r.clone()),l&&t.selectedByColumnHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(s.row??0,o??0)),t.markEndSource()}}},{name:"extendCellsSelectionToMostRight",callback(e){let{selection:t,columnIndexMapper:i}=e,o=e.getSelectedRangeActive();if(!o)return;let{highlight:r,from:n,to:s}=o,l=r.isHeader()&&t.isSelectedByColumnHeader();if(r.isCell()||l){let o=e.isRtl()?i.getNearestNotHiddenIndex(0,1):i.getNearestNotHiddenIndex(e.countCols()-1,-1),a=n.clone();a.col=r.col,t.markSource("keyboard"),t.setRangeStart(a,void 0,!1,r.clone()),l&&t.selectedByColumnHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(s.row??0,o??0)),t.markEndSource()}}},{name:"extendCellsSelectionToMostTop",callback(e){let{selection:t,rowIndexMapper:i}=e,o=e.getSelectedRangeActive();if(!o)return;let{highlight:r,from:n,to:s}=o,l=r.isHeader()&&t.isSelectedByRowHeader();if(r.isCell()||l){let o=i.getNearestNotHiddenIndex(0,1),a=n.clone();a.row=r.row,t.markSource("keyboard"),t.setRangeStart(a,void 0,!1,r.clone()),l&&t.selectedByRowHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(o??0,s.col??0)),t.markEndSource()}}},{name:"extendCellsSelectionToRows",callback(e){let{selection:t}=e,i=e.getSelectedRangeActive();if(!i)return void t.markEndSource();let{highlight:o,from:r,to:n}=i;t.markSource("keyboard"),t.isSelectedByColumnHeader()?t.selectAll(!0,!0):e.selectRows(r.row??0,n.row??0,o),t.markEndSource()}},{name:"extendCellsSelectionUp",callback(e){let{selection:t}=e,i=e.getSelectedRangeActive()?.highlight;!t.isSelectedByColumnHeader()&&!t.isSelectedByCorner()&&(i?.isCell()||i?.isHeader()&&t.isSelectedByRowHeader())&&(t.markSource("keyboard"),t.transformEnd(-1,0),t.markEndSource())}},{name:"extendCellsSelectionUpByViewportHeight",callback(e){let{selection:t,rowIndexMapper:i}=e,o=e.getSelectedRangeActive();if(!o)return;let{to:r}=o,n=r.row??0,s=Math.max(n-e.countVisibleRows(),0),l=i.getNearestNotHiddenIndex(s,1);if(null!==l){let i=e._createCellCoords(l,r.col??0),o=n-(e.getFirstFullyVisibleRow()??0),s=Math.max((i.row??0)-o,0);t.markSource("keyboard"),t.setRangeEnd(i,e.getActiveSelectionLayerIndex()),t.markEndSource(),e.scrollViewportTo({row:s,verticalSnap:"top",horizontalSnap:"start"})}}},{name:"moveCellSelectionDown",callback({selection:e}){e.markSource("keyboard"),e.transformStart(1,0),e.markEndSource()}},{name:"moveCellSelectionDownByViewportHeight",callback(e){let{selection:t}=e,{navigableHeaders:i}=e.getSettings(),o=i?e.countColHeaders():0,r=e.getSelectedRangeActive()?.highlight.row??0,n=e.countVisibleRows()+o;n=0===n?1:n,r===e.countRows()-1?n=1:r+n>e.countRows()&&(n=e.countRows()-r-1),t.markSource("keyboard"),t.transformStart(n,0),t.markEndSource();let s=e.view.countFixedRowsBottom(),l=e.countRows(),a=e.getSelectedRangeActive()?.highlight.row??0;a<0?e.scrollViewportTo({row:0}):s>0&&a>=l-s&&e.scrollViewportTo({row:l-s-1,verticalSnap:"bottom"})}},{name:"moveCellSelectionInlineEnd",callback(e,t){let{selection:i}=e,o=e.getSettings(),r=e.getSelectedRange(),n=e.getSelectedRangeActive(),s="function"==typeof o.tabMoves?o.tabMoves(t):o.tabMoves;i.markSource("keyboard"),i.markTabNavigation(),(r?.some(e=>i.isMultiple(e))||(r?.length??0)>1)&&!n?.isHeader()&&ma(e)?i.transformFocus(-(s?.row??0),-(s?.col??0)):i.transformStart(-(s?.row??0),-(s?.col??0)),i.markEndSource()}},{name:"moveCellSelectionInlineStart",callback(e,t){let{selection:i}=e,o=e.getSettings(),r=e.getSelectedRange(),n=e.getSelectedRangeActive(),s="function"==typeof o.tabMoves?o.tabMoves(t):o.tabMoves;i.markSource("keyboard"),i.markTabNavigation(),(r?.some(e=>i.isMultiple(e))||(r?.length??0)>1)&&!n?.isHeader()&&ma(e)?i.transformFocus(s?.row??0,s?.col??0):i.transformStart(s?.row??0,s?.col??0),i.markEndSource()}},{name:"moveCellSelectionLeft",callback(e){let{selection:t}=e;t.markSource("keyboard"),t.transformStart(0,-1*e.getDirectionFactor()),t.markEndSource()}},{name:"moveCellSelectionRight",callback(e){let{selection:t}=e;t.markSource("keyboard"),t.transformStart(0,e.getDirectionFactor()),t.markEndSource()}},{name:"moveCellSelectionToMostBottom",callback(e){let{selection:t}=e,i=e.getSelectedRangeActive()?.highlight.col??0,o=e.rowIndexMapper.getNearestNotHiddenIndex(e.countRows()-1,-1);null===o&&(o=-1),t.setRangeStart(e._createCellCoords(o,i))}},{name:"moveCellSelectionToMostBottomInlineEnd",callback(e){let{selection:t,rowIndexMapper:i}=e,o=e.view.countFixedRowsBottom(),r=i.getNearestNotHiddenIndex(e.countRows()-o-1,-1),n=mD(e);null===n&&(e.getSettings().fixedColumnsEnd??0)>0||(t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(r??-1,n??-1)),t.markEndSource())}},{name:"moveCellSelectionToMostInlineEnd",callback(e){let{selection:t}=e,i=mD(e);null===i&&(e.getSettings().fixedColumnsEnd??0)>0||(t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(e.getSelectedRangeActive()?.highlight.row??0,i??0)),t.markEndSource())}},{name:"moveCellSelectionToMostInlineStart",callback(e){let{selection:t,columnIndexMapper:i}=e,o=e.view.countFixedColumnsStart(),r=e.getSelectedRangeActive()?.highlight.row??0,n=i.getNearestNotHiddenIndex(o,1);t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(r,n??0)),t.markEndSource()}},{name:"moveCellSelectionToMostLeft",callback(e){let{selection:t,columnIndexMapper:i}=e,o=e.getSelectedRangeActive()?.highlight.row??0,r=e.isRtl()?i.getNearestNotHiddenIndex(e.countCols()-1,-1):i.getNearestNotHiddenIndex(0,1);null===r&&(r=e.isRtl()?-1:-e.countRowHeaders()),t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(o,r)),t.markEndSource()}},{name:"moveCellSelectionToMostRight",callback(e){let{selection:t,columnIndexMapper:i}=e,o=e.getSelectedRangeActive()?.highlight.row??0,r=e.isRtl()?i.getNearestNotHiddenIndex(0,1):i.getNearestNotHiddenIndex(e.countCols()-1,-1);null===r&&(r=e.isRtl()?-e.countRowHeaders():-1),t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(o,r)),t.markEndSource()}},{name:"moveCellSelectionToMostTop",callback(e){let{selection:t}=e,i=e.getSelectedRangeActive()?.highlight.col??0,o=e.rowIndexMapper.getNearestNotHiddenIndex(0,1);null===o&&(o=-e.countColHeaders()),t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(o,i)),t.markEndSource()}},{name:"moveCellSelectionToMostTopInlineStart",callback(e){let{selection:t,rowIndexMapper:i,columnIndexMapper:o}=e,r=e.view.countFixedRowsTop(),n=e.view.countFixedColumnsStart(),s=i.getNearestNotHiddenIndex(r,1),l=o.getNearestNotHiddenIndex(n,1);t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(s??0,l??0)),t.markEndSource()}},{name:"moveCellSelectionUp",callback({selection:e}){e.markSource("keyboard"),e.transformStart(-1,0),e.markEndSource()}},{name:"moveCellSelectionUpByViewportHight",callback(e){let{selection:t}=e,{navigableHeaders:i}=e.getSettings(),o=i?e.countColHeaders():0,r=e.getSelectedRangeActive()?.highlight.row??0,n=e.countVisibleRows()+o;n=0===n?-1:-n,r===-o?n=-1:r+n<o&&(n=-(r+o)),t.markSource("keyboard"),t.transformStart(n,0),t.markEndSource();let s=e.view.countFixedRowsTop();(e.getSelectedRangeActive()?.highlight.row??0)<s&&e.scrollViewportTo({row:s,verticalSnap:"top"})}},{name:"emptySelectedCells",callback(e){e.emptySelectedCells(),e.isDestroyed||e._getEditorManager().prepareEditor()}},{name:"scrollToFocusedCell",callback(e){let t=e.getSelectedRangeActive()?.highlight;if(!t)return;let i=e.getFirstFullyVisibleRow()-1,o=e.getFirstFullyVisibleColumn()-1,r=e.getLastFullyVisibleRow()+1,n=e.getLastFullyVisibleColumn()+1,s=e._createCellCoords(i,o),l=e._createCellCoords(r,n);if(!e._createCellRange(s,s,l).includes(t)&&((t.row??-1)>=0||(t.col??-1)>=0)){let i={};if((t.col??-1)>=0){let o=Math.floor(e.countVisibleCols()/2);i.col=Math.max((t.col??0)-o,0)}if((t.row??-1)>=0){let o=Math.floor(e.countVisibleRows()/2);i.row=Math.max((t.row??0)-o,0)}e.scrollViewportTo({...i,verticalSnap:"top",horizontalSnap:"start"})}}},mP,{name:"selectAllCellsAndHeaders",callback({selection:e}){e.markSource("keyboard"),e.selectAll(!0,!0,{disableHeadersHighlight:!1}),e.markEndSource()}},{name:"populateSelectedCellsData",callback(e){let t=e.getSelectedRange();if(!t?.length)return;let i=(e.getSelectedRangeActive()??t[t.length-1]).highlight.normalize(),o=i.row??0,r=i.col??0,n=rj(e,e.getDataAtCell(o,r),t,o,r);n.length>0&&e.setDataAtCell(n)}},{name:"tabNavigation",callback(e){let t={wrapped:!1,flipped:!1},i=!1,o=!1;return e.addHook("afterSelection",(e,r,n,s,l)=>{i&&(t.wrapped&&t.flipped||o)&&(o=!1,l.value=!0)}),e.addHook("beforeRowWrap",(e,i,o)=>{t.wrapped=!0,t.flipped=o}),{before(){let{tabNavigation:t}=e.getSettings();i=!0,t||(o=!0)},after(o){let{tabNavigation:r,autoWrapRow:n}=e.getSettings();if(i=!1,!r||!mu(e)||!e.selection.isSelected()||n&&t.wrapped&&t.flipped||!n&&t.wrapped)return t.wrapped=!1,t.flipped=!1,e.deselectCell(),!1;o.preventDefault()}}}},{name:"openCellLink",callback(e){let t=m$(e);null!==t&&e.rootWindow.open(t.href,t.target||"_blank","noopener,noreferrer")}}];function mG(e){let t={};return mU.forEach(({name:i,callback:o})=>{t[i]=(...t)=>o(e,...t)}),t}function mj(e){let t=e.getShortcutManager().addContext("editor"),i=mG(e);t.addShortcuts([{keys:[["Enter"],["Enter","Shift"]],callback:(e,t)=>i.editorCloseAndSaveByEnter(e,t)},{keys:[["Enter","Control/Meta"],["Enter","Control/Meta","Shift"]],captureCtrl:!0,callback:(e,t)=>i.editorCloseAndSaveByEnter(e,t)},{keys:[["Tab"],["Tab","Shift"],["PageDown"],["PageUp"]],forwardToContext:e.getShortcutManager().getContext("grid"),callback:(e,t)=>i.editorCloseAndSave(e,t)},{keys:[["ArrowDown"],["ArrowUp"],["ArrowLeft"],["ArrowRight"]],preventDefault:!1,callback:(e,t)=>i.editorCloseAndSaveByArrowKeys(e,t)},{keys:[["Escape"],["Escape","Control/Meta"]],callback:()=>i.editorCloseWithoutSaving()}],{group:ml})}function mq(e){var t;let i,o=e.getShortcutManager().addContext("grid"),r=(t=mG(e),i={},Object.keys(t).forEach(o=>{let r=t[o];i[o]=(...t)=>{let i=mh(e)?e.getSelectedRangeActive()?.highlight:void 0;if(i?.isHeader()!==!0)return r(...t);let{row:o,col:n}=i,s=r(...t);return"number"==typeof o&&"number"==typeof n&&e.getSelectedRangeActive()?.highlight.isHeader()===!1&&e.selectCell(o,n),s}}),i),n=()=>eU(e.getSelected())&&mu(e);o.addShortcuts([{keys:[["F2"]],callback:e=>r.editorFastOpen(e)},{keys:[["Enter"],["Enter","Shift"]],callback:(e,t)=>r.editorOpen(e,t)},{keys:[["Backspace"],["Delete"]],callback:()=>r.emptySelectedCells()}],{group:ml,runOnlyIf:()=>eU(e.getSelected())&&md(e)}),o.addShortcuts(mn.map(e=>({keys:[e],callback:()=>{}})),{group:"gridClipboard",preventDefault:!1}),o.addShortcuts([{keys:[["Control/Meta","A"]],callback:()=>r.selectAllCells(),runOnlyIf:()=>n()&&!e.getSelectedRangeActive()?.highlight.isHeader()},{keys:[["Control/Meta","A"]],callback:()=>{},runOnlyIf:()=>!!(n()&&e.getSelectedRangeActive()?.highlight.isHeader()),preventDefault:!0},{keys:[["Control/Meta","Shift","Space"]],callback:()=>r.selectAllCellsAndHeaders()},{keys:[["Control/Meta","Enter"]],callback:()=>r.populateSelectedCellsData(),runOnlyIf:()=>{let t=e.getSelectedRangeActive()?.highlight;if(!eU(e.getSelected())||!md(e)||void 0===t||t.isHeader())return!1;let{row:i,col:o}=t.normalize();return rK(e,e.getDataAtCell(i,o),i,o)}},{keys:[["Alt","Enter"]],stopPropagation:!0,callback:()=>r.openCellLink(),runOnlyIf:()=>md(e)&&null!==m$(e)},{keys:[["Control","Space"]],captureCtrl:!0,callback:()=>r.extendCellsSelectionToColumns()},{keys:[["Shift","Space"]],stopPropagation:!0,callback:()=>r.extendCellsSelectionToRows()},{keys:[["ArrowUp"]],callback:()=>r.moveCellSelectionUp()},{keys:[["ArrowUp","Control/Meta"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostTop()},{keys:[["ArrowUp","Shift"]],callback:()=>r.extendCellsSelectionUp()},{keys:[["ArrowUp","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>r.extendCellsSelectionToMostTop(),runOnlyIf:()=>n()&&!(e.selection.isSelectedByCorner()||e.selection.isSelectedByColumnHeader())},{keys:[["ArrowDown"]],callback:()=>r.moveCellSelectionDown()},{keys:[["ArrowDown","Control/Meta"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostBottom()},{keys:[["ArrowDown","Shift"]],callback:()=>r.extendCellsSelectionDown()},{keys:[["ArrowDown","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>r.extendCellsSelectionToMostBottom(),runOnlyIf:()=>n()&&!(e.selection.isSelectedByCorner()||e.selection.isSelectedByColumnHeader())},{keys:[["ArrowLeft"]],callback:()=>r.moveCellSelectionLeft()},{keys:[["ArrowLeft","Control/Meta"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostLeft()},{keys:[["ArrowLeft","Shift"]],callback:()=>r.extendCellsSelectionLeft()},{keys:[["ArrowLeft","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>r.extendCellsSelectionToMostLeft(),runOnlyIf:()=>n()&&!(e.selection.isSelectedByCorner()||e.selection.isSelectedByRowHeader())},{keys:[["ArrowRight"]],callback:()=>r.moveCellSelectionRight()},{keys:[["ArrowRight","Control/Meta"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostRight()},{keys:[["ArrowRight","Shift"]],callback:()=>r.extendCellsSelectionRight()},{keys:[["ArrowRight","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>r.extendCellsSelectionToMostRight(),runOnlyIf:()=>n()&&!(e.selection.isSelectedByCorner()||e.selection.isSelectedByRowHeader())},{keys:[["Home"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostInlineStart(),runOnlyIf:()=>n()&&e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["Home","Shift"]],callback:()=>r.extendCellsSelectionToMostInlineStart()},{keys:[["Home","Control/Meta"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostTopInlineStart(),runOnlyIf:()=>n()&&e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["End"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostInlineEnd(),runOnlyIf:()=>n()&&e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["End","Shift"]],callback:()=>r.extendCellsSelectionToMostInlineEnd()},{keys:[["End","Control/Meta"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostBottomInlineEnd(),runOnlyIf:()=>n()&&e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["PageUp"]],callback:()=>r.moveCellSelectionUpByViewportHight()},{keys:[["PageUp","Shift"]],callback:()=>r.extendCellsSelectionUpByViewportHeight()},{keys:[["PageDown"]],callback:()=>r.moveCellSelectionDownByViewportHeight()},{keys:[["PageDown","Shift"]],callback:()=>r.extendCellsSelectionDownByViewportHeight()},{keys:[["Tab"]],preventDefault:!1,callback:e=>r.moveCellSelectionInlineStart(e)},{keys:[["Shift","Tab"]],preventDefault:!1,callback:e=>r.moveCellSelectionInlineEnd(e)},{keys:[["Control/Meta","Backspace"]],callback:()=>r.scrollToFocusedCell()}],{runOnlyIf:n,group:mr});let s=r.tabNavigation();o.addShortcuts([{keys:[["Tab"],["Shift","Tab"]],preventDefault:!1,stopPropagation:!1,relativeToGroup:mr,group:ms,position:"before",callback:e=>s.before(e)},{keys:[["Tab"],["Shift","Tab"]],preventDefault:!1,stopPropagation:!1,relativeToGroup:mr,group:ms,callback:e=>s.after(e),position:"after"}])}function mK(e){let{classNames:t}=iF(e,/ht-theme-[a-zA-Z0-9_-]+/);return t.pop()}let mY="handsontable-core-styles";function mX(e){return"string"==typeof e&&/ht-theme-.*/.test(e)}class mZ{#eb;#aL;#aB;#aV=null;#az=!1;#tf;#aW;#a$={};#aU={};#aG={};#aj=null;#aq;constructor({hot:e,rootElement:t,rootDocument:i,onThemeChange:o=e=>{},injectCoreCss:r=!0}){this.#eb=e,this.#aB=t,this.#tf=i,this.#aq=o,this.#aW=r,r&&this.#aK()}isCoreCssInjectionEnabled(){return this.#aW}getCSSVariableValue(e){if(this.#a$[`--ht-${e}`])return this.#a$[`--ht-${e}`];let t=this.#aY(`--ht-${e}`)??this.#aX(`--ht-${e}`);if(null!==t)return this.#a$[`--ht-${e}`]=t,t}getResolvedLength(e){if(e in this.#aU)return this.#aU[e];let t=this.#tf.createElement("div");t.style.cssText="position:absolute;visibility:hidden;pointer-events:none;box-sizing:content-box;height:0;margin:0;padding:0;border:0;",t.style.width=e,this.#aB.appendChild(t);let i=t.offsetWidth;return(this.#aB.removeChild(t),i>0)?(this.#aU[e]=i,i):null}getStyleForTD(e){return this.#aG?.td?.[e]}getDefaultRowHeight(e){let t=this.#aZ();return void 0!==e&&this.firstRenderedRowDrawsTopBorder()&&e===this.#eb.view.getFirstRenderedVisibleRow()?(t??0)+1:t}firstRenderedRowDrawsTopBorder(){return this.#eb.view?0===this.#eb.view.getColumnHeadersCount():!this.#eb.hasColHeaders()}areCellsBorderBox(){return"border-box"===this.getStyleForTD("box-sizing")}useTheme(e){mX(e)?(this.#aQ(),e!==this.#aL&&(this.#aL=e),this.#aq(this.#aL),this.#aJ()):ir(`${e} isn't a valid theme name. Please ensure it follows the format ht-theme-<theme-name>.`)}getThemeName(){return this.#aL}#aK(){if(!this.#eb||!this.#tf||!this.#tf.head)return;let e=this.#tf.getElementById(mY);if(e&&e instanceof HTMLStyleElement)return;let t=this.#tf.createElement("style");t.id=mY,t.textContent='/*!\n * Copyright (c) HANDSONCODE sp. z o. o.\n *\n * HANDSONTABLE is a software distributed by HANDSONCODE sp. z o. o., a Polish corporation based in\n * Gdynia, Poland, at Aleja Zwyciestwa 96-98, registered by the District Court in Gdansk under number\n * 538651, EU tax ID number: PL5862294002, share capital: PLN 67,200.00.\n *\n * This software is protected by applicable copyright laws, including international treaties, and dual-\n * licensed - depending on whether your use for commercial purposes, meaning intended for or\n * resulting in commercial advantage or monetary compensation, or not.\n *\n * If your use is strictly personal or solely for evaluation purposes, meaning for the purposes of testing\n * the suitability, performance, and usefulness of this software outside the production environment,\n * you agree to be bound by the terms included in the "handsontable-non-commercial-license.pdf" file.\n *\n * Your use of this software for commercial purposes is subject to the terms included in an applicable\n * license agreement.\n *\n * In any case, you must not make any such use of this software as to develop software which may be\n * considered competitive with this software.\n *\n * UNLESS EXPRESSLY AGREED OTHERWISE, HANDSONCODE PROVIDES THIS SOFTWARE ON AN "AS IS"\n * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, AND IN NO EVENT AND UNDER NO\n * LEGAL THEORY, SHALL HANDSONCODE BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY DIRECT,\n * INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM\n * USE OR INABILITY TO USE THIS SOFTWARE.\n *\n * Version: 19.0.0-rc2\n * Release date: 17/11/2026 (built at 17/11/2026 11:12:27)\n */\ndiv:where(.handsontable):not(p):not(p) span:where(.colHeader),div:where(.handsontable):not(p):not(p) span:where(.rowHeader),div:where(.handsontable):not(p):not(p) span:where(.ht-page-size-section__label),div:where(.handsontable):not(p):not(p) span:where(.ht-page-navigation-section__label),div:where(.handsontable):not(p):not(p) span:where(.ht-multi-select-arrow),div:where(.handsontable):not(p):not(p) span:where(.ht-multi-select-chip),div:where(.handsontable):not(p):not(p) span:where(.ht-multi-select-chip-label),div:where(.handsontable):not(p):not(p) span:where(.ht-multi-select-chip-remove),div:where(.handsontable):not(p):not(p) span:where(.ht-multi-select-overflow),div:where(.handsontable):not(p):not(p) span:where(.htUISelectCaptionLabel),div:where(.handsontable):not(p):not(p) span:where(.htCheckboxRendererBox),div:where(.handsontable):not(p):not(p) input:where(.htCheckboxRendererInput),div:where(.handsontable):not(p):not(p) span:where(.htCheckboxRendererLabelText),div:where(.handsontable):not(p):not(p) span:where(.ht_nestingLevel_empty),div:where(.handsontable):not(p):not(p) :where(.htUIInput)>input:where([type=text],[type=date],[type=datetime-local],[type=time],[type=button]),div:where(.handsontable):not(p):not(p) :where(.htUIRadio)>input:where([type=radio]),div:where(.handsontable):not(p):not(p) :where(.htItemWrapper)>span:where(.selected,.htMixed){padding:revert;margin:revert;border:revert;height:revert;font-size:revert;line-height:revert;font-weight:revert;letter-spacing:revert;font-family:revert}.ht-root-wrapper{font-family:var(--ht-font-family),-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;flex-direction:column;height:100%;display:flex;position:relative}.ht-root-wrapper.ht-shadow-dom{isolation:isolate}.ht-root-wrapper.ht-grid-follows-content>.ht-grid{flex-shrink:0;min-height:auto}.ht-root-wrapper.ht-slot-bottom-filled .ht-wrapper:not(.htHorizontallyScrollableByWindow) .ht_master .wtHolder,.ht-root-wrapper.ht-slot-bottom-filled .ht-wrapper:not(.htVerticallyScrollableByWindow) .ht_master .wtHolder,.ht-root-wrapper.ht-slot-top-filled .ht-wrapper:not(.htHorizontallyScrollableByWindow) .ht_master .wtHolder,.ht-root-wrapper.ht-slot-top-filled .ht-wrapper:not(.htVerticallyScrollableByWindow) .ht_master .wtHolder{background-color:var(--ht-background-color);box-shadow:inset 0 0 0 1px var(--ht-border-color)}.ht-root-wrapper.ht-slot-bottom-filled .ht-wrapper:not(.htHorizontallyScrollableByWindow) .ht_master .htScrollbarFrame,.ht-root-wrapper.ht-slot-bottom-filled .ht-wrapper:not(.htVerticallyScrollableByWindow) .ht_master .htScrollbarFrame,.ht-root-wrapper.ht-slot-top-filled .ht-wrapper:not(.htHorizontallyScrollableByWindow) .ht_master .htScrollbarFrame,.ht-root-wrapper.ht-slot-top-filled .ht-wrapper:not(.htVerticallyScrollableByWindow) .ht_master .htScrollbarFrame{box-shadow:inset 0 0 0 1px var(--ht-border-color)}.htFocusCatcher{opacity:0;z-index:-1;border:0;outline:0;width:0;height:0;margin:0;padding:0;position:absolute;display:block!important}.ht-grid{flex:auto;min-height:0;position:relative}.ht-grid-content{height:100%}.ht-slot-top,.ht-slot-bottom{flex:none;overflow-x:auto}.ht-slot-element{box-sizing:border-box;border:1px solid var(--ht-border-color);width:100%}.ht-slot-top>.ht-slot-element:not(:first-of-type){border-top-width:0}.ht-slot-top>.ht-slot-element:last-of-type,.ht-slot-bottom>.ht-slot-element:not(:last-of-type){border-bottom-width:0}.ht-slot-bottom>.ht-slot-element:first-of-type{border-top-width:0}.htScrollbarTest{scrollbar-width:auto;scrollbar-color:var(--ht-scrollbar-thumb-color)var(--ht-scrollbar-track-color)}.htScrollbarSafariTest::-webkit-scrollbar{width:9px;height:9px}.handsontable{font-family:var(--ht-font-family),-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:var(--ht-font-size);line-height:var(--ht-line-height);font-weight:var(--ht-font-weight);letter-spacing:var(--ht-letter-spacing);color:var(--ht-foreground-color);touch-action:manipulation;position:relative}.handsontable .wtHolder{scrollbar-width:auto;scrollbar-color:var(--ht-scrollbar-thumb-color)var(--ht-scrollbar-track-color)}.handsontable .wtHolder::-webkit-scrollbar{width:9px;height:9px}.handsontable .wtHolder::-webkit-scrollbar-track{background:var(--ht-scrollbar-track-color);border-radius:var(--ht-scrollbar-border-radius)}.handsontable .wtHolder::-webkit-scrollbar-thumb{background-color:var(--ht-scrollbar-thumb-color);border-radius:var(--ht-scrollbar-border-radius)}.handsontable .wtHolder::-webkit-scrollbar-corner{background:var(--ht-scrollbar-track-color);border-end-end-radius:var(--ht-scrollbar-border-radius)}.handsontable .htScrollbarProxy{scrollbar-width:auto;scrollbar-color:var(--ht-scrollbar-thumb-color)var(--ht-scrollbar-track-color);z-index:1;background:linear-gradient(var(--ht-scrollbar-track-color),var(--ht-scrollbar-track-color)),var(--ht-background-color);position:absolute}.handsontable .htScrollbarProxy>div{width:1px;height:1px}.handsontable .htScrollbarProxy::-webkit-scrollbar{width:9px;height:9px}.handsontable .htScrollbarProxy::-webkit-scrollbar-track{background:var(--ht-scrollbar-track-color);border-radius:var(--ht-scrollbar-border-radius)}.handsontable .htScrollbarProxy::-webkit-scrollbar-thumb{background-color:var(--ht-scrollbar-thumb-color);border-radius:var(--ht-scrollbar-border-radius)}.handsontable .htScrollbarProxy-vertical{overflow:hidden scroll}.handsontable .htScrollbarProxy-horizontal{overflow:scroll hidden}.handsontable .htScrollbarProxyFiller,.handsontable .htScrollbarCorner{z-index:1;background:linear-gradient(var(--ht-scrollbar-track-color),var(--ht-scrollbar-track-color)),var(--ht-background-color);position:absolute}.handsontable .htScrollbarFrame{z-index:2;pointer-events:none;position:absolute}.handsontable.ht-wrapper{width:100%;height:100%}.handsontable.ht-wrapper:not(.htFirstDatasetColumnNotRendered) :where(table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>td:first-child{border-inline-start-width:1px}.handsontable.htGhostTable.htNestedHeaders table{border-spacing:0;border-collapse:collapse}.handsontable.htGhostTable table thead th{border-bottom-width:0}.handsontable.htGhostTable table tbody tr:first-of-type th:first-child,.handsontable.htGhostTable table tbody tr:first-of-type td:first-child{height:calc(var(--ht-cell-vertical-padding)*2 + var(--ht-line-height) + 1px)}.handsontable.htGhostTable table tbody tr th,.handsontable.htGhostTable table tbody tr td{height:calc(var(--ht-cell-vertical-padding)*2 + var(--ht-line-height) + 1px);border-top-width:0}.handsontable:not(.htHorizontallyScrollableByWindow).htHasScrollX .ht_master .wtHolder,.handsontable:not(.htHorizontallyScrollableByWindow).htHasScrollY .ht_master .wtHolder,.handsontable:not(.htVerticallyScrollableByWindow).htHasScrollX .ht_master .wtHolder,.handsontable:not(.htVerticallyScrollableByWindow).htHasScrollY .ht_master .wtHolder{background-color:var(--ht-background-color);box-shadow:inset 0 0 0 1px var(--ht-border-color)}.handsontable:not(.htHorizontallyScrollableByWindow).htHasScrollX .ht_master .htScrollbarFrame,.handsontable:not(.htHorizontallyScrollableByWindow).htHasScrollY .ht_master .htScrollbarFrame,.handsontable:not(.htVerticallyScrollableByWindow).htHasScrollX .ht_master .htScrollbarFrame,.handsontable:not(.htVerticallyScrollableByWindow).htHasScrollY .ht_master .htScrollbarFrame{box-shadow:inset 0 0 0 1px var(--ht-border-color)}.handsontable :where(table.htCore>tbody,.htGhostTable>table>tbody)>tr.ht__row_even>th{background-color:var(--ht-row-header-even-background-color)}.handsontable :where(table.htCore>tbody,.htGhostTable>table>tbody)>tr.ht__row_even>td{background-color:var(--ht-row-cell-even-background-color)}.handsontable :where(table.htCore>tbody,.htGhostTable>table>tbody)>tr.ht__row_odd>th{background-color:var(--ht-row-header-odd-background-color)}.handsontable :where(table.htCore>tbody,.htGhostTable>table>tbody)>tr.ht__row_odd>td{background-color:var(--ht-row-cell-odd-background-color)}.handsontable :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr,table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th,.handsontable :where(table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>td{height:calc(var(--ht-cell-vertical-padding)*2 + var(--ht-line-height) + 1px);padding:var(--ht-cell-vertical-padding)var(--ht-cell-horizontal-padding);vertical-align:top;border-top-width:0;font-size:var(--ht-font-size);line-height:var(--ht-line-height);white-space:pre-wrap;empty-cells:show;box-sizing:border-box;color:var(--ht-foreground-color);border-inline-width:0 1px;border-style:solid;border-bottom-width:1px;border-top-color:var(--ht-cell-vertical-border-color);border-bottom-color:var(--ht-cell-vertical-border-color);border-inline-start-color:var(--ht-cell-horizontal-border-color);border-inline-end-color:var(--ht-cell-horizontal-border-color);outline:0;overflow:hidden}.handsontable :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr,table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th.invisibleSelection,.handsontable :where(table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>td.invisibleSelection{outline:none}.handsontable :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr,table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th.invisibleSelection::selection{background:0 0}.handsontable :where(table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>td.invisibleSelection::selection{background:0 0}.handsontable :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr,table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th{text-align:center;font-weight:var(--ht-header-font-weight);white-space:nowrap;color:var(--ht-header-foreground-color);background-color:var(--ht-header-background-color);position:relative;overflow:visible}.handsontable :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr,table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th:last-child{border-inline-width:0 1px;border-bottom-width:1px;border-inline-end-color:var(--ht-border-color)}.handsontable :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr,table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th:last-child.ht__active_highlight{border-inline-end-color:var(--ht-header-active-border-color)}.handsontable :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr,table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th:first-child{border-inline-start-color:var(--ht-border-color)}.handsontable :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr,table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th:first-child.ht__active_highlight{border-inline-start-color:var(--ht-header-active-border-color)}.handsontable :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr,table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th:first-child{border-inline-start-width:1px}.handsontable :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr,table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th.current{box-shadow:inset 0 0 0 1px var(--ht-cell-selection-border-color)}.handsontable :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr,table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th.active{color:var(--ht-header-active-foreground-color);background-color:var(--ht-header-active-background-color)}.handsontable :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr,table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th.ht__highlight{color:var(--ht-header-highlighted-foreground-color);background-color:var(--ht-header-highlighted-background-color)}.handsontable :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr,table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th.ht__active_highlight{border-color:var(--ht-header-active-border-color);color:var(--ht-header-active-foreground-color);background-color:var(--ht-header-active-background-color)}.handsontable :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr,table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th.ht__active_highlight-prev,.handsontable :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr,table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th.ht__active_highlight-seam{border-inline-end-color:var(--ht-header-active-border-color)}.handsontable.htRowHeaders .ht_master:not(.emptyColumns) :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr)>th.htLastRowHeaderColumn:not(.ht__active_highlight):not(.ht__active_highlight-prev),.handsontable.htRowHeaders .ht_master:not(.emptyColumns) :where(table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th:not(.ht__active_highlight):not(.ht__active_highlight-prev),.handsontable.htRowHeaders .ht_master:not(.emptyColumns)~.handsontable:not(.htGhostTable) :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr)>th.htLastRowHeaderColumn:not(.ht__active_highlight):not(.ht__active_highlight-prev),.handsontable.htRowHeaders .ht_master:not(.emptyColumns)~.handsontable:not(.htGhostTable) :where(table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th:not(.ht__active_highlight):not(.ht__active_highlight-prev),.handsontable.htRowHeaders .ht_master:not(.emptyColumns)~.htOverlayRail>.handsontable:not(.htGhostTable) :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr)>th.htLastRowHeaderColumn:not(.ht__active_highlight):not(.ht__active_highlight-prev),.handsontable.htRowHeaders .ht_master:not(.emptyColumns)~.htOverlayRail>.handsontable:not(.htGhostTable) :where(table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th:not(.ht__active_highlight):not(.ht__active_highlight-prev){border-inline-end-color:var(--ht-cell-horizontal-border-color)}.handsontable :where(table.htCore,.htGhostTable>table)>tbody>tr.ht__row_odd>th.ht__highlight,.handsontable :where(table.htCore,.htGhostTable>table)>tbody>tr.ht__row_even>th.ht__highlight{color:var(--ht-header-row-highlighted-foreground-color);background-color:var(--ht-header-row-highlighted-background-color)}.handsontable :where(table.htCore,.htGhostTable>table)>tbody>tr.ht__row_odd>th.ht__active_highlight,.handsontable :where(table.htCore,.htGhostTable>table)>tbody>tr.ht__row_even>th.ht__active_highlight{color:var(--ht-header-row-active-foreground-color);background-color:var(--ht-header-row-active-background-color)}.handsontable :where(table.htCore,.htGhostTable>table)>tbody>tr:first-of-type>th:first-child:empty:after,.handsontable :where(table.htCore,.htGhostTable>table)>tbody>tr:first-of-type>td:first-child:empty:after{content:"";min-height:var(--ht-line-height);display:block}.handsontable :where(table.htCore,.htGhostTable>table)>tbody>tr>th{color:var(--ht-header-row-foreground-color);background-color:var(--ht-header-row-background-color);padding:0}.handsontable :where(table.htCore,.htGhostTable>table)>tbody>tr>th .relative{padding:var(--ht-cell-vertical-padding)var(--ht-cell-horizontal-padding);min-height:100%}.handsontable :where(table.htCore,.htGhostTable>table)>tbody>tr>td:first-child{border-inline-start-color:var(--ht-border-color)}.handsontable :where(table.htCore,.htGhostTable>table)>tbody>tr>td:last-child{border-inline-end-color:var(--ht-border-color)}.handsontable :where(table.htCore,.htGhostTable>table)>tbody>tr>th.ht__active_highlight-prev-row{border-bottom-color:var(--ht-header-active-border-color)}.handsontable :where(table.htCore,.htGhostTable>table)>thead>tr>th{padding:0}.handsontable :where(table.htCore,.htGhostTable>table)>thead>tr>th.ht__active_highlight{box-shadow:-1px 0 0 0 var(--ht-header-active-border-color)}.handsontable :where(table.htCore,.htGhostTable>table)>thead>tr>th .relative{padding:var(--ht-cell-vertical-padding)var(--ht-cell-horizontal-padding);flex-direction:row;align-items:center;gap:2px;display:flex}.handsontable :where(table.htCore,.htGhostTable>table)>thead>tr>th .relative .colHeader{text-overflow:ellipsis;vertical-align:top;flex:auto;min-width:0;overflow:hidden}.handsontable :where(table.htCore>thead,table.htCore>tbody,.htGhostTable>table>thead,.htGhostTable>table>tbody)>tr:first-child>th,.handsontable :where(table.htCore>thead,table.htCore>tbody,.htGhostTable>table>thead,.htGhostTable>table>tbody)>tr:first-child>td{border-top-color:var(--ht-border-color);border-top-width:1px}.handsontable :where(table.htCore>thead,table.htCore>tbody,.htGhostTable>table>thead,.htGhostTable>table>tbody)>tr:first-child>th.ht__active_highlight,.handsontable :where(table.htCore>thead,table.htCore>tbody,.htGhostTable>table>thead,.htGhostTable>table>tbody)>tr:first-child>th.ht__active_highlight-row-seam-bottom,.handsontable :where(table.htCore>thead,table.htCore>tbody,.htGhostTable>table>thead,.htGhostTable>table>tbody)>tr:first-child>td.ht__active_highlight,.handsontable :where(table.htCore>thead,table.htCore>tbody,.htGhostTable>table>thead,.htGhostTable>table>tbody)>tr:first-child>td.ht__active_highlight-row-seam-bottom{border-top-color:var(--ht-header-active-border-color)}.handsontable :where(table.htCore,.htGhostTable>table)>thead:not(:empty)+tbody>tr:first-child>th,.handsontable :where(table.htCore,.htGhostTable>table)>thead:not(:empty)+tbody>tr:first-child>td{border-top-width:0}.handsontable :where(table.htCore>thead,table.htCore>tbody,.htGhostTable>table>thead,.htGhostTable>table>tbody)>tr:last-child>th,.handsontable :where(table.htCore>thead,table.htCore>tbody,.htGhostTable>table>thead,.htGhostTable>table>tbody)>tr:last-child>td{border-bottom-color:var(--ht-border-color)}.handsontable :where(table.htCore>thead,table.htCore>tbody,.htGhostTable>table>thead,.htGhostTable>table>tbody)>tr:last-child>th.ht__active_highlight,.handsontable :where(table.htCore>thead,table.htCore>tbody,.htGhostTable>table>thead,.htGhostTable>table>tbody)>tr:last-child>th.ht__active_highlight-row-seam-top,.handsontable :where(table.htCore>thead,table.htCore>tbody,.htGhostTable>table>thead,.htGhostTable>table>tbody)>tr:last-child>td.ht__active_highlight,.handsontable :where(table.htCore>thead,table.htCore>tbody,.htGhostTable>table>thead,.htGhostTable>table>tbody)>tr:last-child>td.ht__active_highlight-row-seam-top{border-bottom-color:var(--ht-header-active-border-color)}.handsontable div[class^=ht_clone] thead .ht__highlight .relative:after{content:"";height:var(--ht-header-highlighted-shadow-size);background-color:var(--ht-accent-color);display:block;position:absolute;bottom:-1px;left:-1px;right:-1px}.handsontable div[class^=ht_clone] thead tr:only-of-type .ht__highlight .relative:after{bottom:0}.handsontable div[class^=ht_clone] tbody .ht__highlight .relative:after{content:"";width:var(--ht-header-highlighted-shadow-size);background-color:var(--ht-accent-color);display:block;position:absolute;top:-1px;bottom:-1px;right:-1px}.handsontable div[class^=ht_clone] :where(table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>td:first-child{border-inline-start-width:1px}.handsontable div[class^=ht_clone].htFreezeLineShared.ht_clone_inline_end :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr,table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th:first-child,.handsontable div[class^=ht_clone].htFreezeLineShared.ht_clone_inline_end :where(table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>td:first-child,.handsontable div[class^=ht_clone].htFreezeLineShared.ht_clone_top_inline_end_corner :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr,table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th:first-child,.handsontable div[class^=ht_clone].htFreezeLineShared.ht_clone_top_inline_end_corner :where(table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>td:first-child,.handsontable div[class^=ht_clone].htFreezeLineShared.ht_clone_bottom_inline_end_corner :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr,table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th:first-child,.handsontable div[class^=ht_clone].htFreezeLineShared.ht_clone_bottom_inline_end_corner :where(table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>td:first-child{border-inline-start-width:0}.handsontable :where(table.htCore,.htGhostTable>table)>thead>tr:not(:last-child)>th{overflow:hidden}.handsontable .hide{display:none}.handsontable .relative{box-sizing:border-box;position:relative}.handsontable tr.htExactRow>td,.handsontable tr.htExactRow>th{height:auto;position:relative}.handsontable tr.htExactRow>td{padding:0}.handsontable tr.htExactRow>td>.htCellClip{inset:var(--ht-cell-vertical-padding)var(--ht-cell-horizontal-padding);box-sizing:border-box;border:0;min-height:0;margin:0;padding:0;position:absolute;overflow:hidden}.handsontable tr.htExactRow>td.htMiddle>.htCellClip{align-content:center}.handsontable tr.htExactRow>td.htBottom>.htCellClip{align-content:end}.handsontable tr.htExactRow>th>.relative{min-height:0;position:absolute;inset:0}.handsontable tr.htExactRow>th>.relative>.rowHeader{height:100%;display:block;overflow:hidden}.handsontable .wtHider{width:0}.handsontable .wtSpreader{width:0;height:auto;position:relative}.handsontable .htAutoSize{visibility:hidden;position:absolute;top:-99000px;left:-99000px}.handsontable.htGhostTable.htAutoSize{width:auto}.handsontable .htTextEllipsis{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.handsontable .htLineClamp{-webkit-line-clamp:var(--ht-text-line-clamp);white-space:pre-wrap;box-sizing:border-box;border:0;-webkit-box-orient:vertical;min-height:0;margin:0;padding:0;display:-webkit-box;overflow:hidden}.handsontable .htMergedCellContentWindow{box-sizing:border-box;border:0;margin:0;padding:0;display:block}.handsontable tr.htExactRow>td.htTextEllipsis>.htCellClip{text-overflow:ellipsis}.handsontable table.htCore,.handsontable:where(.htGhostTable)>table,.handsontable :where(table.htCore,.htGhostTable>table)>thead,.handsontable :where(table.htCore,.htGhostTable>table)>tbody,.handsontable input:not(:where(table.htCore>tbody>tr>td:not(.htCustomMenuRenderer) :not(.htCheckboxRendererInput),.htGhostTable>table>tbody>tr>td:not(.htCustomMenuRenderer) :not(.htCheckboxRendererInput))),.handsontable textarea:not(:where(table.htCore>tbody>tr>td:not(.htCustomMenuRenderer) :not(.htCheckboxRendererInput),.htGhostTable>table>tbody>tr>td:not(.htCustomMenuRenderer) :not(.htCheckboxRendererInput))),.handsontable div:not(:where(table.htCore>tbody>tr>td:not(.htCustomMenuRenderer) :not(.htCheckboxRendererInput),.htGhostTable>table>tbody>tr>td:not(.htCustomMenuRenderer) :not(.htCheckboxRendererInput))){box-sizing:content-box}.handsontable input:not(:where(table.htCore>tbody>tr>td:not(.htCustomMenuRenderer) :not(.htCheckboxRendererInput),.htGhostTable>table>tbody>tr>td:not(.htCustomMenuRenderer) :not(.htCheckboxRendererInput))),.handsontable textarea:not(:where(table.htCore>tbody>tr>td:not(.htCustomMenuRenderer) :not(.htCheckboxRendererInput),.htGhostTable>table>tbody>tr>td:not(.htCustomMenuRenderer) :not(.htCheckboxRendererInput))){min-height:initial}.handsontable .htCore{border-spacing:0;border-collapse:separate;table-layout:fixed;cursor:default;background-color:var(--ht-background-color);border-width:0;outline-width:0;width:0;margin:0}.handsontable :where(table.htCore,.htGhostTable>table)>colgroup>col,.handsontable :where(table.htCore,.htGhostTable>table)>colgroup>col.rowHeader{width:64px}.handsontable :where(table.htCore,.htGhostTable>table)>colgroup>col.hidden{width:0!important}.handsontable span.colHeader,.handsontable span.rowHeader{font-size:var(--ht-font-size);line-height:var(--ht-line-height);display:inline-block}.handsontable :where(table.htCore>thead,table.htCore>tbody,.htGhostTable>table>thead,.htGhostTable>table>tbody)>tr.hidden,.handsontable :where(table.htCore>thead,table.htCore>tbody,.htGhostTable>table>thead,.htGhostTable>table>tbody)>tr.hidden>td,.handsontable :where(table.htCore>thead,table.htCore>tbody,.htGhostTable>table>thead,.htGhostTable>table>tbody)>tr.hidden>th{display:none}.handsontable a:not(:where(table.htCore>tbody>tr>td:not(.htCustomMenuRenderer) :not(.htCheckboxRendererInput),.htGhostTable>table>tbody>tr>td:not(.htCustomMenuRenderer) :not(.htCheckboxRendererInput))){color:var(--ht-link-color)}.handsontable a:not(:where(table.htCore>tbody>tr>td:not(.htCustomMenuRenderer) :not(.htCheckboxRendererInput),.htGhostTable>table>tbody>tr>td:not(.htCustomMenuRenderer) :not(.htCheckboxRendererInput))):hover{color:var(--ht-link-hover-color)}.handsontable .ht_master table.htCore>thead,.handsontable .ht_master table.htCore>tbody>tr>th,.handsontable .ht_clone_inline_start table.htCore>thead,.handsontable .ht_clone_inline_end table.htCore>thead{visibility:hidden}.ht_master,.ht_clone_inline_start,.ht_clone_inline_end,.ht_clone_top,.ht_clone_bottom,.ht_master .wtHolder,.ht_clone_inline_start .wtHolder,.ht_clone_inline_end .wtHolder,.ht_clone_top .wtHolder,.ht_clone_bottom .wtHolder{overflow:hidden}.handsontable .ht_clone_inline_start .wtHolder,.handsontable .ht_clone_inline_end .wtHolder,.handsontable .ht_clone_top .wtHolder,.handsontable .ht_clone_bottom .wtHolder{overflow-anchor:none;scrollbar-width:none!important}.handsontable .ht_clone_inline_start .wtHolder::-webkit-scrollbar{display:none}.handsontable .ht_clone_inline_end .wtHolder::-webkit-scrollbar{display:none}.handsontable .ht_clone_top .wtHolder::-webkit-scrollbar{display:none}.handsontable .ht_clone_bottom .wtHolder::-webkit-scrollbar{display:none}.ht_clone_inline_start .wtHolder,.ht_clone_inline_end .wtHolder{overflow:hidden auto}.ht_clone_top .wtHolder,.ht_clone_bottom .wtHolder{overflow:auto hidden}.htScrollbarClearanceFillers{overflow-anchor:none;z-index:300;block-size:0;inline-size:0;position:sticky;inset-block-start:0;inset-inline-start:0}.htScrollbarClearanceFiller{background-color:var(--ht-scrollbar-track-color,var(--ht-background-color));pointer-events:none;box-sizing:border-box;position:absolute}.ht_master .wtHolder{overflow:auto}[dir=rtl].handsontable :where(table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>td[dir=ltr]{border-inline-width:1px 0}[dir=rtl].handsontable :where(table.htCore,.htGhostTable>table)>tbody>tr>td[dir=ltr]:last-child{border-inline-start-color:var(--ht-border-color)}[dir=rtl].handsontable div[class^=ht_clone] tbody .ht__highlight .relative:after{left:-1px;right:auto}.handsontable.ht-wrapper{border-radius:var(--ht-border-radius)}.handsontable.ht-wrapper:not(.htColumnHeaders) .ht_master .htCore>tbody>tr:first-child>td:first-child{border-start-start-radius:var(--ht-border-radius)}.handsontable.ht-wrapper:not(.htColumnHeaders) .ht_master .htCore>tbody>tr:first-child>td:last-child{border-start-end-radius:var(--ht-border-radius)}.handsontable.ht-wrapper:not(.htColumnHeaders) .ht_clone_top_inline_start_corner .htCore>tbody>tr:first-child>td:first-child{border-start-start-radius:var(--ht-border-radius)}.handsontable.ht-wrapper:not(.htColumnHeaders) .ht_clone_top_inline_end_corner .htCore>tbody>tr:first-child>td:last-child{border-start-end-radius:var(--ht-border-radius)}.handsontable.ht-wrapper:not(.htColumnHeaders) .ht_clone_top .htCore>tbody>tr:first-child>td:first-child{border-start-start-radius:var(--ht-border-radius)}.handsontable.ht-wrapper:not(.htColumnHeaders) .ht_clone_top .htCore>tbody>tr:first-child>td:last-child{border-start-end-radius:var(--ht-border-radius)}.handsontable.ht-wrapper:not(.htColumnHeaders) .ht_clone_inline_start .htCore>tbody>tr:first-child>th:first-child,.handsontable.ht-wrapper:not(.htColumnHeaders) .ht_clone_inline_start .htCore>tbody>tr:first-child>td:first-child{border-start-start-radius:var(--ht-border-radius)}.handsontable.ht-wrapper:not(.htColumnHeaders) .ht_clone_inline_end .htCore>tbody>tr:first-child>td:last-child{border-start-end-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_master .wtHolder,.handsontable.ht-wrapper .ht_master .htCore{border-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_master .htCore>thead>tr:first-child>th:first-child{border-start-start-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_master .htCore>thead>tr:first-child>th:not(.hiddenHeader).htLastVisibleHeader{border-start-end-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_master .htCore>thead>tr:last-child>th:first-child{border-end-start-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_master .htCore>thead>tr:last-child>th:not(.hiddenHeader).htLastVisibleHeader{border-end-end-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_master .htCore>tbody>tr:last-child>td:first-child{border-end-start-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_master .htCore>tbody>tr:last-child>td:last-child{border-end-end-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_clone_top_inline_start_corner .htCore,.handsontable.ht-wrapper .ht_clone_top_inline_start_corner .htCore>thead>tr:first-child>th:first-child{border-start-start-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_clone_top_inline_end_corner .htCore,.handsontable.ht-wrapper .ht_clone_top_inline_end_corner .htCore>thead>tr:first-child>th:last-child{border-start-end-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_clone_top .htCore{border-start-start-radius:var(--ht-border-radius);border-start-end-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_clone_top .htCore>thead>tr:first-child>th:first-child{border-start-start-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_clone_top .htCore>thead>tr:first-child>th:not(.hiddenHeader).htLastVisibleHeader{border-start-end-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_clone_inline_start .htCore{border-start-start-radius:var(--ht-border-radius);border-end-start-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_clone_inline_start .htCore>thead>tr:first-child>th:first-child{border-start-start-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_clone_inline_start .htCore>tbody>tr:last-child>th:first-child,.handsontable.ht-wrapper .ht_clone_inline_start .htCore>tbody>tr:last-child>td:first-child{border-end-start-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_clone_inline_end .htCore{border-start-end-radius:var(--ht-border-radius);border-end-end-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_clone_inline_end .htCore>thead>tr:first-child>th:last-child{border-start-end-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_clone_inline_end .htCore>tbody>tr:last-child>td:last-child{border-end-end-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_clone_bottom_inline_start_corner .htCore,.handsontable.ht-wrapper .ht_clone_bottom_inline_start_corner .htCore>:where(thead,tbody)>tr:last-child>th:first-child,.handsontable.ht-wrapper .ht_clone_bottom_inline_start_corner .htCore>:where(thead,tbody)>tr:last-child>td:first-child{border-end-start-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_clone_bottom_inline_end_corner .htCore,.handsontable.ht-wrapper .ht_clone_bottom_inline_end_corner .htCore>:where(thead,tbody)>tr:last-child>th:last-child,.handsontable.ht-wrapper .ht_clone_bottom_inline_end_corner .htCore>:where(thead,tbody)>tr:last-child>td:last-child{border-end-end-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_clone_bottom .htCore{border-end-end-radius:var(--ht-border-radius);border-end-start-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_clone_bottom .htCore>:where(thead,tbody)>tr:last-child>th:first-child,.handsontable.ht-wrapper .ht_clone_bottom .htCore>:where(thead,tbody)>tr:last-child>td:first-child{border-end-start-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_clone_bottom .htCore>:where(thead,tbody)>tr:last-child>th:last-child,.handsontable.ht-wrapper .ht_clone_bottom .htCore>:where(thead,tbody)>tr:last-child>td:last-child{border-end-end-radius:var(--ht-border-radius)}.handsontable.ht-wrapper.htHasScrollX:not(.htHorizontallyScrollableByWindow) .htCore{border-end-end-radius:0;border-end-start-radius:0}.handsontable.ht-wrapper.htHasScrollX:not(.htHorizontallyScrollableByWindow) .htCore>thead>tr:last-child>th:first-child,.handsontable.ht-wrapper.htHasScrollX:not(.htHorizontallyScrollableByWindow) .htCore>tbody>tr:last-child>td:first-child,.handsontable.ht-wrapper.htHasScrollX:not(.htHorizontallyScrollableByWindow) .htCore>tbody>tr:last-child>th:first-child{border-end-start-radius:0}.handsontable.ht-wrapper.htHasScrollX:not(.htHorizontallyScrollableByWindow) .htCore>thead>tr:last-child>th:not(.hiddenHeader).htLastVisibleHeader,.handsontable.ht-wrapper.htHasScrollX:not(.htHorizontallyScrollableByWindow) .htCore>tbody>tr:last-child>td:last-child,.handsontable.ht-wrapper.htHasScrollX:not(.htHorizontallyScrollableByWindow) .htCore>tbody>tr:last-child>th:last-child{border-end-end-radius:0}.handsontable.ht-wrapper.htHasScrollY:not(.htVerticallyScrollableByWindow) .htCore{border-start-end-radius:0;border-end-end-radius:0}.handsontable.ht-wrapper.htHasScrollY:not(.htVerticallyScrollableByWindow) .htCore>thead>tr:first-child>th:not(.hiddenHeader).htLastVisibleHeader,.handsontable.ht-wrapper.htHasScrollY:not(.htVerticallyScrollableByWindow) .htCore>tbody>tr:first-child>td:last-child,.handsontable.ht-wrapper.htHasScrollY:not(.htVerticallyScrollableByWindow) .htCore>tbody>tr:first-child>th:last-child{border-start-end-radius:0}.handsontable.ht-wrapper.htHasScrollY:not(.htVerticallyScrollableByWindow) .htCore>thead>tr:last-child>th:not(.hiddenHeader).htLastVisibleHeader,.handsontable.ht-wrapper.htHasScrollY:not(.htVerticallyScrollableByWindow) .htCore>tbody>tr:last-child>td:last-child,.handsontable.ht-wrapper.htHasScrollY:not(.htVerticallyScrollableByWindow) .htCore>tbody>tr:last-child>th:last-child{border-end-end-radius:0}.ht-root-wrapper{border-radius:var(--ht-border-radius)}.ht-root-wrapper.ht-slot-bottom-filled .ht-wrapper,.ht-root-wrapper.ht-slot-bottom-filled .ht_master .wtHolder{border-end-end-radius:0;border-end-start-radius:0}.ht-root-wrapper.ht-slot-bottom-filled .htCore{border-end-end-radius:0!important;border-end-start-radius:0!important}.ht-root-wrapper.ht-slot-bottom-filled .htCore>thead>tr:last-child>th:first-child,.ht-root-wrapper.ht-slot-bottom-filled .htCore>tbody>tr:last-child>td:first-child,.ht-root-wrapper.ht-slot-bottom-filled .htCore>tbody>tr:last-child>th:first-child{border-end-start-radius:0!important}.ht-root-wrapper.ht-slot-bottom-filled .htCore>thead>tr:last-child>th:not(.hiddenHeader).htLastVisibleHeader,.ht-root-wrapper.ht-slot-bottom-filled .htCore>tbody>tr:last-child>td:last-child,.ht-root-wrapper.ht-slot-bottom-filled .htCore>tbody>tr:last-child>th:last-child{border-end-end-radius:0!important}.ht-root-wrapper.ht-slot-top-filled .ht-wrapper,.ht-root-wrapper.ht-slot-top-filled .ht_master .wtHolder{border-start-start-radius:0;border-start-end-radius:0}.ht-root-wrapper.ht-slot-top-filled .htCore{border-start-start-radius:0!important;border-start-end-radius:0!important}.ht-root-wrapper.ht-slot-top-filled .htCore>thead>tr:first-child>th:first-child,.ht-root-wrapper.ht-slot-top-filled .htCore>tbody>tr:first-child>td:first-child,.ht-root-wrapper.ht-slot-top-filled .htCore>tbody>tr:first-child>th:first-child{border-start-start-radius:0!important}.ht-root-wrapper.ht-slot-top-filled .htCore>thead>tr:first-child>th:not(.hiddenHeader).htLastVisibleHeader,.ht-root-wrapper.ht-slot-top-filled .htCore>tbody>tr:first-child>td:last-child,.ht-root-wrapper.ht-slot-top-filled .htCore>tbody>tr:first-child>th:last-child{border-start-end-radius:0!important}.ht-root-wrapper .ht-slot-element{border-radius:var(--ht-border-radius)}.ht-root-wrapper .ht-slot-bottom>.ht-slot-element:not(:last-of-type){border-radius:0}.ht-root-wrapper .ht-slot-bottom>.ht-slot-element:last-of-type{border-start-start-radius:0;border-start-end-radius:0}.ht-root-wrapper .ht-slot-top>.ht-slot-element:not(:first-of-type){border-radius:0}.ht-root-wrapper .ht-slot-top>.ht-slot-element:first-of-type{border-end-end-radius:0;border-end-start-radius:0}.handsontable.mobile,.handsontable.mobile .wtHolder{-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:#0000;-webkit-overflow-scrolling:touch}.handsontable.mobile .handsontableInput:focus{box-shadow:inset 0 0 0 2px var(--ht-accent-color);-webkit-appearance:none}.handsontable .topSelectionHandle,.handsontable .topSelectionHandle-HitArea,.handsontable .bottomSelectionHandle,.handsontable .bottomSelectionHandle-HitArea{z-index:9999;inset-inline-start:-10000px;inset-inline-end:unset;top:-10000px}.handsontable.hide-tween{animation:.2s forwards opacity-hide}.handsontable.show-tween{animation:.3s forwards opacity-show}.ht_master{z-index:0}.ht_clone_master{z-index:100}.ht_clone_inline_start,.ht_clone_inline_end{z-index:120}.ht_clone_bottom{z-index:130}.ht_clone_bottom_inline_start_corner,.ht_clone_bottom_inline_end_corner{z-index:150}.ht_clone_top{z-index:160}.ht_clone_top_inline_start_corner,.ht_clone_top_inline_end_corner{z-index:180}.ht_editor_hidden{z-index:-1}.ht_editor_visible{z-index:200}.handsontable td.area{position:relative}.handsontable td.area:before{content:"";background:var(--ht-cell-selection-background-color,#1a42e8);position:absolute;inset:0}.handsontable td.area-1{position:relative}.handsontable td.area-1:before{content:"";background:var(--ht-cell-selection-background-color,#1a42e8);position:absolute;inset:0}.handsontable td.area-2{position:relative}.handsontable td.area-2:before{content:"";background:var(--ht-cell-selection-background-color,#1a42e8);position:absolute;inset:0}.handsontable td.area-3{position:relative}.handsontable td.area-3:before{content:"";background:var(--ht-cell-selection-background-color,#1a42e8);position:absolute;inset:0}.handsontable td.area-4{position:relative}.handsontable td.area-4:before{content:"";background:var(--ht-cell-selection-background-color,#1a42e8);position:absolute;inset:0}.handsontable td.area-5{position:relative}.handsontable td.area-5:before{content:"";background:var(--ht-cell-selection-background-color,#1a42e8);position:absolute;inset:0}.handsontable td.area-6{position:relative}.handsontable td.area-6:before{content:"";background:var(--ht-cell-selection-background-color,#1a42e8);position:absolute;inset:0}.handsontable td.area-7{position:relative}.handsontable td.area-7:before{content:"";background:var(--ht-cell-selection-background-color,#1a42e8);position:absolute;inset:0}.handsontable td.area:before{opacity:.14}.handsontable td.area-1:before{opacity:.21}.handsontable td.area-2:before{opacity:.28}.handsontable td.area-3:before{opacity:.35}.handsontable td.area-4:before{opacity:.42}.handsontable td.area-5:before{opacity:.49}.handsontable td.area-6:before{opacity:.56}.handsontable td.area-7:before{opacity:.63}.handsontable td.area{border-color:color-mix(in srgb,var(--ht-border-color),var(--ht-foreground-color)10%)}.handsontable .wtSelectionHandle{box-sizing:border-box;z-index:115;background:var(--ht-cell-selection-handle-background-color);border:var(--ht-cell-selection-handle-border-width)solid var(--ht-cell-selection-handle-border-color);border-radius:var(--ht-cell-selection-handle-border-radius);animation:ht-selection-handle-fade-in var(--ht-table-transition)ease-in-out backwards;position:absolute}.handsontable .wtSelectionHandle:hover{background:color-mix(in srgb,var(--ht-cell-selection-handle-border-color)30%,var(--ht-cell-selection-handle-background-color))}@media (prefers-reduced-motion:reduce){.handsontable .wtSelectionHandle{animation:none}}.handsontable .wtSelectionHandle--top,.handsontable .wtSelectionHandle--bottom{width:var(--ht-cell-selection-handle-length);height:var(--ht-cell-selection-handle-size);cursor:ns-resize}.handsontable .wtSelectionHandle--start,.handsontable .wtSelectionHandle--end{width:var(--ht-cell-selection-handle-size);height:var(--ht-cell-selection-handle-length);cursor:ew-resize}.handsontable.ht__resizing-selection--top .wtSelectionHandle:not(.wtSelectionHandle--top),.handsontable.ht__resizing-selection--bottom .wtSelectionHandle:not(.wtSelectionHandle--bottom),.handsontable.ht__resizing-selection--start .wtSelectionHandle:not(.wtSelectionHandle--start),.handsontable.ht__resizing-selection--end .wtSelectionHandle:not(.wtSelectionHandle--end){display:none!important}.handsontable.ht__resizing-selection--top,.handsontable.ht__resizing-selection--top *,.handsontable.ht__resizing-selection--bottom,.handsontable.ht__resizing-selection--bottom *{cursor:ns-resize!important}.handsontable.ht__resizing-selection--start,.handsontable.ht__resizing-selection--start *,.handsontable.ht__resizing-selection--end,.handsontable.ht__resizing-selection--end *{cursor:ew-resize!important}.handsontable.ht__resizing-selection--top .wtSelectionHandle--top,.handsontable.ht__resizing-selection--bottom .wtSelectionHandle--bottom,.handsontable.ht__resizing-selection--start .wtSelectionHandle--start,.handsontable.ht__resizing-selection--end .wtSelectionHandle--end{background:color-mix(in srgb,var(--ht-cell-selection-handle-border-color)30%,var(--ht-cell-selection-handle-background-color))}.handsontable .wtMoveZone{cursor:grab}.handsontable .wtMoveZone:active,.handsontable.ht__moving{cursor:grabbing}.handsontable.ht__moving *{cursor:grabbing!important}.handsontable.ht__moving .wtBorder.area,.handsontable.ht__moving .wtBorder.current{display:none!important}.handsontable.ht__moving .wtSelectionHandle,.handsontable.ht__moving .wtMoveZone{visibility:hidden!important}.handsontable .wtBorder{font-size:0;position:absolute}.handsontable .wtBorder:first-child,.handsontable .wtBorder:nth-child(3){z-index:2}.handsontable .wtBorder:nth-child(2),.handsontable .wtBorder:nth-child(4){z-index:1}.handsontable .wtBorder.hidden{display:none!important}.handsontable .wtBorder.current{z-index:10;background-color:var(--ht-cell-selection-border-color)!important}.handsontable .wtBorder.area{z-index:8;background-color:var(--ht-cell-selection-border-color)!important}.handsontable .wtBorder.fill{z-index:6;background-color:var(--ht-cell-autofill-fill-border-color,#68696c)!important}.handsontable .wtBorder.corner{cursor:crosshair;z-index:110;font-size:0;border-radius:var(--ht-cell-autofill-border-radius)!important;background-color:var(--ht-cell-autofill-background-color,#1a42e8)!important;border-color:var(--ht-cell-autofill-border-color)!important}.handsontable .wtBorder.corner:after{content:"";border-radius:var(--ht-cell-autofill-border-radius);inset:min(0px,(var(--ht-cell-autofill-size) - var(--ht-cell-autofill-hit-area-size))/2);background:0 0;position:absolute}.handsontable .wtBorder.corner.wtCornerInlineEndEdge:after{inset-inline-end:0}.handsontable .wtBorder.corner.wtCornerBlockEndEdge:after{inset-block-end:0}@media print{.handsontable .wtBorder.current,.handsontable .wtBorder.area,.handsontable .wtBorder.fill,.handsontable .wtBorder.corner,.handsontable .wtSelectionHandle,.handsontable .topSelectionHandle,.handsontable .bottomSelectionHandle,.handsontable .topSelectionHandle-HitArea,.handsontable .bottomSelectionHandle-HitArea,.handsontable .wtMoveZone,.handsontable td.area:before{display:none!important}}@keyframes ht-selection-handle-fade-in{0%{opacity:0}to{opacity:1}}.hot-display-license-info{font-family:var(--ht-font-family),-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;padding:var(--ht-license-vertical-padding,16px)var(--ht-license-horizontal-padding,16px);font-size:var(--ht-font-size-small);line-height:var(--ht-line-height-small);color:var(--ht-license-foreground-color);background-color:var(--ht-license-background-color,#f7f7f9);text-align:left;min-width:300px}.hot-display-license-info a{font-size:var(--ht-license-font-size);color:var(--ht-link-color)}.hot-display-license-info a:hover{color:var(--ht-link-hover-color)}.ht-license-badge-wrapper{z-index:1050;pointer-events:none;position:absolute;inset:0;overflow:hidden}.ht-license-badge-on .ht-license-badge-corner thead tr:first-child th:first-child:after{content:"";inline-size:min(var(--ht-license-badge-size,16px),100%);block-size:min(var(--ht-license-badge-size,16px),100%);background-color:var(--ht-license-badge-color,var(--ht-disabled-color,#a3a3a3));pointer-events:none;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%2711.1415%27 height=%2716%27 viewBox=%270 0 11.1415 16%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M7.96408 12.8226H11.1415V16H7.96408V12.8226Z%27 fill=%27%231A42E8%27/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:contain;margin:auto;position:absolute;inset:0;inset-inline-start:clamp(0px,100% - var(--ht-license-badge-size,16px),6px);mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%2711.1415%27 height=%2716%27 viewBox=%270 0 11.1415 16%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M4.61799e-05 3.17744H2.06687V7.04929H5.89738V3.17744H7.96421V12.8226H5.89738V8.84054H2.06687V12.8226H4.61799e-05V3.17744Z%27 fill=%27%23000%27/%3E%3Cpath d=%27M7.96408 12.8226H11.1415V16H7.96408V12.8226Z%27 fill=%27%23000%27/%3E%3C/svg%3E");mask-position:50%;mask-size:contain;mask-repeat:no-repeat}.ht-license-badge-on .ht-license-badge-corner thead tr:first-child th:first-child:hover:after{background-color:var(--ht-license-badge-hover-color,var(--ht-read-only-color,#68696c))}[dir=rtl] .ht-license-badge-on .ht-license-badge-corner thead tr:first-child th:first-child:after{inset-inline-start:0;inset-inline-end:clamp(0px,100% - var(--ht-license-badge-size,16px),6px)}.ht-license-badge{clip-path:inset(50%);white-space:nowrap;color:#0000;background:0 0;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;inset-block-start:0;inset-inline-start:0;overflow:hidden}.ht-license-popover{font-family:var(--ht-font-family),-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;z-index:1051;inline-size:auto;max-inline-size:min(var(--ht-license-popover-width,320px),100vw - 32px);border-radius:var(--ht-border-radius,8px);background-color:var(--ht-license-popover-background-color,#16171a);max-block-size:100%;color:var(--ht-license-popover-foreground-color,#fff);font-size:var(--ht-font-size-small,12px);line-height:var(--ht-line-height-small,18px);text-align:start;pointer-events:auto;box-shadow:var(--ht-shadow-x,0)var(--ht-shadow-y,0)var(--ht-shadow-blur,8px)color-mix(in srgb,var(--ht-shadow-color,#000)var(--ht-shadow-opacity,100%),transparent);border-start-start-radius:0;flex-direction:column;padding:16px;display:none;position:absolute;inset-block-start:0;inset-inline-start:var(--ht-license-badge-area-width,50px);inset-inline-end:0;overflow:visible}.ht-license-popover:before{content:"";border-block-start:var(--ht-license-popover-tail-size,5px)solid var(--ht-license-popover-background-color,#16171a);border-inline-start:var(--ht-license-popover-tail-size,5px)solid #0000;block-size:0;inline-size:0;position:absolute;inset-block-start:0;inset-inline-end:100%}.ht-license-popover__content{min-block-size:0;overflow-y:auto}.ht-license-badge-wrapper.is-corner-hover:not(.is-dismissed) .ht-license-popover,.ht-license-badge-wrapper:not(.is-dismissed):hover .ht-license-popover,.ht-license-popover.is-open{display:flex}.ht-license-badge-wrapper.is-cornerless .ht-license-badge{display:none}.ht-license-badge-wrapper.is-cornerless .ht-license-popover{border-start-start-radius:var(--ht-border-radius,8px);inset-inline-start:0}.ht-license-badge-wrapper.is-cornerless .ht-license-popover:before{display:none}.ht-license-popover__title{margin-block-end:8px;padding-inline-end:16px;font-weight:700}.ht-license-popover__body{color:var(--ht-license-popover-body-color,#d5d6d8);margin:0 0 12px}.ht-license-popover__link{color:var(--ht-license-popover-link-color,#3ba0ff);text-decoration:none}.ht-license-popover__link:hover{text-decoration:underline}.ht-license-popover__close{block-size:20px;inline-size:20px;color:inherit;cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;padding:0;line-height:1;display:flex;position:absolute;inset-block-start:12px;inset-inline-end:12px}.ht-license-popover__close:before{content:"\u2715";font-size:14px}.ht-dialog.ht-license-lock{z-index:1070}.ht-dialog.ht-license-lock:before{content:"";block-size:calc(var(--ht-line-height,20px) + var(--ht-density-cell-vertical,4px)*2);background-color:var(--ht-header-background-color);border-block-end:1px solid var(--ht-cell-horizontal-border-color,var(--ht-border-color));position:absolute;inset-block-start:0;inset-inline:0}.ht-dialog.ht-license-lock:after{content:"";inline-size:calc(var(--ht-license-badge-size,16px)*.696344);block-size:var(--ht-license-badge-size,16px);background-color:var(--ht-license-badge-color,var(--ht-disabled-color,#a3a3a3));position:absolute;inset-block-start:calc(var(--ht-density-cell-vertical,4px) + (var(--ht-line-height,20px) - var(--ht-license-badge-size,16px))/2);inset-inline-start:var(--ht-cell-horizontal-padding,8px);mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%2711.1415%27 height=%2716%27 viewBox=%270 0 11.1415 16%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M4.61799e-05 3.17744H2.06687V7.04929H5.89738V3.17744H7.96421V12.8226H5.89738V8.84054H2.06687V12.8226H4.61799e-05V3.17744Z%27 fill=%27%23000%27/%3E%3Cpath d=%27M7.96408 12.8226H11.1415V16H7.96408V12.8226Z%27 fill=%27%23000%27/%3E%3C/svg%3E");mask-size:contain;mask-repeat:no-repeat}.ht-dialog.ht-license-lock .ht-dialog__content-wrapper{padding-block-start:calc(var(--ht-line-height,20px) + var(--ht-density-cell-vertical,4px)*2)}.ht-dialog.ht-license-lock .ht-dialog__content-wrapper-inner,.ht-dialog.ht-license-lock .ht-dialog__content{min-inline-size:0}.ht-dialog.ht-license-lock a.ht-button{text-decoration:none;display:inline-block}.ht-dialog.ht-license-lock .ht-dialog__title,.ht-dialog.ht-license-lock .ht-dialog__description{word-break:break-word;overflow-wrap:break-word}.ht-license-powered-by{font-family:var(--ht-font-family),-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;padding:var(--ht-license-vertical-padding,8px)var(--ht-license-horizontal-padding,16px);font-size:var(--ht-font-size-small,12px);line-height:var(--ht-line-height-small,18px);color:var(--ht-license-foreground-color,#222);background-color:var(--ht-license-background-color,#f7f7f9);text-align:start;align-items:center;display:flex}.ht-license-powered-by .ht-license-powered-by__link{color:inherit;align-items:flex-start;gap:8px;text-decoration:none;display:inline-flex}.ht-license-powered-by .ht-license-powered-by__link:hover{color:inherit;text-decoration:none}.ht-license-powered-by .ht-license-powered-by__link:focus-visible{outline:2px solid var(--ht-accent-color);outline-offset:2px}.ht-license-powered-by__logo{block-size:16px;inline-size:11.1415px;background-color:light-dark(#000,#fff);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%2711.1415%27 height=%2716%27 viewBox=%270 0 11.1415 16%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M7.96408 12.8226H11.1415V16H7.96408V12.8226Z%27 fill=%27%231A42E8%27/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:contain;flex-shrink:0;margin-block-start:max(0px,(var(--ht-line-height-small,18px) - 16px)/2);mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%2711.1415%27 height=%2716%27 viewBox=%270 0 11.1415 16%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M4.61799e-05 3.17744H2.06687V7.04929H5.89738V3.17744H7.96421V12.8226H5.89738V8.84054H2.06687V12.8226H4.61799e-05V3.17744Z%27 fill=%27%23000%27/%3E%3Cpath d=%27M7.96408 12.8226H11.1415V16H7.96408V12.8226Z%27 fill=%27%23000%27/%3E%3C/svg%3E");mask-position:50%;mask-size:contain;mask-repeat:no-repeat}@media (forced-colors:active){.ht-license-powered-by__logo{forced-color-adjust:none;background-color:canvastext;background-image:none}}.handsontable td a.ht-link{color:var(--ht-link-color);text-decoration:underline}.handsontable td a.ht-link:hover{color:var(--ht-link-hover-color)}.handsontable td a.ht-link .ht-link-scheme{display:none}.ht-icon{width:var(--ht-icon-size);height:var(--ht-icon-size);vertical-align:middle;text-indent:0;pointer-events:none;flex-shrink:0;display:inline-block}.ht-icon.ht-icon--external{font-size:var(--ht-icon-size);text-align:center;background-color:#0000;line-height:1;mask-image:none}.ht-icon--flip-rtl:dir(rtl){transform:scaleX(-1)}.handsontable .htAutocompleteArrow{cursor:default;width:var(--ht-icon-size);height:var(--ht-icon-size);float:right;top:calc((var(--ht-line-height) - var(--ht-icon-size))/2);margin-inline-start:calc(var(--ht-gap-size)*2);margin-inline-end:1px;font-size:0;position:relative}.handsontable .htAutocompleteArrow .ht-icon{opacity:.6;position:absolute;top:0;left:0}.handsontable td.htAutocomplete{padding-inline-end:calc(var(--ht-cell-horizontal-padding) + var(--ht-icon-size) + var(--ht-gap-size)*2 + 1px);position:relative}.handsontable td.htAutocomplete .htAutocompleteArrow{float:none;inset-inline-end:calc(var(--ht-cell-horizontal-padding) + 1px);top:calc(var(--ht-cell-vertical-padding) + (var(--ht-line-height) - var(--ht-icon-size))/2);margin:0;position:absolute}.handsontable td.htAutocomplete.htMiddle .htAutocompleteArrow{top:50%;transform:translateY(-50%)}.handsontable td.htAutocomplete.htBottom .htAutocompleteArrow{top:auto;inset-block-end:calc(var(--ht-cell-vertical-padding) + (var(--ht-line-height) - var(--ht-icon-size))/2)}.handsontable tr.htExactRow>td.htAutocomplete>.htCellClip{padding-inline-end:calc(var(--ht-icon-size) + var(--ht-gap-size)*2 + 1px)}.handsontable tr.htExactRow>td.htAutocomplete>.htCellClip .htAutocompleteArrow{inset-inline-end:1px;top:calc((var(--ht-line-height) - var(--ht-icon-size))/2)}.handsontable tr.htExactRow>td.htAutocomplete.htMiddle>.htCellClip .htAutocompleteArrow{top:50%;transform:translateY(-50%)}.handsontable tr.htExactRow>td.htAutocomplete.htBottom>.htCellClip .htAutocompleteArrow{top:auto;inset-block-end:calc((var(--ht-line-height) - var(--ht-icon-size))/2)}[dir=rtl].handsontable .htAutocompleteArrow{float:left}.handsontable .htCheckboxRendererInput{width:var(--ht-checkbox-size);height:var(--ht-checkbox-size);vertical-align:middle;cursor:pointer;appearance:none;margin:0;outline:none;margin-top:-2px;display:inline-block;position:relative}.handsontable .htCheckboxRendererInput:before{content:"";width:var(--ht-checkbox-size);height:var(--ht-checkbox-size);border-radius:var(--ht-checkbox-border-radius);border:1px solid var(--ht-checkbox-border-color);background-color:var(--ht-checkbox-background-color);box-sizing:border-box;pointer-events:none;transition:all var(--ht-table-transition)ease-in-out;display:inline-block;position:absolute;top:0;left:0}.handsontable .htCheckboxRendererInput+.ht-icon{color:var(--ht-checkbox-icon-color)}.handsontable .htCheckboxRendererInput:checked:before{border-color:var(--ht-checkbox-checked-border-color);background-color:var(--ht-checkbox-checked-background-color)}.handsontable .htCheckboxRendererInput:checked+.ht-icon{color:var(--ht-checkbox-checked-icon-color)}.handsontable .htCheckboxRendererInput:checked:disabled:before{border-color:var(--ht-checkbox-checked-disabled-border-color);background-color:var(--ht-checkbox-checked-disabled-background-color)}.handsontable .htCheckboxRendererInput:checked:disabled+.ht-icon{color:var(--ht-checkbox-checked-disabled-icon-color)}.handsontable .htCheckboxRendererInput:checked:focus:before{border-color:var(--ht-checkbox-checked-focus-border-color);background-color:var(--ht-checkbox-checked-focus-background-color)}.handsontable .htCheckboxRendererInput:checked:focus+.ht-icon{color:var(--ht-checkbox-checked-focus-icon-color)}.handsontable .htCheckboxRendererInput:focus:before{border-color:var(--ht-checkbox-focus-border-color);background-color:var(--ht-checkbox-focus-background-color);outline:1px solid var(--ht-checkbox-focus-ring-color)}.handsontable .htCheckboxRendererInput:focus+.ht-icon{color:var(--ht-checkbox-focus-icon-color)}.handsontable .htCheckboxRendererInput:disabled{cursor:initial;pointer-events:none}.handsontable .htCheckboxRendererInput:disabled:before{border-color:var(--ht-checkbox-disabled-border-color);background-color:var(--ht-checkbox-disabled-background-color)}.handsontable .htCheckboxRendererInput:disabled+.ht-icon{color:var(--ht-checkbox-disabled-icon-color)}.handsontable .htCheckboxRendererInput:indeterminate:before{border-color:var(--ht-checkbox-indeterminate-border-color);background-color:var(--ht-checkbox-indeterminate-background-color)}.handsontable .htCheckboxRendererInput:indeterminate+.ht-icon{color:var(--ht-checkbox-indeterminate-icon-color)}.handsontable .htCheckboxRendererInput:indeterminate:disabled:before{border-color:var(--ht-checkbox-indeterminate-disabled-border-color);background-color:var(--ht-checkbox-indeterminate-disabled-background-color)}.handsontable .htCheckboxRendererInput:indeterminate:disabled+.ht-icon{color:var(--ht-checkbox-indeterminate-disabled-icon-color)}.handsontable .htCheckboxRendererInput:indeterminate:focus:before{border-color:var(--ht-checkbox-indeterminate-focus-border-color);background-color:var(--ht-checkbox-indeterminate-focus-background-color)}.handsontable .htCheckboxRendererInput:indeterminate:focus+.ht-icon{color:var(--ht-checkbox-indeterminate-focus-icon-color)}.handsontable .htCheckboxRendererInput.noValue,.handsontable .htCheckboxRendererInput.noValue+.ht-icon{opacity:.5}.handsontable .htCheckboxRendererBox{width:var(--ht-checkbox-size);height:var(--ht-checkbox-size);vertical-align:middle;margin:-2px 0 0;line-height:0;display:inline-block;position:relative}.handsontable .htCheckboxRendererBox:first-child{margin-inline-end:var(--ht-gap-size)}.handsontable .htCheckboxRendererBox:last-child{margin-inline-start:var(--ht-gap-size)}.handsontable .htCheckboxRendererBox>.htCheckboxRendererInput{margin:0;display:block}.handsontable .htCheckboxRendererBox>.ht-icon{z-index:1;width:var(--ht-checkbox-size);height:var(--ht-checkbox-size);margin:0;position:absolute;inset:0}.handsontable :not(.htCheckboxRendererBox)>.htCheckboxRendererInput:not(:first-child){margin-inline-start:var(--ht-gap-size)}.handsontable :not(.htCheckboxRendererBox)>.htCheckboxRendererInput+.ht-icon{z-index:1;width:var(--ht-checkbox-size);height:var(--ht-checkbox-size);vertical-align:middle;margin-inline-start:calc(-1*var(--ht-checkbox-size));margin-top:-2px;position:relative}.handsontable :not(.htCheckboxRendererBox)>.htCheckboxRendererInput+.ht-icon:not(:last-child){margin-inline-end:var(--ht-gap-size)}.handsontable :not(.htCheckboxRendererBox)>.htCheckboxRendererInput:first-child:nth-last-child(2){margin-inline-start:var(--ht-gap-size)}.handsontable :not(.htCheckboxRendererBox)>.htCheckboxRendererInput:first-child:nth-last-child(2)+.ht-icon{margin-inline-end:var(--ht-gap-size)}.handsontable .htCheckboxRendererLabel{font-size:inherit;line-height:inherit;cursor:pointer;color:inherit;margin:0;display:inline-block;position:relative}.handsontable .htCheckboxRendererLabel.fullWidth{width:100%}.handsontable .htPlaceholder{color:var(--ht-placeholder-color)}.handsontable .htDimmed{color:var(--ht-read-only-color)!important;background-color:var(--ht-cell-read-only-background-color)!important}.handsontable .htLeft{text-align:left}.handsontable .htCenter{text-align:center}.handsontable .htRight{text-align:right}.handsontable .htJustify{text-align:justify}.handsontable .htTop{vertical-align:top}.handsontable .htMiddle{vertical-align:middle}.handsontable .htBottom{vertical-align:bottom}.handsontable .htInvalid{background-color:var(--ht-cell-error-background-color)!important}.handsontable .htNoWrap{white-space:nowrap}.handsontable .htSearchResult{background-color:var(--ht-cell-success-background-color)!important}.handsontable .ht-multi-select-renderer{padding:var(--ht-cell-vertical-padding)var(--ht-cell-horizontal-padding);overflow:hidden}.handsontable .ht-multi-select-arrow{cursor:default;width:var(--ht-icon-size);height:var(--ht-icon-size);float:right;top:calc((var(--ht-line-height) - var(--ht-icon-size))/2);font-size:0;line-height:inherit;font-weight:inherit;letter-spacing:inherit;margin-inline-start:calc(var(--ht-gap-size)*2);margin-inline-end:1px;font-family:inherit;position:relative}.handsontable .ht-multi-select-arrow .ht-icon{opacity:.6;position:absolute;top:0;left:0}.handsontable .ht-multi-select-chips-container{align-items:center;gap:var(--ht-gap-size);flex-wrap:nowrap;max-width:100%;display:flex;overflow:hidden}.handsontable .ht-multi-select-chip{align-items:center;gap:var(--ht-gap-size);padding:var(--ht-chip-vertical-padding)calc((var(--ht-line-height) - var(--ht-icon-size))/2)var(--ht-chip-vertical-padding)var(--ht-chip-horizontal-padding);border-radius:var(--ht-chip-border-radius);background:var(--ht-chip-background);white-space:nowrap;box-sizing:border-box;max-width:100px;font-size:inherit;line-height:inherit;font-weight:inherit;letter-spacing:inherit;flex-shrink:0;font-family:inherit;display:inline-flex}.handsontable .ht-multi-select-chip-label{text-overflow:ellipsis;color:var(--ht-foreground-color);padding:0 var(--ht-chip-gap);font-style:normal;font-size:inherit;line-height:inherit;font-weight:inherit;letter-spacing:inherit;font-family:inherit;overflow:hidden}.handsontable .ht-multi-select-chip-remove{cursor:pointer;color:var(--ht-icon-button-icon-color);font-size:inherit;line-height:inherit;font-weight:inherit;letter-spacing:inherit;background-position:50%;background-repeat:no-repeat;background-size:contain;flex-shrink:0;justify-content:center;align-items:center;padding:0;font-family:inherit;display:flex;position:relative;width:var(--ht-icon-size)!important;height:var(--ht-icon-size)!important}.handsontable .ht-multi-select-chip-remove .ht-icon{position:absolute;top:0;left:0}.handsontable .ht-multi-select-chip-remove:hover{background-color:var(--ht-icon-button-hover-background-color)}.handsontable .ht-multi-select-overflow{padding:var(--ht-chip-vertical-padding)var(--ht-chip-horizontal-padding);background:var(--ht-chip-background);border-radius:var(--ht-chip-border-radius);color:var(--ht-foreground-color);white-space:nowrap;font-size:inherit;line-height:inherit;font-weight:inherit;letter-spacing:inherit;flex-shrink:0;justify-content:center;align-items:center;font-family:inherit;display:inline-flex}[dir=rtl].handsontable .ht-multi-select-arrow{float:left}.handsontableInputHolder{position:absolute;top:0;left:0}.handsontableInputHolder .handsontableInput{padding:calc(var(--ht-cell-vertical-padding,4px) + 1px)calc(var(--ht-cell-horizontal-padding,8px) + 1px);color:var(--ht-cell-editor-foreground-color);background-color:var(--ht-cell-editor-background-color,#fff);box-shadow:inset 0 0 0 var(--ht-cell-editor-border-width,2px)var(--ht-cell-editor-border-color,#1a42e8),0 0 var(--ht-cell-editor-shadow-blur-radius,0)0 var(--ht-cell-editor-shadow-color,transparent);box-sizing:border-box;border:none;border-radius:0;outline-width:0;margin:0;display:block;font-family:inherit!important;font-size:inherit!important;line-height:inherit!important;-webkit-appearance:none!important}.handsontableInputHolder .handsontableInput:focus{outline:none}.htSelectEditor{position:absolute}.htSelectEditor select{width:100%;height:100%;padding:calc(var(--ht-cell-vertical-padding,4px) + 1px)calc(var(--ht-cell-horizontal-padding,8px) + 1px);white-space:nowrap;text-overflow:ellipsis;color:var(--ht-cell-editor-foreground-color);background-color:var(--ht-cell-editor-background-color,#fff);box-shadow:inset 0 0 0 var(--ht-cell-editor-border-width,2px)var(--ht-cell-editor-border-color,#1a42e8),0 0 var(--ht-cell-editor-shadow-blur-radius,0)0 var(--ht-cell-editor-shadow-color,transparent);box-sizing:border-box;border:none;border-radius:0;margin:0;padding-inline-end:26px;position:absolute;inset:0;overflow:hidden;font-family:inherit!important;font-size:inherit!important;line-height:inherit!important;-webkit-appearance:none!important}.htSelectEditor select:focus{outline:none}.htSelectEditor .htAutocompleteArrow{z-index:1;pointer-events:none;margin-inline-end:4px;top:50%;transform:translateY(-50%)}.handsontable.listbox{box-shadow:var(--ht-menu-shadow-x,0)var(--ht-menu-shadow-y,0)var(--ht-menu-shadow-blur,8px)color-mix(in srgb,var(--ht-menu-shadow-color,#000)var(--ht-menu-shadow-opacity,100%),transparent);border:var(--ht-menu-border-width,1px)solid var(--ht-menu-border-color,#e5e5e9);margin:0}.handsontable.listbox .ht_master{background-color:var(--ht-background-color);overflow:hidden}.handsontable.listbox .wtHolder{overflow:auto;border-radius:0!important}.handsontable.listbox .wtHider,.handsontable.listbox .htCore{border-radius:0!important}.handsontable.listbox table{overflow:hidden}.handsontable.listbox table th,.handsontable.listbox table tr:first-child th,.handsontable.listbox table tr:last-child th,.handsontable.listbox table tr:first-child td,.handsontable.listbox table td{border-color:#0000!important}.handsontable.listbox table th,.handsontable.listbox table td{white-space:nowrap;text-overflow:ellipsis;border-radius:0!important}.handsontable.listbox table .wtBorder{visibility:hidden}.handsontable.listbox table strong{color:inherit;font-weight:700}.handsontable.listbox table tr td:hover td{cursor:pointer;background:color-mix(in srgb,var(--ht-menu-item-hover-color)var(--ht-menu-item-hover-color-opacity,100%),transparent)!important;box-shadow:none!important}.handsontable.listbox table td{transition:var(--ht-table-transition)background ease-in-out}.handsontable.listbox table td:hover{cursor:pointer;background-color:color-mix(in srgb,var(--ht-menu-item-hover-color)var(--ht-menu-item-hover-color-opacity,100%),transparent)!important}.handsontable.listbox table td.current:not([aria-expanded=true]){box-shadow:inset 0 0 0 1px var(--ht-accent-color)}.handsontable.listbox table td.htDimmed{cursor:default;font-style:inherit;color:inherit!important}.handsontable.listbox table td.htDimmed:not(.handsontable.listbox table td:hover){background-color:inherit!important}.handsontable.listbox table thead th{text-align:left;height:auto!important}.handsontable.listbox table thead th .relative{padding-top:calc(var(--ht-cell-vertical-padding) + var(--ht-gap-size));padding-bottom:calc(var(--ht-cell-vertical-padding) + var(--ht-gap-size))}.handsontable.listbox .ht_clone_top .wtHider{overflow:hidden}.handsontable.listbox .ht_clone_top table{border-radius:0}.handsontable.listbox .htBorders div{background:0 0!important}.handsontable.autocompleteEditor tr.ht__row_even th,.handsontable.autocompleteEditor tr.ht__row_even td,.handsontable.autocompleteEditor tr.ht__row_odd th,.handsontable.autocompleteEditor tr.ht__row_odd td{background-color:var(--ht-background-color,#fff)}[dir=rtl].handsontable.listbox table thead th{text-align:right}.handsontableEditor{position:absolute}.handsontableEditor .ht-multi-select-editor{box-shadow:var(--ht-menu-shadow-x,0)var(--ht-menu-shadow-y,0)var(--ht-menu-shadow-blur,8px)color-mix(in srgb,var(--ht-menu-shadow-color,#000)var(--ht-menu-shadow-opacity,100%),transparent);scrollbar-width:auto;scrollbar-color:var(--ht-scrollbar-thumb-color)var(--ht-scrollbar-track-color);border-radius:0 0 var(--ht-menu-border-radius)var(--ht-menu-border-radius);border:var(--ht-menu-border-width)solid var(--ht-menu-border-color);background:var(--ht-background-color);width:max-content;min-width:120px;padding:var(--ht-menu-vertical-padding)var(--ht-menu-horizontal-padding);overflow-y:auto}.handsontableEditor .ht-multi-select-editor .ht-multi-select-editor-search-input-wrapper{padding:var(--ht-menu-item-vertical-padding)var(--ht-menu-item-horizontal-padding);align-items:center;gap:var(--ht-gap-size);align-self:stretch;display:flex;position:relative}.handsontableEditor .ht-multi-select-editor .ht-multi-select-editor-search-input-wrapper .ht-icon-search{left:calc(var(--ht-menu-item-horizontal-padding) + 10px);opacity:.5;z-index:1;width:16px;height:16px;position:absolute;top:50%;transform:translateY(-50%)}.handsontableEditor .ht-multi-select-editor input.ht-multi-select-editor-search-input{box-sizing:border-box;border-radius:var(--ht-input-border-radius);width:100%;color:var(--ht-input-foreground-color);background-color:var(--ht-input-background-color);border:1px solid var(--ht-input-border-color);transition:var(--ht-table-transition)all ease-in-out;line-height:var(--ht-line-height);font-size:var(--ht-font-size);padding:var(--ht-input-vertical-padding)var(--ht-menu-item-horizontal-padding)var(--ht-input-vertical-padding)32px}.handsontableEditor .ht-multi-select-editor input.ht-multi-select-editor-search-input:hover{border-color:var(--ht-input-hover-border-color);color:var(--ht-input-hover-foreground-color);background-color:var(--ht-input-hover-background-color)}.handsontableEditor .ht-multi-select-editor input.ht-multi-select-editor-search-input:disabled{border-color:var(--ht-input-disabled-border-color);color:var(--ht-input-disabled-foreground-color);background-color:var(--ht-input-disabled-background-color)}.handsontableEditor .ht-multi-select-editor input.ht-multi-select-editor-search-input:focus{border-color:var(--ht-input-focus-border-color);color:var(--ht-input-focus-foreground-color);background-color:var(--ht-input-focus-background-color);outline-offset:0;box-shadow:none;outline:none}.handsontableEditor .ht-multi-select-editor input.ht-multi-select-editor-search-input::placeholder{color:var(--ht-foreground-color);opacity:.6}.handsontableEditor .ht-multi-select-editor .ht-multi-select-editor-separator{background-color:var(--ht-menu-border-color);width:100%;height:1px;margin:var(--ht-menu-vertical-padding)0 var(--ht-menu-vertical-padding)0;padding:0}.handsontableEditor .ht-multi-select-editor ul{width:100%;padding:var(--ht-gap-size)var(--ht-menu-horizontal-padding);flex-direction:column;align-items:flex-start;margin:0;list-style:none;display:flex}.handsontableEditor .ht-multi-select-editor ul li{background:var(--ht-background-color);padding:var(--ht-menu-item-vertical-padding)var(--ht-menu-item-horizontal-padding);-webkit-user-select:none;user-select:none;cursor:pointer;align-self:stretch;align-items:center;display:flex}.handsontableEditor .ht-multi-select-editor ul li *{cursor:pointer}.handsontableEditor .ht-multi-select-editor ul li.ht-multi-select-editor-item-selected{background:color-mix(in srgb,var(--ht-menu-item-active-color)var(--ht-menu-item-active-color-opacity,100%),transparent)}.handsontableEditor .ht-multi-select-editor ul li div{flex:1 0 0;align-items:center;display:flex}.handsontableEditor .ht-multi-select-editor ul li div input{appearance:none;width:var(--ht-checkbox-size);height:var(--ht-checkbox-size);flex-shrink:0;margin:0;padding:0;display:flex;position:relative}.handsontableEditor .ht-multi-select-editor ul li div input:before{content:"";box-sizing:border-box;width:var(--ht-checkbox-size);height:var(--ht-checkbox-size);border-radius:var(--ht-checkbox-border-radius);border:1px solid var(--ht-checkbox-border-color);background:var(--ht-checkbox-background-color);background-position:50%;background-repeat:no-repeat;display:block;position:absolute;top:0;left:0}.handsontableEditor .ht-multi-select-editor ul li div input:checked:before{border-color:var(--ht-checkbox-checked-border-color);background:var(--ht-checkbox-checked-background-color)}.handsontableEditor .ht-multi-select-editor ul li div input:focus{outline:none}.handsontableEditor .ht-multi-select-editor ul li div input+.ht-icon{z-index:1;width:var(--ht-checkbox-size);height:var(--ht-checkbox-size);color:var(--ht-checkbox-icon-color);margin-inline-start:calc(-1*var(--ht-checkbox-size));position:relative}.handsontableEditor .ht-multi-select-editor ul li div input:checked+.ht-icon{color:var(--ht-checkbox-checked-icon-color)}.handsontableEditor .ht-multi-select-editor ul li div label{color:var(--ht-foreground-color);text-overflow:ellipsis;font-size:var(--ht-font-size);font-style:normal;font-weight:400;line-height:var(--ht-line-height);letter-spacing:var(--ht-letter-spacing);width:100%;padding:0;padding-inline-start:var(--ht-gap-size);overflow:hidden}.handsontableEditor .ht-multi-select-editor ul li:hover,.handsontableEditor .ht-multi-select-editor ul li:has(input:focus){background:color-mix(in srgb,var(--ht-menu-item-hover-color)var(--ht-menu-item-hover-color-opacity,100%),transparent)}.handsontable .htUISelectCaption{width:100%;padding:var(--ht-input-vertical-padding)var(--ht-input-horizontal-padding);font-family:inherit;font-size:var(--ht-font-size);line-height:var(--ht-line-height);font-weight:var(--ht-font-weight);border-radius:var(--ht-input-border-radius);box-sizing:border-box;cursor:pointer;border:var(--ht-input-border-width)solid var(--ht-input-border-color);color:var(--ht-input-foreground-color);background-color:var(--ht-input-background-color);text-overflow:ellipsis;white-space:nowrap;transition:var(--ht-table-transition)all ease-in-out;margin:0;padding-inline-end:calc(var(--ht-input-horizontal-padding) + var(--ht-icon-size));overflow:hidden;outline:none!important}.handsontable .htUISelectCaption .ht-icon{inset-inline-end:calc(var(--ht-input-horizontal-padding) - var(--ht-icon-size)/4);position:absolute;top:50%;transform:translateY(-50%)}.handsontable .htUISelectCaption:hover{border-color:var(--ht-input-hover-border-color);color:var(--ht-input-hover-foreground-color);background-color:var(--ht-input-hover-background-color)}.handsontable .htUISelectCaption:disabled{border-color:var(--ht-input-disabled-border-color);color:var(--ht-input-disabled-foreground-color);background-color:var(--ht-input-disabled-background-color)}.handsontable .htUISelectCaption:focus{border-color:var(--ht-input-focus-border-color);color:var(--ht-input-focus-foreground-color);background-color:var(--ht-input-focus-background-color)}.handsontable .htUISelect{cursor:pointer;position:relative;outline:none!important}.handsontable .htUISelect:focus .htUISelectCaption{border-color:var(--ht-input-focus-border-color);color:var(--ht-input-focus-foreground-color);background-color:var(--ht-input-focus-background-color)}.handsontable .htFiltersMenuCondition .htUIInput input,.handsontable .htFiltersMenuValue .htUIMultipleSelectSearch input{width:100%;padding:var(--ht-input-vertical-padding)var(--ht-input-horizontal-padding);font-family:inherit;font-size:var(--ht-font-size);line-height:var(--ht-line-height);font-weight:var(--ht-font-weight);border-radius:var(--ht-input-border-radius);box-sizing:border-box;cursor:pointer;border:var(--ht-input-border-width)solid var(--ht-input-border-color);color:var(--ht-input-foreground-color);background-color:var(--ht-input-background-color);transition:var(--ht-table-transition)all ease-in-out;outline:none!important}.handsontable .htFiltersMenuCondition .htUIInput input:hover,.handsontable .htFiltersMenuValue .htUIMultipleSelectSearch input:hover{border-color:var(--ht-input-hover-border-color);color:var(--ht-input-hover-foreground-color);background-color:var(--ht-input-hover-background-color)}.handsontable .htFiltersMenuCondition .htUIInput input:disabled,.handsontable .htFiltersMenuValue .htUIMultipleSelectSearch input:disabled{border-color:var(--ht-input-disabled-border-color);color:var(--ht-input-disabled-foreground-color);background-color:var(--ht-input-disabled-background-color)}.handsontable .htFiltersMenuCondition .htUIInput input:focus,.handsontable .htFiltersMenuValue .htUIMultipleSelectSearch input:focus{border-color:var(--ht-input-focus-border-color);color:var(--ht-input-focus-foreground-color);background-color:var(--ht-input-focus-background-color)}.handsontable .htUIInput{text-align:center;padding:0;position:relative;outline:none!important}.handsontable .htUIInputIcon{position:absolute}.handsontable .htUIInput.htUIButton input,.handsontable .ht-button{min-width:64px;padding:var(--ht-button-vertical-padding)var(--ht-button-horizontal-padding);font-family:inherit;font-size:var(--ht-font-size);line-height:var(--ht-line-height);font-weight:var(--ht-font-weight);border-radius:var(--ht-button-border-radius);box-sizing:border-box;cursor:pointer;transition:var(--ht-table-transition)all ease-in-out;border-style:solid;border-width:1px;outline:none!important}.handsontable .htUIInput.htUIButtonCancel input,.handsontable .ht-button--secondary{border-color:var(--ht-secondary-button-border-color);background-color:var(--ht-secondary-button-background-color);color:var(--ht-secondary-button-foreground-color)}.handsontable .htUIInput.htUIButtonCancel input:hover,.handsontable .ht-button--secondary:hover{border-color:var(--ht-secondary-button-hover-border-color);background-color:var(--ht-secondary-button-hover-background-color);color:var(--ht-secondary-button-hover-foreground-color)}.handsontable .htUIInput.htUIButtonCancel input:disabled,.handsontable .ht-button--secondary:disabled{border-color:var(--ht-secondary-button-disabled-border-color);background-color:var(--ht-secondary-button-disabled-background-color);color:var(--ht-secondary-button-disabled-foreground-color)}.handsontable .htUIInput.htUIButtonCancel input:focus,.handsontable .ht-button--secondary:focus{border-color:var(--ht-secondary-button-focus-border-color);background-color:var(--ht-secondary-button-focus-background-color);color:var(--ht-secondary-button-focus-foreground-color);box-shadow:0 0 0 1px var(--ht-accent-color)}.htUIInput.htUIButtonOK input,.ht-button--primary{border-color:var(--ht-primary-button-border-color);background-color:var(--ht-primary-button-background-color);color:var(--ht-primary-button-foreground-color)}.htUIInput.htUIButtonOK input:hover,.ht-button--primary:hover{border-color:var(--ht-primary-button-hover-border-color);background-color:var(--ht-primary-button-hover-background-color);color:var(--ht-primary-button-hover-foreground-color)}.htUIInput.htUIButtonOK input:disabled,.ht-button--primary:disabled{border-color:var(--ht-primary-button-disabled-border-color);background-color:var(--ht-primary-button-disabled-background-color);color:var(--ht-primary-button-disabled-foreground-color)}.htUIInput.htUIButtonOK input:focus,.ht-button--primary:focus{border-color:var(--ht-primary-button-focus-border-color);background-color:var(--ht-primary-button-focus-background-color);color:var(--ht-primary-button-focus-foreground-color);box-shadow:0 0 0 1px var(--ht-accent-color)}.handsontable .htUIRadio{padding:var(--ht-gap-size)calc(2*var(--ht-gap-size));align-items:center;gap:var(--ht-gap-size);cursor:pointer;margin:0;padding-bottom:0;display:inline-flex;position:relative}.handsontable .htUIRadio:first-child{padding-inline-start:0}.handsontable .htUIRadio>input[type=radio]{width:var(--ht-radio-size);height:var(--ht-radio-size);appearance:none;cursor:pointer;border-radius:calc(.5*var(--ht-radio-size));outline:none;margin:0;position:relative}.handsontable .htUIRadio>input[type=radio]:before{content:"";border-radius:calc(.5*var(--ht-radio-size));border:1px solid var(--ht-radio-border-color);background-color:var(--ht-radio-background-color);display:block;position:absolute;inset:0}.handsontable .htUIRadio>input[type=radio]:checked:before{border-color:var(--ht-radio-checked-border-color);background-color:var(--ht-radio-checked-background-color)}.handsontable .htUIRadio>input[type=radio]:checked:disabled{cursor:initial}.handsontable .htUIRadio>input[type=radio]:checked:disabled:before{border-color:var(--ht-radio-checked-disabled-border-color);background-color:var(--ht-radio-checked-disabled-background-color)}.handsontable .htUIRadio>input[type=radio]:checked:focus:before{border-color:var(--ht-radio-checked-focus-border-color);background-color:var(--ht-radio-checked-focus-background-color)}.handsontable .htUIRadio>input[type=radio]:disabled{cursor:initial}.handsontable .htUIRadio>input[type=radio]:disabled:before{border-color:var(--ht-radio-disabled-border-color);background-color:var(--ht-radio-disabled-background-color)}.handsontable .htUIRadio>input[type=radio]:focus:before{border-color:var(--ht-radio-focus-border-color);background-color:var(--ht-radio-focus-background-color);outline:1px solid var(--ht-radio-focus-ring-color)}.handsontable .htUIRadio>input[type=radio]+.ht-icon{z-index:1;color:var(--ht-radio-icon-color);position:absolute}.handsontable .htUIRadio>input[type=radio]:checked+.ht-icon{color:var(--ht-radio-checked-icon-color)}.handsontable .htUIRadio>input[type=radio]:checked:disabled+.ht-icon{color:var(--ht-radio-checked-disabled-icon-color)}.handsontable .htUIRadio>input[type=radio]:checked:focus+.ht-icon{color:var(--ht-radio-checked-focus-icon-color)}.handsontable .htUIRadio>input[type=radio]:disabled+.ht-icon{color:var(--ht-radio-disabled-icon-color)}.handsontable .htUIRadio>input[type=radio]:focus+.ht-icon{color:var(--ht-radio-focus-icon-color)}.handsontable .htUIRadio label{vertical-align:middle;cursor:pointer;color:inherit}.handsontable .htUIRadio label:before{content:"";display:block;position:absolute;inset:0}.handsontable .collapsibleIndicator,.handsontable .ht_nestingButton{width:var(--ht-icon-button-hit-area-size);height:var(--ht-icon-button-hit-area-size);margin:calc(-1*(var(--ht-icon-button-hit-area-size) - var(--ht-icon-size))/2 + 1px);box-sizing:border-box;cursor:pointer;text-indent:-100px;flex-shrink:0;font-size:0;position:relative;overflow:visible}.handsontable .collapsibleIndicator>.ht-icon,.handsontable .ht_nestingButton>.ht-icon{width:var(--ht-icon-size);height:var(--ht-icon-size);margin-top:calc(-.5*var(--ht-icon-size));margin-left:calc(-.5*var(--ht-icon-size));border-radius:var(--ht-collapse-button-border-radius);transition:var(--ht-table-transition)all ease-in-out;z-index:1;position:absolute;top:50%;left:50%}.handsontable .collapsibleIndicator:after,.handsontable .ht_nestingButton:after{content:"";width:var(--ht-icon-size);height:var(--ht-icon-size);margin-top:calc(-.5*var(--ht-icon-size));margin-left:calc(-.5*var(--ht-icon-size));border-radius:var(--ht-collapse-button-border-radius);transition:var(--ht-table-transition)all ease-in-out;z-index:0;display:block;position:absolute;top:50%;left:50%}.handsontable .collapsibleIndicator.expanded>.ht-icon,.handsontable .collapsibleIndicator.ht_nestingCollapse>.ht-icon,.handsontable .ht_nestingButton.expanded>.ht-icon,.handsontable .ht_nestingButton.ht_nestingCollapse>.ht-icon{color:var(--ht-collapse-button-open-icon-color)}.handsontable .collapsibleIndicator.expanded:after,.handsontable .collapsibleIndicator.ht_nestingCollapse:after,.handsontable .ht_nestingButton.expanded:after,.handsontable .ht_nestingButton.ht_nestingCollapse:after{background-color:var(--ht-collapse-button-open-background-color);box-shadow:0 0 0 1px var(--ht-collapse-button-open-border-color)}.handsontable .collapsibleIndicator.expanded:hover>.ht-icon,.handsontable .collapsibleIndicator.ht_nestingCollapse:hover>.ht-icon,.handsontable .ht_nestingButton.expanded:hover>.ht-icon,.handsontable .ht_nestingButton.ht_nestingCollapse:hover>.ht-icon{color:var(--ht-collapse-button-open-hover-icon-color)}.handsontable .collapsibleIndicator.expanded:hover:after,.handsontable .collapsibleIndicator.ht_nestingCollapse:hover:after,.handsontable .ht_nestingButton.expanded:hover:after,.handsontable .ht_nestingButton.ht_nestingCollapse:hover:after{background-color:var(--ht-collapse-button-open-hover-background-color);box-shadow:0 0 0 1px var(--ht-collapse-button-open-hover-border-color)}.handsontable .collapsibleIndicator.collapsed>.ht-icon,.handsontable .collapsibleIndicator.ht_nestingExpand>.ht-icon,.handsontable .ht_nestingButton.collapsed>.ht-icon,.handsontable .ht_nestingButton.ht_nestingExpand>.ht-icon{color:var(--ht-collapse-button-close-icon-color)}.handsontable .collapsibleIndicator.collapsed:after,.handsontable .collapsibleIndicator.ht_nestingExpand:after,.handsontable .ht_nestingButton.collapsed:after,.handsontable .ht_nestingButton.ht_nestingExpand:after{background-color:var(--ht-collapse-button-close-background-color);box-shadow:0 0 0 1px var(--ht-collapse-button-close-border-color)}.handsontable .collapsibleIndicator.collapsed:hover>.ht-icon,.handsontable .collapsibleIndicator.ht_nestingExpand:hover>.ht-icon,.handsontable .ht_nestingButton.collapsed:hover>.ht-icon,.handsontable .ht_nestingButton.ht_nestingExpand:hover>.ht-icon{color:var(--ht-collapse-button-close-hover-icon-color)}.handsontable .collapsibleIndicator.collapsed:hover:after,.handsontable .collapsibleIndicator.ht_nestingExpand:hover:after,.handsontable .ht_nestingButton.collapsed:hover:after,.handsontable .ht_nestingButton.ht_nestingExpand:hover:after{background-color:var(--ht-collapse-button-close-hover-background-color);box-shadow:0 0 0 1px var(--ht-collapse-button-close-hover-border-color)}.handsontable th.ht__active_highlight .collapsibleIndicator.collapsed>.ht-icon,.handsontable th.ht__active_highlight .collapsibleIndicator.ht_nestingExpand>.ht-icon,.handsontable th.ht__active_highlight .ht_nestingButton.collapsed>.ht-icon,.handsontable th.ht__active_highlight .ht_nestingButton.ht_nestingExpand>.ht-icon{color:var(--ht-collapse-button-close-icon-active-color)}.handsontable th.ht__active_highlight .collapsibleIndicator.collapsed:hover>.ht-icon,.handsontable th.ht__active_highlight .collapsibleIndicator.ht_nestingExpand:hover>.ht-icon,.handsontable th.ht__active_highlight .ht_nestingButton.collapsed:hover>.ht-icon,.handsontable th.ht__active_highlight .ht_nestingButton.ht_nestingExpand:hover>.ht-icon{color:var(--ht-collapse-button-close-hover-icon-active-color)}.handsontable th.ht__active_highlight .collapsibleIndicator.expanded>.ht-icon,.handsontable th.ht__active_highlight .collapsibleIndicator.ht_nestingCollapse>.ht-icon,.handsontable th.ht__active_highlight .ht_nestingButton.expanded>.ht-icon,.handsontable th.ht__active_highlight .ht_nestingButton.ht_nestingCollapse>.ht-icon{color:var(--ht-collapse-button-open-icon-active-color)}.handsontable th.ht__active_highlight .collapsibleIndicator.expanded:hover>.ht-icon,.handsontable th.ht__active_highlight .collapsibleIndicator.ht_nestingCollapse:hover>.ht-icon,.handsontable th.ht__active_highlight .ht_nestingButton.expanded:hover>.ht-icon,.handsontable th.ht__active_highlight .ht_nestingButton.ht_nestingCollapse:hover>.ht-icon{color:var(--ht-collapse-button-open-hover-icon-active-color)}.handsontable .relative:not(.has-sort-indicator)>.changeType~.collapsibleIndicator{--ht-collapse-button-hit-area-overlap:max(0px,calc(var(--ht-icon-button-hit-area-size) - var(--ht-icon-size) - 4px));z-index:1;clip-path:inset(0 0 0 calc(var(--ht-collapse-button-hit-area-overlap)/2))}.handsontable .relative:not(.has-sort-indicator)>.changeType~.collapsibleIndicator:dir(rtl){clip-path:inset(0 calc(var(--ht-collapse-button-hit-area-overlap)/2)0 0)}.handsontable thead th.htRowspanHeader{vertical-align:bottom;height:auto;overflow:visible}.handsontable thead th.htRowspanHeader.ht__active_highlight{border-inline-start-color:var(--ht-header-active-border-color);z-index:1}.handsontable.htRowHeaders.htHasRowspanHeaders :where(table.htCore)>thead>tr:last-child>th:first-child{border-end-start-radius:0}.handsontable.htHasRowspanHeaders .ht_clone_inline_start .htCore>tbody>tr:first-child>th:first-child{border-start-start-radius:0}.handsontable thead th.hiddenHeader:not(:first-of-type){display:none}.handsontable thead th.hiddenHeaderText .colHeader{opacity:0}.handsontable th.ht_nestingLevels>.relative{align-items:center;gap:5px;display:flex}.handsontable th.ht_nestingLevels>.relative>span:last-child{padding-left:calc(var(--ht-icon-size) + 5px)}.handsontable th.ht_nestingLevels span.ht_nestingLevel{display:inline-block}.handsontable th.ht_nestingLevels span.ht_nestingLevel_empty{order:-2;width:5px;height:1px;display:inline-block;position:relative}.handsontable th.ht_nestingLevels .ht_nestingButton{cursor:pointer;order:-1;position:relative}.handsontable tr.htExactRow>th.ht_nestingLevels>.relative{align-items:flex-start}.handsontable tr.htExactRow>th.ht_nestingLevels>.relative>.ht_nestingButton{margin-top:calc((var(--ht-line-height,20px) - var(--ht-icon-button-hit-area-size,24px))/2)}.handsontable thead th.beforeHiddenColumn,.handsontable thead th.afterHiddenColumn{position:relative}.handsontable thead th>.ht-hidden-indicator-start,.handsontable thead th>.ht-hidden-indicator-end{color:var(--ht-hidden-indicator-color);font-size:10px;position:absolute;top:50%;transform:translateY(-50%);width:10px!important;height:10px!important}.handsontable thead th:not(.beforeHiddenColumn)>.ht-hidden-indicator-end,.handsontable thead th:not(.afterHiddenColumn)>.ht-hidden-indicator-start{display:none}.handsontable th.beforeHiddenColumn>.ht-hidden-indicator-end{right:-1px;mask-position:1px 0;mask-repeat:no-repeat}.handsontable th.afterHiddenColumn>.ht-hidden-indicator-start{left:-2px}.handsontable th.ht__active_highlight.beforeHiddenColumn>.ht-hidden-indicator-end,.handsontable th.ht__active_highlight.afterHiddenColumn>.ht-hidden-indicator-start{color:var(--ht-icon-button-active-icon-color,var(--ht-icon-active-button-icon-color))}[dir=rtl].handsontable th.beforeHiddenColumn>.ht-hidden-indicator-end{right:initial;left:-1px;transform:translateY(-50%)rotate(180deg)}[dir=rtl].handsontable th.afterHiddenColumn>.ht-hidden-indicator-start{right:-2px;left:initial;transform:translateY(-50%)rotate(180deg)}.handsontable tbody th.beforeHiddenRow,.handsontable tbody th.afterHiddenRow{position:relative}.handsontable tbody th>.ht-hidden-indicator-start,.handsontable tbody th>.ht-hidden-indicator-end{color:var(--ht-hidden-indicator-color);font-size:10px;position:absolute;left:50%;transform:translate(-50%);width:10px!important;height:10px!important}.handsontable tbody th:not(.beforeHiddenRow)>.ht-hidden-indicator-end,.handsontable tbody th:not(.afterHiddenRow)>.ht-hidden-indicator-start{display:none}.handsontable th.beforeHiddenRow>.ht-hidden-indicator-end{bottom:-1px;mask-position:0 1px;mask-repeat:no-repeat}.handsontable th.afterHiddenRow>.ht-hidden-indicator-start{top:-2px}.handsontable th.ht__active_highlight.beforeHiddenRow>.ht-hidden-indicator-end,.handsontable th.ht__active_highlight.afterHiddenRow>.ht-hidden-indicator-start{color:var(--ht-icon-button-active-icon-color,var(--ht-icon-active-button-icon-color))}.handsontable .changeType{box-sizing:border-box;width:var(--ht-icon-button-hit-area-size);height:var(--ht-icon-button-hit-area-size);margin:calc(-1*(var(--ht-icon-button-hit-area-size) - var(--ht-icon-size))/2 + 1px);box-shadow:none;color:inherit;z-index:1;background:0 0;border:none;outline:none;flex-shrink:0;padding:0;position:relative;overflow:visible}.handsontable .changeType .ht-icon{margin-top:calc(-.5*var(--ht-icon-size));margin-left:calc(-.5*var(--ht-icon-size));color:var(--ht-icon-button-icon-color);z-index:1;position:absolute;top:50%;left:50%}.handsontable .changeType:after{content:"";width:var(--ht-icon-size);height:var(--ht-icon-size);margin-top:calc(-.5*var(--ht-icon-size));margin-left:calc(-.5*var(--ht-icon-size));border-radius:var(--ht-icon-button-border-radius);box-shadow:0 0 0 1px var(--ht-icon-button-border-color);background-color:var(--ht-icon-button-background-color);z-index:0;display:block;position:absolute;top:50%;left:50%}.handsontable .changeType:hover{cursor:pointer}.handsontable .changeType:hover .ht-icon{color:var(--ht-icon-button-hover-icon-color)}.handsontable .changeType:hover:after{box-shadow:0 0 0 1px var(--ht-icon-button-hover-border-color);background-color:var(--ht-icon-button-hover-background-color)}.handsontable .ht__active_highlight .changeType .ht-icon{color:var(--ht-icon-button-active-icon-color,var(--ht-icon-active-button-icon-color))}.handsontable .ht__active_highlight .changeType:after{box-shadow:0 0 0 1px var(--ht-icon-button-active-border-color,var(--ht-icon-active-button-border-color));background-color:var(--ht-icon-button-active-background-color,var(--ht-icon-active-button-background-color))}.handsontable .ht__active_highlight .changeType:hover .ht-icon{color:var(--ht-icon-button-active-hover-icon-color,var(--ht-icon-active-button-hover-icon-color))}.handsontable .ht__active_highlight .changeType:hover:after{box-shadow:0 0 0 1px var(--ht-icon-button-active-hover-border-color,var(--ht-icon-active-button-hover-border-color));background-color:var(--ht-icon-button-active-hover-background-color,var(--ht-icon-active-button-hover-background-color))}.handsontable th.htFiltersActive{background-color:var(--ht-header-filter-background-color)}.handsontable th.htFiltersActive.ht__active_highlight{background-color:color-mix(in srgb,var(--ht-header-active-background-color),var(--ht-header-filter-background-color)20%)}.handsontable.htDropdownMenu>.ht_master,.handsontable.htContextMenu>.ht_master,.handsontable.htFiltersConditionsMenu>.ht_master,.handsontable.htSheetsBarMenu>.ht_master{box-shadow:var(--ht-menu-shadow-x,0)var(--ht-menu-shadow-y,0)var(--ht-menu-shadow-blur,8px)color-mix(in srgb,var(--ht-menu-shadow-color,#000)var(--ht-menu-shadow-opacity,100%),transparent);border:var(--ht-menu-border-width,1px)solid var(--ht-menu-border-color,#e5e5e9);border-radius:var(--ht-menu-border-radius);padding:var(--ht-menu-vertical-padding,8px)var(--ht-menu-horizontal-padding,0);background-color:var(--ht-background-color,#fff);overflow:hidden}.handsontable.htDropdownMenu:not(.htGhostTable),.handsontable.htContextMenu:not(.htGhostTable),.handsontable.htFiltersConditionsMenu:not(.htGhostTable),.handsontable.htSheetsBarMenu:not(.htGhostTable){z-index:1060;display:none;position:absolute}.handsontable.htDropdownMenu .ht_clone_top,.handsontable.htDropdownMenu .ht_clone_bottom,.handsontable.htDropdownMenu .ht_clone_inline_start,.handsontable.htDropdownMenu .ht_clone_inline_end,.handsontable.htDropdownMenu .ht_clone_top_inline_start_corner,.handsontable.htDropdownMenu .ht_clone_top_inline_end_corner,.handsontable.htDropdownMenu .ht_clone_bottom_inline_start_corner,.handsontable.htDropdownMenu .ht_clone_bottom_inline_end_corner,.handsontable.htContextMenu .ht_clone_top,.handsontable.htContextMenu .ht_clone_bottom,.handsontable.htContextMenu .ht_clone_inline_start,.handsontable.htContextMenu .ht_clone_inline_end,.handsontable.htContextMenu .ht_clone_top_inline_start_corner,.handsontable.htContextMenu .ht_clone_top_inline_end_corner,.handsontable.htContextMenu .ht_clone_bottom_inline_start_corner,.handsontable.htContextMenu .ht_clone_bottom_inline_end_corner,.handsontable.htFiltersConditionsMenu .ht_clone_top,.handsontable.htFiltersConditionsMenu .ht_clone_bottom,.handsontable.htFiltersConditionsMenu .ht_clone_inline_start,.handsontable.htFiltersConditionsMenu .ht_clone_inline_end,.handsontable.htFiltersConditionsMenu .ht_clone_top_inline_start_corner,.handsontable.htFiltersConditionsMenu .ht_clone_top_inline_end_corner,.handsontable.htFiltersConditionsMenu .ht_clone_bottom_inline_start_corner,.handsontable.htFiltersConditionsMenu .ht_clone_bottom_inline_end_corner,.handsontable.htSheetsBarMenu .ht_clone_top,.handsontable.htSheetsBarMenu .ht_clone_bottom,.handsontable.htSheetsBarMenu .ht_clone_inline_start,.handsontable.htSheetsBarMenu .ht_clone_inline_end,.handsontable.htSheetsBarMenu .ht_clone_top_inline_start_corner,.handsontable.htSheetsBarMenu .ht_clone_top_inline_end_corner,.handsontable.htSheetsBarMenu .ht_clone_bottom_inline_start_corner,.handsontable.htSheetsBarMenu .ht_clone_bottom_inline_end_corner{display:none}.handsontable.htDropdownMenu table.htCore,.handsontable.htContextMenu table.htCore,.handsontable.htFiltersConditionsMenu table.htCore,.handsontable.htSheetsBarMenu table.htCore{overflow:hidden}.handsontable.htDropdownMenu .htCustomMenuRenderer .table.htCore,.handsontable.htContextMenu .htCustomMenuRenderer .table.htCore,.handsontable.htFiltersConditionsMenu .htCustomMenuRenderer .table.htCore,.handsontable.htSheetsBarMenu .htCustomMenuRenderer .table.htCore{box-shadow:none}.handsontable.htDropdownMenu.handsontable:focus,.handsontable.htContextMenu.handsontable:focus,.handsontable.htFiltersConditionsMenu.handsontable:focus,.handsontable.htSheetsBarMenu.handsontable:focus{outline:none}.handsontable.htDropdownMenu .wtBorder,.handsontable.htContextMenu .wtBorder,.handsontable.htFiltersConditionsMenu .wtBorder,.handsontable.htSheetsBarMenu .wtBorder{visibility:hidden}.handsontable.htDropdownMenu tbody tr:first-of-type td:first-child,.handsontable.htDropdownMenu tbody tr:first-of-type th:first-child,.handsontable.htContextMenu tbody tr:first-of-type td:first-child,.handsontable.htContextMenu tbody tr:first-of-type th:first-child,.handsontable.htFiltersConditionsMenu tbody tr:first-of-type td:first-child,.handsontable.htFiltersConditionsMenu tbody tr:first-of-type th:first-child,.handsontable.htSheetsBarMenu tbody tr:first-of-type td:first-child,.handsontable.htSheetsBarMenu tbody tr:first-of-type th:first-child{height:calc(var(--ht-cell-vertical-padding)*2 + var(--ht-line-height) + 1px)}.handsontable.htDropdownMenu table tbody tr td,.handsontable.htContextMenu table tbody tr td,.handsontable.htFiltersConditionsMenu table tbody tr td,.handsontable.htSheetsBarMenu table tbody tr td{padding:var(--ht-menu-item-vertical-padding,4px)var(--ht-menu-item-horizontal-padding,8px);white-space:nowrap;text-overflow:ellipsis;background:var(--ht-background-color,#fff);cursor:pointer;transition:var(--ht-table-transition)background ease-in-out;border-width:0;position:relative;overflow:hidden}.handsontable.htDropdownMenu table tbody tr td:first-child,.handsontable.htContextMenu table tbody tr td:first-child,.handsontable.htFiltersConditionsMenu table tbody tr td:first-child,.handsontable.htSheetsBarMenu table tbody tr td:first-child{border-top-width:0;border-inline-end-width:0;border-bottom-width:0;border-inline-start-width:0}.handsontable.htDropdownMenu table tbody tr td.htDimmed,.handsontable.htContextMenu table tbody tr td.htDimmed,.handsontable.htFiltersConditionsMenu table tbody tr td.htDimmed,.handsontable.htSheetsBarMenu table tbody tr td.htDimmed{font-style:normal;color:inherit!important;background-color:inherit!important}.handsontable.htDropdownMenu table tbody tr td:not(.handsontable.htDropdownMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htDropdownMenu table tbody tr td.htDisabled,.handsontable.htContextMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htContextMenu table tbody tr td.htDisabled,.handsontable.htFiltersConditionsMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htFiltersConditionsMenu table tbody tr td.htDisabled,.handsontable.htSheetsBarMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htSheetsBarMenu table tbody tr td.htDisabled):hover,.handsontable.htContextMenu table tbody tr td:not(.handsontable.htDropdownMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htDropdownMenu table tbody tr td.htDisabled,.handsontable.htContextMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htContextMenu table tbody tr td.htDisabled,.handsontable.htFiltersConditionsMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htFiltersConditionsMenu table tbody tr td.htDisabled,.handsontable.htSheetsBarMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htSheetsBarMenu table tbody tr td.htDisabled):hover,.handsontable.htFiltersConditionsMenu table tbody tr td:not(.handsontable.htDropdownMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htDropdownMenu table tbody tr td.htDisabled,.handsontable.htContextMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htContextMenu table tbody tr td.htDisabled,.handsontable.htFiltersConditionsMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htFiltersConditionsMenu table tbody tr td.htDisabled,.handsontable.htSheetsBarMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htSheetsBarMenu table tbody tr td.htDisabled):hover,.handsontable.htSheetsBarMenu table tbody tr td:not(.handsontable.htDropdownMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htDropdownMenu table tbody tr td.htDisabled,.handsontable.htContextMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htContextMenu table tbody tr td.htDisabled,.handsontable.htFiltersConditionsMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htFiltersConditionsMenu table tbody tr td.htDisabled,.handsontable.htSheetsBarMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htSheetsBarMenu table tbody tr td.htDisabled):hover{cursor:pointer;background:color-mix(in srgb,var(--ht-menu-item-hover-color)var(--ht-menu-item-hover-color-opacity,100%),transparent)!important}.handsontable.htDropdownMenu table tbody tr td:not(.handsontable.htDropdownMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htDropdownMenu table tbody tr td.htDisabled,.handsontable.htContextMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htContextMenu table tbody tr td.htDisabled,.handsontable.htFiltersConditionsMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htFiltersConditionsMenu table tbody tr td.htDisabled,.handsontable.htSheetsBarMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htSheetsBarMenu table tbody tr td.htDisabled).current:not([aria-expanded=true]),.handsontable.htContextMenu table tbody tr td:not(.handsontable.htDropdownMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htDropdownMenu table tbody tr td.htDisabled,.handsontable.htContextMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htContextMenu table tbody tr td.htDisabled,.handsontable.htFiltersConditionsMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htFiltersConditionsMenu table tbody tr td.htDisabled,.handsontable.htSheetsBarMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htSheetsBarMenu table tbody tr td.htDisabled).current:not([aria-expanded=true]),.handsontable.htFiltersConditionsMenu table tbody tr td:not(.handsontable.htDropdownMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htDropdownMenu table tbody tr td.htDisabled,.handsontable.htContextMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htContextMenu table tbody tr td.htDisabled,.handsontable.htFiltersConditionsMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htFiltersConditionsMenu table tbody tr td.htDisabled,.handsontable.htSheetsBarMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htSheetsBarMenu table tbody tr td.htDisabled).current:not([aria-expanded=true]),.handsontable.htSheetsBarMenu table tbody tr td:not(.handsontable.htDropdownMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htDropdownMenu table tbody tr td.htDisabled,.handsontable.htContextMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htContextMenu table tbody tr td.htDisabled,.handsontable.htFiltersConditionsMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htFiltersConditionsMenu table tbody tr td.htDisabled,.handsontable.htSheetsBarMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htSheetsBarMenu table tbody tr td.htDisabled).current:not([aria-expanded=true]){box-shadow:inset 0 0 0 1px var(--ht-accent-color)}.handsontable.htDropdownMenu table tbody tr td.htSubmenu .htItemWrapper,.handsontable.htContextMenu table tbody tr td.htSubmenu .htItemWrapper,.handsontable.htFiltersConditionsMenu table tbody tr td.htSubmenu .htItemWrapper,.handsontable.htSheetsBarMenu table tbody tr td.htSubmenu .htItemWrapper{margin-inline-end:calc(2*var(--ht-gap-size,4px) + var(--ht-icon-size))}.handsontable.htDropdownMenu table tbody tr td.htSubmenu .htItemWrapper .htSubmenuIcon,.handsontable.htContextMenu table tbody tr td.htSubmenu .htItemWrapper .htSubmenuIcon,.handsontable.htFiltersConditionsMenu table tbody tr td.htSubmenu .htItemWrapper .htSubmenuIcon,.handsontable.htSheetsBarMenu table tbody tr td.htSubmenu .htItemWrapper .htSubmenuIcon{top:50%;position:absolute;inset-inline-end:calc(var(--ht-menu-item-horizontal-padding) + var(--ht-gap-size)*2);translate:0 -50%}.handsontable.htDropdownMenu table tbody tr td.htSeparator,.handsontable.htContextMenu table tbody tr td.htSeparator,.handsontable.htFiltersConditionsMenu table tbody tr td.htSeparator,.handsontable.htSheetsBarMenu table tbody tr td.htSeparator{border-top:1px solid var(--ht-border-color);cursor:default;height:0;padding:0}.handsontable.htDropdownMenu table tbody tr td.htDisabled,.handsontable.htContextMenu table tbody tr td.htDisabled,.handsontable.htFiltersConditionsMenu table tbody tr td.htDisabled,.handsontable.htSheetsBarMenu table tbody tr td.htDisabled{color:var(--ht-disabled-color);cursor:default}.handsontable.htDropdownMenu table tbody tr td.htDisabled:hover,.handsontable.htContextMenu table tbody tr td.htDisabled:hover,.handsontable.htFiltersConditionsMenu table tbody tr td.htDisabled:hover,.handsontable.htSheetsBarMenu table tbody tr td.htDisabled:hover{background:var(--ht-background-color);color:var(--ht-disabled-color)}.handsontable.htDropdownMenu table tbody tr td.htHidden,.handsontable.htContextMenu table tbody tr td.htHidden,.handsontable.htFiltersConditionsMenu table tbody tr td.htHidden,.handsontable.htSheetsBarMenu table tbody tr td.htHidden{display:none}.handsontable.htDropdownMenu table tbody tr td:has(.htItemWrapper .selected),.handsontable.htContextMenu table tbody tr td:has(.htItemWrapper .selected),.handsontable.htFiltersConditionsMenu table tbody tr td:has(.htItemWrapper .selected),.handsontable.htSheetsBarMenu table tbody tr td:has(.htItemWrapper .selected){background-color:color-mix(in srgb,var(--ht-menu-item-active-color)var(--ht-menu-item-active-color-opacity,100%),transparent)}.handsontable.htDropdownMenu table tbody tr td .htItemWrapper,.handsontable.htContextMenu table tbody tr td .htItemWrapper,.handsontable.htFiltersConditionsMenu table tbody tr td .htItemWrapper,.handsontable.htSheetsBarMenu table tbody tr td .htItemWrapper{margin-inline:calc(2*var(--ht-gap-size,4px))}.handsontable.htDropdownMenu table tbody tr td .htItemWrapper:before,.handsontable.htContextMenu table tbody tr td .htItemWrapper:before,.handsontable.htFiltersConditionsMenu table tbody tr td .htItemWrapper:before,.handsontable.htSheetsBarMenu table tbody tr td .htItemWrapper:before{vertical-align:text-bottom;margin-right:12px}.handsontable.htDropdownMenu table tbody tr td .htItemWrapper span.selected,.handsontable.htDropdownMenu table tbody tr td .htItemWrapper span.htMixed,.handsontable.htContextMenu table tbody tr td .htItemWrapper span.selected,.handsontable.htContextMenu table tbody tr td .htItemWrapper span.htMixed,.handsontable.htFiltersConditionsMenu table tbody tr td .htItemWrapper span.selected,.handsontable.htFiltersConditionsMenu table tbody tr td .htItemWrapper span.htMixed,.handsontable.htSheetsBarMenu table tbody tr td .htItemWrapper span.selected,.handsontable.htSheetsBarMenu table tbody tr td .htItemWrapper span.htMixed{font-size:0;inset:0}.handsontable.htDropdownMenu table tbody tr td .htItemWrapper span.selected .ht-icon,.handsontable.htDropdownMenu table tbody tr td .htItemWrapper span.htMixed .ht-icon,.handsontable.htContextMenu table tbody tr td .htItemWrapper span.selected .ht-icon,.handsontable.htContextMenu table tbody tr td .htItemWrapper span.htMixed .ht-icon,.handsontable.htFiltersConditionsMenu table tbody tr td .htItemWrapper span.selected .ht-icon,.handsontable.htFiltersConditionsMenu table tbody tr td .htItemWrapper span.htMixed .ht-icon,.handsontable.htSheetsBarMenu table tbody tr td .htItemWrapper span.selected .ht-icon,.handsontable.htSheetsBarMenu table tbody tr td .htItemWrapper span.htMixed .ht-icon{color:var(--ht-accent-color);top:50%;position:absolute;inset-inline-end:calc(var(--ht-menu-item-horizontal-padding) + var(--ht-gap-size)*2);transform:translateY(-50%)}.handsontable.htDropdownMenu table tbody tr td div span.selected,.handsontable.htDropdownMenu table tbody tr td div span.htMixed,.handsontable.htContextMenu table tbody tr td div span.selected,.handsontable.htContextMenu table tbody tr td div span.htMixed,.handsontable.htFiltersConditionsMenu table tbody tr td div span.selected,.handsontable.htFiltersConditionsMenu table tbody tr td div span.htMixed,.handsontable.htSheetsBarMenu table tbody tr td div span.selected,.handsontable.htSheetsBarMenu table tbody tr td div span.htMixed{position:absolute;inset-inline-end:0}.handsontable.htDropdownMenu table tbody tr td .htUIButton,.handsontable.htContextMenu table tbody tr td .htUIButton,.handsontable.htFiltersConditionsMenu table tbody tr td .htUIButton,.handsontable.htSheetsBarMenu table tbody tr td .htUIButton{width:calc(50% - var(--ht-gap-size))}.handsontable.htDropdownMenu table tbody tr td .htUIButton input,.handsontable.htContextMenu table tbody tr td .htUIButton input,.handsontable.htFiltersConditionsMenu table tbody tr td .htUIButton input,.handsontable.htSheetsBarMenu table tbody tr td .htUIButton input{width:100%}.handsontable .htUIClearAll a,.handsontable .htUISelectAll a{padding:var(--ht-gap-size);text-decoration:none;display:inline-block}.handsontable .htUIMultipleSelect .ht_master .wtHolder{background:0 0;box-shadow:none!important;border-radius:0!important;overflow-y:scroll!important}.handsontable .htUIMultipleSelect .ht_master .wtHolder .htCore{box-shadow:none}.handsontable .htUIMultipleSelect .ht_master .htScrollbarFrame{box-shadow:none!important}[dir=rtl].handsontable.htDropdownMenu table tbody tr td.htSubmenu .htItemWrapper .htSubmenuIcon,[dir=rtl].handsontable.htDropdownMenu table tbody tr td .htItemWrapper span.selected .ht-icon,[dir=rtl].handsontable.htDropdownMenu table tbody tr td .htItemWrapper span.htMixed .ht-icon,[dir=rtl].handsontable.htContextMenu table tbody tr td.htSubmenu .htItemWrapper .htSubmenuIcon,[dir=rtl].handsontable.htContextMenu table tbody tr td .htItemWrapper span.selected .ht-icon,[dir=rtl].handsontable.htContextMenu table tbody tr td .htItemWrapper span.htMixed .ht-icon,[dir=rtl].handsontable.htFiltersConditionsMenu table tbody tr td.htSubmenu .htItemWrapper .htSubmenuIcon,[dir=rtl].handsontable.htFiltersConditionsMenu table tbody tr td .htItemWrapper span.selected .ht-icon,[dir=rtl].handsontable.htFiltersConditionsMenu table tbody tr td .htItemWrapper span.htMixed .ht-icon,[dir=rtl].handsontable.htSheetsBarMenu table tbody tr td.htSubmenu .htItemWrapper .htSubmenuIcon,[dir=rtl].handsontable.htSheetsBarMenu table tbody tr td .htItemWrapper span.selected .ht-icon,[dir=rtl].handsontable.htSheetsBarMenu table tbody tr td .htItemWrapper span.htMixed .ht-icon{inset-inline-end:calc(4*var(--ht-gap-size))}.handsontable.htSheetsBarMenu table tbody tr td .htItemWrapper .ht-sheets-bar__menu-item-name{text-overflow:ellipsis;vertical-align:top;max-width:100%;font-size:inherit;line-height:inherit;font-weight:inherit;letter-spacing:inherit;border:0;margin:0;padding:0;font-family:inherit;display:inline-block;overflow:hidden}.handsontable.htSheetsBarMenu table tbody tr td .htItemWrapper span.selected{border:0;margin:0;padding:0}.handsontable.htFiltersConditionsMenu:not(.htGhostTable){z-index:1070}.handsontable .ht_master table td.htCustomMenuRenderer{cursor:auto}.handsontable .ht_master table td.htCustomMenuRenderer.htFiltersMenuActionBar{padding-top:calc(var(--ht-menu-item-vertical-padding,4px)*2)}.handsontable .htFiltersMenuLabel{font-size:var(--ht-font-size-small);line-height:var(--ht-line-height-small);font-weight:var(--ht-font-weight);margin-bottom:calc(var(--ht-gap-size,2px)*2)}.handsontable .htFiltersMenuLabel:empty{display:none}.handsontable .htFiltersMenuCondition{padding-top:calc(var(--ht-gap-size,2px)*3)!important;padding-bottom:0!important}.handsontable .htFiltersMenuCondition .border{border-bottom:1px solid var(--ht-border-color)!important}.handsontable .htFiltersMenuCondition .htUIInput{margin-top:calc(var(--ht-gap-size,2px)*2)}.handsontable .htFiltersMenuValue{padding-top:calc(var(--ht-gap-size,2px)*3)!important;border-bottom:1px solid var(--ht-border-color)!important;padding-bottom:0!important}.handsontable .htFiltersMenuOperators{padding-top:calc(var(--ht-gap-size,2px)*2)!important;padding-bottom:0!important}.handsontable .htUISelectionControls{white-space:normal;margin:0 calc(var(--ht-gap-size,2px)*-1);padding-top:calc(var(--ht-gap-size,2px)*2)!important;padding-bottom:var(--ht-gap-size,2px)!important}.handsontable .htUIMultipleSelectHot{--ht-cell-horizontal-padding:calc(var(--ht-menu-item-horizontal-padding,2px) + var(--ht-gap-size,2px)*2);--ht-cell-vertical-padding:4px;width:calc(100% + var(--ht-menu-item-horizontal-padding,2px)*2 + var(--ht-gap-size,2px)*4);margin:0 calc((var(--ht-menu-item-horizontal-padding,2px) + var(--ht-gap-size,2px)*2)*-1);overflow:initial!important}.handsontable .htUIMultipleSelectHot:before{content:"";background-color:var(--ht-border-color);width:100%;height:1px;display:block;position:absolute;top:-1px;left:0}.handsontable .htUIMultipleSelectHot .wtHolder{box-sizing:border-box;padding:0;overflow-x:hidden}.handsontable .htUIMultipleSelectHot .wtHolder .wtSpreader{padding:calc(var(--ht-gap-size)*2)0}.handsontable .htUIMultipleSelectHot .wtHolder td{padding:var(--ht-cell-vertical-padding)var(--ht-cell-horizontal-padding);height:auto!important}.handsontable .htUIClearAll,.handsontable .htUISelectAll{margin-right:var(--ht-gap-size,4px);margin-bottom:var(--ht-gap-size,4px);display:inline-block}.handsontable .htUIClearAll a,.handsontable .htUISelectAll a{font-size:var(--ht-font-size);line-height:var(--ht-line-height);color:var(--ht-link-color);border-radius:var(--ht-button-border-radius)}.handsontable .htUIClearAll a:hover,.handsontable .htUISelectAll a:hover{color:var(--ht-link-hover-color)}.handsontable .htUIClearAll a:focus,.handsontable .htUISelectAll a:focus{outline:1px solid var(--ht-link-hover-color)}.handsontable .htUIMultipleSelect .ht_master .wtHolder{overflow:auto}.handsontable .htUIMultipleSelect .ht_master .wtHolder .wtHider,.handsontable .htUIMultipleSelect .ht_master .wtHolder .htCore,.handsontable .htUIMultipleSelect .ht_master .wtHolder tr,.handsontable .htUIMultipleSelect .ht_master .wtHolder td{background:0 0}.handsontable .htUIInput.htUIButton{cursor:pointer;display:inline-block}.handsontable .htUIInput.htUIButtonOK{margin-inline-start:0;margin-inline-end:calc(2*var(--ht-gap-size,2px))}:where(.handsontable,.hfe-formula-bar,.hfe-popup-portal,.hfe-suggestions,.hfe-fn-help){--hfe-font-family:var(--ht-font-family),-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;--hfe-font-size:var(--ht-font-size);--hfe-line-height:var(--ht-line-height);--hfe-formula-bar-input-focus-ring:var(--ht-cell-selection-border-color);--hfe-gap:var(--ht-gap-size);--hfe-color-background:var(--ht-cell-editor-background-color);--hfe-color-foreground:var(--ht-cell-editor-foreground-color);--hfe-color-foreground-secondary:var(--ht-foreground-secondary-color);--hfe-color-accent:var(--ht-accent-color);--hfe-shadow-x:var(--ht-shadow-x);--hfe-shadow-y:var(--ht-shadow-y);--hfe-shadow-blur:var(--ht-shadow-blur);--hfe-shadow-opacity:var(--ht-shadow-opacity);--hfe-color-shadow:color-mix(in srgb,var(--ht-shadow-color)var(--ht-shadow-opacity),transparent);--hfe-padding-vertical:var(--ht-cell-vertical-padding);--hfe-padding-horizontal:var(--ht-cell-horizontal-padding);--hfe-border-width:var(--ht-cell-editor-border-width);--hfe-border-width-focus:var(--ht-cell-editor-border-width);--hfe-color-caret:var(--ht-cell-editor-foreground-color);--hfe-editor-color-border:var(--ht-cell-editor-border-color);--hfe-color-focus-ring:var(--ht-cell-editor-border-color);--hfe-menu-item-padding-horizontal:var(--ht-menu-item-horizontal-padding);--hfe-menu-item-padding-vertical:var(--ht-menu-item-vertical-padding);--hfe-menu-item-border-radius:0;--hfe-menu-padding-horizontal:var(--ht-menu-horizontal-padding);--hfe-menu-padding-vertical:var(--ht-menu-vertical-padding);--hfe-menu-border-radius:var(--ht-menu-border-radius);--hfe-menu-border-width:var(--ht-menu-border-width);--hfe-menu-border-color:var(--ht-menu-border-color);--hfe-menu-background:var(--ht-background-color);--hfe-menu-kbd-row-border-color:var(--ht-border-color);--hfe-menu-chip-background:var(--ht-accent-color);--hfe-menu-chip-foreground:var(--ht-background-color);--hfe-menu-chip-border-radius:var(--ht-chip-border-radius);--hfe-menu-shadow:var(--ht-menu-shadow-x)var(--ht-menu-shadow-y)var(--ht-menu-shadow-blur)color-mix(in srgb,var(--ht-menu-shadow-color)var(--ht-menu-shadow-opacity),transparent);--hfe-token-fn:var(--ht-foreground-color);--hfe-token-num:var(--ht-foreground-color);--hfe-token-str:var(--ht-foreground-color);--hfe-token-bool:var(--ht-foreground-color);--hfe-token-op:var(--ht-foreground-color);--hfe-token-paren:var(--ht-foreground-color);--hfe-token-paren-match:var(--ht-accent-color);--hfe-token-bracket:var(--ht-foreground-color);--hfe-token-sep:var(--ht-foreground-color);--hfe-token-ident:var(--ht-foreground-color);--hfe-ref-1:light-dark(#007bff,#0a84ff);--hfe-ref-2:light-dark(#ff9500,#ff9d0a);--hfe-ref-3:light-dark(#af52de,#bf5af2);--hfe-ref-4:light-dark(#30d158,#34c759);--hfe-ref-5:light-dark(#ff2d54,#ff375f);--hfe-ref-6:light-dark(#30b0c7,#40c8e0);--hfe-ref-7:light-dark(#5856d6,#5e5ce6);--hfe-ref-8:light-dark(#a2855e,#ac8e68);--hfe-error-padding-horizontal:var(--ht-comments-textarea-horizontal-padding);--hfe-error-padding-vertical:var(--ht-comments-textarea-vertical-padding);--hfe-formula-bar-background:var(--ht-background-color);--hfe-formula-bar-foreground:var(--ht-foreground-color);--hfe-formula-bar-border:var(--ht-border-color);--hfe-formula-bar-border-width:1px;--hfe-formula-bar-border-radius:var(--ht-border-radius);--hfe-formula-bar-padding-vertical:var(--ht-cell-vertical-padding);--hfe-formula-bar-padding-horizontal:var(--ht-cell-horizontal-padding)}.handsontable .hfe-editor{outline:none;box-sizing:border-box!important}.handsontable .hfe-editor--focused{outline:none}.ht-formula-builder__formula-bar .hfe-formula-bar__overlay .hfe-editor--focused{outline:var(--hfe-border-width-focus)solid var(--hfe-formula-bar-input-focus-ring);outline-offset:calc(-1*var(--hfe-border-width-focus))}.handsontable .ht-formula-builder__inline-editor{width:100%;height:100%}.handsontable .ht-formula-builder__inline-editor>.handsontableInput{resize:none;width:100%;height:100%;overflow:hidden}.handsontable .ht-formula-builder__inline-editor .hfe-editor{box-shadow:none;--hfe-padding-vertical:calc(var(--ht-cell-vertical-padding) + 1px);--hfe-padding-horizontal:calc(var(--ht-cell-horizontal-padding) + 1px)}.ht-formula-builder__formula-bar .hfe-formula-bar__overlay{--hfe-editor-max-lines:1}.ht-formula-builder__formula-bar.hfe-formula-bar .hfe-formula-bar__cell--formula{padding:0;padding-inline-start:var(--hfe-formula-bar-padding-horizontal)}.ht-formula-builder__formula-bar.hfe-formula-bar .hfe-formula-bar__idle{height:calc(var(--hfe-line-height) + 2*var(--hfe-formula-bar-padding-vertical))}.ht-formula-builder__formula-bar.hfe-formula-bar .hfe-overlay,.ht-formula-builder__formula-bar.hfe-formula-bar .hfe-editor__input{padding:var(--hfe-formula-bar-padding-vertical)var(--hfe-border-width-focus)}.ht-formula-builder__formula-bar .hfe-editor--height-capped .hfe-overlay,.ht-formula-builder__formula-bar .hfe-editor--height-capped .hfe-editor__input{scrollbar-width:auto}.handsontable .ht-formula-builder__inline-editor .hfe-editor:after{content:"";border:var(--hfe-border-width)solid var(--hfe-editor-color-border);pointer-events:none;position:absolute;inset:0}.handsontable .hfe-editor__input,.handsontable .hfe-overlay{box-sizing:border-box;font-weight:var(--ht-font-weight,400)}.handsontable .hfe-fn-help__learn-more,.handsontable .hfe-fn-help__learn-more:hover{color:var(--hfe-color-foreground)}.handsontable td.ht-formula-builder__editing-cell{color:#0000}.handsontable .htCommentCell{position:relative}.handsontable .htCommentCell:after{content:"";border-inline-start:var(--ht-comments-indicator-size,4px)solid #0000;border-inline-end:none;border-top:var(--ht-comments-indicator-size,4px)solid var(--ht-comments-indicator-color,#1a42e8);top:0;display:block;position:absolute;inset-inline-start:unset;inset-inline-end:0}.htCommentsContainer .htComments{z-index:1059;display:none;position:absolute}.htCommentsContainer .htCommentTextArea{font-family:var(--ht-font-family),-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-shadow:var(--ht-menu-shadow-x,0)var(--ht-menu-shadow-y,0)var(--ht-menu-shadow-blur,8px)color-mix(in srgb,var(--ht-menu-shadow-color,#000)var(--ht-menu-shadow-opacity,100%),transparent);width:240px;height:88px;font-size:var(--ht-font-size);line-height:var(--ht-line-height);font-weight:var(--ht-font-weight);padding:var(--ht-comments-textarea-vertical-padding)var(--ht-comments-textarea-horizontal-padding);border:var(--ht-comments-textarea-border-width,1px)solid var(--ht-comments-textarea-border-color,transparent);border-inline-start:var(--ht-comments-textarea-border-width,1px)solid var(--ht-comments-textarea-border-color,#1a42e8);color:var(--ht-comments-textarea-foreground-color);background-color:var(--ht-comments-textarea-background-color,#fff);box-sizing:border-box;-webkit-appearance:none;margin:0 -1px;outline:0!important}.htCommentsContainer .htCommentTextArea:focus{border:var(--ht-comments-textarea-focus-border-width,1px)solid var(--ht-comments-textarea-focus-border-color,#1a42e8);color:var(--ht-comments-textarea-focus-foreground-color);background-color:var(--ht-comments-textarea-focus-background-color,#fff)}.htBorders .wtBorder.ht-border-style-dashed-vertical{background-image:repeating-linear-gradient(to bottom,var(--ht-custom-border-color)0 5px,transparent 0 10px)}.htBorders .wtBorder.ht-border-style-dashed-horizontal{background-image:repeating-linear-gradient(to right,var(--ht-custom-border-color)0 5px,transparent 0 10px)}.htBorders .wtBorder.ht-border-style-dotted-horizontal{background-image:radial-gradient(circle,var(--ht-custom-border-color)calc(var(--ht-custom-border-size)/2),transparent 0);background-size:calc(var(--ht-custom-border-size)*2)var(--ht-custom-border-size);background-repeat:repeat-x}.htBorders .wtBorder.ht-border-style-dotted-vertical{background-image:radial-gradient(circle,var(--ht-custom-border-color)calc(var(--ht-custom-border-size)/2),transparent 0);background-size:var(--ht-custom-border-size)calc(var(--ht-custom-border-size)*2);background-repeat:repeat-y}.handsontable .colHeader.columnSorting.sortAction{box-sizing:border-box;min-width:min(var(--ht-icon-size,16px) + 8px,100%);flex-grow:0;max-width:100%;margin-inline:auto;position:static}.handsontable .colHeader.columnSorting.sortAction:after{margin-inline:var(--ht-sort-indicator-offset);margin-inline-end:var(--ht-sort-indicator-offset-end)}.handsontable .htLeft .colHeader.columnSorting.sortAction{margin-left:0;margin-right:auto}.handsontable .htRight .colHeader.columnSorting.sortAction{margin-left:auto;margin-right:0}.handsontable th .relative{--ht-sort-indicator-offset:var(--ht-cell-horizontal-padding);--ht-sort-indicator-offset-end:var(--ht-cell-horizontal-padding);--ht-sort-indicator-reserve:var(--ht-cell-horizontal-padding);--ht-sort-indicator-reserve-end:var(--ht-sort-indicator-reserve);--ht-header-button-slot:calc(var(--ht-icon-size,16px) + 2px);--ht-header-indicator-min-width:calc(2*var(--ht-cell-horizontal-padding) + 2*var(--ht-icon-size,16px) + 6px);--ht-header-indicator-min-content-width:calc(2*var(--ht-icon-size,16px) + 6px);--ht-header-gap:2px}.handsontable .relative.has-header-button{--ht-sort-indicator-offset-end:calc(var(--ht-cell-horizontal-padding) + var(--ht-icon-size,16px) + (var(--ht-icon-button-hit-area-size,24px) - var(--ht-icon-size,16px))*.5);--ht-sort-indicator-reserve-end:var(--ht-cell-horizontal-padding)}.handsontable .relative.has-sort-indicator.has-header-button{--ht-header-gap:clamp(2px,calc((100% - var(--ht-header-indicator-min-content-width))*1000 + 2px),calc(2px + var(--ht-header-button-slot)));column-gap:var(--ht-header-gap)}.handsontable .relative.has-sort-indicator{--ht-sort-indicator-reserve:calc(var(--ht-cell-horizontal-padding) + var(--ht-icon-size,16px) + 2px);padding-inline-end:var(--ht-sort-indicator-reserve-end)}.handsontable .relative.htRight.has-sort-indicator,.handsontable .htRight .relative.has-sort-indicator{--ht-header-button-slot:0px;padding-inline-start:var(--ht-sort-indicator-reserve);padding-inline-end:var(--ht-cell-horizontal-padding)}.handsontable .relative.htRight.has-sort-indicator.has-header-button,.handsontable .htRight .relative.has-sort-indicator.has-header-button{padding-inline-start:clamp(var(--ht-cell-horizontal-padding),(100% - var(--ht-header-indicator-min-width))*1000 + var(--ht-cell-horizontal-padding),var(--ht-sort-indicator-reserve))}.handsontable .relative.has-header-button .colHeader.columnSorting.sortAction{min-width:min(var(--ht-icon-size,16px) + 8px,max(0px,100% - var(--ht-icon-size,16px) - 2px - var(--ht-header-gap)))}.handsontable .relative.has-header-button.has-sort-indicator>.ht-sort-indicator{max-width:clamp(0px,(100% - var(--ht-header-indicator-min-width))*1000,var(--ht-icon-size,16px));overflow:hidden}.handsontable .relative.has-header-button.has-sort-indicator .colHeader.columnSorting.sortAction:after{max-width:clamp(0px,(100% - var(--ht-header-indicator-min-width))*1000,8px);overflow:hidden}.handsontable .columnSorting:not(.indicatorDisabled){position:relative}.handsontable .columnSorting:not(.indicatorDisabled).sortAction:hover{cursor:pointer;text-decoration:none}.handsontable th .relative>.ht-sort-indicator{pointer-events:auto;top:50%;position:absolute;inset-inline-end:calc(var(--ht-sort-indicator-offset-end) + 2px);transform:translateY(-50%)}.handsontable .columnSorting.sortAction~.ht-sort-indicator,.handsontable .columnSorting.sortAction~.ht-sort-indicator:hover{cursor:pointer}.handsontable .relative.htRight>.ht-sort-indicator,.handsontable .htRight .relative>.ht-sort-indicator{inset-inline-start:calc(var(--ht-sort-indicator-offset) + 2px);inset-inline-end:auto}[dir=rtl] .handsontable .relative.htRight.has-sort-indicator,[dir=rtl] .handsontable .htRight .relative.has-sort-indicator{--ht-header-button-slot:calc(var(--ht-icon-size,16px) + 2px);padding-inline-start:var(--ht-cell-horizontal-padding);padding-inline-end:var(--ht-sort-indicator-reserve-end)}[dir=rtl] .handsontable .relative.htLeft.has-sort-indicator,[dir=rtl] .handsontable .htLeft .relative.has-sort-indicator{--ht-header-button-slot:0px;padding-inline-start:var(--ht-sort-indicator-reserve);padding-inline-end:var(--ht-cell-horizontal-padding)}[dir=rtl] .handsontable .relative.htLeft.has-sort-indicator.has-header-button,[dir=rtl] .handsontable .htLeft .relative.has-sort-indicator.has-header-button{padding-inline-start:clamp(var(--ht-cell-horizontal-padding),(100% - var(--ht-header-indicator-min-width))*1000 + var(--ht-cell-horizontal-padding),var(--ht-sort-indicator-reserve))}[dir=rtl] .handsontable .relative.htRight>.ht-sort-indicator,[dir=rtl] .handsontable .htRight .relative>.ht-sort-indicator{inset-inline-start:auto;inset-inline-end:calc(var(--ht-sort-indicator-offset-end) + 2px)}[dir=rtl] .handsontable .relative.htLeft>.ht-sort-indicator,[dir=rtl] .handsontable .htLeft .relative>.ht-sort-indicator{inset-inline-start:calc(var(--ht-sort-indicator-offset) + 2px);inset-inline-end:auto}.htGhostTable .htCore .relative{--ht-sort-indicator-offset:0px;--ht-sort-indicator-offset-end:0px;--ht-header-button-slot:0px}.htGhostTable .htCore .relative.has-header-button{--ht-sort-indicator-reserve:var(--ht-cell-horizontal-padding);--ht-sort-indicator-reserve-end:var(--ht-cell-horizontal-padding)}.htGhostTable .htCore .relative.has-header-button .colHeader.columnSorting.sortAction{min-width:min(var(--ht-icon-size,16px) + 8px,100%)}.htGhostTable .htCore .relative.has-header-button .colHeader.columnSorting.sortAction:after,.htGhostTable .htCore .relative.has-header-button.has-sort-indicator>.ht-sort-indicator{max-width:none}.htGhostTable .htCore .relative.has-sort-indicator.has-header-button{--ht-header-gap:calc(2px + var(--ht-header-button-slot));column-gap:var(--ht-header-gap)}.htGhostTable .htCore span.colHeader.columnSorting:not(.indicatorDisabled):before{content:"*";padding-inline-end:calc(var(--ht-icon-size,16px) + 2px);display:inline-block;position:relative}.htGhostTable .htCore span.colHeader.columnSorting.sortAction:not(.indicatorDisabled):before{width:var(--ht-icon-size,16px)}.handsontable .colHeader.columnSorting:after{content:"";text-align:right;width:8px;margin-top:4px;font-size:8px;display:block;position:absolute;top:50%;right:0;transform:translateY(-50%)}.handsontable .colHeader.columnSorting[class^=sort-]:after,.handsontable .colHeader.columnSorting[class*=\\ sort-]:after{content:"+"}.handsontable .colHeader.columnSorting.sort-1:after{content:"1"}.handsontable .colHeader.columnSorting.sort-2:after{content:"2"}.handsontable .colHeader.columnSorting.sort-3:after{content:"3"}.handsontable .colHeader.columnSorting.sort-4:after{content:"4"}.handsontable .colHeader.columnSorting.sort-5:after{content:"5"}.handsontable .colHeader.columnSorting.sort-6:after{content:"6"}.handsontable .colHeader.columnSorting.sort-7:after{content:"7"}.handsontable .htRight .colHeader.columnSorting:after,[dir=rtl] .handsontable .colHeader.columnSorting:after{text-align:left;left:0;right:auto}[dir=rtl] .handsontable .htLeft .colHeader.columnSorting:after{text-align:right;left:auto;right:0}.htGhostTable th div:has(.changeType) span.colHeader.columnSorting:not(.indicatorDisabled){padding-inline-end:var(--ht-gap-size)}.handsontable .ht_clone_top_inline_start_corner th.ht__active_highlight,.handsontable .ht_clone_top_inline_end_corner th.ht__active_highlight{box-shadow:none}[dir=rtl].handsontable .ht-freeze-bar-guide--rows,[dir=rtl].handsontable .ht-freeze-bar-ghost--rows{--ht-freeze-bar-header-side:to left}[dir=rtl].handsontable.ht-freeze-bar-columns .manualColumnResizer.ht-resize-handle--freeze-before:before{left:0}[dir=rtl].handsontable.ht-freeze-bar-columns .manualColumnResizer.ht-resize-handle--freeze-before:after{left:calc(6px + var(--ht-sizing-size-1))}[dir=rtl].handsontable.ht-freeze-bar-columns .manualColumnResizer.ht-resize-handle--freeze-after:before{left:calc(0px - var(--ht-sizing-size-1))}[dir=rtl].handsontable.ht-freeze-bar-columns .manualColumnResizer.ht-resize-handle--freeze-after:after{left:6px}.handsontable .ht-freeze-bar{z-index:105;background:var(--ht-freeze-bar-color);cursor:grab;touch-action:none;position:absolute}.handsontable .ht-freeze-bar--active{cursor:grabbing}.handsontable .ht-freeze-bar--hover:not(.ht-freeze-bar--wide){--ht-freeze-bar-hover-side:to bottom;--ht-freeze-bar-header-paint:var(--ht-freeze-bar-hover-color);background:linear-gradient(var(--ht-freeze-bar-hover-side),var(--ht-freeze-bar-color)var(--ht-freeze-bar-header-from),var(--ht-freeze-bar-header-paint)var(--ht-freeze-bar-header-from),var(--ht-freeze-bar-header-paint)var(--ht-freeze-bar-header-to),var(--ht-freeze-bar-color)var(--ht-freeze-bar-header-to))}.handsontable .ht-freeze-bar--hover:not(.ht-freeze-bar--wide).ht-freeze-bar--active{--ht-freeze-bar-header-paint:var(--ht-freeze-bar-highlight-color)}.handsontable .ht-freeze-bar--hover:not(.ht-freeze-bar--wide).ht-freeze-bar--top,.handsontable .ht-freeze-bar--hover:not(.ht-freeze-bar--wide).ht-freeze-bar--bottom{--ht-freeze-bar-hover-side:to right}.handsontable .ht-freeze-bar--focused{outline:var(--ht-sizing-size-0-5)solid var(--ht-accent-color);outline-offset:calc(-1*var(--ht-sizing-size-0-5))}@media (pointer:coarse){.handsontable .ht-freeze-bar:before{content:"";position:absolute;inset:0}.handsontable .ht-freeze-bar.ht-freeze-bar--start:before{inset-inline-start:-12px}.handsontable .ht-freeze-bar.ht-freeze-bar--top:before{inset-block-start:-12px}.handsontable .ht-freeze-bar.ht-freeze-bar--end:before{inset-inline-end:-12px}.handsontable .ht-freeze-bar.ht-freeze-bar--bottom:before{inset-block-end:-12px}}.handsontable .ht-freeze-bar--start{width:var(--ht-sizing-size-1);top:0;bottom:0;inset-inline-end:0}.handsontable .ht-freeze-bar--top{height:var(--ht-sizing-size-1);inset-inline:0;bottom:0}.handsontable .ht-freeze-bar--end{width:var(--ht-sizing-size-1);top:0;bottom:0;inset-inline-start:0}.handsontable .ht-freeze-bar--bottom{height:var(--ht-sizing-size-1);inset-inline:0;top:0}.handsontable .ht-freeze-bar--empty{z-index:190}.handsontable .ht-freeze-bar--empty.ht-freeze-bar--start{inset-inline-end:auto}.handsontable .ht-freeze-bar--empty.ht-freeze-bar--top{bottom:auto;inset-inline:0}.handsontable .ht-freeze-bar--empty.ht-freeze-bar--end{inset-inline-start:auto}.handsontable .ht-freeze-bar--empty.ht-freeze-bar--bottom{top:auto;inset-inline:0}.handsontable .ht-freeze-bar--empty.ht-freeze-bar--wide{background:0 0}.handsontable .ht-freeze-bar--empty.ht-freeze-bar--wide:after{content:"";background:var(--ht-freeze-bar-color);position:absolute}.handsontable .ht-freeze-bar--empty.ht-freeze-bar--wide.ht-freeze-bar--hover:after{background:var(--ht-freeze-bar-hover-color)}.handsontable .ht-freeze-bar--empty.ht-freeze-bar--wide.ht-freeze-bar--hover.ht-freeze-bar--active:after{background:var(--ht-freeze-bar-highlight-color)}.handsontable .ht-freeze-bar--empty.ht-freeze-bar--wide.ht-freeze-bar--start:after{height:var(--ht-freeze-bar-corner);inset-block-start:0;inset-inline:0}.handsontable .ht-freeze-bar--empty.ht-freeze-bar--wide.ht-freeze-bar--top:after{width:var(--ht-freeze-bar-corner);inset-block:0;inset-inline-start:0}@media (pointer:coarse){.handsontable .ht-freeze-bar--empty.ht-freeze-bar--wide.ht-freeze-bar--start:before{height:var(--ht-freeze-bar-corner);inset:0 -20px auto}.handsontable .ht-freeze-bar--empty.ht-freeze-bar--wide.ht-freeze-bar--top:before{width:var(--ht-freeze-bar-corner);inset-block:-20px;inset-inline:0 auto}}.handsontable.ht-freeze-bar-columns .manualColumnResizer.ht-resize-handle--freeze-before:before{left:calc(2px - var(--ht-sizing-size-1))}.handsontable.ht-freeze-bar-columns .manualColumnResizer.ht-resize-handle--freeze-before:after{left:8px;right:auto}.handsontable.ht-freeze-bar-columns .manualColumnResizer.ht-resize-handle--freeze-after:before{left:2px}.handsontable.ht-freeze-bar-columns .manualColumnResizer.ht-resize-handle--freeze-after:after{right:auto;left:calc(8px + var(--ht-sizing-size-1))}.handsontable.ht-freeze-bar-rows .manualRowResizer.ht-resize-handle--freeze-before:before{top:calc(2px - var(--ht-sizing-size-1))}.handsontable.ht-freeze-bar-rows .manualRowResizer.ht-resize-handle--freeze-before:after{top:8px;bottom:auto}.handsontable.ht-freeze-bar-rows .manualRowResizer.ht-resize-handle--freeze-after:before{top:2px}.handsontable.ht-freeze-bar-rows .manualRowResizer.ht-resize-handle--freeze-after:after{bottom:auto;top:calc(8px + var(--ht-sizing-size-1))}.handsontable.ht-freeze-bar-dragging,.handsontable.ht-freeze-bar-dragging *{cursor:grabbing}.handsontable .ht-freeze-bar-guide,.handsontable .ht-freeze-bar-ghost{--ht-freeze-bar-header-side:to bottom;z-index:216;background:linear-gradient(var(--ht-freeze-bar-header-side),var(--ht-freeze-bar-highlight-color)var(--ht-freeze-bar-header),var(--ht-freeze-bar-shadow-color)var(--ht-freeze-bar-header))}.handsontable .ht-freeze-bar-guide--rows,.handsontable .ht-freeze-bar-ghost--rows{--ht-freeze-bar-header-side:to right}.handsontable .ht-freeze-bar-guide{--ht-freeze-bar-shadow-color:color-mix(in srgb,var(--ht-freeze-bar-color)60%,transparent)}.handsontable .ht-freeze-bar-ghost{z-index:217;--ht-freeze-bar-shadow-color:color-mix(in srgb,var(--ht-freeze-bar-highlight-color)25%,transparent)}.handsontable .manualColumnResizer{cursor:col-resize;opacity:0;z-index:210;background:0 0;width:10px;margin:0;position:absolute;top:0}.handsontable .manualColumnResizer:before,.handsontable .manualColumnResizer:after{content:"";background:var(--ht-resize-indicator-color);border-radius:2px;width:2px;height:calc(100% - 12px);max-height:16px;margin-top:.5px;display:block;position:absolute;top:50%;left:1px;transform:translateY(-50%)}.handsontable .manualColumnResizer:after{left:auto;right:0}.handsontable .manualColumnResizer:hover,.handsontable .manualColumnResizer.active{opacity:1}.handsontable .manualColumnResizerGuide{border-inline-end:1px solid var(--ht-accent-color);width:0;inset-inline-end:unset;border-inline-start:none;margin-inline-start:5px;margin-inline-end:unset;display:none;position:absolute;top:0}.handsontable .manualColumnResizerGuide.active{z-index:209;display:block}.handsontable .manualRowResizer{z-index:210;cursor:row-resize;opacity:0;background:0 0;height:10px;margin:0;position:absolute;left:0}.handsontable .manualRowResizer:before,.handsontable .manualRowResizer:after{content:"";background:var(--ht-resize-indicator-color);border-radius:2px;width:calc(100% - 12px);max-width:16px;height:2px;display:block;position:absolute;top:1px;left:50%;transform:translate(-50%)}.handsontable .manualRowResizer:after{top:auto;bottom:0}.handsontable .manualRowResizer:hover,.handsontable .manualRowResizer.active{opacity:1}.handsontable .manualRowResizerGuide{border-bottom:1px solid var(--ht-accent-color);border-top:none;height:0;margin-top:5px;display:none;position:absolute;bottom:0;left:0}.handsontable .manualRowResizerGuide.active{z-index:209;display:block}.handsontable tbody td[rowspan][class*=area][class*=highlight]:not([class*=fullySelectedMergedCell]):before{opacity:0}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-multiple]:before,.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-0]:before{opacity:.14}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-1]:before{opacity:.21}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-2]:before{opacity:.28}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-3]:before{opacity:.35}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-4]:before{opacity:.42}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-5]:before{opacity:.49}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-6]:before{opacity:.56}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-7]:before{opacity:.63}.handsontable .ht__manualColumnMove.after-selection--columns thead th.ht__highlight,.handsontable .ht__manualColumnMove.after-selection--columns thead th.ht__active_highlight,.handsontable.ht__manualColumnMove.after-selection--columns thead th.ht__highlight,.handsontable.ht__manualColumnMove.after-selection--columns thead th.ht__active_highlight{cursor:move;cursor:-moz-grab;cursor:-webkit-grab;cursor:grab}.handsontable .ht__manualColumnMove.on-moving--columns *,.handsontable .ht__manualColumnMove.on-moving--columns thead th.ht__highlight,.handsontable.ht__manualColumnMove.on-moving--columns *,.handsontable.ht__manualColumnMove.on-moving--columns thead th.ht__highlight{cursor:move;cursor:-moz-grabbing;cursor:-webkit-grabbing;cursor:grabbing}.handsontable .ht__manualColumnMove.on-moving--columns .manualColumnResizer,.handsontable.ht__manualColumnMove.on-moving--columns .manualColumnResizer{display:none}.handsontable .ht__manualColumnMove--guideline,.handsontable .ht__manualColumnMove--backlight,.handsontable.ht__manualColumnMove--guideline,.handsontable.ht__manualColumnMove--backlight{height:100%;display:none;position:absolute}.handsontable .ht__manualColumnMove--guideline,.handsontable.ht__manualColumnMove--guideline{z-index:205;background:var(--ht-move-indicator-color,#1a42e8);width:1px;margin-inline:-.5px 0;top:0}.handsontable .ht__manualColumnMove--backlight,.handsontable.ht__manualColumnMove--backlight{z-index:205;pointer-events:none;background:color-mix(in srgb,var(--ht-move-backlight-color)var(--ht-move-backlight-opacity,100%),transparent);display:none}.handsontable .on-moving--columns.show-ui .ht__manualColumnMove--guideline,.handsontable .on-moving--columns .ht__manualColumnMove--backlight,.handsontable.on-moving--columns.show-ui .ht__manualColumnMove--guideline,.handsontable.on-moving--columns .ht__manualColumnMove--backlight{display:block}.handsontable .wtHider{position:relative}.handsontable .ht__manualRowMove.after-selection--rows tbody th.ht__highlight,.handsontable.ht__manualRowMove.after-selection--rows tbody th.ht__highlight{cursor:move;cursor:-moz-grab;cursor:-webkit-grab;cursor:grab}.handsontable .ht__manualRowMove.on-moving--rows *,.handsontable .ht__manualRowMove.on-moving--rows tbody th.ht__highlight,.handsontable.ht__manualRowMove.on-moving--rows *,.handsontable.ht__manualRowMove.on-moving--rows tbody th.ht__highlight{cursor:move;cursor:-moz-grabbing;cursor:-webkit-grabbing;cursor:grabbing}.handsontable .ht__manualRowMove.on-moving--rows .manualRowResizer,.handsontable.ht__manualRowMove.on-moving--rows .manualRowResizer{display:none}.handsontable .ht__manualRowMove--guideline,.handsontable .ht__manualRowMove--backlight,.handsontable.ht__manualRowMove--guideline,.handsontable.ht__manualRowMove--backlight{width:100%;display:none;position:absolute}.handsontable .ht__manualRowMove--guideline,.handsontable.ht__manualRowMove--guideline{border-top:1px solid var(--ht-move-indicator-color);z-index:205;left:0}.handsontable .ht__manualRowMove--backlight,.handsontable.ht__manualRowMove--backlight{z-index:205;pointer-events:none;background:color-mix(in srgb,var(--ht-move-backlight-color)var(--ht-move-backlight-opacity,100%),transparent);display:none}.handsontable .on-moving--rows.show-ui .ht__manualRowMove--guideline,.handsontable .on-moving--rows .ht__manualRowMove--backlight,.handsontable.on-moving--rows.show-ui .ht__manualRowMove--guideline,.handsontable.on-moving--rows .ht__manualRowMove--backlight{display:block}.ht-dialog{scrollbar-width:auto;scrollbar-color:var(--ht-scrollbar-thumb-color)var(--ht-scrollbar-track-color);font-size:var(--ht-font-size);line-height:var(--ht-line-height);letter-spacing:var(--ht-letter-spacing);z-index:1060;opacity:0;border-radius:var(--ht-border-radius);border:1px solid var(--ht-border-color);width:100%;height:100%;display:none;position:absolute;top:0;left:0;overflow-y:auto;box-sizing:border-box!important}.ht-dialog[dir=rtl]{left:auto;right:0}.ht-dialog:focus,.ht-dialog:has(.htFocusCatcher:focus){border:1px solid var(--ht-accent-color);outline:none}.ht-dialog *{box-sizing:border-box!important}.ht-dialog--background-solid{background-color:var(--ht-dialog-solid-background-color)}.ht-dialog--background-semi-transparent{background-color:color-mix(in srgb,var(--ht-dialog-semi-transparent-background-color)var(--ht-dialog-semi-transparent-background-opacity,100%),transparent)}.ht-dialog--animation{transition:opacity var(--ht-table-transition)ease-in-out}.ht-dialog--show{opacity:1}.ht-dialog__content-wrapper{width:100%;min-height:100%;padding:calc(var(--ht-gap-size)*4);border-radius:var(--ht-border-radius);justify-content:center;align-items:center;display:flex}.ht-dialog__content{padding:var(--ht-dialog-content-padding-horizontal)var(--ht-dialog-content-padding-vertical);max-width:480px;color:var(--ht-foreground-color);position:relative}.ht-dialog__content--background{box-shadow:var(--ht-shadow-x,0)var(--ht-shadow-y,0)var(--ht-shadow-blur,8px)color-mix(in srgb,var(--ht-shadow-color,#000)var(--ht-shadow-opacity,100%),transparent);border-radius:var(--ht-dialog-content-border-radius);background-color:var(--ht-dialog-content-background-color)}.ht-dialog--confirm .ht-dialog__content-wrapper{text-align:center;padding:calc(var(--ht-gap-size)*2)}.ht-dialog--confirm .ht-dialog__content-wrapper-inner{max-width:480px;padding:calc(var(--ht-gap-size)*2);border-radius:var(--ht-border-radius);flex-direction:column;justify-content:center;align-items:center;display:flex}.ht-dialog--confirm .ht-dialog__content-wrapper-inner--background{box-shadow:var(--ht-shadow-x,0)var(--ht-shadow-y,0)var(--ht-shadow-blur,8px)color-mix(in srgb,var(--ht-shadow-color,#000)var(--ht-shadow-opacity,100%),transparent);border-radius:var(--ht-dialog-content-border-radius);background-color:var(--ht-dialog-content-background-color)}.ht-dialog--confirm .ht-dialog__content-wrapper-inner:focus{box-shadow:0 0 0 1px var(--ht-accent-color);outline:none}.ht-dialog--confirm .ht-dialog__content{justify-content:center;align-items:center;gap:var(--ht-gap-size);flex-direction:column;display:flex}.ht-dialog--confirm .ht-dialog__content:has(.ht-dialog__buttons){gap:calc(var(--ht-gap-size)*2)}.ht-dialog--confirm .ht-dialog__title{font-size:var(--ht-font-size);font-weight:var(--ht-font-weight);line-height:var(--ht-line-height);margin:0}.ht-dialog--confirm .ht-dialog__description{color:var(--ht-foreground-secondary-color);font-size:var(--ht-font-size-small);line-height:var(--ht-line-height-small);font-weight:var(--ht-font-weight);margin:0}.ht-dialog--confirm .ht-dialog__buttons{justify-content:center;gap:calc(var(--ht-gap-size)*2);flex-flow:wrap;display:flex}.ht-notification{z-index:1070;pointer-events:none;position:absolute;inset:0;overflow:visible}.ht-notification__stack{overscroll-behavior:contain;pointer-events:auto;-webkit-overflow-scrolling:touch;scrollbar-width:auto;scrollbar-color:var(--ht-scrollbar-thumb-color)var(--ht-scrollbar-track-color);flex-direction:column;gap:10px;max-width:min(420px,100% - 40px);min-height:0;padding:10px;display:flex;position:absolute;overflow:hidden auto}.ht-notification__stack--top-start{top:10px;align-items:flex-start;max-height:calc(100% - 40px);inset-inline-start:10px}.ht-notification__stack--top-end{top:10px;align-items:flex-end;max-height:calc(100% - 40px);inset-inline-end:10px}.ht-notification__stack--bottom-start{bottom:10px;align-items:flex-start;max-height:calc(100% - 40px);inset-inline-start:10px}.ht-notification__stack--bottom-end{bottom:10px;align-items:flex-end;max-height:calc(100% - 40px);inset-inline-end:10px}.ht-notification__toast{box-shadow:var(--ht-shadow-x,0)var(--ht-shadow-y,0)var(--ht-shadow-blur,8px)color-mix(in srgb,var(--ht-shadow-color,#000)var(--ht-shadow-opacity,100%),transparent);pointer-events:auto;max-width:100%;color:var(--ht-notification-foreground-color,var(--ht-foreground-color));background-color:var(--ht-notification-background-color,var(--ht-background-color));border:1px solid var(--ht-notification-border-color,var(--ht-border-color));border-radius:var(--ht-border-radius,4px);font-size:var(--ht-font-size);line-height:var(--ht-line-height);letter-spacing:var(--ht-letter-spacing);outline:none;flex-shrink:0;display:flex;position:relative}.ht-notification__toast:focus-visible{box-shadow:0 0 0 1px var(--ht-accent-color)}.ht-notification__toast--animate{opacity:0;transition:opacity var(--ht-table-transition,.15s)ease-out,transform var(--ht-table-transition,.15s)ease-out}.ht-notification__toast--animate.ht-notification__toast--stack-top:not(.ht-notification__toast--visible){transform:translateY(-6px)}.ht-notification__toast--animate.ht-notification__toast--stack-bottom:not(.ht-notification__toast--visible){transform:translateY(6px)}.ht-notification__toast--visible{opacity:1;transform:translateY(0)}.ht-notification__toast--info .ht-notification__accent{display:none}.ht-notification__toast--success .ht-notification__accent{background-color:var(--ht-notification-success-accent,#37bc6c)}.ht-notification__toast--warning .ht-notification__accent{background-color:var(--ht-notification-warning-accent,#fbe952)}.ht-notification__toast--error .ht-notification__accent{background-color:var(--ht-notification-error-accent,#fa4d32)}.ht-notification__toast-inner{width:100%;min-width:0;direction:inherit;flex-direction:row;align-items:stretch;gap:0;padding:10px;display:flex}.ht-notification__accent{box-sizing:border-box;border-radius:4px;flex:0 0 4px;align-self:stretch;margin-inline-end:10px}.ht-notification__body{flex:auto;min-width:0}.ht-notification__title{margin:0 0 var(--ht-gap-size);font-size:var(--ht-font-size);font-weight:var(--ht-font-weight,600)}.ht-notification__message{font-size:var(--ht-font-size-small);word-break:break-word;margin:0}.ht-notification__actions{gap:var(--ht-gap-size);margin-top:var(--ht-gap-size);flex-wrap:wrap;display:flex}.ht-notification__close{box-sizing:border-box;width:var(--ht-icon-button-hit-area-size);height:var(--ht-icon-button-hit-area-size);color:var(--ht-icon-button-icon-color,inherit);cursor:pointer;border-radius:var(--ht-icon-button-border-radius,var(--ht-border-radius,4px));background:0 0;border:none;flex:none;align-self:flex-start;margin-inline-start:4px;padding:0;position:relative;overflow:visible}.ht-notification__close .ht-icon{margin-top:calc(-.5*var(--ht-icon-size));top:50%;margin-inline-start:calc(-.5*var(--ht-icon-size));position:absolute;inset-inline-start:50%}.ht-notification__close:hover{color:var(--ht-icon-button-hover-icon-color,inherit);background-color:var(--ht-icon-button-hover-background-color,color-mix(in srgb,var(--ht-foreground-color)8%,transparent))}.ht-notification__close:focus-visible{outline:2px solid var(--ht-accent-color);outline-offset:2px}.handsontable.ht-pagination{width:100%;color:var(--ht-pagination-bar-foreground-color);background:var(--ht-pagination-bar-background-color);font-size:var(--ht-font-size);line-height:var(--ht-line-height);box-sizing:border-box;overflow-x:auto}.handsontable.ht-pagination:not(.ht-slot-element){border:1px solid var(--ht-border-color);border-radius:var(--ht-border-radius)}.handsontable.ht-pagination .ht-pagination__inner{justify-content:space-between;align-items:center;gap:calc(var(--ht-gap-size)*4);padding-inline:var(--ht-pagination-bar-horizontal-padding);padding-block:var(--ht-pagination-bar-vertical-padding);flex-wrap:wrap;min-width:230px;display:flex}.handsontable.ht-pagination .ht-page-size-section{align-items:center;gap:calc(var(--ht-gap-size)*2);display:flex}.handsontable.ht-pagination .ht-page-size-section__label{white-space:nowrap;font-size:inherit;line-height:inherit;font-weight:inherit;letter-spacing:inherit;font-family:inherit}.handsontable.ht-pagination .ht-page-size-section__select-wrapper{border-radius:var(--ht-input-border-radius);background-color:var(--ht-input-background-color);position:relative}.handsontable.ht-pagination .ht-page-size-section__select-wrapper:focus-within{background-color:var(--ht-input-focus-background-color)}.handsontable.ht-pagination .ht-page-size-section__select-wrapper:hover{background-color:var(--ht-input-hover-background-color)}.handsontable.ht-pagination .ht-page-size-section__select-wrapper select{padding-inline-start:var(--ht-gap-size);padding-inline-end:calc(var(--ht-gap-size) + var(--ht-icon-size));padding-top:var(--ht-gap-size);padding-bottom:var(--ht-gap-size);border-radius:var(--ht-input-border-radius);color:var(--ht-input-foreground-color);border:1px solid var(--ht-input-border-color);line-height:calc(var(--ht-line-height) - 4px);-webkit-appearance:none;font-size:inherit;cursor:pointer;background-color:#0000}.handsontable.ht-pagination .ht-page-size-section__select-wrapper select:disabled{opacity:.4;cursor:default;color:var(--ht-input-disabled-foreground-color);border-color:var(--ht-input-disabled-border-color)}.handsontable.ht-pagination .ht-page-size-section__select-wrapper select:hover:not(:disabled){color:var(--ht-input-hover-foreground-color);border-color:var(--ht-input-hover-border-color)}.handsontable.ht-pagination .ht-page-size-section__select-wrapper select:focus{color:var(--ht-input-focus-foreground-color);border-color:var(--ht-input-focus-border-color);outline:none}.handsontable.ht-pagination .ht-page-size-section__select-wrapper .ht-icon{color:var(--ht-foreground-color);inset-inline-end:var(--ht-gap-size);position:absolute;top:50%;transform:translateY(-50%)}.handsontable.ht-pagination .ht-page-counter-section{margin-inline-end:auto}.handsontable.ht-pagination .ht-page-navigation-section{align-items:center;gap:1px;display:flex}.handsontable.ht-pagination .ht-page-navigation-section__button{font-size:inherit;border:1px solid var(--ht-pagination-button-border-color);color:var(--ht-pagination-button-foreground-color);background-color:var(--ht-pagination-button-background-color);border-radius:var(--ht-icon-button-large-border-radius);padding:var(--ht-icon-button-large-padding);cursor:pointer}.handsontable.ht-pagination .ht-page-navigation-section__button .ht-icon{display:block}.handsontable.ht-pagination .ht-page-navigation-section__button--disabled{cursor:default;pointer-events:none;color:var(--ht-pagination-button-disabled-foreground-color);background-color:var(--ht-pagination-button-disabled-background-color);border-color:var(--ht-pagination-button-disabled-border-color)}.handsontable.ht-pagination .ht-page-navigation-section__button:hover:not(:disabled){border-color:var(--ht-pagination-button-hover-border-color);color:var(--ht-pagination-button-hover-foreground-color);background-color:var(--ht-pagination-button-hover-background-color)}.handsontable.ht-pagination .ht-page-navigation-section__button:focus{border-color:var(--ht-pagination-button-focus-border-color);color:var(--ht-pagination-button-focus-foreground-color);background-color:var(--ht-pagination-button-focus-background-color);outline:none}.handsontable.ht-pagination .ht-page-navigation-section__label{white-space:nowrap;text-align:center;min-width:100px;font-size:inherit;line-height:inherit;font-weight:inherit;letter-spacing:inherit;font-family:inherit}.handsontable.htSheetsBarMenu{overflow:hidden}.handsontable.htSheetsBarMenu>.ht_master{padding-block:0}.handsontable.htMenu.htSheetsBarMenu .ht_master .wtHolder,.handsontable.htMenu.htSheetsBarMenu .ht_master .htScrollbarFrame{box-shadow:none}.handsontable.htSheetsBarMenu .ht_master .wtHolder{padding-block:var(--ht-menu-vertical-padding,8px);max-height:calc(8*(var(--ht-line-height) + var(--ht-menu-item-vertical-padding)*2 + 1px));overflow:hidden auto}.handsontable.htSheetsBarMenu table tbody tr td .htItemWrapper span.selected .ht-icon{color:var(--ht-menu-item-active-color,var(--ht-accent-color))}.handsontable.htSheetsBarMenu table tbody tr td .htItemWrapper{text-overflow:ellipsis;white-space:nowrap;max-width:32ch;padding-inline-end:calc(var(--ht-icon-size) + var(--ht-gap-size));overflow:hidden}.handsontable.htSheetsBarMenu table tbody tr td.htCustomMenuRenderer:not(.htDisabled):hover{cursor:pointer;background:color-mix(in srgb,var(--ht-menu-item-hover-color)var(--ht-menu-item-hover-color-opacity,100%),transparent)!important}.handsontable.htSheetsBarMenu table tbody tr td.htCustomMenuRenderer:not(.htDisabled).current{box-shadow:inset 0 0 0 1px var(--ht-menu-item-active-color,var(--ht-accent-color))}.handsontable.ht-sheets-bar{--ht-private-tab-enter-offset:-2em;--ht-private-sheets-bar-button-width:calc((2*var(--ht-icon-button-large-padding)) + var(--ht-icon-size) + 2px);width:100%;color:var(--ht-bar-foreground-color);background:var(--ht-sheets-bar-background-color);font-size:var(--ht-font-size);line-height:var(--ht-line-height);box-sizing:border-box;overflow:auto hidden}.handsontable.ht-sheets-bar:not(.ht-slot-element){border:1px solid var(--ht-border-color);border-radius:var(--ht-border-radius)}.handsontable.ht-sheets-bar.ht-slot-element{border-top-width:1px}.handsontable.ht-sheets-bar[dir=rtl]{--ht-private-tab-enter-offset:2em}.handsontable.ht-sheets-bar .ht-sheets-bar__inner{min-width:min-content;padding-inline:var(--ht-sheets-bar-horizontal-padding);grid-template-columns:auto minmax(auto,1fr) auto;align-items:stretch;display:grid}.handsontable.ht-sheets-bar .ht-sheets-bar__tabs-sizer{visibility:hidden;pointer-events:none;grid-area:1/2/auto/4;min-width:max-content;height:0;display:grid;overflow:clip}.handsontable.ht-sheets-bar .ht-sheets-bar__tabs-sizer>div{white-space:nowrap;padding-inline:var(--ht-sheets-bar-tab-horizontal-padding)calc(var(--ht-sheets-bar-tab-horizontal-padding) + var(--ht-sizing-size-1) + var(--ht-icon-size) + var(--ht-gap-size) + 2px + 2*var(--ht-private-sheets-bar-button-width) + 1px + 2*var(--ht-gap-size));grid-area:1/1}.handsontable.ht-sheets-bar .ht-sheets-bar__controls,.handsontable.ht-sheets-bar .ht-sheets-bar__paging{flex:none;align-items:center;gap:1px;display:flex}.handsontable.ht-sheets-bar .ht-sheets-bar__controls[hidden],.handsontable.ht-sheets-bar .ht-sheets-bar__paging[hidden]{display:none}.handsontable.ht-sheets-bar .ht-sheets-bar__controls{padding-inline:calc(var(--ht-gap-size)*2);grid-area:1/1;position:relative}.handsontable.ht-sheets-bar.ht-sheets-bar--strip-scrolled .ht-sheets-bar__controls:after{content:"";background:var(--ht-border-color);z-index:1;pointer-events:none;inset-inline-end:0;width:1px;position:absolute;top:0;bottom:0}.handsontable.ht-sheets-bar .ht-sheets-bar__paging{grid-area:1/3;padding-inline-start:calc(var(--ht-gap-size)*2);position:relative}.handsontable.ht-sheets-bar.ht-sheets-bar--strip-more-end .ht-sheets-bar__paging:before{content:"";background:var(--ht-border-color);z-index:1;pointer-events:none;inset-inline-start:0;width:1px;position:absolute;top:0;bottom:0}.handsontable.ht-sheets-bar .ht-sheets-bar__button{font-size:inherit;border:1px solid var(--ht-pagination-button-border-color);color:var(--ht-pagination-button-foreground-color);background-color:var(--ht-pagination-button-background-color);border-radius:var(--ht-icon-button-large-border-radius);padding:var(--ht-icon-button-large-padding);cursor:pointer;justify-content:center;align-items:center;display:flex}.handsontable.ht-sheets-bar .ht-sheets-bar__button:disabled,.handsontable.ht-sheets-bar .ht-sheets-bar__button.ht-sheets-bar__button--disabled{cursor:default;pointer-events:none;color:var(--ht-pagination-button-disabled-foreground-color);background-color:var(--ht-pagination-button-disabled-background-color);border-color:var(--ht-pagination-button-disabled-border-color)}.handsontable.ht-sheets-bar .ht-sheets-bar__button:hover:not(:disabled,.ht-sheets-bar__button--disabled){border-color:var(--ht-pagination-button-hover-border-color);color:var(--ht-pagination-button-hover-foreground-color);background-color:var(--ht-pagination-button-hover-background-color)}.handsontable.ht-sheets-bar .ht-sheets-bar__button:focus-visible{border-color:var(--ht-pagination-button-focus-border-color);color:var(--ht-pagination-button-focus-foreground-color);background-color:var(--ht-pagination-button-focus-background-color);outline:none}.handsontable.ht-sheets-bar .ht-sheets-bar__tabs{contain:inline-size;grid-area:1/2;align-items:stretch;min-width:0;padding-inline-end:1px;display:flex;position:relative;overflow-x:auto;scrollbar-width:none!important}.handsontable.ht-sheets-bar .ht-sheets-bar__tabs::-webkit-scrollbar{display:none}.handsontable.ht-sheets-bar .ht-sheets-bar__tab{isolation:isolate;cursor:pointer;align-items:center;gap:var(--ht-sizing-size-1);padding-inline:var(--ht-sheets-bar-tab-horizontal-padding);padding-block:var(--ht-sheets-bar-tab-vertical-padding);color:var(--ht-sheets-bar-tab-foreground-color);background:var(--ht-sheets-bar-tab-background-color);-webkit-user-select:none;user-select:none;touch-action:pan-x pan-y;transition:transform var(--ht-private-tab-slide-duration,var(--ht-table-transition))var(--ht-private-tab-slide-easing,ease-out),color var(--ht-table-transition)ease-out;flex:none;display:flex;position:relative}@media (prefers-reduced-motion:reduce){.handsontable.ht-sheets-bar .ht-sheets-bar__tab{transition:none}}.handsontable.ht-sheets-bar .ht-sheets-bar__tab--entering{animation:ht-sheets-bar-tab-enter var(--ht-table-transition)ease-out backwards}@media (prefers-reduced-motion:reduce){.handsontable.ht-sheets-bar .ht-sheets-bar__tab--entering{animation:none}}.handsontable.ht-sheets-bar .ht-sheets-bar__tab:hover{color:var(--ht-sheets-bar-tab-hover-foreground-color)}.handsontable.ht-sheets-bar .ht-sheets-bar__tab--active,.handsontable.ht-sheets-bar .ht-sheets-bar__tab--active:hover{color:var(--ht-sheets-bar-tab-active-foreground-color);background:var(--ht-sheets-bar-tab-active-background-color)}.handsontable.ht-sheets-bar .ht-sheets-bar__tab--active:after{content:"";border-block-end:var(--ht-sheets-bar-tab-active-border-width)solid var(--ht-sheets-bar-tab-active-border-color);pointer-events:none;inset-inline:0;position:absolute;bottom:0}.handsontable.ht-sheets-bar .ht-sheets-bar__tab--dragging{z-index:1;pointer-events:none;color:var(--ht-sheets-bar-tab-hover-foreground-color);background-color:var(--ht-sheets-bar-tab-background-color);box-shadow:var(--ht-shadow-x,0)var(--ht-shadow-y,0)var(--ht-shadow-blur,8px)color-mix(in srgb,var(--ht-shadow-color,#000)var(--ht-shadow-opacity,100%),transparent);transition:none;animation:none}.handsontable.ht-sheets-bar .ht-sheets-bar__tab--lifted{z-index:1;color:var(--ht-sheets-bar-tab-hover-foreground-color);background-color:var(--ht-sheets-bar-tab-background-color);box-shadow:var(--ht-shadow-x,0)var(--ht-shadow-y,0)var(--ht-shadow-blur,8px)color-mix(in srgb,var(--ht-shadow-color,#000)var(--ht-shadow-opacity,100%),transparent)}.handsontable.ht-sheets-bar .ht-sheets-bar__tab--active.ht-sheets-bar__tab--dragging,.handsontable.ht-sheets-bar .ht-sheets-bar__tab--active.ht-sheets-bar__tab--lifted{color:var(--ht-sheets-bar-tab-active-foreground-color);background-color:var(--ht-sheets-bar-tab-active-background-color)}@media (forced-colors:active){.handsontable.ht-sheets-bar .ht-sheets-bar__tab--lifted,.handsontable.ht-sheets-bar .ht-sheets-bar__tab--dragging{outline-offset:-2px;outline:2px solid highlight}}.handsontable.ht-sheets-bar .ht-sheets-bar__tab-ghost{top:0;bottom:0;left:var(--ht-private-tab-ghost-x,0);align-items:center;gap:var(--ht-sizing-size-1);box-sizing:border-box;width:var(--ht-private-tab-ghost-width,0);padding-inline:var(--ht-sheets-bar-tab-horizontal-padding);padding-block:var(--ht-sheets-bar-tab-vertical-padding);color:var(--ht-sheets-bar-tab-foreground-color);background:var(--ht-sheets-bar-tab-background-color);pointer-events:none;-webkit-user-select:none;user-select:none;animation:ht-sheets-bar-tab-leave var(--ht-table-transition)ease-in both;display:flex;position:absolute}@media (prefers-reduced-motion:reduce){.handsontable.ht-sheets-bar .ht-sheets-bar__tab-ghost{animation:none}}.handsontable.ht-sheets-bar .ht-sheets-bar__tabs--sliding{--ht-private-tab-slide-easing:ease-in-out}.handsontable.ht-sheets-bar .ht-sheets-bar__tab--slide-lead{z-index:1}.handsontable.ht-sheets-bar .ht-sheets-bar__tab-indicator{z-index:0;width:var(--ht-private-tab-indicator-width);transform:translateX(var(--ht-private-tab-indicator-x));background:var(--ht-sheets-bar-tab-active-background-color);border-block-end:var(--ht-sheets-bar-tab-active-border-width)solid var(--ht-sheets-bar-tab-active-border-color);pointer-events:none;transition-property:transform,width;transition-timing-function:ease-in-out;position:absolute;top:0;bottom:0;left:0}@media (prefers-reduced-motion:reduce){.handsontable.ht-sheets-bar .ht-sheets-bar__tab-indicator{transition:none}}.handsontable.ht-sheets-bar .ht-sheets-bar__tabs--indicator-moving:before{content:"";width:var(--ht-private-tab-indicator-path-width,0);transform:translateX(var(--ht-private-tab-indicator-path-x,0));background:var(--ht-sheets-bar-tab-background-color);pointer-events:none;position:absolute;top:0;bottom:0;left:0}.handsontable.ht-sheets-bar .ht-sheets-bar__tabs--indicator-moving .ht-sheets-bar__tab--indicator-path,.handsontable.ht-sheets-bar .ht-sheets-bar__tabs--indicator-moving .ht-sheets-bar__tab--active{background:0 0}.handsontable.ht-sheets-bar .ht-sheets-bar__tabs--indicator-moving .ht-sheets-bar__tab--active:after{content:none}.handsontable.ht-sheets-bar .ht-sheets-bar__tab-label,.handsontable.ht-sheets-bar .ht-sheets-bar__tab-chevron{color:inherit;font-size:inherit;line-height:inherit;font-weight:inherit;letter-spacing:inherit;cursor:pointer;background:0 0;border:none;margin:0;padding:0;font-family:inherit}.handsontable.ht-sheets-bar .ht-sheets-bar__tab:focus-visible{outline:1px solid var(--ht-pagination-button-focus-border-color);outline-offset:-1px}.handsontable.ht-sheets-bar .ht-sheets-bar__tab-chevron{color:var(--ht-icon-button-icon-color);padding:var(--ht-gap-size);margin-inline-end:calc(var(--ht-gap-size)*-1);margin-block:calc(var(--ht-gap-size)*-1);align-items:center;display:flex;position:relative}.handsontable.ht-sheets-bar .ht-sheets-bar__tab-chevron:before{content:"";inset:var(--ht-gap-size);border-radius:var(--ht-icon-button-border-radius);display:block;position:absolute}.handsontable.ht-sheets-bar .ht-sheets-bar__tab-chevron:after{content:"";inset:min(0px,(100% - var(--ht-icon-button-hit-area-size))/2);position:absolute}.handsontable.ht-sheets-bar .ht-sheets-bar__tab-chevron .ht-icon{z-index:1;position:relative}.handsontable.ht-sheets-bar .ht-sheets-bar__tab--active .ht-sheets-bar__tab-chevron:hover,.handsontable.ht-sheets-bar .ht-sheets-bar__tab--active .ht-sheets-bar__tab-chevron:focus-visible{color:var(--ht-icon-button-hover-icon-color)}.handsontable.ht-sheets-bar .ht-sheets-bar__tab--active .ht-sheets-bar__tab-chevron:hover:before,.handsontable.ht-sheets-bar .ht-sheets-bar__tab--active .ht-sheets-bar__tab-chevron:focus-visible:before{background-color:var(--ht-icon-button-hover-background-color);box-shadow:0 0 0 1px var(--ht-icon-button-hover-border-color)}.handsontable.ht-sheets-bar .ht-sheets-bar__tab--renaming .ht-sheets-bar__tab-chevron{display:none}.handsontable.ht-sheets-bar .ht-sheets-bar__tab--renaming,.handsontable.ht-sheets-bar .ht-sheets-bar__tab--renaming:hover{color:var(--ht-cell-editor-foreground-color);background:var(--ht-cell-editor-background-color);outline:2px solid var(--ht-cell-editor-border-color);outline-offset:-2px}.handsontable.ht-sheets-bar .ht-sheets-bar__tab--renaming:after{content:none}.handsontable.ht-sheets-bar .ht-sheets-bar__tab-rename{font-size:inherit;line-height:inherit;font-weight:inherit;letter-spacing:inherit;color:inherit;-webkit-user-select:text;user-select:text;box-shadow:none;background:0 0;border:none;border-radius:0;outline:none;max-width:40ch;height:auto;min-height:0;max-height:none;margin:0;padding:0;font-family:inherit}.handsontable.ht-sheets-bar .ht-sheets-bar__tab-rename-mirror{visibility:hidden;pointer-events:none;white-space:pre;font-size:inherit;line-height:inherit;font-weight:inherit;letter-spacing:inherit;border:none;margin:0;padding:0;font-family:inherit;position:absolute}.handsontable.ht-sheets-bar.ht-sheets-bar-pressing,.handsontable.ht-sheets-bar.ht-sheets-bar-pressing .ht-sheets-bar__tab,.handsontable.ht-sheets-bar.ht-sheets-bar-pressing .ht-sheets-bar__tab *,.handsontable.ht-sheets-bar.ht-sheets-bar-dragging,.handsontable.ht-sheets-bar.ht-sheets-bar-dragging *{cursor:move;cursor:-moz-grabbing;cursor:-webkit-grabbing;cursor:grabbing}.handsontable.ht-sheets-bar.ht-sheets-bar-dragging .ht-sheets-bar__tab{pointer-events:none}@keyframes ht-sheets-bar-tab-enter{0%{opacity:0;transform:translateX(var(--ht-private-tab-enter-offset))}to{opacity:1;transform:translate(0)}}@keyframes ht-sheets-bar-tab-leave{0%{opacity:1;transform:translate(0)}to{opacity:0;transform:translateX(var(--ht-private-tab-enter-offset))}}.ht-loading__icon-svg{width:var(--ht-icon-size);height:var(--ht-icon-size);color:var(--ht-accent-color);transform-origin:50%;animation:1s linear infinite ht-loading-spin;display:block}.ht-loading__content{align-items:center;gap:calc(var(--ht-gap-size)*2);display:flex}.ht-loading__title{font-size:var(--ht-font-size);font-weight:var(--ht-font-weight);line-height:var(--ht-line-height);margin:0}.ht-loading__description{color:var(--ht-foreground-secondary-color);font-size:var(--ht-font-size-small);line-height:var(--ht-line-height-small);font-weight:var(--ht-font-weight);margin:0}@keyframes ht-loading-spin{to{transform:rotate(360deg)}}.handsontable .htAsyncPending{position:relative}.handsontable .htAsyncIndicator{box-sizing:border-box;width:calc(var(--ht-icon-size)*.75);height:calc(var(--ht-icon-size)*.75);margin-top:calc(var(--ht-icon-size)*-.375);border:2px solid var(--ht-async-indicator-color,var(--ht-accent-color));pointer-events:none;top:50%;border-inline-end-color:#0000;border-radius:50%;animation:1s linear infinite ht-async-values-spin;position:absolute;inset-inline-end:var(--ht-cell-horizontal-padding)}@media (prefers-reduced-motion:reduce){.handsontable .htAsyncIndicator{animation:none}}.handsontable .htAutocompleteArrow~.htAsyncIndicator,.handsontable .ht-multi-select-arrow~.htAsyncIndicator{inset-inline-end:calc(var(--ht-cell-horizontal-padding) + var(--ht-icon-size)*1.25)}.handsontable td.htRight>.htAsyncIndicator{inset-inline:auto;left:var(--ht-cell-horizontal-padding)}.handsontable td.htLeft>.htAsyncIndicator{inset-inline:auto;right:var(--ht-cell-horizontal-padding)}.handsontable .htAsyncErrorMarker{border-inline-start:3px solid var(--ht-async-error-marker-color,var(--ht-notification-error-accent));pointer-events:none;width:0;position:absolute;inset-block:0;inset-inline-start:0}.handsontable .htAsyncErrorMessage,.handsontable .htAsyncPendingMessage{clip-path:inset(50%);white-space:nowrap;-webkit-user-select:none;user-select:none;width:1px;height:1px;position:absolute;overflow:hidden}.handsontable tbody tr>td.htAsyncError{background-color:var(--ht-async-error-background-color,var(--ht-cell-error-background-color));position:relative}@keyframes ht-async-values-spin{to{transform:rotate(360deg)}}.ht-empty-data-state{scrollbar-width:auto;scrollbar-color:var(--ht-scrollbar-thumb-color)var(--ht-scrollbar-track-color);z-index:999;border:1px solid var(--ht-border-color);border-radius:var(--ht-border-radius);box-sizing:border-box;background-color:var(--ht-background-color);width:100%;display:none;position:absolute;left:0;overflow-y:auto}.ht-empty-data-state *{box-sizing:border-box!important}.ht-empty-data-state__content-wrapper{text-align:center;width:100%;min-height:100%;padding:calc(var(--ht-gap-size)*2);border-radius:var(--ht-border-radius);justify-content:center;align-items:center;display:flex}.ht-empty-data-state__content-wrapper-inner{max-width:480px;padding:calc(var(--ht-gap-size)*2);border-radius:var(--ht-border-radius);flex-direction:column;justify-content:center;align-items:center;display:flex}.ht-empty-data-state__content-wrapper-inner:focus{box-shadow:0 0 0 1px var(--ht-accent-color);outline:none}.ht-empty-data-state__content{justify-content:center;align-items:center;gap:var(--ht-gap-size);flex-direction:column;display:flex}.ht-empty-data-state__title{font-size:var(--ht-font-size);font-weight:var(--ht-font-weight);line-height:var(--ht-line-height);margin:0}.ht-empty-data-state__description{color:var(--ht-foreground-secondary-color);font-size:var(--ht-font-size-small);line-height:var(--ht-line-height-small);font-weight:var(--ht-font-weight);margin:0}.ht-empty-data-state__buttons{justify-content:center;gap:calc(var(--ht-gap-size)*2);flex-flow:wrap;display:flex}.ht-empty-data-state__buttons--has-buttons{margin-top:calc(var(--ht-gap-size)*2)}.ht-empty-data-state__spinner{width:28px;height:28px;margin-bottom:calc(var(--ht-gap-size)*2);border:2px solid var(--ht-border-color);border-top-color:var(--ht-accent-color);border-radius:50%;flex-shrink:0;animation:.75s linear infinite ht-empty-data-state-spin}@media (prefers-reduced-motion:reduce){.ht-empty-data-state__spinner{border-top-color:var(--ht-border-color);animation:none}}.ht-empty-data-state--loading .ht-empty-data-state__content{gap:calc(var(--ht-gap-size)*.5)}.ht-empty-data-state--disable-top-border{border-top-width:0;border-start-start-radius:0;border-start-end-radius:0}.ht-empty-data-state--disable-inline-border{border-inline-start-width:0;border-start-start-radius:0;border-end-start-radius:0}.ht-empty-data-state--disable-bottom-border{border-bottom-width:0;border-end-end-radius:0;border-end-start-radius:0}.ht-root-wrapper.ht-slot-bottom-filled .ht-empty-data-state{border-end-end-radius:0;border-end-start-radius:0}@keyframes ht-empty-data-state-spin{to{transform:rotate(360deg)}}.handsontable th.htRowSelectionCell,.handsontable th.htRowSelectionHeader{cursor:pointer}.handsontable th.htRowSelectionCell .htRowSelectionCheckboxBox,.handsontable th.htRowSelectionHeader .htRowSelectionCheckboxBox{margin-inline:0}.handsontable th.htRowSelectionHeader .htRowSelectionCheckboxBox{margin-block:0}.handsontable th.htRowSelectionCheckboxOnly .relative{justify-content:center;height:100%}.handsontable th.htRowSelectionCheckboxOnly .colHeader{display:none}.handsontable .htRowSelectionCheckbox.htRowSelectionCheckboxHidden,.handsontable .htRowSelectionCheckbox.htRowSelectionCheckboxHidden+.ht-icon{visibility:hidden}.handsontable tbody tr>td.htRowSelected,.handsontable tbody tr>th.htRowSelected{background-image:linear-gradient(var(--ht-row-selection-background-color),var(--ht-row-selection-background-color))}.handsontable th.htCheckboxHeader .htCheckboxHeaderBox{margin-block:0}',this.#tf.head.appendChild(t)}#aZ(){let e=this.getCSSVariableValue("line-height"),t=this.getCSSVariableValue("cell-vertical-padding"),i=Number.parseFloat(this.getStyleForTD("border-bottom-width")??""),o=Math.round(i);if(null===e||null===t||isNaN(o))return null;let r=e+2*t+o;return Number.isFinite(r)&&i>o?this.#a0(r):r}#a0(e){let t=this.#a1(e),i=t-e;return i>0?i>this.#a2()?e:t:e}#a2(){let e=this.#a3();return e>0&&e<1?1/e-1:1}getMaxDefaultRowOvergrowth(){let e=this.#a3();return e>0&&e<1?1/e-1:0}#a3(){return this.#tf.defaultView?.devicePixelRatio??1}#a1(e){let t=this.#a3();if(null!==this.#aj&&this.#aj.declaredRowHeight===e&&this.#aj.devicePixelRatio===t)return this.#aj.cellHeight;let i=Number.parseFloat(this.#a6(["height"]).height);return i>0&&(this.#aj={declaredRowHeight:e,devicePixelRatio:t,cellHeight:i}),i}#aJ(){this.#az=!this.#a4(),this.#aV=getComputedStyle(this.#aB);let e=this.#a6(["box-sizing","border-bottom-width"]);this.#aG.td={...this.#aG.td,...{"box-sizing":e["box-sizing"],"border-bottom-width":e["border-bottom-width"]}}}#a6(e){let t=this.#tf,i=this.#aB,o=t.createElement("table"),r=t.createElement("tbody"),n=t.createElement("tr"),s=t.createElement("tr"),l=t.createElement("td");o.className="htCore",l.textContent="\xa0",s.appendChild(l),r.appendChild(n),r.appendChild(s),o.appendChild(r),i.appendChild(o);let a=getComputedStyle(l),h={};return e.forEach(e=>{h[e]=a.getPropertyValue(e)}),i.removeChild(o),h}#aY(e){let t=Math.ceil(Number.parseFloat(this.#aX(e)??""));return Number.isNaN(t)?null:t}#aX(e){let t=this.#aV?.getPropertyValue(e)??null;return""===t?null:t}#aQ(){this.#aG={},this.#a$={},this.#aU={},this.#aj=null}#a4(){if(!this.#aB.isConnected)return!1;let e=this.#aB.ownerDocument.defaultView;return null!==e&&""!==e.getComputedStyle(this.#aB).display}recacheValuesMeasuredWithoutStyles(){return!!this.#az&&!!this.#a4()&&(this.clearCache(),!0)}clearCache(){this.#aQ(),this.#aJ()}}function mQ(e,t,i){return"array"!==e&&t>0&&i>=t}let mJ=null,m0=null,m1=[];function m2(e,t){let i=e.createElement("div");i.setAttribute("role","status"),i.setAttribute("aria-live",t),i.setAttribute("aria-atomic","true");let o=i.style;return o.position="absolute",o.width="1px",o.height="1px",o.margin="-1px",o.overflow="hidden",o.clipPath="rect(0 0 0 0)",o.whiteSpace="nowrap",i}function m3(e,t="assertive"){let i="polite"===t?m0:mJ;i&&(i.textContent="",setTimeout(()=>{(i===mJ||i===m0)&&(i.textContent=e)},100))}let m6={TOP:"top",BOTTOM:"bottom"},m4="ht-slot-element";class m5{#eF;#o2=new Map;#a5=0;#a8=[];#a7;#a9;constructor(e,{itemClass:t="",onContentChange:i=()=>{}}={}){this.#eF=e,this.#a7=t,this.#a9=i}getElement(){return this.#eF}has(e){return this.#o2.has(e)}add(e,t,i=0){let o=this.#o2.get(e),r=o?o.seq:this.#a5;o&&o.element.remove(),this.#a7&&t.classList.add(this.#a7),this.#o2.set(e,{element:t,weight:i,seq:r}),o||(this.#a5+=1),this.#he(),this.#a9()}remove(e){let t=this.#o2.get(e);t&&(this.#a7&&t.element.classList.remove(this.#a7),t.element.remove(),this.#o2.delete(e),this.#a9())}setOrder(e){this.#a8=Array.isArray(e)?e.slice():[],this.#he()}getOrder(){return this.#ht()}clear(){this.#o2.forEach(e=>e.element.remove()),this.#o2.clear(),this.#a9()}#ht(){let e=this.#a8;return Array.from(this.#o2.keys()).sort((t,i)=>{let o=e.indexOf(t),r=e.indexOf(i);if(-1!==o||-1!==r)return(-1===o?1/0:o)-(-1===r?1/0:r);let n=this.#o2.get(t),s=this.#o2.get(i);return n.weight!==s.weight?n.weight-s.weight:n.seq-s.seq})}#he(){let e=this.#eF.firstChild;this.#ht().forEach(t=>{let i=this.#o2.get(t).element;i===e?e=e.nextSibling:this.#eF.insertBefore(i,e)})}}function m8(e,t){let i=t.parentElement;if(!i)return;let o=null!==t.querySelector(`:scope > .${m4}`);i.classList.toggle(`ht-slot-${e}-filled`,o)}class m7{#hi;constructor(e){this.#hi=new Map(Object.keys(e).map(t=>[t,new m5(e[t],{itemClass:m4,onContentChange:()=>m8(t,e[t])})]))}getSlot(e){let t=this.#hi.get(e);return t||tf(`Unknown layout slot "${e}".`),t}register(e,t,{side:i,weight:o=0}){this.getSlot(i).add(e,t,o)}unregister(e,t){this.getSlot(t).remove(e)}applyConfig(e={}){Object.values(m6).forEach(t=>this.getSlot(t).setOrder(e?.[t]??[]))}destroy(){this.#hi.forEach(e=>e.clear())}}let m9="http://www.w3.org/2000/svg";function fe(e,t){let i=t.createDocumentFragment(),o={};return(Array.isArray(e)?e:[e]).forEach(e=>{e&&i.appendChild(function e(t,i,o,r){let n=t.ns??r,s=n?i.createElementNS(n,t.tag):i.createElement(t.tag);return void 0!==t.className&&(n?s.setAttribute("class",t.className):s.className=t.className),t.attrs&&Object.keys(t.attrs).forEach(e=>{s.setAttribute(e,String(t.attrs[e]))}),void 0!==t.text&&(s.textContent=t.text),t.children?.forEach(t=>{t&&s.appendChild(e(t,i,o,n))}),void 0!==t.ref&&(o[t.ref]=s),s}(e,t,o))}),{fragment:i,refs:o}}let ft="mailto:sales@handsontable.com",fi="mailto:support@handsontable.com",fo="https://handsontable.com/docs/tutorial-license-key.html",fr={trial_valid:{title:"Handsontable Trial",body:({daysRemaining:e})=>`Your Handsontable license key ${e8(e)}. ${tt}`,linkText:"Contact Sales",linkHref:ft,dismissible:!1},trial_notice:{title:"Handsontable Trial",body:({daysRemaining:e})=>`Your Handsontable license key ${e8(e)}. ${tt}`,linkText:"Contact Sales",linkHref:ft,dismissible:!1},trial_soft_stop:{title:"Handsontable Trial Expired",body:()=>`${te} ${tt}`,linkText:"Contact Sales",linkHref:ft,dismissible:!0}},fn={trial_hard_stop:({licensedUntil:e})=>({title:`Your Handsontable trial license key expired on ${e}.`,description:"You may no longer use Handsontable under the trial license. To continue using the software, contact sales@handsontable.com to purchase a valid license.",action:{text:"Contact Sales",href:ft}}),invalid:()=>({title:"The license key for Handsontable is invalid.",description:"",action:{text:"Contact Support",href:fi},docsLink:{text:"Read more",href:fo,trailingText:" on how to install it properly, or contact us at support@handsontable.com."}}),missing:()=>({title:"The license key for Handsontable is missing.",description:"Use your purchased key to activate the product. ",action:{text:"Contact Support",href:fi},docsLink:{text:"Read more",href:fo,trailingText:" about it in the documentation, or contact us at support@handsontable.com."}})},fs="ht-license-powered-by",fl="licensePoweredBy",fa=`plugin:${fl}`,fh="licenseNotification",fd=`plugin:${fh}`,fu="hot-display-license-info",fc=`${fu}_missing-features`,fg=new Set,fp=new WeakMap,fm=new WeakSet;function ff(e){return e.rootSlotBottomElement?.querySelector(`.${fu}`)??null}function fw(e,t){let i=Array.from(e.children).find(e=>e.classList.contains(fs))??null;t.classList.add(m4),e.insertBefore(t,i),m8(m6.BOTTOM,e)}function fb(e,t){let i=e.rootSlotBottomElement;i&&(fw(i,t),e.getFocusScopeManager().registerScope(fh,t,{shortcutsContextName:fd,runOnlyIf:()=>null!==ff(e),onActivate:t=>{let i,o=(i=ff(e))?Array.from(i.querySelectorAll("a[href]")):[];o.length>0&&("tab_from_above"===t?o[0]?.focus():"tab_from_below"===t&&o[o.length-1]?.focus())}}))}function fC(e){let t,i,o;if(e.isDestroyed||!sy(e)||!fm.has(e))return;if(t=sv.get(e),t?.features.forEach(({isStillMissing:e},i)=>{null===e||e()||t.features.delete(i)}),i=sv.get(e),o=e.getSettings().licenseKey,void 0===i||i.key!==("string"==typeof o?o:"")||!(i.features.size>0)){sv.delete(e),fS(e);return}let r=function(e){let t=sv.get(e);if(!t)return null;let i=[...t.features.keys()],o=i.some(e=>!t.written.has(e));if(!o&&i.length===t.written.size)return null;t.written=new Set(i);let r=[...t.features.entries()].map(([e,{name:t}])=>({capability:e,name:t})).sort((e,t)=>e.name<t.name?-1:1);return{key:t.key,features:r,added:o}}(e);if(null===r)return;let{channels:n}=tc(r.key),{text:s,parts:l}=e9(r.features),a=`${r.key}
68
- ${r.features.map(({capability:e})=>e).join(",")}`;n.console&&r.added&&!fg.has(a)&&(fg.add(a),iu(s)),n.ui?function(e,t){let i=e.rootSlotBottomElement;if(!i)return;let o=i.ownerDocument,r=ff(e);r||((r=fp.get(e)??null)?fw(i,r):(fb(e,r=tg(o,fu)),fp.set(e,r)));let n=r.querySelector(`.${fc}`);n?(iX(n),e4(n,t,o)):r.appendChild(tp(o,fu,t,fc))}(e,l):fS(e)}function fy(e,t){!sR(t)||sx(e,t.capability)||(sE(e,t),fC(e),tf(e9([t]).text))}function fS(e){let t=ff(e),i=t?.querySelector(`.${fc}`);if(t&&i&&(i.remove(),null===t.querySelector(`.${fu}_inner`))){let e=t.parentElement;t.remove(),e&&m8(m6.BOTTOM,e)}}let fv=Object.freeze(["xlsx:import","xlsx:export","xlsx:formulas","xlsx:layout","xlsx:number_formats","xlsx:comments","xlsx:styles","xlsx:conditional_formatting","xlsx:data_validation","xlsx:protection"]),fR=Object.freeze(["xlsx:import","xlsx:formulas","xlsx:layout","xlsx:comments","xlsx:styles","xlsx:conditional_formatting","xlsx:data_validation","xlsx:protection"]),fx=Object.freeze(["xlsx:export","xlsx:formulas","xlsx:layout","xlsx:number_formats","xlsx:comments","xlsx:styles","xlsx:conditional_formatting","xlsx:data_validation","xlsx:protection"]),fE=Object.freeze({"xlsx:import":"import","xlsx:export":"export","xlsx:formulas":"formulas","xlsx:layout":"layout","xlsx:number_formats":"numberFormats","xlsx:comments":"comments","xlsx:styles":"styles","xlsx:conditional_formatting":"conditionalFormatting","xlsx:data_validation":"dataValidation","xlsx:protection":"protection"}),fM=Object.freeze({"xlsx:import":Object.freeze(["standard","professional"]),"xlsx:export":Object.freeze(["standard","professional"]),"xlsx:formulas":Object.freeze(["standard","professional"]),"xlsx:layout":Object.freeze(["standard","professional"]),"xlsx:number_formats":Object.freeze(["professional"]),"xlsx:comments":Object.freeze(["professional"]),"xlsx:styles":Object.freeze(["professional"]),"xlsx:conditional_formatting":Object.freeze(["professional"]),"xlsx:data_validation":Object.freeze(["professional"]),"xlsx:protection":Object.freeze(["professional"])}),fk=Object.freeze({import:!0,export:!0,formulas:!0,layout:!0,numberFormats:!0,comments:!0,importReport:!0,styles:!0,conditionalFormatting:!0,dataValidation:!0,protection:!0,missing:Object.freeze([])});function fI(e,t){let i=e.missing.filter(e=>t.includes(e));return i.length===e.missing.length?e:Object.freeze({...e,missing:Object.freeze(i)})}function fT(e,t){return`The xlsx ${e} skipped features your license does not unlock: ${t.join(", ")}.`}let fA=new WeakMap,fH=new Map;function fO(e){let{licenseKey:t}=e.getSettings(),i=fA.get(e);if(i&&i.key===t)return i.state;let o=tc(t,"17/11/2026");return fA.set(e,{key:t,state:o}),o}function fD(e){let{licenseKey:t}=e.getSettings();if("string"!=typeof t)return fk;let i=fH.get(t);return i||(i=function(e,t=fM){if(null==e)return fk;let i={},o=[];return fv.forEach(r=>{let n=(t[r]??[]).some(t=>e.includes(t));i[fE[r]]=n,n||o.push(r)}),Object.freeze({...i,importReport:!0,missing:Object.freeze(o)})}(tc(t).tiers),fH.set(t,i)),i}let fP="ht-license-popover",f_="is-open",fF="is-dismissed",fN="is-corner-hover",fL="is-cornerless";function fB(e){let t=e.view?.getOverlayByName(im),i=t?.clone?.wtTable;return i?.TABLE?{table:i.TABLE,thead:i.THEAD??null}:null}let fV="ht-dialog",fz="licenseLock",fW=`plugin:${fz}`;function f$(e,t,i){let o=e,r=t;if(o<0){if((r+=o)<=0)return null;o=0}return o>=i?null:{start:o,amount:r}}let fU=e=>e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`),fG=e=>{let t=`--ht-icon-${fU(e)}`;return`.ht-icon-${fU(e)} {
67
+ columnEnd/columnPropEnd]]) or as an array of CellRange objects.`);let i=g5(t,{createCellCoords:(...e)=>this.tableProps.createCellCoords(...e),createCellRange:(...e)=>this.tableProps.createCellRange(...e),propToCol:e=>this.tableProps.propToCol(e),keepDirection:!0}),o=this.settings.navigableHeaders,r={countRows:this.tableProps.countRows(),countCols:this.tableProps.countCols(),countRowHeaders:o?this.tableProps.countRowHeaders():0,countColHeaders:o?this.tableProps.countColHeaders():0},n=!e.some(e=>{let t=i(e),o=t.isValid(r);return!(o&&!t.containsHeaders()||o&&t.containsHeaders()&&t.isSingleHeader())});if(n){this.clear(),this.setExpectedLayers(e.length);for(let t=0;t<e.length;t++){let{from:o,to:r}=i(e[t]);if(this.setRangeStartOnly(o.clone(),!1),this.setRangeEnd(r.clone()),this.#t1)return n}this.finish()}return n}selectColumns(e,t=e,i=0){let o="string"==typeof e?this.tableProps.propToCol(e):e,r="string"==typeof t?this.tableProps.propToCol(t):t,n=this.tableProps.countRows(),s=this.tableProps.countCols(),l=this.tableProps.countColHeaders(),a=0===l?0:-l,h=this.tableProps.createCellCoords(a,o),d=this.tableProps.createCellCoords(n-1,r),u=this.tableProps.createCellRange(h,h,d).isValid({countRows:n,countCols:s,countRowHeaders:0,countColHeaders:l});if(u){let e=0,t=0;pt(i)?(e=nB(i.row??0,a,n-1),t=nB(i.col??0,Math.min(o,r),Math.max(o,r))):(e=nB("number"==typeof i?i:0,a,n-1),t=o);let s=this.tableProps.createCellCoords(e,t),h=0===l?0:nB(s.row??0,a,-1),d=this.tableProps.createCellCoords(h,o),c=this.tableProps.createCellCoords(n-1,r);if(this.runLocalHooks("beforeSelectColumns",d,c,s),this.setRangeStartOnly(d,void 0,s),this.selectedByColumnHeader.add(this.getLayerLevel()),this.#sc.add(this.getLayerLevel()),this.setRangeEnd(c),this.#t1)return u;this.runLocalHooks("afterSelectColumns",d,c,s),"mouse"!==this.getSelectionSource()&&this.finish()}return u}selectRows(e,t=e,i=0){let o=this.tableProps.countRows(),r=this.tableProps.countCols(),n=this.tableProps.countRowHeaders(),s=0===n?0:-n,l=this.tableProps.createCellCoords(e,s),a=this.tableProps.createCellCoords(t,r-1),h=this.tableProps.createCellRange(l,l,a).isValid({countRows:o,countCols:r,countRowHeaders:n,countColHeaders:0});if(h){let o=0,l=0;pt(i)?(o=nB(i.row??0,Math.min(e,t),Math.max(e,t)),l=nB(i.col??0,s,r-1)):(o=e,l=nB("number"==typeof i?i:0,s,r-1));let a=this.tableProps.createCellCoords(o,l),d=0===n?0:nB(a.col??0,s,-1),u=this.tableProps.createCellCoords(e,d),c=this.tableProps.createCellCoords(t,r-1);if(this.runLocalHooks("beforeSelectRows",u,c,a),this.setRangeStartOnly(u,void 0,a),this.selectedByRowHeader.add(this.getLayerLevel()),this.#sg.add(this.getLayerLevel()),this.setRangeEnd(c),this.#t1)return h;this.runLocalHooks("afterSelectRows",u,c,a),"mouse"!==this.getSelectionSource()&&this.finish()}return h}importSelection({ranges:e,activeRange:t,activeSelectionLayer:i,selectedByRowHeader:o,selectedByColumnHeader:r,disableHeadersHighlight:n,rowExtentSpansGrid:s=[],columnExtentSpansGrid:l=[]}){0!==e.length&&(this.selectedRange.clear(),this.highlight.clear(),this.inProgress=!1,this.#n9=n,this.selectedByRowHeader=new Set(o),this.selectedByColumnHeader=new Set(r),this.#sc=new Set(s),this.#sg=new Set(l),this.setActiveSelectionLayerIndex(0),e.forEach((e,t)=>{this.selectedRange.push(e),this.applyAndCommit(e,t)}),this.setRangeFocus(t.highlight,i),this.#n9=!1,this.inProgress=!1)}exportSelection(){return{ranges:Array.from(this.selectedRange).map(e=>e.clone()),activeRange:this.getActiveSelectedRange(),activeSelectionLayer:this.getActiveSelectionLayerIndex(),selectedByRowHeader:Array.from(this.selectedByRowHeader),selectedByColumnHeader:Array.from(this.selectedByColumnHeader),disableHeadersHighlight:this.#n9,rowExtentSpansGrid:Array.from(this.#sc),columnExtentSpansGrid:Array.from(this.#sg)}}capturePhysicalSelection(e,t=!0,i=!0){let o=this.getActiveSelectedRange();if(this.#sn[e].push(i&&o?this.#s1(e):po),!t||!this.tableProps.isEditorOpened()||!o)return void this.#sr[e].push(null);let r="row"===e?this.tableProps.rowIndexMapper:this.tableProps.columnIndexMapper,n=this.#sn[e],s=n[n.length-1],l="row"===e?"row":"col",a=[];(this.selectedRange.ranges.forEach((t,i)=>{let o=this.#s2(t,e=>{let t=e.clone();return t[l]=this.#s3(e[l],r),t});if(this.#s6(o,e)){let n=s.has(i);a.push({physical:o,visual:t.clone(),physicalSpan:this.#s4(t,e,r,n),spansAxis:n,originalLayerIndex:i})}}),a.some(({originalLayerIndex:e})=>e===this.#so))?this.#sr[e].push({ranges:a,activeSelectionLayer:this.#so,selectedByRowHeader:new Set(this.selectedByRowHeader),selectedByColumnHeader:new Set(this.selectedByColumnHeader),rowExtentSpansGrid:new Set(this.#sc),columnExtentSpansGrid:new Set(this.#sg),disableHeadersHighlight:this.#n9,selectionSource:this.#se}):this.#sr[e].push(null)}restorePhysicalSelection(e){let t=this.#sr[e],i=t.length>0?t[t.length-1]:null;if(t.length>0&&(t[t.length-1]=null),!i)return;let o=this.tableProps.rowIndexMapper.getNotTrimmedIndexesLength(),r=this.tableProps.columnIndexMapper.getNotTrimmedIndexesLength();if(0===o||0===r)return void this.#s5(e);let n=[];i.ranges.forEach(({physical:t,visual:o,physicalSpan:r,spansAxis:s,originalLayerIndex:l})=>{let a=this.#s8(t,o,r,s,l,e,i);a&&n.push({range:a,originalLayerIndex:l})});let s=n.findIndex(({originalLayerIndex:e})=>e===i.activeSelectionLayer);0===n.length||-1===s?this.#s5(e):(this.selectedRange.ranges=n.map(({range:e})=>e),this.#so=s,this.selectedByRowHeader=this.#s7(i.selectedByRowHeader,n),this.selectedByColumnHeader=this.#s7(i.selectedByColumnHeader,n),this.#sc=this.#s7(i.rowExtentSpansGrid,n),this.#sg=this.#s7(i.columnExtentSpansGrid,n),this.#s9(e,n),this.#n9=i.disableHeadersHighlight,this.#se=i.selectionSource,this.#n5.setActiveLayerIndex(this.#so),this.#n8.setActiveLayerIndex(this.#so),this.commitHighlightsDirectly())}#s9(e,t){let i=this.#sn[e];i.length>0&&(i[i.length-1]=this.#s7(i[i.length-1],t))}commitHighlightsDirectly(){this.highlight.clear(),this.selectedRange.ranges.forEach((e,t)=>this.applyAndCommit(e,t));let e=this.getActiveSelectedRange();this.highlight.useLayerLevel(this.#so),this.highlight.getFocus().clear(),e&&this.highlight.isEnabledFor("focus",e.highlight)&&this.highlight.getFocus().add(e.highlight).commit().syncWith(e)}#s5(e){this.clear(),this.selectedByRowHeader.clear(),this.selectedByColumnHeader.clear(),this.inProgress=!1,this.#sa=e}notifyDeferredDeselect(e){this.#sa===e&&(this.#sa=null,this.isSelected()||this.runLocalHooks("afterDeselect"))}discardPhysicalSelectionSnapshot(e){this.#sr[e].pop(),this.#sn[e].pop()}fitGridTrackingExtents(e){let t=this.#sn[e],i=t.length>0?t[t.length-1]:null;if(i&&0!==i.size&&this.isSelected()){if(this.#le())return void i.forEach(t=>this.#ss[e].add(t));this.#lt(e,i)&&this.#li()}}suspendGridTrackingFits(){this.#sl+=1}resumeGridTrackingFits(e=!0){(this.#sl=Math.max(0,this.#sl-1),e)?this.#sP():this.#sD()}#le(){return this.#sp.length>0||this.#sl>0}#sP(){if(this.#le())return;let{row:e,column:t}=this.#ss;if(0===e.size&&0===t.size)return;let i=new Set(e),o=new Set(t);if(this.#sD(),!this.isSelected())return;let r=this.#lt("row",i),n=this.#lt("column",o);(r||n)&&this.#li()}#sD(){this.#ss.row.clear(),this.#ss.column.clear()}#lt(e,t){if(0===t.size)return!1;let i="row"===e?this.tableProps.rowIndexMapper:this.tableProps.columnIndexMapper,o="row"===e?this.#sc:this.#sg,r="row"===e?"row":"col",n="row"===e?this.settings.maxRows:this.settings.maxCols,s=Math.min(i.getNotTrimmedIndexesLength(),n??1/0)-1,l=!1;return!(s<0)&&(this.selectedRange.ranges.forEach((e,i)=>{t.has(i)&&o.has(i)&&e.to[r]!==s&&(e.to[r]=s,l=!0)}),l)}#li(){this.tableProps.isEditorOpened()?this.commitHighlightsDirectly():this.#s0()}#s0(){let e="unknown"===this.getSelectionSource();e&&this.markSource("shift");try{this.refresh()}finally{e&&this.markEndSource()}}refresh(){if(!this.isSelected())return;let e=this.tableProps.countRows(),t=this.tableProps.countCols();if(0===e||0===t)return void this.deselect();let i=this.selectedRange.ranges.map(e=>e.clone());"unknown"===this.getSelectionSource()&&this.markSource("refresh");let o=new Set(this.selectedByRowHeader),r=new Set(this.selectedByColumnHeader),n=new Set(this.#sc),s=new Set(this.#sg);this.clear(),this.setExpectedLayers(i.length),i.forEach(i=>{let{from:o,to:r,highlight:n}=i,s=e-1,l=t-1;n.assign({row:nB(n.row??0,this.settings.navigableHeaders?-1/0:0,s),col:nB(n.col??0,this.settings.navigableHeaders?-1/0:0,l)}),o.assign({row:nB(o.row??0,-1/0,s),col:nB(o.col??0,-1/0,l)}),r.assign({row:nB(r.row??0,-1/0,s),col:nB(r.col??0,-1/0,l)}),this.setRangeStartOnly(o,!0,n),this.setRangeEnd(r)}),this.selectedByRowHeader=o,this.selectedByColumnHeader=r,this.#sc=n,this.#sg=s,this.finish(),this.markEndSource()}#s2(e,t){return this.tableProps.createCellRange(t(e.highlight),t(e.from),t(e.to))}#s3(e,t){return null===e||e<0?e:t.getPhysicalFromVisualIndex(e)}#s1(e){let t=("row"===e?this.tableProps.rowIndexMapper:this.tableProps.columnIndexMapper).getNotTrimmedIndexesLength(),i=new Set;return this.selectedRange.ranges.forEach((o,r)=>{this.#lo(o,r,e,t)&&i.add(r)}),i}#lo(e,t,i,o){let r="row"===i?this.#sc:this.#sg,n="row"===i?"row":"col",s=e.from[n],l=e.to[n];return r.has(t)&&(s??0)<=0&&(l??-1)>=o-1}#s6(e,t){let i="row"===t?"row":"col";return[e.highlight,e.from,e.to].every(e=>null!==e[i])}#s4(e,t,i,o){let r="row"===t?"row":"col",n=e.from[r],s=e.to[r];if(o||null===n||null===s)return[];let l=s>=n?1:-1,a=[];for(let e=n;l>0?e<=s:e>=s;e+=l){let t=this.#s3(e,i);null!==t&&t>=0&&a.push(t)}return a}#lr(e,t,i){let o="row"===t?this.tableProps.rowIndexMapper:this.tableProps.columnIndexMapper;for(let t=0;t<e.length;t++){let r=e[i?t:e.length-1-t],n=o.getVisualFromPhysicalIndex(r);if(null!==n)return n}return null}#ln(e,t){return null!==e&&e<0?e:null===e?null:t.getVisualFromPhysicalIndex(e)}#ls(e,t,i,o,r=null){let n="row"===i?this.tableProps.rowIndexMapper:this.tableProps.columnIndexMapper,s="row"===i?"row":"col",l=o??this.#ln(e[s],n)??r;if(null===l)return null;let a=t.clone();return a[s]=l,a}#s8(e,t,i,o,r,n,s){let l,a,h="row"===n?"row":"col",d=r===s.activeSelectionLayer,u=("row"===n?this.tableProps.rowIndexMapper:this.tableProps.columnIndexMapper).getNotTrimmedIndexesLength();if(o){let e=t.from[h];l=null!==e&&e<0?e:0,a=u-1}let c=this.#lr(i,n,!0),g=this.#lr(i,n,!1),p=t.highlight[h],m=null!==p&&p>=0&&p<u,f=null;null===c&&(o?f=nB(p??0,0,u-1):d&&m&&(f=p));let w=this.#ls(e.highlight,t.highlight,n,void 0,d||o?c??f:null),b=this.#ls(e.from,t.from,n,l,c??f),C=this.#ls(e.to,t.to,n,a,g??f);if(!w||!b||!C)return null;if(this.#ll(b,C,i,o,n)){if(!d)return null;let i=this.#ls(e.highlight,t.highlight,n,void 0,c??f);return i?this.tableProps.createCellRange(i,i.clone(),i.clone()):null}return this.tableProps.createCellRange(w,b,C)}#ll(e,t,i,o,r){if(o||0===i.length)return!1;let n="row"===r?"row":"col",s=e[n],l=t[n];if(null===s||null===l)return!1;let a="row"===r?this.tableProps.rowIndexMapper:this.tableProps.columnIndexMapper,h=new Set(i),d=Math.min(s,l),u=Math.max(s,l);for(let e=Math.max(d,0);e<=u;e++){let t=this.#s3(e,a);if(null!==t&&t>=0&&!h.has(t))return!0}return!1}#s7(e,t){let i=new Set;return t.forEach(({originalLayerIndex:t},o)=>{e.has(t)&&i.add(o)}),i}commit(){if(this.highlight.getCustomSelections().forEach(e=>{e.commit()}),!this.isSelected())return;let e=this.getLayerLevel(),t=this.getActiveSelectedRange();t&&this.highlight.isEnabledFor("focus",t.highlight)&&this.highlight.getFocus().commit().syncWith(t);for(let e=0;e<this.selectedRange.size();e+=1){this.highlight.useLayerLevel(e);let t=this.highlight.createArea(),i=this.highlight.createLayeredArea(),o=this.highlight.createRowHeader(),r=this.highlight.createColumnHeader(),n=this.highlight.createActiveRowHeader(),s=this.highlight.createActiveColumnHeader(),l=this.highlight.createActiveCornerHeader(),a=this.highlight.createRowHighlight(),h=this.highlight.createColumnHighlight();t?.commit(),i?.commit(),o?.commit(),r?.commit(),n?.commit(),s?.commit(),l?.commit(),a?.commit(),h?.commit()}this.highlight.useLayerLevel(e)}}tR(pr,dp);let pn=new WeakMap,ps="_typeEditorRequested";function pl(e,t,i=e,o=!1,r){let n="string"==typeof t.type?sp(t.type):t.type;if(e._automaticallyAssignedMetaProps&&tT(t,(t,i)=>{e._automaticallyAssignedMetaProps.delete(i)}),t_(t,"editor")&&pn.delete(e),!tM(n))return;i!==e||e._automaticallyAssignedMetaProps||(e._automaticallyAssignedMetaProps=new Set);let s={},l=!(o||t_(e,ps)&&!0===e[ps])&&function(e){if(!1!==e.editor)return!1;let t=function(e,t){let i=e;for(;i&&!t_(i,t);)i=Object.getPrototypeOf(i);return i}(e,"editor");return null!==t&&!(pn.has(t)&&pn.get(t)===t.editor)}(e);tT(n,(t,o)=>{("editor"!==o||!l)&&"CELL_TYPE"!==o&&(i._automaticallyAssignedMetaProps?.has(o)||!t_(i,o))&&(s[o]=t,e._automaticallyAssignedMetaProps?.add(o),r?.set(o,t),"editor"===o&&pn.set(e,t))}),tC(e,s)}function pa(e,t){e()||tf(`Assertion failed: ${t}`)}function ph(e){if(!0!==e.editor)return e;let t={...e};return delete t.editor,t}function pd(e,t,i,o){if(t_(e,t)||!o||!i||"string"!=typeof t||-1===t.indexOf("."))return e[t];let r=e;for(let e of t.split(".")){if(null==r)return;r=r[e]}return r}function pu(e,t,i){return"object"==typeof e?tx(t,e):i&&t===e}function pc(e,t,i){if("function"==typeof t)return t(e.toPhysicalRow(i))}let pg=()=>({_automaticallyAssignedMetaProps:void 0,_userDefinedMetaProps:void 0,_cellOptionMetaProps:void 0,_persistedMetaProps:void 0,activeHeaderClassName:"ht__active_highlight",allowEmpty:!0,allowHtml:!1,allowInsertColumn:!0,allowInsertRow:!0,allowInvalid:!0,allowRemoveColumn:!0,allowRemoveRow:!0,ariaTags:!0,asyncValues:!1,autoLink:!1,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,currentColClassName:void 0,currentHeaderClassName:"ht__highlight",currentRowClassName:void 0,customBorders:!1,customBordersProgressive:!1,data:void 0,dataProvider:void 0,dataDotNotation:!0,dataSchema:void 0,rowId:void 0,dateFormat:{year:"numeric",month:"2-digit",day:"2-digit"},timeFormat:{hour:"2-digit",minute:"2-digit"},dateTimeFormat:{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1},defaultDate:void 0,disableVisualSelection:!1,dialog:!1,dragToScroll:!0,dropdownMenu:void 0,editor:void 0,emptyDataState:!1,enterBeginsEditing:!0,enterCommits:!0,enterMoves:{col:0,row:1},exportFile:void 0,importFile:void 0,fillHandle:{autoInsertRow:!1},filter:!0,filterValueComparator:void 0,filteringCaseSensitive:!1,filters:void 0,filterSelectedItems:!0,fixedColumnsEnd:0,fixedColumnsLeft:0,fixedColumnsStart:0,fixedRowsBottom:0,fixedRowsTop:0,formulaBuilder:void 0,formulas:void 0,fragmentSelection:!1,hashLength:void 0,hashRevealDelay:void 0,hashSymbol:"*",headerClassName:void 0,headerCheckbox:void 0,height:void 0,hiddenColumns:void 0,hiddenRows:void 0,initialState:void 0,invalidCellClassName:"htInvalid",imeFastEdit:!1,isEmptyCol(e){let t,i,{dataSchema:o,dataDotNotation:r}=this.getSettings(),n=!!o,s=this.getSchema(),l=this.colToProp(e),a=this.countRows(),h="function"==typeof o,d=null===l?void 0:pd(s,l,r,n);for(t=0;t<a;t++)if(!1===ej(i=this.getDataAtCell(t,e))&&(h&&null!==l&&(d=pd(pc(this,o,t),l,r,n)),!pu(i,d,n)))return!1;return!0},isEmptyRow(e){let t,i,{dataSchema:o,dataDotNotation:r}=this.getSettings(),n=!!o,s=pc(this,o,e)??this.getSchema(),l=this.countCols();for(t=0;t<l;t++)if(!1===ej(i=this.getDataAtCell(e,t))){let e=this.colToProp(t);if(!pu(i,null===e?void 0:pd(s,e,r,n),n))return!1}return!0},label:void 0,language:"en-US",layoutDirection:"inherit",layout:void 0,licenseKey:void 0,limitFixedToViewport:!1,locale:"en-US",loading:!1,notification:!1,freezeBar:void 0,manualColumnFreeze:void 0,manualColumnMove:void 0,manualColumnResize:void 0,manualRowMove:void 0,manualRowResize:void 0,maxCols:1/0,maxLength:1/0,maxRows:1/0,maxSelections:void 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,preserveNumericLiteral:!1,observeDOMVisibility:!0,outsideClickDeselects:!0,pagination:void 0,placeholder:void 0,placeholderCellClassName:"htPlaceholder",preserveTextValue:!1,preventOverflow:!1,preventWheel:!1,readOnly:!1,readOnlyCellClassName:"htDimmed",readOnlyStyling:!0,renderAllRows:!1,renderMode:"always",renderAllColumns:!1,renderer:void 0,valueFormatter:void 0,valueParser:void 0,rowHeaders:void 0,rowHeaderWidth:void 0,autoRowHeaderSize:void 0,rowHeights:void 0,rowSelection:void 0,search:!1,searchInput:!0,selectionMode:"multiple",selectionHandles:!1,sheetsBar:void 0,moveCells:!1,selectOptions:void 0,skipColumnOnPaste:!1,skipRowOnPaste:!1,sortByRelevance:!0,sourceSortFunction:void 0,source:void 0,sourceLabel:void 0,startCols:5,startRows:5,stretchH:"none",strict:void 0,tableClassName:void 0,textEllipsis:!1,themeName:void 0,theme:void 0,colorScheme:void 0,density:void 0,injectCoreCss:!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,sourceDataValidator:void 0,sourceDataWarningMessage:void 0,valueGetter:void 0,valueSetter:void 0,emptyValue:"",viewportColumnRenderingOffset:"auto",viewportRowRenderingOffset:"auto",viewportColumnRenderingThreshold:0,viewportRowRenderingThreshold:0,visibleRows:10,width:void 0,wordWrap:!0,sanitizer:void 0,textExtractor:void 0,parsePastedValue:!1});class pp{metaCtor=class{};#la=new Set;#lh=new Map;#ld=null;#lu;#lc=new Set;constructor(e){this.meta=this.metaCtor.prototype,tC(this.meta,pg()),this.meta.instance=e}getMetaConstructor(){return this.metaCtor}getMeta(){return this.meta}updateMeta(e){let t=ph(e);tC(this.meta,t),Object.keys(t).forEach(e=>{this.#la.add(e),void 0===t[e]&&this.#lc.add(e)});let i=t.type??this.meta.type;this.#ld=this.#lg(i)??this.#ld,this.#lu=null===this.#ld?this.#lu:i,pl(this.meta,{...t,type:i},t,!0===e.editor,this.#lh)}updateTypeFromSettings(e){var t;let i,o=this.#ld,r=null!==o&&Object.keys(e).some(t=>this.#lp(t,e[t])&&t_(o,t)),n=("string"==typeof e.type||tM(e.type))&&null!==this.#lg(e.type);t_(e,"type")&&!n&&"string"==typeof e.type&&(this.meta.type=this.#lu);let s=null;if(n?s=this.#lg(e.type):r&&(s=this.#lg(this.meta.type)??o),this.#lm(e,n),null===s)return!1;let l=s!==o;l&&this.#lf();let a={};return this.#la.forEach(e=>{a[e]=!0}),this.#ld=s,this.#lu=n?e.type:this.#lu,pl(this.meta,{type:s},a,!0===e.editor,this.#lh),l&&!(null!==o&&(i=Object.keys(t=s)).length===Object.keys(o).length&&i.every(e=>t_(o,e)&&t[e]===o[e]))}#lm(e,t){Object.keys(e).forEach(i=>{"editor"===i&&!0===e[i]?t&&this.#la.delete(i):this.#lp(i,e[i])?this.#la.delete(i):this.#la.add(i)})}#lp(e,t){return void 0===t&&!this.#lc.has(e)}#lg(e){if("string"==typeof e&&!su(e))return null;let t="string"==typeof e?sp(e):e;return tM(t)?t:null}#lf(){let e=pg();this.#lh.forEach((t,i)=>{this.#la.has(i)||this.meta[i]!==t&&void 0!==this.meta[i]||(t_(e,i)?this.meta[i]=e[i]:Reflect.deleteProperty(this.meta,i))}),this.#lh.clear()}}class pm{constructor(e){const t=e.getMetaConstructor();this.meta=new t}getMeta(){return this.meta}updateMeta(e){let t=ph(e);tC(this.meta,t),pl(this.meta,t,t,!0===e.editor)}}function pf(e){n$(e)||null==e||tf("Assertion failed: Expecting an unsigned number or null/undefined argument.")}class pw{#lw=new Map;#ns=0;#lb=[];#lC=0;#ly=-1;#lS=!0;#lv=!1;constructor(e){this.valueFactory=e}obtain(e){n$(e)||tf("Assertion failed: Expecting an unsigned number.");let t=e;this.#lb.length>0&&-1===(t=this.#lR(e))&&(this.#lx(),t=e);let i=this.#lw.get(t);if(void 0===i){i=this.valueFactory(e),this.#lw.set(t,i),e>=this.#ns&&(this.#ns=e+1);let o=t>e?t:e;o>=this.#lC&&(this.#lC=o+1),t>this.#ly?this.#ly=t:this.#lS=!1}return i}has(e){return void 0!==this.getIfExists(e)}insert(e,t=1){pf(e);let i=null==e?this.#ns:e;this.#ns+=t,i>=this.#lC||(this.#lC+=t,this.#lE({start:i,amount:t,isInsert:!0}))}remove(e,t=1){let i;if(pf(e),null==e){let e=this.#ns-t;i=e<0?Math.max(this.#ns+e,0):e}else i=e;let o=Math.max(Math.min(this.#ns-i,t),0),r=i>=this.#lC;this.#ns-=o,this.#lC>this.#ns&&(this.#lC=this.#ns),r||this.#lE({start:i,amount:t,isInsert:!1})}size(){return this.#lb.length>0&&this.#lx(),this.#lw.size}values(){return this.#lb.length>0&&this.#lx(),this.#lv=!0,this.#lw.values()}entries(){return this.#lb.length>0&&this.#lx(),this.#lv=!0,this.#lw.entries()}evict(e){if(this.#lb.length>0){let t=this.#lR(e);-1!==t&&this.#lw.delete(t);return}this.#lw.delete(e)}getIfExists(e){if(this.#lb.length>0){let t=this.#lR(e);return -1===t?void 0:this.#lw.get(t)}return this.#lw.get(e)}clear(){this.#lw.clear(),this.#lb=[],this.#ns=0,this.#lC=0,this.#ly=-1,this.#lS=!0,this.#lv=!1}#lE(e){let t=this.#lb,i=t.length>0?t[t.length-1]:void 0;!(void 0!==i&&i.isInsert===e.isInsert&&this.#lM(i,e))&&(t.push(e),t.length>=1024&&this.#lx())}#lM(e,t){return t.isInsert?t.start>=e.start&&t.start<=e.start+e.amount&&(e.amount+=t.amount,!0):t.start===e.start?(e.amount+=t.amount,!0):t.start+t.amount===e.start&&(e.start=t.start,e.amount+=t.amount,!0)}#lR(e){let t=this.#lb,i=e;for(let e=t.length-1;e>=0;e--){let{start:o,amount:r,isInsert:n}=t[e];if(n){if(i>=o+r)i-=r;else if(i>=o)return -1}else i>=o&&(i+=r)}return i}#lx(){let e=this.#lb;if(this.#lb=[],1===e.length&&!e[0].isInsert&&!this.#lv&&this.#lS&&this.#ly===this.#lw.size-1)return void this.#lk(e[0].start,e[0].amount);let t=Array(e.length),i=1/0;for(let o=e.length-1;o>=0;o--)e[o].start<i&&(i=e[o].start),t[o]=i;let o=!1;for(let e of this.#lw.keys())if(e>=i){o=!0;break}if(!o)return;let r=new Map,n=-1,s=!0,l=-1;for(let[i,o]of this.#lw){let a=this.#lI(i,e,t);-1!==a&&(r.set(a,o),a>n&&(n=a),a<=l&&(s=!1),l=a)}this.#lw=r,this.#lv=!1,this.#lC=n+1,this.#ly=n,this.#lS=s}#lk(e,t){let i=this.#lw,o=i.size,r=Math.max(o-t,e);for(let o=e;o<r;o++)i.set(o,i.get(o+t));for(let e=r;e<o;e++)i.delete(e);this.#ly=r-1,this.#lC=r}#lI(e,t,i){let o=e;for(let e=0;e<t.length&&!(o<i[e]);e++){let{start:i,amount:r,isInsert:n}=t[e];if(n)o>=i&&(o+=r);else if(o>=i+r)o-=r;else if(o>=i)return -1}return o}[Symbol.iterator](){return this.entries()}}let pb=["data","width"];class pC{metas=new pw(()=>this._createMeta());constructor(e){this.globalMeta=e,this.metas=new pw(()=>this._createMeta())}updateMeta(e,t){let i=this.getMeta(e),o=ph(t);tC(i,o),pl(i,o,i,!0===t.editor)}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 function(e,t=[]){function i(){}tb(i,e);for(let e=0;e<t.length;e++)i.prototype[t[e]]=void 0;return i}(this.globalMeta.getMetaConstructor(),pb).prototype}}let py=new WeakMap;function pS(e,t){let i=py.get(e);return void 0===i||"string"!=typeof t?t:iW(t).filter(e=>!i.includes(e)).join(" ")}function pv(e){return t_(e,"valid")&&!1===e.valid}let pR=Object.freeze({hadOwn:!1,value:void 0,origin:"none"});function px(e,t){let i=e[t];return i instanceof Set?i:void 0}function pE(e,t){let i=e[t];return"className"===t?pS(e,i):i}function pM(e,t){return px(e,"_userDefinedMetaProps")?.has(t)?"user":px(e,"_cellOptionMetaProps")?.has(t)?"cellOption":"none"}class pk{metas=new pw(()=>this._createRow());#lT=0;#lA=0;constructor(e){this.columnMeta=e}enableUserDefinedMetaRecording(){this.#lT>0&&(this.#lT-=1)}disableUserDefinedMetaRecording(){this.#lT+=1}isUserDefinedMetaRecording(){return 0===this.#lT}startCellOptionMetaRecording(){this.#lA+=1,this.disableUserDefinedMetaRecording()}isRecordingCellOptionMeta(){return this.#lA>0}endCellOptionMetaRecording(){0!==this.#lA&&(this.#lA-=1,this.enableUserDefinedMetaRecording())}updateMeta(e,t,i){o1(this.extendMeta(e,t,i))}extendMeta(e,t,i){let o=this.getMeta(e,t),r=ph(i),n=!1;tT(r,(e,t)=>{o[t]!==e&&(n=!0)});let s=o.editor;return tC(o,r),pl(o,r,o,!0===i.editor),o.editor!==s&&(n=!0),n&&o1(o),o}createRow(e,t){this.metas.insert(e,t)}createColumn(e,t){for(let[,i]of this.metas)i.insert(e,t)}removeRow(e,t){this.metas.remove(e,t)}removeColumn(e,t){for(let[,i]of this.metas)i.remove(e,t)}getMeta(e,t,i){let o=this.metas.obtain(e).obtain(t);return void 0===i?o:o[i]}hasMeta(e,t){return this.metas.has(e)&&this.metas.obtain(e).has(t)}getMetaIfExists(e,t){return this.metas.getIfExists(e)?.getIfExists(t)}createTransientMeta(e){return this._createMeta(e)}setMeta(e,t,i,o){let r=this.metas.obtain(e).obtain(t);if(o1(r),"editor"===i&&!0===o){delete r[i],r._persistedMetaProps?.delete(i),r._userDefinedMetaProps?.delete(i),r._cellOptionMetaProps?.delete(i),this.setMeta(e,t,ps,!0);return}"editor"===i&&this.removeMeta(e,t,ps),r._automaticallyAssignedMetaProps?.delete(i),r[i]=o,"className"===i&&function(e,t){let i=py.get(e);if(void 0===i)return;let o="string"==typeof t||Array.isArray(t)?iW(t):[],r=i.filter(e=>!o.includes(e));0===r.length?py.delete(e):py.set(e,r)}(r,o),void 0===r._persistedMetaProps&&(r._persistedMetaProps=new Set),r._persistedMetaProps.add(i);let n=this.#lA>0&&this.#lT===this.#lA;0===this.#lT?(void 0===r._userDefinedMetaProps&&(r._userDefinedMetaProps=new Set),r._userDefinedMetaProps.add(i),r._cellOptionMetaProps?.delete(i)):n?(void 0===r._cellOptionMetaProps&&(r._cellOptionMetaProps=new Set),r._cellOptionMetaProps.add(i),r._userDefinedMetaProps?.delete(i)):(r._userDefinedMetaProps?.delete(i),r._cellOptionMetaProps?.delete(i))}removeMeta(e,t,i){let o=this.metas.getIfExists(e)?.getIfExists(t);void 0!==o&&(delete o[i],o._userDefinedMetaProps?.delete(i),o._cellOptionMetaProps?.delete(i),o._persistedMetaProps?.delete(i),o1(o),"editor"===i&&this.removeMeta(e,t,ps),i===ps&&t_(o,"editor")&&!px(o,"_persistedMetaProps")?.has("editor")&&delete o.editor)}getMetaKeyState(e,t,i){let o=this.metas.getIfExists(e)?.getIfExists(t);return void 0!==o&&px(o,"_persistedMetaProps")?.has(i)&&t_(o,i)?{hadOwn:!0,value:pE(o,i),origin:pM(o,i)}:pR}applyMetaKeyState(e,t,i,o){if(!o.hadOwn)return void this.removeMeta(e,t,i);if("cellOption"===o.origin){this.startCellOptionMetaRecording();try{this.setMeta(e,t,i,o.value)}finally{this.endCellOptionMetaRecording()}}else if("none"===o.origin){this.disableUserDefinedMetaRecording();try{this.setMeta(e,t,i,o.value)}finally{this.enableUserDefinedMetaRecording()}}else this.setMeta(e,t,i,o.value)}captureRowMetaKeyStates(e,t){let i=this.metas.getIfExists(e);if(void 0!==i)for(let[o,r]of i)this.#lH(e,o,r,t)}captureColumnMetaKeyStates(e,t){for(let[i,o]of this.metas){let r=o.getIfExists(e);void 0!==r&&this.#lH(i,e,r,t)}}getMetas(){let e=[],t=Array.from(this.metas.values());for(let i=0;i<t.length;i++)eU(t[i])&&e.push(...Array.from(t[i].values()));return e}getMetasAtRow(e){pa(()=>n$(e),"Expecting an unsigned number.");let t=this.metas.getIfExists(e);return void 0===t?[]:Array.from(t).sort(([e],[t])=>e-t).map(([,e])=>e)}getMetasAtRowWithPhysicalColumns(e){pa(()=>n$(e),"Expecting an unsigned number.");let t=this.metas.getIfExists(e);return void 0===t?[]:Array.from(t).sort(([e],[t])=>e-t).map(([e,t])=>({physicalColumn:e,meta:t}))}getUserDefinedMetas(){return this.#lO("_userDefinedMetaProps")}getCellOptionMetas(){return this.#lO("_cellOptionMetaProps")}#lH(e,t,i,o){let r=px(i,"_persistedMetaProps");r?.forEach(r=>{let n=pM(i,r);if("none"!==n&&t_(i,r)){let s=pE(i,r);o.push({physicalRow:e,physicalColumn:t,key:r,state:{hadOwn:!0,value:s,origin:n}})}})}#lO(e){let t=[];for(let[i,o]of this.metas)for(let[r,n]of o){let o=n[e];void 0!==o&&o.forEach(e=>{t_(n,e)&&t.push({physicalRow:i,physicalColumn:r,key:e,value:pE(n,e)})})}return t}getInvalidMetas(){let e=[];for(let[t,i]of this.metas)for(let[o,r]of i)pv(r)&&e.push({physicalRow:t,physicalColumn:o});return e}restoreInvalidMetas(e){e.forEach(({physicalRow:e,physicalColumn:t})=>{let i=this.getMeta(e,t);i.valid=!1,o1(i)})}evictRow(e){let t=this.metas.getIfExists(e);if(void 0===t)return[];let i=!1,o=[];for(let[e,r]of t){let n=px(r,"_persistedMetaProps"),s=void 0!==n&&n.size>0,l=pv(r);s||l?i=!0:(t.evict(e),o.push(e))}return i||this.metas.evict(e),o}clearCache(){this.metas.clear()}_createRow(){return new pw(e=>this._createMeta(e))}_createMeta(e){return new(this.columnMeta.getMetaConstructor(e))}}let pI="The `fixedColumnsLeft` is not supported for RTL. Please use option `fixedColumnsStart`.";function pT(e,t){return t_(e,"fixedColumnsLeft")?(t_(e,"fixedColumnsStart")&&tf("The `fixedColumnsLeft` and `fixedColumnsStart` should not be used together. Please use only the option `fixedColumnsStart`."),t&&tf(pI),pA(e)):e}function pA(e){if(!t_(e,"fixedColumnsLeft"))return e;let{fixedColumnsLeft:t,...i}=e;return{...i,fixedColumnsStart:t_(i,"fixedColumnsStart")?i.fixedColumnsStart:t}}function pH(e,t){if(!t_(t,"fixedColumnsLeft")||!t_(e,"fixedColumnsStart"))return e;let{fixedColumnsStart:i,...o}=e;return{...o,fixedColumnsLeft:i}}function pO(e){tf(`The \`${e}\` option can not be updated after the Handsontable is initialized.`)}class pD{metaManager;usageTracker=new Set;propDescriptors=new Map([["ariaTags",{initOnly:!0}],["fixedColumnsLeft",{target:"fixedColumnsStart",onChange(e){this.metaManager.hot.isRtl()&&"fixedColumnsLeft"===e&&tf(pI)}}],["layoutDirection",{initOnly:!0}],["renderAllColumns",{initOnly:!0}],["renderAllRows",{initOnly:!0}]]);constructor(e){this.metaManager=e,this.extendMetaProps()}#lD=(e,t,i)=>{i||pO(e)};extendMetaProps(){this.propDescriptors.forEach((e,t)=>{let{initOnly:i,target:o,onChange:r}=e,n="string"==typeof o,s=n?o:t,l=`_${s}`;this.metaManager.globalMeta.meta[l]=this.metaManager.globalMeta.meta[s],r?(this.installPropWatcher(t,l,r),n&&this.installPropWatcher(o,l,r)):i&&(this.installPropWatcher(t,l,this.#lD),this.metaManager.globalMeta.meta._initOnlySettings||(this.metaManager.globalMeta.meta._initOnlySettings=[]),this.metaManager.globalMeta.meta._initOnlySettings.push(t))})}installPropWatcher(e,t,i){let{usageTracker:o}=this,r=i.bind(this),n=()=>this.metaManager.isInitialized();Object.defineProperty(this.metaManager.globalMeta.meta,e,{get(){return this[t]},set(i){let s=!n()&&!o.has(e);o.add(e),r(e,i,s),this[t]=i},enumerable:!0,configurable:!0})}}class pP{#lP=0;#l_=!1;constructor(e,t={},i=[]){this.hot=e,this.globalMeta=new pp(e),this.tableMeta=new pm(this.globalMeta),this.columnMeta=new pC(this.globalMeta),this.cellMeta=new pk(this.columnMeta),i.forEach(e=>new e(this)),this.globalMeta.updateMeta(t)}finishInitialization(){this.#l_=!0}isInitialized(){return this.#l_}assertNoInitOnlyUpdates(e){this.#l_&&(this.globalMeta.getMeta()._initOnlySettings??[]).forEach(t=>{t_(e,t)&&pO(t)})}getGlobalMeta(){return this.globalMeta.getMeta()}updateGlobalMeta(e){this.globalMeta.updateMeta(e)}updateGlobalTypeFromSettings(e){return this.globalMeta.updateTypeFromSettings(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,i){let o=this.cellMeta.getMeta(e,t);return o.visualRow=i.visualRow,o.visualCol=i.visualColumn,o.row=e,o.col=t,i.skipMetaExtension||this.runLocalHooks("afterGetCellMeta",o),o}getCellMetaUncached(e,t,i){let o=this.cellMeta.getMetaIfExists(e,t)??this.cellMeta.createTransientMeta(t);return o.visualRow=i.visualRow,o.visualCol=i.visualColumn,o.row=e,o.col=t,o}createTransientColumnMeta(e){return this.cellMeta.createTransientMeta(e)}getCellMetaTransient(e,t,i){let o=this.cellMeta.getMetaIfExists(e,t);if(void 0!==o)return o.visualRow=i.visualRow,o.visualCol=i.visualColumn,o.row=e,o.col=t,this.runLocalHooks("afterGetCellMeta",o),o;let r=this.cellMeta.createTransientMeta(t);return r.visualRow=i.visualRow,r.visualCol=i.visualColumn,r.row=e,r.col=t,this.runLocalHooks("extendTransientCellMeta",r),r}getCellMetaKeyValue(e,t,i){return"string"!=typeof i&&tf("The passed cell meta object key is not a string"),this.cellMeta.getMeta(e,t,i)}setCellMeta(e,t,i,o){this.cellMeta.setMeta(e,t,i,o)}updateCellMeta(e,t,i){this.cellMeta.updateMeta(e,t,i)}extendCellMeta(e,t,i){this.cellMeta.extendMeta(e,t,i)}removeCellMeta(e,t,i){this.cellMeta.removeMeta(e,t,i)}getCellMetaKeyState(e,t,i){return this.cellMeta.getMetaKeyState(e,t,i)}applyCellMetaKeyState(e,t,i,o){this.cellMeta.applyMetaKeyState(e,t,i,o)}isUserDefinedMetaRecording(){return this.cellMeta.isUserDefinedMetaRecording()}captureRowMetaKeyStates(e,t){this.cellMeta.captureRowMetaKeyStates(e,t)}captureColumnMetaKeyStates(e,t){this.cellMeta.captureColumnMetaKeyStates(e,t)}getCellsMeta(){return this.cellMeta.getMetas()}getCellsMetaAtRow(e){return this.cellMeta.getMetasAtRow(e)}getCellsMetaAtRowWithPhysicalColumns(e){return this.cellMeta.getMetasAtRowWithPhysicalColumns(e)}getUserDefinedCellMetas(){return this.cellMeta.getUserDefinedMetas()}getCellMetaIfExists(e,t){return this.cellMeta.getMetaIfExists(e,t)}getStructureVersion(){return this.#lP}getInvalidCellMetas(){return this.cellMeta.getInvalidMetas()}restoreInvalidCellMetas(e){this.cellMeta.restoreInvalidMetas(e)}getCellOptionCellMetas(){return this.cellMeta.getCellOptionMetas()}enableUserDefinedMetaRecording(){this.cellMeta.enableUserDefinedMetaRecording()}disableUserDefinedMetaRecording(){this.cellMeta.disableUserDefinedMetaRecording()}startCellOptionMetaRecording(){this.cellMeta.startCellOptionMetaRecording()}endCellOptionMetaRecording(){this.cellMeta.endCellOptionMetaRecording()}isRecordingCellOptionMeta(){return this.cellMeta.isRecordingCellOptionMeta()}createRow(e,t=1){this.#lP+=1,this.cellMeta.createRow(e,t)}removeRow(e,t=1){this.#lP+=1,this.cellMeta.removeRow(e,t)}createColumn(e,t=1){this.#lP+=1,this.cellMeta.createColumn(e,t),this.columnMeta.createColumn(e,t)}removeColumn(e,t=1){this.#lP+=1,this.cellMeta.removeColumn(e,t),this.columnMeta.removeColumn(e,t)}invalidateMetaExtensions(){this.runLocalHooks("invalidateMetaExtensions")}clearCellsCache(){this.#lP+=1,this.cellMeta.clearCache()}clearCache(){this.cellMeta.clearCache(),this.columnMeta.clearCache()}}tR(pP,dp);class p_{metaSyncMemo=new Map;#lF=0;#lN=0;#lL=!1;constructor(e){this.metaManager=e,e.addLocalHook("afterGetCellMeta",e=>{this.extendCellMeta(e)}),e.addLocalHook("extendTransientCellMeta",e=>{this.extendTransientCellMeta(e)}),e.addLocalHook("invalidateMetaExtensions",()=>{this.metaSyncMemo.clear()}),rI.getSingleton().add("beforeRender",e=>{e&&this.metaSyncMemo.clear()},this.metaManager.hot);const t=()=>this.#lB();rI.getSingleton().add("afterScrollVertically",t,this.metaManager.hot),rI.getSingleton().add("afterViewRender",t,this.metaManager.hot)}extendCellMeta(e){let t=e.row,i=e.col;if(this.metaSyncMemo.get(t)?.has(i))return;this.#lV(e,e=>{this.metaManager.extendCellMeta(t,i,e)});let o=this.metaSyncMemo.get(t);void 0===o&&(o=new Set,this.metaSyncMemo.set(t,o)),o.add(i)}extendTransientCellMeta(e){this.#lV(e,t=>{let i=ph(t);tC(e,i),pl(e,i,e,!0===t.editor)})}#lV(e,t){let i=e.row,o=e.col,r=e.visualRow,n=e.visualCol,s=this.metaManager.hot,l=r3(s,n);e.prop=l,s.runHooks("beforeGetCellMeta",r,n,e);let a=t_(e,"type")?e.type:null,h=o3(e.cells)?e.cells(i,o,l):null;a&&(h?h.type=h.type??a:h={type:a}),h&&t(h),!h?.type&&function(e){if(!0!==e[ps]||!t_(e,ps)||t_(e,"type")||t_(e,"editor")||!1!==e.editor)return!1;let t="string"==typeof e.type?sp(e.type):e.type;if(!tM(t)||!t_(t,"editor"))return!1;let i=t.editor;return e.editor=i,pn.set(e,i),!0}(e)&&o1(e),s.runHooks("afterGetCellMeta",r,n,e)}#lB(){let e=this.metaManager.hot,t=e.getFirstRenderedVisibleRow(),i=e.getLastRenderedVisibleRow();if(!Number.isInteger(t)||!Number.isInteger(i)||i<t)return;let o=i-t+1,r=t-o,n=i+o,s=this.#lF,l=this.#lN;this.#lL&&(this.#lz(s,Math.min(l,r-1)),this.#lz(Math.max(s,n+1),l)),this.#lF=r,this.#lN=n,this.#lL=!0}#lz(e,t){if(e>t)return;let i=this.metaManager.hot,o=i.getSelectedRangeLast(),r=o?o.highlight.row:null;for(let o=e;o<=t;o++){let e=i.toPhysicalRow(o);o!==r&&Number.isInteger(e)&&this.#lW(e)}}#lW(e){let t=this.metaManager.cellMeta.evictRow(e);if(0===t.length)return;let i=this.metaSyncMemo.get(e);if(void 0!==i){for(let e=0;e<t.length;e++)i.delete(t[e]);0===i.size&&this.metaSyncMemo.delete(e)}}}function pF(e){return"function"==typeof e}let pN=class{dataType="array";colToProp=e=>void 0;propToCol=e=>void 0;countCachedColumns;#l$={colToProp:e=>this.colToProp(e),toPhysicalColumn:e=>this.hot.toPhysicalColumn(e)};constructor(e,t=[]){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(e=!1){return this.data?.length?e||this.hot.hasHook("modifySourceData")||this.hot.hasHook("modifyRowData")?this.getByRange(null,null,e):this.data.map(dg):this.data}setData(e){this.data=e}getAtColumn(e){let t=[];return en(this.data,(i,o)=>{let r=this.getAtCell(o,e);t.push(r)}),t}getAtRow(e,t,i,o=!1){let r=void 0===t&&void 0===i,{dataDotNotation:n,columns:s,maxCols:l}=this.hot.getSettings(),a=null,h=null;if(Array.isArray(a=this.modifyRowData(e)))h=[],r?a.forEach((t,i)=>{h[i]=this.getAtPhysicalCell(e,i,a)}):nF(t,i,i=>{h[i-t]=this.getAtPhysicalCell(e,i,a)});else if(tM(a)||o3(a))if(h=o?[]:{},!r||o){let r=this.countCachedColumns?.()??0,d=Array.isArray(s)?Math.max(r,Math.min(l??1/0,s.length)):r,u=Math.max(this.countFirstRowKeys(),d)-1;nF(0,u,r=>{let s=r3(this.#l$,r),l=!Number.isInteger(s)||o&&r<d&&null!==this.hot.toPhysicalColumn(r);if(r>=(t||0)&&r<=(i??u)&&l){let t=this.getAtPhysicalCell(e,s,a);o?h.push(t):n?null!==h&&tO(h,s,t):h[s]=t}})}else tT(a,(t,i)=>{let o=this.getAtPhysicalCell(e,i,a);n?null!==h&&tO(h,i,o):h[i]=o});return h}setAtCell(e,t,i,o=!1){let r;if("string"==typeof e){let t=Number(e);if(Number.isNaN(t)||!Number.isInteger(t)||t<0)return;r=t}else{if("number"!=typeof e||!Number.isInteger(e)||e<0)return;r=e}if(r>=this.countRows()||!o&&"number"==typeof t&&t>=this.countFirstRowKeys())return;if(this.hot.hasHook("modifySourceData")){let e=tP(i);this.hot.runHooks("modifySourceData",r,t,e,"set"),e.isTouched()&&(i=e.value)}let n=this.modifyRowData(r);if("function"==typeof t){null!=n&&t(n,i);return}if(Number.isInteger(t))Array.isArray(n)?n[t]=i:tM(n)&&tO(n,String(t),i);else if(Array.isArray(n)){let e=Number(t);!Number.isNaN(e)&&Number.isInteger(e)&&e>=0&&e<this.countFirstRowKeys()&&(n[e]=i)}else tM(n)&&this.#lU(n,String(t),i,o)}#lU(e,t,i,o){!o||!t_(e,t)&&!0===this.hot.getSettings().dataDotNotation&&t.includes(".")?tO(e,t,i):tH(e,t,i)}getAtPhysicalCell(e,t,i){let o=this.#lG(t,i);if(this.hot.hasHook("modifySourceData")){let i=tP(o);this.hot.runHooks("modifySourceData",e,t,i,"get"),i.isTouched()&&(o=i.value)}return o}getAtCell(e,t){let i=this.modifyRowData(e),o="function"==typeof t?t:r3(this.#l$,t);return this.getAtPhysicalCell(e,o,i)}getAtCellByProp(e,t,i){return this.getAtPhysicalCell(e,t,void 0===i?this.modifyRowData(e):i)}getRawAtCellByProp(e,t){let i=this.modifyRowData(e);return"string"==typeof t&&tM(i)&&t_(i,t)?i[t]:this.#lG(t,i)}#lG(e,t){if(!t)return null;if("string"==typeof e){let{dataDotNotation:i}=this.hot.getSettings();return i?tA(t,e):t[e]}return"function"==typeof e?e(t):t[e]}getByRange(e=null,t=null,i=!1){let o=!1,r=null,n=null,s=null,l=null;null===e||null===t?(o=!0,r=0,s=this.countRows()-1):(r=Math.min(e.row,t.row),n=Math.min(e.col,t.col),s=Math.max(e.row,t.row),l=Math.max(e.col,t.col));let a=[];return nF(r,s,e=>{a.push(o?this.getAtRow(e,void 0,void 0,i):this.getAtRow(e,n,l,i))}),a}getCopyable(e,t){let i=this.propToCol(t)??t;return"number"==typeof i&&this.hot.getCellMetaTransient(e,i).copyable?this.getAtCell(this.hot.toPhysicalRow(e),i):""}countRows(){if(this.hot.hasHook("modifySourceLength")){let e=this.hot.runHooks("modifySourceLength");if("number"==typeof e&&Number.isInteger(e))return e}return this.data.length}countFirstRowKeys(){return dd(this.data??[])}destroy(){this.data=null,this.hot=null}},pL=/^(\r\n|\n\r|\r|\n)/,pB=/^[^\t\r\n]+/,pV=/^\t/;function pz(e){let t,i,o,r,n,s="";for(t=0,i=e.length;t<i;t+=1){for(o=0,r=e[t].length;o<r;o+=1)o>0&&(s+=" "),"string"==typeof(n=e[t][o])?n.indexOf("\n")>-1?s+=`"${n.replaceAll('"','""')}"`:s+=n:null==n?s+="":s+=n;t!==i-1&&(s+="\n")}return s}let pW=new Set(["valid"]);function p$(e){return"object"==typeof e&&null!==e?tS(e):e}function pU(e,t,i){let o=e.getRecordingTransaction();if(null===o)return;let r=o.journal[o.journal.length-1];void 0!==i?null!==i.op&&r===i.op?i.op.changes.push(t):(i.op={type:"cells",changes:[t],reversed:!0},e.append(o,i.op)):r?.type==="cells"&&!0!==r.reversed&&e.isLatestEntry(r)?r.changes.push(t):e.append(o,{type:"cells",changes:[t]})}function pG(e,t,i,o){let r=e._getOperationScope();if(null===r.getRecordingTransaction()||o<=0)return;let n=[];if(!t){let t=e._getMetaManager();for(let e=i;e<i+o;e++)t.captureRowMetaKeyStates(e,n)}r.record({type:"metaRows",insert:t,physicalRow:i,amount:o,metas:n})}function pj(e,t){let i=t-e.length;return e.every((e,t)=>e===i+t)}class pq{static get DESTINATION_RENDERER(){return 1}static get DESTINATION_CLIPBOARD_GENERATOR(){return 2}tableMeta;#lj=0;#lq=0;constructor(e,t,i){this.hot=e,this.metaManager=i,this.tableMeta=i.getTableMeta(),this.dataSource=t,this.colToPropCache=[],this.propToColCache=new Map,this.refreshDuckSchema(),this.createMap()}createMap(){let e=this.getSchema();void 0===e&&tf("trying to create `columns` definition but you didn't provide `schema` nor `data`");let t=this.tableMeta.columns;this.colToPropCache=[],this.propToColCache=new Map,t?this.#lK(t,e):this.recursiveDuckColumns(e)}#lY(e){return null===e&&!this.propToColCache.has(null)}#lK(e,t){let i=0,o=0,r="function"==typeof e;if(r){let e=tD(t);i=e>0?e:this.countFirstRowKeys()}else i=Math.min(this.tableMeta.maxCols??1/0,e.length);for(let t=0;t<i;t++){let i=r?e(t):e[t];if(tM(i)){if(void 0!==i.data){let e=r?o:t,n=i.data;this.colToPropCache[e]=n,this.propToColCache.set(n,e)}o+=1}}}countFirstRowKeys(){return dd(this.dataSource??[])}recursiveDuckColumns(e,t,i){let o,r=t??0,n=i??"";return"object"!=typeof e||null===e||Array.isArray(e)||tT(e,(e,t)=>{let i="object"==typeof e&&null!==e;!("__children"===t||"function"==typeof e||Array.isArray(e))&&(!i||tM(e))&&(tM(e)?r=this.recursiveDuckColumns(e,r,`${n}${t}.`):(o=n+t,this.colToPropCache.push(o),this.propToColCache.set(o,r),r+=1))}),r}colToProp(e){if(!1===Number.isInteger(e))return e;let t=this.hot.toPhysicalColumn(e);return null===t?null:this.colToPropCache&&eU(this.colToPropCache[t])?this.colToPropCache[t]:t}propToCol(e){let t=this.propToColCache.get(e);return void 0!==t?this.hot.toVisualColumn(t):null===e?null:"number"!=typeof e?e:this.hot.toVisualColumn(e)}getSchema(){let e=this.tableMeta.dataSchema;return e?"function"==typeof e?e():e:this.duckSchema}createDuckSchema(){return this.dataSource&&this.dataSource[0]?tw(this.dataSource[0]):{}}refreshDuckSchema(){this.duckSchema=this.createDuckSchema()}createRow(e,t=1,{source:i,mode:o="above",fillsMinimumSize:r=!1}={}){let n=this.hot.countSourceRows(),s=n,l=0,a=e;if(("number"!=typeof a||a>=n)&&(a=n),a<this.hot.countRows()&&(s=this.hot.toPhysicalRow(a)),!1===this.hot.runHooks("beforeCreateRow",a,t,i)||null===s)return{delta:0};let h=this.tableMeta.maxRows,d=this.getSchema().length,u=[];for(;l<t&&n+l<(h??1/0);){let e=null;if("array"===this.hot.dataType)this.tableMeta.dataSchema?e=tS(this.getSchema()):(e=[],nF(d-1,()=>e.push(null)));else if("function"===this.hot.dataType){let t=this.tableMeta.dataSchema;"function"!=typeof t&&tf("`dataSchema` must be a function when `dataType` is `function`"),e=t(a+l)}else ty(e={},this.getSchema());u.push(e),l+=1}this.hot.rowIndexMapper.insertIndexes(a,l,"below"===o?"end":"start"),"below"===o&&(s=Math.min(s+1,n)),this.#lX(s,l,n,r),this.spliceData(s,0,u),l>0&&this.hot._getOperationScope().record({type:"insertRows",physicalIndex:s,amount:l,atAxisEnd:s===this.hot.rowIndexMapper.getNumberOfIndexes()-l});let c=this.hot.toVisualRow(s);return this.hot.countSourceRows()===u.length&&this.hot.columnIndexMapper.initToLength(this.hot.getInitialColumnCount()),l>0&&(null==e?this.metaManager.createRow(null,l):"auto"!==i&&this.metaManager.createRow(s,t)),this.hot.runHooks("afterCreateRow",c,l,i),{delta:l,startPhysicalIndex:s}}createCol(e,t=1,{source:i,mode:o="start",fillsMinimumSize:r=!1}={}){this.hot.isColumnModificationAllowed()||tf('Cannot create a new column when the data source holds objects or the "columns" option is set. You can only have as many columns as defined in the first data row, the data schema, or the "columns" setting. To add new columns, use an array data source without the "columns" option.');let n=this.dataSource??[],s=this.tableMeta.maxCols,l=this.hot.columnIndexMapper.getNumberOfIndexes(),a=this.hot.countCols(),h=this.hot.countSourceRows(),d="number"==typeof e&&e<=l?e:a;if(!1===this.hot.runHooks("beforeCreateCol",d,t,i))return{delta:0};let u=d<a?this.hot.toPhysicalColumn(d):l,c="end"===o?Math.min(u+1,l):u,g=Math.max(0,Math.min(t,(s??1/0)-a));return this.#lZ(c,g,l,r),this.#lQ(n,c,d,a,h,g),g>0&&this.hot._getOperationScope().record({type:"insertColumns",physicalIndex:c,amount:g,atAxisEnd:c===this.hot.columnIndexMapper.getNumberOfIndexes()}),g>0&&(null==e?this.metaManager.createColumn(null,g):"auto"!==i&&this.metaManager.createColumn(c,t)),this.hot.columnIndexMapper.insertIndexes(d,g,o),this.hot.runHooks("afterCreateCol",this.hot.toVisualColumn(c),g,i),this.refreshDuckSchema(),{delta:g,startPhysicalIndex:c}}#lQ(e,t,i,o,r,n){if(!(n<=0)){if(0===r){let t="number"==typeof i?Math.max(0,Math.min(n,i-o+1)):n;for(let i=0;i<t;i++)e.push([null]);return}for(let i=0;i<r;i++)void 0===e[i]&&(e[i]=[]),eu(e[i],t,n,null)}}#lJ(e,t,i,o,r){return i<=0?e:r&&t>=o?e+i:t>o-e?Math.max(o-t,0):e}#l0(e,t,i){let o=i-e,r=0;return t.forEach(e=>{e>=o&&(r+=1)}),Math.max(e-r,0)}#lX(e,t,i,o){this.#lj=this.#lJ(this.#lj,e,t,i,o)}#lZ(e,t,i,o){this.#lq=this.#lJ(this.#lq,e,t,i,o)}removeRow(e,t=1,i){let o=Number.isInteger(e)?e:-t,r=this.visualRowsToPhysical(o,t),n=this.hot.countRows();if(o=(n+o)%n,!1===this.hot.runHooks("beforeRemoveRow",o,r.length,r,i))return!1;let s=r.length;if(!function(e,t){let i=e._getOperationScope();if(null===i.getRecordingTransaction()||0===t.length)return;let o=t.slice(0).sort((e,t)=>e-t),r=function(e){let t=[];for(let i=0;i<e.countCols();i++){let o=e.colToProp(i);pF(o)&&t.push([e.toPhysicalColumn(i),o])}return t}(e),n=e._getMetaManager(),s=[],l=[],a=[];o.forEach(t=>{let i;s.push((tM(i=tS(e.getSourceDataAtRow(t)))&&(delete i.__children,tk(i)),i)),l.push(r.map(([i,o])=>[i,p$(e.getSourceDataAtCell(t,o))])),n.captureRowMetaKeyStates(t,a)}),i.record({type:"removeRows",physicalIndexes:o,firstPhysicalIndex:t[0],rows:s,accessorValues:l,metas:a,atAxisEnd:pj(o,e.rowIndexMapper.getNumberOfIndexes())})}(this.hot,r),this.#l1(r),this.filterData(o,s,r),o<this.hot.countRows()){this.hot.rowIndexMapper.removeIndexes(r);let e=eU(this.tableMeta.columns)||eU(this.tableMeta.dataSchema)||this.tableMeta.colHeaders;0!==this.hot.rowIndexMapper.getNotTrimmedIndexesLength()||e||this.hot.columnIndexMapper.setIndexesSequence([])}let l=r.slice(0).sort((e,t)=>t-e);return this.#l2(l,(e,t)=>{this.metaManager.removeRow(e,t)}),this.hot.runHooks("afterRemoveRow",o,s,r,i),!0}removeCol(e,t=1,i){("object"===this.hot.dataType||this.tableMeta.columns)&&tf('Cannot remove a column when the data source holds objects or the "columns" option is set.');let o="number"!=typeof e?-t:e;o=(this.hot.countCols()+o)%this.hot.countCols();let r=this.visualColumnsToPhysical(o,t),n=r.slice(0).sort((e,t)=>t-e);if(!1===this.hot.runHooks("beforeRemoveCol",o,t,r,i))return!1;let s=!0,l=n.length,a=this.dataSource??[];for(let e=0;e<l;e++)s&&r[0]!==r[e]-e&&(s=!1);return!function(e,t,i){let o=e._getOperationScope();if(null===o.getRecordingTransaction()||0===i.length)return;let r=i.slice(0).sort((e,t)=>e-t),n=e._getMetaManager(),s=[],l=r.map(e=>{let i=[];for(let o=0;o<t.length;o++){let r=t[o];i.push(Array.isArray(r)?p$(r[e]):void 0)}return n.captureColumnMetaKeyStates(e,s),i});o.record({type:"removeColumns",physicalIndexes:r,values:l,metas:s,atAxisEnd:pj(r,e.columnIndexMapper.getNumberOfIndexes())})}(this.hot,a,r),this.#l3(r),this.#l6(a,s,r,n,t),o<this.hot.countCols()&&(this.hot.columnIndexMapper.removeIndexes(r),this.tableMeta.rowHeaders||0!==this.hot.columnIndexMapper.getNotTrimmedIndexesLength()||this.hot.rowIndexMapper.setIndexesSequence([])),this.hot.runHooks("afterRemoveCol",o,t,r,i),this.refreshDuckSchema(),!0}isTrailingFillerRow(e){return null!==e&&e>=this.hot.countSourceRows()-this.#lj}isTrailingFillerColumn(e){return null!==e&&e>=this.hot.countSourceCols()-this.#lq}#l6(e,t,i,o,r){if(t)for(let t=0,o=this.hot.countSourceRows();t<o;t++)e[t].splice(i[0],r),0===t&&this.metaManager.removeColumn(i[0],r);else{let t=new Set(i),r=this.hot.countSourceRows();for(let i=0;i<r;i++)ed(e[i],t);r>0&&this.#l2(o,(e,t)=>{this.metaManager.removeColumn(e,t)})}}#l3(e){this.#lq=this.#l0(this.#lq,e,this.hot.countSourceCols())}#l1(e){this.#lj=this.#l0(this.#lj,e,this.hot.countSourceRows())}#l2(e,t){let i=0;for(let o=0;o<e.length;o++)(o+1>=e.length||e[o+1]!==e[o]-1)&&(t(e[o],o-i+1),i=o+1)}spliceCol(e,t,i,...o){let r=this.hot.getDataAtCol(e),n=r.slice(t,t+i);ee(o,r.slice(t+i));let s=0;for(;s<i;)o.push(null),s+=1;return J(o),this.hot.populateFromArray(t,e,o,void 0,void 0,"spliceCol"),n}spliceRow(e,t,i,...o){let r=this.hot.getSourceDataAtRow(e),n=r.slice(t,t+i);ee(o,r.slice(t+i));let s=0;for(;s<i;)o.push(null),s+=1;return this.hot.populateFromArray(e,t,[o],void 0,void 0,"spliceRow"),n}spliceData(e,t,i){if(!1!==this.hot.runHooks("beforeDataSplice",e,t,i)){let t=[...this.dataSource.slice(0,e),...i,...this.dataSource.slice(e)];this.dataSource.length=0,t.forEach(e=>this.dataSource.push(e))}}filterData(e,t,i){let o=this.hot.runHooks("filterData",e,t,i);Array.isArray(o)?(this.dataSource.length=0,o.forEach(e=>{this.dataSource.push(e)})):ed(this.dataSource,new Set(i))}get(e,t,i){let o=i?.skipValueGetter===!0,r=this.hot.toPhysicalRow(e),n=this.dataSource[r],s=this.hot.runHooks("modifyRowData",r);n="number"!=typeof s?s:n;let{dataDotNotation:l}=this.hot.getSettings(),a=null;if(n&&!this.#lY(t)&&"function"!=typeof t&&t_(n,t))a=n[t];else if(l&&"string"==typeof t&&t.indexOf(".")>-1){let e=n;if(!e)return null;let i=t.split(".");for(let t=0,o=i.length;t<o;t++)if(void 0===(e=e[i[t]])||null===e&&t<o-1)return null;a=e}else"function"==typeof t&&n&&(a=t(n));let h=this.propToCol(t),d="number"==typeof h?this.hot.toPhysicalColumn(h):null;if(!o&&"number"==typeof h&&n$(r)&&n$(d)&&(a=rG(a,this.metaManager.getCellMetaUncached(r,d,{visualRow:e,visualColumn:h}))),this.hot.hasHook("modifyData")){let t=tP(a);this.hot.runHooks("modifyData",e,h,t,"get"),t.isTouched()&&(a=t.value)}return a}getAtColumnForRows(e,t){let i=this.colToProp(e),o=t.length,r=[],n=this.propToCol(i),s="number"==typeof n?this.hot.toPhysicalColumn(n):null,l="number"==typeof n&&n$(s),{dataDotNotation:a}=this.hot.getSettings();if(!("function"!=typeof i&&!(a&&"string"==typeof i&&i.indexOf(".")>-1)&&!this.hot.hasHook("modifyRowData")&&!this.hot.hasHook("modifyData")&&!this.hot.hasHook("modifySourceData")&&!(l&&o3(this.metaManager.getColumnMeta(s).valueGetter)))){for(let e=0;e<o;e++)r.push(this.get(this.hot.toVisualRow(t[e]),i));return r}let h=this.dataSource;for(let e=0;e<o;e++){let o=t[e];if(l&&n$(o)&&void 0!==this.metaManager.getCellMetaIfExists(o,s)){r.push(this.get(this.hot.toVisualRow(o),i));continue}let n=h[o];r.push(n&&t_(n,i)?n[i]:null)}return r}getCopyable(e,t){let i=this.propToCol(t)??t;return"number"==typeof i&&this.hot.getCellMetaTransient(e,i).copyable?this.get(e,t):""}set(e,t,i){this.setAtPhysicalRow(this.hot.toPhysicalRow(e),t,i,e)}setAtPhysicalRow(e,t,i,o){if(this.#lY(t))return;let r=i,n=this.dataSource[e],s=this.hot.runHooks("modifyRowData",e);if(n="number"!=typeof s?s:n,this.hot.hasHook("modifyData")){let e=tP(r);this.hot.runHooks("modifyData",o,this.propToCol(t),e,"set"),e.isTouched()&&(r=e.value)}let{dataDotNotation:l}=this.hot.getSettings();if(n&&"function"!=typeof t&&t_(n,t))n[t]=r;else if(l&&"string"==typeof t&&t.indexOf(".")>-1){let e,i=n,o=0,s=t.split(".");for(o=0,e=s.length-1;o<e;o++){if("__proto__"===s[o]||"constructor"===s[o]||"prototype"===s[o])return;(void 0===i[s[o]]||null===i[s[o]])&&(i[s[o]]={}),i=i[s[o]]}i[s[o]]=r}else if("function"==typeof t)n&&t(n,r);else{if("__proto__"===t||"constructor"===t||"prototype"===t)return;n[t]=r}}visualRowsToPhysical(e,t){let i=this.hot.countRows(),o=[],r=(i+e)%i,n=t;for(;r<i&&n;)o.push(this.hot.toPhysicalRow(r)),n-=1,r+=1;return o}visualColumnsToPhysical(e,t){let i=this.hot.countCols(),o=[],r=(i+e)%i,n=t;for(;r<i&&n;){let e=this.hot.toPhysicalColumn(r);o.push(e),n-=1,r+=1}return o}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(){let e,t=this.tableMeta.maxRows;return e=(t??0)<0||0===t?0:t||1/0,Math.min(this.hot.rowIndexMapper.getNotTrimmedIndexesLength(),e)}getAll(){let 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,pq.DESTINATION_RENDERER):[]}countCachedColumns(){return this.colToPropCache.length}getRange(e,t,i){let o,r,n,s=[],l=this.tableMeta.maxRows,a=this.tableMeta.maxCols;if(0===l||0===a)return[];let h=i===pq.DESTINATION_CLIPBOARD_GENERATOR?this.getCopyable:this.get,d=Math.min(Math.max((l??1/0)-1,0),Math.max(e.row,t.row)),u=Math.min(Math.max((a??1/0)-1,0),Math.max(e.col,t.col));for(o=Math.min(e.row,t.row);o<=d;o++){n=[];let i=o>=0?this.hot.toPhysicalRow(o):o;for(r=Math.min(e.col,t.col);r<=u&&null!==i;r++)n.push(h.call(this,o,r3(this.hot,r)));null!==i&&s.push(n)}return s}getText(e,t){return pz(this.getRange(e,t,pq.DESTINATION_RENDERER))}getCopyableText(e,t){return pz(this.getRange(e,t,pq.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}}function pK(e,t,i,o,r,n,s,l){let a=e.sourceDataValidator;if(!o3(a)||!0===a(t,e,l))return;!1===e.allowInvalid&&n.setAtCell(i,r,null);let h=e.sourceDataWarningMessage;if(h){let e=s.get(h)??[];e.push({row:i,col:o,value:t,message:h}),s.set(h,e)}}let pY=new Set(["type","sourceDataValidator"]);function pX(e,t){let i=e.countSourceRows(),o=e.countSourceCols();if(0===i||0===o)return;let r=e.getSettings(),n=e._getDataSource(),s=new Map,l=function(e,t){let i=[];for(let o=0;o<t;o+=1){let t=e.columnIndexMapper.getVisualFromPhysicalIndex(o);if(null!==t){let r=e.colToProp(t);null!==r&&i.push({physicalColumn:o,visualColumn:t,sourceColumn:r})}}return i}(e,o),{fullScan:a,columns:h}=function(e,t){let i=e._getMetaManager(),o=[];for(let e=0;e<t.length;e+=1){let r=t[e],{physicalColumn:n,visualColumn:s}=r,l=i.getCellMetaUncached(0,n,{visualRow:0,visualColumn:s}),a=l.sourceDataValidator;if(o3(a)){if(!0!==a.rowIndependent)return{fullScan:!0,columns:[]};o.push({...r,cellMeta:l})}}return{fullScan:!1,columns:o}}(e,l);(a||0!==h.length||Array.isArray(r.cell)&&r.cell.length>0||e._getMetaManager().getUserDefinedCellMetas().some(({key:e})=>pY.has(e)))&&(a||Array.isArray(r.cell)&&r.cell.length>0||e._getMetaManager().getUserDefinedCellMetas().length>0?!function(e,t,i,o,r,n){let{rowIndexMapper:s}=e,l=e._getMetaManager();for(let e=0;e<i;e+=1){let i=s.getVisualFromPhysicalIndex(e);if(null===i)continue;let a=null,h=!1;for(let s=0;s<o.length;s+=1){let{physicalColumn:d,visualColumn:u,sourceColumn:c}=o[s],g=l.getCellMetaUncached(e,d,{visualRow:i,visualColumn:u});o3(g.sourceDataValidator)&&(h||(a=t.modifyRowData(e),h=!0),pK(g,t.getAtCellByProp(e,c,a),e,d,c,t,r,n))}}}(e,n,i,l,s,t):!function(e,t,i,o,r,n){for(let s=0;s<i;s+=1){if(null===o(s))continue;let i=t.modifyRowData(s);for(let o=0;o<e.length;o+=1){let{physicalColumn:l,sourceColumn:a,cellMeta:h}=e[o];pK(h,t.getAtCellByProp(s,a,i),s,l,a,t,r,n)}}}(h,n,i,t=>e.rowIndexMapper.getVisualFromPhysicalIndex(t),s,t),s.forEach((e,t)=>{pZ(t,e)}))}function pZ(e,t){!function({logFunction:e=function(...e){eU(console)&&console.log(...e)},message:t="",items:i=[],maxSample:o=5,itemFormatter:r=e=>`${e}`}={}){if(!Array.isArray(i)||0===i.length)return;let n=i.length,s=i.slice(0,o).map(e=>` - ${r(e)}`),l=n>o?` - ...and ${n-o} more`:"";e(io(t,{itemsCount:`${n} cell${n>1?"s":""}`,affectedCells:["Affected cells:",...s,...l?[l]:[]].join("\n")}))}({logFunction:ir,message:e,items:t,itemFormatter:e=>{let{row:t,col:i,value:o}=e,r=e$(o),n=r.length>64?`${r.slice(0,64)}...`:r;return`row ${t}, col ${i}, value: "${n}"`}})}function pQ(e,t,i,o){let{hotInstance:r,dataMap:n,dataSource:s,internalSource:l,source:a,metaManager:h,firstRun:d,beforeRender:u}=o,c=r5(l),g=r.getSettings();Array.isArray(g.dataSchema)?r.dataType="array":o3(g.dataSchema)?r.dataType="function":r.dataType="object",n&&n.destroy(),e=r.runHooks(`before${c}`,e,d,a);let p=new pq(r,e,h);t(p),"object"==typeof e&&null!==e?e.push&&e.splice||(e=[e]):null===e?e=function(e,t,i){let o=t.getSchema(),r=[];for(let t=0,n=i.startRows;t<n;t++){let t;if(("object"===e.dataType||"function"===e.dataType)&&i.dataSchema)t=tS(o);else if("array"===e.dataType)t=tS(o[0]);else{t=[];for(let e=0,o=i.startCols;e<o;e++)t.push(null)}r.push(t)}return r}(r,p,g):tf(`${l} only accepts array of objects or array of arrays (${typeof e} given)`),Array.isArray(e[0])&&(r.dataType="array"),g.data=e,p.dataSource=e,s.data=e,s.dataType=r.dataType,s.colToProp=e=>p.colToProp(e),s.propToCol=e=>p.propToCol(e),s.countCachedColumns=p.countCachedColumns.bind(p);let m=e.length;i(p),function(e,t,i){let{columns:o,dataSchema:r,maxCols:n,allowInsertColumn:s}=e.getSettings(),l=Array.isArray(o)||o3(o),a=eU(r)&&null!==r;if(0===i||0===e.countSourceRows()||e.columnIndexMapper.getNumberOfIndexes()>0||l||a||0===n)return;let h=!1;for(let e=1;e<t.length&&!h;e++)h=dd([t[e]])>0;if("array"===e.dataType&&!h&&s)return;let d=h?", while later rows have fields that no column displays":"";il(e,"replaceData.undetectableColumns",`Handsontable found no columns in the data source, so the grid displays rows with no cells. Without the \`columns\` or \`dataSchema\` option, the number of columns is read from the first row of \`data\`, and it has no fields${d}. Define the columns with the \`columns\` or \`dataSchema\` option, or start \`data\` with a row that contains every field.`)}(r,e,m),d||r._isDataWorkDeferred()||pX(r,l),r.runHooks(`after${c}`,e,d,a),d||(u(),r.runHooks("afterChange",null,l),u(),r.render()),r.getSettings().ariaTags&&iq(r.rootElement,[z(-1)])}class pJ{#nj;#nq;constructor({rowIndexMapper:e,columnIndexMapper:t}){this.#nj=e,this.#nq=t}toRenderable(e){let t="N-S"===e.getVerticalDirection()?1:-1,i="W-E"===e.getHorizontalDirection()?1:-1,o=this.#l4(e.from,t,i);if(null===o)return null;let r=this.#l4(e.to,-t,-i);if(null===r)return null;let n=e.clone();return n.from=o,n.to=r,n.includes(e.highlight)||(n.highlight=o),n}#l4(e,t,i=t){if(null===e.row||null===e.col)return null;let o=this.#l5(this.#nj,e.row,t);if(null===o)return null;let r=this.#l5(this.#nq,e.col,i);return null===r?null:e.clone().assign({row:o,col:r})}#l5(e,t,i){return t<0?t:e.getNearestNotHiddenIndex(t,i)}}function p0(e){let t=Number(e);return t>0?t:0}function p1(e,t,i){let o=0;for(;o<t&&o<e&&i(e-1-o);)o+=1;return o}class p2{#eb;#l8=null;#l7=null;#l9=0;#ae=null;#at=null;#ai=null;#lw=null;#ao=new WeakMap;#ar=null;#an=!1;constructor(e){this.#eb=e,e.addHook("beforeInit",this.#as),e.addHook("afterUpdateSettings",this.#as),e.addHook("beforeLoadData",this.#al),e.addHook("beforeUpdateData",this.#al),e.addHook("afterLoadData",this.#aa),e.addHook("afterUpdateData",this.#aa),e.columnIndexMapper.addLocalHook("indexesInserted",this.#ah),e.columnIndexMapper.addLocalHook("indexesRemoved",this.#ah)}getDeclaredIndex(e,t){if(null===this.#l8||t!==this.#at)return e;let i=this.#l8.getValueAtIndex(e);return"number"==typeof i?i:null}#as=()=>{this.#ad()};#al=()=>{this.#an=!0,this.#eb._registerMicrotask(this.#au),this.#ad(),null!==this.#ar&&(this.#ac(this.#ar.declared,this.#ar.values),this.#ar=null),null!==this.#l8&&null!==this.#at&&this.#ac(this.#at,this.#l8.getValues().slice())};#au=()=>{this.#an=!1};#ah=()=>{this.#an||"object"!=typeof this.#lw||null===this.#lw||(this.#ao.delete(this.#lw),this.#ar=null)};#ac(e,t){let i=this.#lw;if("object"!=typeof i||null===i)return;let o=this.#ao.get(i);void 0===o&&(o=new Map,this.#ao.set(i,o)),o.set(e,t)}#aa=e=>{this.#an=!1,this.#lw=e;let t=this.#l8,i=this.#at,o="object"==typeof e&&null!==e?this.#ao.get(e):void 0;if(void 0!==o&&this.#ao.delete(e),null===t||null===i||void 0===o)return;let r=o.get(i);void 0!==r&&r.length===t.getLength()&&!function(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i+=1)if(e[i]!==t[i])return!1;return!0}(t.getValues(),r)&&t.setValues(r)};#ad(){let e=this.#eb.getSettings().colWidths;Array.isArray(e)?this.#ag(e):this.#ap()}#ag(e){if(this.#at===e)return;null!==this.#at&&this.#ap();let t=new dM((e,i)=>{if(void 0===i)return e;if(0===i){let i=Math.min(e,t.getLength()),{columnIndexMapper:o}=this.#eb,r=e>=t.getLength()&&(o.indexesSequence.isIdentity()||function(e,t){let i=e.indexOf(t);for(let o=i+1;o<e.length;o+=1)if(e[o]<t)return!1;return!0}(o.getIndexesSequence(),i));this.#ai=r?function(e){let t=0;for(let i=0;i<e.length;i+=1){let o=e[i];"number"==typeof o&&o>=t&&(t=o+1)}return t}(t.getValues()):null}return null===this.#ai?null:this.#ai+i}),i=`colWidths.declaredIndex.${this.#l9}`;this.#l9+=1,this.#l8=t,this.#l7=i,this.#at=e,this.#eb.columnIndexMapper.registerMap(i,t),this.#ae=this.#eb.columnIndexMapper.observeMapChange(t,()=>{this.#eb.view?.invalidateColumnWidthCache()})}#ap(){null!==this.#l7&&(null!==this.#l8&&null!==this.#at&&(this.#ar={declared:this.#at,values:this.#l8.getValues().slice()}),this.#ae?.(),this.#eb.columnIndexMapper.unregisterMap(this.#l7),this.#l8=null,this.#l7=null,this.#ae=null,this.#at=null)}}let p3=["rowHeights","minRowHeights"];function p6(e){let t=0;for(let i=0;i<e.length;i+=1){let o=e[i];"number"==typeof o&&o>=t&&(t=o+1)}return t}class p4{#eb;#am=new Map;#af=new Map;#l9=0;#aw=new Map;#at=new Map;#ab=null;#ai=null;#lw=null;#ao=new WeakMap;#ar=new Map;#an=!1;constructor(e){this.#eb=e,e.rowIndexMapper.addLocalHook("indexesInserted",this.#aC),e.rowIndexMapper.addLocalHook("indexesRemoved",this.#ay),e.addHook("beforeInit",this.#as),e.addHook("afterUpdateSettings",this.#as),e.addHook("beforeLoadData",this.#al),e.addHook("beforeUpdateData",this.#al),e.addHook("afterLoadData",this.#aa),e.addHook("afterUpdateData",this.#aa)}getDeclaredIndex(e,t){let i=this.#am.get(e);if(void 0===i)return t;let o=i.getValueAtIndex(t);return"number"==typeof o?o:null}alignInsertedRows(e,t){let i=this.#ab;this.#ab=null,null===i||i===e||t<=0||this.#am.forEach(o=>{let r=o.getValues(),n=Math.min(i,r.length-t),s=r.slice(0,n).concat(r.slice(n+t)),l=e+t>=r.length,a=l?p6(s):0,h=Array(t);for(let e=0;e<t;e+=1)h[e]=l?a+e:null;o.setValues(s.slice(0,e).concat(h,s.slice(e)))})}readOrigins(){if(0===this.#am.size)return null;let e=new Map;return this.#am.forEach((t,i)=>e.set(i,t.getValues().slice())),e}writeOrigins(e){e.forEach((e,t)=>{this.#am.get(t)?.setValues(e)})}#aC=(e,t)=>{if(this.#ay(),this.#ab=null,this.#ai=null,0===e.length||0===this.#am.size)return;let i=this.#eb.rowIndexMapper.getNumberOfIndexes()-e.length,o=Math.min(e[0]+ +("end"===t),i),r=o>=i&&function(e,t){let i=e.indexOf(t);for(let o=i+1;o<e.length;o+=1)if(e[o]<t)return!1;return!0}(this.#eb.rowIndexMapper.getIndexesSequence(),o);this.#ab=o,this.#ai=new Map,this.#am.forEach((e,t)=>{r&&this.#ai.set(t,p6(e.getValues()))})};#ay=()=>{this.#an||"object"!=typeof this.#lw||null===this.#lw||(this.#ao.delete(this.#lw),this.#ar.clear())};#al=()=>{this.#an=!0,this.#ar.forEach(({declared:e,values:t},i)=>this.#ac(i,e,t)),this.#ar.clear(),this.#aS()};#as=()=>{let e=this.#eb.getSettings();p3.forEach(t=>{let i=e[t];Array.isArray(i)?this.#ag(t,i):this.#ap(t)})};#aS(){this.#am.forEach((e,t)=>{let i=this.#at.get(t);void 0!==i&&this.#ac(t,i,e.getValues().slice())})}#aa=e=>{this.#an=!1,this.#lw=e,this.#am.forEach((e,t)=>this.#av(t)),"object"==typeof e&&null!==e&&this.#ao.delete(e)};#ac(e,t,i){let o=this.#lw;if("object"!=typeof o||null===o)return;let r=this.#ao.get(o);void 0===r&&(r=new Map,this.#ao.set(o,r));let n=r.get(e);void 0===n&&(n=new Map,r.set(e,n)),n.set(t,i)}#av(e){let t=this.#am.get(e),i=this.#at.get(e),o=this.#lw,r="object"==typeof o&&null!==o?this.#ao.get(o)?.get(e):void 0;if(void 0===t||void 0===i||void 0===r)return;let n=r.get(i);void 0!==n&&n.length===t.getLength()&&t.setValues(n)}#ag(e,t){let i=this.#at.get(e);if(i===t)return;void 0!==i&&this.#ap(e);let o=new dM((t,i)=>{if(void 0===i)return t;let o=this.#ai?.get(e);return void 0===o?null:o+i}),r=`${e}.declaredIndex.${this.#l9}`;this.#l9+=1,this.#am.set(e,o),this.#af.set(e,r),this.#at.set(e,t),this.#eb.rowIndexMapper.registerMap(r,o),this.#aw.set(e,this.#eb.rowIndexMapper.observeMapChange(o,()=>{this.#eb.view?.invalidateRowHeightCache()}))}#ap(e){let t=this.#af.get(e);if(void 0===t)return;let i=this.#am.get(e),o=this.#at.get(e);void 0!==i&&void 0!==o&&this.#ar.set(e,{declared:o,values:i.getValues().slice()}),this.#aw.get(e)?.(),this.#eb.rowIndexMapper.unregisterMap(t),this.#am.delete(e),this.#af.delete(e),this.#aw.delete(e),this.#at.delete(e)}}function p5(e,t,i,o=!1){for(let r=0;r<i;r+=1){let i=e.props[r],n=t.props[r];if(i!==n&&!(o&&"function"==typeof i&&"function"==typeof n))return!1}return!0}let p8=Object.freeze({CELL:"cell",MIXED:"mixed"});class p7{#eb;#aR=null;#ax=!1;#aE;#aM=1;#ak=null;#aI=new Map;#aT=null;#aA=!1;#aH=new Set;constructor(e){this.#eb=e}init(){let e=this.#eb.getSettings();this.#aE=e.imeFastEdit?p8.MIXED:p8.CELL,this.#eb.addHook("afterUpdateSettings",(...e)=>this.#aO(e[0])),this.#eb.addHook("afterSelection",(...e)=>this.#aD()),this.#eb.addHook("afterSelectionFocusSet",(...e)=>this.#aD()),this.#eb.addHook("afterSelectionEnd",(...e)=>this.#aP()),this.#eb.addHook("afterRender",(...e)=>this.#a_()),this.#aR=new r2(this.#eb);let t=[this.#eb.rootWrapperElement??this.#eb.rootElement,this.#eb.rootPortalElement].filter(e=>oG(e));t.forEach(e=>{this.#aR.addEventListener(e,"focusin",()=>{this.#ax=!0}),this.#aR.addEventListener(e,"focusout",e=>{let i=e.relatedTarget;this.#ax=oG(i)&&t.some(e=>e.contains(i))})})}hasBrowserFocus(){return this.#ax}registerOutsideClickExemptElement(e){this.#aH.add(e)}unregisterOutsideClickExemptElement(e){this.#aH.delete(e)}isPathOutsideClickExempt(e){return 0!==this.#aH.size&&e.some(e=>oG(e)&&this.#aH.has(e))}isForeignFocusTarget(e){let{rootElement:t,rootWrapperElement:i,rootPortalElement:o,rootDocument:r}=this.#eb,n=!!i&&i.contains(e)&&!t.contains(e);return!(null===e||e===r.body||e===r.documentElement||iI(e,t)||n||o&&o.contains(e))&&!oX(t).includes(e)}getFocusMode(){return this.#aE}setFocusMode(e){Object.values(p8).includes(e)?this.#aE=e:ir(`"${e}" is not a valid focus mode.`)}getRefocusDelay(){return this.#aM}setRefocusDelay(e){this.#aM=e}setRefocusElementGetter(e){this.#ak=e}suspend(){this.#aA=!0}resume(){this.#aA=!1}getRefocusElement(){return"function"==typeof this.#ak?this.#ak():this.#eb.getActiveEditor()?.TEXTAREA}focusElement(e,t){return!!oG(e)&&!!e.isConnected&&(e.focus(t),!0)}focusOnHighlightedCell(e){let t=e=>{let t=this.#eb.getSelectedRangeActive()?.highlight;if(!t)return;let i=this.#eb.runHooks("modifyFocusedElement",t.row,t.col,e);oG(i)||(i=e),i&&!this.#eb.getActiveEditor()?.isOpened?.()&&this.focusElement(i,{preventScroll:!0})};e?t(e):this.#aF(e=>t(e))}refocusToEditorTextarea(e=this.#aM){this.#eb.getSettings().imeFastEdit&&!this.#eb.getActiveEditor()?.isOpened?.()&&(this.#eb.getActiveEditor()?.refreshValue?.(),this.#aI.has(e)||this.#aI.set(e,o5(()=>{if(!this.#eb.isDestroyed){let e=this.getRefocusElement();e&&this.focusElement(e,{preventScroll:!0})&&"function"==typeof e.select&&e.select()}},e)),this.#aI.get(e)())}#aF(e){let t=this.#eb.getSelectedRangeActive()?.highlight;if(!t||!this.#eb.selection.isCellVisible(t)||null===t.row||null===t.col)return void e(null);let{row:i,col:o}=t,r=this.#eb.getCell(i,o,!0);null===r?this.#eb.addHookOnce("afterScroll",()=>{e(this.#eb.getCell(i,o,!0))}):e(r)}#aN(e){this.#aF(t=>{let i=oZ(this.#eb.rootDocument),o=oG(i)?i:null;e&&o&&oL(o)||(o&&oL(o)&&o.blur(),this.focusOnHighlightedCell(t))})}#aP(){if(this.#aA){let e=oZ(this.#eb.rootDocument),t=oG(e)?e:null;if(t&&oL(t))return}this.#aF(e=>{this.getFocusMode()===p8.MIXED&&e?.nodeName==="TD"&&this.refocusToEditorTextarea()})}#aD(){this.#aT=this.#aA}#a_(){let e=this.#aT;null===e||this.#eb.isDestroyed||(this.#aT=null,this.#aN(e))}#aO(e){"boolean"==typeof e.imeFastEdit&&this.setFocusMode(e.imeFastEdit?p8.MIXED:p8.CELL)}}let p9=Object.freeze({INLINE:"inline",MODAL:"modal"}),me=Object.freeze({UNKNOWN:"unknown",CLICK:"click",TAB_FROM_ABOVE:"tab_from_above",TAB_FROM_BELOW:"tab_from_below"});function mt(e,t){let i=e.rootDocument.createElement("div");return i.style.display="none",i.classList.add("htFocusCatcher"),i.dataset.htFocusSource=t,i}function mi(e){let{rowIndexMapper:t,columnIndexMapper:i}=e,{navigableHeaders:o}=e.getSettings(),r=o&&e.countColHeaders()>0?-e.countColHeaders():0,n=o&&e.countRowHeaders()>0?-e.countRowHeaders():0,s=0===r?t.getVisualFromRenderableIndex(r):r,l=0===n?i.getVisualFromRenderableIndex(n):n;return null===s||null===l?null:e._createCellCoords(s,l)}function mo(e){let{rowIndexMapper:t,columnIndexMapper:i}=e,{navigableHeaders:o}=e.getSettings(),r=t.getRenderableIndexesLength()-1,n=i.getRenderableIndexesLength()-1;if(r<0){if(!o||0===e.countColHeaders())return null;r=-1}if(n<0){if(!o||0===e.countColHeaders())return null;n=-1}return e._createCellCoords(t.getVisualFromRenderableIndex(r)??r,i.getVisualFromRenderableIndex(n)??n)}let mr="gridDefault",mn=[["Control/Meta","C"],["Control/Meta","X"],["Control/Meta","V"]],ms="grid.tabNavigation",ml="editorManager.handlingEditor";function ma(e){return e.countRenderedRows()>0&&e.countRenderedCols()>0}function mh(e){return!!sy(e)&&e.getFocusScopeManager().isGridBodyCovered()}function md(e){return ma(e)&&!mh(e)}function mu(e){let{navigableHeaders:t}=e.getSettings();return mh(e)?!0===t&&e.getSelectedRangeActive()?.highlight.isHeader()===!0:!0===t||ma(e)}let mc=new WeakMap;function mg(e){let t=mc.get(e);return void 0===t&&(t={coords:void 0,leftByTab:!1},mc.set(e,t)),t}function mp(e){return mg(e).coords}function mm(e,t){mg(e).coords=t}function mf(e,t){mg(e).leftByTab=t}function mw(e){let t=t=>{if(!t)return null;let{rowIndexMapper:i,columnIndexMapper:o}=e;if(i.isHidden(t.row)||o.isHidden(t.col))return null;let r=mi(e),n=mo(e);return null===r||null===n?null:(t.row=nB(t.row,r.row??t.row,n.row??t.row),t.col=nB(t.col,r.col??t.col,n.col??t.col),t)},i={wrapped:!1,flipped:!1},o=!0,r=!1,n=!1;e.addHook("afterSelection",()=>{mf(e,!1),o&&mm(e,e.getSelectedRangeActive()?.highlight)}),e.addHook("afterDeselect",()=>{mf(e,n)}),e.addHook("afterDocumentKeyDown",()=>{n=!1}),e.addHook("afterLoadData",()=>{mm(e,void 0),mf(e,!1)}),e.addHook("beforeRowWrap",(e,t,o)=>{i.wrapped=!0,i.flipped=o}),e.addHook("beforeEmptyDataStateShow",()=>{r=!0}),e.addHook("beforeEmptyDataStateHide",()=>{r=!1});let s=e.getShortcutManager().getContext("grid");s?.addShortcuts([{keys:[["Tab"],["Shift","Tab"]],preventDefault:!1,stopPropagation:!1,relativeToGroup:mr,group:ms,position:"before",callback(){let{tabNavigation:t}=e.getSettings();n=!0,e.getSelectedRangeActive()&&!t&&(o=!1)}},{keys:[["Tab"],["Shift","Tab"]],preventDefault:!1,stopPropagation:!1,relativeToGroup:mr,group:ms,callback(t){let{tabNavigation:r,autoWrapRow:n}=e.getSettings();if(o=!0,!r||!e.selection.isSelected()||n&&i.wrapped&&i.flipped||!n&&i.wrapped){if(n&&i.wrapped&&i.flipped){let i=t.shiftKey?mi(e):mo(e);mm(e,i)}i.wrapped=!1,i.flipped=!1}},position:"after"}]);let l=e.rootGridContentElement??e.rootElement;e.getFocusScopeManager().registerScope("grid",l,{contains:t=>!!(l===t||l.contains(t))||null===t.closest(".htMenu")&&e.rootPortalElement.contains(t),runOnlyIf:()=>{let{navigableHeaders:t}=e.getSettings();return!((r||!t)&&0===e.countRenderedRows()&&0===e.countRenderedCols()&&e.countRowHeaders()>0&&e.countColHeaders()>0)&&!!(!t&&ma(e)||t&&(e.countRowHeaders()>0||e.countColHeaders()>0))},onActivate:i=>{if("tab_from_above"===i){let i=t(mp(e))??mi(e);if(i){let t=e.runHooks("modifyFocusOnTabNavigation","from_above",i),{row:o,col:r}=i;!1!==t&&null!==o&&null!==r&&(e.selectCell(o,r),e.getFocusManager().focusOnHighlightedCell())}}else if("tab_from_below"===i){let i=t(mp(e))??mo(e);if(i){let t=e.runHooks("modifyFocusOnTabNavigation","from_below",i),{row:o,col:r}=i;!1!==t&&null!==o&&null!==r&&e.selectCell(o,r)}}}})}let mb=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"]]),mC=e=>e.map(e=>{let t=e.toLowerCase();return mb.has(t)?mb.get(t)??t:t}).sort((e,t)=>e.localeCompare(t)).join("+"),my=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"]]),mS=({which:e,key:t})=>{if(my.has(e))return my.get(e)??t.toLowerCase();let i=String.fromCharCode(e).toLowerCase();return/^[a-z0-9]$/.test(i)?i:t.toLowerCase()},mv=["meta","alt","shift","control"],mR=(e,t=!1)=>{let i=[];return e.altKey&&i.push("alt"),t&&(e.ctrlKey||e.metaKey)?i.push("control/meta"):(e.ctrlKey&&i.push("control"),e.metaKey&&i.push("meta")),e.shiftKey&&i.push("shift"),i},mx=(e,t)=>{if("string"!=typeof e.key)return[];let i=mS(e),o=mv.includes(i),r=o?[]:mR(e),n=[[i].concat(r)];return!o&&("function"==typeof t&&t()?r.includes("meta"):r.includes("control"))&&n.push([i].concat(mR(e,!0))),n},mE=Symbol("shortcut-context");function mM(e){return tM(e)&&e.__kindOf===mE}let mk=(e,t)=>e.relativeToGroup===t&&"before"===e.position,mI=(i=new Set,{press(e){i.add(e)},release(e){i.delete(e)},setPressed(e,t){t?i.add(e):i.delete(e)},releaseAll(){i.clear()},isPressed:e=>i.has(e)}),mT=new WeakMap,mA=e=>{mI.setPressed("alt",e.altKey),mI.setPressed("control",e.ctrlKey),mI.setPressed("meta",e.metaKey),mI.setPressed("shift",e.shiftKey)},mH=e=>{if("string"==typeof e.key){mA(e);let t=mS(e);mv.includes(t)&&mI.press(t)}},mO=e=>{if("string"==typeof e.key){mA(e);let t=mS(e);mv.includes(t)&&mI.release(t)}};function mD(e){let t=e.countCols(),i=e.view.countFixedColumnsEnd(),o=e.columnIndexMapper.getNearestNotHiddenIndex(t-i-1,-1);return 0===i||null!==o&&o>=e.view.countFixedColumnsStart()?o:null}let mP={name:"selectAllCells",callback({selection:e}){e.markSource("keyboard"),e.selectAll(!0,!0,{disableHeadersHighlight:!0}),e.markEndSource()}},m_="ht-link",mF="ht-link-scheme",mN=/^mailto:/i,mL=/^tel:/i;function mB(e,{href:t,target:i,classNames:o=[]}){let r=e.createElement("a");return r.className=[m_,...o.map(e=>e.trim()).filter(e=>""!==e)].join(" "),r.href=t,r.target=i,r.rel="noopener noreferrer",r.tabIndex=-1,r}function mV(e,t){let i=i6(e);for(;i.firstChild;)t.appendChild(i.firstChild);i.appendChild(t)}function mz(e){let t;if("mailto:"===e.protocol)t=mN;else{if("tel:"!==e.protocol)return!1;t=mL}let i=e.ownerDocument,o=i.createTreeWalker(e,NodeFilter.SHOW_TEXT),r=null,n=o.nextNode();for(;null!==n;){if(/\S/.test(n.data)){r=n;break}n=o.nextNode()}if(null===r||!t.test(r.data.trimStart()))return!1;let s=r.data.length-r.data.trimStart().length,l=s>0?r.splitText(s):r;l.splitText(e.protocol.length);let a=i.createElement("span");return a.className=mF,l.parentNode?.insertBefore(a,l),a.appendChild(l),!0}function mW(e,t){if(null===e.firstElementChild)return 0;let i=new Set,o=0;for(let r of Array.from(e.querySelectorAll(t))){if(!e.contains(r))continue;let t=function(e){let{parentNode:t}=e;for(;e.firstChild;)t?.insertBefore(e.firstChild,e);return e.remove(),t}(r);null!==t&&i.add(t),o+=1}return i.forEach(e=>e.normalize()),o}function m$(e){let t=e.getSelectedRangeActive()?.highlight;return t&&t.isCell()&&null!==t.row&&null!==t.col?e.getCell(t.row,t.col)?.querySelector(`a.${m_}`)??null:null}let mU=[{name:"editorCloseAndSave",callback(e){e._getEditorManager().closeEditorAndSaveChanges()}},{name:"editorCloseAndSaveByArrowKeys",callback(e,t,i){let o=e._getEditorManager(),r=o.getActiveEditor();if(!r?.isInFullEditMode()||r?.state!==rJ.EDITING){if(o.closeEditorAndSaveChanges(),e.isDestroyed)return void t.preventDefault();e.getSelected()&&(i.includes("arrowdown")?e.selection.transformStart(1,0):i.includes("arrowup")?e.selection.transformStart(-1,0):i.includes("arrowleft")?e.selection.transformStart(0,-1*e.getDirectionFactor()):i.includes("arrowright")&&e.selection.transformStart(0,e.getDirectionFactor())),t.preventDefault()}}},{name:"editorCloseAndSaveByEnter",callback(e,t){let i=e._getEditorManager();i.closeEditorAndSaveChanges(t.ctrlKey||t.metaKey),e.isDestroyed||i.moveSelectionAfterEnter(t)}},{name:"editorCloseWithoutSaving",callback(e){let t=e._getEditorManager();t.closeEditorAndRestoreOriginalValue(e.getShortcutManager().isCtrlPressed()),t.activeEditor?.focus()}},{name:"editorFastOpen",callback(e,t){let i=e.getSelectedRangeActive()?.highlight;i?.isHeader()||e._getEditorManager().openEditor(null,t,!0)}},{name:"editorOpen",callback(e,t,i){let{selection:o}=e,r=e._getEditorManager(),n=e.getSelectedRange(),s=e.getSelectedRangeActive(),l=s?.highlight;if((n?.some(e=>o.isMultiple(e))||(n?.length??0)>1)&&!s?.isHeader()&&ma(e)){let r=e.getSettings(),n="function"==typeof r.enterMoves?r.enterMoves(t):r.enterMoves;i.includes("shift")?o.transformFocus(-(n?.row??0),-(n?.col??0)):o.transformFocus(n?.row??0,n?.col??0);return}l?.isHeader()||(e.getSettings().enterBeginsEditing?(r.openEditor(null,t,!0),!r.isEditorOpened()&&r.cellProperties?.readOnly&&r.moveSelectionAfterEnter(t)):r.moveSelectionAfterEnter(t),rh(t))}},{name:"extendCellsSelectionDown",callback(e){let{selection:t}=e,i=e.getSelectedRangeActive()?.highlight;!t.isSelectedByColumnHeader()&&!t.isSelectedByCorner()&&(i?.isCell()||i?.isHeader()&&t.isSelectedByRowHeader())&&(t.markSource("keyboard"),t.transformEnd(1,0),t.markEndSource())}},{name:"extendCellsSelectionDownByViewportHeight",callback(e){let{selection:t,rowIndexMapper:i}=e,o=e.getSelectedRangeActive();if(!o)return;let{to:r}=o,n=r.row??0,s=Math.min(n+e.countVisibleRows(),e.countRows()-1),l=i.getNearestNotHiddenIndex(s,-1);if(null!==l){let i=e._createCellCoords(l,r.col??0),o=n-(e.getFirstFullyVisibleRow()??0),s=Math.min((i.row??0)-o,e.countRows()-1);t.markSource("keyboard"),t.setRangeEnd(i,e.getActiveSelectionLayerIndex()),t.markEndSource(),e.scrollViewportTo({row:s,verticalSnap:"top",horizontalSnap:"start"})}}},{name:"extendCellsSelectionLeft",callback(e){let{selection:t}=e,i=e.getSelectedRangeActive()?.highlight;!t.isSelectedByRowHeader()&&!t.isSelectedByCorner()&&(i?.isCell()||i?.isHeader()&&t.isSelectedByColumnHeader())&&(t.markSource("keyboard"),t.transformEnd(0,-1*e.getDirectionFactor()),t.markEndSource())}},{name:"extendCellsSelectionRight",callback(e){let{selection:t}=e,i=e.getSelectedRangeActive()?.highlight;!t.isSelectedByRowHeader()&&!t.isSelectedByCorner()&&(i?.isCell()||i?.isHeader()&&t.isSelectedByColumnHeader())&&(t.markSource("keyboard"),t.transformEnd(0,e.getDirectionFactor()),t.markEndSource())}},{name:"extendCellsSelectionToColumns",callback(e){let{selection:t}=e,i=e.getSelectedRangeActive();if(!i)return;let{highlight:o,from:r,to:n}=i;t.markSource("keyboard"),t.isSelectedByRowHeader()?t.selectAll(!0,!0):e.selectColumns(r.col??0,n.col??0,o),t.markEndSource()}},{name:"extendCellsSelectionToMostBottom",callback(e){let{selection:t,rowIndexMapper:i}=e,o=e.getSelectedRangeActive();if(!o)return;let{highlight:r,from:n,to:s}=o,l=r.isHeader()&&t.isSelectedByRowHeader();if(r.isCell()||l){let o=i.getNearestNotHiddenIndex(e.countRows()-1,-1),a=n.clone();a.row=r.row,t.markSource("keyboard"),t.setRangeStart(a,void 0,!1,r.clone()),l&&t.selectedByRowHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(o??0,s.col??0)),t.markEndSource()}}},{name:"extendCellsSelectionToMostInlineEnd",callback(e){let{selection:t}=e,i=e.getSelectedRangeActive();if(!i)return;let{highlight:o,from:r,to:n}=i;if(!t.isSelectedByRowHeader()&&!t.isSelectedByCorner()&&o.isCell()){let i=mD(e);if(null===i&&(e.getSettings().fixedColumnsEnd??0)>0)return;let s=r.clone();s.col=o.col,t.markSource("keyboard"),t.setRangeStart(s,void 0,!1,o.clone()),t.setRangeEnd(e._createCellCoords(n.row??0,i??0)),t.markEndSource()}}},{name:"extendCellsSelectionToMostInlineStart",callback(e){let{selection:t,columnIndexMapper:i}=e,o=e.getSelectedRangeActive();if(!o)return;let{highlight:r,from:n,to:s}=o;if(!t.isSelectedByRowHeader()&&!t.isSelectedByCorner()&&r.isCell()){let o=e.view.countFixedColumnsStart(),l=i.getNearestNotHiddenIndex(o,1),a=n.clone();a.col=r.col,t.markSource("keyboard"),t.setRangeStart(a,void 0,!1,r.clone()),t.setRangeEnd(e._createCellCoords(s.row??0,l??0)),t.markEndSource()}}},{name:"extendCellsSelectionToMostLeft",callback(e){let{selection:t,columnIndexMapper:i}=e,o=e.getSelectedRangeActive();if(!o)return;let{highlight:r,from:n,to:s}=o,l=r.isHeader()&&t.isSelectedByColumnHeader();if(r.isCell()||l){let o=e.isRtl()?i.getNearestNotHiddenIndex(e.countCols()-1,-1):i.getNearestNotHiddenIndex(0,1),a=n.clone();a.col=r.col,t.markSource("keyboard"),t.setRangeStart(a,void 0,!1,r.clone()),l&&t.selectedByColumnHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(s.row??0,o??0)),t.markEndSource()}}},{name:"extendCellsSelectionToMostRight",callback(e){let{selection:t,columnIndexMapper:i}=e,o=e.getSelectedRangeActive();if(!o)return;let{highlight:r,from:n,to:s}=o,l=r.isHeader()&&t.isSelectedByColumnHeader();if(r.isCell()||l){let o=e.isRtl()?i.getNearestNotHiddenIndex(0,1):i.getNearestNotHiddenIndex(e.countCols()-1,-1),a=n.clone();a.col=r.col,t.markSource("keyboard"),t.setRangeStart(a,void 0,!1,r.clone()),l&&t.selectedByColumnHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(s.row??0,o??0)),t.markEndSource()}}},{name:"extendCellsSelectionToMostTop",callback(e){let{selection:t,rowIndexMapper:i}=e,o=e.getSelectedRangeActive();if(!o)return;let{highlight:r,from:n,to:s}=o,l=r.isHeader()&&t.isSelectedByRowHeader();if(r.isCell()||l){let o=i.getNearestNotHiddenIndex(0,1),a=n.clone();a.row=r.row,t.markSource("keyboard"),t.setRangeStart(a,void 0,!1,r.clone()),l&&t.selectedByRowHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(o??0,s.col??0)),t.markEndSource()}}},{name:"extendCellsSelectionToRows",callback(e){let{selection:t}=e,i=e.getSelectedRangeActive();if(!i)return void t.markEndSource();let{highlight:o,from:r,to:n}=i;t.markSource("keyboard"),t.isSelectedByColumnHeader()?t.selectAll(!0,!0):e.selectRows(r.row??0,n.row??0,o),t.markEndSource()}},{name:"extendCellsSelectionUp",callback(e){let{selection:t}=e,i=e.getSelectedRangeActive()?.highlight;!t.isSelectedByColumnHeader()&&!t.isSelectedByCorner()&&(i?.isCell()||i?.isHeader()&&t.isSelectedByRowHeader())&&(t.markSource("keyboard"),t.transformEnd(-1,0),t.markEndSource())}},{name:"extendCellsSelectionUpByViewportHeight",callback(e){let{selection:t,rowIndexMapper:i}=e,o=e.getSelectedRangeActive();if(!o)return;let{to:r}=o,n=r.row??0,s=Math.max(n-e.countVisibleRows(),0),l=i.getNearestNotHiddenIndex(s,1);if(null!==l){let i=e._createCellCoords(l,r.col??0),o=n-(e.getFirstFullyVisibleRow()??0),s=Math.max((i.row??0)-o,0);t.markSource("keyboard"),t.setRangeEnd(i,e.getActiveSelectionLayerIndex()),t.markEndSource(),e.scrollViewportTo({row:s,verticalSnap:"top",horizontalSnap:"start"})}}},{name:"moveCellSelectionDown",callback({selection:e}){e.markSource("keyboard"),e.transformStart(1,0),e.markEndSource()}},{name:"moveCellSelectionDownByViewportHeight",callback(e){let{selection:t}=e,{navigableHeaders:i}=e.getSettings(),o=i?e.countColHeaders():0,r=e.getSelectedRangeActive()?.highlight.row??0,n=e.countVisibleRows()+o;n=0===n?1:n,r===e.countRows()-1?n=1:r+n>e.countRows()&&(n=e.countRows()-r-1),t.markSource("keyboard"),t.transformStart(n,0),t.markEndSource();let s=e.view.countFixedRowsBottom(),l=e.countRows(),a=e.getSelectedRangeActive()?.highlight.row??0;a<0?e.scrollViewportTo({row:0}):s>0&&a>=l-s&&e.scrollViewportTo({row:l-s-1,verticalSnap:"bottom"})}},{name:"moveCellSelectionInlineEnd",callback(e,t){let{selection:i}=e,o=e.getSettings(),r=e.getSelectedRange(),n=e.getSelectedRangeActive(),s="function"==typeof o.tabMoves?o.tabMoves(t):o.tabMoves;i.markSource("keyboard"),i.markTabNavigation(),(r?.some(e=>i.isMultiple(e))||(r?.length??0)>1)&&!n?.isHeader()&&ma(e)?i.transformFocus(-(s?.row??0),-(s?.col??0)):i.transformStart(-(s?.row??0),-(s?.col??0)),i.markEndSource()}},{name:"moveCellSelectionInlineStart",callback(e,t){let{selection:i}=e,o=e.getSettings(),r=e.getSelectedRange(),n=e.getSelectedRangeActive(),s="function"==typeof o.tabMoves?o.tabMoves(t):o.tabMoves;i.markSource("keyboard"),i.markTabNavigation(),(r?.some(e=>i.isMultiple(e))||(r?.length??0)>1)&&!n?.isHeader()&&ma(e)?i.transformFocus(s?.row??0,s?.col??0):i.transformStart(s?.row??0,s?.col??0),i.markEndSource()}},{name:"moveCellSelectionLeft",callback(e){let{selection:t}=e;t.markSource("keyboard"),t.transformStart(0,-1*e.getDirectionFactor()),t.markEndSource()}},{name:"moveCellSelectionRight",callback(e){let{selection:t}=e;t.markSource("keyboard"),t.transformStart(0,e.getDirectionFactor()),t.markEndSource()}},{name:"moveCellSelectionToMostBottom",callback(e){let{selection:t}=e,i=e.getSelectedRangeActive()?.highlight.col??0,o=e.rowIndexMapper.getNearestNotHiddenIndex(e.countRows()-1,-1);null===o&&(o=-1),t.setRangeStart(e._createCellCoords(o,i))}},{name:"moveCellSelectionToMostBottomInlineEnd",callback(e){let{selection:t,rowIndexMapper:i}=e,o=e.view.countFixedRowsBottom(),r=i.getNearestNotHiddenIndex(e.countRows()-o-1,-1),n=mD(e);null===n&&(e.getSettings().fixedColumnsEnd??0)>0||(t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(r??-1,n??-1)),t.markEndSource())}},{name:"moveCellSelectionToMostInlineEnd",callback(e){let{selection:t}=e,i=mD(e);null===i&&(e.getSettings().fixedColumnsEnd??0)>0||(t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(e.getSelectedRangeActive()?.highlight.row??0,i??0)),t.markEndSource())}},{name:"moveCellSelectionToMostInlineStart",callback(e){let{selection:t,columnIndexMapper:i}=e,o=e.view.countFixedColumnsStart(),r=e.getSelectedRangeActive()?.highlight.row??0,n=i.getNearestNotHiddenIndex(o,1);t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(r,n??0)),t.markEndSource()}},{name:"moveCellSelectionToMostLeft",callback(e){let{selection:t,columnIndexMapper:i}=e,o=e.getSelectedRangeActive()?.highlight.row??0,r=e.isRtl()?i.getNearestNotHiddenIndex(e.countCols()-1,-1):i.getNearestNotHiddenIndex(0,1);null===r&&(r=e.isRtl()?-1:-e.countRowHeaders()),t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(o,r)),t.markEndSource()}},{name:"moveCellSelectionToMostRight",callback(e){let{selection:t,columnIndexMapper:i}=e,o=e.getSelectedRangeActive()?.highlight.row??0,r=e.isRtl()?i.getNearestNotHiddenIndex(0,1):i.getNearestNotHiddenIndex(e.countCols()-1,-1);null===r&&(r=e.isRtl()?-e.countRowHeaders():-1),t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(o,r)),t.markEndSource()}},{name:"moveCellSelectionToMostTop",callback(e){let{selection:t}=e,i=e.getSelectedRangeActive()?.highlight.col??0,o=e.rowIndexMapper.getNearestNotHiddenIndex(0,1);null===o&&(o=-e.countColHeaders()),t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(o,i)),t.markEndSource()}},{name:"moveCellSelectionToMostTopInlineStart",callback(e){let{selection:t,rowIndexMapper:i,columnIndexMapper:o}=e,r=e.view.countFixedRowsTop(),n=e.view.countFixedColumnsStart(),s=i.getNearestNotHiddenIndex(r,1),l=o.getNearestNotHiddenIndex(n,1);t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(s??0,l??0)),t.markEndSource()}},{name:"moveCellSelectionUp",callback({selection:e}){e.markSource("keyboard"),e.transformStart(-1,0),e.markEndSource()}},{name:"moveCellSelectionUpByViewportHight",callback(e){let{selection:t}=e,{navigableHeaders:i}=e.getSettings(),o=i?e.countColHeaders():0,r=e.getSelectedRangeActive()?.highlight.row??0,n=e.countVisibleRows()+o;n=0===n?-1:-n,r===-o?n=-1:r+n<o&&(n=-(r+o)),t.markSource("keyboard"),t.transformStart(n,0),t.markEndSource();let s=e.view.countFixedRowsTop();(e.getSelectedRangeActive()?.highlight.row??0)<s&&e.scrollViewportTo({row:s,verticalSnap:"top"})}},{name:"emptySelectedCells",callback(e){e.emptySelectedCells(),e.isDestroyed||e._getEditorManager().prepareEditor()}},{name:"scrollToFocusedCell",callback(e){let t=e.getSelectedRangeActive()?.highlight;if(!t)return;let i=e.getFirstFullyVisibleRow()-1,o=e.getFirstFullyVisibleColumn()-1,r=e.getLastFullyVisibleRow()+1,n=e.getLastFullyVisibleColumn()+1,s=e._createCellCoords(i,o),l=e._createCellCoords(r,n);if(!e._createCellRange(s,s,l).includes(t)&&((t.row??-1)>=0||(t.col??-1)>=0)){let i={};if((t.col??-1)>=0){let o=Math.floor(e.countVisibleCols()/2);i.col=Math.max((t.col??0)-o,0)}if((t.row??-1)>=0){let o=Math.floor(e.countVisibleRows()/2);i.row=Math.max((t.row??0)-o,0)}e.scrollViewportTo({...i,verticalSnap:"top",horizontalSnap:"start"})}}},mP,{name:"selectAllCellsAndHeaders",callback({selection:e}){e.markSource("keyboard"),e.selectAll(!0,!0,{disableHeadersHighlight:!1}),e.markEndSource()}},{name:"populateSelectedCellsData",callback(e){let t=e.getSelectedRange();if(!t?.length)return;let i=(e.getSelectedRangeActive()??t[t.length-1]).highlight.normalize(),o=i.row??0,r=i.col??0,n=rj(e,e.getDataAtCell(o,r),t,o,r);n.length>0&&e.setDataAtCell(n)}},{name:"tabNavigation",callback(e){let t={wrapped:!1,flipped:!1},i=!1,o=!1;return e.addHook("afterSelection",(e,r,n,s,l)=>{i&&(t.wrapped&&t.flipped||o)&&(o=!1,l.value=!0)}),e.addHook("beforeRowWrap",(e,i,o)=>{t.wrapped=!0,t.flipped=o}),{before(){let{tabNavigation:t}=e.getSettings();i=!0,t||(o=!0)},after(o){let{tabNavigation:r,autoWrapRow:n}=e.getSettings();if(i=!1,!r||!mu(e)||!e.selection.isSelected()||n&&t.wrapped&&t.flipped||!n&&t.wrapped)return t.wrapped=!1,t.flipped=!1,e.deselectCell(),!1;o.preventDefault()}}}},{name:"openCellLink",callback(e){let t=m$(e);null!==t&&e.rootWindow.open(t.href,t.target||"_blank","noopener,noreferrer")}}];function mG(e){let t={};return mU.forEach(({name:i,callback:o})=>{t[i]=(...t)=>o(e,...t)}),t}function mj(e){let t=e.getShortcutManager().addContext("editor"),i=mG(e);t.addShortcuts([{keys:[["Enter"],["Enter","Shift"]],callback:(e,t)=>i.editorCloseAndSaveByEnter(e,t)},{keys:[["Enter","Control/Meta"],["Enter","Control/Meta","Shift"]],captureCtrl:!0,callback:(e,t)=>i.editorCloseAndSaveByEnter(e,t)},{keys:[["Tab"],["Tab","Shift"],["PageDown"],["PageUp"]],forwardToContext:e.getShortcutManager().getContext("grid"),callback:(e,t)=>i.editorCloseAndSave(e,t)},{keys:[["ArrowDown"],["ArrowUp"],["ArrowLeft"],["ArrowRight"]],preventDefault:!1,callback:(e,t)=>i.editorCloseAndSaveByArrowKeys(e,t)},{keys:[["Escape"],["Escape","Control/Meta"]],callback:()=>i.editorCloseWithoutSaving()}],{group:ml})}function mq(e){var t;let i,o=e.getShortcutManager().addContext("grid"),r=(t=mG(e),i={},Object.keys(t).forEach(o=>{let r=t[o];i[o]=(...t)=>{let i=mh(e)?e.getSelectedRangeActive()?.highlight:void 0;if(i?.isHeader()!==!0)return r(...t);let{row:o,col:n}=i,s=r(...t);return"number"==typeof o&&"number"==typeof n&&e.getSelectedRangeActive()?.highlight.isHeader()===!1&&e.selectCell(o,n),s}}),i),n=()=>eU(e.getSelected())&&mu(e);o.addShortcuts([{keys:[["F2"]],callback:e=>r.editorFastOpen(e)},{keys:[["Enter"],["Enter","Shift"]],callback:(e,t)=>r.editorOpen(e,t)},{keys:[["Backspace"],["Delete"]],callback:()=>r.emptySelectedCells()}],{group:ml,runOnlyIf:()=>eU(e.getSelected())&&md(e)}),o.addShortcuts(mn.map(e=>({keys:[e],callback:()=>{}})),{group:"gridClipboard",preventDefault:!1}),o.addShortcuts([{keys:[["Control/Meta","A"]],callback:()=>r.selectAllCells(),runOnlyIf:()=>n()&&!e.getSelectedRangeActive()?.highlight.isHeader()},{keys:[["Control/Meta","A"]],callback:()=>{},runOnlyIf:()=>!!(n()&&e.getSelectedRangeActive()?.highlight.isHeader()),preventDefault:!0},{keys:[["Control/Meta","Shift","Space"]],callback:()=>r.selectAllCellsAndHeaders()},{keys:[["Control/Meta","Enter"]],callback:()=>r.populateSelectedCellsData(),runOnlyIf:()=>{let t=e.getSelectedRangeActive()?.highlight;if(!eU(e.getSelected())||!md(e)||void 0===t||t.isHeader())return!1;let{row:i,col:o}=t.normalize();return rK(e,e.getDataAtCell(i,o),i,o)}},{keys:[["Alt","Enter"]],stopPropagation:!0,callback:()=>r.openCellLink(),runOnlyIf:()=>md(e)&&null!==m$(e)},{keys:[["Control","Space"]],captureCtrl:!0,callback:()=>r.extendCellsSelectionToColumns()},{keys:[["Shift","Space"]],stopPropagation:!0,callback:()=>r.extendCellsSelectionToRows()},{keys:[["ArrowUp"]],callback:()=>r.moveCellSelectionUp()},{keys:[["ArrowUp","Control/Meta"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostTop()},{keys:[["ArrowUp","Shift"]],callback:()=>r.extendCellsSelectionUp()},{keys:[["ArrowUp","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>r.extendCellsSelectionToMostTop(),runOnlyIf:()=>n()&&!(e.selection.isSelectedByCorner()||e.selection.isSelectedByColumnHeader())},{keys:[["ArrowDown"]],callback:()=>r.moveCellSelectionDown()},{keys:[["ArrowDown","Control/Meta"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostBottom()},{keys:[["ArrowDown","Shift"]],callback:()=>r.extendCellsSelectionDown()},{keys:[["ArrowDown","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>r.extendCellsSelectionToMostBottom(),runOnlyIf:()=>n()&&!(e.selection.isSelectedByCorner()||e.selection.isSelectedByColumnHeader())},{keys:[["ArrowLeft"]],callback:()=>r.moveCellSelectionLeft()},{keys:[["ArrowLeft","Control/Meta"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostLeft()},{keys:[["ArrowLeft","Shift"]],callback:()=>r.extendCellsSelectionLeft()},{keys:[["ArrowLeft","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>r.extendCellsSelectionToMostLeft(),runOnlyIf:()=>n()&&!(e.selection.isSelectedByCorner()||e.selection.isSelectedByRowHeader())},{keys:[["ArrowRight"]],callback:()=>r.moveCellSelectionRight()},{keys:[["ArrowRight","Control/Meta"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostRight()},{keys:[["ArrowRight","Shift"]],callback:()=>r.extendCellsSelectionRight()},{keys:[["ArrowRight","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>r.extendCellsSelectionToMostRight(),runOnlyIf:()=>n()&&!(e.selection.isSelectedByCorner()||e.selection.isSelectedByRowHeader())},{keys:[["Home"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostInlineStart(),runOnlyIf:()=>n()&&e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["Home","Shift"]],callback:()=>r.extendCellsSelectionToMostInlineStart()},{keys:[["Home","Control/Meta"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostTopInlineStart(),runOnlyIf:()=>n()&&e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["End"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostInlineEnd(),runOnlyIf:()=>n()&&e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["End","Shift"]],callback:()=>r.extendCellsSelectionToMostInlineEnd()},{keys:[["End","Control/Meta"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostBottomInlineEnd(),runOnlyIf:()=>n()&&e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["PageUp"]],callback:()=>r.moveCellSelectionUpByViewportHight()},{keys:[["PageUp","Shift"]],callback:()=>r.extendCellsSelectionUpByViewportHeight()},{keys:[["PageDown"]],callback:()=>r.moveCellSelectionDownByViewportHeight()},{keys:[["PageDown","Shift"]],callback:()=>r.extendCellsSelectionDownByViewportHeight()},{keys:[["Tab"]],preventDefault:!1,callback:e=>r.moveCellSelectionInlineStart(e)},{keys:[["Shift","Tab"]],preventDefault:!1,callback:e=>r.moveCellSelectionInlineEnd(e)},{keys:[["Control/Meta","Backspace"]],callback:()=>r.scrollToFocusedCell()}],{runOnlyIf:n,group:mr});let s=r.tabNavigation();o.addShortcuts([{keys:[["Tab"],["Shift","Tab"]],preventDefault:!1,stopPropagation:!1,relativeToGroup:mr,group:ms,position:"before",callback:e=>s.before(e)},{keys:[["Tab"],["Shift","Tab"]],preventDefault:!1,stopPropagation:!1,relativeToGroup:mr,group:ms,callback:e=>s.after(e),position:"after"}])}function mK(e){let{classNames:t}=iF(e,/ht-theme-[a-zA-Z0-9_-]+/);return t.pop()}let mY="handsontable-core-styles";function mX(e){return"string"==typeof e&&/ht-theme-.*/.test(e)}class mZ{#eb;#aL;#aB;#aV=null;#az=!1;#tf;#aW;#a$={};#aU={};#aG={};#aj=null;#aq;constructor({hot:e,rootElement:t,rootDocument:i,onThemeChange:o=e=>{},injectCoreCss:r=!0}){this.#eb=e,this.#aB=t,this.#tf=i,this.#aq=o,this.#aW=r,r&&this.#aK()}isCoreCssInjectionEnabled(){return this.#aW}getCSSVariableValue(e){if(this.#a$[`--ht-${e}`])return this.#a$[`--ht-${e}`];let t=this.#aY(`--ht-${e}`)??this.#aX(`--ht-${e}`);if(null!==t)return this.#a$[`--ht-${e}`]=t,t}getResolvedLength(e){if(e in this.#aU)return this.#aU[e];let t=this.#tf.createElement("div");t.style.cssText="position:absolute;visibility:hidden;pointer-events:none;box-sizing:content-box;height:0;margin:0;padding:0;border:0;",t.style.width=e,this.#aB.appendChild(t);let i=t.offsetWidth;return(this.#aB.removeChild(t),i>0)?(this.#aU[e]=i,i):null}getStyleForTD(e){return this.#aG?.td?.[e]}getDefaultRowHeight(e){let t=this.#aZ();return void 0!==e&&this.firstRenderedRowDrawsTopBorder()&&e===this.#eb.view.getFirstRenderedVisibleRow()?(t??0)+1:t}firstRenderedRowDrawsTopBorder(){return this.#eb.view?0===this.#eb.view.getColumnHeadersCount():!this.#eb.hasColHeaders()}areCellsBorderBox(){return"border-box"===this.getStyleForTD("box-sizing")}useTheme(e){mX(e)?(this.#aQ(),e!==this.#aL&&(this.#aL=e),this.#aq(this.#aL),this.#aJ()):ir(`${e} isn't a valid theme name. Please ensure it follows the format ht-theme-<theme-name>.`)}getThemeName(){return this.#aL}#aK(){if(!this.#eb||!this.#tf||!this.#tf.head)return;let e=this.#tf.getElementById(mY);if(e&&e instanceof HTMLStyleElement)return;let t=this.#tf.createElement("style");t.id=mY,t.textContent='/*!\n * Copyright (c) HANDSONCODE sp. z o. o.\n *\n * HANDSONTABLE is a software distributed by HANDSONCODE sp. z o. o., a Polish corporation based in\n * Gdynia, Poland, at Aleja Zwyciestwa 96-98, registered by the District Court in Gdansk under number\n * 538651, EU tax ID number: PL5862294002, share capital: PLN 67,200.00.\n *\n * This software is protected by applicable copyright laws, including international treaties, and dual-\n * licensed - depending on whether your use for commercial purposes, meaning intended for or\n * resulting in commercial advantage or monetary compensation, or not.\n *\n * If your use is strictly personal or solely for evaluation purposes, meaning for the purposes of testing\n * the suitability, performance, and usefulness of this software outside the production environment,\n * you agree to be bound by the terms included in the "handsontable-non-commercial-license.pdf" file.\n *\n * Your use of this software for commercial purposes is subject to the terms included in an applicable\n * license agreement.\n *\n * In any case, you must not make any such use of this software as to develop software which may be\n * considered competitive with this software.\n *\n * UNLESS EXPRESSLY AGREED OTHERWISE, HANDSONCODE PROVIDES THIS SOFTWARE ON AN "AS IS"\n * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, AND IN NO EVENT AND UNDER NO\n * LEGAL THEORY, SHALL HANDSONCODE BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY DIRECT,\n * INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM\n * USE OR INABILITY TO USE THIS SOFTWARE.\n *\n * Version: 19.0.0-rc4\n * Release date: 20/11/2026 (built at 20/11/2026 12:42:41)\n */\ndiv:where(.handsontable):not(p):not(p) span:where(.colHeader),div:where(.handsontable):not(p):not(p) span:where(.rowHeader),div:where(.handsontable):not(p):not(p) span:where(.ht-page-size-section__label),div:where(.handsontable):not(p):not(p) span:where(.ht-page-navigation-section__label),div:where(.handsontable):not(p):not(p) span:where(.ht-multi-select-arrow),div:where(.handsontable):not(p):not(p) span:where(.ht-multi-select-chip),div:where(.handsontable):not(p):not(p) span:where(.ht-multi-select-chip-label),div:where(.handsontable):not(p):not(p) span:where(.ht-multi-select-chip-remove),div:where(.handsontable):not(p):not(p) span:where(.ht-multi-select-overflow),div:where(.handsontable):not(p):not(p) span:where(.htUISelectCaptionLabel),div:where(.handsontable):not(p):not(p) span:where(.htCheckboxRendererBox),div:where(.handsontable):not(p):not(p) input:where(.htCheckboxRendererInput),div:where(.handsontable):not(p):not(p) span:where(.htCheckboxRendererLabelText),div:where(.handsontable):not(p):not(p) span:where(.ht_nestingLevel_empty),div:where(.handsontable):not(p):not(p) :where(.htUIInput)>input:where([type=text],[type=date],[type=datetime-local],[type=time],[type=button]),div:where(.handsontable):not(p):not(p) :where(.htUIRadio)>input:where([type=radio]),div:where(.handsontable):not(p):not(p) :where(.htItemWrapper)>span:where(.selected,.htMixed){padding:revert;margin:revert;border:revert;height:revert;font-size:revert;line-height:revert;font-weight:revert;letter-spacing:revert;font-family:revert}.ht-root-wrapper{font-family:var(--ht-font-family),-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;flex-direction:column;height:100%;display:flex;position:relative}.ht-root-wrapper.ht-shadow-dom{isolation:isolate}.ht-root-wrapper.ht-grid-follows-content>.ht-grid{flex-shrink:0;min-height:auto}.ht-root-wrapper.ht-slot-bottom-filled .ht-wrapper:not(.htHorizontallyScrollableByWindow) .ht_master .wtHolder,.ht-root-wrapper.ht-slot-bottom-filled .ht-wrapper:not(.htVerticallyScrollableByWindow) .ht_master .wtHolder,.ht-root-wrapper.ht-slot-top-filled .ht-wrapper:not(.htHorizontallyScrollableByWindow) .ht_master .wtHolder,.ht-root-wrapper.ht-slot-top-filled .ht-wrapper:not(.htVerticallyScrollableByWindow) .ht_master .wtHolder{background-color:var(--ht-background-color);box-shadow:inset 0 0 0 1px var(--ht-border-color)}.ht-root-wrapper.ht-slot-bottom-filled .ht-wrapper:not(.htHorizontallyScrollableByWindow) .ht_master .htScrollbarFrame,.ht-root-wrapper.ht-slot-bottom-filled .ht-wrapper:not(.htVerticallyScrollableByWindow) .ht_master .htScrollbarFrame,.ht-root-wrapper.ht-slot-top-filled .ht-wrapper:not(.htHorizontallyScrollableByWindow) .ht_master .htScrollbarFrame,.ht-root-wrapper.ht-slot-top-filled .ht-wrapper:not(.htVerticallyScrollableByWindow) .ht_master .htScrollbarFrame{box-shadow:inset 0 0 0 1px var(--ht-border-color)}.htFocusCatcher{opacity:0;z-index:-1;border:0;outline:0;width:0;height:0;margin:0;padding:0;position:absolute;display:block!important}.ht-grid{flex:auto;min-height:0;position:relative}.ht-grid-content{height:100%}.ht-slot-top,.ht-slot-bottom{flex:none;overflow-x:auto}.ht-slot-element{box-sizing:border-box;border:1px solid var(--ht-border-color);width:100%}.ht-slot-top>.ht-slot-element:not(:first-of-type){border-top-width:0}.ht-slot-top>.ht-slot-element:last-of-type,.ht-slot-bottom>.ht-slot-element:not(:last-of-type){border-bottom-width:0}.ht-slot-bottom>.ht-slot-element:first-of-type{border-top-width:0}.htScrollbarTest{scrollbar-width:auto;scrollbar-color:var(--ht-scrollbar-thumb-color)var(--ht-scrollbar-track-color)}.htScrollbarSafariTest::-webkit-scrollbar{width:9px;height:9px}.handsontable{font-family:var(--ht-font-family),-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:var(--ht-font-size);line-height:var(--ht-line-height);font-weight:var(--ht-font-weight);letter-spacing:var(--ht-letter-spacing);color:var(--ht-foreground-color);touch-action:manipulation;position:relative}.handsontable .wtHolder{scrollbar-width:auto;scrollbar-color:var(--ht-scrollbar-thumb-color)var(--ht-scrollbar-track-color)}.handsontable .wtHolder::-webkit-scrollbar{width:9px;height:9px}.handsontable .wtHolder::-webkit-scrollbar-track{background:var(--ht-scrollbar-track-color);border-radius:var(--ht-scrollbar-border-radius)}.handsontable .wtHolder::-webkit-scrollbar-thumb{background-color:var(--ht-scrollbar-thumb-color);border-radius:var(--ht-scrollbar-border-radius)}.handsontable .wtHolder::-webkit-scrollbar-corner{background:var(--ht-scrollbar-track-color);border-end-end-radius:var(--ht-scrollbar-border-radius)}.handsontable .htScrollbarProxy{scrollbar-width:auto;scrollbar-color:var(--ht-scrollbar-thumb-color)var(--ht-scrollbar-track-color);z-index:1;background:linear-gradient(var(--ht-scrollbar-track-color),var(--ht-scrollbar-track-color)),var(--ht-background-color);position:absolute}.handsontable .htScrollbarProxy>div{width:1px;height:1px}.handsontable .htScrollbarProxy::-webkit-scrollbar{width:9px;height:9px}.handsontable .htScrollbarProxy::-webkit-scrollbar-track{background:var(--ht-scrollbar-track-color);border-radius:var(--ht-scrollbar-border-radius)}.handsontable .htScrollbarProxy::-webkit-scrollbar-thumb{background-color:var(--ht-scrollbar-thumb-color);border-radius:var(--ht-scrollbar-border-radius)}.handsontable .htScrollbarProxy-vertical{overflow:hidden scroll}.handsontable .htScrollbarProxy-horizontal{overflow:scroll hidden}.handsontable .htScrollbarProxyFiller,.handsontable .htScrollbarCorner{z-index:1;background:linear-gradient(var(--ht-scrollbar-track-color),var(--ht-scrollbar-track-color)),var(--ht-background-color);position:absolute}.handsontable .htScrollbarFrame{z-index:2;pointer-events:none;position:absolute}.handsontable.ht-wrapper{width:100%;height:100%}.handsontable.ht-wrapper:not(.htFirstDatasetColumnNotRendered) :where(table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>td:first-child{border-inline-start-width:1px}.handsontable.htGhostTable.htNestedHeaders table{border-spacing:0;border-collapse:collapse}.handsontable.htGhostTable table thead th{border-bottom-width:0}.handsontable.htGhostTable table tbody tr:first-of-type th:first-child,.handsontable.htGhostTable table tbody tr:first-of-type td:first-child{height:calc(var(--ht-cell-vertical-padding)*2 + var(--ht-line-height) + 1px)}.handsontable.htGhostTable table tbody tr th,.handsontable.htGhostTable table tbody tr td{height:calc(var(--ht-cell-vertical-padding)*2 + var(--ht-line-height) + 1px);border-top-width:0}.handsontable:not(.htHorizontallyScrollableByWindow).htHasScrollX .ht_master .wtHolder,.handsontable:not(.htHorizontallyScrollableByWindow).htHasScrollY .ht_master .wtHolder,.handsontable:not(.htVerticallyScrollableByWindow).htHasScrollX .ht_master .wtHolder,.handsontable:not(.htVerticallyScrollableByWindow).htHasScrollY .ht_master .wtHolder{background-color:var(--ht-background-color);box-shadow:inset 0 0 0 1px var(--ht-border-color)}.handsontable:not(.htHorizontallyScrollableByWindow).htHasScrollX .ht_master .htScrollbarFrame,.handsontable:not(.htHorizontallyScrollableByWindow).htHasScrollY .ht_master .htScrollbarFrame,.handsontable:not(.htVerticallyScrollableByWindow).htHasScrollX .ht_master .htScrollbarFrame,.handsontable:not(.htVerticallyScrollableByWindow).htHasScrollY .ht_master .htScrollbarFrame{box-shadow:inset 0 0 0 1px var(--ht-border-color)}.handsontable :where(table.htCore>tbody,.htGhostTable>table>tbody)>tr.ht__row_even>th{background-color:var(--ht-row-header-even-background-color)}.handsontable :where(table.htCore>tbody,.htGhostTable>table>tbody)>tr.ht__row_even>td{background-color:var(--ht-row-cell-even-background-color)}.handsontable :where(table.htCore>tbody,.htGhostTable>table>tbody)>tr.ht__row_odd>th{background-color:var(--ht-row-header-odd-background-color)}.handsontable :where(table.htCore>tbody,.htGhostTable>table>tbody)>tr.ht__row_odd>td{background-color:var(--ht-row-cell-odd-background-color)}.handsontable :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr,table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th,.handsontable :where(table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>td{height:calc(var(--ht-cell-vertical-padding)*2 + var(--ht-line-height) + 1px);padding:var(--ht-cell-vertical-padding)var(--ht-cell-horizontal-padding);vertical-align:top;border-top-width:0;font-size:var(--ht-font-size);line-height:var(--ht-line-height);white-space:pre-wrap;empty-cells:show;box-sizing:border-box;color:var(--ht-foreground-color);border-inline-width:0 1px;border-style:solid;border-bottom-width:1px;border-top-color:var(--ht-cell-vertical-border-color);border-bottom-color:var(--ht-cell-vertical-border-color);border-inline-start-color:var(--ht-cell-horizontal-border-color);border-inline-end-color:var(--ht-cell-horizontal-border-color);outline:0;overflow:hidden}.handsontable :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr,table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th.invisibleSelection,.handsontable :where(table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>td.invisibleSelection{outline:none}.handsontable :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr,table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th.invisibleSelection::selection{background:0 0}.handsontable :where(table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>td.invisibleSelection::selection{background:0 0}.handsontable :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr,table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th{text-align:center;font-weight:var(--ht-header-font-weight);white-space:nowrap;color:var(--ht-header-foreground-color);background-color:var(--ht-header-background-color);position:relative;overflow:visible}.handsontable :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr,table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th:last-child{border-inline-width:0 1px;border-bottom-width:1px;border-inline-end-color:var(--ht-border-color)}.handsontable :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr,table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th:last-child.ht__active_highlight{border-inline-end-color:var(--ht-header-active-border-color)}.handsontable :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr,table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th:first-child{border-inline-start-color:var(--ht-border-color)}.handsontable :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr,table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th:first-child.ht__active_highlight{border-inline-start-color:var(--ht-header-active-border-color)}.handsontable :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr,table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th:first-child{border-inline-start-width:1px}.handsontable :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr,table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th.current{box-shadow:inset 0 0 0 1px var(--ht-cell-selection-border-color)}.handsontable :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr,table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th.active{color:var(--ht-header-active-foreground-color);background-color:var(--ht-header-active-background-color)}.handsontable :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr,table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th.ht__highlight{color:var(--ht-header-highlighted-foreground-color);background-color:var(--ht-header-highlighted-background-color)}.handsontable :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr,table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th.ht__active_highlight{border-color:var(--ht-header-active-border-color);color:var(--ht-header-active-foreground-color);background-color:var(--ht-header-active-background-color)}.handsontable :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr,table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th.ht__active_highlight-prev,.handsontable :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr,table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th.ht__active_highlight-seam{border-inline-end-color:var(--ht-header-active-border-color)}.handsontable.htRowHeaders .ht_master:not(.emptyColumns) :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr)>th.htLastRowHeaderColumn:not(.ht__active_highlight):not(.ht__active_highlight-prev),.handsontable.htRowHeaders .ht_master:not(.emptyColumns) :where(table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th:not(.ht__active_highlight):not(.ht__active_highlight-prev),.handsontable.htRowHeaders .ht_master:not(.emptyColumns)~.handsontable:not(.htGhostTable) :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr)>th.htLastRowHeaderColumn:not(.ht__active_highlight):not(.ht__active_highlight-prev),.handsontable.htRowHeaders .ht_master:not(.emptyColumns)~.handsontable:not(.htGhostTable) :where(table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th:not(.ht__active_highlight):not(.ht__active_highlight-prev),.handsontable.htRowHeaders .ht_master:not(.emptyColumns)~.htOverlayRail>.handsontable:not(.htGhostTable) :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr)>th.htLastRowHeaderColumn:not(.ht__active_highlight):not(.ht__active_highlight-prev),.handsontable.htRowHeaders .ht_master:not(.emptyColumns)~.htOverlayRail>.handsontable:not(.htGhostTable) :where(table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th:not(.ht__active_highlight):not(.ht__active_highlight-prev){border-inline-end-color:var(--ht-cell-horizontal-border-color)}.handsontable :where(table.htCore,.htGhostTable>table)>tbody>tr.ht__row_odd>th.ht__highlight,.handsontable :where(table.htCore,.htGhostTable>table)>tbody>tr.ht__row_even>th.ht__highlight{color:var(--ht-header-row-highlighted-foreground-color);background-color:var(--ht-header-row-highlighted-background-color)}.handsontable :where(table.htCore,.htGhostTable>table)>tbody>tr.ht__row_odd>th.ht__active_highlight,.handsontable :where(table.htCore,.htGhostTable>table)>tbody>tr.ht__row_even>th.ht__active_highlight{color:var(--ht-header-row-active-foreground-color);background-color:var(--ht-header-row-active-background-color)}.handsontable :where(table.htCore,.htGhostTable>table)>tbody>tr:first-of-type>th:first-child:empty:after,.handsontable :where(table.htCore,.htGhostTable>table)>tbody>tr:first-of-type>td:first-child:empty:after{content:"";min-height:var(--ht-line-height);display:block}.handsontable :where(table.htCore,.htGhostTable>table)>tbody>tr>th{color:var(--ht-header-row-foreground-color);background-color:var(--ht-header-row-background-color);padding:0}.handsontable :where(table.htCore,.htGhostTable>table)>tbody>tr>th .relative{padding:var(--ht-cell-vertical-padding)var(--ht-cell-horizontal-padding);min-height:100%}.handsontable :where(table.htCore,.htGhostTable>table)>tbody>tr>td:first-child{border-inline-start-color:var(--ht-border-color)}.handsontable :where(table.htCore,.htGhostTable>table)>tbody>tr>td:last-child{border-inline-end-color:var(--ht-border-color)}.handsontable :where(table.htCore,.htGhostTable>table)>tbody>tr>th.ht__active_highlight-prev-row{border-bottom-color:var(--ht-header-active-border-color)}.handsontable :where(table.htCore,.htGhostTable>table)>thead>tr>th{padding:0}.handsontable :where(table.htCore,.htGhostTable>table)>thead>tr>th.ht__active_highlight{box-shadow:-1px 0 0 0 var(--ht-header-active-border-color)}.handsontable :where(table.htCore,.htGhostTable>table)>thead>tr>th .relative{padding:var(--ht-cell-vertical-padding)var(--ht-cell-horizontal-padding);flex-direction:row;align-items:center;gap:2px;display:flex}.handsontable :where(table.htCore,.htGhostTable>table)>thead>tr>th .relative .colHeader{text-overflow:ellipsis;vertical-align:top;flex:auto;min-width:0;overflow:hidden}.handsontable :where(table.htCore>thead,table.htCore>tbody,.htGhostTable>table>thead,.htGhostTable>table>tbody)>tr:first-child>th,.handsontable :where(table.htCore>thead,table.htCore>tbody,.htGhostTable>table>thead,.htGhostTable>table>tbody)>tr:first-child>td{border-top-color:var(--ht-border-color);border-top-width:1px}.handsontable :where(table.htCore>thead,table.htCore>tbody,.htGhostTable>table>thead,.htGhostTable>table>tbody)>tr:first-child>th.ht__active_highlight,.handsontable :where(table.htCore>thead,table.htCore>tbody,.htGhostTable>table>thead,.htGhostTable>table>tbody)>tr:first-child>th.ht__active_highlight-row-seam-bottom,.handsontable :where(table.htCore>thead,table.htCore>tbody,.htGhostTable>table>thead,.htGhostTable>table>tbody)>tr:first-child>td.ht__active_highlight,.handsontable :where(table.htCore>thead,table.htCore>tbody,.htGhostTable>table>thead,.htGhostTable>table>tbody)>tr:first-child>td.ht__active_highlight-row-seam-bottom{border-top-color:var(--ht-header-active-border-color)}.handsontable :where(table.htCore,.htGhostTable>table)>thead:not(:empty)+tbody>tr:first-child>th,.handsontable :where(table.htCore,.htGhostTable>table)>thead:not(:empty)+tbody>tr:first-child>td{border-top-width:0}.handsontable :where(table.htCore>thead,table.htCore>tbody,.htGhostTable>table>thead,.htGhostTable>table>tbody)>tr:last-child>th,.handsontable :where(table.htCore>thead,table.htCore>tbody,.htGhostTable>table>thead,.htGhostTable>table>tbody)>tr:last-child>td{border-bottom-color:var(--ht-border-color)}.handsontable :where(table.htCore>thead,table.htCore>tbody,.htGhostTable>table>thead,.htGhostTable>table>tbody)>tr:last-child>th.ht__active_highlight,.handsontable :where(table.htCore>thead,table.htCore>tbody,.htGhostTable>table>thead,.htGhostTable>table>tbody)>tr:last-child>th.ht__active_highlight-row-seam-top,.handsontable :where(table.htCore>thead,table.htCore>tbody,.htGhostTable>table>thead,.htGhostTable>table>tbody)>tr:last-child>td.ht__active_highlight,.handsontable :where(table.htCore>thead,table.htCore>tbody,.htGhostTable>table>thead,.htGhostTable>table>tbody)>tr:last-child>td.ht__active_highlight-row-seam-top{border-bottom-color:var(--ht-header-active-border-color)}.handsontable div[class^=ht_clone] thead .ht__highlight .relative:after{content:"";height:var(--ht-header-highlighted-shadow-size);background-color:var(--ht-accent-color);display:block;position:absolute;bottom:-1px;left:-1px;right:-1px}.handsontable div[class^=ht_clone] thead tr:only-of-type .ht__highlight .relative:after{bottom:0}.handsontable div[class^=ht_clone] tbody .ht__highlight .relative:after{content:"";width:var(--ht-header-highlighted-shadow-size);background-color:var(--ht-accent-color);display:block;position:absolute;top:-1px;bottom:-1px;right:-1px}.handsontable div[class^=ht_clone] :where(table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>td:first-child{border-inline-start-width:1px}.handsontable div[class^=ht_clone].htFreezeLineShared.ht_clone_inline_end :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr,table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th:first-child,.handsontable div[class^=ht_clone].htFreezeLineShared.ht_clone_inline_end :where(table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>td:first-child,.handsontable div[class^=ht_clone].htFreezeLineShared.ht_clone_top_inline_end_corner :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr,table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th:first-child,.handsontable div[class^=ht_clone].htFreezeLineShared.ht_clone_top_inline_end_corner :where(table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>td:first-child,.handsontable div[class^=ht_clone].htFreezeLineShared.ht_clone_bottom_inline_end_corner :where(table.htCore>thead>tr,.htGhostTable>table>thead>tr,table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>th:first-child,.handsontable div[class^=ht_clone].htFreezeLineShared.ht_clone_bottom_inline_end_corner :where(table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>td:first-child{border-inline-start-width:0}.handsontable :where(table.htCore,.htGhostTable>table)>thead>tr:not(:last-child)>th{overflow:hidden}.handsontable .hide{display:none}.handsontable .relative{box-sizing:border-box;position:relative}.handsontable tr.htExactRow>td,.handsontable tr.htExactRow>th{height:auto;position:relative}.handsontable tr.htExactRow>td{padding:0}.handsontable tr.htExactRow>td>.htCellClip{inset:var(--ht-cell-vertical-padding)var(--ht-cell-horizontal-padding);box-sizing:border-box;border:0;min-height:0;margin:0;padding:0;position:absolute;overflow:hidden}.handsontable tr.htExactRow>td.htMiddle>.htCellClip{align-content:center}.handsontable tr.htExactRow>td.htBottom>.htCellClip{align-content:end}.handsontable tr.htExactRow>th>.relative{min-height:0;position:absolute;inset:0}.handsontable tr.htExactRow>th>.relative>.rowHeader{height:100%;display:block;overflow:hidden}.handsontable .wtHider{width:0}.handsontable .wtSpreader{width:0;height:auto;position:relative}.handsontable .htAutoSize{visibility:hidden;position:absolute;top:-99000px;left:-99000px}.handsontable.htGhostTable.htAutoSize{width:auto}.handsontable .htTextEllipsis{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.handsontable .htLineClamp{-webkit-line-clamp:var(--ht-text-line-clamp);white-space:pre-wrap;box-sizing:border-box;border:0;-webkit-box-orient:vertical;min-height:0;margin:0;padding:0;display:-webkit-box;overflow:hidden}.handsontable .htMergedCellContentWindow{box-sizing:border-box;border:0;margin:0;padding:0;display:block}.handsontable tr.htExactRow>td.htTextEllipsis>.htCellClip{text-overflow:ellipsis}.handsontable table.htCore,.handsontable:where(.htGhostTable)>table,.handsontable :where(table.htCore,.htGhostTable>table)>thead,.handsontable :where(table.htCore,.htGhostTable>table)>tbody,.handsontable input:not(:where(table.htCore>tbody>tr>td:not(.htCustomMenuRenderer) :not(.htCheckboxRendererInput),.htGhostTable>table>tbody>tr>td:not(.htCustomMenuRenderer) :not(.htCheckboxRendererInput))),.handsontable textarea:not(:where(table.htCore>tbody>tr>td:not(.htCustomMenuRenderer) :not(.htCheckboxRendererInput),.htGhostTable>table>tbody>tr>td:not(.htCustomMenuRenderer) :not(.htCheckboxRendererInput))),.handsontable div:not(:where(table.htCore>tbody>tr>td:not(.htCustomMenuRenderer) :not(.htCheckboxRendererInput),.htGhostTable>table>tbody>tr>td:not(.htCustomMenuRenderer) :not(.htCheckboxRendererInput))){box-sizing:content-box}.handsontable input:not(:where(table.htCore>tbody>tr>td:not(.htCustomMenuRenderer) :not(.htCheckboxRendererInput),.htGhostTable>table>tbody>tr>td:not(.htCustomMenuRenderer) :not(.htCheckboxRendererInput))),.handsontable textarea:not(:where(table.htCore>tbody>tr>td:not(.htCustomMenuRenderer) :not(.htCheckboxRendererInput),.htGhostTable>table>tbody>tr>td:not(.htCustomMenuRenderer) :not(.htCheckboxRendererInput))){min-height:initial}.handsontable .htCore{border-spacing:0;border-collapse:separate;table-layout:fixed;cursor:default;background-color:var(--ht-background-color);border-width:0;outline-width:0;width:0;margin:0}.handsontable :where(table.htCore,.htGhostTable>table)>colgroup>col,.handsontable :where(table.htCore,.htGhostTable>table)>colgroup>col.rowHeader{width:64px}.handsontable :where(table.htCore,.htGhostTable>table)>colgroup>col.hidden{width:0!important}.handsontable span.colHeader,.handsontable span.rowHeader{font-size:var(--ht-font-size);line-height:var(--ht-line-height);display:inline-block}.handsontable :where(table.htCore>thead,table.htCore>tbody,.htGhostTable>table>thead,.htGhostTable>table>tbody)>tr.hidden,.handsontable :where(table.htCore>thead,table.htCore>tbody,.htGhostTable>table>thead,.htGhostTable>table>tbody)>tr.hidden>td,.handsontable :where(table.htCore>thead,table.htCore>tbody,.htGhostTable>table>thead,.htGhostTable>table>tbody)>tr.hidden>th{display:none}.handsontable a:not(:where(table.htCore>tbody>tr>td:not(.htCustomMenuRenderer) :not(.htCheckboxRendererInput),.htGhostTable>table>tbody>tr>td:not(.htCustomMenuRenderer) :not(.htCheckboxRendererInput))){color:var(--ht-link-color)}.handsontable a:not(:where(table.htCore>tbody>tr>td:not(.htCustomMenuRenderer) :not(.htCheckboxRendererInput),.htGhostTable>table>tbody>tr>td:not(.htCustomMenuRenderer) :not(.htCheckboxRendererInput))):hover{color:var(--ht-link-hover-color)}.handsontable .ht_master table.htCore>thead,.handsontable .ht_master table.htCore>tbody>tr>th,.handsontable .ht_clone_inline_start table.htCore>thead,.handsontable .ht_clone_inline_end table.htCore>thead{visibility:hidden}.ht_master,.ht_clone_inline_start,.ht_clone_inline_end,.ht_clone_top,.ht_clone_bottom,.ht_master .wtHolder,.ht_clone_inline_start .wtHolder,.ht_clone_inline_end .wtHolder,.ht_clone_top .wtHolder,.ht_clone_bottom .wtHolder{overflow:hidden}.handsontable .ht_clone_inline_start .wtHolder,.handsontable .ht_clone_inline_end .wtHolder,.handsontable .ht_clone_top .wtHolder,.handsontable .ht_clone_bottom .wtHolder{overflow-anchor:none;scrollbar-width:none!important}.handsontable .ht_clone_inline_start .wtHolder::-webkit-scrollbar{display:none}.handsontable .ht_clone_inline_end .wtHolder::-webkit-scrollbar{display:none}.handsontable .ht_clone_top .wtHolder::-webkit-scrollbar{display:none}.handsontable .ht_clone_bottom .wtHolder::-webkit-scrollbar{display:none}.ht_clone_inline_start .wtHolder,.ht_clone_inline_end .wtHolder{overflow:hidden auto}.ht_clone_top .wtHolder,.ht_clone_bottom .wtHolder{overflow:auto hidden}.htScrollbarClearanceFillers{overflow-anchor:none;z-index:300;block-size:0;inline-size:0;position:sticky;inset-block-start:0;inset-inline-start:0}.htScrollbarClearanceFiller{background-color:var(--ht-scrollbar-track-color,var(--ht-background-color));pointer-events:none;box-sizing:border-box;position:absolute}.ht_master .wtHolder{overflow:auto}[dir=rtl].handsontable :where(table.htCore>tbody>tr,.htGhostTable>table>tbody>tr)>td[dir=ltr]{border-inline-width:1px 0}[dir=rtl].handsontable :where(table.htCore,.htGhostTable>table)>tbody>tr>td[dir=ltr]:last-child{border-inline-start-color:var(--ht-border-color)}[dir=rtl].handsontable div[class^=ht_clone] tbody .ht__highlight .relative:after{left:-1px;right:auto}.handsontable.ht-wrapper{border-radius:var(--ht-border-radius)}.handsontable.ht-wrapper:not(.htColumnHeaders) .ht_master .htCore>tbody>tr:first-child>td:first-child{border-start-start-radius:var(--ht-border-radius)}.handsontable.ht-wrapper:not(.htColumnHeaders) .ht_master .htCore>tbody>tr:first-child>td:last-child{border-start-end-radius:var(--ht-border-radius)}.handsontable.ht-wrapper:not(.htColumnHeaders) .ht_clone_top_inline_start_corner .htCore>tbody>tr:first-child>td:first-child{border-start-start-radius:var(--ht-border-radius)}.handsontable.ht-wrapper:not(.htColumnHeaders) .ht_clone_top_inline_end_corner .htCore>tbody>tr:first-child>td:last-child{border-start-end-radius:var(--ht-border-radius)}.handsontable.ht-wrapper:not(.htColumnHeaders) .ht_clone_top .htCore>tbody>tr:first-child>td:first-child{border-start-start-radius:var(--ht-border-radius)}.handsontable.ht-wrapper:not(.htColumnHeaders) .ht_clone_top .htCore>tbody>tr:first-child>td:last-child{border-start-end-radius:var(--ht-border-radius)}.handsontable.ht-wrapper:not(.htColumnHeaders) .ht_clone_inline_start .htCore>tbody>tr:first-child>th:first-child,.handsontable.ht-wrapper:not(.htColumnHeaders) .ht_clone_inline_start .htCore>tbody>tr:first-child>td:first-child{border-start-start-radius:var(--ht-border-radius)}.handsontable.ht-wrapper:not(.htColumnHeaders) .ht_clone_inline_end .htCore>tbody>tr:first-child>td:last-child{border-start-end-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_master .wtHolder,.handsontable.ht-wrapper .ht_master .htCore{border-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_master .htCore>thead>tr:first-child>th:first-child{border-start-start-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_master .htCore>thead>tr:first-child>th:not(.hiddenHeader).htLastVisibleHeader{border-start-end-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_master .htCore>thead>tr:last-child>th:first-child{border-end-start-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_master .htCore>thead>tr:last-child>th:not(.hiddenHeader).htLastVisibleHeader{border-end-end-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_master .htCore>tbody>tr:last-child>td:first-child{border-end-start-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_master .htCore>tbody>tr:last-child>td:last-child{border-end-end-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_clone_top_inline_start_corner .htCore,.handsontable.ht-wrapper .ht_clone_top_inline_start_corner .htCore>thead>tr:first-child>th:first-child{border-start-start-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_clone_top_inline_end_corner .htCore,.handsontable.ht-wrapper .ht_clone_top_inline_end_corner .htCore>thead>tr:first-child>th:last-child{border-start-end-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_clone_top .htCore{border-start-start-radius:var(--ht-border-radius);border-start-end-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_clone_top .htCore>thead>tr:first-child>th:first-child{border-start-start-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_clone_top .htCore>thead>tr:first-child>th:not(.hiddenHeader).htLastVisibleHeader{border-start-end-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_clone_inline_start .htCore{border-start-start-radius:var(--ht-border-radius);border-end-start-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_clone_inline_start .htCore>thead>tr:first-child>th:first-child{border-start-start-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_clone_inline_start .htCore>tbody>tr:last-child>th:first-child,.handsontable.ht-wrapper .ht_clone_inline_start .htCore>tbody>tr:last-child>td:first-child{border-end-start-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_clone_inline_end .htCore{border-start-end-radius:var(--ht-border-radius);border-end-end-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_clone_inline_end .htCore>thead>tr:first-child>th:last-child{border-start-end-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_clone_inline_end .htCore>tbody>tr:last-child>td:last-child{border-end-end-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_clone_bottom_inline_start_corner .htCore,.handsontable.ht-wrapper .ht_clone_bottom_inline_start_corner .htCore>:where(thead,tbody)>tr:last-child>th:first-child,.handsontable.ht-wrapper .ht_clone_bottom_inline_start_corner .htCore>:where(thead,tbody)>tr:last-child>td:first-child{border-end-start-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_clone_bottom_inline_end_corner .htCore,.handsontable.ht-wrapper .ht_clone_bottom_inline_end_corner .htCore>:where(thead,tbody)>tr:last-child>th:last-child,.handsontable.ht-wrapper .ht_clone_bottom_inline_end_corner .htCore>:where(thead,tbody)>tr:last-child>td:last-child{border-end-end-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_clone_bottom .htCore{border-end-end-radius:var(--ht-border-radius);border-end-start-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_clone_bottom .htCore>:where(thead,tbody)>tr:last-child>th:first-child,.handsontable.ht-wrapper .ht_clone_bottom .htCore>:where(thead,tbody)>tr:last-child>td:first-child{border-end-start-radius:var(--ht-border-radius)}.handsontable.ht-wrapper .ht_clone_bottom .htCore>:where(thead,tbody)>tr:last-child>th:last-child,.handsontable.ht-wrapper .ht_clone_bottom .htCore>:where(thead,tbody)>tr:last-child>td:last-child{border-end-end-radius:var(--ht-border-radius)}.handsontable.ht-wrapper.htHasScrollX:not(.htHorizontallyScrollableByWindow) .htCore{border-end-end-radius:0;border-end-start-radius:0}.handsontable.ht-wrapper.htHasScrollX:not(.htHorizontallyScrollableByWindow) .htCore>thead>tr:last-child>th:first-child,.handsontable.ht-wrapper.htHasScrollX:not(.htHorizontallyScrollableByWindow) .htCore>tbody>tr:last-child>td:first-child,.handsontable.ht-wrapper.htHasScrollX:not(.htHorizontallyScrollableByWindow) .htCore>tbody>tr:last-child>th:first-child{border-end-start-radius:0}.handsontable.ht-wrapper.htHasScrollX:not(.htHorizontallyScrollableByWindow) .htCore>thead>tr:last-child>th:not(.hiddenHeader).htLastVisibleHeader,.handsontable.ht-wrapper.htHasScrollX:not(.htHorizontallyScrollableByWindow) .htCore>tbody>tr:last-child>td:last-child,.handsontable.ht-wrapper.htHasScrollX:not(.htHorizontallyScrollableByWindow) .htCore>tbody>tr:last-child>th:last-child{border-end-end-radius:0}.handsontable.ht-wrapper.htHasScrollY:not(.htVerticallyScrollableByWindow) .htCore{border-start-end-radius:0;border-end-end-radius:0}.handsontable.ht-wrapper.htHasScrollY:not(.htVerticallyScrollableByWindow) .htCore>thead>tr:first-child>th:not(.hiddenHeader).htLastVisibleHeader,.handsontable.ht-wrapper.htHasScrollY:not(.htVerticallyScrollableByWindow) .htCore>tbody>tr:first-child>td:last-child,.handsontable.ht-wrapper.htHasScrollY:not(.htVerticallyScrollableByWindow) .htCore>tbody>tr:first-child>th:last-child{border-start-end-radius:0}.handsontable.ht-wrapper.htHasScrollY:not(.htVerticallyScrollableByWindow) .htCore>thead>tr:last-child>th:not(.hiddenHeader).htLastVisibleHeader,.handsontable.ht-wrapper.htHasScrollY:not(.htVerticallyScrollableByWindow) .htCore>tbody>tr:last-child>td:last-child,.handsontable.ht-wrapper.htHasScrollY:not(.htVerticallyScrollableByWindow) .htCore>tbody>tr:last-child>th:last-child{border-end-end-radius:0}.ht-root-wrapper{border-radius:var(--ht-border-radius)}.ht-root-wrapper.ht-slot-bottom-filled .ht-wrapper,.ht-root-wrapper.ht-slot-bottom-filled .ht_master .wtHolder{border-end-end-radius:0;border-end-start-radius:0}.ht-root-wrapper.ht-slot-bottom-filled .htCore{border-end-end-radius:0!important;border-end-start-radius:0!important}.ht-root-wrapper.ht-slot-bottom-filled .htCore>thead>tr:last-child>th:first-child,.ht-root-wrapper.ht-slot-bottom-filled .htCore>tbody>tr:last-child>td:first-child,.ht-root-wrapper.ht-slot-bottom-filled .htCore>tbody>tr:last-child>th:first-child{border-end-start-radius:0!important}.ht-root-wrapper.ht-slot-bottom-filled .htCore>thead>tr:last-child>th:not(.hiddenHeader).htLastVisibleHeader,.ht-root-wrapper.ht-slot-bottom-filled .htCore>tbody>tr:last-child>td:last-child,.ht-root-wrapper.ht-slot-bottom-filled .htCore>tbody>tr:last-child>th:last-child{border-end-end-radius:0!important}.ht-root-wrapper.ht-slot-top-filled .ht-wrapper,.ht-root-wrapper.ht-slot-top-filled .ht_master .wtHolder{border-start-start-radius:0;border-start-end-radius:0}.ht-root-wrapper.ht-slot-top-filled .htCore{border-start-start-radius:0!important;border-start-end-radius:0!important}.ht-root-wrapper.ht-slot-top-filled .htCore>thead>tr:first-child>th:first-child,.ht-root-wrapper.ht-slot-top-filled .htCore>tbody>tr:first-child>td:first-child,.ht-root-wrapper.ht-slot-top-filled .htCore>tbody>tr:first-child>th:first-child{border-start-start-radius:0!important}.ht-root-wrapper.ht-slot-top-filled .htCore>thead>tr:first-child>th:not(.hiddenHeader).htLastVisibleHeader,.ht-root-wrapper.ht-slot-top-filled .htCore>tbody>tr:first-child>td:last-child,.ht-root-wrapper.ht-slot-top-filled .htCore>tbody>tr:first-child>th:last-child{border-start-end-radius:0!important}.ht-root-wrapper .ht-slot-element{border-radius:var(--ht-border-radius)}.ht-root-wrapper .ht-slot-bottom>.ht-slot-element:not(:last-of-type){border-radius:0}.ht-root-wrapper .ht-slot-bottom>.ht-slot-element:last-of-type{border-start-start-radius:0;border-start-end-radius:0}.ht-root-wrapper .ht-slot-top>.ht-slot-element:not(:first-of-type){border-radius:0}.ht-root-wrapper .ht-slot-top>.ht-slot-element:first-of-type{border-end-end-radius:0;border-end-start-radius:0}.handsontable.mobile,.handsontable.mobile .wtHolder{-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:#0000;-webkit-overflow-scrolling:touch}.handsontable.mobile .handsontableInput:focus{box-shadow:inset 0 0 0 2px var(--ht-accent-color);-webkit-appearance:none}.handsontable .topSelectionHandle,.handsontable .topSelectionHandle-HitArea,.handsontable .bottomSelectionHandle,.handsontable .bottomSelectionHandle-HitArea{z-index:9999;inset-inline-start:-10000px;inset-inline-end:unset;top:-10000px}.handsontable.hide-tween{animation:.2s forwards opacity-hide}.handsontable.show-tween{animation:.3s forwards opacity-show}.ht_master{z-index:0}.ht_clone_master{z-index:100}.ht_clone_inline_start,.ht_clone_inline_end{z-index:120}.ht_clone_bottom{z-index:130}.ht_clone_bottom_inline_start_corner,.ht_clone_bottom_inline_end_corner{z-index:150}.ht_clone_top{z-index:160}.ht_clone_top_inline_start_corner,.ht_clone_top_inline_end_corner{z-index:180}.ht_editor_hidden{z-index:-1}.ht_editor_visible{z-index:200}.handsontable td.area{position:relative}.handsontable td.area:before{content:"";background:var(--ht-cell-selection-background-color,#1a42e8);position:absolute;inset:0}.handsontable td.area-1{position:relative}.handsontable td.area-1:before{content:"";background:var(--ht-cell-selection-background-color,#1a42e8);position:absolute;inset:0}.handsontable td.area-2{position:relative}.handsontable td.area-2:before{content:"";background:var(--ht-cell-selection-background-color,#1a42e8);position:absolute;inset:0}.handsontable td.area-3{position:relative}.handsontable td.area-3:before{content:"";background:var(--ht-cell-selection-background-color,#1a42e8);position:absolute;inset:0}.handsontable td.area-4{position:relative}.handsontable td.area-4:before{content:"";background:var(--ht-cell-selection-background-color,#1a42e8);position:absolute;inset:0}.handsontable td.area-5{position:relative}.handsontable td.area-5:before{content:"";background:var(--ht-cell-selection-background-color,#1a42e8);position:absolute;inset:0}.handsontable td.area-6{position:relative}.handsontable td.area-6:before{content:"";background:var(--ht-cell-selection-background-color,#1a42e8);position:absolute;inset:0}.handsontable td.area-7{position:relative}.handsontable td.area-7:before{content:"";background:var(--ht-cell-selection-background-color,#1a42e8);position:absolute;inset:0}.handsontable td.area:before{opacity:.14}.handsontable td.area-1:before{opacity:.21}.handsontable td.area-2:before{opacity:.28}.handsontable td.area-3:before{opacity:.35}.handsontable td.area-4:before{opacity:.42}.handsontable td.area-5:before{opacity:.49}.handsontable td.area-6:before{opacity:.56}.handsontable td.area-7:before{opacity:.63}.handsontable td.area{border-color:color-mix(in srgb,var(--ht-border-color),var(--ht-foreground-color)10%)}.handsontable .wtSelectionHandle{box-sizing:border-box;z-index:115;background:var(--ht-cell-selection-handle-background-color);border:var(--ht-cell-selection-handle-border-width)solid var(--ht-cell-selection-handle-border-color);border-radius:var(--ht-cell-selection-handle-border-radius);animation:ht-selection-handle-fade-in var(--ht-table-transition)ease-in-out backwards;position:absolute}.handsontable .wtSelectionHandle:hover{background:color-mix(in srgb,var(--ht-cell-selection-handle-border-color)30%,var(--ht-cell-selection-handle-background-color))}@media (prefers-reduced-motion:reduce){.handsontable .wtSelectionHandle{animation:none}}.handsontable .wtSelectionHandle--top,.handsontable .wtSelectionHandle--bottom{width:var(--ht-cell-selection-handle-length);height:var(--ht-cell-selection-handle-size);cursor:ns-resize}.handsontable .wtSelectionHandle--start,.handsontable .wtSelectionHandle--end{width:var(--ht-cell-selection-handle-size);height:var(--ht-cell-selection-handle-length);cursor:ew-resize}.handsontable.ht__resizing-selection--top .wtSelectionHandle:not(.wtSelectionHandle--top),.handsontable.ht__resizing-selection--bottom .wtSelectionHandle:not(.wtSelectionHandle--bottom),.handsontable.ht__resizing-selection--start .wtSelectionHandle:not(.wtSelectionHandle--start),.handsontable.ht__resizing-selection--end .wtSelectionHandle:not(.wtSelectionHandle--end){display:none!important}.handsontable.ht__resizing-selection--top,.handsontable.ht__resizing-selection--top *,.handsontable.ht__resizing-selection--bottom,.handsontable.ht__resizing-selection--bottom *{cursor:ns-resize!important}.handsontable.ht__resizing-selection--start,.handsontable.ht__resizing-selection--start *,.handsontable.ht__resizing-selection--end,.handsontable.ht__resizing-selection--end *{cursor:ew-resize!important}.handsontable.ht__resizing-selection--top .wtSelectionHandle--top,.handsontable.ht__resizing-selection--bottom .wtSelectionHandle--bottom,.handsontable.ht__resizing-selection--start .wtSelectionHandle--start,.handsontable.ht__resizing-selection--end .wtSelectionHandle--end{background:color-mix(in srgb,var(--ht-cell-selection-handle-border-color)30%,var(--ht-cell-selection-handle-background-color))}.handsontable .wtMoveZone{cursor:grab}.handsontable .wtMoveZone:active,.handsontable.ht__moving{cursor:grabbing}.handsontable.ht__moving *{cursor:grabbing!important}.handsontable.ht__moving .wtBorder.area,.handsontable.ht__moving .wtBorder.current{display:none!important}.handsontable.ht__moving .wtSelectionHandle,.handsontable.ht__moving .wtMoveZone{visibility:hidden!important}.handsontable .wtBorder{font-size:0;position:absolute}.handsontable .wtBorder:first-child,.handsontable .wtBorder:nth-child(3){z-index:2}.handsontable .wtBorder:nth-child(2),.handsontable .wtBorder:nth-child(4){z-index:1}.handsontable .wtBorder.hidden{display:none!important}.handsontable .wtBorder.current{z-index:10;background-color:var(--ht-cell-selection-border-color)!important}.handsontable .wtBorder.area{z-index:8;background-color:var(--ht-cell-selection-border-color)!important}.handsontable .wtBorder.fill{z-index:6;background-color:var(--ht-cell-autofill-fill-border-color,#68696c)!important}.handsontable .wtBorder.corner{cursor:crosshair;z-index:110;font-size:0;border-radius:var(--ht-cell-autofill-border-radius)!important;background-color:var(--ht-cell-autofill-background-color,#1a42e8)!important;border-color:var(--ht-cell-autofill-border-color)!important}.handsontable .wtBorder.corner:after{content:"";border-radius:var(--ht-cell-autofill-border-radius);inset:min(0px,(var(--ht-cell-autofill-size) - var(--ht-cell-autofill-hit-area-size))/2);background:0 0;position:absolute}.handsontable .wtBorder.corner.wtCornerInlineEndEdge:after{inset-inline-end:0}.handsontable .wtBorder.corner.wtCornerBlockEndEdge:after{inset-block-end:0}@media print{.handsontable .wtBorder.current,.handsontable .wtBorder.area,.handsontable .wtBorder.fill,.handsontable .wtBorder.corner,.handsontable .wtSelectionHandle,.handsontable .topSelectionHandle,.handsontable .bottomSelectionHandle,.handsontable .topSelectionHandle-HitArea,.handsontable .bottomSelectionHandle-HitArea,.handsontable .wtMoveZone,.handsontable td.area:before{display:none!important}}@keyframes ht-selection-handle-fade-in{0%{opacity:0}to{opacity:1}}.hot-display-license-info{font-family:var(--ht-font-family),-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;padding:var(--ht-license-vertical-padding,16px)var(--ht-license-horizontal-padding,16px);font-size:var(--ht-font-size-small);line-height:var(--ht-line-height-small);color:var(--ht-license-foreground-color);background-color:var(--ht-license-background-color,#f7f7f9);text-align:left;min-width:300px}.hot-display-license-info a{font-size:var(--ht-license-font-size);color:var(--ht-link-color)}.hot-display-license-info a:hover{color:var(--ht-link-hover-color)}.ht-license-badge-wrapper{z-index:1050;pointer-events:none;position:absolute;inset:0;overflow:hidden}.ht-license-badge-on .ht-license-badge-corner thead tr:first-child th:first-child:after{content:"";inline-size:min(var(--ht-license-badge-size,16px),100%);block-size:min(var(--ht-license-badge-size,16px),100%);background-color:var(--ht-license-badge-color,var(--ht-disabled-color,#a3a3a3));pointer-events:none;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%2711.1415%27 height=%2716%27 viewBox=%270 0 11.1415 16%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M7.96408 12.8226H11.1415V16H7.96408V12.8226Z%27 fill=%27%231A42E8%27/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:contain;margin:auto;position:absolute;inset:0;inset-inline-start:clamp(0px,100% - var(--ht-license-badge-size,16px),6px);mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%2711.1415%27 height=%2716%27 viewBox=%270 0 11.1415 16%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M4.61799e-05 3.17744H2.06687V7.04929H5.89738V3.17744H7.96421V12.8226H5.89738V8.84054H2.06687V12.8226H4.61799e-05V3.17744Z%27 fill=%27%23000%27/%3E%3Cpath d=%27M7.96408 12.8226H11.1415V16H7.96408V12.8226Z%27 fill=%27%23000%27/%3E%3C/svg%3E");mask-position:50%;mask-size:contain;mask-repeat:no-repeat}.ht-license-badge-on .ht-license-badge-corner thead tr:first-child th:first-child:hover:after{background-color:var(--ht-license-badge-hover-color,var(--ht-read-only-color,#68696c))}[dir=rtl] .ht-license-badge-on .ht-license-badge-corner thead tr:first-child th:first-child:after{inset-inline-start:0;inset-inline-end:clamp(0px,100% - var(--ht-license-badge-size,16px),6px)}.ht-license-badge{clip-path:inset(50%);white-space:nowrap;color:#0000;background:0 0;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;inset-block-start:0;inset-inline-start:0;overflow:hidden}.ht-license-popover{font-family:var(--ht-font-family),-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;z-index:1051;inline-size:auto;max-inline-size:min(var(--ht-license-popover-width,320px),100vw - 32px);border-radius:var(--ht-border-radius,8px);background-color:var(--ht-license-popover-background-color,#16171a);max-block-size:100%;color:var(--ht-license-popover-foreground-color,#fff);font-size:var(--ht-font-size-small,12px);line-height:var(--ht-line-height-small,18px);text-align:start;pointer-events:auto;box-shadow:var(--ht-shadow-x,0)var(--ht-shadow-y,0)var(--ht-shadow-blur,8px)color-mix(in srgb,var(--ht-shadow-color,#000)var(--ht-shadow-opacity,100%),transparent);border-start-start-radius:0;flex-direction:column;padding:16px;display:none;position:absolute;inset-block-start:0;inset-inline-start:var(--ht-license-badge-area-width,50px);inset-inline-end:0;overflow:visible}.ht-license-popover:before{content:"";border-block-start:var(--ht-license-popover-tail-size,5px)solid var(--ht-license-popover-background-color,#16171a);border-inline-start:var(--ht-license-popover-tail-size,5px)solid #0000;block-size:0;inline-size:0;position:absolute;inset-block-start:0;inset-inline-end:100%}.ht-license-popover__content{min-block-size:0;overflow-y:auto}.ht-license-badge-wrapper.is-corner-hover:not(.is-dismissed) .ht-license-popover,.ht-license-badge-wrapper:not(.is-dismissed):hover .ht-license-popover,.ht-license-popover.is-open{display:flex}.ht-license-badge-wrapper.is-cornerless .ht-license-badge{display:none}.ht-license-badge-wrapper.is-cornerless .ht-license-popover{border-start-start-radius:var(--ht-border-radius,8px);inset-inline-start:0}.ht-license-badge-wrapper.is-cornerless .ht-license-popover:before{display:none}.ht-license-popover__title{margin-block-end:8px;padding-inline-end:16px;font-weight:700}.ht-license-popover__body{color:var(--ht-license-popover-body-color,#d5d6d8);margin:0 0 12px}.ht-license-popover__link{color:var(--ht-license-popover-link-color,#3ba0ff);text-decoration:none}.ht-license-popover__link:hover{text-decoration:underline}.ht-license-popover__close{block-size:20px;inline-size:20px;color:inherit;cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;padding:0;line-height:1;display:flex;position:absolute;inset-block-start:12px;inset-inline-end:12px}.ht-license-popover__close:before{content:"\u2715";font-size:14px}.ht-dialog.ht-license-lock{z-index:1070}.ht-dialog.ht-license-lock:before{content:"";block-size:calc(var(--ht-line-height,20px) + var(--ht-density-cell-vertical,4px)*2);background-color:var(--ht-header-background-color);border-block-end:1px solid var(--ht-cell-horizontal-border-color,var(--ht-border-color));position:absolute;inset-block-start:0;inset-inline:0}.ht-dialog.ht-license-lock:after{content:"";inline-size:calc(var(--ht-license-badge-size,16px)*.696344);block-size:var(--ht-license-badge-size,16px);background-color:var(--ht-license-badge-color,var(--ht-disabled-color,#a3a3a3));position:absolute;inset-block-start:calc(var(--ht-density-cell-vertical,4px) + (var(--ht-line-height,20px) - var(--ht-license-badge-size,16px))/2);inset-inline-start:var(--ht-cell-horizontal-padding,8px);mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%2711.1415%27 height=%2716%27 viewBox=%270 0 11.1415 16%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M4.61799e-05 3.17744H2.06687V7.04929H5.89738V3.17744H7.96421V12.8226H5.89738V8.84054H2.06687V12.8226H4.61799e-05V3.17744Z%27 fill=%27%23000%27/%3E%3Cpath d=%27M7.96408 12.8226H11.1415V16H7.96408V12.8226Z%27 fill=%27%23000%27/%3E%3C/svg%3E");mask-size:contain;mask-repeat:no-repeat}.ht-dialog.ht-license-lock .ht-dialog__content-wrapper{padding-block-start:calc(var(--ht-line-height,20px) + var(--ht-density-cell-vertical,4px)*2)}.ht-dialog.ht-license-lock .ht-dialog__content-wrapper-inner,.ht-dialog.ht-license-lock .ht-dialog__content{min-inline-size:0}.ht-dialog.ht-license-lock a.ht-button{text-decoration:none;display:inline-block}.ht-dialog.ht-license-lock .ht-dialog__title,.ht-dialog.ht-license-lock .ht-dialog__description{word-break:break-word;overflow-wrap:break-word}.ht-license-powered-by{font-family:var(--ht-font-family),-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;padding:var(--ht-license-vertical-padding,8px)var(--ht-license-horizontal-padding,16px);font-size:var(--ht-font-size-small,12px);line-height:var(--ht-line-height-small,18px);color:var(--ht-license-foreground-color,#222);background-color:var(--ht-license-background-color,#f7f7f9);text-align:start;align-items:center;display:flex}.ht-license-powered-by .ht-license-powered-by__link{color:inherit;align-items:flex-start;gap:8px;text-decoration:none;display:inline-flex}.ht-license-powered-by .ht-license-powered-by__link:hover{color:inherit;text-decoration:none}.ht-license-powered-by .ht-license-powered-by__link:focus-visible{outline:2px solid var(--ht-accent-color);outline-offset:2px}.ht-license-powered-by__logo{block-size:16px;inline-size:11.1415px;background-color:light-dark(#000,#fff);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%2711.1415%27 height=%2716%27 viewBox=%270 0 11.1415 16%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M7.96408 12.8226H11.1415V16H7.96408V12.8226Z%27 fill=%27%231A42E8%27/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:contain;flex-shrink:0;margin-block-start:max(0px,(var(--ht-line-height-small,18px) - 16px)/2);mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%2711.1415%27 height=%2716%27 viewBox=%270 0 11.1415 16%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M4.61799e-05 3.17744H2.06687V7.04929H5.89738V3.17744H7.96421V12.8226H5.89738V8.84054H2.06687V12.8226H4.61799e-05V3.17744Z%27 fill=%27%23000%27/%3E%3Cpath d=%27M7.96408 12.8226H11.1415V16H7.96408V12.8226Z%27 fill=%27%23000%27/%3E%3C/svg%3E");mask-position:50%;mask-size:contain;mask-repeat:no-repeat}@media (forced-colors:active){.ht-license-powered-by__logo{forced-color-adjust:none;background-color:canvastext;background-image:none}}.handsontable td a.ht-link{color:var(--ht-link-color);text-decoration:underline}.handsontable td a.ht-link:hover{color:var(--ht-link-hover-color)}.handsontable td a.ht-link .ht-link-scheme{display:none}.ht-icon{width:var(--ht-icon-size);height:var(--ht-icon-size);vertical-align:middle;text-indent:0;pointer-events:none;flex-shrink:0;display:inline-block}.ht-icon.ht-icon--external{font-size:var(--ht-icon-size);text-align:center;background-color:#0000;line-height:1;mask-image:none}.ht-icon--flip-rtl:dir(rtl){transform:scaleX(-1)}.handsontable .htAutocompleteArrow{cursor:default;width:var(--ht-icon-size);height:var(--ht-icon-size);float:right;top:calc((var(--ht-line-height) - var(--ht-icon-size))/2);margin-inline-start:calc(var(--ht-gap-size)*2);margin-inline-end:1px;font-size:0;position:relative}.handsontable .htAutocompleteArrow .ht-icon{opacity:.6;position:absolute;top:0;left:0}.handsontable td.htAutocomplete{padding-inline-end:calc(var(--ht-cell-horizontal-padding) + var(--ht-icon-size) + var(--ht-gap-size)*2 + 1px);position:relative}.handsontable td.htAutocomplete .htAutocompleteArrow{float:none;inset-inline-end:calc(var(--ht-cell-horizontal-padding) + 1px);top:calc(var(--ht-cell-vertical-padding) + (var(--ht-line-height) - var(--ht-icon-size))/2);margin:0;position:absolute}.handsontable td.htAutocomplete.htMiddle .htAutocompleteArrow{top:50%;transform:translateY(-50%)}.handsontable td.htAutocomplete.htBottom .htAutocompleteArrow{top:auto;inset-block-end:calc(var(--ht-cell-vertical-padding) + (var(--ht-line-height) - var(--ht-icon-size))/2)}.handsontable tr.htExactRow>td.htAutocomplete>.htCellClip{padding-inline-end:calc(var(--ht-icon-size) + var(--ht-gap-size)*2 + 1px)}.handsontable tr.htExactRow>td.htAutocomplete>.htCellClip .htAutocompleteArrow{inset-inline-end:1px;top:calc((var(--ht-line-height) - var(--ht-icon-size))/2)}.handsontable tr.htExactRow>td.htAutocomplete.htMiddle>.htCellClip .htAutocompleteArrow{top:50%;transform:translateY(-50%)}.handsontable tr.htExactRow>td.htAutocomplete.htBottom>.htCellClip .htAutocompleteArrow{top:auto;inset-block-end:calc((var(--ht-line-height) - var(--ht-icon-size))/2)}[dir=rtl].handsontable .htAutocompleteArrow{float:left}.handsontable .htCheckboxRendererInput{width:var(--ht-checkbox-size);height:var(--ht-checkbox-size);vertical-align:middle;cursor:pointer;appearance:none;margin:0;outline:none;margin-top:-2px;display:inline-block;position:relative}.handsontable .htCheckboxRendererInput:before{content:"";width:var(--ht-checkbox-size);height:var(--ht-checkbox-size);border-radius:var(--ht-checkbox-border-radius);border:1px solid var(--ht-checkbox-border-color);background-color:var(--ht-checkbox-background-color);box-sizing:border-box;pointer-events:none;transition:all var(--ht-table-transition)ease-in-out;display:inline-block;position:absolute;top:0;left:0}.handsontable .htCheckboxRendererInput+.ht-icon{color:var(--ht-checkbox-icon-color)}.handsontable .htCheckboxRendererInput:checked:before{border-color:var(--ht-checkbox-checked-border-color);background-color:var(--ht-checkbox-checked-background-color)}.handsontable .htCheckboxRendererInput:checked+.ht-icon{color:var(--ht-checkbox-checked-icon-color)}.handsontable .htCheckboxRendererInput:checked:disabled:before{border-color:var(--ht-checkbox-checked-disabled-border-color);background-color:var(--ht-checkbox-checked-disabled-background-color)}.handsontable .htCheckboxRendererInput:checked:disabled+.ht-icon{color:var(--ht-checkbox-checked-disabled-icon-color)}.handsontable .htCheckboxRendererInput:checked:focus:before{border-color:var(--ht-checkbox-checked-focus-border-color);background-color:var(--ht-checkbox-checked-focus-background-color)}.handsontable .htCheckboxRendererInput:checked:focus+.ht-icon{color:var(--ht-checkbox-checked-focus-icon-color)}.handsontable .htCheckboxRendererInput:focus:before{border-color:var(--ht-checkbox-focus-border-color);background-color:var(--ht-checkbox-focus-background-color);outline:1px solid var(--ht-checkbox-focus-ring-color)}.handsontable .htCheckboxRendererInput:focus+.ht-icon{color:var(--ht-checkbox-focus-icon-color)}.handsontable .htCheckboxRendererInput:disabled{cursor:initial;pointer-events:none}.handsontable .htCheckboxRendererInput:disabled:before{border-color:var(--ht-checkbox-disabled-border-color);background-color:var(--ht-checkbox-disabled-background-color)}.handsontable .htCheckboxRendererInput:disabled+.ht-icon{color:var(--ht-checkbox-disabled-icon-color)}.handsontable .htCheckboxRendererInput:indeterminate:before{border-color:var(--ht-checkbox-indeterminate-border-color);background-color:var(--ht-checkbox-indeterminate-background-color)}.handsontable .htCheckboxRendererInput:indeterminate+.ht-icon{color:var(--ht-checkbox-indeterminate-icon-color)}.handsontable .htCheckboxRendererInput:indeterminate:disabled:before{border-color:var(--ht-checkbox-indeterminate-disabled-border-color);background-color:var(--ht-checkbox-indeterminate-disabled-background-color)}.handsontable .htCheckboxRendererInput:indeterminate:disabled+.ht-icon{color:var(--ht-checkbox-indeterminate-disabled-icon-color)}.handsontable .htCheckboxRendererInput:indeterminate:focus:before{border-color:var(--ht-checkbox-indeterminate-focus-border-color);background-color:var(--ht-checkbox-indeterminate-focus-background-color)}.handsontable .htCheckboxRendererInput:indeterminate:focus+.ht-icon{color:var(--ht-checkbox-indeterminate-focus-icon-color)}.handsontable .htCheckboxRendererInput.noValue,.handsontable .htCheckboxRendererInput.noValue+.ht-icon{opacity:.5}.handsontable .htCheckboxRendererBox{width:var(--ht-checkbox-size);height:var(--ht-checkbox-size);vertical-align:middle;margin:-2px 0 0;line-height:0;display:inline-block;position:relative}.handsontable .htCheckboxRendererBox:first-child{margin-inline-end:var(--ht-gap-size)}.handsontable .htCheckboxRendererBox:last-child{margin-inline-start:var(--ht-gap-size)}.handsontable .htCheckboxRendererBox>.htCheckboxRendererInput{margin:0;display:block}.handsontable .htCheckboxRendererBox>.ht-icon{z-index:1;width:var(--ht-checkbox-size);height:var(--ht-checkbox-size);margin:0;position:absolute;inset:0}.handsontable :not(.htCheckboxRendererBox)>.htCheckboxRendererInput:not(:first-child){margin-inline-start:var(--ht-gap-size)}.handsontable :not(.htCheckboxRendererBox)>.htCheckboxRendererInput+.ht-icon{z-index:1;width:var(--ht-checkbox-size);height:var(--ht-checkbox-size);vertical-align:middle;margin-inline-start:calc(-1*var(--ht-checkbox-size));margin-top:-2px;position:relative}.handsontable :not(.htCheckboxRendererBox)>.htCheckboxRendererInput+.ht-icon:not(:last-child){margin-inline-end:var(--ht-gap-size)}.handsontable :not(.htCheckboxRendererBox)>.htCheckboxRendererInput:first-child:nth-last-child(2){margin-inline-start:var(--ht-gap-size)}.handsontable :not(.htCheckboxRendererBox)>.htCheckboxRendererInput:first-child:nth-last-child(2)+.ht-icon{margin-inline-end:var(--ht-gap-size)}.handsontable .htCheckboxRendererLabel{font-size:inherit;line-height:inherit;cursor:pointer;color:inherit;margin:0;display:inline-block;position:relative}.handsontable .htCheckboxRendererLabel.fullWidth{width:100%}.handsontable .htPlaceholder{color:var(--ht-placeholder-color)}.handsontable .htDimmed{color:var(--ht-read-only-color)!important;background-color:var(--ht-cell-read-only-background-color)!important}.handsontable .htLeft{text-align:left}.handsontable .htCenter{text-align:center}.handsontable .htRight{text-align:right}.handsontable .htJustify{text-align:justify}.handsontable .htTop{vertical-align:top}.handsontable .htMiddle{vertical-align:middle}.handsontable .htBottom{vertical-align:bottom}.handsontable .htInvalid{background-color:var(--ht-cell-error-background-color)!important}.handsontable .htNoWrap{white-space:nowrap}.handsontable .htSearchResult{background-color:var(--ht-cell-success-background-color)!important}.handsontable .ht-multi-select-renderer{padding:var(--ht-cell-vertical-padding)var(--ht-cell-horizontal-padding);overflow:hidden}.handsontable .ht-multi-select-arrow{cursor:default;width:var(--ht-icon-size);height:var(--ht-icon-size);float:right;top:calc((var(--ht-line-height) - var(--ht-icon-size))/2);font-size:0;line-height:inherit;font-weight:inherit;letter-spacing:inherit;margin-inline-start:calc(var(--ht-gap-size)*2);margin-inline-end:1px;font-family:inherit;position:relative}.handsontable .ht-multi-select-arrow .ht-icon{opacity:.6;position:absolute;top:0;left:0}.handsontable .ht-multi-select-chips-container{align-items:center;gap:var(--ht-gap-size);flex-wrap:nowrap;max-width:100%;display:flex;overflow:hidden}.handsontable .ht-multi-select-chip{align-items:center;gap:var(--ht-gap-size);padding:var(--ht-chip-vertical-padding)calc((var(--ht-line-height) - var(--ht-icon-size))/2)var(--ht-chip-vertical-padding)var(--ht-chip-horizontal-padding);border-radius:var(--ht-chip-border-radius);background:var(--ht-chip-background);white-space:nowrap;box-sizing:border-box;max-width:100px;font-size:inherit;line-height:inherit;font-weight:inherit;letter-spacing:inherit;flex-shrink:0;font-family:inherit;display:inline-flex}.handsontable .ht-multi-select-chip-label{text-overflow:ellipsis;color:var(--ht-foreground-color);padding:0 var(--ht-chip-gap);font-style:normal;font-size:inherit;line-height:inherit;font-weight:inherit;letter-spacing:inherit;font-family:inherit;overflow:hidden}.handsontable .ht-multi-select-chip-remove{cursor:pointer;color:var(--ht-icon-button-icon-color);font-size:inherit;line-height:inherit;font-weight:inherit;letter-spacing:inherit;background-position:50%;background-repeat:no-repeat;background-size:contain;flex-shrink:0;justify-content:center;align-items:center;padding:0;font-family:inherit;display:flex;position:relative;width:var(--ht-icon-size)!important;height:var(--ht-icon-size)!important}.handsontable .ht-multi-select-chip-remove .ht-icon{position:absolute;top:0;left:0}.handsontable .ht-multi-select-chip-remove:hover{background-color:var(--ht-icon-button-hover-background-color)}.handsontable .ht-multi-select-overflow{padding:var(--ht-chip-vertical-padding)var(--ht-chip-horizontal-padding);background:var(--ht-chip-background);border-radius:var(--ht-chip-border-radius);color:var(--ht-foreground-color);white-space:nowrap;font-size:inherit;line-height:inherit;font-weight:inherit;letter-spacing:inherit;flex-shrink:0;justify-content:center;align-items:center;font-family:inherit;display:inline-flex}[dir=rtl].handsontable .ht-multi-select-arrow{float:left}.handsontableInputHolder{position:absolute;top:0;left:0}.handsontableInputHolder .handsontableInput{padding:calc(var(--ht-cell-vertical-padding,4px) + 1px)calc(var(--ht-cell-horizontal-padding,8px) + 1px);color:var(--ht-cell-editor-foreground-color);background-color:var(--ht-cell-editor-background-color,#fff);box-shadow:inset 0 0 0 var(--ht-cell-editor-border-width,2px)var(--ht-cell-editor-border-color,#1a42e8),0 0 var(--ht-cell-editor-shadow-blur-radius,0)0 var(--ht-cell-editor-shadow-color,transparent);box-sizing:border-box;border:none;border-radius:0;outline-width:0;margin:0;display:block;font-family:inherit!important;font-size:inherit!important;line-height:inherit!important;-webkit-appearance:none!important}.handsontableInputHolder .handsontableInput:focus{outline:none}.htSelectEditor{position:absolute}.htSelectEditor select{width:100%;height:100%;padding:calc(var(--ht-cell-vertical-padding,4px) + 1px)calc(var(--ht-cell-horizontal-padding,8px) + 1px);white-space:nowrap;text-overflow:ellipsis;color:var(--ht-cell-editor-foreground-color);background-color:var(--ht-cell-editor-background-color,#fff);box-shadow:inset 0 0 0 var(--ht-cell-editor-border-width,2px)var(--ht-cell-editor-border-color,#1a42e8),0 0 var(--ht-cell-editor-shadow-blur-radius,0)0 var(--ht-cell-editor-shadow-color,transparent);box-sizing:border-box;border:none;border-radius:0;margin:0;padding-inline-end:26px;position:absolute;inset:0;overflow:hidden;font-family:inherit!important;font-size:inherit!important;line-height:inherit!important;-webkit-appearance:none!important}.htSelectEditor select:focus{outline:none}.htSelectEditor .htAutocompleteArrow{z-index:1;pointer-events:none;margin-inline-end:4px;top:50%;transform:translateY(-50%)}.handsontable.listbox{box-shadow:var(--ht-menu-shadow-x,0)var(--ht-menu-shadow-y,0)var(--ht-menu-shadow-blur,8px)color-mix(in srgb,var(--ht-menu-shadow-color,#000)var(--ht-menu-shadow-opacity,100%),transparent);border:var(--ht-menu-border-width,1px)solid var(--ht-menu-border-color,#e5e5e9);margin:0}.handsontable.listbox .ht_master{background-color:var(--ht-background-color);overflow:hidden}.handsontable.listbox .wtHolder{overflow:auto;border-radius:0!important}.handsontable.listbox .wtHider,.handsontable.listbox .htCore{border-radius:0!important}.handsontable.listbox table{overflow:hidden}.handsontable.listbox table th,.handsontable.listbox table tr:first-child th,.handsontable.listbox table tr:last-child th,.handsontable.listbox table tr:first-child td,.handsontable.listbox table td{border-color:#0000!important}.handsontable.listbox table th,.handsontable.listbox table td{white-space:nowrap;text-overflow:ellipsis;border-radius:0!important}.handsontable.listbox table .wtBorder{visibility:hidden}.handsontable.listbox table strong{color:inherit;font-weight:700}.handsontable.listbox table tr td:hover td{cursor:pointer;background:color-mix(in srgb,var(--ht-menu-item-hover-color)var(--ht-menu-item-hover-color-opacity,100%),transparent)!important;box-shadow:none!important}.handsontable.listbox table td{transition:var(--ht-table-transition)background ease-in-out}.handsontable.listbox table td:hover{cursor:pointer;background-color:color-mix(in srgb,var(--ht-menu-item-hover-color)var(--ht-menu-item-hover-color-opacity,100%),transparent)!important}.handsontable.listbox table td.current:not([aria-expanded=true]){box-shadow:inset 0 0 0 1px var(--ht-accent-color)}.handsontable.listbox table td.htDimmed{cursor:default;font-style:inherit;color:inherit!important}.handsontable.listbox table td.htDimmed:not(.handsontable.listbox table td:hover){background-color:inherit!important}.handsontable.listbox table thead th{text-align:left;height:auto!important}.handsontable.listbox table thead th .relative{padding-top:calc(var(--ht-cell-vertical-padding) + var(--ht-gap-size));padding-bottom:calc(var(--ht-cell-vertical-padding) + var(--ht-gap-size))}.handsontable.listbox .ht_clone_top .wtHider{overflow:hidden}.handsontable.listbox .ht_clone_top table{border-radius:0}.handsontable.listbox .htBorders div{background:0 0!important}.handsontable.autocompleteEditor tr.ht__row_even th,.handsontable.autocompleteEditor tr.ht__row_even td,.handsontable.autocompleteEditor tr.ht__row_odd th,.handsontable.autocompleteEditor tr.ht__row_odd td{background-color:var(--ht-background-color,#fff)}[dir=rtl].handsontable.listbox table thead th{text-align:right}.handsontableEditor{position:absolute}.handsontableEditor .ht-multi-select-editor{box-shadow:var(--ht-menu-shadow-x,0)var(--ht-menu-shadow-y,0)var(--ht-menu-shadow-blur,8px)color-mix(in srgb,var(--ht-menu-shadow-color,#000)var(--ht-menu-shadow-opacity,100%),transparent);scrollbar-width:auto;scrollbar-color:var(--ht-scrollbar-thumb-color)var(--ht-scrollbar-track-color);border-radius:0 0 var(--ht-menu-border-radius)var(--ht-menu-border-radius);border:var(--ht-menu-border-width)solid var(--ht-menu-border-color);background:var(--ht-background-color);width:max-content;min-width:120px;padding:var(--ht-menu-vertical-padding)var(--ht-menu-horizontal-padding);overflow-y:auto}.handsontableEditor .ht-multi-select-editor .ht-multi-select-editor-search-input-wrapper{padding:var(--ht-menu-item-vertical-padding)var(--ht-menu-item-horizontal-padding);align-items:center;gap:var(--ht-gap-size);align-self:stretch;display:flex;position:relative}.handsontableEditor .ht-multi-select-editor .ht-multi-select-editor-search-input-wrapper .ht-icon-search{left:calc(var(--ht-menu-item-horizontal-padding) + 10px);opacity:.5;z-index:1;width:16px;height:16px;position:absolute;top:50%;transform:translateY(-50%)}.handsontableEditor .ht-multi-select-editor input.ht-multi-select-editor-search-input{box-sizing:border-box;border-radius:var(--ht-input-border-radius);width:100%;color:var(--ht-input-foreground-color);background-color:var(--ht-input-background-color);border:1px solid var(--ht-input-border-color);transition:var(--ht-table-transition)all ease-in-out;line-height:var(--ht-line-height);font-size:var(--ht-font-size);padding:var(--ht-input-vertical-padding)var(--ht-menu-item-horizontal-padding)var(--ht-input-vertical-padding)32px}.handsontableEditor .ht-multi-select-editor input.ht-multi-select-editor-search-input:hover{border-color:var(--ht-input-hover-border-color);color:var(--ht-input-hover-foreground-color);background-color:var(--ht-input-hover-background-color)}.handsontableEditor .ht-multi-select-editor input.ht-multi-select-editor-search-input:disabled{border-color:var(--ht-input-disabled-border-color);color:var(--ht-input-disabled-foreground-color);background-color:var(--ht-input-disabled-background-color)}.handsontableEditor .ht-multi-select-editor input.ht-multi-select-editor-search-input:focus{border-color:var(--ht-input-focus-border-color);color:var(--ht-input-focus-foreground-color);background-color:var(--ht-input-focus-background-color);outline-offset:0;box-shadow:none;outline:none}.handsontableEditor .ht-multi-select-editor input.ht-multi-select-editor-search-input::placeholder{color:var(--ht-foreground-color);opacity:.6}.handsontableEditor .ht-multi-select-editor .ht-multi-select-editor-separator{background-color:var(--ht-menu-border-color);width:100%;height:1px;margin:var(--ht-menu-vertical-padding)0 var(--ht-menu-vertical-padding)0;padding:0}.handsontableEditor .ht-multi-select-editor ul{width:100%;padding:var(--ht-gap-size)var(--ht-menu-horizontal-padding);flex-direction:column;align-items:flex-start;margin:0;list-style:none;display:flex}.handsontableEditor .ht-multi-select-editor ul li{background:var(--ht-background-color);padding:var(--ht-menu-item-vertical-padding)var(--ht-menu-item-horizontal-padding);-webkit-user-select:none;user-select:none;cursor:pointer;align-self:stretch;align-items:center;display:flex}.handsontableEditor .ht-multi-select-editor ul li *{cursor:pointer}.handsontableEditor .ht-multi-select-editor ul li.ht-multi-select-editor-item-selected{background:color-mix(in srgb,var(--ht-menu-item-active-color)var(--ht-menu-item-active-color-opacity,100%),transparent)}.handsontableEditor .ht-multi-select-editor ul li div{flex:1 0 0;align-items:center;display:flex}.handsontableEditor .ht-multi-select-editor ul li div input{appearance:none;width:var(--ht-checkbox-size);height:var(--ht-checkbox-size);flex-shrink:0;margin:0;padding:0;display:flex;position:relative}.handsontableEditor .ht-multi-select-editor ul li div input:before{content:"";box-sizing:border-box;width:var(--ht-checkbox-size);height:var(--ht-checkbox-size);border-radius:var(--ht-checkbox-border-radius);border:1px solid var(--ht-checkbox-border-color);background:var(--ht-checkbox-background-color);background-position:50%;background-repeat:no-repeat;display:block;position:absolute;top:0;left:0}.handsontableEditor .ht-multi-select-editor ul li div input:checked:before{border-color:var(--ht-checkbox-checked-border-color);background:var(--ht-checkbox-checked-background-color)}.handsontableEditor .ht-multi-select-editor ul li div input:focus{outline:none}.handsontableEditor .ht-multi-select-editor ul li div input+.ht-icon{z-index:1;width:var(--ht-checkbox-size);height:var(--ht-checkbox-size);color:var(--ht-checkbox-icon-color);margin-inline-start:calc(-1*var(--ht-checkbox-size));position:relative}.handsontableEditor .ht-multi-select-editor ul li div input:checked+.ht-icon{color:var(--ht-checkbox-checked-icon-color)}.handsontableEditor .ht-multi-select-editor ul li div label{color:var(--ht-foreground-color);text-overflow:ellipsis;font-size:var(--ht-font-size);font-style:normal;font-weight:400;line-height:var(--ht-line-height);letter-spacing:var(--ht-letter-spacing);width:100%;padding:0;padding-inline-start:var(--ht-gap-size);overflow:hidden}.handsontableEditor .ht-multi-select-editor ul li:hover,.handsontableEditor .ht-multi-select-editor ul li:has(input:focus){background:color-mix(in srgb,var(--ht-menu-item-hover-color)var(--ht-menu-item-hover-color-opacity,100%),transparent)}.handsontable .htUISelectCaption{width:100%;padding:var(--ht-input-vertical-padding)var(--ht-input-horizontal-padding);font-family:inherit;font-size:var(--ht-font-size);line-height:var(--ht-line-height);font-weight:var(--ht-font-weight);border-radius:var(--ht-input-border-radius);box-sizing:border-box;cursor:pointer;border:var(--ht-input-border-width)solid var(--ht-input-border-color);color:var(--ht-input-foreground-color);background-color:var(--ht-input-background-color);text-overflow:ellipsis;white-space:nowrap;transition:var(--ht-table-transition)all ease-in-out;margin:0;padding-inline-end:calc(var(--ht-input-horizontal-padding) + var(--ht-icon-size));overflow:hidden;outline:none!important}.handsontable .htUISelectCaption .ht-icon{inset-inline-end:calc(var(--ht-input-horizontal-padding) - var(--ht-icon-size)/4);position:absolute;top:50%;transform:translateY(-50%)}.handsontable .htUISelectCaption:hover{border-color:var(--ht-input-hover-border-color);color:var(--ht-input-hover-foreground-color);background-color:var(--ht-input-hover-background-color)}.handsontable .htUISelectCaption:disabled{border-color:var(--ht-input-disabled-border-color);color:var(--ht-input-disabled-foreground-color);background-color:var(--ht-input-disabled-background-color)}.handsontable .htUISelectCaption:focus{border-color:var(--ht-input-focus-border-color);color:var(--ht-input-focus-foreground-color);background-color:var(--ht-input-focus-background-color)}.handsontable .htUISelect{cursor:pointer;position:relative;outline:none!important}.handsontable .htUISelect:focus .htUISelectCaption{border-color:var(--ht-input-focus-border-color);color:var(--ht-input-focus-foreground-color);background-color:var(--ht-input-focus-background-color)}.handsontable .htFiltersMenuCondition .htUIInput input,.handsontable .htFiltersMenuValue .htUIMultipleSelectSearch input{width:100%;padding:var(--ht-input-vertical-padding)var(--ht-input-horizontal-padding);font-family:inherit;font-size:var(--ht-font-size);line-height:var(--ht-line-height);font-weight:var(--ht-font-weight);border-radius:var(--ht-input-border-radius);box-sizing:border-box;cursor:pointer;border:var(--ht-input-border-width)solid var(--ht-input-border-color);color:var(--ht-input-foreground-color);background-color:var(--ht-input-background-color);transition:var(--ht-table-transition)all ease-in-out;outline:none!important}.handsontable .htFiltersMenuCondition .htUIInput input:hover,.handsontable .htFiltersMenuValue .htUIMultipleSelectSearch input:hover{border-color:var(--ht-input-hover-border-color);color:var(--ht-input-hover-foreground-color);background-color:var(--ht-input-hover-background-color)}.handsontable .htFiltersMenuCondition .htUIInput input:disabled,.handsontable .htFiltersMenuValue .htUIMultipleSelectSearch input:disabled{border-color:var(--ht-input-disabled-border-color);color:var(--ht-input-disabled-foreground-color);background-color:var(--ht-input-disabled-background-color)}.handsontable .htFiltersMenuCondition .htUIInput input:focus,.handsontable .htFiltersMenuValue .htUIMultipleSelectSearch input:focus{border-color:var(--ht-input-focus-border-color);color:var(--ht-input-focus-foreground-color);background-color:var(--ht-input-focus-background-color)}.handsontable .htUIInput{text-align:center;padding:0;position:relative;outline:none!important}.handsontable .htUIInputIcon{position:absolute}.handsontable .htUIInput.htUIButton input,.handsontable .ht-button{min-width:64px;padding:var(--ht-button-vertical-padding)var(--ht-button-horizontal-padding);font-family:inherit;font-size:var(--ht-font-size);line-height:var(--ht-line-height);font-weight:var(--ht-font-weight);border-radius:var(--ht-button-border-radius);box-sizing:border-box;cursor:pointer;transition:var(--ht-table-transition)all ease-in-out;border-style:solid;border-width:1px;outline:none!important}.handsontable .htUIInput.htUIButtonCancel input,.handsontable .ht-button--secondary{border-color:var(--ht-secondary-button-border-color);background-color:var(--ht-secondary-button-background-color);color:var(--ht-secondary-button-foreground-color)}.handsontable .htUIInput.htUIButtonCancel input:hover,.handsontable .ht-button--secondary:hover{border-color:var(--ht-secondary-button-hover-border-color);background-color:var(--ht-secondary-button-hover-background-color);color:var(--ht-secondary-button-hover-foreground-color)}.handsontable .htUIInput.htUIButtonCancel input:disabled,.handsontable .ht-button--secondary:disabled{border-color:var(--ht-secondary-button-disabled-border-color);background-color:var(--ht-secondary-button-disabled-background-color);color:var(--ht-secondary-button-disabled-foreground-color)}.handsontable .htUIInput.htUIButtonCancel input:focus,.handsontable .ht-button--secondary:focus{border-color:var(--ht-secondary-button-focus-border-color);background-color:var(--ht-secondary-button-focus-background-color);color:var(--ht-secondary-button-focus-foreground-color);box-shadow:0 0 0 1px var(--ht-accent-color)}.htUIInput.htUIButtonOK input,.ht-button--primary{border-color:var(--ht-primary-button-border-color);background-color:var(--ht-primary-button-background-color);color:var(--ht-primary-button-foreground-color)}.htUIInput.htUIButtonOK input:hover,.ht-button--primary:hover{border-color:var(--ht-primary-button-hover-border-color);background-color:var(--ht-primary-button-hover-background-color);color:var(--ht-primary-button-hover-foreground-color)}.htUIInput.htUIButtonOK input:disabled,.ht-button--primary:disabled{border-color:var(--ht-primary-button-disabled-border-color);background-color:var(--ht-primary-button-disabled-background-color);color:var(--ht-primary-button-disabled-foreground-color)}.htUIInput.htUIButtonOK input:focus,.ht-button--primary:focus{border-color:var(--ht-primary-button-focus-border-color);background-color:var(--ht-primary-button-focus-background-color);color:var(--ht-primary-button-focus-foreground-color);box-shadow:0 0 0 1px var(--ht-accent-color)}.handsontable .htUIRadio{padding:var(--ht-gap-size)calc(2*var(--ht-gap-size));align-items:center;gap:var(--ht-gap-size);cursor:pointer;margin:0;padding-bottom:0;display:inline-flex;position:relative}.handsontable .htUIRadio:first-child{padding-inline-start:0}.handsontable .htUIRadio>input[type=radio]{width:var(--ht-radio-size);height:var(--ht-radio-size);appearance:none;cursor:pointer;border-radius:calc(.5*var(--ht-radio-size));outline:none;margin:0;position:relative}.handsontable .htUIRadio>input[type=radio]:before{content:"";border-radius:calc(.5*var(--ht-radio-size));border:1px solid var(--ht-radio-border-color);background-color:var(--ht-radio-background-color);display:block;position:absolute;inset:0}.handsontable .htUIRadio>input[type=radio]:checked:before{border-color:var(--ht-radio-checked-border-color);background-color:var(--ht-radio-checked-background-color)}.handsontable .htUIRadio>input[type=radio]:checked:disabled{cursor:initial}.handsontable .htUIRadio>input[type=radio]:checked:disabled:before{border-color:var(--ht-radio-checked-disabled-border-color);background-color:var(--ht-radio-checked-disabled-background-color)}.handsontable .htUIRadio>input[type=radio]:checked:focus:before{border-color:var(--ht-radio-checked-focus-border-color);background-color:var(--ht-radio-checked-focus-background-color)}.handsontable .htUIRadio>input[type=radio]:disabled{cursor:initial}.handsontable .htUIRadio>input[type=radio]:disabled:before{border-color:var(--ht-radio-disabled-border-color);background-color:var(--ht-radio-disabled-background-color)}.handsontable .htUIRadio>input[type=radio]:focus:before{border-color:var(--ht-radio-focus-border-color);background-color:var(--ht-radio-focus-background-color);outline:1px solid var(--ht-radio-focus-ring-color)}.handsontable .htUIRadio>input[type=radio]+.ht-icon{z-index:1;color:var(--ht-radio-icon-color);position:absolute}.handsontable .htUIRadio>input[type=radio]:checked+.ht-icon{color:var(--ht-radio-checked-icon-color)}.handsontable .htUIRadio>input[type=radio]:checked:disabled+.ht-icon{color:var(--ht-radio-checked-disabled-icon-color)}.handsontable .htUIRadio>input[type=radio]:checked:focus+.ht-icon{color:var(--ht-radio-checked-focus-icon-color)}.handsontable .htUIRadio>input[type=radio]:disabled+.ht-icon{color:var(--ht-radio-disabled-icon-color)}.handsontable .htUIRadio>input[type=radio]:focus+.ht-icon{color:var(--ht-radio-focus-icon-color)}.handsontable .htUIRadio label{vertical-align:middle;cursor:pointer;color:inherit}.handsontable .htUIRadio label:before{content:"";display:block;position:absolute;inset:0}.handsontable .collapsibleIndicator,.handsontable .ht_nestingButton{width:var(--ht-icon-button-hit-area-size);height:var(--ht-icon-button-hit-area-size);margin:calc(-1*(var(--ht-icon-button-hit-area-size) - var(--ht-icon-size))/2 + 1px);box-sizing:border-box;cursor:pointer;text-indent:-100px;flex-shrink:0;font-size:0;position:relative;overflow:visible}.handsontable .collapsibleIndicator>.ht-icon,.handsontable .ht_nestingButton>.ht-icon{width:var(--ht-icon-size);height:var(--ht-icon-size);margin-top:calc(-.5*var(--ht-icon-size));margin-left:calc(-.5*var(--ht-icon-size));border-radius:var(--ht-collapse-button-border-radius);transition:var(--ht-table-transition)all ease-in-out;z-index:1;position:absolute;top:50%;left:50%}.handsontable .collapsibleIndicator:after,.handsontable .ht_nestingButton:after{content:"";width:var(--ht-icon-size);height:var(--ht-icon-size);margin-top:calc(-.5*var(--ht-icon-size));margin-left:calc(-.5*var(--ht-icon-size));border-radius:var(--ht-collapse-button-border-radius);transition:var(--ht-table-transition)all ease-in-out;z-index:0;display:block;position:absolute;top:50%;left:50%}.handsontable .collapsibleIndicator.expanded>.ht-icon,.handsontable .collapsibleIndicator.ht_nestingCollapse>.ht-icon,.handsontable .ht_nestingButton.expanded>.ht-icon,.handsontable .ht_nestingButton.ht_nestingCollapse>.ht-icon{color:var(--ht-collapse-button-open-icon-color)}.handsontable .collapsibleIndicator.expanded:after,.handsontable .collapsibleIndicator.ht_nestingCollapse:after,.handsontable .ht_nestingButton.expanded:after,.handsontable .ht_nestingButton.ht_nestingCollapse:after{background-color:var(--ht-collapse-button-open-background-color);box-shadow:0 0 0 1px var(--ht-collapse-button-open-border-color)}.handsontable .collapsibleIndicator.expanded:hover>.ht-icon,.handsontable .collapsibleIndicator.ht_nestingCollapse:hover>.ht-icon,.handsontable .ht_nestingButton.expanded:hover>.ht-icon,.handsontable .ht_nestingButton.ht_nestingCollapse:hover>.ht-icon{color:var(--ht-collapse-button-open-hover-icon-color)}.handsontable .collapsibleIndicator.expanded:hover:after,.handsontable .collapsibleIndicator.ht_nestingCollapse:hover:after,.handsontable .ht_nestingButton.expanded:hover:after,.handsontable .ht_nestingButton.ht_nestingCollapse:hover:after{background-color:var(--ht-collapse-button-open-hover-background-color);box-shadow:0 0 0 1px var(--ht-collapse-button-open-hover-border-color)}.handsontable .collapsibleIndicator.collapsed>.ht-icon,.handsontable .collapsibleIndicator.ht_nestingExpand>.ht-icon,.handsontable .ht_nestingButton.collapsed>.ht-icon,.handsontable .ht_nestingButton.ht_nestingExpand>.ht-icon{color:var(--ht-collapse-button-close-icon-color)}.handsontable .collapsibleIndicator.collapsed:after,.handsontable .collapsibleIndicator.ht_nestingExpand:after,.handsontable .ht_nestingButton.collapsed:after,.handsontable .ht_nestingButton.ht_nestingExpand:after{background-color:var(--ht-collapse-button-close-background-color);box-shadow:0 0 0 1px var(--ht-collapse-button-close-border-color)}.handsontable .collapsibleIndicator.collapsed:hover>.ht-icon,.handsontable .collapsibleIndicator.ht_nestingExpand:hover>.ht-icon,.handsontable .ht_nestingButton.collapsed:hover>.ht-icon,.handsontable .ht_nestingButton.ht_nestingExpand:hover>.ht-icon{color:var(--ht-collapse-button-close-hover-icon-color)}.handsontable .collapsibleIndicator.collapsed:hover:after,.handsontable .collapsibleIndicator.ht_nestingExpand:hover:after,.handsontable .ht_nestingButton.collapsed:hover:after,.handsontable .ht_nestingButton.ht_nestingExpand:hover:after{background-color:var(--ht-collapse-button-close-hover-background-color);box-shadow:0 0 0 1px var(--ht-collapse-button-close-hover-border-color)}.handsontable th.ht__active_highlight .collapsibleIndicator.collapsed>.ht-icon,.handsontable th.ht__active_highlight .collapsibleIndicator.ht_nestingExpand>.ht-icon,.handsontable th.ht__active_highlight .ht_nestingButton.collapsed>.ht-icon,.handsontable th.ht__active_highlight .ht_nestingButton.ht_nestingExpand>.ht-icon{color:var(--ht-collapse-button-close-icon-active-color)}.handsontable th.ht__active_highlight .collapsibleIndicator.collapsed:hover>.ht-icon,.handsontable th.ht__active_highlight .collapsibleIndicator.ht_nestingExpand:hover>.ht-icon,.handsontable th.ht__active_highlight .ht_nestingButton.collapsed:hover>.ht-icon,.handsontable th.ht__active_highlight .ht_nestingButton.ht_nestingExpand:hover>.ht-icon{color:var(--ht-collapse-button-close-hover-icon-active-color)}.handsontable th.ht__active_highlight .collapsibleIndicator.expanded>.ht-icon,.handsontable th.ht__active_highlight .collapsibleIndicator.ht_nestingCollapse>.ht-icon,.handsontable th.ht__active_highlight .ht_nestingButton.expanded>.ht-icon,.handsontable th.ht__active_highlight .ht_nestingButton.ht_nestingCollapse>.ht-icon{color:var(--ht-collapse-button-open-icon-active-color)}.handsontable th.ht__active_highlight .collapsibleIndicator.expanded:hover>.ht-icon,.handsontable th.ht__active_highlight .collapsibleIndicator.ht_nestingCollapse:hover>.ht-icon,.handsontable th.ht__active_highlight .ht_nestingButton.expanded:hover>.ht-icon,.handsontable th.ht__active_highlight .ht_nestingButton.ht_nestingCollapse:hover>.ht-icon{color:var(--ht-collapse-button-open-hover-icon-active-color)}.handsontable .relative:not(.has-sort-indicator)>.changeType~.collapsibleIndicator{--ht-collapse-button-hit-area-overlap:max(0px,calc(var(--ht-icon-button-hit-area-size) - var(--ht-icon-size) - 4px));z-index:1;clip-path:inset(0 0 0 calc(var(--ht-collapse-button-hit-area-overlap)/2))}.handsontable .relative:not(.has-sort-indicator)>.changeType~.collapsibleIndicator:dir(rtl){clip-path:inset(0 calc(var(--ht-collapse-button-hit-area-overlap)/2)0 0)}.handsontable thead th.htRowspanHeader{vertical-align:bottom;height:auto;overflow:visible}.handsontable thead th.htRowspanHeader.ht__active_highlight{border-inline-start-color:var(--ht-header-active-border-color);z-index:1}.handsontable.htRowHeaders.htHasRowspanHeaders :where(table.htCore)>thead>tr:last-child>th:first-child{border-end-start-radius:0}.handsontable.htHasRowspanHeaders .ht_clone_inline_start .htCore>tbody>tr:first-child>th:first-child{border-start-start-radius:0}.handsontable thead th.hiddenHeader:not(:first-of-type){display:none}.handsontable thead th.hiddenHeaderText .colHeader{opacity:0}.handsontable th.ht_nestingLevels>.relative{align-items:center;gap:5px;display:flex}.handsontable th.ht_nestingLevels>.relative>span:last-child{padding-left:calc(var(--ht-icon-size) + 5px)}.handsontable th.ht_nestingLevels span.ht_nestingLevel{display:inline-block}.handsontable th.ht_nestingLevels span.ht_nestingLevel_empty{order:-2;width:5px;height:1px;display:inline-block;position:relative}.handsontable th.ht_nestingLevels .ht_nestingButton{cursor:pointer;order:-1;position:relative}.handsontable tr.htExactRow>th.ht_nestingLevels>.relative{align-items:flex-start}.handsontable tr.htExactRow>th.ht_nestingLevels>.relative>.ht_nestingButton{margin-top:calc((var(--ht-line-height,20px) - var(--ht-icon-button-hit-area-size,24px))/2)}.handsontable thead th.beforeHiddenColumn,.handsontable thead th.afterHiddenColumn{position:relative}.handsontable thead th>.ht-hidden-indicator-start,.handsontable thead th>.ht-hidden-indicator-end{color:var(--ht-hidden-indicator-color);font-size:10px;position:absolute;top:50%;transform:translateY(-50%);width:10px!important;height:10px!important}.handsontable thead th:not(.beforeHiddenColumn)>.ht-hidden-indicator-end,.handsontable thead th:not(.afterHiddenColumn)>.ht-hidden-indicator-start{display:none}.handsontable th.beforeHiddenColumn>.ht-hidden-indicator-end{right:-1px;mask-position:1px 0;mask-repeat:no-repeat}.handsontable th.afterHiddenColumn>.ht-hidden-indicator-start{left:-2px}.handsontable th.ht__active_highlight.beforeHiddenColumn>.ht-hidden-indicator-end,.handsontable th.ht__active_highlight.afterHiddenColumn>.ht-hidden-indicator-start{color:var(--ht-icon-button-active-icon-color,var(--ht-icon-active-button-icon-color))}[dir=rtl].handsontable th.beforeHiddenColumn>.ht-hidden-indicator-end{right:initial;left:-1px;transform:translateY(-50%)rotate(180deg)}[dir=rtl].handsontable th.afterHiddenColumn>.ht-hidden-indicator-start{right:-2px;left:initial;transform:translateY(-50%)rotate(180deg)}.handsontable tbody th.beforeHiddenRow,.handsontable tbody th.afterHiddenRow{position:relative}.handsontable tbody th>.ht-hidden-indicator-start,.handsontable tbody th>.ht-hidden-indicator-end{color:var(--ht-hidden-indicator-color);font-size:10px;position:absolute;left:50%;transform:translate(-50%);width:10px!important;height:10px!important}.handsontable tbody th:not(.beforeHiddenRow)>.ht-hidden-indicator-end,.handsontable tbody th:not(.afterHiddenRow)>.ht-hidden-indicator-start{display:none}.handsontable th.beforeHiddenRow>.ht-hidden-indicator-end{bottom:-1px;mask-position:0 1px;mask-repeat:no-repeat}.handsontable th.afterHiddenRow>.ht-hidden-indicator-start{top:-2px}.handsontable th.ht__active_highlight.beforeHiddenRow>.ht-hidden-indicator-end,.handsontable th.ht__active_highlight.afterHiddenRow>.ht-hidden-indicator-start{color:var(--ht-icon-button-active-icon-color,var(--ht-icon-active-button-icon-color))}.handsontable .changeType{box-sizing:border-box;width:var(--ht-icon-button-hit-area-size);height:var(--ht-icon-button-hit-area-size);margin:calc(-1*(var(--ht-icon-button-hit-area-size) - var(--ht-icon-size))/2 + 1px);box-shadow:none;color:inherit;z-index:1;background:0 0;border:none;outline:none;flex-shrink:0;padding:0;position:relative;overflow:visible}.handsontable .changeType .ht-icon{margin-top:calc(-.5*var(--ht-icon-size));margin-left:calc(-.5*var(--ht-icon-size));color:var(--ht-icon-button-icon-color);z-index:1;position:absolute;top:50%;left:50%}.handsontable .changeType:after{content:"";width:var(--ht-icon-size);height:var(--ht-icon-size);margin-top:calc(-.5*var(--ht-icon-size));margin-left:calc(-.5*var(--ht-icon-size));border-radius:var(--ht-icon-button-border-radius);box-shadow:0 0 0 1px var(--ht-icon-button-border-color);background-color:var(--ht-icon-button-background-color);z-index:0;display:block;position:absolute;top:50%;left:50%}.handsontable .changeType:hover{cursor:pointer}.handsontable .changeType:hover .ht-icon{color:var(--ht-icon-button-hover-icon-color)}.handsontable .changeType:hover:after{box-shadow:0 0 0 1px var(--ht-icon-button-hover-border-color);background-color:var(--ht-icon-button-hover-background-color)}.handsontable .ht__active_highlight .changeType .ht-icon{color:var(--ht-icon-button-active-icon-color,var(--ht-icon-active-button-icon-color))}.handsontable .ht__active_highlight .changeType:after{box-shadow:0 0 0 1px var(--ht-icon-button-active-border-color,var(--ht-icon-active-button-border-color));background-color:var(--ht-icon-button-active-background-color,var(--ht-icon-active-button-background-color))}.handsontable .ht__active_highlight .changeType:hover .ht-icon{color:var(--ht-icon-button-active-hover-icon-color,var(--ht-icon-active-button-hover-icon-color))}.handsontable .ht__active_highlight .changeType:hover:after{box-shadow:0 0 0 1px var(--ht-icon-button-active-hover-border-color,var(--ht-icon-active-button-hover-border-color));background-color:var(--ht-icon-button-active-hover-background-color,var(--ht-icon-active-button-hover-background-color))}.handsontable th.htFiltersActive{background-color:var(--ht-header-filter-background-color)}.handsontable th.htFiltersActive.ht__active_highlight{background-color:color-mix(in srgb,var(--ht-header-active-background-color),var(--ht-header-filter-background-color)20%)}.handsontable.htDropdownMenu>.ht_master,.handsontable.htContextMenu>.ht_master,.handsontable.htFiltersConditionsMenu>.ht_master,.handsontable.htSheetsBarMenu>.ht_master{box-shadow:var(--ht-menu-shadow-x,0)var(--ht-menu-shadow-y,0)var(--ht-menu-shadow-blur,8px)color-mix(in srgb,var(--ht-menu-shadow-color,#000)var(--ht-menu-shadow-opacity,100%),transparent);border:var(--ht-menu-border-width,1px)solid var(--ht-menu-border-color,#e5e5e9);border-radius:var(--ht-menu-border-radius);padding:var(--ht-menu-vertical-padding,8px)var(--ht-menu-horizontal-padding,0);background-color:var(--ht-background-color,#fff);overflow:hidden}.handsontable.htDropdownMenu:not(.htGhostTable),.handsontable.htContextMenu:not(.htGhostTable),.handsontable.htFiltersConditionsMenu:not(.htGhostTable),.handsontable.htSheetsBarMenu:not(.htGhostTable){z-index:1060;display:none;position:absolute}.handsontable.htDropdownMenu .ht_clone_top,.handsontable.htDropdownMenu .ht_clone_bottom,.handsontable.htDropdownMenu .ht_clone_inline_start,.handsontable.htDropdownMenu .ht_clone_inline_end,.handsontable.htDropdownMenu .ht_clone_top_inline_start_corner,.handsontable.htDropdownMenu .ht_clone_top_inline_end_corner,.handsontable.htDropdownMenu .ht_clone_bottom_inline_start_corner,.handsontable.htDropdownMenu .ht_clone_bottom_inline_end_corner,.handsontable.htContextMenu .ht_clone_top,.handsontable.htContextMenu .ht_clone_bottom,.handsontable.htContextMenu .ht_clone_inline_start,.handsontable.htContextMenu .ht_clone_inline_end,.handsontable.htContextMenu .ht_clone_top_inline_start_corner,.handsontable.htContextMenu .ht_clone_top_inline_end_corner,.handsontable.htContextMenu .ht_clone_bottom_inline_start_corner,.handsontable.htContextMenu .ht_clone_bottom_inline_end_corner,.handsontable.htFiltersConditionsMenu .ht_clone_top,.handsontable.htFiltersConditionsMenu .ht_clone_bottom,.handsontable.htFiltersConditionsMenu .ht_clone_inline_start,.handsontable.htFiltersConditionsMenu .ht_clone_inline_end,.handsontable.htFiltersConditionsMenu .ht_clone_top_inline_start_corner,.handsontable.htFiltersConditionsMenu .ht_clone_top_inline_end_corner,.handsontable.htFiltersConditionsMenu .ht_clone_bottom_inline_start_corner,.handsontable.htFiltersConditionsMenu .ht_clone_bottom_inline_end_corner,.handsontable.htSheetsBarMenu .ht_clone_top,.handsontable.htSheetsBarMenu .ht_clone_bottom,.handsontable.htSheetsBarMenu .ht_clone_inline_start,.handsontable.htSheetsBarMenu .ht_clone_inline_end,.handsontable.htSheetsBarMenu .ht_clone_top_inline_start_corner,.handsontable.htSheetsBarMenu .ht_clone_top_inline_end_corner,.handsontable.htSheetsBarMenu .ht_clone_bottom_inline_start_corner,.handsontable.htSheetsBarMenu .ht_clone_bottom_inline_end_corner{display:none}.handsontable.htDropdownMenu table.htCore,.handsontable.htContextMenu table.htCore,.handsontable.htFiltersConditionsMenu table.htCore,.handsontable.htSheetsBarMenu table.htCore{overflow:hidden}.handsontable.htDropdownMenu .htCustomMenuRenderer .table.htCore,.handsontable.htContextMenu .htCustomMenuRenderer .table.htCore,.handsontable.htFiltersConditionsMenu .htCustomMenuRenderer .table.htCore,.handsontable.htSheetsBarMenu .htCustomMenuRenderer .table.htCore{box-shadow:none}.handsontable.htDropdownMenu.handsontable:focus,.handsontable.htContextMenu.handsontable:focus,.handsontable.htFiltersConditionsMenu.handsontable:focus,.handsontable.htSheetsBarMenu.handsontable:focus{outline:none}.handsontable.htDropdownMenu .wtBorder,.handsontable.htContextMenu .wtBorder,.handsontable.htFiltersConditionsMenu .wtBorder,.handsontable.htSheetsBarMenu .wtBorder{visibility:hidden}.handsontable.htDropdownMenu tbody tr:first-of-type td:first-child,.handsontable.htDropdownMenu tbody tr:first-of-type th:first-child,.handsontable.htContextMenu tbody tr:first-of-type td:first-child,.handsontable.htContextMenu tbody tr:first-of-type th:first-child,.handsontable.htFiltersConditionsMenu tbody tr:first-of-type td:first-child,.handsontable.htFiltersConditionsMenu tbody tr:first-of-type th:first-child,.handsontable.htSheetsBarMenu tbody tr:first-of-type td:first-child,.handsontable.htSheetsBarMenu tbody tr:first-of-type th:first-child{height:calc(var(--ht-cell-vertical-padding)*2 + var(--ht-line-height) + 1px)}.handsontable.htDropdownMenu table tbody tr td,.handsontable.htContextMenu table tbody tr td,.handsontable.htFiltersConditionsMenu table tbody tr td,.handsontable.htSheetsBarMenu table tbody tr td{padding:var(--ht-menu-item-vertical-padding,4px)var(--ht-menu-item-horizontal-padding,8px);white-space:nowrap;text-overflow:ellipsis;background:var(--ht-background-color,#fff);cursor:pointer;transition:var(--ht-table-transition)background ease-in-out;border-width:0;position:relative;overflow:hidden}.handsontable.htDropdownMenu table tbody tr td:first-child,.handsontable.htContextMenu table tbody tr td:first-child,.handsontable.htFiltersConditionsMenu table tbody tr td:first-child,.handsontable.htSheetsBarMenu table tbody tr td:first-child{border-top-width:0;border-inline-end-width:0;border-bottom-width:0;border-inline-start-width:0}.handsontable.htDropdownMenu table tbody tr td.htDimmed,.handsontable.htContextMenu table tbody tr td.htDimmed,.handsontable.htFiltersConditionsMenu table tbody tr td.htDimmed,.handsontable.htSheetsBarMenu table tbody tr td.htDimmed{font-style:normal;color:inherit!important;background-color:inherit!important}.handsontable.htDropdownMenu table tbody tr td:not(.handsontable.htDropdownMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htDropdownMenu table tbody tr td.htDisabled,.handsontable.htContextMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htContextMenu table tbody tr td.htDisabled,.handsontable.htFiltersConditionsMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htFiltersConditionsMenu table tbody tr td.htDisabled,.handsontable.htSheetsBarMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htSheetsBarMenu table tbody tr td.htDisabled):hover,.handsontable.htContextMenu table tbody tr td:not(.handsontable.htDropdownMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htDropdownMenu table tbody tr td.htDisabled,.handsontable.htContextMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htContextMenu table tbody tr td.htDisabled,.handsontable.htFiltersConditionsMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htFiltersConditionsMenu table tbody tr td.htDisabled,.handsontable.htSheetsBarMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htSheetsBarMenu table tbody tr td.htDisabled):hover,.handsontable.htFiltersConditionsMenu table tbody tr td:not(.handsontable.htDropdownMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htDropdownMenu table tbody tr td.htDisabled,.handsontable.htContextMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htContextMenu table tbody tr td.htDisabled,.handsontable.htFiltersConditionsMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htFiltersConditionsMenu table tbody tr td.htDisabled,.handsontable.htSheetsBarMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htSheetsBarMenu table tbody tr td.htDisabled):hover,.handsontable.htSheetsBarMenu table tbody tr td:not(.handsontable.htDropdownMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htDropdownMenu table tbody tr td.htDisabled,.handsontable.htContextMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htContextMenu table tbody tr td.htDisabled,.handsontable.htFiltersConditionsMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htFiltersConditionsMenu table tbody tr td.htDisabled,.handsontable.htSheetsBarMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htSheetsBarMenu table tbody tr td.htDisabled):hover{cursor:pointer;background:color-mix(in srgb,var(--ht-menu-item-hover-color)var(--ht-menu-item-hover-color-opacity,100%),transparent)!important}.handsontable.htDropdownMenu table tbody tr td:not(.handsontable.htDropdownMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htDropdownMenu table tbody tr td.htDisabled,.handsontable.htContextMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htContextMenu table tbody tr td.htDisabled,.handsontable.htFiltersConditionsMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htFiltersConditionsMenu table tbody tr td.htDisabled,.handsontable.htSheetsBarMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htSheetsBarMenu table tbody tr td.htDisabled).current:not([aria-expanded=true]),.handsontable.htContextMenu table tbody tr td:not(.handsontable.htDropdownMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htDropdownMenu table tbody tr td.htDisabled,.handsontable.htContextMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htContextMenu table tbody tr td.htDisabled,.handsontable.htFiltersConditionsMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htFiltersConditionsMenu table tbody tr td.htDisabled,.handsontable.htSheetsBarMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htSheetsBarMenu table tbody tr td.htDisabled).current:not([aria-expanded=true]),.handsontable.htFiltersConditionsMenu table tbody tr td:not(.handsontable.htDropdownMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htDropdownMenu table tbody tr td.htDisabled,.handsontable.htContextMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htContextMenu table tbody tr td.htDisabled,.handsontable.htFiltersConditionsMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htFiltersConditionsMenu table tbody tr td.htDisabled,.handsontable.htSheetsBarMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htSheetsBarMenu table tbody tr td.htDisabled).current:not([aria-expanded=true]),.handsontable.htSheetsBarMenu table tbody tr td:not(.handsontable.htDropdownMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htDropdownMenu table tbody tr td.htDisabled,.handsontable.htContextMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htContextMenu table tbody tr td.htDisabled,.handsontable.htFiltersConditionsMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htFiltersConditionsMenu table tbody tr td.htDisabled,.handsontable.htSheetsBarMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htSheetsBarMenu table tbody tr td.htDisabled).current:not([aria-expanded=true]){box-shadow:inset 0 0 0 1px var(--ht-accent-color)}.handsontable.htDropdownMenu table tbody tr td.htSubmenu .htItemWrapper,.handsontable.htContextMenu table tbody tr td.htSubmenu .htItemWrapper,.handsontable.htFiltersConditionsMenu table tbody tr td.htSubmenu .htItemWrapper,.handsontable.htSheetsBarMenu table tbody tr td.htSubmenu .htItemWrapper{margin-inline-end:calc(2*var(--ht-gap-size,4px) + var(--ht-icon-size))}.handsontable.htDropdownMenu table tbody tr td.htSubmenu .htItemWrapper .htSubmenuIcon,.handsontable.htContextMenu table tbody tr td.htSubmenu .htItemWrapper .htSubmenuIcon,.handsontable.htFiltersConditionsMenu table tbody tr td.htSubmenu .htItemWrapper .htSubmenuIcon,.handsontable.htSheetsBarMenu table tbody tr td.htSubmenu .htItemWrapper .htSubmenuIcon{top:50%;position:absolute;inset-inline-end:calc(var(--ht-menu-item-horizontal-padding) + var(--ht-gap-size)*2);translate:0 -50%}.handsontable.htDropdownMenu table tbody tr td.htSeparator,.handsontable.htContextMenu table tbody tr td.htSeparator,.handsontable.htFiltersConditionsMenu table tbody tr td.htSeparator,.handsontable.htSheetsBarMenu table tbody tr td.htSeparator{border-top:1px solid var(--ht-border-color);cursor:default;height:0;padding:0}.handsontable.htDropdownMenu table tbody tr td.htDisabled,.handsontable.htContextMenu table tbody tr td.htDisabled,.handsontable.htFiltersConditionsMenu table tbody tr td.htDisabled,.handsontable.htSheetsBarMenu table tbody tr td.htDisabled{color:var(--ht-disabled-color);cursor:default}.handsontable.htDropdownMenu table tbody tr td.htDisabled:hover,.handsontable.htContextMenu table tbody tr td.htDisabled:hover,.handsontable.htFiltersConditionsMenu table tbody tr td.htDisabled:hover,.handsontable.htSheetsBarMenu table tbody tr td.htDisabled:hover{background:var(--ht-background-color);color:var(--ht-disabled-color)}.handsontable.htDropdownMenu table tbody tr td.htHidden,.handsontable.htContextMenu table tbody tr td.htHidden,.handsontable.htFiltersConditionsMenu table tbody tr td.htHidden,.handsontable.htSheetsBarMenu table tbody tr td.htHidden{display:none}.handsontable.htDropdownMenu table tbody tr td:has(.htItemWrapper .selected),.handsontable.htContextMenu table tbody tr td:has(.htItemWrapper .selected),.handsontable.htFiltersConditionsMenu table tbody tr td:has(.htItemWrapper .selected),.handsontable.htSheetsBarMenu table tbody tr td:has(.htItemWrapper .selected){background-color:color-mix(in srgb,var(--ht-menu-item-active-color)var(--ht-menu-item-active-color-opacity,100%),transparent)}.handsontable.htDropdownMenu table tbody tr td .htItemWrapper,.handsontable.htContextMenu table tbody tr td .htItemWrapper,.handsontable.htFiltersConditionsMenu table tbody tr td .htItemWrapper,.handsontable.htSheetsBarMenu table tbody tr td .htItemWrapper{margin-inline:calc(2*var(--ht-gap-size,4px))}.handsontable.htDropdownMenu table tbody tr td .htItemWrapper:before,.handsontable.htContextMenu table tbody tr td .htItemWrapper:before,.handsontable.htFiltersConditionsMenu table tbody tr td .htItemWrapper:before,.handsontable.htSheetsBarMenu table tbody tr td .htItemWrapper:before{vertical-align:text-bottom;margin-right:12px}.handsontable.htDropdownMenu table tbody tr td .htItemWrapper span.selected,.handsontable.htDropdownMenu table tbody tr td .htItemWrapper span.htMixed,.handsontable.htContextMenu table tbody tr td .htItemWrapper span.selected,.handsontable.htContextMenu table tbody tr td .htItemWrapper span.htMixed,.handsontable.htFiltersConditionsMenu table tbody tr td .htItemWrapper span.selected,.handsontable.htFiltersConditionsMenu table tbody tr td .htItemWrapper span.htMixed,.handsontable.htSheetsBarMenu table tbody tr td .htItemWrapper span.selected,.handsontable.htSheetsBarMenu table tbody tr td .htItemWrapper span.htMixed{font-size:0;inset:0}.handsontable.htDropdownMenu table tbody tr td .htItemWrapper span.selected .ht-icon,.handsontable.htDropdownMenu table tbody tr td .htItemWrapper span.htMixed .ht-icon,.handsontable.htContextMenu table tbody tr td .htItemWrapper span.selected .ht-icon,.handsontable.htContextMenu table tbody tr td .htItemWrapper span.htMixed .ht-icon,.handsontable.htFiltersConditionsMenu table tbody tr td .htItemWrapper span.selected .ht-icon,.handsontable.htFiltersConditionsMenu table tbody tr td .htItemWrapper span.htMixed .ht-icon,.handsontable.htSheetsBarMenu table tbody tr td .htItemWrapper span.selected .ht-icon,.handsontable.htSheetsBarMenu table tbody tr td .htItemWrapper span.htMixed .ht-icon{color:var(--ht-accent-color);top:50%;position:absolute;inset-inline-end:calc(var(--ht-menu-item-horizontal-padding) + var(--ht-gap-size)*2);transform:translateY(-50%)}.handsontable.htDropdownMenu table tbody tr td div span.selected,.handsontable.htDropdownMenu table tbody tr td div span.htMixed,.handsontable.htContextMenu table tbody tr td div span.selected,.handsontable.htContextMenu table tbody tr td div span.htMixed,.handsontable.htFiltersConditionsMenu table tbody tr td div span.selected,.handsontable.htFiltersConditionsMenu table tbody tr td div span.htMixed,.handsontable.htSheetsBarMenu table tbody tr td div span.selected,.handsontable.htSheetsBarMenu table tbody tr td div span.htMixed{position:absolute;inset-inline-end:0}.handsontable.htDropdownMenu table tbody tr td .htUIButton,.handsontable.htContextMenu table tbody tr td .htUIButton,.handsontable.htFiltersConditionsMenu table tbody tr td .htUIButton,.handsontable.htSheetsBarMenu table tbody tr td .htUIButton{width:calc(50% - var(--ht-gap-size))}.handsontable.htDropdownMenu table tbody tr td .htUIButton input,.handsontable.htContextMenu table tbody tr td .htUIButton input,.handsontable.htFiltersConditionsMenu table tbody tr td .htUIButton input,.handsontable.htSheetsBarMenu table tbody tr td .htUIButton input{width:100%}.handsontable .htUIClearAll a,.handsontable .htUISelectAll a{padding:var(--ht-gap-size);text-decoration:none;display:inline-block}.handsontable .htUIMultipleSelect .ht_master .wtHolder{background:0 0;box-shadow:none!important;border-radius:0!important;overflow-y:scroll!important}.handsontable .htUIMultipleSelect .ht_master .wtHolder .htCore{box-shadow:none}.handsontable .htUIMultipleSelect .ht_master .htScrollbarFrame{box-shadow:none!important}[dir=rtl].handsontable.htDropdownMenu table tbody tr td.htSubmenu .htItemWrapper .htSubmenuIcon,[dir=rtl].handsontable.htDropdownMenu table tbody tr td .htItemWrapper span.selected .ht-icon,[dir=rtl].handsontable.htDropdownMenu table tbody tr td .htItemWrapper span.htMixed .ht-icon,[dir=rtl].handsontable.htContextMenu table tbody tr td.htSubmenu .htItemWrapper .htSubmenuIcon,[dir=rtl].handsontable.htContextMenu table tbody tr td .htItemWrapper span.selected .ht-icon,[dir=rtl].handsontable.htContextMenu table tbody tr td .htItemWrapper span.htMixed .ht-icon,[dir=rtl].handsontable.htFiltersConditionsMenu table tbody tr td.htSubmenu .htItemWrapper .htSubmenuIcon,[dir=rtl].handsontable.htFiltersConditionsMenu table tbody tr td .htItemWrapper span.selected .ht-icon,[dir=rtl].handsontable.htFiltersConditionsMenu table tbody tr td .htItemWrapper span.htMixed .ht-icon,[dir=rtl].handsontable.htSheetsBarMenu table tbody tr td.htSubmenu .htItemWrapper .htSubmenuIcon,[dir=rtl].handsontable.htSheetsBarMenu table tbody tr td .htItemWrapper span.selected .ht-icon,[dir=rtl].handsontable.htSheetsBarMenu table tbody tr td .htItemWrapper span.htMixed .ht-icon{inset-inline-end:calc(4*var(--ht-gap-size))}.handsontable.htSheetsBarMenu table tbody tr td .htItemWrapper .ht-sheets-bar__menu-item-name{text-overflow:ellipsis;vertical-align:top;max-width:100%;font-size:inherit;line-height:inherit;font-weight:inherit;letter-spacing:inherit;border:0;margin:0;padding:0;font-family:inherit;display:inline-block;overflow:hidden}.handsontable.htSheetsBarMenu table tbody tr td .htItemWrapper span.selected{border:0;margin:0;padding:0}.handsontable.htFiltersConditionsMenu:not(.htGhostTable){z-index:1070}.handsontable .ht_master table td.htCustomMenuRenderer{cursor:auto}.handsontable .ht_master table td.htCustomMenuRenderer.htFiltersMenuActionBar{padding-top:calc(var(--ht-menu-item-vertical-padding,4px)*2)}.handsontable .htFiltersMenuLabel{font-size:var(--ht-font-size-small);line-height:var(--ht-line-height-small);font-weight:var(--ht-font-weight);margin-bottom:calc(var(--ht-gap-size,2px)*2)}.handsontable .htFiltersMenuLabel:empty{display:none}.handsontable .htFiltersMenuCondition{padding-top:calc(var(--ht-gap-size,2px)*3)!important;padding-bottom:0!important}.handsontable .htFiltersMenuCondition .border{border-bottom:1px solid var(--ht-border-color)!important}.handsontable .htFiltersMenuCondition .htUIInput{margin-top:calc(var(--ht-gap-size,2px)*2)}.handsontable .htFiltersMenuValue{padding-top:calc(var(--ht-gap-size,2px)*3)!important;border-bottom:1px solid var(--ht-border-color)!important;padding-bottom:0!important}.handsontable .htFiltersMenuOperators{padding-top:calc(var(--ht-gap-size,2px)*2)!important;padding-bottom:0!important}.handsontable .htUISelectionControls{white-space:normal;margin:0 calc(var(--ht-gap-size,2px)*-1);padding-top:calc(var(--ht-gap-size,2px)*2)!important;padding-bottom:var(--ht-gap-size,2px)!important}.handsontable .htUIMultipleSelectHot{--ht-cell-horizontal-padding:calc(var(--ht-menu-item-horizontal-padding,2px) + var(--ht-gap-size,2px)*2);--ht-cell-vertical-padding:4px;width:calc(100% + var(--ht-menu-item-horizontal-padding,2px)*2 + var(--ht-gap-size,2px)*4);margin:0 calc((var(--ht-menu-item-horizontal-padding,2px) + var(--ht-gap-size,2px)*2)*-1);overflow:initial!important}.handsontable .htUIMultipleSelectHot:before{content:"";background-color:var(--ht-border-color);width:100%;height:1px;display:block;position:absolute;top:-1px;left:0}.handsontable .htUIMultipleSelectHot .wtHolder{box-sizing:border-box;padding:0;overflow-x:hidden}.handsontable .htUIMultipleSelectHot .wtHolder .wtSpreader{padding:calc(var(--ht-gap-size)*2)0}.handsontable .htUIMultipleSelectHot .wtHolder td{padding:var(--ht-cell-vertical-padding)var(--ht-cell-horizontal-padding);height:auto!important}.handsontable .htUIClearAll,.handsontable .htUISelectAll{margin-right:var(--ht-gap-size,4px);margin-bottom:var(--ht-gap-size,4px);display:inline-block}.handsontable .htUIClearAll a,.handsontable .htUISelectAll a{font-size:var(--ht-font-size);line-height:var(--ht-line-height);color:var(--ht-link-color);border-radius:var(--ht-button-border-radius)}.handsontable .htUIClearAll a:hover,.handsontable .htUISelectAll a:hover{color:var(--ht-link-hover-color)}.handsontable .htUIClearAll a:focus,.handsontable .htUISelectAll a:focus{outline:1px solid var(--ht-link-hover-color)}.handsontable .htUIMultipleSelect .ht_master .wtHolder{overflow:auto}.handsontable .htUIMultipleSelect .ht_master .wtHolder .wtHider,.handsontable .htUIMultipleSelect .ht_master .wtHolder .htCore,.handsontable .htUIMultipleSelect .ht_master .wtHolder tr,.handsontable .htUIMultipleSelect .ht_master .wtHolder td{background:0 0}.handsontable .htUIInput.htUIButton{cursor:pointer;display:inline-block}.handsontable .htUIInput.htUIButtonOK{margin-inline-start:0;margin-inline-end:calc(2*var(--ht-gap-size,2px))}:where(.handsontable,.hfe-formula-bar,.hfe-popup-portal,.hfe-suggestions,.hfe-fn-help){--hfe-font-family:var(--ht-font-family),-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;--hfe-font-size:var(--ht-font-size);--hfe-line-height:var(--ht-line-height);--hfe-formula-bar-input-focus-ring:var(--ht-cell-selection-border-color);--hfe-gap:var(--ht-gap-size);--hfe-color-background:var(--ht-cell-editor-background-color);--hfe-color-foreground:var(--ht-cell-editor-foreground-color);--hfe-color-foreground-secondary:var(--ht-foreground-secondary-color);--hfe-color-accent:var(--ht-accent-color);--hfe-shadow-x:var(--ht-shadow-x);--hfe-shadow-y:var(--ht-shadow-y);--hfe-shadow-blur:var(--ht-shadow-blur);--hfe-shadow-opacity:var(--ht-shadow-opacity);--hfe-color-shadow:color-mix(in srgb,var(--ht-shadow-color)var(--ht-shadow-opacity),transparent);--hfe-padding-vertical:var(--ht-cell-vertical-padding);--hfe-padding-horizontal:var(--ht-cell-horizontal-padding);--hfe-border-width:var(--ht-cell-editor-border-width);--hfe-border-width-focus:var(--ht-cell-editor-border-width);--hfe-color-caret:var(--ht-cell-editor-foreground-color);--hfe-editor-color-border:var(--ht-cell-editor-border-color);--hfe-color-focus-ring:var(--ht-cell-editor-border-color);--hfe-menu-item-padding-horizontal:var(--ht-menu-item-horizontal-padding);--hfe-menu-item-padding-vertical:var(--ht-menu-item-vertical-padding);--hfe-menu-item-border-radius:0;--hfe-menu-padding-horizontal:var(--ht-menu-horizontal-padding);--hfe-menu-padding-vertical:var(--ht-menu-vertical-padding);--hfe-menu-border-radius:var(--ht-menu-border-radius);--hfe-menu-border-width:var(--ht-menu-border-width);--hfe-menu-border-color:var(--ht-menu-border-color);--hfe-menu-background:var(--ht-background-color);--hfe-menu-kbd-row-border-color:var(--ht-border-color);--hfe-menu-chip-background:var(--ht-accent-color);--hfe-menu-chip-foreground:var(--ht-background-color);--hfe-menu-chip-border-radius:var(--ht-chip-border-radius);--hfe-menu-shadow:var(--ht-menu-shadow-x)var(--ht-menu-shadow-y)var(--ht-menu-shadow-blur)color-mix(in srgb,var(--ht-menu-shadow-color)var(--ht-menu-shadow-opacity),transparent);--hfe-token-fn:var(--ht-foreground-color);--hfe-token-num:var(--ht-foreground-color);--hfe-token-str:var(--ht-foreground-color);--hfe-token-bool:var(--ht-foreground-color);--hfe-token-op:var(--ht-foreground-color);--hfe-token-paren:var(--ht-foreground-color);--hfe-token-paren-match:var(--ht-accent-color);--hfe-token-bracket:var(--ht-foreground-color);--hfe-token-sep:var(--ht-foreground-color);--hfe-token-ident:var(--ht-foreground-color);--hfe-ref-1:light-dark(#007bff,#0a84ff);--hfe-ref-2:light-dark(#ff9500,#ff9d0a);--hfe-ref-3:light-dark(#af52de,#bf5af2);--hfe-ref-4:light-dark(#30d158,#34c759);--hfe-ref-5:light-dark(#ff2d54,#ff375f);--hfe-ref-6:light-dark(#30b0c7,#40c8e0);--hfe-ref-7:light-dark(#5856d6,#5e5ce6);--hfe-ref-8:light-dark(#a2855e,#ac8e68);--hfe-error-padding-horizontal:var(--ht-comments-textarea-horizontal-padding);--hfe-error-padding-vertical:var(--ht-comments-textarea-vertical-padding);--hfe-formula-bar-background:var(--ht-background-color);--hfe-formula-bar-foreground:var(--ht-foreground-color);--hfe-formula-bar-border:var(--ht-border-color);--hfe-formula-bar-border-width:1px;--hfe-formula-bar-border-radius:var(--ht-border-radius);--hfe-formula-bar-padding-vertical:var(--ht-cell-vertical-padding);--hfe-formula-bar-padding-horizontal:var(--ht-cell-horizontal-padding)}.handsontable .hfe-editor{outline:none;box-sizing:border-box!important}.handsontable .hfe-editor--focused{outline:none}.ht-formula-builder__formula-bar .hfe-formula-bar__overlay .hfe-editor--focused{outline:var(--hfe-border-width-focus)solid var(--hfe-formula-bar-input-focus-ring);outline-offset:calc(-1*var(--hfe-border-width-focus))}.handsontable .ht-formula-builder__inline-editor{width:100%;height:100%}.handsontable .ht-formula-builder__inline-editor>.handsontableInput{resize:none;width:100%;height:100%;overflow:hidden}.handsontable .ht-formula-builder__inline-editor .hfe-editor{box-shadow:none;--hfe-padding-vertical:calc(var(--ht-cell-vertical-padding) + 1px);--hfe-padding-horizontal:calc(var(--ht-cell-horizontal-padding) + 1px)}.ht-formula-builder__formula-bar .hfe-formula-bar__overlay{--hfe-editor-max-lines:1}.ht-formula-builder__formula-bar.hfe-formula-bar .hfe-formula-bar__cell--formula{padding:0;padding-inline-start:var(--hfe-formula-bar-padding-horizontal)}.ht-formula-builder__formula-bar.hfe-formula-bar .hfe-formula-bar__idle{height:calc(var(--hfe-line-height) + 2*var(--hfe-formula-bar-padding-vertical))}.ht-formula-builder__formula-bar.hfe-formula-bar .hfe-overlay,.ht-formula-builder__formula-bar.hfe-formula-bar .hfe-editor__input{padding:var(--hfe-formula-bar-padding-vertical)var(--hfe-border-width-focus)}.ht-formula-builder__formula-bar .hfe-editor--height-capped .hfe-overlay,.ht-formula-builder__formula-bar .hfe-editor--height-capped .hfe-editor__input{scrollbar-width:auto}.handsontable .ht-formula-builder__inline-editor .hfe-editor:after{content:"";border:var(--hfe-border-width)solid var(--hfe-editor-color-border);pointer-events:none;position:absolute;inset:0}.handsontable .hfe-editor__input,.handsontable .hfe-overlay{box-sizing:border-box;font-weight:var(--ht-font-weight,400)}.handsontable .hfe-fn-help__learn-more,.handsontable .hfe-fn-help__learn-more:hover{color:var(--hfe-color-foreground)}.handsontable td.ht-formula-builder__editing-cell{color:#0000}.handsontable .htCommentCell{position:relative}.handsontable .htCommentCell:after{content:"";border-inline-start:var(--ht-comments-indicator-size,4px)solid #0000;border-inline-end:none;border-top:var(--ht-comments-indicator-size,4px)solid var(--ht-comments-indicator-color,#1a42e8);top:0;display:block;position:absolute;inset-inline-start:unset;inset-inline-end:0}.htCommentsContainer .htComments{z-index:1059;display:none;position:absolute}.htCommentsContainer .htCommentTextArea{font-family:var(--ht-font-family),-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-shadow:var(--ht-menu-shadow-x,0)var(--ht-menu-shadow-y,0)var(--ht-menu-shadow-blur,8px)color-mix(in srgb,var(--ht-menu-shadow-color,#000)var(--ht-menu-shadow-opacity,100%),transparent);width:240px;height:88px;font-size:var(--ht-font-size);line-height:var(--ht-line-height);font-weight:var(--ht-font-weight);padding:var(--ht-comments-textarea-vertical-padding)var(--ht-comments-textarea-horizontal-padding);border:var(--ht-comments-textarea-border-width,1px)solid var(--ht-comments-textarea-border-color,transparent);border-inline-start:var(--ht-comments-textarea-border-width,1px)solid var(--ht-comments-textarea-border-color,#1a42e8);color:var(--ht-comments-textarea-foreground-color);background-color:var(--ht-comments-textarea-background-color,#fff);box-sizing:border-box;-webkit-appearance:none;margin:0 -1px;outline:0!important}.htCommentsContainer .htCommentTextArea:focus{border:var(--ht-comments-textarea-focus-border-width,1px)solid var(--ht-comments-textarea-focus-border-color,#1a42e8);color:var(--ht-comments-textarea-focus-foreground-color);background-color:var(--ht-comments-textarea-focus-background-color,#fff)}.htBorders .wtBorder.ht-border-style-dashed-vertical{background-image:repeating-linear-gradient(to bottom,var(--ht-custom-border-color)0 5px,transparent 0 10px)}.htBorders .wtBorder.ht-border-style-dashed-horizontal{background-image:repeating-linear-gradient(to right,var(--ht-custom-border-color)0 5px,transparent 0 10px)}.htBorders .wtBorder.ht-border-style-dotted-horizontal{background-image:radial-gradient(circle,var(--ht-custom-border-color)calc(var(--ht-custom-border-size)/2),transparent 0);background-size:calc(var(--ht-custom-border-size)*2)var(--ht-custom-border-size);background-repeat:repeat-x}.htBorders .wtBorder.ht-border-style-dotted-vertical{background-image:radial-gradient(circle,var(--ht-custom-border-color)calc(var(--ht-custom-border-size)/2),transparent 0);background-size:var(--ht-custom-border-size)calc(var(--ht-custom-border-size)*2);background-repeat:repeat-y}.handsontable .colHeader.columnSorting.sortAction{box-sizing:border-box;min-width:min(var(--ht-icon-size,16px) + 8px,100%);flex-grow:0;max-width:100%;margin-inline:auto;position:static}.handsontable .colHeader.columnSorting.sortAction:after{margin-inline:var(--ht-sort-indicator-offset);margin-inline-end:var(--ht-sort-indicator-offset-end)}.handsontable .htLeft .colHeader.columnSorting.sortAction{margin-left:0;margin-right:auto}.handsontable .htRight .colHeader.columnSorting.sortAction{margin-left:auto;margin-right:0}.handsontable th .relative{--ht-sort-indicator-offset:var(--ht-cell-horizontal-padding);--ht-sort-indicator-offset-end:var(--ht-cell-horizontal-padding);--ht-sort-indicator-reserve:var(--ht-cell-horizontal-padding);--ht-sort-indicator-reserve-end:var(--ht-sort-indicator-reserve);--ht-header-button-slot:calc(var(--ht-icon-size,16px) + 2px);--ht-header-indicator-min-width:calc(2*var(--ht-cell-horizontal-padding) + 2*var(--ht-icon-size,16px) + 6px);--ht-header-indicator-min-content-width:calc(2*var(--ht-icon-size,16px) + 6px);--ht-header-gap:2px}.handsontable .relative.has-header-button{--ht-sort-indicator-offset-end:calc(var(--ht-cell-horizontal-padding) + var(--ht-icon-size,16px) + (var(--ht-icon-button-hit-area-size,24px) - var(--ht-icon-size,16px))*.5);--ht-sort-indicator-reserve-end:var(--ht-cell-horizontal-padding)}.handsontable .relative.has-sort-indicator.has-header-button{--ht-header-gap:clamp(2px,calc((100% - var(--ht-header-indicator-min-content-width))*1000 + 2px),calc(2px + var(--ht-header-button-slot)));column-gap:var(--ht-header-gap)}.handsontable .relative.has-sort-indicator{--ht-sort-indicator-reserve:calc(var(--ht-cell-horizontal-padding) + var(--ht-icon-size,16px) + 2px);padding-inline-end:var(--ht-sort-indicator-reserve-end)}.handsontable .relative.htRight.has-sort-indicator,.handsontable .htRight .relative.has-sort-indicator{--ht-header-button-slot:0px;padding-inline-start:var(--ht-sort-indicator-reserve);padding-inline-end:var(--ht-cell-horizontal-padding)}.handsontable .relative.htRight.has-sort-indicator.has-header-button,.handsontable .htRight .relative.has-sort-indicator.has-header-button{padding-inline-start:clamp(var(--ht-cell-horizontal-padding),(100% - var(--ht-header-indicator-min-width))*1000 + var(--ht-cell-horizontal-padding),var(--ht-sort-indicator-reserve))}.handsontable .relative.has-header-button .colHeader.columnSorting.sortAction{min-width:min(var(--ht-icon-size,16px) + 8px,max(0px,100% - var(--ht-icon-size,16px) - 2px - var(--ht-header-gap)))}.handsontable .relative.has-header-button.has-sort-indicator>.ht-sort-indicator{max-width:clamp(0px,(100% - var(--ht-header-indicator-min-width))*1000,var(--ht-icon-size,16px));overflow:hidden}.handsontable .relative.has-header-button.has-sort-indicator .colHeader.columnSorting.sortAction:after{max-width:clamp(0px,(100% - var(--ht-header-indicator-min-width))*1000,8px);overflow:hidden}.handsontable .columnSorting:not(.indicatorDisabled){position:relative}.handsontable .columnSorting:not(.indicatorDisabled).sortAction:hover{cursor:pointer;text-decoration:none}.handsontable th .relative>.ht-sort-indicator{pointer-events:auto;top:50%;position:absolute;inset-inline-end:calc(var(--ht-sort-indicator-offset-end) + 2px);transform:translateY(-50%)}.handsontable .columnSorting.sortAction~.ht-sort-indicator,.handsontable .columnSorting.sortAction~.ht-sort-indicator:hover{cursor:pointer}.handsontable .relative.htRight>.ht-sort-indicator,.handsontable .htRight .relative>.ht-sort-indicator{inset-inline-start:calc(var(--ht-sort-indicator-offset) + 2px);inset-inline-end:auto}[dir=rtl] .handsontable .relative.htRight.has-sort-indicator,[dir=rtl] .handsontable .htRight .relative.has-sort-indicator{--ht-header-button-slot:calc(var(--ht-icon-size,16px) + 2px);padding-inline-start:var(--ht-cell-horizontal-padding);padding-inline-end:var(--ht-sort-indicator-reserve-end)}[dir=rtl] .handsontable .relative.htLeft.has-sort-indicator,[dir=rtl] .handsontable .htLeft .relative.has-sort-indicator{--ht-header-button-slot:0px;padding-inline-start:var(--ht-sort-indicator-reserve);padding-inline-end:var(--ht-cell-horizontal-padding)}[dir=rtl] .handsontable .relative.htLeft.has-sort-indicator.has-header-button,[dir=rtl] .handsontable .htLeft .relative.has-sort-indicator.has-header-button{padding-inline-start:clamp(var(--ht-cell-horizontal-padding),(100% - var(--ht-header-indicator-min-width))*1000 + var(--ht-cell-horizontal-padding),var(--ht-sort-indicator-reserve))}[dir=rtl] .handsontable .relative.htRight>.ht-sort-indicator,[dir=rtl] .handsontable .htRight .relative>.ht-sort-indicator{inset-inline-start:auto;inset-inline-end:calc(var(--ht-sort-indicator-offset-end) + 2px)}[dir=rtl] .handsontable .relative.htLeft>.ht-sort-indicator,[dir=rtl] .handsontable .htLeft .relative>.ht-sort-indicator{inset-inline-start:calc(var(--ht-sort-indicator-offset) + 2px);inset-inline-end:auto}.htGhostTable .htCore .relative{--ht-sort-indicator-offset:0px;--ht-sort-indicator-offset-end:0px;--ht-header-button-slot:0px}.htGhostTable .htCore .relative.has-header-button{--ht-sort-indicator-reserve:var(--ht-cell-horizontal-padding);--ht-sort-indicator-reserve-end:var(--ht-cell-horizontal-padding)}.htGhostTable .htCore .relative.has-header-button .colHeader.columnSorting.sortAction{min-width:min(var(--ht-icon-size,16px) + 8px,100%)}.htGhostTable .htCore .relative.has-header-button .colHeader.columnSorting.sortAction:after,.htGhostTable .htCore .relative.has-header-button.has-sort-indicator>.ht-sort-indicator{max-width:none}.htGhostTable .htCore .relative.has-sort-indicator.has-header-button{--ht-header-gap:calc(2px + var(--ht-header-button-slot));column-gap:var(--ht-header-gap)}.htGhostTable .htCore span.colHeader.columnSorting:not(.indicatorDisabled):before{content:"*";padding-inline-end:calc(var(--ht-icon-size,16px) + 2px);display:inline-block;position:relative}.htGhostTable .htCore span.colHeader.columnSorting.sortAction:not(.indicatorDisabled):before{width:var(--ht-icon-size,16px)}.handsontable .colHeader.columnSorting:after{content:"";text-align:right;width:8px;margin-top:4px;font-size:8px;display:block;position:absolute;top:50%;right:0;transform:translateY(-50%)}.handsontable .colHeader.columnSorting[class^=sort-]:after,.handsontable .colHeader.columnSorting[class*=\\ sort-]:after{content:"+"}.handsontable .colHeader.columnSorting.sort-1:after{content:"1"}.handsontable .colHeader.columnSorting.sort-2:after{content:"2"}.handsontable .colHeader.columnSorting.sort-3:after{content:"3"}.handsontable .colHeader.columnSorting.sort-4:after{content:"4"}.handsontable .colHeader.columnSorting.sort-5:after{content:"5"}.handsontable .colHeader.columnSorting.sort-6:after{content:"6"}.handsontable .colHeader.columnSorting.sort-7:after{content:"7"}.handsontable .htRight .colHeader.columnSorting:after,[dir=rtl] .handsontable .colHeader.columnSorting:after{text-align:left;left:0;right:auto}[dir=rtl] .handsontable .htLeft .colHeader.columnSorting:after{text-align:right;left:auto;right:0}.htGhostTable th div:has(.changeType) span.colHeader.columnSorting:not(.indicatorDisabled){padding-inline-end:var(--ht-gap-size)}.handsontable .ht_clone_top_inline_start_corner th.ht__active_highlight,.handsontable .ht_clone_top_inline_end_corner th.ht__active_highlight{box-shadow:none}[dir=rtl].handsontable .ht-freeze-bar-guide--rows,[dir=rtl].handsontable .ht-freeze-bar-ghost--rows{--ht-freeze-bar-header-side:to left}[dir=rtl].handsontable.ht-freeze-bar-columns .manualColumnResizer.ht-resize-handle--freeze-before:before{left:0}[dir=rtl].handsontable.ht-freeze-bar-columns .manualColumnResizer.ht-resize-handle--freeze-before:after{left:calc(6px + var(--ht-sizing-size-1))}[dir=rtl].handsontable.ht-freeze-bar-columns .manualColumnResizer.ht-resize-handle--freeze-after:before{left:calc(0px - var(--ht-sizing-size-1))}[dir=rtl].handsontable.ht-freeze-bar-columns .manualColumnResizer.ht-resize-handle--freeze-after:after{left:6px}.handsontable .ht-freeze-bar{z-index:105;background:var(--ht-freeze-bar-color);cursor:grab;touch-action:none;position:absolute}.handsontable .ht-freeze-bar--active{cursor:grabbing}.handsontable .ht-freeze-bar--hover:not(.ht-freeze-bar--wide){--ht-freeze-bar-hover-side:to bottom;--ht-freeze-bar-header-paint:var(--ht-freeze-bar-hover-color);background:linear-gradient(var(--ht-freeze-bar-hover-side),var(--ht-freeze-bar-color)var(--ht-freeze-bar-header-from),var(--ht-freeze-bar-header-paint)var(--ht-freeze-bar-header-from),var(--ht-freeze-bar-header-paint)var(--ht-freeze-bar-header-to),var(--ht-freeze-bar-color)var(--ht-freeze-bar-header-to))}.handsontable .ht-freeze-bar--hover:not(.ht-freeze-bar--wide).ht-freeze-bar--active{--ht-freeze-bar-header-paint:var(--ht-freeze-bar-highlight-color)}.handsontable .ht-freeze-bar--hover:not(.ht-freeze-bar--wide).ht-freeze-bar--top,.handsontable .ht-freeze-bar--hover:not(.ht-freeze-bar--wide).ht-freeze-bar--bottom{--ht-freeze-bar-hover-side:to right}.handsontable .ht-freeze-bar--focused{outline:var(--ht-sizing-size-0-5)solid var(--ht-accent-color);outline-offset:calc(-1*var(--ht-sizing-size-0-5))}@media (pointer:coarse){.handsontable .ht-freeze-bar:before{content:"";position:absolute;inset:0}.handsontable .ht-freeze-bar.ht-freeze-bar--start:before{inset-inline-start:-12px}.handsontable .ht-freeze-bar.ht-freeze-bar--top:before{inset-block-start:-12px}.handsontable .ht-freeze-bar.ht-freeze-bar--end:before{inset-inline-end:-12px}.handsontable .ht-freeze-bar.ht-freeze-bar--bottom:before{inset-block-end:-12px}}.handsontable .ht-freeze-bar--start{width:var(--ht-sizing-size-1);top:0;bottom:0;inset-inline-end:0}.handsontable .ht-freeze-bar--top{height:var(--ht-sizing-size-1);inset-inline:0;bottom:0}.handsontable .ht-freeze-bar--end{width:var(--ht-sizing-size-1);top:0;bottom:0;inset-inline-start:0}.handsontable .ht-freeze-bar--bottom{height:var(--ht-sizing-size-1);inset-inline:0;top:0}.handsontable .ht-freeze-bar--empty{z-index:190}.handsontable .ht-freeze-bar--empty.ht-freeze-bar--start{inset-inline-end:auto}.handsontable .ht-freeze-bar--empty.ht-freeze-bar--top{bottom:auto;inset-inline:0}.handsontable .ht-freeze-bar--empty.ht-freeze-bar--end{inset-inline-start:auto}.handsontable .ht-freeze-bar--empty.ht-freeze-bar--bottom{top:auto;inset-inline:0}.handsontable .ht-freeze-bar--empty.ht-freeze-bar--wide{background:0 0}.handsontable .ht-freeze-bar--empty.ht-freeze-bar--wide:after{content:"";background:var(--ht-freeze-bar-color);position:absolute}.handsontable .ht-freeze-bar--empty.ht-freeze-bar--wide.ht-freeze-bar--hover:after{background:var(--ht-freeze-bar-hover-color)}.handsontable .ht-freeze-bar--empty.ht-freeze-bar--wide.ht-freeze-bar--hover.ht-freeze-bar--active:after{background:var(--ht-freeze-bar-highlight-color)}.handsontable .ht-freeze-bar--empty.ht-freeze-bar--wide.ht-freeze-bar--start:after{height:var(--ht-freeze-bar-corner);inset-block-start:0;inset-inline:0}.handsontable .ht-freeze-bar--empty.ht-freeze-bar--wide.ht-freeze-bar--top:after{width:var(--ht-freeze-bar-corner);inset-block:0;inset-inline-start:0}@media (pointer:coarse){.handsontable .ht-freeze-bar--empty.ht-freeze-bar--wide.ht-freeze-bar--start:before{height:var(--ht-freeze-bar-corner);inset:0 -20px auto}.handsontable .ht-freeze-bar--empty.ht-freeze-bar--wide.ht-freeze-bar--top:before{width:var(--ht-freeze-bar-corner);inset-block:-20px;inset-inline:0 auto}}.handsontable.ht-freeze-bar-columns .manualColumnResizer.ht-resize-handle--freeze-before:before{left:calc(2px - var(--ht-sizing-size-1))}.handsontable.ht-freeze-bar-columns .manualColumnResizer.ht-resize-handle--freeze-before:after{left:8px;right:auto}.handsontable.ht-freeze-bar-columns .manualColumnResizer.ht-resize-handle--freeze-after:before{left:2px}.handsontable.ht-freeze-bar-columns .manualColumnResizer.ht-resize-handle--freeze-after:after{right:auto;left:calc(8px + var(--ht-sizing-size-1))}.handsontable.ht-freeze-bar-rows .manualRowResizer.ht-resize-handle--freeze-before:before{top:calc(2px - var(--ht-sizing-size-1))}.handsontable.ht-freeze-bar-rows .manualRowResizer.ht-resize-handle--freeze-before:after{top:8px;bottom:auto}.handsontable.ht-freeze-bar-rows .manualRowResizer.ht-resize-handle--freeze-after:before{top:2px}.handsontable.ht-freeze-bar-rows .manualRowResizer.ht-resize-handle--freeze-after:after{bottom:auto;top:calc(8px + var(--ht-sizing-size-1))}.handsontable.ht-freeze-bar-dragging,.handsontable.ht-freeze-bar-dragging *{cursor:grabbing}.handsontable .ht-freeze-bar-guide,.handsontable .ht-freeze-bar-ghost{--ht-freeze-bar-header-side:to bottom;z-index:216;background:linear-gradient(var(--ht-freeze-bar-header-side),var(--ht-freeze-bar-highlight-color)var(--ht-freeze-bar-header),var(--ht-freeze-bar-shadow-color)var(--ht-freeze-bar-header))}.handsontable .ht-freeze-bar-guide--rows,.handsontable .ht-freeze-bar-ghost--rows{--ht-freeze-bar-header-side:to right}.handsontable .ht-freeze-bar-guide{--ht-freeze-bar-shadow-color:color-mix(in srgb,var(--ht-freeze-bar-color)60%,transparent)}.handsontable .ht-freeze-bar-ghost{z-index:217;--ht-freeze-bar-shadow-color:color-mix(in srgb,var(--ht-freeze-bar-highlight-color)25%,transparent)}.handsontable .manualColumnResizer{cursor:col-resize;opacity:0;z-index:210;background:0 0;width:10px;margin:0;position:absolute;top:0}.handsontable .manualColumnResizer:before,.handsontable .manualColumnResizer:after{content:"";background:var(--ht-resize-indicator-color);border-radius:2px;width:2px;height:calc(100% - 12px);max-height:16px;margin-top:.5px;display:block;position:absolute;top:50%;left:1px;transform:translateY(-50%)}.handsontable .manualColumnResizer:after{left:auto;right:0}.handsontable .manualColumnResizer:hover,.handsontable .manualColumnResizer.active{opacity:1}.handsontable .manualColumnResizerGuide{border-inline-end:1px solid var(--ht-accent-color);width:0;inset-inline-end:unset;border-inline-start:none;margin-inline-start:5px;margin-inline-end:unset;display:none;position:absolute;top:0}.handsontable .manualColumnResizerGuide.active{z-index:209;display:block}.handsontable .manualRowResizer{z-index:210;cursor:row-resize;opacity:0;background:0 0;height:10px;margin:0;position:absolute;left:0}.handsontable .manualRowResizer:before,.handsontable .manualRowResizer:after{content:"";background:var(--ht-resize-indicator-color);border-radius:2px;width:calc(100% - 12px);max-width:16px;height:2px;display:block;position:absolute;top:1px;left:50%;transform:translate(-50%)}.handsontable .manualRowResizer:after{top:auto;bottom:0}.handsontable .manualRowResizer:hover,.handsontable .manualRowResizer.active{opacity:1}.handsontable .manualRowResizerGuide{border-bottom:1px solid var(--ht-accent-color);border-top:none;height:0;margin-top:5px;display:none;position:absolute;bottom:0;left:0}.handsontable .manualRowResizerGuide.active{z-index:209;display:block}.handsontable tbody td[rowspan][class*=area][class*=highlight]:not([class*=fullySelectedMergedCell]):before{opacity:0}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-multiple]:before,.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-0]:before{opacity:.14}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-1]:before{opacity:.21}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-2]:before{opacity:.28}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-3]:before{opacity:.35}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-4]:before{opacity:.42}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-5]:before{opacity:.49}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-6]:before{opacity:.56}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-7]:before{opacity:.63}.handsontable .ht__manualColumnMove.after-selection--columns thead th.ht__highlight,.handsontable .ht__manualColumnMove.after-selection--columns thead th.ht__active_highlight,.handsontable.ht__manualColumnMove.after-selection--columns thead th.ht__highlight,.handsontable.ht__manualColumnMove.after-selection--columns thead th.ht__active_highlight{cursor:move;cursor:-moz-grab;cursor:-webkit-grab;cursor:grab}.handsontable .ht__manualColumnMove.on-moving--columns *,.handsontable .ht__manualColumnMove.on-moving--columns thead th.ht__highlight,.handsontable.ht__manualColumnMove.on-moving--columns *,.handsontable.ht__manualColumnMove.on-moving--columns thead th.ht__highlight{cursor:move;cursor:-moz-grabbing;cursor:-webkit-grabbing;cursor:grabbing}.handsontable .ht__manualColumnMove.on-moving--columns .manualColumnResizer,.handsontable.ht__manualColumnMove.on-moving--columns .manualColumnResizer{display:none}.handsontable .ht__manualColumnMove--guideline,.handsontable .ht__manualColumnMove--backlight,.handsontable.ht__manualColumnMove--guideline,.handsontable.ht__manualColumnMove--backlight{height:100%;display:none;position:absolute}.handsontable .ht__manualColumnMove--guideline,.handsontable.ht__manualColumnMove--guideline{z-index:205;background:var(--ht-move-indicator-color,#1a42e8);width:1px;margin-inline:-.5px 0;top:0}.handsontable .ht__manualColumnMove--backlight,.handsontable.ht__manualColumnMove--backlight{z-index:205;pointer-events:none;background:color-mix(in srgb,var(--ht-move-backlight-color)var(--ht-move-backlight-opacity,100%),transparent);display:none}.handsontable .on-moving--columns.show-ui .ht__manualColumnMove--guideline,.handsontable .on-moving--columns .ht__manualColumnMove--backlight,.handsontable.on-moving--columns.show-ui .ht__manualColumnMove--guideline,.handsontable.on-moving--columns .ht__manualColumnMove--backlight{display:block}.handsontable .wtHider{position:relative}.handsontable .ht__manualRowMove.after-selection--rows tbody th.ht__highlight,.handsontable.ht__manualRowMove.after-selection--rows tbody th.ht__highlight{cursor:move;cursor:-moz-grab;cursor:-webkit-grab;cursor:grab}.handsontable .ht__manualRowMove.on-moving--rows *,.handsontable .ht__manualRowMove.on-moving--rows tbody th.ht__highlight,.handsontable.ht__manualRowMove.on-moving--rows *,.handsontable.ht__manualRowMove.on-moving--rows tbody th.ht__highlight{cursor:move;cursor:-moz-grabbing;cursor:-webkit-grabbing;cursor:grabbing}.handsontable .ht__manualRowMove.on-moving--rows .manualRowResizer,.handsontable.ht__manualRowMove.on-moving--rows .manualRowResizer{display:none}.handsontable .ht__manualRowMove--guideline,.handsontable .ht__manualRowMove--backlight,.handsontable.ht__manualRowMove--guideline,.handsontable.ht__manualRowMove--backlight{width:100%;display:none;position:absolute}.handsontable .ht__manualRowMove--guideline,.handsontable.ht__manualRowMove--guideline{border-top:1px solid var(--ht-move-indicator-color);z-index:205;left:0}.handsontable .ht__manualRowMove--backlight,.handsontable.ht__manualRowMove--backlight{z-index:205;pointer-events:none;background:color-mix(in srgb,var(--ht-move-backlight-color)var(--ht-move-backlight-opacity,100%),transparent);display:none}.handsontable .on-moving--rows.show-ui .ht__manualRowMove--guideline,.handsontable .on-moving--rows .ht__manualRowMove--backlight,.handsontable.on-moving--rows.show-ui .ht__manualRowMove--guideline,.handsontable.on-moving--rows .ht__manualRowMove--backlight{display:block}.ht-dialog{scrollbar-width:auto;scrollbar-color:var(--ht-scrollbar-thumb-color)var(--ht-scrollbar-track-color);font-size:var(--ht-font-size);line-height:var(--ht-line-height);letter-spacing:var(--ht-letter-spacing);z-index:1060;opacity:0;border-radius:var(--ht-border-radius);border:1px solid var(--ht-border-color);width:100%;height:100%;display:none;position:absolute;top:0;left:0;overflow-y:auto;box-sizing:border-box!important}.ht-dialog[dir=rtl]{left:auto;right:0}.ht-dialog:focus,.ht-dialog:has(.htFocusCatcher:focus){border:1px solid var(--ht-accent-color);outline:none}.ht-dialog *{box-sizing:border-box!important}.ht-dialog--background-solid{background-color:var(--ht-dialog-solid-background-color)}.ht-dialog--background-semi-transparent{background-color:color-mix(in srgb,var(--ht-dialog-semi-transparent-background-color)var(--ht-dialog-semi-transparent-background-opacity,100%),transparent)}.ht-dialog--animation{transition:opacity var(--ht-table-transition)ease-in-out}.ht-dialog--show{opacity:1}.ht-dialog__content-wrapper{width:100%;min-height:100%;padding:calc(var(--ht-gap-size)*4);border-radius:var(--ht-border-radius);justify-content:center;align-items:center;display:flex}.ht-dialog__content{padding:var(--ht-dialog-content-padding-horizontal)var(--ht-dialog-content-padding-vertical);max-width:480px;color:var(--ht-foreground-color);position:relative}.ht-dialog__content--background{box-shadow:var(--ht-shadow-x,0)var(--ht-shadow-y,0)var(--ht-shadow-blur,8px)color-mix(in srgb,var(--ht-shadow-color,#000)var(--ht-shadow-opacity,100%),transparent);border-radius:var(--ht-dialog-content-border-radius);background-color:var(--ht-dialog-content-background-color)}.ht-dialog--confirm .ht-dialog__content-wrapper{text-align:center;padding:calc(var(--ht-gap-size)*2)}.ht-dialog--confirm .ht-dialog__content-wrapper-inner{max-width:480px;padding:calc(var(--ht-gap-size)*2);border-radius:var(--ht-border-radius);flex-direction:column;justify-content:center;align-items:center;display:flex}.ht-dialog--confirm .ht-dialog__content-wrapper-inner--background{box-shadow:var(--ht-shadow-x,0)var(--ht-shadow-y,0)var(--ht-shadow-blur,8px)color-mix(in srgb,var(--ht-shadow-color,#000)var(--ht-shadow-opacity,100%),transparent);border-radius:var(--ht-dialog-content-border-radius);background-color:var(--ht-dialog-content-background-color)}.ht-dialog--confirm .ht-dialog__content-wrapper-inner:focus{box-shadow:0 0 0 1px var(--ht-accent-color);outline:none}.ht-dialog--confirm .ht-dialog__content{justify-content:center;align-items:center;gap:var(--ht-gap-size);flex-direction:column;display:flex}.ht-dialog--confirm .ht-dialog__content:has(.ht-dialog__buttons){gap:calc(var(--ht-gap-size)*2)}.ht-dialog--confirm .ht-dialog__title{font-size:var(--ht-font-size);font-weight:var(--ht-font-weight);line-height:var(--ht-line-height);margin:0}.ht-dialog--confirm .ht-dialog__description{color:var(--ht-foreground-secondary-color);font-size:var(--ht-font-size-small);line-height:var(--ht-line-height-small);font-weight:var(--ht-font-weight);margin:0}.ht-dialog--confirm .ht-dialog__buttons{justify-content:center;gap:calc(var(--ht-gap-size)*2);flex-flow:wrap;display:flex}.ht-notification{z-index:1070;pointer-events:none;position:absolute;inset:0;overflow:visible}.ht-notification__stack{overscroll-behavior:contain;pointer-events:auto;-webkit-overflow-scrolling:touch;scrollbar-width:auto;scrollbar-color:var(--ht-scrollbar-thumb-color)var(--ht-scrollbar-track-color);flex-direction:column;gap:10px;max-width:min(420px,100% - 40px);min-height:0;padding:10px;display:flex;position:absolute;overflow:hidden auto}.ht-notification__stack--top-start{top:10px;align-items:flex-start;max-height:calc(100% - 40px);inset-inline-start:10px}.ht-notification__stack--top-end{top:10px;align-items:flex-end;max-height:calc(100% - 40px);inset-inline-end:10px}.ht-notification__stack--bottom-start{bottom:10px;align-items:flex-start;max-height:calc(100% - 40px);inset-inline-start:10px}.ht-notification__stack--bottom-end{bottom:10px;align-items:flex-end;max-height:calc(100% - 40px);inset-inline-end:10px}.ht-notification__toast{box-shadow:var(--ht-shadow-x,0)var(--ht-shadow-y,0)var(--ht-shadow-blur,8px)color-mix(in srgb,var(--ht-shadow-color,#000)var(--ht-shadow-opacity,100%),transparent);pointer-events:auto;max-width:100%;color:var(--ht-notification-foreground-color,var(--ht-foreground-color));background-color:var(--ht-notification-background-color,var(--ht-background-color));border:1px solid var(--ht-notification-border-color,var(--ht-border-color));border-radius:var(--ht-border-radius,4px);font-size:var(--ht-font-size);line-height:var(--ht-line-height);letter-spacing:var(--ht-letter-spacing);outline:none;flex-shrink:0;display:flex;position:relative}.ht-notification__toast:focus-visible{box-shadow:0 0 0 1px var(--ht-accent-color)}.ht-notification__toast--animate{opacity:0;transition:opacity var(--ht-table-transition,.15s)ease-out,transform var(--ht-table-transition,.15s)ease-out}.ht-notification__toast--animate.ht-notification__toast--stack-top:not(.ht-notification__toast--visible){transform:translateY(-6px)}.ht-notification__toast--animate.ht-notification__toast--stack-bottom:not(.ht-notification__toast--visible){transform:translateY(6px)}.ht-notification__toast--visible{opacity:1;transform:translateY(0)}.ht-notification__toast--info .ht-notification__accent{display:none}.ht-notification__toast--success .ht-notification__accent{background-color:var(--ht-notification-success-accent,#37bc6c)}.ht-notification__toast--warning .ht-notification__accent{background-color:var(--ht-notification-warning-accent,#fbe952)}.ht-notification__toast--error .ht-notification__accent{background-color:var(--ht-notification-error-accent,#fa4d32)}.ht-notification__toast-inner{width:100%;min-width:0;direction:inherit;flex-direction:row;align-items:stretch;gap:0;padding:10px;display:flex}.ht-notification__accent{box-sizing:border-box;border-radius:4px;flex:0 0 4px;align-self:stretch;margin-inline-end:10px}.ht-notification__body{flex:auto;min-width:0}.ht-notification__title{margin:0 0 var(--ht-gap-size);font-size:var(--ht-font-size);font-weight:var(--ht-font-weight,600)}.ht-notification__message{font-size:var(--ht-font-size-small);word-break:break-word;margin:0}.ht-notification__actions{gap:var(--ht-gap-size);margin-top:var(--ht-gap-size);flex-wrap:wrap;display:flex}.ht-notification__close{box-sizing:border-box;width:var(--ht-icon-button-hit-area-size);height:var(--ht-icon-button-hit-area-size);color:var(--ht-icon-button-icon-color,inherit);cursor:pointer;border-radius:var(--ht-icon-button-border-radius,var(--ht-border-radius,4px));background:0 0;border:none;flex:none;align-self:flex-start;margin-inline-start:4px;padding:0;position:relative;overflow:visible}.ht-notification__close .ht-icon{margin-top:calc(-.5*var(--ht-icon-size));top:50%;margin-inline-start:calc(-.5*var(--ht-icon-size));position:absolute;inset-inline-start:50%}.ht-notification__close:hover{color:var(--ht-icon-button-hover-icon-color,inherit);background-color:var(--ht-icon-button-hover-background-color,color-mix(in srgb,var(--ht-foreground-color)8%,transparent))}.ht-notification__close:focus-visible{outline:2px solid var(--ht-accent-color);outline-offset:2px}.handsontable.ht-pagination{width:100%;color:var(--ht-pagination-bar-foreground-color);background:var(--ht-pagination-bar-background-color);font-size:var(--ht-font-size);line-height:var(--ht-line-height);box-sizing:border-box;overflow-x:auto}.handsontable.ht-pagination:not(.ht-slot-element){border:1px solid var(--ht-border-color);border-radius:var(--ht-border-radius)}.handsontable.ht-pagination .ht-pagination__inner{justify-content:space-between;align-items:center;gap:calc(var(--ht-gap-size)*4);padding-inline:var(--ht-pagination-bar-horizontal-padding);padding-block:var(--ht-pagination-bar-vertical-padding);flex-wrap:wrap;min-width:230px;display:flex}.handsontable.ht-pagination .ht-page-size-section{align-items:center;gap:calc(var(--ht-gap-size)*2);display:flex}.handsontable.ht-pagination .ht-page-size-section__label{white-space:nowrap;font-size:inherit;line-height:inherit;font-weight:inherit;letter-spacing:inherit;font-family:inherit}.handsontable.ht-pagination .ht-page-size-section__select-wrapper{border-radius:var(--ht-input-border-radius);background-color:var(--ht-input-background-color);position:relative}.handsontable.ht-pagination .ht-page-size-section__select-wrapper:focus-within{background-color:var(--ht-input-focus-background-color)}.handsontable.ht-pagination .ht-page-size-section__select-wrapper:hover{background-color:var(--ht-input-hover-background-color)}.handsontable.ht-pagination .ht-page-size-section__select-wrapper select{padding-inline-start:var(--ht-gap-size);padding-inline-end:calc(var(--ht-gap-size) + var(--ht-icon-size));padding-top:var(--ht-gap-size);padding-bottom:var(--ht-gap-size);border-radius:var(--ht-input-border-radius);color:var(--ht-input-foreground-color);border:1px solid var(--ht-input-border-color);line-height:calc(var(--ht-line-height) - 4px);-webkit-appearance:none;font-size:inherit;cursor:pointer;background-color:#0000}.handsontable.ht-pagination .ht-page-size-section__select-wrapper select:disabled{opacity:.4;cursor:default;color:var(--ht-input-disabled-foreground-color);border-color:var(--ht-input-disabled-border-color)}.handsontable.ht-pagination .ht-page-size-section__select-wrapper select:hover:not(:disabled){color:var(--ht-input-hover-foreground-color);border-color:var(--ht-input-hover-border-color)}.handsontable.ht-pagination .ht-page-size-section__select-wrapper select:focus{color:var(--ht-input-focus-foreground-color);border-color:var(--ht-input-focus-border-color);outline:none}.handsontable.ht-pagination .ht-page-size-section__select-wrapper .ht-icon{color:var(--ht-foreground-color);inset-inline-end:var(--ht-gap-size);position:absolute;top:50%;transform:translateY(-50%)}.handsontable.ht-pagination .ht-page-counter-section{margin-inline-end:auto}.handsontable.ht-pagination .ht-page-navigation-section{align-items:center;gap:1px;display:flex}.handsontable.ht-pagination .ht-page-navigation-section__button{font-size:inherit;border:1px solid var(--ht-pagination-button-border-color);color:var(--ht-pagination-button-foreground-color);background-color:var(--ht-pagination-button-background-color);border-radius:var(--ht-icon-button-large-border-radius);padding:var(--ht-icon-button-large-padding);cursor:pointer}.handsontable.ht-pagination .ht-page-navigation-section__button .ht-icon{display:block}.handsontable.ht-pagination .ht-page-navigation-section__button--disabled{cursor:default;pointer-events:none;color:var(--ht-pagination-button-disabled-foreground-color);background-color:var(--ht-pagination-button-disabled-background-color);border-color:var(--ht-pagination-button-disabled-border-color)}.handsontable.ht-pagination .ht-page-navigation-section__button:hover:not(:disabled){border-color:var(--ht-pagination-button-hover-border-color);color:var(--ht-pagination-button-hover-foreground-color);background-color:var(--ht-pagination-button-hover-background-color)}.handsontable.ht-pagination .ht-page-navigation-section__button:focus{border-color:var(--ht-pagination-button-focus-border-color);color:var(--ht-pagination-button-focus-foreground-color);background-color:var(--ht-pagination-button-focus-background-color);outline:none}.handsontable.ht-pagination .ht-page-navigation-section__label{white-space:nowrap;text-align:center;min-width:100px;font-size:inherit;line-height:inherit;font-weight:inherit;letter-spacing:inherit;font-family:inherit}.handsontable.htSheetsBarMenu{overflow:hidden}.handsontable.htSheetsBarMenu>.ht_master{padding-block:0}.handsontable.htMenu.htSheetsBarMenu .ht_master .wtHolder,.handsontable.htMenu.htSheetsBarMenu .ht_master .htScrollbarFrame{box-shadow:none}.handsontable.htSheetsBarMenu .ht_master .wtHolder{padding-block:var(--ht-menu-vertical-padding,8px);max-height:calc(8*(var(--ht-line-height) + var(--ht-menu-item-vertical-padding)*2 + 1px));overflow:hidden auto}.handsontable.htSheetsBarMenu table tbody tr td .htItemWrapper span.selected .ht-icon{color:var(--ht-menu-item-active-color,var(--ht-accent-color))}.handsontable.htSheetsBarMenu table tbody tr td .htItemWrapper{text-overflow:ellipsis;white-space:nowrap;max-width:32ch;padding-inline-end:calc(var(--ht-icon-size) + var(--ht-gap-size));overflow:hidden}.handsontable.htSheetsBarMenu table tbody tr td.htCustomMenuRenderer:not(.htDisabled):hover{cursor:pointer;background:color-mix(in srgb,var(--ht-menu-item-hover-color)var(--ht-menu-item-hover-color-opacity,100%),transparent)!important}.handsontable.htSheetsBarMenu table tbody tr td.htCustomMenuRenderer:not(.htDisabled).current{box-shadow:inset 0 0 0 1px var(--ht-menu-item-active-color,var(--ht-accent-color))}.handsontable.ht-sheets-bar{--ht-private-tab-enter-offset:-2em;--ht-private-sheets-bar-button-width:calc((2*var(--ht-icon-button-large-padding)) + var(--ht-icon-size) + 2px);width:100%;color:var(--ht-bar-foreground-color);background:var(--ht-sheets-bar-background-color);font-size:var(--ht-font-size);line-height:var(--ht-line-height);box-sizing:border-box;overflow:auto hidden}.handsontable.ht-sheets-bar:not(.ht-slot-element){border:1px solid var(--ht-border-color);border-radius:var(--ht-border-radius)}.handsontable.ht-sheets-bar.ht-slot-element{border-top-width:1px}.handsontable.ht-sheets-bar[dir=rtl]{--ht-private-tab-enter-offset:2em}.handsontable.ht-sheets-bar .ht-sheets-bar__inner{min-width:min-content;padding-inline:var(--ht-sheets-bar-horizontal-padding);grid-template-columns:auto minmax(auto,1fr) auto;align-items:stretch;display:grid}.handsontable.ht-sheets-bar .ht-sheets-bar__tabs-sizer{visibility:hidden;pointer-events:none;grid-area:1/2/auto/4;min-width:max-content;height:0;display:grid;overflow:clip}.handsontable.ht-sheets-bar .ht-sheets-bar__tabs-sizer>div{white-space:nowrap;padding-inline:var(--ht-sheets-bar-tab-horizontal-padding)calc(var(--ht-sheets-bar-tab-horizontal-padding) + var(--ht-sizing-size-1) + var(--ht-icon-size) + var(--ht-gap-size) + 2px + 2*var(--ht-private-sheets-bar-button-width) + 1px + 2*var(--ht-gap-size));grid-area:1/1}.handsontable.ht-sheets-bar .ht-sheets-bar__controls,.handsontable.ht-sheets-bar .ht-sheets-bar__paging{flex:none;align-items:center;gap:1px;display:flex}.handsontable.ht-sheets-bar .ht-sheets-bar__controls[hidden],.handsontable.ht-sheets-bar .ht-sheets-bar__paging[hidden]{display:none}.handsontable.ht-sheets-bar .ht-sheets-bar__controls{padding-inline:calc(var(--ht-gap-size)*2);grid-area:1/1;position:relative}.handsontable.ht-sheets-bar.ht-sheets-bar--strip-scrolled .ht-sheets-bar__controls:after{content:"";background:var(--ht-border-color);z-index:1;pointer-events:none;inset-inline-end:0;width:1px;position:absolute;top:0;bottom:0}.handsontable.ht-sheets-bar .ht-sheets-bar__paging{grid-area:1/3;padding-inline-start:calc(var(--ht-gap-size)*2);position:relative}.handsontable.ht-sheets-bar.ht-sheets-bar--strip-more-end .ht-sheets-bar__paging:before{content:"";background:var(--ht-border-color);z-index:1;pointer-events:none;inset-inline-start:0;width:1px;position:absolute;top:0;bottom:0}.handsontable.ht-sheets-bar .ht-sheets-bar__button{font-size:inherit;border:1px solid var(--ht-pagination-button-border-color);color:var(--ht-pagination-button-foreground-color);background-color:var(--ht-pagination-button-background-color);border-radius:var(--ht-icon-button-large-border-radius);padding:var(--ht-icon-button-large-padding);cursor:pointer;justify-content:center;align-items:center;display:flex}.handsontable.ht-sheets-bar .ht-sheets-bar__button:disabled,.handsontable.ht-sheets-bar .ht-sheets-bar__button.ht-sheets-bar__button--disabled{cursor:default;pointer-events:none;color:var(--ht-pagination-button-disabled-foreground-color);background-color:var(--ht-pagination-button-disabled-background-color);border-color:var(--ht-pagination-button-disabled-border-color)}.handsontable.ht-sheets-bar .ht-sheets-bar__button:hover:not(:disabled,.ht-sheets-bar__button--disabled){border-color:var(--ht-pagination-button-hover-border-color);color:var(--ht-pagination-button-hover-foreground-color);background-color:var(--ht-pagination-button-hover-background-color)}.handsontable.ht-sheets-bar .ht-sheets-bar__button:focus-visible{border-color:var(--ht-pagination-button-focus-border-color);color:var(--ht-pagination-button-focus-foreground-color);background-color:var(--ht-pagination-button-focus-background-color);outline:none}.handsontable.ht-sheets-bar .ht-sheets-bar__tabs{contain:inline-size;grid-area:1/2;align-items:stretch;min-width:0;padding-inline-end:1px;display:flex;position:relative;overflow-x:auto;scrollbar-width:none!important}.handsontable.ht-sheets-bar .ht-sheets-bar__tabs::-webkit-scrollbar{display:none}.handsontable.ht-sheets-bar .ht-sheets-bar__tab{isolation:isolate;cursor:pointer;align-items:center;gap:var(--ht-sizing-size-1);padding-inline:var(--ht-sheets-bar-tab-horizontal-padding);padding-block:var(--ht-sheets-bar-tab-vertical-padding);color:var(--ht-sheets-bar-tab-foreground-color);background:var(--ht-sheets-bar-tab-background-color);-webkit-user-select:none;user-select:none;touch-action:pan-x pan-y;transition:transform var(--ht-private-tab-slide-duration,var(--ht-table-transition))var(--ht-private-tab-slide-easing,ease-out),color var(--ht-table-transition)ease-out;flex:none;display:flex;position:relative}@media (prefers-reduced-motion:reduce){.handsontable.ht-sheets-bar .ht-sheets-bar__tab{transition:none}}.handsontable.ht-sheets-bar .ht-sheets-bar__tab--entering{animation:ht-sheets-bar-tab-enter var(--ht-table-transition)ease-out backwards}@media (prefers-reduced-motion:reduce){.handsontable.ht-sheets-bar .ht-sheets-bar__tab--entering{animation:none}}.handsontable.ht-sheets-bar .ht-sheets-bar__tab:hover{color:var(--ht-sheets-bar-tab-hover-foreground-color)}.handsontable.ht-sheets-bar .ht-sheets-bar__tab--active,.handsontable.ht-sheets-bar .ht-sheets-bar__tab--active:hover{color:var(--ht-sheets-bar-tab-active-foreground-color);background:var(--ht-sheets-bar-tab-active-background-color)}.handsontable.ht-sheets-bar .ht-sheets-bar__tab--active:after{content:"";border-block-end:var(--ht-sheets-bar-tab-active-border-width)solid var(--ht-sheets-bar-tab-active-border-color);pointer-events:none;inset-inline:0;position:absolute;bottom:0}.handsontable.ht-sheets-bar .ht-sheets-bar__tab--dragging{z-index:1;pointer-events:none;color:var(--ht-sheets-bar-tab-hover-foreground-color);background-color:var(--ht-sheets-bar-tab-background-color);box-shadow:var(--ht-shadow-x,0)var(--ht-shadow-y,0)var(--ht-shadow-blur,8px)color-mix(in srgb,var(--ht-shadow-color,#000)var(--ht-shadow-opacity,100%),transparent);transition:none;animation:none}.handsontable.ht-sheets-bar .ht-sheets-bar__tab--lifted{z-index:1;color:var(--ht-sheets-bar-tab-hover-foreground-color);background-color:var(--ht-sheets-bar-tab-background-color);box-shadow:var(--ht-shadow-x,0)var(--ht-shadow-y,0)var(--ht-shadow-blur,8px)color-mix(in srgb,var(--ht-shadow-color,#000)var(--ht-shadow-opacity,100%),transparent)}.handsontable.ht-sheets-bar .ht-sheets-bar__tab--active.ht-sheets-bar__tab--dragging,.handsontable.ht-sheets-bar .ht-sheets-bar__tab--active.ht-sheets-bar__tab--lifted{color:var(--ht-sheets-bar-tab-active-foreground-color);background-color:var(--ht-sheets-bar-tab-active-background-color)}@media (forced-colors:active){.handsontable.ht-sheets-bar .ht-sheets-bar__tab--lifted,.handsontable.ht-sheets-bar .ht-sheets-bar__tab--dragging{outline-offset:-2px;outline:2px solid highlight}}.handsontable.ht-sheets-bar .ht-sheets-bar__tab-ghost{top:0;bottom:0;left:var(--ht-private-tab-ghost-x,0);align-items:center;gap:var(--ht-sizing-size-1);box-sizing:border-box;width:var(--ht-private-tab-ghost-width,0);padding-inline:var(--ht-sheets-bar-tab-horizontal-padding);padding-block:var(--ht-sheets-bar-tab-vertical-padding);color:var(--ht-sheets-bar-tab-foreground-color);background:var(--ht-sheets-bar-tab-background-color);pointer-events:none;-webkit-user-select:none;user-select:none;animation:ht-sheets-bar-tab-leave var(--ht-table-transition)ease-in both;display:flex;position:absolute}@media (prefers-reduced-motion:reduce){.handsontable.ht-sheets-bar .ht-sheets-bar__tab-ghost{animation:none}}.handsontable.ht-sheets-bar .ht-sheets-bar__tabs--sliding{--ht-private-tab-slide-easing:ease-in-out}.handsontable.ht-sheets-bar .ht-sheets-bar__tab--slide-lead{z-index:1}.handsontable.ht-sheets-bar .ht-sheets-bar__tab-indicator{z-index:0;width:var(--ht-private-tab-indicator-width);transform:translateX(var(--ht-private-tab-indicator-x));background:var(--ht-sheets-bar-tab-active-background-color);border-block-end:var(--ht-sheets-bar-tab-active-border-width)solid var(--ht-sheets-bar-tab-active-border-color);pointer-events:none;transition-property:transform,width;transition-timing-function:ease-in-out;position:absolute;top:0;bottom:0;left:0}@media (prefers-reduced-motion:reduce){.handsontable.ht-sheets-bar .ht-sheets-bar__tab-indicator{transition:none}}.handsontable.ht-sheets-bar .ht-sheets-bar__tabs--indicator-moving:before{content:"";width:var(--ht-private-tab-indicator-path-width,0);transform:translateX(var(--ht-private-tab-indicator-path-x,0));background:var(--ht-sheets-bar-tab-background-color);pointer-events:none;position:absolute;top:0;bottom:0;left:0}.handsontable.ht-sheets-bar .ht-sheets-bar__tabs--indicator-moving .ht-sheets-bar__tab--indicator-path,.handsontable.ht-sheets-bar .ht-sheets-bar__tabs--indicator-moving .ht-sheets-bar__tab--active{background:0 0}.handsontable.ht-sheets-bar .ht-sheets-bar__tabs--indicator-moving .ht-sheets-bar__tab--active:after{content:none}.handsontable.ht-sheets-bar .ht-sheets-bar__tab-label,.handsontable.ht-sheets-bar .ht-sheets-bar__tab-chevron{color:inherit;font-size:inherit;line-height:inherit;font-weight:inherit;letter-spacing:inherit;cursor:pointer;background:0 0;border:none;margin:0;padding:0;font-family:inherit}.handsontable.ht-sheets-bar .ht-sheets-bar__tab:focus-visible{outline:1px solid var(--ht-pagination-button-focus-border-color);outline-offset:-1px}.handsontable.ht-sheets-bar .ht-sheets-bar__tab-chevron{color:var(--ht-icon-button-icon-color);padding:var(--ht-gap-size);margin-inline-end:calc(var(--ht-gap-size)*-1);margin-block:calc(var(--ht-gap-size)*-1);align-items:center;display:flex;position:relative}.handsontable.ht-sheets-bar .ht-sheets-bar__tab-chevron:before{content:"";inset:var(--ht-gap-size);border-radius:var(--ht-icon-button-border-radius);display:block;position:absolute}.handsontable.ht-sheets-bar .ht-sheets-bar__tab-chevron:after{content:"";inset:min(0px,(100% - var(--ht-icon-button-hit-area-size))/2);position:absolute}.handsontable.ht-sheets-bar .ht-sheets-bar__tab-chevron .ht-icon{z-index:1;position:relative}.handsontable.ht-sheets-bar .ht-sheets-bar__tab--active .ht-sheets-bar__tab-chevron:hover,.handsontable.ht-sheets-bar .ht-sheets-bar__tab--active .ht-sheets-bar__tab-chevron:focus-visible{color:var(--ht-icon-button-hover-icon-color)}.handsontable.ht-sheets-bar .ht-sheets-bar__tab--active .ht-sheets-bar__tab-chevron:hover:before,.handsontable.ht-sheets-bar .ht-sheets-bar__tab--active .ht-sheets-bar__tab-chevron:focus-visible:before{background-color:var(--ht-icon-button-hover-background-color);box-shadow:0 0 0 1px var(--ht-icon-button-hover-border-color)}.handsontable.ht-sheets-bar .ht-sheets-bar__tab--renaming .ht-sheets-bar__tab-chevron{display:none}.handsontable.ht-sheets-bar .ht-sheets-bar__tab--renaming,.handsontable.ht-sheets-bar .ht-sheets-bar__tab--renaming:hover{color:var(--ht-cell-editor-foreground-color);background:var(--ht-cell-editor-background-color);outline:2px solid var(--ht-cell-editor-border-color);outline-offset:-2px}.handsontable.ht-sheets-bar .ht-sheets-bar__tab--renaming:after{content:none}.handsontable.ht-sheets-bar .ht-sheets-bar__tab-rename{font-size:inherit;line-height:inherit;font-weight:inherit;letter-spacing:inherit;color:inherit;-webkit-user-select:text;user-select:text;box-shadow:none;background:0 0;border:none;border-radius:0;outline:none;max-width:40ch;height:auto;min-height:0;max-height:none;margin:0;padding:0;font-family:inherit}.handsontable.ht-sheets-bar .ht-sheets-bar__tab-rename-mirror{visibility:hidden;pointer-events:none;white-space:pre;font-size:inherit;line-height:inherit;font-weight:inherit;letter-spacing:inherit;border:none;margin:0;padding:0;font-family:inherit;position:absolute}.handsontable.ht-sheets-bar.ht-sheets-bar-pressing,.handsontable.ht-sheets-bar.ht-sheets-bar-pressing .ht-sheets-bar__tab,.handsontable.ht-sheets-bar.ht-sheets-bar-pressing .ht-sheets-bar__tab *,.handsontable.ht-sheets-bar.ht-sheets-bar-dragging,.handsontable.ht-sheets-bar.ht-sheets-bar-dragging *{cursor:move;cursor:-moz-grabbing;cursor:-webkit-grabbing;cursor:grabbing}.handsontable.ht-sheets-bar.ht-sheets-bar-dragging .ht-sheets-bar__tab{pointer-events:none}@keyframes ht-sheets-bar-tab-enter{0%{opacity:0;transform:translateX(var(--ht-private-tab-enter-offset))}to{opacity:1;transform:translate(0)}}@keyframes ht-sheets-bar-tab-leave{0%{opacity:1;transform:translate(0)}to{opacity:0;transform:translateX(var(--ht-private-tab-enter-offset))}}.ht-loading__icon-svg{width:var(--ht-icon-size);height:var(--ht-icon-size);color:var(--ht-accent-color);transform-origin:50%;animation:1s linear infinite ht-loading-spin;display:block}.ht-loading__content{align-items:center;gap:calc(var(--ht-gap-size)*2);display:flex}.ht-loading__title{font-size:var(--ht-font-size);font-weight:var(--ht-font-weight);line-height:var(--ht-line-height);margin:0}.ht-loading__description{color:var(--ht-foreground-secondary-color);font-size:var(--ht-font-size-small);line-height:var(--ht-line-height-small);font-weight:var(--ht-font-weight);margin:0}@keyframes ht-loading-spin{to{transform:rotate(360deg)}}.handsontable .htAsyncPending{position:relative}.handsontable .htAsyncIndicator{box-sizing:border-box;width:calc(var(--ht-icon-size)*.75);height:calc(var(--ht-icon-size)*.75);margin-top:calc(var(--ht-icon-size)*-.375);border:2px solid var(--ht-async-indicator-color,var(--ht-accent-color));pointer-events:none;top:50%;border-inline-end-color:#0000;border-radius:50%;animation:1s linear infinite ht-async-values-spin;position:absolute;inset-inline-end:var(--ht-cell-horizontal-padding)}@media (prefers-reduced-motion:reduce){.handsontable .htAsyncIndicator{animation:none}}.handsontable .htAutocompleteArrow~.htAsyncIndicator,.handsontable .ht-multi-select-arrow~.htAsyncIndicator{inset-inline-end:calc(var(--ht-cell-horizontal-padding) + var(--ht-icon-size)*1.25)}.handsontable td.htRight>.htAsyncIndicator{inset-inline:auto;left:var(--ht-cell-horizontal-padding)}.handsontable td.htLeft>.htAsyncIndicator{inset-inline:auto;right:var(--ht-cell-horizontal-padding)}.handsontable .htAsyncErrorMarker{border-inline-start:3px solid var(--ht-async-error-marker-color,var(--ht-notification-error-accent));pointer-events:none;width:0;position:absolute;inset-block:0;inset-inline-start:0}.handsontable .htAsyncErrorMessage,.handsontable .htAsyncPendingMessage{clip-path:inset(50%);white-space:nowrap;-webkit-user-select:none;user-select:none;width:1px;height:1px;position:absolute;overflow:hidden}.handsontable tbody tr>td.htAsyncError{background-color:var(--ht-async-error-background-color,var(--ht-cell-error-background-color));position:relative}@keyframes ht-async-values-spin{to{transform:rotate(360deg)}}.ht-empty-data-state{scrollbar-width:auto;scrollbar-color:var(--ht-scrollbar-thumb-color)var(--ht-scrollbar-track-color);z-index:999;border:1px solid var(--ht-border-color);border-radius:var(--ht-border-radius);box-sizing:border-box;background-color:var(--ht-background-color);width:100%;display:none;position:absolute;left:0;overflow-y:auto}.ht-empty-data-state *{box-sizing:border-box!important}.ht-empty-data-state__content-wrapper{text-align:center;width:100%;min-height:100%;padding:calc(var(--ht-gap-size)*2);border-radius:var(--ht-border-radius);justify-content:center;align-items:center;display:flex}.ht-empty-data-state__content-wrapper-inner{max-width:480px;padding:calc(var(--ht-gap-size)*2);border-radius:var(--ht-border-radius);flex-direction:column;justify-content:center;align-items:center;display:flex}.ht-empty-data-state__content-wrapper-inner:focus{box-shadow:0 0 0 1px var(--ht-accent-color);outline:none}.ht-empty-data-state__content{justify-content:center;align-items:center;gap:var(--ht-gap-size);flex-direction:column;display:flex}.ht-empty-data-state__title{font-size:var(--ht-font-size);font-weight:var(--ht-font-weight);line-height:var(--ht-line-height);margin:0}.ht-empty-data-state__description{color:var(--ht-foreground-secondary-color);font-size:var(--ht-font-size-small);line-height:var(--ht-line-height-small);font-weight:var(--ht-font-weight);margin:0}.ht-empty-data-state__buttons{justify-content:center;gap:calc(var(--ht-gap-size)*2);flex-flow:wrap;display:flex}.ht-empty-data-state__buttons--has-buttons{margin-top:calc(var(--ht-gap-size)*2)}.ht-empty-data-state__spinner{width:28px;height:28px;margin-bottom:calc(var(--ht-gap-size)*2);border:2px solid var(--ht-border-color);border-top-color:var(--ht-accent-color);border-radius:50%;flex-shrink:0;animation:.75s linear infinite ht-empty-data-state-spin}@media (prefers-reduced-motion:reduce){.ht-empty-data-state__spinner{border-top-color:var(--ht-border-color);animation:none}}.ht-empty-data-state--loading .ht-empty-data-state__content{gap:calc(var(--ht-gap-size)*.5)}.ht-empty-data-state--disable-top-border{border-top-width:0;border-start-start-radius:0;border-start-end-radius:0}.ht-empty-data-state--disable-inline-border{border-inline-start-width:0;border-start-start-radius:0;border-end-start-radius:0}.ht-empty-data-state--disable-bottom-border{border-bottom-width:0;border-end-end-radius:0;border-end-start-radius:0}.ht-root-wrapper.ht-slot-bottom-filled .ht-empty-data-state{border-end-end-radius:0;border-end-start-radius:0}@keyframes ht-empty-data-state-spin{to{transform:rotate(360deg)}}.handsontable th.htRowSelectionCell,.handsontable th.htRowSelectionHeader{cursor:pointer}.handsontable th.htRowSelectionCell .htRowSelectionCheckboxBox,.handsontable th.htRowSelectionHeader .htRowSelectionCheckboxBox{margin-inline:0}.handsontable th.htRowSelectionHeader .htRowSelectionCheckboxBox{margin-block:0}.handsontable th.htRowSelectionCheckboxOnly .relative{justify-content:center;height:100%}.handsontable th.htRowSelectionCheckboxOnly .colHeader{display:none}.handsontable .htRowSelectionCheckbox.htRowSelectionCheckboxHidden,.handsontable .htRowSelectionCheckbox.htRowSelectionCheckboxHidden+.ht-icon{visibility:hidden}.handsontable tbody tr>td.htRowSelected,.handsontable tbody tr>th.htRowSelected{background-image:linear-gradient(var(--ht-row-selection-background-color),var(--ht-row-selection-background-color))}.handsontable th.htCheckboxHeader .htCheckboxHeaderBox{margin-block:0}',this.#tf.head.appendChild(t)}#aZ(){let e=this.getCSSVariableValue("line-height"),t=this.getCSSVariableValue("cell-vertical-padding"),i=Number.parseFloat(this.getStyleForTD("border-bottom-width")??""),o=Math.round(i);if(null===e||null===t||isNaN(o))return null;let r=e+2*t+o;return Number.isFinite(r)&&i>o?this.#a0(r):r}#a0(e){let t=this.#a1(e),i=t-e;return i>0?i>this.#a2()?e:t:e}#a2(){let e=this.#a3();return e>0&&e<1?1/e-1:1}getMaxDefaultRowOvergrowth(){let e=this.#a3();return e>0&&e<1?1/e-1:0}#a3(){return this.#tf.defaultView?.devicePixelRatio??1}#a1(e){let t=this.#a3();if(null!==this.#aj&&this.#aj.declaredRowHeight===e&&this.#aj.devicePixelRatio===t)return this.#aj.cellHeight;let i=Number.parseFloat(this.#a6(["height"]).height);return i>0&&(this.#aj={declaredRowHeight:e,devicePixelRatio:t,cellHeight:i}),i}#aJ(){this.#az=!this.#a4(),this.#aV=getComputedStyle(this.#aB);let e=this.#a6(["box-sizing","border-bottom-width"]);this.#aG.td={...this.#aG.td,...{"box-sizing":e["box-sizing"],"border-bottom-width":e["border-bottom-width"]}}}#a6(e){let t=this.#tf,i=this.#aB,o=t.createElement("table"),r=t.createElement("tbody"),n=t.createElement("tr"),s=t.createElement("tr"),l=t.createElement("td");o.className="htCore",l.textContent="\xa0",s.appendChild(l),r.appendChild(n),r.appendChild(s),o.appendChild(r),i.appendChild(o);let a=getComputedStyle(l),h={};return e.forEach(e=>{h[e]=a.getPropertyValue(e)}),i.removeChild(o),h}#aY(e){let t=Math.ceil(Number.parseFloat(this.#aX(e)??""));return Number.isNaN(t)?null:t}#aX(e){let t=this.#aV?.getPropertyValue(e)??null;return""===t?null:t}#aQ(){this.#aG={},this.#a$={},this.#aU={},this.#aj=null}#a4(){if(!this.#aB.isConnected)return!1;let e=this.#aB.ownerDocument.defaultView;return null!==e&&""!==e.getComputedStyle(this.#aB).display}recacheValuesMeasuredWithoutStyles(){return!!this.#az&&!!this.#a4()&&(this.clearCache(),!0)}clearCache(){this.#aQ(),this.#aJ()}}function mQ(e,t,i){return"array"!==e&&t>0&&i>=t}let mJ=null,m0=null,m1=[];function m2(e,t){let i=e.createElement("div");i.setAttribute("role","status"),i.setAttribute("aria-live",t),i.setAttribute("aria-atomic","true");let o=i.style;return o.position="absolute",o.width="1px",o.height="1px",o.margin="-1px",o.overflow="hidden",o.clipPath="rect(0 0 0 0)",o.whiteSpace="nowrap",i}function m3(e,t="assertive"){let i="polite"===t?m0:mJ;i&&(i.textContent="",setTimeout(()=>{(i===mJ||i===m0)&&(i.textContent=e)},100))}let m6={TOP:"top",BOTTOM:"bottom"},m4="ht-slot-element";class m5{#eF;#o2=new Map;#a5=0;#a8=[];#a7;#a9;constructor(e,{itemClass:t="",onContentChange:i=()=>{}}={}){this.#eF=e,this.#a7=t,this.#a9=i}getElement(){return this.#eF}has(e){return this.#o2.has(e)}add(e,t,i=0){let o=this.#o2.get(e),r=o?o.seq:this.#a5;o&&o.element.remove(),this.#a7&&t.classList.add(this.#a7),this.#o2.set(e,{element:t,weight:i,seq:r}),o||(this.#a5+=1),this.#he(),this.#a9()}remove(e){let t=this.#o2.get(e);t&&(this.#a7&&t.element.classList.remove(this.#a7),t.element.remove(),this.#o2.delete(e),this.#a9())}setOrder(e){this.#a8=Array.isArray(e)?e.slice():[],this.#he()}getOrder(){return this.#ht()}clear(){this.#o2.forEach(e=>e.element.remove()),this.#o2.clear(),this.#a9()}#ht(){let e=this.#a8;return Array.from(this.#o2.keys()).sort((t,i)=>{let o=e.indexOf(t),r=e.indexOf(i);if(-1!==o||-1!==r)return(-1===o?1/0:o)-(-1===r?1/0:r);let n=this.#o2.get(t),s=this.#o2.get(i);return n.weight!==s.weight?n.weight-s.weight:n.seq-s.seq})}#he(){let e=this.#eF.firstChild;this.#ht().forEach(t=>{let i=this.#o2.get(t).element;i===e?e=e.nextSibling:this.#eF.insertBefore(i,e)})}}function m8(e,t){let i=t.parentElement;if(!i)return;let o=null!==t.querySelector(`:scope > .${m4}`);i.classList.toggle(`ht-slot-${e}-filled`,o)}class m7{#hi;constructor(e){this.#hi=new Map(Object.keys(e).map(t=>[t,new m5(e[t],{itemClass:m4,onContentChange:()=>m8(t,e[t])})]))}getSlot(e){let t=this.#hi.get(e);return t||tf(`Unknown layout slot "${e}".`),t}register(e,t,{side:i,weight:o=0}){this.getSlot(i).add(e,t,o)}unregister(e,t){this.getSlot(t).remove(e)}applyConfig(e={}){Object.values(m6).forEach(t=>this.getSlot(t).setOrder(e?.[t]??[]))}destroy(){this.#hi.forEach(e=>e.clear())}}let m9="http://www.w3.org/2000/svg";function fe(e,t){let i=t.createDocumentFragment(),o={};return(Array.isArray(e)?e:[e]).forEach(e=>{e&&i.appendChild(function e(t,i,o,r){let n=t.ns??r,s=n?i.createElementNS(n,t.tag):i.createElement(t.tag);return void 0!==t.className&&(n?s.setAttribute("class",t.className):s.className=t.className),t.attrs&&Object.keys(t.attrs).forEach(e=>{s.setAttribute(e,String(t.attrs[e]))}),void 0!==t.text&&(s.textContent=t.text),t.children?.forEach(t=>{t&&s.appendChild(e(t,i,o,n))}),void 0!==t.ref&&(o[t.ref]=s),s}(e,t,o))}),{fragment:i,refs:o}}let ft="mailto:sales@handsontable.com",fi="mailto:support@handsontable.com",fo="https://handsontable.com/docs/tutorial-license-key.html",fr={trial_valid:{title:"Handsontable Trial",body:({daysRemaining:e})=>`Your Handsontable license key ${e8(e)}. ${tt}`,linkText:"Contact Sales",linkHref:ft,dismissible:!1},trial_notice:{title:"Handsontable Trial",body:({daysRemaining:e})=>`Your Handsontable license key ${e8(e)}. ${tt}`,linkText:"Contact Sales",linkHref:ft,dismissible:!1},trial_soft_stop:{title:"Handsontable Trial Expired",body:()=>`${te} ${tt}`,linkText:"Contact Sales",linkHref:ft,dismissible:!0}},fn={trial_hard_stop:({licensedUntil:e})=>({title:`Your Handsontable trial license key expired on ${e}.`,description:"You may no longer use Handsontable under the trial license. To continue using the software, contact sales@handsontable.com to purchase a valid license.",action:{text:"Contact Sales",href:ft}}),invalid:()=>({title:"The license key for Handsontable is invalid.",description:"",action:{text:"Contact Support",href:fi},docsLink:{text:"Read more",href:fo,trailingText:" on how to install it properly, or contact us at support@handsontable.com."}}),missing:()=>({title:"The license key for Handsontable is missing.",description:"Use your purchased key to activate the product. ",action:{text:"Contact Support",href:fi},docsLink:{text:"Read more",href:fo,trailingText:" about it in the documentation, or contact us at support@handsontable.com."}})},fs="ht-license-powered-by",fl="licensePoweredBy",fa=`plugin:${fl}`,fh="licenseNotification",fd=`plugin:${fh}`,fu="hot-display-license-info",fc=`${fu}_missing-features`,fg=new Set,fp=new WeakMap,fm=new WeakSet;function ff(e){return e.rootSlotBottomElement?.querySelector(`.${fu}`)??null}function fw(e,t){let i=Array.from(e.children).find(e=>e.classList.contains(fs))??null;t.classList.add(m4),e.insertBefore(t,i),m8(m6.BOTTOM,e)}function fb(e,t){let i=e.rootSlotBottomElement;i&&(fw(i,t),e.getFocusScopeManager().registerScope(fh,t,{shortcutsContextName:fd,runOnlyIf:()=>null!==ff(e),onActivate:t=>{let i,o=(i=ff(e))?Array.from(i.querySelectorAll("a[href]")):[];o.length>0&&("tab_from_above"===t?o[0]?.focus():"tab_from_below"===t&&o[o.length-1]?.focus())}}))}function fC(e){let t,i,o;if(e.isDestroyed||!sy(e)||!fm.has(e))return;if(t=sv.get(e),t?.features.forEach(({isStillMissing:e},i)=>{null===e||e()||t.features.delete(i)}),i=sv.get(e),o=e.getSettings().licenseKey,void 0===i||i.key!==("string"==typeof o?o:"")||!(i.features.size>0)){sv.delete(e),fS(e);return}let r=function(e){let t=sv.get(e);if(!t)return null;let i=[...t.features.keys()],o=i.some(e=>!t.written.has(e));if(!o&&i.length===t.written.size)return null;t.written=new Set(i);let r=[...t.features.entries()].map(([e,{name:t}])=>({capability:e,name:t})).sort((e,t)=>e.name<t.name?-1:1);return{key:t.key,features:r,added:o}}(e);if(null===r)return;let{channels:n}=tc(r.key),{text:s,parts:l}=e9(r.features),a=`${r.key}
68
+ ${r.features.map(({capability:e})=>e).join(",")}`;n.console&&r.added&&!fg.has(a)&&(fg.add(a),iu(s)),n.ui?function(e,t){let i=e.rootSlotBottomElement;if(!i)return;let o=i.ownerDocument,r=ff(e);r||((r=fp.get(e)??null)?fw(i,r):(fb(e,r=tg(o,fu)),fp.set(e,r)));let n=r.querySelector(`.${fc}`);n?(iX(n),e4(n,t,o)):r.appendChild(tp(o,fu,t,fc))}(e,l):fS(e)}function fy(e,t){!sR(t)||sx(e,t.capability)||(sE(e,t),fC(e),tf(e9([t]).text))}function fS(e){let t=ff(e),i=t?.querySelector(`.${fc}`);if(t&&i&&(i.remove(),null===t.querySelector(`.${fu}_inner`))){let e=t.parentElement;t.remove(),e&&m8(m6.BOTTOM,e)}}let fv=Object.freeze(["xlsx:import","xlsx:export","xlsx:formulas","xlsx:layout","xlsx:number_formats","xlsx:comments","xlsx:styles","xlsx:conditional_formatting","xlsx:data_validation","xlsx:protection"]),fR=Object.freeze(["xlsx:import","xlsx:formulas","xlsx:layout","xlsx:comments","xlsx:styles","xlsx:conditional_formatting","xlsx:data_validation","xlsx:protection"]),fx=Object.freeze(["xlsx:export","xlsx:formulas","xlsx:layout","xlsx:number_formats","xlsx:comments","xlsx:styles","xlsx:conditional_formatting","xlsx:data_validation","xlsx:protection"]),fE=Object.freeze({"xlsx:import":"import","xlsx:export":"export","xlsx:formulas":"formulas","xlsx:layout":"layout","xlsx:number_formats":"numberFormats","xlsx:comments":"comments","xlsx:styles":"styles","xlsx:conditional_formatting":"conditionalFormatting","xlsx:data_validation":"dataValidation","xlsx:protection":"protection"}),fM=Object.freeze({"xlsx:import":Object.freeze(["standard","professional"]),"xlsx:export":Object.freeze(["standard","professional"]),"xlsx:formulas":Object.freeze(["standard","professional"]),"xlsx:layout":Object.freeze(["standard","professional"]),"xlsx:number_formats":Object.freeze(["professional"]),"xlsx:comments":Object.freeze(["professional"]),"xlsx:styles":Object.freeze(["professional"]),"xlsx:conditional_formatting":Object.freeze(["professional"]),"xlsx:data_validation":Object.freeze(["professional"]),"xlsx:protection":Object.freeze(["professional"])}),fk=Object.freeze({import:!0,export:!0,formulas:!0,layout:!0,numberFormats:!0,comments:!0,importReport:!0,styles:!0,conditionalFormatting:!0,dataValidation:!0,protection:!0,missing:Object.freeze([])});function fI(e,t){let i=e.missing.filter(e=>t.includes(e));return i.length===e.missing.length?e:Object.freeze({...e,missing:Object.freeze(i)})}function fT(e,t){return`The xlsx ${e} skipped features your license does not unlock: ${t.join(", ")}.`}let fA=new WeakMap,fH=new Map;function fO(e){let{licenseKey:t}=e.getSettings(),i=fA.get(e);if(i&&i.key===t)return i.state;let o=tc(t,"20/11/2026");return fA.set(e,{key:t,state:o}),o}function fD(e){let{licenseKey:t}=e.getSettings();if("string"!=typeof t)return fk;let i=fH.get(t);return i||(i=function(e,t=fM){if(null==e)return fk;let i={},o=[];return fv.forEach(r=>{let n=(t[r]??[]).some(t=>e.includes(t));i[fE[r]]=n,n||o.push(r)}),Object.freeze({...i,importReport:!0,missing:Object.freeze(o)})}(tc(t).tiers),fH.set(t,i)),i}let fP="ht-license-popover",f_="is-open",fF="is-dismissed",fN="is-corner-hover",fL="is-cornerless";function fB(e){let t=e.view?.getOverlayByName(im),i=t?.clone?.wtTable;return i?.TABLE?{table:i.TABLE,thead:i.THEAD??null}:null}let fV="ht-dialog",fz="licenseLock",fW=`plugin:${fz}`;function f$(e,t,i){let o=e,r=t;if(o<0){if((r+=o)<=0)return null;o=0}return o>=i?null:{start:o,amount:r}}let fU=e=>e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`),fG=e=>{let t=`--ht-icon-${fU(e)}`;return`.ht-icon-${fU(e)} {
69
69
  -webkit-mask-image: var(${t}, linear-gradient(transparent, transparent));
70
70
  mask-image: var(${t}, linear-gradient(transparent, transparent));
71
71
  -webkit-mask-size: contain;
@@ -93,13 +93,13 @@ ${i}
93
93
  }
94
94
 
95
95
  ${t.map(fG).join("\n\n")}
96
- `)),this.themeStyles.parentNode!==this.hot.rootWrapperElement&&this.hot.rootWrapperElement.prepend(this.themeStyles)}getClassName(){return this.themeClassName}getOverrides(){return{...this.#hl}}getColorScheme(){return this.#hl.colorScheme??this.themeConfig?.colorScheme}getDensityType(){return this.#hl.density??this.themeConfig?.density?.type}setOverrides(e){return!!this.#hh(e)&&(this.#hf(),!0)}update(e){this.hot&&(void 0===e.getThemeConfig&&tf('[ThemeManager] The "theme" option must be an instance of ThemeBuilder.'),this.themeConfig=e.getThemeConfig(),this.themeClassName=`ht-theme-${this.themeConfig.name}`,this.#hg(),"function"==typeof e.subscribe&&(this.#hs?.(),this.#hs=e.subscribe(e=>{this.hot?.stylesHandler&&(this.themeConfig=e,this.#hg(),this.#hf(),this.hot.stylesHandler.clearCache(),this.hot.render(),this.hot.runHooks("afterSetTheme",this.themeClassName,!1))})),this.mount(),this.hot.runHooks("afterSetTheme",this.themeClassName,!0))}mount(){this.#hw(),this.#hf()}unmount(){this.#hb(),this.themeStyles&&this.themeStyles.remove()}#hw(){[this.hot?.rootWrapperElement,this.hot?.rootPortalElement].forEach(e=>{e&&iG(e,this.scopeClassName)})}#hb(){[this.hot?.rootWrapperElement,this.hot?.rootPortalElement].forEach(e=>{e&&ij(e,this.scopeClassName)})}destroy(){this.#hs?.(),this.unmount(),this.hot.themeManager=null}}let wl={size_0:"0px",size_0_5:"2px",size_1:"4px",size_2:"8px",size_1_5:"6px",size_3:"12px",size_4:"16px",size_5:"20px",size_6:"24px",size_7:"28px",size_8:"32px",size_9:"36px",size_10:"40px",size_0_25:"1px"},wa={default:{cellVertical:"sizing.size_1",cellHorizontal:"sizing.size_2",barsHorizontal:"sizing.size_4",barsVertical:"sizing.size_2",gap:"sizing.size_1",buttonHorizontal:"sizing.size_3",buttonVertical:"sizing.size_1_5",dialogHorizontal:"sizing.size_2",dialogVertical:"sizing.size_2",inputHorizontal:"sizing.size_3",inputVertical:"sizing.size_1_5",menuVertical:"sizing.size_2",menuHorizontal:"sizing.size_0",menuItemVertical:"sizing.size_1",menuItemHorizontal:"sizing.size_3"},compact:{cellVertical:"sizing.size_0_5",cellHorizontal:"sizing.size_1_5",barsHorizontal:"sizing.size_2",barsVertical:"sizing.size_1",gap:"sizing.size_0_5",buttonHorizontal:"sizing.size_2",buttonVertical:"sizing.size_0_5",dialogHorizontal:"sizing.size_1_5",dialogVertical:"sizing.size_1_5",inputHorizontal:"sizing.size_2",inputVertical:"sizing.size_0_5",menuVertical:"sizing.size_2",menuHorizontal:"sizing.size_0",menuItemVertical:"sizing.size_0_5",menuItemHorizontal:"sizing.size_2"},comfortable:{cellVertical:"sizing.size_2",cellHorizontal:"sizing.size_3",barsHorizontal:"sizing.size_4",barsVertical:"sizing.size_2",gap:"sizing.size_1_5",buttonHorizontal:"sizing.size_4",buttonVertical:"sizing.size_2",dialogHorizontal:"sizing.size_3",dialogVertical:"sizing.size_3",inputHorizontal:"sizing.size_4",inputVertical:"sizing.size_2",menuVertical:"sizing.size_3",menuHorizontal:"sizing.size_0",menuItemVertical:"sizing.size_2",menuItemHorizontal:"sizing.size_2"}},wh=["sizing","icons","colors","tokens"],wd=["name","icons","colors","tokens"];class wu{#hC;#hy;#hS=new Set;#hv="auto";#hR="default";constructor(e){wi(e,"themeConfig",{requiredFields:wd}),this.#hC={name:void 0,sizing:wl,density:{type:this.#hR,sizes:wa},icons:{},colors:{},tokens:{},colorScheme:this.#hv},this.#hx(e),this.#hC=this.#hy}#hE(){let e=this.getThemeConfig();this.#hS.forEach(t=>t(e))}#hM(e,t){if("string"!=typeof t){let i=tN(e.density,t);e.density=i,void 0!==t.type&&(this.#hR=t.type,this.#hC?.density&&(this.#hC.density.type=t.type))}else e.density.type=t,this.#hR=t,this.#hC?.density&&(this.#hC.density.type=t)}#hx(e){let t=tS(this.#hC);void 0!==e.name&&(void 0!==this.#hC.name?ir('[ThemeBuilder] The "name" property can only be set during `registerTheme()` and cannot be updated via `params()`.'):t.name=e.name),wh.forEach(i=>{void 0!==e[i]&&tM(e[i])&&(t[i]=tN(t[i],e[i]))}),void 0!==e.density&&this.#hM(t,e.density),void 0!==e.colorScheme&&(t.colorScheme=e.colorScheme,this.#hv=e.colorScheme,this.#hC?.colorScheme&&(this.#hC.colorScheme=e.colorScheme)),this.#hy=t}subscribe(e){return"function"!=typeof e&&tf("[ThemeBuilder] listener must be a function."),this.#hS.add(e),()=>this.#hS.delete(e)}params(e){return wi(e,"params"),this.#hx(e),this.#hE(),this}setColorScheme(e){return this.#hv=f9(e),this.#hy.colorScheme=this.#hv,this.#hC.colorScheme=this.#hv,this.#hE(),this}setDensityType(e){return this.#hR=we(e),this.#hy.density.type=this.#hR,this.#hC.density.type=this.#hR,this.#hE(),this}getThemeConfig(){return this.#hy}}let{hasItem:wc,getItem:wg,getNames:wp,getValues:wm,register:wf}=rH("themes");function ww(e){return wc(e)}function wb(e){return wc(e)?wg(e):void ir(`Theme "${e}" is not registered. Please ensure it is registered before using it.`)}function wC(){return wp()}function wy(){return wm()}function wS(e,t){let i=e,o=tS(t);return"string"==typeof e&&tM(t)?o.name=e:"string"!=typeof e&&tM(e)&&(i=(o=tS(e)).name??""),{themeName:i,themeConfigObject:o}}function wv(e,t){let{themeName:i,themeConfigObject:o}=wS(e,t),r=new wu(o);return wc(i)?(ir(`Theme "${i}" is already registered. Registration skipped.`),wb(i)):(wf(i,r),r)}function wR(e,t){let{themeName:i,themeConfigObject:o}=wS(e,t);if(!wc(i))return void ir(`Theme "${i}" is not registered. Cannot reinitialize a non-existent theme.`);let r=new wu(o);return wf(i,r),r}let wx={name:"main",density:"default",icons:{arrowRight:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.64648 10.9393L9.93938 7.64644L6.64648 4.35354' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",arrowRightWithBar:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.9292 4.64188L8.27934 7.99203L4.9292 11.3422M11.0711 4.08353V11.3422' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E",arrowLeft:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.49268 11.2929L6.19978 8.00001L9.49268 4.70712' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",arrowLeftWithBar:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.0713 4.64188L7.72115 7.99203L11.0713 11.3422M4.92936 4.08353L4.92936 11.3422' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E",arrowDown:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.6'%3E%3Cpath d='M11.5859 6L8.29304 9.29289L5.00015 6' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E",menu:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.0002 6.66663C11.4262 6.66663 11.6487 7.15963 11.3917 7.47813L11.3537 7.52013L8.35372 10.5201C8.26762 10.6062 8.15307 10.6579 8.03156 10.6656C7.91005 10.6732 7.78992 10.6363 7.69372 10.5616L7.64672 10.5201L4.64672 7.52013L4.60522 7.47313L4.57822 7.43463L4.55122 7.38663L4.54272 7.36863L4.52922 7.33513L4.51322 7.28113L4.50822 7.25463L4.50322 7.22463L4.50122 7.19613V7.13713L4.50372 7.10813L4.50822 7.07813L4.51322 7.05213L4.52922 6.99813L4.54272 6.96463L4.57772 6.89863L4.61022 6.85363L4.64672 6.81313L4.69372 6.77163L4.73222 6.74463L4.78022 6.71763L4.79822 6.70913L4.83172 6.69563L4.88572 6.67963L4.91222 6.67463L4.94222 6.66963L4.97072 6.66763L11.0002 6.66663Z' fill='currentColor'/%3E%3C/svg%3E%0A",selectArrow:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.0002 6.66663C11.4262 6.66663 11.6487 7.15963 11.3917 7.47813L11.3537 7.52013L8.35372 10.5201C8.26762 10.6062 8.15307 10.6579 8.03156 10.6656C7.91005 10.6732 7.78992 10.6363 7.69372 10.5616L7.64672 10.5201L4.64672 7.52013L4.60522 7.47313L4.57822 7.43463L4.55122 7.38663L4.54272 7.36863L4.52922 7.33513L4.51322 7.28113L4.50822 7.25463L4.50322 7.22463L4.50122 7.19613V7.13713L4.50372 7.10813L4.50822 7.07813L4.51322 7.05213L4.52922 6.99813L4.54272 6.96463L4.57772 6.89863L4.61022 6.85363L4.64672 6.81313L4.69372 6.77163L4.73222 6.74463L4.78022 6.71763L4.79822 6.70913L4.83172 6.69563L4.88572 6.67963L4.91222 6.67463L4.94222 6.66963L4.97072 6.66763L11.0002 6.66663Z' fill='currentColor'/%3E%3C/svg%3E%0A",arrowNarrowUp:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.00008 12.6667L8.00008 3.33335M8.00008 3.33335L5.33342 6.00002M8.00008 3.33335L10.6667 6.00002' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",arrowNarrowDown:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.00004 3.33331V12.6666M8.00004 12.6666L10.6667 9.99998M8.00004 12.6666L5.33337 9.99998' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",check:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.33337 8.00002L6.66671 11.3334L13.3334 4.66669' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",checkbox:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8L7 10L11 6' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",caretHiddenLeft:"data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.08482 1.35771L6.11503 1.3551H6.17649L6.2067 1.35771L6.23795 1.36239L6.26503 1.3676L6.32128 1.38427L6.35618 1.39833L6.42493 1.43479L6.4718 1.46864L6.51399 1.50667L6.55722 1.55562L6.58534 1.59573L6.61347 1.64573L6.62232 1.66448L6.63639 1.69937L6.65305 1.75562L6.65826 1.78323L6.66347 1.81448L6.66555 1.84417L6.66659 1.87489V8.12489C6.66659 8.56864 6.15305 8.80042 5.82128 8.53271L5.77753 8.49312L2.65253 5.36812C2.56286 5.27844 2.50899 5.15912 2.50103 5.03254C2.49307 4.90596 2.53157 4.78083 2.6093 4.68062L2.65253 4.63167L5.77753 1.50667L5.82649 1.46344L5.86659 1.43531L5.91659 1.40719L5.93534 1.39833L5.97024 1.38427L6.02649 1.3676L6.05409 1.36239L6.08482 1.35771Z' fill='currentColor'/%3E%3C/svg%3E",caretHiddenRight:"data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.33337 1.87499C3.33337 1.43124 3.84692 1.19947 4.17869 1.46718L4.22244 1.50676L7.34744 4.63176C7.43711 4.72145 7.49098 4.84077 7.49894 4.96735C7.5069 5.09392 7.4684 5.21905 7.39067 5.31926L7.34744 5.36822L4.22244 8.49322L4.17348 8.53645L4.13337 8.56457L4.08337 8.5927L4.06462 8.60155L4.02973 8.61562L3.97348 8.63228L3.94587 8.63749L3.91462 8.6427L3.88494 8.64478L3.85421 8.64582L3.82348 8.64478L3.79327 8.64218L3.76202 8.63749L3.73494 8.63228L3.67869 8.61562L3.64379 8.60155L3.57504 8.5651L3.52817 8.53124L3.48598 8.49322L3.44275 8.44426L3.41462 8.40416L3.3865 8.35416L3.37764 8.33541L3.36358 8.30051L3.34692 8.24426L3.34171 8.21666L3.3365 8.18541L3.33442 8.15572L3.33337 1.87499Z' fill='currentColor'/%3E%3C/svg%3E",caretHiddenUp:"data:image/svg+xml;charset=utf-8,%3Csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.76425 2.43099C3.82165 2.3736 3.89801 2.33913 3.97902 2.33403C4.06003 2.32894 4.14012 2.35358 4.20425 2.40333L4.23558 2.43099L6.23558 4.43099L6.26325 4.46233L6.28125 4.48799L6.29925 4.51999L6.30492 4.53199L6.31392 4.55433L6.32458 4.59033L6.32792 4.60799L6.33125 4.62799L6.33258 4.64699L6.33325 4.66666L6.33258 4.68633L6.33092 4.70566L6.32792 4.72566L6.32458 4.74299L6.31392 4.77899L6.30492 4.80133L6.28158 4.84533L6.25992 4.87533L6.23558 4.90233L6.20425 4.92999L6.17858 4.94799L6.14658 4.96599L6.13458 4.97166L6.11225 4.98066L6.07625 4.99133L6.05858 4.99466L6.03858 4.99799L6.01958 4.99933L5.99992 4.99999H1.99992C1.71592 4.99999 1.56758 4.67133 1.73892 4.45899L1.76425 4.43099L3.76425 2.43099Z' fill='currentColor'/%3E%3C/svg%3E%0A",caretHiddenDown:"data:image/svg+xml;charset=utf-8,%3Csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.9999 3C6.2839 3 6.43224 3.32867 6.2609 3.541L6.23557 3.569L4.23557 5.569C4.17817 5.62639 4.10181 5.66087 4.0208 5.66596C3.93979 5.67106 3.8597 5.64642 3.79557 5.59667L3.76424 5.569L1.76424 3.569L1.73657 3.53767L1.71857 3.512L1.70057 3.48L1.6949 3.468L1.6859 3.44567L1.67524 3.40967L1.6719 3.392L1.66857 3.372L1.66724 3.353V3.31367L1.6689 3.29433L1.6719 3.27433L1.67524 3.257L1.6859 3.221L1.6949 3.19867L1.71824 3.15467L1.7399 3.12467L1.76424 3.09767L1.79557 3.07L1.82124 3.052L1.85324 3.034L1.86524 3.02833L1.88757 3.01933L1.92357 3.00867L1.94124 3.00533L1.96124 3.002L1.98024 3.00067L5.9999 3Z' fill='currentColor'/%3E%3C/svg%3E%0A",collapseOff:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.33325 8H11.6666' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",collapseOn:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.49988 11.6667C7.49988 11.9428 7.72374 12.1667 7.99988 12.1667C8.27602 12.1667 8.49988 11.9428 8.49988 11.6667V8.50002H11.6666C11.9427 8.50002 12.1666 8.27616 12.1666 8.00002C12.1666 7.72388 11.9427 7.50002 11.6666 7.50002H8.49988V4.33337C8.49988 4.05723 8.27602 3.83337 7.99988 3.83337C7.72374 3.83337 7.49988 4.05723 7.49988 4.33337V7.50002H4.33325C4.05711 7.50002 3.83325 7.72388 3.83325 8.00002C3.83325 8.27616 4.05711 8.50002 4.33325 8.50002H7.49988V11.6667Z' fill='currentColor'/%3E%3C/svg%3E%0A",radio:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='4' fill='currentColor'/%3E%3C/svg%3E%0A",chipClose:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 4L4 12M4 4L12 12' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",search:"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='none'%3E%3Cg opacity='0.5'%3E%3Cpath d='M28 28L20 20M4 13.3333C4 14.559 4.24141 15.7727 4.71046 16.905C5.1795 18.0374 5.86699 19.0663 6.73367 19.933C7.60035 20.7997 8.62925 21.4872 9.76162 21.9562C10.894 22.4253 12.1077 22.6667 13.3333 22.6667C14.559 22.6667 15.7727 22.4253 16.905 21.9562C18.0374 21.4872 19.0663 20.7997 19.933 19.933C20.7997 19.0663 21.4872 18.0374 21.9562 16.905C22.4253 15.7727 22.6667 14.559 22.6667 13.3333C22.6667 12.1077 22.4253 10.894 21.9562 9.76162C21.4872 8.62925 20.7997 7.60035 19.933 6.73367C19.0663 5.86699 18.0374 5.1795 16.905 4.71046C15.7727 4.24141 14.559 4 13.3333 4C12.1077 4 10.894 4.24141 9.76162 4.71046C8.62925 5.1795 7.60035 5.86699 6.73367 6.73367C5.86699 7.60035 5.1795 8.62925 4.71046 9.76162C4.24141 10.894 4 12.1077 4 13.3333Z' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E",plus:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.49988 11.6667C7.49988 11.9428 7.72374 12.1667 7.99988 12.1667C8.27602 12.1667 8.49988 11.9428 8.49988 11.6667V8.50002H11.6666C11.9427 8.50002 12.1666 8.27616 12.1666 8.00002C12.1666 7.72388 11.9427 7.50002 11.6666 7.50002H8.49988V4.33337C8.49988 4.05723 8.27602 3.83337 7.99988 3.83337C7.72374 3.83337 7.49988 4.05723 7.49988 4.33337V7.50002H4.33325C4.05711 7.50002 3.83325 7.72388 3.83325 8.00002C3.83325 8.27616 4.05711 8.50002 4.33325 8.50002H7.49988V11.6667Z' fill='currentColor'/%3E%3C/svg%3E%0A",menuList:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath transform='translate(3.833 4.5)' d='M7.83301 6C8.10915 6 8.33301 6.22386 8.33301 6.5C8.33281 6.77597 8.10903 7 7.83301 7H0.5C0.22398 7 0.000197811 6.77597 0 6.5C0 6.22386 0.223858 6 0.5 6H7.83301ZM7.83301 3C8.10915 3 8.33301 3.22386 8.33301 3.5C8.33281 3.77597 8.10903 4 7.83301 4H0.5C0.22398 4 0.000197811 3.77597 0 3.5C0 3.22386 0.223858 3 0.5 3H7.83301ZM7.83301 0C8.10915 0 8.33301 0.223858 8.33301 0.5C8.33281 0.775974 8.10903 1 7.83301 1H0.5C0.22398 1 0.000197811 0.775974 0 0.5C0 0.223858 0.223858 0 0.5 0H7.83301Z' fill='currentColor'/%3E%3C/svg%3E"},colors:{white:"#ffffffff",black:"#000000ff",primary:{100:"#6180ffff",200:"#5573f0ff",300:"#4669f6ff",400:"#2e56fcff",500:"#1a42e8ff",600:"#1535bcff"},palette:{50:"#f7f7f9ff",100:"#e7e7e9ff",200:"#b9b9bbff",300:"#a3a3a3ff",400:"#68696cff",500:"#404144ff",600:"#313132ff",700:"#282829ff",800:"#222222ff",900:"#1e1e1fff",950:"#050506ff"},transparent:"#ffffff00"},tokens:{fontFamily:"Inter",fontSize:"14px",fontSizeSmall:"12px",lineHeight:"20px",lineHeightSmall:"18px",fontWeight:"400",letterSpacing:"0px",borderColor:["colors.palette.100","colors.palette.700"],accentColor:["colors.primary.500","colors.primary.300"],foregroundColor:["colors.palette.800","colors.palette.200"],foregroundSecondaryColor:["colors.palette.400","colors.palette.300"],backgroundColor:["colors.white","colors.palette.950"],backgroundSecondaryColor:["colors.palette.50","colors.palette.900"],placeholderColor:["colors.palette.300","colors.palette.400"],readOnlyColor:["colors.palette.400","colors.palette.300"],disabledColor:["colors.palette.300","colors.palette.400"],gapSize:"density.gap",iconSize:"sizing.size_4",tableTransition:"0.15s",borderRadius:"sizing.size_1",barForegroundColor:"tokens.foregroundColor",barBackgroundColor:"tokens.backgroundSecondaryColor",barHorizontalPadding:"density.barsHorizontal",barVerticalPadding:"density.barsVertical",shadowColor:["colors.palette.800","colors.palette.200"],shadowX:"sizing.size_0",shadowY:"sizing.size_2",shadowBlur:"sizing.size_4",shadowOpacity:"8%",cellHorizontalPadding:"density.cellHorizontal",cellVerticalPadding:"density.cellVertical",cellHorizontalBorderColor:"tokens.borderColor",cellVerticalBorderColor:"tokens.borderColor",cellSelectionBorderColor:"tokens.accentColor",cellSelectionBackgroundColor:["colors.primary.400","colors.primary.200"],rowSelectionBackgroundColor:["#1a42e81a","#4669f633"],cellSuccessBackgroundColor:"#37bc6c33",cellErrorBackgroundColor:"#fa4d3233",cellReadOnlyBackgroundColor:"tokens.backgroundSecondaryColor",cellAutofillSize:"sizing.size_1_5",cellAutofillHitAreaSize:"sizing.size_3",cellAutofillBorderWidth:"sizing.size_0_25",cellAutofillBorderRadius:"sizing.size_1",cellAutofillBorderColor:"tokens.backgroundColor",cellAutofillBackgroundColor:"tokens.accentColor",cellAutofillFillBorderColor:"tokens.foregroundColor",customBordersDefaultColor:["colors.black","colors.palette.200"],cellEditorBorderWidth:"2px",cellEditorBorderColor:"tokens.accentColor",cellEditorForegroundColor:["colors.palette.950","colors.white"],cellEditorBackgroundColor:"tokens.backgroundColor",cellEditorShadowBlurRadius:"0px",cellEditorShadowColor:"tokens.accentColor",cellMobileHandleSize:"sizing.size_3",cellMobileHandleBorderWidth:"sizing.size_0_25",cellMobileHandleBorderRadius:"sizing.size_3",cellMobileHandleBorderColor:"tokens.accentColor",cellMobileHandleBackgroundColor:"tokens.accentColor",cellMobileHandleBackgroundOpacity:"40%",cellSelectionHandleSize:"sizing.size_2",cellSelectionHandleLength:"sizing.size_4",cellSelectionHandleBorderWidth:"sizing.size_0_25",cellSelectionHandleBorderRadius:"sizing.size_3",cellSelectionHandleBorderColor:"tokens.accentColor",cellSelectionHandleBackgroundColor:"tokens.backgroundColor",headerFontWeight:"tokens.fontWeight",headerForegroundColor:"tokens.foregroundColor",headerBackgroundColor:"tokens.backgroundSecondaryColor",headerHighlightedShadowSize:"0px",headerHighlightedForegroundColor:["colors.palette.950","colors.white"],headerHighlightedBackgroundColor:["colors.palette.100","colors.palette.700"],headerActiveBorderColor:["colors.primary.400","colors.primary.200"],headerActiveForegroundColor:"colors.white",headerActiveBackgroundColor:"tokens.accentColor",headerFilterBackgroundColor:"tokens.cellSuccessBackgroundColor",headerRowForegroundColor:"tokens.foregroundColor",headerRowBackgroundColor:"tokens.backgroundSecondaryColor",headerRowHighlightedForegroundColor:["colors.palette.950","colors.white"],headerRowHighlightedBackgroundColor:["colors.palette.100","colors.palette.700"],headerRowActiveForegroundColor:"colors.white",headerRowActiveBackgroundColor:"tokens.accentColor",rowHeaderOddBackgroundColor:"tokens.headerRowBackgroundColor",rowHeaderEvenBackgroundColor:"tokens.headerRowBackgroundColor",rowCellOddBackgroundColor:"tokens.backgroundColor",rowCellEvenBackgroundColor:"tokens.backgroundColor",buttonBorderRadius:"sizing.size_1",buttonHorizontalPadding:"density.buttonHorizontal",buttonVerticalPadding:"density.buttonVertical",primaryButtonBorderColor:"colors.transparent",primaryButtonForegroundColor:"colors.white",primaryButtonBackgroundColor:"tokens.accentColor",primaryButtonDisabledBorderColor:"colors.transparent",primaryButtonDisabledForegroundColor:"tokens.disabledColor",primaryButtonDisabledBackgroundColor:["colors.palette.100","colors.palette.700"],primaryButtonHoverBorderColor:"colors.transparent",primaryButtonHoverForegroundColor:"tokens.backgroundColor",primaryButtonHoverBackgroundColor:["colors.primary.600","colors.primary.100"],primaryButtonFocusBorderColor:"tokens.backgroundColor",primaryButtonFocusForegroundColor:"tokens.backgroundColor",primaryButtonFocusBackgroundColor:"tokens.accentColor",secondaryButtonBorderColor:"tokens.borderColor",secondaryButtonForegroundColor:"tokens.foregroundColor",secondaryButtonBackgroundColor:"tokens.backgroundColor",secondaryButtonDisabledBorderColor:"tokens.borderColor",secondaryButtonDisabledForegroundColor:"tokens.disabledColor",secondaryButtonDisabledBackgroundColor:["colors.palette.100","colors.palette.700"],secondaryButtonHoverBorderColor:"tokens.borderColor",secondaryButtonHoverForegroundColor:"tokens.foregroundColor",secondaryButtonHoverBackgroundColor:["colors.palette.100","colors.palette.700"],secondaryButtonFocusBorderColor:"tokens.borderColor",secondaryButtonFocusForegroundColor:"tokens.foregroundColor",secondaryButtonFocusBackgroundColor:"tokens.backgroundColor",iconButtonBorderRadius:"sizing.size_0_5",iconButtonLargeBorderRadius:"sizing.size_1",iconButtonLargePadding:"sizing.size_1",iconButtonBorderColor:["colors.palette.50","colors.palette.900"],iconButtonBackgroundColor:"tokens.backgroundSecondaryColor",iconButtonIconColor:["colors.palette.300","colors.palette.400"],iconButtonHitAreaSize:"sizing.size_6",iconButtonHoverBorderColor:["colors.palette.100","colors.palette.700"],iconButtonHoverBackgroundColor:["colors.palette.100","colors.palette.700"],iconButtonHoverIconColor:["colors.palette.400","colors.palette.300"],iconButtonActiveBorderColor:["colors.primary.400","colors.primary.200"],iconButtonActiveBackgroundColor:"tokens.accentColor",iconButtonActiveIconColor:"colors.white",iconButtonActiveHoverBorderColor:["colors.primary.400","colors.primary.200"],iconButtonActiveHoverBackgroundColor:["colors.primary.400","colors.primary.200"],iconButtonActiveHoverIconColor:"colors.white",collapseButtonBorderRadius:"sizing.size_1",collapseButtonOpenBorderColor:["colors.palette.200","colors.palette.500"],collapseButtonOpenBackgroundColor:["colors.white","colors.palette.950"],collapseButtonOpenIconColor:["colors.palette.400","colors.palette.300"],collapseButtonOpenIconActiveColor:["colors.palette.400","colors.palette.300"],collapseButtonOpenHoverBorderColor:["colors.palette.200","colors.palette.500"],collapseButtonOpenHoverBackgroundColor:["colors.palette.50","colors.palette.900"],collapseButtonOpenHoverIconColor:["colors.palette.400","colors.palette.300"],collapseButtonOpenHoverIconActiveColor:["colors.palette.400","colors.palette.300"],collapseButtonCloseBorderColor:["colors.palette.200","colors.palette.500"],collapseButtonCloseBackgroundColor:["colors.palette.100","colors.palette.700"],collapseButtonCloseIconColor:["colors.palette.400","colors.palette.300"],collapseButtonCloseIconActiveColor:["colors.palette.400","colors.palette.300"],collapseButtonCloseHoverBorderColor:["colors.palette.200","colors.palette.500"],collapseButtonCloseHoverBackgroundColor:["colors.palette.100","colors.palette.700"],collapseButtonCloseHoverIconColor:["colors.palette.400","colors.palette.300"],collapseButtonCloseHoverIconActiveColor:["colors.palette.400","colors.palette.300"],linkColor:["colors.primary.600","colors.primary.100"],linkHoverColor:"tokens.accentColor",inputBorderWidth:"1px",inputBorderRadius:"sizing.size_1",inputHorizontalPadding:"density.inputHorizontal",inputVerticalPadding:"density.inputVertical",inputBorderColor:"tokens.borderColor",inputForegroundColor:"tokens.foregroundColor",inputBackgroundColor:"tokens.backgroundSecondaryColor",inputHoverBorderColor:"tokens.borderColor",inputHoverForegroundColor:"tokens.foregroundColor",inputHoverBackgroundColor:"tokens.backgroundColor",inputDisabledBorderColor:"tokens.borderColor",inputDisabledForegroundColor:"tokens.disabledColor",inputDisabledBackgroundColor:["colors.palette.200","colors.palette.500"],inputFocusBorderColor:"tokens.accentColor",inputFocusForegroundColor:"tokens.foregroundColor",inputFocusBackgroundColor:"tokens.backgroundColor",checkboxSize:"tokens.iconSize",checkboxBorderRadius:"sizing.size_1",checkboxBorderColor:["colors.palette.200","colors.palette.500"],checkboxBackgroundColor:"tokens.backgroundColor",checkboxIconColor:"colors.transparent",checkboxFocusBorderColor:["colors.palette.200","colors.palette.500"],checkboxFocusBackgroundColor:"tokens.backgroundColor",checkboxFocusIconColor:"colors.transparent",checkboxFocusRingColor:"tokens.accentColor",checkboxDisabledBorderColor:["colors.palette.200","colors.palette.500"],checkboxDisabledBackgroundColor:["colors.palette.100","colors.palette.700"],checkboxDisabledIconColor:"colors.transparent",checkboxCheckedBorderColor:["colors.primary.400","colors.primary.200"],checkboxCheckedBackgroundColor:"tokens.accentColor",checkboxCheckedIconColor:"colors.white",checkboxCheckedFocusBorderColor:"tokens.backgroundColor",checkboxCheckedFocusBackgroundColor:"tokens.accentColor",checkboxCheckedFocusIconColor:"colors.white",checkboxCheckedDisabledBorderColor:["colors.palette.200","colors.palette.500"],checkboxCheckedDisabledBackgroundColor:["colors.palette.100","colors.palette.700"],checkboxCheckedDisabledIconColor:"tokens.disabledColor",checkboxIndeterminateBorderColor:["colors.primary.400","colors.primary.200"],checkboxIndeterminateBackgroundColor:"tokens.accentColor",checkboxIndeterminateIconColor:"colors.white",checkboxIndeterminateFocusBorderColor:"tokens.backgroundColor",checkboxIndeterminateFocusBackgroundColor:"tokens.accentColor",checkboxIndeterminateFocusIconColor:"colors.white",checkboxIndeterminateDisabledBorderColor:["colors.palette.200","colors.palette.600"],checkboxIndeterminateDisabledBackgroundColor:["colors.palette.200","colors.palette.500"],checkboxIndeterminateDisabledIconColor:"tokens.disabledColor",radioSize:"tokens.iconSize",radioBorderColor:["colors.palette.200","colors.palette.500"],radioBackgroundColor:"tokens.backgroundColor",radioIconColor:"colors.transparent",radioFocusBorderColor:"tokens.borderColor",radioFocusBackgroundColor:"tokens.backgroundColor",radioFocusIconColor:"colors.transparent",radioFocusRingColor:"tokens.accentColor",radioDisabledBorderColor:["colors.palette.200","colors.palette.500"],radioDisabledBackgroundColor:["colors.palette.100","colors.palette.700"],radioDisabledIconColor:"colors.transparent",radioCheckedBorderColor:"tokens.accentColor",radioCheckedBackgroundColor:"tokens.backgroundColor",radioCheckedIconColor:"tokens.accentColor",radioCheckedFocusBorderColor:["colors.primary.400","colors.primary.200"],radioCheckedFocusBackgroundColor:"tokens.backgroundColor",radioCheckedFocusIconColor:["colors.primary.400","colors.primary.200"],radioCheckedDisabledBorderColor:["colors.palette.200","colors.palette.500"],radioCheckedDisabledBackgroundColor:["colors.palette.100","colors.palette.700"],radioCheckedDisabledIconColor:"tokens.disabledColor",moveBacklightColor:["colors.palette.800","colors.palette.200"],moveBacklightOpacity:"8%",moveIndicatorColor:"tokens.accentColor",resizeIndicatorColor:["colors.palette.300","colors.palette.400"],freezeBarColor:["colors.palette.200","colors.palette.500"],freezeBarHoverColor:["colors.palette.300","colors.palette.400"],freezeBarHighlightColor:"tokens.accentColor",asyncIndicatorColor:"tokens.accentColor",asyncErrorBackgroundColor:"tokens.cellErrorBackgroundColor",asyncErrorMarkerColor:"tokens.notificationErrorAccent",hiddenIndicatorColor:["colors.palette.300","colors.palette.400"],menuBorderWidth:"1px",menuBorderRadius:"sizing.size_1",menuHorizontalPadding:"density.menuHorizontal",menuVerticalPadding:"density.menuVertical",menuItemHorizontalPadding:"density.menuItemHorizontal",menuItemVerticalPadding:"density.menuItemVertical",menuBorderColor:"tokens.borderColor",menuShadowX:"tokens.shadowX",menuShadowY:"tokens.shadowY",menuShadowBlur:"tokens.shadowBlur",menuShadowColor:["colors.palette.950","colors.white"],menuShadowOpacity:"8%",menuItemHoverColor:["colors.palette.800","colors.palette.200"],menuItemHoverColorOpacity:"4%",menuItemActiveColor:"tokens.accentColor",menuItemActiveColorOpacity:"8%",commentsTextareaHorizontalPadding:"density.cellHorizontal",commentsTextareaVerticalPadding:"density.cellVertical",commentsTextareaBorderWidth:"1px",commentsTextareaBorderColor:"colors.transparent",commentsTextareaForegroundColor:"tokens.foregroundColor",commentsTextareaBackgroundColor:"tokens.backgroundSecondaryColor",commentsTextareaFocusBorderWidth:"1px",commentsTextareaFocusBorderColor:"tokens.accentColor",commentsTextareaFocusForegroundColor:"tokens.foregroundColor",commentsTextareaFocusBackgroundColor:"tokens.backgroundColor",commentsIndicatorSize:"sizing.size_1_5",commentsIndicatorColor:"tokens.accentColor",licenseHorizontalPadding:"tokens.barHorizontalPadding",licenseVerticalPadding:"tokens.barVerticalPadding",licenseForegroundColor:"tokens.barForegroundColor",licenseBackgroundColor:"tokens.barBackgroundColor",paginationBarForegroundColor:"tokens.barForegroundColor",paginationBarBackgroundColor:"tokens.barBackgroundColor",paginationBarHorizontalPadding:"tokens.barHorizontalPadding",paginationBarVerticalPadding:"tokens.barVerticalPadding",paginationButtonBorderColor:"tokens.paginationBarBackgroundColor",paginationButtonForegroundColor:"tokens.foregroundSecondaryColor",paginationButtonBackgroundColor:"tokens.paginationBarBackgroundColor",paginationButtonHoverBorderColor:["colors.palette.100","colors.palette.700"],paginationButtonHoverForegroundColor:"tokens.foregroundColor",paginationButtonHoverBackgroundColor:["colors.palette.100","colors.palette.700"],paginationButtonDisabledBorderColor:"tokens.paginationBarBackgroundColor",paginationButtonDisabledForegroundColor:"tokens.disabledColor",paginationButtonDisabledBackgroundColor:"tokens.paginationBarBackgroundColor",paginationButtonFocusBorderColor:"tokens.accentColor",paginationButtonFocusForegroundColor:"tokens.foregroundColor",paginationButtonFocusBackgroundColor:"tokens.paginationBarBackgroundColor",sheetsBarHorizontalPadding:"sizing.size_2",sheetsBarBackgroundColor:"tokens.barBackgroundColor",sheetsBarTabHorizontalPadding:"sizing.size_3",sheetsBarTabVerticalPadding:"sizing.size_2",sheetsBarTabForegroundColor:"tokens.foregroundSecondaryColor",sheetsBarTabBackgroundColor:"tokens.barBackgroundColor",sheetsBarTabHoverForegroundColor:["colors.palette.950","colors.white"],sheetsBarTabActiveForegroundColor:["colors.palette.950","colors.white"],sheetsBarTabActiveBackgroundColor:["colors.palette.100","colors.palette.700"],sheetsBarTabActiveBorderWidth:"1px",sheetsBarTabActiveBorderColor:"tokens.cellSelectionBorderColor",dialogSemiTransparentBackgroundColor:["colors.white","colors.palette.950"],dialogSemiTransparentBackgroundOpacity:"80%",dialogSolidBackgroundColor:["colors.white","colors.palette.950"],dialogContentPaddingHorizontal:"density.dialogHorizontal",dialogContentPaddingVertical:"density.dialogVertical",dialogContentBorderRadius:"sizing.size_2",dialogContentBackgroundColor:"tokens.backgroundSecondaryColor",notificationForegroundColor:"tokens.foregroundColor",notificationBackgroundColor:"tokens.backgroundColor",notificationBorderColor:"tokens.backgroundColor",notificationSuccessAccent:"#37bc6cff",notificationWarningAccent:"#fbe952ff",notificationErrorAccent:"#fa4d32ff",chipBackground:"tokens.backgroundSecondaryColor",chipBorderRadius:"sizing.size_0_5",chipVerticalPadding:"sizing.size_0",chipHorizontalPadding:"sizing.size_0_5",chipGap:"sizing.size_1",scrollbarBorderRadius:"sizing.size_2",scrollbarTrackColor:"tokens.backgroundSecondaryColor",scrollbarThumbColor:["colors.palette.300","colors.palette.400"]}},wE=/^(\d+(?:\.\d+)?)(?:\s*px)?$/i,wM=RegExp("^\\d+(?:\\.\\d+)?(?:%|px|em|rem|ex|ch|cap|ic|lh|rlh|[sld]?v(?:w|h|min|max|i|b)|cq(?:w|h|i|b|min|max)|cm|mm|q|in|pt|pc)$","i"),wk=/^(?:calc|min|max|clamp|var|env)\(/i,wI=/%|\d[sld]?v(?:w|h|min|max|i|b)\b|\dcq(?:w|h|i|b|min|max)\b|\bvar\(|\benv\(/i,wT=new Set(["fit-content","min-content","max-content","inherit","initial","unset","revert","revert-layer","stretch","-webkit-fill-available","-moz-available","none","normal"]);function wA(){return{kind:"invalid",cssValue:null}}function wH(e){return{kind:"css",cssValue:e}}function wO(e,t){if("number"==typeof e)return Number.isFinite(e)&&e>=0?{kind:"px",cssValue:`${e}px`}:wA();if("string"!=typeof e)return wA();let i=e.trim();return""===i?wA():function(e,t){let i=e.toLowerCase();if("auto"===i)return{kind:"auto",cssValue:"auto"};let o=wE.exec(e);return null!==o?{kind:"px",cssValue:`${o[1]}px`}:wT.has(i)||i.startsWith("fit-content(")?wA():wM.test(e)?wH(e):wk.test(e)?void 0===t||t(e)?wH(e):wA():void 0!==t&&t(e)?wH(e):wA()}(i,t)}function wD(e){return""===e?"unset":"auto"===e?"auto":wI.test(e)?"container-driven":"definite"}function wP(e){return""===e||"clip"===e}function w_(e,t){return e[t]||e.overflow}function wF(e){return"unset"===e||"auto"===e}function wN(e){let t=e.style.height;return{heightInline:t,height:wD(t)}}function wL(e,t,i,o){if(void 0===i)return"untouched";let r=o3(i)?i():i;if(null===(r=e.runHooks(o,r)))return!function(e,t){let i=function(e){let t=e.ownerDocument.createElement("div");t.style.cssText=e.dataset.initialstyle??"";let{height:i,width:o,overflow:r,overflowX:n,overflowY:s}=t.style;return{height:i,width:o,overflowX:n||r,overflowY:s||r}}(e),{style:o}=e;o[t]=i[t],"height"===t&&(wP(w_(o,"overflowY"))&&(o.overflowY=i.overflowY),wP(w_(o,"overflowX"))&&(o.overflowX=i.overflowX))}(e.rootElement,t),"reset";if(void 0===r)return"untouched";let n=wO(r,function(e,t){let i=e.CSS;if(void 0!==i&&"function"==typeof i.supports)return e=>{try{return i.supports(t,e)}catch{return!1}}}(e.rootWindow,t));if("invalid"===n.kind){var s;let i;return s=e.rootElement,i=h2(r),il(s,`invalid-root-size-${t}-${i}`,`Handsontable: the \`${t}\` option expects a number of pixels, such as \`500\`, \`'500'\`, or \`'500px'\`, a CSS length such as \`'50%'\` or \`${"height"===t?"'75vh'":"'75vw'"}\`, or \`'auto'\`. The value ${i} cannot be read as a size, so it is ignored and the grid's ${t} is left as it was.`),"ignored"}return"px"===n.kind&&"height"===t?e.rootElement.style.height=function(e,t){if(!sy(e))return t;let i=[e.rootSlotTopElement,e.rootSlotBottomElement].reduce((e,t)=>e+(t?.offsetHeight??0),0);return 0===i?t:`calc(${t} - ${i}px)`}(e,n.cssValue??""):e.rootElement.style[t]=n.cssValue??"","written"}function wB(e,t,i){var o,r;let n,s,{rootElement:l}=e;if(i){let e=l.getAttribute("style");e&&(l.dataset.initialstyle=e)}let a=wN(l),h=wL(e,"height",t.height,"beforeHeightChange"),d=wL(e,"width",t.width,"beforeWidthChange"),u=[],c=sy(e)&&Object.prototype.hasOwnProperty.call(t,"preventOverflow");return(void 0!==t.height||void 0!==t.width||c)&&function(e,t,i,o){let{style:r}=e,n=wD(r.height),s=wD(r.width);if(!wF(n)){(!t||i)&&wP(w_(r,"overflowX"))&&(r.overflowX="clip"),!t&&wP(w_(r,"overflowY"))&&(r.overflowY="clip");return}wP(w_(r,"overflowY"))&&(r.overflowY=""),wP(w_(r,"overflowX"))&&(r.overflowX="definite"===s||o?"clip":"")}(l,"reset"===h,"written"===d,sy(e)&&"horizontal"===e.getSettings().preventOverflow),"ignored"===h&&u.push("height"),"ignored"===d&&u.push("width"),{scrollOwnerChanged:(o=wN(l),r=void 0!==t.height,n=wF(a.height),s=wF(o.height),!r||n!==s||(n||s)&&a.heightInline!==o.heightInline),ignoredAxes:u}}function wV(e,t){let i=o3(t)?t():t;"px"===wO(i).kind&&wB(e,{height:i},!1)}let wz=Object.freeze({resume:e=>e(),release:()=>{}});class wW{#hk=[];#hI=1;#hT=0;#hA=!1;#hH=new Set;#hO=new Set;#hD=new WeakSet;#hP=new WeakSet;#h_=new WeakMap;#hF=1;#hN=Object.freeze({resume:e=>this.suppress(e),release:()=>{}});current(){return this.#hT>0?null:this.#hk[this.#hk.length-1]??null}isActive(){return null!==this.current()}isSuppressed(){return this.#hT>0}setJournaling(e){this.#hA=e}getRecordingTransaction(){return this.#hA?this.current():null}record(e){let t=this.getRecordingTransaction();null!==t&&this.append(t,e)}append(e,t){e.journal.push(t),this.#h_.set(t,this.#hF),this.#hF+=1}getEntryOrder(e){return this.#h_.get(e)??0}isLatestEntry(e){return this.#h_.get(e)===this.#hF-1}describe(e){let t=this.current();null!==t&&1===t.depth&&Object.assign(t.details,e)}run(e,t,i){this.enter(e,t);let o=!0;try{let e=i();return o=!1,e}finally{this.leave(o)}}enter(e,t){if(this.#hT>0)return;let i=this.#hk[this.#hk.length-1];if(i){i.depth+=1,i.operations.push(e),i.sources.push(t);return}let o={id:this.#hI,name:e,source:t,operations:[e],sources:[t],journal:[],details:{},depth:1,holds:0,aborted:!1};this.#hI+=1,this.#hk.push(o);try{this.#hH.forEach(e=>e(o))}catch(e){throw this.#hk.splice(this.#hk.lastIndexOf(o),1),e}}leave(e=!1){if(this.#hT>0)return;let t=this.#hk[this.#hk.length-1];!t||(e&&(t.aborted=!0),t.depth-=1,t.depth>0||(this.#hk.pop(),this.#hL(t)))}hold(){if(this.#hT>0)return this.#hN;let e=this.current();if(null===e)return wz;e.holds+=1;let t=!1;return{resume:i=>t||this.#hT>0?i():this.#hD.has(e)?this.run(e.name,e.source,i):this.#hB(e,i),release:()=>{t||(t=!0,e.holds-=1,this.#hL(e))}}}suppress(e){this.#hT+=1;try{return e()}finally{this.#hT-=1}}addOpenListener(e){this.#hH.add(e)}removeOpenListener(e){this.#hH.delete(e)}addSettleListener(e){this.#hO.add(e)}removeSettleListener(e){this.#hO.delete(e)}destroy(){this.#hk.length=0,this.#hH.clear(),this.#hO.clear(),this.#hA=!1}#hB(e,t){let i=this.#hk.includes(e);i||this.#hk.push(e),e.depth+=1;let o=!0;try{let e=t();return o=!1,e}finally{if(o&&(e.aborted=!0,this.#hP.add(e)),e.depth-=1,!i){let t=this.#hk.lastIndexOf(e);-1!==t&&this.#hk.splice(t,1)}this.#hL(e)}}#hL(e){0===e.depth&&(0===e.holds||this.#hP.has(e))&&this.#hV(e)}#hV(e){this.#hD.has(e)||(this.#hD.add(e),this.#hO.forEach(t=>t(e)))}}class w${#hz=new Map;require(e,t){let i=this.#hz.get(e);i||(i=new Set,this.#hz.set(e,i)),i.add(t)}release(e,t){let i=this.#hz.get(e);i&&(i.delete(t),0===i.size&&this.#hz.delete(e))}isRequired(e){return this.#hz.has(e)}}let wU="rowId",wG=["afterChange","afterSetSourceDataAtCell","afterCreateRow","afterRemoveRow","afterLoadData","afterUpdateData"];function wj(e,t){let i=[];return e.forEach(e=>{let o=t(e);null!==o&&i.push(o)}),i}function wq(e){return"string"==typeof e||"function"==typeof e}class wK extends dM{#hW;constructor(e,t){super(e),this.#hW=t}init(e){return e>0&&e===this.getLength()&&!this.#hW()?(this.runLocalHooks("init"),this):super.init(e)}}class wY{#eb;#h$;#hU=null;#hG=1;#hj=null;#hq=!0;#hW=!1;#hK=!1;#hY=void 0;#hX=null;#hZ=void 0;constructor(e,t){this.#eb=e,this.#h$=t,e.addHook("beforeInit",this.#as),e.addHook("afterUpdateSettings",this.#as),e.addHook("beforeLoadData",this.#hQ),e.addHook("afterLoadData",this.#hJ),e.addHook("beforeUpdateData",this.#h0),e.addHook("beforeRemoveRow",this.#h1,Number.MAX_SAFE_INTEGER),e.addHook("afterRowsMutation",this.#h2)}getRowIdAtPhysicalRow(e){if(!Number.isInteger(e)||e<0)return null;if(this.#hU)return this.#hU.getValueAtIndex(e)??null;let t=this.#h3();return!wq(t)||e>=this.#eb.rowIndexMapper.getNumberOfIndexes()?null:this.#h6(e,t)}getKeyedRowIdAtPhysicalRow(e){if(this.#hU)return null;try{return this.getRowIdAtPhysicalRow(e)}catch{return null}}getRowIdsAtPhysicalRows(e){let t=this.#h4(),i=this.#eb.rowIndexMapper.getNumberOfIndexes();return e.map(e=>null===t||null===e||!Number.isInteger(e)||e<0||e>=i?null:t(e))}getPhysicalRowById(e){if(null==e)return null;let t=this.#hj?.get(e);return void 0!==t&&this.getRowIdAtPhysicalRow(t)===e?t:void 0!==t||this.#hq?(this.#hj=this.#h5(),this.#hq=!1,this.#hj.get(e)??null):null}#h3(){let e=this.#eb.getSettings(),t=e.dataProvider?.rowId;if(wq(t)){let i=e.rowId;return null!=i&&!1!==i&&i!==t&&il(this,"rowId.dataProvider","The `rowId` option is ignored, because `dataProvider.rowId` is set. Handsontable reads row ids with `dataProvider.rowId`."),t}return e.rowId}#h6(e,t){return function(e,t){if("object"==typeof e&&null!==e){if("function"==typeof t)return t(e);if("string"==typeof t){if(t_(e,t))return Reflect.get(e,t);let i=e;for(let e of t.split(".")){if("object"!=typeof i||null===i)return;i=Reflect.get(i,e)}return i}}}(this.#h$(e),t)??null}#h4(){let e=this.#hU;if(e)return t=>e.getValueAtIndex(t)??null;let t=this.#h3();return wq(t)?e=>this.#h6(e,t):null}#h5(){let e=new Map,t=this.#eb.rowIndexMapper.getNumberOfIndexes(),i=this.#h4();if(!i)return e;for(let o=0;o<t;o+=1){let t=i(o);null!==t&&(e.has(t)?il(this,"rowId.duplicate",`Two rows have the same id (${String(t)}). Row ids must be unique: the lookups return the row with the lower physical index.`):e.set(t,o))}return e}#as=()=>{let e=this.#h3(),t=!0===e,i=this.#eb.rowIndexMapper,o=this.#hY;this.#hY=e,this.#h8(wq(e)),t&&this.#eb.getSettings().nestedRows&&il(this,"rowId.nestedRows","Generated row ids (`rowId: true`) do not follow the rows that the `nestedRows` plugin moves or detaches. Store the ids in the data and set `rowId` to their property."),t&&!this.#hU?(this.#hU=i.registerMap(wU,new wK(this.#h7,()=>this.#hW)),this.#hU.addLocalHook("change",this.#h9)):!t&&this.#hU&&(i.unregisterMap(wU),this.#hU=null),this.#h9(),e!==o&&(!0===o||wq(o))&&this.#eb.runHooks("afterRowIdsReset")};#h1=(e,t,i,o)=>{!1!==e&&this.#de(o)};#h0=(e,t,i)=>{t||!0===this.#eb.runHooks("hasExternalDataSource")||this.#de(i)};#h2=(e,t)=>{if("remove"!==e||!this.#eb.hasHook("afterRowIdsRemoved")||null===t||"object"!=typeof t||!("rowsRemove"in t)||!Array.isArray(t.rowsRemove))return;let i=t.rowsRemove.filter(e=>null!=e);i.length>0&&this.#eb.runHooks("afterRowIdsRemoved",i,"dataProvider")};#de(e){if(null!==this.#hX||!this.#eb.hasHook("afterRowIdsRemoved"))return;let t=this.#h4();t&&(this.#hX=new Set(wj(this.#dt(),t)),this.#hZ=e,this.#eb._registerMicrotask(this.#di))}#di=()=>{let e=this.#hX,t=this.#hZ;if(this.#hX=null,this.#hZ=void 0,!e||this.#eb.isDestroyed)return;let i=this.#h4(),o=new Set(i?wj(this.#dt(),i):[]),r=[...e].filter(e=>!o.has(e));r.length>0&&this.#eb.runHooks("afterRowIdsRemoved",r,t)};#dt(){return Array.from({length:this.#eb.rowIndexMapper.getNumberOfIndexes()},(e,t)=>t)}#h8(e){e!==this.#hK&&(wG.forEach(t=>{e?this.#eb.addHook(t,this.#h9,Number.MIN_SAFE_INTEGER):this.#eb.removeHook(t,this.#h9)}),this.#hK=e)}#h7=()=>{let e=this.#hG;return this.#hG+=1,e};#hQ=(e,t,i)=>{this.#h0(e,t,i),this.#hU&&(this.#hW=!0,this.#eb._registerMicrotask(this.#hJ))};#hJ=()=>{this.#hW=!1};#h9=()=>{this.#hq=!0}}function wX(e){return"string"==typeof e&&e.endsWith("Validator")}let wZ=new WeakMap,wQ=0;function wJ(e){let t=new Map,i=new Map,o=null,r=!1,n=0,s=()=>{r&&(r=!1,i.clear(),t.forEach((e,t)=>{null!==t.physicalRow&&i.set(t.physicalRow,t)}))},l=(e,i="start")=>{if(0===e.length)return;let n=o.getNumberOfIndexes()-e.length,s="end"===i?Math.min(e[0]+1,n):e[0],l=e.length;t.forEach((e,t)=>{null!==t.physicalRow&&t.physicalRow>=s&&(t.physicalRow+=l,r=!0)})},a=e=>{if(0===e.length)return;let i=e.slice().sort((e,t)=>e-t);t.forEach((e,t)=>{if(null===t.physicalRow)return;let o=function(e,t){let i=0,o=e.length;for(;i<o;){let r=Math.floor((i+o)/2);e[r]<t?i=r+1:o=r}return i}(i,t.physicalRow),n=i[o]===t.physicalRow;(n||o>0)&&(t.physicalRow=n?null:t.physicalRow-o,r=!0)})},h=e=>{let i=new Map,o=!1;return t.forEach((t,o)=>{let r=e.get(o)??o.physicalRow;null!==r&&i.set(r,[...i.get(r)??[],o])}),i.forEach(t=>{t.length>1&&t.forEach(t=>{o=e.delete(t)||o})}),o},d=()=>{t.size>0&&null===o?((o=e()).addLocalHook("indexesInserted",l),o.addLocalHook("indexesRemoved",a)):0===t.size&&null!==o&&(o.removeLocalHook("indexesInserted",l),o.removeLocalHook("indexesRemoved",a),o=null,i.clear(),r=!1)};return{track(e){s();let o=i.get(e);return void 0===o&&(n+=1,o={id:n,physicalRow:e},i.set(e,o)),t.set(o,(t.get(o)??0)+1),d(),o},find:e=>(s(),i.get(e)),release(e){let o=t.get(e);if(void 0!==o){if(o>1)return void t.set(e,o-1);t.delete(e),r||null===e.physicalRow||i.get(e.physicalRow)!==e||i.delete(e.physicalRow),d()}},relocate(e){let i=new Map;e.forEach((e,o)=>{t.has(o)&&o.physicalRow!==e&&i.set(o,e)});let o=i.size>0;for(;o;)o=h(i);return i.forEach((e,t)=>{t.physicalRow=e,r=!0}),new Set(i.keys())},get size(){return t.size}}}function w0(e,t,i){return{record:e.track(i),rowObject:t.readRowObject(i),rowId:t.readKeyedRowId(i),meta:null,metaColumn:-1}}function w1(e){let t=null;return i=>{if(null===t){t=new Map;let i=e.countPhysicalRows();for(let o=0;o<i;o++){let i=e.readRowObject(o);w2(i)&&t.set(i,t.has(i)?null:o)}}return t.get(i)}}function w2(e){return"object"==typeof e&&null!==e}function w3(e,t,i=function(e){return t=>{let i,o=e.countPhysicalRows();for(let r=0;r<o;r++)if(e.readRowObject(r)===t){if(void 0!==i)return null;i=r}return i}}(e)){let o,{physicalRow:r}=t.record,n=null!==r&&r<e.countPhysicalRows()?r:null;if(null!==n&&w2(t.rowObject)&&e.readRowObject(n)===t.rowObject)return n;if(null!==t.rowId&&void 0!==t.rowId){if(null!==n&&e.readKeyedRowId(n)===t.rowId)return n;let o=e.findPhysicalRowById(t.rowId);return null!==o?o:w2(t.rowObject)?i(t.rowObject)??null:null}return void 0!==(o=w2(t.rowObject)?i(t.rowObject):void 0)?o:null!==n&&null!==t.meta&&e.getStoredMeta(n,t.metaColumn)===t.meta?n:null}function w6(e,t){Reflect.set(e,0,t)}let w4=null;function w5(e){if(0===e.length)return[];let t=[...e];return t.sort(([e],[t])=>e===t?0:e>t?1:-1),ei(t,(e,[t,i])=>{let o=e[e.length-1],[r,n]=o,s=r+n;if(t<=s){let e=Math.max(i-(s-t),0);o[1]+=e}else e.push([t,i]);return e},[t[0]])}let w8=new Map,w7=Object.freeze({insert_row_above:"insert_row",insert_row_below:"insert_row",insert_col_start:"insert_col",insert_col_end:"insert_col",remove_row:"remove_row",remove_col:"remove_col"}),w9=[{name:"persistentState",version:"17.0.0",migrationUrl:"https://handsontable.com/docs/javascript-data-grid/changelog-17/"},{name:"correctFormat",version:"18.0.0",migrationUrl:"https://handsontable.com/docs/javascript-data-grid/migration-from-17.1-to-18.0/"}],be=new Set(["fixedRowsTop","fixedRowsBottom","fixedColumnsStart","fixedColumnsLeft","fixedColumnsEnd"]),bt="htLineClamp",bi=Object.freeze({mode:"none"}),bo=Object.freeze({mode:"ellipsis"}),br=new Map;function bn(e){let t=e.textEllipsis;if("number"==typeof t){if(!Number.isInteger(t)||t<1)return bi;if(1===t||!1===e.wordWrap)return bo;let i=br.get(t);return void 0===i&&(i=Object.freeze({mode:"clamp",lines:t}),br.set(t,i)),i}return t?bo:bi}function bs(e,t,i,o,r,n,s){let l=s.ariaTags,a=[],h=[],d=[],u=[];s._isBaseRendererCalled=!0,s.className&&iG(t,s.className),s.readOnly?(!1!==s.readOnlyStyling&&a.push(s.readOnlyCellClassName),l&&u.push(j())):l&&d.push(j()[0]),!1===s.valid&&s.invalidCellClassName?(a.push(s.invalidCellClassName),l&&u.push(q())):(h.push(s.invalidCellClassName),l&&d.push(q()[0])),!1===s.wordWrap&&s.noWordWrapClassName&&a.push("htNoWrap",s.noWordWrapClassName),ej(n)&&s.placeholder&&a.push(s.placeholderCellClassName),"none"!==bn(s).mode&&a.push("htTextEllipsis"),ij(t,h),iG(t,a),iK(t,d),iq(t,u)}function bl(e,t,i){e.addEventListener(t,i,!1)}function ba(e,t,i){e.removeEventListener(t,i,!1)}function bh(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function bd(e,t={}){let i,o={minHeight:200,maxHeight:300,minWidth:100,maxWidth:300,textContent:e=>e.value,...t},r=e.body,n=e.createTextNode(""),s=e.createElement("span");function l(){n.textContent=o.textContent(i),s.style.position="absolute",s.style.fontSize=bh(i).fontSize,s.style.fontFamily=bh(i).fontFamily,s.style.whiteSpace="pre",r.appendChild(s);let e=Number.parseInt(bh(i)?.paddingInlineStart||"0",10),t=Number.parseInt(bh(i)?.paddingInlineEnd||"0",10),l=s.clientWidth+e+t+1;r.removeChild(s);let a=i.style;a.height=`${o.minHeight}px`,o.minWidth>l?a.width=`${o.minWidth}px`:l>o.maxWidth?a.width=`${o.maxWidth}px`:a.width=`${l}px`;let h=i.scrollHeight?i.scrollHeight-1:0;o.minHeight>h?a.height=`${o.minHeight}px`:o.maxHeight<h?(a.height=`${o.maxHeight}px`,a.overflowY="visible"):a.height=`${h}px`}function a(){e.defaultView.setTimeout(l,0)}function h(e,t){if("inherit"===e)return t;let i=Number.parseInt(String(e),10);if(!isNaN(i))return i}return{init:function(e,t,r=!1){i=e;if(t&&t.minHeight){let e=h(t.minHeight,i.clientHeight);void 0!==e&&(o.minHeight=e)}if(t&&t.maxHeight){let e=h(t.maxHeight,i.clientHeight);void 0!==e&&(o.maxHeight=e)}if(t&&t.minWidth){let e=h(t.minWidth,i.clientWidth);void 0!==e&&(o.minWidth=e)}if(t&&t.maxWidth){let e=h(t.maxWidth,i.clientWidth);void 0!==e&&(o.maxWidth=e)}s.firstChild||(s.className="autoResize",s.style.display="inline-block",s.appendChild(n)),"TEXTAREA"===i.nodeName&&(i.style.resize="none",i.style.height=`${o.minHeight}px`,i.style.minWidth=`${o.minWidth}px`,i.style.maxWidth=`${o.maxWidth}px`,i.style.overflowY="hidden"),r&&(bl(i,"input",l),bl(i,"keydown",a)),l()},resize:l,unObserve(){ba(i,"input",l),ba(i,"keydown",a)}}}function bu(e,t){let i=oE(t),o=t.value.split("\n"),r=i,n=0;for(let t=0;t<o.length;t++){let s=o[t];0!==t&&(n+=o[t-1].length+1);let l=n+s.length;if("home"===e?r=n:"end"===e&&(r=l),i<=l)break}oT(t,r,r)}bs.RENDERER_TYPE="base";let bc="ht_editor_hidden",bg="textEditor";class bp extends r0{static get EDITOR_TYPE(){return"text"}eventManager=new r2(this);autoResize=bd(this.hot.rootDocument);#dr=!1;#dn=null;#ds=()=>{let{maxLength:e}=this.cellProperties;return this.capsLength&&sA(e)?e:null};#dl=e=>nm(this.cellProperties.trimWhitespace?e.trim():e);#da=e=>{let{isComposing:t=!1}=e??{};if(t||null===this.#ds())return;let{value:i,selectionStart:o,selectionEnd:r}=this.TEXTAREA,n=o??i.length;this.#dn={length:this.#dl(i),selectedLength:nm(i.slice(n,r??n))}};#dh=e=>{let{isComposing:t=!1,inputType:i=""}=e,o=this.#ds();if(null===o||t)return;let r=this.#dn;if(this.#dn=null,null===r||/^(delete|history|insertFromDrop)/.test(i))return;let{value:n,selectionEnd:s}=this.TEXTAREA,l=this.#dl(n),a=l-o;if(a<=0)return;let h=l-(r.length-r.selectedLength),d=s??n.length,u=this.cellProperties.trimWhitespace?Math.min(d,n.trimEnd().length):d,c=nf(n,u,Math.min(a,h));c.value!==n&&(this.TEXTAREA.value=c.value,oT(this.TEXTAREA,c.index,c.index))};constructor(e){super(e),this.eventManager=new r2(this),this.createElements(),this.bindEvents(),this.hot.addHookOnce("afterDestroy",()=>this.destroy())}getValue(){return this.TEXTAREA.value}setValue(e){this.TEXTAREA.value=e$(e)}get capsLength(){return!0}open(e){this._opened=!0,this.#dr=!1,this.#dn=null,this.refreshDimensions(),this.showEditableElement(),this.hot.getShortcutManager().setActiveContextName("editor"),this.registerShortcuts()}close(){this._opened=!1,this.#dr=!1,this.#dn=null,this.autoResize.unObserve(),iI(oZ(this.hot.rootDocument),this.hot.rootElement)&&this.hot.listen(),this.hideEditableElement(),this.unregisterShortcuts()}prepare(e,t,i,o,r,n){let s=this.state;if(super.prepare(e,t,i,o,r,n),!n.readOnly){this.refreshDimensions(!0);let{allowInvalid:e}=n;e&&!this.isOpened()&&(this.TEXTAREA.value=""),s===rJ.FINISHED||this.isOpened()||this.hideEditableElement()}}beginEditing(e,t){this.state===rJ.VIRGIN&&(this.TEXTAREA.value="",super.beginEditing(e,t))}focus(){this.TEXTAREA.select(),oT(this.TEXTAREA,this.TEXTAREA.value.length,this.TEXTAREA.value.length)}createElements(e="textarea"){let{rootDocument:t}=this.hot;this.TEXTAREA=t.createElement(e),iq(this.TEXTAREA,[["data-hot-input",""],v(-1)]),iG(this.TEXTAREA,"handsontableInput"),this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width="0",this.textareaStyle.height="0",this.textareaStyle.overflowY="visible",this.TEXTAREA_PARENT=t.createElement("DIV"),iG(this.TEXTAREA_PARENT,"handsontableInputHolder"),iU(this.TEXTAREA_PARENT,this.layerClass)&&ij(this.TEXTAREA_PARENT,this.layerClass),iG(this.TEXTAREA_PARENT,bc),this.textareaParentStyle=this.TEXTAREA_PARENT.style,this.TEXTAREA_PARENT.appendChild(this.TEXTAREA),this.hot.rootElement.appendChild(this.TEXTAREA_PARENT)}hideEditableElement(){t6()&&(this.textareaStyle.textIndent="-99999px"),this.textareaStyle.overflowY="visible",this.textareaParentStyle.opacity="0",this.textareaParentStyle.height="1px",ij(this.TEXTAREA_PARENT,this.layerClass),iG(this.TEXTAREA_PARENT,bc)}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="";let e=this.TEXTAREA_PARENT.childNodes,t=!1;nF(e.length-1,i=>{if(iU(e[i],"handsontableEditor"))return t=!0,!1}),iU(this.TEXTAREA_PARENT,bc)&&ij(this.TEXTAREA_PARENT,bc),t?this.layerClass="ht_editor_visible":this.layerClass=this.getEditedCellsLayerClass(),iG(this.TEXTAREA_PARENT,this.layerClass)}refreshValue(){let e=this.hot.toPhysicalRow(this.row),t=this.hot.getSourceDataAtCell(e,this.col);this.originalValue=t,this.setValue(t),this.resetValueBeforeEdit(),this.refreshDimensions()}hideForScroll(){return this.close(),!1}showAfterScroll(){}refreshDimensions(e=!1){if(this.state!==rJ.EDITING&&!e)return;if(this.TD=this.getEditedCell(),!this.TD){e||(this.#dr=this.hideForScroll());return}let t=this.getEditedCellRect();if(!t)return;let{top:i,start:o,width:r,maxWidth:n,height:s,maxHeight:l}=t;this.textareaParentStyle.top=`${i}px`,this.textareaParentStyle[this.hot.isRtl()?"right":"left"]=`${o}px`,this.showEditableElement();let a=this.hot.rootWindow.getComputedStyle(this.TD);this.TEXTAREA.style.fontSize=a.fontSize,this.TEXTAREA.style.fontFamily=a.fontFamily,this.TEXTAREA.style.backgroundColor=this.TD.style.backgroundColor,this.autoResize.init(this.TEXTAREA,{minWidth:Math.min(r,n),minHeight:Math.min(s,l),maxWidth:n,maxHeight:l},!0),!e&&this.#dr&&(this.#dr=!1,this._opened=!0,this.showAfterScroll())}bindEvents(){t8()&&this.eventManager.addEventListener(this.TEXTAREA,"focusout",()=>this.finishEditing(!1)),this.eventManager.addEventListener(this.TEXTAREA,"beforeinput",this.#da),this.eventManager.addEventListener(this.TEXTAREA,"compositionstart",this.#da),this.eventManager.addEventListener(this.TEXTAREA,"input",this.#dh),this.eventManager.addEventListener(this.TEXTAREA,"compositionend",this.#dh),this.addHook("afterScrollHorizontally",()=>this.refreshDimensions()),this.addHook("afterScrollVertically",()=>this.refreshDimensions()),this.addHook("afterColumnResize",()=>{this.refreshDimensions(),this.state===rJ.EDITING&&this.focus()}),this.addHook("afterRowResize",()=>{this.refreshDimensions(),this.state===rJ.EDITING&&this.focus()})}destroy(){this.eventManager.destroy(),this.clearHooks()}registerShortcuts(){let e=this.hot.getShortcutManager().getContext("editor"),t=()=>{this.#da(),this.hot.rootDocument.execCommand("insertText",!1,"\n")},i=()=>rK(this.hot,this.getValue(),this.row,this.col);e.addShortcuts([{keys:[["Control","Enter"]],callback:()=>(t(),!1),runOnlyIf:e=>!i()&&!e?.altKey},{keys:[["Meta","Enter"]],callback:()=>(t(),!1),runOnlyIf:()=>!i()},{keys:[["Alt","Enter"]],callback:()=>(t(),!1)},{keys:[["Home"]],callback:(e,t)=>{bu(t?.[0]??"",this.TEXTAREA)}},{keys:[["End"]],callback:(e,t)=>{bu(t?.[0]??"",this.TEXTAREA)}}],{runOnlyIf:()=>eU(this.hot.getSelected()),group:bg})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(bg)}}function bm(e){for(let t=e.firstChild;t;t=t.nextSibling)if(t.nodeType===Node.ELEMENT_NODE&&oG(t)){if(iU(t,bt))return t;let e="a"===t.localName&&iU(t,m_)?function(e){for(let t=e.firstChild;t;t=t.nextSibling)if(t.nodeType===Node.ELEMENT_NODE&&oG(t)&&iU(t,bt))return t;return null}(t):null;if(e)return e}return null}function bf(e,t,i,o,r,n,s){let l=n;ej(l)&&s.placeholder&&(l=s.placeholder);let a=e$(l),h=a;s.trimWhitespace&&(h=a.trim());let d=bn(s);"clamp"===d.mode?function(e,t,i){let o=bm(e);if(o){let e=o.parentNode;for(;o.previousSibling;)e.removeChild(o.previousSibling);for(;o.nextSibling;)e.removeChild(o.nextSibling)}else iX(e),iG(o=e.ownerDocument.createElement("div"),bt),e.appendChild(o);iG(e,"htTextLineClamp"),o.style.setProperty("--ht-text-line-clamp",String(i)),i2(o,t)}(t,h,d.lines):(bm(t)&&iX(t),i2(t,h))}bf.RENDERER_TYPE="text";let bw={CELL_TYPE:"text",editor:bp,renderer:bf},bb=function(e,t,i=!1){var o,r,n,s,l,a;let h,d,u,c,g,p,m,f,w,b,C,y,S,v,R,x,E,M,k,I,T=this,A=new r2(T),H=(d=new Map,u=0,function(){let e=u+=1,t=new Set,i=new Map;return{register(e,o,r,n){if(i.set(e,{key:o,cellMeta:r,structureVersion:n}),t.has(o))return;t.add(o);let s=d.get(o);s?s.inflight+=1:d.set(o,{applied:0,inflight:1})},answered(e,t){let o=i.get(e);o&&(o.valid=t)},claim(t,o){for(let r=t.length-1;r>=0;r--){let n=i.get(t[r]),s=void 0===n?void 0:d.get(n.key);if(!n||!s)continue;let l=s.applied>e,a=l?s.valid:n.valid;l&&t.splice(r,1),"boolean"==typeof a&&o(n.cellMeta,a,n.structureVersion)}},settle(t){t.forEach(t=>{let o=i.get(t),r=void 0===o?void 0:d.get(o.key);o&&r&&r.applied<e&&(r.applied=e,r.valid=o.valid??r.valid)})},release(){t.forEach(e=>{let t=d.get(e);t&&(t.inflight-=1,t.inflight<=0&&d.delete(e))}),t.clear()}}}),O=wJ(()=>T.rowIndexMapper),D={tracker:(c=wJ(()=>T.columnIndexMapper),g=new WeakMap,{track(e){let t=c.track(e),i=g.get(t);return void 0===i&&(i={id:t.id,record:t,get physicalColumn(){return t.physicalRow}},g.set(t,i)),i},release(e){c.release(e.record)},get size(){return c.size}}),toTrackedPhysicalColumn:e=>e8(e),toProp:e=>e},P=(o=()=>T.rowIndexMapper,r=e=>T.toVisualRow(e),n={getIndexMapper:()=>T.columnIndexMapper,toVisualColumn:e=>T.toVisualColumn(e),toProp:e=>e},p=new Set,m=new Set,f=new Map,w=null,b=null,C=0,y=()=>{p.forEach(({record:e,meta:t})=>{let{physicalRow:i}=e;if(null===i){t.visualRow=null;return}t.row=i,t.visualRow=r(i)})},S=()=>{p.forEach(({column:e,meta:t})=>{if(void 0===e||void 0===n)return;let{physicalColumn:i}=e;if(null===i){t.col=null,t.visualCol=null,t.prop=null;return}t.col=i,t.visualCol=n.toVisualColumn(i),t.prop=n.toProp(i)})},v=()=>{p.size>0&&null===w?(w=o()).addLocalHook("cacheUpdated",y):0===p.size&&null!==w&&(w.removeLocalHook("cacheUpdated",y),w=null),void 0!==n&&null===b&&C>0?(b=n.getIndexMapper()).addLocalHook("cacheUpdated",S):null!==b&&0===C&&(b.removeLocalHook("cacheUpdated",S),b=null),0===p.size&&m.clear()},{add(e,t,i){let o={record:e,meta:t,column:i};return m.delete(t),p.add(o),f.set(t,(f.get(t)??0)+1),C+=+(void 0!==i),v(),()=>{if(p.delete(o)){C-=void 0!==i;let e=(f.get(t)??1)-1;e>0?f.set(t,e):(f.delete(t),null===t.visualRow&&m.add(t))}v()}},findUnplaced(e,t){let i,o=null,r=!1;for(let i of p){let{record:n,meta:s}=i;if(null===s.visualRow&&null!==n.physicalRow&&s.prop===e){if(s===t)return i;r=r||null!==o&&o.record!==n,o=o??i}}return r||(i=!1,m.forEach(t=>{null!==t.visualRow?m.delete(t):t.prop===e&&(i=!0)}),i)?null:o},followRelocated(e,t){let i=[];return p.forEach(o=>{let{record:r,meta:n}=o;e.has(r)&&null!==r.physicalRow&&!t(n,r.physicalRow)&&(p.delete(o),i.push(o))}),y(),v(),i},get size(){return p.size}}),_=new WeakMap,F={countPhysicalRows:()=>T.rowIndexMapper.getNumberOfIndexes(),countVisualRows:()=>T.countRows(),readRowObject:e=>x.modifyRowData(e),getStoredMeta:(e,t)=>eA.getCellMetaIfExists(e,t),readKeyedRowId:e=>tK.getKeyedRowIdAtPhysicalRow(e),findPhysicalRowById:e=>{try{return tK.getPhysicalRowById(e)}catch{return null}}},N=e=>{let t=T.rowIndexMapper,i=()=>t.getNumberOfIndexes()-t.getNotTrimmedIndexesLength(),o=i(),r=(t,i)=>e.rowsInserted(t,i),n=(t,i)=>e.rowsRemoved(t,i),s=()=>{let t=o;(o=i())!==t&&e.trimmedRowsChanged(o-t)};return T.addHook("afterCreateRow",r),T.addHook("afterRemoveRow",n),t.addLocalHook("cacheUpdated",s),()=>{t.removeLocalHook("cacheUpdated",s),T&&(T.removeHook("afterCreateRow",r),T.removeHook("afterRemoveRow",n))}},L=!0,B=null,V=[],z=0,W=!1,$=!1,U=null,G=null,j=!1,q=!1,K=null,Y=[],X=e=>Y.reduce((e,t)=>t(e),e),Z=new w$,Q=[],J=[],ee=new Map,ei=new WeakMap,eo=0,es=[],el=!1,ea=!1,eh=null,ed=new wW,eu=0,ec=!1,ep=0,em=!1,ew=null,eC=null,ey=new Map,eS=(e,t=[])=>{if(!wX(e))return ep;if(null!==ew)return ew;let i=ep;return t.forEach(([e,t])=>{let o=Number.isInteger(e)?tc(e):null,r=null===o?void 0:O.find(o),n=void 0===r?void 0:ey.get(t)?.get(r)?.[0];void 0!==n&&n<i&&(i=n)}),i},ev=null,eR=null,ex=null,eE=null,eM={...t.initialState,...t};i===sC&&sb.set(this,!0),this.rootContainer=e,this.rootWrapperElement=null,this.rootGridElement=null,this.rootGridContentElement=null,this.rootSlotTopElement=null,this.rootSlotBottomElement=null,this.rootOverlaysElement=null,this.rootPortalElement=null,this.rootElement=sy(this)?e.ownerDocument.createElement("div"):e,this.rootDocument=e.ownerDocument,this.rootWindow=this.rootDocument.defaultView,sy(this)&&(this.rootWrapperElement=this.rootDocument.createElement("div"),this.rootSlotTopElement=this.rootDocument.createElement("div"),this.rootGridElement=this.rootDocument.createElement("div"),this.rootGridContentElement=this.rootDocument.createElement("div"),this.rootOverlaysElement=this.rootDocument.createElement("div"),this.rootSlotBottomElement=this.rootDocument.createElement("div"),this.rootPortalElement=this.rootDocument.createElement("div"),iG(this.rootElement,["ht-wrapper","handsontable"]),iG(this.rootWrapperElement,"ht-root-wrapper"),oY(this.rootContainer.getRootNode())&&iG(this.rootWrapperElement,"ht-shadow-dom"),iG(this.rootSlotTopElement,"ht-slot-top"),iG(this.rootGridElement,"ht-grid"),iG(this.rootGridContentElement,"ht-grid-content"),iG(this.rootOverlaysElement,"ht-overlay"),iG(this.rootSlotBottomElement,"ht-slot-bottom"),this.rootGridContentElement.appendChild(this.rootElement),this.rootGridElement.appendChild(this.rootGridContentElement),this.rootWrapperElement.appendChild(this.rootSlotTopElement),this.rootWrapperElement.appendChild(this.rootGridElement),this.rootWrapperElement.appendChild(this.rootSlotBottomElement),this.rootWrapperElement.appendChild(this.rootOverlaysElement),this.rootContainer.appendChild(this.rootWrapperElement),this.rootWrapperElement.__hotInstance=this,iG(this.rootPortalElement,"ht-portal"),this.rootDocument.body.appendChild(this.rootPortalElement)),this.isDestroyed=!1,this.renderSuspendedCounter=0,this.executionSuspendedCounter=0;let ek=eM?.layoutDirection??"inherit",eI=["rtl","ltr"].includes(ek)?ek:this.rootWindow.getComputedStyle(this.rootElement).direction;this.rootElement.setAttribute("dir",eI),this.rootWrapperElement?.setAttribute("dir",eI),this.isRtl=function(){return"rtl"===eI},this.isLtr=function(){return!T.isRtl()},this.getDirectionFactor=function(){return T.isLtr()?1:-1},this.stylesHandler=new mZ({hot:T,rootElement:T.rootElement,rootDocument:T.rootDocument,onThemeChange:e=>{sy(this)&&(ij(this.rootWrapperElement,/ht-theme-.*/g),ij(this.rootPortalElement,/ht-theme-.*/g),e&&(iG(this.rootWrapperElement,e),iG(this.rootPortalElement,e),getComputedStyle(this.rootWrapperElement).getPropertyValue("--ht-line-height")||ir(`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.`)),this.view?._wt?.selectionManager?.refreshAllBorderHandleStyles())},injectCoreCss:sy(this)?t?.injectCoreCss!==!1:t?.injectCoreCss===!0}),this.themeManager=null,g_(h=dF(a=eM.language))?gV(h):(h=gH,dN(a)),eM.language=h;let eT=Object.fromEntries(Object.entries(eM).filter(([e,t])=>("cell"!==e||!!Array.isArray(t))&&!(rI.getSingleton().isRegistered(e)||rI.getSingleton().isDeprecated(e)))),eA=new pP(T,eT,[p_,pD]);this.renderChangeTracker=new o2;let eH=eA.getTableMeta(),eO=eA.getGlobalMeta(),eD=nK();this.container=this.rootDocument.createElement("div"),this.rootElement.insertBefore(this.container,this.rootElement.firstChild),this.guid=`ht_${r7()}`,w8.set(this.guid,this),this.columnIndexMapper=new d_,this.rowIndexMapper=new d_,this.columnIndexMapper.addLocalHook("indexesSequenceChange",e=>{T.runHooks("afterColumnSequenceChange",e)}),this.rowIndexMapper.addLocalHook("indexesSequenceChange",e=>{T.runHooks("afterRowSequenceChange",e)}),A.addEventListener(this.rootDocument.documentElement,"compositionstart",e=>{T.runHooks("beforeCompositionStart",e)}),x=new pN(T);let eP=rH(this.guid);eP.register("cellRangeMapper",new pJ({rowIndexMapper:this.rowIndexMapper,columnIndexMapper:this.columnIndexMapper})),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid);let e_=new pr(eH,{rowIndexMapper:T.rowIndexMapper,columnIndexMapper:T.columnIndexMapper,countCols:()=>T.countCols(),countRows:()=>T.countRows(),propToCol:e=>R.propToCol(e)??e,isEditorOpened:()=>{let e=T.getActiveEditor();return!!e&&e.isOpened()},isPluginEnabled:e=>T.getPlugin(e)?.enabled===!0,isPluginRegistered:e=>void 0!==T.getPlugin(e),countRenderableColumns:()=>T.view.countRenderableColumns(),countRenderableRows:()=>T.view.countRenderableRows(),countRowHeaders:()=>T.countRowHeaders(),countColHeaders:()=>T.countColHeaders(),countRenderableRowsInRange:(e,t)=>T.view.countRenderableRowsInRange(e,t),countRenderableColumnsInRange:(e,t)=>T.view.countRenderableColumnsInRange(e,t),getShortcutManager:()=>T.getShortcutManager(),createCellCoords:(e,t)=>T._createCellCoords(e,t),createCellRange:(e,t,i)=>T._createCellRange(e,t,i),visualToRenderableCoords:e=>{let{row:t,col:i}=e;return T._createCellCoords(t>=0?T.rowIndexMapper.getRenderableFromVisualIndex(t):t,i>=0?T.columnIndexMapper.getRenderableFromVisualIndex(i):i)},renderableToVisualCoords:e=>{let{row:t,col:i}=e;return T._createCellCoords(t>=0?T.rowIndexMapper.getVisualFromRenderableIndex(t):t,i>=0?T.columnIndexMapper.getVisualFromRenderableIndex(i):i)},findFirstNonHiddenRenderableRow:(e,t)=>{let i=t>e?1:-1,o=Math.min(e,t),r=Math.max(e,t),n=T.rowIndexMapper.getNearestNotHiddenIndex(e,i);return null===n||1===i&&n>r||-1===i&&n<o?null:n>=0?T.rowIndexMapper.getRenderableFromVisualIndex(n):n},findFirstNonHiddenRenderableColumn:(e,t)=>{let i=t>e?1:-1,o=Math.min(e,t),r=Math.max(e,t),n=T.columnIndexMapper.getNearestNotHiddenIndex(e,i);return null===n||1===i&&n>r||-1===i&&n<o?null:n>=0?T.columnIndexMapper.getRenderableFromVisualIndex(n):n},isDisabledCellSelection:(e,t)=>e<0||t<0?T.getSettings().disableVisualSelection:T.getCellMeta(e,t).disableVisualSelection});this.selection=e_;let eF=(e,t)=>{this.selection.capturePhysicalSelection(t,(({indexesSequenceChanged:e,trimmedIndexesChanged:t})=>t&&!e)(e),e.trimmedIndexesChanged)},eN=(e,t)=>{let{hiddenIndexesChanged:i,trimmedIndexesChanged:o}=e;this.forceFullRender=!0,(e.indexesSequenceChanged||o||i)&&("row"===t?this.view?.invalidateRowHeightCache():this.view?.invalidateColumnWidthCache());let r=M?.isEditorOpened()===!0;return(({indexesSequenceChanged:e,trimmedIndexesChanged:t})=>t&&!e)(e)&&this.selection.restorePhysicalSelection(t),i&&(this.selection.commit(),o||this.selection.recaptureHighlightRecord()),r},eL=this.rowIndexMapper.getNumberOfIndexes(),eB=this.columnIndexMapper.getNumberOfIndexes(),eV=(e,{trimmedIndexesChanged:t,indexesSequenceChanged:i},o,r)=>{if(this.selection.isSelected()){if(e)return void this.selection.recaptureHighlightRecord();if(i&&this.selection.recaptureHighlightRecord(),t){if(M?.isEditorOpened()){this.selection.recaptureHighlightRecord(),i&&this.selection.fitGridTrackingExtents(r);return}this.selection.deselectIfHighlightStranded({unresolvableOnly:o})||(this.selection.recaptureHighlightRecord(),this.selection.fitGridTrackingExtents(r))}}};function ez(e){return e<0?e:T.colToProp(e)}this.columnIndexMapper.addLocalHook("beforeCacheUpdate",e=>eF(e,"column")),this.rowIndexMapper.addLocalHook("beforeCacheUpdate",e=>eF(e,"row")),this.columnIndexMapper.addLocalHook("afterCacheUpdate",()=>this.selection.discardPhysicalSelectionSnapshot("column")),this.rowIndexMapper.addLocalHook("afterCacheUpdate",()=>this.selection.discardPhysicalSelectionSnapshot("row")),this.columnIndexMapper.addLocalHook("cacheUpdated",e=>{this.renderChangeTracker.markAllChanged();let t=eN(e,"column"),i=this.columnIndexMapper.getNumberOfIndexes(),o=i!==eB;eB=i,o&&this.selection.markStructuralIndexChange();try{this.runHooks("afterColumnSequenceCacheUpdate",e)}finally{this.selection.notifyDeferredDeselect("column")}eV(o,e,t,"column")}),this.rowIndexMapper.addLocalHook("cacheUpdated",e=>{this.renderChangeTracker.markAllChanged();let t=eN(e,"row"),i=this.rowIndexMapper.getNumberOfIndexes(),o=i!==eL;eL=i,o&&this.selection.markStructuralIndexChange();try{this.runHooks("afterRowSequenceCacheUpdate",e)}finally{this.selection.notifyDeferredDeselect("row")}eV(o,e,t,"row")}),this.selection.addLocalHook("afterSetRangeEnd",(e,t)=>{let i=tP(!1),o=this.selection.getSelectedRange(),{from:r,to:n}=o.current(),s=o.size()-1;this.runHooks("afterSelection",r.row,r.col,n.row,n.col,i,s),this.runHooks("afterSelectionByProp",r.row,ez(r.col),n.row,ez(n.col),i,s);let l=e_.getSelectionSource();t&&!["loadData","updateData","deselect","shift"].includes(l)&&(!i.isTouched()||i.isTouched()&&!i.value)&&I.scrollTo(e);let a=e_.isSelectedByRowHeader(),h=e_.isSelectedByColumnHeader();if(a&&h?iG(this.rootElement,["ht__selection--rows","ht__selection--columns"]):a?(ij(this.rootElement,"ht__selection--columns"),iG(this.rootElement,"ht__selection--rows")):h?(ij(this.rootElement,"ht__selection--rows"),iG(this.rootElement,"ht__selection--columns")):ij(this.rootElement,["ht__selection--rows","ht__selection--columns"]),!["shift","refresh","loadData","updateData","deselect"].includes(l)&&(M.closeEditor(),!T))return;let d="shift"===l&&!t;if(!["refresh","loadData","updateData","deselect"].includes(l)&&!d){if(T.view.render(),!T)return;M.prepareEditor()}}),this.selection.addLocalHook("beforeSetFocus",e=>{this.runHooks("beforeSelectionFocusSet",e.row,e.col)}),this.selection.addLocalHook("afterSetFocus",e=>{let t=tP(!1);this.runHooks("afterSelectionFocusSet",e.row,e.col,t),(!t.isTouched()||t.isTouched()&&!t.value)&&I.scrollTo(e),M.closeEditor(),!T||(T.view.render(),T&&M.prepareEditor())}),this.selection.addLocalHook("afterSelectionFinished",e=>{if(!T)return;let t=e.length-1,{from:i,to:o}=e[t];this.runHooks("afterSelectionEnd",i.row,i.col,o.row,o.col,t),this.runHooks("afterSelectionEndByProp",i.row,ez(i.col),o.row,ez(o.col),t),["refresh","deselect"].includes(e_.getSelectionSource())&&(T.view.render(),M.prepareEditor())}),this.selection.addLocalHook("afterIsMultipleSelection",e=>{let t=this.runHooks("afterIsMultipleSelection",e.value);e.value&&(e.value=t)}),this.selection.addLocalHook("afterDeselect",()=>{M.closeEditor(),!T||(T.view.render(),T&&(ij(this.rootElement,["ht__selection--rows","ht__selection--columns"]),this.runHooks("afterDeselect")))}),this.selection.addLocalHook("afterSetHandlesHoveredLayer",()=>{T.view.render()}),this.selection.addLocalHook("beforeHighlightSet",()=>T.runHooks("beforeSelectionHighlightSet")).addLocalHook("beforeSetRangeStart",(...e)=>T.runHooks("beforeSetRangeStart",...e)).addLocalHook("beforeSetRangeStartOnly",(...e)=>T.runHooks("beforeSetRangeStartOnly",...e)).addLocalHook("beforeSetRangeEnd",(...e)=>T.runHooks("beforeSetRangeEnd",...e)).addLocalHook("beforeSelectColumns",(...e)=>T.runHooks("beforeSelectColumns",...e)).addLocalHook("afterSelectColumns",(...e)=>T.runHooks("afterSelectColumns",...e)).addLocalHook("beforeSelectRows",(...e)=>T.runHooks("beforeSelectRows",...e)).addLocalHook("afterSelectRows",(...e)=>T.runHooks("afterSelectRows",...e)).addLocalHook("beforeSelectAll",(...e)=>T.runHooks("beforeSelectAll",...e)).addLocalHook("afterSelectAll",(...e)=>T.runHooks("afterSelectAll",...e)).addLocalHook("beforeModifyTransformStart",(...e)=>T.runHooks("modifyTransformStart",...e)).addLocalHook("afterModifyTransformStart",(...e)=>T.runHooks("afterModifyTransformStart",...e)).addLocalHook("beforeModifyTransformFocus",(...e)=>T.runHooks("modifyTransformFocus",...e)).addLocalHook("afterModifyTransformFocus",(...e)=>T.runHooks("afterModifyTransformFocus",...e)).addLocalHook("beforeModifyTransformEnd",(...e)=>T.runHooks("modifyTransformEnd",...e)).addLocalHook("afterModifyTransformEnd",(...e)=>T.runHooks("afterModifyTransformEnd",...e)).addLocalHook("beforeRowWrap",(...e)=>T.runHooks("beforeRowWrap",...e)).addLocalHook("beforeColumnWrap",(...e)=>T.runHooks("beforeColumnWrap",...e)).addLocalHook("insertRowRequire",e=>T.alter("insert_row_above",e,1,"auto")).addLocalHook("insertColRequire",e=>T.alter("insert_col_start",e,1,"auto"));let eW=({axis:e,getCount:t,getNotTrimmedCount:i,isEmpty:o,isRemovable:r,previousMinimum:n,previousSpare:s,minimum:l,spare:a})=>{if(!(p0(n)>p0(l)||p0(s)>p0(a)))return;let h=t();if(h<i())return;let d=function({count:e,trailingEmpty:t,minimum:i,spare:o}){let r=Math.max(p0(i),e-t+p0(o));return Math.max(0,e-r)}({count:h,trailingEmpty:p1(h,h,o),minimum:l,spare:a}),u=p1(h,d,r);u>0&&((e,t,i)=>{let o=e_.isSelected()?T.getSelectedRangeActive():void 0,r="row"===e?o?.highlight.row:o?.highlight.col,n="row"===e?R.removeRow(t,i,"auto"):R.removeCol(t,i,"auto");if(n&&"number"==typeof r&&r>=t&&M.closeEditor(!0),n&&e_.isSelected()&&e_.getSelectedRange().ranges.some(i=>{let o=i.getOuterBottomEndCorner();return(("row"===e?o.row:o.col)??-1)>=t})){e_.markSource("shift");try{e_.refresh()}finally{e_.markEndSource()}}})(e,h-u,u)};function eK(e,t){let i="className"===e?T.rootElement:T.table;if(L)void 0!==t&&iG(i,t);else{let o=[],r=[];if(eO[e]){let t=eO[e];o=Array.isArray(t)?t:ef(String(t))}t&&(r=Array.isArray(t)?t:ef(t));let n=eg(o,r),s=eg(r,o);n.length&&ij(i,n),s.length&&iG(i,s)}eO[e]=t}function eY(e,t){if(o3(t)||Array.isArray(t))rI.getSingleton()._addFromSettings(e,t,T);else{if(null!==t)return;rI.getSingleton()._removeFromSettings(e,T)}eH[e]=t}function eX(e){let t;z+=1;try{t=e()}finally{z-=1}return eZ(),t}function eZ(e=0){if(!W||j||z>e||null!==B||!T.view)return;let t=eD.getItems().map(([,e])=>e),i=()=>t.reduce((e,t)=>t.runOwedReadyStep()||e,!1);z+=1;try{ed.suppress(()=>{let e=0;for(;e<t.length&&i();)e+=1})}finally{z-=1}(W=t.some(e=>e.isReadyStepOwed()))&&ir("A plugin ready step (`onGridReady()`) kept enabling or updating plugins. The steps still owed run when the next settings update, data load, or plugin call ends.")}function eQ(){if(T&&!T.isDestroyed&&T.view){if(!T.view.isVisible())return void eJ();if(eE?.disconnect(),eE=null,T.runHooks("afterFontsLoad"),T&&!T.isDestroyed&&T.view){if(!T.view.isVisible())return void eJ();T.view.invalidateIndexSizesCache(),T.renderChangeTracker.markAllChanged(),T.render()}}}function eJ(){null===eE&&(eE=oz(T.view._wt.wtTable.TABLE,()=>{eE=null,eQ()}))}function e0(e){let t={};return t_(e,"colorScheme")&&(t.colorScheme=e.colorScheme),t_(e,"density")&&(t.density=e.density),t}function e1(){return{colorScheme:eH.colorScheme,density:eH.density}}function e2(e,t){let i;(T.themeManager?.destroy(),void 0===e)?(i=wc("main")?wb("main"):wv(wx),i=wb("main")):i="function"!=typeof e.getThemeConfig?wv(e):e,T.themeManager=function({hot:e,themeObject:t,overrides:i}){return new ws({hot:e,themeObject:t,overrides:i})}({hot:T,themeObject:i,overrides:t})}function e3(){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(e){},checkIfQueueIsEmpty(){0===this.validatorsInQueue&&!1===e&&(e=!0,this.onQueueEmpty(this.valid))}}}function e6(e,t){return!!t?.isOpened()&&dh(e,t.row,t.prop)}function e4(e,t,i=!1){let o=function(e){let t=T.toPhysicalRow(e);if(null!==t)return t;let i=T.rowIndexMapper.getNotTrimmedIndexesLength();return e>=i?T.rowIndexMapper.getNumberOfIndexes()+e-i:e}(e),r=T.toPhysicalColumn(t)??t,n={visualRow:e,visualColumn:t};return i?eA.getCellMeta(o,r,n):eA.getCellMetaTransient(o,r,n)}function e5(e,t,i){let o=tr(e,_.get(e)??null);if(o===e){if(e.valid===t)return;e.valid=t}to(o,t,i)}function e8(e){if(!Number.isInteger(e)||"array"!==T.dataType||eH.columns&&0!==eH.columns.length)return null;let t=R.propToCol(e);return"number"!=typeof t?null:T.toPhysicalColumn(t)===e?e:null}function e7(e,t,i,o,r,n){let s=e.findIndex(e=>{if(t.getProp(e)!==i)return!1;let n=t.getRecord(e);return void 0===n?null!==r&&(t.getPastEndRow(e)??e[0])===r:null!==n.physicalRow&&n.physicalRow===o});-1!==s&&(e[s][3]=n)}function e9(e,t){return null===e&&wX(t)}function te(e,t,i){let o=P.findUnplaced(e,eC),r=o?.record.physicalRow??null;if(null===o||null===r)return;let n=rU(t,o.meta,i);ee.forEach(({records:t},i)=>{e7(i,t,e,r,null,n)})}function tt(e,t,i,o){void 0===o?R.set(e,t,i):R.setAtPhysicalRow(o,t,i,e)}function ti(e,t=!0){e_.suspendShifts(t);let i=!1;try{e(),i=!0}finally{e_.resumeShifts(i)}}function to(e,t,i){if(eA.getStructureVersion()!==i)return;let o=e.row,r=e.col;if(!Number.isInteger(o)||!Number.isInteger(r))return;let n=eA.getCellMetaIfExists(o,r);if(n!==e){if(void 0!==n)n.valid=t,o1(n);else if(!1===t){let i=eA.getCellMeta(o,r,{visualRow:e.visualRow,visualColumn:e.visualCol,skipMetaExtension:!0});i.valid=t,o1(i)}}}function tr(e,t){if(null===t||!_.has(e))return e;let{physicalRow:i}=t;return{...e,row:i??void 0,col:e.col,visualRow:null===i?null:T.toVisualRow(i),visualCol:e.visualCol,hidden:e.hidden}}function tn(e,t,i){return Array.isArray(e)?e:[[e,t,i]]}function ts(e,t,i,o){return(i||"object"!=typeof e||"string"!=typeof t?i:t)||o}function tl(e,t){let i=T.getActiveEditor(),o=!i?.isOpened()||dh(e.filter(e=>null!==e),i.row,i.prop),r=T.runHooks("beforeChange",e,t||"edit");if(!T)return[];let n=e.filter(e=>null!==e);if(!1===r||0===n.length)return o&&T.getActiveEditor()?.cancelChanges(),[];for(let e=n.length-1;e>=0;e--){let i,[o,r,,s]=n[e],l=R.propToCol(r)??r;i=Number.isInteger(l)?e4(o,l):{...Object.getPrototypeOf(eH),...eH},n[e][3]=rU(s,i,t)}return n}E={alter(e,t,i=1,o,r){eX(()=>ti(()=>E.runAlter(e,t,i,o,r)))},runAlter(e,t,i=1,o,r){M.suspendStrandDiscards();try{var n,s;let l=T.runHooks("beforeAlter",e,t,i,o,r);if(!1===l)return;switch(e){case"insert_row_below":case"insert_row_above":let a=T.countSourceRows();if(eH.maxRows===a)return;let h="insert_row_below"===e?"below":"above",d="number"==typeof t?t:"below"===h?a:0,{delta:u,startPhysicalIndex:c}=R.createRow(d,i,{source:o,mode:h});e_.shiftRows(T.toVisualRow(c),u);break;case"insert_col_start":case"insert_col_end":let g="insert_col_end"===e?"end":"start",p="end"===g?T.countSourceCols():0,m="number"==typeof t?t:p,{delta:f,startPhysicalIndex:w}=R.createCol(m,i,{source:o,mode:g});if(f){if(Array.isArray(eH.colHeaders)){let e=[w,0];e.length+=f,Array.prototype.splice.apply(eH.colHeaders,e)}e_.shiftColumns(T.toVisualColumn(w),f)}break;case"remove_row":let b;n=Array.isArray(t)?w5(t):[[t,i]],b=0,en(n,([e,t])=>{if(Number.isInteger(e)){let i=f$(e-b,t,T.countRows());if(null===i)return;t=i.amount}let i=ej(e)?T.countRows()-1:Math.max(e-b,0);Number.isInteger(e)&&(e=Math.max(e-b,0));let r=T.countRows();if(!R.removeRow(e,t,o))return;if(e_.isSelected()){let{row:i}=T.getSelectedRangeActive().highlight;i>=e&&i<=e+t-1&&M.closeEditor(!0)}let n=T.countRows(),s=eH.fixedRowsTop;i>=0&&s>=i+1&&(eH.fixedRowsTop-=Math.min(t,s-i));let l=eH.fixedRowsBottom;if(l){let t=r-n,o=Number.isInteger(e)?i:Math.max(r-t,0),s=Math.min(o+t-1,r-1)-Math.max(o,r-l)+1;s>0&&(eH.fixedRowsBottom-=Math.min(s,l))}if(0===n)e_.deselect();else if("ContextMenu.removeRow"===o){let e=e_.getSelectedRange(),t=e.pop();e.clear().set(t.from).current().setTo(t.to),e_.flushHeldShifts(),e_.refresh()}else e_.shiftRows(e,-t);b+=t});break;case"remove_col":let C;s=Array.isArray(t)?w5(t):[[t,i]],C=0,en(s,([e,t])=>{if(Number.isInteger(e)){let i=f$(e-C,t,T.countCols());if(null===i)return;t=i.amount}let i=ej(e)?T.countCols()-1:Math.max(e-C,0);Number.isInteger(e)&&(e=Math.max(e-C,0));let r=T.countCols(),n=[];if(Array.isArray(eH.colHeaders)){let o=ej(e)?Math.max(r-t,0):i;nF(o,o+t-1,e=>{let t=T.toPhysicalColumn(e);null!==t&&n.push(t)})}if(!R.removeCol(e,t,o))return;if(e_.isSelected()){let{col:i}=T.getSelectedRangeActive().highlight;i>=e&&i<=e+t-1&&M.closeEditor(!0)}let s=T.countCols();if(0===s)e_.deselect();else if("ContextMenu.removeColumn"===o){let e=e_.getSelectedRange(),t=e.pop();e.clear().set(t.from).current().setTo(t.to),e_.flushHeldShifts(),e_.refresh()}else e_.shiftColumns(e,-t);let l=eH.fixedColumnsStart;i>=0&&l>=i+1&&(eH._fixedColumnsStart-=Math.min(t,l-i));let a=eH.fixedColumnsEnd;if(a){let t=r-s,o=Number.isInteger(e)?i:Math.max(r-t,0),n=Math.min(o+t-1,r-1)-Math.max(o,r-a)+1;n>0&&(eH.fixedColumnsEnd-=Math.min(n,a))}if(Array.isArray(eH.colHeaders)){let e=eH.colHeaders;[...n].sort((e,t)=>t-e).forEach(t=>{e.splice(t,1)})}C+=t});break;default:tf(`There is no such action "${e}"`)}r||E.adjustRowsAndCols()}finally{M.resumeStrandDiscards(),T.forceFullRender=!0,T.view.invalidateColumnWidthCache()}eZ(1),T.view.render()},adjustRowsAndCols(){ti(()=>{let e=eH.minRows,t=eH.minSpareRows,i=eH.minCols,o=eH.minSpareCols;if(e){let t=T.countRows();t<e&&R.createRow(t,e-t,{source:"auto",fillsMinimumSize:!0})}if(t){let e=T.countEmptyRows(!0);if(e<t){let i=Math.min(t-e,eH.maxRows-T.countSourceRows());R.createRow(T.countRows(),i,{source:"auto",fillsMinimumSize:!0})}}{let e=0,t=Math.floor(Number(eH.fixedColumnsEnd))>0,r=o>0&&!eH.columns&&"array"===T.dataType&&!t;if(r)for(let t=T.countCols()-1;t>=0&&T.isEmptyCol(t)&&!((e+=1)>=o);t--);let n=T.countCols();if(i&&!eH.columns&&!t&&n<i){let t=i-n;e+=t,R.createCol(n,t,{source:"auto",fillsMinimumSize:!0})}if(r&&e<o){n=T.countCols();let t=Math.min(o-e,eH.maxCols-n);R.createCol(n,t,{source:"auto",fillsMinimumSize:!0})}}},!1)},removeSurplusRowsAndCols(e){eW({axis:"row",getCount:()=>T.countRows(),getNotTrimmedCount:()=>T.rowIndexMapper.getNotTrimmedIndexesLength(),isEmpty:e=>T.isEmptyRow(e),isRemovable:e=>R.isTrailingFillerRow(T.toPhysicalRow(e)),previousMinimum:e.minRows,previousSpare:e.minSpareRows,minimum:eH.minRows,spare:eH.minSpareRows}),eH.columns||"array"!==T.dataType||eW({axis:"column",getCount:()=>T.countCols(),getNotTrimmedCount:()=>T.columnIndexMapper.getNotTrimmedIndexesLength(),isEmpty:e=>T.isEmptyCol(e),isRemovable:e=>R.isTrailingFillerColumn(T.toPhysicalColumn(e)),previousMinimum:e.minCols,previousSpare:e.minSpareCols,minimum:eH.minCols,spare:eH.minSpareCols})},populateFromArray(e,t,i,o,r){let n,s,l,a,h,d=[],u={},c=[],g=e.row,p=e.col;if(0===(s=t.length))return!1;let m=0,f=0;switch(tM(i)&&(m=i.col-p+1,f=i.row-g+1),r){case"shift_down":let w=et(t),b=w.length;if(0===b)return!1;let C=Math.max(b,m),y=T.getData().slice(g),S=et(y).slice(p,p+C);for(l=0;l<C;l+=1)if(l<b){for(n=0,s=w[l].length;n<f-s;n+=1)w[l].push(w[l][n%s]);l<S.length?c.push(w[l].concat(S[l])):c.push(w[l].concat(Array(y.length).fill(null)))}else c.push(w[l%b].concat(S[l]));T.populateFromArray(g,p,et(c));break;case"shift_right":let v=t.length,R=Math.max(v,f),x=T.getData().slice(g).map(e=>e.slice(p));for(n=0;n<R;n+=1)if(n<v){for(l=0,a=t[n].length;l<m-a;l+=1)t[n].push(t[n][l%a]);if(n<x.length)for(let e=0;e<x[n].length;e+=1)t[n].push(x[n][e]);else t[n].push(...Array(x[0].length).fill(null))}else t.push(t[n%s].slice(0,R).concat(x[n]));T.populateFromArray(g,p,t);break;default:u.row=e.row,u.col=e.col;let E=0,M=0,k=!0,I="Autofill.fill"===o||"autofill.fill"===o,A=function(e,i=null){let o=t[e%t.length];return null!==i?o[i%o.length]:o},H=t.length,O=i?i.row-e.row+1:0;for(n=0,s=i?O:Math.max(H,O);n<s&&!(i&&u.row>i.row&&O>H||!eH.allowInsertRow&&u.row>T.countRows()-1)&&!(u.row>=eH.maxRows);n++){let t=n-E,r=I?n:t,c=A(r).length,g=i?i.col-e.col+1:0;if(a=i?g:Math.max(c,g),u.col=e.col,h=e4(u.row,u.col),("CopyPaste.paste"===o||"Autofill.fill"===o||"autofill.fill"===o)&&h.skipRowOnPaste){E+=1,u.row+=1,"CopyPaste.paste"===o&&(s+=1);continue}for(l=0,M=0;l<a&&!(i&&u.col>i.col&&g>c||!eH.allowInsertColumn&&u.col>T.countCols()-1)&&!(u.col>=eH.maxCols);l++){if(h=e4(u.row,u.col),("CopyPaste.paste"===o||"Autofill.fill"===o||"autofill.fill"===o)&&h.skipColumnOnPaste){M+=1,u.col+=1,"CopyPaste.paste"===o&&(a+=1);continue}if(h.readOnly&&"UndoRedo.undo"!==o){u.col+=1;continue}let e=l-M,t=I?l:e,i=!!h.valueSetter,n=A(r,t),s=T.getSourceDataAtCell(u.row,u.col)??null;if(null!==n&&"object"==typeof n)if(Array.isArray(n)&&null===s&&(s=[]),i||"object"==typeof s&&null!==s){if(null!==s){let e=tw(Array.isArray(s)?s:s[0]||s),t=tw(Array.isArray(n)?n:n[0]||n);i||"edit"===o||tx(e,t)||Array.isArray(e)&&Array.isArray(t)?n=tS(n):k=!1}}else k=!1,h.parsePastedValue&&"CopyPaste.paste"===o&&(k=!0),"edit"===o&&(k=!0,n=tS(n));else i||null===s||"object"!=typeof s||(k=!1);k&&d.push([u.row,u.col,n]),k=!0,u.col+=1}u.row+=1}T.setDataAtCell(d,null,null,o||"populateFromArray")}}},this.init=function(){ed.suppress(()=>(function(){if(el)return void(T.view?ir("Handsontable instance has already been initialized. Calling `init()` again is a no-op; use `updateSettings()` to reconfigure a live instance."):ir("Handsontable `init()` was already called but did not finish - the first call threw before the grid was built. Calling `init()` again is a no-op; create a new instance instead."));el=!0;let e=eH.theme,t=eH.themeName,i=mK(T.rootContainer);sy(T)&&!i&&(tM(e)||!e&&!t)&&e2(e,e1()),x.setData(eH.data),eY("beforeInit",eM.beforeInit),K=eM;try{T.runHooks("beforeInit")}finally{K=null}if(t9()&&iG(T.rootElement,"mobile"),T.updateSettings(eM,!0),T.view=new h9(T),M=r6.getInstance(T,eH,e_),I=function(e){let{selection:t}=e,i=!1,o=!1;return{resume(){o=!1},suspend(){o=!0},skipNextScrollCycle(){i=!0},scrollTo(r){let n;if(i||o){i=!1;return}t.isFocusSelectionChanged()?n=t=>{s$(e,t.toObject(),()=>{let t=e.getSelectedRangeActive();if(!t)return null;let{row:i,col:o}=t.highlight;return null!==i&&null!==o?e.getCell(i,o,!0):null})}:t.isSelectedByCorner()?n=()=>{}:t.isSelectedByRowHeader()?n=t=>{let i=sG(e).getComputedRowTarget(t);s$(e,{row:i},()=>{let t=!!e.getSettings().rowHeaders;return e.getCell(i,t?-1:0,!0)})}:t.isSelectedByColumnHeader()?n=t=>{let i=sG(e).getComputedColumnTarget(t);s$(e,{col:i},()=>{let t=!!e.getSettings().colHeaders;return e.getCell(t?-1:0,i,!0)})}:1===t.getSelectedRange().size()&&t.isMultiple()?n=t=>{let i=sG(e),o={row:i.getComputedRowTarget(t),col:i.getComputedColumnTarget(t)};s$(e,o,()=>{let{row:t,col:i}=o;return e.getCell(t,i,!0)})}:1!==t.getSelectedRange().size()||t.isMultiple()?t.getSelectedRange().size()>1&&(n=t=>{let i=sG(e),o={row:i.getComputedRowTarget(t),col:i.getComputedColumnTarget(t)};s$(e,o,()=>{let{row:t,col:i}=o;return e.getCell(t,i,!0)})}):n=t=>{let i=e.selection.getSelectionSource(),{row:o,col:r}=t;if("number"!=typeof o||"number"!=typeof r)return;let n=()=>e.getCell(o,r,!0);if(o<0&&r>=0)s$(e,{col:r},n);else if(r<0&&o>=0)s$(e,{row:o},n);else{let t={row:o,col:r};if("mouse"===i){var s,l,a,h,d,u,c,g;let i,n,p,m,f,w=function({row:e,col:t,lastPartiallyVisibleRow:i,lastPartiallyVisibleColumn:o,isRowLargerThanViewport:r,isColumnLargerThanViewport:n}){let s=t===o,l=e===i;if(!r&&!n&&(s||l))return null;let a={};return!(l&&!r)&&(a.row=e,r&&(a.verticalSnap="top")),!(s&&!n)&&(a.col=t,n&&(a.horizontalSnap="start")),a}({row:o,col:r,lastPartiallyVisibleRow:e.view.getLastPartiallyVisibleRow(),lastPartiallyVisibleColumn:e.view.getLastPartiallyVisibleColumn(),isRowLargerThanViewport:(s=e,l=o,i=s.view.countFixedRowsTop(),n=s.view.countFixedRowsBottom(),!(l<i||l>=s.countRows()-n)&&(a=sj(s,l),(h=s.view.getViewportHeight())>0&&(a??0)>h)),isColumnLargerThanViewport:(d=e,u=r,p=d.view.countFixedColumnsStart(),m=d.countCols(),f=d.view.countFixedColumnsEnd(),!(u<p)&&!(u>=m-f)&&(c=d.getColWidth(u),(g=d.view.getViewportWidth())>0&&(c??0)>g))});if(null===w)return;t=w}let p=void 0===t.row||void 0===t.col;s$(e,t,p?void 0:n)}},n?.(r)}}}(T),k.init(),sy(T)){var o,r;let e,t,i=[T.rootSlotTopElement,T.rootSlotBottomElement],n=()=>i.reduce((e,t)=>e+t.offsetHeight,0),s=n();e=(o=T.rootPortalElement).ownerDocument,mJ||(mJ=m2(e,"assertive"),m0=m2(e,"polite"),o.append(mJ,m0)),m1.push(o),function(e){let t=e.rootSlotBottomElement;if(!t)return;let i=ta({className:fu,key:e.getSettings().licenseKey,element:t,releaseDate:"17/11/2026"});i&&fb(e,i),e.addHookOnce("init",()=>{fm.add(e),fC(e)}),e.addHook("afterUpdateSettings",()=>fC(e),1e3)}(T),((t=fO(r=T)).lifecycle.isTrial||t.badge)&&function(e){let t=e.rootSlotBottomElement;if(!t)return;let{bar:i,link:o}=function(e){let{refs:t}=fe({tag:"div",ref:"bar",className:`handsontable ${fs}`,children:[{tag:"a",ref:"link",className:`${fs}__link`,attrs:{href:"https://handsontable.com",target:"_blank",rel:"noopener noreferrer"},children:[{tag:"span",className:`${fs}__logo`,attrs:{"aria-hidden":"true"}},{tag:"span",className:`${fs}__text`,text:"Powered by Handsontable DataGrid"}]}]},e);return t}(t.ownerDocument);i.classList.add(m4),t.appendChild(i),m8(m6.BOTTOM,t),e.getFocusScopeManager().registerScope(fl,i,{shortcutsContextName:fa,runOnlyIf:()=>i.isConnected,onActivate:e=>{("tab_from_above"===e||"tab_from_below"===e)&&o.focus()}})}(r),function(e,t){let{lifecycle:i,channels:o}=t,r=fn[i.state];r?function(e,t){let i=e.rootOverlaysElement;if(!i)return;let o=e.getFocusScopeManager(),r=e.getShortcutManager(),n=e.isRtl(),s=`${e.guid}-license-lock-title`,l=`${e.guid}-license-lock-description`,{refs:a}=fe({tag:"div",ref:"lock",className:`${fV} ${fV}--confirm handsontable ht-license-lock ${fV}--background-solid ${fV}--show`,attrs:{role:"alertdialog","aria-modal":"true","aria-labelledby":s,"aria-describedby":l,tabindex:"-1",dir:n?"rtl":"ltr",style:"display: block;"},children:[{tag:"div",className:`${fV}__content-wrapper`,children:[{tag:"div",ref:"inner",className:`${fV}__content-wrapper-inner`,attrs:{tabindex:"-1"},children:[{tag:"div",className:`${fV}__content`,children:[{tag:"h2",ref:"title",className:`${fV}__title`,attrs:{id:s}},{tag:"p",ref:"description",className:`${fV}__description`,attrs:{id:l}}]},{tag:"div",className:`${fV}__buttons`,children:[{tag:"a",ref:"contactButton",className:"ht-button ht-button--secondary",attrs:{rel:"noopener"}}]}]}]}]},e.rootDocument),h=a.lock;if(a.title.textContent=t.title,a.description.textContent=t.description,a.contactButton.textContent=t.action.text,a.contactButton.setAttribute("href",t.action.href),t.docsLink){let i=e.rootDocument.createElement("a");i.href=t.docsLink.href,i.target="_blank",i.rel="noopener",i.textContent=t.docsLink.text,a.description.appendChild(i),a.description.appendChild(e.rootDocument.createTextNode(t.docsLink.trailingText))}let d=()=>Array.from(h.querySelectorAll("a[href], button")),u=()=>{let{view:t}=e,i=t.isHorizontallyScrollableByWindow()?t.getTotalTableWidth():t.getWorkspaceWidth();h.style.width=`${i}px`};e.addHook("afterViewRender",u),(r.getContext(fW)??r.addContext(fW)).addShortcut({keys:[["Tab"],["Shift","Tab"]],callback:t=>{let i=d(),o=i.indexOf(e.rootDocument.activeElement),r=t.shiftKey?-1:1;i[(o+r+i.length)%i.length]?.focus()},group:fz}),o.registerScope(fz,h,{shortcutsContextName:fW,type:"modal",onActivate:e=>{let t=d();"tab_from_below"===e?t[t.length-1]?.focus():a.contactButton.focus()}}),i.appendChild(h),e.addHookOnce("afterInit",()=>{u(),e.deselectCell()})}(e,r(i)):o.ui&&function(e,t){var i;let o,r=fr[t.state],n=e.rootOverlaysElement;if(!r||!n)return;let s=`${e.guid}-license-popover`,{refs:l}=fe({tag:"div",ref:"wrapper",className:"ht-license-badge-wrapper",children:[{tag:"button",ref:"badge",className:"ht-license-badge",attrs:{type:"button","aria-label":"Handsontable license information"}},{tag:"div",ref:"popover",className:fP,attrs:{id:s,role:r.dismissible?"dialog":"tooltip","aria-labelledby":`${s}-title`},children:[{tag:"div",className:`${fP}__content`,children:[{tag:"div",ref:"popoverTitle",className:`${fP}__title`,attrs:{id:`${s}-title`}},{tag:"p",ref:"popoverBody",className:`${fP}__body`},{tag:"a",ref:"popoverLink",className:`${fP}__link`,attrs:{target:"_blank",rel:"noopener noreferrer"}}]},r.dismissible&&{tag:"button",ref:"closeButton",className:`${fP}__close`,attrs:{type:"button","aria-label":"Close"}}]}]},e.rootDocument),a=l.wrapper,h=l.badge,d=()=>e.hasRowHeaders()&&e.hasColHeaders(),u=()=>{if(e.isDestroyed)return;let t=d();a.classList.toggle(fL,!t),e.rootElement?.classList.toggle("ht-license-badge-on",t),fB(e)?.table.classList.toggle("ht-license-badge-corner",t)};u(),e.addHook("afterRender",()=>u());let c=0,g=()=>{let t=fB(e);if(!t||!d())return;let i=t.table.offsetWidth;i>0&&Math.abs(i-c)>1&&(c=i,a.style.setProperty("--ht-license-badge-area-width",`${i}px`))},p=e.rootWindow;if("function"==typeof p.ResizeObserver){let t=new p.ResizeObserver(()=>g()),i=null,o=()=>{let o=fB(e)?.table??null;o!==i&&(t.disconnect(),i=o,o&&t.observe(o))};o(),e.addHook("afterRender",()=>o()),e.addHook("afterDestroy",()=>t.disconnect())}else g(),e.addHook("afterRender",()=>g());h.tabIndex=-1;let m=l.popover;l.popoverTitle.textContent=r.title,l.popoverBody.textContent=r.body(t),l.popoverLink.href=r.linkHref,l.popoverLink.textContent=r.linkText,l.popoverLink.tabIndex=-1;let f=!1;m.addEventListener("mouseenter",()=>{f=!0}),m.addEventListener("mouseleave",()=>{f=!1}),i=()=>{f||a.classList.contains(fN)||a.classList.remove(fF)},(o=e.rootElement)&&(o.addEventListener("mouseover",t=>{let o=t.target instanceof e.rootWindow.Element?t.target:null,r=fB(e)?.thead??null,n=!a.classList.contains(fL)&&null!==o&&null!==r&&r.contains(o);a.classList.toggle(fN,n),i()}),o.addEventListener("mouseleave",()=>{a.classList.remove(fN),i()})),r.dismissible&&(m.classList.add(f_),l.closeButton.tabIndex=-1,l.closeButton.addEventListener("click",()=>{m.classList.remove(f_),a.classList.add(fF)})),n.appendChild(a)}(e,i)}(r,t),n()!==s&&wV(T,eH.height);let l={top:-1,bottom:-1};T.addHook("afterRender",()=>{if(!T||T.isDestroyed)return;let{view:e}=T;if(!e)return;let t=e.isHorizontallyScrollableByWindow(),i=t?e.getTotalTableWidth():e.getWorkspaceWidth();(0===i||t&&0>=T.countRenderedCols())&&T.rootWrapperElement&&(i=T.rootWrapperElement.offsetWidth);let o=T.rootWrapperElement?.clientWidth??0;t&&o>0&&(i=Math.min(i,o)),T.rootSlotBottomElement&&i!==l.bottom&&(l.bottom=i,T.rootSlotBottomElement.style.width=`${i}px`),T.rootSlotTopElement&&i!==l.top&&(l.top=i,T.rootSlotTopElement.style.width=`${i}px`)});let a=n(),h=()=>{let e=n();return e!==a&&(a=e,wV(T,eH.height),!0)};eR=h,ev=new T.rootWindow.ResizeObserver(()=>{T&&!T.isDestroyed&&T.view&&h()&&T.render()}),i.forEach(e=>ev?.observe(e))}$=!0;try{tO(eZ,!0)}finally{$=!1}eA.invalidateMetaExtensions(),T.runHooks("init");let n=eR;eR=null,n?.(),T.render(),null!==n&&T&&!T.isDestroyed&&n()&&T.render(),null===ex&&(ex=function(e,t){let i=e.fonts;if(!i||"function"!=typeof i.addEventListener)return()=>{};let o=!1,r=t,n=()=>{i.ready.then(()=>{if(null!==r){if("loading"===i.status)return void n();o=!1,r()}},()=>{o=!1})},s=()=>{o||(o=!0,n())};return i.addEventListener("loading",s),"loading"===i.status&&s(),()=>{r=null,i.removeEventListener("loading",s)}}(T.rootDocument,eQ)),L&&null===T.rootElement.offsetParent&&(eh=oz(T.rootElement,()=>{T&&!T.isDestroyed&&T.view&&T.render()})),"object"==typeof L&&(T.runHooks("afterChange",L[0],L[1]),L=!1),T.runHooks("afterInit"),eA.finishInitialization()})())},this._runInPluginLifecyclePass=function(e){return W=!0,eX(e)},this._createCellCoords=function(e,t){let i=T.view;return i?i._wt.createCellCoords(e,t):new l4(e,t,T.isRtl())},this._createCellRange=function(e,t,i){let o=T.view,r=[e,t,i];return o?o._wt.createCellRange(...r):new l5(...r,T.isRtl())},this.validateCell=function(e,t,i,o){let r=ec;ec=!1;let n=T.getCellValidator(t);function s(e,o=!0,r=t){if(!o||!0===t.hidden)return void i(e);let n=r.visualCol,l=r.visualRow,a=T.getCell(l,n,!0);if(a&&"TH"!==a.nodeName){let e=T.rowIndexMapper.getRenderableFromVisualIndex(l),t=T.columnIndexMapper.getRenderableFromVisualIndex(n);T.view._wt.getSetting("cellRenderer",e,t,a)}i(e)}if(eq(n)&&(n=sT(n)),o3(n)){let i,l=()=>o3(t.prop)?t.visualCol:t.prop,a=l(),h=eA.getStructureVersion(),d=ep,u=r?tc(t.visualRow):null,c=null===u?null:O.track(u),g=null===c?null:e8(t.prop),p=null===g?null:D.tracker.track(g);_.delete(t);let m=null===c?()=>{}:P.add(c,t,p??void 0);if(e=T.runHooks("beforeValidate",e,t.visualRow,a,o),!T)return;let f=ed.hold(),w=r&&d===ep,b=!w,C=!r,y=t.prop,S=()=>{if(!C&&(C=!0,null!==c)){let e,t,i;m(),e=ey.get(y),t=e?.get(c),i=t?.indexOf(d)??-1,e&&t&&-1!==i&&(t.splice(i,1),0===t.length&&e.delete(c),0===e.size&&ey.delete(y)),O.release(c),null!==p&&D.tracker.release(p)}b||(b=!0,d===ep&&(eu-=1))};null!==c&&(ey.has(y)||ey.set(y,new Map),(i=ey.get(y)).set(c,[...i.get(c)??[],d])),w&&(eu+=1),T._registerMicrotask(()=>{let i=ew,r=eC;ew=d,eC=t,eo+=1;try{f.resume(()=>n.call(t,e,i=>{if(!T){S(),f.release();return}eo+=1;try{f.resume(()=>{let r=tr(t,c);if(i=T.runHooks("afterValidate",i,e,r.visualRow,l(),o),!T||(r===t&&(t.valid=i,o1(t)),to(r,i,h),S(),s(i,!0,r),!T))return;let n=em;em=d!==ep;try{T.runHooks("postAfterValidate",i,e,r.visualRow,l(),o)}finally{em=n}})}finally{S(),f.release(),ty()}}))}catch(e){throw S(),f.release(),e}finally{ew=i,eC=r,ty()}})}else T._registerMicrotask(()=>{t.valid=!0,o1(t),s(t.valid,!1)})},this.setDataAtCell=function(e,t,i,o){let r=ts(e,t,o,"edit");ed.run("change",r,()=>td.call(this,e,t,i,o))};let th=e=>!(T.view||T.countRows()>0)&&0!==T.countSourceRows()&&(ir(`\`${e}()\` writes nothing while Handsontable initializes and the grid has no rows yet, as inside \`afterHideColumns\`. Write in \`afterInit\`, or use \`setSourceDataAtCell()\`.`),!0);function td(e,t,i,o){let r,n,s;if(th("setDataAtCell"))return;let l=tn(e,t,i),a=[],h=o||"object"!=typeof e?o:t,d=!1;for(r=0,n=l.length;r<n;r++){let[e,t,i]=l[r];if(null===t&&wX(h))continue;let o=function(e){"object"!=typeof e&&tf("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");let t=e[1];return"number"!=typeof t&&tf("Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`"),t}(l[r]);if(o>=this.countCols()?(d||=mQ(T.dataType,this.countCols(),o),s=o):s=r3(T,o),e9(e,h)){te(s,i,h);continue}a.push([e,s,x.getAtCell(this.toPhysicalRow(e),t),i])}if(l.length>0&&0===a.length)return void T.runHooks("afterSetDataAtCell",[],h);let u=eS(h,a),c=tl(a,h);d&&c.some(([,e])=>Number.isInteger(e)&&mQ(T.dataType,this.countCols(),e)&&null===R.propToCol(e))&&id("Core.setDataAtCell.pastLastColumnOnObjectData","Writing past the last column of an object data source is deprecated and will be ignored in Handsontable 20.0.0. The value currently lands on a property named after the column index, which no column can display. Use `setDataAtRowProp()` to write a field the grid shows no column for."),!T||(T.runHooks("afterSetDataAtCell",c,h),T&&tu(c,h,u))}function tu(e,t,i){var o;let r,n,s,l,a,h,d,u,c,g,p,m,f,w,b,C=ed.hold(),y=(o=tc,r=new Map,n=new Map,s=new Set,l=new Map,a=new Map,h=new Map,d=null,u=!1,c=(e,t)=>{a.set(e,t),h.get(e)?.forEach(e=>Reflect.set(e,"visualRow",t))},g=(e,t)=>{e>=F.countVisualRows()-t||a.forEach((i,o)=>{e<=i&&c(o,i+t)})},p=(e,t)=>{a.forEach((i,o)=>{e<i&&c(o,i-Math.min(t,i-e))})},m=e=>{a.forEach((t,i)=>c(i,t-e))},f=()=>{d?.(),d=null},w=e=>{let t=n.get(e);return void 0!==t&&void 0!==D&&(null===t.physicalColumn||(Reflect.set(e,1,D.toProp(t.physicalColumn)),!1))},b={capture(e){if(u)return;u=!0;let t=new Map,i=F.countVisualRows();e.forEach(e=>{let l;l=D?.toTrackedPhysicalColumn(e[1])??null,void 0!==D&&null!==l&&(n.set(e,D.tracker.track(l)),ei.set(e,b));let h=Number.isInteger(e[0])?o(e[0]):null;if(null===h){Number.isInteger(e[0])&&e[0]>=i&&a.set(e,e[0]);return}let d=t.get(h);void 0===d&&(d=w0(O,F,h),t.set(h,d),s.add(d)),r.set(e,d),ei.set(e,b)}),a.size>0&&(d=N({rowsInserted:g,rowsRemoved:p,trimmedRowsChanged:m}))},noteMeta(e,t,i){let o=r.get(e);void 0!==o&&null===o.meta&&(o.meta=t,o.metaColumn=i)},notePastEndMeta(e,t){let i=a.get(e);void 0!==i&&(h.set(e,[...h.get(e)??[],t]),Reflect.set(t,"visualRow",i))},getPastEndRow:e=>a.get(e),getRecord:e=>r.get(e)?.record,resolve(e){let t=r.get(e);return void 0===t?void 0:w3(F,t)},hasRecords:()=>r.size>0,settle(e,t){if(f(),a.forEach((e,t)=>w6(t,e)),0===r.size&&0===n.size)return[];let i=new Map,o=[],s=w1(F);for(let n=e.length-1;n>=0;n--){let a,h=e[n],d=r.get(h);void 0!==d&&(i.has(d)||i.set(d,w3(F,d,s)),a=i.get(d)),null===a||w(h)?(e.splice(n,1),o.unshift(h)):void 0!==a&&(l.set(h,a),w6(h,t(a)))}return o},getSettledPhysicalRow:e=>l.get(e),getProp(e){let t=n.get(e);return void 0===t||void 0===D?e[1]:null===t.physicalColumn?void 0:D.toProp(t.physicalColumn)},getColumn:e=>n.get(e),getPhysicalRow(e){let t=l.get(e);if(void 0!==t)return t;let i=r.get(e);return void 0===i?void 0:w3(F,i)},forEachAnchor(e){s.forEach(e)},release(){s.forEach(e=>O.release(e.record)),n.forEach((e,t)=>{D?.tracker.release(e),ei.get(t)===b&&ei.delete(t)}),r.forEach((e,t)=>{ei.get(t)===b&&ei.delete(t)}),n.clear(),s.clear(),r.clear(),l.clear(),f(),a.clear(),h.clear()}});i===ep&&ee.set(e,{source:t,records:y});try{!function(e,t,i,o,r){if(!e.length)return r([],[]);let n=T.getActiveEditor(),s=e3(),l=[],a=[],h=wX(t)?null:H(),d=!0,u=([t,i,,r])=>{e7(e,o,i,null===t?null:T.toPhysicalRow(t),t,r)},c=(e,t)=>{wX(t)&&e?.forEach(u)};T.addHook("afterChange",c),s.onQueueEmpty=()=>{T.removeHook("afterChange",c);let t=[];try{i===ep&&(t=o.settle(e,e=>T.toVisualRow(e))),h?.claim(e,e5),n&&d&&i===ep&&n._closeAfterDataChange&&e6(e,n)&&n.cancelChanges(),r(a,t),h?.settle(e)}finally{h?.release(),function(e){if(0===e.length||!T)return;let t=T.countSourceRows();e.forEach(e=>{e.row>=t&&delete e.valid})}(l)}};try{!function(e,t,i,o,r,n,s,l){let a=T.countRows();for(let u=e.length-1;u>=0&&i===ep;u--){let i,[c,g,,p]=e[u],m=R.propToCol(g)??g;if(Number.isInteger(m)?(i=e4(c,m),T.getCellValidator(i)&&(i=e4(c,m,!0))):i={...Object.getPrototypeOf(eH),...eH},T.getCellValidator(i)){var h,d;o.addValidatorToQueue(),s.capture(e),c>=a?(r.push(i),s.notePastEndMeta(e[u],i)):Number.isInteger(i.col)&&s.noteMeta(e[u],i,i.col);let f=eA.getStructureVersion(),w=s.getRecord(e[u]),b=s.getColumn(e[u]);n?.register(e[u],(h=void 0===w?`v${c}`:`r${w.id}`,d=void 0===b?g:`t${b.id}`,"string"==typeof d||"number"==typeof d?`${h}:p${d}`:"function"==typeof d?(!wZ.has(d)&&(wQ+=1,wZ.set(d,wQ)),`${h}:f${wZ.get(d)}`):`${h}:c${"function"==typeof m?"":m}`),i,f),ec=!0;try{T.validateCell(p,i,function(t,i,r){return function(s){if("boolean"!=typeof s&&tf("Validation error: result is not boolean"),!1===s&&!1===i.allowInvalid){l(r);let o=e.lastIndexOf(r,t);-1!==o&&e.splice(o,1),_.has(i)||(i.valid=!0),to(tr(i,_.get(i)??null),!0,f)}n?.answered(r,s),o.removeValidatorFormQueue()}}(u,i,e[u]),t)}finally{ec=!1}if(!T)return}}}(e,t,i,s,l,h,o,e=>{d=!1,a.push(e)})}catch(e){throw s.onQueueEmpty=()=>{},T.removeHook("afterChange",c),h?.release(),e}s.checkIfQueueIsEmpty()}(e,t,i,y,(o,r)=>{ee.delete(e);try{if(i===ep){let i=y.hasRecords()?e=>y.getSettledPhysicalRow(e):void 0;C.resume(()=>(function(e,t,i){ti(()=>(function(e,t){let i={op:null};for(let o=e.length-1;o>=0;o--){let r=!1;if(null===e[o]){e.splice(o,1);continue}if((null===e[o][2]||void 0===e[o][2])&&(null===e[o][3]||void 0===e[o][3]))continue;let n=void 0===t?void 0:t(e[o]);if(eH.allowInsertRow&&void 0===n)for(;e[o][0]>T.countRows()-1;){let t=e[o][0]-(T.countRows()-1),{delta:i}=R.createRow(void 0,t,{source:"auto"});if(0===i){r=!0;break}}if("array"===T.dataType&&(!eH.columns||0===eH.columns.length)&&eH.allowInsertColumn){let t=()=>Number(R.propToCol(e[o][1])??e[o][1]);for(;t()>T.countCols()-1;){let e=t()-(T.countCols()-1),{delta:i}=R.createCol(void 0,e,{source:"auto"});if(0===i){r=!0;break}}}r||function(e,t,i,o,r){let n=null;if(null!==ed.getRecordingTransaction()&&(n=r??T.toPhysicalRow(e)),null===n||!Number.isInteger(n))return tt(e,t,i,r);let s=p$(x.getRawAtCellByProp(n,t));tt(e,t,i,r),pU(ed,{physicalRow:n,prop:t,oldValue:s,newValue:p$(x.getRawAtCellByProp(n,t))},o)}(e[o][0],e[o][1],e[o][3],i,n)}})(e,i),!1);let o=e.length>0,r=M?.getActiveEditor(),n=r?._closeAfterDataChange,s=e6(e,r);if(o){if(E.adjustRowsAndCols(),T.runHooks("beforeChangeRender",e,t),!T||(r?.isOpened()&&n&&s&&M.closeEditor(),T.render(),!T)||((r?.isOpened()&&n&&s||!r?.isOpened())&&M?.prepareEditor(),T.runHooks("afterChange",e,t||"edit"),!T))return;r&&void 0!==r.refreshValue&&(!r.isOpened()||s)&&r.refreshValue()}else T.render()})(e,t,i)),r.length>0&&T&&Q.slice().forEach(e=>e(r,t,[]))}else Q.slice().forEach(i=>i(e,t,o))}finally{y.release(),C.release()}})}catch(t){throw ee.delete(e),y.release(),C.release(),t}}function tc(e){return e>=0&&e<T.countRows()?T.toPhysicalRow(e):null}function tg(e,t,i,o){let r,n;if(th("setDataAtRowProp"))return;let s=tn(e,t,i),l=[],a=o||"object"!=typeof e?o:t;for(r=0,n=s.length;r<n;r++){let[e,t,i]=s[r];if(!(null===t&&wX(a))||R.colToPropCache.includes(null)){if(e9(e,a)){te(t,i,a);continue}l.push([e,t,x.getAtCellByProp(this.toPhysicalRow(e),t),i])}}if(s.length>0&&0===l.length)return void T.runHooks("afterSetDataAtRowProp",[],a);let h=eS(a,l),d=tl(l,a);!T||(T.runHooks("afterSetDataAtRowProp",d,a),T&&tu(d,a,h))}this.setDataAtRowProp=function(e,t,i,o){let r=ts(e,t,o,"edit");ed.run("change",r,()=>tg.call(this,e,t,i,o))},this.listen=function(){T&&!T.isListening()&&w8.has(T.guid)&&(w8.forEach(e=>{T!==e&&e.unlisten()}),w4=T.guid,T.runHooks("afterListen"))},this.unlisten=function(){this.isListening()&&(w4=null,T.runHooks("afterUnlisten"))},this.isListening=function(){return w4===T.guid},this.destroyEditor=function(e=!1,t=!0){M.closeEditor(e),!T||(T.view.render(),T&&t&&e_.isSelected()&&M.prepareEditor())},this.populateFromArray=function(e,t,i,o,r,n,s){("object"!=typeof i||"object"!=typeof i[0])&&tf("populateFromArray parameter `input` must be an array of arrays");let l="number"==typeof o?T._createCellCoords(o,r):void 0;return ed.run("change",n??"populateFromArray",()=>E.populateFromArray(T._createCellCoords(e,t),i,l,n,s))},this.spliceCol=function(e,t,i,...o){return id("Core.spliceCol","The `spliceCol()` method is deprecated and will be removed in Handsontable 20.0.0. Change the data yourself and write it back with `populateFromArray()`, or use `alter()` with `insert_col`/`remove_col`."),R.spliceCol(e,t,i,...o)},this.spliceRow=function(e,t,i,...o){return id("Core.spliceRow","The `spliceRow()` method is deprecated and will be removed in Handsontable 20.0.0. Change the data yourself and write it back with `populateFromArray()`, or use `alter()` with `insert_row`/`remove_row`."),R.spliceRow(e,t,i,...o)},this.getSelected=function(){if(e_.isSelected())return er(e_.getSelectedRange().ranges,({from:e,to:t})=>[e.row,e.col,t.row,t.col])},this.getSelectedLast=function(){let e,t=T.getSelected();return t&&t.length>0&&(e=t[t.length-1]),e},this.getSelectedActive=function(){let e=T.getSelectedRangeActive();if(!e)return;let{from:t,to:i}=e;return[t.row,t.col,i.row,i.col]},this.getSelectedRange=function(){if(e_.isSelected())return Array.from(e_.getSelectedRange())},this.getSelectedRangeLast=function(){let e,t=T.getSelectedRange();return t&&t.length>0&&(e=t[t.length-1]),e},this.getSelectedRangeActive=function(){return e_.getActiveSelectedRange()},this.getActiveSelectionLayerIndex=function(){return e_.getActiveSelectionLayerIndex()};let tp=(e,t,i,o,r)=>{let n=Math.max(t,0),s=Math.min(i,T.countRows()-1),l=Math.max(o,0),a=Math.min(r,T.countCols()-1);n>s||l>a||nF(n,s,t=>{nF(l,a,i=>{T.getCellMetaTransient(t,i).readOnly||e.push([t,i,null])})})};this.emptySelectedCells=function(e){if(!e_.isSelected()||0===this.countRows()||0===this.countCols())return;let t=[];en(e_.getSelectedRange(),e=>{if(e.isSingleHeader())return;let i=e.getTopStartCorner(),o=e.getBottomEndCorner();tp(t,i.row,o.row,i.col,o.col)}),t.length>0&&this.setDataAtCell(t,e)},this.isRenderSuspended=function(){return this.renderSuspendedCounter>0},this.suspendRender=function(){this.renderSuspendedCounter+=1},this.resumeRender=function(){let e=this.renderSuspendedCounter-1;this.renderSuspendedCounter=Math.max(e,0),this.isRenderSuspended()||e!==this.renderSuspendedCounter||T.view.render()},this.render=function(){this.view&&(this.forceFullRender=!0,this.isRenderSuspended()||T.view.render())},this.markCellChanged=function(e,t){let i=T.toPhysicalRow(e),o=T.toPhysicalColumn(t);if(null===i||null===o)return;let r=eA.getCellMetaIfExists(i,o);r&&o1(r)},this.markAllCellsChanged=function(){T.renderChangeTracker.markAllChanged()},this.batchRender=function(e){T.suspendRender();try{return e()}finally{T.resumeRender()}},this.isExecutionSuspended=function(){return this.executionSuspendedCounter>0},this.suspendExecution=function(){let e=0===this.executionSuspendedCounter&&!j&&!q;if(e){q=!0;try{this.runHooks("beforeSuspendExecution")}finally{q=!1}}if(this.executionSuspendedCounter+=1,this.columnIndexMapper.suspendOperations(),this.rowIndexMapper.suspendOperations(),e)try{this.runHooks("afterSuspendExecution")}catch(e){try{this.resumeExecution()}catch{}throw e}},this.resumeExecution=function(e=!1){let t=this.executionSuspendedCounter-1,i=0===t&&!j&&!q;try{if(i){q=!0;try{this.runHooks("beforeResumeExecution")}finally{q=!1}}}finally{this.executionSuspendedCounter=Math.max(this.executionSuspendedCounter-1,0);try{if(!this.isExecutionSuspended()&&t>=0||e)try{this.columnIndexMapper.resumeOperations()}finally{this.rowIndexMapper.resumeOperations()}}finally{i&&!this.isExecutionSuspended()&&this.runHooks("afterResumeExecution")}}},this.batchExecution=function(e,t=!1){return ed.run("batch",void 0,()=>{T.suspendExecution();let i=!1;try{let t=e();return i=!0,t}finally{T.resumeExecution(i&&t)}})},this.batch=function(e){return ed.run("batch",void 0,()=>{T.suspendRender();try{T.suspendExecution();try{return e()}finally{T.resumeExecution()}}finally{T.resumeRender()}})},this.runOperation=function(e,t,i){return ed.run(e,i,t)},this._getOperationScope=function(){return ed},this._hasPendingValidation=function(){return eu>0};let tm=(e,t,i)=>{let{type:o,valueGetter:r}=i??T.getCellMetaTransient(e,t),n=tM(o)?o:null;"string"==typeof o&&su(o)&&(n=sp(o));let s="function"==typeof r&&tM(n)&&n.valueGetter===r;return R.get(e,r3(T,t),{skipValueGetter:s})};function tb(e){let t=!1;e_.suspendGridTrackingFits();try{e(),t=!0}finally{e_.resumeGridTrackingFits(t)}}function tC(e,t){eu=0,ep+=1,ee.forEach(({records:e})=>e.release()),ee.clear();let i=M?.getActiveEditor()?._endValidationWait()??null;tb(()=>pQ(e,e=>{R=e},()=>{T.renderChangeTracker.markAllChanged(),eA.clearCellsCache(),T.initIndexMappers(),E.adjustRowsAndCols(),e_.markSource("loadData");try{e_.refresh()}finally{e_.markEndSource()}L&&(L=[null,"loadData"])},{hotInstance:T,dataMap:R,dataSource:x,internalSource:"loadData",source:t,metaManager:eA,firstRun:L,beforeRender:()=>eZ(1)})),i?.()}function ty(){if(!((eo-=1)>0))for(;es.length>0;){let e=es.shift();T&&e()}}function tv(e=!1,t=!1){let i=T.getInitialColumnCount(),o=e?Math.min(i,T.columnIndexMapper.getNumberOfIndexes()):i,r=R.colToPropCache.slice();if(t&&"array"===T.dataType)for(let e=0;e<o;e+=1)void 0===r[e]&&(r[e]=e);return{count:o,props:r}}function tR(e,t=!1){if(null===e)return!1;let i=tv(!1,t);return!(t?i.count>=e.count&&p5(e,i,Math.max(e.count,e.props.length),!0)||i.count<=e.count&&p5(e,i,i.count,!0):e.count===i.count&&e.props.length===i.props.length&&p5(e,i,e.props.length))}function tE(e){e.forEach(({physicalRow:e,physicalColumn:t,key:i,value:o})=>{eA.setCellMeta(e,t,i,o)})}function tk(e){eA.startCellOptionMetaRecording();try{e()}finally{eA.endCellOptionMetaRecording()}}function tI(e){let t=e?[]:eA.getCellOptionCellMetas(),i=eA.getUserDefinedCellMetas(),o=eA.getInvalidCellMetas();eA.clearCache(),t.length>0&&tk(()=>tE(t)),tE(i),eA.restoreInvalidCellMetas(o)}function tA(e){let t=eH.columns;if(t)for(let i=0;i<e;i++){let e=o3(t)?t(i):t[i];e&&eA.updateColumnMeta(i,e)}}function tH(e){return void 0!==e.data&&void 0!==e.columns&&!o3(e.columns)&&!o3(eH.columns)}function tO(e,t){let i=T,o=i.renderSuspendedCounter;i.renderSuspendedCounter=o+1;try{e()}finally{i.renderSuspendedCounter=Math.max(i.renderSuspendedCounter-1,t?o:0)}}function tF(e,t,i=!1,o=null,r=null,n=e){var s,l,a;let h,d,u,c,g,p,m,f,w,b=(L?T.loadData:T.updateData).bind(T);eU(e.rows)&&tf('The "rows" setting is no longer supported. Do you mean startRows, minRows or maxRows?'),eU(e.cols)&&tf('The "cols" setting is no longer supported. Do you mean startCols, minCols or maxCols?'),eU(e.ganttChart)&&tf('Since 8.0.0 the "ganttChart" setting is no longer supported.'),d=Array.isArray(e.columns)?e.columns:[],u=Array.isArray(e.cell)?e.cell:[],c=[e,...d,...u],w9.forEach(({name:e,version:t,migrationUrl:i})=>{c.some(t=>tM(t)&&eU(t[e]))&&ih(`Core.removedOption.${e}`,`The "${e}" setting was removed in Handsontable ${t} and is ignored. See ${i} for the migration path.`)}),tW=null;let{previousMinimumSizes:C,previousColumnLayout:y,previousRootSize:S,previousDataSource:v}={previousMinimumSizes:{minRows:eH.minRows,minSpareRows:eH.minSpareRows,minCols:eH.minCols,minSpareCols:eH.minSpareCols},previousColumnLayout:!L&&(!eH.columns&&t_(e,"dataSchema")&&!o3(e.columns)||tH(e))?tv(!0,tH(e)):null,previousRootSize:{height:t?void 0:eH.height,width:t?void 0:eH.width},previousDataSource:{dataProvider:eH.dataProvider,isExternal:!t&&tz}},x=function(e,t){let i;for(i in t||eA.assertNoInitOnlyUpdates(e),e)"data"===i||"language"===i||("className"===i?eK("className",e.className):"tableClassName"===i&&T.table?(eK("tableClassName",e.tableClassName),T.view._wt.wtOverlays.syncOverlayTableClassNames()):rI.getSingleton().isRegistered(i)||rI.getSingleton().isDeprecated(i)?eY(i,e[i]):!t&&t_(e,i)&&function(e,t){let i="editor"===t&&!0===e[t],o="cell"===t&&!Array.isArray(e[t]);if(i||o)return;let r=eO[t];eO[t]=e[t],be.has(t)&&e[t]!==r&&(Reflect.deleteProperty(eH,t),("fixedColumnsStart"===t||"fixedColumnsLeft"===t)&&Reflect.deleteProperty(eH,"_fixedColumnsStart"))}(e,i));return!t&&eA.updateGlobalTypeFromSettings(e)}(e,t);!function(e,t){let i=mK(T.rootContainer),o=t_(e,"themeName"),r=t_(e,"theme");if(o&&r&&ir("Both `theme` and `themeName` are defined in your configuration. These options are aliases and cannot be used together. The `themeName` option will be ignored."),t){let t;r&&"string"==typeof e.theme?t=e.theme:o&&"string"==typeof e.themeName&&e.themeName&&!r?(t=e.themeName,eH.theme=e.themeName,eH.themeName=void 0):i?t=i:T.themeManager&&(t=T.themeManager.getClassName()),T.useTheme(t??null)}else{let t=T.getCurrentThemeName();r&&"string"==typeof e.theme&&t!==e.theme?(T.themeManager?.destroy(),T.useTheme(e.theme)):o&&!r&&t!==e.themeName?(T.themeManager?.destroy(),eH.theme=e.themeName,eH.themeName=void 0,T.useTheme(e.themeName)):sy(T)&&!i&&tM(e.theme)&&function(e){if(null===T.themeManager)e2(e,e1()),T.useTheme(T.themeManager.getClassName());else{let t;t="function"!=typeof e.getThemeConfig?wv(e):e,T.themeManager.update(t),T.useTheme(T.themeManager.getClassName())}}(e.theme)}}(e,t);let M=(!!t_(g=e0(e),"colorScheme")||!!t_(g,"density"))&&(T.themeManager?!!T.themeManager.setOverrides(g)&&!t&&(T.stylesHandler.clearCache(),!0):(wr(g.colorScheme)&&wr(g.density)||ea||(ea=!0,ir("The `colorScheme` and `density` options require the theme engine, so they have no effect when the theme is enabled by a CSS class name. Pass a theme config object or a `ThemeBuilder` instance to the `theme` option, or remove the `ht-theme-*` class from the container element to use the default theme.")),!1)),k=Array.isArray(e.cell);void 0===e.cell||null===e.cell||k||il(T.rootElement,"Core.invalidCellOption",'The "cell" option must be an array of objects. The passed value was ignored, and the previously declared entries were kept. Wrap a single entry in an array: cell: [{ row: 0, col: 0, ... }].');let I=(null!==(p=void 0!==e.columns&&Array.isArray(eH.columns)?eH.columns:null)&&(tI(k),tA(p.length)),(m=i&&null===p&&void 0!==e.columns)&&tI(k),{earlyColumnsSetting:p,resetsColumnMetaBeforeLoad:m});i||(s=()=>(function(e,t,i,o,r){if(!0===T.runHooks("hasExternalDataSource"))e.data&&ir('The "data" setting is ignored when "hasExternalDataSource" returns `true`.'),t||t_(e,"dataProvider")&&(!o.isExternal||e.dataProvider!==o.dataProvider||void 0!==e.columns)?r([],"updateSettings"):void 0!==e.columns&&(R.createMap(),T.initIndexMappers());else if(void 0===e.data&&void 0===eH.data)r(null,"updateSettings");else if(void 0!==e.data){let t;U=null===i?null:{previousLayout:i,columnsPath:void 0!==e.columns};try{r(e.data,"updateSettings")}finally{U=null}t=G,G=null,t?.sorting?.clearSort(),t?.filters&&(t.filters.clearConditions(),t.filters.filter())}else void 0!==e.columns?(R.createMap(),T.initIndexMappers()):null!==i&&!eH.columns&&(R.createMap(),tR(i)&&T.initIndexMappers())})(e,t,y,v,b),f=["data","columns","dataSchema","dataProvider"].some(t=>t_(e,t)),L||!f?s():(tO(s,!1),eA.invalidateMetaExtensions())),!L&&e.language&&(g_(h=dF(a=e.language))?(gV(h),T.runHooks("beforeLanguageChange",h),eO.language=h,T.runHooks("afterLanguageChange",h)):dN(a));let A=()=>(function(e,t,i,o,r,n){var s;let l,a,h,d,u,{earlyColumnsSetting:c,resetsColumnMetaBeforeLoad:g}=t,p=T.countCols();null===c&&!g&&(void 0!==e.cell||void 0!==e.cells||void 0!==e.columns||n)&&tI(i),p>0&&null===c&&tA(p),(null!==r&&(l=T.rowIndexMapper.getNumberOfIndexes(),a=T.columnIndexMapper.getNumberOfIndexes(),h=T.countSourceRows(),d=T.countSourceCols(),u=e=>e.physicalRow<l&&e.physicalColumn<a&&!(({physicalRow:e,physicalColumn:t})=>e<h&&R.isTrailingFillerRow(e)||t<d&&R.isTrailingFillerColumn(t))(e),tE(r.userDefined.filter(u)),eA.restoreInvalidCellMetas(r.invalid.filter(u))),null!==o)?tk(()=>tE(o)):i&&(s=e.cell,tk(()=>{s.forEach(e=>{let{row:t,col:i,...o}=e;T.setCellMetaObject(t,i,o)})})),T.runHooks("afterCellMetaReset")})(e,I,k,o,r,x);i||A(),L&&!i&&pX(T,"init");let H=((w=wB(T,e,t)).ignoredAxes.forEach(e=>{eO[e]=S[e]}),w);if(!t&&(T.view&&(T.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked(),T.view._wt.exportSettingsAsClassNames(),T.view.invalidateIndexSizesCache(),T.view.syncRowHeightMode()),e_.updateHighlightClassNames(),T.renderChangeTracker.markAllChanged(),T.runHooks("afterUpdateSettings",n),!T||T.isDestroyed))return null;return i||(t||E.removeSurplusRowsAndCols(C),E.adjustRowsAndCols(),eZ(1),T.view&&!L&&T.render()),l=H.scrollOwnerChanged,M&&T.themeManager&&T.runHooks("afterSetTheme",T.themeManager.getClassName(),!1),!t&&T.view&&l&&T.view._wt.wtOverlays.updateMainScrollableElements(),sy(T)&&tQ?.applyConfig(eH.layout),(t||t_(e,"dataProvider"))&&(tz=!0===T.runHooks("hasExternalDataSource")),i?A:null}function tN(){return Math.max(T.countRows(),eH.data.length)-1}function tL(e,t,i,o){var r;let n,s,l=tn(e,t,i),a=T.hasHook("afterSetSourceDataAtCell"),h=[],d=(e,t)=>{let i=T.toVisualRow(e);if("string"==typeof t){let o=R.propToCol(t);if(Number.isInteger(o))return eA.getCellMetaUncached(e,T.toPhysicalColumn(o),{visualRow:i??e,visualColumn:o})}let o="function"==typeof t?R.propToCol(t):T.toVisualColumn(t);return Number.isInteger(o)?T.getCellMetaTransient(i,o):{...Object.getPrototypeOf(eH),...eH}},u="UndoRedo.undo"===(r=ts(e,t,o))||"UndoRedo.redo"===r;en(l,([e,t,i])=>{let r=u?i:rU(i,d(e,t),o);a&&h.push([e,t,x.getAtCellByProp(e,t),r]),(u||function(e,t,i){let o=t.sourceDataValidator;if(!o3(o)||!0===o(e,t,i))return!0;let{row:r,col:n,sourceDataWarningMessage:s,allowInvalid:l}=t;return s&&pZ(s,[{row:r,col:n,value:e}]),!0===l}(r,d(e,t),o??"setSourceDataAtCell"))&&function(e,t,i,o=!1){let r=Number(e);if(null===ed.getRecordingTransaction()||!Number.isInteger(r)||r<0)return x.setAtCell(e,t,i,o);let n=x.getRawAtCellByProp(r,t),s=p$(n);x.setAtCell(e,t,i,o);let l=x.getRawAtCellByProp(r,t);l!==n&&pU(ed,{physicalRow:r,prop:t,oldValue:s,newValue:p$(l)})}(e,t,r,u)}),a&&this.runHooks("afterSetSourceDataAtCell",h,o),this.render();let c=T.getActiveEditor();c&&eU(c.refreshValue)&&(!c.isOpened()||(n=T.toPhysicalRow(c.row),s=c.prop,l.some(([e,t])=>e===n&&t===s)))?c.refreshValue():c?.isOpened()&&c.refreshDimensions?.()}function tB(e,t){return[e<T.countRows()?T.toPhysicalRow(e):e,t<T.countCols()?T.toPhysicalColumn(t):t]}function tV(e,t,i,o){if(!(null!==ed.getRecordingTransaction()&&!pW.has(i)&&eA.isUserDefinedMetaRecording()&&Number.isInteger(e)&&Number.isInteger(t)))return void o();let r="editor"===i?[ps,i]:[i],n=r.map(i=>eA.getCellMetaKeyState(e,t,i));o(),r.forEach((i,o)=>{let r=eA.getCellMetaKeyState(e,t,i),s=n[o];(s.hadOwn!==r.hadOwn||s.value!==r.value||s.origin!==r.origin)&&ed.record({type:"meta",physicalRow:e,physicalColumn:t,key:i,before:s,after:r})})}this._getValueToValidate=function(e,t){return tm(e,t)},this._isAnsweringStaleValidation=function(){return em},this.refreshDimensions=function(){if(!T.view)return;let e=T.view,{width:t,height:i}=e.getLastSize(),{width:o,height:r}=T.rootElement.getBoundingClientRect(),n=o!==t||r!==i;!1!==T.runHooks("beforeRefreshDimensions",{width:t,height:i},{width:o,height:r},n)&&(n||e._wt.wtOverlays.scrollableElement===T.rootWindow?(e.setLastSize(o,r),T.render()):e.renderWhenWindowResizeMovedFixed(),T.runHooks("afterRefreshDimensions",{width:t,height:i},{width:o,height:r},n))},this.updateData=function(e,t){eX(()=>ed.suppress(()=>{var i,o;return i=e,o=t,void tb(()=>pQ(i,e=>{R=e},e=>{R=e,T.renderChangeTracker.markAllChanged(),M?.suspendStrandDiscards();try{let e,t,i=U;i&&tR(i.previousLayout,i.columnsPath)?i.columnsPath?(e=[T.getPlugin("columnSorting"),T.getPlugin("multiColumnSorting")],t=T.getPlugin("filters"),G={sorting:e.find(e=>e?.isSorted()===!0)??null,filters:t?.enabled===!0&&t.exportConditions().length>0?t:null},T.columnIndexMapper.initToLength(T.getInitialColumnCount()),T.rowIndexMapper.fitToLength(T.countSourceRows())):T.initIndexMappers():(T.columnIndexMapper.fitToLength(T.getInitialColumnCount()),T.rowIndexMapper.fitToLength(T.countSourceRows())),function(){let e,t,i,o,r;if(0===ee.size)return;let n=Array.from(ee.values(),({records:e})=>e),s=(e=w1(F),t=new Map,i=new Map,n.forEach(o=>o.forEachAnchor(o=>{let{record:r}=o,n=w3(F,o,e);i.set(r,[...i.get(r)??[],o]),t.set(r,t.has(r)&&t.get(r)!==n?null:n)})),o=new Map,t.forEach((e,t)=>{null!==e&&o.set(t,e)}),(r=O.relocate(o)).forEach(e=>{i.get(e).forEach(t=>{null!==t.meta&&(t.meta=F.getStoredMeta(e.physicalRow,t.metaColumn)??null)})}),r);0!==s.size&&P.followRelocated(s,(e,t)=>!Number.isInteger(e.col)||eA.getCellMetaIfExists(t,e.col)===e).forEach(({record:e,meta:t})=>_.set(t,e))}(),E.adjustRowsAndCols(),e_.markSource("updateData");try{e_.refresh()}finally{e_.markEndSource()}}finally{M?.resumeStrandDiscards()}},{hotInstance:T,dataMap:R,dataSource:x,internalSource:"updateData",source:o,metaManager:eA,firstRun:L,beforeRender:()=>eZ(1)}))}))},this.loadData=function(e,t){eX(()=>ed.suppress(()=>tC(e,t)))},this.getInitialColumnCount=function(){let e=eH.columns,t=0;if(Array.isArray(e))t=e.length;else if(o3(e))if("array"===T.dataType){let i=T.countSourceCols();for(let o=0;o<i;o+=1)e(o)&&(t+=1)}else("object"===T.dataType||"function"===T.dataType)&&(t=R.colToPropCache.length);else if(eU(eH.dataSchema)){let e=R.getSchema();t=Array.isArray(e)?e.length:tD(e)}else t=T.countSourceCols();return t},this.initIndexMappers=function(){this.columnIndexMapper.initToLength(this.getInitialColumnCount()),this.rowIndexMapper.initToLength(this.countSourceRows())},this.getData=function(e,t,i,o){return eG(e)?R.getAll():R.getRange(T._createCellCoords(e,t),T._createCellCoords(i,o),pq.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,i,o){return R.getCopyableText(T._createCellCoords(e,t),T._createCellCoords(i,o))},this.getCopyableData=function(e,t){return e$(R.getCopyable(e,r3(T,t)))},this._getCopyableData=function(e,t){return R.getCopyable(e,r3(T,t))},this.getCopyableSourceData=function(e,t){return x.getCopyable(e,r3(T,t))},this.getSchema=function(){return R.getSchema()},this.updateSettings=function(e,t=!1){let i=pT(e,T.isRtl()),o=t?i:X(i);if(o!==i&&0===Object.keys(o).length)return;let r=pH(o,e);eX(()=>ed.suppress(()=>{if("configure"!==B||t){let e=B;"meta"===e&&(B="data");try{tF(o,t,!1,null,null,r)}catch(e){throw function(e,t){if(!t&&!L&&void 0!==e.data&&T.view&&!T.isDestroyed)try{T.render()}catch{}}(o,t),e}finally{B=e}return}t_(o,"data")&&ir('The "data" setting passed to updateSettings() while another settings and data change is being applied is ignored: the data that change loads replaces it. Call loadData() once it has finished.');let e=tF(o,t,!0,null,null,r);e&&V.push(e)}))},this._applySettingsAndData=function(e,t,i,o=null,r=null){let n=pT(e,T.isRtl()),s=!!T.view;s&&T.suspendRender();try{eX(()=>ed.suppress(()=>{let s=B,l=V,a=null!==s;B="configure",V=[];try{try{let s=X(n),l=tF(s,!1,!0,o,r,pH(s,e));if(!T||T.isDestroyed)return;let a=V;B="data",tC(t,i),B="meta",l?.(),a.forEach(e=>e()),T.view&&pX(T,"loadData")}finally{B=s,V=l}T.view&&!a&&eD.getItems().forEach(([,e])=>{e.enabled&&"function"==typeof e.onDataReady&&e.onDataReady()}),eZ(1)}catch(e){throw a||eD.getItems().forEach(([,e])=>{e.dropDeferredDataWork()}),e}}))}finally{s&&T&&!T.isDestroyed&&T.resumeRender()}},this._isDataWorkDeferred=function(){return null!==B},this._replaceInitPassSettings=function(e){if(null===K)return null;let t=K,i=X(e),o={};return Object.keys(i).forEach(e=>{o[e]=t[e],t[e]=i[e]}),o},this._addSettingsFilter=function(e){Y.includes(e)||Y.push(e)},this._requirePlugin=function(e,t){Z.require(e,t)},this._releasePlugin=function(e,t){Z.release(e,t)},this._isPluginRequired=function(e){return Z.isRequired(e)},this._removeSettingsFilter=function(e){let t=Y.indexOf(e);-1!==t&&Y.splice(t,1)},this._getWaitingChangeSets=function(){return[...ee].map(([e,{source:t}])=>({changes:e,source:t}))},this.getPhysicalRowOfChange=function(e){let t=ei.get(e)?.getPhysicalRow(e);return void 0!==t?t:"number"==typeof e[0]?T.toPhysicalRow(e[0]):null},this._runAfterValidatorAnswer=function(e){0===eo?e():es.push(e)},this._trackRecord=function(e,t){let i=tc(e);if(null===i)return null;let o=w0(O,F,i),r=void 0===t?null:R.colToProp(t),n=null===r?null:e8(r),s=null===n?null:D.tracker.track(n),l=()=>null===o?null:w3(F,o);return{getPhysicalRow:l,getVisualRow(){let e=l();return null===e?null:T.toVisualRow(e)},getVisualColumn(){if(void 0===t)return;if(null===r)return t;if(null!==s)return null===s.physicalColumn?null:T.toVisualColumn(s.physicalColumn);let e=R.propToCol(r);return"number"==typeof e?e:null===e?null:t},release(){null!==o&&(O.release(o.record),o=null),null!==s&&(D.tracker.release(s),s=null)}}},this._addDroppedChangesListener=function(e){Q.includes(e)||Q.push(e)},this._removeDroppedChangesListener=function(e){let t=Q.indexOf(e);-1!==t&&Q.splice(t,1)},this._addRowRevealer=function(e){J.includes(e)||J.push(e)},this._removeRowRevealer=function(e){let t=J.indexOf(e);-1!==t&&J.splice(t,1)},this._prepareRowReveal=function(){let e=J.map(e=>e());return t=>{let i=()=>null!==T.rowIndexMapper.getRenderableFromVisualIndex(t);if(i())return!0;for(let o of e)if(o(t)&&i())return!0;return!1}},this._isDataLoadPending=function(){return"configure"===B},this._isHeldMetaPhaseRunning=function(){return"meta"===B},this._isRunningInitReadySteps=function(){return $},this.getValue=function(){let e=T.getSelectedRangeActive();if(eH.getValue){if(o3(eH.getValue))return eH.getValue.call(T);else if(e&&"string"==typeof eH.getValue){let t=e.highlight.row??0;return T.getData()[t][eH.getValue]}}else if(e)return T.getDataAtCell(e.highlight.row,e.highlight.col);return null},this.getSettings=function(){return eH},this.clear=function(){let e=this.countRows(),t=this.countCols();if(e>0&&t>0){let i=[];tp(i,0,e-1,0,t-1),i.length>0&&this.setDataAtCell(i)}this.deselectCell()},this.alter=function(e,t,i,o,r){ed.run(w7[e]??e,o,()=>{ed.describe({index:t}),E.alter(e,t,i,o,r)})},this.getCell=function(e,t,i=!1){if(!T.view)return null;let o=t,r=e;if(t>=0){if(T.columnIndexMapper.isHidden(T.toPhysicalColumn(t)))return null;o=T.columnIndexMapper.getRenderableFromVisualIndex(t)}if(e>=0){if(T.rowIndexMapper.isHidden(T.toPhysicalRow(e)))return null;r=T.rowIndexMapper.getRenderableFromVisualIndex(e)}return null===r||null===o||void 0===r||void 0===o?null:T.view.getCellAtCoords(T._createCellCoords(r,o),i)},this.getCoords=function(e){if(!T.view)return null;let t=T.view._wt.wtTable.getCoords(e);if(null===t)return null;let{row:i,col:o}=t,r=i,n=o;return null!==i&&i>=0&&(r=T.rowIndexMapper.getVisualFromRenderableIndex(i)),null!==o&&o>=0&&(n=T.columnIndexMapper.getVisualFromRenderableIndex(o)),T._createCellCoords(r,n)},this.colToProp=function(e){return R.colToProp(e)},this.propToCol=function(e){return R.propToCol(e)},this.toVisualRow=e=>T.rowIndexMapper.getVisualFromPhysicalIndex(e),this.toVisualColumn=e=>T.columnIndexMapper.getVisualFromPhysicalIndex(e),this.toPhysicalRow=e=>T.rowIndexMapper.getPhysicalFromVisualIndex(e),this.toPhysicalColumn=e=>T.columnIndexMapper.getPhysicalFromVisualIndex(e),this.getRowId=function(e){let t=Number.isInteger(e)&&e>=0&&e<T.countRows()?T.toPhysicalRow(e):null;return null===t?null:tK.getRowIdAtPhysicalRow(t)},this.getVisualRowById=function(e){let t=tK.getPhysicalRowById(e),i=null===t?null:T.toVisualRow(t);return null!==i&&i<T.countRows()?i:null},this.getPhysicalRowById=function(e){return tK.getPhysicalRowById(e)},this.getRowIdAtPhysicalRow=function(e){return!Number.isInteger(e)||e<0||e>=T.rowIndexMapper.getNumberOfIndexes()?null:tK.getRowIdAtPhysicalRow(e)},this.getRowIds=function(e){let t=T.countRows(),i=(Array.isArray(e)?e:Array.from({length:t},(e,t)=>t)).map(e=>Number.isInteger(e)&&e>=0&&e<t?T.toPhysicalRow(e):null);return tK.getRowIdsAtPhysicalRows(i)},this.getVisualRowsByIds=function(e){return Array.isArray(e)?e.map(e=>T.getVisualRowById(e)):[]},this.getPhysicalRowsByIds=function(e){return Array.isArray(e)?e.map(e=>tK.getPhysicalRowById(e)):[]},this.setDataAtRowIdProp=function(e,t,i,o){let r=T.getVisualRowById(e);if(null!==r)return T.setDataAtRowProp(r,t,i,o),!0;let n=tK.getPhysicalRowById(e);return null!==n&&(T.setSourceDataAtCell(n,t,i,o),!0)},this.getDataAtCell=function(e,t){return R.get(e,r3(T,t))},this._getDataAtColumnForRows=function(e,t){return R.getAtColumnForRows(e,t)},this.getDataAtRowProp=function(e,t){return R.get(e,t)},this.getDataAtCol=function(e){let t=[],i=R.getRange(T._createCellCoords(0,e),T._createCellCoords(tN(),e),pq.DESTINATION_RENDERER);for(let e=0;e<i.length;e+=1)for(let o=0;o<i[e].length;o+=1)t.push(i[e][o]);return t},this.getDataAtProp=function(e){let t=[],i=R.propToCol(e);if(null===i)return t;let o=R.getRange(T._createCellCoords(0,i),T._createCellCoords(tN(),i),pq.DESTINATION_RENDERER);for(let e=0;e<o.length;e+=1)for(let i=0;i<o[e].length;i+=1)t.push(o[e][i]);return t},this.getSourceData=function(e,t,i,o){return void 0===e?x.getData():x.getByRange(T._createCellCoords(e,t??null),T._createCellCoords(i??null,o??null))},this.getSourceDataArray=function(e,t,i,o){return void 0===e?x.getData(!0):x.getByRange(T._createCellCoords(e,t??null),T._createCellCoords(i??null,o??null),!0)},this.getSourceDataAtCol=function(e){return x.getAtColumn(e)},this.setSourceDataAtCell=function(e,t,i,o){let r=ts(e,t,o);ed.run("change",r,()=>tL.call(this,e,t,i,o))},this.getSourceDataAtRow=function(e){return x.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return x.getAtCell(e,t)},this.getDataAtRow=function(e){return R.getRange(T._createCellCoords(e,0),T._createCellCoords(e,this.countCols()-1),pq.DESTINATION_RENDERER)[0]||[]},this.getDataType=function(e,t,i,o){let r=void 0===e?[0,0,T.countRows(),T.countCols()]:[e,t,i,o],[n,s]=r,[,,l,a]=r,h=null,d=null;void 0===l&&(l=n),void 0===a&&(a=s);let u="mixed";return nF(Math.max(Math.min(n,l),0),Math.max(n,l),e=>{let t=!0;return nF(Math.max(Math.min(s,a),0),Math.max(s,a),i=>(d=T.getCellMetaTransient(e,i).type??null,h?t=h===d:h=d,t)),u=t?d??"mixed":"mixed",t}),u},this.removeCellMeta=function(e,t,i){ed.run("remove_cell_meta",void 0,()=>{let[o,r]=tB(e,t),n=eA.getCellMetaKeyValue(o,r,i);!1!==T.runHooks("beforeRemoveCellMeta",e,t,i,n)&&(tV(o,r,i,()=>{eA.removeCellMeta(o,r,i)}),T.runHooks("afterRemoveCellMeta",e,t,i,n)),n=null})},this.spliceCellsMeta=function(e,t=0,...i){i.length>0&&!Array.isArray(i[0])&&tf("The 3rd argument (cellMetaRows) has to be passed as an array of cell meta objects array."),ed.run("splice_cells_meta",void 0,()=>{if(t>0){let i=T.toPhysicalRow(e);pG(T,!1,i,t),eA.removeRow(i,t)}i.length>0&&en(i.reverse(),t=>{let i=T.toPhysicalRow(e);pG(T,!0,i,1),eA.createRow(i),en(t,(t,i)=>{this.setCellMetaObject(e,i,t)})})}),T.render()},this.setCellMetaObject=function(e,t,i){"object"==typeof i&&ed.run("set_cell_meta",void 0,()=>{tT(i,(i,o)=>{this.setCellMeta(e,t,o,i)})})},this._setCellMetaDeclarative=function(e,t,i,o){let[r,n]=tB(e,t);eA.disableUserDefinedMetaRecording();try{eA.setCellMeta(r,n,i,o)}finally{eA.enableUserDefinedMetaRecording()}},this._removeCellMetaByPhysicalIndex=function(e,t,i){ed.run("remove_cell_meta",void 0,()=>{tV(e,t,i,()=>{eA.removeCellMeta(e,t,i)})})},this._setCellMetaByPhysicalIndex=function(e,t,i,o){ed.run("set_cell_meta",void 0,()=>{tV(e,t,i,()=>{eA.setCellMeta(e,t,i,o)})})},this.setCellMeta=function(e,t,i,o){ed.run("set_cell_meta",void 0,()=>{if(!1===T.runHooks("beforeSetCellMeta",e,t,i,o))return;let[r,n]=tB(e,t);tV(r,n,i,()=>{eA.setCellMeta(r,n,i,o)}),T.runHooks("afterSetCellMeta",e,t,i,o)})},this.getCellsMeta=function(){return eA.getCellsMeta()},this.getCellMeta=function(e,t,i={skipMetaExtension:!1}){let o=T.toPhysicalRow(e),r=T.toPhysicalColumn(t);return null===o&&(o=e),null===r&&(r=t),eA.getCellMeta(o,r,{visualRow:e,visualColumn:t,...i})},this.getCellMetaTransient=function(e,t){let i=T.toPhysicalRow(e),o=T.toPhysicalColumn(t);return null===i&&(i=e),null===o&&(o=t),eA.getCellMetaTransient(i,o,{visualRow:e,visualColumn:t})},this.getColumnMeta=function(e){return eA.getColumnMeta(T.toPhysicalColumn(e))},this.getCellMetaAtRow=function(e){return eA.getCellsMetaAtRow(e)},this.isColumnModificationAllowed=function(){return!("object"===T.dataType||eH.columns)},this.getCellRenderer=function(e,t){let i="number"==typeof e?T.getCellMeta(e,t).renderer:e.renderer;return"string"==typeof i?se(i):eG(i)?se("text"):i},this.getCellEditor=function(e,t){let i="number"==typeof e?T.getCellMeta(e,t).editor:e.editor;return"string"==typeof i?rz(i):eG(i)||!0===i?rz("text"):i},this.getCellValidator=function(e,t){let i="number"==typeof e?T.getCellMeta(e,t):e,o="string"==typeof i.validator?sl(i.validator):i.validator;return sA(i.maxLength)?function(e){if(!e)return sH;let t=eq(e)?sT(e):e;return function(e,i){sH.call(this,e,o=>{o?t.call(this,e,i):i(!1)})}}(o):o},this.validateCells=function(e){this._validateCells(e)},this.validateRows=function(e,t){Array.isArray(e)||tf("validateRows parameter `rows` must be an array"),this._validateCells(t,e)},this.validateColumns=function(e,t){Array.isArray(e)||tf("validateColumns parameter `columns` must be an array"),this._validateCells(t,void 0,e)},this._validateCells=function(e,t,i){let o=e3();e&&(o.onQueueEmpty=e);let r=T.countRows()-1;for(;r>=0;){if(void 0!==t&&-1===t.indexOf(r)){r-=1;continue}let e=T.countCols()-1;for(;e>=0;){if(void 0!==i&&-1===i.indexOf(e)){e-=1;continue}o.addValidatorToQueue();let t=r,n=e,s=T.getCellMetaTransient(t,n);if(T.validateCell(tm(t,n,s),s,e=>{if("boolean"!=typeof e&&tf("Validation error: result is not boolean"),!1===e){o.valid=!1;let e=T.getCellMeta(t,n,{skipMetaExtension:!0});e.valid=!1,o1(e)}o.removeValidatorFormQueue()},"validateCells"),!T)return;e-=1}r-=1}o.checkIfQueueIsEmpty()},this.getRowHeader=function(e){let t=eH.rowHeaders,i=e;if(void 0!==i&&(i=T.runHooks("modifyRowHeader",i)),void 0===i){let e=[];nF(T.countRows()-1,t=>{e.push(T.getRowHeader(t))}),t=e}else Array.isArray(t)&&void 0!==t[i]?t=t[i]:o3(t)?t=t(i):t&&"string"!=typeof t&&"number"!=typeof t&&(t=i+1);return t},this.hasRowHeaders=function(){return!!eH.rowHeaders},this.hasColHeaders=function(){if(void 0!==eH.colHeaders&&null!==eH.colHeaders)return!!eH.colHeaders;for(let e=0,t=T.countCols();e<t;e++)if(T.getColHeader(e))return!0;return!1};let tz=!1,tW=null;this.getColHeader=function(e,t=-1){let i=T.runHooks("modifyColHeader",e);if(void 0===i){let e=[],t=T.countCols();for(let i=0;i<t;i++)e.push(T.getColHeader(i));return e}let o=eH.colHeaders,r=eH.columns,n="function"==typeof r?r:null,s=T.toPhysicalColumn(i),l=null;if(null!==n){let e=T.countCols();if(null===tW||tW.columns!==n||tW.columnsLen!==e){let t=[];for(let i=0;i<e;i++)n(i)&&t.push(i);tW={columns:n,columnsLen:e,indexes:t}}l=n(tW.indexes[s])??null}return!1===eH.colHeaders?o=null:l&&l.title?o=l.title:r&&!o3(r)&&r[s]&&r[s].title?o=r[s].title:Array.isArray(eH.colHeaders)&&void 0!==eH.colHeaders[s]?o=eH.colHeaders[s]:o3(eH.colHeaders)?o=eH.colHeaders(s):eH.colHeaders&&"string"!=typeof eH.colHeaders&&"number"!=typeof eH.colHeaders&&(o=di(i)),o=T.runHooks("modifyColumnHeaderValue",o,e,t)},this._getColWidthFromSettings=function(e){let t;if(e>=0&&(t=T.getCellMeta(0,e).width),null!=(t??=eH.colWidths)){switch(typeof t){case"object":{if(e<0){t=t[e];break}let i=T.toPhysicalColumn(e),o=null===i?e:tY.getDeclaredIndex(i,t);t=null===o?void 0:t[o];break}case"function":t=t((e>=0?T.toPhysicalColumn(e):null)??e)}"string"==typeof t&&(t=Number.parseInt(t,10))}return t??void 0},this.getColWidth=function(e,t){let i=T._getColWidthFromSettings(e);return void 0===(i=T.runHooks("modifyColWidth",i,e,t))&&(i=50),i};let t$=(e,t)=>{let i=eH[e];if("object"!=typeof i&&"function"!=typeof i||t<0)return sF(i,t);let o=T.toPhysicalRow(t);if(null===o)return;if(!Array.isArray(i))return sF(i,o);let r=tX.getDeclaredIndex(e,o);return null===r?void 0:sF(i,r)};this._isRowHeightExact=function(e){return!sL(eH.autoRowSize)&&sN(t$("rowHeights",e))},this._getRowHeightFromSettings=function(e){let t=t$("rowHeights",e),i=sN(t);if(i&&!sL(eH.autoRowSize))return t;let o=T.stylesHandler.getDefaultRowHeight(e),r=void 0!==eH.rowHeights&&null!==eH.rowHeights?t:void 0,n=i?t:t$("minRowHeights",e)??r;return null!=n&&null!==o&&n<o?o:n},this.getRowHeight=function(e,t){let i=T._getRowHeightFromSettings(e);return T.runHooks("modifyRowHeight",i,e,t)},this.countSourceRows=function(){return x.countRows()},this.countSourceCols=function(){return x.countFirstRowKeys()},this.countRows=function(){return R.getLength()},this.countCols=function(){return Math.min(eH.maxCols,T.columnIndexMapper.getNotTrimmedIndexesLength())},this.countRenderedRows=function(){let e=T.view;return e?._wt.drawn?e._wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){let e=T.view;return e?._wt.drawn?e._wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){let e=T.view;return e?._wt.drawn?e._wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){let e=T.view;return e?._wt.drawn?e._wt.wtTable.getVisibleColumnsCount():-1},this.countRowHeaders=function(){let e=T.view;return e?e.getRowHeadersCount():0},this.countColHeaders=function(){let e=T.view;return e?e.getColumnHeadersCount():0},this.countEmptyRows=function(e=!1){let t=0;return nN(T.countRows()-1,i=>{if(T.isEmptyRow(i))t+=1;else if(!0===e)return!1}),t},this.countEmptyCols=function(e=!1){let t=0;return nN(T.countCols()-1,i=>{if(T.isEmptyCol(i))t+=1;else if(!0===e)return!1}),t},this.isEmptyRow=function(e){return eH.isEmptyRow.call(T,e)},this.isEmptyCol=function(e){return eH.isEmptyCol.call(T,e)},this.selectCell=function(e,t,i,o,r=!0,n=!0){if(eG(e)||eG(t))return!1;let s=[[null==e||Number.isNaN(Number(e))?0:Number(e),null==t||"number"==typeof t&&Number.isNaN(t)?0:t,eG(i)?void 0:i,eG(o)?void 0:o]];return T.selectCells(s,r,n)},this.selectCells=function(e=[[]],t=!0,i=!0){let o;if(!T.view)return!1;!1===t&&I.suspend(),!1===i&&k.suspend();try{o=e_.selectCells(e)}finally{I.resume(),!1===i&&k.resume()}return T&&o&&i&&T.listen(),o};let tU=(e,t)=>{if(!1!==e)return t();k.suspend();try{return t()}finally{k.resume()}};this.selectColumns=function(e,t=e,i,o=!0){return!!T.view&&tU(o,()=>e_.selectColumns(e,t,i))},this.selectRows=function(e,t=e,i,o=!0){return!!T.view&&tU(o,()=>e_.selectRows(e,t,i))},this.deselectCell=function(){e_.deselect()},this.selectAll=function(e=!0,t=e,i,o=!0){T.view&&(I.skipNextScrollCycle(),tU(o,()=>{e_.selectAll(e,t,i)}))};let tG=(e,t)=>e.getNearestNotHiddenIndex(t,1,!0);this.scrollViewportTo=function(e,t){if(!T.view)return!1;"number"==typeof e&&(e={row:arguments[0],col:arguments[1],verticalSnap:arguments[2]?"bottom":"top",horizontalSnap:arguments[3]?"end":"start",considerHiddenIndexes:arguments[4]??!0});let{row:i,col:o,considerHiddenIndexes:r}=e??{},n=i,s=o;if(o3(t)&&this.addHookOnce("afterScroll",t),void 0===r||r){var l,a;let e,t,r,h,d=(l=i,a=o,e=void 0!==l&&Number.isInteger(l)&&l>=0,t=void 0!==a&&Number.isInteger(a)&&a>=0,r=e?tG(T.rowIndexMapper,l):void 0,h=t?tG(T.columnIndexMapper,a):void 0,null!==r&&null!==h&&{renderableRow:e?T.rowIndexMapper.getRenderableFromVisualIndex(r)??void 0:l,renderableColumn:t?T.columnIndexMapper.getRenderableFromVisualIndex(h)??void 0:a});if(!1===d)return!1;n=d.renderableRow,s=d.renderableColumn}let h=Number.isInteger(n),d=Number.isInteger(s),u=!1;return h&&n>=0&&d&&s>=0?u=T.view.scrollViewport(T._createCellCoords(n,s),e.horizontalSnap,e.verticalSnap):h&&n>=0&&(d&&s<0||!d)?u=T.view.scrollViewportVertically(n,e.verticalSnap):d&&s>=0&&(h&&n<0||!h)&&(u=T.view.scrollViewportHorizontally(s,e.horizontalSnap)),o3(t)&&(u?this.view.render():(this.removeHook("afterScroll",t),this._registerMicrotask(()=>t()))),u},this.scrollToFocusedCell=function(e){if(!T.selection.isSelected())return!1;o3(e)&&T.addHookOnce("afterScroll",e);let{highlight:t}=T.getSelectedRangeActive(),i=T.scrollViewportTo(t.toObject());return i?T.view.render():o3(e)&&(T.removeHook("afterScroll",e),T._registerMicrotask(()=>e())),i},this.destroy=function(){j=!0,T.suspendRender(),T._clearTimeouts(),T._clearMicrotasks(),ed.destroy(),e_?.suspendGridTrackingFits(),eh?.disconnect(),eh=null,ev?.disconnect(),ev=null,ex?.(),ex=null,eE?.disconnect(),eE=null,T.view&&T.view.destroy(),x&&x.destroy(),x=null,sy(this)&&(!function(e){if(0===m1.length)return;let t=e?m1.lastIndexOf(e):m1.length-1;if(-1===t)return;if(m1.splice(t,1),0===m1.length){mJ.remove(),mJ=null,m0.remove(),m0=null;return}let i=mJ.parentElement;i&&m1.includes(i)||m1[0].append(mJ,m0)}(T.rootPortalElement),this.getFocusScopeManager().destroy(),tQ?.destroy(),T.themeManager?.destroy()),this.getShortcutManager().destroy(),eP.clear(),eA.clearCache(),w8.delete(this.guid),A.destroy(),M&&M.destroy(),T.rootContainer&&iX(T.rootContainer),T.rootPortalElement&&T.rootPortalElement.remove(),T.batchExecution(()=>{T.rowIndexMapper.destroy(),T.columnIndexMapper.destroy(),eD.getItems().forEach(([,e])=>{e.hot&&e.destroy()}),eD.clear(),T.runHooks("afterDestroy")},!0),rI.getSingleton().destroy(T),tT(T,(e,t,i)=>{var o;o3(e)?i[t]=(o=t,()=>{tf(`The "${o}" method cannot be called because this Handsontable instance has been destroyed`)}):"guid"!==t&&(i[t]=null)}),T.isDestroyed=!0,R&&R.destroy(),R=null,E=null,e_?.destroy(),e_=null,M=null,T=null},this.getActiveEditor=function(){return M?.getActiveEditor()};let tj=e=>{let t=T.view;return t?t[e]():null};this.getFirstRenderedVisibleRow=function(){return tj("getFirstRenderedVisibleRow")},this.getLastRenderedVisibleRow=function(){return tj("getLastRenderedVisibleRow")},this.getFirstRenderedVisibleColumn=function(){return tj("getFirstRenderedVisibleColumn")},this.getLastRenderedVisibleColumn=function(){return tj("getLastRenderedVisibleColumn")},this.getFirstFullyVisibleRow=function(){return tj("getFirstFullyVisibleRow")},this.getLastFullyVisibleRow=function(){return tj("getLastFullyVisibleRow")},this.getFirstFullyVisibleColumn=function(){return tj("getFirstFullyVisibleColumn")},this.getLastFullyVisibleColumn=function(){return tj("getLastFullyVisibleColumn")},this.getFirstPartiallyVisibleRow=function(){return tj("getFirstPartiallyVisibleRow")},this.getLastPartiallyVisibleRow=function(){return tj("getLastPartiallyVisibleRow")},this.getFirstPartiallyVisibleColumn=function(){return tj("getFirstPartiallyVisibleColumn")},this.getLastPartiallyVisibleColumn=function(){return tj("getLastPartiallyVisibleColumn")},this.getPlugin=function(e){return eD.getItem(r5(e))},this.getPluginName=function(e){return eD.getId(e)},this.getInstance=function(){return T},this.addHook=function(e,t,i){rI.getSingleton().add(e,t,T,i)},this.hasHook=function(e){return rI.getSingleton().has(e,T)||rI.getSingleton().has(e)},this.addHookOnce=function(e,t,i){rI.getSingleton().once(e,t,T,i)},this.removeHook=function(e,t){rI.getSingleton().remove(e,t,T)},this.runHooks=function(e,t,i,o,r,n,s){return rI.getSingleton().run(T,e,t,i,o,r,n,s)},this.getTranslatedPhrase=function(e,t){return gB(eH.language,e,t)},this.toHTML=()=>nv(this),this.toTableElement=()=>{let e=T.rootDocument;return nx(T,e)},this.timeouts=[],this.useTheme=e=>{let t=!!L;T.themeManager&&mX(e)&&T.themeManager.getClassName()!==e&&T.themeManager.destroy(),this.stylesHandler.useTheme(e??void 0);let i=this.stylesHandler.getThemeName();!t&&i&&(mK(this.rootContainer)&&(ij(this.rootContainer,/ht-theme-.*/g),iG(this.rootContainer,i)),T.render(),T.scrollViewportTo(0,0)),this.runHooks("afterSetTheme",i,t)},this.getCurrentThemeName=()=>T.stylesHandler.getThemeName()??null,this.getTableHeight=()=>T.rootElement.offsetHeight,this.getTableWidth=()=>T.rootElement.offsetWidth,this._registerTimeout=function(e,t=0){if("function"!=typeof e)return this.timeouts.push(e),e;let i=this.timeouts,o=setTimeout(()=>{let t=i.indexOf(o);-1!==t&&i.splice(t,1),e()},t);return this.timeouts.push(o),o},this._clearTimeouts=function(){en(this.timeouts,e=>{clearTimeout(e)})},this.microtasks=[],this._registerMicrotask=function(e){let t={cancelled:!1};this.microtasks.push(t),this.rootWindow.queueMicrotask(()=>{if(t.cancelled)return;let i=this.microtasks.indexOf(t);-1!==i&&this.microtasks.splice(i,1),e()})},this._clearMicrotasks=function(){en(this.microtasks,e=>{e.cancelled=!0}),this.microtasks.length=0},this._getEditorManager=function(){return M},this._getDataSource=function(){return x},this._alignInsertedRowSizes=function(e,t){tX.alignInsertedRows(e,t)},this._readRowSizeOrigins=function(){return tX.readOrigins()},this._writeRowSizeOrigins=function(e){tX.writeOrigins(e)},this._getMetaManager=function(){return eA};let tq=(({ownerWindow:e,handleEvent:t,beforeKeyDown:i,afterKeyDown:o})=>{let r=nK({errorIdExists:e=>`The "${e}" context name is already registered.`}),n="grid",s=(e,t="table")=>{let i=((e,t="table")=>{let i=nK({errorIdExists:t=>`The "${t}" shortcut is already registered in the "${e}" context.`}),o=null,r=({keys:e,callback:t,group:o,runOnlyIf:r=()=>!0,captureCtrl:n=!1,preventDefault:s=!0,stopPropagation:l=!1,relativeToGroup:a,position:h,forwardToContext:d}={})=>{eG(o)&&tf("You need to define the shortcut's group."),!1===o3(t)&&tf("The shortcut's callback needs to be a function."),!1===Array.isArray(e)&&tf(eb`Pass the shortcut\'s keys as an array of arrays,\x20
96
+ `)),this.themeStyles.parentNode!==this.hot.rootWrapperElement&&this.hot.rootWrapperElement.prepend(this.themeStyles)}getClassName(){return this.themeClassName}getOverrides(){return{...this.#hl}}getColorScheme(){return this.#hl.colorScheme??this.themeConfig?.colorScheme}getDensityType(){return this.#hl.density??this.themeConfig?.density?.type}setOverrides(e){return!!this.#hh(e)&&(this.#hf(),!0)}update(e){this.hot&&(void 0===e.getThemeConfig&&tf('[ThemeManager] The "theme" option must be an instance of ThemeBuilder.'),this.themeConfig=e.getThemeConfig(),this.themeClassName=`ht-theme-${this.themeConfig.name}`,this.#hg(),"function"==typeof e.subscribe&&(this.#hs?.(),this.#hs=e.subscribe(e=>{this.hot?.stylesHandler&&(this.themeConfig=e,this.#hg(),this.#hf(),this.hot.stylesHandler.clearCache(),this.hot.render(),this.hot.runHooks("afterSetTheme",this.themeClassName,!1))})),this.mount(),this.hot.runHooks("afterSetTheme",this.themeClassName,!0))}mount(){this.#hw(),this.#hf()}unmount(){this.#hb(),this.themeStyles&&this.themeStyles.remove()}#hw(){[this.hot?.rootWrapperElement,this.hot?.rootPortalElement].forEach(e=>{e&&iG(e,this.scopeClassName)})}#hb(){[this.hot?.rootWrapperElement,this.hot?.rootPortalElement].forEach(e=>{e&&ij(e,this.scopeClassName)})}destroy(){this.#hs?.(),this.unmount(),this.hot.themeManager=null}}let wl={size_0:"0px",size_0_5:"2px",size_1:"4px",size_2:"8px",size_1_5:"6px",size_3:"12px",size_4:"16px",size_5:"20px",size_6:"24px",size_7:"28px",size_8:"32px",size_9:"36px",size_10:"40px",size_0_25:"1px"},wa={default:{cellVertical:"sizing.size_1",cellHorizontal:"sizing.size_2",barsHorizontal:"sizing.size_4",barsVertical:"sizing.size_2",gap:"sizing.size_1",buttonHorizontal:"sizing.size_3",buttonVertical:"sizing.size_1_5",dialogHorizontal:"sizing.size_2",dialogVertical:"sizing.size_2",inputHorizontal:"sizing.size_3",inputVertical:"sizing.size_1_5",menuVertical:"sizing.size_2",menuHorizontal:"sizing.size_0",menuItemVertical:"sizing.size_1",menuItemHorizontal:"sizing.size_3"},compact:{cellVertical:"sizing.size_0_5",cellHorizontal:"sizing.size_1_5",barsHorizontal:"sizing.size_2",barsVertical:"sizing.size_1",gap:"sizing.size_0_5",buttonHorizontal:"sizing.size_2",buttonVertical:"sizing.size_0_5",dialogHorizontal:"sizing.size_1_5",dialogVertical:"sizing.size_1_5",inputHorizontal:"sizing.size_2",inputVertical:"sizing.size_0_5",menuVertical:"sizing.size_2",menuHorizontal:"sizing.size_0",menuItemVertical:"sizing.size_0_5",menuItemHorizontal:"sizing.size_2"},comfortable:{cellVertical:"sizing.size_2",cellHorizontal:"sizing.size_3",barsHorizontal:"sizing.size_4",barsVertical:"sizing.size_2",gap:"sizing.size_1_5",buttonHorizontal:"sizing.size_4",buttonVertical:"sizing.size_2",dialogHorizontal:"sizing.size_3",dialogVertical:"sizing.size_3",inputHorizontal:"sizing.size_4",inputVertical:"sizing.size_2",menuVertical:"sizing.size_3",menuHorizontal:"sizing.size_0",menuItemVertical:"sizing.size_2",menuItemHorizontal:"sizing.size_2"}},wh=["sizing","icons","colors","tokens"],wd=["name","icons","colors","tokens"];class wu{#hC;#hy;#hS=new Set;#hv="auto";#hR="default";constructor(e){wi(e,"themeConfig",{requiredFields:wd}),this.#hC={name:void 0,sizing:wl,density:{type:this.#hR,sizes:wa},icons:{},colors:{},tokens:{},colorScheme:this.#hv},this.#hx(e),this.#hC=this.#hy}#hE(){let e=this.getThemeConfig();this.#hS.forEach(t=>t(e))}#hM(e,t){if("string"!=typeof t){let i=tN(e.density,t);e.density=i,void 0!==t.type&&(this.#hR=t.type,this.#hC?.density&&(this.#hC.density.type=t.type))}else e.density.type=t,this.#hR=t,this.#hC?.density&&(this.#hC.density.type=t)}#hx(e){let t=tS(this.#hC);void 0!==e.name&&(void 0!==this.#hC.name?ir('[ThemeBuilder] The "name" property can only be set during `registerTheme()` and cannot be updated via `params()`.'):t.name=e.name),wh.forEach(i=>{void 0!==e[i]&&tM(e[i])&&(t[i]=tN(t[i],e[i]))}),void 0!==e.density&&this.#hM(t,e.density),void 0!==e.colorScheme&&(t.colorScheme=e.colorScheme,this.#hv=e.colorScheme,this.#hC?.colorScheme&&(this.#hC.colorScheme=e.colorScheme)),this.#hy=t}subscribe(e){return"function"!=typeof e&&tf("[ThemeBuilder] listener must be a function."),this.#hS.add(e),()=>this.#hS.delete(e)}params(e){return wi(e,"params"),this.#hx(e),this.#hE(),this}setColorScheme(e){return this.#hv=f9(e),this.#hy.colorScheme=this.#hv,this.#hC.colorScheme=this.#hv,this.#hE(),this}setDensityType(e){return this.#hR=we(e),this.#hy.density.type=this.#hR,this.#hC.density.type=this.#hR,this.#hE(),this}getThemeConfig(){return this.#hy}}let{hasItem:wc,getItem:wg,getNames:wp,getValues:wm,register:wf}=rH("themes");function ww(e){return wc(e)}function wb(e){return wc(e)?wg(e):void ir(`Theme "${e}" is not registered. Please ensure it is registered before using it.`)}function wC(){return wp()}function wy(){return wm()}function wS(e,t){let i=e,o=tS(t);return"string"==typeof e&&tM(t)?o.name=e:"string"!=typeof e&&tM(e)&&(i=(o=tS(e)).name??""),{themeName:i,themeConfigObject:o}}function wv(e,t){let{themeName:i,themeConfigObject:o}=wS(e,t),r=new wu(o);return wc(i)?(ir(`Theme "${i}" is already registered. Registration skipped.`),wb(i)):(wf(i,r),r)}function wR(e,t){let{themeName:i,themeConfigObject:o}=wS(e,t);if(!wc(i))return void ir(`Theme "${i}" is not registered. Cannot reinitialize a non-existent theme.`);let r=new wu(o);return wf(i,r),r}let wx={name:"main",density:"default",icons:{arrowRight:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.64648 10.9393L9.93938 7.64644L6.64648 4.35354' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",arrowRightWithBar:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.9292 4.64188L8.27934 7.99203L4.9292 11.3422M11.0711 4.08353V11.3422' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E",arrowLeft:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.49268 11.2929L6.19978 8.00001L9.49268 4.70712' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",arrowLeftWithBar:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.0713 4.64188L7.72115 7.99203L11.0713 11.3422M4.92936 4.08353L4.92936 11.3422' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E",arrowDown:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.6'%3E%3Cpath d='M11.5859 6L8.29304 9.29289L5.00015 6' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E",menu:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.0002 6.66663C11.4262 6.66663 11.6487 7.15963 11.3917 7.47813L11.3537 7.52013L8.35372 10.5201C8.26762 10.6062 8.15307 10.6579 8.03156 10.6656C7.91005 10.6732 7.78992 10.6363 7.69372 10.5616L7.64672 10.5201L4.64672 7.52013L4.60522 7.47313L4.57822 7.43463L4.55122 7.38663L4.54272 7.36863L4.52922 7.33513L4.51322 7.28113L4.50822 7.25463L4.50322 7.22463L4.50122 7.19613V7.13713L4.50372 7.10813L4.50822 7.07813L4.51322 7.05213L4.52922 6.99813L4.54272 6.96463L4.57772 6.89863L4.61022 6.85363L4.64672 6.81313L4.69372 6.77163L4.73222 6.74463L4.78022 6.71763L4.79822 6.70913L4.83172 6.69563L4.88572 6.67963L4.91222 6.67463L4.94222 6.66963L4.97072 6.66763L11.0002 6.66663Z' fill='currentColor'/%3E%3C/svg%3E%0A",selectArrow:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.0002 6.66663C11.4262 6.66663 11.6487 7.15963 11.3917 7.47813L11.3537 7.52013L8.35372 10.5201C8.26762 10.6062 8.15307 10.6579 8.03156 10.6656C7.91005 10.6732 7.78992 10.6363 7.69372 10.5616L7.64672 10.5201L4.64672 7.52013L4.60522 7.47313L4.57822 7.43463L4.55122 7.38663L4.54272 7.36863L4.52922 7.33513L4.51322 7.28113L4.50822 7.25463L4.50322 7.22463L4.50122 7.19613V7.13713L4.50372 7.10813L4.50822 7.07813L4.51322 7.05213L4.52922 6.99813L4.54272 6.96463L4.57772 6.89863L4.61022 6.85363L4.64672 6.81313L4.69372 6.77163L4.73222 6.74463L4.78022 6.71763L4.79822 6.70913L4.83172 6.69563L4.88572 6.67963L4.91222 6.67463L4.94222 6.66963L4.97072 6.66763L11.0002 6.66663Z' fill='currentColor'/%3E%3C/svg%3E%0A",arrowNarrowUp:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.00008 12.6667L8.00008 3.33335M8.00008 3.33335L5.33342 6.00002M8.00008 3.33335L10.6667 6.00002' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",arrowNarrowDown:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.00004 3.33331V12.6666M8.00004 12.6666L10.6667 9.99998M8.00004 12.6666L5.33337 9.99998' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",check:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.33337 8.00002L6.66671 11.3334L13.3334 4.66669' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",checkbox:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8L7 10L11 6' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",caretHiddenLeft:"data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.08482 1.35771L6.11503 1.3551H6.17649L6.2067 1.35771L6.23795 1.36239L6.26503 1.3676L6.32128 1.38427L6.35618 1.39833L6.42493 1.43479L6.4718 1.46864L6.51399 1.50667L6.55722 1.55562L6.58534 1.59573L6.61347 1.64573L6.62232 1.66448L6.63639 1.69937L6.65305 1.75562L6.65826 1.78323L6.66347 1.81448L6.66555 1.84417L6.66659 1.87489V8.12489C6.66659 8.56864 6.15305 8.80042 5.82128 8.53271L5.77753 8.49312L2.65253 5.36812C2.56286 5.27844 2.50899 5.15912 2.50103 5.03254C2.49307 4.90596 2.53157 4.78083 2.6093 4.68062L2.65253 4.63167L5.77753 1.50667L5.82649 1.46344L5.86659 1.43531L5.91659 1.40719L5.93534 1.39833L5.97024 1.38427L6.02649 1.3676L6.05409 1.36239L6.08482 1.35771Z' fill='currentColor'/%3E%3C/svg%3E",caretHiddenRight:"data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.33337 1.87499C3.33337 1.43124 3.84692 1.19947 4.17869 1.46718L4.22244 1.50676L7.34744 4.63176C7.43711 4.72145 7.49098 4.84077 7.49894 4.96735C7.5069 5.09392 7.4684 5.21905 7.39067 5.31926L7.34744 5.36822L4.22244 8.49322L4.17348 8.53645L4.13337 8.56457L4.08337 8.5927L4.06462 8.60155L4.02973 8.61562L3.97348 8.63228L3.94587 8.63749L3.91462 8.6427L3.88494 8.64478L3.85421 8.64582L3.82348 8.64478L3.79327 8.64218L3.76202 8.63749L3.73494 8.63228L3.67869 8.61562L3.64379 8.60155L3.57504 8.5651L3.52817 8.53124L3.48598 8.49322L3.44275 8.44426L3.41462 8.40416L3.3865 8.35416L3.37764 8.33541L3.36358 8.30051L3.34692 8.24426L3.34171 8.21666L3.3365 8.18541L3.33442 8.15572L3.33337 1.87499Z' fill='currentColor'/%3E%3C/svg%3E",caretHiddenUp:"data:image/svg+xml;charset=utf-8,%3Csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.76425 2.43099C3.82165 2.3736 3.89801 2.33913 3.97902 2.33403C4.06003 2.32894 4.14012 2.35358 4.20425 2.40333L4.23558 2.43099L6.23558 4.43099L6.26325 4.46233L6.28125 4.48799L6.29925 4.51999L6.30492 4.53199L6.31392 4.55433L6.32458 4.59033L6.32792 4.60799L6.33125 4.62799L6.33258 4.64699L6.33325 4.66666L6.33258 4.68633L6.33092 4.70566L6.32792 4.72566L6.32458 4.74299L6.31392 4.77899L6.30492 4.80133L6.28158 4.84533L6.25992 4.87533L6.23558 4.90233L6.20425 4.92999L6.17858 4.94799L6.14658 4.96599L6.13458 4.97166L6.11225 4.98066L6.07625 4.99133L6.05858 4.99466L6.03858 4.99799L6.01958 4.99933L5.99992 4.99999H1.99992C1.71592 4.99999 1.56758 4.67133 1.73892 4.45899L1.76425 4.43099L3.76425 2.43099Z' fill='currentColor'/%3E%3C/svg%3E%0A",caretHiddenDown:"data:image/svg+xml;charset=utf-8,%3Csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.9999 3C6.2839 3 6.43224 3.32867 6.2609 3.541L6.23557 3.569L4.23557 5.569C4.17817 5.62639 4.10181 5.66087 4.0208 5.66596C3.93979 5.67106 3.8597 5.64642 3.79557 5.59667L3.76424 5.569L1.76424 3.569L1.73657 3.53767L1.71857 3.512L1.70057 3.48L1.6949 3.468L1.6859 3.44567L1.67524 3.40967L1.6719 3.392L1.66857 3.372L1.66724 3.353V3.31367L1.6689 3.29433L1.6719 3.27433L1.67524 3.257L1.6859 3.221L1.6949 3.19867L1.71824 3.15467L1.7399 3.12467L1.76424 3.09767L1.79557 3.07L1.82124 3.052L1.85324 3.034L1.86524 3.02833L1.88757 3.01933L1.92357 3.00867L1.94124 3.00533L1.96124 3.002L1.98024 3.00067L5.9999 3Z' fill='currentColor'/%3E%3C/svg%3E%0A",collapseOff:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.33325 8H11.6666' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",collapseOn:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.49988 11.6667C7.49988 11.9428 7.72374 12.1667 7.99988 12.1667C8.27602 12.1667 8.49988 11.9428 8.49988 11.6667V8.50002H11.6666C11.9427 8.50002 12.1666 8.27616 12.1666 8.00002C12.1666 7.72388 11.9427 7.50002 11.6666 7.50002H8.49988V4.33337C8.49988 4.05723 8.27602 3.83337 7.99988 3.83337C7.72374 3.83337 7.49988 4.05723 7.49988 4.33337V7.50002H4.33325C4.05711 7.50002 3.83325 7.72388 3.83325 8.00002C3.83325 8.27616 4.05711 8.50002 4.33325 8.50002H7.49988V11.6667Z' fill='currentColor'/%3E%3C/svg%3E%0A",radio:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='4' fill='currentColor'/%3E%3C/svg%3E%0A",chipClose:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 4L4 12M4 4L12 12' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",search:"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='none'%3E%3Cg opacity='0.5'%3E%3Cpath d='M28 28L20 20M4 13.3333C4 14.559 4.24141 15.7727 4.71046 16.905C5.1795 18.0374 5.86699 19.0663 6.73367 19.933C7.60035 20.7997 8.62925 21.4872 9.76162 21.9562C10.894 22.4253 12.1077 22.6667 13.3333 22.6667C14.559 22.6667 15.7727 22.4253 16.905 21.9562C18.0374 21.4872 19.0663 20.7997 19.933 19.933C20.7997 19.0663 21.4872 18.0374 21.9562 16.905C22.4253 15.7727 22.6667 14.559 22.6667 13.3333C22.6667 12.1077 22.4253 10.894 21.9562 9.76162C21.4872 8.62925 20.7997 7.60035 19.933 6.73367C19.0663 5.86699 18.0374 5.1795 16.905 4.71046C15.7727 4.24141 14.559 4 13.3333 4C12.1077 4 10.894 4.24141 9.76162 4.71046C8.62925 5.1795 7.60035 5.86699 6.73367 6.73367C5.86699 7.60035 5.1795 8.62925 4.71046 9.76162C4.24141 10.894 4 12.1077 4 13.3333Z' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E",plus:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.49988 11.6667C7.49988 11.9428 7.72374 12.1667 7.99988 12.1667C8.27602 12.1667 8.49988 11.9428 8.49988 11.6667V8.50002H11.6666C11.9427 8.50002 12.1666 8.27616 12.1666 8.00002C12.1666 7.72388 11.9427 7.50002 11.6666 7.50002H8.49988V4.33337C8.49988 4.05723 8.27602 3.83337 7.99988 3.83337C7.72374 3.83337 7.49988 4.05723 7.49988 4.33337V7.50002H4.33325C4.05711 7.50002 3.83325 7.72388 3.83325 8.00002C3.83325 8.27616 4.05711 8.50002 4.33325 8.50002H7.49988V11.6667Z' fill='currentColor'/%3E%3C/svg%3E%0A",menuList:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath transform='translate(3.833 4.5)' d='M7.83301 6C8.10915 6 8.33301 6.22386 8.33301 6.5C8.33281 6.77597 8.10903 7 7.83301 7H0.5C0.22398 7 0.000197811 6.77597 0 6.5C0 6.22386 0.223858 6 0.5 6H7.83301ZM7.83301 3C8.10915 3 8.33301 3.22386 8.33301 3.5C8.33281 3.77597 8.10903 4 7.83301 4H0.5C0.22398 4 0.000197811 3.77597 0 3.5C0 3.22386 0.223858 3 0.5 3H7.83301ZM7.83301 0C8.10915 0 8.33301 0.223858 8.33301 0.5C8.33281 0.775974 8.10903 1 7.83301 1H0.5C0.22398 1 0.000197811 0.775974 0 0.5C0 0.223858 0.223858 0 0.5 0H7.83301Z' fill='currentColor'/%3E%3C/svg%3E"},colors:{white:"#ffffffff",black:"#000000ff",primary:{100:"#6180ffff",200:"#5573f0ff",300:"#4669f6ff",400:"#2e56fcff",500:"#1a42e8ff",600:"#1535bcff"},palette:{50:"#f7f7f9ff",100:"#e7e7e9ff",200:"#b9b9bbff",300:"#a3a3a3ff",400:"#68696cff",500:"#404144ff",600:"#313132ff",700:"#282829ff",800:"#222222ff",900:"#1e1e1fff",950:"#050506ff"},transparent:"#ffffff00"},tokens:{fontFamily:"Inter",fontSize:"14px",fontSizeSmall:"12px",lineHeight:"20px",lineHeightSmall:"18px",fontWeight:"400",letterSpacing:"0px",borderColor:["colors.palette.100","colors.palette.700"],accentColor:["colors.primary.500","colors.primary.300"],foregroundColor:["colors.palette.800","colors.palette.200"],foregroundSecondaryColor:["colors.palette.400","colors.palette.300"],backgroundColor:["colors.white","colors.palette.950"],backgroundSecondaryColor:["colors.palette.50","colors.palette.900"],placeholderColor:["colors.palette.300","colors.palette.400"],readOnlyColor:["colors.palette.400","colors.palette.300"],disabledColor:["colors.palette.300","colors.palette.400"],gapSize:"density.gap",iconSize:"sizing.size_4",tableTransition:"0.15s",borderRadius:"sizing.size_1",barForegroundColor:"tokens.foregroundColor",barBackgroundColor:"tokens.backgroundSecondaryColor",barHorizontalPadding:"density.barsHorizontal",barVerticalPadding:"density.barsVertical",shadowColor:["colors.palette.800","colors.palette.200"],shadowX:"sizing.size_0",shadowY:"sizing.size_2",shadowBlur:"sizing.size_4",shadowOpacity:"8%",cellHorizontalPadding:"density.cellHorizontal",cellVerticalPadding:"density.cellVertical",cellHorizontalBorderColor:"tokens.borderColor",cellVerticalBorderColor:"tokens.borderColor",cellSelectionBorderColor:"tokens.accentColor",cellSelectionBackgroundColor:["colors.primary.400","colors.primary.200"],rowSelectionBackgroundColor:["#1a42e81a","#4669f633"],cellSuccessBackgroundColor:"#37bc6c33",cellErrorBackgroundColor:"#fa4d3233",cellReadOnlyBackgroundColor:"tokens.backgroundSecondaryColor",cellAutofillSize:"sizing.size_1_5",cellAutofillHitAreaSize:"sizing.size_3",cellAutofillBorderWidth:"sizing.size_0_25",cellAutofillBorderRadius:"sizing.size_1",cellAutofillBorderColor:"tokens.backgroundColor",cellAutofillBackgroundColor:"tokens.accentColor",cellAutofillFillBorderColor:"tokens.foregroundColor",customBordersDefaultColor:["colors.black","colors.palette.200"],cellEditorBorderWidth:"2px",cellEditorBorderColor:"tokens.accentColor",cellEditorForegroundColor:["colors.palette.950","colors.white"],cellEditorBackgroundColor:"tokens.backgroundColor",cellEditorShadowBlurRadius:"0px",cellEditorShadowColor:"tokens.accentColor",cellMobileHandleSize:"sizing.size_3",cellMobileHandleBorderWidth:"sizing.size_0_25",cellMobileHandleBorderRadius:"sizing.size_3",cellMobileHandleBorderColor:"tokens.accentColor",cellMobileHandleBackgroundColor:"tokens.accentColor",cellMobileHandleBackgroundOpacity:"40%",cellSelectionHandleSize:"sizing.size_2",cellSelectionHandleLength:"sizing.size_4",cellSelectionHandleBorderWidth:"sizing.size_0_25",cellSelectionHandleBorderRadius:"sizing.size_3",cellSelectionHandleBorderColor:"tokens.accentColor",cellSelectionHandleBackgroundColor:"tokens.backgroundColor",headerFontWeight:"tokens.fontWeight",headerForegroundColor:"tokens.foregroundColor",headerBackgroundColor:"tokens.backgroundSecondaryColor",headerHighlightedShadowSize:"0px",headerHighlightedForegroundColor:["colors.palette.950","colors.white"],headerHighlightedBackgroundColor:["colors.palette.100","colors.palette.700"],headerActiveBorderColor:["colors.primary.400","colors.primary.200"],headerActiveForegroundColor:"colors.white",headerActiveBackgroundColor:"tokens.accentColor",headerFilterBackgroundColor:"tokens.cellSuccessBackgroundColor",headerRowForegroundColor:"tokens.foregroundColor",headerRowBackgroundColor:"tokens.backgroundSecondaryColor",headerRowHighlightedForegroundColor:["colors.palette.950","colors.white"],headerRowHighlightedBackgroundColor:["colors.palette.100","colors.palette.700"],headerRowActiveForegroundColor:"colors.white",headerRowActiveBackgroundColor:"tokens.accentColor",rowHeaderOddBackgroundColor:"tokens.headerRowBackgroundColor",rowHeaderEvenBackgroundColor:"tokens.headerRowBackgroundColor",rowCellOddBackgroundColor:"tokens.backgroundColor",rowCellEvenBackgroundColor:"tokens.backgroundColor",buttonBorderRadius:"sizing.size_1",buttonHorizontalPadding:"density.buttonHorizontal",buttonVerticalPadding:"density.buttonVertical",primaryButtonBorderColor:"colors.transparent",primaryButtonForegroundColor:"colors.white",primaryButtonBackgroundColor:"tokens.accentColor",primaryButtonDisabledBorderColor:"colors.transparent",primaryButtonDisabledForegroundColor:"tokens.disabledColor",primaryButtonDisabledBackgroundColor:["colors.palette.100","colors.palette.700"],primaryButtonHoverBorderColor:"colors.transparent",primaryButtonHoverForegroundColor:"tokens.backgroundColor",primaryButtonHoverBackgroundColor:["colors.primary.600","colors.primary.100"],primaryButtonFocusBorderColor:"tokens.backgroundColor",primaryButtonFocusForegroundColor:"tokens.backgroundColor",primaryButtonFocusBackgroundColor:"tokens.accentColor",secondaryButtonBorderColor:"tokens.borderColor",secondaryButtonForegroundColor:"tokens.foregroundColor",secondaryButtonBackgroundColor:"tokens.backgroundColor",secondaryButtonDisabledBorderColor:"tokens.borderColor",secondaryButtonDisabledForegroundColor:"tokens.disabledColor",secondaryButtonDisabledBackgroundColor:["colors.palette.100","colors.palette.700"],secondaryButtonHoverBorderColor:"tokens.borderColor",secondaryButtonHoverForegroundColor:"tokens.foregroundColor",secondaryButtonHoverBackgroundColor:["colors.palette.100","colors.palette.700"],secondaryButtonFocusBorderColor:"tokens.borderColor",secondaryButtonFocusForegroundColor:"tokens.foregroundColor",secondaryButtonFocusBackgroundColor:"tokens.backgroundColor",iconButtonBorderRadius:"sizing.size_0_5",iconButtonLargeBorderRadius:"sizing.size_1",iconButtonLargePadding:"sizing.size_1",iconButtonBorderColor:["colors.palette.50","colors.palette.900"],iconButtonBackgroundColor:"tokens.backgroundSecondaryColor",iconButtonIconColor:["colors.palette.300","colors.palette.400"],iconButtonHitAreaSize:"sizing.size_6",iconButtonHoverBorderColor:["colors.palette.100","colors.palette.700"],iconButtonHoverBackgroundColor:["colors.palette.100","colors.palette.700"],iconButtonHoverIconColor:["colors.palette.400","colors.palette.300"],iconButtonActiveBorderColor:["colors.primary.400","colors.primary.200"],iconButtonActiveBackgroundColor:"tokens.accentColor",iconButtonActiveIconColor:"colors.white",iconButtonActiveHoverBorderColor:["colors.primary.400","colors.primary.200"],iconButtonActiveHoverBackgroundColor:["colors.primary.400","colors.primary.200"],iconButtonActiveHoverIconColor:"colors.white",collapseButtonBorderRadius:"sizing.size_1",collapseButtonOpenBorderColor:["colors.palette.200","colors.palette.500"],collapseButtonOpenBackgroundColor:["colors.white","colors.palette.950"],collapseButtonOpenIconColor:["colors.palette.400","colors.palette.300"],collapseButtonOpenIconActiveColor:["colors.palette.400","colors.palette.300"],collapseButtonOpenHoverBorderColor:["colors.palette.200","colors.palette.500"],collapseButtonOpenHoverBackgroundColor:["colors.palette.50","colors.palette.900"],collapseButtonOpenHoverIconColor:["colors.palette.400","colors.palette.300"],collapseButtonOpenHoverIconActiveColor:["colors.palette.400","colors.palette.300"],collapseButtonCloseBorderColor:["colors.palette.200","colors.palette.500"],collapseButtonCloseBackgroundColor:["colors.palette.100","colors.palette.700"],collapseButtonCloseIconColor:["colors.palette.400","colors.palette.300"],collapseButtonCloseIconActiveColor:["colors.palette.400","colors.palette.300"],collapseButtonCloseHoverBorderColor:["colors.palette.200","colors.palette.500"],collapseButtonCloseHoverBackgroundColor:["colors.palette.100","colors.palette.700"],collapseButtonCloseHoverIconColor:["colors.palette.400","colors.palette.300"],collapseButtonCloseHoverIconActiveColor:["colors.palette.400","colors.palette.300"],linkColor:["colors.primary.600","colors.primary.100"],linkHoverColor:"tokens.accentColor",inputBorderWidth:"1px",inputBorderRadius:"sizing.size_1",inputHorizontalPadding:"density.inputHorizontal",inputVerticalPadding:"density.inputVertical",inputBorderColor:"tokens.borderColor",inputForegroundColor:"tokens.foregroundColor",inputBackgroundColor:"tokens.backgroundSecondaryColor",inputHoverBorderColor:"tokens.borderColor",inputHoverForegroundColor:"tokens.foregroundColor",inputHoverBackgroundColor:"tokens.backgroundColor",inputDisabledBorderColor:"tokens.borderColor",inputDisabledForegroundColor:"tokens.disabledColor",inputDisabledBackgroundColor:["colors.palette.200","colors.palette.500"],inputFocusBorderColor:"tokens.accentColor",inputFocusForegroundColor:"tokens.foregroundColor",inputFocusBackgroundColor:"tokens.backgroundColor",checkboxSize:"tokens.iconSize",checkboxBorderRadius:"sizing.size_1",checkboxBorderColor:["colors.palette.200","colors.palette.500"],checkboxBackgroundColor:"tokens.backgroundColor",checkboxIconColor:"colors.transparent",checkboxFocusBorderColor:["colors.palette.200","colors.palette.500"],checkboxFocusBackgroundColor:"tokens.backgroundColor",checkboxFocusIconColor:"colors.transparent",checkboxFocusRingColor:"tokens.accentColor",checkboxDisabledBorderColor:["colors.palette.200","colors.palette.500"],checkboxDisabledBackgroundColor:["colors.palette.100","colors.palette.700"],checkboxDisabledIconColor:"colors.transparent",checkboxCheckedBorderColor:["colors.primary.400","colors.primary.200"],checkboxCheckedBackgroundColor:"tokens.accentColor",checkboxCheckedIconColor:"colors.white",checkboxCheckedFocusBorderColor:"tokens.backgroundColor",checkboxCheckedFocusBackgroundColor:"tokens.accentColor",checkboxCheckedFocusIconColor:"colors.white",checkboxCheckedDisabledBorderColor:["colors.palette.200","colors.palette.500"],checkboxCheckedDisabledBackgroundColor:["colors.palette.100","colors.palette.700"],checkboxCheckedDisabledIconColor:"tokens.disabledColor",checkboxIndeterminateBorderColor:["colors.primary.400","colors.primary.200"],checkboxIndeterminateBackgroundColor:"tokens.accentColor",checkboxIndeterminateIconColor:"colors.white",checkboxIndeterminateFocusBorderColor:"tokens.backgroundColor",checkboxIndeterminateFocusBackgroundColor:"tokens.accentColor",checkboxIndeterminateFocusIconColor:"colors.white",checkboxIndeterminateDisabledBorderColor:["colors.palette.200","colors.palette.600"],checkboxIndeterminateDisabledBackgroundColor:["colors.palette.200","colors.palette.500"],checkboxIndeterminateDisabledIconColor:"tokens.disabledColor",radioSize:"tokens.iconSize",radioBorderColor:["colors.palette.200","colors.palette.500"],radioBackgroundColor:"tokens.backgroundColor",radioIconColor:"colors.transparent",radioFocusBorderColor:"tokens.borderColor",radioFocusBackgroundColor:"tokens.backgroundColor",radioFocusIconColor:"colors.transparent",radioFocusRingColor:"tokens.accentColor",radioDisabledBorderColor:["colors.palette.200","colors.palette.500"],radioDisabledBackgroundColor:["colors.palette.100","colors.palette.700"],radioDisabledIconColor:"colors.transparent",radioCheckedBorderColor:"tokens.accentColor",radioCheckedBackgroundColor:"tokens.backgroundColor",radioCheckedIconColor:"tokens.accentColor",radioCheckedFocusBorderColor:["colors.primary.400","colors.primary.200"],radioCheckedFocusBackgroundColor:"tokens.backgroundColor",radioCheckedFocusIconColor:["colors.primary.400","colors.primary.200"],radioCheckedDisabledBorderColor:["colors.palette.200","colors.palette.500"],radioCheckedDisabledBackgroundColor:["colors.palette.100","colors.palette.700"],radioCheckedDisabledIconColor:"tokens.disabledColor",moveBacklightColor:["colors.palette.800","colors.palette.200"],moveBacklightOpacity:"8%",moveIndicatorColor:"tokens.accentColor",resizeIndicatorColor:["colors.palette.300","colors.palette.400"],freezeBarColor:["colors.palette.200","colors.palette.500"],freezeBarHoverColor:["colors.palette.300","colors.palette.400"],freezeBarHighlightColor:"tokens.accentColor",asyncIndicatorColor:"tokens.accentColor",asyncErrorBackgroundColor:"tokens.cellErrorBackgroundColor",asyncErrorMarkerColor:"tokens.notificationErrorAccent",hiddenIndicatorColor:["colors.palette.300","colors.palette.400"],menuBorderWidth:"1px",menuBorderRadius:"sizing.size_1",menuHorizontalPadding:"density.menuHorizontal",menuVerticalPadding:"density.menuVertical",menuItemHorizontalPadding:"density.menuItemHorizontal",menuItemVerticalPadding:"density.menuItemVertical",menuBorderColor:"tokens.borderColor",menuShadowX:"tokens.shadowX",menuShadowY:"tokens.shadowY",menuShadowBlur:"tokens.shadowBlur",menuShadowColor:["colors.palette.950","colors.white"],menuShadowOpacity:"8%",menuItemHoverColor:["colors.palette.800","colors.palette.200"],menuItemHoverColorOpacity:"4%",menuItemActiveColor:"tokens.accentColor",menuItemActiveColorOpacity:"8%",commentsTextareaHorizontalPadding:"density.cellHorizontal",commentsTextareaVerticalPadding:"density.cellVertical",commentsTextareaBorderWidth:"1px",commentsTextareaBorderColor:"colors.transparent",commentsTextareaForegroundColor:"tokens.foregroundColor",commentsTextareaBackgroundColor:"tokens.backgroundSecondaryColor",commentsTextareaFocusBorderWidth:"1px",commentsTextareaFocusBorderColor:"tokens.accentColor",commentsTextareaFocusForegroundColor:"tokens.foregroundColor",commentsTextareaFocusBackgroundColor:"tokens.backgroundColor",commentsIndicatorSize:"sizing.size_1_5",commentsIndicatorColor:"tokens.accentColor",licenseHorizontalPadding:"tokens.barHorizontalPadding",licenseVerticalPadding:"tokens.barVerticalPadding",licenseForegroundColor:"tokens.barForegroundColor",licenseBackgroundColor:"tokens.barBackgroundColor",paginationBarForegroundColor:"tokens.barForegroundColor",paginationBarBackgroundColor:"tokens.barBackgroundColor",paginationBarHorizontalPadding:"tokens.barHorizontalPadding",paginationBarVerticalPadding:"tokens.barVerticalPadding",paginationButtonBorderColor:"tokens.paginationBarBackgroundColor",paginationButtonForegroundColor:"tokens.foregroundSecondaryColor",paginationButtonBackgroundColor:"tokens.paginationBarBackgroundColor",paginationButtonHoverBorderColor:["colors.palette.100","colors.palette.700"],paginationButtonHoverForegroundColor:"tokens.foregroundColor",paginationButtonHoverBackgroundColor:["colors.palette.100","colors.palette.700"],paginationButtonDisabledBorderColor:"tokens.paginationBarBackgroundColor",paginationButtonDisabledForegroundColor:"tokens.disabledColor",paginationButtonDisabledBackgroundColor:"tokens.paginationBarBackgroundColor",paginationButtonFocusBorderColor:"tokens.accentColor",paginationButtonFocusForegroundColor:"tokens.foregroundColor",paginationButtonFocusBackgroundColor:"tokens.paginationBarBackgroundColor",sheetsBarHorizontalPadding:"sizing.size_2",sheetsBarBackgroundColor:"tokens.barBackgroundColor",sheetsBarTabHorizontalPadding:"sizing.size_3",sheetsBarTabVerticalPadding:"sizing.size_2",sheetsBarTabForegroundColor:"tokens.foregroundSecondaryColor",sheetsBarTabBackgroundColor:"tokens.barBackgroundColor",sheetsBarTabHoverForegroundColor:["colors.palette.950","colors.white"],sheetsBarTabActiveForegroundColor:["colors.palette.950","colors.white"],sheetsBarTabActiveBackgroundColor:["colors.palette.100","colors.palette.700"],sheetsBarTabActiveBorderWidth:"1px",sheetsBarTabActiveBorderColor:"tokens.cellSelectionBorderColor",dialogSemiTransparentBackgroundColor:["colors.white","colors.palette.950"],dialogSemiTransparentBackgroundOpacity:"80%",dialogSolidBackgroundColor:["colors.white","colors.palette.950"],dialogContentPaddingHorizontal:"density.dialogHorizontal",dialogContentPaddingVertical:"density.dialogVertical",dialogContentBorderRadius:"sizing.size_2",dialogContentBackgroundColor:"tokens.backgroundSecondaryColor",notificationForegroundColor:"tokens.foregroundColor",notificationBackgroundColor:"tokens.backgroundColor",notificationBorderColor:"tokens.backgroundColor",notificationSuccessAccent:"#37bc6cff",notificationWarningAccent:"#fbe952ff",notificationErrorAccent:"#fa4d32ff",chipBackground:"tokens.backgroundSecondaryColor",chipBorderRadius:"sizing.size_0_5",chipVerticalPadding:"sizing.size_0",chipHorizontalPadding:"sizing.size_0_5",chipGap:"sizing.size_1",scrollbarBorderRadius:"sizing.size_2",scrollbarTrackColor:"tokens.backgroundSecondaryColor",scrollbarThumbColor:["colors.palette.300","colors.palette.400"]}},wE=/^(\d+(?:\.\d+)?)(?:\s*px)?$/i,wM=RegExp("^\\d+(?:\\.\\d+)?(?:%|px|em|rem|ex|ch|cap|ic|lh|rlh|[sld]?v(?:w|h|min|max|i|b)|cq(?:w|h|i|b|min|max)|cm|mm|q|in|pt|pc)$","i"),wk=/^(?:calc|min|max|clamp|var|env)\(/i,wI=/%|\d[sld]?v(?:w|h|min|max|i|b)\b|\dcq(?:w|h|i|b|min|max)\b|\bvar\(|\benv\(/i,wT=new Set(["fit-content","min-content","max-content","inherit","initial","unset","revert","revert-layer","stretch","-webkit-fill-available","-moz-available","none","normal"]);function wA(){return{kind:"invalid",cssValue:null}}function wH(e){return{kind:"css",cssValue:e}}function wO(e,t){if("number"==typeof e)return Number.isFinite(e)&&e>=0?{kind:"px",cssValue:`${e}px`}:wA();if("string"!=typeof e)return wA();let i=e.trim();return""===i?wA():function(e,t){let i=e.toLowerCase();if("auto"===i)return{kind:"auto",cssValue:"auto"};let o=wE.exec(e);return null!==o?{kind:"px",cssValue:`${o[1]}px`}:wT.has(i)||i.startsWith("fit-content(")?wA():wM.test(e)?wH(e):wk.test(e)?void 0===t||t(e)?wH(e):wA():void 0!==t&&t(e)?wH(e):wA()}(i,t)}function wD(e){return""===e?"unset":"auto"===e?"auto":wI.test(e)?"container-driven":"definite"}function wP(e){return""===e||"clip"===e}function w_(e,t){return e[t]||e.overflow}function wF(e){return"unset"===e||"auto"===e}function wN(e){let t=e.style.height;return{heightInline:t,height:wD(t)}}function wL(e,t,i,o){if(void 0===i)return"untouched";let r=o3(i)?i():i;if(null===(r=e.runHooks(o,r)))return!function(e,t){let i=function(e){let t=e.ownerDocument.createElement("div");t.style.cssText=e.dataset.initialstyle??"";let{height:i,width:o,overflow:r,overflowX:n,overflowY:s}=t.style;return{height:i,width:o,overflowX:n||r,overflowY:s||r}}(e),{style:o}=e;o[t]=i[t],"height"===t&&(wP(w_(o,"overflowY"))&&(o.overflowY=i.overflowY),wP(w_(o,"overflowX"))&&(o.overflowX=i.overflowX))}(e.rootElement,t),"reset";if(void 0===r)return"untouched";let n=wO(r,function(e,t){let i=e.CSS;if(void 0!==i&&"function"==typeof i.supports)return e=>{try{return i.supports(t,e)}catch{return!1}}}(e.rootWindow,t));if("invalid"===n.kind){var s;let i;return s=e.rootElement,i=h2(r),il(s,`invalid-root-size-${t}-${i}`,`Handsontable: the \`${t}\` option expects a number of pixels, such as \`500\`, \`'500'\`, or \`'500px'\`, a CSS length such as \`'50%'\` or \`${"height"===t?"'75vh'":"'75vw'"}\`, or \`'auto'\`. The value ${i} cannot be read as a size, so it is ignored and the grid's ${t} is left as it was.`),"ignored"}return"px"===n.kind&&"height"===t?e.rootElement.style.height=function(e,t){if(!sy(e))return t;let i=[e.rootSlotTopElement,e.rootSlotBottomElement].reduce((e,t)=>e+(t?.offsetHeight??0),0);return 0===i?t:`calc(${t} - ${i}px)`}(e,n.cssValue??""):e.rootElement.style[t]=n.cssValue??"","written"}function wB(e,t,i){var o,r;let n,s,{rootElement:l}=e;if(i){let e=l.getAttribute("style");e&&(l.dataset.initialstyle=e)}let a=wN(l),h=wL(e,"height",t.height,"beforeHeightChange"),d=wL(e,"width",t.width,"beforeWidthChange"),u=[],c=sy(e)&&Object.prototype.hasOwnProperty.call(t,"preventOverflow");return(void 0!==t.height||void 0!==t.width||c)&&function(e,t,i,o){let{style:r}=e,n=wD(r.height),s=wD(r.width);if(!wF(n)){(!t||i)&&wP(w_(r,"overflowX"))&&(r.overflowX="clip"),!t&&wP(w_(r,"overflowY"))&&(r.overflowY="clip");return}wP(w_(r,"overflowY"))&&(r.overflowY=""),wP(w_(r,"overflowX"))&&(r.overflowX="definite"===s||o?"clip":"")}(l,"reset"===h,"written"===d,sy(e)&&"horizontal"===e.getSettings().preventOverflow),"ignored"===h&&u.push("height"),"ignored"===d&&u.push("width"),{scrollOwnerChanged:(o=wN(l),r=void 0!==t.height,n=wF(a.height),s=wF(o.height),!r||n!==s||(n||s)&&a.heightInline!==o.heightInline),ignoredAxes:u}}function wV(e,t){let i=o3(t)?t():t;"px"===wO(i).kind&&wB(e,{height:i},!1)}let wz=Object.freeze({resume:e=>e(),release:()=>{}});class wW{#hk=[];#hI=1;#hT=0;#hA=!1;#hH=new Set;#hO=new Set;#hD=new WeakSet;#hP=new WeakSet;#h_=new WeakMap;#hF=1;#hN=Object.freeze({resume:e=>this.suppress(e),release:()=>{}});current(){return this.#hT>0?null:this.#hk[this.#hk.length-1]??null}isActive(){return null!==this.current()}isSuppressed(){return this.#hT>0}setJournaling(e){this.#hA=e}getRecordingTransaction(){return this.#hA?this.current():null}record(e){let t=this.getRecordingTransaction();null!==t&&this.append(t,e)}append(e,t){e.journal.push(t),this.#h_.set(t,this.#hF),this.#hF+=1}getEntryOrder(e){return this.#h_.get(e)??0}isLatestEntry(e){return this.#h_.get(e)===this.#hF-1}describe(e){let t=this.current();null!==t&&1===t.depth&&Object.assign(t.details,e)}run(e,t,i){this.enter(e,t);let o=!0;try{let e=i();return o=!1,e}finally{this.leave(o)}}enter(e,t){if(this.#hT>0)return;let i=this.#hk[this.#hk.length-1];if(i){i.depth+=1,i.operations.push(e),i.sources.push(t);return}let o={id:this.#hI,name:e,source:t,operations:[e],sources:[t],journal:[],details:{},depth:1,holds:0,aborted:!1};this.#hI+=1,this.#hk.push(o);try{this.#hH.forEach(e=>e(o))}catch(e){throw this.#hk.splice(this.#hk.lastIndexOf(o),1),e}}leave(e=!1){if(this.#hT>0)return;let t=this.#hk[this.#hk.length-1];!t||(e&&(t.aborted=!0),t.depth-=1,t.depth>0||(this.#hk.pop(),this.#hL(t)))}hold(){if(this.#hT>0)return this.#hN;let e=this.current();if(null===e)return wz;e.holds+=1;let t=!1;return{resume:i=>t||this.#hT>0?i():this.#hD.has(e)?this.run(e.name,e.source,i):this.#hB(e,i),release:()=>{t||(t=!0,e.holds-=1,this.#hL(e))}}}suppress(e){this.#hT+=1;try{return e()}finally{this.#hT-=1}}addOpenListener(e){this.#hH.add(e)}removeOpenListener(e){this.#hH.delete(e)}addSettleListener(e){this.#hO.add(e)}removeSettleListener(e){this.#hO.delete(e)}destroy(){this.#hk.length=0,this.#hH.clear(),this.#hO.clear(),this.#hA=!1}#hB(e,t){let i=this.#hk.includes(e);i||this.#hk.push(e),e.depth+=1;let o=!0;try{let e=t();return o=!1,e}finally{if(o&&(e.aborted=!0,this.#hP.add(e)),e.depth-=1,!i){let t=this.#hk.lastIndexOf(e);-1!==t&&this.#hk.splice(t,1)}this.#hL(e)}}#hL(e){0===e.depth&&(0===e.holds||this.#hP.has(e))&&this.#hV(e)}#hV(e){this.#hD.has(e)||(this.#hD.add(e),this.#hO.forEach(t=>t(e)))}}class w${#hz=new Map;require(e,t){let i=this.#hz.get(e);i||(i=new Set,this.#hz.set(e,i)),i.add(t)}release(e,t){let i=this.#hz.get(e);i&&(i.delete(t),0===i.size&&this.#hz.delete(e))}isRequired(e){return this.#hz.has(e)}}let wU="rowId",wG=["afterChange","afterSetSourceDataAtCell","afterCreateRow","afterRemoveRow","afterLoadData","afterUpdateData"];function wj(e,t){let i=[];return e.forEach(e=>{let o=t(e);null!==o&&i.push(o)}),i}function wq(e){return"string"==typeof e||"function"==typeof e}class wK extends dM{#hW;constructor(e,t){super(e),this.#hW=t}init(e){return e>0&&e===this.getLength()&&!this.#hW()?(this.runLocalHooks("init"),this):super.init(e)}}class wY{#eb;#h$;#hU=null;#hG=1;#hj=null;#hq=!0;#hW=!1;#hK=!1;#hY=void 0;#hX=null;#hZ=void 0;constructor(e,t){this.#eb=e,this.#h$=t,e.addHook("beforeInit",this.#as),e.addHook("afterUpdateSettings",this.#as),e.addHook("beforeLoadData",this.#hQ),e.addHook("afterLoadData",this.#hJ),e.addHook("beforeUpdateData",this.#h0),e.addHook("beforeRemoveRow",this.#h1,Number.MAX_SAFE_INTEGER),e.addHook("afterRowsMutation",this.#h2)}getRowIdAtPhysicalRow(e){if(!Number.isInteger(e)||e<0)return null;if(this.#hU)return this.#hU.getValueAtIndex(e)??null;let t=this.#h3();return!wq(t)||e>=this.#eb.rowIndexMapper.getNumberOfIndexes()?null:this.#h6(e,t)}getKeyedRowIdAtPhysicalRow(e){if(this.#hU)return null;try{return this.getRowIdAtPhysicalRow(e)}catch{return null}}getRowIdsAtPhysicalRows(e){let t=this.#h4(),i=this.#eb.rowIndexMapper.getNumberOfIndexes();return e.map(e=>null===t||null===e||!Number.isInteger(e)||e<0||e>=i?null:t(e))}getPhysicalRowById(e){if(null==e)return null;let t=this.#hj?.get(e);return void 0!==t&&this.getRowIdAtPhysicalRow(t)===e?t:void 0!==t||this.#hq?(this.#hj=this.#h5(),this.#hq=!1,this.#hj.get(e)??null):null}#h3(){let e=this.#eb.getSettings(),t=e.dataProvider?.rowId;if(wq(t)){let i=e.rowId;return null!=i&&!1!==i&&i!==t&&il(this,"rowId.dataProvider","The `rowId` option is ignored, because `dataProvider.rowId` is set. Handsontable reads row ids with `dataProvider.rowId`."),t}return e.rowId}#h6(e,t){return function(e,t){if("object"==typeof e&&null!==e){if("function"==typeof t)return t(e);if("string"==typeof t){if(t_(e,t))return Reflect.get(e,t);let i=e;for(let e of t.split(".")){if("object"!=typeof i||null===i)return;i=Reflect.get(i,e)}return i}}}(this.#h$(e),t)??null}#h4(){let e=this.#hU;if(e)return t=>e.getValueAtIndex(t)??null;let t=this.#h3();return wq(t)?e=>this.#h6(e,t):null}#h5(){let e=new Map,t=this.#eb.rowIndexMapper.getNumberOfIndexes(),i=this.#h4();if(!i)return e;for(let o=0;o<t;o+=1){let t=i(o);null!==t&&(e.has(t)?il(this,"rowId.duplicate",`Two rows have the same id (${String(t)}). Row ids must be unique: the lookups return the row with the lower physical index.`):e.set(t,o))}return e}#as=()=>{let e=this.#h3(),t=!0===e,i=this.#eb.rowIndexMapper,o=this.#hY;this.#hY=e,this.#h8(wq(e)),t&&this.#eb.getSettings().nestedRows&&il(this,"rowId.nestedRows","Generated row ids (`rowId: true`) do not follow the rows that the `nestedRows` plugin moves or detaches. Store the ids in the data and set `rowId` to their property."),t&&!this.#hU?(this.#hU=i.registerMap(wU,new wK(this.#h7,()=>this.#hW)),this.#hU.addLocalHook("change",this.#h9)):!t&&this.#hU&&(i.unregisterMap(wU),this.#hU=null),this.#h9(),e!==o&&(!0===o||wq(o))&&this.#eb.runHooks("afterRowIdsReset")};#h1=(e,t,i,o)=>{!1!==e&&this.#de(o)};#h0=(e,t,i)=>{t||!0===this.#eb.runHooks("hasExternalDataSource")||this.#de(i)};#h2=(e,t)=>{if("remove"!==e||!this.#eb.hasHook("afterRowIdsRemoved")||null===t||"object"!=typeof t||!("rowsRemove"in t)||!Array.isArray(t.rowsRemove))return;let i=t.rowsRemove.filter(e=>null!=e);i.length>0&&this.#eb.runHooks("afterRowIdsRemoved",i,"dataProvider")};#de(e){if(null!==this.#hX||!this.#eb.hasHook("afterRowIdsRemoved"))return;let t=this.#h4();t&&(this.#hX=new Set(wj(this.#dt(),t)),this.#hZ=e,this.#eb._registerMicrotask(this.#di))}#di=()=>{let e=this.#hX,t=this.#hZ;if(this.#hX=null,this.#hZ=void 0,!e||this.#eb.isDestroyed)return;let i=this.#h4(),o=new Set(i?wj(this.#dt(),i):[]),r=[...e].filter(e=>!o.has(e));r.length>0&&this.#eb.runHooks("afterRowIdsRemoved",r,t)};#dt(){return Array.from({length:this.#eb.rowIndexMapper.getNumberOfIndexes()},(e,t)=>t)}#h8(e){e!==this.#hK&&(wG.forEach(t=>{e?this.#eb.addHook(t,this.#h9,Number.MIN_SAFE_INTEGER):this.#eb.removeHook(t,this.#h9)}),this.#hK=e)}#h7=()=>{let e=this.#hG;return this.#hG+=1,e};#hQ=(e,t,i)=>{this.#h0(e,t,i),this.#hU&&(this.#hW=!0,this.#eb._registerMicrotask(this.#hJ))};#hJ=()=>{this.#hW=!1};#h9=()=>{this.#hq=!0}}function wX(e){return"string"==typeof e&&e.endsWith("Validator")}let wZ=new WeakMap,wQ=0;function wJ(e){let t=new Map,i=new Map,o=null,r=!1,n=0,s=()=>{r&&(r=!1,i.clear(),t.forEach((e,t)=>{null!==t.physicalRow&&i.set(t.physicalRow,t)}))},l=(e,i="start")=>{if(0===e.length)return;let n=o.getNumberOfIndexes()-e.length,s="end"===i?Math.min(e[0]+1,n):e[0],l=e.length;t.forEach((e,t)=>{null!==t.physicalRow&&t.physicalRow>=s&&(t.physicalRow+=l,r=!0)})},a=e=>{if(0===e.length)return;let i=e.slice().sort((e,t)=>e-t);t.forEach((e,t)=>{if(null===t.physicalRow)return;let o=function(e,t){let i=0,o=e.length;for(;i<o;){let r=Math.floor((i+o)/2);e[r]<t?i=r+1:o=r}return i}(i,t.physicalRow),n=i[o]===t.physicalRow;(n||o>0)&&(t.physicalRow=n?null:t.physicalRow-o,r=!0)})},h=e=>{let i=new Map,o=!1;return t.forEach((t,o)=>{let r=e.get(o)??o.physicalRow;null!==r&&i.set(r,[...i.get(r)??[],o])}),i.forEach(t=>{t.length>1&&t.forEach(t=>{o=e.delete(t)||o})}),o},d=()=>{t.size>0&&null===o?((o=e()).addLocalHook("indexesInserted",l),o.addLocalHook("indexesRemoved",a)):0===t.size&&null!==o&&(o.removeLocalHook("indexesInserted",l),o.removeLocalHook("indexesRemoved",a),o=null,i.clear(),r=!1)};return{track(e){s();let o=i.get(e);return void 0===o&&(n+=1,o={id:n,physicalRow:e},i.set(e,o)),t.set(o,(t.get(o)??0)+1),d(),o},find:e=>(s(),i.get(e)),release(e){let o=t.get(e);if(void 0!==o){if(o>1)return void t.set(e,o-1);t.delete(e),r||null===e.physicalRow||i.get(e.physicalRow)!==e||i.delete(e.physicalRow),d()}},relocate(e){let i=new Map;e.forEach((e,o)=>{t.has(o)&&o.physicalRow!==e&&i.set(o,e)});let o=i.size>0;for(;o;)o=h(i);return i.forEach((e,t)=>{t.physicalRow=e,r=!0}),new Set(i.keys())},get size(){return t.size}}}function w0(e,t,i){return{record:e.track(i),rowObject:t.readRowObject(i),rowId:t.readKeyedRowId(i),meta:null,metaColumn:-1}}function w1(e){let t=null;return i=>{if(null===t){t=new Map;let i=e.countPhysicalRows();for(let o=0;o<i;o++){let i=e.readRowObject(o);w2(i)&&t.set(i,t.has(i)?null:o)}}return t.get(i)}}function w2(e){return"object"==typeof e&&null!==e}function w3(e,t,i=function(e){return t=>{let i,o=e.countPhysicalRows();for(let r=0;r<o;r++)if(e.readRowObject(r)===t){if(void 0!==i)return null;i=r}return i}}(e)){let o,{physicalRow:r}=t.record,n=null!==r&&r<e.countPhysicalRows()?r:null;if(null!==n&&w2(t.rowObject)&&e.readRowObject(n)===t.rowObject)return n;if(null!==t.rowId&&void 0!==t.rowId){if(null!==n&&e.readKeyedRowId(n)===t.rowId)return n;let o=e.findPhysicalRowById(t.rowId);return null!==o?o:w2(t.rowObject)?i(t.rowObject)??null:null}return void 0!==(o=w2(t.rowObject)?i(t.rowObject):void 0)?o:null!==n&&null!==t.meta&&e.getStoredMeta(n,t.metaColumn)===t.meta?n:null}function w6(e,t){Reflect.set(e,0,t)}let w4=null;function w5(e){if(0===e.length)return[];let t=[...e];return t.sort(([e],[t])=>e===t?0:e>t?1:-1),ei(t,(e,[t,i])=>{let o=e[e.length-1],[r,n]=o,s=r+n;if(t<=s){let e=Math.max(i-(s-t),0);o[1]+=e}else e.push([t,i]);return e},[t[0]])}let w8=new Map,w7=Object.freeze({insert_row_above:"insert_row",insert_row_below:"insert_row",insert_col_start:"insert_col",insert_col_end:"insert_col",remove_row:"remove_row",remove_col:"remove_col"}),w9=[{name:"persistentState",version:"17.0.0",migrationUrl:"https://handsontable.com/docs/javascript-data-grid/changelog-17/"},{name:"correctFormat",version:"18.0.0",migrationUrl:"https://handsontable.com/docs/javascript-data-grid/migration-from-17.1-to-18.0/"}],be=new Set(["fixedRowsTop","fixedRowsBottom","fixedColumnsStart","fixedColumnsLeft","fixedColumnsEnd"]),bt="htLineClamp",bi=Object.freeze({mode:"none"}),bo=Object.freeze({mode:"ellipsis"}),br=new Map;function bn(e){let t=e.textEllipsis;if("number"==typeof t){if(!Number.isInteger(t)||t<1)return bi;if(1===t||!1===e.wordWrap)return bo;let i=br.get(t);return void 0===i&&(i=Object.freeze({mode:"clamp",lines:t}),br.set(t,i)),i}return t?bo:bi}function bs(e,t,i,o,r,n,s){let l=s.ariaTags,a=[],h=[],d=[],u=[];s._isBaseRendererCalled=!0,s.className&&iG(t,s.className),s.readOnly?(!1!==s.readOnlyStyling&&a.push(s.readOnlyCellClassName),l&&u.push(j())):l&&d.push(j()[0]),!1===s.valid&&s.invalidCellClassName?(a.push(s.invalidCellClassName),l&&u.push(q())):(h.push(s.invalidCellClassName),l&&d.push(q()[0])),!1===s.wordWrap&&s.noWordWrapClassName&&a.push("htNoWrap",s.noWordWrapClassName),ej(n)&&s.placeholder&&a.push(s.placeholderCellClassName),"none"!==bn(s).mode&&a.push("htTextEllipsis"),ij(t,h),iG(t,a),iK(t,d),iq(t,u)}function bl(e,t,i){e.addEventListener(t,i,!1)}function ba(e,t,i){e.removeEventListener(t,i,!1)}function bh(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function bd(e,t={}){let i,o={minHeight:200,maxHeight:300,minWidth:100,maxWidth:300,textContent:e=>e.value,...t},r=e.body,n=e.createTextNode(""),s=e.createElement("span");function l(){n.textContent=o.textContent(i),s.style.position="absolute",s.style.fontSize=bh(i).fontSize,s.style.fontFamily=bh(i).fontFamily,s.style.whiteSpace="pre",r.appendChild(s);let e=Number.parseInt(bh(i)?.paddingInlineStart||"0",10),t=Number.parseInt(bh(i)?.paddingInlineEnd||"0",10),l=s.clientWidth+e+t+1;r.removeChild(s);let a=i.style;a.height=`${o.minHeight}px`,o.minWidth>l?a.width=`${o.minWidth}px`:l>o.maxWidth?a.width=`${o.maxWidth}px`:a.width=`${l}px`;let h=i.scrollHeight?i.scrollHeight-1:0;o.minHeight>h?a.height=`${o.minHeight}px`:o.maxHeight<h?(a.height=`${o.maxHeight}px`,a.overflowY="visible"):a.height=`${h}px`}function a(){e.defaultView.setTimeout(l,0)}function h(e,t){if("inherit"===e)return t;let i=Number.parseInt(String(e),10);if(!isNaN(i))return i}return{init:function(e,t,r=!1){i=e;if(t&&t.minHeight){let e=h(t.minHeight,i.clientHeight);void 0!==e&&(o.minHeight=e)}if(t&&t.maxHeight){let e=h(t.maxHeight,i.clientHeight);void 0!==e&&(o.maxHeight=e)}if(t&&t.minWidth){let e=h(t.minWidth,i.clientWidth);void 0!==e&&(o.minWidth=e)}if(t&&t.maxWidth){let e=h(t.maxWidth,i.clientWidth);void 0!==e&&(o.maxWidth=e)}s.firstChild||(s.className="autoResize",s.style.display="inline-block",s.appendChild(n)),"TEXTAREA"===i.nodeName&&(i.style.resize="none",i.style.height=`${o.minHeight}px`,i.style.minWidth=`${o.minWidth}px`,i.style.maxWidth=`${o.maxWidth}px`,i.style.overflowY="hidden"),r&&(bl(i,"input",l),bl(i,"keydown",a)),l()},resize:l,unObserve(){ba(i,"input",l),ba(i,"keydown",a)}}}function bu(e,t){let i=oE(t),o=t.value.split("\n"),r=i,n=0;for(let t=0;t<o.length;t++){let s=o[t];0!==t&&(n+=o[t-1].length+1);let l=n+s.length;if("home"===e?r=n:"end"===e&&(r=l),i<=l)break}oT(t,r,r)}bs.RENDERER_TYPE="base";let bc="ht_editor_hidden",bg="textEditor";class bp extends r0{static get EDITOR_TYPE(){return"text"}eventManager=new r2(this);autoResize=bd(this.hot.rootDocument);#dr=!1;#dn=null;#ds=()=>{let{maxLength:e}=this.cellProperties;return this.capsLength&&sA(e)?e:null};#dl=e=>nm(this.cellProperties.trimWhitespace?e.trim():e);#da=e=>{let{isComposing:t=!1}=e??{};if(t||null===this.#ds())return;let{value:i,selectionStart:o,selectionEnd:r}=this.TEXTAREA,n=o??i.length;this.#dn={length:this.#dl(i),selectedLength:nm(i.slice(n,r??n))}};#dh=e=>{let{isComposing:t=!1,inputType:i=""}=e,o=this.#ds();if(null===o||t)return;let r=this.#dn;if(this.#dn=null,null===r||/^(delete|history|insertFromDrop)/.test(i))return;let{value:n,selectionEnd:s}=this.TEXTAREA,l=this.#dl(n),a=l-o;if(a<=0)return;let h=l-(r.length-r.selectedLength),d=s??n.length,u=this.cellProperties.trimWhitespace?Math.min(d,n.trimEnd().length):d,c=nf(n,u,Math.min(a,h));c.value!==n&&(this.TEXTAREA.value=c.value,oT(this.TEXTAREA,c.index,c.index))};constructor(e){super(e),this.eventManager=new r2(this),this.createElements(),this.bindEvents(),this.hot.addHookOnce("afterDestroy",()=>this.destroy())}getValue(){return this.TEXTAREA.value}setValue(e){this.TEXTAREA.value=e$(e)}get capsLength(){return!0}open(e){this._opened=!0,this.#dr=!1,this.#dn=null,this.refreshDimensions(),this.showEditableElement(),this.hot.getShortcutManager().setActiveContextName("editor"),this.registerShortcuts()}close(){this._opened=!1,this.#dr=!1,this.#dn=null,this.autoResize.unObserve(),iI(oZ(this.hot.rootDocument),this.hot.rootElement)&&this.hot.listen(),this.hideEditableElement(),this.unregisterShortcuts()}prepare(e,t,i,o,r,n){let s=this.state;if(super.prepare(e,t,i,o,r,n),!n.readOnly){this.refreshDimensions(!0);let{allowInvalid:e}=n;e&&!this.isOpened()&&(this.TEXTAREA.value=""),s===rJ.FINISHED||this.isOpened()||this.hideEditableElement()}}beginEditing(e,t){this.state===rJ.VIRGIN&&(this.TEXTAREA.value="",super.beginEditing(e,t))}focus(){this.TEXTAREA.select(),oT(this.TEXTAREA,this.TEXTAREA.value.length,this.TEXTAREA.value.length)}createElements(e="textarea"){let{rootDocument:t}=this.hot;this.TEXTAREA=t.createElement(e),iq(this.TEXTAREA,[["data-hot-input",""],v(-1)]),iG(this.TEXTAREA,"handsontableInput"),this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width="0",this.textareaStyle.height="0",this.textareaStyle.overflowY="visible",this.TEXTAREA_PARENT=t.createElement("DIV"),iG(this.TEXTAREA_PARENT,"handsontableInputHolder"),iU(this.TEXTAREA_PARENT,this.layerClass)&&ij(this.TEXTAREA_PARENT,this.layerClass),iG(this.TEXTAREA_PARENT,bc),this.textareaParentStyle=this.TEXTAREA_PARENT.style,this.TEXTAREA_PARENT.appendChild(this.TEXTAREA),this.hot.rootElement.appendChild(this.TEXTAREA_PARENT)}hideEditableElement(){t6()&&(this.textareaStyle.textIndent="-99999px"),this.textareaStyle.overflowY="visible",this.textareaParentStyle.opacity="0",this.textareaParentStyle.height="1px",ij(this.TEXTAREA_PARENT,this.layerClass),iG(this.TEXTAREA_PARENT,bc)}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="";let e=this.TEXTAREA_PARENT.childNodes,t=!1;nF(e.length-1,i=>{if(iU(e[i],"handsontableEditor"))return t=!0,!1}),iU(this.TEXTAREA_PARENT,bc)&&ij(this.TEXTAREA_PARENT,bc),t?this.layerClass="ht_editor_visible":this.layerClass=this.getEditedCellsLayerClass(),iG(this.TEXTAREA_PARENT,this.layerClass)}refreshValue(){let e=this.hot.toPhysicalRow(this.row),t=this.hot.getSourceDataAtCell(e,this.col);this.originalValue=t,this.setValue(t),this.resetValueBeforeEdit(),this.refreshDimensions()}hideForScroll(){return this.close(),!1}showAfterScroll(){}refreshDimensions(e=!1){if(this.state!==rJ.EDITING&&!e)return;if(this.TD=this.getEditedCell(),!this.TD){e||(this.#dr=this.hideForScroll());return}let t=this.getEditedCellRect();if(!t)return;let{top:i,start:o,width:r,maxWidth:n,height:s,maxHeight:l}=t;this.textareaParentStyle.top=`${i}px`,this.textareaParentStyle[this.hot.isRtl()?"right":"left"]=`${o}px`,this.showEditableElement();let a=this.hot.rootWindow.getComputedStyle(this.TD);this.TEXTAREA.style.fontSize=a.fontSize,this.TEXTAREA.style.fontFamily=a.fontFamily,this.TEXTAREA.style.backgroundColor=this.TD.style.backgroundColor,this.autoResize.init(this.TEXTAREA,{minWidth:Math.min(r,n),minHeight:Math.min(s,l),maxWidth:n,maxHeight:l},!0),!e&&this.#dr&&(this.#dr=!1,this._opened=!0,this.showAfterScroll())}bindEvents(){t8()&&this.eventManager.addEventListener(this.TEXTAREA,"focusout",()=>this.finishEditing(!1)),this.eventManager.addEventListener(this.TEXTAREA,"beforeinput",this.#da),this.eventManager.addEventListener(this.TEXTAREA,"compositionstart",this.#da),this.eventManager.addEventListener(this.TEXTAREA,"input",this.#dh),this.eventManager.addEventListener(this.TEXTAREA,"compositionend",this.#dh),this.addHook("afterScrollHorizontally",()=>this.refreshDimensions()),this.addHook("afterScrollVertically",()=>this.refreshDimensions()),this.addHook("afterColumnResize",()=>{this.refreshDimensions(),this.state===rJ.EDITING&&this.focus()}),this.addHook("afterRowResize",()=>{this.refreshDimensions(),this.state===rJ.EDITING&&this.focus()})}destroy(){this.eventManager.destroy(),this.clearHooks()}registerShortcuts(){let e=this.hot.getShortcutManager().getContext("editor"),t=()=>{this.#da(),this.hot.rootDocument.execCommand("insertText",!1,"\n")},i=()=>rK(this.hot,this.getValue(),this.row,this.col);e.addShortcuts([{keys:[["Control","Enter"]],callback:()=>(t(),!1),runOnlyIf:e=>!i()&&!e?.altKey},{keys:[["Meta","Enter"]],callback:()=>(t(),!1),runOnlyIf:()=>!i()},{keys:[["Alt","Enter"]],callback:()=>(t(),!1)},{keys:[["Home"]],callback:(e,t)=>{bu(t?.[0]??"",this.TEXTAREA)}},{keys:[["End"]],callback:(e,t)=>{bu(t?.[0]??"",this.TEXTAREA)}}],{runOnlyIf:()=>eU(this.hot.getSelected()),group:bg})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(bg)}}function bm(e){for(let t=e.firstChild;t;t=t.nextSibling)if(t.nodeType===Node.ELEMENT_NODE&&oG(t)){if(iU(t,bt))return t;let e="a"===t.localName&&iU(t,m_)?function(e){for(let t=e.firstChild;t;t=t.nextSibling)if(t.nodeType===Node.ELEMENT_NODE&&oG(t)&&iU(t,bt))return t;return null}(t):null;if(e)return e}return null}function bf(e,t,i,o,r,n,s){let l=n;ej(l)&&s.placeholder&&(l=s.placeholder);let a=e$(l),h=a;s.trimWhitespace&&(h=a.trim());let d=bn(s);"clamp"===d.mode?function(e,t,i){let o=bm(e);if(o){let e=o.parentNode;for(;o.previousSibling;)e.removeChild(o.previousSibling);for(;o.nextSibling;)e.removeChild(o.nextSibling)}else iX(e),iG(o=e.ownerDocument.createElement("div"),bt),e.appendChild(o);iG(e,"htTextLineClamp"),o.style.setProperty("--ht-text-line-clamp",String(i)),i2(o,t)}(t,h,d.lines):(bm(t)&&iX(t),i2(t,h))}bf.RENDERER_TYPE="text";let bw={CELL_TYPE:"text",editor:bp,renderer:bf},bb=function(e,t,i=!1){var o,r,n,s,l,a;let h,d,u,c,g,p,m,f,w,b,C,y,S,v,R,x,E,M,k,I,T=this,A=new r2(T),H=(d=new Map,u=0,function(){let e=u+=1,t=new Set,i=new Map;return{register(e,o,r,n){if(i.set(e,{key:o,cellMeta:r,structureVersion:n}),t.has(o))return;t.add(o);let s=d.get(o);s?s.inflight+=1:d.set(o,{applied:0,inflight:1})},answered(e,t){let o=i.get(e);o&&(o.valid=t)},claim(t,o){for(let r=t.length-1;r>=0;r--){let n=i.get(t[r]),s=void 0===n?void 0:d.get(n.key);if(!n||!s)continue;let l=s.applied>e,a=l?s.valid:n.valid;l&&t.splice(r,1),"boolean"==typeof a&&o(n.cellMeta,a,n.structureVersion)}},settle(t){t.forEach(t=>{let o=i.get(t),r=void 0===o?void 0:d.get(o.key);o&&r&&r.applied<e&&(r.applied=e,r.valid=o.valid??r.valid)})},release(){t.forEach(e=>{let t=d.get(e);t&&(t.inflight-=1,t.inflight<=0&&d.delete(e))}),t.clear()}}}),O=wJ(()=>T.rowIndexMapper),D={tracker:(c=wJ(()=>T.columnIndexMapper),g=new WeakMap,{track(e){let t=c.track(e),i=g.get(t);return void 0===i&&(i={id:t.id,record:t,get physicalColumn(){return t.physicalRow}},g.set(t,i)),i},release(e){c.release(e.record)},get size(){return c.size}}),toTrackedPhysicalColumn:e=>e8(e),toProp:e=>e},P=(o=()=>T.rowIndexMapper,r=e=>T.toVisualRow(e),n={getIndexMapper:()=>T.columnIndexMapper,toVisualColumn:e=>T.toVisualColumn(e),toProp:e=>e},p=new Set,m=new Set,f=new Map,w=null,b=null,C=0,y=()=>{p.forEach(({record:e,meta:t})=>{let{physicalRow:i}=e;if(null===i){t.visualRow=null;return}t.row=i,t.visualRow=r(i)})},S=()=>{p.forEach(({column:e,meta:t})=>{if(void 0===e||void 0===n)return;let{physicalColumn:i}=e;if(null===i){t.col=null,t.visualCol=null,t.prop=null;return}t.col=i,t.visualCol=n.toVisualColumn(i),t.prop=n.toProp(i)})},v=()=>{p.size>0&&null===w?(w=o()).addLocalHook("cacheUpdated",y):0===p.size&&null!==w&&(w.removeLocalHook("cacheUpdated",y),w=null),void 0!==n&&null===b&&C>0?(b=n.getIndexMapper()).addLocalHook("cacheUpdated",S):null!==b&&0===C&&(b.removeLocalHook("cacheUpdated",S),b=null),0===p.size&&m.clear()},{add(e,t,i){let o={record:e,meta:t,column:i};return m.delete(t),p.add(o),f.set(t,(f.get(t)??0)+1),C+=+(void 0!==i),v(),()=>{if(p.delete(o)){C-=void 0!==i;let e=(f.get(t)??1)-1;e>0?f.set(t,e):(f.delete(t),null===t.visualRow&&m.add(t))}v()}},findUnplaced(e,t){let i,o=null,r=!1;for(let i of p){let{record:n,meta:s}=i;if(null===s.visualRow&&null!==n.physicalRow&&s.prop===e){if(s===t)return i;r=r||null!==o&&o.record!==n,o=o??i}}return r||(i=!1,m.forEach(t=>{null!==t.visualRow?m.delete(t):t.prop===e&&(i=!0)}),i)?null:o},followRelocated(e,t){let i=[];return p.forEach(o=>{let{record:r,meta:n}=o;e.has(r)&&null!==r.physicalRow&&!t(n,r.physicalRow)&&(p.delete(o),i.push(o))}),y(),v(),i},get size(){return p.size}}),_=new WeakMap,F={countPhysicalRows:()=>T.rowIndexMapper.getNumberOfIndexes(),countVisualRows:()=>T.countRows(),readRowObject:e=>x.modifyRowData(e),getStoredMeta:(e,t)=>eA.getCellMetaIfExists(e,t),readKeyedRowId:e=>tK.getKeyedRowIdAtPhysicalRow(e),findPhysicalRowById:e=>{try{return tK.getPhysicalRowById(e)}catch{return null}}},N=e=>{let t=T.rowIndexMapper,i=()=>t.getNumberOfIndexes()-t.getNotTrimmedIndexesLength(),o=i(),r=(t,i)=>e.rowsInserted(t,i),n=(t,i)=>e.rowsRemoved(t,i),s=()=>{let t=o;(o=i())!==t&&e.trimmedRowsChanged(o-t)};return T.addHook("afterCreateRow",r),T.addHook("afterRemoveRow",n),t.addLocalHook("cacheUpdated",s),()=>{t.removeLocalHook("cacheUpdated",s),T&&(T.removeHook("afterCreateRow",r),T.removeHook("afterRemoveRow",n))}},L=!0,B=null,V=[],z=0,W=!1,$=!1,U=null,G=null,j=!1,q=!1,K=null,Y=[],X=e=>Y.reduce((e,t)=>t(e),e),Z=new w$,Q=[],J=[],ee=new Map,ei=new WeakMap,eo=0,es=[],el=!1,ea=!1,eh=null,ed=new wW,eu=0,ec=!1,ep=0,em=!1,ew=null,eC=null,ey=new Map,eS=(e,t=[])=>{if(!wX(e))return ep;if(null!==ew)return ew;let i=ep;return t.forEach(([e,t])=>{let o=Number.isInteger(e)?tc(e):null,r=null===o?void 0:O.find(o),n=void 0===r?void 0:ey.get(t)?.get(r)?.[0];void 0!==n&&n<i&&(i=n)}),i},ev=null,eR=null,ex=null,eE=null,eM={...t.initialState,...t};i===sC&&sb.set(this,!0),this.rootContainer=e,this.rootWrapperElement=null,this.rootGridElement=null,this.rootGridContentElement=null,this.rootSlotTopElement=null,this.rootSlotBottomElement=null,this.rootOverlaysElement=null,this.rootPortalElement=null,this.rootElement=sy(this)?e.ownerDocument.createElement("div"):e,this.rootDocument=e.ownerDocument,this.rootWindow=this.rootDocument.defaultView,sy(this)&&(this.rootWrapperElement=this.rootDocument.createElement("div"),this.rootSlotTopElement=this.rootDocument.createElement("div"),this.rootGridElement=this.rootDocument.createElement("div"),this.rootGridContentElement=this.rootDocument.createElement("div"),this.rootOverlaysElement=this.rootDocument.createElement("div"),this.rootSlotBottomElement=this.rootDocument.createElement("div"),this.rootPortalElement=this.rootDocument.createElement("div"),iG(this.rootElement,["ht-wrapper","handsontable"]),iG(this.rootWrapperElement,"ht-root-wrapper"),oY(this.rootContainer.getRootNode())&&iG(this.rootWrapperElement,"ht-shadow-dom"),iG(this.rootSlotTopElement,"ht-slot-top"),iG(this.rootGridElement,"ht-grid"),iG(this.rootGridContentElement,"ht-grid-content"),iG(this.rootOverlaysElement,"ht-overlay"),iG(this.rootSlotBottomElement,"ht-slot-bottom"),this.rootGridContentElement.appendChild(this.rootElement),this.rootGridElement.appendChild(this.rootGridContentElement),this.rootWrapperElement.appendChild(this.rootSlotTopElement),this.rootWrapperElement.appendChild(this.rootGridElement),this.rootWrapperElement.appendChild(this.rootSlotBottomElement),this.rootWrapperElement.appendChild(this.rootOverlaysElement),this.rootContainer.appendChild(this.rootWrapperElement),this.rootWrapperElement.__hotInstance=this,iG(this.rootPortalElement,"ht-portal"),this.rootDocument.body.appendChild(this.rootPortalElement)),this.isDestroyed=!1,this.renderSuspendedCounter=0,this.executionSuspendedCounter=0;let ek=eM?.layoutDirection??"inherit",eI=["rtl","ltr"].includes(ek)?ek:this.rootWindow.getComputedStyle(this.rootElement).direction;this.rootElement.setAttribute("dir",eI),this.rootWrapperElement?.setAttribute("dir",eI),this.isRtl=function(){return"rtl"===eI},this.isLtr=function(){return!T.isRtl()},this.getDirectionFactor=function(){return T.isLtr()?1:-1},this.stylesHandler=new mZ({hot:T,rootElement:T.rootElement,rootDocument:T.rootDocument,onThemeChange:e=>{sy(this)&&(ij(this.rootWrapperElement,/ht-theme-.*/g),ij(this.rootPortalElement,/ht-theme-.*/g),e&&(iG(this.rootWrapperElement,e),iG(this.rootPortalElement,e),getComputedStyle(this.rootWrapperElement).getPropertyValue("--ht-line-height")||ir(`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.`)),this.view?._wt?.selectionManager?.refreshAllBorderHandleStyles())},injectCoreCss:sy(this)?t?.injectCoreCss!==!1:t?.injectCoreCss===!0}),this.themeManager=null,g_(h=dF(a=eM.language))?gV(h):(h=gH,dN(a)),eM.language=h;let eT=Object.fromEntries(Object.entries(eM).filter(([e,t])=>("cell"!==e||!!Array.isArray(t))&&!(rI.getSingleton().isRegistered(e)||rI.getSingleton().isDeprecated(e)))),eA=new pP(T,eT,[p_,pD]);this.renderChangeTracker=new o2;let eH=eA.getTableMeta(),eO=eA.getGlobalMeta(),eD=nK();this.container=this.rootDocument.createElement("div"),this.rootElement.insertBefore(this.container,this.rootElement.firstChild),this.guid=`ht_${r7()}`,w8.set(this.guid,this),this.columnIndexMapper=new d_,this.rowIndexMapper=new d_,this.columnIndexMapper.addLocalHook("indexesSequenceChange",e=>{T.runHooks("afterColumnSequenceChange",e)}),this.rowIndexMapper.addLocalHook("indexesSequenceChange",e=>{T.runHooks("afterRowSequenceChange",e)}),A.addEventListener(this.rootDocument.documentElement,"compositionstart",e=>{T.runHooks("beforeCompositionStart",e)}),x=new pN(T);let eP=rH(this.guid);eP.register("cellRangeMapper",new pJ({rowIndexMapper:this.rowIndexMapper,columnIndexMapper:this.columnIndexMapper})),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid);let e_=new pr(eH,{rowIndexMapper:T.rowIndexMapper,columnIndexMapper:T.columnIndexMapper,countCols:()=>T.countCols(),countRows:()=>T.countRows(),propToCol:e=>R.propToCol(e)??e,isEditorOpened:()=>{let e=T.getActiveEditor();return!!e&&e.isOpened()},isPluginEnabled:e=>T.getPlugin(e)?.enabled===!0,isPluginRegistered:e=>void 0!==T.getPlugin(e),countRenderableColumns:()=>T.view.countRenderableColumns(),countRenderableRows:()=>T.view.countRenderableRows(),countRowHeaders:()=>T.countRowHeaders(),countColHeaders:()=>T.countColHeaders(),countRenderableRowsInRange:(e,t)=>T.view.countRenderableRowsInRange(e,t),countRenderableColumnsInRange:(e,t)=>T.view.countRenderableColumnsInRange(e,t),getShortcutManager:()=>T.getShortcutManager(),createCellCoords:(e,t)=>T._createCellCoords(e,t),createCellRange:(e,t,i)=>T._createCellRange(e,t,i),visualToRenderableCoords:e=>{let{row:t,col:i}=e;return T._createCellCoords(t>=0?T.rowIndexMapper.getRenderableFromVisualIndex(t):t,i>=0?T.columnIndexMapper.getRenderableFromVisualIndex(i):i)},renderableToVisualCoords:e=>{let{row:t,col:i}=e;return T._createCellCoords(t>=0?T.rowIndexMapper.getVisualFromRenderableIndex(t):t,i>=0?T.columnIndexMapper.getVisualFromRenderableIndex(i):i)},findFirstNonHiddenRenderableRow:(e,t)=>{let i=t>e?1:-1,o=Math.min(e,t),r=Math.max(e,t),n=T.rowIndexMapper.getNearestNotHiddenIndex(e,i);return null===n||1===i&&n>r||-1===i&&n<o?null:n>=0?T.rowIndexMapper.getRenderableFromVisualIndex(n):n},findFirstNonHiddenRenderableColumn:(e,t)=>{let i=t>e?1:-1,o=Math.min(e,t),r=Math.max(e,t),n=T.columnIndexMapper.getNearestNotHiddenIndex(e,i);return null===n||1===i&&n>r||-1===i&&n<o?null:n>=0?T.columnIndexMapper.getRenderableFromVisualIndex(n):n},isDisabledCellSelection:(e,t)=>e<0||t<0?T.getSettings().disableVisualSelection:T.getCellMeta(e,t).disableVisualSelection});this.selection=e_;let eF=(e,t)=>{this.selection.capturePhysicalSelection(t,(({indexesSequenceChanged:e,trimmedIndexesChanged:t})=>t&&!e)(e),e.trimmedIndexesChanged)},eN=(e,t)=>{let{hiddenIndexesChanged:i,trimmedIndexesChanged:o}=e;this.forceFullRender=!0,(e.indexesSequenceChanged||o||i)&&("row"===t?this.view?.invalidateRowHeightCache():this.view?.invalidateColumnWidthCache());let r=M?.isEditorOpened()===!0;return(({indexesSequenceChanged:e,trimmedIndexesChanged:t})=>t&&!e)(e)&&this.selection.restorePhysicalSelection(t),i&&(this.selection.commit(),o||this.selection.recaptureHighlightRecord()),r},eL=this.rowIndexMapper.getNumberOfIndexes(),eB=this.columnIndexMapper.getNumberOfIndexes(),eV=(e,{trimmedIndexesChanged:t,indexesSequenceChanged:i},o,r)=>{if(this.selection.isSelected()){if(e)return void this.selection.recaptureHighlightRecord();if(i&&this.selection.recaptureHighlightRecord(),t){if(M?.isEditorOpened()){this.selection.recaptureHighlightRecord(),i&&this.selection.fitGridTrackingExtents(r);return}this.selection.deselectIfHighlightStranded({unresolvableOnly:o})||(this.selection.recaptureHighlightRecord(),this.selection.fitGridTrackingExtents(r))}}};function ez(e){return e<0?e:T.colToProp(e)}this.columnIndexMapper.addLocalHook("beforeCacheUpdate",e=>eF(e,"column")),this.rowIndexMapper.addLocalHook("beforeCacheUpdate",e=>eF(e,"row")),this.columnIndexMapper.addLocalHook("afterCacheUpdate",()=>this.selection.discardPhysicalSelectionSnapshot("column")),this.rowIndexMapper.addLocalHook("afterCacheUpdate",()=>this.selection.discardPhysicalSelectionSnapshot("row")),this.columnIndexMapper.addLocalHook("cacheUpdated",e=>{this.renderChangeTracker.markAllChanged();let t=eN(e,"column"),i=this.columnIndexMapper.getNumberOfIndexes(),o=i!==eB;eB=i,o&&this.selection.markStructuralIndexChange();try{this.runHooks("afterColumnSequenceCacheUpdate",e)}finally{this.selection.notifyDeferredDeselect("column")}eV(o,e,t,"column")}),this.rowIndexMapper.addLocalHook("cacheUpdated",e=>{this.renderChangeTracker.markAllChanged();let t=eN(e,"row"),i=this.rowIndexMapper.getNumberOfIndexes(),o=i!==eL;eL=i,o&&this.selection.markStructuralIndexChange();try{this.runHooks("afterRowSequenceCacheUpdate",e)}finally{this.selection.notifyDeferredDeselect("row")}eV(o,e,t,"row")}),this.selection.addLocalHook("afterSetRangeEnd",(e,t)=>{let i=tP(!1),o=this.selection.getSelectedRange(),{from:r,to:n}=o.current(),s=o.size()-1;this.runHooks("afterSelection",r.row,r.col,n.row,n.col,i,s),this.runHooks("afterSelectionByProp",r.row,ez(r.col),n.row,ez(n.col),i,s);let l=e_.getSelectionSource();t&&!["loadData","updateData","deselect","shift"].includes(l)&&(!i.isTouched()||i.isTouched()&&!i.value)&&I.scrollTo(e);let a=e_.isSelectedByRowHeader(),h=e_.isSelectedByColumnHeader();if(a&&h?iG(this.rootElement,["ht__selection--rows","ht__selection--columns"]):a?(ij(this.rootElement,"ht__selection--columns"),iG(this.rootElement,"ht__selection--rows")):h?(ij(this.rootElement,"ht__selection--rows"),iG(this.rootElement,"ht__selection--columns")):ij(this.rootElement,["ht__selection--rows","ht__selection--columns"]),!["shift","refresh","loadData","updateData","deselect"].includes(l)&&(M.closeEditor(),!T))return;let d="shift"===l&&!t;if(!["refresh","loadData","updateData","deselect"].includes(l)&&!d){if(T.view.render(),!T)return;M.prepareEditor()}}),this.selection.addLocalHook("beforeSetFocus",e=>{this.runHooks("beforeSelectionFocusSet",e.row,e.col)}),this.selection.addLocalHook("afterSetFocus",e=>{let t=tP(!1);this.runHooks("afterSelectionFocusSet",e.row,e.col,t),(!t.isTouched()||t.isTouched()&&!t.value)&&I.scrollTo(e),M.closeEditor(),!T||(T.view.render(),T&&M.prepareEditor())}),this.selection.addLocalHook("afterSelectionFinished",e=>{if(!T)return;let t=e.length-1,{from:i,to:o}=e[t];this.runHooks("afterSelectionEnd",i.row,i.col,o.row,o.col,t),this.runHooks("afterSelectionEndByProp",i.row,ez(i.col),o.row,ez(o.col),t),["refresh","deselect"].includes(e_.getSelectionSource())&&(T.view.render(),M.prepareEditor())}),this.selection.addLocalHook("afterIsMultipleSelection",e=>{let t=this.runHooks("afterIsMultipleSelection",e.value);e.value&&(e.value=t)}),this.selection.addLocalHook("afterDeselect",()=>{M.closeEditor(),!T||(T.view.render(),T&&(ij(this.rootElement,["ht__selection--rows","ht__selection--columns"]),this.runHooks("afterDeselect")))}),this.selection.addLocalHook("afterSetHandlesHoveredLayer",()=>{T.view.render()}),this.selection.addLocalHook("beforeHighlightSet",()=>T.runHooks("beforeSelectionHighlightSet")).addLocalHook("beforeSetRangeStart",(...e)=>T.runHooks("beforeSetRangeStart",...e)).addLocalHook("beforeSetRangeStartOnly",(...e)=>T.runHooks("beforeSetRangeStartOnly",...e)).addLocalHook("beforeSetRangeEnd",(...e)=>T.runHooks("beforeSetRangeEnd",...e)).addLocalHook("beforeSelectColumns",(...e)=>T.runHooks("beforeSelectColumns",...e)).addLocalHook("afterSelectColumns",(...e)=>T.runHooks("afterSelectColumns",...e)).addLocalHook("beforeSelectRows",(...e)=>T.runHooks("beforeSelectRows",...e)).addLocalHook("afterSelectRows",(...e)=>T.runHooks("afterSelectRows",...e)).addLocalHook("beforeSelectAll",(...e)=>T.runHooks("beforeSelectAll",...e)).addLocalHook("afterSelectAll",(...e)=>T.runHooks("afterSelectAll",...e)).addLocalHook("beforeModifyTransformStart",(...e)=>T.runHooks("modifyTransformStart",...e)).addLocalHook("afterModifyTransformStart",(...e)=>T.runHooks("afterModifyTransformStart",...e)).addLocalHook("beforeModifyTransformFocus",(...e)=>T.runHooks("modifyTransformFocus",...e)).addLocalHook("afterModifyTransformFocus",(...e)=>T.runHooks("afterModifyTransformFocus",...e)).addLocalHook("beforeModifyTransformEnd",(...e)=>T.runHooks("modifyTransformEnd",...e)).addLocalHook("afterModifyTransformEnd",(...e)=>T.runHooks("afterModifyTransformEnd",...e)).addLocalHook("beforeRowWrap",(...e)=>T.runHooks("beforeRowWrap",...e)).addLocalHook("beforeColumnWrap",(...e)=>T.runHooks("beforeColumnWrap",...e)).addLocalHook("insertRowRequire",e=>T.alter("insert_row_above",e,1,"auto")).addLocalHook("insertColRequire",e=>T.alter("insert_col_start",e,1,"auto"));let eW=({axis:e,getCount:t,getNotTrimmedCount:i,isEmpty:o,isRemovable:r,previousMinimum:n,previousSpare:s,minimum:l,spare:a})=>{if(!(p0(n)>p0(l)||p0(s)>p0(a)))return;let h=t();if(h<i())return;let d=function({count:e,trailingEmpty:t,minimum:i,spare:o}){let r=Math.max(p0(i),e-t+p0(o));return Math.max(0,e-r)}({count:h,trailingEmpty:p1(h,h,o),minimum:l,spare:a}),u=p1(h,d,r);u>0&&((e,t,i)=>{let o=e_.isSelected()?T.getSelectedRangeActive():void 0,r="row"===e?o?.highlight.row:o?.highlight.col,n="row"===e?R.removeRow(t,i,"auto"):R.removeCol(t,i,"auto");if(n&&"number"==typeof r&&r>=t&&M.closeEditor(!0),n&&e_.isSelected()&&e_.getSelectedRange().ranges.some(i=>{let o=i.getOuterBottomEndCorner();return(("row"===e?o.row:o.col)??-1)>=t})){e_.markSource("shift");try{e_.refresh()}finally{e_.markEndSource()}}})(e,h-u,u)};function eK(e,t){let i="className"===e?T.rootElement:T.table;if(L)void 0!==t&&iG(i,t);else{let o=[],r=[];if(eO[e]){let t=eO[e];o=Array.isArray(t)?t:ef(String(t))}t&&(r=Array.isArray(t)?t:ef(t));let n=eg(o,r),s=eg(r,o);n.length&&ij(i,n),s.length&&iG(i,s)}eO[e]=t}function eY(e,t){if(o3(t)||Array.isArray(t))rI.getSingleton()._addFromSettings(e,t,T);else{if(null!==t)return;rI.getSingleton()._removeFromSettings(e,T)}eH[e]=t}function eX(e){let t;z+=1;try{t=e()}finally{z-=1}return eZ(),t}function eZ(e=0){if(!W||j||z>e||null!==B||!T.view)return;let t=eD.getItems().map(([,e])=>e),i=()=>t.reduce((e,t)=>t.runOwedReadyStep()||e,!1);z+=1;try{ed.suppress(()=>{let e=0;for(;e<t.length&&i();)e+=1})}finally{z-=1}(W=t.some(e=>e.isReadyStepOwed()))&&ir("A plugin ready step (`onGridReady()`) kept enabling or updating plugins. The steps still owed run when the next settings update, data load, or plugin call ends.")}function eQ(){if(T&&!T.isDestroyed&&T.view){if(!T.view.isVisible())return void eJ();if(eE?.disconnect(),eE=null,T.runHooks("afterFontsLoad"),T&&!T.isDestroyed&&T.view){if(!T.view.isVisible())return void eJ();T.view.invalidateIndexSizesCache(),T.renderChangeTracker.markAllChanged(),T.render()}}}function eJ(){null===eE&&(eE=oz(T.view._wt.wtTable.TABLE,()=>{eE=null,eQ()}))}function e0(e){let t={};return t_(e,"colorScheme")&&(t.colorScheme=e.colorScheme),t_(e,"density")&&(t.density=e.density),t}function e1(){return{colorScheme:eH.colorScheme,density:eH.density}}function e2(e,t){let i;(T.themeManager?.destroy(),void 0===e)?(i=wc("main")?wb("main"):wv(wx),i=wb("main")):i="function"!=typeof e.getThemeConfig?wv(e):e,T.themeManager=function({hot:e,themeObject:t,overrides:i}){return new ws({hot:e,themeObject:t,overrides:i})}({hot:T,themeObject:i,overrides:t})}function e3(){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(e){},checkIfQueueIsEmpty(){0===this.validatorsInQueue&&!1===e&&(e=!0,this.onQueueEmpty(this.valid))}}}function e6(e,t){return!!t?.isOpened()&&dh(e,t.row,t.prop)}function e4(e,t,i=!1){let o=function(e){let t=T.toPhysicalRow(e);if(null!==t)return t;let i=T.rowIndexMapper.getNotTrimmedIndexesLength();return e>=i?T.rowIndexMapper.getNumberOfIndexes()+e-i:e}(e),r=T.toPhysicalColumn(t)??t,n={visualRow:e,visualColumn:t};return i?eA.getCellMeta(o,r,n):eA.getCellMetaTransient(o,r,n)}function e5(e,t,i){let o=tr(e,_.get(e)??null);if(o===e){if(e.valid===t)return;e.valid=t}to(o,t,i)}function e8(e){if(!Number.isInteger(e)||"array"!==T.dataType||eH.columns&&0!==eH.columns.length)return null;let t=R.propToCol(e);return"number"!=typeof t?null:T.toPhysicalColumn(t)===e?e:null}function e7(e,t,i,o,r,n){let s=e.findIndex(e=>{if(t.getProp(e)!==i)return!1;let n=t.getRecord(e);return void 0===n?null!==r&&(t.getPastEndRow(e)??e[0])===r:null!==n.physicalRow&&n.physicalRow===o});-1!==s&&(e[s][3]=n)}function e9(e,t){return null===e&&wX(t)}function te(e,t,i){let o=P.findUnplaced(e,eC),r=o?.record.physicalRow??null;if(null===o||null===r)return;let n=rU(t,o.meta,i);ee.forEach(({records:t},i)=>{e7(i,t,e,r,null,n)})}function tt(e,t,i,o){void 0===o?R.set(e,t,i):R.setAtPhysicalRow(o,t,i,e)}function ti(e,t=!0){e_.suspendShifts(t);let i=!1;try{e(),i=!0}finally{e_.resumeShifts(i)}}function to(e,t,i){if(eA.getStructureVersion()!==i)return;let o=e.row,r=e.col;if(!Number.isInteger(o)||!Number.isInteger(r))return;let n=eA.getCellMetaIfExists(o,r);if(n!==e){if(void 0!==n)n.valid=t,o1(n);else if(!1===t){let i=eA.getCellMeta(o,r,{visualRow:e.visualRow,visualColumn:e.visualCol,skipMetaExtension:!0});i.valid=t,o1(i)}}}function tr(e,t){if(null===t||!_.has(e))return e;let{physicalRow:i}=t;return{...e,row:i??void 0,col:e.col,visualRow:null===i?null:T.toVisualRow(i),visualCol:e.visualCol,hidden:e.hidden}}function tn(e,t,i){return Array.isArray(e)?e:[[e,t,i]]}function ts(e,t,i,o){return(i||"object"!=typeof e||"string"!=typeof t?i:t)||o}function tl(e,t){let i=T.getActiveEditor(),o=!i?.isOpened()||dh(e.filter(e=>null!==e),i.row,i.prop),r=T.runHooks("beforeChange",e,t||"edit");if(!T)return[];let n=e.filter(e=>null!==e);if(!1===r||0===n.length)return o&&T.getActiveEditor()?.cancelChanges(),[];for(let e=n.length-1;e>=0;e--){let i,[o,r,,s]=n[e],l=R.propToCol(r)??r;i=Number.isInteger(l)?e4(o,l):{...Object.getPrototypeOf(eH),...eH},n[e][3]=rU(s,i,t)}return n}E={alter(e,t,i=1,o,r){eX(()=>ti(()=>E.runAlter(e,t,i,o,r)))},runAlter(e,t,i=1,o,r){M.suspendStrandDiscards();try{var n,s;let l=T.runHooks("beforeAlter",e,t,i,o,r);if(!1===l)return;switch(e){case"insert_row_below":case"insert_row_above":let a=T.countSourceRows();if(eH.maxRows===a)return;let h="insert_row_below"===e?"below":"above",d="number"==typeof t?t:"below"===h?a:0,{delta:u,startPhysicalIndex:c}=R.createRow(d,i,{source:o,mode:h});e_.shiftRows(T.toVisualRow(c),u);break;case"insert_col_start":case"insert_col_end":let g="insert_col_end"===e?"end":"start",p="end"===g?T.countSourceCols():0,m="number"==typeof t?t:p,{delta:f,startPhysicalIndex:w}=R.createCol(m,i,{source:o,mode:g});if(f){if(Array.isArray(eH.colHeaders)){let e=[w,0];e.length+=f,Array.prototype.splice.apply(eH.colHeaders,e)}e_.shiftColumns(T.toVisualColumn(w),f)}break;case"remove_row":let b;n=Array.isArray(t)?w5(t):[[t,i]],b=0,en(n,([e,t])=>{if(Number.isInteger(e)){let i=f$(e-b,t,T.countRows());if(null===i)return;t=i.amount}let i=ej(e)?T.countRows()-1:Math.max(e-b,0);Number.isInteger(e)&&(e=Math.max(e-b,0));let r=T.countRows();if(!R.removeRow(e,t,o))return;if(e_.isSelected()){let{row:i}=T.getSelectedRangeActive().highlight;i>=e&&i<=e+t-1&&M.closeEditor(!0)}let n=T.countRows(),s=eH.fixedRowsTop;i>=0&&s>=i+1&&(eH.fixedRowsTop-=Math.min(t,s-i));let l=eH.fixedRowsBottom;if(l){let t=r-n,o=Number.isInteger(e)?i:Math.max(r-t,0),s=Math.min(o+t-1,r-1)-Math.max(o,r-l)+1;s>0&&(eH.fixedRowsBottom-=Math.min(s,l))}if(0===n)e_.deselect();else if("ContextMenu.removeRow"===o){let e=e_.getSelectedRange(),t=e.pop();e.clear().set(t.from).current().setTo(t.to),e_.flushHeldShifts(),e_.refresh()}else e_.shiftRows(e,-t);b+=t});break;case"remove_col":let C;s=Array.isArray(t)?w5(t):[[t,i]],C=0,en(s,([e,t])=>{if(Number.isInteger(e)){let i=f$(e-C,t,T.countCols());if(null===i)return;t=i.amount}let i=ej(e)?T.countCols()-1:Math.max(e-C,0);Number.isInteger(e)&&(e=Math.max(e-C,0));let r=T.countCols(),n=[];if(Array.isArray(eH.colHeaders)){let o=ej(e)?Math.max(r-t,0):i;nF(o,o+t-1,e=>{let t=T.toPhysicalColumn(e);null!==t&&n.push(t)})}if(!R.removeCol(e,t,o))return;if(e_.isSelected()){let{col:i}=T.getSelectedRangeActive().highlight;i>=e&&i<=e+t-1&&M.closeEditor(!0)}let s=T.countCols();if(0===s)e_.deselect();else if("ContextMenu.removeColumn"===o){let e=e_.getSelectedRange(),t=e.pop();e.clear().set(t.from).current().setTo(t.to),e_.flushHeldShifts(),e_.refresh()}else e_.shiftColumns(e,-t);let l=eH.fixedColumnsStart;i>=0&&l>=i+1&&(eH._fixedColumnsStart-=Math.min(t,l-i));let a=eH.fixedColumnsEnd;if(a){let t=r-s,o=Number.isInteger(e)?i:Math.max(r-t,0),n=Math.min(o+t-1,r-1)-Math.max(o,r-a)+1;n>0&&(eH.fixedColumnsEnd-=Math.min(n,a))}if(Array.isArray(eH.colHeaders)){let e=eH.colHeaders;[...n].sort((e,t)=>t-e).forEach(t=>{e.splice(t,1)})}C+=t});break;default:tf(`There is no such action "${e}"`)}r||E.adjustRowsAndCols()}finally{M.resumeStrandDiscards(),T.forceFullRender=!0,T.view.invalidateColumnWidthCache()}eZ(1),T.view.render()},adjustRowsAndCols(){ti(()=>{let e=eH.minRows,t=eH.minSpareRows,i=eH.minCols,o=eH.minSpareCols;if(e){let t=T.countRows();t<e&&R.createRow(t,e-t,{source:"auto",fillsMinimumSize:!0})}if(t){let e=T.countEmptyRows(!0);if(e<t){let i=Math.min(t-e,eH.maxRows-T.countSourceRows());R.createRow(T.countRows(),i,{source:"auto",fillsMinimumSize:!0})}}{let e=0,t=Math.floor(Number(eH.fixedColumnsEnd))>0,r=o>0&&!eH.columns&&"array"===T.dataType&&!t;if(r)for(let t=T.countCols()-1;t>=0&&T.isEmptyCol(t)&&!((e+=1)>=o);t--);let n=T.countCols();if(i&&!eH.columns&&!t&&n<i){let t=i-n;e+=t,R.createCol(n,t,{source:"auto",fillsMinimumSize:!0})}if(r&&e<o){n=T.countCols();let t=Math.min(o-e,eH.maxCols-n);R.createCol(n,t,{source:"auto",fillsMinimumSize:!0})}}},!1)},removeSurplusRowsAndCols(e){eW({axis:"row",getCount:()=>T.countRows(),getNotTrimmedCount:()=>T.rowIndexMapper.getNotTrimmedIndexesLength(),isEmpty:e=>T.isEmptyRow(e),isRemovable:e=>R.isTrailingFillerRow(T.toPhysicalRow(e)),previousMinimum:e.minRows,previousSpare:e.minSpareRows,minimum:eH.minRows,spare:eH.minSpareRows}),eH.columns||"array"!==T.dataType||eW({axis:"column",getCount:()=>T.countCols(),getNotTrimmedCount:()=>T.columnIndexMapper.getNotTrimmedIndexesLength(),isEmpty:e=>T.isEmptyCol(e),isRemovable:e=>R.isTrailingFillerColumn(T.toPhysicalColumn(e)),previousMinimum:e.minCols,previousSpare:e.minSpareCols,minimum:eH.minCols,spare:eH.minSpareCols})},populateFromArray(e,t,i,o,r){let n,s,l,a,h,d=[],u={},c=[],g=e.row,p=e.col;if(0===(s=t.length))return!1;let m=0,f=0;switch(tM(i)&&(m=i.col-p+1,f=i.row-g+1),r){case"shift_down":let w=et(t),b=w.length;if(0===b)return!1;let C=Math.max(b,m),y=T.getData().slice(g),S=et(y).slice(p,p+C);for(l=0;l<C;l+=1)if(l<b){for(n=0,s=w[l].length;n<f-s;n+=1)w[l].push(w[l][n%s]);l<S.length?c.push(w[l].concat(S[l])):c.push(w[l].concat(Array(y.length).fill(null)))}else c.push(w[l%b].concat(S[l]));T.populateFromArray(g,p,et(c));break;case"shift_right":let v=t.length,R=Math.max(v,f),x=T.getData().slice(g).map(e=>e.slice(p));for(n=0;n<R;n+=1)if(n<v){for(l=0,a=t[n].length;l<m-a;l+=1)t[n].push(t[n][l%a]);if(n<x.length)for(let e=0;e<x[n].length;e+=1)t[n].push(x[n][e]);else t[n].push(...Array(x[0].length).fill(null))}else t.push(t[n%s].slice(0,R).concat(x[n]));T.populateFromArray(g,p,t);break;default:u.row=e.row,u.col=e.col;let E=0,M=0,k=!0,I="Autofill.fill"===o||"autofill.fill"===o,A=function(e,i=null){let o=t[e%t.length];return null!==i?o[i%o.length]:o},H=t.length,O=i?i.row-e.row+1:0;for(n=0,s=i?O:Math.max(H,O);n<s&&!(i&&u.row>i.row&&O>H||!eH.allowInsertRow&&u.row>T.countRows()-1)&&!(u.row>=eH.maxRows);n++){let t=n-E,r=I?n:t,c=A(r).length,g=i?i.col-e.col+1:0;if(a=i?g:Math.max(c,g),u.col=e.col,h=e4(u.row,u.col),("CopyPaste.paste"===o||"Autofill.fill"===o||"autofill.fill"===o)&&h.skipRowOnPaste){E+=1,u.row+=1,"CopyPaste.paste"===o&&(s+=1);continue}for(l=0,M=0;l<a&&!(i&&u.col>i.col&&g>c||!eH.allowInsertColumn&&u.col>T.countCols()-1)&&!(u.col>=eH.maxCols);l++){if(h=e4(u.row,u.col),("CopyPaste.paste"===o||"Autofill.fill"===o||"autofill.fill"===o)&&h.skipColumnOnPaste){M+=1,u.col+=1,"CopyPaste.paste"===o&&(a+=1);continue}if(h.readOnly&&"UndoRedo.undo"!==o){u.col+=1;continue}let e=l-M,t=I?l:e,i=!!h.valueSetter,n=A(r,t),s=T.getSourceDataAtCell(u.row,u.col)??null;if(null!==n&&"object"==typeof n)if(Array.isArray(n)&&null===s&&(s=[]),i||"object"==typeof s&&null!==s){if(null!==s){let e=tw(Array.isArray(s)?s:s[0]||s),t=tw(Array.isArray(n)?n:n[0]||n);i||"edit"===o||tx(e,t)||Array.isArray(e)&&Array.isArray(t)?n=tS(n):k=!1}}else k=!1,h.parsePastedValue&&"CopyPaste.paste"===o&&(k=!0),"edit"===o&&(k=!0,n=tS(n));else i||null===s||"object"!=typeof s||(k=!1);k&&d.push([u.row,u.col,n]),k=!0,u.col+=1}u.row+=1}T.setDataAtCell(d,null,null,o||"populateFromArray")}}},this.init=function(){ed.suppress(()=>(function(){if(el)return void(T.view?ir("Handsontable instance has already been initialized. Calling `init()` again is a no-op; use `updateSettings()` to reconfigure a live instance."):ir("Handsontable `init()` was already called but did not finish - the first call threw before the grid was built. Calling `init()` again is a no-op; create a new instance instead."));el=!0;let e=eH.theme,t=eH.themeName,i=mK(T.rootContainer);sy(T)&&!i&&(tM(e)||!e&&!t)&&e2(e,e1()),x.setData(eH.data),eY("beforeInit",eM.beforeInit),K=eM;try{T.runHooks("beforeInit")}finally{K=null}if(t9()&&iG(T.rootElement,"mobile"),T.updateSettings(eM,!0),T.view=new h9(T),M=r6.getInstance(T,eH,e_),I=function(e){let{selection:t}=e,i=!1,o=!1;return{resume(){o=!1},suspend(){o=!0},skipNextScrollCycle(){i=!0},scrollTo(r){let n;if(i||o){i=!1;return}t.isFocusSelectionChanged()?n=t=>{s$(e,t.toObject(),()=>{let t=e.getSelectedRangeActive();if(!t)return null;let{row:i,col:o}=t.highlight;return null!==i&&null!==o?e.getCell(i,o,!0):null})}:t.isSelectedByCorner()?n=()=>{}:t.isSelectedByRowHeader()?n=t=>{let i=sG(e).getComputedRowTarget(t);s$(e,{row:i},()=>{let t=!!e.getSettings().rowHeaders;return e.getCell(i,t?-1:0,!0)})}:t.isSelectedByColumnHeader()?n=t=>{let i=sG(e).getComputedColumnTarget(t);s$(e,{col:i},()=>{let t=!!e.getSettings().colHeaders;return e.getCell(t?-1:0,i,!0)})}:1===t.getSelectedRange().size()&&t.isMultiple()?n=t=>{let i=sG(e),o={row:i.getComputedRowTarget(t),col:i.getComputedColumnTarget(t)};s$(e,o,()=>{let{row:t,col:i}=o;return e.getCell(t,i,!0)})}:1!==t.getSelectedRange().size()||t.isMultiple()?t.getSelectedRange().size()>1&&(n=t=>{let i=sG(e),o={row:i.getComputedRowTarget(t),col:i.getComputedColumnTarget(t)};s$(e,o,()=>{let{row:t,col:i}=o;return e.getCell(t,i,!0)})}):n=t=>{let i=e.selection.getSelectionSource(),{row:o,col:r}=t;if("number"!=typeof o||"number"!=typeof r)return;let n=()=>e.getCell(o,r,!0);if(o<0&&r>=0)s$(e,{col:r},n);else if(r<0&&o>=0)s$(e,{row:o},n);else{let t={row:o,col:r};if("mouse"===i){var s,l,a,h,d,u,c,g;let i,n,p,m,f,w=function({row:e,col:t,lastPartiallyVisibleRow:i,lastPartiallyVisibleColumn:o,isRowLargerThanViewport:r,isColumnLargerThanViewport:n}){let s=t===o,l=e===i;if(!r&&!n&&(s||l))return null;let a={};return!(l&&!r)&&(a.row=e,r&&(a.verticalSnap="top")),!(s&&!n)&&(a.col=t,n&&(a.horizontalSnap="start")),a}({row:o,col:r,lastPartiallyVisibleRow:e.view.getLastPartiallyVisibleRow(),lastPartiallyVisibleColumn:e.view.getLastPartiallyVisibleColumn(),isRowLargerThanViewport:(s=e,l=o,i=s.view.countFixedRowsTop(),n=s.view.countFixedRowsBottom(),!(l<i||l>=s.countRows()-n)&&(a=sj(s,l),(h=s.view.getViewportHeight())>0&&(a??0)>h)),isColumnLargerThanViewport:(d=e,u=r,p=d.view.countFixedColumnsStart(),m=d.countCols(),f=d.view.countFixedColumnsEnd(),!(u<p)&&!(u>=m-f)&&(c=d.getColWidth(u),(g=d.view.getViewportWidth())>0&&(c??0)>g))});if(null===w)return;t=w}let p=void 0===t.row||void 0===t.col;s$(e,t,p?void 0:n)}},n?.(r)}}}(T),k.init(),sy(T)){var o,r;let e,t,i=[T.rootSlotTopElement,T.rootSlotBottomElement],n=()=>i.reduce((e,t)=>e+t.offsetHeight,0),s=n();e=(o=T.rootPortalElement).ownerDocument,mJ||(mJ=m2(e,"assertive"),m0=m2(e,"polite"),o.append(mJ,m0)),m1.push(o),function(e){let t=e.rootSlotBottomElement;if(!t)return;let i=ta({className:fu,key:e.getSettings().licenseKey,element:t,releaseDate:"20/11/2026"});i&&fb(e,i),e.addHookOnce("init",()=>{fm.add(e),fC(e)}),e.addHook("afterUpdateSettings",()=>fC(e),1e3)}(T),((t=fO(r=T)).lifecycle.isTrial||t.badge)&&function(e){let t=e.rootSlotBottomElement;if(!t)return;let{bar:i,link:o}=function(e){let{refs:t}=fe({tag:"div",ref:"bar",className:`handsontable ${fs}`,children:[{tag:"a",ref:"link",className:`${fs}__link`,attrs:{href:"https://handsontable.com",target:"_blank",rel:"noopener noreferrer"},children:[{tag:"span",className:`${fs}__logo`,attrs:{"aria-hidden":"true"}},{tag:"span",className:`${fs}__text`,text:"Powered by Handsontable DataGrid"}]}]},e);return t}(t.ownerDocument);i.classList.add(m4),t.appendChild(i),m8(m6.BOTTOM,t),e.getFocusScopeManager().registerScope(fl,i,{shortcutsContextName:fa,runOnlyIf:()=>i.isConnected,onActivate:e=>{("tab_from_above"===e||"tab_from_below"===e)&&o.focus()}})}(r),function(e,t){let{lifecycle:i,channels:o}=t,r=fn[i.state];r?function(e,t){let i=e.rootOverlaysElement;if(!i)return;let o=e.getFocusScopeManager(),r=e.getShortcutManager(),n=e.isRtl(),s=`${e.guid}-license-lock-title`,l=`${e.guid}-license-lock-description`,{refs:a}=fe({tag:"div",ref:"lock",className:`${fV} ${fV}--confirm handsontable ht-license-lock ${fV}--background-solid ${fV}--show`,attrs:{role:"alertdialog","aria-modal":"true","aria-labelledby":s,"aria-describedby":l,tabindex:"-1",dir:n?"rtl":"ltr",style:"display: block;"},children:[{tag:"div",className:`${fV}__content-wrapper`,children:[{tag:"div",ref:"inner",className:`${fV}__content-wrapper-inner`,attrs:{tabindex:"-1"},children:[{tag:"div",className:`${fV}__content`,children:[{tag:"h2",ref:"title",className:`${fV}__title`,attrs:{id:s}},{tag:"p",ref:"description",className:`${fV}__description`,attrs:{id:l}}]},{tag:"div",className:`${fV}__buttons`,children:[{tag:"a",ref:"contactButton",className:"ht-button ht-button--secondary",attrs:{rel:"noopener"}}]}]}]}]},e.rootDocument),h=a.lock;if(a.title.textContent=t.title,a.description.textContent=t.description,a.contactButton.textContent=t.action.text,a.contactButton.setAttribute("href",t.action.href),t.docsLink){let i=e.rootDocument.createElement("a");i.href=t.docsLink.href,i.target="_blank",i.rel="noopener",i.textContent=t.docsLink.text,a.description.appendChild(i),a.description.appendChild(e.rootDocument.createTextNode(t.docsLink.trailingText))}let d=()=>Array.from(h.querySelectorAll("a[href], button")),u=()=>{let{view:t}=e,i=t.isHorizontallyScrollableByWindow()?t.getTotalTableWidth():t.getWorkspaceWidth();h.style.width=`${i}px`};e.addHook("afterViewRender",u),(r.getContext(fW)??r.addContext(fW)).addShortcut({keys:[["Tab"],["Shift","Tab"]],callback:t=>{let i=d(),o=i.indexOf(e.rootDocument.activeElement),r=t.shiftKey?-1:1;i[(o+r+i.length)%i.length]?.focus()},group:fz}),o.registerScope(fz,h,{shortcutsContextName:fW,type:"modal",onActivate:e=>{let t=d();"tab_from_below"===e?t[t.length-1]?.focus():a.contactButton.focus()}}),i.appendChild(h),e.addHookOnce("afterInit",()=>{u(),e.deselectCell()})}(e,r(i)):o.ui&&function(e,t){var i;let o,r=fr[t.state],n=e.rootOverlaysElement;if(!r||!n)return;let s=`${e.guid}-license-popover`,{refs:l}=fe({tag:"div",ref:"wrapper",className:"ht-license-badge-wrapper",children:[{tag:"button",ref:"badge",className:"ht-license-badge",attrs:{type:"button","aria-label":"Handsontable license information"}},{tag:"div",ref:"popover",className:fP,attrs:{id:s,role:r.dismissible?"dialog":"tooltip","aria-labelledby":`${s}-title`},children:[{tag:"div",className:`${fP}__content`,children:[{tag:"div",ref:"popoverTitle",className:`${fP}__title`,attrs:{id:`${s}-title`}},{tag:"p",ref:"popoverBody",className:`${fP}__body`},{tag:"a",ref:"popoverLink",className:`${fP}__link`,attrs:{target:"_blank",rel:"noopener noreferrer"}}]},r.dismissible&&{tag:"button",ref:"closeButton",className:`${fP}__close`,attrs:{type:"button","aria-label":"Close"}}]}]},e.rootDocument),a=l.wrapper,h=l.badge,d=()=>e.hasRowHeaders()&&e.hasColHeaders(),u=()=>{if(e.isDestroyed)return;let t=d();a.classList.toggle(fL,!t),e.rootElement?.classList.toggle("ht-license-badge-on",t),fB(e)?.table.classList.toggle("ht-license-badge-corner",t)};u(),e.addHook("afterRender",()=>u());let c=0,g=()=>{let t=fB(e);if(!t||!d())return;let i=t.table.offsetWidth;i>0&&Math.abs(i-c)>1&&(c=i,a.style.setProperty("--ht-license-badge-area-width",`${i}px`))},p=e.rootWindow;if("function"==typeof p.ResizeObserver){let t=new p.ResizeObserver(()=>g()),i=null,o=()=>{let o=fB(e)?.table??null;o!==i&&(t.disconnect(),i=o,o&&t.observe(o))};o(),e.addHook("afterRender",()=>o()),e.addHook("afterDestroy",()=>t.disconnect())}else g(),e.addHook("afterRender",()=>g());h.tabIndex=-1;let m=l.popover;l.popoverTitle.textContent=r.title,l.popoverBody.textContent=r.body(t),l.popoverLink.href=r.linkHref,l.popoverLink.textContent=r.linkText,l.popoverLink.tabIndex=-1;let f=!1;m.addEventListener("mouseenter",()=>{f=!0}),m.addEventListener("mouseleave",()=>{f=!1}),i=()=>{f||a.classList.contains(fN)||a.classList.remove(fF)},(o=e.rootElement)&&(o.addEventListener("mouseover",t=>{let o=t.target instanceof e.rootWindow.Element?t.target:null,r=fB(e)?.thead??null,n=!a.classList.contains(fL)&&null!==o&&null!==r&&r.contains(o);a.classList.toggle(fN,n),i()}),o.addEventListener("mouseleave",()=>{a.classList.remove(fN),i()})),r.dismissible&&(m.classList.add(f_),l.closeButton.tabIndex=-1,l.closeButton.addEventListener("click",()=>{m.classList.remove(f_),a.classList.add(fF)})),n.appendChild(a)}(e,i)}(r,t),n()!==s&&wV(T,eH.height);let l={top:-1,bottom:-1};T.addHook("afterRender",()=>{if(!T||T.isDestroyed)return;let{view:e}=T;if(!e)return;let t=e.isHorizontallyScrollableByWindow(),i=t?e.getTotalTableWidth():e.getWorkspaceWidth();(0===i||t&&0>=T.countRenderedCols())&&T.rootWrapperElement&&(i=T.rootWrapperElement.offsetWidth);let o=T.rootWrapperElement?.clientWidth??0;t&&o>0&&(i=Math.min(i,o)),T.rootSlotBottomElement&&i!==l.bottom&&(l.bottom=i,T.rootSlotBottomElement.style.width=`${i}px`),T.rootSlotTopElement&&i!==l.top&&(l.top=i,T.rootSlotTopElement.style.width=`${i}px`)});let a=n(),h=()=>{let e=n();return e!==a&&(a=e,wV(T,eH.height),!0)};eR=h,ev=new T.rootWindow.ResizeObserver(()=>{T&&!T.isDestroyed&&T.view&&h()&&T.render()}),i.forEach(e=>ev?.observe(e))}$=!0;try{tO(eZ,!0)}finally{$=!1}eA.invalidateMetaExtensions(),T.runHooks("init");let n=eR;eR=null,n?.(),T.render(),null!==n&&T&&!T.isDestroyed&&n()&&T.render(),null===ex&&(ex=function(e,t){let i=e.fonts;if(!i||"function"!=typeof i.addEventListener)return()=>{};let o=!1,r=t,n=()=>{i.ready.then(()=>{if(null!==r){if("loading"===i.status)return void n();o=!1,r()}},()=>{o=!1})},s=()=>{o||(o=!0,n())};return i.addEventListener("loading",s),"loading"===i.status&&s(),()=>{r=null,i.removeEventListener("loading",s)}}(T.rootDocument,eQ)),L&&null===T.rootElement.offsetParent&&(eh=oz(T.rootElement,()=>{T&&!T.isDestroyed&&T.view&&T.render()})),"object"==typeof L&&(T.runHooks("afterChange",L[0],L[1]),L=!1),T.runHooks("afterInit"),eA.finishInitialization()})())},this._runInPluginLifecyclePass=function(e){return W=!0,eX(e)},this._createCellCoords=function(e,t){let i=T.view;return i?i._wt.createCellCoords(e,t):new l4(e,t,T.isRtl())},this._createCellRange=function(e,t,i){let o=T.view,r=[e,t,i];return o?o._wt.createCellRange(...r):new l5(...r,T.isRtl())},this.validateCell=function(e,t,i,o){let r=ec;ec=!1;let n=T.getCellValidator(t);function s(e,o=!0,r=t){if(!o||!0===t.hidden)return void i(e);let n=r.visualCol,l=r.visualRow,a=T.getCell(l,n,!0);if(a&&"TH"!==a.nodeName){let e=T.rowIndexMapper.getRenderableFromVisualIndex(l),t=T.columnIndexMapper.getRenderableFromVisualIndex(n);T.view._wt.getSetting("cellRenderer",e,t,a)}i(e)}if(eq(n)&&(n=sT(n)),o3(n)){let i,l=()=>o3(t.prop)?t.visualCol:t.prop,a=l(),h=eA.getStructureVersion(),d=ep,u=r?tc(t.visualRow):null,c=null===u?null:O.track(u),g=null===c?null:e8(t.prop),p=null===g?null:D.tracker.track(g);_.delete(t);let m=null===c?()=>{}:P.add(c,t,p??void 0);if(e=T.runHooks("beforeValidate",e,t.visualRow,a,o),!T)return;let f=ed.hold(),w=r&&d===ep,b=!w,C=!r,y=t.prop,S=()=>{if(!C&&(C=!0,null!==c)){let e,t,i;m(),e=ey.get(y),t=e?.get(c),i=t?.indexOf(d)??-1,e&&t&&-1!==i&&(t.splice(i,1),0===t.length&&e.delete(c),0===e.size&&ey.delete(y)),O.release(c),null!==p&&D.tracker.release(p)}b||(b=!0,d===ep&&(eu-=1))};null!==c&&(ey.has(y)||ey.set(y,new Map),(i=ey.get(y)).set(c,[...i.get(c)??[],d])),w&&(eu+=1),T._registerMicrotask(()=>{let i=ew,r=eC;ew=d,eC=t,eo+=1;try{f.resume(()=>n.call(t,e,i=>{if(!T){S(),f.release();return}eo+=1;try{f.resume(()=>{let r=tr(t,c);if(i=T.runHooks("afterValidate",i,e,r.visualRow,l(),o),!T||(r===t&&(t.valid=i,o1(t)),to(r,i,h),S(),s(i,!0,r),!T))return;let n=em;em=d!==ep;try{T.runHooks("postAfterValidate",i,e,r.visualRow,l(),o)}finally{em=n}})}finally{S(),f.release(),ty()}}))}catch(e){throw S(),f.release(),e}finally{ew=i,eC=r,ty()}})}else T._registerMicrotask(()=>{t.valid=!0,o1(t),s(t.valid,!1)})},this.setDataAtCell=function(e,t,i,o){let r=ts(e,t,o,"edit");ed.run("change",r,()=>td.call(this,e,t,i,o))};let th=e=>!(T.view||T.countRows()>0)&&0!==T.countSourceRows()&&(ir(`\`${e}()\` writes nothing while Handsontable initializes and the grid has no rows yet, as inside \`afterHideColumns\`. Write in \`afterInit\`, or use \`setSourceDataAtCell()\`.`),!0);function td(e,t,i,o){let r,n,s;if(th("setDataAtCell"))return;let l=tn(e,t,i),a=[],h=o||"object"!=typeof e?o:t,d=!1;for(r=0,n=l.length;r<n;r++){let[e,t,i]=l[r];if(null===t&&wX(h))continue;let o=function(e){"object"!=typeof e&&tf("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");let t=e[1];return"number"!=typeof t&&tf("Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`"),t}(l[r]);if(o>=this.countCols()?(d||=mQ(T.dataType,this.countCols(),o),s=o):s=r3(T,o),e9(e,h)){te(s,i,h);continue}a.push([e,s,x.getAtCell(this.toPhysicalRow(e),t),i])}if(l.length>0&&0===a.length)return void T.runHooks("afterSetDataAtCell",[],h);let u=eS(h,a),c=tl(a,h);d&&c.some(([,e])=>Number.isInteger(e)&&mQ(T.dataType,this.countCols(),e)&&null===R.propToCol(e))&&id("Core.setDataAtCell.pastLastColumnOnObjectData","Writing past the last column of an object data source is deprecated and will be ignored in Handsontable 20.0.0. The value currently lands on a property named after the column index, which no column can display. Use `setDataAtRowProp()` to write a field the grid shows no column for."),!T||(T.runHooks("afterSetDataAtCell",c,h),T&&tu(c,h,u))}function tu(e,t,i){var o;let r,n,s,l,a,h,d,u,c,g,p,m,f,w,b,C=ed.hold(),y=(o=tc,r=new Map,n=new Map,s=new Set,l=new Map,a=new Map,h=new Map,d=null,u=!1,c=(e,t)=>{a.set(e,t),h.get(e)?.forEach(e=>Reflect.set(e,"visualRow",t))},g=(e,t)=>{e>=F.countVisualRows()-t||a.forEach((i,o)=>{e<=i&&c(o,i+t)})},p=(e,t)=>{a.forEach((i,o)=>{e<i&&c(o,i-Math.min(t,i-e))})},m=e=>{a.forEach((t,i)=>c(i,t-e))},f=()=>{d?.(),d=null},w=e=>{let t=n.get(e);return void 0!==t&&void 0!==D&&(null===t.physicalColumn||(Reflect.set(e,1,D.toProp(t.physicalColumn)),!1))},b={capture(e){if(u)return;u=!0;let t=new Map,i=F.countVisualRows();e.forEach(e=>{let l;l=D?.toTrackedPhysicalColumn(e[1])??null,void 0!==D&&null!==l&&(n.set(e,D.tracker.track(l)),ei.set(e,b));let h=Number.isInteger(e[0])?o(e[0]):null;if(null===h){Number.isInteger(e[0])&&e[0]>=i&&a.set(e,e[0]);return}let d=t.get(h);void 0===d&&(d=w0(O,F,h),t.set(h,d),s.add(d)),r.set(e,d),ei.set(e,b)}),a.size>0&&(d=N({rowsInserted:g,rowsRemoved:p,trimmedRowsChanged:m}))},noteMeta(e,t,i){let o=r.get(e);void 0!==o&&null===o.meta&&(o.meta=t,o.metaColumn=i)},notePastEndMeta(e,t){let i=a.get(e);void 0!==i&&(h.set(e,[...h.get(e)??[],t]),Reflect.set(t,"visualRow",i))},getPastEndRow:e=>a.get(e),getRecord:e=>r.get(e)?.record,resolve(e){let t=r.get(e);return void 0===t?void 0:w3(F,t)},hasRecords:()=>r.size>0,settle(e,t){if(f(),a.forEach((e,t)=>w6(t,e)),0===r.size&&0===n.size)return[];let i=new Map,o=[],s=w1(F);for(let n=e.length-1;n>=0;n--){let a,h=e[n],d=r.get(h);void 0!==d&&(i.has(d)||i.set(d,w3(F,d,s)),a=i.get(d)),null===a||w(h)?(e.splice(n,1),o.unshift(h)):void 0!==a&&(l.set(h,a),w6(h,t(a)))}return o},getSettledPhysicalRow:e=>l.get(e),getProp(e){let t=n.get(e);return void 0===t||void 0===D?e[1]:null===t.physicalColumn?void 0:D.toProp(t.physicalColumn)},getColumn:e=>n.get(e),getPhysicalRow(e){let t=l.get(e);if(void 0!==t)return t;let i=r.get(e);return void 0===i?void 0:w3(F,i)},forEachAnchor(e){s.forEach(e)},release(){s.forEach(e=>O.release(e.record)),n.forEach((e,t)=>{D?.tracker.release(e),ei.get(t)===b&&ei.delete(t)}),r.forEach((e,t)=>{ei.get(t)===b&&ei.delete(t)}),n.clear(),s.clear(),r.clear(),l.clear(),f(),a.clear(),h.clear()}});i===ep&&ee.set(e,{source:t,records:y});try{!function(e,t,i,o,r){if(!e.length)return r([],[]);let n=T.getActiveEditor(),s=e3(),l=[],a=[],h=wX(t)?null:H(),d=!0,u=([t,i,,r])=>{e7(e,o,i,null===t?null:T.toPhysicalRow(t),t,r)},c=(e,t)=>{wX(t)&&e?.forEach(u)};T.addHook("afterChange",c),s.onQueueEmpty=()=>{T.removeHook("afterChange",c);let t=[];try{i===ep&&(t=o.settle(e,e=>T.toVisualRow(e))),h?.claim(e,e5),n&&d&&i===ep&&n._closeAfterDataChange&&e6(e,n)&&n.cancelChanges(),r(a,t),h?.settle(e)}finally{h?.release(),function(e){if(0===e.length||!T)return;let t=T.countSourceRows();e.forEach(e=>{e.row>=t&&delete e.valid})}(l)}};try{!function(e,t,i,o,r,n,s,l){let a=T.countRows();for(let u=e.length-1;u>=0&&i===ep;u--){let i,[c,g,,p]=e[u],m=R.propToCol(g)??g;if(Number.isInteger(m)?(i=e4(c,m),T.getCellValidator(i)&&(i=e4(c,m,!0))):i={...Object.getPrototypeOf(eH),...eH},T.getCellValidator(i)){var h,d;o.addValidatorToQueue(),s.capture(e),c>=a?(r.push(i),s.notePastEndMeta(e[u],i)):Number.isInteger(i.col)&&s.noteMeta(e[u],i,i.col);let f=eA.getStructureVersion(),w=s.getRecord(e[u]),b=s.getColumn(e[u]);n?.register(e[u],(h=void 0===w?`v${c}`:`r${w.id}`,d=void 0===b?g:`t${b.id}`,"string"==typeof d||"number"==typeof d?`${h}:p${d}`:"function"==typeof d?(!wZ.has(d)&&(wQ+=1,wZ.set(d,wQ)),`${h}:f${wZ.get(d)}`):`${h}:c${"function"==typeof m?"":m}`),i,f),ec=!0;try{T.validateCell(p,i,function(t,i,r){return function(s){if("boolean"!=typeof s&&tf("Validation error: result is not boolean"),!1===s&&!1===i.allowInvalid){l(r);let o=e.lastIndexOf(r,t);-1!==o&&e.splice(o,1),_.has(i)||(i.valid=!0),to(tr(i,_.get(i)??null),!0,f)}n?.answered(r,s),o.removeValidatorFormQueue()}}(u,i,e[u]),t)}finally{ec=!1}if(!T)return}}}(e,t,i,s,l,h,o,e=>{d=!1,a.push(e)})}catch(e){throw s.onQueueEmpty=()=>{},T.removeHook("afterChange",c),h?.release(),e}s.checkIfQueueIsEmpty()}(e,t,i,y,(o,r)=>{ee.delete(e);try{if(i===ep){let i=y.hasRecords()?e=>y.getSettledPhysicalRow(e):void 0;C.resume(()=>(function(e,t,i){ti(()=>(function(e,t){let i={op:null};for(let o=e.length-1;o>=0;o--){let r=!1;if(null===e[o]){e.splice(o,1);continue}if((null===e[o][2]||void 0===e[o][2])&&(null===e[o][3]||void 0===e[o][3]))continue;let n=void 0===t?void 0:t(e[o]);if(eH.allowInsertRow&&void 0===n)for(;e[o][0]>T.countRows()-1;){let t=e[o][0]-(T.countRows()-1),{delta:i}=R.createRow(void 0,t,{source:"auto"});if(0===i){r=!0;break}}if("array"===T.dataType&&(!eH.columns||0===eH.columns.length)&&eH.allowInsertColumn){let t=()=>Number(R.propToCol(e[o][1])??e[o][1]);for(;t()>T.countCols()-1;){let e=t()-(T.countCols()-1),{delta:i}=R.createCol(void 0,e,{source:"auto"});if(0===i){r=!0;break}}}r||function(e,t,i,o,r){let n=null;if(null!==ed.getRecordingTransaction()&&(n=r??T.toPhysicalRow(e)),null===n||!Number.isInteger(n))return tt(e,t,i,r);let s=p$(x.getRawAtCellByProp(n,t));tt(e,t,i,r),pU(ed,{physicalRow:n,prop:t,oldValue:s,newValue:p$(x.getRawAtCellByProp(n,t))},o)}(e[o][0],e[o][1],e[o][3],i,n)}})(e,i),!1);let o=e.length>0,r=M?.getActiveEditor(),n=r?._closeAfterDataChange,s=e6(e,r);if(o){if(E.adjustRowsAndCols(),T.runHooks("beforeChangeRender",e,t),!T||(r?.isOpened()&&n&&s&&M.closeEditor(),T.render(),!T)||((r?.isOpened()&&n&&s||!r?.isOpened())&&M?.prepareEditor(),T.runHooks("afterChange",e,t||"edit"),!T))return;r&&void 0!==r.refreshValue&&(!r.isOpened()||s)&&r.refreshValue()}else T.render()})(e,t,i)),r.length>0&&T&&Q.slice().forEach(e=>e(r,t,[]))}else Q.slice().forEach(i=>i(e,t,o))}finally{y.release(),C.release()}})}catch(t){throw ee.delete(e),y.release(),C.release(),t}}function tc(e){return e>=0&&e<T.countRows()?T.toPhysicalRow(e):null}function tg(e,t,i,o){let r,n;if(th("setDataAtRowProp"))return;let s=tn(e,t,i),l=[],a=o||"object"!=typeof e?o:t;for(r=0,n=s.length;r<n;r++){let[e,t,i]=s[r];if(!(null===t&&wX(a))||R.colToPropCache.includes(null)){if(e9(e,a)){te(t,i,a);continue}l.push([e,t,x.getAtCellByProp(this.toPhysicalRow(e),t),i])}}if(s.length>0&&0===l.length)return void T.runHooks("afterSetDataAtRowProp",[],a);let h=eS(a,l),d=tl(l,a);!T||(T.runHooks("afterSetDataAtRowProp",d,a),T&&tu(d,a,h))}this.setDataAtRowProp=function(e,t,i,o){let r=ts(e,t,o,"edit");ed.run("change",r,()=>tg.call(this,e,t,i,o))},this.listen=function(){T&&!T.isListening()&&w8.has(T.guid)&&(w8.forEach(e=>{T!==e&&e.unlisten()}),w4=T.guid,T.runHooks("afterListen"))},this.unlisten=function(){this.isListening()&&(w4=null,T.runHooks("afterUnlisten"))},this.isListening=function(){return w4===T.guid},this.destroyEditor=function(e=!1,t=!0){M.closeEditor(e),!T||(T.view.render(),T&&t&&e_.isSelected()&&M.prepareEditor())},this.populateFromArray=function(e,t,i,o,r,n,s){("object"!=typeof i||"object"!=typeof i[0])&&tf("populateFromArray parameter `input` must be an array of arrays");let l="number"==typeof o?T._createCellCoords(o,r):void 0;return ed.run("change",n??"populateFromArray",()=>E.populateFromArray(T._createCellCoords(e,t),i,l,n,s))},this.spliceCol=function(e,t,i,...o){return id("Core.spliceCol","The `spliceCol()` method is deprecated and will be removed in Handsontable 20.0.0. Change the data yourself and write it back with `populateFromArray()`, or use `alter()` with `insert_col`/`remove_col`."),R.spliceCol(e,t,i,...o)},this.spliceRow=function(e,t,i,...o){return id("Core.spliceRow","The `spliceRow()` method is deprecated and will be removed in Handsontable 20.0.0. Change the data yourself and write it back with `populateFromArray()`, or use `alter()` with `insert_row`/`remove_row`."),R.spliceRow(e,t,i,...o)},this.getSelected=function(){if(e_.isSelected())return er(e_.getSelectedRange().ranges,({from:e,to:t})=>[e.row,e.col,t.row,t.col])},this.getSelectedLast=function(){let e,t=T.getSelected();return t&&t.length>0&&(e=t[t.length-1]),e},this.getSelectedActive=function(){let e=T.getSelectedRangeActive();if(!e)return;let{from:t,to:i}=e;return[t.row,t.col,i.row,i.col]},this.getSelectedRange=function(){if(e_.isSelected())return Array.from(e_.getSelectedRange())},this.getSelectedRangeLast=function(){let e,t=T.getSelectedRange();return t&&t.length>0&&(e=t[t.length-1]),e},this.getSelectedRangeActive=function(){return e_.getActiveSelectedRange()},this.getActiveSelectionLayerIndex=function(){return e_.getActiveSelectionLayerIndex()};let tp=(e,t,i,o,r)=>{let n=Math.max(t,0),s=Math.min(i,T.countRows()-1),l=Math.max(o,0),a=Math.min(r,T.countCols()-1);n>s||l>a||nF(n,s,t=>{nF(l,a,i=>{T.getCellMetaTransient(t,i).readOnly||e.push([t,i,null])})})};this.emptySelectedCells=function(e){if(!e_.isSelected()||0===this.countRows()||0===this.countCols())return;let t=[];en(e_.getSelectedRange(),e=>{if(e.isSingleHeader())return;let i=e.getTopStartCorner(),o=e.getBottomEndCorner();tp(t,i.row,o.row,i.col,o.col)}),t.length>0&&this.setDataAtCell(t,e)},this.isRenderSuspended=function(){return this.renderSuspendedCounter>0},this.suspendRender=function(){this.renderSuspendedCounter+=1},this.resumeRender=function(){let e=this.renderSuspendedCounter-1;this.renderSuspendedCounter=Math.max(e,0),this.isRenderSuspended()||e!==this.renderSuspendedCounter||T.view.render()},this.render=function(){this.view&&(this.forceFullRender=!0,this.isRenderSuspended()||T.view.render())},this.markCellChanged=function(e,t){let i=T.toPhysicalRow(e),o=T.toPhysicalColumn(t);if(null===i||null===o)return;let r=eA.getCellMetaIfExists(i,o);r&&o1(r)},this.markAllCellsChanged=function(){T.renderChangeTracker.markAllChanged()},this.batchRender=function(e){T.suspendRender();try{return e()}finally{T.resumeRender()}},this.isExecutionSuspended=function(){return this.executionSuspendedCounter>0},this.suspendExecution=function(){let e=0===this.executionSuspendedCounter&&!j&&!q;if(e){q=!0;try{this.runHooks("beforeSuspendExecution")}finally{q=!1}}if(this.executionSuspendedCounter+=1,this.columnIndexMapper.suspendOperations(),this.rowIndexMapper.suspendOperations(),e)try{this.runHooks("afterSuspendExecution")}catch(e){try{this.resumeExecution()}catch{}throw e}},this.resumeExecution=function(e=!1){let t=this.executionSuspendedCounter-1,i=0===t&&!j&&!q;try{if(i){q=!0;try{this.runHooks("beforeResumeExecution")}finally{q=!1}}}finally{this.executionSuspendedCounter=Math.max(this.executionSuspendedCounter-1,0);try{if(!this.isExecutionSuspended()&&t>=0||e)try{this.columnIndexMapper.resumeOperations()}finally{this.rowIndexMapper.resumeOperations()}}finally{i&&!this.isExecutionSuspended()&&this.runHooks("afterResumeExecution")}}},this.batchExecution=function(e,t=!1){return ed.run("batch",void 0,()=>{T.suspendExecution();let i=!1;try{let t=e();return i=!0,t}finally{T.resumeExecution(i&&t)}})},this.batch=function(e){return ed.run("batch",void 0,()=>{T.suspendRender();try{T.suspendExecution();try{return e()}finally{T.resumeExecution()}}finally{T.resumeRender()}})},this.runOperation=function(e,t,i){return ed.run(e,i,t)},this._getOperationScope=function(){return ed},this._hasPendingValidation=function(){return eu>0};let tm=(e,t,i)=>{let{type:o,valueGetter:r}=i??T.getCellMetaTransient(e,t),n=tM(o)?o:null;"string"==typeof o&&su(o)&&(n=sp(o));let s="function"==typeof r&&tM(n)&&n.valueGetter===r;return R.get(e,r3(T,t),{skipValueGetter:s})};function tb(e){let t=!1;e_.suspendGridTrackingFits();try{e(),t=!0}finally{e_.resumeGridTrackingFits(t)}}function tC(e,t){eu=0,ep+=1,ee.forEach(({records:e})=>e.release()),ee.clear();let i=M?.getActiveEditor()?._endValidationWait()??null;tb(()=>pQ(e,e=>{R=e},()=>{T.renderChangeTracker.markAllChanged(),eA.clearCellsCache(),T.initIndexMappers(),E.adjustRowsAndCols(),e_.markSource("loadData");try{e_.refresh()}finally{e_.markEndSource()}L&&(L=[null,"loadData"])},{hotInstance:T,dataMap:R,dataSource:x,internalSource:"loadData",source:t,metaManager:eA,firstRun:L,beforeRender:()=>eZ(1)})),i?.()}function ty(){if(!((eo-=1)>0))for(;es.length>0;){let e=es.shift();T&&e()}}function tv(e=!1,t=!1){let i=T.getInitialColumnCount(),o=e?Math.min(i,T.columnIndexMapper.getNumberOfIndexes()):i,r=R.colToPropCache.slice();if(t&&"array"===T.dataType)for(let e=0;e<o;e+=1)void 0===r[e]&&(r[e]=e);return{count:o,props:r}}function tR(e,t=!1){if(null===e)return!1;let i=tv(!1,t);return!(t?i.count>=e.count&&p5(e,i,Math.max(e.count,e.props.length),!0)||i.count<=e.count&&p5(e,i,i.count,!0):e.count===i.count&&e.props.length===i.props.length&&p5(e,i,e.props.length))}function tE(e){e.forEach(({physicalRow:e,physicalColumn:t,key:i,value:o})=>{eA.setCellMeta(e,t,i,o)})}function tk(e){eA.startCellOptionMetaRecording();try{e()}finally{eA.endCellOptionMetaRecording()}}function tI(e){let t=e?[]:eA.getCellOptionCellMetas(),i=eA.getUserDefinedCellMetas(),o=eA.getInvalidCellMetas();eA.clearCache(),t.length>0&&tk(()=>tE(t)),tE(i),eA.restoreInvalidCellMetas(o)}function tA(e){let t=eH.columns;if(t)for(let i=0;i<e;i++){let e=o3(t)?t(i):t[i];e&&eA.updateColumnMeta(i,e)}}function tH(e){return void 0!==e.data&&void 0!==e.columns&&!o3(e.columns)&&!o3(eH.columns)}function tO(e,t){let i=T,o=i.renderSuspendedCounter;i.renderSuspendedCounter=o+1;try{e()}finally{i.renderSuspendedCounter=Math.max(i.renderSuspendedCounter-1,t?o:0)}}function tF(e,t,i=!1,o=null,r=null,n=e){var s,l,a;let h,d,u,c,g,p,m,f,w,b=(L?T.loadData:T.updateData).bind(T);eU(e.rows)&&tf('The "rows" setting is no longer supported. Do you mean startRows, minRows or maxRows?'),eU(e.cols)&&tf('The "cols" setting is no longer supported. Do you mean startCols, minCols or maxCols?'),eU(e.ganttChart)&&tf('Since 8.0.0 the "ganttChart" setting is no longer supported.'),d=Array.isArray(e.columns)?e.columns:[],u=Array.isArray(e.cell)?e.cell:[],c=[e,...d,...u],w9.forEach(({name:e,version:t,migrationUrl:i})=>{c.some(t=>tM(t)&&eU(t[e]))&&ih(`Core.removedOption.${e}`,`The "${e}" setting was removed in Handsontable ${t} and is ignored. See ${i} for the migration path.`)}),tW=null;let{previousMinimumSizes:C,previousColumnLayout:y,previousRootSize:S,previousDataSource:v}={previousMinimumSizes:{minRows:eH.minRows,minSpareRows:eH.minSpareRows,minCols:eH.minCols,minSpareCols:eH.minSpareCols},previousColumnLayout:!L&&(!eH.columns&&t_(e,"dataSchema")&&!o3(e.columns)||tH(e))?tv(!0,tH(e)):null,previousRootSize:{height:t?void 0:eH.height,width:t?void 0:eH.width},previousDataSource:{dataProvider:eH.dataProvider,isExternal:!t&&tz}},x=function(e,t){let i;for(i in t||eA.assertNoInitOnlyUpdates(e),e)"data"===i||"language"===i||("className"===i?eK("className",e.className):"tableClassName"===i&&T.table?(eK("tableClassName",e.tableClassName),T.view._wt.wtOverlays.syncOverlayTableClassNames()):rI.getSingleton().isRegistered(i)||rI.getSingleton().isDeprecated(i)?eY(i,e[i]):!t&&t_(e,i)&&function(e,t){let i="editor"===t&&!0===e[t],o="cell"===t&&!Array.isArray(e[t]);if(i||o)return;let r=eO[t];eO[t]=e[t],be.has(t)&&e[t]!==r&&(Reflect.deleteProperty(eH,t),("fixedColumnsStart"===t||"fixedColumnsLeft"===t)&&Reflect.deleteProperty(eH,"_fixedColumnsStart"))}(e,i));return!t&&eA.updateGlobalTypeFromSettings(e)}(e,t);!function(e,t){let i=mK(T.rootContainer),o=t_(e,"themeName"),r=t_(e,"theme");if(o&&r&&ir("Both `theme` and `themeName` are defined in your configuration. These options are aliases and cannot be used together. The `themeName` option will be ignored."),t){let t;r&&"string"==typeof e.theme?t=e.theme:o&&"string"==typeof e.themeName&&e.themeName&&!r?(t=e.themeName,eH.theme=e.themeName,eH.themeName=void 0):i?t=i:T.themeManager&&(t=T.themeManager.getClassName()),T.useTheme(t??null)}else{let t=T.getCurrentThemeName();r&&"string"==typeof e.theme&&t!==e.theme?(T.themeManager?.destroy(),T.useTheme(e.theme)):o&&!r&&t!==e.themeName?(T.themeManager?.destroy(),eH.theme=e.themeName,eH.themeName=void 0,T.useTheme(e.themeName)):sy(T)&&!i&&tM(e.theme)&&function(e){if(null===T.themeManager)e2(e,e1()),T.useTheme(T.themeManager.getClassName());else{let t;t="function"!=typeof e.getThemeConfig?wv(e):e,T.themeManager.update(t),T.useTheme(T.themeManager.getClassName())}}(e.theme)}}(e,t);let M=(!!t_(g=e0(e),"colorScheme")||!!t_(g,"density"))&&(T.themeManager?!!T.themeManager.setOverrides(g)&&!t&&(T.stylesHandler.clearCache(),!0):(wr(g.colorScheme)&&wr(g.density)||ea||(ea=!0,ir("The `colorScheme` and `density` options require the theme engine, so they have no effect when the theme is enabled by a CSS class name. Pass a theme config object or a `ThemeBuilder` instance to the `theme` option, or remove the `ht-theme-*` class from the container element to use the default theme.")),!1)),k=Array.isArray(e.cell);void 0===e.cell||null===e.cell||k||il(T.rootElement,"Core.invalidCellOption",'The "cell" option must be an array of objects. The passed value was ignored, and the previously declared entries were kept. Wrap a single entry in an array: cell: [{ row: 0, col: 0, ... }].');let I=(null!==(p=void 0!==e.columns&&Array.isArray(eH.columns)?eH.columns:null)&&(tI(k),tA(p.length)),(m=i&&null===p&&void 0!==e.columns)&&tI(k),{earlyColumnsSetting:p,resetsColumnMetaBeforeLoad:m});i||(s=()=>(function(e,t,i,o,r){if(!0===T.runHooks("hasExternalDataSource"))e.data&&ir('The "data" setting is ignored when "hasExternalDataSource" returns `true`.'),t||t_(e,"dataProvider")&&(!o.isExternal||e.dataProvider!==o.dataProvider||void 0!==e.columns)?r([],"updateSettings"):void 0!==e.columns&&(R.createMap(),T.initIndexMappers());else if(void 0===e.data&&void 0===eH.data)r(null,"updateSettings");else if(void 0!==e.data){let t;U=null===i?null:{previousLayout:i,columnsPath:void 0!==e.columns};try{r(e.data,"updateSettings")}finally{U=null}t=G,G=null,t?.sorting?.clearSort(),t?.filters&&(t.filters.clearConditions(),t.filters.filter())}else void 0!==e.columns?(R.createMap(),T.initIndexMappers()):null!==i&&!eH.columns&&(R.createMap(),tR(i)&&T.initIndexMappers())})(e,t,y,v,b),f=["data","columns","dataSchema","dataProvider"].some(t=>t_(e,t)),L||!f?s():(tO(s,!1),eA.invalidateMetaExtensions())),!L&&e.language&&(g_(h=dF(a=e.language))?(gV(h),T.runHooks("beforeLanguageChange",h),eO.language=h,T.runHooks("afterLanguageChange",h)):dN(a));let A=()=>(function(e,t,i,o,r,n){var s;let l,a,h,d,u,{earlyColumnsSetting:c,resetsColumnMetaBeforeLoad:g}=t,p=T.countCols();null===c&&!g&&(void 0!==e.cell||void 0!==e.cells||void 0!==e.columns||n)&&tI(i),p>0&&null===c&&tA(p),(null!==r&&(l=T.rowIndexMapper.getNumberOfIndexes(),a=T.columnIndexMapper.getNumberOfIndexes(),h=T.countSourceRows(),d=T.countSourceCols(),u=e=>e.physicalRow<l&&e.physicalColumn<a&&!(({physicalRow:e,physicalColumn:t})=>e<h&&R.isTrailingFillerRow(e)||t<d&&R.isTrailingFillerColumn(t))(e),tE(r.userDefined.filter(u)),eA.restoreInvalidCellMetas(r.invalid.filter(u))),null!==o)?tk(()=>tE(o)):i&&(s=e.cell,tk(()=>{s.forEach(e=>{let{row:t,col:i,...o}=e;T.setCellMetaObject(t,i,o)})})),T.runHooks("afterCellMetaReset")})(e,I,k,o,r,x);i||A(),L&&!i&&pX(T,"init");let H=((w=wB(T,e,t)).ignoredAxes.forEach(e=>{eO[e]=S[e]}),w);if(!t&&(T.view&&(T.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked(),T.view._wt.exportSettingsAsClassNames(),T.view.invalidateIndexSizesCache(),T.view.syncRowHeightMode()),e_.updateHighlightClassNames(),T.renderChangeTracker.markAllChanged(),T.runHooks("afterUpdateSettings",n),!T||T.isDestroyed))return null;return i||(t||E.removeSurplusRowsAndCols(C),E.adjustRowsAndCols(),eZ(1),T.view&&!L&&T.render()),l=H.scrollOwnerChanged,M&&T.themeManager&&T.runHooks("afterSetTheme",T.themeManager.getClassName(),!1),!t&&T.view&&l&&T.view._wt.wtOverlays.updateMainScrollableElements(),sy(T)&&tQ?.applyConfig(eH.layout),(t||t_(e,"dataProvider"))&&(tz=!0===T.runHooks("hasExternalDataSource")),i?A:null}function tN(){return Math.max(T.countRows(),eH.data.length)-1}function tL(e,t,i,o){var r;let n,s,l=tn(e,t,i),a=T.hasHook("afterSetSourceDataAtCell"),h=[],d=(e,t)=>{let i=T.toVisualRow(e);if("string"==typeof t){let o=R.propToCol(t);if(Number.isInteger(o))return eA.getCellMetaUncached(e,T.toPhysicalColumn(o),{visualRow:i??e,visualColumn:o})}let o="function"==typeof t?R.propToCol(t):T.toVisualColumn(t);return Number.isInteger(o)?T.getCellMetaTransient(i,o):{...Object.getPrototypeOf(eH),...eH}},u="UndoRedo.undo"===(r=ts(e,t,o))||"UndoRedo.redo"===r;en(l,([e,t,i])=>{let r=u?i:rU(i,d(e,t),o);a&&h.push([e,t,x.getAtCellByProp(e,t),r]),(u||function(e,t,i){let o=t.sourceDataValidator;if(!o3(o)||!0===o(e,t,i))return!0;let{row:r,col:n,sourceDataWarningMessage:s,allowInvalid:l}=t;return s&&pZ(s,[{row:r,col:n,value:e}]),!0===l}(r,d(e,t),o??"setSourceDataAtCell"))&&function(e,t,i,o=!1){let r=Number(e);if(null===ed.getRecordingTransaction()||!Number.isInteger(r)||r<0)return x.setAtCell(e,t,i,o);let n=x.getRawAtCellByProp(r,t),s=p$(n);x.setAtCell(e,t,i,o);let l=x.getRawAtCellByProp(r,t);l!==n&&pU(ed,{physicalRow:r,prop:t,oldValue:s,newValue:p$(l)})}(e,t,r,u)}),a&&this.runHooks("afterSetSourceDataAtCell",h,o),this.render();let c=T.getActiveEditor();c&&eU(c.refreshValue)&&(!c.isOpened()||(n=T.toPhysicalRow(c.row),s=c.prop,l.some(([e,t])=>e===n&&t===s)))?c.refreshValue():c?.isOpened()&&c.refreshDimensions?.()}function tB(e,t){return[e<T.countRows()?T.toPhysicalRow(e):e,t<T.countCols()?T.toPhysicalColumn(t):t]}function tV(e,t,i,o){if(!(null!==ed.getRecordingTransaction()&&!pW.has(i)&&eA.isUserDefinedMetaRecording()&&Number.isInteger(e)&&Number.isInteger(t)))return void o();let r="editor"===i?[ps,i]:[i],n=r.map(i=>eA.getCellMetaKeyState(e,t,i));o(),r.forEach((i,o)=>{let r=eA.getCellMetaKeyState(e,t,i),s=n[o];(s.hadOwn!==r.hadOwn||s.value!==r.value||s.origin!==r.origin)&&ed.record({type:"meta",physicalRow:e,physicalColumn:t,key:i,before:s,after:r})})}this._getValueToValidate=function(e,t){return tm(e,t)},this._isAnsweringStaleValidation=function(){return em},this.refreshDimensions=function(){if(!T.view)return;let e=T.view,{width:t,height:i}=e.getLastSize(),{width:o,height:r}=T.rootElement.getBoundingClientRect(),n=o!==t||r!==i;!1!==T.runHooks("beforeRefreshDimensions",{width:t,height:i},{width:o,height:r},n)&&(n||e._wt.wtOverlays.scrollableElement===T.rootWindow?(e.setLastSize(o,r),T.render()):e.renderWhenWindowResizeMovedFixed(),T.runHooks("afterRefreshDimensions",{width:t,height:i},{width:o,height:r},n))},this.updateData=function(e,t){eX(()=>ed.suppress(()=>{var i,o;return i=e,o=t,void tb(()=>pQ(i,e=>{R=e},e=>{R=e,T.renderChangeTracker.markAllChanged(),M?.suspendStrandDiscards();try{let e,t,i=U;i&&tR(i.previousLayout,i.columnsPath)?i.columnsPath?(e=[T.getPlugin("columnSorting"),T.getPlugin("multiColumnSorting")],t=T.getPlugin("filters"),G={sorting:e.find(e=>e?.isSorted()===!0)??null,filters:t?.enabled===!0&&t.exportConditions().length>0?t:null},T.columnIndexMapper.initToLength(T.getInitialColumnCount()),T.rowIndexMapper.fitToLength(T.countSourceRows())):T.initIndexMappers():(T.columnIndexMapper.fitToLength(T.getInitialColumnCount()),T.rowIndexMapper.fitToLength(T.countSourceRows())),function(){let e,t,i,o,r;if(0===ee.size)return;let n=Array.from(ee.values(),({records:e})=>e),s=(e=w1(F),t=new Map,i=new Map,n.forEach(o=>o.forEachAnchor(o=>{let{record:r}=o,n=w3(F,o,e);i.set(r,[...i.get(r)??[],o]),t.set(r,t.has(r)&&t.get(r)!==n?null:n)})),o=new Map,t.forEach((e,t)=>{null!==e&&o.set(t,e)}),(r=O.relocate(o)).forEach(e=>{i.get(e).forEach(t=>{null!==t.meta&&(t.meta=F.getStoredMeta(e.physicalRow,t.metaColumn)??null)})}),r);0!==s.size&&P.followRelocated(s,(e,t)=>!Number.isInteger(e.col)||eA.getCellMetaIfExists(t,e.col)===e).forEach(({record:e,meta:t})=>_.set(t,e))}(),E.adjustRowsAndCols(),e_.markSource("updateData");try{e_.refresh()}finally{e_.markEndSource()}}finally{M?.resumeStrandDiscards()}},{hotInstance:T,dataMap:R,dataSource:x,internalSource:"updateData",source:o,metaManager:eA,firstRun:L,beforeRender:()=>eZ(1)}))}))},this.loadData=function(e,t){eX(()=>ed.suppress(()=>tC(e,t)))},this.getInitialColumnCount=function(){let e=eH.columns,t=0;if(Array.isArray(e))t=e.length;else if(o3(e))if("array"===T.dataType){let i=T.countSourceCols();for(let o=0;o<i;o+=1)e(o)&&(t+=1)}else("object"===T.dataType||"function"===T.dataType)&&(t=R.colToPropCache.length);else if(eU(eH.dataSchema)){let e=R.getSchema();t=Array.isArray(e)?e.length:tD(e)}else t=T.countSourceCols();return t},this.initIndexMappers=function(){this.columnIndexMapper.initToLength(this.getInitialColumnCount()),this.rowIndexMapper.initToLength(this.countSourceRows())},this.getData=function(e,t,i,o){return eG(e)?R.getAll():R.getRange(T._createCellCoords(e,t),T._createCellCoords(i,o),pq.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,i,o){return R.getCopyableText(T._createCellCoords(e,t),T._createCellCoords(i,o))},this.getCopyableData=function(e,t){return e$(R.getCopyable(e,r3(T,t)))},this._getCopyableData=function(e,t){return R.getCopyable(e,r3(T,t))},this.getCopyableSourceData=function(e,t){return x.getCopyable(e,r3(T,t))},this.getSchema=function(){return R.getSchema()},this.updateSettings=function(e,t=!1){let i=pT(e,T.isRtl()),o=t?i:X(i);if(o!==i&&0===Object.keys(o).length)return;let r=pH(o,e);eX(()=>ed.suppress(()=>{if("configure"!==B||t){let e=B;"meta"===e&&(B="data");try{tF(o,t,!1,null,null,r)}catch(e){throw function(e,t){if(!t&&!L&&void 0!==e.data&&T.view&&!T.isDestroyed)try{T.render()}catch{}}(o,t),e}finally{B=e}return}t_(o,"data")&&ir('The "data" setting passed to updateSettings() while another settings and data change is being applied is ignored: the data that change loads replaces it. Call loadData() once it has finished.');let e=tF(o,t,!0,null,null,r);e&&V.push(e)}))},this._applySettingsAndData=function(e,t,i,o=null,r=null){let n=pT(e,T.isRtl()),s=!!T.view;s&&T.suspendRender();try{eX(()=>ed.suppress(()=>{let s=B,l=V,a=null!==s;B="configure",V=[];try{try{let s=X(n),l=tF(s,!1,!0,o,r,pH(s,e));if(!T||T.isDestroyed)return;let a=V;B="data",tC(t,i),B="meta",l?.(),a.forEach(e=>e()),T.view&&pX(T,"loadData")}finally{B=s,V=l}T.view&&!a&&eD.getItems().forEach(([,e])=>{e.enabled&&"function"==typeof e.onDataReady&&e.onDataReady()}),eZ(1)}catch(e){throw a||eD.getItems().forEach(([,e])=>{e.dropDeferredDataWork()}),e}}))}finally{s&&T&&!T.isDestroyed&&T.resumeRender()}},this._isDataWorkDeferred=function(){return null!==B},this._replaceInitPassSettings=function(e){if(null===K)return null;let t=K,i=X(e),o={};return Object.keys(i).forEach(e=>{o[e]=t[e],t[e]=i[e]}),o},this._addSettingsFilter=function(e){Y.includes(e)||Y.push(e)},this._requirePlugin=function(e,t){Z.require(e,t)},this._releasePlugin=function(e,t){Z.release(e,t)},this._isPluginRequired=function(e){return Z.isRequired(e)},this._removeSettingsFilter=function(e){let t=Y.indexOf(e);-1!==t&&Y.splice(t,1)},this._getWaitingChangeSets=function(){return[...ee].map(([e,{source:t}])=>({changes:e,source:t}))},this.getPhysicalRowOfChange=function(e){let t=ei.get(e)?.getPhysicalRow(e);return void 0!==t?t:"number"==typeof e[0]?T.toPhysicalRow(e[0]):null},this._runAfterValidatorAnswer=function(e){0===eo?e():es.push(e)},this._trackRecord=function(e,t){let i=tc(e);if(null===i)return null;let o=w0(O,F,i),r=void 0===t?null:R.colToProp(t),n=null===r?null:e8(r),s=null===n?null:D.tracker.track(n),l=()=>null===o?null:w3(F,o);return{getPhysicalRow:l,getVisualRow(){let e=l();return null===e?null:T.toVisualRow(e)},getVisualColumn(){if(void 0===t)return;if(null===r)return t;if(null!==s)return null===s.physicalColumn?null:T.toVisualColumn(s.physicalColumn);let e=R.propToCol(r);return"number"==typeof e?e:null===e?null:t},release(){null!==o&&(O.release(o.record),o=null),null!==s&&(D.tracker.release(s),s=null)}}},this._addDroppedChangesListener=function(e){Q.includes(e)||Q.push(e)},this._removeDroppedChangesListener=function(e){let t=Q.indexOf(e);-1!==t&&Q.splice(t,1)},this._addRowRevealer=function(e){J.includes(e)||J.push(e)},this._removeRowRevealer=function(e){let t=J.indexOf(e);-1!==t&&J.splice(t,1)},this._prepareRowReveal=function(){let e=J.map(e=>e());return t=>{let i=()=>null!==T.rowIndexMapper.getRenderableFromVisualIndex(t);if(i())return!0;for(let o of e)if(o(t)&&i())return!0;return!1}},this._isDataLoadPending=function(){return"configure"===B},this._isHeldMetaPhaseRunning=function(){return"meta"===B},this._isRunningInitReadySteps=function(){return $},this.getValue=function(){let e=T.getSelectedRangeActive();if(eH.getValue){if(o3(eH.getValue))return eH.getValue.call(T);else if(e&&"string"==typeof eH.getValue){let t=e.highlight.row??0;return T.getData()[t][eH.getValue]}}else if(e)return T.getDataAtCell(e.highlight.row,e.highlight.col);return null},this.getSettings=function(){return eH},this.clear=function(){let e=this.countRows(),t=this.countCols();if(e>0&&t>0){let i=[];tp(i,0,e-1,0,t-1),i.length>0&&this.setDataAtCell(i)}this.deselectCell()},this.alter=function(e,t,i,o,r){ed.run(w7[e]??e,o,()=>{ed.describe({index:t}),E.alter(e,t,i,o,r)})},this.getCell=function(e,t,i=!1){if(!T.view)return null;let o=t,r=e;if(t>=0){if(T.columnIndexMapper.isHidden(T.toPhysicalColumn(t)))return null;o=T.columnIndexMapper.getRenderableFromVisualIndex(t)}if(e>=0){if(T.rowIndexMapper.isHidden(T.toPhysicalRow(e)))return null;r=T.rowIndexMapper.getRenderableFromVisualIndex(e)}return null===r||null===o||void 0===r||void 0===o?null:T.view.getCellAtCoords(T._createCellCoords(r,o),i)},this.getCoords=function(e){if(!T.view)return null;let t=T.view._wt.wtTable.getCoords(e);if(null===t)return null;let{row:i,col:o}=t,r=i,n=o;return null!==i&&i>=0&&(r=T.rowIndexMapper.getVisualFromRenderableIndex(i)),null!==o&&o>=0&&(n=T.columnIndexMapper.getVisualFromRenderableIndex(o)),T._createCellCoords(r,n)},this.colToProp=function(e){return R.colToProp(e)},this.propToCol=function(e){return R.propToCol(e)},this.toVisualRow=e=>T.rowIndexMapper.getVisualFromPhysicalIndex(e),this.toVisualColumn=e=>T.columnIndexMapper.getVisualFromPhysicalIndex(e),this.toPhysicalRow=e=>T.rowIndexMapper.getPhysicalFromVisualIndex(e),this.toPhysicalColumn=e=>T.columnIndexMapper.getPhysicalFromVisualIndex(e),this.getRowId=function(e){let t=Number.isInteger(e)&&e>=0&&e<T.countRows()?T.toPhysicalRow(e):null;return null===t?null:tK.getRowIdAtPhysicalRow(t)},this.getVisualRowById=function(e){let t=tK.getPhysicalRowById(e),i=null===t?null:T.toVisualRow(t);return null!==i&&i<T.countRows()?i:null},this.getPhysicalRowById=function(e){return tK.getPhysicalRowById(e)},this.getRowIdAtPhysicalRow=function(e){return!Number.isInteger(e)||e<0||e>=T.rowIndexMapper.getNumberOfIndexes()?null:tK.getRowIdAtPhysicalRow(e)},this.getRowIds=function(e){let t=T.countRows(),i=(Array.isArray(e)?e:Array.from({length:t},(e,t)=>t)).map(e=>Number.isInteger(e)&&e>=0&&e<t?T.toPhysicalRow(e):null);return tK.getRowIdsAtPhysicalRows(i)},this.getVisualRowsByIds=function(e){return Array.isArray(e)?e.map(e=>T.getVisualRowById(e)):[]},this.getPhysicalRowsByIds=function(e){return Array.isArray(e)?e.map(e=>tK.getPhysicalRowById(e)):[]},this.setDataAtRowIdProp=function(e,t,i,o){let r=T.getVisualRowById(e);if(null!==r)return T.setDataAtRowProp(r,t,i,o),!0;let n=tK.getPhysicalRowById(e);return null!==n&&(T.setSourceDataAtCell(n,t,i,o),!0)},this.getDataAtCell=function(e,t){return R.get(e,r3(T,t))},this._getDataAtColumnForRows=function(e,t){return R.getAtColumnForRows(e,t)},this.getDataAtRowProp=function(e,t){return R.get(e,t)},this.getDataAtCol=function(e){let t=[],i=R.getRange(T._createCellCoords(0,e),T._createCellCoords(tN(),e),pq.DESTINATION_RENDERER);for(let e=0;e<i.length;e+=1)for(let o=0;o<i[e].length;o+=1)t.push(i[e][o]);return t},this.getDataAtProp=function(e){let t=[],i=R.propToCol(e);if(null===i)return t;let o=R.getRange(T._createCellCoords(0,i),T._createCellCoords(tN(),i),pq.DESTINATION_RENDERER);for(let e=0;e<o.length;e+=1)for(let i=0;i<o[e].length;i+=1)t.push(o[e][i]);return t},this.getSourceData=function(e,t,i,o){return void 0===e?x.getData():x.getByRange(T._createCellCoords(e,t??null),T._createCellCoords(i??null,o??null))},this.getSourceDataArray=function(e,t,i,o){return void 0===e?x.getData(!0):x.getByRange(T._createCellCoords(e,t??null),T._createCellCoords(i??null,o??null),!0)},this.getSourceDataAtCol=function(e){return x.getAtColumn(e)},this.setSourceDataAtCell=function(e,t,i,o){let r=ts(e,t,o);ed.run("change",r,()=>tL.call(this,e,t,i,o))},this.getSourceDataAtRow=function(e){return x.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return x.getAtCell(e,t)},this.getDataAtRow=function(e){return R.getRange(T._createCellCoords(e,0),T._createCellCoords(e,this.countCols()-1),pq.DESTINATION_RENDERER)[0]||[]},this.getDataType=function(e,t,i,o){let r=void 0===e?[0,0,T.countRows(),T.countCols()]:[e,t,i,o],[n,s]=r,[,,l,a]=r,h=null,d=null;void 0===l&&(l=n),void 0===a&&(a=s);let u="mixed";return nF(Math.max(Math.min(n,l),0),Math.max(n,l),e=>{let t=!0;return nF(Math.max(Math.min(s,a),0),Math.max(s,a),i=>(d=T.getCellMetaTransient(e,i).type??null,h?t=h===d:h=d,t)),u=t?d??"mixed":"mixed",t}),u},this.removeCellMeta=function(e,t,i){ed.run("remove_cell_meta",void 0,()=>{let[o,r]=tB(e,t),n=eA.getCellMetaKeyValue(o,r,i);!1!==T.runHooks("beforeRemoveCellMeta",e,t,i,n)&&(tV(o,r,i,()=>{eA.removeCellMeta(o,r,i)}),T.runHooks("afterRemoveCellMeta",e,t,i,n)),n=null})},this.spliceCellsMeta=function(e,t=0,...i){i.length>0&&!Array.isArray(i[0])&&tf("The 3rd argument (cellMetaRows) has to be passed as an array of cell meta objects array."),ed.run("splice_cells_meta",void 0,()=>{if(t>0){let i=T.toPhysicalRow(e);pG(T,!1,i,t),eA.removeRow(i,t)}i.length>0&&en(i.reverse(),t=>{let i=T.toPhysicalRow(e);pG(T,!0,i,1),eA.createRow(i),en(t,(t,i)=>{this.setCellMetaObject(e,i,t)})})}),T.render()},this.setCellMetaObject=function(e,t,i){"object"==typeof i&&ed.run("set_cell_meta",void 0,()=>{tT(i,(i,o)=>{this.setCellMeta(e,t,o,i)})})},this._setCellMetaDeclarative=function(e,t,i,o){let[r,n]=tB(e,t);eA.disableUserDefinedMetaRecording();try{eA.setCellMeta(r,n,i,o)}finally{eA.enableUserDefinedMetaRecording()}},this._removeCellMetaByPhysicalIndex=function(e,t,i){ed.run("remove_cell_meta",void 0,()=>{tV(e,t,i,()=>{eA.removeCellMeta(e,t,i)})})},this._setCellMetaByPhysicalIndex=function(e,t,i,o){ed.run("set_cell_meta",void 0,()=>{tV(e,t,i,()=>{eA.setCellMeta(e,t,i,o)})})},this.setCellMeta=function(e,t,i,o){ed.run("set_cell_meta",void 0,()=>{if(!1===T.runHooks("beforeSetCellMeta",e,t,i,o))return;let[r,n]=tB(e,t);tV(r,n,i,()=>{eA.setCellMeta(r,n,i,o)}),T.runHooks("afterSetCellMeta",e,t,i,o)})},this.getCellsMeta=function(){return eA.getCellsMeta()},this.getCellMeta=function(e,t,i={skipMetaExtension:!1}){let o=T.toPhysicalRow(e),r=T.toPhysicalColumn(t);return null===o&&(o=e),null===r&&(r=t),eA.getCellMeta(o,r,{visualRow:e,visualColumn:t,...i})},this.getCellMetaTransient=function(e,t){let i=T.toPhysicalRow(e),o=T.toPhysicalColumn(t);return null===i&&(i=e),null===o&&(o=t),eA.getCellMetaTransient(i,o,{visualRow:e,visualColumn:t})},this.getColumnMeta=function(e){return eA.getColumnMeta(T.toPhysicalColumn(e))},this.getCellMetaAtRow=function(e){return eA.getCellsMetaAtRow(e)},this.isColumnModificationAllowed=function(){return!("object"===T.dataType||eH.columns)},this.getCellRenderer=function(e,t){let i="number"==typeof e?T.getCellMeta(e,t).renderer:e.renderer;return"string"==typeof i?se(i):eG(i)?se("text"):i},this.getCellEditor=function(e,t){let i="number"==typeof e?T.getCellMeta(e,t).editor:e.editor;return"string"==typeof i?rz(i):eG(i)||!0===i?rz("text"):i},this.getCellValidator=function(e,t){let i="number"==typeof e?T.getCellMeta(e,t):e,o="string"==typeof i.validator?sl(i.validator):i.validator;return sA(i.maxLength)?function(e){if(!e)return sH;let t=eq(e)?sT(e):e;return function(e,i){sH.call(this,e,o=>{o?t.call(this,e,i):i(!1)})}}(o):o},this.validateCells=function(e){this._validateCells(e)},this.validateRows=function(e,t){Array.isArray(e)||tf("validateRows parameter `rows` must be an array"),this._validateCells(t,e)},this.validateColumns=function(e,t){Array.isArray(e)||tf("validateColumns parameter `columns` must be an array"),this._validateCells(t,void 0,e)},this._validateCells=function(e,t,i){let o=e3();e&&(o.onQueueEmpty=e);let r=T.countRows()-1;for(;r>=0;){if(void 0!==t&&-1===t.indexOf(r)){r-=1;continue}let e=T.countCols()-1;for(;e>=0;){if(void 0!==i&&-1===i.indexOf(e)){e-=1;continue}o.addValidatorToQueue();let t=r,n=e,s=T.getCellMetaTransient(t,n);if(T.validateCell(tm(t,n,s),s,e=>{if("boolean"!=typeof e&&tf("Validation error: result is not boolean"),!1===e){o.valid=!1;let e=T.getCellMeta(t,n,{skipMetaExtension:!0});e.valid=!1,o1(e)}o.removeValidatorFormQueue()},"validateCells"),!T)return;e-=1}r-=1}o.checkIfQueueIsEmpty()},this.getRowHeader=function(e){let t=eH.rowHeaders,i=e;if(void 0!==i&&(i=T.runHooks("modifyRowHeader",i)),void 0===i){let e=[];nF(T.countRows()-1,t=>{e.push(T.getRowHeader(t))}),t=e}else Array.isArray(t)&&void 0!==t[i]?t=t[i]:o3(t)?t=t(i):t&&"string"!=typeof t&&"number"!=typeof t&&(t=i+1);return t},this.hasRowHeaders=function(){return!!eH.rowHeaders},this.hasColHeaders=function(){if(void 0!==eH.colHeaders&&null!==eH.colHeaders)return!!eH.colHeaders;for(let e=0,t=T.countCols();e<t;e++)if(T.getColHeader(e))return!0;return!1};let tz=!1,tW=null;this.getColHeader=function(e,t=-1){let i=T.runHooks("modifyColHeader",e);if(void 0===i){let e=[],t=T.countCols();for(let i=0;i<t;i++)e.push(T.getColHeader(i));return e}let o=eH.colHeaders,r=eH.columns,n="function"==typeof r?r:null,s=T.toPhysicalColumn(i),l=null;if(null!==n){let e=T.countCols();if(null===tW||tW.columns!==n||tW.columnsLen!==e){let t=[];for(let i=0;i<e;i++)n(i)&&t.push(i);tW={columns:n,columnsLen:e,indexes:t}}l=n(tW.indexes[s])??null}return!1===eH.colHeaders?o=null:l&&l.title?o=l.title:r&&!o3(r)&&r[s]&&r[s].title?o=r[s].title:Array.isArray(eH.colHeaders)&&void 0!==eH.colHeaders[s]?o=eH.colHeaders[s]:o3(eH.colHeaders)?o=eH.colHeaders(s):eH.colHeaders&&"string"!=typeof eH.colHeaders&&"number"!=typeof eH.colHeaders&&(o=di(i)),o=T.runHooks("modifyColumnHeaderValue",o,e,t)},this._getColWidthFromSettings=function(e){let t;if(e>=0&&(t=T.getCellMeta(0,e).width),null!=(t??=eH.colWidths)){switch(typeof t){case"object":{if(e<0){t=t[e];break}let i=T.toPhysicalColumn(e),o=null===i?e:tY.getDeclaredIndex(i,t);t=null===o?void 0:t[o];break}case"function":t=t((e>=0?T.toPhysicalColumn(e):null)??e)}"string"==typeof t&&(t=Number.parseInt(t,10))}return t??void 0},this.getColWidth=function(e,t){let i=T._getColWidthFromSettings(e);return void 0===(i=T.runHooks("modifyColWidth",i,e,t))&&(i=50),i};let t$=(e,t)=>{let i=eH[e];if("object"!=typeof i&&"function"!=typeof i||t<0)return sF(i,t);let o=T.toPhysicalRow(t);if(null===o)return;if(!Array.isArray(i))return sF(i,o);let r=tX.getDeclaredIndex(e,o);return null===r?void 0:sF(i,r)};this._isRowHeightExact=function(e){return!sL(eH.autoRowSize)&&sN(t$("rowHeights",e))},this._getRowHeightFromSettings=function(e){let t=t$("rowHeights",e),i=sN(t);if(i&&!sL(eH.autoRowSize))return t;let o=T.stylesHandler.getDefaultRowHeight(e),r=void 0!==eH.rowHeights&&null!==eH.rowHeights?t:void 0,n=i?t:t$("minRowHeights",e)??r;return null!=n&&null!==o&&n<o?o:n},this.getRowHeight=function(e,t){let i=T._getRowHeightFromSettings(e);return T.runHooks("modifyRowHeight",i,e,t)},this.countSourceRows=function(){return x.countRows()},this.countSourceCols=function(){return x.countFirstRowKeys()},this.countRows=function(){return R.getLength()},this.countCols=function(){return Math.min(eH.maxCols,T.columnIndexMapper.getNotTrimmedIndexesLength())},this.countRenderedRows=function(){let e=T.view;return e?._wt.drawn?e._wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){let e=T.view;return e?._wt.drawn?e._wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){let e=T.view;return e?._wt.drawn?e._wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){let e=T.view;return e?._wt.drawn?e._wt.wtTable.getVisibleColumnsCount():-1},this.countRowHeaders=function(){let e=T.view;return e?e.getRowHeadersCount():0},this.countColHeaders=function(){let e=T.view;return e?e.getColumnHeadersCount():0},this.countEmptyRows=function(e=!1){let t=0;return nN(T.countRows()-1,i=>{if(T.isEmptyRow(i))t+=1;else if(!0===e)return!1}),t},this.countEmptyCols=function(e=!1){let t=0;return nN(T.countCols()-1,i=>{if(T.isEmptyCol(i))t+=1;else if(!0===e)return!1}),t},this.isEmptyRow=function(e){return eH.isEmptyRow.call(T,e)},this.isEmptyCol=function(e){return eH.isEmptyCol.call(T,e)},this.selectCell=function(e,t,i,o,r=!0,n=!0){if(eG(e)||eG(t))return!1;let s=[[null==e||Number.isNaN(Number(e))?0:Number(e),null==t||"number"==typeof t&&Number.isNaN(t)?0:t,eG(i)?void 0:i,eG(o)?void 0:o]];return T.selectCells(s,r,n)},this.selectCells=function(e=[[]],t=!0,i=!0){let o;if(!T.view)return!1;!1===t&&I.suspend(),!1===i&&k.suspend();try{o=e_.selectCells(e)}finally{I.resume(),!1===i&&k.resume()}return T&&o&&i&&T.listen(),o};let tU=(e,t)=>{if(!1!==e)return t();k.suspend();try{return t()}finally{k.resume()}};this.selectColumns=function(e,t=e,i,o=!0){return!!T.view&&tU(o,()=>e_.selectColumns(e,t,i))},this.selectRows=function(e,t=e,i,o=!0){return!!T.view&&tU(o,()=>e_.selectRows(e,t,i))},this.deselectCell=function(){e_.deselect()},this.selectAll=function(e=!0,t=e,i,o=!0){T.view&&(I.skipNextScrollCycle(),tU(o,()=>{e_.selectAll(e,t,i)}))};let tG=(e,t)=>e.getNearestNotHiddenIndex(t,1,!0);this.scrollViewportTo=function(e,t){if(!T.view)return!1;"number"==typeof e&&(e={row:arguments[0],col:arguments[1],verticalSnap:arguments[2]?"bottom":"top",horizontalSnap:arguments[3]?"end":"start",considerHiddenIndexes:arguments[4]??!0});let{row:i,col:o,considerHiddenIndexes:r}=e??{},n=i,s=o;if(o3(t)&&this.addHookOnce("afterScroll",t),void 0===r||r){var l,a;let e,t,r,h,d=(l=i,a=o,e=void 0!==l&&Number.isInteger(l)&&l>=0,t=void 0!==a&&Number.isInteger(a)&&a>=0,r=e?tG(T.rowIndexMapper,l):void 0,h=t?tG(T.columnIndexMapper,a):void 0,null!==r&&null!==h&&{renderableRow:e?T.rowIndexMapper.getRenderableFromVisualIndex(r)??void 0:l,renderableColumn:t?T.columnIndexMapper.getRenderableFromVisualIndex(h)??void 0:a});if(!1===d)return!1;n=d.renderableRow,s=d.renderableColumn}let h=Number.isInteger(n),d=Number.isInteger(s),u=!1;return h&&n>=0&&d&&s>=0?u=T.view.scrollViewport(T._createCellCoords(n,s),e.horizontalSnap,e.verticalSnap):h&&n>=0&&(d&&s<0||!d)?u=T.view.scrollViewportVertically(n,e.verticalSnap):d&&s>=0&&(h&&n<0||!h)&&(u=T.view.scrollViewportHorizontally(s,e.horizontalSnap)),o3(t)&&(u?this.view.render():(this.removeHook("afterScroll",t),this._registerMicrotask(()=>t()))),u},this.scrollToFocusedCell=function(e){if(!T.selection.isSelected())return!1;o3(e)&&T.addHookOnce("afterScroll",e);let{highlight:t}=T.getSelectedRangeActive(),i=T.scrollViewportTo(t.toObject());return i?T.view.render():o3(e)&&(T.removeHook("afterScroll",e),T._registerMicrotask(()=>e())),i},this.destroy=function(){j=!0,T.suspendRender(),T._clearTimeouts(),T._clearMicrotasks(),ed.destroy(),e_?.suspendGridTrackingFits(),eh?.disconnect(),eh=null,ev?.disconnect(),ev=null,ex?.(),ex=null,eE?.disconnect(),eE=null,T.view&&T.view.destroy(),x&&x.destroy(),x=null,sy(this)&&(!function(e){if(0===m1.length)return;let t=e?m1.lastIndexOf(e):m1.length-1;if(-1===t)return;if(m1.splice(t,1),0===m1.length){mJ.remove(),mJ=null,m0.remove(),m0=null;return}let i=mJ.parentElement;i&&m1.includes(i)||m1[0].append(mJ,m0)}(T.rootPortalElement),this.getFocusScopeManager().destroy(),tQ?.destroy(),T.themeManager?.destroy()),this.getShortcutManager().destroy(),eP.clear(),eA.clearCache(),w8.delete(this.guid),A.destroy(),M&&M.destroy(),T.rootContainer&&iX(T.rootContainer),T.rootPortalElement&&T.rootPortalElement.remove(),T.batchExecution(()=>{T.rowIndexMapper.destroy(),T.columnIndexMapper.destroy(),eD.getItems().forEach(([,e])=>{e.hot&&e.destroy()}),eD.clear(),T.runHooks("afterDestroy")},!0),rI.getSingleton().destroy(T),tT(T,(e,t,i)=>{var o;o3(e)?i[t]=(o=t,()=>{tf(`The "${o}" method cannot be called because this Handsontable instance has been destroyed`)}):"guid"!==t&&(i[t]=null)}),T.isDestroyed=!0,R&&R.destroy(),R=null,E=null,e_?.destroy(),e_=null,M=null,T=null},this.getActiveEditor=function(){return M?.getActiveEditor()};let tj=e=>{let t=T.view;return t?t[e]():null};this.getFirstRenderedVisibleRow=function(){return tj("getFirstRenderedVisibleRow")},this.getLastRenderedVisibleRow=function(){return tj("getLastRenderedVisibleRow")},this.getFirstRenderedVisibleColumn=function(){return tj("getFirstRenderedVisibleColumn")},this.getLastRenderedVisibleColumn=function(){return tj("getLastRenderedVisibleColumn")},this.getFirstFullyVisibleRow=function(){return tj("getFirstFullyVisibleRow")},this.getLastFullyVisibleRow=function(){return tj("getLastFullyVisibleRow")},this.getFirstFullyVisibleColumn=function(){return tj("getFirstFullyVisibleColumn")},this.getLastFullyVisibleColumn=function(){return tj("getLastFullyVisibleColumn")},this.getFirstPartiallyVisibleRow=function(){return tj("getFirstPartiallyVisibleRow")},this.getLastPartiallyVisibleRow=function(){return tj("getLastPartiallyVisibleRow")},this.getFirstPartiallyVisibleColumn=function(){return tj("getFirstPartiallyVisibleColumn")},this.getLastPartiallyVisibleColumn=function(){return tj("getLastPartiallyVisibleColumn")},this.getPlugin=function(e){return eD.getItem(r5(e))},this.getPluginName=function(e){return eD.getId(e)},this.getInstance=function(){return T},this.addHook=function(e,t,i){rI.getSingleton().add(e,t,T,i)},this.hasHook=function(e){return rI.getSingleton().has(e,T)||rI.getSingleton().has(e)},this.addHookOnce=function(e,t,i){rI.getSingleton().once(e,t,T,i)},this.removeHook=function(e,t){rI.getSingleton().remove(e,t,T)},this.runHooks=function(e,t,i,o,r,n,s){return rI.getSingleton().run(T,e,t,i,o,r,n,s)},this.getTranslatedPhrase=function(e,t){return gB(eH.language,e,t)},this.toHTML=()=>nv(this),this.toTableElement=()=>{let e=T.rootDocument;return nx(T,e)},this.timeouts=[],this.useTheme=e=>{let t=!!L;T.themeManager&&mX(e)&&T.themeManager.getClassName()!==e&&T.themeManager.destroy(),this.stylesHandler.useTheme(e??void 0);let i=this.stylesHandler.getThemeName();!t&&i&&(mK(this.rootContainer)&&(ij(this.rootContainer,/ht-theme-.*/g),iG(this.rootContainer,i)),T.render(),T.scrollViewportTo(0,0)),this.runHooks("afterSetTheme",i,t)},this.getCurrentThemeName=()=>T.stylesHandler.getThemeName()??null,this.getTableHeight=()=>T.rootElement.offsetHeight,this.getTableWidth=()=>T.rootElement.offsetWidth,this._registerTimeout=function(e,t=0){if("function"!=typeof e)return this.timeouts.push(e),e;let i=this.timeouts,o=setTimeout(()=>{let t=i.indexOf(o);-1!==t&&i.splice(t,1),e()},t);return this.timeouts.push(o),o},this._clearTimeouts=function(){en(this.timeouts,e=>{clearTimeout(e)})},this.microtasks=new Set,this._registerMicrotask=function(e){let t={cancelled:!1};this.microtasks.add(t),this.rootWindow.queueMicrotask(()=>{t.cancelled||(this.microtasks.delete(t),e())})},this._clearMicrotasks=function(){this.microtasks.forEach(e=>{e.cancelled=!0}),this.microtasks.clear()},this._getEditorManager=function(){return M},this._getDataSource=function(){return x},this._alignInsertedRowSizes=function(e,t){tX.alignInsertedRows(e,t)},this._readRowSizeOrigins=function(){return tX.readOrigins()},this._writeRowSizeOrigins=function(e){tX.writeOrigins(e)},this._getMetaManager=function(){return eA};let tq=(({ownerWindow:e,handleEvent:t,beforeKeyDown:i,afterKeyDown:o})=>{let r=nK({errorIdExists:e=>`The "${e}" context name is already registered.`}),n="grid",s=(e,t="table")=>{let i=((e,t="table")=>{let i=nK({errorIdExists:t=>`The "${t}" shortcut is already registered in the "${e}" context.`}),o=null,r=({keys:e,callback:t,group:o,runOnlyIf:r=()=>!0,captureCtrl:n=!1,preventDefault:s=!0,stopPropagation:l=!1,relativeToGroup:a,position:h,forwardToContext:d}={})=>{eG(o)&&tf("You need to define the shortcut's group."),!1===o3(t)&&tf("The shortcut's callback needs to be a function."),!1===Array.isArray(e)&&tf(eb`Pass the shortcut\'s keys as an array of arrays,\x20
97
97
  using the KeyboardEvent.key properties:\x20
98
98
  declare https: //developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values.`);let u={callback:t,group:o,runOnlyIf:r,captureCtrl:n,preventDefault:s,stopPropagation:l};eU(a)&&(u.relativeToGroup=a,u.position=h),mM(d)&&(u.forwardToContext=d),e.forEach(e=>{let t=mC(e);if(i.hasItem(t)){let e=i.getItem(t),o=e.findIndex(e=>e.group===a);if(-1!==o)if("before"===h)for(;o>0&&mk(e[o-1],a);)o-=1;else o+=1;else o=e.length;e.splice(o,0,u)}else i.addItem(t,[u])})},n=e=>{let t=mC(e);i.removeItem(t)};return{__kindOf:mE,scope:t,addShortcut:r,addShortcuts:(e,t={})=>{e.forEach(e=>{tT(t,(i,o)=>{!1===Object.prototype.hasOwnProperty.call(e,o)&&(e[o]=t[o])}),r(e)})},getShortcuts:e=>{let t=mC(e),o=i.getItem(t);return eU(o)?o.slice():[]},hasShortcut:e=>{let t=mC(e);return i.hasItem(t)},removeShortcutsByKeys:n,removeShortcutsByGroup:e=>{i.getItems().forEach(([t,i])=>{let o=i.filter(t=>t.group!==e);0===o.length?n(t.split("+")):(i.length=0,i.push(...o))})},setFallbackContext:e=>{o=e},getFallbackContext:()=>o}})(e,t);return r.addItem(e,i),i},l=()=>n,a=e=>r.getItem(e),h=!1,d=!1,u=e=>d&&r.getItems().some(([,t])=>t===e),c=(e,t,i)=>{let o=i.getShortcuts(t),r=!1,n=!1;for(let s=0;s<o.length&&!u(i);s++){let{callback:i,runOnlyIf:l,preventDefault:a,stopPropagation:d,captureCtrl:u,forwardToContext:c}=o[s];if(l?.(e)===!0){if(r=!0,h=u??!1,n=!1===i(e,t),h=!1,a&&e.preventDefault(),d&&(rh(e),e.stopPropagation()),n)break;c&&g(e,t,c)}}return{hasRunAnyShortcut:r,isExecutionCancelled:n}},g=(e,t,i=l())=>{let o=(mM(i)?i:a(i))??null,r=null;for(;null!==o;){let{hasRunAnyShortcut:i,isExecutionCancelled:n}=c(e,t,o);if(i)return n;let s=o.getFallbackContext();if(null===s||((r??=new Set).add(o),r.has(s)))break;o=s}return!1},p=function(e,t,i,o,r,n=null){let s=e=>{if(!1!==t(e)){if(!1===i(e)||229===e.keyCode||"string"!=typeof e.key||rd(e))return;let t=mS(e),n=[];mv.includes(t)||(n=mR(e));let s=r(e,[t].concat(n));!s&&(it()&&n.includes("meta")||!it()&&n.includes("control"))&&(s=r(e,[t].concat(mR(e,!0)))),o(e);return}if(!1===o3(n)||229===e.keyCode||"string"!=typeof e.key||rd(e))return;let s=mS(e),l=[];mv.includes(s)||(l=mR(e));let a=n(e,[s].concat(l));!a&&(it()&&l.includes("meta")||!it()&&l.includes("control"))&&(a=n(e,[s].concat(mR(e,!0)))),o(e)},l=()=>{mI.releaseAll()};return{mount:()=>{let t=e;for(;t;){let{documentElement:e}=t.document,i=mT.get(e)??0;0===i&&(e.addEventListener("keydown",mH),e.addEventListener("keyup",mO)),mT.set(e,i+1),e.addEventListener("keydown",s),e.addEventListener("blur",l),t=iO(t)}},unmount:()=>{let t=e;for(;t;){let{documentElement:e}=t.document,i=mT.get(e)??0;i<=1?(e.removeEventListener("keydown",mH),e.removeEventListener("keyup",mO),mT.delete(e)):mT.set(e,i-1),e.removeEventListener("keydown",s),e.removeEventListener("blur",l),t=iO(t)}},isPressed:e=>mI.isPressed(e),releasePressedKeys:()=>mI.releaseAll()}}(e,e=>{let i=a(l());return t(e,i?.scope??"table")},i,o,g,(e,t)=>{let i=r.getItems();for(let o=0;o<i.length;o+=1){let[,r]=i[o];if("global"===r.scope&&c(e,t,r).isExecutionCancelled)return!0}return!1});return p.mount(),{addContext:s,getActiveContextName:l,getContext:a,getOrCreateContext:(e,t="table")=>a(e)??s(e,t),setActiveContextName:e=>{r.hasItem(e)||tf(eb`You've tried to activate the "${e}" shortcut context\x20
99
99
  that does not exist. Before activation, register the context using the "addContext" method.`),n=e},hasEventShortcut:(e,t)=>{let i=a(e);return!!i&&mx(t,it).some(e=>i.hasShortcut(e))},isCtrlPressed:()=>!h&&(p.isPressed("control")||p.isPressed("meta")),releasePressedKeys:()=>p.releasePressedKeys(),destroy:()=>{d||(d=!0,p.unmount())}}})({handleEvent:(e,t)=>"global"===t||T.isListening(),beforeKeyDown:e=>T.runHooks("beforeKeyDown",e),afterKeyDown:e=>{this.isDestroyed||T.runHooks("afterDocumentKeyDown",e)},ownerWindow:this.rootWindow}),tK=new wY(T,e=>x.modifyRowData(e)),tY=new p2(T),tX=new p4(T);this.addHook("beforeOnCellMouseDown",e=>{!1===e.ctrlKey&&!1===e.metaKey&&tq.releasePressedKeys()}),this.getShortcutManager=function(){return tq},k=new p7(T);let tZ=sy(this)?function(e){let t=nK({errorIdExists:e=>`The "${e}" focus scope is already registered.`}),i=e.getShortcutManager(),o=null;function r(e,t=me.UNKNOWN){let s=t===me.TAB_FROM_ABOVE||t===me.TAB_FROM_BELOW,l=o===e;if(l&&!s)return;null!==o&&o!==e&&n(o),o=e;let a=i.getActiveContextName();l||(a!==e.getShortcutsContextName()?e.setDisplacedShortcutsContextName(a):null===e.getDisplacedShortcutsContextName()&&e.setDisplacedShortcutsContextName("grid"),i.setActiveContextName(e.getShortcutsContextName())),o.activate(t)}function n(e,t=!0){l(),o===e&&(o=null,t&&s(e),e.deactivate())}function s(e){let t=e.getDisplacedShortcutsContextName();e.setDisplacedShortcutsContextName(null),null===t||null!==o||i.getActiveContextName()===e.getShortcutsContextName()&&i.setActiveContextName(t)}function l(){let i=t.getValues(),r=i.filter(e=>e.runOnlyIf()&&"modal"===e.getType());i.forEach(t=>{r.length>0&&r.includes(t)||0===r.length||t.hasContainerDetached()?t.enable():t.disable(),t===o?a(t,oZ(e.rootDocument))?t.deactivateFocusCatchers():t.activateFocusCatchers():t.runOnlyIf()?t.activateFocusCatchers():t.deactivateFocusCatchers()})}function a(e,t){return!!oG(t)&&(e.contains(t)||oX(t).some(t=>e.contains(t)))}function h(i,s){if(!i.isConnected||!i7(i))return;let l=t.getValues().filter(e=>e.runOnlyIf()),h=!1;l.forEach(t=>{!h&&a(t,i)&&(h=!0,s!==me.UNKNOWN&&e.listen(),r(t,s))}),!h&&o&&(n(o,!1),e.unlisten())}let d=function(e,t={}){let i=!1;function o(e){i||t.onFocus?.(e)}function r(e){t.onClick?.(e)}function n(e){"Tab"===e.key&&t.onTabKeyDown?.(e)}function s(){i=!0}function l(){i=!1}return{mount:()=>{let t=e;for(;t;){let{documentElement:e}=t.document;e.addEventListener("focusin",o),e.addEventListener("click",r),e.addEventListener("keydown",n),e.addEventListener("mousedown",s),e.addEventListener("mouseup",l),t=iO(t)}},unmount:()=>{let t=e;for(;t;){let{documentElement:e}=t.document;e.removeEventListener("focusin",o),e.removeEventListener("click",r),e.removeEventListener("keydown",n),e.removeEventListener("mousedown",s),e.removeEventListener("mouseup",l),t=iO(t)}}}}(e.rootWindow,{onFocus:e=>{let t=iA(e);h(t,t.dataset.htFocusSource??me.UNKNOWN)},onClick:e=>{h(iA(e),me.CLICK)},onTabKeyDown:()=>{l()}});return d.mount(),{getActiveScopeId:function(){return o?t.getId(o):null},isGridBodyCovered:function(){return t.getValues().some(e=>e.getCoversGridBody()&&e.runOnlyIf())},registerScope:function(o,r,n={}){t.hasItem(o)&&tf(`Scope with id "${o}" already registered`);let s=function(e,t,i={}){let o,r,n={shortcutsContextName:"grid",type:p9.INLINE,contains:e=>e===t||t.contains(e),runOnlyIf:()=>!0,enableFocusCatchers:!0,...i},s=null,l=!1===n.enableFocusCatchers?null:(o=mt(e,me.TAB_FROM_ABOVE),r=mt(e,me.TAB_FROM_BELOW),t.prepend(o),t.append(r),{activate(){o.tabIndex=0,r.tabIndex=0},deactivate(){o.tabIndex=-1,r.tabIndex=-1},destroy(){o.remove(),r.remove()}});return{getType:()=>n.type,hasContainerDetached:()=>!e.rootWrapperElement.contains(t),getShortcutsContextName:()=>n.shortcutsContextName,getFallbackShortcutsContextName:()=>n.fallbackShortcutsContextName??null,getCoversGridBody:()=>!0===n.coversGridBody,getDisplacedShortcutsContextName:()=>s,setDisplacedShortcutsContextName:e=>{s=e},runOnlyIf:()=>n.runOnlyIf(),contains:e=>n.contains(e),activate:(e=me.UNKNOWN)=>{n.onActivate?.(e)},deactivate:()=>{n.onDeactivate?.()},activateFocusCatchers:()=>{l?.activate()},deactivateFocusCatchers:()=>{l?.deactivate()},enable:()=>{t.removeAttribute("inert")},disable:()=>{t.setAttribute("inert","true")},destroy:()=>{l?.destroy()}}}(e,r,n);t.addItem(o,s);let l=s.getShortcutsContextName(),a=i.getOrCreateContext(l),h=s.getFallbackShortcutsContextName();h===l&&(t.removeItem(o),s.destroy(),tf(`The "${o}" focus scope falls back to its own shortcuts context ("${l}"). \`shortcutsContextName\` defaults to "grid", so a scope that declares only \`fallbackShortcutsContextName\` names the same context twice.`)),t.getValues().find(e=>e!==s&&e.getShortcutsContextName()===l&&e.getFallbackShortcutsContextName()!==h)&&(t.removeItem(o),s.destroy(),tf(`The "${o}" focus scope shares the "${l}" shortcuts context with a scope that declares a different \`fallbackShortcutsContextName\`. The fallback is a property of the context, not of the scope, so scopes sharing a context must agree on it.`)),null!==h&&a.setFallbackContext(i.getOrCreateContext(h))},unregisterScope:function(e){t.hasItem(e)||tf(`Scope with id "${e}" not found`);let o=t.getItem(e);n(o,!1),s(o),null===o.getFallbackShortcutsContextName()||t.getValues().some(e=>e!==o&&e.getShortcutsContextName()===o.getShortcutsContextName()&&e.getFallbackShortcutsContextName()===o.getFallbackShortcutsContextName())||i.getContext(o.getShortcutsContextName())?.setFallbackContext(null),o.destroy(),t.removeItem(e)},activateScope:(e,i)=>(function(e,i=me.UNKNOWN){t.hasItem(e)||tf(`Scope with id "${e}" not found`);let o=i??me.UNKNOWN;r(t.getItem(e),o)})(e,i),deactivateScope:e=>{let i;return t.hasItem(e)||tf(`Scope with id "${e}" not found`),void(n(i=t.getItem(e),!1),s(i))},destroy:()=>d.unmount()}}(T):null,tQ=sy(this)?new m7({top:T.rootSlotTopElement,bottom:T.rootSlotBottomElement}):null;this.getFocusManager=function(){return k},this.getFocusScopeManager=function(){return sy(T)||tf("The FocusScopeManager is only available for the main Handsontable instance."),tZ},this.getLayoutManager=function(){return sy(T)||tf("The LayoutManager is only available for the main Handsontable instance."),tQ};let tJ=eM.theme,t0=eM.themeName,t1=mK(T.rootContainer);sy(T)&&!t1&&(tM(tJ)||!tJ&&!t0)&&e2(tJ,e0(eM)),T.addHook("beforeInit",()=>{var e;let t,i;e=T,t=eD.getItems().map(([,e])=>e).filter(e=>e.hot),i=[],t.forEach(e=>{let t,o,r;e.init();let n=(o=Array.isArray(t=e.constructor.PLUGIN_DEPS)?t:[],r=[],(o.forEach(e=>{let[t,i]=e.split(":");sM.has(t)||tf(`Unknown plugin dependency type "${t}" was found.`),sM.get(t)(i)||r.push(` - ${i} (${t})`)}),0===r.length)?null:`The ${e.pluginName} plugin requires the following modules:
100
100
  ${r.join("\n")}
101
101
  `);null!==n&&i.push(n)}),i.length>0&&tf(`${i.join("\n")}
102
- You have to import and register them manually.`),e.addHookOnce("afterPluginsInitialized",()=>{t.forEach(e=>e.onInitEnableTurn())}),e.runHooks("afterPluginsInitialized")}),n1().forEach(e=>{let t=n2(e);t&&eD.addItem(e,new t(this))}),s=T,[mq,mj].forEach(e=>e(s)),sy(this)&&(l=T,[mw].forEach(e=>e(l))),tq.setActiveContextName("grid"),rI.getSingleton().run(T,"construct")};sm(bw),st(bs);let bC=function(e,t){let i=new bb(e,t||{},sC);return i.init(),i};function by(e){let t=e.rootDocument.documentElement.clientWidth;return e.isRtl()?{inlineStartOffset:t-e.rootElement.getBoundingClientRect().right,viewportWidth:t}:{inlineStartOffset:e.rootElement.getBoundingClientRect().left,viewportWidth:t}}function bS(e,t){let i=Math.max(e.top,0);return{top:i,bottom:Math.max(Math.min(e.top+e.height,t),i)}}function bv(e,t,i){let o=bS(t,i);return{spaceAbove:Math.max(e.top-o.top,0),spaceBelow:Math.max(o.bottom-e.bottom,0)}}bC.editors={BaseEditor:r0,TextEditor:bp},bC.dom={empty:iX},bC.helper={},bC.Core=function(e,t={}){return new bb(e,t,sC)},bC.DefaultSettings=pg(),bC.hooks=rI.getSingleton(),bC.CellCoords=l4,bC.CellRange=l5,bC.packageName="handsontable",bC.buildDate="17/11/2026 11:12:30",bC.version="19.0.0-rc2",bC.languages={dictionaryKeys:y,getLanguageDictionary:gL,getLanguagesDictionaries:function(){return gF()},registerLanguageDictionary:gN,getTranslatedPhrase:gB},bC.themes={hasTheme:ww,getTheme:wb,getThemeNames:wC,getThemes:wy,registerTheme:wv,reinitTheme:wR};let bR="handsontableEditor";class bx extends bp{static get EDITOR_TYPE(){return"handsontable"}isFlippedVertically=!1;isFlippedHorizontally=!1;innerSelectionOrigin=null;#dd=!1;#du=0;appliedDropdownHeight=0;resolveInnerSelectionValue(){if(this.htEditor&&this.htEditor.getSelectedActive())return this.htEditor.getValue()}open(){super.open();let e=this.htContainer.style;this.htEditor&&(this.htEditor.rootPortalElement=null,this.htEditor.destroy(),e.width="",e.height="",e.overflow=""),"none"===e.display&&(e.display=""),this.htEditor=new this.hot.constructor(this.htContainer,this.htOptions),this.htEditor.rootPortalElement=this.hot.rootPortalElement,this.htEditor.init(),this.htEditor.rootElement.style.display="",this.cellProperties.strict?(this.htEditor.selectCell(0,0),this.innerSelectionOrigin="auto"):(this.htEditor.deselectCell(),this.innerSelectionOrigin=null),oT(this.TEXTAREA,0,this.TEXTAREA.value.length),this.#du=this.getTargetDropdownHeight(),this.appliedDropdownHeight=this.#du,this.htEditor.updateSettings({width:this.getTargetDropdownWidth(),height:this.#du}),this.refreshDimensions(),this.#dc()}close(){this.htEditor&&(this.htEditor.rootElement.style.display="none"),this.removeHooksByKey("beforeKeyDown"),super.close()}hideForScroll(){return this._opened=!1,this.hideEditableElement(),this.htEditor&&(this.htEditor.rootElement.style.display="none"),!0}showAfterScroll(){this.htEditor&&(this.htEditor.rootElement.style.display="",this.reflowDropdown())}reflowDropdown(){this.flipDropdownVerticallyIfNeeded(),this.flipDropdownHorizontallyIfNeeded()}prepare(e,t,i,o,r,n){super.prepare(e,t,i,o,r,n);let{hot:s}=this,l=this.setValue.bind(this),a=()=>{this.innerSelectionOrigin="user"},h={startRows:0,startCols:0,minRows:0,minCols:0,className:"listbox",copyPaste:!1,autoColumnSize:!1,autoRowSize:!1,readOnly:!0,fillHandle:!1,autoWrapCol:!1,autoWrapRow:!1,ariaTags:!1,themeName:this.hot.getCurrentThemeName(),afterOnCellMouseDown(e,t){if(t.row<0||t.col<0)return;let i=this.getDataAtCell(t.row,t.col);a(),void 0!==i&&l(i),s.destroyEditor()},preventWheel:!0,layoutDirection:this.hot.isRtl()?"rtl":"ltr"};this.cellProperties.handsontable&&tC(h,n.handsontable),this.htOptions=h}beginEditing(e,t){let i=this.hot.getSettings().onBeginEditing;i&&!1===i()||super.beginEditing(e,t)}createElements(){super.createElements();let e=this.hot.rootDocument.createElement("DIV");e.className="handsontableEditor",this.TEXTAREA_PARENT.appendChild(e),this.htContainer=e,this.assignHooks()}finishEditing(e,t,i){this.htEditor&&this.htEditor.isListening()&&this.hot.listen();let o=this.resolveInnerSelectionValue();void 0!==o&&this.setValue(o),super.finishEditing(e,t,i)}#dg(){return this.getEditedCell()?.getBoundingClientRect()}#dp(){!this.hot.isDestroyed&&this.htEditor&&"none"!==this.htEditor.rootElement.style.display&&this.getEditedCell()&&(this.flipDropdownVerticallyIfNeeded(),this.flipDropdownHorizontallyIfNeeded())}refreshDimensions(e=!1){super.refreshDimensions(e),this.#dp()}flipDropdownVerticallyIfNeeded(){let e=this.#dg();if(!e)return{isFlipped:!1,spaceAbove:0,spaceBelow:0};let{spaceAbove:t,spaceBelow:i}=bv(e,this.#dm(),this.hot.rootDocument.documentElement.clientHeight),o=this.getDropdownHeight()>i&&t>i+e.height;return o?this.flipDropdownVertically():this.unflipDropdownVertically(),this.limitDropdownIfNeeded(o?t:i),{isFlipped:o,spaceAbove:t,spaceBelow:i}}limitDropdownIfNeeded(e){let t=this.htEditor.stylesHandler.getDefaultRowHeight()??0,i=Math.max(Math.min(this.#du,e),t||1);i!==this.appliedDropdownHeight&&(this.appliedDropdownHeight=i,this.htEditor.updateSettings({height:i}),this.replaceDropdownVertically())}replaceDropdownVertically(){this.isFlippedVertically?this.flipDropdownVertically():this.unflipDropdownVertically()}flipDropdownVertically(){this.#df(this.#dw().top-this.getDropdownHeight()),this.isFlippedVertically=!0}unflipDropdownVertically(){this.#df(this.#dw().bottom),this.isFlippedVertically=!1}flipDropdownHorizontallyIfNeeded(){let{view:e}=this.hot,t=this.getEditedCellRect();if(!t)return{isFlipped:!1,spaceInlineStart:0,spaceInlineEnd:0};let i=t.start+t.width,o=e.getWorkspaceWidth();if(e.isHorizontallyScrollableByWindow()){let e=by(this.hot);i=Math.max(i+e.inlineStartOffset,0),o=e.viewportWidth}let r=this.getDropdownWidth(),n=o-i+t.width,s=r>n&&i>n;return s?this.flipDropdownHorizontally():this.unflipDropdownHorizontally(),{isFlipped:s,spaceInlineStart:i,spaceInlineEnd:n}}flipDropdownHorizontally(){let{width:e}=this.getEditedCellRect()??{width:0};this.#db(-(this.getDropdownWidth()-e)),this.isFlippedHorizontally=!0}unflipDropdownHorizontally(){this.#db(0),this.isFlippedHorizontally=!1}#db(e){let t=this.htEditor.rootElement.style,i=this.#dw(),o=this.#dm();if(t.position="fixed",this.hot.isRtl()){t.left="",t.right=`${o.left+o.width-i.right+e}px`;return}t.right="",t.left=`${i.left+e-o.left}px`}#df(e){let t=this.htEditor.rootElement.style,i=this.#dm(),o=bS(i,this.hot.rootDocument.documentElement.clientHeight),r=this.getDropdownHeight(),n=Math.max(o.bottom-r,o.top),s=Math.min(Math.max(e,o.top),n);t.position="fixed",t.top=`${s-i.top}px`}#dm(){return om(this.htEditor.rootElement)}#dc(){this.#dd||(this.eventManager.addEventListener(this.hot.rootDocument,"scroll",e=>{this.hot.isDestroyed||!this.hot.rootElement||oG(e.target)&&this.hot.rootElement.contains(e.target)||this.#dp()},{capture:!0,passive:!0}),this.#dd=!0,this.eventManager.addEventListener(this.hot.rootWindow,"resize",()=>this.#dp(),{passive:!0}))}#dw(){return this.TEXTAREA_PARENT.getBoundingClientRect()}getDropdownHeight(){return this.htEditor.getTableHeight()}getDropdownWidth(){return this.htEditor.getTableWidth()}getTargetDropdownWidth(){return this.htEditor.view.getTableWidth()}getTargetDropdownHeight(){return this.htEditor.view.getTableHeight()+1}assignHooks(){this.hot.addHook("afterDestroy",()=>{this.htEditor&&(this.htEditor.rootPortalElement=null,this.htEditor.destroy())}),this.hot.addHook("afterSetTheme",(e,t)=>{t||this.close()})}registerShortcuts(){let e=this.hot.getShortcutManager().getContext("editor");super.registerShortcuts();let t=(e,t)=>{let i=this.htEditor;if(void 0!==e&&(e<0||this.isFlippedVertically&&e>i.countRows()-1?(i.deselectCell(),this.innerSelectionOrigin=null):(i.selectCell(e,0),this.innerSelectionOrigin="user"),i.getData().length))return t.preventDefault(),rh(t),this.hot.listen(),this.TEXTAREA.focus(),!1};e.addShortcuts([{keys:[["ArrowUp"]],callback:e=>{let i,o=this.htEditor;if(!o.getSelectedActive()&&this.isFlippedVertically)i=o.countRows()-1;else if(o.getSelectedActive()){let e=o.getSelectedActive();i=this.isFlippedVertically?Math.max(0,e[0]-1):e[0]-1}return t(i,e)},preventDefault:!1},{keys:[["ArrowDown"]],callback:e=>{let i,o=this.htEditor;if(o.getSelectedActive()||this.isFlippedVertically){if(o.getSelectedActive()){let e=o.getSelectedActive();this.isFlippedVertically?i=e[0]+1:this.isFlippedVertically||(i=Math.min(o.countRows()-1,e[0]+1))}}else i=0;return t(i,e)},preventDefault:!1}],{group:bR,relativeToGroup:ml,position:"before"})}unregisterShortcuts(){super.unregisterShortcuts(),this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(bR)}}function bE(e){return tL(e)}function bM(e,t){return tM(e)&&t?"function"==typeof t?t(e):"string"!=typeof t?e:t.split(".").reduce((e,t)=>tM(e)||Array.isArray(e)?e[t]:void 0,e):e}function bk(e,t,i){return!(t&&bE(e)&&tM(e.value))||""!==e$(i)}function bI(e,t,i=!1,o){if(!Array.isArray(e))return;let r=e$(t);return e.find(e=>{let t;return t=e$(bE(e)?bM(e.value,o):e),(i?t:nr(t))===r})}class bT extends bx{static get EDITOR_TYPE(){return"autocomplete"}query=null;strippedChoices=[];rawChoices=[];#dC=this.hot.guid.slice(0,9);#dy=0;#dS=0;#dv=new Set;#dR=null;getValue(){if(""===this.TEXTAREA.value)return this.TEXTAREA.value;let e=bI(this.rawChoices,this.TEXTAREA.value,!0===this.cellProperties.allowHtml,this.cellProperties.sourceLabel);return eU(e)?e:this.TEXTAREA.value}createElements(){super.createElements(),this.eventManager.addEventListener(this.TEXTAREA,"input",()=>{this.innerSelectionOrigin=null}),iG(this.htContainer,"autocompleteEditor"),iG(this.htContainer,-1===this.hot.rootWindow.navigator.platform.indexOf("Mac")?"":"htMacScroll"),this.hot.getSettings().ariaTags&&iq(this.TEXTAREA,[["type","text"],["role","combobox"],V("listbox"),["aria-autocomplete","list"]])}prepare(e,t,i,o,r,n){super.prepare(e,t,i,o,r,n),this.hot.getSettings().ariaTags&&iq(this.TEXTAREA,[G("false"),["aria-controls",`${this.#dC}-listbox-${e}-${t}`]]),this.htOptions={...this.htOptions,valueGetter:e=>bE(e)?e.value:e}}beginEditing(e,t){if(this.state!==rJ.VIRGIN)return void super.beginEditing(e,t);let i="string"!=typeof e&&this.isInFullEditMode();this.#dR=null,super.beginEditing(e,t),i&&this.isOpened()&&(this.#dR=this.TEXTAREA.value)}open(){this.strippedChoices=[],this.rawChoices=[],super.open();let e=this.cellProperties.trimDropdown,t=void 0===e||e,i=this.hot.getSettings().ariaTags,o=Array.isArray(this.cellProperties.source)?this.cellProperties.source:null,r=o?.length,{row:n,col:s}=this;if(this.showEditableElement(),this.focus(),this.addHook("beforeKeyDown",e=>this.onBeforeKeyDown(e)),this.htEditor.addHook("afterScroll",this.#dx),this.htEditor.updateSettings({colWidths:t?[oC(this.TEXTAREA)-2]:void 0,autoColumnSize:!0,modifyColWidth:t?void 0:e=>Math.max(e??0,oC(this.TEXTAREA)-2),renderer:(e,t,n,s,l,a,h)=>{bf(e,t,n,s,l,a,h);let{filteringCaseSensitive:d,allowHtml:u}=this.cellProperties,c=this.cellProperties.locale,g=this.query,p=e$(a);if(u)i1(t,p,!1,"html",this.hot.rootElement);else if(p&&g&&g.length>0){let i=!0===d?p.indexOf(g):nu(p,c).indexOf(nu(g,c));if(-1!==i){let o=p.slice(i,i+g.length),{rootDocument:r}=e;iX(t),t.appendChild(r.createTextNode(p.slice(0,i)));let n=r.createElement("strong");n.textContent=o,t.appendChild(n),t.appendChild(r.createTextNode(p.slice(i+g.length)))}}i&&iq(t,[["role","option"],...o?[X(r??0)]:[],...o?[Z(o.indexOf(a)+1)]:[],["id",`${this.htEditor.rootElement.id}_${n}-${s}`]])},afterSelectionEnd:(e,t)=>{if(i){let i=e=>{iq(e,[Y()]),iq(this.TEXTAREA,"aria-activedescendant",e.id)},o=this.htEditor.getCell(e,t,!0);null!==o?i(o):this.htEditor.addHookOnce("afterScrollVertically",()=>{let o=this.htEditor.getCell(e,t,!0);null!==o&&i(o)})}}}),i){let e=R();iq(this.htEditor.view._wt.wtOverlays.wtTable.TABLE,e[0],e[1]),iq(this.htEditor.rootElement,[A(),["aria-live","polite"],["aria-relevant","text"],["id",`${this.#dC}-listbox-${n}-${s}`]]),iq(this.TEXTAREA,...G("true"))}this.#dE()}#dM(){return this.stripValueIfNeeded(this.getValue())}#dk(e,t){let i=this.cellProperties.sortByRelevance,o=this.cellProperties.filter,r=bE(t)?t.value:t,n=null,s=e;i||(s=[...s].sort(this.#dI()));let l=String(r),{matchedIndexes:a,equalPosition:h}=this.#dT(s,l),d=h??this.#dA();return!1===o?l.length>0&&null!==d&&(n=a[d]??null):(s=a.map(e=>s[e]),n=d),{choices:s,highlightIndex:n}}#dT(e,t){let{filter:i,filteringCaseSensitive:o,strict:r}=this.cellProperties,n=this.cellProperties.locale,s=!1!==i,l=s||!0===r&&""!==t,a=e=>o?e:nu(e,n),h=a(t),d=[],u=null,c=null;for(let i=0;i<e.length;i++){let o=e[i],r=nr(e$(bE(o)?o.value:o)),n=a(r);if(-1===n.indexOf(h))continue;let g=n===h;if((s||g||0===d.length)&&d.push(i),g&&null===u&&(u=d.length-1),null===c&&r===t&&(c=d.length-1),!s&&(!l||null!==c))break}return{matchedIndexes:d,equalPosition:c??u}}#dA(){return this.#dH()?null:0}#dH(){let e=this.#dR;return null!==e&&""!==e&&this.TEXTAREA.value===e}isEditUnchanged(e,t){return super.isEditUnchanged(e,t)||"user"!==this.innerSelectionOrigin&&this.#dH()}resetValueBeforeEdit(){super.resetValueBeforeEdit(),null!==this.#dR&&(this.#dR=this.TEXTAREA.value)}#dI(){if(!this.#dO())return(e,t)=>e$(e).localeCompare(e$(t));let e=e=>e$(bE(e)?e.value:e);return(t,i)=>e(t).localeCompare(e(i))}#dE(e=0){let t=this.hot._registerTimeout(()=>{this.#dv.delete(t),this.queryChoices(this.TEXTAREA.value)},e);this.#dv.add(t)}resolveInnerSelectionValue(){if("user"===this.innerSelectionOrigin)return super.resolveInnerSelectionValue();if(!0!==this.cellProperties.strict||this.#dH())return;let{choices:e,highlightIndex:t}=this.#dk(this.strippedChoices,this.#dM());if(null===t||t>=e.length)return;let i=e[t];return bE(i)?i.value:i}close(){this.#dD(),this.#dR=null,this.removeHooksByKey("beforeKeyDown"),super.close(),this.hot.getSettings().ariaTags&&iq(this.TEXTAREA,[G("false")])}#dD(){this.#dx.cancel(),this.#dv.forEach(e=>clearTimeout(e)),this.#dv.clear(),this.#dS+=1}hideForScroll(){return this.#dD(),this.hot.getSettings().ariaTags&&iq(this.TEXTAREA,[G("false")]),super.hideForScroll()}showAfterScroll(){this.htEditor&&this.strippedChoices.length>0&&(super.showAfterScroll(),this.hot.getSettings().ariaTags&&iq(this.TEXTAREA,[G("true")]))}reflowDropdown(){this.updateDropdownDimensions(),super.reflowDropdown()}discardEditor(e){super.discardEditor(e),this.hot.view.render()}queryChoices(e){if(this.state!==rJ.EDITING&&this.state!==rJ.WAITING||!this._opened)return;let t=this.cellProperties.source,i=this.#dy+1,o=this.#dS;this.#dy=i,this.query=e,"function"==typeof t?t.call(this.cellProperties,e,e=>{this.hot.isDestroyed||o!==this.#dS||i!==this.#dy||(this.rawChoices=e,this.updateChoicesList(this.stripValuesIfNeeded(this.#dP(e))))}):Array.isArray(t)?(this.rawChoices=t,this.updateChoicesList(this.stripValuesIfNeeded(this.#dP(t)))):this.updateChoicesList([])}updateChoicesList(e){let t=oE(this.TEXTAREA),i=oM(this.TEXTAREA),{choices:o,highlightIndex:r}=this.#dk(e,this.#dM());if(this.strippedChoices=o,0===o.length?this.htEditor.rootElement.style.display="none":this.htEditor.rootElement.style.display="",this.htEditor.loadData(et([o])),o.length>0){if(this.updateDropdownDimensions(),this.flipDropdownVerticallyIfNeeded(),this.flipDropdownHorizontallyIfNeeded(),!0===this.cellProperties.strict){let e=r??void 0;this.highlightBestMatchingChoice(e),this.innerSelectionOrigin=void 0===e?null:"auto"}}else this.innerSelectionOrigin=null,iK(this.TEXTAREA,"aria-activedescendant");this.hot.listen(),oT(this.TEXTAREA,t,t===i?void 0:i)}limitDropdownIfNeeded(e){let t=this.getTargetEditorHeight();if(t>e){let t=this.htEditor.stylesHandler.getDefaultRowHeight()??0;if(0===t)return;let i=Math.max(Math.ceil(e/t)-1,1);this.setDropdownHeight(i*t),this.replaceDropdownVertically()}else this.getDropdownHeight()<t&&(this.updateDropdownDimensions(),this.replaceDropdownVertically())}updateDropdownDimensions(){let e=oA(),t=this.getTargetEditorWidth()+e,i=this.getTargetEditorHeight()+e;this.appliedDropdownHeight=i,this.htEditor.updateSettings({width:t,height:i}),this.#d_(),this.htEditor.view._wt.wtTable.alignOverlaysWithTrimmingContainer()}setDropdownHeight(e){e!==this.appliedDropdownHeight&&(this.appliedDropdownHeight=e,this.htEditor.updateSettings({height:e}),this.#d_(),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(),iK(this.TEXTAREA,"aria-activedescendant"))}getTargetEditorHeight(){let e=0;if(!this.hot.getCurrentThemeName()){let t=this.htContainer.querySelector(".htCore");if(t){let i=this.hot.rootWindow.getComputedStyle(t);e=parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)}}return Array.from({length:Math.min(this.cellProperties.visibleRows,this.strippedChoices.length)},(e,t)=>t).reduce((e,t)=>e+((this.hot.stylesHandler.getDefaultRowHeight()??0)+ +(0===t)),0)+e}getTargetEditorWidth(){let e=0;if(!this.hot.getCurrentThemeName()){let t=this.htContainer.querySelector(".htCore");if(t){let i=this.hot.rootWindow.getComputedStyle(t);e=parseInt(i.borderInlineStartWidth,10)+parseInt(i.borderInlineEndWidth,10)}}return this.htEditor.getColWidth(0)+e}stripValueIfNeeded(e){return this.stripValuesIfNeeded([e])[0]}stripValuesIfNeeded(e){let{allowHtml:t,sourceLabel:i}=this.cellProperties,o=e=>e$(t?e:nr(String(e)));return e.every(e=>bE(e))?e.map(e=>{let t=bM(e.value,i);return{key:o(e.key),value:o(t===e.value?t:e$(t))}}):e.map(e=>{if(bE(e)){let t=bM(e.value,i);if(i||t!==e.value)return o(e$(t))}return o(e)})}#dO(){return!!this.cellProperties.sourceLabel&&this.rawChoices.some(e=>bE(e)&&tM(e.value))}#dP(e){let{sourceLabel:t}=this.cellProperties;return t?e.filter(e=>!(t&&bE(e)&&tM(e.value))||bk(e,t,bM(e.value,t))):e}#dx=o5(()=>{this.focus()},100);#d_(){this.htEditor.view.hasVerticalScroll()&&this.htEditor.updateSettings({width:this.getTargetEditorWidth()+oH(this.hot.rootDocument)})}onBeforeKeyDown(e){if(rr(e.keyCode)||e.keyCode===ri.BACKSPACE||e.keyCode===ri.DELETE||e.keyCode===ri.INSERT){let t=10;e.keyCode===ri.C&&(e.ctrlKey||e.metaKey)||(this.isOpened()||(t+=10),this.#dE(t))}}}class bA extends r0{static get EDITOR_TYPE(){return"checkbox"}beginEditing(e,t){if(t&&"mouseup"===t.type&&"TD"===iT(t).nodeName){let e=this.TD.querySelector('input[type="checkbox"]');iU(e,"htBadValue")||e.click()}}finishEditing(){}init(){}open(){}close(){}getValue(){}setValue(){}focus(){}}let bH=/^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/;function bO(e){let t=new Date(e);return Number.isNaN(new Date(`${e}T00:00`).getDate())?t:new Date(t.getTime()+6e4*t.getTimezoneOffset())}function bD(e){if(ej(e))return null;if("string"==typeof e&&bH.test(e)){let[t,i,o]=e.split("-").map(Number),r=new Date(t,i-1,o);return t<100&&(r.setFullYear(t,i-1,o),r.setHours(0,0,0,0)),r}return null}let bP=[31,28,31,30,31,30,31,31,30,31,30,31];function b_(e){return e%4==0&&e%100!=0||e%400==0}function bF(e){if("string"!=typeof e||!bH.test(e))return!1;let t=+e.slice(0,4),i=+e.slice(5,7);return+e.slice(8,10)<=(2===i&&b_(t)?29:bP[i-1])}let bN=/^([01]\d|2[0-3]):([0-5]\d)(?::([0-5]\d)(?:\.(\d{1,3}))?)?$/;function bL(e){if(ej(e)||"string"!=typeof e)return null;let t=bN.exec(e);if(!t)return null;let i=Number(t[1]),o=Number(t[2]),r=void 0!==t[3]?Number(t[3]):0,n=t[4];return new Date(1970,0,1,i,o,r,void 0!==n?Number(n.padEnd(3,"0").slice(0,3)):0)}function bB(e){return"string"==typeof e&&bN.test(e)}let bV=/^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])(?:[T ]([01]\d|2[0-3]):([0-5]\d)(?::([0-5]\d)(?:\.(\d{1,3}))?)?)?$/;function bz(e){if(ej(e)||"string"!=typeof e)return null;let t=bV.exec(e);if(!t)return null;let[i]=e.split(/[T ]/),[o,r,n]=i.split("-").map(Number),s=void 0!==t[3]?Number(t[3]):0,l=void 0!==t[4]?Number(t[4]):0,a=void 0!==t[5]?Number(t[5]):0,h=void 0!==t[6]?Number(t[6].padEnd(3,"0").slice(0,3)):0,d=new Date(o,r-1,n,s,l,a,h);return o<100&&(d.setFullYear(o,r-1,n),d.setHours(s,l,a,h)),d}function bW(e){if("string"!=typeof e)return!1;let t=bV.exec(e);if(!t)return!1;let i=+e.slice(0,4),o=+t[1];return+t[2]<=(2===o&&b_(i)?29:bP[o-1])}function b$(){let e=new Date;return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function bU(e){let t=b$();return t.setDate(t.getDate()+e),t}function bG(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}let bj=new Map,bq=[new Date(2024,0,1),new Date(2024,6,1)];function bK(e,t){let i=void 0===e||"string"==typeof e?e:`\u0000${String(e)}`,o=bj.get(i);void 0===o&&(o=new Map,bj.set(i,o));let r=`${bq[0].getTimezoneOffset()},${bq[1].getTimezoneOffset()}`,n=`${r}:${JSON.stringify(t)}`,s=o.get(n);return void 0===s&&(s=new Intl.DateTimeFormat(e,t),o.set(n,s)),s}function bY(e,t,i){let o=bK(e,t);if(i.getFullYear()>=1||void 0!==t.era)return o.format(i);let{year:r,calendar:n}=o.resolvedOptions();return void 0===r||"gregory"!==n?o.format(i):bK(e,{...t,era:"short"}).format(i)}function bX(e,t){if(!t?.type.startsWith("key"))try{e.showPicker()}catch{}}function bZ(e,t){oZ(e.rootDocument)===t&&function(e){try{return e.matches(":open")}catch{return!0}}(t)&&(t.blur(),e.getFocusManager().focusOnHighlightedCell())}class bQ extends bp{#dF=!1;#dN=!1;static get EDITOR_TYPE(){return"date"}get capsLength(){return!1}init(){super.init(),this.hot.addHook("afterSetTheme",(e,t)=>{t||this.close()})}prepare(e,t,i,o,r,n){super.prepare(e,t,i,o,r,n),void 0!==n.datePickerConfig&&il(this.hot.rootElement,"datePickerConfig",'The "datePickerConfig" option is not supported. The native date input is used instead of Pikaday.');let s=this.hot.toPhysicalRow(e);this.originalValue=this.hot.getSourceDataAtCell(s,t)}createElements(e){super.createElements("input"),this.TEXTAREA.setAttribute("type","date"),this.eventManager.addEventListener(this.TEXTAREA,"input",()=>{this.#dF=!0})}beginEditing(e,t){this.state===rJ.VIRGIN&&(this.#dF=!1,this.#dN=!1),super.beginEditing(e,t)}finishEditing(e,t,i){let o=this.state===rJ.EDITING&&this.#dL(t);super.finishEditing(e||o,t,i)}#dL(e){let t=this.TEXTAREA;return""===t.value&&(!1!==this.cellProperties.allowEmpty||!1!==this.cellProperties.allowInvalid)&&(ej(this.originalValue)?!0===e&&t.validity.badInput:t.validity.badInput||!this.#dN&&!this.#dF)}setValue(e){if(ej(e)&&(e=this.cellProperties.defaultDate),!bF(e)){ir(eb`DateEditor: value must be in ISO date format ("YYYY-MM-DD")\x20
102
+ You have to import and register them manually.`),e.addHookOnce("afterPluginsInitialized",()=>{t.forEach(e=>e.onInitEnableTurn())}),e.runHooks("afterPluginsInitialized")}),n1().forEach(e=>{let t=n2(e);t&&eD.addItem(e,new t(this))}),s=T,[mq,mj].forEach(e=>e(s)),sy(this)&&(l=T,[mw].forEach(e=>e(l))),tq.setActiveContextName("grid"),rI.getSingleton().run(T,"construct")};sm(bw),st(bs);let bC=function(e,t){let i=new bb(e,t||{},sC);return i.init(),i};function by(e){let t=e.rootDocument.documentElement.clientWidth;return e.isRtl()?{inlineStartOffset:t-e.rootElement.getBoundingClientRect().right,viewportWidth:t}:{inlineStartOffset:e.rootElement.getBoundingClientRect().left,viewportWidth:t}}function bS(e,t){let i=Math.max(e.top,0);return{top:i,bottom:Math.max(Math.min(e.top+e.height,t),i)}}function bv(e,t,i){let o=bS(t,i);return{spaceAbove:Math.max(e.top-o.top,0),spaceBelow:Math.max(o.bottom-e.bottom,0)}}bC.editors={BaseEditor:r0,TextEditor:bp},bC.dom={empty:iX},bC.helper={},bC.Core=function(e,t={}){return new bb(e,t,sC)},bC.DefaultSettings=pg(),bC.hooks=rI.getSingleton(),bC.CellCoords=l4,bC.CellRange=l5,bC.packageName="handsontable",bC.buildDate="20/11/2026 12:42:43",bC.version="19.0.0-rc4",bC.languages={dictionaryKeys:y,getLanguageDictionary:gL,getLanguagesDictionaries:function(){return gF()},registerLanguageDictionary:gN,getTranslatedPhrase:gB},bC.themes={hasTheme:ww,getTheme:wb,getThemeNames:wC,getThemes:wy,registerTheme:wv,reinitTheme:wR};let bR="handsontableEditor";class bx extends bp{static get EDITOR_TYPE(){return"handsontable"}isFlippedVertically=!1;isFlippedHorizontally=!1;innerSelectionOrigin=null;#dd=!1;#du=0;appliedDropdownHeight=0;resolveInnerSelectionValue(){if(this.htEditor&&this.htEditor.getSelectedActive())return this.htEditor.getValue()}open(){super.open();let e=this.htContainer.style;this.htEditor&&(this.htEditor.rootPortalElement=null,this.htEditor.destroy(),e.width="",e.height="",e.overflow=""),"none"===e.display&&(e.display=""),this.htEditor=new this.hot.constructor(this.htContainer,this.htOptions),this.htEditor.rootPortalElement=this.hot.rootPortalElement,this.htEditor.init(),this.htEditor.rootElement.style.display="",this.cellProperties.strict?(this.htEditor.selectCell(0,0),this.innerSelectionOrigin="auto"):(this.htEditor.deselectCell(),this.innerSelectionOrigin=null),oT(this.TEXTAREA,0,this.TEXTAREA.value.length),this.#du=this.getTargetDropdownHeight(),this.appliedDropdownHeight=this.#du,this.htEditor.updateSettings({width:this.getTargetDropdownWidth(),height:this.#du}),this.refreshDimensions(),this.#dc()}close(){this.htEditor&&(this.htEditor.rootElement.style.display="none"),this.removeHooksByKey("beforeKeyDown"),super.close()}hideForScroll(){return this._opened=!1,this.hideEditableElement(),this.htEditor&&(this.htEditor.rootElement.style.display="none"),!0}showAfterScroll(){this.htEditor&&(this.htEditor.rootElement.style.display="",this.reflowDropdown())}reflowDropdown(){this.flipDropdownVerticallyIfNeeded(),this.flipDropdownHorizontallyIfNeeded()}prepare(e,t,i,o,r,n){super.prepare(e,t,i,o,r,n);let{hot:s}=this,l=this.setValue.bind(this),a=()=>{this.innerSelectionOrigin="user"},h={startRows:0,startCols:0,minRows:0,minCols:0,className:"listbox",copyPaste:!1,autoColumnSize:!1,autoRowSize:!1,readOnly:!0,fillHandle:!1,autoWrapCol:!1,autoWrapRow:!1,ariaTags:!1,themeName:this.hot.getCurrentThemeName(),afterOnCellMouseDown(e,t){if(t.row<0||t.col<0)return;let i=this.getDataAtCell(t.row,t.col);a(),void 0!==i&&l(i),s.destroyEditor()},preventWheel:!0,layoutDirection:this.hot.isRtl()?"rtl":"ltr"};this.cellProperties.handsontable&&tC(h,n.handsontable),this.htOptions=h}beginEditing(e,t){let i=this.hot.getSettings().onBeginEditing;i&&!1===i()||super.beginEditing(e,t)}createElements(){super.createElements();let e=this.hot.rootDocument.createElement("DIV");e.className="handsontableEditor",this.TEXTAREA_PARENT.appendChild(e),this.htContainer=e,this.assignHooks()}finishEditing(e,t,i){this.htEditor&&this.htEditor.isListening()&&this.hot.listen();let o=this.resolveInnerSelectionValue();void 0!==o&&this.setValue(o),super.finishEditing(e,t,i)}#dg(){return this.getEditedCell()?.getBoundingClientRect()}#dp(){!this.hot.isDestroyed&&this.htEditor&&"none"!==this.htEditor.rootElement.style.display&&this.getEditedCell()&&(this.flipDropdownVerticallyIfNeeded(),this.flipDropdownHorizontallyIfNeeded())}refreshDimensions(e=!1){super.refreshDimensions(e),this.#dp()}flipDropdownVerticallyIfNeeded(){let e=this.#dg();if(!e)return{isFlipped:!1,spaceAbove:0,spaceBelow:0};let{spaceAbove:t,spaceBelow:i}=bv(e,this.#dm(),this.hot.rootDocument.documentElement.clientHeight),o=this.getDropdownHeight()>i&&t>i+e.height;return o?this.flipDropdownVertically():this.unflipDropdownVertically(),this.limitDropdownIfNeeded(o?t:i),{isFlipped:o,spaceAbove:t,spaceBelow:i}}limitDropdownIfNeeded(e){let t=this.htEditor.stylesHandler.getDefaultRowHeight()??0,i=Math.max(Math.min(this.#du,e),t||1);i!==this.appliedDropdownHeight&&(this.appliedDropdownHeight=i,this.htEditor.updateSettings({height:i}),this.replaceDropdownVertically())}replaceDropdownVertically(){this.isFlippedVertically?this.flipDropdownVertically():this.unflipDropdownVertically()}flipDropdownVertically(){this.#df(this.#dw().top-this.getDropdownHeight()),this.isFlippedVertically=!0}unflipDropdownVertically(){this.#df(this.#dw().bottom),this.isFlippedVertically=!1}flipDropdownHorizontallyIfNeeded(){let{view:e}=this.hot,t=this.getEditedCellRect();if(!t)return{isFlipped:!1,spaceInlineStart:0,spaceInlineEnd:0};let i=t.start+t.width,o=e.getWorkspaceWidth();if(e.isHorizontallyScrollableByWindow()){let e=by(this.hot);i=Math.max(i+e.inlineStartOffset,0),o=e.viewportWidth}let r=this.getDropdownWidth(),n=o-i+t.width,s=r>n&&i>n;return s?this.flipDropdownHorizontally():this.unflipDropdownHorizontally(),{isFlipped:s,spaceInlineStart:i,spaceInlineEnd:n}}flipDropdownHorizontally(){let{width:e}=this.getEditedCellRect()??{width:0};this.#db(-(this.getDropdownWidth()-e)),this.isFlippedHorizontally=!0}unflipDropdownHorizontally(){this.#db(0),this.isFlippedHorizontally=!1}#db(e){let t=this.htEditor.rootElement.style,i=this.#dw(),o=this.#dm();if(t.position="fixed",this.hot.isRtl()){t.left="",t.right=`${o.left+o.width-i.right+e}px`;return}t.right="",t.left=`${i.left+e-o.left}px`}#df(e){let t=this.htEditor.rootElement.style,i=this.#dm(),o=bS(i,this.hot.rootDocument.documentElement.clientHeight),r=this.getDropdownHeight(),n=Math.max(o.bottom-r,o.top),s=Math.min(Math.max(e,o.top),n);t.position="fixed",t.top=`${s-i.top}px`}#dm(){return om(this.htEditor.rootElement)}#dc(){this.#dd||(this.eventManager.addEventListener(this.hot.rootDocument,"scroll",e=>{this.hot.isDestroyed||!this.hot.rootElement||oG(e.target)&&this.hot.rootElement.contains(e.target)||this.#dp()},{capture:!0,passive:!0}),this.#dd=!0,this.eventManager.addEventListener(this.hot.rootWindow,"resize",()=>this.#dp(),{passive:!0}))}#dw(){return this.TEXTAREA_PARENT.getBoundingClientRect()}getDropdownHeight(){return this.htEditor.getTableHeight()}getDropdownWidth(){return this.htEditor.getTableWidth()}getTargetDropdownWidth(){return this.htEditor.view.getTableWidth()}getTargetDropdownHeight(){return this.htEditor.view.getTableHeight()+1}assignHooks(){this.hot.addHook("afterDestroy",()=>{this.htEditor&&(this.htEditor.rootPortalElement=null,this.htEditor.destroy())}),this.hot.addHook("afterSetTheme",(e,t)=>{t||this.close()})}registerShortcuts(){let e=this.hot.getShortcutManager().getContext("editor");super.registerShortcuts();let t=(e,t)=>{let i=this.htEditor;if(void 0!==e&&(e<0||this.isFlippedVertically&&e>i.countRows()-1?(i.deselectCell(),this.innerSelectionOrigin=null):(i.selectCell(e,0),this.innerSelectionOrigin="user"),i.getData().length))return t.preventDefault(),rh(t),this.hot.listen(),this.TEXTAREA.focus(),!1};e.addShortcuts([{keys:[["ArrowUp"]],callback:e=>{let i,o=this.htEditor;if(!o.getSelectedActive()&&this.isFlippedVertically)i=o.countRows()-1;else if(o.getSelectedActive()){let e=o.getSelectedActive();i=this.isFlippedVertically?Math.max(0,e[0]-1):e[0]-1}return t(i,e)},preventDefault:!1},{keys:[["ArrowDown"]],callback:e=>{let i,o=this.htEditor;if(o.getSelectedActive()||this.isFlippedVertically){if(o.getSelectedActive()){let e=o.getSelectedActive();this.isFlippedVertically?i=e[0]+1:this.isFlippedVertically||(i=Math.min(o.countRows()-1,e[0]+1))}}else i=0;return t(i,e)},preventDefault:!1}],{group:bR,relativeToGroup:ml,position:"before"})}unregisterShortcuts(){super.unregisterShortcuts(),this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(bR)}}function bE(e){return tL(e)}function bM(e,t){return tM(e)&&t?"function"==typeof t?t(e):"string"!=typeof t?e:t.split(".").reduce((e,t)=>tM(e)||Array.isArray(e)?e[t]:void 0,e):e}function bk(e,t,i){return!(t&&bE(e)&&tM(e.value))||""!==e$(i)}function bI(e,t,i=!1,o){if(!Array.isArray(e))return;let r=e$(t);return e.find(e=>{let t;return t=e$(bE(e)?bM(e.value,o):e),(i?t:nr(t))===r})}class bT extends bx{static get EDITOR_TYPE(){return"autocomplete"}query=null;strippedChoices=[];rawChoices=[];#dC=this.hot.guid.slice(0,9);#dy=0;#dS=0;#dv=new Set;#dR=null;getValue(){if(""===this.TEXTAREA.value)return this.TEXTAREA.value;let e=bI(this.rawChoices,this.TEXTAREA.value,!0===this.cellProperties.allowHtml,this.cellProperties.sourceLabel);return eU(e)?e:this.TEXTAREA.value}createElements(){super.createElements(),this.eventManager.addEventListener(this.TEXTAREA,"input",()=>{this.innerSelectionOrigin=null}),iG(this.htContainer,"autocompleteEditor"),iG(this.htContainer,-1===this.hot.rootWindow.navigator.platform.indexOf("Mac")?"":"htMacScroll"),this.hot.getSettings().ariaTags&&iq(this.TEXTAREA,[["type","text"],["role","combobox"],V("listbox"),["aria-autocomplete","list"]])}prepare(e,t,i,o,r,n){super.prepare(e,t,i,o,r,n),this.hot.getSettings().ariaTags&&iq(this.TEXTAREA,[G("false"),["aria-controls",`${this.#dC}-listbox-${e}-${t}`]]),this.htOptions={...this.htOptions,valueGetter:e=>bE(e)?e.value:e}}beginEditing(e,t){if(this.state!==rJ.VIRGIN)return void super.beginEditing(e,t);let i="string"!=typeof e&&this.isInFullEditMode();this.#dR=null,super.beginEditing(e,t),i&&this.isOpened()&&(this.#dR=this.TEXTAREA.value)}open(){this.strippedChoices=[],this.rawChoices=[],super.open();let e=this.cellProperties.trimDropdown,t=void 0===e||e,i=this.hot.getSettings().ariaTags,o=Array.isArray(this.cellProperties.source)?this.cellProperties.source:null,r=o?.length,{row:n,col:s}=this;if(this.showEditableElement(),this.focus(),this.addHook("beforeKeyDown",e=>this.onBeforeKeyDown(e)),this.htEditor.addHook("afterScroll",this.#dx),this.htEditor.updateSettings({colWidths:t?[oC(this.TEXTAREA)-2]:void 0,autoColumnSize:!0,modifyColWidth:t?void 0:e=>Math.max(e??0,oC(this.TEXTAREA)-2),renderer:(e,t,n,s,l,a,h)=>{bf(e,t,n,s,l,a,h);let{filteringCaseSensitive:d,allowHtml:u}=this.cellProperties,c=this.cellProperties.locale,g=this.query,p=e$(a);if(u)i1(t,p,!1,"html",this.hot.rootElement);else if(p&&g&&g.length>0){let i=!0===d?p.indexOf(g):nu(p,c).indexOf(nu(g,c));if(-1!==i){let o=p.slice(i,i+g.length),{rootDocument:r}=e;iX(t),t.appendChild(r.createTextNode(p.slice(0,i)));let n=r.createElement("strong");n.textContent=o,t.appendChild(n),t.appendChild(r.createTextNode(p.slice(i+g.length)))}}i&&iq(t,[["role","option"],...o?[X(r??0)]:[],...o?[Z(o.indexOf(a)+1)]:[],["id",`${this.htEditor.rootElement.id}_${n}-${s}`]])},afterSelectionEnd:(e,t)=>{if(i){let i=e=>{iq(e,[Y()]),iq(this.TEXTAREA,"aria-activedescendant",e.id)},o=this.htEditor.getCell(e,t,!0);null!==o?i(o):this.htEditor.addHookOnce("afterScrollVertically",()=>{let o=this.htEditor.getCell(e,t,!0);null!==o&&i(o)})}}}),i){let e=R();iq(this.htEditor.view._wt.wtOverlays.wtTable.TABLE,e[0],e[1]),iq(this.htEditor.rootElement,[A(),["aria-live","polite"],["aria-relevant","text"],["id",`${this.#dC}-listbox-${n}-${s}`]]),iq(this.TEXTAREA,...G("true"))}this.#dE()}#dM(){return this.stripValueIfNeeded(this.getValue())}#dk(e,t){let i=this.cellProperties.sortByRelevance,o=this.cellProperties.filter,r=bE(t)?t.value:t,n=null,s=e;i||(s=[...s].sort(this.#dI()));let l=String(r),{matchedIndexes:a,equalPosition:h}=this.#dT(s,l),d=h??this.#dA();return!1===o?l.length>0&&null!==d&&(n=a[d]??null):(s=a.map(e=>s[e]),n=d),{choices:s,highlightIndex:n}}#dT(e,t){let{filter:i,filteringCaseSensitive:o,strict:r}=this.cellProperties,n=this.cellProperties.locale,s=!1!==i,l=s||!0===r&&""!==t,a=e=>o?e:nu(e,n),h=a(t),d=[],u=null,c=null;for(let i=0;i<e.length;i++){let o=e[i],r=nr(e$(bE(o)?o.value:o)),n=a(r);if(-1===n.indexOf(h))continue;let g=n===h;if((s||g||0===d.length)&&d.push(i),g&&null===u&&(u=d.length-1),null===c&&r===t&&(c=d.length-1),!s&&(!l||null!==c))break}return{matchedIndexes:d,equalPosition:c??u}}#dA(){return this.#dH()?null:0}#dH(){let e=this.#dR;return null!==e&&""!==e&&this.TEXTAREA.value===e}isEditUnchanged(e,t){return super.isEditUnchanged(e,t)||"user"!==this.innerSelectionOrigin&&this.#dH()}resetValueBeforeEdit(){super.resetValueBeforeEdit(),null!==this.#dR&&(this.#dR=this.TEXTAREA.value)}#dI(){if(!this.#dO())return(e,t)=>e$(e).localeCompare(e$(t));let e=e=>e$(bE(e)?e.value:e);return(t,i)=>e(t).localeCompare(e(i))}#dE(e=0){let t=this.hot._registerTimeout(()=>{this.#dv.delete(t),this.queryChoices(this.TEXTAREA.value)},e);this.#dv.add(t)}resolveInnerSelectionValue(){if("user"===this.innerSelectionOrigin)return super.resolveInnerSelectionValue();if(!0!==this.cellProperties.strict||this.#dH())return;let{choices:e,highlightIndex:t}=this.#dk(this.strippedChoices,this.#dM());if(null===t||t>=e.length)return;let i=e[t];return bE(i)?i.value:i}close(){this.#dD(),this.#dR=null,this.removeHooksByKey("beforeKeyDown"),super.close(),this.hot.getSettings().ariaTags&&iq(this.TEXTAREA,[G("false")])}#dD(){this.#dx.cancel(),this.#dv.forEach(e=>clearTimeout(e)),this.#dv.clear(),this.#dS+=1}hideForScroll(){return this.#dD(),this.hot.getSettings().ariaTags&&iq(this.TEXTAREA,[G("false")]),super.hideForScroll()}showAfterScroll(){this.htEditor&&this.strippedChoices.length>0&&(super.showAfterScroll(),this.hot.getSettings().ariaTags&&iq(this.TEXTAREA,[G("true")]))}reflowDropdown(){this.updateDropdownDimensions(),super.reflowDropdown()}discardEditor(e){super.discardEditor(e),this.hot.view.render()}queryChoices(e){if(this.state!==rJ.EDITING&&this.state!==rJ.WAITING||!this._opened)return;let t=this.cellProperties.source,i=this.#dy+1,o=this.#dS;this.#dy=i,this.query=e,"function"==typeof t?t.call(this.cellProperties,e,e=>{this.hot.isDestroyed||o!==this.#dS||i!==this.#dy||(this.rawChoices=e,this.updateChoicesList(this.stripValuesIfNeeded(this.#dP(e))))}):Array.isArray(t)?(this.rawChoices=t,this.updateChoicesList(this.stripValuesIfNeeded(this.#dP(t)))):this.updateChoicesList([])}updateChoicesList(e){let t=oE(this.TEXTAREA),i=oM(this.TEXTAREA),{choices:o,highlightIndex:r}=this.#dk(e,this.#dM());if(this.strippedChoices=o,0===o.length?this.htEditor.rootElement.style.display="none":this.htEditor.rootElement.style.display="",this.htEditor.loadData(et([o])),o.length>0){if(this.updateDropdownDimensions(),this.flipDropdownVerticallyIfNeeded(),this.flipDropdownHorizontallyIfNeeded(),!0===this.cellProperties.strict){let e=r??void 0;this.highlightBestMatchingChoice(e),this.innerSelectionOrigin=void 0===e?null:"auto"}}else this.innerSelectionOrigin=null,iK(this.TEXTAREA,"aria-activedescendant");this.hot.listen(),oT(this.TEXTAREA,t,t===i?void 0:i)}limitDropdownIfNeeded(e){let t=this.getTargetEditorHeight();if(t>e){let t=this.htEditor.stylesHandler.getDefaultRowHeight()??0;if(0===t)return;let i=Math.max(Math.ceil(e/t)-1,1);this.setDropdownHeight(i*t),this.replaceDropdownVertically()}else this.getDropdownHeight()<t&&(this.updateDropdownDimensions(),this.replaceDropdownVertically())}updateDropdownDimensions(){let e=oA(),t=this.getTargetEditorWidth()+e,i=this.getTargetEditorHeight()+e;this.appliedDropdownHeight=i,this.htEditor.updateSettings({width:t,height:i}),this.#d_(),this.htEditor.view._wt.wtTable.alignOverlaysWithTrimmingContainer()}setDropdownHeight(e){e!==this.appliedDropdownHeight&&(this.appliedDropdownHeight=e,this.htEditor.updateSettings({height:e}),this.#d_(),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(),iK(this.TEXTAREA,"aria-activedescendant"))}getTargetEditorHeight(){let e=0;if(!this.hot.getCurrentThemeName()){let t=this.htContainer.querySelector(".htCore");if(t){let i=this.hot.rootWindow.getComputedStyle(t);e=parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)}}return Array.from({length:Math.min(this.cellProperties.visibleRows,this.strippedChoices.length)},(e,t)=>t).reduce((e,t)=>e+((this.hot.stylesHandler.getDefaultRowHeight()??0)+ +(0===t)),0)+e}getTargetEditorWidth(){let e=0;if(!this.hot.getCurrentThemeName()){let t=this.htContainer.querySelector(".htCore");if(t){let i=this.hot.rootWindow.getComputedStyle(t);e=parseInt(i.borderInlineStartWidth,10)+parseInt(i.borderInlineEndWidth,10)}}return this.htEditor.getColWidth(0)+e}stripValueIfNeeded(e){return this.stripValuesIfNeeded([e])[0]}stripValuesIfNeeded(e){let{allowHtml:t,sourceLabel:i}=this.cellProperties,o=e=>e$(t?e:nr(String(e)));return e.every(e=>bE(e))?e.map(e=>{let t=bM(e.value,i);return{key:o(e.key),value:o(t===e.value?t:e$(t))}}):e.map(e=>{if(bE(e)){let t=bM(e.value,i);if(i||t!==e.value)return o(e$(t))}return o(e)})}#dO(){return!!this.cellProperties.sourceLabel&&this.rawChoices.some(e=>bE(e)&&tM(e.value))}#dP(e){let{sourceLabel:t}=this.cellProperties;return t?e.filter(e=>!(t&&bE(e)&&tM(e.value))||bk(e,t,bM(e.value,t))):e}#dx=o5(()=>{this.focus()},100);#d_(){this.htEditor.view.hasVerticalScroll()&&this.htEditor.updateSettings({width:this.getTargetEditorWidth()+oH(this.hot.rootDocument)})}onBeforeKeyDown(e){if(rr(e.keyCode)||e.keyCode===ri.BACKSPACE||e.keyCode===ri.DELETE||e.keyCode===ri.INSERT){let t=10;e.keyCode===ri.C&&(e.ctrlKey||e.metaKey)||(this.isOpened()||(t+=10),this.#dE(t))}}}class bA extends r0{static get EDITOR_TYPE(){return"checkbox"}beginEditing(e,t){if(t&&"mouseup"===t.type&&"TD"===iT(t).nodeName){let e=this.TD.querySelector('input[type="checkbox"]');iU(e,"htBadValue")||e.click()}}finishEditing(){}init(){}open(){}close(){}getValue(){}setValue(){}focus(){}}let bH=/^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/;function bO(e){let t=new Date(e);return Number.isNaN(new Date(`${e}T00:00`).getDate())?t:new Date(t.getTime()+6e4*t.getTimezoneOffset())}function bD(e){if(ej(e))return null;if("string"==typeof e&&bH.test(e)){let[t,i,o]=e.split("-").map(Number),r=new Date(t,i-1,o);return t<100&&(r.setFullYear(t,i-1,o),r.setHours(0,0,0,0)),r}return null}let bP=[31,28,31,30,31,30,31,31,30,31,30,31];function b_(e){return e%4==0&&e%100!=0||e%400==0}function bF(e){if("string"!=typeof e||!bH.test(e))return!1;let t=+e.slice(0,4),i=+e.slice(5,7);return+e.slice(8,10)<=(2===i&&b_(t)?29:bP[i-1])}let bN=/^([01]\d|2[0-3]):([0-5]\d)(?::([0-5]\d)(?:\.(\d{1,3}))?)?$/;function bL(e){if(ej(e)||"string"!=typeof e)return null;let t=bN.exec(e);if(!t)return null;let i=Number(t[1]),o=Number(t[2]),r=void 0!==t[3]?Number(t[3]):0,n=t[4];return new Date(1970,0,1,i,o,r,void 0!==n?Number(n.padEnd(3,"0").slice(0,3)):0)}function bB(e){return"string"==typeof e&&bN.test(e)}let bV=/^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])(?:[T ]([01]\d|2[0-3]):([0-5]\d)(?::([0-5]\d)(?:\.(\d{1,3}))?)?)?$/;function bz(e){if(ej(e)||"string"!=typeof e)return null;let t=bV.exec(e);if(!t)return null;let[i]=e.split(/[T ]/),[o,r,n]=i.split("-").map(Number),s=void 0!==t[3]?Number(t[3]):0,l=void 0!==t[4]?Number(t[4]):0,a=void 0!==t[5]?Number(t[5]):0,h=void 0!==t[6]?Number(t[6].padEnd(3,"0").slice(0,3)):0,d=new Date(o,r-1,n,s,l,a,h);return o<100&&(d.setFullYear(o,r-1,n),d.setHours(s,l,a,h)),d}function bW(e){if("string"!=typeof e)return!1;let t=bV.exec(e);if(!t)return!1;let i=+e.slice(0,4),o=+t[1];return+t[2]<=(2===o&&b_(i)?29:bP[o-1])}function b$(){let e=new Date;return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function bU(e){let t=b$();return t.setDate(t.getDate()+e),t}function bG(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}let bj=new Map,bq=[new Date(2024,0,1),new Date(2024,6,1)];function bK(e,t){let i=void 0===e||"string"==typeof e?e:`\u0000${String(e)}`,o=bj.get(i);void 0===o&&(o=new Map,bj.set(i,o));let r=`${bq[0].getTimezoneOffset()},${bq[1].getTimezoneOffset()}`,n=`${r}:${JSON.stringify(t)}`,s=o.get(n);return void 0===s&&(s=new Intl.DateTimeFormat(e,t),o.set(n,s)),s}function bY(e,t,i){let o=bK(e,t);if(i.getFullYear()>=1||void 0!==t.era)return o.format(i);let{year:r,calendar:n}=o.resolvedOptions();return void 0===r||"gregory"!==n?o.format(i):bK(e,{...t,era:"short"}).format(i)}function bX(e,t){if(!t?.type.startsWith("key"))try{e.showPicker()}catch{}}function bZ(e,t){oZ(e.rootDocument)===t&&function(e){try{return e.matches(":open")}catch{return!0}}(t)&&(t.blur(),e.getFocusManager().focusOnHighlightedCell())}class bQ extends bp{#dF=!1;#dN=!1;static get EDITOR_TYPE(){return"date"}get capsLength(){return!1}init(){super.init(),this.hot.addHook("afterSetTheme",(e,t)=>{t||this.close()})}prepare(e,t,i,o,r,n){super.prepare(e,t,i,o,r,n),void 0!==n.datePickerConfig&&il(this.hot.rootElement,"datePickerConfig",'The "datePickerConfig" option is not supported. The native date input is used instead of Pikaday.');let s=this.hot.toPhysicalRow(e);this.originalValue=this.hot.getSourceDataAtCell(s,t)}createElements(e){super.createElements("input"),this.TEXTAREA.setAttribute("type","date"),this.eventManager.addEventListener(this.TEXTAREA,"input",()=>{this.#dF=!0})}beginEditing(e,t){this.state===rJ.VIRGIN&&(this.#dF=!1,this.#dN=!1),super.beginEditing(e,t)}finishEditing(e,t,i){let o=this.state===rJ.EDITING&&this.#dL(t);super.finishEditing(e||o,t,i)}#dL(e){let t=this.TEXTAREA;return""===t.value&&(!1!==this.cellProperties.allowEmpty||!1!==this.cellProperties.allowInvalid)&&(ej(this.originalValue)?!0===e&&t.validity.badInput:t.validity.badInput||!this.#dN&&!this.#dF)}setValue(e){if(ej(e)&&(e=this.cellProperties.defaultDate),!bF(e)){ir(eb`DateEditor: value must be in ISO date format ("YYYY-MM-DD")\x20
103
103
  required by the native date input. Received:`,e),super.setValue("");return}super.setValue(e),this.#dN=!0}focus(){this.TEXTAREA.focus({preventScroll:!0}),this.TEXTAREA.select()}close(){super.close(),bZ(this.hot,this.TEXTAREA)}open(e){super.open(e),bX(this.TEXTAREA,e)}}class bJ extends bT{static get EDITOR_TYPE(){return"dropdown"}prepare(e,t,i,o,r,n){n.filter=!1,n.strict=!0,super.prepare(e,t,i,o,r,n)}finishEditing(e,t,i){if(this.isOpened()){let t=this.hot.getSelectedRangeActive();(eG(t)||eU(t)&&!t.includes(this.hot._createCellCoords(this.row,this.col)))&&(e=!0)}super.finishEditing(e,t,i)}}class b0 extends bQ{static get EDITOR_TYPE(){return"intl-date"}}let b1=/^\d{4}-\d{2}-\d{2}$/,b2=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/;class b3 extends bp{static get EDITOR_TYPE(){return"intl-datetime"}get capsLength(){return!1}init(){super.init(),this.hot.addHook("afterSetTheme",(e,t)=>{t||this.close()})}prepare(e,t,i,o,r,n){super.prepare(e,t,i,o,r,n);let s=this.hot.toPhysicalRow(e);this.originalValue=this.hot.getSourceDataAtCell(s,t)}createElements(e){super.createElements("input"),this.TEXTAREA.setAttribute("type","datetime-local"),this.TEXTAREA.setAttribute("step","1"),this.TEXTAREA.setAttribute("dir","ltr")}setValue(e){if(ej(e))return void super.setValue("");if(!bW(e)){ir(eb`IntlDatetimeEditor: value must be in ISO date-time format ("YYYY-MM-DDTHH:mm:ss")\x20
104
104
  required by the native datetime-local input. Received:`,e),super.setValue("");return}let t=String(e).replace(" ","T").replace(/\.\d+$/,"");b1.test(t)?t+="T00:00:00":b2.test(t)&&(t+=":00"),super.setValue(t)}getValue(){let e=super.getValue();return e&&b2.test(e)?`${e}:00`:e}focus(){this.TEXTAREA.focus({preventScroll:!0}),this.TEXTAREA.select()}close(){super.close(),bZ(this.hot,this.TEXTAREA)}open(e){super.open(e),bX(this.TEXTAREA,e)}}class b6 extends bp{static get EDITOR_TYPE(){return"time"}get capsLength(){return!1}init(){super.init(),this.hot.addHook("afterSetTheme",(e,t)=>{t||this.close()})}createElements(e){super.createElements("input"),this.TEXTAREA.setAttribute("type","time"),this.TEXTAREA.setAttribute("dir","ltr")}setValue(e){if(!bB(e)){ir(eb`TimeEditor: value must be in 24-hour time format ("HH:mm", "HH:mm:ss" or "HH:mm:ss.SSS")\x20
105
105
  required by the native time input. Received:`,e),super.setValue("");return}super.setValue(e)}focus(){this.TEXTAREA.focus({preventScroll:!0}),this.TEXTAREA.select()}close(){super.close(),bZ(this.hot,this.TEXTAREA)}open(e){super.open(e),bX(this.TEXTAREA,e)}}class b4 extends b6{static get EDITOR_TYPE(){return"intl-time"}}class b5 extends bp{static get EDITOR_TYPE(){return"numeric"}get capsLength(){return!1}}class b8 extends bp{autoResize=bd(this.hot.rootDocument,{textContent:e=>"\u2022".repeat(e.value.length)});#dB="";#dV=null;#dz=null;#dW=!1;static get EDITOR_TYPE(){return"password"}get capsLength(){return!1}createElements(){super.createElements(),this.TEXTAREA=this.hot.rootDocument.createElement("input"),this.TEXTAREA.setAttribute("type","password"),this.TEXTAREA.dataset.hotInput="",this.TEXTAREA.className="handsontableInput",this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width="0",this.textareaStyle.height="0",iX(this.TEXTAREA_PARENT);let e=v(-1);this.TEXTAREA.setAttribute(e[0],String(e[1])),this.TEXTAREA_PARENT.appendChild(this.TEXTAREA)}open(){super.open();let e=this.cellProperties.hashRevealDelay,t=String(this.cellProperties.hashSymbol||"*");if(e>0){this.#dW=!0;let i=t[0];this.TEXTAREA.setAttribute("type","text"),this.TEXTAREA.setAttribute("autocomplete","off"),this.TEXTAREA.setAttribute("spellcheck","false"),this.TEXTAREA.setAttribute("autocapitalize","off"),this.TEXTAREA.setAttribute("autocorrect","off"),this.TEXTAREA.value=i.repeat(this.#dB.length),this.#dz=t=>this.#d$(t,i,e),this.TEXTAREA.addEventListener("input",this.#dz)}}close(){this.#dz&&(this.TEXTAREA.removeEventListener("input",this.#dz),this.#dz=null),null!==this.#dV&&(clearTimeout(this.#dV),this.#dV=null),this.#dW=!1,this.#dB="",this.TEXTAREA.setAttribute("type","password"),this.TEXTAREA.removeAttribute("autocomplete"),this.TEXTAREA.removeAttribute("spellcheck"),this.TEXTAREA.removeAttribute("autocapitalize"),this.TEXTAREA.removeAttribute("autocorrect"),super.close()}getValue(){return this.#dW?this.#dB:super.getValue()}setValue(e){let t=e$(e);if(this.#dW){this.#dB=t;let e=String(this.cellProperties.hashSymbol||"*")[0];this.TEXTAREA.value=e.repeat(this.#dB.length)}else this.cellProperties?.hashRevealDelay>0?this.#dB=t:super.setValue(t)}#d$(e,t,i){let{inputType:o,data:r}=e;if(r&&("insertText"===o||"insertFromPaste"===o||"insertFromDrop"===o||"insertReplacementText"===o||"insertCompositionText"===o)){let e=this.TEXTAREA.selectionStart??0,o=e-r.length,n=this.TEXTAREA.value.length-e;this.#dB=this.#dB.slice(0,o)+r+this.#dB.slice(this.#dB.length-n),this.TEXTAREA.value=t.repeat(o)+r+t.repeat(n),this.TEXTAREA.setSelectionRange(e,e),null!==this.#dV&&clearTimeout(this.#dV),this.#dV=this.hot._registerTimeout(()=>{let e=this.TEXTAREA.selectionStart;this.TEXTAREA.value=t.repeat(this.#dB.length),this.TEXTAREA.setSelectionRange(e,e),this.#dV=null},i)}else if(o?.startsWith("delete")){let e=this.#dB.length,i=this.TEXTAREA.selectionStart??0,o=e-this.TEXTAREA.value.length;this.#dB=this.#dB.slice(0,i)+this.#dB.slice(i+o),this.TEXTAREA.value=t.repeat(this.#dB.length),this.TEXTAREA.setSelectionRange(i,i),null!==this.#dV&&(clearTimeout(this.#dV),this.#dV=null)}else{let e=this.#dB.length,o=this.TEXTAREA.value;if(o.length>e){let r=o.slice(e);this.#dB+=r,this.TEXTAREA.value=t.repeat(e)+r,null!==this.#dV&&clearTimeout(this.#dV),this.#dV=this.hot._registerTimeout(()=>{this.TEXTAREA.value=t.repeat(this.#dB.length),this.#dV=null},i)}else this.#dB=this.#dB.slice(0,o.length),this.TEXTAREA.value=t.repeat(this.#dB.length),null!==this.#dV&&(clearTimeout(this.#dV),this.#dV=null)}}}let b7=new WeakMap;function b9(e){return e.themeManager??b7.get(e)?.themeManager??null}function Ce(e,t,i={}){let o=b9(e);if(o)return o.createIcon(t,i);let r=e.rootDocument.createElement("i"),n=[fX,f0(t)];return i.flipInRtl&&n.push(fQ),i.className&&n.push(i.className),r.className=n.join(" "),r.setAttribute("aria-hidden","true"),r}function Ct(e,t,i,o,r={}){let n=t.querySelector(`.${i}`);if(null===o)return n?.remove(),null;if(n?.classList.contains(f0(o))){let t=b9(e),s={...r,className:[r.className,i].filter(Boolean).join(" ")};if(!t){if(void 0!==n.dataset.htIconsRevision||n.classList.contains(fZ)){let t=Ce(e,o,s);return n.replaceWith(t),t}return n}let l=String(t.getIconsRevision());return n.dataset.htIconsRevision!==l&&(t.applyIcon(n,o,s),n.dataset.htIconsRevision=l),n}let s=Ce(e,o,{...r,className:[r.className,i].filter(Boolean).join(" ")}),l=b9(e);return l&&(s.dataset.htIconsRevision=String(l.getIconsRevision())),n?n.replaceWith(s):t.appendChild(s),s}function Ci(){let e=new WeakSet;return(t,i,o,r,n={})=>null!==r||e.has(i)?(null!==r&&e.add(i),Ct(t,i,o,r,n)):null}let Co="ht_editor_visible",Cr="selectEditor",Cn="ht-select-editor-arrow-icon";class Cs extends r0{static get EDITOR_TYPE(){return"select"}init(){this.selectWrapper=this.hot.rootDocument.createElement("div"),this.select=this.hot.rootDocument.createElement("select"),this.select.dataset.hotInput="true",this.selectWrapper.style.display="none";let e=this.hot.rootDocument.createElement("DIV"),t=this.hot.getSettings().ariaTags;e.className="htAutocompleteArrow",t&&e.setAttribute(...L()),e.appendChild(this.hot.rootDocument.createTextNode(String.fromCharCode(9660))),Ct(this.hot,e,Cn,"selectArrow"),iG(this.selectWrapper,"htSelectEditor"),this.selectWrapper.appendChild(this.select),this.selectWrapper.insertBefore(e,this.selectWrapper.firstChild),this.hot.rootElement.appendChild(this.selectWrapper),this.registerHooks(),this.hot.addHookOnce("afterDestroy",()=>this.destroy())}getValue(){return this.select.value}setValue(e){this.select.value=null==e?"":String(e)}open(){this._opened=!0;let e=this.selectWrapper.querySelector(".htAutocompleteArrow");e&&Ct(this.hot,e,Cn,"selectArrow"),this.refreshDimensions(),this.selectWrapper.style.display="",this.hot.getShortcutManager().setActiveContextName("editor"),this.registerShortcuts()}close(){this._opened=!1,this.selectWrapper.style.display="none",iU(this.selectWrapper,Co)&&ij(this.selectWrapper,Co),this.unregisterShortcuts(),this.removeHooksByKey("beforeDialogShow")}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,i,o,r,n){let s;super.prepare(e,t,i,o,r,n);let l=this.cellProperties.selectOptions;s="function"==typeof l?this.prepareOptions(l(this.row,this.col,this.prop)):this.prepareOptions(l),iX(this.select);let a=nw(this.hot);if(Array.isArray(s))for(let e=0;e<s.length;e++){let t=this.hot.rootDocument.createElement("OPTION");t.value=String(s[e]),i1(t,String(s[e]),a,"selectEditor",this.hot.rootElement),this.select.appendChild(t)}else tT(s,(e,t)=>{let i=this.hot.rootDocument.createElement("OPTION");i.value=t,i1(i,String(e),a,"selectEditor",this.hot.rootElement),this.select.appendChild(i)})}prepareOptions(e){return Array.isArray(e)||"object"==typeof e?e:{}}refreshValue(){let e=this.hot.toPhysicalRow(this.row),t=this.hot.getSourceDataAtCell(e,this.col);this.originalValue=t,this.setValue(t),this.resetValueBeforeEdit(),this.refreshDimensions()}refreshDimensions(){if(this.state!==rJ.EDITING)return;if(this.TD=this.getEditedCell(),!this.TD)return void this.close();let e=this.getEditedCellRect();if(!e)return;let{top:t,start:i,width:o,height:r}=e,n=this.selectWrapper.style;n.height=`${r}px`,n.width=`${o}px`,n.top=`${t}px`,n[this.hot.isRtl()?"right":"left"]=`${i}px`,n.margin="0px",iG(this.selectWrapper,Co)}registerShortcuts(){let e=this.hot.getShortcutManager().getContext("editor");this.isInFullEditMode()&&e.addShortcuts([{keys:[["ArrowUp"]],callback:()=>{let e=this.select.selectedIndex-1;e>=0&&(this.select[e].selected=!0)}},{keys:[["ArrowDown"]],callback:()=>{let e=this.select.selectedIndex+1;e<=this.select.length-1&&(this.select[e].selected=!0)}}],{group:Cr})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(Cr)}destroy(){this.clearHooks()}}function Cl(e){return e.querySelector('input[type="checkbox"]')}function Ca(e,t){return tL(t)?Array.isArray(e)&&e.some(e=>tL(e)?tx(e,t):e===t):e.includes(t)}class Ch{input;eventManager;enabled;onInput=this._onInput.bind(this);constructor({input:e,eventManager:t}){this.input=e,this.eventManager=t,this.enabled=!0}getInputElement(){return this.input}setValue(e){this.input.value=e}toggle(e){this.enabled=e,this.input&&(e?this.listen():this.unlisten())}listen(){this.eventManager.addEventListener(this.input,"input",this.onInput)}unlisten(){this.eventManager.removeEventListener(this.input,"input",this.onInput)}_onInput(){this.#dU(this.input.value)}#dU(e){this.runLocalHooks("triggerFilter",e)}}tR(Ch,dp);let Cd="ht-multi-select-editor",Cu=`${Cd}-search-input-wrapper`,Cc=`${Cd}-search-input`,Cg=`${Cd}-separator`,Cp=`${Cd}-item-`,Cm=`${Cd}-item-selected`;function Cf(e){let t=Cl(e);iG(e,Cm),t&&!t.checked&&(t.checked=!0)}function Cw(e){let t=Cl(e);ij(e,Cm),t&&t.checked&&(t.checked=!1)}let Cb="ht-multi-select-editor-search-icon",CC="ht-multi-select-editor-search-slot";function Cy({dropdownListElement:e,index:t}){let i=e.children[t];if(i){let e=Cl(i);e&&e.blur()}}class CS{#dG=null;#dj;#dq=null;#dK=null;#dY=null;#dX=null;#dZ=null;#dQ=null;#tf=null;#aR=new r2(this);#dJ={visibleRowsNumberSetting:null,entriesCount:0,flippedVertically:!1,currentlySelectedItemIndex:0,checkboxChangeListeners:new Map,areCheckboxesDisabled:!1,sourceSortFunction:null};constructor(e,t,i){this.#dq=e,this.#tf=this.#dq.ownerDocument,this.#dG=t,this.#dj=i,this.init()}init(){this.#tf&&this.#dq&&(this.#dK=function({root:e}){return e.createElement("ul")}({root:this.#tf}),this.#dY=function({root:e}){let t=e.createElement("input");return iq(t,[P("Search options"),["type","text"],["size",3],["placeholder","Search..."],["id",Cc]]),iG(t,Cc),t}({root:this.#tf}),this.#dZ=function({root:e}){let t=e.createElement("div");return t.className=Cu,t}({root:this.#tf}),this.#dX=function({root:e}){let t=e.createElement("div");return t.className=Cg,t}({root:this.#tf}),this.#dZ.appendChild(function({hotInstance:e}){return Ce(e,"search",{className:`${Cb} ${CC}`})}({hotInstance:this.#dj})),this.#dZ.appendChild(this.#dY),this.#dq.appendChild(this.#dZ),this.#dq.appendChild(this.#dX),this.#dq.appendChild(this.#dK),this.#dQ=new Ch({input:this.#dY,eventManager:this.#aR}))}refreshIcons(){this.#dZ&&function({hotInstance:e,wrapper:t}){Ct(e,t,CC,"search",{className:Cb})}({hotInstance:this.#dj,wrapper:this.#dZ})}setVisibleRowsNumberSetting(e){this.#dJ.visibleRowsNumberSetting=e}setSourceSortFunction(e){this.#dJ.sourceSortFunction=e??null}setSearchInputVisibility(e=!0){this.#dZ&&this.#dX&&this.#dQ&&(this.#dZ.style.display=e?"":"none",this.#dX.style.display=e?"":"none",this.#dQ.toggle(e))}fillDropdown(e,t=[]){this.removeAllDropdownItems(),this.#dJ.currentlySelectedItemIndex=0,Array.isArray(t)||(t=[]);let i=e;this.#dJ.sourceSortFunction&&(i=this.#dJ.sourceSortFunction(e.slice())),this.#tf&&this.#dK&&null!==this.#dG&&(i.forEach((e,i)=>{let o="object"==typeof e&&null!==e&&"value"in e?e.value:e;this.#d0({rootDocument:this.#tf,itemKey:"object"==typeof e&&null!==e&&"key"in e?e.key:void 0,itemValue:String(o??e),indexWithinList:i,checked:Ca(t,e),disabled:this.#dJ.areCheckboxesDisabled})}),this.#dJ.entriesCount=i.length,this.runLocalHooks("afterDropdownFill"))}updateDimensions(e,t=!1){let i=this.#d1(),o=this.#d2(),r=this.#d3(e,o),n=(t?this.#dJ.flippedVertically:r)?e.spaceAbove:e.spaceBelow;if(t||(this.#dJ.flippedVertically=r),this.#dJ.entriesCount>0&&n<this.getHeight(!0)+o){let e=Math.max(Math.floor((n-Math.max(o-i,0)-this.#d6())/i)-1,1);this.#dJ.actualRenderedItemsCount=this.#dJ.visibleRowsNumberSetting?Math.min(e,this.#dJ.visibleRowsNumberSetting):e}else this.#dJ.actualRenderedItemsCount=Math.min(this.#dJ.entriesCount,this.#dJ.visibleRowsNumberSetting??this.#dJ.entriesCount);this.#dq&&(this.#dJ.actualRenderedItemsCount&&this.#dJ.entriesCount>this.#dJ.actualRenderedItemsCount?this.#dq.style.height=`${this.getHeight()}px`:this.#dq.style.height="",this.#d4(e),this.#dq.scrollTop=0)}getDropdownWidth(){return this.#dK?function({dropdownListElement:e}){return e.offsetWidth}({dropdownListElement:this.#dK}):0}deselectAllItems(){this.#dK&&function({dropdownListElement:e}){e.querySelectorAll(`.${Cm}`).forEach(e=>Cw(e))}({dropdownListElement:this.#dK})}focusFirstItem(){this.#dJ.entriesCount>0&&this.#d5(0)}focusItem(e){this.#d5(e)}focusPreviousItem(){if(this.#dK){if(0===this.#dJ.currentlySelectedItemIndex)return void this.focusSearchInput();Cy({dropdownListElement:this.#dK,index:this.#dJ.currentlySelectedItemIndex}),this.#d5(this.#dJ.currentlySelectedItemIndex-1)}}focusNextItem(){this.#dK&&this.#dJ.currentlySelectedItemIndex!==this.#dJ.entriesCount-1&&(Cy({dropdownListElement:this.#dK,index:this.#dJ.currentlySelectedItemIndex}),this.#d5(this.#dJ.currentlySelectedItemIndex+1))}focusSearchInput(){this.#dY&&this.#dY.focus()}reset(){this.removeAllDropdownItems(),this.#d8(),this.#dY&&(this.#dY.value=""),this.#dq&&(this.#dq.style.position="",this.#dq.style.top="",this.#dq.style.bottom="",this.#dq.style.height="",this.#dq.scrollTop=0)}isFlippedVertically(){return this.#dJ.flippedVertically}getOuterWidth(){return this.#dq?this.#dq.offsetWidth:0}getHeight(e=!1,t=!1){if(!this.#tf||!this.#dq)return 0;let i=this.#tf.defaultView.getComputedStyle(this.#dq);return this.#d7(e)+this.#d6()+(!0===t?2*parseInt(i.getPropertyValue("--ht-menu-vertical-padding"),10):0)}getInputController(){return this.#dQ}removeAllDropdownItems(){this.#dK&&(Array.from(this.#dK.children).forEach(e=>this.#d9(e)),this.#dJ.checkboxChangeListeners.clear(),this.#dK.replaceChildren())}disableCheckboxes(){this.#dJ.areCheckboxesDisabled=!0,this.#dK&&function({dropdownListElement:e}){e.querySelectorAll('input[type="checkbox"]:not(:checked)').forEach(e=>{e.dataset.disabled="true"})}({dropdownListElement:this.#dK})}enableCheckboxes(){this.#dJ.areCheckboxesDisabled=!1,this.#dK&&function({dropdownListElement:e}){e.querySelectorAll('input[type="checkbox"]').forEach(e=>{e.dataset.disabled="false"})}({dropdownListElement:this.#dK})}#d5(e){this.#dJ.currentlySelectedItemIndex=e,this.#dK&&function({dropdownListElement:e,index:t}){let i=e.children[t];if(i){let e=Cl(i);e&&e.focus()}}({dropdownListElement:this.#dK,index:e})}#d3(e,t){let{spaceAbove:i,spaceBelow:o,cellHeight:r}=e;return this.getHeight(!0)+t>o&&i>o+r}#d4(e){if(!this.#dq)return;let{cellHeight:t}=e;this.#dJ.flippedVertically?(this.#dq.style.position="absolute",this.#dq.style.top="auto",this.#dq.style.bottom=`${t+1}px`):(this.#dq.style.position="",this.#dq.style.top="",this.#dq.style.bottom="")}#d1(){if(!this.#tf||!this.#dq)return 0;let e=this.#tf.defaultView.getComputedStyle(this.#dq);return 2*parseInt(e.getPropertyValue("--ht-menu-item-vertical-padding"),10)+parseInt(e.getPropertyValue("--ht-line-height"),10)}#d2(){if(!this.#tf||!this.#dq)return 0;let{defaultView:e}=this.#tf,t=(t,i)=>{let o=e.getComputedStyle(t);return i.reduce((e,t)=>e+(parseFloat(o.getPropertyValue(t))||0),0)},i=t(this.#dq,["padding-top","padding-bottom","border-top-width","border-bottom-width"]);return this.#dK&&(i+=t(this.#dK,["padding-top","padding-bottom","margin-top","margin-bottom"])),i}#d7(e){let{entriesCount:t,visibleRowsNumberSetting:i}=this.#dJ,o=i&&i>0?Math.min(t,i):t;return(e?o:this.#dJ.actualRenderedItemsCount??t)*this.#d1()}#d6(){if(!this.#dQ?.enabled||!this.#dZ||!this.#dX||!this.#tf||!this.#dq)return 0;let e=this.#tf.defaultView.getComputedStyle(this.#dq);return this.#dZ.offsetHeight+(this.#dX.offsetHeight+2*parseInt(e.getPropertyValue("--ht-menu-vertical-padding"),10))}#d0({rootDocument:e,itemKey:t,itemValue:i,indexWithinList:o,checked:r=!1,disabled:n=!1}){if(!this.#dK||null===this.#dG)return;let s=function({rootDocument:e,instanceId:t,itemKey:i,itemValue:o,indexWithinList:r,checked:n=!1,disabled:s=!1,hotInstance:l}){let a=e.createElement("li"),h=e.createElement("div"),d=e.createElement("input"),u=e.createElement("label");return d.id=`${t}-${Cp}${r}`,d.type="checkbox",d.dataset.value=o,d.dataset.index=String(r),d.dataset.disabled=s&&!n?"true":"false",i&&(d.dataset.key=i),u.htmlFor=d.id,u.textContent=o,h.appendChild(d),h.appendChild(Ce(l,"checkbox")),h.appendChild(u),a.appendChild(h),a}({rootDocument:e,instanceId:this.#dG,itemKey:t,itemValue:i,indexWithinList:o,checked:r,disabled:n,hotInstance:this.#dj});r&&Cf(s),this.#ue(s),this.#dK.appendChild(s)}#ue(e){let t=Cl(e);if(!t||!this.#dK)return;let i=()=>{if("true"===t.dataset.disabled&&t.checked){t.checked=!1;return}t.checked?(Cf(e),this.runLocalHooks("afterDropdownItemChecked",t.dataset.key,t.dataset.value)):(Cw(e),this.runLocalHooks("afterDropdownItemUnchecked",t.dataset.key,t.dataset.value))},o=e=>{let i=iT(e);i!==t&&"true"!==t.dataset.disabled&&"LABEL"!==i.tagName&&(t.checked=!t.checked,t.dispatchEvent(new Event("change")))};this.#dJ.checkboxChangeListeners.set(t,{change:i,click:o}),this.#aR.addEventListener(t,"change",i),this.#aR.addEventListener(e,"click",o)}#d9(e){let t=Cl(e);if(!t)return;let i=this.#dJ.checkboxChangeListeners.get(t);i&&(this.#aR.removeEventListener(t,"change",i.change),this.#aR.removeEventListener(e,"click",i.click),this.#dJ.checkboxChangeListeners.delete(t))}#d8(){this.#dJ.visibleRowsNumberSetting=null,this.#dJ.entriesCount=0,this.#dJ.flippedVertically=!1,this.#dJ.currentlySelectedItemIndex=0,this.#dJ.checkboxChangeListeners.clear(),this.#dJ.areCheckboxesDisabled=!1,this.#dJ.sourceSortFunction=null}}tR(CS,dp);class Cv{selectedItems;maxSelectionsCount;constructor(e){Array.isArray(e)?this.selectedItems=new Set(e):this.selectedItems=new Set,this.maxSelectionsCount=1/0}setMaxSelectionCount(e){this.maxSelectionsCount=e}add(e){this.selectedItems.size>=this.maxSelectionsCount||(Array.isArray(e)?e.forEach(e=>this.selectedItems.add(e)):this.selectedItems.add(e))}remove(e){if(!tL(e))return this.selectedItems.delete(e);{let t=Array.from(this.selectedItems).find(t=>tx(t,e));if(void 0!==t)return this.selectedItems.delete(t),!0}return!1}has(e){return Ca(this.getItemsArray(),e)}clear(){this.selectedItems.clear()}getSize(){return this.selectedItems.size}getItemsArray(){return Array.from(this.selectedItems)}}let CR="multiselect",Cx="multiselectEditor";class CE extends r0{_closeAfterDataChange=!1;#ut=new Cv;#ui=null;isFlippedHorizontally=!1;dropdownContainerElement=null;dropdownController=null;#dd=!1;static get EDITOR_TYPE(){return CR}constructor(e){super(e),this.eventManager=new r2(this),this.createElements(),this.bindEvents()}createElements(){let{rootDocument:e}=this.hot;this.#ui=e.createElement("div"),this.#ui.style.display="none",iG(this.#ui,"handsontableEditor"),this.dropdownContainerElement=this.hot.rootDocument.createElement("div"),iG(this.dropdownContainerElement,"ht-multi-select-editor handsontableEditor"),iq(this.dropdownContainerElement,[P("Select options"),H()]),this.#ui.appendChild(this.dropdownContainerElement),this.hot.rootElement.appendChild(this.#ui),this.dropdownController=new CS(this.dropdownContainerElement,this.hot.guid,this.hot)}prepare(e,t,i,o,r,n){super.prepare(e,t,i,o,r,n);let s="string"==typeof r&&r9(r)?JSON.parse(r):r,l=ep(Array.isArray(s)?s:[s],this.#uo(),(e,t)=>JSON.stringify(e)===JSON.stringify(t));this.dropdownController.reset(),l.length>=this.#ur("maxSelections")&&this.#un(),this.#us(l),this.dropdownController.setSourceSortFunction(this.#ur("sourceSortFunction")??null),this.dropdownController.fillDropdown(this.#uo(),l),this.dropdownController.setVisibleRowsNumberSetting(this.#ur("visibleRows")),this.dropdownController.setSearchInputVisibility(this.#ur("searchInput")),this.dropdownController.refreshIcons(),void 0!==n.maxSelections&&this.#ut.setMaxSelectionCount(this.#ur("maxSelections"))}finishEditing(e,t,i){super.finishEditing(e,t,i)}bindEvents(){this.dropdownController.addLocalHook("afterDropdownItemChecked",(e,t)=>{this.#ul(e,t),this.#ut.getSize()>=this.#ur("maxSelections")&&this.#un()}),this.dropdownController.addLocalHook("afterDropdownItemUnchecked",(e,t)=>{this.#ua(e,t),this.#ut.getSize()<this.#ur("maxSelections")&&this.#uh()}),this.addHook("afterDestroy",()=>this.destroy()),this.addHook("afterChange",(e,t)=>this.#ud(e,t)),this.addHook("afterScrollHorizontally",()=>this.#uu()),this.addHook("afterScrollVertically",()=>this.#uu()),this.dropdownController.getInputController().addLocalHook("triggerFilter",e=>this.#uc(e))}open(e){let t=e&&"keyCode"in e?e.keyCode:0,i=e&&"key"in e?e.key:"";if(t&&rr(t)){let o=1===i.length?i:String.fromCharCode(t);this.dropdownController.getInputController().enabled&&(this.dropdownController.getInputController().setValue(o),this.#uc(o)),e?.preventDefault(),this.enableFullEditMode()}this.#ug(),this.dropdownController.updateDimensions(this.#up()),this.refreshDimensions(),this.hot.getShortcutManager().setActiveContextName("editor"),this.#um(),this.dropdownController.getInputController().listen(),this.#dc()}close(){this.#uf(),this.#uw(),this.dropdownController.getInputController().unlisten(),this.isFlippedHorizontally=!1}getValue(){return this.#ut.getItemsArray()}setValue(){}refreshDimensions(e=!0){let t=this.getEditedCellRect();if(!t)return void this.close();let{top:i,start:o,height:r,width:n}=t,s=this.hot.rootElement.getBoundingClientRect(),l=om(this.#ui),a=this.#ui.style,{spaceInlineStart:h,spaceInlineEnd:d}=this.#ub(t),u=this.dropdownController.getOuterWidth(),c=e?u>d&&h>d:this.isFlippedHorizontally;this.isFlippedHorizontally=c;let g=c?o-(u-n):o;a.position="fixed",a.top=`${s.top+i+r-l.top}px`,this.hot.isRtl()?(a.left="",a.right=`${l.left+l.width-s.right+g}px`):(a.right="",a.left=`${s.left+g-l.left}px`),iG(this.#ui,"ht_editor_visible")}focus(){!1===this.#ur("searchInput")?this.dropdownController.focusFirstItem():this.dropdownController.focusSearchInput()}getInputElement(){return this.dropdownController.getInputController().getInputElement()}destroy(){this.close(),this.dropdownController.reset(),this.eventManager.destroy()}#uo(){return this.cellProperties.source??[]}#um(){let e=this.hot.getShortcutManager().getContext("editor");e.addShortcuts([{keys:[["ArrowUp"]],callback:()=>{this.dropdownController.focusPreviousItem()}},{keys:[["ArrowDown"]],callback:()=>{oZ(this.hot.rootDocument)===this.getInputElement()?this.dropdownController.focusFirstItem():this.dropdownController.focusNextItem()}}],{group:Cx}),e.addShortcuts([{keys:[["enter"],["shift","enter"],["control/meta","enter"],["control/meta","shift","enter"]],runOnlyIf:()=>!this.#ur("enterCommits"),callback:e=>{let t=oZ(this.hot.rootDocument);return t instanceof HTMLInputElement&&"checkbox"===t.type&&(t.checked=!t.checked,t.dispatchEvent(new Event("change"))),e.preventDefault(),!1}},{keys:[["space"]],runOnlyIf:()=>!this.#ur("enterCommits"),callback:e=>{e.preventDefault()}}],{group:Cx,relativeToGroup:ml,position:"before"})}#uw(){this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(Cx)}#ug(){this.#ui.style.display=""}#uf(){this.#ui.style.display="none"}#un(){this.dropdownController.disableCheckboxes()}#uh(){this.dropdownController.enableCheckboxes()}#uc(e,t=this.#ur("filterSelectedItems")??!0){let i=this.cellProperties.locale,o=this.#uo().filter(o=>{let r="object"==typeof o&&null!==o&&"value"in o?o.value:o;return!!(!t&&this.#ut.has(o))||(this.cellProperties.filteringCaseSensitive?String(r).includes(e):nu(String(r),i).includes(nu(e,i)))});this.dropdownController.fillDropdown(o,this.#ut.getItemsArray()),this.dropdownController.updateDimensions(this.#up(),!0),this.refreshDimensions(!1)}#uu(){if(this.isOpened()&&this.getEditedCell()){let e=this.dropdownContainerElement,{scrollTop:t}=e;this.dropdownController.updateDimensions(this.#up()),e.scrollTop=t}this.refreshDimensions()}#dc(){if(this.#dd)return;let e=e=>{if(this.hot.isDestroyed||!this.hot.rootElement||!this.isOpened())return;let t=e?.target;oG(t)&&this.hot.rootElement.contains(t)||this.#uu()};this.eventManager.addEventListener(this.hot.rootDocument,"scroll",e,{capture:!0,passive:!0}),this.eventManager.addEventListener(this.hot.rootWindow,"resize",()=>e(),{passive:!0}),this.#dd=!0}#up(){let e=this.getEditedCell().getBoundingClientRect(),{spaceAbove:t,spaceBelow:i}=bv(e,om(this.#ui),this.hot.rootDocument.documentElement.clientHeight);return{spaceAbove:t,spaceBelow:i,cellHeight:e.height}}#ub(e){var t;let i,o,{view:r}=this.hot,n=r.isHorizontallyScrollableByWindow()?by(this.hot):void 0;return t=r.getWorkspaceWidth(),i=e.start+e.width,o=t,n&&(i=Math.max(i+n.inlineStartOffset,0),o=n.viewportWidth),{spaceInlineStart:i,spaceInlineEnd:o-i+e.width}}#uC(){let e=this.#ut.getItemsArray();this.saveValue([[e]])}#ul(e,t){e?this.#ut.add({key:e,value:t}):this.#ut.add(t),this.#uC(),this.refreshDimensions(!1)}#ua(e,t){e?this.#ut.remove({key:e,value:t}):this.#ut.remove(t),this.#uC(),this.refreshDimensions(!1)}#us(e){e.length>0?this.#ut=new Cv(e):this.#ut=new Cv}#ur(e){return this.cellProperties[e]}#ud(e,t){this.isOpened()&&t===`${CR}-renderer`&&Array.isArray(e)&&e.length>0&&e[0][0]===this.cellProperties.visualRow&&this.hot.propToCol(e[0][1])===this.cellProperties.visualCol&&(this.#us(e[0][3]),this.dropdownController.fillDropdown(this.#uo(),this.#ut.getItemsArray()),this.dropdownController.focusItem(0),this.#ut.getSize()>=this.#ur("maxSelections")?this.#un():this.#uh())}}function CM(e,t,i,o,r,n,s){i1(t,null==n?"":n,!1)}function Ck(e,t,i,o,r,n,s){let{rootDocument:l}=e,a=s.allowHtml?CM:bf,h=l.createElement("DIV"),d=e.getSettings().ariaTags;h.className="htAutocompleteArrow",d&&h.setAttribute(...L()),h.appendChild(l.createTextNode(String.fromCharCode(9660))),h.appendChild(Ce(e,"selectArrow")),a.apply(this,[e,t,i,o,r,n,s]);let u=i6(t);if(u.firstChild||u.appendChild(l.createTextNode(String.fromCharCode(160))),u.insertBefore(h,u.firstChild),iG(t,"htAutocomplete"),!e.acArrowListener){let r=new r2(e);e.acArrowListener=function(r){!rd(r)&&rc(r)&&null!==iT(r).closest(".htAutocompleteArrow")&&e.view._wt.getSetting("onCellDblClick",null,e._createCellCoords(i,o),t)},r.addEventListener(e.rootElement,"mousedown",e.acArrowListener),e.addHookOnce("afterDestroy",()=>{r.destroy()})}}function CI(e,t,i,o,r,n,s){Ck.apply(this,[e,t,i,o,r,n,s])}function CT(e){return"checkbox"===e.type}function CA(e){return{checked:void 0===e.checkedTemplate||e.checkedTemplate,unchecked:void 0!==e.uncheckedTemplate&&e.uncheckedTemplate}}function CH(e,t){let i=CA(t),o="string"==typeof t.locale?t.locale:void 0,r=nu(e$(e),o),n=e=>r===nu(e$(e),o);return e===i.checked?"checked":e===i.unchecked?"unchecked":n(i.checked)?"checked":n(i.unchecked)?"unchecked":null}function CO(e,t){return"checked"===CH(e,t)}function CD(e,t,i){let o=e.toVisualRow(t);if(null!==o)return e.getCellMetaTransient(o,i);let r=e.toPhysicalColumn(i)??i;return e._getMetaManager().getCellMetaTransient(t,r,{visualRow:t,visualColumn:i})}function CP(e,t,i,o,r){let n=e.colToProp(t)??t,s=[],l=[];return i.forEach(i=>{let r=e.toVisualRow(i),a=CD(e,i,t);if(a.readOnly||!CT(a)||CO(null===r?e.getSourceDataAtCell(i,n):e.getDataAtCell(r,t),a)===o)return;let h=CA(a),d=o?h.checked:h.unchecked;null===r?l.push([i,d]):s.push([r,t,d])}),s.length>0&&e.setDataAtCell(s,r),l.length>0&&e.setSourceDataAtCell(l.map(([e,t])=>[e,n,t]),0,null,r),s.length+l.length}CM.RENDERER_TYPE="html",Ck.RENDERER_TYPE="autocomplete",CI.RENDERER_TYPE="dropdown";let C_="#bad-value#",CF="ht-loading",CN=new WeakMap,CL=new WeakMap,CB="data-row",CV="data-col",Cz="checkbox";function CW(e,t,i,o,r,n,s){let l,a,h,d,{rootDocument:u}=e,c=e.getSettings().ariaTags;!function(e){let t=CL.get(e);if(!t){let{rootElement:i}=e;(t=new r2(e)).addEventListener(i,"click",t=>(function(e,t){let i=iT(e);if(!CU(i)||!i.hasAttribute(CB)||!i.hasAttribute(CV))return;let o=Number.parseInt(i.getAttribute(CB),10),r=Number.parseInt(i.getAttribute(CV),10),n=t.getCellMetaTransient(o,r);(n.readOnly||!C$(n))&&e.preventDefault()})(t,e)),t.addEventListener(i,"mouseup",t=>{var i,o;let r;return i=t,o=e,void(!CU(r=iT(i))||r.hasAttribute(CB)&&r.hasAttribute(CV)&&setTimeout(o.listen,10))}),t.addEventListener(i,"change",t=>(function(e,t){let i=iT(e);if(!CU(i)||!i.hasAttribute(CB)||!i.hasAttribute(CV))return;let o=Number.parseInt(i.getAttribute(CB),10),r=Number.parseInt(i.getAttribute(CV),10),n=t.getCellMetaTransient(o,r);if(!n.readOnly&&C$(n)){let e=null;e=i.checked?void 0===n.uncheckedTemplate||n.checkedTemplate:void 0!==n.uncheckedTemplate&&n.uncheckedTemplate,t.setDataAtCell(o,r,e)}})(t,e)),CL.set(e,t)}}(e);let g=((l=u.createElement("input")).className="htCheckboxRendererInput",l.type="checkbox",l.setAttribute("tabindex","-1"),l.cloneNode(!1)),p=g,m=g,f=s.label,w=!1;void 0===s.checkedTemplate&&(s.checkedTemplate=!0),void 0===s.uncheckedTemplate&&(s.uncheckedTemplate=!1);let b=i6(t);iX(b),"checked"===(a=CH(n,s))?(g.checked=!0,g.defaultChecked=!0):"unchecked"===a?g.checked=!1:ej(n)?iG(g,"noValue"):(g.style.display="none",iG(g,"htBadValue"),w=!0),iq(g,[[CB,i],[CV,o]]),C$(s)||!1===s.readOnlyStyling||(g.disabled=!0),c&&iq(g,[P(g.checked?e.getTranslatedPhrase(cA):e.getTranslatedPhrase(cH)),K(g.checked),["role","checkbox"]]),w||(((h=u.createElement("span")).className="htCheckboxRendererBox",p=h).appendChild(g),p.appendChild(Ce(e,"checkbox")),m=p),function(){if(!w&&f){let t="";if(f.value){let e=f.value;t="function"==typeof f.value?String(e(i,o,r,n)):String(f.value)}else if(f.property){let o=e.getDataAtRowProp(i,String(f.property));t=null!==o?String(o):""}let s=function(e,t,i){let o=e.createElement("label");o.className=`htCheckboxRendererLabel ${i?"fullWidth":""}`;let r=e.createTextNode(t);if(i){let t=e.createElement("span");t.className="htCheckboxRendererLabelText",t.appendChild(r),o.appendChild(t)}else o.appendChild(r);return o.cloneNode(!0)}(u,t,!0!==f.separated);"before"===f.position?f.separated?(b.appendChild(s),b.appendChild(p)):(s.appendChild(p),m=s):f.position&&"after"!==f.position||(f.separated?(b.appendChild(p),b.appendChild(s)):(s.insertBefore(p,s.firstChild),m=s))}}();function C(t=!1,i=!1){let o=e.getSelectedRange(),r=[],n=new Map,s=[],l=0;if(o){for(let i=0;i<o.length;i++){let{row:a,col:h}=o[i].getTopStartCorner(),{row:d,col:u}=o[i].getBottomEndCorner();if(!(null===a||null===h||null===d||null===u||o[i].isHeader())){for(let i=a;i<=d;i+=1)for(let o=h;o<=u;o+=1){let a=e.getCellMetaTransient(i,o);if(a.hidden)continue;let h={checkedTemplate:a.checkedTemplate,uncheckedTemplate:a.uncheckedTemplate};if("checkbox"!==a.type){!0!==t||a.readOnly||(n.has(r.length)?n.set(r.length,[...n.get(r.length),[i,o,null]]):n.set(r.length,[[i,o,null]]));continue}if(!0===a.readOnly||!C$(a))continue;void 0===a.checkedTemplate&&(a.checkedTemplate=!0),void 0===a.uncheckedTemplate&&(a.uncheckedTemplate=!1);let d=e.getDataAtCell(i,o);if(!1===t){let e=null==d?"unchecked":CH(d,a);"checked"===e?s.push([i,o,a.uncheckedTemplate,h]):"unchecked"===e&&s.push([i,o,a.checkedTemplate,h])}else s.push([i,o,a.uncheckedTemplate,h]);l+=1}r.push(l),l=0}}if((s=s.every(([,,e])=>e===s[0][2])?s.map(([e,t,i])=>[e,t,i]):s.map(([e,t,,i])=>[e,t,i?.checkedTemplate])).length>0||n.size>0&&i){let i=[];if(r.forEach((e,t)=>{let o=s.splice(0,e);n.size&&n.has(t)&&(o=[...o,...n.get(t)??[]]),i.push(o)}),t){let t=[];i.forEach(e=>{e.forEach(e=>{t.push(e)})}),t.length>0&&e.setDataAtCell(t)}else i.forEach(t=>{t.length>0&&e.setDataAtCell(t)})}}}function y(){let t=e.getSelectedRange();if(t){for(let i=0;i<t.length;i++){let o=t[i].getTopStartCorner(),r=t[i].getBottomEndCorner();if(!(null===o.row||null===o.col||null===r.row||null===r.col||t[i].isHeader()))for(let t=o.row;t<=r.row;t++)for(let i=o.col;i<=r.col;i++){let o=e.getCellMetaTransient(t,i);if(o.readOnly)continue;if("checkbox"===o.type)return!0;let r=e.getCell(t,i);if(oG(r)&&r.querySelectorAll("input[type=checkbox]").length>0)return!0}}return!1}}f&&(!f||f.separated)||b.appendChild(m),w&&b.appendChild(u.createTextNode(C_)),CN.has(e)||(CN.set(e,!0),d=e.getShortcutManager().getContext("grid"),d?.addShortcuts([{keys:[["space"]],callback:()=>(C(),!y()),runOnlyIf:()=>{let t;return md(e)&&!!(t=e.getSelectedRangeActive())&&!t.isHeader()}},{keys:[["enter"]],callback:()=>(C(),!y()),runOnlyIf:()=>{let t=e.getSelectedRangeActive();return md(e)&&!!(e.getSettings().enterBeginsEditing&&t?.highlight.isCell()&&!e.selection.isMultiple())}},{keys:[["delete"],["backspace"]],callback:()=>{let e=y();return C(!0,e),!e},runOnlyIf:()=>md(e)&&!!e.getSelectedRangeActive()?.highlight.isCell()}],{group:"checkboxRenderer",relativeToGroup:ml,position:"before"}))}function C$(e){return!1!==e.editor&&null!==e.editor}function CU(e){return"INPUT"===e.tagName&&"checkbox"===e.getAttribute("type")}function CG(e,t,i,o,r,n,s){Ck.apply(this,[e,t,i,o,r,n,s])}rI.getSingleton().add("modifyAutoColumnSizeSeed",function(e,t,i){let{label:o,type:r,row:n,column:s,prop:l}=t;if(r!==Cz||!o)return;let{value:a,property:h}=o,d=i;if(a)d="function"==typeof a?a(n,s,l,i):a;else if(h){let e=this.getDataAtRowProp(n,String(h));d=null!==e?e:i}return`${e$(d).length}`}),CW.RENDERER_TYPE=Cz,CG.RENDERER_TYPE="handsontable";let Cj={year:"numeric",month:"2-digit",day:"2-digit"},Cq=new WeakSet;function CK(e,t){let{dateFormat:i,locale:o,allowEmpty:r,instance:n}=t;if(ej(e))return r?e:C_;if("string"==typeof i)return n&&!Cq.has(n)&&(Cq.add(n),ir("The dateFormat option as a string is not supported. Use an Intl.DateTimeFormatOptions object instead.")),e;let s=bD(e);return null===s?C_:bY(o,tM(i)?i:Cj,s)}function CY(e,t,i,o,r,n,s){bf.apply(this,[e,t,i,o,r,n,s])}function CX(e,t,i,o,r,n,s){CY.apply(this,[e,t,i,o,r,n,s])}CY.valueFormatter=CK,CY.RENDERER_TYPE="date",CX.valueFormatter=CK,CX.RENDERER_TYPE="intl-date";let CZ={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1},CQ=new WeakSet;function CJ(e,t){let{dateTimeFormat:i,locale:o,allowEmpty:r,instance:n}=t;if(ej(e))return r?e:C_;if("string"==typeof i)return n&&!CQ.has(n)&&(CQ.add(n),ir("The dateTimeFormat option as a string is not supported. Use an Intl.DateTimeFormatOptions object instead.")),e;let s=bz(e);return null===s?C_:bY(o,tM(i)?i:CZ,s)}function C0(e,t,i,o,r,n,s){bf.apply(this,[e,t,i,o,r,n,s])}C0.valueFormatter=CJ,C0.RENDERER_TYPE="intl-datetime";let C1={hour:"numeric",minute:"2-digit"},C2=new WeakSet;function C3(e,t){let{timeFormat:i,locale:o,allowEmpty:r,instance:n}=t;if(ej(e))return r?e:C_;let s=bL(e);return null===s?C_:("string"==typeof i&&n&&!C2.has(n)&&(C2.add(n),ir("The timeFormat option as a string is not supported. Use an Intl.DateTimeFormatOptions object instead.")),bK(o,tM(i)?i:C1).format(s))}function C6(e,t,i,o,r,n,s){bf.apply(this,[e,t,i,o,r,n,s]),t.dir="ltr"}function C4(e,t,i,o,r,n,s){C6.apply(this,[e,t,i,o,r,n,s])}C6.valueFormatter=C3,C6.RENDERER_TYPE="time",C4.RENDERER_TYPE="intl-time";let C5={useGrouping:!1,maximumFractionDigits:20},C8=new Map,C7=new WeakSet;function C9(e,t){return nH(e)&&(e=function(e,t){let{numericFormat:i,locale:o}=t,r=i??C5,n=`${o??""}:${JSON.stringify(r)}`,s=C8.get(n);return void 0===s&&(s=new Intl.NumberFormat(o,r),C8.set(n,s)),s.format(e)}(e,t)),e}function ye(e,t,i,o,r,n,s){let l=s.numericFormat;if(l?.pattern!==void 0||l?.culture!==void 0){let e=s.instance;C7.has(e)||(C7.add(e),ir("The numericFormat.pattern and numericFormat.culture options are not supported. Use Intl.NumberFormat options instead (numericFormat: { style, currency, ... })."))}let a=iW(s.className),h=[];0>a.indexOf("htLeft")&&0>a.indexOf("htCenter")&&0>a.indexOf("htRight")&&0>a.indexOf("htJustify")&&(a.push("htRight"),h.push("htRight")),0>a.indexOf("htNumeric")&&(a.push("htNumeric"),h.push("htNumeric")),h.length>0&&(s.className=a.join(" "),function(e,t){if(0===t.length)return;let i=py.get(e);void 0===i?py.set(e,t):t.forEach(e=>{i.includes(e)||i.push(e)})}(s,h)),t.dir="ltr",bf.apply(this,[e,t,i,o,r,n,s])}function yt(e,t){let i=t.hashLength||e$(e).length,o=String(t.hashSymbol??"*"),r="";for(let e=0;e<i;e++)r+=o;return r}function yi(e,t,i,o,r,n){i1(t,n,nw(e),"password",e.rootElement)}function yo(e,t,i,o,r,n,s){bf.apply(this,[e,t,i,o,r,n,s])}function yr(e,t){yn(this,e,t,!!this.strict)}function yn(e,t,i,o){let r=e=>bE(e)?r(e.key)&&r(e.value):null==e,n=t;(r(n)&&(n=""),""===n)?i(!!e.allowEmpty):o&&e.source?"function"==typeof e.source?e.source(n,ys(n,i)):ys(n,i)(e.source):i(!0)}function ys(e,t){return function(i){let o=!1;for(let t=0,r=i.length;t<r;t++)if(tx(e,i[t])){o=!0;break}t(o)}}function yl(e,t){t(null!==CH(e,this)||ej(e)&&!1!==this.allowEmpty)}function ya(e,t){return!!(t.allowEmpty&&ej(e)||"string"==typeof e&&e.startsWith("="))||bF(e)}function yh(e,t){t(!!(this.allowEmpty&&ej(e))||bF(e))}function yd(e,t){yn(this,e,t,!0)}function yu(e,t){yh.call(this,e,t)}function yc(e,t){return!!(t.allowEmpty&&ej(e)||"string"==typeof e&&e.startsWith("="))||bW(e)}function yg(e,t){t(!!(this.allowEmpty&&ej(e))||bW(e))}function yp(e,t){return!!(t.allowEmpty&&ej(e)||"string"==typeof e&&e.startsWith("="))||bB(e)}function ym(e,t){t(!!(this.allowEmpty&&ej(e))||bB(e))}function yf(e,t){ym.call(this,e,t)}function yw(e,t){let i=e;(null==i&&(i=""),this.allowEmpty&&""===i)?t(!0):(this.allowEmpty||""!==i)&&Array.isArray(i)?0===i.length?t(!0):this.source?"function"==typeof this.source?this.source(i,yb(i,t)):yb(i,t)(this.source):t(!0):t(!1)}function yb(e,t){return function(i){let o=!0;for(let t=0,r=e.length;t<r;t++){let r=!1;for(let o=0,n=i.length;o<n;o++)if(tL(e[t])&&!tL(i[o])||!tL(e[t])&&tL(i[o])){r=!1;break}else tL(e[t])&&tL(i[o])&&tx(e[t],i[o])?r=!0:"string"==typeof e[t]&&"string"==typeof i[o]&&e[t]===i[o]&&(r=!0);if(!r){o=!1;break}}t(o)}}function yC(e,t){let i=e;null==i&&(i=""),t(!!this.allowEmpty&&""===i||""!==i&&nH(e))}function yy(e,t,i,o){return tM(e)&&void 0!==e.value?bM(e.value,o?.sourceLabel):e}function yS(e,t,i,o,r){var n;if(bE(e)||"string"==typeof r&&r.startsWith("UndoRedo."))return e;if(!ej(e)&&Array.isArray(n=o?.source)&&n.some(bE)){let t=bI(o?.source,e,o?.allowHtml===!0,o?.sourceLabel);if(bE(t))return t}let s=this.getSourceDataAtCell(this.toPhysicalRow(t),this.toPhysicalColumn(i));return!ej(e)&&bE(s)?{key:e,value:e}:e}ye.valueFormatter=C9,ye.RENDERER_TYPE="numeric",yi.valueFormatter=yt,yi.RENDERER_TYPE="password",yo.RENDERER_TYPE="select",yr.VALIDATOR_TYPE="autocomplete",yl.VALIDATOR_TYPE="checkbox",ya.rowIndependent=!0,yh.VALIDATOR_TYPE="date",yd.VALIDATOR_TYPE="dropdown",yu.VALIDATOR_TYPE="intl-date",yc.rowIndependent=!0,yg.VALIDATOR_TYPE="intl-datetime",yp.rowIndependent=!0,ym.VALIDATOR_TYPE="time",yf.VALIDATOR_TYPE="intl-time",yw.VALIDATOR_TYPE="multiselect",yC.VALIDATOR_TYPE="numeric";let yv="ht-multi-select",yR=`${yv}-chip`,yx=`${yv}-chip-remove`,yE=`${yv}-arrow`,yM=`${yv}-chip-label`,yk=`${yv}-overflow`,yI=new WeakSet,yT=new WeakMap,yA=new WeakMap,yH=new WeakMap;function yO(e){return!e.readOnly&&!1!==e.editor&&null!==e.editor}function yD(e){let t=iT(e);return t&&null!==t.closest(`.${yx}`)?t.closest(`.${yR}`):null}function yP(e,t){let{row:i,col:o}=t.dataset;return void 0!==i&&void 0!==o&&yO(e.getCellMetaTransient(Number(i),Number(o)))}function y_(e,t){return tL(e)?e[t]:e}function yF(e){if(null==e||""===e)return[];if(Array.isArray(e))return e;if("string"==typeof e)try{let t=JSON.parse(e);return Array.isArray(t)?t:[t]}catch{return e.trim()?[e]:[]}return[e]}function yN(e,t,i,o,r){var n;let s,l=i6(t);l.insertBefore((n=e.rootDocument,iG(s=n.createElement("span"),yE),s.dataset.row=String(i),s.dataset.col=String(o),r&&s.setAttribute(...L()),s.appendChild(Ce(e,"selectArrow")),s),l.firstChild),function(e){if(yH.has(e))return;let t=new r2(e);yH.set(e,t),e.addHookOnce("afterDestroy",()=>{t.destroy(),yH.delete(e)}),t.addEventListener(e.rootElement,"mousedown",t=>{let i=iT(t);if(!oG(i)||!iU(i,yE)||!rc(t)||rd(t))return;let o=Number(i.dataset.row),r=Number(i.dataset.col),n=i.closest("td");e.view._wt.getSetting("onCellDblClick",null,e._createCellCoords(o,r),n)})}(e)}function yL(e){return Array.isArray(e)?ew(e.map(e=>tL(e)?e.value:e),", "):e}let yB={CELL_TYPE:"multiselect",_complexDataFormat:!0,editor:CE,renderer:function(e,t,i,o,r,n,s){bs(e,t,i,o,r,n,s);let{rootDocument:l}=e,a=e.getSettings().ariaTags??!1,h=n;if(ej(h)&&s.placeholder){i2(t,h=e$(h=s.placeholder)),yN(e,t,i,o,a);return}let d=e.toPhysicalRow(i),u=yF(e.getSourceDataAtCell(d,o)),c=i6(t);if(iX(c),iG(t,"ht-multi-select-renderer"),0===u.length){c.appendChild(l.createTextNode("")),yN(e,t,i,o,a);return}let g=l.createElement("div");g.className="ht-multi-select-chips-container";let p=yO(s)||!1===s.readOnlyStyling;u.forEach(t=>{let n=function(e,t,i,o,r,n,s,l=!0){let a=e.createElement("span"),h=y_(t,"value");iG(a,yR),a.dataset.row=String(o),a.dataset.col=String(r),a.dataset.prop=String(n),a.title=h;let d=e.createElement("span");if(iG(d,yM),d.textContent=h,a.appendChild(d),a.dataset.key=y_(t,"key"),!l)return a;let u=e.createElement("span");return iG(u,yx),i&&u.setAttribute(...L()),u.appendChild(Ce(s,"chipClose")),a.appendChild(u),a}(l,t,a,i,o,r,e,p);g.appendChild(n)}),c.appendChild(g),yA.has(e)||(yA.set(e,new r2(e)),yA.get(e).addEventListener(e.rootElement,"click",t=>{var i,o;let r=yD(t);if(!r||(t.preventDefault(),t.stopPropagation(),!yP(e,r)))return;let n=Number(r.dataset.row??0),s=Number(r.dataset.col??0),l=e.toPhysicalRow(n),a=e.getSourceDataAtCell(l,s),h=r.dataset.key,d=(i=yF(a),o=h,i.filter(e=>y_(e,"key")!==o));e.setDataAtCell(n,s,d,"multiselect-renderer")}),e.addHook("beforeOnCellMouseDown",t=>{let i=yD(t);null!==i&&yP(e,i)&&rh(t)})),yN(e,t,i,o,a),function(e,t,i){let o=null===e?null:e-function(e,t){let i=e.parentElement.querySelector(`.${yE}`);if(!i)return 0;let o=t.defaultView.getComputedStyle(i);return i.offsetWidth+(parseFloat(o.marginLeft)||0)+(parseFloat(o.marginRight)||0)}(t,i),r=t.querySelectorAll(`.${yR}`);for(let e=0;e<r.length;e++)r[e].style.display="";if(null===o||0===r.length)return;let n=t.querySelector(`.${yk}`);if(n)n.style.display="",n.style.visibility="hidden";else{var s;let e;s=r.length,iG(e=i.createElement("span"),yk),e.textContent=`+${s}`,(n=e).style.visibility="hidden",t.appendChild(n)}let l=parseFloat(i.defaultView.getComputedStyle(t).gap)||0,a=n.offsetWidth,h=0,d=0;for(let e=0;e<r.length;e++){let t=h+r[e].offsetWidth+(e<r.length-1?l:0);if(t<=o-(e<r.length-1?a+l:0))h=t,d+=1;else break}let u=r.length-d;if(u>0){for(let e=d;e<r.length;e++)r[e].style.display="none";n.textContent=`+${u}`,n.style.visibility="visible"}else n.style.display="none"}(function(e,t){let i=e.getColWidth(t);if(yT.has(e)){let o=yT.get(e);o[t]?.width!==i&&yT.set(e,{...o,[t]:{width:i}})}else yT.set(e,{[t]:{width:i}});return yI.has(e)||(e.addHook("beforeColumnResize",(...t)=>{let i=t[0],o=t[1],r=yT.get(e);r?.[o]?.width!==i&&yT.set(e,{...r,[o]:{width:i}})}),yI.add(e)),yT.get(e)?.[t]?.width??i}(e,o),g,l)},validator:yw,valueGetter:yL,valueSetter:function(e,t,i){if(Array.isArray(e)){let o=this.getSourceDataAtCell(this.toPhysicalRow(t),i);if(Array.isArray(o)&&o.length>0&&tL(o[0]))return e.map(e=>tL(e)?e:{key:e,value:e})}return e},parsePastedValue:!0};class yV{#uy;#uS;#uv=null;#uR=!1;#ux=!1;constructor(e,t){this.#uy=e,this.#uS=t}isLive(){return!this.#ux&&this.#uS()}isStarted(){return this.#uR}start(e){this.#uR=!0,this.#uv=e,this.#uy(this.release)}release=()=>{if(this.#ux)return;this.#ux=!0;let e=this.#uv;this.#uv=null,e?.()}}class yz{#uE=[];#uM=0;#tL=0;#uk=!1;#uI;constructor(e){this.#uI=e}push(e){this.#uE.push(e),this.pump()}pump(){if(!this.#uk){this.#uk=!0;try{for(;this.#uM<this.#uE.length&&this.#tL<this.#uI();){let e=this.#uE[this.#uM];this.#uM+=1,e.isLive()&&(this.#tL+=1,e.start(this.#uv))}}finally{this.#uk=!1,this.#uM===this.#uE.length?this.clear():this.#uM>1024&&2*this.#uM>this.#uE.length&&(this.#uE=this.#uE.slice(this.#uM),this.#uM=0)}}}clear(){this.#uE=[],this.#uM=0}#uv=()=>{this.#tL-=1,this.pump()}}function yW(e){return"string"==typeof e||"number"==typeof e}function y$(e){let t=[],i=[],o=new Set,r=new Set;return en(e,e=>{nF(Math.min(e.startRow,e.endRow),Math.max(e.startRow,e.endRow),e=>{o.has(e)||(o.add(e),t.push(e))}),nF(Math.min(e.startCol,e.endCol),Math.max(e.startCol,e.endCol),e=>{r.has(e)||(r.add(e),i.push(e))})}),{rows:t,columns:i}}let yU="htAsyncIndicator",yG="htAsyncErrorMessage",yj="htAsyncPendingMessage",yq="htAsyncErrorMarker",yK=[yU,yG,yj,yq],yY="data-ht-async";function yX(e,t,i){let o=e.createElement("span");return o.className=t,""===i?o.setAttribute("aria-hidden","true"):o.textContent=i,o}let yZ=Object.freeze({capability:"feat:async_values",name:"Async values",gate:"enable",tiers:Object.freeze(["standard","professional"])}),yQ="asyncValues",yJ="AsyncValues.resolve",y0=Symbol("vetoed");sw(yQ,"nestedRows");let y1=new Set(["auto","UndoRedo.undo","UndoRedo.redo"]);function y2(e){return e.state.physicalRow}class y3 extends sI{static get PLUGIN_KEY(){return yQ}static get PLUGIN_PRIORITY(){return 340}static get LICENSE(){return yZ}static get DEFAULT_SETTINGS(){return{flush:"microtask",concurrency:6,copyPendingAs:"previous",saveToDataProvider:!1}}static get SETTINGS_VALIDATORS(){return{flush:e=>"microtask"===e||"frame"===e||"number"==typeof e&&e>=0&&Number.isFinite(e),concurrency:e=>e===1/0||Number.isInteger(e)&&e>=1,copyPendingAs:e=>"previous"===e||"empty"===e,saveToDataProvider:e=>"boolean"==typeof e}}#uT=null;#uA=new Set;#o2=new Set;#uH=0;#uO=!1;#uD=0;#hD=[];#uP=new yz(()=>this.getSetting("concurrency")??6);#u_=null;#uF=!1;#uN=!1;#uL=[];#uB=!1;#uV=null;#uz=0;#uW=new Map;#u$=!1;#uU=[];#iR=null;#uG=!1;#uj=0;#uq=0;#uK=null;#uY=new WeakMap;#uX=new WeakMap;#uZ=!1;isEnabled(){return!!this.hot.getSettings()[yQ]}enablePlugin(){this.enabled||(this.#uT=this.hot.rowIndexMapper.createAndRegisterIndexMap(this.pluginName,"physicalIndexToValue",null),this.addHook("afterGetCellMeta",this.#uQ),this.addHook("afterRenderer",this.#uJ),this.addHook("beforeCopy",this.#u0),this.addHook("beforeCut",this.#u0),this.addHook("afterChange",this.#ud,-1),this.addHook("afterSetSourceDataAtCell",this.#u1,-1),this.addHook("beforeChange",this.#u2),this.addHook("afterSetDataAtRowProp",this.#u3),this.addHook("beforeValidate",this.#u6),this.addHook("postAfterValidate",this.#u4),this.hot._addDroppedChangesListener(this.#u5),this.addHook("afterCreateRow",this.#u8,-1),this.addHook("afterRemoveRow",this.#u8,-1),this.addHook("afterCreateCol",this.#u7),this.addHook("afterRemoveCol",this.#u9),this.addHook("beforeLoadData",this.#hQ),this.addHook("beforeUpdateData",this.#ce),this.addHook("afterLoadData",this.#ct,-1),this.addHook("afterUpdateData",this.#ci,-1),this.hot.rowIndexMapper.addLocalHook("init",this.#co),this.hot.rowIndexMapper.addLocalHook("cacheUpdated",this.#cr),this.#uj=this.hot.rowIndexMapper.getNumberOfIndexes(),super.enablePlugin())}updatePlugin(){this.#uP.pump(),super.updatePlugin()}disablePlugin(){let e=null;if(this.#o2.size>0){this.#uF=!0;try{this.#cn("disabled")}catch(t){e={error:t}}finally{this.#uF=!1}this.hot.markAllCellsChanged(),this.hot.render()}if(this.#u_?.(),this.#u_=null,this.#hD=[],this.#uW.clear(),this.#uP.clear(),this.#uA.clear(),this.#uN=!1,this.#uL=[],this.hot.rowIndexMapper.removeLocalHook("init",this.#co),this.hot.rowIndexMapper.removeLocalHook("cacheUpdated",this.#cr),this.hot._removeDroppedChangesListener(this.#u5),this.#cs(),this.#cl(),this.#uT&&(this.hot.rowIndexMapper.unregisterMap(this.pluginName),this.#uT=null),super.disablePlugin(),e)throw e.error}setAsyncValue(e,t,i,o={}){return this.setAsyncValueAt({row:e,column:t},i,o)}setAsyncValueAt(e,t,i={}){let o;this.#ca();let r=this.#ch(e);r||tf(`The cell ${JSON.stringify(e)} cannot hold an async value.`);let n=this.#cd(i);try{o=this.#cu(r,t,n)}finally{this.#cc(n)}return o}setAsyncValues(e,t,i,o,r,n={}){this.#ca();let s=[];for(let r=Math.min(e,i);r<=Math.max(e,i);r++)for(let n=Math.min(t,o);n<=Math.max(t,o);n++){let l=this.#ch({row:r,column:n});l||tf(`The range (${e}, ${t}) - (${i}, ${o}) cannot hold async values.`),s.push(l)}return this.#cg(s,r,n)}setAsyncValuesForRows(e,t,i,o={}){return this.#ca(),this.#cg(this.#cp(e,t),i,o)}setAsyncValuesInBatches(e,t,i,o={}){this.#ca();let r=this.#cp(e,t),n=this.#cd(o),s=[];try{s=this.#cm(r,i,n)}finally{this.#cc(n)}return Promise.all(s)}cancel(e,t){this.cancelAt({row:e,column:t})}cancelAt(e){let t=this.#cf(e);t&&(this.#cw(t,"manual"),this.hot.render())}cancelAll(){this.#o2.size>0&&(this.#cn("manual"),this.hot.render())}retry(e,t){return this.retryAt({row:e,column:t})}retryAt(e){let t=this.#cf(e);return t&&"error"===t.status&&t.origin?this.#cb([t])[0]:null}retryErrors(){let e=[...this.#o2].filter(e=>"error"===e.status&&e.origin);return Promise.all(e.length>0?this.#cb(e):[])}getAsyncState(e,t){return this.getAsyncStateAt({row:e,column:t})}getAsyncStateAt(e){let t=this.#cf(e);return t?"pending"===t.status?{status:"pending"}:{status:"error",error:t.error,message:t.message}:null}isPending(e,t){return this.#cf({row:e,column:t})?.status==="pending"}isPendingAt(e){return this.#cf(e)?.status==="pending"}getPendingCells(){return this.#cC("pending")}getErrorCells(){return this.#cC("error")}countPending(){return this.#uH}countErrors(){return this.#o2.size-this.#uH}destroy(){let e=[...this.#o2];null!==this.#iR&&(this.hot.rootWindow.cancelAnimationFrame(this.#iR),this.#iR=null),this.hot.rowIndexMapper.removeLocalHook("init",this.#co),this.hot.rowIndexMapper.removeLocalHook("cacheUpdated",this.#cr),this.hot._removeDroppedChangesListener(this.#u5),this.#u_?.(),this.#u_=null,this.#o2.clear(),this.#uA.clear(),this.#hD=[],this.#uP.clear(),this.#uT=null,e.forEach(e=>{"pending"===e.status&&(e.controller?.abort(),e.batch?.controller.abort(),e.controller=null,e.settle({status:"canceled",reason:"disabled"}))}),super.destroy()}#cl(){this.#uZ&&(this.#uZ=!1,this.hot.getCellsMeta().forEach(e=>{t_(e,"asyncState")&&null!==e.asyncState&&(e.asyncState=null,e.asyncError=null)}))}#ca(){this.#uF||this.enabled&&this.#uT||tf("The AsyncValues plugin is not enabled.")}#cd(e){let t=e.batchSize;return{options:{dependsOn:[...e.dependsOn??[]],source:this.#cy(e.source),meta:e.meta??null,undo:"record"===e.undo?"record":"skip",keepSource:!1!==e.keepSource,batchSize:"number"==typeof t&&t>=1?Math.floor(t):25},live:0,unlanded:0,writeStates:new Set,finalized:!1}}#cy(e){return"string"!=typeof e||""===e?yJ:y1.has(e)||e.endsWith("Validator")?(il(this,`asyncValues.source.${e}`,`The AsyncValues plugin: the "${e}" source is reserved, so "${yJ}" is used instead.`),yJ):e}#cg(e,t,i){let o=this.#cd(i),r=[],n=new Map;try{e.forEach(e=>{let i=n.get(e.physicalRow),s=i?.get(e.prop);s||(s=this.#cu(e,t,o),i||(i=new Map,n.set(e.physicalRow,i)),i.set(e.prop,s)),r.push(s)})}finally{this.#cc(o)}return Promise.all(r)}#cc(e){let t=this.#uV;if(this.#uV=null,this.#uT&&this.hot.render(),0===e.live&&this.#cS(),t)throw t.error}#cv(e){try{return{value:e()}}catch(e){return this.#uV??={error:e},null}}#cR(e){let t=this.#cx(e,e=>this.#cc(e));if(t)throw t.error}#cx(e,t){let i=null;return e.forEach(e=>{if(!this.#cE())try{t(e)}catch(e){i??={error:e}}}),i}#cE(){return!this.hot||this.hot.isDestroyed}#ch(e){if("row"in e){let{row:t,column:i}=e,o=Number.isInteger(t)&&Number.isInteger(i)&&t>=0&&t<this.hot.countRows()&&i>=0&&i<this.hot.countCols(),r=o?this.hot.toPhysicalRow(t):null,n=o?this.hot.colToProp(i):null;return null!==r&&yW(n)?{physicalRow:r,prop:n}:null}let t="rowId"in e?this.#cM(e.rowId):e.physicalRow;return null!==t&&this.#ck(t)&&this.#cI(e.prop)?{physicalRow:t,prop:e.prop}:null}#cp(e,t){return(this.#cI(t)||tf(`The column ${JSON.stringify(t)} cannot hold async values.`),"all"===e)?Array.from({length:this.hot.rowIndexMapper.getNumberOfIndexes()},(e,i)=>({physicalRow:i,prop:t})):(Array.isArray(e)||tf("The rows must be `'all'` or an array of `{ physicalRow }` or `{ rowId }` objects."),e.map(e=>{let i="object"==typeof e&&null!==e?this.#ch({...e,prop:t}):null;return i||tf(`The row ${JSON.stringify(e)} cannot hold an async value.`),i}))}#ck(e){return Number.isInteger(e)&&e>=0&&e<this.hot.rowIndexMapper.getNumberOfIndexes()}#cI(e){if(!yW(e))return!1;let t=this.hot.propToCol(e);return"number"==typeof t&&t>=0&&t<this.hot.countCols()}#cT(e){return this.hot.getRowIdAtPhysicalRow(e)??null}#cM(e){return null==e?null:this.hot.getPhysicalRowById(e)}#cA(e,t,i){if(this.#uF||!this.#uT)return{entry:null,result:Promise.resolve({status:"canceled",reason:"disabled"})};let{physicalRow:o,prop:r}=e,n=this.#cv(()=>this.hot.runHooks("beforeAsyncValueStart",o,r,this.#cT(o)));if(!n||!1===n.value)return{entry:null,result:Promise.resolve({status:"canceled",reason:"vetoed"})};if(this.#uF||!this.#uT)return{entry:null,result:Promise.resolve({status:"canceled",reason:"disabled"})};let s=()=>{},l=new Promise(e=>{s=e}),a=this.#cH(o),h={status:"pending",state:a,prop:r,controller:new AbortController,error:null,message:"",settle:s,run:t,origin:t.options.keepSource?i:null,batch:null,launch:null,finished:!1,reported:!1},d=a.entries.get(r);return t.live+=1,this.#cO(h),d&&this.#cD(d),this.#cP(h),d&&this.#cv(()=>this.#c_([[d,"restart"]])),this.#cF(h)&&this.#cv(()=>this.hot.runHooks("afterAsyncValueStart",o,r,this.#cT(o))),{entry:this.#cF(h)?h:null,result:l}}#cu(e,t,i){"function"!=typeof t&&Promise.resolve(t).catch(()=>{});let{entry:o,result:r}=this.#cA(e,i,"function"==typeof t?{kind:"cell",source:t}:null);return o&&(o.launch=new yV(e=>{if(!this.#cF(o))return void e();let i=this.#cN(o);new Promise(e=>{e("function"==typeof t?t(i):t)}).then(t=>{e(),this.#cL({entry:o,outcome:{status:"resolved",value:t}})},t=>{e(),this.#cL({entry:o,outcome:{status:"rejected",error:t}})})},()=>this.#cF(o)),this.#uP.push(o.launch)),r}#cm(e,t,i){let o=[],r=new Map,{batchSize:n}=i.options,s={controller:new AbortController,entries:[],canceled:0};try{e.forEach(({physicalRow:e,prop:l})=>{let a=r.get(e),h=a?.get(l);if(h)return void o.push(h);let{entry:d,result:u}=this.#cA({physicalRow:e,prop:l},i,{kind:"batch",source:t});a||(a=new Map,r.set(e,a)),a.set(l,u),o.push(u),d&&(d.batch=s,s.entries.push(d)),s.entries.length===n&&(this.#cB(s,t),s={controller:new AbortController,entries:[],canceled:0})})}finally{s.entries.length>0&&this.#cB(s,t)}return o}#cB(e,t){let i=new yV(i=>{let o=e.entries.filter(e=>this.#cF(e));if(0===o.length)return void i();let r=o.map(e=>this.#cN(e));new Promise(i=>{i(t(r,e.controller.signal))}).then(e=>{i(),this.#cV(o,e)},e=>{i(),o.forEach(t=>this.#cL({entry:t,outcome:{status:"rejected",error:e}}))})},()=>e.entries.some(e=>this.#cF(e)));e.entries.forEach(e=>{e.launch=i}),this.#uP.push(i)}#cV(e,t){if(!function(e){if(Array.isArray(e))return!0;if("object"!=typeof e||null===e)return!1;let{length:t}=e;return Number.isInteger(t)&&t>=0}(t)){il(this,"asyncValues.batchAnswer","The AsyncValues plugin: a batch source resolved with something that is not an array, so every cell of the batch was rejected."),e.forEach(e=>this.#cL({entry:e,outcome:{status:"rejected",error:void 0}}));return}e.forEach((e,i)=>{let o=t[i];this.#cL({entry:e,outcome:void 0===o||o instanceof Error?{status:"rejected",error:o}:{status:"resolved",value:o}})})}#cb(e){let t=new Map,i=new Map,o=new Map;try{e.forEach(e=>{let r=i.get(e.run.options);r||(r={options:e.run.options,live:0,unlanded:0,writeStates:new Set,finalized:!1},i.set(e.run.options,r));let n=e.origin;if("cell"===n.kind)return void t.set(e,this.#cu({physicalRow:y2(e),prop:e.prop},n.source,r));let s=o.get(n.source);s||(s=new Map,o.set(n.source,s));let l=s.get(r);l?l.push(e):s.set(r,[e])}),o.forEach((e,i)=>{e.forEach((e,o)=>{this.#cm(e.map(e=>({physicalRow:y2(e),prop:e.prop})),i,o).forEach((i,o)=>t.set(e[o],i))})})}finally{this.#cR([...i.values()])}return e.map(e=>t.get(e))}#cN(e){let t=y2(e),i=this.hot.propToCol(e.prop);return{signal:e.controller.signal,row:this.#cz(t),column:"number"==typeof i&&i>=0?i:null,physicalRow:t,prop:e.prop,rowId:this.#cT(t)}}#cz(e){let t=this.hot.toVisualRow(e);return null!==t&&t<this.hot.countRows()?t:null}#cW(e,t){if("string"==typeof t)return this.hot.getSourceDataAtCell(e,t);let i=this.hot.propToCol(t);return this.hot.getSourceDataAtCell(e,"number"==typeof i&&i>=0?i:t)}#cL(e){this.#cF(e.entry)&&(this.#hD.push(e),this.#u_||this.#c$())}#c$(){let e=this.getSetting("flush"),t=this.hot.rootWindow,i=!1,o=()=>{i||this.#cU()};if(this.#u_=()=>{i=!0},"frame"===e){let e=t.requestAnimationFrame(o);this.#u_=()=>{i=!0,t.cancelAnimationFrame(e)}}else"number"==typeof e?this.hot._registerTimeout(o,e):t.queueMicrotask(o)}#cU=()=>{this.#u_=null;let e=this.#hD.filter(({entry:e})=>this.#cF(e));if(this.#hD=[],0===e.length||!this.#uT)return;let t=[],i=[],o=[];this.#uD+=1;try{let r=this.#cG(e);o.push(r.failure,this.#iI(r,t,i))}finally{t.forEach(this.#cj);try{this.#c_(i)}catch(e){o.push({error:e})}o.push(this.#cx(t,this.#cq)),this.#uD-=1,this.#cS()}let r=o.find(e=>null!==e);if(r)throw r.error};#iI(e,t,i){if(this.#cE())return null;this.#uz+=1;try{return this.#cK(e,t,i)}finally{this.#uz-=1,this.#uU.splice(0).forEach(e=>this.#cY(e)),0===this.#uz&&this.#cX()}}#cK(e,t,i){let o=(e,t)=>{this.#cD(e),this.#cZ(e),i.push([e,t])};e.vetoed.forEach(e=>o(e,"vetoed")),e.rejected.forEach(e=>{this.#cF(e.entry)&&(this.#cQ(e.entry,"rejected"===e.outcome.status?e.outcome.error:void 0),t.push(e))});let r=e.resolved.filter(({entry:e,outcome:t})=>this.#cF(e)&&"resolved"===t.status),n=this.#cJ(r),s={bySource:new Map,flights:[]};r.forEach(e=>{let i=n.get(e.entry);i?o(e.entry,i):"resolved"===e.outcome.status&&(this.#c0(e.entry,e.outcome.value,s),t.push(e))});let l=this.#c1(s);return s.flights.forEach(e=>{e.group?.some(e=>e.validating)&&(e.validating=!0)}),s.flights.forEach(e=>{e.validating||this.#c2(e.state,e.prop,e,!0)}),l}#cJ(e){let t=new Map,i=new Map,o=this.hot.getActiveEditor(),r=o?.isOpened()?{row:o.row,prop:o.prop}:null;return e.forEach(({entry:e})=>{i.set(e.state,(i.get(e.state)??new Set).add(e.prop))}),e.forEach(({entry:e})=>{let o=i.get(e.state);r&&r.prop===e.prop&&r.row===this.hot.toVisualRow(y2(e))?t.set(e,"edit"):e.run.options.dependsOn.some(t=>t!==e.prop&&o.has(t))&&t.set(e,"dependency")}),t}#cG(e){let t=[],i=[],o=[],r=null;return e.forEach(e=>{let{entry:n,outcome:s}=e;if(!this.#cE()&&this.#cF(n)){if("rejected"===s.status)return void t.push(e);try{let e=this.#c3(n,s.value);e===y0?this.#cF(n)&&i.push(n):o.push({entry:n,outcome:{status:"resolved",value:e}})}catch(e){r??={error:e},t.push({entry:n,outcome:{status:"rejected",error:e}})}}}),{rejected:t,vetoed:i,resolved:o,failure:r}}#cQ(e,t){e.status="error",e.controller=null,e.launch=null,e.batch=null,e.error=t,e.message=function(e){if(e instanceof Error)return e.message;if("object"==typeof e&&null!==e){let{message:t}=e;return"string"==typeof t?t:""}return null==e?"":String(e)}(t),this.#cZ(e),this.#cP(e)}#c3(e,t){if(!this.hot.hasHook("beforeAsyncValueResolve"))return t;let i=y2(e),o=this.hot.runHooks("beforeAsyncValueResolve",t,i,e.prop,this.#cT(i));return this.#cF(e)&&(!1!==o||!1===t)?void 0===o?t:o:y0}#c0(e,t,i){let{state:o,prop:r,run:n}=e,s=o.physicalRow,l=null;if("record"===n.options.undo||n.options.meta){l={run:n,oldValue:p$(this.#cW(s,r)),landed:!1,landedValue:void 0,supersedes:null};let e=o.writes.get(r);e?.landed?this.#c6(o,r):e&&(l.supersedes=e),o.writes.set(r,l),n.unlanded+=1,n.writeStates.add(o)}this.#uq+=1;let a={sequence:this.#uq,source:n.options.source,write:l,validating:!1,validated:!1,change:null,changes:null,state:o,prop:r,group:null},h=o.flights.get(r);h?h.push(a):o.flights.set(r,[a]),i.flights.push(a),this.#c4(e),e.controller=null,e.launch=null,this.#cZ(e),this.#cP(e);let d=i.bySource.get(n.options.source);d?d.push({prop:r,value:t,flight:a}):i.bySource.set(n.options.source,[{prop:r,value:t,flight:a}])}#c1(e){let t=[],i=e=>{try{e()}catch(e){t.push(e)}};null===this.#iR||this.#uG||(this.hot.suspendRender(),this.#uG=!0),this.hot.suspendRender();try{this.hot._getOperationScope().suppress(()=>{e.bySource.forEach((e,t)=>{let o=[],r=[],n=[],s=new Map;if(e.forEach(({prop:e,value:t,flight:i})=>{let l=this.#cz(i.state.physicalRow);if(null===l)r.push([i.state.physicalRow,e,t]);else o.push([l,e,t]),s.set(`${l}:${e}`,i),n.push(i),i.group=n}),o.length>0){let e=this.#uK;this.#uK={source:t,flights:s};try{i(()=>this.hot.setDataAtRowProp(o,"","",t))}finally{this.#uK=e}}r.length>0&&i(()=>this.hot.setSourceDataAtCell(r,"",void 0,t))})}),this.hot.render()}finally{this.hot.resumeRender()}return this.#iR??=this.hot.rootWindow.requestAnimationFrame(this.#c5),t.length>0?{error:t[0]}:null}#c5=()=>{this.#iR=null,this.#uG&&(this.#uG=!1,this.hot.resumeRender())};#cs(){null!==this.#iR&&(this.hot.rootWindow.cancelAnimationFrame(this.#iR),this.#iR=null),this.#uG&&(this.#uG=!1,this.hot.resumeRender())}#cj=({entry:e,outcome:t})=>{e.settle("resolved"===t.status?{status:"resolved",value:t.value}:{status:"rejected",error:e.error,message:e.message})};#cq=({entry:e,outcome:t})=>{let i=y2(e),o=this.#cT(i);"resolved"===t.status?this.hot.runHooks("afterAsyncValueResolve",i,e.prop,t.value,o):this.#o2.has(e)&&(""!==e.message&&this.#c8(e)&&this.hot.getSettings().ariaTags&&this.hot.isListening()&&m3(e.message,"polite"),this.hot.runHooks("afterAsyncValueReject",i,e.prop,e.error,e.message,o))};#cZ(e){e.finished||(e.finished=!0,this.#uH-=1,e.run.live-=1,this.#c7(e.run))}#c7(e){if(!(e.finalized||e.live>0||e.unlanded>0||0===e.writeStates.size||this.#cE())){if(e.finalized=!0,this.#uz>0)return void this.#uU.push(e);this.hot.rootWindow.queueMicrotask(()=>this.#cY(e))}}#cS(){!(this.#uD>0||this.#cE())&&this.#uO&&0===this.#uH&&(this.#uO=!1,this.hot.runHooks("afterAsyncValuesIdle"))}#cY(e){if(this.#cE())return;let t=[];if(e.writeStates.forEach(i=>{i.writes.forEach((o,r)=>{if(o.run!==e||(i.writes.delete(r),!o.landed||"record"!==e.options.undo||i.dropped))return;let n=this.#cW(i.physicalRow,r);Object.is(n,o.landedValue)&&!Object.is(n,o.oldValue)&&t.push({physicalRow:i.physicalRow,prop:r,oldValue:o.oldValue,newValue:p$(n)})}),this.#c9(i)}),e.writeStates.clear(),t.length>0){let i=this.hot._getOperationScope();i.run("change",e.options.source,()=>{t.forEach(e=>pU(i,e))})}}#c8(e){let t=this.hot.getSelectedRangeActive()?.highlight;return!!t&&t.row===this.hot.toVisualRow(y2(e))&&t.col===this.hot.propToCol(e.prop)}#cw(e,t){this.#cD(e),this.#c_([[e,t]])}#cD(e){this.#c4(e),this.#cP(e)}#c_(e){let t=e.filter(([e])=>"pending"===e.status&&!e.reported),i=null;if(0===t.length)return void this.#cS();try{t.forEach(([e,t])=>{let i=e.controller;e.controller=null,e.reported=!0,this.#cZ(e),e.settle({status:"canceled",reason:t}),i?.abort(),this.#ge(e)}),i=this.#cx(t,([e,t])=>{let i=y2(e),o=e.state.dropped?e.state.rowId:this.#cT(i);this.hot.runHooks("afterAsyncValueCancel",i,e.prop,t,o)})}finally{this.#cS()}if(i)throw i.error}#ge(e){let{batch:t,launch:i}=e;t&&(t.canceled+=1,t.canceled===t.entries.length&&t.controller.abort()),i?.isStarted()&&!i.isLive()&&i.release()}#cn(e){let t=[...this.#o2];t.forEach(e=>this.#cD(e)),this.#c_(t.map(t=>[t,e]))}#cF(e){return"pending"===e.status&&this.#o2.has(e)}#cC(e){return[...this.#o2].filter(t=>t.status===e).map(e=>({physicalRow:y2(e),prop:e.prop,rowId:this.#cT(y2(e))}))}#gt(e,t){if(0!==this.#o2.size&&this.#uT)return this.#uT.getValueAtIndex(e)?.entries.get(t)}#cf(e){if(0===this.#o2.size)return;let t=this.#ch(e);return t?this.#gt(t.physicalRow,t.prop):void 0}#cH(e){let t=this.#uT,i=t.getValueAtIndex(e);return i?this.#uA.has(i)||(i.physicalRow=e,this.#uA.add(i)):(i={physicalRow:e,rowId:this.#cT(e),dropped:!1,entries:new Map,writes:new Map,flights:new Map},t.setValueAtIndex(e,i),this.#uA.add(i)),i}#c9(e){e.entries.size>0||e.writes.size>0||e.flights.size>0||(this.#uA.delete(e),this.#uT?.getValueAtIndex(e.physicalRow)===e&&this.#uT.setValueAtIndex(e.physicalRow,null))}#cO(e){e.state.entries.set(e.prop,e),this.#o2.add(e),"pending"===e.status&&(this.#uH+=1,this.#uO=!0)}#c4(e){e.state.entries.get(e.prop)===e&&e.state.entries.delete(e.prop),this.#o2.delete(e),this.#c9(e.state)}#cP(e){let t=this.hot.toVisualRow(y2(e)),i=this.hot.propToCol(e.prop);null!==t&&"number"==typeof i&&i>=0&&this.hot.markCellChanged(t,i)}#gi(e){let t=[];[...this.#uA].forEach(i=>{e.has(i)||(this.#uA.delete(i),i.dropped=!0,this.#go(i),i.entries.forEach(e=>{this.#o2.delete(e),t.push([e,"rowRemoved"])}))}),this.#c_(t)}#u8=()=>{if(0===this.#uA.size||!this.#uT||this.#uN)return;let e=this.#uT,t=new Set;e.getValues().forEach((i,o)=>{i&&(i.physicalRow=o,0===i.entries.size&&0===i.writes.size&&0===i.flights.size?e.setValueAtIndex(o,null):t.add(i))}),this.#gi(t)};#co=()=>{let e=this.#uT;if(this.#uN||!e||0===this.#uA.size)return;let t=new Set;this.#uA.forEach(i=>{i.physicalRow<e.getLength()&&(e.setValueAtIndex(i.physicalRow,i),t.add(i))}),this.#gi(t)};#gr(e,t,i,o,r,n){let s=this.#uT?.getValueAtIndex(e),l="string"==typeof i&&i.endsWith("Validator");if(l&&this.#gn(e,t),!s)return;let a=s.flights.get(t);if(l&&a?.some(e=>e.validating))return;let h=n?this.#uY.get(n):void 0,d=h??a?.find(e=>e.source===i),u=s.entries.get(t),c=s.writes.get(t),g=[...s.entries.values()].filter(e=>e!==u&&e.run.options.dependsOn.includes(t));l&&c?.landed?c.landedValue=this.#cW(s.physicalRow,t):d?this.#gs(s,t,d,void 0!==h,r):this.#gl(s,t,n,o),g.forEach(e=>{this.#cD(e),o.push([e,"dependency"])})}#gs(e,t,i,o,r){e.flights.get(t)?.includes(i)&&(i.group&&r.add(i.group),o&&i.validated&&this.#ga(e,t,i.sequence-1),this.#gh(e,t,i))}#gl(e,t,i,o){let r=i?this.#uX.get(i):void 0,n=e.entries.get(t);void 0!==r&&this.#ga(e,t,r);let s=e.writes.get(t),l=s&&!s.landed?this.#gd(e,t,s):void 0;(!l?.validated||l.sequence<=(r??0))&&this.#c6(e,t),n&&(this.#cD(n),o.push([n,"edit"]))}#gh(e,t,i){let o=i.write;if(this.#c2(e,t,i,!1),e.flights.has(t)){o&&this.#gu(e,t,o);return}this.#gc(e,t,o?.run.options.undo==="record"),o&&!o.landed&&e.writes.get(t)===o&&this.#gg(e,t,o)}#ga(e,t,i){let o=e.flights.get(t);o&&o[0].sequence<=i&&o.filter(e=>e.sequence<=i).forEach(i=>this.#c2(e,t,i,!0))}#gc(e,t,i){if(!this.getSetting("saveToDataProvider"))return;if(i)return void il(this,"asyncValues.saveUndo","The AsyncValues plugin: `saveToDataProvider` does not save the values of a call with `undo: 'record'`.");if(!this.#gp())return void il(this,"asyncValues.saveNoDataProvider","The AsyncValues plugin: `saveToDataProvider` needs the `dataProvider` option with `rowId` and `onRowsUpdate`, so nothing was saved.");let o=this.#gm(e.physicalRow);if(null===o)return void il(this,"asyncValues.saveNoRowId","The AsyncValues plugin: `saveToDataProvider` skipped a row whose `dataProvider.rowId` has no value.");let r=this.#cz(e.physicalRow),n=this.hot.propToCol(t);if(null!==r&&"number"==typeof n&&!1===this.hot.getCellMetaTransient(r,n).valid)return;let s=p$(this.#cW(e.physicalRow,t)),l=this.#uW.get(o);l?l.set(t,s):this.#uW.set(o,new Map([[t,s]])),0!==this.#uz||this.#u$||(this.#u$=!0,this.hot._registerMicrotask(()=>{this.#u$=!1,this.#cX()}))}#gp(){let e=this.hot.getSettings().dataProvider;return!!this.hot.getPlugin("dataProvider")?.enabled&&"function"==typeof e?.onRowsUpdate&&!!e.rowId}#gm(e){try{return this.#cT(e)}catch{return null}}#gn(e,t){let i=this.#uW.size>0?this.#uW.get(this.#gm(e)):void 0;i?.has(t)&&i.set(t,p$(this.#cW(e,t)))}#cX(){if(0===this.#uW.size||this.#cE())return;let e=[...this.#uW],t=[];this.#uW.clear(),this.getSetting("saveToDataProvider")&&this.#gp()&&(e.forEach(([e,i])=>{let o=this.hot.getPhysicalRowById(e);if(null===o)return;let r={};i.forEach((e,t)=>{let i=this.#cW(o,t);tx(i,e)&&(r[String(t)]=i)}),0!==Object.keys(r).length&&t.push({id:e,changes:r,rowData:this.hot.getSourceDataAtRow(o)})}),t.length>0&&this.hot.getPlugin("dataProvider").updateRows(t).catch(e=>{iu("The AsyncValues plugin: saving the resolved values failed.",e)}))}#gg(e,t,i){let{run:o}=i,{meta:r,undo:n}=o.options,s=this.#cz(e.physicalRow),l=this.hot.propToCol(t);i.landed=!0,i.landedValue=this.#cW(e.physicalRow,t),o.unlanded-=1,this.#gf(i),r&&null!==s&&"number"==typeof l&&l>=0&&this.hot._getOperationScope().suppress(()=>{Object.keys(r).forEach(e=>this.hot.setCellMeta(s,l,e,r[e]))}),"record"!==n&&(e.writes.delete(t),this.#c9(e)),this.#c7(o)}#c6(e,t){let i=e.writes.get(t);if(!i)return;let o=[];for(let e=i;e;e=e.supersedes)o.push(e);e.writes.delete(t),o.forEach(e=>{e.supersedes=null,e.run.unlanded-=!e.landed}),this.#c9(e),o.forEach(e=>this.#c7(e.run))}#gf(e){let t=[];for(let i=e.supersedes;i;i=i.supersedes)t.push(i);e.supersedes=null,t.forEach(e=>{e.supersedes=null,e.run.unlanded-=!e.landed}),t.forEach(e=>this.#c7(e.run))}#gu(e,t,i){let o=e.writes.get(t),r=o===i?null:o??null;for(;r&&r.supersedes!==i;)r=r.supersedes;if(o!==i&&!r)return void this.#c9(e);r?r.supersedes=i.supersedes:i.supersedes?e.writes.set(t,i.supersedes):e.writes.delete(t),i.supersedes=null,i.run.unlanded-=!i.landed;let n=e.writes.get(t);!n||n.landed||this.#gd(e,t,n)||this.#gu(e,t,n),this.#c9(e),this.#c7(i.run)}#gd(e,t,i){return e.flights.get(t)?.find(e=>e.write===i)}#go(e){let t=[];e.writes.forEach(e=>{for(let i=e;i;i=i.supersedes)t.push(i)}),e.writes.clear(),t.forEach(e=>{e.supersedes=null,e.landed||(e.run.unlanded-=1),this.#c7(e.run)})}#u2=(e,t)=>{0===this.#uA.size||this.#uK?.source===t||"string"==typeof t&&t.endsWith("Validator")||e.forEach(e=>{e&&yW(e[1])&&this.#gw(e)})};#u3=(e,t)=>{let i=this.#uK;i&&i.source===t&&e.forEach(t=>{var o,r;let n=yW(t[1])?i.flights.get((o=t[0],r=t[1],`${o}:${r}`)):void 0;n&&(n.change=t,n.changes=e,this.#uY.set(t,n))})};#gw(e){let t=this.hot.toPhysicalRow(e[0]),i=null===t?null:this.#uT?.getValueAtIndex(t),o=0;i?.flights.get(e[1])?.forEach(e=>{o=e.validated?e.sequence:o}),o>0&&this.#uX.set(e,o)}#u6=(e,t,i,o)=>{let r=this.#gb(t,i,e=>e.source===o&&!e.validating);r&&(r.flight.validating=!0,r.flight.validated=!0)};#u4=(e,t,i,o)=>{if(0===this.#uA.size)return;let r=[],n=e=>{e.flights.get(o)?.forEach(e=>{e.change&&!e.changes?.includes(e.change)&&r.push(e)})};if(null===i)this.#uA.forEach(n);else{let e=this.hot.toPhysicalRow(i),t=null===e?null:this.#uT?.getValueAtIndex(e);t&&n(t)}r.forEach(e=>this.#c2(e.state,e.prop,e,!0))};#u5=e=>{let t=[],i=new Set(e);this.#uA.forEach(o=>{o.flights.forEach(o=>{o.forEach(o=>{(o.changes===e||null!==o.change&&i.has(o.change))&&t.push(o)})})}),t.forEach(e=>this.#c2(e.state,e.prop,e,!0))};#gb(e,t,i){let o=0===this.#uA.size?null:this.hot.toPhysicalRow(e),r=null===o?null:this.#uT?.getValueAtIndex(o),n=r?.flights.get(t)?.find(i);return r&&n?{state:r,flight:n}:null}#c2(e,t,i,o){let r=e.flights.get(t),n=r?r.indexOf(i):-1;-1!==n&&(r.splice(n,1),0===r.length&&e.flights.delete(t),o&&i.write?this.#gu(e,t,i.write):this.#c9(e))}#gC(e){let t=this.#uT?.getValueAtIndex(e);t&&(t.rowId=this.#cT(e))}#gy(e,t){let i=[],o=new Set,r=new Set;if(e.forEach(([e,n,s])=>{null!==e&&yW(n)&&(r.has(e)||(r.add(e),this.#gC(e)),this.#gr(e,n,t,i,o,s))}),o.forEach(e=>{e.forEach(e=>{e.state.flights.get(e.prop)?.includes(e)&&this.#c2(e.state,e.prop,e,!0)})}),i.length>0)try{this.#c_(i)}finally{this.hot.render()}}#ud=(e,t)=>{e&&(0!==this.#uA.size||0!==this.#uW.size)&&this.#gy(e.map(e=>[this.hot.getPhysicalRowOfChange(e),e[1],e]),t)};#u1=(e,t)=>{if(0===this.#uA.size)return;let i=e.filter(([e,i,,o])=>{if(!yW(i)||Object.is(this.#cW(e,i),o))return!0;let r=this.#uT?.getValueAtIndex(e),n=r?.flights.get(i)?.find(e=>e.source===t);return r&&n&&this.#c2(r,i,n,!0),!1});this.#gy(i.map(([e,t])=>[e,t]),t)};#u7=(e,t)=>{let i=this.hot.toPhysicalColumn(e);t>0&&null!==i&&this.#gS(i)};#u9=(e,t,i)=>{i.length>0&&this.#gS(i.reduce((e,t)=>Math.min(e,t),1/0))};#gS(e){if([...this.#uA].forEach(t=>{[...t.writes.keys()].forEach(i=>{"number"==typeof i&&i>=e&&this.#c6(t,i)})}),0===this.#o2.size)return;let t=[...this.#o2].filter(t=>"number"==typeof t.prop&&t.prop>=e);t.length>0&&(t.forEach(e=>this.#cD(e)),this.#c_(t.map(e=>[e,"columnsChanged"])),this.hot.render())}#hQ=()=>{this.#gv(!0)};#ce=()=>{this.#gv(!1)};#gv(e){this.#uN=!0,this.#uB=e,this.#uL=[...this.#uA].map(e=>({state:e,rowId:this.#cT(e.physicalRow),rowObject:this.#gR(e.physicalRow)})),this.hot.rootWindow.queueMicrotask(()=>{this.#uN&&this.enabled&&this.#gx(this.#uB)})}#ct=()=>{this.#gx(!0)};#ci=()=>{this.#gx(!1)};#gx(e){let t=this.#uT,i=this.#uL;if(this.#uN=!1,this.#uL=[],!t||0===i.length)return;let o=t.getLength(),r=new Set,n=new Map,s=w1({countPhysicalRows:()=>this.hot.rowIndexMapper.getNumberOfIndexes(),readRowObject:e=>this.#gR(e)}),l=i.map(t=>this.#gE(t,e,s));i.forEach(({state:e},i)=>{l[i]===e.physicalRow&&l[i]<o&&t.getValueAtIndex(e.physicalRow)===e?r.add(e):t.getValueAtIndex(e.physicalRow)===e&&t.setValueAtIndex(e.physicalRow,null)}),r.size!==i.length&&(i.forEach((i,s)=>{let a=l[s];if(!r.has(i.state)){if(null===a||a>=o||null!==t.getValueAtIndex(a)){i.state.rowId=i.rowId,n.set(i.state,e&&!this.#gM(i)?"dataReplaced":"rowRemoved");return}t.setValueAtIndex(a,i.state),i.state.physicalRow=a,i.state.rowId=i.rowId,r.add(i.state)}}),this.#gk(r,n),this.hot.markAllCellsChanged())}#cr=()=>{if(this.#cE())return;let e=this.hot.rowIndexMapper.getNumberOfIndexes();e!==this.#uj&&(this.#uj=e,this.#uA.size>0&&!this.#uN&&this.hot.rootWindow.queueMicrotask(this.#gI))};#gI=()=>{if(this.#cE()||!this.#uT||0===this.#uA.size||this.#uN)return;let e=this.#gT(this.#uT);this.#u8(),e&&(this.hot.markAllCellsChanged(),this.hot.render())};#gT(e){let t=new Map,i=new Map,o=!1;return this.#uA.forEach(e=>{if(null===e.rowId||void 0===e.rowId)return;let r=this.#cM(e.rowId);null===r?t.set(e,"rowRemoved"):(i.set(e,r),o=o||r!==e.physicalRow)}),(!!o||0!==t.size)&&(this.#gA(e,i,t),this.#gk(new Set,t),!0)}#gA(e,t,i){e.getValues().forEach((o,r)=>{o&&(t.has(o)||i.has(o)||!this.#uA.has(o))&&e.setValueAtIndex(r,null)}),t.forEach((t,o)=>{t>=e.getLength()||null!==e.getValueAtIndex(t)?i.set(o,"rowRemoved"):(e.setValueAtIndex(t,o),o.physicalRow=t)})}#gM(e){return null!==e.rowId&&void 0!==e.rowId}#gE(e,t,i){if(this.#gM(e))return this.hot.getPhysicalRowById(e.rowId);if(t)return null;let{rowObject:o,state:r}=e;if(!w2(o)||this.#gR(r.physicalRow)===o)return r.physicalRow;let n=i(o);return void 0===n?r.physicalRow:n}#gR(e){if(!(e>=this.hot.rowIndexMapper.getNumberOfIndexes()))return this.hot._getDataSource().modifyRowData(e)}#gk(e,t){let i=[];t.forEach((t,o)=>{e.has(o)||(this.#uA.delete(o),o.dropped=!0,this.#go(o),o.entries.forEach(e=>{this.#o2.delete(e),i.push([e,t])}))}),this.#c_(i)}#uQ=(e,t,i)=>{let o=0===this.#o2.size?null:this.hot.toPhysicalRow(e),r=null===o?void 0:this.#gt(o,i.prop);r?(i.asyncState=r.status,i.asyncError="error"===r.status?r.message:null,this.#uZ=!0):t_(i,"asyncState")&&null!==i.asyncState&&(i.asyncState=null,i.asyncError=null)};#u0=(e,t)=>{if(0===this.#uH||"empty"!==this.getSetting("copyPendingAs"))return;let{rows:i,columns:o}=y$(t),r=new Map(i.map((e,t)=>[e,t])),n=new Map(o.map((e,t)=>[e,t]));this.#o2.forEach(t=>{if("pending"!==t.status)return;let i=r.get(this.hot.toVisualRow(y2(t))??-1),o=n.get(this.hot.propToCol(t.prop));void 0!==i&&void 0!==o&&e[i]&&(e[i][o]="")})};#uJ=(e,t,i,o,r,n)=>{let s=0===this.#o2.size?null:this.hot.toPhysicalRow(t),l=null===s?void 0:this.#gt(s,o);if(!function(e){if(!e.hasAttribute(yY))return;let t=e.getAttribute(yY);""!==t&&e.getAttribute("title")===t&&e.removeAttribute("title"),iK(e,[yY]),Array.from(e.children).filter(e=>yK.some(t=>e.classList.contains(t))).forEach(e=>e.remove())}(e),l){let t="pending"===l.status?this.hot.getTranslatedPhrase(cP):l.message;!function(e,t,i,o){let r=e.ownerDocument;if("pending"===t){e.appendChild(yX(r,yU,"")),""!==i&&e.appendChild(yX(r,yj,i)),iG(e,"htAsyncPending"),e.setAttribute(yY,""),o&&iq(e,[Q()]);return}iG(e,"htAsyncError"),e.setAttribute(yY,i),e.appendChild(yX(r,yq,"")),""!==i&&(e.setAttribute("title",i),e.appendChild(yX(r,yG,i))),o&&iq(e,[q()])}(e,l.status,"string"==typeof t?t:"",!!n.ariaTags)}}}let y6=["http","https","mailto","tel"];function y4(e){return Array.isArray(e)?y6.filter(t=>e.includes(t)):[...y6]}function y5(e,t){if(!Array.isArray(e))return t;if(0===e.length)return[];let i=y4(e);return 0===i.length?t:i}function y8(e,t,i=y6){let o;if("string"!=typeof e||""===e.trim())return null;try{o=new URL(e,t)}catch(e){return null}let r=o.protocol.slice(0,-1);return y6.includes(r)&&i.includes(r)?o.href:null}let y7=null;function y9(e){return null===y7&&(y7=new Set("aaa aarp abb abbott abbvie abc able abogado abudhabi ac academy accenture accountant accountants aco actor ad ads adult ae aeg aero aetna af afl africa ag agakhan agency ai aig airbus airforce airtel akdn al alibaba alipay allfinanz allstate ally alsace alstom am amazon americanexpress americanfamily amex amfam amica amsterdam analytics android anquan anz ao aol apartments app apple aq aquarelle ar arab aramco archi army arpa art arte as asda asia associates at athleta attorney au auction audi audible audio auspost author auto autos aw aws ax axa az azure ba baby baidu banamex band bank bar barcelona barclaycard barclays barefoot bargains baseball basketball bauhaus bayern bb bbc bbt bbva bcg bcn bd be beats beauty beer berlin best bestbuy bet bf bg bh bharti bi bible bid bike bing bingo bio biz bj black blackfriday blockbuster blog bloomberg blue bm bms bmw bn bnpparibas bo boats boehringer bofa bom bond boo book booking bosch bostik boston bot boutique box br bradesco bridgestone broadway broker brother brussels bs bt build builders business buy buzz bv bw by bz bzh ca cab cafe cal call calvinklein cam camera camp canon capetown capital capitalone car caravan cards care career careers cars casa case cash casino cat catering catholic cba cbn cbre cc cd center ceo cern cf cfa cfd cg ch chanel channel charity chase chat cheap chintai christmas chrome church ci cipriani circle cisco citadel citi citic city ck cl claims cleaning click clinic clinique clothing cloud club clubmed cm cn co coach codes coffee college cologne com commbank community company compare computer comsec condos construction consulting contact contractors cooking cool coop corsica country coupon coupons courses cpa cr credit creditcard creditunion cricket crown crs cruise cruises cu cuisinella cv cw cx cy cymru cyou cz dad dance data date dating datsun day dclk dds de deal dealer deals degree delivery dell deloitte delta democrat dental dentist desi design dev dhl diamonds diet digital direct directory discount discover dish diy dj dk dm dnp do docs doctor dog domains dot download drive dtv dubai dupont durban dvag dvr dz earth eat ec eco edeka edu education ee eg email emerck energy engineer engineering enterprises epson equipment er ericsson erni es esq estate et eu eurovision eus events exchange expert exposed express extraspace fage fail fairwinds faith family fan fans farm farmers fashion fast fedex feedback ferrari ferrero fi fidelity fido film final finance financial fire firestone firmdale fish fishing fit fitness fj fk flickr flights flir florist flowers fly fm fo foo food football ford forex forsale forum foundation fox fr free fresenius frl frogans frontier ftr fujitsu fun fund furniture futbol fyi ga gal gallery gallo gallup game games gap garden gay gb gbiz gd gdn ge gea gent genting george gf gg ggee gh gi gift gifts gives giving gl glass gle global globo gm gmail gmbh gmo gmx gn godaddy gold goldpoint golf goodyear goog google gop got gov gp gq gr grainger graphics gratis green gripe grocery group gs gt gu gucci guge guide guitars guru gw gy hair hamburg hangout haus hbo hdfc hdfcbank health healthcare help helsinki here hermes hiphop hisamitsu hitachi hiv hk hkt hm hn hockey holdings holiday homedepot homegoods homes homesense honda horse hospital host hosting hot hotels hotmail house how hr hsbc ht hu hughes hyatt hyundai ibm icbc ice icu id ie ieee ifm ikano il im imamat imdb immo immobilien in inc industries infiniti info ing ink institute insurance insure int international intuit investments io ipiranga iq ir irish is ismaili ist istanbul it itau itv jaguar java jcb je jeep jetzt jewelry jio jll jm jmp jnj jo jobs joburg jot joy jp jpmorgan jprs juegos juniper kaufen kddi ke kerryhotels kerryproperties kfh kg kh ki kia kids kim kindle kitchen kiwi km kn koeln komatsu kosher kp kpmg kpn kr krd kred kuokgroup kw ky kyoto kz la lacaixa lamborghini lamer land landrover lanxess lasalle lat latino latrobe law lawyer lb lc lds lease leclerc lefrak legal lego lexus lgbt li lidl life lifeinsurance lifestyle lighting like lilly limited limo lincoln link live living lk llc llp loan loans locker locus lol london lotte lotto love lpl lplfinancial lr ls lt ltd ltda lu lundbeck luxe luxury lv ly ma madrid maif maison makeup man management mango map market marketing markets marriott marshalls mattel mba mc mckinsey md me med media meet melbourne meme memorial men menu merck merckmsd mg mh miami microsoft mil mini mint mit mitsubishi mk ml mlb mls mm mma mn mo mobi mobile moda moe moi mom monash money monster mormon mortgage moscow moto motorcycles mov movie mp mq mr ms msd mt mtn mtr mu museum music mv mw mx my mz na nab nagoya name navy nba nc ne nec net netbank netflix network neustar new news next nextdirect nexus nf nfl ng ngo nhk ni nico nike nikon ninja nissan nissay nl no nokia norton now nowruz nowtv np nr nra nrw ntt nu nyc nz obi observer office okinawa olayan olayangroup ollo om omega one ong onl online ooo open oracle orange org organic origins osaka otsuka ott ovh pa page panasonic paris pars partners parts party pay pccw pe pet pf pfizer pg ph pharmacy phd philips phone photo photography photos physio pics pictet pictures pid pin ping pink pioneer pizza pk pl place play playstation plumbing plus pm pn pnc pohl poker politie porn post pr praxi press prime pro prod productions prof progressive promo properties property protection pru prudential ps pt pub pw pwc py qa qpon quebec quest racing radio re read realestate realtor realty recipes red redumbrella rehab reise reisen reit reliance ren rent rentals repair report republican rest restaurant review reviews rexroth rich richardli ricoh ril rio rip ro rocks rodeo rogers room rs rsvp ru rugby ruhr run rw rwe ryukyu sa saarland safe safety sakura sale salon samsclub samsung sandvik sandvikcoromant sanofi sap sarl sas save saxo sb sbi sbs sc scb schaeffler schmidt scholarships school schule schwarz science scot sd se search seat secure security seek select sener services seven sew sex sexy sfr sg sh shangrila sharp shell shia shiksha shoes shop shopping shouji show si silk sina singles site sj sk ski skin sky skype sl sling sm smart smile sn sncf so soccer social softbank software sohu solar solutions song sony soy spa space sport spot sr srl ss st stada staples star statebank statefarm stc stcgroup stockholm storage store stream studio study style su sucks supplies supply support surf surgery suzuki sv swatch swiss sx sy sydney systems sz tab taipei talk taobao target tatamotors tatar tattoo tax taxi tc tci td tdk team tech technology tel temasek tennis teva tf tg th thd theater theatre tiaa tickets tienda tips tires tirol tj tjmaxx tjx tk tkmaxx tl tm tmall tn to today tokyo tools top toray toshiba total tours town toyota toys tr trade trading training travel travelers travelersinsurance trust trv tt tube tui tunes tushu tv tvs tw tz ua ubank ubs ug uk unicom university uno uol ups us uy uz va vacations vana vanguard vc ve vegas ventures verisign versicherung vet vg vi viajes video vig viking villas vin vip virgin visa vision viva vivo vlaanderen vn vodka volvo vote voting voto voyage vu wales walmart walter wang wanggou watch watches weather weatherchannel web webcam weber website wed wedding weibo weir wf whoswho wien wiki williamhill win windows wine winners wme woodside work works world wow ws wtc wtf xbox xerox xihuan xin xxx xyz yachts yahoo yamaxun yandex ye yodobashi yoga yokohama you youtube yt yun za zappos zara zero zip zm zone zuerich zw".split(" "))),y7.has(e)}let Se=/(?:https?:\/\/|(?<![\p{L}\p{N}\p{M}._~+\\-])(?:mailto:|tel:))[^\s<>"'`]+/giu,St=/^(?:https?:\/\/|mailto:|tel:)/i,Si=/(?:(?<![/\\])https?:\/\/|(?<![\p{L}\p{N}\p{M}._~+/\\-])(?:mailto:|tel:))/giu,So=new Set([".",",",";",":","!","?"]),Sr={")":"(","]":"[","}":"{"},Sn="[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?",Ss=RegExp(`(?<![\\p{L}\\p{N}\\p{M}@._~+/\\\\-])(?=((?:${Sn}\\.)+[A-Za-z]{2,63}))\\1(?!:\\d{6,})(?::\\d{1,5}(?!\\d))?(?:[/?#][^\\s<>"'\`]*)?`,"gu"),Sl=RegExp(`(?<![\\p{L}\\p{N}\\p{M}._%+\\\\-])[A-Za-z0-9._%+-]+@(?:${Sn}\\.)+([A-Za-z]{2,63})`,"gu"),Sa=/[:/?#]/,Sh=/[A-Za-z]+$/;function Sd(e){let t=function(e){let t={"(":0,")":0,"[":0,"]":0,"{":0,"}":0};for(let i of e)i in t&&(t[i]+=1);return t}(e),i=e.length,o=!0;for(;o;){for(o=!1;i>0&&So.has(e.charAt(i-1));)i-=1,o=!0;let r=i>0?e.charAt(i-1):"",n=Sr[r];void 0!==n&&t[r]>t[n]&&(t[r]-=1,i-=1,o=!0)}return e.slice(0,i)}function Su(e){let t=e.search(Sa),i=-1===t?e:e.slice(0,t),o=Sh.exec(i);return null===o?null:o[0].toLowerCase()}function Sc(e,t,i,o){let r=Sd(e),n=""===r?null:Su(r);if(null===n||!y9(n))return null;let s=y8(`https://${r}`,i,o);return null===s?null:{start:t,end:t+r.length,href:s}}function Sg(e,t,i,o){let r=Sd(e),n=r.indexOf("@");if(-1===n)return null;let s=Su(r.slice(n+1));if(null===s||!y9(s))return null;let l=y8(`mailto:${r}`,i,o);return null===l?null:{start:t,end:t+r.length,href:l}}function Sp(e,t,i,o,r,n){let s=[],l=[];e.lastIndex=0;let a=e.exec(t);for(;null!==a;){let h=a.index,d=a.index+a[0].length;if(!function(e,t,i){return i.some(i=>e<i.end&&t>i.start)}(h,d,r)){l.push({start:h,end:d});let e=n(a[0],a.index,i,o);null!==e&&s.push(e)}a=e.exec(t)}return{tokens:s,consideredSpans:l}}function Sm(e,t,i=y6,o=!0){if("string"!=typeof e)return[];let r=function(e,t,i){let o=[],r=[];if(-1===e.indexOf(":"))return{tokens:o,consideredSpans:r};Se.lastIndex=0;let n=Se.exec(e);for(;null!==n;){let s=n[0],l=function(e){Si.lastIndex=1;let t=Si.exec(e);return null===t?-1:t.index}(s);l>0&&(s=s.slice(0,l),Se.lastIndex=n.index+l);let a=Sd(s);if(function(e){let t=St.exec(e);return null!==t&&e.length>t[0].length}(a)){let e={start:n.index,end:n.index+a.length};r.push(e);let s=y8(a,t,i);null!==s&&o.push({...e,href:s})}n=Se.exec(e)}return{tokens:o,consideredSpans:r}}(e,t,i);if(o)return r.tokens;let n=Sp(Sl,e,t,i,r.consideredSpans,Sg),s=Sp(Ss,e,t,i,[...r.consideredSpans,...n.consideredSpans],Sc);return[...r.tokens,...n.tokens,...s.tokens].sort((e,t)=>e.start-t.start)}let Sf="ht-auto-link",Sw="a, button, input, select, textarea, label",Sb=`a.${Sf}`,SC=`${Sb} .${mF}`;function Sy(e){return mW(e,SC),mW(e,Sb)}let SS=Object.freeze({capability:"feat:auto_link",name:"Auto link",gate:"enable",tiers:Object.freeze(["standard","professional"])}),Sv="autoLink";class SR extends sI{static get PLUGIN_KEY(){return Sv}static get PLUGIN_PRIORITY(){return 270}static get LICENSE(){return SS}static get DEFAULT_SETTINGS(){return{target:"_blank",schemes:[...y6],inline:!0,strict:!0,className:""}}static get SETTINGS_VALIDATORS(){return{target:e=>"_blank"===e||"_self"===e,schemes:e=>Array.isArray(e)&&e.every(e=>y6.includes(e)),inline:e=>"boolean"==typeof e,strict:e=>"boolean"==typeof e,className:e=>"string"==typeof e}}#gH=null;#gO="";#gD=new WeakMap;#gP=new WeakMap;isEnabled(){return!!this.hot.getSettings()[Sv]}enablePlugin(){this.enabled||(this.#gH=this.#g_(void 0),this.#gO=this.hot.rootDocument.baseURI,this.addHook("beforeRender",this.#gF),this.addHook("afterRenderer",this.#uJ),this.hot.markAllCellsChanged(),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.hot.rootElement&&Sy(this.hot.rootElement),this.hot.markAllCellsChanged(),this.#gH=null,this.#gD=new WeakMap,this.#gP=new WeakMap,super.disablePlugin()}destroy(){this.#gH=null,super.destroy()}#gF=()=>{this.#gO=this.hot.rootDocument.baseURI};#g_(e){let t=this.#gH??{target:this.getSetting("target"),schemes:y4(this.getSetting("schemes")),inline:this.getSetting("inline"),strict:this.getSetting("strict"),classNames:this.getSetting("className").split(/\s+/).filter(e=>""!==e)};return"object"!=typeof e||null===e||e===this.hot.getSettings()[Sv]?t:function(e,t,i){let o=e.get(i);void 0===o&&(o={target:"_self"===i.target||"_blank"===i.target?i.target:t.target,schemes:y5(i.schemes,t.schemes),inline:"boolean"==typeof i.inline?i.inline:t.inline,strict:"boolean"==typeof i.strict?i.strict:t.strict,classNames:"string"==typeof i.className?i.className.split(/\s+/).filter(e=>""!==e):t.classNames},e.set(i,o));return o}(this.#gD,t,e)}#gN(e){let t=this.#gP.get(e);if(void 0!==t&&t.baseUrl===this.#gO)return t;let i={...e,baseUrl:this.#gO};return this.#gP.set(e,i),i}#uJ=(e,t,i,o,r,n)=>{var s;let l,a=n.autoLink;!1===a?Sy(e):(s=this.#gN(this.#g_(a)),Sy(e),l=e.textContent??"",(s.strict?-1===l.indexOf(":"):-1===l.indexOf(":")&&-1===l.indexOf(".")&&-1===l.indexOf("@"))||null===e.querySelector("a")&&(s.inline?(function(e){let t=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT),i=[],o=t.nextNode();for(;null!==o;){let r=o.parentElement,n=r?.closest(Sw)??null;null!==n&&e.contains(n)||i.push(o),o=t.nextNode()}return i})(e).forEach(e=>(function(e,t){let i=Sm(e.data,t.baseUrl,t.schemes,t.strict),o=e.ownerDocument;for(let r=i.length-1;r>=0;r--){let{start:n,end:s,href:l}=i[r];e.splitText(s);let a=e.splitText(n),h=mB(o,{href:l,target:t.target,classNames:[Sf,...t.classNames]});a.parentNode?.insertBefore(h,a),h.appendChild(a),mz(h)}})(e,s)):function(e,t,i){let o=t.trim(),r=Sm(o,i.baseUrl,i.schemes,i.strict);if(1!==r.length||0!==r[0].start||r[0].end!==o.length||null!==e.querySelector(Sw))return;let n=mB(e.ownerDocument,{href:r[0].href,target:i.target,classNames:[Sf,...i.classNames]});mV(e,n),mz(n)}(e,l,s)))}}class Sx{static get SAMPLE_COUNT(){return 3}samples=null;dataFactory=null;customSampleCount=null;allowDuplicates=!1;includeHidden=!1;constructor(e){this.dataFactory=e}getSampleCount(){return this.customSampleCount?this.customSampleCount:Sx.SAMPLE_COUNT}static resolveSampleCount(e){let t=parseInt(String(e),10);return Number.isInteger(t)&&t>0?t:null}applySamplingOptions({samplingRatio:e,allowDuplicates:t}){let i=Sx.resolveSampleCount(e),o=i!==this.customSampleCount||t!==this.allowDuplicates;return this.customSampleCount=i,this.allowDuplicates=t,o}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,i){let o=new Map,{from:r,to:n}="number"==typeof i?{from:i,to:i}:i;return nF(r,n,i=>{let r=this.generateSample(e,t,i);o.set(i,r)}),o}generateSample(e,t,i,o){this.#gL(e);let r=o??new Map,n="row"===e?"col":"row",s=[];o&&o.forEach(e=>{e.strings.forEach(({value:e})=>s.push(e))});let l=t=>{let o="row"===e?this.dataFactory(i,t,this):this.dataFactory(t,i,this);!1!==o&&this.#gB(r,s,n,t,o.value,o.bundleSeed,o.block)};return Array.isArray(t)?t.forEach(l):nF(t.from,t.to,l),r}generateSampleFromValues(e,t){this.#gL(e);let i=new Map,o="row"===e?"col":"row",r=[];return t.forEach(({index:e,value:t})=>{this.#gB(i,r,o,e,t,void 0,void 0)}),i}#gL(e){"row"!==e&&"col"!==e&&tf("Unsupported sample type")}#gB(e,t,i,o,r,n,s){let l,a="string"==typeof n&&n.length>0?n:null,h=null!==a;l=null!==a?a:tM(r)?`${Object.keys(r).length}`:Array.isArray(r)?`${r.length}`:`${e$(r).length}`,e.has(l)||e.set(l,{needed:this.getSampleCount(),strings:[]});let d=e.get(l);if(d&&d.needed&&(!(t.indexOf(r)>-1)||this.allowDuplicates||h)){let e={value:r,[i]:o};void 0!==s&&(e.block=s),d.strings.push(e),d.needed-=1,void 0===s&&t.push(r)}}}let SE={changed:!1,mergesChangedIn:[]};function SM(e){return Number(e)>1}class Sk{#gV;#gz=new Map;#gW=new Map;#g$=new Map;#gU=new Map;#gG=null;#gj=!0;#gq=null;#eS=!1;#gK=!1;#gY=!1;constructor(e){this.#gV=e}mayHaveMultiColumnMerges(){return this.#gY}getWidth(e){return this.#gz.get(e)}markWidthsChanged(){this.#eS=!0}invalidateCell(e,t){let i=this.#gV.toPhysicalRow(e),o=this.#gV.toPhysicalColumn(t);null!==i&&null!==o&&(this.#gW.get(o)?.delete(i),this.#gX(o)),this.#eS=!0,this.#gj=!0}invalidateColumn(e){let t=this.#gV.toPhysicalColumn(e);null!==t&&(this.#gW.delete(t),this.#gX(t)),this.#eS=!0,this.#gj=!0}markMergesChanged(e){this.invalidateColumn(e),this.#gY=!0}snapshotMerges(){this.#gG=this.#gZ(this.#gV.getMergedAreas()),this.#eS=!0,this.#gj=!0}markStale(){this.#gK=!0}markRenumbered(){this.#gK=!0,this.#gG=null}markStylesChanged(){this.#gU.clear(),this.#eS=!0,this.#gj=!0}markLayoutChanged(){this.#eS=!0,this.#gj=!0}clear(){this.#gz.clear(),this.#gQ(),this.#eS=!1,this.#gK=!1,this.#gY=!1,this.#gG=null,this.#gj=!0,this.#gq=null}clearColumn(e){this.#gz.delete(e),this.#gW.delete(e),this.#gX(e),this.#gj=!0}fit(){if(!this.#eS&&!this.#gK)return SE;if(!this.#gj&&!this.#gK&&null!==this.#gq)return this.#eS=!1,{changed:this.#gJ(this.#gq),mergesChangedIn:[]};this.#gj=!1,this.#gK&&this.#gQ(),this.#eS=!1,this.#gK=!1;let e=this.#gV.getMergedAreas(),t=this.#g0(e),i=e.filter(({colspan:e})=>SM(e)),o=i.filter(e=>this.#g1(e));return(this.#gY=i.length>0,0===o.length&&0===this.#gz.size)?(this.#gq={contentWidths:new Map,targets:[]},{changed:!1,mergesChangedIn:t}):(this.#gq=this.#g2(o),{changed:this.#gJ(this.#gq),mergesChangedIn:t})}#g0(e){let t=this.#gG;if(null===t)return[];let i=this.#gZ(e),o=new Set;this.#gG=null;let r=({physicalColumn:e,colspan:t})=>{let i=this.#gV.toVisualColumn(e);for(let e=0;null!==i&&e<t;e++)o.add(i+e)};return i.forEach((e,i)=>t.has(i)?void 0:r(e)),t.forEach((e,t)=>i.has(t)?void 0:r(e)),Array.from(o)}#gZ(e){let t=new Map;return e.forEach(({row:e,col:i,rowspan:o,colspan:r})=>{let n=this.#gV.toPhysicalRow(e),s=this.#gV.toPhysicalColumn(i);null!==n&&null!==s&&t.set(`${n}:${s}:${o}:${r}`,{physicalColumn:s,colspan:r})}),t}#g2(e){let t=this.#dl(e),i=new Map;return e.forEach(e=>{let t=this.#g3(e);if(null!==t){let o=i.get(t)??new Map;o.set(`${e.col}:${e.colspan}`,e),i.set(t,o)}}),{contentWidths:t,targets:Array.from(i,([e,t])=>({target:e,spans:Array.from(t.values())})).sort((e,t)=>t.target-e.target)}}#gJ({contentWidths:e,targets:t}){let i=this.#gz;return this.#gz=new Map,t.forEach(({target:t,spans:i})=>{let o=this.#gV.toPhysicalColumn(t),r=0;i.forEach(i=>{r=Math.max(r,this.#g6(i,t,e))}),null!==o&&r>0&&this.#gz.set(o,r)}),!function(e,t){if(e.size!==t.size)return!1;for(let[i,o]of e)if(t.get(i)!==o)return!1;return!0}(i,this.#gz)}#g6(e,t,i){let o=i.get(`${e.col}:${e.colspan}`)??0;for(let i=e.col;i<e.col+e.colspan;i++)i===t||this.#gV.isColumnHidden(i)||(o-=this.#gV.getColumnWidth(i));return o}#dl(e){let t=new Map,i=new Map;return this.#g4(e).forEach(e=>{let o=this.#gU.get(e.cacheKey);if(void 0!==o&&o.signature===e.signature)return void t.set(e.key,o.width);let r=i.get(e.colspan)??[];r.push(e),i.set(e.colspan,r)}),i.forEach(e=>{let i=this.#gV.measureTexts(e.map(e=>({column:e.col,texts:e.rows.map((t,i)=>({row:t,value:this.#g5(t,e.col,e.physicalRows[i],e.physicalColumn)}))})));e.forEach(e=>{let o=i.get(e.col)??0;t.set(e.key,o),this.#gU.set(e.cacheKey,{width:o,signature:e.signature})})}),t}#g4(e){let t=new Map;return e.forEach(({row:e,col:i,colspan:o})=>{let r=this.#gV.toPhysicalRow(e),n=this.#gV.toPhysicalColumn(i);if(null===r||null===n)return;let s=`${i}:${o}`,l=t.get(s)??{key:s,cacheKey:`${n}:${o}`,col:i,colspan:o,physicalColumn:n,rows:[],physicalRows:[],signature:""};l.rows.push(e),l.physicalRows.push(r),t.set(s,l)}),t.forEach(e=>{e.signature=this.#g8(e.physicalColumn,e.physicalRows)}),Array.from(t.values())}#g8(e,t){let i=0,o=0;return t.forEach(e=>{i+=e,o^=Math.imul(e+1,0x9e3779b1)}),`${this.#g$.get(e)??0}:${t.length}:${i}:${o}`}#g5(e,t,i,o){let r=this.#gW.get(o)??new Map;return r.has(i)||(r.set(i,this.#gV.formatCellText(e,t)),this.#gW.set(o,r)),r.get(i)}#gX(e){this.#g$.set(e,(this.#g$.get(e)??0)+1)}#gQ(){this.#gW.clear(),this.#gU.clear(),this.#g$.clear()}#g1(e){for(let t=e.row;t<e.row+e.rowspan;t++)if(!this.#gV.isRowHidden(t))return!0;return!1}#g3(e){for(let t=e.col;t<e.col+e.colspan;t++)if(!this.#gV.isColumnHidden(t))return t;return null}}let SI=Object.freeze({capability:"feat:auto_column_size",name:"Auto column size",gate:"enable",tiers:Object.freeze(["standard","professional"])});rI.getSingleton().register("modifyAutoColumnSizeSeed");let ST="autoColumnSize";class SA extends sI{static get PLUGIN_KEY(){return ST}static get PLUGIN_PRIORITY(){return 10}static get LICENSE(){return SI}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}static get CALCULATION_CELLS_BUDGET(){return 1e5}ghostTable=new sz(this.hot);samplesGenerator=new Sx((e,t)=>{let i=this.hot.toPhysicalRow(e),o=this.hot.toPhysicalColumn(t);if(this.hot.rowIndexMapper.isHidden(i)||this.hot.columnIndexMapper.isHidden(o))return!1;let r=this.hot.getCellMetaTransient(e,t),n="",s="";if(r.hidden)return!1;r.spanned&&SM(r.colspan)||(s=n=sO(this.hot.getDataAtCell(e,t),r,this.hot.getCellRenderer(r)));let l="";return this.hot.hasHook("modifyAutoColumnSizeSeed")&&(l=String(this.hot.runHooks("modifyAutoColumnSizeSeed",l,r,s)??l)),{value:n,bundleSeed:l}});inProgress=!1;#g7=null;#g9=null;#pe=!1;#pt=new Set;#pi=!1;measuredColumns=0;columnWidthsMap;#l_=!1;#po=[];#pr=new Map;#pn=new Map;#ps=new Sk({getMergedAreas:()=>{let e=this.hot.getPlugin("mergeCells");return e?.enabled?e.getVisibleMergedAreas():[]},isRowHidden:e=>this.hot.rowIndexMapper.isHidden(this.hot.toPhysicalRow(e)),isColumnHidden:e=>this.hot.columnIndexMapper.isHidden(this.hot.toPhysicalColumn(e)),toPhysicalRow:e=>this.hot.toPhysicalRow(e),toPhysicalColumn:e=>this.hot.toPhysicalColumn(e),toVisualColumn:e=>this.hot.toVisualColumn(e),getColumnWidth:e=>this.hot.getColWidth(e,"StretchColumns"),formatCellText:(e,t)=>this.#pl(e,t,this.hot.getDataAtCell(e,t)),measureTexts:e=>this.#pa(e)});#ph=new Set;#pd=new Map;#pu=0;#pc=!1;#pg=new Set;#pp=!1;#pm=void 0;#pf=null;constructor(e){super(e),this.columnWidthsMap=this.hot.columnIndexMapper.createAndRegisterIndexMap("autoColumnSize","physicalIndexToValue",null,{skipUnchangedWrites:!0}),this.addHook("beforeColumnResize",this.#pw)}isEnabled(){return!1!==this.hot.getSettings()[ST]&&!this.hot.getSettings().colWidths}#pb=!1;#pC=!1;enablePlugin(){this.enabled||(this.#pC=this.#py()&&this.#pb,this.#pb=!0,this.addHook("afterLoadData",this.#ct),this.addHook("afterFontsLoad",this.#pS,10),this.addHook("beforeLoadData",this.#pv),this.addHook("beforeChangeRender",this.#u2),this.addHook("afterSetCellMeta",this.#pR),this.addHook("afterSetSourceDataAtCell",this.#u1),this.addHook("afterFormulasValuesUpdate",this.#px),this.addHook("beforeMergeCells",this.#pE),this.addHook("beforeUnmergeCells",this.#pE),this.addHook("afterMergeCells",this.#pM),this.addHook("afterUnmergeCells",this.#pk),this.addHook("afterUpdateData",this.#ci),this.addHook("beforeUndo",this.#pI),this.addHook("beforeRedo",this.#pI),this.addHook("beforeRender",this.#gF),this.addHook("modifyColWidth",(e,t)=>this.getColumnWidth(t,e),-10),this.addHook("init",this.#pT),this.hot.rowIndexMapper.addLocalHook("cacheUpdated",this.#pA),this.hot.columnIndexMapper.addLocalHook("cacheUpdated",this.#pH),this.hot.columnIndexMapper.addLocalHook("change",this.#pO),this.#ps.markStale(),this.#pf=this.hot.columnIndexMapper.observeMapChange(this.columnWidthsMap,()=>{this.hot.view?.invalidateColumnWidthCache()}),super.enablePlugin())}updatePlugin(e){this.findColumnsWhereHeaderWasChanged().forEach(e=>{this.#pr.set(e,null)}),(this.#py()||this.#pC)&&this.recalculateAllColumnsWidth(),this.#pC=!1,this.#pD(),this.#pn.clear(),this.#pP(),super.updatePlugin()}#py(){let e=this.getSetting("useHeaders"),t=this.#pm!==e;this.#pm=e,this.ghostTable.setSetting("useHeaders",e);let i=this.samplesGenerator.applySamplingOptions({samplingRatio:this.getSetting("samplingRatio"),allowDuplicates:this.getSetting("allowSampleDuplicates")});return t||i}disablePlugin(){this.#pf&&(this.#pf(),this.#pf=null),this.hot.rowIndexMapper.removeLocalHook("cacheUpdated",this.#pA),this.hot.columnIndexMapper.removeLocalHook("cacheUpdated",this.#pH),this.hot.columnIndexMapper.removeLocalHook("change",this.#pO),this.#p_(),this.#ps.clear(),super.disablePlugin(),this.addHook("beforeColumnResize",this.#pw)}calculateVisibleColumnsWidth(){if(!this.hot.countRows())return;let e=this.getFirstVisibleColumn(),t=this.getLastVisibleColumn();if(-1===e||-1===t)return;let i=this.#g9,o=this.hot.forceFullRender,r={from:e,to:t},n={from:0,to:this.hot.countRows()-1};null!==i&&o&&this.#pe?this.#pF(r,n,e=>!i.has(e)):this.#pF(r,n,()=>o),o&&(this.#pp=!1)}calculateColumnsWidth(e={from:0,to:this.hot.countCols()-1},t={from:0,to:this.hot.countRows()-1},i=!1){this.#pF("number"==typeof e?{from:e,to:e}:e,"number"==typeof t?{from:t,to:t}:t,()=>i)}#pF(e,t,i){let o=new Set;nF(e.from,e.to,e=>{let r=this.hot.toPhysicalColumn(e);null===r&&(r=e);let n=i(e);if(n||null===this.columnWidthsMap.getValueAtIndex(r)&&!this.hot._getColWidthFromSettings(e)){let i=n?this.#pn.get(r):void 0;void 0!==i?(this.#pg.add(e),this.#pN(e,i)):(n&&o.add(e),this.#pL(e,t))}}),this.ghostTable.columns.length&&(this.#pB(o),this.measuredColumns=e.to+1)}calculateAllColumnsWidth(e={from:0,to:this.hot.countRows()-1},t=!1){this.#pV({rowsRange:"number"==typeof e?{from:e,to:e}:e,overwriteCache:t,syncColumns:this.getSyncCalculationLimit()+1,reuseSamples:!1,viewportFirst:!1})}#pV({rowsRange:e,overwriteCache:t,syncColumns:i,reuseSamples:o,viewportFirst:r}){let n=this.#pz(r),s=0,l=e.from,a=null,h=0;this.#p_(),this.inProgress=!0,this.#g9=o?new Set(n):null,this.#pt.clear(),t&&(this.#pi=!1);let d=e=>t||null===this.columnWidthsMap.getValueAtIndex(this.#pW(e))&&!this.hot._getColWidthFromSettings(e),u=()=>{this.#g9?.delete(n[s]),s+=1},c=(t,i)=>{let r=t,c=i,g=this.hot.countCols()-1,p=Math.min(e.to,this.hot.countRows()-1);for(;r>0&&s<n.length;){let t=n[s];if(t>g){a=null,u();continue}if(null!==a&&this.#pt.has(t)&&(a=null),this.#pt.delete(t),null===a){if(!d(t)){u(),r-=1;continue}let i=o&&!this.#pr.has(t)?this.#pn.get(this.#pW(t)):void 0;if(void 0!==i){this.#pg.add(t),this.#pN(t,i),u(),r-=1;continue}a=new Map,h=this.#pu,l=e.from}if(l<=p){if(c<=0)return!1;let e=Math.min(p,l+c-1);this.samplesGenerator.generateSample("col",{from:l,to:e},t,a),c-=e-l+1,l=e+1}l>p&&(this.#pN(t,a),this.#pn.set(this.#pW(t),a),this.#p$(t,h),a=null,u(),r-=1)}return s>=n.length},g=()=>{if(!this.ghostTable.columns.length)return!1;let e=this.#pB(),t=!1;if(o&&e.length>0){let i=this.#pU();t=e.some(e=>i.has(e))}return r||(this.measuredColumns=s),t},p=e=>{if(this.#g7=null,!this.hot)return void this.#pG();if(!this.hot.view.isVisible()){t&&!o&&(n.slice(s).forEach(e=>{this.#pn.delete(this.#pW(e))}),this.#pi=!0),this.#p_();return}let i=!1,r=!1;this.#pc=!0;try{i=c(SA.CALCULATION_STEP+1,SA.CALCULATION_CELLS_BUDGET),r=g()}finally{this.#pc=!1}i?(this.#pG(),this.#pj()):this.#g7=tz(()=>p(!0)),o&&e&&(r||i)&&(this.#pe=!0,this.hot.render())};i>0&&(c(i,1/0),g()),s<n.length?p(!1):this.#pG()}#pz(e){let t=Array.from({length:this.hot.countCols()},(e,t)=>t);if(!e)return t;let i=this.#pU();return[...i,...t.filter(e=>!i.has(e))]}#pU(){let e=this.hot.countCols(),t=new Set,i=Math.min(this.hot.view.countFixedColumnsStart(),e),o=Math.max(e-this.hot.view.countFixedColumnsEnd(),0);nF(0,i-1,e=>t.add(e));let r=this.getFirstVisibleColumn(),n=this.getLastVisibleColumn();return -1!==r&&-1!==n&&nF(r,Math.min(n,e-1),e=>t.add(e)),nF(o,e-1,e=>t.add(e)),t}#pW(e){return this.hot.toPhysicalColumn(e)??e}#pq(){if(0===this.#pr.size)return;let e=this.#pr,t=this.#g9;this.inProgress&&null!==t?(e=new Map,this.#pr.forEach((i,o)=>{t.has(o)||(e.set(o,i),this.#pr.delete(o),this.#pd.delete(o))})):(this.#pr=new Map,this.#pd.clear());let i=this.hot.countRows(),o=[],r=[];if(e.forEach((e,t)=>{let n=this.hot.toPhysicalColumn(t);if(null===n||this.hot._getColWidthFromSettings(t))return;let s=this.columnWidthsMap.getValueAtIndex(n);null===e||null==s||2*e.length>=i?o.push(t):r.push({visualColumn:t,cells:e,cachedWidth:s})}),this.#pK(r,o),o.length>0){let e={from:0,to:i-1};o.forEach(t=>{this.#ph.has(t)||this.#pL(t,e)})}this.ghostTable.columns.length&&this.#pB()}#pK(e,t){if(0===e.length)return;let i=new Map,o=[],r=e.map(({visualColumn:e,cells:t})=>({visualColumn:e,samples:this.samplesGenerator.generateSample("col",t.map(e=>e.row),e)})),n=new Map(r.map(({visualColumn:e,samples:t})=>[e,t])),s=this.#pY(r);if(e.forEach(e=>{let r=s.get(e.visualColumn);void 0!==r&&r>e.cachedWidth?(i.set(e.visualColumn,r),this.#pX(e,n.get(e.visualColumn))):e.cells.some(e=>!e.hasOldValue)?t.push(e.visualColumn):(o.push(e),this.#pX(e,n.get(e.visualColumn)))}),o.length>0){let e=this.#pY(o.map(({visualColumn:e,cells:t})=>({visualColumn:e,samples:this.samplesGenerator.generateSampleFromValues("col",t.map(t=>({index:t.row,value:this.#pl(t.row,e,t.oldValue)})))})));o.forEach(({visualColumn:i,cachedWidth:o})=>{let r=e.get(i);void 0!==r&&r>=o&&t.push(i)})}i.size>0&&(this.hot.batchExecution(()=>{i.forEach((e,t)=>{this.columnWidthsMap.setValueAtIndex(this.hot.toPhysicalColumn(t),e)})},!0),this.#ps.markWidthsChanged(),this.#pj())}#pX(e,t){let i=this.hot.toPhysicalColumn(e.visualColumn),o=null===i?void 0:this.#pn.get(i);if(void 0===o)return;let r=new Set(e.cells.map(e=>e.row));if(o.forEach((e,t)=>{let i=e.strings.filter(({row:e})=>void 0===e||!r.has(e));0===i.length?o.delete(t):e.strings=i}),void 0===t)return;let n=this.samplesGenerator.getSampleCount(),s=!1;t.forEach((e,t)=>{let i=o.get(t);void 0===i?o.set(t,e):(i.strings.push(...e.strings),i.strings.length>2*n&&(s=!0))}),s&&null!==i&&this.#pn.delete(i)}#pY(e){let t=new Map,i=e.filter(({samples:e})=>e.size>0);if(0===i.length)return t;let o=this.ghostTable.getSetting("useHeaders");this.ghostTable.setSetting("useHeaders",!1);try{i.forEach(({visualColumn:e,samples:t})=>{this.#pN(e,t)}),this.ghostTable.getWidths((e,i)=>{t.set(e,i)})}finally{this.ghostTable.clean(),this.ghostTable.setSetting("useHeaders",o)}return t}#pl(e,t,i){let o=this.hot.getCellMetaTransient(e,t);return sO(i,o,this.hot.getCellRenderer(o))}#pL(e,t){this.samplesGenerator.generateColumnSamples(e,t).forEach((e,t)=>{let i=this.hot.toPhysicalColumn(t);this.#ph.add(t),this.#pN(t,e),this.#pn.set(null===i?t:i,e)})}#pN(e,t){this.ghostTable.addColumn(e,new Map(t))}#pB(e=new Set){let t=!1,i=[];return this.hot.batchExecution(()=>{this.ghostTable.getWidths((o,r)=>{let n=this.hot.toPhysicalColumn(o);this.columnWidthsMap.getValueAtIndex(n)!==r&&(i.push(o),this.#ps.markWidthsChanged(),t||=this.#pg.has(o)||this.#pp&&e.has(o)),this.columnWidthsMap.setValueAtIndex(n,r)})},!0),this.ghostTable.clean(),this.#pg.clear(),t&&this.#ps.markStylesChanged(),this.#pc||this.#pj(),i}#pj(){let{changed:e,mergesChangedIn:t}=this.#ps.fit();t.forEach(e=>{let t=this.hot.toPhysicalColumn(e);null!==t&&this.#pn.delete(t),this.#pr.set(e,null)}),e&&this.hot.view?.invalidateColumnWidthCache()}#p$(e,t){let i=this.#pd.get(e);void 0!==i&&i<=t&&null===this.#pr.get(e)&&(this.#pr.delete(e),this.#pd.delete(e))}#pa(e){return this.#pY(e.map(({column:e,texts:t})=>({visualColumn:e,samples:this.samplesGenerator.generateSampleFromValues("col",t.map(({row:e,value:t})=>({index:e,value:t})))})))}isReMeasurePending(){return this.inProgress||this.#pi}recalculateAllColumnsWidth(){this.hot.view.isVisible()&&(this.#pr.clear(),this.#pd.clear(),this.#ps.markStale(),this.calculateAllColumnsWidth({from:0,to:this.hot.countRows()-1},!0),this.#pn.clear(),this.#pp=!0)}getSyncCalculationLimit(){let e=this.hot.getSettings()[ST],t=SA.SYNC_CALCULATION_LIMIT,i=this.hot.countCols()-1;if(tM(e)){let o=e.syncLimit;if("string"==typeof o&&ne(o))t=nL(i,o);else{let e=Number(o);t=Number.isFinite(e)?Math.trunc(e):0}}return Math.min(t,i)}getColumnWidth(e,t,i=!0){let o=t;if(void 0===o){let t=this.hot.toPhysicalColumn(e),r=this.#ps.getWidth(t);o=this.columnWidthsMap.getValueAtIndex(t),void 0!==r&&(o=Math.max(o??0,r)),i&&"number"==typeof o&&(o=Math.max(o,50))}return o}getFirstVisibleColumn(){return this.hot.getFirstRenderedVisibleColumn()??-1}getLastVisibleColumn(){return this.hot.getLastRenderedVisibleColumn()??-1}findColumnsWhereHeaderWasChanged(){return this.hot.getColHeader().reduce((e,t,i)=>{let o=this.#po.length;if(o-1<i||this.#po[i]!==t){let t=this.hot.toVisualColumn(i);null!==t&&e.push(t)}return o-1<i?this.#po.push(t):this.#po[i]=t,e},[])}clearCache(e){Array.isArray(e)?this.hot.batchExecution(()=>{e.forEach(e=>{this.columnWidthsMap.setValueAtIndex(e,null),this.#pn.delete(e),this.#ps.clearColumn(e)})},!0):(this.columnWidthsMap.clear(),this.#pn.clear(),this.#ps.clear())}isNeedRecalculate(){return!!this.columnWidthsMap.getValues().slice(0,this.measuredColumns).filter(e=>null===e).length}#gF=()=>{this.#ph.clear(),this.#pi&&this.hot.view.isVisible()&&this.hot.countRows()>0&&this.hot.countCols()>0&&this.#pZ(),this.calculateVisibleColumnsWidth(),this.#pe=!1,this.inProgress&&null===this.#g9||this.#pq(),this.#pj(),!this.inProgress&&this.#pr.size>0&&this.#pq()};#pS=()=>{if(!this.hot.countRows()){this.#pi=!0;return}this.#ps.markStylesChanged(),this.#pZ()};#pZ(){this.#pV({rowsRange:{from:0,to:this.hot.countRows()-1},overwriteCache:!0,syncColumns:0,reuseSamples:!0,viewportFirst:!0}),this.#pe=null!==this.#g9}#pM=(e,t,i)=>{this.#pQ(e,i)};#pE=()=>{this.#ps.markLayoutChanged()};#pk=e=>{this.#pQ(e,!1)};#pQ(e,t){let i=e.getTopStartCorner().col,o=e.getBottomEndCorner().col;null!==i&&null!==o&&(nF(i,o,e=>{let o=this.hot.toPhysicalColumn(e);null!==o&&this.#pn.delete(o),t&&e!==i||(this.#pr.set(e,null),this.#pu+=1,this.#pd.set(e,this.#pu),this.#ps.markMergesChanged(e))}),this.#pJ())}#pJ(){null!==this.#g9&&this.#p_()}#p0(e){this.#g9?.has(e)&&this.#pt.add(e)}#pP(){this.#g9?.forEach(e=>this.#pt.add(e))}#pv=()=>{this.#p_()};#p_(){null!==this.#g7&&(tW(this.#g7),this.#g7=null),null!==this.#g9&&(this.#pi=!0),this.#pG()}#pG(){this.inProgress=!1,this.#g9=null,this.#pe=!1,this.#pt.clear()}#ct=(e,t)=>{this.#pr.clear(),this.#pi=!1,this.#pd.clear(),this.#ps.markRenumbered(),t||this.recalculateAllColumnsWidth()};#u2=e=>{e.forEach(([e,t,i])=>{if("function"==typeof t||null===e)return;let o=this.hot.propToCol(t);if(null===o||!Number.isInteger(o)||this.#p1(e,o))return;let r=this.#pr.get(o);if(null===r)return;let n={row:e,oldValue:i,hasOldValue:!0};void 0===r?this.#pr.set(o,[n]):r.push(n)})};#u1=e=>{e.forEach(([,e])=>{let t="function"==typeof e?null:this.hot.propToCol(e);Number.isInteger(t)?(this.#pn.delete(this.#pW(Number(t))),this.#p0(Number(t))):this.#pn.clear()}),this.#ps.mayHaveMultiColumnMerges()&&e.forEach(([e,t])=>{let i=this.hot.toVisualRow(e),o="function"==typeof t?null:this.hot.propToCol(t);null!==i&&Number.isInteger(o)&&this.#p1(i,Number(o))})};#p1(e,t){if(!this.#ps.mayHaveMultiColumnMerges())return!1;let i=this.hot.getCellMetaTransient(e,t);return!!(i.spanned&&SM(i.colspan))&&(this.#ps.invalidateCell(e,t),!0)}#pR=(e,t)=>{let i=this.hot.toPhysicalColumn(t);null!==i&&(this.#pn.delete(i),this.#pJ()),this.#p1(e,t)};#pA=e=>{let{indexesSequenceChanged:t,trimmedIndexesChanged:i,hiddenIndexesChanged:o}=e;(t||i||o)&&(this.#pn.clear(),this.#pJ(),this.#pD(t?"numbering":"refit"))};#pH=e=>{let{indexesSequenceChanged:t,trimmedIndexesChanged:i,hiddenIndexesChanged:o}=e;t&&(this.#pn.clear(),this.#pJ()),(t||i||o)&&this.#pD(t?"numbering":"refit")};#pD(e="texts"){this.hot.getPlugin("mergeCells")?.enabled&&("numbering"===e?this.#ps.markRenumbered():"texts"===e?this.#ps.markStale():this.#ps.markLayoutChanged())}#pO=()=>{this.#ps.mayHaveMultiColumnMerges()&&this.#ps.markWidthsChanged()};#ci=()=>{this.#pD("numbering"),(null!==this.#g9||this.#pi)&&(this.#pn.clear(),this.#pP())};#pI=()=>{this.hot.getPlugin("mergeCells")?.enabled&&this.#ps.snapshotMerges()};#pw=(e,t,i)=>{let o=e;return i&&(this.calculateColumnsWidth(t,void 0,!0),o=this.getColumnWidth(t,void 0,!1)??o),o};#pT=()=>{this.#po=this.hot.getColHeader(),this.recalculateAllColumnsWidth(),this.#l_=!0};#px=e=>{if(!this.#l_)return;let t=this.hot.getPlugin("formulas"),i=t?.sheetId;e.forEach(e=>{let t=e.address;if(null!=i&&t?.sheet!==i)return;let o=Number(t?.col),r=Number(t?.row);if(!Number.isInteger(o))return;let n=this.hot.toVisualColumn(o);if(null===n)return;let s=Number.isInteger(r)?this.hot.toVisualRow(r):null;if(null!==s&&this.#p1(s,n))return;let l=this.#pr.get(n);if(null===l)return;if(null===s)return void this.#pr.set(n,null);let a={row:s,oldValue:void 0,hasOldValue:!1};void 0===l?this.#pr.set(n,[a]):l.push(a)})};destroy(){this.hot?.rowIndexMapper.removeLocalHook("cacheUpdated",this.#pA),this.hot?.columnIndexMapper.removeLocalHook("cacheUpdated",this.#pH),this.hot?.columnIndexMapper.removeLocalHook("change",this.#pO),this.#p_(),this.ghostTable.clean(),super.destroy()}}function SH(e,t,i){let{view:o,columnIndexMapper:r,rowIndexMapper:n}=e,s={getCell:(t,i)=>e.getCell(t,i,!0),getHeight:e=>e.offsetHeight,getWidth:e=>e.offsetWidth,getRowspan:(t,i)=>e.getCellMetaTransient(t,i).rowspan,getColspan:(t,i)=>e.getCellMetaTransient(t,i).colspan},l=e.isRtl(),a=o.countNotHiddenFixedColumnsStart(),h=o.countNotHiddenFixedRowsTop(),d=o.countNotHiddenFixedRowsBottom(),u=e.getFirstPartiallyVisibleRow(),c=e.getLastPartiallyVisibleRow(),g=e.getFirstPartiallyVisibleColumn(),p=e.getLastPartiallyVisibleColumn(),m=e.rootElement.getBoundingClientRect(),f=e.hasColHeaders()?o.getColumnHeaderHeight():0,w=e.hasRowHeaders()?o.getRowHeaderWidth():0,{rootWindow:b}=e,C=o.isHorizontallyScrollableByWindow()?Math.min(0,m.left):m.left,y=o.isVerticallyScrollableByWindow()?Math.min(0,m.top):m.top,S=o.isHorizontallyScrollableByWindow()?b.innerWidth:m.left+o.getViewportWidth()+w,v=o.isVerticallyScrollableByWindow()?b.innerHeight:m.top+o.getViewportHeight()+f,R=nB(t,C,S),x=nB(i,y,v),E=u??0,M=c??E,k=null;if(a>0){let t=r.getVisualFromRenderableIndex(0),i=r.getVisualFromRenderableIndex(a-1),o=null!==t?r.getNearestNotHiddenIndex(t,1):null;if(null!==o&&null!==i){let t=sZ(s,E,M,o,i),r=e.getCell(t,o,!0);if(r instanceof HTMLElement){let e=r.getBoundingClientRect();k=sK(s,t,o,i,l?e.right-R:R-e.left)}}}if(null===k&&(k=function(e,t,i,o,r){let{view:n,columnIndexMapper:s}=e,l=e.countCols(),a=n.countFixedColumnsEnd();if(!(a>0))return null;let h=s.getNearestNotHiddenIndex(l-a,1),d=s.getNearestNotHiddenIndex(l-1,-1);if(null===h||null===d||h>d||h<l-a)return null;let u=sZ(t,o,r,h,d),c=e.getCell(u,h,!0);if(!(c instanceof HTMLElement))return null;let g=c.getBoundingClientRect(),p=e.isRtl()?g.right-i:i-g.left;return p<0?null:sK(t,u,h,d,p)??d}(e,s,R,E,M)),null===k){let t=sZ(s,E,M,g,p),i=e.getCell(t,g,!0);if(i instanceof HTMLElement){let o=i.getBoundingClientRect(),r=l?o.right-R:R-o.left;null===(k=sK(s,t,g,p,r))&&(k=r<0?g??0:p??e.countCols()-1)}else k=g??0}null===k&&tf("Failed to resolve cell coordinates from mouse position.");let I=g??0,T=p??I,A=null;if(h>0){let t=n.getVisualFromRenderableIndex(0),i=n.getVisualFromRenderableIndex(h-1),o=null!==t?n.getNearestNotHiddenIndex(t,1):null;if(null!==o&&null!==i){let t=sX(s,I,T,o,i),r=e.getCell(o,t,!0);r instanceof HTMLElement&&(A=sY(s,t,o,i,x-r.getBoundingClientRect().top))}}if(null===A&&d>0){let t=n.getNotHiddenIndexesLength(),i=n.getVisualFromRenderableIndex(t-d),o=n.getVisualFromRenderableIndex(t-1),r=null!==i?n.getNearestNotHiddenIndex(i,1):null,l=null!==o?n.getNearestNotHiddenIndex(o,-1):null;if(null!==r&&null!==l){let t=sX(s,I,T,r,l),i=e.getCell(r,t,!0);if(i instanceof HTMLElement){let e=x-i.getBoundingClientRect().top;e>=0&&null===(A=sY(s,t,r,l,e))&&(A=l)}}}if(null===A){let t=u??0,i=c??t,o=sX(s,I,T,t,i),r=e.getCell(u,o,!0);if(r instanceof HTMLElement){let t=x-r.getBoundingClientRect().top;null===(A=sY(s,o,u,c,t))&&(A=t<0?u??0:c??e.countRows()-1)}else A=u??0}return null===A&&tf("Failed to resolve cell coordinates from mouse position."),e._createCellCoords(A,k)}function SO(e,t,i){return e<t?t-e:e>i?e-i:0}function SD(e,t){return e<=0?0:t>0?Math.ceil(e/t):1}let SP=Object.freeze({horizontal:"horizontal",vertical:"vertical"}),S_=Object.freeze({capability:"feat:autofill",name:"Autofill",gate:"enable",tiers:Object.freeze(["standard","professional"])});rI.getSingleton().register("modifyAutofillRange"),rI.getSingleton().register("beforeAutofill"),rI.getSingleton().register("afterAutofill");let SF="fillHandle",SN=Object.freeze({capability:"feat:auto_row_size",name:"Auto row size",gate:"enable",tiers:Object.freeze(["standard","professional"])}),SL="autoRowSize",SB="htFirstDatasetColumnNotRendered",SV="htAutoRowSize";class Sz extends sI{static get PLUGIN_KEY(){return SL}static get PLUGIN_PRIORITY(){return 40}static get LICENSE(){return SN}static get SETTING_KEYS(){return!0}static get DEFAULT_SETTINGS(){return{samplingRatio:null,allowSampleDuplicates:!1}}static get CALCULATION_STEP(){return 50}static get SYNC_CALCULATION_LIMIT(){return 500}headerHeight=null;ghostTable=new sz(this.hot);samplesGenerator=new Sx((e,t)=>{let i,o,r=this.hot.toPhysicalColumn(t);if(this.hot.columnIndexMapper.isHidden(r))return!1;let n=e,s=t,l=null;if(e>=0&&t>=0&&(i=this.hot.getCellMetaTransient(e,t)).hidden){if(null===(l=this.#p2(e,t)))return!1;n=l.row,s=l.col,i=this.hot.getCellMetaTransient(n,s)}return(e>=0?(o=this.hot.getDataAtCell(n,s),i&&(o=sO(o,i,this.hot.getCellRenderer(i)))):-1===e&&(o=this.hot.getColHeader(t)),null===l)?{value:o}:{value:o,block:l,bundleSeed:`mergedBlock:${n}:${s}`}});inProgress=!1;measuredRows=0;rowHeightsMap;#p3=[];#pf=null;#l_=!1;#p6=!1;#p4=!1;#p5=!1;#p8=0;#p7=!1;#p9=new Map;#me=new Map;#mt=new Set;constructor(e){super(e),this.rowHeightsMap=this.hot.rowIndexMapper.createAndRegisterIndexMap("autoRowSize","physicalIndexToValue",null,{skipUnchangedWrites:!0}),this.addHook("beforeRowResize",this.#mi)}isEnabled(){return sL(this.hot.getSettings()[SL])}#pb=!1;#pC=!1;enablePlugin(){this.enabled||(this.#pC=this.#py()&&this.#pb,this.#pb=!0,this.addHook("afterLoadData",this.#ct),this.addHook("afterFontsLoad",this.#pS,11),this.addHook("beforeChangeRender",this.#u2),this.addHook("beforeColumnResize",this.#pw),this.addHook("afterFormulasValuesUpdate",this.#px),this.addHook("beforeViewRender",this.#mo),this.addHook("beforeRender",this.#gF),this.addHook("modifyRowHeight",(e,t)=>this.getRowHeight(t,e)),this.addHook("init",this.#pT),this.addHook("modifyColumnHeaderHeight",()=>this.getColumnHeaderHeight()),this.#pf=this.hot.rowIndexMapper.observeMapChange(this.rowHeightsMap,()=>{this.hot.view?.invalidateRowHeightCache()}),this.hot.rowIndexMapper.addLocalHook("cacheUpdated",this.#mr),this.hot.columnIndexMapper.addLocalHook("cacheUpdated",this.#mr),this.addHook("afterMergeCells",this.#mn),this.addHook("afterUnmergeCells",this.#mn),this.addHook("afterUndo",this.#ms),this.addHook("afterRedo",this.#ms),this.addHook("afterUpdateSettings",this.#ml),this.#p7=!0,iG(this.hot.rootElement,SV),super.enablePlugin())}updatePlugin(e){(this.#py()||this.#pC)&&this.clearCache(),this.#pC=!1,super.updatePlugin()}#py(){return this.samplesGenerator.applySamplingOptions({samplingRatio:this.getSetting("samplingRatio"),allowDuplicates:this.getSetting("allowSampleDuplicates")})}disablePlugin(){this.#pf&&(this.#pf(),this.#pf=null),this.#ma(),this.headerHeight=null,this.#p5=!1,this.#p7=!1,this.#p9.clear(),this.#me.clear(),this.#mt.clear(),ij(this.hot.rootElement,SV),super.disablePlugin(),this.#mh(!1),this.addHook("beforeRowResize",this.#mi)}calculateVisibleRowsHeight(){if(!this.hot.countCols())return;let e=this.getFirstVisibleRow(),t=this.getLastVisibleRow();if(-1===e||-1===t)return;let i=this.hot.forceFullRender;this.calculateRowsHeight({from:e,to:t},void 0,i)}calculateRowsHeight(e={from:0,to:this.hot.countRows()-1},t={from:0,to:this.hot.countCols()-1},i=!1){let o="number"==typeof e?{from:e,to:e}:e,r="number"==typeof t?{from:t,to:t}:t;if((i||null===this.headerHeight)&&null!==this.hot.getColHeader(0)){let e=this.samplesGenerator.generateRowSamples(-1,r);this.ghostTable.addColumnHeadersRow(e.get(-1))}nF(o.from,o.to,e=>{let t=this.hot.toPhysicalRow(e);null===t&&(t=e),(i||null===this.rowHeightsMap.getValueAtIndex(t))&&this.samplesGenerator.generateRowSamples(e,r).forEach((e,t)=>this.ghostTable.addRow(t,e))}),this.ghostTable.rows.length&&(this.hot.batchExecution(()=>{this.ghostTable.getHeights((e,t)=>{e<0?this.headerHeight=Math.round(t):this.rowHeightsMap.setValueAtIndex(this.hot.toPhysicalRow(e),this.#md(t))})},!0),this.measuredRows=o.to+1,this.ghostTable.clean())}calculateAllRowsHeight(e={from:0,to:this.hot.countCols()-1},t=!1){let i=0,o=this.hot.countRows()-1;tW(this.#p8),this.#p8=0,this.inProgress=!0;let r=()=>{if(!this.hot){tW(this.#p8),this.#p8=0,this.inProgress=!1;return}try{this.calculateRowsHeight({from:i,to:Math.min(i+Sz.CALCULATION_STEP,o)},e,t)}catch(e){throw this.#mu(),e}(i=i+Sz.CALCULATION_STEP+1)<o?this.#p8=tz(r):(tW(this.#p8),this.#p8=0,this.inProgress=!1,this.#mc())},n=this.getSyncCalculationLimit();if(n>=0){try{this.calculateRowsHeight({from:0,to:n},e,t)}catch(e){throw this.#mu(),e}i=n+1}i<o?r():(this.inProgress=!1,this.#mc())}#mu(){tW(this.#p8),this.#p8=0,this.inProgress=!1,this.#p4=!0,this.ghostTable.clean()}#p2(e,t){let i=this.hot.getPlugin("mergeCells");return i?.enabled?i.getBlockDrawnOn(e,t):null}#mr=({hiddenIndexesChanged:e,trimmedIndexesChanged:t,indexesSequenceChanged:i})=>{(e||t||i)&&(this.#p7=!0)};#mn=()=>{this.#p7=!0};#ms=()=>{this.#p7=!0,this.#mg(!0),this.#mc()};#ml=e=>{tM(e)&&t_(e,"mergeCells")&&(this.#p7=!0)};#ma(){this.hot?.rowIndexMapper.removeLocalHook("cacheUpdated",this.#mr),this.hot?.columnIndexMapper.removeLocalHook("cacheUpdated",this.#mr)}#mg(e=!1){if(!this.#p7)return;this.#p7=!1;let t=this.hot.getPlugin("mergeCells"),i=new Map,o=new Map;t?.enabled&&t.getCellsBlocksAreDrawnOn().forEach(({row:e,col:t,colspan:r,originRow:n,originCol:s})=>{let l=this.hot.toPhysicalRow(e),a=this.hot.toPhysicalColumn(t),h=this.hot.toPhysicalRow(n),d=this.hot.toPhysicalColumn(s);null!==l&&null!==a&&(i.set(`${l}:${a}:${r}`,l),null!==h&&null!==d&&o.set(`${h}:${d}`,l))});let r=new Set;i.forEach((e,t)=>{this.#p9.has(t)||r.add(e)}),this.#p9.forEach((e,t)=>{i.has(t)||r.add(e)}),this.#mt.forEach(e=>{this.hot.rowIndexMapper.isHidden(e)||(this.#mt.delete(e),r.add(e))}),this.#p9=i,this.#me=o,this.#mp(Array.from(r),e)}#mp(e,t){if(0===e.length)return;let i=this.getFirstVisibleRow(),o=this.getLastVisibleRow(),r=[];this.hot.batchExecution(()=>{e.forEach(e=>{this.rowHeightsMap.setValueAtIndex(e,null)})},!0),e.forEach(e=>{if(this.hot.rowIndexMapper.isHidden(e))return void this.#mt.add(e);let n=this.hot.toVisualRow(e);null!==n&&(t||!(null!==n&&n>=i&&n<=o))&&r.push(e)}),this.#mm(r)}#md(e){let{stylesHandler:t}=this.hot;return function(e,t,i=0){return e<=t+i+.05?Math.round(e):Math.ceil(e)}(e,t.getDefaultRowHeight()??0,t.getMaxDefaultRowOvergrowth())}#mc(){this.inProgress||0===this.hot.countCols()||0===this.#p3.length||(this.#mf(this.#p3),this.#p3=[])}#mf(e){let t={from:0,to:this.hot.countCols()-1};e.forEach(e=>{this.samplesGenerator.generateRowSamples(e,t).forEach((e,t)=>this.ghostTable.addRow(t,e))}),this.ghostTable.rows.length&&(this.hot.batchExecution(()=>{this.ghostTable.getHeights((e,t)=>{let i=this.hot.toPhysicalRow(e);this.rowHeightsMap.setValueAtIndex(i,this.#md(t))})},!0),this.ghostTable.clean())}recalculateAllRowsHeight(){this.hot.view.isVisible()&&this.calculateAllRowsHeight({from:0,to:this.hot.countCols()-1},!0)}getSyncCalculationLimit(){let e=this.hot.getSettings()[SL],t=Sz.SYNC_CALCULATION_LIMIT,i=this.hot.countRows()-1;if(tM(e))if(ne(t=this.getSetting("syncLimit")))t=nL(i,t);else{let e=Number(t);t=Number.isFinite(e)?Math.trunc(e):0}return Math.min(t,i)}getRowHeight(e,t=this.hot.stylesHandler.getDefaultRowHeight(e)??0){if(e<0)return this.headerHeight??t;let i=this.hot.toPhysicalRow(e);if(this.hot.rowIndexMapper.isHidden(i))return t;let o=this.rowHeightsMap.getValueAtIndex(i),r=t;return null!=o&&o>t&&(r=o,this.hot.stylesHandler.firstRenderedRowDrawsTopBorder()&&e===this.hot.view.getFirstRenderedVisibleRow()&&(r+=1)),r}getColumnHeaderHeight(){return this.headerHeight}getFirstVisibleRow(){return this.hot.getFirstRenderedVisibleRow()??-1}getLastVisibleRow(){return this.hot.getLastRenderedVisibleRow()??-1}clearCache(e){this.headerHeight=null,Array.isArray(e)?(this.hot.batchExecution(()=>{e.forEach(e=>{this.rowHeightsMap.setValueAtIndex(e,null)})},!0),this.#mm(e)):(this.rowHeightsMap.clear(),this.#p4=!0)}clearCacheByRange(e){let{from:t,to:i}="number"==typeof e?{from:e,to:e}:e,o=[];this.hot.batchExecution(()=>{nF(Math.min(t,i),Math.max(t,i),e=>{this.rowHeightsMap.setValueAtIndex(e,null),o.push(e)})},!0),this.#mm(o)}#mm(e){e.forEach(e=>{let t=this.hot.toVisualRow(e);null===t||this.#p3.includes(t)||this.#p3.push(t)})}isNeedRecalculate(){return!!this.rowHeightsMap.getValues().slice(0,this.measuredRows).filter(e=>null===e).length}#mh(e){let t=this.hot.getFirstRenderedVisibleColumn(),i=this.hot.columnIndexMapper.getPhysicalFromVisualIndex(t);!1===e||i===this.hot.columnIndexMapper.getPhysicalFromRenderableIndex(0)?ij(this.hot.rootElement,SB):iG(this.hot.rootElement,SB)}#mo=()=>{this.#mh()};#gF=()=>{if(this.#mg(),this.calculateVisibleRowsHeight(),this.#mc(),this.#p5&&this.hot.view.isVisible()&&!this.#mw()&&(this.#p5=!1,this.#p4=!0),this.#p4&&this.hot.countCols()>0&&this.hot.countRows()>0&&this.hot.view.isVisible()){this.#p4=!1;try{this.recalculateAllRowsHeight()}catch(e){throw this.#p4=!0,e}}};#pw=()=>{this.#p6||(this.#p6=!0,this.hot._registerTimeout(()=>{this.#p6=!1,this.recalculateAllRowsHeight()},0))};#mi=(e,t,i)=>{let o=e;return i&&(this.calculateRowsHeight(t,void 0,!0),o=this.getRowHeight(t)),o};#pS=()=>{if(0===this.hot.countCols()){this.#p4=!0;return}this.recalculateAllRowsHeight(),this.#p5=this.#mw()};#mw(){let e=this.hot.getPlugin("autoColumnSize");return e?.enabled===!0&&e.isReMeasurePending()}#ct=(e,t)=>{t||this.recalculateAllRowsHeight()};#u2=e=>{let t=new Set;e.forEach(e=>{let[i,o]=e;if(null===i){let t=this.hot.getPhysicalRowOfChange(e);null!==t&&this.rowHeightsMap.setValueAtIndex(t,null);return}t.add(Number(i)),this.#mb(Number(i),o).forEach(e=>t.add(e))}),t.forEach(e=>{this.#p3.push(e)})};#mb(e,t){let i=this.hot.toPhysicalRow(e);if(0===this.#me.size||null===i)return[];let o="string"==typeof t||"number"==typeof t?this.hot.propToCol(t):null,r="number"==typeof o?this.hot.toPhysicalColumn(o):null,n=[];if(null===r)this.#me.forEach((e,t)=>{t.startsWith(`${i}:`)&&n.push(e)});else{let e=this.#me.get(`${i}:${r}`);void 0!==e&&n.push(e)}return n.flatMap(e=>{let t=this.hot.toVisualRow(e);return null===t?[]:[t]})}#pT=()=>{this.recalculateAllRowsHeight(),this.#l_=!0};#px=e=>{if(!this.#l_)return;let t=this.hot.getPlugin("formulas"),i=t?.sheetId,o=e.reduce((e,t)=>{if(null!=i&&t.address?.sheet!==i)return e;let o=Number(t.address?.row);if(Number.isInteger(o)){let t=this.hot.toVisualRow(o);null!==t&&-1===e.indexOf(t)&&e.push(t)}return e},[]);this.#p3.push(...o)};destroy(){this.#ma(),this.ghostTable.clean(),super.destroy()}}let SW=Object.freeze({capability:"feat:auto_row_header_size",name:"Auto row header size",gate:"enable",tiers:Object.freeze(["standard","professional"])}),S$="autoRowHeaderSize";class SU extends sI{static get PLUGIN_KEY(){return S$}static get PLUGIN_PRIORITY(){return 45}static get LICENSE(){return SW}static get SETTING_KEYS(){return!0}static get SYNC_CALCULATION_LIMIT(){return 500}static get CALCULATION_STEP(){return 1e3}static get CALCULATION_BUDGET(){return 8}static get MEASUREMENT_PADDING(){return 8}static get DEFAULT_SETTINGS(){return{samplingRatio:null,allowSampleDuplicates:!1,syncLimit:SU.SYNC_CALCULATION_LIMIT}}#mC=new sz(this.hot);#my=new Sx(e=>null!==this.hot.rowIndexMapper.getRenderableFromVisualIndex(e)&&{value:this.#mS(e)});#mS=e=>this.hot.getRowHeader(e);#mv=null;#mR=null;#mx=null;#mE="";#mM=!1;#mk=null;#mI=[];#mT=null;#mA=0;#mH=[];#mO=[];#mD=null;#mP=!1;#m_=null;#mF=null;isEnabled(){let e=this.hot.getSettings()[S$];return!0===e||"object"==typeof e&&null!==e}enablePlugin(){this.enabled||(this.#my.applySamplingOptions({samplingRatio:this.getSetting("samplingRatio"),allowDuplicates:this.getSetting("allowSampleDuplicates")}),this.addHook("modifyRowHeaderWidth",this.#mN,-10),this.addHook("afterLoadData",this.#mL),this.addHook("afterUpdateData",this.#mL),this.addHook("afterCreateRow",this.#mL),this.addHook("afterRemoveRow",this.#mL),this.addHook("afterColumnSort",this.#mL),this.addHook("afterSetTheme",this.#mL),this.addHook("afterFontsLoad",this.#mL,10),this.addHook("afterFormulasValuesUpdate",this.#mL),this.addHook("afterSetDataAtCell",this.#mB),this.addHook("afterSetSourceDataAtCell",this.#mV),super.enablePlugin())}updatePlugin(e){this.clearCache(),this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){super.disablePlugin(),this.clearCache()}getSyncCalculationLimit(){let e=this.hot.countRows(),t=this.getSetting("syncLimit"),i=SU.SYNC_CALCULATION_LIMIT;if("string"==typeof t&&ne(t))i=nL(e,t);else{let e=Number(t);Number.isFinite(e)&&(i=Math.trunc(e))}return Math.max(0,Math.min(i,e))}getRowHeaderWidth(e=0){return this.#mz()[e<0?-e-1:e]??0}getRowHeaderWidths(){return this.#mz().slice()}clearCache(){this.#p_(),this.#mW(),this.#m$(null),this.#mE=""}destroy(){this.#p_(),this.#mW(),this.#mC.clean(),this.#mv=null,super.destroy()}#mz(){return this.#mP||(null===this.#mR||this.#mE!==this.#mU())&&this.#mG(),this.#mR??[]}#m$(e){this.#mR=e,this.#mx=null===e?null:e.map(e=>Math.max(e,50))}#mU(){return[this.hot.countRows(),this.hot.rowIndexMapper.getRenderableIndexesLength(),this.hot.countRowHeaders()].join(",")}#mG(){this.#p_(),this.#mE=this.#mU();let e=this.hot.countRows();if(e<1)return void this.#m$([]);let t=this.#mj();this.#mI=t.renderers,this.#mT=t.gridRenderer,this.#mk=this.#mI.map(()=>new Map),this.#mH=this.#mI.map(()=>-1),this.#mO=this.#mI.map(()=>0),this.#mA=0,this.#mq(Math.min(this.getSyncCalculationLimit(),e)-1);let i=this.#mA>=e;this.#mK(i),i?this.#mY():(this.#mM=!0,this.#mX())}#mY(){this.#mk=null,this.#mI=[],this.#mT=null,this.#mM=!1}#p_(){null!==this.#mD&&(tW(this.#mD),this.#mD=null),this.#mk=null,this.#mI=[],this.#mT=null,this.#mA=0,this.#mM=!1}#mX(){this.#mD=tz(()=>{if(this.#mD=null,!this.hot||!this.enabled||null===this.#mk)return void this.#p_();let e=this.hot.countRows(),t=performance.now()+SU.CALCULATION_BUDGET;do this.#mq(Math.min(this.#mA+SU.CALCULATION_STEP-1,e-1));while(this.#mA<e&&performance.now()<t);let i=this.#mA>=e,o=this.#mK(i);i?this.#mY():this.#mX(),o&&this.hot.render()})}#mq(e){if(null===this.#mk||e<this.#mA)return;let t={from:this.#mA,to:e};this.#mI.forEach((e,i)=>{this.#mZ(this.#mk[i],e,t,e===this.#mT)}),this.#mA=e+1}#mZ(e,t,i,o){this.#mS=o?e=>this.hot.getRowHeader(e):e=>this.#mQ(t,e),this.#my.generateSample("col",i,-1,e)}#mK(e){if(null===this.#mk)return!1;let t=this.#mk.map((e,t)=>{let i=this.#mJ(e);return i!==this.#mH[t]&&(this.#mH[t]=i,this.#mO[t]=0===i?0:this.#m0(e,this.#mI[t],t)),this.#mO[t]}),i=this.#mR,o=e||null===i||i.length!==t.length?t:t.map((e,t)=>Math.max(e,i[t]));return this.#m$(o),null===i||i.length!==o.length||o.some((e,t)=>e!==i[t])}#mJ(e){let t=0;return e.forEach(e=>{t+=e.strings.length}),t}#mj(){let e=[],t=null;return this.hot.hasRowHeaders()&&(t=(e,t)=>{let i=e>=0?this.hot.rowIndexMapper.getVisualFromRenderableIndex(e):e;this.hot.view.appendRowHeader(i,t)},e.push(t)),this.hot.runHooks("afterGetRowHeaderRenderers",e),{renderers:e,gridRenderer:t}}#mQ(e,t){null===this.#mv&&(this.#mv=this.hot.rootDocument.createElement("th"));let i=this.#mv;return i.textContent="",e(this.#m1(t),i),i.textContent??""}#m1(e){return this.hot.rowIndexMapper.getRenderableFromVisualIndex(e)??e}#m0(e,t,i){let o=0;this.#mP=!0;try{this.#mC.addRowHeadersColumn(new Map(e),i,(e,i)=>{t(this.#m1(e),i)}),this.#mC.getWidths((e,t)=>{o=Math.max(o,t)})}finally{this.#mC.clean(),this.#mP=!1}return 0===o?0:o+SU.MEASUREMENT_PADDING}#mN=e=>{this.#mz();let t=this.#mx;return null===t||0===t.length?e:1===t.length?t[0]:t.slice()};#h9(){this.#p_(),this.#mW(),this.#mE=""}#mL=()=>{this.#h9()};#mB=e=>{if(!Array.isArray(e)||0===e.length||null===this.#mR)return;if(this.#mM)return void this.#h9();let t=this.#m_??new Set;(e.forEach(e=>t.add(e[0])),t.size>SU.SYNC_CALCULATION_LIMIT)?this.#h9():(this.#m_=t,this.#m2())};#mV=e=>{Array.isArray(e)&&this.#mB(e.map(([e,...t])=>[this.hot.toVisualRow(e),...t]))};#m2(){null===this.#mF&&(this.#mF=tz(()=>{this.#mF=null;let e=null===this.#m_?[]:Array.from(this.#m_);this.#m_=null,this.hot&&this.enabled&&null!==this.#mR&&0!==e.length&&this.#m3(e)&&this.hot.render()}))}#mW(){null!==this.#mF&&(tW(this.#mF),this.#mF=null),this.#m_=null}#m3(e){let{renderers:t,gridRenderer:i}=this.#mj();if(t.length!==this.#mR.length)return this.#h9(),!1;let o=[...this.#mR],r=!1;return t.forEach((t,n)=>{let s=new Map;if(this.#mZ(s,t,e,t===i),0===s.size)return;let l=this.#m0(s,t,n);l>o[n]&&(o[n]=l,r=!0)}),r&&this.#m$(o),r}}let SG=class extends dm{constructor(){super(e=>e)}insert(e,t){let i=dC(this.indexedValues,t);this.indexedValues=dR(i,e,t,this.initValueOrFn),super.insert(e,t)}remove(e){let t=dx(this.indexedValues,e);this.indexedValues=db(t,e),super.remove(e)}},Sj=class extends dm{constructor(){super(e=>e)}insert(e,t){this.indexedValues=dR(this.indexedValues,e,t,(e,t)=>this.getNextValue(t)),super.insert(e,t)}remove(e){this.indexedValues=dx(this.indexedValues,e),super.remove(e)}getNextValue(e){return Math.max(...this.getValues())+1+e}},Sq=Object.freeze({capability:"feat:bind_rows_with_headers",name:"Bind rows with headers",gate:"enable",tiers:Object.freeze(["standard","professional"])}),SK="bindRowsWithHeaders",SY=new Map([["loose",SG],["strict",Sj]]);function SX(e){let{wtOverlays:t}=e.view._wt;return[t.inlineEndOverlay?.clone?.wtTable.THEAD,t.topInlineEndCornerOverlay?.clone?.wtTable.THEAD].filter(e=>!!e)}let SZ=["plugin:NestedHeaders"],SQ=Object.freeze({capability:"feat:collapsible_columns",name:"Collapsible columns",gate:"enable",tiers:Object.freeze(["standard","professional"])}),SJ="collapsibleColumns",S0=["nestedHeaders"],S1="collapsibleIndicator",S2="collapsibleColumns.visibleWhen",S3="columnSorting";function S6(e){return"object"==typeof e&&null!==e&&"groups"in e&&Array.isArray(e.groups)&&"configVersion"in e&&"number"==typeof e.configVersion}let S4=new Map([["collapse",{hideColumn:!0,beforeHook:"beforeColumnCollapse",afterHook:"afterColumnCollapse"}],["expand",{hideColumn:!1,beforeHook:"beforeColumnExpand",afterHook:"afterColumnExpand"}]]);class S5 extends sI{static get PLUGIN_KEY(){return SJ}static get PLUGIN_PRIORITY(){return 290}static get PLUGIN_DEPS(){return[...SZ]}static get LICENSE(){return SQ}static get SETTING_KEYS(){return[SJ,...S0]}nestedHeadersPlugin=null;headerStateManager=null;#m6=null;#m4=null;#m5=new WeakMap;#m8=[];#m7=!1;#m9=!1;isEnabled(){return!!this.hot.getSettings()[SJ]}enablePlugin(){this.enabled||(this.pluginName&&(this.#m6=this.hot.columnIndexMapper.createAndRegisterIndexMap(this.pluginName,"hiding")),this.#m4=this.hot.columnIndexMapper.createAndRegisterIndexMap(S2,"hiding"),this.nestedHeadersPlugin=this.hot.getPlugin("nestedHeaders"),this.headerStateManager=this.nestedHeadersPlugin.getStateManager(),this.nestedHeadersPlugin.addLocalHook("afterHeaderStateRebuild",this.#fe),this.addHook("afterGetColHeader",this.#ft),this.addHook("beforeOnCellMouseDown",this.#fi),this.addHook("afterCreateCol",this.#fo),this.addHook("afterRemoveCol",this.#fo),this.addHook("beforeColumnMove",this.#fr),this.addHook("afterColumnMove",this.#fo),this.hot.columnIndexMapper.addLocalHook("beforeCacheUpdate",this.#fn),this.hot.columnIndexMapper.addLocalHook("afterCacheUpdate",this.#fs),this.registerShortcuts(),this.#m7=!0,this.#m9=!0,super.enablePlugin())}updatePlugin(){this.#m7=!0,super.updatePlugin()}onGridReady(){this.#m9&&(this.#m9=!1,this.hot.getSettings().nestedHeaders||this.#fl()||ir("You need to configure the Nested Headers plugin in order to use collapsible headers.")),this.#m7=!1,this.#fa()}#fl(){let{sheetsBar:e}=this.hot.getSettings(),t=tM(e)?e.sheets:void 0;return Array.isArray(t)&&t.some(e=>!!e?.settings?.nestedHeaders)}#fa(){if(!this.nestedHeadersPlugin?.detectedOverlappedHeaders){let{collapsibleColumns:e}=this.hot.getSettings();"boolean"==typeof e?this.headerStateManager?.mapState(e=>({collapsible:Number(e.origColspan)>1})):Array.isArray(e)&&(this.headerStateManager?.mapState(()=>({collapsible:!1})),this.headerStateManager?.mergeStateWith(e))}this.#fh()}disablePlugin(){this.hot.columnIndexMapper.removeLocalHook("beforeCacheUpdate",this.#fn),this.hot.columnIndexMapper.removeLocalHook("afterCacheUpdate",this.#fs),this.#m8=[],this.pluginName&&this.hot.columnIndexMapper.unregisterMap(this.pluginName),this.hot.columnIndexMapper.unregisterMap(S2),this.#m6=null,this.#m4=null,this.nestedHeadersPlugin?.removeLocalHook("afterHeaderStateRebuild",this.#fe),this.nestedHeadersPlugin=null,this.unregisterShortcuts(),this.clearButtons(),super.disablePlugin(),this.#m9=!1}registerShortcuts(){let e=this.hot.getShortcutManager().getContext("grid"),t=e?.getShortcuts(["Enter"]).some(({group:e})=>e===S3);e?.addShortcut({keys:[["Enter"]],callback:()=>{let e=this.hot.getSelectedRangeActive();if(!e)return;let{row:t,col:i}=e.highlight;if(null===t||null===i)return;let{collapsible:o,isCollapsed:r,columnIndex:n}=this.headerStateManager?.getHeaderTreeNodeData(t,i)??{collapsible:!1,isCollapsed:!1,columnIndex:0,headerLevel:0};if(o)return r?this.expandSection({row:t,col:n}):this.collapseSection({row:t,col:n}),!1},runOnlyIf:()=>!!(this.hot.getSelectedRangeActive()?.isSingle()&&this.hot.getSelectedRangeActive()?.highlight.isHeader()),group:SJ,relativeToGroup:t?S3:ml,position:"before"})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid")?.removeShortcutsByGroup(SJ)}clearButtons(){if(!this.hot.view)return;let e=this.hot.view._wt.wtTable.THEAD,t=this.hot.view._wt.wtOverlays.topOverlay?.clone?.wtTable.THEAD??null,i=this.hot.view._wt.wtOverlays.topInlineStartCornerOverlay?this.hot.view._wt.wtOverlays.topInlineStartCornerOverlay.clone?.wtTable.THEAD??null:null,o=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)};e&&t&&nF(0,e.childNodes.length-1,r=>{let n=e.childNodes[r],s=t.childNodes[r],l=i?i.childNodes[r]:null;nF(0,n.childNodes.length-1,e=>{let t=n.childNodes[e].querySelector(`.${S1}`);o(t),s&&s.childNodes[e]&&o(t=s.childNodes[e].querySelector(`.${S1}`)),i&&l&&l.childNodes[e]&&o(t=l.childNodes[e].querySelector(`.${S1}`))}),SX(this.hot).forEach(e=>{e.childNodes[r]?.childNodes.forEach(e=>{o(e.querySelector(`.${S1}`))})})})}expandSection(e){this.toggleCollapsibleSection([e],"expand")}collapseSection(e){this.toggleCollapsibleSection([e],"collapse")}toggleAllCollapsibleSections(e){let t=this.headerStateManager?.mapNodes(t=>{let{collapsible:i,origColspan:o,headerLevel:r,columnIndex:n,isCollapsed:s}=t;if(!0===i&&Number(o)>1&&(s&&"expand"===e||!s&&"collapse"===e))return{row:this.headerStateManager?.levelToRowCoords(Number(r))??0,col:n}});this.toggleCollapsibleSection(t,e)}collapseAll(){this.toggleAllCollapsibleSections("collapse")}expandAll(){this.toggleAllCollapsibleSections("expand")}toggleCollapsibleSection(e,t){this.runOperation("expand"===t?"expand_columns":"collapse_columns",()=>this.#fd(e,t))}captureState(e){if(null===this.headerStateManager)return;let t=this.headerStateManager.getCollapsedGroupsVersion(),i=this.headerStateManager.getConfigVersion(),o=S6(e)&&e.configVersion===i;if(o&&this.#m5.get(e)===t)return e;let r=this.headerStateManager.exportCollapsedGroups(),n=o&&e.groups.length===r.length&&e.groups.every((e,t)=>e.headerLevel===r[t].headerLevel&&e.authoredColumnIndex===r[t].authoredColumnIndex)?e:{groups:r,configVersion:i};return this.#m5.set(n,t),n}getStateColumns(){return[]}restoreState(e){null!==this.headerStateManager&&S6(e)&&e.configVersion===this.headerStateManager.getConfigVersion()&&this.#fu(e.groups)}_exportViewState(){return this.enabled&&null!==this.headerStateManager?{groups:this.headerStateManager.exportCollapsedGroups()}:null}_importViewState(e){this.enabled&&this.#fu(e?.groups??[])}#fu(e){let t=this.#m6,i=this.headerStateManager;if(null===i||!t)return;let o=t.getHiddenIndexes(),r=0===e.length&&0===o.length&&0===i.exportCollapsedGroups().length?[]:er(i.importCollapsedGroups(e,this.#fc(t)),e=>this.hot.toPhysicalColumn(e));(r.length!==o.length||0!==eg(r,o).length)&&this.hot.batchExecution(()=>{t.clear(),en(r,e=>{t.setValueAtIndex(e,!0)})},!0),this.#fh()}#fc(e){let t=this.hot.columnIndexMapper,i=t.hidingMapsCollection.get().filter(t=>t!==e);return{isVisible(e){let o=t.getPhysicalFromVisualIndex(e);return null!==o&&!i.some(e=>!0===e.getValueAtIndex(o))}}}#fd(e,t){if(void 0!==t&&S4.has(t)||tf(`Unsupported action is passed (${t}).`),!Array.isArray(e))return;let i=eo(e,({row:e})=>e<0),o=this.#fg(i,t),r=[],n=[],s=this.headerStateManager?.getVisibleWhenHiddenColumns()??[];o&&en(i,({row:e,col:i})=>{let{affectedColumns:o,rollbackModification:s}=this.headerStateManager?.triggerNodeModification(t,e,i)??{colspanCompensation:0,affectedColumns:[],rollbackModification:()=>{}};r.push(s),o.length>0&&n.push(...o)});let l=this.getCollapsedColumns(),a=[];"collapse"===t?a=ec([...l,...n]):"expand"===t&&(a=eo(l,e=>!n.includes(e)));let h=S4.get(t);if(!1===this.hot.runHooks(h.beforeHook,l,a,o))return void en(r,e=>{e()});this.hot.batchExecution(()=>{en(n,e=>{this.#m6?.setValueAtIndex(this.hot.toPhysicalColumn(e),h.hideColumn)})},!0);let d=this.headerStateManager?.getVisibleWhenHiddenColumns()??[],u=eg(d,s),c=u.length>0||d.length!==s.length;c&&this.#fh(d);let g=this.getCollapsedColumns().length!==l.length||c,p="collapse"===t?ec([...n,...u]):u;g&&p.length>0&&this.#fp(p),this.hot.runHooks(h.afterHook,l,a,o,g),this.hot.render()}#fg(e,t){if(0===e.length)return!1;let i=!0;return en(e,({row:e,col:o})=>{let{collapsible:r,isCollapsed:n}=this.headerStateManager?.getHeaderTreeNodeData(e,o)??{};if(!r||n&&"collapse"===t||!n&&"expand"===t)return i=!1,!1}),i}#fp(e){let t=this.hot.getSelectedRangeActive();if(!t)return;let{row:i,col:o}=t.highlight;if(null!==i&&null!==o&&(this.hot.rowIndexMapper.isHidden(i)||this.hot.columnIndexMapper.isHidden(o))&&e.includes(o)){let e=i>=0?this.hot.rowIndexMapper.getNearestNotHiddenIndex(i,1,!0):i,t=o>=0?this.hot.columnIndexMapper.getNearestNotHiddenIndex(o,1,!0):o;null!==e&&null!==t&&this.hot.selectCell(e,t)}}getCollapsedColumns(){return this.#m6?.getHiddenIndexes()??[]}#fh(e=this.headerStateManager?.getVisibleWhenHiddenColumns()??[]){if(!this.#m4)return;let t=this.#m4,i=er(e,e=>this.hot.toPhysicalColumn(e)),o=t.getHiddenIndexes();(i.length!==o.length||0!==eg(i,o).length)&&this.hot.batchExecution(()=>{t.clear(),en(i,e=>{t.setValueAtIndex(e,!0)})},!0)}#fo=()=>{this.#fh()};#fr=(e,t,i,o)=>{let r=this.headerStateManager;if(!1===o||!r)return;let n=new Map(this.#fm(e,t).map((e,t)=>[e,t]));r.getCollapsedGroups().forEach(({headerLevel:e,columnIndex:t,origColspan:i})=>{if(this.#ff(t,i,n)){let i=r.levelToRowCoords(e);null!==i&&this.toggleCollapsibleSection([{row:i,col:t}],"expand")}})};#fm(e,t){let i=new Set(e),o=[];for(let e=0,t=this.hot.countCols();e<t;e++)i.has(e)||o.push(e);return[...o.slice(0,t),...e,...o.slice(t)]}#ff(e,t,i){let o=1/0,r=-1/0,n=0;for(let s=e;s<e+t;s++){let e=i.get(s);void 0!==e&&(o=Math.min(o,e),r=Math.max(r,e),n+=1)}return n>0&&r-o!=n-1}#fw(e,t,i){let o=e.firstChild;o?.nodeType===3?o.textContent!==t&&(o.textContent=t):e.insertBefore(this.hot.rootDocument.createTextNode(t),o),Ct(this.hot,e,"collapsibleIndicator__icon",i)}#fb(e,t){let i=this.hot.getSettings(),o=lv(i.fixedColumnsEnd,i.fixedColumnsStart,this.hot.countCols());return!!o&&e+t-1>=this.hot.countCols()-o}#ft=(e,t,i)=>{let{collapsible:o,origColspan:r,isCollapsed:n}=this.headerStateManager?.getHeaderSettings(i,e)??{},s=!0===o&&(r??0)>1&&e>=(this.hot.getSettings().fixedColumnsStart??0)&&!this.#fb(e,r??0)&&!this.hot.view.isColumnHeaderCorner(t),l=this.hot.getSettings().ariaTags,a=t.querySelector(`.${S1}`);if(iK(t,[G("")[0]]),s){a||(iG(a=this.hot.rootDocument.createElement("div"),S1),t.querySelector("div:first-child")?.appendChild(a));let e=a;ij(e,["collapsed","expanded"]),n?(iG(e,"collapsed"),this.#fw(e,"+","collapseOn"),l&&iq(t,...G(!1))):(iG(e,"expanded"),this.#fw(e,"-","collapseOff"),l&&iq(t,...G(!0))),l&&iq(e,...L())}else a?.remove()};#fi=(e,t)=>{let i=iT(e)?.closest(`.${S1}`);i&&(iU(i,"expanded")?(this.eventManager.fireEvent(i,"mouseup"),this.toggleCollapsibleSection([t],"collapse")):iU(i,"collapsed")&&(this.eventManager.fireEvent(i,"mouseup"),this.toggleCollapsibleSection([t],"expand")),e.isImmediatePropagationEnabled=!1)};#fn=()=>{this.#m8.push(this.headerStateManager?.getCollapsedGroupsVersion()??0)};#fs=()=>{let e=this.#m8.pop(),t=this.headerStateManager;this.enabled&&null!==t&&e!==t.getCollapsedGroupsVersion()&&this.#fu(t.exportCollapsedGroups())};#fe=()=>{this.enabled&&this.hot.view&&!this.#m7&&this.#fa()};destroy(){this.#m6=null,this.#m4=null,super.destroy()}}let S8=["sortEmptyCells","indicator","headerAction","compareFunctionFactory"];class S7{sortingStates;sortEmptyCells=!1;indicator=!0;headerAction=!0;mapName;constructor(e,t){this.hot=e,this.mapName=t,this.sortingStates=this.hot.columnIndexMapper.createAndRegisterIndexMap(t,"linkedPhysicalIndexToValue")}updateAllColumnsProperties(e){tM(e)&&tT(e,(e,t)=>{S8.includes(t)&&(this[t]=e)})}resetAllColumnsProperties(){this.sortEmptyCells=!1,this.indicator=!0,this.headerAction=!0,this.compareFunctionFactory=void 0}getAllColumnsProperties(){let e={sortEmptyCells:this.sortEmptyCells,indicator:this.indicator,headerAction:this.headerAction};return"function"==typeof this.compareFunctionFactory&&(e.compareFunctionFactory=this.compareFunctionFactory),e}getSortOrderOfColumn(e){return this.sortingStates.getValueAtIndex(this.hot.toPhysicalColumn(e))?.sortOrder}getIndexOfColumnInSortQueue(e){return e=this.hot.toPhysicalColumn(e),this.sortingStates.getEntries().findIndex(([t])=>t===e)}getNumberOfSortedColumns(){return this.sortingStates.getLength()}isListOfSortedColumnsEmpty(){return 0===this.getNumberOfSortedColumns()}isColumnSorted(e){return tM(this.sortingStates.getValueAtIndex(this.hot.toPhysicalColumn(e)))}getSortStates(){return null===this.sortingStates?[]:this.sortingStates.getEntries().map(([e,t])=>({column:this.hot.toVisualColumn(e),...t}))}getColumnSortState(e){let t=this.getSortOrderOfColumn(e);if(void 0!==t)return{column:e,sortOrder:t}}setSortStates(e){this.sortingStates.clear();for(let t=0;t<e.length;t+=1){let i=e[t];this.sortingStates.setValueAtIndex(this.hot.toPhysicalColumn(i.column),{sortOrder:i.sortOrder})}}destroy(){this.hot.columnIndexMapper.unregisterMap(this.mapName),Reflect.set(this,"sortingStates",null)}}let S9=Symbol("preparedCompareFn"),ve=Symbol("preparingRootComparator");function vt(e){return e?.[S9]===!0}function vi(e,t){if(!t.some(vt))return e;let i=t.length;return e.prepare=e=>{let o=e.length;if(0===o)return null;let r=e[0].length,n=[],s=[];for(let o=0;o<i;o++){let i=t[o];vt(i)?(n.push(i.prepare(e,o+1)),s.push(i.compare)):(n.push(null),s.push(null))}for(let t=0;t<o;t++)e[t].push(t);return function(e,o){let l=e[r],a=o[r];for(let r=0;r<i;r++){let i=s[r],h=null===i?t[r](e[r+1],o[r+1]):i(n[r],l,a);if(h!==vp)return h}return vp}},e.cleanup=e=>{for(let t=0;t<e.length;t++)e[t].pop()},e[ve]=!0,e}function vo(e,t,i){if("boolean"==typeof e)return Number(e);if("string"==typeof e){let o=i.get(e);return void 0===o&&(o=nu(e,t),i.set(e,o)),o}return e}function vr(e,t,i){let o=t.locale,r=new Map,n=function(t,n){let{sortEmptyCells:s}=i,l=vo(t,o,r),a=vo(n,o,r);return l===a?vp:ej(l)?ej(a)?vp:s&&"asc"===e?vm:vf:ej(a)?s&&"asc"===e?vf:vm:function(e,t,i){let o=isNaN(e),r=isNaN(t);if(o&&!r)return"asc"===i?vf:vm;if(!o&&r)return"asc"===i?vm:vf;let n=e,s=t;o||r||(n=parseFloat(String(e)),s=parseFloat(String(t)));let l=n,a=s;return l<a?"asc"===i?vm:vf:l>a?"asc"===i?vf:vm:vp}(l,a,e)};return n.prepare=function(e,t){let i=e.length,o=Array(i);for(let r=0;r<i;r++)o[r]=e[r][t];return n.prepareValues(o)},n.prepareValues=function(e){let t=e.length,i=Array(t),r=new Uint8Array(t),n=new Uint8Array(t),s=new Float64Array(t);for(let l=0;l<t;l++){let t=e[l],a=t;"boolean"==typeof t?a=Number(t):"string"==typeof t&&(a=nu(t,o)),i[l]=a,ej(a)?r[l]=1:isNaN(a)?n[l]=1:s[l]=parseFloat(String(a))}return{normalizedValues:i,emptyFlags:r,notANumberFlags:n,numbers:s}},n.compare=function(t,o,r){let{normalizedValues:n,emptyFlags:s,notANumberFlags:l,numbers:a}=t,h=n[o],d=n[r];if(h===d)return vp;let{sortEmptyCells:u}=i;if(1===s[o])return 1===s[r]?vp:u&&"asc"===e?vm:vf;if(1===s[r])return u&&"asc"===e?vf:vm;let c=1===l[o],g=1===l[r];if(c&&!g)return"asc"===e?vf:vm;if(!c&&g)return"asc"===e?vm:vf;let p=c?h:a[o],m=c?d:a[r];return p<m?"asc"===e?vm:vf:p>m?"asc"===e?vf:vm:vp},n[S9]=!0,n}let vn="default";function vs(e,t){let i=CH(e,t),o="checked"===i?t.checkedTemplate:t.uncheckedTemplate;return null===i||void 0===o?e:o}let{register:vl,getItem:va,hasItem:vh}=rH("sorting.compareFunctionFactory"),{register:vd,getItem:vu}=rH("sorting.mainSortComparator"),vc=new Map;function vg(e){return vh(e)?va(e):va(vn)}vl("checkbox",function(e,t,i){let o=t.checkedTemplate,r=t.uncheckedTemplate,{sortEmptyCells:n}=i,s=vr(e,t,i);return function(i,l){var a,h;let d=ej(i),u=ej(l),c=d?r:vs(i,t),g=u?r:vs(l,t);if(!1===n){if(d&&!1===u)return vf;if(!1===d&&u)return vm}let p=(a=c===r||c===o,h=g===r||g===o,!1===a&&h?"asc"===e?vm:vf:a&&!1===h?"asc"===e?vf:vm:!1===a&&!1===h?s(i,l):null);return null!==p?p:c===r&&g===o?"asc"===e?vm:vf:c===o&&g===r?"asc"===e?vf:vm:vp}}),vl("date",function(e,t,i){return vR(bD,e,i)}),vl("intl-date",function(e,t,i){return vR(bD,e,i)}),vl(vn,vr),vl("numeric",function(e,t,i){return function(t,o){let r=parseFloat(t),n=parseFloat(o),{sortEmptyCells:s}=i;if(r===n||isNaN(r)&&isNaN(n))return vp;if(s){if(ej(t))return"asc"===e?vm:vf;if(ej(o))return"asc"===e?vf:vm}return isNaN(r)?vf:isNaN(n)?vm:r<n?"asc"===e?vm:vf:r>n?"asc"===e?vf:vm:vp}}),vl("time",function(e,t,i){return vR(bL,e,i)}),vl("intl-time",function(e,t,i){return vR(bL,e,i)}),vl("intl-datetime",function(e,t,i){return vR(bz,e,i)});let vp=0,vm=-1,vf=1,vw="desc",vb="colHeader";function vC(e){if(!1===tM(e))return!1;let{column:t,sortOrder:i}=e;return Number.isInteger(t)&&["asc",vw].includes(i)}function vy(e){return e===vw?void 0:"asc"===e?vw:"asc"}function vS(e){return e.querySelector(`.${vb}`)}function vv(e,t,i){if(t<0||e>=0||ru(i))return!1;if(-1===e)return!0;let o="function"==typeof iT(i)?.closest?iT(i).closest("th"):null;return null!==o&&iV(o)}function vR(e,t,i){let o=new Map,r=t=>{let i=o.get(t);return void 0===i&&(i=e(t)?.getTime()??null,o.set(t,i)),i};return function(e,o){let{sortEmptyCells:n}=i;if(e===o)return vp;if(ej(e))return ej(o)?vp:n&&"asc"===t?vm:vf;if(ej(o))return n&&"asc"===t?vf:vm;let s=r(e),l=r(o);return null===s?vf:null===l?vm:l>s?"asc"===t?vm:vf:l<s?"asc"===t?vf:vm:vp}}let vx="ascending",vE="descending",vM="indicatorDisabled",vk="columnSorting",vI="sortAction",vT=new Map([["asc",vx],[vw,vE]]);function vA(e,t){let i=t.columnSorting;return(i?.compareFunctionFactory?i.compareFunctionFactory:vg(t.type??""))(e,t,i)}function vH(e,t){let i=vA(e[0],t[0]);return vi((e,t)=>i(e[1],t[1]),[i])}let vO=Object.freeze({capability:"feat:column_sorting",name:"Column sorting",gate:"enable",tiers:Object.freeze(["standard","professional"])}),vD="columnSorting",vP="append",v_="collapsibleColumns",vF="has-sort-indicator",vN="ht-sort-indicator";vd(vD,vH),vc.set(vH,function(e,t,i){let o=vA(e[0],t[0]),r=i[0];if(vt(o)){let e=o.prepareValues(r),t=o.compare;return function(i,o){return t(e,i,o)}}return function(e,t){return o(r[e],r[t])}}),rI.getSingleton().register("beforeColumnSort"),rI.getSingleton().register("afterColumnSort");let vL=new WeakMap;class vB extends sI{static get PLUGIN_KEY(){return vD}static get PLUGIN_PRIORITY(){return 50}static get LICENSE(){return vO}columnStatesManager=null;columnMetaCache=null;#fC=null;#fy=new Set;#fS=new Map;#fv=!1;#fR=Ci();#fx=!1;#fE=!1;pluginKey=vD;indexesSequenceCache=null;#fM=null;constructor(e){super(e),this.hot.addHook("afterGetColHeader",this.#fk)}_getObjectSettingDefaults(){return{indicator:!0,headerAction:!0,sortEmptyCells:!1,compareFunctionFactory:void 0}}isEnabled(){return!!this.hot.getSettings()[this.pluginKey]}enablePlugin(){let e=vL.get(this.hot);if(void 0!==e&&e!==this.pluginKey){if(this.hot.getSettings()[e]){var t;this.hot.updateSettings({[this.pluginKey]:!1}),t=this.pluginKey,ir(eb`Plugins \`columnSorting\` and \`multiColumnSorting\` should not be enabled simultaneously.\x20