@pdf-viewer/react 1.4.0-beta.1 → 1.4.0-beta.3

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 (44) hide show
  1. package/dist/{RPDefaultLayout-838ad8e8.js → RPDefaultLayout-e42e8172.js} +561 -561
  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 +1 -1
  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/TextHighlightLayer.js +1 -1
  26. package/dist/components/page/TextLayer.js +1 -1
  27. package/dist/components/ui/LoadingIndicator.js +1 -1
  28. package/dist/contexts/LoaderContext.js +16 -20
  29. package/dist/contexts/PaginationContext.js +1 -1
  30. package/dist/contexts/PrintContext.js +1 -1
  31. package/dist/contexts/SearchContext.js +1 -1
  32. package/dist/contexts/ThumbnailsContext.js +1 -1
  33. package/dist/main.js +1 -1
  34. package/dist/types/contexts/LoaderContext.d.ts +5 -2
  35. package/dist/types/utils/types.d.ts +2 -1
  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/usePrint.js +1 -1
  40. package/dist/utils/hooks/useScrollToPage.js +1 -1
  41. package/dist/utils/hooks/useSearch.js +1 -1
  42. package/dist/utils/hooks/useThumbnail.js +1 -1
  43. package/dist/utils/hooks/useVirtualReactWindow.js +1 -1
  44. package/package.json +1 -1
@@ -1,78 +1,78 @@
1
1
  import { jsx as i, Fragment as Ee, jsxs as z } from "react/jsx-runtime";
2
2
  import * as V from "react";
3
- import { useRef as W, useEffect as O, useCallback as x, useState as $, createContext as Ze, useContext as je, useMemo as k, forwardRef as Be, useImperativeHandle as ar, createElement as Me, PureComponent as rn, Component as nn, memo as on } from "react";
3
+ import { useRef as W, useEffect as O, useCallback as x, useState as $, createContext as Ze, useContext as je, useMemo as k, forwardRef as Be, useImperativeHandle as sn, createElement as Me, PureComponent as rr, Component as or, memo as ir } from "react";
4
4
  import { ChevronUpIcon as ke } from "./components/icons/ChevronUpIcon.js";
5
5
  import { UIButton as te } from "./components/ui/Button.js";
6
- import { UIInput as sr } from "./components/ui/Input.js";
6
+ import { UIInput as cn } from "./components/ui/Input.js";
7
7
  import { useScrollModeContext as Oe } from "./contexts/ScrollModeContext.js";
8
8
  import { useDocumentContext as X } from "./contexts/RPDocumentContext.js";
9
9
  import "./contexts/DarkModeContext.js";
10
- import { ViewMode as Ve, ScrollMode as K, AnnotationSubType as At, SelectionMode as an, ZoomLevel as ot } from "./utils/types.js";
10
+ import { ViewMode as Ve, ScrollMode as K, AnnotationSubType as At, SelectionMode as ar, ZoomLevel as ot } from "./utils/types.js";
11
11
  import { useRotationContext as Ke } from "./contexts/RotationContext.js";
12
- import { useLayerContext as sn } from "./contexts/LayerContext.js";
12
+ import { useLayerContext as sr } from "./contexts/LayerContext.js";
13
13
  import { useZoomContext as Xe } from "./contexts/ZoomContext.js";
14
14
  import { useViewModeContext as Je } from "./contexts/ViewModeContext.js";
15
15
  import { useVirtualScrollContext as Ye } from "./contexts/VirtualScrollContext.js";
16
- import { useVirtualGridContext as cr } from "./contexts/VirtualGridContext.js";
16
+ import { useVirtualGridContext as ln } from "./contexts/VirtualGridContext.js";
17
17
  import { useScrollStateContext as Qe } from "./contexts/ScrollStateContext.js";
18
- import { useSelectionModeContext as cn } from "./contexts/SelectionModeContext.js";
19
- import { useInitialStateContext as ln } from "./contexts/InitialStateContext.js";
20
- import { useFullScreenContext as un } from "./contexts/FullScreenContext.js";
18
+ import { useSelectionModeContext as cr } from "./contexts/SelectionModeContext.js";
19
+ import { useInitialStateContext as lr } from "./contexts/InitialStateContext.js";
20
+ import { useFullScreenContext as ur } from "./contexts/FullScreenContext.js";
21
21
  import "./contexts/FileInputContext.js";
22
22
  import "./contexts/DropFileZoneContext.js";
23
23
  import { renderPage as gt } from "./utils/renderPage.js";
24
- import { highlightMatches as lr, findMatches as dn, resetDivs as ur, highlightMultipleColorMatches as pn } from "./utils/highlight.js";
24
+ import { highlightMatches as un, findMatches as dr, resetDivs as dn, highlightMultipleColorMatches as pr } from "./utils/highlight.js";
25
25
  import * as Tt from "pdfjs-dist";
26
- import { PixelsPerInch as hn, AnnotationMode as mn, RenderingCancelledException as fn, AnnotationLayer as gn } from "pdfjs-dist";
26
+ import { PixelsPerInch as hr, AnnotationMode as mr, RenderingCancelledException as fr, AnnotationLayer as gr } from "pdfjs-dist";
27
27
  import { useLayoutContainer as ye } from "./contexts/LayoutContainerContext.js";
28
28
  import { useDimensionPagesContext as Pt } from "./contexts/DimensionPagesContext.js";
29
29
  import { useLocalizationContext as me } from "./contexts/LocalizationContext.js";
30
- import { useHighlightContext as vn } from "./contexts/HighlightContext.js";
31
- import { useLoaderContext as dr } from "./contexts/LoaderContext.js";
30
+ import { useHighlightContext as vr } from "./contexts/HighlightContext.js";
31
+ import { useLoaderContext as pn } from "./contexts/LoaderContext.js";
32
32
  import "./components/RPConfig.js";
33
- import { ThumbnailIcon as _n } from "./components/icons/Thumbnail.js";
33
+ import { ThumbnailIcon as _r } from "./components/icons/Thumbnail.js";
34
34
  import { c as oe } from "./clsx-0c6e471a.js";
35
35
  import { LoaderIcon as St } from "./components/icons/LoaderIcon.js";
36
- import { useInfiniteScroll as wn } from "./utils/hooks/useInfiniteScroll.js";
37
- import { RPSplitter as bn } from "./components/layout/sidebar/RPSplitter.js";
38
- import { useToolbarComponentContext as _e, ToolbarComponentProvider as Cn } from "./contexts/ToolbarComponentContext.js";
39
- import { useIconContext as fe, IconProvider as Tn } from "./contexts/IconContext.js";
36
+ import { useInfiniteScroll as wr } from "./utils/hooks/useInfiniteScroll.js";
37
+ import { RPSplitter as br } from "./components/layout/sidebar/RPSplitter.js";
38
+ import { useToolbarComponentContext as _e, ToolbarComponentProvider as Cr } from "./contexts/ToolbarComponentContext.js";
39
+ import { useIconContext as fe, IconProvider as Tr } from "./contexts/IconContext.js";
40
40
  import q from "./components/ui/RPTooltip.js";
41
- import { c as Pe, C as Pn } from "./Container-8fea0875.js";
42
- import { WrapperLayout as Sn } from "./components/layout/WrapperLayout.js";
43
- import { RPDropFileZone as In } from "./components/RPDropFileZone.js";
44
- import { useViewportContext as xe, ViewportProvider as yn } from "./contexts/ViewportContext.js";
41
+ import { c as Pe, C as Pr } from "./Container-8fea0875.js";
42
+ import { WrapperLayout as Sr } from "./components/layout/WrapperLayout.js";
43
+ import { RPDropFileZone as Ir } from "./components/RPDropFileZone.js";
44
+ import { useViewportContext as xe, ViewportProvider as yr } from "./contexts/ViewportContext.js";
45
45
  import "./contexts/ThemeContext.js";
46
- import { SimpleLinkService as xn } from "./utils/link_service.js";
47
- import { annotationsEvents as Rn, annotationEventsHandler as Ln, handleClick as Ft, handleAnnotationWidget as Nn, handleAnnotationLink as En, bindLayerEvents as On, unbindLayerEvents as kt } from "./utils/annotations.js";
48
- import { useWatermark as Dn } from "./utils/hooks/useWatermark.js";
49
- import { useMousePressed as zn } from "./utils/hooks/useMousePressed.js";
50
- import { useGrabScroll as An } from "./utils/hooks/useGrabScroll.js";
51
- import { usePinch as Fn } from "./utils/hooks/usePinch.js";
46
+ import { SimpleLinkService as xr } from "./utils/link_service.js";
47
+ import { annotationsEvents as Rr, annotationEventsHandler as Lr, handleClick as Ft, handleAnnotationWidget as Nr, handleAnnotationLink as Er, bindLayerEvents as Or, unbindLayerEvents as kt } from "./utils/annotations.js";
48
+ import { useWatermark as Dr } from "./utils/hooks/useWatermark.js";
49
+ import { useMousePressed as zr } from "./utils/hooks/useMousePressed.js";
50
+ import { useGrabScroll as Ar } from "./utils/hooks/useGrabScroll.js";
51
+ import { usePinch as Fr } from "./utils/hooks/usePinch.js";
52
52
  import { useDebounce as vt } from "./utils/hooks/useDebounce.js";
53
53
  import { getThumbnailViewport as Wt } from "./utils/getThumbnailViewport.js";
54
54
  import { smoothScrollTo as Mt } from "./utils/smoothScrollTo.js";
55
- import { appConsole as kn } from "./utils/appConsole.js";
56
- import { FileUploadTool as pr } from "./components/layout/toolbar/FileUploadTool.js";
57
- import { DarkModeTool as Wn } from "./components/layout/toolbar/DarkModeTool.js";
58
- import { ThreeDotIcon as Mn } from "./components/icons/ThreeDotIcon.js";
59
- import { UIDropDown as hr } from "./components/ui/DropDown.js";
60
- import { c as Hn, u as It, P as We, b as Fe, d as yt, i as $n, k as Gn, a as Vn } from "./index-48ca3f30.js";
61
- import { D as Un, d as it } from "./floating-ui.react-dom-88a86594.js";
62
- import { a as qn, h as Zn, u as jn, F as Bn, b as Kn, G as Ue } from "./index-4ba3ab9a.js";
63
- import { CloseIcon as mr } from "./components/icons/CloseIcon.js";
55
+ import { appConsole as kr } from "./utils/appConsole.js";
56
+ import { FileUploadTool as hn } from "./components/layout/toolbar/FileUploadTool.js";
57
+ import { DarkModeTool as Wr } from "./components/layout/toolbar/DarkModeTool.js";
58
+ import { ThreeDotIcon as Mr } from "./components/icons/ThreeDotIcon.js";
59
+ import { UIDropDown as mn } from "./components/ui/DropDown.js";
60
+ import { c as Hr, u as It, P as We, b as Fe, d as yt, i as $r, k as Gr, a as Vr } from "./index-48ca3f30.js";
61
+ import { D as Ur, d as it } from "./floating-ui.react-dom-88a86594.js";
62
+ import { a as qr, h as Zr, u as jr, F as Br, b as Kr, G as Ue } from "./index-4ba3ab9a.js";
63
+ import { CloseIcon as fn } from "./components/icons/CloseIcon.js";
64
64
  import { dateFormatter as Ht } from "./utils/dateFormatter.js";
65
- import { PropertyItem as Xn } from "./components/layout/toolbar/PropertyItem.js";
66
- import { useOtherToolContext as Jn, OtherToolProvider as Yn } from "./contexts/OtherToolContext.js";
67
- import { DocumentProperties as Qn } from "./components/layout/toolbar/DocumentProperties.js";
65
+ import { PropertyItem as Xr } from "./components/layout/toolbar/PropertyItem.js";
66
+ import { useOtherToolContext as Jr, OtherToolProvider as Yr } from "./contexts/OtherToolContext.js";
67
+ import { DocumentProperties as Qr } from "./components/layout/toolbar/DocumentProperties.js";
68
68
  import { RotateTool as eo } from "./components/layout/toolbar/RotateTool.js";
69
69
  import { ScrollModeTool as to } from "./components/layout/toolbar/ScrollModeTool.js";
70
70
  import { MenuSeparator as xt } from "./components/layout/toolbar/MenuSeparator.js";
71
- import { FileDownloadDefaultIcon as ro } from "./components/icons/FileDownloadDefaultIcon.js";
71
+ import { FileDownloadDefaultIcon as no } from "./components/icons/FileDownloadDefaultIcon.js";
72
72
  import { MenuItem as we } from "./components/layout/toolbar/MenuItem.js";
73
- import { PrintDefaultTool as no } from "./components/icons/PrintDefaultIcon.js";
74
- import { FullScreenTool as fr } from "./components/layout/toolbar/FullScreenTool.js";
75
- import { GoToDownIcon as gr } from "./components/icons/GoToDownIcon.js";
73
+ import { PrintDefaultTool as ro } from "./components/icons/PrintDefaultIcon.js";
74
+ import { FullScreenTool as gn } from "./components/layout/toolbar/FullScreenTool.js";
75
+ import { GoToDownIcon as vn } from "./components/icons/GoToDownIcon.js";
76
76
  import { SelectionModeTool as oo } from "./components/layout/toolbar/SelectionModeTool.js";
77
77
  import { ZoomInIcon as io } from "./components/icons/ZoomInIcon.js";
78
78
  import { ZoomOutIcon as ao } from "./components/icons/ZoomOutIcon.js";
@@ -83,31 +83,31 @@ import { UICheckbox as Gt } from "./components/ui/Checkbox.js";
83
83
  import { ClearIcon as lo } from "./components/icons/ClearIcon.js";
84
84
  import { InfoIcon as Vt } from "./components/icons/InfoIcon.js";
85
85
  import { UIPopOver as uo } from "./components/ui/Popover.js";
