@react-pdf-kit/viewer 0.0.0-experimental.1 → 0.0.0-experimental.2

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 (157) hide show
  1. package/README.md +84 -49
  2. package/dist/{Combination-54a77a7a.js → Combination-17ab8af1.js} +184 -187
  3. package/dist/assets/style.css +1 -1
  4. package/dist/assets/style.js +8 -8
  5. package/dist/components/RPConfig.js +5 -7
  6. package/dist/components/RPController.js +76 -77
  7. package/dist/components/RPDropFileZone.js +4 -3
  8. package/dist/components/RPPages.js +577 -573
  9. package/dist/components/RPProvider.js +2 -2
  10. package/dist/components/layout/RPDefaultLayout.js +10 -9
  11. package/dist/components/layout/RPLayout.js +10 -9
  12. package/dist/components/layout/WrapperLayout.js +4 -3
  13. package/dist/components/layout/sidebar/RPSidebar.js +8 -7
  14. package/dist/components/layout/sidebar/Thumbnail.js +4 -3
  15. package/dist/components/layout/sidebar/Thumbnails.js +4 -3
  16. package/dist/components/layout/toolbar/DarkModeTool.js +4 -4
  17. package/dist/components/layout/toolbar/DocumentDialog.js +43 -34
  18. package/dist/components/layout/toolbar/DocumentProperties.js +6 -6
  19. package/dist/components/layout/toolbar/FileDownloadTool.js +10 -9
  20. package/dist/components/layout/toolbar/FileUploadTool.js +10 -9
  21. package/dist/components/layout/toolbar/FullScreenTool.js +6 -6
  22. package/dist/components/layout/toolbar/MenuItem.js +6 -6
  23. package/dist/components/layout/toolbar/MenuSeparator.js +6 -6
  24. package/dist/components/layout/toolbar/MostPageTool.js +10 -9
  25. package/dist/components/layout/toolbar/OtherTool.js +10 -9
  26. package/dist/components/layout/toolbar/Paginate.js +8 -7
  27. package/dist/components/layout/toolbar/PrintTool.js +10 -9
  28. package/dist/components/layout/toolbar/RPMenuItem.js +6 -6
  29. package/dist/components/layout/toolbar/RPMoreOptions.js +10 -9
  30. package/dist/components/layout/toolbar/RPToolbar.js +10 -9
  31. package/dist/components/layout/toolbar/RPToolbarEnd.js +10 -9
  32. package/dist/components/layout/toolbar/RotateTool.js +10 -9
  33. package/dist/components/layout/toolbar/ScrollModeTool.js +6 -6
  34. package/dist/components/layout/toolbar/SearchCloseButton.js +4 -4
  35. package/dist/components/layout/toolbar/SearchResultNavigator.js +23 -30
  36. package/dist/components/layout/toolbar/SearchTool.js +104 -100
  37. package/dist/components/layout/toolbar/SelectionModeTool.js +6 -6
  38. package/dist/components/layout/toolbar/ThumbnailTool.js +8 -7
  39. package/dist/components/layout/toolbar/ToolbarCustom.js +4 -3
  40. package/dist/components/layout/toolbar/ToolbarDefault.js +10 -9
  41. package/dist/components/layout/toolbar/ToolbarLayout.js +10 -9
  42. package/dist/components/layout/toolbar/ViewModeTool.js +6 -6
  43. package/dist/components/layout/toolbar/ZoomTool.js +10 -9
  44. package/dist/components/layout/toolbar/tools/DocumentPropertiesTool.js +9 -8
  45. package/dist/components/layout/toolbar/tools/DualPageTool.js +4 -4
  46. package/dist/components/layout/toolbar/tools/DualPageWithCoverTool.js +10 -11
  47. package/dist/components/layout/toolbar/tools/FileDownloadTool.js +8 -7
  48. package/dist/components/layout/toolbar/tools/FileUploadTool.js +8 -7
  49. package/dist/components/layout/toolbar/tools/FirstPageTool.js +10 -11
  50. package/dist/components/layout/toolbar/tools/FullScreenTool.js +4 -4
  51. package/dist/components/layout/toolbar/tools/HorizontalScrollingTool.js +4 -4
  52. package/dist/components/layout/toolbar/tools/InputPageTool.js +8 -7
  53. package/dist/components/layout/toolbar/tools/LastPageTool.js +10 -11
  54. package/dist/components/layout/toolbar/tools/NextPageTool.js +8 -7
  55. package/dist/components/layout/toolbar/tools/PageScrollingTool.js +4 -4
  56. package/dist/components/layout/toolbar/tools/PreviousPageTool.js +8 -7
  57. package/dist/components/layout/toolbar/tools/PrintTool.js +8 -7
  58. package/dist/components/layout/toolbar/tools/RotateClockwiseTool.js +8 -7
  59. package/dist/components/layout/toolbar/tools/RotateCounterclockwiseTool.js +8 -7
  60. package/dist/components/layout/toolbar/tools/SelectionModeSwitcherTool.js +4 -4
  61. package/dist/components/layout/toolbar/tools/SinglePageTool.js +4 -4
  62. package/dist/components/layout/toolbar/tools/ThemeSwitcherTool.js +4 -4
  63. package/dist/components/layout/toolbar/tools/ThumbnailTool.js +8 -7
  64. package/dist/components/layout/toolbar/tools/VerticalScrollingTool.js +4 -4
  65. package/dist/components/layout/toolbar/tools/ZoomInTool.js +8 -7
  66. package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +20 -19
  67. package/dist/components/layout/toolbar/tools/ZoomOutTool.js +8 -7
  68. package/dist/components/layout/toolbar/tools/defaults/RPHorizontalBar.js +10 -9
  69. package/dist/components/layout/toolbar/tools/defaults/RPVerticalBar.js +8 -7
  70. package/dist/components/layout/toolbar/tools/more-options/DocumentProperties.js +6 -6
  71. package/dist/components/layout/toolbar/tools/more-options/FileDownloadTool.js +10 -9
  72. package/dist/components/layout/toolbar/tools/more-options/FileUploadTool.js +10 -9
  73. package/dist/components/layout/toolbar/tools/more-options/FullScreenTool.js +6 -6
  74. package/dist/components/layout/toolbar/tools/more-options/MostPageTool.js +10 -9
  75. package/dist/components/layout/toolbar/tools/more-options/PrintTool.js +10 -9
  76. package/dist/components/layout/toolbar/tools/more-options/RotateTool.js +10 -9
  77. package/dist/components/layout/toolbar/tools/more-options/ScrollModeTool.js +6 -6
  78. package/dist/components/layout/toolbar/tools/more-options/SelectionModeTool.js +6 -6
  79. package/dist/components/layout/toolbar/tools/more-options/ViewModeTool.js +6 -6
  80. package/dist/components/page/AnnotationLayer.js +25 -24
  81. package/dist/components/page/CanvasLayer.js +38 -54
  82. package/dist/components/page/CustomElement.js +4 -3
  83. package/dist/components/page/DualPage.js +2 -2
  84. package/dist/components/page/DualPageWithCover.js +2 -2
  85. package/dist/components/page/RPPage.js +35 -35
  86. package/dist/components/page/SinglePage.js +2 -2
  87. package/dist/components/page/TextHighlightLayer.js +16 -15
  88. package/dist/components/page/TextLayer.js +27 -28
  89. package/dist/components/ui/Checkbox.js +2 -2
  90. package/dist/components/ui/DropDown.js +6 -6
  91. package/dist/components/ui/Input.js +10 -10
  92. package/dist/components/ui/LoadingIndicator.js +8 -7
  93. package/dist/components/ui/RPTooltip.js +197 -411
  94. package/dist/contexts/DimensionPagesContext.js +28 -56
  95. package/dist/contexts/DropFileZoneContext.js +5 -4
  96. package/dist/contexts/ElementPageContext.js +6 -5
  97. package/dist/contexts/FileInputContext.js +6 -5
  98. package/dist/contexts/HighlightContext.js +6 -5
  99. package/dist/contexts/InitialStateContext.js +6 -8
  100. package/dist/contexts/PagesRotateContext.js +6 -5
  101. package/dist/contexts/PaginationContext.js +6 -5
  102. package/dist/contexts/PrintContext.js +17 -16
  103. package/dist/contexts/RPDocumentContext.js +14 -13
  104. package/dist/contexts/RenderQueueProvider.js +14 -13
  105. package/dist/contexts/RotationContext.js +9 -8
  106. package/dist/contexts/SearchContext.js +6 -5
  107. package/dist/contexts/ThumbnailsContext.js +5 -4
  108. package/dist/contexts/ZoomContext.js +6 -5
  109. package/dist/{index-c0faa594.js → index-113053cf.js} +2 -2
  110. package/dist/index-11f3cd64.js +983 -0
  111. package/dist/{index-e3ee9457.js → index-23911b43.js} +6 -6
  112. package/dist/{index-655864a7.js → index-ada501c4.js} +1 -1
  113. package/dist/index-d0f0aa9a.js +1542 -0
  114. package/dist/main.js +47 -47
  115. package/dist/types/components/layout/sidebar/Thumbnail.d.ts +2 -2
  116. package/dist/types/contexts/RPDocumentContext.d.ts +1 -1
  117. package/dist/types/contexts/RenderQueueProvider.d.ts +1 -2
  118. package/dist/types/contexts/RenderedPagesCache.d.ts +2 -2
  119. package/dist/types/main.d.ts +3 -1
  120. package/dist/types/utils/annotations.d.ts +2 -2
  121. package/dist/types/utils/getThumbnailViewport.d.ts +2 -2
  122. package/dist/types/utils/highlight.d.ts +5 -5
  123. package/dist/types/utils/hooks/useHighlight.d.ts +1 -1
  124. package/dist/types/utils/hooks/useLoadPdf.d.ts +2 -2
  125. package/dist/types/utils/hooks/useLoadWorker.d.ts +5 -1
  126. package/dist/types/utils/hooks/usePdfProperties.d.ts +1 -1
  127. package/dist/types/utils/hooks/useWatermark.d.ts +1 -1
  128. package/dist/types/utils/link_service.d.ts +2 -3
  129. package/dist/types/utils/renderPage.d.ts +2 -2
  130. package/dist/types/utils/types.d.ts +7 -8
  131. package/dist/utils/highlight.js +36 -36
  132. package/dist/utils/hooks/useFileDownload.js +6 -5
  133. package/dist/utils/hooks/useHighlight.js +78 -40
  134. package/dist/utils/hooks/useLicense.js +1 -1
  135. package/dist/utils/hooks/useLoadPdf.js +96 -70
  136. package/dist/utils/hooks/useLoadWorker.js +4 -14
  137. package/dist/utils/hooks/usePageRotateContext.js +8 -7
  138. package/dist/utils/hooks/usePaginate.js +4 -3
  139. package/dist/utils/hooks/usePinch.js +44 -90
  140. package/dist/utils/hooks/usePresentPage.js +4 -3
  141. package/dist/utils/hooks/usePrint.js +71 -72
  142. package/dist/utils/hooks/useRotate.js +4 -3
  143. package/dist/utils/hooks/useScrollToPage.js +4 -3
  144. package/dist/utils/hooks/useSearch.js +16 -15
  145. package/dist/utils/hooks/useThumbnail.js +18 -17
  146. package/dist/utils/hooks/useVirtualReactWindow.js +4 -3
  147. package/dist/utils/hooks/useWatermark.js +43 -61
  148. package/dist/utils/injectPrintCSS.js +4 -3
  149. package/dist/utils/link_service.js +18 -19
  150. package/dist/utils/renderPage.js +14 -14
  151. package/package.json +2 -3
  152. package/dist/contexts/SmoothScaleContext.js +0 -67
  153. package/dist/floating-ui.react-dom-5ec29bd6.js +0 -1327
  154. package/dist/index-4baea9b5.js +0 -1198
  155. package/dist/types/contexts/SmoothScaleContext.d.ts +0 -16
  156. package/dist/types/utils/hooks/useAccumulateFactor.d.ts +0 -9
  157. package/dist/utils/hooks/useAccumulateFactor.js +0 -17
