@pdf-viewer/react 0.0.0-experimental.4 → 0.0.0-experimental.5

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 (66) hide show
  1. package/dist/{ToolbarLayout.module-21be1eac.js → ToolbarLayout.module-fa6c85c9.js} +423 -426
  2. package/dist/components/RPController.js +1 -1
  3. package/dist/components/RPPages.js +1 -1
  4. package/dist/components/RPProvider.js +1 -1
  5. package/dist/components/layout/LayoutContainer.js +1 -1
  6. package/dist/components/layout/RPDefaultLayout.js +1 -1
  7. package/dist/components/layout/RPLayout.js +1 -1
  8. package/dist/components/layout/sidebar/RPSidebar.js +1 -1
  9. package/dist/components/layout/sidebar/Thumbnail.js +1 -1
  10. package/dist/components/layout/sidebar/Thumbnails.js +1 -1
  11. package/dist/components/layout/toolbar/DocumentDialog.js +1 -1
  12. package/dist/components/layout/toolbar/FileDownloadTool.js +1 -1
  13. package/dist/components/layout/toolbar/MostPageTool.js +1 -1
  14. package/dist/components/layout/toolbar/OtherTool.js +1 -1
  15. package/dist/components/layout/toolbar/Paginate.js +1 -1
  16. package/dist/components/layout/toolbar/PrintTool.js +1 -1
  17. package/dist/components/layout/toolbar/RPMoreOptions.js +1 -1
  18. package/dist/components/layout/toolbar/RPToolbar.js +1 -1
  19. package/dist/components/layout/toolbar/RPToolbarEnd.js +1 -1
  20. package/dist/components/layout/toolbar/SearchResultNavigator.js +1 -1
  21. package/dist/components/layout/toolbar/SearchTool.js +1 -1
  22. package/dist/components/layout/toolbar/ThumbnailTool.js +1 -1
  23. package/dist/components/layout/toolbar/ToolbarCustom.js +1 -1
  24. package/dist/components/layout/toolbar/ToolbarDefault.js +1 -1
  25. package/dist/components/layout/toolbar/ToolbarLayout.js +1 -1
  26. package/dist/components/layout/toolbar/ZoomTool.js +1 -1
  27. package/dist/components/layout/toolbar/tools/DocumentPropertiesTool.js +1 -1
  28. package/dist/components/layout/toolbar/tools/FileDownloadTool.js +1 -1
  29. package/dist/components/layout/toolbar/tools/InputPageTool.js +1 -1
  30. package/dist/components/layout/toolbar/tools/NextPageTool.js +1 -1
  31. package/dist/components/layout/toolbar/tools/PreviousPageTool.js +1 -1
  32. package/dist/components/layout/toolbar/tools/PrintTool.js +1 -1
  33. package/dist/components/layout/toolbar/tools/ThumbnailTool.js +1 -1
  34. package/dist/components/layout/toolbar/tools/ZoomLevelDisplay.js +1 -1
  35. package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +1 -1
  36. package/dist/components/layout/toolbar/tools/defaults/RPHorizontalBar.js +1 -1
  37. package/dist/components/layout/toolbar/tools/defaults/RPVerticalBar.js +1 -1
  38. package/dist/components/layout/toolbar/tools/more-options/FileDownloadTool.js +1 -1
  39. package/dist/components/layout/toolbar/tools/more-options/FileUploadTool.js +1 -1
  40. package/dist/components/layout/toolbar/tools/more-options/MostPageTool.js +1 -1
  41. package/dist/components/layout/toolbar/tools/more-options/PrintTool.js +1 -1
  42. package/dist/components/page/AnnotationLayer.js +1 -1
  43. package/dist/components/page/CanvasLayer.js +1 -1
  44. package/dist/components/page/DualPage.js +1 -1
  45. package/dist/components/page/RPPage.js +1 -1
  46. package/dist/components/page/SinglePage.js +1 -1
  47. package/dist/components/page/TextHighlightLayer.js +1 -1
  48. package/dist/components/page/TextLayer.js +1 -1
  49. package/dist/components/ui/LoadingIndicator.js +1 -1
  50. package/dist/contexts/PaginationContext.js +1 -1
  51. package/dist/contexts/PrintContext.js +1 -1
  52. package/dist/contexts/RenderQueueProvider.js +1 -1
  53. package/dist/contexts/SearchContext.js +1 -1
  54. package/dist/contexts/ThumbnailsContext.js +1 -1
  55. package/dist/main.js +1 -1
  56. package/dist/utils/hooks/useFileDownload.js +1 -1
  57. package/dist/utils/hooks/useLicense.js +1 -1
  58. package/dist/utils/hooks/usePaginate.js +1 -1
  59. package/dist/utils/hooks/usePresentPage.js +1 -1
  60. package/dist/utils/hooks/usePrint.js +1 -1
  61. package/dist/utils/hooks/useScrollToPage.js +1 -1
  62. package/dist/utils/hooks/useSearch.js +1 -1
  63. package/dist/utils/hooks/useThumbnail.js +1 -1
  64. package/dist/utils/hooks/useVirtualReactWindow.js +1 -1
  65. package/dist/utils/link_service.js +6 -5
  66. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
1
  import { jsx as i, Fragment as fe, jsxs as W } from "react/jsx-runtime";
2
2
  import * as X from "react";
3
- import { useRef as H, useEffect as D, useCallback as E, useState as $, useMemo as M, createContext as Ve, useContext as Be, useImperativeHandle as hn, createElement as Ke, PureComponent as uo, Component as po, memo as fn, Fragment as ho, forwardRef as fo } from "react";
3
+ import { useRef as H, useEffect as D, useCallback as E, useState as $, useMemo as M, createContext as Ve, useContext as Be, useImperativeHandle as pn, createElement as Ke, PureComponent as lo, Component as uo, memo as hn, Fragment as po, forwardRef as ho } from "react";
4
4
  import { ChevronUpIcon as Ue } from "./components/icons/ChevronUpIcon.js";
5
5
  import { UIButton as de } from "./components/ui/Button.js";
6
- import { UIInput as mn } from "./components/ui/Input.js";
7
- import { ViewMode as Oe, ScrollMode as re, AnnotationSubType as Wt, SelectionMode as mo, ErrorType as go, ZoomLevel as We } from "./utils/types.js";
6
+ import { UIInput as fn } from "./components/ui/Input.js";
7
+ import { ViewMode as Oe, ScrollMode as re, AnnotationSubType as fo, SelectionMode as mo, ErrorType as go, ZoomLevel as We } from "./utils/types.js";
8
8
  import { useScrollModeContext as ze } from "./contexts/ScrollModeContext.js";
9
9
  import { useDocumentContext as ie } from "./contexts/RPDocumentContext.js";
10
10
  import { useDocumentPasswordContext as vo } from "./contexts/DocumentPasswordContext.js";
@@ -14,7 +14,7 @@ import { useLayerContext as _o } from "./contexts/LayerContext.js";
14
14
  import { useZoomContext as tt } from "./contexts/ZoomContext.js";
15
15
  import { useViewModeContext as He } from "./contexts/ViewModeContext.js";
16
16
  import { useVirtualScrollContext as nt } from "./contexts/VirtualScrollContext.js";
17
- import { useVirtualGridContext as gn } from "./contexts/VirtualGridContext.js";
17
+ import { useVirtualGridContext as mn } from "./contexts/VirtualGridContext.js";
18
18
  import { useSelectionModeContext as bo } from "./contexts/SelectionModeContext.js";
19
19
  import { useInitialStateContext as To } from "./contexts/InitialStateContext.js";
20
20
  import { useFullScreenContext as Co } from "./contexts/FullScreenContext.js";
@@ -27,7 +27,7 @@ import { useLocalizationContext as pe } from "./contexts/LocalizationContext.js"
27
27
  import { useHighlightContext as xo } from "./contexts/HighlightContext.js";
28
28
  import "./contexts/LicenseContext.js";
29
29
  import { useDownloadContext as Ro } from "./contexts/DownloadContext.js";
30
- import { useSmoothScrollContext as vn } from "./contexts/SmoothScrollContext.js";
30
+ import { useSmoothScrollContext as gn } from "./contexts/SmoothScrollContext.js";
31
31
  import "./contexts/ElementPageContext.js";
32
32
  import { usePagesRotateContext as ot } from "./contexts/PagesRotateContext.js";
33
33
  import { Queue as Lo } from "./utils/Queue.js";
@@ -41,7 +41,7 @@ import { useEventCallbackContext as Do } from "./contexts/EventCallbackContext.j
41
41
  import "./components/RPConfig.js";
42
42
  import { ThumbnailIcon as zo } from "./components/icons/Thumbnail.js";
43
43
  import { c as se } from "./clsx-0c6e471a.js";
44
- import { LoaderIcon as wn } from "./components/icons/LoaderIcon.js";
44
+ import { LoaderIcon as vn } from "./components/icons/LoaderIcon.js";
45
45
  import { Container as Ao } from "./components/layout/Container.js";
46
46
  import { useViewportContext as xe, ViewportProvider as Fo } from "./contexts/ViewportContext.js";
47
47
  import { useToolbarComponentContext as Pe, ToolbarComponentProvider as ko } from "./contexts/ToolbarComponentContext.js";
@@ -50,61 +50,61 @@ import { WrapperLayout as Wo } from "./components/layout/WrapperLayout.js";
50
50
  import { c as ye, L as Ho } from "./LayoutWrapper-6224491f.js";
51
51
  import { useThemeContext as $o } from "./contexts/ThemeContext.js";
52
52
  import { RPDropFileZone as Go } from "./components/RPDropFileZone.js";
53
- import { c as oe, S as Ht } from "./SearchCloseButton-08d57275.js";
54
- import { UICheckbox as $t } from "./components/ui/Checkbox.js";
53
+ import { c as oe, S as Wt } from "./SearchCloseButton-08d57275.js";
54
+ import { UICheckbox as Ht } from "./components/ui/Checkbox.js";
55
55
  import { useIconContext as ve, IconProvider as qo } from "./contexts/IconContext.js";
56
56
  import K from "./components/ui/RPTooltip.js";
57
57
  import { UIDropDown as It } from "./components/ui/DropDown.js";
58
58
  import { MenuItem as Ie } from "./components/layout/toolbar/MenuItem.js";
59
59
  import { MenuSeparator as St } from "./components/layout/toolbar/MenuSeparator.js";
60
- import { dateFormatter as Gt } from "./utils/dateFormatter.js";
60
+ import { dateFormatter as $t } from "./utils/dateFormatter.js";
61
61
  import { PropertyItem as Uo } from "./components/layout/toolbar/PropertyItem.js";
62
62
  import "./RotateTool.module-67946714.js";
63
63
  import { withRef as rt } from "./utils/withRef.js";
64
64
  import { useInfiniteScroll as Vo } from "./utils/hooks/useInfiniteScroll.js";
65
- import { MAX_ZOOM_SCALE as qt, THUMBNAIL_MIN_WIDTH as Bo } from "./utils/constants.js";
65
+ import { MAX_ZOOM_SCALE as Gt, THUMBNAIL_MIN_WIDTH as Bo } from "./utils/constants.js";
66
66
  import * as Zo from "pdfjs-dist";
67
67
  import { PixelsPerInch as jo, AnnotationMode as Ko, RenderingCancelledException as Xo, AnnotationLayer as Qo, OutputScale as Yo } from "pdfjs-dist";
68
- import { SimpleLinkService as Ut } from "./utils/link_service.js";
69
- import { annotationsEvents as Jo, annotationEventsHandler as er, handleClick as Vt, handleAnnotationWidget as tr, handleAnnotationLink as nr, bindLayerEvents as or, unbindLayerEvents as Bt } from "./utils/annotations.js";
70
- import { normalizeSingleKeyword as rr, sortHighlightPosition as ir, unwrap as ar } from "./components/page/searchHighlight.js";
71
- import { CustomElement as sr } from "./components/page/CustomElement.js";
72
- import { getGridDimension as xt, getPositionFromPage as cr, getPageFromPosition as lr } from "./utils/calculatePage.js";
73
- import { useMousePressed as dr } from "./utils/hooks/useMousePressed.js";
74
- import { useGrabScroll as ur } from "./utils/hooks/useGrabScroll.js";
75
- import { usePinch as pr } from "./utils/hooks/usePinch.js";
68
+ import { SimpleLinkService as qt } from "./utils/link_service.js";
69
+ import { annotationsEvents as Jo, annotationEventsHandler as er, handleClick as Ut, handleAnnotationWidget as tr, bindLayerEvents as nr, unbindLayerEvents as Vt } from "./utils/annotations.js";
70
+ import { normalizeSingleKeyword as or, sortHighlightPosition as rr, unwrap as ir } from "./components/page/searchHighlight.js";
71
+ import { CustomElement as ar } from "./components/page/CustomElement.js";
72
+ import { getGridDimension as xt, getPositionFromPage as sr, getPageFromPosition as cr } from "./utils/calculatePage.js";
73
+ import { useMousePressed as lr } from "./utils/hooks/useMousePressed.js";
74
+ import { useGrabScroll as dr } from "./utils/hooks/useGrabScroll.js";
75
+ import { usePinch as ur } from "./utils/hooks/usePinch.js";
76
76
  import { useDebounce as Rt } from "./utils/hooks/useDebounce.js";
77
- import hr from "./components/ui/PasswordModal.js";
78
- import { approximateFraction as Zt } from "./utils/approximateFragtion.js";
77
+ import pr from "./components/ui/PasswordModal.js";
78
+ import { approximateFraction as Bt } from "./utils/approximateFragtion.js";
79
79
  import { getScrollDistance as Me } from "./utils/getScrollDistance.js";
80
- import { getWordPositionInPage as fr } from "./utils/getWordPositionInPage.js";
81
- import { getThumbnailViewport as mr } from "./utils/getThumbnailViewport.js";
80
+ import { getWordPositionInPage as hr } from "./utils/getWordPositionInPage.js";
81
+ import { getThumbnailViewport as fr } from "./utils/getThumbnailViewport.js";
82
82
  import { smoothScrollTo as ut } from "./utils/smoothScrollTo.js";
