@marimo-team/islands 0.23.1-dev9 → 0.23.2-dev25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/dist/{ConnectedDataExplorerComponent-tho8l5GC.js → ConnectedDataExplorerComponent-P92i6wYx.js} +148 -148
  2. package/dist/{ImageComparisonComponent-DY3J_vIU.js → ImageComparisonComponent-HF4AY8_n.js} +2 -2
  3. package/dist/{Plot-BxlSHo0G.js → Plot-CK0oVgQL.js} +2 -2
  4. package/dist/{any-language-editor-Caoda-MR.js → any-language-editor-BCvLfvzI.js} +7 -7
  5. package/dist/{button-Cn59RsBF.js → button-D1C3g5GI.js} +72 -71
  6. package/dist/{capabilities-Bml77Di-.js → capabilities-BwpUgo4S.js} +1 -1
  7. package/dist/{chat-ui-Bs4egzxg.js → chat-ui-CNHw9Osh.js} +2829 -2829
  8. package/dist/{check-C51PA02v.js → check-BgrdTLuv.js} +1 -1
  9. package/dist/{chunk-5FQGJX7Z-C428iZBW.js → chunk-5FQGJX7Z-VIref9gx.js} +4 -4
  10. package/dist/{click-outside-container-vCXhHl-R.js → click-outside-container-D3t6KDni.js} +1 -1
  11. package/dist/{code-block-37QAKDTI-D9EnJeBI.js → code-block-37QAKDTI-FQEoMOU1.js} +2 -2
  12. package/dist/{compiler-runtime-B_OLMU9S.js → compiler-runtime-CEbnTgxf.js} +1 -1
  13. package/dist/{copy-DzOz_Au7.js → copy-Bp6CK_Fg.js} +9 -9
  14. package/dist/{data-grid-overlay-editor-lKF301ME.js → data-grid-overlay-editor-C_sKPpLu.js} +4 -4
  15. package/dist/{dist-CjLQ79mo.js → dist-CTtLBPLZ.js} +11 -11
  16. package/dist/{dist-BoNJsA65.js → dist-DUFd1bhm.js} +1 -1
  17. package/dist/{error-banner-BQcJXy6k.js → error-banner-B_ioHva3.js} +121 -121
  18. package/dist/{esm-hRljRgfG.js → esm-CDHI9cuO.js} +15 -15
  19. package/dist/{glide-data-editor-D2X4D_xi.js → glide-data-editor-BFqEJGJW.js} +948 -948
  20. package/dist/{input-BRN2Mjzx.js → input-CSVEkmaZ.js} +288 -288
  21. package/dist/{label-J1N4mVcg.js → label-BebYlsDV.js} +257 -257
  22. package/dist/{loader-JmfPBSx5.js → loader-ZFbGsMN1.js} +15 -15
  23. package/dist/main.js +7178 -7046
  24. package/dist/mermaid-4DMBBIKO-BjtqcdX4.js +6 -0
  25. package/dist/{mermaid-UMKVHs_g.js → mermaid-BbhZNQeB.js} +18 -18
  26. package/dist/{number-overlay-editor-DxLoVuuE.js → number-overlay-editor-B02-t7Ar.js} +2 -2
  27. package/dist/{process-output-BK6F4vqt.js → process-output-Bekznt_B.js} +865 -864
  28. package/dist/{react-dom-BSUuJjCR.js → react-dom-D5FDLRUB.js} +1 -1
  29. package/dist/{react-vega-DayQmZjG.js → react-vega-BkjdpVsR.js} +2 -2
  30. package/dist/{react-vega-CzRAIHrv.js → react-vega-DBwal82H.js} +1 -1
  31. package/dist/{slides-component-_3tukGh-.js → slides-component-DLxprlqo.js} +26 -26
  32. package/dist/{spec-rP6otrXw.js → spec-3EPbPQZH.js} +4 -4
  33. package/dist/style.css +1 -1
  34. package/dist/{toDate-CfGr2xZ1.js → toDate-B1AzlBoW.js} +15 -15
  35. package/dist/{tooltip-CygUI9oH.js → tooltip-DwNnFsxZ.js} +132 -133
  36. package/dist/{types-D4CFUmPq.js → types-pwjdK009.js} +15 -15
  37. package/dist/{useAsyncData-BzS3Ai32.js → useAsyncData-BL98MPIy.js} +3 -3
  38. package/dist/{useDeepCompareMemoize-AjORjhpL.js → useDeepCompareMemoize-CsyOnnjc.js} +25 -25
  39. package/dist/{useIframeCapabilities---aRgGdv.js → useIframeCapabilities-CsTUYYj7.js} +3 -3
  40. package/dist/{useLifecycle-B90lJH4p.js → useLifecycle-DrGGIsgp.js} +36 -36
  41. package/dist/{useTheme-ytmywQ5O.js → useTheme-CzwDokKe.js} +4 -4
  42. package/dist/{vega-component-1icm1Ykb.js → vega-component-KBJXEDZz.js} +42 -42
  43. package/dist/{zod-D4UoCYGu.js → zod-W5ZEjzaE.js} +23 -23
  44. package/package.json +4 -4
  45. package/src/core/islands/__tests__/bridge.test.ts +2 -12
  46. package/src/core/islands/__tests__/islands-harness.test.ts +348 -0
  47. package/src/core/islands/__tests__/parse.test.ts +466 -24
  48. package/src/core/islands/__tests__/test-utils.tsx +263 -0
  49. package/src/core/islands/bootstrap.ts +265 -0
  50. package/src/core/islands/bridge.ts +154 -75
  51. package/src/core/islands/components/IslandControls.tsx +103 -0
  52. package/src/core/islands/components/__tests__/IslandControls.test.tsx +185 -0
  53. package/src/core/islands/components/__tests__/useIslandControls.test.ts +208 -0
  54. package/src/core/islands/components/output-wrapper.tsx +76 -93
  55. package/src/core/islands/components/useIslandControls.ts +60 -0
  56. package/src/core/islands/components/web-components.tsx +168 -40
  57. package/src/core/islands/constants.ts +28 -0
  58. package/src/core/islands/main.ts +7 -205
  59. package/src/core/islands/parse.ts +73 -26
  60. package/src/core/islands/worker-factory.ts +86 -0
  61. package/src/plugins/core/RenderHTML.tsx +9 -0
  62. package/src/plugins/core/__test__/RenderHTML.test.ts +27 -0
  63. package/src/plugins/core/__test__/trusted-url.test.ts +48 -0
  64. package/src/plugins/core/registerReactComponent.tsx +11 -8
  65. package/src/plugins/core/trusted-url.ts +20 -0
  66. package/src/plugins/impl/ButtonPlugin.tsx +4 -6
  67. package/src/plugins/impl/CodeEditorPlugin.tsx +15 -18
  68. package/src/plugins/impl/DataEditorPlugin.tsx +8 -14
  69. package/src/plugins/impl/DataTablePlugin.tsx +8 -9
  70. package/src/plugins/impl/FileUploadPlugin.tsx +39 -43
  71. package/src/plugins/impl/FormPlugin.tsx +2 -6
  72. package/src/plugins/impl/anywidget/__tests__/widget-binding.test.ts +27 -1
  73. package/src/plugins/impl/anywidget/widget-binding.ts +13 -0
  74. package/src/plugins/impl/chat/ChatPlugin.tsx +17 -20
  75. package/src/plugins/impl/data-explorer/DataExplorerPlugin.tsx +5 -8
  76. package/src/plugins/impl/mpl-interactive/MplInteractivePlugin.tsx +21 -0
  77. package/src/plugins/impl/mpl-interactive/__tests__/MplInteractivePlugin.test.tsx +119 -0
  78. package/src/plugins/impl/panel/PanelPlugin.tsx +31 -10
  79. package/src/plugins/impl/panel/__tests__/PanelPlugin.test.ts +60 -0
  80. package/src/plugins/impl/vega/VegaPlugin.tsx +5 -8
  81. package/src/plugins/layout/NavigationMenuPlugin.tsx +2 -6
  82. package/dist/mermaid-4DMBBIKO-Cw46o6DN.js +0 -6
  83. /package/dist/{clsx-yW_RAw0K.js → clsx-CwTY0BxM.js} +0 -0
  84. /package/dist/{react-Bs6Z0kvn.js → react-DA-nE2FX.js} +0 -0
@@ -2,19 +2,19 @@ var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
4
  import { s as __toESM, t as __commonJSMin } from "./chunk-BNovOVIE.js";
5
- import { t as require_react } from "./react-Bs6Z0kvn.js";
6
- import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
7
- import { n as Copy, r as toast, t as copyToClipboard } from "./copy-DzOz_Au7.js";
8
- import { C as logNever, a as SelectContent, d as SelectValue, i as Select, r as capitalize, s as SelectItem, t as Label, u as SelectTrigger } from "./label-J1N4mVcg.js";
9
- import { G as marked, W as useNonce, _ as DropdownMenuSub, d as DropdownMenuContent, g as DropdownMenuSeparator, h as DropdownMenuPortal, p as DropdownMenuItem, r as Input, u as DropdownMenu, v as DropdownMenuSubContent, y as DropdownMenuSubTrigger } from "./input-BRN2Mjzx.js";
10
- import { a as Plus, i as Trash, n as ErrorBoundary, o as Pencil, r as require_prop_types, t as BulkEdit } from "./types-D4CFUmPq.js";
11
- import { g as Logger, h as Events, t as Button } from "./button-Cn59RsBF.js";
12
- import "./react-dom-BSUuJjCR.js";
5
+ import { _ as Logger, h as Events, t as Button } from "./button-D1C3g5GI.js";
6
+ import { t as require_react } from "./react-DA-nE2FX.js";
7
+ import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
8
+ import { n as Copy, r as toast, t as copyToClipboard } from "./copy-Bp6CK_Fg.js";
9
+ import { C as logNever, a as SelectContent, d as SelectValue, i as Select, r as capitalize, s as SelectItem, t as Label, u as SelectTrigger } from "./label-BebYlsDV.js";
10
+ import { G as marked, W as useNonce, _ as DropdownMenuSub, d as DropdownMenuContent, g as DropdownMenuSeparator, h as DropdownMenuPortal, p as DropdownMenuItem, r as Input, u as DropdownMenu, v as DropdownMenuSubContent, y as DropdownMenuSubTrigger } from "./input-CSVEkmaZ.js";
11
+ import { a as Plus, i as Trash, n as ErrorBoundary, o as Pencil, r as require_prop_types, t as BulkEdit } from "./types-pwjdK009.js";
12
+ import "./react-dom-D5FDLRUB.js";
13
13
  import { t as require_jsx_runtime } from "./jsx-runtime-9hcJiI23.js";
14
- import "./zod-D4UoCYGu.js";
15
- import { n as useTheme, w as useEvent_default } from "./useTheme-ytmywQ5O.js";
16
- import { A as require__Map, B as require__baseGetTag, C as require__hasPath, D as require_isArguments, E as require__isIndex, F as require_isFunction, G as assert, H as require__root, I as require_isObject, J as maybe, K as assertNever, L as require__isKey, M as require_eq, N as require__getNative, O as require__castPath, P as require__toSource, R as require_isSymbol, S as resolveCellsThunk, T as require_isLength, U as require__freeGlobal, V as require__Symbol, W as require_isArray, _ as isEditableGridCell, a as mergeAndRealizeTheme, b as isReadWriteCell, c as withAlpha, d as CompactSelection, f as GridCellKind, g as booleanCellIsEditable, h as InnerGridCellKind, i as makeCSSStyle, j as require__ListCache, k as require__MapCache, l as BooleanEmpty, m as GridColumnMenuIcon, n as ThemeContext, o as blend, p as GridColumnIcon, q as deepEqual, r as getDataEditorTheme, s as blendCache, t as ClickOutsideContainer, u as BooleanIndeterminate, v as isInnerOnlyCell, w as require__toKey, x as isSizedGridColumn, y as isObjectEditorCallbackResult, z as require_isObjectLike } from "./click-outside-container-vCXhHl-R.js";
17
- import { t as styled_default } from "./dist-BoNJsA65.js";
14
+ import "./zod-W5ZEjzaE.js";
15
+ import { n as useTheme, w as useEvent_default } from "./useTheme-CzwDokKe.js";
16
+ import { A as require__Map, B as require__baseGetTag, C as require__hasPath, D as require_isArguments, E as require__isIndex, F as require_isFunction, G as assert, H as require__root, I as require_isObject, J as maybe, K as assertNever, L as require__isKey, M as require_eq, N as require__getNative, O as require__castPath, P as require__toSource, R as require_isSymbol, S as resolveCellsThunk, T as require_isLength, U as require__freeGlobal, V as require__Symbol, W as require_isArray, _ as isEditableGridCell, a as mergeAndRealizeTheme, b as isReadWriteCell, c as withAlpha, d as CompactSelection, f as GridCellKind, g as booleanCellIsEditable, h as InnerGridCellKind, i as makeCSSStyle, j as require__ListCache, k as require__MapCache, l as BooleanEmpty, m as GridColumnMenuIcon, n as ThemeContext, o as blend, p as GridColumnIcon, q as deepEqual, r as getDataEditorTheme, s as blendCache, t as ClickOutsideContainer, u as BooleanIndeterminate, v as isInnerOnlyCell, w as require__toKey, x as isSizedGridColumn, y as isObjectEditorCallbackResult, z as require_isObjectLike } from "./click-outside-container-D3t6KDni.js";
17
+ import { t as styled_default } from "./dist-DUFd1bhm.js";
18
18
  let GlideDataEditor, glide_data_editor_default;
