@pdf-viewer/react 1.2.0 → 1.3.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/{RPDefaultLayout-8ee7a95b.js → RPDefaultLayout-f556799a.js} +986 -1084
  2. package/dist/assets/RPDefaultLayout.css +1 -1
  3. package/dist/components/RPController.js +1 -1
  4. package/dist/components/RPPages.js +1 -1
  5. package/dist/components/RPProvider.js +1 -1
  6. package/dist/components/layout/RPDefaultLayout.js +1 -1
  7. package/dist/components/layout/sidebar/RPSidebar.js +1 -1
  8. package/dist/components/layout/sidebar/Thumbnail.js +1 -1
  9. package/dist/components/layout/sidebar/Thumbnails.js +1 -1
  10. package/dist/components/layout/toolbar/DocumentDialog.js +1 -1
  11. package/dist/components/layout/toolbar/FileDownloadTool.js +1 -1
  12. package/dist/components/layout/toolbar/MostPageTool.js +1 -1
  13. package/dist/components/layout/toolbar/OtherTool.js +1 -1
  14. package/dist/components/layout/toolbar/Paginate.js +1 -1
  15. package/dist/components/layout/toolbar/PrintTool.js +1 -1
  16. package/dist/components/layout/toolbar/RPToolbar.js +1 -1
  17. package/dist/components/layout/toolbar/RPToolbarEnd.js +1 -1
  18. package/dist/components/layout/toolbar/SearchTool.js +1 -1
  19. package/dist/components/layout/toolbar/ZoomTool.js +1 -1
  20. package/dist/components/page/AnnotationLayer.js +3 -4
  21. package/dist/components/page/CanvasLayer.js +1 -1
  22. package/dist/components/page/DualPage.js +1 -1
  23. package/dist/components/page/RPPage.js +1 -1
  24. package/dist/components/page/SinglePage.js +1 -1
  25. package/dist/components/page/TextLayer.js +1 -1
  26. package/dist/components/ui/LoadingIndicator.js +1 -1
  27. package/dist/contexts/PaginationContext.js +1 -1
  28. package/dist/contexts/PrintContext.js +1 -1
  29. package/dist/contexts/SearchContext.js +1 -1
  30. package/dist/contexts/ThumbnailsContext.js +1 -1
  31. package/dist/main.js +1 -1
  32. package/dist/types/utils/annotations.d.ts +9 -0
  33. package/dist/types/utils/renderPage.d.ts +7 -1
  34. package/dist/types/utils/types.d.ts +15 -0
  35. package/dist/utils/annotations.js +304 -0
  36. package/dist/utils/hooks/useFileDownload.js +1 -1
  37. package/dist/utils/hooks/useLicense.js +1 -1
  38. package/dist/utils/hooks/usePaginate.js +1 -1
  39. package/dist/utils/hooks/usePdfProperties.js +22 -25
  40. package/dist/utils/hooks/usePrint.js +1 -1
  41. package/dist/utils/hooks/useScrollToPage.js +1 -1
  42. package/dist/utils/hooks/useSearch.js +1 -1
  43. package/dist/utils/hooks/useThumbnail.js +1 -1
  44. package/dist/utils/hooks/useVirtualReactWindow.js +1 -1
  45. package/dist/utils/renderPage.js +10 -8
  46. package/dist/utils/types.js +13 -12
  47. package/package.json +1 -1
@@ -1,104 +1,104 @@
1
1
  import { jsx as i, jsxs as D, Fragment as ke } from "react/jsx-runtime";
2
2
  import * as V from "react";
3
- import { useRef as W, useEffect as O, useCallback as L, useState as H, createContext as Be, useContext as Ke, useMemo as k, forwardRef as Xe, useImperativeHandle as en, createElement as $e, PureComponent as Jn, Component as Yn, memo as Qn } from "react";
3
+ import { useRef as W, useEffect as O, useCallback as L, useState as H, createContext as Be, useContext as Ke, useMemo as k, forwardRef as Xe, useImperativeHandle as Yt, createElement as $e, PureComponent as jn, Component as Bn, memo as Kn } from "react";
4
4
  import { ChevronUpIcon as We } from "./components/icons/ChevronUpIcon.js";
5
5
  import { UIButton as te } from "./components/ui/Button.js";
6
- import { UIInput as tn } from "./components/ui/Input.js";
6
+ import { UIInput as Qt } from "./components/ui/Input.js";
7
7
  import { useScrollModeContext as Ee } from "./contexts/ScrollModeContext.js";
8
8
  import { useDocumentContext as Y } from "./contexts/RPDocumentContext.js";
9
9
  import "./contexts/DarkModeContext.js";
10
- import { ViewMode as qe, ScrollMode as X, AnnotationSubType as ht, SelectionMode as er, ZoomLevel as nt } from "./utils/types.js";
10
+ import { ViewMode as qe, ScrollMode as X, AnnotationSubType as Rt, SelectionMode as Xn, ZoomLevel as rt } from "./utils/types.js";
11
11
  import { useRotationContext as Je } from "./contexts/RotationContext.js";
12
- import { useLayerContext as tr } from "./contexts/LayerContext.js";
12
+ import { useLayerContext as Jn } from "./contexts/LayerContext.js";
13
13
  import { useZoomContext as Ye } from "./contexts/ZoomContext.js";
14
14
  import { useViewModeContext as Qe } from "./contexts/ViewModeContext.js";
15
15
  import { useVirtualScrollContext as et } from "./contexts/VirtualScrollContext.js";
16
- import { useVirtualGridContext as nn } from "./contexts/VirtualGridContext.js";
16
+ import { useVirtualGridContext as en } from "./contexts/VirtualGridContext.js";
17
17
  import { useScrollStateContext as tt } from "./contexts/ScrollStateContext.js";
18
- import { useSelectionModeContext as nr } from "./contexts/SelectionModeContext.js";
19
- import { useInitialStateContext as rr } from "./contexts/InitialStateContext.js";
20
- import { useFullScreenContext as or } from "./contexts/FullScreenContext.js";
18
+ import { useSelectionModeContext as Yn } from "./contexts/SelectionModeContext.js";
19
+ import { useInitialStateContext as Qn } from "./contexts/InitialStateContext.js";
20
+ import { useFullScreenContext as er } from "./contexts/FullScreenContext.js";
21
21
  import "./contexts/FileInputContext.js";
22
22
  import "./contexts/DropFileZoneContext.js";
23
23
  import { renderPage as mt } from "./utils/renderPage.js";
24
- import { highlightMatches as rn, findMatches as ir, resetDivs as ar } from "./utils/highlight.js";
25
- import * as on from "pdfjs-dist";
26
- import { PixelsPerInch as sr, AnnotationMode as cr, RenderingCancelledException as lr, AnnotationLayer as ur } from "pdfjs-dist";
24
+ import { highlightMatches as tn, findMatches as tr, resetDivs as nr } from "./utils/highlight.js";
25
+ import * as nn from "pdfjs-dist";
26
+ import { PixelsPerInch as rr, AnnotationMode as or, RenderingCancelledException as ir, AnnotationLayer as ar } from "pdfjs-dist";
27
27
  import { useLayoutContainer as Ie } from "./contexts/LayoutContainerContext.js";
28
- import { useDimensionPagesContext as an } from "./contexts/DimensionPagesContext.js";
28
+ import { useDimensionPagesContext as rn } from "./contexts/DimensionPagesContext.js";
29
29
  import { useLocalizationContext as le } from "./contexts/LocalizationContext.js";
30
30
  import "./components/RPConfig.js";
31
- import { ThumbnailIcon as dr } from "./components/icons/Thumbnail.js";
31
+ import { ThumbnailIcon as sr } from "./components/icons/Thumbnail.js";
32
32
  import { c as re } from "./clsx-0c6e471a.js";
33
33
  import { LoaderIcon as Me } from "./components/icons/LoaderIcon.js";
34
- import { useInfiniteScroll as pr } from "./utils/hooks/useInfiniteScroll.js";
35
- import { RPSplitter as hr } from "./components/layout/sidebar/RPSplitter.js";
36
- import { useToolbarComponentContext as ge, ToolbarComponentProvider as mr } from "./contexts/ToolbarComponentContext.js";
37
- import { useIconContext as ue, IconProvider as fr } from "./contexts/IconContext.js";
38
- import j from "./components/ui/RPTooltip.js";
39
- import { c as Ce, C as gr } from "./Container-8fea0875.js";
40
- import { WrapperLayout as vr } from "./components/layout/WrapperLayout.js";
41
- import { RPDropFileZone as _r } from "./components/RPDropFileZone.js";
42
- import { useViewportContext as ye, ViewportProvider as wr } from "./contexts/ViewportContext.js";
34
+ import { useInfiniteScroll as cr } from "./utils/hooks/useInfiniteScroll.js";
35
+ import { RPSplitter as lr } from "./components/layout/sidebar/RPSplitter.js";
36
+ import { useToolbarComponentContext as ge, ToolbarComponentProvider as ur } from "./contexts/ToolbarComponentContext.js";
37
+ import { useIconContext as ue, IconProvider as dr } from "./contexts/IconContext.js";
38
+ import Z from "./components/ui/RPTooltip.js";
39
+ import { c as Ce, C as pr } from "./Container-8fea0875.js";
40
+ import { WrapperLayout as hr } from "./components/layout/WrapperLayout.js";
41
+ import { RPDropFileZone as mr } from "./components/RPDropFileZone.js";
42
+ import { useViewportContext as ye, ViewportProvider as fr } from "./contexts/ViewportContext.js";
43
43
  import "./contexts/ThemeContext.js";
44
- import { SimpleLinkService as br } from "./utils/link_service.js";
45
- import { dateFormatter as ft } from "./utils/dateFormatter.js";
46
- import { sanitizeExternalUrl as Cr } from "./utils/sanitizeExternalUrl.js";
44
+ import { SimpleLinkService as gr } from "./utils/link_service.js";
45
+ import { annotationsEvents as vr, annotationEventsHandler as _r, handleClick as Lt, handleAnnotationWidget as wr, handleAnnotationLink as br, bindLayerEvents as Cr, unbindLayerEvents as Nt } from "./utils/annotations.js";
47
46
  import { useWatermark as Tr } from "./utils/hooks/useWatermark.js";
48
47
  import { useMousePressed as Pr } from "./utils/hooks/useMousePressed.js";
49
48
  import { useGrabScroll as Sr } from "./utils/hooks/useGrabScroll.js";
50
49
  import { usePinch as Ir } from "./utils/hooks/usePinch.js";
51
- import { useDebounce as gt } from "./utils/hooks/useDebounce.js";
50
+ import { useDebounce as ft } from "./utils/hooks/useDebounce.js";
52
51
  import { getThumbnailViewport as Et } from "./utils/getThumbnailViewport.js";
53
52
  import { useDimensionPages as yr } from "./utils/hooks/useDimensionPages.js";
54
53
  import { smoothScrollTo as Te } from "./utils/smoothScrollTo.js";
55
54
  import { appConsole as xr } from "./utils/appConsole.js";
56
- import { FileUploadTool as sn } from "./components/layout/toolbar/FileUploadTool.js";
55
+ import { FileUploadTool as on } from "./components/layout/toolbar/FileUploadTool.js";
57
56
  import { DarkModeTool as Rr } from "./components/layout/toolbar/DarkModeTool.js";
58
57
  import { ThreeDotIcon as Lr } from "./components/icons/ThreeDotIcon.js";
59
- import { UIDropDown as cn } from "./components/ui/DropDown.js";
60
- import { c as Nr, u as Tt, P as He, b as Fe, d as Pt, i as Er, k as Or, a as Dr } from "./index-48ca3f30.js";
61
- import { D as zr, d as rt } from "./floating-ui.react-dom-88a86594.js";
62
- import { a as Ar, h as Fr, u as kr, F as Wr, b as Mr, G as je } from "./index-4ba3ab9a.js";
63
- import { CloseIcon as ln } from "./components/icons/CloseIcon.js";
58
+ import { UIDropDown as an } from "./components/ui/DropDown.js";
59
+ import { c as Nr, u as bt, P as He, b as Fe, d as Ct, i as Er, k as Or, a as Dr } from "./index-48ca3f30.js";
60
+ import { D as zr, d as ot } from "./floating-ui.react-dom-88a86594.js";
61
+ import { a as Ar, h as Fr, u as kr, F as Wr, b as Mr, G as Ze } from "./index-4ba3ab9a.js";
62
+ import { CloseIcon as sn } from "./components/icons/CloseIcon.js";
63
+ import { dateFormatter as Ot } from "./utils/dateFormatter.js";
64
64
  import { PropertyItem as Hr } from "./components/layout/toolbar/PropertyItem.js";
65
65
  import { useOtherToolContext as $r, OtherToolProvider as Gr } from "./contexts/OtherToolContext.js";
66
66
  import { DocumentProperties as Vr } from "./components/layout/toolbar/DocumentProperties.js";
67
67
  import { RotateTool as Ur } from "./components/layout/toolbar/RotateTool.js";
68
68
  import { ScrollModeTool as qr } from "./components/layout/toolbar/ScrollModeTool.js";
69
- import { MenuSeparator as St } from "./components/layout/toolbar/MenuSeparator.js";
70
- import { FileDownloadDefaultIcon as jr } from "./components/icons/FileDownloadDefaultIcon.js";
69
+ import { MenuSeparator as Tt } from "./components/layout/toolbar/MenuSeparator.js";
70
+ import { FileDownloadDefaultIcon as Zr } from "./components/icons/FileDownloadDefaultIcon.js";
71
71
  import { MenuItem as we } from "./components/layout/toolbar/MenuItem.js";
72
- import { PrintDefaultTool as Zr } from "./components/icons/PrintDefaultIcon.js";
73
- import { FullScreenTool as un } from "./components/layout/toolbar/FullScreenTool.js";
74
- import { GoToDownIcon as dn } from "./components/icons/GoToDownIcon.js";
72
+ import { PrintDefaultTool as jr } from "./components/icons/PrintDefaultIcon.js";
73
+ import { FullScreenTool as cn } from "./components/layout/toolbar/FullScreenTool.js";
74
+ import { GoToDownIcon as ln } from "./components/icons/GoToDownIcon.js";
75
75
  import { SelectionModeTool as Br } from "./components/layout/toolbar/SelectionModeTool.js";
76
76
  import { ZoomInIcon as Kr } from "./components/icons/ZoomInIcon.js";
77
77
  import { ZoomOutIcon as Xr } from "./components/icons/ZoomOutIcon.js";
78
- import { PAGE_PADDING as Ot } from "./utils/constants.js";
78
+ import { PAGE_PADDING as Dt } from "./utils/constants.js";
79
79
  import { getZoomLevel as Jr } from "./utils/getZoomLevel.js";
80
80
  import { SearchIcon as Yr } from "./components/icons/SearchIcon.js";
81
- import { UICheckbox as Dt } from "./components/ui/Checkbox.js";
81
+ import { UICheckbox as zt } from "./components/ui/Checkbox.js";
82
82
  import { ClearIcon as Qr } from "./components/icons/ClearIcon.js";
83
- import { InfoIcon as zt } from "./components/icons/InfoIcon.js";
83
+ import { InfoIcon as At } from "./components/icons/InfoIcon.js";
84
84
  import { UIPopOver as eo } from "./components/ui/Popover.js";
