@limetech/lime-elements 36.4.0 → 37.0.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/_arrayIncludesWith-29083f83.js +2 -0
- package/dist/cjs/_arrayIncludesWith-29083f83.js.map +1 -0
- package/dist/cjs/_assignValue-7c18d8d6.js +2 -0
- package/dist/cjs/_assignValue-7c18d8d6.js.map +1 -0
- package/dist/cjs/_commonjsHelpers-0c557e26.js +2 -0
- package/dist/cjs/_commonjsHelpers-0c557e26.js.map +1 -0
- package/dist/cjs/_defineProperty-8f56146d.js +2 -0
- package/dist/cjs/_defineProperty-8f56146d.js.map +1 -0
- package/dist/cjs/_getNative-60328036.js +2 -0
- package/dist/cjs/_getNative-60328036.js.map +1 -0
- package/dist/cjs/animationframe-e4c1798e.js +2 -0
- package/dist/cjs/animationframe-e4c1798e.js.map +1 -0
- package/dist/cjs/{checkbox.template-60ed3ee2.js → checkbox.template-234f4813.js} +3 -1
- package/dist/cjs/checkbox.template-234f4813.js.map +1 -0
- package/dist/cjs/component-66df95e7.js +2 -0
- package/dist/cjs/component-66df95e7.js.map +1 -0
- package/dist/cjs/component-67144c1c.js +2 -0
- package/dist/cjs/component-67144c1c.js.map +1 -0
- package/dist/cjs/component-ae3bfacf.js +2 -0
- package/dist/cjs/component-ae3bfacf.js.map +1 -0
- package/dist/cjs/component-cf490570.js +2 -0
- package/dist/cjs/component-cf490570.js.map +1 -0
- package/dist/cjs/component-dd795ff0.js +2 -0
- package/dist/cjs/component-dd795ff0.js.map +1 -0
- package/dist/cjs/config-c6520559.js +2 -0
- package/dist/cjs/config-c6520559.js.map +1 -0
- package/dist/cjs/device-c5841113.js +2 -0
- package/dist/cjs/device-c5841113.js.map +1 -0
- package/dist/cjs/dispatch-resize-event-4462d78f.js +2 -0
- package/dist/cjs/dispatch-resize-event-4462d78f.js.map +1 -0
- package/dist/cjs/dom-eb080f70.js +2 -0
- package/dist/cjs/dom-eb080f70.js.map +1 -0
- package/dist/cjs/eq-9a943b00.js +2 -0
- package/dist/cjs/eq-9a943b00.js.map +1 -0
- package/dist/cjs/format-5b928cf3.js +2 -0
- package/dist/cjs/format-5b928cf3.js.map +1 -0
- package/dist/cjs/identity-6dc34885.js +2 -0
- package/dist/cjs/identity-6dc34885.js.map +1 -0
- package/dist/cjs/{index-287e25e0.js → index-aafa56ee.js} +209 -23
- package/dist/cjs/index-aafa56ee.js.map +1 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/isArray-d188a04f.js +2 -0
- package/dist/cjs/isArray-d188a04f.js.map +1 -0
- package/dist/cjs/isArrayLike-ac53bdac.js +2 -0
- package/dist/cjs/isArrayLike-ac53bdac.js.map +1 -0
- package/dist/cjs/isEqual-d2a13a24.js +2 -0
- package/dist/cjs/isEqual-d2a13a24.js.map +1 -0
- package/dist/cjs/isObject-e28b7997.js +2 -0
- package/dist/cjs/isObject-e28b7997.js.map +1 -0
- package/dist/cjs/isObjectLike-3e3f0cba.js +2 -0
- package/dist/cjs/isObjectLike-3e3f0cba.js.map +1 -0
- package/dist/cjs/isSymbol-d22b2798.js +2 -0
- package/dist/cjs/isSymbol-d22b2798.js.map +1 -0
- package/dist/cjs/keyboard-9477d3a8.js +2 -0
- package/dist/cjs/keyboard-9477d3a8.js.map +1 -0
- package/dist/cjs/keycodes-3949f425.js +2 -0
- package/dist/cjs/keycodes-3949f425.js.map +1 -0
- package/dist/cjs/lime-elements.cjs.js +12 -3
- package/dist/cjs/lime-elements.cjs.js.map +1 -0
- package/dist/cjs/limel-action-bar-item_2.cjs.entry.js +3 -1
- package/dist/cjs/limel-action-bar-item_2.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-action-bar.cjs.entry.js +3 -1
- package/dist/cjs/limel-action-bar.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-badge.cjs.entry.js +3 -1
- package/dist/cjs/limel-badge.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-banner.cjs.entry.js +3 -1
- package/dist/cjs/limel-banner.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-button-group.cjs.entry.js +3 -1
- package/dist/cjs/limel-button-group.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-button.cjs.entry.js +3 -1
- package/dist/cjs/limel-button.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-callout.cjs.entry.js +3 -1
- package/dist/cjs/limel-callout.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-checkbox.cjs.entry.js +4 -2
- package/dist/cjs/limel-checkbox.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-chip-set.cjs.entry.js +3 -1
- package/dist/cjs/limel-chip-set.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-circular-progress_2.cjs.entry.js +3 -1
- package/dist/cjs/limel-circular-progress_2.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-code-editor.cjs.entry.js +3 -1
- package/dist/cjs/limel-code-editor.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-collapsible-section.cjs.entry.js +3 -1
- package/dist/cjs/limel-collapsible-section.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-color-picker-palette.cjs.entry.js +3 -1
- package/dist/cjs/limel-color-picker-palette.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-color-picker.cjs.entry.js +3 -1
- package/dist/cjs/limel-color-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-config.cjs.entry.js +3 -1
- package/dist/cjs/limel-config.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-date-picker.cjs.entry.js +3 -1
- package/dist/cjs/limel-date-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-dialog.cjs.entry.js +3 -1
- package/dist/cjs/limel-dialog.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-dock-button.cjs.entry.js +3 -1
- package/dist/cjs/limel-dock-button.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-dock.cjs.entry.js +3 -1
- package/dist/cjs/limel-dock.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-file.cjs.entry.js +3 -1
- package/dist/cjs/limel-file.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +3 -1
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-flex-container.cjs.entry.js +3 -1
- package/dist/cjs/limel-flex-container.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-form.cjs.entry.js +3 -1
- package/dist/cjs/limel-form.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-grid.cjs.entry.js +3 -1
- package/dist/cjs/limel-grid.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-header.cjs.entry.js +3 -1
- package/dist/cjs/limel-header.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-helper-line.cjs.entry.js +3 -1
- package/dist/cjs/limel-helper-line.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-icon-button.cjs.entry.js +3 -1
- package/dist/cjs/limel-icon-button.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-icon.cjs.entry.js +3 -1
- package/dist/cjs/limel-icon.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-info-tile.cjs.entry.js +3 -1
- package/dist/cjs/limel-info-tile.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-input-field.cjs.entry.js +3 -1
- package/dist/cjs/limel-input-field.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-list_2.cjs.entry.js +4 -2
- package/dist/cjs/limel-list_2.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-menu_2.cjs.entry.js +3 -1
- package/dist/cjs/limel-menu_2.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-picker.cjs.entry.js +3 -1
- package/dist/cjs/limel-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-popover_2.cjs.entry.js +3 -1
- package/dist/cjs/limel-popover_2.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-portal.cjs.entry.js +15 -13
- package/dist/cjs/limel-portal.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-progress-flow-item.cjs.entry.js +3 -1
- package/dist/cjs/limel-progress-flow-item.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-progress-flow.cjs.entry.js +3 -1
- package/dist/cjs/limel-progress-flow.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-select.cjs.entry.js +3 -1
- package/dist/cjs/limel-select.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-shortcut.cjs.entry.js +3 -1
- package/dist/cjs/limel-shortcut.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-slider.cjs.entry.js +3 -1
- package/dist/cjs/limel-slider.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-snackbar.cjs.entry.js +3 -1
- package/dist/cjs/limel-snackbar.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-spinner.cjs.entry.js +3 -1
- package/dist/cjs/limel-spinner.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-split-button.cjs.entry.js +3 -1
- package/dist/cjs/limel-split-button.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-switch.cjs.entry.js +3 -1
- package/dist/cjs/limel-switch.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-tab-bar.cjs.entry.js +3 -1
- package/dist/cjs/limel-tab-bar.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-tab-panel.cjs.entry.js +3 -1
- package/dist/cjs/limel-tab-panel.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-table.cjs.entry.js +3 -1
- package/dist/cjs/limel-table.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-tooltip_2.cjs.entry.js +3 -1
- package/dist/cjs/limel-tooltip_2.cjs.entry.js.map +1 -0
- package/dist/cjs/link-helper-4f75d41d.js +2 -0
- package/dist/cjs/link-helper-4f75d41d.js.map +1 -0
- package/dist/cjs/loader.cjs.js +6 -3
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/moment-d1e35cdc.js +2 -0
- package/dist/cjs/moment-d1e35cdc.js.map +1 -0
- package/dist/cjs/multiple-2af83b6d.js +2 -0
- package/dist/cjs/multiple-2af83b6d.js.map +1 -0
- package/dist/cjs/pickBy-3ef47bf2.js +2 -0
- package/dist/cjs/pickBy-3ef47bf2.js.map +1 -0
- package/dist/cjs/ponyfill-98ca4766.js +2 -0
- package/dist/cjs/ponyfill-98ca4766.js.map +1 -0
- package/dist/cjs/random-string-4c3b7f1c.js +2 -0
- package/dist/cjs/random-string-4c3b7f1c.js.map +1 -0
- package/dist/cjs/sv-dffe48b5.js +2 -0
- package/dist/cjs/sv-dffe48b5.js.map +1 -0
- package/dist/cjs/toNumber-062ea29c.js +2 -0
- package/dist/cjs/toNumber-062ea29c.js.map +1 -0
- package/dist/cjs/translations-f8080c48.js +2 -0
- package/dist/cjs/translations-f8080c48.js.map +1 -0
- package/dist/cjs/util-b0f5741e.js +2 -0
- package/dist/cjs/util-b0f5741e.js.map +1 -0
- package/dist/cjs/zipObject-93a471fa.js +2 -0
- package/dist/cjs/zipObject-93a471fa.js.map +1 -0
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/action-bar/action-bar-item/action-bar-item.js +1 -0
- package/dist/collection/components/action-bar/action-bar-item/action-bar-item.js.map +1 -0
- package/dist/collection/components/action-bar/action-bar-item/action-bar-overflow-menu.js +2 -1
- package/dist/collection/components/action-bar/action-bar-item/action-bar-overflow-menu.js.map +1 -0
- package/dist/collection/components/action-bar/action-bar.js +1 -0
- package/dist/collection/components/action-bar/action-bar.js.map +1 -0
- package/dist/collection/components/action-bar/action-bar.types.js +1 -0
- package/dist/collection/components/action-bar/action-bar.types.js.map +1 -0
- package/dist/collection/components/action-bar/isItem.js +1 -0
- package/dist/collection/components/action-bar/isItem.js.map +1 -0
- package/dist/collection/components/badge/badge.js +1 -0
- package/dist/collection/components/badge/badge.js.map +1 -0
- package/dist/collection/components/badge/format.js +1 -0
- package/dist/collection/components/badge/format.js.map +1 -0
- package/dist/collection/components/banner/banner.js +1 -0
- package/dist/collection/components/banner/banner.js.map +1 -0
- package/dist/collection/components/button/button.js +1 -0
- package/dist/collection/components/button/button.js.map +1 -0
- package/dist/collection/components/button/button.types.js +1 -0
- package/dist/collection/components/button/button.types.js.map +1 -0
- package/dist/collection/components/button-group/button-group.js +1 -0
- package/dist/collection/components/button-group/button-group.js.map +1 -0
- package/dist/collection/components/callout/callout.helpers.js +1 -0
- package/dist/collection/components/callout/callout.helpers.js.map +1 -0
- package/dist/collection/components/callout/callout.js +3 -2
- package/dist/collection/components/callout/callout.js.map +1 -0
- package/dist/collection/components/callout/callout.types.js +1 -0
- package/dist/collection/components/callout/callout.types.js.map +1 -0
- package/dist/collection/components/checkbox/checkbox.js +1 -0
- package/dist/collection/components/checkbox/checkbox.js.map +1 -0
- package/dist/collection/components/checkbox/checkbox.template.js +1 -0
- package/dist/collection/components/checkbox/checkbox.template.js.map +1 -0
- package/dist/collection/components/chip-set/chip-set-input-helpers.js +1 -0
- package/dist/collection/components/chip-set/chip-set-input-helpers.js.map +1 -0
- package/dist/collection/components/chip-set/chip-set.js +6 -5
- package/dist/collection/components/chip-set/chip-set.js.map +1 -0
- package/dist/collection/components/chip-set/chip.types.js +1 -0
- package/dist/collection/components/chip-set/chip.types.js.map +1 -0
- package/dist/collection/components/circular-progress/circular-progress.js +1 -0
- package/dist/collection/components/circular-progress/circular-progress.js.map +1 -0
- package/dist/collection/components/circular-progress/circular-progress.types.js +1 -0
- package/dist/collection/components/circular-progress/circular-progress.types.js.map +1 -0
- package/dist/collection/components/code-editor/code-editor.js +1 -0
- package/dist/collection/components/code-editor/code-editor.js.map +1 -0
- package/dist/collection/components/code-editor/code-editor.types.js +1 -0
- package/dist/collection/components/code-editor/code-editor.types.js.map +1 -0
- package/dist/collection/components/collapsible-section/action.js +1 -0
- package/dist/collection/components/collapsible-section/action.js.map +1 -0
- package/dist/collection/components/collapsible-section/collapsible-section.js +1 -0
- package/dist/collection/components/collapsible-section/collapsible-section.js.map +1 -0
- package/dist/collection/components/color-picker/color-picker-palette.js +1 -0
- package/dist/collection/components/color-picker/color-picker-palette.js.map +1 -0
- package/dist/collection/components/color-picker/color-picker.js +1 -0
- package/dist/collection/components/color-picker/color-picker.js.map +1 -0
- package/dist/collection/components/color-picker/swatches.js +1 -0
- package/dist/collection/components/color-picker/swatches.js.map +1 -0
- package/dist/collection/components/config/config.js +1 -0
- package/dist/collection/components/config/config.js.map +1 -0
- package/dist/collection/components/date-picker/date-picker.js +5 -4
- package/dist/collection/components/date-picker/date-picker.js.map +1 -0
- package/dist/collection/components/date-picker/date.types.js +1 -0
- package/dist/collection/components/date-picker/date.types.js.map +1 -0
- package/dist/collection/components/date-picker/dateFormatter.js +1 -0
- package/dist/collection/components/date-picker/dateFormatter.js.map +1 -0
- package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.js +5 -4
- package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.js.map +1 -0
- package/dist/collection/components/date-picker/pickers/DatePicker.js +1 -0
- package/dist/collection/components/date-picker/pickers/DatePicker.js.map +1 -0
- package/dist/collection/components/date-picker/pickers/DatetimePicker.js +1 -0
- package/dist/collection/components/date-picker/pickers/DatetimePicker.js.map +1 -0
- package/dist/collection/components/date-picker/pickers/MonthPicker.js +1 -0
- package/dist/collection/components/date-picker/pickers/MonthPicker.js.map +1 -0
- package/dist/collection/components/date-picker/pickers/Picker.js +1 -0
- package/dist/collection/components/date-picker/pickers/Picker.js.map +1 -0
- package/dist/collection/components/date-picker/pickers/QuarterPicker.js +1 -0
- package/dist/collection/components/date-picker/pickers/QuarterPicker.js.map +1 -0
- package/dist/collection/components/date-picker/pickers/TimePicker.js +1 -0
- package/dist/collection/components/date-picker/pickers/TimePicker.js.map +1 -0
- package/dist/collection/components/date-picker/pickers/WeekPicker.js +1 -0
- package/dist/collection/components/date-picker/pickers/WeekPicker.js.map +1 -0
- package/dist/collection/components/date-picker/pickers/YearPicker.js +1 -0
- package/dist/collection/components/date-picker/pickers/YearPicker.js.map +1 -0
- package/dist/collection/components/dialog/dialog.js +6 -3
- package/dist/collection/components/dialog/dialog.js.map +1 -0
- package/dist/collection/components/dialog/dialog.types.js +1 -0
- package/dist/collection/components/dialog/dialog.types.js.map +1 -0
- package/dist/collection/components/dock/dock-button/dock-button.js +1 -0
- package/dist/collection/components/dock/dock-button/dock-button.js.map +1 -0
- package/dist/collection/components/dock/dock.js +1 -0
- package/dist/collection/components/dock/dock.js.map +1 -0
- package/dist/collection/components/dock/dock.types.js +1 -0
- package/dist/collection/components/dock/dock.types.js.map +1 -0
- package/dist/collection/components/file/file-metadata.js +1 -0
- package/dist/collection/components/file/file-metadata.js.map +1 -0
- package/dist/collection/components/file/file.js +7 -4
- package/dist/collection/components/file/file.js.map +1 -0
- package/dist/collection/components/file/file.types.js +1 -0
- package/dist/collection/components/file/file.types.js.map +1 -0
- package/dist/collection/components/file/icon-background-colors.js +1 -0
- package/dist/collection/components/file/icon-background-colors.js.map +1 -0
- package/dist/collection/components/file/icon-fill-colors.js +1 -0
- package/dist/collection/components/file/icon-fill-colors.js.map +1 -0
- package/dist/collection/components/file/icons.js +1 -0
- package/dist/collection/components/file/icons.js.map +1 -0
- package/dist/collection/components/flex-container/flex-container.js +7 -6
- package/dist/collection/components/flex-container/flex-container.js.map +1 -0
- package/dist/collection/components/flex-container/flex-container.types.js +1 -0
- package/dist/collection/components/flex-container/flex-container.types.js.map +1 -0
- package/dist/collection/components/form/adapters/base-adapter.js +3 -1
- package/dist/collection/components/form/adapters/base-adapter.js.map +1 -0
- package/dist/collection/components/form/adapters/index.js +1 -0
- package/dist/collection/components/form/adapters/index.js.map +1 -0
- package/dist/collection/components/form/adapters/widget-adapter.js +1 -0
- package/dist/collection/components/form/adapters/widget-adapter.js.map +1 -0
- package/dist/collection/components/form/fields/array-field.js +1 -0
- package/dist/collection/components/form/fields/array-field.js.map +1 -0
- package/dist/collection/components/form/fields/field-helpers.js +1 -0
- package/dist/collection/components/form/fields/field-helpers.js.map +1 -0
- package/dist/collection/components/form/fields/object-field.js +1 -0
- package/dist/collection/components/form/fields/object-field.js.map +1 -0
- package/dist/collection/components/form/fields/schema-field.js +1 -0
- package/dist/collection/components/form/fields/schema-field.js.map +1 -0
- package/dist/collection/components/form/fields/types.js +1 -0
- package/dist/collection/components/form/fields/types.js.map +1 -0
- package/dist/collection/components/form/form.js +1 -0
- package/dist/collection/components/form/form.js.map +1 -0
- package/dist/collection/components/form/form.types.js +1 -0
- package/dist/collection/components/form/form.types.js.map +1 -0
- package/dist/collection/components/form/internal.types.js +1 -0
- package/dist/collection/components/form/internal.types.js.map +1 -0
- package/dist/collection/components/form/row/row.js +1 -0
- package/dist/collection/components/form/row/row.js.map +1 -0
- package/dist/collection/components/form/schema.js +1 -0
- package/dist/collection/components/form/schema.js.map +1 -0
- package/dist/collection/components/form/templates/array-field-collapsible-item.js +1 -0
- package/dist/collection/components/form/templates/array-field-collapsible-item.js.map +1 -0
- package/dist/collection/components/form/templates/array-field-simple-item.js +1 -0
- package/dist/collection/components/form/templates/array-field-simple-item.js.map +1 -0
- package/dist/collection/components/form/templates/array-field.js +1 -0
- package/dist/collection/components/form/templates/array-field.js.map +1 -0
- package/dist/collection/components/form/templates/common.js +1 -0
- package/dist/collection/components/form/templates/common.js.map +1 -0
- package/dist/collection/components/form/templates/field.js +1 -0
- package/dist/collection/components/form/templates/field.js.map +1 -0
- package/dist/collection/components/form/templates/grid-layout.js +1 -0
- package/dist/collection/components/form/templates/grid-layout.js.map +1 -0
- package/dist/collection/components/form/templates/index.js +1 -0
- package/dist/collection/components/form/templates/index.js.map +1 -0
- package/dist/collection/components/form/templates/object-field.js +1 -0
- package/dist/collection/components/form/templates/object-field.js.map +1 -0
- package/dist/collection/components/form/templates/row-layout.js +1 -0
- package/dist/collection/components/form/templates/row-layout.js.map +1 -0
- package/dist/collection/components/form/templates/types.js +1 -0
- package/dist/collection/components/form/templates/types.js.map +1 -0
- package/dist/collection/components/form/validators/format.js +1 -0
- package/dist/collection/components/form/validators/format.js.map +1 -0
- package/dist/collection/components/form/validators/index.js +1 -0
- package/dist/collection/components/form/validators/index.js.map +1 -0
- package/dist/collection/components/form/widgets/checkbox.js +1 -0
- package/dist/collection/components/form/widgets/checkbox.js.map +1 -0
- package/dist/collection/components/form/widgets/code-editor.js +1 -0
- package/dist/collection/components/form/widgets/code-editor.js.map +1 -0
- package/dist/collection/components/form/widgets/date-picker.js +1 -0
- package/dist/collection/components/form/widgets/date-picker.js.map +1 -0
- package/dist/collection/components/form/widgets/index.js +1 -0
- package/dist/collection/components/form/widgets/index.js.map +1 -0
- package/dist/collection/components/form/widgets/input-field.js +1 -0
- package/dist/collection/components/form/widgets/input-field.js.map +1 -0
- package/dist/collection/components/form/widgets/select.js +1 -0
- package/dist/collection/components/form/widgets/select.js.map +1 -0
- package/dist/collection/components/form/widgets/slider.js +1 -0
- package/dist/collection/components/form/widgets/slider.js.map +1 -0
- package/dist/collection/components/form/widgets/types.js +1 -0
- package/dist/collection/components/form/widgets/types.js.map +1 -0
- package/dist/collection/components/grid/grid.js +1 -0
- package/dist/collection/components/grid/grid.js.map +1 -0
- package/dist/collection/components/header/header.js +1 -0
- package/dist/collection/components/header/header.js.map +1 -0
- package/dist/collection/components/helper-line/helper-line.js +1 -0
- package/dist/collection/components/helper-line/helper-line.js.map +1 -0
- package/dist/collection/components/icon/icon.js +1 -0
- package/dist/collection/components/icon/icon.js.map +1 -0
- package/dist/collection/components/icon/icon.types.js +1 -0
- package/dist/collection/components/icon/icon.types.js.map +1 -0
- package/dist/collection/components/icon-button/icon-button.js +1 -0
- package/dist/collection/components/icon-button/icon-button.js.map +1 -0
- package/dist/collection/components/info-tile/info-tile.js +5 -2
- package/dist/collection/components/info-tile/info-tile.js.map +1 -0
- package/dist/collection/components/info-tile/info-tile.types.js +1 -0
- package/dist/collection/components/info-tile/info-tile.types.js.map +1 -0
- package/dist/collection/components/input-field/input-field.js +1 -0
- package/dist/collection/components/input-field/input-field.js.map +1 -0
- package/dist/collection/components/input-field/input-field.types.js +1 -0
- package/dist/collection/components/input-field/input-field.types.js.map +1 -0
- package/dist/collection/components/linear-progress/linear-progress.js +1 -0
- package/dist/collection/components/linear-progress/linear-progress.js.map +1 -0
- package/dist/collection/components/list/list-item.types.js +1 -0
- package/dist/collection/components/list/list-item.types.js.map +1 -0
- package/dist/collection/components/list/list-renderer-config.js +1 -0
- package/dist/collection/components/list/list-renderer-config.js.map +1 -0
- package/dist/collection/components/list/list-renderer.js +1 -0
- package/dist/collection/components/list/list-renderer.js.map +1 -0
- package/dist/collection/components/list/list.js +6 -5
- package/dist/collection/components/list/list.js.map +1 -0
- package/dist/collection/components/list/list.types.js +1 -0
- package/dist/collection/components/list/list.types.js.map +1 -0
- package/dist/collection/components/list/radio-button/radio-button.template.js +1 -0
- package/dist/collection/components/list/radio-button/radio-button.template.js.map +1 -0
- package/dist/collection/components/menu/menu.js +3 -2
- package/dist/collection/components/menu/menu.js.map +1 -0
- package/dist/collection/components/menu/menu.types.js +1 -0
- package/dist/collection/components/menu/menu.types.js.map +1 -0
- package/dist/collection/components/menu-list/menu-list-renderer-config.js +1 -0
- package/dist/collection/components/menu-list/menu-list-renderer-config.js.map +1 -0
- package/dist/collection/components/menu-list/menu-list-renderer.js +1 -0
- package/dist/collection/components/menu-list/menu-list-renderer.js.map +1 -0
- package/dist/collection/components/menu-list/menu-list.js +5 -4
- package/dist/collection/components/menu-list/menu-list.js.map +1 -0
- package/dist/collection/components/menu-list/menu-list.types.js +1 -0
- package/dist/collection/components/menu-list/menu-list.types.js.map +1 -0
- package/dist/collection/components/menu-surface/menu-surface.js +1 -0
- package/dist/collection/components/menu-surface/menu-surface.js.map +1 -0
- package/dist/collection/components/picker/actions.types.js +1 -0
- package/dist/collection/components/picker/actions.types.js.map +1 -0
- package/dist/collection/components/picker/picker.js +12 -7
- package/dist/collection/components/picker/picker.js.map +1 -0
- package/dist/collection/components/picker/searcher.types.js +1 -0
- package/dist/collection/components/picker/searcher.types.js.map +1 -0
- package/dist/collection/components/popover/popover.js +1 -0
- package/dist/collection/components/popover/popover.js.map +1 -0
- package/dist/collection/components/popover-surface/popover-surface.js +1 -0
- package/dist/collection/components/popover-surface/popover-surface.js.map +1 -0
- package/dist/collection/components/portal/contains.js +1 -0
- package/dist/collection/components/portal/contains.js.map +1 -0
- package/dist/collection/components/portal/portal.js +12 -11
- package/dist/collection/components/portal/portal.js.map +1 -0
- package/dist/collection/components/progress-flow/progress-flow-item/progress-flow-item.js +1 -0
- package/dist/collection/components/progress-flow/progress-flow-item/progress-flow-item.js.map +1 -0
- package/dist/collection/components/progress-flow/progress-flow.js +1 -0
- package/dist/collection/components/progress-flow/progress-flow.js.map +1 -0
- package/dist/collection/components/progress-flow/progress-flow.types.js +1 -0
- package/dist/collection/components/progress-flow/progress-flow.types.js.map +1 -0
- package/dist/collection/components/select/option.types.js +1 -0
- package/dist/collection/components/select/option.types.js.map +1 -0
- package/dist/collection/components/select/select.js +8 -5
- package/dist/collection/components/select/select.js.map +1 -0
- package/dist/collection/components/select/select.template.js +1 -0
- package/dist/collection/components/select/select.template.js.map +1 -0
- package/dist/collection/components/shortcut/shortcut.js +5 -2
- package/dist/collection/components/shortcut/shortcut.js.map +1 -0
- package/dist/collection/components/slider/getPercentageClass.js +1 -0
- package/dist/collection/components/slider/getPercentageClass.js.map +1 -0
- package/dist/collection/components/slider/slider.js +1 -0
- package/dist/collection/components/slider/slider.js.map +1 -0
- package/dist/collection/components/snackbar/snackbar.js +3 -2
- package/dist/collection/components/snackbar/snackbar.js.map +1 -0
- package/dist/collection/components/spinner/spinner.js +3 -2
- package/dist/collection/components/spinner/spinner.js.map +1 -0
- package/dist/collection/components/spinner/spinner.types.js +1 -0
- package/dist/collection/components/spinner/spinner.types.js.map +1 -0
- package/dist/collection/components/split-button/split-button.js +3 -2
- package/dist/collection/components/split-button/split-button.js.map +1 -0
- package/dist/collection/components/switch/switch.js +1 -0
- package/dist/collection/components/switch/switch.js.map +1 -0
- package/dist/collection/components/tab-bar/tab-bar.js +1 -0
- package/dist/collection/components/tab-bar/tab-bar.js.map +1 -0
- package/dist/collection/components/tab-bar/tab.types.js +1 -0
- package/dist/collection/components/tab-bar/tab.types.js.map +1 -0
- package/dist/collection/components/tab-bar/tabs.js +1 -0
- package/dist/collection/components/tab-bar/tabs.js.map +1 -0
- package/dist/collection/components/tab-panel/tab-panel.js +1 -0
- package/dist/collection/components/tab-panel/tab-panel.js.map +1 -0
- package/dist/collection/components/tab-panel/tab-panel.types.js +1 -0
- package/dist/collection/components/tab-panel/tab-panel.types.js.map +1 -0
- package/dist/collection/components/table/columns.js +1 -0
- package/dist/collection/components/table/columns.js.map +1 -0
- package/dist/collection/components/table/element-pool.js +1 -0
- package/dist/collection/components/table/element-pool.js.map +1 -0
- package/dist/collection/components/table/layout.js +1 -0
- package/dist/collection/components/table/layout.js.map +1 -0
- package/dist/collection/components/table/selection.js +1 -0
- package/dist/collection/components/table/selection.js.map +1 -0
- package/dist/collection/components/table/table-selection.js +1 -0
- package/dist/collection/components/table/table-selection.js.map +1 -0
- package/dist/collection/components/table/table.js +1 -0
- package/dist/collection/components/table/table.js.map +1 -0
- package/dist/collection/components/table/table.types.js +1 -0
- package/dist/collection/components/table/table.types.js.map +1 -0
- package/dist/collection/components/tooltip/tooltip-content.js +1 -0
- package/dist/collection/components/tooltip/tooltip-content.js.map +1 -0
- package/dist/collection/components/tooltip/tooltip.js +1 -0
- package/dist/collection/components/tooltip/tooltip.js.map +1 -0
- package/dist/collection/global/config.js +1 -0
- package/dist/collection/global/config.js.map +1 -0
- package/dist/collection/global/icon-cache.js +1 -0
- package/dist/collection/global/icon-cache.js.map +1 -0
- package/dist/collection/global/shared-types/link.types.js +1 -0
- package/dist/collection/global/shared-types/link.types.js.map +1 -0
- package/dist/collection/global/translations.js +1 -0
- package/dist/collection/global/translations.js.map +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/translations/da.js +1 -0
- package/dist/collection/translations/da.js.map +1 -0
- package/dist/collection/translations/en.js +1 -0
- package/dist/collection/translations/en.js.map +1 -0
- package/dist/collection/translations/fi.js +1 -0
- package/dist/collection/translations/fi.js.map +1 -0
- package/dist/collection/translations/nl.js +1 -0
- package/dist/collection/translations/nl.js.map +1 -0
- package/dist/collection/translations/no.js +1 -0
- package/dist/collection/translations/no.js.map +1 -0
- package/dist/collection/translations/sv.js +1 -0
- package/dist/collection/translations/sv.js.map +1 -0
- package/dist/collection/util/device.js +1 -0
- package/dist/collection/util/device.js.map +1 -0
- package/dist/collection/util/dispatch-resize-event.js +1 -0
- package/dist/collection/util/dispatch-resize-event.js.map +1 -0
- package/dist/collection/util/dom.js +1 -0
- package/dist/collection/util/dom.js.map +1 -0
- package/dist/collection/util/keycodes.js +1 -0
- package/dist/collection/util/keycodes.js.map +1 -0
- package/dist/collection/util/link-helper.js +1 -0
- package/dist/collection/util/link-helper.js.map +1 -0
- package/dist/collection/util/multiple.js +1 -0
- package/dist/collection/util/multiple.js.map +1 -0
- package/dist/collection/util/random-string.js +1 -0
- package/dist/collection/util/random-string.js.map +1 -0
- package/dist/esm/_arrayIncludesWith-969bccda.js +2 -0
- package/dist/esm/_arrayIncludesWith-969bccda.js.map +1 -0
- package/dist/esm/_assignValue-fb2bf80a.js +2 -0
- package/dist/esm/_assignValue-fb2bf80a.js.map +1 -0
- package/dist/esm/_commonjsHelpers-5ec8f9b7.js +2 -0
- package/dist/esm/_commonjsHelpers-5ec8f9b7.js.map +1 -0
- package/dist/esm/_defineProperty-2105cb48.js +2 -0
- package/dist/esm/_defineProperty-2105cb48.js.map +1 -0
- package/dist/esm/_getNative-93d6bfe9.js +2 -0
- package/dist/esm/_getNative-93d6bfe9.js.map +1 -0
- package/dist/esm/animationframe-b52af02d.js +2 -0
- package/dist/esm/animationframe-b52af02d.js.map +1 -0
- package/dist/esm/{checkbox.template-4ce8d92f.js → checkbox.template-c838ee7b.js} +3 -1
- package/dist/esm/checkbox.template-c838ee7b.js.map +1 -0
- package/dist/esm/component-19eb6e2b.js +2 -0
- package/dist/esm/component-19eb6e2b.js.map +1 -0
- package/dist/esm/component-288691f3.js +2 -0
- package/dist/esm/component-288691f3.js.map +1 -0
- package/dist/esm/component-410aad5a.js +2 -0
- package/dist/esm/component-410aad5a.js.map +1 -0
- package/dist/esm/component-5b4ac85a.js +2 -0
- package/dist/esm/component-5b4ac85a.js.map +1 -0
- package/dist/esm/component-fffa3419.js +2 -0
- package/dist/esm/component-fffa3419.js.map +1 -0
- package/dist/esm/config-f7362aeb.js +2 -0
- package/dist/esm/config-f7362aeb.js.map +1 -0
- package/dist/esm/device-39db3b5f.js +2 -0
- package/dist/esm/device-39db3b5f.js.map +1 -0
- package/dist/esm/dispatch-resize-event-cd1d230c.js +2 -0
- package/dist/esm/dispatch-resize-event-cd1d230c.js.map +1 -0
- package/dist/esm/dom-2fe617e7.js +2 -0
- package/dist/esm/dom-2fe617e7.js.map +1 -0
- package/dist/esm/eq-c1c7f528.js +2 -0
- package/dist/esm/eq-c1c7f528.js.map +1 -0
- package/dist/esm/format-c76733cb.js +2 -0
- package/dist/esm/format-c76733cb.js.map +1 -0
- package/dist/esm/identity-87aa3962.js +2 -0
- package/dist/esm/identity-87aa3962.js.map +1 -0
- package/dist/esm/{index-cdfd351d.js → index-9bd6d7c6.js} +209 -24
- package/dist/esm/index-9bd6d7c6.js.map +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/isArray-80298bc7.js +2 -0
- package/dist/esm/isArray-80298bc7.js.map +1 -0
- package/dist/esm/isArrayLike-385e0f31.js +2 -0
- package/dist/esm/isArrayLike-385e0f31.js.map +1 -0
- package/dist/esm/isEqual-c5a636a4.js +2 -0
- package/dist/esm/isEqual-c5a636a4.js.map +1 -0
- package/dist/esm/isObject-c74e273c.js +2 -0
- package/dist/esm/isObject-c74e273c.js.map +1 -0
- package/dist/esm/isObjectLike-38996507.js +2 -0
- package/dist/esm/isObjectLike-38996507.js.map +1 -0
- package/dist/esm/isSymbol-5bf20921.js +2 -0
- package/dist/esm/isSymbol-5bf20921.js.map +1 -0
- package/dist/esm/keyboard-4b9e12e3.js +2 -0
- package/dist/esm/keyboard-4b9e12e3.js.map +1 -0
- package/dist/esm/keycodes-44c01beb.js +2 -0
- package/dist/esm/keycodes-44c01beb.js.map +1 -0
- package/dist/esm/lime-elements.js +9 -3
- package/dist/esm/lime-elements.js.map +1 -0
- package/dist/esm/limel-action-bar-item_2.entry.js +3 -1
- package/dist/esm/limel-action-bar-item_2.entry.js.map +1 -0
- package/dist/esm/limel-action-bar.entry.js +3 -1
- package/dist/esm/limel-action-bar.entry.js.map +1 -0
- package/dist/esm/limel-badge.entry.js +3 -1
- package/dist/esm/limel-badge.entry.js.map +1 -0
- package/dist/esm/limel-banner.entry.js +3 -1
- package/dist/esm/limel-banner.entry.js.map +1 -0
- package/dist/esm/limel-button-group.entry.js +3 -1
- package/dist/esm/limel-button-group.entry.js.map +1 -0
- package/dist/esm/limel-button.entry.js +3 -1
- package/dist/esm/limel-button.entry.js.map +1 -0
- package/dist/esm/limel-callout.entry.js +3 -1
- package/dist/esm/limel-callout.entry.js.map +1 -0
- package/dist/esm/limel-checkbox.entry.js +4 -2
- package/dist/esm/limel-checkbox.entry.js.map +1 -0
- package/dist/esm/limel-chip-set.entry.js +3 -1
- package/dist/esm/limel-chip-set.entry.js.map +1 -0
- package/dist/esm/limel-circular-progress_2.entry.js +3 -1
- package/dist/esm/limel-circular-progress_2.entry.js.map +1 -0
- package/dist/esm/limel-code-editor.entry.js +3 -1
- package/dist/esm/limel-code-editor.entry.js.map +1 -0
- package/dist/esm/limel-collapsible-section.entry.js +3 -1
- package/dist/esm/limel-collapsible-section.entry.js.map +1 -0
- package/dist/esm/limel-color-picker-palette.entry.js +3 -1
- package/dist/esm/limel-color-picker-palette.entry.js.map +1 -0
- package/dist/esm/limel-color-picker.entry.js +3 -1
- package/dist/esm/limel-color-picker.entry.js.map +1 -0
- package/dist/esm/limel-config.entry.js +3 -1
- package/dist/esm/limel-config.entry.js.map +1 -0
- package/dist/esm/limel-date-picker.entry.js +3 -1
- package/dist/esm/limel-date-picker.entry.js.map +1 -0
- package/dist/esm/limel-dialog.entry.js +3 -1
- package/dist/esm/limel-dialog.entry.js.map +1 -0
- package/dist/esm/limel-dock-button.entry.js +3 -1
- package/dist/esm/limel-dock-button.entry.js.map +1 -0
- package/dist/esm/limel-dock.entry.js +3 -1
- package/dist/esm/limel-dock.entry.js.map +1 -0
- package/dist/esm/limel-file.entry.js +3 -1
- package/dist/esm/limel-file.entry.js.map +1 -0
- package/dist/esm/limel-flatpickr-adapter.entry.js +3 -1
- package/dist/esm/limel-flatpickr-adapter.entry.js.map +1 -0
- package/dist/esm/limel-flex-container.entry.js +3 -1
- package/dist/esm/limel-flex-container.entry.js.map +1 -0
- package/dist/esm/limel-form.entry.js +3 -1
- package/dist/esm/limel-form.entry.js.map +1 -0
- package/dist/esm/limel-grid.entry.js +3 -1
- package/dist/esm/limel-grid.entry.js.map +1 -0
- package/dist/esm/limel-header.entry.js +3 -1
- package/dist/esm/limel-header.entry.js.map +1 -0
- package/dist/esm/limel-helper-line.entry.js +3 -1
- package/dist/esm/limel-helper-line.entry.js.map +1 -0
- package/dist/esm/limel-icon-button.entry.js +3 -1
- package/dist/esm/limel-icon-button.entry.js.map +1 -0
- package/dist/esm/limel-icon.entry.js +3 -1
- package/dist/esm/limel-icon.entry.js.map +1 -0
- package/dist/esm/limel-info-tile.entry.js +3 -1
- package/dist/esm/limel-info-tile.entry.js.map +1 -0
- package/dist/esm/limel-input-field.entry.js +3 -1
- package/dist/esm/limel-input-field.entry.js.map +1 -0
- package/dist/esm/limel-list_2.entry.js +4 -2
- package/dist/esm/limel-list_2.entry.js.map +1 -0
- package/dist/esm/limel-menu_2.entry.js +3 -1
- package/dist/esm/limel-menu_2.entry.js.map +1 -0
- package/dist/esm/limel-picker.entry.js +3 -1
- package/dist/esm/limel-picker.entry.js.map +1 -0
- package/dist/esm/limel-popover_2.entry.js +3 -1
- package/dist/esm/limel-popover_2.entry.js.map +1 -0
- package/dist/esm/limel-portal.entry.js +15 -13
- package/dist/esm/limel-portal.entry.js.map +1 -0
- package/dist/esm/limel-progress-flow-item.entry.js +3 -1
- package/dist/esm/limel-progress-flow-item.entry.js.map +1 -0
- package/dist/esm/limel-progress-flow.entry.js +3 -1
- package/dist/esm/limel-progress-flow.entry.js.map +1 -0
- package/dist/esm/limel-select.entry.js +3 -1
- package/dist/esm/limel-select.entry.js.map +1 -0
- package/dist/esm/limel-shortcut.entry.js +3 -1
- package/dist/esm/limel-shortcut.entry.js.map +1 -0
- package/dist/esm/limel-slider.entry.js +3 -1
- package/dist/esm/limel-slider.entry.js.map +1 -0
- package/dist/esm/limel-snackbar.entry.js +3 -1
- package/dist/esm/limel-snackbar.entry.js.map +1 -0
- package/dist/esm/limel-spinner.entry.js +3 -1
- package/dist/esm/limel-spinner.entry.js.map +1 -0
- package/dist/esm/limel-split-button.entry.js +3 -1
- package/dist/esm/limel-split-button.entry.js.map +1 -0
- package/dist/esm/limel-switch.entry.js +3 -1
- package/dist/esm/limel-switch.entry.js.map +1 -0
- package/dist/esm/limel-tab-bar.entry.js +3 -1
- package/dist/esm/limel-tab-bar.entry.js.map +1 -0
- package/dist/esm/limel-tab-panel.entry.js +3 -1
- package/dist/esm/limel-tab-panel.entry.js.map +1 -0
- package/dist/esm/limel-table.entry.js +3 -1
- package/dist/esm/limel-table.entry.js.map +1 -0
- package/dist/esm/limel-tooltip_2.entry.js +3 -1
- package/dist/esm/limel-tooltip_2.entry.js.map +1 -0
- package/dist/esm/link-helper-b08fe56c.js +2 -0
- package/dist/esm/link-helper-b08fe56c.js.map +1 -0
- package/dist/esm/loader.js +6 -3
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/moment-faa8a4a8.js +2 -0
- package/dist/esm/moment-faa8a4a8.js.map +1 -0
- package/dist/esm/multiple-0bd62427.js +2 -0
- package/dist/esm/multiple-0bd62427.js.map +1 -0
- package/dist/esm/pickBy-d359eb12.js +2 -0
- package/dist/esm/pickBy-d359eb12.js.map +1 -0
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/ponyfill-30263d5e.js +2 -0
- package/dist/esm/ponyfill-30263d5e.js.map +1 -0
- package/dist/esm/random-string-2246b81e.js +2 -0
- package/dist/esm/random-string-2246b81e.js.map +1 -0
- package/dist/esm/sv-336c4576.js +2 -0
- package/dist/esm/sv-336c4576.js.map +1 -0
- package/dist/esm/toNumber-a6ed64f0.js +2 -0
- package/dist/esm/toNumber-a6ed64f0.js.map +1 -0
- package/dist/esm/translations-f88bb584.js +2 -0
- package/dist/esm/translations-f88bb584.js.map +1 -0
- package/dist/esm/util-f1bde91c.js +2 -0
- package/dist/esm/util-f1bde91c.js.map +1 -0
- package/dist/esm/zipObject-2bb1968e.js +2 -0
- package/dist/esm/zipObject-2bb1968e.js.map +1 -0
- package/dist/lime-elements/index.esm.js +2 -0
- package/dist/lime-elements/index.esm.js.map +1 -0
- package/dist/lime-elements/lime-elements.esm.js +2 -1
- package/dist/lime-elements/lime-elements.esm.js.map +1 -0
- package/dist/lime-elements/p-0137d2fb.entry.js +2 -0
- package/dist/lime-elements/p-0137d2fb.entry.js.map +1 -0
- package/dist/lime-elements/p-0b1af919.js +2 -1
- package/dist/lime-elements/p-0b1af919.js.map +1 -0
- package/dist/lime-elements/p-0eabb204.js +2 -1
- package/dist/lime-elements/p-0eabb204.js.map +1 -0
- package/dist/lime-elements/p-13ed01eb.entry.js +236 -0
- package/dist/lime-elements/p-13ed01eb.entry.js.map +1 -0
- package/dist/lime-elements/p-17ac8cca.entry.js +2 -0
- package/dist/lime-elements/p-17ac8cca.entry.js.map +1 -0
- package/dist/lime-elements/p-1a80da5e.entry.js +104 -0
- package/dist/lime-elements/p-1a80da5e.entry.js.map +1 -0
- package/dist/lime-elements/p-1c284626.js +372 -5
- package/dist/lime-elements/p-1c284626.js.map +1 -0
- package/dist/lime-elements/p-1dc042e5.entry.js +2 -0
- package/dist/lime-elements/p-1dc042e5.entry.js.map +1 -0
- package/dist/lime-elements/p-2118b9ae.entry.js +2 -0
- package/dist/lime-elements/p-2118b9ae.entry.js.map +1 -0
- package/dist/lime-elements/p-2359d139.entry.js +82 -0
- package/dist/lime-elements/p-2359d139.entry.js.map +1 -0
- package/dist/lime-elements/p-240fda3b.js +2 -1
- package/dist/lime-elements/p-240fda3b.js.map +1 -0
- package/dist/lime-elements/p-2565927b.entry.js +21 -0
- package/dist/lime-elements/p-2565927b.entry.js.map +1 -0
- package/dist/lime-elements/p-28da3c47.entry.js +2 -0
- package/dist/lime-elements/p-28da3c47.entry.js.map +1 -0
- package/dist/lime-elements/p-2b0c6ccd.entry.js +17 -0
- package/dist/lime-elements/p-2b0c6ccd.entry.js.map +1 -0
- package/dist/lime-elements/p-2f71d4d4.js +2 -1
- package/dist/lime-elements/p-2f71d4d4.js.map +1 -0
- package/dist/lime-elements/p-30df2bb6.entry.js +2 -0
- package/dist/lime-elements/p-30df2bb6.entry.js.map +1 -0
- package/dist/lime-elements/p-365098fe.js +2 -1
- package/dist/lime-elements/p-365098fe.js.map +1 -0
- package/dist/lime-elements/p-3670f018.entry.js +2 -0
- package/dist/lime-elements/p-3670f018.entry.js.map +1 -0
- package/dist/lime-elements/p-40b7d717.entry.js +2 -0
- package/dist/lime-elements/p-40b7d717.entry.js.map +1 -0
- package/dist/lime-elements/p-4114c214.entry.js +82 -0
- package/dist/lime-elements/p-4114c214.entry.js.map +1 -0
- package/dist/lime-elements/p-42a24572.entry.js +2 -0
- package/dist/lime-elements/p-42a24572.entry.js.map +1 -0
- package/dist/lime-elements/p-48105d44.js +2 -1
- package/dist/lime-elements/p-48105d44.js.map +1 -0
- package/dist/lime-elements/p-48d4ef20.js +4 -3
- package/dist/lime-elements/p-48d4ef20.js.map +1 -0
- package/dist/lime-elements/p-4c3358cb.js +2 -1
- package/dist/lime-elements/p-4c3358cb.js.map +1 -0
- package/dist/lime-elements/p-4dd9a5a5.js +12 -5
- package/dist/lime-elements/p-4dd9a5a5.js.map +1 -0
- package/dist/lime-elements/p-4ed75a11.entry.js +162 -0
- package/dist/lime-elements/p-4ed75a11.entry.js.map +1 -0
- package/dist/lime-elements/p-4ef9aa7d.entry.js +104 -0
- package/dist/lime-elements/p-4ef9aa7d.entry.js.map +1 -0
- package/dist/lime-elements/p-55a09930.entry.js +126 -0
- package/dist/lime-elements/p-55a09930.entry.js.map +1 -0
- package/dist/lime-elements/p-5b374246.entry.js +476 -0
- package/dist/lime-elements/p-5b374246.entry.js.map +1 -0
- package/dist/lime-elements/p-5b6d2d55.js +2 -0
- package/dist/lime-elements/p-5b6d2d55.js.map +1 -0
- package/dist/lime-elements/p-5f020b3c.js +2 -1
- package/dist/lime-elements/p-5f020b3c.js.map +1 -0
- package/dist/lime-elements/p-5fdb83c9.js +2 -1
- package/dist/lime-elements/p-5fdb83c9.js.map +1 -0
- package/dist/lime-elements/p-623d09d9.entry.js +2 -0
- package/dist/lime-elements/p-623d09d9.entry.js.map +1 -0
- package/dist/lime-elements/p-63111b62.entry.js +2 -0
- package/dist/lime-elements/p-63111b62.entry.js.map +1 -0
- package/dist/lime-elements/p-648d9057.entry.js +2 -0
- package/dist/lime-elements/p-648d9057.entry.js.map +1 -0
- package/dist/lime-elements/p-669626e5.js +2 -1
- package/dist/lime-elements/p-669626e5.js.map +1 -0
- package/dist/lime-elements/p-6b952164.entry.js +2 -0
- package/dist/lime-elements/p-6b952164.entry.js.map +1 -0
- package/dist/lime-elements/p-6c094f3f.js +2 -1
- package/dist/lime-elements/p-6c094f3f.js.map +1 -0
- package/dist/lime-elements/p-6e219bb4.js +2 -1
- package/dist/lime-elements/p-6e219bb4.js.map +1 -0
- package/dist/lime-elements/p-715d3252.entry.js +2 -0
- package/dist/lime-elements/p-715d3252.entry.js.map +1 -0
- package/dist/lime-elements/p-753f500b.entry.js +82 -0
- package/dist/lime-elements/p-753f500b.entry.js.map +1 -0
- package/dist/lime-elements/p-795079c9.entry.js +2 -0
- package/dist/lime-elements/p-795079c9.entry.js.map +1 -0
- package/dist/lime-elements/p-7a3f58cd.entry.js +2 -0
- package/dist/lime-elements/p-7a3f58cd.entry.js.map +1 -0
- package/dist/lime-elements/p-7cda574b.js +2 -1
- package/dist/lime-elements/p-7cda574b.js.map +1 -0
- package/dist/lime-elements/p-848437f8.entry.js +2 -0
- package/dist/lime-elements/p-848437f8.entry.js.map +1 -0
- package/dist/lime-elements/p-858c6b82.js +2 -1
- package/dist/lime-elements/p-858c6b82.js.map +1 -0
- package/dist/lime-elements/p-896043d6.entry.js +2 -0
- package/dist/lime-elements/p-896043d6.entry.js.map +1 -0
- package/dist/lime-elements/p-8b339748.entry.js +2 -0
- package/dist/lime-elements/p-8b339748.entry.js.map +1 -0
- package/dist/lime-elements/p-945afca2.js +3 -2
- package/dist/lime-elements/p-945afca2.js.map +1 -0
- package/dist/lime-elements/p-9aab2892.entry.js +2 -0
- package/dist/lime-elements/p-9aab2892.entry.js.map +1 -0
- package/dist/lime-elements/p-9acf7b5d.js +2 -1
- package/dist/lime-elements/p-9acf7b5d.js.map +1 -0
- package/dist/lime-elements/p-9e78a21c.entry.js +16 -0
- package/dist/lime-elements/p-9e78a21c.entry.js.map +1 -0
- package/dist/lime-elements/p-9faad6eb.js +2 -1
- package/dist/lime-elements/p-9faad6eb.js.map +1 -0
- package/dist/lime-elements/p-9fe3bc64.entry.js +2 -0
- package/dist/lime-elements/p-9fe3bc64.entry.js.map +1 -0
- package/dist/lime-elements/p-a11a971e.entry.js +2 -0
- package/dist/lime-elements/p-a11a971e.entry.js.map +1 -0
- package/dist/lime-elements/p-a3bea367.entry.js +2 -0
- package/dist/lime-elements/p-a3bea367.entry.js.map +1 -0
- package/dist/lime-elements/p-a40e05c3.entry.js +2 -0
- package/dist/lime-elements/p-a40e05c3.entry.js.map +1 -0
- package/dist/lime-elements/p-a8714655.entry.js +2 -0
- package/dist/lime-elements/p-a8714655.entry.js.map +1 -0
- package/dist/lime-elements/p-acf307d9.js +2 -1
- package/dist/lime-elements/p-acf307d9.js.map +1 -0
- package/dist/lime-elements/p-ad8cb388.js +2 -1
- package/dist/lime-elements/p-ad8cb388.js.map +1 -0
- package/dist/lime-elements/p-ade76f1d.js +2 -1
- package/dist/lime-elements/p-ade76f1d.js.map +1 -0
- package/dist/lime-elements/p-b28128d2.js +2 -1
- package/dist/lime-elements/p-b28128d2.js.map +1 -0
- package/dist/lime-elements/p-b59e4287.js +2 -1
- package/dist/lime-elements/p-b59e4287.js.map +1 -0
- package/dist/lime-elements/p-b8ed25b3.entry.js +2 -0
- package/dist/lime-elements/p-b8ed25b3.entry.js.map +1 -0
- package/dist/lime-elements/p-c647b197.entry.js +2 -0
- package/dist/lime-elements/p-c647b197.entry.js.map +1 -0
- package/dist/lime-elements/p-c70b1ea3.js +2 -1
- package/dist/lime-elements/p-c70b1ea3.js.map +1 -0
- package/dist/lime-elements/p-c8818b66.js +3 -0
- package/dist/lime-elements/p-c8818b66.js.map +1 -0
- package/dist/lime-elements/p-c93050d6.js +2 -1
- package/dist/lime-elements/p-c93050d6.js.map +1 -0
- package/dist/lime-elements/p-ca9b383b.entry.js +2 -0
- package/dist/lime-elements/p-ca9b383b.entry.js.map +1 -0
- package/dist/lime-elements/p-cbc43682.js +27 -4
- package/dist/lime-elements/p-cbc43682.js.map +1 -0
- package/dist/lime-elements/p-cc9ebbef.js +2 -1
- package/dist/lime-elements/p-cc9ebbef.js.map +1 -0
- package/dist/lime-elements/p-d07f1a1f.entry.js +2 -0
- package/dist/lime-elements/p-d07f1a1f.entry.js.map +1 -0
- package/dist/lime-elements/p-d0a7de87.js +48 -3
- package/dist/lime-elements/p-d0a7de87.js.map +1 -0
- package/dist/lime-elements/p-d228fd62.entry.js +2 -0
- package/dist/lime-elements/p-d228fd62.entry.js.map +1 -0
- package/dist/lime-elements/p-d529bb7d.js +2 -1
- package/dist/lime-elements/p-d529bb7d.js.map +1 -0
- package/dist/lime-elements/p-d7801e00.js +2 -1
- package/dist/lime-elements/p-d7801e00.js.map +1 -0
- package/dist/lime-elements/p-d7c39d02.entry.js +126 -0
- package/dist/lime-elements/p-d7c39d02.entry.js.map +1 -0
- package/dist/lime-elements/p-da25e94d.entry.js +2 -0
- package/dist/lime-elements/p-da25e94d.entry.js.map +1 -0
- package/dist/lime-elements/p-dcc97cc2.js +2 -1
- package/dist/lime-elements/p-dcc97cc2.js.map +1 -0
- package/dist/lime-elements/p-dfba92de.js +88 -8
- package/dist/lime-elements/p-dfba92de.js.map +1 -0
- package/dist/lime-elements/p-e0fa49ca.entry.js +2 -0
- package/dist/lime-elements/p-e0fa49ca.entry.js.map +1 -0
- package/dist/lime-elements/p-e59e0040.entry.js +2 -0
- package/dist/lime-elements/p-e59e0040.entry.js.map +1 -0
- package/dist/lime-elements/p-eab67c09.js +2 -1
- package/dist/lime-elements/p-eab67c09.js.map +1 -0
- package/dist/lime-elements/p-eda23c05.js +2 -1
- package/dist/lime-elements/p-eda23c05.js.map +1 -0
- package/dist/lime-elements/p-f1d9723a.entry.js +2 -0
- package/dist/lime-elements/p-f1d9723a.entry.js.map +1 -0
- package/dist/lime-elements/p-fa607ed3.js +2 -1
- package/dist/lime-elements/p-fa607ed3.js.map +1 -0
- package/dist/lime-elements/p-fb799569.entry.js +2 -0
- package/dist/lime-elements/p-fb799569.entry.js.map +1 -0
- package/dist/loader/index.d.ts +9 -0
- package/dist/types/components/callout/callout.types.d.ts +1 -1
- package/dist/types/components/circular-progress/circular-progress.types.d.ts +1 -1
- package/dist/types/components/code-editor/code-editor.types.d.ts +2 -2
- package/dist/types/components/date-picker/date.types.d.ts +2 -2
- package/dist/types/components/file/file-metadata.d.ts +5 -5
- package/dist/types/components/flex-container/flex-container.types.d.ts +3 -3
- package/dist/types/components/form/form.types.d.ts +1 -1
- package/dist/types/components/form/templates/types.d.ts +3 -3
- package/dist/types/components/form/widgets/index.d.ts +1 -1
- package/dist/types/components/icon/icon.types.d.ts +1 -1
- package/dist/types/components/input-field/input-field.types.d.ts +1 -1
- package/dist/types/components/list/list.types.d.ts +1 -1
- package/dist/types/components/menu/menu.types.d.ts +1 -1
- package/dist/types/components/menu-list/menu-list.types.d.ts +1 -1
- package/dist/types/components/picker/actions.types.d.ts +2 -2
- package/dist/types/components/picker/searcher.types.d.ts +1 -1
- package/dist/types/components/spinner/spinner.types.d.ts +1 -1
- package/dist/types/components/table/layout.d.ts +1 -1
- package/dist/types/components/table/table.types.d.ts +2 -2
- package/dist/types/components.d.ts +2848 -0
- package/dist/types/interface.d.ts +5 -14
- package/dist/types/stencil-public-runtime.d.ts +74 -15
- package/package.json +2 -2
- package/dist/lime-elements/p-076de623.entry.js +0 -1
- package/dist/lime-elements/p-07dd6729.entry.js +0 -1
- package/dist/lime-elements/p-094dd76a.entry.js +0 -126
- package/dist/lime-elements/p-10e259de.entry.js +0 -1
- package/dist/lime-elements/p-123f5fbb.entry.js +0 -1
- package/dist/lime-elements/p-29350441.entry.js +0 -37
- package/dist/lime-elements/p-30f5cc4d.entry.js +0 -1
- package/dist/lime-elements/p-35a6ab13.entry.js +0 -1
- package/dist/lime-elements/p-3618f8be.entry.js +0 -1
- package/dist/lime-elements/p-3be2dfc7.entry.js +0 -1
- package/dist/lime-elements/p-3cdc210b.entry.js +0 -1
- package/dist/lime-elements/p-3fda3473.entry.js +0 -1
- package/dist/lime-elements/p-46a76d55.entry.js +0 -1
- package/dist/lime-elements/p-4a62273c.entry.js +0 -1
- package/dist/lime-elements/p-4eeabc1f.entry.js +0 -1
- package/dist/lime-elements/p-5338663b.entry.js +0 -1
- package/dist/lime-elements/p-55900379.entry.js +0 -59
- package/dist/lime-elements/p-55c8cb64.entry.js +0 -131
- package/dist/lime-elements/p-6b8142ba.entry.js +0 -73
- package/dist/lime-elements/p-6c38b505.entry.js +0 -1
- package/dist/lime-elements/p-727fd4ea.entry.js +0 -38
- package/dist/lime-elements/p-7719a91d.entry.js +0 -1
- package/dist/lime-elements/p-79049482.entry.js +0 -1
- package/dist/lime-elements/p-7d7d19de.entry.js +0 -1
- package/dist/lime-elements/p-803cc4b7.entry.js +0 -1
- package/dist/lime-elements/p-82cd7bb6.entry.js +0 -1
- package/dist/lime-elements/p-8a2d1761.entry.js +0 -11
- package/dist/lime-elements/p-8acabe02.entry.js +0 -59
- package/dist/lime-elements/p-9336fd7f.entry.js +0 -1
- package/dist/lime-elements/p-95cefb5f.entry.js +0 -1
- package/dist/lime-elements/p-a3acc38f.entry.js +0 -83
- package/dist/lime-elements/p-a5d5efc4.entry.js +0 -1
- package/dist/lime-elements/p-b0bfec52.entry.js +0 -1
- package/dist/lime-elements/p-b40f37d7.entry.js +0 -1
- package/dist/lime-elements/p-b526ebd4.entry.js +0 -1
- package/dist/lime-elements/p-b80de0ea.entry.js +0 -1
- package/dist/lime-elements/p-bf3d6097.entry.js +0 -1
- package/dist/lime-elements/p-c6e913a4.entry.js +0 -82
- package/dist/lime-elements/p-cb2c9562.entry.js +0 -16
- package/dist/lime-elements/p-cc3529bb.entry.js +0 -82
- package/dist/lime-elements/p-cfaa685f.entry.js +0 -1
- package/dist/lime-elements/p-d2a3d50b.js +0 -1
- package/dist/lime-elements/p-d4e788e1.js +0 -2
- package/dist/lime-elements/p-d55d88a5.entry.js +0 -1
- package/dist/lime-elements/p-da4d1bc1.entry.js +0 -16
- package/dist/lime-elements/p-eda87f8c.entry.js +0 -1
- package/dist/lime-elements/p-edbd8d62.entry.js +0 -1
- package/dist/lime-elements/p-ef93fd3e.entry.js +0 -1
- package/dist/lime-elements/p-f11e7ce1.entry.js +0 -1
- package/dist/lime-elements/p-f979c0f2.entry.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as o,h as n,H as r,g as s}from"./p-d4e788e1.js";import{p as a,n as h,h as u}from"./p-ad8cb388.js";import{i as c}from"./p-ade76f1d.js";import"./p-669626e5.js";import"./p-c93050d6.js";import"./p-0b1af919.js";import"./p-d529bb7d.js";import"./p-858c6b82.js";import"./p-9acf7b5d.js";import"./p-eda23c05.js";import"./p-b28128d2.js";import"./p-5fdb83c9.js";import"./p-4c3358cb.js";var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(t){if(null==this)throw new TypeError('"this" is null or not defined');var i=Object(this),o=i.length>>>0;if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var n=arguments[1],r=0;r<o;){var e=i[r];if(t.call(n,e,r,i))return r;r++}return-1}}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null==this)throw new TypeError('"this" is null or not defined');var i=Object(this),o=i.length>>>0;if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var n=arguments[1],r=0;r<o;){var e=i[r];if(t.call(n,e,r,i))return e;r++}}}),String.prototype.includes||(String.prototype.includes=function(t,i){if(t instanceof RegExp)throw TypeError("first argument must not be a RegExp");return void 0===i&&(i=0),-1!==this.indexOf(t,i)}),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(t,i){if(null==this)throw new TypeError('"this" is null or not defined');var o=Object(this),n=o.length>>>0;if(0===n)return!1;for(var r,e,s=0|i,a=Math.max(s>=0?s:n-Math.abs(s),0);a<n;){if((r=o[a])===(e=t)||"number"==typeof r&&"number"==typeof e&&isNaN(r)&&isNaN(e))return!0;a++}return!1}}),"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,i){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var o=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(o[e]=r[e])}return o},writable:!0,configurable:!0});var f=function(t){this.table=t,this.blockHozScrollEvent=!1,this.headersElement=this.createHeadersElement(),this.element=this.createHeaderElement(),this.rowManager=null,this.columns=[],this.columnsByIndex=[],this.columnsByField={},this.scrollLeft=0,this.element.insertBefore(this.headersElement,this.element.firstChild)};f.prototype.createHeadersElement=function(){var t=document.createElement("div");return t.classList.add("tabulator-headers"),t},f.prototype.createHeaderElement=function(){var t=document.createElement("div");return t.classList.add("tabulator-header"),this.table.options.headerVisible||t.classList.add("tabulator-header-hidden"),t},f.prototype.initialize=function(){},f.prototype.setRowManager=function(t){this.rowManager=t},f.prototype.getElement=function(){return this.element},f.prototype.getHeadersElement=function(){return this.headersElement},f.prototype.scrollHorizontal=function(t){var i=this.element.scrollWidth-this.table.element.clientWidth;this.element.scrollLeft=t,this.element.style.marginLeft=t>i?-(t-i)+"px":0,this.scrollLeft=t,this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.scrollHorizontal()},f.prototype.generateColumnsFromRowData=function(t){var i,o,n=[],r=this.table.options.autoColumnsDefinitions;if(t&&t.length){for(var e in i=t[0]){var s={field:e,title:e},a=i[e];switch(void 0===a?"undefined":l(a)){case"undefined":o="string";break;case"boolean":o="boolean";break;case"object":o=Array.isArray(a)?"array":"string";break;default:o=isNaN(a)||""===a?a.match(/((^[0-9]+[a-z]+)|(^[a-z]+[0-9]+))+$/i)?"alphanum":"string":"number"}s.sorter=o,n.push(s)}if(r)switch(void 0===r?"undefined":l(r)){case"function":this.table.options.columns=r.call(this.table,n);break;case"object":Array.isArray(r)?n.forEach((function(t){var i=r.find((function(i){return i.field===t.field}));i&&Object.assign(t,i)})):n.forEach((function(t){r[t.field]&&Object.assign(t,r[t.field])})),this.table.options.columns=n}else this.table.options.columns=n;this.setColumns(this.table.options.columns)}},f.prototype.setColumns=function(t){for(var i=this;i.headersElement.firstChild;)i.headersElement.removeChild(i.headersElement.firstChild);i.columns=[],i.columnsByIndex=[],i.columnsByField={},i.table.modExists("frozenColumns")&&i.table.modules.frozenColumns.reset(),t.forEach((function(t){i._addColumn(t)})),i._reIndexColumns(),i.table.options.responsiveLayout&&i.table.modExists("responsiveLayout",!0)&&i.table.modules.responsiveLayout.initialize(),this.table.options.virtualDomHoz&&this.table.vdomHoz.reinitialize(!1,!0),i.redraw(!0)},f.prototype._addColumn=function(t,i,o){var n=new b(t,this),r=n.getElement(),e=o?this.findColumnIndex(o):o;if(o&&e>-1){var s=this.columns.indexOf(o.getTopColumn()),a=o.getElement();i?(this.columns.splice(s,0,n),a.parentNode.insertBefore(r,a)):(this.columns.splice(s+1,0,n),a.parentNode.insertBefore(r,a.nextSibling))}else i?(this.columns.unshift(n),this.headersElement.insertBefore(n.getElement(),this.headersElement.firstChild)):(this.columns.push(n),this.headersElement.appendChild(n.getElement())),n.columnRendered();return n},f.prototype.registerColumnField=function(t){t.definition.field&&(this.columnsByField[t.definition.field]=t)},f.prototype.registerColumnPosition=function(t){this.columnsByIndex.push(t)},f.prototype._reIndexColumns=function(){this.columnsByIndex=[],this.columns.forEach((function(t){t.reRegisterPosition()}))},f.prototype._verticalAlignHeaders=function(){var t=this,i=0;t.columns.forEach((function(t){var o;t.clearVerticalAlign(),(o=t.getHeight())>i&&(i=o)})),t.columns.forEach((function(o){o.verticalAlign(t.table.options.columnHeaderVertAlign,i)})),t.rowManager.adjustTableSize()},f.prototype.findColumn=function(t){return"object"!=(void 0===t?"undefined":l(t))?this.columnsByField[t]||!1:t instanceof b?t:t instanceof d?t._getSelf()||!1:"undefined"!=typeof HTMLElement&&t instanceof HTMLElement&&this.columns.find((function(i){return i.element===t}))||!1},f.prototype.getColumnByField=function(t){return this.columnsByField[t]},f.prototype.getColumnsByFieldRoot=function(t){var i=this,o=[];return Object.keys(this.columnsByField).forEach((function(n){n.split(".")[0]===t&&o.push(i.columnsByField[n])})),o},f.prototype.getColumnByIndex=function(t){return this.columnsByIndex[t]},f.prototype.getFirstVisibileColumn=function(t){return(t=this.columnsByIndex.findIndex((function(t){return t.visible})))>-1&&this.columnsByIndex[t]},f.prototype.getColumns=function(){return this.columns},f.prototype.findColumnIndex=function(t){return this.columnsByIndex.findIndex((function(i){return t===i}))},f.prototype.getRealColumns=function(){return this.columnsByIndex},f.prototype.traverse=function(t){this.columnsByIndex.forEach((function(i,o){t(i,o)}))},f.prototype.getDefinitions=function(t){var i=[];return this.columnsByIndex.forEach((function(o){(!t||t&&o.visible)&&i.push(o.getDefinition())})),i},f.prototype.getDefinitionTree=function(){var t=[];return this.columns.forEach((function(i){t.push(i.getDefinition(!0))})),t},f.prototype.getComponents=function(t){var i=[];return(t?this.columns:this.columnsByIndex).forEach((function(t){i.push(t.getComponent())})),i},f.prototype.getWidth=function(){var t=0;return this.columnsByIndex.forEach((function(i){i.visible&&(t+=i.getWidth())})),t},f.prototype.moveColumn=function(t,i,o){this.moveColumnActual(t,i,o),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.initialize(),this.table.modExists("columnCalcs")&&this.table.modules.columnCalcs.recalc(this.table.rowManager.activeRows),i.element.parentNode.insertBefore(t.element,i.element),o&&i.element.parentNode.insertBefore(i.element,t.element),this._verticalAlignHeaders(),this.table.rowManager.reinitialize()},f.prototype.moveColumnActual=function(t,i,o){this._moveColumnInArray(t.parent.isGroup?t.parent.columns:this.columns,t,i,o),this._moveColumnInArray(this.columnsByIndex,t,i,o,!0),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.initialize(),this.table.options.virtualDomHoz&&this.table.vdomHoz.reinitialize(!0),this.table.options.columnMoved&&this.table.options.columnMoved.call(this.table,t.getComponent(),this.table.columnManager.getComponents()),this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.columns&&this.table.modules.persistence.save("columns")},f.prototype._moveColumnInArray=function(t,i,o,n,r){var e,s=this,a=t.indexOf(i),h=[];a>-1&&(t.splice(a,1),(e=t.indexOf(o))>-1?n&&(e+=1):e=a,t.splice(e,0,i),r&&(this.table.options.dataTree&&this.table.modExists("dataTree",!0)&&this.table.rowManager.rows.forEach((function(t){h=h.concat(s.table.modules.dataTree.getTreeChildren(t,!1,!0))})),(h=h.concat(this.table.rowManager.rows)).forEach((function(t){if(t.cells.length){var i=t.cells.splice(a,1)[0];t.cells.splice(e,0,i)}}))))},f.prototype.scrollToColumn=function(t,i,o){var n=this,r=0,e=0,s=0,a=t.getElement();return new Promise((function(h,u){if(void 0===i&&(i=n.table.options.scrollToColumnPosition),void 0===o&&(o=n.table.options.scrollToColumnIfVisible),t.visible){switch(i){case"middle":case"center":s=-n.element.clientWidth/2;break;case"right":s=a.clientWidth-n.headersElement.clientWidth}if(!o&&(e=a.offsetLeft)>0&&e+a.offsetWidth<n.element.clientWidth)return!1;r=a.offsetLeft+s,r=Math.max(Math.min(r,n.table.rowManager.element.scrollWidth-n.table.rowManager.element.clientWidth),0),n.table.rowManager.scrollHorizontal(r),n.scrollHorizontal(r),h()}else console.warn("Scroll Error - Column not visible"),u("Scroll Error - Column not visible")}))},f.prototype.generateCells=function(t){var i=[];return this.columnsByIndex.forEach((function(o){i.push(o.generateCell(t))})),i},f.prototype.getFlexBaseWidth=function(){var t=this,i=t.table.element.clientWidth,o=0;return t.rowManager.element.scrollHeight>t.rowManager.element.clientHeight&&(i-=t.rowManager.element.offsetWidth-t.rowManager.element.clientWidth),this.columnsByIndex.forEach((function(n){var r,e,s;n.visible&&(r=n.definition.width||0,e=void 0===n.minWidth?t.table.options.columnMinWidth:parseInt(n.minWidth),s="string"==typeof r?r.indexOf("%")>-1?i/100*parseInt(r):parseInt(r):r,o+=s>e?s:e)})),o},f.prototype.addColumn=function(t,i,o){var n=this;return new Promise((function(r){var e=n._addColumn(t,i,o);n._reIndexColumns(),n.table.options.responsiveLayout&&n.table.modExists("responsiveLayout",!0)&&n.table.modules.responsiveLayout.initialize(),n.table.modExists("columnCalcs")&&n.table.modules.columnCalcs.recalc(n.table.rowManager.activeRows),n.redraw(!0),"fitColumns"!=n.table.modules.layout.getMode()&&e.reinitializeWidth(),n._verticalAlignHeaders(),n.table.rowManager.reinitialize(),n.table.options.virtualDomHoz&&n.table.vdomHoz.reinitialize(),r(e)}))},f.prototype.deregisterColumn=function(t){var i,o=t.getField();o&&delete this.columnsByField[o],(i=this.columnsByIndex.indexOf(t))>-1&&this.columnsByIndex.splice(i,1),(i=this.columns.indexOf(t))>-1&&this.columns.splice(i,1),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.initialize(),this._verticalAlignHeaders(),this.redraw()},f.prototype.redraw=function(t){t&&(k.prototype.helpers.elVisible(this.element)&&this._verticalAlignHeaders(),this.table.rowManager.resetScroll(),this.table.rowManager.reinitialize()),["fitColumns","fitDataStretch"].indexOf(this.table.modules.layout.getMode())>-1||t?this.table.modules.layout.layout():this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update(),this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layout(),this.table.modExists("columnCalcs")&&this.table.modules.columnCalcs.recalc(this.table.rowManager.activeRows),t&&(this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.columns&&this.table.modules.persistence.save("columns"),this.table.modExists("columnCalcs")&&this.table.modules.columnCalcs.redraw()),this.table.footerManager.redraw()};var d=function(t){this._column=t,this.type="ColumnComponent"};d.prototype.getElement=function(){return this._column.getElement()},d.prototype.getDefinition=function(){return this._column.getDefinition()},d.prototype.getField=function(){return this._column.getField()},d.prototype.getCells=function(){var t=[];return this._column.cells.forEach((function(i){t.push(i.getComponent())})),t},d.prototype.getVisibility=function(){return console.warn("getVisibility function is deprecated, you should now use the isVisible function"),this._column.visible},d.prototype.isVisible=function(){return this._column.visible},d.prototype.show=function(){this._column.isGroup?this._column.columns.forEach((function(t){t.show()})):this._column.show()},d.prototype.hide=function(){this._column.isGroup?this._column.columns.forEach((function(t){t.hide()})):this._column.hide()},d.prototype.toggle=function(){this._column.visible?this.hide():this.show()},d.prototype.delete=function(){return this._column.delete()},d.prototype.getSubColumns=function(){var t=[];return this._column.columns.length&&this._column.columns.forEach((function(i){t.push(i.getComponent())})),t},d.prototype.getParentColumn=function(){return this._column.parent instanceof b&&this._column.parent.getComponent()},d.prototype._getSelf=function(){return this._column},d.prototype.scrollTo=function(){return this._column.table.columnManager.scrollToColumn(this._column)},d.prototype.getTable=function(){return this._column.table},d.prototype.headerFilterFocus=function(){this._column.table.modExists("filter",!0)&&this._column.table.modules.filter.setHeaderFilterFocus(this._column)},d.prototype.reloadHeaderFilter=function(){this._column.table.modExists("filter",!0)&&this._column.table.modules.filter.reloadHeaderFilter(this._column)},d.prototype.getHeaderFilterValue=function(){if(this._column.table.modExists("filter",!0))return this._column.table.modules.filter.getHeaderFilterValue(this._column)},d.prototype.setHeaderFilterValue=function(t){this._column.table.modExists("filter",!0)&&this._column.table.modules.filter.setHeaderFilterValue(this._column,t)},d.prototype.move=function(t,i){var o=this._column.table.columnManager.findColumn(t);o?this._column.table.columnManager.moveColumn(this._column,o,i):console.warn("Move Error - No matching column found:",o)},d.prototype.getNextColumn=function(){var t=this._column.nextColumn();return!!t&&t.getComponent()},d.prototype.getPrevColumn=function(){var t=this._column.prevColumn();return!!t&&t.getComponent()},d.prototype.updateDefinition=function(t){return this._column.updateDefinition(t)},d.prototype.getWidth=function(){return this._column.getWidth()},d.prototype.setWidth=function(t){var i;return i=!0===t?this._column.reinitializeWidth(!0):this._column.setWidth(t),this._column.table.options.virtualDomHoz&&this._column.table.vdomHoz.reinitialize(!0),i},d.prototype.validate=function(){return this._column.validate()};var b=function t(i,o){var n=this;this.table=o.table,this.definition=i,this.parent=o,this.type="column",this.columns=[],this.cells=[],this.element=this.createElement(),this.contentElement=!1,this.titleHolderElement=!1,this.titleElement=!1,this.groupElement=this.createGroupElement(),this.isGroup=!1,this.tooltip=!1,this.hozAlign="",this.vertAlign="",this.field="",this.fieldStructure="",this.getFieldValue="",this.setFieldValue="",this.titleFormatterRendered=!1,this.setField(this.definition.field),this.table.options.invalidOptionWarnings&&this.checkDefinition(),this.modules={},this.cellEvents={cellClick:!1,cellDblClick:!1,cellContext:!1,cellTap:!1,cellDblTap:!1,cellTapHold:!1,cellMouseEnter:!1,cellMouseLeave:!1,cellMouseOver:!1,cellMouseOut:!1,cellMouseMove:!1},this.width=null,this.widthStyled="",this.maxWidth=null,this.maxWidthStyled="",this.minWidth=null,this.minWidthStyled="",this.widthFixed=!1,this.visible=!0,this.component=null,this._mapDepricatedFunctionality(),i.columns?(this.isGroup=!0,i.columns.forEach((function(i){var o=new t(i,n);n.attachColumn(o)})),n.checkColumnVisibility()):o.registerColumnField(this),i.rowHandle&&!1!==this.table.options.movableRows&&this.table.modExists("moveRow")&&this.table.modules.moveRow.setHandle(!0),this._buildHeader(),this.bindModuleColumns()};b.prototype.createElement=function(){var t=document.createElement("div");return t.classList.add("tabulator-col"),t.setAttribute("role","columnheader"),t.setAttribute("aria-sort","none"),t},b.prototype.createGroupElement=function(){var t=document.createElement("div");return t.classList.add("tabulator-col-group-cols"),t},b.prototype.checkDefinition=function(){var t=this;Object.keys(this.definition).forEach((function(i){-1===t.defaultOptionList.indexOf(i)&&console.warn("Invalid column definition option in '"+(t.field||t.definition.title)+"' column:",i)}))},b.prototype.setField=function(t){this.field=t,this.fieldStructure=t?this.table.options.nestedFieldSeparator?t.split(this.table.options.nestedFieldSeparator):[t]:[],this.getFieldValue=this.fieldStructure.length>1?this._getNestedData:this._getFlatData,this.setFieldValue=this.fieldStructure.length>1?this._setNestedData:this._setFlatData},b.prototype.registerColumnPosition=function(t){this.parent.registerColumnPosition(t)},b.prototype.registerColumnField=function(t){this.parent.registerColumnField(t)},b.prototype.reRegisterPosition=function(){this.isGroup?this.columns.forEach((function(t){t.reRegisterPosition()})):this.registerColumnPosition(this)},b.prototype._mapDepricatedFunctionality=function(){void 0!==this.definition.hideInHtml&&(this.definition.htmlOutput=!this.definition.hideInHtml,console.warn("hideInHtml column definition property is deprecated, you should now use htmlOutput")),void 0!==this.definition.align&&(this.definition.hozAlign=this.definition.align,console.warn("align column definition property is deprecated, you should now use hozAlign")),void 0!==this.definition.downloadTitle&&(this.definition.titleDownload=this.definition.downloadTitle,console.warn("downloadTitle definition property is deprecated, you should now use titleDownload"))},b.prototype.setTooltip=function(){var t=this,i=t.definition,o=i.headerTooltip||!1===i.tooltip?i.headerTooltip:t.table.options.tooltipsHeader;o?!0===o?i.field?t.table.modules.localize.bind("columns|"+i.field,(function(o){t.element.setAttribute("title",o||i.title)})):t.element.setAttribute("title",i.title):("function"==typeof o&&!1===(o=o(t.getComponent()))&&(o=""),t.element.setAttribute("title",o)):t.element.setAttribute("title","")},b.prototype._buildHeader=function(){for(var t=this,i=t.definition;t.element.firstChild;)t.element.removeChild(t.element.firstChild);i.headerVertical&&(t.element.classList.add("tabulator-col-vertical"),"flip"===i.headerVertical&&t.element.classList.add("tabulator-col-vertical-flip")),t.contentElement=t._bindEvents(),t.contentElement=t._buildColumnHeaderContent(),t.element.appendChild(t.contentElement),t.isGroup?t._buildGroupHeader():t._buildColumnHeader(),t.setTooltip(),t.table.options.resizableColumns&&t.table.modExists("resizeColumns")&&t.table.modules.resizeColumns.initializeColumn("header",t,t.element),i.headerFilter&&t.table.modExists("filter")&&t.table.modExists("edit")&&(void 0!==i.headerFilterPlaceholder&&i.field&&t.table.modules.localize.setHeaderFilterColumnPlaceholder(i.field,i.headerFilterPlaceholder),t.table.modules.filter.initializeColumn(t)),t.table.modExists("frozenColumns")&&t.table.modules.frozenColumns.initializeColumn(t),t.table.options.movableColumns&&!t.isGroup&&t.table.modExists("moveColumn")&&t.table.modules.moveColumn.initializeColumn(t),(i.topCalc||i.bottomCalc)&&t.table.modExists("columnCalcs")&&t.table.modules.columnCalcs.initializeColumn(t),t.table.modExists("persistence")&&t.table.modules.persistence.config.columns&&t.table.modules.persistence.initializeColumn(t),t.element.addEventListener("mouseenter",(function(){t.setTooltip()}))},b.prototype._bindEvents=function(){var t,i,o,n=this,r=n.definition;"function"==typeof r.headerClick&&n.element.addEventListener("click",(function(t){r.headerClick(t,n.getComponent())})),"function"==typeof r.headerDblClick&&n.element.addEventListener("dblclick",(function(t){r.headerDblClick(t,n.getComponent())})),"function"==typeof r.headerContext&&n.element.addEventListener("contextmenu",(function(t){r.headerContext(t,n.getComponent())})),"function"==typeof r.headerTap&&(o=!1,n.element.addEventListener("touchstart",(function(){o=!0}),{passive:!0}),n.element.addEventListener("touchend",(function(t){o&&r.headerTap(t,n.getComponent()),o=!1}))),"function"==typeof r.headerDblTap&&(t=null,n.element.addEventListener("touchend",(function(i){t?(clearTimeout(t),t=null,r.headerDblTap(i,n.getComponent())):t=setTimeout((function(){clearTimeout(t),t=null}),300)}))),"function"==typeof r.headerTapHold&&(i=null,n.element.addEventListener("touchstart",(function(t){clearTimeout(i),i=setTimeout((function(){clearTimeout(i),i=null,o=!1,r.headerTapHold(t,n.getComponent())}),1e3)}),{passive:!0}),n.element.addEventListener("touchend",(function(){clearTimeout(i),i=null}))),"function"==typeof r.cellClick&&(n.cellEvents.cellClick=r.cellClick),"function"==typeof r.cellDblClick&&(n.cellEvents.cellDblClick=r.cellDblClick),"function"==typeof r.cellContext&&(n.cellEvents.cellContext=r.cellContext),"function"==typeof r.cellMouseEnter&&(n.cellEvents.cellMouseEnter=r.cellMouseEnter),"function"==typeof r.cellMouseLeave&&(n.cellEvents.cellMouseLeave=r.cellMouseLeave),"function"==typeof r.cellMouseOver&&(n.cellEvents.cellMouseOver=r.cellMouseOver),"function"==typeof r.cellMouseOut&&(n.cellEvents.cellMouseOut=r.cellMouseOut),"function"==typeof r.cellMouseMove&&(n.cellEvents.cellMouseMove=r.cellMouseMove),"function"==typeof r.cellTap&&(n.cellEvents.cellTap=r.cellTap),"function"==typeof r.cellDblTap&&(n.cellEvents.cellDblTap=r.cellDblTap),"function"==typeof r.cellTapHold&&(n.cellEvents.cellTapHold=r.cellTapHold),"function"==typeof r.cellEdited&&(n.cellEvents.cellEdited=r.cellEdited),"function"==typeof r.cellEditing&&(n.cellEvents.cellEditing=r.cellEditing),"function"==typeof r.cellEditCancelled&&(n.cellEvents.cellEditCancelled=r.cellEditCancelled)},b.prototype._buildColumnHeader=function(){var t=this,i=this.definition,o=this.table;o.modExists("sort")&&o.modules.sort.initializeColumn(this,this.titleHolderElement),(i.headerContextMenu||i.headerClickMenu||i.headerMenu)&&o.modExists("menu")&&o.modules.menu.initializeColumnHeader(this),o.modExists("format")&&o.modules.format.initializeColumn(this),void 0!==i.editor&&o.modExists("edit")&&o.modules.edit.initializeColumn(this),void 0!==i.validator&&o.modExists("validate")&&o.modules.validate.initializeColumn(this),o.modExists("mutator")&&o.modules.mutator.initializeColumn(this),o.modExists("accessor")&&o.modules.accessor.initializeColumn(this),l(o.options.responsiveLayout)&&o.modExists("responsiveLayout")&&o.modules.responsiveLayout.initializeColumn(this),void 0!==i.visible&&(i.visible?this.show(!0):this.hide(!0)),i.cssClass&&i.cssClass.split(" ").forEach((function(i){t.element.classList.add(i)})),i.field&&this.element.setAttribute("tabulator-field",i.field),this.setMinWidth(void 0===i.minWidth?this.table.options.columnMinWidth:parseInt(i.minWidth)),(i.maxWidth||this.table.options.columnMaxWidth)&&!1!==i.maxWidth&&this.setMaxWidth(void 0===i.maxWidth?this.table.options.columnMaxWidth:parseInt(i.maxWidth)),this.reinitializeWidth(),this.tooltip=this.definition.tooltip||!1===this.definition.tooltip?this.definition.tooltip:this.table.options.tooltips,this.hozAlign=void 0===this.definition.hozAlign?this.table.options.cellHozAlign:this.definition.hozAlign,this.vertAlign=void 0===this.definition.vertAlign?this.table.options.cellVertAlign:this.definition.vertAlign,this.titleElement.style.textAlign=this.definition.headerHozAlign||this.table.options.headerHozAlign},b.prototype._buildColumnHeaderContent=function(){var t=document.createElement("div");return t.classList.add("tabulator-col-content"),this.titleHolderElement=document.createElement("div"),this.titleHolderElement.classList.add("tabulator-col-title-holder"),t.appendChild(this.titleHolderElement),this.titleElement=this._buildColumnHeaderTitle(),this.titleHolderElement.appendChild(this.titleElement),t},b.prototype._buildColumnHeaderTitle=function(){var t=this,i=t.definition,o=t.table,n=document.createElement("div");if(n.classList.add("tabulator-col-title"),i.editableTitle){var r=document.createElement("input");r.classList.add("tabulator-title-editor"),r.addEventListener("click",(function(t){t.stopPropagation(),r.focus()})),r.addEventListener("change",(function(){i.title=r.value,o.options.columnTitleChanged.call(t.table,t.getComponent())})),n.appendChild(r),i.field?o.modules.localize.bind("columns|"+i.field,(function(t){r.value=t||i.title||" "})):r.value=i.title||" "}else i.field?o.modules.localize.bind("columns|"+i.field,(function(o){t._formatColumnHeaderTitle(n,o||i.title||" ")})):t._formatColumnHeaderTitle(n,i.title||" ");return n},b.prototype._formatColumnHeaderTitle=function(t,i){var o,n,r,e,s,a=this;if(this.definition.titleFormatter&&this.table.modExists("format"))switch(o=this.table.modules.format.getFormatter(this.definition.titleFormatter),s=function(t){a.titleFormatterRendered=t},e={getValue:function(){return i},getElement:function(){return t}},r="function"==typeof(r=this.definition.titleFormatterParams||{})?r():r,void 0===(n=o.call(this.table.modules.format,e,r,s))?"undefined":l(n)){case"object":n instanceof Node?t.appendChild(n):(t.innerHTML="",console.warn("Format Error - Title formatter has returned a type of object, the only valid formatter object return is an instance of Node, the formatter returned:",n));break;case"undefined":case"null":t.innerHTML="";break;default:t.innerHTML=n}else t.innerHTML=i},b.prototype._buildGroupHeader=function(){var t=this;this.element.classList.add("tabulator-col-group"),this.element.setAttribute("role","columngroup"),this.element.setAttribute("aria-title",this.definition.title),this.definition.cssClass&&this.definition.cssClass.split(" ").forEach((function(i){t.element.classList.add(i)})),(this.definition.headerContextMenu||this.definition.headerMenu)&&this.table.modExists("menu")&&this.table.modules.menu.initializeColumnHeader(this),this.titleElement.style.textAlign=this.definition.headerHozAlign||this.table.options.headerHozAlign,this.element.appendChild(this.groupElement)},b.prototype._getFlatData=function(t){return t[this.field]},b.prototype._getNestedData=function(t){for(var i,o=t,n=this.fieldStructure,r=n.length,e=0;e<r&&(i=o=o[n[e]],o);e++);return i},b.prototype._setFlatData=function(t,i){this.field&&(t[this.field]=i)},b.prototype._setNestedData=function(t,i){for(var o=t,n=this.fieldStructure,r=n.length,e=0;e<r;e++)if(e==r-1)o[n[e]]=i;else{if(!o[n[e]]){if(void 0===i)break;o[n[e]]={}}o=o[n[e]]}},b.prototype.attachColumn=function(t){var i=this;i.groupElement?(i.columns.push(t),i.groupElement.appendChild(t.getElement())):console.warn("Column Warning - Column being attached to another column instead of column group")},b.prototype.verticalAlign=function(t,i){var o=this.parent.isGroup?this.parent.getGroupElement().clientHeight:i||this.parent.getHeadersElement().clientHeight;this.element.style.height=o+"px",this.isGroup&&(this.groupElement.style.minHeight=o-this.contentElement.offsetHeight+"px"),this.isGroup||"top"===t||(this.element.style.paddingTop="bottom"===t?this.element.clientHeight-this.contentElement.offsetHeight+"px":(this.element.clientHeight-this.contentElement.offsetHeight)/2+"px"),this.columns.forEach((function(i){i.verticalAlign(t)}))},b.prototype.clearVerticalAlign=function(){this.element.style.paddingTop="",this.element.style.height="",this.element.style.minHeight="",this.groupElement.style.minHeight="",this.columns.forEach((function(t){t.clearVerticalAlign()}))},b.prototype.bindModuleColumns=function(){"rownum"==this.definition.formatter&&(this.table.rowManager.rowNumColumn=this)},b.prototype.getElement=function(){return this.element},b.prototype.getGroupElement=function(){return this.groupElement},b.prototype.getField=function(){return this.field},b.prototype.getFirstColumn=function(){return this.isGroup?!!this.columns.length&&this.columns[0].getFirstColumn():this},b.prototype.getLastColumn=function(){return this.isGroup?!!this.columns.length&&this.columns[this.columns.length-1].getLastColumn():this},b.prototype.getColumns=function(){return this.columns},b.prototype.getCells=function(){return this.cells},b.prototype.getTopColumn=function(){return this.parent.isGroup?this.parent.getTopColumn():this},b.prototype.getDefinition=function(t){var i=[];return this.isGroup&&t&&(this.columns.forEach((function(t){i.push(t.getDefinition(!0))})),this.definition.columns=i),this.definition},b.prototype.checkColumnVisibility=function(){var t=!1;this.columns.forEach((function(i){i.visible&&(t=!0)})),t?(this.show(),this.parent.table.options.columnVisibilityChanged.call(this.table,this.getComponent(),!1)):this.hide()},b.prototype.show=function(t,i){this.visible||(this.visible=!0,this.element.style.display="",this.parent.isGroup&&this.parent.checkColumnVisibility(),this.cells.forEach((function(t){t.show()})),this.isGroup||null!==this.width||this.reinitializeWidth(),this.table.columnManager._verticalAlignHeaders(),this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.columns&&this.table.modules.persistence.save("columns"),!i&&this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.updateColumnVisibility(this,this.visible),t||this.table.options.columnVisibilityChanged.call(this.table,this.getComponent(),!0),this.parent.isGroup&&this.parent.matchChildWidths(),!this.silent&&this.table.options.virtualDomHoz&&this.table.vdomHoz.reinitialize())},b.prototype.hide=function(t,i){this.visible&&(this.visible=!1,this.element.style.display="none",this.table.columnManager._verticalAlignHeaders(),this.parent.isGroup&&this.parent.checkColumnVisibility(),this.cells.forEach((function(t){t.hide()})),this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.columns&&this.table.modules.persistence.save("columns"),!i&&this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.updateColumnVisibility(this,this.visible),t||this.table.options.columnVisibilityChanged.call(this.table,this.getComponent(),!1),this.parent.isGroup&&this.parent.matchChildWidths(),!this.silent&&this.table.options.virtualDomHoz&&this.table.vdomHoz.reinitialize())},b.prototype.matchChildWidths=function(){var t=0;this.contentElement&&this.columns.length&&(this.columns.forEach((function(i){i.visible&&(t+=i.getWidth())})),this.contentElement.style.maxWidth=t-1+"px",this.parent.isGroup&&this.parent.matchChildWidths())},b.prototype.removeChild=function(t){var i=this.columns.indexOf(t);i>-1&&this.columns.splice(i,1),this.columns.length||this.delete()},b.prototype.setWidth=function(t){this.widthFixed=!0,this.setWidthActual(t)},b.prototype.setWidthActual=function(t){isNaN(t)&&(t=Math.floor(this.table.element.clientWidth/100*parseInt(t))),t=Math.max(this.minWidth,t),this.maxWidth&&(t=Math.min(this.maxWidth,t)),this.width=t,this.widthStyled=t?t+"px":"",this.element.style.width=this.widthStyled,this.isGroup||this.cells.forEach((function(t){t.setWidth()})),this.parent.isGroup&&this.parent.matchChildWidths(),this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layout()},b.prototype.checkCellHeights=function(){var t=[];this.cells.forEach((function(i){i.row.heightInitialized&&(null!==i.row.getElement().offsetParent?(t.push(i.row),i.row.clearCellHeight()):i.row.heightInitialized=!1)})),t.forEach((function(t){t.calcHeight()})),t.forEach((function(t){t.setCellHeight()}))},b.prototype.getWidth=function(){var t=0;return this.isGroup?this.columns.forEach((function(i){i.visible&&(t+=i.getWidth())})):t=this.width,t},b.prototype.getHeight=function(){return this.element.offsetHeight},b.prototype.setMinWidth=function(t){this.minWidth=t,this.minWidthStyled=t?t+"px":"",this.element.style.minWidth=this.minWidthStyled,this.cells.forEach((function(t){t.setMinWidth()}))},b.prototype.setMaxWidth=function(t){this.maxWidth=t,this.maxWidthStyled=t?t+"px":"",this.element.style.maxWidth=this.maxWidthStyled,this.cells.forEach((function(t){t.setMaxWidth()}))},b.prototype.delete=function(){var t=this;return new Promise((function(i){t.isGroup&&t.columns.forEach((function(t){t.delete()})),t.table.modExists("edit")&&t.table.modules.edit.currentCell.column===t&&t.table.modules.edit.cancelEdit();for(var o=t.cells.length,n=0;n<o;n++)t.cells[0].delete();t.element.parentNode&&t.element.parentNode.removeChild(t.element),t.element=!1,t.contentElement=!1,t.titleElement=!1,t.groupElement=!1,t.parent.isGroup&&t.parent.removeChild(t),t.table.columnManager.deregisterColumn(t),t.table.options.virtualDomHoz&&t.table.vdomHoz.reinitialize(!0),i()}))},b.prototype.columnRendered=function(){this.titleFormatterRendered&&this.titleFormatterRendered()},b.prototype.validate=function(){var t=[];return this.cells.forEach((function(i){i.validate()||t.push(i.getComponent())})),!t.length||t},b.prototype.generateCell=function(t){var i=new x(this,t);return this.cells.push(i),i},b.prototype.nextColumn=function(){var t=this.table.columnManager.findColumnIndex(this);return t>-1&&this._nextVisibleColumn(t+1)},b.prototype._nextVisibleColumn=function(t){var i=this.table.columnManager.getColumnByIndex(t);return!i||i.visible?i:this._nextVisibleColumn(t+1)},b.prototype.prevColumn=function(){var t=this.table.columnManager.findColumnIndex(this);return t>-1&&this._prevVisibleColumn(t-1)},b.prototype._prevVisibleColumn=function(t){var i=this.table.columnManager.getColumnByIndex(t);return!i||i.visible?i:this._prevVisibleColumn(t-1)},b.prototype.reinitializeWidth=function(t){this.widthFixed=!1,void 0===this.definition.width||t||this.setWidth(this.definition.width),this.table.modExists("filter")&&this.table.modules.filter.hideHeaderFilterElements(),this.fitToData(),this.table.modExists("filter")&&this.table.modules.filter.showHeaderFilterElements()},b.prototype.fitToData=function(){var t=this;this.widthFixed||(this.element.style.width="",t.cells.forEach((function(t){t.clearWidth()})));var i=this.element.offsetWidth;t.width&&this.widthFixed||(t.cells.forEach((function(t){var o=t.getWidth();o>i&&(i=o)})),i&&t.setWidthActual(i+1))},b.prototype.updateDefinition=function(t){var i=this;return new Promise((function(o,n){var r;i.isGroup||i.parent.isGroup?(console.warn("Column Update Error - The updateDefinition function is only available on ungrouped columns"),n("Column Update Error - The updateDefinition function is only available on columns, not column groups")):(r=Object.assign({},i.getDefinition()),r=Object.assign(r,t),i.table.columnManager.addColumn(r,!1,i).then((function(t){r.field==i.field&&(i.field=!1),i.delete().then((function(){o(t.getComponent())})).catch((function(t){n(t)}))})).catch((function(t){n(t)})))}))},b.prototype.deleteCell=function(t){var i=this.cells.indexOf(t);i>-1&&this.cells.splice(i,1)},b.prototype.defaultOptionList=["title","field","columns","visible","align","hozAlign","vertAlign","width","minWidth","maxWidth","widthGrow","widthShrink","resizable","frozen","responsive","tooltip","cssClass","rowHandle","hideInHtml","print","htmlOutput","sorter","sorterParams","formatter","formatterParams","variableHeight","editable","editor","editorParams","validator","mutator","mutatorParams","mutatorData","mutatorDataParams","mutatorEdit","mutatorEditParams","mutatorClipboard","mutatorClipboardParams","accessor","accessorParams","accessorData","accessorDataParams","accessorDownload","accessorDownloadParams","accessorClipboard","accessorClipboardParams","accessorPrint","accessorPrintParams","accessorHtmlOutput","accessorHtmlOutputParams","clipboard","download","downloadTitle","topCalc","topCalcParams","topCalcFormatter","topCalcFormatterParams","bottomCalc","bottomCalcParams","bottomCalcFormatter","bottomCalcFormatterParams","cellClick","cellDblClick","cellContext","cellTap","cellDblTap","cellTapHold","cellMouseEnter","cellMouseLeave","cellMouseOver","cellMouseOut","cellMouseMove","cellEditing","cellEdited","cellEditCancelled","headerSort","headerSortStartingDir","headerSortTristate","headerClick","headerDblClick","headerContext","headerTap","headerDblTap","headerTapHold","headerTooltip","headerVertical","headerHozAlign","editableTitle","titleFormatter","titleFormatterParams","headerFilter","headerFilterPlaceholder","headerFilterParams","headerFilterEmptyCheck","headerFilterFunc","headerFilterFuncParams","headerFilterLiveFilter","print","headerContextMenu","headerMenu","contextMenu","clickMenu","formatterPrint","formatterPrintParams","formatterClipboard","formatterClipboardParams","formatterHtmlOutput","formatterHtmlOutputParams","titlePrint","titleClipboard","titleHtmlOutput","titleDownload"],b.prototype.getComponent=function(){return this.component||(this.component=new d(this)),this.component};var p=function(t){this.table=t,this.element=this.createHolderElement(),this.tableElement=this.createTableElement(),this.heightFixer=this.createTableElement(),this.columnManager=null,this.height=0,this.firstRender=!1,this.renderMode="virtual",this.fixedHeight=!1,this.rows=[],this.activeRows=[],this.activeRowsCount=0,this.displayRows=[],this.displayRowsCount=0,this.scrollTop=0,this.scrollLeft=0,this.vDomRowHeight=20,this.vDomTop=0,this.vDomBottom=0,this.vDomScrollPosTop=0,this.vDomScrollPosBottom=0,this.vDomTopPad=0,this.vDomBottomPad=0,this.vDomMaxRenderChain=90,this.vDomWindowBuffer=0,this.vDomWindowMinTotalRows=20,this.vDomWindowMinMarginRows=5,this.vDomTopNewRows=[],this.vDomBottomNewRows=[],this.rowNumColumn=!1,this.redrawBlock=!1,this.redrawBlockRestoreConfig=!1,this.redrawBlockRederInPosition=!1};p.prototype.createHolderElement=function(){var t=document.createElement("div");return t.classList.add("tabulator-tableHolder"),t.setAttribute("tabindex",0),t},p.prototype.createTableElement=function(){var t=document.createElement("div");return t.classList.add("tabulator-table"),t},p.prototype.getElement=function(){return this.element},p.prototype.getTableElement=function(){return this.tableElement},p.prototype.getRowPosition=function(t,i){return i?this.activeRows.indexOf(t):this.rows.indexOf(t)},p.prototype.setColumnManager=function(t){this.columnManager=t},p.prototype.initialize=function(){var t=this;t.setRenderMode(),t.element.appendChild(t.tableElement),t.firstRender=!0,t.element.addEventListener("scroll",(function(){var i=t.element.scrollLeft;t.scrollLeft!=i&&(t.columnManager.scrollHorizontal(i),t.table.options.groupBy&&t.table.modules.groupRows.scrollHeaders(i),t.table.modExists("columnCalcs")&&t.table.modules.columnCalcs.scrollHorizontal(i),t.table.options.scrollHorizontal(i)),t.scrollLeft=i})),"virtual"===this.renderMode&&t.element.addEventListener("scroll",(function(){var i=t.element.scrollTop,o=t.scrollTop>i;t.scrollTop!=i?(t.scrollTop=i,t.scrollVertical(o),"scroll"==t.table.options.ajaxProgressiveLoad&&t.table.modules.ajax.nextPage(t.element.scrollHeight-t.element.clientHeight-i),t.table.options.scrollVertical(i)):t.scrollTop=i}))},p.prototype.findRow=function(t){var i=this;return"object"!=(void 0===t?"undefined":l(t))?null!=t&&(i.rows.find((function(o){return o.data[i.table.options.index]==t}))||!1):t instanceof g?t:t instanceof m?t._getSelf()||!1:"undefined"!=typeof HTMLElement&&t instanceof HTMLElement&&i.rows.find((function(i){return i.getElement()===t}))||!1},p.prototype.getRowFromDataObject=function(t){return this.rows.find((function(i){return i.data===t}))||!1},p.prototype.getRowFromPosition=function(t,i){return i?this.activeRows[t]:this.rows[t]},p.prototype.scrollToRow=function(t,i,o){var n,r=this,e=this.getDisplayRows().indexOf(t),s=t.getElement(),a=0;return new Promise((function(t,h){if(e>-1){if(void 0===i&&(i=r.table.options.scrollToRowPosition),void 0===o&&(o=r.table.options.scrollToRowIfVisible),"nearest"===i)switch(r.renderMode){case"classic":n=k.prototype.helpers.elOffset(s).top,i=Math.abs(r.element.scrollTop-n)>Math.abs(r.element.scrollTop+r.element.clientHeight-n)?"bottom":"top";break;case"virtual":i=Math.abs(r.vDomTop-e)>Math.abs(r.vDomBottom-e)?"bottom":"top"}if(!o&&k.prototype.helpers.elVisible(s)&&(a=k.prototype.helpers.elOffset(s).top-k.prototype.helpers.elOffset(r.element).top)>0&&a<r.element.clientHeight-s.offsetHeight)return!1;switch(r.renderMode){case"classic":r.element.scrollTop=k.prototype.helpers.elOffset(s).top-k.prototype.helpers.elOffset(r.element).top+r.element.scrollTop;break;case"virtual":r._virtualRenderFill(e,!0)}switch(i){case"middle":case"center":r.element.scrollTop=r.element.scrollHeight-r.element.scrollTop==r.element.clientHeight?r.element.scrollTop+(s.offsetTop-r.element.scrollTop)-(r.element.scrollHeight-s.offsetTop)/2:r.element.scrollTop-r.element.clientHeight/2;break;case"bottom":r.element.scrollTop=r.element.scrollHeight-r.element.scrollTop==r.element.clientHeight?r.element.scrollTop-(r.element.scrollHeight-s.offsetTop)+s.offsetHeight:r.element.scrollTop-r.element.clientHeight+s.offsetHeight}t()}else console.warn("Scroll Error - Row not visible"),h("Scroll Error - Row not visible")}))},p.prototype.setData=function(t,i,o){var n=this,r=this;return new Promise((function(e){i&&n.getDisplayRows().length?r.table.options.pagination?r._setDataActual(t,!0):n.reRenderInPosition((function(){r._setDataActual(t)})):(n.table.options.autoColumns&&o&&n.table.columnManager.generateColumnsFromRowData(t),n.resetScroll(),n._setDataActual(t)),e()}))},p.prototype._setDataActual=function(t,i){var o=this;o.table.options.dataLoading.call(this.table,t),this._wipeElements(),this.table.options.history&&this.table.modExists("history")&&this.table.modules.history.clear(),Array.isArray(t)?(this.table.modExists("selectRow")&&this.table.modules.selectRow.clearSelectionData(),this.table.options.reactiveData&&this.table.modExists("reactiveData",!0)&&this.table.modules.reactiveData.watchData(t),t.forEach((function(t){if(t&&"object"===(void 0===t?"undefined":l(t))){var i=new g(t,o);o.rows.push(i)}else console.warn("Data Loading Warning - Invalid row data detected and ignored, expecting object but received:",t)})),o.refreshActiveData(!1,!1,i),o.table.options.dataLoaded.call(this.table,t)):console.error("Data Loading Error - Unable to process data due to invalid data type \nExpecting: array \nReceived: ",void 0===t?"undefined":l(t),"\nData: ",t)},p.prototype._wipeElements=function(){this.rows.forEach((function(t){t.wipe()})),this.table.options.groupBy&&this.table.modExists("groupRows")&&this.table.modules.groupRows.wipe(),this.rows=[],this.activeRows=[],this.activeRowsCount=0,this.displayRows=[],this.displayRowsCount=0,this.adjustTableSize()},p.prototype.deleteRow=function(t,i){var o=this.rows.indexOf(t),n=this.activeRows.indexOf(t);n>-1&&this.activeRows.splice(n,1),o>-1&&this.rows.splice(o,1),this.setActiveRows(this.activeRows),this.displayRowIterator((function(i){var o=i.indexOf(t);o>-1&&i.splice(o,1)})),i||this.reRenderInPosition(),this.regenerateRowNumbers(),this.table.options.rowDeleted.call(this.table,t.getComponent()),this.table.options.dataChanged&&this.table.options.dataChanged.call(this.table,this.getData()),this.table.options.groupBy&&this.table.modExists("groupRows")?this.table.modules.groupRows.updateGroupRows(!0):this.table.options.pagination&&this.table.modExists("page")?this.refreshActiveData(!1,!1,!0):this.table.options.pagination&&this.table.modExists("page")&&this.refreshActiveData("page")},p.prototype.addRow=function(t,i,o,n){var r=this.addRowActual(t,i,o,n);return this.table.options.history&&this.table.modExists("history")&&this.table.modules.history.action("rowAdd",r,{data:t,pos:i,index:o}),r},p.prototype.addRows=function(t,i,o){var n=this,r=this,e=[];return new Promise((function(s){i=n.findAddRowPos(i),Array.isArray(t)||(t=[t]),(void 0===o&&i||void 0!==o&&!i)&&t.reverse(),t.forEach((function(t){var n=r.addRow(t,i,o,!0);e.push(n)})),n.table.options.groupBy&&n.table.modExists("groupRows")?n.table.modules.groupRows.updateGroupRows(!0):n.table.options.pagination&&n.table.modExists("page")?n.refreshActiveData(!1,!1,!0):n.reRenderInPosition(),n.table.modExists("columnCalcs")&&n.table.modules.columnCalcs.recalc(n.table.rowManager.activeRows),n.regenerateRowNumbers(),s(e)}))},p.prototype.findAddRowPos=function(t){return void 0===t&&(t=this.table.options.addRowPos),"pos"===t&&(t=!0),"bottom"===t&&(t=!1),t},p.prototype.addRowActual=function(t,i,o,n){var r,e,s=t instanceof g?t:new g(t||{},this),a=this.findAddRowPos(i),h=-1;if(!o&&this.table.options.pagination&&"page"==this.table.options.paginationAddRow&&(e=this.getDisplayRows(),a?e.length?o=e[0]:this.activeRows.length&&(o=this.activeRows[this.activeRows.length-1],a=!1):e.length&&(o=e[e.length-1],a=!(e.length<this.table.modules.page.getPageSize()))),void 0!==o&&(o=this.findRow(o)),this.table.options.groupBy&&this.table.modExists("groupRows")){this.table.modules.groupRows.assignRowToGroup(s);var u=s.getGroup().rows;u.length>1&&(!o||o&&-1==u.indexOf(o)?a?u[0]!==s&&(o=u[0],this._moveRowInArray(s.getGroup().rows,s,o,!a)):u[u.length-1]!==s&&(o=u[u.length-1],this._moveRowInArray(s.getGroup().rows,s,o,!a)):this._moveRowInArray(s.getGroup().rows,s,o,!a))}return o&&(h=this.rows.indexOf(o)),o&&h>-1?(r=this.activeRows.indexOf(o),this.displayRowIterator((function(t){var i=t.indexOf(o);i>-1&&t.splice(a?i:i+1,0,s)})),r>-1&&this.activeRows.splice(a?r:r+1,0,s),this.rows.splice(a?h:h+1,0,s)):a?(this.displayRowIterator((function(t){t.unshift(s)})),this.activeRows.unshift(s),this.rows.unshift(s)):(this.displayRowIterator((function(t){t.push(s)})),this.activeRows.push(s),this.rows.push(s)),this.setActiveRows(this.activeRows),this.table.options.rowAdded.call(this.table,s.getComponent()),this.table.options.dataChanged&&this.table.options.dataChanged.call(this.table,this.getData()),n||this.reRenderInPosition(),s},p.prototype.moveRow=function(t,i,o){this.table.options.history&&this.table.modExists("history")&&this.table.modules.history.action("rowMove",t,{posFrom:this.getRowPosition(t),posTo:this.getRowPosition(i),to:i,after:o}),this.moveRowActual(t,i,o),this.regenerateRowNumbers(),this.table.options.rowMoved.call(this.table,t.getComponent())},p.prototype.moveRowActual=function(t,i,o){var n=this;if(this._moveRowInArray(this.rows,t,i,o),this._moveRowInArray(this.activeRows,t,i,o),this.displayRowIterator((function(r){n._moveRowInArray(r,t,i,o)})),this.table.options.groupBy&&this.table.modExists("groupRows")){!o&&i instanceof U&&(i=this.table.rowManager.prevDisplayRow(t)||i);var r=i.getGroup(),e=t.getGroup();r===e?this._moveRowInArray(r.rows,t,i,o):(e&&e.removeRow(t),r.insertRow(t,i,o))}},p.prototype._moveRowInArray=function(t,i,o,n){var r,e,s;if(i!==o&&((r=t.indexOf(i))>-1&&(t.splice(r,1),e=t.indexOf(o),t.splice(e>-1?n?e+1:e:r,0,i)),t===this.getDisplayRows())){s=e>r?e:r+1;for(var a=r<e?r:e;a<=s;a++)t[a]&&this.styleRow(t[a],a)}},p.prototype.clearData=function(){this.setData([])},p.prototype.getRowIndex=function(t){return this.findRowIndex(t,this.rows)},p.prototype.getDisplayRowIndex=function(t){var i=this.getDisplayRows().indexOf(t);return i>-1&&i},p.prototype.nextDisplayRow=function(t,i){var o=this.getDisplayRowIndex(t),n=!1;return!1!==o&&o<this.displayRowsCount-1&&(n=this.getDisplayRows()[o+1]),!n||n instanceof g&&"row"==n.type?n:this.nextDisplayRow(n,i)},p.prototype.prevDisplayRow=function(t,i){var o=this.getDisplayRowIndex(t),n=!1;return o&&(n=this.getDisplayRows()[o-1]),!i||!n||n instanceof g&&"row"==n.type?n:this.prevDisplayRow(n,i)},p.prototype.findRowIndex=function(t,i){var o;return!!((t=this.findRow(t))&&(o=i.indexOf(t))>-1)&&o},p.prototype.getData=function(t,i){var o=[];return this.getRows(t).forEach((function(t){"row"==t.type&&o.push(t.getData(i||"data"))})),o},p.prototype.getComponents=function(t){var i=[];return this.getRows(t).forEach((function(t){i.push(t.getComponent())})),i},p.prototype.getDataCount=function(t){return this.getRows(t).length},p.prototype._genRemoteRequest=function(){var t=this,i=this.table,o=i.options,n={};if(i.modExists("page")){if(o.ajaxSorting){var r=this.table.modules.sort.getSort();r.forEach((function(t){delete t.column})),n[this.table.modules.page.paginationDataSentNames.sorters]=r}if(o.ajaxFiltering){var e=this.table.modules.filter.getFilters(!0,!0);n[this.table.modules.page.paginationDataSentNames.filters]=e}this.table.modules.ajax.setParams(n,!0)}i.modules.ajax.sendRequest().then((function(i){t._setDataActual(i,!0)})).catch((function(){}))},p.prototype.filterRefresh=function(){var t=this.table,i=t.options,o=this.scrollLeft;i.ajaxFiltering?"remote"==i.pagination&&t.modExists("page")?(t.modules.page.reset(!0),t.modules.page.setPage(1).then((function(){})).catch((function(){}))):i.ajaxProgressiveLoad?t.modules.ajax.loadData().then((function(){})).catch((function(){})):this._genRemoteRequest():this.refreshActiveData("filter"),this.scrollHorizontal(o)},p.prototype.sorterRefresh=function(t){var i=this.table,o=this.table.options,n=this.scrollLeft;o.ajaxSorting?("remote"==o.pagination||o.progressiveLoad)&&i.modExists("page")?(i.modules.page.reset(!0),i.modules.page.setPage(1).then((function(){})).catch((function(){}))):o.ajaxProgressiveLoad?i.modules.ajax.loadData().then((function(){})).catch((function(){})):this._genRemoteRequest():this.refreshActiveData(t?"filter":"sort"),this.scrollHorizontal(n)},p.prototype.scrollHorizontal=function(t){this.scrollLeft=t,this.element.scrollLeft=t,this.table.options.groupBy&&this.table.modules.groupRows.scrollHeaders(t),this.table.modExists("columnCalcs")&&this.table.modules.columnCalcs.scrollHorizontal(t)},p.prototype.refreshActiveData=function(t,i,o){var n,r=this,e=this.table,s=["all","filter","sort","display","freeze","group","tree","page"];if(this.redrawBlock)(!this.redrawBlockRestoreConfig||s.indexOf(t)<s.indexOf(this.redrawBlockRestoreConfig.stage))&&(this.redrawBlockRestoreConfig={stage:t,skipStage:i,renderInPosition:o});else{switch(r.table.modExists("edit")&&r.table.modules.edit.cancelEdit(),t||(t="all"),e.options.selectable&&!e.options.selectablePersistence&&e.modExists("selectRow")&&e.modules.selectRow.deselectRows(),t){case"all":case"filter":i?i=!1:e.modExists("filter")?r.setActiveRows(e.modules.filter.filter(r.rows)):r.setActiveRows(r.rows.slice(0));case"sort":i?i=!1:e.modExists("sort")&&e.modules.sort.sort(this.activeRows),this.regenerateRowNumbers();case"display":this.resetDisplayRows();case"freeze":i?i=!1:this.table.modExists("frozenRows")&&e.modules.frozenRows.isFrozen()&&(e.modules.frozenRows.getDisplayIndex()||e.modules.frozenRows.setDisplayIndex(this.getNextDisplayIndex()),n=e.modules.frozenRows.getDisplayIndex(),!0!==(n=r.setDisplayRows(e.modules.frozenRows.getRows(this.getDisplayRows(n-1)),n))&&e.modules.frozenRows.setDisplayIndex(n));case"group":i?i=!1:e.options.groupBy&&e.modExists("groupRows")&&(e.modules.groupRows.getDisplayIndex()||e.modules.groupRows.setDisplayIndex(this.getNextDisplayIndex()),n=e.modules.groupRows.getDisplayIndex(),!0!==(n=r.setDisplayRows(e.modules.groupRows.getRows(this.getDisplayRows(n-1)),n))&&e.modules.groupRows.setDisplayIndex(n));case"tree":i?i=!1:e.options.dataTree&&e.modExists("dataTree")&&(e.modules.dataTree.getDisplayIndex()||e.modules.dataTree.setDisplayIndex(this.getNextDisplayIndex()),n=e.modules.dataTree.getDisplayIndex(),!0!==(n=r.setDisplayRows(e.modules.dataTree.getRows(this.getDisplayRows(n-1)),n))&&e.modules.dataTree.setDisplayIndex(n)),e.options.pagination&&e.modExists("page")&&!o&&"local"==e.modules.page.getMode()&&e.modules.page.reset();case"page":i?i=!1:e.options.pagination&&e.modExists("page")&&(e.modules.page.getDisplayIndex()||e.modules.page.setDisplayIndex(this.getNextDisplayIndex()),n=e.modules.page.getDisplayIndex(),"local"==e.modules.page.getMode()&&e.modules.page.setMaxRows(this.getDisplayRows(n-1).length),!0!==(n=r.setDisplayRows(e.modules.page.getRows(this.getDisplayRows(n-1)),n))&&e.modules.page.setDisplayIndex(n))}k.prototype.helpers.elVisible(r.element)&&(o?r.reRenderInPosition():("all"===t&&this.table.options.virtualDomHoz&&this.table.vdomHoz.dataChange(),r.renderTable(),e.options.layoutColumnsOnNewData&&r.table.columnManager.redraw(!0))),e.modExists("columnCalcs")&&e.modules.columnCalcs.recalc(this.activeRows)}},p.prototype.regenerateRowNumbers=function(){var t=this;this.rowNumColumn&&this.activeRows.forEach((function(i){var o=i.getCell(t.rowNumColumn);o&&o._generateContents()}))},p.prototype.setActiveRows=function(t){this.activeRows=t,this.activeRowsCount=this.activeRows.length},p.prototype.resetDisplayRows=function(){this.displayRows=[],this.displayRows.push(this.activeRows.slice(0)),this.displayRowsCount=this.displayRows[0].length,this.table.modExists("frozenRows")&&this.table.modules.frozenRows.setDisplayIndex(0),this.table.options.groupBy&&this.table.modExists("groupRows")&&this.table.modules.groupRows.setDisplayIndex(0),this.table.options.pagination&&this.table.modExists("page")&&this.table.modules.page.setDisplayIndex(0)},p.prototype.getNextDisplayIndex=function(){return this.displayRows.length},p.prototype.setDisplayRows=function(t,i){var o=!0;return i&&void 0!==this.displayRows[i]?(this.displayRows[i]=t,o=!0):(this.displayRows.push(t),o=i=this.displayRows.length-1),i==this.displayRows.length-1&&(this.displayRowsCount=this.displayRows[this.displayRows.length-1].length),o},p.prototype.getDisplayRows=function(t){return void 0===t?this.displayRows.length?this.displayRows[this.displayRows.length-1]:[]:this.displayRows[t]||[]},p.prototype.getVisibleRows=function(t){var i=this.element.scrollTop,o=this.element.clientHeight+i,n=!1,r=0,e=0,s=this.getDisplayRows();if(t){this.getDisplayRows();for(var a=this.vDomTop;a<=this.vDomBottom;a++)if(s[a])if(n){if(!(o-s[a].getElement().offsetTop>=0))break;e=a}else if(i-s[a].getElement().offsetTop>=0)r=a;else{if(n=!0,!(o-s[a].getElement().offsetTop>=0))break;e=a}}else r=this.vDomTop,e=this.vDomBottom;return s.slice(r,e+1)},p.prototype.displayRowIterator=function(t){this.displayRows.forEach(t),this.displayRowsCount=this.displayRows[this.displayRows.length-1].length},p.prototype.getRows=function(t){var i;switch(t){case"active":i=this.activeRows;break;case"display":i=this.table.rowManager.getDisplayRows();break;case"visible":i=this.getVisibleRows(!0);break;case"selected":i=this.table.modules.selectRow.selectedRows;break;default:i=this.rows}return i},p.prototype.reRenderInPosition=function(t){if("virtual"==this.getRenderMode())if(this.redrawBlock)t?t():this.redrawBlockRederInPosition=!0;else{for(var i=this.element.scrollTop,o=!1,n=!1,r=this.scrollLeft,e=this.getDisplayRows(),s=this.vDomTop;s<=this.vDomBottom;s++)if(e[s]){var a=i-e[s].getElement().offsetTop;if(!(!1===n||Math.abs(a)<n))break;n=a,o=s}t&&t(),this._virtualRenderFill(!1===o?this.displayRowsCount-1:o,!0,n||0),this.scrollHorizontal(r)}else this.renderTable(),t&&t()},p.prototype.setRenderMode=function(){this.table.options.virtualDom?(this.renderMode="virtual",this.fixedHeight=!(!this.table.element.clientHeight&&!this.table.options.height)):this.renderMode="classic"},p.prototype.getRenderMode=function(){return this.renderMode},p.prototype.renderTable=function(){switch(this.table.options.renderStarted.call(this.table),this.element.scrollTop=0,this.renderMode){case"classic":this._simpleRender();break;case"virtual":this._virtualRenderFill()}this.firstRender&&(this.displayRowsCount?(this.firstRender=!1,this.table.modules.layout.layout()):this.renderEmptyScroll()),this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layout(),this.displayRowsCount||this.table.options.placeholder&&(this.table.options.placeholder.setAttribute("tabulator-render-mode",this.renderMode),this.getElement().appendChild(this.table.options.placeholder),this.table.options.placeholder.style.width=this.table.columnManager.getWidth()+"px"),this.table.options.renderComplete.call(this.table)},p.prototype._simpleRender=function(){this._clearVirtualDom(),this.displayRowsCount?this.checkClassicModeGroupHeaderWidth():this.renderEmptyScroll()},p.prototype.checkClassicModeGroupHeaderWidth=function(){var t=this,i=this.tableElement,o=!0;t.getDisplayRows().forEach((function(n,r){t.styleRow(n,r),i.appendChild(n.getElement()),n.initialize(!0),"group"!==n.type&&(o=!1)})),i.style.minWidth=o?t.table.columnManager.getWidth()+"px":""},p.prototype.renderEmptyScroll=function(){this.table.options.placeholder?this.tableElement.style.display="none":this.tableElement.style.minWidth=this.table.columnManager.getWidth()+"px"},p.prototype._clearVirtualDom=function(){var t=this.tableElement;for(this.table.options.placeholder&&this.table.options.placeholder.parentNode&&this.table.options.placeholder.parentNode.removeChild(this.table.options.placeholder);t.firstChild;)t.removeChild(t.firstChild);t.style.paddingTop="",t.style.paddingBottom="",t.style.minWidth="",t.style.minHeight="",t.style.display="",t.style.visibility="",this.scrollTop=0,this.scrollLeft=0,this.vDomTop=0,this.vDomBottom=0,this.vDomTopPad=0,this.vDomBottomPad=0},p.prototype.styleRow=function(t,i){var o=t.getElement();i%2?(o.classList.add("tabulator-row-even"),o.classList.remove("tabulator-row-odd")):(o.classList.add("tabulator-row-odd"),o.classList.remove("tabulator-row-even"))},p.prototype._virtualRenderFill=function(t,i,o){var n=this,r=n.tableElement,e=n.element,s=0,a=0,h=0,u=0,c=!0,l=n.getDisplayRows();if(o=o||0,t=t||0){for(;r.firstChild;)r.removeChild(r.firstChild);var f=(n.displayRowsCount-t+1)*n.vDomRowHeight;f<n.height&&(t-=Math.ceil((n.height-f)/n.vDomRowHeight))<0&&(t=0),t-=s=Math.min(Math.max(Math.floor(n.vDomWindowBuffer/n.vDomRowHeight),n.vDomWindowMinMarginRows),t)}else n._clearVirtualDom();if(n.displayRowsCount&&k.prototype.helpers.elVisible(n.element)){for(n.vDomTop=t,n.vDomBottom=t-1;(a<=n.height+n.vDomWindowBuffer||u<n.vDomWindowMinTotalRows)&&n.vDomBottom<n.displayRowsCount-1;){var d,b=n.vDomBottom+1,p=l[b];n.styleRow(p,b),r.appendChild(p.getElement()),p.initialize(),p.heightInitialized||p.normalizeHeight(!0),d=p.getHeight(),u<s?h+=d:a+=d,d>this.vDomWindowBuffer&&(this.vDomWindowBuffer=2*d),"group"!==p.type&&(c=!1),n.vDomBottom++,u++}t?(n.vDomTopPad=i?n.vDomRowHeight*this.vDomTop+o:n.scrollTop-h,n.vDomBottomPad=n.vDomBottom==n.displayRowsCount-1?0:Math.max(n.vDomScrollHeight-n.vDomTopPad-a-h,0)):(this.vDomTopPad=0,n.vDomRowHeight=Math.floor((a+h)/u),n.vDomBottomPad=n.vDomRowHeight*(n.displayRowsCount-n.vDomBottom-1),n.vDomScrollHeight=h+a+n.vDomBottomPad-n.height),r.style.paddingTop=n.vDomTopPad+"px",r.style.paddingBottom=n.vDomBottomPad+"px",i&&(this.scrollTop=n.vDomTopPad+h+o-(this.element.scrollWidth>this.element.clientWidth?this.element.offsetHeight-this.element.clientHeight:0)),this.scrollTop=Math.min(this.scrollTop,this.element.scrollHeight-this.height),this.element.scrollWidth>this.element.offsetWidth&&i&&(this.scrollTop+=this.element.offsetHeight-this.element.clientHeight),this.vDomScrollPosTop=this.scrollTop,this.vDomScrollPosBottom=this.scrollTop,e.scrollTop=this.scrollTop,r.style.minWidth=c?n.table.columnManager.getWidth()+"px":"",n.table.options.groupBy&&"fitDataFill"!=n.table.modules.layout.getMode()&&n.displayRowsCount==n.table.modules.groupRows.countGroups()&&(n.tableElement.style.minWidth=n.table.columnManager.getWidth())}else this.renderEmptyScroll();this.fixedHeight||this.adjustTableSize()},p.prototype.scrollVertical=function(t){var i=this.scrollTop-this.vDomScrollPosTop,o=this.scrollTop-this.vDomScrollPosBottom,n=2*this.vDomWindowBuffer;if(-i>n||o>n){var r=this.scrollLeft;this._virtualRenderFill(Math.floor(this.element.scrollTop/this.element.scrollHeight*this.displayRowsCount)),this.scrollHorizontal(r)}else t?(i<0&&this._addTopRow(-i),o<0&&(this.vDomScrollHeight-this.scrollTop>this.vDomWindowBuffer?this._removeBottomRow(-o):this.vDomScrollPosBottom=this.scrollTop)):(i>=0&&(this.scrollTop>this.vDomWindowBuffer?this._removeTopRow(i):this.vDomScrollPosTop=this.scrollTop),o>=0&&this._addBottomRow(o))},p.prototype._addTopRow=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=this.tableElement,n=this.getDisplayRows();if(this.vDomTop){var r=this.vDomTop-1,e=n[r],s=e.getHeight()||this.vDomRowHeight;t>=s&&(this.styleRow(e,r),o.insertBefore(e.getElement(),o.firstChild),e.initialized&&e.heightInitialized||(this.vDomTopNewRows.push(e),e.heightInitialized||e.clearCellHeight()),e.initialize(),this.vDomTopPad-=s,this.vDomTopPad<0&&(this.vDomTopPad=r*this.vDomRowHeight),r||(this.vDomTopPad=0),o.style.paddingTop=this.vDomTopPad+"px",this.vDomScrollPosTop-=s,this.vDomTop--),t=-(this.scrollTop-this.vDomScrollPosTop),e.getHeight()>this.vDomWindowBuffer&&(this.vDomWindowBuffer=2*e.getHeight()),i<this.vDomMaxRenderChain&&this.vDomTop&&t>=(n[this.vDomTop-1].getHeight()||this.vDomRowHeight)?this._addTopRow(t,i+1):this._quickNormalizeRowHeight(this.vDomTopNewRows)}},p.prototype._removeTopRow=function(t){var i=this.tableElement,o=this.getDisplayRows()[this.vDomTop],n=o.getHeight()||this.vDomRowHeight;if(t>=n){var r=o.getElement();r.parentNode.removeChild(r),this.vDomTopPad+=n,i.style.paddingTop=this.vDomTopPad+"px",this.vDomScrollPosTop+=this.vDomTop?n:n+this.vDomWindowBuffer,this.vDomTop++,this._removeTopRow(t=this.scrollTop-this.vDomScrollPosTop)}},p.prototype._addBottomRow=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=this.tableElement,n=this.getDisplayRows();if(this.vDomBottom<this.displayRowsCount-1){var r=this.vDomBottom+1,e=n[r],s=e.getHeight()||this.vDomRowHeight;t>=s&&(this.styleRow(e,r),o.appendChild(e.getElement()),e.initialized&&e.heightInitialized||(this.vDomBottomNewRows.push(e),e.heightInitialized||e.clearCellHeight()),e.initialize(),this.vDomBottomPad-=s,(this.vDomBottomPad<0||r==this.displayRowsCount-1)&&(this.vDomBottomPad=0),o.style.paddingBottom=this.vDomBottomPad+"px",this.vDomScrollPosBottom+=s,this.vDomBottom++),t=this.scrollTop-this.vDomScrollPosBottom,e.getHeight()>this.vDomWindowBuffer&&(this.vDomWindowBuffer=2*e.getHeight()),i<this.vDomMaxRenderChain&&this.vDomBottom<this.displayRowsCount-1&&t>=(n[this.vDomBottom+1].getHeight()||this.vDomRowHeight)?this._addBottomRow(t,i+1):this._quickNormalizeRowHeight(this.vDomBottomNewRows)}},p.prototype._removeBottomRow=function(t){var i=this.tableElement,o=this.getDisplayRows()[this.vDomBottom],n=o.getHeight()||this.vDomRowHeight;if(t>=n){var r=o.getElement();r.parentNode&&r.parentNode.removeChild(r),this.vDomBottomPad+=n,this.vDomBottomPad<0&&(this.vDomBottomPad=0),i.style.paddingBottom=this.vDomBottomPad+"px",this.vDomScrollPosBottom-=n,this.vDomBottom--,this._removeBottomRow(t=-(this.scrollTop-this.vDomScrollPosBottom))}},p.prototype._quickNormalizeRowHeight=function(t){t.forEach((function(t){t.calcHeight()})),t.forEach((function(t){t.setCellHeight()})),t.length=0},p.prototype.normalizeHeight=function(){this.activeRows.forEach((function(t){t.normalizeHeight()}))},p.prototype.adjustTableSize=function(){var t,i=this.element.clientHeight;if("virtual"===this.renderMode){var o=Math.floor(this.columnManager.getElement().getBoundingClientRect().height+(this.table.footerManager&&this.table.footerManager.active&&!this.table.footerManager.external?this.table.footerManager.getElement().getBoundingClientRect().height:0));this.fixedHeight?(this.element.style.minHeight="calc(100% - "+o+"px)",this.element.style.height="calc(100% - "+o+"px)",this.element.style.maxHeight="calc(100% - "+o+"px)"):(this.element.style.height="",this.element.style.height=this.table.element.clientHeight-o+"px",this.element.scrollTop=this.scrollTop),this.height=this.element.clientHeight,this.vDomWindowBuffer=this.table.options.virtualDomBuffer||this.height,this.fixedHeight||i==this.element.clientHeight||((t=this.table.modExists("resizeTable"))&&!this.table.modules.resizeTable.autoResize||!t)&&this.redraw()}},p.prototype.reinitialize=function(){this.rows.forEach((function(t){t.reinitialize(!0)}))},p.prototype.blockRedraw=function(){this.redrawBlock=!0,this.redrawBlockRestoreConfig=!1},p.prototype.restoreRedraw=function(){this.redrawBlock=!1,this.redrawBlockRestoreConfig?(this.refreshActiveData(this.redrawBlockRestoreConfig.stage,this.redrawBlockRestoreConfig.skipStage,this.redrawBlockRestoreConfig.renderInPosition),this.redrawBlockRestoreConfig=!1):this.redrawBlockRederInPosition&&this.reRenderInPosition(),this.redrawBlockRederInPosition=!1},p.prototype.redraw=function(t){var i=this.scrollLeft;this.adjustTableSize(),this.table.tableWidth=this.table.element.clientWidth,t?this.renderTable():("classic"==this.renderMode?this.table.options.groupBy?this.refreshActiveData("group",!1,!1):this._simpleRender():(this.reRenderInPosition(),this.scrollHorizontal(i)),this.displayRowsCount||this.table.options.placeholder&&this.getElement().appendChild(this.table.options.placeholder))},p.prototype.resetScroll=function(){if(this.element.scrollLeft=0,this.element.scrollTop=0,"ie"===this.table.browser){var t=document.createEvent("Event");t.initEvent("scroll",!1,!0),this.element.dispatchEvent(t)}else this.element.dispatchEvent(new Event("scroll"))};var v=function(t){this.table=t,this.element=this.table.rowManager.tableElement,this.holderEl=this.table.rowManager.element,this.leftCol=0,this.rightCol=0,this.scrollLeft=0,this.vDomScrollPosLeft=0,this.vDomScrollPosRight=0,this.vDomPadLeft=0,this.vDomPadRight=0,this.fitDataColAvg=0,this.window=200,this.initialized=!1,this.columns=[],this.compatabilityCheck()&&this.initialize()};v.prototype.compatabilityCheck=function(){var t=this.table.options,i=!0;return"fitDataTable"==t.layout&&(console.warn("Horizontal Vitrual DOM is not compatible with fitDataTable layout mode"),i=!1),t.responsiveLayout&&(console.warn("Horizontal Vitrual DOM is not compatible with responsive columns"),i=!1),this.table.rtl&&(console.warn("Horizontal Vitrual DOM is not currently compatible with RTL text direction"),i=!1),t.columns&&t.columns.find((function(t){return t.frozen}))&&(console.warn("Horizontal Vitrual DOM is not compatible with frozen columns"),i=!1),i||(t.virtualDomHoz=!1),i},v.prototype.initialize=function(){var t=this;this.holderEl.addEventListener("scroll",(function(){var i=t.holderEl.scrollLeft;t.scrollLeft!=i&&(t.scrollLeft=i,t.scroll(i-(t.vDomScrollPosLeft+t.window)))}))},v.prototype.deinitialize=function(){this.initialized=!1},v.prototype.clear=function(){this.columns=[],this.leftCol=-1,this.rightCol=0,this.vDomScrollPosLeft=0,this.vDomScrollPosRight=0,this.vDomPadLeft=0,this.vDomPadRight=0},v.prototype.dataChange=function(){var t,i,o=!1,n=0,r=0;if("fitData"===this.table.options.layout){if(this.table.columnManager.columnsByIndex.forEach((function(t){!t.definition.width&&t.visible&&(o=!0)})),o&&o&&this.table.rowManager.getDisplayRows().length&&(this.vDomScrollPosRight=this.scrollLeft+this.holderEl.clientWidth+this.window,t=this.table.options.groupBy?this.table.modules.groupRows.getGroups(!1)[0].getRows(!1)[0]:this.table.rowManager.getDisplayRows()[0])){for(i=t.getElement(),t.generateCells(),this.element.appendChild(i),r=0;r<t.cells.length;r++){var e=t.cells[r];if(i.appendChild(e.getElement()),e.column.reinitializeWidth(),(n+=e.column.getWidth())>this.vDomScrollPosRight)break}for(i.parentNode.removeChild(i),this.fitDataColAvg=Math.floor(n/(r+1));r<this.table.columnManager.columnsByIndex.length;r++)this.table.columnManager.columnsByIndex[r].setWidth(this.fitDataColAvg);this.reinitialize(!1,!0)}}else"fitColumns"===this.table.options.layout&&(this.table.modules.layout.layout(),this.table.vdomHoz.reinitialize(!1,!0))},v.prototype.fitDataLayoutOverride=function(){for(var t=this.leftCol;t<=this.rightCol;t++)this.columns[t].reinitializeWidth()},v.prototype.reinitialize=function(t,i){var o=this,n={cols:this.columns,leftCol:this.leftCol,rightCol:this.rightCol};if(!t||this.initialized){this.clear(),this.scrollLeft=this.holderEl.scrollLeft,this.vDomScrollPosLeft=this.scrollLeft-this.window,this.vDomScrollPosRight=this.scrollLeft+this.holderEl.clientWidth+this.window;var r=0;this.table.columnManager.columnsByIndex.forEach((function(t){var i={};if(t.visible){var n=t.getWidth();i.leftPos=r,i.rightPos=r+n,r+n>o.vDomScrollPosLeft&&r<o.vDomScrollPosRight?(-1==o.leftCol&&(o.leftCol=o.columns.length,o.vDomPadLeft=r),o.rightCol=o.columns.length):-1!==o.leftCol&&(o.vDomPadRight+=n),o.columns.push(t),t.modules.vdomHoz=i,r+=n}})),this.element.style.paddingLeft=this.vDomPadLeft+"px",this.element.style.paddingRight=this.vDomPadRight+"px",this.initialized=!0,i||t&&!this.reinitChanged(n)||this.renitializeRows(),this.holderEl.scrollLeft=this.scrollLeft}},v.prototype.reinitChanged=function(t){var i=this,o=!0;return t.cols.length!==this.columns.length||t.leftCol!==this.leftCol||t.rightCol!==this.rightCol||(t.cols.forEach((function(t,n){t!==i.columns[n]&&(o=!1)})),!o)},v.prototype.renitializeRows=function(){var t=this;this.table.rowManager.getVisibleRows().forEach((function(i){t.reinitializeRow(i,!0)}))},v.prototype.scroll=function(t){this.vDomScrollPosLeft+=t,this.vDomScrollPosRight+=t,t>.8*this.holderEl.clientWidth?this.reinitialize():t>0?(this.addColRight(),this.removeColLeft()):(this.addColLeft(),this.removeColRight())},v.prototype.colPositionAdjust=function(t,i,o){for(var n=t;n<i;n++){var r=this.columns[n];r.modules.vdomHoz.leftPos-=o,r.modules.vdomHoz.rightPos-=o}},v.prototype.addColRight=function(){var t,i,o=this.columns[this.rightCol+1];o&&o.modules.vdomHoz.leftPos<=this.vDomScrollPosRight&&(this.table.rowManager.getVisibleRows().forEach((function(t){if("group"!==t.type){var i=t.getCell(o);t.getElement().appendChild(i.getElement()),i.cellRendered()}})),this.fitDataColAvg&&(t=o.getWidth())===this.fitDataColAvg&&(o.reinitializeWidth(),(i=t-o.getWidth())&&(o.modules.vdomHoz.rightPos-=i,this.colPositionAdjust(this.rightCol+1,this.columns.length,i))),this.rightCol++,this.rightCol>=this.columns.length-1?this.vDomPadRight=0:this.vDomPadRight-=o.getWidth(),this.element.style.paddingRight=this.vDomPadRight+"px",this.addColRight())},v.prototype.addColLeft=function(){var t=this.columns[this.leftCol-1];t&&t.modules.vdomHoz.rightPos>=this.vDomScrollPosLeft&&(this.table.rowManager.getVisibleRows().forEach((function(i){if("group"!==i.type){var o=i.getCell(t);i.getElement().prepend(o.getElement()),o.cellRendered()}})),this.leftCol?this.vDomPadLeft-=t.getWidth():this.vDomPadLeft=0,this.element.style.paddingLeft=this.vDomPadLeft+"px",this.leftCol--,this.addColLeft())},v.prototype.removeColRight=function(t){var i;(t=this.columns[this.rightCol])&&t.modules.vdomHoz.leftPos>this.vDomScrollPosRight&&(i=this.table.rowManager.getVisibleRows(),t.modules.vdomHoz.visible=!1,i.forEach((function(i){if("group"!==i.type){var o=i.getCell(t);i.getElement().removeChild(o.getElement())}})),this.vDomPadRight+=t.getWidth(),this.element.style.paddingRight=this.vDomPadRight+"px",this.rightCol--,this.removeColRight())},v.prototype.removeColLeft=function(){var t=this.columns[this.leftCol];t&&t.modules.vdomHoz.rightPos<this.vDomScrollPosLeft&&(this.table.rowManager.getVisibleRows().forEach((function(i){if("group"!==i.type){var o=i.getCell(t);i.getElement().removeChild(o.getElement())}})),this.vDomPadLeft+=t.getWidth(),this.element.style.paddingLeft=this.vDomPadLeft+"px",this.leftCol++,this.removeColLeft())},v.prototype.initializeRow=function(t){if("group"!==t.type){t.modules.vdomHoz={leftCol:this.leftCol,rightCol:this.rightCol};for(var i=this.leftCol;i<=this.rightCol;i++){var o=this.columns[i];if(o&&o.visible){var n=t.getCell(o);t.getElement().appendChild(n.getElement()),n.cellRendered()}}}},v.prototype.reinitializeRow=function(t,i){if("group"!==t.type&&(i||!t.modules.vdomHoz||t.modules.vdomHoz.leftCol!==this.leftCol||t.modules.vdomHoz.rightCol!==this.rightCol)){for(var o=t.getElement();o.firstChild;)o.removeChild(o.firstChild);this.initializeRow(t)}};var m=function(t){this._row=t};m.prototype.getData=function(t){return this._row.getData(t)},m.prototype.getElement=function(){return this._row.getElement()},m.prototype.getCells=function(){var t=[];return this._row.getCells().forEach((function(i){t.push(i.getComponent())})),t},m.prototype.getCell=function(t){var i=this._row.getCell(t);return!!i&&i.getComponent()},m.prototype.getIndex=function(){return this._row.getData("data")[this._row.table.options.index]},m.prototype.getPosition=function(t){return this._row.table.rowManager.getRowPosition(this._row,t)},m.prototype.delete=function(){return this._row.delete()},m.prototype.scrollTo=function(){return this._row.table.rowManager.scrollToRow(this._row)},m.prototype.pageTo=function(){if(this._row.table.modExists("page",!0))return this._row.table.modules.page.setPageToRow(this._row)},m.prototype.move=function(t,i){this._row.moveToRow(t,i)},m.prototype.update=function(t){return this._row.updateData(t)},m.prototype.normalizeHeight=function(){this._row.normalizeHeight(!0)},m.prototype.select=function(){this._row.table.modules.selectRow.selectRows(this._row)},m.prototype.deselect=function(){this._row.table.modules.selectRow.deselectRows(this._row)},m.prototype.toggleSelect=function(){this._row.table.modules.selectRow.toggleRow(this._row)},m.prototype.isSelected=function(){return this._row.table.modules.selectRow.isRowSelected(this._row)},m.prototype._getSelf=function(){return this._row},m.prototype.validate=function(){return this._row.validate()},m.prototype.freeze=function(){this._row.table.modExists("frozenRows",!0)&&this._row.table.modules.frozenRows.freezeRow(this._row)},m.prototype.unfreeze=function(){this._row.table.modExists("frozenRows",!0)&&this._row.table.modules.frozenRows.unfreezeRow(this._row)},m.prototype.isFrozen=function(){return!!this._row.table.modExists("frozenRows",!0)&&this._row.table.modules.frozenRows.rows.indexOf(this._row)>-1},m.prototype.treeCollapse=function(){this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.collapseRow(this._row)},m.prototype.treeExpand=function(){this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.expandRow(this._row)},m.prototype.treeToggle=function(){this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.toggleRow(this._row)},m.prototype.getTreeParent=function(){return!!this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.getTreeParent(this._row)},m.prototype.getTreeChildren=function(){return!!this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.getTreeChildren(this._row,!0)},m.prototype.addTreeChild=function(t,i,o){return!!this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.addTreeChildRow(this._row,t,i,o)},m.prototype.reformat=function(){return this._row.reinitialize()},m.prototype.getGroup=function(){return this._row.getGroup().getComponent()},m.prototype.getTable=function(){return this._row.table},m.prototype.getNextRow=function(){var t=this._row.nextRow();return t?t.getComponent():t},m.prototype.getPrevRow=function(){var t=this._row.prevRow();return t?t.getComponent():t};var g=function(t,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"row";this.table=i.table,this.parent=i,this.data={},this.type=o,this.element=!1,this.modules={},this.cells=[],this.height=0,this.heightStyled="",this.manualHeight=!1,this.outerHeight=0,this.initialized=!1,this.heightInitialized=!1,this.component=null,this.created=!1,this.setData(t)};g.prototype.create=function(){this.created||(this.created=!0,this.generateElement())},g.prototype.createElement=function(){var t=document.createElement("div");t.classList.add("tabulator-row"),t.setAttribute("role","row"),this.element=t},g.prototype.getElement=function(){return this.create(),this.element},g.prototype.detachElement=function(){this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)},g.prototype.generateElement=function(){var t,i,o,n=this;this.createElement(),!1!==n.table.options.selectable&&n.table.modExists("selectRow")&&n.table.modules.selectRow.initializeRow(this),!1!==n.table.options.movableRows&&n.table.modExists("moveRow")&&n.table.modules.moveRow.initializeRow(this),!1!==n.table.options.dataTree&&n.table.modExists("dataTree")&&n.table.modules.dataTree.initializeRow(this),"collapse"===n.table.options.responsiveLayout&&n.table.modExists("responsiveLayout")&&n.table.modules.responsiveLayout.initializeRow(this),(n.table.options.rowContextMenu||n.table.options.rowClickMenu)&&this.table.modExists("menu")&&n.table.modules.menu.initializeRow(this),n.table.options.rowClick&&n.element.addEventListener("click",(function(t){n.table.options.rowClick(t,n.getComponent())})),n.table.options.rowDblClick&&n.element.addEventListener("dblclick",(function(t){n.table.options.rowDblClick(t,n.getComponent())})),n.table.options.rowContext&&n.element.addEventListener("contextmenu",(function(t){n.table.options.rowContext(t,n.getComponent())})),n.table.options.rowMouseEnter&&n.element.addEventListener("mouseenter",(function(t){n.table.options.rowMouseEnter(t,n.getComponent())})),n.table.options.rowMouseLeave&&n.element.addEventListener("mouseleave",(function(t){n.table.options.rowMouseLeave(t,n.getComponent())})),n.table.options.rowMouseOver&&n.element.addEventListener("mouseover",(function(t){n.table.options.rowMouseOver(t,n.getComponent())})),n.table.options.rowMouseOut&&n.element.addEventListener("mouseout",(function(t){n.table.options.rowMouseOut(t,n.getComponent())})),n.table.options.rowMouseMove&&n.element.addEventListener("mousemove",(function(t){n.table.options.rowMouseMove(t,n.getComponent())})),n.table.options.rowTap&&(o=!1,n.element.addEventListener("touchstart",(function(){o=!0}),{passive:!0}),n.element.addEventListener("touchend",(function(t){o&&n.table.options.rowTap(t,n.getComponent()),o=!1}))),n.table.options.rowDblTap&&(t=null,n.element.addEventListener("touchend",(function(i){t?(clearTimeout(t),t=null,n.table.options.rowDblTap(i,n.getComponent())):t=setTimeout((function(){clearTimeout(t),t=null}),300)}))),n.table.options.rowTapHold&&(i=null,n.element.addEventListener("touchstart",(function(t){clearTimeout(i),i=setTimeout((function(){clearTimeout(i),i=null,o=!1,n.table.options.rowTapHold(t,n.getComponent())}),1e3)}),{passive:!0}),n.element.addEventListener("touchend",(function(){clearTimeout(i),i=null})))},g.prototype.generateCells=function(){this.cells=this.table.columnManager.generateCells(this)},g.prototype.initialize=function(t){var i=this;if(this.create(),!this.initialized||t){for(this.deleteCells();this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layoutRow(this),this.generateCells(),this.table.options.virtualDomHoz&&this.table.vdomHoz.initialized?this.table.vdomHoz.initializeRow(this):this.cells.forEach((function(t){i.element.appendChild(t.getElement()),t.cellRendered()})),t&&this.normalizeHeight(),this.table.options.dataTree&&this.table.modExists("dataTree")&&this.table.modules.dataTree.layoutRow(this),"collapse"===this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout")&&this.table.modules.responsiveLayout.layoutRow(this),this.table.options.rowFormatter&&this.table.options.rowFormatter(this.getComponent()),this.table.options.resizableRows&&this.table.modExists("resizeRows")&&this.table.modules.resizeRows.initializeRow(this),this.initialized=!0}else this.table.options.virtualDomHoz&&this.table.vdomHoz.reinitializeRow(this)},g.prototype.reinitializeHeight=function(){this.heightInitialized=!1,this.element&&null!==this.element.offsetParent&&this.normalizeHeight(!0)},g.prototype.reinitialize=function(){this.initialized=!1,this.heightInitialized=!1,this.manualHeight||(this.height=0,this.heightStyled=""),this.element&&null!==this.element.offsetParent&&this.initialize(!0),this.table.options.dataTree&&this.table.modExists("dataTree",!0)&&this.table.modules.dataTree.getTreeChildren(this,!1,!0).forEach((function(t){t.reinitialize(!0)}))},g.prototype.calcHeight=function(t){var i=0,o=this.table.options.resizableRows?this.element.clientHeight:0;this.cells.forEach((function(t){var o=t.getHeight();o>i&&(i=o)})),this.height=t?Math.max(i,o):this.manualHeight?this.height:Math.max(i,o),this.heightStyled=this.height?this.height+"px":"",this.outerHeight=this.element.offsetHeight},g.prototype.setCellHeight=function(){this.cells.forEach((function(t){t.setHeight()})),this.heightInitialized=!0},g.prototype.clearCellHeight=function(){this.cells.forEach((function(t){t.clearHeight()}))},g.prototype.normalizeHeight=function(t){t&&this.clearCellHeight(),this.calcHeight(t),this.setCellHeight()},g.prototype.setHeight=function(t,i){(this.height!=t||i)&&(this.manualHeight=!0,this.height=t,this.heightStyled=t?t+"px":"",this.setCellHeight(),this.outerHeight=this.element.offsetHeight)},g.prototype.getHeight=function(){return this.outerHeight},g.prototype.getWidth=function(){return this.element.offsetWidth},g.prototype.deleteCell=function(t){var i=this.cells.indexOf(t);i>-1&&this.cells.splice(i,1)},g.prototype.setData=function(t){this.table.modExists("mutator")&&(t=this.table.modules.mutator.transformRow(t,"data")),this.data=t,this.table.options.reactiveData&&this.table.modExists("reactiveData",!0)&&this.table.modules.reactiveData.watchRow(this)},g.prototype.updateData=function(t){var i,o=this,n=this.element&&k.prototype.helpers.elVisible(this.element),r={};return new Promise((function(e){for(var s in"string"==typeof t&&(t=JSON.parse(t)),o.table.options.reactiveData&&o.table.modExists("reactiveData",!0)&&o.table.modules.reactiveData.block(),o.table.modExists("mutator")?(r=Object.assign(r,o.data),r=Object.assign(r,t),i=o.table.modules.mutator.transformRow(r,"data",t)):i=t,i)o.data[s]=i[s];for(var s in o.table.options.reactiveData&&o.table.modExists("reactiveData",!0)&&o.table.modules.reactiveData.unblock(),t)o.table.columnManager.getColumnsByFieldRoot(s).forEach((function(t){var r=o.getCell(t.getField());if(r){var e=t.getFieldValue(i);r.getValue()!=e&&(r.setValueProcessData(e),n&&r.cellRendered())}}));o.table.options.groupUpdateOnCellEdit&&o.table.options.groupBy&&o.table.modExists("groupRows")&&o.table.modules.groupRows.reassignRowToGroup(o.row),n?(o.normalizeHeight(!0),o.table.options.rowFormatter&&o.table.options.rowFormatter(o.getComponent())):(o.initialized=!1,o.height=0,o.heightStyled=""),!1!==o.table.options.dataTree&&o.table.modExists("dataTree")&&o.table.modules.dataTree.redrawNeeded(t)&&(o.table.modules.dataTree.initializeRow(o),n&&(o.table.modules.dataTree.layoutRow(o),o.table.rowManager.refreshActiveData("tree",!1,!0))),o.table.options.rowUpdated.call(o.table,o.getComponent()),o.table.options.dataChanged&&o.table.options.dataChanged.call(o.table,o.table.rowManager.getData()),e()}))},g.prototype.getData=function(t){return t&&this.table.modExists("accessor")?this.table.modules.accessor.transformRow(this,t):this.data},g.prototype.getCell=function(t){return t=this.table.columnManager.findColumn(t),this.cells.find((function(i){return i.column===t}))},g.prototype.getCellIndex=function(t){return this.cells.findIndex((function(i){return i===t}))},g.prototype.findNextEditableCell=function(t){var i=!1;if(t<this.cells.length-1)for(var o=t+1;o<this.cells.length;o++){var n=this.cells[o];if(n.column.modules.edit&&k.prototype.helpers.elVisible(n.getElement())){var r=!0;if("function"==typeof n.column.modules.edit.check&&(r=n.column.modules.edit.check(n.getComponent())),r){i=n;break}}}return i},g.prototype.findPrevEditableCell=function(t){var i=!1;if(t>0)for(var o=t-1;o>=0;o--){var n=this.cells[o],r=!0;if(n.column.modules.edit&&k.prototype.helpers.elVisible(n.getElement())&&("function"==typeof n.column.modules.edit.check&&(r=n.column.modules.edit.check(n.getComponent())),r)){i=n;break}}return i},g.prototype.getCells=function(){return this.cells},g.prototype.nextRow=function(){return this.table.rowManager.nextDisplayRow(this,!0)||!1},g.prototype.prevRow=function(){return this.table.rowManager.prevDisplayRow(this,!0)||!1},g.prototype.moveToRow=function(t,i){var o=this.table.rowManager.findRow(t);o?(this.table.rowManager.moveRowActual(this,o,!i),this.table.rowManager.refreshActiveData("display",!1,!0)):console.warn("Move Error - No matching row found:",t)},g.prototype.validate=function(){var t=[];return this.cells.forEach((function(i){i.validate()||t.push(i.getComponent())})),!t.length||t},g.prototype.delete=function(){var t=this;return new Promise((function(i){var o,n;t.table.options.history&&t.table.modExists("history")&&(t.table.options.groupBy&&t.table.modExists("groupRows")?(o=(n=t.getGroup().rows).indexOf(t))&&(o=n[o-1]):(o=t.table.rowManager.getRowIndex(t))&&(o=t.table.rowManager.rows[o-1]),t.table.modules.history.action("rowDelete",t,{data:t.getData(),pos:!o,index:o})),t.deleteActual(),i()}))},g.prototype.deleteActual=function(t){this.table.rowManager.getRowIndex(this),this.detatchModules(),this.table.options.reactiveData&&this.table.modExists("reactiveData",!0),this.modules.group&&this.modules.group.removeRow(this),this.table.rowManager.deleteRow(this,t),this.deleteCells(),this.initialized=!1,this.heightInitialized=!1,this.element=!1,this.table.options.dataTree&&this.table.modExists("dataTree",!0)&&this.table.modules.dataTree.rowDelete(this),this.table.modExists("columnCalcs")&&(this.table.options.groupBy&&this.table.modExists("groupRows")?this.table.modules.columnCalcs.recalcRowGroup(this):this.table.modules.columnCalcs.recalc(this.table.rowManager.activeRows))},g.prototype.detatchModules=function(){this.table.modExists("selectRow")&&this.table.modules.selectRow._deselectRow(this,!0),this.table.modExists("edit")&&this.table.modules.edit.currentCell.row===this&&this.table.modules.edit.cancelEdit(),this.table.modExists("frozenRows")&&this.table.modules.frozenRows.detachRow(this)},g.prototype.deleteCells=function(){for(var t=this.cells.length,i=0;i<t;i++)this.cells[0].delete()},g.prototype.wipe=function(){if(this.detatchModules(),this.deleteCells(),this.element){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.element.parentNode&&this.element.parentNode.removeChild(this.element)}this.element=!1,this.modules={}},g.prototype.getGroup=function(){return this.modules.group||!1},g.prototype.getComponent=function(){return this.component||(this.component=new m(this)),this.component};var w=function(t){this._cell=t};w.prototype.getValue=function(){return this._cell.getValue()},w.prototype.getOldValue=function(){return this._cell.getOldValue()},w.prototype.getInitialValue=function(){return this._cell.initialValue},w.prototype.getElement=function(){return this._cell.getElement()},w.prototype.getRow=function(){return this._cell.row.getComponent()},w.prototype.getData=function(){return this._cell.row.getData()},w.prototype.getField=function(){return this._cell.column.getField()},w.prototype.getColumn=function(){return this._cell.column.getComponent()},w.prototype.setValue=function(t,i){void 0===i&&(i=!0),this._cell.setValue(t,i)},w.prototype.restoreOldValue=function(){this._cell.setValueActual(this._cell.getOldValue())},w.prototype.restoreInitialValue=function(){this._cell.setValueActual(this._cell.initialValue)},w.prototype.edit=function(t){return this._cell.edit(t)},w.prototype.cancelEdit=function(){this._cell.cancelEdit()},w.prototype.isEdited=function(){return!!this._cell.modules.edit&&this._cell.modules.edit.edited},w.prototype.clearEdited=function(){self.table.modExists("edit",!0)&&this._cell.table.modules.edit.clearEdited(this._cell)},w.prototype.isValid=function(){return!this._cell.modules.validate||!this._cell.modules.validate.invalid},w.prototype.validate=function(){return this._cell.validate()},w.prototype.clearValidation=function(){this._cell.table.modExists("validate",!0)&&this._cell.table.modules.validate.clearValidation(this._cell)},w.prototype.nav=function(){return this._cell.nav()},w.prototype.checkHeight=function(){this._cell.checkHeight()},w.prototype.getTable=function(){return this._cell.table},w.prototype._getSelf=function(){return this._cell};var x=function(t,i){this.table=t.table,this.column=t,this.row=i,this.element=null,this.value=null,this.oldValue=null,this.modules={},this.height=null,this.width=null,this.minWidth=null,this.component=null,this.loaded=!1,this.build()};x.prototype.build=function(){this.generateElement(),this.setWidth(),this._configureCell(),this.setValueActual(this.column.getFieldValue(this.row.data)),this.initialValue=this.value},x.prototype.generateElement=function(){this.element=document.createElement("div"),this.element.className="tabulator-cell",this.element.setAttribute("role","gridcell"),this.element=this.element},x.prototype._configureCell=function(){var t=this,i=t.column.cellEvents,o=t.element,n=this.column.getField();o.style.textAlign=t.column.hozAlign,t.column.vertAlign&&(o.style.display="inline-flex",o.style.alignItems={top:"flex-start",bottom:"flex-end",middle:"center"}[t.column.vertAlign]||"",t.column.hozAlign&&(o.style.justifyContent={left:"flex-start",right:"flex-end",center:"center"}[t.column.hozAlign]||"")),n&&o.setAttribute("tabulator-field",n),t.column.definition.cssClass&&t.column.definition.cssClass.split(" ").forEach((function(t){o.classList.add(t)})),"hover"===this.table.options.tooltipGenerationMode&&o.addEventListener("mouseenter",(function(){t._generateTooltip()})),t._bindClickEvents(i),t._bindTouchEvents(i),t._bindMouseEvents(i),t.column.modules.edit&&t.table.modules.edit.bindEditor(t),t.column.definition.rowHandle&&!1!==t.table.options.movableRows&&t.table.modExists("moveRow")&&t.table.modules.moveRow.initializeCell(t),t.column.visible||t.hide()},x.prototype._bindClickEvents=function(t){var i=this,o=i.element;(t.cellClick||i.table.options.cellClick)&&o.addEventListener("click",(function(o){var n=i.getComponent();t.cellClick&&t.cellClick.call(i.table,o,n),i.table.options.cellClick&&i.table.options.cellClick.call(i.table,o,n)})),o.addEventListener("dblclick",t.cellDblClick||this.table.options.cellDblClick?function(o){var n=i.getComponent();t.cellDblClick&&t.cellDblClick.call(i.table,o,n),i.table.options.cellDblClick&&i.table.options.cellDblClick.call(i.table,o,n)}:function(t){if(!i.table.modExists("edit")||i.table.modules.edit.currentCell!==i){t.preventDefault();try{if(document.selection)(o=document.body.createTextRange()).moveToElementText(i.element),o.select();else if(window.getSelection){var o;(o=document.createRange()).selectNode(i.element),window.getSelection().removeAllRanges(),window.getSelection().addRange(o)}}catch(t){}}}),(t.cellContext||this.table.options.cellContext)&&o.addEventListener("contextmenu",(function(o){var n=i.getComponent();t.cellContext&&t.cellContext.call(i.table,o,n),i.table.options.cellContext&&i.table.options.cellContext.call(i.table,o,n)}))},x.prototype._bindMouseEvents=function(t){var i=this,o=i.element;(t.cellMouseEnter||i.table.options.cellMouseEnter)&&o.addEventListener("mouseenter",(function(o){var n=i.getComponent();t.cellMouseEnter&&t.cellMouseEnter.call(i.table,o,n),i.table.options.cellMouseEnter&&i.table.options.cellMouseEnter.call(i.table,o,n)})),(t.cellMouseLeave||i.table.options.cellMouseLeave)&&o.addEventListener("mouseleave",(function(o){var n=i.getComponent();t.cellMouseLeave&&t.cellMouseLeave.call(i.table,o,n),i.table.options.cellMouseLeave&&i.table.options.cellMouseLeave.call(i.table,o,n)})),(t.cellMouseOver||i.table.options.cellMouseOver)&&o.addEventListener("mouseover",(function(o){var n=i.getComponent();t.cellMouseOver&&t.cellMouseOver.call(i.table,o,n),i.table.options.cellMouseOver&&i.table.options.cellMouseOver.call(i.table,o,n)})),(t.cellMouseOut||i.table.options.cellMouseOut)&&o.addEventListener("mouseout",(function(o){var n=i.getComponent();t.cellMouseOut&&t.cellMouseOut.call(i.table,o,n),i.table.options.cellMouseOut&&i.table.options.cellMouseOut.call(i.table,o,n)})),(t.cellMouseMove||i.table.options.cellMouseMove)&&o.addEventListener("mousemove",(function(o){var n=i.getComponent();t.cellMouseMove&&t.cellMouseMove.call(i.table,o,n),i.table.options.cellMouseMove&&i.table.options.cellMouseMove.call(i.table,o,n)}))},x.prototype._bindTouchEvents=function(t){var i,o,n,r=this,e=r.element;(t.cellTap||this.table.options.cellTap)&&(n=!1,e.addEventListener("touchstart",(function(){n=!0}),{passive:!0}),e.addEventListener("touchend",(function(i){if(n){var o=r.getComponent();t.cellTap&&t.cellTap.call(r.table,i,o),r.table.options.cellTap&&r.table.options.cellTap.call(r.table,i,o)}n=!1}))),(t.cellDblTap||this.table.options.cellDblTap)&&(i=null,e.addEventListener("touchend",(function(o){if(i){clearTimeout(i),i=null;var n=r.getComponent();t.cellDblTap&&t.cellDblTap.call(r.table,o,n),r.table.options.cellDblTap&&r.table.options.cellDblTap.call(r.table,o,n)}else i=setTimeout((function(){clearTimeout(i),i=null}),300)}))),(t.cellTapHold||this.table.options.cellTapHold)&&(o=null,e.addEventListener("touchstart",(function(i){clearTimeout(o),o=setTimeout((function(){clearTimeout(o),o=null,n=!1;var e=r.getComponent();t.cellTapHold&&t.cellTapHold.call(r.table,i,e),r.table.options.cellTapHold&&r.table.options.cellTapHold.call(r.table,i,e)}),1e3)}),{passive:!0}),e.addEventListener("touchend",(function(){clearTimeout(o),o=null})))},x.prototype._generateContents=function(){var t;switch(void 0===(t=this.table.modExists("format")?this.table.modules.format.formatValue(this):this.element.innerHTML=this.value)?"undefined":l(t)){case"object":if(t instanceof Node){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.element.appendChild(t)}else this.element.innerHTML="",null!=t&&console.warn("Format Error - Formatter has returned a type of object, the only valid formatter object return is an instance of Node, the formatter returned:",t);break;case"undefined":case"null":this.element.innerHTML="";break;default:this.element.innerHTML=t}},x.prototype.cellRendered=function(){this.table.modExists("format")&&this.table.modules.format.cellRendered&&this.table.modules.format.cellRendered(this)},x.prototype._generateTooltip=function(){var t=this.column.tooltip;t?(!0===t?t=this.value:"function"==typeof t&&!1===(t=t(this.getComponent()))&&(t=""),void 0===t&&(t=""),this.element.setAttribute("title",t)):this.element.setAttribute("title","")},x.prototype.getElement=function(t){return this.loaded||(this.loaded=!0,t||this.layoutElement()),this.element},x.prototype.getValue=function(){return this.value},x.prototype.getOldValue=function(){return this.oldValue},x.prototype.setValue=function(t,i){var o;this.setValueProcessData(t,i)&&(this.table.options.history&&this.table.modExists("history")&&this.table.modules.history.action("cellEdit",this,{oldValue:this.oldValue,newValue:this.value}),o=this.getComponent(),this.column.cellEvents.cellEdited&&this.column.cellEvents.cellEdited.call(this.table,o),this.table.options.groupUpdateOnCellEdit&&this.table.options.groupBy&&this.table.modExists("groupRows")&&this.table.modules.groupRows.reassignRowToGroup(this.row),this.cellRendered(),this.table.options.cellEdited.call(this.table,o),this.table.options.dataChanged&&this.table.options.dataChanged.call(this.table,this.table.rowManager.getData()))},x.prototype.setValueProcessData=function(t,i){var o=!1;return this.value!=t&&(o=!0,i&&this.column.modules.mutate&&(t=this.table.modules.mutator.transformCell(this,t))),this.setValueActual(t),o&&this.table.modExists("columnCalcs")&&(this.column.definition.topCalc||this.column.definition.bottomCalc)&&(this.table.options.groupBy&&this.table.modExists("groupRows")?("table"!=this.table.options.columnCalcs&&"both"!=this.table.options.columnCalcs||this.table.modules.columnCalcs.recalc(this.table.rowManager.activeRows),"table"!=this.table.options.columnCalcs&&this.table.modules.columnCalcs.recalcRowGroup(this.row)):this.table.modules.columnCalcs.recalc(this.table.rowManager.activeRows)),o},x.prototype.setValueActual=function(t){this.oldValue=this.value,this.value=t,this.table.options.reactiveData&&this.table.modExists("reactiveData")&&this.table.modules.reactiveData.block(),this.column.setFieldValue(this.row.data,t),this.table.options.reactiveData&&this.table.modExists("reactiveData")&&this.table.modules.reactiveData.unblock(),this.loaded&&this.layoutElement()},x.prototype.layoutElement=function(){this._generateContents(),this._generateTooltip(),this.table.options.resizableColumns&&this.table.modExists("resizeColumns")&&"row"===this.row.type&&this.table.modules.resizeColumns.initializeColumn("cell",this.column,this.element),(this.column.definition.contextMenu||this.column.definition.clickMenu)&&this.table.modExists("menu")&&this.table.modules.menu.initializeCell(this),this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layoutElement(this.element,this.column)},x.prototype.setWidth=function(){this.width=this.column.width,this.element.style.width=this.column.widthStyled},x.prototype.clearWidth=function(){this.width="",this.element.style.width=""},x.prototype.getWidth=function(){return this.width||this.element.offsetWidth},x.prototype.setMinWidth=function(){this.minWidth=this.column.minWidth,this.element.style.minWidth=this.column.minWidthStyled},x.prototype.setMaxWidth=function(){this.maxWidth=this.column.maxWidth,this.element.style.maxWidth=this.column.maxWidthStyled},x.prototype.checkHeight=function(){this.row.reinitializeHeight()},x.prototype.clearHeight=function(){this.element.style.height="",this.height=null},x.prototype.setHeight=function(){this.height=this.row.height,this.element.style.height=this.row.heightStyled},x.prototype.getHeight=function(){return this.height||this.element.offsetHeight},x.prototype.show=function(){this.element.style.display=this.column.vertAlign?"inline-flex":""},x.prototype.hide=function(){this.element.style.display="none"},x.prototype.edit=function(t){if(this.table.modExists("edit",!0))return this.table.modules.edit.editCell(this,t)},x.prototype.cancelEdit=function(){if(this.table.modExists("edit",!0)){var t=this.table.modules.edit.getCurrentCell();t&&t._getSelf()===this?this.table.modules.edit.cancelEdit():console.warn("Cancel Editor Error - This cell is not currently being edited ")}},x.prototype.validate=function(){return!this.column.modules.validate||!this.table.modExists("validate",!0)||!0===this.table.modules.validate.validate(this.column.modules.validate,this,this.getValue())},x.prototype.delete=function(){!this.table.rowManager.redrawBlock&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.modules.validate&&this.modules.validate.invalid&&this.table.modules.validate.clearValidation(this),this.modules.edit&&this.modules.edit.edited&&this.table.modules.edit.clearEdited(this),this.table.options.history&&this.table.modules.history.clearComponentHistory(this),this.element=!1,this.column.deleteCell(this),this.row.deleteCell(this),this.calcs={}},x.prototype.nav=function(){var t=this,i=!1,o=this.row.getCellIndex(this);return{next:function(){var i,o=this.right();return!!o||!(!(i=t.table.rowManager.nextDisplayRow(t.row,!0))||!(o=i.findNextEditableCell(-1)))&&(o.edit(),!0)},prev:function(){var i,o=this.left();return!!o||!(!(i=t.table.rowManager.prevDisplayRow(t.row,!0))||!(o=i.findPrevEditableCell(i.cells.length)))&&(o.edit(),!0)},left:function(){return!!(i=t.row.findPrevEditableCell(o))&&(i.edit(),!0)},right:function(){return!!(i=t.row.findNextEditableCell(o))&&(i.edit(),!0)},up:function(){var i=t.table.rowManager.prevDisplayRow(t.row,!0);i&&i.cells[o].edit()},down:function(){var i=t.table.rowManager.nextDisplayRow(t.row,!0);i&&i.cells[o].edit()}}},x.prototype.getIndex=function(){this.row.getCellIndex(this)},x.prototype.getComponent=function(){return this.component||(this.component=new w(this)),this.component};var y=function(t){this.table=t,this.active=!1,this.element=this.createElement(),this.external=!1,this.links=[],this._initialize()};y.prototype.createElement=function(){var t=document.createElement("div");return t.classList.add("tabulator-footer"),t},y.prototype._initialize=function(){if(this.table.options.footerElement)switch(l(this.table.options.footerElement)){case"string":"<"===this.table.options.footerElement[0]?this.element.innerHTML=this.table.options.footerElement:(this.external=!0,this.element=document.querySelector(this.table.options.footerElement));break;default:this.element=this.table.options.footerElement}},y.prototype.getElement=function(){return this.element},y.prototype.append=function(t,i){this.activate(i),this.element.appendChild(t),this.table.rowManager.adjustTableSize()},y.prototype.prepend=function(t,i){this.activate(i),this.element.insertBefore(t,this.element.firstChild),this.table.rowManager.adjustTableSize()},y.prototype.remove=function(t){t.parentNode.removeChild(t),this.deactivate()},y.prototype.deactivate=function(t){this.element.firstChild&&!t||(this.external||this.element.parentNode.removeChild(this.element),this.active=!1)},y.prototype.activate=function(t){this.active||(this.active=!0,this.external||(this.table.element.appendChild(this.getElement()),this.table.element.style.display="")),t&&this.links.push(t)},y.prototype.redraw=function(){this.links.forEach((function(t){t.footerRedraw()}))};var k=function t(i,o){this.options={},this.columnManager=null,this.rowManager=null,this.footerManager=null,this.vdomHoz=null,this.browser="",this.browserSlow=!1,this.browserMobile=!1,this.rtl=!1,this.modules={},this.initializeElement(i)&&(this.initializeOptions(o||{}),this._create()),t.prototype.comms.register(this)};k.prototype.defaultOptions={height:!1,minHeight:!1,maxHeight:!1,layout:"fitData",layoutColumnsOnNewData:!1,columnMinWidth:40,columnMaxWidth:!1,columnHeaderVertAlign:"top",columnVertAlign:!1,resizableColumns:!0,resizableRows:!1,autoResize:!0,columns:[],cellHozAlign:"",cellVertAlign:"",headerHozAlign:"",data:[],autoColumns:!1,autoColumnsDefinitions:!1,reactiveData:!1,nestedFieldSeparator:".",tooltips:!1,tooltipsHeader:!1,tooltipGenerationMode:"load",initialSort:!1,initialFilter:!1,initialHeaderFilter:!1,columnHeaderSortMulti:!0,sortOrderReverse:!1,headerSort:!0,headerSortTristate:!1,headerSortElement:"<div class='tabulator-arrow'></div>",footerElement:!1,index:"id",textDirection:"auto",keybindings:[],tabEndNewRow:!1,invalidOptionWarnings:!0,clipboard:!1,clipboardCopyStyled:!0,clipboardCopyConfig:!1,clipboardCopyFormatter:!1,clipboardCopyRowRange:"active",clipboardPasteParser:"table",clipboardPasteAction:"insert",clipboardCopied:function(){},clipboardPasted:function(){},clipboardPasteError:function(){},downloadDataFormatter:!1,downloadReady:function(t,i){return i},downloadComplete:!1,downloadConfig:{},downloadRowRange:"active",dataTree:!1,dataTreeFilter:!0,dataTreeSort:!0,dataTreeElementColumn:!1,dataTreeBranchElement:!0,dataTreeChildIndent:9,dataTreeChildField:"_children",dataTreeCollapseElement:!1,dataTreeExpandElement:!1,dataTreeStartExpanded:!1,dataTreeRowExpanded:function(){},dataTreeRowCollapsed:function(){},dataTreeChildColumnCalcs:!1,dataTreeSelectPropagate:!1,printAsHtml:!1,printFormatter:!1,printHeader:!1,printFooter:!1,printCopyStyle:!0,printStyled:!0,printVisibleRows:!0,printRowRange:"visible",printConfig:{},addRowPos:"bottom",selectable:"highlight",selectableRangeMode:"drag",selectableRollingSelection:!0,selectablePersistence:!0,selectableCheck:function(){return!0},headerFilterLiveFilterDelay:300,headerFilterPlaceholder:!1,headerVisible:!0,history:!1,locale:!1,langs:{},virtualDom:!0,virtualDomBuffer:0,virtualDomHoz:!1,persistentLayout:!1,persistentSort:!1,persistentFilter:!1,persistenceID:"",persistenceMode:!0,persistenceReaderFunc:!1,persistenceWriterFunc:!1,persistence:!1,responsiveLayout:!1,responsiveLayoutCollapseStartOpen:!0,responsiveLayoutCollapseUseFormatters:!0,responsiveLayoutCollapseFormatter:!1,pagination:!1,paginationSize:!1,paginationInitialPage:1,paginationButtonCount:5,paginationSizeSelector:!1,paginationElement:!1,paginationDataSent:{},paginationDataReceived:{},paginationAddRow:"page",ajaxURL:!1,ajaxURLGenerator:!1,ajaxParams:{},ajaxConfig:"get",ajaxContentType:"form",ajaxRequestFunc:!1,ajaxLoader:!0,ajaxLoaderLoading:!1,ajaxLoaderError:!1,ajaxFiltering:!1,ajaxSorting:!1,ajaxProgressiveLoad:!1,ajaxProgressiveLoadDelay:0,ajaxProgressiveLoadScrollMargin:0,groupBy:!1,groupStartOpen:!0,groupValues:!1,groupUpdateOnCellEdit:!1,groupHeader:!1,groupHeaderPrint:null,groupHeaderClipboard:null,groupHeaderHtmlOutput:null,groupHeaderDownload:null,htmlOutputConfig:!1,movableColumns:!1,movableRows:!1,movableRowsConnectedTables:!1,movableRowsConnectedElements:!1,movableRowsSender:!1,movableRowsReceiver:"insert",movableRowsSendingStart:function(){},movableRowsSent:function(){},movableRowsSentFailed:function(){},movableRowsSendingStop:function(){},movableRowsReceivingStart:function(){},movableRowsReceived:function(){},movableRowsReceivedFailed:function(){},movableRowsReceivingStop:function(){},movableRowsElementDrop:function(){},scrollToRowPosition:"top",scrollToRowIfVisible:!0,scrollToColumnPosition:"left",scrollToColumnIfVisible:!0,rowFormatter:!1,rowFormatterPrint:null,rowFormatterClipboard:null,rowFormatterHtmlOutput:null,placeholder:!1,tableBuilding:function(){},tableBuilt:function(){},renderStarted:function(){},renderComplete:function(){},rowClick:!1,rowDblClick:!1,rowContext:!1,rowTap:!1,rowDblTap:!1,rowTapHold:!1,rowMouseEnter:!1,rowMouseLeave:!1,rowMouseOver:!1,rowMouseOut:!1,rowMouseMove:!1,rowContextMenu:!1,rowClickMenu:!1,rowAdded:function(){},rowDeleted:function(){},rowMoved:function(){},rowUpdated:function(){},rowSelectionChanged:function(){},rowSelected:function(){},rowDeselected:function(){},rowResized:function(){},cellClick:!1,cellDblClick:!1,cellContext:!1,cellTap:!1,cellDblTap:!1,cellTapHold:!1,cellMouseEnter:!1,cellMouseLeave:!1,cellMouseOver:!1,cellMouseOut:!1,cellMouseMove:!1,cellEditing:function(){},cellEdited:function(){},cellEditCancelled:function(){},columnMoved:!1,columnResized:function(){},columnTitleChanged:function(){},columnVisibilityChanged:function(){},htmlImporting:function(){},htmlImported:function(){},dataLoading:function(){},dataLoaded:function(){},dataEdited:!1,dataChanged:!1,ajaxRequesting:function(){},ajaxResponse:!1,ajaxError:function(){},dataFiltering:!1,dataFiltered:!1,dataSorting:function(){},dataSorted:function(){},groupToggleElement:"arrow",groupClosedShowCalcs:!1,dataGrouping:function(){},dataGrouped:!1,groupVisibilityChanged:function(){},groupClick:!1,groupDblClick:!1,groupContext:!1,groupContextMenu:!1,groupClickMenu:!1,groupTap:!1,groupDblTap:!1,groupTapHold:!1,columnCalcs:!0,pageLoaded:function(){},localized:function(){},validationMode:"blocking",validationFailed:function(){},historyUndo:function(){},historyRedo:function(){},scrollHorizontal:function(){},scrollVertical:function(){}},k.prototype.initializeOptions=function(t){if(!1!==t.invalidOptionWarnings)for(var i in t)void 0===this.defaultOptions[i]&&console.warn("Invalid table constructor option:",i);for(var i in this.defaultOptions)this.options[i]=i in t?t[i]:Array.isArray(this.defaultOptions[i])?Object.assign([],this.defaultOptions[i]):"object"===l(this.defaultOptions[i])&&null!==this.defaultOptions[i]?Object.assign({},this.defaultOptions[i]):this.defaultOptions[i]},k.prototype.initializeElement=function(t){return"undefined"!=typeof HTMLElement&&t instanceof HTMLElement?(this.element=t,!0):"string"==typeof t?(this.element=document.querySelector(t),!!this.element||(console.error("Tabulator Creation Error - no element found matching selector: ",t),!1)):(console.error("Tabulator Creation Error - Invalid element provided:",t),!1)},k.prototype.rtlCheck=function(){var t=window.getComputedStyle(this.element);switch(this.options.textDirection){case"auto":if("rtl"!==t.direction)break;case"rtl":this.element.classList.add("tabulator-rtl"),this.rtl=!0;break;case"ltr":this.element.classList.add("tabulator-ltr");default:this.rtl=!1}},k.prototype._mapDepricatedFunctionality=function(){(this.options.persistentLayout||this.options.persistentSort||this.options.persistentFilter)&&(this.options.persistence||(this.options.persistence={})),this.options.dataEdited&&(console.warn("DEPRECATION WARNING - dataEdited option has been deprecated, please use the dataChanged option instead"),this.options.dataChanged=this.options.dataEdited),this.options.downloadDataFormatter&&console.warn("DEPRECATION WARNING - downloadDataFormatter option has been deprecated"),void 0!==this.options.clipboardCopyHeader&&(this.options.columnHeaders=this.options.clipboardCopyHeader,console.warn("DEPRECATION WARNING - clipboardCopyHeader option has been deprecated, please use the columnHeaders property on the clipboardCopyConfig option")),!0!==this.options.printVisibleRows&&(console.warn("printVisibleRows option is deprecated, you should now use the printRowRange option"),this.options.persistence.printRowRange="active"),!0!==this.options.printCopyStyle&&(console.warn("printCopyStyle option is deprecated, you should now use the printStyled option"),this.options.persistence.printStyled=this.options.printCopyStyle),this.options.persistentLayout&&(console.warn("persistentLayout option is deprecated, you should now use the persistence option"),!0!==this.options.persistence&&void 0===this.options.persistence.columns&&(this.options.persistence.columns=!0)),this.options.persistentSort&&(console.warn("persistentSort option is deprecated, you should now use the persistence option"),!0!==this.options.persistence&&void 0===this.options.persistence.sort&&(this.options.persistence.sort=!0)),this.options.persistentFilter&&(console.warn("persistentFilter option is deprecated, you should now use the persistence option"),!0!==this.options.persistence&&void 0===this.options.persistence.filter&&(this.options.persistence.filter=!0)),this.options.columnVertAlign&&(console.warn("columnVertAlign option is deprecated, you should now use the columnHeaderVertAlign option"),this.options.columnHeaderVertAlign=this.options.columnVertAlign)},k.prototype._clearSelection=function(){this.element.classList.add("tabulator-block-select"),window.getSelection?window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges():document.selection&&document.selection.empty(),this.element.classList.remove("tabulator-block-select")},k.prototype._create=function(){this._clearObjectPointers(),this._mapDepricatedFunctionality(),this.bindModules(),this.rtlCheck(),"TABLE"===this.element.tagName&&this.modExists("htmlTableImport",!0)&&this.modules.htmlTableImport.parseTable(),this.columnManager=new f(this),this.rowManager=new p(this),this.footerManager=new y(this),this.columnManager.setRowManager(this.rowManager),this.rowManager.setColumnManager(this.columnManager),this.options.virtualDomHoz&&(this.vdomHoz=new v(this)),this._buildElement(),this._loadInitialData()},k.prototype._clearObjectPointers=function(){this.options.columns=this.options.columns.slice(0),this.options.reactiveData||(this.options.data=this.options.data.slice(0))},k.prototype._buildElement=function(){var t=this,i=this.element,o=this.modules,n=this.options;for(n.tableBuilding.call(this),i.classList.add("tabulator"),i.setAttribute("role","grid");i.firstChild;)i.removeChild(i.firstChild);for(var r in n.height&&(n.height=isNaN(n.height)?n.height:n.height+"px",i.style.height=n.height),!1!==n.minHeight&&(n.minHeight=isNaN(n.minHeight)?n.minHeight:n.minHeight+"px",i.style.minHeight=n.minHeight),!1!==n.maxHeight&&(n.maxHeight=isNaN(n.maxHeight)?n.maxHeight:n.maxHeight+"px",i.style.maxHeight=n.maxHeight),this.columnManager.initialize(),this.rowManager.initialize(),this._detectBrowser(),this.modExists("layout",!0)&&o.layout.initialize(n.layout),o.localize.initialize(),!1!==n.headerFilterPlaceholder&&o.localize.setHeaderFilterPlaceholder(n.headerFilterPlaceholder),n.langs)o.localize.installLang(r,n.langs[r]);if(o.localize.setLocale(n.locale),"string"==typeof n.placeholder){var e=document.createElement("div");e.classList.add("tabulator-placeholder");var s=document.createElement("span");s.innerHTML=n.placeholder,e.appendChild(s),n.placeholder=e}if(i.appendChild(this.columnManager.getElement()),i.appendChild(this.rowManager.getElement()),n.footerElement&&this.footerManager.activate(),n.persistence&&this.modExists("persistence",!0)&&o.persistence.initialize(),n.movableRows&&this.modExists("moveRow")&&o.moveRow.initialize(),n.autoColumns&&this.options.data&&this.columnManager.generateColumnsFromRowData(this.options.data),this.modExists("columnCalcs")&&o.columnCalcs.initialize(),this.columnManager.setColumns(n.columns),n.dataTree&&this.modExists("dataTree",!0)&&o.dataTree.initialize(),this.modExists("frozenRows")&&this.modules.frozenRows.initialize(),(n.persistence&&this.modExists("persistence",!0)&&o.persistence.config.sort||n.initialSort)&&this.modExists("sort",!0)){var a=[];n.persistence&&this.modExists("persistence",!0)&&o.persistence.config.sort?!1===(a=o.persistence.load("sort"))&&n.initialSort&&(a=n.initialSort):n.initialSort&&(a=n.initialSort),o.sort.setSort(a)}if((n.persistence&&this.modExists("persistence",!0)&&o.persistence.config.filter||n.initialFilter)&&this.modExists("filter",!0)){var h=[];n.persistence&&this.modExists("persistence",!0)&&o.persistence.config.filter?!1===(h=o.persistence.load("filter"))&&n.initialFilter&&(h=n.initialFilter):n.initialFilter&&(h=n.initialFilter),o.filter.setFilter(h)}n.initialHeaderFilter&&this.modExists("filter",!0)&&n.initialHeaderFilter.forEach((function(i){var n=t.columnManager.findColumn(i.field);if(!n)return console.warn("Column Filter Error - No matching column found:",i.field),!1;o.filter.setHeaderFilterValue(n,i.value)})),this.modExists("ajax")&&o.ajax.initialize(),n.pagination&&this.modExists("page",!0)&&o.page.initialize(),n.groupBy&&this.modExists("groupRows",!0)&&o.groupRows.initialize(),this.modExists("keybindings")&&o.keybindings.initialize(),this.modExists("selectRow")&&o.selectRow.clearSelectionData(!0),n.autoResize&&this.modExists("resizeTable")&&o.resizeTable.initialize(),this.modExists("clipboard")&&o.clipboard.initialize(),n.printAsHtml&&this.modExists("print")&&o.print.initialize(),n.tableBuilt.call(this)},k.prototype._loadInitialData=function(){var t=this;if(t.options.pagination&&t.modExists("page"))if(t.modules.page.reset(!0,!0),"local"==t.options.pagination){if(t.options.data.length)t.rowManager.setData(t.options.data,!1,!0);else{if((t.options.ajaxURL||t.options.ajaxURLGenerator)&&t.modExists("ajax"))return void t.modules.ajax.loadData(!1,!0).then((function(){})).catch((function(){t.options.paginationInitialPage&&t.modules.page.setPage(t.options.paginationInitialPage)}));t.rowManager.setData(t.options.data,!1,!0)}t.options.paginationInitialPage&&t.modules.page.setPage(t.options.paginationInitialPage)}else t.options.ajaxURL?t.modules.page.setPage(t.options.paginationInitialPage).then((function(){})).catch((function(){})):t.rowManager.setData([],!1,!0);else t.options.data.length?t.rowManager.setData(t.options.data):(t.options.ajaxURL||t.options.ajaxURLGenerator)&&t.modExists("ajax")?t.modules.ajax.loadData(!1,!0).then((function(){})).catch((function(){})):t.rowManager.setData(t.options.data,!1,!0)},k.prototype.destroy=function(){var t=this.element;for(k.prototype.comms.deregister(this),this.options.reactiveData&&this.modExists("reactiveData",!0)&&this.modules.reactiveData.unwatchData(),this.rowManager.rows.forEach((function(t){t.wipe()})),this.rowManager.rows=[],this.rowManager.activeRows=[],this.rowManager.displayRows=[],this.options.autoResize&&this.modExists("resizeTable")&&this.modules.resizeTable.clearBindings(),this.modExists("keybindings")&&this.modules.keybindings.clearBindings();t.firstChild;)t.removeChild(t.firstChild);t.classList.remove("tabulator")},k.prototype._detectBrowser=function(){var t=navigator.userAgent||navigator.vendor||window.opera;t.indexOf("Trident")>-1?(this.browser="ie",this.browserSlow=!0):t.indexOf("Edge")>-1?(this.browser="edge",this.browserSlow=!0):t.indexOf("Firefox")>-1?(this.browser="firefox",this.browserSlow=!1):(this.browser="other",this.browserSlow=!1),this.browserMobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4))},k.prototype.blockRedraw=function(){return this.rowManager.blockRedraw()},k.prototype.restoreRedraw=function(){return this.rowManager.restoreRedraw()},k.prototype.setDataFromLocalFile=function(t){var i=this;return new Promise((function(o,n){var r=document.createElement("input");r.type="file",r.accept=t||".json,application/json",r.addEventListener("change",(function(){var t,e=r.files[0],s=new FileReader;s.readAsText(e),s.onload=function(r){try{t=JSON.parse(s.result)}catch(r){return console.warn("File Load Error - File contents is invalid JSON",r),void n(r)}i.setData(t).then((function(t){o(t)})).catch((function(t){o(t)}))},s.onerror=function(){console.warn("File Load Error - Unable to read file"),n()}})),r.click()}))},k.prototype.setData=function(t,i,o){return this.modExists("ajax")&&this.modules.ajax.blockActiveRequest(),this._setData(t,i,o,!1,!0)},k.prototype._setData=function(t,i,o,n,r){var e=this;return"string"!=typeof t?t?e.rowManager.setData(t,n,r):e.modExists("ajax")&&(e.modules.ajax.getUrl||e.options.ajaxURLGenerator)?"remote"==e.options.pagination&&e.modExists("page",!0)?(e.modules.page.reset(!0,!0),e.modules.page.setPage(1)):e.modules.ajax.loadData(n,r):e.rowManager.setData([],n,r):0==t.indexOf("{")||0==t.indexOf("[")?e.rowManager.setData(JSON.parse(t),n,r):e.modExists("ajax",!0)?(i&&e.modules.ajax.setParams(i),o&&e.modules.ajax.setConfig(o),e.modules.ajax.setUrl(t),"remote"==e.options.pagination&&e.modExists("page",!0)?(e.modules.page.reset(!0,!0),e.modules.page.setPage(1)):e.modules.ajax.loadData(n,r)):void 0},k.prototype.clearData=function(){this.modExists("ajax")&&this.modules.ajax.blockActiveRequest(),this.rowManager.clearData()},k.prototype.getData=function(t){return!0===t&&(console.warn("passing a boolean to the getData function is deprecated, you should now pass the string 'active'"),t="active"),this.rowManager.getData(t)},k.prototype.getDataCount=function(t){return!0===t&&(console.warn("passing a boolean to the getDataCount function is deprecated, you should now pass the string 'active'"),t="active"),this.rowManager.getDataCount(t)},k.prototype.searchRows=function(t,i,o){if(this.modExists("filter",!0))return this.modules.filter.search("rows",t,i,o)},k.prototype.searchData=function(t,i,o){if(this.modExists("filter",!0))return this.modules.filter.search("data",t,i,o)},k.prototype.getHtml=function(t,i,o){if(this.modExists("export",!0))return this.modules.export.getHtml(t,i,o)},k.prototype.print=function(t,i,o){if(this.modExists("print",!0))return this.modules.print.printFullscreen(t,i,o)},k.prototype.getAjaxUrl=function(){if(this.modExists("ajax",!0))return this.modules.ajax.getUrl()},k.prototype.replaceData=function(t,i,o){return this.modExists("ajax")&&this.modules.ajax.blockActiveRequest(),this._setData(t,i,o,!0)},k.prototype.updateData=function(t){var i=this,o=this,n=0;return new Promise((function(r,e){i.modExists("ajax")&&i.modules.ajax.blockActiveRequest(),"string"==typeof t&&(t=JSON.parse(t)),t?t.forEach((function(t){var i=o.rowManager.findRow(t[o.options.index]);i&&(n++,i.updateData(t).then((function(){--n||r()})))})):(console.warn("Update Error - No data provided"),e("Update Error - No data provided"))}))},k.prototype.addData=function(t,i,o){var n=this;return new Promise((function(r,e){n.modExists("ajax")&&n.modules.ajax.blockActiveRequest(),"string"==typeof t&&(t=JSON.parse(t)),t?n.rowManager.addRows(t,i,o).then((function(t){var i=[];t.forEach((function(t){i.push(t.getComponent())})),r(i)})):(console.warn("Update Error - No data provided"),e("Update Error - No data provided"))}))},k.prototype.updateOrAddData=function(t){var i=this,o=this,n=[],r=0;return new Promise((function(e,s){i.modExists("ajax")&&i.modules.ajax.blockActiveRequest(),"string"==typeof t&&(t=JSON.parse(t)),t?t.forEach((function(t){var i=o.rowManager.findRow(t[o.options.index]);r++,i?i.updateData(t).then((function(){r--,n.push(i.getComponent()),r||e(n)})):o.rowManager.addRows(t).then((function(t){r--,n.push(t[0].getComponent()),r||e(n)}))})):(console.warn("Update Error - No data provided"),s("Update Error - No data provided"))}))},k.prototype.getRow=function(t){var i=this.rowManager.findRow(t);return i?i.getComponent():(console.warn("Find Error - No matching row found:",t),!1)},k.prototype.getRowFromPosition=function(t,i){var o=this.rowManager.getRowFromPosition(t,i);return o?o.getComponent():(console.warn("Find Error - No matching row found:",t),!1)},k.prototype.deleteRow=function(t){var i=this;return new Promise((function(o,n){var r=i,e=0,s=0,a=[];function h(){++e==t.length&&s&&(r.rowManager.reRenderInPosition(),o())}Array.isArray(t)||(t=[t]),t.forEach((function(t){var o=i.rowManager.findRow(t,!0);o?a.push(o):(console.warn("Delete Error - No matching row found:",t),n("Delete Error - No matching row found"),h())})),a.sort((function(t,o){return i.rowManager.rows.indexOf(t)>i.rowManager.rows.indexOf(o)?1:-1})),a.forEach((function(t){t.delete().then((function(){s++,h()})).catch((function(t){h(),n(t)}))}))}))},k.prototype.addRow=function(t,i,o){var n=this;return new Promise((function(r){"string"==typeof t&&(t=JSON.parse(t)),n.rowManager.addRows(t,i,o).then((function(t){n.modExists("columnCalcs")&&n.modules.columnCalcs.recalc(n.rowManager.activeRows),r(t[0].getComponent())}))}))},k.prototype.updateOrAddRow=function(t,i){var o=this;return new Promise((function(n,r){var e=o.rowManager.findRow(t);"string"==typeof i&&(i=JSON.parse(i)),e?e.updateData(i).then((function(){o.modExists("columnCalcs")&&o.modules.columnCalcs.recalc(o.rowManager.activeRows),n(e.getComponent())})).catch((function(t){r(t)})):e=o.rowManager.addRows(i).then((function(t){o.modExists("columnCalcs")&&o.modules.columnCalcs.recalc(o.rowManager.activeRows),n(t[0].getComponent())})).catch((function(t){r(t)}))}))},k.prototype.updateRow=function(t,i){var o=this;return new Promise((function(n,r){var e=o.rowManager.findRow(t);"string"==typeof i&&(i=JSON.parse(i)),e?e.updateData(i).then((function(){n(e.getComponent())})).catch((function(t){r(t)})):(console.warn("Update Error - No matching row found:",t),r("Update Error - No matching row found"))}))},k.prototype.scrollToRow=function(t,i,o){var n=this;return new Promise((function(r,e){var s=n.rowManager.findRow(t);s?n.rowManager.scrollToRow(s,i,o).then((function(){r()})).catch((function(t){e(t)})):(console.warn("Scroll Error - No matching row found:",t),e("Scroll Error - No matching row found"))}))},k.prototype.moveRow=function(t,i,o){var n=this.rowManager.findRow(t);n?n.moveToRow(i,o):console.warn("Move Error - No matching row found:",t)},k.prototype.getRows=function(t){return!0===t&&(console.warn("passing a boolean to the getRows function is deprecated, you should now pass the string 'active'"),t="active"),this.rowManager.getComponents(t)},k.prototype.getRowPosition=function(t,i){var o=this.rowManager.findRow(t);return o?this.rowManager.getRowPosition(o,i):(console.warn("Position Error - No matching row found:",t),!1)},k.prototype.copyToClipboard=function(t){this.modExists("clipboard",!0)&&this.modules.clipboard.copy(t)},k.prototype.setColumns=function(t){this.columnManager.setColumns(t)},k.prototype.getColumns=function(t){return this.columnManager.getComponents(t)},k.prototype.getColumn=function(t){var i=this.columnManager.findColumn(t);return i?i.getComponent():(console.warn("Find Error - No matching column found:",t),!1)},k.prototype.getColumnDefinitions=function(){return this.columnManager.getDefinitionTree()},k.prototype.getColumnLayout=function(){if(this.modExists("persistence",!0))return this.modules.persistence.parseColumns(this.columnManager.getColumns())},k.prototype.setColumnLayout=function(t){return!!this.modExists("persistence",!0)&&(this.columnManager.setColumns(this.modules.persistence.mergeDefinition(this.options.columns,t)),!0)},k.prototype.showColumn=function(t){var i=this.columnManager.findColumn(t);if(!i)return console.warn("Column Show Error - No matching column found:",t),!1;i.show(),this.options.responsiveLayout&&this.modExists("responsiveLayout",!0)&&this.modules.responsiveLayout.update()},k.prototype.hideColumn=function(t){var i=this.columnManager.findColumn(t);if(!i)return console.warn("Column Hide Error - No matching column found:",t),!1;i.hide(),this.options.responsiveLayout&&this.modExists("responsiveLayout",!0)&&this.modules.responsiveLayout.update()},k.prototype.toggleColumn=function(t){var i=this.columnManager.findColumn(t);if(!i)return console.warn("Column Visibility Toggle Error - No matching column found:",t),!1;i.visible?i.hide():i.show()},k.prototype.addColumn=function(t,i,o){var n=this;return new Promise((function(r,e){var s=n.columnManager.findColumn(o);n.columnManager.addColumn(t,i,s).then((function(t){r(t.getComponent())})).catch((function(t){e(t)}))}))},k.prototype.deleteColumn=function(t){var i=this;return new Promise((function(o,n){var r=i.columnManager.findColumn(t);r?r.delete().then((function(){o()})).catch((function(t){n(t)})):(console.warn("Column Delete Error - No matching column found:",t),n())}))},k.prototype.updateColumnDefinition=function(t,i){var o=this;return new Promise((function(n,r){var e=o.columnManager.findColumn(t);e?e.updateDefinition(i).then((function(t){n(t)})).catch((function(t){r(t)})):(console.warn("Column Update Error - No matching column found:",t),r())}))},k.prototype.moveColumn=function(t,i,o){var n=this.columnManager.findColumn(t),r=this.columnManager.findColumn(i);n?r?this.columnManager.moveColumn(n,r,o):console.warn("Move Error - No matching column found:",r):console.warn("Move Error - No matching column found:",t)},k.prototype.scrollToColumn=function(t,i,o){var n=this;return new Promise((function(r,e){var s=n.columnManager.findColumn(t);s?n.columnManager.scrollToColumn(s,i,o).then((function(){r()})).catch((function(t){e(t)})):(console.warn("Scroll Error - No matching column found:",t),e("Scroll Error - No matching column found"))}))},k.prototype.setLocale=function(t){this.modules.localize.setLocale(t)},k.prototype.getLocale=function(){return this.modules.localize.getLocale()},k.prototype.getLang=function(t){return this.modules.localize.getLang(t)},k.prototype.redraw=function(t){this.columnManager.redraw(t),this.rowManager.redraw(t)},k.prototype.setHeight=function(t){"classic"!==this.rowManager.renderMode?(this.options.height=isNaN(t)?t:t+"px",this.element.style.height=this.options.height,this.rowManager.setRenderMode(),this.rowManager.redraw()):console.warn("setHeight function is not available in classic render mode")},k.prototype.setSort=function(t,i){this.modExists("sort",!0)&&(this.modules.sort.setSort(t,i),this.rowManager.sorterRefresh())},k.prototype.getSorters=function(){if(this.modExists("sort",!0))return this.modules.sort.getSort()},k.prototype.clearSort=function(){this.modExists("sort",!0)&&(this.modules.sort.clear(),this.rowManager.sorterRefresh())},k.prototype.setFilter=function(t,i,o,n){this.modExists("filter",!0)&&(this.modules.filter.setFilter(t,i,o,n),this.rowManager.filterRefresh())},k.prototype.refreshFilter=function(){this.modExists("filter",!0)&&this.rowManager.filterRefresh()},k.prototype.addFilter=function(t,i,o,n){this.modExists("filter",!0)&&(this.modules.filter.addFilter(t,i,o,n),this.rowManager.filterRefresh())},k.prototype.getFilters=function(t){if(this.modExists("filter",!0))return this.modules.filter.getFilters(t)},k.prototype.setHeaderFilterFocus=function(t){if(this.modExists("filter",!0)){var i=this.columnManager.findColumn(t);if(!i)return console.warn("Column Filter Focus Error - No matching column found:",t),!1;this.modules.filter.setHeaderFilterFocus(i)}},k.prototype.getHeaderFilterValue=function(t){if(this.modExists("filter",!0)){var i=this.columnManager.findColumn(t);if(i)return this.modules.filter.getHeaderFilterValue(i);console.warn("Column Filter Error - No matching column found:",t)}},k.prototype.setHeaderFilterValue=function(t,i){if(this.modExists("filter",!0)){var o=this.columnManager.findColumn(t);if(!o)return console.warn("Column Filter Error - No matching column found:",t),!1;this.modules.filter.setHeaderFilterValue(o,i)}},k.prototype.getHeaderFilters=function(){if(this.modExists("filter",!0))return this.modules.filter.getHeaderFilters()},k.prototype.removeFilter=function(t,i,o){this.modExists("filter",!0)&&(this.modules.filter.removeFilter(t,i,o),this.rowManager.filterRefresh())},k.prototype.clearFilter=function(t){this.modExists("filter",!0)&&(this.modules.filter.clearFilter(t),this.rowManager.filterRefresh())},k.prototype.clearHeaderFilter=function(){this.modExists("filter",!0)&&(this.modules.filter.clearHeaderFilter(),this.rowManager.filterRefresh())},k.prototype.selectRow=function(t){this.modExists("selectRow",!0)&&(!0===t&&(console.warn("passing a boolean to the selectRowselectRow function is deprecated, you should now pass the string 'active'"),t="active"),this.modules.selectRow.selectRows(t))},k.prototype.deselectRow=function(t){this.modExists("selectRow",!0)&&this.modules.selectRow.deselectRows(t)},k.prototype.toggleSelectRow=function(t){this.modExists("selectRow",!0)&&this.modules.selectRow.toggleRow(t)},k.prototype.getSelectedRows=function(){if(this.modExists("selectRow",!0))return this.modules.selectRow.getSelectedRows()},k.prototype.getSelectedData=function(){if(this.modExists("selectRow",!0))return this.modules.selectRow.getSelectedData()},k.prototype.getInvalidCells=function(){if(this.modExists("validate",!0))return this.modules.validate.getInvalidCells()},k.prototype.clearCellValidation=function(t){var i=this;this.modExists("validate",!0)&&(t||(t=this.modules.validate.getInvalidCells()),Array.isArray(t)||(t=[t]),t.forEach((function(t){i.modules.validate.clearValidation(t._getSelf())})))},k.prototype.validate=function(){var t=[];return this.rowManager.rows.forEach((function(i){var o=i.validate();!0!==o&&(t=t.concat(o))})),!t.length||t},k.prototype.setMaxPage=function(t){if(!this.options.pagination||!this.modExists("page"))return!1;this.modules.page.setMaxPage(t)},k.prototype.setPage=function(t){return this.options.pagination&&this.modExists("page")?this.modules.page.setPage(t):new Promise((function(t,i){i()}))},k.prototype.setPageToRow=function(t){var i=this;return new Promise((function(o,n){i.options.pagination&&i.modExists("page")&&(t=i.rowManager.findRow(t))?i.modules.page.setPageToRow(t).then((function(){o()})).catch((function(){n()})):n()}))},k.prototype.setPageSize=function(t){if(!this.options.pagination||!this.modExists("page"))return!1;this.modules.page.setPageSize(t),this.modules.page.setPage(1).then((function(){})).catch((function(){}))},k.prototype.getPageSize=function(){if(this.options.pagination&&this.modExists("page",!0))return this.modules.page.getPageSize()},k.prototype.previousPage=function(){if(!this.options.pagination||!this.modExists("page"))return!1;this.modules.page.previousPage()},k.prototype.nextPage=function(){if(!this.options.pagination||!this.modExists("page"))return!1;this.modules.page.nextPage()},k.prototype.getPage=function(){return!(!this.options.pagination||!this.modExists("page"))&&this.modules.page.getPage()},k.prototype.getPageMax=function(){return!(!this.options.pagination||!this.modExists("page"))&&this.modules.page.getPageMax()},k.prototype.setGroupBy=function(t){if(!this.modExists("groupRows",!0))return!1;this.options.groupBy=t,this.modules.groupRows.initialize(),this.rowManager.refreshActiveData("display"),this.options.persistence&&this.modExists("persistence",!0)&&this.modules.persistence.config.group&&this.modules.persistence.save("group")},k.prototype.setGroupValues=function(t){if(!this.modExists("groupRows",!0))return!1;this.options.groupValues=t,this.modules.groupRows.initialize(),this.rowManager.refreshActiveData("display"),this.options.persistence&&this.modExists("persistence",!0)&&this.modules.persistence.config.group&&this.modules.persistence.save("group")},k.prototype.setGroupStartOpen=function(t){if(!this.modExists("groupRows",!0))return!1;this.options.groupStartOpen=t,this.modules.groupRows.initialize(),this.options.groupBy?(this.rowManager.refreshActiveData("group"),this.options.persistence&&this.modExists("persistence",!0)&&this.modules.persistence.config.group&&this.modules.persistence.save("group")):console.warn("Grouping Update - cant refresh view, no groups have been set")},k.prototype.setGroupHeader=function(t){if(!this.modExists("groupRows",!0))return!1;this.options.groupHeader=t,this.modules.groupRows.initialize(),this.options.groupBy?(this.rowManager.refreshActiveData("group"),this.options.persistence&&this.modExists("persistence",!0)&&this.modules.persistence.config.group&&this.modules.persistence.save("group")):console.warn("Grouping Update - cant refresh view, no groups have been set")},k.prototype.getGroups=function(){return!!this.modExists("groupRows",!0)&&this.modules.groupRows.getGroups(!0)},k.prototype.getGroupedData=function(){if(this.modExists("groupRows",!0))return this.options.groupBy?this.modules.groupRows.getGroupedData():this.getData()},k.prototype.getEditedCells=function(){if(this.modExists("edit",!0))return this.modules.edit.getEditedCells()},k.prototype.clearCellEdited=function(t){var i=this;this.modExists("edit",!0)&&(t||(t=this.modules.edit.getEditedCells()),Array.isArray(t)||(t=[t]),t.forEach((function(t){i.modules.edit.clearEdited(t._getSelf())})))},k.prototype.getCalcResults=function(){return!!this.modExists("columnCalcs",!0)&&this.modules.columnCalcs.getResults()},k.prototype.recalc=function(){this.modExists("columnCalcs",!0)&&this.modules.columnCalcs.recalcAll(this.rowManager.activeRows)},k.prototype.navigatePrev=function(){var t=!1;return!(!this.modExists("edit",!0)||!(t=this.modules.edit.currentCell))&&t.nav().prev()},k.prototype.navigateNext=function(){var t=!1;return!(!this.modExists("edit",!0)||!(t=this.modules.edit.currentCell))&&t.nav().next()},k.prototype.navigateLeft=function(){var t=!1;return!(!this.modExists("edit",!0)||!(t=this.modules.edit.currentCell))&&(e.preventDefault(),t.nav().left())},k.prototype.navigateRight=function(){var t=!1;return!(!this.modExists("edit",!0)||!(t=this.modules.edit.currentCell))&&(e.preventDefault(),t.nav().right())},k.prototype.navigateUp=function(){var t=!1;return!(!this.modExists("edit",!0)||!(t=this.modules.edit.currentCell))&&(e.preventDefault(),t.nav().up())},k.prototype.navigateDown=function(){var t=!1;return!(!this.modExists("edit",!0)||!(t=this.modules.edit.currentCell))&&(e.preventDefault(),t.nav().down())},k.prototype.undo=function(){return!(!this.options.history||!this.modExists("history",!0))&&this.modules.history.undo()},k.prototype.redo=function(){return!(!this.options.history||!this.modExists("history",!0))&&this.modules.history.redo()},k.prototype.getHistoryUndoSize=function(){return!(!this.options.history||!this.modExists("history",!0))&&this.modules.history.getHistoryUndoSize()},k.prototype.getHistoryRedoSize=function(){return!(!this.options.history||!this.modExists("history",!0))&&this.modules.history.getHistoryRedoSize()},k.prototype.clearHistory=function(){return!(!this.options.history||!this.modExists("history",!0))&&this.modules.history.clear()},k.prototype.download=function(t,i,o,n){this.modExists("download",!0)&&this.modules.download.download(t,i,o,n)},k.prototype.downloadToTab=function(t,i,o,n){this.modExists("download",!0)&&this.modules.download.download(t,i,o,n,!0)},k.prototype.tableComms=function(t,i,o,n){this.modules.comms.receive(t,i,o,n)},k.prototype.moduleBindings={},k.prototype.extendModule=function(t,i,o){if(k.prototype.moduleBindings[t]){var n=k.prototype.moduleBindings[t].prototype[i];if(n)if("object"==(void 0===o?"undefined":l(o)))for(var r in o)n[r]=o[r];else console.warn("Module Error - Invalid value type, it must be an object");else console.warn("Module Error - property does not exist:",i)}else console.warn("Module Error - module does not exist:",t)},k.prototype.registerModule=function(t,i){k.prototype.moduleBindings[t]=i},k.prototype.bindModules=function(){for(var t in this.modules={},k.prototype.moduleBindings)this.modules[t]=new k.prototype.moduleBindings[t](this)},k.prototype.modExists=function(t,i){return!!this.modules[t]||(i&&console.error("Tabulator Module Not Installed: "+t),!1)},k.prototype.helpers={elVisible:function(t){return!(t.offsetWidth<=0&&t.offsetHeight<=0)},elOffset:function(t){var i=t.getBoundingClientRect();return{top:i.top+window.pageYOffset-document.documentElement.clientTop,left:i.left+window.pageXOffset-document.documentElement.clientLeft}},deepClone:function(t){var i=Object.assign(Array.isArray(t)?[]:{},t);for(var o in t)null!=t[o]&&"object"===l(t[o])&&(i[o]=t[o]instanceof Date?new Date(t[o]):this.deepClone(t[o]));return i}},k.prototype.comms={tables:[],register:function(t){k.prototype.comms.tables.push(t)},deregister:function(t){var i=k.prototype.comms.tables.indexOf(t);i>-1&&k.prototype.comms.tables.splice(i,1)},lookupTable:function(t,i){var o,n,r=[];if("string"==typeof t){if((o=document.querySelectorAll(t)).length)for(var e=0;e<o.length;e++)(n=k.prototype.comms.matchElement(o[e]))&&r.push(n)}else"undefined"!=typeof HTMLElement&&t instanceof HTMLElement||t instanceof k?(n=k.prototype.comms.matchElement(t))&&r.push(n):Array.isArray(t)?t.forEach((function(t){r=r.concat(k.prototype.comms.lookupTable(t))})):i||console.warn("Table Connection Error - Invalid Selector",t);return r},matchElement:function(t){return k.prototype.comms.tables.find((function(i){return t instanceof k?i===t:i.element===t}))}},k.prototype.findTable=function(t){var i=k.prototype.comms.lookupTable(t,!0);return!(Array.isArray(i)&&!i.length)&&i};var C=function(t){this.table=t,this.mode=null};C.prototype.initialize=function(t){this.modes[t]?this.mode=t:(console.warn("Layout Error - invalid mode set, defaulting to 'fitData' : "+t),this.mode="fitData"),this.table.element.setAttribute("tabulator-layout",this.mode)},C.prototype.getMode=function(){return this.mode},C.prototype.layout=function(){this.modes[this.mode].call(this,this.table.columnManager.columnsByIndex),0===this.mode.indexOf("fitData")&&this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.columns&&this.table.modules.persistence.save("columns")},C.prototype.modes={fitData:function(t){this.table.options.virtualDomHoz?this.table.vdomHoz.fitDataLayoutOverride():t.forEach((function(t){t.reinitializeWidth()})),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()},fitDataFill:function(t){t.forEach((function(t){t.reinitializeWidth()})),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()},fitDataTable:function(t){t.forEach((function(t){t.reinitializeWidth()})),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()},fitDataStretch:function(t){var i=this,o=0,n=this.table.rowManager.element.clientWidth,r=0,e=!1;t.forEach((function(t){t.widthFixed||t.reinitializeWidth(),(i.table.options.responsiveLayout?t.modules.responsive.visible:t.visible)&&(e=t),t.visible&&(o+=t.getWidth())})),e?(r=n-o+e.getWidth(),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&(e.setWidth(0),this.table.modules.responsiveLayout.update()),r>0?e.setWidth(r):e.reinitializeWidth()):this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()},fitColumns:function(t){var i,o,n=this.table.element.clientWidth,r=0,e=0,s=0,a=[],h=[],u=0,c=0;function l(t){return"string"==typeof t?t.indexOf("%")>-1?n/100*parseInt(t):parseInt(t):t}function f(t,i,o,n){var r=[],e=0,a=0,h=0,u=s,c=0,d=0,b=[];function p(t){return o*(t.column.definition.widthGrow||1)}function v(t){return l(t.width)-o*(t.column.definition.widthShrink||0)}return t.forEach((function(t){var e=n?v(t):p(t);t.column.minWidth>=e?r.push(t):t.column.maxWidth&&t.column.maxWidth<e?(t.width=t.column.maxWidth,i-=t.column.maxWidth,(u-=n?t.column.definition.widthShrink||1:t.column.definition.widthGrow||1)&&(o=Math.floor(i/u))):(b.push(t),d+=n?t.column.definition.widthShrink||1:t.column.definition.widthGrow||1)})),r.length?(r.forEach((function(t){e+=n?t.width-t.column.minWidth:t.column.minWidth,t.width=t.column.minWidth})),c=(a=i-e)-(h=d?Math.floor(a/d):a)*d,c+=f(b,a,h,n)):(c=d?i-Math.floor(i/d)*d:i,b.forEach((function(t){t.width=n?v(t):p(t)}))),c}this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update(),this.table.rowManager.element.scrollHeight>this.table.rowManager.element.clientHeight&&(n-=this.table.rowManager.element.offsetWidth-this.table.rowManager.element.clientWidth),t.forEach((function(t){var i,o,n;t.visible&&(i=t.definition.width,o=parseInt(t.minWidth),i?(n=l(i),r+=n>o?n:o,t.definition.widthShrink&&(h.push({column:t,width:n>o?n:o}),u+=t.definition.widthShrink)):(a.push({column:t,width:0}),s+=t.definition.widthGrow||1))})),e=n-r,i=Math.floor(e/s),c=f(a,e,i,!1),a.length&&c>0&&(a[a.length-1].width+=+c),a.forEach((function(t){e-=t.width})),(o=Math.abs(c)+e)>0&&u&&(c=f(h,o,Math.floor(o/u),!0)),h.length&&(h[h.length-1].width-=c),a.forEach((function(t){t.column.setWidth(t.width)})),h.forEach((function(t){t.column.setWidth(t.width)}))}},k.prototype.registerModule("layout",C);var E=function(t){this.table=t,this.locale="default",this.lang=!1,this.bindings={},this.langList={}};E.prototype.initialize=function(){this.langList=k.prototype.helpers.deepClone(this.langs)},E.prototype.setHeaderFilterPlaceholder=function(t){this.langList.default.headerFilters.default=t},E.prototype.setHeaderFilterColumnPlaceholder=function(t,i){this.langList.default.headerFilters.columns[t]=i,this.lang&&!this.lang.headerFilters.columns[t]&&(this.lang.headerFilters.columns[t]=i)},E.prototype.installLang=function(t,i){this.langList[t]?this._setLangProp(this.langList[t],i):this.langList[t]=i},E.prototype._setLangProp=function(t,i){for(var o in i)t[o]&&"object"==l(t[o])?this._setLangProp(t[o],i[o]):t[o]=i[o]},E.prototype.setLocale=function(t){var i=this;if(!0===(t=t||"default")&&navigator.language&&(t=navigator.language.toLowerCase()),t&&!i.langList[t]){var o=t.split("-")[0];i.langList[o]?(console.warn("Localization Error - Exact matching locale not found, using closest match: ",t,o),t=o):(console.warn("Localization Error - Matching locale not found, using default: ",t),t="default")}i.locale=t,i.lang=k.prototype.helpers.deepClone(i.langList.default||{}),"default"!=t&&function t(i,o){for(var n in i)"object"==l(i[n])?(o[n]||(o[n]={}),t(i[n],o[n])):o[n]=i[n]}(i.langList[t],i.lang),i.table.options.localized.call(i.table,i.locale,i.lang),i._executeBindings()},E.prototype.getLocale=function(){return self.locale},E.prototype.getLang=function(t){return t?this.langList[t]:this.lang},E.prototype.getText=function(t,i){var o=(t=i?t+"|"+i:t).split("|");return this._getLangElement(o,this.locale)||""},E.prototype._getLangElement=function(t){var i=this.lang;return t.forEach((function(t){var o;i&&(i=void 0!==(o=i[t])&&o)})),i},E.prototype.bind=function(t,i){this.bindings[t]||(this.bindings[t]=[]),this.bindings[t].push(i),i(this.getText(t),this.lang)},E.prototype._executeBindings=function(){var t=this,i=function(i){t.bindings[i].forEach((function(o){o(t.getText(i),t.lang)}))};for(var o in t.bindings)i(o)},E.prototype.langs={default:{groups:{item:"item",items:"items"},columns:{},ajax:{loading:"Loading",error:"Error"},pagination:{page_size:"Page Size",page_title:"Show Page",first:"First",first_title:"First Page",last:"Last",last_title:"Last Page",prev:"Prev",prev_title:"Prev Page",next:"Next",next_title:"Next Page",all:"All"},headerFilters:{default:"filter column...",columns:{}}}},k.prototype.registerModule("localize",E);var j=function(t){this.table=t};j.prototype.getConnections=function(t){var i=this,o=[];return k.prototype.comms.lookupTable(t).forEach((function(t){i.table!==t&&o.push(t)})),o},j.prototype.send=function(t,i,o,n){var r=this,e=this.getConnections(t);e.forEach((function(t){t.tableComms(r.table.element,i,o,n)})),!e.length&&t&&console.warn("Table Connection Error - No tables matching selector found",t)},j.prototype.receive=function(t,i,o,n){if(this.table.modExists(i))return this.table.modules[i].commsReceived(t,o,n);console.warn("Inter-table Comms Error - no such module:",i)},k.prototype.registerModule("comms",j);var z=function(t){this.table=t,this.allowedTypes=["","data","download","clipboard","print","htmlOutput"]};z.prototype.initializeColumn=function(t){var i=this,o=!1,n={};this.allowedTypes.forEach((function(r){var e,s="accessor"+(r.charAt(0).toUpperCase()+r.slice(1));t.definition[s]&&(e=i.lookupAccessor(t.definition[s]))&&(o=!0,n[s]={accessor:e,params:t.definition[s+"Params"]||{}})})),o&&(t.modules.accessor=n)},z.prototype.lookupAccessor=function(t){var i=!1;switch(void 0===t?"undefined":l(t)){case"string":this.accessors[t]?i=this.accessors[t]:console.warn("Accessor Error - No such accessor found, ignoring: ",t);break;case"function":i=t}return i},z.prototype.transformRow=function(t,i){var o="accessor"+(i.charAt(0).toUpperCase()+i.slice(1)),n=t.getComponent(),r=k.prototype.helpers.deepClone(t.data||{});return this.table.columnManager.traverse((function(t){var e,s,a,h;t.modules.accessor&&(s=t.modules.accessor[o]||t.modules.accessor.accessor||!1)&&"undefined"!=(e=t.getFieldValue(r))&&(h=t.getComponent(),a="function"==typeof s.params?s.params(e,r,i,h,n):s.params,t.setFieldValue(r,s.accessor(e,r,i,a,h,n)))})),r},z.prototype.accessors={},k.prototype.registerModule("accessor",z);var T=function(t){this.table=t,this.config=!1,this.url="",this.urlGenerator=!1,this.params=!1,this.loaderElement=this.createLoaderElement(),this.msgElement=this.createMsgElement(),this.loadingElement=!1,this.errorElement=!1,this.loaderPromise=!1,this.progressiveLoad=!1,this.loading=!1,this.requestOrder=0};T.prototype.initialize=function(){var t;this.loaderElement.appendChild(this.msgElement),this.table.options.ajaxLoaderLoading&&("string"==typeof this.table.options.ajaxLoaderLoading?((t=document.createElement("template")).innerHTML=this.table.options.ajaxLoaderLoading.trim(),this.loadingElement=t.content.firstChild):this.loadingElement=this.table.options.ajaxLoaderLoading),this.loaderPromise=this.table.options.ajaxRequestFunc||this.defaultLoaderPromise,this.urlGenerator=this.table.options.ajaxURLGenerator||this.defaultURLGenerator,this.table.options.ajaxLoaderError&&("string"==typeof this.table.options.ajaxLoaderError?((t=document.createElement("template")).innerHTML=this.table.options.ajaxLoaderError.trim(),this.errorElement=t.content.firstChild):this.errorElement=this.table.options.ajaxLoaderError),this.table.options.ajaxParams&&this.setParams(this.table.options.ajaxParams),this.table.options.ajaxConfig&&this.setConfig(this.table.options.ajaxConfig),this.table.options.ajaxURL&&this.setUrl(this.table.options.ajaxURL),this.table.options.ajaxProgressiveLoad&&(this.table.options.pagination?(this.progressiveLoad=!1,console.error("Progressive Load Error - Pagination and progressive load cannot be used at the same time")):this.table.modExists("page")?(this.progressiveLoad=this.table.options.ajaxProgressiveLoad,this.table.modules.page.initializeProgressive(this.progressiveLoad)):console.error("Pagination plugin is required for progressive ajax loading"))},T.prototype.createLoaderElement=function(){var t=document.createElement("div");return t.classList.add("tabulator-loader"),t},T.prototype.createMsgElement=function(){var t=document.createElement("div");return t.classList.add("tabulator-loader-msg"),t.setAttribute("role","alert"),t},T.prototype.setParams=function(t,i){if(i)for(var o in this.params=this.params||{},t)this.params[o]=t[o];else this.params=t},T.prototype.getParams=function(){return this.params||{}},T.prototype.setConfig=function(t){if(this._loadDefaultConfig(),"string"==typeof t)this.config.method=t;else for(var i in t)this.config[i]=t[i]},T.prototype._loadDefaultConfig=function(t){var i=this;if(!i.config||t)for(var o in i.config={},i.defaultConfig)i.config[o]=i.defaultConfig[o]},T.prototype.setUrl=function(t){this.url=t},T.prototype.getUrl=function(){return this.url},T.prototype.loadData=function(t,i){return this.progressiveLoad?this._loadDataProgressive():this._loadDataStandard(t,i)},T.prototype.nextPage=function(t){this.loading||t<(this.table.options.ajaxProgressiveLoadScrollMargin||2*this.table.rowManager.getElement().clientHeight)&&this.table.modules.page.nextPage().then((function(){})).catch((function(){}))},T.prototype.blockActiveRequest=function(){this.requestOrder++},T.prototype._loadDataProgressive=function(){return this.table.rowManager.setData([]),this.table.modules.page.setPage(1)},T.prototype._loadDataStandard=function(t,i){var o=this;return new Promise((function(n,r){o.sendRequest(t).then((function(e){o.table.rowManager.setData(e,t,i).then((function(){n()})).catch((function(t){r(t)}))})).catch((function(t){r(t)}))}))},T.prototype.generateParamsList=function(t,i){var o=this,n=[];if(i=i||"",Array.isArray(t))t.forEach((function(t,r){n=n.concat(o.generateParamsList(t,i?i+"["+r+"]":r))}));else if("object"===(void 0===t?"undefined":l(t)))for(var r in t)n=n.concat(o.generateParamsList(t[r],i?i+"["+r+"]":r));else n.push({key:i,value:t});return n},T.prototype.serializeParams=function(t){var i=this.generateParamsList(t),o=[];return i.forEach((function(t){o.push(encodeURIComponent(t.key)+"="+encodeURIComponent(t.value))})),o.join("&")},T.prototype.sendRequest=function(t){var i,o=this,n=this,r=n.url;return n.requestOrder++,i=n.requestOrder,n._loadDefaultConfig(),new Promise((function(e,s){!1!==n.table.options.ajaxRequesting.call(o.table,n.url,n.params)?(n.loading=!0,t||n.showLoader(),o.loaderPromise(r,n.config,n.params).then((function(t){i===n.requestOrder?(n.table.options.ajaxResponse&&(t=n.table.options.ajaxResponse.call(n.table,n.url,n.params,t)),e(t),n.hideLoader(),n.loading=!1):console.warn("Ajax Response Blocked - An active ajax request was blocked by an attempt to change table data while the request was being made")})).catch((function(t){console.error("Ajax Load Error: ",t),n.table.options.ajaxError.call(n.table,t),n.showError(),setTimeout((function(){n.hideLoader()}),3e3),n.loading=!1,s(t)}))):s()}))},T.prototype.showLoader=function(){if("function"==typeof this.table.options.ajaxLoader?this.table.options.ajaxLoader():this.table.options.ajaxLoader){for(this.hideLoader();this.msgElement.firstChild;)this.msgElement.removeChild(this.msgElement.firstChild);this.msgElement.classList.remove("tabulator-error"),this.msgElement.classList.add("tabulator-loading"),this.loadingElement?this.msgElement.appendChild(this.loadingElement):this.msgElement.innerHTML=this.table.modules.localize.getText("ajax|loading"),this.table.element.appendChild(this.loaderElement)}},T.prototype.showError=function(){for(this.hideLoader();this.msgElement.firstChild;)this.msgElement.removeChild(this.msgElement.firstChild);this.msgElement.classList.remove("tabulator-loading"),this.msgElement.classList.add("tabulator-error"),this.errorElement?this.msgElement.appendChild(this.errorElement):this.msgElement.innerHTML=this.table.modules.localize.getText("ajax|error"),this.table.element.appendChild(this.loaderElement)},T.prototype.hideLoader=function(){this.loaderElement.parentNode&&this.loaderElement.parentNode.removeChild(this.loaderElement)},T.prototype.defaultConfig={method:"GET"},T.prototype.defaultURLGenerator=function(t,i,o){return t&&o&&Object.keys(o).length&&(i.method&&"get"!=i.method.toLowerCase()||(i.method="get",t+=(t.includes("?")?"&":"?")+this.modules.ajax.serializeParams(o))),t},T.prototype.defaultLoaderPromise=function(t,i,o){var n,r=this;return new Promise((function(e,s){if(t=r.urlGenerator.call(r.table,t,i,o),"GET"!=i.method.toUpperCase())if(n="object"===l(r.table.options.ajaxContentType)?r.table.options.ajaxContentType:r.contentTypeFormatters[r.table.options.ajaxContentType]){for(var a in n.headers)i.headers||(i.headers={}),void 0===i.headers[a]&&(i.headers[a]=n.headers[a]);i.body=n.body.call(r,t,i,o)}else console.warn("Ajax Error - Invalid ajaxContentType value:",r.table.options.ajaxContentType);t?(void 0===i.headers&&(i.headers={}),void 0===i.headers.Accept&&(i.headers.Accept="application/json"),void 0===i.headers["X-Requested-With"]&&(i.headers["X-Requested-With"]="XMLHttpRequest"),void 0===i.mode&&(i.mode="cors"),"cors"==i.mode?(void 0===i.headers["Access-Control-Allow-Origin"]&&(i.headers["Access-Control-Allow-Origin"]=window.location.origin),void 0===i.credentials&&(i.credentials="same-origin")):void 0===i.credentials&&(i.credentials="include"),fetch(t,i).then((function(t){t.ok?t.json().then((function(t){e(t)})).catch((function(t){s(t),console.warn("Ajax Load Error - Invalid JSON returned",t)})):(console.error("Ajax Load Error - Connection Error: "+t.status,t.statusText),s(t))})).catch((function(t){console.error("Ajax Load Error - Connection Error: ",t),s(t)}))):(console.warn("Ajax Load Error - No URL Set"),e([]))}))},T.prototype.contentTypeFormatters={json:{headers:{"Content-Type":"application/json"},body:function(t,i,o){return JSON.stringify(o)}},form:{headers:{},body:function(t,i,o){var n=this.generateParamsList(o),r=new FormData;return n.forEach((function(t){r.append(t.key,t.value)})),r}}},k.prototype.registerModule("ajax",T);var S=function(t){this._row=t};S.prototype.getData=function(t){return this._row.getData(t)},S.prototype.getElement=function(){return this._row.getElement()},S.prototype.getTable=function(){return this._row.table},S.prototype.getCells=function(){var t=[];return this._row.getCells().forEach((function(i){t.push(i.getComponent())})),t},S.prototype.getCell=function(t){var i=this._row.getCell(t);return!!i&&i.getComponent()},S.prototype._getSelf=function(){return this._row};var R=function(t){this.table=t,this.topCalcs=[],this.botCalcs=[],this.genColumn=!1,this.topElement=this.createElement(),this.botElement=this.createElement(),this.topRow=!1,this.botRow=!1,this.topInitialized=!1,this.botInitialized=!1,this.initialize()};R.prototype.createElement=function(){var t=document.createElement("div");return t.classList.add("tabulator-calcs-holder"),t},R.prototype.initialize=function(){this.genColumn=new b({field:"value"},this)},R.prototype.registerColumnField=function(){},R.prototype.initializeColumn=function(t){var i=t.definition,o={topCalcParams:i.topCalcParams||{},botCalcParams:i.bottomCalcParams||{}};if(i.topCalc){switch(l(i.topCalc)){case"string":this.calculations[i.topCalc]?o.topCalc=this.calculations[i.topCalc]:console.warn("Column Calc Error - No such calculation found, ignoring: ",i.topCalc);break;case"function":o.topCalc=i.topCalc}o.topCalc&&(t.modules.columnCalcs=o,this.topCalcs.push(t),"group"!=this.table.options.columnCalcs&&this.initializeTopRow())}if(i.bottomCalc){switch(l(i.bottomCalc)){case"string":this.calculations[i.bottomCalc]?o.botCalc=this.calculations[i.bottomCalc]:console.warn("Column Calc Error - No such calculation found, ignoring: ",i.bottomCalc);break;case"function":o.botCalc=i.bottomCalc}o.botCalc&&(t.modules.columnCalcs=o,this.botCalcs.push(t),"group"!=this.table.options.columnCalcs&&this.initializeBottomRow())}},R.prototype.removeCalcs=function(){var t=!1;this.topInitialized&&(this.topInitialized=!1,this.topElement.parentNode.removeChild(this.topElement),t=!0),this.botInitialized&&(this.botInitialized=!1,this.table.footerManager.remove(this.botElement),t=!0),t&&this.table.rowManager.adjustTableSize()},R.prototype.initializeTopRow=function(){this.topInitialized||(this.table.columnManager.getElement().insertBefore(this.topElement,this.table.columnManager.headersElement.nextSibling),this.topInitialized=!0)},R.prototype.initializeBottomRow=function(){this.botInitialized||(this.table.footerManager.prepend(this.botElement),this.botInitialized=!0)},R.prototype.scrollHorizontal=function(t){this.botInitialized&&this.botRow&&(this.botRow.getElement().style.marginLeft=-t+"px")},R.prototype.recalc=function(t){var i;if(this.topInitialized||this.botInitialized){if(this.rowsToData(t),this.topInitialized){for(this.topRow&&this.topRow.deleteCells(),i=this.generateRow("top",this.rowsToData(t)),this.topRow=i;this.topElement.firstChild;)this.topElement.removeChild(this.topElement.firstChild);this.topElement.appendChild(i.getElement()),i.initialize(!0)}if(this.botInitialized){for(this.botRow&&this.botRow.deleteCells(),i=this.generateRow("bottom",this.rowsToData(t)),this.botRow=i;this.botElement.firstChild;)this.botElement.removeChild(this.botElement.firstChild);this.botElement.appendChild(i.getElement()),i.initialize(!0)}this.table.rowManager.adjustTableSize(),this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layout()}},R.prototype.recalcRowGroup=function(t){this.recalcGroup(this.table.modules.groupRows.getRowGroup(t))},R.prototype.recalcAll=function(){var t=this;(this.topCalcs.length||this.botCalcs.length)&&("group"!==this.table.options.columnCalcs&&this.recalc(this.table.rowManager.activeRows),this.table.options.groupBy&&"table"!==this.table.options.columnCalcs&&table.modules.groupRows.getChildGroups().forEach((function(i){t.recalcGroup(i)})))},R.prototype.recalcGroup=function(t){var i,o;t&&t.calcs&&(t.calcs.bottom&&(i=this.rowsToData(t.rows),o=this.generateRowData("bottom",i),t.calcs.bottom.updateData(o),t.calcs.bottom.reinitialize()),t.calcs.top&&(i=this.rowsToData(t.rows),o=this.generateRowData("top",i),t.calcs.top.updateData(o),t.calcs.top.reinitialize()))},R.prototype.generateTopRow=function(t){return this.generateRow("top",this.rowsToData(t))},R.prototype.generateBottomRow=function(t){return this.generateRow("bottom",this.rowsToData(t))},R.prototype.rowsToData=function(t){var i=this,o=[];return t.forEach((function(t){if(o.push(t.getData()),i.table.options.dataTree&&i.table.options.dataTreeChildColumnCalcs&&t.modules.dataTree.open){var n=i.rowsToData(i.table.modules.dataTree.getFilteredTreeChildren(t));o=o.concat(n)}})),o},R.prototype.generateRow=function(t,i){var o,n=this,r=this.generateRowData(t,i);return n.table.modExists("mutator")&&n.table.modules.mutator.disable(),o=new g(r,this,"calc"),n.table.modExists("mutator")&&n.table.modules.mutator.enable(),o.getElement().classList.add("tabulator-calcs","tabulator-calcs-"+t),o.component=!1,o.getComponent=function(){return this.component||(this.component=new S(this)),this.component},o.generateCells=function(){var i=[];n.table.columnManager.columnsByIndex.forEach((function(r){n.genColumn.setField(r.getField()),n.genColumn.hozAlign=r.hozAlign,n.genColumn.modules.format=r.definition[t+"CalcFormatter"]&&n.table.modExists("format")?{formatter:n.table.modules.format.getFormatter(r.definition[t+"CalcFormatter"]),params:r.definition[t+"CalcFormatterParams"]||{}}:{formatter:n.table.modules.format.getFormatter("plaintext"),params:{}},n.genColumn.definition.cssClass=r.definition.cssClass;var e=new x(n.genColumn,o);e.getElement(),e.column=r,e.setWidth(),r.cells.push(e),i.push(e),r.visible||e.hide()})),this.cells=i},o},R.prototype.generateRowData=function(t,i){var o,n,r={},e="top"==t?"topCalc":"botCalc";return("top"==t?this.topCalcs:this.botCalcs).forEach((function(t){var s=[];t.modules.columnCalcs&&t.modules.columnCalcs[e]&&(i.forEach((function(i){s.push(t.getFieldValue(i))})),o="function"==typeof t.modules.columnCalcs[n=e+"Params"]?t.modules.columnCalcs[n](s,i):t.modules.columnCalcs[n],t.setFieldValue(r,t.modules.columnCalcs[e](s,i,o)))})),r},R.prototype.hasTopCalcs=function(){return!!this.topCalcs.length},R.prototype.hasBottomCalcs=function(){return!!this.botCalcs.length},R.prototype.redraw=function(){this.topRow&&this.topRow.normalizeHeight(!0),this.botRow&&this.botRow.normalizeHeight(!0)},R.prototype.getResults=function(){var t=this,i={};return this.table.options.groupBy&&this.table.modExists("groupRows")?this.table.modules.groupRows.getGroups(!0).forEach((function(o){i[o.getKey()]=t.getGroupResults(o)})):i={top:this.topRow?this.topRow.getData():{},bottom:this.botRow?this.botRow.getData():{}},i},R.prototype.getGroupResults=function(t){var i=this,o=t._getSelf(),n=t.getSubGroups(),r={};return n.forEach((function(t){r[t.getKey()]=i.getGroupResults(t)})),{top:o.calcs.top?o.calcs.top.getData():{},bottom:o.calcs.bottom?o.calcs.bottom.getData():{},groups:r}},R.prototype.calculations={avg:function(t,i,o){var n=0,r=void 0!==o.precision?o.precision:2;return t.length&&(n=t.reduce((function(t,i){return Number(t)+Number(i)})),n/=t.length,n=!1!==r?n.toFixed(r):n),parseFloat(n).toString()},max:function(t,i,o){var n=null,r=void 0!==o.precision&&o.precision;return t.forEach((function(t){((t=Number(t))>n||null===n)&&(n=t)})),null!==n?!1!==r?n.toFixed(r):n:""},min:function(t,i,o){var n=null,r=void 0!==o.precision&&o.precision;return t.forEach((function(t){((t=Number(t))<n||null===n)&&(n=t)})),null!==n?!1!==r?n.toFixed(r):n:""},sum:function(t,i,o){var n=0,r=void 0!==o.precision&&o.precision;return t.length&&t.forEach((function(t){t=Number(t),n+=isNaN(t)?0:Number(t)})),!1!==r?n.toFixed(r):n},concat:function(t){var i=0;return t.length&&(i=t.reduce((function(t,i){return String(t)+String(i)}))),i},count:function(t){var i=0;return t.length&&t.forEach((function(t){t&&i++})),i}},k.prototype.registerModule("columnCalcs",R);var N=function(t){this.table=t,this.mode=!0,this.pasteParser=function(){},this.pasteAction=function(){},this.customSelection=!1,this.rowRange=!1,this.blocked=!0};N.prototype.initialize=function(){var t=this;this.mode=this.table.options.clipboard,this.rowRange=this.table.options.clipboardCopyRowRange,!0!==this.mode&&"copy"!==this.mode||this.table.element.addEventListener("copy",(function(i){var o,n;if(!t.blocked){if(i.preventDefault(),t.customSelection)o=t.customSelection,t.table.options.clipboardCopyFormatter&&(o=t.table.options.clipboardCopyFormatter("plain",o));else{var r=t.table.modules.export.generateExportList(t.table.options.clipboardCopyConfig,t.table.options.clipboardCopyStyled,t.rowRange,"clipboard");o=(n=t.table.modules.export.genereateHTMLTable(r))?t.generatePlainContent(r):"",t.table.options.clipboardCopyFormatter&&(o=t.table.options.clipboardCopyFormatter("plain",o),n=t.table.options.clipboardCopyFormatter("html",n))}window.clipboardData&&window.clipboardData.setData?window.clipboardData.setData("Text",o):i.clipboardData&&i.clipboardData.setData?(i.clipboardData.setData("text/plain",o),n&&i.clipboardData.setData("text/html",n)):i.originalEvent&&i.originalEvent.clipboardData.setData&&(i.originalEvent.clipboardData.setData("text/plain",o),n&&i.originalEvent.clipboardData.setData("text/html",n)),t.table.options.clipboardCopied.call(t.table,o,n),t.reset()}})),!0!==this.mode&&"paste"!==this.mode||this.table.element.addEventListener("paste",(function(i){t.paste(i)})),this.setPasteParser(this.table.options.clipboardPasteParser),this.setPasteAction(this.table.options.clipboardPasteAction)},N.prototype.reset=function(){this.blocked=!0,this.customSelection=!1},N.prototype.generatePlainContent=function(t){var i=[];return t.forEach((function(t){var o=[];t.columns.forEach((function(i){var n="";if(i)if("group"===t.type&&(i.value=i.component.getKey()),null===i.value)n="";else switch(l(i.value)){case"object":n=JSON.stringify(i.value);break;case"undefined":n="";break;default:n=i.value}o.push(n)})),i.push(o.join("\t"))})),i.join("\n")},N.prototype.copy=function(t,i){var o,n;this.blocked=!1,this.customSelection=!1,!0!==this.mode&&"copy"!==this.mode||(this.rowRange=t||this.table.options.clipboardCopyRowRange,void 0!==window.getSelection&&void 0!==document.createRange?((t=document.createRange()).selectNodeContents(this.table.element),(o=window.getSelection()).toString()&&i&&(this.customSelection=o.toString()),o.removeAllRanges(),o.addRange(t)):void 0!==document.selection&&void 0!==document.body.createTextRange&&((n=document.body.createTextRange()).moveToElementText(this.table.element),n.select()),document.execCommand("copy"),o&&o.removeAllRanges())},N.prototype.setPasteAction=function(t){switch(void 0===t?"undefined":l(t)){case"string":this.pasteAction=this.pasteActions[t],this.pasteAction||console.warn("Clipboard Error - No such paste action found:",t);break;case"function":this.pasteAction=t}},N.prototype.setPasteParser=function(t){switch(void 0===t?"undefined":l(t)){case"string":this.pasteParser=this.pasteParsers[t],this.pasteParser||console.warn("Clipboard Error - No such paste parser found:",t);break;case"function":this.pasteParser=t}},N.prototype.paste=function(t){var i,o,n;this.checkPaseOrigin(t)&&(i=this.getPasteData(t),(o=this.pasteParser.call(this,i))?(t.preventDefault(),this.table.modExists("mutator")&&(o=this.mutateData(o)),n=this.pasteAction.call(this,o),this.table.options.clipboardPasted.call(this.table,i,o,n)):this.table.options.clipboardPasteError.call(this.table,i))},N.prototype.mutateData=function(t){var i=this,o=[];return Array.isArray(t)?t.forEach((function(t){o.push(i.table.modules.mutator.transformRow(t,"clipboard"))})):o=t,o},N.prototype.checkPaseOrigin=function(t){var i=!0;return("DIV"!=t.target.tagName||this.table.modules.edit.currentCell)&&(i=!1),i},N.prototype.getPasteData=function(t){var i;return window.clipboardData&&window.clipboardData.getData?i=window.clipboardData.getData("Text"):t.clipboardData&&t.clipboardData.getData?i=t.clipboardData.getData("text/plain"):t.originalEvent&&t.originalEvent.clipboardData.getData&&(i=t.originalEvent.clipboardData.getData("text/plain")),i},N.prototype.pasteParsers={table:function(t){var i=[],o=!0,n=this.table.columnManager.columns,r=[],e=[];return(t=t.split("\n")).forEach((function(t){i.push(t.split("\t"))})),!(!i.length||1===i.length&&i[0].length<2)&&(i[0].forEach((function(t){var i=n.find((function(i){return t&&i.definition.title&&t.trim()&&i.definition.title.trim()===t.trim()}));i?r.push(i):o=!1})),o||(o=!0,r=[],i[0].forEach((function(t){var i=n.find((function(i){return t&&i.field&&t.trim()&&i.field.trim()===t.trim()}));i?r.push(i):o=!1})),o||(r=this.table.columnManager.columnsByIndex)),o&&i.shift(),i.forEach((function(t){var i={};t.forEach((function(t,o){r[o]&&(i[r[o].field]=t)})),e.push(i)})),e)}},N.prototype.pasteActions={replace:function(t){return this.table.setData(t)},update:function(t){return this.table.updateOrAddData(t)},insert:function(t){return this.table.addData(t)}},k.prototype.registerModule("clipboard",N);var M=function(t){this.table=t,this.indent=10,this.field="",this.collapseEl=null,this.expandEl=null,this.branchEl=null,this.elementField=!1,this.startOpen=function(){},this.displayIndex=0};M.prototype.initialize=function(){var t=null,i=this.table.columnManager.getFirstVisibileColumn(),o=this.table.options;switch(this.field=o.dataTreeChildField,this.indent=o.dataTreeChildIndent,this.elementField=o.dataTreeElementColumn||!!i&&i.field,o.dataTreeBranchElement&&(!0===o.dataTreeBranchElement?(this.branchEl=document.createElement("div"),this.branchEl.classList.add("tabulator-data-tree-branch")):"string"==typeof o.dataTreeBranchElement?((t=document.createElement("div")).innerHTML=o.dataTreeBranchElement,this.branchEl=t.firstChild):this.branchEl=o.dataTreeBranchElement),o.dataTreeCollapseElement?"string"==typeof o.dataTreeCollapseElement?((t=document.createElement("div")).innerHTML=o.dataTreeCollapseElement,this.collapseEl=t.firstChild):this.collapseEl=o.dataTreeCollapseElement:(this.collapseEl=document.createElement("div"),this.collapseEl.classList.add("tabulator-data-tree-control"),this.collapseEl.tabIndex=0,this.collapseEl.innerHTML="<div class='tabulator-data-tree-control-collapse'></div>"),o.dataTreeExpandElement?"string"==typeof o.dataTreeExpandElement?((t=document.createElement("div")).innerHTML=o.dataTreeExpandElement,this.expandEl=t.firstChild):this.expandEl=o.dataTreeExpandElement:(this.expandEl=document.createElement("div"),this.expandEl.classList.add("tabulator-data-tree-control"),this.expandEl.tabIndex=0,this.expandEl.innerHTML="<div class='tabulator-data-tree-control-expand'></div>"),l(o.dataTreeStartExpanded)){case"boolean":this.startOpen=function(){return o.dataTreeStartExpanded};break;case"function":this.startOpen=o.dataTreeStartExpanded;break;default:this.startOpen=function(t,i){return o.dataTreeStartExpanded[i]}}},M.prototype.initializeRow=function(t){var i=t.getData()[this.field],o=Array.isArray(i),n=o||!o&&"object"===(void 0===i?"undefined":l(i))&&null!==i;!n&&t.modules.dataTree&&t.modules.dataTree.branchEl&&t.modules.dataTree.branchEl.parentNode.removeChild(t.modules.dataTree.branchEl),!n&&t.modules.dataTree&&t.modules.dataTree.controlEl&&t.modules.dataTree.controlEl.parentNode.removeChild(t.modules.dataTree.controlEl),t.modules.dataTree={index:t.modules.dataTree?t.modules.dataTree.index:0,open:!!n&&(t.modules.dataTree?t.modules.dataTree.open:this.startOpen(t.getComponent(),0)),controlEl:!(!t.modules.dataTree||!n)&&t.modules.dataTree.controlEl,branchEl:!(!t.modules.dataTree||!n)&&t.modules.dataTree.branchEl,parent:!!t.modules.dataTree&&t.modules.dataTree.parent,children:n}},M.prototype.layoutRow=function(t){var i=(this.elementField?t.getCell(this.elementField):t.getCells()[0]).getElement(),o=t.modules.dataTree;o.branchEl&&(o.branchEl.parentNode&&o.branchEl.parentNode.removeChild(o.branchEl),o.branchEl=!1),o.controlEl&&(o.controlEl.parentNode&&o.controlEl.parentNode.removeChild(o.controlEl),o.controlEl=!1),this.generateControlElement(t,i),t.getElement().classList.add("tabulator-tree-level-"+o.index),o.index&&(this.branchEl?(o.branchEl=this.branchEl.cloneNode(!0),i.insertBefore(o.branchEl,i.firstChild),this.table.rtl?o.branchEl.style.marginRight=(o.branchEl.offsetWidth+o.branchEl.style.marginLeft)*(o.index-1)+o.index*this.indent+"px":o.branchEl.style.marginLeft=(o.branchEl.offsetWidth+o.branchEl.style.marginRight)*(o.index-1)+o.index*this.indent+"px"):this.table.rtl?i.style.paddingRight=parseInt(window.getComputedStyle(i,null).getPropertyValue("padding-right"))+o.index*this.indent+"px":i.style.paddingLeft=parseInt(window.getComputedStyle(i,null).getPropertyValue("padding-left"))+o.index*this.indent+"px")},M.prototype.generateControlElement=function(t,i){var o=this,n=t.modules.dataTree,r=(i=i||t.getCells()[0].getElement(),n.controlEl);!1!==n.children&&(n.open?(n.controlEl=this.collapseEl.cloneNode(!0),n.controlEl.addEventListener("click",(function(i){i.stopPropagation(),o.collapseRow(t)}))):(n.controlEl=this.expandEl.cloneNode(!0),n.controlEl.addEventListener("click",(function(i){i.stopPropagation(),o.expandRow(t)}))),n.controlEl.addEventListener("mousedown",(function(t){t.stopPropagation()})),r&&r.parentNode===i?r.parentNode.replaceChild(n.controlEl,r):i.insertBefore(n.controlEl,i.firstChild))},M.prototype.setDisplayIndex=function(t){this.displayIndex=t},M.prototype.getDisplayIndex=function(){return this.displayIndex},M.prototype.getRows=function(t){var i=this,o=[];return t.forEach((function(t){var n;o.push(t),t instanceof g&&(t.create(),(n=t.modules.dataTree.children).index||!1===n.children||i.getChildren(t).forEach((function(t){t.create(),o.push(t)})))})),o},M.prototype.getChildren=function(t,i){var o=this,n=t.modules.dataTree,r=[],e=[];return!1!==n.children&&(n.open||i)&&(Array.isArray(n.children)||(n.children=this.generateChildren(t)),r=this.table.modExists("filter")&&this.table.options.dataTreeFilter?this.table.modules.filter.filter(n.children):n.children,this.table.modExists("sort")&&this.table.options.dataTreeSort&&this.table.modules.sort.sort(r),r.forEach((function(t){e.push(t),o.getChildren(t).forEach((function(t){e.push(t)}))}))),e},M.prototype.generateChildren=function(t){var i=this,o=[],n=t.getData()[this.field];return Array.isArray(n)||(n=[n]),n.forEach((function(n){var r=new g(n||{},i.table.rowManager);r.create(),r.modules.dataTree.index=t.modules.dataTree.index+1,r.modules.dataTree.parent=t,r.modules.dataTree.children&&(r.modules.dataTree.open=i.startOpen(r.getComponent(),r.modules.dataTree.index)),o.push(r)})),o},M.prototype.expandRow=function(t){var i=t.modules.dataTree;!1!==i.children&&(i.open=!0,t.reinitialize(),this.table.rowManager.refreshActiveData("tree",!1,!0),this.table.options.dataTreeRowExpanded(t.getComponent(),t.modules.dataTree.index))},M.prototype.collapseRow=function(t){var i=t.modules.dataTree;!1!==i.children&&(i.open=!1,t.reinitialize(),this.table.rowManager.refreshActiveData("tree",!1,!0),this.table.options.dataTreeRowCollapsed(t.getComponent(),t.modules.dataTree.index))},M.prototype.toggleRow=function(t){var i=t.modules.dataTree;!1!==i.children&&(i.open?this.collapseRow(t):this.expandRow(t))},M.prototype.getTreeParent=function(t){return!!t.modules.dataTree.parent&&t.modules.dataTree.parent.getComponent()},M.prototype.getFilteredTreeChildren=function(t){var i=t.modules.dataTree,o=[];return i.children&&(Array.isArray(i.children)||(i.children=this.generateChildren(t)),(this.table.modExists("filter")&&this.table.options.dataTreeFilter?this.table.modules.filter.filter(i.children):i.children).forEach((function(t){t instanceof g&&o.push(t)}))),o},M.prototype.rowDelete=function(t){var i,o=t.modules.dataTree.parent;o&&(!1!==(i=this.findChildIndex(t,o))&&o.data[this.field].splice(i,1),o.data[this.field].length||delete o.data[this.field],this.initializeRow(o),this.layoutRow(o)),this.table.rowManager.refreshActiveData("tree",!1,!0)},M.prototype.addTreeChildRow=function(t,i,o,n){var r=!1;"string"==typeof i&&(i=JSON.parse(i)),Array.isArray(t.data[this.field])||(t.data[this.field]=[],t.modules.dataTree.open=this.startOpen(t.getComponent(),t.modules.dataTree.index)),void 0!==n&&!1!==(r=this.findChildIndex(n,t))&&t.data[this.field].splice(o?r:r+1,0,i),!1===r&&(o?t.data[this.field].unshift(i):t.data[this.field].push(i)),this.initializeRow(t),this.layoutRow(t),this.table.rowManager.refreshActiveData("tree",!1,!0)},M.prototype.findChildIndex=function(t,i){var o=this,n=!1;return"object"==(void 0===t?"undefined":l(t))?t instanceof g?n=t.data:t instanceof m?n=t._getSelf().data:"undefined"!=typeof HTMLElement&&t instanceof HTMLElement&&i.modules.dataTree&&(n=i.modules.dataTree.children.find((function(i){return i instanceof g&&i.element===t})))&&(n=n.data):n=null!=t&&i.data[this.field].find((function(i){return i.data[o.table.options.index]==t})),n&&(Array.isArray(i.data[this.field])&&(n=i.data[this.field].indexOf(n)),-1==n&&(n=!1)),n},M.prototype.getTreeChildren=function(t,i,o){var n=this,r=t.modules.dataTree,e=[];return r.children&&(Array.isArray(r.children)||(r.children=this.generateChildren(t)),r.children.forEach((function(t){t instanceof g&&(e.push(i?t.getComponent():t),o&&(e=e.concat(n.getTreeChildren(t,i,o))))}))),e},M.prototype.checkForRestyle=function(t){t.row.cells.indexOf(t)||t.row.reinitialize()},M.prototype.getChildField=function(){return this.field},M.prototype.redrawNeeded=function(t){return!!this.field&&void 0!==t[this.field]||!!this.elementField&&void 0!==t[this.elementField]},k.prototype.registerModule("dataTree",M);var D=function(t){this.table=t};D.prototype.download=function(t,i,o,n,r){var e=this,s=!1;if("function"==typeof t?s=t:e.downloaders[t]?s=e.downloaders[t]:console.warn("Download Error - No such download type found: ",t),s){var a=this.generateExportList(n);s.call(this.table,a,o||{},(function(o,n){r?!0===r?e.triggerDownload(o,n,t,i,!0):r(o):e.triggerDownload(o,n,t,i)}))}},D.prototype.generateExportList=function(t){var i=this.table.modules.export.generateExportList(this.table.options.downloadConfig,!1,t||this.table.options.downloadRowRange,"download"),o=this.table.options.groupHeaderDownload;return o&&!Array.isArray(o)&&(o=[o]),i.forEach((function(t){var i;"group"===t.type&&(i=t.columns[0],o&&o[t.indent]&&(i.value=o[t.indent](i.value,t.component._group.getRowCount(),t.component._group.getData(),t.component)))})),i},D.prototype.triggerDownload=function(t,i,o,n,r){var e=document.createElement("a"),s=new Blob([t],{type:i});n=n||"Tabulator."+("function"==typeof o?"txt":o),(s=this.table.options.downloadReady.call(this.table,t,s))&&(r?window.open(window.URL.createObjectURL(s)):navigator.msSaveOrOpenBlob?navigator.msSaveOrOpenBlob(s,n):(e.setAttribute("href",window.URL.createObjectURL(s)),e.setAttribute("download",n),e.style.display="none",document.body.appendChild(e),e.click(),document.body.removeChild(e)),this.table.options.downloadComplete&&this.table.options.downloadComplete())},D.prototype.commsReceived=function(t,i,o){switch(i){case"intercept":this.download(o.type,"",o.options,o.active,o.intercept)}},D.prototype.downloaders={csv:function(t,i,o){var n=i&&i.delimiter?i.delimiter:",",r=[],e=[];t.forEach((function(t){var i=[];switch(t.type){case"group":console.warn("Download Warning - CSV downloader cannot process row groups");break;case"calc":console.warn("Download Warning - CSV downloader cannot process column calculations");break;case"header":t.columns.forEach((function(t,i){t&&1===t.depth&&(e[i]=null==t.value?"":'"'+String(t.value).split('"').join('""')+'"')}));break;case"row":t.columns.forEach((function(t){if(t){switch(l(t.value)){case"object":t.value=JSON.stringify(t.value);break;case"undefined":case"null":t.value=""}i.push('"'+String(t.value).split('"').join('""')+'"')}})),r.push(i.join(n))}})),e.length&&r.unshift(e.join(n)),r=r.join("\n"),i.bom&&(r="\ufeff"+r),o(r,"text/csv")},json:function(t,i,o){var n=[];t.forEach((function(t){var i={};switch(t.type){case"header":break;case"group":console.warn("Download Warning - JSON downloader cannot process row groups");break;case"calc":console.warn("Download Warning - JSON downloader cannot process column calculations");break;case"row":t.columns.forEach((function(t){t&&(i[t.component.getField()]=t.value)})),n.push(i)}})),o(n=JSON.stringify(n,null,"\t"),"application/json")},pdf:function(t,i,o){var n=[],r=[],e={},s=i.rowGroupStyles||{fontStyle:"bold",fontSize:12,cellPadding:6,fillColor:220},a=i.rowCalcStyles||{fontStyle:"bold",fontSize:10,cellPadding:4,fillColor:232},h=i.jsPDF||{},u=i&&i.title?i.title:"";function c(t,i){var o=[];return t.columns.forEach((function(t){var n;if(t){switch(l(t.value)){case"object":t.value=JSON.stringify(t.value);break;case"undefined":case"null":t.value=""}n={content:t.value,colSpan:t.width,rowSpan:t.height},i&&(n.styles=i),o.push(n)}else o.push("")})),o}h.orientation||(h.orientation=i.orientation||"landscape"),h.unit||(h.unit="pt"),t.forEach((function(t){switch(t.type){case"header":n.push(c(t));break;case"group":r.push(c(t,s));break;case"calc":r.push(c(t,a));break;case"row":r.push(c(t))}}));var f=new jsPDF(h);i&&i.autoTable&&(e="function"==typeof i.autoTable?i.autoTable(f)||{}:i.autoTable),u&&(e.addPageContent=function(){f.text(u,40,30)}),e.head=n,e.body=r,f.autoTable(e),i&&i.documentProcessing&&i.documentProcessing(f),o(f.output("arraybuffer"),"application/pdf")},xlsx:function(t,i,o){var n=i.sheetName||"Sheet1",r=XLSX.utils.book_new();function e(){var i=[],o=[],n={},r={s:{c:0,r:0},e:{c:t[0]?t[0].columns.reduce((function(t,i){return t+(i&&i.width?i.width:1)}),0):0,r:t.length}};return t.forEach((function(t,n){var r=[];t.columns.forEach((function(t,i){t?(r.push(t.value instanceof Date||"object"!==l(t.value)?t.value:JSON.stringify(t.value)),(t.width>1||t.height>-1)&&o.push({s:{r:n,c:i},e:{r:n+t.height-1,c:i+t.width-1}})):r.push("")})),i.push(r)})),XLSX.utils.sheet_add_aoa(n,i),n["!ref"]=XLSX.utils.encode_range(r),o.length&&(n["!merges"]=o),n}if(r.SheetNames=[],r.Sheets={},i.sheetOnly)o(e());else{if(i.sheets)for(var s in i.sheets)!0===i.sheets[s]?(r.SheetNames.push(s),r.Sheets[s]=e()):(r.SheetNames.push(s),this.modules.comms.send(i.sheets[s],"download","intercept",{type:"xlsx",options:{sheetOnly:!0},active:this.active,intercept:function(t){r.Sheets[s]=t}}));else r.SheetNames.push(n),r.Sheets[n]=e();i.documentProcessing&&(r=i.documentProcessing(r)),o(function(t){for(var i=new ArrayBuffer(t.length),o=new Uint8Array(i),n=0;n!=t.length;++n)o[n]=255&t.charCodeAt(n);return i}(XLSX.write(r,{bookType:"xlsx",bookSST:!0,type:"binary"})),"application/octet-stream")}},html:function(t,i,o){this.modExists("export",!0)&&o(this.modules.export.genereateHTMLTable(t),"text/html")}},k.prototype.registerModule("download",D);var O=function(t){this.table=t,this.currentCell=!1,this.mouseClick=!1,this.recursionBlock=!1,this.invalidEdit=!1,this.editedCells=[]};O.prototype.initializeColumn=function(t){var i=this,o={editor:!1,blocked:!1,check:t.definition.editable,params:t.definition.editorParams||{}};switch(l(t.definition.editor)){case"string":"tick"===t.definition.editor&&(t.definition.editor="tickCross",console.warn("DEPRECATION WARNING - the tick editor has been deprecated, please use the tickCross editor")),i.editors[t.definition.editor]?o.editor=i.editors[t.definition.editor]:console.warn("Editor Error - No such editor found: ",t.definition.editor);break;case"function":o.editor=t.definition.editor;break;case"boolean":!0===t.definition.editor&&("function"!=typeof t.definition.formatter?("tick"===t.definition.formatter&&(t.definition.formatter="tickCross",console.warn("DEPRECATION WARNING - the tick editor has been deprecated, please use the tickCross editor")),o.editor=i.editors[t.definition.formatter]?i.editors[t.definition.formatter]:i.editors.input):console.warn("Editor Error - Cannot auto lookup editor for a custom formatter: ",t.definition.formatter))}o.editor&&(t.modules.edit=o)},O.prototype.getCurrentCell=function(){return!!this.currentCell&&this.currentCell.getComponent()},O.prototype.clearEditor=function(t){var i,o=this.currentCell;if(this.invalidEdit=!1,o){for(this.currentCell=!1,i=o.getElement(),t?o.validate():i.classList.remove("tabulator-validation-fail"),i.classList.remove("tabulator-editing");i.firstChild;)i.removeChild(i.firstChild);o.row.getElement().classList.remove("tabulator-row-editing")}},O.prototype.cancelEdit=function(){if(this.currentCell){var t=this.currentCell,i=this.currentCell.getComponent();this.clearEditor(!0),t.setValueActual(t.getValue()),t.cellRendered(),("textarea"==t.column.definition.editor||t.column.definition.variableHeight)&&t.row.normalizeHeight(!0),t.column.cellEvents.cellEditCancelled&&t.column.cellEvents.cellEditCancelled.call(this.table,i),this.table.options.cellEditCancelled.call(this.table,i)}},O.prototype.bindEditor=function(t){var i=this,o=t.getElement(!0);o.setAttribute("tabindex",0),o.addEventListener("click",(function(){o.classList.contains("tabulator-editing")||o.focus({preventScroll:!0})})),o.addEventListener("mousedown",(function(t){2===t.button?t.preventDefault():i.mouseClick=!0})),o.addEventListener("focus",(function(o){i.recursionBlock||i.edit(t,o,!1)}))},O.prototype.focusCellNoEvent=function(t,i){this.recursionBlock=!0,i&&"ie"===this.table.browser||t.getElement().focus({preventScroll:!0}),this.recursionBlock=!1},O.prototype.editCell=function(t,i){this.focusCellNoEvent(t),this.edit(t,!1,i)},O.prototype.focusScrollAdjust=function(t){if("virtual"==this.table.rowManager.getRenderMode()){var i=this.table.rowManager.element.scrollTop,o=this.table.rowManager.element.clientHeight+this.table.rowManager.element.scrollTop,n=t.row.getElement();n.offsetTop<i?this.table.rowManager.element.scrollTop-=i-n.offsetTop:n.offsetTop+n.offsetHeight>o&&(this.table.rowManager.element.scrollTop+=n.offsetTop+n.offsetHeight-o);var r=this.table.rowManager.element.scrollLeft,e=this.table.rowManager.element.clientWidth+this.table.rowManager.element.scrollLeft,s=t.getElement();this.table.modExists("frozenColumns")&&(r+=parseInt(this.table.modules.frozenColumns.leftMargin),e-=parseInt(this.table.modules.frozenColumns.rightMargin)),this.table.options.virtualDomHoz&&(r-=parseInt(this.table.vdomHoz.vDomPadLeft),e-=parseInt(this.table.vdomHoz.vDomPadLeft)),s.offsetLeft<r?this.table.rowManager.element.scrollLeft-=r-s.offsetLeft:s.offsetLeft+s.offsetWidth>e&&(this.table.rowManager.element.scrollLeft+=s.offsetLeft+s.offsetWidth-e)}},O.prototype.edit=function(t,i,o){var n,r,e,s=this,a=!0,h=function(){},u=t.getElement();if(!this.currentCell){if(t.column.modules.edit.blocked)return this.mouseClick=!1,u.blur(),!1;switch(i&&i.stopPropagation(),l(t.column.modules.edit.check)){case"function":a=t.column.modules.edit.check(t.getComponent());break;case"boolean":a=t.column.modules.edit.check}if(a||o){if(s.cancelEdit(),s.currentCell=t,this.focusScrollAdjust(t),r=t.getComponent(),this.mouseClick&&(this.mouseClick=!1,t.column.cellEvents.cellClick&&t.column.cellEvents.cellClick.call(this.table,i,r)),t.column.cellEvents.cellEditing&&t.column.cellEvents.cellEditing.call(this.table,r),s.table.options.cellEditing.call(this.table,r),e="function"==typeof t.column.modules.edit.params?t.column.modules.edit.params(r):t.column.modules.edit.params,!1===(n=t.column.modules.edit.editor.call(s,r,(function(t){h=t}),(function(i){if(s.currentCell===t){var o=!0;return t.column.modules.validate&&s.table.modExists("validate")&&"manual"!=s.table.options.validationMode&&(o=s.table.modules.validate.validate(t.column.modules.validate,t,i)),!0===o||"highlight"===s.table.options.validationMode?(s.clearEditor(),t.modules.edit||(t.modules.edit={}),t.modules.edit.edited=!0,-1==s.editedCells.indexOf(t)&&s.editedCells.push(t),t.setValue(i,!0),s.table.options.dataTree&&s.table.modExists("dataTree")&&s.table.modules.dataTree.checkForRestyle(t),!0===o||(u.classList.add("tabulator-validation-fail"),s.table.options.validationFailed.call(s.table,t.getComponent(),i,o),!1)):(s.invalidEdit=!0,u.classList.add("tabulator-validation-fail"),s.focusCellNoEvent(t,!0),h(),s.table.options.validationFailed.call(s.table,t.getComponent(),i,o),!1)}}),(function(){s.currentCell===t&&(s.cancelEdit(),s.table.options.dataTree&&s.table.modExists("dataTree")&&s.table.modules.dataTree.checkForRestyle(t))}),e)))return u.blur(),!1;if(!(n instanceof Node))return console.warn("Edit Error - Editor should return an instance of Node, the editor returned:",n),u.blur(),!1;for(u.classList.add("tabulator-editing"),t.row.getElement().classList.add("tabulator-row-editing");u.firstChild;)u.removeChild(u.firstChild);u.appendChild(n),h();for(var c=u.children,f=0;f<c.length;f++)c[f].addEventListener("click",(function(t){t.stopPropagation()}));return!0}return this.mouseClick=!1,u.blur(),!1}this.invalidEdit||this.cancelEdit()},O.prototype.maskInput=function(t,i){var o=i.mask,n=void 0!==i.maskLetterChar?i.maskLetterChar:"A",r=void 0!==i.maskNumberChar?i.maskNumberChar:"9",e=void 0!==i.maskWildcardChar?i.maskWildcardChar:"*";function s(i){var a=o[i];void 0!==a&&a!==e&&a!==n&&a!==r&&(t.value=t.value+""+a,s(i+1))}t.addEventListener("keydown",(function(i){var s=t.value.length,a=i.key;if(i.keyCode>46){if(s>=o.length)return i.preventDefault(),i.stopPropagation(),!1;switch(o[s]){case n:if(a.toUpperCase()==a.toLowerCase())return i.preventDefault(),i.stopPropagation(),!1;break;case r:if(isNaN(a))return i.preventDefault(),i.stopPropagation(),!1;break;case e:break;default:if(a!==o[s])return i.preventDefault(),i.stopPropagation(),!1}}})),t.addEventListener("keyup",(function(o){o.keyCode>46&&i.maskAutoFill&&s(t.value.length)})),t.placeholder||(t.placeholder=o),i.maskAutoFill&&s(t.value.length)},O.prototype.getEditedCells=function(){var t=[];return this.editedCells.forEach((function(i){t.push(i.getComponent())})),t},O.prototype.clearEdited=function(t){var i;t.modules.edit&&t.modules.edit.edited&&(t.modules.edit.edited=!1,t.modules.validate&&(t.modules.validate.invalid=!1)),(i=this.editedCells.indexOf(t))>-1&&this.editedCells.splice(i,1)},O.prototype.editors={input:function(t,i,o,n,r){var e=t.getValue(),s=document.createElement("input");if(s.setAttribute("type",r.search?"search":"text"),s.style.padding="4px",s.style.width="100%",s.style.boxSizing="border-box",r.elementAttributes&&"object"==l(r.elementAttributes))for(var a in r.elementAttributes)"+"==a.charAt(0)?(a=a.slice(1),s.setAttribute(a,s.getAttribute(a)+r.elementAttributes["+"+a])):s.setAttribute(a,r.elementAttributes[a]);function h(){null==e&&""!==s.value||s.value!==e?o(s.value)&&(e=s.value):n()}return s.value=void 0!==e?e:"",i((function(){s.focus({preventScroll:!0}),s.style.height="100%"})),s.addEventListener("change",h),s.addEventListener("blur",h),s.addEventListener("keydown",(function(t){switch(t.keyCode){case 13:h();break;case 27:n();break;case 35:case 36:t.stopPropagation()}})),r.mask&&this.table.modules.edit.maskInput(s,r),s},textarea:function(t,i,o,n,r){var e=t.getValue(),s=r.verticalNavigation||"hybrid",a=String(null!=e?e:"");a.match(/(?:\r\n|\r|\n)/g);var h=document.createElement("textarea"),u=0;if(h.style.display="block",h.style.padding="2px",h.style.height="100%",h.style.width="100%",h.style.boxSizing="border-box",h.style.whiteSpace="pre-wrap",h.style.resize="none",r.elementAttributes&&"object"==l(r.elementAttributes))for(var c in r.elementAttributes)"+"==c.charAt(0)?(c=c.slice(1),h.setAttribute(c,h.getAttribute(c)+r.elementAttributes["+"+c])):h.setAttribute(c,r.elementAttributes[c]);function f(){null==e&&""!==h.value||h.value!==e?(o(h.value)&&(e=h.value),setTimeout((function(){t.getRow().normalizeHeight()}),300)):n()}return h.value=a,i((function(){h.focus({preventScroll:!0}),h.style.height="100%",h.style.height=h.scrollHeight+"px",t.getRow().normalizeHeight()})),h.addEventListener("change",f),h.addEventListener("blur",f),h.addEventListener("keyup",(function(){h.style.height="";var i=h.scrollHeight;h.style.height=i+"px",i!=u&&(u=i,t.getRow().normalizeHeight())})),h.addEventListener("keydown",(function(t){switch(t.keyCode){case 27:n();break;case 38:("editor"==s||"hybrid"==s&&h.selectionStart)&&(t.stopImmediatePropagation(),t.stopPropagation());break;case 40:("editor"==s||"hybrid"==s&&h.selectionStart!==h.value.length)&&(t.stopImmediatePropagation(),t.stopPropagation());break;case 35:case 36:t.stopPropagation()}})),r.mask&&this.table.modules.edit.maskInput(h,r),h},number:function(t,i,o,n,r){var e=t.getValue(),s=r.verticalNavigation||"editor",a=document.createElement("input");if(a.setAttribute("type","number"),void 0!==r.max&&a.setAttribute("max",r.max),void 0!==r.min&&a.setAttribute("min",r.min),void 0!==r.step&&a.setAttribute("step",r.step),a.style.padding="4px",a.style.width="100%",a.style.boxSizing="border-box",r.elementAttributes&&"object"==l(r.elementAttributes))for(var h in r.elementAttributes)"+"==h.charAt(0)?(h=h.slice(1),a.setAttribute(h,a.getAttribute(h)+r.elementAttributes["+"+h])):a.setAttribute(h,r.elementAttributes[h]);a.value=e;var u=function(){c()};function c(){var t=a.value;isNaN(t)||""===t||(t=Number(t)),t!==e?o(t)&&(e=t):n()}return i((function(){a.removeEventListener("blur",u),a.focus({preventScroll:!0}),a.style.height="100%",a.addEventListener("blur",u)})),a.addEventListener("keydown",(function(t){switch(t.keyCode){case 13:c();break;case 27:n();break;case 38:case 40:"editor"==s&&(t.stopImmediatePropagation(),t.stopPropagation());break;case 35:case 36:t.stopPropagation()}})),r.mask&&this.table.modules.edit.maskInput(a,r),a},range:function(t,i,o,n,r){var e=t.getValue(),s=document.createElement("input");if(s.setAttribute("type","range"),void 0!==r.max&&s.setAttribute("max",r.max),void 0!==r.min&&s.setAttribute("min",r.min),void 0!==r.step&&s.setAttribute("step",r.step),s.style.padding="4px",s.style.width="100%",s.style.boxSizing="border-box",r.elementAttributes&&"object"==l(r.elementAttributes))for(var a in r.elementAttributes)"+"==a.charAt(0)?(a=a.slice(1),s.setAttribute(a,s.getAttribute(a)+r.elementAttributes["+"+a])):s.setAttribute(a,r.elementAttributes[a]);function h(){var t=s.value;isNaN(t)||""===t||(t=Number(t)),t!=e?o(t)&&(e=t):n()}return s.value=e,i((function(){s.focus({preventScroll:!0}),s.style.height="100%"})),s.addEventListener("blur",(function(){h()})),s.addEventListener("keydown",(function(t){switch(t.keyCode){case 13:h();break;case 27:n()}})),s},select:function(t,i,o,n,r){var e=this,s=this,a=t.getElement(),h=t.getValue(),u=r.verticalNavigation||"editor",c=void 0!==h||null===h?Array.isArray(h)?h:[h]:void 0!==r.defaultValue?r.defaultValue:[],f=document.createElement("input"),d=document.createElement("div"),b=r.multiselect,p=[],v={},m=[],g=[],w=!0,x=!1,y="",C=null;function E(i){var o,n={},r=s.table.getData();return(o=i?s.table.columnManager.getColumnByField(i):t.getColumn()._getSelf())?r.forEach((function(t){var i=o.getFieldValue(t);null!=i&&""!==i&&(n[i]=!0)})):console.warn("unable to find matching column to create select lookup list:",i),Object.keys(n)}function j(t,i){!b&&v&&v.element&&v.element.classList.remove("active"),v&&v.element&&v.element.classList.remove("focused"),v=t,t.element&&(t.element.classList.add("focused"),i&&t.element.classList.add("active")),t&&t.element&&t.element.scrollIntoView&&t.element.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})}function z(t){-1==g.indexOf(t)&&(g.push(t),j(t,!0)),M()}function T(t){var i=g[t];t>-1&&(g.splice(t,1),i.element&&i.element.classList.remove("active"))}function S(t){t||(t=v);var i=g.indexOf(t);i>-1?T(i):(!0!==b&&g.length>=b&&T(0),z(t)),M()}function R(t){O(),t||(t=v),t&&(f.value=t.label,o(t.value)),c=[t.value]}function N(t){t||O();var i=[];g.forEach((function(t){i.push(t.value)})),c=i,o(i)}function M(){var t=[];g.forEach((function(i){t.push(i.label)})),f.value=t.join(", "),!1===s.currentCell&&N(!0)}function D(){O(),n()}function O(){d.parentNode&&d.parentNode.removeChild(d),s.table.rowManager.element.removeEventListener("scroll",D)}if((Array.isArray(r)||!Array.isArray(r)&&"object"===(void 0===r?"undefined":l(r))&&!r.values)&&(console.warn("DEPRECATION WARNING - values for the select editor must now be passed into the values property of the editorParams object, not as the editorParams object"),r={values:r}),f.setAttribute("type","text"),f.style.padding="4px",f.style.width="100%",f.style.boxSizing="border-box",f.style.cursor="default",f.readOnly=0!=this.currentCell,r.elementAttributes&&"object"==l(r.elementAttributes))for(var P in r.elementAttributes)"+"==P.charAt(0)?(P=P.slice(1),f.setAttribute(P,f.getAttribute(P)+r.elementAttributes["+"+P])):f.setAttribute(P,r.elementAttributes[P]);return f.value=void 0!==h||null===h?h:"",f.addEventListener("search",(function(){f.value||(function(){for(var t=g.length,i=0;i<t;i++)T(0)}(),N())})),f.addEventListener("keydown",(function(t){var i;switch(t.keyCode){case 38:i=p.indexOf(v),("editor"==u||"hybrid"==u&&i)&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault(),i>0&&j(p[i-1],!b));break;case 40:i=p.indexOf(v),("editor"==u||"hybrid"==u&&i<p.length-1)&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault(),i<p.length-1&&j(-1==i?p[0]:p[i+1],!b));break;case 37:case 39:t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault();break;case 13:b?S():R();break;case 27:D();break;case 9:break;default:!1===s.currentCell&&t.preventDefault(),t.keyCode>=38&&t.keyCode<=90&&function(){clearTimeout(C);var t=String.fromCharCode(event.keyCode).toLowerCase();y+=t.toLowerCase();var i=p.find((function(t){return void 0!==t.label&&t.label.toLowerCase().startsWith(y)}));i&&j(i,!b),C=setTimeout((function(){y=""}),800)}()}})),f.addEventListener("blur",(function(){w&&(b?N():D())})),f.addEventListener("focus",(function(){x||function(){if(g=[],!d.parentNode){!function(i,o){var n=[],e=[];function s(t){return o.indexOf((t={label:t.label,value:t.value,itemParams:t.itemParams,elementAttributes:t.elementAttributes,element:!1}).value)>-1&&z(t),n.push(t),e.push(t),t}if("function"==typeof i&&(i=i(t)),Array.isArray(i))i.forEach((function(t){var i;"object"===(void 0===t?"undefined":l(t))?t.options?(e.push(i={label:t.label,group:!0,itemParams:t.itemParams,elementAttributes:t.elementAttributes,element:!1}),t.options.forEach((function(t){s(t)}))):s(t):(o.indexOf((i={label:t,value:t,element:!1}).value)>-1&&z(i),n.push(i),e.push(i))}));else for(var a in i){var h={label:i[a],value:a,element:!1};o.indexOf(h.value)>-1&&z(h),n.push(h),e.push(h)}r.sortValuesList&&(n.sort((function(t,i){return t.label<i.label?-1:t.label>i.label?1:0})),e.sort((function(t,i){return t.label<i.label?-1:t.label>i.label?1:0})),"asc"!==r.sortValuesList&&(n.reverse(),e.reverse())),p=n,m=e,function(){for(;d.firstChild;)d.removeChild(d.firstChild);m.forEach((function(i){var o=i.element;if(!o){if(o=document.createElement("div"),i.label=r.listItemFormatter?r.listItemFormatter(i.value,i.label,t,o,i.itemParams):i.label,i.group?(o.classList.add("tabulator-edit-select-list-group"),o.tabIndex=0,o.innerHTML=""===i.label?" ":i.label):(o.classList.add("tabulator-edit-select-list-item"),o.tabIndex=0,o.innerHTML=""===i.label?" ":i.label,o.addEventListener("click",(function(){x=!0,setTimeout((function(){x=!1}),10),b?(S(i),f.focus()):R(i)})),g.indexOf(i)>-1&&o.classList.add("active")),i.elementAttributes&&"object"==l(i.elementAttributes))for(var n in i.elementAttributes)"+"==n.charAt(0)?(n=n.slice(1),o.setAttribute(n,f.getAttribute(n)+i.elementAttributes["+"+n])):o.setAttribute(n,i.elementAttributes[n]);o.addEventListener("mousedown",(function(){w=!1,setTimeout((function(){w=!0}),10)})),i.element=o}d.appendChild(o)}))}()}(!0===r.values?E():"string"==typeof r.values?E(r.values):r.values||[],c);var i=k.prototype.helpers.elOffset(a);d.style.minWidth=a.offsetWidth+"px",d.style.top=i.top+a.offsetHeight+"px",d.style.left=i.left+"px",d.addEventListener("mousedown",(function(){w=!1,setTimeout((function(){w=!0}),10)})),document.body.appendChild(d)}}()})),(d=document.createElement("div")).classList.add("tabulator-edit-select-list"),i((function(){f.style.height="100%",f.focus({preventScroll:!0})})),setTimeout((function(){e.table.rowManager.element.addEventListener("scroll",D)}),10),f},autocomplete:function(t,i,o,n,r){var e=this,s=this,a=t.getElement(),h=t.getValue(),u=r.verticalNavigation||"editor",c=void 0!==h||null===h?h:void 0!==r.defaultValue?r.defaultValue:"",f=document.createElement("input"),d=document.createElement("div"),b=[],p=!1,v=!0,m=!1;if(f.setAttribute("type","search"),f.style.padding="4px",f.style.width="100%",f.style.boxSizing="border-box",r.elementAttributes&&"object"==l(r.elementAttributes))for(var g in r.elementAttributes)"+"==g.charAt(0)?(g=g.slice(1),f.setAttribute(g,f.getAttribute(g)+r.elementAttributes["+"+g])):f.setAttribute(g,r.elementAttributes[g]);function w(){!0===r.values?m=x():"string"==typeof r.values&&(m=x(r.values))}function x(i){var o,n={},e=s.table.getData();return(o=i?s.table.columnManager.getColumnByField(i):t.getColumn()._getSelf())?(e.forEach((function(t){var i=o.getFieldValue(t);null!=i&&""!==i&&(n[i]=!0)})),n=r.sortValuesList?"asc"==r.sortValuesList?Object.keys(n).sort():Object.keys(n).sort().reverse():Object.keys(n)):console.warn("unable to find matching column to create autocomplete lookup list:",i),n}function y(t,i){var o,n,e=[];o=m||r.values||[],r.searchFunc?(e=r.searchFunc(t,o))instanceof Promise?(C(void 0!==r.searchingPlaceholder?r.searchingPlaceholder:"Searching..."),e.then((function(t){z(E(t),i)})).catch((function(t){console.err("error in autocomplete search promise:",t)}))):z(E(e),i):(n=E(o),""===t?r.showListOnEmpty&&(e=n):n.forEach((function(i){null===i.value&&void 0===i.value||(String(i.value).toLowerCase().indexOf(String(t).toLowerCase())>-1||String(i.title).toLowerCase().indexOf(String(t).toLowerCase())>-1)&&e.push(i)})),z(e,i))}function C(t){var i=document.createElement("div");j(),!1!==t&&(i.classList.add("tabulator-edit-select-list-notice"),i.tabIndex=0,t instanceof Node?i.appendChild(t):i.innerHTML=t,d.appendChild(i))}function E(t){var i=[];if(Array.isArray(t))t.forEach((function(t){var o={};"object"===(void 0===t?"undefined":l(t))?(o.title=r.listItemFormatter?r.listItemFormatter(t.value,t.label):t.label,o.value=t.value):(o.title=r.listItemFormatter?r.listItemFormatter(t,t):t,o.value=t),i.push(o)}));else for(var o in t){var n={title:r.listItemFormatter?r.listItemFormatter(o,t[o]):t[o],value:o};i.push(n)}return i}function j(){for(;d.firstChild;)d.removeChild(d.firstChild)}function z(t,i){t.length?function(t,i){var o=!1;j(),(b=t).forEach((function(t){var n=t.element;n||((n=document.createElement("div")).classList.add("tabulator-edit-select-list-item"),n.tabIndex=0,n.innerHTML=t.title,n.addEventListener("click",(function(){S(t),T()})),n.addEventListener("mousedown",(function(){v=!1,setTimeout((function(){v=!0}),10)})),t.element=n,i&&t.value==h&&(f.value=t.title,t.element.classList.add("active"),o=!0),t===p&&(t.element.classList.add("active"),o=!0)),d.appendChild(n)})),o||S(!1)}(t,i):r.emptyPlaceholder&&C(r.emptyPlaceholder)}function T(){R(),p?h!==p.value?(h=p.value,f.value=p.title,o(p.value)):n():r.freetext||r.allowEmpty&&""===f.value?(h=f.value,o(f.value)):n()}function S(t){p&&p.element&&p.element.classList.remove("active"),p=t,t&&t.element&&t.element.classList.add("active"),t&&t.element&&t.element.scrollIntoView&&t.element.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})}function R(){d.parentNode&&d.parentNode.removeChild(d),s.table.rowManager.element.removeEventListener("scroll",N)}function N(){R(),n()}return d.classList.add("tabulator-edit-select-list"),d.addEventListener("mousedown",(function(){v=!1,setTimeout((function(){v=!0}),10)})),f.addEventListener("keydown",(function(t){var i;switch(t.keyCode){case 38:i=b.indexOf(p),("editor"==u||"hybrid"==u&&i)&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault(),S(i>0&&b[i-1]));break;case 40:i=b.indexOf(p),("editor"==u||"hybrid"==u&&i<b.length-1)&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault(),i<b.length-1&&S(-1==i?b[0]:b[i+1]));break;case 37:case 39:t.stopImmediatePropagation(),t.stopPropagation();break;case 13:T();break;case 27:N();break;case 36:case 35:t.stopImmediatePropagation()}})),f.addEventListener("keyup",(function(t){switch(t.keyCode){case 38:case 37:case 39:case 40:case 13:case 27:break;default:y(f.value)}})),f.addEventListener("search",(function(){y(f.value)})),f.addEventListener("blur",(function(){v&&T()})),f.addEventListener("focus",(function(){var t=c;w(),function(){if(!d.parentNode){for(console.log("show",c);d.firstChild;)d.removeChild(d.firstChild);var t=k.prototype.helpers.elOffset(a);d.style.minWidth=a.offsetWidth+"px",d.style.top=t.top+a.offsetHeight+"px",d.style.left=t.left+"px",document.body.appendChild(d)}}(),f.value=t,y(t,!0)})),i((function(){f.style.height="100%",f.focus({preventScroll:!0})})),r.mask&&this.table.modules.edit.maskInput(f,r),setTimeout((function(){e.table.rowManager.element.addEventListener("scroll",N)}),10),w(),f.value=c,y(c,!0),f},star:function(t,i,o,n,r){var e=this,s=t.getElement(),a=t.getValue(),h=s.getElementsByTagName("svg").length||5,u=s.getElementsByTagName("svg")[0]?s.getElementsByTagName("svg")[0].getAttribute("width"):14,c=[],f=document.createElement("div"),d=document.createElementNS("http://www.w3.org/2000/svg","svg");function b(t){c.forEach((function(i,o){o<t?("ie"==e.table.browser?i.setAttribute("class","tabulator-star-active"):i.classList.replace("tabulator-star-inactive","tabulator-star-active"),i.innerHTML='<polygon fill="#488CE9" stroke="#014AAE" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>'):("ie"==e.table.browser?i.setAttribute("class","tabulator-star-inactive"):i.classList.replace("tabulator-star-active","tabulator-star-inactive"),i.innerHTML='<polygon fill="#010155" stroke="#686868" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>')}))}function p(t){var i=document.createElement("span"),n=d.cloneNode(!0);c.push(n),i.addEventListener("mouseenter",(function(i){i.stopPropagation(),i.stopImmediatePropagation(),b(t)})),i.addEventListener("mousemove",(function(t){t.stopPropagation(),t.stopImmediatePropagation()})),i.addEventListener("click",(function(i){i.stopPropagation(),i.stopImmediatePropagation(),o(t),s.blur()})),i.appendChild(n),f.appendChild(i)}function v(t){a=t,b(t)}if(s.style.whiteSpace="nowrap",s.style.overflow="hidden",s.style.textOverflow="ellipsis",f.style.verticalAlign="middle",f.style.display="inline-block",f.style.padding="4px",d.setAttribute("width",u),d.setAttribute("height",u),d.setAttribute("viewBox","0 0 512 512"),d.setAttribute("xml:space","preserve"),d.style.padding="0 1px",r.elementAttributes&&"object"==l(r.elementAttributes))for(var m in r.elementAttributes)"+"==m.charAt(0)?(m=m.slice(1),f.setAttribute(m,f.getAttribute(m)+r.elementAttributes["+"+m])):f.setAttribute(m,r.elementAttributes[m]);for(var g=1;g<=h;g++)p(g);return b(a=Math.min(parseInt(a),h)),f.addEventListener("mousemove",(function(){b(0)})),f.addEventListener("click",(function(){o(0)})),s.addEventListener("blur",(function(){n()})),s.addEventListener("keydown",(function(t){switch(t.keyCode){case 39:v(a+1);break;case 37:v(a-1);break;case 13:o(a);break;case 27:n()}})),f},progress:function(t,i,o,n,r){var e,s,a=t.getElement(),h=void 0===r.max?a.getElementsByTagName("div")[0].getAttribute("max")||100:r.max,u=void 0===r.min?a.getElementsByTagName("div")[0].getAttribute("min")||0:r.min,c=(h-u)/100,f=t.getValue()||0,d=document.createElement("div"),b=document.createElement("div");function p(){var t=window.getComputedStyle(a,null),i=c*Math.round(b.offsetWidth/((a.clientWidth-parseInt(t.getPropertyValue("padding-left"))-parseInt(t.getPropertyValue("padding-right")))/100))+u;o(i),a.setAttribute("aria-valuenow",i),a.setAttribute("aria-label",f)}if(d.style.position="absolute",d.style.right="0",d.style.top="0",d.style.bottom="0",d.style.width="5px",d.classList.add("tabulator-progress-handle"),b.style.display="inline-block",b.style.position="relative",b.style.height="100%",b.style.backgroundColor="#488CE9",b.style.maxWidth="100%",b.style.minWidth="0%",r.elementAttributes&&"object"==l(r.elementAttributes))for(var v in r.elementAttributes)"+"==v.charAt(0)?(v=v.slice(1),b.setAttribute(v,b.getAttribute(v)+r.elementAttributes["+"+v])):b.setAttribute(v,r.elementAttributes[v]);return a.style.padding="4px 4px",f=Math.min(parseFloat(f),h),f=Math.max(parseFloat(f),u),f=Math.round((f-u)/c),b.style.width=f+"%",a.setAttribute("aria-valuemin",u),a.setAttribute("aria-valuemax",h),b.appendChild(d),d.addEventListener("mousedown",(function(t){e=t.screenX,s=b.offsetWidth})),d.addEventListener("mouseover",(function(){d.style.cursor="ew-resize"})),a.addEventListener("mousemove",(function(t){e&&(b.style.width=s+t.screenX-e+"px")})),a.addEventListener("mouseup",(function(t){e&&(t.stopPropagation(),t.stopImmediatePropagation(),e=!1,s=!1,p())})),a.addEventListener("keydown",(function(t){switch(t.keyCode){case 39:t.preventDefault(),b.style.width=b.clientWidth+a.clientWidth/100+"px";break;case 37:t.preventDefault(),b.style.width=b.clientWidth-a.clientWidth/100+"px";break;case 9:case 13:p();break;case 27:n()}})),a.addEventListener("blur",(function(){n()})),b},tickCross:function(t,i,o,n,r){var e=t.getValue(),s=document.createElement("input"),a=r.tristate,h=void 0===r.indeterminateValue?null:r.indeterminateValue,u=!1;if(s.setAttribute("type","checkbox"),s.style.marginTop="5px",s.style.boxSizing="border-box",r.elementAttributes&&"object"==l(r.elementAttributes))for(var c in r.elementAttributes)"+"==c.charAt(0)?(c=c.slice(1),s.setAttribute(c,s.getAttribute(c)+r.elementAttributes["+"+c])):s.setAttribute(c,r.elementAttributes[c]);function f(t){return a?t?u?h:s.checked:s.checked&&!u?(s.checked=!1,s.indeterminate=!0,u=!0,h):(u=!1,s.checked):s.checked}return s.value=e,!a||void 0!==e&&e!==h&&""!==e||(u=!0,s.indeterminate=!0),"firefox"!=this.table.browser&&i((function(){s.focus({preventScroll:!0})})),s.checked=!0===e||"true"===e||"True"===e||1===e,i((function(){s.focus()})),s.addEventListener("change",(function(){o(f())})),s.addEventListener("blur",(function(){o(f(!0))})),s.addEventListener("keydown",(function(t){13==t.keyCode&&o(f()),27==t.keyCode&&n()})),s}},k.prototype.registerModule("edit",O);var P=function(t,i,o,n){this.type=t,this.columns=i,this.component=o||!1,this.indent=n||0},F=function(t,i,o,n,r){this.value=t,this.component=i||!1,this.width=o,this.height=n,this.depth=r},A=function(t){this.table=t,this.config={},this.cloneTableStyle=!0,this.colVisProp=""};A.prototype.generateExportList=function(t,i,o,n){this.cloneTableStyle=i,this.config=t||{},this.colVisProp=n;var r=!1!==this.config.columnHeaders?this.headersToExportRows(this.generateColumnGroupHeaders()):[],e=this.bodyToExportRows(this.rowLookup(o));return r.concat(e)},A.prototype.genereateTable=function(t,i,o,n){var r=this.generateExportList(t,i,o,n);return this.genereateTableElement(r)},A.prototype.rowLookup=function(t){var i=this,o=[];if("function"==typeof t)t.call(this.table).forEach((function(t){(t=i.table.rowManager.findRow(t))&&o.push(t)}));else switch(t){case!0:case"visible":o=this.table.rowManager.getVisibleRows(!0);break;case"all":o=this.table.rowManager.rows;break;case"selected":o=this.table.modules.selectRow.selectedRows;break;case"active":default:o=this.table.options.pagination?this.table.rowManager.getDisplayRows(this.table.rowManager.displayRows.length-2):this.table.rowManager.getDisplayRows()}return Object.assign([],o)},A.prototype.generateColumnGroupHeaders=function(){var t=this,i=[];return(!1!==this.config.columnGroups?this.table.columnManager.columns:this.table.columnManager.columnsByIndex).forEach((function(o){var n=t.processColumnGroup(o);n&&i.push(n)})),i},A.prototype.processColumnGroup=function(t){var i=this,o=t.columns,n=0,r={title:t.definition["title"+(this.colVisProp.charAt(0).toUpperCase()+this.colVisProp.slice(1))]||t.definition.title,column:t,depth:1};if(o.length){if(r.subGroups=[],r.width=0,o.forEach((function(t){var o=i.processColumnGroup(t);o&&(r.width+=o.width,r.subGroups.push(o),o.depth>n&&(n=o.depth))})),r.depth+=n,!r.width)return!1}else{if(!this.columnVisCheck(t))return!1;r.width=1}return r},A.prototype.columnVisCheck=function(t){return!1!==t.definition[this.colVisProp]&&(t.visible||!t.visible&&t.definition[this.colVisProp])},A.prototype.headersToExportRows=function(t){var i=[],o=0,n=[];function r(t,n){var e=o-n;if(void 0===i[n]&&(i[n]=[]),t.height=t.subGroups?1:e-t.depth+1,i[n].push(t),t.height>1)for(var s=1;s<t.height;s++)void 0===i[n+s]&&(i[n+s]=[]),i[n+s].push(!1);if(t.width>1)for(var a=1;a<t.width;a++)i[n].push(!1);t.subGroups&&t.subGroups.forEach((function(t){r(t,n+1)}))}return t.forEach((function(t){t.depth>o&&(o=t.depth)})),t.forEach((function(t){r(t,0)})),i.forEach((function(t){var i=[];t.forEach((function(t){i.push(t?new F(t.title,t.column.getComponent(),t.width,t.height,t.depth):null)})),n.push(new P("header",i))})),n},A.prototype.bodyToExportRows=function(t){var i=this,o=[],n=[];return this.table.columnManager.columnsByIndex.forEach((function(t){i.columnVisCheck(t)&&o.push(t.getComponent())})),!1!==this.config.columnCalcs&&this.table.modExists("columnCalcs")&&(this.table.modules.columnCalcs.topInitialized&&t.unshift(this.table.modules.columnCalcs.topRow),this.table.modules.columnCalcs.botInitialized&&t.push(this.table.modules.columnCalcs.botRow)),(t=t.filter((function(t){switch(t.type){case"group":return!1!==i.config.rowGroups;case"calc":return!1!==i.config.columnCalcs;case"row":return!(i.table.options.dataTree&&!1===i.config.dataTree&&t.modules.dataTree.parent)}return!0}))).forEach((function(t){var r=t.getData(i.colVisProp),e=[],s=0;switch(t.type){case"group":s=t.level,e.push(new F(t.key,t.getComponent(),o.length,1));break;case"calc":case"row":o.forEach((function(t){e.push(new F(t._column.getFieldValue(r),t,1,1))})),i.table.options.dataTree&&!1!==i.config.dataTree&&(s=t.modules.dataTree.index)}n.push(new P(t.type,e,t.getComponent(),s))})),n},A.prototype.genereateTableElement=function(t){var i=this,o=document.createElement("table"),n=document.createElement("thead"),r=document.createElement("tbody"),e=this.lookupTableStyles(),s=this.table.options["rowFormatter"+(this.colVisProp.charAt(0).toUpperCase()+this.colVisProp.slice(1))],a={};return a.rowFormatter=null!==s?s:this.table.options.rowFormatter,this.table.options.dataTree&&!1!==this.config.dataTree&&this.table.modExists("columnCalcs")&&(a.treeElementField=this.table.modules.dataTree.elementField),a.groupHeader=this.table.options["groupHeader"+(this.colVisProp.charAt(0).toUpperCase()+this.colVisProp.slice(1))],a.groupHeader&&!Array.isArray(a.groupHeader)&&(a.groupHeader=[a.groupHeader]),o.classList.add("tabulator-print-table"),this.mapElementStyles(this.table.columnManager.getHeadersElement(),n,["border-top","border-left","border-right","border-bottom","background-color","color","font-weight","font-family","font-size"]),t.length>1e3&&console.warn("It may take a long time to render an HTML table with more than 1000 rows"),t.forEach((function(t,o){switch(t.type){case"header":n.appendChild(i.genereateHeaderElement(t,a,e));break;case"group":r.appendChild(i.genereateGroupElement(t,a,e));break;case"calc":r.appendChild(i.genereateCalcElement(t,a,e));break;case"row":var s=i.genereateRowElement(t,a,e);i.mapElementStyles(o%2&&e.evenRow?e.evenRow:e.oddRow,s,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),r.appendChild(s)}})),n.innerHTML&&o.appendChild(n),o.appendChild(r),this.mapElementStyles(this.table.element,o,["border-top","border-left","border-right","border-bottom"]),o},A.prototype.lookupTableStyles=function(){var t={};return this.cloneTableStyle&&window.getComputedStyle&&(t.oddRow=this.table.element.querySelector(".tabulator-row-odd:not(.tabulator-group):not(.tabulator-calcs)"),t.evenRow=this.table.element.querySelector(".tabulator-row-even:not(.tabulator-group):not(.tabulator-calcs)"),t.calcRow=this.table.element.querySelector(".tabulator-row.tabulator-calcs"),t.firstRow=this.table.element.querySelector(".tabulator-row:not(.tabulator-group):not(.tabulator-calcs)"),t.firstGroup=this.table.element.getElementsByClassName("tabulator-group")[0],t.firstRow&&(t.styleCells=t.firstRow.getElementsByClassName("tabulator-cell"),t.firstCell=t.styleCells[0],t.lastCell=t.styleCells[t.styleCells.length-1])),t},A.prototype.genereateHeaderElement=function(t){var i=this,o=document.createElement("tr");return t.columns.forEach((function(t){if(t){var n=document.createElement("th"),r=t.component._column.definition.cssClass?t.component._column.definition.cssClass.split(" "):[];n.colSpan=t.width,n.rowSpan=t.height,n.innerHTML=t.value,i.cloneTableStyle&&(n.style.boxSizing="border-box"),r.forEach((function(t){n.classList.add(t)})),i.mapElementStyles(t.component.getElement(),n,["text-align","border-top","border-left","border-right","border-bottom","background-color","color","font-weight","font-family","font-size"]),i.mapElementStyles(t.component._column.contentElement,n,["padding-top","padding-left","padding-right","padding-bottom"]),t.component._column.visible?i.mapElementStyles(t.component.getElement(),n,["width"]):t.component._column.definition.width&&(n.style.width=t.component._column.definition.width+"px"),t.component._column.parent&&i.mapElementStyles(t.component._column.parent.groupElement,n,["border-top"]),o.appendChild(n)}})),o},A.prototype.genereateGroupElement=function(t,i,o){var n=document.createElement("tr"),r=document.createElement("td"),e=t.columns[0];return n.classList.add("tabulator-print-table-row"),e.value=i.groupHeader&&i.groupHeader[t.indent]?i.groupHeader[t.indent](e.value,t.component._group.getRowCount(),t.component._group.getData(),t.component):!1===i.groupHeader?e.value:t.component._group.generator(e.value,t.component._group.getRowCount(),t.component._group.getData(),t.component),r.colSpan=e.width,r.innerHTML=e.value,n.classList.add("tabulator-print-table-group"),n.classList.add("tabulator-group-level-"+t.indent),e.component.isVisible()&&n.classList.add("tabulator-group-visible"),this.mapElementStyles(o.firstGroup,n,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),this.mapElementStyles(o.firstGroup,r,["padding-top","padding-left","padding-right","padding-bottom"]),n.appendChild(r),n},A.prototype.genereateCalcElement=function(t,i,o){var n=this.genereateRowElement(t,i,o);return n.classList.add("tabulator-print-table-calcs"),this.mapElementStyles(o.calcRow,n,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),n},A.prototype.genereateRowElement=function(t,o,n){var r=this,e=document.createElement("tr");return e.classList.add("tabulator-print-table-row"),t.columns.forEach((function(s){if(s){var a=document.createElement("td"),h=s.component._column,u=s.value,c={modules:{},getValue:function(){return u},getField:function(){return h.definition.field},getElement:function(){return a},getColumn:function(){return h.getComponent()},getData:function(){return t.component.getData()},getRow:function(){return t.component},getComponent:function(){return c},column:h};if((h.definition.cssClass?h.definition.cssClass.split(" "):[]).forEach((function(t){a.classList.add(t)})),r.table.modExists("format")&&!1!==r.config.formatCells)u=r.table.modules.format.formatExportValue(c,r.colVisProp);else switch(void 0===u?"undefined":l(u)){case"object":u=JSON.stringify(u);break;case"undefined":case"null":u="";break;default:u=u}u instanceof Node?a.appendChild(u):a.innerHTML=u,n.firstCell&&(r.mapElementStyles(n.firstCell,a,["padding-top","padding-left","padding-right","padding-bottom","border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size"]),h.definition.align&&(a.style.textAlign=h.definition.align)),r.table.options.dataTree&&!1!==r.config.dataTree&&(o.treeElementField&&o.treeElementField==h.field||!o.treeElementField&&0==i)&&(t.component._row.modules.dataTree.controlEl&&a.insertBefore(t.component._row.modules.dataTree.controlEl.cloneNode(!0),a.firstChild),t.component._row.modules.dataTree.branchEl&&a.insertBefore(t.component._row.modules.dataTree.branchEl.cloneNode(!0),a.firstChild)),e.appendChild(a),c.modules.format&&c.modules.format.renderedCallback&&c.modules.format.renderedCallback(),o.rowFormatter&&!1!==r.config.formatCells&&o.rowFormatter(t.component)}})),e},A.prototype.genereateHTMLTable=function(t){var i=document.createElement("div");return i.appendChild(this.genereateTableElement(t)),i.innerHTML},A.prototype.getHtml=function(t,i,o,n){var r=this.generateExportList(o||this.table.options.htmlOutputConfig,i,t,n||"htmlOutput");return this.genereateHTMLTable(r)},A.prototype.mapElementStyles=function(t,i,o){if(this.cloneTableStyle&&t&&i){var n={"background-color":"backgroundColor",color:"fontColor",width:"width","font-weight":"fontWeight","font-family":"fontFamily","font-size":"fontSize","text-align":"textAlign","border-top":"borderTop","border-left":"borderLeft","border-right":"borderRight","border-bottom":"borderBottom","padding-top":"paddingTop","padding-left":"paddingLeft","padding-right":"paddingRight","padding-bottom":"paddingBottom"};if(window.getComputedStyle){var r=window.getComputedStyle(t);o.forEach((function(t){i.style[n[t]]=r.getPropertyValue(t)}))}}},k.prototype.registerModule("export",A);var L=function(t){this.table=t,this.filterList=[],this.headerFilters={},this.headerFilterColumns=[],this.prevHeaderFilterChangeCheck="",this.prevHeaderFilterChangeCheck="{}",this.changed=!1};L.prototype.initializeColumn=function(t){var i=this,o=t.getField();t.modules.filter={success:function(n){var r,e="input"==t.modules.filter.tagType&&"text"==t.modules.filter.attrType||"textarea"==t.modules.filter.tagType?"partial":"match",s="",a="";if(void 0===t.modules.filter.prevSuccess||t.modules.filter.prevSuccess!==n){if(t.modules.filter.prevSuccess=n,t.modules.filter.emptyFunc(n))delete i.headerFilters[o];else{switch(t.modules.filter.value=n,l(t.definition.headerFilterFunc)){case"string":i.filters[t.definition.headerFilterFunc]?(s=t.definition.headerFilterFunc,r=function(o){var r=t.definition.headerFilterFuncParams||{},e=t.getFieldValue(o);return r="function"==typeof r?r(n,e,o):r,i.filters[t.definition.headerFilterFunc](n,e,o,r)}):console.warn("Header Filter Error - Matching filter function not found: ",t.definition.headerFilterFunc);break;case"function":s=r=function(i){var o=t.definition.headerFilterFuncParams||{},r=t.getFieldValue(i);return o="function"==typeof o?o(n,r,i):o,t.definition.headerFilterFunc(n,r,i,o)}}if(!r)switch(e){case"partial":r=function(i){var o=t.getFieldValue(i);return null!=o&&String(o).toLowerCase().indexOf(String(n).toLowerCase())>-1},s="like";break;default:r=function(i){return t.getFieldValue(i)==n},s="="}i.headerFilters[o]={value:n,func:r,type:s,params:{}}}a=JSON.stringify(i.headerFilters),i.prevHeaderFilterChangeCheck!==a&&(i.prevHeaderFilterChangeCheck=a,i.changed=!0,i.table.rowManager.filterRefresh())}return!0},attrType:!1,tagType:!1,emptyFunc:!1},this.generateHeaderFilterElement(t)},L.prototype.generateHeaderFilterElement=function(t,i,o){var n,r,e,s,a,h,u,c=this,f=this,d=t.modules.filter.success,b=t.getField();if(t.modules.filter.headerElement&&t.modules.filter.headerElement.parentNode&&t.contentElement.removeChild(t.modules.filter.headerElement.parentNode),b){switch(t.modules.filter.emptyFunc=t.definition.headerFilterEmptyCheck||function(t){return!t&&"0"!==t&&0!==t},(n=document.createElement("div")).classList.add("tabulator-header-filter"),l(t.definition.headerFilter)){case"string":f.table.modules.edit.editors[t.definition.headerFilter]?(r=f.table.modules.edit.editors[t.definition.headerFilter],"tick"!==t.definition.headerFilter&&"tickCross"!==t.definition.headerFilter||t.definition.headerFilterEmptyCheck||(t.modules.filter.emptyFunc=function(t){return!0!==t&&!1!==t})):console.warn("Filter Error - Cannot build header filter, No such editor found: ",t.definition.editor);break;case"function":r=t.definition.headerFilter;break;case"boolean":t.modules.edit&&t.modules.edit.editor?r=t.modules.edit.editor:t.definition.formatter&&f.table.modules.edit.editors[t.definition.formatter]?(r=f.table.modules.edit.editors[t.definition.formatter],"tick"!==t.definition.formatter&&"tickCross"!==t.definition.formatter||t.definition.headerFilterEmptyCheck||(t.modules.filter.emptyFunc=function(t){return!0!==t&&!1!==t})):r=f.table.modules.edit.editors.input}if(r){if(s={getValue:function(){return void 0!==i?i:""},getField:function(){return t.definition.field},getElement:function(){return n},getColumn:function(){return t.getComponent()},getRow:function(){return{normalizeHeight:function(){}}}},u="function"==typeof(u=t.definition.headerFilterParams||{})?u.call(f.table):u,!(e=r.call(this.table.modules.edit,s,(function(){}),d,(function(){}),u)))return void console.warn("Filter Error - Cannot add filter to "+b+" column, editor returned a value of false");if(!(e instanceof Node))return void console.warn("Filter Error - Cannot add filter to "+b+" column, editor should return an instance of Node, the editor returned:",e);b?f.table.modules.localize.bind("headerFilters|columns|"+t.definition.field,(function(t){e.setAttribute("placeholder",void 0!==t&&t?t:f.table.modules.localize.getText("headerFilters|default"))})):f.table.modules.localize.bind("headerFilters|default",(function(t){e.setAttribute("placeholder",void 0!==f.column.definition.headerFilterPlaceholder&&f.column.definition.headerFilterPlaceholder?f.column.definition.headerFilterPlaceholder:t)})),e.addEventListener("click",(function(t){t.stopPropagation(),e.focus()})),e.addEventListener("focus",(function(){var t=c.table.columnManager.element.scrollLeft;t!==c.table.rowManager.element.scrollLeft&&(c.table.rowManager.scrollHorizontal(t),c.table.columnManager.scrollHorizontal(t))})),a=!1,h=function(){a&&clearTimeout(a),a=setTimeout((function(){d(e.value)}),f.table.options.headerFilterLiveFilterDelay)},t.modules.filter.headerElement=e,t.modules.filter.attrType=e.hasAttribute("type")?e.getAttribute("type").toLowerCase():"",t.modules.filter.tagType=e.tagName.toLowerCase(),!1!==t.definition.headerFilterLiveFilter&&("autocomplete"!==t.definition.headerFilter&&"tickCross"!==t.definition.headerFilter&&("autocomplete"!==t.definition.editor&&"tickCross"!==t.definition.editor||!0!==t.definition.headerFilter)&&(e.addEventListener("keyup",h),e.addEventListener("search",h),"number"==t.modules.filter.attrType&&e.addEventListener("change",(function(){d(e.value)})),"text"==t.modules.filter.attrType&&"ie"!==this.table.browser&&e.setAttribute("type","search")),"input"!=t.modules.filter.tagType&&"select"!=t.modules.filter.tagType&&"textarea"!=t.modules.filter.tagType||e.addEventListener("mousedown",(function(t){t.stopPropagation()}))),n.appendChild(e),t.contentElement.appendChild(n),o||f.headerFilterColumns.push(t)}}else console.warn("Filter Error - Cannot add header filter, column has no field set:",t.definition.title)},L.prototype.hideHeaderFilterElements=function(){this.headerFilterColumns.forEach((function(t){t.modules.filter&&t.modules.filter.headerElement&&(t.modules.filter.headerElement.style.display="none")}))},L.prototype.showHeaderFilterElements=function(){this.headerFilterColumns.forEach((function(t){t.modules.filter&&t.modules.filter.headerElement&&(t.modules.filter.headerElement.style.display="")}))},L.prototype.setHeaderFilterFocus=function(t){t.modules.filter&&t.modules.filter.headerElement?t.modules.filter.headerElement.focus():console.warn("Column Filter Focus Error - No header filter set on column:",t.getField())},L.prototype.getHeaderFilterValue=function(t){if(t.modules.filter&&t.modules.filter.headerElement)return t.modules.filter.headerElement.value;console.warn("Column Filter Error - No header filter set on column:",t.getField())},L.prototype.setHeaderFilterValue=function(t,i){t&&(t.modules.filter&&t.modules.filter.headerElement?(this.generateHeaderFilterElement(t,i,!0),t.modules.filter.success(i)):console.warn("Column Filter Error - No header filter set on column:",t.getField()))},L.prototype.reloadHeaderFilter=function(t){t&&(t.modules.filter&&t.modules.filter.headerElement?this.generateHeaderFilterElement(t,t.modules.filter.value,!0):console.warn("Column Filter Error - No header filter set on column:",t.getField()))},L.prototype.hasChanged=function(){var t=this.changed;return this.changed=!1,t},L.prototype.setFilter=function(t,i,o,n){this.filterList=[],Array.isArray(t)||(t=[{field:t,type:i,value:o,params:n}]),this.addFilter(t)},L.prototype.addFilter=function(t,i,o,n){var r=this;Array.isArray(t)||(t=[{field:t,type:i,value:o,params:n}]),t.forEach((function(t){(t=r.findFilter(t))&&(r.filterList.push(t),r.changed=!0)})),this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.filter&&this.table.modules.persistence.save("filter")},L.prototype.findFilter=function(t){var i,o=this;if(Array.isArray(t))return this.findSubFilters(t);var n=!1;return"function"==typeof t.field?n=function(i){return t.field(i,t.type||{})}:o.filters[t.type]?n=(i=o.table.columnManager.getColumnByField(t.field))?function(n){return o.filters[t.type](t.value,i.getFieldValue(n),n,t.params||{})}:function(i){return o.filters[t.type](t.value,i[t.field],i,t.params||{})}:console.warn("Filter Error - No such filter type found, ignoring: ",t.type),t.func=n,!!t.func&&t},L.prototype.findSubFilters=function(t){var i=this,o=[];return t.forEach((function(t){(t=i.findFilter(t))&&o.push(t)})),!!o.length&&o},L.prototype.getFilters=function(t,i){var o=[];return t&&(o=this.getHeaderFilters()),i&&o.forEach((function(t){"function"==typeof t.type&&(t.type="function")})),o.concat(this.filtersToArray(this.filterList,i))},L.prototype.filtersToArray=function(t,i){var o=this,n=[];return t.forEach((function(t){var r;Array.isArray(t)?n.push(o.filtersToArray(t,i)):(r={field:t.field,type:t.type,value:t.value},i&&"function"==typeof r.type&&(r.type="function"),n.push(r))})),n},L.prototype.getHeaderFilters=function(){var t=[];for(var i in this.headerFilters)t.push({field:i,type:this.headerFilters[i].type,value:this.headerFilters[i].value});return t},L.prototype.removeFilter=function(t,i,o){var n=this;Array.isArray(t)||(t=[{field:t,type:i,value:o}]),t.forEach((function(t){var i;(i="object"==l(t.field)?n.filterList.findIndex((function(i){return t===i})):n.filterList.findIndex((function(i){return t.field===i.field&&t.type===i.type&&t.value===i.value})))>-1?(n.filterList.splice(i,1),n.changed=!0):console.warn("Filter Error - No matching filter type found, ignoring: ",t.type)})),this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.filter&&this.table.modules.persistence.save("filter")},L.prototype.clearFilter=function(t){this.filterList=[],t&&this.clearHeaderFilter(),this.changed=!0,this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.filter&&this.table.modules.persistence.save("filter")},L.prototype.clearHeaderFilter=function(){var t=this;this.headerFilters={},t.prevHeaderFilterChangeCheck="{}",this.headerFilterColumns.forEach((function(i){void 0!==i.modules.filter.value&&delete i.modules.filter.value,i.modules.filter.prevSuccess=void 0,t.reloadHeaderFilter(i)})),this.changed=!0},L.prototype.search=function(t,i,o,n){var r=this,e=[],s=[];return Array.isArray(i)||(i=[{field:i,type:o,value:n}]),i.forEach((function(t){(t=r.findFilter(t))&&s.push(t)})),this.table.rowManager.rows.forEach((function(i){var o=!0;s.forEach((function(t){r.filterRecurse(t,i.getData())||(o=!1)})),o&&e.push("data"===t?i.getData("data"):i.getComponent())})),e},L.prototype.filter=function(t){var i=this,o=[],n=[];return i.table.options.dataFiltering&&i.table.options.dataFiltering.call(i.table,i.getFilters()),i.table.options.ajaxFiltering||!i.filterList.length&&!Object.keys(i.headerFilters).length?o=t.slice(0):t.forEach((function(t){i.filterRow(t)&&o.push(t)})),i.table.options.dataFiltered&&(o.forEach((function(t){n.push(t.getComponent())})),i.table.options.dataFiltered.call(i.table,i.getFilters(),n)),o},L.prototype.filterRow=function(t){var i=this,o=!0,n=t.getData();for(var r in i.filterList.forEach((function(t){i.filterRecurse(t,n)||(o=!1)})),i.headerFilters)i.headerFilters[r].func(n)||(o=!1);return o},L.prototype.filterRecurse=function(t,i){var o=this,n=!1;return Array.isArray(t)?t.forEach((function(t){o.filterRecurse(t,i)&&(n=!0)})):n=t.func(i),n},L.prototype.filters={"=":function(t,i){return i==t},"<":function(t,i){return i<t},"<=":function(t,i){return i<=t},">":function(t,i){return i>t},">=":function(t,i){return i>=t},"!=":function(t,i){return i!=t},regex:function(t,i){return"string"==typeof t&&(t=new RegExp(t)),t.test(i)},like:function(t,i){return null==t?i===t:null!=i&&String(i).toLowerCase().indexOf(t.toLowerCase())>-1},keywords:function(t,i,o,n){var r=t.toLowerCase().split(void 0===n.separator?" ":n.separator),e=String(null==i?"":i).toLowerCase(),s=[];return r.forEach((function(t){e.includes(t)&&s.push(!0)})),n.matchAll?s.length===r.length:!!s.length},starts:function(t,i){return null==t?i===t:null!=i&&String(i).toLowerCase().startsWith(t.toLowerCase())},ends:function(t,i){return null==t?i===t:null!=i&&String(i).toLowerCase().endsWith(t.toLowerCase())},in:function(t,i){return Array.isArray(t)?!t.length||t.indexOf(i)>-1:(console.warn("Filter Error - filter value is not an array:",t),!1)}},k.prototype.registerModule("filter",L);var H=function(t){this.table=t};H.prototype.initializeColumn=function(t){t.modules.format=this.lookupFormatter(t,""),void 0!==t.definition.formatterPrint&&(t.modules.format.print=this.lookupFormatter(t,"Print")),void 0!==t.definition.formatterClipboard&&(t.modules.format.clipboard=this.lookupFormatter(t,"Clipboard")),void 0!==t.definition.formatterHtmlOutput&&(t.modules.format.htmlOutput=this.lookupFormatter(t,"HtmlOutput"))},H.prototype.lookupFormatter=function(t,i){var o={params:t.definition["formatter"+i+"Params"]||{}},n=t.definition["formatter"+i];switch(void 0===n?"undefined":l(n)){case"string":"tick"===n&&(n="tickCross",void 0===o.params.crossElement&&(o.params.crossElement=!1),console.warn("DEPRECATION WARNING - the tick formatter has been deprecated, please use the tickCross formatter with the crossElement param set to false")),this.formatters[n]?o.formatter=this.formatters[n]:(console.warn("Formatter Error - No such formatter found: ",n),o.formatter=this.formatters.plaintext);break;case"function":o.formatter=n;break;default:o.formatter=this.formatters.plaintext}return o},H.prototype.cellRendered=function(t){t.modules.format&&t.modules.format.renderedCallback&&!t.modules.format.rendered&&(t.modules.format.renderedCallback(),t.modules.format.rendered=!0)},H.prototype.formatValue=function(t){var i=t.getComponent(),o="function"==typeof t.column.modules.format.params?t.column.modules.format.params(i):t.column.modules.format.params;return t.column.modules.format.formatter.call(this,i,o,(function(i){t.modules.format||(t.modules.format={}),t.modules.format.renderedCallback=i,t.modules.format.rendered=!1}))},H.prototype.formatExportValue=function(t,i){var o,n=t.column.modules.format[i];return n?(o="function"==typeof n.params?n.params(component):n.params,n.formatter.call(this,t.getComponent(),o,(function(i){t.modules.format||(t.modules.format={}),t.modules.format.renderedCallback=i,t.modules.format.rendered=!1}))):this.formatValue(t)},H.prototype.sanitizeHTML=function(t){if(t){var i={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return String(t).replace(/[&<>"'`=\/]/g,(function(t){return i[t]}))}return t},H.prototype.emptyToSpace=function(t){return null==t||""===t?" ":t},H.prototype.getFormatter=function(t){switch(void 0===t?"undefined":l(t)){case"string":this.formatters[t]?t=this.formatters[t]:(console.warn("Formatter Error - No such formatter found: ",t),t=this.formatters.plaintext);break;case"function":t=t;break;default:t=this.formatters.plaintext}return t},H.prototype.formatters={plaintext:function(t){return this.emptyToSpace(this.sanitizeHTML(t.getValue()))},html:function(t){return t.getValue()},textarea:function(t){return t.getElement().style.whiteSpace="pre-wrap",this.emptyToSpace(this.sanitizeHTML(t.getValue()))},money:function(t,i){var o,n,r,e,s=parseFloat(t.getValue()),a=i.decimal||".",h=i.thousand||",",u=i.symbol||"",c=!!i.symbolAfter,l=void 0!==i.precision?i.precision:2;if(isNaN(s))return this.emptyToSpace(this.sanitizeHTML(t.getValue()));for(o=!1!==l?s.toFixed(l):s,n=(o=String(o).split("."))[0],r=o.length>1?a+o[1]:"",e=/(\d+)(\d{3})/;e.test(n);)n=n.replace(e,"$1"+h+"$2");return c?n+r+u:u+n+r},link:function(t,i){var o=t.getValue(),n=i.urlPrefix||"",r=i.download,e=o,s=document.createElement("a");if(i.labelField&&(e=t.getData()[i.labelField]),i.label)switch(l(i.label)){case"string":e=i.label;break;case"function":e=i.label(t)}if(e){if(i.urlField&&(o=t.getData()[i.urlField]),i.url)switch(l(i.url)){case"string":o=i.url;break;case"function":o=i.url(t)}return s.setAttribute("href",n+o),i.target&&s.setAttribute("target",i.target),i.download&&(r="function"==typeof r?r(t):!0===r?"":r,s.setAttribute("download",r)),s.innerHTML=this.emptyToSpace(this.sanitizeHTML(e)),s}return" "},image:function(t,i){var o=document.createElement("img"),n=t.getValue();switch(i.urlPrefix&&(n=i.urlPrefix+t.getValue()),i.urlSuffix&&(n+=i.urlSuffix),o.setAttribute("src",n),l(i.height)){case"number":o.style.height=i.height+"px";break;case"string":o.style.height=i.height}switch(l(i.width)){case"number":o.style.width=i.width+"px";break;case"string":o.style.width=i.width}return o.addEventListener("load",(function(){t.getRow().normalizeHeight()})),o},tickCross:function(t,i){var o=t.getValue(),n=t.getElement(),r=i.allowEmpty,e=void 0!==i.tickElement?i.tickElement:'<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#2DC214" clip-rule="evenodd" d="M21.652,3.211c-0.293-0.295-0.77-0.295-1.061,0L9.41,14.34 c-0.293,0.297-0.771,0.297-1.062,0L3.449,9.351C3.304,9.203,3.114,9.13,2.923,9.129C2.73,9.128,2.534,9.201,2.387,9.351 l-2.165,1.946C0.078,11.445,0,11.63,0,11.823c0,0.194,0.078,0.397,0.223,0.544l4.94,5.184c0.292,0.296,0.771,0.776,1.062,1.07 l2.124,2.141c0.292,0.293,0.769,0.293,1.062,0l14.366-14.34c0.293-0.294,0.293-0.777,0-1.071L21.652,3.211z" fill-rule="evenodd"/></svg>',s=void 0!==i.crossElement?i.crossElement:'<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#CE1515" d="M22.245,4.015c0.313,0.313,0.313,0.826,0,1.139l-6.276,6.27c-0.313,0.312-0.313,0.826,0,1.14l6.273,6.272 c0.313,0.313,0.313,0.826,0,1.14l-2.285,2.277c-0.314,0.312-0.828,0.312-1.142,0l-6.271-6.271c-0.313-0.313-0.828-0.313-1.141,0 l-6.276,6.267c-0.313,0.313-0.828,0.313-1.141,0l-2.282-2.28c-0.313-0.313-0.313-0.826,0-1.14l6.278-6.269 c0.313-0.312,0.313-0.826,0-1.14L1.709,5.147c-0.314-0.313-0.314-0.827,0-1.14l2.284-2.278C4.308,1.417,4.821,1.417,5.135,1.73 L11.405,8c0.314,0.314,0.828,0.314,1.141,0.001l6.276-6.267c0.312-0.312,0.826-0.312,1.141,0L22.245,4.015z"/></svg>';return i.allowTruthy&&o||!0===o||"true"===o||"True"===o||1===o||"1"===o?(n.setAttribute("aria-checked",!0),e||""):!r||"null"!==o&&""!==o&&null!=o?(n.setAttribute("aria-checked",!1),s||""):(n.setAttribute("aria-checked","mixed"),"")},datetime:function(t,i){var o=i.inputFormat||"YYYY-MM-DD hh:mm:ss",n=i.outputFormat||"DD/MM/YYYY hh:mm:ss",r=void 0!==i.invalidPlaceholder?i.invalidPlaceholder:"",e=t.getValue(),s=moment(e,o);return s.isValid()?i.timezone?s.tz(i.timezone).format(n):s.format(n):!0===r?e:"function"==typeof r?r(e):r},datetimediff:function(t,i){var o=i.inputFormat||"YYYY-MM-DD hh:mm:ss",n=void 0!==i.invalidPlaceholder?i.invalidPlaceholder:"",r=void 0!==i.suffix&&i.suffix,e=void 0!==i.unit?i.unit:void 0,s=void 0!==i.humanize&&i.humanize,a=void 0!==i.date?i.date:moment(),h=t.getValue(),u=moment(h,o);return u.isValid()?s?moment.duration(u.diff(a)).humanize(r):u.diff(a,e)+(r?" "+r:""):!0===n?h:"function"==typeof n?n(h):n},lookup:function(t,i){var o=t.getValue();return void 0===i[o]?(console.warn("Missing display value for "+o),o):i[o]},star:function(t,i){var o=t.getValue(),n=t.getElement(),r=i&&i.stars?i.stars:5,e=document.createElement("span"),s=document.createElementNS("http://www.w3.org/2000/svg","svg");e.style.verticalAlign="middle",s.setAttribute("width","14"),s.setAttribute("height","14"),s.setAttribute("viewBox","0 0 512 512"),s.setAttribute("xml:space","preserve"),s.style.padding="0 1px",o=o&&!isNaN(o)?parseInt(o):0,o=Math.max(0,Math.min(o,r));for(var a=1;a<=r;a++){var h=s.cloneNode(!0);h.innerHTML=a<=o?'<polygon fill="#FFEA00" stroke="#C1AB60" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>':'<polygon fill="#D2D2D2" stroke="#686868" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>',e.appendChild(h)}return n.style.whiteSpace="nowrap",n.style.overflow="hidden",n.style.textOverflow="ellipsis",n.setAttribute("aria-label",o),e},traffic:function(t,i){var o,n=this.sanitizeHTML(t.getValue())||0,r=document.createElement("span"),e=i&&i.max?i.max:100,s=i&&i.min?i.min:0,a=i&&void 0!==i.color?i.color:["red","orange","green"],h="#666666";if(!isNaN(n)&&void 0!==t.getValue()){switch(r.classList.add("tabulator-traffic-light"),o=parseFloat(n)<=e?parseFloat(n):e,o=parseFloat(o)>=s?parseFloat(o):s,o=Math.round((o-s)/((e-s)/100)),void 0===a?"undefined":l(a)){case"string":h=a;break;case"function":h=a(n);break;case"object":if(Array.isArray(a)){var u=Math.floor(o/(100/a.length));u=Math.min(u,a.length-1),h=a[u=Math.max(u,0)];break}}return r.style.backgroundColor=h,r}},progress:function(t,i,o){var n,r,e,s,a=this.sanitizeHTML(t.getValue())||0,h=t.getElement(),u=i&&i.max?i.max:100,c=i&&i.min?i.min:0,f=i&&i.legendAlign?i.legendAlign:"center";switch(n=parseFloat(a)<=u?parseFloat(a):u,n=parseFloat(n)>=c?parseFloat(n):c,n=Math.round((n-c)/((u-c)/100)),l(i.color)){case"string":r=i.color;break;case"function":r=i.color(a);break;case"object":if(Array.isArray(i.color)){var d=100/i.color.length,b=Math.floor(n/d);b=Math.min(b,i.color.length-1),b=Math.max(b,0),r=i.color[b];break}default:r="#2DC214"}switch(l(i.legend)){case"string":e=i.legend;break;case"function":e=i.legend(a);break;case"boolean":e=a;break;default:e=!1}switch(l(i.legendColor)){case"string":s=i.legendColor;break;case"function":s=i.legendColor(a);break;case"object":Array.isArray(i.legendColor)&&(d=100/i.legendColor.length,b=Math.floor(n/d),b=Math.min(b,i.legendColor.length-1),b=Math.max(b,0),s=i.legendColor[b]);break;default:s="#000"}h.style.minWidth="30px",h.style.position="relative",h.setAttribute("aria-label",n);var p=document.createElement("div");if(p.style.display="inline-block",p.style.position="relative",p.style.width=n+"%",p.style.backgroundColor=r,p.style.height="100%",p.setAttribute("data-max",u),p.setAttribute("data-min",c),e){var v=document.createElement("div");v.style.position="absolute",v.style.top="4px",v.style.left=0,v.style.textAlign=f,v.style.width="100%",v.style.color=s,v.innerHTML=e}return o((function(){if(!(t instanceof w)){var i=document.createElement("div");i.style.position="absolute",i.style.top="4px",i.style.bottom="4px",i.style.left="4px",i.style.right="4px",h.appendChild(i),h=i}h.appendChild(p),e&&h.appendChild(v)})),""},color:function(t){return t.getElement().style.backgroundColor=this.sanitizeHTML(t.getValue()),""},buttonTick:function(){return'<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#2DC214" clip-rule="evenodd" d="M21.652,3.211c-0.293-0.295-0.77-0.295-1.061,0L9.41,14.34 c-0.293,0.297-0.771,0.297-1.062,0L3.449,9.351C3.304,9.203,3.114,9.13,2.923,9.129C2.73,9.128,2.534,9.201,2.387,9.351 l-2.165,1.946C0.078,11.445,0,11.63,0,11.823c0,0.194,0.078,0.397,0.223,0.544l4.94,5.184c0.292,0.296,0.771,0.776,1.062,1.07 l2.124,2.141c0.292,0.293,0.769,0.293,1.062,0l14.366-14.34c0.293-0.294,0.293-0.777,0-1.071L21.652,3.211z" fill-rule="evenodd"/></svg>'},buttonCross:function(){return'<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#CE1515" d="M22.245,4.015c0.313,0.313,0.313,0.826,0,1.139l-6.276,6.27c-0.313,0.312-0.313,0.826,0,1.14l6.273,6.272 c0.313,0.313,0.313,0.826,0,1.14l-2.285,2.277c-0.314,0.312-0.828,0.312-1.142,0l-6.271-6.271c-0.313-0.313-0.828-0.313-1.141,0 l-6.276,6.267c-0.313,0.313-0.828,0.313-1.141,0l-2.282-2.28c-0.313-0.313-0.313-0.826,0-1.14l6.278-6.269 c0.313-0.312,0.313-0.826,0-1.14L1.709,5.147c-0.314-0.313-0.314-0.827,0-1.14l2.284-2.278C4.308,1.417,4.821,1.417,5.135,1.73 L11.405,8c0.314,0.314,0.828,0.314,1.141,0.001l6.276-6.267c0.312-0.312,0.826-0.312,1.141,0L22.245,4.015z"/></svg>'},rownum:function(t){return this.table.rowManager.activeRows.indexOf(t.getRow()._getSelf())+1},handle:function(t){return t.getElement().classList.add("tabulator-row-handle"),"<div class='tabulator-row-handle-box'><div class='tabulator-row-handle-bar'></div><div class='tabulator-row-handle-bar'></div><div class='tabulator-row-handle-bar'></div></div>"},responsiveCollapse:function(t){var i=document.createElement("div"),o=t.getRow()._row.modules.responsiveLayout;function n(t){var n=o.element;o.open=t,n&&(o.open?(i.classList.add("open"),n.style.display=""):(i.classList.remove("open"),n.style.display="none"))}return i.classList.add("tabulator-responsive-collapse-toggle"),i.innerHTML="<span class='tabulator-responsive-collapse-toggle-open'>+</span><span class='tabulator-responsive-collapse-toggle-close'>-</span>",t.getElement().classList.add("tabulator-row-handle"),i.addEventListener("click",(function(t){t.stopImmediatePropagation(),n(!o.open)})),n(o.open),i},rowSelection:function(t,i){var o=this,n=document.createElement("input");if(n.type="checkbox",this.table.modExists("selectRow",!0))if(n.addEventListener("click",(function(t){t.stopPropagation()})),"function"==typeof t.getRow){var r=t.getRow();r instanceof m?(n.addEventListener("change",(function(){r.toggleSelect()})),n.checked=r.isSelected&&r.isSelected(),this.table.modules.selectRow.registerRowSelectCheckbox(r,n)):n=""}else n.addEventListener("change",(function(){o.table.modules.selectRow.selectedRows.length?o.table.deselectRow():o.table.selectRow(i.rowRange)})),this.table.modules.selectRow.registerHeaderSelectCheckbox(n);return n}},k.prototype.registerModule("format",H);var I=function(t){this.table=t,this.leftColumns=[],this.rightColumns=[],this.leftMargin=0,this.rightMargin=0,this.rightPadding=0,this.initializationMode="left",this.active=!1,this.scrollEndTimer=!1};I.prototype.reset=function(){this.initializationMode="left",this.leftColumns=[],this.rightColumns=[],this.leftMargin=0,this.rightMargin=0,this.rightMargin=0,this.active=!1,this.table.columnManager.headersElement.style.marginLeft=0,this.table.columnManager.element.style.paddingRight=0},I.prototype.initializeColumn=function(t){var i={margin:0,edge:!1};t.isGroup||(this.frozenCheck(t)?(i.position=this.initializationMode,"left"==this.initializationMode?this.leftColumns.push(t):this.rightColumns.unshift(t),this.active=!0,t.modules.frozen=i):this.initializationMode="right")},I.prototype.frozenCheck=function(t){return t.parent.isGroup&&t.definition.frozen&&console.warn("Frozen Column Error - Parent column group must be frozen, not individual columns or sub column groups"),t.parent.isGroup?this.frozenCheck(t.parent):t.definition.frozen},I.prototype.scrollHorizontal=function(){var t,i=this;this.active&&(clearTimeout(this.scrollEndTimer),this.scrollEndTimer=setTimeout((function(){i.layout()}),100),t=this.table.rowManager.getVisibleRows(),this.calcMargins(),this.layoutColumnPosition(),this.layoutCalcRows(),t.forEach((function(t){"row"===t.type&&i.layoutRow(t)})),this.table.rowManager.tableElement.style.marginRight=this.rightMargin)},I.prototype.calcMargins=function(){this.leftMargin=this._calcSpace(this.leftColumns,this.leftColumns.length)+"px",this.table.columnManager.headersElement.style.marginLeft=this.leftMargin,this.rightMargin=this._calcSpace(this.rightColumns,this.rightColumns.length)+"px",this.table.columnManager.element.style.paddingRight=this.rightMargin,this.rightPadding=this.table.rowManager.element.clientWidth+this.table.columnManager.scrollLeft},I.prototype.layoutCalcRows=function(){this.table.modExists("columnCalcs")&&(this.table.modules.columnCalcs.topInitialized&&this.table.modules.columnCalcs.topRow&&this.layoutRow(this.table.modules.columnCalcs.topRow),this.table.modules.columnCalcs.botInitialized&&this.table.modules.columnCalcs.botRow&&this.layoutRow(this.table.modules.columnCalcs.botRow))},I.prototype.layoutColumnPosition=function(t){var i=this,o=[];this.leftColumns.forEach((function(n,r){if(n.modules.frozen.margin=i._calcSpace(i.leftColumns,r)+i.table.columnManager.scrollLeft+"px",n.modules.frozen.edge=r==i.leftColumns.length-1,n.parent.isGroup){var e=i.getColGroupParentElement(n);o.includes(e)||(i.layoutElement(e,n),o.push(e)),n.modules.frozen.edge&&e.classList.add("tabulator-frozen-"+n.modules.frozen.position)}else i.layoutElement(n.getElement(),n);t&&n.cells.forEach((function(t){i.layoutElement(t.getElement(!0),n)}))})),this.rightColumns.forEach((function(o,n){o.modules.frozen.margin=i.rightPadding-i._calcSpace(i.rightColumns,n+1)+"px",o.modules.frozen.edge=n==i.rightColumns.length-1,i.layoutElement(o.parent.isGroup?i.getColGroupParentElement(o):o.getElement(),o),t&&o.cells.forEach((function(t){i.layoutElement(t.getElement(!0),o)}))}))},I.prototype.getColGroupParentElement=function(t){return t.parent.isGroup?this.getColGroupParentElement(t.parent):t.getElement()},I.prototype.layout=function(){var t=this;t.active&&(this.calcMargins(),t.table.rowManager.getDisplayRows().forEach((function(i){"row"===i.type&&t.layoutRow(i)})),this.layoutCalcRows(),this.layoutColumnPosition(!0),this.table.rowManager.tableElement.style.marginRight=this.rightMargin)},I.prototype.layoutRow=function(t){var i=this;t.getElement().style.paddingLeft=this.leftMargin,this.leftColumns.forEach((function(o){var n=t.getCell(o);n&&i.layoutElement(n.getElement(!0),o)})),this.rightColumns.forEach((function(o){var n=t.getCell(o);n&&i.layoutElement(n.getElement(!0),o)}))},I.prototype.layoutElement=function(t,i){i.modules.frozen&&(t.style.position="absolute",t.style.left=i.modules.frozen.margin,t.classList.add("tabulator-frozen"),i.modules.frozen.edge&&t.classList.add("tabulator-frozen-"+i.modules.frozen.position))},I.prototype._calcSpace=function(t,i){for(var o=0,n=0;n<i;n++)t[n].visible&&(o+=t[n].getWidth());return o},k.prototype.registerModule("frozenColumns",I);var _=function(t){this.table=t,this.topElement=document.createElement("div"),this.rows=[],this.displayIndex=0};_.prototype.initialize=function(){this.rows=[],this.topElement.classList.add("tabulator-frozen-rows-holder"),this.table.columnManager.getElement().insertBefore(this.topElement,this.table.columnManager.headersElement.nextSibling)},_.prototype.setDisplayIndex=function(t){this.displayIndex=t},_.prototype.getDisplayIndex=function(){return this.displayIndex},_.prototype.isFrozen=function(){return!!this.rows.length},_.prototype.getRows=function(t){var i=t.slice(0);return this.rows.forEach((function(t){var o=i.indexOf(t);o>-1&&i.splice(o,1)})),i},_.prototype.freezeRow=function(t){t.modules.frozen?console.warn("Freeze Error - Row is already frozen"):(t.modules.frozen=!0,this.topElement.appendChild(t.getElement()),t.initialize(),t.normalizeHeight(),this.table.rowManager.adjustTableSize(),this.rows.push(t),this.table.rowManager.refreshActiveData("display"),this.styleRows())},_.prototype.unfreezeRow=function(t){this.rows.indexOf(t),t.modules.frozen?(t.modules.frozen=!1,this.detachRow(t),this.table.rowManager.adjustTableSize(),this.table.rowManager.refreshActiveData("display"),this.rows.length&&this.styleRows()):console.warn("Freeze Error - Row is already unfrozen")},_.prototype.detachRow=function(t){var i=this.rows.indexOf(t);if(i>-1){var o=t.getElement();o.parentNode.removeChild(o),this.rows.splice(i,1)}},_.prototype.styleRows=function(){var t=this;this.rows.forEach((function(i,o){t.table.rowManager.styleRow(i,o)}))},k.prototype.registerModule("frozenRows",_);var V=function(t){this._group=t,this.type="GroupComponent"};V.prototype.getKey=function(){return this._group.key},V.prototype.getField=function(){return this._group.field},V.prototype.getElement=function(){return this._group.element},V.prototype.getRows=function(){return this._group.getRows(!0)},V.prototype.getSubGroups=function(){return this._group.getSubGroups(!0)},V.prototype.getParentGroup=function(){return!!this._group.parent&&this._group.parent.getComponent()},V.prototype.getVisibility=function(){return console.warn("getVisibility function is deprecated, you should now use the isVisible function"),this._group.visible},V.prototype.isVisible=function(){return this._group.visible},V.prototype.show=function(){this._group.show()},V.prototype.hide=function(){this._group.hide()},V.prototype.toggle=function(){this._group.toggleVisibility()},V.prototype._getSelf=function(){return this._group},V.prototype.getTable=function(){return this._group.groupManager.table};var U=function(t,i,o,n,r,e,s){this.groupManager=t,this.parent=i,this.key=n,this.level=o,this.field=r,this.hasSubGroups=o<t.groupIDLookups.length-1,this.addRow=this.hasSubGroups?this._addRowToGroup:this._addRow,this.type="group",this.old=s,this.rows=[],this.groups=[],this.groupList=[],this.generator=e,this.elementContents=!1,this.height=0,this.outerHeight=0,this.initialized=!1,this.calcs={},this.initialized=!1,this.modules={},this.arrowElement=!1,this.visible=s?s.visible:void 0!==t.startOpen[o]?t.startOpen[o]:t.startOpen[0],this.component=null,this.createElements(),this.addBindings(),this.createValueGroups()};U.prototype.wipe=function(){this.groupList.length?this.groupList.forEach((function(t){t.wipe()})):(this.element=!1,this.arrowElement=!1,this.elementContents=!1)},U.prototype.createElements=function(){var t=document.createElement("div");t.classList.add("tabulator-arrow"),this.element=document.createElement("div"),this.element.classList.add("tabulator-row"),this.element.classList.add("tabulator-group"),this.element.classList.add("tabulator-group-level-"+this.level),this.element.setAttribute("role","rowgroup"),this.arrowElement=document.createElement("div"),this.arrowElement.classList.add("tabulator-group-toggle"),this.arrowElement.appendChild(t),!1!==this.groupManager.table.options.movableRows&&this.groupManager.table.modExists("moveRow")&&this.groupManager.table.modules.moveRow.initializeGroupHeader(this)},U.prototype.createValueGroups=function(){var t=this,i=this.level+1;this.groupManager.allowedValues&&this.groupManager.allowedValues[i]&&this.groupManager.allowedValues[i].forEach((function(o){t._createGroup(o,i)}))},U.prototype.addBindings=function(){var t,i,o,n=this;n.groupManager.table.options.groupClick&&n.element.addEventListener("click",(function(t){n.groupManager.table.options.groupClick.call(n.groupManager.table,t,n.getComponent())})),n.groupManager.table.options.groupDblClick&&n.element.addEventListener("dblclick",(function(t){n.groupManager.table.options.groupDblClick.call(n.groupManager.table,t,n.getComponent())})),n.groupManager.table.options.groupContext&&n.element.addEventListener("contextmenu",(function(t){n.groupManager.table.options.groupContext.call(n.groupManager.table,t,n.getComponent())})),(n.groupManager.table.options.groupContextMenu||n.groupManager.table.options.groupClickMenu)&&n.groupManager.table.modExists("menu")&&n.groupManager.table.modules.menu.initializeGroup.call(n.groupManager.table.modules.menu,n),n.groupManager.table.options.groupTap&&(o=!1,n.element.addEventListener("touchstart",(function(){o=!0}),{passive:!0}),n.element.addEventListener("touchend",(function(t){o&&n.groupManager.table.options.groupTap(t,n.getComponent()),o=!1}))),n.groupManager.table.options.groupDblTap&&(t=null,n.element.addEventListener("touchend",(function(i){t?(clearTimeout(t),t=null,n.groupManager.table.options.groupDblTap(i,n.getComponent())):t=setTimeout((function(){clearTimeout(t),t=null}),300)}))),n.groupManager.table.options.groupTapHold&&(i=null,n.element.addEventListener("touchstart",(function(t){clearTimeout(i),i=setTimeout((function(){clearTimeout(i),i=null,o=!1,n.groupManager.table.options.groupTapHold(t,n.getComponent())}),1e3)}),{passive:!0}),n.element.addEventListener("touchend",(function(){clearTimeout(i),i=null}))),n.groupManager.table.options.groupToggleElement&&("arrow"==n.groupManager.table.options.groupToggleElement?n.arrowElement:n.element).addEventListener("click",(function(t){t.stopPropagation(),t.stopImmediatePropagation(),n.toggleVisibility()}))},U.prototype._createGroup=function(t,i){var o=i+"_"+t,n=new U(this.groupManager,this,i,t,this.groupManager.groupIDLookups[i].field,this.groupManager.headerGenerator[i]||this.groupManager.headerGenerator[0],!!this.old&&this.old.groups[o]);this.groups[o]=n,this.groupList.push(n)},U.prototype._addRowToGroup=function(t){var i=this.level+1;if(this.hasSubGroups){var o=this.groupManager.groupIDLookups[i].func(t.getData()),n=i+"_"+o;this.groupManager.allowedValues&&this.groupManager.allowedValues[i]?this.groups[n]&&this.groups[n].addRow(t):(this.groups[n]||this._createGroup(o,i),this.groups[n].addRow(t))}},U.prototype._addRow=function(t){this.rows.push(t),t.modules.group=this},U.prototype.insertRow=function(t,i,o){var n=this.conformRowData({});t.updateData(n);var r=this.rows.indexOf(i);r>-1?this.rows.splice(o?r+1:r,0,t):o?this.rows.push(t):this.rows.unshift(t),t.modules.group=this,this.generateGroupHeaderContents(),this.groupManager.table.modExists("columnCalcs")&&"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modules.columnCalcs.recalcGroup(this),this.groupManager.updateGroupRows(!0)},U.prototype.scrollHeader=function(t){this.arrowElement.style.marginLeft=t,this.groupList.forEach((function(i){i.scrollHeader(t)}))},U.prototype.getRowIndex=function(){},U.prototype.conformRowData=function(t){return this.field?t[this.field]=this.key:console.warn("Data Conforming Error - Cannot conform row data to match new group as groupBy is a function"),this.parent&&(t=this.parent.conformRowData(t)),t},U.prototype.removeRow=function(t){var i=this.rows.indexOf(t),o=t.getElement();i>-1&&this.rows.splice(i,1),this.groupManager.table.options.groupValues||this.rows.length?(o.parentNode&&o.parentNode.removeChild(o),this.generateGroupHeaderContents(),this.groupManager.table.modExists("columnCalcs")&&"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modules.columnCalcs.recalcGroup(this)):(this.parent?this.parent.removeGroup(this):this.groupManager.removeGroup(this),this.groupManager.updateGroupRows(!0))},U.prototype.removeGroup=function(t){var i,o=t.level+"_"+t.key;this.groups[o]&&(delete this.groups[o],(i=this.groupList.indexOf(t))>-1&&this.groupList.splice(i,1),this.groupList.length||(this.parent?this.parent.removeGroup(this):this.groupManager.removeGroup(this)))},U.prototype.getHeadersAndRows=function(t){var i=[];return i.push(this),this._visSet(),this.visible?this.groupList.length?this.groupList.forEach((function(o){i=i.concat(o.getHeadersAndRows(t))})):(!t&&"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modExists("columnCalcs")&&this.groupManager.table.modules.columnCalcs.hasTopCalcs()&&(this.calcs.top&&(this.calcs.top.detachElement(),this.calcs.top.deleteCells()),this.calcs.top=this.groupManager.table.modules.columnCalcs.generateTopRow(this.rows),i.push(this.calcs.top)),i=i.concat(this.rows),!t&&"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modExists("columnCalcs")&&this.groupManager.table.modules.columnCalcs.hasBottomCalcs()&&(this.calcs.bottom&&(this.calcs.bottom.detachElement(),this.calcs.bottom.deleteCells()),this.calcs.bottom=this.groupManager.table.modules.columnCalcs.generateBottomRow(this.rows),i.push(this.calcs.bottom))):this.groupList.length||"table"==this.groupManager.table.options.columnCalcs||this.groupManager.table.modExists("columnCalcs")&&(!t&&this.groupManager.table.modules.columnCalcs.hasTopCalcs()&&(this.calcs.top&&(this.calcs.top.detachElement(),this.calcs.top.deleteCells()),this.groupManager.table.options.groupClosedShowCalcs&&(this.calcs.top=this.groupManager.table.modules.columnCalcs.generateTopRow(this.rows),i.push(this.calcs.top))),!t&&this.groupManager.table.modules.columnCalcs.hasBottomCalcs()&&(this.calcs.bottom&&(this.calcs.bottom.detachElement(),this.calcs.bottom.deleteCells()),this.groupManager.table.options.groupClosedShowCalcs&&(this.calcs.bottom=this.groupManager.table.modules.columnCalcs.generateBottomRow(this.rows),i.push(this.calcs.bottom)))),i},U.prototype.getData=function(t,i){var o=[];return this._visSet(),(!t||t&&this.visible)&&this.rows.forEach((function(t){o.push(t.getData(i||"data"))})),o},U.prototype.getRowCount=function(){var t=0;return this.groupList.length?this.groupList.forEach((function(i){t+=i.getRowCount()})):t=this.rows.length,t},U.prototype.toggleVisibility=function(){this.visible?this.hide():this.show()},U.prototype.hide=function(){this.visible=!1,"classic"!=this.groupManager.table.rowManager.getRenderMode()||this.groupManager.table.options.pagination?this.groupManager.updateGroupRows(!0):(this.element.classList.remove("tabulator-group-visible"),this.groupList.length?this.groupList.forEach((function(t){t.getHeadersAndRows().forEach((function(t){t.detachElement()}))})):this.rows.forEach((function(t){var i=t.getElement();i.parentNode.removeChild(i)})),this.groupManager.table.rowManager.setDisplayRows(this.groupManager.updateGroupRows(),this.groupManager.getDisplayIndex()),this.groupManager.table.rowManager.checkClassicModeGroupHeaderWidth()),this.groupManager.table.options.groupVisibilityChanged.call(this.table,this.getComponent(),!1)},U.prototype.show=function(){var t=this;if(t.visible=!0,"classic"!=this.groupManager.table.rowManager.getRenderMode()||this.groupManager.table.options.pagination)this.groupManager.updateGroupRows(!0);else{this.element.classList.add("tabulator-group-visible");var i=t.getElement();this.groupList.length?this.groupList.forEach((function(t){t.getHeadersAndRows().forEach((function(t){var o=t.getElement();i.parentNode.insertBefore(o,i.nextSibling),t.initialize(),i=o}))})):t.rows.forEach((function(t){var o=t.getElement();i.parentNode.insertBefore(o,i.nextSibling),t.initialize(),i=o})),this.groupManager.table.rowManager.setDisplayRows(this.groupManager.updateGroupRows(),this.groupManager.getDisplayIndex()),this.groupManager.table.rowManager.checkClassicModeGroupHeaderWidth()}this.groupManager.table.options.groupVisibilityChanged.call(this.table,this.getComponent(),!0)},U.prototype._visSet=function(){var t=[];"function"==typeof this.visible&&(this.rows.forEach((function(i){t.push(i.getData())})),this.visible=this.visible(this.key,this.getRowCount(),t,this.getComponent()))},U.prototype.getRowGroup=function(t){var i=!1;return this.groupList.length?this.groupList.forEach((function(o){var n=o.getRowGroup(t);n&&(i=n)})):this.rows.find((function(i){return i===t}))&&(i=this),i},U.prototype.getSubGroups=function(t){var i=[];return this.groupList.forEach((function(o){i.push(t?o.getComponent():o)})),i},U.prototype.getRows=function(t){var i=[];return this.rows.forEach((function(o){i.push(t?o.getComponent():o)})),i},U.prototype.generateGroupHeaderContents=function(){var t=[];for(this.rows.forEach((function(i){t.push(i.getData())})),this.elementContents=this.generator(this.key,this.getRowCount(),t,this.getComponent());this.element.firstChild;)this.element.removeChild(this.element.firstChild);"string"==typeof this.elementContents?this.element.innerHTML=this.elementContents:this.element.appendChild(this.elementContents),this.element.insertBefore(this.arrowElement,this.element.firstChild)},U.prototype.getPath=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.unshift(this.key),this.parent&&this.parent.getPath(t),t},U.prototype.getElement=function(){this.addBindingsd=!1,this._visSet(),this.visible?this.element.classList.add("tabulator-group-visible"):this.element.classList.remove("tabulator-group-visible");for(var t=0;t<this.element.childNodes.length;++t)this.element.childNodes[t].parentNode.removeChild(this.element.childNodes[t]);return this.generateGroupHeaderContents(),this.element},U.prototype.detachElement=function(){this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)},U.prototype.normalizeHeight=function(){this.setHeight(this.element.clientHeight)},U.prototype.initialize=function(t){this.initialized&&!t||(this.normalizeHeight(),this.initialized=!0)},U.prototype.reinitialize=function(){this.initialized=!1,this.height=0,k.prototype.helpers.elVisible(this.element)&&this.initialize(!0)},U.prototype.setHeight=function(t){this.height!=t&&(this.height=t,this.outerHeight=this.element.offsetHeight)},U.prototype.getHeight=function(){return this.outerHeight},U.prototype.getGroup=function(){return this},U.prototype.reinitializeHeight=function(){},U.prototype.calcHeight=function(){},U.prototype.setCellHeight=function(){},U.prototype.clearCellHeight=function(){},U.prototype.getComponent=function(){return this.component||(this.component=new V(this)),this.component};var J=function(t){this.table=t,this.groupIDLookups=!1,this.startOpen=[function(){return!1}],this.headerGenerator=[function(){return""}],this.groupList=[],this.allowedValues=!1,this.groups={},this.displayIndex=0};J.prototype.initialize=function(){var t=this,i=t.table.options.groupBy,o=t.table.options.groupStartOpen,n=t.table.options.groupHeader;this.allowedValues=t.table.options.groupValues,Array.isArray(i)&&Array.isArray(n)&&i.length>n.length&&console.warn("Error creating group headers, groupHeader array is shorter than groupBy array"),t.headerGenerator=[function(){return""}],this.startOpen=[function(){return!1}],t.table.modules.localize.bind("groups|item",(function(i,o){t.headerGenerator[0]=function(t,n){return(void 0===t?"":t)+"<span>("+n+" "+(1===n?i:o.groups.items)+")</span>"}})),this.groupIDLookups=[],Array.isArray(i)||i?this.table.modExists("columnCalcs")&&"table"!=this.table.options.columnCalcs&&"both"!=this.table.options.columnCalcs&&this.table.modules.columnCalcs.removeCalcs():this.table.modExists("columnCalcs")&&"group"!=this.table.options.columnCalcs&&this.table.columnManager.getRealColumns().forEach((function(i){i.definition.topCalc&&t.table.modules.columnCalcs.initializeTopRow(),i.definition.bottomCalc&&t.table.modules.columnCalcs.initializeBottomRow()})),Array.isArray(i)||(i=[i]),i.forEach((function(i,o){var n,r;n="function"==typeof i?i:(r=t.table.columnManager.getColumnByField(i))?function(t){return r.getFieldValue(t)}:function(t){return t[i]},t.groupIDLookups.push({field:"function"!=typeof i&&i,func:n,values:!!t.allowedValues&&t.allowedValues[o]})})),o&&(Array.isArray(o)||(o=[o]),o.forEach((function(){})),t.startOpen=o),n&&(t.headerGenerator=Array.isArray(n)?n:[n]),this.initialized=!0},J.prototype.setDisplayIndex=function(t){this.displayIndex=t},J.prototype.getDisplayIndex=function(){return this.displayIndex},J.prototype.getRows=function(t){return this.groupIDLookups.length?(this.table.options.dataGrouping.call(this.table),this.generateGroups(t),this.table.options.dataGrouped&&this.table.options.dataGrouped.call(this.table,this.getGroups(!0)),this.updateGroupRows()):t.slice(0)},J.prototype.getGroups=function(t){var i=[];return this.groupList.forEach((function(o){i.push(t?o.getComponent():o)})),i},J.prototype.getChildGroups=function(t){var i=this,o=[];return t||(t=this),t.groupList.forEach((function(t){t.groupList.length?o=o.concat(i.getChildGroups(t)):o.push(t)})),o},J.prototype.wipe=function(){this.groupList.forEach((function(t){t.wipe()}))},J.prototype.pullGroupListData=function(t){var i=this,o=[];return t.forEach((function(t){var n={level:0,rowCount:0,headerContent:""},r=[];t.hasSubGroups?(r=i.pullGroupListData(t.groupList),n.level=t.level,n.rowCount=r.length-t.groupList.length,n.headerContent=t.generator(t.key,n.rowCount,t.rows,t),o.push(n),o=o.concat(r)):(n.level=t.level,n.headerContent=t.generator(t.key,t.rows.length,t.rows,t),n.rowCount=t.getRows().length,o.push(n),t.getRows().forEach((function(t){o.push(t.getData("data"))})))})),o},J.prototype.getGroupedData=function(){return this.pullGroupListData(this.groupList)},J.prototype.getRowGroup=function(t){var i=!1;return this.groupList.forEach((function(o){var n=o.getRowGroup(t);n&&(i=n)})),i},J.prototype.countGroups=function(){return this.groupList.length},J.prototype.generateGroups=function(t){var i=this,o=i.groups;i.groups={},i.groupList=[],this.allowedValues&&this.allowedValues[0]?(this.allowedValues[0].forEach((function(t){i.createGroup(t,0,o)})),t.forEach((function(t){i.assignRowToExistingGroup(t,o)}))):t.forEach((function(t){i.assignRowToGroup(t,o)}))},J.prototype.createGroup=function(t,i,o){var n,r=i+"_"+t;n=new U(this,!1,i,t,this.groupIDLookups[0].field,this.headerGenerator[0],(o=o||[])[r]),this.groups[r]=n,this.groupList.push(n)},J.prototype.assignRowToExistingGroup=function(t){var i="0_"+this.groupIDLookups[0].func(t.getData());this.groups[i]&&this.groups[i].addRow(t)},J.prototype.assignRowToGroup=function(t,i){var o=this.groupIDLookups[0].func(t.getData()),n=!this.groups["0_"+o];return n&&this.createGroup(o,0,i),this.groups["0_"+o].addRow(t),!n},J.prototype.reassignRowToGroup=function(t){var i=t.getGroup(),o=i.getPath(),n=this.getExpectedPath(t);o.length==n.length&&o.every((function(t,i){return t===n[i]}))||(i.removeRow(t),this.assignRowToGroup(t,self.groups),this.table.rowManager.refreshActiveData("group",!1,!0))},J.prototype.getExpectedPath=function(t){var i=[],o=t.getData();return this.groupIDLookups.forEach((function(t){i.push(t.func(o))})),i},J.prototype.updateGroupRows=function(t){var i=this,o=[];if(i.groupList.forEach((function(t){o=o.concat(t.getHeadersAndRows())})),t){var n=i.table.rowManager.setDisplayRows(o,this.getDisplayIndex());!0!==n&&this.setDisplayIndex(n),i.table.rowManager.refreshActiveData("group",!0,!0)}return o},J.prototype.scrollHeaders=function(t){this.table.options.virtualDomHoz&&(t-=this.table.vdomHoz.vDomPadLeft),t+="px",this.groupList.forEach((function(i){i.scrollHeader(t)}))},J.prototype.removeGroup=function(t){var i,o=t.level+"_"+t.key;this.groups[o]&&(delete this.groups[o],(i=this.groupList.indexOf(t))>-1&&this.groupList.splice(i,1))},k.prototype.registerModule("groupRows",J);var B=function(t){this.table=t,this.history=[],this.index=-1};B.prototype.clear=function(){this.history=[],this.index=-1},B.prototype.action=function(t,i,o){this.history=this.history.slice(0,this.index+1),this.history.push({type:t,component:i,data:o}),this.index++},B.prototype.getHistoryUndoSize=function(){return this.index+1},B.prototype.getHistoryRedoSize=function(){return this.history.length-(this.index+1)},B.prototype.clearComponentHistory=function(t){var i=this.history.findIndex((function(i){return i.component===t}));i>-1&&(this.history.splice(i,1),i<=this.index&&this.index--,this.clearComponentHistory(t))},B.prototype.undo=function(){if(this.index>-1){var t=this.history[this.index];return this.undoers[t.type].call(this,t),this.index--,this.table.options.historyUndo.call(this.table,t.type,t.component.getComponent(),t.data),!0}return console.warn("History Undo Error - No more history to undo"),!1},B.prototype.redo=function(){if(this.history.length-1>this.index){this.index++;var t=this.history[this.index];return this.redoers[t.type].call(this,t),this.table.options.historyRedo.call(this.table,t.type,t.component.getComponent(),t.data),!0}return console.warn("History Redo Error - No more history to redo"),!1},B.prototype.undoers={cellEdit:function(t){t.component.setValueProcessData(t.data.oldValue)},rowAdd:function(t){t.component.deleteActual()},rowDelete:function(t){var i=this.table.rowManager.addRowActual(t.data.data,t.data.pos,t.data.index);this.table.options.groupBy&&this.table.modExists("groupRows")&&this.table.modules.groupRows.updateGroupRows(!0),this._rebindRow(t.component,i)},rowMove:function(t){this.table.rowManager.moveRowActual(t.component,this.table.rowManager.rows[t.data.posFrom],!t.data.after),this.table.rowManager.redraw()}},B.prototype.redoers={cellEdit:function(t){t.component.setValueProcessData(t.data.newValue)},rowAdd:function(t){var i=this.table.rowManager.addRowActual(t.data.data,t.data.pos,t.data.index);this.table.options.groupBy&&this.table.modExists("groupRows")&&this.table.modules.groupRows.updateGroupRows(!0),this._rebindRow(t.component,i)},rowDelete:function(t){t.component.deleteActual()},rowMove:function(t){this.table.rowManager.moveRowActual(t.component,this.table.rowManager.rows[t.data.posTo],t.data.after),this.table.rowManager.redraw()}},B.prototype._rebindRow=function(t,i){this.history.forEach((function(o){if(o.component instanceof g)o.component===t&&(o.component=i);else if(o.component instanceof x&&o.component.row===t){var n=o.component.column.getField();n&&(o.component=i.getCell(n))}}))},k.prototype.registerModule("history",B);var W=function(t){this.table=t,this.fieldIndex=[],this.hasIndex=!1};W.prototype.parseTable=function(){var t=this,i=t.table.element,o=t.table.options,n=i.getElementsByTagName("th"),r=i.getElementsByTagName("tbody")[0],e=[];t.hasIndex=!1,t.table.options.htmlImporting.call(this.table),r=r?r.getElementsByTagName("tr"):[],t._extractOptions(i,o),n.length?t._extractHeaders(n,r):t._generateBlankHeaders(n,r);for(var s=0;s<r.length;s++){var a=r[s].getElementsByTagName("td"),h={};t.hasIndex||(h[o.index]=s);for(var u=0;u<a.length;u++)void 0!==this.fieldIndex[u]&&(h[this.fieldIndex[u]]=a[u].innerHTML);e.push(h)}var c=document.createElement("div"),f=i.attributes;for(var u in f)"object"==l(f[u])&&c.setAttribute(f[u].name,f[u].value);i.parentNode.replaceChild(c,i),o.data=e,t.table.options.htmlImported.call(this.table),this.table.element=c},W.prototype._extractOptions=function(t,i,o){var n=t.attributes,r=o?Object.assign([],o):Object.keys(i),e={};for(var s in r.forEach((function(t){e[t.toLowerCase()]=t})),n){var a,h=n[s];h&&"object"==(void 0===h?"undefined":l(h))&&h.name&&0===h.name.indexOf("tabulator-")&&(a=h.name.replace("tabulator-",""),void 0!==e[a]&&(i[e[a]]=this._attribValue(h.value)))}},W.prototype._attribValue=function(t){return"true"===t||"false"!==t&&t},W.prototype._findCol=function(t){return this.table.options.columns.find((function(i){return i.title===t}))||!1},W.prototype._extractHeaders=function(t){for(var i=0;i<t.length;i++){var o,n=t[i],r=!1,e=this._findCol(n.textContent);e?r=!0:e={title:n.textContent.trim()},e.field||(e.field=n.textContent.trim().toLowerCase().replace(" ","_")),(o=n.getAttribute("width"))&&!e.width&&(e.width=o),this._extractOptions(n,e,b.prototype.defaultOptionList),this.fieldIndex[i]=e.field,e.field==this.table.options.index&&(this.hasIndex=!0),r||this.table.options.columns.push(e)}},W.prototype._generateBlankHeaders=function(t){for(var i=0;i<t.length;i++){var o=t[i],n={title:"",field:"col"+i};this.fieldIndex[i]=n.field;var r=o.getAttribute("width");r&&(n.width=r),this.table.options.columns.push(n)}},k.prototype.registerModule("htmlTableImport",W);var q=function(t){this.table=t,this.watchKeys=null,this.pressedKeys=null,this.keyupBinding=!1,this.keydownBinding=!1};q.prototype.initialize=function(){var t=this.table.options.keybindings,i={};if(this.watchKeys={},this.pressedKeys=[],!1!==t){for(var o in this.bindings)i[o]=this.bindings[o];if(Object.keys(t).length)for(var n in t)i[n]=t[n];this.mapBindings(i),this.bindEvents()}},q.prototype.mapBindings=function(t){var i=this,o=this,n=function(n){i.actions[n]?t[n]&&("object"!==l(t[n])&&(t[n]=[t[n]]),t[n].forEach((function(t){o.mapBinding(n,t)}))):console.warn("Key Binding Error - no such action:",n)};for(var r in t)n(r)},q.prototype.mapBinding=function(t,i){var o=this,n={action:this.actions[t],keys:[],ctrl:!1,shift:!1,meta:!1};i.toString().toLowerCase().split(" ").join("").split("+").forEach((function(t){switch(t){case"ctrl":n.ctrl=!0;break;case"shift":n.shift=!0;break;case"meta":n.meta=!0;break;default:t=parseInt(t),n.keys.push(t),o.watchKeys[t]||(o.watchKeys[t]=[]),o.watchKeys[t].push(n)}}))},q.prototype.bindEvents=function(){var t=this;this.keyupBinding=function(i){var o=i.keyCode,n=t.watchKeys[o];n&&(t.pressedKeys.push(o),n.forEach((function(o){t.checkBinding(i,o)})))},this.keydownBinding=function(i){var o=i.keyCode;if(t.watchKeys[o]){var n=t.pressedKeys.indexOf(o);n>-1&&t.pressedKeys.splice(n,1)}},this.table.element.addEventListener("keydown",this.keyupBinding),this.table.element.addEventListener("keyup",this.keydownBinding)},q.prototype.clearBindings=function(){this.keyupBinding&&this.table.element.removeEventListener("keydown",this.keyupBinding),this.keydownBinding&&this.table.element.removeEventListener("keyup",this.keydownBinding)},q.prototype.checkBinding=function(t,i){var o=this,n=!0;return t.ctrlKey==i.ctrl&&t.shiftKey==i.shift&&t.metaKey==i.meta&&(i.keys.forEach((function(t){-1==o.pressedKeys.indexOf(t)&&(n=!1)})),n&&i.action.call(o,t),!0)},q.prototype.bindings={navPrev:"shift + 9",navNext:9,navUp:38,navDown:40,scrollPageUp:33,scrollPageDown:34,scrollToStart:36,scrollToEnd:35,undo:"ctrl + 90",redo:"ctrl + 89",copyToClipboard:"ctrl + 67"},q.prototype.actions={keyBlock:function(t){t.stopPropagation(),t.preventDefault()},scrollPageUp:function(t){var i=this.table.rowManager,o=i.scrollTop-i.height;t.preventDefault(),i.displayRowsCount&&(o>=0?i.element.scrollTop=o:i.scrollToRow(i.getDisplayRows()[0])),this.table.element.focus()},scrollPageDown:function(t){var i=this.table.rowManager,o=i.scrollTop+i.height,n=i.element.scrollHeight;t.preventDefault(),i.displayRowsCount&&(o<=n?i.element.scrollTop=o:i.scrollToRow(i.getDisplayRows()[i.displayRowsCount-1])),this.table.element.focus()},scrollToStart:function(t){var i=this.table.rowManager;t.preventDefault(),i.displayRowsCount&&i.scrollToRow(i.getDisplayRows()[0]),this.table.element.focus()},scrollToEnd:function(t){var i=this.table.rowManager;t.preventDefault(),i.displayRowsCount&&i.scrollToRow(i.getDisplayRows()[i.displayRowsCount-1]),this.table.element.focus()},navPrev:function(t){var i=!1;this.table.modExists("edit")&&(i=this.table.modules.edit.currentCell)&&(t.preventDefault(),i.nav().prev())},navNext:function(t){var i,o=!1,n=this.table.options.tabEndNewRow;this.table.modExists("edit")&&(o=this.table.modules.edit.currentCell)&&(t.preventDefault(),(i=o.nav()).next()||n&&(o.getElement().firstChild.blur(),(n=this.table.addRow(!0===n?{}:"function"==typeof n?n(o.row.getComponent()):Object.assign({},n))).then((function(){setTimeout((function(){i.next()}))}))))},navLeft:function(t){var i=!1;this.table.modExists("edit")&&(i=this.table.modules.edit.currentCell)&&(t.preventDefault(),i.nav().left())},navRight:function(t){var i=!1;this.table.modExists("edit")&&(i=this.table.modules.edit.currentCell)&&(t.preventDefault(),i.nav().right())},navUp:function(t){var i=!1;this.table.modExists("edit")&&(i=this.table.modules.edit.currentCell)&&(t.preventDefault(),i.nav().up())},navDown:function(t){var i=!1;this.table.modExists("edit")&&(i=this.table.modules.edit.currentCell)&&(t.preventDefault(),i.nav().down())},undo:function(t){this.table.options.history&&this.table.modExists("history")&&this.table.modExists("edit")&&(this.table.modules.edit.currentCell||(t.preventDefault(),this.table.modules.history.undo()))},redo:function(t){this.table.options.history&&this.table.modExists("history")&&this.table.modExists("edit")&&(this.table.modules.edit.currentCell||(t.preventDefault(),this.table.modules.history.redo()))},copyToClipboard:function(){this.table.modules.edit.currentCell||this.table.modExists("clipboard",!0)&&this.table.modules.clipboard.copy(!1,!0)}},k.prototype.registerModule("keybindings",q);var Y=function(t){this.table=t,this.menuElements=[],this.blurEvent=this.hideMenu.bind(this),this.escEvent=this.escMenu.bind(this),this.nestedMenuBlock=!1,this.positionReversedX=!1};Y.prototype.initializeColumnHeader=function(t){var i,o=this;t.definition.headerContextMenu&&(t.getElement().addEventListener("contextmenu",this.LoadMenuEvent.bind(this,t,t.definition.headerContextMenu)),this.tapHold(t,t.definition.headerContextMenu)),t.definition.headerMenu&&((i=document.createElement("span")).classList.add("tabulator-header-menu-button"),i.innerHTML="⋮",i.addEventListener("click",(function(i){i.stopPropagation(),i.preventDefault(),o.LoadMenuEvent(t,t.definition.headerMenu,i)})),t.titleElement.insertBefore(i,t.titleElement.firstChild))},Y.prototype.LoadMenuEvent=function(t,i,o){i="function"==typeof i?i.call(this.table,t.getComponent(),o):i,this.loadMenu(o,t,i)},Y.prototype.tapHold=function(t,i){var o=this,n=t.getElement(),r=null,e=!1;n.addEventListener("touchstart",(function(n){clearTimeout(r),e=!1,r=setTimeout((function(){clearTimeout(r),r=null,e=!0,o.LoadMenuEvent(t,i,n)}),1e3)}),{passive:!0}),n.addEventListener("touchend",(function(t){clearTimeout(r),r=null,e&&t.preventDefault()}))},Y.prototype.initializeCell=function(t){t.column.definition.contextMenu&&(t.getElement(!0).addEventListener("contextmenu",this.LoadMenuEvent.bind(this,t,t.column.definition.contextMenu)),this.tapHold(t,t.column.definition.contextMenu)),t.column.definition.clickMenu&&t.getElement(!0).addEventListener("click",this.LoadMenuEvent.bind(this,t,t.column.definition.clickMenu))},Y.prototype.initializeRow=function(t){this.table.options.rowContextMenu&&(t.getElement().addEventListener("contextmenu",this.LoadMenuEvent.bind(this,t,this.table.options.rowContextMenu)),this.tapHold(t,this.table.options.rowContextMenu)),this.table.options.rowClickMenu&&t.getElement().addEventListener("click",this.LoadMenuEvent.bind(this,t,this.table.options.rowClickMenu))},Y.prototype.initializeGroup=function(t){this.table.options.groupContextMenu&&(t.getElement().addEventListener("contextmenu",this.LoadMenuEvent.bind(this,t,this.table.options.groupContextMenu)),this.tapHold(t,this.table.options.groupContextMenu)),this.table.options.groupClickMenu&&t.getElement().addEventListener("click",this.LoadMenuEvent.bind(this,t,this.table.options.groupClickMenu))},Y.prototype.loadMenu=function(t,i,o,n){var r=this,e=!(t instanceof MouseEvent),s=document.createElement("div");if(s.classList.add("tabulator-menu"),e||t.preventDefault(),o&&o.length){if(!n){if(this.nestedMenuBlock){if(this.isOpen())return}else this.nestedMenuBlock=setTimeout((function(){r.nestedMenuBlock=!1}),100);this.hideMenu(),this.menuElements=[]}o.forEach((function(t){var o=document.createElement("div"),n=t.label,e=t.disabled;t.separator?o.classList.add("tabulator-menu-separator"):(o.classList.add("tabulator-menu-item"),"function"==typeof n&&(n=n.call(r.table,i.getComponent())),n instanceof Node?o.appendChild(n):o.innerHTML=n,"function"==typeof e&&(e=e.call(r.table,i.getComponent())),e?(o.classList.add("tabulator-menu-item-disabled"),o.addEventListener("click",(function(t){t.stopPropagation()}))):t.menu&&t.menu.length?o.addEventListener("click",(function(n){n.stopPropagation(),r.hideOldSubMenus(s),r.loadMenu(n,i,t.menu,o)})):t.action&&o.addEventListener("click",(function(o){t.action(o,i.getComponent())})),t.menu&&t.menu.length&&o.classList.add("tabulator-menu-item-submenu")),s.appendChild(o)})),s.addEventListener("click",(function(){r.hideMenu()})),this.menuElements.push(s),this.positionMenu(s,n,e,t)}},Y.prototype.hideOldSubMenus=function(t){var i=this.menuElements.indexOf(t);if(i>-1)for(var o=this.menuElements.length-1;o>i;o--){var n=this.menuElements[o];n.parentNode&&n.parentNode.removeChild(n),this.menuElements.pop()}},Y.prototype.positionMenu=function(t,i,o,n){var r,e,s,a=this,h=Math.max(document.body.offsetHeight,window.innerHeight);i?(r=(s=k.prototype.helpers.elOffset(i)).left+i.offsetWidth,e=s.top-1):(r=o?n.touches[0].pageX:n.pageX,e=o?n.touches[0].pageY:n.pageY,this.positionReversedX=!1),t.style.top=e+"px",t.style.left=r+"px",setTimeout((function(){a.table.rowManager.element.addEventListener("scroll",a.blurEvent),document.body.addEventListener("click",a.blurEvent),document.body.addEventListener("contextmenu",a.blurEvent),window.addEventListener("resize",a.blurEvent),document.body.addEventListener("keydown",a.escEvent)}),100),document.body.appendChild(t),e+t.offsetHeight>=h&&(t.style.top="",t.style.bottom=i?h-s.top-i.offsetHeight-1+"px":h-e+"px"),(r+t.offsetWidth>=document.body.offsetWidth||this.positionReversedX)&&(t.style.left="",t.style.right=i?document.documentElement.offsetWidth-s.left+"px":document.documentElement.offsetWidth-r+"px",this.positionReversedX=!0)},Y.prototype.isOpen=function(){return!!this.menuElements.length},Y.prototype.escMenu=function(t){27==t.keyCode&&this.hideMenu()},Y.prototype.hideMenu=function(){this.menuElements.forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)})),document.body.removeEventListener("keydown",this.escEvent),document.body.removeEventListener("click",this.blurEvent),document.body.removeEventListener("contextmenu",this.blurEvent),window.removeEventListener("resize",this.blurEvent),this.table.rowManager.element.removeEventListener("scroll",this.blurEvent)},Y.prototype.menus={},k.prototype.registerModule("menu",Y);var G=function(t){this.table=t,this.placeholderElement=this.createPlaceholderElement(),this.hoverElement=!1,this.checkTimeout=!1,this.checkPeriod=250,this.moving=!1,this.toCol=!1,this.toColAfter=!1,this.startX=0,this.autoScrollMargin=40,this.autoScrollStep=5,this.autoScrollTimeout=!1,this.touchMove=!1,this.moveHover=this.moveHover.bind(this),this.endMove=this.endMove.bind(this)};G.prototype.createPlaceholderElement=function(){var t=document.createElement("div");return t.classList.add("tabulator-col"),t.classList.add("tabulator-col-placeholder"),t},G.prototype.initializeColumn=function(t){var i,o=this,n={};t.modules.frozen||(i=t.getElement(),n.mousemove=function(n){t.parent===o.moving.parent&&((o.touchMove?n.touches[0].pageX:n.pageX)-k.prototype.helpers.elOffset(i).left+o.table.columnManager.element.scrollLeft>t.getWidth()/2?o.toCol===t&&o.toColAfter||(i.parentNode.insertBefore(o.placeholderElement,i.nextSibling),o.moveColumn(t,!0)):(o.toCol!==t||o.toColAfter)&&(i.parentNode.insertBefore(o.placeholderElement,i),o.moveColumn(t,!1)))}.bind(o),i.addEventListener("mousedown",(function(i){o.touchMove=!1,1===i.which&&(o.checkTimeout=setTimeout((function(){o.startMove(i,t)}),o.checkPeriod))})),i.addEventListener("mouseup",(function(t){1===t.which&&o.checkTimeout&&clearTimeout(o.checkTimeout)})),o.bindTouchEvents(t)),t.modules.moveColumn=n},G.prototype.bindTouchEvents=function(t){var i,o,n,r,e,s,a=this,h=t.getElement(),u=!1;h.addEventListener("touchstart",(function(h){a.checkTimeout=setTimeout((function(){a.touchMove=!0,i=t.nextColumn(),n=i?i.getWidth()/2:0,o=t.prevColumn(),r=o?o.getWidth()/2:0,e=0,s=0,u=!1,a.startMove(h,t)}),a.checkPeriod)}),{passive:!0}),h.addEventListener("touchmove",(function(h){var c,l;a.moving&&(a.moveHover(h),u||(u=h.touches[0].pageX),(c=h.touches[0].pageX-u)>0?i&&c-e>n&&(l=i)!==t&&(u=h.touches[0].pageX,l.getElement().parentNode.insertBefore(a.placeholderElement,l.getElement().nextSibling),a.moveColumn(l,!0)):o&&-c-s>r&&(l=o)!==t&&(u=h.touches[0].pageX,l.getElement().parentNode.insertBefore(a.placeholderElement,l.getElement()),a.moveColumn(l,!1)),l&&(i=l.nextColumn(),e=n,n=i?i.getWidth()/2:0,o=l.prevColumn(),s=r,r=o?o.getWidth()/2:0))}),{passive:!0}),h.addEventListener("touchend",(function(t){a.checkTimeout&&clearTimeout(a.checkTimeout),a.moving&&a.endMove(t)}))},G.prototype.startMove=function(t,i){var o=i.getElement();this.moving=i,this.startX=(this.touchMove?t.touches[0].pageX:t.pageX)-k.prototype.helpers.elOffset(o).left,this.table.element.classList.add("tabulator-block-select"),this.placeholderElement.style.width=i.getWidth()+"px",this.placeholderElement.style.height=i.getHeight()+"px",o.parentNode.insertBefore(this.placeholderElement,o),o.parentNode.removeChild(o),this.hoverElement=o.cloneNode(!0),this.hoverElement.classList.add("tabulator-moving"),this.table.columnManager.getElement().appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.bottom="0",this.touchMove||(this._bindMouseMove(),document.body.addEventListener("mousemove",this.moveHover),document.body.addEventListener("mouseup",this.endMove)),this.moveHover(t)},G.prototype._bindMouseMove=function(){this.table.columnManager.columnsByIndex.forEach((function(t){t.modules.moveColumn.mousemove&&t.getElement().addEventListener("mousemove",t.modules.moveColumn.mousemove)}))},G.prototype._unbindMouseMove=function(){this.table.columnManager.columnsByIndex.forEach((function(t){t.modules.moveColumn.mousemove&&t.getElement().removeEventListener("mousemove",t.modules.moveColumn.mousemove)}))},G.prototype.moveColumn=function(t,i){var o=this.moving.getCells();this.toCol=t,this.toColAfter=i,i?t.getCells().forEach((function(t,i){var n=t.getElement(!0);n.parentNode.insertBefore(o[i].getElement(),n.nextSibling)})):t.getCells().forEach((function(t,i){var n=t.getElement(!0);n.parentNode.insertBefore(o[i].getElement(),n)}))},G.prototype.endMove=function(t){(1===t.which||this.touchMove)&&(this._unbindMouseMove(),this.placeholderElement.parentNode.insertBefore(this.moving.getElement(),this.placeholderElement.nextSibling),this.placeholderElement.parentNode.removeChild(this.placeholderElement),this.hoverElement.parentNode.removeChild(this.hoverElement),this.table.element.classList.remove("tabulator-block-select"),this.toCol&&this.table.columnManager.moveColumnActual(this.moving,this.toCol,this.toColAfter),this.moving=!1,this.toCol=!1,this.toColAfter=!1,this.touchMove||(document.body.removeEventListener("mousemove",this.moveHover),document.body.removeEventListener("mouseup",this.endMove)))},G.prototype.moveHover=function(t){var i,o=this,n=o.table.columnManager.getElement(),r=n.scrollLeft,e=(o.touchMove?t.touches[0].pageX:t.pageX)-k.prototype.helpers.elOffset(n).left+r;o.hoverElement.style.left=e-o.startX+"px",e-r<o.autoScrollMargin&&(o.autoScrollTimeout||(o.autoScrollTimeout=setTimeout((function(){i=Math.max(0,r-5),o.table.rowManager.getElement().scrollLeft=i,o.autoScrollTimeout=!1}),1))),r+n.clientWidth-e<o.autoScrollMargin&&(o.autoScrollTimeout||(o.autoScrollTimeout=setTimeout((function(){i=Math.min(n.clientWidth,r+5),o.table.rowManager.getElement().scrollLeft=i,o.autoScrollTimeout=!1}),1)))},k.prototype.registerModule("moveColumn",G);var X=function(t){this.table=t,this.placeholderElement=this.createPlaceholderElement(),this.hoverElement=!1,this.checkTimeout=!1,this.checkPeriod=150,this.moving=!1,this.toRow=!1,this.toRowAfter=!1,this.hasHandle=!1,this.startY=0,this.startX=0,this.moveHover=this.moveHover.bind(this),this.endMove=this.endMove.bind(this),this.tableRowDropEvent=!1,this.touchMove=!1,this.connection=!1,this.connectionSelectorsTables=!1,this.connectionSelectorsElements=!1,this.connectionElements=[],this.connections=[],this.connectedTable=!1,this.connectedRow=!1};X.prototype.createPlaceholderElement=function(){var t=document.createElement("div");return t.classList.add("tabulator-row"),t.classList.add("tabulator-row-placeholder"),t},X.prototype.initialize=function(){this.connectionSelectorsTables=this.table.options.movableRowsConnectedTables,this.connectionSelectorsElements=this.table.options.movableRowsConnectedElements,this.connection=this.connectionSelectorsTables||this.connectionSelectorsElements},X.prototype.setHandle=function(t){this.hasHandle=t},X.prototype.initializeGroupHeader=function(t){var i=this,o={};o.mouseup=function(t){i.tableRowDrop(t,row)}.bind(i),o.mousemove=function(o){var n;o.pageY-k.prototype.helpers.elOffset(t.element).top+i.table.rowManager.element.scrollTop>t.getHeight()/2?i.toRow===t&&i.toRowAfter||((n=t.getElement()).parentNode.insertBefore(i.placeholderElement,n.nextSibling),i.moveRow(t,!0)):(i.toRow!==t||i.toRowAfter)&&(n=t.getElement()).previousSibling&&(n.parentNode.insertBefore(i.placeholderElement,n),i.moveRow(t,!1))}.bind(i),t.modules.moveRow=o},X.prototype.initializeRow=function(t){var i,o=this,n={};n.mouseup=function(i){o.tableRowDrop(i,t)}.bind(o),n.mousemove=function(i){var n=t.getElement();i.pageY-k.prototype.helpers.elOffset(n).top+o.table.rowManager.element.scrollTop>t.getHeight()/2?o.toRow===t&&o.toRowAfter||(n.parentNode.insertBefore(o.placeholderElement,n.nextSibling),o.moveRow(t,!0)):(o.toRow!==t||o.toRowAfter)&&(n.parentNode.insertBefore(o.placeholderElement,n),o.moveRow(t,!1))}.bind(o),this.hasHandle||((i=t.getElement()).addEventListener("mousedown",(function(i){1===i.which&&(o.checkTimeout=setTimeout((function(){o.startMove(i,t)}),o.checkPeriod))})),i.addEventListener("mouseup",(function(t){1===t.which&&o.checkTimeout&&clearTimeout(o.checkTimeout)})),this.bindTouchEvents(t,t.getElement())),t.modules.moveRow=n},X.prototype.initializeCell=function(t){var i=this,o=t.getElement(!0);o.addEventListener("mousedown",(function(o){1===o.which&&(i.checkTimeout=setTimeout((function(){i.startMove(o,t.row)}),i.checkPeriod))})),o.addEventListener("mouseup",(function(t){1===t.which&&i.checkTimeout&&clearTimeout(i.checkTimeout)})),this.bindTouchEvents(t.row,o)},X.prototype.bindTouchEvents=function(t,i){var o,n,r,e,s,a,h=this,u=!1;i.addEventListener("touchstart",(function(i){h.checkTimeout=setTimeout((function(){h.touchMove=!0,o=t.nextRow(),r=o?o.getHeight()/2:0,n=t.prevRow(),e=n?n.getHeight()/2:0,s=0,a=0,u=!1,h.startMove(i,t)}),h.checkPeriod)}),{passive:!0}),i.addEventListener("touchmove",(function(i){var c,l;h.moving&&(i.preventDefault(),h.moveHover(i),u||(u=i.touches[0].pageY),(c=i.touches[0].pageY-u)>0?o&&c-s>r&&(l=o)!==t&&(u=i.touches[0].pageY,l.getElement().parentNode.insertBefore(h.placeholderElement,l.getElement().nextSibling),h.moveRow(l,!0)):n&&-c-a>e&&(l=n)!==t&&(u=i.touches[0].pageY,l.getElement().parentNode.insertBefore(h.placeholderElement,l.getElement()),h.moveRow(l,!1)),l&&(o=l.nextRow(),s=r,r=o?o.getHeight()/2:0,n=l.prevRow(),a=e,e=n?n.getHeight()/2:0))})),i.addEventListener("touchend",(function(t){h.checkTimeout&&clearTimeout(h.checkTimeout),h.moving&&(h.endMove(t),h.touchMove=!1)}))},X.prototype._bindMouseMove=function(){this.table.rowManager.getDisplayRows().forEach((function(t){"row"!==t.type&&"group"!==t.type||!t.modules.moveRow.mousemove||t.getElement().addEventListener("mousemove",t.modules.moveRow.mousemove)}))},X.prototype._unbindMouseMove=function(){this.table.rowManager.getDisplayRows().forEach((function(t){"row"!==t.type&&"group"!==t.type||!t.modules.moveRow.mousemove||t.getElement().removeEventListener("mousemove",t.modules.moveRow.mousemove)}))},X.prototype.startMove=function(t,i){var o=i.getElement();this.setStartPosition(t,i),this.moving=i,this.table.element.classList.add("tabulator-block-select"),this.placeholderElement.style.width=i.getWidth()+"px",this.placeholderElement.style.height=i.getHeight()+"px",this.connection?(this.table.element.classList.add("tabulator-movingrow-sending"),this.connectToTables(i)):(o.parentNode.insertBefore(this.placeholderElement,o),o.parentNode.removeChild(o)),this.hoverElement=o.cloneNode(!0),this.hoverElement.classList.add("tabulator-moving"),this.connection?(document.body.appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.top="0",this.hoverElement.style.width=this.table.element.clientWidth+"px",this.hoverElement.style.whiteSpace="nowrap",this.hoverElement.style.overflow="hidden",this.hoverElement.style.pointerEvents="none"):(this.table.rowManager.getTableElement().appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.top="0",this._bindMouseMove()),document.body.addEventListener("mousemove",this.moveHover),document.body.addEventListener("mouseup",this.endMove),this.moveHover(t)},X.prototype.setStartPosition=function(t,i){var o,n,r=this.touchMove?t.touches[0].pageX:t.pageX,e=this.touchMove?t.touches[0].pageY:t.pageY;o=i.getElement(),this.connection?(n=o.getBoundingClientRect(),this.startX=n.left-r+window.pageXOffset,this.startY=n.top-e+window.pageYOffset):this.startY=e-o.getBoundingClientRect().top},X.prototype.endMove=function(t){t&&1!==t.which&&!this.touchMove||(this._unbindMouseMove(),this.connection||(this.placeholderElement.parentNode.insertBefore(this.moving.getElement(),this.placeholderElement.nextSibling),this.placeholderElement.parentNode.removeChild(this.placeholderElement)),this.hoverElement.parentNode.removeChild(this.hoverElement),this.table.element.classList.remove("tabulator-block-select"),this.toRow&&this.table.rowManager.moveRow(this.moving,this.toRow,this.toRowAfter),this.moving=!1,this.toRow=!1,this.toRowAfter=!1,document.body.removeEventListener("mousemove",this.moveHover),document.body.removeEventListener("mouseup",this.endMove),this.connection&&(this.table.element.classList.remove("tabulator-movingrow-sending"),this.disconnectFromTables()))},X.prototype.moveRow=function(t,i){this.toRow=t,this.toRowAfter=i},X.prototype.moveHover=function(t){this.connection?this.moveHoverConnections.call(this,t):this.moveHoverTable.call(this,t)},X.prototype.moveHoverTable=function(t){var i=this.table.rowManager.getElement(),o=i.scrollTop,n=(this.touchMove?t.touches[0].pageY:t.pageY)-i.getBoundingClientRect().top+o;this.hoverElement.style.top=n-this.startY+"px"},X.prototype.moveHoverConnections=function(t){this.hoverElement.style.left=this.startX+(this.touchMove?t.touches[0].pageX:t.pageX)+"px",this.hoverElement.style.top=this.startY+(this.touchMove?t.touches[0].pageY:t.pageY)+"px"},X.prototype.elementRowDrop=function(t,i,o){this.table.options.movableRowsElementDrop&&this.table.options.movableRowsElementDrop(t,i,!!o&&o.getComponent())},X.prototype.connectToTables=function(t){var i,o=this;this.connectionSelectorsTables&&(i=this.table.modules.comms.getConnections(this.connectionSelectorsTables),this.table.options.movableRowsSendingStart.call(this.table,i),this.table.modules.comms.send(this.connectionSelectorsTables,"moveRow","connect",{row:t})),this.connectionSelectorsElements&&(this.connectionElements=[],Array.isArray(this.connectionSelectorsElements)||(this.connectionSelectorsElements=[this.connectionSelectorsElements]),this.connectionSelectorsElements.forEach((function(t){"string"==typeof t?o.connectionElements=o.connectionElements.concat(Array.prototype.slice.call(document.querySelectorAll(t))):o.connectionElements.push(t)})),this.connectionElements.forEach((function(t){var i=function(i){o.elementRowDrop(i,t,o.moving)};t.addEventListener("mouseup",i),t.tabulatorElementDropEvent=i,t.classList.add("tabulator-movingrow-receiving")})))},X.prototype.disconnectFromTables=function(){var t;this.connectionSelectorsTables&&(t=this.table.modules.comms.getConnections(this.connectionSelectorsTables),this.table.options.movableRowsSendingStop.call(this.table,t),this.table.modules.comms.send(this.connectionSelectorsTables,"moveRow","disconnect")),this.connectionElements.forEach((function(t){t.classList.remove("tabulator-movingrow-receiving"),t.removeEventListener("mouseup",t.tabulatorElementDropEvent),delete t.tabulatorElementDropEvent}))},X.prototype.connect=function(t,i){var o=this;return this.connectedTable?(console.warn("Move Row Error - Table cannot accept connection, already connected to table:",this.connectedTable),!1):(this.connectedTable=t,this.connectedRow=i,this.table.element.classList.add("tabulator-movingrow-receiving"),o.table.rowManager.getDisplayRows().forEach((function(t){"row"===t.type&&t.modules.moveRow&&t.modules.moveRow.mouseup&&t.getElement().addEventListener("mouseup",t.modules.moveRow.mouseup)})),o.tableRowDropEvent=o.tableRowDrop.bind(o),o.table.element.addEventListener("mouseup",o.tableRowDropEvent),this.table.options.movableRowsReceivingStart.call(this.table,i,t),!0)},X.prototype.disconnect=function(t){var i=this;t===this.connectedTable?(this.connectedTable=!1,this.connectedRow=!1,this.table.element.classList.remove("tabulator-movingrow-receiving"),i.table.rowManager.getDisplayRows().forEach((function(t){"row"===t.type&&t.modules.moveRow&&t.modules.moveRow.mouseup&&t.getElement().removeEventListener("mouseup",t.modules.moveRow.mouseup)})),i.table.element.removeEventListener("mouseup",i.tableRowDropEvent),this.table.options.movableRowsReceivingStop.call(this.table,t)):console.warn("Move Row Error - trying to disconnect from non connected table")},X.prototype.dropComplete=function(t,i,o){var n=!1;if(o){switch(l(this.table.options.movableRowsSender)){case"string":n=this.senders[this.table.options.movableRowsSender];break;case"function":n=this.table.options.movableRowsSender}n?n.call(this,this.moving.getComponent(),i?i.getComponent():void 0,t):this.table.options.movableRowsSender&&console.warn("Mover Row Error - no matching sender found:",this.table.options.movableRowsSender),this.table.options.movableRowsSent.call(this.table,this.moving.getComponent(),i?i.getComponent():void 0,t)}else this.table.options.movableRowsSentFailed.call(this.table,this.moving.getComponent(),i?i.getComponent():void 0,t);this.endMove()},X.prototype.tableRowDrop=function(t,i){var o=!1,n=!1;switch(t.stopImmediatePropagation(),l(this.table.options.movableRowsReceiver)){case"string":o=this.receivers[this.table.options.movableRowsReceiver];break;case"function":o=this.table.options.movableRowsReceiver}o?n=o.call(this,this.connectedRow.getComponent(),i?i.getComponent():void 0,this.connectedTable):console.warn("Mover Row Error - no matching receiver found:",this.table.options.movableRowsReceiver),n?this.table.options.movableRowsReceived.call(this.table,this.connectedRow.getComponent(),i?i.getComponent():void 0,this.connectedTable):this.table.options.movableRowsReceivedFailed.call(this.table,this.connectedRow.getComponent(),i?i.getComponent():void 0,this.connectedTable),this.table.modules.comms.send(this.connectedTable,"moveRow","dropcomplete",{row:i,success:n})},X.prototype.receivers={insert:function(t,i){return this.table.addRow(t.getData(),void 0,i),!0},add:function(t){return this.table.addRow(t.getData()),!0},update:function(t,i){return!!i&&(i.update(t.getData()),!0)},replace:function(t,i){return!!i&&(this.table.addRow(t.getData(),void 0,i),i.delete(),!0)}},X.prototype.senders={delete:function(t){t.delete()}},X.prototype.commsReceived=function(t,i,o){switch(i){case"connect":return this.connect(t,o.row);case"disconnect":return this.disconnect(t);case"dropcomplete":return this.dropComplete(t,o.row,o.success)}},k.prototype.registerModule("moveRow",X);var $=function(t){this.table=t,this.allowedTypes=["","data","edit","clipboard"],this.enabled=!0};$.prototype.initializeColumn=function(t){var i=this,o=!1,n={};this.allowedTypes.forEach((function(r){var e,s="mutator"+(r.charAt(0).toUpperCase()+r.slice(1));t.definition[s]&&(e=i.lookupMutator(t.definition[s]))&&(o=!0,n[s]={mutator:e,params:t.definition[s+"Params"]||{}})})),o&&(t.modules.mutate=n)},$.prototype.lookupMutator=function(t){var i=!1;switch(void 0===t?"undefined":l(t)){case"string":this.mutators[t]?i=this.mutators[t]:console.warn("Mutator Error - No such mutator found, ignoring: ",t);break;case"function":i=t}return i},$.prototype.transformRow=function(t,i,o){var n,r="mutator"+(i.charAt(0).toUpperCase()+i.slice(1));return this.enabled&&this.table.columnManager.traverse((function(e){var s,a,h;e.modules.mutate&&(s=e.modules.mutate[r]||e.modules.mutate.mutator||!1)&&(n=e.getFieldValue(void 0!==o?o:t),"data"!=i&&void 0===n||(h=e.getComponent(),a="function"==typeof s.params?s.params(n,t,i,h):s.params,e.setFieldValue(t,s.mutator(n,t,i,a,h))))})),t},$.prototype.transformCell=function(t,i){var o=t.column.modules.mutate.mutatorEdit||t.column.modules.mutate.mutator||!1,n={};return o?(n=Object.assign(n,t.row.getData()),t.column.setFieldValue(n,i),o.mutator(i,n,"edit",o.params,t.getComponent())):i},$.prototype.enable=function(){this.enabled=!0},$.prototype.disable=function(){this.enabled=!1},$.prototype.mutators={},k.prototype.registerModule("mutator",$);var Z=function(t){this.table=t,this.mode="local",this.progressiveLoad=!1,this.size=0,this.page=1,this.count=5,this.max=1,this.displayIndex=0,this.initialLoad=!0,this.pageSizes=[],this.dataReceivedNames={},this.dataSentNames={},this.createElements()};Z.prototype.createElements=function(){var t;this.element=document.createElement("span"),this.element.classList.add("tabulator-paginator"),this.pagesElement=document.createElement("span"),this.pagesElement.classList.add("tabulator-pages"),(t=document.createElement("button")).classList.add("tabulator-page"),t.setAttribute("type","button"),t.setAttribute("role","button"),t.setAttribute("aria-label",""),t.setAttribute("title",""),this.firstBut=t.cloneNode(!0),this.firstBut.setAttribute("data-page","first"),this.prevBut=t.cloneNode(!0),this.prevBut.setAttribute("data-page","prev"),this.nextBut=t.cloneNode(!0),this.nextBut.setAttribute("data-page","next"),this.lastBut=t.cloneNode(!0),this.lastBut.setAttribute("data-page","last"),this.table.options.paginationSizeSelector&&(this.pageSizeSelect=document.createElement("select"),this.pageSizeSelect.classList.add("tabulator-page-size"))},Z.prototype.generatePageSizeSelectList=function(){var t=this,i=[];if(this.pageSizeSelect){if(Array.isArray(this.table.options.paginationSizeSelector))this.pageSizes=i=this.table.options.paginationSizeSelector,-1==this.pageSizes.indexOf(this.size)&&i.unshift(this.size);else if(-1==this.pageSizes.indexOf(this.size)){i=[];for(var o=1;o<5;o++)i.push(this.size*o);this.pageSizes=i}else i=this.pageSizes;for(;this.pageSizeSelect.firstChild;)this.pageSizeSelect.removeChild(this.pageSizeSelect.firstChild);i.forEach((function(i){var o=document.createElement("option");o.value=i,!0===i?t.table.modules.localize.bind("pagination|all",(function(t){o.innerHTML=t})):o.innerHTML=i,t.pageSizeSelect.appendChild(o)})),this.pageSizeSelect.value=this.size}},Z.prototype.initialize=function(t){var i,o,n,r=this;this.dataSentNames=Object.assign({},this.paginationDataSentNames),this.dataSentNames=Object.assign(this.dataSentNames,this.table.options.paginationDataSent),this.dataReceivedNames=Object.assign({},this.paginationDataReceivedNames),this.dataReceivedNames=Object.assign(this.dataReceivedNames,this.table.options.paginationDataReceived),r.table.modules.localize.bind("pagination|first",(function(t){r.firstBut.innerHTML=t})),r.table.modules.localize.bind("pagination|first_title",(function(t){r.firstBut.setAttribute("aria-label",t),r.firstBut.setAttribute("title",t)})),r.table.modules.localize.bind("pagination|prev",(function(t){r.prevBut.innerHTML=t})),r.table.modules.localize.bind("pagination|prev_title",(function(t){r.prevBut.setAttribute("aria-label",t),r.prevBut.setAttribute("title",t)})),r.table.modules.localize.bind("pagination|next",(function(t){r.nextBut.innerHTML=t})),r.table.modules.localize.bind("pagination|next_title",(function(t){r.nextBut.setAttribute("aria-label",t),r.nextBut.setAttribute("title",t)})),r.table.modules.localize.bind("pagination|last",(function(t){r.lastBut.innerHTML=t})),r.table.modules.localize.bind("pagination|last_title",(function(t){r.lastBut.setAttribute("aria-label",t),r.lastBut.setAttribute("title",t)})),r.firstBut.addEventListener("click",(function(){r.setPage(1).then((function(){})).catch((function(){}))})),r.prevBut.addEventListener("click",(function(){r.previousPage().then((function(){})).catch((function(){}))})),r.nextBut.addEventListener("click",(function(){r.nextPage().then((function(){})).catch((function(){}))})),r.lastBut.addEventListener("click",(function(){r.setPage(r.max).then((function(){})).catch((function(){}))})),r.table.options.paginationElement&&(r.element=r.table.options.paginationElement),this.pageSizeSelect&&(i=document.createElement("label"),r.table.modules.localize.bind("pagination|page_size",(function(t){r.pageSizeSelect.setAttribute("aria-label",t),r.pageSizeSelect.setAttribute("title",t),i.innerHTML=t})),r.element.appendChild(i),r.element.appendChild(r.pageSizeSelect),r.pageSizeSelect.addEventListener("change",(function(){r.setPageSize("true"==r.pageSizeSelect.value||r.pageSizeSelect.value),r.setPage(1).then((function(){})).catch((function(){}))}))),r.element.appendChild(r.firstBut),r.element.appendChild(r.prevBut),r.element.appendChild(r.pagesElement),r.element.appendChild(r.nextBut),r.element.appendChild(r.lastBut),r.table.options.paginationElement||t||r.table.footerManager.append(r.element,r),r.mode=r.table.options.pagination,r.table.options.paginationSize?r.size=r.table.options.paginationSize:((o=document.createElement("div")).classList.add("tabulator-row"),o.style.visibility=t,(n=document.createElement("div")).classList.add("tabulator-cell"),n.innerHTML="Page Row Test",o.appendChild(n),r.table.rowManager.getTableElement().appendChild(o),r.size=Math.floor(r.table.rowManager.getElement().clientHeight/o.offsetHeight),r.table.rowManager.getTableElement().removeChild(o)),r.count=r.table.options.paginationButtonCount,r.generatePageSizeSelectList()},Z.prototype.initializeProgressive=function(t){this.initialize(!0),this.mode="progressive_"+t,this.progressiveLoad=!0},Z.prototype.setDisplayIndex=function(t){this.displayIndex=t},Z.prototype.getDisplayIndex=function(){return this.displayIndex},Z.prototype.setMaxRows=function(t){this.max=t?!0===this.size?1:Math.ceil(t/this.size):1,this.page>this.max&&(this.page=this.max)},Z.prototype.reset=function(t,i){return("local"==this.mode||t)&&(this.page=1),i&&(this.initialLoad=!0),!0},Z.prototype.setMaxPage=function(t){t=parseInt(t),this.max=t||1,this.page>this.max&&(this.page=this.max,this.trigger())},Z.prototype.setPage=function(t){var i=this,o=this;switch(t){case"first":return this.setPage(1);case"prev":return this.previousPage();case"next":return this.nextPage();case"last":return this.setPage(this.max)}return new Promise((function(n,r){(t=parseInt(t))>0&&t<=i.max||"local"!==i.mode?(i.page=t,i.trigger().then((function(){n()})).catch((function(){r()})),o.table.options.persistence&&o.table.modExists("persistence",!0)&&o.table.modules.persistence.config.page&&o.table.modules.persistence.save("page")):(console.warn("Pagination Error - Requested page is out of range of 1 - "+i.max+":",t),r())}))},Z.prototype.setPageToRow=function(t){var i=this;return new Promise((function(o,n){var r=i.table.rowManager.getDisplayRows(i.displayIndex-1).indexOf(t);if(r>-1){var e=!0===i.size?1:Math.ceil((r+1)/i.size);i.setPage(e).then((function(){o()})).catch((function(){n()}))}else console.warn("Pagination Error - Requested row is not visible"),n()}))},Z.prototype.setPageSize=function(t){!0!==t&&(t=parseInt(t)),t>0&&(this.size=t),this.pageSizeSelect&&this.generatePageSizeSelectList(),this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.page&&this.table.modules.persistence.save("page")},Z.prototype._setPageButtons=function(){for(var t=this,i=Math.floor((this.count-1)/2),o=Math.ceil((this.count-1)/2),n=this.max-this.page+i+1<this.count?this.max-this.count+1:Math.max(this.page-i,1),r=this.page<=o?Math.min(this.count,this.max):Math.min(this.page+o,this.max);t.pagesElement.firstChild;)t.pagesElement.removeChild(t.pagesElement.firstChild);1==t.page?(t.firstBut.disabled=!0,t.prevBut.disabled=!0):(t.firstBut.disabled=!1,t.prevBut.disabled=!1),t.page==t.max?(t.lastBut.disabled=!0,t.nextBut.disabled=!0):(t.lastBut.disabled=!1,t.nextBut.disabled=!1);for(var e=n;e<=r;e++)e>0&&e<=t.max&&t.pagesElement.appendChild(t._generatePageButton(e));this.footerRedraw()},Z.prototype._generatePageButton=function(t){var i=this,o=document.createElement("button");return o.classList.add("tabulator-page"),t==i.page&&o.classList.add("active"),o.setAttribute("type","button"),o.setAttribute("role","button"),i.table.modules.localize.bind("pagination|page_title",(function(i){o.setAttribute("aria-label",i+" "+t),o.setAttribute("title",i+" "+t)})),o.setAttribute("data-page",t),o.textContent=t,o.addEventListener("click",(function(){i.setPage(t).then((function(){})).catch((function(){}))})),o},Z.prototype.previousPage=function(){var t=this;return new Promise((function(i,o){t.page>1?(t.page--,t.trigger().then((function(){i()})).catch((function(){o()})),t.table.options.persistence&&t.table.modExists("persistence",!0)&&t.table.modules.persistence.config.page&&t.table.modules.persistence.save("page")):(console.warn("Pagination Error - Previous page would be less than page 1:",0),o())}))},Z.prototype.nextPage=function(){var t=this;return new Promise((function(i,o){t.page<t.max?(t.page++,t.trigger().then((function(){i()})).catch((function(){o()})),t.table.options.persistence&&t.table.modExists("persistence",!0)&&t.table.modules.persistence.config.page&&t.table.modules.persistence.save("page")):(t.progressiveLoad||console.warn("Pagination Error - Next page would be greater than maximum page of "+t.max+":",t.max+1),o())}))},Z.prototype.getPage=function(){return this.page},Z.prototype.getPageMax=function(){return this.max},Z.prototype.getPageSize=function(){return this.size},Z.prototype.getMode=function(){return this.mode},Z.prototype.getRows=function(t){var i,o,n;if("local"==this.mode){i=[],!0===this.size?(o=0,n=t.length):n=(o=this.size*(this.page-1))+parseInt(this.size),this._setPageButtons();for(var r=o;r<n;r++)t[r]&&i.push(t[r]);return i}return this._setPageButtons(),t.slice(0)},Z.prototype.trigger=function(){var t,i=this;return new Promise((function(o,n){switch(i.mode){case"local":t=i.table.rowManager.scrollLeft,i.table.rowManager.refreshActiveData("page"),i.table.rowManager.scrollHorizontal(t),i.table.options.pageLoaded.call(i.table,i.getPage()),o();break;case"remote":case"progressive_load":case"progressive_scroll":i.table.modules.ajax.blockActiveRequest(),i._getRemotePage().then((function(){o()})).catch((function(){n()}));break;default:console.warn("Pagination Error - no such pagination mode:",i.mode),n()}}))},Z.prototype._getRemotePage=function(){var t,i,o=this,n=this;return new Promise((function(r,e){if(n.table.modExists("ajax",!0)||e(),t=k.prototype.helpers.deepClone(n.table.modules.ajax.getParams()||{}),(i=n.table.modules.ajax.getParams())[o.dataSentNames.page]=n.page,o.size&&(i[o.dataSentNames.size]=o.size),o.table.options.ajaxSorting&&o.table.modExists("sort")){var s=n.table.modules.sort.getSort();s.forEach((function(t){delete t.column})),i[o.dataSentNames.sorters]=s}if(o.table.options.ajaxFiltering&&o.table.modExists("filter")){var a=n.table.modules.filter.getFilters(!0,!0);i[o.dataSentNames.filters]=a}n.table.modules.ajax.setParams(i),n.table.modules.ajax.sendRequest(o.progressiveLoad).then((function(t){n._parseRemoteData(t),r()})).catch((function(){e()})),n.table.modules.ajax.setParams(t)}))},Z.prototype._parseRemoteData=function(t){var i,o=this;if(void 0===t[this.dataReceivedNames.last_page]&&console.warn("Remote Pagination Error - Server response missing '"+this.dataReceivedNames.last_page+"' property"),t[this.dataReceivedNames.data]){if(this.max=parseInt(t[this.dataReceivedNames.last_page])||1,this.progressiveLoad)switch(this.mode){case"progressive_load":1==this.page?this.table.rowManager.setData(t[this.dataReceivedNames.data],!1,this.initialLoad&&1==this.page):this.table.rowManager.addRows(t[this.dataReceivedNames.data]),this.page<this.max&&setTimeout((function(){o.nextPage().then((function(){})).catch((function(){}))}),o.table.options.ajaxProgressiveLoadDelay);break;case"progressive_scroll":t=this.table.rowManager.getData().concat(t[this.dataReceivedNames.data]),this.table.rowManager.setData(t,!0,this.initialLoad&&1==this.page),o.table.rowManager.element.scrollHeight<=o.table.rowManager.element.clientHeight+(this.table.options.ajaxProgressiveLoadScrollMargin||2*this.table.rowManager.element.clientHeight)&&o.nextPage().then((function(){})).catch((function(){}))}else i=this.table.rowManager.scrollLeft,this.table.rowManager.setData(t[this.dataReceivedNames.data],!1,this.initialLoad&&1==this.page),this.table.rowManager.scrollHorizontal(i),this.table.columnManager.scrollHorizontal(i),this.table.options.pageLoaded.call(this.table,this.getPage());this.initialLoad=!1}else console.warn("Remote Pagination Error - Server response missing '"+this.dataReceivedNames.data+"' property")},Z.prototype.footerRedraw=function(){var t=this.table.footerManager.element;Math.ceil(t.clientWidth)-t.scrollWidth<0?this.pagesElement.style.display="none":(this.pagesElement.style.display="",Math.ceil(t.clientWidth)-t.scrollWidth<0&&(this.pagesElement.style.display="none"))},Z.prototype.paginationDataSentNames={page:"page",size:"size",sorters:"sorters",filters:"filters"},Z.prototype.paginationDataReceivedNames={current_page:"current_page",last_page:"last_page",data:"data"},k.prototype.registerModule("page",Z);var K=function(t){this.table=t,this.mode="",this.id="",this.defWatcherBlock=!1,this.config={},this.readFunc=!1,this.writeFunc=!1};K.prototype.localStorageTest=function(){var t="_tabulator_test";try{return window.localStorage.setItem(t,t),window.localStorage.removeItem(t),!0}catch(t){return!1}},K.prototype.initialize=function(){var t,i=this.table.options.persistenceMode,o=this.table.options.persistenceID;this.mode=!0!==i?i:this.localStorageTest()?"local":"cookie",this.table.options.persistenceReaderFunc?"function"==typeof this.table.options.persistenceReaderFunc?this.readFunc=this.table.options.persistenceReaderFunc:this.readers[this.table.options.persistenceReaderFunc]?this.readFunc=this.readers[this.table.options.persistenceReaderFunc]:console.warn("Persistence Read Error - invalid reader set",this.table.options.persistenceReaderFunc):this.readers[this.mode]?this.readFunc=this.readers[this.mode]:console.warn("Persistence Read Error - invalid reader set",this.mode),this.table.options.persistenceWriterFunc?"function"==typeof this.table.options.persistenceWriterFunc?this.writeFunc=this.table.options.persistenceWriterFunc:this.readers[this.table.options.persistenceWriterFunc]?this.writeFunc=this.readers[this.table.options.persistenceWriterFunc]:console.warn("Persistence Write Error - invalid reader set",this.table.options.persistenceWriterFunc):this.writers[this.mode]?this.writeFunc=this.writers[this.mode]:console.warn("Persistence Write Error - invalid writer set",this.mode),this.id="tabulator-"+(o||this.table.element.getAttribute("id")||""),this.config={sort:!0===this.table.options.persistence||this.table.options.persistence.sort,filter:!0===this.table.options.persistence||this.table.options.persistence.filter,group:!0===this.table.options.persistence||this.table.options.persistence.group,page:!0===this.table.options.persistence||this.table.options.persistence.page,columns:!0===this.table.options.persistence?["title","width","visible"]:this.table.options.persistence.columns},this.config.page&&(t=this.retreiveData("page"))&&(void 0===t.paginationSize||!0!==this.config.page&&!this.config.page.size||(this.table.options.paginationSize=t.paginationSize),void 0===t.paginationInitialPage||!0!==this.config.page&&!this.config.page.page||(this.table.options.paginationInitialPage=t.paginationInitialPage)),this.config.group&&(t=this.retreiveData("group"))&&(void 0===t.groupBy||!0!==this.config.group&&!this.config.group.groupBy||(this.table.options.groupBy=t.groupBy),void 0===t.groupStartOpen||!0!==this.config.group&&!this.config.group.groupStartOpen||(this.table.options.groupStartOpen=t.groupStartOpen),void 0===t.groupHeader||!0!==this.config.group&&!this.config.group.groupHeader||(this.table.options.groupHeader=t.groupHeader)),this.config.columns&&(this.table.options.columns=this.load("columns",this.table.options.columns))},K.prototype.initializeColumn=function(t){var i,o=this;this.config.columns&&(this.defWatcherBlock=!0,i=t.getDefinition(),(!0===this.config.columns?Object.keys(i):this.config.columns).forEach((function(t){var n=Object.getOwnPropertyDescriptor(i,t),r=i[t];n&&Object.defineProperty(i,t,{set:function(t){r=t,o.defWatcherBlock||o.save("columns"),n.set&&n.set(t)},get:function(){return n.get&&n.get(),r}})})),this.defWatcherBlock=!1)},K.prototype.load=function(t,i){var o=this.retreiveData(t);return i&&(o=o?this.mergeDefinition(i,o):i),o},K.prototype.retreiveData=function(t){return!!this.readFunc&&this.readFunc(this.id,t)},K.prototype.mergeDefinition=function(t,i){var o=this,n=[];return(i=i||[]).forEach((function(i){var r,e=o._findColumn(t,i);e&&(!0===o.config.columns||null==o.config.columns?(r=Object.keys(e)).push("width"):r=o.config.columns,r.forEach((function(t){"columns"!==t&&void 0!==i[t]&&(e[t]=i[t])})),e.columns&&(e.columns=o.mergeDefinition(e.columns,i.columns)),n.push(e))})),t.forEach((function(t,r){o._findColumn(i,t)||(n.length>r?n.splice(r,0,t):n.push(t))})),n},K.prototype._findColumn=function(t,i){var o=i.columns?"group":i.field?"field":"object";return t.find((function(t){switch(o){case"group":return t.title===i.title&&t.columns.length===i.columns.length;case"field":return t.field===i.field;case"object":return t===i}}))},K.prototype.save=function(t){var i={};switch(t){case"columns":i=this.parseColumns(this.table.columnManager.getColumns());break;case"filter":i=this.table.modules.filter.getFilters();break;case"sort":i=this.validateSorters(this.table.modules.sort.getSort());break;case"group":i=this.getGroupConfig();break;case"page":i=this.getPageConfig()}this.writeFunc&&this.writeFunc(this.id,t,i)},K.prototype.validateSorters=function(t){return t.forEach((function(t){t.column=t.field,delete t.field})),t},K.prototype.getGroupConfig=function(){var t={};return this.config.group&&((!0===this.config.group||this.config.group.groupBy)&&(t.groupBy=this.table.options.groupBy),(!0===this.config.group||this.config.group.groupStartOpen)&&(t.groupStartOpen=this.table.options.groupStartOpen),(!0===this.config.group||this.config.group.groupHeader)&&(t.groupHeader=this.table.options.groupHeader)),t},K.prototype.getPageConfig=function(){var t={};return this.config.page&&((!0===this.config.page||this.config.page.size)&&(t.paginationSize=this.table.modules.page.getPageSize()),(!0===this.config.page||this.config.page.page)&&(t.paginationInitialPage=this.table.modules.page.getPage())),t},K.prototype.parseColumns=function(t){var i=this,o=[],n=["headerContextMenu","headerMenu","contextMenu","clickMenu"];return t.forEach((function(t){var r,e={},s=t.getDefinition();t.isGroup?(e.title=s.title,e.columns=i.parseColumns(t.getColumns())):(e.field=t.getField(),!0===i.config.columns||null==i.config.columns?(r=Object.keys(s)).push("width"):r=i.config.columns,r.forEach((function(i){switch(i){case"width":e.width=t.getWidth();break;case"visible":e.visible=t.visible;break;default:"function"!=typeof s[i]&&-1===n.indexOf(i)&&(e[i]=s[i])}}))),o.push(e)})),o},K.prototype.readers={local:function(t,i){var o=localStorage.getItem(t+"-"+i);return!!o&&JSON.parse(o)},cookie:function(t,i){var o,n,r=document.cookie,e=t+"-"+i,s=r.indexOf(e+"=");return s>-1&&((o=(r=r.substr(s)).indexOf(";"))>-1&&(r=r.substr(0,o)),n=r.replace(e+"=","")),!!n&&JSON.parse(n)}},K.prototype.writers={local:function(t,i,o){localStorage.setItem(t+"-"+i,JSON.stringify(o))},cookie:function(t,i,o){var n=new Date;n.setDate(n.getDate()+1e4),document.cookie=t+"-"+i+"="+JSON.stringify(o)+"; expires="+n.toUTCString()}},k.prototype.registerModule("persistence",K);var Q=function(t){this.table=t,this.element=!1,this.manualBlock=!1};Q.prototype.initialize=function(){window.addEventListener("beforeprint",this.replaceTable.bind(this)),window.addEventListener("afterprint",this.cleanup.bind(this))},Q.prototype.replaceTable=function(){this.manualBlock||(this.element=document.createElement("div"),this.element.classList.add("tabulator-print-table"),this.element.appendChild(this.table.modules.export.genereateTable(this.table.options.printConfig,this.table.options.printStyled,this.table.options.printRowRange,"print")),this.table.element.style.display="none",this.table.element.parentNode.insertBefore(this.element,this.table.element))},Q.prototype.cleanup=function(){document.body.classList.remove("tabulator-print-fullscreen-hide"),this.element&&this.element.parentNode&&(this.element.parentNode.removeChild(this.element),this.table.element.style.display="")},Q.prototype.printFullscreen=function(t,i,o){var n,r,e=window.scrollX,s=window.scrollY,a=document.createElement("div"),h=document.createElement("div"),u=this.table.modules.export.genereateTable(void 0!==o?o:this.table.options.printConfig,void 0!==i?i:this.table.options.printStyled,t,"print");this.manualBlock=!0,this.element=document.createElement("div"),this.element.classList.add("tabulator-print-fullscreen"),this.table.options.printHeader&&(a.classList.add("tabulator-print-header"),"string"==typeof(n="function"==typeof this.table.options.printHeader?this.table.options.printHeader.call(this.table):this.table.options.printHeader)?a.innerHTML=n:a.appendChild(n),this.element.appendChild(a)),this.element.appendChild(u),this.table.options.printFooter&&(h.classList.add("tabulator-print-footer"),"string"==typeof(r="function"==typeof this.table.options.printFooter?this.table.options.printFooter.call(this.table):this.table.options.printFooter)?h.innerHTML=r:h.appendChild(r),this.element.appendChild(h)),document.body.classList.add("tabulator-print-fullscreen-hide"),document.body.appendChild(this.element),this.table.options.printFormatter&&this.table.options.printFormatter(this.element,u),window.print(),this.cleanup(),window.scrollTo(e,s),this.manualBlock=!1},k.prototype.registerModule("print",Q);var tt=function(t){this.table=t,this.data=!1,this.blocked=!1,this.origFuncs={},this.currentVersion=0};tt.prototype.watchData=function(t){var i,o=this;this.currentVersion++,i=this.currentVersion,o.unwatchData(),o.data=t,o.origFuncs.push=t.push,Object.defineProperty(o.data,"push",{enumerable:!1,configurable:!0,value:function(){var n=Array.from(arguments);return o.blocked||i!==o.currentVersion||n.forEach((function(t){o.table.rowManager.addRowActual(t,!1)})),o.origFuncs.push.apply(t,arguments)}}),o.origFuncs.unshift=t.unshift,Object.defineProperty(o.data,"unshift",{enumerable:!1,configurable:!0,value:function(){var n=Array.from(arguments);return o.blocked||i!==o.currentVersion||n.forEach((function(t){o.table.rowManager.addRowActual(t,!0)})),o.origFuncs.unshift.apply(t,arguments)}}),o.origFuncs.shift=t.shift,Object.defineProperty(o.data,"shift",{enumerable:!1,configurable:!0,value:function(){var n;return o.blocked||i!==o.currentVersion||o.data.length&&(n=o.table.rowManager.getRowFromDataObject(o.data[0]))&&n.deleteActual(),o.origFuncs.shift.call(t)}}),o.origFuncs.pop=t.pop,Object.defineProperty(o.data,"pop",{enumerable:!1,configurable:!0,value:function(){var n;return o.blocked||i!==o.currentVersion||o.data.length&&(n=o.table.rowManager.getRowFromDataObject(o.data[o.data.length-1]))&&n.deleteActual(),o.origFuncs.pop.call(t)}}),o.origFuncs.splice=t.splice,Object.defineProperty(o.data,"splice",{enumerable:!1,configurable:!0,value:function(){var n,r=Array.from(arguments),e=r[0]<0?t.length+r[0]:r[0],s=r[1],a=!!r[2]&&r.slice(2);if(!o.blocked&&i===o.currentVersion){if(a&&((n=!!t[e]&&o.table.rowManager.getRowFromDataObject(t[e]))?a.forEach((function(t){o.table.rowManager.addRowActual(t,!0,n,!0)})):(a=a.slice().reverse()).forEach((function(t){o.table.rowManager.addRowActual(t,!0,!1,!0)}))),0!==s){var h=t.slice(e,void 0===r[1]?r[1]:e+s);h.forEach((function(t,i){var n=o.table.rowManager.getRowFromDataObject(t);n&&n.deleteActual(i!==h.length-1)}))}(a||0!==s)&&o.table.rowManager.reRenderInPosition()}return o.origFuncs.splice.apply(t,arguments)}})},tt.prototype.unwatchData=function(){if(!1!==this.data)for(var t in this.origFuncs)Object.defineProperty(this.data,t,{enumerable:!0,configurable:!0,writable:!0,value:this.origFuncs.key})},tt.prototype.watchRow=function(t){var i=t.getData();for(var o in this.blocked=!0,i)this.watchKey(t,i,o);this.table.options.dataTree&&this.watchTreeChildren(t),this.blocked=!1},tt.prototype.watchTreeChildren=function(t){var i=this,o=t.getData()[this.table.options.dataTreeChildField],n={};function r(){i.table.modules.dataTree.initializeRow(t),i.table.modules.dataTree.layoutRow(t),i.table.rowManager.refreshActiveData("tree",!1,!0)}o&&(n.push=o.push,Object.defineProperty(o,"push",{enumerable:!1,configurable:!0,value:function(){var t=n.push.apply(o,arguments);return r(),t}}),n.unshift=o.unshift,Object.defineProperty(o,"unshift",{enumerable:!1,configurable:!0,value:function(){var t=n.unshift.apply(o,arguments);return r(),t}}),n.shift=o.shift,Object.defineProperty(o,"shift",{enumerable:!1,configurable:!0,value:function(){var t=n.shift.call(o);return r(),t}}),n.pop=o.pop,Object.defineProperty(o,"pop",{enumerable:!1,configurable:!0,value:function(){var t=n.pop.call(o);return r(),t}}),n.splice=o.splice,Object.defineProperty(o,"splice",{enumerable:!1,configurable:!0,value:function(){var t=n.splice.apply(o,arguments);return r(),t}}))},tt.prototype.watchKey=function(t,i,o){var n=this,r=Object.getOwnPropertyDescriptor(i,o),e=i[o],s=this.currentVersion;Object.defineProperty(i,o,{set:function(i){if(e=i,!n.blocked&&s===n.currentVersion){var a={};a[o]=i,t.updateData(a)}r.set&&r.set(i)},get:function(){return r.get&&r.get(),e}})},tt.prototype.unwatchRow=function(t){var i=t.getData();for(var o in i)Object.defineProperty(i,o,{value:i[o]})},tt.prototype.block=function(){this.blocked=!0},tt.prototype.unblock=function(){this.blocked=!1},k.prototype.registerModule("reactiveData",tt);var it=function(t){this.table=t,this.startColumn=!1,this.startX=!1,this.startWidth=!1,this.handle=null,this.prevHandle=null};it.prototype.initializeColumn=function(t,i,o){var n=this,r=this.table.options.resizableColumns;if("header"===t&&(i.modules.resize={variableHeight:"textarea"==i.definition.formatter||i.definition.variableHeight}),!0===r||r==t){var e=document.createElement("div");e.className="tabulator-col-resize-handle";var s=document.createElement("div");s.className="tabulator-col-resize-handle prev",e.addEventListener("click",(function(t){t.stopPropagation()}));var a=function(t){var o=i.getLastColumn();o&&n._checkResizability(o)&&(n.startColumn=i,n._mouseDown(t,o,e))};e.addEventListener("mousedown",a),e.addEventListener("touchstart",a,{passive:!0}),e.addEventListener("dblclick",(function(t){var o=i.getLastColumn();o&&n._checkResizability(o)&&(t.stopPropagation(),o.reinitializeWidth(!0))})),s.addEventListener("click",(function(t){t.stopPropagation()}));var h=function(t){var o,r,e;(o=i.getFirstColumn())&&(e=(r=n.table.columnManager.findColumnIndex(o))>0&&n.table.columnManager.getColumnByIndex(r-1))&&n._checkResizability(e)&&(n.startColumn=i,n._mouseDown(t,e,s))};s.addEventListener("mousedown",h),s.addEventListener("touchstart",h,{passive:!0}),s.addEventListener("dblclick",(function(t){var o,r,e;(o=i.getFirstColumn())&&(e=(r=n.table.columnManager.findColumnIndex(o))>0&&n.table.columnManager.getColumnByIndex(r-1))&&n._checkResizability(e)&&(t.stopPropagation(),e.reinitializeWidth(!0))})),o.appendChild(e),o.appendChild(s)}},it.prototype._checkResizability=function(t){return void 0!==t.definition.resizable?t.definition.resizable:this.table.options.resizableColumns},it.prototype._mouseDown=function(t,i,o){var n=this;function r(t){i.setWidth(n.table.rtl?n.startWidth-((void 0===t.screenX?t.touches[0].screenX:t.screenX)-n.startX):n.startWidth+((void 0===t.screenX?t.touches[0].screenX:t.screenX)-n.startX)),n.table.options.virtualDomHoz&&n.table.vdomHoz.reinitialize(!0),!n.table.browserSlow&&i.modules.resize&&i.modules.resize.variableHeight&&i.checkCellHeights()}function e(){n.startColumn.modules.edit&&(n.startColumn.modules.edit.blocked=!1),n.table.browserSlow&&i.modules.resize&&i.modules.resize.variableHeight&&i.checkCellHeights(),document.body.removeEventListener("mouseup",e),document.body.removeEventListener("mousemove",r),o.removeEventListener("touchmove",r),o.removeEventListener("touchend",e),n.table.element.classList.remove("tabulator-block-select"),n.table.options.persistence&&n.table.modExists("persistence",!0)&&n.table.modules.persistence.config.columns&&n.table.modules.persistence.save("columns"),n.table.options.columnResized.call(n.table,i.getComponent())}n.table.element.classList.add("tabulator-block-select"),t.stopPropagation(),n.startColumn.modules.edit&&(n.startColumn.modules.edit.blocked=!0),n.startX=void 0===t.screenX?t.touches[0].screenX:t.screenX,n.startWidth=i.getWidth(),document.body.addEventListener("mousemove",r),document.body.addEventListener("mouseup",e),o.addEventListener("touchmove",r,{passive:!0}),o.addEventListener("touchend",e)},k.prototype.registerModule("resizeColumns",it);var ot=function(t){this.table=t,this.startColumn=!1,this.startY=!1,this.startHeight=!1,this.handle=null,this.prevHandle=null};ot.prototype.initializeRow=function(t){var i=this,o=t.getElement(),n=document.createElement("div");n.className="tabulator-row-resize-handle";var r=document.createElement("div");r.className="tabulator-row-resize-handle prev",n.addEventListener("click",(function(t){t.stopPropagation()}));var e=function(o){i.startRow=t,i._mouseDown(o,t,n)};n.addEventListener("mousedown",e),n.addEventListener("touchstart",e,{passive:!0}),r.addEventListener("click",(function(t){t.stopPropagation()}));var s=function(o){var n=i.table.rowManager.prevDisplayRow(t);n&&(i.startRow=n,i._mouseDown(o,n,r))};r.addEventListener("mousedown",s),r.addEventListener("touchstart",s,{passive:!0}),o.appendChild(n),o.appendChild(r)},ot.prototype._mouseDown=function(t,i,o){var n=this;function r(t){i.setHeight(n.startHeight+((void 0===t.screenY?t.touches[0].screenY:t.screenY)-n.startY))}function e(){document.body.removeEventListener("mouseup",r),document.body.removeEventListener("mousemove",r),o.removeEventListener("touchmove",r),o.removeEventListener("touchend",e),n.table.element.classList.remove("tabulator-block-select"),n.table.options.rowResized.call(this.table,i.getComponent())}n.table.element.classList.add("tabulator-block-select"),t.stopPropagation(),n.startY=void 0===t.screenY?t.touches[0].screenY:t.screenY,n.startHeight=i.getHeight(),document.body.addEventListener("mousemove",r),document.body.addEventListener("mouseup",e),o.addEventListener("touchmove",r,{passive:!0}),o.addEventListener("touchend",e)},k.prototype.registerModule("resizeRows",ot);var nt=function(t){this.table=t,this.binding=!1,this.observer=!1,this.containerObserver=!1,this.tableHeight=0,this.tableWidth=0,this.containerHeight=0,this.containerWidth=0,this.autoResize=!1};nt.prototype.initialize=function(){var t,i=this,o=this.table;this.tableHeight=o.element.clientHeight,this.tableWidth=o.element.clientWidth,o.element.parentNode&&(this.containerHeight=o.element.parentNode.clientHeight,this.containerWidth=o.element.parentNode.clientWidth),"undefined"!=typeof ResizeObserver&&"virtual"===o.rowManager.getRenderMode()?(this.autoResize=!0,this.observer=new ResizeObserver((function(t){if(!o.browserMobile||o.browserMobile&&!o.modules.edit.currentCell){var n=Math.floor(t[0].contentRect.height),r=Math.floor(t[0].contentRect.width);i.tableHeight==n&&i.tableWidth==r||(i.tableHeight=n,i.tableWidth=r,o.element.parentNode&&(i.containerHeight=o.element.parentNode.clientHeight,i.containerWidth=o.element.parentNode.clientWidth),o.options.virtualDomHoz&&o.vdomHoz.reinitialize(!0),o.redraw())}})),this.observer.observe(o.element),t=window.getComputedStyle(o.element),this.table.element.parentNode&&!this.table.rowManager.fixedHeight&&(t.getPropertyValue("max-height")||t.getPropertyValue("min-height"))&&(this.containerObserver=new ResizeObserver((function(t){if(!o.browserMobile||o.browserMobile&&!o.modules.edit.currentCell){var n=Math.floor(t[0].contentRect.height),r=Math.floor(t[0].contentRect.width);i.containerHeight==n&&i.containerWidth==r||(i.containerHeight=n,i.containerWidth=r,i.tableHeight=o.element.clientHeight,i.tableWidth=o.element.clientWidth),o.options.virtualDomHoz&&o.vdomHoz.reinitialize(!0),o.redraw()}})),this.containerObserver.observe(this.table.element.parentNode))):(this.binding=function(){(!o.browserMobile||o.browserMobile&&!o.modules.edit.currentCell)&&(o.options.virtualDomHoz&&o.vdomHoz.reinitialize(!0),o.redraw())},window.addEventListener("resize",this.binding))},nt.prototype.clearBindings=function(){this.binding&&window.removeEventListener("resize",this.binding),this.observer&&this.observer.unobserve(this.table.element),this.containerObserver&&this.containerObserver.unobserve(this.table.element.parentNode)},k.prototype.registerModule("resizeTable",nt);var rt=function(t){this.table=t,this.columns=[],this.hiddenColumns=[],this.mode="",this.index=0,this.collapseFormatter=[],this.collapseStartOpen=!0,this.collapseHandleColumn=!1};rt.prototype.initialize=function(){var t=this,i=[];this.mode=this.table.options.responsiveLayout,this.collapseFormatter=this.table.options.responsiveLayoutCollapseFormatter||this.formatCollapsedData,this.collapseStartOpen=this.table.options.responsiveLayoutCollapseStartOpen,this.hiddenColumns=[],this.table.columnManager.columnsByIndex.forEach((function(o,n){o.modules.responsive&&o.modules.responsive.order&&o.modules.responsive.visible&&(o.modules.responsive.index=n,i.push(o),o.visible||"collapse"!==t.mode||t.hiddenColumns.push(o))})),i=(i=i.reverse()).sort((function(t,i){return i.modules.responsive.order-t.modules.responsive.order||i.modules.responsive.index-t.modules.responsive.index})),this.columns=i,"collapse"===this.mode&&this.generateCollapsedContent();var o=this.table.columnManager.columnsByIndex,n=Array.isArray(o),r=0;for(o=n?o:o[Symbol.iterator]();;){var e;if(n){if(r>=o.length)break;e=o[r++]}else{if((r=o.next()).done)break;e=r.value}if("responsiveCollapse"==e.definition.formatter){this.collapseHandleColumn=e;break}}this.collapseHandleColumn&&(this.hiddenColumns.length?this.collapseHandleColumn.show():this.collapseHandleColumn.hide())},rt.prototype.initializeColumn=function(t){var i=t.getDefinition();t.modules.responsive={order:void 0===i.responsive?1:i.responsive,visible:!1!==i.visible}},rt.prototype.initializeRow=function(t){var i;"calc"!==t.type&&((i=document.createElement("div")).classList.add("tabulator-responsive-collapse"),t.modules.responsiveLayout={element:i,open:this.collapseStartOpen},this.collapseStartOpen||(i.style.display="none"))},rt.prototype.layoutRow=function(t){var i=t.getElement();t.modules.responsiveLayout&&(i.appendChild(t.modules.responsiveLayout.element),this.generateCollapsedRowContent(t))},rt.prototype.updateColumnVisibility=function(t,i){t.modules.responsive&&(t.modules.responsive.visible=i,this.initialize())},rt.prototype.hideColumn=function(t){var i=this.hiddenColumns.length;t.hide(!1,!0),"collapse"===this.mode&&(this.hiddenColumns.unshift(t),this.generateCollapsedContent(),this.collapseHandleColumn&&!i&&this.collapseHandleColumn.show())},rt.prototype.showColumn=function(t){var i;t.show(!1,!0),t.setWidth(t.getWidth()),"collapse"===this.mode&&((i=this.hiddenColumns.indexOf(t))>-1&&this.hiddenColumns.splice(i,1),this.generateCollapsedContent(),this.collapseHandleColumn&&!this.hiddenColumns.length&&this.collapseHandleColumn.hide())},rt.prototype.update=function(){for(var t=this,i=!0;i;){var o="fitColumns"==t.table.modules.layout.getMode()?t.table.columnManager.getFlexBaseWidth():t.table.columnManager.getWidth(),n=(t.table.options.headerVisible?t.table.columnManager.element.clientWidth:t.table.element.clientWidth)-o;if(n<0){var r=t.columns[t.index];r?(t.hideColumn(r),t.index++):i=!1}else{var e=t.columns[t.index-1];e&&n>0&&n>=e.getWidth()?(t.showColumn(e),t.index--):i=!1}t.table.rowManager.activeRowsCount||t.table.rowManager.renderEmptyScroll()}},rt.prototype.generateCollapsedContent=function(){var t=this;this.table.rowManager.getDisplayRows().forEach((function(i){t.generateCollapsedRowContent(i)}))},rt.prototype.generateCollapsedRowContent=function(t){var i,o;if(t.modules.responsiveLayout){for(i=t.modules.responsiveLayout.element;i.firstChild;)i.removeChild(i.firstChild);(o=this.collapseFormatter(this.generateCollapsedRowData(t)))&&i.appendChild(o)}},rt.prototype.generateCollapsedRowData=function(t){var i,o=this,n=t.getData(),r=[];return this.hiddenColumns.forEach((function(e){var s=e.getFieldValue(n);e.definition.title&&e.field&&(e.modules.format&&o.table.options.responsiveLayoutCollapseUseFormatters?(i={value:!1,data:{},getValue:function(){return s},getData:function(){return n},getElement:function(){return document.createElement("div")},getRow:function(){return t.getComponent()},getColumn:function(){return e.getComponent()}},r.push({field:e.field,title:e.definition.title,value:e.modules.format.formatter.call(o.table.modules.format,i,e.modules.format.params)})):r.push({field:e.field,title:e.definition.title,value:s}))})),r},rt.prototype.formatCollapsedData=function(t){var i=document.createElement("table");return t.forEach((function(t){var o,n=document.createElement("tr"),r=document.createElement("td"),e=document.createElement("td"),s=document.createElement("strong");r.appendChild(s),this.table.modules.localize.bind("columns|"+t.field,(function(i){s.innerText=i||t.title})),t.value instanceof Node?((o=document.createElement("div")).appendChild(t.value),e.appendChild(o)):e.innerHTML=t.value,n.appendChild(r),n.appendChild(e),i.appendChild(n)}),this),Object.keys(t).length?i:""},k.prototype.registerModule("responsiveLayout",rt);var et=function(t){this.table=t,this.selecting=!1,this.lastClickedRow=!1,this.selectPrev=[],this.selectedRows=[],this.headerCheckboxElement=null};et.prototype.clearSelectionData=function(t){this.selecting=!1,this.lastClickedRow=!1,this.selectPrev=[],this.selectedRows=[],t||this._rowSelectionChanged()},et.prototype.initializeRow=function(t){var i=this,o=t.getElement(),n=function t(){setTimeout((function(){i.selecting=!1}),50),document.body.removeEventListener("mouseup",t)};t.modules.select={selected:!1},i.table.options.selectableCheck.call(this.table,t.getComponent())?(o.classList.add("tabulator-selectable"),o.classList.remove("tabulator-unselectable"),i.table.options.selectable&&"highlight"!=i.table.options.selectable&&("click"===i.table.options.selectableRangeMode?o.addEventListener("click",(function(o){if(o.shiftKey){i.table._clearSelection(),i.lastClickedRow=i.lastClickedRow||t;var n=i.table.rowManager.getDisplayRowIndex(i.lastClickedRow),r=i.table.rowManager.getDisplayRowIndex(t),e=n<=r?n:r,s=n>=r?n:r,a=i.table.rowManager.getDisplayRows().slice(0).splice(e,s-e+1);o.ctrlKey||o.metaKey?(a.forEach((function(o){o!==i.lastClickedRow&&(!0===i.table.options.selectable||i.isRowSelected(t)||i.selectedRows.length<i.table.options.selectable)&&i.toggleRow(o)})),i.lastClickedRow=t):(i.deselectRows(void 0,!0),!0!==i.table.options.selectable&&a.length>i.table.options.selectable&&(a=a.slice(0,i.table.options.selectable)),i.selectRows(a)),i.table._clearSelection()}else o.ctrlKey||o.metaKey?(i.toggleRow(t),i.lastClickedRow=t):(i.deselectRows(void 0,!0),i.selectRows(t),i.lastClickedRow=t)})):(o.addEventListener("click",(function(){i.table.modExists("edit")&&i.table.modules.edit.getCurrentCell()||i.table._clearSelection(),i.selecting||i.toggleRow(t)})),o.addEventListener("mousedown",(function(o){if(o.shiftKey)return i.table._clearSelection(),i.selecting=!0,i.selectPrev=[],document.body.addEventListener("mouseup",n),document.body.addEventListener("keyup",n),i.toggleRow(t),!1})),o.addEventListener("mouseenter",(function(){i.selecting&&(i.table._clearSelection(),i.toggleRow(t),i.selectPrev[1]==t&&i.toggleRow(i.selectPrev[0]))})),o.addEventListener("mouseout",(function(){i.selecting&&(i.table._clearSelection(),i.selectPrev.unshift(t))}))))):(o.classList.add("tabulator-unselectable"),o.classList.remove("tabulator-selectable"))},et.prototype.toggleRow=function(t){this.table.options.selectableCheck.call(this.table,t.getComponent())&&(t.modules.select&&t.modules.select.selected?this._deselectRow(t):this._selectRow(t))},et.prototype.selectRows=function(t){var i,o=this;switch(void 0===t?"undefined":l(t)){case"undefined":this.table.rowManager.rows.forEach((function(t){o._selectRow(t,!0,!0)})),this._rowSelectionChanged();break;case"string":(i=this.table.rowManager.findRow(t))?this._selectRow(i,!0,!0):this.table.rowManager.getRows(t).forEach((function(t){o._selectRow(t,!0,!0)})),this._rowSelectionChanged();break;default:Array.isArray(t)?(t.forEach((function(t){o._selectRow(t,!0,!0)})),this._rowSelectionChanged()):this._selectRow(t,!1,!0)}},et.prototype._selectRow=function(t,i,o){if(!isNaN(this.table.options.selectable)&&!0!==this.table.options.selectable&&!o&&this.selectedRows.length>=this.table.options.selectable){if(!this.table.options.selectableRollingSelection)return!1;this._deselectRow(this.selectedRows[0])}var n=this.table.rowManager.findRow(t);n?-1==this.selectedRows.indexOf(n)&&(n.getElement().classList.add("tabulator-selected"),n.modules.select||(n.modules.select={}),n.modules.select.selected=!0,n.modules.select.checkboxEl&&(n.modules.select.checkboxEl.checked=!0),this.selectedRows.push(n),this.table.options.dataTreeSelectPropagate&&this.childRowSelection(n,!0),i||this.table.options.rowSelected.call(this.table,n.getComponent()),this._rowSelectionChanged(i)):i||console.warn("Selection Error - No such row found, ignoring selection:"+t)},et.prototype.isRowSelected=function(t){return-1!==this.selectedRows.indexOf(t)},et.prototype.deselectRows=function(t,i){var o,n=this;if(void 0===t){o=n.selectedRows.length;for(var r=0;r<o;r++)n._deselectRow(n.selectedRows[0],!0);n._rowSelectionChanged(i)}else Array.isArray(t)?(t.forEach((function(t){n._deselectRow(t,!0)})),n._rowSelectionChanged(i)):n._deselectRow(t,i)},et.prototype._deselectRow=function(t,i){var o,n=this,r=n.table.rowManager.findRow(t);r?(o=n.selectedRows.findIndex((function(t){return t==r})))>-1&&(r.getElement().classList.remove("tabulator-selected"),r.modules.select||(r.modules.select={}),r.modules.select.selected=!1,r.modules.select.checkboxEl&&(r.modules.select.checkboxEl.checked=!1),n.selectedRows.splice(o,1),this.table.options.dataTreeSelectPropagate&&this.childRowSelection(r,!1),i||n.table.options.rowDeselected.call(this.table,r.getComponent()),n._rowSelectionChanged(i)):i||console.warn("Deselection Error - No such row found, ignoring selection:"+t)},et.prototype.getSelectedData=function(){var t=[];return this.selectedRows.forEach((function(i){t.push(i.getData())})),t},et.prototype.getSelectedRows=function(){var t=[];return this.selectedRows.forEach((function(i){t.push(i.getComponent())})),t},et.prototype._rowSelectionChanged=function(t){this.headerCheckboxElement&&(0===this.selectedRows.length?(this.headerCheckboxElement.checked=!1,this.headerCheckboxElement.indeterminate=!1):this.table.rowManager.rows.length===this.selectedRows.length?(this.headerCheckboxElement.checked=!0,this.headerCheckboxElement.indeterminate=!1):(this.headerCheckboxElement.indeterminate=!0,this.headerCheckboxElement.checked=!1)),t||this.table.options.rowSelectionChanged.call(this.table,this.getSelectedData(),this.getSelectedRows())},et.prototype.registerRowSelectCheckbox=function(t,i){t._row.modules.select||(t._row.modules.select={}),t._row.modules.select.checkboxEl=i},et.prototype.registerHeaderSelectCheckbox=function(t){this.headerCheckboxElement=t},et.prototype.childRowSelection=function(t,i){var o=this.table.modules.dataTree.getChildren(t,!0);if(i){var n=o,r=Array.isArray(n),e=0;for(n=r?n:n[Symbol.iterator]();;){var s;if(r){if(e>=n.length)break;s=n[e++]}else{if((e=n.next()).done)break;s=e.value}this._selectRow(s,!0)}}else{var a=o,h=Array.isArray(a),u=0;for(a=h?a:a[Symbol.iterator]();;){var c;if(h){if(u>=a.length)break;c=a[u++]}else{if((u=a.next()).done)break;c=u.value}this._deselectRow(c,!0)}}},k.prototype.registerModule("selectRow",et);var st=function(t){this.table=t,this.sortList=[],this.changed=!1};st.prototype.initializeColumn=function(t,i){var o,n,r=this,e=!1;switch(l(t.definition.sorter)){case"string":r.sorters[t.definition.sorter]?e=r.sorters[t.definition.sorter]:console.warn("Sort Error - No such sorter found: ",t.definition.sorter);break;case"function":e=t.definition.sorter}t.modules.sort={sorter:e,dir:"none",params:t.definition.sorterParams||{},startingDir:t.definition.headerSortStartingDir||"asc",tristate:void 0!==t.definition.headerSortTristate?t.definition.headerSortTristate:this.table.options.headerSortTristate},(void 0===t.definition.headerSort?!1!==this.table.options.headerSort:!1!==t.definition.headerSort)&&((o=t.getElement()).classList.add("tabulator-sortable"),(n=document.createElement("div")).classList.add("tabulator-col-sorter"),"object"==l(this.table.options.headerSortElement)?n.appendChild(this.table.options.headerSortElement):n.innerHTML=this.table.options.headerSortElement,i.appendChild(n),t.modules.sort.element=n,o.addEventListener("click",(function(i){var o="",n=[],e=!1;if(t.modules.sort){if(t.modules.sort.tristate)o="none"==t.modules.sort.dir?t.modules.sort.startingDir:t.modules.sort.dir==t.modules.sort.startingDir?"asc"==t.modules.sort.dir?"desc":"asc":"none";else switch(t.modules.sort.dir){case"asc":o="desc";break;case"desc":o="asc";break;default:o=t.modules.sort.startingDir}r.table.options.columnHeaderSortMulti&&(i.shiftKey||i.ctrlKey)?((e=(n=r.getSort()).findIndex((function(i){return i.field===t.getField()})))>-1?(n[e].dir=o,e!=n.length-1&&(e=n.splice(e,1)[0],"none"!=o&&n.push(e))):"none"!=o&&n.push({column:t,dir:o}),r.setSort(n)):"none"==o?r.clear():r.setSort(t,o),r.table.rowManager.sorterRefresh(!r.sortList.length)}})))},st.prototype.hasChanged=function(){var t=this.changed;return this.changed=!1,t},st.prototype.getSort=function(){var t=[];return this.sortList.forEach((function(i){i.column&&t.push({column:i.column.getComponent(),field:i.column.getField(),dir:i.dir})})),t},st.prototype.setSort=function(t,i){var o=this,n=[];Array.isArray(t)||(t=[{column:t,dir:i}]),t.forEach((function(t){var i;(i=o.table.columnManager.findColumn(t.column))?(t.column=i,n.push(t),o.changed=!0):console.warn("Sort Warning - Sort field does not exist and is being ignored: ",t.column)})),o.sortList=n,this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.sort&&this.table.modules.persistence.save("sort")},st.prototype.clear=function(){this.setSort([])},st.prototype.findSorter=function(t){var i,o=this.table.rowManager.activeRows[0],n="string";if(o&&(o=o.getData(),t.getField()))switch(void 0===(i=t.getFieldValue(o))?"undefined":l(i)){case"undefined":n="string";break;case"boolean":n="boolean";break;default:isNaN(i)||""===i?i.match(/((^[0-9]+[a-z]+)|(^[a-z]+[0-9]+))+$/i)&&(n="alphanum"):n="number"}return this.sorters[n]},st.prototype.sort=function(t){var i=this,o=this.table.options.sortOrderReverse?i.sortList.slice().reverse():i.sortList,n=[],r=[];i.table.options.dataSorting&&i.table.options.dataSorting.call(i.table,i.getSort()),i.clearColumnHeaders(),i.table.options.ajaxSorting?o.forEach((function(t){i.setColumnHeader(t.column,t.dir)})):(o.forEach((function(t){var o=t.column.modules.sort;t.column&&o&&(o.sorter||(o.sorter=i.findSorter(t.column)),t.params="function"==typeof o.params?o.params(t.column.getComponent(),t.dir):o.params,n.push(t)),i.setColumnHeader(t.column,t.dir)})),n.length&&i._sortItems(t,n)),i.table.options.dataSorted&&(t.forEach((function(t){r.push(t.getComponent())})),i.table.options.dataSorted.call(i.table,i.getSort(),r))},st.prototype.clearColumnHeaders=function(){this.table.columnManager.getRealColumns().forEach((function(t){t.modules.sort&&(t.modules.sort.dir="none",t.getElement().setAttribute("aria-sort","none"))}))},st.prototype.setColumnHeader=function(t,i){t.modules.sort.dir=i,t.getElement().setAttribute("aria-sort",i)},st.prototype._sortItems=function(t,i){var o=this,n=i.length-1;t.sort((function(t,r){for(var e,s=n;s>=0;s--){var a=i[s];if(0!==(e=o._sortRow(t,r,a.column,a.dir,a.params)))break}return e}))},st.prototype._sortRow=function(t,i,o,n,r){var e,s,a="asc"==n?t:i,h="asc"==n?i:t;return t=void 0!==(t=o.getFieldValue(a.getData()))?t:"",i=void 0!==(i=o.getFieldValue(h.getData()))?i:"",e=a.getComponent(),s=h.getComponent(),o.modules.sort.sorter.call(this,t,i,e,s,o.getComponent(),n,r)},st.prototype.sorters={number:function(t,i,o,n,r,e,s){var a=s.alignEmptyValues,h=s.decimalSeparator,u=s.thousandSeparator,c=0;if(t=String(t),i=String(i),u&&(t=t.split(u).join(""),i=i.split(u).join("")),h&&(t=t.split(h).join("."),i=i.split(h).join(".")),t=parseFloat(t),i=parseFloat(i),isNaN(t))c=isNaN(i)?0:-1;else{if(!isNaN(i))return t-i;c=1}return("top"===a&&"desc"===e||"bottom"===a&&"asc"===e)&&(c*=-1),c},string:function(t,i,o,n,r,e,s){var a,h=s.alignEmptyValues,u=0;if(t){if(i){switch(l(s.locale)){case"boolean":s.locale&&(a=this.table.modules.localize.getLocale());break;case"string":a=s.locale}return String(t).toLowerCase().localeCompare(String(i).toLowerCase(),a)}u=1}else u=i?-1:0;return("top"===h&&"desc"===e||"bottom"===h&&"asc"===e)&&(u*=-1),u},date:function(t,i,o,n,r,e,s){return s.format||(s.format="DD/MM/YYYY"),this.sorters.datetime.call(this,t,i,o,n,r,e,s)},time:function(t,i,o,n,r,e,s){return s.format||(s.format="HH:mm"),this.sorters.datetime.call(this,t,i,o,n,r,e,s)},datetime:function(t,i,o,n,r,e,s){var a=s.format||"DD/MM/YYYY HH:mm:ss",h=s.alignEmptyValues,u=0;if("undefined"!=typeof moment){if(t=moment(t,a),i=moment(i,a),t.isValid()){if(i.isValid())return t-i;u=1}else u=i.isValid()?-1:0;return("top"===h&&"desc"===e||"bottom"===h&&"asc"===e)&&(u*=-1),u}console.error("Sort Error - 'datetime' sorter is dependant on moment.js")},boolean:function(t,i){return(!0===t||"true"===t||"True"===t||1===t?1:0)-(!0===i||"true"===i||"True"===i||1===i?1:0)},array:function(t,i,o,n,r,e,s){var a=s.type||"length",h=s.alignEmptyValues,u=0;function c(t){switch(a){case"length":return t.length;case"sum":return t.reduce((function(t,i){return t+i}));case"max":return Math.max.apply(null,t);case"min":return Math.min.apply(null,t);case"avg":return t.reduce((function(t,i){return t+i}))/t.length}}if(Array.isArray(t)){if(Array.isArray(i))return(t?c(t):0)-(i?c(i):0);h=1}else h=Array.isArray(i)?-1:0;return("top"===h&&"desc"===e||"bottom"===h&&"asc"===e)&&(u*=-1),u},exists:function(t,i){return(void 0===t?0:1)-(void 0===i?0:1)},alphanum:function(t,i,o,n,r,e,s){var a,h,u,c,l,f=0,d=/(\d+)|(\D+)/g,b=/\d/,p=s.alignEmptyValues,v=0;if(t||0===t){if(i||0===i){if(isFinite(t)&&isFinite(i))return t-i;if((a=String(t).toLowerCase())===(h=String(i).toLowerCase()))return 0;if(!b.test(a)||!b.test(h))return a>h?1:-1;for(a=a.match(d),h=h.match(d),l=a.length>h.length?h.length:a.length;f<l;)if((u=a[f])!==(c=h[f++]))return isFinite(u)&&isFinite(c)?("0"===u.charAt(0)&&(u="."+u),"0"===c.charAt(0)&&(c="."+c),u-c):u>c?1:-1;return a.length>h.length}v=1}else v=i||0===i?-1:0;return("top"===p&&"desc"===e||"bottom"===p&&"asc"===e)&&(v*=-1),v}},k.prototype.registerModule("sort",st);var at=function(t){this.table=t,this.invalidCells=[]};at.prototype.initializeColumn=function(t){var i,o=this,n=[];t.definition.validator&&(Array.isArray(t.definition.validator)?t.definition.validator.forEach((function(t){(i=o._extractValidator(t))&&n.push(i)})):(i=this._extractValidator(t.definition.validator))&&n.push(i),t.modules.validate=!!n.length&&n)},at.prototype._extractValidator=function(t){var i,o,n;switch(void 0===t?"undefined":l(t)){case"string":return(n=t.indexOf(":"))>-1?(i=t.substring(0,n),o=t.substring(n+1)):i=t,this._buildValidator(i,o);case"function":return this._buildValidator(t);case"object":return this._buildValidator(t.type,t.parameters)}},at.prototype._buildValidator=function(t,i){var o="function"==typeof t?t:this.validators[t];return o?{type:"function"==typeof t?"function":t,func:o,params:i}:(console.warn("Validator Setup Error - No matching validator found:",t),!1)},at.prototype.validate=function(t,i,o){var n=this,r=[],e=this.invalidCells.indexOf(i);return t&&t.forEach((function(t){t.func.call(n,i.getComponent(),o,t.params)||r.push({type:t.type,parameters:t.params})})),r=!r.length||r,i.modules.validate||(i.modules.validate={}),!0===r?(i.modules.validate.invalid=!1,i.getElement().classList.remove("tabulator-validation-fail"),e>-1&&this.invalidCells.splice(e,1)):(i.modules.validate.invalid=!0,"manual"!==this.table.options.validationMode&&i.getElement().classList.add("tabulator-validation-fail"),-1==e&&this.invalidCells.push(i)),r},at.prototype.getInvalidCells=function(){var t=[];return this.invalidCells.forEach((function(i){t.push(i.getComponent())})),t},at.prototype.clearValidation=function(t){var i;t.modules.validate&&t.modules.validate.invalid&&(t.getElement().classList.remove("tabulator-validation-fail"),t.modules.validate.invalid=!1,(i=this.invalidCells.indexOf(t))>-1&&this.invalidCells.splice(i,1))},at.prototype.validators={integer:function(t,i){return""===i||null==i||"number"==typeof(i=Number(i))&&isFinite(i)&&Math.floor(i)===i},float:function(t,i){return""===i||null==i||"number"==typeof(i=Number(i))&&isFinite(i)&&i%1!=0},numeric:function(t,i){return""===i||null==i||!isNaN(i)},string:function(t,i){return""===i||null==i||isNaN(i)},max:function(t,i,o){return""===i||null==i||parseFloat(i)<=o},min:function(t,i,o){return""===i||null==i||parseFloat(i)>=o},starts:function(t,i,o){return""===i||null==i||String(i).toLowerCase().startsWith(String(o).toLowerCase())},ends:function(t,i,o){return""===i||null==i||String(i).toLowerCase().endsWith(String(o).toLowerCase())},minLength:function(t,i,o){return""===i||null==i||String(i).length>=o},maxLength:function(t,i,o){return""===i||null==i||String(i).length<=o},in:function(t,i,o){return""===i||null==i||("string"==typeof o&&(o=o.split("|")),""===i||o.indexOf(i)>-1)},regex:function(t,i,o){return""===i||null==i||new RegExp(o).test(i)},unique:function(t,i){if(""===i||null==i)return!0;var o=!0,n=t.getData(),r=t.getColumn()._getSelf();return this.table.rowManager.rows.forEach((function(t){var e=t.getData();e!==n&&i==r.getFieldValue(e)&&(o=!1)})),o},required:function(t,i){return""!==i&&null!=i}},k.prototype.registerModule("validate",at);const{replace:ht}="",ut=/[&<>'"]/g,ct={"&":"&","<":"<",">":">","'":"'",'"':"""},lt=t=>ct[t];class ft{constructor(t){this.pool=t,this.create=this.create.bind(this)}create(t){var i;const o={title:t.title,field:t.field,hozAlign:t.horizontalAlign,headerSort:t.headerSort};return t.headerComponent&&(o.titleFormatter=dt(t)),((null===(i=t.component)||void 0===i?void 0:i.name)||t.formatter)&&(o.formatter=function(t,i){var o;return(null===(o=t.component)||void 0===o?void 0:o.name)?function(t){const i=t.component.name;if("string"==typeof i){const o=!i.includes("-"),n=customElements.get(t.component.name);return o||n}return!1}(t)?o=>{const n=bt(o,t);return function(t,i,o,n){const r=t.getField(),e=t.getData(),s=n.get(i.component.name);let a=i.component.props||{};return i.component.propsFactory&&(a=Object.assign(Object.assign({},a),i.component.propsFactory(e))),a=Object.assign(Object.assign({},a),{field:r,value:o,data:e}),s.style.display="inline-block",pt(s,a),function(t,i){if(!("ResizeObserver"in window))return;const o=new ResizeObserver((()=>{const o=t.getBoundingClientRect().width+16;o<i.getWidth()||i.setWidth(o)}));o.observe(t),setTimeout((()=>{o.unobserve(t)}),1e3)}(s,t.getColumn()),s}(o,t,n,i)}:(console.warn(`Failed to render custom component for column "${t.field.toString()}". Custom element <${t.component.name}/> does not exist. Using the default formatter.`),bt):bt}(t,this.pool),o.formatterParams=t),t.aggregator&&(o.bottomCalc=function(t){const i=t.aggregator;return"function"==typeof i?(o,n)=>i(t,o,n):i}(t)),o}}const dt=t=>()=>{const i=document.createElement("div");i.setAttribute("class","lime-col-title__custom-component");const o=document.createElement("span");o.setAttribute("class","title-component-text"),o.innerText=t.title;const n=document.createElement(t.headerComponent.name);n.setAttribute("class","title-component-slot");let r=t.headerComponent.props||{};return t.headerComponent.propsFactory&&(r=Object.assign(Object.assign({},r),t.headerComponent.propsFactory(null))),pt(n,r),i.appendChild(o),i.appendChild(n),i};function bt(t,i){const o=t.getData();let n=t.getValue();return i.formatter&&(n=i.formatter(n,o)),"string"!=typeof n||i.component||(n=ht.call(n,ut,lt)),n}function pt(t,i){const o=a(i,h(vt));Object.assign(t,o);const n=a(i,vt);Object.entries(n).forEach((([i,o])=>{const n=(r=i).charAt(2).toLowerCase()+r.slice(3);var r;t.addEventListener(n,o)}))}function vt(t,i){return"function"==typeof t&&/^on[A-Z]/.test(i)}const mt=t=>i=>({column:t.find((t=>t.field===i.field)),direction:i.dir.toUpperCase()});class gt{constructor(t){this.isFree=t=>!this.usedElements.has(t),this.document=t,this.releaseAll(),this.clear()}get(t){var i;let o=null===(i=this.pool[t])||void 0===i?void 0:i.find(this.isFree);return o||(o=this.createElement(t)),this.usedElements.set(o,!0),o}release(t){this.usedElements.delete(t)}releaseAll(){this.usedElements=new WeakMap}clear(){this.pool={}}createElement(t){const i=this.document.createElement(t);return t in this.pool||(this.pool[t]=[]),this.pool[t].push(i),i}}class wt{constructor(t){this.getDataByIndex=t,this.toggleRange=(t,i)=>{const o=!this.selectedItems.has(this.getDataByIndex(i)),n=Math.min(t,i),r=Math.max(t,i),e=[],s=[];for(let t=n;t<=r;t++){const i=this.getDataByIndex(t);i&&(this.selectedItems.has(i)!==o&&(o?this.selectedItems.add(i):this.selectedItems.delete(i),e.push(t),s.push(i)))}return this.lastToggledIndex=i,{selected:o,items:s,indexes:e}},this.clear()}get size(){return this.selectedItems.size}get items(){return Array.from(this.selectedItems)}set items(t){this.selectedItems=new Set(t),this.lastToggledIndex=-1}has(t){return this.selectedItems.has(t)}toggleSelection(t){return this.toggleRange(t,t)}toggleSelectionFromLastIndex(t){return this.lastToggledIndex<0?this.toggleSelection(t):this.toggleRange(this.lastToggledIndex,t)}clear(){this.selectedItems=new Set,this.lastToggledIndex=-1}}class xt{constructor(t,i,o){this.getTable=t,this.pool=i,this.selectEvent=o,this.rowSelectorCellClick=(t,i)=>{t.stopPropagation(),t.preventDefault();const o=i.getRow().getPosition(!0);this.updateRowSelectors(t.shiftKey?this.selection.toggleSelectionFromLastIndex(o):this.selection.toggleSelection(o)),this.selectEvent.emit(this.selection.items)},this.updateRowSelectors=t=>{t.indexes.map(this.getRowByIndex).forEach((i=>this.updateRowSelector(i,t.selected)))},this.updateRowSelector=(t,i)=>{const o=t.getCells()[0];o&&(o.getElement().querySelector("limel-checkbox").checked=i)},this.getActiveRows=()=>{const t=this.getTable();return t?t.getRows("active"):[]},this.getRowByIndex=t=>this.getTable().getRowFromPosition(t,!0),this.selection=new wt((t=>this.getRowByIndex(t).getData()))}get hasSelection(){return this.selection.size>0}clear(){this.selection.clear()}setSelection(t){c(this.selection.items,t)||(this.selection.items=t,this.getActiveRows().forEach((t=>this.updateRowSelector(t,this.selection.has(t.getData())))))}getColumnDefinitions(t){return[this.getRowSelectorColumnDefinition(),...t]}getRowSelectorColumnDefinition(){return{title:"",formatter:this.getRowSelectorFormatter(),cellClick:this.rowSelectorCellClick,headerClick:this.headerClick,headerSort:!1,cssClass:"limel-table--row-selector",resizable:!1,htmlOutput:!1,clipboard:!1}}headerClick(t){t.stopPropagation()}getRowSelectorFormatter(){return t=>{const i=this.pool.get("limel-checkbox");return pt(i,{checked:this.selection.has(t.getData())}),i.style.display="inline-block",i}}}const yt=class{constructor(i){t(this,i),this.sort=o(this,"sort",7),this.changePage=o(this,"changePage",7),this.load=o(this,"load",7),this.activate=o(this,"activate",7),this.changeColumns=o(this,"changeColumns",7),this.select=o(this,"select",7),this.selectAll=o(this,"selectAll",7),this.getActiveRows=()=>this.tabulator?this.tabulator.getRows("active"):[],this.getActiveRowsData=()=>this.getActiveRows().map((t=>t.getData())),this.selectAllOnChange=t=>{const i=t.detail;t.stopPropagation(),t.preventDefault();const o=i?this.getActiveRowsData():[];this.select.emit(o),this.tableSelection.setSelection(o),this.selectAll.emit(i)},this.getColumnOptions=()=>this.movableColumns?{movableColumns:!0,columnMoved:this.handleMoveColumn}:{},this.handleMoveColumn=(t,i)=>{const o=i.map(this.findColumn).filter((t=>t));this.changeColumns.emit(o)},this.findColumn=t=>this.columns.find((i=>i.field===t.getField()&&i.title===t.getDefinition().title)),this.data=[],this.columns=[],this.mode="local",this.layout=void 0,this.pageSize=void 0,this.totalRows=void 0,this.sorting=[],this.activeRow=void 0,this.movableColumns=void 0,this.loading=!1,this.page=1,this.emptyMessage=void 0,this.aggregates=void 0,this.selectable=void 0,this.selection=void 0,this.handleDataSorting=this.handleDataSorting.bind(this),this.handlePageLoaded=this.handlePageLoaded.bind(this),this.handleAjaxRequesting=this.handleAjaxRequesting.bind(this),this.requestData=this.requestData.bind(this),this.onClickRow=this.onClickRow.bind(this),this.formatRow=this.formatRow.bind(this),this.formatRows=this.formatRows.bind(this),this.updateMaxPage=this.updateMaxPage.bind(this),this.initTabulatorComponent=this.initTabulatorComponent.bind(this),this.setSelection=this.setSelection.bind(this),this.addColumnAggregator=this.addColumnAggregator.bind(this),this.pool=new gt(document),this.columnFactory=new ft(this.pool)}componentWillLoad(){this.firstRequest="remote"===this.mode,this.initTableSelection()}componentDidLoad(){this.init()}disconnectedCallback(){this.pool.clear()}totalRowsChanged(){this.updateMaxPage()}pageSizeChanged(){this.updateMaxPage()}pageChanged(){this.tabulator&&this.tabulator.getPage()!==this.page&&this.tabulator.setPage(this.page)}activeRowChanged(){this.tabulator&&this.formatRows()}updateData(t=[],i=[]){c(t,i)||(this.pool.releaseAll(),setTimeout((()=>{this.tabulator&&(this.tabulator.replaceData(this.data),this.setSelection())})))}updateColumns(t,i){if(!this.tabulator)return;if(this.areSameColumns(t,i))return;const o=this.tabulator.getColumns().filter((t=>t.getField())).map((t=>i.find((i=>i.field===t.getField()))));this.areSameColumns(t,o)||this.init()}updateAggregates(t,i){this.tabulator&&(c(t,i)||(this.haveSameAggregateFields(t,i)?(this.tabulator.recalc(),this.tabulator.rowManager.redraw()):this.init()))}updateSelection(t){this.tableSelection&&this.tableSelection.setSelection(t)}updateSelectable(){this.tableSelection&&!this.selectable&&(this.tableSelection=null),this.initTableSelection(),this.init()}areSameColumns(t,i){return t.length===i.length&&t.every((t=>i.includes(t)))}haveSameAggregateFields(t,i){const o=(null==i?void 0:i.map((t=>t.field)))||[];return(null==t?void 0:t.length)===(null==i?void 0:i.length)&&!!(null==t?void 0:t.every((t=>o.includes(t.field))))}init(){this.tabulator&&(this.pool.releaseAll(),this.tabulator.destroy());const t=this.getOptions(),i=this.host.shadowRoot.querySelector("#tabulator-table");this.initTabulatorComponent(i,t)}initTabulatorComponent(t,i){if(!("ResizeObserver"in window))return this.tabulator=new k(t,i),void this.setSelection();const o=new ResizeObserver((()=>{this.tabulator=new k(t,i),this.setSelection(),o.unobserve(t)}));o.observe(t)}initTableSelection(){this.selectable&&(this.tableSelection=new xt((()=>this.tabulator),this.pool,this.select),this.tableSelection.setSelection(this.selection))}setSelection(){this.tabulator&&this.tableSelection&&this.tableSelection.setSelection(this.selection)}updateMaxPage(){var t;null===(t=this.tabulator)||void 0===t||t.setMaxPage(this.calculatePageCount())}getOptions(){const t=this.getAjaxOptions(),i=this.getPaginationOptions(),o=this.getColumnOptions();return Object.assign(Object.assign(Object.assign(Object.assign({data:this.data,layout:(n=this.layout,{stretchLastColumn:"fitDataStretch",stretchColumns:"fitColumns",lowDensity:"fitData"}[n]||"fitDataFill"),columns:this.getColumnDefinitions(),dataSorting:this.handleDataSorting,pageLoaded:this.handlePageLoaded},t),i),{rowClick:this.onClickRow,rowFormatter:this.formatRow,initialSort:this.getColumnSorter(),nestedFieldSeparator:!1}),o);var n}getColumnSorter(){var t;return(null!==(t=this.currentSorting)&&void 0!==t?t:this.sorting).map((t=>({column:String(t.column.field),dir:t.direction.toLocaleLowerCase()})))}getColumnDefinitions(){const t=this.columns.map(this.addColumnAggregator).map(this.columnFactory.create);return this.tableSelection?this.tableSelection.getColumnDefinitions(t):t}addColumnAggregator(t){var i;return!(null===(i=this.aggregates)||void 0===i?void 0:i.length)||t.aggregator||this.aggregates.find((i=>i.field===t.field))&&(t.aggregator=t=>{var i;if(!t)return;const o=null===(i=this.aggregates.find((i=>i.field===t.field)))||void 0===i?void 0:i.value;return t.formatter?t.formatter(o):o}),t}getAjaxOptions(){return this.isRemoteMode()?{ajaxSorting:!0,ajaxURL:"https://localhost",ajaxRequestFunc:this.requestData,ajaxRequesting:this.handleAjaxRequesting}:{}}handleAjaxRequesting(){var t;const i=this.firstRequest&&!!(null===(t=this.data)||void 0===t?void 0:t.length);return this.firstRequest=!1,!i||(setTimeout((()=>{this.updateMaxPage(),this.tabulator.replaceData(this.data)})),!1)}getPaginationOptions(){return this.pageSize?{pagination:this.isRemoteMode()?"remote":"local",paginationSize:this.pageSize,paginationInitialPage:this.page}:{}}requestData(t,i,o){const n=o.sorters,r=o.page;this.page!==r&&this.changePage.emit(r);const e=n.map(mt(this.columns)),s={page:r,sorters:e},a=Promise.resolve({last_page:this.calculatePageCount(),data:this.data});return c(this.currentLoad,s)||(this.currentSorting=e,this.currentLoad=s,this.load.emit(s)),a}isRemoteMode(){return"remote"===this.mode}handleDataSorting(t){if(this.isRemoteMode())return;const i=t.map(mt(this.columns));0!==i.length&&this.sort.emit(i)}handlePageLoaded(t){this.isRemoteMode()||this.changePage.emit(t)}onClickRow(t,i){void 0!==i.getPosition&&(this.activeRow=this.activeRow===i.getData()?null:i.getData(),this.activate.emit(this.activeRow))}formatRows(){this.tabulator.getRows().forEach(this.formatRow)}formatRow(t){this.activeRow===t.getData()?t.getElement().classList.add("active"):t.getElement().classList.remove("active")}calculatePageCount(){let t=this.totalRows;return t||(t=this.data.length),Math.ceil(t/this.pageSize)}hasAggregation(t){return t.some((t=>u(t,"aggregator")))}render(){var t;return n(r,{class:{"has-low-density":"lowDensity"===this.layout}},n("div",{id:"tabulator-container",class:{"has-pagination":this.totalRows>this.pageSize,"has-aggregation":this.hasAggregation(this.columns),"has-movable-columns":this.movableColumns,"has-rowselector":this.selectable,"has-selection":null===(t=this.tableSelection)||void 0===t?void 0:t.hasSelection}},n("div",{id:"tabulator-loader",style:{display:this.loading?"flex":"none"}},n("limel-spinner",{size:"large"})),this.renderEmptyMessage(),this.renderSelectAll(),n("div",{id:"tabulator-table"})))}renderSelectAll(){var t,i,o;if(this.selectable)return n("div",{class:"select-all",style:{display:!this.loading&&this.tableSelection?"inline-block":"none"}},n("limel-checkbox",{onChange:this.selectAllOnChange,disabled:!this.data.length,checked:null===(t=this.tableSelection)||void 0===t?void 0:t.hasSelection,indeterminate:(null===(i=this.tableSelection)||void 0===i?void 0:i.hasSelection)&&(null===(o=this.selection)||void 0===o?void 0:o.length)<this.data.length}))}renderEmptyMessage(){return n("div",{id:"tabulator-empty-text",style:{display:this.loading||this.data.length||!this.emptyMessage?"none":"flex"}},n("span",null,this.emptyMessage))}get host(){return s(this)}static get watchers(){return{totalRows:["totalRowsChanged"],pageSize:["pageSizeChanged"],page:["pageChanged"],activeRow:["activeRowChanged"],data:["updateData"],columns:["updateColumns"],aggregates:["updateAggregates"],selection:["updateSelection"],selectable:["updateSelectable"]}}};yt.style='@charset "UTF-8";.tabulator{position:relative;border:1px solid #999;background-color:#888;font-size:14px;text-align:left;overflow:hidden;-webkit-transform:translatez(0);-moz-transform:translatez(0);-ms-transform:translatez(0);-o-transform:translatez(0);transform:translatez(0)}.tabulator[tabulator-layout=fitDataFill] .tabulator-tableHolder .tabulator-table{min-width:100%}.tabulator[tabulator-layout=fitDataTable]{display:inline-block}.tabulator.tabulator-block-select{user-select:none}.tabulator .tabulator-header{position:relative;box-sizing:border-box;width:100%;border-bottom:1px solid #999;background-color:#e6e6e6;color:#555;font-weight:bold;white-space:nowrap;overflow:hidden;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none}.tabulator .tabulator-header.tabulator-header-hidden{display:none}.tabulator .tabulator-header .tabulator-col{display:inline-block;position:relative;box-sizing:border-box;border-right:1px solid #aaa;background:#e6e6e6;text-align:left;vertical-align:bottom;overflow:hidden}.tabulator .tabulator-header .tabulator-col.tabulator-moving{position:absolute;border:1px solid #999;background:#cdcdcd;pointer-events:none}.tabulator .tabulator-header .tabulator-col .tabulator-col-content{box-sizing:border-box;position:relative;padding:4px}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-menu-button{padding:0 8px}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-menu-button:hover{cursor:pointer;opacity:0.6}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title-holder{position:relative}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title{box-sizing:border-box;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-title-editor{box-sizing:border-box;width:100%;border:1px solid #999;padding:1px;background:#fff}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-header-menu-button+.tabulator-title-editor{width:calc(100% - 22px)}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter{display:flex;align-items:center;position:absolute;top:0;bottom:0;right:4px}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #bbb}.tabulator .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols{position:relative;display:flex;border-top:1px solid #aaa;overflow:hidden;margin-right:-1px}.tabulator .tabulator-header .tabulator-col:first-child .tabulator-col-resize-handle.prev{display:none}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter{position:relative;box-sizing:border-box;margin-top:2px;width:100%;text-align:center}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter textarea{height:auto !important}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter svg{margin-top:3px}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter input::-ms-clear{width:0;height:0}.tabulator .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title{padding-right:25px}.tabulator .tabulator-header .tabulator-col.tabulator-sortable:hover{cursor:pointer;background-color:#cdcdcd}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter{color:#bbb}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-top:none;border-bottom:6px solid #bbb}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=asc] .tabulator-col-content .tabulator-col-sorter{color:#666}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=asc] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-top:none;border-bottom:6px solid #666}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=desc] .tabulator-col-content .tabulator-col-sorter{color:#666}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=desc] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-bottom:none;border-top:6px solid #666;color:#666}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical .tabulator-col-content .tabulator-col-title{writing-mode:vertical-rl;text-orientation:mixed;display:flex;align-items:center;justify-content:center}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-col-vertical-flip .tabulator-col-title{transform:rotate(180deg)}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-title{padding-right:0;padding-top:20px}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable.tabulator-col-vertical-flip .tabulator-col-title{padding-right:0;padding-bottom:20px}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-sorter{justify-content:center;left:0;right:0;top:4px;bottom:auto}.tabulator .tabulator-header .tabulator-frozen{display:inline-block;position:absolute;z-index:10}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-left{border-right:2px solid #aaa}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-right{border-left:2px solid #aaa}.tabulator .tabulator-header .tabulator-calcs-holder{box-sizing:border-box;min-width:600%;background:#f3f3f3 !important;border-top:1px solid #aaa;border-bottom:1px solid #aaa;overflow:hidden}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row{background:#f3f3f3 !important}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle{display:none}.tabulator .tabulator-header .tabulator-frozen-rows-holder{min-width:600%}.tabulator .tabulator-header .tabulator-frozen-rows-holder:empty{display:none}.tabulator .tabulator-tableHolder{position:relative;width:100%;white-space:nowrap;overflow:auto;-webkit-overflow-scrolling:touch}.tabulator .tabulator-tableHolder:focus{outline:none}.tabulator .tabulator-tableHolder .tabulator-placeholder{box-sizing:border-box;display:flex;align-items:center;width:100%}.tabulator .tabulator-tableHolder .tabulator-placeholder[tabulator-render-mode=virtual]{min-height:100%;min-width:100%}.tabulator .tabulator-tableHolder .tabulator-placeholder span{display:inline-block;margin:0 auto;padding:10px;color:#ccc;font-weight:bold;font-size:20px}.tabulator .tabulator-tableHolder .tabulator-table{position:relative;display:inline-block;background-color:#fff;white-space:nowrap;overflow:visible;color:#333}.tabulator .tabulator-tableHolder .tabulator-table .tabulator-row.tabulator-calcs{font-weight:bold;background:#e2e2e2 !important}.tabulator .tabulator-tableHolder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-top{border-bottom:2px solid #aaa}.tabulator .tabulator-tableHolder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-bottom{border-top:2px solid #aaa}.tabulator .tabulator-footer{padding:5px 10px;border-top:1px solid #999;background-color:#e6e6e6;text-align:right;color:#555;font-weight:bold;white-space:nowrap;user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none}.tabulator .tabulator-footer .tabulator-calcs-holder{box-sizing:border-box;width:calc(100% + 20px);margin:-5px -10px 5px -10px;text-align:left;background:#f3f3f3 !important;border-bottom:1px solid #aaa;border-top:1px solid #aaa;overflow:hidden}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row{background:#f3f3f3 !important}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle{display:none}.tabulator .tabulator-footer .tabulator-calcs-holder:only-child{margin-bottom:-5px;border-bottom:none}.tabulator .tabulator-footer .tabulator-paginator{color:#555;font-family:inherit;font-weight:inherit;font-size:inherit}.tabulator .tabulator-footer .tabulator-page-size{display:inline-block;margin:0 5px;padding:2px 5px;border:1px solid #aaa;border-radius:3px}.tabulator .tabulator-footer .tabulator-pages{margin:0 7px}.tabulator .tabulator-footer .tabulator-page{display:inline-block;margin:0 2px;padding:2px 5px;border:1px solid #aaa;border-radius:3px;background:rgba(255, 255, 255, 0.2)}.tabulator .tabulator-footer .tabulator-page.active{color:#d00}.tabulator .tabulator-footer .tabulator-page:disabled{opacity:0.5}.tabulator .tabulator-footer .tabulator-page:not(.disabled):hover{cursor:pointer;background:rgba(0, 0, 0, 0.2);color:#fff}.tabulator .tabulator-col-resize-handle{position:absolute;right:0;top:0;bottom:0;width:5px}.tabulator .tabulator-col-resize-handle.prev{left:0;right:auto}.tabulator .tabulator-col-resize-handle:hover{cursor:ew-resize}.tabulator .tabulator-loader{position:absolute;display:flex;align-items:center;top:0;left:0;z-index:100;height:100%;width:100%;background:rgba(0, 0, 0, 0.4);text-align:center}.tabulator .tabulator-loader .tabulator-loader-msg{display:inline-block;margin:0 auto;padding:10px 20px;border-radius:10px;background:#fff;font-weight:bold;font-size:16px}.tabulator .tabulator-loader .tabulator-loader-msg.tabulator-loading{border:4px solid #333;color:#000}.tabulator .tabulator-loader .tabulator-loader-msg.tabulator-error{border:4px solid #D00;color:#590000}.tabulator-row{position:relative;box-sizing:border-box;min-height:22px;background-color:#fff}.tabulator-row.tabulator-row-even{background-color:#EFEFEF}.tabulator-row.tabulator-selectable:hover{background-color:#bbb;cursor:pointer}.tabulator-row.tabulator-selected{background-color:#9ABCEA}.tabulator-row.tabulator-selected:hover{background-color:#769BCC;cursor:pointer}.tabulator-row.tabulator-row-moving{border:1px solid #000;background:#fff}.tabulator-row.tabulator-moving{position:absolute;border-top:1px solid #aaa;border-bottom:1px solid #aaa;pointer-events:none;z-index:15}.tabulator-row .tabulator-row-resize-handle{position:absolute;right:0;bottom:0;left:0;height:5px}.tabulator-row .tabulator-row-resize-handle.prev{top:0;bottom:auto}.tabulator-row .tabulator-row-resize-handle:hover{cursor:ns-resize}.tabulator-row .tabulator-frozen{display:inline-block;position:absolute;background-color:inherit;z-index:10}.tabulator-row .tabulator-frozen.tabulator-frozen-left{border-right:2px solid #aaa}.tabulator-row .tabulator-frozen.tabulator-frozen-right{border-left:2px solid #aaa}.tabulator-row .tabulator-responsive-collapse{box-sizing:border-box;padding:5px;border-top:1px solid #aaa;border-bottom:1px solid #aaa}.tabulator-row .tabulator-responsive-collapse:empty{display:none}.tabulator-row .tabulator-responsive-collapse table{font-size:14px}.tabulator-row .tabulator-responsive-collapse table tr td{position:relative}.tabulator-row .tabulator-responsive-collapse table tr td:first-of-type{padding-right:10px}.tabulator-row .tabulator-cell{display:inline-block;position:relative;box-sizing:border-box;padding:4px;border-right:1px solid #aaa;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tabulator-row .tabulator-cell.tabulator-editing{border:1px solid #1D68CD;outline:none;padding:0}.tabulator-row .tabulator-cell.tabulator-editing input,.tabulator-row .tabulator-cell.tabulator-editing select{border:1px;background:transparent}.tabulator-row .tabulator-cell.tabulator-validation-fail{border:1px solid #dd0000}.tabulator-row .tabulator-cell.tabulator-validation-fail input,.tabulator-row .tabulator-cell.tabulator-validation-fail select{border:1px;background:transparent;color:#dd0000}.tabulator-row .tabulator-cell:first-child .tabulator-col-resize-handle.prev{display:none}.tabulator-row .tabulator-cell.tabulator-row-handle{display:inline-flex;align-items:center;justify-content:center;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none}.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box{width:80%}.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box .tabulator-row-handle-bar{width:100%;height:3px;margin-top:2px;background:#666}.tabulator-row .tabulator-cell .tabulator-data-tree-branch{display:inline-block;vertical-align:middle;height:9px;width:7px;margin-top:-9px;margin-right:5px;border-bottom-left-radius:1px;border-left:2px solid #aaa;border-bottom:2px solid #aaa}.tabulator-row .tabulator-cell .tabulator-data-tree-control{display:inline-flex;justify-content:center;align-items:center;vertical-align:middle;height:11px;width:11px;margin-right:5px;border:1px solid #333;border-radius:2px;background:rgba(0, 0, 0, 0.1);overflow:hidden}.tabulator-row .tabulator-cell .tabulator-data-tree-control:hover{cursor:pointer;background:rgba(0, 0, 0, 0.2)}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-collapse{display:inline-block;position:relative;height:7px;width:1px;background:transparent}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-collapse:after{position:absolute;content:"";left:-3px;top:3px;height:1px;width:7px;background:#333}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-expand{display:inline-block;position:relative;height:7px;width:1px;background:#333}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-expand:after{position:absolute;content:"";left:-3px;top:3px;height:1px;width:7px;background:#333}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle{display:inline-flex;align-items:center;justify-content:center;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none;height:15px;width:15px;border-radius:20px;background:#666;color:#fff;font-weight:bold;font-size:1.1em}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle:hover{opacity:0.7}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-close{display:initial}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-open{display:none}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle .tabulator-responsive-collapse-toggle-close{display:none}.tabulator-row .tabulator-cell .tabulator-traffic-light{display:inline-block;height:14px;width:14px;border-radius:14px}.tabulator-row.tabulator-group{box-sizing:border-box;border-bottom:1px solid #999;border-right:1px solid #aaa;border-top:1px solid #999;padding:5px;padding-left:10px;background:#ccc;font-weight:bold;min-width:100%}.tabulator-row.tabulator-group:hover{cursor:pointer;background-color:rgba(0, 0, 0, 0.1)}.tabulator-row.tabulator-group.tabulator-group-visible .tabulator-arrow{margin-right:10px;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #666;border-bottom:0}.tabulator-row.tabulator-group.tabulator-group-level-1{padding-left:30px}.tabulator-row.tabulator-group.tabulator-group-level-2{padding-left:50px}.tabulator-row.tabulator-group.tabulator-group-level-3{padding-left:70px}.tabulator-row.tabulator-group.tabulator-group-level-4{padding-left:90px}.tabulator-row.tabulator-group.tabulator-group-level-5{padding-left:110px}.tabulator-row.tabulator-group .tabulator-group-toggle{display:inline-block}.tabulator-row.tabulator-group .tabulator-arrow{display:inline-block;width:0;height:0;margin-right:16px;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:0;border-left:6px solid #666;vertical-align:middle}.tabulator-row.tabulator-group span{margin-left:10px;color:#d00}.tabulator-menu{position:absolute;display:inline-block;box-sizing:border-box;background:#fff;border:1px solid #aaa;box-shadow:0 0 5px 0 rgba(0, 0, 0, 0.2);font-size:14px;overflow-y:auto;-webkit-overflow-scrolling:touch;z-index:10000}.tabulator-menu .tabulator-menu-item{position:relative;box-sizing:border-box;padding:5px 10px;user-select:none}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-disabled{opacity:0.5}.tabulator-menu .tabulator-menu-item:not(.tabulator-menu-item-disabled):hover{cursor:pointer;background:#EFEFEF}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu{padding-right:25px}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu::after{display:inline-block;position:absolute;top:calc(5px + 0.4em);right:10px;height:7px;width:7px;content:"";border-width:1px 1px 0 0;border-style:solid;border-color:#aaa;vertical-align:top;transform:rotate(45deg)}.tabulator-menu .tabulator-menu-separator{border-top:1px solid #aaa}.tabulator-edit-select-list{position:absolute;display:inline-block;box-sizing:border-box;max-height:200px;background:#fff;border:1px solid #aaa;font-size:14px;overflow-y:auto;-webkit-overflow-scrolling:touch;z-index:10000}.tabulator-edit-select-list .tabulator-edit-select-list-item{padding:4px;color:#333}.tabulator-edit-select-list .tabulator-edit-select-list-item.active{color:#fff;background:#1D68CD}.tabulator-edit-select-list .tabulator-edit-select-list-item.active.focused{outline:1px solid rgba(255, 255, 255, 0.5)}.tabulator-edit-select-list .tabulator-edit-select-list-item.focused{outline:1px solid #1D68CD}.tabulator-edit-select-list .tabulator-edit-select-list-item:hover{cursor:pointer;color:#fff;background:#1D68CD}.tabulator-edit-select-list .tabulator-edit-select-list-notice{padding:4px;color:#333;text-align:center}.tabulator-edit-select-list .tabulator-edit-select-list-group{border-bottom:1px solid #aaa;padding:4px;padding-top:6px;color:#333;font-weight:bold}.tabulator.tabulator-ltr{direction:ltr}.tabulator.tabulator-rtl{text-align:initial;direction:rtl}.tabulator.tabulator-rtl .tabulator-header .tabulator-col{text-align:initial;border-left:1px solid #aaa;border-right:initial}.tabulator.tabulator-rtl .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols{margin-right:initial;margin-left:-1px}.tabulator.tabulator-rtl .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title{padding-right:0;padding-left:25px}.tabulator.tabulator-rtl .tabulator-header .tabulator-col .tabulator-col-content .tabulator-arrow{left:8px;right:initial}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell{border-right:initial;border-left:1px solid #aaa}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell .tabulator-data-tree-branch{margin-right:initial;margin-left:5px;border-bottom-left-radius:initial;border-bottom-right-radius:1px;border-left:initial;border-right:2px solid #aaa}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell .tabulator-data-tree-control{margin-right:initial;margin-left:5px}.tabulator.tabulator-rtl .tabulator-col-resize-handle{position:absolute;left:0;right:auto}.tabulator.tabulator-rtl .tabulator-col-resize-handle.prev{right:0;left:auto}.tabulator-print-fullscreen{position:absolute;top:0;bottom:0;left:0;right:0;z-index:10000}body.tabulator-print-fullscreen-hide>*:not(.tabulator-print-fullscreen){display:none !important}.tabulator-print-table{border-collapse:collapse}.tabulator-print-table .tabulator-data-tree-branch{display:inline-block;vertical-align:middle;height:9px;width:7px;margin-top:-9px;margin-right:5px;border-bottom-left-radius:1px;border-left:2px solid #aaa;border-bottom:2px solid #aaa}.tabulator-print-table .tabulator-print-table-group{box-sizing:border-box;border-bottom:1px solid #999;border-right:1px solid #aaa;border-top:1px solid #999;padding:5px;padding-left:10px;background:#ccc;font-weight:bold;min-width:100%}.tabulator-print-table .tabulator-print-table-group:hover{cursor:pointer;background-color:rgba(0, 0, 0, 0.1)}.tabulator-print-table .tabulator-print-table-group.tabulator-group-visible .tabulator-arrow{margin-right:10px;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #666;border-bottom:0}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-1 td{padding-left:30px !important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-2 td{padding-left:50px !important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-3 td{padding-left:70px !important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-4 td{padding-left:90px !important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-5 td{padding-left:110px !important}.tabulator-print-table .tabulator-print-table-group .tabulator-group-toggle{display:inline-block}.tabulator-print-table .tabulator-print-table-group .tabulator-arrow{display:inline-block;width:0;height:0;margin-right:16px;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:0;border-left:6px solid #666;vertical-align:middle}.tabulator-print-table .tabulator-print-table-group span{margin-left:10px;color:#d00}.tabulator-print-table .tabulator-data-tree-control{display:inline-flex;justify-content:center;align-items:center;vertical-align:middle;height:11px;width:11px;margin-right:5px;border:1px solid #333;border-radius:2px;background:rgba(0, 0, 0, 0.1);overflow:hidden}.tabulator-print-table .tabulator-data-tree-control:hover{cursor:pointer;background:rgba(0, 0, 0, 0.2)}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-collapse{display:inline-block;position:relative;height:7px;width:1px;background:transparent}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-collapse:after{position:absolute;content:"";left:-3px;top:3px;height:1px;width:7px;background:#333}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-expand{display:inline-block;position:relative;height:7px;width:1px;background:#333}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-expand:after{position:absolute;content:"";left:-3px;top:3px;height:1px;width:7px;background:#333}:host(limel-table){isolation:isolate;display:block;--table-header-background-color:var(--contrast-500);--table-header-background-color--hover:var(--contrast-400);--table-header-background-color-when-being-dragged:var(--contrast-100);--table-row-background-color--odd:var(--contrast-200);--table-row-background-color--even:var(--contrast-100);--table-row-background-color--hover:var(\n --lime-elevated-surface-background-color\n );--table-row-background-color--active:var(--contrast-300);--table-arrow-color:var(--contrast-800);--table-arrow-color--active:var(--mdc-theme-primary);--table-text-color:var(--mdc-theme-text-primary-on-background)}#tabulator-container,#tabulator-table{height:100%;width:100%}.tabulator{display:flex;flex-direction:column}.tabulator *{box-sizing:border-box}.tabulator .tabulator-header{flex-shrink:0}.tabulator .tabulator-tableHolder{isolation:isolate;flex-grow:1;height:unset !important;max-height:unset !important;min-height:unset !important}.tabulator .tabulator-footer{flex-shrink:0}#tabulator-container:not(.has-pagination) .tabulator-paginator{visibility:hidden;display:none !important}#tabulator-container{position:relative}#tabulator-container,#tabulator-table{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-font-family, Roboto, sans-serif);background-color:transparent;border:none}.tabulator .tabulator-header{color:var(--table-text-color)}.tabulator .tabulator-tableHolder .tabulator-table{color:var(--table-text-color);background-color:transparent}.tabulator .tabulator-header{border-bottom:0;background-color:rgb(var(--table-header-background-color))}.tabulator .tabulator-header .tabulator-headers{width:fit-content}.tabulator .tabulator-header .tabulator-col{transition:background-color 0.2s ease;background-color:rgb(var(--table-header-background-color));border-right-color:rgb(var(--contrast-200))}.tabulator .tabulator-header .tabulator-col.tabulator-sortable:hover{background-color:rgb(var(--table-header-background-color--hover))}.tabulator .tabulator-header .tabulator-col .tabulator-col-content{padding-right:0.5rem}.tabulator .tabulator-header .tabulator-col-title-holder{display:flex;gap:0.25rem}.tabulator .tabulator-header .tabulator-col-sorter{order:1}.tabulator .tabulator-header .tabulator-col-title{order:2;font-weight:500;padding-right:0 !important;line-height:1.25rem}.tabulator-row.tabulator-selectable{transition:background-color 0.2s ease}.tabulator-row.tabulator-selectable:hover{background-color:rgb(var(--contrast-300))}.tabulator-row.tabulator-selectable:not(.active):hover{background-color:rgb(var(--table-header-background-color))}.tabulator-row.tabulator-row-odd:not(.active):not(:hover){background-color:rgb(var(--table-row-background-color--odd))}.tabulator-row.tabulator-row-even:not(.active):not(:hover){background-color:rgb(var(--table-row-background-color--even))}.tabulator-row.active{background-color:rgb(var(--table-row-background-color--active));box-shadow:var(--button-shadow-inset-pressed)}.tabulator-row.active:before{content:"";display:inline-block;box-sizing:border-box;position:sticky;z-index:3;inset:0 0 auto 0;border:0.2rem solid var(--mdc-theme-primary);border-radius:1rem;margin-right:-0.4rem}.tabulator-row .tabulator-cell{border-right:transparent;padding:0.5rem;padding-left:1rem;display:inline-flex;align-items:center}.tabulator-row .tabulator-cell[style*="text-align: right;"]{justify-content:flex-end}.tabulator-row .tabulator-cell[style*="text-align: center;"]{justify-content:center}.tabulator-col,.tabulator-cell{max-width:var(--table-max-column-width, 40rem);font-size:0.8125rem}#tabulator-loader,#tabulator-empty-text{position:absolute;width:100%;height:100%;z-index:1;display:flex;align-items:center;justify-content:center}#tabulator-loader{background-color:rgba(var(--contrast-100), 0.6);cursor:wait}#tabulator-empty-text{color:rgb(var(--contrast-800));font-weight:bold;font-size:1.25rem;pointer-events:none}.tabulator-col-sorter{transition:opacity 0.2s ease;right:0 !important;position:relative !important;justify-content:center;cursor:pointer}[aria-sort=none] .tabulator-col-sorter{opacity:0}[aria-sort=desc] .tabulator-col-sorter,[aria-sort=asc] .tabulator-col-sorter{opacity:1}[aria-sort=desc] .tabulator-col-sorter:before,[aria-sort=asc] .tabulator-col-sorter:before{position:absolute;content:"";width:0.125rem;height:0.4rem;background-color:var(--table-arrow-color--active)}.tabulator-sortable[aria-sort=desc]:hover .tabulator-col-sorter,.tabulator-sortable[aria-sort=asc]:hover .tabulator-col-sorter{opacity:1;animation:indicate-sortable-sorted-column 0.5s ease}.tabulator-sortable[aria-sort=none]:hover .tabulator-col-sorter{opacity:1}.tabulator-sortable[aria-sort=none]:hover .tabulator-col-sorter .tabulator-arrow{animation:indicate-sortable-unsorted-column 2s ease forwards}.tabulator-arrow{transition:border 0.2s ease;border-left:0.25rem solid transparent !important;border-right:0.25rem solid transparent !important}.tabulator#tabulator-table .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-arrow{height:0.75rem;border-top-width:0.25rem;border-top-style:solid;border-top-color:rgb(var(--table-arrow-color));border-bottom-width:0.25rem;border-bottom-style:solid;border-bottom-color:rgb(var(--table-arrow-color))}.tabulator#tabulator-table .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=desc] .tabulator-arrow{height:0;transform:translate3d(0, 0.2rem, 0);border-top-width:0.25rem;border-bottom-width:0;border-top-color:var(--table-arrow-color--active)}.tabulator#tabulator-table .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=asc] .tabulator-arrow{height:0;transform:translate3d(0, -0.2rem, 0);border-top-width:0;border-bottom-width:0.25rem;border-bottom-color:var(--table-arrow-color--active)}@keyframes indicate-sortable-sorted-column{0%,100%{transform:translate3d(0, 0, 0)}30%{transform:translate3d(0, -0.0875rem, 0)}60%{transform:translate3d(0, 0.0875rem, 0)}}@keyframes indicate-sortable-unsorted-column{0%,15%,45%,75%{border-top-color:transparent;border-bottom-color:transparent;transform:translate3d(0, 0, 0)}30%{border-top-color:transparent;border-bottom-color:var(--table-arrow-color--active);transform:translate3d(0, -0.3125rem, 0)}60%{border-top-color:var(--table-arrow-color--active);border-bottom-color:transparent;transform:translate3d(0, 0.3125rem, 0)}100%{border-top-color:rgb(var(--table-arrow-color));border-bottom-color:rgb(var(--table-arrow-color))}}.tabulator .tabulator-footer .tabulator-paginator{box-sizing:border-box;display:grid;grid-auto-flow:column;justify-content:end;padding-top:0.25rem;padding-bottom:0.25rem}.tabulator .tabulator-footer .tabulator-paginator .tabulator-pages{margin:0 0.5rem}.tabulator .tabulator-footer .tabulator-paginator .tabulator-pages .tabulator-page{margin:0 0rem}.tabulator .tabulator-footer .tabulator-paginator .tabulator-page{position:relative;height:1.75rem;min-width:1.75rem;padding:0 0.5rem;margin:0;border:none;border-radius:2.5rem;background-color:transparent}.tabulator .tabulator-footer .tabulator-paginator .tabulator-page:not([disabled]){transition:color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease-out;cursor:pointer;color:rgb(var(--contrast-1200)) !important;background-color:transparent}.tabulator .tabulator-footer .tabulator-paginator .tabulator-page:not([disabled]):hover{color:var(--mdc-theme-on-surface);background-color:var(--lime-elevated-surface-background-color);box-shadow:var(--button-shadow-hovered)}.tabulator .tabulator-footer .tabulator-paginator .tabulator-page:not([disabled]):active{box-shadow:var(--button-shadow-pressed);transform:translate3d(0, 0.08rem, 0)}.tabulator .tabulator-footer .tabulator-paginator .tabulator-page.active{background-color:var(--mdc-theme-surface);box-shadow:var(--button-shadow-inset)}.tabulator .tabulator-footer .tabulator-paginator .tabulator-page:disabled{cursor:not-allowed}.tabulator .tabulator-footer .tabulator-paginator .tabulator-page:disabled:hover{background-color:transparent}button.tabulator-page{display:inline-flex !important;align-items:center;justify-content:center}button.tabulator-page[data-page=first],button.tabulator-page[data-page=prev],button.tabulator-page[data-page=next],button.tabulator-page[data-page=last]{font-size:0;color:transparent !important}button.tabulator-page[data-page=first]:before,button.tabulator-page[data-page=first]:after,button.tabulator-page[data-page=prev]:before,button.tabulator-page[data-page=prev]:after,button.tabulator-page[data-page=next]:before,button.tabulator-page[data-page=next]:after,button.tabulator-page[data-page=last]:before,button.tabulator-page[data-page=last]:after{content:"";transition:transform 0.2s ease;display:block;position:absolute}button.tabulator-page[data-page=first]:after,button.tabulator-page[data-page=prev]:after,button.tabulator-page[data-page=next]:after,button.tabulator-page[data-page=last]:after{border-style:solid;border-color:transparent;border-width:0.25rem 0 0.25rem 0.4rem;border-left-color:var(--mdc-theme-on-surface)}button.tabulator-page[data-page=first]:before,button.tabulator-page[data-page=last]:before{height:0.5rem;width:0.125rem;background-color:var(--mdc-theme-on-surface)}button.tabulator-page[data-page=first]:before{left:0.375rem}button.tabulator-page[data-page=last]:before{right:0.375rem}button.tabulator-page[data-page=first]:after,button.tabulator-page[data-page=prev]:after{transform:rotateZ(180deg)}button.tabulator-page[data-page=next]:not([disabled]):hover:after,button.tabulator-page[data-page=last]:not([disabled]):hover:after{transform:translate3d(0.09375rem, 0, 0)}button.tabulator-page[data-page=first]:not([disabled]):hover:after,button.tabulator-page[data-page=prev]:not([disabled]):hover:after{transform:translate3d(-0.09375rem, 0, 0) rotateZ(180deg)}@keyframes fade-in-tabulator-loader{0%{background:transparent}100%{background:rgba(var(--contrast-1400), 0.4)}}@keyframes spin-tabulator-loader{to{transform:rotate(360deg)}}.tabulator .tabulator-loader{animation:fade-in-tabulator-loader 0.5s ease 0.5s forwards;animation-iteration-count:1;cursor:progress;background:transparent}.tabulator .tabulator-loader .tabulator-loader-msg{animation:spin-tabulator-loader 0.4s linear infinite;color:transparent;font-size:0;border-radius:50%;border:0.1875rem solid rgb(var(--lime-brand-color-flexible-turquoise)) !important;border-top-color:transparent !important;width:1.25rem;height:1.25rem;background-color:transparent !important;padding:0}:host(.has-interactive-rows) .tabulator-row:not(.tabulator-calcs).tabulator-selectable{transition:color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease-out}:host(.has-interactive-rows) .tabulator-row:not(.tabulator-calcs).tabulator-selectable:active{box-shadow:var(--button-shadow-pressed);transform:translate3d(0, 0.08rem, 0)}:host(.has-interactive-rows) .tabulator-row:not(.tabulator-calcs).tabulator-selectable:hover{z-index:2;box-shadow:var(--button-shadow-hovered)}:host(.has-interactive-rows) .tabulator-row:not(.tabulator-calcs).tabulator-selectable:not(.active):hover{background-color:rgb(var(--table-row-background-color--hover))}:host(.has-low-density) #tabulator-container{width:max-content;max-width:100%;margin:auto}:host(.has-low-density) .tabulator-table{background-color:transparent}:host(.has-low-density) .tabulator-header{border-radius:0.375rem}:host(.has-low-density) .tabulator-footer{border-radius:0.5rem}:host(.has-low-density) .tabulator-calcs-holder{border-radius:0.5rem 0.5rem 0 0}:host(.has-low-density) .tabulator-row{border-radius:0.5rem}:host(.has-low-density) .tabulator-row:not(.tabulator-calcs-bottom){margin-bottom:0.25rem}:host(.has-low-density) .tabulator-row:not(.tabulator-calcs-bottom):first-child{margin-top:0.75rem}:host(.has-low-density) .tabulator-row:not(.tabulator-calcs-bottom) .tabulator-cell{height:2.75rem !important}:host(.has-low-density) .tabulator-row:not(.tabulator-calcs-bottom) .tabulator-cell:first-child{border-radius:0.5rem 0 0 0.5rem}:host(.has-low-density) .tabulator-row:not(.tabulator-calcs-bottom) .tabulator-cell:last-child{border-radius:0 0.5rem 0.5rem 0}:host(.has-pagination-on-top) .tabulator .tabulator-header{order:2}:host(.has-pagination-on-top) .tabulator .tabulator-tableHolder{order:3}:host(.has-pagination-on-top) .tabulator .tabulator-footer{order:1;background-color:transparent}:host(.has-pagination-on-top) .tabulator .tabulator-calcs-holder{position:absolute;bottom:0}:host(.has-pagination-on-top) .has-aggregation .tabulator-tableHolder{margin-bottom:1.5rem}:host(.has-pagination-on-top) .select-all{top:2.625rem}:host(.has-pagination-on-top) #tabulator-container:not(.has-pagination) .tabulator-paginator{display:grid !important;opacity:0}.lime-col-title__custom-component{width:100%;display:flex;align-items:center;margin-right:1.25rem;gap:0.25rem}.title-component-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex-grow:1;flex-shrink:1;min-width:0}.title-component-slot{flex-shrink:0}@keyframes detach-a-column-header{0%{transform:rotate(0deg)}100%{transform:rotate(-2deg)}}.has-movable-columns .tabulator-header{overflow-y:visible}.has-movable-columns .tabulator-header .tabulator-col:not(.tabulator-frozen){cursor:move !important}.has-movable-columns .tabulator-header .tabulator-col:not(.tabulator-frozen).tabulator-sortable.tabulator-moving{animation:detach-a-column-header 0.2s ease forwards;opacity:0.9;border:none;border-radius:0.25rem;background-color:rgb(var(---table-header-background-color-when-being-dragged));box-shadow:var(--shadow-depth-16)}.has-movable-columns .tabulator-header .tabulator-col:not(.tabulator-frozen).tabulator-sortable.tabulator-moving:hover{background-color:rgb(var(---table-header-background-color-when-being-dragged))}.has-movable-columns .tabulator-header .tabulator-col:not(.tabulator-frozen).tabulator-sortable.tabulator-moving .tabulator-arrow:before{background-color:rgb(var(---table-header-background-color-when-being-dragged))}.tabulator .tabulator-footer{transition:transform 0.5s ease-out, opacity 0.35s ease;padding-top:0;padding-bottom:0;color:var(--table-text-color);background-color:rgb(var(--table-header-background-color--hover));border:none;user-select:auto}.tabulator .tabulator-footer .tabulator-calcs-holder{border-color:rgb(var(--contrast-500));background:rgb(var(--contrast-500)) !important;margin-top:0;margin-bottom:0}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row{background:transparent !important}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-calcs{cursor:default}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-cell{padding-top:0.1875rem;padding-bottom:0.1875rem}.select-all,.limel-table--row-selector{--mdc-checkbox-touch-target-size:1rem}.select-all{position:absolute;z-index:1;left:0;top:0.375rem;width:2.5625rem;display:flex !important;align-items:center;justify-content:center}.limel-table--row-selector{position:sticky !important;left:0;border-width:0;justify-content:center;z-index:1;padding-right:0 !important;padding-left:0 !important}.tabulator-row-odd .limel-table--row-selector{background-image:linear-gradient(to right, rgb(var(--table-row-background-color--odd)) 70%, rgb(var(--table-row-background-color--odd), 0))}.tabulator-row-even .limel-table--row-selector{background-image:linear-gradient(to right, rgb(var(--table-row-background-color--even)) 70%, rgb(var(--table-row-background-color--even), 0))}.tabulator-row:not(.tabulator-calcs):hover .limel-table--row-selector{will-change:background-image;background-image:linear-gradient(to right, rgb(var(--table-row-background-color--hover)) 70%, rgb(var(--table-row-background-color--hover), 0))}.tabulator-row.active .limel-table--row-selector{background-image:linear-gradient(to right, rgb(var(--table-row-background-color--active)) 70%, rgb(var(--table-row-background-color--active), 0))}.limel-table--row-selector limel-checkbox{transition:opacity 0.2s ease;align-self:center;opacity:0.3}.tabulator-row:hover .limel-table--row-selector limel-checkbox{opacity:1}.has-selection .limel-table--row-selector limel-checkbox{opacity:1}.limel-table--row-selector .tabulator-col-resize-handle{display:none}.limel-table--row-selector+.tabulator-col .tabulator-col-resize-handle.prev,.limel-table--row-selector+.tabulator-cell .tabulator-col-resize-handle.prev{display:none}.has-movable-columns .tabulator-header .tabulator-col.limel-table--row-selector{border:none;cursor:default !important;pointer-events:none;background-color:transparent;background-image:linear-gradient(to right, rgb(var(--table-header-background-color--hover)) 70%, rgb(var(--table-header-background-color--hover), 0));left:0}.has-selection .tabulator-calcs .tabulator-cell{color:var(--table-arrow-color--active)}';export{yt as limel_table}
|