83
- import { appConsole as gr } from "./utils/appConsole.js";
84
- import { FileUploadTool as _n } from "./components/layout/toolbar/FileUploadTool.js";
85
- import { DarkModeTool as vr } from "./components/layout/toolbar/DarkModeTool.js";
86
- import { ThreeDotIcon as wr } from "./components/icons/ThreeDotIcon.js";
87
- import { c as _r, u as Lt, P as je, a as qe, b as Et, k as br, e as Tr, i as Cr } from "./index-c9a2990a.js";
88
- import { D as Pr, u as pt } from "./index-808ea7bf.js";
89
- import { a as yr, h as Ir, u as Sr, F as xr, b as Rr, G as Je } from "./index-a48ec088.js";
90
- import { CloseIcon as Lr } from "./components/icons/CloseIcon.js";
91
- import { DocumentProperties as Er } from "./components/layout/toolbar/DocumentProperties.js";
92
- import { RotateTool as Nr } from "./components/layout/toolbar/RotateTool.js";
93
- import { ViewModeTool as Or } from "./components/layout/toolbar/ViewModeTool.js";
94
- import { ScrollModeTool as Dr } from "./components/layout/toolbar/ScrollModeTool.js";
95
- import { FileDownloadDefaultIcon as zr } from "./components/icons/FileDownloadDefaultIcon.js";
96
- import { PrintDefaultTool as Ar } from "./components/icons/PrintDefaultIcon.js";
97
- import { FullScreenTool as bn } from "./components/layout/toolbar/FullScreenTool.js";
98
- import { GoToDownIcon as Tn } from "./components/icons/GoToDownIcon.js";
99
- import { SelectionModeTool as Fr } from "./components/layout/toolbar/SelectionModeTool.js";
100
- import { ZoomInIcon as kr } from "./components/icons/ZoomInIcon.js";
101
- import { ZoomOutIcon as Mr } from "./components/icons/ZoomOutIcon.js";
102
- import { isZoomOutDisabled as Wr, isZoomInDisabled as Hr } from "./utils/zoom.js";
103
- import { SearchIcon as Cn } from "./components/icons/SearchIcon.js";
104
- import { ClearIcon as $r } from "./components/icons/ClearIcon.js";
105
- import { InfoIcon as jt } from "./components/icons/InfoIcon.js";
106
- const Pn = () => {
107
- const { viewMode: t } = He(), { scrollMode: e } = ze(), { virtualScrollRef: n, virtualScrollableElementRef: r, pageScrollElementRef: o } = nt(), { setFocusedPage: a } = he(), c = H(), { columnCount: d } = gn(), { widths: l, heights: f } = Ze(), m = H(e), C = H(t), h = H(d), { targetScrollPage: w } = vn();
83
+ import { appConsole as mr } from "./utils/appConsole.js";
84
+ import { FileUploadTool as wn } from "./components/layout/toolbar/FileUploadTool.js";
85
+ import { DarkModeTool as gr } from "./components/layout/toolbar/DarkModeTool.js";
86
+ import { ThreeDotIcon as vr } from "./components/icons/ThreeDotIcon.js";
87
+ import { c as wr, u as Lt, P as je, a as qe, b as Et, k as _r, e as br, i as Tr } from "./index-c9a2990a.js";
88
+ import { D as Cr, u as pt } from "./index-808ea7bf.js";
89
+ import { a as Pr, h as yr, u as Ir, F as Sr, b as xr, G as Je } from "./index-a48ec088.js";
90
+ import { CloseIcon as Rr } from "./components/icons/CloseIcon.js";
91
+ import { DocumentProperties as Lr } from "./components/layout/toolbar/DocumentProperties.js";
92
+ import { RotateTool as Er } from "./components/layout/toolbar/RotateTool.js";
93
+ import { ViewModeTool as Nr } from "./components/layout/toolbar/ViewModeTool.js";
94
+ import { ScrollModeTool as Or } from "./components/layout/toolbar/ScrollModeTool.js";
95
+ import { FileDownloadDefaultIcon as Dr } from "./components/icons/FileDownloadDefaultIcon.js";
96
+ import { PrintDefaultTool as zr } from "./components/icons/PrintDefaultIcon.js";
97
+ import { FullScreenTool as _n } from "./components/layout/toolbar/FullScreenTool.js";
98
+ import { GoToDownIcon as bn } from "./components/icons/GoToDownIcon.js";
99
+ import { SelectionModeTool as Ar } from "./components/layout/toolbar/SelectionModeTool.js";
100
+ import { ZoomInIcon as Fr } from "./components/icons/ZoomInIcon.js";
101
+ import { ZoomOutIcon as kr } from "./components/icons/ZoomOutIcon.js";
102
+ import { isZoomOutDisabled as Mr, isZoomInDisabled as Wr } from "./utils/zoom.js";
103
+ import { SearchIcon as Tn } from "./components/icons/SearchIcon.js";
104
+ import { ClearIcon as Hr } from "./components/icons/ClearIcon.js";
105
+ import { InfoIcon as Zt } from "./components/icons/InfoIcon.js";
106
+ const Cn = () => {
107
+ const { viewMode: t } = He(), { scrollMode: e } = ze(), { virtualScrollRef: n, virtualScrollableElementRef: r, pageScrollElementRef: o } = nt(), { setFocusedPage: a } = he(), c = H(), { columnCount: d } = mn(), { widths: l, heights: f } = Ze(), m = H(e), C = H(t), h = H(d), { targetScrollPage: w } = gn();
108
108
  D(() => {
109
109
  n != null && n.scrollToItem && (c.current = n);
110
110
  }, [n]), D(() => {
@@ -201,8 +201,8 @@ const Pn = () => {
201
201
  l
202
202
  ]
203
203
  ) };
204
- }, Gr = (t = 1) => {
205
- const [e, n] = $(t), [r, o] = $(0), { scrollToPage: a } = Pn(), c = H(1), { viewMode: d } = He(), { scrollMode: l } = ze(), { widths: f } = Ze(), { pagesRef: m } = Ce(), C = Rt(e, 100), h = E(
204
+ }, $r = (t = 1) => {
205
+ const [e, n] = $(t), [r, o] = $(0), { scrollToPage: a } = Cn(), c = H(1), { viewMode: d } = He(), { scrollMode: l } = ze(), { widths: f } = Ze(), { pagesRef: m } = Ce(), C = Rt(e, 100), h = E(
206
206
  (u) => {
207
207
  if (!/^[0-9]*$/g.test(u.toString()) || !u)
208
208
  return { success: !1, currentPage: c.current };
@@ -240,7 +240,7 @@ const Pn = () => {
240
240
  prevPage: v,
241
241
  goToPage: P
242
242
  };
243
- }, yn = Ve({
243
+ }, Pn = Ve({
244
244
  focusedPage: 0,
245
245
  setFocusedPage: (t) => {
246
246
  },
@@ -253,16 +253,16 @@ const Pn = () => {
253
253
  nextPage: () => {
254
254
  }
255
255
  }), he = () => {
256
- const t = Be(yn);
257
- return typeof (t == null ? void 0 : t.focusedPage) > "u" && gr.error("Please use this hooks inside children component of RPProvider"), t;
258
- }, gc = ({ children: t }) => {
259
- const { pdf: e } = ie(), { setCurrentPage: n } = No(), { focusedPage: r, totalPages: o, setFocusedPage: a, setTotalPages: c, goToPage: d, nextPage: l, prevPage: f } = Gr();
256
+ const t = Be(Pn);
257
+ return typeof (t == null ? void 0 : t.focusedPage) > "u" && mr.error("Please use this hooks inside children component of RPProvider"), t;
258
+ }, mc = ({ children: t }) => {
259
+ const { pdf: e } = ie(), { setCurrentPage: n } = No(), { focusedPage: r, totalPages: o, setFocusedPage: a, setTotalPages: c, goToPage: d, nextPage: l, prevPage: f } = $r();
260
260
  return D(() => {
261
261
  e != null && e.numPages && (c(e.numPages), a(1));
262
262
  }, [e, c, a]), D(() => {
263
263
  n(r);
264
264
  }, [r, n]), /* @__PURE__ */ i(
265
- yn.Provider,
265
+ Pn.Provider,
266
266
  {
267
267
  value: {
268
268
  focusedPage: r,
@@ -276,7 +276,7 @@ const Pn = () => {
276
276
  children: t
277
277
  }
278
278
  );
279
- }, qr = () => {
279
+ }, Gr = () => {
280
280
  const { pdf: t, pages: e } = ie(), [n, r] = $({
281
281
  loadedPages: 0,
282
282
  totalPages: 0,
@@ -437,7 +437,7 @@ const Pn = () => {
437
437
  isError: c,
438
438
  error: l
439
439
  };
440
- }, In = Ve({
440
+ }, yn = Ve({
441
441
  print: () => {
442
442
  },
443
443
  cancel: () => {
@@ -454,8 +454,8 @@ const Pn = () => {
454
454
  console.error("Error in setOnError callback:", e);
455
455
  }
456
456
  }
457
- }), vc = ({ children: t }) => {
458
- const [e, n] = $(null), [r, o] = $(null), { print: a, cancel: c, progress: d, isComplete: l, isError: f, error: m } = qr(), C = E((v) => {
457
+ }), gc = ({ children: t }) => {
458
+ const [e, n] = $(null), [r, o] = $(null), { print: a, cancel: c, progress: d, isComplete: l, isError: f, error: m } = Gr(), C = E((v) => {
459
459
  v && typeof v == "function" && o(() => v);
460
460
  }, []), h = (v) => {
461
461
  m && v(m);
@@ -484,19 +484,19 @@ const Pn = () => {
484
484
  setOnError: h,
485
485
  progress: d
486
486
  };
487
- return /* @__PURE__ */ i(In.Provider, { value: T, children: t });
487
+ return /* @__PURE__ */ i(yn.Provider, { value: T, children: t });
488
488
  }, it = () => {
489
- const t = Be(In);
489
+ const t = Be(yn);
490
490
  if (!t)
491
491
  throw new Error("usePrintContext must be used within a PrintProvider");
492
492
  return t;
493
- }, Ur = () => {
493
+ }, qr = () => {
494
494
  const [t, e] = $({}), { pages: n } = ie(), r = M(() => Object.keys(t).length, [t]), o = E(
495
495
  (c) => {
496
496
  if (!n.size)
497
497
  return;
498
498
  const d = c > n.size ? n.size : c, f = Array.from(n.values()).slice(0, d).map((m) => {
499
- const { thumbnailViewport: C, scale: h } = mr(m.page, m.defaultRotation);
499
+ const { thumbnailViewport: C, scale: h } = fr(m.page, m.defaultRotation);
500
500
  return {
501
501
  scale: h,
502
502
  page: m.page,
@@ -531,7 +531,7 @@ const Pn = () => {
531
531
  [n]
532
532
  );
533
533
  return { thumbnailPages: t, addPage: a, addToPage: o, thumbnailLength: r };
534
- }, Sn = Ve({
534
+ }, In = Ve({
535
535
  thumbnailPages: {},
536
536
  addPage: (t) => {
537
537
  },
@@ -541,19 +541,19 @@ const Pn = () => {
541
541
  setActive: (t) => {
542
542
  },
543
543
  active: !1
544
- }), xn = () => Be(Sn), wc = ({
544
+ }), Sn = () => Be(In), vc = ({
545
545
  children: t,
546
546
  initialThumbnailsVisible: e
547
547
  }) => {
548
- const { thumbnailPages: n, addPage: r, addToPage: o, thumbnailLength: a } = Ur(), [c, d] = $(e);
548
+ const { thumbnailPages: n, addPage: r, addToPage: o, thumbnailLength: a } = qr(), [c, d] = $(e);
549
549
  return /* @__PURE__ */ i(
550
- Sn.Provider,
550
+ In.Provider,
551
551
  {
552
552
  value: { thumbnailPages: n, addPage: r, addToPage: o, thumbnailLength: a, active: c, setActive: d },
553
553
  children: t
554
554
  }
555
555
  );
556
- }, Vr = (t = {}, e = "") => {
556
+ }, Ur = (t = {}, e = "") => {
557
557
  const [n, r] = $(e), [o, a] = $(!1), { pdf: c, pages: d } = ie(), { widths: l, heights: f } = Ze(), m = H(!n), { currentZoom: C } = tt(), [h, w] = $([]), { setFocusedPage: P } = he(), { columnCount: T } = He(), { pageRotate: v } = ot(), [I, g] = $(0), { pageScrollElementRef: u, virtualScrollableElementRef: p } = nt(), { scrollMode: s } = ze(), { pagesRef: _ } = Ce(), [b, y] = $(null), x = H({}), S = H(0), R = M(() => I === 0 ? null : h[I - 1], [I, h]), L = M(() => h.length, [h]), N = E(
558
558
  (F) => {
559
559
  if (F === 0)
@@ -576,7 +576,7 @@ const Pn = () => {
576
576
  const ee = {
577
577
  height: f[O.page - 1],
578
578
  width: l[O.page - 1]
579
- }, U = v[O.page], { leftInPage: Q, topInPage: Y } = fr(
579
+ }, U = v[O.page], { leftInPage: Q, topInPage: Y } = hr(
580
580
  ee,
581
581
  _,
582
582
  O.rect,
@@ -661,7 +661,7 @@ const Pn = () => {
661
661
  currentMatchElement: b,
662
662
  setCurrentMatchElement: y
663
663
  };
664
- }, Rn = Ve({
664
+ }, xn = Ve({
665
665
  search: "",
666
666
  setSearch: (t) => {
667
667
  },
@@ -679,7 +679,7 @@ const Pn = () => {
679
679
  currentMatchElement: null,
680
680
  setCurrentMatchElement: (t) => {
681
681
  }
682
- }), _c = ({
682
+ }), wc = ({
683
683
  children: t,
684
684
  initialSearch: e
685
685
  }) => {
@@ -695,9 +695,9 @@ const Pn = () => {
695
695
  prevMatch: h,
696
696
  currentMatchElement: w,
697
697
  setCurrentMatchElement: P
698
- } = Vr(n, e);
698
+ } = Ur(n, e);
699
699
  return /* @__PURE__ */ i(
700
- Rn.Provider,
700
+ xn.Provider,
701
701
  {
702
702
  value: {
703
703
  searchOptions: n,
@@ -717,7 +717,7 @@ const Pn = () => {
717
717
  children: t
718
718
  }
719
719
  );
720
- }, Nt = () => Be(Rn), Ln = Ve(null), bc = ({ children: t }) => {
720
+ }, Nt = () => Be(xn), Rn = Ve(null), _c = ({ children: t }) => {
721
721
  const e = H(!1), [n, r] = $([]), o = E((l) => {
722
722
  r((f) => [...f, { id: l.page.pageNumber.toString(), data: l, priority: 0 }]);
723
723
  }, []), a = M(() => new Lo(o), [o]), { focusedPage: c } = he(), d = E((l) => (e.current = !0, Eo(
@@ -741,9 +741,9 @@ const Pn = () => {
741
741
  }) : (e.current = !1, r(a.peekAll()));
742
742
  };
743
743
  l();
744
- }, [a, d, n]), /* @__PURE__ */ i(Ln.Provider, { value: a, children: t });
745
- }, En = () => {
746
- const t = Be(Ln);
744
+ }, [a, d, n]), /* @__PURE__ */ i(Rn.Provider, { value: a, children: t });
745
+ }, Ln = () => {
746
+ const t = Be(Rn);
747
747
  if (!t)
748
748
  throw new Error("RenderQueue not found");
749
749
  return t;
@@ -762,8 +762,8 @@ const Pn = () => {
762
762
  "rp-page-wrapper": "_rp-page-wrapper_ii91u_1",
763
763
  "rp-page": "_rp-page_ii91u_1",
764
764
  "rp-loader-wrapper": "_rp-loader-wrapper_ii91u_15"
765
- }, Br = (t) => {
766
- const { pageNumber: e, onLoaded: n, onLoading: r } = t, o = H(null), { pages: a } = ie(), { pageRotate: c } = ot(), d = H(), { currentZoom: l } = tt(), f = En(), m = H(`page-${e}`);
765
+ }, Vr = (t) => {
766
+ const { pageNumber: e, onLoaded: n, onLoading: r } = t, o = H(null), { pages: a } = ie(), { pageRotate: c } = ot(), d = H(), { currentZoom: l } = tt(), f = Ln(), m = H(`page-${e}`);
767
767
  return D(() => {
768
768
  if (!a || l === 0)
769
769
  return;
@@ -791,12 +791,12 @@ const Pn = () => {
791
791
  f.removeQueue(m.current);
792
792
  };
793
793
  }, [a, e, c, l, r, n, f]), /* @__PURE__ */ i("canvas", { "data-rp": `page-${e}-canvas`, ref: o });
794
- }, Zr = "_selecting_ppr5g_10", jr = "_markedContent_ppr5g_33", be = {
794
+ }, Br = "_selecting_ppr5g_10", Zr = "_markedContent_ppr5g_33", be = {
795
795
  "rp-text-layer": "_rp-text-layer_ppr5g_1",
796
- selecting: Zr,
797
- markedContent: jr,
796
+ selecting: Br,
797
+ markedContent: Zr,
798
798
  "rp-text-layer-text": "_rp-text-layer-text_ppr5g_52"
799
- }, Kr = (t) => {
799
+ }, jr = (t) => {
800
800
  const { pageNumber: e } = t, { pages: n } = ie(), r = H(null), { matches: o, currentMatch: a, setCurrentMatchElement: c } = Nt(), [d, l] = $(
801
801
  []
802
802
  ), f = H(), m = H(), C = H([]), h = M(() => o.filter((u) => u.pageIndex === e - 1), [o, e]), w = E(
@@ -949,12 +949,12 @@ const Pn = () => {
949
949
  onMouseUp: g
950
950
  }
951
951
  );
952
- }, Xr = {
952
+ }, Kr = {
953
953
  "rp-annotation-layer": "_rp-annotation-layer_smepy_1"
954
954
  };
955
- let Qr = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
956
- const Yr = (t) => {
957
- const { pageNumber: e } = t, n = H(null), { pages: r, pdf: o } = ie(), a = H(), [c, d] = $(), { setFocusedPage: l, goToPage: f } = he(), { scrollMode: m } = ze(), { print: C } = it(), { download: h } = Kn(), w = M(() => r.get(e), [r, e]), P = M(() => w == null ? void 0 : w.page.getViewport(), [w]);
955
+ let Xr = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
956
+ const Qr = (t) => {
957
+ const { pageNumber: e } = t, n = H(null), { pages: r, pdf: o } = ie(), a = H(), [c, d] = $(), { setFocusedPage: l, goToPage: f } = he(), { scrollMode: m } = ze(), { print: C } = it(), { download: h } = jn(), w = M(() => r.get(e), [r, e]), P = M(() => w == null ? void 0 : w.page.getViewport(), [w]);
958
958
  D(() => {
959
959
  a.current && (a.current.div.replaceChildren(), a.current = void 0);
960
960
  }, [o]), D(() => {
@@ -967,7 +967,7 @@ const Yr = (t) => {
967
967
  !c || !o || (Jo(v), er(v, o, c).then((I) => {
968
968
  var g, u;
969
969
  ((g = I == null ? void 0 : I.data) == null ? void 0 : g.action) === "Print" ? C() : ((u = I == null ? void 0 : I.data) == null ? void 0 : u.action) === "SaveAs" && h();
970
- }), m === re.PAGE_SCROLLING ? Vt(v, c, o, (I) => l(I.pageIndex + 1)) : Vt(v, c, o, (I) => f(I.pageIndex + 1)));
970
+ }), m === re.PAGE_SCROLLING ? Ut(v, c, o, (I) => l(I.pageIndex + 1)) : Ut(v, c, o, (I) => f(I.pageIndex + 1)));
971
971
  },
972
972
  [o, c, f, l, m, C, h]
973
973
  );
@@ -985,10 +985,7 @@ const Yr = (t) => {
985
985
  for (const p of c) {
986
986
  const { annotationType: s } = p;
987
987
  switch (s) {
988
- case Wt.Link:
989
- nr(p);
990
- break;
991
- case Wt.Widget:
988
+ case fo.Widget:
992
989
  tr(p, v, I);
993
990
  break;
994
991
  }
@@ -1005,9 +1002,9 @@ const Yr = (t) => {
1005
1002
  page: w.page,
1006
1003
  viewport: v.clone({ dontFlip: !0 }),
1007
1004
  commentManager: void 0,
1008
- linkService: new Ut(),
1005
+ linkService: new qt(),
1009
1006
  annotationStorage: o == null ? void 0 : o.annotationStorage
1010
- }), n.current && Bt(n.current, T), g.signal.aborted)
1007
+ }), n.current && Vt(n.current, T), g.signal.aborted)
1011
1008
  throw "abort";
1012
1009
  const p = await (o == null ? void 0 : o.hasJSActions()), s = await (o == null ? void 0 : o.getFieldObjects());
1013
1010
  return (_ = a.current) == null ? void 0 : _.render({
@@ -1018,32 +1015,32 @@ const Yr = (t) => {
1018
1015
  div: n.current,
1019
1016
  viewport: v.clone({ dontFlip: !0 }),
1020
1017
  page: w.page,
1021
- imageResourcesPath: Qr,
1018
+ imageResourcesPath: Xr,
1022
1019
  renderForms: !0,
1023
- linkService: new Ut(),
1020
+ linkService: new qt(),
1024
1021
  downloadManager: null,
1025
1022
  enableScripting: !1
1026
1023
  });
1027
1024
  })().then(() => {
1028
- n.current && or(n.current, T);
1025
+ n.current && nr(n.current, T);
1029
1026
  }).catch((p) => {
1030
1027
  if (p !== "abort")
1031
1028
  throw p;
1032
1029
  }), () => {
1033
- g.abort("clear"), n.current && Bt(n.current, T);
1030
+ g.abort("clear"), n.current && Vt(n.current, T);
1034
1031
  };
1035
1032
  }, [o, c, T]), /* @__PURE__ */ i(
1036
1033
  "div",
1037
1034
  {
1038
1035
  "data-rp": `page-${e}-annotationLayer`,
1039
1036
  style: { width: `${P == null ? void 0 : P.width}px`, height: `${P == null ? void 0 : P.height}px` },
1040
- className: Xr["rp-annotation-layer"],
1037
+ className: Kr["rp-annotation-layer"],
1041
1038
  ref: n
1042
1039
  }
1043
1040
  );
1044
- }, Jr = {
1041
+ }, Yr = {
1045
1042
  "rp-text-highlight": "_rp-text-highlight_jdkf8_1"
1046
- }, ei = ({ pageNumber: t, viewport: e }) => {
1043
+ }, Jr = ({ pageNumber: t, viewport: e }) => {
1047
1044
  const [n, r] = $(), { pages: o } = ie(), { highlightKeywords: a } = xo(), c = !0, d = H(null), [l, f] = $(null), [m, C] = $([]);
1048
1045
  D(() => {
1049
1046
  d.current && f(d.current.parentElement);
@@ -1059,7 +1056,7 @@ const Yr = (t) => {
1059
1056
  const h = M(() => a ? a.map((g) => {
1060
1057
  var u, p;
1061
1058
  return {
1062
- ...rr(g.keyword, (u = g.options) == null ? void 0 : u.matchCase, (p = g.options) == null ? void 0 : p.wholeWords),
1059
+ ...or(g.keyword, (u = g.options) == null ? void 0 : u.matchCase, (p = g.options) == null ? void 0 : p.wholeWords),
1063
1060
  color: g.highlightColor
1064
1061
  };
1065
1062
  }) : [], [a]);
@@ -1108,7 +1105,7 @@ const Yr = (t) => {
1108
1105
  const R = document.createElement("span");
1109
1106
  R.style.width = "auto", _.surroundContents(R);
1110
1107
  const L = R.getBoundingClientRect(), N = g.getBoundingClientRect(), k = N.height, A = N.width, z = 100 * (L.left - N.left) / A, F = 100 * (L.top - N.top) / k, O = 100 * L.height / k, q = 100 * L.width / A;
1111
- return ar(R), {
1108
+ return ir(R), {
1112
1109
  keywordStr: u,
1113
1110
  left: z,
1114
1111
  top: F,
@@ -1187,7 +1184,7 @@ const Yr = (t) => {
1187
1184
  }
1188
1185
  }
1189
1186
  }
1190
- }), b.sort(ir), b;
1187
+ }), b.sort(rr), b;
1191
1188
  };
1192
1189
  return D(() => {
1193
1190
  (async () => {
@@ -1204,7 +1201,7 @@ const Yr = (t) => {
1204
1201
  }, [c, a, t, n, e]), /* @__PURE__ */ i(fe, { children: /* @__PURE__ */ i("div", { ref: d, "data-rp": `page-${t}-textHighlightLayer`, children: m.map((g, u) => /* @__PURE__ */ i(
1205
1202
  "div",
1206
1203
  {
1207
- className: Jr["rp-text-highlight"],
1204
+ className: Yr["rp-text-highlight"],
1208
1205
  style: {
1209
1206
  top: `${g.top}%`,
1210
1207
  left: `${g.left}%`,
@@ -1220,7 +1217,7 @@ const Yr = (t) => {
1220
1217
  width: 0,
1221
1218
  height: 0
1222
1219
  });
1223
- hn(e, () => w.current);
1220
+ pn(e, () => w.current);
1224
1221
  const v = M(() => m.current ? c[n] : 0, [n, c]);
1225
1222
  D(() => {
1226
1223
  if (a && (m.current = a.get(n), m.current)) {
@@ -1271,12 +1268,12 @@ const Yr = (t) => {
1271
1268
  },
1272
1269
  className: ht["rp-page"],
1273
1270
  children: [
1274
- /* @__PURE__ */ i(Br, { onLoading: g, onLoaded: u, pageNumber: n }),
1271
+ /* @__PURE__ */ i(Vr, { onLoading: g, onLoaded: u, pageNumber: n }),
1275
1272
  C && f && /* @__PURE__ */ i("div", { className: ht["rp-loader-wrapper"], children: /* @__PURE__ */ i(f, {}) }),
1276
- /* @__PURE__ */ i(sr, { pageNumber: n }),
1277
- d && /* @__PURE__ */ i(Kr, { pageNumber: n }),
1278
- /* @__PURE__ */ i(ei, { pageNumber: n, viewport: P }),
1279
- /* @__PURE__ */ i(Yr, { pageNumber: n })
1273
+ /* @__PURE__ */ i(ar, { pageNumber: n }),
1274
+ d && /* @__PURE__ */ i(jr, { pageNumber: n }),
1275
+ /* @__PURE__ */ i(Jr, { pageNumber: n, viewport: P }),
1276
+ /* @__PURE__ */ i(Qr, { pageNumber: n })
1280
1277
  ]
1281
1278
  }
1282
1279
  )
@@ -1293,7 +1290,7 @@ function bt() {
1293
1290
  return t;
1294
1291
  }, bt.apply(null, arguments);
1295
1292
  }
1296
- function Kt(t) {
1293
+ function jt(t) {
1297
1294
  if (t === void 0)
1298
1295
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1299
1296
  return t;
@@ -1303,25 +1300,25 @@ function Tt(t, e) {
1303
1300
  return n.__proto__ = r, n;
1304
1301
  }, Tt(t, e);
1305
1302
  }
1306
- function ti(t, e) {
1303
+ function ei(t, e) {
1307
1304
  t.prototype = Object.create(e.prototype), t.prototype.constructor = t, Tt(t, e);
1308
1305
  }
1309
- var Xt = Number.isNaN || function(e) {
1306
+ var Kt = Number.isNaN || function(e) {
1310
1307
  return typeof e == "number" && e !== e;
1311
1308
  };
1312
- function ni(t, e) {
1313
- return !!(t === e || Xt(t) && Xt(e));
1309
+ function ti(t, e) {
1310
+ return !!(t === e || Kt(t) && Kt(e));
1314
1311
  }
1315
- function oi(t, e) {
1312
+ function ni(t, e) {
1316
1313
  if (t.length !== e.length)
1317
1314
  return !1;
1318
1315
  for (var n = 0; n < t.length; n++)
1319
- if (!ni(t[n], e[n]))
1316
+ if (!ti(t[n], e[n]))
1320
1317
  return !1;
1321
1318
  return !0;
1322
1319
  }
1323
1320
  function ft(t, e) {
1324
- e === void 0 && (e = oi);
1321
+ e === void 0 && (e = ni);
1325
1322
  var n, r = [], o, a = !1;
1326
1323
  function c() {
1327
1324
  for (var d = [], l = 0; l < arguments.length; l++)
@@ -1330,7 +1327,7 @@ function ft(t, e) {
1330
1327
  }
1331
1328
  return c;
1332
1329
  }
1333
- function Qt(t, e) {
1330
+ function Xt(t, e) {
1334
1331
  if (t == null)
1335
1332
  return {};
1336
1333
  var n = {};
@@ -1342,18 +1339,18 @@ function Qt(t, e) {
1342
1339
  }
1343
1340
  return n;
1344
1341
  }
1345
- var ri = typeof performance == "object" && typeof performance.now == "function", Yt = ri ? function() {
1342
+ var oi = typeof performance == "object" && typeof performance.now == "function", Qt = oi ? function() {
1346
1343
  return performance.now();
1347
1344
  } : function() {
1348
1345
  return Date.now();
1349
1346
  };
1350
- function Jt(t) {
1347
+ function Yt(t) {
1351
1348
  cancelAnimationFrame(t.id);
1352
1349
  }
1353
- function ii(t, e) {
1354
- var n = Yt();
1350
+ function ri(t, e) {
1351
+ var n = Qt();
1355
1352
  function r() {
1356
- Yt() - n >= e ? t.call(null) : o.id = requestAnimationFrame(r);
1353
+ Qt() - n >= e ? t.call(null) : o.id = requestAnimationFrame(r);
1357
1354
  }
1358
1355
  var o = {
1359
1356
  id: requestAnimationFrame(r)
@@ -1361,7 +1358,7 @@ function ii(t, e) {
1361
1358
  return o;
1362
1359
  }
1363
1360
  var mt = -1;
1364
- function ai(t) {
1361
+ function ii(t) {
1365
1362
  if (t === void 0 && (t = !1), mt === -1 || t) {
1366
1363
  var e = document.createElement("div"), n = e.style;
1367
1364
  n.width = "50px", n.height = "50px", n.overflow = "scroll", document.body.appendChild(e), mt = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
@@ -1369,7 +1366,7 @@ function ai(t) {
1369
1366
  return mt;
1370
1367
  }
1371
1368
  var Ae = null;
1372
- function en(t) {
1369
+ function Jt(t) {
1373
1370
  if (t === void 0 && (t = !1), Ae === null || t) {
1374
1371
  var e = document.createElement("div"), n = e.style;
1375
1372
  n.width = "50px", n.height = "50px", n.overflow = "scroll", n.direction = "rtl";
@@ -1378,21 +1375,21 @@ function en(t) {
1378
1375
  }
1379
1376
  return Ae;
1380
1377
  }
1381
- var si = 150, ci = function(e) {
1378
+ var ai = 150, si = function(e) {
1382
1379
  var n = e.columnIndex;
1383
1380
  e.data;
1384
1381
  var r = e.rowIndex;
1385
1382
  return r + ":" + n;
1386
1383
  }, Xe = null, Qe = null, Ye = null;
1387
1384
  process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (Xe = /* @__PURE__ */ new WeakSet(), Qe = /* @__PURE__ */ new WeakSet(), Ye = /* @__PURE__ */ new WeakSet());
1388
- function li(t) {
1385
+ function ci(t) {
1389
1386
  var e, n = t.getColumnOffset, r = t.getColumnStartIndexForOffset, o = t.getColumnStopIndexForStartIndex, a = t.getColumnWidth, c = t.getEstimatedTotalHeight, d = t.getEstimatedTotalWidth, l = t.getOffsetForColumnAndAlignment, f = t.getOffsetForRowAndAlignment, m = t.getRowHeight, C = t.getRowOffset, h = t.getRowStartIndexForOffset, w = t.getRowStopIndexForStartIndex, P = t.initInstanceProps, T = t.shouldResetStyleCacheOnItemSizeChange, v = t.validateProps;
1390
1387
  return e = /* @__PURE__ */ function(I) {
1391
- ti(g, I);
1388
+ ei(g, I);
1392
1389
  function g(p) {
1393
1390
  var s;
1394
- return s = I.call(this, p) || this, s._instanceProps = P(s.props, Kt(s)), s._resetIsScrollingTimeoutId = null, s._outerRef = void 0, s.state = {
1395
- instance: Kt(s),
1391
+ return s = I.call(this, p) || this, s._instanceProps = P(s.props, jt(s)), s._resetIsScrollingTimeoutId = null, s._outerRef = void 0, s.state = {
1392
+ instance: jt(s),
1396
1393
  isScrolling: !1,
1397
1394
  horizontalScrollDirection: "forward",
1398
1395
  scrollLeft: typeof s.props.initialScrollLeft == "number" ? s.props.initialScrollLeft : 0,
@@ -1443,7 +1440,7 @@ function li(t) {
1443
1440
  return null;
1444
1441
  var A = s.props.direction, z = S;
1445
1442
  if (A === "rtl")
1446
- switch (en()) {
1443
+ switch (Jt()) {
1447
1444
  case "negative":
1448
1445
  z = -S;
1449
1446
  break;
@@ -1466,7 +1463,7 @@ function li(t) {
1466
1463
  var b = s.props.outerRef;
1467
1464
  s._outerRef = _, typeof b == "function" ? b(_) : b != null && typeof b == "object" && b.hasOwnProperty("current") && (b.current = _);
1468
1465
  }, s._resetIsScrollingDebounced = function() {
1469
- s._resetIsScrollingTimeoutId !== null && Jt(s._resetIsScrollingTimeoutId), s._resetIsScrollingTimeoutId = ii(s._resetIsScrolling, si);
1466
+ s._resetIsScrollingTimeoutId !== null && Yt(s._resetIsScrollingTimeoutId), s._resetIsScrollingTimeoutId = ri(s._resetIsScrolling, ai);
1470
1467
  }, s._resetIsScrolling = function() {
1471
1468
  s._resetIsScrollingTimeoutId = null, s.setState({
1472
1469
  isScrolling: !1
@@ -1476,7 +1473,7 @@ function li(t) {
1476
1473
  }, s;
1477
1474
  }
1478
1475
  g.getDerivedStateFromProps = function(s, _) {
1479
- return di(s, _), v(s), null;
1476
+ return li(s, _), v(s), null;
1480
1477
  };
1481
1478
  var u = g.prototype;
1482
1479
  return u.scrollTo = function(s) {
@@ -1491,7 +1488,7 @@ function li(t) {
1491
1488
  };
1492
1489
  }, this._resetIsScrollingDebounced);
1493
1490
  }, u.scrollToItem = function(s) {
1494
- var _ = s.align, b = _ === void 0 ? "auto" : _, y = s.columnIndex, x = s.rowIndex, S = this.props, R = S.columnCount, L = S.height, N = S.rowCount, k = S.width, A = this.state, z = A.scrollLeft, F = A.scrollTop, O = ai();
1491
+ var _ = s.align, b = _ === void 0 ? "auto" : _, y = s.columnIndex, x = s.rowIndex, S = this.props, R = S.columnCount, L = S.height, N = S.rowCount, k = S.width, A = this.state, z = A.scrollLeft, F = A.scrollTop, O = ii();
1495
1492
  y !== void 0 && (y = Math.max(0, Math.min(y, R - 1))), x !== void 0 && (x = Math.max(0, Math.min(x, N - 1)));
1496
1493
  var q = c(this.props, this._instanceProps), G = d(this.props, this._instanceProps), V = G > k ? O : 0, B = q > L ? O : 0;
1497
1494
  this.scrollTo({
@@ -1510,7 +1507,7 @@ function li(t) {
1510
1507
  if (x && this._outerRef != null) {
1511
1508
  var S = this._outerRef;
1512
1509
  if (s === "rtl")
1513
- switch (en()) {
1510
+ switch (Jt()) {
1514
1511
  case "negative":
1515
1512
  S.scrollLeft = -b;
1516
1513
  break;
@@ -1528,9 +1525,9 @@ function li(t) {
1528
1525
  }
1529
1526
  this._callPropsCallbacks();
1530
1527
  }, u.componentWillUnmount = function() {
1531
- this._resetIsScrollingTimeoutId !== null && Jt(this._resetIsScrollingTimeoutId);
1528
+ this._resetIsScrollingTimeoutId !== null && Yt(this._resetIsScrollingTimeoutId);
1532
1529
  }, u.render = function() {
1533
- var s = this.props, _ = s.children, b = s.className, y = s.columnCount, x = s.direction, S = s.height, R = s.innerRef, L = s.innerElementType, N = s.innerTagName, k = s.itemData, A = s.itemKey, z = A === void 0 ? ci : A, F = s.outerElementType, O = s.outerTagName, q = s.rowCount, G = s.style, V = s.useIsScrolling, B = s.width, ee = this.state.isScrolling, U = this._getHorizontalRangeToRender(), Q = U[0], Y = U[1], te = this._getVerticalRangeToRender(), ne = te[0], J = te[1], ce = [];
1530
+ var s = this.props, _ = s.children, b = s.className, y = s.columnCount, x = s.direction, S = s.height, R = s.innerRef, L = s.innerElementType, N = s.innerTagName, k = s.itemData, A = s.itemKey, z = A === void 0 ? si : A, F = s.outerElementType, O = s.outerTagName, q = s.rowCount, G = s.style, V = s.useIsScrolling, B = s.width, ee = this.state.isScrolling, U = this._getHorizontalRangeToRender(), Q = U[0], Y = U[1], te = this._getVerticalRangeToRender(), ne = te[0], J = te[1], ce = [];
1534
1531
  if (y > 0 && q)
1535
1532
  for (var ae = ne; ae <= J; ae++)
1536
1533
  for (var we = Q; we <= Y; we++)
@@ -1592,13 +1589,13 @@ function li(t) {
1592
1589
  var z = h(this.props, k, this._instanceProps), F = w(this.props, z, k, this._instanceProps), O = !L || N === "backward" ? Math.max(1, A) : 1, q = !L || N === "forward" ? Math.max(1, A) : 1;
1593
1590
  return [Math.max(0, z - O), Math.max(0, Math.min(S - 1, F + q)), z, F];
1594
1591
  }, g;
1595
- }(uo), e.defaultProps = {
1592
+ }(lo), e.defaultProps = {
1596
1593
  direction: "ltr",
1597
1594
  itemData: void 0,
1598
1595
  useIsScrolling: !1
1599
1596
  }, e;
1600
1597
  }
1601
- var di = function(e, n) {
1598
+ var li = function(e, n) {
1602
1599
  var r = e.children, o = e.direction, a = e.height, c = e.innerTagName, d = e.outerTagName, l = e.overscanColumnsCount, f = e.overscanCount, m = e.overscanRowsCount, C = e.width, h = n.instance;
1603
1600
  if (process.env.NODE_ENV !== "production") {
1604
1601
  if (typeof f == "number" && Xe && !Xe.has(h) && (Xe.add(h), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof l == "number" || typeof m == "number") && Qe && !Qe.has(h) && (Qe.add(h), console.warn("The overscanColumnsCount and overscanRowsCount props have been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (c != null || d != null) && Ye && !Ye.has(h) && (Ye.add(h), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.")), r == null)
@@ -1615,7 +1612,7 @@ var di = function(e, n) {
1615
1612
  if (typeof a != "number")
1616
1613
  throw Error('An invalid "height" prop has been specified. Grids must specify a number for height. ' + ('"' + (a === null ? "null" : typeof a) + '" was specified.'));
1617
1614
  }
1618
- }, tn = 50, Nn = function(e, n) {
1615
+ }, en = 50, En = function(e, n) {
1619
1616
  var r = e.rowCount, o = n.rowMetadataMap, a = n.estimatedRowHeight, c = n.lastMeasuredRowIndex, d = 0;
1620
1617
  if (c >= r && (c = r - 1), c >= 0) {
1621
1618
  var l = o[c];
@@ -1623,7 +1620,7 @@ var di = function(e, n) {
1623
1620
  }
1624
1621
  var f = r - c - 1, m = f * a;
1625
1622
  return d + m;
1626
- }, On = function(e, n) {
1623
+ }, Nn = function(e, n) {
1627
1624
  var r = e.columnCount, o = n.columnMetadataMap, a = n.estimatedColumnWidth, c = n.lastMeasuredColumnIndex, d = 0;
1628
1625
  if (c >= r && (c = r - 1), c >= 0) {
1629
1626
  var l = o[c];
@@ -1649,12 +1646,12 @@ var di = function(e, n) {
1649
1646
  e === "column" ? o.lastMeasuredColumnIndex = r : o.lastMeasuredRowIndex = r;
1650
1647
  }
1651
1648
  return a[r];
1652
- }, nn = function(e, n, r, o) {
1649
+ }, tn = function(e, n, r, o) {
1653
1650
  var a, c;
1654
1651
  e === "column" ? (a = r.columnMetadataMap, c = r.lastMeasuredColumnIndex) : (a = r.rowMetadataMap, c = r.lastMeasuredRowIndex);
1655
1652
  var d = c > 0 ? a[c].offset : 0;
1656
- return d >= o ? Dn(e, n, r, c, 0, o) : ui(e, n, r, Math.max(0, c), o);
1657
- }, Dn = function(e, n, r, o, a, c) {
1653
+ return d >= o ? On(e, n, r, c, 0, o) : di(e, n, r, Math.max(0, c), o);
1654
+ }, On = function(e, n, r, o, a, c) {
1658
1655
  for (; a <= o; ) {
1659
1656
  var d = a + Math.floor((o - a) / 2), l = Te(e, n, d, r).offset;
1660
1657
  if (l === c)
@@ -1662,12 +1659,12 @@ var di = function(e, n) {
1662
1659
  l < c ? a = d + 1 : l > c && (o = d - 1);
1663
1660
  }
1664
1661
  return a > 0 ? a - 1 : 0;
1665
- }, ui = function(e, n, r, o, a) {
1662
+ }, di = function(e, n, r, o, a) {
1666
1663
  for (var c = e === "column" ? n.columnCount : n.rowCount, d = 1; o < c && Te(e, n, o, r).offset < a; )
1667
1664
  o += d, d *= 2;
1668
- return Dn(e, n, r, Math.min(o, c - 1), Math.floor(o / 2), a);
1669
- }, on = function(e, n, r, o, a, c, d) {
1670
- var l = e === "column" ? n.width : n.height, f = Te(e, n, r, c), m = e === "column" ? On(n, c) : Nn(n, c), C = Math.max(0, Math.min(m - l, f.offset)), h = Math.max(0, f.offset - l + d + f.size);
1665
+ return On(e, n, r, Math.min(o, c - 1), Math.floor(o / 2), a);
1666
+ }, nn = function(e, n, r, o, a, c, d) {
1667
+ var l = e === "column" ? n.width : n.height, f = Te(e, n, r, c), m = e === "column" ? Nn(n, c) : En(n, c), C = Math.max(0, Math.min(m - l, f.offset)), h = Math.max(0, f.offset - l + d + f.size);
1671
1668
  switch (o === "smart" && (a >= h - l && a <= C + l ? o = "auto" : o = "center"), o) {
1672
1669
  case "start":
1673
1670
  return C;
@@ -1679,12 +1676,12 @@ var di = function(e, n) {
1679
1676
  default:
1680
1677
  return a >= h && a <= C ? a : h > C || a < h ? h : C;
1681
1678
  }
1682
- }, pi = /* @__PURE__ */ li({
1679
+ }, ui = /* @__PURE__ */ ci({
1683
1680
  getColumnOffset: function(e, n, r) {
1684
1681
  return Te("column", e, n, r).offset;
1685
1682
  },
1686
1683
  getColumnStartIndexForOffset: function(e, n, r) {
1687
- return nn("column", e, r, n);
1684
+ return tn("column", e, r, n);
1688
1685
  },
1689
1686
  getColumnStopIndexForStartIndex: function(e, n, r, o) {
1690
1687
  for (var a = e.columnCount, c = e.width, d = Te("column", e, n, o), l = r + c, f = d.offset + d.size, m = n; m < a - 1 && f < l; )
@@ -1694,13 +1691,13 @@ var di = function(e, n) {
1694
1691
  getColumnWidth: function(e, n, r) {
1695
1692
  return r.columnMetadataMap[n].size;
1696
1693
  },
1697
- getEstimatedTotalHeight: Nn,
1698
- getEstimatedTotalWidth: On,
1694
+ getEstimatedTotalHeight: En,
1695
+ getEstimatedTotalWidth: Nn,
1699
1696
  getOffsetForColumnAndAlignment: function(e, n, r, o, a, c) {
1700
- return on("column", e, n, r, o, a, c);
1697
+ return nn("column", e, n, r, o, a, c);
1701
1698
  },
1702
1699
  getOffsetForRowAndAlignment: function(e, n, r, o, a, c) {
1703
- return on("row", e, n, r, o, a, c);
1700
+ return nn("row", e, n, r, o, a, c);
1704
1701
  },
1705
1702
  getRowOffset: function(e, n, r) {
1706
1703
  return Te("row", e, n, r).offset;
@@ -1709,7 +1706,7 @@ var di = function(e, n) {
1709
1706
  return r.rowMetadataMap[n].size;
1710
1707
  },
1711
1708
  getRowStartIndexForOffset: function(e, n, r) {
1712
- return nn("row", e, r, n);
1709
+ return tn("row", e, r, n);
1713
1710
  },
1714
1711
  getRowStopIndexForStartIndex: function(e, n, r, o) {
1715
1712
  for (var a = e.rowCount, c = e.height, d = Te("row", e, n, o), l = r + c, f = d.offset + d.size, m = n; m < a - 1 && f < l; )
@@ -1719,8 +1716,8 @@ var di = function(e, n) {
1719
1716
  initInstanceProps: function(e, n) {
1720
1717
  var r = e, o = r.estimatedColumnWidth, a = r.estimatedRowHeight, c = {
1721
1718
  columnMetadataMap: {},
1722
- estimatedColumnWidth: o || tn,
1723
- estimatedRowHeight: a || tn,
1719
+ estimatedColumnWidth: o || en,
1720
+ estimatedRowHeight: a || en,
1724
1721
  lastMeasuredColumnIndex: -1,
1725
1722
  lastMeasuredRowIndex: -1,
1726
1723
  rowMetadataMap: {}
@@ -1752,7 +1749,7 @@ var di = function(e, n) {
1752
1749
  }
1753
1750
  });
1754
1751
  process.env.NODE_ENV;
1755
- function rn(t, e) {
1752
+ function on(t, e) {
1756
1753
  for (var n in t)
1757
1754
  if (!(n in e))
1758
1755
  return !0;
@@ -1761,13 +1758,13 @@ function rn(t, e) {
1761
1758
  return !0;
1762
1759
  return !1;
1763
1760
  }
1764
- var hi = ["style"], fi = ["style"];
1765
- function mi(t, e) {
1766
- var n = t.style, r = Qt(t, hi), o = e.style, a = Qt(e, fi);
1767
- return !rn(n, o) && !rn(r, a);
1761
+ var pi = ["style"], hi = ["style"];
1762
+ function fi(t, e) {
1763
+ var n = t.style, r = Xt(t, pi), o = e.style, a = Xt(e, hi);
1764
+ return !on(n, o) && !on(r, a);
1768
1765
  }
1769
- const gi = () => {
1770
- const { viewMode: t } = He(), { scrollMode: e } = ze(), { setColumnCount: n } = gn(), { virtualScrollableElementRef: r } = nt(), o = Ze(), a = M(() => o.heights.length, [o.heights]), c = M(() => e === re.HORIZONTAL_SCROLLING ? a : t === Oe.DUAL_PAGE ? 2 : 1, [t, e, e, a, r]), d = M(() => o.widths.reduce((v, I, g) => {
1766
+ const mi = () => {
1767
+ const { viewMode: t } = He(), { scrollMode: e } = ze(), { setColumnCount: n } = mn(), { virtualScrollableElementRef: r } = nt(), o = Ze(), a = M(() => o.heights.length, [o.heights]), c = M(() => e === re.HORIZONTAL_SCROLLING ? a : t === Oe.DUAL_PAGE ? 2 : 1, [t, e, e, a, r]), d = M(() => o.widths.reduce((v, I, g) => {
1771
1768
  const u = g % c;
1772
1769
  return (!v[u] || I > v[u]) && (v[u] = I), v;
1773
1770
  }, []), [o.widths, c]), l = E(
@@ -1814,20 +1811,20 @@ const gi = () => {
1814
1811
  let ue;
1815
1812
  typeof window < "u" ? ue = window : typeof self < "u" ? ue = self : ue = global;
1816
1813
  let Ct = null, Pt = null;
1817
- const an = 20, gt = ue.clearTimeout, sn = ue.setTimeout, vt = ue.cancelAnimationFrame || ue.mozCancelAnimationFrame || ue.webkitCancelAnimationFrame, cn = ue.requestAnimationFrame || ue.mozRequestAnimationFrame || ue.webkitRequestAnimationFrame;
1818
- vt == null || cn == null ? (Ct = gt, Pt = function(e) {
1819
- return sn(e, an);
1814
+ const rn = 20, gt = ue.clearTimeout, an = ue.setTimeout, vt = ue.cancelAnimationFrame || ue.mozCancelAnimationFrame || ue.webkitCancelAnimationFrame, sn = ue.requestAnimationFrame || ue.mozRequestAnimationFrame || ue.webkitRequestAnimationFrame;
1815
+ vt == null || sn == null ? (Ct = gt, Pt = function(e) {
1816
+ return an(e, rn);
1820
1817
  }) : (Ct = function([e, n]) {
1821
1818
  vt(e), gt(n);
1822
1819
  }, Pt = function(e) {
1823
- const n = cn(function() {
1820
+ const n = sn(function() {
1824
1821
  gt(r), e();
1825
- }), r = sn(function() {
1822
+ }), r = an(function() {
1826
1823
  vt(n), e();
1827
- }, an);
1824
+ }, rn);
1828
1825
  return [n, r];
1829
1826
  });
1830
- function vi(t) {
1827
+ function gi(t) {
1831
1828
  let e, n, r, o, a, c, d;
1832
1829
  const l = typeof document < "u" && document.attachEvent;
1833
1830
  if (!l) {
@@ -1899,7 +1896,7 @@ function vi(t) {
1899
1896
  }
1900
1897
  };
1901
1898
  }
1902
- class wi extends po {
1899
+ class vi extends uo {
1903
1900
  constructor(...e) {
1904
1901
  super(...e), this.state = {
1905
1902
  height: this.props.defaultHeight || 0,
@@ -1947,7 +1944,7 @@ class wi extends po {
1947
1944
  const r = n.ownerDocument.defaultView.ResizeObserver;
1948
1945
  r != null ? (this._resizeObserver = new r(() => {
1949
1946
  this._timeoutId = setTimeout(this._onResize, 0);
1950
- }), this._resizeObserver.observe(n)) : (this._detectElementResize = vi(e), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
1947
+ }), this._resizeObserver.observe(n)) : (this._detectElementResize = gi(e), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
1951
1948
  }
1952
1949
  }
1953
1950
  componentWillUnmount() {
@@ -1983,7 +1980,7 @@ class wi extends po {
1983
1980
  }, !v && e(T));
1984
1981
  }
1985
1982
  }
1986
- const _i = fn(({ widths: t, heights: e }) => {
1983
+ const wi = hn(({ widths: t, heights: e }) => {
1987
1984
  const { focusedPage: n, totalPages: r } = he(), o = M(() => {
1988
1985
  const d = [], l = Math.ceil(n / 2) * 2 - 1;
1989
1986
  if (d.push(l), l + 1 <= r) {
@@ -2009,7 +2006,7 @@ const _i = fn(({ widths: t, heights: e }) => {
2009
2006
  ];
2010
2007
  }, [t, e, o]), c = M(() => a.reduce((d, l) => d + Number(l.width || 0), 0), [a]);
2011
2008
  return /* @__PURE__ */ i("div", { style: { width: c, position: "relative" }, children: o.map((d, l) => /* @__PURE__ */ i(Ot, { style: a[l], pageNumber: d }, d)) });
2012
- }), bi = ({ widths: t, heights: e }) => {
2009
+ }), _i = ({ widths: t, heights: e }) => {
2013
2010
  const { focusedPage: n } = he(), r = M(() => ({
2014
2011
  position: "absolute",
2015
2012
  width: t(n - 1),
@@ -2025,11 +2022,11 @@ const _i = fn(({ widths: t, heights: e }) => {
2025
2022
  children: /* @__PURE__ */ i(Ot, { style: r, pageNumber: n }, n)
2026
2023
  }
2027
2024
  );
2028
- }, Ti = (t, e, n) => {
2029
- const r = H(), { contentRef: o } = Ce(), { heights: a, widths: c } = Ze(), { setFocusedPage: d } = he(), [l, f] = $([]), { targetScrollPage: m } = vn(), C = Rt(l, 0, 500), h = M(() => {
2025
+ }, bi = (t, e, n) => {
2026
+ const r = H(), { contentRef: o } = Ce(), { heights: a, widths: c } = Ze(), { setFocusedPage: d } = he(), [l, f] = $([]), { targetScrollPage: m } = gn(), C = Rt(l, 0, 500), h = M(() => {
2030
2027
  const { rowsHeight: P, columnsWidth: T } = xt({ heights: a, widths: c }, t);
2031
2028
  return a.map((v, I) => {
2032
- const g = c[I], u = cr(I + 1, t), p = T.slice(0, u.columnIndex).reduce((y, x) => y + x, 0), s = P.slice(0, u.rowIndex).reduce((y, x) => y + x, 0), _ = p + g, b = s + v;
2029
+ const g = c[I], u = sr(I + 1, t), p = T.slice(0, u.columnIndex).reduce((y, x) => y + x, 0), s = P.slice(0, u.rowIndex).reduce((y, x) => y + x, 0), _ = p + g, b = s + v;
2033
2030
  return {
2034
2031
  pageNumber: I + 1,
2035
2032
  ...u,
@@ -2077,7 +2074,7 @@ const _i = fn(({ widths: t, heights: e }) => {
2077
2074
  n == null || n.removeEventListener("scroll", w);
2078
2075
  };
2079
2076
  }, [n, w]);
2080
- }, zn = rt((t, e) => {
2077
+ }, Dn = rt((t, e) => {
2081
2078
  const { children: n, toolbarRef: r, style: o, className: a, ...c } = t, { customVariables: d, customDarkVariables: l } = $o(), { darkMode: f } = wo();
2082
2079
  return /* @__PURE__ */ i(
2083
2080
  "div",
@@ -2099,11 +2096,11 @@ const _i = fn(({ widths: t, heights: e }) => {
2099
2096
  children: n
2100
2097
  }
2101
2098
  );
2102
- }), Ci = fn(({ columnIndex: t, rowIndex: e, data: n, style: r }) => {
2103
- const o = lr(e, t, n.columnCount);
2099
+ }), Ti = hn(({ columnIndex: t, rowIndex: e, data: n, style: r }) => {
2100
+ const o = cr(e, t, n.columnCount);
2104
2101
  return /* @__PURE__ */ i(Ot, { style: r, pageNumber: o }, o);
2105
- }, mi), Tc = () => {
2106
- const t = H(new Yo()), { initialPage: e = 1, initialScrollMode: n, instanceId: r } = To(), { pagesRef: o, setPagesRef: a, setContentRef: c } = Ce(), { scrollToPage: d } = Pn(), {
2102
+ }, fi), bc = () => {
2103
+ const t = H(new Yo()), { initialPage: e = 1, initialScrollMode: n, instanceId: r } = To(), { pagesRef: o, setPagesRef: a, setContentRef: c } = Ce(), { scrollToPage: d } = Cn(), {
2107
2104
  virtualScrollRef: l,
2108
2105
  getVirtualScrollRef: f,
2109
2106
  getPageScrollElementRef: m,
@@ -2126,14 +2123,14 @@ const _i = fn(({ widths: t, heights: e }) => {
2126
2123
  estimatedColumnWidth: B,
2127
2124
  estimatedRowHeight: ee,
2128
2125
  totalDimension: U
2129
- } = gi(), Q = Rt(P, 100), { onScroll: Y } = Do(), te = H();
2130
- Ti(G, O, w);
2126
+ } = mi(), Q = Rt(P, 100), { onScroll: Y } = Do(), te = H();
2127
+ bi(G, O, w);
2131
2128
  const ne = H({
2132
2129
  scrollTop: 0,
2133
2130
  scrollLeft: 0
2134
2131
  });
2135
- pr(o);
2136
- const { isPressed: J } = dr(), { selectionMode: ce } = bo(), { initializeGrabScroll: ae, resetGrabState: we } = ur({
2132
+ ur(o);
2133
+ const { isPressed: J } = lr(), { selectionMode: ce } = bo(), { initializeGrabScroll: ae, resetGrabState: we } = dr({
2137
2134
  isPressed: J
2138
2135
  }), _e = M(() => ce === mo.HAND, [ce]), st = M(() => ({
2139
2136
  columnCount: G
@@ -2156,7 +2153,7 @@ const _i = fn(({ widths: t, heights: e }) => {
2156
2153
  shouldForceUpdate: !0
2157
2154
  });
2158
2155
  }, [O, G, F, l]);
2159
- const no = E(
2156
+ const to = E(
2160
2157
  (Z, j) => {
2161
2158
  if (!w)
2162
2159
  return { scrollTop: 0, scrollLeft: 0 };
@@ -2184,12 +2181,12 @@ const _i = fn(({ widths: t, heights: e }) => {
2184
2181
  const { height: Ee, width: dt } = j, { height: kt, width: Mt } = L.current;
2185
2182
  if (kt === Ee && Mt === dt)
2186
2183
  return;
2187
- const ao = Le / kt * Ee, so = lt / Mt * dt, co = Math.round(Math.min(ao, Ee)) || 0, lo = Math.round(Math.min(so, dt)) || 0;
2184
+ const io = Le / kt * Ee, ao = lt / Mt * dt, so = Math.round(Math.min(io, Ee)) || 0, co = Math.round(Math.min(ao, dt)) || 0;
2188
2185
  A.current = setTimeout(() => {
2189
2186
  requestAnimationFrame(() => {
2190
2187
  w == null || w.scrollTo({
2191
- top: co,
2192
- left: lo,
2188
+ top: so,
2189
+ left: co,
2193
2190
  behavior: "auto"
2194
2191
  });
2195
2192
  });
@@ -2208,13 +2205,13 @@ const _i = fn(({ widths: t, heights: e }) => {
2208
2205
  ), j = Array.from({ length: G }).reduce(
2209
2206
  (Le, lt, Ee) => Le + V(Ee),
2210
2207
  0
2211
- ), Re = no(j, Z);
2208
+ ), Re = to(j, Z);
2212
2209
  ne.current = Re, Ft(Re, { height: Z, width: j }), h({
2213
2210
  height: Z,
2214
2211
  width: j
2215
2212
  });
2216
2213
  }, [F, O, G, Ft]);
2217
- const oo = E(
2214
+ const no = E(
2218
2215
  (Z) => {
2219
2216
  ne.current = {
2220
2217
  scrollTop: Z.scrollTop,
@@ -2231,10 +2228,10 @@ const _i = fn(({ widths: t, heights: e }) => {
2231
2228
  }, [w, T, Y]), D(() => () => {
2232
2229
  te.current && clearTimeout(te.current);
2233
2230
  }, []);
2234
- const ro = M(() => se(le["rp-pages-container"], {
2231
+ const oo = M(() => se(le["rp-pages-container"], {
2235
2232
  [le["rp-cursor-grab"]]: _e && !J,
2236
2233
  [le["rp-cursor-grabbing"]]: _e && J
2237
- }), [_e, J]), io = E(
2234
+ }), [_e, J]), ro = E(
2238
2235
  (Z) => {
2239
2236
  if (_e && Z) {
2240
2237
  const j = se(le["rp-pages"]), Re = document.querySelector(`.${j}`);
@@ -2261,32 +2258,32 @@ const _i = fn(({ widths: t, heights: e }) => {
2261
2258
  Q
2262
2259
  ]), /* @__PURE__ */ W(fe, { children: [
2263
2260
  /* @__PURE__ */ i(Ho, { ref: c, children: /* @__PURE__ */ i(
2264
- zn,
2261
+ Dn,
2265
2262
  {
2266
2263
  id: r,
2267
2264
  ref: a,
2268
2265
  tabIndex: -1,
2269
- className: ro,
2266
+ className: oo,
2270
2267
  style: {
2271
- "--scale-round-x": `${Zt(t.current.sx)[1]}px`,
2272
- "--scale-round-y": `${Zt(t.current.sy)[1]}px`
2268
+ "--scale-round-x": `${Bt(t.current.sx)[1]}px`,
2269
+ "--scale-round-y": `${Bt(t.current.sy)[1]}px`
2273
2270
  },
2274
- children: /* @__PURE__ */ i(wi, { style: { minHeight: "50px" }, children: ({ width: Z, height: j }) => /* @__PURE__ */ i("div", { "data-rp": "pages", ref: io, style: { width: Z, height: j }, children: s === re.PAGE_SCROLLING ? /* @__PURE__ */ i(
2271
+ children: /* @__PURE__ */ i(vi, { style: { minHeight: "50px" }, children: ({ width: Z, height: j }) => /* @__PURE__ */ i("div", { "data-rp": "pages", ref: ro, style: { width: Z, height: j }, children: s === re.PAGE_SCROLLING ? /* @__PURE__ */ i(
2275
2272
  "div",
2276
2273
  {
2277
2274
  ref: m,
2278
2275
  style: { width: Z, height: j },
2279
2276
  className: se(le["rp-pages"], le["rp-page-scrolling-wrapper"]),
2280
- children: _ === Oe.DUAL_PAGE ? /* @__PURE__ */ i(_i, { widths: V, heights: q }) : /* @__PURE__ */ i(bi, { widths: V, heights: q })
2277
+ children: _ === Oe.DUAL_PAGE ? /* @__PURE__ */ i(wi, { widths: V, heights: q }) : /* @__PURE__ */ i(_i, { widths: V, heights: q })
2281
2278
  }
2282
2279
  ) : ee ? /* @__PURE__ */ i(
2283
- pi,
2280
+ ui,
2284
2281
  {
2285
2282
  ref: f,
2286
2283
  itemData: st,
2287
2284
  outerRef: C,
2288
2285
  innerRef: b,
2289
- onScroll: oo,
2286
+ onScroll: no,
2290
2287
  columnCount: G,
2291
2288
  columnWidth: V,
2292
2289
  rowHeight: q,
@@ -2305,7 +2302,7 @@ const _i = fn(({ widths: t, heights: e }) => {
2305
2302
  "--rp-row-count": `${O}`,
2306
2303
  "--rp-column-count": `${G}`
2307
2304
  },
2308
- children: Ci
2305
+ children: Ti
2309
2306
  }
2310
2307
  ) : !y && !x ? /* @__PURE__ */ i(
2311
2308
  "div",
@@ -2333,7 +2330,7 @@ const _i = fn(({ widths: t, heights: e }) => {
2333
2330
  ] }) }) : null }) })
2334
2331
  }
2335
2332
  ) }),
2336
- S && /* @__PURE__ */ i(hr, {})
2333
+ S && /* @__PURE__ */ i(pr, {})
2337
2334
  ] });
2338
2335
  }, $e = {
2339
2336
  "rp-toolbar-content": "_rp-toolbar-content_sz31z_1",
@@ -2345,13 +2342,13 @@ const _i = fn(({ widths: t, heights: e }) => {
2345
2342
  "rp-paginate": "_rp-paginate_1gck0_1",
2346
2343
  "rp-page-input": "_rp-page-input_1gck0_6",
2347
2344
  "rp-total-page": "_rp-total-page_1gck0_18"
2348
- }, Pi = () => {
2345
+ }, Ci = () => {
2349
2346
  const { prevIcon: t } = ve(), { prevIcon: e } = ge();
2350
2347
  return t || e || /* @__PURE__ */ i(Ue, {});
2351
- }, yi = () => {
2348
+ }, Pi = () => {
2352
2349
  const { nextIcon: t } = ve(), { nextIcon: e } = ge();
2353
2350
  return t || e || /* @__PURE__ */ i(Ue, { style: { transform: "rotate(180deg" } });
2354
- }, Ii = () => {
2351
+ }, yi = () => {
2355
2352
  const { focusedPage: t, totalPages: e, setFocusedPage: n, nextPage: r, prevPage: o, goToPage: a } = he(), [c, d] = $(t.toString()), { pageNavigationTool: l = !0 } = Pe(), { pageNavigationTool: f = !0 } = Se(), { isSmallScreen: m } = xe(), { viewMode: C } = He(), { scrollMode: h } = ze(), { localeMessages: w } = pe();
2356
2353
  D(() => {
2357
2354
  d(t.toString());
@@ -2397,11 +2394,11 @@ const _i = fn(({ widths: t, heights: e }) => {
2397
2394
  onClick: o,
2398
2395
  "aria-label": w == null ? void 0 : w.previousPageTooltip,
2399
2396
  "aria-disabled": t === 1,
2400
- children: /* @__PURE__ */ i(Pi, {})
2397
+ children: /* @__PURE__ */ i(Ci, {})
2401
2398
  }
2402
2399
  ) }),
2403
2400
  /* @__PURE__ */ i(K, { content: w == null ? void 0 : w.currentPageTooltip, children: /* @__PURE__ */ i(
2404
- mn,
2401
+ fn,
2405
2402
  {
2406
2403
  onKeyDown: I,
2407
2404
  onBlur: v,
@@ -2422,12 +2419,12 @@ const _i = fn(({ widths: t, heights: e }) => {
2422
2419
  onClick: r,
2423
2420
  "aria-label": w == null ? void 0 : w.nextPageTooltip,
2424
2421
  "aria-disabled": g,
2425
- children: /* @__PURE__ */ i(yi, {})
2422
+ children: /* @__PURE__ */ i(Pi, {})
2426
2423
  }
2427
2424
  ) })
2428
2425
  ] });
2429
2426
  };
2430
- var at = "Dialog", [An, Cc] = _r(at), [Si, me] = An(at), Fn = (t) => {
2427
+ var at = "Dialog", [zn, Tc] = wr(at), [Ii, me] = zn(at), An = (t) => {
2431
2428
  const {
2432
2429
  __scopeDialog: e,
2433
2430
  children: n,
@@ -2435,14 +2432,14 @@ var at = "Dialog", [An, Cc] = _r(at), [Si, me] = An(at), Fn = (t) => {
2435
2432
  defaultOpen: o,
2436
2433
  onOpenChange: a,
2437
2434
  modal: c = !0
2438
- } = t, d = X.useRef(null), l = X.useRef(null), [f, m] = Tr({
2435
+ } = t, d = X.useRef(null), l = X.useRef(null), [f, m] = br({
2439
2436
  prop: r,
2440
2437
  defaultProp: o ?? !1,
2441
2438
  onChange: a,
2442
2439
  caller: at
2443
2440
  });
2444
2441
  return /* @__PURE__ */ i(
2445
- Si,
2442
+ Ii,
2446
2443
  {
2447
2444
  scope: e,
2448
2445
  triggerRef: d,
@@ -2458,10 +2455,10 @@ var at = "Dialog", [An, Cc] = _r(at), [Si, me] = An(at), Fn = (t) => {
2458
2455
  }
2459
2456
  );
2460
2457
  };
2461
- Fn.displayName = at;
2462
- var kn = "DialogTrigger", xi = X.forwardRef(
2458
+ An.displayName = at;
2459
+ var Fn = "DialogTrigger", Si = X.forwardRef(
2463
2460
  (t, e) => {
2464
- const { __scopeDialog: n, ...r } = t, o = me(kn, n), a = Lt(e, o.triggerRef);
2461
+ const { __scopeDialog: n, ...r } = t, o = me(Fn, n), a = Lt(e, o.triggerRef);
2465
2462
  return /* @__PURE__ */ i(
2466
2463
  je.button,
2467
2464
  {
@@ -2477,28 +2474,28 @@ var kn = "DialogTrigger", xi = X.forwardRef(
2477
2474
  );
2478
2475
  }
2479
2476
  );
2480
- xi.displayName = kn;
2481
- var Dt = "DialogPortal", [Ri, Mn] = An(Dt, {
2477
+ Si.displayName = Fn;
2478
+ var Dt = "DialogPortal", [xi, kn] = zn(Dt, {
2482
2479
  forceMount: void 0
2483
- }), Wn = (t) => {
2480
+ }), Mn = (t) => {
2484
2481
  const { __scopeDialog: e, forceMount: n, children: r, container: o } = t, a = me(Dt, e);
2485
- return /* @__PURE__ */ i(Ri, { scope: e, forceMount: n, children: X.Children.map(r, (c) => /* @__PURE__ */ i(Et, { present: n || a.open, children: /* @__PURE__ */ i(Rr, { asChild: !0, container: o, children: c }) })) });
2482
+ return /* @__PURE__ */ i(xi, { scope: e, forceMount: n, children: X.Children.map(r, (c) => /* @__PURE__ */ i(Et, { present: n || a.open, children: /* @__PURE__ */ i(xr, { asChild: !0, container: o, children: c }) })) });
2486
2483
  };
2487
- Wn.displayName = Dt;
2488
- var et = "DialogOverlay", Hn = X.forwardRef(
2484
+ Mn.displayName = Dt;
2485
+ var et = "DialogOverlay", Wn = X.forwardRef(
2489
2486
  (t, e) => {
2490
- const n = Mn(et, t.__scopeDialog), { forceMount: r = n.forceMount, ...o } = t, a = me(et, t.__scopeDialog);
2491
- return a.modal ? /* @__PURE__ */ i(Et, { present: r || a.open, children: /* @__PURE__ */ i(Ei, { ...o, ref: e }) }) : null;
2487
+ const n = kn(et, t.__scopeDialog), { forceMount: r = n.forceMount, ...o } = t, a = me(et, t.__scopeDialog);
2488
+ return a.modal ? /* @__PURE__ */ i(Et, { present: r || a.open, children: /* @__PURE__ */ i(Li, { ...o, ref: e }) }) : null;
2492
2489
  }
2493
2490
  );
2494
- Hn.displayName = et;
2495
- var Li = Cr("DialogOverlay.RemoveScroll"), Ei = X.forwardRef(
2491
+ Wn.displayName = et;
2492
+ var Ri = Tr("DialogOverlay.RemoveScroll"), Li = X.forwardRef(
2496
2493
  (t, e) => {
2497
2494
  const { __scopeDialog: n, ...r } = t, o = me(et, n);
2498
2495
  return (
2499
2496
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
2500
2497
  // ie. when `Overlay` and `Content` are siblings
2501
- /* @__PURE__ */ i(yr, { as: Li, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ i(
2498
+ /* @__PURE__ */ i(Pr, { as: Ri, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ i(
2502
2499
  je.div,
2503
2500
  {
2504
2501
  "data-state": At(o.open),
@@ -2509,22 +2506,22 @@ var Li = Cr("DialogOverlay.RemoveScroll"), Ei = X.forwardRef(
2509
2506
  ) })
2510
2507
  );
2511
2508
  }
2512
- ), De = "DialogContent", $n = X.forwardRef(
2509
+ ), De = "DialogContent", Hn = X.forwardRef(
2513
2510
  (t, e) => {
2514
- const n = Mn(De, t.__scopeDialog), { forceMount: r = n.forceMount, ...o } = t, a = me(De, t.__scopeDialog);
2515
- return /* @__PURE__ */ i(Et, { present: r || a.open, children: a.modal ? /* @__PURE__ */ i(Ni, { ...o, ref: e }) : /* @__PURE__ */ i(Oi, { ...o, ref: e }) });
2511
+ const n = kn(De, t.__scopeDialog), { forceMount: r = n.forceMount, ...o } = t, a = me(De, t.__scopeDialog);
2512
+ return /* @__PURE__ */ i(Et, { present: r || a.open, children: a.modal ? /* @__PURE__ */ i(Ei, { ...o, ref: e }) : /* @__PURE__ */ i(Ni, { ...o, ref: e }) });
2516
2513
  }
2517
2514
  );
2518
- $n.displayName = De;
2519
- var Ni = X.forwardRef(
2515
+ Hn.displayName = De;
2516
+ var Ei = X.forwardRef(
2520
2517
  (t, e) => {
2521
2518
  const n = me(De, t.__scopeDialog), r = X.useRef(null), o = Lt(e, n.contentRef, r);
2522
2519
  return X.useEffect(() => {
2523
2520
  const a = r.current;
2524
2521
  if (a)
2525
- return Ir(a);
2522
+ return yr(a);
2526
2523
  }, []), /* @__PURE__ */ i(
2527
- Gn,
2524
+ $n,
2528
2525
  {
2529
2526
  ...t,
2530
2527
  ref: o,
@@ -2545,11 +2542,11 @@ var Ni = X.forwardRef(
2545
2542
  }
2546
2543
  );
2547
2544
  }
2548
- ), Oi = X.forwardRef(
2545
+ ), Ni = X.forwardRef(
2549
2546
  (t, e) => {
2550
2547
  const n = me(De, t.__scopeDialog), r = X.useRef(!1), o = X.useRef(!1);
2551
2548
  return /* @__PURE__ */ i(
2552
- Gn,
2549
+ $n,
2553
2550
  {
2554
2551
  ...t,
2555
2552
  ref: e,
@@ -2568,12 +2565,12 @@ var Ni = X.forwardRef(
2568
2565
  }
2569
2566
  );
2570
2567
  }
2571
- ), Gn = X.forwardRef(
2568
+ ), $n = X.forwardRef(
2572
2569
  (t, e) => {
2573
2570
  const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...c } = t, d = me(De, n), l = X.useRef(null), f = Lt(e, l);
2574
- return Sr(), /* @__PURE__ */ W(fe, { children: [
2571
+ return Ir(), /* @__PURE__ */ W(fe, { children: [
2575
2572
  /* @__PURE__ */ i(
2576
- xr,
2573
+ Sr,
2577
2574
  {
2578
2575
  asChild: !0,
2579
2576
  loop: !0,
@@ -2581,7 +2578,7 @@ var Ni = X.forwardRef(
2581
2578
  onMountAutoFocus: o,
2582
2579
  onUnmountAutoFocus: a,
2583
2580
  children: /* @__PURE__ */ i(
2584
- Pr,
2581
+ Cr,
2585
2582
  {
2586
2583
  role: "dialog",
2587
2584
  id: d.contentId,
@@ -2596,28 +2593,28 @@ var Ni = X.forwardRef(
2596
2593
  }
2597
2594
  ),
2598
2595
  /* @__PURE__ */ W(fe, { children: [
2599
- /* @__PURE__ */ i(zi, { titleId: d.titleId }),
2600
- /* @__PURE__ */ i(Fi, { contentRef: l, descriptionId: d.descriptionId })
2596
+ /* @__PURE__ */ i(Di, { titleId: d.titleId }),
2597
+ /* @__PURE__ */ i(Ai, { contentRef: l, descriptionId: d.descriptionId })
2601
2598
  ] })
2602
2599
  ] });
2603
2600
  }
2604
- ), zt = "DialogTitle", qn = X.forwardRef(
2601
+ ), zt = "DialogTitle", Gn = X.forwardRef(
2605
2602
  (t, e) => {
2606
2603
  const { __scopeDialog: n, ...r } = t, o = me(zt, n);
2607
2604
  return /* @__PURE__ */ i(je.h2, { id: o.titleId, ...r, ref: e });
2608
2605
  }
2609
2606
  );
2610
- qn.displayName = zt;
2611
- var Un = "DialogDescription", Di = X.forwardRef(
2607
+ Gn.displayName = zt;
2608
+ var qn = "DialogDescription", Oi = X.forwardRef(
2612
2609
  (t, e) => {
2613
- const { __scopeDialog: n, ...r } = t, o = me(Un, n);
2610
+ const { __scopeDialog: n, ...r } = t, o = me(qn, n);
2614
2611
  return /* @__PURE__ */ i(je.p, { id: o.descriptionId, ...r, ref: e });
2615
2612
  }
2616
2613
  );
2617
- Di.displayName = Un;
2618
- var Vn = "DialogClose", Bn = X.forwardRef(
2614
+ Oi.displayName = qn;
2615
+ var Un = "DialogClose", Vn = X.forwardRef(
2619
2616
  (t, e) => {
2620
- const { __scopeDialog: n, ...r } = t, o = me(Vn, n);
2617
+ const { __scopeDialog: n, ...r } = t, o = me(Un, n);
2621
2618
  return /* @__PURE__ */ i(
2622
2619
  je.button,
2623
2620
  {
@@ -2629,16 +2626,16 @@ var Vn = "DialogClose", Bn = X.forwardRef(
2629
2626
  );
2630
2627
  }
2631
2628
  );
2632
- Bn.displayName = Vn;
2629
+ Vn.displayName = Un;
2633
2630
  function At(t) {
2634
2631
  return t ? "open" : "closed";
2635
2632
  }
2636
- var Zn = "DialogTitleWarning", [Pc, jn] = br(Zn, {
2633
+ var Bn = "DialogTitleWarning", [Cc, Zn] = _r(Bn, {
2637
2634
  contentName: De,
2638
2635
  titleName: zt,
2639
2636
  docsSlug: "dialog"
2640
- }), zi = ({ titleId: t }) => {
2641
- const e = jn(Zn), n = `\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
2637
+ }), Di = ({ titleId: t }) => {
2638
+ const e = Zn(Bn), n = `\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
2642
2639
 
2643
2640
  If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
2644
2641
 
@@ -2646,14 +2643,14 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
2646
2643
  return X.useEffect(() => {
2647
2644
  t && (document.getElementById(t) || console.error(n));
2648
2645
  }, [n, t]), null;
2649
- }, Ai = "DialogDescriptionWarning", Fi = ({ contentRef: t, descriptionId: e }) => {
2650
- const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${jn(Ai).contentName}}.`;
2646
+ }, zi = "DialogDescriptionWarning", Ai = ({ contentRef: t, descriptionId: e }) => {
2647
+ const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Zn(zi).contentName}}.`;
2651
2648
  return X.useEffect(() => {
2652
2649
  var a;
2653
2650
  const o = (a = t.current) == null ? void 0 : a.getAttribute("aria-describedby");
2654
2651
  e && o && (document.getElementById(e) || console.warn(r));
2655
2652
  }, [r, t, e]), null;
2656
- }, ki = Fn, Mi = Wn, Wi = Hn, Hi = $n, $i = qn, Gi = Bn;
2653
+ }, Fi = An, ki = Mn, Mi = Wn, Wi = Hn, Hi = Gn, $i = Vn;
2657
2654
  const Ne = {
2658
2655
  "rp-dialog-wrapper": "_rp-dialog-wrapper_slqo7_1",
2659
2656
  "rp-dialog-overlay": "_rp-dialog-overlay_slqo7_7",
@@ -2662,7 +2659,7 @@ const Ne = {
2662
2659
  "rp-dialog-title": "_rp-dialog-title_slqo7_39",
2663
2660
  "rp-dialog-close": "_rp-dialog-close_slqo7_47",
2664
2661
  "rp-properties-divider": "_rp-properties-divider_slqo7_55"
2665
- }, qi = () => {
2662
+ }, Gi = () => {
2666
2663
  const { pdfProperties: t } = ie(), { container: e } = Ce(), { activeDocumentProperties: n, setActiveDocumentProperties: r } = Oo(), { localeMessages: o } = pe(), a = M(() => {
2667
2664
  if (!t)
2668
2665
  return [];
@@ -2691,11 +2688,11 @@ const Ne = {
2691
2688
  { label: o == null ? void 0 : o.propertiesCreatorLabel, value: h },
2692
2689
  {
2693
2690
  label: o == null ? void 0 : o.propertiesCreateOnLabel,
2694
- value: C ? Gt(C) : ""
2691
+ value: C ? $t(C) : ""
2695
2692
  },
2696
2693
  {
2697
2694
  label: o == null ? void 0 : o.propertiesModifiedOnLabel,
2698
- value: P ? Gt(P) : ""
2695
+ value: P ? $t(P) : ""
2699
2696
  },
2700
2697
  { separate: !0 },
2701
2698
  { label: o == null ? void 0 : o.propertiesPDFProducerLabel, value: T },
@@ -2703,48 +2700,48 @@ const Ne = {
2703
2700
  { label: o == null ? void 0 : o.propertiesPageCountLabel, value: I }
2704
2701
  ];
2705
2702
  }, [t, o]);
2706
- return /* @__PURE__ */ i(ki, { open: n, onOpenChange: r, children: /* @__PURE__ */ i(Mi, { container: e, children: /* @__PURE__ */ W("div", { className: Ne["rp-dialog-wrapper"], children: [
2707
- /* @__PURE__ */ i(Wi, { className: Ne["rp-dialog-overlay"] }),
2708
- /* @__PURE__ */ W(Hi, { className: Ne["rp-document-dialog"], children: [
2709
- /* @__PURE__ */ i($i, { className: Ne["rp-dialog-title"], children: o == null ? void 0 : o.documentPropertiesLabel }),
2703
+ return /* @__PURE__ */ i(Fi, { open: n, onOpenChange: r, children: /* @__PURE__ */ i(ki, { container: e, children: /* @__PURE__ */ W("div", { className: Ne["rp-dialog-wrapper"], children: [
2704
+ /* @__PURE__ */ i(Mi, { className: Ne["rp-dialog-overlay"] }),
2705
+ /* @__PURE__ */ W(Wi, { className: Ne["rp-document-dialog"], children: [
2706
+ /* @__PURE__ */ i(Hi, { className: Ne["rp-dialog-title"], children: o == null ? void 0 : o.documentPropertiesLabel }),
2710
2707
  /* @__PURE__ */ i("div", { className: Ne["rp-document-properties"], children: a.map((c, d) => /* @__PURE__ */ i("div", { children: c.separate ? /* @__PURE__ */ i("div", { className: Ne["rp-properties-divider"] }) : /* @__PURE__ */ i(Uo, { label: c.label, value: c.value }) }, d)) }),
2711
- /* @__PURE__ */ i(Gi, { asChild: !0, className: Ne["rp-dialog-close"], children: /* @__PURE__ */ i(Lr, {}) })
2708
+ /* @__PURE__ */ i($i, { asChild: !0, className: Ne["rp-dialog-close"], children: /* @__PURE__ */ i(Rr, {}) })
2712
2709
  ] })
2713
2710
  ] }) }) });
2714
- }, Ui = {
2711
+ }, qi = {
2715
2712
  "rp-other-tool-content": "_rp-other-tool-content_su718_1"
2716
- }, ln = ".pdf", Vi = (t) => URL.createObjectURL(t), Bi = async (t) => {
2713
+ }, cn = ".pdf", Ui = (t) => URL.createObjectURL(t), Vi = async (t) => {
2717
2714
  const n = await (await fetch(t)).blob();
2718
- return Vi(n);
2719
- }, Kn = () => {
2715
+ return Ui(n);
2716
+ }, jn = () => {
2720
2717
  const { filename: t, pdfSrc: e } = ie(), { downloadFilename: n } = Ro(), r = (a) => {
2721
2718
  const c = n || a;
2722
- return c.endsWith(ln) ? c : `${c}${ln}`;
2719
+ return c.endsWith(cn) ? c : `${c}${cn}`;
2723
2720
  };
2724
2721
  return { download: E(async () => {
2725
2722
  if (!t || !e)
2726
2723
  throw new Error("There is no PDF source to download");
2727
2724
  const a = document.createElement("a");
2728
- a.href = await Bi(e), a.download = r(t), document.body.appendChild(a), a.click(), document.body.removeChild(a);
2725
+ a.href = await Vi(e), a.download = r(t), document.body.appendChild(a), a.click(), document.body.removeChild(a);
2729
2726
  }, [t, e]) };
2730
- }, Xn = () => {
2727
+ }, Kn = () => {
2731
2728
  const { downloadIcon: t } = ve(), { downloadIcon: e } = ge();
2732
- return t || e || /* @__PURE__ */ i(zr, {});
2733
- }, Qn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(K, { className: e, content: n == null ? void 0 : n.downloadFileTooltip, children: t }), Zi = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(Qn, { localeMessages: e, children: /* @__PURE__ */ i(de, { onClick: t, "aria-label": e == null ? void 0 : e.downloadFileTooltip, children: /* @__PURE__ */ i(Xn, {}) }) }), ji = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(Ie, { onClick: t, children: /* @__PURE__ */ W(Qn, { className: "rp-menu-item", localeMessages: e, children: [
2734
- /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Xn, {}) }),
2729
+ return t || e || /* @__PURE__ */ i(Dr, {});
2730
+ }, Xn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(K, { className: e, content: n == null ? void 0 : n.downloadFileTooltip, children: t }), Bi = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(Xn, { localeMessages: e, children: /* @__PURE__ */ i(de, { onClick: t, "aria-label": e == null ? void 0 : e.downloadFileTooltip, children: /* @__PURE__ */ i(Kn, {}) }) }), Zi = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(Ie, { onClick: t, children: /* @__PURE__ */ W(Xn, { className: "rp-menu-item", localeMessages: e, children: [
2731
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Kn, {}) }),
2735
2732
  e == null ? void 0 : e.downloadFileLabel
2736
- ] }) }), Yn = () => {
2737
- const { download: t } = Kn(), { downloadTool: e = !0 } = Pe(), { downloadTool: n = !0 } = Se(), { isSmallScreen: r } = xe(), { localeMessages: o } = pe(), a = o == null ? void 0 : o.downloadFileTooltip;
2738
- return !e || !n ? null : r ? /* @__PURE__ */ i(ji, { download: t, localeMessages: o }) : typeof e == "function" ? /* @__PURE__ */ i(K, { content: a, children: /* @__PURE__ */ i(e, { download: t }) }) : typeof n == "function" ? /* @__PURE__ */ i(K, { content: a, children: /* @__PURE__ */ i(n, { download: t }) }) : /* @__PURE__ */ i(Zi, { download: t, localeMessages: o });
2739
- }, Jn = () => {
2733
+ ] }) }), Qn = () => {
2734
+ const { download: t } = jn(), { downloadTool: e = !0 } = Pe(), { downloadTool: n = !0 } = Se(), { isSmallScreen: r } = xe(), { localeMessages: o } = pe(), a = o == null ? void 0 : o.downloadFileTooltip;
2735
+ return !e || !n ? null : r ? /* @__PURE__ */ i(Zi, { download: t, localeMessages: o }) : typeof e == "function" ? /* @__PURE__ */ i(K, { content: a, children: /* @__PURE__ */ i(e, { download: t }) }) : typeof n == "function" ? /* @__PURE__ */ i(K, { content: a, children: /* @__PURE__ */ i(n, { download: t }) }) : /* @__PURE__ */ i(Bi, { download: t, localeMessages: o });
2736
+ }, Yn = () => {
2740
2737
  const { printIcon: t } = ve(), { printIcon: e } = ge();
2741
- return t || e || /* @__PURE__ */ i(Ar, {});
2742
- }, eo = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(K, { className: e, content: n == null ? void 0 : n.printTooltip, children: t }), Ki = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(eo, { localeMessages: e, children: /* @__PURE__ */ i(de, { onClick: t, "aria-label": e == null ? void 0 : e.printTooltip, children: /* @__PURE__ */ i(Jn, {}) }) }), Xi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(Ie, { onClick: t, children: /* @__PURE__ */ W(eo, { className: "rp-menu-item", localeMessages: e, children: [
2743
- /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Jn, {}) }),
2738
+ return t || e || /* @__PURE__ */ i(zr, {});
2739
+ }, Jn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(K, { className: e, content: n == null ? void 0 : n.printTooltip, children: t }), ji = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(Jn, { localeMessages: e, children: /* @__PURE__ */ i(de, { onClick: t, "aria-label": e == null ? void 0 : e.printTooltip, children: /* @__PURE__ */ i(Yn, {}) }) }), Ki = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(Ie, { onClick: t, children: /* @__PURE__ */ W(Jn, { className: "rp-menu-item", localeMessages: e, children: [
2740
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Yn, {}) }),
2744
2741
  e == null ? void 0 : e.printLabel
2745
- ] }) }), to = () => {
2742
+ ] }) }), eo = () => {
2746
2743
  const { print: t, cancel: e, setOnProgress: n, setOnComplete: r, setOnError: o, progress: a } = it(), { printTool: c = !0 } = Pe(), { printTool: d = !0 } = Se(), { isSmallScreen: l } = xe(), { localeMessages: f } = pe(), m = f == null ? void 0 : f.printTooltip;
2747
- return !c || !d ? null : l ? /* @__PURE__ */ i(Xi, { print: t, localeMessages: f }) : typeof c == "function" ? /* @__PURE__ */ i(K, { content: m, children: /* @__PURE__ */ i(
2744
+ return !c || !d ? null : l ? /* @__PURE__ */ i(Ki, { print: t, localeMessages: f }) : typeof c == "function" ? /* @__PURE__ */ i(K, { content: m, children: /* @__PURE__ */ i(
2748
2745
  c,
2749
2746
  {
2750
2747
  print: t,
@@ -2764,33 +2761,33 @@ const Ne = {
2764
2761
  setOnComplete: r,
2765
2762
  progress: a
2766
2763
  }
2767
- ) }) : /* @__PURE__ */ i(Ki, { print: t, localeMessages: f });
2768
- }, Qi = {
2764
+ ) }) : /* @__PURE__ */ i(ji, { print: t, localeMessages: f });
2765
+ }, Xi = {
2769
2766
  "rp-go-to-Top": "_rp-go-to-Top_4e0yd_1"
2770
- }, Yi = () => {
2767
+ }, Qi = () => {
2771
2768
  const { goToFirstPageIcon: t } = ve(), { goToFirstPageIcon: e } = ge();
2772
- return t || e || /* @__PURE__ */ i(Tn, { className: Qi["rp-go-to-Top"] });
2773
- }, Ji = () => {
2769
+ return t || e || /* @__PURE__ */ i(bn, { className: Xi["rp-go-to-Top"] });
2770
+ }, Yi = () => {
2774
2771
  const { goToLastPageIcon: t } = ve(), { goToLastPageIcon: e } = ge();
2775
- return t || e || /* @__PURE__ */ i(Tn, {});
2776
- }, dn = { width: "100%" }, ea = () => {
2772
+ return t || e || /* @__PURE__ */ i(bn, {});
2773
+ }, ln = { width: "100%" }, Ji = () => {
2777
2774
  const { goToPage: t, totalPages: e, focusedPage: n } = he(), { jumpNavigationTool: r = !0 } = Pe(), { jumpNavigationTool: o = !0 } = Se(), { localeMessages: a } = pe(), c = M(() => n === 1, [n]), d = M(() => n === e, [n, e]), l = E(() => {
2778
2775
  t(1);
2779
2776
  }, [t]), f = E(() => {
2780
2777
  t(e);
2781
2778
  }, [t, e]);
2782
2779
  return !r || !o ? null : /* @__PURE__ */ W(Je, { children: [
2783
- /* @__PURE__ */ i(Ie, { onClick: l, children: /* @__PURE__ */ i(K, { content: a == null ? void 0 : a.firstPageTooltip, style: dn, children: /* @__PURE__ */ W("div", { className: "rp-menu-item", "aria-disabled": c, children: [
2784
- /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Yi, {}) }),
2780
+ /* @__PURE__ */ i(Ie, { onClick: l, children: /* @__PURE__ */ i(K, { content: a == null ? void 0 : a.firstPageTooltip, style: ln, children: /* @__PURE__ */ W("div", { className: "rp-menu-item", "aria-disabled": c, children: [
2781
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Qi, {}) }),
2785
2782
  /* @__PURE__ */ i("span", { children: a == null ? void 0 : a.firstPageLabel })
2786
2783
  ] }) }) }),
2787
- /* @__PURE__ */ i(Ie, { onClick: f, children: /* @__PURE__ */ i(K, { content: a == null ? void 0 : a.lastPageTooltip, style: dn, children: /* @__PURE__ */ W("div", { className: "rp-menu-item", "aria-disabled": d, children: [
2788
- /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Ji, {}) }),
2784
+ /* @__PURE__ */ i(Ie, { onClick: f, children: /* @__PURE__ */ i(K, { content: a == null ? void 0 : a.lastPageTooltip, style: ln, children: /* @__PURE__ */ W("div", { className: "rp-menu-item", "aria-disabled": d, children: [
2785
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Yi, {}) }),
2789
2786
  /* @__PURE__ */ i("span", { children: a == null ? void 0 : a.lastPageLabel })
2790
2787
  ] }) }) }),
2791
2788
  /* @__PURE__ */ i(St, {})
2792
2789
  ] });
2793
- }, ta = () => {
2790
+ }, ea = () => {
2794
2791
  const [t, e] = $(!1), { container: n, pagesRef: r } = Ce(), { isSmallScreen: o } = xe(), {
2795
2792
  openFileTool: a,
2796
2793
  downloadTool: c,
@@ -2848,57 +2845,57 @@ const Ne = {
2848
2845
  {
2849
2846
  container: n,
2850
2847
  onOpenChange: e,
2851
- triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(K, { content: x == null ? void 0 : x.moreOptionTooltip, children: /* @__PURE__ */ i(de, { active: t, "aria-label": x == null ? void 0 : x.moreOptionTooltip, children: /* @__PURE__ */ i(wr, {}) }) }) }),
2848
+ triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(K, { content: x == null ? void 0 : x.moreOptionTooltip, children: /* @__PURE__ */ i(de, { active: t, "aria-label": x == null ? void 0 : x.moreOptionTooltip, children: /* @__PURE__ */ i(vr, {}) }) }) }),
2852
2849
  side: "bottom",
2853
2850
  avoidCollisions: !1,
2854
2851
  children: /* @__PURE__ */ W(
2855
2852
  "div",
2856
2853
  {
2857
2854
  style: { maxHeight: `${S}px`, overflow: "auto" },
2858
- className: Ui["rp-other-tool-content"],
2855
+ className: qi["rp-other-tool-content"],
2859
2856
  "data-rp": "moreOptionsDropdown",
2860
2857
  children: [
2861
2858
  o && /* @__PURE__ */ W(Je, { children: [
2859
+ /* @__PURE__ */ i(wn, {}),
2860
+ /* @__PURE__ */ i(Qn, {}),
2861
+ /* @__PURE__ */ i(eo, {}),
2862
2862
  /* @__PURE__ */ i(_n, {}),
2863
- /* @__PURE__ */ i(Yn, {}),
2864
- /* @__PURE__ */ i(to, {}),
2865
- /* @__PURE__ */ i(bn, {}),
2866
2863
  /* @__PURE__ */ i(St, {})
2867
2864
  ] }),
2868
- /* @__PURE__ */ i(ea, {}),
2865
+ /* @__PURE__ */ i(Ji, {}),
2866
+ /* @__PURE__ */ i(Er, {}),
2867
+ /* @__PURE__ */ i(Ar, {}),
2869
2868
  /* @__PURE__ */ i(Nr, {}),
2870
- /* @__PURE__ */ i(Fr, {}),
2871
2869
  /* @__PURE__ */ i(Or, {}),
2872
- /* @__PURE__ */ i(Dr, {}),
2873
- /* @__PURE__ */ i(Er, {})
2870
+ /* @__PURE__ */ i(Lr, {})
2874
2871
  ]
2875
2872
  }
2876
2873
  )
2877
2874
  }
2878
2875
  ),
2879
- /* @__PURE__ */ i(qi, {})
2876
+ /* @__PURE__ */ i(Gi, {})
2880
2877
  ] });
2881
- }, na = () => {
2878
+ }, ta = () => {
2882
2879
  const { isSmallScreen: t } = xe();
2883
2880
  return /* @__PURE__ */ W(fe, { children: [
2884
- /* @__PURE__ */ i(vr, {}),
2881
+ /* @__PURE__ */ i(gr, {}),
2885
2882
  !t && /* @__PURE__ */ W(fe, { children: [
2886
- /* @__PURE__ */ i(_n, {}),
2887
- /* @__PURE__ */ i(Yn, {}),
2888
- /* @__PURE__ */ i(to, {}),
2889
- /* @__PURE__ */ i(bn, {})
2883
+ /* @__PURE__ */ i(wn, {}),
2884
+ /* @__PURE__ */ i(Qn, {}),
2885
+ /* @__PURE__ */ i(eo, {}),
2886
+ /* @__PURE__ */ i(_n, {})
2890
2887
  ] }),
2891
- /* @__PURE__ */ i(ta, {})
2888
+ /* @__PURE__ */ i(ea, {})
2892
2889
  ] });
2893
- }, oa = "_active_1yldl_11", Fe = {
2890
+ }, na = "_active_1yldl_11", Fe = {
2894
2891
  "rp-zoom-wrapper": "_rp-zoom-wrapper_1yldl_1",
2895
2892
  "rp-current-zoom-wrapper": "_rp-current-zoom-wrapper_1yldl_6",
2896
- active: oa,
2893
+ active: na,
2897
2894
  "rp-current-zoom-icon": "_rp-current-zoom-icon_1yldl_15",
2898
2895
  "rp-zoom-level-icon": "_rp-zoom-level-icon_1yldl_20",
2899
2896
  "rp-current-zoom-text": "_rp-current-zoom-text_1yldl_24",
2900
2897
  "rp-zoom-dropdown-content": "_rp-zoom-dropdown-content_1yldl_28"
2901
- }, ra = ({ zoomLevel: t, className: e }) => {
2898
+ }, oa = ({ zoomLevel: t, className: e }) => {
2902
2899
  const { localeMessages: n } = pe(), r = M(() => {
2903
2900
  switch (t) {
2904
2901
  case We.ACTUAL:
@@ -2910,17 +2907,17 @@ const Ne = {
2910
2907
  }
2911
2908
  return t.toString();
2912
2909
  }, [t, n]);
2913
- return /* @__PURE__ */ i(fe, { children: typeof t == "number" ? /* @__PURE__ */ W(ho, { children: [
2910
+ return /* @__PURE__ */ i(fe, { children: typeof t == "number" ? /* @__PURE__ */ W(po, { children: [
2914
2911
  /* @__PURE__ */ i("span", { className: e, children: t }),
2915
2912
  /* @__PURE__ */ i("span", { className: e, children: "%" })
2916
2913
  ] }) : /* @__PURE__ */ i("span", { className: e, children: r }) });
2917
- }, ia = [50, 75, 100, 125, 150, 200, 300, 400], aa = () => {
2914
+ }, ra = [50, 75, 100, 125, 150, 200, 300, 400], ia = () => {
2918
2915
  const { zoomInIcon: t } = ve(), { zoomInIcon: e } = ge();
2916
+ return t || e || /* @__PURE__ */ i(Fr, {});
2917
+ }, aa = () => {
2918
+ const { zoomOutIcon: t } = ve(), { zoomOutIcon: e } = ge();
2919
2919
  return t || e || /* @__PURE__ */ i(kr, {});
2920
2920
  }, sa = () => {
2921
- const { zoomOutIcon: t } = ve(), { zoomOutIcon: e } = ge();
2922
- return t || e || /* @__PURE__ */ i(Mr, {});
2923
- }, ca = () => {
2924
2921
  const { zoomLevel: t, setZoomLevel: e, currentZoom: n } = tt(), { container: r, pagesRef: o } = Ce(), { zoomTool: a = !0 } = Pe(), { zoomTool: c = !0 } = Se(), { isSmallScreen: d } = xe(), { localeMessages: l } = pe(), [f, m] = $(0), [C, h] = $(!1), w = H(
2925
2922
  new ResizeObserver((g) => {
2926
2923
  m(g[0].contentRect.height);
@@ -2928,14 +2925,14 @@ const Ne = {
2928
2925
  ), P = E(() => {
2929
2926
  e(() => {
2930
2927
  const g = Math.floor(n * 100 / 25) * 25;
2931
- return Math.min(g + 25, qt);
2928
+ return Math.min(g + 25, Gt);
2932
2929
  });
2933
2930
  }, [e, n]), T = E(() => {
2934
2931
  e(() => {
2935
2932
  const g = Math.ceil(n * 100 / 25) * 25;
2936
- return Math.min(g - 25, qt);
2933
+ return Math.min(g - 25, Gt);
2937
2934
  });
2938
- }, [e, n]), v = M(() => Wr(n), [n]), I = M(() => Hr(n), [n]);
2935
+ }, [e, n]), v = M(() => Mr(n), [n]), I = M(() => Wr(n), [n]);
2939
2936
  return D(() => (o && w.current.observe(o), () => {
2940
2937
  w.current.disconnect();
2941
2938
  }), [o]), !a || !c ? null : typeof a == "function" ? /* @__PURE__ */ i(a, { zoomLevel: t, setZoomLevel: e }) : typeof c == "function" ? /* @__PURE__ */ i(c, { zoomLevel: t, setZoomLevel: e }) : /* @__PURE__ */ W("div", { className: Fe["rp-zoom-wrapper"], children: [
@@ -2945,7 +2942,7 @@ const Ne = {
2945
2942
  disabled: v,
2946
2943
  onClick: T,
2947
2944
  "aria-label": l == null ? void 0 : l.zoomOutTooltip,
2948
- children: /* @__PURE__ */ i(sa, {})
2945
+ children: /* @__PURE__ */ i(aa, {})
2949
2946
  }
2950
2947
  ) }),
2951
2948
  !d && /* @__PURE__ */ i(
@@ -2964,7 +2961,7 @@ const Ne = {
2964
2961
  "aria-label": l == null ? void 0 : l.zoomSelectTooltip,
2965
2962
  children: [
2966
2963
  /* @__PURE__ */ i(
2967
- ra,
2964
+ oa,
2968
2965
  {
2969
2966
  zoomLevel: t,
2970
2967
  className: Fe["rp-current-zoom-text"]
@@ -2990,7 +2987,7 @@ const Ne = {
2990
2987
  /* @__PURE__ */ i(Ie, { onClick: () => e(We.PAGE_WIDTH), children: l == null ? void 0 : l.zoomPageWidth })
2991
2988
  ] }),
2992
2989
  /* @__PURE__ */ i(St, {}),
2993
- /* @__PURE__ */ i(Je, { children: ia.map((g) => /* @__PURE__ */ W(Ie, { onClick: () => e(g), children: [
2990
+ /* @__PURE__ */ i(Je, { children: ra.map((g) => /* @__PURE__ */ W(Ie, { onClick: () => e(g), children: [
2994
2991
  g,
2995
2992
  " %"
2996
2993
  ] }, g)) })
@@ -3005,11 +3002,11 @@ const Ne = {
3005
3002
  disabled: I,
3006
3003
  onClick: P,
3007
3004
  "aria-label": l == null ? void 0 : l.zoomInTooltip,
3008
- children: /* @__PURE__ */ i(aa, {})
3005
+ children: /* @__PURE__ */ i(ia, {})
3009
3006
  }
3010
3007
  ) })
3011
3008
  ] });
3012
- }, un = () => {
3009
+ }, dn = () => {
3013
3010
  const { totalMatches: t, nextMatch: e, prevMatch: n } = Nt(), { localeMessages: r } = pe();
3014
3011
  return /* @__PURE__ */ W(fe, { children: [
3015
3012
  /* @__PURE__ */ i(
@@ -3042,10 +3039,10 @@ const Ne = {
3042
3039
  }
3043
3040
  )
3044
3041
  ] });
3045
- }, la = () => {
3042
+ }, ca = () => {
3046
3043
  const { searchIcon: t } = ve(), { searchIcon: e } = ge();
3047
- return t || e || /* @__PURE__ */ i(Cn, {});
3048
- }, da = ({ icon: t }) => {
3044
+ return t || e || /* @__PURE__ */ i(Tn, {});
3045
+ }, la = ({ icon: t }) => {
3049
3046
  const { container: e } = Ce(), [n, r] = $(!1), { pdf: o } = ie(), [a, c] = $(null), {
3050
3047
  searchOptions: d,
3051
3048
  setSearchOptions: l,
@@ -3144,7 +3141,7 @@ const Ne = {
3144
3141
  active: n,
3145
3142
  onClick: S,
3146
3143
  "aria-label": p == null ? void 0 : p.searchButtonTooltip,
3147
- children: t || /* @__PURE__ */ i(la, {})
3144
+ children: t || /* @__PURE__ */ i(ca, {})
3148
3145
  }
3149
3146
  ) }),
3150
3147
  children: /* @__PURE__ */ W(
@@ -3158,28 +3155,28 @@ const Ne = {
3158
3155
  /* @__PURE__ */ W("div", { className: oe["rp-search-tool-input-wrapper"], children: [
3159
3156
  /* @__PURE__ */ W("div", { className: oe["rp-search-tool-input"], children: [
3160
3157
  /* @__PURE__ */ i(K, { content: p == null ? void 0 : p.searchInputTooltip, children: /* @__PURE__ */ i(
3161
- mn,
3158
+ fn,
3162
3159
  {
3163
3160
  value: g,
3164
3161
  onKeyDown: k,
3165
3162
  onChange: A,
3166
- icon: /* @__PURE__ */ i(Cn, {}),
3163
+ icon: /* @__PURE__ */ i(Tn, {}),
3167
3164
  placeholder: p == null ? void 0 : p.searchInputPlaceholder,
3168
3165
  className: oe["rp-search-input"],
3169
3166
  ref: c,
3170
3167
  id: "search-input",
3171
3168
  name: "search-input",
3172
3169
  tabIndex: 0,
3173
- children: !!g && /* @__PURE__ */ i("span", { className: oe["rp-search-tool-input-clear"], onClick: z, children: /* @__PURE__ */ i($r, {}) })
3170
+ children: !!g && /* @__PURE__ */ i("span", { className: oe["rp-search-tool-input-clear"], onClick: z, children: /* @__PURE__ */ i(Hr, {}) })
3174
3171
  }
3175
3172
  ) }),
3176
- f ? /* @__PURE__ */ i("span", { children: /* @__PURE__ */ i(wn, { className: oe["rp-search-loader-icon"] }) }) : /* @__PURE__ */ i("span", { children: F }),
3177
- s && /* @__PURE__ */ i("div", { className: oe["rp-search-tool-controls"], children: /* @__PURE__ */ i(Ht, { onKeyPress: L, handleClose: R }) })
3173
+ f ? /* @__PURE__ */ i("span", { children: /* @__PURE__ */ i(vn, { className: oe["rp-search-loader-icon"] }) }) : /* @__PURE__ */ i("span", { children: F }),
3174
+ s && /* @__PURE__ */ i("div", { className: oe["rp-search-tool-controls"], children: /* @__PURE__ */ i(Wt, { onKeyPress: L, handleClose: R }) })
3178
3175
  ] }),
3179
3176
  /* @__PURE__ */ W("div", { className: oe["rp-search-tool-input-checkboxes"], children: [
3180
- s && /* @__PURE__ */ i(un, {}),
3177
+ s && /* @__PURE__ */ i(dn, {}),
3181
3178
  /* @__PURE__ */ i(
3182
- $t,
3179
+ Ht,
3183
3180
  {
3184
3181
  tabIndex: 0,
3185
3182
  name: "matchCase",
@@ -3188,9 +3185,9 @@ const Ne = {
3188
3185
  children: p == null ? void 0 : p.searchMatchCaseLabel
3189
3186
  }
3190
3187
  ),
3191
- !s && /* @__PURE__ */ i(K, { content: p == null ? void 0 : p.searchMatchCaseTooltip, children: /* @__PURE__ */ i("div", { className: oe["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ i(jt, {}) }) }),
3188
+ !s && /* @__PURE__ */ i(K, { content: p == null ? void 0 : p.searchMatchCaseTooltip, children: /* @__PURE__ */ i("div", { className: oe["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ i(Zt, {}) }) }),
3192
3189
  /* @__PURE__ */ i(
3193
- $t,
3190
+ Ht,
3194
3191
  {
3195
3192
  tabIndex: 0,
3196
3193
  name: "wholeWord",
@@ -3199,27 +3196,27 @@ const Ne = {
3199
3196
  children: p == null ? void 0 : p.searchWholeWordsLabel
3200
3197
  }
3201
3198
  ),
3202
- !s && /* @__PURE__ */ i(K, { content: p == null ? void 0 : p.searchWholeWordsTooltip, children: /* @__PURE__ */ i("div", { tabIndex: 0, className: oe["rp-search-icon-info"], children: /* @__PURE__ */ i(jt, {}) }) })
3199
+ !s && /* @__PURE__ */ i(K, { content: p == null ? void 0 : p.searchWholeWordsTooltip, children: /* @__PURE__ */ i("div", { tabIndex: 0, className: oe["rp-search-icon-info"], children: /* @__PURE__ */ i(Zt, {}) }) })
3203
3200
  ] })
3204
3201
  ] }),
3205
3202
  !s && /* @__PURE__ */ W("div", { className: oe["rp-search-tool-controls"], children: [
3206
- /* @__PURE__ */ i(un, {}),
3207
- /* @__PURE__ */ i(Ht, { onKeyPress: L, handleClose: R })
3203
+ /* @__PURE__ */ i(dn, {}),
3204
+ /* @__PURE__ */ i(Wt, { onKeyPress: L, handleClose: R })
3208
3205
  ] })
3209
3206
  ]
3210
3207
  }
3211
3208
  )
3212
3209
  }
3213
3210
  ) });
3214
- }, ua = "_loading_wazy2_1", ke = {
3211
+ }, da = "_loading_wazy2_1", ke = {
3215
3212
  "rp-loading-overlay": "_rp-loading-overlay_wazy2_1",
3216
3213
  "rp-loading-modal": "_rp-loading-modal_wazy2_14",
3217
3214
  "rp-loading-title": "_rp-loading-title_wazy2_27",
3218
3215
  "rp-loading-progress-bar": "_rp-loading-progress-bar_wazy2_35",
3219
3216
  "rp-loading-progress": "_rp-loading-progress_wazy2_35",
3220
3217
  "rp-loading-cancel-button": "_rp-loading-cancel-button_wazy2_55",
3221
- loading: ua
3222
- }, pa = ({ percentage: t }) => {
3218
+ loading: da
3219
+ }, ua = ({ percentage: t }) => {
3223
3220
  const { cancel: e } = it(), { localeMessages: n } = pe();
3224
3221
  return t < 1 ? null : /* @__PURE__ */ i("div", { className: se(ke["rp-loading-overlay"]), children: /* @__PURE__ */ W("div", { className: se(ke["rp-loading-modal"]), children: [
3225
3222
  /* @__PURE__ */ W("div", { className: se(ke["rp-loading-title"]), children: [
@@ -3235,19 +3232,19 @@ const Ne = {
3235
3232
  ) }),
3236
3233
  /* @__PURE__ */ i("button", { className: se(ke["rp-loading-cancel-button"]), onClick: e, children: n == null ? void 0 : n.printCancelLabel })
3237
3234
  ] }) });
3238
- }, ha = rt((t, e) => {
3235
+ }, pa = rt((t, e) => {
3239
3236
  const { showPrintProgress: n = !0 } = Pe(), { showPrintProgress: r = !0 } = Se(), { progress: o } = it(), { isSmallScreen: a } = xe(), { percentage: c } = o || {}, d = () => a ? { gridTemplateColumns: "25% 60% 15%" } : void 0, l = () => {
3240
3237
  if (!(!n || !r || !c))
3241
- return /* @__PURE__ */ i(pa, { percentage: c });
3238
+ return /* @__PURE__ */ i(ua, { percentage: c });
3242
3239
  };
3243
3240
  return /* @__PURE__ */ W("div", { children: [
3244
3241
  /* @__PURE__ */ i("div", { "data-rp": "topBar", ref: e, className: $e["rp-toolbar-content"], children: /* @__PURE__ */ W("div", { className: $e["rp-toolbar-wrapper"], style: d(), children: [
3245
3242
  /* @__PURE__ */ W("div", { "data-rp": "topBarLeft", className: $e["rp-toolbar-start"], children: [
3246
- /* @__PURE__ */ i(da, {}),
3247
- /* @__PURE__ */ i(Ii, {})
3243
+ /* @__PURE__ */ i(la, {}),
3244
+ /* @__PURE__ */ i(yi, {})
3248
3245
  ] }),
3249
- /* @__PURE__ */ i("div", { "data-rp": "topBarCenter", className: $e["rp-toolbar-middle"], children: /* @__PURE__ */ i(ca, {}) }),
3250
- /* @__PURE__ */ i("div", { "data-rp": "topBarRight", className: $e["rp-toolbar-end"], children: /* @__PURE__ */ i(na, {}) })
3246
+ /* @__PURE__ */ i("div", { "data-rp": "topBarCenter", className: $e["rp-toolbar-middle"], children: /* @__PURE__ */ i(sa, {}) }),
3247
+ /* @__PURE__ */ i("div", { "data-rp": "topBarRight", className: $e["rp-toolbar-end"], children: /* @__PURE__ */ i(ta, {}) })
3251
3248
  ] }) }),
3252
3249
  /* @__PURE__ */ i(l, {})
3253
3250
  ] });
@@ -3261,8 +3258,8 @@ const Ne = {
3261
3258
  "rp-thumbnail": "_rp-thumbnail_3fenb_1",
3262
3259
  "rp-thumbnail-active": "_rp-thumbnail-active_3fenb_22",
3263
3260
  "rp-thumbnail-loader": "_rp-thumbnail-loader_3fenb_31"
3264
- }, fa = (t) => {
3265
- const { pageNumber: e, isFocused: n, viewport: r } = t, { goToPage: o } = he(), { pageRotate: a } = ot(), c = H(null), d = En(), { pages: l } = ie(), [f, m] = $(null), C = H(!1), h = H(), w = M(() => n ? Ge["rp-thumbnail-active"] : "", [n]), P = M(() => ({
3261
+ }, ha = (t) => {
3262
+ const { pageNumber: e, isFocused: n, viewport: r } = t, { goToPage: o } = he(), { pageRotate: a } = ot(), c = H(null), d = Ln(), { pages: l } = ie(), [f, m] = $(null), C = H(!1), h = H(), w = M(() => n ? Ge["rp-thumbnail-active"] : "", [n]), P = M(() => ({
3266
3263
  width: Math.round(r.width),
3267
3264
  height: Math.round(r.height)
3268
3265
  }), [r]), T = E(() => {
@@ -3339,7 +3336,7 @@ const Ne = {
3339
3336
  width: `${P.width}px`,
3340
3337
  height: `${P.height}px`
3341
3338
  },
3342
- children: /* @__PURE__ */ i(wn, {})
3339
+ children: /* @__PURE__ */ i(vn, {})
3343
3340
  }
3344
3341
  )
3345
3342
  }
@@ -3348,25 +3345,25 @@ const Ne = {
3348
3345
  ]
3349
3346
  }
3350
3347
  );
3351
- }, pn = {
3348
+ }, un = {
3352
3349
  "rp-thumbnails-container": "_rp-thumbnails-container_16vqr_1",
3353
3350
  "rp-thumbnails": "_rp-thumbnails_16vqr_1"
3354
- }, ma = 16, ga = (t, e) => {
3351
+ }, fa = 16, ma = (t, e) => {
3355
3352
  const n = t == null ? void 0 : t.querySelector(`#page-${e}`);
3356
- t && (n != null && n.offsetTop) && (t.scrollTop = (n == null ? void 0 : n.offsetTop) - ma);
3357
- }, va = rt((t, e) => {
3358
- const { show: n, width: r } = t, { focusedPage: o, totalPages: a } = he(), { thumbnailPages: c, addPage: d, thumbnailLength: l, addToPage: f } = xn(), m = H(null), C = H(1);
3359
- hn(e, () => m.current);
3353
+ t && (n != null && n.offsetTop) && (t.scrollTop = (n == null ? void 0 : n.offsetTop) - fa);
3354
+ }, ga = rt((t, e) => {
3355
+ const { show: n, width: r } = t, { focusedPage: o, totalPages: a } = he(), { thumbnailPages: c, addPage: d, thumbnailLength: l, addToPage: f } = Sn(), m = H(null), C = H(1);
3356
+ pn(e, () => m.current);
3360
3357
  const h = M(() => Object.values(c), [c]), w = E(() => {
3361
3358
  const P = l + 1;
3362
3359
  P <= a && d(P);
3363
3360
  }, [d, a, l]);
3364
3361
  return D(() => {
3365
- o > l && a > l ? f(o) : n && C.current !== o && (ga(m.current, o), C.current = o);
3366
- }, [o, l, f, n, h]), Vo(m.current, w), /* @__PURE__ */ i("div", { ref: m, className: pn["rp-thumbnails-container"], style: { width: r }, children: /* @__PURE__ */ i("div", { className: pn["rp-thumbnails"], children: n ? h.map((P, T) => {
3362
+ o > l && a > l ? f(o) : n && C.current !== o && (ma(m.current, o), C.current = o);
3363
+ }, [o, l, f, n, h]), Vo(m.current, w), /* @__PURE__ */ i("div", { ref: m, className: un["rp-thumbnails-container"], style: { width: r }, children: /* @__PURE__ */ i("div", { className: un["rp-thumbnails"], children: n ? h.map((P, T) => {
3367
3364
  var v, I;
3368
3365
  return /* @__PURE__ */ i(
3369
- fa,
3366
+ ha,
3370
3367
  {
3371
3368
  isFocused: o === ((v = P.page) == null ? void 0 : v.pageNumber),
3372
3369
  pageNumber: (I = P.page) == null ? void 0 : I.pageNumber,
@@ -3377,11 +3374,11 @@ const Ne = {
3377
3374
  T
3378
3375
  );
3379
3376
  }) : null }) });
3380
- }), wa = () => {
3377
+ }), va = () => {
3381
3378
  const { thumbnailIcon: t } = ve(), { thumbnailIcon: e } = ge();
3382
3379
  return t || e || /* @__PURE__ */ i(zo, {});
3383
- }, _a = () => {
3384
- const { active: t, setActive: e } = xn(), [n, r] = $(Bo), o = H(null), a = H(null), { thumbnailTool: c, sidebarEnable: d } = Pe(), { localeMessages: l } = pe(), f = E(() => {
3380
+ }, wa = () => {
3381
+ const { active: t, setActive: e } = Sn(), [n, r] = $(Bo), o = H(null), a = H(null), { thumbnailTool: c, sidebarEnable: d } = Pe(), { localeMessages: l } = pe(), f = E(() => {
3385
3382
  e((C) => !C);
3386
3383
  }, []), m = M(() => typeof c != "boolean" && c ? /* @__PURE__ */ i(c, { onClick: f, active: t }) : c ? /* @__PURE__ */ i(K, { content: l == null ? void 0 : l.thumbnailTooltip, children: /* @__PURE__ */ i(
3387
3384
  de,
@@ -3389,7 +3386,7 @@ const Ne = {
3389
3386
  onClick: f,
3390
3387
  active: t,
3391
3388
  "aria-label": l == null ? void 0 : l.thumbnailTooltip,
3392
- children: /* @__PURE__ */ i(wa, {})
3389
+ children: /* @__PURE__ */ i(va, {})
3393
3390
  }
3394
3391
  ) }) : null, [c, t, f, l]);
3395
3392
  return /* @__PURE__ */ i(fe, { children: d && /* @__PURE__ */ W(
@@ -3407,7 +3404,7 @@ const Ne = {
3407
3404
  hidden: !t,
3408
3405
  className: _t["rp-thumbnails-wrapper"],
3409
3406
  children: [
3410
- /* @__PURE__ */ i(va, { show: t, ref: o }),
3407
+ /* @__PURE__ */ i(ga, { show: t, ref: o }),
3411
3408
  /* @__PURE__ */ i(
3412
3409
  Mo,
3413
3410
  {
@@ -3422,7 +3419,7 @@ const Ne = {
3422
3419
  ]
3423
3420
  }
3424
3421
  ) });
3425
- }, yc = fo((t, e) => {
3422
+ }, Pc = ho((t, e) => {
3426
3423
  const {
3427
3424
  children: n,
3428
3425
  slots: r,
@@ -3437,17 +3434,17 @@ const Ne = {
3437
3434
  return D(() => (l && l(), () => {
3438
3435
  f && f();
3439
3436
  }), [l, f]), // TODO: deprecated in v2.0.0, remove later ~
3440
- /* @__PURE__ */ i(zn, { toolbarRef: C, ref: e, children: /* @__PURE__ */ i(Fo, { mobileWidth: d, onLayoutWidthChange: m, children: /* @__PURE__ */ i(ko, { slots: r, children: /* @__PURE__ */ i(qo, { icons: o, children: /* @__PURE__ */ W(Ao, { getContainerRef: w, style: a, className: c, children: [
3437
+ /* @__PURE__ */ i(Dn, { toolbarRef: C, ref: e, children: /* @__PURE__ */ i(Fo, { mobileWidth: d, onLayoutWidthChange: m, children: /* @__PURE__ */ i(ko, { slots: r, children: /* @__PURE__ */ i(qo, { icons: o, children: /* @__PURE__ */ W(Ao, { getContainerRef: w, style: a, className: c, children: [
3441
3438
  /* @__PURE__ */ W(Wo, { children: [
3442
3439
  /* @__PURE__ */ W("div", { className: ye["rp-layout"], children: [
3443
3440
  /* @__PURE__ */ i(
3444
- ha,
3441
+ pa,
3445
3442
  {
3446
3443
  ref: h
3447
3444
  }
3448
3445
  ),
3449
3446
  /* @__PURE__ */ W("div", { className: ye["rp-content"], children: [
3450
- /* @__PURE__ */ i("div", { className: ye["rp-sidebar"], children: /* @__PURE__ */ i(_a, {}) }),
3447
+ /* @__PURE__ */ i("div", { className: ye["rp-sidebar"], children: /* @__PURE__ */ i(wa, {}) }),
3451
3448
  /* @__PURE__ */ i("div", { ref: P, className: ye["rp-pages"], children: n })
3452
3449
  ] })
3453
3450
  ] }),
@@ -3482,7 +3479,7 @@ const Ne = {
3482
3479
  }
3483
3480
  ) : null
3484
3481
  ] }) }) }) }) });
3485
- }), Ic = {
3482
+ }), yc = {
3486
3483
  "rp-toolbar-layout": "_rp-toolbar-layout_vwobs_1",
3487
3484
  "rp-content": "_rp-content_vwobs_7",
3488
3485
  "rp-topbar-content": "_rp-topbar-content_vwobs_13",
@@ -3491,59 +3488,59 @@ const Ne = {
3491
3488
  "rp-thumbnails-wrapper": "_rp-thumbnails-wrapper_vwobs_37"
3492
3489
  };
3493
3490
  export {
3494
- fa as $,
3495
- Sn as A,
3496
- Vr as B,
3497
- Rn as C,
3498
- qi as D,
3499
- Ln as E,
3500
- En as F,
3501
- Br as G,
3502
- Kr as H,
3503
- Yr as I,
3504
- ei as J,
3491
+ ha as $,
3492
+ In as A,
3493
+ Ur as B,
3494
+ xn as C,
3495
+ Gi as D,
3496
+ Rn as E,
3497
+ Ln as F,
3498
+ Vr as G,
3499
+ jr as H,
3500
+ Qr as I,
3501
+ Jr as J,
3505
3502
  Ot as K,
3506
- zn as L,
3507
- gi as M,
3508
- _i as N,
3509
- bi as O,
3510
- gc as P,
3511
- Ti as Q,
3512
- Tc as R,
3513
- da as S,
3514
- wc as T,
3515
- Yn as U,
3516
- to as V,
3517
- ea as W,
3518
- ta as X,
3519
- un as Y,
3520
- ra as Z,
3521
- ha as _,
3522
- yc as a,
3523
- _a as a0,
3524
- Kn as b,
3503
+ Dn as L,
3504
+ mi as M,
3505
+ wi as N,
3506
+ _i as O,
3507
+ mc as P,
3508
+ bi as Q,
3509
+ bc as R,
3510
+ la as S,
3511
+ vc as T,
3512
+ Qn as U,
3513
+ eo as V,
3514
+ Ji as W,
3515
+ ea as X,
3516
+ dn as Y,
3517
+ oa as Z,
3518
+ pa as _,
3519
+ Pc as a,
3520
+ wa as a0,
3521
+ jn as b,
3525
3522
  it as c,
3526
3523
  Nt as d,
3527
- _c as e,
3528
- bc as f,
3529
- vc as g,
3530
- xn as h,
3524
+ wc as e,
3525
+ _c as f,
3526
+ gc as g,
3527
+ Sn as h,
3531
3528
  wt as i,
3532
3529
  Fe as j,
3533
3530
  $e as k,
3534
- Ii as l,
3535
- ca as m,
3536
- na as n,
3537
- Ic as o,
3538
- va as p,
3539
- pa as q,
3540
- Ui as r,
3541
- Qi as s,
3542
- Pn as t,
3531
+ yi as l,
3532
+ sa as m,
3533
+ ta as n,
3534
+ yc as o,
3535
+ ga as p,
3536
+ ua as q,
3537
+ qi as r,
3538
+ Xi as s,
3539
+ Cn as t,
3543
3540
  he as u,
3544
- Gr as v,
3545
- yn as w,
3546
- qr as x,
3547
- In as y,
3548
- Ur as z
3541
+ $r as v,
3542
+ Pn as w,
3543
+ Gr as x,
3544
+ yn as y,
3545
+ qr as z
3549
3546
  };