@@ -1,59 +1,59 @@
1
- import { jsx as x, jsxs as xe, Fragment as ft } from "react/jsx-runtime";
2
- import { createElement as pe, PureComponent as mt, Component as pt, memo as ht, useRef as Z, useMemo as ye, useCallback as se, useEffect as ae, useLayoutEffect as ke } from "react";
3
- import { RPPage as be } from "./page/RPPage.js";
4
- import { useVirtualReactWindow as gt } from "../utils/hooks/useVirtualReactWindow.js";
5
- import { useVirtualScrollContext as vt } from "../contexts/VirtualScrollContext.js";
6
- import { a as _t, u as wt } from "../PaginationContext-9217cab4.js";
7
- import { useDocumentContext as Ct } from "../contexts/RPDocumentContext.js";
8
- import { useViewModeContext as St } from "../contexts/ViewModeContext.js";
9
- import { useScrollModeContext as It } from "../contexts/ScrollModeContext.js";
10
- import { SelectionMode as Tt, ViewMode as ze, ScrollMode as Le, ErrorType as Rt } from "../utils/types.js";
11
- import { useFullScreenContext as xt } from "../contexts/FullScreenContext.js";
12
- import { c as me } from "../clsx-0c6e471a.js";
13
- import { DualPage as yt } from "./page/DualPage.js";
14
- import { DualPageWithCover as bt } from "./page/DualPageWithCover.js";
15
- import { SinglePage as zt } from "./page/SinglePage.js";
16
- import { useMousePressed as Lt } from "../utils/hooks/useMousePressed.js";
17
- import { useSelectionModeContext as Mt } from "../contexts/SelectionModeContext.js";
18
- import { useGrabScroll as Et } from "../utils/hooks/useGrabScroll.js";
19
- import { usePinch as Ot } from "../utils/hooks/usePinch.js";
20
- import { useInitialStateContext as Wt } from "../contexts/InitialStateContext.js";
21
- import { useLayoutContainer as At } from "../contexts/LayoutContainerContext.js";
22
- import { useDebounce as Nt } from "../utils/hooks/useDebounce.js";
23
- import { useLoaderContext as Pt } from "../contexts/LoaderContext.js";
24
- import Ft from "./ui/PasswordModal.js";
25
- import { usePresentPage as Dt } from "../utils/hooks/usePresentPage.js";
26
- import { getPageFromPosition as Ht } from "../utils/calculatePage.js";
27
- import { useDocumentPasswordContext as kt } from "../contexts/DocumentPasswordContext.js";
28
- import { LayoutContainer as Ut } from "./layout/LayoutContainer.js";
29
- import { LayoutWrapper as Vt } from "./layout/LayoutWrapper.js";
30
- import { useEventCallbackContext as qt } from "../contexts/EventCallbackContext.js";
31
- import { useCopyText as Gt } from "../utils/hooks/useCopyText.js";
32
- import { useTextSelection as $t } from "../utils/hooks/useTextSelection.js";
33
- import { OutputScale as jt } from "pdfjs-dist";
34
- import { approximateFraction as Ue } from "../utils/approximateFragtion.js";
35
- import { useSmoothScaleContext as Bt } from "../contexts/SmoothScaleContext.js";
1
+ import { jsx as x, jsxs as _e, Fragment as st } from "react/jsx-runtime";
2
+ import { createElement as ue, PureComponent as at, Component as lt, memo as ct, useRef as G, useMemo as we, useCallback as ae, useEffect as ne } from "react";
3
+ import { RPPage as Ce } from "./page/RPPage.js";
4
+ import { useVirtualReactWindow as ut } from "../utils/hooks/useVirtualReactWindow.js";
5
+ import { useVirtualScrollContext as dt } from "../contexts/VirtualScrollContext.js";
6
+ import { a as ft, u as mt } from "../PaginationContext-9217cab4.js";
7
+ import { useDocumentContext as pt } from "../contexts/RPDocumentContext.js";
8
+ import { useViewModeContext as ht } from "../contexts/ViewModeContext.js";
9
+ import { useScrollModeContext as gt } from "../contexts/ScrollModeContext.js";
10
+ import { SelectionMode as vt, ViewMode as Se, ScrollMode as Ie, ErrorType as _t } from "../utils/types.js";
11
+ import { useFullScreenContext as wt } from "../contexts/FullScreenContext.js";
12
+ import { c as ce } from "../clsx-0c6e471a.js";
13
+ import { DualPage as Ct } from "./page/DualPage.js";
14
+ import { DualPageWithCover as St } from "./page/DualPageWithCover.js";
15
+ import { SinglePage as It } from "./page/SinglePage.js";
16
+ import { useMousePressed as Tt } from "../utils/hooks/useMousePressed.js";
17
+ import { useSelectionModeContext as Rt } from "../contexts/SelectionModeContext.js";
18
+ import { useGrabScroll as xt } from "../utils/hooks/useGrabScroll.js";
19
+ import { usePinch as yt } from "../utils/hooks/usePinch.js";
20
+ import { useInitialStateContext as bt } from "../contexts/InitialStateContext.js";
21
+ import { useLayoutContainer as zt } from "../contexts/LayoutContainerContext.js";
22
+ import { useDebounce as Lt } from "../utils/hooks/useDebounce.js";
23
+ import { useLoaderContext as Mt } from "../contexts/LoaderContext.js";
24
+ import Et from "./ui/PasswordModal.js";
25
+ import { usePresentPage as Ot } from "../utils/hooks/usePresentPage.js";
26
+ import { getPageFromPosition as Wt } from "../utils/calculatePage.js";
27
+ import { useDocumentPasswordContext as Pt } from "../contexts/DocumentPasswordContext.js";
28
+ import { LayoutContainer as At } from "./layout/LayoutContainer.js";
29
+ import { LayoutWrapper as Nt } from "./layout/LayoutWrapper.js";
30
+ import { useEventCallbackContext as Ft } from "../contexts/EventCallbackContext.js";
31
+ import { useCopyText as Dt } from "../utils/hooks/useCopyText.js";
32
+ import { useTextSelection as Ht } from "../utils/hooks/useTextSelection.js";
33
+ import { approximateFraction as Pe } from "../utils/approximateFragtion.js";
36
34
  import "./page/CanvasLayer.js";
37
- import "../contexts/PagesRotateContext.js";
38
- import "../contexts/RotationContext.js";
35
+ import "../contexts/ZoomContext.js";
39
36
  import "../utils/appConsole.js";
37
+ import "../utils/constants.js";
38
+ import "../utils/getZoomLevel.js";
39
+ import "../de_DE-a553b162.js";
40
+ import "../contexts/RotationContext.js";
40
41
  import "../utils/hooks/useLoadPdf.js";
42
+ import "@pdf-viewer/pdfium";
43
+ import "@pdf-viewer/pdfium/compat";
41
44
  import "../utils/getThumbnailViewport.js";
42
45
  import "../contexts/ConfigContext.js";
43
- import "../de_DE-a553b162.js";
44
46
  import "../utils/hooks/usePdfProperties.js";
45
47
  import "../utils/convertPdfDate.js";
46
48
  import "../utils/formatFileSize.js";
49
+ import "../contexts/GlobalCurrentPage.js";
50
+ import "../contexts/PagesRotateContext.js";
47
51
  import "../contexts/RenderQueueProvider.js";
48
52
  import "../utils/Queue.js";
49
53
  import "../utils/renderPage.js";
50
- import "../contexts/GlobalCurrentPage.js";
51
54
  import "../contexts/VirtualGridContext.js";
52
55
  import "../utils/smoothScrollTo.js";
53
56
  import "../contexts/DimensionPagesContext.js";
54
- import "../contexts/ZoomContext.js";
55
- import "../utils/constants.js";
56
- import "../utils/getZoomLevel.js";
57
57
  import "../contexts/SmoothScrollContext.js";
58
58
  import "../utils/getScrollDistance.js";
59
59
  import "./page/TextLayer.js";
@@ -85,14 +85,13 @@ import "../utils/getElementPositionInPage.js";
85
85
  import "../utils/withRef.js";
86
86
  import "./icons/LoaderIcon.js";
87
87
  import "../utils/hooks/useFullScreen.js";
88
- import "../utils/hooks/useAccumulateFactor.js";
89
88
  import "../contexts/LocalizationContext.js";
90
89
  import "../utils/hooks/useLocalization.js";
91
90
  import "../RPLayout.module-b4b23e29.js";
92
91
  import "../contexts/ThemeContext.js";
93
92
  import "../contexts/DarkModeContext.js";
94
93
  import "../utils/hooks/useDarkMode.js";