86
- import './assets/RPDefaultLayout.css';const vr = () => {
87
- const { viewMode: t } = Je(), { scrollMode: e } = Oe(), { virtualScrollRef: r, virtualScrollableElementRef: o, pageScrollElementRef: n } = Ye(), { setFocusedPage: a } = ce(), s = W(), { columnCount: c } = cr(), { widths: u, heights: l } = Pt(), d = W(e), f = W(t), h = W(c);
86
+ import './assets/RPDefaultLayout.css';const _n = () => {
87
+ const { viewMode: t } = Je(), { scrollMode: e } = Oe(), { virtualScrollRef: n, virtualScrollableElementRef: o, pageScrollElementRef: r } = Ye(), { setFocusedPage: a } = ce(), s = W(), { columnCount: c } = ln(), { widths: u, heights: l } = Pt(), d = W(e), f = W(t), h = W(c);
88
88
  O(() => {
89
- r != null && r.scrollToItem && (s.current = r);
90
- }, [r]), O(() => {
89
+ n != null && n.scrollToItem && (s.current = n);
90
+ }, [n]), O(() => {
91
91
  d.current = e, f.current = t;
92
92
  }, [e, t]);
93
93
  const g = x(
94
94
  (b) => {
95
- if (!n)
95
+ if (!r)
96
96
  return;
97
97
  const v = Math.ceil(b / 2) * 2 - 1;
98
98
  return b === v + 1 ? new Promise((w) => {
99
- n.scrollTo({
99
+ r.scrollTo({
100
100
  left: u[v],
101
101
  top: 0
102
102
  }), w();
103
103
  }) : new Promise((w) => {
104
- n.scrollTo({
104
+ r.scrollTo({
105
105
  left: 0,
106
106
  top: 0
107
107
  }), w();
108
108
  });
109
109
  },
110
- [n, u, Mt]
110
+ [r, u, Mt]
111
111
  );
112
112
  return O(() => {
113
113
  d.current = e, f.current = t;
@@ -166,12 +166,12 @@ import './assets/RPDefaultLayout.css';const vr = () => {
166
166
  ]
167
167
  ) };
168
168
  }, po = (t = 1) => {
169
- const [e, r] = $(t), [o, n] = $(0), { scrollToPage: a } = vr(), s = W(1), { isScrolling: c } = Qe(), { viewMode: u } = Je(), { scrollMode: l } = Oe(), d = vt(e, 100), f = x(
169
+ const [e, n] = $(t), [o, r] = $(0), { scrollToPage: a } = _n(), s = W(1), { isScrolling: c } = Qe(), { viewMode: u } = Je(), { scrollMode: l } = Oe(), d = vt(e, 100), f = x(
170
170
  (v) => {
171
171
  if (!/^[0-9]*$/g.test(v.toString()) || !v)
172
172
  return { success: !1, currentPage: s.current };
173
173
  const m = +v;
174
- return m < 0 || m > o ? { success: !1, currentPage: s.current } : (r(m), s.current = m, { success: !0, currentPage: +v });
174
+ return m < 0 || m > o ? { success: !1, currentPage: s.current } : (n(m), s.current = m, { success: !0, currentPage: +v });
175
175
  },
176
176
  [o]
177
177
  ), h = x(f, [f]), g = x(
@@ -193,12 +193,12 @@ import './assets/RPDefaultLayout.css';const vr = () => {
193
193
  focusedPage: d,
194
194
  totalPages: o,
195
195
  setFocusedPage: h,
196
- setTotalPages: n,
196
+ setTotalPages: r,
197
197
  nextPage: b,
198
198
  prevPage: _,
199
199
  goToPage: g
200
200
  };
201
- }, _r = Ze({
201
+ }, wn = Ze({
202
202
  focusedPage: 0,
203
203
  setFocusedPage: (t) => {
204
204
  },
@@ -211,19 +211,19 @@ import './assets/RPDefaultLayout.css';const vr = () => {
211
211
  nextPage: () => {
212
212
  }
213
213
  }), ce = () => {
214
- const t = je(_r);
215
- return typeof (t == null ? void 0 : t.focusedPage) > "u" && kn.error("Please use this hooks inside children component of RPProvider"), t;
214
+ const t = je(wn);
215
+ return typeof (t == null ? void 0 : t.focusedPage) > "u" && kr.error("Please use this hooks inside children component of RPProvider"), t;
216
216
  }, ms = ({ children: t }) => {
217
- const { pdf: e } = X(), { focusedPage: r, totalPages: o, setFocusedPage: n, setTotalPages: a, goToPage: s, nextPage: c, prevPage: u } = po();
217
+ const { pdf: e } = X(), { focusedPage: n, totalPages: o, setFocusedPage: r, setTotalPages: a, goToPage: s, nextPage: c, prevPage: u } = po();
218
218
  return O(() => {
219
219
  e != null && e.numPages && a(e.numPages);
220
220
  }, [e, a]), /* @__PURE__ */ i(
221
- _r.Provider,
221
+ wn.Provider,
222
222
  {
223
223
  value: {
224
- focusedPage: r,
224
+ focusedPage: n,
225
225
  totalPages: o,
226
- setFocusedPage: n,
226
+ setFocusedPage: r,
227
227
  setTotalPages: a,
228
228
  nextPage: c,
229
229
  prevPage: u,
@@ -234,11 +234,11 @@ import './assets/RPDefaultLayout.css';const vr = () => {
234
234
  );
235
235
  };
236
236
  const ho = () => {
237
- const { pdf: t, pages: e } = X(), [r, o] = $({
237
+ const { pdf: t, pages: e } = X(), [n, o] = $({
238
238
  loadedPages: 0,
239
239
  totalPages: 0,
240
240
  percentage: 0
241
- }), [n, a] = $(!1), [s, c] = $(!1), [u, l] = $(null), d = W(!1);
241
+ }), [r, a] = $(!1), [s, c] = $(!1), [u, l] = $(null), d = W(!1);
242
242
  O(() => {
243
243
  d.current;
244
244
  }, [d]);
@@ -267,7 +267,7 @@ const ho = () => {
267
267
  h();
268
268
  return;
269
269
  }
270
- const R = C / hn.PDF;
270
+ const R = C / hr.PDF;
271
271
  T.width = Math.floor(P.width * R), T.height = Math.floor(P.height * R);
272
272
  const D = T.getContext("2d");
273
273
  D.save(), D.fillStyle = "rgb(255, 255, 255)", D.fillRect(0, 0, T.width, T.height), D.restore();
@@ -284,14 +284,14 @@ const ho = () => {
284
284
  transform: [R, 0, 0, R, 0, 0],
285
285
  viewport: L.getViewport({ scale: 1, rotation: P.rotation }),
286
286
  intent: "print",
287
- annotationMode: mn.ENABLE_STORAGE,
287
+ annotationMode: mr.ENABLE_STORAGE,
288
288
  optionalContentConfigPromise: S,
289
289
  printAnnotationStorage: F
290
290
  };
291
291
  try {
292
292
  return L.render(E).promise;
293
293
  } catch (y) {
294
- throw y instanceof fn || console.error(y), y;
294
+ throw y instanceof fr || console.error(y), y;
295
295
  }
296
296
  }, b = x(() => {
297
297
  const T = window.print;
@@ -388,12 +388,12 @@ const ho = () => {
388
388
  }, [f, h]), {
389
389
  print: m,
390
390
  cancel: g,
391
- progress: r,
392
- isComplete: n,
391
+ progress: n,
392
+ isComplete: r,
393
393
  isError: s,
394
394
  error: u
395
395
  };
396
- }, wr = Ze({
396
+ }, bn = Ze({
397
397
  print: () => {
398
398
  },
399
399
  cancel: () => {
@@ -411,13 +411,13 @@ const ho = () => {
411
411
  }
412
412
  }
413
413
  }), fs = ({ children: t }) => {
414
- const [e, r] = $(null), [o, n] = $(null), { print: a, cancel: s, progress: c, isComplete: u, isError: l, error: d } = ho(), f = x((v) => {
415
- v && typeof v == "function" && n(() => v);
414
+ const [e, n] = $(null), [o, r] = $(null), { print: a, cancel: s, progress: c, isComplete: u, isError: l, error: d } = ho(), f = x((v) => {
415
+ v && typeof v == "function" && r(() => v);
416
416
  }, []), h = (v) => {
417
417
  d && v(d);
418
418
  }, g = x(
419
419
  (v) => {
420
- r(() => v);
420
+ n(() => v);
421
421
  },
422
422
  [c, e]
423
423
  );
@@ -431,7 +431,7 @@ const ho = () => {
431
431
  c && e && e(c);
432
432
  }, [c, e]);
433
433
  const _ = () => {
434
- o && (o(), n(null));
434
+ o && (o(), r(null));
435
435
  }, b = {
436
436
  print: a,
437
437
  cancel: s,
@@ -440,18 +440,18 @@ const ho = () => {
440
440
  setOnError: h,
441
441
  progress: c
442
442
  };
443
- return /* @__PURE__ */ i(wr.Provider, { value: b, children: t });
443
+ return /* @__PURE__ */ i(bn.Provider, { value: b, children: t });
444
444
  }, et = () => {
445
- const t = je(wr);
445
+ const t = je(bn);
446
446
  if (!t)
447
447
  throw new Error("usePrintContext must be used within a PrintProvider");
448
448
  return t;
449
449
  }, mo = () => {
450
- const [t, e] = $({}), { pages: r } = X(), { rotate: o } = Ke(), n = k(() => Object.keys(t).length, [t]), a = x(
450
+ const [t, e] = $({}), { pages: n } = X(), { rotate: o } = Ke(), r = k(() => Object.keys(t).length, [t]), a = x(
451
451
  (c) => {
452
- if (!r.size)
452
+ if (!n.size)
453
453
  return;
454
- const u = Array.from(r.values()).slice(0, c).map((f) => {
454
+ const u = Array.from(n.values()).slice(0, c).map((f) => {
455
455
  const { thumbnailViewport: h, scale: g } = Wt(f.page, o);
456
456
  return {
457
457
  scale: g,
@@ -484,16 +484,16 @@ const ho = () => {
484
484
  e((g) => ({ ...g, ...h }));
485
485
  });
486
486
  },
487
- [r, o]
487
+ [n, o]
488
488
  );
489
489
  O(() => {
490
490
  a(10);
491
491
  }, [a]);
492
492
  const s = x(
493
493
  (c) => {
494
- if (!r)
494
+ if (!n)
495
495
  return;
496
- const u = r.get(c);
496
+ const u = n.get(c);
497
497
  if (!u)
498
498
  return;
499
499
  e((d) => ({
@@ -519,10 +519,10 @@ const ho = () => {
519
519
  e((f) => ({ ...f, [c]: d }));
520
520
  });
521
521
  },
522
- [r, o]
522
+ [n, o]
523
523
  );
524
- return { thumbnailPages: t, addPage: s, addToPage: a, thumbnailLength: n };
525
- }, br = Ze({
524
+ return { thumbnailPages: t, addPage: s, addToPage: a, thumbnailLength: r };
525
+ }, Cn = Ze({
526
526
  thumbnailPages: {},
527
527
  addPage: (t) => {
528
528
  },
@@ -532,20 +532,20 @@ const ho = () => {
532
532
  setActive: (t) => {
533
533
  },
534
534
  active: !1
535
- }), Cr = () => je(br), gs = ({
535
+ }), Tn = () => je(Cn), gs = ({
536
536
  children: t,
537
537
  initialThumbnailsVisible: e
538
538
  }) => {
539
- const { thumbnailPages: r, addPage: o, addToPage: n, thumbnailLength: a } = mo(), [s, c] = $(e);
539
+ const { thumbnailPages: n, addPage: o, addToPage: r, thumbnailLength: a } = mo(), [s, c] = $(e);
540
540
  return /* @__PURE__ */ i(
541
- br.Provider,
541
+ Cn.Provider,
542
542
  {
543
- value: { thumbnailPages: r, addPage: o, addToPage: n, thumbnailLength: a, active: s, setActive: c },
543
+ value: { thumbnailPages: n, addPage: o, addToPage: r, thumbnailLength: a, active: s, setActive: c },
544
544
  children: t
545
545
  }
546
546
  );
547
547
  }, fo = (t = {}, e = "") => {
548
- const [r, o] = $(e), [n, a] = $(!1), { pdf: s, pages: c } = X(), u = Pt(), l = W(!r), { currentZoom: d } = Xe(), [f, h] = $([]), { setFocusedPage: g } = ce(), [_, b] = $(0), { pageScrollElementRef: v, virtualScrollableElementRef: w } = Ye(), { scrollMode: m } = Oe(), { pagesRef: T } = ye(), [I, p] = $(null), P = W({}), C = k(() => _ === 0 ? null : f[_ - 1], [_, f]), S = k(() => f.length, [f]);
548
+ const [n, o] = $(e), [r, a] = $(!1), { pdf: s, pages: c } = X(), u = Pt(), l = W(!n), { currentZoom: d } = Xe(), [f, h] = $([]), { setFocusedPage: g } = ce(), [_, b] = $(0), { pageScrollElementRef: v, virtualScrollableElementRef: w } = Ye(), { scrollMode: m } = Oe(), { pagesRef: T } = ye(), [I, p] = $(null), P = W({}), C = k(() => _ === 0 ? null : f[_ - 1], [_, f]), S = k(() => f.length, [f]);
549
549
  O(() => {
550
550
  if (!C || !c)
551
551
  return;
@@ -564,8 +564,8 @@ const ho = () => {
564
564
  textContentSource: Z,
565
565
  container: document.createElement("div")
566
566
  }), U.render().then(() => {
567
- const j = U.textDivs[C.start.idx], [J] = lr([C], Z, U.textDivs), ae = u.widths[C.page - 1], re = u.heights[C.page - 1], B = document.createElement("div"), Y = document.createElement("div");
568
- j.style.position = "absolute", j.style.color = "transparent", Y.style.position = "absolute", Y.style.top = "0", Y.style.setProperty("--scale-factor", `${d}`), B.style.position = "relative", B.style.width = `${ae}px`, B.style.height = `${re}px`, B.style.zIndex = "-1", B.appendChild(j), Y.appendChild(B), T.prepend(Y);
567
+ const j = U.textDivs[C.start.idx], [J] = un([C], Z, U.textDivs), ae = u.widths[C.page - 1], ne = u.heights[C.page - 1], B = document.createElement("div"), Y = document.createElement("div");
568
+ j.style.position = "absolute", j.style.color = "transparent", Y.style.position = "absolute", Y.style.top = "0", Y.style.setProperty("--scale-factor", `${d}`), B.style.position = "relative", B.style.width = `${ae}px`, B.style.height = `${ne}px`, B.style.zIndex = "-1", B.appendChild(j), Y.appendChild(B), T.prepend(Y);
569
569
  const ue = J.element.getBoundingClientRect(), be = Y.getBoundingClientRect(), De = ue.top - be.top, de = ue.left - be.left, pe = N + De - E + ue.height / 2, ge = G + de - y + ue.width / 2, Ce = {
570
570
  left: Math.max(ge, 0),
571
571
  top: Math.max(pe, 0)
@@ -601,15 +601,15 @@ const ho = () => {
601
601
  return E;
602
602
  }, []);
603
603
  return O(() => {
604
- if (!r) {
604
+ if (!n) {
605
605
  l.current = !0, h([]), b(0);
606
606
  return;
607
607
  }
608
608
  l.current = !1, a(!0), h([]), b(0), D(s).then((L) => {
609
609
  P.current = L;
610
610
  const E = Object.keys(L).reduce((y, N) => {
611
- const G = dn(
612
- [r],
611
+ const G = dr(
612
+ [n],
613
613
  L[N],
614
614
  Number(N) - 1,
615
615
  t
@@ -620,10 +620,10 @@ const ho = () => {
620
620
  }).catch(() => {
621
621
  h([]), b(0);
622
622
  }).finally(() => a(!1));
623
- }, [r, D, s, t]), {
624
- search: r,
623
+ }, [n, D, s, t]), {
624
+ search: n,
625
625
  setSearch: o,
626
- loading: n,
626
+ loading: r,
627
627
  matches: f,
628
628
  totalMatches: S,
629
629
  currentMatchPosition: _,
@@ -633,7 +633,7 @@ const ho = () => {
633
633
  currentMatchElement: I,
634
634
  setCurrentMatchElement: p
635
635
  };
636
- }, Tr = Ze({
636
+ }, Pn = Ze({
637
637
  search: "",
638
638
  setSearch: (t) => {
639
639
  },
@@ -655,8 +655,8 @@ const ho = () => {
655
655
  children: t,
656
656
  initialSearch: e
657
657
  }) => {
658
- const [r, o] = $({}), {
659
- loading: n,
658
+ const [n, o] = $({}), {
659
+ loading: r,
660
660
  setSearch: a,
661
661
  totalMatches: s,
662
662
  currentMatchPosition: c,
@@ -667,14 +667,14 @@ const ho = () => {
667
667
  prevMatch: h,
668
668
  currentMatchElement: g,
669
669
  setCurrentMatchElement: _
670
- } = fo(r, e);
670
+ } = fo(n, e);
671
671
  return /* @__PURE__ */ i(
672
- Tr.Provider,
672
+ Pn.Provider,
673
673
  {
674
674
  value: {
675
- searchOptions: r,
675
+ searchOptions: n,
676
676
  setSearchOptions: o,
677
- loading: n,
677
+ loading: r,
678
678
  setSearch: a,
679
679
  totalMatches: s,
680
680
  currentMatchPosition: c,
@@ -689,7 +689,7 @@ const ho = () => {
689
689
  children: t
690
690
  }
691
691
  );
692
- }, Pr = () => je(Tr), he = {
692
+ }, Sn = () => je(Pn), he = {
693
693
  "rp-pages": "_rp-pages_1776r_1",
694
694
  "rp-pages-horizontal-scroll": "_rp-pages-horizontal-scroll_1776r_7",
695
695
  "rp-pages-container": "_rp-pages-container_1776r_11",
@@ -703,13 +703,13 @@ const ho = () => {
703
703
  "rp-page": "_rp-page_h7a2q_1",
704
704
  "rp-loader-wrapper": "_rp-loader-wrapper_h7a2q_14"
705
705
  }, go = (t) => {
706
- const { pageNumber: e, onLoaded: r, onLoading: o } = t, n = W(null), { pages: a } = X(), { rotate: s } = Ke(), c = W(), { currentZoom: u } = Xe();
706
+ const { pageNumber: e, onLoaded: n, onLoading: o } = t, r = W(null), { pages: a } = X(), { rotate: s } = Ke(), c = W(), { currentZoom: u } = Xe();
707
707
  return O(() => {
708
708
  if (!a || u === 0)
709
709
  return;
710
710
  const l = a.get(e);
711
- if (n.current && l) {
712
- const d = n.current;
711
+ if (r.current && l) {
712
+ const d = r.current;
713
713
  d.hidden = !0;
714
714
  const f = c.current;
715
715
  f && f.cancel(), o && o(), c.current = gt(l.page, d, {
@@ -720,23 +720,23 @@ const ho = () => {
720
720
  d.hidden = !1;
721
721
  }).catch((h) => {
722
722
  }).finally(() => {
723
- r && r();
723
+ n && n();
724
724
  });
725
725
  }
726
- }, [a, e, s, u, o, r]), /* @__PURE__ */ i("canvas", { "data-rp": `page-${e}-canvas`, ref: n });
726
+ }, [a, e, s, u, o, n]), /* @__PURE__ */ i("canvas", { "data-rp": `page-${e}-canvas`, ref: r });
727
727
  }, st = {
728
728
  "rp-text-layer": "_rp-text-layer_kwwfn_1",
729
729
  "rp-text-layer-text": "_rp-text-layer-text_kwwfn_9"
730
730
  }, vo = (t) => {
731
- const { pageNumber: e } = t, { pages: r } = X(), o = W(null), { matches: n, currentMatch: a, setCurrentMatchElement: s } = Pr(), [c, u] = $(
731
+ const { pageNumber: e } = t, { pages: n } = X(), o = W(null), { matches: r, currentMatch: a, setCurrentMatchElement: s } = Sn(), [c, u] = $(
732
732
  []
733
- ), l = W(), d = W(), f = W(), h = k(() => n.filter((_) => _.pageIndex === e - 1), [n, e]), g = x(
733
+ ), l = W(), d = W(), f = W(), h = k(() => r.filter((_) => _.pageIndex === e - 1), [r, e]), g = x(
734
734
  (_, b, v = !1) => {
735
- if (v && ur(_, b), !h.length) {
735
+ if (v && dn(_, b), !h.length) {
736
736
  f.current = void 0, u([]);
737
737
  return;
738
738
  }
739
- const w = lr(h, _, b);
739
+ const w = un(h, _, b);
740
740
  u(w);
741
741
  },
742
742
  [h]
@@ -753,7 +753,7 @@ const ho = () => {
753
753
  const b = c.find((w) => w.index === _);
754
754
  b && (f.current = b.element, s(b.element), b.element.classList.add("selected"));
755
755
  }, [a, c, h]), O(() => {
756
- const _ = r.get(e);
756
+ const _ = n.get(e);
757
757
  if (!(!_ || !o.current))
758
758
  return l.current && l.current.cancel(), _.page.getTextContent().then((b) => {
759
759
  const v = _.page.getViewport({ scale: 1 });
@@ -774,7 +774,7 @@ const ho = () => {
774
774
  var b;
775
775
  (b = l.current) == null || b.cancel();
776
776
  };
777
- }, [r, e]), O(() => {
777
+ }, [n, e]), O(() => {
778
778
  var v;
779
779
  [].slice.call(o.current.children).forEach((w) => {
780
780
  w.classList.add(st["rp-text-layer-text"]);
@@ -794,22 +794,22 @@ const ho = () => {
794
794
  };
795
795
  let wo = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
796
796
  const bo = (t) => {
797
- const { pageNumber: e } = t, r = W(null), { pages: o, pdf: n } = X(), a = W(), [s, c] = $(), { setFocusedPage: u, goToPage: l } = ce(), { scrollMode: d } = Oe(), { print: f } = et(), { download: h } = $r(), g = k(() => o.get(e), [o, e]), _ = k(() => g == null ? void 0 : g.page.getViewport(), [g]);
797
+ const { pageNumber: e } = t, n = W(null), { pages: o, pdf: r } = X(), a = W(), [s, c] = $(), { setFocusedPage: u, goToPage: l } = ce(), { scrollMode: d } = Oe(), { print: f } = et(), { download: h } = Gn(), g = k(() => o.get(e), [o, e]), _ = k(() => g == null ? void 0 : g.page.getViewport(), [g]);
798
798
  O(() => {
799
799
  a.current && (a.current.div.replaceChildren(), a.current = void 0);
800
- }, [n]), O(() => {
800
+ }, [r]), O(() => {
801
801
  g && g.page.getAnnotations().then((v) => {
802
- a.current = void 0, c(v), r.current && (r.current.innerText = "");
802
+ a.current = void 0, c(v), n.current && (n.current.innerText = "");
803
803
  });
804
804
  }, [g]);
805
805
  const b = x(
806
806
  (v) => {
807
- !s || !n || (Rn(v), Ln(v, n, s).then((w) => {
807
+ !s || !r || (Rr(v), Lr(v, r, s).then((w) => {
808
808
  var m, T;
809
809
  ((m = w == null ? void 0 : w.data) == null ? void 0 : m.action) === "Print" ? f() : ((T = w == null ? void 0 : w.data) == null ? void 0 : T.action) === "SaveAs" && h();
810
- }), d === K.PAGE_SCROLLING ? Ft(v, s, n, (w) => u(w.pageIndex + 1)) : Ft(v, s, n, (w) => l(w.pageIndex + 1)));
810
+ }), d === K.PAGE_SCROLLING ? Ft(v, s, r, (w) => u(w.pageIndex + 1)) : Ft(v, s, r, (w) => l(w.pageIndex + 1)));
811
811
  },
812
- [n, s, l, u, d, f, h]
812
+ [r, s, l, u, d, f, h]
813
813
  );
814
814
  return O(() => {
815
815
  if (!g || !s)
@@ -826,96 +826,96 @@ const bo = (t) => {
826
826
  const { annotationType: p } = I;
827
827
  switch (p) {
828
828
  case At.Link:
829
- En(I);
829
+ Er(I);
830
830
  break;
831
831
  case At.Widget:
832
- Nn(I, v, w);
832
+ Nr(I, v, w);
833
833
  break;
834
834
  }
835
835
  }
836
836
  const m = new AbortController();
837
837
  return (async () => {
838
- a.current && (a.current.div.replaceChildren(), a.current = void 0), r.current && (r.current.innerText = ""), a.current = new gn({
839
- div: r.current,
838
+ a.current && (a.current.div.replaceChildren(), a.current = void 0), n.current && (n.current.innerText = ""), a.current = new gr({
839
+ div: n.current,
840
840
  accessibilityManager: void 0,
841
841
  annotationCanvasMap: void 0,
842
842
  annotationEditorUIManager: void 0,
843
843
  structTreeLayer: null,
844
844
  page: g.page,
845
845
  viewport: v.clone({ dontFlip: !0 })
846
- }), r.current && kt(r.current, b);
847
- const I = await (n == null ? void 0 : n.hasJSActions()), p = await (n == null ? void 0 : n.getFieldObjects());
846
+ }), n.current && kt(n.current, b);
847
+ const I = await (r == null ? void 0 : r.hasJSActions()), p = await (r == null ? void 0 : r.getFieldObjects());
848
848
  if (m.signal.aborted)
849
849
  throw "abort";
850
850
  return a.current.render({
851
851
  annotations: s,
852
- annotationStorage: n == null ? void 0 : n.annotationStorage,
852
+ annotationStorage: r == null ? void 0 : r.annotationStorage,
853
853
  hasJSActions: I,
854
854
  fieldObjects: p,
855
- div: r.current,
855
+ div: n.current,
856
856
  viewport: v.clone({ dontFlip: !0 }),
857
857
  page: g.page,
858
858
  imageResourcesPath: wo,
859
859
  renderForms: !0,
860
- linkService: new xn(),
860
+ linkService: new xr(),
861
861
  downloadManager: null,
862
862
  enableScripting: !1
863
863
  });
864
864
  })().then(() => {
865
- r.current && On(r.current, b);
865
+ n.current && Or(n.current, b);
866
866
  }).catch((I) => {
867
867
  if (I !== "abort")
868
868
  throw I;
869
869
  }), () => {
870
- m.abort("clear"), r.current && kt(r.current, b);
870
+ m.abort("clear"), n.current && kt(n.current, b);
871
871
  };
872
- }, [n, s, b]), /* @__PURE__ */ i(
872
+ }, [r, s, b]), /* @__PURE__ */ i(
873
873
  "div",
874
874
  {
875
875
  "data-rp": `page-${e}-annotationLayer`,
876
876
  style: { width: `${_ == null ? void 0 : _.width}px`, height: `${_ == null ? void 0 : _.height}px` },
877
877
  className: _o["rp-annotation-layer"],
878
- ref: r
878
+ ref: n
879
879
  }
880
880
  );
881
881
  }, ct = {
882
882
  "rp-text-highlight-layer": "_rp-text-highlight-layer_1470i_1",
883
883
  "rp-text-highlight-layer-text": "_rp-text-highlight-layer-text_1470i_9"
884
884
  }, Co = ({ pageNumber: t }) => {
885
- const e = W(null), r = W(), o = W(), { pages: n } = X(), { highlightMatches: a } = vn(), s = k(() => a.filter((l) => l.pageIndex === t - 1), [a]), c = x(
885
+ const e = W(null), n = W(), o = W(), { pages: r } = X(), { highlightMatches: a } = vr(), s = k(() => a.filter((l) => l.pageIndex === t - 1), [a]), c = x(
886
886
  (u, l, d = !1) => {
887
- d && ur(u, l), pn(s, u, l);
887
+ d && dn(u, l), pr(s, u, l);
888
888
  },
889
- [s, n, t]
889
+ [s, r, t]
890
890
  );
891
891
  return O(() => {
892
- const u = n.get(t);
892
+ const u = r.get(t);
893
893
  if (!(!u || !e.current))
894
- return r.current && r.current.cancel(), u.page.getTextContent().then((l) => {
894
+ return n.current && n.current.cancel(), u.page.getTextContent().then((l) => {
895
895
  const d = u.page.getViewport({ scale: 1 });
896
- return r.current = new Tt.TextLayer({
896
+ return n.current = new Tt.TextLayer({
897
897
  viewport: d,
898
898
  textContentSource: l,
899
899
  container: e.current
900
- }), o.current = l, e.current && (e.current.innerText = ""), r.current.render();
900
+ }), o.current = l, e.current && (e.current.innerText = ""), n.current.render();
901
901
  }).then(() => {
902
902
  var f;
903
903
  [].slice.call(e.current.children).forEach((h) => {
904
904
  h.classList.add(ct["rp-text-highlight-layer-text"]);
905
905
  });
906
- const d = (f = r.current) == null ? void 0 : f.textDivs;
906
+ const d = (f = n.current) == null ? void 0 : f.textDivs;
907
907
  d && o.current && c(o.current, d);
908
908
  }).catch(() => {
909
909
  }), () => {
910
910
  var l;
911
- (l = r.current) == null || l.cancel();
911
+ (l = n.current) == null || l.cancel();
912
912
  };
913
- }, [n, t]), O(() => {
913
+ }, [r, t]), O(() => {
914
914
  var d;
915
915
  [].slice.call(e.current.children).forEach((f) => {
916
916
  f.classList.add(ct["rp-text-highlight-layer-text"]);
917
917
  });
918
- const l = (d = r.current) == null ? void 0 : d.textDivs;
918
+ const l = (d = n.current) == null ? void 0 : d.textDivs;
919
919
  l && o.current && c(o.current, l, !0);
920
920
  }, [c]), /* @__PURE__ */ i(Ee, { children: /* @__PURE__ */ i(
921
921
  "div",
@@ -926,16 +926,16 @@ const bo = (t) => {
926
926
  }
927
927
  ) });
928
928
  }, To = Array.from({ length: 21 }, (t, e) => Number((e * 0.05).toFixed(2))), Rt = Be((t, e) => {
929
- const { pageNumber: r, style: o, onIntersectRatioChange: n, ...a } = t, { pages: s } = X(), { rotate: c } = Ke(), { textLayer: u } = sn(), { currentZoom: l } = Xe(), d = W(s.get(r)), [f, h] = $(!1), g = W(null), [_, b] = $({
929
+ const { pageNumber: n, style: o, onIntersectRatioChange: r, ...a } = t, { pages: s } = X(), { rotate: c } = Ke(), { textLayer: u } = sr(), { currentZoom: l } = Xe(), d = W(s.get(n)), [f, h] = $(!1), g = W(null), [_, b] = $({
930
930
  width: 0,
931
931
  height: 0
932
932
  });
933
- ar(e, () => g.current), O(() => {
934
- if (s && (d.current = s.get(r), d.current)) {
933
+ sn(e, () => g.current), O(() => {
934
+ if (s && (d.current = s.get(n), d.current)) {
935
935
  const T = d.current.page.getViewport({ scale: l, rotation: c });
936
936
  b(T);
937
937
  }
938
- }, [s, r, c, l]);
938
+ }, [s, n, c, l]);
939
939
  const v = k(() => {
940
940
  switch (c) {
941
941
  case 90:
@@ -954,19 +954,19 @@ const bo = (t) => {
954
954
  return O(() => {
955
955
  const T = new IntersectionObserver(
956
956
  (I) => {
957
- n(r, I[0].intersectionRatio);
957
+ r(n, I[0].intersectionRatio);
958
958
  },
959
959
  { threshold: To }
960
960
  );
961
961
  return g.current && T.observe(g.current), () => {
962
- T.disconnect(), n(r, -1);
962
+ T.disconnect(), r(n, -1);
963
963
  };
964
- }, [n, r, c, _]), /* @__PURE__ */ i(
964
+ }, [r, n, c, _]), /* @__PURE__ */ i(
965
965
  "div",
966
966
  {
967
967
  ref: g,
968
- id: `page-${r}`,
969
- "data-rp": `page-${r}`,
968
+ id: `page-${n}`,
969
+ "data-rp": `page-${n}`,
970
970
  ...a,
971
971
  style: {
972
972
  ...o,
@@ -984,11 +984,11 @@ const bo = (t) => {
984
984
  },
985
985
  className: at["rp-page"],
986
986
  children: [
987
- /* @__PURE__ */ i(go, { onLoading: w, onLoaded: m, pageNumber: r }),
987
+ /* @__PURE__ */ i(go, { onLoading: w, onLoaded: m, pageNumber: n }),
988
988
  f && /* @__PURE__ */ i("div", { className: at["rp-loader-wrapper"], children: /* @__PURE__ */ i(St, {}) }),
989
- u && /* @__PURE__ */ i(vo, { pageNumber: r }),
990
- /* @__PURE__ */ i(Co, { pageNumber: r }),
991
- /* @__PURE__ */ i(bo, { pageNumber: r })
989
+ u && /* @__PURE__ */ i(vo, { pageNumber: n }),
990
+ /* @__PURE__ */ i(Co, { pageNumber: n }),
991
+ /* @__PURE__ */ i(bo, { pageNumber: n })
992
992
  ]
993
993
  }
994
994
  )
@@ -998,9 +998,9 @@ const bo = (t) => {
998
998
  function _t() {
999
999
  return _t = Object.assign ? Object.assign.bind() : function(t) {
1000
1000
  for (var e = 1; e < arguments.length; e++) {
1001
- var r = arguments[e];
1002
- for (var o in r)
1003
- ({}).hasOwnProperty.call(r, o) && (t[o] = r[o]);
1001
+ var n = arguments[e];
1002
+ for (var o in n)
1003
+ ({}).hasOwnProperty.call(n, o) && (t[o] = n[o]);
1004
1004
  }
1005
1005
  return t;
1006
1006
  }, _t.apply(null, arguments);
@@ -1011,8 +1011,8 @@ function Ut(t) {
1011
1011
  return t;
1012
1012
  }
1013
1013
  function wt(t, e) {
1014
- return wt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, o) {
1015
- return r.__proto__ = o, r;
1014
+ return wt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, o) {
1015
+ return n.__proto__ = o, n;
1016
1016
  }, wt(t, e);
1017
1017
  }
1018
1018
  function Po(t, e) {
@@ -1027,32 +1027,32 @@ function So(t, e) {
1027
1027
  function Io(t, e) {
1028
1028
  if (t.length !== e.length)
1029
1029
  return !1;
1030
- for (var r = 0; r < t.length; r++)
1031
- if (!So(t[r], e[r]))
1030
+ for (var n = 0; n < t.length; n++)
1031
+ if (!So(t[n], e[n]))
1032
1032
  return !1;
1033
1033
  return !0;
1034
1034
  }
1035
1035
  function lt(t, e) {
1036
1036
  e === void 0 && (e = Io);
1037
- var r, o = [], n, a = !1;
1037
+ var n, o = [], r, a = !1;
1038
1038
  function s() {
1039
1039
  for (var c = [], u = 0; u < arguments.length; u++)
1040
1040
  c[u] = arguments[u];
1041
- return a && r === this && e(c, o) || (n = t.apply(this, c), a = !0, r = this, o = c), n;
1041
+ return a && n === this && e(c, o) || (r = t.apply(this, c), a = !0, n = this, o = c), r;
1042
1042
  }
1043
1043
  return s;
1044
1044
  }
1045
1045
  function Zt(t, e) {
1046
1046
  if (t == null)
1047
1047
  return {};
1048
- var r = {};
1048
+ var n = {};
1049
1049
  for (var o in t)
1050
1050
  if ({}.hasOwnProperty.call(t, o)) {
1051
1051
  if (e.indexOf(o) !== -1)
1052
1052
  continue;
1053
- r[o] = t[o];
1053
+ n[o] = t[o];
1054
1054
  }
1055
- return r;
1055
+ return n;
1056
1056
  }
1057
1057
  var yo = typeof performance == "object" && typeof performance.now == "function", jt = yo ? function() {
1058
1058
  return performance.now();
@@ -1063,42 +1063,42 @@ function Bt(t) {
1063
1063
  cancelAnimationFrame(t.id);
1064
1064
  }
1065
1065
  function xo(t, e) {
1066
- var r = jt();
1066
+ var n = jt();
1067
1067
  function o() {
1068
- jt() - r >= e ? t.call(null) : n.id = requestAnimationFrame(o);
1068
+ jt() - n >= e ? t.call(null) : r.id = requestAnimationFrame(o);
1069
1069
  }
1070
- var n = {
1070
+ var r = {
1071
1071
  id: requestAnimationFrame(o)
1072
1072
  };
1073
- return n;
1073
+ return r;
1074
1074
  }
1075
1075
  var ut = -1;
1076
1076
  function Ro(t) {
1077
1077
  if (t === void 0 && (t = !1), ut === -1 || t) {
1078
- var e = document.createElement("div"), r = e.style;
1079
- r.width = "50px", r.height = "50px", r.overflow = "scroll", document.body.appendChild(e), ut = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
1078
+ var e = document.createElement("div"), n = e.style;
1079
+ n.width = "50px", n.height = "50px", n.overflow = "scroll", document.body.appendChild(e), ut = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
1080
1080
  }
1081
1081
  return ut;
1082
1082
  }
1083
1083
  var Re = null;
1084
1084
  function Kt(t) {
1085
1085
  if (t === void 0 && (t = !1), Re === null || t) {
1086
- var e = document.createElement("div"), r = e.style;
1087
- r.width = "50px", r.height = "50px", r.overflow = "scroll", r.direction = "rtl";
1088
- var o = document.createElement("div"), n = o.style;
1089
- return n.width = "100px", n.height = "100px", e.appendChild(o), document.body.appendChild(e), e.scrollLeft > 0 ? Re = "positive-descending" : (e.scrollLeft = 1, e.scrollLeft === 0 ? Re = "negative" : Re = "positive-ascending"), document.body.removeChild(e), Re;
1086
+ var e = document.createElement("div"), n = e.style;
1087
+ n.width = "50px", n.height = "50px", n.overflow = "scroll", n.direction = "rtl";
1088
+ var o = document.createElement("div"), r = o.style;
1089
+ return r.width = "100px", r.height = "100px", e.appendChild(o), document.body.appendChild(e), e.scrollLeft > 0 ? Re = "positive-descending" : (e.scrollLeft = 1, e.scrollLeft === 0 ? Re = "negative" : Re = "positive-ascending"), document.body.removeChild(e), Re;
1090
1090
  }
1091
1091
  return Re;
1092
1092
  }
1093
1093
  var Lo = 150, No = function(e) {
1094
- var r = e.columnIndex;
1094
+ var n = e.columnIndex;
1095
1095
  e.data;
1096
1096
  var o = e.rowIndex;
1097
- return o + ":" + r;
1097
+ return o + ":" + n;
1098
1098
  }, He = null, $e = null, Ge = null;
1099
1099
  process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (He = /* @__PURE__ */ new WeakSet(), $e = /* @__PURE__ */ new WeakSet(), Ge = /* @__PURE__ */ new WeakSet());
1100
1100
  function Eo(t) {
1101
- var e, r = t.getColumnOffset, o = t.getColumnStartIndexForOffset, n = t.getColumnStopIndexForStartIndex, a = t.getColumnWidth, s = t.getEstimatedTotalHeight, c = t.getEstimatedTotalWidth, u = t.getOffsetForColumnAndAlignment, l = t.getOffsetForRowAndAlignment, d = t.getRowHeight, f = t.getRowOffset, h = t.getRowStartIndexForOffset, g = t.getRowStopIndexForStartIndex, _ = t.initInstanceProps, b = t.shouldResetStyleCacheOnItemSizeChange, v = t.validateProps;
1101
+ var e, n = t.getColumnOffset, o = t.getColumnStartIndexForOffset, r = t.getColumnStopIndexForStartIndex, a = t.getColumnWidth, s = t.getEstimatedTotalHeight, c = t.getEstimatedTotalWidth, u = t.getOffsetForColumnAndAlignment, l = t.getOffsetForRowAndAlignment, d = t.getRowHeight, f = t.getRowOffset, h = t.getRowStartIndexForOffset, g = t.getRowStopIndexForStartIndex, _ = t.initInstanceProps, b = t.shouldResetStyleCacheOnItemSizeChange, v = t.validateProps;
1102
1102
  return e = /* @__PURE__ */ function(w) {
1103
1103
  Po(m, w);
1104
1104
  function m(I) {
@@ -1135,7 +1135,7 @@ function Eo(t) {
1135
1135
  if (L.hasOwnProperty(F))
1136
1136
  E = L[F];
1137
1137
  else {
1138
- var y = r(p.props, C, p._instanceProps), N = R === "rtl";
1138
+ var y = n(p.props, C, p._instanceProps), N = R === "rtl";
1139
1139
  L[F] = E = {
1140
1140
  position: "absolute",
1141
1141
  left: N ? void 0 : y,
@@ -1242,7 +1242,7 @@ function Eo(t) {
1242
1242
  }, T.componentWillUnmount = function() {
1243
1243
  this._resetIsScrollingTimeoutId !== null && Bt(this._resetIsScrollingTimeoutId);
1244
1244
  }, T.render = function() {
1245
- var p = this.props, P = p.children, C = p.className, S = p.columnCount, A = p.direction, R = p.height, D = p.innerRef, L = p.innerElementType, F = p.innerTagName, E = p.itemData, y = p.itemKey, N = y === void 0 ? No : y, G = p.outerElementType, U = p.outerTagName, Z = p.rowCount, ee = p.style, j = p.useIsScrolling, J = p.width, ae = this.state.isScrolling, re = this._getHorizontalRangeToRender(), B = re[0], Y = re[1], ue = this._getVerticalRangeToRender(), be = ue[0], De = ue[1], de = [];
1245
+ var p = this.props, P = p.children, C = p.className, S = p.columnCount, A = p.direction, R = p.height, D = p.innerRef, L = p.innerElementType, F = p.innerTagName, E = p.itemData, y = p.itemKey, N = y === void 0 ? No : y, G = p.outerElementType, U = p.outerTagName, Z = p.rowCount, ee = p.style, j = p.useIsScrolling, J = p.width, ae = this.state.isScrolling, ne = this._getHorizontalRangeToRender(), B = ne[0], Y = ne[1], ue = this._getVerticalRangeToRender(), be = ue[0], De = ue[1], de = [];
1246
1246
  if (S > 0 && Z)
1247
1247
  for (var pe = be; pe <= De; pe++)
1248
1248
  for (var ge = B; ge <= Y; ge++)
@@ -1288,14 +1288,14 @@ function Eo(t) {
1288
1288
  this._callOnItemsRendered(D, L, N, G, F, E, U, Z);
1289
1289
  }
1290
1290
  if (typeof S == "function") {
1291
- var ee = this.state, j = ee.horizontalScrollDirection, J = ee.scrollLeft, ae = ee.scrollTop, re = ee.scrollUpdateWasRequested, B = ee.verticalScrollDirection;
1292
- this._callOnScroll(J, ae, j, B, re);
1291
+ var ee = this.state, j = ee.horizontalScrollDirection, J = ee.scrollLeft, ae = ee.scrollTop, ne = ee.scrollUpdateWasRequested, B = ee.verticalScrollDirection;
1292
+ this._callOnScroll(J, ae, j, B, ne);
1293
1293
  }
1294
1294
  }, T._getHorizontalRangeToRender = function() {
1295
1295
  var p = this.props, P = p.columnCount, C = p.overscanColumnCount, S = p.overscanColumnsCount, A = p.overscanCount, R = p.rowCount, D = this.state, L = D.horizontalScrollDirection, F = D.isScrolling, E = D.scrollLeft, y = C || S || A || 1;
1296
1296
  if (P === 0 || R === 0)
1297
1297
  return [0, 0, 0, 0];
1298
- var N = o(this.props, E, this._instanceProps), G = n(this.props, N, E, this._instanceProps), U = !F || L === "backward" ? Math.max(1, y) : 1, Z = !F || L === "forward" ? Math.max(1, y) : 1;
1298
+ var N = o(this.props, E, this._instanceProps), G = r(this.props, N, E, this._instanceProps), U = !F || L === "backward" ? Math.max(1, y) : 1, Z = !F || L === "forward" ? Math.max(1, y) : 1;
1299
1299
  return [Math.max(0, N - U), Math.max(0, Math.min(P - 1, G + Z)), N, G];
1300
1300
  }, T._getVerticalRangeToRender = function() {
1301
1301
  var p = this.props, P = p.columnCount, C = p.overscanCount, S = p.overscanRowCount, A = p.overscanRowsCount, R = p.rowCount, D = this.state, L = D.isScrolling, F = D.verticalScrollDirection, E = D.scrollTop, y = S || A || C || 1;
@@ -1304,48 +1304,48 @@ function Eo(t) {
1304
1304
  var N = h(this.props, E, this._instanceProps), G = g(this.props, N, E, this._instanceProps), U = !L || F === "backward" ? Math.max(1, y) : 1, Z = !L || F === "forward" ? Math.max(1, y) : 1;
1305
1305
  return [Math.max(0, N - U), Math.max(0, Math.min(R - 1, G + Z)), N, G];
1306
1306
  }, m;
1307
- }(rn), e.defaultProps = {
1307
+ }(rr), e.defaultProps = {
1308
1308
  direction: "ltr",
1309
1309
  itemData: void 0,
1310
1310
  useIsScrolling: !1
1311
1311
  }, e;
1312
1312
  }
1313
- var Oo = function(e, r) {
1314
- var o = e.children, n = e.direction, a = e.height, s = e.innerTagName, c = e.outerTagName, u = e.overscanColumnsCount, l = e.overscanCount, d = e.overscanRowsCount, f = e.width, h = r.instance;
1313
+ var Oo = function(e, n) {
1314
+ var o = e.children, r = e.direction, a = e.height, s = e.innerTagName, c = e.outerTagName, u = e.overscanColumnsCount, l = e.overscanCount, d = e.overscanRowsCount, f = e.width, h = n.instance;
1315
1315
  if (process.env.NODE_ENV !== "production") {
1316
1316
  if (typeof l == "number" && He && !He.has(h) && (He.add(h), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof u == "number" || typeof d == "number") && $e && !$e.has(h) && ($e.add(h), console.warn("The overscanColumnsCount and overscanRowsCount props have been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (s != null || c != null) && Ge && !Ge.has(h) && (Ge.add(h), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.")), o == null)
1317
1317
  throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (o === null ? "null" : typeof o) + '" was specified.'));
1318
- switch (n) {
1318
+ switch (r) {
1319
1319
  case "ltr":
1320
1320
  case "rtl":
1321
1321
  break;
1322
1322
  default:
1323
- throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". ' + ('"' + n + '" was specified.'));
1323
+ throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". ' + ('"' + r + '" was specified.'));
1324
1324
  }
1325
1325
  if (typeof f != "number")
1326
1326
  throw Error('An invalid "width" prop has been specified. Grids must specify a number for width. ' + ('"' + (f === null ? "null" : typeof f) + '" was specified.'));
1327
1327
  if (typeof a != "number")
1328
1328
  throw Error('An invalid "height" prop has been specified. Grids must specify a number for height. ' + ('"' + (a === null ? "null" : typeof a) + '" was specified.'));
1329
1329
  }
1330
- }, Xt = 50, Sr = function(e, r) {
1331
- var o = e.rowCount, n = r.rowMetadataMap, a = r.estimatedRowHeight, s = r.lastMeasuredRowIndex, c = 0;
1330
+ }, Xt = 50, In = function(e, n) {
1331
+ var o = e.rowCount, r = n.rowMetadataMap, a = n.estimatedRowHeight, s = n.lastMeasuredRowIndex, c = 0;
1332
1332
  if (s >= o && (s = o - 1), s >= 0) {
1333
- var u = n[s];
1333
+ var u = r[s];
1334
1334
  c = u.offset + u.size;
1335
1335
  }
1336
1336
  var l = o - s - 1, d = l * a;
1337
1337
  return c + d;
1338
- }, Ir = function(e, r) {
1339
- var o = e.columnCount, n = r.columnMetadataMap, a = r.estimatedColumnWidth, s = r.lastMeasuredColumnIndex, c = 0;
1338
+ }, yn = function(e, n) {
1339
+ var o = e.columnCount, r = n.columnMetadataMap, a = n.estimatedColumnWidth, s = n.lastMeasuredColumnIndex, c = 0;
1340
1340
  if (s >= o && (s = o - 1), s >= 0) {
1341
- var u = n[s];
1341
+ var u = r[s];
1342
1342
  c = u.offset + u.size;
1343
1343
  }
1344
1344
  var l = o - s - 1, d = l * a;
1345
1345
  return c + d;
1346
- }, ve = function(e, r, o, n) {
1346
+ }, ve = function(e, n, o, r) {
1347
1347
  var a, s, c;
1348
- if (e === "column" ? (a = n.columnMetadataMap, s = r.columnWidth, c = n.lastMeasuredColumnIndex) : (a = n.rowMetadataMap, s = r.rowHeight, c = n.lastMeasuredRowIndex), o > c) {
1348
+ if (e === "column" ? (a = r.columnMetadataMap, s = n.columnWidth, c = r.lastMeasuredColumnIndex) : (a = r.rowMetadataMap, s = n.rowHeight, c = r.lastMeasuredRowIndex), o > c) {
1349
1349
  var u = 0;
1350
1350
  if (c >= 0) {
1351
1351
  var l = a[c];
@@ -1358,29 +1358,29 @@ var Oo = function(e, r) {
1358
1358
  size: f
1359
1359
  }, u += f;
1360
1360
  }
1361
- e === "column" ? n.lastMeasuredColumnIndex = o : n.lastMeasuredRowIndex = o;
1361
+ e === "column" ? r.lastMeasuredColumnIndex = o : r.lastMeasuredRowIndex = o;
1362
1362
  }
1363
1363
  return a[o];
1364
- }, Jt = function(e, r, o, n) {
1364
+ }, Jt = function(e, n, o, r) {
1365
1365
  var a, s;
1366
1366
  e === "column" ? (a = o.columnMetadataMap, s = o.lastMeasuredColumnIndex) : (a = o.rowMetadataMap, s = o.lastMeasuredRowIndex);
1367
1367
  var c = s > 0 ? a[s].offset : 0;
1368
- return c >= n ? yr(e, r, o, s, 0, n) : Do(e, r, o, Math.max(0, s), n);
1369
- }, yr = function(e, r, o, n, a, s) {
1370
- for (; a <= n; ) {
1371
- var c = a + Math.floor((n - a) / 2), u = ve(e, r, c, o).offset;
1368
+ return c >= r ? xn(e, n, o, s, 0, r) : Do(e, n, o, Math.max(0, s), r);
1369
+ }, xn = function(e, n, o, r, a, s) {
1370
+ for (; a <= r; ) {
1371
+ var c = a + Math.floor((r - a) / 2), u = ve(e, n, c, o).offset;
1372
1372
  if (u === s)
1373
1373
  return c;
1374
- u < s ? a = c + 1 : u > s && (n = c - 1);
1374
+ u < s ? a = c + 1 : u > s && (r = c - 1);
1375
1375
  }
1376
1376
  return a > 0 ? a - 1 : 0;
1377
- }, Do = function(e, r, o, n, a) {
1378
- for (var s = e === "column" ? r.columnCount : r.rowCount, c = 1; n < s && ve(e, r, n, o).offset < a; )
1379
- n += c, c *= 2;
1380
- return yr(e, r, o, Math.min(n, s - 1), Math.floor(n / 2), a);
1381
- }, Yt = function(e, r, o, n, a, s, c) {
1382
- var u = e === "column" ? r.width : r.height, l = ve(e, r, o, s), d = e === "column" ? Ir(r, s) : Sr(r, s), f = Math.max(0, Math.min(d - u, l.offset)), h = Math.max(0, l.offset - u + c + l.size);
1383
- switch (n === "smart" && (a >= h - u && a <= f + u ? n = "auto" : n = "center"), n) {
1377
+ }, Do = function(e, n, o, r, a) {
1378
+ for (var s = e === "column" ? n.columnCount : n.rowCount, c = 1; r < s && ve(e, n, r, o).offset < a; )
1379
+ r += c, c *= 2;
1380
+ return xn(e, n, o, Math.min(r, s - 1), Math.floor(r / 2), a);
1381
+ }, Yt = function(e, n, o, r, a, s, c) {
1382
+ var u = e === "column" ? n.width : n.height, l = ve(e, n, o, s), d = e === "column" ? yn(n, s) : In(n, s), f = Math.max(0, Math.min(d - u, l.offset)), h = Math.max(0, l.offset - u + c + l.size);
1383
+ switch (r === "smart" && (a >= h - u && a <= f + u ? r = "auto" : r = "center"), r) {
1384
1384
  case "start":
1385
1385
  return f;
1386
1386
  case "end":
@@ -1392,72 +1392,72 @@ var Oo = function(e, r) {
1392
1392
  return a >= h && a <= f ? a : h > f || a < h ? h : f;
1393
1393
  }
1394
1394
  }, zo = /* @__PURE__ */ Eo({
1395
- getColumnOffset: function(e, r, o) {
1396
- return ve("column", e, r, o).offset;
1395
+ getColumnOffset: function(e, n, o) {
1396
+ return ve("column", e, n, o).offset;
1397
1397
  },
1398
- getColumnStartIndexForOffset: function(e, r, o) {
1399
- return Jt("column", e, o, r);
1398
+ getColumnStartIndexForOffset: function(e, n, o) {
1399
+ return Jt("column", e, o, n);
1400
1400
  },
1401
- getColumnStopIndexForStartIndex: function(e, r, o, n) {
1402
- for (var a = e.columnCount, s = e.width, c = ve("column", e, r, n), u = o + s, l = c.offset + c.size, d = r; d < a - 1 && l < u; )
1403
- d++, l += ve("column", e, d, n).size;
1401
+ getColumnStopIndexForStartIndex: function(e, n, o, r) {
1402
+ for (var a = e.columnCount, s = e.width, c = ve("column", e, n, r), u = o + s, l = c.offset + c.size, d = n; d < a - 1 && l < u; )
1403
+ d++, l += ve("column", e, d, r).size;
1404
1404
  return d;
1405
1405
  },
1406
- getColumnWidth: function(e, r, o) {
1407
- return o.columnMetadataMap[r].size;
1406
+ getColumnWidth: function(e, n, o) {
1407
+ return o.columnMetadataMap[n].size;
1408
1408
  },
1409
- getEstimatedTotalHeight: Sr,
1410
- getEstimatedTotalWidth: Ir,
1411
- getOffsetForColumnAndAlignment: function(e, r, o, n, a, s) {
1412
- return Yt("column", e, r, o, n, a, s);
1409
+ getEstimatedTotalHeight: In,
1410
+ getEstimatedTotalWidth: yn,
1411
+ getOffsetForColumnAndAlignment: function(e, n, o, r, a, s) {
1412
+ return Yt("column", e, n, o, r, a, s);
1413
1413
  },
1414
- getOffsetForRowAndAlignment: function(e, r, o, n, a, s) {
1415
- return Yt("row", e, r, o, n, a, s);
1414
+ getOffsetForRowAndAlignment: function(e, n, o, r, a, s) {
1415
+ return Yt("row", e, n, o, r, a, s);
1416
1416
  },
1417
- getRowOffset: function(e, r, o) {
1418
- return ve("row", e, r, o).offset;
1417
+ getRowOffset: function(e, n, o) {
1418
+ return ve("row", e, n, o).offset;
1419
1419
  },
1420
- getRowHeight: function(e, r, o) {
1421
- return o.rowMetadataMap[r].size;
1420
+ getRowHeight: function(e, n, o) {
1421
+ return o.rowMetadataMap[n].size;
1422
1422
  },
1423
- getRowStartIndexForOffset: function(e, r, o) {
1424
- return Jt("row", e, o, r);
1423
+ getRowStartIndexForOffset: function(e, n, o) {
1424
+ return Jt("row", e, o, n);
1425
1425
  },
1426
- getRowStopIndexForStartIndex: function(e, r, o, n) {
1427
- for (var a = e.rowCount, s = e.height, c = ve("row", e, r, n), u = o + s, l = c.offset + c.size, d = r; d < a - 1 && l < u; )
1428
- d++, l += ve("row", e, d, n).size;
1426
+ getRowStopIndexForStartIndex: function(e, n, o, r) {
1427
+ for (var a = e.rowCount, s = e.height, c = ve("row", e, n, r), u = o + s, l = c.offset + c.size, d = n; d < a - 1 && l < u; )
1428
+ d++, l += ve("row", e, d, r).size;
1429
1429
  return d;
1430
1430
  },
1431
- initInstanceProps: function(e, r) {
1432
- var o = e, n = o.estimatedColumnWidth, a = o.estimatedRowHeight, s = {
1431
+ initInstanceProps: function(e, n) {
1432
+ var o = e, r = o.estimatedColumnWidth, a = o.estimatedRowHeight, s = {
1433
1433
  columnMetadataMap: {},
1434
- estimatedColumnWidth: n || Xt,
1434
+ estimatedColumnWidth: r || Xt,
1435
1435
  estimatedRowHeight: a || Xt,
1436
1436
  lastMeasuredColumnIndex: -1,
1437
1437
  lastMeasuredRowIndex: -1,
1438
1438
  rowMetadataMap: {}
1439
1439
  };
1440
- return r.resetAfterColumnIndex = function(c, u) {
1441
- u === void 0 && (u = !0), r.resetAfterIndices({
1440
+ return n.resetAfterColumnIndex = function(c, u) {
1441
+ u === void 0 && (u = !0), n.resetAfterIndices({
1442
1442
  columnIndex: c,
1443
1443
  shouldForceUpdate: u
1444
1444
  });
1445
- }, r.resetAfterRowIndex = function(c, u) {
1446
- u === void 0 && (u = !0), r.resetAfterIndices({
1445
+ }, n.resetAfterRowIndex = function(c, u) {
1446
+ u === void 0 && (u = !0), n.resetAfterIndices({
1447
1447
  rowIndex: c,
1448
1448
  shouldForceUpdate: u
1449
1449
  });
1450
- }, r.resetAfterIndices = function(c) {
1450
+ }, n.resetAfterIndices = function(c) {
1451
1451
  var u = c.columnIndex, l = c.rowIndex, d = c.shouldForceUpdate, f = d === void 0 ? !0 : d;
1452
- typeof u == "number" && (s.lastMeasuredColumnIndex = Math.min(s.lastMeasuredColumnIndex, u - 1)), typeof l == "number" && (s.lastMeasuredRowIndex = Math.min(s.lastMeasuredRowIndex, l - 1)), r._getItemStyleCache(-1), f && r.forceUpdate();
1452
+ typeof u == "number" && (s.lastMeasuredColumnIndex = Math.min(s.lastMeasuredColumnIndex, u - 1)), typeof l == "number" && (s.lastMeasuredRowIndex = Math.min(s.lastMeasuredRowIndex, l - 1)), n._getItemStyleCache(-1), f && n.forceUpdate();
1453
1453
  }, s;
1454
1454
  },
1455
1455
  shouldResetStyleCacheOnItemSizeChange: !1,
1456
1456
  validateProps: function(e) {
1457
- var r = e.columnWidth, o = e.rowHeight;
1457
+ var n = e.columnWidth, o = e.rowHeight;
1458
1458
  if (process.env.NODE_ENV !== "production") {
1459
- if (typeof r != "function")
1460
- throw Error('An invalid "columnWidth" prop has been specified. Value should be a function. ' + ('"' + (r === null ? "null" : typeof r) + '" was specified.'));
1459
+ if (typeof n != "function")
1460
+ throw Error('An invalid "columnWidth" prop has been specified. Value should be a function. ' + ('"' + (n === null ? "null" : typeof n) + '" was specified.'));
1461
1461
  if (typeof o != "function")
1462
1462
  throw Error('An invalid "rowHeight" prop has been specified. Value should be a function. ' + ('"' + (o === null ? "null" : typeof o) + '" was specified.'));
1463
1463
  }
@@ -1465,8 +1465,8 @@ var Oo = function(e, r) {
1465
1465
  });
1466
1466
  process.env.NODE_ENV;
1467
1467
  function Qt(t, e) {
1468
- for (var r in t)
1469
- if (!(r in e))
1468
+ for (var n in t)
1469
+ if (!(n in e))
1470
1470
  return !0;
1471
1471
  for (var o in e)
1472
1472
  if (t[o] !== e[o])
@@ -1475,27 +1475,27 @@ function Qt(t, e) {
1475
1475
  }
1476
1476
  var Ao = ["style"], Fo = ["style"];
1477
1477
  function ko(t, e) {
1478
- var r = t.style, o = Zt(t, Ao), n = e.style, a = Zt(e, Fo);
1479
- return !Qt(r, n) && !Qt(o, a);
1478
+ var n = t.style, o = Zt(t, Ao), r = e.style, a = Zt(e, Fo);
1479
+ return !Qt(n, r) && !Qt(o, a);
1480
1480
  }
1481
1481
  const Wo = () => {
1482
- const { viewMode: t } = Je(), { scrollMode: e } = Oe(), { setColumnCount: r } = cr(), { virtualScrollableElementRef: o } = Ye(), n = Pt(), a = x(
1483
- (g) => n.widths[g] || 0,
1484
- [n.widths]
1482
+ const { viewMode: t } = Je(), { scrollMode: e } = Oe(), { setColumnCount: n } = ln(), { virtualScrollableElementRef: o } = Ye(), r = Pt(), a = x(
1483
+ (g) => r.widths[g] || 0,
1484
+ [r.widths]
1485
1485
  ), s = x(
1486
- (g) => n.heights[g] || 0,
1487
- [n.heights]
1488
- ), c = k(() => n.heights.length, [n.heights]), u = k(() => Math.max(...n.widths), [n.widths]), l = k(() => e === K.HORIZONTAL_SCROLLING ? c : t === Ve.DUAL_PAGE ? 2 : 1, [t, e, e, c, o, u]);
1486
+ (g) => r.heights[g] || 0,
1487
+ [r.heights]
1488
+ ), c = k(() => r.heights.length, [r.heights]), u = k(() => Math.max(...r.widths), [r.widths]), l = k(() => e === K.HORIZONTAL_SCROLLING ? c : t === Ve.DUAL_PAGE ? 2 : 1, [t, e, e, c, o, u]);
1489
1489
  O(() => {
1490
- r(l);
1491
- }, [l, r]);
1492
- const d = k(() => e === K.HORIZONTAL_SCROLLING || e === K.PAGE_SCROLLING ? 1 : Math.round(c / l), [l, c, e]), f = k(() => n.heights.reduce((g, _) => g + _, 0) / n.heights.length || 0, [n]), h = k(() => n.widths.reduce((g, _) => g + _, 0) / n.heights.length || 0, [n]);
1490
+ n(l);
1491
+ }, [l, n]);
1492
+ const d = k(() => e === K.HORIZONTAL_SCROLLING || e === K.PAGE_SCROLLING ? 1 : Math.round(c / l), [l, c, e]), f = k(() => r.heights.reduce((g, _) => g + _, 0) / r.heights.length || 0, [r]), h = k(() => r.widths.reduce((g, _) => g + _, 0) / r.heights.length || 0, [r]);
1493
1493
  return {
1494
1494
  rowCount: d,
1495
1495
  rowHeight: s,
1496
1496
  columnCount: l,
1497
1497
  columnWidth: a,
1498
- pageDimension: n,
1498
+ pageDimension: r,
1499
1499
  estimatedRowHeight: f,
1500
1500
  estimatedColumnWidth: h
1501
1501
  };
@@ -1503,21 +1503,21 @@ const Wo = () => {
1503
1503
  let ie;
1504
1504
  typeof window < "u" ? ie = window : typeof self < "u" ? ie = self : ie = global;
1505
1505
  let bt = null, Ct = null;
1506
- const er = 20, dt = ie.clearTimeout, tr = ie.setTimeout, pt = ie.cancelAnimationFrame || ie.mozCancelAnimationFrame || ie.webkitCancelAnimationFrame, rr = ie.requestAnimationFrame || ie.mozRequestAnimationFrame || ie.webkitRequestAnimationFrame;
1507
- pt == null || rr == null ? (bt = dt, Ct = function(e) {
1508
- return tr(e, er);
1509
- }) : (bt = function([e, r]) {
1510
- pt(e), dt(r);
1506
+ const en = 20, dt = ie.clearTimeout, tn = ie.setTimeout, pt = ie.cancelAnimationFrame || ie.mozCancelAnimationFrame || ie.webkitCancelAnimationFrame, nn = ie.requestAnimationFrame || ie.mozRequestAnimationFrame || ie.webkitRequestAnimationFrame;
1507
+ pt == null || nn == null ? (bt = dt, Ct = function(e) {
1508
+ return tn(e, en);
1509
+ }) : (bt = function([e, n]) {
1510
+ pt(e), dt(n);
1511
1511
  }, Ct = function(e) {
1512
- const r = rr(function() {
1512
+ const n = nn(function() {
1513
1513
  dt(o), e();
1514
- }), o = tr(function() {
1515
- pt(r), e();
1516
- }, er);
1517
- return [r, o];
1514
+ }), o = tn(function() {
1515
+ pt(n), e();
1516
+ }, en);
1517
+ return [n, o];
1518
1518
  });
1519
1519
  function Mo(t) {
1520
- let e, r, o, n, a, s, c;
1520
+ let e, n, o, r, a, s, c;
1521
1521
  const u = typeof document < "u" && document.attachEvent;
1522
1522
  if (!u) {
1523
1523
  s = function(w) {
@@ -1549,11 +1549,11 @@ function Mo(t) {
1549
1549
  }
1550
1550
  }
1551
1551
  }
1552
- r = "resizeanim", e = "@" + g + "keyframes " + r + " { from { opacity: 0; } to { opacity: 0; } } ", n = g + "animation: 1ms " + r + "; ";
1552
+ n = "resizeanim", e = "@" + g + "keyframes " + n + " { from { opacity: 0; } to { opacity: 0; } } ", r = g + "animation: 1ms " + n + "; ";
1553
1553
  }
1554
1554
  const l = function(h) {
1555
1555
  if (!h.getElementById("detectElementResize")) {
1556
- const g = (e || "") + ".resize-triggers { " + (n || "") + '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%; }', _ = h.head || h.getElementsByTagName("head")[0], b = h.createElement("style");
1556
+ const g = (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%; }', _ = h.head || h.getElementsByTagName("head")[0], b = h.createElement("style");
1557
1557
  b.id = "detectElementResize", b.type = "text/css", t != null && b.setAttribute("nonce", t), b.styleSheet ? b.styleSheet.cssText = g : b.appendChild(h.createTextNode(g)), _.appendChild(b);
1558
1558
  }
1559
1559
  };
@@ -1569,7 +1569,7 @@ function Mo(t) {
1569
1569
  v.className = "expand-trigger", v.appendChild(_.createElement("div"));
1570
1570
  const w = _.createElement("div");
1571
1571
  w.className = "contract-trigger", h.__resizeTriggers__.appendChild(v), h.__resizeTriggers__.appendChild(w), h.appendChild(h.__resizeTriggers__), s(h), h.addEventListener("scroll", c, !0), o && (h.__resizeTriggers__.__animationListener__ = function(T) {
1572
- T.animationName === r && s(h);
1572
+ T.animationName === n && s(h);
1573
1573
  }, h.__resizeTriggers__.addEventListener(o, h.__resizeTriggers__.__animationListener__));
1574
1574
  }
1575
1575
  h.__resizeListeners__.push(g);
@@ -1588,7 +1588,7 @@ function Mo(t) {
1588
1588
  }
1589
1589
  };
1590
1590
  }
1591
- class Ho extends nn {
1591
+ class Ho extends or {
1592
1592
  constructor(...e) {
1593
1593
  super(...e), this.state = {
1594
1594
  height: this.props.defaultHeight || 0,
@@ -1598,38 +1598,38 @@ class Ho extends nn {
1598
1598
  }, this._autoSizer = null, this._detectElementResize = null, this._parentNode = null, this._resizeObserver = null, this._timeoutId = null, this._onResize = () => {
1599
1599
  this._timeoutId = null;
1600
1600
  const {
1601
- disableHeight: r,
1601
+ disableHeight: n,
1602
1602
  disableWidth: o,
1603
- onResize: n
1603
+ onResize: r
1604
1604
  } = this.props;
1605
1605
  if (this._parentNode) {
1606
1606
  const a = window.getComputedStyle(this._parentNode) || {}, s = parseFloat(a.paddingLeft || "0"), c = parseFloat(a.paddingRight || "0"), u = parseFloat(a.paddingTop || "0"), l = parseFloat(a.paddingBottom || "0"), d = this._parentNode.getBoundingClientRect(), f = d.height - u - l, h = d.width - s - c, g = this._parentNode.offsetHeight - u - l, _ = this._parentNode.offsetWidth - s - c;
1607
- (!r && (this.state.height !== g || this.state.scaledHeight !== f) || !o && (this.state.width !== _ || this.state.scaledWidth !== h)) && (this.setState({
1607
+ (!n && (this.state.height !== g || this.state.scaledHeight !== f) || !o && (this.state.width !== _ || this.state.scaledWidth !== h)) && (this.setState({
1608
1608
  height: g,
1609
1609
  width: _,
1610
1610
  scaledHeight: f,
1611
1611
  scaledWidth: h
1612
- }), typeof n == "function" && n({
1612
+ }), typeof r == "function" && r({
1613
1613
  height: g,
1614
1614
  scaledHeight: f,
1615
1615
  scaledWidth: h,
1616
1616
  width: _
1617
1617
  }));
1618
1618
  }
1619
- }, this._setRef = (r) => {
1620
- this._autoSizer = r;
1619
+ }, this._setRef = (n) => {
1620
+ this._autoSizer = n;
1621
1621
  };
1622
1622
  }
1623
1623
  componentDidMount() {
1624
1624
  const {
1625
1625
  nonce: e
1626
- } = this.props, r = this._autoSizer ? this._autoSizer.parentNode : null;
1627
- if (r != null && r.ownerDocument && r.ownerDocument.defaultView && r instanceof r.ownerDocument.defaultView.HTMLElement) {
1628
- this._parentNode = r;
1629
- const o = r.ownerDocument.defaultView.ResizeObserver;
1626
+ } = this.props, n = this._autoSizer ? this._autoSizer.parentNode : null;
1627
+ if (n != null && n.ownerDocument && n.ownerDocument.defaultView && n instanceof n.ownerDocument.defaultView.HTMLElement) {
1628
+ this._parentNode = n;
1629
+ const o = n.ownerDocument.defaultView.ResizeObserver;
1630
1630
  o != null ? (this._resizeObserver = new o(() => {
1631
1631
  this._timeoutId = setTimeout(this._onResize, 0);
1632
- }), this._resizeObserver.observe(r)) : (this._detectElementResize = Mo(e), this._detectElementResize.addResizeListener(r, this._onResize)), this._onResize();
1632
+ }), this._resizeObserver.observe(n)) : (this._detectElementResize = Mo(e), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
1633
1633
  }
1634
1634
  }
1635
1635
  componentWillUnmount() {
@@ -1638,9 +1638,9 @@ class Ho extends nn {
1638
1638
  render() {
1639
1639
  const {
1640
1640
  children: e,
1641
- defaultHeight: r,
1641
+ defaultHeight: n,
1642
1642
  defaultWidth: o,
1643
- disableHeight: n = !1,
1643
+ disableHeight: r = !1,
1644
1644
  disableWidth: a = !1,
1645
1645
  doNotBailOutOnEmptyChildren: s = !1,
1646
1646
  nonce: c,
@@ -1657,7 +1657,7 @@ class Ho extends nn {
1657
1657
  overflow: "visible"
1658
1658
  }, w = {};
1659
1659
  let m = !1;
1660
- return n || (h === 0 && (m = !0), v.height = 0, w.height = h, w.scaledHeight = g), a || (b === 0 && (m = !0), v.width = 0, w.width = b, w.scaledWidth = _), s && (m = !1), Me(d, {
1660
+ return r || (h === 0 && (m = !0), v.height = 0, w.height = h, w.scaledHeight = g), a || (b === 0 && (m = !0), v.width = 0, w.width = b, w.scaledWidth = _), s && (m = !1), Me(d, {
1661
1661
  ref: this._setRef,
1662
1662
  style: {
1663
1663
  ...v,
@@ -1668,44 +1668,44 @@ class Ho extends nn {
1668
1668
  }
1669
1669
  }
1670
1670
  const $o = ({ widths: t, heights: e }) => {
1671
- const { focusedPage: r, totalPages: o } = ce(), { isScrolling: n } = Qe(), a = k(() => {
1672
- const u = [], l = Math.ceil(r / 2) * 2 - 1;
1671
+ const { focusedPage: n, totalPages: o } = ce(), { isScrolling: r } = Qe(), a = k(() => {
1672
+ const u = [], l = Math.ceil(n / 2) * 2 - 1;
1673
1673
  if (u.push(l), l + 1 < o) {
1674
1674
  const d = l + 1;
1675
1675
  u.push(d);
1676
1676
  }
1677
1677
  return u;
1678
- }, [r, o]), s = k(() => [
1678
+ }, [n, o]), s = k(() => [
1679
1679
  {
1680
1680
  position: "absolute",
1681
1681
  left: 0,
1682
- width: t(r - 1),
1683
- height: e(r - 1)
1682
+ width: t(n - 1),
1683
+ height: e(n - 1)
1684
1684
  },
1685
1685
  {
1686
1686
  position: "absolute",
1687
- left: t(r),
1687
+ left: t(n),
1688
1688
  top: 0,
1689
- width: t(r),
1690
- height: e(r)
1689
+ width: t(n),
1690
+ height: e(n)
1691
1691
  }
1692
1692
  ], [t, e, a]);
1693
1693
  O(() => {
1694
- n.current = !1;
1695
- }, [r]);
1694
+ r.current = !1;
1695
+ }, [n]);
1696
1696
  const c = k(() => s.reduce((u, l) => u + Number(l.width || 0), 0), [s]);
1697
1697
  return /* @__PURE__ */ i("div", { style: { width: c, position: "relative" }, children: a.map((u, l) => /* @__PURE__ */ i(Rt, { onIntersectRatioChange: () => {
1698
1698
  }, style: s[l], pageNumber: u }, u)) });
1699
1699
  }, Go = ({ widths: t, heights: e }) => {
1700
- const { focusedPage: r } = ce(), { isScrolling: o } = Qe(), n = k(() => ({
1700
+ const { focusedPage: n } = ce(), { isScrolling: o } = Qe(), r = k(() => ({
1701
1701
  position: "absolute",
1702
- width: t(r - 1),
1703
- height: e(r - 1)
1704
- }), [t, e, r]);
1702
+ width: t(n - 1),
1703
+ height: e(n - 1)
1704
+ }), [t, e, n]);
1705
1705
  O(() => {
1706
1706
  o.current = !1;
1707
- }, [r]);
1708
- const a = k(() => t(r - 1), [t]);
1707
+ }, [n]);
1708
+ const a = k(() => t(n - 1), [t]);
1709
1709
  return /* @__PURE__ */ i(
1710
1710
  "div",
1711
1711
  {
@@ -1716,30 +1716,30 @@ const $o = ({ widths: t, heights: e }) => {
1716
1716
  children: /* @__PURE__ */ i(
1717
1717
  Rt,
1718
1718
  {
1719
- style: n,
1719
+ style: r,
1720
1720
  onIntersectRatioChange: () => {
1721
1721
  },
1722
- pageNumber: r
1722
+ pageNumber: n
1723
1723
  },
1724
- r
1724
+ n
1725
1725
  )
1726
1726
  }
1727
1727
  );
1728
- }, Vo = on(({ columnIndex: t, rowIndex: e, data: r, style: o }) => {
1729
- const n = t + 1 + e * r.columnCount;
1728
+ }, Vo = ir(({ columnIndex: t, rowIndex: e, data: n, style: o }) => {
1729
+ const r = t + 1 + e * n.columnCount;
1730
1730
  return /* @__PURE__ */ i(
1731
1731
  Rt,
1732
1732
  {
1733
1733
  style: o,
1734
- onIntersectRatioChange: r.handleIntersectRatioChange,
1735
- pageNumber: n
1734
+ onIntersectRatioChange: n.handleIntersectRatioChange,
1735
+ pageNumber: r
1736
1736
  },
1737
- n
1737
+ r
1738
1738
  );
1739
1739
  }, ko), _s = () => {
1740
- const { initialPage: t = 1, initialScrollMode: e } = ln(), { pagesRef: r, setPagesRef: o } = ye();
1741
- Dn(r);
1742
- const { scrollToPage: n } = vr(), {
1740
+ const { initialPage: t = 1, initialScrollMode: e } = lr(), { pagesRef: n, setPagesRef: o } = ye();
1741
+ Dr(n);
1742
+ const { scrollToPage: r } = _n(), {
1743
1743
  virtualScrollRef: a,
1744
1744
  getVirtualScrollRef: s,
1745
1745
  getPageScrollElementRef: c,
@@ -1748,12 +1748,12 @@ const $o = ({ widths: t, heights: e }) => {
1748
1748
  virtualScrollableElementRef: d,
1749
1749
  totalInnerDimensions: f,
1750
1750
  pageScrollElementRef: h
1751
- } = Ye(), g = W(!0), { nextPage: _, prevPage: b, setFocusedPage: v, focusedPage: w } = ce(), { scrollMode: m } = Oe(), { viewMode: T } = Je(), I = W(null), { loading: p } = X(), { LoaderImageComponent: P } = dr(), C = W(
1751
+ } = Ye(), g = W(!0), { nextPage: _, prevPage: b, setFocusedPage: v, focusedPage: w } = ce(), { scrollMode: m } = Oe(), { viewMode: T } = Je(), I = W(null), { loading: p } = X(), { LoaderImageComponent: P } = pn(), C = W(
1752
1752
  f
1753
1753
  ), S = W({
1754
1754
  viewMode: T,
1755
1755
  scrollMode: m
1756
- }), A = W(!1), R = W(), { isFullScreen: D } = un(), {
1756
+ }), A = W(!1), R = W(), { isFullScreen: D } = ur(), {
1757
1757
  pageDimension: L,
1758
1758
  rowCount: F,
1759
1759
  rowHeight: E,
@@ -1761,21 +1761,21 @@ const $o = ({ widths: t, heights: e }) => {
1761
1761
  columnWidth: N,
1762
1762
  estimatedColumnWidth: G,
1763
1763
  estimatedRowHeight: U
1764
- } = Wo(), Z = vt(f, 100), [ee, j] = $({}), J = vt(ee, 100), { isScrolling: ae } = Qe(), re = W(), B = W({
1764
+ } = Wo(), Z = vt(f, 100), [ee, j] = $({}), J = vt(ee, 100), { isScrolling: ae } = Qe(), ne = W(), B = W({
1765
1765
  scrollTop: 0,
1766
1766
  scrollLeft: 0
1767
1767
  });
1768
- Fn(r);
1769
- const { isPressed: Y } = zn(), { selectionMode: ue } = cn(), { initializeGrabScroll: be, resetGrabState: De } = An({
1768
+ Fr(n);
1769
+ const { isPressed: Y } = zr(), { selectionMode: ue } = cr(), { initializeGrabScroll: be, resetGrabState: De } = Ar({
1770
1770
  isPressed: Y
1771
- }), de = k(() => ue === an.HAND, [ue]), pe = x((M, H) => {
1771
+ }), de = k(() => ue === ar.HAND, [ue]), pe = x((M, H) => {
1772
1772
  j((Q) => H > -1 ? { ...Q, [M]: Math.round(H * 100) } : (delete Q[M], Q));
1773
1773
  }, []), ge = k(() => ({
1774
1774
  columnCount: y,
1775
1775
  handleIntersectRatioChange: pe
1776
1776
  }), [y, pe]), Ce = x(
1777
1777
  (M) => {
1778
- const H = document.activeElement !== r;
1778
+ const H = document.activeElement !== n;
1779
1779
  !D && H || (["ArrowUp", "ArrowLeft"].includes(M.key) ? (M.preventDefault(), b()) : ["ArrowDown", "ArrowRight"].includes(M.key) && (M.preventDefault(), _()));
1780
1780
  },
1781
1781
  [_, b, D, m]
@@ -1803,33 +1803,33 @@ const $o = ({ widths: t, heights: e }) => {
1803
1803
  };
1804
1804
  },
1805
1805
  [d]
1806
- ), Br = x(
1806
+ ), Kn = x(
1807
1807
  (M, H) => {
1808
1808
  if (ae.current)
1809
1809
  return;
1810
1810
  if (S.current.viewMode !== T || S.current.scrollMode !== m) {
1811
- re.current && clearTimeout(re.current), j({}), A.current = !0, n(w), m === K.HORIZONTAL_SCROLLING && (a == null || a.scrollTo({
1811
+ ne.current && clearTimeout(ne.current), j({}), A.current = !0, r(w), m === K.HORIZONTAL_SCROLLING && (a == null || a.scrollTo({
1812
1812
  scrollTop: 0
1813
- })), re.current = setTimeout(() => {
1813
+ })), ne.current = setTimeout(() => {
1814
1814
  requestAnimationFrame(() => {
1815
1815
  S.current = { viewMode: T, scrollMode: m };
1816
1816
  });
1817
1817
  }, 100);
1818
1818
  return;
1819
1819
  }
1820
- const se = M.scrollTop, rt = M.scrollLeft;
1820
+ const se = M.scrollTop, nt = M.scrollLeft;
1821
1821
  if (!H.height || !H.width)
1822
1822
  return;
1823
1823
  A.current = !0;
1824
- const { height: Te, width: nt } = H, { height: Dt, width: zt } = C.current;
1825
- if (Dt === Te && zt === nt)
1824
+ const { height: Te, width: rt } = H, { height: Dt, width: zt } = C.current;
1825
+ if (Dt === Te && zt === rt)
1826
1826
  return;
1827
- const Yr = se / Dt * Te, Qr = rt / zt * nt, en = Math.round(Math.min(Yr, Te)) || 0, tn = Math.round(Math.min(Qr, nt)) || 0;
1827
+ const Qn = se / Dt * Te, er = nt / zt * rt, tr = Math.round(Math.min(Qn, Te)) || 0, nr = Math.round(Math.min(er, rt)) || 0;
1828
1828
  R.current = setTimeout(() => {
1829
1829
  requestAnimationFrame(() => {
1830
1830
  a == null || a.scrollTo({
1831
- scrollTop: en,
1832
- scrollLeft: tn
1831
+ scrollTop: tr,
1832
+ scrollLeft: nr
1833
1833
  });
1834
1834
  });
1835
1835
  }, 0), C.current = {
@@ -1842,18 +1842,18 @@ const $o = ({ widths: t, heights: e }) => {
1842
1842
  O(() => {
1843
1843
  clearTimeout(R.current);
1844
1844
  const M = Array.from({ length: F }).reduce(
1845
- (se, rt, Te) => se + E(Te),
1845
+ (se, nt, Te) => se + E(Te),
1846
1846
  0
1847
1847
  ), H = Array.from({ length: y }).reduce(
1848
- (se, rt, Te) => se + N(Te),
1848
+ (se, nt, Te) => se + N(Te),
1849
1849
  0
1850
1850
  ), Q = tt(H, M);
1851
- B.current = Q, Br(Q, { height: M, width: H }), l({
1851
+ B.current = Q, Kn(Q, { height: M, width: H }), l({
1852
1852
  height: M,
1853
1853
  width: H
1854
1854
  });
1855
1855
  }, [L, F, y]);
1856
- const Kr = x((M) => {
1856
+ const Xn = x((M) => {
1857
1857
  B.current = {
1858
1858
  scrollTop: M.scrollTop,
1859
1859
  scrollLeft: M.scrollLeft
@@ -1868,12 +1868,12 @@ const $o = ({ widths: t, heights: e }) => {
1868
1868
  Q < se[1] && (H = Number(se[0]), Q = se[1]);
1869
1869
  }), H && v(H);
1870
1870
  }, [J, v]), O(() => () => {
1871
- re.current && clearTimeout(re.current);
1871
+ ne.current && clearTimeout(ne.current);
1872
1872
  }, []);
1873
- const Xr = k(() => oe(he["rp-pages-container"], {
1873
+ const Jn = k(() => oe(he["rp-pages-container"], {
1874
1874
  [he["rp-cursor-grab"]]: de && !Y,
1875
1875
  [he["rp-cursor-grabbing"]]: de && Y
1876
- }), [de, Y]), Jr = x(
1876
+ }), [de, Y]), Yn = x(
1877
1877
  (M) => {
1878
1878
  if (de && M) {
1879
1879
  const H = oe(he["rp-pages"]), Q = document.querySelector(`.${H}`);
@@ -1916,7 +1916,7 @@ const $o = ({ widths: t, heights: e }) => {
1916
1916
  h,
1917
1917
  v,
1918
1918
  Z
1919
- ]), /* @__PURE__ */ i("div", { ref: o, tabIndex: -1, className: Xr, children: /* @__PURE__ */ i(Ho, { style: { minHeight: "50px" }, children: ({ width: M, height: H }) => /* @__PURE__ */ i("div", { "data-rp": "pages", ref: Jr, style: { width: M, height: H }, children: m === K.PAGE_SCROLLING ? /* @__PURE__ */ i(
1919
+ ]), /* @__PURE__ */ i("div", { ref: o, tabIndex: -1, className: Jn, children: /* @__PURE__ */ i(Ho, { style: { minHeight: "50px" }, children: ({ width: M, height: H }) => /* @__PURE__ */ i("div", { "data-rp": "pages", ref: Yn, style: { width: M, height: H }, children: m === K.PAGE_SCROLLING ? /* @__PURE__ */ i(
1920
1920
  "div",
1921
1921
  {
1922
1922
  ref: c,
@@ -1931,7 +1931,7 @@ const $o = ({ widths: t, heights: e }) => {
1931
1931
  itemData: ge,
1932
1932
  outerRef: u,
1933
1933
  innerRef: I,
1934
- onScroll: Kr,
1934
+ onScroll: Xn,
1935
1935
  columnCount: y,
1936
1936
  columnWidth: N,
1937
1937
  rowHeight: E,
@@ -1977,7 +1977,7 @@ const $o = ({ widths: t, heights: e }) => {
1977
1977
  const { nextIcon: t } = fe();
1978
1978
  return t || /* @__PURE__ */ i(ke, { style: { transform: "rotate(180deg" } });
1979
1979
  }, Zo = () => {
1980
- const { focusedPage: t, totalPages: e, setFocusedPage: r, nextPage: o, prevPage: n, goToPage: a } = ce(), [s, c] = $(t.toString()), { pageNavigationTool: u = !0 } = _e(), { isSmallScreen: l } = xe(), { localeMessages: d } = me();
1980
+ const { focusedPage: t, totalPages: e, setFocusedPage: n, nextPage: o, prevPage: r, goToPage: a } = ce(), [s, c] = $(t.toString()), { pageNavigationTool: u = !0 } = _e(), { isSmallScreen: l } = xe(), { localeMessages: d } = me();
1981
1981
  O(() => {
1982
1982
  c(t.toString());
1983
1983
  }, [t]);
@@ -2001,22 +2001,22 @@ const $o = ({ widths: t, heights: e }) => {
2001
2001
  total: e,
2002
2002
  current: t,
2003
2003
  nextPage: o,
2004
- prevPage: n,
2004
+ prevPage: r,
2005
2005
  goToPage: a,
2006
- changePage: r
2006
+ changePage: n
2007
2007
  }
2008
2008
  ) : u ? /* @__PURE__ */ z("div", { className: ht["rp-paginate"], children: [
2009
2009
  !l && /* @__PURE__ */ i(q, { content: d == null ? void 0 : d.previousPageTooltip, children: /* @__PURE__ */ i(
2010
2010
  te,
2011
2011
  {
2012
- onClick: n,
2012
+ onClick: r,
2013
2013
  "aria-label": d == null ? void 0 : d.previousPageTooltip,
2014
2014
  "aria-disabled": t === 1,
2015
2015
  children: /* @__PURE__ */ i(Uo, {})
2016
2016
  }
2017
2017
  ) }),
2018
2018
  /* @__PURE__ */ i(q, { content: d == null ? void 0 : d.currentPageTooltip, children: /* @__PURE__ */ i(
2019
- sr,
2019
+ cn,
2020
2020
  {
2021
2021
  onKeyDown: _,
2022
2022
  onBlur: g,
@@ -2040,17 +2040,17 @@ const $o = ({ widths: t, heights: e }) => {
2040
2040
  ) })
2041
2041
  ] }) : null;
2042
2042
  };
2043
- var Lt = "Dialog", [xr, ws] = Hn(Lt), [jo, le] = xr(Lt), Rr = (t) => {
2043
+ var Lt = "Dialog", [Rn, ws] = Hr(Lt), [jo, le] = Rn(Lt), Ln = (t) => {
2044
2044
  const {
2045
2045
  __scopeDialog: e,
2046
- children: r,
2046
+ children: n,
2047
2047
  open: o,
2048
- defaultOpen: n,
2048
+ defaultOpen: r,
2049
2049
  onOpenChange: a,
2050
2050
  modal: s = !0
2051
- } = t, c = V.useRef(null), u = V.useRef(null), [l = !1, d] = Vn({
2051
+ } = t, c = V.useRef(null), u = V.useRef(null), [l = !1, d] = Vr({
2052
2052
  prop: o,
2053
- defaultProp: n,
2053
+ defaultProp: r,
2054
2054
  onChange: a
2055
2055
  });
2056
2056
  return /* @__PURE__ */ i(
@@ -2066,54 +2066,54 @@ var Lt = "Dialog", [xr, ws] = Hn(Lt), [jo, le] = xr(Lt), Rr = (t) => {
2066
2066
  onOpenChange: d,
2067
2067
  onOpenToggle: V.useCallback(() => d((f) => !f), [d]),
2068
2068
  modal: s,
2069
- children: r
2069
+ children: n
2070
2070
  }
2071
2071
  );
2072
2072
  };
2073
- Rr.displayName = Lt;
2074
- var Lr = "DialogTrigger", Bo = V.forwardRef(
2073
+ Ln.displayName = Lt;
2074
+ var Nn = "DialogTrigger", Bo = V.forwardRef(
2075
2075
  (t, e) => {
2076
- const { __scopeDialog: r, ...o } = t, n = le(Lr, r), a = It(e, n.triggerRef);
2076
+ const { __scopeDialog: n, ...o } = t, r = le(Nn, n), a = It(e, r.triggerRef);
2077
2077
  return /* @__PURE__ */ i(
2078
2078
  We.button,
2079
2079
  {
2080
2080
  type: "button",
2081
2081
  "aria-haspopup": "dialog",
2082
- "aria-expanded": n.open,
2083
- "aria-controls": n.contentId,
2084
- "data-state": Ot(n.open),
2082
+ "aria-expanded": r.open,
2083
+ "aria-controls": r.contentId,
2084
+ "data-state": Ot(r.open),
2085
2085
  ...o,
2086
2086
  ref: a,
2087
- onClick: Fe(t.onClick, n.onOpenToggle)
2087
+ onClick: Fe(t.onClick, r.onOpenToggle)
2088
2088
  }
2089
2089
  );
2090
2090
  }
2091
2091
  );
2092
- Bo.displayName = Lr;
2093
- var Nt = "DialogPortal", [Ko, Nr] = xr(Nt, {
2092
+ Bo.displayName = Nn;
2093
+ var Nt = "DialogPortal", [Ko, En] = Rn(Nt, {
2094
2094
  forceMount: void 0
2095
- }), Er = (t) => {
2096
- const { __scopeDialog: e, forceMount: r, children: o, container: n } = t, a = le(Nt, e);
2097
- return /* @__PURE__ */ i(Ko, { scope: e, forceMount: r, children: V.Children.map(o, (s) => /* @__PURE__ */ i(yt, { present: r || a.open, children: /* @__PURE__ */ i(Kn, { asChild: !0, container: n, children: s }) })) });
2095
+ }), On = (t) => {
2096
+ const { __scopeDialog: e, forceMount: n, children: o, container: r } = t, a = le(Nt, e);
2097
+ return /* @__PURE__ */ i(Ko, { scope: e, forceMount: n, children: V.Children.map(o, (s) => /* @__PURE__ */ i(yt, { present: n || a.open, children: /* @__PURE__ */ i(Kr, { asChild: !0, container: r, children: s }) })) });
2098
2098
  };
2099
- Er.displayName = Nt;
2100
- var qe = "DialogOverlay", Or = V.forwardRef(
2099
+ On.displayName = Nt;
2100
+ var qe = "DialogOverlay", Dn = V.forwardRef(
2101
2101
  (t, e) => {
2102
- const r = Nr(qe, t.__scopeDialog), { forceMount: o = r.forceMount, ...n } = t, a = le(qe, t.__scopeDialog);
2103
- return a.modal ? /* @__PURE__ */ i(yt, { present: o || a.open, children: /* @__PURE__ */ i(Xo, { ...n, ref: e }) }) : null;
2102
+ const n = En(qe, t.__scopeDialog), { forceMount: o = n.forceMount, ...r } = t, a = le(qe, t.__scopeDialog);
2103
+ return a.modal ? /* @__PURE__ */ i(yt, { present: o || a.open, children: /* @__PURE__ */ i(Xo, { ...r, ref: e }) }) : null;
2104
2104
  }
2105
2105
  );
2106
- Or.displayName = qe;
2106
+ Dn.displayName = qe;
2107
2107
  var Xo = V.forwardRef(
2108
2108
  (t, e) => {
2109
- const { __scopeDialog: r, ...o } = t, n = le(qe, r);
2109
+ const { __scopeDialog: n, ...o } = t, r = le(qe, n);
2110
2110
  return (
2111
2111
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
2112
2112
  // ie. when `Overlay` and `Content` are siblings
2113
- /* @__PURE__ */ i(qn, { as: $n, allowPinchZoom: !0, shards: [n.contentRef], children: /* @__PURE__ */ i(
2113
+ /* @__PURE__ */ i(qr, { as: $r, allowPinchZoom: !0, shards: [r.contentRef], children: /* @__PURE__ */ i(
2114
2114
  We.div,
2115
2115
  {
2116
- "data-state": Ot(n.open),
2116
+ "data-state": Ot(r.open),
2117
2117
  ...o,
2118
2118
  ref: e,
2119
2119
  style: { pointerEvents: "auto", ...o.style }
@@ -2121,30 +2121,30 @@ var Xo = V.forwardRef(
2121
2121
  ) })
2122
2122
  );
2123
2123
  }
2124
- ), Ie = "DialogContent", Dr = V.forwardRef(
2124
+ ), Ie = "DialogContent", zn = V.forwardRef(
2125
2125
  (t, e) => {
2126
- const r = Nr(Ie, t.__scopeDialog), { forceMount: o = r.forceMount, ...n } = t, a = le(Ie, t.__scopeDialog);
2127
- return /* @__PURE__ */ i(yt, { present: o || a.open, children: a.modal ? /* @__PURE__ */ i(Jo, { ...n, ref: e }) : /* @__PURE__ */ i(Yo, { ...n, ref: e }) });
2126
+ const n = En(Ie, t.__scopeDialog), { forceMount: o = n.forceMount, ...r } = t, a = le(Ie, t.__scopeDialog);
2127
+ return /* @__PURE__ */ i(yt, { present: o || a.open, children: a.modal ? /* @__PURE__ */ i(Jo, { ...r, ref: e }) : /* @__PURE__ */ i(Yo, { ...r, ref: e }) });
2128
2128
  }
2129
2129
  );
2130
- Dr.displayName = Ie;
2130
+ zn.displayName = Ie;
2131
2131
  var Jo = V.forwardRef(
2132
2132
  (t, e) => {
2133
- const r = le(Ie, t.__scopeDialog), o = V.useRef(null), n = It(e, r.contentRef, o);
2133
+ const n = le(Ie, t.__scopeDialog), o = V.useRef(null), r = It(e, n.contentRef, o);
2134
2134
  return V.useEffect(() => {
2135
2135
  const a = o.current;
2136
2136
  if (a)
2137
- return Zn(a);
2137
+ return Zr(a);
2138
2138
  }, []), /* @__PURE__ */ i(
2139
- zr,
2139
+ An,
2140
2140
  {
2141
2141
  ...t,
2142
- ref: n,
2143
- trapFocus: r.open,
2142
+ ref: r,
2143
+ trapFocus: n.open,
2144
2144
  disableOutsidePointerEvents: !0,
2145
2145
  onCloseAutoFocus: Fe(t.onCloseAutoFocus, (a) => {
2146
2146
  var s;
2147
- a.preventDefault(), (s = r.triggerRef.current) == null || s.focus();
2147
+ a.preventDefault(), (s = n.triggerRef.current) == null || s.focus();
2148
2148
  }),
2149
2149
  onPointerDownOutside: Fe(t.onPointerDownOutside, (a) => {
2150
2150
  const s = a.detail.originalEvent, c = s.button === 0 && s.ctrlKey === !0;
@@ -2159,9 +2159,9 @@ var Jo = V.forwardRef(
2159
2159
  }
2160
2160
  ), Yo = V.forwardRef(
2161
2161
  (t, e) => {
2162
- const r = le(Ie, t.__scopeDialog), o = V.useRef(!1), n = V.useRef(!1);
2162
+ const n = le(Ie, t.__scopeDialog), o = V.useRef(!1), r = V.useRef(!1);
2163
2163
  return /* @__PURE__ */ i(
2164
- zr,
2164
+ An,
2165
2165
  {
2166
2166
  ...t,
2167
2167
  ref: e,
@@ -2169,31 +2169,31 @@ var Jo = V.forwardRef(
2169
2169
  disableOutsidePointerEvents: !1,
2170
2170
  onCloseAutoFocus: (a) => {
2171
2171
  var s, c;
2172
- (s = t.onCloseAutoFocus) == null || s.call(t, a), a.defaultPrevented || (o.current || (c = r.triggerRef.current) == null || c.focus(), a.preventDefault()), o.current = !1, n.current = !1;
2172
+ (s = t.onCloseAutoFocus) == null || s.call(t, a), a.defaultPrevented || (o.current || (c = n.triggerRef.current) == null || c.focus(), a.preventDefault()), o.current = !1, r.current = !1;
2173
2173
  },
2174
2174
  onInteractOutside: (a) => {
2175
2175
  var u, l;
2176
- (u = t.onInteractOutside) == null || u.call(t, a), a.defaultPrevented || (o.current = !0, a.detail.originalEvent.type === "pointerdown" && (n.current = !0));
2176
+ (u = t.onInteractOutside) == null || u.call(t, a), a.defaultPrevented || (o.current = !0, a.detail.originalEvent.type === "pointerdown" && (r.current = !0));
2177
2177
  const s = a.target;
2178
- ((l = r.triggerRef.current) == null ? void 0 : l.contains(s)) && a.preventDefault(), a.detail.originalEvent.type === "focusin" && n.current && a.preventDefault();
2178
+ ((l = n.triggerRef.current) == null ? void 0 : l.contains(s)) && a.preventDefault(), a.detail.originalEvent.type === "focusin" && r.current && a.preventDefault();
2179
2179
  }
2180
2180
  }
2181
2181
  );
2182
2182
  }
2183
- ), zr = V.forwardRef(
2183
+ ), An = V.forwardRef(
2184
2184
  (t, e) => {
2185
- const { __scopeDialog: r, trapFocus: o, onOpenAutoFocus: n, onCloseAutoFocus: a, ...s } = t, c = le(Ie, r), u = V.useRef(null), l = It(e, u);
2186
- return jn(), /* @__PURE__ */ z(Ee, { children: [
2185
+ const { __scopeDialog: n, trapFocus: o, onOpenAutoFocus: r, onCloseAutoFocus: a, ...s } = t, c = le(Ie, n), u = V.useRef(null), l = It(e, u);
2186
+ return jr(), /* @__PURE__ */ z(Ee, { children: [
2187
2187
  /* @__PURE__ */ i(
2188
- Bn,
2188
+ Br,
2189
2189
  {
2190
2190
  asChild: !0,
2191
2191
  loop: !0,
2192
2192
  trapped: o,
2193
- onMountAutoFocus: n,
2193
+ onMountAutoFocus: r,
2194
2194
  onUnmountAutoFocus: a,
2195
2195
  children: /* @__PURE__ */ i(
2196
- Un,
2196
+ Ur,
2197
2197
  {
2198
2198
  role: "dialog",
2199
2199
  id: c.contentId,
@@ -2209,63 +2209,63 @@ var Jo = V.forwardRef(
2209
2209
  ),
2210
2210
  /* @__PURE__ */ z(Ee, { children: [
2211
2211
  /* @__PURE__ */ i(ei, { titleId: c.titleId }),
2212
- /* @__PURE__ */ i(ri, { contentRef: u, descriptionId: c.descriptionId })
2212
+ /* @__PURE__ */ i(ni, { contentRef: u, descriptionId: c.descriptionId })
2213
2213
  ] })
2214
2214
  ] });
2215
2215
  }
2216
- ), Et = "DialogTitle", Ar = V.forwardRef(
2216
+ ), Et = "DialogTitle", Fn = V.forwardRef(
2217
2217
  (t, e) => {
2218
- const { __scopeDialog: r, ...o } = t, n = le(Et, r);
2219
- return /* @__PURE__ */ i(We.h2, { id: n.titleId, ...o, ref: e });
2218
+ const { __scopeDialog: n, ...o } = t, r = le(Et, n);
2219
+ return /* @__PURE__ */ i(We.h2, { id: r.titleId, ...o, ref: e });
2220
2220
  }
2221
2221
  );
2222
- Ar.displayName = Et;
2223
- var Fr = "DialogDescription", Qo = V.forwardRef(
2222
+ Fn.displayName = Et;
2223
+ var kn = "DialogDescription", Qo = V.forwardRef(
2224
2224
  (t, e) => {
2225
- const { __scopeDialog: r, ...o } = t, n = le(Fr, r);
2226
- return /* @__PURE__ */ i(We.p, { id: n.descriptionId, ...o, ref: e });
2225
+ const { __scopeDialog: n, ...o } = t, r = le(kn, n);
2226
+ return /* @__PURE__ */ i(We.p, { id: r.descriptionId, ...o, ref: e });
2227
2227
  }
2228
2228
  );
2229
- Qo.displayName = Fr;
2230
- var kr = "DialogClose", Wr = V.forwardRef(
2229
+ Qo.displayName = kn;
2230
+ var Wn = "DialogClose", Mn = V.forwardRef(
2231
2231
  (t, e) => {
2232
- const { __scopeDialog: r, ...o } = t, n = le(kr, r);
2232
+ const { __scopeDialog: n, ...o } = t, r = le(Wn, n);
2233
2233
  return /* @__PURE__ */ i(
2234
2234
  We.button,
2235
2235
  {
2236
2236
  type: "button",
2237
2237
  ...o,
2238
2238
  ref: e,
2239
- onClick: Fe(t.onClick, () => n.onOpenChange(!1))
2239
+ onClick: Fe(t.onClick, () => r.onOpenChange(!1))
2240
2240
  }
2241
2241
  );
2242
2242
  }
2243
2243
  );
2244
- Wr.displayName = kr;
2244
+ Mn.displayName = Wn;
2245
2245
  function Ot(t) {
2246
2246
  return t ? "open" : "closed";
2247
2247
  }
2248
- var Mr = "DialogTitleWarning", [bs, Hr] = Gn(Mr, {
2248
+ var Hn = "DialogTitleWarning", [bs, $n] = Gr(Hn, {
2249
2249
  contentName: Ie,
2250
2250
  titleName: Et,
2251
2251
  docsSlug: "dialog"
2252
2252
  }), ei = ({ titleId: t }) => {
2253
- const e = Hr(Mr), r = `\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
2253
+ const e = $n(Hn), n = `\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
2254
2254
 
2255
2255
  If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
2256
2256
 
2257
2257
  For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;
2258
2258
  return V.useEffect(() => {
2259
- t && (document.getElementById(t) || console.error(r));
2260
- }, [r, t]), null;
2261
- }, ti = "DialogDescriptionWarning", ri = ({ contentRef: t, descriptionId: e }) => {
2262
- const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Hr(ti).contentName}}.`;
2259
+ t && (document.getElementById(t) || console.error(n));
2260
+ }, [n, t]), null;
2261
+ }, ti = "DialogDescriptionWarning", ni = ({ contentRef: t, descriptionId: e }) => {
2262
+ const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${$n(ti).contentName}}.`;
2263
2263
  return V.useEffect(() => {
2264
2264
  var a;
2265
- const n = (a = t.current) == null ? void 0 : a.getAttribute("aria-describedby");
2266
- e && n && (document.getElementById(e) || console.warn(o));
2265
+ const r = (a = t.current) == null ? void 0 : a.getAttribute("aria-describedby");
2266
+ e && r && (document.getElementById(e) || console.warn(o));
2267
2267
  }, [o, t, e]), null;
2268
- }, ni = Rr, oi = Er, ii = Or, ai = Dr, si = Ar, ci = Wr;
2268
+ }, ri = Ln, oi = On, ii = Dn, ai = zn, si = Fn, ci = Mn;
2269
2269
  const Se = {
2270
2270
  "rp-dialog-wrapper": "_rp-dialog-wrapper_slqo7_1",
2271
2271
  "rp-dialog-overlay": "_rp-dialog-overlay_slqo7_7",
@@ -2275,7 +2275,7 @@ const Se = {
2275
2275
  "rp-dialog-close": "_rp-dialog-close_slqo7_47",
2276
2276
  "rp-properties-divider": "_rp-properties-divider_slqo7_55"
2277
2277
  }, li = () => {
2278
- const { pdfProperties: t } = X(), { container: e } = ye(), { activeDocumentProperties: r, setActiveDocumentProperties: o } = Jn(), { localeMessages: n } = me(), a = k(() => {
2278
+ const { pdfProperties: t } = X(), { container: e } = ye(), { activeDocumentProperties: n, setActiveDocumentProperties: o } = Jr(), { localeMessages: r } = me(), a = k(() => {
2279
2279
  if (!t)
2280
2280
  return [];
2281
2281
  const {
@@ -2293,42 +2293,42 @@ const Se = {
2293
2293
  pageCount: w
2294
2294
  } = t;
2295
2295
  return [
2296
- { label: n == null ? void 0 : n.propertiesFilenameLabel, value: c },
2297
- { label: n == null ? void 0 : n.propertiesFileSizeLabel, value: s },
2296
+ { label: r == null ? void 0 : r.propertiesFilenameLabel, value: c },
2297
+ { label: r == null ? void 0 : r.propertiesFileSizeLabel, value: s },
2298
2298
  { separate: !0 },
2299
- { label: n == null ? void 0 : n.propertiesTitleLabel, value: u },
2300
- { label: n == null ? void 0 : n.propertiesAuthorLabel, value: l },
2301
- { label: n == null ? void 0 : n.propertiesSubjectLabel, value: d },
2302
- { label: n == null ? void 0 : n.propertiesKeywordLabel, value: g },
2303
- { label: n == null ? void 0 : n.propertiesCreatorLabel, value: h },
2299
+ { label: r == null ? void 0 : r.propertiesTitleLabel, value: u },
2300
+ { label: r == null ? void 0 : r.propertiesAuthorLabel, value: l },
2301
+ { label: r == null ? void 0 : r.propertiesSubjectLabel, value: d },
2302
+ { label: r == null ? void 0 : r.propertiesKeywordLabel, value: g },
2303
+ { label: r == null ? void 0 : r.propertiesCreatorLabel, value: h },
2304
2304
  {
2305
- label: n == null ? void 0 : n.propertiesCreateOnLabel,
2305
+ label: r == null ? void 0 : r.propertiesCreateOnLabel,
2306
2306
  value: f ? Ht(f) : ""
2307
2307
  },
2308
2308
  {
2309
- label: n == null ? void 0 : n.propertiesModifiedOnLabel,
2309
+ label: r == null ? void 0 : r.propertiesModifiedOnLabel,
2310
2310
  value: _ ? Ht(_) : ""
2311
2311
  },
2312
2312
  { separate: !0 },
2313
- { label: n == null ? void 0 : n.propertiesPDFProducerLabel, value: b },
2314
- { label: n == null ? void 0 : n.propertiesPDFVersionLabel, value: v },
2315
- { label: n == null ? void 0 : n.propertiesPageCountLabel, value: w }
2313
+ { label: r == null ? void 0 : r.propertiesPDFProducerLabel, value: b },
2314
+ { label: r == null ? void 0 : r.propertiesPDFVersionLabel, value: v },
2315
+ { label: r == null ? void 0 : r.propertiesPageCountLabel, value: w }
2316
2316
  ];
2317
- }, [t, n]);
2318
- return /* @__PURE__ */ i(ni, { open: r, onOpenChange: o, children: /* @__PURE__ */ i(oi, { container: e, children: /* @__PURE__ */ z("div", { className: Se["rp-dialog-wrapper"], children: [
2317
+ }, [t, r]);
2318
+ return /* @__PURE__ */ i(ri, { open: n, onOpenChange: o, children: /* @__PURE__ */ i(oi, { container: e, children: /* @__PURE__ */ z("div", { className: Se["rp-dialog-wrapper"], children: [
2319
2319
  /* @__PURE__ */ i(ii, { className: Se["rp-dialog-overlay"] }),
2320
2320
  /* @__PURE__ */ z(ai, { className: Se["rp-document-dialog"], children: [
2321
- /* @__PURE__ */ i(si, { className: Se["rp-dialog-title"], children: n == null ? void 0 : n.documentPropertiesLabel }),
2322
- /* @__PURE__ */ i("div", { className: Se["rp-document-properties"], children: a.map((s, c) => /* @__PURE__ */ i("div", { children: s.separate ? /* @__PURE__ */ i("div", { className: Se["rp-properties-divider"] }) : /* @__PURE__ */ i(Xn, { label: s.label, value: s.value }) }, c)) }),
2323
- /* @__PURE__ */ i(ci, { asChild: !0, className: Se["rp-dialog-close"], children: /* @__PURE__ */ i(mr, {}) })
2321
+ /* @__PURE__ */ i(si, { className: Se["rp-dialog-title"], children: r == null ? void 0 : r.documentPropertiesLabel }),
2322
+ /* @__PURE__ */ i("div", { className: Se["rp-document-properties"], children: a.map((s, c) => /* @__PURE__ */ i("div", { children: s.separate ? /* @__PURE__ */ i("div", { className: Se["rp-properties-divider"] }) : /* @__PURE__ */ i(Xr, { label: s.label, value: s.value }) }, c)) }),
2323
+ /* @__PURE__ */ i(ci, { asChild: !0, className: Se["rp-dialog-close"], children: /* @__PURE__ */ i(fn, {}) })
2324
2324
  ] })
2325
2325
  ] }) }) });
2326
2326
  }, ui = {
2327
2327
  "rp-other-tool-content": "_rp-other-tool-content_su718_1"
2328
2328
  }, di = (t) => URL.createObjectURL(t), pi = async (t) => {
2329
- const r = await (await fetch(t)).blob();
2330
- return di(r);
2331
- }, $r = () => {
2329
+ const n = await (await fetch(t)).blob();
2330
+ return di(n);
2331
+ }, Gn = () => {
2332
2332
  const { filename: t, pdfSrc: e } = X();
2333
2333
  return { download: x(async () => {
2334
2334
  if (!t || !e)
@@ -2336,30 +2336,30 @@ const Se = {
2336
2336
  const o = document.createElement("a");
2337
2337
  o.href = await pi(e), o.download = t, document.body.appendChild(o), o.click(), document.body.removeChild(o);
2338
2338
  }, [t, e]) };
2339
- }, Gr = () => {
2339
+ }, Vn = () => {
2340
2340
  const { downloadIcon: t } = fe();
2341
- return t || /* @__PURE__ */ i(ro, {});
2342
- }, Vr = ({ children: t, className: e, localeMessages: r }) => /* @__PURE__ */ i(q, { className: e, content: r == null ? void 0 : r.downloadFileTooltip, children: t }), hi = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(Vr, { localeMessages: e, children: /* @__PURE__ */ i(te, { onClick: t, "aria-label": e == null ? void 0 : e.downloadFileTooltip, children: /* @__PURE__ */ i(Gr, {}) }) }), mi = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(we, { onClick: t, children: /* @__PURE__ */ z(Vr, { className: "rp-menu-item", localeMessages: e, children: [
2343
- /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Gr, {}) }),
2341
+ return t || /* @__PURE__ */ i(no, {});
2342
+ }, Un = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(q, { className: e, content: n == null ? void 0 : n.downloadFileTooltip, children: t }), hi = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(Un, { localeMessages: e, children: /* @__PURE__ */ i(te, { onClick: t, "aria-label": e == null ? void 0 : e.downloadFileTooltip, children: /* @__PURE__ */ i(Vn, {}) }) }), mi = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(we, { onClick: t, children: /* @__PURE__ */ z(Un, { className: "rp-menu-item", localeMessages: e, children: [
2343
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Vn, {}) }),
2344
2344
  e == null ? void 0 : e.downloadFileLabel
2345
- ] }) }), Ur = () => {
2346
- const { download: t } = $r(), { downloadTool: e = !0 } = _e(), { isSmallScreen: r } = xe(), { localeMessages: o } = me();
2347
- return e ? r ? /* @__PURE__ */ i(mi, { download: t, localeMessages: o }) : typeof e == "function" ? /* @__PURE__ */ i(e, { download: t }) : e ? /* @__PURE__ */ i(hi, { download: t, localeMessages: o }) : null : null;
2348
- }, qr = () => {
2345
+ ] }) }), qn = () => {
2346
+ const { download: t } = Gn(), { downloadTool: e = !0 } = _e(), { isSmallScreen: n } = xe(), { localeMessages: o } = me();
2347
+ return e ? n ? /* @__PURE__ */ i(mi, { download: t, localeMessages: o }) : typeof e == "function" ? /* @__PURE__ */ i(e, { download: t }) : e ? /* @__PURE__ */ i(hi, { download: t, localeMessages: o }) : null : null;
2348
+ }, Zn = () => {
2349
2349
  const { printIcon: t } = fe();
2350
- return t || /* @__PURE__ */ i(no, {});
2351
- }, Zr = ({ children: t, className: e, localeMessages: r }) => /* @__PURE__ */ i(q, { className: e, content: r == null ? void 0 : r.printTooltip, children: t }), fi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(Zr, { localeMessages: e, children: /* @__PURE__ */ i(te, { onClick: t, "aria-label": e == null ? void 0 : e.printTooltip, children: /* @__PURE__ */ i(qr, {}) }) }), gi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(we, { onClick: t, children: /* @__PURE__ */ z(Zr, { className: "rp-menu-item", localeMessages: e, children: [
2352
- /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(qr, {}) }),
2350
+ return t || /* @__PURE__ */ i(ro, {});
2351
+ }, jn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(q, { className: e, content: n == null ? void 0 : n.printTooltip, children: t }), fi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(jn, { localeMessages: e, children: /* @__PURE__ */ i(te, { onClick: t, "aria-label": e == null ? void 0 : e.printTooltip, children: /* @__PURE__ */ i(Zn, {}) }) }), gi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(we, { onClick: t, children: /* @__PURE__ */ z(jn, { className: "rp-menu-item", localeMessages: e, children: [
2352
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Zn, {}) }),
2353
2353
  e == null ? void 0 : e.printLabel
2354
- ] }) }), jr = () => {
2355
- const { print: t, cancel: e, setOnProgress: r, setOnComplete: o, setOnError: n, progress: a } = et(), { printTool: s = !0 } = _e(), { isSmallScreen: c } = xe(), { localeMessages: u } = me();
2354
+ ] }) }), Bn = () => {
2355
+ const { print: t, cancel: e, setOnProgress: n, setOnComplete: o, setOnError: r, progress: a } = et(), { printTool: s = !0 } = _e(), { isSmallScreen: c } = xe(), { localeMessages: u } = me();
2356
2356
  return s ? c ? /* @__PURE__ */ i(gi, { print: t, localeMessages: u }) : typeof s == "function" ? /* @__PURE__ */ i(
2357
2357
  s,
2358
2358
  {
2359
2359
  print: t,
2360
2360
  cancel: e,
2361
- setOnProgress: r,
2362
- setOnError: n,
2361
+ setOnProgress: n,
2362
+ setOnError: r,
2363
2363
  setOnComplete: o,
2364
2364
  progress: a
2365
2365
  }
@@ -2368,32 +2368,32 @@ const Se = {
2368
2368
  "rp-go-to-Top": "_rp-go-to-Top_4e0yd_1"
2369
2369
  }, _i = () => {
2370
2370
  const { goToFirstPageIcon: t } = fe();
2371
- return t || /* @__PURE__ */ i(gr, { className: vi["rp-go-to-Top"] });
2371
+ return t || /* @__PURE__ */ i(vn, { className: vi["rp-go-to-Top"] });
2372
2372
  }, wi = () => {
2373
2373
  const { goToLastPageIcon: t } = fe();
2374
- return t || /* @__PURE__ */ i(gr, {});
2375
- }, nr = { width: "100%" }, bi = () => {
2376
- const { goToPage: t, totalPages: e, focusedPage: r } = ce(), { jumpNavigationTool: o = !0 } = _e(), { localeMessages: n } = me(), a = k(() => r === 1, [r]), s = k(() => r === e, [r, e]), c = x(() => {
2374
+ return t || /* @__PURE__ */ i(vn, {});
2375
+ }, rn = { width: "100%" }, bi = () => {
2376
+ const { goToPage: t, totalPages: e, focusedPage: n } = ce(), { jumpNavigationTool: o = !0 } = _e(), { localeMessages: r } = me(), a = k(() => n === 1, [n]), s = k(() => n === e, [n, e]), c = x(() => {
2377
2377
  t(1);
2378
2378
  }, [t]), u = x(() => {
2379
2379
  t(e);
2380
2380
  }, [t, e]);
2381
2381
  return o ? /* @__PURE__ */ z(Ue, { children: [
2382
- /* @__PURE__ */ i(we, { onClick: c, children: /* @__PURE__ */ i(q, { content: n == null ? void 0 : n.firstPageTooltip, style: nr, children: /* @__PURE__ */ z("div", { className: "rp-menu-item", "aria-disabled": a, children: [
2382
+ /* @__PURE__ */ i(we, { onClick: c, children: /* @__PURE__ */ i(q, { content: r == null ? void 0 : r.firstPageTooltip, style: rn, children: /* @__PURE__ */ z("div", { className: "rp-menu-item", "aria-disabled": a, children: [
2383
2383
  /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(_i, {}) }),
2384
- /* @__PURE__ */ i("span", { children: n == null ? void 0 : n.firstPageLabel })
2384
+ /* @__PURE__ */ i("span", { children: r == null ? void 0 : r.firstPageLabel })
2385
2385
  ] }) }) }),
2386
- /* @__PURE__ */ i(we, { onClick: u, children: /* @__PURE__ */ i(q, { content: n == null ? void 0 : n.lastPageTooltip, style: nr, children: /* @__PURE__ */ z("div", { className: "rp-menu-item", "aria-disabled": s, children: [
2386
+ /* @__PURE__ */ i(we, { onClick: u, children: /* @__PURE__ */ i(q, { content: r == null ? void 0 : r.lastPageTooltip, style: rn, children: /* @__PURE__ */ z("div", { className: "rp-menu-item", "aria-disabled": s, children: [
2387
2387
  /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(wi, {}) }),
2388
- /* @__PURE__ */ i("span", { children: n == null ? void 0 : n.lastPageLabel })
2388
+ /* @__PURE__ */ i("span", { children: r == null ? void 0 : r.lastPageLabel })
2389
2389
  ] }) }) }),
2390
2390
  /* @__PURE__ */ i(xt, {})
2391
2391
  ] }) : null;
2392
2392
  }, Ci = () => {
2393
2393
  const { container: t } = ye(), { isSmallScreen: e } = xe(), {
2394
- openFileTool: r,
2394
+ openFileTool: n,
2395
2395
  downloadTool: o,
2396
- documentProperties: n,
2396
+ documentProperties: r,
2397
2397
  scrollModeTool: a,
2398
2398
  rotateTool: s,
2399
2399
  selectionModeTool: c,
@@ -2402,37 +2402,37 @@ const Se = {
2402
2402
  fullscreenTool: d
2403
2403
  } = _e(), { localeMessages: f } = me();
2404
2404
  return k(() => {
2405
- const g = u || s || c || a || n;
2405
+ const g = u || s || c || a || r;
2406
2406
  let _ = !1;
2407
- return e && (_ = !(!r && !o && !l && !d)), g || _;
2407
+ return e && (_ = !(!n && !o && !l && !d)), g || _;
2408
2408
  }, [
2409
- r,
2410
- o,
2411
2409
  n,
2410
+ o,
2411
+ r,
2412
2412
  a,
2413
2413
  s,
2414
2414
  c,
2415
2415
  u,
2416
2416
  e
2417
- ]) ? /* @__PURE__ */ z(Yn, { children: [
2417
+ ]) ? /* @__PURE__ */ z(Yr, { children: [
2418
2418
  /* @__PURE__ */ i(
2419
- hr,
2419
+ mn,
2420
2420
  {
2421
2421
  container: t,
2422
- triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(q, { content: f == null ? void 0 : f.moreOptionTooltip, children: /* @__PURE__ */ i(te, { "aria-label": f == null ? void 0 : f.moreOptionTooltip, children: /* @__PURE__ */ i(Mn, {}) }) }) }),
2422
+ triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(q, { content: f == null ? void 0 : f.moreOptionTooltip, children: /* @__PURE__ */ i(te, { "aria-label": f == null ? void 0 : f.moreOptionTooltip, children: /* @__PURE__ */ i(Mr, {}) }) }) }),
2423
2423
  children: /* @__PURE__ */ z("div", { className: ui["rp-other-tool-content"], "data-rp": "moreOptionsDropdown", children: [
2424
2424
  e && /* @__PURE__ */ z(Ue, { children: [
2425
- /* @__PURE__ */ i(pr, {}),
2426
- /* @__PURE__ */ i(Ur, {}),
2427
- /* @__PURE__ */ i(jr, {}),
2428
- /* @__PURE__ */ i(fr, {}),
2425
+ /* @__PURE__ */ i(hn, {}),
2426
+ /* @__PURE__ */ i(qn, {}),
2427
+ /* @__PURE__ */ i(Bn, {}),
2428
+ /* @__PURE__ */ i(gn, {}),
2429
2429
  /* @__PURE__ */ i(xt, {})
2430
2430
  ] }),
2431
2431
  /* @__PURE__ */ i(bi, {}),
2432
2432
  /* @__PURE__ */ i(eo, {}),
2433
2433
  /* @__PURE__ */ i(oo, {}),
2434
2434
  /* @__PURE__ */ i(to, {}),
2435
- /* @__PURE__ */ i(Qn, {})
2435
+ /* @__PURE__ */ i(Qr, {})
2436
2436
  ] })
2437
2437
  }
2438
2438
  ),
@@ -2441,12 +2441,12 @@ const Se = {
2441
2441
  }, Ti = () => {
2442
2442
  const { isSmallScreen: t } = xe();
2443
2443
  return /* @__PURE__ */ z(Ee, { children: [
2444
- /* @__PURE__ */ i(Wn, {}),
2444
+ /* @__PURE__ */ i(Wr, {}),
2445
2445
  !t && /* @__PURE__ */ z(Ee, { children: [
2446
- /* @__PURE__ */ i(pr, {}),
2447
- /* @__PURE__ */ i(Ur, {}),
2448
- /* @__PURE__ */ i(jr, {}),
2449
- /* @__PURE__ */ i(fr, {})
2446
+ /* @__PURE__ */ i(hn, {}),
2447
+ /* @__PURE__ */ i(qn, {}),
2448
+ /* @__PURE__ */ i(Bn, {}),
2449
+ /* @__PURE__ */ i(gn, {})
2450
2450
  ] }),
2451
2451
  /* @__PURE__ */ i(Ci, {})
2452
2452
  ] });
@@ -2463,7 +2463,7 @@ const Se = {
2463
2463
  const { zoomOutIcon: t } = fe();
2464
2464
  return t || /* @__PURE__ */ i(ao, {});
2465
2465
  }, xi = () => {
2466
- const { zoomLevel: t, setZoomLevel: e } = Xe(), { container: r, contentRef: o } = ye(), { zoomTool: n = !0 } = _e(), { focusedPage: a } = ce(), { rotate: s } = Ke(), { pages: c } = X(), { isSmallScreen: u } = xe(), { localeMessages: l } = me(), d = x(() => {
2466
+ const { zoomLevel: t, setZoomLevel: e } = Xe(), { container: n, contentRef: o } = ye(), { zoomTool: r = !0 } = _e(), { focusedPage: a } = ce(), { rotate: s } = Ke(), { pages: c } = X(), { isSmallScreen: u } = xe(), { localeMessages: l } = me(), d = x(() => {
2467
2467
  e((w) => {
2468
2468
  const m = Math.floor(w / 25) * 25;
2469
2469
  return Math.min(m + 25, mt);
@@ -2488,7 +2488,7 @@ const Se = {
2488
2488
  },
2489
2489
  [e, b]
2490
2490
  );
2491
- return typeof n != "boolean" ? /* @__PURE__ */ i(n, { zoomLevel: t, setZoomLevel: e }) : n ? /* @__PURE__ */ z("div", { className: Le["rp-zoom-wrapper"], children: [
2491
+ return typeof r != "boolean" ? /* @__PURE__ */ i(r, { zoomLevel: t, setZoomLevel: e }) : r ? /* @__PURE__ */ z("div", { className: Le["rp-zoom-wrapper"], children: [
2492
2492
  /* @__PURE__ */ i(q, { content: l == null ? void 0 : l.zoomOutTooltip, children: /* @__PURE__ */ i(
2493
2493
  te,
2494
2494
  {
@@ -2499,9 +2499,9 @@ const Se = {
2499
2499
  }
2500
2500
  ) }),
2501
2501
  !u && /* @__PURE__ */ i(
2502
- hr,
2502
+ mn,
2503
2503
  {
2504
- container: r,
2504
+ container: n,
2505
2505
  triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(q, { content: l == null ? void 0 : l.zoomSelectTooltip, children: /* @__PURE__ */ z(
2506
2506
  te,
2507
2507
  {
@@ -2540,7 +2540,7 @@ const Se = {
2540
2540
  }
2541
2541
  ) })
2542
2542
  ] }) : null;
2543
- }, ne = {
2543
+ }, re = {
2544
2544
  "rp-search-tool-content": "_rp-search-tool-content_jvchu_1",
2545
2545
  "rp-search-tool-input": "_rp-search-tool-input_jvchu_8",
2546
2546
  "rp-search-tool-input-icon": "_rp-search-tool-input-icon_jvchu_14",
@@ -2550,11 +2550,11 @@ const Se = {
2550
2550
  "rp-search-tool-input-clear": "_rp-search-tool-input-clear_jvchu_43",
2551
2551
  "rp-search-input": "_rp-search-input_jvchu_57",
2552
2552
  "rp-search-icon-info": "_rp-search-icon-info_jvchu_62"
2553
- }, or = () => {
2553
+ }, on = () => {
2554
2554
  const { searchIcon: t } = fe();
2555
2555
  return t || /* @__PURE__ */ i(co, {});
2556
2556
  }, Ri = () => {
2557
- const { container: t } = ye(), [e, r] = $(!1), { pdf: o } = X(), [n, a] = $(null), {
2557
+ const { container: t } = ye(), [e, n] = $(!1), { pdf: o } = X(), [r, a] = $(null), {
2558
2558
  searchOptions: s,
2559
2559
  setSearchOptions: c,
2560
2560
  loading: u,
@@ -2564,10 +2564,10 @@ const Se = {
2564
2564
  nextMatch: h,
2565
2565
  prevMatch: g,
2566
2566
  search: _
2567
- } = Pr(), { searchTool: b = !0 } = _e(), [v, w] = $(_), { localeMessages: m } = me(), T = x(() => {
2568
- r(!0);
2567
+ } = Sn(), { searchTool: b = !0 } = _e(), [v, w] = $(_), { localeMessages: m } = me(), T = x(() => {
2568
+ n(!0);
2569
2569
  }, []), I = x(() => {
2570
- l(""), w(""), r(!1);
2570
+ l(""), w(""), n(!1);
2571
2571
  }, [l]), p = (y) => {
2572
2572
  const N = y.key === "Enter", G = y.key === " ";
2573
2573
  (N || G) && I();
@@ -2585,8 +2585,8 @@ const Se = {
2585
2585
  O(() => (window.addEventListener("keydown", P), () => {
2586
2586
  window.removeEventListener("keydown", P);
2587
2587
  }), [P]), O(() => {
2588
- n && n.focus();
2589
- }, [n]);
2588
+ r && r.focus();
2589
+ }, [r]);
2590
2590
  const S = x((y) => {
2591
2591
  w(y.target.value);
2592
2592
  }, []), A = x(() => {
@@ -2609,37 +2609,37 @@ const Se = {
2609
2609
  {
2610
2610
  open: e,
2611
2611
  container: t,
2612
- triggerComponent: /* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchButtonTooltip, children: /* @__PURE__ */ i(te, { onClick: T, "aria-label": m == null ? void 0 : m.searchButtonTooltip, children: /* @__PURE__ */ i(or, {}) }) }),
2613
- children: /* @__PURE__ */ z("div", { className: ne["rp-search-tool-content"], children: [
2614
- /* @__PURE__ */ z("div", { className: ne["rp-search-tool-input-wrapper"], children: [
2615
- /* @__PURE__ */ z("div", { className: ne["rp-search-tool-input"], children: [
2612
+ triggerComponent: /* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchButtonTooltip, children: /* @__PURE__ */ i(te, { onClick: T, "aria-label": m == null ? void 0 : m.searchButtonTooltip, children: /* @__PURE__ */ i(on, {}) }) }),
2613
+ children: /* @__PURE__ */ z("div", { className: re["rp-search-tool-content"], children: [
2614
+ /* @__PURE__ */ z("div", { className: re["rp-search-tool-input-wrapper"], children: [
2615
+ /* @__PURE__ */ z("div", { className: re["rp-search-tool-input"], children: [
2616
2616
  /* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchInputTooltip, children: /* @__PURE__ */ i(
2617
- sr,
2617
+ cn,
2618
2618
  {
2619
2619
  value: v,
2620
2620
  onKeyDown: C,
2621
2621
  onChange: S,
2622
- icon: /* @__PURE__ */ i(or, {}),
2622
+ icon: /* @__PURE__ */ i(on, {}),
2623
2623
  placeholder: m == null ? void 0 : m.searchInputPlaceholder,
2624
- className: ne["rp-search-input"],
2624
+ className: re["rp-search-input"],
2625
2625
  ref: a,
2626
- children: !!v && /* @__PURE__ */ i("span", { className: ne["rp-search-tool-input-clear"], onClick: A, children: /* @__PURE__ */ i(lo, {}) })
2626
+ children: !!v && /* @__PURE__ */ i("span", { className: re["rp-search-tool-input-clear"], onClick: A, children: /* @__PURE__ */ i(lo, {}) })
2627
2627
  }
2628
2628
  ) }),
2629
2629
  u ? /* @__PURE__ */ i("span", { children: /* @__PURE__ */ i(St, {}) }) : /* @__PURE__ */ i("span", { children: R })
2630
2630
  ] }),
2631
- /* @__PURE__ */ z("div", { className: ne["rp-search-tool-input-checkboxes"], children: [
2631
+ /* @__PURE__ */ z("div", { className: re["rp-search-tool-input-checkboxes"], children: [
2632
2632
  /* @__PURE__ */ i(Gt, { name: "matchCase", value: L, onChange: F, children: m == null ? void 0 : m.searchMatchCaseLabel }),
2633
- /* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchMatchCaseTooltip, children: /* @__PURE__ */ i("div", { className: ne["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ i(Vt, {}) }) }),
2633
+ /* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchMatchCaseTooltip, children: /* @__PURE__ */ i("div", { className: re["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ i(Vt, {}) }) }),
2634
2634
  /* @__PURE__ */ i(Gt, { name: "wholeWord", value: D, onChange: E, children: m == null ? void 0 : m.searchWholeWordsLabel }),
2635
- /* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchWholeWordsTooltip, children: /* @__PURE__ */ i("div", { className: ne["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ i(Vt, {}) }) })
2635
+ /* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchWholeWordsTooltip, children: /* @__PURE__ */ i("div", { className: re["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ i(Vt, {}) }) })
2636
2636
  ] })
2637
2637
  ] }),
2638
- /* @__PURE__ */ z("div", { className: ne["rp-search-tool-controls"], children: [
2638
+ /* @__PURE__ */ z("div", { className: re["rp-search-tool-controls"], children: [
2639
2639
  /* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchPrevTooltip, children: /* @__PURE__ */ i(te, { onClick: g, "aria-label": m == null ? void 0 : m.searchPrevTooltip, children: /* @__PURE__ */ i(
2640
2640
  ke,
2641
2641
  {
2642
- className: ne["rp-search-tool-input-icon"],
2642
+ className: re["rp-search-tool-input-icon"],
2643
2643
  "aria-disabled": !d
2644
2644
  }
2645
2645
  ) }) }),
@@ -2647,7 +2647,7 @@ const Se = {
2647
2647
  ke,
2648
2648
  {
2649
2649
  style: { transform: "rotate(180deg" },
2650
- className: ne["rp-search-tool-input-icon"],
2650
+ className: re["rp-search-tool-input-icon"],
2651
2651
  "aria-disabled": !d
2652
2652
  }
2653
2653
  ) }) }),
@@ -2656,26 +2656,26 @@ const Se = {
2656
2656
  {
2657
2657
  onKeyDown: p,
2658
2658
  "aria-label": m == null ? void 0 : m.searchCloseButtonTooltip,
2659
- children: /* @__PURE__ */ i(mr, { onClick: I, className: ne["rp-search-tool-input-icon"] })
2659
+ children: /* @__PURE__ */ i(fn, { onClick: I, className: re["rp-search-tool-input-icon"] })
2660
2660
  }
2661
2661
  ) })
2662
2662
  ] })
2663
2663
  ] })
2664
2664
  }
2665
2665
  ) }) : null;
2666
- }, Li = "_loading_16o91_1", Ne = {
2667
- "rp-loading-overlay": "_rp-loading-overlay_16o91_1",
2668
- "rp-loading-modal": "_rp-loading-modal_16o91_14",
2669
- "rp-loading-title": "_rp-loading-title_16o91_27",
2670
- "rp-loading-progress-bar": "_rp-loading-progress-bar_16o91_35",
2671
- "rp-loading-progress": "_rp-loading-progress_16o91_35",
2672
- "rp-loading-cancel-button": "_rp-loading-cancel-button_16o91_52",
2666
+ }, Li = "_loading_1ln1d_1", Ne = {
2667
+ "rp-loading-overlay": "_rp-loading-overlay_1ln1d_1",
2668
+ "rp-loading-modal": "_rp-loading-modal_1ln1d_14",
2669
+ "rp-loading-title": "_rp-loading-title_1ln1d_27",
2670
+ "rp-loading-progress-bar": "_rp-loading-progress-bar_1ln1d_35",
2671
+ "rp-loading-progress": "_rp-loading-progress_1ln1d_35",
2672
+ "rp-loading-cancel-button": "_rp-loading-cancel-button_1ln1d_52",
2673
2673
  loading: Li
2674
2674
  }, Ni = ({ percentage: t }) => {
2675
- const { cancel: e } = et(), { localeMessages: r } = me();
2675
+ const { cancel: e } = et(), { localeMessages: n } = me();
2676
2676
  return t < 1 ? null : /* @__PURE__ */ i("div", { className: oe(Ne["rp-loading-overlay"]), children: /* @__PURE__ */ z("div", { className: oe(Ne["rp-loading-modal"]), children: [
2677
2677
  /* @__PURE__ */ z("div", { className: oe(Ne["rp-loading-title"]), children: [
2678
- r == null ? void 0 : r.printLoadingMessage,
2678
+ n == null ? void 0 : n.printLoadingMessage,
2679
2679
  "..."
2680
2680
  ] }),
2681
2681
  /* @__PURE__ */ i("div", { className: oe(Ne["rp-loading-progress-bar"]), children: /* @__PURE__ */ i(
@@ -2685,10 +2685,10 @@ const Se = {
2685
2685
  style: { width: `${t}%` }
2686
2686
  }
2687
2687
  ) }),
2688
- /* @__PURE__ */ i("button", { className: oe(Ne["rp-loading-cancel-button"]), onClick: e, children: r == null ? void 0 : r.printCancelLabel })
2688
+ /* @__PURE__ */ i("button", { className: oe(Ne["rp-loading-cancel-button"]), onClick: e, children: n == null ? void 0 : n.printCancelLabel })
2689
2689
  ] }) });
2690
2690
  }, Ei = Be((t, e) => {
2691
- const { showPrintProgress: r } = _e(), { progress: o } = et(), { isSmallScreen: n } = xe(), { percentage: a } = o || {}, s = () => n ? { gridTemplateColumns: "25% 60% 15%" } : void 0;
2691
+ const { showPrintProgress: n } = _e(), { progress: o } = et(), { isSmallScreen: r } = xe(), { percentage: a } = o || {}, s = () => r ? { gridTemplateColumns: "25% 60% 15%" } : void 0;
2692
2692
  return /* @__PURE__ */ z("div", { children: [
2693
2693
  /* @__PURE__ */ i("div", { "data-rp": "topBar", ref: e, className: ze["rp-toolbar-content"], children: /* @__PURE__ */ z("div", { className: ze["rp-toolbar-wrapper"], style: s(), children: [
2694
2694
  /* @__PURE__ */ z("div", { "data-rp": "topBarLeft", className: ze["rp-toolbar-start"], children: [
@@ -2698,7 +2698,7 @@ const Se = {
2698
2698
  /* @__PURE__ */ i("div", { "data-rp": "topBarCenter", className: ze["rp-toolbar-middle"], children: /* @__PURE__ */ i(xi, {}) }),
2699
2699
  /* @__PURE__ */ i("div", { "data-rp": "topBarRight", className: ze["rp-toolbar-end"], children: /* @__PURE__ */ i(Ti, {}) })
2700
2700
  ] }) }),
2701
- r && a ? /* @__PURE__ */ i(Ni, { percentage: a }) : null
2701
+ n && a ? /* @__PURE__ */ i(Ni, { percentage: a }) : null
2702
2702
  ] });
2703
2703
  }), ft = {
2704
2704
  "rp-sidebar-content-wrapper": "_rp-sidebar-content-wrapper_4wlw3_1",
@@ -2712,17 +2712,17 @@ const Se = {
2712
2712
  "rp-thumbnail-active": "_rp-thumbnail-active_3fenb_22",
2713
2713
  "rp-thumbnail-loader": "_rp-thumbnail-loader_3fenb_31"
2714
2714
  }, Oi = (t) => {
2715
- const { thumbnailSrc: e, pageNumber: r, isFocused: o, viewport: n } = t, { goToPage: a } = ce(), s = k(() => o ? Ae["rp-thumbnail-active"] : "", [o]), c = k(() => ({
2716
- width: Math.round(n.width),
2717
- height: Math.round(n.height)
2718
- }), [n]), u = x(() => {
2719
- r && a(r);
2720
- }, [a, r]);
2715
+ const { thumbnailSrc: e, pageNumber: n, isFocused: o, viewport: r } = t, { goToPage: a } = ce(), s = k(() => o ? Ae["rp-thumbnail-active"] : "", [o]), c = k(() => ({
2716
+ width: Math.round(r.width),
2717
+ height: Math.round(r.height)
2718
+ }), [r]), u = x(() => {
2719
+ n && a(n);
2720
+ }, [a, n]);
2721
2721
  return /* @__PURE__ */ z(
2722
2722
  "div",
2723
2723
  {
2724
2724
  onClick: u,
2725
- id: `page-${r}`,
2725
+ id: `page-${n}`,
2726
2726
  className: Ae["rp-thumbnail-wrapper"],
2727
2727
  children: [
2728
2728
  /* @__PURE__ */ i("div", { className: oe(s, Ae["rp-thumbnail"]), children: e ? /* @__PURE__ */ i(
@@ -2744,26 +2744,26 @@ const Se = {
2744
2744
  children: /* @__PURE__ */ i(St, {})
2745
2745
  }
2746
2746
  ) }),
2747
- /* @__PURE__ */ i("div", { className: Ae["rp-thumbnail-text"], children: r })
2747
+ /* @__PURE__ */ i("div", { className: Ae["rp-thumbnail-text"], children: n })
2748
2748
  ]
2749
2749
  }
2750
2750
  );
2751
- }, ir = {
2751
+ }, an = {
2752
2752
  "rp-thumbnails-container": "_rp-thumbnails-container_16vqr_1",
2753
2753
  "rp-thumbnails": "_rp-thumbnails_16vqr_1"
2754
2754
  }, Di = 16, zi = (t, e) => {
2755
- const r = t == null ? void 0 : t.querySelector(`#page-${e}`);
2756
- t && (r != null && r.offsetTop) && (t.scrollTop = (r == null ? void 0 : r.offsetTop) - Di);
2755
+ const n = t == null ? void 0 : t.querySelector(`#page-${e}`);
2756
+ t && (n != null && n.offsetTop) && (t.scrollTop = (n == null ? void 0 : n.offsetTop) - Di);
2757
2757
  }, Ai = Be((t, e) => {
2758
- const { show: r } = t, { focusedPage: o, totalPages: n } = ce(), { thumbnailPages: a, addPage: s, thumbnailLength: c, addToPage: u } = Cr(), l = W(null), d = W(1);
2759
- ar(e, () => l.current);
2758
+ const { show: n } = t, { focusedPage: o, totalPages: r } = ce(), { thumbnailPages: a, addPage: s, thumbnailLength: c, addToPage: u } = Tn(), l = W(null), d = W(1);
2759
+ sn(e, () => l.current);
2760
2760
  const f = k(() => Object.values(a), [a]), h = x(() => {
2761
2761
  const g = c + 1;
2762
- g <= n && s(g);
2763
- }, [s, n, c]);
2762
+ g <= r && s(g);
2763
+ }, [s, r, c]);
2764
2764
  return O(() => {
2765
- o > c ? u(o) : r && d.current !== o && (zi(l.current, o), d.current = o);
2766
- }, [o, c, u, r, f]), wn(l.current, h), /* @__PURE__ */ i("div", { ref: l, className: ir["rp-thumbnails-container"], children: /* @__PURE__ */ i("div", { className: ir["rp-thumbnails"], children: r ? f.map((g, _) => {
2765
+ o > c ? u(o) : n && d.current !== o && (zi(l.current, o), d.current = o);
2766
+ }, [o, c, u, n, f]), wr(l.current, h), /* @__PURE__ */ i("div", { ref: l, className: an["rp-thumbnails-container"], children: /* @__PURE__ */ i("div", { className: an["rp-thumbnails"], children: n ? f.map((g, _) => {
2767
2767
  var b, v;
2768
2768
  return /* @__PURE__ */ i(
2769
2769
  Oi,
@@ -2779,9 +2779,9 @@ const Se = {
2779
2779
  }) : null }) });
2780
2780
  }), Fi = () => {
2781
2781
  const { thumbnailIcon: t } = fe();
2782
- return t || /* @__PURE__ */ i(_n, {});
2782
+ return t || /* @__PURE__ */ i(_r, {});
2783
2783
  }, ki = () => {
2784
- const { active: t, setActive: e } = Cr(), [r, o] = $(200), n = W(null), { thumbnailTool: a } = _e(), { localeMessages: s } = me(), c = x(() => {
2784
+ const { active: t, setActive: e } = Tn(), [n, o] = $(200), r = W(null), { thumbnailTool: a } = _e(), { localeMessages: s } = me(), c = x(() => {
2785
2785
  e((l) => !l);
2786
2786
  }, []), u = k(() => typeof a != "boolean" && a ? /* @__PURE__ */ i(a, { onClick: c, active: t }) : a ? /* @__PURE__ */ i(q, { content: s == null ? void 0 : s.thumbnailTooltip, children: /* @__PURE__ */ i(
2787
2787
  te,
@@ -2795,39 +2795,39 @@ const Se = {
2795
2795
  return /* @__PURE__ */ z(
2796
2796
  "div",
2797
2797
  {
2798
- style: { "--rp-thumbnail-width": `${r}px` },
2798
+ style: { "--rp-thumbnail-width": `${n}px` },
2799
2799
  className: ft["rp-sidebar-content-wrapper"],
2800
2800
  "data-rp": "sidebar",
2801
2801
  children: [
2802
2802
  /* @__PURE__ */ i("div", { className: ft["rp-sidebar-content"], children: u }),
2803
2803
  /* @__PURE__ */ z("div", { "data-rp": "thumbnailSidebar", hidden: !t, className: ft["rp-thumbnails-wrapper"], children: [
2804
- /* @__PURE__ */ i(Ai, { show: t, ref: n }),
2805
- /* @__PURE__ */ i(bn, { onWidthChange: o, thumbnailRef: n })
2804
+ /* @__PURE__ */ i(Ai, { show: t, ref: r }),
2805
+ /* @__PURE__ */ i(br, { onWidthChange: o, thumbnailRef: r })
2806
2806
  ] })
2807
2807
  ]
2808
2808
  }
2809
2809
  );
2810
2810
  }, Cs = Be((t, e) => {
2811
- const { children: r, slots: o, icons: n, style: a, className: s, mobileWidth: c, onLoaded: u, cleanupOnLoaded: l } = t, [d, f] = $(null), { setContainer: h, setContentRef: g } = ye(), { loading: _ } = X(), { LoaderImageComponent: b } = dr();
2811
+ const { children: n, slots: o, icons: r, style: a, className: s, mobileWidth: c, onLoaded: u, cleanupOnLoaded: l } = t, [d, f] = $(null), { setContainer: h, setContentRef: g } = ye(), { loading: _ } = X(), { LoaderImageComponent: b } = pn();
2812
2812
  return O(() => (u && u(), () => {
2813
2813
  l && l();
2814
- }), [u, l]), /* @__PURE__ */ i("div", { ref: e, className: oe(Pe["rp-theme-variables"], Pe["rp-container"]), children: /* @__PURE__ */ i(yn, { mobileWidth: c, children: /* @__PURE__ */ i(Cn, { slots: o, children: /* @__PURE__ */ i(Tn, { icons: n, children: /* @__PURE__ */ z(
2815
- Pn,
2814
+ }), [u, l]), /* @__PURE__ */ i("div", { ref: e, className: oe(Pe["rp-theme-variables"], Pe["rp-container"]), children: /* @__PURE__ */ i(yr, { mobileWidth: c, children: /* @__PURE__ */ i(Cr, { slots: o, children: /* @__PURE__ */ i(Tr, { icons: r, children: /* @__PURE__ */ z(
2815
+ Pr,
2816
2816
  {
2817
2817
  getContainerRef: h,
2818
2818
  toolbarRef: d,
2819
2819
  style: a,
2820
2820
  className: s,
2821
2821
  children: [
2822
- /* @__PURE__ */ z(Sn, { children: [
2822
+ /* @__PURE__ */ z(Sr, { children: [
2823
2823
  /* @__PURE__ */ z("div", { className: Pe["rp-layout"], children: [
2824
2824
  /* @__PURE__ */ i(Ei, { ref: f }),
2825
2825
  /* @__PURE__ */ z("div", { className: Pe["rp-content"], children: [
2826
2826
  /* @__PURE__ */ i("div", { className: Pe["rp-sidebar"], children: /* @__PURE__ */ i(ki, {}) }),
2827
- /* @__PURE__ */ i("div", { ref: g, className: Pe["rp-pages"], children: r })
2827
+ /* @__PURE__ */ i("div", { ref: g, className: Pe["rp-pages"], children: n })
2828
2828
  ] })
2829
2829
  ] }),
2830
- /* @__PURE__ */ i(In, {})
2830
+ /* @__PURE__ */ i(Ir, {})
2831
2831
  ] }),
2832
2832
  _ ? /* @__PURE__ */ i(
2833
2833
  "div",
@@ -2867,7 +2867,7 @@ export {
2867
2867
  go as C,
2868
2868
  $o as D,
2869
2869
  Oi as E,
2870
- Ur as F,
2870
+ qn as F,
2871
2871
  Ai as G,
2872
2872
  ki as H,
2873
2873
  Ni as L,
@@ -2880,19 +2880,19 @@ export {
2880
2880
  xi as Z,
2881
2881
  fs as a,
2882
2882
  Cs as b,
2883
- $r as c,
2883
+ Gn as c,
2884
2884
  et as d,
2885
- Pr as e,
2886
- vr as f,
2885
+ Sn as e,
2886
+ _n as f,
2887
2887
  po as g,
2888
- _r as h,
2888
+ wn as h,
2889
2889
  ho as i,
2890
- wr as j,
2890
+ bn as j,
2891
2891
  mo as k,
2892
- br as l,
2893
- Cr as m,
2892
+ Cn as l,
2893
+ Tn as m,
2894
2894
  fo as n,
2895
- Tr as o,
2895
+ Pn as o,
2896
2896
  vo as p,
2897
2897
  Co as q,
2898
2898
  Rt as r,
@@ -2901,7 +2901,7 @@ export {
2901
2901
  ce as u,
2902
2902
  Zo as v,
2903
2903
  li as w,
2904
- jr as x,
2904
+ Bn as x,
2905
2905
  Ti as y,
2906
2906
  Ri as z
2907
2907
  };