85
- import './assets/RPDefaultLayout.css';const pn = () => {
86
- const { viewMode: t } = Qe(), { scrollMode: e } = Ee(), { virtualScrollRef: n, virtualScrollableElementRef: o, pageScrollElementRef: r } = et(), { setFocusedPage: a } = se(), s = W(), { columnCount: c } = nn(), { widths: l, heights: u } = yr(), h = W(e), m = W(t), d = W(c);
85
+ import './assets/RPDefaultLayout.css';const un = () => {
86
+ const { viewMode: t } = Qe(), { scrollMode: e } = Ee(), { virtualScrollRef: n, virtualScrollableElementRef: o, pageScrollElementRef: r } = et(), { setFocusedPage: a } = se(), s = W(), { columnCount: c } = en(), { widths: l, heights: u } = yr(), h = W(e), f = W(t), p = W(c);
87
87
  O(() => {
88
88
  n != null && n.scrollToItem && (s.current = n);
89
89
  }, [n]), O(() => {
90
- h.current = e, m.current = t;
90
+ h.current = e, f.current = t;
91
91
  }, [e, t]);
92
- const w = L(
93
- (b) => {
92
+ const v = L(
93
+ (C) => {
94
94
  if (!r)
95
95
  return;
96
- const v = Math.ceil(b / 2) * 2 - 1;
97
- return b === v + 1 ? new Promise(
96
+ const g = Math.ceil(C / 2) * 2 - 1;
97
+ return C === g + 1 ? new Promise(
98
98
  (_) => Te(
99
99
  r,
100
100
  {
101
- left: l[v],
101
+ left: l[g],
102
102
  top: 0
103
103
  },
104
104
  _
@@ -110,43 +110,43 @@ import './assets/RPDefaultLayout.css';const pn = () => {
110
110
  [r, l, Te]
111
111
  );
112
112
  return O(() => {
113
- h.current = e, m.current = t;
113
+ h.current = e, f.current = t;
114
114
  }, [e, t]), O(() => {
115
- d.current = c;
115
+ p.current = c;
116
116
  }, [c]), { scrollToPage: L(
117
- (b) => {
118
- const v = b - 1;
119
- let _ = v, f = 0;
120
- if (m.current === qe.DUAL_PAGE && h.current === X.PAGE_SCROLLING)
121
- return w(b), Promise.resolve();
117
+ (C) => {
118
+ const g = C - 1;
119
+ let _ = g, m = 0;
120
+ if (f.current === qe.DUAL_PAGE && h.current === X.PAGE_SCROLLING)
121
+ return v(C), Promise.resolve();
122
122
  if (h.current === X.PAGE_SCROLLING)
123
- return a(b), Promise.resolve();
123
+ return a(C), Promise.resolve();
124
124
  if (!s.current || !o)
125
125
  return Promise.resolve();
126
126
  const P = o;
127
127
  if (h.current === X.HORIZONTAL_SCROLLING) {
128
- f = v;
129
- const p = v * (l[v] ?? 0);
128
+ m = g;
129
+ const d = g * (l[g] ?? 0);
130
130
  return new Promise(
131
- (T) => Te(P, { left: p, top: 0 }, T)
131
+ (T) => Te(P, { left: d, top: 0 }, T)
132
132
  );
133
133
  }
134
- if (m.current === qe.DUAL_PAGE) {
135
- f = v % 2, _ = Math.floor(v / 2);
136
- const T = _ * (u[_] ?? 0), C = f * (l[f] ?? 0);
134
+ if (f.current === qe.DUAL_PAGE) {
135
+ m = g % 2, _ = Math.floor(g / 2);
136
+ const T = _ * (u[_] ?? 0), b = m * (l[m] ?? 0);
137
137
  return new Promise(
138
- (S) => Te(P, { left: C, top: T }, S)
138
+ (S) => Te(P, { left: b, top: T }, S)
139
139
  );
140
140
  }
141
- const R = _ * (u[_] ?? 0);
141
+ const I = _ * (u[_] ?? 0);
142
142
  return new Promise(
143
- (p) => Te(P, { left: 0, top: R }, p)
143
+ (d) => Te(P, { left: 0, top: I }, d)
144
144
  );
145
145
  },
146
146
  [
147
147
  o,
148
148
  c,
149
- w,
149
+ v,
150
150
  a,
151
151
  Te,
152
152
  u,
@@ -154,39 +154,39 @@ import './assets/RPDefaultLayout.css';const pn = () => {
154
154
  ]
155
155
  ) };
156
156
  }, to = (t = 1) => {
157
- const [e, n] = H(t), [o, r] = H(0), { scrollToPage: a } = pn(), s = W(1), { isScrolling: c } = tt(), { viewMode: l } = Qe(), { scrollMode: u } = Ee(), h = gt(e, 100), m = L(
158
- (v) => {
159
- if (!/^[0-9]*$/g.test(v.toString()) || !v)
157
+ const [e, n] = H(t), [o, r] = H(0), { scrollToPage: a } = un(), s = W(1), { isScrolling: c } = tt(), { viewMode: l } = Qe(), { scrollMode: u } = Ee(), h = ft(e, 100), f = L(
158
+ (g) => {
159
+ if (!/^[0-9]*$/g.test(g.toString()) || !g)
160
160
  return { success: !1, currentPage: s.current };
161
- const f = +v;
162
- return f < 0 || f > o ? { success: !1, currentPage: s.current } : (n(f), s.current = f, { success: !0, currentPage: +v });
161
+ const m = +g;
162
+ return m < 0 || m > o ? { success: !1, currentPage: s.current } : (n(m), s.current = m, { success: !0, currentPage: +g });
163
163
  },
164
164
  [o]
165
- ), d = L(m, [m]), w = L(
166
- async (v) => {
165
+ ), p = L(f, [f]), v = L(
166
+ async (g) => {
167
167
  if (c.current)
168
168
  return { success: !1, currentPage: s.current };
169
- const _ = m(v);
169
+ const _ = f(g);
170
170
  return _.success && (c.current = !0, await a(_.currentPage), c.current = !1), _;
171
171
  },
172
- [m, a]
173
- ), g = L(() => {
174
- let v = e - 1;
175
- w(v);
176
- }, [w, e, l, u]), b = L(() => {
177
- let v = e + 1;
178
- w(v);
179
- }, [w, e, l, u]);
172
+ [f, a]
173
+ ), w = L(() => {
174
+ let g = e - 1;
175
+ v(g);
176
+ }, [v, e, l, u]), C = L(() => {
177
+ let g = e + 1;
178
+ v(g);
179
+ }, [v, e, l, u]);
180
180
  return {
181
181
  focusedPage: h,
182
182
  totalPages: o,
183
- setFocusedPage: d,
183
+ setFocusedPage: p,
184
184
  setTotalPages: r,
185
- nextPage: b,
186
- prevPage: g,
187
- goToPage: w
185
+ nextPage: C,
186
+ prevPage: w,
187
+ goToPage: v
188
188
  };
189
- }, hn = Be({
189
+ }, dn = Be({
190
190
  focusedPage: 0,
191
191
  setFocusedPage: (t) => {
192
192
  },
@@ -199,14 +199,14 @@ import './assets/RPDefaultLayout.css';const pn = () => {
199
199
  nextPage: () => {
200
200
  }
201
201
  }), se = () => {
202
- const t = Ke(hn);
202
+ const t = Ke(dn);
203
203
  return typeof (t == null ? void 0 : t.focusedPage) > "u" && xr.error("Please use this hooks inside children component of RPProvider"), t;
204
- }, ss = ({ children: t }) => {
204
+ }, ts = ({ children: t }) => {
205
205
  const { pdf: e } = Y(), { focusedPage: n, totalPages: o, setFocusedPage: r, setTotalPages: a, goToPage: s, nextPage: c, prevPage: l } = to();
206
206
  return O(() => {
207
207
  e != null && e.numPages && a(e.numPages);
208
208
  }, [e, a]), /* @__PURE__ */ i(
209
- hn.Provider,
209
+ dn.Provider,
210
210
  {
211
211
  value: {
212
212
  focusedPage: n,
@@ -230,158 +230,158 @@ const no = () => {
230
230
  O(() => {
231
231
  h.current;
232
232
  }, [h]);
233
- const m = L(() => {
233
+ const f = L(() => {
234
234
  document.documentElement.classList.remove("rp-print-html-printing"), document.body.classList.remove("rp-print-body-printing");
235
235
  const P = document.querySelector(".rp-print-zone");
236
236
  P && P.remove();
237
- }, []), d = L(() => {
237
+ }, []), p = L(() => {
238
238
  h.current = !1, a(!1), c(!1), u(null), o({
239
239
  loadedPages: 0,
240
240
  totalPages: 0,
241
241
  percentage: 0
242
242
  });
243
- }, []), w = () => {
243
+ }, []), v = () => {
244
244
  h.current = !0;
245
- }, g = async ({
245
+ }, w = async ({
246
246
  scratchCanvas: P,
247
- pdfDocument: R,
248
- pageNumber: p,
247
+ pdfDocument: I,
248
+ pageNumber: d,
249
249
  viewerPdfPage: T,
250
- printResolution: C,
250
+ printResolution: b,
251
251
  optionalContentConfigPromise: S,
252
252
  printAnnotationStoragePromise: A
253
253
  }) => {
254
254
  if (h.current) {
255
- d();
255
+ p();
256
256
  return;
257
257
  }
258
- const I = C / sr.PDF;
259
- P.width = Math.floor(T.width * I), P.height = Math.floor(T.height * I);
258
+ const y = b / rr.PDF;
259
+ P.width = Math.floor(T.width * y), P.height = Math.floor(T.height * y);
260
260
  const E = P.getContext("2d");
261
261
  E.save(), E.fillStyle = "rgb(255, 255, 255)", E.fillRect(0, 0, P.width, P.height), E.restore();
262
- const [y, F] = await Promise.all([
263
- R.getPage(p),
262
+ const [x, F] = await Promise.all([
263
+ I.getPage(d),
264
264
  A
265
265
  ]);
266
266
  if (h.current) {
267
- d();
267
+ p();
268
268
  return;
269
269
  }
270
270
  const z = {
271
271
  canvasContext: E,
272
- transform: [I, 0, 0, I, 0, 0],
273
- viewport: y.getViewport({ scale: 1, rotation: T.rotation }),
272
+ transform: [y, 0, 0, y, 0, 0],
273
+ viewport: x.getViewport({ scale: 1, rotation: T.rotation }),
274
274
  intent: "print",
275
- annotationMode: cr.ENABLE_STORAGE,
275
+ annotationMode: or.ENABLE_STORAGE,
276
276
  optionalContentConfigPromise: S,
277
277
  printAnnotationStorage: F
278
278
  };
279
279
  try {
280
- return y.render(z).promise;
281
- } catch (x) {
282
- throw x instanceof lr || console.error(x), x;
280
+ return x.render(z).promise;
281
+ } catch (R) {
282
+ throw R instanceof ir || console.error(R), R;
283
283
  }
284
- }, b = L(() => {
284
+ }, C = L(() => {
285
285
  const P = window.print;
286
- return new Promise((R) => {
287
- const p = (S) => {
286
+ return new Promise((I) => {
287
+ const d = (S) => {
288
288
  setTimeout(() => {
289
289
  P.call(window), setTimeout(() => S(), 20);
290
290
  }, 0);
291
291
  };
292
292
  if (document.querySelector(".rp-print-zone")) {
293
- p(R);
293
+ d(I);
294
294
  return;
295
295
  }
296
- const C = new MutationObserver(() => {
297
- document.querySelector(".rp-print-zone") && (p(R), C.disconnect());
296
+ const b = new MutationObserver(() => {
297
+ document.querySelector(".rp-print-zone") && (d(I), b.disconnect());
298
298
  });
299
- C.observe(document.body, { childList: !0, subtree: !0 });
299
+ b.observe(document.body, { childList: !0, subtree: !0 });
300
300
  });
301
- }, []), v = async (P) => {
302
- const R = document.createElement("img"), p = document.createElement("div");
303
- return p.classList.add("rp-print-page"), await new Promise((T, C) => {
301
+ }, []), g = async (P) => {
302
+ const I = document.createElement("img"), d = document.createElement("div");
303
+ return d.classList.add("rp-print-page"), await new Promise((T, b) => {
304
304
  P.toBlob((S) => {
305
- S ? (R.src = URL.createObjectURL(S), R.onload = () => {
306
- URL.revokeObjectURL(R.src), T();
307
- }, R.onerror = C) : C(new Error("Failed to create blob"));
305
+ S ? (I.src = URL.createObjectURL(S), I.onload = () => {
306
+ URL.revokeObjectURL(I.src), T();
307
+ }, I.onerror = b) : b(new Error("Failed to create blob"));
308
308
  });
309
309
  }).catch(() => {
310
- }), p.appendChild(R), p;
311
- }, _ = (P, R) => {
312
- const p = document.createElement("div");
313
- p.classList.add("rp-print-zone");
314
- const T = document.createElement("style"), C = R.get(1);
315
- if (C) {
316
- const { width: S, height: A } = C == null ? void 0 : C.page.getViewport({ scale: 1 });
310
+ }), d.appendChild(I), d;
311
+ }, _ = (P, I) => {
312
+ const d = document.createElement("div");
313
+ d.classList.add("rp-print-zone");
314
+ const T = document.createElement("style"), b = I.get(1);
315
+ if (b) {
316
+ const { width: S, height: A } = b == null ? void 0 : b.page.getViewport({ scale: 1 });
317
317
  T.innerHTML = `@page { size: ${S}px ${A}px }`;
318
318
  }
319
- return p.appendChild(T), p.append(...P), p;
320
- }, f = L(async () => {
319
+ return d.appendChild(T), d.append(...P), d;
320
+ }, m = L(async () => {
321
321
  if (!t)
322
322
  return;
323
- d();
324
- const P = document.createElement("canvas"), R = [];
323
+ p();
324
+ const P = document.createElement("canvas"), I = [];
325
325
  try {
326
326
  t.isPureXfa && console.warn("[rp] XFA Form is not supported at the moment.");
327
- const T = t.getOptionalContentConfig({ intent: "print" }), C = Promise.resolve(
327
+ const T = t.getOptionalContentConfig({ intent: "print" }), b = Promise.resolve(
328
328
  t.annotationStorage.print ?? void 0
329
329
  ), S = e.size;
330
- for (const [I, E] of e) {
330
+ for (const [y, E] of e) {
331
331
  if (h.current) {
332
- d();
332
+ p();
333
333
  return;
334
334
  }
335
- const y = E.page.getViewport({ scale: 1 });
336
- if (await g({
335
+ const x = E.page.getViewport({ scale: 1 });
336
+ if (await w({
337
337
  scratchCanvas: P,
338
338
  pdfDocument: t,
339
- pageNumber: I,
340
- viewerPdfPage: y,
339
+ pageNumber: y,
340
+ viewerPdfPage: x,
341
341
  printResolution: 150,
342
342
  optionalContentConfigPromise: T,
343
- printAnnotationStoragePromise: C
343
+ printAnnotationStoragePromise: b
344
344
  }), h.current) {
345
- d();
345
+ p();
346
346
  return;
347
347
  }
348
- const F = await v(P);
349
- R.push(F);
350
- const z = parseFloat((R.length / S * 100).toFixed(2));
348
+ const F = await g(P);
349
+ I.push(F);
350
+ const z = parseFloat((I.length / S * 100).toFixed(2));
351
351
  o({
352
- loadedPages: I,
352
+ loadedPages: y,
353
353
  totalPages: S,
354
354
  percentage: z
355
355
  });
356
356
  }
357
357
  if (h.current) {
358
- d();
358
+ p();
359
359
  return;
360
360
  }
361
- const A = _(R, e);
362
- document.body.appendChild(A), document.documentElement.classList.add("rp-print-html-printing"), document.body.classList.add("rp-print-body-printing"), a(!0), await b();
363
- } catch (p) {
364
- c(!0), p instanceof Error && u(p);
361
+ const A = _(I, e);
362
+ document.body.appendChild(A), document.documentElement.classList.add("rp-print-html-printing"), document.body.classList.add("rp-print-body-printing"), a(!0), await C();
363
+ } catch (d) {
364
+ c(!0), d instanceof Error && u(d);
365
365
  } finally {
366
366
  P.height = 0, P.width = 0;
367
367
  }
368
368
  }, [t, e, h]);
369
369
  return O(() => {
370
370
  const P = () => {
371
- d(), m();
371
+ p(), f();
372
372
  };
373
373
  return window.addEventListener("afterprint", P, !0), () => {
374
374
  window.removeEventListener("afterprint", P, !0);
375
375
  };
376
- }, [m, d]), {
377
- print: f,
378
- cancel: w,
376
+ }, [f, p]), {
377
+ print: m,
378
+ cancel: v,
379
379
  progress: n,
380
380
  isComplete: r,
381
381
  isError: s,
382
382
  error: l
383
383
  };
384
- }, mn = Be({
384
+ }, pn = Be({
385
385
  print: () => {
386
386
  },
387
387
  cancel: () => {
@@ -398,39 +398,39 @@ const no = () => {
398
398
  console.error("Error in setOnError callback:", e);
399
399
  }
400
400
  }
401
- }), cs = ({ children: t }) => {
402
- const [e, n] = H(null), [o, r] = H(null), { print: a, cancel: s, progress: c, isComplete: l, isError: u, error: h } = no(), m = L((v) => {
403
- v && typeof v == "function" && r(() => v);
404
- }, []), d = (v) => {
405
- h && v(h);
406
- }, w = L(
407
- (v) => {
408
- n(() => v);
401
+ }), ns = ({ children: t }) => {
402
+ const [e, n] = H(null), [o, r] = H(null), { print: a, cancel: s, progress: c, isComplete: l, isError: u, error: h } = no(), f = L((g) => {
403
+ g && typeof g == "function" && r(() => g);
404
+ }, []), p = (g) => {
405
+ h && g(h);
406
+ }, v = L(
407
+ (g) => {
408
+ n(() => g);
409
409
  },
410
410
  [c, e]
411
411
  );
412
412
  O(() => {
413
- l && o && g();
413
+ l && o && w();
414
414
  }, [l, o]), O(() => {
415
- u && d((v) => {
416
- console.error(v);
415
+ u && p((g) => {
416
+ console.error(g);
417
417
  });
418
418
  }, [u]), O(() => {
419
419
  c && e && e(c);
420
420
  }, [c, e]);
421
- const g = () => {
421
+ const w = () => {
422
422
  o && (o(), r(null));
423
- }, b = {
423
+ }, C = {
424
424
  print: a,
425
425
  cancel: s,
426
- setOnProgress: w,
427
- setOnComplete: m,
428
- setOnError: d,
426
+ setOnProgress: v,
427
+ setOnComplete: f,
428
+ setOnError: p,
429
429
  progress: c
430
430
  };
431
- return /* @__PURE__ */ i(mn.Provider, { value: b, children: t });
432
- }, It = () => {
433
- const t = Ke(mn);
431
+ return /* @__PURE__ */ i(pn.Provider, { value: C, children: t });
432
+ }, nt = () => {
433
+ const t = Ke(pn);
434
434
  if (!t)
435
435
  throw new Error("usePrintContext must be used within a PrintProvider");
436
436
  return t;
@@ -439,39 +439,37 @@ const no = () => {
439
439
  (c) => {
440
440
  if (!n.size)
441
441
  return;
442
- const l = Array.from(n.values()).slice(0, c).map((m) => {
443
- const { thumbnailViewport: d, scale: w } = Et(m.page, o);
442
+ const l = Array.from(n.values()).slice(0, c).map((f) => {
443
+ const { thumbnailViewport: p, scale: v } = Et(f.page, o);
444
444
  return {
445
- scale: w,
446
- page: m.page,
445
+ scale: v,
446
+ page: f.page,
447
447
  loading: !0,
448
- viewport: d
448
+ viewport: p
449
449
  };
450
- }), u = l.reduce((m, d) => (m[d.page.pageNumber] = d, m), {});
450
+ }), u = l.reduce((f, p) => (f[p.page.pageNumber] = p, f), {});
451
451
  e(u);
452
452
  const h = [];
453
- for (const m of l) {
454
- const d = document.createElement("canvas"), w = mt(
455
- m.page,
456
- d,
457
- m.scale,
458
- o
459
- ).promise.then(() => {
460
- const g = d.toDataURL();
453
+ for (const f of l) {
454
+ const p = document.createElement("canvas"), v = mt(f.page, p, {
455
+ scale: f.scale,
456
+ rotate: o
457
+ }).promise.then(() => {
458
+ const w = p.toDataURL();
461
459
  return {
462
- ...m,
463
- thumbnailSrc: g,
460
+ ...f,
461
+ thumbnailSrc: w,
464
462
  loading: !1
465
463
  };
466
464
  });
467
- h.push(w);
465
+ h.push(v);
468
466
  }
469
- Promise.all(h).then((m) => {
470
- const d = m.reduce(
471
- (w, g) => (w[g.page.pageNumber] = g, w),
467
+ Promise.all(h).then((f) => {
468
+ const p = f.reduce(
469
+ (v, w) => (v[w.page.pageNumber] = w, v),
472
470
  {}
473
471
  );
474
- e((w) => ({ ...w, ...d }));
472
+ e((v) => ({ ...v, ...p }));
475
473
  });
476
474
  },
477
475
  [n, o]
@@ -496,23 +494,23 @@ const no = () => {
496
494
  }
497
495
  }));
498
496
  const u = document.createElement("canvas");
499
- mt(l.page, u, l.thumbnailScale, o).promise.then(() => {
500
- const h = u.toDataURL(), { thumbnailViewport: m, scale: d } = Et(l.page, o);
497
+ mt(l.page, u, { scale: l.thumbnailScale, rotate: o }).promise.then(() => {
498
+ const h = u.toDataURL(), { thumbnailViewport: f, scale: p } = Et(l.page, o);
501
499
  return {
502
- scale: d,
500
+ scale: p,
503
501
  thumbnailSrc: h,
504
502
  page: l.page,
505
503
  loading: !1,
506
- viewport: m
504
+ viewport: f
507
505
  };
508
506
  }).then((h) => {
509
- e((m) => ({ ...m, [c]: h }));
507
+ e((f) => ({ ...f, [c]: h }));
510
508
  });
511
509
  },
512
510
  [n, o]
513
511
  );
514
512
  return { thumbnailPages: t, addPage: s, addToPage: a, thumbnailLength: r };
515
- }, fn = Be({
513
+ }, hn = Be({
516
514
  thumbnailPages: {},
517
515
  addPage: (t) => {
518
516
  },
@@ -522,108 +520,108 @@ const no = () => {
522
520
  setActive: (t) => {
523
521
  },
524
522
  active: !1
525
- }), gn = () => Ke(fn), ls = ({
523
+ }), mn = () => Ke(hn), rs = ({
526
524
  children: t,
527
525
  initialThumbnailsVisible: e
528
526
  }) => {
529
527
  const { thumbnailPages: n, addPage: o, addToPage: r, thumbnailLength: a } = ro(), [s, c] = H(e);
530
528
  return /* @__PURE__ */ i(
531
- fn.Provider,
529
+ hn.Provider,
532
530
  {
533
531
  value: { thumbnailPages: n, addPage: o, addToPage: r, thumbnailLength: a, active: s, setActive: c },
534
532
  children: t
535
533
  }
536
534
  );
537
535
  }, oo = (t = {}, e = "") => {
538
- const [n, o] = H(e), [r, a] = H(!1), { pdf: s, pages: c } = Y(), l = an(), u = W(!n), { currentZoom: h } = Ye(), [m, d] = H([]), { setFocusedPage: w } = se(), [g, b] = H(0), { pageScrollElementRef: v, virtualScrollableElementRef: _ } = et(), { scrollMode: f } = Ee(), { pagesRef: P } = Ie(), [R, p] = H(null), T = W({}), C = k(() => g === 0 ? null : m[g - 1], [g, m]), S = k(() => m.length, [m]);
536
+ const [n, o] = H(e), [r, a] = H(!1), { pdf: s, pages: c } = Y(), l = rn(), u = W(!n), { currentZoom: h } = Ye(), [f, p] = H([]), { setFocusedPage: v } = se(), [w, C] = H(0), { pageScrollElementRef: g, virtualScrollableElementRef: _ } = et(), { scrollMode: m } = Ee(), { pagesRef: P } = Ie(), [I, d] = H(null), T = W({}), b = k(() => w === 0 ? null : f[w - 1], [w, f]), S = k(() => f.length, [f]);
539
537
  O(() => {
540
- if (!C || !c)
538
+ if (!b || !c)
541
539
  return;
542
- const y = _ || v;
543
- if (!y || !P)
540
+ const x = _ || g;
541
+ if (!x || !P)
544
542
  return;
545
- const F = c.get(C.page), z = P.clientHeight / 2, x = P.clientWidth / 2;
543
+ const F = c.get(b.page), z = P.clientHeight / 2, R = P.clientWidth / 2;
546
544
  let N = 0, $ = 0;
547
- f === X.PAGE_SCROLLING && w(C.page), f === X.VERTICAL_SCROLLING && (N = l.heights.slice(0, C.page - 1).reduce((q, K) => q + K, 0)), f === X.HORIZONTAL_SCROLLING && ($ = l.widths.slice(0, C.page - 1).reduce((q, K) => q + K, 0));
545
+ m === X.PAGE_SCROLLING && v(b.page), m === X.VERTICAL_SCROLLING && (N = l.heights.slice(0, b.page - 1).reduce((q, K) => q + K, 0)), m === X.HORIZONTAL_SCROLLING && ($ = l.widths.slice(0, b.page - 1).reduce((q, K) => q + K, 0));
548
546
  let U;
549
547
  if (!F)
550
548
  return;
551
- const Z = T.current[C.page], B = F.page.getViewport({ scale: 1 });
552
- U = new on.TextLayer({
549
+ const j = T.current[b.page], B = F.page.getViewport({ scale: 1 });
550
+ U = new nn.TextLayer({
553
551
  viewport: B,
554
- textContentSource: Z,
552
+ textContentSource: j,
555
553
  container: document.createElement("div")
556
554
  }), U.render().then(() => {
557
- const q = U.textDivs[C.start.idx], [K] = rn([C], Z, U.textDivs), ie = l.widths[C.page - 1], de = l.heights[C.page - 1], Q = document.createElement("div"), ae = document.createElement("div");
555
+ const q = U.textDivs[b.start.idx], [K] = tn([b], j, U.textDivs), ie = l.widths[b.page - 1], de = l.heights[b.page - 1], Q = document.createElement("div"), ae = document.createElement("div");
558
556
  q.style.position = "absolute", q.style.color = "transparent", ae.style.position = "absolute", ae.style.top = "0", ae.style.setProperty("--scale-factor", `${h}`), Q.style.position = "relative", Q.style.width = `${ie}px`, Q.style.height = `${de}px`, Q.style.zIndex = "-1", Q.appendChild(q), ae.appendChild(Q), P.prepend(ae);
559
- const ee = K.element.getBoundingClientRect(), be = ae.getBoundingClientRect(), Oe = ee.top - be.top, ve = ee.left - be.left, pe = N + Oe - z + ee.height / 2, he = $ + ve - x + ee.width / 2, De = {
557
+ const ee = K.element.getBoundingClientRect(), be = ae.getBoundingClientRect(), Oe = ee.top - be.top, ve = ee.left - be.left, pe = N + Oe - z + ee.height / 2, he = $ + ve - R + ee.width / 2, De = {
560
558
  left: Math.max(he, 0),
561
559
  top: Math.max(pe, 0)
562
560
  };
563
- P.removeChild(ae), y.scrollTo({
561
+ P.removeChild(ae), x.scrollTo({
564
562
  ...De
565
563
  });
566
564
  });
567
565
  }, [
568
566
  c,
569
- w,
567
+ v,
570
568
  l,
571
- C,
572
- f,
569
+ b,
570
+ m,
573
571
  _,
574
- v,
572
+ g,
575
573
  P
576
574
  ]);
577
575
  const A = L(() => {
578
- b((y) => S ? y + 1 > S ? 1 : y + 1 : 0);
579
- }, [S]), I = L(() => {
580
- b((y) => S ? y - 1 <= 0 ? S : y - 1 : 0);
581
- }, [S]), E = L(async (y) => {
582
- if (!y)
576
+ C((x) => S ? x + 1 > S ? 1 : x + 1 : 0);
577
+ }, [S]), y = L(() => {
578
+ C((x) => S ? x - 1 <= 0 ? S : x - 1 : 0);
579
+ }, [S]), E = L(async (x) => {
580
+ if (!x)
583
581
  return {};
584
- const F = y.numPages, z = {};
585
- for (let x = 1; x <= F; x++) {
582
+ const F = x.numPages, z = {};
583
+ for (let R = 1; R <= F; R++) {
586
584
  if (u.current)
587
585
  throw "close pop over";
588
- const N = await y.getPage(x);
589
- z[x.toString()] = await N.getTextContent();
586
+ const N = await x.getPage(R);
587
+ z[R.toString()] = await N.getTextContent();
590
588
  }
591
589
  return z;
592
590
  }, []);
593
591
  return O(() => {
594
592
  if (!n) {
595
- u.current = !0, d([]), b(0);
593
+ u.current = !0, p([]), C(0);
596
594
  return;
597
595
  }
598
- u.current = !1, a(!0), d([]), b(0), E(s).then((y) => {
599
- T.current = y;
600
- const z = Object.keys(y).reduce((x, N) => {
601
- const $ = ir(
596
+ u.current = !1, a(!0), p([]), C(0), E(s).then((x) => {
597
+ T.current = x;
598
+ const z = Object.keys(x).reduce((R, N) => {
599
+ const $ = tr(
602
600
  [n],
603
- y[N],
601
+ x[N],
604
602
  Number(N) - 1,
605
603
  t
606
- ).map((U, Z) => ({ ...U, page: Number(N), pageMatchIdx: Z }));
607
- return [...x, ...$];
604
+ ).map((U, j) => ({ ...U, page: Number(N), pageMatchIdx: j }));
605
+ return [...R, ...$];
608
606
  }, []);
609
- d(z), b(z.length ? 1 : 0);
607
+ p(z), C(z.length ? 1 : 0);
610
608
  }).catch(() => {
611
- d([]), b(0);
609
+ p([]), C(0);
612
610
  }).finally(() => a(!1));
613
611
  }, [n, E, s, t]), {
614
612
  search: n,
615
613
  setSearch: o,
616
614
  loading: r,
617
- matches: m,
615
+ matches: f,
618
616
  totalMatches: S,
619
- currentMatchPosition: g,
620
- currentMatch: C,
617
+ currentMatchPosition: w,
618
+ currentMatch: b,
621
619
  nextMatch: A,
622
- prevMatch: I,
623
- currentMatchElement: R,
624
- setCurrentMatchElement: p
620
+ prevMatch: y,
621
+ currentMatchElement: I,
622
+ setCurrentMatchElement: d
625
623
  };
626
- }, vn = Be({
624
+ }, fn = Be({
627
625
  search: "",
628
626
  setSearch: (t) => {
629
627
  },
@@ -641,7 +639,7 @@ const no = () => {
641
639
  currentMatchElement: null,
642
640
  setCurrentMatchElement: (t) => {
643
641
  }
644
- }), us = ({
642
+ }), os = ({
645
643
  children: t,
646
644
  initialSearch: e
647
645
  }) => {
@@ -653,13 +651,13 @@ const no = () => {
653
651
  currentMatch: l,
654
652
  search: u,
655
653
  matches: h,
656
- nextMatch: m,
657
- prevMatch: d,
658
- currentMatchElement: w,
659
- setCurrentMatchElement: g
654
+ nextMatch: f,
655
+ prevMatch: p,
656
+ currentMatchElement: v,
657
+ setCurrentMatchElement: w
660
658
  } = oo(n, e);
661
659
  return /* @__PURE__ */ i(
662
- vn.Provider,
660
+ fn.Provider,
663
661
  {
664
662
  value: {
665
663
  searchOptions: n,
@@ -669,17 +667,17 @@ const no = () => {
669
667
  totalMatches: s,
670
668
  currentMatchPosition: c,
671
669
  currentMatch: l,
672
- nextMatch: m,
673
- prevMatch: d,
670
+ nextMatch: f,
671
+ prevMatch: p,
674
672
  search: u,
675
673
  matches: h,
676
- currentMatchElement: w,
677
- setCurrentMatchElement: g
674
+ currentMatchElement: v,
675
+ setCurrentMatchElement: w
678
676
  },
679
677
  children: t
680
678
  }
681
679
  );
682
- }, _n = () => Ke(vn), me = {
680
+ }, gn = () => Ke(fn), me = {
683
681
  "rp-pages": "_rp-pages_34orh_1",
684
682
  "rp-pages-horizontal-scroll": "_rp-pages-horizontal-scroll_34orh_7",
685
683
  "rp-pages-container": "_rp-pages-container_34orh_11",
@@ -687,7 +685,7 @@ const no = () => {
687
685
  "rp-viewer": "_rp-viewer_34orh_22",
688
686
  "rp-cursor-grab": "_rp-cursor-grab_34orh_27",
689
687
  "rp-cursor-grabbing": "_rp-cursor-grabbing_34orh_35"
690
- }, ot = {
688
+ }, it = {
691
689
  "rp-page-wrapper": "_rp-page-wrapper_h7a2q_1",
692
690
  "rp-page": "_rp-page_h7a2q_1",
693
691
  "rp-loader-wrapper": "_rp-loader-wrapper_h7a2q_14"
@@ -700,377 +698,281 @@ const no = () => {
700
698
  if (r.current && u) {
701
699
  const h = r.current;
702
700
  h.hidden = !0;
703
- const m = c.current;
704
- m && m.cancel(), o && o(), c.current = mt(u.page, h, l, s), c.current.promise.then(() => {
701
+ const f = c.current;
702
+ f && f.cancel(), o && o(), c.current = mt(u.page, h, {
703
+ scale: l,
704
+ rotate: s,
705
+ renderForms: !0
706
+ }), c.current.promise.then(() => {
705
707
  h.hidden = !1;
706
- }).catch((d) => {
708
+ }).catch((p) => {
707
709
  }).finally(() => {
708
710
  n && n();
709
711
  });
710
712
  }
711
713
  }, [a, e, s, l, o, n]), /* @__PURE__ */ i("canvas", { "data-rp": `page-${e}-canvas`, ref: r });
712
- }, it = {
713
- "rp-text-layer": "_rp-text-layer_1mgyz_1",
714
- "rp-text-layer-text": "_rp-text-layer-text_1mgyz_9"
714
+ }, at = {
715
+ "rp-text-layer": "_rp-text-layer_1lu4t_1",
716
+ "rp-text-layer-text": "_rp-text-layer-text_1lu4t_9"
715
717
  }, ao = (t) => {
716
- const { pageNumber: e } = t, { pages: n } = Y(), o = W(null), { matches: r, currentMatch: a, setCurrentMatchElement: s } = _n(), [c, l] = H(
718
+ const { pageNumber: e } = t, { pages: n } = Y(), o = W(null), { matches: r, currentMatch: a, setCurrentMatchElement: s } = gn(), [c, l] = H(
717
719
  []
718
- ), u = W(), h = W(), m = W(), d = k(() => r.filter((g) => g.pageIndex === e - 1), [r, e]), w = L(
719
- (g, b, v = !1) => {
720
- if (v && ar(g, b), !d.length) {
721
- m.current = void 0, l([]);
720
+ ), u = W(), h = W(), f = W(), p = k(() => r.filter((w) => w.pageIndex === e - 1), [r, e]), v = L(
721
+ (w, C, g = !1) => {
722
+ if (g && nr(w, C), !p.length) {
723
+ f.current = void 0, l([]);
722
724
  return;
723
725
  }
724
- const _ = rn(d, g, b);
726
+ const _ = tn(p, w, C);
725
727
  l(_);
726
728
  },
727
- [d]
729
+ [p]
728
730
  );
729
731
  return O(() => {
730
- var v;
731
- if ((v = m.current) == null || v.classList.remove("selected"), !c.length || !a || a.pageIndex !== e - 1)
732
+ var g;
733
+ if ((g = f.current) == null || g.classList.remove("selected"), !c.length || !a || a.pageIndex !== e - 1)
732
734
  return;
733
- const g = d.findIndex(
735
+ const w = p.findIndex(
734
736
  (_) => JSON.stringify(_) === JSON.stringify(a)
735
737
  );
736
- if (g === -1)
738
+ if (w === -1)
737
739
  return;
738
- const b = c.find((_) => _.index === g);
739
- b && (m.current = b.element, s(b.element), b.element.classList.add("selected"));
740
- }, [a, c, d]), O(() => {
741
- const g = n.get(e);
742
- if (!(!g || !o.current))
743
- return u.current && u.current.cancel(), g.page.getTextContent().then((b) => {
744
- const v = g.page.getViewport({ scale: 1 });
745
- return u.current = new on.TextLayer({
746
- viewport: v,
747
- textContentSource: b,
740
+ const C = c.find((_) => _.index === w);
741
+ C && (f.current = C.element, s(C.element), C.element.classList.add("selected"));
742
+ }, [a, c, p]), O(() => {
743
+ const w = n.get(e);
744
+ if (!(!w || !o.current))
745
+ return u.current && u.current.cancel(), w.page.getTextContent().then((C) => {
746
+ const g = w.page.getViewport({ scale: 1 });
747
+ return u.current = new nn.TextLayer({
748
+ viewport: g,
749
+ textContentSource: C,
748
750
  container: o.current
749
- }), h.current = b, o.current && (o.current.innerText = ""), u.current.render();
751
+ }), h.current = C, o.current && (o.current.innerText = ""), u.current.render();
750
752
  }).then(() => {
751
753
  var _;
752
- [].slice.call(o.current.children).forEach((f) => {
753
- f.classList.add(it["rp-text-layer-text"]);
754
+ [].slice.call(o.current.children).forEach((m) => {
755
+ m.classList.add(at["rp-text-layer-text"]);
754
756
  });
755
- const v = (_ = u.current) == null ? void 0 : _.textDivs;
756
- v && h.current && w(h.current, v);
757
+ const g = (_ = u.current) == null ? void 0 : _.textDivs;
758
+ g && h.current && v(h.current, g);
757
759
  }).catch(() => {
758
760
  }), () => {
759
- var b;
760
- (b = u.current) == null || b.cancel();
761
+ var C;
762
+ (C = u.current) == null || C.cancel();
761
763
  };
762
764
  }, [n, e]), O(() => {
763
- var v;
765
+ var g;
764
766
  [].slice.call(o.current.children).forEach((_) => {
765
- _.classList.add(it["rp-text-layer-text"]);
767
+ _.classList.add(at["rp-text-layer-text"]);
766
768
  });
767
- const b = (v = u.current) == null ? void 0 : v.textDivs;
768
- b && h.current && w(h.current, b, !0);
769
- }, [w]), /* @__PURE__ */ i(
769
+ const C = (g = u.current) == null ? void 0 : g.textDivs;
770
+ C && h.current && v(h.current, C, !0);
771
+ }, [v]), /* @__PURE__ */ i(
770
772
  "div",
771
773
  {
772
774
  "data-rp": `page-${e}-textLayer`,
773
- className: it["rp-text-layer"],
775
+ className: at["rp-text-layer"],
774
776
  ref: o
775
777
  }
776
778
  );
777
779
  }, so = {
778
780
  "rp-annotation-layer": "_rp-annotation-layer_o0ksd_1"
779
- }, wn = ["click", "dblclick", "mouseover", "input", "change"];
780
- let co = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
781
- const vt = /* @__PURE__ */ new Map(), bn = (t, e) => `${t.loadingTask.docId}___${e.num}R${e.gen === 0 ? "" : e.gen}`;
782
- function lo(t, e) {
783
- const n = bn(t, e);
784
- return vt.has(n) ? vt.get(n) ?? null : null;
785
- }
786
- const uo = (t, e, n) => {
787
- vt.set(bn(t, e), n);
788
- }, At = (t, e) => {
789
- switch (e[1].name) {
790
- case "XYZ":
791
- return {
792
- bottomOffset: (n, o) => e[3] === null ? o : e[3],
793
- leftOffset: (n, o) => e[2] === null ? 0 : e[2],
794
- pageIndex: t,
795
- scaleTo: e[4]
796
- };
797
- case "Fit":
798
- case "FitB":
799
- return {
800
- bottomOffset: 0,
801
- leftOffset: 0,
802
- pageIndex: t,
803
- scaleTo: 1
804
- };
805
- case "FitH":
806
- case "FitBH":
807
- return {
808
- bottomOffset: e[2],
809
- leftOffset: 0,
810
- pageIndex: t,
811
- scaleTo: 1
812
- };
813
- default:
814
- return {
815
- bottomOffset: 0,
816
- leftOffset: 0,
817
- pageIndex: t,
818
- scaleTo: 1
819
- };
820
- }
821
- };
822
- async function Cn(t, e) {
823
- let n;
824
- if (typeof e == "string" ? n = await t.getDestination(e) : n = e, n && typeof n[0] == "object" && n[0] !== null) {
825
- const o = n[0], r = lo(t, o);
826
- if (r === null) {
827
- const a = await t.getPageIndex(o);
828
- return uo(t, o, a), await Cn(t, n);
829
- } else
830
- return At(r, n);
831
- } else
832
- return At(n[0], n);
833
- }
834
- function po(t) {
835
- const { id: e, url: n, unsafeUrl: o } = t;
836
- new MutationObserver((a, s) => {
837
- const c = document.querySelector(`[data-annotation-id="${e}"]`);
838
- if (c) {
839
- const l = c.querySelector("a"), u = Cr((n || o) ?? "", "");
840
- l && (l.setAttribute("target", "_blank"), l.setAttribute("href", u), l.setAttribute("rel", "noopener noreferrer")), s.disconnect();
841
- }
842
- }).observe(document.body, { childList: !0, subtree: !0 });
843
- }
844
- const ho = (t) => {
845
- const n = t.target.parentNode;
846
- if (!n)
847
- return;
848
- const o = new MutationObserver((r) => {
849
- r.forEach(() => {
850
- n.querySelectorAll(
851
- '[data-l10n-id="pdfjs-annotation-date-time-string"]'
852
- ).forEach((s) => {
853
- const c = s.getAttribute("data-l10n-args");
854
- if (c)
855
- try {
856
- const { dateObj: l } = JSON.parse(c);
857
- s.textContent = ft(l);
858
- } catch {
859
- }
860
- });
861
- });
862
- });
863
- return o.observe(n, {
864
- childList: !0,
865
- // Watch for changes to child elements
866
- subtree: !0,
867
- // Watch all descendants, not just direct children
868
- attributes: !0
869
- // Watch for changes to attributes
870
- }), () => o.disconnect();
871
- }, Ft = (t, e, n, o) => {
872
- if (t.type !== "click")
873
- return;
874
- const r = t.target, a = r.getAttribute("data-element-id"), s = r.getAttribute("href");
875
- if (s && s !== "#")
876
- return;
877
- const c = e.find((l) => l.id === a);
878
- !c || c.annotationType !== ht.Link || c.dest && Cn(n, c.dest).then((l) => {
879
- o(l);
880
- });
881
781
  };
882
- function mo(t, e) {
883
- for (const n of wn)
884
- t.addEventListener(n, e);
885
- }
886
- function kt(t, e) {
887
- for (const n of wn)
888
- t.removeEventListener(n, e);
889
- }
890
- const fo = (t) => {
891
- const { pageNumber: e } = t, n = W(null), { pages: o, pdf: r } = Y(), a = W(), [s, c] = H(), { setFocusedPage: l, goToPage: u } = se(), { scrollMode: h } = Ee(), m = k(() => o.get(e), [o, e]), d = k(() => m == null ? void 0 : m.page.getViewport(), [m]);
782
+ let co = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
783
+ const lo = (t) => {
784
+ const { pageNumber: e } = t, n = W(null), { pages: o, pdf: r } = Y(), a = W(), [s, c] = H(), { setFocusedPage: l, goToPage: u } = se(), { scrollMode: h } = Ee(), { print: f } = nt(), { download: p } = zn(), v = k(() => o.get(e), [o, e]), w = k(() => v == null ? void 0 : v.page.getViewport(), [v]);
892
785
  O(() => {
893
786
  a.current && (a.current.div.replaceChildren(), a.current = void 0);
894
- }, [r]);
895
- const w = k(() => r == null ? void 0 : r.annotationStorage, [r]);
896
- O(() => {
897
- m && m.page.getAnnotations().then((b) => {
898
- a.current = void 0, c(b), n.current && (n.current.innerText = "");
787
+ }, [r]), O(() => {
788
+ v && v.page.getAnnotations().then((g) => {
789
+ a.current = void 0, c(g), n.current && (n.current.innerText = "");
899
790
  });
900
- }, [m]);
901
- const g = L(
902
- (b) => {
903
- ho(b), !(!s || !r) && (h === X.PAGE_SCROLLING ? Ft(b, s, r, (v) => l(v.pageIndex + 1)) : Ft(b, s, r, (v) => u(v.pageIndex + 1)));
791
+ }, [v]);
792
+ const C = L(
793
+ (g) => {
794
+ !s || !r || (vr(g), _r(g, r, s).then((_) => {
795
+ var m, P;
796
+ ((m = _ == null ? void 0 : _.data) == null ? void 0 : m.action) === "Print" ? f() : ((P = _ == null ? void 0 : _.data) == null ? void 0 : P.action) === "SaveAs" && p();
797
+ }), h === X.PAGE_SCROLLING ? Lt(g, s, r, (_) => l(_.pageIndex + 1)) : Lt(g, s, r, (_) => u(_.pageIndex + 1)));
904
798
  },
905
- [r, s, u, l, h]
799
+ [r, s, u, l, h, f, p]
906
800
  );
907
801
  return O(() => {
908
- if (!m || !s)
802
+ if (!v || !s)
909
803
  return;
910
- const b = m.page.getViewport();
804
+ const g = v.page.getViewport();
911
805
  if (a.current) {
912
806
  a.current.update({
913
- viewport: b.clone({ dontFlip: !0 })
807
+ viewport: g.clone({ dontFlip: !0 })
914
808
  });
915
809
  return;
916
810
  }
917
- for (const _ of s) {
918
- const { annotationType: f } = _;
919
- switch (f) {
920
- case ht.Link:
921
- po(_);
811
+ const _ = /* @__PURE__ */ new Map([]);
812
+ for (const I of s) {
813
+ const { annotationType: d } = I;
814
+ switch (d) {
815
+ case Rt.Link:
816
+ br(I);
922
817
  break;
923
- case ht.Widget:
818
+ case Rt.Widget:
819
+ wr(I, g, _);
924
820
  break;
925
821
  }
926
822
  }
823
+ const m = new AbortController();
927
824
  return (async () => {
928
- a.current = new ur({
825
+ a.current && (a.current.div.replaceChildren(), a.current = void 0), n.current && (n.current.innerText = ""), a.current = new ar({
929
826
  div: n.current,
930
827
  accessibilityManager: void 0,
931
828
  annotationCanvasMap: void 0,
932
829
  annotationEditorUIManager: void 0,
933
- structTreeLayer: void 0,
934
- page: m.page,
935
- viewport: b.clone({ dontFlip: !0 })
936
- }), n.current && kt(n.current, g);
937
- const _ = await (r == null ? void 0 : r.hasJSActions()), f = await (r == null ? void 0 : r.getFieldObjects());
830
+ structTreeLayer: null,
831
+ page: v.page,
832
+ viewport: g.clone({ dontFlip: !0 })
833
+ }), n.current && Nt(n.current, C);
834
+ const I = await (r == null ? void 0 : r.hasJSActions()), d = await (r == null ? void 0 : r.getFieldObjects());
835
+ if (m.signal.aborted)
836
+ throw "abort";
938
837
  return a.current.render({
939
838
  annotations: s,
940
- annotationStorage: w,
941
- hasJSActions: _,
942
- fieldObjects: f,
839
+ annotationStorage: r == null ? void 0 : r.annotationStorage,
840
+ hasJSActions: I,
841
+ fieldObjects: d,
943
842
  div: n.current,
944
- viewport: b.clone({ dontFlip: !0 }),
945
- page: m.page,
843
+ viewport: g.clone({ dontFlip: !0 }),
844
+ page: v.page,
946
845
  imageResourcesPath: co,
947
- renderForms: !1,
948
- linkService: new br(),
846
+ renderForms: !0,
847
+ linkService: new gr(),
949
848
  downloadManager: null,
950
849
  enableScripting: !1
951
850
  });
952
851
  })().then(() => {
953
- n.current && mo(n.current, g);
852
+ n.current && Cr(n.current, C);
853
+ }).catch((I) => {
854
+ if (I !== "abort")
855
+ throw I;
954
856
  }), () => {
955
- n.current && kt(n.current, g);
857
+ m.abort("clear"), n.current && Nt(n.current, C);
956
858
  };
957
- }, [r, s, g]), /* @__PURE__ */ i(
859
+ }, [r, s, C]), /* @__PURE__ */ i(
958
860
  "div",
959
861
  {
960
862
  "data-rp": `page-${e}-annotationLayer`,
961
- style: { width: `${d == null ? void 0 : d.width}px`, height: `${d == null ? void 0 : d.height}px` },
863
+ style: { width: `${w == null ? void 0 : w.width}px`, height: `${w == null ? void 0 : w.height}px` },
962
864
  className: so["rp-annotation-layer"],
963
865
  ref: n
964
866
  }
965
867
  );
966
- }, go = Array.from({ length: 21 }, (t, e) => Number((e * 0.05).toFixed(2))), yt = Xe((t, e) => {
967
- const { pageNumber: n, style: o, onIntersectRatioChange: r, ...a } = t, { pages: s } = Y(), { rotate: c } = Je(), { textLayer: l } = tr(), { currentZoom: u } = Ye(), h = W(s.get(n)), [m, d] = H(!1), w = W(null), [g, b] = H({
868
+ }, uo = Array.from({ length: 21 }, (t, e) => Number((e * 0.05).toFixed(2))), Pt = Xe((t, e) => {
869
+ const { pageNumber: n, style: o, onIntersectRatioChange: r, ...a } = t, { pages: s } = Y(), { rotate: c } = Je(), { textLayer: l } = Jn(), { currentZoom: u } = Ye(), h = W(s.get(n)), [f, p] = H(!1), v = W(null), [w, C] = H({
968
870
  width: 0,
969
871
  height: 0
970
872
  });
971
- en(e, () => w.current), O(() => {
873
+ Yt(e, () => v.current), O(() => {
972
874
  if (s && (h.current = s.get(n), h.current)) {
973
875
  const P = h.current.page.getViewport({ scale: u, rotation: c });
974
- b(P);
876
+ C(P);
975
877
  }
976
878
  }, [s, n, c, u]);
977
- const v = k(() => {
879
+ const g = k(() => {
978
880
  switch (c) {
979
881
  case 90:
980
- return `${g.width / 2}px ${g.width / 2}px`;
882
+ return `${w.width / 2}px ${w.width / 2}px`;
981
883
  case -90:
982
884
  case 270:
983
- return `${g.height / 2}px ${g.height / 2}px`;
885
+ return `${w.height / 2}px ${w.height / 2}px`;
984
886
  default:
985
887
  return "center";
986
888
  }
987
- }, [c, g]), _ = L(() => {
988
- d(!0);
989
- }, []), f = L(() => {
990
- d(!1);
889
+ }, [c, w]), _ = L(() => {
890
+ p(!0);
891
+ }, []), m = L(() => {
892
+ p(!1);
991
893
  }, []);
992
894
  return O(() => {
993
895
  const P = new IntersectionObserver(
994
- (R) => {
995
- r(n, R[0].intersectionRatio);
896
+ (I) => {
897
+ r(n, I[0].intersectionRatio);
996
898
  },
997
- { threshold: go }
899
+ { threshold: uo }
998
900
  );
999
- return w.current && P.observe(w.current), () => {
901
+ return v.current && P.observe(v.current), () => {
1000
902
  P.disconnect(), r(n, -1);
1001
903
  };
1002
- }, [r, n, c, g]), /* @__PURE__ */ i(
904
+ }, [r, n, c, w]), /* @__PURE__ */ i(
1003
905
  "div",
1004
906
  {
1005
- ref: w,
907
+ ref: v,
1006
908
  id: `page-${n}`,
1007
909
  "data-rp": `page-${n}`,
1008
910
  ...a,
1009
911
  style: {
1010
912
  ...o,
1011
913
  "--rp-rotate": `${c}deg`,
1012
- "--rp-page-rotate-translate": `${v}`,
914
+ "--rp-page-rotate-translate": `${g}`,
1013
915
  "--scale-factor": u
1014
916
  },
1015
- className: ot["rp-page-wrapper"],
917
+ className: it["rp-page-wrapper"],
1016
918
  children: /* @__PURE__ */ D(
1017
919
  "div",
1018
920
  {
1019
921
  style: {
1020
- width: `${g.width}px`,
1021
- height: `${g.height}px`
922
+ width: `${w.width}px`,
923
+ height: `${w.height}px`
1022
924
  },
1023
- className: ot["rp-page"],
925
+ className: it["rp-page"],
1024
926
  children: [
1025
- /* @__PURE__ */ i(io, { onLoading: _, onLoaded: f, pageNumber: n }),
1026
- m && /* @__PURE__ */ i("div", { className: ot["rp-loader-wrapper"], children: /* @__PURE__ */ i(Me, {}) }),
927
+ /* @__PURE__ */ i(io, { onLoading: _, onLoaded: m, pageNumber: n }),
928
+ f && /* @__PURE__ */ i("div", { className: it["rp-loader-wrapper"], children: /* @__PURE__ */ i(Me, {}) }),
1027
929
  l && /* @__PURE__ */ i(ao, { pageNumber: n }),
1028
- /* @__PURE__ */ i(fo, { pageNumber: n })
930
+ /* @__PURE__ */ i(lo, { pageNumber: n })
1029
931
  ]
1030
932
  }
1031
933
  )
1032
934
  }
1033
935
  );
1034
936
  });
1035
- function _t() {
1036
- return _t = Object.assign ? Object.assign.bind() : function(t) {
937
+ function gt() {
938
+ return gt = Object.assign ? Object.assign.bind() : function(t) {
1037
939
  for (var e = 1; e < arguments.length; e++) {
1038
940
  var n = arguments[e];
1039
941
  for (var o in n)
1040
942
  ({}).hasOwnProperty.call(n, o) && (t[o] = n[o]);
1041
943
  }
1042
944
  return t;
1043
- }, _t.apply(null, arguments);
945
+ }, gt.apply(null, arguments);
1044
946
  }
1045
- function Wt(t) {
947
+ function Ft(t) {
1046
948
  if (t === void 0)
1047
949
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1048
950
  return t;
1049
951
  }
1050
- function wt(t, e) {
1051
- return wt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, o) {
952
+ function vt(t, e) {
953
+ return vt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, o) {
1052
954
  return n.__proto__ = o, n;
1053
- }, wt(t, e);
955
+ }, vt(t, e);
1054
956
  }
1055
- function vo(t, e) {
1056
- t.prototype = Object.create(e.prototype), t.prototype.constructor = t, wt(t, e);
957
+ function po(t, e) {
958
+ t.prototype = Object.create(e.prototype), t.prototype.constructor = t, vt(t, e);
1057
959
  }
1058
- var Mt = Number.isNaN || function(e) {
960
+ var kt = Number.isNaN || function(e) {
1059
961
  return typeof e == "number" && e !== e;
1060
962
  };
1061
- function _o(t, e) {
1062
- return !!(t === e || Mt(t) && Mt(e));
963
+ function ho(t, e) {
964
+ return !!(t === e || kt(t) && kt(e));
1063
965
  }
1064
- function wo(t, e) {
966
+ function mo(t, e) {
1065
967
  if (t.length !== e.length)
1066
968
  return !1;
1067
969
  for (var n = 0; n < t.length; n++)
1068
- if (!_o(t[n], e[n]))
970
+ if (!ho(t[n], e[n]))
1069
971
  return !1;
1070
972
  return !0;
1071
973
  }
1072
- function at(t, e) {
1073
- e === void 0 && (e = wo);
974
+ function st(t, e) {
975
+ e === void 0 && (e = mo);
1074
976
  var n, o = [], r, a = !1;
1075
977
  function s() {
1076
978
  for (var c = [], l = 0; l < arguments.length; l++)
@@ -1079,7 +981,7 @@ function at(t, e) {
1079
981
  }
1080
982
  return s;
1081
983
  }
1082
- function Ht(t, e) {
984
+ function Wt(t, e) {
1083
985
  if (t == null)
1084
986
  return {};
1085
987
  var n = {};
@@ -1091,34 +993,34 @@ function Ht(t, e) {
1091
993
  }
1092
994
  return n;
1093
995
  }
1094
- var bo = typeof performance == "object" && typeof performance.now == "function", $t = bo ? function() {
996
+ var fo = typeof performance == "object" && typeof performance.now == "function", Mt = fo ? function() {
1095
997
  return performance.now();
1096
998
  } : function() {
1097
999
  return Date.now();
1098
1000
  };
1099
- function Gt(t) {
1001
+ function Ht(t) {
1100
1002
  cancelAnimationFrame(t.id);
1101
1003
  }
1102
- function Co(t, e) {
1103
- var n = $t();
1004
+ function go(t, e) {
1005
+ var n = Mt();
1104
1006
  function o() {
1105
- $t() - n >= e ? t.call(null) : r.id = requestAnimationFrame(o);
1007
+ Mt() - n >= e ? t.call(null) : r.id = requestAnimationFrame(o);
1106
1008
  }
1107
1009
  var r = {
1108
1010
  id: requestAnimationFrame(o)
1109
1011
  };
1110
1012
  return r;
1111
1013
  }
1112
- var st = -1;
1113
- function To(t) {
1114
- if (t === void 0 && (t = !1), st === -1 || t) {
1014
+ var ct = -1;
1015
+ function vo(t) {
1016
+ if (t === void 0 && (t = !1), ct === -1 || t) {
1115
1017
  var e = document.createElement("div"), n = e.style;
1116
- n.width = "50px", n.height = "50px", n.overflow = "scroll", document.body.appendChild(e), st = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
1018
+ n.width = "50px", n.height = "50px", n.overflow = "scroll", document.body.appendChild(e), ct = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
1117
1019
  }
1118
- return st;
1020
+ return ct;
1119
1021
  }
1120
1022
  var Re = null;
1121
- function Vt(t) {
1023
+ function $t(t) {
1122
1024
  if (t === void 0 && (t = !1), Re === null || t) {
1123
1025
  var e = document.createElement("div"), n = e.style;
1124
1026
  n.width = "50px", n.height = "50px", n.overflow = "scroll", n.direction = "rtl";
@@ -1127,160 +1029,160 @@ function Vt(t) {
1127
1029
  }
1128
1030
  return Re;
1129
1031
  }
1130
- var Po = 150, So = function(e) {
1032
+ var _o = 150, wo = function(e) {
1131
1033
  var n = e.columnIndex;
1132
1034
  e.data;
1133
1035
  var o = e.rowIndex;
1134
1036
  return o + ":" + n;
1135
1037
  }, Ge = null, Ve = null, Ue = null;
1136
1038
  process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (Ge = /* @__PURE__ */ new WeakSet(), Ve = /* @__PURE__ */ new WeakSet(), Ue = /* @__PURE__ */ new WeakSet());
1137
- function Io(t) {
1138
- var e, n = t.getColumnOffset, o = t.getColumnStartIndexForOffset, r = t.getColumnStopIndexForStartIndex, a = t.getColumnWidth, s = t.getEstimatedTotalHeight, c = t.getEstimatedTotalWidth, l = t.getOffsetForColumnAndAlignment, u = t.getOffsetForRowAndAlignment, h = t.getRowHeight, m = t.getRowOffset, d = t.getRowStartIndexForOffset, w = t.getRowStopIndexForStartIndex, g = t.initInstanceProps, b = t.shouldResetStyleCacheOnItemSizeChange, v = t.validateProps;
1039
+ function bo(t) {
1040
+ var e, n = t.getColumnOffset, o = t.getColumnStartIndexForOffset, r = t.getColumnStopIndexForStartIndex, a = t.getColumnWidth, s = t.getEstimatedTotalHeight, c = t.getEstimatedTotalWidth, l = t.getOffsetForColumnAndAlignment, u = t.getOffsetForRowAndAlignment, h = t.getRowHeight, f = t.getRowOffset, p = t.getRowStartIndexForOffset, v = t.getRowStopIndexForStartIndex, w = t.initInstanceProps, C = t.shouldResetStyleCacheOnItemSizeChange, g = t.validateProps;
1139
1041
  return e = /* @__PURE__ */ function(_) {
1140
- vo(f, _);
1141
- function f(R) {
1142
- var p;
1143
- return p = _.call(this, R) || this, p._instanceProps = g(p.props, Wt(p)), p._resetIsScrollingTimeoutId = null, p._outerRef = void 0, p.state = {
1144
- instance: Wt(p),
1042
+ po(m, _);
1043
+ function m(I) {
1044
+ var d;
1045
+ return d = _.call(this, I) || this, d._instanceProps = w(d.props, Ft(d)), d._resetIsScrollingTimeoutId = null, d._outerRef = void 0, d.state = {
1046
+ instance: Ft(d),
1145
1047
  isScrolling: !1,
1146
1048
  horizontalScrollDirection: "forward",
1147
- scrollLeft: typeof p.props.initialScrollLeft == "number" ? p.props.initialScrollLeft : 0,
1148
- scrollTop: typeof p.props.initialScrollTop == "number" ? p.props.initialScrollTop : 0,
1049
+ scrollLeft: typeof d.props.initialScrollLeft == "number" ? d.props.initialScrollLeft : 0,
1050
+ scrollTop: typeof d.props.initialScrollTop == "number" ? d.props.initialScrollTop : 0,
1149
1051
  scrollUpdateWasRequested: !1,
1150
1052
  verticalScrollDirection: "forward"
1151
- }, p._callOnItemsRendered = void 0, p._callOnItemsRendered = at(function(T, C, S, A, I, E, y, F) {
1152
- return p.props.onItemsRendered({
1053
+ }, d._callOnItemsRendered = void 0, d._callOnItemsRendered = st(function(T, b, S, A, y, E, x, F) {
1054
+ return d.props.onItemsRendered({
1153
1055
  overscanColumnStartIndex: T,
1154
- overscanColumnStopIndex: C,
1056
+ overscanColumnStopIndex: b,
1155
1057
  overscanRowStartIndex: S,
1156
1058
  overscanRowStopIndex: A,
1157
- visibleColumnStartIndex: I,
1059
+ visibleColumnStartIndex: y,
1158
1060
  visibleColumnStopIndex: E,
1159
- visibleRowStartIndex: y,
1061
+ visibleRowStartIndex: x,
1160
1062
  visibleRowStopIndex: F
1161
1063
  });
1162
- }), p._callOnScroll = void 0, p._callOnScroll = at(function(T, C, S, A, I) {
1163
- return p.props.onScroll({
1064
+ }), d._callOnScroll = void 0, d._callOnScroll = st(function(T, b, S, A, y) {
1065
+ return d.props.onScroll({
1164
1066
  horizontalScrollDirection: S,
1165
1067
  scrollLeft: T,
1166
- scrollTop: C,
1068
+ scrollTop: b,
1167
1069
  verticalScrollDirection: A,
1168
- scrollUpdateWasRequested: I
1070
+ scrollUpdateWasRequested: y
1169
1071
  });
1170
- }), p._getItemStyle = void 0, p._getItemStyle = function(T, C) {
1171
- var S = p.props, A = S.columnWidth, I = S.direction, E = S.rowHeight, y = p._getItemStyleCache(b && A, b && I, b && E), F = T + ":" + C, z;
1172
- if (y.hasOwnProperty(F))
1173
- z = y[F];
1072
+ }), d._getItemStyle = void 0, d._getItemStyle = function(T, b) {
1073
+ var S = d.props, A = S.columnWidth, y = S.direction, E = S.rowHeight, x = d._getItemStyleCache(C && A, C && y, C && E), F = T + ":" + b, z;
1074
+ if (x.hasOwnProperty(F))
1075
+ z = x[F];
1174
1076
  else {
1175
- var x = n(p.props, C, p._instanceProps), N = I === "rtl";
1176
- y[F] = z = {
1077
+ var R = n(d.props, b, d._instanceProps), N = y === "rtl";
1078
+ x[F] = z = {
1177
1079
  position: "absolute",
1178
- left: N ? void 0 : x,
1179
- right: N ? x : void 0,
1180
- top: m(p.props, T, p._instanceProps),
1181
- height: h(p.props, T, p._instanceProps),
1182
- width: a(p.props, C, p._instanceProps)
1080
+ left: N ? void 0 : R,
1081
+ right: N ? R : void 0,
1082
+ top: f(d.props, T, d._instanceProps),
1083
+ height: h(d.props, T, d._instanceProps),
1084
+ width: a(d.props, b, d._instanceProps)
1183
1085
  };
1184
1086
  }
1185
1087
  return z;
1186
- }, p._getItemStyleCache = void 0, p._getItemStyleCache = at(function(T, C, S) {
1088
+ }, d._getItemStyleCache = void 0, d._getItemStyleCache = st(function(T, b, S) {
1187
1089
  return {};
1188
- }), p._onScroll = function(T) {
1189
- var C = T.currentTarget, S = C.clientHeight, A = C.clientWidth, I = C.scrollLeft, E = C.scrollTop, y = C.scrollHeight, F = C.scrollWidth;
1190
- p.setState(function(z) {
1191
- if (z.scrollLeft === I && z.scrollTop === E)
1090
+ }), d._onScroll = function(T) {
1091
+ var b = T.currentTarget, S = b.clientHeight, A = b.clientWidth, y = b.scrollLeft, E = b.scrollTop, x = b.scrollHeight, F = b.scrollWidth;
1092
+ d.setState(function(z) {
1093
+ if (z.scrollLeft === y && z.scrollTop === E)
1192
1094
  return null;
1193
- var x = p.props.direction, N = I;
1194
- if (x === "rtl")
1195
- switch (Vt()) {
1095
+ var R = d.props.direction, N = y;
1096
+ if (R === "rtl")
1097
+ switch ($t()) {
1196
1098
  case "negative":
1197
- N = -I;
1099
+ N = -y;
1198
1100
  break;
1199
1101
  case "positive-descending":
1200
- N = F - A - I;
1102
+ N = F - A - y;
1201
1103
  break;
1202
1104
  }
1203
1105
  N = Math.max(0, Math.min(N, F - A));
1204
- var $ = Math.max(0, Math.min(E, y - S));
1106
+ var $ = Math.max(0, Math.min(E, x - S));
1205
1107
  return {
1206
1108
  isScrolling: !0,
1207
- horizontalScrollDirection: z.scrollLeft < I ? "forward" : "backward",
1109
+ horizontalScrollDirection: z.scrollLeft < y ? "forward" : "backward",
1208
1110
  scrollLeft: N,
1209
1111
  scrollTop: $,
1210
1112
  verticalScrollDirection: z.scrollTop < E ? "forward" : "backward",
1211
1113
  scrollUpdateWasRequested: !1
1212
1114
  };
1213
- }, p._resetIsScrollingDebounced);
1214
- }, p._outerRefSetter = function(T) {
1215
- var C = p.props.outerRef;
1216
- p._outerRef = T, typeof C == "function" ? C(T) : C != null && typeof C == "object" && C.hasOwnProperty("current") && (C.current = T);
1217
- }, p._resetIsScrollingDebounced = function() {
1218
- p._resetIsScrollingTimeoutId !== null && Gt(p._resetIsScrollingTimeoutId), p._resetIsScrollingTimeoutId = Co(p._resetIsScrolling, Po);
1219
- }, p._resetIsScrolling = function() {
1220
- p._resetIsScrollingTimeoutId = null, p.setState({
1115
+ }, d._resetIsScrollingDebounced);
1116
+ }, d._outerRefSetter = function(T) {
1117
+ var b = d.props.outerRef;
1118
+ d._outerRef = T, typeof b == "function" ? b(T) : b != null && typeof b == "object" && b.hasOwnProperty("current") && (b.current = T);
1119
+ }, d._resetIsScrollingDebounced = function() {
1120
+ d._resetIsScrollingTimeoutId !== null && Ht(d._resetIsScrollingTimeoutId), d._resetIsScrollingTimeoutId = go(d._resetIsScrolling, _o);
1121
+ }, d._resetIsScrolling = function() {
1122
+ d._resetIsScrollingTimeoutId = null, d.setState({
1221
1123
  isScrolling: !1
1222
1124
  }, function() {
1223
- p._getItemStyleCache(-1);
1125
+ d._getItemStyleCache(-1);
1224
1126
  });
1225
- }, p;
1127
+ }, d;
1226
1128
  }
1227
- f.getDerivedStateFromProps = function(p, T) {
1228
- return yo(p, T), v(p), null;
1129
+ m.getDerivedStateFromProps = function(d, T) {
1130
+ return Co(d, T), g(d), null;
1229
1131
  };
1230
- var P = f.prototype;
1231
- return P.scrollTo = function(p) {
1232
- var T = p.scrollLeft, C = p.scrollTop;
1233
- T !== void 0 && (T = Math.max(0, T)), C !== void 0 && (C = Math.max(0, C)), this.setState(function(S) {
1234
- return T === void 0 && (T = S.scrollLeft), C === void 0 && (C = S.scrollTop), S.scrollLeft === T && S.scrollTop === C ? null : {
1132
+ var P = m.prototype;
1133
+ return P.scrollTo = function(d) {
1134
+ var T = d.scrollLeft, b = d.scrollTop;
1135
+ T !== void 0 && (T = Math.max(0, T)), b !== void 0 && (b = Math.max(0, b)), this.setState(function(S) {
1136
+ return T === void 0 && (T = S.scrollLeft), b === void 0 && (b = S.scrollTop), S.scrollLeft === T && S.scrollTop === b ? null : {
1235
1137
  horizontalScrollDirection: S.scrollLeft < T ? "forward" : "backward",
1236
1138
  scrollLeft: T,
1237
- scrollTop: C,
1139
+ scrollTop: b,
1238
1140
  scrollUpdateWasRequested: !0,
1239
- verticalScrollDirection: S.scrollTop < C ? "forward" : "backward"
1141
+ verticalScrollDirection: S.scrollTop < b ? "forward" : "backward"
1240
1142
  };
1241
1143
  }, this._resetIsScrollingDebounced);
1242
- }, P.scrollToItem = function(p) {
1243
- var T = p.align, C = T === void 0 ? "auto" : T, S = p.columnIndex, A = p.rowIndex, I = this.props, E = I.columnCount, y = I.height, F = I.rowCount, z = I.width, x = this.state, N = x.scrollLeft, $ = x.scrollTop, U = To();
1144
+ }, P.scrollToItem = function(d) {
1145
+ var T = d.align, b = T === void 0 ? "auto" : T, S = d.columnIndex, A = d.rowIndex, y = this.props, E = y.columnCount, x = y.height, F = y.rowCount, z = y.width, R = this.state, N = R.scrollLeft, $ = R.scrollTop, U = vo();
1244
1146
  S !== void 0 && (S = Math.max(0, Math.min(S, E - 1))), A !== void 0 && (A = Math.max(0, Math.min(A, F - 1)));
1245
- var Z = s(this.props, this._instanceProps), B = c(this.props, this._instanceProps), q = B > z ? U : 0, K = Z > y ? U : 0;
1147
+ var j = s(this.props, this._instanceProps), B = c(this.props, this._instanceProps), q = B > z ? U : 0, K = j > x ? U : 0;
1246
1148
  this.scrollTo({
1247
- scrollLeft: S !== void 0 ? l(this.props, S, C, N, this._instanceProps, K) : N,
1248
- scrollTop: A !== void 0 ? u(this.props, A, C, $, this._instanceProps, q) : $
1149
+ scrollLeft: S !== void 0 ? l(this.props, S, b, N, this._instanceProps, K) : N,
1150
+ scrollTop: A !== void 0 ? u(this.props, A, b, $, this._instanceProps, q) : $
1249
1151
  });
1250
1152
  }, P.componentDidMount = function() {
1251
- var p = this.props, T = p.initialScrollLeft, C = p.initialScrollTop;
1153
+ var d = this.props, T = d.initialScrollLeft, b = d.initialScrollTop;
1252
1154
  if (this._outerRef != null) {
1253
1155
  var S = this._outerRef;
1254
- typeof T == "number" && (S.scrollLeft = T), typeof C == "number" && (S.scrollTop = C);
1156
+ typeof T == "number" && (S.scrollLeft = T), typeof b == "number" && (S.scrollTop = b);
1255
1157
  }
1256
1158
  this._callPropsCallbacks();
1257
1159
  }, P.componentDidUpdate = function() {
1258
- var p = this.props.direction, T = this.state, C = T.scrollLeft, S = T.scrollTop, A = T.scrollUpdateWasRequested;
1160
+ var d = this.props.direction, T = this.state, b = T.scrollLeft, S = T.scrollTop, A = T.scrollUpdateWasRequested;
1259
1161
  if (A && this._outerRef != null) {
1260
- var I = this._outerRef;
1261
- if (p === "rtl")
1262
- switch (Vt()) {
1162
+ var y = this._outerRef;
1163
+ if (d === "rtl")
1164
+ switch ($t()) {
1263
1165
  case "negative":
1264
- I.scrollLeft = -C;
1166
+ y.scrollLeft = -b;
1265
1167
  break;
1266
1168
  case "positive-ascending":
1267
- I.scrollLeft = C;
1169
+ y.scrollLeft = b;
1268
1170
  break;
1269
1171
  default:
1270
- var E = I.clientWidth, y = I.scrollWidth;
1271
- I.scrollLeft = y - E - C;
1172
+ var E = y.clientWidth, x = y.scrollWidth;
1173
+ y.scrollLeft = x - E - b;
1272
1174
  break;
1273
1175
  }
1274
1176
  else
1275
- I.scrollLeft = Math.max(0, C);
1276
- I.scrollTop = Math.max(0, S);
1177
+ y.scrollLeft = Math.max(0, b);
1178
+ y.scrollTop = Math.max(0, S);
1277
1179
  }
1278
1180
  this._callPropsCallbacks();
1279
1181
  }, P.componentWillUnmount = function() {
1280
- this._resetIsScrollingTimeoutId !== null && Gt(this._resetIsScrollingTimeoutId);
1182
+ this._resetIsScrollingTimeoutId !== null && Ht(this._resetIsScrollingTimeoutId);
1281
1183
  }, P.render = function() {
1282
- var p = this.props, T = p.children, C = p.className, S = p.columnCount, A = p.direction, I = p.height, E = p.innerRef, y = p.innerElementType, F = p.innerTagName, z = p.itemData, x = p.itemKey, N = x === void 0 ? So : x, $ = p.outerElementType, U = p.outerTagName, Z = p.rowCount, B = p.style, q = p.useIsScrolling, K = p.width, ie = this.state.isScrolling, de = this._getHorizontalRangeToRender(), Q = de[0], ae = de[1], ee = this._getVerticalRangeToRender(), be = ee[0], Oe = ee[1], ve = [];
1283
- if (S > 0 && Z)
1184
+ var d = this.props, T = d.children, b = d.className, S = d.columnCount, A = d.direction, y = d.height, E = d.innerRef, x = d.innerElementType, F = d.innerTagName, z = d.itemData, R = d.itemKey, N = R === void 0 ? wo : R, $ = d.outerElementType, U = d.outerTagName, j = d.rowCount, B = d.style, q = d.useIsScrolling, K = d.width, ie = this.state.isScrolling, de = this._getHorizontalRangeToRender(), Q = de[0], ae = de[1], ee = this._getVerticalRangeToRender(), be = ee[0], Oe = ee[1], ve = [];
1185
+ if (S > 0 && j)
1284
1186
  for (var pe = be; pe <= Oe; pe++)
1285
1187
  for (var he = Q; he <= ae; he++)
1286
1188
  ve.push($e(T, {
@@ -1297,19 +1199,19 @@ function Io(t) {
1297
1199
  }));
1298
1200
  var De = s(this.props, this._instanceProps), M = c(this.props, this._instanceProps);
1299
1201
  return $e($ || U || "div", {
1300
- className: C,
1202
+ className: b,
1301
1203
  onScroll: this._onScroll,
1302
1204
  ref: this._outerRefSetter,
1303
- style: _t({
1205
+ style: gt({
1304
1206
  position: "relative",
1305
- height: I,
1207
+ height: y,
1306
1208
  width: K,
1307
1209
  overflow: "auto",
1308
1210
  WebkitOverflowScrolling: "touch",
1309
1211
  willChange: "transform",
1310
1212
  direction: A
1311
1213
  }, B)
1312
- }, $e(y || F || "div", {
1214
+ }, $e(x || F || "div", {
1313
1215
  children: ve,
1314
1216
  ref: E,
1315
1217
  style: {
@@ -1319,38 +1221,38 @@ function Io(t) {
1319
1221
  }
1320
1222
  }));
1321
1223
  }, P._callPropsCallbacks = function() {
1322
- var p = this.props, T = p.columnCount, C = p.onItemsRendered, S = p.onScroll, A = p.rowCount;
1323
- if (typeof C == "function" && T > 0 && A > 0) {
1324
- var I = this._getHorizontalRangeToRender(), E = I[0], y = I[1], F = I[2], z = I[3], x = this._getVerticalRangeToRender(), N = x[0], $ = x[1], U = x[2], Z = x[3];
1325
- this._callOnItemsRendered(E, y, N, $, F, z, U, Z);
1224
+ var d = this.props, T = d.columnCount, b = d.onItemsRendered, S = d.onScroll, A = d.rowCount;
1225
+ if (typeof b == "function" && T > 0 && A > 0) {
1226
+ var y = this._getHorizontalRangeToRender(), E = y[0], x = y[1], F = y[2], z = y[3], R = this._getVerticalRangeToRender(), N = R[0], $ = R[1], U = R[2], j = R[3];
1227
+ this._callOnItemsRendered(E, x, N, $, F, z, U, j);
1326
1228
  }
1327
1229
  if (typeof S == "function") {
1328
1230
  var B = this.state, q = B.horizontalScrollDirection, K = B.scrollLeft, ie = B.scrollTop, de = B.scrollUpdateWasRequested, Q = B.verticalScrollDirection;
1329
1231
  this._callOnScroll(K, ie, q, Q, de);
1330
1232
  }
1331
1233
  }, P._getHorizontalRangeToRender = function() {
1332
- var p = this.props, T = p.columnCount, C = p.overscanColumnCount, S = p.overscanColumnsCount, A = p.overscanCount, I = p.rowCount, E = this.state, y = E.horizontalScrollDirection, F = E.isScrolling, z = E.scrollLeft, x = C || S || A || 1;
1333
- if (T === 0 || I === 0)
1234
+ var d = this.props, T = d.columnCount, b = d.overscanColumnCount, S = d.overscanColumnsCount, A = d.overscanCount, y = d.rowCount, E = this.state, x = E.horizontalScrollDirection, F = E.isScrolling, z = E.scrollLeft, R = b || S || A || 1;
1235
+ if (T === 0 || y === 0)
1334
1236
  return [0, 0, 0, 0];
1335
- var N = o(this.props, z, this._instanceProps), $ = r(this.props, N, z, this._instanceProps), U = !F || y === "backward" ? Math.max(1, x) : 1, Z = !F || y === "forward" ? Math.max(1, x) : 1;
1336
- return [Math.max(0, N - U), Math.max(0, Math.min(T - 1, $ + Z)), N, $];
1237
+ var N = o(this.props, z, this._instanceProps), $ = r(this.props, N, z, this._instanceProps), U = !F || x === "backward" ? Math.max(1, R) : 1, j = !F || x === "forward" ? Math.max(1, R) : 1;
1238
+ return [Math.max(0, N - U), Math.max(0, Math.min(T - 1, $ + j)), N, $];
1337
1239
  }, P._getVerticalRangeToRender = function() {
1338
- var p = this.props, T = p.columnCount, C = p.overscanCount, S = p.overscanRowCount, A = p.overscanRowsCount, I = p.rowCount, E = this.state, y = E.isScrolling, F = E.verticalScrollDirection, z = E.scrollTop, x = S || A || C || 1;
1339
- if (T === 0 || I === 0)
1240
+ var d = this.props, T = d.columnCount, b = d.overscanCount, S = d.overscanRowCount, A = d.overscanRowsCount, y = d.rowCount, E = this.state, x = E.isScrolling, F = E.verticalScrollDirection, z = E.scrollTop, R = S || A || b || 1;
1241
+ if (T === 0 || y === 0)
1340
1242
  return [0, 0, 0, 0];
1341
- var N = d(this.props, z, this._instanceProps), $ = w(this.props, N, z, this._instanceProps), U = !y || F === "backward" ? Math.max(1, x) : 1, Z = !y || F === "forward" ? Math.max(1, x) : 1;
1342
- return [Math.max(0, N - U), Math.max(0, Math.min(I - 1, $ + Z)), N, $];
1343
- }, f;
1344
- }(Jn), e.defaultProps = {
1243
+ var N = p(this.props, z, this._instanceProps), $ = v(this.props, N, z, this._instanceProps), U = !x || F === "backward" ? Math.max(1, R) : 1, j = !x || F === "forward" ? Math.max(1, R) : 1;
1244
+ return [Math.max(0, N - U), Math.max(0, Math.min(y - 1, $ + j)), N, $];
1245
+ }, m;
1246
+ }(jn), e.defaultProps = {
1345
1247
  direction: "ltr",
1346
1248
  itemData: void 0,
1347
1249
  useIsScrolling: !1
1348
1250
  }, e;
1349
1251
  }
1350
- var yo = function(e, n) {
1351
- var o = e.children, r = e.direction, a = e.height, s = e.innerTagName, c = e.outerTagName, l = e.overscanColumnsCount, u = e.overscanCount, h = e.overscanRowsCount, m = e.width, d = n.instance;
1252
+ var Co = function(e, n) {
1253
+ var o = e.children, r = e.direction, a = e.height, s = e.innerTagName, c = e.outerTagName, l = e.overscanColumnsCount, u = e.overscanCount, h = e.overscanRowsCount, f = e.width, p = n.instance;
1352
1254
  if (process.env.NODE_ENV !== "production") {
1353
- if (typeof u == "number" && Ge && !Ge.has(d) && (Ge.add(d), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof l == "number" || typeof h == "number") && Ve && !Ve.has(d) && (Ve.add(d), console.warn("The overscanColumnsCount and overscanRowsCount props have been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (s != null || c != null) && Ue && !Ue.has(d) && (Ue.add(d), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.")), o == null)
1255
+ if (typeof u == "number" && Ge && !Ge.has(p) && (Ge.add(p), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof l == "number" || typeof h == "number") && Ve && !Ve.has(p) && (Ve.add(p), console.warn("The overscanColumnsCount and overscanRowsCount props have been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (s != null || c != null) && Ue && !Ue.has(p) && (Ue.add(p), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.")), o == null)
1354
1256
  throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (o === null ? "null" : typeof o) + '" was specified.'));
1355
1257
  switch (r) {
1356
1258
  case "ltr":
@@ -1359,12 +1261,12 @@ var yo = function(e, n) {
1359
1261
  default:
1360
1262
  throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". ' + ('"' + r + '" was specified.'));
1361
1263
  }
1362
- if (typeof m != "number")
1363
- throw Error('An invalid "width" prop has been specified. Grids must specify a number for width. ' + ('"' + (m === null ? "null" : typeof m) + '" was specified.'));
1264
+ if (typeof f != "number")
1265
+ throw Error('An invalid "width" prop has been specified. Grids must specify a number for width. ' + ('"' + (f === null ? "null" : typeof f) + '" was specified.'));
1364
1266
  if (typeof a != "number")
1365
1267
  throw Error('An invalid "height" prop has been specified. Grids must specify a number for height. ' + ('"' + (a === null ? "null" : typeof a) + '" was specified.'));
1366
1268
  }
1367
- }, Ut = 50, Tn = function(e, n) {
1269
+ }, Gt = 50, vn = function(e, n) {
1368
1270
  var o = e.rowCount, r = n.rowMetadataMap, a = n.estimatedRowHeight, s = n.lastMeasuredRowIndex, c = 0;
1369
1271
  if (s >= o && (s = o - 1), s >= 0) {
1370
1272
  var l = r[s];
@@ -1372,7 +1274,7 @@ var yo = function(e, n) {
1372
1274
  }
1373
1275
  var u = o - s - 1, h = u * a;
1374
1276
  return c + h;
1375
- }, Pn = function(e, n) {
1277
+ }, _n = function(e, n) {
1376
1278
  var o = e.columnCount, r = n.columnMetadataMap, a = n.estimatedColumnWidth, s = n.lastMeasuredColumnIndex, c = 0;
1377
1279
  if (s >= o && (s = o - 1), s >= 0) {
1378
1280
  var l = r[s];
@@ -1389,21 +1291,21 @@ var yo = function(e, n) {
1389
1291
  l = u.offset + u.size;
1390
1292
  }
1391
1293
  for (var h = c + 1; h <= o; h++) {
1392
- var m = s(h);
1294
+ var f = s(h);
1393
1295
  a[h] = {
1394
1296
  offset: l,
1395
- size: m
1396
- }, l += m;
1297
+ size: f
1298
+ }, l += f;
1397
1299
  }
1398
1300
  e === "column" ? r.lastMeasuredColumnIndex = o : r.lastMeasuredRowIndex = o;
1399
1301
  }
1400
1302
  return a[o];
1401
- }, qt = function(e, n, o, r) {
1303
+ }, Vt = function(e, n, o, r) {
1402
1304
  var a, s;
1403
1305
  e === "column" ? (a = o.columnMetadataMap, s = o.lastMeasuredColumnIndex) : (a = o.rowMetadataMap, s = o.lastMeasuredRowIndex);
1404
1306
  var c = s > 0 ? a[s].offset : 0;
1405
- return c >= r ? Sn(e, n, o, s, 0, r) : xo(e, n, o, Math.max(0, s), r);
1406
- }, Sn = function(e, n, o, r, a, s) {
1307
+ return c >= r ? wn(e, n, o, s, 0, r) : To(e, n, o, Math.max(0, s), r);
1308
+ }, wn = function(e, n, o, r, a, s) {
1407
1309
  for (; a <= r; ) {
1408
1310
  var c = a + Math.floor((r - a) / 2), l = fe(e, n, c, o).offset;
1409
1311
  if (l === s)
@@ -1411,29 +1313,29 @@ var yo = function(e, n) {
1411
1313
  l < s ? a = c + 1 : l > s && (r = c - 1);
1412
1314
  }
1413
1315
  return a > 0 ? a - 1 : 0;
1414
- }, xo = function(e, n, o, r, a) {
1316
+ }, To = function(e, n, o, r, a) {
1415
1317
  for (var s = e === "column" ? n.columnCount : n.rowCount, c = 1; r < s && fe(e, n, r, o).offset < a; )
1416
1318
  r += c, c *= 2;
1417
- return Sn(e, n, o, Math.min(r, s - 1), Math.floor(r / 2), a);
1418
- }, jt = function(e, n, o, r, a, s, c) {
1419
- var l = e === "column" ? n.width : n.height, u = fe(e, n, o, s), h = e === "column" ? Pn(n, s) : Tn(n, s), m = Math.max(0, Math.min(h - l, u.offset)), d = Math.max(0, u.offset - l + c + u.size);
1420
- switch (r === "smart" && (a >= d - l && a <= m + l ? r = "auto" : r = "center"), r) {
1319
+ return wn(e, n, o, Math.min(r, s - 1), Math.floor(r / 2), a);
1320
+ }, Ut = function(e, n, o, r, a, s, c) {
1321
+ var l = e === "column" ? n.width : n.height, u = fe(e, n, o, s), h = e === "column" ? _n(n, s) : vn(n, s), f = Math.max(0, Math.min(h - l, u.offset)), p = Math.max(0, u.offset - l + c + u.size);
1322
+ switch (r === "smart" && (a >= p - l && a <= f + l ? r = "auto" : r = "center"), r) {
1421
1323
  case "start":
1422
- return m;
1324
+ return f;
1423
1325
  case "end":
1424
- return d;
1326
+ return p;
1425
1327
  case "center":
1426
- return Math.round(d + (m - d) / 2);
1328
+ return Math.round(p + (f - p) / 2);
1427
1329
  case "auto":
1428
1330
  default:
1429
- return a >= d && a <= m ? a : d > m || a < d ? d : m;
1331
+ return a >= p && a <= f ? a : p > f || a < p ? p : f;
1430
1332
  }
1431
- }, Ro = /* @__PURE__ */ Io({
1333
+ }, Po = /* @__PURE__ */ bo({
1432
1334
  getColumnOffset: function(e, n, o) {
1433
1335
  return fe("column", e, n, o).offset;
1434
1336
  },
1435
1337
  getColumnStartIndexForOffset: function(e, n, o) {
1436
- return qt("column", e, o, n);
1338
+ return Vt("column", e, o, n);
1437
1339
  },
1438
1340
  getColumnStopIndexForStartIndex: function(e, n, o, r) {
1439
1341
  for (var a = e.columnCount, s = e.width, c = fe("column", e, n, r), l = o + s, u = c.offset + c.size, h = n; h < a - 1 && u < l; )
@@ -1443,13 +1345,13 @@ var yo = function(e, n) {
1443
1345
  getColumnWidth: function(e, n, o) {
1444
1346
  return o.columnMetadataMap[n].size;
1445
1347
  },
1446
- getEstimatedTotalHeight: Tn,
1447
- getEstimatedTotalWidth: Pn,
1348
+ getEstimatedTotalHeight: vn,
1349
+ getEstimatedTotalWidth: _n,
1448
1350
  getOffsetForColumnAndAlignment: function(e, n, o, r, a, s) {
1449
- return jt("column", e, n, o, r, a, s);
1351
+ return Ut("column", e, n, o, r, a, s);
1450
1352
  },
1451
1353
  getOffsetForRowAndAlignment: function(e, n, o, r, a, s) {
1452
- return jt("row", e, n, o, r, a, s);
1354
+ return Ut("row", e, n, o, r, a, s);
1453
1355
  },
1454
1356
  getRowOffset: function(e, n, o) {
1455
1357
  return fe("row", e, n, o).offset;
@@ -1458,7 +1360,7 @@ var yo = function(e, n) {
1458
1360
  return o.rowMetadataMap[n].size;
1459
1361
  },
1460
1362
  getRowStartIndexForOffset: function(e, n, o) {
1461
- return qt("row", e, o, n);
1363
+ return Vt("row", e, o, n);
1462
1364
  },
1463
1365
  getRowStopIndexForStartIndex: function(e, n, o, r) {
1464
1366
  for (var a = e.rowCount, s = e.height, c = fe("row", e, n, r), l = o + s, u = c.offset + c.size, h = n; h < a - 1 && u < l; )
@@ -1468,8 +1370,8 @@ var yo = function(e, n) {
1468
1370
  initInstanceProps: function(e, n) {
1469
1371
  var o = e, r = o.estimatedColumnWidth, a = o.estimatedRowHeight, s = {
1470
1372
  columnMetadataMap: {},
1471
- estimatedColumnWidth: r || Ut,
1472
- estimatedRowHeight: a || Ut,
1373
+ estimatedColumnWidth: r || Gt,
1374
+ estimatedRowHeight: a || Gt,
1473
1375
  lastMeasuredColumnIndex: -1,
1474
1376
  lastMeasuredRowIndex: -1,
1475
1377
  rowMetadataMap: {}
@@ -1485,8 +1387,8 @@ var yo = function(e, n) {
1485
1387
  shouldForceUpdate: l
1486
1388
  });
1487
1389
  }, n.resetAfterIndices = function(c) {
1488
- var l = c.columnIndex, u = c.rowIndex, h = c.shouldForceUpdate, m = h === void 0 ? !0 : h;
1489
- typeof l == "number" && (s.lastMeasuredColumnIndex = Math.min(s.lastMeasuredColumnIndex, l - 1)), typeof u == "number" && (s.lastMeasuredRowIndex = Math.min(s.lastMeasuredRowIndex, u - 1)), n._getItemStyleCache(-1), m && n.forceUpdate();
1390
+ var l = c.columnIndex, u = c.rowIndex, h = c.shouldForceUpdate, f = h === void 0 ? !0 : h;
1391
+ typeof l == "number" && (s.lastMeasuredColumnIndex = Math.min(s.lastMeasuredColumnIndex, l - 1)), typeof u == "number" && (s.lastMeasuredRowIndex = Math.min(s.lastMeasuredRowIndex, u - 1)), n._getItemStyleCache(-1), f && n.forceUpdate();
1490
1392
  }, s;
1491
1393
  },
1492
1394
  shouldResetStyleCacheOnItemSizeChange: !1,
@@ -1501,7 +1403,7 @@ var yo = function(e, n) {
1501
1403
  }
1502
1404
  });
1503
1405
  process.env.NODE_ENV;
1504
- function Zt(t, e) {
1406
+ function qt(t, e) {
1505
1407
  for (var n in t)
1506
1408
  if (!(n in e))
1507
1409
  return !0;
@@ -1510,122 +1412,122 @@ function Zt(t, e) {
1510
1412
  return !0;
1511
1413
  return !1;
1512
1414
  }
1513
- var Lo = ["style"], No = ["style"];
1514
- function Eo(t, e) {
1515
- var n = t.style, o = Ht(t, Lo), r = e.style, a = Ht(e, No);
1516
- return !Zt(n, r) && !Zt(o, a);
1415
+ var So = ["style"], Io = ["style"];
1416
+ function yo(t, e) {
1417
+ var n = t.style, o = Wt(t, So), r = e.style, a = Wt(e, Io);
1418
+ return !qt(n, r) && !qt(o, a);
1517
1419
  }
1518
- const Oo = () => {
1519
- const { viewMode: t } = Qe(), { scrollMode: e } = Ee(), { setColumnCount: n } = nn(), { virtualScrollableElementRef: o } = et(), r = an(), a = L(
1520
- (w) => r.widths[w] || 0,
1420
+ const xo = () => {
1421
+ const { viewMode: t } = Qe(), { scrollMode: e } = Ee(), { setColumnCount: n } = en(), { virtualScrollableElementRef: o } = et(), r = rn(), a = L(
1422
+ (v) => r.widths[v] || 0,
1521
1423
  [r.widths]
1522
1424
  ), s = L(
1523
- (w) => r.heights[w] || 0,
1425
+ (v) => r.heights[v] || 0,
1524
1426
  [r.heights]
1525
1427
  ), c = k(() => r.heights.length, [r.heights]), l = k(() => Math.max(...r.widths), [r.widths]), u = k(() => e === X.HORIZONTAL_SCROLLING ? c : t === qe.DUAL_PAGE ? 2 : 1, [t, e, e, c, o, l]);
1526
1428
  O(() => {
1527
1429
  n(u);
1528
1430
  }, [u, n]);
1529
- const h = k(() => e === X.HORIZONTAL_SCROLLING || e === X.PAGE_SCROLLING ? 1 : Math.round(c / u), [u, c, e]), m = k(() => r.heights.reduce((w, g) => w + g, 0) / r.heights.length || 0, [r]), d = k(() => r.widths.reduce((w, g) => w + g, 0) / r.heights.length || 0, [r]);
1431
+ const h = k(() => e === X.HORIZONTAL_SCROLLING || e === X.PAGE_SCROLLING ? 1 : Math.round(c / u), [u, c, e]), f = k(() => r.heights.reduce((v, w) => v + w, 0) / r.heights.length || 0, [r]), p = k(() => r.widths.reduce((v, w) => v + w, 0) / r.heights.length || 0, [r]);
1530
1432
  return {
1531
1433
  rowCount: h,
1532
1434
  rowHeight: s,
1533
1435
  columnCount: u,
1534
1436
  columnWidth: a,
1535
1437
  pageDimension: r,
1536
- estimatedRowHeight: m,
1537
- estimatedColumnWidth: d
1438
+ estimatedRowHeight: f,
1439
+ estimatedColumnWidth: p
1538
1440
  };
1539
1441
  };
1540
1442
  let oe;
1541
1443
  typeof window < "u" ? oe = window : typeof self < "u" ? oe = self : oe = global;
1542
- let bt = null, Ct = null;
1543
- const Bt = 20, ct = oe.clearTimeout, Kt = oe.setTimeout, lt = oe.cancelAnimationFrame || oe.mozCancelAnimationFrame || oe.webkitCancelAnimationFrame, Xt = oe.requestAnimationFrame || oe.mozRequestAnimationFrame || oe.webkitRequestAnimationFrame;
1544
- lt == null || Xt == null ? (bt = ct, Ct = function(e) {
1545
- return Kt(e, Bt);
1546
- }) : (bt = function([e, n]) {
1547
- lt(e), ct(n);
1548
- }, Ct = function(e) {
1549
- const n = Xt(function() {
1550
- ct(o), e();
1551
- }), o = Kt(function() {
1552
- lt(n), e();
1553
- }, Bt);
1444
+ let _t = null, wt = null;
1445
+ const Zt = 20, lt = oe.clearTimeout, jt = oe.setTimeout, ut = oe.cancelAnimationFrame || oe.mozCancelAnimationFrame || oe.webkitCancelAnimationFrame, Bt = oe.requestAnimationFrame || oe.mozRequestAnimationFrame || oe.webkitRequestAnimationFrame;
1446
+ ut == null || Bt == null ? (_t = lt, wt = function(e) {
1447
+ return jt(e, Zt);
1448
+ }) : (_t = function([e, n]) {
1449
+ ut(e), lt(n);
1450
+ }, wt = function(e) {
1451
+ const n = Bt(function() {
1452
+ lt(o), e();
1453
+ }), o = jt(function() {
1454
+ ut(n), e();
1455
+ }, Zt);
1554
1456
  return [n, o];
1555
1457
  });
1556
- function Do(t) {
1458
+ function Ro(t) {
1557
1459
  let e, n, o, r, a, s, c;
1558
1460
  const l = typeof document < "u" && document.attachEvent;
1559
1461
  if (!l) {
1560
1462
  s = function(_) {
1561
- const f = _.__resizeTriggers__, P = f.firstElementChild, R = f.lastElementChild, p = P.firstElementChild;
1562
- R.scrollLeft = R.scrollWidth, R.scrollTop = R.scrollHeight, p.style.width = P.offsetWidth + 1 + "px", p.style.height = P.offsetHeight + 1 + "px", P.scrollLeft = P.scrollWidth, P.scrollTop = P.scrollHeight;
1463
+ const m = _.__resizeTriggers__, P = m.firstElementChild, I = m.lastElementChild, d = P.firstElementChild;
1464
+ I.scrollLeft = I.scrollWidth, I.scrollTop = I.scrollHeight, d.style.width = P.offsetWidth + 1 + "px", d.style.height = P.offsetHeight + 1 + "px", P.scrollLeft = P.scrollWidth, P.scrollTop = P.scrollHeight;
1563
1465
  }, a = function(_) {
1564
1466
  return _.offsetWidth !== _.__resizeLast__.width || _.offsetHeight !== _.__resizeLast__.height;
1565
1467
  }, c = function(_) {
1566
1468
  if (_.target.className && typeof _.target.className.indexOf == "function" && _.target.className.indexOf("contract-trigger") < 0 && _.target.className.indexOf("expand-trigger") < 0)
1567
1469
  return;
1568
- const f = this;
1569
- s(this), this.__resizeRAF__ && bt(this.__resizeRAF__), this.__resizeRAF__ = Ct(function() {
1570
- a(f) && (f.__resizeLast__.width = f.offsetWidth, f.__resizeLast__.height = f.offsetHeight, f.__resizeListeners__.forEach(function(p) {
1571
- p.call(f, _);
1470
+ const m = this;
1471
+ s(this), this.__resizeRAF__ && _t(this.__resizeRAF__), this.__resizeRAF__ = wt(function() {
1472
+ a(m) && (m.__resizeLast__.width = m.offsetWidth, m.__resizeLast__.height = m.offsetHeight, m.__resizeListeners__.forEach(function(d) {
1473
+ d.call(m, _);
1572
1474
  }));
1573
1475
  });
1574
1476
  };
1575
- let d = !1, w = "";
1477
+ let p = !1, v = "";
1576
1478
  o = "animationstart";
1577
- const g = "Webkit Moz O ms".split(" ");
1578
- let b = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), v = "";
1479
+ const w = "Webkit Moz O ms".split(" ");
1480
+ let C = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), g = "";
1579
1481
  {
1580
1482
  const _ = document.createElement("fakeelement");
1581
- if (_.style.animationName !== void 0 && (d = !0), d === !1) {
1582
- for (let f = 0; f < g.length; f++)
1583
- if (_.style[g[f] + "AnimationName"] !== void 0) {
1584
- v = g[f], w = "-" + v.toLowerCase() + "-", o = b[f], d = !0;
1483
+ if (_.style.animationName !== void 0 && (p = !0), p === !1) {
1484
+ for (let m = 0; m < w.length; m++)
1485
+ if (_.style[w[m] + "AnimationName"] !== void 0) {
1486
+ g = w[m], v = "-" + g.toLowerCase() + "-", o = C[m], p = !0;
1585
1487
  break;
1586
1488
  }
1587
1489
  }
1588
1490
  }
1589
- n = "resizeanim", e = "@" + w + "keyframes " + n + " { from { opacity: 0; } to { opacity: 0; } } ", r = w + "animation: 1ms " + n + "; ";
1491
+ n = "resizeanim", e = "@" + v + "keyframes " + n + " { from { opacity: 0; } to { opacity: 0; } } ", r = v + "animation: 1ms " + n + "; ";
1590
1492
  }
1591
- const u = function(d) {
1592
- if (!d.getElementById("detectElementResize")) {
1593
- const w = (e || "") + ".resize-triggers { " + (r || "") + '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%; }', g = d.head || d.getElementsByTagName("head")[0], b = d.createElement("style");
1594
- b.id = "detectElementResize", b.type = "text/css", t != null && b.setAttribute("nonce", t), b.styleSheet ? b.styleSheet.cssText = w : b.appendChild(d.createTextNode(w)), g.appendChild(b);
1493
+ const u = function(p) {
1494
+ if (!p.getElementById("detectElementResize")) {
1495
+ const v = (e || "") + ".resize-triggers { " + (r || "") + '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 = p.head || p.getElementsByTagName("head")[0], C = p.createElement("style");
1496
+ C.id = "detectElementResize", C.type = "text/css", t != null && C.setAttribute("nonce", t), C.styleSheet ? C.styleSheet.cssText = v : C.appendChild(p.createTextNode(v)), w.appendChild(C);
1595
1497
  }
1596
1498
  };
1597
1499
  return {
1598
- addResizeListener: function(d, w) {
1500
+ addResizeListener: function(p, v) {
1599
1501
  if (l)
1600
- d.attachEvent("onresize", w);
1502
+ p.attachEvent("onresize", v);
1601
1503
  else {
1602
- if (!d.__resizeTriggers__) {
1603
- const g = d.ownerDocument, b = oe.getComputedStyle(d);
1604
- b && b.position === "static" && (d.style.position = "relative"), u(g), d.__resizeLast__ = {}, d.__resizeListeners__ = [], (d.__resizeTriggers__ = g.createElement("div")).className = "resize-triggers";
1605
- const v = g.createElement("div");
1606
- v.className = "expand-trigger", v.appendChild(g.createElement("div"));
1607
- const _ = g.createElement("div");
1608
- _.className = "contract-trigger", d.__resizeTriggers__.appendChild(v), d.__resizeTriggers__.appendChild(_), d.appendChild(d.__resizeTriggers__), s(d), d.addEventListener("scroll", c, !0), o && (d.__resizeTriggers__.__animationListener__ = function(P) {
1609
- P.animationName === n && s(d);
1610
- }, d.__resizeTriggers__.addEventListener(o, d.__resizeTriggers__.__animationListener__));
1504
+ if (!p.__resizeTriggers__) {
1505
+ const w = p.ownerDocument, C = oe.getComputedStyle(p);
1506
+ C && C.position === "static" && (p.style.position = "relative"), u(w), p.__resizeLast__ = {}, p.__resizeListeners__ = [], (p.__resizeTriggers__ = w.createElement("div")).className = "resize-triggers";
1507
+ const g = w.createElement("div");
1508
+ g.className = "expand-trigger", g.appendChild(w.createElement("div"));
1509
+ const _ = w.createElement("div");
1510
+ _.className = "contract-trigger", p.__resizeTriggers__.appendChild(g), p.__resizeTriggers__.appendChild(_), p.appendChild(p.__resizeTriggers__), s(p), p.addEventListener("scroll", c, !0), o && (p.__resizeTriggers__.__animationListener__ = function(P) {
1511
+ P.animationName === n && s(p);
1512
+ }, p.__resizeTriggers__.addEventListener(o, p.__resizeTriggers__.__animationListener__));
1611
1513
  }
1612
- d.__resizeListeners__.push(w);
1514
+ p.__resizeListeners__.push(v);
1613
1515
  }
1614
1516
  },
1615
- removeResizeListener: function(d, w) {
1517
+ removeResizeListener: function(p, v) {
1616
1518
  if (l)
1617
- d.detachEvent("onresize", w);
1618
- else if (d.__resizeListeners__.splice(d.__resizeListeners__.indexOf(w), 1), !d.__resizeListeners__.length) {
1619
- d.removeEventListener("scroll", c, !0), d.__resizeTriggers__.__animationListener__ && (d.__resizeTriggers__.removeEventListener(o, d.__resizeTriggers__.__animationListener__), d.__resizeTriggers__.__animationListener__ = null);
1519
+ p.detachEvent("onresize", v);
1520
+ else if (p.__resizeListeners__.splice(p.__resizeListeners__.indexOf(v), 1), !p.__resizeListeners__.length) {
1521
+ p.removeEventListener("scroll", c, !0), p.__resizeTriggers__.__animationListener__ && (p.__resizeTriggers__.removeEventListener(o, p.__resizeTriggers__.__animationListener__), p.__resizeTriggers__.__animationListener__ = null);
1620
1522
  try {
1621
- d.__resizeTriggers__ = !d.removeChild(d.__resizeTriggers__);
1523
+ p.__resizeTriggers__ = !p.removeChild(p.__resizeTriggers__);
1622
1524
  } catch {
1623
1525
  }
1624
1526
  }
1625
1527
  }
1626
1528
  };
1627
1529
  }
1628
- class zo extends Yn {
1530
+ class Lo extends Bn {
1629
1531
  constructor(...e) {
1630
1532
  super(...e), this.state = {
1631
1533
  height: this.props.defaultHeight || 0,
@@ -1640,17 +1542,17 @@ class zo extends Yn {
1640
1542
  onResize: r
1641
1543
  } = this.props;
1642
1544
  if (this._parentNode) {
1643
- const a = window.getComputedStyle(this._parentNode) || {}, s = parseFloat(a.paddingLeft || "0"), c = parseFloat(a.paddingRight || "0"), l = parseFloat(a.paddingTop || "0"), u = parseFloat(a.paddingBottom || "0"), h = this._parentNode.getBoundingClientRect(), m = h.height - l - u, d = h.width - s - c, w = this._parentNode.offsetHeight - l - u, g = this._parentNode.offsetWidth - s - c;
1644
- (!n && (this.state.height !== w || this.state.scaledHeight !== m) || !o && (this.state.width !== g || this.state.scaledWidth !== d)) && (this.setState({
1645
- height: w,
1646
- width: g,
1647
- scaledHeight: m,
1648
- scaledWidth: d
1545
+ const a = window.getComputedStyle(this._parentNode) || {}, s = parseFloat(a.paddingLeft || "0"), c = parseFloat(a.paddingRight || "0"), l = parseFloat(a.paddingTop || "0"), u = parseFloat(a.paddingBottom || "0"), h = this._parentNode.getBoundingClientRect(), f = h.height - l - u, p = h.width - s - c, v = this._parentNode.offsetHeight - l - u, w = this._parentNode.offsetWidth - s - c;
1546
+ (!n && (this.state.height !== v || this.state.scaledHeight !== f) || !o && (this.state.width !== w || this.state.scaledWidth !== p)) && (this.setState({
1547
+ height: v,
1548
+ width: w,
1549
+ scaledHeight: f,
1550
+ scaledWidth: p
1649
1551
  }), typeof r == "function" && r({
1650
- height: w,
1651
- scaledHeight: m,
1652
- scaledWidth: d,
1653
- width: g
1552
+ height: v,
1553
+ scaledHeight: f,
1554
+ scaledWidth: p,
1555
+ width: w
1654
1556
  }));
1655
1557
  }
1656
1558
  }, this._setRef = (n) => {
@@ -1666,7 +1568,7 @@ class zo extends Yn {
1666
1568
  const o = n.ownerDocument.defaultView.ResizeObserver;
1667
1569
  o != null ? (this._resizeObserver = new o(() => {
1668
1570
  this._timeoutId = setTimeout(this._onResize, 0);
1669
- }), this._resizeObserver.observe(n)) : (this._detectElementResize = Do(e), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
1571
+ }), this._resizeObserver.observe(n)) : (this._detectElementResize = Ro(e), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
1670
1572
  }
1671
1573
  }
1672
1574
  componentWillUnmount() {
@@ -1684,27 +1586,27 @@ class zo extends Yn {
1684
1586
  onResize: l,
1685
1587
  style: u = {},
1686
1588
  tagName: h = "div",
1687
- ...m
1589
+ ...f
1688
1590
  } = this.props, {
1689
- height: d,
1690
- scaledHeight: w,
1691
- scaledWidth: g,
1692
- width: b
1693
- } = this.state, v = {
1591
+ height: p,
1592
+ scaledHeight: v,
1593
+ scaledWidth: w,
1594
+ width: C
1595
+ } = this.state, g = {
1694
1596
  overflow: "visible"
1695
1597
  }, _ = {};
1696
- let f = !1;
1697
- return r || (d === 0 && (f = !0), v.height = 0, _.height = d, _.scaledHeight = w), a || (b === 0 && (f = !0), v.width = 0, _.width = b, _.scaledWidth = g), s && (f = !1), $e(h, {
1598
+ let m = !1;
1599
+ return r || (p === 0 && (m = !0), g.height = 0, _.height = p, _.scaledHeight = v), a || (C === 0 && (m = !0), g.width = 0, _.width = C, _.scaledWidth = w), s && (m = !1), $e(h, {
1698
1600
  ref: this._setRef,
1699
1601
  style: {
1700
- ...v,
1602
+ ...g,
1701
1603
  ...u
1702
1604
  },
1703
- ...m
1704
- }, !f && e(_));
1605
+ ...f
1606
+ }, !m && e(_));
1705
1607
  }
1706
1608
  }
1707
- const Ao = ({ widths: t, heights: e }) => {
1609
+ const No = ({ widths: t, heights: e }) => {
1708
1610
  const { focusedPage: n, totalPages: o } = se(), { isScrolling: r } = tt(), a = k(() => {
1709
1611
  const l = [], u = Math.ceil(n / 2) * 2 - 1;
1710
1612
  if (l.push(u), u + 1 < o) {
@@ -1731,9 +1633,9 @@ const Ao = ({ widths: t, heights: e }) => {
1731
1633
  r.current = !1;
1732
1634
  }, [n]);
1733
1635
  const c = k(() => s.reduce((l, u) => l + Number(u.width || 0), 0), [s]);
1734
- return /* @__PURE__ */ i("div", { style: { width: c, position: "relative" }, children: a.map((l, u) => /* @__PURE__ */ i(yt, { onIntersectRatioChange: () => {
1636
+ return /* @__PURE__ */ i("div", { style: { width: c, position: "relative" }, children: a.map((l, u) => /* @__PURE__ */ i(Pt, { onIntersectRatioChange: () => {
1735
1637
  }, style: s[u], pageNumber: l }, l)) });
1736
- }, Fo = ({ widths: t, heights: e }) => {
1638
+ }, Eo = ({ widths: t, heights: e }) => {
1737
1639
  const { focusedPage: n } = se(), { isScrolling: o } = tt(), r = k(() => ({
1738
1640
  position: "absolute",
1739
1641
  width: t(n - 1),
@@ -1751,7 +1653,7 @@ const Ao = ({ widths: t, heights: e }) => {
1751
1653
  position: "relative"
1752
1654
  },
1753
1655
  children: /* @__PURE__ */ i(
1754
- yt,
1656
+ Pt,
1755
1657
  {
1756
1658
  style: r,
1757
1659
  onIntersectRatioChange: () => {
@@ -1762,10 +1664,10 @@ const Ao = ({ widths: t, heights: e }) => {
1762
1664
  )
1763
1665
  }
1764
1666
  );
1765
- }, ko = Qn(({ columnIndex: t, rowIndex: e, data: n, style: o }) => {
1667
+ }, Oo = Kn(({ columnIndex: t, rowIndex: e, data: n, style: o }) => {
1766
1668
  const r = t + 1 + e * n.columnCount;
1767
1669
  return /* @__PURE__ */ i(
1768
- yt,
1670
+ Pt,
1769
1671
  {
1770
1672
  style: o,
1771
1673
  onIntersectRatioChange: n.handleIntersectRatioChange,
@@ -1773,48 +1675,48 @@ const Ao = ({ widths: t, heights: e }) => {
1773
1675
  },
1774
1676
  r
1775
1677
  );
1776
- }, Eo), ds = () => {
1777
- const { initialPage: t = 1, initialScrollMode: e } = rr(), { pagesRef: n, setPagesRef: o } = Ie();
1678
+ }, yo), is = () => {
1679
+ const { initialPage: t = 1, initialScrollMode: e } = Qn(), { pagesRef: n, setPagesRef: o } = Ie();
1778
1680
  Tr(n);
1779
- const { scrollToPage: r } = pn(), {
1681
+ const { scrollToPage: r } = un(), {
1780
1682
  virtualScrollRef: a,
1781
1683
  getVirtualScrollRef: s,
1782
1684
  getPageScrollElementRef: c,
1783
1685
  getVirtualScrollableElementRef: l,
1784
1686
  setTotalInnerDimensions: u,
1785
1687
  totalInnerDimensions: h,
1786
- pageScrollElementRef: m
1787
- } = et(), { nextPage: d, prevPage: w, setFocusedPage: g, focusedPage: b } = se(), { scrollMode: v } = Ee(), { viewMode: _ } = Qe(), f = W(null), { loading: P } = Y(), R = W(
1688
+ pageScrollElementRef: f
1689
+ } = et(), { nextPage: p, prevPage: v, setFocusedPage: w, focusedPage: C } = se(), { scrollMode: g } = Ee(), { viewMode: _ } = Qe(), m = W(null), { loading: P } = Y(), I = W(
1788
1690
  h
1789
- ), p = W({
1691
+ ), d = W({
1790
1692
  viewMode: _,
1791
- scrollMode: v
1792
- }), T = W(!1), C = W(), { isFullScreen: S } = or(), {
1693
+ scrollMode: g
1694
+ }), T = W(!1), b = W(), { isFullScreen: S } = er(), {
1793
1695
  pageDimension: A,
1794
- rowCount: I,
1696
+ rowCount: y,
1795
1697
  rowHeight: E,
1796
- columnCount: y,
1698
+ columnCount: x,
1797
1699
  columnWidth: F,
1798
1700
  estimatedColumnWidth: z,
1799
- estimatedRowHeight: x
1800
- } = Oo(), N = gt(h, 100), [$, U] = H({}), Z = gt($, 100), { isScrolling: B } = tt(), q = W(), K = W({
1701
+ estimatedRowHeight: R
1702
+ } = xo(), N = ft(h, 100), [$, U] = H({}), j = ft($, 100), { isScrolling: B } = tt(), q = W(), K = W({
1801
1703
  scrollTop: 0,
1802
1704
  scrollLeft: 0
1803
1705
  });
1804
1706
  Ir(n);
1805
- const { isPressed: ie } = Pr(), { selectionMode: de } = nr(), { initializeGrabScroll: Q, resetGrabState: ae } = Sr({
1707
+ const { isPressed: ie } = Pr(), { selectionMode: de } = Yn(), { initializeGrabScroll: Q, resetGrabState: ae } = Sr({
1806
1708
  isPressed: ie
1807
- }), ee = k(() => de === er.HAND, [de]), be = L((M, G) => {
1709
+ }), ee = k(() => de === Xn.HAND, [de]), be = L((M, G) => {
1808
1710
  U((J) => G > -1 ? { ...J, [M]: Math.round(G * 100) } : (delete J[M], J));
1809
1711
  }, []), Oe = k(() => ({
1810
- columnCount: y,
1712
+ columnCount: x,
1811
1713
  handleIntersectRatioChange: be
1812
- }), [y, be]), ve = L(
1714
+ }), [x, be]), ve = L(
1813
1715
  (M) => {
1814
1716
  const G = document.activeElement !== n;
1815
- !S && G || (["ArrowUp", "ArrowLeft"].includes(M.key) ? (M.preventDefault(), w()) : ["ArrowDown", "ArrowRight"].includes(M.key) && (M.preventDefault(), d()));
1717
+ !S && G || (["ArrowUp", "ArrowLeft"].includes(M.key) ? (M.preventDefault(), v()) : ["ArrowDown", "ArrowRight"].includes(M.key) && (M.preventDefault(), p()));
1816
1718
  },
1817
- [d, w, S, v]
1719
+ [p, v, S, g]
1818
1720
  ), pe = L((M) => {
1819
1721
  K.current = {
1820
1722
  scrollTop: M.scrollTop,
@@ -1824,19 +1726,19 @@ const Ao = ({ widths: t, heights: e }) => {
1824
1726
  O(() => (window.addEventListener("keydown", ve), () => {
1825
1727
  window.removeEventListener("keydown", ve);
1826
1728
  }), [ve]), O(() => {
1827
- if (f.current && (f.current.style.position = "relative"), !!a)
1828
- for (let M = 0; M < I; M++)
1829
- for (let G = 0; G < y; G++)
1729
+ if (m.current && (m.current.style.position = "relative"), !!a)
1730
+ for (let M = 0; M < y; M++)
1731
+ for (let G = 0; G < x; G++)
1830
1732
  a.resetAfterIndices({
1831
1733
  columnIndex: G,
1832
1734
  rowIndex: M,
1833
1735
  shouldForceUpdate: !0
1834
1736
  });
1835
- }, [I, y, A, a]), O(() => {
1836
- const M = Array.from({ length: I }).reduce(
1737
+ }, [y, x, A, a]), O(() => {
1738
+ const M = Array.from({ length: y }).reduce(
1837
1739
  (J, _e, xe) => J + E(xe),
1838
1740
  0
1839
- ), G = Array.from({ length: y }).reduce(
1741
+ ), G = Array.from({ length: x }).reduce(
1840
1742
  (J, _e, xe) => J + F(xe),
1841
1743
  0
1842
1744
  );
@@ -1844,15 +1746,15 @@ const Ao = ({ widths: t, heights: e }) => {
1844
1746
  height: M,
1845
1747
  width: G
1846
1748
  });
1847
- }, [I, y, A]), O(() => {
1749
+ }, [y, x, A]), O(() => {
1848
1750
  if (B.current)
1849
1751
  return;
1850
- if (p.current.viewMode !== _ || p.current.scrollMode !== v) {
1851
- q.current && clearTimeout(q.current), U({}), T.current = !0, r(b), v === X.HORIZONTAL_SCROLLING && (a == null || a.scrollTo({
1752
+ if (d.current.viewMode !== _ || d.current.scrollMode !== g) {
1753
+ q.current && clearTimeout(q.current), U({}), T.current = !0, r(C), g === X.HORIZONTAL_SCROLLING && (a == null || a.scrollTo({
1852
1754
  scrollTop: 0
1853
1755
  })), q.current = setTimeout(() => {
1854
1756
  requestAnimationFrame(() => {
1855
- p.current = { viewMode: _, scrollMode: v };
1757
+ d.current = { viewMode: _, scrollMode: g };
1856
1758
  });
1857
1759
  }, 100);
1858
1760
  return;
@@ -1860,27 +1762,27 @@ const Ao = ({ widths: t, heights: e }) => {
1860
1762
  const G = K.current.scrollTop, J = K.current.scrollLeft;
1861
1763
  if (N.height && N.width) {
1862
1764
  T.current = !0;
1863
- const { height: _e, width: xe } = N, { height: qn, width: jn } = R.current, Zn = G / qn * _e, Bn = J / jn * xe, Kn = Math.min(Zn, _e) || 0, Xn = Math.min(Bn, xe) || 0;
1765
+ const { height: _e, width: xe } = N, { height: $n, width: Gn } = I.current, Vn = G / $n * _e, Un = J / Gn * xe, qn = Math.min(Vn, _e) || 0, Zn = Math.min(Un, xe) || 0;
1864
1766
  a == null || a.scrollTo({
1865
- scrollTop: Kn,
1866
- scrollLeft: Xn
1867
- }), R.current = {
1767
+ scrollTop: qn,
1768
+ scrollLeft: Zn
1769
+ }), I.current = {
1868
1770
  height: N.height,
1869
1771
  width: N.width
1870
- }, C.current && clearTimeout(C.current), C.current = setTimeout(() => {
1772
+ }, b.current && clearTimeout(b.current), b.current = setTimeout(() => {
1871
1773
  T.current = !1;
1872
1774
  }, 100);
1873
1775
  }
1874
- }, [N, _, v]), O(() => {
1776
+ }, [N, _, g]), O(() => {
1875
1777
  if ((B.current || T.current) && (B.current = !1), B.current)
1876
1778
  return;
1877
- const M = Object.entries(Z);
1779
+ const M = Object.entries(j);
1878
1780
  let G = 0, J = -1;
1879
1781
  M.forEach((_e) => {
1880
1782
  J < _e[1] && (G = Number(_e[0]), J = _e[1]);
1881
- }), G && g(G);
1882
- }, [Z, g]), O(() => () => {
1883
- q.current && clearTimeout(q.current), C.current && clearTimeout(C.current);
1783
+ }), G && w(G);
1784
+ }, [j, w]), O(() => () => {
1785
+ q.current && clearTimeout(q.current), b.current && clearTimeout(b.current);
1884
1786
  }, []);
1885
1787
  const he = k(() => re(me["rp-pages-container"], {
1886
1788
  [me["rp-cursor-grab"]]: ee && !ie,
@@ -1898,7 +1800,7 @@ const Ao = ({ widths: t, heights: e }) => {
1898
1800
  P && ae();
1899
1801
  }, [P]), O(() => {
1900
1802
  if (e === X.PAGE_SCROLLING) {
1901
- t !== b && m && g(t);
1803
+ t !== C && f && w(t);
1902
1804
  return;
1903
1805
  }
1904
1806
  if (a != null && a.scrollToItem)
@@ -1918,35 +1820,35 @@ const Ao = ({ widths: t, heights: e }) => {
1918
1820
  });
1919
1821
  break;
1920
1822
  }
1921
- }, [a, e, m, g]), /* @__PURE__ */ i("div", { ref: o, tabIndex: -1, className: he, children: /* @__PURE__ */ i(zo, { style: { minHeight: "50px" }, children: ({ width: M, height: G }) => /* @__PURE__ */ i("div", { "data-rp": "pages", ref: De, style: { width: M, height: G }, children: v === X.PAGE_SCROLLING ? /* @__PURE__ */ i(
1823
+ }, [a, e, f, w]), /* @__PURE__ */ i("div", { ref: o, tabIndex: -1, className: he, children: /* @__PURE__ */ i(Lo, { style: { minHeight: "50px" }, children: ({ width: M, height: G }) => /* @__PURE__ */ i("div", { "data-rp": "pages", ref: De, style: { width: M, height: G }, children: g === X.PAGE_SCROLLING ? /* @__PURE__ */ i(
1922
1824
  "div",
1923
1825
  {
1924
1826
  ref: c,
1925
1827
  style: { width: M, height: G },
1926
1828
  className: re(me["rp-pages"], me["rp-page-scrolling-wrapper"]),
1927
- children: _ === qe.DUAL_PAGE ? /* @__PURE__ */ i(Ao, { widths: F, heights: E }) : /* @__PURE__ */ i(Fo, { widths: F, heights: E })
1829
+ children: _ === qe.DUAL_PAGE ? /* @__PURE__ */ i(No, { widths: F, heights: E }) : /* @__PURE__ */ i(Eo, { widths: F, heights: E })
1928
1830
  }
1929
1831
  ) : z ? /* @__PURE__ */ i(
1930
- Ro,
1832
+ Po,
1931
1833
  {
1932
1834
  ref: s,
1933
1835
  itemData: Oe,
1934
1836
  outerRef: l,
1935
- innerRef: f,
1837
+ innerRef: m,
1936
1838
  onScroll: pe,
1937
- columnCount: y,
1839
+ columnCount: x,
1938
1840
  columnWidth: F,
1939
1841
  rowHeight: E,
1940
1842
  height: G,
1941
1843
  width: M,
1942
1844
  estimatedColumnWidth: z,
1943
- estimatedRowHeight: x,
1944
- rowCount: I,
1845
+ estimatedRowHeight: R,
1846
+ rowCount: y,
1945
1847
  className: re(
1946
1848
  me["rp-pages"],
1947
- v === X.HORIZONTAL_SCROLLING ? me["rp-pages-horizontal-scroll"] : ""
1849
+ g === X.HORIZONTAL_SCROLLING ? me["rp-pages-horizontal-scroll"] : ""
1948
1850
  ),
1949
- children: ko
1851
+ children: Oo
1950
1852
  }
1951
1853
  ) : P ? null : /* @__PURE__ */ i(
1952
1854
  "div",
@@ -1967,34 +1869,34 @@ const Ao = ({ widths: t, heights: e }) => {
1967
1869
  "rp-toolbar-start": "_rp-toolbar-start_sz31z_33",
1968
1870
  "rp-toolbar-middle": "_rp-toolbar-middle_sz31z_39",
1969
1871
  "rp-toolbar-end": "_rp-toolbar-end_sz31z_46"
1970
- }, ut = {
1872
+ }, dt = {
1971
1873
  "rp-paginate": "_rp-paginate_1vu6o_1",
1972
1874
  "rp-page-input": "_rp-page-input_1vu6o_6",
1973
1875
  "rp-total-page": "_rp-total-page_1vu6o_12"
1974
- }, Wo = () => {
1876
+ }, Do = () => {
1975
1877
  const { prevIcon: t } = ue();
1976
1878
  return t || /* @__PURE__ */ i(We, {});
1977
- }, Mo = () => {
1879
+ }, zo = () => {
1978
1880
  const { nextIcon: t } = ue();
1979
1881
  return t || /* @__PURE__ */ i(We, { style: { transform: "rotate(180deg" } });
1980
- }, Ho = () => {
1882
+ }, Ao = () => {
1981
1883
  const { focusedPage: t, totalPages: e, setFocusedPage: n, nextPage: o, prevPage: r, goToPage: a } = se(), [s, c] = H(t.toString()), { pageNavigationTool: l = !0 } = ge(), { isSmallScreen: u } = ye(), { localeMessages: h } = le();
1982
1884
  O(() => {
1983
1885
  c(t.toString());
1984
1886
  }, [t]);
1985
- const m = L((b) => {
1986
- const v = b.target.value;
1987
- c(v);
1988
- }, []), d = L(async () => {
1989
- const b = await a(s);
1990
- b.success || c(b.currentPage.toString());
1991
- }, [a, s, e]), w = L(() => {
1887
+ const f = L((C) => {
1888
+ const g = C.target.value;
1889
+ c(g);
1890
+ }, []), p = L(async () => {
1891
+ const C = await a(s);
1892
+ C.success || c(C.currentPage.toString());
1893
+ }, [a, s, e]), v = L(() => {
1992
1894
  c(t.toString());
1993
- }, [t]), g = L(
1994
- (b) => {
1995
- b.key === "Enter" && d();
1895
+ }, [t]), w = L(
1896
+ (C) => {
1897
+ C.key === "Enter" && p();
1996
1898
  },
1997
- [d]
1899
+ [p]
1998
1900
  );
1999
1901
  return typeof l != "boolean" ? /* @__PURE__ */ i(
2000
1902
  l,
@@ -2006,42 +1908,42 @@ const Ao = ({ widths: t, heights: e }) => {
2006
1908
  goToPage: a,
2007
1909
  changePage: n
2008
1910
  }
2009
- ) : l ? /* @__PURE__ */ D("div", { className: ut["rp-paginate"], children: [
2010
- !u && /* @__PURE__ */ i(j, { content: h == null ? void 0 : h.previousPageTooltip, children: /* @__PURE__ */ i(
1911
+ ) : l ? /* @__PURE__ */ D("div", { className: dt["rp-paginate"], children: [
1912
+ !u && /* @__PURE__ */ i(Z, { content: h == null ? void 0 : h.previousPageTooltip, children: /* @__PURE__ */ i(
2011
1913
  te,
2012
1914
  {
2013
1915
  onClick: r,
2014
1916
  "aria-label": h == null ? void 0 : h.previousPageTooltip,
2015
1917
  "aria-disabled": t === 1,
2016
- children: /* @__PURE__ */ i(Wo, {})
1918
+ children: /* @__PURE__ */ i(Do, {})
2017
1919
  }
2018
1920
  ) }),
2019
- /* @__PURE__ */ i(j, { content: h == null ? void 0 : h.currentPageTooltip, children: /* @__PURE__ */ i(
2020
- tn,
1921
+ /* @__PURE__ */ i(Z, { content: h == null ? void 0 : h.currentPageTooltip, children: /* @__PURE__ */ i(
1922
+ Qt,
2021
1923
  {
2022
- onKeyDown: g,
2023
- onBlur: w,
2024
- onChange: m,
1924
+ onKeyDown: w,
1925
+ onBlur: v,
1926
+ onChange: f,
2025
1927
  value: s,
2026
- className: ut["rp-page-input"]
1928
+ className: dt["rp-page-input"]
2027
1929
  }
2028
1930
  ) }),
2029
- /* @__PURE__ */ D("span", { className: ut["rp-total-page"], children: [
1931
+ /* @__PURE__ */ D("span", { className: dt["rp-total-page"], children: [
2030
1932
  "/",
2031
1933
  e
2032
1934
  ] }),
2033
- !u && /* @__PURE__ */ i(j, { content: h == null ? void 0 : h.nextPageTooltip, children: /* @__PURE__ */ i(
1935
+ !u && /* @__PURE__ */ i(Z, { content: h == null ? void 0 : h.nextPageTooltip, children: /* @__PURE__ */ i(
2034
1936
  te,
2035
1937
  {
2036
1938
  onClick: o,
2037
1939
  "aria-label": h == null ? void 0 : h.nextPageTooltip,
2038
1940
  "aria-disabled": t === e,
2039
- children: /* @__PURE__ */ i(Mo, {})
1941
+ children: /* @__PURE__ */ i(zo, {})
2040
1942
  }
2041
1943
  ) })
2042
1944
  ] }) : null;
2043
1945
  };
2044
- var xt = "Dialog", [In, ps] = Nr(xt), [$o, ce] = In(xt), yn = (t) => {
1946
+ var St = "Dialog", [bn, as] = Nr(St), [Fo, ce] = bn(St), Cn = (t) => {
2045
1947
  const {
2046
1948
  __scopeDialog: e,
2047
1949
  children: n,
@@ -2055,26 +1957,26 @@ var xt = "Dialog", [In, ps] = Nr(xt), [$o, ce] = In(xt), yn = (t) => {
2055
1957
  onChange: a
2056
1958
  });
2057
1959
  return /* @__PURE__ */ i(
2058
- $o,
1960
+ Fo,
2059
1961
  {
2060
1962
  scope: e,
2061
1963
  triggerRef: c,
2062
1964
  contentRef: l,
2063
- contentId: rt(),
2064
- titleId: rt(),
2065
- descriptionId: rt(),
1965
+ contentId: ot(),
1966
+ titleId: ot(),
1967
+ descriptionId: ot(),
2066
1968
  open: u,
2067
1969
  onOpenChange: h,
2068
- onOpenToggle: V.useCallback(() => h((m) => !m), [h]),
1970
+ onOpenToggle: V.useCallback(() => h((f) => !f), [h]),
2069
1971
  modal: s,
2070
1972
  children: n
2071
1973
  }
2072
1974
  );
2073
1975
  };
2074
- yn.displayName = xt;
2075
- var xn = "DialogTrigger", Go = V.forwardRef(
1976
+ Cn.displayName = St;
1977
+ var Tn = "DialogTrigger", ko = V.forwardRef(
2076
1978
  (t, e) => {
2077
- const { __scopeDialog: n, ...o } = t, r = ce(xn, n), a = Tt(e, r.triggerRef);
1979
+ const { __scopeDialog: n, ...o } = t, r = ce(Tn, n), a = bt(e, r.triggerRef);
2078
1980
  return /* @__PURE__ */ i(
2079
1981
  He.button,
2080
1982
  {
@@ -2082,7 +1984,7 @@ var xn = "DialogTrigger", Go = V.forwardRef(
2082
1984
  "aria-haspopup": "dialog",
2083
1985
  "aria-expanded": r.open,
2084
1986
  "aria-controls": r.contentId,
2085
- "data-state": Nt(r.open),
1987
+ "data-state": xt(r.open),
2086
1988
  ...o,
2087
1989
  ref: a,
2088
1990
  onClick: Fe(t.onClick, r.onOpenToggle)
@@ -2090,31 +1992,31 @@ var xn = "DialogTrigger", Go = V.forwardRef(
2090
1992
  );
2091
1993
  }
2092
1994
  );
2093
- Go.displayName = xn;
2094
- var Rt = "DialogPortal", [Vo, Rn] = In(Rt, {
1995
+ ko.displayName = Tn;
1996
+ var It = "DialogPortal", [Wo, Pn] = bn(It, {
2095
1997
  forceMount: void 0
2096
- }), Ln = (t) => {
2097
- const { __scopeDialog: e, forceMount: n, children: o, container: r } = t, a = ce(Rt, e);
2098
- return /* @__PURE__ */ i(Vo, { scope: e, forceMount: n, children: V.Children.map(o, (s) => /* @__PURE__ */ i(Pt, { present: n || a.open, children: /* @__PURE__ */ i(Mr, { asChild: !0, container: r, children: s }) })) });
1998
+ }), Sn = (t) => {
1999
+ const { __scopeDialog: e, forceMount: n, children: o, container: r } = t, a = ce(It, e);
2000
+ return /* @__PURE__ */ i(Wo, { scope: e, forceMount: n, children: V.Children.map(o, (s) => /* @__PURE__ */ i(Ct, { present: n || a.open, children: /* @__PURE__ */ i(Mr, { asChild: !0, container: r, children: s }) })) });
2099
2001
  };
2100
- Ln.displayName = Rt;
2101
- var Ze = "DialogOverlay", Nn = V.forwardRef(
2002
+ Sn.displayName = It;
2003
+ var je = "DialogOverlay", In = V.forwardRef(
2102
2004
  (t, e) => {
2103
- const n = Rn(Ze, t.__scopeDialog), { forceMount: o = n.forceMount, ...r } = t, a = ce(Ze, t.__scopeDialog);
2104
- return a.modal ? /* @__PURE__ */ i(Pt, { present: o || a.open, children: /* @__PURE__ */ i(Uo, { ...r, ref: e }) }) : null;
2005
+ const n = Pn(je, t.__scopeDialog), { forceMount: o = n.forceMount, ...r } = t, a = ce(je, t.__scopeDialog);
2006
+ return a.modal ? /* @__PURE__ */ i(Ct, { present: o || a.open, children: /* @__PURE__ */ i(Mo, { ...r, ref: e }) }) : null;
2105
2007
  }
2106
2008
  );
2107
- Nn.displayName = Ze;
2108
- var Uo = V.forwardRef(
2009
+ In.displayName = je;
2010
+ var Mo = V.forwardRef(
2109
2011
  (t, e) => {
2110
- const { __scopeDialog: n, ...o } = t, r = ce(Ze, n);
2012
+ const { __scopeDialog: n, ...o } = t, r = ce(je, n);
2111
2013
  return (
2112
2014
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
2113
2015
  // ie. when `Overlay` and `Content` are siblings
2114
2016
  /* @__PURE__ */ i(Ar, { as: Er, allowPinchZoom: !0, shards: [r.contentRef], children: /* @__PURE__ */ i(
2115
2017
  He.div,
2116
2018
  {
2117
- "data-state": Nt(r.open),
2019
+ "data-state": xt(r.open),
2118
2020
  ...o,
2119
2021
  ref: e,
2120
2022
  style: { pointerEvents: "auto", ...o.style }
@@ -2122,22 +2024,22 @@ var Uo = V.forwardRef(
2122
2024
  ) })
2123
2025
  );
2124
2026
  }
2125
- ), Se = "DialogContent", En = V.forwardRef(
2027
+ ), Se = "DialogContent", yn = V.forwardRef(
2126
2028
  (t, e) => {
2127
- const n = Rn(Se, t.__scopeDialog), { forceMount: o = n.forceMount, ...r } = t, a = ce(Se, t.__scopeDialog);
2128
- return /* @__PURE__ */ i(Pt, { present: o || a.open, children: a.modal ? /* @__PURE__ */ i(qo, { ...r, ref: e }) : /* @__PURE__ */ i(jo, { ...r, ref: e }) });
2029
+ const n = Pn(Se, t.__scopeDialog), { forceMount: o = n.forceMount, ...r } = t, a = ce(Se, t.__scopeDialog);
2030
+ return /* @__PURE__ */ i(Ct, { present: o || a.open, children: a.modal ? /* @__PURE__ */ i(Ho, { ...r, ref: e }) : /* @__PURE__ */ i($o, { ...r, ref: e }) });
2129
2031
  }
2130
2032
  );
2131
- En.displayName = Se;
2132
- var qo = V.forwardRef(
2033
+ yn.displayName = Se;
2034
+ var Ho = V.forwardRef(
2133
2035
  (t, e) => {
2134
- const n = ce(Se, t.__scopeDialog), o = V.useRef(null), r = Tt(e, n.contentRef, o);
2036
+ const n = ce(Se, t.__scopeDialog), o = V.useRef(null), r = bt(e, n.contentRef, o);
2135
2037
  return V.useEffect(() => {
2136
2038
  const a = o.current;
2137
2039
  if (a)
2138
2040
  return Fr(a);
2139
2041
  }, []), /* @__PURE__ */ i(
2140
- On,
2042
+ xn,
2141
2043
  {
2142
2044
  ...t,
2143
2045
  ref: r,
@@ -2158,11 +2060,11 @@ var qo = V.forwardRef(
2158
2060
  }
2159
2061
  );
2160
2062
  }
2161
- ), jo = V.forwardRef(
2063
+ ), $o = V.forwardRef(
2162
2064
  (t, e) => {
2163
2065
  const n = ce(Se, t.__scopeDialog), o = V.useRef(!1), r = V.useRef(!1);
2164
2066
  return /* @__PURE__ */ i(
2165
- On,
2067
+ xn,
2166
2068
  {
2167
2069
  ...t,
2168
2070
  ref: e,
@@ -2181,9 +2083,9 @@ var qo = V.forwardRef(
2181
2083
  }
2182
2084
  );
2183
2085
  }
2184
- ), On = V.forwardRef(
2086
+ ), xn = V.forwardRef(
2185
2087
  (t, e) => {
2186
- const { __scopeDialog: n, trapFocus: o, onOpenAutoFocus: r, onCloseAutoFocus: a, ...s } = t, c = ce(Se, n), l = V.useRef(null), u = Tt(e, l);
2088
+ const { __scopeDialog: n, trapFocus: o, onOpenAutoFocus: r, onCloseAutoFocus: a, ...s } = t, c = ce(Se, n), l = V.useRef(null), u = bt(e, l);
2187
2089
  return kr(), /* @__PURE__ */ D(ke, { children: [
2188
2090
  /* @__PURE__ */ i(
2189
2091
  Wr,
@@ -2200,7 +2102,7 @@ var qo = V.forwardRef(
2200
2102
  id: c.contentId,
2201
2103
  "aria-describedby": c.descriptionId,
2202
2104
  "aria-labelledby": c.titleId,
2203
- "data-state": Nt(c.open),
2105
+ "data-state": xt(c.open),
2204
2106
  ...s,
2205
2107
  ref: u,
2206
2108
  onDismiss: () => c.onOpenChange(!1)
@@ -2209,28 +2111,28 @@ var qo = V.forwardRef(
2209
2111
  }
2210
2112
  ),
2211
2113
  /* @__PURE__ */ D(ke, { children: [
2212
- /* @__PURE__ */ i(Bo, { titleId: c.titleId }),
2213
- /* @__PURE__ */ i(Xo, { contentRef: l, descriptionId: c.descriptionId })
2114
+ /* @__PURE__ */ i(Vo, { titleId: c.titleId }),
2115
+ /* @__PURE__ */ i(qo, { contentRef: l, descriptionId: c.descriptionId })
2214
2116
  ] })
2215
2117
  ] });
2216
2118
  }
2217
- ), Lt = "DialogTitle", Dn = V.forwardRef(
2119
+ ), yt = "DialogTitle", Rn = V.forwardRef(
2218
2120
  (t, e) => {
2219
- const { __scopeDialog: n, ...o } = t, r = ce(Lt, n);
2121
+ const { __scopeDialog: n, ...o } = t, r = ce(yt, n);
2220
2122
  return /* @__PURE__ */ i(He.h2, { id: r.titleId, ...o, ref: e });
2221
2123
  }
2222
2124
  );
2223
- Dn.displayName = Lt;
2224
- var zn = "DialogDescription", Zo = V.forwardRef(
2125
+ Rn.displayName = yt;
2126
+ var Ln = "DialogDescription", Go = V.forwardRef(
2225
2127
  (t, e) => {
2226
- const { __scopeDialog: n, ...o } = t, r = ce(zn, n);
2128
+ const { __scopeDialog: n, ...o } = t, r = ce(Ln, n);
2227
2129
  return /* @__PURE__ */ i(He.p, { id: r.descriptionId, ...o, ref: e });
2228
2130
  }
2229
2131
  );
2230
- Zo.displayName = zn;
2231
- var An = "DialogClose", Fn = V.forwardRef(
2132
+ Go.displayName = Ln;
2133
+ var Nn = "DialogClose", En = V.forwardRef(
2232
2134
  (t, e) => {
2233
- const { __scopeDialog: n, ...o } = t, r = ce(An, n);
2135
+ const { __scopeDialog: n, ...o } = t, r = ce(Nn, n);
2234
2136
  return /* @__PURE__ */ i(
2235
2137
  He.button,
2236
2138
  {
@@ -2242,16 +2144,16 @@ var An = "DialogClose", Fn = V.forwardRef(
2242
2144
  );
2243
2145
  }
2244
2146
  );
2245
- Fn.displayName = An;
2246
- function Nt(t) {
2147
+ En.displayName = Nn;
2148
+ function xt(t) {
2247
2149
  return t ? "open" : "closed";
2248
2150
  }
2249
- var kn = "DialogTitleWarning", [hs, Wn] = Or(kn, {
2151
+ var On = "DialogTitleWarning", [ss, Dn] = Or(On, {
2250
2152
  contentName: Se,
2251
- titleName: Lt,
2153
+ titleName: yt,
2252
2154
  docsSlug: "dialog"
2253
- }), Bo = ({ titleId: t }) => {
2254
- const e = Wn(kn), n = `\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
2155
+ }), Vo = ({ titleId: t }) => {
2156
+ const e = Dn(On), n = `\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
2255
2157
 
2256
2158
  If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
2257
2159
 
@@ -2259,14 +2161,14 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
2259
2161
  return V.useEffect(() => {
2260
2162
  t && (document.getElementById(t) || console.error(n));
2261
2163
  }, [n, t]), null;
2262
- }, Ko = "DialogDescriptionWarning", Xo = ({ contentRef: t, descriptionId: e }) => {
2263
- const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Wn(Ko).contentName}}.`;
2164
+ }, Uo = "DialogDescriptionWarning", qo = ({ contentRef: t, descriptionId: e }) => {
2165
+ const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Dn(Uo).contentName}}.`;
2264
2166
  return V.useEffect(() => {
2265
2167
  var a;
2266
2168
  const r = (a = t.current) == null ? void 0 : a.getAttribute("aria-describedby");
2267
2169
  e && r && (document.getElementById(e) || console.warn(o));
2268
2170
  }, [o, t, e]), null;
2269
- }, Jo = yn, Yo = Ln, Qo = Nn, ei = En, ti = Dn, ni = Fn;
2171
+ }, Zo = Cn, jo = Sn, Bo = In, Ko = yn, Xo = Rn, Jo = En;
2270
2172
  const Pe = {
2271
2173
  "rp-dialog-wrapper": "_rp-dialog-wrapper_slqo7_1",
2272
2174
  "rp-dialog-overlay": "_rp-dialog-overlay_slqo7_7",
@@ -2275,7 +2177,7 @@ const Pe = {
2275
2177
  "rp-dialog-title": "_rp-dialog-title_slqo7_39",
2276
2178
  "rp-dialog-close": "_rp-dialog-close_slqo7_47",
2277
2179
  "rp-properties-divider": "_rp-properties-divider_slqo7_55"
2278
- }, ri = () => {
2180
+ }, Yo = () => {
2279
2181
  const { pdfProperties: t } = Y(), { container: e } = Ie(), { activeDocumentProperties: n, setActiveDocumentProperties: o } = $r(), { localeMessages: r } = le(), a = k(() => {
2280
2182
  if (!t)
2281
2183
  return [];
@@ -2285,12 +2187,12 @@ const Pe = {
2285
2187
  title: l,
2286
2188
  author: u,
2287
2189
  subject: h,
2288
- createdOn: m,
2289
- creator: d,
2290
- keywords: w,
2291
- modifiedOn: g,
2292
- pdfProducer: b,
2293
- pdfVersion: v,
2190
+ createdOn: f,
2191
+ creator: p,
2192
+ keywords: v,
2193
+ modifiedOn: w,
2194
+ pdfProducer: C,
2195
+ pdfVersion: g,
2294
2196
  pageCount: _
2295
2197
  } = t;
2296
2198
  return [
@@ -2300,61 +2202,61 @@ const Pe = {
2300
2202
  { label: r == null ? void 0 : r.propertiesTitleLabel, value: l },
2301
2203
  { label: r == null ? void 0 : r.propertiesAuthorLabel, value: u },
2302
2204
  { label: r == null ? void 0 : r.propertiesSubjectLabel, value: h },
2303
- { label: r == null ? void 0 : r.propertiesKeywordLabel, value: w },
2304
- { label: r == null ? void 0 : r.propertiesCreatorLabel, value: d },
2205
+ { label: r == null ? void 0 : r.propertiesKeywordLabel, value: v },
2206
+ { label: r == null ? void 0 : r.propertiesCreatorLabel, value: p },
2305
2207
  {
2306
2208
  label: r == null ? void 0 : r.propertiesCreateOnLabel,
2307
- value: m ? ft(m) : ""
2209
+ value: f ? Ot(f) : ""
2308
2210
  },
2309
2211
  {
2310
2212
  label: r == null ? void 0 : r.propertiesModifiedOnLabel,
2311
- value: g ? ft(g) : ""
2213
+ value: w ? Ot(w) : ""
2312
2214
  },
2313
2215
  { separate: !0 },
2314
- { label: r == null ? void 0 : r.propertiesPDFProducerLabel, value: b },
2315
- { label: r == null ? void 0 : r.propertiesPDFVersionLabel, value: v },
2216
+ { label: r == null ? void 0 : r.propertiesPDFProducerLabel, value: C },
2217
+ { label: r == null ? void 0 : r.propertiesPDFVersionLabel, value: g },
2316
2218
  { label: r == null ? void 0 : r.propertiesPageCountLabel, value: _ }
2317
2219
  ];
2318
2220
  }, [t, r]);
2319
- return /* @__PURE__ */ i(Jo, { open: n, onOpenChange: o, children: /* @__PURE__ */ i(Yo, { container: e, children: /* @__PURE__ */ D("div", { className: Pe["rp-dialog-wrapper"], children: [
2320
- /* @__PURE__ */ i(Qo, { className: Pe["rp-dialog-overlay"] }),
2321
- /* @__PURE__ */ D(ei, { className: Pe["rp-document-dialog"], children: [
2322
- /* @__PURE__ */ i(ti, { className: Pe["rp-dialog-title"], children: r == null ? void 0 : r.documentPropertiesLabel }),
2221
+ return /* @__PURE__ */ i(Zo, { open: n, onOpenChange: o, children: /* @__PURE__ */ i(jo, { container: e, children: /* @__PURE__ */ D("div", { className: Pe["rp-dialog-wrapper"], children: [
2222
+ /* @__PURE__ */ i(Bo, { className: Pe["rp-dialog-overlay"] }),
2223
+ /* @__PURE__ */ D(Ko, { className: Pe["rp-document-dialog"], children: [
2224
+ /* @__PURE__ */ i(Xo, { className: Pe["rp-dialog-title"], children: r == null ? void 0 : r.documentPropertiesLabel }),
2323
2225
  /* @__PURE__ */ i("div", { className: Pe["rp-document-properties"], children: a.map((s, c) => /* @__PURE__ */ i("div", { children: s.separate ? /* @__PURE__ */ i("div", { className: Pe["rp-properties-divider"] }) : /* @__PURE__ */ i(Hr, { label: s.label, value: s.value }) }, c)) }),
2324
- /* @__PURE__ */ i(ni, { asChild: !0, className: Pe["rp-dialog-close"], children: /* @__PURE__ */ i(ln, {}) })
2226
+ /* @__PURE__ */ i(Jo, { asChild: !0, className: Pe["rp-dialog-close"], children: /* @__PURE__ */ i(sn, {}) })
2325
2227
  ] })
2326
2228
  ] }) }) });
2327
- }, oi = {
2229
+ }, Qo = {
2328
2230
  "rp-other-tool-content": "_rp-other-tool-content_su718_1"
2329
- }, ii = (t) => URL.createObjectURL(t), ai = async (t) => {
2231
+ }, ei = (t) => URL.createObjectURL(t), ti = async (t) => {
2330
2232
  const n = await (await fetch(t)).blob();
2331
- return ii(n);
2332
- }, si = () => {
2233
+ return ei(n);
2234
+ }, zn = () => {
2333
2235
  const { filename: t, pdfSrc: e } = Y();
2334
2236
  return { download: L(async () => {
2335
2237
  if (!t || !e)
2336
2238
  throw new Error("There is no PDF source to download");
2337
2239
  const o = document.createElement("a");
2338
- o.href = await ai(e), o.download = t, document.body.appendChild(o), o.click(), document.body.removeChild(o);
2240
+ o.href = await ti(e), o.download = t, document.body.appendChild(o), o.click(), document.body.removeChild(o);
2339
2241
  }, [t, e]) };
2340
- }, Mn = () => {
2242
+ }, An = () => {
2341
2243
  const { downloadIcon: t } = ue();
2342
- return t || /* @__PURE__ */ i(jr, {});
2343
- }, Hn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(j, { className: e, content: n == null ? void 0 : n.downloadFileTooltip, children: t }), ci = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(Hn, { localeMessages: e, children: /* @__PURE__ */ i(te, { onClick: t, "aria-label": e == null ? void 0 : e.downloadFileTooltip, children: /* @__PURE__ */ i(Mn, {}) }) }), li = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(we, { onClick: t, children: /* @__PURE__ */ D(Hn, { className: "rp-menu-item", localeMessages: e, children: [
2344
- /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Mn, {}) }),
2244
+ return t || /* @__PURE__ */ i(Zr, {});
2245
+ }, Fn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(Z, { className: e, content: n == null ? void 0 : n.downloadFileTooltip, children: t }), ni = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(Fn, { localeMessages: e, children: /* @__PURE__ */ i(te, { onClick: t, "aria-label": e == null ? void 0 : e.downloadFileTooltip, children: /* @__PURE__ */ i(An, {}) }) }), ri = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(we, { onClick: t, children: /* @__PURE__ */ D(Fn, { className: "rp-menu-item", localeMessages: e, children: [
2246
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(An, {}) }),
2345
2247
  e == null ? void 0 : e.downloadFileLabel
2346
- ] }) }), $n = () => {
2347
- const { download: t } = si(), { downloadTool: e = !0 } = ge(), { isSmallScreen: n } = ye(), { localeMessages: o } = le();
2348
- return e ? n ? /* @__PURE__ */ i(li, { download: t, localeMessages: o }) : typeof e == "function" ? /* @__PURE__ */ i(e, { download: t }) : e ? /* @__PURE__ */ i(ci, { download: t, localeMessages: o }) : null : null;
2349
- }, Gn = () => {
2248
+ ] }) }), kn = () => {
2249
+ const { download: t } = zn(), { downloadTool: e = !0 } = ge(), { isSmallScreen: n } = ye(), { localeMessages: o } = le();
2250
+ return e ? n ? /* @__PURE__ */ i(ri, { download: t, localeMessages: o }) : typeof e == "function" ? /* @__PURE__ */ i(e, { download: t }) : e ? /* @__PURE__ */ i(ni, { download: t, localeMessages: o }) : null : null;
2251
+ }, Wn = () => {
2350
2252
  const { printIcon: t } = ue();
2351
- return t || /* @__PURE__ */ i(Zr, {});
2352
- }, Vn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(j, { className: e, content: n == null ? void 0 : n.printTooltip, children: t }), ui = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(Vn, { localeMessages: e, children: /* @__PURE__ */ i(te, { onClick: t, "aria-label": e == null ? void 0 : e.printTooltip, children: /* @__PURE__ */ i(Gn, {}) }) }), di = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(we, { onClick: t, children: /* @__PURE__ */ D(Vn, { className: "rp-menu-item", localeMessages: e, children: [
2353
- /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Gn, {}) }),
2253
+ return t || /* @__PURE__ */ i(jr, {});
2254
+ }, Mn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(Z, { className: e, content: n == null ? void 0 : n.printTooltip, children: t }), oi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(Mn, { localeMessages: e, children: /* @__PURE__ */ i(te, { onClick: t, "aria-label": e == null ? void 0 : e.printTooltip, children: /* @__PURE__ */ i(Wn, {}) }) }), ii = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(we, { onClick: t, children: /* @__PURE__ */ D(Mn, { className: "rp-menu-item", localeMessages: e, children: [
2255
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Wn, {}) }),
2354
2256
  e == null ? void 0 : e.printLabel
2355
- ] }) }), Un = () => {
2356
- const { print: t, cancel: e, setOnProgress: n, setOnComplete: o, setOnError: r, progress: a } = It(), { printTool: s = !0 } = ge(), { isSmallScreen: c } = ye(), { localeMessages: l } = le();
2357
- return s ? c ? /* @__PURE__ */ i(di, { print: t, localeMessages: l }) : typeof s == "function" ? /* @__PURE__ */ i(
2257
+ ] }) }), Hn = () => {
2258
+ const { print: t, cancel: e, setOnProgress: n, setOnComplete: o, setOnError: r, progress: a } = nt(), { printTool: s = !0 } = ge(), { isSmallScreen: c } = ye(), { localeMessages: l } = le();
2259
+ return s ? c ? /* @__PURE__ */ i(ii, { print: t, localeMessages: l }) : typeof s == "function" ? /* @__PURE__ */ i(
2358
2260
  s,
2359
2261
  {
2360
2262
  print: t,
@@ -2364,33 +2266,33 @@ const Pe = {
2364
2266
  setOnComplete: o,
2365
2267
  progress: a
2366
2268
  }
2367
- ) : s ? /* @__PURE__ */ i(ui, { print: t, localeMessages: l }) : null : null;
2368
- }, pi = {
2269
+ ) : s ? /* @__PURE__ */ i(oi, { print: t, localeMessages: l }) : null : null;
2270
+ }, ai = {
2369
2271
  "rp-go-to-Top": "_rp-go-to-Top_4e0yd_1"
2370
- }, hi = () => {
2272
+ }, si = () => {
2371
2273
  const { goToFirstPageIcon: t } = ue();
2372
- return t || /* @__PURE__ */ i(dn, { className: pi["rp-go-to-Top"] });
2373
- }, mi = () => {
2274
+ return t || /* @__PURE__ */ i(ln, { className: ai["rp-go-to-Top"] });
2275
+ }, ci = () => {
2374
2276
  const { goToLastPageIcon: t } = ue();
2375
- return t || /* @__PURE__ */ i(dn, {});
2376
- }, Jt = { width: "100%" }, fi = () => {
2277
+ return t || /* @__PURE__ */ i(ln, {});
2278
+ }, Kt = { width: "100%" }, li = () => {
2377
2279
  const { goToPage: t, totalPages: e, focusedPage: n } = se(), { jumpNavigationTool: o = !0 } = ge(), { localeMessages: r } = le(), a = k(() => n === 1, [n]), s = k(() => n === e, [n, e]), c = L(() => {
2378
2280
  t(1);
2379
2281
  }, [t]), l = L(() => {
2380
2282
  t(e);
2381
2283
  }, [t, e]);
2382
- return o ? /* @__PURE__ */ D(je, { children: [
2383
- /* @__PURE__ */ i(we, { onClick: c, children: /* @__PURE__ */ i(j, { content: r == null ? void 0 : r.firstPageTooltip, style: Jt, children: /* @__PURE__ */ D("div", { className: "rp-menu-item", "aria-disabled": a, children: [
2384
- /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(hi, {}) }),
2284
+ return o ? /* @__PURE__ */ D(Ze, { children: [
2285
+ /* @__PURE__ */ i(we, { onClick: c, children: /* @__PURE__ */ i(Z, { content: r == null ? void 0 : r.firstPageTooltip, style: Kt, children: /* @__PURE__ */ D("div", { className: "rp-menu-item", "aria-disabled": a, children: [
2286
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(si, {}) }),
2385
2287
  /* @__PURE__ */ i("span", { children: r == null ? void 0 : r.firstPageLabel })
2386
2288
  ] }) }) }),
2387
- /* @__PURE__ */ i(we, { onClick: l, children: /* @__PURE__ */ i(j, { content: r == null ? void 0 : r.lastPageTooltip, style: Jt, children: /* @__PURE__ */ D("div", { className: "rp-menu-item", "aria-disabled": s, children: [
2388
- /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(mi, {}) }),
2289
+ /* @__PURE__ */ i(we, { onClick: l, children: /* @__PURE__ */ i(Z, { content: r == null ? void 0 : r.lastPageTooltip, style: Kt, children: /* @__PURE__ */ D("div", { className: "rp-menu-item", "aria-disabled": s, children: [
2290
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(ci, {}) }),
2389
2291
  /* @__PURE__ */ i("span", { children: r == null ? void 0 : r.lastPageLabel })
2390
2292
  ] }) }) }),
2391
- /* @__PURE__ */ i(St, {})
2293
+ /* @__PURE__ */ i(Tt, {})
2392
2294
  ] }) : null;
2393
- }, gi = () => {
2295
+ }, ui = () => {
2394
2296
  const { container: t } = Ie(), { isSmallScreen: e } = ye(), {
2395
2297
  openFileTool: n,
2396
2298
  downloadTool: o,
@@ -2401,11 +2303,11 @@ const Pe = {
2401
2303
  jumpNavigationTool: l,
2402
2304
  printTool: u,
2403
2305
  fullscreenTool: h
2404
- } = ge(), { localeMessages: m } = le();
2306
+ } = ge(), { localeMessages: f } = le();
2405
2307
  return k(() => {
2406
- const w = l || s || c || a || r;
2407
- let g = !1;
2408
- return e && (g = !(!n && !o && !u && !h)), w || g;
2308
+ const v = l || s || c || a || r;
2309
+ let w = !1;
2310
+ return e && (w = !(!n && !o && !u && !h)), v || w;
2409
2311
  }, [
2410
2312
  n,
2411
2313
  o,
@@ -2417,19 +2319,19 @@ const Pe = {
2417
2319
  e
2418
2320
  ]) ? /* @__PURE__ */ D(Gr, { children: [
2419
2321
  /* @__PURE__ */ i(
2420
- cn,
2322
+ an,
2421
2323
  {
2422
2324
  container: t,
2423
- triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(j, { content: m == null ? void 0 : m.moreOptionTooltip, children: /* @__PURE__ */ i(te, { "aria-label": m == null ? void 0 : m.moreOptionTooltip, children: /* @__PURE__ */ i(Lr, {}) }) }) }),
2424
- children: /* @__PURE__ */ D("div", { className: oi["rp-other-tool-content"], "data-rp": "moreOptionsDropdown", children: [
2425
- e && /* @__PURE__ */ D(je, { children: [
2426
- /* @__PURE__ */ i(sn, {}),
2427
- /* @__PURE__ */ i($n, {}),
2428
- /* @__PURE__ */ i(Un, {}),
2429
- /* @__PURE__ */ i(un, {}),
2430
- /* @__PURE__ */ i(St, {})
2325
+ triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(Z, { content: f == null ? void 0 : f.moreOptionTooltip, children: /* @__PURE__ */ i(te, { "aria-label": f == null ? void 0 : f.moreOptionTooltip, children: /* @__PURE__ */ i(Lr, {}) }) }) }),
2326
+ children: /* @__PURE__ */ D("div", { className: Qo["rp-other-tool-content"], "data-rp": "moreOptionsDropdown", children: [
2327
+ e && /* @__PURE__ */ D(Ze, { children: [
2328
+ /* @__PURE__ */ i(on, {}),
2329
+ /* @__PURE__ */ i(kn, {}),
2330
+ /* @__PURE__ */ i(Hn, {}),
2331
+ /* @__PURE__ */ i(cn, {}),
2332
+ /* @__PURE__ */ i(Tt, {})
2431
2333
  ] }),
2432
- /* @__PURE__ */ i(fi, {}),
2334
+ /* @__PURE__ */ i(li, {}),
2433
2335
  /* @__PURE__ */ i(Ur, {}),
2434
2336
  /* @__PURE__ */ i(Br, {}),
2435
2337
  /* @__PURE__ */ i(qr, {}),
@@ -2437,19 +2339,19 @@ const Pe = {
2437
2339
  ] })
2438
2340
  }
2439
2341
  ),
2440
- /* @__PURE__ */ i(ri, {})
2342
+ /* @__PURE__ */ i(Yo, {})
2441
2343
  ] }) : null;
2442
- }, vi = () => {
2344
+ }, di = () => {
2443
2345
  const { isSmallScreen: t } = ye();
2444
2346
  return /* @__PURE__ */ D(ke, { children: [
2445
2347
  /* @__PURE__ */ i(Rr, {}),
2446
2348
  !t && /* @__PURE__ */ D(ke, { children: [
2447
- /* @__PURE__ */ i(sn, {}),
2448
- /* @__PURE__ */ i($n, {}),
2449
- /* @__PURE__ */ i(Un, {}),
2450
- /* @__PURE__ */ i(un, {})
2349
+ /* @__PURE__ */ i(on, {}),
2350
+ /* @__PURE__ */ i(kn, {}),
2351
+ /* @__PURE__ */ i(Hn, {}),
2352
+ /* @__PURE__ */ i(cn, {})
2451
2353
  ] }),
2452
- /* @__PURE__ */ i(gi, {})
2354
+ /* @__PURE__ */ i(ui, {})
2453
2355
  ] });
2454
2356
  }, Le = {
2455
2357
  "rp-zoom-wrapper": "_rp-zoom-wrapper_cocqs_1",
@@ -2457,53 +2359,53 @@ const Pe = {
2457
2359
  "rp-current-zoom-icon": "_rp-current-zoom-icon_cocqs_11",
2458
2360
  "rp-current-zoom-text": "_rp-current-zoom-text_cocqs_16",
2459
2361
  "rp-zoom-dropdown-content": "_rp-zoom-dropdown-content_cocqs_20"
2460
- }, _i = 25, dt = 1e3, wi = [50, 75, 100, 125, 150, 200, 300, 400], bi = () => {
2362
+ }, pi = 25, pt = 1e3, hi = [50, 75, 100, 125, 150, 200, 300, 400], mi = () => {
2461
2363
  const { zoomInIcon: t } = ue();
2462
2364
  return t || /* @__PURE__ */ i(Kr, {});
2463
- }, Ci = () => {
2365
+ }, fi = () => {
2464
2366
  const { zoomOutIcon: t } = ue();
2465
2367
  return t || /* @__PURE__ */ i(Xr, {});
2466
- }, Ti = () => {
2368
+ }, gi = () => {
2467
2369
  const { zoomLevel: t, setZoomLevel: e } = Ye(), { container: n, contentRef: o } = Ie(), { zoomTool: r = !0 } = ge(), { focusedPage: a } = se(), { rotate: s } = Je(), { pages: c } = Y(), { isSmallScreen: l } = ye(), { localeMessages: u } = le(), h = L(() => {
2468
2370
  e((_) => {
2469
- const f = Math.floor(_ / 25) * 25;
2470
- return Math.min(f + 25, dt);
2371
+ const m = Math.floor(_ / 25) * 25;
2372
+ return Math.min(m + 25, pt);
2471
2373
  });
2472
- }, [e]), m = L(() => {
2374
+ }, [e]), f = L(() => {
2473
2375
  e((_) => {
2474
- const f = Math.ceil(_ / 25) * 25;
2475
- return Math.min(f - 25, dt);
2376
+ const m = Math.ceil(_ / 25) * 25;
2377
+ return Math.min(m - 25, pt);
2476
2378
  });
2477
- }, [e]), d = k(() => t === _i, [t]), w = k(() => t === dt, [t]), g = k(() => {
2379
+ }, [e]), p = k(() => t === pi, [t]), v = k(() => t === pt, [t]), w = k(() => {
2478
2380
  var _;
2479
2381
  return (_ = c.get(a)) == null ? void 0 : _.page.getViewport({ scale: 1, rotation: s });
2480
- }, [c, a, s]), b = L(
2382
+ }, [c, a, s]), C = L(
2481
2383
  (_) => {
2482
- const f = ((g == null ? void 0 : g.width) || 0) + 2 * Ot, P = ((g == null ? void 0 : g.height) || 0) + 2 * Ot, R = (o == null ? void 0 : o.clientWidth) || 0, p = (o == null ? void 0 : o.clientHeight) || 0, T = Jr(_, R, p, f, P);
2384
+ const m = ((w == null ? void 0 : w.width) || 0) + 2 * Dt, P = ((w == null ? void 0 : w.height) || 0) + 2 * Dt, I = (o == null ? void 0 : o.clientWidth) || 0, d = (o == null ? void 0 : o.clientHeight) || 0, T = Jr(_, I, d, m, P);
2483
2385
  e(T);
2484
2386
  },
2485
- [e, g]
2486
- ), v = L(
2387
+ [e, w]
2388
+ ), g = L(
2487
2389
  (_) => {
2488
- typeof _ == "number" ? e(_) : b(_);
2390
+ typeof _ == "number" ? e(_) : C(_);
2489
2391
  },
2490
- [e, b]
2392
+ [e, C]
2491
2393
  );
2492
2394
  return typeof r != "boolean" ? /* @__PURE__ */ i(r, { zoomLevel: t, setZoomLevel: e }) : r ? /* @__PURE__ */ D("div", { className: Le["rp-zoom-wrapper"], children: [
2493
- /* @__PURE__ */ i(j, { content: u == null ? void 0 : u.zoomOutTooltip, children: /* @__PURE__ */ i(
2395
+ /* @__PURE__ */ i(Z, { content: u == null ? void 0 : u.zoomOutTooltip, children: /* @__PURE__ */ i(
2494
2396
  te,
2495
2397
  {
2496
- disabled: d,
2497
- onClick: m,
2398
+ disabled: p,
2399
+ onClick: f,
2498
2400
  "aria-label": u == null ? void 0 : u.zoomOutTooltip,
2499
- children: /* @__PURE__ */ i(Ci, {})
2401
+ children: /* @__PURE__ */ i(fi, {})
2500
2402
  }
2501
2403
  ) }),
2502
2404
  !l && /* @__PURE__ */ i(
2503
- cn,
2405
+ an,
2504
2406
  {
2505
2407
  container: n,
2506
- triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(j, { content: u == null ? void 0 : u.zoomSelectTooltip, children: /* @__PURE__ */ D(
2408
+ triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(Z, { content: u == null ? void 0 : u.zoomSelectTooltip, children: /* @__PURE__ */ D(
2507
2409
  te,
2508
2410
  {
2509
2411
  className: Le["rp-current-zoom-wrapper"],
@@ -2518,26 +2420,26 @@ const Pe = {
2518
2420
  style: { minWidth: "200px" },
2519
2421
  align: "center",
2520
2422
  children: /* @__PURE__ */ D("div", { className: Le["rp-zoom-dropdown-content"], children: [
2521
- /* @__PURE__ */ D(je, { children: [
2522
- /* @__PURE__ */ i(we, { onClick: () => v(nt.ACTUAL), children: u == null ? void 0 : u.zoomActualSize }),
2523
- /* @__PURE__ */ i(we, { onClick: () => v(nt.PAGE_FIT), children: u == null ? void 0 : u.zoomPageFit }),
2524
- /* @__PURE__ */ i(we, { onClick: () => v(nt.PAGE_WIDTH), children: u == null ? void 0 : u.zoomPageWidth })
2423
+ /* @__PURE__ */ D(Ze, { children: [
2424
+ /* @__PURE__ */ i(we, { onClick: () => g(rt.ACTUAL), children: u == null ? void 0 : u.zoomActualSize }),
2425
+ /* @__PURE__ */ i(we, { onClick: () => g(rt.PAGE_FIT), children: u == null ? void 0 : u.zoomPageFit }),
2426
+ /* @__PURE__ */ i(we, { onClick: () => g(rt.PAGE_WIDTH), children: u == null ? void 0 : u.zoomPageWidth })
2525
2427
  ] }),
2526
- /* @__PURE__ */ i(St, {}),
2527
- /* @__PURE__ */ i(je, { children: wi.map((_) => /* @__PURE__ */ D(we, { onClick: () => v(_), children: [
2428
+ /* @__PURE__ */ i(Tt, {}),
2429
+ /* @__PURE__ */ i(Ze, { children: hi.map((_) => /* @__PURE__ */ D(we, { onClick: () => g(_), children: [
2528
2430
  _,
2529
2431
  " %"
2530
2432
  ] }, _)) })
2531
2433
  ] })
2532
2434
  }
2533
2435
  ),
2534
- /* @__PURE__ */ i(j, { content: u == null ? void 0 : u.zoomInTooltip, children: /* @__PURE__ */ i(
2436
+ /* @__PURE__ */ i(Z, { content: u == null ? void 0 : u.zoomInTooltip, children: /* @__PURE__ */ i(
2535
2437
  te,
2536
2438
  {
2537
- disabled: w,
2439
+ disabled: v,
2538
2440
  onClick: h,
2539
2441
  "aria-label": u == null ? void 0 : u.zoomInTooltip,
2540
- children: /* @__PURE__ */ i(bi, {})
2442
+ children: /* @__PURE__ */ i(mi, {})
2541
2443
  }
2542
2444
  ) })
2543
2445
  ] }) : null;
@@ -2551,100 +2453,100 @@ const Pe = {
2551
2453
  "rp-search-tool-input-clear": "_rp-search-tool-input-clear_jvchu_43",
2552
2454
  "rp-search-input": "_rp-search-input_jvchu_57",
2553
2455
  "rp-search-icon-info": "_rp-search-icon-info_jvchu_62"
2554
- }, Yt = () => {
2456
+ }, Xt = () => {
2555
2457
  const { searchIcon: t } = ue();
2556
2458
  return t || /* @__PURE__ */ i(Yr, {});
2557
- }, Pi = () => {
2459
+ }, vi = () => {
2558
2460
  const { container: t } = Ie(), [e, n] = H(!1), { pdf: o } = Y(), [r, a] = H(null), {
2559
2461
  searchOptions: s,
2560
2462
  setSearchOptions: c,
2561
2463
  loading: l,
2562
2464
  setSearch: u,
2563
2465
  totalMatches: h,
2564
- currentMatchPosition: m,
2565
- nextMatch: d,
2566
- prevMatch: w,
2567
- search: g
2568
- } = _n(), { searchTool: b = !0 } = ge(), [v, _] = H(g), { localeMessages: f } = le(), P = L(() => {
2466
+ currentMatchPosition: f,
2467
+ nextMatch: p,
2468
+ prevMatch: v,
2469
+ search: w
2470
+ } = gn(), { searchTool: C = !0 } = ge(), [g, _] = H(w), { localeMessages: m } = le(), P = L(() => {
2569
2471
  n(!0);
2570
- }, []), R = L(() => {
2472
+ }, []), I = L(() => {
2571
2473
  u(""), _(""), n(!1);
2572
- }, [u]), p = (x) => {
2573
- const N = x.key === "Enter", $ = x.key === " ";
2574
- (N || $) && R();
2474
+ }, [u]), d = (R) => {
2475
+ const N = R.key === "Enter", $ = R.key === " ";
2476
+ (N || $) && I();
2575
2477
  }, T = L(
2576
- (x) => {
2577
- x.key === "Escape" && e && R();
2478
+ (R) => {
2479
+ R.key === "Escape" && e && I();
2578
2480
  },
2579
2481
  [e]
2580
- ), C = L(
2581
- (x) => {
2582
- x.shiftKey && x.key === "Enter" ? w() : x.key === "Enter" && g !== v ? u(v) : x.key === "Enter" && d();
2482
+ ), b = L(
2483
+ (R) => {
2484
+ R.shiftKey && R.key === "Enter" ? v() : R.key === "Enter" && w !== g ? u(g) : R.key === "Enter" && p();
2583
2485
  },
2584
- [v, w, d, u, g]
2486
+ [g, v, p, u, w]
2585
2487
  );
2586
2488
  O(() => (window.addEventListener("keydown", T), () => {
2587
2489
  window.removeEventListener("keydown", T);
2588
2490
  }), [T]), O(() => {
2589
2491
  r && r.focus();
2590
2492
  }, [r]);
2591
- const S = L((x) => {
2592
- _(x.target.value);
2493
+ const S = L((R) => {
2494
+ _(R.target.value);
2593
2495
  }, []), A = L(() => {
2594
2496
  _(""), u("");
2595
- }, [u]), I = k(() => `${m} / ${h}`, [m, h]), { wholeWords: E, matchCase: y } = k(() => s, [s]), F = L(
2596
- (x) => {
2597
- c((N) => ({ ...N, matchCase: x }));
2497
+ }, [u]), y = k(() => `${f} / ${h}`, [f, h]), { wholeWords: E, matchCase: x } = k(() => s, [s]), F = L(
2498
+ (R) => {
2499
+ c((N) => ({ ...N, matchCase: R }));
2598
2500
  },
2599
2501
  [c]
2600
2502
  ), z = L(
2601
- (x) => {
2602
- c((N) => ({ ...N, wholeWords: x }));
2503
+ (R) => {
2504
+ c((N) => ({ ...N, wholeWords: R }));
2603
2505
  },
2604
2506
  [c]
2605
2507
  );
2606
2508
  return O(() => {
2607
- R();
2608
- }, [o, R]), b ? /* @__PURE__ */ i(ke, { children: /* @__PURE__ */ i(
2509
+ I();
2510
+ }, [o, I]), C ? /* @__PURE__ */ i(ke, { children: /* @__PURE__ */ i(
2609
2511
  eo,
2610
2512
  {
2611
2513
  open: e,
2612
2514
  container: t,
2613
- triggerComponent: /* @__PURE__ */ i(j, { content: f == null ? void 0 : f.searchButtonTooltip, children: /* @__PURE__ */ i(te, { onClick: P, "aria-label": f == null ? void 0 : f.searchButtonTooltip, children: /* @__PURE__ */ i(Yt, {}) }) }),
2515
+ triggerComponent: /* @__PURE__ */ i(Z, { content: m == null ? void 0 : m.searchButtonTooltip, children: /* @__PURE__ */ i(te, { onClick: P, "aria-label": m == null ? void 0 : m.searchButtonTooltip, children: /* @__PURE__ */ i(Xt, {}) }) }),
2614
2516
  children: /* @__PURE__ */ D("div", { className: ne["rp-search-tool-content"], children: [
2615
2517
  /* @__PURE__ */ D("div", { className: ne["rp-search-tool-input-wrapper"], children: [
2616
2518
  /* @__PURE__ */ D("div", { className: ne["rp-search-tool-input"], children: [
2617
- /* @__PURE__ */ i(j, { content: f == null ? void 0 : f.searchInputTooltip, children: /* @__PURE__ */ i(
2618
- tn,
2519
+ /* @__PURE__ */ i(Z, { content: m == null ? void 0 : m.searchInputTooltip, children: /* @__PURE__ */ i(
2520
+ Qt,
2619
2521
  {
2620
- value: v,
2621
- onKeyDown: C,
2522
+ value: g,
2523
+ onKeyDown: b,
2622
2524
  onChange: S,
2623
- icon: /* @__PURE__ */ i(Yt, {}),
2624
- placeholder: f == null ? void 0 : f.searchInputPlaceholder,
2525
+ icon: /* @__PURE__ */ i(Xt, {}),
2526
+ placeholder: m == null ? void 0 : m.searchInputPlaceholder,
2625
2527
  className: ne["rp-search-input"],
2626
2528
  ref: a,
2627
- children: !!v && /* @__PURE__ */ i("span", { className: ne["rp-search-tool-input-clear"], onClick: A, children: /* @__PURE__ */ i(Qr, {}) })
2529
+ children: !!g && /* @__PURE__ */ i("span", { className: ne["rp-search-tool-input-clear"], onClick: A, children: /* @__PURE__ */ i(Qr, {}) })
2628
2530
  }
2629
2531
  ) }),
2630
- l ? /* @__PURE__ */ i("span", { children: /* @__PURE__ */ i(Me, {}) }) : /* @__PURE__ */ i("span", { children: I })
2532
+ l ? /* @__PURE__ */ i("span", { children: /* @__PURE__ */ i(Me, {}) }) : /* @__PURE__ */ i("span", { children: y })
2631
2533
  ] }),
2632
2534
  /* @__PURE__ */ D("div", { className: ne["rp-search-tool-input-checkboxes"], children: [
2633
- /* @__PURE__ */ i(Dt, { name: "matchCase", value: y, onChange: F, children: f == null ? void 0 : f.searchMatchCaseLabel }),
2634
- /* @__PURE__ */ i(j, { content: f == null ? void 0 : f.searchMatchCaseTooltip, children: /* @__PURE__ */ i("div", { className: ne["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ i(zt, {}) }) }),
2635
- /* @__PURE__ */ i(Dt, { name: "wholeWord", value: E, onChange: z, children: f == null ? void 0 : f.searchWholeWordsLabel }),
2636
- /* @__PURE__ */ i(j, { content: f == null ? void 0 : f.searchWholeWordsTooltip, children: /* @__PURE__ */ i("div", { className: ne["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ i(zt, {}) }) })
2535
+ /* @__PURE__ */ i(zt, { name: "matchCase", value: x, onChange: F, children: m == null ? void 0 : m.searchMatchCaseLabel }),
2536
+ /* @__PURE__ */ i(Z, { content: m == null ? void 0 : m.searchMatchCaseTooltip, children: /* @__PURE__ */ i("div", { className: ne["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ i(At, {}) }) }),
2537
+ /* @__PURE__ */ i(zt, { name: "wholeWord", value: E, onChange: z, children: m == null ? void 0 : m.searchWholeWordsLabel }),
2538
+ /* @__PURE__ */ i(Z, { content: m == null ? void 0 : m.searchWholeWordsTooltip, children: /* @__PURE__ */ i("div", { className: ne["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ i(At, {}) }) })
2637
2539
  ] })
2638
2540
  ] }),
2639
2541
  /* @__PURE__ */ D("div", { className: ne["rp-search-tool-controls"], children: [
2640
- /* @__PURE__ */ i(j, { content: f == null ? void 0 : f.searchPrevTooltip, children: /* @__PURE__ */ i(te, { onClick: w, "aria-label": f == null ? void 0 : f.searchPrevTooltip, children: /* @__PURE__ */ i(
2542
+ /* @__PURE__ */ i(Z, { content: m == null ? void 0 : m.searchPrevTooltip, children: /* @__PURE__ */ i(te, { onClick: v, "aria-label": m == null ? void 0 : m.searchPrevTooltip, children: /* @__PURE__ */ i(
2641
2543
  We,
2642
2544
  {
2643
2545
  className: ne["rp-search-tool-input-icon"],
2644
2546
  "aria-disabled": !h
2645
2547
  }
2646
2548
  ) }) }),
2647
- /* @__PURE__ */ i(j, { content: f == null ? void 0 : f.searchNextTooltip, children: /* @__PURE__ */ i(te, { onClick: d, "aria-label": f == null ? void 0 : f.searchNextTooltip, children: /* @__PURE__ */ i(
2549
+ /* @__PURE__ */ i(Z, { content: m == null ? void 0 : m.searchNextTooltip, children: /* @__PURE__ */ i(te, { onClick: p, "aria-label": m == null ? void 0 : m.searchNextTooltip, children: /* @__PURE__ */ i(
2648
2550
  We,
2649
2551
  {
2650
2552
  style: { transform: "rotate(180deg" },
@@ -2652,28 +2554,28 @@ const Pe = {
2652
2554
  "aria-disabled": !h
2653
2555
  }
2654
2556
  ) }) }),
2655
- /* @__PURE__ */ i(j, { content: f == null ? void 0 : f.searchCloseButtonTooltip, children: /* @__PURE__ */ i(
2557
+ /* @__PURE__ */ i(Z, { content: m == null ? void 0 : m.searchCloseButtonTooltip, children: /* @__PURE__ */ i(
2656
2558
  te,
2657
2559
  {
2658
- onKeyDown: p,
2659
- "aria-label": f == null ? void 0 : f.searchCloseButtonTooltip,
2660
- children: /* @__PURE__ */ i(ln, { onClick: R, className: ne["rp-search-tool-input-icon"] })
2560
+ onKeyDown: d,
2561
+ "aria-label": m == null ? void 0 : m.searchCloseButtonTooltip,
2562
+ children: /* @__PURE__ */ i(sn, { onClick: I, className: ne["rp-search-tool-input-icon"] })
2661
2563
  }
2662
2564
  ) })
2663
2565
  ] })
2664
2566
  ] })
2665
2567
  }
2666
2568
  ) }) : null;
2667
- }, Si = "_loading_16o91_1", Ne = {
2569
+ }, _i = "_loading_16o91_1", Ne = {
2668
2570
  "rp-loading-overlay": "_rp-loading-overlay_16o91_1",
2669
2571
  "rp-loading-modal": "_rp-loading-modal_16o91_14",
2670
2572
  "rp-loading-title": "_rp-loading-title_16o91_27",
2671
2573
  "rp-loading-progress-bar": "_rp-loading-progress-bar_16o91_35",
2672
2574
  "rp-loading-progress": "_rp-loading-progress_16o91_35",
2673
2575
  "rp-loading-cancel-button": "_rp-loading-cancel-button_16o91_52",
2674
- loading: Si
2675
- }, Ii = ({ percentage: t }) => {
2676
- const { cancel: e } = It(), { localeMessages: n } = le();
2576
+ loading: _i
2577
+ }, wi = ({ percentage: t }) => {
2578
+ const { cancel: e } = nt(), { localeMessages: n } = le();
2677
2579
  return t < 1 ? null : /* @__PURE__ */ i("div", { className: re(Ne["rp-loading-overlay"]), children: /* @__PURE__ */ D("div", { className: re(Ne["rp-loading-modal"]), children: [
2678
2580
  /* @__PURE__ */ D("div", { className: re(Ne["rp-loading-title"]), children: [
2679
2581
  n == null ? void 0 : n.printLoadingMessage,
@@ -2688,20 +2590,20 @@ const Pe = {
2688
2590
  ) }),
2689
2591
  /* @__PURE__ */ i("button", { className: re(Ne["rp-loading-cancel-button"]), onClick: e, children: n == null ? void 0 : n.printCancelLabel })
2690
2592
  ] }) });
2691
- }, yi = Xe((t, e) => {
2692
- const { showPrintProgress: n } = ge(), { progress: o } = It(), { isSmallScreen: r } = ye(), { percentage: a } = o || {}, s = () => r ? { gridTemplateColumns: "25% 60% 15%" } : void 0;
2593
+ }, bi = Xe((t, e) => {
2594
+ const { showPrintProgress: n } = ge(), { progress: o } = nt(), { isSmallScreen: r } = ye(), { percentage: a } = o || {}, s = () => r ? { gridTemplateColumns: "25% 60% 15%" } : void 0;
2693
2595
  return /* @__PURE__ */ D("div", { children: [
2694
2596
  /* @__PURE__ */ i("div", { "data-rp": "topBar", ref: e, className: ze["rp-toolbar-content"], children: /* @__PURE__ */ D("div", { className: ze["rp-toolbar-wrapper"], style: s(), children: [
2695
2597
  /* @__PURE__ */ D("div", { "data-rp": "topBarLeft", className: ze["rp-toolbar-start"], children: [
2696
- /* @__PURE__ */ i(Pi, {}),
2697
- /* @__PURE__ */ i(Ho, {})
2598
+ /* @__PURE__ */ i(vi, {}),
2599
+ /* @__PURE__ */ i(Ao, {})
2698
2600
  ] }),
2699
- /* @__PURE__ */ i("div", { "data-rp": "topBarCenter", className: ze["rp-toolbar-middle"], children: /* @__PURE__ */ i(Ti, {}) }),
2700
- /* @__PURE__ */ i("div", { "data-rp": "topBarRight", className: ze["rp-toolbar-end"], children: /* @__PURE__ */ i(vi, {}) })
2601
+ /* @__PURE__ */ i("div", { "data-rp": "topBarCenter", className: ze["rp-toolbar-middle"], children: /* @__PURE__ */ i(gi, {}) }),
2602
+ /* @__PURE__ */ i("div", { "data-rp": "topBarRight", className: ze["rp-toolbar-end"], children: /* @__PURE__ */ i(di, {}) })
2701
2603
  ] }) }),
2702
- n && a ? /* @__PURE__ */ i(Ii, { percentage: a }) : null
2604
+ n && a ? /* @__PURE__ */ i(wi, { percentage: a }) : null
2703
2605
  ] });
2704
- }), pt = {
2606
+ }), ht = {
2705
2607
  "rp-sidebar-content-wrapper": "_rp-sidebar-content-wrapper_4wlw3_1",
2706
2608
  "rp-sidebar-content": "_rp-sidebar-content_4wlw3_1",
2707
2609
  "rp-thumbnails-wrapper": "_rp-thumbnails-wrapper_4wlw3_16",
@@ -2712,7 +2614,7 @@ const Pe = {
2712
2614
  "rp-thumbnail": "_rp-thumbnail_3fenb_1",
2713
2615
  "rp-thumbnail-active": "_rp-thumbnail-active_3fenb_22",
2714
2616
  "rp-thumbnail-loader": "_rp-thumbnail-loader_3fenb_31"
2715
- }, xi = (t) => {
2617
+ }, Ci = (t) => {
2716
2618
  const { thumbnailSrc: e, pageNumber: n, isFocused: o, viewport: r } = t, { goToPage: a } = se(), s = k(() => o ? Ae["rp-thumbnail-active"] : "", [o]), c = k(() => ({
2717
2619
  width: Math.round(r.width),
2718
2620
  height: Math.round(r.height)
@@ -2749,88 +2651,88 @@ const Pe = {
2749
2651
  ]
2750
2652
  }
2751
2653
  );
2752
- }, Qt = {
2654
+ }, Jt = {
2753
2655
  "rp-thumbnails-container": "_rp-thumbnails-container_16vqr_1",
2754
2656
  "rp-thumbnails": "_rp-thumbnails_16vqr_1"
2755
- }, Ri = 16, Li = (t, e) => {
2657
+ }, Ti = 16, Pi = (t, e) => {
2756
2658
  const n = t == null ? void 0 : t.querySelector(`#page-${e}`);
2757
- t && (n != null && n.offsetTop) && (t.scrollTop = (n == null ? void 0 : n.offsetTop) - Ri);
2758
- }, Ni = Xe((t, e) => {
2759
- const { show: n } = t, { focusedPage: o, totalPages: r } = se(), { thumbnailPages: a, addPage: s, thumbnailLength: c, addToPage: l } = gn(), u = W(null), h = W(1);
2760
- en(e, () => u.current);
2761
- const m = k(() => Object.values(a), [a]), d = L(() => {
2762
- const w = c + 1;
2763
- w <= r && s(w);
2659
+ t && (n != null && n.offsetTop) && (t.scrollTop = (n == null ? void 0 : n.offsetTop) - Ti);
2660
+ }, Si = Xe((t, e) => {
2661
+ const { show: n } = t, { focusedPage: o, totalPages: r } = se(), { thumbnailPages: a, addPage: s, thumbnailLength: c, addToPage: l } = mn(), u = W(null), h = W(1);
2662
+ Yt(e, () => u.current);
2663
+ const f = k(() => Object.values(a), [a]), p = L(() => {
2664
+ const v = c + 1;
2665
+ v <= r && s(v);
2764
2666
  }, [s, r, c]);
2765
2667
  return O(() => {
2766
- o > c ? l(o) : n && h.current !== o && (Li(u.current, o), h.current = o);
2767
- }, [o, c, l, n, m]), pr(u.current, d), /* @__PURE__ */ i("div", { ref: u, className: Qt["rp-thumbnails-container"], children: /* @__PURE__ */ i("div", { className: Qt["rp-thumbnails"], children: n ? m.map((w, g) => {
2768
- var b, v;
2668
+ o > c ? l(o) : n && h.current !== o && (Pi(u.current, o), h.current = o);
2669
+ }, [o, c, l, n, f]), cr(u.current, p), /* @__PURE__ */ i("div", { ref: u, className: Jt["rp-thumbnails-container"], children: /* @__PURE__ */ i("div", { className: Jt["rp-thumbnails"], children: n ? f.map((v, w) => {
2670
+ var C, g;
2769
2671
  return /* @__PURE__ */ i(
2770
- xi,
2672
+ Ci,
2771
2673
  {
2772
- isFocused: o === ((b = w.page) == null ? void 0 : b.pageNumber),
2773
- pageNumber: (v = w.page) == null ? void 0 : v.pageNumber,
2774
- thumbnailSrc: w.thumbnailSrc,
2775
- loading: w.loading,
2776
- viewport: w.viewport
2674
+ isFocused: o === ((C = v.page) == null ? void 0 : C.pageNumber),
2675
+ pageNumber: (g = v.page) == null ? void 0 : g.pageNumber,
2676
+ thumbnailSrc: v.thumbnailSrc,
2677
+ loading: v.loading,
2678
+ viewport: v.viewport
2777
2679
  },
2778
- g
2680
+ w
2779
2681
  );
2780
2682
  }) : null }) });
2781
- }), Ei = () => {
2683
+ }), Ii = () => {
2782
2684
  const { thumbnailIcon: t } = ue();
2783
- return t || /* @__PURE__ */ i(dr, {});
2784
- }, Oi = () => {
2785
- const { active: t, setActive: e } = gn(), [n, o] = H(200), r = W(null), { thumbnailTool: a } = ge(), { localeMessages: s } = le(), c = L(() => {
2685
+ return t || /* @__PURE__ */ i(sr, {});
2686
+ }, yi = () => {
2687
+ const { active: t, setActive: e } = mn(), [n, o] = H(200), r = W(null), { thumbnailTool: a } = ge(), { localeMessages: s } = le(), c = L(() => {
2786
2688
  e((u) => !u);
2787
- }, []), l = k(() => typeof a != "boolean" && a ? /* @__PURE__ */ i(a, { onClick: c, active: t }) : a ? /* @__PURE__ */ i(j, { content: s == null ? void 0 : s.thumbnailTooltip, children: /* @__PURE__ */ i(
2689
+ }, []), l = k(() => typeof a != "boolean" && a ? /* @__PURE__ */ i(a, { onClick: c, active: t }) : a ? /* @__PURE__ */ i(Z, { content: s == null ? void 0 : s.thumbnailTooltip, children: /* @__PURE__ */ i(
2788
2690
  te,
2789
2691
  {
2790
2692
  onClick: c,
2791
2693
  active: t,
2792
2694
  "aria-label": s == null ? void 0 : s.thumbnailTooltip,
2793
- children: /* @__PURE__ */ i(Ei, {})
2695
+ children: /* @__PURE__ */ i(Ii, {})
2794
2696
  }
2795
2697
  ) }) : null, [a, t, c]);
2796
2698
  return /* @__PURE__ */ D(
2797
2699
  "div",
2798
2700
  {
2799
2701
  style: { "--rp-thumbnail-width": `${n}px` },
2800
- className: pt["rp-sidebar-content-wrapper"],
2702
+ className: ht["rp-sidebar-content-wrapper"],
2801
2703
  "data-rp": "sidebar",
2802
2704
  children: [
2803
- /* @__PURE__ */ i("div", { className: pt["rp-sidebar-content"], children: l }),
2804
- /* @__PURE__ */ D("div", { "data-rp": "thumbnailSidebar", hidden: !t, className: pt["rp-thumbnails-wrapper"], children: [
2805
- /* @__PURE__ */ i(Ni, { show: t, ref: r }),
2806
- /* @__PURE__ */ i(hr, { onWidthChange: o, thumbnailRef: r })
2705
+ /* @__PURE__ */ i("div", { className: ht["rp-sidebar-content"], children: l }),
2706
+ /* @__PURE__ */ D("div", { "data-rp": "thumbnailSidebar", hidden: !t, className: ht["rp-thumbnails-wrapper"], children: [
2707
+ /* @__PURE__ */ i(Si, { show: t, ref: r }),
2708
+ /* @__PURE__ */ i(lr, { onWidthChange: o, thumbnailRef: r })
2807
2709
  ] })
2808
2710
  ]
2809
2711
  }
2810
2712
  );
2811
- }, ms = Xe((t, e) => {
2812
- const { children: n, slots: o, icons: r, style: a, className: s, mobileWidth: c, onLoaded: l, cleanupOnLoaded: u } = t, [h, m] = H(null), { setContainer: d, setContentRef: w } = Ie(), { loading: g } = Y();
2713
+ }, cs = Xe((t, e) => {
2714
+ const { children: n, slots: o, icons: r, style: a, className: s, mobileWidth: c, onLoaded: l, cleanupOnLoaded: u } = t, [h, f] = H(null), { setContainer: p, setContentRef: v } = Ie(), { loading: w } = Y();
2813
2715
  return O(() => (l && l(), () => {
2814
2716
  u && u();
2815
- }), [l, u]), /* @__PURE__ */ i("div", { ref: e, className: re(Ce["rp-theme-variables"], Ce["rp-container"]), children: /* @__PURE__ */ i(wr, { mobileWidth: c, children: /* @__PURE__ */ i(mr, { slots: o, children: /* @__PURE__ */ i(fr, { icons: r, children: /* @__PURE__ */ D(
2816
- gr,
2717
+ }), [l, u]), /* @__PURE__ */ i("div", { ref: e, className: re(Ce["rp-theme-variables"], Ce["rp-container"]), children: /* @__PURE__ */ i(fr, { mobileWidth: c, children: /* @__PURE__ */ i(ur, { slots: o, children: /* @__PURE__ */ i(dr, { icons: r, children: /* @__PURE__ */ D(
2718
+ pr,
2817
2719
  {
2818
- getContainerRef: d,
2720
+ getContainerRef: p,
2819
2721
  toolbarRef: h,
2820
2722
  style: a,
2821
2723
  className: s,
2822
2724
  children: [
2823
- /* @__PURE__ */ D(vr, { children: [
2725
+ /* @__PURE__ */ D(hr, { children: [
2824
2726
  /* @__PURE__ */ D("div", { className: Ce["rp-layout"], children: [
2825
- /* @__PURE__ */ i(yi, { ref: m }),
2727
+ /* @__PURE__ */ i(bi, { ref: f }),
2826
2728
  /* @__PURE__ */ D("div", { className: Ce["rp-content"], children: [
2827
- /* @__PURE__ */ i("div", { className: Ce["rp-sidebar"], children: /* @__PURE__ */ i(Oi, {}) }),
2828
- /* @__PURE__ */ i("div", { ref: w, className: Ce["rp-pages"], children: n })
2729
+ /* @__PURE__ */ i("div", { className: Ce["rp-sidebar"], children: /* @__PURE__ */ i(yi, {}) }),
2730
+ /* @__PURE__ */ i("div", { ref: v, className: Ce["rp-pages"], children: n })
2829
2731
  ] })
2830
2732
  ] }),
2831
- /* @__PURE__ */ i(_r, {})
2733
+ /* @__PURE__ */ i(mr, {})
2832
2734
  ] }),
2833
- g ? /* @__PURE__ */ i(
2735
+ w ? /* @__PURE__ */ i(
2834
2736
  "div",
2835
2737
  {
2836
2738
  className: Ce["rp-loader"],
@@ -2863,45 +2765,45 @@ const Pe = {
2863
2765
  ) }) }) }) });
2864
2766
  });
2865
2767
  export {
2866
- fo as A,
2867
- xi as B,
2768
+ lo as A,
2769
+ Ci as B,
2868
2770
  io as C,
2869
- Ao as D,
2870
- Ni as E,
2871
- $n as F,
2872
- Oi as G,
2873
- Ii as L,
2874
- fi as M,
2875
- gi as O,
2876
- ss as P,
2877
- ds as R,
2878
- us as S,
2879
- ls as T,
2880
- Ti as Z,
2881
- cs as a,
2882
- ms as b,
2883
- si as c,
2884
- It as d,
2885
- _n as e,
2886
- pn as f,
2771
+ No as D,
2772
+ Si as E,
2773
+ kn as F,
2774
+ yi as G,
2775
+ wi as L,
2776
+ li as M,
2777
+ ui as O,
2778
+ ts as P,
2779
+ is as R,
2780
+ os as S,
2781
+ rs as T,
2782
+ gi as Z,
2783
+ ns as a,
2784
+ cs as b,
2785
+ zn as c,
2786
+ nt as d,
2787
+ gn as e,
2788
+ un as f,
2887
2789
  to as g,
2888
- hn as h,
2790
+ dn as h,
2889
2791
  no as i,
2890
- mn as j,
2792
+ pn as j,
2891
2793
  ro as k,
2892
- fn as l,
2893
- gn as m,
2794
+ hn as l,
2795
+ mn as m,
2894
2796
  oo as n,
2895
- vn as o,
2797
+ fn as o,
2896
2798
  ao as p,
2897
- yt as q,
2898
- Oo as r,
2899
- Fo as s,
2900
- Ho as t,
2799
+ Pt as q,
2800
+ xo as r,
2801
+ Eo as s,
2802
+ Ao as t,
2901
2803
  se as u,
2902
- ri as v,
2903
- Un as w,
2904
- vi as x,
2905
- Pi as y,
2906
- yi as z
2804
+ Yo as v,
2805
+ Hn as w,
2806
+ di as x,
2807
+ vi as y,
2808
+ bi as z
2907
2809
  };