95
- const V = {
94
+ const U = {
96
95
  "rp-pages": "_rp-pages_u7m2r_1",
97
96
  "rp-page-scrolling-wrapper": "_rp-page-scrolling-wrapper_u7m2r_6",
98
97
  "rp-pages-horizontal-scroll": "_rp-pages-horizontal-scroll_u7m2r_11",
@@ -104,54 +103,54 @@ const V = {
104
103
  "rp-not-supported": "_rp-not-supported_u7m2r_86",
105
104
  "rp-not-supported-content": "_rp-not-supported-content_u7m2r_102"
106
105
  };
107
- function Ae() {
108
- return Ae = Object.assign ? Object.assign.bind() : function(n) {
106
+ function be() {
107
+ return be = Object.assign ? Object.assign.bind() : function(n) {
109
108
  for (var e = 1; e < arguments.length; e++) {
110
109
  var t = arguments[e];
111
110
  for (var r in t)
112
111
  ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
113
112
  }
114
113
  return n;
115
- }, Ae.apply(null, arguments);
114
+ }, be.apply(null, arguments);
116
115
  }
117
- function Ve(n) {
116
+ function Ae(n) {
118
117
  if (n === void 0)
119
118
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
120
119
  return n;
121
120
  }
122
- function Ne(n, e) {
123
- return Ne = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, r) {
121
+ function ze(n, e) {
122
+ return ze = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, r) {
124
123
  return t.__proto__ = r, t;
125
- }, Ne(n, e);
124
+ }, ze(n, e);
126
125
  }
127
- function Kt(n, e) {
128
- n.prototype = Object.create(e.prototype), n.prototype.constructor = n, Ne(n, e);
126
+ function kt(n, e) {
127
+ n.prototype = Object.create(e.prototype), n.prototype.constructor = n, ze(n, e);
129
128
  }
130
- var qe = Number.isNaN || function(e) {
129
+ var Ne = Number.isNaN || function(e) {
131
130
  return typeof e == "number" && e !== e;
132
131
  };
133
- function Zt(n, e) {
134
- return !!(n === e || qe(n) && qe(e));
132
+ function Ut(n, e) {
133
+ return !!(n === e || Ne(n) && Ne(e));
135
134
  }
136
- function Xt(n, e) {
135
+ function Vt(n, e) {
137
136
  if (n.length !== e.length)
138
137
  return !1;
139
138
  for (var t = 0; t < n.length; t++)
140
- if (!Zt(n[t], e[t]))
139
+ if (!Ut(n[t], e[t]))
141
140
  return !1;
142
141
  return !0;
143
142
  }
144
- function Me(n, e) {
145
- e === void 0 && (e = Xt);
146
- var t, r = [], i, l = !1;
143
+ function Te(n, e) {
144
+ e === void 0 && (e = Vt);
145
+ var t, r = [], s, l = !1;
147
146
  function a() {
148
- for (var c = [], d = 0; d < arguments.length; d++)
149
- c[d] = arguments[d];
150
- return l && t === this && e(c, r) || (i = n.apply(this, c), l = !0, t = this, r = c), i;
147
+ for (var c = [], f = 0; f < arguments.length; f++)
148
+ c[f] = arguments[f];
149
+ return l && t === this && e(c, r) || (s = n.apply(this, c), l = !0, t = this, r = c), s;
151
150
  }
152
151
  return a;
153
152
  }
154
- function Ge(n, e) {
153
+ function Fe(n, e) {
155
154
  if (n == null)
156
155
  return {};
157
156
  var t = {};
@@ -163,131 +162,131 @@ function Ge(n, e) {
163
162
  }
164
163
  return t;
165
164
  }
166
- var Yt = typeof performance == "object" && typeof performance.now == "function", $e = Yt ? function() {
165
+ var qt = typeof performance == "object" && typeof performance.now == "function", De = qt ? function() {
167
166
  return performance.now();
168
167
  } : function() {
169
168
  return Date.now();
170
169
  };
171
- function je(n) {
170
+ function He(n) {
172
171
  cancelAnimationFrame(n.id);
173
172
  }
174
- function Jt(n, e) {
175
- var t = $e();
173
+ function Gt(n, e) {
174
+ var t = De();
176
175
  function r() {
177
- $e() - t >= e ? n.call(null) : i.id = requestAnimationFrame(r);
176
+ De() - t >= e ? n.call(null) : s.id = requestAnimationFrame(r);
178
177
  }
179
- var i = {
178
+ var s = {
180
179
  id: requestAnimationFrame(r)
181
180
  };
182
- return i;
181
+ return s;
183
182
  }
184
- var Ee = -1;
185
- function Qt(n) {
186
- if (n === void 0 && (n = !1), Ee === -1 || n) {
183
+ var Re = -1;
184
+ function $t(n) {
185
+ if (n === void 0 && (n = !1), Re === -1 || n) {
187
186
  var e = document.createElement("div"), t = e.style;
188
- t.width = "50px", t.height = "50px", t.overflow = "scroll", document.body.appendChild(e), Ee = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
187
+ t.width = "50px", t.height = "50px", t.overflow = "scroll", document.body.appendChild(e), Re = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
189
188
  }
190
- return Ee;
189
+ return Re;
191
190
  }
192
- var re = null;
193
- function Be(n) {
194
- if (n === void 0 && (n = !1), re === null || n) {
191
+ var se = null;
192
+ function ke(n) {
193
+ if (n === void 0 && (n = !1), se === null || n) {
195
194
  var e = document.createElement("div"), t = e.style;
196
195
  t.width = "50px", t.height = "50px", t.overflow = "scroll", t.direction = "rtl";
197
- var r = document.createElement("div"), i = r.style;
198
- return i.width = "100px", i.height = "100px", e.appendChild(r), document.body.appendChild(e), e.scrollLeft > 0 ? re = "positive-descending" : (e.scrollLeft = 1, e.scrollLeft === 0 ? re = "negative" : re = "positive-ascending"), document.body.removeChild(e), re;
196
+ var r = document.createElement("div"), s = r.style;
197
+ return s.width = "100px", s.height = "100px", e.appendChild(r), document.body.appendChild(e), e.scrollLeft > 0 ? se = "positive-descending" : (e.scrollLeft = 1, e.scrollLeft === 0 ? se = "negative" : se = "positive-ascending"), document.body.removeChild(e), se;
199
198
  }
200
- return re;
199
+ return se;
201
200
  }
202
- var er = 150, tr = function(e) {
201
+ var jt = 150, Bt = function(e) {
203
202
  var t = e.columnIndex;
204
203
  e.data;
205
204
  var r = e.rowIndex;
206
205
  return r + ":" + t;
207
- }, he = null, ge = null, ve = null;
208
- process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (he = /* @__PURE__ */ new WeakSet(), ge = /* @__PURE__ */ new WeakSet(), ve = /* @__PURE__ */ new WeakSet());
209
- function rr(n) {
210
- var e, t = n.getColumnOffset, r = n.getColumnStartIndexForOffset, i = n.getColumnStopIndexForStartIndex, l = n.getColumnWidth, a = n.getEstimatedTotalHeight, c = n.getEstimatedTotalWidth, d = n.getOffsetForColumnAndAlignment, v = n.getOffsetForRowAndAlignment, g = n.getRowHeight, C = n.getRowOffset, s = n.getRowStartIndexForOffset, m = n.getRowStopIndexForStartIndex, O = n.initInstanceProps, _ = n.shouldResetStyleCacheOnItemSizeChange, N = n.validateProps;
211
- return e = /* @__PURE__ */ function(y) {
212
- Kt(S, y);
213
- function S(W) {
206
+ }, de = null, fe = null, me = null;
207
+ process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (de = /* @__PURE__ */ new WeakSet(), fe = /* @__PURE__ */ new WeakSet(), me = /* @__PURE__ */ new WeakSet());
208
+ function Kt(n) {
209
+ var e, t = n.getColumnOffset, r = n.getColumnStartIndexForOffset, s = n.getColumnStopIndexForStartIndex, l = n.getColumnWidth, a = n.getEstimatedTotalHeight, c = n.getEstimatedTotalWidth, f = n.getOffsetForColumnAndAlignment, g = n.getOffsetForRowAndAlignment, h = n.getRowHeight, _ = n.getRowOffset, i = n.getRowStartIndexForOffset, y = n.getRowStopIndexForStartIndex, w = n.initInstanceProps, S = n.shouldResetStyleCacheOnItemSizeChange, D = n.validateProps;
210
+ return e = /* @__PURE__ */ function(b) {
211
+ kt(I, b);
212
+ function I(P) {
214
213
  var o;
215
- return o = y.call(this, W) || this, o._instanceProps = O(o.props, Ve(o)), o._resetIsScrollingTimeoutId = null, o._outerRef = void 0, o.state = {
216
- instance: Ve(o),
214
+ return o = b.call(this, P) || this, o._instanceProps = w(o.props, Ae(o)), o._resetIsScrollingTimeoutId = null, o._outerRef = void 0, o.state = {
215
+ instance: Ae(o),
217
216
  isScrolling: !1,
218
217
  horizontalScrollDirection: "forward",
219
218
  scrollLeft: typeof o.props.initialScrollLeft == "number" ? o.props.initialScrollLeft : 0,
220
219
  scrollTop: typeof o.props.initialScrollTop == "number" ? o.props.initialScrollTop : 0,
221
220
  scrollUpdateWasRequested: !1,
222
221
  verticalScrollDirection: "forward"
223
- }, o._callOnItemsRendered = void 0, o._callOnItemsRendered = Me(function(f, u, p, w, h, I, z, E) {
222
+ }, o._callOnItemsRendered = void 0, o._callOnItemsRendered = Te(function(u, d, m, C, p, T, z, L) {
224
223
  return o.props.onItemsRendered({
225
- overscanColumnStartIndex: f,
226
- overscanColumnStopIndex: u,
227
- overscanRowStartIndex: p,
228
- overscanRowStopIndex: w,
229
- visibleColumnStartIndex: h,
230
- visibleColumnStopIndex: I,
224
+ overscanColumnStartIndex: u,
225
+ overscanColumnStopIndex: d,
226
+ overscanRowStartIndex: m,
227
+ overscanRowStopIndex: C,
228
+ visibleColumnStartIndex: p,
229
+ visibleColumnStopIndex: T,
231
230
  visibleRowStartIndex: z,
232
- visibleRowStopIndex: E
231
+ visibleRowStopIndex: L
233
232
  });
234
- }), o._callOnScroll = void 0, o._callOnScroll = Me(function(f, u, p, w, h) {
233
+ }), o._callOnScroll = void 0, o._callOnScroll = Te(function(u, d, m, C, p) {
235
234
  return o.props.onScroll({
236
- horizontalScrollDirection: p,
237
- scrollLeft: f,
238
- scrollTop: u,
239
- verticalScrollDirection: w,
240
- scrollUpdateWasRequested: h
235
+ horizontalScrollDirection: m,
236
+ scrollLeft: u,
237
+ scrollTop: d,
238
+ verticalScrollDirection: C,
239
+ scrollUpdateWasRequested: p
241
240
  });
242
- }), o._getItemStyle = void 0, o._getItemStyle = function(f, u) {
243
- var p = o.props, w = p.columnWidth, h = p.direction, I = p.rowHeight, z = o._getItemStyleCache(_ && w, _ && h, _ && I), E = f + ":" + u, T;
244
- if (z.hasOwnProperty(E))
245
- T = z[E];
241
+ }), o._getItemStyle = void 0, o._getItemStyle = function(u, d) {
242
+ var m = o.props, C = m.columnWidth, p = m.direction, T = m.rowHeight, z = o._getItemStyleCache(S && C, S && p, S && T), L = u + ":" + d, M;
243
+ if (z.hasOwnProperty(L))
244
+ M = z[L];
246
245
  else {
247
- var L = t(o.props, u, o._instanceProps), R = h === "rtl";
248
- z[E] = T = {
246
+ var E = t(o.props, d, o._instanceProps), R = p === "rtl";
247
+ z[L] = M = {
249
248
  position: "absolute",
250
- left: R ? void 0 : L,
251
- right: R ? L : void 0,
252
- top: C(o.props, f, o._instanceProps),
253
- height: g(o.props, f, o._instanceProps),
254
- width: l(o.props, u, o._instanceProps)
249
+ left: R ? void 0 : E,
250
+ right: R ? E : void 0,
251
+ top: _(o.props, u, o._instanceProps),
252
+ height: h(o.props, u, o._instanceProps),
253
+ width: l(o.props, d, o._instanceProps)
255
254
  };
256
255
  }
257
- return T;
258
- }, o._getItemStyleCache = void 0, o._getItemStyleCache = Me(function(f, u, p) {
256
+ return M;
257
+ }, o._getItemStyleCache = void 0, o._getItemStyleCache = Te(function(u, d, m) {
259
258
  return {};
260
- }), o._onScroll = function(f) {
261
- var u = f.currentTarget, p = u.clientHeight, w = u.clientWidth, h = u.scrollLeft, I = u.scrollTop, z = u.scrollHeight, E = u.scrollWidth;
262
- o.setState(function(T) {
263
- if (T.scrollLeft === h && T.scrollTop === I)
259
+ }), o._onScroll = function(u) {
260
+ var d = u.currentTarget, m = d.clientHeight, C = d.clientWidth, p = d.scrollLeft, T = d.scrollTop, z = d.scrollHeight, L = d.scrollWidth;
261
+ o.setState(function(M) {
262
+ if (M.scrollLeft === p && M.scrollTop === T)
264
263
  return null;
265
- var L = o.props.direction, R = h;
266
- if (L === "rtl")
267
- switch (Be()) {
264
+ var E = o.props.direction, R = p;
265
+ if (E === "rtl")
266
+ switch (ke()) {
268
267
  case "negative":
269
- R = -h;
268
+ R = -p;
270
269
  break;
271
270
  case "positive-descending":
272
- R = E - w - h;
271
+ R = L - C - p;
273
272
  break;
274
273
  }
275
- R = Math.max(0, Math.min(R, E - w));
276
- var P = Math.max(0, Math.min(I, z - p));
274
+ R = Math.max(0, Math.min(R, L - C));
275
+ var F = Math.max(0, Math.min(T, z - m));
277
276
  return {
278
277
  isScrolling: !0,
279
- horizontalScrollDirection: T.scrollLeft < h ? "forward" : "backward",
278
+ horizontalScrollDirection: M.scrollLeft < p ? "forward" : "backward",
280
279
  scrollLeft: R,
281
- scrollTop: P,
282
- verticalScrollDirection: T.scrollTop < I ? "forward" : "backward",
280
+ scrollTop: F,
281
+ verticalScrollDirection: M.scrollTop < T ? "forward" : "backward",
283
282
  scrollUpdateWasRequested: !1
284
283
  };
285
284
  }, o._resetIsScrollingDebounced);
286
- }, o._outerRefSetter = function(f) {
287
- var u = o.props.outerRef;
288
- o._outerRef = f, typeof u == "function" ? u(f) : u != null && typeof u == "object" && u.hasOwnProperty("current") && (u.current = f);
285
+ }, o._outerRefSetter = function(u) {
286
+ var d = o.props.outerRef;
287
+ o._outerRef = u, typeof d == "function" ? d(u) : d != null && typeof d == "object" && d.hasOwnProperty("current") && (d.current = u);
289
288
  }, o._resetIsScrollingDebounced = function() {
290
- o._resetIsScrollingTimeoutId !== null && je(o._resetIsScrollingTimeoutId), o._resetIsScrollingTimeoutId = Jt(o._resetIsScrolling, er);
289
+ o._resetIsScrollingTimeoutId !== null && He(o._resetIsScrollingTimeoutId), o._resetIsScrollingTimeoutId = Gt(o._resetIsScrolling, jt);
291
290
  }, o._resetIsScrolling = function() {
292
291
  o._resetIsScrollingTimeoutId = null, o.setState({
293
292
  isScrolling: !1
@@ -296,269 +295,269 @@ function rr(n) {
296
295
  });
297
296
  }, o;
298
297
  }
299
- S.getDerivedStateFromProps = function(o, f) {
300
- return or(o, f), N(o), null;
298
+ I.getDerivedStateFromProps = function(o, u) {
299
+ return Zt(o, u), D(o), null;
301
300
  };
302
- var b = S.prototype;
303
- return b.scrollTo = function(o) {
304
- var f = o.scrollLeft, u = o.scrollTop;
305
- f !== void 0 && (f = Math.max(0, f)), u !== void 0 && (u = Math.max(0, u)), this.setState(function(p) {
306
- return f === void 0 && (f = p.scrollLeft), u === void 0 && (u = p.scrollTop), p.scrollLeft === f && p.scrollTop === u ? null : {
307
- horizontalScrollDirection: p.scrollLeft < f ? "forward" : "backward",
308
- scrollLeft: f,
309
- scrollTop: u,
301
+ var W = I.prototype;
302
+ return W.scrollTo = function(o) {
303
+ var u = o.scrollLeft, d = o.scrollTop;
304
+ u !== void 0 && (u = Math.max(0, u)), d !== void 0 && (d = Math.max(0, d)), this.setState(function(m) {
305
+ return u === void 0 && (u = m.scrollLeft), d === void 0 && (d = m.scrollTop), m.scrollLeft === u && m.scrollTop === d ? null : {
306
+ horizontalScrollDirection: m.scrollLeft < u ? "forward" : "backward",
307
+ scrollLeft: u,
308
+ scrollTop: d,
310
309
  scrollUpdateWasRequested: !0,
311
- verticalScrollDirection: p.scrollTop < u ? "forward" : "backward"
310
+ verticalScrollDirection: m.scrollTop < d ? "forward" : "backward"
312
311
  };
313
312
  }, this._resetIsScrollingDebounced);
314
- }, b.scrollToItem = function(o) {
315
- var f = o.align, u = f === void 0 ? "auto" : f, p = o.columnIndex, w = o.rowIndex, h = this.props, I = h.columnCount, z = h.height, E = h.rowCount, T = h.width, L = this.state, R = L.scrollLeft, P = L.scrollTop, k = Qt();
316
- p !== void 0 && (p = Math.max(0, Math.min(p, I - 1))), w !== void 0 && (w = Math.max(0, Math.min(w, E - 1)));
317
- var F = a(this.props, this._instanceProps), D = c(this.props, this._instanceProps), H = D > T ? k : 0, U = F > z ? k : 0;
313
+ }, W.scrollToItem = function(o) {
314
+ var u = o.align, d = u === void 0 ? "auto" : u, m = o.columnIndex, C = o.rowIndex, p = this.props, T = p.columnCount, z = p.height, L = p.rowCount, M = p.width, E = this.state, R = E.scrollLeft, F = E.scrollTop, N = $t();
315
+ m !== void 0 && (m = Math.max(0, Math.min(m, T - 1))), C !== void 0 && (C = Math.max(0, Math.min(C, L - 1)));
316
+ var H = a(this.props, this._instanceProps), A = c(this.props, this._instanceProps), k = A > M ? N : 0, Z = H > z ? N : 0;
318
317
  this.scrollTo({
319
- scrollLeft: p !== void 0 ? d(this.props, p, u, R, this._instanceProps, U) : R,
320
- scrollTop: w !== void 0 ? v(this.props, w, u, P, this._instanceProps, H) : P
318
+ scrollLeft: m !== void 0 ? f(this.props, m, d, R, this._instanceProps, Z) : R,
319
+ scrollTop: C !== void 0 ? g(this.props, C, d, F, this._instanceProps, k) : F
321
320
  });
322
- }, b.componentDidMount = function() {
323
- var o = this.props, f = o.initialScrollLeft, u = o.initialScrollTop;
321
+ }, W.componentDidMount = function() {
322
+ var o = this.props, u = o.initialScrollLeft, d = o.initialScrollTop;
324
323
  if (this._outerRef != null) {
325
- var p = this._outerRef;
326
- typeof f == "number" && (p.scrollLeft = f), typeof u == "number" && (p.scrollTop = u);
324
+ var m = this._outerRef;
325
+ typeof u == "number" && (m.scrollLeft = u), typeof d == "number" && (m.scrollTop = d);
327
326
  }
328
327
  this._callPropsCallbacks();
329
- }, b.componentDidUpdate = function() {
330
- var o = this.props.direction, f = this.state, u = f.scrollLeft, p = f.scrollTop, w = f.scrollUpdateWasRequested;
331
- if (w && this._outerRef != null) {
332
- var h = this._outerRef;
328
+ }, W.componentDidUpdate = function() {
329
+ var o = this.props.direction, u = this.state, d = u.scrollLeft, m = u.scrollTop, C = u.scrollUpdateWasRequested;
330
+ if (C && this._outerRef != null) {
331
+ var p = this._outerRef;
333
332
  if (o === "rtl")
334
- switch (Be()) {
333
+ switch (ke()) {
335
334
  case "negative":
336
- h.scrollLeft = -u;
335
+ p.scrollLeft = -d;
337
336
  break;
338
337
  case "positive-ascending":
339
- h.scrollLeft = u;
338
+ p.scrollLeft = d;
340
339
  break;
341
340
  default:
342
- var I = h.clientWidth, z = h.scrollWidth;
343
- h.scrollLeft = z - I - u;
341
+ var T = p.clientWidth, z = p.scrollWidth;
342
+ p.scrollLeft = z - T - d;
344
343
  break;
345
344
  }
346
345
  else
347
- h.scrollLeft = Math.max(0, u);
348
- h.scrollTop = Math.max(0, p);
346
+ p.scrollLeft = Math.max(0, d);
347
+ p.scrollTop = Math.max(0, m);
349
348
  }
350
349
  this._callPropsCallbacks();
351
- }, b.componentWillUnmount = function() {
352
- this._resetIsScrollingTimeoutId !== null && je(this._resetIsScrollingTimeoutId);
353
- }, b.render = function() {
354
- var o = this.props, f = o.children, u = o.className, p = o.columnCount, w = o.direction, h = o.height, I = o.innerRef, z = o.innerElementType, E = o.innerTagName, T = o.itemData, L = o.itemKey, R = L === void 0 ? tr : L, P = o.outerElementType, k = o.outerTagName, F = o.rowCount, D = o.style, H = o.useIsScrolling, U = o.width, ee = this.state.isScrolling, Q = this._getHorizontalRangeToRender(), te = Q[0], le = Q[1], j = this._getVerticalRangeToRender(), _e = j[0], oe = j[1], Y = [];
355
- if (p > 0 && F)
356
- for (var G = _e; G <= oe; G++)
357
- for (var $ = te; $ <= le; $++)
358
- Y.push(pe(f, {
359
- columnIndex: $,
360
- data: T,
361
- isScrolling: H ? ee : void 0,
350
+ }, W.componentWillUnmount = function() {
351
+ this._resetIsScrollingTimeoutId !== null && He(this._resetIsScrollingTimeoutId);
352
+ }, W.render = function() {
353
+ var o = this.props, u = o.children, d = o.className, m = o.columnCount, C = o.direction, p = o.height, T = o.innerRef, z = o.innerElementType, L = o.innerTagName, M = o.itemData, E = o.itemKey, R = E === void 0 ? Bt : E, F = o.outerElementType, N = o.outerTagName, H = o.rowCount, A = o.style, k = o.useIsScrolling, Z = o.width, J = this.state.isScrolling, Q = this._getHorizontalRangeToRender(), ie = Q[0], j = Q[1], le = this._getVerticalRangeToRender(), X = le[0], Y = le[1], ee = [];
354
+ if (m > 0 && H)
355
+ for (var B = X; B <= Y; B++)
356
+ for (var K = ie; K <= j; K++)
357
+ ee.push(ue(u, {
358
+ columnIndex: K,
359
+ data: M,
360
+ isScrolling: k ? J : void 0,
362
361
  key: R({
363
- columnIndex: $,
364
- data: T,
365
- rowIndex: G
362
+ columnIndex: K,
363
+ data: M,
364
+ rowIndex: B
366
365
  }),
367
- rowIndex: G,
368
- style: this._getItemStyle(G, $)
366
+ rowIndex: B,
367
+ style: this._getItemStyle(B, K)
369
368
  }));
370
- var ce = a(this.props, this._instanceProps), ue = c(this.props, this._instanceProps);
371
- return pe(P || k || "div", {
372
- className: u,
369
+ var pe = a(this.props, this._instanceProps), te = c(this.props, this._instanceProps);
370
+ return ue(F || N || "div", {
371
+ className: d,
373
372
  onScroll: this._onScroll,
374
373
  ref: this._outerRefSetter,
375
- style: Ae({
374
+ style: be({
376
375
  position: "relative",
377
- height: h,
378
- width: U,
376
+ height: p,
377
+ width: Z,
379
378
  overflow: "auto",
380
379
  WebkitOverflowScrolling: "touch",
381
380
  willChange: "transform",
382
- direction: w
383
- }, D)
384
- }, pe(z || E || "div", {
385
- children: Y,
386
- ref: I,
381
+ direction: C
382
+ }, A)
383
+ }, ue(z || L || "div", {
384
+ children: ee,
385
+ ref: T,
387
386
  style: {
388
- height: ce,
389
- pointerEvents: ee ? "none" : void 0,
390
- width: ue
387
+ height: pe,
388
+ pointerEvents: J ? "none" : void 0,
389
+ width: te
391
390
  }
392
391
  }));
393
- }, b._callPropsCallbacks = function() {
394
- var o = this.props, f = o.columnCount, u = o.onItemsRendered, p = o.onScroll, w = o.rowCount;
395
- if (typeof u == "function" && f > 0 && w > 0) {
396
- var h = this._getHorizontalRangeToRender(), I = h[0], z = h[1], E = h[2], T = h[3], L = this._getVerticalRangeToRender(), R = L[0], P = L[1], k = L[2], F = L[3];
397
- this._callOnItemsRendered(I, z, R, P, E, T, k, F);
392
+ }, W._callPropsCallbacks = function() {
393
+ var o = this.props, u = o.columnCount, d = o.onItemsRendered, m = o.onScroll, C = o.rowCount;
394
+ if (typeof d == "function" && u > 0 && C > 0) {
395
+ var p = this._getHorizontalRangeToRender(), T = p[0], z = p[1], L = p[2], M = p[3], E = this._getVerticalRangeToRender(), R = E[0], F = E[1], N = E[2], H = E[3];
396
+ this._callOnItemsRendered(T, z, R, F, L, M, N, H);
398
397
  }
399
- if (typeof p == "function") {
400
- var D = this.state, H = D.horizontalScrollDirection, U = D.scrollLeft, ee = D.scrollTop, Q = D.scrollUpdateWasRequested, te = D.verticalScrollDirection;
401
- this._callOnScroll(U, ee, H, te, Q);
398
+ if (typeof m == "function") {
399
+ var A = this.state, k = A.horizontalScrollDirection, Z = A.scrollLeft, J = A.scrollTop, Q = A.scrollUpdateWasRequested, ie = A.verticalScrollDirection;
400
+ this._callOnScroll(Z, J, k, ie, Q);
402
401
  }
403
- }, b._getHorizontalRangeToRender = function() {
404
- var o = this.props, f = o.columnCount, u = o.overscanColumnCount, p = o.overscanColumnsCount, w = o.overscanCount, h = o.rowCount, I = this.state, z = I.horizontalScrollDirection, E = I.isScrolling, T = I.scrollLeft, L = u || p || w || 1;
405
- if (f === 0 || h === 0)
402
+ }, W._getHorizontalRangeToRender = function() {
403
+ var o = this.props, u = o.columnCount, d = o.overscanColumnCount, m = o.overscanColumnsCount, C = o.overscanCount, p = o.rowCount, T = this.state, z = T.horizontalScrollDirection, L = T.isScrolling, M = T.scrollLeft, E = d || m || C || 1;
404
+ if (u === 0 || p === 0)
406
405
  return [0, 0, 0, 0];
407
- var R = r(this.props, T, this._instanceProps), P = i(this.props, R, T, this._instanceProps), k = !E || z === "backward" ? Math.max(1, L) : 1, F = !E || z === "forward" ? Math.max(1, L) : 1;
408
- return [Math.max(0, R - k), Math.max(0, Math.min(f - 1, P + F)), R, P];
409
- }, b._getVerticalRangeToRender = function() {
410
- var o = this.props, f = o.columnCount, u = o.overscanCount, p = o.overscanRowCount, w = o.overscanRowsCount, h = o.rowCount, I = this.state, z = I.isScrolling, E = I.verticalScrollDirection, T = I.scrollTop, L = p || w || u || 1;
411
- if (f === 0 || h === 0)
406
+ var R = r(this.props, M, this._instanceProps), F = s(this.props, R, M, this._instanceProps), N = !L || z === "backward" ? Math.max(1, E) : 1, H = !L || z === "forward" ? Math.max(1, E) : 1;
407
+ return [Math.max(0, R - N), Math.max(0, Math.min(u - 1, F + H)), R, F];
408
+ }, W._getVerticalRangeToRender = function() {
409
+ var o = this.props, u = o.columnCount, d = o.overscanCount, m = o.overscanRowCount, C = o.overscanRowsCount, p = o.rowCount, T = this.state, z = T.isScrolling, L = T.verticalScrollDirection, M = T.scrollTop, E = m || C || d || 1;
410
+ if (u === 0 || p === 0)
412
411
  return [0, 0, 0, 0];
413
- var R = s(this.props, T, this._instanceProps), P = m(this.props, R, T, this._instanceProps), k = !z || E === "backward" ? Math.max(1, L) : 1, F = !z || E === "forward" ? Math.max(1, L) : 1;
414
- return [Math.max(0, R - k), Math.max(0, Math.min(h - 1, P + F)), R, P];
415
- }, S;
416
- }(mt), e.defaultProps = {
412
+ var R = i(this.props, M, this._instanceProps), F = y(this.props, R, M, this._instanceProps), N = !z || L === "backward" ? Math.max(1, E) : 1, H = !z || L === "forward" ? Math.max(1, E) : 1;
413
+ return [Math.max(0, R - N), Math.max(0, Math.min(p - 1, F + H)), R, F];
414
+ }, I;
415
+ }(at), e.defaultProps = {
417
416
  direction: "ltr",
418
417
  itemData: void 0,
419
418
  useIsScrolling: !1
420
419
  }, e;
421
420
  }
422
- var or = function(e, t) {
423
- var r = e.children, i = e.direction, l = e.height, a = e.innerTagName, c = e.outerTagName, d = e.overscanColumnsCount, v = e.overscanCount, g = e.overscanRowsCount, C = e.width, s = t.instance;
421
+ var Zt = function(e, t) {
422
+ var r = e.children, s = e.direction, l = e.height, a = e.innerTagName, c = e.outerTagName, f = e.overscanColumnsCount, g = e.overscanCount, h = e.overscanRowsCount, _ = e.width, i = t.instance;
424
423
  if (process.env.NODE_ENV !== "production") {
425
- if (typeof v == "number" && he && !he.has(s) && (he.add(s), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof d == "number" || typeof g == "number") && ge && !ge.has(s) && (ge.add(s), console.warn("The overscanColumnsCount and overscanRowsCount props have been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (a != null || c != null) && ve && !ve.has(s) && (ve.add(s), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.")), r == null)
424
+ if (typeof g == "number" && de && !de.has(i) && (de.add(i), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof f == "number" || typeof h == "number") && fe && !fe.has(i) && (fe.add(i), console.warn("The overscanColumnsCount and overscanRowsCount props have been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (a != null || c != null) && me && !me.has(i) && (me.add(i), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.")), r == null)
426
425
  throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (r === null ? "null" : typeof r) + '" was specified.'));
427
- switch (i) {
426
+ switch (s) {
428
427
  case "ltr":
429
428
  case "rtl":
430
429
  break;
431
430
  default:
432
- throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". ' + ('"' + i + '" was specified.'));
431
+ throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". ' + ('"' + s + '" was specified.'));
433
432
  }
434
- if (typeof C != "number")
435
- throw Error('An invalid "width" prop has been specified. Grids must specify a number for width. ' + ('"' + (C === null ? "null" : typeof C) + '" was specified.'));
433
+ if (typeof _ != "number")
434
+ throw Error('An invalid "width" prop has been specified. Grids must specify a number for width. ' + ('"' + (_ === null ? "null" : typeof _) + '" was specified.'));
436
435
  if (typeof l != "number")
437
436
  throw Error('An invalid "height" prop has been specified. Grids must specify a number for height. ' + ('"' + (l === null ? "null" : typeof l) + '" was specified.'));
438
437
  }
439
- }, Ke = 50, tt = function(e, t) {
440
- var r = e.rowCount, i = t.rowMetadataMap, l = t.estimatedRowHeight, a = t.lastMeasuredRowIndex, c = 0;
438
+ }, Ue = 50, Ke = function(e, t) {
439
+ var r = e.rowCount, s = t.rowMetadataMap, l = t.estimatedRowHeight, a = t.lastMeasuredRowIndex, c = 0;
441
440
  if (a >= r && (a = r - 1), a >= 0) {
442
- var d = i[a];
443
- c = d.offset + d.size;
441
+ var f = s[a];
442
+ c = f.offset + f.size;
444
443
  }
445
- var v = r - a - 1, g = v * l;
446
- return c + g;
447
- }, rt = function(e, t) {
448
- var r = e.columnCount, i = t.columnMetadataMap, l = t.estimatedColumnWidth, a = t.lastMeasuredColumnIndex, c = 0;
444
+ var g = r - a - 1, h = g * l;
445
+ return c + h;
446
+ }, Ze = function(e, t) {
447
+ var r = e.columnCount, s = t.columnMetadataMap, l = t.estimatedColumnWidth, a = t.lastMeasuredColumnIndex, c = 0;
449
448
  if (a >= r && (a = r - 1), a >= 0) {
450
- var d = i[a];
451
- c = d.offset + d.size;
449
+ var f = s[a];
450
+ c = f.offset + f.size;
452
451
  }
453
- var v = r - a - 1, g = v * l;
454
- return c + g;
455
- }, X = function(e, t, r, i) {
452
+ var g = r - a - 1, h = g * l;
453
+ return c + h;
454
+ }, $ = function(e, t, r, s) {
456
455
  var l, a, c;
457
- if (e === "column" ? (l = i.columnMetadataMap, a = t.columnWidth, c = i.lastMeasuredColumnIndex) : (l = i.rowMetadataMap, a = t.rowHeight, c = i.lastMeasuredRowIndex), r > c) {
458
- var d = 0;
456
+ if (e === "column" ? (l = s.columnMetadataMap, a = t.columnWidth, c = s.lastMeasuredColumnIndex) : (l = s.rowMetadataMap, a = t.rowHeight, c = s.lastMeasuredRowIndex), r > c) {
457
+ var f = 0;
459
458
  if (c >= 0) {
460
- var v = l[c];
461
- d = v.offset + v.size;
459
+ var g = l[c];
460
+ f = g.offset + g.size;
462
461
  }
463
- for (var g = c + 1; g <= r; g++) {
464
- var C = a(g);
465
- l[g] = {
466
- offset: d,
467
- size: C
468
- }, d += C;
462
+ for (var h = c + 1; h <= r; h++) {
463
+ var _ = a(h);
464
+ l[h] = {
465
+ offset: f,
466
+ size: _
467
+ }, f += _;
469
468
  }
470
- e === "column" ? i.lastMeasuredColumnIndex = r : i.lastMeasuredRowIndex = r;
469
+ e === "column" ? s.lastMeasuredColumnIndex = r : s.lastMeasuredRowIndex = r;
471
470
  }
472
471
  return l[r];
473
- }, Ze = function(e, t, r, i) {
472
+ }, Ve = function(e, t, r, s) {
474
473
  var l, a;
475
474
  e === "column" ? (l = r.columnMetadataMap, a = r.lastMeasuredColumnIndex) : (l = r.rowMetadataMap, a = r.lastMeasuredRowIndex);
476
475
  var c = a > 0 ? l[a].offset : 0;
477
- return c >= i ? ot(e, t, r, a, 0, i) : nr(e, t, r, Math.max(0, a), i);
478
- }, ot = function(e, t, r, i, l, a) {
479
- for (; l <= i; ) {
480
- var c = l + Math.floor((i - l) / 2), d = X(e, t, c, r).offset;
481
- if (d === a)
476
+ return c >= s ? Je(e, t, r, a, 0, s) : Jt(e, t, r, Math.max(0, a), s);
477
+ }, Je = function(e, t, r, s, l, a) {
478
+ for (; l <= s; ) {
479
+ var c = l + Math.floor((s - l) / 2), f = $(e, t, c, r).offset;
480
+ if (f === a)
482
481
  return c;
483
- d < a ? l = c + 1 : d > a && (i = c - 1);
482
+ f < a ? l = c + 1 : f > a && (s = c - 1);
484
483
  }
485
484
  return l > 0 ? l - 1 : 0;
486
- }, nr = function(e, t, r, i, l) {
487
- for (var a = e === "column" ? t.columnCount : t.rowCount, c = 1; i < a && X(e, t, i, r).offset < l; )
488
- i += c, c *= 2;
489
- return ot(e, t, r, Math.min(i, a - 1), Math.floor(i / 2), l);
490
- }, Xe = function(e, t, r, i, l, a, c) {
491
- var d = e === "column" ? t.width : t.height, v = X(e, t, r, a), g = e === "column" ? rt(t, a) : tt(t, a), C = Math.max(0, Math.min(g - d, v.offset)), s = Math.max(0, v.offset - d + c + v.size);
492
- switch (i === "smart" && (l >= s - d && l <= C + d ? i = "auto" : i = "center"), i) {
485
+ }, Jt = function(e, t, r, s, l) {
486
+ for (var a = e === "column" ? t.columnCount : t.rowCount, c = 1; s < a && $(e, t, s, r).offset < l; )
487
+ s += c, c *= 2;
488
+ return Je(e, t, r, Math.min(s, a - 1), Math.floor(s / 2), l);
489
+ }, qe = function(e, t, r, s, l, a, c) {
490
+ var f = e === "column" ? t.width : t.height, g = $(e, t, r, a), h = e === "column" ? Ze(t, a) : Ke(t, a), _ = Math.max(0, Math.min(h - f, g.offset)), i = Math.max(0, g.offset - f + c + g.size);
491
+ switch (s === "smart" && (l >= i - f && l <= _ + f ? s = "auto" : s = "center"), s) {
493
492
  case "start":
494
- return C;
493
+ return _;
495
494
  case "end":
496
- return s;
495
+ return i;
497
496
  case "center":
498
- return Math.round(s + (C - s) / 2);
497
+ return Math.round(i + (_ - i) / 2);
499
498
  case "auto":
500
499
  default:
501
- return l >= s && l <= C ? l : s > C || l < s ? s : C;
500
+ return l >= i && l <= _ ? l : i > _ || l < i ? i : _;
502
501
  }
503
- }, ir = /* @__PURE__ */ rr({
502
+ }, Qt = /* @__PURE__ */ Kt({
504
503
  getColumnOffset: function(e, t, r) {
505
- return X("column", e, t, r).offset;
504
+ return $("column", e, t, r).offset;
506
505
  },
507
506
  getColumnStartIndexForOffset: function(e, t, r) {
508
- return Ze("column", e, r, t);
507
+ return Ve("column", e, r, t);
509
508
  },
510
- getColumnStopIndexForStartIndex: function(e, t, r, i) {
511
- for (var l = e.columnCount, a = e.width, c = X("column", e, t, i), d = r + a, v = c.offset + c.size, g = t; g < l - 1 && v < d; )
512
- g++, v += X("column", e, g, i).size;
513
- return g;
509
+ getColumnStopIndexForStartIndex: function(e, t, r, s) {
510
+ for (var l = e.columnCount, a = e.width, c = $("column", e, t, s), f = r + a, g = c.offset + c.size, h = t; h < l - 1 && g < f; )
511
+ h++, g += $("column", e, h, s).size;
512
+ return h;
514
513
  },
515
514
  getColumnWidth: function(e, t, r) {
516
515
  return r.columnMetadataMap[t].size;
517
516
  },
518
- getEstimatedTotalHeight: tt,
519
- getEstimatedTotalWidth: rt,
520
- getOffsetForColumnAndAlignment: function(e, t, r, i, l, a) {
521
- return Xe("column", e, t, r, i, l, a);
517
+ getEstimatedTotalHeight: Ke,
518
+ getEstimatedTotalWidth: Ze,
519
+ getOffsetForColumnAndAlignment: function(e, t, r, s, l, a) {
520
+ return qe("column", e, t, r, s, l, a);
522
521
  },
523
- getOffsetForRowAndAlignment: function(e, t, r, i, l, a) {
524
- return Xe("row", e, t, r, i, l, a);
522
+ getOffsetForRowAndAlignment: function(e, t, r, s, l, a) {
523
+ return qe("row", e, t, r, s, l, a);
525
524
  },
526
525
  getRowOffset: function(e, t, r) {
527
- return X("row", e, t, r).offset;
526
+ return $("row", e, t, r).offset;
528
527
  },
529
528
  getRowHeight: function(e, t, r) {
530
529
  return r.rowMetadataMap[t].size;
531
530
  },
532
531
  getRowStartIndexForOffset: function(e, t, r) {
533
- return Ze("row", e, r, t);
532
+ return Ve("row", e, r, t);
534
533
  },
535
- getRowStopIndexForStartIndex: function(e, t, r, i) {
536
- for (var l = e.rowCount, a = e.height, c = X("row", e, t, i), d = r + a, v = c.offset + c.size, g = t; g < l - 1 && v < d; )
537
- g++, v += X("row", e, g, i).size;
538
- return g;
534
+ getRowStopIndexForStartIndex: function(e, t, r, s) {
535
+ for (var l = e.rowCount, a = e.height, c = $("row", e, t, s), f = r + a, g = c.offset + c.size, h = t; h < l - 1 && g < f; )
536
+ h++, g += $("row", e, h, s).size;
537
+ return h;
539
538
  },
540
539
  initInstanceProps: function(e, t) {
541
- var r = e, i = r.estimatedColumnWidth, l = r.estimatedRowHeight, a = {
540
+ var r = e, s = r.estimatedColumnWidth, l = r.estimatedRowHeight, a = {
542
541
  columnMetadataMap: {},
543
- estimatedColumnWidth: i || Ke,
544
- estimatedRowHeight: l || Ke,
542
+ estimatedColumnWidth: s || Ue,
543
+ estimatedRowHeight: l || Ue,
545
544
  lastMeasuredColumnIndex: -1,
546
545
  lastMeasuredRowIndex: -1,
547
546
  rowMetadataMap: {}
548
547
  };
549
- return t.resetAfterColumnIndex = function(c, d) {
550
- d === void 0 && (d = !0), t.resetAfterIndices({
548
+ return t.resetAfterColumnIndex = function(c, f) {
549
+ f === void 0 && (f = !0), t.resetAfterIndices({
551
550
  columnIndex: c,
552
- shouldForceUpdate: d
551
+ shouldForceUpdate: f
553
552
  });
554
- }, t.resetAfterRowIndex = function(c, d) {
555
- d === void 0 && (d = !0), t.resetAfterIndices({
553
+ }, t.resetAfterRowIndex = function(c, f) {
554
+ f === void 0 && (f = !0), t.resetAfterIndices({
556
555
  rowIndex: c,
557
- shouldForceUpdate: d
556
+ shouldForceUpdate: f
558
557
  });
559
558
  }, t.resetAfterIndices = function(c) {
560
- var d = c.columnIndex, v = c.rowIndex, g = c.shouldForceUpdate, C = g === void 0 ? !0 : g;
561
- typeof d == "number" && (a.lastMeasuredColumnIndex = Math.min(a.lastMeasuredColumnIndex, d - 1)), typeof v == "number" && (a.lastMeasuredRowIndex = Math.min(a.lastMeasuredRowIndex, v - 1)), t._getItemStyleCache(-1), C && t.forceUpdate();
559
+ var f = c.columnIndex, g = c.rowIndex, h = c.shouldForceUpdate, _ = h === void 0 ? !0 : h;
560
+ typeof f == "number" && (a.lastMeasuredColumnIndex = Math.min(a.lastMeasuredColumnIndex, f - 1)), typeof g == "number" && (a.lastMeasuredRowIndex = Math.min(a.lastMeasuredRowIndex, g - 1)), t._getItemStyleCache(-1), _ && t.forceUpdate();
562
561
  }, a;
563
562
  },
564
563
  shouldResetStyleCacheOnItemSizeChange: !1,
@@ -573,7 +572,7 @@ var or = function(e, t) {
573
572
  }
574
573
  });
575
574
  process.env.NODE_ENV;
576
- function Ye(n, e) {
575
+ function Ge(n, e) {
577
576
  for (var t in n)
578
577
  if (!(t in e))
579
578
  return !0;
@@ -582,100 +581,100 @@ function Ye(n, e) {
582
581
  return !0;
583
582
  return !1;
584
583
  }
585
- var sr = ["style"], ar = ["style"];
586
- function lr(n, e) {
587
- var t = n.style, r = Ge(n, sr), i = e.style, l = Ge(e, ar);
588
- return !Ye(t, i) && !Ye(r, l);
584
+ var Xt = ["style"], Yt = ["style"];
585
+ function er(n, e) {
586
+ var t = n.style, r = Fe(n, Xt), s = e.style, l = Fe(e, Yt);
587
+ return !Ge(t, s) && !Ge(r, l);
589
588
  }
590
- let q;
591
- typeof window < "u" ? q = window : typeof self < "u" ? q = self : q = global;
592
- let Pe = null, Fe = null;
593
- const Je = 20, Oe = q.clearTimeout, Qe = q.setTimeout, We = q.cancelAnimationFrame || q.mozCancelAnimationFrame || q.webkitCancelAnimationFrame, et = q.requestAnimationFrame || q.mozRequestAnimationFrame || q.webkitRequestAnimationFrame;
594
- We == null || et == null ? (Pe = Oe, Fe = function(e) {
595
- return Qe(e, Je);
596
- }) : (Pe = function([e, t]) {
597
- We(e), Oe(t);
598
- }, Fe = function(e) {
599
- const t = et(function() {
600
- Oe(r), e();
601
- }), r = Qe(function() {
602
- We(t), e();
603
- }, Je);
589
+ let V;
590
+ typeof window < "u" ? V = window : typeof self < "u" ? V = self : V = global;
591
+ let Le = null, Me = null;
592
+ const $e = 20, xe = V.clearTimeout, je = V.setTimeout, ye = V.cancelAnimationFrame || V.mozCancelAnimationFrame || V.webkitCancelAnimationFrame, Be = V.requestAnimationFrame || V.mozRequestAnimationFrame || V.webkitRequestAnimationFrame;
593
+ ye == null || Be == null ? (Le = xe, Me = function(e) {
594
+ return je(e, $e);
595
+ }) : (Le = function([e, t]) {
596
+ ye(e), xe(t);
597
+ }, Me = function(e) {
598
+ const t = Be(function() {
599
+ xe(r), e();
600
+ }), r = je(function() {
601
+ ye(t), e();
602
+ }, $e);
604
603
  return [t, r];
605
604
  });
606
- function cr(n) {
607
- let e, t, r, i, l, a, c;
608
- const d = typeof document < "u" && document.attachEvent;
609
- if (!d) {
610
- a = function(y) {
611
- const S = y.__resizeTriggers__, b = S.firstElementChild, W = S.lastElementChild, o = b.firstElementChild;
612
- W.scrollLeft = W.scrollWidth, W.scrollTop = W.scrollHeight, o.style.width = b.offsetWidth + 1 + "px", o.style.height = b.offsetHeight + 1 + "px", b.scrollLeft = b.scrollWidth, b.scrollTop = b.scrollHeight;
613
- }, l = function(y) {
614
- return y.offsetWidth !== y.__resizeLast__.width || y.offsetHeight !== y.__resizeLast__.height;
615
- }, c = function(y) {
616
- if (y.target.className && typeof y.target.className.indexOf == "function" && y.target.className.indexOf("contract-trigger") < 0 && y.target.className.indexOf("expand-trigger") < 0)
605
+ function tr(n) {
606
+ let e, t, r, s, l, a, c;
607
+ const f = typeof document < "u" && document.attachEvent;
608
+ if (!f) {
609
+ a = function(b) {
610
+ const I = b.__resizeTriggers__, W = I.firstElementChild, P = I.lastElementChild, o = W.firstElementChild;
611
+ P.scrollLeft = P.scrollWidth, P.scrollTop = P.scrollHeight, o.style.width = W.offsetWidth + 1 + "px", o.style.height = W.offsetHeight + 1 + "px", W.scrollLeft = W.scrollWidth, W.scrollTop = W.scrollHeight;
612
+ }, l = function(b) {
613
+ return b.offsetWidth !== b.__resizeLast__.width || b.offsetHeight !== b.__resizeLast__.height;
614
+ }, c = function(b) {
615
+ if (b.target.className && typeof b.target.className.indexOf == "function" && b.target.className.indexOf("contract-trigger") < 0 && b.target.className.indexOf("expand-trigger") < 0)
617
616
  return;
618
- const S = this;
619
- a(this), this.__resizeRAF__ && Pe(this.__resizeRAF__), this.__resizeRAF__ = Fe(function() {
620
- l(S) && (S.__resizeLast__.width = S.offsetWidth, S.__resizeLast__.height = S.offsetHeight, S.__resizeListeners__.forEach(function(o) {
621
- o.call(S, y);
617
+ const I = this;
618
+ a(this), this.__resizeRAF__ && Le(this.__resizeRAF__), this.__resizeRAF__ = Me(function() {
619
+ l(I) && (I.__resizeLast__.width = I.offsetWidth, I.__resizeLast__.height = I.offsetHeight, I.__resizeListeners__.forEach(function(o) {
620
+ o.call(I, b);
622
621
  }));
623
622
  });
624
623
  };
625
- let s = !1, m = "";
624
+ let i = !1, y = "";
626
625
  r = "animationstart";
627
- const O = "Webkit Moz O ms".split(" ");
628
- let _ = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), N = "";
626
+ const w = "Webkit Moz O ms".split(" ");
627
+ let S = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), D = "";
629
628
  {
630
- const y = document.createElement("fakeelement");
631
- if (y.style.animationName !== void 0 && (s = !0), s === !1) {
632
- for (let S = 0; S < O.length; S++)
633
- if (y.style[O[S] + "AnimationName"] !== void 0) {
634
- N = O[S], m = "-" + N.toLowerCase() + "-", r = _[S], s = !0;
629
+ const b = document.createElement("fakeelement");
630
+ if (b.style.animationName !== void 0 && (i = !0), i === !1) {
631
+ for (let I = 0; I < w.length; I++)
632
+ if (b.style[w[I] + "AnimationName"] !== void 0) {
633
+ D = w[I], y = "-" + D.toLowerCase() + "-", r = S[I], i = !0;
635
634
  break;
636
635
  }
637
636
  }
638
637
  }
639
- t = "resizeanim", e = "@" + m + "keyframes " + t + " { from { opacity: 0; } to { opacity: 0; } } ", i = m + "animation: 1ms " + t + "; ";
638
+ t = "resizeanim", e = "@" + y + "keyframes " + t + " { from { opacity: 0; } to { opacity: 0; } } ", s = y + "animation: 1ms " + t + "; ";
640
639
  }
641
- const v = function(s) {
642
- if (!s.getElementById("detectElementResize")) {
643
- const m = (e || "") + ".resize-triggers { " + (i || "") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', O = s.head || s.getElementsByTagName("head")[0], _ = s.createElement("style");
644
- _.id = "detectElementResize", _.type = "text/css", n != null && _.setAttribute("nonce", n), _.styleSheet ? _.styleSheet.cssText = m : _.appendChild(s.createTextNode(m)), O.appendChild(_);
640
+ const g = function(i) {
641
+ if (!i.getElementById("detectElementResize")) {
642
+ const y = (e || "") + ".resize-triggers { " + (s || "") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', w = i.head || i.getElementsByTagName("head")[0], S = i.createElement("style");
643
+ S.id = "detectElementResize", S.type = "text/css", n != null && S.setAttribute("nonce", n), S.styleSheet ? S.styleSheet.cssText = y : S.appendChild(i.createTextNode(y)), w.appendChild(S);
645
644
  }
646
645
  };
647
646
  return {
648
- addResizeListener: function(s, m) {
649
- if (d)
650
- s.attachEvent("onresize", m);
647
+ addResizeListener: function(i, y) {
648
+ if (f)
649
+ i.attachEvent("onresize", y);
651
650
  else {
652
- if (!s.__resizeTriggers__) {
653
- const O = s.ownerDocument, _ = q.getComputedStyle(s);
654
- _ && _.position === "static" && (s.style.position = "relative"), v(O), s.__resizeLast__ = {}, s.__resizeListeners__ = [], (s.__resizeTriggers__ = O.createElement("div")).className = "resize-triggers";
655
- const N = O.createElement("div");
656
- N.className = "expand-trigger", N.appendChild(O.createElement("div"));
657
- const y = O.createElement("div");
658
- y.className = "contract-trigger", s.__resizeTriggers__.appendChild(N), s.__resizeTriggers__.appendChild(y), s.appendChild(s.__resizeTriggers__), a(s), s.addEventListener("scroll", c, !0), r && (s.__resizeTriggers__.__animationListener__ = function(b) {
659
- b.animationName === t && a(s);
660
- }, s.__resizeTriggers__.addEventListener(r, s.__resizeTriggers__.__animationListener__));
651
+ if (!i.__resizeTriggers__) {
652
+ const w = i.ownerDocument, S = V.getComputedStyle(i);
653
+ S && S.position === "static" && (i.style.position = "relative"), g(w), i.__resizeLast__ = {}, i.__resizeListeners__ = [], (i.__resizeTriggers__ = w.createElement("div")).className = "resize-triggers";
654
+ const D = w.createElement("div");
655
+ D.className = "expand-trigger", D.appendChild(w.createElement("div"));
656
+ const b = w.createElement("div");
657
+ b.className = "contract-trigger", i.__resizeTriggers__.appendChild(D), i.__resizeTriggers__.appendChild(b), i.appendChild(i.__resizeTriggers__), a(i), i.addEventListener("scroll", c, !0), r && (i.__resizeTriggers__.__animationListener__ = function(W) {
658
+ W.animationName === t && a(i);
659
+ }, i.__resizeTriggers__.addEventListener(r, i.__resizeTriggers__.__animationListener__));
661
660
  }
662
- s.__resizeListeners__.push(m);
661
+ i.__resizeListeners__.push(y);
663
662
  }
664
663
  },
665
- removeResizeListener: function(s, m) {
666
- if (d)
667
- s.detachEvent("onresize", m);
668
- else if (s.__resizeListeners__.splice(s.__resizeListeners__.indexOf(m), 1), !s.__resizeListeners__.length) {
669
- s.removeEventListener("scroll", c, !0), s.__resizeTriggers__.__animationListener__ && (s.__resizeTriggers__.removeEventListener(r, s.__resizeTriggers__.__animationListener__), s.__resizeTriggers__.__animationListener__ = null);
664
+ removeResizeListener: function(i, y) {
665
+ if (f)
666
+ i.detachEvent("onresize", y);
667
+ else if (i.__resizeListeners__.splice(i.__resizeListeners__.indexOf(y), 1), !i.__resizeListeners__.length) {
668
+ i.removeEventListener("scroll", c, !0), i.__resizeTriggers__.__animationListener__ && (i.__resizeTriggers__.removeEventListener(r, i.__resizeTriggers__.__animationListener__), i.__resizeTriggers__.__animationListener__ = null);
670
669
  try {
671
- s.__resizeTriggers__ = !s.removeChild(s.__resizeTriggers__);
670
+ i.__resizeTriggers__ = !i.removeChild(i.__resizeTriggers__);
672
671
  } catch {
673
672
  }
674
673
  }
675
674
  }
676
675
  };
677
676
  }
678
- class ur extends pt {
677
+ class rr extends lt {
679
678
  constructor(...e) {
680
679
  super(...e), this.state = {
681
680
  height: this.props.defaultHeight || 0,
@@ -685,27 +684,27 @@ class ur extends pt {
685
684
  const {
686
685
  disableHeight: t,
687
686
  disableWidth: r,
688
- onResize: i
687
+ onResize: s
689
688
  } = this.props;
690
689
  if (this._parentNode) {
691
- const l = window.getComputedStyle(this._parentNode) || {}, a = parseFloat(l.paddingLeft || "0"), c = parseFloat(l.paddingRight || "0"), d = parseFloat(l.paddingTop || "0"), v = parseFloat(l.paddingBottom || "0"), g = this._parentNode.getBoundingClientRect(), C = g.height - d - v, s = g.width - a - c;
692
- if (!t && this.state.height !== C || !r && this.state.width !== s) {
690
+ const l = window.getComputedStyle(this._parentNode) || {}, a = parseFloat(l.paddingLeft || "0"), c = parseFloat(l.paddingRight || "0"), f = parseFloat(l.paddingTop || "0"), g = parseFloat(l.paddingBottom || "0"), h = this._parentNode.getBoundingClientRect(), _ = h.height - f - g, i = h.width - a - c;
691
+ if (!t && this.state.height !== _ || !r && this.state.width !== i) {
693
692
  this.setState({
694
- height: C,
695
- width: s
693
+ height: _,
694
+ width: i
696
695
  });
697
- const m = () => {
696
+ const y = () => {
698
697
  this._didLogDeprecationWarning || (this._didLogDeprecationWarning = !0, console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"));
699
698
  };
700
- typeof i == "function" && i({
701
- height: C,
702
- width: s,
699
+ typeof s == "function" && s({
700
+ height: _,
701
+ width: i,
703
702
  // TODO Remove these params in the next major release
704
703
  get scaledHeight() {
705
- return m(), C;
704
+ return y(), _;
706
705
  },
707
706
  get scaledWidth() {
708
- return m(), s;
707
+ return y(), i;
709
708
  }
710
709
  });
711
710
  }
@@ -723,7 +722,7 @@ class ur extends pt {
723
722
  const r = t.ownerDocument.defaultView.ResizeObserver;
724
723
  r != null ? (this._resizeObserver = new r(() => {
725
724
  this._timeoutId = setTimeout(this._onResize, 0);
726
- }), this._resizeObserver.observe(t)) : (this._detectElementResize = cr(e), this._detectElementResize.addResizeListener(t, this._onResize)), this._onResize();
725
+ }), this._resizeObserver.observe(t)) : (this._detectElementResize = tr(e), this._detectElementResize.addResizeListener(t, this._onResize)), this._onResize();
727
726
  }
728
727
  }
729
728
  componentWillUnmount() {
@@ -734,55 +733,62 @@ class ur extends pt {
734
733
  children: e,
735
734
  defaultHeight: t,
736
735
  defaultWidth: r,
737
- disableHeight: i = !1,
736
+ disableHeight: s = !1,
738
737
  disableWidth: l = !1,
739
738
  doNotBailOutOnEmptyChildren: a = !1,
740
739
  nonce: c,
741
- onResize: d,
742
- style: v = {},
743
- tagName: g = "div",
744
- ...C
740
+ onResize: f,
741
+ style: g = {},
742
+ tagName: h = "div",
743
+ ..._
745
744
  } = this.props, {
746
- height: s,
747
- width: m
748
- } = this.state, O = {
745
+ height: i,
746
+ width: y
747
+ } = this.state, w = {
749
748
  overflow: "visible"
750
- }, _ = {};
751
- let N = !1;
752
- return i || (s === 0 && (N = !0), O.height = 0, _.height = s, _.scaledHeight = s), l || (m === 0 && (N = !0), O.width = 0, _.width = m, _.scaledWidth = m), a && (N = !1), pe(g, {
749
+ }, S = {};
750
+ let D = !1;
751
+ return s || (i === 0 && (D = !0), w.height = 0, S.height = i, S.scaledHeight = i), l || (y === 0 && (D = !0), w.width = 0, S.width = y, S.scaledWidth = y), a && (D = !1), ue(h, {
753
752
  ref: this._setRef,
754
753
  style: {
755
- ...O,
756
- ...v
754
+ ...w,
755
+ ...g
757
756
  },
758
- ...C
759
- }, !N && e(_));
757
+ ..._
758
+ }, !D && e(S));
760
759
  }
761
760
  }
762
- const dr = ht(({ columnIndex: n, rowIndex: e, data: t, style: r }) => {
763
- const i = Ht(
761
+ const or = class {
762
+ get sx() {
763
+ return window.devicePixelRatio || 1;
764
+ }
765
+ get sy() {
766
+ return window.devicePixelRatio || 1;
767
+ }
768
+ }, nr = ct(({ columnIndex: n, rowIndex: e, data: t, style: r }) => {
769
+ const s = Wt(
764
770
  e,
765
771
  n,
766
772
  t.columnCount,
767
773
  t.isDualPageWithCover
768
774
  );
769
- if (i <= 0)
775
+ if (s <= 0)
770
776
  return null;
771
777
  if (t.isDualPageWithCover) {
772
- const a = i === t.totalPages && t.totalPages % 2 === 0;
773
- if (e === 0 && i === 1 || a && n === 0) {
774
- const d = t.columnWidths.reduce((v, g) => v + g, 0);
778
+ const a = s === t.totalPages && t.totalPages % 2 === 0;
779
+ if (e === 0 && s === 1 || a && n === 0) {
780
+ const f = t.columnWidths.reduce((g, h) => g + h, 0);
775
781
  return /* @__PURE__ */ x(
776
782
  "div",
777
783
  {
778
784
  style: {
779
785
  ...r,
780
- width: d,
786
+ width: f,
781
787
  display: "flex",
782
788
  justifyContent: "center",
783
789
  alignItems: "flex-start"
784
790
  },
785
- children: /* @__PURE__ */ x(be, { style: { position: "relative" }, pageNumber: i }, i)
791
+ children: /* @__PURE__ */ x(Ce, { style: { position: "relative" }, pageNumber: s }, s)
786
792
  }
787
793
  );
788
794
  }
@@ -796,229 +802,227 @@ const dr = ht(({ columnIndex: n, rowIndex: e, data: t, style: r }) => {
796
802
  justifyContent: n === 0 ? "flex-end" : "flex-start",
797
803
  alignItems: "flex-start"
798
804
  },
799
- children: /* @__PURE__ */ x(be, { style: { position: "relative" }, pageNumber: i }, i)
805
+ children: /* @__PURE__ */ x(Ce, { style: { position: "relative" }, pageNumber: s }, s)
800
806
  }
801
- ) : /* @__PURE__ */ x(be, { style: r, pageNumber: i }, i);
802
- }, lr), en = () => {
803
- const n = Z(new jt()), { initialPage: e = 1, initialScrollMode: t, instanceId: r } = Wt(), { pagesRef: i, setPagesRef: l, setContentRef: a } = At(), { scrollToPage: c } = _t();
804
- Gt(i);
807
+ ) : /* @__PURE__ */ x(Ce, { style: r, pageNumber: s }, s);
808
+ }, er), jo = () => {
809
+ const n = G(new or()), { initialPage: e = 1, initialScrollMode: t } = bt(), { pagesRef: r, setPagesRef: s, setContentRef: l } = zt(), { scrollToPage: a } = ft();
810
+ Dt(r);
805
811
  const {
806
- virtualScrollRef: d,
807
- getVirtualScrollRef: v,
812
+ virtualScrollRef: c,
813
+ getVirtualScrollRef: f,
808
814
  getPageScrollElementRef: g,
809
- getVirtualScrollableElementRef: C,
810
- setTotalInnerDimensions: s,
811
- virtualScrollableElementRef: m,
812
- totalInnerDimensions: O,
813
- pageScrollElementRef: _
814
- } = vt(), N = Z(!0), { nextPage: y, prevPage: S, setFocusedPage: b, focusedPage: W, totalPages: o } = wt(), { scrollMode: f } = It(), { viewMode: u } = St(), p = Z(null), { loading: w, error: h } = Ct(), { passwordRequired: I } = kt(), { LoaderImageComponent: z } = Pt(), E = Z(
815
- O
816
- ), T = Z({
815
+ getVirtualScrollableElementRef: h,
816
+ setTotalInnerDimensions: _,
817
+ virtualScrollableElementRef: i,
818
+ totalInnerDimensions: y,
819
+ pageScrollElementRef: w
820
+ } = dt(), S = G(!0), { nextPage: D, prevPage: b, setFocusedPage: I, focusedPage: W, totalPages: P } = mt(), { scrollMode: o } = gt(), { viewMode: u } = ht(), d = G(null), { loading: m, error: C } = pt(), { passwordRequired: p } = Pt(), { LoaderImageComponent: T } = Mt(), z = G(
821
+ y
822
+ ), L = G({
817
823
  viewMode: u,
818
- scrollMode: f
819
- }), L = Z(!1), R = Z(), { isFullScreen: P } = xt(), {
820
- pageDimension: k,
821
- rowCount: F,
822
- rowHeight: D,
823
- columnCount: H,
824
- columnWidth: U,
825
- estimatedColumnWidth: ee,
826
- estimatedRowHeight: Q,
827
- totalDimension: te
828
- } = gt(), le = Nt(O, 100), { onScroll: j, onTextSelect: _e } = qt();
829
- $t({ onTextSelect: _e, pagesRef: i });
830
- const { zoomOriginRef: oe } = Bt(), Y = Z();
831
- Dt(H, F, m, u);
832
- const G = Z({
824
+ scrollMode: o
825
+ }), M = G(!1), E = G(), { isFullScreen: R } = wt(), {
826
+ pageDimension: F,
827
+ rowCount: N,
828
+ rowHeight: H,
829
+ columnCount: A,
830
+ columnWidth: k,
831
+ estimatedColumnWidth: Z,
832
+ estimatedRowHeight: J,
833
+ totalDimension: Q
834
+ } = ut(), ie = Lt(y, 100), { onScroll: j, onTextSelect: le } = Ft();
835
+ Ht({ onTextSelect: le, pagesRef: r });
836
+ const X = G();
837
+ Ot(A, N, i, u);
838
+ const Y = G({
833
839
  scrollTop: 0,
834
840
  scrollLeft: 0
835
841
  });
836
- Ot(i);
837
- const { isPressed: $ } = Lt(), { selectionMode: ce } = Mt(), { initializeGrabScroll: ue, resetGrabState: nt } = Et({
838
- isPressed: $
839
- }), ne = ye(() => ce === Tt.HAND, [ce]), it = ye(() => {
840
- const M = Array.from({ length: H }, (A, B) => U(B));
842
+ yt(r);
843
+ const { isPressed: ee } = Tt(), { selectionMode: B } = Rt(), { initializeGrabScroll: K, resetGrabState: pe } = xt({
844
+ isPressed: ee
845
+ }), te = we(() => B === vt.HAND, [B]), Qe = we(() => {
846
+ const v = Array.from({ length: A }, (O, q) => k(q));
841
847
  return {
842
- columnCount: H,
843
- isDualPageWithCover: u === ze.DUAL_PAGE_WITH_COVER,
844
- columnWidths: M,
845
- totalPages: o
848
+ columnCount: A,
849
+ isDualPageWithCover: u === Se.DUAL_PAGE_WITH_COVER,
850
+ columnWidths: v,
851
+ totalPages: P
846
852
  };
847
- }, [H, u, U, o]), we = se(
848
- (M) => {
849
- const A = document.activeElement !== i;
850
- !P && A || (["ArrowUp", "ArrowLeft"].includes(M.key) ? (M.preventDefault(), S()) : ["ArrowDown", "ArrowRight"].includes(M.key) && (M.preventDefault(), y()));
853
+ }, [A, u, k, P]), he = ae(
854
+ (v) => {
855
+ const O = document.activeElement !== r;
856
+ !R && O || (["ArrowUp", "ArrowLeft"].includes(v.key) ? (v.preventDefault(), b()) : ["ArrowDown", "ArrowRight"].includes(v.key) && (v.preventDefault(), D()));
851
857
  },
852
- [y, S, P, f]
858
+ [D, b, R, o]
853
859
  );
854
- ae(() => (window.addEventListener("keydown", we), () => {
855
- window.removeEventListener("keydown", we);
856
- }), [we]), ke(() => {
857
- p.current && (p.current.style.position = "relative"), d && d.resetAfterIndices({
858
- columnIndex: 0,
859
- rowIndex: 0,
860
- shouldForceUpdate: !0
861
- });
862
- }, [F, H, k, d]);
863
- const st = se(
864
- (M, A) => {
865
- if (!m)
860
+ ne(() => (window.addEventListener("keydown", he), () => {
861
+ window.removeEventListener("keydown", he);
862
+ }), [he]), ne(() => {
863
+ if (d.current && (d.current.style.position = "relative"), !!c)
864
+ for (let v = 0; v < N; v++)
865
+ for (let O = 0; O < A; O++)
866
+ c.resetAfterIndices({
867
+ columnIndex: O,
868
+ rowIndex: v,
869
+ shouldForceUpdate: !0
870
+ });
871
+ }, [N, A, F, c]);
872
+ const Xe = ae(
873
+ (v, O) => {
874
+ if (!i)
866
875
  return { scrollTop: 0, scrollLeft: 0 };
867
- const B = G.current.scrollTop > A, K = G.current.scrollLeft > M;
868
- return B || K ? G.current : {
869
- scrollTop: m.scrollTop,
870
- scrollLeft: m.scrollLeft
876
+ const q = Y.current.scrollTop > O, re = Y.current.scrollLeft > v;
877
+ return q || re ? Y.current : {
878
+ scrollTop: i.scrollTop,
879
+ scrollLeft: i.scrollLeft
871
880
  };
872
881
  },
873
- [m]
874
- ), De = se(
875
- (M, A) => {
876
- if (T.current.viewMode !== u || T.current.scrollMode !== f) {
877
- Y.current && clearTimeout(Y.current), L.current = !0, c(W, "auto"), Y.current = setTimeout(() => {
882
+ [i]
883
+ ), Ee = ae(
884
+ (v, O) => {
885
+ if (L.current.viewMode !== u || L.current.scrollMode !== o) {
886
+ X.current && clearTimeout(X.current), M.current = !0, a(W, "auto"), X.current = setTimeout(() => {
878
887
  requestAnimationFrame(() => {
879
- T.current = { viewMode: u, scrollMode: f };
888
+ L.current = { viewMode: u, scrollMode: o };
880
889
  });
881
890
  }, 100);
882
891
  return;
883
892
  }
884
- const K = M.scrollTop, ie = M.scrollLeft;
885
- if (!A.height || !A.width)
893
+ const re = v.scrollTop, ge = v.scrollLeft;
894
+ if (!O.height || !O.width)
886
895
  return;
887
- L.current = !0;
888
- const { height: J, width: Ce } = A, { height: Se, width: He } = E.current;
889
- if (Se === J && He === Ce)
896
+ M.current = !0;
897
+ const { height: oe, width: ve } = O, { height: Oe, width: We } = z.current;
898
+ if (Oe === oe && We === ve)
890
899
  return;
891
- let Ie, Te;
892
- const Re = oe.current;
893
- if (Re && m) {
894
- const de = m.getBoundingClientRect(), fe = J / Se - 1, ut = Re.x - de.left + ie, dt = Re.y - de.top + K;
895
- Ie = Math.round(K + dt * fe) || 0, Te = Math.round(ie + ut * fe) || 0, oe.current = null;
896
- } else {
897
- const de = K / Se * J, fe = ie / He * Ce;
898
- Ie = Math.round(Math.min(de, J)) || 0, Te = Math.round(Math.min(fe, Ce)) || 0;
899
- }
900
- m == null || m.scrollTo({
901
- top: Ie,
902
- left: Te,
903
- behavior: "auto"
904
- }), E.current = {
905
- height: A.height,
906
- width: A.width
900
+ const rt = re / Oe * oe, ot = ge / We * ve, nt = Math.round(Math.min(rt, oe)) || 0, it = Math.round(Math.min(ot, ve)) || 0;
901
+ E.current = setTimeout(() => {
902
+ requestAnimationFrame(() => {
903
+ i == null || i.scrollTo({
904
+ top: nt,
905
+ left: it,
906
+ behavior: "auto"
907
+ });
908
+ });
909
+ }, 0), z.current = {
910
+ height: O.height,
911
+ width: O.width
907
912
  };
908
913
  },
909
- [m, u, f, c, oe]
914
+ [i, u, o, a]
910
915
  );
911
- ke(() => {
912
- clearTimeout(R.current);
913
- const M = Array.from({ length: F }).reduce(
914
- (K, ie, J) => K + D(J),
916
+ ne(() => {
917
+ clearTimeout(E.current);
918
+ const v = Array.from({ length: N }).reduce(
919
+ (re, ge, oe) => re + H(oe),
915
920
  0
916
- ), A = Array.from({ length: H }).reduce(
917
- (K, ie, J) => K + U(J),
921
+ ), O = Array.from({ length: A }).reduce(
922
+ (re, ge, oe) => re + k(oe),
918
923
  0
919
- ), B = st(A, M);
920
- G.current = B, De(B, { height: M, width: A }), s({
921
- height: M,
922
- width: A
924
+ ), q = Xe(O, v);
925
+ Y.current = q, Ee(q, { height: v, width: O }), _({
926
+ height: v,
927
+ width: O
923
928
  });
924
- }, [k, F, H, De]);
925
- const at = se(
926
- (M) => {
927
- G.current = {
928
- scrollTop: M.scrollTop,
929
- scrollLeft: M.scrollLeft
929
+ }, [F, N, A, Ee]);
930
+ const Ye = ae(
931
+ (v) => {
932
+ Y.current = {
933
+ scrollTop: v.scrollTop,
934
+ scrollLeft: v.scrollLeft
930
935
  };
931
936
  },
932
- [m]
937
+ [i]
933
938
  );
934
- ae(() => {
939
+ ne(() => {
935
940
  if (j)
936
- return _ && _.addEventListener("scroll", j), m && m.addEventListener("scroll", j), () => {
937
- _ == null || _.removeEventListener("scroll", j), m == null || m.removeEventListener("scroll", j);
941
+ return w && w.addEventListener("scroll", j), i && i.addEventListener("scroll", j), () => {
942
+ w == null || w.removeEventListener("scroll", j), i == null || i.removeEventListener("scroll", j);
938
943
  };
939
- }, [m, _, j]), ae(() => () => {
940
- Y.current && clearTimeout(Y.current);
944
+ }, [i, w, j]), ne(() => () => {
945
+ X.current && clearTimeout(X.current);
941
946
  }, []);
942
- const lt = ye(() => me(V["rp-pages-container"], {
943
- [V["rp-cursor-grab"]]: ne && !$,
944
- [V["rp-cursor-grabbing"]]: ne && $
945
- }), [ne, $]), ct = se(
946
- (M) => {
947
- if (ne && M) {
948
- const A = me(V["rp-pages"]), B = document.querySelector(`.${A}`);
949
- ue(B);
947
+ const et = we(() => ce(U["rp-pages-container"], {
948
+ [U["rp-cursor-grab"]]: te && !ee,
949
+ [U["rp-cursor-grabbing"]]: te && ee
950
+ }), [te, ee]), tt = ae(
951
+ (v) => {
952
+ if (te && v) {
953
+ const O = ce(U["rp-pages"]), q = document.querySelector(`.${O}`);
954
+ K(q);
950
955
  }
951
956
  },
952
- [ne, ue, V]
957
+ [te, K, U]
953
958
  );
954
- return ae(() => {
955
- w && nt();
956
- }, [w]), ae(() => {
957
- if (!(le.height === 0 || !N.current)) {
958
- if (t === Le.PAGE_SCROLLING) {
959
- e !== W && _ && b(e), N.current = !1;
959
+ return ne(() => {
960
+ m && pe();
961
+ }, [m]), ne(() => {
962
+ if (!(ie.height === 0 || !S.current)) {
963
+ if (t === Ie.PAGE_SCROLLING) {
964
+ e !== W && w && I(e), S.current = !1;
960
965
  return;
961
966
  }
962
- c(e, "auto"), b(e), N.current = !1;
967
+ a(e, "auto"), I(e), S.current = !1;
963
968
  }
964
969
  }, [
965
- c,
970
+ a,
966
971
  t,
967
- _,
968
- b,
969
- le
970
- ]), /* @__PURE__ */ xe(ft, { children: [
971
- /* @__PURE__ */ x(Vt, { ref: a, children: /* @__PURE__ */ x(
972
- Ut,
972
+ w,
973
+ I,
974
+ ie
975
+ ]), /* @__PURE__ */ _e(st, { children: [
976
+ /* @__PURE__ */ x(Nt, { ref: l, children: /* @__PURE__ */ x(
977
+ At,
973
978
  {
974
- id: r,
975
- ref: l,
979
+ ref: s,
976
980
  tabIndex: -1,
977
- className: lt,
981
+ className: et,
978
982
  style: {
979
- "--scale-round-x": `${Ue(n.current.sx)[1]}px`,
980
- "--scale-round-y": `${Ue(n.current.sy)[1]}px`
983
+ "--scale-round-x": `${Pe(n.current.sx)[1]}px`,
984
+ "--scale-round-y": `${Pe(n.current.sy)[1]}px`
981
985
  },
982
- children: /* @__PURE__ */ x(ur, { style: { minHeight: "50px" }, children: ({ width: M, height: A }) => /* @__PURE__ */ x("div", { "data-rp": "pages", ref: ct, style: { width: M, height: A }, children: f === Le.PAGE_SCROLLING ? /* @__PURE__ */ x(
986
+ children: /* @__PURE__ */ x(rr, { style: { minHeight: "50px" }, children: ({ width: v, height: O }) => /* @__PURE__ */ x("div", { "data-rp": "pages", ref: tt, style: { width: v, height: O }, children: o === Ie.PAGE_SCROLLING ? /* @__PURE__ */ x(
983
987
  "div",
984
988
  {
985
989
  ref: g,
986
- style: { width: M, height: A },
987
- className: me(V["rp-pages"], V["rp-page-scrolling-wrapper"]),
988
- children: u === ze.DUAL_PAGE ? /* @__PURE__ */ x(yt, { widths: U, heights: D }) : u === ze.DUAL_PAGE_WITH_COVER ? /* @__PURE__ */ x(bt, { widths: U, heights: D }) : /* @__PURE__ */ x(zt, { widths: U, heights: D })
990
+ style: { width: v, height: O },
991
+ className: ce(U["rp-pages"], U["rp-page-scrolling-wrapper"]),
992
+ children: u === Se.DUAL_PAGE ? /* @__PURE__ */ x(Ct, { widths: k, heights: H }) : u === Se.DUAL_PAGE_WITH_COVER ? /* @__PURE__ */ x(St, { widths: k, heights: H }) : /* @__PURE__ */ x(It, { widths: k, heights: H })
989
993
  }
990
- ) : Q ? /* @__PURE__ */ x(
991
- ir,
994
+ ) : J ? /* @__PURE__ */ x(
995
+ Qt,
992
996
  {
993
- ref: v,
994
- itemData: it,
995
- outerRef: C,
996
- innerRef: p,
997
- onScroll: at,
998
- columnCount: H,
999
- columnWidth: U,
1000
- rowHeight: D,
1001
- height: A,
1002
- width: M,
1003
- estimatedColumnWidth: ee,
1004
- estimatedRowHeight: Q,
1005
- rowCount: F,
1006
- className: me(
1007
- V["rp-pages"],
1008
- f === Le.HORIZONTAL_SCROLLING ? V["rp-pages-horizontal-scroll"] : ""
997
+ ref: f,
998
+ itemData: Qe,
999
+ outerRef: h,
1000
+ innerRef: d,
1001
+ onScroll: Ye,
1002
+ columnCount: A,
1003
+ columnWidth: k,
1004
+ rowHeight: H,
1005
+ height: O,
1006
+ width: v,
1007
+ estimatedColumnWidth: Z,
1008
+ estimatedRowHeight: J,
1009
+ rowCount: N,
1010
+ className: ce(
1011
+ U["rp-pages"],
1012
+ o === Ie.HORIZONTAL_SCROLLING ? U["rp-pages-horizontal-scroll"] : ""
1009
1013
  ),
1010
1014
  style: {
1011
- "--rp-pages-height": `${te.height}px`,
1012
- "--rp-pages-width": `${te.width}px`,
1013
- "--rp-row-count": `${F}`,
1014
- "--rp-column-count": `${H}`
1015
+ "--rp-pages-height": `${Q.height}px`,
1016
+ "--rp-pages-width": `${Q.width}px`,
1017
+ "--rp-row-count": `${N}`,
1018
+ "--rp-column-count": `${A}`
1015
1019
  },
1016
- children: dr
1020
+ children: nr
1017
1021
  }
1018
- ) : !w && !h ? /* @__PURE__ */ x(
1022
+ ) : !m && !C ? /* @__PURE__ */ x(
1019
1023
  "div",
1020
1024
  {
1021
- className: V["rp-loader"],
1025
+ className: U["rp-loader"],
1022
1026
  style: {
1023
1027
  display: "flex",
1024
1028
  justifyContent: "center",
@@ -1026,11 +1030,11 @@ const dr = ht(({ columnIndex: n, rowIndex: e, data: t, style: r }) => {
1026
1030
  height: "100%",
1027
1031
  width: "100%"
1028
1032
  },
1029
- children: z && /* @__PURE__ */ x(z, {})
1033
+ children: T && /* @__PURE__ */ x(T, {})
1030
1034
  }
1031
- ) : h === Rt.NOT_SUPPORTED ? /* @__PURE__ */ x("div", { className: V["rp-not-supported"], children: /* @__PURE__ */ xe("div", { className: V["rp-not-supported-content"], children: [
1035
+ ) : C === _t.NOT_SUPPORTED ? /* @__PURE__ */ x("div", { className: U["rp-not-supported"], children: /* @__PURE__ */ _e("div", { className: U["rp-not-supported-content"], children: [
1032
1036
  "React PDF is unable to render on this browser. Please use the supported browsers from the list below:",
1033
- /* @__PURE__ */ x("div", { children: /* @__PURE__ */ xe("ul", { children: [
1037
+ /* @__PURE__ */ x("div", { children: /* @__PURE__ */ _e("ul", { children: [
1034
1038
  /* @__PURE__ */ x("li", { children: "Chrome 126+" }),
1035
1039
  /* @__PURE__ */ x("li", { children: "Edge 126+" }),
1036
1040
  /* @__PURE__ */ x("li", { children: "Firefox 126+" }),
@@ -1041,9 +1045,9 @@ const dr = ht(({ columnIndex: n, rowIndex: e, data: t, style: r }) => {
1041
1045
  ] }) }) : null }) })
1042
1046
  }
1043
1047
  ) }),
1044
- I && /* @__PURE__ */ x(Ft, {})
1048
+ p && /* @__PURE__ */ x(Et, {})
1045
1049
  ] });
1046
1050
  };
1047
1051
  export {
1048
- en as RPPages
1052
+ jo as RPPages
1049
1053
  };