19
19
  let __tla = (async () => {
20
20
  const ImageOverlayEditorStyle = styled_default("div")({
@@ -23,18 +23,18 @@ let __tla = (async () => {
23
23
  propsAsIs: false
24
24
  });
25
25
  var require_react_swipe = __commonJSMin(((e) => {
26
- (function(t, r) {
26
+ (function(t, n) {
27
27
  if (typeof define == "function" && define.amd) define([
28
28
  "exports",
29
29
  "react",
30
30
  "prop-types"
31
- ], r);
32
- else if (e !== void 0) r(e, require_react(), require_prop_types());
31
+ ], n);
32
+ else if (e !== void 0) n(e, require_react(), require_prop_types());
33
33
  else {
34
- var i = {
34
+ var r = {
35
35
  exports: {}
36
36
  };
37
- r(i.exports, t.react, t.propTypes), t.reactSwipe = i.exports;
37
+ n(r.exports, t.react, t.propTypes), t.reactSwipe = r.exports;
38
38
  }
39
39
  })(e, function(e2, t, n) {
40
40
  Object.defineProperty(e2, "__esModule", {
@@ -433,7 +433,7 @@ let __tla = (async () => {
433
433
  Object.defineProperty(e, "__esModule", {
434
434
  value: true
435
435
  }), e.default = void 0;
436
- var t = u(require_react()), r = c(require_cssClasses()), i = require_dimensions(), a = c(require_CSSTranslate()), o = c(require_lib()), s = c(require_window());
436
+ var t = u(require_react()), n = c(require_cssClasses()), r = require_dimensions(), i = c(require_CSSTranslate()), o = c(require_lib()), s = c(require_window());
437
437
  function c(e2) {
438
438
  return e2 && e2.__esModule ? e2 : {
439
439
  default: e2
@@ -453,12 +453,12 @@ let __tla = (async () => {
453
453
  };
454
454
  var t2 = l();
455
455
  if (t2 && t2.has(e2)) return t2.get(e2);
456
- var n = {}, r2 = Object.defineProperty && Object.getOwnPropertyDescriptor;
456
+ var n2 = {}, r2 = Object.defineProperty && Object.getOwnPropertyDescriptor;
457
457
  for (var i2 in e2) if (Object.prototype.hasOwnProperty.call(e2, i2)) {
458
- var a2 = r2 ? Object.getOwnPropertyDescriptor(e2, i2) : null;
459
- a2 && (a2.get || a2.set) ? Object.defineProperty(n, i2, a2) : n[i2] = e2[i2];
458
+ var a = r2 ? Object.getOwnPropertyDescriptor(e2, i2) : null;
459
+ a && (a.get || a.set) ? Object.defineProperty(n2, i2, a) : n2[i2] = e2[i2];
460
460
  }
461
- return n.default = e2, t2 && t2.set(e2, n), n;
461
+ return n2.default = e2, t2 && t2.set(e2, n2), n2;
462
462
  }
463
463
  function f(e2) {
464
464
  "@babel/helpers - typeof";
@@ -471,8 +471,8 @@ let __tla = (async () => {
471
471
  function m() {
472
472
  return m = Object.assign || function(e2) {
473
473
  for (var t2 = 1; t2 < arguments.length; t2++) {
474
- var n = arguments[t2];
475
- for (var r2 in n) Object.prototype.hasOwnProperty.call(n, r2) && (e2[r2] = n[r2]);
474
+ var n2 = arguments[t2];
475
+ for (var r2 in n2) Object.prototype.hasOwnProperty.call(n2, r2) && (e2[r2] = n2[r2]);
476
476
  }
477
477
  return e2;
478
478
  }, m.apply(this, arguments);
@@ -481,13 +481,13 @@ let __tla = (async () => {
481
481
  if (!(e2 instanceof t2)) throw TypeError("Cannot call a class as a function");
482
482
  }
483
483
  function g(e2, t2) {
484
- for (var n = 0; n < t2.length; n++) {
485
- var r2 = t2[n];
484
+ for (var n2 = 0; n2 < t2.length; n2++) {
485
+ var r2 = t2[n2];
486
486
  r2.enumerable = r2.enumerable || false, r2.configurable = true, "value" in r2 && (r2.writable = true), Object.defineProperty(e2, r2.key, r2);
487
487
  }
488
488
  }
489
- function y(e2, t2, n) {
490
- return t2 && g(e2.prototype, t2), n && g(e2, n), e2;
489
+ function y(e2, t2, n2) {
490
+ return t2 && g(e2.prototype, t2), n2 && g(e2, n2), e2;
491
491
  }
492
492
  function x(e2, t2) {
493
493
  if (typeof t2 != "function" && t2 !== null) throw TypeError("Super expression must either be null or a function");
@@ -507,11 +507,11 @@ let __tla = (async () => {
507
507
  function C(e2) {
508
508
  var t2 = O();
509
509
  return function() {
510
- var n = k(e2), r2;
510
+ var n2 = k(e2), r2;
511
511
  if (t2) {
512
512
  var i2 = k(this).constructor;
513
- r2 = Reflect.construct(n, arguments, i2);
514
- } else r2 = n.apply(this, arguments);
513
+ r2 = Reflect.construct(n2, arguments, i2);
514
+ } else r2 = n2.apply(this, arguments);
515
515
  return E(this, r2);
516
516
  };
517
517
  }
@@ -537,60 +537,60 @@ let __tla = (async () => {
537
537
  return e3.__proto__ || Object.getPrototypeOf(e3);
538
538
  }, k(e2);
539
539
  }
540
- function A(e2, t2, n) {
540
+ function A(e2, t2, n2) {
541
541
  return t2 in e2 ? Object.defineProperty(e2, t2, {
542
- value: n,
542
+ value: n2,
543
543
  enumerable: true,
544
544
  configurable: true,
545
545
  writable: true
546
- }) : e2[t2] = n, e2;
546
+ }) : e2[t2] = n2, e2;
547
547
  }
548
548
  var j = function(e2) {
549
549
  return e2.hasOwnProperty("key");
550
550
  }, M = (function(e2) {
551
551
  x(c2, e2);
552
- var n = C(c2);
552
+ var a = C(c2);
553
553
  function c2(e3) {
554
- var r2;
555
- return h(this, c2), r2 = n.call(this, e3), A(D(r2), "itemsWrapperRef", void 0), A(D(r2), "itemsListRef", void 0), A(D(r2), "thumbsRef", void 0), A(D(r2), "setItemsWrapperRef", function(e4) {
556
- r2.itemsWrapperRef = e4;
557
- }), A(D(r2), "setItemsListRef", function(e4) {
558
- r2.itemsListRef = e4;
559
- }), A(D(r2), "setThumbsRef", function(e4, t2) {
560
- r2.thumbsRef || (r2.thumbsRef = []), r2.thumbsRef[t2] = e4;
561
- }), A(D(r2), "updateSizes", function() {
562
- if (!(!r2.props.children || !r2.itemsWrapperRef || !r2.thumbsRef)) {
563
- var e4 = t.Children.count(r2.props.children), n2 = r2.itemsWrapperRef.clientWidth, a2 = r2.props.thumbWidth ? r2.props.thumbWidth : (0, i.outerWidth)(r2.thumbsRef[0]), o2 = Math.floor(n2 / a2), s2 = o2 < e4, c3 = s2 ? e4 - o2 : 0;
564
- r2.setState(function(e5, t2) {
554
+ var n2;
555
+ return h(this, c2), n2 = a.call(this, e3), A(D(n2), "itemsWrapperRef", void 0), A(D(n2), "itemsListRef", void 0), A(D(n2), "thumbsRef", void 0), A(D(n2), "setItemsWrapperRef", function(e4) {
556
+ n2.itemsWrapperRef = e4;
557
+ }), A(D(n2), "setItemsListRef", function(e4) {
558
+ n2.itemsListRef = e4;
559
+ }), A(D(n2), "setThumbsRef", function(e4, t2) {
560
+ n2.thumbsRef || (n2.thumbsRef = []), n2.thumbsRef[t2] = e4;
561
+ }), A(D(n2), "updateSizes", function() {
562
+ if (!(!n2.props.children || !n2.itemsWrapperRef || !n2.thumbsRef)) {
563
+ var e4 = t.Children.count(n2.props.children), i2 = n2.itemsWrapperRef.clientWidth, a2 = n2.props.thumbWidth ? n2.props.thumbWidth : (0, r.outerWidth)(n2.thumbsRef[0]), o2 = Math.floor(i2 / a2), s2 = o2 < e4, c3 = s2 ? e4 - o2 : 0;
564
+ n2.setState(function(e5, t2) {
565
565
  return {
566
566
  itemSize: a2,
567
567
  visibleItems: o2,
568
- firstItem: s2 ? r2.getFirstItem(t2.selectedItem) : 0,
568
+ firstItem: s2 ? n2.getFirstItem(t2.selectedItem) : 0,
569
569
  lastPosition: c3,
570
570
  showArrows: s2
571
571
  };
572
572
  });
573
573
  }
574
- }), A(D(r2), "handleClickItem", function(e4, t2, n2) {
575
- if (!j(n2) || n2.key === "Enter") {
576
- var i2 = r2.props.onSelectItem;
574
+ }), A(D(n2), "handleClickItem", function(e4, t2, r2) {
575
+ if (!j(r2) || r2.key === "Enter") {
576
+ var i2 = n2.props.onSelectItem;
577
577
  typeof i2 == "function" && i2(e4, t2);
578
578
  }
579
- }), A(D(r2), "onSwipeStart", function() {
580
- r2.setState({
579
+ }), A(D(n2), "onSwipeStart", function() {
580
+ n2.setState({
581
581
  swiping: true
582
582
  });
583
- }), A(D(r2), "onSwipeEnd", function() {
584
- r2.setState({
583
+ }), A(D(n2), "onSwipeEnd", function() {
584
+ n2.setState({
585
585
  swiping: false
586
586
  });
587
- }), A(D(r2), "onSwipeMove", function(e4) {
588
- var n2 = e4.x;
589
- if (!r2.state.itemSize || !r2.itemsWrapperRef || !r2.state.visibleItems) return false;
590
- var i2 = 0, o2 = t.Children.count(r2.props.children), s2 = -(r2.state.firstItem * 100) / r2.state.visibleItems, c3 = -Math.max(o2 - r2.state.visibleItems, 0) * 100 / r2.state.visibleItems;
591
- s2 === i2 && n2 > 0 && (n2 = 0), s2 === c3 && n2 < 0 && (n2 = 0);
592
- var l2 = s2 + 100 / (r2.itemsWrapperRef.clientWidth / n2);
593
- return r2.itemsListRef && [
587
+ }), A(D(n2), "onSwipeMove", function(e4) {
588
+ var r2 = e4.x;
589
+ if (!n2.state.itemSize || !n2.itemsWrapperRef || !n2.state.visibleItems) return false;
590
+ var a2 = 0, o2 = t.Children.count(n2.props.children), s2 = -(n2.state.firstItem * 100) / n2.state.visibleItems, c3 = -Math.max(o2 - n2.state.visibleItems, 0) * 100 / n2.state.visibleItems;
591
+ s2 === a2 && r2 > 0 && (r2 = 0), s2 === c3 && r2 < 0 && (r2 = 0);
592
+ var l2 = s2 + 100 / (n2.itemsWrapperRef.clientWidth / r2);
593
+ return n2.itemsListRef && [
594
594
  "WebkitTransform",
595
595
  "MozTransform",
596
596
  "MsTransform",
@@ -598,24 +598,24 @@ let __tla = (async () => {
598
598
  "transform",
599
599
  "msTransform"
600
600
  ].forEach(function(e5) {
601
- r2.itemsListRef.style[e5] = (0, a.default)(l2, "%", r2.props.axis);
601
+ n2.itemsListRef.style[e5] = (0, i.default)(l2, "%", n2.props.axis);
602
602
  }), true;
603
- }), A(D(r2), "slideRight", function(e4) {
604
- r2.moveTo(r2.state.firstItem - (typeof e4 == "number" ? e4 : 1));
605
- }), A(D(r2), "slideLeft", function(e4) {
606
- r2.moveTo(r2.state.firstItem + (typeof e4 == "number" ? e4 : 1));
607
- }), A(D(r2), "moveTo", function(e4) {
608
- e4 = e4 < 0 ? 0 : e4, e4 = e4 >= r2.state.lastPosition ? r2.state.lastPosition : e4, r2.setState({
603
+ }), A(D(n2), "slideRight", function(e4) {
604
+ n2.moveTo(n2.state.firstItem - (typeof e4 == "number" ? e4 : 1));
605
+ }), A(D(n2), "slideLeft", function(e4) {
606
+ n2.moveTo(n2.state.firstItem + (typeof e4 == "number" ? e4 : 1));
607
+ }), A(D(n2), "moveTo", function(e4) {
608
+ e4 = e4 < 0 ? 0 : e4, e4 = e4 >= n2.state.lastPosition ? n2.state.lastPosition : e4, n2.setState({
609
609
  firstItem: e4
610
610
  });
611
- }), r2.state = {
611
+ }), n2.state = {
612
612
  selectedItem: e3.selectedItem,
613
613
  swiping: false,
614
614
  showArrows: false,
615
615
  firstItem: 0,
616
616
  visibleItems: 0,
617
617
  lastPosition: 0
618
- }, r2;
618
+ }, n2;
619
619
  }
620
620
  return y(c2, [
621
621
  {
@@ -662,13 +662,13 @@ let __tla = (async () => {
662
662
  key: "renderItems",
663
663
  value: function() {
664
664
  var e3 = this;
665
- return this.props.children.map(function(n2, i2) {
665
+ return this.props.children.map(function(r2, i2) {
666
666
  var a2 = {
667
667
  key: i2,
668
668
  ref: function(t2) {
669
669
  return e3.setThumbsRef(t2, i2);
670
670
  },
671
- className: r.default.ITEM(false, i2 === e3.state.selectedItem),
671
+ className: n.default.ITEM(false, i2 === e3.state.selectedItem),
672
672
  onClick: e3.handleClickItem.bind(e3, i2, e3.props.children[i2]),
673
673
  onKeyDown: e3.handleClickItem.bind(e3, i2, e3.props.children[i2]),
674
674
  "aria-label": `${e3.props.labels.item} ${i2 + 1}`,
@@ -679,7 +679,7 @@ let __tla = (async () => {
679
679
  return t.default.createElement("li", m({}, a2, {
680
680
  role: "button",
681
681
  tabIndex: 0
682
- }), n2);
682
+ }), r2);
683
683
  });
684
684
  }
685
685
  },
@@ -688,7 +688,7 @@ let __tla = (async () => {
688
688
  value: function() {
689
689
  var e3 = this;
690
690
  if (!this.props.children) return null;
691
- var n2 = t.Children.count(this.props.children) > 1, i2 = this.state.showArrows && this.state.firstItem > 0, s2 = this.state.showArrows && this.state.firstItem < this.state.lastPosition, c3 = {}, l2 = -this.state.firstItem * (this.state.itemSize || 0), u2 = (0, a.default)(l2, "px", this.props.axis), f2 = this.props.transitionTime + "ms";
691
+ var r2 = t.Children.count(this.props.children) > 1, a2 = this.state.showArrows && this.state.firstItem > 0, s2 = this.state.showArrows && this.state.firstItem < this.state.lastPosition, c3 = {}, l2 = -this.state.firstItem * (this.state.itemSize || 0), u2 = (0, i.default)(l2, "px", this.props.axis), f2 = this.props.transitionTime + "ms";
692
692
  return c3 = {
693
693
  WebkitTransform: u2,
694
694
  MozTransform: u2,
@@ -703,20 +703,20 @@ let __tla = (async () => {
703
703
  transitionDuration: f2,
704
704
  msTransitionDuration: f2
705
705
  }, t.default.createElement("div", {
706
- className: r.default.CAROUSEL(false)
706
+ className: n.default.CAROUSEL(false)
707
707
  }, t.default.createElement("div", {
708
- className: r.default.WRAPPER(false),
708
+ className: n.default.WRAPPER(false),
709
709
  ref: this.setItemsWrapperRef
710
710
  }, t.default.createElement("button", {
711
711
  type: "button",
712
- className: r.default.ARROW_PREV(!i2),
712
+ className: n.default.ARROW_PREV(!a2),
713
713
  onClick: function() {
714
714
  return e3.slideRight();
715
715
  },
716
716
  "aria-label": this.props.labels.leftArrow
717
- }), n2 ? t.default.createElement(o.default, {
717
+ }), r2 ? t.default.createElement(o.default, {
718
718
  tagName: "ul",
719
- className: r.default.SLIDER(false, this.state.swiping),
719
+ className: n.default.SLIDER(false, this.state.swiping),
720
720
  onSwipeLeft: this.slideLeft,
721
721
  onSwipeRight: this.slideRight,
722
722
  onSwipeMove: this.onSwipeMove,
@@ -726,14 +726,14 @@ let __tla = (async () => {
726
726
  innerRef: this.setItemsListRef,
727
727
  allowMouseEvents: this.props.emulateTouch
728
728
  }, this.renderItems()) : t.default.createElement("ul", {
729
- className: r.default.SLIDER(false, this.state.swiping),
729
+ className: n.default.SLIDER(false, this.state.swiping),
730
730
  ref: function(t2) {
731
731
  return e3.setItemsListRef(t2);
732
732
  },
733
733
  style: c3
734
734
  }, this.renderItems()), t.default.createElement("button", {
735
735
  type: "button",
736
- className: r.default.ARROW_NEXT(!s2),
736
+ className: n.default.ARROW_NEXT(!s2),
737
737
  onClick: function() {
738
738
  return e3.slideLeft();
739
739
  },
@@ -764,8 +764,8 @@ let __tla = (async () => {
764
764
  Object.defineProperty(e, "__esModule", {
765
765
  value: true
766
766
  }), e.setPosition = e.getPosition = e.isKeyboardEvent = e.defaultStatusFormatter = e.noop = void 0;
767
- var t = require_react(), r = i(require_CSSTranslate());
768
- function i(e2) {
767
+ var t = require_react(), n = r(require_CSSTranslate());
768
+ function r(e2) {
769
769
  return e2 && e2.__esModule ? e2 : {
770
770
  default: e2
771
771
  };
@@ -775,16 +775,16 @@ let __tla = (async () => {
775
775
  return `${e2} of ${t2}`;
776
776
  }, e.isKeyboardEvent = function(e2) {
777
777
  return e2 ? e2.hasOwnProperty("key") : false;
778
- }, e.getPosition = function(e2, n) {
779
- if (n.infiniteLoop && ++e2, e2 === 0) return 0;
780
- var r2 = t.Children.count(n.children);
781
- if (n.centerMode && n.axis === "horizontal") {
782
- var i2 = -e2 * n.centerSlidePercentage, a = r2 - 1;
783
- return e2 && (e2 !== a || n.infiniteLoop) ? i2 += (100 - n.centerSlidePercentage) / 2 : e2 === a && (i2 += 100 - n.centerSlidePercentage), i2;
778
+ }, e.getPosition = function(e2, n2) {
779
+ if (n2.infiniteLoop && ++e2, e2 === 0) return 0;
780
+ var r2 = t.Children.count(n2.children);
781
+ if (n2.centerMode && n2.axis === "horizontal") {
782
+ var i = -e2 * n2.centerSlidePercentage, a = r2 - 1;
783
+ return e2 && (e2 !== a || n2.infiniteLoop) ? i += (100 - n2.centerSlidePercentage) / 2 : e2 === a && (i += 100 - n2.centerSlidePercentage), i;
784
784
  }
785
785
  return -e2 * 100;
786
786
  }, e.setPosition = function(e2, t2) {
787
- var n = {};
787
+ var r2 = {};
788
788
  return [
789
789
  "WebkitTransform",
790
790
  "MozTransform",
@@ -792,81 +792,81 @@ let __tla = (async () => {
792
792
  "OTransform",
793
793
  "transform",
794
794
  "msTransform"
795
- ].forEach(function(i2) {
796
- n[i2] = (0, r.default)(e2, "%", t2);
797
- }), n;
795
+ ].forEach(function(i) {
796
+ r2[i] = (0, n.default)(e2, "%", t2);
797
+ }), r2;
798
798
  };
799
799
  })), require_animations = __commonJSMin(((e) => {
800
800
  Object.defineProperty(e, "__esModule", {
801
801
  value: true
802
802
  }), e.fadeAnimationHandler = e.slideStopSwipingHandler = e.slideSwipeAnimationHandler = e.slideAnimationHandler = void 0;
803
- var t = require_react(), r = a(require_CSSTranslate()), i = require_utils();
804
- function a(e2) {
803
+ var t = require_react(), n = i(require_CSSTranslate()), r = require_utils();
804
+ function i(e2) {
805
805
  return e2 && e2.__esModule ? e2 : {
806
806
  default: e2
807
807
  };
808
808
  }
809
809
  function o(e2, t2) {
810
- var n = Object.keys(e2);
810
+ var n2 = Object.keys(e2);
811
811
  if (Object.getOwnPropertySymbols) {
812
812
  var r2 = Object.getOwnPropertySymbols(e2);
813
813
  t2 && (r2 = r2.filter(function(t3) {
814
814
  return Object.getOwnPropertyDescriptor(e2, t3).enumerable;
815
- })), n.push.apply(n, r2);
815
+ })), n2.push.apply(n2, r2);
816
816
  }
817
- return n;
817
+ return n2;
818
818
  }
819
819
  function s(e2) {
820
820
  for (var t2 = 1; t2 < arguments.length; t2++) {
821
- var n = arguments[t2] == null ? {} : arguments[t2];
822
- t2 % 2 ? o(Object(n), true).forEach(function(t3) {
823
- c(e2, t3, n[t3]);
824
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(n)) : o(Object(n)).forEach(function(t3) {
825
- Object.defineProperty(e2, t3, Object.getOwnPropertyDescriptor(n, t3));
821
+ var n2 = arguments[t2] == null ? {} : arguments[t2];
822
+ t2 % 2 ? o(Object(n2), true).forEach(function(t3) {
823
+ c(e2, t3, n2[t3]);
824
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(n2)) : o(Object(n2)).forEach(function(t3) {
825
+ Object.defineProperty(e2, t3, Object.getOwnPropertyDescriptor(n2, t3));
826
826
  });
827
827
  }
828
828
  return e2;
829
829
  }
830
- function c(e2, t2, n) {
830
+ function c(e2, t2, n2) {
831
831
  return t2 in e2 ? Object.defineProperty(e2, t2, {
832
- value: n,
832
+ value: n2,
833
833
  enumerable: true,
834
834
  configurable: true,
835
835
  writable: true
836
- }) : e2[t2] = n, e2;
836
+ }) : e2[t2] = n2, e2;
837
837
  }
838
- e.slideAnimationHandler = function(e2, n) {
839
- var a2 = {}, o2 = n.selectedItem, c2 = o2, l = t.Children.count(e2.children) - 1;
840
- if (e2.infiniteLoop && (o2 < 0 || o2 > l)) return c2 < 0 ? e2.centerMode && e2.centerSlidePercentage && e2.axis === "horizontal" ? a2.itemListStyle = (0, i.setPosition)(-(l + 2) * e2.centerSlidePercentage - (100 - e2.centerSlidePercentage) / 2, e2.axis) : a2.itemListStyle = (0, i.setPosition)(-(l + 2) * 100, e2.axis) : c2 > l && (a2.itemListStyle = (0, i.setPosition)(0, e2.axis)), a2;
841
- var u = (0, i.getPosition)(o2, e2), f = (0, r.default)(u, "%", e2.axis), m = e2.transitionTime + "ms";
842
- return a2.itemListStyle = {
838
+ e.slideAnimationHandler = function(e2, i2) {
839
+ var a = {}, o2 = i2.selectedItem, c2 = o2, l = t.Children.count(e2.children) - 1;
840
+ if (e2.infiniteLoop && (o2 < 0 || o2 > l)) return c2 < 0 ? e2.centerMode && e2.centerSlidePercentage && e2.axis === "horizontal" ? a.itemListStyle = (0, r.setPosition)(-(l + 2) * e2.centerSlidePercentage - (100 - e2.centerSlidePercentage) / 2, e2.axis) : a.itemListStyle = (0, r.setPosition)(-(l + 2) * 100, e2.axis) : c2 > l && (a.itemListStyle = (0, r.setPosition)(0, e2.axis)), a;
841
+ var u = (0, r.getPosition)(o2, e2), f = (0, n.default)(u, "%", e2.axis), m = e2.transitionTime + "ms";
842
+ return a.itemListStyle = {
843
843
  WebkitTransform: f,
844
844
  msTransform: f,
845
845
  OTransform: f,
846
846
  transform: f
847
- }, n.swiping || (a2.itemListStyle = s(s({}, a2.itemListStyle), {}, {
847
+ }, i2.swiping || (a.itemListStyle = s(s({}, a.itemListStyle), {}, {
848
848
  WebkitTransitionDuration: m,
849
849
  MozTransitionDuration: m,
850
850
  OTransitionDuration: m,
851
851
  transitionDuration: m,
852
852
  msTransitionDuration: m
853
- })), a2;
854
- }, e.slideSwipeAnimationHandler = function(e2, n, r2, a2) {
855
- var o2 = {}, s2 = n.axis === "horizontal", c2 = t.Children.count(n.children), l = 0, u = (0, i.getPosition)(r2.selectedItem, n), f = n.infiniteLoop ? (0, i.getPosition)(c2 - 1, n) - 100 : (0, i.getPosition)(c2 - 1, n), m = s2 ? e2.x : e2.y, h = m;
853
+ })), a;
854
+ }, e.slideSwipeAnimationHandler = function(e2, n2, i2, a) {
855
+ var o2 = {}, s2 = n2.axis === "horizontal", c2 = t.Children.count(n2.children), l = 0, u = (0, r.getPosition)(i2.selectedItem, n2), f = n2.infiniteLoop ? (0, r.getPosition)(c2 - 1, n2) - 100 : (0, r.getPosition)(c2 - 1, n2), m = s2 ? e2.x : e2.y, h = m;
856
856
  u === l && m > 0 && (h = 0), u === f && m < 0 && (h = 0);
857
- var g = u + 100 / (r2.itemSize / h), y = Math.abs(m) > n.swipeScrollTolerance;
858
- return n.infiniteLoop && y && (r2.selectedItem === 0 && g > -100 ? g -= c2 * 100 : r2.selectedItem === c2 - 1 && g < -c2 * 100 && (g += c2 * 100)), (!n.preventMovementUntilSwipeScrollTolerance || y || r2.swipeMovementStarted) && (r2.swipeMovementStarted || a2({
857
+ var g = u + 100 / (i2.itemSize / h), y = Math.abs(m) > n2.swipeScrollTolerance;
858
+ return n2.infiniteLoop && y && (i2.selectedItem === 0 && g > -100 ? g -= c2 * 100 : i2.selectedItem === c2 - 1 && g < -c2 * 100 && (g += c2 * 100)), (!n2.preventMovementUntilSwipeScrollTolerance || y || i2.swipeMovementStarted) && (i2.swipeMovementStarted || a({
859
859
  swipeMovementStarted: true
860
- }), o2.itemListStyle = (0, i.setPosition)(g, n.axis)), y && !r2.cancelClick && a2({
860
+ }), o2.itemListStyle = (0, r.setPosition)(g, n2.axis)), y && !i2.cancelClick && a({
861
861
  cancelClick: true
862
862
  }), o2;
863
863
  }, e.slideStopSwipingHandler = function(e2, t2) {
864
- var n = (0, i.getPosition)(t2.selectedItem, e2);
864
+ var n2 = (0, r.getPosition)(t2.selectedItem, e2);
865
865
  return {
866
- itemListStyle: (0, i.setPosition)(n, e2.axis)
866
+ itemListStyle: (0, r.setPosition)(n2, e2.axis)
867
867
  };
868
868
  }, e.fadeAnimationHandler = function(e2, t2) {
869
- var n = e2.transitionTime + "ms", r2 = "ease-in-out", i2 = {
869
+ var n2 = e2.transitionTime + "ms", r2 = "ease-in-out", i2 = {
870
870
  position: "absolute",
871
871
  display: "block",
872
872
  zIndex: -2,
@@ -883,11 +883,11 @@ let __tla = (async () => {
883
883
  OTransitionTimingFunction: r2
884
884
  };
885
885
  return t2.swiping || (i2 = s(s({}, i2), {}, {
886
- WebkitTransitionDuration: n,
887
- MozTransitionDuration: n,
888
- OTransitionDuration: n,
889
- transitionDuration: n,
890
- msTransitionDuration: n
886
+ WebkitTransitionDuration: n2,
887
+ MozTransitionDuration: n2,
888
+ OTransitionDuration: n2,
889
+ transitionDuration: n2,
890
+ msTransitionDuration: n2
891
891
  })), {
892
892
  slideStyle: i2,
893
893
  selectedStyle: s(s({}, i2), {}, {
@@ -901,7 +901,7 @@ let __tla = (async () => {
901
901
  Object.defineProperty(e, "__esModule", {
902
902
  value: true
903
903
  }), e.default = void 0;
904
- var t = m(require_react()), r = u(require_lib()), i = u(require_cssClasses()), a = u(require_Thumbs()), o = u(require_document()), s = u(require_window()), c = require_utils(), l = require_animations();
904
+ var t = m(require_react()), n = u(require_lib()), r = u(require_cssClasses()), i = u(require_Thumbs()), o = u(require_document()), s = u(require_window()), c = require_utils(), l = require_animations();
905
905
  function u(e2) {
906
906
  return e2 && e2.__esModule ? e2 : {
907
907
  default: e2
@@ -921,12 +921,12 @@ let __tla = (async () => {
921
921
  };
922
922
  var t2 = f();
923
923
  if (t2 && t2.has(e2)) return t2.get(e2);
924
- var n = {}, r2 = Object.defineProperty && Object.getOwnPropertyDescriptor;
924
+ var n2 = {}, r2 = Object.defineProperty && Object.getOwnPropertyDescriptor;
925
925
  for (var i2 in e2) if (Object.prototype.hasOwnProperty.call(e2, i2)) {
926
- var a2 = r2 ? Object.getOwnPropertyDescriptor(e2, i2) : null;
927
- a2 && (a2.get || a2.set) ? Object.defineProperty(n, i2, a2) : n[i2] = e2[i2];
926
+ var a = r2 ? Object.getOwnPropertyDescriptor(e2, i2) : null;
927
+ a && (a.get || a.set) ? Object.defineProperty(n2, i2, a) : n2[i2] = e2[i2];
928
928
  }
929
- return n.default = e2, t2 && t2.set(e2, n), n;
929
+ return n2.default = e2, t2 && t2.set(e2, n2), n2;
930
930
  }
931
931
  function h(e2) {
932
932
  "@babel/helpers - typeof";
@@ -939,29 +939,29 @@ let __tla = (async () => {
939
939
  function g() {
940
940
  return g = Object.assign || function(e2) {
941
941
  for (var t2 = 1; t2 < arguments.length; t2++) {
942
- var n = arguments[t2];
943
- for (var r2 in n) Object.prototype.hasOwnProperty.call(n, r2) && (e2[r2] = n[r2]);
942
+ var n2 = arguments[t2];
943
+ for (var r2 in n2) Object.prototype.hasOwnProperty.call(n2, r2) && (e2[r2] = n2[r2]);
944
944
  }
945
945
  return e2;
946
946
  }, g.apply(this, arguments);
947
947
  }
948
948
  function y(e2, t2) {
949
- var n = Object.keys(e2);
949
+ var n2 = Object.keys(e2);
950
950
  if (Object.getOwnPropertySymbols) {
951
951
  var r2 = Object.getOwnPropertySymbols(e2);
952
952
  t2 && (r2 = r2.filter(function(t3) {
953
953
  return Object.getOwnPropertyDescriptor(e2, t3).enumerable;
954
- })), n.push.apply(n, r2);
954
+ })), n2.push.apply(n2, r2);
955
955
  }
956
- return n;
956
+ return n2;
957
957
  }
958
958
  function x(e2) {
959
959
  for (var t2 = 1; t2 < arguments.length; t2++) {
960
- var n = arguments[t2] == null ? {} : arguments[t2];
961
- t2 % 2 ? y(Object(n), true).forEach(function(t3) {
962
- P(e2, t3, n[t3]);
963
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(n)) : y(Object(n)).forEach(function(t3) {
964
- Object.defineProperty(e2, t3, Object.getOwnPropertyDescriptor(n, t3));
960
+ var n2 = arguments[t2] == null ? {} : arguments[t2];
961
+ t2 % 2 ? y(Object(n2), true).forEach(function(t3) {
962
+ P(e2, t3, n2[t3]);
963
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(n2)) : y(Object(n2)).forEach(function(t3) {
964
+ Object.defineProperty(e2, t3, Object.getOwnPropertyDescriptor(n2, t3));
965
965
  });
966
966
  }
967
967
  return e2;
@@ -970,13 +970,13 @@ let __tla = (async () => {
970
970
  if (!(e2 instanceof t2)) throw TypeError("Cannot call a class as a function");
971
971
  }
972
972
  function C(e2, t2) {
973
- for (var n = 0; n < t2.length; n++) {
974
- var r2 = t2[n];
973
+ for (var n2 = 0; n2 < t2.length; n2++) {
974
+ var r2 = t2[n2];
975
975
  r2.enumerable = r2.enumerable || false, r2.configurable = true, "value" in r2 && (r2.writable = true), Object.defineProperty(e2, r2.key, r2);
976
976
  }
977
977
  }
978
- function E(e2, t2, n) {
979
- return t2 && C(e2.prototype, t2), n && C(e2, n), e2;
978
+ function E(e2, t2, n2) {
979
+ return t2 && C(e2.prototype, t2), n2 && C(e2, n2), e2;
980
980
  }
981
981
  function D(e2, t2) {
982
982
  if (typeof t2 != "function" && t2 !== null) throw TypeError("Super expression must either be null or a function");
@@ -996,11 +996,11 @@ let __tla = (async () => {
996
996
  function k(e2) {
997
997
  var t2 = M();
998
998
  return function() {
999
- var n = N(e2), r2;
999
+ var n2 = N(e2), r2;
1000
1000
  if (t2) {
1001
1001
  var i2 = N(this).constructor;
1002
- r2 = Reflect.construct(n, arguments, i2);
1003
- } else r2 = n.apply(this, arguments);
1002
+ r2 = Reflect.construct(n2, arguments, i2);
1003
+ } else r2 = n2.apply(this, arguments);
1004
1004
  return A(this, r2);
1005
1005
  };
1006
1006
  }
@@ -1026,153 +1026,153 @@ let __tla = (async () => {
1026
1026
  return e3.__proto__ || Object.getPrototypeOf(e3);
1027
1027
  }, N(e2);
1028
1028
  }
1029
- function P(e2, t2, n) {
1029
+ function P(e2, t2, n2) {
1030
1030
  return t2 in e2 ? Object.defineProperty(e2, t2, {
1031
- value: n,
1031
+ value: n2,
1032
1032
  enumerable: true,
1033
1033
  configurable: true,
1034
1034
  writable: true
1035
- }) : e2[t2] = n, e2;
1035
+ }) : e2[t2] = n2, e2;
1036
1036
  }
1037
1037
  var F = (function(e2) {
1038
1038
  D(u2, e2);
1039
- var n = k(u2);
1039
+ var a = k(u2);
1040
1040
  function u2(e3) {
1041
- var r2;
1042
- S(this, u2), r2 = n.call(this, e3), P(j(r2), "thumbsRef", void 0), P(j(r2), "carouselWrapperRef", void 0), P(j(r2), "listRef", void 0), P(j(r2), "itemsRef", void 0), P(j(r2), "timer", void 0), P(j(r2), "animationHandler", void 0), P(j(r2), "setThumbsRef", function(e4) {
1043
- r2.thumbsRef = e4;
1044
- }), P(j(r2), "setCarouselWrapperRef", function(e4) {
1045
- r2.carouselWrapperRef = e4;
1046
- }), P(j(r2), "setListRef", function(e4) {
1047
- r2.listRef = e4;
1048
- }), P(j(r2), "setItemsRef", function(e4, t2) {
1049
- r2.itemsRef || (r2.itemsRef = []), r2.itemsRef[t2] = e4;
1050
- }), P(j(r2), "autoPlay", function() {
1051
- t.Children.count(r2.props.children) <= 1 || (r2.clearAutoPlay(), r2.props.autoPlay && (r2.timer = setTimeout(function() {
1052
- r2.increment();
1053
- }, r2.props.interval)));
1054
- }), P(j(r2), "clearAutoPlay", function() {
1055
- r2.timer && clearTimeout(r2.timer);
1056
- }), P(j(r2), "resetAutoPlay", function() {
1057
- r2.clearAutoPlay(), r2.autoPlay();
1058
- }), P(j(r2), "stopOnHover", function() {
1059
- r2.setState({
1041
+ var n2;
1042
+ S(this, u2), n2 = a.call(this, e3), P(j(n2), "thumbsRef", void 0), P(j(n2), "carouselWrapperRef", void 0), P(j(n2), "listRef", void 0), P(j(n2), "itemsRef", void 0), P(j(n2), "timer", void 0), P(j(n2), "animationHandler", void 0), P(j(n2), "setThumbsRef", function(e4) {
1043
+ n2.thumbsRef = e4;
1044
+ }), P(j(n2), "setCarouselWrapperRef", function(e4) {
1045
+ n2.carouselWrapperRef = e4;
1046
+ }), P(j(n2), "setListRef", function(e4) {
1047
+ n2.listRef = e4;
1048
+ }), P(j(n2), "setItemsRef", function(e4, t2) {
1049
+ n2.itemsRef || (n2.itemsRef = []), n2.itemsRef[t2] = e4;
1050
+ }), P(j(n2), "autoPlay", function() {
1051
+ t.Children.count(n2.props.children) <= 1 || (n2.clearAutoPlay(), n2.props.autoPlay && (n2.timer = setTimeout(function() {
1052
+ n2.increment();
1053
+ }, n2.props.interval)));
1054
+ }), P(j(n2), "clearAutoPlay", function() {
1055
+ n2.timer && clearTimeout(n2.timer);
1056
+ }), P(j(n2), "resetAutoPlay", function() {
1057
+ n2.clearAutoPlay(), n2.autoPlay();
1058
+ }), P(j(n2), "stopOnHover", function() {
1059
+ n2.setState({
1060
1060
  isMouseEntered: true
1061
- }, r2.clearAutoPlay);
1062
- }), P(j(r2), "startOnLeave", function() {
1063
- r2.setState({
1061
+ }, n2.clearAutoPlay);
1062
+ }), P(j(n2), "startOnLeave", function() {
1063
+ n2.setState({
1064
1064
  isMouseEntered: false
1065
- }, r2.autoPlay);
1066
- }), P(j(r2), "isFocusWithinTheCarousel", function() {
1067
- return r2.carouselWrapperRef ? !!((0, o.default)().activeElement === r2.carouselWrapperRef || r2.carouselWrapperRef.contains((0, o.default)().activeElement)) : false;
1068
- }), P(j(r2), "navigateWithKeyboard", function(e4) {
1069
- if (r2.isFocusWithinTheCarousel()) {
1070
- var t2 = r2.props.axis === "horizontal", n2 = {
1065
+ }, n2.autoPlay);
1066
+ }), P(j(n2), "isFocusWithinTheCarousel", function() {
1067
+ return n2.carouselWrapperRef ? !!((0, o.default)().activeElement === n2.carouselWrapperRef || n2.carouselWrapperRef.contains((0, o.default)().activeElement)) : false;
1068
+ }), P(j(n2), "navigateWithKeyboard", function(e4) {
1069
+ if (n2.isFocusWithinTheCarousel()) {
1070
+ var t2 = n2.props.axis === "horizontal", r3 = {
1071
1071
  ArrowUp: 38,
1072
1072
  ArrowRight: 39,
1073
1073
  ArrowDown: 40,
1074
1074
  ArrowLeft: 37
1075
- }, i3 = t2 ? n2.ArrowRight : n2.ArrowDown, a2 = t2 ? n2.ArrowLeft : n2.ArrowUp;
1076
- i3 === e4.keyCode ? r2.increment() : a2 === e4.keyCode && r2.decrement();
1075
+ }, i2 = t2 ? r3.ArrowRight : r3.ArrowDown, a2 = t2 ? r3.ArrowLeft : r3.ArrowUp;
1076
+ i2 === e4.keyCode ? n2.increment() : a2 === e4.keyCode && n2.decrement();
1077
1077
  }
1078
- }), P(j(r2), "updateSizes", function() {
1079
- if (!(!r2.state.initialized || !r2.itemsRef || r2.itemsRef.length === 0)) {
1080
- var e4 = r2.props.axis === "horizontal", t2 = r2.itemsRef[0];
1078
+ }), P(j(n2), "updateSizes", function() {
1079
+ if (!(!n2.state.initialized || !n2.itemsRef || n2.itemsRef.length === 0)) {
1080
+ var e4 = n2.props.axis === "horizontal", t2 = n2.itemsRef[0];
1081
1081
  if (t2) {
1082
- var n2 = e4 ? t2.clientWidth : t2.clientHeight;
1083
- r2.setState({
1084
- itemSize: n2
1085
- }), r2.thumbsRef && r2.thumbsRef.updateSizes();
1082
+ var r3 = e4 ? t2.clientWidth : t2.clientHeight;
1083
+ n2.setState({
1084
+ itemSize: r3
1085
+ }), n2.thumbsRef && n2.thumbsRef.updateSizes();
1086
1086
  }
1087
1087
  }
1088
- }), P(j(r2), "setMountState", function() {
1089
- r2.setState({
1088
+ }), P(j(n2), "setMountState", function() {
1089
+ n2.setState({
1090
1090
  hasMount: true
1091
- }), r2.updateSizes();
1092
- }), P(j(r2), "handleClickItem", function(e4, n2) {
1093
- if (t.Children.count(r2.props.children) !== 0) {
1094
- if (r2.state.cancelClick) {
1095
- r2.setState({
1091
+ }), n2.updateSizes();
1092
+ }), P(j(n2), "handleClickItem", function(e4, r3) {
1093
+ if (t.Children.count(n2.props.children) !== 0) {
1094
+ if (n2.state.cancelClick) {
1095
+ n2.setState({
1096
1096
  cancelClick: false
1097
1097
  });
1098
1098
  return;
1099
1099
  }
1100
- r2.props.onClickItem(e4, n2), e4 !== r2.state.selectedItem && r2.setState({
1100
+ n2.props.onClickItem(e4, r3), e4 !== n2.state.selectedItem && n2.setState({
1101
1101
  selectedItem: e4
1102
1102
  });
1103
1103
  }
1104
- }), P(j(r2), "handleOnChange", function(e4, n2) {
1105
- t.Children.count(r2.props.children) <= 1 || r2.props.onChange(e4, n2);
1106
- }), P(j(r2), "handleClickThumb", function(e4, t2) {
1107
- r2.props.onClickThumb(e4, t2), r2.moveTo(e4);
1108
- }), P(j(r2), "onSwipeStart", function(e4) {
1109
- r2.setState({
1104
+ }), P(j(n2), "handleOnChange", function(e4, r3) {
1105
+ t.Children.count(n2.props.children) <= 1 || n2.props.onChange(e4, r3);
1106
+ }), P(j(n2), "handleClickThumb", function(e4, t2) {
1107
+ n2.props.onClickThumb(e4, t2), n2.moveTo(e4);
1108
+ }), P(j(n2), "onSwipeStart", function(e4) {
1109
+ n2.setState({
1110
1110
  swiping: true
1111
- }), r2.props.onSwipeStart(e4);
1112
- }), P(j(r2), "onSwipeEnd", function(e4) {
1113
- r2.setState({
1111
+ }), n2.props.onSwipeStart(e4);
1112
+ }), P(j(n2), "onSwipeEnd", function(e4) {
1113
+ n2.setState({
1114
1114
  swiping: false,
1115
1115
  cancelClick: false,
1116
1116
  swipeMovementStarted: false
1117
- }), r2.props.onSwipeEnd(e4), r2.clearAutoPlay(), r2.state.autoPlay && r2.autoPlay();
1118
- }), P(j(r2), "onSwipeMove", function(e4, t2) {
1119
- r2.props.onSwipeMove(t2);
1120
- var n2 = r2.props.swipeAnimationHandler(e4, r2.props, r2.state, r2.setState.bind(j(r2)));
1121
- return r2.setState(x({}, n2)), !!Object.keys(n2).length;
1122
- }), P(j(r2), "decrement", function() {
1117
+ }), n2.props.onSwipeEnd(e4), n2.clearAutoPlay(), n2.state.autoPlay && n2.autoPlay();
1118
+ }), P(j(n2), "onSwipeMove", function(e4, t2) {
1119
+ n2.props.onSwipeMove(t2);
1120
+ var r3 = n2.props.swipeAnimationHandler(e4, n2.props, n2.state, n2.setState.bind(j(n2)));
1121
+ return n2.setState(x({}, r3)), !!Object.keys(r3).length;
1122
+ }), P(j(n2), "decrement", function() {
1123
1123
  var e4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 1;
1124
- r2.moveTo(r2.state.selectedItem - (typeof e4 == "number" ? e4 : 1));
1125
- }), P(j(r2), "increment", function() {
1124
+ n2.moveTo(n2.state.selectedItem - (typeof e4 == "number" ? e4 : 1));
1125
+ }), P(j(n2), "increment", function() {
1126
1126
  var e4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 1;
1127
- r2.moveTo(r2.state.selectedItem + (typeof e4 == "number" ? e4 : 1));
1128
- }), P(j(r2), "moveTo", function(e4) {
1127
+ n2.moveTo(n2.state.selectedItem + (typeof e4 == "number" ? e4 : 1));
1128
+ }), P(j(n2), "moveTo", function(e4) {
1129
1129
  if (typeof e4 == "number") {
1130
- var n2 = t.Children.count(r2.props.children) - 1;
1131
- e4 < 0 && (e4 = r2.props.infiniteLoop ? n2 : 0), e4 > n2 && (e4 = r2.props.infiniteLoop ? 0 : n2), r2.selectItem({
1130
+ var r3 = t.Children.count(n2.props.children) - 1;
1131
+ e4 < 0 && (e4 = n2.props.infiniteLoop ? r3 : 0), e4 > r3 && (e4 = n2.props.infiniteLoop ? 0 : r3), n2.selectItem({
1132
1132
  selectedItem: e4
1133
- }), r2.state.autoPlay && r2.state.isMouseEntered === false && r2.resetAutoPlay();
1133
+ }), n2.state.autoPlay && n2.state.isMouseEntered === false && n2.resetAutoPlay();
1134
1134
  }
1135
- }), P(j(r2), "onClickNext", function() {
1136
- r2.increment(1);
1137
- }), P(j(r2), "onClickPrev", function() {
1138
- r2.decrement(1);
1139
- }), P(j(r2), "onSwipeForward", function() {
1140
- r2.increment(1), r2.props.emulateTouch && r2.setState({
1135
+ }), P(j(n2), "onClickNext", function() {
1136
+ n2.increment(1);
1137
+ }), P(j(n2), "onClickPrev", function() {
1138
+ n2.decrement(1);
1139
+ }), P(j(n2), "onSwipeForward", function() {
1140
+ n2.increment(1), n2.props.emulateTouch && n2.setState({
1141
1141
  cancelClick: true
1142
1142
  });
1143
- }), P(j(r2), "onSwipeBackwards", function() {
1144
- r2.decrement(1), r2.props.emulateTouch && r2.setState({
1143
+ }), P(j(n2), "onSwipeBackwards", function() {
1144
+ n2.decrement(1), n2.props.emulateTouch && n2.setState({
1145
1145
  cancelClick: true
1146
1146
  });
1147
- }), P(j(r2), "changeItem", function(e4) {
1147
+ }), P(j(n2), "changeItem", function(e4) {
1148
1148
  return function(t2) {
1149
- (!(0, c.isKeyboardEvent)(t2) || t2.key === "Enter") && r2.moveTo(e4);
1149
+ (!(0, c.isKeyboardEvent)(t2) || t2.key === "Enter") && n2.moveTo(e4);
1150
1150
  };
1151
- }), P(j(r2), "selectItem", function(e4) {
1152
- r2.setState(x({
1153
- previousItem: r2.state.selectedItem
1151
+ }), P(j(n2), "selectItem", function(e4) {
1152
+ n2.setState(x({
1153
+ previousItem: n2.state.selectedItem
1154
1154
  }, e4), function() {
1155
- r2.setState(r2.animationHandler(r2.props, r2.state));
1156
- }), r2.handleOnChange(e4.selectedItem, t.Children.toArray(r2.props.children)[e4.selectedItem]);
1157
- }), P(j(r2), "getInitialImage", function() {
1158
- var e4 = r2.props.selectedItem, t2 = r2.itemsRef && r2.itemsRef[e4];
1155
+ n2.setState(n2.animationHandler(n2.props, n2.state));
1156
+ }), n2.handleOnChange(e4.selectedItem, t.Children.toArray(n2.props.children)[e4.selectedItem]);
1157
+ }), P(j(n2), "getInitialImage", function() {
1158
+ var e4 = n2.props.selectedItem, t2 = n2.itemsRef && n2.itemsRef[e4];
1159
1159
  return (t2 && t2.getElementsByTagName("img") || [])[0];
1160
- }), P(j(r2), "getVariableItemHeight", function(e4) {
1161
- var t2 = r2.itemsRef && r2.itemsRef[e4];
1162
- if (r2.state.hasMount && t2 && t2.children.length) {
1163
- var n2 = t2.children[0].getElementsByTagName("img") || [];
1164
- if (n2.length > 0) {
1165
- var i3 = n2[0];
1166
- i3.complete || i3.addEventListener("load", function e5() {
1167
- r2.forceUpdate(), i3.removeEventListener("load", e5);
1160
+ }), P(j(n2), "getVariableItemHeight", function(e4) {
1161
+ var t2 = n2.itemsRef && n2.itemsRef[e4];
1162
+ if (n2.state.hasMount && t2 && t2.children.length) {
1163
+ var r3 = t2.children[0].getElementsByTagName("img") || [];
1164
+ if (r3.length > 0) {
1165
+ var i2 = r3[0];
1166
+ i2.complete || i2.addEventListener("load", function e5() {
1167
+ n2.forceUpdate(), i2.removeEventListener("load", e5);
1168
1168
  });
1169
1169
  }
1170
- var a2 = (n2[0] || t2.children[0]).clientHeight;
1170
+ var a2 = (r3[0] || t2.children[0]).clientHeight;
1171
1171
  return a2 > 0 ? a2 : null;
1172
1172
  }
1173
1173
  return null;
1174
1174
  });
1175
- var i2 = {
1175
+ var r2 = {
1176
1176
  initialized: false,
1177
1177
  previousItem: e3.selectedItem,
1178
1178
  selectedItem: e3.selectedItem,
@@ -1188,7 +1188,7 @@ let __tla = (async () => {
1188
1188
  selectedStyle: {},
1189
1189
  prevStyle: {}
1190
1190
  };
1191
- return r2.animationHandler = typeof e3.animationHandler == "function" && e3.animationHandler || e3.animationHandler === "fade" && l.fadeAnimationHandler || l.slideAnimationHandler, r2.state = x(x({}, i2), r2.animationHandler(e3, i2)), r2;
1191
+ return n2.animationHandler = typeof e3.animationHandler == "function" && e3.animationHandler || e3.animationHandler === "fade" && l.fadeAnimationHandler || l.slideAnimationHandler, n2.state = x(x({}, r2), n2.animationHandler(e3, r2)), n2;
1192
1192
  }
1193
1193
  return E(u2, [
1194
1194
  {
@@ -1270,7 +1270,7 @@ let __tla = (async () => {
1270
1270
  key: "renderItems",
1271
1271
  value: function(e3) {
1272
1272
  var n2 = this;
1273
- return this.props.children ? t.Children.map(this.props.children, function(r2, a2) {
1273
+ return this.props.children ? t.Children.map(this.props.children, function(i2, a2) {
1274
1274
  var o2 = a2 === n2.state.selectedItem, s2 = a2 === n2.state.previousItem, c2 = o2 && n2.state.selectedStyle || s2 && n2.state.prevStyle || n2.state.slideStyle || {};
1275
1275
  n2.props.centerMode && n2.props.axis === "horizontal" && (c2 = x(x({}, c2), {}, {
1276
1276
  minWidth: n2.props.centerSlidePercentage + "%"
@@ -1282,11 +1282,11 @@ let __tla = (async () => {
1282
1282
  return n2.setItemsRef(e4, a2);
1283
1283
  },
1284
1284
  key: "itemKey" + a2 + (e3 ? "clone" : ""),
1285
- className: i.default.ITEM(true, a2 === n2.state.selectedItem, a2 === n2.state.previousItem),
1286
- onClick: n2.handleClickItem.bind(n2, a2, r2),
1285
+ className: r.default.ITEM(true, a2 === n2.state.selectedItem, a2 === n2.state.previousItem),
1286
+ onClick: n2.handleClickItem.bind(n2, a2, i2),
1287
1287
  style: c2
1288
1288
  };
1289
- return t.default.createElement("li", l2, n2.props.renderItem(r2, {
1289
+ return t.default.createElement("li", l2, n2.props.renderItem(i2, {
1290
1290
  isSelected: a2 === n2.state.selectedItem,
1291
1291
  isPrevious: a2 === n2.state.previousItem
1292
1292
  }));
@@ -1315,7 +1315,7 @@ let __tla = (async () => {
1315
1315
  {
1316
1316
  key: "renderThumbs",
1317
1317
  value: function() {
1318
- return !this.props.showThumbs || !this.props.children || t.Children.count(this.props.children) === 0 ? null : t.default.createElement(a.default, {
1318
+ return !this.props.showThumbs || !this.props.children || t.Children.count(this.props.children) === 0 ? null : t.default.createElement(i.default, {
1319
1319
  ref: this.setThumbsRef,
1320
1320
  onSelectItem: this.handleClickThumb,
1321
1321
  selectedItem: this.state.selectedItem,
@@ -1331,8 +1331,8 @@ let __tla = (async () => {
1331
1331
  value: function() {
1332
1332
  var e3 = this;
1333
1333
  if (!this.props.children || t.Children.count(this.props.children) === 0) return null;
1334
- var n2 = this.props.swipeable && t.Children.count(this.props.children) > 1, a2 = this.props.axis === "horizontal", o2 = this.props.showArrows && t.Children.count(this.props.children) > 1, s2 = o2 && (this.state.selectedItem > 0 || this.props.infiniteLoop) || false, c2 = o2 && (this.state.selectedItem < t.Children.count(this.props.children) - 1 || this.props.infiniteLoop) || false, l2 = this.renderItems(true), u3 = l2.shift(), f2 = l2.pop(), m2 = {
1335
- className: i.default.SLIDER(true, this.state.swiping),
1334
+ var i2 = this.props.swipeable && t.Children.count(this.props.children) > 1, a2 = this.props.axis === "horizontal", o2 = this.props.showArrows && t.Children.count(this.props.children) > 1, s2 = o2 && (this.state.selectedItem > 0 || this.props.infiniteLoop) || false, c2 = o2 && (this.state.selectedItem < t.Children.count(this.props.children) - 1 || this.props.infiniteLoop) || false, l2 = this.renderItems(true), u3 = l2.shift(), f2 = l2.pop(), m2 = {
1335
+ className: r.default.SLIDER(true, this.state.swiping),
1336
1336
  onSwipeMove: this.onSwipeMove,
1337
1337
  onSwipeStart: this.onSwipeStart,
1338
1338
  onSwipeEnd: this.onSwipeEnd,
@@ -1343,24 +1343,24 @@ let __tla = (async () => {
1343
1343
  height: this.state.itemSize
1344
1344
  }), h2.height = this.state.itemSize), t.default.createElement("div", {
1345
1345
  "aria-label": this.props.ariaLabel,
1346
- className: i.default.ROOT(this.props.className),
1346
+ className: r.default.ROOT(this.props.className),
1347
1347
  ref: this.setCarouselWrapperRef,
1348
1348
  tabIndex: this.props.useKeyboardArrows ? 0 : void 0
1349
1349
  }, t.default.createElement("div", {
1350
- className: i.default.CAROUSEL(true),
1350
+ className: r.default.CAROUSEL(true),
1351
1351
  style: {
1352
1352
  width: this.props.width
1353
1353
  }
1354
1354
  }, this.renderControls(), this.props.renderArrowPrev(this.onClickPrev, s2, this.props.labels.leftArrow), t.default.createElement("div", {
1355
- className: i.default.WRAPPER(true, this.props.axis),
1355
+ className: r.default.WRAPPER(true, this.props.axis),
1356
1356
  style: h2
1357
- }, n2 ? t.default.createElement(r.default, g({
1357
+ }, i2 ? t.default.createElement(n.default, g({
1358
1358
  tagName: "ul",
1359
1359
  innerRef: this.setListRef
1360
1360
  }, m2, {
1361
1361
  allowMouseEvents: this.props.emulateTouch
1362
1362
  }), this.props.infiniteLoop && f2, this.renderItems(), this.props.infiniteLoop && u3) : t.default.createElement("ul", {
1363
- className: i.default.SLIDER(true, this.state.swiping),
1363
+ className: r.default.SLIDER(true, this.state.swiping),
1364
1364
  ref: function(t2) {
1365
1365
  return e3.setListRef(t2);
1366
1366
  },
@@ -1391,47 +1391,47 @@ let __tla = (async () => {
1391
1391
  return false;
1392
1392
  },
1393
1393
  preventMovementUntilSwipeScrollTolerance: false,
1394
- renderArrowPrev: function(e2, n, r2) {
1394
+ renderArrowPrev: function(e2, n2, i2) {
1395
1395
  return t.default.createElement("button", {
1396
1396
  type: "button",
1397
- "aria-label": r2,
1398
- className: i.default.ARROW_PREV(!n),
1397
+ "aria-label": i2,
1398
+ className: r.default.ARROW_PREV(!n2),
1399
1399
  onClick: e2
1400
1400
  });
1401
1401
  },
1402
- renderArrowNext: function(e2, n, r2) {
1402
+ renderArrowNext: function(e2, n2, i2) {
1403
1403
  return t.default.createElement("button", {
1404
1404
  type: "button",
1405
- "aria-label": r2,
1406
- className: i.default.ARROW_NEXT(!n),
1405
+ "aria-label": i2,
1406
+ className: r.default.ARROW_NEXT(!n2),
1407
1407
  onClick: e2
1408
1408
  });
1409
1409
  },
1410
- renderIndicator: function(e2, n, r2, a2) {
1410
+ renderIndicator: function(e2, n2, i2, a) {
1411
1411
  return t.default.createElement("li", {
1412
- className: i.default.DOT(n),
1412
+ className: r.default.DOT(n2),
1413
1413
  onClick: e2,
1414
1414
  onKeyDown: e2,
1415
- value: r2,
1416
- key: r2,
1415
+ value: i2,
1416
+ key: i2,
1417
1417
  role: "button",
1418
1418
  tabIndex: 0,
1419
- "aria-label": `${a2} ${r2 + 1}`
1419
+ "aria-label": `${a} ${i2 + 1}`
1420
1420
  });
1421
1421
  },
1422
1422
  renderItem: function(e2) {
1423
1423
  return e2;
1424
1424
  },
1425
1425
  renderThumbs: function(e2) {
1426
- var n = t.Children.map(e2, function(e3) {
1427
- var n2 = e3;
1428
- if (e3.type !== "img" && (n2 = t.Children.toArray(e3.props.children).find(function(e4) {
1426
+ var n2 = t.Children.map(e2, function(e3) {
1427
+ var n3 = e3;
1428
+ if (e3.type !== "img" && (n3 = t.Children.toArray(e3.props.children).find(function(e4) {
1429
1429
  return e4.type === "img";
1430
- })), n2) return n2;
1430
+ })), n3) return n3;
1431
1431
  });
1432
- return n.filter(function(e3) {
1432
+ return n2.filter(function(e3) {
1433
1433
  return e3;
1434
- }).length === 0 ? (console.warn("No images found! Can't build the thumb list without images. If you don't need thumbs, set showThumbs={false} in the Carousel. Note that it's not possible to get images rendered inside custom components. More info at https://github.com/leandrowd/react-responsive-carousel/blob/master/TROUBLESHOOTING.md"), []) : n;
1434
+ }).length === 0 ? (console.warn("No images found! Can't build the thumb list without images. If you don't need thumbs, set showThumbs={false} in the Carousel. Note that it's not possible to get images rendered inside custom components. More info at https://github.com/leandrowd/react-responsive-carousel/blob/master/TROUBLESHOOTING.md"), []) : n2;
1435
1435
  },
1436
1436
  statusFormatter: c.defaultStatusFormatter,
1437
1437
  selectedItem: 0,
@@ -3169,36 +3169,36 @@ let __tla = (async () => {
3169
3169
  kind: GridCellKind.Loading,
3170
3170
  allowOverlay: false
3171
3171
  };
3172
- function drawCells(e, t, n, r, i, a, o, s, c, l, u, f, m, h, g, y, x, S, C, E, D, O, k, A, j, M, N, P, F, I, L, zr, B, Br, Vr) {
3173
- let V = (E == null ? void 0 : E.size) ?? 2 ** 53 - 1, Hr = performance.now(), Ur = I.baseFontFull;
3174
- e.font = Ur;
3175
- let Wr = {
3172
+ function drawCells(e, t, n, r, i, a, o, s, c, l, u, f, m, h, g, y, x, S, C, E, D, O, k, A, j, M, N, P, F, I, L, zr, B, V, Br) {
3173
+ let H = (E == null ? void 0 : E.size) ?? 2 ** 53 - 1, Vr = performance.now(), Hr = I.baseFontFull;
3174
+ e.font = Hr;
3175
+ let Ur = {
3176
3176
  ctx: e
3177
- }, H = [
3177
+ }, U = [
3178
3178
  0,
3179
3179
  0
3180
- ], U = x > 0 ? getFreezeTrailingHeight(c, x, l) : 0, Gr, W, G = getSkipPoint(C);
3181
- return walkColumns(t, s, a, o, i, (t2, a2, o2, s2, K) => {
3182
- let Kr = Math.max(0, s2 - a2), qr = a2 + Kr, Jr = i + 1, Yr = t2.width - Kr, Xr = r - i - 1;
3180
+ ], W = x > 0 ? getFreezeTrailingHeight(c, x, l) : 0, Wr, G, K = getSkipPoint(C);
3181
+ return walkColumns(t, s, a, o, i, (t2, a2, o2, s2, q) => {
3182
+ let Gr = Math.max(0, s2 - a2), Kr = a2 + Gr, qr = i + 1, Jr = t2.width - Gr, Yr = r - i - 1;
3183
3183
  if (C.length > 0) {
3184
3184
  let e2 = false;
3185
3185
  for (let t3 = 0; t3 < C.length; t3++) {
3186
3186
  let n2 = C[t3];
3187
- if (intersectRect(qr, Jr, Yr, Xr, n2.x, n2.y, n2.width, n2.height)) {
3187
+ if (intersectRect(Kr, qr, Jr, Yr, n2.x, n2.y, n2.width, n2.height)) {
3188
3188
  e2 = true;
3189
3189
  break;
3190
3190
  }
3191
3191
  }
3192
3192
  if (!e2) return;
3193
3193
  }
3194
- let Zr = () => {
3195
- e.save(), e.beginPath(), e.rect(qr, Jr, Yr, Xr), e.clip();
3196
- }, Qr = D.columns.hasIndex(t2.sourceIndex), $r = f(t2.group ?? "").overrideTheme, ei = t2.themeOverride === void 0 && $r === void 0 ? I : mergeAndRealizeTheme(I, $r, t2.themeOverride), ti = ei.baseFontFull;
3197
- ti !== Ur && (Ur = ti, e.font = ti), Zr();
3198
- let ni;
3199
- return walkRowsInCol(K, o2, r, c, l, x, S, G, (i2, o3, l2, f2, x2) => {
3194
+ let Xr = () => {
3195
+ e.save(), e.beginPath(), e.rect(Kr, qr, Jr, Yr), e.clip();
3196
+ }, Zr = D.columns.hasIndex(t2.sourceIndex), Qr = f(t2.group ?? "").overrideTheme, $r = t2.themeOverride === void 0 && Qr === void 0 ? I : mergeAndRealizeTheme(I, Qr, t2.themeOverride), ei = $r.baseFontFull;
3197
+ ei !== Hr && (Hr = ei, e.font = ei), Xr();
3198
+ let ti;
3199
+ return walkRowsInCol(q, o2, r, c, l, x, S, K, (i2, o3, l2, f2, x2) => {
3200
3200
  var _a, _b, _c;
3201
- if (o3 < 0 || (H[0] = t2.sourceIndex, H[1] = o3, E !== void 0 && !E.has(H))) return;
3201
+ if (o3 < 0 || (U[0] = t2.sourceIndex, U[1] = o3, E !== void 0 && !E.has(U))) return;
3202
3202
  if (C.length > 0) {
3203
3203
  let e2 = false;
3204
3204
  for (let n2 = 0; n2 < C.length; n2++) {
@@ -3210,66 +3210,66 @@ let __tla = (async () => {
3210
3210
  }
3211
3211
  if (!e2) return;
3212
3212
  }
3213
- let S2 = D.rows.hasIndex(o3), G2 = h.hasIndex(o3), K2 = o3 < c ? u(H) : loadingCell$1, Kr2 = a2, qr2 = t2.width, Jr2 = false, Yr2 = false;
3214
- if (K2.span !== void 0) {
3215
- let [r2, c2] = K2.span, u2 = `${o3},${r2},${c2},${t2.sticky}`;
3216
- if (W === void 0 && (W = /* @__PURE__ */ new Set()), W.has(u2)) {
3217
- V--;
3213
+ let S2 = D.rows.hasIndex(o3), K2 = h.hasIndex(o3), q2 = o3 < c ? u(U) : loadingCell$1, Gr2 = a2, Kr2 = t2.width, qr2 = false, Jr2 = false;
3214
+ if (q2.span !== void 0) {
3215
+ let [r2, c2] = q2.span, u2 = `${o3},${r2},${c2},${t2.sticky}`;
3216
+ if (G === void 0 && (G = /* @__PURE__ */ new Set()), G.has(u2)) {
3217
+ H--;
3218
3218
  return;
3219
3219
  } else {
3220
- let r3 = getSpanBounds(K2.span, a2, i2, t2.width, l2, t2, n), o4 = t2.sticky ? r3[0] : r3[1];
3221
- if (!t2.sticky && r3[0] !== void 0 && (Yr2 = true), o4 !== void 0) {
3222
- Kr2 = o4.x, qr2 = o4.width, W.add(u2), e.restore(), ni = void 0, e.save(), e.beginPath();
3220
+ let r3 = getSpanBounds(q2.span, a2, i2, t2.width, l2, t2, n), o4 = t2.sticky ? r3[0] : r3[1];
3221
+ if (!t2.sticky && r3[0] !== void 0 && (Jr2 = true), o4 !== void 0) {
3222
+ Gr2 = o4.x, Kr2 = o4.width, G.add(u2), e.restore(), ti = void 0, e.save(), e.beginPath();
3223
3223
  let t3 = Math.max(0, s2 - o4.x);
3224
- e.rect(o4.x + t3, i2, o4.width - t3, l2), Gr === void 0 && (Gr = []), Gr.push({
3224
+ e.rect(o4.x + t3, i2, o4.width - t3, l2), Wr === void 0 && (Wr = []), Wr.push({
3225
3225
  x: o4.x + t3,
3226
3226
  y: i2,
3227
3227
  width: o4.width - t3,
3228
3228
  height: l2
3229
- }), e.clip(), Jr2 = true;
3229
+ }), e.clip(), qr2 = true;
3230
3230
  }
3231
3231
  }
3232
3232
  }
3233
- let Xr2 = m == null ? void 0 : m(o3), $r2 = x2 && ((_a = t2.trailingRowOptions) == null ? void 0 : _a.themeOverride) !== void 0 ? (_b = t2.trailingRowOptions) == null ? void 0 : _b.themeOverride : void 0, q = K2.themeOverride === void 0 && Xr2 === void 0 && $r2 === void 0 ? ei : mergeAndRealizeTheme(ei, Xr2, $r2, K2.themeOverride);
3233
+ let Yr2 = m == null ? void 0 : m(o3), Qr2 = x2 && ((_a = t2.trailingRowOptions) == null ? void 0 : _a.themeOverride) !== void 0 ? (_b = t2.trailingRowOptions) == null ? void 0 : _b.themeOverride : void 0, J = q2.themeOverride === void 0 && Yr2 === void 0 && Qr2 === void 0 ? $r : mergeAndRealizeTheme($r, Yr2, Qr2, q2.themeOverride);
3234
3234
  e.beginPath();
3235
- let ri = cellIsSelected(H, K2, D), J = cellIsInRange(H, K2, D, y), ii = K2.span !== void 0 && D.columns.some((e2) => K2.span !== void 0 && e2 >= K2.span[0] && e2 <= K2.span[1]);
3236
- ri && !g && y ? J = 0 : ri && y && (J = Math.max(J, 1)), ii && J++, ri || (S2 && J++, Qr && !x2 && J++);
3237
- let ai = K2.kind === GridCellKind.Protected ? q.bgCellMedium : q.bgCell, si;
3238
- if ((f2 || ai !== I.bgCell) && (si = blend(ai, si)), J > 0 || G2) {
3239
- G2 && (si = blend(q.bgHeader, si));
3240
- for (let e2 = 0; e2 < J; e2++) si = blend(q.accentLight, si);
3235
+ let ni = cellIsSelected(U, q2, D), Y = cellIsInRange(U, q2, D, y), ri = q2.span !== void 0 && D.columns.some((e2) => q2.span !== void 0 && e2 >= q2.span[0] && e2 <= q2.span[1]);
3236
+ ni && !g && y ? Y = 0 : ni && y && (Y = Math.max(Y, 1)), ri && Y++, ni || (S2 && Y++, Zr && !x2 && Y++);
3237
+ let ii = q2.kind === GridCellKind.Protected ? J.bgCellMedium : J.bgCell, oi;
3238
+ if ((f2 || ii !== I.bgCell) && (oi = blend(ii, oi)), Y > 0 || K2) {
3239
+ K2 && (oi = blend(J.bgHeader, oi));
3240
+ for (let e2 = 0; e2 < Y; e2++) oi = blend(J.accentLight, oi);
3241
3241
  } else if (O !== void 0) {
3242
3242
  for (let e2 of O) if (e2[0] === t2.sourceIndex && e2[1] === o3) {
3243
- si = blend(q.bgSearchResult, si);
3243
+ oi = blend(J.bgSearchResult, oi);
3244
3244
  break;
3245
3245
  }
3246
3246
  }
3247
3247
  if (k !== void 0) for (let e2 = 0; e2 < k.length; e2++) {
3248
3248
  let n2 = k[e2], r2 = n2.range;
3249
- n2.style !== "solid-outline" && r2.x <= t2.sourceIndex && t2.sourceIndex < r2.x + r2.width && r2.y <= o3 && o3 < r2.y + r2.height && (si = blend(n2.color, si));
3249
+ n2.style !== "solid-outline" && r2.x <= t2.sourceIndex && t2.sourceIndex < r2.x + r2.width && r2.y <= o3 && o3 < r2.y + r2.height && (oi = blend(n2.color, oi));
3250
3250
  }
3251
- let ci = false;
3251
+ let si = false;
3252
3252
  if (E !== void 0) {
3253
- let t3 = i2 + 1, n2 = (f2 ? t3 + l2 - 1 : Math.min(t3 + l2 - 1, r - U)) - t3;
3254
- (n2 !== l2 - 1 || Kr2 + 1 <= s2) && (ci = true, e.save(), e.beginPath(), e.rect(Kr2 + 1, t3, qr2 - 1, n2), e.clip()), si = si === void 0 ? q.bgCell : blend(si, q.bgCell);
3253
+ let t3 = i2 + 1, n2 = (f2 ? t3 + l2 - 1 : Math.min(t3 + l2 - 1, r - W)) - t3;
3254
+ (n2 !== l2 - 1 || Gr2 + 1 <= s2) && (si = true, e.save(), e.beginPath(), e.rect(Gr2 + 1, t3, Kr2 - 1, n2), e.clip()), oi = oi === void 0 ? J.bgCell : blend(oi, J.bgCell);
3255
3255
  }
3256
- let li = t2.sourceIndex === n.length - 1, di = o3 === c - 1;
3257
- si !== void 0 && (e.fillStyle = si, ni !== void 0 && (ni.fillStyle = si), E === void 0 ? e.fillRect(Kr2, i2, qr2, l2) : e.fillRect(Kr2 + 1, i2 + 1, qr2 - (li ? 2 : 1), l2 - (di ? 2 : 1))), K2.style === "faded" && (e.globalAlpha = 0.6);
3258
- let Y;
3256
+ let ci = t2.sourceIndex === n.length - 1, ui = o3 === c - 1;
3257
+ oi !== void 0 && (e.fillStyle = oi, ti !== void 0 && (ti.fillStyle = oi), E === void 0 ? e.fillRect(Gr2, i2, Kr2, l2) : e.fillRect(Gr2 + 1, i2 + 1, Kr2 - (ci ? 2 : 1), l2 - (ui ? 2 : 1))), q2.style === "faded" && (e.globalAlpha = 0.6);
3258
+ let di;
3259
3259
  for (let e2 = 0; e2 < M.length; e2++) {
3260
3260
  let n2 = M[e2];
3261
3261
  if (n2.item[0] === t2.sourceIndex && n2.item[1] === o3) {
3262
- Y = n2;
3262
+ di = n2;
3263
3263
  break;
3264
3264
  }
3265
3265
  }
3266
- if (qr2 > Vr && !Yr2) {
3267
- let n2 = q.baseFontFull;
3268
- n2 !== Ur && (e.font = n2, Ur = n2), ni = drawCell(e, K2, t2.sourceIndex, o3, li, di, Kr2, i2, qr2, l2, J > 0, q, si ?? q.bgCell, A, j, (Y == null ? void 0 : Y.hoverAmount) ?? 0, N, F, Hr, P, ni, L, zr, B, Br);
3266
+ if (Kr2 > Br && !Jr2) {
3267
+ let n2 = J.baseFontFull;
3268
+ n2 !== Hr && (e.font = n2, Hr = n2), ti = drawCell(e, q2, t2.sourceIndex, o3, ci, ui, Gr2, i2, Kr2, l2, Y > 0, J, oi ?? J.bgCell, A, j, (di == null ? void 0 : di.hoverAmount) ?? 0, N, F, Vr, P, ti, L, zr, B, V);
3269
3269
  }
3270
- return ci && e.restore(), K2.style === "faded" && (e.globalAlpha = 1), V--, Jr2 && (e.restore(), (_c = ni == null ? void 0 : ni.deprep) == null ? void 0 : _c.call(ni, Wr), ni = void 0, Zr(), Ur = ti, e.font = ti), V <= 0;
3271
- }), e.restore(), V <= 0;
3272
- }), Gr;
3270
+ return si && e.restore(), q2.style === "faded" && (e.globalAlpha = 1), H--, qr2 && (e.restore(), (_c = ti == null ? void 0 : ti.deprep) == null ? void 0 : _c.call(ti, Ur), ti = void 0, Xr(), Hr = ei, e.font = ei), H <= 0;
3271
+ }), e.restore(), H <= 0;
3272
+ }), Wr;
3273
3273
  }
3274
3274
  var allocatedItem = [
3275
3275
  0,
@@ -4403,34 +4403,34 @@ let __tla = (async () => {
4403
4403
  }
4404
4404
  function drawGrid(e, t) {
4405
4405
  var _a;
4406
- let { canvasCtx: n, headerCanvasCtx: r, width: i, height: a, cellXOffset: o, cellYOffset: s, translateX: c, translateY: l, mappedColumns: u, enableGroups: f, freezeColumns: m, dragAndDropState: h, theme: g, drawFocus: y, headerHeight: x, groupHeaderHeight: S, disabledRows: C, rowHeight: E, verticalBorder: D, overrideCursor: O, isResizing: k, selection: A, fillHandle: j, freezeTrailingRows: M, rows: N, getCellContent: P, getGroupDetails: F, getRowThemeOverride: I, isFocused: L, drawHeaderCallback: zr, prelightCells: B, drawCellCallback: Br, highlightRegions: Vr, resizeCol: V, imageLoader: Hr, lastBlitData: Ur, hoverValues: Wr, hyperWrapping: H, hoverInfo: U, spriteManager: Gr, maxScaleFactor: W, hasAppendRow: G, touchMode: Kr, enqueue: qr, renderStateProvider: Jr, getCellRenderer: Yr, renderStrategy: Xr, bufferACtx: Zr, bufferBCtx: Qr, damage: $r, minimumCellWidth: ei, resizeIndicator: ti } = e;
4406
+ let { canvasCtx: n, headerCanvasCtx: r, width: i, height: a, cellXOffset: o, cellYOffset: s, translateX: c, translateY: l, mappedColumns: u, enableGroups: f, freezeColumns: m, dragAndDropState: h, theme: g, drawFocus: y, headerHeight: x, groupHeaderHeight: S, disabledRows: C, rowHeight: E, verticalBorder: D, overrideCursor: O, isResizing: k, selection: A, fillHandle: j, freezeTrailingRows: M, rows: N, getCellContent: P, getGroupDetails: F, getRowThemeOverride: I, isFocused: L, drawHeaderCallback: zr, prelightCells: B, drawCellCallback: V, highlightRegions: Br, resizeCol: H, imageLoader: Vr, lastBlitData: Hr, hoverValues: Ur, hyperWrapping: U, hoverInfo: W, spriteManager: Wr, maxScaleFactor: G, hasAppendRow: K, touchMode: Gr, enqueue: Kr, renderStateProvider: qr, getCellRenderer: Jr, renderStrategy: Yr, bufferACtx: Xr, bufferBCtx: Zr, damage: Qr, minimumCellWidth: $r, resizeIndicator: ei } = e;
4407
4407
  if (i === 0 || a === 0) return;
4408
- let ni = Xr === "double-buffer", q = Math.min(W, Math.ceil(window.devicePixelRatio ?? 1)), ri = Xr !== "direct" && computeCanBlit(e, t), J = n.canvas;
4409
- (J.width !== i * q || J.height !== a * q) && (J.width = i * q, J.height = a * q, J.style.width = i + "px", J.style.height = a + "px");
4410
- let ii = r.canvas, ai = f ? S + x : x, oi = ai + 1;
4411
- (ii.width !== i * q || ii.height !== oi * q) && (ii.width = i * q, ii.height = oi * q, ii.style.width = i + "px", ii.style.height = oi + "px");
4412
- let si = Zr.canvas, ci = Qr.canvas;
4413
- ni && (si.width !== i * q || si.height !== a * q) && (si.width = i * q, si.height = a * q, Ur.current !== void 0 && (Ur.current.aBufferScroll = void 0)), ni && (ci.width !== i * q || ci.height !== a * q) && (ci.width = i * q, ci.height = a * q, Ur.current !== void 0 && (Ur.current.bBufferScroll = void 0));
4414
- let li = Ur.current;
4415
- if (ri === true && o === (li == null ? void 0 : li.cellXOffset) && s === (li == null ? void 0 : li.cellYOffset) && c === (li == null ? void 0 : li.translateX) && l === (li == null ? void 0 : li.translateY)) return;
4416
- let ui = null;
4417
- ni && (ui = n);
4418
- let di = r, Y;
4419
- Y = ni ? $r === void 0 ? (li == null ? void 0 : li.lastBuffer) === "b" ? Zr : Qr : (li == null ? void 0 : li.lastBuffer) === "b" ? Qr : Zr : n;
4420
- let fi = Y.canvas, pi = ni ? fi === si ? ci : si : J, mi = typeof E == "number" ? () => E : E;
4421
- di.save(), Y.save(), di.beginPath(), Y.beginPath(), di.textBaseline = "middle", Y.textBaseline = "middle", q !== 1 && (di.scale(q, q), Y.scale(q, q));
4408
+ let ti = Yr === "double-buffer", J = Math.min(G, Math.ceil(window.devicePixelRatio ?? 1)), ni = Yr !== "direct" && computeCanBlit(e, t), Y = n.canvas;
4409
+ (Y.width !== i * J || Y.height !== a * J) && (Y.width = i * J, Y.height = a * J, Y.style.width = i + "px", Y.style.height = a + "px");
4410
+ let ri = r.canvas, ii = f ? S + x : x, ai = ii + 1;
4411
+ (ri.width !== i * J || ri.height !== ai * J) && (ri.width = i * J, ri.height = ai * J, ri.style.width = i + "px", ri.style.height = ai + "px");
4412
+ let oi = Xr.canvas, si = Zr.canvas;
4413
+ ti && (oi.width !== i * J || oi.height !== a * J) && (oi.width = i * J, oi.height = a * J, Hr.current !== void 0 && (Hr.current.aBufferScroll = void 0)), ti && (si.width !== i * J || si.height !== a * J) && (si.width = i * J, si.height = a * J, Hr.current !== void 0 && (Hr.current.bBufferScroll = void 0));
4414
+ let ci = Hr.current;
4415
+ if (ni === true && o === (ci == null ? void 0 : ci.cellXOffset) && s === (ci == null ? void 0 : ci.cellYOffset) && c === (ci == null ? void 0 : ci.translateX) && l === (ci == null ? void 0 : ci.translateY)) return;
4416
+ let li = null;
4417
+ ti && (li = n);
4418
+ let ui = r, di;
4419
+ di = ti ? Qr === void 0 ? (ci == null ? void 0 : ci.lastBuffer) === "b" ? Xr : Zr : (ci == null ? void 0 : ci.lastBuffer) === "b" ? Zr : Xr : n;
4420
+ let fi = di.canvas, pi = ti ? fi === oi ? si : oi : Y, mi = typeof E == "number" ? () => E : E;
4421
+ ui.save(), di.save(), ui.beginPath(), di.beginPath(), ui.textBaseline = "middle", di.textBaseline = "middle", J !== 1 && (ui.scale(J, J), di.scale(J, J));
4422
4422
  let X = getEffectiveColumns(u, o, i, h, c), hi = [], gi = y && ((_a = A.current) == null ? void 0 : _a.cell[1]) === s && l === 0, vi = false;
4423
- if (Vr !== void 0) {
4424
- for (let e2 of Vr) if (e2.style !== "no-outline" && e2.range.y === s && l === 0) {
4423
+ if (Br !== void 0) {
4424
+ for (let e2 of Br) if (e2.style !== "no-outline" && e2.range.y === s && l === 0) {
4425
4425
  vi = true;
4426
4426
  break;
4427
4427
  }
4428
4428
  }
4429
4429
  let yi = () => {
4430
- drawGridHeaders(di, X, f, U, i, c, x, S, h, k, A, g, Gr, Wr, D, F, $r, zr, Kr), drawGridLines(di, X, s, c, l, i, a, void 0, void 0, S, ai, mi, I, D, M, N, g, true), di.beginPath(), di.moveTo(0, oi - 0.5), di.lineTo(i, oi - 0.5), di.strokeStyle = blend(g.headerBottomBorderColor ?? g.horizontalBorderColor ?? g.borderColor, g.bgHeader), di.stroke(), vi && drawHighlightRings(di, i, a, o, s, c, l, u, m, x, S, E, M, N, Vr, g), gi && drawFillHandle(di, i, a, s, c, l, X, u, g, ai, A, mi, P, M, G, j, N);
4430
+ drawGridHeaders(ui, X, f, W, i, c, x, S, h, k, A, g, Wr, Ur, D, F, Qr, zr, Gr), drawGridLines(ui, X, s, c, l, i, a, void 0, void 0, S, ii, mi, I, D, M, N, g, true), ui.beginPath(), ui.moveTo(0, ai - 0.5), ui.lineTo(i, ai - 0.5), ui.strokeStyle = blend(g.headerBottomBorderColor ?? g.horizontalBorderColor ?? g.borderColor, g.bgHeader), ui.stroke(), vi && drawHighlightRings(ui, i, a, o, s, c, l, u, m, x, S, E, M, N, Br, g), gi && drawFillHandle(ui, i, a, s, c, l, X, u, g, ii, A, mi, P, M, K, j, N);
4431
4431
  };
4432
- if ($r !== void 0) {
4433
- let e2 = X[X.length - 1].sourceIndex + 1, t2 = $r.hasItemInRegion([
4432
+ if (Qr !== void 0) {
4433
+ let e2 = X[X.length - 1].sourceIndex + 1, t2 = Qr.hasItemInRegion([
4434
4434
  {
4435
4435
  x: o,
4436
4436
  y: -2,
@@ -4463,29 +4463,29 @@ let __tla = (async () => {
4463
4463
  when: M > 0
4464
4464
  }
4465
4465
  ]), n2 = (e3) => {
4466
- drawCells(e3, X, u, a, ai, c, l, s, N, mi, P, F, I, C, L, y, M, G, hi, $r, A, B, Vr, Hr, Gr, Wr, U, Br, H, g, qr, Jr, Yr, O, ei);
4466
+ drawCells(e3, X, u, a, ii, c, l, s, N, mi, P, F, I, C, L, y, M, K, hi, Qr, A, B, Br, Vr, Wr, Ur, W, V, U, g, Kr, qr, Jr, O, $r);
4467
4467
  let t3 = A.current;
4468
- j && y && t3 !== void 0 && $r.has(rectBottomRight(t3.range)) && drawFillHandle(e3, i, a, s, c, l, X, u, g, ai, A, mi, P, M, G, j, N);
4468
+ j && y && t3 !== void 0 && Qr.has(rectBottomRight(t3.range)) && drawFillHandle(e3, i, a, s, c, l, X, u, g, ii, A, mi, P, M, K, j, N);
4469
4469
  };
4470
- t2 && (n2(Y), ui !== null && (ui.save(), ui.scale(q, q), ui.textBaseline = "middle", n2(ui), ui.restore()), $r.hasHeader() && (clipHeaderDamage(di, X, i, S, ai, c, l, s, $r), yi())), Y.restore(), di.restore();
4470
+ t2 && (n2(di), li !== null && (li.save(), li.scale(J, J), li.textBaseline = "middle", n2(li), li.restore()), Qr.hasHeader() && (clipHeaderDamage(ui, X, i, S, ii, c, l, s, Qr), yi())), di.restore(), ui.restore();
4471
4471
  return;
4472
4472
  }
4473
- if ((ri !== true || o !== (li == null ? void 0 : li.cellXOffset) || c !== (li == null ? void 0 : li.translateX) || gi !== (li == null ? void 0 : li.mustDrawFocusOnHeader) || vi !== (li == null ? void 0 : li.mustDrawHighlightRingsOnHeader)) && yi(), ri === true) {
4474
- assert(pi !== void 0 && li !== void 0);
4475
- let { regions: e2 } = blitLastFrame(Y, pi, pi === si ? li.aBufferScroll : li.bBufferScroll, pi === si ? li.bBufferScroll : li.aBufferScroll, li, o, s, c, l, M, i, a, N, ai, q, u, X, E, ni);
4473
+ if ((ni !== true || o !== (ci == null ? void 0 : ci.cellXOffset) || c !== (ci == null ? void 0 : ci.translateX) || gi !== (ci == null ? void 0 : ci.mustDrawFocusOnHeader) || vi !== (ci == null ? void 0 : ci.mustDrawHighlightRingsOnHeader)) && yi(), ni === true) {
4474
+ assert(pi !== void 0 && ci !== void 0);
4475
+ let { regions: e2 } = blitLastFrame(di, pi, pi === oi ? ci.aBufferScroll : ci.bBufferScroll, pi === oi ? ci.bBufferScroll : ci.aBufferScroll, ci, o, s, c, l, M, i, a, N, ii, J, u, X, E, ti);
4476
4476
  hi = e2;
4477
- } else ri !== false && (assert(li !== void 0), hi = blitResizedCol(li, o, s, c, l, i, a, ai, X, ri));
4478
- overdrawStickyBoundaries(Y, X, i, a, M, N, D, mi, g);
4479
- let bi = drawHighlightRings(Y, i, a, o, s, c, l, u, m, x, S, E, M, N, Vr, g), xi = y ? drawFillHandle(Y, i, a, s, c, l, X, u, g, ai, A, mi, P, M, G, j, N) : void 0;
4480
- if (Y.fillStyle = g.bgCell, hi.length > 0) {
4481
- Y.beginPath();
4482
- for (let e2 of hi) Y.rect(e2.x, e2.y, e2.width, e2.height);
4483
- Y.clip(), Y.fill(), Y.beginPath();
4484
- } else Y.fillRect(0, 0, i, a);
4485
- let Si = drawCells(Y, X, u, a, ai, c, l, s, N, mi, P, F, I, C, L, y, M, G, hi, $r, A, B, Vr, Hr, Gr, Wr, U, Br, H, g, qr, Jr, Yr, O, ei);
4486
- drawBlanks(Y, X, u, i, a, ai, c, l, s, N, mi, I, A.rows, C, M, G, hi, $r, g), drawExtraRowThemes(Y, X, s, c, l, i, a, hi, ai, mi, I, D, M, N, g), drawGridLines(Y, X, s, c, l, i, a, hi, Si, S, ai, mi, I, D, M, N, g), bi == null ? void 0 : bi(), xi == null ? void 0 : xi(), k && ti !== "none" && walkColumns(X, 0, c, 0, ai, (e2, t2) => e2.sourceIndex === V ? (drawColumnResizeOutline(di, t2 + e2.width, 0, ai + 1, blend(g.resizeIndicatorColor ?? g.accentLight, g.bgHeader)), ti === "full" && drawColumnResizeOutline(Y, t2 + e2.width, ai, a, blend(g.resizeIndicatorColor ?? g.accentLight, g.bgCell)), true) : false), ui !== null && (ui.fillStyle = g.bgCell, ui.fillRect(0, 0, i, a), ui.drawImage(Y.canvas, 0, 0));
4487
- let Ci = getLastRow(X, a, ai, c, l, s, N, mi, M, G);
4488
- Hr == null ? void 0 : Hr.setWindow({
4477
+ } else ni !== false && (assert(ci !== void 0), hi = blitResizedCol(ci, o, s, c, l, i, a, ii, X, ni));
4478
+ overdrawStickyBoundaries(di, X, i, a, M, N, D, mi, g);
4479
+ let bi = drawHighlightRings(di, i, a, o, s, c, l, u, m, x, S, E, M, N, Br, g), xi = y ? drawFillHandle(di, i, a, s, c, l, X, u, g, ii, A, mi, P, M, K, j, N) : void 0;
4480
+ if (di.fillStyle = g.bgCell, hi.length > 0) {
4481
+ di.beginPath();
4482
+ for (let e2 of hi) di.rect(e2.x, e2.y, e2.width, e2.height);
4483
+ di.clip(), di.fill(), di.beginPath();
4484
+ } else di.fillRect(0, 0, i, a);
4485
+ let Si = drawCells(di, X, u, a, ii, c, l, s, N, mi, P, F, I, C, L, y, M, K, hi, Qr, A, B, Br, Vr, Wr, Ur, W, V, U, g, Kr, qr, Jr, O, $r);
4486
+ drawBlanks(di, X, u, i, a, ii, c, l, s, N, mi, I, A.rows, C, M, K, hi, Qr, g), drawExtraRowThemes(di, X, s, c, l, i, a, hi, ii, mi, I, D, M, N, g), drawGridLines(di, X, s, c, l, i, a, hi, Si, S, ii, mi, I, D, M, N, g), bi == null ? void 0 : bi(), xi == null ? void 0 : xi(), k && ei !== "none" && walkColumns(X, 0, c, 0, ii, (e2, t2) => e2.sourceIndex === H ? (drawColumnResizeOutline(ui, t2 + e2.width, 0, ii + 1, blend(g.resizeIndicatorColor ?? g.accentLight, g.bgHeader)), ei === "full" && drawColumnResizeOutline(di, t2 + e2.width, ii, a, blend(g.resizeIndicatorColor ?? g.accentLight, g.bgCell)), true) : false), li !== null && (li.fillStyle = g.bgCell, li.fillRect(0, 0, i, a), li.drawImage(di.canvas, 0, 0));
4487
+ let Ci = getLastRow(X, a, ii, c, l, s, N, mi, M, K);
4488
+ Vr == null ? void 0 : Vr.setWindow({
4489
4489
  x: o,
4490
4490
  y: s,
4491
4491
  width: X.length,
@@ -4493,24 +4493,24 @@ let __tla = (async () => {
4493
4493
  }, m, Array.from({
4494
4494
  length: M
4495
4495
  }, (e2, t2) => N - 1 - t2));
4496
- let wi = li !== void 0 && (o !== li.cellXOffset || c !== li.translateX), Ti = li !== void 0 && (s !== li.cellYOffset || l !== li.translateY);
4497
- Ur.current = {
4496
+ let wi = ci !== void 0 && (o !== ci.cellXOffset || c !== ci.translateX), Ti = ci !== void 0 && (s !== ci.cellYOffset || l !== ci.translateY);
4497
+ Hr.current = {
4498
4498
  cellXOffset: o,
4499
4499
  cellYOffset: s,
4500
4500
  translateX: c,
4501
4501
  translateY: l,
4502
4502
  mustDrawFocusOnHeader: gi,
4503
4503
  mustDrawHighlightRingsOnHeader: vi,
4504
- lastBuffer: ni ? fi === si ? "a" : "b" : void 0,
4505
- aBufferScroll: fi === si ? [
4504
+ lastBuffer: ti ? fi === oi ? "a" : "b" : void 0,
4505
+ aBufferScroll: fi === oi ? [
4506
4506
  wi,
4507
4507
  Ti
4508
- ] : li == null ? void 0 : li.aBufferScroll,
4509
- bBufferScroll: fi === ci ? [
4508
+ ] : ci == null ? void 0 : ci.aBufferScroll,
4509
+ bBufferScroll: fi === si ? [
4510
4510
  wi,
4511
4511
  Ti
4512
- ] : li == null ? void 0 : li.bBufferScroll
4513
- }, Y.restore(), di.restore();
4512
+ ] : ci == null ? void 0 : ci.bBufferScroll
4513
+ }, di.restore(), ui.restore();
4514
4514
  }
4515
4515
  var import_clamp$3 = __toESM(require_clamp(), 1), hoverTime = 80;
4516
4516
  function easeOutCubic(e) {
@@ -4608,12 +4608,12 @@ let __tla = (async () => {
4608
4608
  var _a;
4609
4609
  return e.kind === GridCellKind.Custom ? e.copyData : ((_a = t == null ? void 0 : t(e)) == null ? void 0 : _a.getAccessibilityString(e)) ?? "";
4610
4610
  }, data_grid_default = import_react.memo(import_react.forwardRef((e, t) => {
4611
- let { width: n, height: r, accessibilityHeight: i, columns: a, cellXOffset: o, cellYOffset: s, headerHeight: c, fillHandle: l = false, groupHeaderHeight: u, rowHeight: f, rows: m, getCellContent: h, getRowThemeOverride: g, onHeaderMenuClick: y, onHeaderIndicatorClick: x, enableGroups: S, isFilling: C, onCanvasFocused: E, onCanvasBlur: D, isFocused: O, selection: k, freezeColumns: A, onContextMenu: j, freezeTrailingRows: M, fixedShadowX: N = true, fixedShadowY: P = true, drawFocusRing: F, onMouseDown: I, onMouseUp: L, onMouseMoveRaw: zr, onMouseMove: B, onItemHovered: Br, dragAndDropState: Vr, firstColAccessible: V, onKeyDown: Hr, onKeyUp: Ur, highlightRegions: Wr, canvasRef: H, onDragStart: U, onDragEnd: Gr, eventTargetRef: W, isResizing: G, resizeColumn: Kr, isDragging: qr, isDraggable: Jr = false, allowResize: Yr, disabledRows: Xr, hasAppendRow: Zr, getGroupDetails: Qr, theme: $r, prelightCells: ei, headerIcons: ti, verticalBorder: ni, drawCell: q, drawHeader: ri, onCellFocused: J, onDragOverCell: ii, onDrop: ai, onDragLeave: oi, imageWindowLoader: ci, smoothScrollX: fi = false, smoothScrollY: pi = false, experimental: mi, getCellRenderer: X, resizeIndicator: hi = "full" } = e, gi = e.translateX ?? 0, _i = e.translateY ?? 0, vi = Math.max(A, Math.min(a.length - 1, o)), yi = import_react.useRef(null), bi = import_react.useRef((mi == null ? void 0 : mi.eventTarget) ?? window), xi = bi.current, Si = ci, Ci = import_react.useRef(), [Ti, Ei] = import_react.useState(false), Di = import_react.useRef([]), Oi = import_react.useRef(), [ki, Ai] = import_react.useState(), [ji, Mi] = import_react.useState(), Ni = import_react.useRef(null), [Pi, Fi] = import_react.useState(), [Ii, Li] = import_react.useState(false), Ri = import_react.useRef(Ii);
4611
+ let { width: n, height: r, accessibilityHeight: i, columns: a, cellXOffset: o, cellYOffset: s, headerHeight: c, fillHandle: l = false, groupHeaderHeight: u, rowHeight: f, rows: m, getCellContent: h, getRowThemeOverride: g, onHeaderMenuClick: y, onHeaderIndicatorClick: x, enableGroups: S, isFilling: C, onCanvasFocused: E, onCanvasBlur: D, isFocused: O, selection: k, freezeColumns: A, onContextMenu: j, freezeTrailingRows: M, fixedShadowX: N = true, fixedShadowY: P = true, drawFocusRing: F, onMouseDown: I, onMouseUp: L, onMouseMoveRaw: zr, onMouseMove: B, onItemHovered: V, dragAndDropState: Br, firstColAccessible: H, onKeyDown: Vr, onKeyUp: Hr, highlightRegions: Ur, canvasRef: U, onDragStart: W, onDragEnd: Wr, eventTargetRef: G, isResizing: K, resizeColumn: Gr, isDragging: Kr, isDraggable: qr = false, allowResize: Jr, disabledRows: Yr, hasAppendRow: Xr, getGroupDetails: Zr, theme: Qr, prelightCells: $r, headerIcons: ei, verticalBorder: ti, drawCell: J, drawHeader: ni, onCellFocused: Y, onDragOverCell: ri, onDrop: ii, onDragLeave: ai, imageWindowLoader: si, smoothScrollX: fi = false, smoothScrollY: pi = false, experimental: mi, getCellRenderer: X, resizeIndicator: hi = "full" } = e, gi = e.translateX ?? 0, _i = e.translateY ?? 0, vi = Math.max(A, Math.min(a.length - 1, o)), yi = import_react.useRef(null), bi = import_react.useRef((mi == null ? void 0 : mi.eventTarget) ?? window), xi = bi.current, Si = si, Ci = import_react.useRef(), [Ti, Ei] = import_react.useState(false), Di = import_react.useRef([]), Oi = import_react.useRef(), [ki, Ai] = import_react.useState(), [ji, Mi] = import_react.useState(), Ni = import_react.useRef(null), [Pi, Fi] = import_react.useState(), [Ii, Li] = import_react.useState(false), Ri = import_react.useRef(Ii);
4612
4612
  Ri.current = Ii;
4613
- let zi = import_react.useMemo(() => new SpriteManager(ti, () => {
4613
+ let zi = import_react.useMemo(() => new SpriteManager(ei, () => {
4614
4614
  na.current = void 0, sa.current();
4615
4615
  }), [
4616
- ti
4616
+ ei
4617
4617
  ]), Bi = S ? u + c : c, Vi = import_react.useRef(-1), Hi = ((mi == null ? void 0 : mi.enableFirefoxRescaling) ?? false) && browserIsFirefox.value, Ui = ((mi == null ? void 0 : mi.enableSafariRescaling) ?? false) && browserIsSafari.value;
4618
4618
  import_react.useLayoutEffect(() => {
4619
4619
  window.devicePixelRatio === 1 || !Hi && !Ui || (Vi.current !== -1 && Ei(true), window.clearTimeout(Vi.current), Vi.current = window.setTimeout(() => {
@@ -4627,7 +4627,7 @@ let __tla = (async () => {
4627
4627
  Hi,
4628
4628
  Ui
4629
4629
  ]);
4630
- let Wi = useMappedColumns(a, A), Gi = N ? getStickyWidth(Wi, Vr) : 0, Ki = import_react.useCallback((e2, t2, i2) => {
4630
+ let Wi = useMappedColumns(a, A), Gi = N ? getStickyWidth(Wi, Br) : 0, Ki = import_react.useCallback((e2, t2, i2) => {
4631
4631
  let a2 = e2.getBoundingClientRect();
4632
4632
  if (t2 >= Wi.length || i2 >= m) return;
4633
4633
  let o2 = a2.width / n, c2 = computeBounds(t2, i2, n, r, u, Bi, vi, s, gi, _i, m, A, M, Wi, f);
@@ -4819,33 +4819,33 @@ let __tla = (async () => {
4819
4819
  mappedColumns: Wi,
4820
4820
  enableGroups: S,
4821
4821
  freezeColumns: A,
4822
- dragAndDropState: Vr,
4823
- theme: $r,
4822
+ dragAndDropState: Br,
4823
+ theme: Qr,
4824
4824
  headerHeight: c,
4825
4825
  groupHeaderHeight: u,
4826
- disabledRows: Xr ?? CompactSelection.empty(),
4826
+ disabledRows: Yr ?? CompactSelection.empty(),
4827
4827
  rowHeight: f,
4828
- verticalBorder: ni,
4829
- isResizing: G,
4830
- resizeCol: Kr,
4828
+ verticalBorder: ti,
4829
+ isResizing: K,
4830
+ resizeCol: Gr,
4831
4831
  isFocused: O,
4832
4832
  selection: k,
4833
4833
  fillHandle: l,
4834
- drawCellCallback: q,
4835
- hasAppendRow: Zr,
4834
+ drawCellCallback: J,
4835
+ hasAppendRow: Xr,
4836
4836
  overrideCursor: a2,
4837
4837
  maxScaleFactor: ea,
4838
4838
  freezeTrailingRows: M,
4839
4839
  rows: m,
4840
4840
  drawFocus: F,
4841
4841
  getCellContent: h,
4842
- getGroupDetails: Qr ?? ((e3) => ({
4842
+ getGroupDetails: Zr ?? ((e3) => ({
4843
4843
  name: e3
4844
4844
  })),
4845
4845
  getRowThemeOverride: g,
4846
- drawHeaderCallback: ri,
4847
- prelightCells: ei,
4848
- highlightRegions: Wr,
4846
+ drawHeaderCallback: ni,
4847
+ prelightCells: $r,
4848
+ highlightRegions: Ur,
4849
4849
  imageLoader: Si,
4850
4850
  lastBlitData: Oi,
4851
4851
  damage: Ci.current,
@@ -4875,16 +4875,16 @@ let __tla = (async () => {
4875
4875
  Wi,
4876
4876
  S,
4877
4877
  A,
4878
- Vr,
4879
- $r,
4878
+ Br,
4879
+ Qr,
4880
4880
  c,
4881
4881
  u,
4882
- Xr,
4882
+ Yr,
4883
4883
  f,
4884
- ni,
4885
- G,
4886
- Zr,
4887
- Kr,
4884
+ ti,
4885
+ K,
4886
+ Xr,
4887
+ Gr,
4888
4888
  O,
4889
4889
  k,
4890
4890
  l,
@@ -4893,12 +4893,12 @@ let __tla = (async () => {
4893
4893
  F,
4894
4894
  ea,
4895
4895
  h,
4896
- Qr,
4896
+ Zr,
4897
4897
  g,
4898
- q,
4899
- ri,
4900
- ei,
4901
- Wr,
4898
+ J,
4899
+ ni,
4900
+ $r,
4901
+ Ur,
4902
4902
  Si,
4903
4903
  zi,
4904
4904
  Ti,
@@ -4938,29 +4938,29 @@ let __tla = (async () => {
4938
4938
  ], true);
4939
4939
  _a = e2.kind === InnerGridCellKind.NewRow || e2.kind === InnerGridCellKind.Marker && e2.markerKind !== "number", va = e2.kind === GridCellKind.Boolean && booleanCellIsEditable(e2), ya = e2.cursor;
4940
4940
  }
4941
- let ba = qr ? "grabbing" : (ji ?? false) || G ? "col-resize" : da || C ? "crosshair" : ya === void 0 ? ha || _a || va || ga ? "pointer" : "default" : ya, xa = import_react.useMemo(() => ({
4941
+ let ba = Kr ? "grabbing" : (ji ?? false) || K ? "col-resize" : da || C ? "crosshair" : ya === void 0 ? ha || _a || va || ga ? "pointer" : "default" : ya, xa = import_react.useMemo(() => ({
4942
4942
  contain: "strict",
4943
4943
  display: "block",
4944
4944
  cursor: ba
4945
4945
  }), [
4946
4946
  ba
4947
- ]), Sa = import_react.useRef("default"), Ca = W == null ? void 0 : W.current;
4947
+ ]), Sa = import_react.useRef("default"), Ca = G == null ? void 0 : G.current;
4948
4948
  Ca != null && Sa.current !== xa.cursor && (Ca.style.cursor = Sa.current = xa.cursor);
4949
4949
  let wa = import_react.useCallback((e2, t2, n2, r2) => {
4950
- if (Qr === void 0) return;
4951
- let i2 = Qr(e2);
4950
+ if (Zr === void 0) return;
4951
+ let i2 = Zr(e2);
4952
4952
  if (i2.actions !== void 0) {
4953
4953
  let e3 = getActionBoundsForGroup(t2, i2.actions);
4954
4954
  for (let [a2, o2] of e3.entries()) if (pointInRect(o2, n2 + t2.x, r2 + o2.y)) return i2.actions[a2];
4955
4955
  }
4956
4956
  }, [
4957
- Qr
4957
+ Zr
4958
4958
  ]), Ta = import_react.useCallback((e2, t2, n2, r2) => {
4959
4959
  let i2 = Wi[t2];
4960
- if (!qr && !G && !(ji ?? false)) {
4960
+ if (!Kr && !K && !(ji ?? false)) {
4961
4961
  let a2 = Ki(e2, t2, -1);
4962
4962
  assert(a2 !== void 0);
4963
- let o2 = computeHeaderLayout(void 0, i2, a2.x, a2.y, a2.width, a2.height, $r, direction(i2.title) === "rtl");
4963
+ let o2 = computeHeaderLayout(void 0, i2, a2.x, a2.y, a2.width, a2.height, Qr, direction(i2.title) === "rtl");
4964
4964
  if (i2.hasMenu === true && o2.menuBounds !== void 0 && pointInRect(o2.menuBounds, n2, r2)) return {
4965
4965
  area: "menu",
4966
4966
  bounds: o2.menuBounds
@@ -4974,11 +4974,11 @@ let __tla = (async () => {
4974
4974
  Wi,
4975
4975
  Ki,
4976
4976
  ji,
4977
- qr,
4978
- G,
4979
- $r
4977
+ Kr,
4978
+ K,
4979
+ Qr
4980
4980
  ]), Ea = import_react.useRef(0), Da = import_react.useRef(), Oa = import_react.useRef(false), ka = import_react.useCallback((e2) => {
4981
- let t2 = yi.current, n2 = W == null ? void 0 : W.current;
4981
+ let t2 = yi.current, n2 = G == null ? void 0 : G.current;
4982
4982
  if (t2 === null || e2.target !== t2 && e2.target !== n2) return;
4983
4983
  Oa.current = true;
4984
4984
  let r2, i2;
@@ -4987,10 +4987,10 @@ let __tla = (async () => {
4987
4987
  if (r2 > e3.right || i2 > e3.bottom) return;
4988
4988
  }
4989
4989
  let a2 = qi(t2, r2, i2, e2);
4990
- Da.current = a2.location, a2.isTouch && (Ea.current = Date.now()), Ri.current !== a2.isTouch && Li(a2.isTouch), !(a2.kind === "header" && Ta(t2, a2.location[0], r2, i2) !== void 0) && (a2.kind === "group-header" && wa(a2.group, a2.bounds, a2.localEventX, a2.localEventY) !== void 0 || (I == null ? void 0 : I(a2), !a2.isTouch && Jr !== true && Jr !== a2.kind && a2.button < 3 && a2.button !== 1 && e2.preventDefault()));
4990
+ Da.current = a2.location, a2.isTouch && (Ea.current = Date.now()), Ri.current !== a2.isTouch && Li(a2.isTouch), !(a2.kind === "header" && Ta(t2, a2.location[0], r2, i2) !== void 0) && (a2.kind === "group-header" && wa(a2.group, a2.bounds, a2.localEventX, a2.localEventY) !== void 0 || (I == null ? void 0 : I(a2), !a2.isTouch && qr !== true && qr !== a2.kind && a2.button < 3 && a2.button !== 1 && e2.preventDefault()));
4991
4991
  }, [
4992
- W,
4993
- Jr,
4992
+ G,
4993
+ qr,
4994
4994
  qi,
4995
4995
  wa,
4996
4996
  Ta,
@@ -5003,7 +5003,7 @@ let __tla = (async () => {
5003
5003
  Aa.current = Date.now();
5004
5004
  let n2 = yi.current;
5005
5005
  if (Oa.current = false, L === void 0 || n2 === null) return;
5006
- let r2 = W == null ? void 0 : W.current, i2 = e2.target !== n2 && e2.target !== r2, a2, o2, s2 = true;
5006
+ let r2 = G == null ? void 0 : G.current, i2 = e2.target !== n2 && e2.target !== r2, a2, o2, s2 = true;
5007
5007
  if (e2 instanceof MouseEvent) {
5008
5008
  if (a2 = e2.clientX, o2 = e2.clientY, s2 = e2.button < 3, e2.pointerType === "touch") return;
5009
5009
  } else a2 = e2.changedTouches[0].clientX, o2 = e2.changedTouches[0].clientY;
@@ -5029,7 +5029,7 @@ let __tla = (async () => {
5029
5029
  L(c2, i2);
5030
5030
  }, [
5031
5031
  L,
5032
- W,
5032
+ G,
5033
5033
  qi,
5034
5034
  Ta,
5035
5035
  wa
@@ -5038,7 +5038,7 @@ let __tla = (async () => {
5038
5038
  var _a2, _b;
5039
5039
  let t2 = yi.current;
5040
5040
  if (t2 === null) return;
5041
- let n2 = W == null ? void 0 : W.current, r2 = e2.target !== t2 && e2.target !== n2, i2, a2, o2 = true;
5041
+ let n2 = G == null ? void 0 : G.current, r2 = e2.target !== t2 && e2.target !== n2, i2, a2, o2 = true;
5042
5042
  e2 instanceof MouseEvent ? (i2 = e2.clientX, a2 = e2.clientY, o2 = e2.button < 3) : (i2 = e2.changedTouches[0].clientX, a2 = e2.changedTouches[0].clientY);
5043
5043
  let s2 = qi(t2, i2, a2, e2);
5044
5044
  Ri.current !== s2.isTouch && Li(s2.isTouch), !r2 && e2.cancelable && o2 && e2.preventDefault();
@@ -5051,22 +5051,22 @@ let __tla = (async () => {
5051
5051
  e3 !== void 0 && s2.button === 0 && e3.onClick(s2);
5052
5052
  }
5053
5053
  }, [
5054
- W,
5054
+ G,
5055
5055
  qi,
5056
5056
  Ta,
5057
5057
  y,
5058
5058
  x,
5059
5059
  wa
5060
5060
  ]), xi, false), useEventListener("contextmenu", import_react.useCallback((e2) => {
5061
- let t2 = yi.current, n2 = W == null ? void 0 : W.current;
5061
+ let t2 = yi.current, n2 = G == null ? void 0 : G.current;
5062
5062
  t2 === null || e2.target !== t2 && e2.target !== n2 || j === void 0 || j(qi(t2, e2.clientX, e2.clientY, e2), () => {
5063
5063
  e2.cancelable && e2.preventDefault();
5064
5064
  });
5065
5065
  }, [
5066
- W,
5066
+ G,
5067
5067
  qi,
5068
5068
  j
5069
- ]), (W == null ? void 0 : W.current) ?? null, false);
5069
+ ]), (G == null ? void 0 : G.current) ?? null, false);
5070
5070
  let Na = import_react.useCallback((e2) => {
5071
5071
  Ci.current = new CellSet(e2.map((e3) => e3.item)), Di.current = e2, sa.current(), Ci.current = void 0;
5072
5072
  }, []), Pa = import_react.useMemo(() => new AnimationManager(Na), [
@@ -5090,12 +5090,12 @@ let __tla = (async () => {
5090
5090
  var _a2;
5091
5091
  let t2 = yi.current;
5092
5092
  if (t2 === null) return;
5093
- let n2 = W == null ? void 0 : W.current, r2 = e2.target !== t2 && e2.target !== n2, i2 = qi(t2, e2.clientX, e2.clientY, e2);
5093
+ let n2 = G == null ? void 0 : G.current, r2 = e2.target !== t2 && e2.target !== n2, i2 = qi(t2, e2.clientX, e2.clientY, e2);
5094
5094
  if (i2.kind !== "out-of-bounds" && r2 && !Oa.current && !i2.isTouch) return;
5095
5095
  let a2 = (e3, t3) => {
5096
5096
  Ai((n3) => n3 === e3 || (n3 == null ? void 0 : n3[0][0]) === (e3 == null ? void 0 : e3[0][0]) && (n3 == null ? void 0 : n3[0][1]) === (e3 == null ? void 0 : e3[0][1]) && ((n3 == null ? void 0 : n3[1][0]) === (e3 == null ? void 0 : e3[1][0]) && (n3 == null ? void 0 : n3[1][1]) === (e3 == null ? void 0 : e3[1][1]) || !t3) ? n3 : e3);
5097
5097
  };
5098
- if (!mouseEventArgsAreEqual(i2, Ia.current)) Fi(void 0), Br == null ? void 0 : Br(i2), a2(i2.kind === "out-of-bounds" ? void 0 : [
5098
+ if (!mouseEventArgsAreEqual(i2, Ia.current)) Fi(void 0), V == null ? void 0 : V(i2), a2(i2.kind === "out-of-bounds" ? void 0 : [
5099
5099
  i2.location,
5100
5100
  [
5101
5101
  i2.localEventX,
@@ -5119,16 +5119,16 @@ let __tla = (async () => {
5119
5119
  i2.location
5120
5120
  ]));
5121
5121
  }
5122
- let o2 = i2.location[0] >= (V ? 0 : 1);
5123
- Mi(i2.kind === "header" && i2.isEdge && o2 && Yr === true), fa(i2.kind === "cell" && i2.isFillHandle), zr == null ? void 0 : zr(e2), B(i2);
5122
+ let o2 = i2.location[0] >= (H ? 0 : 1);
5123
+ Mi(i2.kind === "header" && i2.isEdge && o2 && Jr === true), fa(i2.kind === "cell" && i2.isFillHandle), zr == null ? void 0 : zr(e2), B(i2);
5124
5124
  }, [
5125
- W,
5125
+ G,
5126
5126
  qi,
5127
- V,
5128
- Yr,
5127
+ H,
5128
+ Jr,
5129
5129
  zr,
5130
5130
  B,
5131
- Br,
5131
+ V,
5132
5132
  h,
5133
5133
  X,
5134
5134
  la
@@ -5137,7 +5137,7 @@ let __tla = (async () => {
5137
5137
  let t2 = yi.current;
5138
5138
  if (t2 === null) return;
5139
5139
  let n2, r2;
5140
- k.current !== void 0 && (n2 = Ki(t2, k.current.cell[0], k.current.cell[1]), r2 = k.current.cell), Hr == null ? void 0 : Hr({
5140
+ k.current !== void 0 && (n2 = Ki(t2, k.current.cell[0], k.current.cell[1]), r2 = k.current.cell), Vr == null ? void 0 : Vr({
5141
5141
  bounds: n2,
5142
5142
  stopPropagation: () => e2.stopPropagation(),
5143
5143
  preventDefault: () => e2.preventDefault(),
@@ -5152,14 +5152,14 @@ let __tla = (async () => {
5152
5152
  location: r2
5153
5153
  });
5154
5154
  }, [
5155
- Hr,
5155
+ Vr,
5156
5156
  k,
5157
5157
  Ki
5158
5158
  ]), za = import_react.useCallback((e2) => {
5159
5159
  let t2 = yi.current;
5160
5160
  if (t2 === null) return;
5161
5161
  let n2, r2;
5162
- k.current !== void 0 && (n2 = Ki(t2, k.current.cell[0], k.current.cell[1]), r2 = k.current.cell), Ur == null ? void 0 : Ur({
5162
+ k.current !== void 0 && (n2 = Ki(t2, k.current.cell[0], k.current.cell[1]), r2 = k.current.cell), Hr == null ? void 0 : Hr({
5163
5163
  bounds: n2,
5164
5164
  stopPropagation: () => e2.stopPropagation(),
5165
5165
  preventDefault: () => e2.preventDefault(),
@@ -5174,28 +5174,28 @@ let __tla = (async () => {
5174
5174
  location: r2
5175
5175
  });
5176
5176
  }, [
5177
- Ur,
5177
+ Hr,
5178
5178
  k,
5179
5179
  Ki
5180
5180
  ]), Ba = import_react.useCallback((e2) => {
5181
- if (yi.current = e2, H !== void 0 && (H.current = e2), mi == null ? void 0 : mi.eventTarget) bi.current = mi.eventTarget;
5181
+ if (yi.current = e2, U !== void 0 && (U.current = e2), mi == null ? void 0 : mi.eventTarget) bi.current = mi.eventTarget;
5182
5182
  else if (e2 === null) bi.current = window;
5183
5183
  else {
5184
5184
  let t2 = e2.getRootNode();
5185
5185
  t2 === document && (bi.current = window), bi.current = t2;
5186
5186
  }
5187
5187
  }, [
5188
- H,
5188
+ U,
5189
5189
  mi == null ? void 0 : mi.eventTarget
5190
5190
  ]);
5191
5191
  useEventListener("dragstart", import_react.useCallback((e2) => {
5192
5192
  let t2 = yi.current;
5193
- if (t2 === null || Jr === false || G) {
5193
+ if (t2 === null || qr === false || K) {
5194
5194
  e2.preventDefault();
5195
5195
  return;
5196
5196
  }
5197
5197
  let n2, r2, i2 = qi(t2, e2.clientX, e2.clientY);
5198
- if (Jr !== true && i2.kind !== Jr) {
5198
+ if (qr !== true && i2.kind !== qr) {
5199
5199
  e2.preventDefault();
5200
5200
  return;
5201
5201
  }
@@ -5204,7 +5204,7 @@ let __tla = (async () => {
5204
5204
  }, o2, s2, c2, l2 = (e3, t3, n3) => {
5205
5205
  o2 = e3, s2 = t3, c2 = n3;
5206
5206
  }, u2 = false;
5207
- if (U == null ? void 0 : U({
5207
+ if (W == null ? void 0 : W({
5208
5208
  ...i2,
5209
5209
  setData: a2,
5210
5210
  setDragImage: l2,
@@ -5219,105 +5219,105 @@ let __tla = (async () => {
5219
5219
  let o3 = Math.ceil(window.devicePixelRatio ?? 1);
5220
5220
  i3.width = a3.width * o3, i3.height = a3.height * o3;
5221
5221
  let s3 = i3.getContext("2d");
5222
- s3 !== null && (s3.scale(o3, o3), s3.textBaseline = "middle", r3 === -1 ? (s3.font = $r.headerFontFull, s3.fillStyle = $r.bgHeader, s3.fillRect(0, 0, i3.width, i3.height), drawHeader(s3, 0, 0, a3.width, a3.height, Wi[n3], false, $r, false, void 0, void 0, false, 0, zi, ri, false)) : (s3.font = $r.baseFontFull, s3.fillStyle = $r.bgCell, s3.fillRect(0, 0, i3.width, i3.height), drawCell(s3, h([
5222
+ s3 !== null && (s3.scale(o3, o3), s3.textBaseline = "middle", r3 === -1 ? (s3.font = Qr.headerFontFull, s3.fillStyle = Qr.bgHeader, s3.fillRect(0, 0, i3.width, i3.height), drawHeader(s3, 0, 0, a3.width, a3.height, Wi[n3], false, Qr, false, void 0, void 0, false, 0, zi, ni, false)) : (s3.font = Qr.baseFontFull, s3.fillStyle = Qr.bgCell, s3.fillRect(0, 0, i3.width, i3.height), drawCell(s3, h([
5223
5223
  n3,
5224
5224
  r3
5225
- ]), 0, r3, false, false, 0, 0, a3.width, a3.height, false, $r, $r.bgCell, Si, zi, 1, void 0, false, 0, void 0, void 0, void 0, $i, X, () => void 0))), i3.style.left = "-100%", i3.style.position = "absolute", i3.style.width = `${a3.width}px`, i3.style.height = `${a3.height}px`, document.body.append(i3), e2.dataTransfer.setDragImage(i3, a3.width / 2, a3.height / 2), window.setTimeout(() => {
5225
+ ]), 0, r3, false, false, 0, 0, a3.width, a3.height, false, Qr, Qr.bgCell, Si, zi, 1, void 0, false, 0, void 0, void 0, void 0, $i, X, () => void 0))), i3.style.left = "-100%", i3.style.position = "absolute", i3.style.width = `${a3.width}px`, i3.style.height = `${a3.height}px`, document.body.append(i3), e2.dataTransfer.setDragImage(i3, a3.width / 2, a3.height / 2), window.setTimeout(() => {
5226
5226
  i3.remove();
5227
5227
  }, 0);
5228
5228
  }
5229
5229
  }
5230
5230
  else e2.preventDefault();
5231
5231
  }, [
5232
- Jr,
5233
- G,
5232
+ qr,
5233
+ K,
5234
5234
  qi,
5235
- U,
5235
+ W,
5236
5236
  Ki,
5237
- $r,
5237
+ Qr,
5238
5238
  Wi,
5239
5239
  zi,
5240
- ri,
5240
+ ni,
5241
5241
  h,
5242
5242
  Si,
5243
5243
  $i,
5244
5244
  X
5245
- ]), (W == null ? void 0 : W.current) ?? null, false, false);
5245
+ ]), (G == null ? void 0 : G.current) ?? null, false, false);
5246
5246
  let Va = import_react.useRef();
5247
5247
  useEventListener("dragover", import_react.useCallback((e2) => {
5248
5248
  let t2 = yi.current;
5249
- if (ai !== void 0 && e2.preventDefault(), t2 === null || ii === void 0) return;
5250
- let [n2, r2] = qi(t2, e2.clientX, e2.clientY).location, i2 = n2 - (V ? 0 : 1), [a2, o2] = Va.current ?? [];
5249
+ if (ii !== void 0 && e2.preventDefault(), t2 === null || ri === void 0) return;
5250
+ let [n2, r2] = qi(t2, e2.clientX, e2.clientY).location, i2 = n2 - (H ? 0 : 1), [a2, o2] = Va.current ?? [];
5251
5251
  (a2 !== i2 || o2 !== r2) && (Va.current = [
5252
5252
  i2,
5253
5253
  r2
5254
- ], ii([
5254
+ ], ri([
5255
5255
  i2,
5256
5256
  r2
5257
5257
  ], e2.dataTransfer));
5258
5258
  }, [
5259
- V,
5259
+ H,
5260
5260
  qi,
5261
- ii,
5262
- ai
5263
- ]), (W == null ? void 0 : W.current) ?? null, false, false), useEventListener("dragend", import_react.useCallback(() => {
5264
- Va.current = void 0, Gr == null ? void 0 : Gr();
5261
+ ri,
5262
+ ii
5263
+ ]), (G == null ? void 0 : G.current) ?? null, false, false), useEventListener("dragend", import_react.useCallback(() => {
5264
+ Va.current = void 0, Wr == null ? void 0 : Wr();
5265
5265
  }, [
5266
- Gr
5267
- ]), (W == null ? void 0 : W.current) ?? null, false, false), useEventListener("drop", import_react.useCallback((e2) => {
5266
+ Wr
5267
+ ]), (G == null ? void 0 : G.current) ?? null, false, false), useEventListener("drop", import_react.useCallback((e2) => {
5268
5268
  let t2 = yi.current;
5269
- if (t2 === null || ai === void 0) return;
5269
+ if (t2 === null || ii === void 0) return;
5270
5270
  e2.preventDefault();
5271
5271
  let [n2, r2] = qi(t2, e2.clientX, e2.clientY).location;
5272
- ai([
5273
- n2 - (V ? 0 : 1),
5272
+ ii([
5273
+ n2 - (H ? 0 : 1),
5274
5274
  r2
5275
5275
  ], e2.dataTransfer);
5276
5276
  }, [
5277
- V,
5277
+ H,
5278
5278
  qi,
5279
- ai
5280
- ]), (W == null ? void 0 : W.current) ?? null, false, false), useEventListener("dragleave", import_react.useCallback(() => {
5281
- oi == null ? void 0 : oi();
5279
+ ii
5280
+ ]), (G == null ? void 0 : G.current) ?? null, false, false), useEventListener("dragleave", import_react.useCallback(() => {
5281
+ ai == null ? void 0 : ai();
5282
5282
  }, [
5283
- oi
5284
- ]), (W == null ? void 0 : W.current) ?? null, false, false);
5283
+ ai
5284
+ ]), (G == null ? void 0 : G.current) ?? null, false, false);
5285
5285
  let Ua = import_react.useRef(k);
5286
5286
  Ua.current = k;
5287
5287
  let Ka = import_react.useRef(null), qa = import_react.useCallback((e2) => {
5288
5288
  var _a2;
5289
- yi.current === null || !yi.current.contains(document.activeElement) || (e2 === null && Ua.current.current !== void 0 ? (_a2 = H == null ? void 0 : H.current) == null ? void 0 : _a2.focus({
5289
+ yi.current === null || !yi.current.contains(document.activeElement) || (e2 === null && Ua.current.current !== void 0 ? (_a2 = U == null ? void 0 : U.current) == null ? void 0 : _a2.focus({
5290
5290
  preventScroll: true
5291
5291
  }) : e2 !== null && e2.focus({
5292
5292
  preventScroll: true
5293
5293
  }), Ka.current = e2);
5294
5294
  }, [
5295
- H
5295
+ U
5296
5296
  ]);
5297
5297
  import_react.useImperativeHandle(t, () => ({
5298
5298
  focus: () => {
5299
5299
  var _a2;
5300
5300
  let e2 = Ka.current;
5301
- e2 === null || !document.contains(e2) ? (_a2 = H == null ? void 0 : H.current) == null ? void 0 : _a2.focus({
5301
+ e2 === null || !document.contains(e2) ? (_a2 = U == null ? void 0 : U.current) == null ? void 0 : _a2.focus({
5302
5302
  preventScroll: true
5303
5303
  }) : e2.focus({
5304
5304
  preventScroll: true
5305
5305
  });
5306
5306
  },
5307
5307
  getBounds: (e2, t2) => {
5308
- if (!(H === void 0 || H.current === null)) return Ki(H.current, e2 ?? 0, t2 ?? -1);
5308
+ if (!(U === void 0 || U.current === null)) return Ki(U.current, e2 ?? 0, t2 ?? -1);
5309
5309
  },
5310
5310
  damage: ua
5311
5311
  }), [
5312
- H,
5312
+ U,
5313
5313
  ua,
5314
5314
  Ki
5315
5315
  ]);
5316
5316
  let Ja = import_react.useRef(), Ya = useDebouncedMemo(() => {
5317
5317
  var _a2, _b, _c;
5318
5318
  if (n < 50 || (mi == null ? void 0 : mi.disableAccessibilityTree) === true) return null;
5319
- let e2 = getEffectiveColumns(Wi, vi, n, Vr, gi), t2 = V ? 0 : -1;
5320
- !V && ((_a2 = e2[0]) == null ? void 0 : _a2.sourceIndex) === 0 && (e2 = e2.slice(1));
5319
+ let e2 = getEffectiveColumns(Wi, vi, n, Br, gi), t2 = H ? 0 : -1;
5320
+ !H && ((_a2 = e2[0]) == null ? void 0 : _a2.sourceIndex) === 0 && (e2 = e2.slice(1));
5321
5321
  let [r2, a2] = ((_b = k.current) == null ? void 0 : _b.cell) ?? [], o2 = (_c = k.current) == null ? void 0 : _c.range, c2 = e2.map((e3) => e3.sourceIndex), l2 = (0, import_range$1.default)(s, Math.min(m, s + i));
5322
5322
  return r2 !== void 0 && a2 !== void 0 && !(c2.includes(r2) && l2.includes(a2)) && qa(null), import_react.createElement("table", {
5323
5323
  key: "access-tree",
@@ -5336,7 +5336,7 @@ let __tla = (async () => {
5336
5336
  "aria-colindex": e3.sourceIndex + 1 + t2,
5337
5337
  tabIndex: -1,
5338
5338
  onFocus: (t3) => {
5339
- if (t3.target !== Ka.current) return J == null ? void 0 : J([
5339
+ if (t3.target !== Ka.current) return Y == null ? void 0 : Y([
5340
5340
  e3.sourceIndex,
5341
5341
  -1
5342
5342
  ]);
@@ -5363,8 +5363,8 @@ let __tla = (async () => {
5363
5363
  id: u2,
5364
5364
  "data-testid": u2,
5365
5365
  onClick: () => {
5366
- let e4 = H == null ? void 0 : H.current;
5367
- if (e4 != null) return Hr == null ? void 0 : Hr({
5366
+ let e4 = U == null ? void 0 : U.current;
5367
+ if (e4 != null) return Vr == null ? void 0 : Vr({
5368
5368
  bounds: Ki(e4, i2, n2),
5369
5369
  cancel: () => void 0,
5370
5370
  preventDefault: () => void 0,
@@ -5381,7 +5381,7 @@ let __tla = (async () => {
5381
5381
  },
5382
5382
  onFocusCapture: (e4) => {
5383
5383
  var _a3, _b2;
5384
- if (!(e4.target === Ka.current || ((_a3 = Ja.current) == null ? void 0 : _a3[0]) === i2 && ((_b2 = Ja.current) == null ? void 0 : _b2[1]) === n2)) return Ja.current = f2, J == null ? void 0 : J(f2);
5384
+ if (!(e4.target === Ka.current || ((_a3 = Ja.current) == null ? void 0 : _a3[0]) === i2 && ((_b2 = Ja.current) == null ? void 0 : _b2[1]) === n2)) return Ja.current = f2, Y == null ? void 0 : Y(f2);
5385
5385
  },
5386
5386
  ref: c3 ? qa : void 0,
5387
5387
  tabIndex: -1
@@ -5391,7 +5391,7 @@ let __tla = (async () => {
5391
5391
  n,
5392
5392
  Wi,
5393
5393
  vi,
5394
- Vr,
5394
+ Br,
5395
5395
  gi,
5396
5396
  m,
5397
5397
  s,
@@ -5399,10 +5399,10 @@ let __tla = (async () => {
5399
5399
  k,
5400
5400
  qa,
5401
5401
  h,
5402
- H,
5403
- Hr,
5402
+ U,
5403
+ Vr,
5404
5404
  Ki,
5405
- J
5405
+ Y
5406
5406
  ], 200), Xa = A === 0 || !N ? 0 : vi > A ? 1 : (0, import_clamp$2.default)(-gi / 100, 0, 1), Za = -s * 32 + _i, Qa = P ? (0, import_clamp$2.default)(-Za / 100, 0, 1) : 0, $a = import_react.useMemo(() => {
5407
5407
  if (!Xa && !Qa) return null;
5408
5408
  let e2 = {
@@ -5465,111 +5465,111 @@ let __tla = (async () => {
5465
5465
  return (0, import_clamp$1.default)(Math.round(t - (e.growOffset ?? 0)), Math.ceil(n), Math.floor(r));
5466
5466
  }
5467
5467
  var data_grid_dnd_default = (e) => {
5468
- let [t, n] = import_react.useState(), [r, i] = import_react.useState(), [a, o] = import_react.useState(), [s, c] = import_react.useState(), [l, u] = import_react.useState(false), [f, m] = import_react.useState(), [h, g] = import_react.useState(), [y, x] = import_react.useState(), [S, C] = import_react.useState(false), [E, D] = import_react.useState(), { onHeaderMenuClick: O, onHeaderIndicatorClick: k, getCellContent: A, onColumnMoved: j, onColumnResize: M, onColumnResizeStart: N, onColumnResizeEnd: P, gridRef: F, maxColumnWidth: I, minColumnWidth: L, onRowMoved: zr, lockColumns: B, onColumnProposeMove: Br, onMouseDown: Vr, onMouseUp: V, onItemHovered: Hr, onDragStart: Ur, canvasRef: Wr } = e, H = (M ?? P ?? N) !== void 0, { columns: U, selection: Gr } = e, W = Gr.columns, G = import_react.useCallback((e2) => {
5468
+ let [t, n] = import_react.useState(), [r, i] = import_react.useState(), [a, o] = import_react.useState(), [s, c] = import_react.useState(), [l, u] = import_react.useState(false), [f, m] = import_react.useState(), [h, g] = import_react.useState(), [y, x] = import_react.useState(), [S, C] = import_react.useState(false), [E, D] = import_react.useState(), { onHeaderMenuClick: O, onHeaderIndicatorClick: k, getCellContent: A, onColumnMoved: j, onColumnResize: M, onColumnResizeStart: N, onColumnResizeEnd: P, gridRef: F, maxColumnWidth: I, minColumnWidth: L, onRowMoved: zr, lockColumns: B, onColumnProposeMove: V, onMouseDown: Br, onMouseUp: H, onItemHovered: Vr, onDragStart: Hr, canvasRef: Ur } = e, U = (M ?? P ?? N) !== void 0, { columns: W, selection: Wr } = e, G = Wr.columns, K = import_react.useCallback((e2) => {
5469
5469
  let [t2, n2] = e2.location;
5470
- a !== void 0 && s !== t2 && t2 >= B ? (u(true), c(t2)) : h !== void 0 && n2 !== void 0 ? (C(true), x(Math.max(0, n2))) : r === void 0 && !l && !S && (Hr == null ? void 0 : Hr(e2));
5470
+ a !== void 0 && s !== t2 && t2 >= B ? (u(true), c(t2)) : h !== void 0 && n2 !== void 0 ? (C(true), x(Math.max(0, n2))) : r === void 0 && !l && !S && (Vr == null ? void 0 : Vr(e2));
5471
5471
  }, [
5472
5472
  a,
5473
5473
  h,
5474
5474
  s,
5475
- Hr,
5475
+ Vr,
5476
5476
  B,
5477
5477
  r,
5478
5478
  l,
5479
5479
  S
5480
- ]), K = j !== void 0, Kr = import_react.useCallback((e2) => {
5480
+ ]), q = j !== void 0, Gr = import_react.useCallback((e2) => {
5481
5481
  var _a;
5482
5482
  if (e2.button === 0) {
5483
5483
  let [t2, r2] = e2.location;
5484
- if (e2.kind === "out-of-bounds" && e2.isEdge && H) {
5485
- let e3 = (_a = F == null ? void 0 : F.current) == null ? void 0 : _a.getBounds(U.length - 1, -1);
5486
- e3 !== void 0 && (n(e3.x), i(U.length - 1));
5484
+ if (e2.kind === "out-of-bounds" && e2.isEdge && U) {
5485
+ let e3 = (_a = F == null ? void 0 : F.current) == null ? void 0 : _a.getBounds(W.length - 1, -1);
5486
+ e3 !== void 0 && (n(e3.x), i(W.length - 1));
5487
5487
  } else if (e2.kind === "header" && t2 >= B) {
5488
- let r3 = Wr == null ? void 0 : Wr.current;
5489
- if (e2.isEdge && H && r3) {
5488
+ let r3 = Ur == null ? void 0 : Ur.current;
5489
+ if (e2.isEdge && U && r3) {
5490
5490
  n(e2.bounds.x), i(t2);
5491
5491
  let a2 = r3.getBoundingClientRect().width / r3.offsetWidth, o2 = e2.bounds.width / a2;
5492
- N == null ? void 0 : N(U[t2], o2, t2, o2 + (U[t2].growOffset ?? 0));
5493
- } else e2.kind === "header" && K && (m(e2.bounds.x), o(t2));
5492
+ N == null ? void 0 : N(W[t2], o2, t2, o2 + (W[t2].growOffset ?? 0));
5493
+ } else e2.kind === "header" && q && (m(e2.bounds.x), o(t2));
5494
5494
  } else e2.kind === "cell" && B > 0 && t2 === 0 && r2 !== void 0 && zr !== void 0 && (D(e2.bounds.y), g(r2));
5495
5495
  }
5496
- Vr == null ? void 0 : Vr(e2);
5496
+ Br == null ? void 0 : Br(e2);
5497
5497
  }, [
5498
- Vr,
5499
- H,
5498
+ Br,
5499
+ U,
5500
5500
  B,
5501
5501
  zr,
5502
5502
  F,
5503
- U,
5504
- K,
5503
+ W,
5504
+ q,
5505
5505
  N,
5506
- Wr
5507
- ]), qr = import_react.useCallback((e2, t2) => {
5506
+ Ur
5507
+ ]), Kr = import_react.useCallback((e2, t2) => {
5508
5508
  l || S || (O == null ? void 0 : O(e2, t2));
5509
5509
  }, [
5510
5510
  l,
5511
5511
  S,
5512
5512
  O
5513
- ]), Jr = import_react.useCallback((e2, t2) => {
5513
+ ]), qr = import_react.useCallback((e2, t2) => {
5514
5514
  l || S || (k == null ? void 0 : k(e2, t2));
5515
5515
  }, [
5516
5516
  l,
5517
5517
  S,
5518
5518
  k
5519
- ]), Yr = import_react.useRef(-1), Xr = import_react.useCallback(() => {
5520
- Yr.current = -1, g(void 0), x(void 0), D(void 0), C(false), o(void 0), c(void 0), m(void 0), u(false), i(void 0), n(void 0);
5521
- }, []), Zr = import_react.useCallback((e2, t2) => {
5519
+ ]), Jr = import_react.useRef(-1), Yr = import_react.useCallback(() => {
5520
+ Jr.current = -1, g(void 0), x(void 0), D(void 0), C(false), o(void 0), c(void 0), m(void 0), u(false), i(void 0), n(void 0);
5521
+ }, []), Xr = import_react.useCallback((e2, t2) => {
5522
5522
  if (e2.button === 0) {
5523
5523
  if (r !== void 0) {
5524
- if ((W == null ? void 0 : W.hasIndex(r)) === true) for (let e4 of W) {
5524
+ if ((G == null ? void 0 : G.hasIndex(r)) === true) for (let e4 of G) {
5525
5525
  if (e4 === r) continue;
5526
- let t3 = U[e4], n2 = offsetColumnSize(t3, Yr.current, L, I);
5526
+ let t3 = W[e4], n2 = offsetColumnSize(t3, Jr.current, L, I);
5527
5527
  M == null ? void 0 : M(t3, n2, e4, n2 + (t3.growOffset ?? 0));
5528
5528
  }
5529
- let e3 = offsetColumnSize(U[r], Yr.current, L, I);
5530
- if (P == null ? void 0 : P(U[r], e3, r, e3 + (U[r].growOffset ?? 0)), W.hasIndex(r)) for (let e4 of W) {
5529
+ let e3 = offsetColumnSize(W[r], Jr.current, L, I);
5530
+ if (P == null ? void 0 : P(W[r], e3, r, e3 + (W[r].growOffset ?? 0)), G.hasIndex(r)) for (let e4 of G) {
5531
5531
  if (e4 === r) continue;
5532
- let t3 = U[e4], n2 = offsetColumnSize(t3, Yr.current, L, I);
5532
+ let t3 = W[e4], n2 = offsetColumnSize(t3, Jr.current, L, I);
5533
5533
  P == null ? void 0 : P(t3, n2, e4, n2 + (t3.growOffset ?? 0));
5534
5534
  }
5535
5535
  }
5536
- Xr(), a !== void 0 && s !== void 0 && (j == null ? void 0 : j(a, s)), h !== void 0 && y !== void 0 && (zr == null ? void 0 : zr(h, y));
5536
+ Yr(), a !== void 0 && s !== void 0 && (j == null ? void 0 : j(a, s)), h !== void 0 && y !== void 0 && (zr == null ? void 0 : zr(h, y));
5537
5537
  }
5538
- V == null ? void 0 : V(e2, t2);
5538
+ H == null ? void 0 : H(e2, t2);
5539
5539
  }, [
5540
- V,
5540
+ H,
5541
5541
  r,
5542
5542
  a,
5543
5543
  s,
5544
5544
  h,
5545
5545
  y,
5546
- W,
5546
+ G,
5547
5547
  P,
5548
- U,
5548
+ W,
5549
5549
  L,
5550
5550
  I,
5551
5551
  M,
5552
5552
  j,
5553
5553
  zr,
5554
- Xr
5555
- ]), Qr = import_react.useMemo(() => {
5556
- if (!(a === void 0 || s === void 0) && a !== s && (Br == null ? void 0 : Br(a, s)) !== false) return {
5554
+ Yr
5555
+ ]), Zr = import_react.useMemo(() => {
5556
+ if (!(a === void 0 || s === void 0) && a !== s && (V == null ? void 0 : V(a, s)) !== false) return {
5557
5557
  src: a,
5558
5558
  dest: s
5559
5559
  };
5560
5560
  }, [
5561
5561
  a,
5562
5562
  s,
5563
- Br
5564
- ]), $r = import_react.useCallback((e2) => {
5565
- let n2 = Wr == null ? void 0 : Wr.current;
5563
+ V
5564
+ ]), Qr = import_react.useCallback((e2) => {
5565
+ let n2 = Ur == null ? void 0 : Ur.current;
5566
5566
  if (a !== void 0 && f !== void 0) Math.abs(e2.clientX - f) > 20 && u(true);
5567
5567
  else if (h !== void 0 && E !== void 0) Math.abs(e2.clientY - E) > 20 && C(true);
5568
5568
  else if (r !== void 0 && t !== void 0 && n2) {
5569
- let i2 = n2.getBoundingClientRect().width / n2.offsetWidth, a2 = (e2.clientX - t) / i2, o2 = U[r], s2 = offsetColumnSize(o2, a2, L, I);
5570
- if (M == null ? void 0 : M(o2, s2, r, s2 + (o2.growOffset ?? 0)), Yr.current = a2, (W == null ? void 0 : W.first()) === r) for (let e3 of W) {
5569
+ let i2 = n2.getBoundingClientRect().width / n2.offsetWidth, a2 = (e2.clientX - t) / i2, o2 = W[r], s2 = offsetColumnSize(o2, a2, L, I);
5570
+ if (M == null ? void 0 : M(o2, s2, r, s2 + (o2.growOffset ?? 0)), Jr.current = a2, (G == null ? void 0 : G.first()) === r) for (let e3 of G) {
5571
5571
  if (e3 === r) continue;
5572
- let t2 = U[e3], n3 = offsetColumnSize(t2, Yr.current, L, I);
5572
+ let t2 = W[e3], n3 = offsetColumnSize(t2, Jr.current, L, I);
5573
5573
  M == null ? void 0 : M(t2, n3, e3, n3 + (t2.growOffset ?? 0));
5574
5574
  }
5575
5575
  }
@@ -5580,13 +5580,13 @@ let __tla = (async () => {
5580
5580
  E,
5581
5581
  r,
5582
5582
  t,
5583
- U,
5583
+ W,
5584
5584
  L,
5585
5585
  I,
5586
5586
  M,
5587
- W,
5588
- Wr
5589
- ]), ei = import_react.useCallback((e2, t2) => {
5587
+ G,
5588
+ Ur
5589
+ ]), $r = import_react.useCallback((e2, t2) => {
5590
5590
  if (h === void 0 || y === void 0) return A(e2, t2);
5591
5591
  let [n2, r2] = e2;
5592
5592
  return r2 === y ? r2 = h : (r2 > y && --r2, r2 >= h && (r2 += 1)), A([
@@ -5597,11 +5597,11 @@ let __tla = (async () => {
5597
5597
  h,
5598
5598
  y,
5599
5599
  A
5600
- ]), ti = import_react.useCallback((e2) => {
5601
- Ur == null ? void 0 : Ur(e2), e2.defaultPrevented() || Xr();
5600
+ ]), ei = import_react.useCallback((e2) => {
5601
+ Hr == null ? void 0 : Hr(e2), e2.defaultPrevented() || Yr();
5602
5602
  }, [
5603
- Xr,
5604
- Ur
5603
+ Yr,
5604
+ Hr
5605
5605
  ]);
5606
5606
  return import_react.createElement(data_grid_default, {
5607
5607
  accessibilityHeight: e.accessibilityHeight,
@@ -5659,18 +5659,18 @@ let __tla = (async () => {
5659
5659
  resizeIndicator: e.resizeIndicator,
5660
5660
  verticalBorder: e.verticalBorder,
5661
5661
  width: e.width,
5662
- getCellContent: ei,
5662
+ getCellContent: $r,
5663
5663
  isResizing: r !== void 0,
5664
- onHeaderMenuClick: qr,
5665
- onHeaderIndicatorClick: Jr,
5664
+ onHeaderMenuClick: Kr,
5665
+ onHeaderIndicatorClick: qr,
5666
5666
  isDragging: l,
5667
- onItemHovered: G,
5668
- onDragStart: ti,
5669
- onMouseDown: Kr,
5670
- allowResize: H,
5671
- onMouseUp: Zr,
5672
- dragAndDropState: Qr,
5673
- onMouseMoveRaw: $r,
5667
+ onItemHovered: K,
5668
+ onDragStart: ei,
5669
+ onMouseDown: Gr,
5670
+ allowResize: U,
5671
+ onMouseUp: Xr,
5672
+ dragAndDropState: Zr,
5673
+ onMouseMoveRaw: Qr,
5674
5674
  ref: F
5675
5675
  });
5676
5676
  };
@@ -5816,41 +5816,41 @@ let __tla = (async () => {
5816
5816
  l,
5817
5817
  u
5818
5818
  ]);
5819
- let Br = import_react.useCallback((e2) => {
5819
+ let V = import_react.useCallback((e2) => {
5820
5820
  O.current = e2, g !== void 0 && (g.current = e2);
5821
5821
  }, [
5822
5822
  g
5823
- ]), Vr = 0, V = 0;
5823
+ ]), Br = 0, H = 0;
5824
5824
  for (x.push(import_react.createElement("div", {
5825
- key: Vr++,
5825
+ key: Br++,
5826
5826
  style: {
5827
5827
  width: i,
5828
5828
  height: 0
5829
5829
  }
5830
- })); V < r; ) {
5831
- let e2 = Math.min(5e6, r - V);
5830
+ })); H < r; ) {
5831
+ let e2 = Math.min(5e6, r - H);
5832
5832
  x.push(import_react.createElement("div", {
5833
- key: Vr++,
5833
+ key: Br++,
5834
5834
  style: {
5835
5835
  width: 0,
5836
5836
  height: e2
5837
5837
  }
5838
- })), V += e2;
5839
- }
5840
- let { ref: Hr, width: Ur, height: Wr } = useResizeDetector(y);
5841
- return typeof window < "u" && (((_a = zr.current) == null ? void 0 : _a.height) !== Wr || ((_b = zr.current) == null ? void 0 : _b.width) !== Ur) && (window.setTimeout(() => L.current(), 0), zr.current = {
5842
- width: Ur,
5843
- height: Wr
5844
- }), (Ur ?? 0) === 0 || (Wr ?? 0) === 0 ? import_react.createElement("div", {
5845
- ref: Hr
5838
+ })), H += e2;
5839
+ }
5840
+ let { ref: Vr, width: Hr, height: Ur } = useResizeDetector(y);
5841
+ return typeof window < "u" && (((_a = zr.current) == null ? void 0 : _a.height) !== Ur || ((_b = zr.current) == null ? void 0 : _b.width) !== Hr) && (window.setTimeout(() => L.current(), 0), zr.current = {
5842
+ width: Hr,
5843
+ height: Ur
5844
+ }), (Hr ?? 0) === 0 || (Ur ?? 0) === 0 ? import_react.createElement("div", {
5845
+ ref: Vr
5846
5846
  }) : import_react.createElement("div", {
5847
- ref: Hr
5847
+ ref: Vr
5848
5848
  }, import_react.createElement(ScrollRegionStyle, {
5849
5849
  isSafari: browserIsSafari.value
5850
5850
  }, import_react.createElement("div", {
5851
5851
  className: "dvn-underlay"
5852
5852
  }, t), import_react.createElement("div", {
5853
- ref: Br,
5853
+ ref: V,
5854
5854
  style: zr.current,
5855
5855
  draggable: o,
5856
5856
  onDragStart: (e2) => {
@@ -5867,7 +5867,7 @@ let __tla = (async () => {
5867
5867
  }), import_react.createElement("div", {
5868
5868
  ref: j,
5869
5869
  style: {
5870
- height: Wr,
5870
+ height: Ur,
5871
5871
  maxHeight: n - Math.ceil(k % 1),
5872
5872
  position: "sticky",
5873
5873
  top: 0,
@@ -5885,11 +5885,11 @@ let __tla = (async () => {
5885
5885
  if (typeof r == "number") B += n * r;
5886
5886
  else for (let e2 = 0; e2 < n; e2++) B += r(e2);
5887
5887
  C !== void 0 && (B += C);
5888
- let Br = import_react.useRef(), Vr = import_react.useCallback(() => {
5888
+ let V = import_react.useRef(), Br = import_react.useCallback(() => {
5889
5889
  var _a, _b;
5890
- if (Br.current === void 0) return;
5890
+ if (V.current === void 0) return;
5891
5891
  let e2 = {
5892
- ...Br.current
5892
+ ...V.current
5893
5893
  }, i2 = 0, a2 = e2.x < 0 ? -e2.x : 0, o2 = 0, c2 = 0;
5894
5894
  e2.x = e2.x < 0 ? 0 : e2.x;
5895
5895
  let l2 = 0;
@@ -5936,15 +5936,15 @@ let __tla = (async () => {
5936
5936
  s,
5937
5937
  D,
5938
5938
  O
5939
- ]), V = import_react.useCallback((e2) => {
5940
- Br.current = e2, Vr();
5939
+ ]), H = import_react.useCallback((e2) => {
5940
+ V.current = e2, Br();
5941
5941
  }, [
5942
- Vr
5942
+ Br
5943
5943
  ]);
5944
5944
  return import_react.useEffect(() => {
5945
- Vr();
5945
+ Br();
5946
5946
  }, [
5947
- Vr
5947
+ Br
5948
5948
  ]), import_react.createElement(InfiniteScroller, {
5949
5949
  scrollRef: h,
5950
5950
  className: f,
@@ -5958,7 +5958,7 @@ let __tla = (async () => {
5958
5958
  paddingBottom: j,
5959
5959
  paddingRight: A,
5960
5960
  rightElementProps: x,
5961
- update: V,
5961
+ update: H,
5962
5962
  initialSize: E
5963
5963
  }, import_react.createElement(data_grid_dnd_default, {
5964
5964
  eventTargetRef: h,
@@ -6201,7 +6201,7 @@ let __tla = (async () => {
6201
6201
  u,
6202
6202
  M,
6203
6203
  C
6204
- ]), Br = import_react.useCallback((e2) => {
6204
+ ]), V = import_react.useCallback((e2) => {
6205
6205
  (e2.ctrlKey || e2.metaKey) && e2.nativeEvent.code === "KeyF" || e2.key === "Escape" ? (I(), e2.stopPropagation(), e2.preventDefault()) : e2.key === "Enter" && (e2.shiftKey ? B() : zr());
6206
6206
  }, [
6207
6207
  I,
@@ -6213,18 +6213,18 @@ let __tla = (async () => {
6213
6213
  }, [
6214
6214
  N
6215
6215
  ]);
6216
- let [Vr, V] = import_react.useState(false);
6216
+ let [Br, H] = import_react.useState(false);
6217
6217
  import_react.useEffect(() => {
6218
- if (f) V(true);
6218
+ if (f) H(true);
6219
6219
  else {
6220
- let e2 = setTimeout(() => V(false), 150);
6220
+ let e2 = setTimeout(() => H(false), 150);
6221
6221
  return () => clearTimeout(e2);
6222
6222
  }
6223
6223
  }, [
6224
6224
  f
6225
6225
  ]);
6226
- let Hr = import_react.useMemo(() => {
6227
- if (!f && !Vr) return null;
6226
+ let Vr = import_react.useMemo(() => {
6227
+ if (!f && !Br) return null;
6228
6228
  let e2;
6229
6229
  C !== void 0 && (e2 = C.results >= 1e3 ? "over 1000" : `${C.results} result${C.results === 1 ? "" : "s"}`, C.selectedIndex >= 0 && (e2 = `${C.selectedIndex + 1} of ${e2}`));
6230
6230
  let t2 = (e3) => {
@@ -6248,7 +6248,7 @@ let __tla = (async () => {
6248
6248
  onChange: L,
6249
6249
  value: x,
6250
6250
  tabIndex: f ? void 0 : -1,
6251
- onKeyDownCapture: Br
6251
+ onKeyDownCapture: V
6252
6252
  }), import_react.createElement("button", {
6253
6253
  "aria-label": "Previous Result",
6254
6254
  "aria-hidden": !f,
@@ -6281,14 +6281,14 @@ let __tla = (async () => {
6281
6281
  })));
6282
6282
  }, [
6283
6283
  f,
6284
- Vr,
6284
+ Br,
6285
6285
  C,
6286
6286
  r,
6287
6287
  h,
6288
6288
  a,
6289
6289
  L,
6290
6290
  x,
6291
- Br,
6291
+ V,
6292
6292
  B,
6293
6293
  zr,
6294
6294
  m,
@@ -6374,7 +6374,7 @@ let __tla = (async () => {
6374
6374
  smoothScrollX: e.smoothScrollX,
6375
6375
  smoothScrollY: e.smoothScrollY,
6376
6376
  resizeIndicator: e.resizeIndicator
6377
- }), Hr);
6377
+ }), Vr);
6378
6378
  }, _exp$2 = () => (e) => Math.max(16, e.targetHeight - 10), RenameInput = styled_default("input")({
6379
6379
  name: "RenameInput",
6380
6380
  class: "gdg-r17m35ur",
@@ -7379,7 +7379,7 @@ let __tla = (async () => {
7379
7379
  scrollRef: f
7380
7380
  };
7381
7381
  }
7382
- var import_clamp = __toESM(require_clamp(), 1), import_uniq = __toESM(require_uniq(), 1), import_flatten = __toESM(require_flatten(), 1), import_range = __toESM(require_range(), 1), import_debounce = __toESM(require_debounce(), 1), DataGridOverlayEditor = import_react.lazy(async () => await import("./data-grid-overlay-editor-lKF301ME.js")), idCounter = 0;
7382
+ var import_clamp = __toESM(require_clamp(), 1), import_uniq = __toESM(require_uniq(), 1), import_flatten = __toESM(require_flatten(), 1), import_range = __toESM(require_range(), 1), import_debounce = __toESM(require_debounce(), 1), DataGridOverlayEditor = import_react.lazy(async () => await import("./data-grid-overlay-editor-C_sKPpLu.js")), idCounter = 0;
7383
7383
  function getSpanStops(e) {
7384
7384
  return (0, import_uniq.default)((0, import_flatten.default)((0, import_flatten.default)(e).filter((e2) => e2.span !== void 0).map((e2) => {
7385
7385
  var _a, _b;
@@ -7416,7 +7416,7 @@ let __tla = (async () => {
7416
7416
  };
7417
7417
  const DataEditor = import_react.forwardRef((e, t) => {
7418
7418
  var _a2, _b, _c2;
7419
- let [n, r] = import_react.useState(emptyGridSelection), [i, a] = import_react.useState(), o = import_react.useRef(null), s = import_react.useRef(null), [c, l] = import_react.useState(), u = import_react.useRef(), f = typeof window > "u" ? null : window, { imageEditorOverride: m, getRowThemeOverride: h, markdownDivCreateNode: g, width: y, height: x, columns: S, rows: C, getCellContent: E, onCellClicked: D, onCellActivated: O, onFillPattern: k, onFinishedEditing: A, coercePasteValue: j, drawHeader: M, drawCell: N, editorBloom: P, onHeaderClicked: F, onColumnProposeMove: I, rangeSelectionColumnSpanning: L = true, spanRangeBehavior: zr = "default", onGroupHeaderClicked: B, onCellContextMenu: Br, className: Vr, onHeaderContextMenu: V, getCellsForSelection: Hr, onGroupHeaderContextMenu: Ur, onGroupHeaderRenamed: Wr, onCellEdited: H, onCellsEdited: U, onSearchResultsChanged: Gr, searchResults: W, onSearchValueChange: G, searchValue: Kr, onKeyDown: qr, onKeyUp: Xr, keybindings: Zr, editOnType: Qr = true, onRowAppended: $r, onColumnMoved: ei, validateCell: ti, highlightRegions: ni, rangeSelect: q = "rect", columnSelect: ri = "multi", rowSelect: J = "multi", rangeSelectionBlending: ii = "exclusive", columnSelectionBlending: di = "exclusive", rowSelectionBlending: pi = "exclusive", onDelete: mi, onDragStart: X, onMouseMove: hi, onPaste: _i, copyHeaders: vi = false, freezeColumns: yi = 0, cellActivationBehavior: xi = "second-click", rowSelectionMode: Si = "auto", onHeaderMenuClick: Ci, onHeaderIndicatorClick: Ti, getGroupDetails: Ei, rowGrouping: Oi, onSearchClose: ki, onItemHovered: Ai, onSelectionCleared: ji, showSearch: Mi, onVisibleRegionChanged: Ni, gridSelection: Pi, onGridSelectionChange: Fi, minColumnWidth: Ii = 50, maxColumnWidth: Li = 500, maxColumnAutoWidth: Ri, provideEditor: zi, trailingRowOptions: Bi, freezeTrailingRows: Vi = 0, allowedFillDirections: Hi = "orthogonal", scrollOffsetX: Ui, scrollOffsetY: Wi, verticalBorder: Gi, onDragOverCell: Ki, onDrop: qi, onColumnResize: Ji, onColumnResizeEnd: Yi, onColumnResizeStart: Xi, customRenderers: Qi, fillHandle: $i, experimental: ea, fixedShadowX: ta, fixedShadowY: na, headerIcons: ra, imageWindowLoader: ia, initialSize: aa, isDraggable: oa, onDragLeave: sa, onRowMoved: ca, overscrollX: la, overscrollY: ua, preventDiagonalScrolling: da, rightElement: fa, rightElementProps: pa, trapFocus: ma = false, smoothScrollX: ha, smoothScrollY: ga, scaleToRem: _a = false, rowHeight: va = 34, headerHeight: ya = 36, groupHeaderHeight: ba = ya, theme: xa, isOutsideClick: Sa, renderers: Ca, resizeIndicator: wa, scrollToActiveCell: Ta = true, drawFocusRing: Ea = true } = e, Da = Ea === "no-editor" ? i === void 0 : Ea, Oa = typeof e.rowMarkers == "string" ? void 0 : e.rowMarkers, ka = (Oa == null ? void 0 : Oa.kind) ?? e.rowMarkers ?? "none", Aa = (Oa == null ? void 0 : Oa.width) ?? e.rowMarkerWidth, ja = (Oa == null ? void 0 : Oa.startIndex) ?? e.rowMarkerStartIndex ?? 1, Ma = (Oa == null ? void 0 : Oa.theme) ?? e.rowMarkerTheme, Fa = Oa == null ? void 0 : Oa.headerTheme, Ra = Oa == null ? void 0 : Oa.headerAlwaysVisible, za = J !== "multi", Ba = (Oa == null ? void 0 : Oa.checkboxStyle) ?? "square", Va = Math.max(Ii, 20), Ha = Math.max(Li, Va), Wa = Math.max(Ri ?? Ha, Va), Ga = import_react.useMemo(() => typeof window > "u" ? {
7419
+ let [n, r] = import_react.useState(emptyGridSelection), [i, a] = import_react.useState(), o = import_react.useRef(null), s = import_react.useRef(null), [c, l] = import_react.useState(), u = import_react.useRef(), f = typeof window > "u" ? null : window, { imageEditorOverride: m, getRowThemeOverride: h, markdownDivCreateNode: g, width: y, height: x, columns: S, rows: C, getCellContent: E, onCellClicked: D, onCellActivated: O, onFillPattern: k, onFinishedEditing: A, coercePasteValue: j, drawHeader: M, drawCell: N, editorBloom: P, onHeaderClicked: F, onColumnProposeMove: I, rangeSelectionColumnSpanning: L = true, spanRangeBehavior: zr = "default", onGroupHeaderClicked: B, onCellContextMenu: V, className: Br, onHeaderContextMenu: H, getCellsForSelection: Vr, onGroupHeaderContextMenu: Hr, onGroupHeaderRenamed: Ur, onCellEdited: U, onCellsEdited: W, onSearchResultsChanged: Wr, searchResults: G, onSearchValueChange: K, searchValue: Gr, onKeyDown: Kr, onKeyUp: Yr, keybindings: Xr, editOnType: Zr = true, onRowAppended: Qr, onColumnMoved: $r, validateCell: ei, highlightRegions: ti, rangeSelect: J = "rect", columnSelect: ni = "multi", rowSelect: Y = "multi", rangeSelectionBlending: ri = "exclusive", columnSelectionBlending: ui = "exclusive", rowSelectionBlending: pi = "exclusive", onDelete: mi, onDragStart: X, onMouseMove: hi, onPaste: _i, copyHeaders: vi = false, freezeColumns: yi = 0, cellActivationBehavior: xi = "second-click", rowSelectionMode: Si = "auto", onHeaderMenuClick: Ci, onHeaderIndicatorClick: Ti, getGroupDetails: Ei, rowGrouping: Oi, onSearchClose: ki, onItemHovered: Ai, onSelectionCleared: ji, showSearch: Mi, onVisibleRegionChanged: Ni, gridSelection: Pi, onGridSelectionChange: Fi, minColumnWidth: Ii = 50, maxColumnWidth: Li = 500, maxColumnAutoWidth: Ri, provideEditor: zi, trailingRowOptions: Bi, freezeTrailingRows: Vi = 0, allowedFillDirections: Hi = "orthogonal", scrollOffsetX: Ui, scrollOffsetY: Wi, verticalBorder: Gi, onDragOverCell: Ki, onDrop: qi, onColumnResize: Ji, onColumnResizeEnd: Yi, onColumnResizeStart: Xi, customRenderers: Qi, fillHandle: $i, experimental: ea, fixedShadowX: ta, fixedShadowY: na, headerIcons: ra, imageWindowLoader: ia, initialSize: aa, isDraggable: oa, onDragLeave: sa, onRowMoved: ca, overscrollX: la, overscrollY: ua, preventDiagonalScrolling: da, rightElement: fa, rightElementProps: pa, trapFocus: ma = false, smoothScrollX: ha, smoothScrollY: ga, scaleToRem: _a = false, rowHeight: va = 34, headerHeight: ya = 36, groupHeaderHeight: ba = ya, theme: xa, isOutsideClick: Sa, renderers: Ca, resizeIndicator: wa, scrollToActiveCell: Ta = true, drawFocusRing: Ea = true } = e, Da = Ea === "no-editor" ? i === void 0 : Ea, Oa = typeof e.rowMarkers == "string" ? void 0 : e.rowMarkers, ka = (Oa == null ? void 0 : Oa.kind) ?? e.rowMarkers ?? "none", Aa = (Oa == null ? void 0 : Oa.width) ?? e.rowMarkerWidth, ja = (Oa == null ? void 0 : Oa.startIndex) ?? e.rowMarkerStartIndex ?? 1, Ma = (Oa == null ? void 0 : Oa.theme) ?? e.rowMarkerTheme, Fa = Oa == null ? void 0 : Oa.headerTheme, Ra = Oa == null ? void 0 : Oa.headerAlwaysVisible, za = Y !== "multi", Ba = (Oa == null ? void 0 : Oa.checkboxStyle) ?? "square", Va = Math.max(Ii, 20), Ha = Math.max(Li, Va), Wa = Math.max(Ri ?? Ha, Va), Ga = import_react.useMemo(() => typeof window > "u" ? {
7420
7420
  fontSize: "16px"
7421
7421
  } : window.getComputedStyle(document.documentElement), []), { rows: Z, rowNumberMapper: Ka, rowHeight: qa, getRowThemeOverride: Ja } = useRowGroupingInner(Oi, C, va, h), { rowHeight: Ya, headerHeight: Xa, groupHeaderHeight: Za, theme: Qa, overscrollX: $a, overscrollY: eo } = useRemAdjuster({
7422
7422
  groupHeaderHeight: ba,
@@ -7429,7 +7429,7 @@ let __tla = (async () => {
7429
7429
  rowHeight: qa,
7430
7430
  scaleToRem: _a,
7431
7431
  theme: xa
7432
- }), to = useKeybindingsWithDefaults(Zr), no = Aa ?? (C > 1e4 ? 48 : C > 1e3 ? 44 : C > 100 ? 36 : 32), ro = ka !== "none", Q = ro ? 1 : 0, io = $r !== void 0, ao = (Bi == null ? void 0 : Bi.sticky) === true, [oo, so] = import_react.useState(false), co = Mi ?? oo, lo = import_react.useCallback(() => {
7432
+ }), to = useKeybindingsWithDefaults(Xr), no = Aa ?? (C > 1e4 ? 48 : C > 1e3 ? 44 : C > 100 ? 36 : 32), ro = ka !== "none", Q = ro ? 1 : 0, io = Qr !== void 0, ao = (Bi == null ? void 0 : Bi.sticky) === true, [oo, so] = import_react.useState(false), co = Mi ?? oo, lo = import_react.useCallback(() => {
7433
7433
  ki === void 0 ? so(false) : ki();
7434
7434
  }, [
7435
7435
  ki
@@ -7438,16 +7438,16 @@ let __tla = (async () => {
7438
7438
  Q
7439
7439
  ]) ?? n, uo = import_react.useRef();
7440
7440
  uo.current === void 0 && (uo.current = new AbortController()), import_react.useEffect(() => () => uo == null ? void 0 : uo.current.abort(), []);
7441
- let [fo, po] = useCellsForSelection(Hr, E, Q, uo.current, Z), mo = import_react.useCallback((e2, t2, n2) => {
7442
- if (ti === void 0) return true;
7441
+ let [fo, po] = useCellsForSelection(Vr, E, Q, uo.current, Z), mo = import_react.useCallback((e2, t2, n2) => {
7442
+ if (ei === void 0) return true;
7443
7443
  let r2 = [
7444
7444
  e2[0] - Q,
7445
7445
  e2[1]
7446
7446
  ];
7447
- return ti == null ? void 0 : ti(r2, t2, n2);
7447
+ return ei == null ? void 0 : ei(r2, t2, n2);
7448
7448
  }, [
7449
7449
  Q,
7450
- ti
7450
+ ei
7451
7451
  ]), ho = import_react.useRef(Pi), go = import_react.useCallback((e2, t2) => {
7452
7452
  t2 && (e2 = expandSelection(e2, fo, Q, zr, uo.current)), Fi === void 0 ? r(e2) : (ho.current = shiftSelection(e2, -Q), Fi(ho.current));
7453
7453
  }, [
@@ -7494,7 +7494,7 @@ let __tla = (async () => {
7494
7494
  }, [
7495
7495
  mi,
7496
7496
  Q
7497
- ]), [Co, wo, To] = useSelectionBehavior($, go, ii, di, pi, q, L), Eo = import_react.useMemo(() => mergeAndRealizeTheme(getDataEditorTheme(), Qa), [
7497
+ ]), [Co, wo, To] = useSelectionBehavior($, go, ri, ui, pi, J, L), Eo = import_react.useMemo(() => mergeAndRealizeTheme(getDataEditorTheme(), Qa), [
7498
7498
  Qa
7499
7499
  ]), [Do, Oo] = import_react.useState([
7500
7500
  0,
@@ -7559,17 +7559,17 @@ let __tla = (async () => {
7559
7559
  e3.location[0] - Q,
7560
7560
  e3.location[1]
7561
7561
  ]
7562
- })), n2 = U == null ? void 0 : U(t2);
7563
- if (n2 !== true) for (let e3 of t2) H == null ? void 0 : H(e3.location, e3.value);
7562
+ })), n2 = W == null ? void 0 : W(t2);
7563
+ if (n2 !== true) for (let e3 of t2) U == null ? void 0 : U(e3.location, e3.value);
7564
7564
  return n2;
7565
7565
  }, [
7566
- H,
7567
7566
  U,
7567
+ W,
7568
7568
  Q
7569
7569
  ]), [Yo, Xo] = import_react.useState(), Zo = $.current !== void 0 && $.current.range.width * $.current.range.height > 1 ? $.current.range : void 0, Qo = Da ? (_a2 = $.current) == null ? void 0 : _a2.cell : void 0, $o = Qo == null ? void 0 : Qo[0], es = Qo == null ? void 0 : Qo[1], ts = import_react.useMemo(() => {
7570
- if ((ni === void 0 || ni.length === 0) && (Zo ?? $o ?? es ?? Yo) === void 0) return;
7570
+ if ((ti === void 0 || ti.length === 0) && (Zo ?? $o ?? es ?? Yo) === void 0) return;
7571
7571
  let e2 = [];
7572
- if (ni !== void 0) for (let t2 of ni) {
7572
+ if (ti !== void 0) for (let t2 of ti) {
7573
7573
  let n2 = Lo.length - t2.range.x - Q;
7574
7574
  n2 > 0 && e2.push({
7575
7575
  color: t2.color,
@@ -7604,7 +7604,7 @@ let __tla = (async () => {
7604
7604
  Zo,
7605
7605
  $o,
7606
7606
  es,
7607
- ni,
7607
+ ti,
7608
7608
  Lo.length,
7609
7609
  Eo.accentColor,
7610
7610
  Q
@@ -7681,7 +7681,7 @@ let __tla = (async () => {
7681
7681
  let t2 = (Ei == null ? void 0 : Ei(e2)) ?? {
7682
7682
  name: e2
7683
7683
  };
7684
- return Wr !== void 0 && e2 !== "" && (t2 = {
7684
+ return Ur !== void 0 && e2 !== "" && (t2 = {
7685
7685
  icon: t2.icon,
7686
7686
  name: t2.name,
7687
7687
  overrideTheme: t2.overrideTheme,
@@ -7699,7 +7699,7 @@ let __tla = (async () => {
7699
7699
  }), t2;
7700
7700
  }, [
7701
7701
  Ei,
7702
- Wr
7702
+ Ur
7703
7703
  ]), as = import_react.useCallback((e2) => {
7704
7704
  var _a3;
7705
7705
  let [t2, n2] = e2.cell, r2 = Lo[t2], i2 = (r2 == null ? void 0 : r2.group) === void 0 ? void 0 : (_a3 = is(r2.group)) == null ? void 0 : _a3.overrideTheme, o2 = r2 == null ? void 0 : r2.themeOverride, s2 = Ja == null ? void 0 : Ja(n2);
@@ -7865,7 +7865,7 @@ let __tla = (async () => {
7865
7865
  let fs = import_react.useCallback(async (e2, t2 = true) => {
7866
7866
  var _a3, _b2;
7867
7867
  if (((_b2 = (_a3 = Lo[e2]) == null ? void 0 : _a3.trailingRowOptions) == null ? void 0 : _b2.disabled) === true) return;
7868
- let n2 = $r == null ? void 0 : $r(), r2, i2 = true;
7868
+ let n2 = Qr == null ? void 0 : Qr(), r2, i2 = true;
7869
7869
  n2 !== void 0 && (r2 = await n2, r2 === "top" && (i2 = false), typeof r2 == "number" && (i2 = false));
7870
7870
  let a2 = 0, o2 = () => {
7871
7871
  if (ds.current <= Z) {
@@ -7896,7 +7896,7 @@ let __tla = (async () => {
7896
7896
  o2();
7897
7897
  }, [
7898
7898
  Lo,
7899
- $r,
7899
+ Qr,
7900
7900
  Q,
7901
7901
  Z,
7902
7902
  Co
@@ -7923,13 +7923,13 @@ let __tla = (async () => {
7923
7923
  Eo
7924
7924
  ]), { mapper: _s } = useRowGrouping(Oi, C), vs = Oi == null ? void 0 : Oi.navigationBehavior, ys = import_react.useCallback((e2) => {
7925
7925
  var _a3, _b2, _c3;
7926
- let t2 = browserIsOSX.value ? e2.metaKey : e2.ctrlKey, n2 = t2 && J === "multi", r2 = t2 && ri === "multi", [i2, o2] = e2.location, s2 = $.columns, c2 = $.rows, [l2, u2] = ((_a3 = $.current) == null ? void 0 : _a3.cell) ?? [];
7926
+ let t2 = browserIsOSX.value ? e2.metaKey : e2.ctrlKey, n2 = t2 && Y === "multi", r2 = t2 && ni === "multi", [i2, o2] = e2.location, s2 = $.columns, c2 = $.rows, [l2, u2] = ((_a3 = $.current) == null ? void 0 : _a3.cell) ?? [];
7927
7927
  if (e2.kind === "cell") {
7928
7928
  if (hs.current = void 0, xs.current = [
7929
7929
  i2,
7930
7930
  o2
7931
7931
  ], i2 === 0 && ro) {
7932
- if (io === true && o2 === Z || ka === "number" || J === "none") return;
7932
+ if (io === true && o2 === Z || ka === "number" || Y === "none") return;
7933
7933
  let r3 = rs(e2.location);
7934
7934
  if (r3.kind !== InnerGridCellKind.Marker) return;
7935
7935
  if (ca !== void 0) {
@@ -7948,13 +7948,13 @@ let __tla = (async () => {
7948
7948
  }
7949
7949
  a(void 0), Ko();
7950
7950
  let i3 = c2.hasIndex(o2), s3 = ms.current;
7951
- if (J === "multi" && (e2.shiftKey || e2.isLongTouch === true) && s3 !== void 0 && c2.hasIndex(s3)) {
7951
+ if (Y === "multi" && (e2.shiftKey || e2.isLongTouch === true) && s3 !== void 0 && c2.hasIndex(s3)) {
7952
7952
  let e3 = [
7953
7953
  Math.min(s3, o2),
7954
7954
  Math.max(s3, o2) + 1
7955
7955
  ];
7956
7956
  n2 || Si === "multi" ? wo(void 0, e3, true) : wo(CompactSelection.fromSingleSelection(e3), void 0, n2);
7957
- } else J === "multi" && (n2 || e2.isTouch || Si === "multi") ? i3 ? wo(c2.remove(o2), void 0, true) : (wo(void 0, o2, true), ms.current = o2) : i3 && c2.length === 1 ? wo(CompactSelection.empty(), void 0, t2) : (wo(CompactSelection.fromSingleSelection(o2), void 0, t2), ms.current = o2);
7957
+ } else Y === "multi" && (n2 || e2.isTouch || Si === "multi") ? i3 ? wo(c2.remove(o2), void 0, true) : (wo(void 0, o2, true), ms.current = o2) : i3 && c2.length === 1 ? wo(CompactSelection.empty(), void 0, t2) : (wo(CompactSelection.fromSingleSelection(o2), void 0, t2), ms.current = o2);
7958
7958
  } else if (i2 >= Q && io && o2 === Z) fs(ps(i2) ?? i2);
7959
7959
  else if (l2 !== i2 || u2 !== o2) {
7960
7960
  let n3 = rs(e2.location), r3 = Ao(n3);
@@ -8000,19 +8000,19 @@ let __tla = (async () => {
8000
8000
  } else if (e2.kind === "header") if (xs.current = [
8001
8001
  i2,
8002
8002
  o2
8003
- ], a(void 0), ro && i2 === 0) ms.current = void 0, hs.current = void 0, J === "multi" && (c2.length === Z ? wo(CompactSelection.empty(), void 0, t2) : wo(CompactSelection.fromSingleSelection([
8003
+ ], a(void 0), ro && i2 === 0) ms.current = void 0, hs.current = void 0, Y === "multi" && (c2.length === Z ? wo(CompactSelection.empty(), void 0, t2) : wo(CompactSelection.fromSingleSelection([
8004
8004
  0,
8005
8005
  Z
8006
8006
  ]), void 0, t2), Ko());
8007
8007
  else {
8008
8008
  let n3 = hs.current;
8009
- if (ri === "multi" && (e2.shiftKey || e2.isLongTouch === true) && n3 !== void 0 && s2.hasIndex(n3)) {
8009
+ if (ni === "multi" && (e2.shiftKey || e2.isLongTouch === true) && n3 !== void 0 && s2.hasIndex(n3)) {
8010
8010
  let e3 = [
8011
8011
  Math.min(n3, i2),
8012
8012
  Math.max(n3, i2) + 1
8013
8013
  ];
8014
8014
  r2 ? To(void 0, e3, t2) : To(CompactSelection.fromSingleSelection(e3), void 0, t2);
8015
- } else r2 ? (s2.hasIndex(i2) ? To(s2.remove(i2), void 0, t2) : To(void 0, i2, t2), hs.current = i2) : ri !== "none" && (To(CompactSelection.fromSingleSelection(i2), void 0, t2), hs.current = i2);
8015
+ } else r2 ? (s2.hasIndex(i2) ? To(s2.remove(i2), void 0, t2) : To(void 0, i2, t2), hs.current = i2) : ni !== "none" && (To(CompactSelection.fromSingleSelection(i2), void 0, t2), hs.current = i2);
8016
8016
  ms.current = void 0, Ko();
8017
8017
  }
8018
8018
  else e2.kind === "group-header" ? xs.current = [
@@ -8020,8 +8020,8 @@ let __tla = (async () => {
8020
8020
  o2
8021
8021
  ] : e2.kind === "out-of-bounds" && !e2.isMaybeScrollbar && (go(emptyGridSelection, false), a(void 0), Ko(), ji == null ? void 0 : ji(), ms.current = void 0, hs.current = void 0);
8022
8022
  }, [
8023
- J,
8024
- ri,
8023
+ Y,
8024
+ ni,
8025
8025
  $,
8026
8026
  ro,
8027
8027
  Q,
@@ -8064,7 +8064,7 @@ let __tla = (async () => {
8064
8064
  $,
8065
8065
  ys
8066
8066
  ]), [Ts, Es] = import_react.useState(), Ds = import_react.useCallback((e2) => {
8067
- if (e2.kind !== "group-header" || ri !== "multi") return;
8067
+ if (e2.kind !== "group-header" || ni !== "multi") return;
8068
8068
  let t2 = browserIsOSX.value ? e2.metaKey : e2.ctrlKey, [n2] = e2.location, r2 = $.columns;
8069
8069
  if (n2 < Q) return;
8070
8070
  let i2 = Lo[n2], a2 = n2, o2 = n2;
@@ -8086,7 +8086,7 @@ let __tla = (async () => {
8086
8086
  o2 + 1
8087
8087
  ]), void 0, t2);
8088
8088
  }, [
8089
- ri,
8089
+ ni,
8090
8090
  Ko,
8091
8091
  $.columns,
8092
8092
  Lo,
@@ -8269,7 +8269,7 @@ let __tla = (async () => {
8269
8269
  if (t3.x !== n3.x || t3.y !== n3.y) return;
8270
8270
  if (e2.isLongTouch === true) {
8271
8271
  if (e2.kind === "cell" && itemsAreEqual((_b2 = $.current) == null ? void 0 : _b2.cell, e2.location)) {
8272
- Br == null ? void 0 : Br([
8272
+ V == null ? void 0 : V([
8273
8273
  f2,
8274
8274
  e2.location[1]
8275
8275
  ], {
@@ -8278,14 +8278,14 @@ let __tla = (async () => {
8278
8278
  });
8279
8279
  return;
8280
8280
  } else if (e2.kind === "header" && $.columns.hasIndex(r2)) {
8281
- V == null ? void 0 : V(f2, {
8281
+ H == null ? void 0 : H(f2, {
8282
8282
  ...e2,
8283
8283
  preventDefault: s2
8284
8284
  });
8285
8285
  return;
8286
8286
  } else if (e2.kind === "group-header") {
8287
8287
  if (f2 < 0) return;
8288
- Ur == null ? void 0 : Ur(f2, {
8288
+ Hr == null ? void 0 : Hr(f2, {
8289
8289
  ...e2,
8290
8290
  preventDefault: s2
8291
8291
  });
@@ -8331,9 +8331,9 @@ let __tla = (async () => {
8331
8331
  Jo,
8332
8332
  O,
8333
8333
  os,
8334
- Br,
8335
8334
  V,
8336
- Ur,
8335
+ H,
8336
+ Hr,
8337
8337
  ys,
8338
8338
  B,
8339
8339
  F,
@@ -8419,11 +8419,11 @@ let __tla = (async () => {
8419
8419
  Vi,
8420
8420
  Bo,
8421
8421
  Ni
8422
- ]), Vs = whenDefined(ei, import_react.useCallback((e2, t2) => {
8423
- ei == null ? void 0 : ei(e2 - Q, t2 - Q), ri !== "none" && To(CompactSelection.fromSingleSelection(t2), void 0, true);
8422
+ ]), Vs = whenDefined($r, import_react.useCallback((e2, t2) => {
8423
+ $r == null ? void 0 : $r(e2 - Q, t2 - Q), ni !== "none" && To(CompactSelection.fromSingleSelection(t2), void 0, true);
8424
8424
  }, [
8425
- ri,
8426
- ei,
8425
+ ni,
8426
+ $r,
8427
8427
  Q,
8428
8428
  To
8429
8429
  ])), Hs = import_react.useRef(false), Us = import_react.useCallback((e2) => {
@@ -8461,14 +8461,14 @@ let __tla = (async () => {
8461
8461
  ]), qs = import_react.useRef(), Js = import_react.useCallback((e2) => {
8462
8462
  var _a3, _b2, _c3;
8463
8463
  if (!mouseEventArgsAreEqual(e2, qs.current) && (qs.current = e2, !(((_a3 = Cs == null ? void 0 : Cs.current) == null ? void 0 : _a3.button) !== void 0 && Cs.current.button >= 1))) {
8464
- if (e2.buttons !== 0 && c !== void 0 && ((_b2 = Cs.current) == null ? void 0 : _b2.location[0]) === 0 && e2.location[0] === 0 && Q === 1 && J === "multi" && c.previousSelection && !c.previousSelection.rows.hasIndex(Cs.current.location[1]) && $.rows.hasIndex(Cs.current.location[1])) {
8464
+ if (e2.buttons !== 0 && c !== void 0 && ((_b2 = Cs.current) == null ? void 0 : _b2.location[0]) === 0 && e2.location[0] === 0 && Q === 1 && Y === "multi" && c.previousSelection && !c.previousSelection.rows.hasIndex(Cs.current.location[1]) && $.rows.hasIndex(Cs.current.location[1])) {
8465
8465
  let t2 = Math.min(Cs.current.location[1], e2.location[1]), n2 = Math.max(Cs.current.location[1], e2.location[1]) + 1;
8466
8466
  wo(CompactSelection.fromSingleSelection([
8467
8467
  t2,
8468
8468
  n2
8469
8469
  ]), void 0, false);
8470
8470
  }
8471
- if (e2.buttons !== 0 && c !== void 0 && $.current !== void 0 && !Hs.current && !bs.current && (q === "rect" || q === "multi-rect")) {
8471
+ if (e2.buttons !== 0 && c !== void 0 && $.current !== void 0 && !Hs.current && !bs.current && (J === "rect" || J === "multi-rect")) {
8472
8472
  let [t2, n2] = $.current.cell, [r2, i2] = e2.location;
8473
8473
  if (i2 < 0 && (i2 = Ro.current.y), c.fillHandle === true && ((_c3 = c.previousSelection) == null ? void 0 : _c3.current) !== void 0) {
8474
8474
  let e3 = c.previousSelection.current.range;
@@ -8503,9 +8503,9 @@ let __tla = (async () => {
8503
8503
  }, [
8504
8504
  c,
8505
8505
  Q,
8506
- J,
8506
+ Y,
8507
8507
  $,
8508
- q,
8508
+ J,
8509
8509
  Ai,
8510
8510
  wo,
8511
8511
  io,
@@ -8769,7 +8769,7 @@ let __tla = (async () => {
8769
8769
  if (n2.didMatch) return t2(), true;
8770
8770
  if ($.current === void 0) return false;
8771
8771
  let [l2, u2] = $.current.cell, [, f2] = $.current.cell, m2 = false, h2 = false;
8772
- if (isHotkey(c2.scrollToSelectedCell, e2, n2) ? uc.current(l2 - Q, u2) : ri !== "none" && isHotkey(c2.selectColumn, e2, n2) ? i2.hasIndex(l2) ? To(i2.remove(l2), void 0, true) : ri === "single" ? To(CompactSelection.fromSingleSelection(l2), void 0, true) : To(void 0, l2, true) : J !== "none" && isHotkey(c2.selectRow, e2, n2) ? s2.hasIndex(u2) ? wo(s2.remove(u2), void 0, true) : J === "single" ? wo(CompactSelection.fromSingleSelection(u2), void 0, true) : wo(void 0, u2, true) : !tc && r2 !== void 0 && isHotkey(c2.activateCell, e2, n2) ? u2 === Z && io ? window.setTimeout(() => {
8772
+ if (isHotkey(c2.scrollToSelectedCell, e2, n2) ? uc.current(l2 - Q, u2) : ni !== "none" && isHotkey(c2.selectColumn, e2, n2) ? i2.hasIndex(l2) ? To(i2.remove(l2), void 0, true) : ni === "single" ? To(CompactSelection.fromSingleSelection(l2), void 0, true) : To(void 0, l2, true) : Y !== "none" && isHotkey(c2.selectRow, e2, n2) ? s2.hasIndex(u2) ? wo(s2.remove(u2), void 0, true) : Y === "single" ? wo(CompactSelection.fromSingleSelection(u2), void 0, true) : wo(void 0, u2, true) : !tc && r2 !== void 0 && isHotkey(c2.activateCell, e2, n2) ? u2 === Z && io ? window.setTimeout(() => {
8773
8773
  fs(ps(l2) ?? l2);
8774
8774
  }, 0) : (O == null ? void 0 : O([
8775
8775
  l2 - Q,
@@ -8780,7 +8780,7 @@ let __tla = (async () => {
8780
8780
  ])) : isHotkey(c2.selectToLastCell, e2, n2) ? (a(void 0), Ys([
8781
8781
  2,
8782
8782
  2
8783
- ])) : tc ? (isHotkey(c2.closeOverlay, e2, n2) && a(void 0), isHotkey(c2.acceptOverlayDown, e2, n2) && (a(void 0), u2++), isHotkey(c2.acceptOverlayUp, e2, n2) && (a(void 0), u2--), isHotkey(c2.acceptOverlayLeft, e2, n2) && (a(void 0), l2--), isHotkey(c2.acceptOverlayRight, e2, n2) && (a(void 0), l2++)) : (isHotkey(c2.goDownCell, e2, n2) ? u2 += 1 : isHotkey(c2.goUpCell, e2, n2) ? --u2 : isHotkey(c2.goRightCell, e2, n2) ? l2 += 1 : isHotkey(c2.goLeftCell, e2, n2) ? --l2 : isHotkey(c2.goDownCellRetainSelection, e2, n2) ? (u2 += 1, m2 = true) : isHotkey(c2.goUpCellRetainSelection, e2, n2) ? (--u2, m2 = true) : isHotkey(c2.goRightCellRetainSelection, e2, n2) ? (l2 += 1, m2 = true) : isHotkey(c2.goLeftCellRetainSelection, e2, n2) ? (--l2, m2 = true) : isHotkey(c2.goToLastRow, e2, n2) ? u2 = Z - 1 : isHotkey(c2.goToFirstRow, e2, n2) ? u2 = -(2 ** 53 - 1) : isHotkey(c2.goToLastColumn, e2, n2) ? l2 = 2 ** 53 - 1 : isHotkey(c2.goToFirstColumn, e2, n2) ? l2 = -(2 ** 53 - 1) : (q === "rect" || q === "multi-rect") && (isHotkey(c2.selectGrowDown, e2, n2) ? Ys([
8783
+ ])) : tc ? (isHotkey(c2.closeOverlay, e2, n2) && a(void 0), isHotkey(c2.acceptOverlayDown, e2, n2) && (a(void 0), u2++), isHotkey(c2.acceptOverlayUp, e2, n2) && (a(void 0), u2--), isHotkey(c2.acceptOverlayLeft, e2, n2) && (a(void 0), l2--), isHotkey(c2.acceptOverlayRight, e2, n2) && (a(void 0), l2++)) : (isHotkey(c2.goDownCell, e2, n2) ? u2 += 1 : isHotkey(c2.goUpCell, e2, n2) ? --u2 : isHotkey(c2.goRightCell, e2, n2) ? l2 += 1 : isHotkey(c2.goLeftCell, e2, n2) ? --l2 : isHotkey(c2.goDownCellRetainSelection, e2, n2) ? (u2 += 1, m2 = true) : isHotkey(c2.goUpCellRetainSelection, e2, n2) ? (--u2, m2 = true) : isHotkey(c2.goRightCellRetainSelection, e2, n2) ? (l2 += 1, m2 = true) : isHotkey(c2.goLeftCellRetainSelection, e2, n2) ? (--l2, m2 = true) : isHotkey(c2.goToLastRow, e2, n2) ? u2 = Z - 1 : isHotkey(c2.goToFirstRow, e2, n2) ? u2 = -(2 ** 53 - 1) : isHotkey(c2.goToLastColumn, e2, n2) ? l2 = 2 ** 53 - 1 : isHotkey(c2.goToFirstColumn, e2, n2) ? l2 = -(2 ** 53 - 1) : (J === "rect" || J === "multi-rect") && (isHotkey(c2.selectGrowDown, e2, n2) ? Ys([
8784
8784
  0,
8785
8785
  1
8786
8786
  ]) : isHotkey(c2.selectGrowUp, e2, n2) ? Ys([
@@ -8821,9 +8821,9 @@ let __tla = (async () => {
8821
8821
  tc,
8822
8822
  $,
8823
8823
  to,
8824
- ri,
8824
+ ni,
8825
+ Y,
8825
8826
  J,
8826
- q,
8827
8827
  Q,
8828
8828
  _s,
8829
8829
  Z,
@@ -8846,14 +8846,14 @@ let __tla = (async () => {
8846
8846
  Ys
8847
8847
  ]), rc = import_react.useCallback((e2) => {
8848
8848
  let t2 = false;
8849
- if (qr !== void 0 && qr({
8849
+ if (Kr !== void 0 && Kr({
8850
8850
  ...e2,
8851
8851
  cancel: () => {
8852
8852
  t2 = true;
8853
8853
  }
8854
8854
  }), t2 || nc(e2) || $.current === void 0) return;
8855
8855
  let [n2, r2] = $.current.cell, i2 = Ro.current;
8856
- if (Qr && !e2.metaKey && !e2.ctrlKey && $.current !== void 0 && e2.key.length === 1 && /[ -~]/g.test(e2.key) && e2.bounds !== void 0 && isReadWriteCell(E([
8856
+ if (Zr && !e2.metaKey && !e2.ctrlKey && $.current !== void 0 && e2.key.length === 1 && /[ -~]/g.test(e2.key) && e2.bounds !== void 0 && isReadWriteCell(E([
8857
8857
  n2 - Q,
8858
8858
  Math.max(0, Math.min(r2, Z - 1))
8859
8859
  ]))) {
@@ -8861,8 +8861,8 @@ let __tla = (async () => {
8861
8861
  os(e2.bounds, true, e2.key), e2.stopPropagation(), e2.preventDefault();
8862
8862
  }
8863
8863
  }, [
8864
- Qr,
8865
- qr,
8864
+ Zr,
8865
+ Kr,
8866
8866
  nc,
8867
8867
  $,
8868
8868
  E,
@@ -8872,19 +8872,19 @@ let __tla = (async () => {
8872
8872
  os
8873
8873
  ]), ic = import_react.useCallback((e2, t2) => {
8874
8874
  let n2 = e2.location[0] - Q;
8875
- if (e2.kind === "header" && (V == null ? void 0 : V(n2, {
8875
+ if (e2.kind === "header" && (H == null ? void 0 : H(n2, {
8876
8876
  ...e2,
8877
8877
  preventDefault: t2
8878
8878
  })), e2.kind === "group-header") {
8879
8879
  if (n2 < 0) return;
8880
- Ur == null ? void 0 : Ur(n2, {
8880
+ Hr == null ? void 0 : Hr(n2, {
8881
8881
  ...e2,
8882
8882
  preventDefault: t2
8883
8883
  });
8884
8884
  }
8885
8885
  if (e2.kind === "cell") {
8886
8886
  let [r2, i2] = e2.location;
8887
- Br == null ? void 0 : Br([
8887
+ V == null ? void 0 : V([
8888
8888
  n2,
8889
8889
  i2
8890
8890
  ], {
@@ -8894,9 +8894,9 @@ let __tla = (async () => {
8894
8894
  }
8895
8895
  }, [
8896
8896
  $,
8897
- Br,
8898
- Ur,
8899
8897
  V,
8898
+ Hr,
8899
+ H,
8900
8900
  Q,
8901
8901
  Zs
8902
8902
  ]), ac = import_react.useCallback(async (e2) => {
@@ -9095,11 +9095,11 @@ let __tla = (async () => {
9095
9095
  So
9096
9096
  ]), f, false, false);
9097
9097
  let sc = import_react.useCallback((e2, t2) => {
9098
- if (Gr !== void 0) {
9098
+ if (Wr !== void 0) {
9099
9099
  Q !== 0 && (e2 = e2.map((e3) => [
9100
9100
  e3[0] - Q,
9101
9101
  e3[1]
9102
- ])), Gr(e2, t2);
9102
+ ])), Wr(e2, t2);
9103
9103
  return;
9104
9104
  }
9105
9105
  if (e2.length === 0 || t2 === -1) return;
@@ -9109,7 +9109,7 @@ let __tla = (async () => {
9109
9109
  r2
9110
9110
  ], Zs(n2, r2, false, false));
9111
9111
  }, [
9112
- Gr,
9112
+ Wr,
9113
9113
  Q,
9114
9114
  Zs
9115
9115
  ]), [cc, lc] = ((_c2 = Pi == null ? void 0 : Pi.current) == null ? void 0 : _c2.cell) ?? [], uc = import_react.useRef(cs);
@@ -9143,11 +9143,11 @@ let __tla = (async () => {
9143
9143
  canvasBounds: n2,
9144
9144
  onClose: () => Es(void 0),
9145
9145
  onFinish: (e3) => {
9146
- Es(void 0), Wr == null ? void 0 : Wr(t2, e3);
9146
+ Es(void 0), Ur == null ? void 0 : Ur(t2, e3);
9147
9147
  }
9148
9148
  });
9149
9149
  }, [
9150
- Wr,
9150
+ Ur,
9151
9151
  Ts
9152
9152
  ]), hc = Math.min(Lo.length, yi + (ro ? 1 : 0));
9153
9153
  import_react.useImperativeHandle(t, () => ({
@@ -9255,7 +9255,7 @@ let __tla = (async () => {
9255
9255
  let [gc, _c] = zs ?? [], vc = import_react.useCallback((e2) => {
9256
9256
  let [t2, n2] = e2;
9257
9257
  if (n2 === -1) {
9258
- ri !== "none" && (To(CompactSelection.fromSingleSelection(t2), void 0, false), Ko());
9258
+ ni !== "none" && (To(CompactSelection.fromSingleSelection(t2), void 0, false), Ko());
9259
9259
  return;
9260
9260
  }
9261
9261
  gc === t2 && _c === n2 || (Co({
@@ -9268,7 +9268,7 @@ let __tla = (async () => {
9268
9268
  }
9269
9269
  }, true, false, "keyboard-nav"), cs(t2, n2));
9270
9270
  }, [
9271
- ri,
9271
+ ni,
9272
9272
  Ko,
9273
9273
  cs,
9274
9274
  gc,
@@ -9326,7 +9326,7 @@ let __tla = (async () => {
9326
9326
  value: Eo
9327
9327
  }, import_react.createElement(DataEditorContainer, {
9328
9328
  style: Ec,
9329
- className: Vr,
9329
+ className: Br,
9330
9330
  inWidth: y ?? wc,
9331
9331
  inHeight: x ?? Tc
9332
9332
  }, import_react.createElement(data_grid_search_default, {
@@ -9349,7 +9349,7 @@ let __tla = (async () => {
9349
9349
  rightElementProps: pa,
9350
9350
  smoothScrollX: ha,
9351
9351
  smoothScrollY: ga,
9352
- className: Vr,
9352
+ className: Br,
9353
9353
  enableGroups: No,
9354
9354
  onCanvasFocused: Sc,
9355
9355
  onCanvasBlur: Cc,
@@ -9395,7 +9395,7 @@ let __tla = (async () => {
9395
9395
  isFilling: (c == null ? void 0 : c.fillHandle) === true,
9396
9396
  onMouseMove: Is,
9397
9397
  onKeyDown: rc,
9398
- onKeyUp: Xr,
9398
+ onKeyUp: Yr,
9399
9399
  onMouseDown: ws,
9400
9400
  onMouseUp: Fs,
9401
9401
  onDragOverCell: Ki,
@@ -9404,9 +9404,9 @@ let __tla = (async () => {
9404
9404
  onVisibleRegionChanged: Bs,
9405
9405
  clientSize: Do,
9406
9406
  rowHeight: Ya,
9407
- searchResults: W,
9408
- searchValue: Kr,
9409
- onSearchValueChange: G,
9407
+ searchResults: G,
9408
+ searchValue: Gr,
9409
+ onSearchValueChange: K,
9410
9410
  rows: qo,
9411
9411
  scrollRef: Ho,
9412
9412
  selection: $,
@@ -9873,7 +9873,7 @@ let __tla = (async () => {
9873
9873
  height: l - 1
9874
9874
  };
9875
9875
  }
9876
- var NumberOverlayEditor = import_react.lazy(async () => await import("./number-overlay-editor-DxLoVuuE.js"));
9876
+ var NumberOverlayEditor = import_react.lazy(async () => await import("./number-overlay-editor-B02-t7Ar.js"));
9877
9877
  const numberCellRenderer = {
9878
9878
  getAccessibilityString: (e) => {
9879
9879
  var _a;
@@ -10287,56 +10287,56 @@ let __tla = (async () => {
10287
10287
  return "columnIdx" in e && "type" in e;
10288
10288
  }
10289
10289
  function pasteCells(e) {
10290
- let { selection: t, data: n, setData: r, onAddEdits: i, columns: a, editableColumns: o } = e;
10290
+ let { selection: t, data: r, setData: i, onAddEdits: a, columns: o, editableColumns: s } = e;
10291
10291
  if (!t.current) return;
10292
- let { range: s } = t.current, { x: c, y: l } = s;
10292
+ let { range: c } = t.current, { x: l, y: u } = c;
10293
10293
  navigator.clipboard.readText().then((e2) => {
10294
10294
  if (!e2.trim()) return;
10295
- let t2 = e2.split("\n").filter((e3) => e3.trim()), s2 = [];
10295
+ let t2 = e2.split("\n").filter((e3) => e3.trim()), n = [];
10296
10296
  for (let e3 of t2) {
10297
10297
  let t3 = e3.split(" ");
10298
- s2.push(t3);
10298
+ n.push(t3);
10299
10299
  }
10300
- if (s2.length === 0) return;
10301
- let u = [];
10302
- for (let [e3, t3] of s2.entries()) {
10300
+ if (n.length === 0) return;
10301
+ let c2 = [];
10302
+ for (let [e3, t3] of n.entries()) {
10303
10303
  if (!t3) continue;
10304
- let r2 = l + e3;
10305
- if (r2 >= n.length) break;
10306
- for (let [e4, n2] of t3.entries()) {
10307
- if (n2 === void 0) continue;
10308
- let t4 = c + e4;
10309
- if (!a || t4 >= a.length) break;
10310
- let i2 = a[t4], s3 = i2.dataType;
10311
- if (!(o === "all" || o.includes(i2.title))) continue;
10312
- let l2 = n2;
10313
- switch (s3) {
10304
+ let n2 = u + e3;
10305
+ if (n2 >= r.length) break;
10306
+ for (let [e4, r2] of t3.entries()) {
10307
+ if (r2 === void 0) continue;
10308
+ let t4 = l + e4;
10309
+ if (!o || t4 >= o.length) break;
10310
+ let i2 = o[t4], a2 = i2.dataType;
10311
+ if (!(s === "all" || s.includes(i2.title))) continue;
10312
+ let u2 = r2;
10313
+ switch (a2) {
10314
10314
  case "integer":
10315
10315
  case "number": {
10316
- let e5 = Number(n2);
10316
+ let e5 = Number(r2);
10317
10317
  if (Number.isNaN(e5)) continue;
10318
- l2 = e5;
10318
+ u2 = e5;
10319
10319
  break;
10320
10320
  }
10321
10321
  case "boolean": {
10322
- let e5 = n2.toLowerCase();
10323
- l2 = e5 === "true" || e5 === "1";
10322
+ let e5 = r2.toLowerCase();
10323
+ u2 = e5 === "true" || e5 === "1";
10324
10324
  break;
10325
10325
  }
10326
10326
  }
10327
- let f = a[t4].title;
10328
- u.push({
10329
- rowIdx: r2,
10327
+ let f = o[t4].title;
10328
+ c2.push({
10329
+ rowIdx: n2,
10330
10330
  columnId: f,
10331
- value: l2
10331
+ value: u2
10332
10332
  });
10333
10333
  }
10334
10334
  }
10335
- u.length > 0 && (i(u), r((e3) => {
10335
+ c2.length > 0 && (a(c2), i((e3) => {
10336
10336
  let t3 = [
10337
10337
  ...e3
10338
10338
  ];
10339
- for (let e4 of u) if (isPositionalEdit(e4)) {
10339
+ for (let e4 of c2) if (isPositionalEdit(e4)) {
10340
10340
  let n2 = e4.rowIdx, r2 = e4.columnId;
10341
10341
  if (n2 < t3.length) {
10342
10342
  let i2 = t3[n2];
@@ -10381,55 +10381,55 @@ let __tla = (async () => {
10381
10381
  }
10382
10382
  var import_jsx_runtime = __toESM(require_jsx_runtime(), 1);
10383
10383
  const RenameColumnSub = (e) => {
10384
- let t = (0, import_compiler_runtime$1.c)(19), { currentColumnName: n, onRename: r, onCancel: i } = e, [a, o] = (0, import_react.useState)(""), s;
10385
- t[0] !== n || t[1] !== a || t[2] !== r ? (s = () => {
10386
- a.trim() && (r(a.trim()), o(n));
10387
- }, t[0] = n, t[1] = a, t[2] = r, t[3] = s) : s = t[3];
10388
- let c = s, l;
10389
- t[4] !== c || t[5] !== i ? (l = (e2) => {
10390
- e2.key === "Enter" ? c() : e2.key === "Escape" && i();
10391
- }, t[4] = c, t[5] = i, t[6] = l) : l = t[6];
10392
- let u = l, f;
10393
- t[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = (0, import_jsx_runtime.jsxs)(DropdownMenuSubTrigger, {
10384
+ let t = (0, import_compiler_runtime$1.c)(19), { currentColumnName: n, onRename: r, onCancel: a } = e, [o, s] = (0, import_react.useState)(""), c;
10385
+ t[0] !== n || t[1] !== o || t[2] !== r ? (c = () => {
10386
+ o.trim() && (r(o.trim()), s(n));
10387
+ }, t[0] = n, t[1] = o, t[2] = r, t[3] = c) : c = t[3];
10388
+ let l = c, u;
10389
+ t[4] !== l || t[5] !== a ? (u = (e2) => {
10390
+ e2.key === "Enter" ? l() : e2.key === "Escape" && a();
10391
+ }, t[4] = l, t[5] = a, t[6] = u) : u = t[6];
10392
+ let f = u, m;
10393
+ t[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = (0, import_jsx_runtime.jsxs)(DropdownMenuSubTrigger, {
10394
10394
  children: [
10395
10395
  (0, import_jsx_runtime.jsx)(Pencil, {
10396
10396
  className: "mr-2 h-3.5 w-3.5"
10397
10397
  }),
10398
10398
  "Rename column"
10399
10399
  ]
10400
- }), t[7] = f) : f = t[7];
10401
- let m;
10402
- t[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = (0, import_jsx_runtime.jsx)(Label, {
10400
+ }), t[7] = m) : m = t[7];
10401
+ let h;
10402
+ t[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = (0, import_jsx_runtime.jsx)(Label, {
10403
10403
  htmlFor: "rename-input",
10404
10404
  children: "Column name"
10405
- }), t[8] = m) : m = t[8];
10405
+ }), t[8] = h) : h = t[8];
10406
10406
  let g;
10407
- t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = (e2) => o(e2.target.value), t[9] = g) : g = t[9];
10407
+ t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = (e2) => s(e2.target.value), t[9] = g) : g = t[9];
10408
10408
  let y;
10409
- t[10] !== u || t[11] !== a ? (y = (0, import_jsx_runtime.jsxs)("div", {
10409
+ t[10] !== f || t[11] !== o ? (y = (0, import_jsx_runtime.jsxs)("div", {
10410
10410
  children: [
10411
- m,
10411
+ h,
10412
10412
  (0, import_jsx_runtime.jsx)(Input, {
10413
- value: a,
10413
+ value: o,
10414
10414
  onChange: g,
10415
10415
  placeholder: "Enter new column name",
10416
10416
  className: "mt-1",
10417
- onKeyDown: u
10417
+ onKeyDown: f
10418
10418
  })
10419
10419
  ]
10420
- }), t[10] = u, t[11] = a, t[12] = y) : y = t[12];
10421
- let x = !a.trim(), C;
10422
- t[13] !== c || t[14] !== x ? (C = (0, import_jsx_runtime.jsx)(Button, {
10423
- onClick: c,
10424
- disabled: x,
10420
+ }), t[10] = f, t[11] = o, t[12] = y) : y = t[12];
10421
+ let S = !o.trim(), C;
10422
+ t[13] !== l || t[14] !== S ? (C = (0, import_jsx_runtime.jsx)(Button, {
10423
+ onClick: l,
10424
+ disabled: S,
10425
10425
  size: "sm",
10426
10426
  className: "w-full",
10427
10427
  children: "Rename"
10428
- }), t[13] = c, t[14] = x, t[15] = C) : C = t[15];
10428
+ }), t[13] = l, t[14] = S, t[15] = C) : C = t[15];
10429
10429
  let E;
10430
10430
  return t[16] !== y || t[17] !== C ? (E = (0, import_jsx_runtime.jsxs)(DropdownMenuSub, {
10431
10431
  children: [
10432
- f,
10432
+ m,
10433
10433
  (0, import_jsx_runtime.jsx)(DropdownMenuPortal, {
10434
10434
  children: (0, import_jsx_runtime.jsx)(DropdownMenuSubContent, {
10435
10435
  className: "w-64 p-4",
@@ -10445,119 +10445,119 @@ let __tla = (async () => {
10445
10445
  ]
10446
10446
  }), t[16] = y, t[17] = C, t[18] = E) : E = t[18], E;
10447
10447
  }, AddColumnSub = (e) => {
10448
- let t = (0, import_compiler_runtime$1.c)(77), { direction: n, onAdd: r, onCancel: i } = e, [a, o] = (0, import_react.useState)(""), [s, f] = (0, import_react.useState)("string"), m, y, x, C, E, O, A, P, F, I, L, zr, B, Br, V;
10449
- if (t[0] !== a || t[1] !== s || t[2] !== n || t[3] !== r || t[4] !== i) {
10448
+ let t = (0, import_compiler_runtime$1.c)(77), { direction: n, onAdd: r, onCancel: a } = e, [o, s] = (0, import_react.useState)(""), [c, l] = (0, import_react.useState)("string"), u, g, y, C, E, O, k, j, N, L, zr, B, V, Br, H;
10449
+ if (t[0] !== o || t[1] !== c || t[2] !== n || t[3] !== r || t[4] !== a) {
10450
10450
  let e2 = [
10451
10451
  "string",
10452
10452
  "number",
10453
10453
  "boolean",
10454
10454
  "datetime"
10455
- ], Vr;
10456
- t[20] !== a || t[21] !== s || t[22] !== r ? (Vr = () => {
10457
- a.trim() && (r(a.trim(), s), o(""), f("string"));
10458
- }, t[20] = a, t[21] = s, t[22] = r, t[23] = Vr) : Vr = t[23], O = Vr;
10459
- let Hr2;
10460
- t[24] !== O || t[25] !== i ? (Hr2 = (e3) => {
10461
- e3.key === "Enter" ? O() : e3.key === "Escape" && i();
10462
- }, t[24] = O, t[25] = i, t[26] = Hr2) : Hr2 = t[26];
10463
- let Ur2 = Hr2;
10455
+ ], i;
10456
+ t[20] !== o || t[21] !== c || t[22] !== r ? (i = () => {
10457
+ o.trim() && (r(o.trim(), c), s(""), l("string"));
10458
+ }, t[20] = o, t[21] = c, t[22] = r, t[23] = i) : i = t[23], O = i;
10459
+ let Vr2;
10460
+ t[24] !== O || t[25] !== a ? (Vr2 = (e3) => {
10461
+ e3.key === "Enter" ? O() : e3.key === "Escape" && a();
10462
+ }, t[24] = O, t[25] = a, t[26] = Vr2) : Vr2 = t[26];
10463
+ let Hr2 = Vr2;
10464
10464
  E = DropdownMenuSub;
10465
- let Wr2;
10466
- t[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Wr2 = (0, import_jsx_runtime.jsx)(Plus, {
10465
+ let Ur2;
10466
+ t[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ur2 = (0, import_jsx_runtime.jsx)(Plus, {
10467
10467
  className: "mr-2 h-3.5 w-3.5"
10468
- }), t[27] = Wr2) : Wr2 = t[27], t[28] === n ? V = t[29] : (V = (0, import_jsx_runtime.jsxs)(DropdownMenuSubTrigger, {
10468
+ }), t[27] = Ur2) : Ur2 = t[27], t[28] === n ? H = t[29] : (H = (0, import_jsx_runtime.jsxs)(DropdownMenuSubTrigger, {
10469
10469
  children: [
10470
- Wr2,
10470
+ Ur2,
10471
10471
  "Add column to the ",
10472
10472
  n
10473
10473
  ]
10474
- }), t[28] = n, t[29] = V), C = DropdownMenuPortal, x = DropdownMenuSubContent, Br = "w-64 p-4", zr = "space-y-3";
10475
- let H2 = `add-column-input-${n}`, U2;
10476
- t[30] === H2 ? U2 = t[31] : (U2 = (0, import_jsx_runtime.jsx)(Label, {
10477
- htmlFor: H2,
10474
+ }), t[28] = n, t[29] = H), C = DropdownMenuPortal, y = DropdownMenuSubContent, Br = "w-64 p-4", B = "space-y-3";
10475
+ let U2 = `add-column-input-${n}`, W2;
10476
+ t[30] === U2 ? W2 = t[31] : (W2 = (0, import_jsx_runtime.jsx)(Label, {
10477
+ htmlFor: U2,
10478
10478
  children: "Column name"
10479
- }), t[30] = H2, t[31] = U2);
10480
- let Gr2 = `add-column-input-${n}`, W2;
10481
- t[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W2 = (e3) => o(e3.target.value), t[32] = W2) : W2 = t[32];
10482
- let G2;
10483
- t[33] !== a || t[34] !== Ur2 || t[35] !== Gr2 ? (G2 = (0, import_jsx_runtime.jsx)(Input, {
10484
- id: Gr2,
10485
- value: a,
10486
- onChange: W2,
10479
+ }), t[30] = U2, t[31] = W2);
10480
+ let Wr2 = `add-column-input-${n}`, G2;
10481
+ t[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G2 = (e3) => s(e3.target.value), t[32] = G2) : G2 = t[32];
10482
+ let K2;
10483
+ t[33] !== o || t[34] !== Hr2 || t[35] !== Wr2 ? (K2 = (0, import_jsx_runtime.jsx)(Input, {
10484
+ id: Wr2,
10485
+ value: o,
10486
+ onChange: G2,
10487
10487
  placeholder: "Enter column name",
10488
10488
  className: "mt-1",
10489
- onKeyDown: Ur2
10490
- }), t[33] = a, t[34] = Ur2, t[35] = Gr2, t[36] = G2) : G2 = t[36], t[37] !== U2 || t[38] !== G2 ? (B = (0, import_jsx_runtime.jsxs)("div", {
10489
+ onKeyDown: Hr2
10490
+ }), t[33] = o, t[34] = Hr2, t[35] = Wr2, t[36] = K2) : K2 = t[36], t[37] !== W2 || t[38] !== K2 ? (V = (0, import_jsx_runtime.jsxs)("div", {
10491
10491
  children: [
10492
- U2,
10493
- G2
10492
+ W2,
10493
+ K2
10494
10494
  ]
10495
- }), t[37] = U2, t[38] = G2, t[39] = B) : B = t[39];
10496
- let K2 = `add-column-type-${n}`;
10497
- t[40] === K2 ? L = t[41] : (L = (0, import_jsx_runtime.jsx)(Label, {
10498
- htmlFor: K2,
10495
+ }), t[37] = W2, t[38] = K2, t[39] = V) : V = t[39];
10496
+ let q2 = `add-column-type-${n}`;
10497
+ t[40] === q2 ? zr = t[41] : (zr = (0, import_jsx_runtime.jsx)(Label, {
10498
+ htmlFor: q2,
10499
10499
  children: "Data type"
10500
- }), t[40] = K2, t[41] = L), y = Select, P = s, t[42] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (F = (e3) => f(e3), t[42] = F) : F = t[42];
10501
- let Kr = `add-column-type-${n}`, qr;
10502
- t[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (qr = (0, import_jsx_runtime.jsx)(SelectValue, {}), t[43] = qr) : qr = t[43], t[44] === Kr ? I = t[45] : (I = (0, import_jsx_runtime.jsx)(SelectTrigger, {
10503
- id: Kr,
10500
+ }), t[40] = q2, t[41] = zr), g = Select, j = c, t[42] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = (e3) => l(e3), t[42] = N) : N = t[42];
10501
+ let Gr = `add-column-type-${n}`, Kr;
10502
+ t[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Kr = (0, import_jsx_runtime.jsx)(SelectValue, {}), t[43] = Kr) : Kr = t[43], t[44] === Gr ? L = t[45] : (L = (0, import_jsx_runtime.jsx)(SelectTrigger, {
10503
+ id: Gr,
10504
10504
  className: "mt-1",
10505
- children: qr
10506
- }), t[44] = Kr, t[45] = I), m = SelectContent, A = e2.map(_temp$1), t[0] = a, t[1] = s, t[2] = n, t[3] = r, t[4] = i, t[5] = m, t[6] = y, t[7] = x, t[8] = C, t[9] = E, t[10] = O, t[11] = A, t[12] = P, t[13] = F, t[14] = I, t[15] = L, t[16] = zr, t[17] = B, t[18] = Br, t[19] = V;
10507
- } else m = t[5], y = t[6], x = t[7], C = t[8], E = t[9], O = t[10], A = t[11], P = t[12], F = t[13], I = t[14], L = t[15], zr = t[16], B = t[17], Br = t[18], V = t[19];
10505
+ children: Kr
10506
+ }), t[44] = Gr, t[45] = L), u = SelectContent, k = e2.map(_temp$1), t[0] = o, t[1] = c, t[2] = n, t[3] = r, t[4] = a, t[5] = u, t[6] = g, t[7] = y, t[8] = C, t[9] = E, t[10] = O, t[11] = k, t[12] = j, t[13] = N, t[14] = L, t[15] = zr, t[16] = B, t[17] = V, t[18] = Br, t[19] = H;
10507
+ } else u = t[5], g = t[6], y = t[7], C = t[8], E = t[9], O = t[10], k = t[11], j = t[12], N = t[13], L = t[14], zr = t[15], B = t[16], V = t[17], Br = t[18], H = t[19];
10508
+ let Vr;
10509
+ t[46] !== u || t[47] !== k ? (Vr = (0, import_jsx_runtime.jsx)(u, {
10510
+ children: k
10511
+ }), t[46] = u, t[47] = k, t[48] = Vr) : Vr = t[48];
10508
10512
  let Hr;
10509
- t[46] !== m || t[47] !== A ? (Hr = (0, import_jsx_runtime.jsx)(m, {
10510
- children: A
10511
- }), t[46] = m, t[47] = A, t[48] = Hr) : Hr = t[48];
10512
- let Ur;
10513
- t[49] !== y || t[50] !== Hr || t[51] !== P || t[52] !== F || t[53] !== I ? (Ur = (0, import_jsx_runtime.jsxs)(y, {
10514
- value: P,
10515
- onValueChange: F,
10513
+ t[49] !== g || t[50] !== Vr || t[51] !== j || t[52] !== N || t[53] !== L ? (Hr = (0, import_jsx_runtime.jsxs)(g, {
10514
+ value: j,
10515
+ onValueChange: N,
10516
10516
  children: [
10517
- I,
10518
- Hr
10517
+ L,
10518
+ Vr
10519
10519
  ]
10520
- }), t[49] = y, t[50] = Hr, t[51] = P, t[52] = F, t[53] = I, t[54] = Ur) : Ur = t[54];
10521
- let Wr;
10522
- t[55] !== Ur || t[56] !== L ? (Wr = (0, import_jsx_runtime.jsxs)("div", {
10520
+ }), t[49] = g, t[50] = Vr, t[51] = j, t[52] = N, t[53] = L, t[54] = Hr) : Hr = t[54];
10521
+ let Ur;
10522
+ t[55] !== Hr || t[56] !== zr ? (Ur = (0, import_jsx_runtime.jsxs)("div", {
10523
10523
  children: [
10524
- L,
10525
- Ur
10524
+ zr,
10525
+ Hr
10526
10526
  ]
10527
- }), t[55] = Ur, t[56] = L, t[57] = Wr) : Wr = t[57];
10528
- let H = !a.trim(), U;
10529
- t[58] !== O || t[59] !== H ? (U = (0, import_jsx_runtime.jsx)(Button, {
10527
+ }), t[55] = Hr, t[56] = zr, t[57] = Ur) : Ur = t[57];
10528
+ let U = !o.trim(), W;
10529
+ t[58] !== O || t[59] !== U ? (W = (0, import_jsx_runtime.jsx)(Button, {
10530
10530
  onClick: O,
10531
- disabled: H,
10531
+ disabled: U,
10532
10532
  size: "sm",
10533
10533
  className: "w-full",
10534
10534
  children: "Add"
10535
- }), t[58] = O, t[59] = H, t[60] = U) : U = t[60];
10536
- let Gr;
10537
- t[61] !== Wr || t[62] !== U || t[63] !== zr || t[64] !== B ? (Gr = (0, import_jsx_runtime.jsxs)("div", {
10538
- className: zr,
10535
+ }), t[58] = O, t[59] = U, t[60] = W) : W = t[60];
10536
+ let Wr;
10537
+ t[61] !== Ur || t[62] !== W || t[63] !== B || t[64] !== V ? (Wr = (0, import_jsx_runtime.jsxs)("div", {
10538
+ className: B,
10539
10539
  children: [
10540
- B,
10541
- Wr,
10542
- U
10540
+ V,
10541
+ Ur,
10542
+ W
10543
10543
  ]
10544
- }), t[61] = Wr, t[62] = U, t[63] = zr, t[64] = B, t[65] = Gr) : Gr = t[65];
10545
- let W;
10546
- t[66] !== x || t[67] !== Gr || t[68] !== Br ? (W = (0, import_jsx_runtime.jsx)(x, {
10547
- className: Br,
10548
- children: Gr
10549
- }), t[66] = x, t[67] = Gr, t[68] = Br, t[69] = W) : W = t[69];
10544
+ }), t[61] = Ur, t[62] = W, t[63] = B, t[64] = V, t[65] = Wr) : Wr = t[65];
10550
10545
  let G;
10551
- t[70] !== C || t[71] !== W ? (G = (0, import_jsx_runtime.jsx)(C, {
10552
- children: W
10553
- }), t[70] = C, t[71] = W, t[72] = G) : G = t[72];
10546
+ t[66] !== y || t[67] !== Wr || t[68] !== Br ? (G = (0, import_jsx_runtime.jsx)(y, {
10547
+ className: Br,
10548
+ children: Wr
10549
+ }), t[66] = y, t[67] = Wr, t[68] = Br, t[69] = G) : G = t[69];
10554
10550
  let K;
10555
- return t[73] !== E || t[74] !== G || t[75] !== V ? (K = (0, import_jsx_runtime.jsxs)(E, {
10551
+ t[70] !== C || t[71] !== G ? (K = (0, import_jsx_runtime.jsx)(C, {
10552
+ children: G
10553
+ }), t[70] = C, t[71] = G, t[72] = K) : K = t[72];
10554
+ let q;
10555
+ return t[73] !== E || t[74] !== K || t[75] !== H ? (q = (0, import_jsx_runtime.jsxs)(E, {
10556
10556
  children: [
10557
- V,
10558
- G
10557
+ H,
10558
+ K
10559
10559
  ]
10560
- }), t[73] = E, t[74] = G, t[75] = V, t[76] = K) : K = t[76], K;
10560
+ }), t[73] = E, t[74] = K, t[75] = H, t[76] = q) : q = t[76], q;
10561
10561
  };
10562
10562
  function _temp$1(e) {
10563
10563
  return (0, import_jsx_runtime.jsx)(SelectItem, {
@@ -10590,62 +10590,62 @@ let __tla = (async () => {
10590
10590
  }
10591
10591
  function modifyColumnFields(e) {
10592
10592
  var _a;
10593
- let { columnFields: t, columnIdx: n, type: r, dataType: i, newColumnName: a } = e;
10594
- switch (r) {
10593
+ let { columnFields: t, columnIdx: r, type: i, dataType: a, newColumnName: o } = e;
10594
+ switch (i) {
10595
10595
  case "insert": {
10596
- if (!a) return Logger.error("newName is required for insert"), t;
10597
- let e2 = Object.entries(t), r2 = [
10598
- ...e2.slice(0, n),
10596
+ if (!o) return Logger.error("newName is required for insert"), t;
10597
+ let e2 = Object.entries(t), i2 = [
10598
+ ...e2.slice(0, r),
10599
10599
  [
10600
- a,
10601
- i || "string"
10600
+ o,
10601
+ a || "string"
10602
10602
  ],
10603
- ...e2.slice(n)
10603
+ ...e2.slice(r)
10604
10604
  ];
10605
- return Object.fromEntries(r2);
10605
+ return Object.fromEntries(i2);
10606
10606
  }
10607
10607
  case "remove": {
10608
- if (n < 0 || n >= Object.keys(t).length) return t;
10609
- let e2 = (_a = Object.entries(t)[n]) == null ? void 0 : _a[0];
10608
+ if (r < 0 || r >= Object.keys(t).length) return t;
10609
+ let e2 = (_a = Object.entries(t)[r]) == null ? void 0 : _a[0];
10610
10610
  if (e2) {
10611
- let { [e2]: n2, ...r2 } = t;
10611
+ let { [e2]: n, ...r2 } = t;
10612
10612
  return r2;
10613
10613
  }
10614
10614
  return t;
10615
10615
  }
10616
10616
  case "rename": {
10617
- if (!a) return Logger.error("newName is required for rename"), t;
10618
- if (n < 0 || n >= Object.keys(t).length) return t;
10619
- let e2 = Object.entries(t), r2 = [
10620
- ...e2.slice(0, n),
10617
+ if (!o) return Logger.error("newName is required for rename"), t;
10618
+ if (r < 0 || r >= Object.keys(t).length) return t;
10619
+ let e2 = Object.entries(t), i2 = [
10620
+ ...e2.slice(0, r),
10621
10621
  [
10622
- a,
10623
- i || "string"
10622
+ o,
10623
+ a || "string"
10624
10624
  ],
10625
- ...e2.slice(n + 1)
10625
+ ...e2.slice(r + 1)
10626
10626
  ];
10627
- return Object.fromEntries(r2);
10627
+ return Object.fromEntries(i2);
10628
10628
  }
10629
10629
  }
10630
10630
  }
10631
10631
  var import_compiler_runtime = require_compiler_runtime();
10632
10632
  GlideDataEditor = (e) => {
10633
- let t = (0, import_compiler_runtime.c)(107), { data: n, setData: r, columnFields: s, setColumnFields: c, editableColumns: l, edits: u, onAddEdits: f, onAddRows: m, onDeleteRows: h, onRenameColumn: g, onDeleteColumn: y, onAddColumn: S } = e, { theme: D } = useTheme(), k = (0, import_react.useRef)(null), [j, M] = (0, import_react.useState)(), [N, I] = (0, import_react.useState)(false), L;
10634
- t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = {
10633
+ let t = (0, import_compiler_runtime.c)(107), { data: n, setData: a, columnFields: o, setColumnFields: u, editableColumns: f, edits: m, onAddEdits: h, onAddRows: g, onDeleteRows: y, onRenameColumn: x, onDeleteColumn: S, onAddColumn: C } = e, { theme: D } = useTheme(), A = (0, import_react.useRef)(null), [M, P] = (0, import_react.useState)(), [F, I] = (0, import_react.useState)(false), B;
10634
+ t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = {
10635
10635
  columns: CompactSelection.empty(),
10636
10636
  rows: CompactSelection.empty()
10637
- }, t[0] = L) : L = t[0];
10638
- let [B, V] = import_react.useState(L), Wr;
10639
- t[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Wr = {}, t[1] = Wr) : Wr = t[1];
10640
- let [H, U] = (0, import_react.useState)(Wr), Gr = useNonce(), W = (0, import_react.useRef)(false), G;
10641
- if (t[2] !== s || t[3] !== H || t[4] !== l || t[5] !== D) {
10642
- G = [];
10643
- for (let [e2, t2] of Object.entries(s)) {
10644
- let n2 = l === "all" || l.includes(e2);
10645
- G.push({
10637
+ }, t[0] = B) : B = t[0];
10638
+ let [V, H] = import_react.useState(B), Ur;
10639
+ t[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ur = {}, t[1] = Ur) : Ur = t[1];
10640
+ let [U, W] = (0, import_react.useState)(Ur), Wr = useNonce(), G = (0, import_react.useRef)(false), K;
10641
+ if (t[2] !== o || t[3] !== U || t[4] !== f || t[5] !== D) {
10642
+ K = [];
10643
+ for (let [e2, t2] of Object.entries(o)) {
10644
+ let n2 = f === "all" || f.includes(e2);
10645
+ K.push({
10646
10646
  id: e2,
10647
10647
  title: e2,
10648
- width: H[e2],
10648
+ width: U[e2],
10649
10649
  icon: n2 ? getColumnHeaderIcon(t2) : GridColumnIcon.ProtectedColumnOverlay,
10650
10650
  style: "normal",
10651
10651
  kind: getColumnKind(t2),
@@ -10656,114 +10656,114 @@ let __tla = (async () => {
10656
10656
  }
10657
10657
  });
10658
10658
  }
10659
- t[2] = s, t[3] = H, t[4] = l, t[5] = D, t[6] = G;
10660
- } else G = t[6];
10661
- let K = G, Kr;
10662
- t[7] !== K || t[8] !== n.length || t[9] !== u || t[10] !== Gr || t[11] !== c || t[12] !== r ? (Kr = () => {
10663
- if (W.current || n.length === 0 || (W.current = true, u.length === 0)) return;
10659
+ t[2] = o, t[3] = U, t[4] = f, t[5] = D, t[6] = K;
10660
+ } else K = t[6];
10661
+ let q = K, Gr;
10662
+ t[7] !== q || t[8] !== n.length || t[9] !== m || t[10] !== Wr || t[11] !== u || t[12] !== a ? (Gr = () => {
10663
+ if (G.current || n.length === 0 || (G.current = true, m.length === 0)) return;
10664
10664
  let e2 = /* @__PURE__ */ new Map();
10665
- for (let t3 of u) if (isPositionalEdit(t3)) if (t3.rowIdx >= n.length) {
10665
+ for (let t3 of m) if (isPositionalEdit(t3)) if (t3.rowIdx >= n.length) {
10666
10666
  e2.has(t3.rowIdx) || e2.set(t3.rowIdx, {});
10667
10667
  let n2 = e2.get(t3.rowIdx);
10668
10668
  n2 && (n2[t3.columnId] = t3.value);
10669
- } else r((e3) => {
10669
+ } else a((e3) => {
10670
10670
  let n2 = [
10671
10671
  ...e3
10672
10672
  ];
10673
10673
  return n2[t3.rowIdx][t3.columnId] = t3.value, n2;
10674
10674
  });
10675
- else if (isRowEdit(t3) && t3.type === BulkEdit.Remove) r((e3) => e3.filter((e4, n2) => n2 !== t3.rowIdx));
10675
+ else if (isRowEdit(t3) && t3.type === BulkEdit.Remove) a((e3) => e3.filter((e4, n2) => n2 !== t3.rowIdx));
10676
10676
  else if (isColumnEdit(t3)) bb59: switch (t3.type) {
10677
10677
  case BulkEdit.Remove:
10678
- r((e3) => removeColumn(e3, t3.columnIdx)), c((e3) => modifyColumnFields({
10678
+ a((e3) => removeColumn(e3, t3.columnIdx)), u((e3) => modifyColumnFields({
10679
10679
  columnFields: e3,
10680
10680
  columnIdx: t3.columnIdx,
10681
10681
  type: "remove"
10682
10682
  }));
10683
10683
  break bb59;
10684
10684
  case BulkEdit.Insert:
10685
- c((e3) => modifyColumnFields({
10685
+ u((e3) => modifyColumnFields({
10686
10686
  columnFields: e3,
10687
10687
  columnIdx: t3.columnIdx,
10688
10688
  type: "insert",
10689
10689
  newColumnName: t3.newName
10690
- })), r((e3) => insertColumn(e3, t3.newName));
10690
+ })), a((e3) => insertColumn(e3, t3.newName));
10691
10691
  break bb59;
10692
10692
  case BulkEdit.Rename: {
10693
- let e3 = K[t3.columnIdx].title, n2 = t3.newName;
10693
+ let e3 = q[t3.columnIdx].title, n2 = t3.newName;
10694
10694
  if (!e3 || !n2) return;
10695
- c((e4) => modifyColumnFields({
10695
+ u((e4) => modifyColumnFields({
10696
10696
  columnFields: e4,
10697
10697
  columnIdx: t3.columnIdx,
10698
10698
  type: "rename",
10699
10699
  newColumnName: n2
10700
- })), r((t4) => renameColumn(t4, e3, n2));
10700
+ })), a((t4) => renameColumn(t4, e3, n2));
10701
10701
  }
10702
10702
  }
10703
10703
  let t2 = [
10704
10704
  ...e2.entries()
10705
10705
  ].toSorted(_temp).map(_temp2);
10706
- t2.length > 0 && r((e3) => [
10706
+ t2.length > 0 && a((e3) => [
10707
10707
  ...e3,
10708
10708
  ...t2
10709
- ]), Gr();
10710
- }, t[7] = K, t[8] = n.length, t[9] = u, t[10] = Gr, t[11] = c, t[12] = r, t[13] = Kr) : Kr = t[13];
10711
- let qr;
10712
- t[14] === n.length ? qr = t[15] : (qr = [
10709
+ ]), Wr();
10710
+ }, t[7] = q, t[8] = n.length, t[9] = m, t[10] = Wr, t[11] = u, t[12] = a, t[13] = Gr) : Gr = t[13];
10711
+ let Kr;
10712
+ t[14] === n.length ? Kr = t[15] : (Kr = [
10713
10713
  n.length
10714
- ], t[14] = n.length, t[15] = qr), (0, import_react.useEffect)(Kr, qr);
10715
- let Jr;
10716
- t[16] !== K || t[17] !== n || t[18] !== l ? (Jr = (e2) => {
10717
- let [t2, r2] = e2, i = n[r2][K[t2].title], a = K[t2].kind, o = l === "all" || l.includes(K[t2].title);
10718
- if (a === GridCellKind.Boolean) {
10714
+ ], t[14] = n.length, t[15] = Kr), (0, import_react.useEffect)(Gr, Kr);
10715
+ let qr;
10716
+ t[16] !== q || t[17] !== n || t[18] !== f ? (qr = (e2) => {
10717
+ let [t2, r] = e2, i = n[r][q[t2].title], a2 = q[t2].kind, o2 = f === "all" || f.includes(q[t2].title);
10718
+ if (a2 === GridCellKind.Boolean) {
10719
10719
  let e3 = !!i;
10720
10720
  return {
10721
10721
  kind: GridCellKind.Boolean,
10722
10722
  allowOverlay: false,
10723
- readonly: !o,
10723
+ readonly: !o2,
10724
10724
  data: e3
10725
10725
  };
10726
10726
  }
10727
- return a === GridCellKind.Number && typeof i == "number" ? {
10727
+ return a2 === GridCellKind.Number && typeof i == "number" ? {
10728
10728
  kind: GridCellKind.Number,
10729
- allowOverlay: o,
10730
- readonly: !o,
10729
+ allowOverlay: o2,
10730
+ readonly: !o2,
10731
10731
  displayData: String(i),
10732
10732
  data: i
10733
10733
  } : {
10734
10734
  kind: GridCellKind.Text,
10735
- allowOverlay: o,
10736
- readonly: !o,
10735
+ allowOverlay: o2,
10736
+ readonly: !o2,
10737
10737
  displayData: String(i),
10738
10738
  data: String(i)
10739
10739
  };
10740
- }, t[16] = K, t[17] = n, t[18] = l, t[19] = Jr) : Jr = t[19];
10741
- let Yr = Jr, Xr;
10742
- t[20] !== K || t[21] !== f || t[22] !== r ? (Xr = (e2, t2) => {
10743
- let [n2, i] = e2, a = K[n2], o = a.title, s2 = t2.data;
10744
- (a.dataType === "number" || a.dataType === "integer") && (t2.data === void 0 || t2.data === "") && (s2 = null), r((e3) => {
10740
+ }, t[16] = q, t[17] = n, t[18] = f, t[19] = qr) : qr = t[19];
10741
+ let Jr = qr, Yr;
10742
+ t[20] !== q || t[21] !== h || t[22] !== a ? (Yr = (e2, t2) => {
10743
+ let [n2, r] = e2, i = q[n2], o2 = i.title, s = t2.data;
10744
+ (i.dataType === "number" || i.dataType === "integer") && (t2.data === void 0 || t2.data === "") && (s = null), a((e3) => {
10745
10745
  let t3 = [
10746
10746
  ...e3
10747
10747
  ];
10748
- return t3[i][o] = s2, t3;
10749
- }), f([
10748
+ return t3[r][o2] = s, t3;
10749
+ }), h([
10750
10750
  {
10751
- rowIdx: i,
10752
- columnId: o,
10753
- value: s2
10751
+ rowIdx: r,
10752
+ columnId: o2,
10753
+ value: s
10754
10754
  }
10755
10755
  ]);
10756
- }, t[20] = K, t[21] = f, t[22] = r, t[23] = Xr) : Xr = t[23];
10757
- let Zr = Xr, Qr;
10758
- t[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Qr = (e2, t2) => {
10759
- U((n2) => ({
10756
+ }, t[20] = q, t[21] = h, t[22] = a, t[23] = Yr) : Yr = t[23];
10757
+ let Xr = Yr, Zr;
10758
+ t[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Zr = (e2, t2) => {
10759
+ W((n2) => ({
10760
10760
  ...n2,
10761
10761
  [e2.title]: t2
10762
10762
  }));
10763
- }, t[24] = Qr) : Qr = t[24];
10764
- let $r = Qr, ei;
10765
- t[25] !== s || t[26] !== K ? (ei = (e2, t2, n2) => {
10766
- let [r2] = e2, i = s[K[r2].title];
10763
+ }, t[24] = Zr) : Zr = t[24];
10764
+ let Qr = Zr, $r;
10765
+ t[25] !== o || t[26] !== q ? ($r = (e2, t2, n2) => {
10766
+ let [r] = e2, i = o[q[r].title];
10767
10767
  bb134: switch (i) {
10768
10768
  case "number":
10769
10769
  case "integer":
@@ -10773,22 +10773,22 @@ let __tla = (async () => {
10773
10773
  if (typeof t2.data != "boolean") return false;
10774
10774
  }
10775
10775
  return true;
10776
- }, t[25] = s, t[26] = K, t[27] = ei) : ei = t[27];
10777
- let ti = ei, ni;
10778
- t[28] !== K || t[29] !== n || t[30] !== l || t[31] !== f || t[32] !== B || t[33] !== r ? (ni = (e2) => {
10779
- if (k.current) {
10776
+ }, t[25] = o, t[26] = q, t[27] = $r) : $r = t[27];
10777
+ let ei = $r, ti;
10778
+ t[28] !== q || t[29] !== n || t[30] !== f || t[31] !== h || t[32] !== V || t[33] !== a ? (ti = (e2) => {
10779
+ if (A.current) {
10780
10780
  if (Events.isMetaOrCtrl(e2) && e2.key === "c") {
10781
- k.current.emit("copy");
10781
+ A.current.emit("copy");
10782
10782
  return;
10783
10783
  }
10784
10784
  if (Events.isMetaOrCtrl(e2) && e2.key === "v") {
10785
10785
  pasteCells({
10786
- selection: B,
10786
+ selection: V,
10787
10787
  data: n,
10788
- setData: r,
10789
- columns: K,
10790
- editableColumns: l,
10791
- onAddEdits: f
10788
+ setData: a,
10789
+ columns: q,
10790
+ editableColumns: f,
10791
+ onAddEdits: h
10792
10792
  });
10793
10793
  return;
10794
10794
  }
@@ -10801,112 +10801,112 @@ let __tla = (async () => {
10801
10801
  return;
10802
10802
  }
10803
10803
  }
10804
- }, t[28] = K, t[29] = n, t[30] = l, t[31] = f, t[32] = B, t[33] = r, t[34] = ni) : ni = t[34];
10805
- let q = ni, ri;
10806
- t[35] !== K || t[36] !== m || t[37] !== r ? (ri = () => {
10807
- let e2 = Object.fromEntries(K.map(_temp4));
10808
- m([
10804
+ }, t[28] = q, t[29] = n, t[30] = f, t[31] = h, t[32] = V, t[33] = a, t[34] = ti) : ti = t[34];
10805
+ let J = ti, ni;
10806
+ t[35] !== q || t[36] !== g || t[37] !== a ? (ni = () => {
10807
+ let e2 = Object.fromEntries(q.map(_temp4));
10808
+ g([
10809
10809
  e2
10810
- ]), r((t2) => [
10810
+ ]), a((t2) => [
10811
10811
  ...t2,
10812
10812
  e2
10813
10813
  ]);
10814
- }, t[35] = K, t[36] = m, t[37] = r, t[38] = ri) : ri = t[38];
10815
- let J = ri, ii;
10816
- t[39] !== h || t[40] !== B.rows || t[41] !== r ? (ii = () => {
10817
- let e2 = B.rows.toArray();
10818
- h(e2);
10814
+ }, t[35] = q, t[36] = g, t[37] = a, t[38] = ni) : ni = t[38];
10815
+ let Y = ni, ri;
10816
+ t[39] !== y || t[40] !== V.rows || t[41] !== a ? (ri = () => {
10817
+ let e2 = V.rows.toArray();
10818
+ y(e2);
10819
10819
  let t2 = 0;
10820
10820
  for (let n2 of e2) {
10821
10821
  let e3 = n2 - t2;
10822
- r((t3) => t3.filter((t4, n3) => n3 !== e3)), t2++;
10822
+ a((t3) => t3.filter((t4, n3) => n3 !== e3)), t2++;
10823
10823
  }
10824
- V({
10824
+ H({
10825
10825
  columns: CompactSelection.empty(),
10826
10826
  rows: CompactSelection.empty()
10827
10827
  });
10828
- }, t[39] = h, t[40] = B.rows, t[41] = r, t[42] = ii) : ii = t[42];
10829
- let ai = ii, oi;
10830
- t[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (oi = (e2, t2) => {
10831
- M({
10828
+ }, t[39] = y, t[40] = V.rows, t[41] = a, t[42] = ri) : ri = t[42];
10829
+ let ii = ri, ai;
10830
+ t[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ai = (e2, t2) => {
10831
+ P({
10832
10832
  col: e2,
10833
10833
  bounds: t2
10834
10834
  });
10835
- }, t[43] = oi) : oi = t[43];
10836
- let si = useEvent_default(oi), ci;
10837
- t[44] !== K || t[45] !== j ? (ci = async () => {
10838
- if (j) {
10839
- let e2 = K[j.col].title;
10840
- await copyToClipboard(e2), M(void 0);
10841
- }
10842
- }, t[44] = K, t[45] = j, t[46] = ci) : ci = t[46];
10843
- let di = ci, Y;
10844
- t[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = function(e2) {
10835
+ }, t[43] = ai) : ai = t[43];
10836
+ let oi = useEvent_default(ai), si;
10837
+ t[44] !== q || t[45] !== M ? (si = async () => {
10838
+ if (M) {
10839
+ let e2 = q[M.col].title;
10840
+ await copyToClipboard(e2), P(void 0);
10841
+ }
10842
+ }, t[44] = q, t[45] = M, t[46] = si) : si = t[46];
10843
+ let ui = si, di;
10844
+ t[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (di = function(e2) {
10845
10845
  toast({
10846
10846
  title: `Column '${e2}' already exists`,
10847
10847
  description: "Please enter a different column name",
10848
10848
  variant: "danger"
10849
10849
  });
10850
- }, t[47] = Y) : Y = t[47];
10851
- let fi = Y, pi;
10852
- t[48] !== s || t[49] !== K || t[50] !== j || t[51] !== g || t[52] !== c || t[53] !== r ? (pi = (e2) => {
10853
- if (j) {
10854
- let t2 = K[j.col].title;
10855
- if (s[e2]) {
10850
+ }, t[47] = di) : di = t[47];
10851
+ let fi = di, pi;
10852
+ t[48] !== o || t[49] !== q || t[50] !== M || t[51] !== x || t[52] !== u || t[53] !== a ? (pi = (e2) => {
10853
+ if (M) {
10854
+ let t2 = q[M.col].title;
10855
+ if (o[e2]) {
10856
10856
  fi(e2);
10857
10857
  return;
10858
10858
  }
10859
- let n2 = K[j.col].dataType;
10860
- g(j.col, e2), c((t3) => modifyColumnFields({
10859
+ let n2 = q[M.col].dataType;
10860
+ x(M.col, e2), u((t3) => modifyColumnFields({
10861
10861
  columnFields: t3,
10862
- columnIdx: j.col,
10862
+ columnIdx: M.col,
10863
10863
  type: "rename",
10864
10864
  dataType: n2,
10865
10865
  newColumnName: e2
10866
- })), r((n3) => renameColumn(n3, t2, e2)), M(void 0);
10866
+ })), a((n3) => renameColumn(n3, t2, e2)), P(void 0);
10867
10867
  }
10868
- }, t[48] = s, t[49] = K, t[50] = j, t[51] = g, t[52] = c, t[53] = r, t[54] = pi) : pi = t[54];
10868
+ }, t[48] = o, t[49] = q, t[50] = M, t[51] = x, t[52] = u, t[53] = a, t[54] = pi) : pi = t[54];
10869
10869
  let mi = pi, X;
10870
- t[55] !== j || t[56] !== y || t[57] !== c || t[58] !== r ? (X = () => {
10871
- j && (y(j.col), c((e2) => modifyColumnFields({
10870
+ t[55] !== M || t[56] !== S || t[57] !== u || t[58] !== a ? (X = () => {
10871
+ M && (S(M.col), u((e2) => modifyColumnFields({
10872
10872
  columnFields: e2,
10873
- columnIdx: j.col,
10873
+ columnIdx: M.col,
10874
10874
  type: "remove"
10875
- })), r((e2) => removeColumn(e2, j.col)), M(void 0));
10876
- }, t[55] = j, t[56] = y, t[57] = c, t[58] = r, t[59] = X) : X = t[59];
10875
+ })), a((e2) => removeColumn(e2, M.col)), P(void 0));
10876
+ }, t[55] = M, t[56] = S, t[57] = u, t[58] = a, t[59] = X) : X = t[59];
10877
10877
  let hi = X, gi;
10878
- t[60] !== s || t[61] !== K.length || t[62] !== j || t[63] !== S || t[64] !== c || t[65] !== r ? (gi = (e2) => {
10879
- let { direction: t2, columnName: n2, dataType: i } = e2;
10880
- if (j) {
10881
- let e3 = j.col + (t2 === "left" ? 0 : 1), a = Math.max(0, Math.min(e3, K.length));
10882
- if (s[n2]) {
10878
+ t[60] !== o || t[61] !== q.length || t[62] !== M || t[63] !== C || t[64] !== u || t[65] !== a ? (gi = (e2) => {
10879
+ let { direction: t2, columnName: n2, dataType: r } = e2;
10880
+ if (M) {
10881
+ let e3 = M.col + (t2 === "left" ? 0 : 1), i = Math.max(0, Math.min(e3, q.length));
10882
+ if (o[n2]) {
10883
10883
  fi(n2);
10884
10884
  return;
10885
10885
  }
10886
- S(a, n2), c((e4) => modifyColumnFields({
10886
+ C(i, n2), u((e4) => modifyColumnFields({
10887
10887
  columnFields: e4,
10888
- columnIdx: a,
10888
+ columnIdx: i,
10889
10889
  type: "insert",
10890
- dataType: i,
10890
+ dataType: r,
10891
10891
  newColumnName: n2
10892
- })), r((e4) => insertColumn(e4, n2)), M(void 0);
10892
+ })), a((e4) => insertColumn(e4, n2)), P(void 0);
10893
10893
  }
10894
- }, t[60] = s, t[61] = K.length, t[62] = j, t[63] = S, t[64] = c, t[65] = r, t[66] = gi) : gi = t[66];
10895
- let _i = gi, yi = (j == null ? void 0 : j.col) === K.length - 1, bi = j !== void 0, xi;
10894
+ }, t[60] = o, t[61] = q.length, t[62] = M, t[63] = C, t[64] = u, t[65] = a, t[66] = gi) : gi = t[66];
10895
+ let _i = gi, yi = (M == null ? void 0 : M.col) === q.length - 1, bi = M !== void 0, xi;
10896
10896
  t[67] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (xi = {
10897
10897
  hint: "New row",
10898
10898
  sticky: true,
10899
10899
  tint: true
10900
10900
  }, t[67] = xi) : xi = t[67];
10901
- let Si = xi, Ci = n.length > 1e5, wi = l === "all", Ti;
10902
- t[68] !== wi || t[69] !== K || t[70] !== _i || t[71] !== di || t[72] !== hi || t[73] !== mi || t[74] !== Ci || t[75] !== yi || t[76] !== bi || t[77] !== j ? (Ti = () => {
10901
+ let Si = xi, Ci = n.length > 1e5, wi = f === "all", Ti;
10902
+ t[68] !== wi || t[69] !== q || t[70] !== _i || t[71] !== ui || t[72] !== hi || t[73] !== mi || t[74] !== Ci || t[75] !== yi || t[76] !== bi || t[77] !== M ? (Ti = () => {
10903
10903
  if (!bi) return;
10904
10904
  let e2 = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10905
10905
  children: [
10906
10906
  wi && (0, import_jsx_runtime.jsx)(RenameColumnSub, {
10907
- currentColumnName: K[j.col].title,
10907
+ currentColumnName: q[M.col].title,
10908
10908
  onRename: mi,
10909
- onCancel: () => M(void 0)
10909
+ onCancel: () => P(void 0)
10910
10910
  }),
10911
10911
  (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}),
10912
10912
  (0, import_jsx_runtime.jsx)(AddColumnSub, {
@@ -10916,7 +10916,7 @@ let __tla = (async () => {
10916
10916
  columnName: e3,
10917
10917
  dataType: t2
10918
10918
  }),
10919
- onCancel: () => M(void 0)
10919
+ onCancel: () => P(void 0)
10920
10920
  }),
10921
10921
  (0, import_jsx_runtime.jsx)(AddColumnSub, {
10922
10922
  direction: "right",
@@ -10925,7 +10925,7 @@ let __tla = (async () => {
10925
10925
  columnName: e3,
10926
10926
  dataType: t2
10927
10927
  }),
10928
- onCancel: () => M(void 0)
10928
+ onCancel: () => P(void 0)
10929
10929
  }),
10930
10930
  (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}),
10931
10931
  !yi && wi && (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
@@ -10942,16 +10942,16 @@ let __tla = (async () => {
10942
10942
  });
10943
10943
  return (0, import_jsx_runtime.jsx)(DropdownMenu, {
10944
10944
  open: bi,
10945
- onOpenChange: (e3) => !e3 && M(void 0),
10945
+ onOpenChange: (e3) => !e3 && P(void 0),
10946
10946
  children: (0, import_jsx_runtime.jsxs)(DropdownMenuContent, {
10947
10947
  style: {
10948
- left: (j == null ? void 0 : j.bounds.x) ?? 0,
10949
- top: ((j == null ? void 0 : j.bounds.y) ?? 0) + ((j == null ? void 0 : j.bounds.height) ?? 0)
10948
+ left: (M == null ? void 0 : M.bounds.x) ?? 0,
10949
+ top: ((M == null ? void 0 : M.bounds.y) ?? 0) + ((M == null ? void 0 : M.bounds.height) ?? 0)
10950
10950
  },
10951
10951
  className: "fixed w-52",
10952
10952
  children: [
10953
10953
  (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
10954
- onClick: di,
10954
+ onClick: ui,
10955
10955
  children: [
10956
10956
  (0, import_jsx_runtime.jsx)(Copy, {
10957
10957
  className: "mr-2 h-3.5 w-3.5"
@@ -10963,7 +10963,7 @@ let __tla = (async () => {
10963
10963
  ]
10964
10964
  })
10965
10965
  });
10966
- }, t[68] = wi, t[69] = K, t[70] = _i, t[71] = di, t[72] = hi, t[73] = mi, t[74] = Ci, t[75] = yi, t[76] = bi, t[77] = j, t[78] = Ti) : Ti = t[78];
10966
+ }, t[68] = wi, t[69] = q, t[70] = _i, t[71] = ui, t[72] = hi, t[73] = mi, t[74] = Ci, t[75] = yi, t[76] = bi, t[77] = M, t[78] = Ti) : Ti = t[78];
10967
10967
  let Ei = Ti, Di = n.length, Oi = !Ci, ki = !Ci, Ai = n.length > 10 ? 450 : void 0, ji;
10968
10968
  t[79] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ji = {
10969
10969
  kind: "both"
@@ -10971,52 +10971,52 @@ let __tla = (async () => {
10971
10971
  let Mi;
10972
10972
  t[80] === D ? Mi = t[81] : (Mi = getGlideTheme(D), t[80] = D, t[81] = Mi);
10973
10973
  let Ni;
10974
- t[82] !== K || t[83] !== n.length || t[84] !== Yr || t[85] !== Zr || t[86] !== si || t[87] !== q || t[88] !== J || t[89] !== B || t[90] !== N || t[91] !== Oi || t[92] !== ki || t[93] !== Ai || t[94] !== Mi || t[95] !== ti ? (Ni = (0, import_jsx_runtime.jsx)(ErrorBoundary, {
10974
+ t[82] !== q || t[83] !== n.length || t[84] !== Jr || t[85] !== Xr || t[86] !== oi || t[87] !== J || t[88] !== Y || t[89] !== V || t[90] !== F || t[91] !== Oi || t[92] !== ki || t[93] !== Ai || t[94] !== Mi || t[95] !== ei ? (Ni = (0, import_jsx_runtime.jsx)(ErrorBoundary, {
10975
10975
  children: (0, import_jsx_runtime.jsx)(DataEditorAll, {
10976
- ref: k,
10977
- getCellContent: Yr,
10978
- columns: K,
10979
- gridSelection: B,
10980
- onGridSelectionChange: V,
10976
+ ref: A,
10977
+ getCellContent: Jr,
10978
+ columns: q,
10979
+ gridSelection: V,
10980
+ onGridSelectionChange: H,
10981
10981
  rows: Di,
10982
10982
  overscrollX: 50,
10983
10983
  smoothScrollX: Oi,
10984
10984
  smoothScrollY: ki,
10985
- validateCell: ti,
10985
+ validateCell: ei,
10986
10986
  getCellsForSelection: true,
10987
10987
  onPaste: true,
10988
- showSearch: N,
10988
+ showSearch: F,
10989
10989
  fillHandle: true,
10990
10990
  allowedFillDirections: "vertical",
10991
- onKeyDown: q,
10991
+ onKeyDown: J,
10992
10992
  height: Ai,
10993
10993
  width: "100%",
10994
10994
  rowMarkers: ji,
10995
10995
  rowSelectionMode: "multi",
10996
- onCellEdited: Zr,
10997
- onColumnResize: $r,
10998
- onHeaderMenuClick: si,
10996
+ onCellEdited: Xr,
10997
+ onColumnResize: Qr,
10998
+ onHeaderMenuClick: oi,
10999
10999
  theme: Mi,
11000
11000
  trailingRowOptions: Si,
11001
- onRowAppended: J,
11001
+ onRowAppended: Y,
11002
11002
  maxColumnAutoWidth: 600,
11003
11003
  maxColumnWidth: 600
11004
11004
  })
11005
- }), t[82] = K, t[83] = n.length, t[84] = Yr, t[85] = Zr, t[86] = si, t[87] = q, t[88] = J, t[89] = B, t[90] = N, t[91] = Oi, t[92] = ki, t[93] = Ai, t[94] = Mi, t[95] = ti, t[96] = Ni) : Ni = t[96];
11005
+ }), t[82] = q, t[83] = n.length, t[84] = Jr, t[85] = Xr, t[86] = oi, t[87] = J, t[88] = Y, t[89] = V, t[90] = F, t[91] = Oi, t[92] = ki, t[93] = Ai, t[94] = Mi, t[95] = ei, t[96] = Ni) : Ni = t[96];
11006
11006
  let Pi;
11007
11007
  t[97] === Ei ? Pi = t[98] : (Pi = Ei(), t[97] = Ei, t[98] = Pi);
11008
- let Fi = B.rows.length === 0, Ii = B.rows.length <= 1 ? "Delete row" : "Delete rows", Li;
11009
- t[99] !== ai || t[100] !== Fi || t[101] !== Ii ? (Li = (0, import_jsx_runtime.jsx)("div", {
11008
+ let Fi = V.rows.length === 0, Ii = V.rows.length <= 1 ? "Delete row" : "Delete rows", Li;
11009
+ t[99] !== ii || t[100] !== Fi || t[101] !== Ii ? (Li = (0, import_jsx_runtime.jsx)("div", {
11010
11010
  className: "absolute bottom-1 right-2 w-26",
11011
11011
  children: (0, import_jsx_runtime.jsx)(Button, {
11012
11012
  variant: "destructive",
11013
11013
  size: "sm",
11014
11014
  disabled: Fi,
11015
11015
  className: "right-2 h-7",
11016
- onClick: ai,
11016
+ onClick: ii,
11017
11017
  children: Ii
11018
11018
  })
11019
- }), t[99] = ai, t[100] = Fi, t[101] = Ii, t[102] = Li) : Li = t[102];
11019
+ }), t[99] = ii, t[100] = Fi, t[101] = Ii, t[102] = Li) : Li = t[102];
11020
11020
  let Ri;
11021
11021
  return t[103] !== Ni || t[104] !== Pi || t[105] !== Li ? (Ri = (0, import_jsx_runtime.jsxs)("div", {
11022
11022
  className: "relative w-full min-w-0",