@pdf-viewer/react 1.4.2 → 1.4.3-rc.0

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 (64) hide show
  1. package/dist/Popover-b7402893.js +1445 -0
  2. package/dist/{RPDefaultLayout-e27ef121.js → RPDefaultLayout-b9f5eccb.js} +228 -228
  3. package/dist/component-1da194e8.js +337 -0
  4. package/dist/components/RPController.js +1 -1
  5. package/dist/components/RPPages.js +2 -2
  6. package/dist/components/RPProvider.js +12 -11
  7. package/dist/components/layout/LayoutContainer.js +3 -2
  8. package/dist/components/layout/RPDefaultLayout.js +1 -1
  9. package/dist/components/layout/sidebar/RPSidebar.js +1 -1
  10. package/dist/components/layout/sidebar/Thumbnail.js +1 -1
  11. package/dist/components/layout/sidebar/Thumbnails.js +1 -1
  12. package/dist/components/layout/toolbar/DocumentDialog.js +3 -2
  13. package/dist/components/layout/toolbar/FileDownloadTool.js +1 -1
  14. package/dist/components/layout/toolbar/MenuItem.js +1 -1
  15. package/dist/components/layout/toolbar/MenuSeparator.js +1 -1
  16. package/dist/components/layout/toolbar/MostPageTool.js +4 -3
  17. package/dist/components/layout/toolbar/OtherTool.js +2 -2
  18. package/dist/components/layout/toolbar/Paginate.js +1 -1
  19. package/dist/components/layout/toolbar/PrintTool.js +1 -1
  20. package/dist/components/layout/toolbar/RPToolbar.js +1 -1
  21. package/dist/components/layout/toolbar/RPToolbarEnd.js +1 -1
  22. package/dist/components/layout/toolbar/RotateTool.js +1 -1
  23. package/dist/components/layout/toolbar/ScrollModeTool.js +1 -1
  24. package/dist/components/layout/toolbar/SearchTool.js +4 -3
  25. package/dist/components/layout/toolbar/SelectionModeTool.js +1 -1
  26. package/dist/components/layout/toolbar/ViewModeTool.js +1 -1
  27. package/dist/components/layout/toolbar/ZoomTool.js +4 -3
  28. package/dist/components/page/AnnotationLayer.js +3 -2
  29. package/dist/components/page/CanvasLayer.js +3 -2
  30. package/dist/components/page/DualPage.js +1 -1
  31. package/dist/components/page/RPPage.js +3 -2
  32. package/dist/components/page/SinglePage.js +1 -1
  33. package/dist/components/page/TextHighlightLayer.js +3 -2
  34. package/dist/components/page/TextLayer.js +3 -2
  35. package/dist/components/ui/Checkbox.js +7 -6
  36. package/dist/components/ui/DropDown.js +1 -1
  37. package/dist/components/ui/LoadingIndicator.js +1 -1
  38. package/dist/components/ui/Popover.js +1 -1
  39. package/dist/components/ui/RPTooltip.js +687 -328
  40. package/dist/contexts/PaginationContext.js +1 -1
  41. package/dist/contexts/PrintContext.js +1 -1
  42. package/dist/contexts/SearchContext.js +1 -1
  43. package/dist/contexts/ThumbnailsContext.js +1 -1
  44. package/dist/floating-ui.react-dom-15b9b819.js +1310 -0
  45. package/dist/index-2e540713.js +23 -0
  46. package/dist/index-353ec0a6.js +172 -0
  47. package/dist/index-5ff5dbd0.js +1675 -0
  48. package/dist/index-71898eb9.js +139 -0
  49. package/dist/main.js +1 -1
  50. package/dist/types/utils/hooks/useWatermark.d.ts +1 -1
  51. package/dist/utils/hooks/useFileDownload.js +3 -2
  52. package/dist/utils/hooks/useLicense.js +1 -1
  53. package/dist/utils/hooks/usePaginate.js +3 -2
  54. package/dist/utils/hooks/usePrint.js +3 -2
  55. package/dist/utils/hooks/useScrollToPage.js +3 -2
  56. package/dist/utils/hooks/useSearch.js +3 -2
  57. package/dist/utils/hooks/useThumbnail.js +3 -2
  58. package/dist/utils/hooks/useVirtualReactWindow.js +3 -2
  59. package/dist/utils/hooks/useWatermark.js +59 -28
  60. package/package.json +1 -1
  61. package/dist/Popover-d11ec15c.js +0 -3061
  62. package/dist/floating-ui.react-dom-88a86594.js +0 -1447
  63. package/dist/index-48ca3f30.js +0 -307
  64. package/dist/index-4ba3ab9a.js +0 -1877
@@ -29,6 +29,7 @@ import { useDimensionPagesContext as Tt } from "./contexts/DimensionPagesContext
29
29
  import { useLocalizationContext as me } from "./contexts/LocalizationContext.js";
30
30
  import { useHighlightContext as vn } from "./contexts/HighlightContext.js";
31
31
  import { useLoaderContext as dr } from "./contexts/LoaderContext.js";
32
+ import "./contexts/LicenseContext.js";
32
33
  import "./components/RPConfig.js";
33
34
  import { ThumbnailIcon as _n } from "./components/icons/Thumbnail.js";
34
35
  import { c as oe } from "./clsx-0c6e471a.js";
@@ -45,43 +46,44 @@ import { useViewportContext as Re, ViewportProvider as yn } from "./contexts/Vie
45
46
  import { useThemeContext as In } from "./contexts/ThemeContext.js";
46
47
  import { SimpleLinkService as Rn } from "./utils/link_service.js";
47
48
  import { annotationsEvents as Ln, annotationEventsHandler as Nn, handleClick as At, handleAnnotationWidget as En, handleAnnotationLink as On, bindLayerEvents as Dn, unbindLayerEvents as Ft } from "./utils/annotations.js";
48
- import { useWatermark as zn } from "./utils/hooks/useWatermark.js";
49
- import { _ as An, U as Fn } from "./Popover-d11ec15c.js";
50
- import { useMousePressed as kn } from "./utils/hooks/useMousePressed.js";
51
- import { useGrabScroll as Mn } from "./utils/hooks/useGrabScroll.js";
52
- import { usePinch as Wn } from "./utils/hooks/usePinch.js";
49
+ import { _ as zn, U as An } from "./Popover-b7402893.js";
50
+ import { useMousePressed as Fn } from "./utils/hooks/useMousePressed.js";
51
+ import { useGrabScroll as kn } from "./utils/hooks/useGrabScroll.js";
52
+ import { usePinch as Mn } from "./utils/hooks/usePinch.js";
53
53
  import { useDebounce as vt } from "./utils/hooks/useDebounce.js";
54
54
  import { getThumbnailViewport as kt } from "./utils/getThumbnailViewport.js";
55
55
  import { smoothScrollTo as Mt } from "./utils/smoothScrollTo.js";
56
- import { appConsole as Hn } from "./utils/appConsole.js";
56
+ import { appConsole as Wn } from "./utils/appConsole.js";
57
57
  import { FileUploadTool as ur } from "./components/layout/toolbar/FileUploadTool.js";
58
- import { DarkModeTool as $n } from "./components/layout/toolbar/DarkModeTool.js";
59
- import { ThreeDotIcon as Vn } from "./components/icons/ThreeDotIcon.js";
58
+ import { DarkModeTool as Hn } from "./components/layout/toolbar/DarkModeTool.js";
59
+ import { ThreeDotIcon as $n } from "./components/icons/ThreeDotIcon.js";
60
60
  import { UIDropDown as pr } from "./components/ui/DropDown.js";
61
- import { c as Gn, u as St, P as We, b as Fe, d as xt, i as qn, k as Un, a as Zn } from "./index-48ca3f30.js";
62
- import { D as Bn, d as it } from "./floating-ui.react-dom-88a86594.js";
63
- import { a as jn, h as Kn, u as Xn, F as Jn, b as Yn, G as Ue } from "./index-4ba3ab9a.js";
61
+ import { u as St, P as We, c as Fe, a as xt, S as Vn } from "./index-353ec0a6.js";
62
+ import { c as Gn, e as qn, b as Un } from "./index-71898eb9.js";
63
+ import { a as it } from "./index-2e540713.js";
64
+ import { a as Zn, u as Bn, F as jn, D as Kn, b as Xn, G as Ue } from "./index-5ff5dbd0.js";
65
+ import { h as Jn } from "./component-1da194e8.js";
64
66
  import { CloseIcon as hr } from "./components/icons/CloseIcon.js";
65
67
  import { dateFormatter as Wt } from "./utils/dateFormatter.js";
66
- import { PropertyItem as Qn } from "./components/layout/toolbar/PropertyItem.js";
67
- import { useOtherToolContext as eo, OtherToolProvider as to } from "./contexts/OtherToolContext.js";
68
- import { DocumentProperties as ro } from "./components/layout/toolbar/DocumentProperties.js";
69
- import { RotateTool as no } from "./components/layout/toolbar/RotateTool.js";
70
- import { ScrollModeTool as oo } from "./components/layout/toolbar/ScrollModeTool.js";
68
+ import { PropertyItem as Yn } from "./components/layout/toolbar/PropertyItem.js";
69
+ import { useOtherToolContext as Qn, OtherToolProvider as eo } from "./contexts/OtherToolContext.js";
70
+ import { DocumentProperties as to } from "./components/layout/toolbar/DocumentProperties.js";
71
+ import { RotateTool as ro } from "./components/layout/toolbar/RotateTool.js";
72
+ import { ScrollModeTool as no } from "./components/layout/toolbar/ScrollModeTool.js";
71
73
  import { MenuSeparator as yt } from "./components/layout/toolbar/MenuSeparator.js";
72
- import { FileDownloadDefaultIcon as io } from "./components/icons/FileDownloadDefaultIcon.js";
74
+ import { FileDownloadDefaultIcon as oo } from "./components/icons/FileDownloadDefaultIcon.js";
73
75
  import { MenuItem as be } from "./components/layout/toolbar/MenuItem.js";
74
- import { PrintDefaultTool as ao } from "./components/icons/PrintDefaultIcon.js";
76
+ import { PrintDefaultTool as io } from "./components/icons/PrintDefaultIcon.js";
75
77
  import { FullScreenTool as mr } from "./components/layout/toolbar/FullScreenTool.js";
76
78
  import { GoToDownIcon as fr } from "./components/icons/GoToDownIcon.js";
77
- import { SelectionModeTool as so } from "./components/layout/toolbar/SelectionModeTool.js";
78
- import { ZoomInIcon as co } from "./components/icons/ZoomInIcon.js";
79
- import { ZoomOutIcon as lo } from "./components/icons/ZoomOutIcon.js";
79
+ import { SelectionModeTool as ao } from "./components/layout/toolbar/SelectionModeTool.js";
80
+ import { ZoomInIcon as so } from "./components/icons/ZoomInIcon.js";
81
+ import { ZoomOutIcon as co } from "./components/icons/ZoomOutIcon.js";
80
82
  import { PAGE_PADDING as Ht } from "./utils/constants.js";
81
- import { getZoomLevel as uo } from "./utils/getZoomLevel.js";
82
- import { SearchIcon as po } from "./components/icons/SearchIcon.js";
83
+ import { getZoomLevel as lo } from "./utils/getZoomLevel.js";
84
+ import { SearchIcon as uo } from "./components/icons/SearchIcon.js";
83
85
  import { UICheckbox as $t } from "./components/ui/Checkbox.js";
84
- import { ClearIcon as ho } from "./components/icons/ClearIcon.js";
86
+ import { ClearIcon as po } from "./components/icons/ClearIcon.js";
85
87
  import { InfoIcon as Vt } from "./components/icons/InfoIcon.js";
86
88
  import './assets/RPDefaultLayout.css';const gr = () => {
87
89
  const { viewMode: t } = Je(), { scrollMode: e } = Oe(), { virtualScrollRef: r, virtualScrollableElementRef: o, pageScrollElementRef: n } = Ye(), { setFocusedPage: a } = ce(), c = M(), { columnCount: s } = sr(), { widths: l, heights: d } = Tt(), u = M(e), f = M(t), h = M(s);
@@ -165,7 +167,7 @@ import './assets/RPDefaultLayout.css';const gr = () => {
165
167
  l
166
168
  ]
167
169
  ) };
168
- }, mo = (t = 1) => {
170
+ }, ho = (t = 1) => {
169
171
  const [e, r] = $(t), [o, n] = $(0), { scrollToPage: a } = gr(), c = M(1), { isScrolling: s } = Qe(), { viewMode: l } = Je(), { scrollMode: d } = Oe(), u = vt(e, 100), f = I(
170
172
  (v) => {
171
173
  if (!/^[0-9]*$/g.test(v.toString()) || !v)
@@ -212,9 +214,9 @@ import './assets/RPDefaultLayout.css';const gr = () => {
212
214
  }
213
215
  }), ce = () => {
214
216
  const t = je(vr);
215
- return typeof (t == null ? void 0 : t.focusedPage) > "u" && Hn.error("Please use this hooks inside children component of RPProvider"), t;
216
- }, vs = ({ children: t }) => {
217
- const { pdf: e } = X(), { focusedPage: r, totalPages: o, setFocusedPage: n, setTotalPages: a, goToPage: c, nextPage: s, prevPage: l } = mo();
217
+ return typeof (t == null ? void 0 : t.focusedPage) > "u" && Wn.error("Please use this hooks inside children component of RPProvider"), t;
218
+ }, _s = ({ children: t }) => {
219
+ const { pdf: e } = X(), { focusedPage: r, totalPages: o, setFocusedPage: n, setTotalPages: a, goToPage: c, nextPage: s, prevPage: l } = ho();
218
220
  return O(() => {
219
221
  e != null && e.numPages && (a(e.numPages), n(1));
220
222
  }, [e, a, n]), /* @__PURE__ */ i(
@@ -233,7 +235,7 @@ import './assets/RPDefaultLayout.css';const gr = () => {
233
235
  }
234
236
  );
235
237
  };
236
- const fo = () => {
238
+ const mo = () => {
237
239
  const { pdf: t, pages: e } = X(), [r, o] = $({
238
240
  loadedPages: 0,
239
241
  totalPages: 0,
@@ -410,8 +412,8 @@ const fo = () => {
410
412
  console.error("Error in setOnError callback:", e);
411
413
  }
412
414
  }
413
- }), _s = ({ children: t }) => {
414
- const [e, r] = $(null), [o, n] = $(null), { print: a, cancel: c, progress: s, isComplete: l, isError: d, error: u } = fo(), f = I((v) => {
415
+ }), ws = ({ children: t }) => {
416
+ const [e, r] = $(null), [o, n] = $(null), { print: a, cancel: c, progress: s, isComplete: l, isError: d, error: u } = mo(), f = I((v) => {
415
417
  v && typeof v == "function" && n(() => v);
416
418
  }, []), h = (v) => {
417
419
  u && v(u);
@@ -446,7 +448,7 @@ const fo = () => {
446
448
  if (!t)
447
449
  throw new Error("usePrintContext must be used within a PrintProvider");
448
450
  return t;
449
- }, go = () => {
451
+ }, fo = () => {
450
452
  const [t, e] = $({}), { pages: r } = X(), { rotate: o } = Ke(), n = k(() => Object.keys(t).length, [t]), a = I(
451
453
  (s) => {
452
454
  if (!r.size)
@@ -533,11 +535,11 @@ const fo = () => {
533
535
  setActive: (t) => {
534
536
  },
535
537
  active: !1
536
- }), br = () => je(wr), ws = ({
538
+ }), br = () => je(wr), bs = ({
537
539
  children: t,
538
540
  initialThumbnailsVisible: e
539
541
  }) => {
540
- const { thumbnailPages: r, addPage: o, addToPage: n, thumbnailLength: a } = go(), [c, s] = $(e);
542
+ const { thumbnailPages: r, addPage: o, addToPage: n, thumbnailLength: a } = fo(), [c, s] = $(e);
541
543
  return /* @__PURE__ */ i(
542
544
  wr.Provider,
543
545
  {
@@ -545,7 +547,7 @@ const fo = () => {
545
547
  children: t
546
548
  }
547
549
  );
548
- }, vo = (t = {}, e = "") => {
550
+ }, go = (t = {}, e = "") => {
549
551
  const [r, o] = $(e), [n, a] = $(!1), { pdf: c, pages: s } = X(), l = Tt(), d = M(!r), { currentZoom: u } = Xe(), [f, h] = $([]), { setFocusedPage: g } = ce(), [w, b] = $(0), { pageScrollElementRef: v, virtualScrollableElementRef: _ } = Ye(), { scrollMode: m } = Oe(), { pagesRef: T } = Ie(), [x, p] = $(null), P = M({}), C = k(() => w === 0 ? null : f[w - 1], [w, f]), S = k(() => f.length, [f]);
550
552
  O(() => {
551
553
  if (!C || !s)
@@ -652,7 +654,7 @@ const fo = () => {
652
654
  currentMatchElement: null,
653
655
  setCurrentMatchElement: (t) => {
654
656
  }
655
- }), bs = ({
657
+ }), Cs = ({
656
658
  children: t,
657
659
  initialSearch: e
658
660
  }) => {
@@ -668,7 +670,7 @@ const fo = () => {
668
670
  prevMatch: h,
669
671
  currentMatchElement: g,
670
672
  setCurrentMatchElement: w
671
- } = vo(r, e);
673
+ } = go(r, e);
672
674
  return /* @__PURE__ */ i(
673
675
  Cr.Provider,
674
676
  {
@@ -703,7 +705,7 @@ const fo = () => {
703
705
  "rp-page-wrapper": "_rp-page-wrapper_h7a2q_1",
704
706
  "rp-page": "_rp-page_h7a2q_1",
705
707
  "rp-loader-wrapper": "_rp-loader-wrapper_h7a2q_14"
706
- }, _o = (t) => {
708
+ }, vo = (t) => {
707
709
  const { pageNumber: e, onLoaded: r, onLoading: o } = t, n = M(null), { pages: a } = X(), { rotate: c } = Ke(), s = M(), { currentZoom: l } = Xe();
708
710
  return O(() => {
709
711
  if (!a || l === 0)
@@ -732,7 +734,7 @@ const fo = () => {
732
734
  }, st = {
733
735
  "rp-text-layer": "_rp-text-layer_kwwfn_1",
734
736
  "rp-text-layer-text": "_rp-text-layer-text_kwwfn_9"
735
- }, wo = (t) => {
737
+ }, _o = (t) => {
736
738
  const { pageNumber: e } = t, { pages: r } = X(), o = M(null), { matches: n, currentMatch: a, setCurrentMatchElement: c } = Tr(), [s, l] = $(
737
739
  []
738
740
  ), d = M(), u = M(), f = M(), h = k(() => n.filter((w) => w.pageIndex === e - 1), [n, e]), g = I(
@@ -796,11 +798,11 @@ const fo = () => {
796
798
  ref: o
797
799
  }
798
800
  );
799
- }, bo = {
801
+ }, wo = {
800
802
  "rp-annotation-layer": "_rp-annotation-layer_o0ksd_1"
801
803
  };
802
- let Co = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
803
- const To = (t) => {
804
+ let bo = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
805
+ const Co = (t) => {
804
806
  const { pageNumber: e } = t, r = M(null), { pages: o, pdf: n } = X(), a = M(), [c, s] = $(), { setFocusedPage: l, goToPage: d } = ce(), { scrollMode: u } = Oe(), { print: f } = et(), { download: h } = Hr(), g = k(() => o.get(e), [o, e]), w = k(() => g == null ? void 0 : g.page.getViewport(), [g]);
805
807
  O(() => {
806
808
  a.current && (a.current.div.replaceChildren(), a.current = void 0);
@@ -862,7 +864,7 @@ const To = (t) => {
862
864
  div: r.current,
863
865
  viewport: v.clone({ dontFlip: !0 }),
864
866
  page: g.page,
865
- imageResourcesPath: Co,
867
+ imageResourcesPath: bo,
866
868
  renderForms: !0,
867
869
  linkService: new Rn(),
868
870
  downloadManager: null,
@@ -881,14 +883,14 @@ const To = (t) => {
881
883
  {
882
884
  "data-rp": `page-${e}-annotationLayer`,
883
885
  style: { width: `${w == null ? void 0 : w.width}px`, height: `${w == null ? void 0 : w.height}px` },
884
- className: bo["rp-annotation-layer"],
886
+ className: wo["rp-annotation-layer"],
885
887
  ref: r
886
888
  }
887
889
  );
888
890
  }, ct = {
889
891
  "rp-text-highlight-layer": "_rp-text-highlight-layer_1470i_1",
890
892
  "rp-text-highlight-layer-text": "_rp-text-highlight-layer-text_1470i_9"
891
- }, Po = ({ pageNumber: t }) => {
893
+ }, To = ({ pageNumber: t }) => {
892
894
  const e = M(null), r = M(), o = M(), { pages: n } = X(), { highlightMatches: a } = vn(), c = k(() => a.filter((d) => d.pageIndex === t - 1), [a]), s = I(
893
895
  (l, d, u = !1) => {
894
896
  u && lr(l, d), pn(c, l, d);
@@ -934,7 +936,7 @@ const To = (t) => {
934
936
  ref: e
935
937
  }
936
938
  ) });
937
- }, So = Array.from({ length: 21 }, (t, e) => Number((e * 0.05).toFixed(2))), It = Me((t, e) => {
939
+ }, Po = Array.from({ length: 21 }, (t, e) => Number((e * 0.05).toFixed(2))), It = Me((t, e) => {
938
940
  const { pageNumber: r, style: o, onIntersectRatioChange: n, ...a } = t, { pages: c } = X(), { rotate: s } = Ke(), { textLayer: l } = sn(), { currentZoom: d } = Xe(), u = M(c.get(r)), [f, h] = $(!1), g = M(null), [w, b] = $({
939
941
  width: 0,
940
942
  height: 0
@@ -965,7 +967,7 @@ const To = (t) => {
965
967
  (x) => {
966
968
  n(r, x[0].intersectionRatio);
967
969
  },
968
- { threshold: So }
970
+ { threshold: Po }
969
971
  );
970
972
  return g.current && T.observe(g.current), () => {
971
973
  T.disconnect(), n(r, -1);
@@ -993,11 +995,11 @@ const To = (t) => {
993
995
  },
994
996
  className: at["rp-page"],
995
997
  children: [
996
- /* @__PURE__ */ i(_o, { onLoading: _, onLoaded: m, pageNumber: r }),
998
+ /* @__PURE__ */ i(vo, { onLoading: _, onLoaded: m, pageNumber: r }),
997
999
  f && /* @__PURE__ */ i("div", { className: at["rp-loader-wrapper"], children: /* @__PURE__ */ i(Pt, {}) }),
998
- l && /* @__PURE__ */ i(wo, { pageNumber: r }),
999
- /* @__PURE__ */ i(Po, { pageNumber: r }),
1000
- /* @__PURE__ */ i(To, { pageNumber: r })
1000
+ l && /* @__PURE__ */ i(_o, { pageNumber: r }),
1001
+ /* @__PURE__ */ i(To, { pageNumber: r }),
1002
+ /* @__PURE__ */ i(Co, { pageNumber: r })
1001
1003
  ]
1002
1004
  }
1003
1005
  )
@@ -1014,25 +1016,25 @@ function _t(t, e) {
1014
1016
  return r.__proto__ = o, r;
1015
1017
  }, _t(t, e);
1016
1018
  }
1017
- function xo(t, e) {
1019
+ function So(t, e) {
1018
1020
  t.prototype = Object.create(e.prototype), t.prototype.constructor = t, _t(t, e);
1019
1021
  }
1020
1022
  var qt = Number.isNaN || function(e) {
1021
1023
  return typeof e == "number" && e !== e;
1022
1024
  };
1023
- function yo(t, e) {
1025
+ function xo(t, e) {
1024
1026
  return !!(t === e || qt(t) && qt(e));
1025
1027
  }
1026
- function Io(t, e) {
1028
+ function yo(t, e) {
1027
1029
  if (t.length !== e.length)
1028
1030
  return !1;
1029
1031
  for (var r = 0; r < t.length; r++)
1030
- if (!yo(t[r], e[r]))
1032
+ if (!xo(t[r], e[r]))
1031
1033
  return !1;
1032
1034
  return !0;
1033
1035
  }
1034
1036
  function lt(t, e) {
1035
- e === void 0 && (e = Io);
1037
+ e === void 0 && (e = yo);
1036
1038
  var r, o = [], n, a = !1;
1037
1039
  function c() {
1038
1040
  for (var s = [], l = 0; l < arguments.length; l++)
@@ -1053,7 +1055,7 @@ function Ut(t, e) {
1053
1055
  }
1054
1056
  return r;
1055
1057
  }
1056
- var Ro = typeof performance == "object" && typeof performance.now == "function", Zt = Ro ? function() {
1058
+ var Io = typeof performance == "object" && typeof performance.now == "function", Zt = Io ? function() {
1057
1059
  return performance.now();
1058
1060
  } : function() {
1059
1061
  return Date.now();
@@ -1061,7 +1063,7 @@ var Ro = typeof performance == "object" && typeof performance.now == "function",
1061
1063
  function Bt(t) {
1062
1064
  cancelAnimationFrame(t.id);
1063
1065
  }
1064
- function Lo(t, e) {
1066
+ function Ro(t, e) {
1065
1067
  var r = Zt();
1066
1068
  function o() {
1067
1069
  Zt() - r >= e ? t.call(null) : n.id = requestAnimationFrame(o);
@@ -1072,7 +1074,7 @@ function Lo(t, e) {
1072
1074
  return n;
1073
1075
  }
1074
1076
  var dt = -1;
1075
- function No(t) {
1077
+ function Lo(t) {
1076
1078
  if (t === void 0 && (t = !1), dt === -1 || t) {
1077
1079
  var e = document.createElement("div"), r = e.style;
1078
1080
  r.width = "50px", r.height = "50px", r.overflow = "scroll", document.body.appendChild(e), dt = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
@@ -1089,17 +1091,17 @@ function jt(t) {
1089
1091
  }
1090
1092
  return Le;
1091
1093
  }
1092
- var Eo = 150, Oo = function(e) {
1094
+ var No = 150, Eo = function(e) {
1093
1095
  var r = e.columnIndex;
1094
1096
  e.data;
1095
1097
  var o = e.rowIndex;
1096
1098
  return o + ":" + r;
1097
1099
  }, $e = null, Ve = null, Ge = null;
1098
1100
  process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && ($e = /* @__PURE__ */ new WeakSet(), Ve = /* @__PURE__ */ new WeakSet(), Ge = /* @__PURE__ */ new WeakSet());
1099
- function Do(t) {
1101
+ function Oo(t) {
1100
1102
  var e, r = t.getColumnOffset, o = t.getColumnStartIndexForOffset, n = t.getColumnStopIndexForStartIndex, a = t.getColumnWidth, c = t.getEstimatedTotalHeight, s = t.getEstimatedTotalWidth, l = t.getOffsetForColumnAndAlignment, d = t.getOffsetForRowAndAlignment, u = t.getRowHeight, f = t.getRowOffset, h = t.getRowStartIndexForOffset, g = t.getRowStopIndexForStartIndex, w = t.initInstanceProps, b = t.shouldResetStyleCacheOnItemSizeChange, v = t.validateProps;
1101
1103
  return e = /* @__PURE__ */ function(_) {
1102
- xo(m, _);
1104
+ So(m, _);
1103
1105
  function m(x) {
1104
1106
  var p;
1105
1107
  return p = _.call(this, x) || this, p._instanceProps = w(p.props, Gt(p)), p._resetIsScrollingTimeoutId = null, p._outerRef = void 0, p.state = {
@@ -1177,7 +1179,7 @@ function Do(t) {
1177
1179
  var C = p.props.outerRef;
1178
1180
  p._outerRef = P, typeof C == "function" ? C(P) : C != null && typeof C == "object" && C.hasOwnProperty("current") && (C.current = P);
1179
1181
  }, p._resetIsScrollingDebounced = function() {
1180
- p._resetIsScrollingTimeoutId !== null && Bt(p._resetIsScrollingTimeoutId), p._resetIsScrollingTimeoutId = Lo(p._resetIsScrolling, Eo);
1182
+ p._resetIsScrollingTimeoutId !== null && Bt(p._resetIsScrollingTimeoutId), p._resetIsScrollingTimeoutId = Ro(p._resetIsScrolling, No);
1181
1183
  }, p._resetIsScrolling = function() {
1182
1184
  p._resetIsScrollingTimeoutId = null, p.setState({
1183
1185
  isScrolling: !1
@@ -1187,7 +1189,7 @@ function Do(t) {
1187
1189
  }, p;
1188
1190
  }
1189
1191
  m.getDerivedStateFromProps = function(p, P) {
1190
- return zo(p, P), v(p), null;
1192
+ return Do(p, P), v(p), null;
1191
1193
  };
1192
1194
  var T = m.prototype;
1193
1195
  return T.scrollTo = function(p) {
@@ -1202,7 +1204,7 @@ function Do(t) {
1202
1204
  };
1203
1205
  }, this._resetIsScrollingDebounced);
1204
1206
  }, T.scrollToItem = function(p) {
1205
- var P = p.align, C = P === void 0 ? "auto" : P, S = p.columnIndex, A = p.rowIndex, R = this.props, D = R.columnCount, L = R.height, F = R.rowCount, E = R.width, y = this.state, N = y.scrollLeft, V = y.scrollTop, q = No();
1207
+ var P = p.align, C = P === void 0 ? "auto" : P, S = p.columnIndex, A = p.rowIndex, R = this.props, D = R.columnCount, L = R.height, F = R.rowCount, E = R.width, y = this.state, N = y.scrollLeft, V = y.scrollTop, q = Lo();
1206
1208
  S !== void 0 && (S = Math.max(0, Math.min(S, D - 1))), A !== void 0 && (A = Math.max(0, Math.min(A, F - 1)));
1207
1209
  var Z = c(this.props, this._instanceProps), ee = s(this.props, this._instanceProps), B = ee > E ? q : 0, J = Z > L ? q : 0;
1208
1210
  this.scrollTo({
@@ -1241,7 +1243,7 @@ function Do(t) {
1241
1243
  }, T.componentWillUnmount = function() {
1242
1244
  this._resetIsScrollingTimeoutId !== null && Bt(this._resetIsScrollingTimeoutId);
1243
1245
  }, T.render = function() {
1244
- var p = this.props, P = p.children, C = p.className, S = p.columnCount, A = p.direction, R = p.height, D = p.innerRef, L = p.innerElementType, F = p.innerTagName, E = p.itemData, y = p.itemKey, N = y === void 0 ? Oo : y, V = p.outerElementType, q = p.outerTagName, Z = p.rowCount, ee = p.style, B = p.useIsScrolling, J = p.width, ae = this.state.isScrolling, re = this._getHorizontalRangeToRender(), j = re[0], Y = re[1], de = this._getVerticalRangeToRender(), Ce = de[0], De = de[1], ue = [];
1246
+ var p = this.props, P = p.children, C = p.className, S = p.columnCount, A = p.direction, R = p.height, D = p.innerRef, L = p.innerElementType, F = p.innerTagName, E = p.itemData, y = p.itemKey, N = y === void 0 ? Eo : y, V = p.outerElementType, q = p.outerTagName, Z = p.rowCount, ee = p.style, B = p.useIsScrolling, J = p.width, ae = this.state.isScrolling, re = this._getHorizontalRangeToRender(), j = re[0], Y = re[1], de = this._getVerticalRangeToRender(), Ce = de[0], De = de[1], ue = [];
1245
1247
  if (S > 0 && Z)
1246
1248
  for (var pe = Ce; pe <= De; pe++)
1247
1249
  for (var ge = j; ge <= Y; ge++)
@@ -1262,7 +1264,7 @@ function Do(t) {
1262
1264
  className: C,
1263
1265
  onScroll: this._onScroll,
1264
1266
  ref: this._outerRefSetter,
1265
- style: An({
1267
+ style: zn({
1266
1268
  position: "relative",
1267
1269
  height: R,
1268
1270
  width: J,
@@ -1309,7 +1311,7 @@ function Do(t) {
1309
1311
  useIsScrolling: !1
1310
1312
  }, e;
1311
1313
  }
1312
- var zo = function(e, r) {
1314
+ var Do = function(e, r) {
1313
1315
  var o = e.children, n = e.direction, a = e.height, c = e.innerTagName, s = e.outerTagName, l = e.overscanColumnsCount, d = e.overscanCount, u = e.overscanRowsCount, f = e.width, h = r.instance;
1314
1316
  if (process.env.NODE_ENV !== "production") {
1315
1317
  if (typeof d == "number" && $e && !$e.has(h) && ($e.add(h), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof l == "number" || typeof u == "number") && Ve && !Ve.has(h) && (Ve.add(h), console.warn("The overscanColumnsCount and overscanRowsCount props have been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (c != null || s != null) && Ge && !Ge.has(h) && (Ge.add(h), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.")), o == null)
@@ -1364,7 +1366,7 @@ var zo = function(e, r) {
1364
1366
  var a, c;
1365
1367
  e === "column" ? (a = o.columnMetadataMap, c = o.lastMeasuredColumnIndex) : (a = o.rowMetadataMap, c = o.lastMeasuredRowIndex);
1366
1368
  var s = c > 0 ? a[c].offset : 0;
1367
- return s >= n ? xr(e, r, o, c, 0, n) : Ao(e, r, o, Math.max(0, c), n);
1369
+ return s >= n ? xr(e, r, o, c, 0, n) : zo(e, r, o, Math.max(0, c), n);
1368
1370
  }, xr = function(e, r, o, n, a, c) {
1369
1371
  for (; a <= n; ) {
1370
1372
  var s = a + Math.floor((n - a) / 2), l = ve(e, r, s, o).offset;
@@ -1373,7 +1375,7 @@ var zo = function(e, r) {
1373
1375
  l < c ? a = s + 1 : l > c && (n = s - 1);
1374
1376
  }
1375
1377
  return a > 0 ? a - 1 : 0;
1376
- }, Ao = function(e, r, o, n, a) {
1378
+ }, zo = function(e, r, o, n, a) {
1377
1379
  for (var c = e === "column" ? r.columnCount : r.rowCount, s = 1; n < c && ve(e, r, n, o).offset < a; )
1378
1380
  n += s, s *= 2;
1379
1381
  return xr(e, r, o, Math.min(n, c - 1), Math.floor(n / 2), a);
@@ -1390,7 +1392,7 @@ var zo = function(e, r) {
1390
1392
  default:
1391
1393
  return a >= h && a <= f ? a : h > f || a < h ? h : f;
1392
1394
  }
1393
- }, Fo = /* @__PURE__ */ Do({
1395
+ }, Ao = /* @__PURE__ */ Oo({
1394
1396
  getColumnOffset: function(e, r, o) {
1395
1397
  return ve("column", e, r, o).offset;
1396
1398
  },
@@ -1472,12 +1474,12 @@ function Yt(t, e) {
1472
1474
  return !0;
1473
1475
  return !1;
1474
1476
  }
1475
- var ko = ["style"], Mo = ["style"];
1476
- function Wo(t, e) {
1477
- var r = t.style, o = Ut(t, ko), n = e.style, a = Ut(e, Mo);
1477
+ var Fo = ["style"], ko = ["style"];
1478
+ function Mo(t, e) {
1479
+ var r = t.style, o = Ut(t, Fo), n = e.style, a = Ut(e, ko);
1478
1480
  return !Yt(r, n) && !Yt(o, a);
1479
1481
  }
1480
- const Ho = () => {
1482
+ const Wo = () => {
1481
1483
  const { viewMode: t } = Je(), { scrollMode: e } = Oe(), { setColumnCount: r } = sr(), { virtualScrollableElementRef: o } = Ye(), n = Tt(), a = I(
1482
1484
  (g) => n.widths[g] || 0,
1483
1485
  [n.widths]
@@ -1515,7 +1517,7 @@ pt == null || tr == null ? (wt = ut, bt = function(e) {
1515
1517
  }, Qt);
1516
1518
  return [r, o];
1517
1519
  });
1518
- function $o(t) {
1520
+ function Ho(t) {
1519
1521
  let e, r, o, n, a, c, s;
1520
1522
  const l = typeof document < "u" && document.attachEvent;
1521
1523
  if (!l) {
@@ -1587,7 +1589,7 @@ function $o(t) {
1587
1589
  }
1588
1590
  };
1589
1591
  }
1590
- class Vo extends rn {
1592
+ class $o extends rn {
1591
1593
  constructor(...e) {
1592
1594
  super(...e), this.state = {
1593
1595
  height: this.props.defaultHeight || 0,
@@ -1628,7 +1630,7 @@ class Vo extends rn {
1628
1630
  const o = r.ownerDocument.defaultView.ResizeObserver;
1629
1631
  o != null ? (this._resizeObserver = new o(() => {
1630
1632
  this._timeoutId = setTimeout(this._onResize, 0);
1631
- }), this._resizeObserver.observe(r)) : (this._detectElementResize = $o(e), this._detectElementResize.addResizeListener(r, this._onResize)), this._onResize();
1633
+ }), this._resizeObserver.observe(r)) : (this._detectElementResize = Ho(e), this._detectElementResize.addResizeListener(r, this._onResize)), this._onResize();
1632
1634
  }
1633
1635
  }
1634
1636
  componentWillUnmount() {
@@ -1666,7 +1668,7 @@ class Vo extends rn {
1666
1668
  }, !m && e(_));
1667
1669
  }
1668
1670
  }
1669
- const Go = ({ widths: t, heights: e }) => {
1671
+ const Vo = ({ widths: t, heights: e }) => {
1670
1672
  const { focusedPage: r, totalPages: o } = ce(), { isScrolling: n } = Qe(), a = k(() => {
1671
1673
  const l = [], d = Math.ceil(r / 2) * 2 - 1;
1672
1674
  if (l.push(d), d + 1 < o) {
@@ -1695,7 +1697,7 @@ const Go = ({ widths: t, heights: e }) => {
1695
1697
  const s = k(() => c.reduce((l, d) => l + Number(d.width || 0), 0), [c]);
1696
1698
  return /* @__PURE__ */ i("div", { style: { width: s, position: "relative" }, children: a.map((l, d) => /* @__PURE__ */ i(It, { onIntersectRatioChange: () => {
1697
1699
  }, style: c[d], pageNumber: l }, l)) });
1698
- }, qo = ({ widths: t, heights: e }) => {
1700
+ }, Go = ({ widths: t, heights: e }) => {
1699
1701
  const { focusedPage: r } = ce(), { isScrolling: o } = Qe(), n = k(() => ({
1700
1702
  position: "absolute",
1701
1703
  width: t(r - 1),
@@ -1724,7 +1726,7 @@ const Go = ({ widths: t, heights: e }) => {
1724
1726
  )
1725
1727
  }
1726
1728
  );
1727
- }, Uo = nn(({ columnIndex: t, rowIndex: e, data: r, style: o }) => {
1729
+ }, qo = nn(({ columnIndex: t, rowIndex: e, data: r, style: o }) => {
1728
1730
  const n = t + 1 + e * r.columnCount;
1729
1731
  return /* @__PURE__ */ i(
1730
1732
  It,
@@ -1735,10 +1737,8 @@ const Go = ({ widths: t, heights: e }) => {
1735
1737
  },
1736
1738
  n
1737
1739
  );
1738
- }, Wo), Cs = () => {
1739
- const { initialPage: t = 1, initialScrollMode: e } = ln(), { pagesRef: r, setPagesRef: o } = Ie();
1740
- zn(r);
1741
- const { scrollToPage: n } = gr(), {
1740
+ }, Mo), Ts = () => {
1741
+ const { initialPage: t = 1, initialScrollMode: e } = ln(), { pagesRef: r, setPagesRef: o } = Ie(), { scrollToPage: n } = gr(), {
1742
1742
  virtualScrollRef: a,
1743
1743
  getVirtualScrollRef: c,
1744
1744
  getPageScrollElementRef: s,
@@ -1760,12 +1760,12 @@ const Go = ({ widths: t, heights: e }) => {
1760
1760
  columnWidth: N,
1761
1761
  estimatedColumnWidth: V,
1762
1762
  estimatedRowHeight: q
1763
- } = Ho(), Z = vt(f, 100), [ee, B] = $({}), J = vt(ee, 100), { isScrolling: ae } = Qe(), re = M(), j = M({
1763
+ } = Wo(), Z = vt(f, 100), [ee, B] = $({}), J = vt(ee, 100), { isScrolling: ae } = Qe(), re = M(), j = M({
1764
1764
  scrollTop: 0,
1765
1765
  scrollLeft: 0
1766
1766
  });
1767
- Wn(r);
1768
- const { isPressed: Y } = kn(), { selectionMode: de } = cn(), { initializeGrabScroll: Ce, resetGrabState: De } = Mn({
1767
+ Mn(r);
1768
+ const { isPressed: Y } = Fn(), { selectionMode: de } = cn(), { initializeGrabScroll: Ce, resetGrabState: De } = kn({
1769
1769
  isPressed: Y
1770
1770
  }), ue = k(() => de === an.HAND, [de]), pe = I((W, H) => {
1771
1771
  B((Q) => H > -1 ? { ...Q, [W]: Math.round(H * 100) } : (delete Q[W], Q));
@@ -1915,16 +1915,16 @@ const Go = ({ widths: t, heights: e }) => {
1915
1915
  h,
1916
1916
  v,
1917
1917
  Z
1918
- ]), /* @__PURE__ */ i("div", { ref: o, tabIndex: -1, className: Kr, children: /* @__PURE__ */ i(Vo, { style: { minHeight: "50px" }, children: ({ width: W, height: H }) => /* @__PURE__ */ i("div", { "data-rp": "pages", ref: Xr, style: { width: W, height: H }, children: m === K.PAGE_SCROLLING ? /* @__PURE__ */ i(
1918
+ ]), /* @__PURE__ */ i("div", { ref: o, tabIndex: -1, className: Kr, children: /* @__PURE__ */ i($o, { style: { minHeight: "50px" }, children: ({ width: W, height: H }) => /* @__PURE__ */ i("div", { "data-rp": "pages", ref: Xr, style: { width: W, height: H }, children: m === K.PAGE_SCROLLING ? /* @__PURE__ */ i(
1919
1919
  "div",
1920
1920
  {
1921
1921
  ref: s,
1922
1922
  style: { width: W, height: H },
1923
1923
  className: oe(he["rp-pages"], he["rp-page-scrolling-wrapper"]),
1924
- children: T === qe.DUAL_PAGE ? /* @__PURE__ */ i(Go, { widths: N, heights: E }) : /* @__PURE__ */ i(qo, { widths: N, heights: E })
1924
+ children: T === qe.DUAL_PAGE ? /* @__PURE__ */ i(Vo, { widths: N, heights: E }) : /* @__PURE__ */ i(Go, { widths: N, heights: E })
1925
1925
  }
1926
1926
  ) : V ? /* @__PURE__ */ i(
1927
- Fo,
1927
+ Ao,
1928
1928
  {
1929
1929
  ref: c,
1930
1930
  itemData: ge,
@@ -1943,7 +1943,7 @@ const Go = ({ widths: t, heights: e }) => {
1943
1943
  he["rp-pages"],
1944
1944
  m === K.HORIZONTAL_SCROLLING ? he["rp-pages-horizontal-scroll"] : ""
1945
1945
  ),
1946
- children: Uo
1946
+ children: qo
1947
1947
  }
1948
1948
  ) : p ? null : /* @__PURE__ */ i(
1949
1949
  "div",
@@ -1969,13 +1969,13 @@ const Go = ({ widths: t, heights: e }) => {
1969
1969
  "rp-paginate": "_rp-paginate_1y9vo_1",
1970
1970
  "rp-page-input": "_rp-page-input_1y9vo_6",
1971
1971
  "rp-total-page": "_rp-total-page_1y9vo_11"
1972
- }, Zo = () => {
1972
+ }, Uo = () => {
1973
1973
  const { prevIcon: t } = fe();
1974
1974
  return t || /* @__PURE__ */ i(ke, {});
1975
- }, Bo = () => {
1975
+ }, Zo = () => {
1976
1976
  const { nextIcon: t } = fe();
1977
1977
  return t || /* @__PURE__ */ i(ke, { style: { transform: "rotate(180deg" } });
1978
- }, jo = () => {
1978
+ }, Bo = () => {
1979
1979
  const { focusedPage: t, totalPages: e, setFocusedPage: r, nextPage: o, prevPage: n, goToPage: a } = ce(), [c, s] = $(t.toString()), { pageNavigationTool: l = !0 } = _e(), { isSmallScreen: d } = Re(), { localeMessages: u } = me();
1980
1980
  O(() => {
1981
1981
  s(t.toString());
@@ -2011,7 +2011,7 @@ const Go = ({ widths: t, heights: e }) => {
2011
2011
  onClick: n,
2012
2012
  "aria-label": u == null ? void 0 : u.previousPageTooltip,
2013
2013
  "aria-disabled": t === 1,
2014
- children: /* @__PURE__ */ i(Zo, {})
2014
+ children: /* @__PURE__ */ i(Uo, {})
2015
2015
  }
2016
2016
  ) }),
2017
2017
  /* @__PURE__ */ i(U, { content: u == null ? void 0 : u.currentPageTooltip, children: /* @__PURE__ */ i(
@@ -2034,12 +2034,12 @@ const Go = ({ widths: t, heights: e }) => {
2034
2034
  onClick: o,
2035
2035
  "aria-label": u == null ? void 0 : u.nextPageTooltip,
2036
2036
  "aria-disabled": t === e,
2037
- children: /* @__PURE__ */ i(Bo, {})
2037
+ children: /* @__PURE__ */ i(Zo, {})
2038
2038
  }
2039
2039
  ) })
2040
2040
  ] }) : null;
2041
2041
  };
2042
- var Rt = "Dialog", [yr, Ts] = Gn(Rt), [Ko, le] = yr(Rt), Ir = (t) => {
2042
+ var Rt = "Dialog", [yr, Ps] = Gn(Rt), [jo, le] = yr(Rt), Ir = (t) => {
2043
2043
  const {
2044
2044
  __scopeDialog: e,
2045
2045
  children: r,
@@ -2047,13 +2047,13 @@ var Rt = "Dialog", [yr, Ts] = Gn(Rt), [Ko, le] = yr(Rt), Ir = (t) => {
2047
2047
  defaultOpen: n,
2048
2048
  onOpenChange: a,
2049
2049
  modal: c = !0
2050
- } = t, s = G.useRef(null), l = G.useRef(null), [d = !1, u] = Zn({
2050
+ } = t, s = G.useRef(null), l = G.useRef(null), [d = !1, u] = Un({
2051
2051
  prop: o,
2052
2052
  defaultProp: n,
2053
2053
  onChange: a
2054
2054
  });
2055
2055
  return /* @__PURE__ */ i(
2056
- Ko,
2056
+ jo,
2057
2057
  {
2058
2058
  scope: e,
2059
2059
  triggerRef: s,
@@ -2070,7 +2070,7 @@ var Rt = "Dialog", [yr, Ts] = Gn(Rt), [Ko, le] = yr(Rt), Ir = (t) => {
2070
2070
  );
2071
2071
  };
2072
2072
  Ir.displayName = Rt;
2073
- var Rr = "DialogTrigger", Xo = G.forwardRef(
2073
+ var Rr = "DialogTrigger", Ko = G.forwardRef(
2074
2074
  (t, e) => {
2075
2075
  const { __scopeDialog: r, ...o } = t, n = le(Rr, r), a = St(e, n.triggerRef);
2076
2076
  return /* @__PURE__ */ i(
@@ -2088,28 +2088,28 @@ var Rr = "DialogTrigger", Xo = G.forwardRef(
2088
2088
  );
2089
2089
  }
2090
2090
  );
2091
- Xo.displayName = Rr;
2092
- var Lt = "DialogPortal", [Jo, Lr] = yr(Lt, {
2091
+ Ko.displayName = Rr;
2092
+ var Lt = "DialogPortal", [Xo, Lr] = yr(Lt, {
2093
2093
  forceMount: void 0
2094
2094
  }), Nr = (t) => {
2095
2095
  const { __scopeDialog: e, forceMount: r, children: o, container: n } = t, a = le(Lt, e);
2096
- return /* @__PURE__ */ i(Jo, { scope: e, forceMount: r, children: G.Children.map(o, (c) => /* @__PURE__ */ i(xt, { present: r || a.open, children: /* @__PURE__ */ i(Yn, { asChild: !0, container: n, children: c }) })) });
2096
+ return /* @__PURE__ */ i(Xo, { scope: e, forceMount: r, children: G.Children.map(o, (c) => /* @__PURE__ */ i(xt, { present: r || a.open, children: /* @__PURE__ */ i(Xn, { asChild: !0, container: n, children: c }) })) });
2097
2097
  };
2098
2098
  Nr.displayName = Lt;
2099
2099
  var Ze = "DialogOverlay", Er = G.forwardRef(
2100
2100
  (t, e) => {
2101
2101
  const r = Lr(Ze, t.__scopeDialog), { forceMount: o = r.forceMount, ...n } = t, a = le(Ze, t.__scopeDialog);
2102
- return a.modal ? /* @__PURE__ */ i(xt, { present: o || a.open, children: /* @__PURE__ */ i(Yo, { ...n, ref: e }) }) : null;
2102
+ return a.modal ? /* @__PURE__ */ i(xt, { present: o || a.open, children: /* @__PURE__ */ i(Jo, { ...n, ref: e }) }) : null;
2103
2103
  }
2104
2104
  );
2105
2105
  Er.displayName = Ze;
2106
- var Yo = G.forwardRef(
2106
+ var Jo = G.forwardRef(
2107
2107
  (t, e) => {
2108
2108
  const { __scopeDialog: r, ...o } = t, n = le(Ze, r);
2109
2109
  return (
2110
2110
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
2111
2111
  // ie. when `Overlay` and `Content` are siblings
2112
- /* @__PURE__ */ i(jn, { as: qn, allowPinchZoom: !0, shards: [n.contentRef], children: /* @__PURE__ */ i(
2112
+ /* @__PURE__ */ i(Zn, { as: Vn, allowPinchZoom: !0, shards: [n.contentRef], children: /* @__PURE__ */ i(
2113
2113
  We.div,
2114
2114
  {
2115
2115
  "data-state": Et(n.open),
@@ -2123,17 +2123,17 @@ var Yo = G.forwardRef(
2123
2123
  ), ye = "DialogContent", Or = G.forwardRef(
2124
2124
  (t, e) => {
2125
2125
  const r = Lr(ye, t.__scopeDialog), { forceMount: o = r.forceMount, ...n } = t, a = le(ye, t.__scopeDialog);
2126
- return /* @__PURE__ */ i(xt, { present: o || a.open, children: a.modal ? /* @__PURE__ */ i(Qo, { ...n, ref: e }) : /* @__PURE__ */ i(ei, { ...n, ref: e }) });
2126
+ return /* @__PURE__ */ i(xt, { present: o || a.open, children: a.modal ? /* @__PURE__ */ i(Yo, { ...n, ref: e }) : /* @__PURE__ */ i(Qo, { ...n, ref: e }) });
2127
2127
  }
2128
2128
  );
2129
2129
  Or.displayName = ye;
2130
- var Qo = G.forwardRef(
2130
+ var Yo = G.forwardRef(
2131
2131
  (t, e) => {
2132
2132
  const r = le(ye, t.__scopeDialog), o = G.useRef(null), n = St(e, r.contentRef, o);
2133
2133
  return G.useEffect(() => {
2134
2134
  const a = o.current;
2135
2135
  if (a)
2136
- return Kn(a);
2136
+ return Jn(a);
2137
2137
  }, []), /* @__PURE__ */ i(
2138
2138
  Dr,
2139
2139
  {
@@ -2156,7 +2156,7 @@ var Qo = G.forwardRef(
2156
2156
  }
2157
2157
  );
2158
2158
  }
2159
- ), ei = G.forwardRef(
2159
+ ), Qo = G.forwardRef(
2160
2160
  (t, e) => {
2161
2161
  const r = le(ye, t.__scopeDialog), o = G.useRef(!1), n = G.useRef(!1);
2162
2162
  return /* @__PURE__ */ i(
@@ -2182,9 +2182,9 @@ var Qo = G.forwardRef(
2182
2182
  ), Dr = G.forwardRef(
2183
2183
  (t, e) => {
2184
2184
  const { __scopeDialog: r, trapFocus: o, onOpenAutoFocus: n, onCloseAutoFocus: a, ...c } = t, s = le(ye, r), l = G.useRef(null), d = St(e, l);
2185
- return Xn(), /* @__PURE__ */ z(xe, { children: [
2185
+ return Bn(), /* @__PURE__ */ z(xe, { children: [
2186
2186
  /* @__PURE__ */ i(
2187
- Jn,
2187
+ jn,
2188
2188
  {
2189
2189
  asChild: !0,
2190
2190
  loop: !0,
@@ -2192,7 +2192,7 @@ var Qo = G.forwardRef(
2192
2192
  onMountAutoFocus: n,
2193
2193
  onUnmountAutoFocus: a,
2194
2194
  children: /* @__PURE__ */ i(
2195
- Bn,
2195
+ Kn,
2196
2196
  {
2197
2197
  role: "dialog",
2198
2198
  id: s.contentId,
@@ -2207,8 +2207,8 @@ var Qo = G.forwardRef(
2207
2207
  }
2208
2208
  ),
2209
2209
  /* @__PURE__ */ z(xe, { children: [
2210
- /* @__PURE__ */ i(ri, { titleId: s.titleId }),
2211
- /* @__PURE__ */ i(oi, { contentRef: l, descriptionId: s.descriptionId })
2210
+ /* @__PURE__ */ i(ti, { titleId: s.titleId }),
2211
+ /* @__PURE__ */ i(ni, { contentRef: l, descriptionId: s.descriptionId })
2212
2212
  ] })
2213
2213
  ] });
2214
2214
  }
@@ -2219,13 +2219,13 @@ var Qo = G.forwardRef(
2219
2219
  }
2220
2220
  );
2221
2221
  zr.displayName = Nt;
2222
- var Ar = "DialogDescription", ti = G.forwardRef(
2222
+ var Ar = "DialogDescription", ei = G.forwardRef(
2223
2223
  (t, e) => {
2224
2224
  const { __scopeDialog: r, ...o } = t, n = le(Ar, r);
2225
2225
  return /* @__PURE__ */ i(We.p, { id: n.descriptionId, ...o, ref: e });
2226
2226
  }
2227
2227
  );
2228
- ti.displayName = Ar;
2228
+ ei.displayName = Ar;
2229
2229
  var Fr = "DialogClose", kr = G.forwardRef(
2230
2230
  (t, e) => {
2231
2231
  const { __scopeDialog: r, ...o } = t, n = le(Fr, r);
@@ -2244,11 +2244,11 @@ kr.displayName = Fr;
2244
2244
  function Et(t) {
2245
2245
  return t ? "open" : "closed";
2246
2246
  }
2247
- var Mr = "DialogTitleWarning", [Ps, Wr] = Un(Mr, {
2247
+ var Mr = "DialogTitleWarning", [Ss, Wr] = qn(Mr, {
2248
2248
  contentName: ye,
2249
2249
  titleName: Nt,
2250
2250
  docsSlug: "dialog"
2251
- }), ri = ({ titleId: t }) => {
2251
+ }), ti = ({ titleId: t }) => {
2252
2252
  const e = Wr(Mr), r = `\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
2253
2253
 
2254
2254
  If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
@@ -2257,14 +2257,14 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
2257
2257
  return G.useEffect(() => {
2258
2258
  t && (document.getElementById(t) || console.error(r));
2259
2259
  }, [r, t]), null;
2260
- }, ni = "DialogDescriptionWarning", oi = ({ contentRef: t, descriptionId: e }) => {
2261
- const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Wr(ni).contentName}}.`;
2260
+ }, ri = "DialogDescriptionWarning", ni = ({ contentRef: t, descriptionId: e }) => {
2261
+ const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Wr(ri).contentName}}.`;
2262
2262
  return G.useEffect(() => {
2263
2263
  var a;
2264
2264
  const n = (a = t.current) == null ? void 0 : a.getAttribute("aria-describedby");
2265
2265
  e && n && (document.getElementById(e) || console.warn(o));
2266
2266
  }, [o, t, e]), null;
2267
- }, ii = Ir, ai = Nr, si = Er, ci = Or, li = zr, di = kr;
2267
+ }, oi = Ir, ii = Nr, ai = Er, si = Or, ci = zr, li = kr;
2268
2268
  const Se = {
2269
2269
  "rp-dialog-wrapper": "_rp-dialog-wrapper_slqo7_1",
2270
2270
  "rp-dialog-overlay": "_rp-dialog-overlay_slqo7_7",
@@ -2273,8 +2273,8 @@ const Se = {
2273
2273
  "rp-dialog-title": "_rp-dialog-title_slqo7_39",
2274
2274
  "rp-dialog-close": "_rp-dialog-close_slqo7_47",
2275
2275
  "rp-properties-divider": "_rp-properties-divider_slqo7_55"
2276
- }, ui = () => {
2277
- const { pdfProperties: t } = X(), { container: e } = Ie(), { activeDocumentProperties: r, setActiveDocumentProperties: o } = eo(), { localeMessages: n } = me(), a = k(() => {
2276
+ }, di = () => {
2277
+ const { pdfProperties: t } = X(), { container: e } = Ie(), { activeDocumentProperties: r, setActiveDocumentProperties: o } = Qn(), { localeMessages: n } = me(), a = k(() => {
2278
2278
  if (!t)
2279
2279
  return [];
2280
2280
  const {
@@ -2314,45 +2314,45 @@ const Se = {
2314
2314
  { label: n == null ? void 0 : n.propertiesPageCountLabel, value: _ }
2315
2315
  ];
2316
2316
  }, [t, n]);
2317
- return /* @__PURE__ */ i(ii, { open: r, onOpenChange: o, children: /* @__PURE__ */ i(ai, { container: e, children: /* @__PURE__ */ z("div", { className: Se["rp-dialog-wrapper"], children: [
2318
- /* @__PURE__ */ i(si, { className: Se["rp-dialog-overlay"] }),
2319
- /* @__PURE__ */ z(ci, { className: Se["rp-document-dialog"], children: [
2320
- /* @__PURE__ */ i(li, { className: Se["rp-dialog-title"], children: n == null ? void 0 : n.documentPropertiesLabel }),
2321
- /* @__PURE__ */ i("div", { className: Se["rp-document-properties"], children: a.map((c, s) => /* @__PURE__ */ i("div", { children: c.separate ? /* @__PURE__ */ i("div", { className: Se["rp-properties-divider"] }) : /* @__PURE__ */ i(Qn, { label: c.label, value: c.value }) }, s)) }),
2322
- /* @__PURE__ */ i(di, { asChild: !0, className: Se["rp-dialog-close"], children: /* @__PURE__ */ i(hr, {}) })
2317
+ return /* @__PURE__ */ i(oi, { open: r, onOpenChange: o, children: /* @__PURE__ */ i(ii, { container: e, children: /* @__PURE__ */ z("div", { className: Se["rp-dialog-wrapper"], children: [
2318
+ /* @__PURE__ */ i(ai, { className: Se["rp-dialog-overlay"] }),
2319
+ /* @__PURE__ */ z(si, { className: Se["rp-document-dialog"], children: [
2320
+ /* @__PURE__ */ i(ci, { className: Se["rp-dialog-title"], children: n == null ? void 0 : n.documentPropertiesLabel }),
2321
+ /* @__PURE__ */ i("div", { className: Se["rp-document-properties"], children: a.map((c, s) => /* @__PURE__ */ i("div", { children: c.separate ? /* @__PURE__ */ i("div", { className: Se["rp-properties-divider"] }) : /* @__PURE__ */ i(Yn, { label: c.label, value: c.value }) }, s)) }),
2322
+ /* @__PURE__ */ i(li, { asChild: !0, className: Se["rp-dialog-close"], children: /* @__PURE__ */ i(hr, {}) })
2323
2323
  ] })
2324
2324
  ] }) }) });
2325
- }, pi = {
2325
+ }, ui = {
2326
2326
  "rp-other-tool-content": "_rp-other-tool-content_su718_1"
2327
- }, hi = (t) => URL.createObjectURL(t), mi = async (t) => {
2327
+ }, pi = (t) => URL.createObjectURL(t), hi = async (t) => {
2328
2328
  const r = await (await fetch(t)).blob();
2329
- return hi(r);
2329
+ return pi(r);
2330
2330
  }, Hr = () => {
2331
2331
  const { filename: t, pdfSrc: e } = X();
2332
2332
  return { download: I(async () => {
2333
2333
  if (!t || !e)
2334
2334
  throw new Error("There is no PDF source to download");
2335
2335
  const o = document.createElement("a");
2336
- o.href = await mi(e), o.download = t, document.body.appendChild(o), o.click(), document.body.removeChild(o);
2336
+ o.href = await hi(e), o.download = t, document.body.appendChild(o), o.click(), document.body.removeChild(o);
2337
2337
  }, [t, e]) };
2338
2338
  }, $r = () => {
2339
2339
  const { downloadIcon: t } = fe();
2340
- return t || /* @__PURE__ */ i(io, {});
2341
- }, Vr = ({ children: t, className: e, localeMessages: r }) => /* @__PURE__ */ i(U, { className: e, content: r == null ? void 0 : r.downloadFileTooltip, children: t }), fi = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(Vr, { localeMessages: e, children: /* @__PURE__ */ i(te, { onClick: t, "aria-label": e == null ? void 0 : e.downloadFileTooltip, children: /* @__PURE__ */ i($r, {}) }) }), gi = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(be, { onClick: t, children: /* @__PURE__ */ z(Vr, { className: "rp-menu-item", localeMessages: e, children: [
2340
+ return t || /* @__PURE__ */ i(oo, {});
2341
+ }, Vr = ({ children: t, className: e, localeMessages: r }) => /* @__PURE__ */ i(U, { className: e, content: r == null ? void 0 : r.downloadFileTooltip, children: t }), mi = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(Vr, { localeMessages: e, children: /* @__PURE__ */ i(te, { onClick: t, "aria-label": e == null ? void 0 : e.downloadFileTooltip, children: /* @__PURE__ */ i($r, {}) }) }), fi = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(be, { onClick: t, children: /* @__PURE__ */ z(Vr, { className: "rp-menu-item", localeMessages: e, children: [
2342
2342
  /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i($r, {}) }),
2343
2343
  e == null ? void 0 : e.downloadFileLabel
2344
2344
  ] }) }), Gr = () => {
2345
2345
  const { download: t } = Hr(), { downloadTool: e = !0 } = _e(), { isSmallScreen: r } = Re(), { localeMessages: o } = me();
2346
- return e ? r ? /* @__PURE__ */ i(gi, { download: t, localeMessages: o }) : typeof e == "function" ? /* @__PURE__ */ i(e, { download: t }) : e ? /* @__PURE__ */ i(fi, { download: t, localeMessages: o }) : null : null;
2346
+ return e ? r ? /* @__PURE__ */ i(fi, { download: t, localeMessages: o }) : typeof e == "function" ? /* @__PURE__ */ i(e, { download: t }) : e ? /* @__PURE__ */ i(mi, { download: t, localeMessages: o }) : null : null;
2347
2347
  }, qr = () => {
2348
2348
  const { printIcon: t } = fe();
2349
- return t || /* @__PURE__ */ i(ao, {});
2350
- }, Ur = ({ children: t, className: e, localeMessages: r }) => /* @__PURE__ */ i(U, { className: e, content: r == null ? void 0 : r.printTooltip, children: t }), vi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(Ur, { localeMessages: e, children: /* @__PURE__ */ i(te, { onClick: t, "aria-label": e == null ? void 0 : e.printTooltip, children: /* @__PURE__ */ i(qr, {}) }) }), _i = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(be, { onClick: t, children: /* @__PURE__ */ z(Ur, { className: "rp-menu-item", localeMessages: e, children: [
2349
+ return t || /* @__PURE__ */ i(io, {});
2350
+ }, Ur = ({ children: t, className: e, localeMessages: r }) => /* @__PURE__ */ i(U, { className: e, content: r == null ? void 0 : r.printTooltip, children: t }), gi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(Ur, { localeMessages: e, children: /* @__PURE__ */ i(te, { onClick: t, "aria-label": e == null ? void 0 : e.printTooltip, children: /* @__PURE__ */ i(qr, {}) }) }), vi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(be, { onClick: t, children: /* @__PURE__ */ z(Ur, { className: "rp-menu-item", localeMessages: e, children: [
2351
2351
  /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(qr, {}) }),
2352
2352
  e == null ? void 0 : e.printLabel
2353
2353
  ] }) }), Zr = () => {
2354
2354
  const { print: t, cancel: e, setOnProgress: r, setOnComplete: o, setOnError: n, progress: a } = et(), { printTool: c = !0 } = _e(), { isSmallScreen: s } = Re(), { localeMessages: l } = me();
2355
- return c ? s ? /* @__PURE__ */ i(_i, { print: t, localeMessages: l }) : typeof c == "function" ? /* @__PURE__ */ i(
2355
+ return c ? s ? /* @__PURE__ */ i(vi, { print: t, localeMessages: l }) : typeof c == "function" ? /* @__PURE__ */ i(
2356
2356
  c,
2357
2357
  {
2358
2358
  print: t,
@@ -2362,16 +2362,16 @@ const Se = {
2362
2362
  setOnComplete: o,
2363
2363
  progress: a
2364
2364
  }
2365
- ) : c ? /* @__PURE__ */ i(vi, { print: t, localeMessages: l }) : null : null;
2366
- }, wi = {
2365
+ ) : c ? /* @__PURE__ */ i(gi, { print: t, localeMessages: l }) : null : null;
2366
+ }, _i = {
2367
2367
  "rp-go-to-Top": "_rp-go-to-Top_4e0yd_1"
2368
- }, bi = () => {
2368
+ }, wi = () => {
2369
2369
  const { goToFirstPageIcon: t } = fe();
2370
- return t || /* @__PURE__ */ i(fr, { className: wi["rp-go-to-Top"] });
2371
- }, Ci = () => {
2370
+ return t || /* @__PURE__ */ i(fr, { className: _i["rp-go-to-Top"] });
2371
+ }, bi = () => {
2372
2372
  const { goToLastPageIcon: t } = fe();
2373
2373
  return t || /* @__PURE__ */ i(fr, {});
2374
- }, rr = { width: "100%" }, Ti = () => {
2374
+ }, rr = { width: "100%" }, Ci = () => {
2375
2375
  const { goToPage: t, totalPages: e, focusedPage: r } = ce(), { jumpNavigationTool: o = !0 } = _e(), { localeMessages: n } = me(), a = k(() => r === 1, [r]), c = k(() => r === e, [r, e]), s = I(() => {
2376
2376
  t(1);
2377
2377
  }, [t]), l = I(() => {
@@ -2379,16 +2379,16 @@ const Se = {
2379
2379
  }, [t, e]);
2380
2380
  return o ? /* @__PURE__ */ z(Ue, { children: [
2381
2381
  /* @__PURE__ */ i(be, { onClick: s, children: /* @__PURE__ */ i(U, { content: n == null ? void 0 : n.firstPageTooltip, style: rr, children: /* @__PURE__ */ z("div", { className: "rp-menu-item", "aria-disabled": a, children: [
2382
- /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(bi, {}) }),
2382
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(wi, {}) }),
2383
2383
  /* @__PURE__ */ i("span", { children: n == null ? void 0 : n.firstPageLabel })
2384
2384
  ] }) }) }),
2385
2385
  /* @__PURE__ */ i(be, { onClick: l, children: /* @__PURE__ */ i(U, { content: n == null ? void 0 : n.lastPageTooltip, style: rr, children: /* @__PURE__ */ z("div", { className: "rp-menu-item", "aria-disabled": c, children: [
2386
- /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Ci, {}) }),
2386
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(bi, {}) }),
2387
2387
  /* @__PURE__ */ i("span", { children: n == null ? void 0 : n.lastPageLabel })
2388
2388
  ] }) }) }),
2389
2389
  /* @__PURE__ */ i(yt, {})
2390
2390
  ] }) : null;
2391
- }, Pi = () => {
2391
+ }, Ti = () => {
2392
2392
  const { container: t } = Ie(), { isSmallScreen: e } = Re(), {
2393
2393
  openFileTool: r,
2394
2394
  downloadTool: o,
@@ -2413,13 +2413,13 @@ const Se = {
2413
2413
  s,
2414
2414
  l,
2415
2415
  e
2416
- ]) ? /* @__PURE__ */ z(to, { children: [
2416
+ ]) ? /* @__PURE__ */ z(eo, { children: [
2417
2417
  /* @__PURE__ */ i(
2418
2418
  pr,
2419
2419
  {
2420
2420
  container: t,
2421
- triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(U, { content: f == null ? void 0 : f.moreOptionTooltip, children: /* @__PURE__ */ i(te, { "aria-label": f == null ? void 0 : f.moreOptionTooltip, children: /* @__PURE__ */ i(Vn, {}) }) }) }),
2422
- children: /* @__PURE__ */ z("div", { className: pi["rp-other-tool-content"], "data-rp": "moreOptionsDropdown", children: [
2421
+ triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(U, { content: f == null ? void 0 : f.moreOptionTooltip, children: /* @__PURE__ */ i(te, { "aria-label": f == null ? void 0 : f.moreOptionTooltip, children: /* @__PURE__ */ i($n, {}) }) }) }),
2422
+ children: /* @__PURE__ */ z("div", { className: ui["rp-other-tool-content"], "data-rp": "moreOptionsDropdown", children: [
2423
2423
  e && /* @__PURE__ */ z(Ue, { children: [
2424
2424
  /* @__PURE__ */ i(ur, {}),
2425
2425
  /* @__PURE__ */ i(Gr, {}),
@@ -2427,27 +2427,27 @@ const Se = {
2427
2427
  /* @__PURE__ */ i(mr, {}),
2428
2428
  /* @__PURE__ */ i(yt, {})
2429
2429
  ] }),
2430
- /* @__PURE__ */ i(Ti, {}),
2430
+ /* @__PURE__ */ i(Ci, {}),
2431
+ /* @__PURE__ */ i(ro, {}),
2432
+ /* @__PURE__ */ i(ao, {}),
2431
2433
  /* @__PURE__ */ i(no, {}),
2432
- /* @__PURE__ */ i(so, {}),
2433
- /* @__PURE__ */ i(oo, {}),
2434
- /* @__PURE__ */ i(ro, {})
2434
+ /* @__PURE__ */ i(to, {})
2435
2435
  ] })
2436
2436
  }
2437
2437
  ),
2438
- /* @__PURE__ */ i(ui, {})
2438
+ /* @__PURE__ */ i(di, {})
2439
2439
  ] }) : null;
2440
- }, Si = () => {
2440
+ }, Pi = () => {
2441
2441
  const { isSmallScreen: t } = Re();
2442
2442
  return /* @__PURE__ */ z(xe, { children: [
2443
- /* @__PURE__ */ i($n, {}),
2443
+ /* @__PURE__ */ i(Hn, {}),
2444
2444
  !t && /* @__PURE__ */ z(xe, { children: [
2445
2445
  /* @__PURE__ */ i(ur, {}),
2446
2446
  /* @__PURE__ */ i(Gr, {}),
2447
2447
  /* @__PURE__ */ i(Zr, {}),
2448
2448
  /* @__PURE__ */ i(mr, {})
2449
2449
  ] }),
2450
- /* @__PURE__ */ i(Pi, {})
2450
+ /* @__PURE__ */ i(Ti, {})
2451
2451
  ] });
2452
2452
  }, Ne = {
2453
2453
  "rp-zoom-wrapper": "_rp-zoom-wrapper_cocqs_1",
@@ -2455,13 +2455,13 @@ const Se = {
2455
2455
  "rp-current-zoom-icon": "_rp-current-zoom-icon_cocqs_11",
2456
2456
  "rp-current-zoom-text": "_rp-current-zoom-text_cocqs_16",
2457
2457
  "rp-zoom-dropdown-content": "_rp-zoom-dropdown-content_cocqs_20"
2458
- }, xi = 25, mt = 1e3, yi = [50, 75, 100, 125, 150, 200, 300, 400], Ii = () => {
2458
+ }, Si = 25, mt = 1e3, xi = [50, 75, 100, 125, 150, 200, 300, 400], yi = () => {
2459
2459
  const { zoomInIcon: t } = fe();
2460
+ return t || /* @__PURE__ */ i(so, {});
2461
+ }, Ii = () => {
2462
+ const { zoomOutIcon: t } = fe();
2460
2463
  return t || /* @__PURE__ */ i(co, {});
2461
2464
  }, Ri = () => {
2462
- const { zoomOutIcon: t } = fe();
2463
- return t || /* @__PURE__ */ i(lo, {});
2464
- }, Li = () => {
2465
2465
  const { zoomLevel: t, setZoomLevel: e } = Xe(), { container: r, contentRef: o } = Ie(), { zoomTool: n = !0 } = _e(), { focusedPage: a } = ce(), { rotate: c } = Ke(), { pages: s } = X(), { isSmallScreen: l } = Re(), { localeMessages: d } = me(), u = I(() => {
2466
2466
  e((_) => {
2467
2467
  const m = Math.floor(_ / 25) * 25;
@@ -2472,12 +2472,12 @@ const Se = {
2472
2472
  const m = Math.ceil(_ / 25) * 25;
2473
2473
  return Math.min(m - 25, mt);
2474
2474
  });
2475
- }, [e]), h = k(() => t === xi, [t]), g = k(() => t === mt, [t]), w = k(() => {
2475
+ }, [e]), h = k(() => t === Si, [t]), g = k(() => t === mt, [t]), w = k(() => {
2476
2476
  var _;
2477
2477
  return (_ = s.get(a)) == null ? void 0 : _.page.getViewport({ scale: 1, rotation: c });
2478
2478
  }, [s, a, c]), b = I(
2479
2479
  (_) => {
2480
- const m = ((w == null ? void 0 : w.width) || 0) + 2 * Ht, T = ((w == null ? void 0 : w.height) || 0) + 2 * Ht, x = (o == null ? void 0 : o.clientWidth) || 0, p = (o == null ? void 0 : o.clientHeight) || 0, P = uo(_, x, p, m, T);
2480
+ const m = ((w == null ? void 0 : w.width) || 0) + 2 * Ht, T = ((w == null ? void 0 : w.height) || 0) + 2 * Ht, x = (o == null ? void 0 : o.clientWidth) || 0, p = (o == null ? void 0 : o.clientHeight) || 0, P = lo(_, x, p, m, T);
2481
2481
  e(P);
2482
2482
  },
2483
2483
  [e, w]
@@ -2494,7 +2494,7 @@ const Se = {
2494
2494
  disabled: h,
2495
2495
  onClick: f,
2496
2496
  "aria-label": d == null ? void 0 : d.zoomOutTooltip,
2497
- children: /* @__PURE__ */ i(Ri, {})
2497
+ children: /* @__PURE__ */ i(Ii, {})
2498
2498
  }
2499
2499
  ) }),
2500
2500
  !l && /* @__PURE__ */ i(
@@ -2522,7 +2522,7 @@ const Se = {
2522
2522
  /* @__PURE__ */ i(be, { onClick: () => v(ot.PAGE_WIDTH), children: d == null ? void 0 : d.zoomPageWidth })
2523
2523
  ] }),
2524
2524
  /* @__PURE__ */ i(yt, {}),
2525
- /* @__PURE__ */ i(Ue, { children: yi.map((_) => /* @__PURE__ */ z(be, { onClick: () => v(_), children: [
2525
+ /* @__PURE__ */ i(Ue, { children: xi.map((_) => /* @__PURE__ */ z(be, { onClick: () => v(_), children: [
2526
2526
  _,
2527
2527
  " %"
2528
2528
  ] }, _)) })
@@ -2535,7 +2535,7 @@ const Se = {
2535
2535
  disabled: g,
2536
2536
  onClick: u,
2537
2537
  "aria-label": d == null ? void 0 : d.zoomInTooltip,
2538
- children: /* @__PURE__ */ i(Ii, {})
2538
+ children: /* @__PURE__ */ i(yi, {})
2539
2539
  }
2540
2540
  ) })
2541
2541
  ] }) : null;
@@ -2551,8 +2551,8 @@ const Se = {
2551
2551
  "rp-search-icon-info": "_rp-search-icon-info_3xbn5_65"
2552
2552
  }, nr = () => {
2553
2553
  const { searchIcon: t } = fe();
2554
- return t || /* @__PURE__ */ i(po, {});
2555
- }, Ni = () => {
2554
+ return t || /* @__PURE__ */ i(uo, {});
2555
+ }, Li = () => {
2556
2556
  const { container: t } = Ie(), [e, r] = $(!1), { pdf: o } = X(), [n, a] = $(null), {
2557
2557
  searchOptions: c,
2558
2558
  setSearchOptions: s,
@@ -2604,7 +2604,7 @@ const Se = {
2604
2604
  return O(() => {
2605
2605
  x();
2606
2606
  }, [o, x]), b ? /* @__PURE__ */ i(xe, { children: /* @__PURE__ */ i(
2607
- Fn,
2607
+ An,
2608
2608
  {
2609
2609
  open: e,
2610
2610
  container: t,
@@ -2622,7 +2622,7 @@ const Se = {
2622
2622
  placeholder: m == null ? void 0 : m.searchInputPlaceholder,
2623
2623
  className: ne["rp-search-input"],
2624
2624
  ref: a,
2625
- children: !!v && /* @__PURE__ */ i("span", { className: ne["rp-search-tool-input-clear"], onClick: A, children: /* @__PURE__ */ i(ho, {}) })
2625
+ children: !!v && /* @__PURE__ */ i("span", { className: ne["rp-search-tool-input-clear"], onClick: A, children: /* @__PURE__ */ i(po, {}) })
2626
2626
  }
2627
2627
  ) }),
2628
2628
  l ? /* @__PURE__ */ i("span", { children: /* @__PURE__ */ i(Pt, {}) }) : /* @__PURE__ */ i("span", { children: R })
@@ -2662,15 +2662,15 @@ const Se = {
2662
2662
  ] })
2663
2663
  }
2664
2664
  ) }) : null;
2665
- }, Ei = "_loading_1iq0a_1", Ee = {
2665
+ }, Ni = "_loading_1iq0a_1", Ee = {
2666
2666
  "rp-loading-overlay": "_rp-loading-overlay_1iq0a_1",
2667
2667
  "rp-loading-modal": "_rp-loading-modal_1iq0a_14",
2668
2668
  "rp-loading-title": "_rp-loading-title_1iq0a_27",
2669
2669
  "rp-loading-progress-bar": "_rp-loading-progress-bar_1iq0a_35",
2670
2670
  "rp-loading-progress": "_rp-loading-progress_1iq0a_35",
2671
2671
  "rp-loading-cancel-button": "_rp-loading-cancel-button_1iq0a_57",
2672
- loading: Ei
2673
- }, Oi = ({ percentage: t }) => {
2672
+ loading: Ni
2673
+ }, Ei = ({ percentage: t }) => {
2674
2674
  const { cancel: e } = et(), { localeMessages: r } = me();
2675
2675
  return t < 1 ? null : /* @__PURE__ */ i("div", { className: oe(Ee["rp-loading-overlay"]), children: /* @__PURE__ */ z("div", { className: oe(Ee["rp-loading-modal"]), children: [
2676
2676
  /* @__PURE__ */ z("div", { className: oe(Ee["rp-loading-title"]), children: [
@@ -2686,18 +2686,18 @@ const Se = {
2686
2686
  ) }),
2687
2687
  /* @__PURE__ */ i("button", { className: oe(Ee["rp-loading-cancel-button"]), onClick: e, children: r == null ? void 0 : r.printCancelLabel })
2688
2688
  ] }) });
2689
- }, Di = Me((t, e) => {
2689
+ }, Oi = Me((t, e) => {
2690
2690
  const { showPrintProgress: r } = _e(), { progress: o } = et(), { isSmallScreen: n } = Re(), { percentage: a } = o || {}, c = () => n ? { gridTemplateColumns: "25% 60% 15%" } : void 0;
2691
2691
  return /* @__PURE__ */ z("div", { children: [
2692
2692
  /* @__PURE__ */ i("div", { "data-rp": "topBar", ref: e, className: ze["rp-toolbar-content"], children: /* @__PURE__ */ z("div", { className: ze["rp-toolbar-wrapper"], style: c(), children: [
2693
2693
  /* @__PURE__ */ z("div", { "data-rp": "topBarLeft", className: ze["rp-toolbar-start"], children: [
2694
- /* @__PURE__ */ i(Ni, {}),
2695
- /* @__PURE__ */ i(jo, {})
2694
+ /* @__PURE__ */ i(Li, {}),
2695
+ /* @__PURE__ */ i(Bo, {})
2696
2696
  ] }),
2697
- /* @__PURE__ */ i("div", { "data-rp": "topBarCenter", className: ze["rp-toolbar-middle"], children: /* @__PURE__ */ i(Li, {}) }),
2698
- /* @__PURE__ */ i("div", { "data-rp": "topBarRight", className: ze["rp-toolbar-end"], children: /* @__PURE__ */ i(Si, {}) })
2697
+ /* @__PURE__ */ i("div", { "data-rp": "topBarCenter", className: ze["rp-toolbar-middle"], children: /* @__PURE__ */ i(Ri, {}) }),
2698
+ /* @__PURE__ */ i("div", { "data-rp": "topBarRight", className: ze["rp-toolbar-end"], children: /* @__PURE__ */ i(Pi, {}) })
2699
2699
  ] }) }),
2700
- r && a ? /* @__PURE__ */ i(Oi, { percentage: a }) : null
2700
+ r && a ? /* @__PURE__ */ i(Ei, { percentage: a }) : null
2701
2701
  ] });
2702
2702
  }), ft = {
2703
2703
  "rp-sidebar-content-wrapper": "_rp-sidebar-content-wrapper_1sdl6_1",
@@ -2710,7 +2710,7 @@ const Se = {
2710
2710
  "rp-thumbnail": "_rp-thumbnail_3fenb_1",
2711
2711
  "rp-thumbnail-active": "_rp-thumbnail-active_3fenb_22",
2712
2712
  "rp-thumbnail-loader": "_rp-thumbnail-loader_3fenb_31"
2713
- }, zi = (t) => {
2713
+ }, Di = (t) => {
2714
2714
  const { thumbnailSrc: e, pageNumber: r, isFocused: o, viewport: n } = t, { goToPage: a } = ce(), c = k(() => o ? Ae["rp-thumbnail-active"] : "", [o]), s = k(() => ({
2715
2715
  width: Math.round(n.width),
2716
2716
  height: Math.round(n.height)
@@ -2750,10 +2750,10 @@ const Se = {
2750
2750
  }, or = {
2751
2751
  "rp-thumbnails-container": "_rp-thumbnails-container_16vqr_1",
2752
2752
  "rp-thumbnails": "_rp-thumbnails_16vqr_1"
2753
- }, Ai = 16, Fi = (t, e) => {
2753
+ }, zi = 16, Ai = (t, e) => {
2754
2754
  const r = t == null ? void 0 : t.querySelector(`#page-${e}`);
2755
- t && (r != null && r.offsetTop) && (t.scrollTop = (r == null ? void 0 : r.offsetTop) - Ai);
2756
- }, ki = Me((t, e) => {
2755
+ t && (r != null && r.offsetTop) && (t.scrollTop = (r == null ? void 0 : r.offsetTop) - zi);
2756
+ }, Fi = Me((t, e) => {
2757
2757
  const { show: r } = t, { focusedPage: o, totalPages: n } = ce(), { thumbnailPages: a, addPage: c, thumbnailLength: s, addToPage: l } = br(), d = M(null), u = M(1);
2758
2758
  ir(e, () => d.current);
2759
2759
  const f = k(() => Object.values(a), [a]), h = I(() => {
@@ -2761,11 +2761,11 @@ const Se = {
2761
2761
  g <= n && c(g);
2762
2762
  }, [c, n, s]);
2763
2763
  return O(() => {
2764
- o > s ? l(o) : r && u.current !== o && (Fi(d.current, o), u.current = o);
2764
+ o > s ? l(o) : r && u.current !== o && (Ai(d.current, o), u.current = o);
2765
2765
  }, [o, s, l, r, f]), wn(d.current, h), /* @__PURE__ */ i("div", { ref: d, className: or["rp-thumbnails-container"], children: /* @__PURE__ */ i("div", { className: or["rp-thumbnails"], children: r ? f.map((g, w) => {
2766
2766
  var b, v;
2767
2767
  return /* @__PURE__ */ i(
2768
- zi,
2768
+ Di,
2769
2769
  {
2770
2770
  isFocused: o === ((b = g.page) == null ? void 0 : b.pageNumber),
2771
2771
  pageNumber: (v = g.page) == null ? void 0 : v.pageNumber,
@@ -2776,10 +2776,10 @@ const Se = {
2776
2776
  w
2777
2777
  );
2778
2778
  }) : null }) });
2779
- }), Mi = () => {
2779
+ }), ki = () => {
2780
2780
  const { thumbnailIcon: t } = fe();
2781
2781
  return t || /* @__PURE__ */ i(_n, {});
2782
- }, Wi = () => {
2782
+ }, Mi = () => {
2783
2783
  const { active: t, setActive: e } = br(), [r, o] = $(200), n = M(null), { thumbnailTool: a, sidebarEnable: c } = _e(), { localeMessages: s } = me(), l = I(() => {
2784
2784
  e((u) => !u);
2785
2785
  }, []), d = k(() => typeof a != "boolean" && a ? /* @__PURE__ */ i(a, { onClick: l, active: t }) : a ? /* @__PURE__ */ i(U, { content: s == null ? void 0 : s.thumbnailTooltip, children: /* @__PURE__ */ i(
@@ -2788,7 +2788,7 @@ const Se = {
2788
2788
  onClick: l,
2789
2789
  active: t,
2790
2790
  "aria-label": s == null ? void 0 : s.thumbnailTooltip,
2791
- children: /* @__PURE__ */ i(Mi, {})
2791
+ children: /* @__PURE__ */ i(ki, {})
2792
2792
  }
2793
2793
  ) }) : null, [a, t, l, s]);
2794
2794
  return /* @__PURE__ */ i(xe, { children: c && /* @__PURE__ */ z(
@@ -2806,7 +2806,7 @@ const Se = {
2806
2806
  hidden: !t,
2807
2807
  className: ft["rp-thumbnails-wrapper"],
2808
2808
  children: [
2809
- /* @__PURE__ */ i(ki, { show: t, ref: n }),
2809
+ /* @__PURE__ */ i(Fi, { show: t, ref: n }),
2810
2810
  /* @__PURE__ */ i(bn, { onWidthChange: o, thumbnailRef: n })
2811
2811
  ]
2812
2812
  }
@@ -2822,7 +2822,7 @@ const Se = {
2822
2822
  "rp-loader": "_rp-loader_we0st_54",
2823
2823
  "rp-theme-variables": "_rp-theme-variables_we0st_58",
2824
2824
  "rp-dark-mode": "_rp-dark-mode_we0st_149"
2825
- }, Hi = Me(
2825
+ }, Wi = Me(
2826
2826
  (t, e) => {
2827
2827
  const { children: r, toolbarRef: o, style: n, className: a } = t, { customVariables: c, customDarkVariables: s } = In(), { darkMode: l } = on();
2828
2828
  return /* @__PURE__ */ i(
@@ -2845,16 +2845,16 @@ const Se = {
2845
2845
  }
2846
2846
  );
2847
2847
  }
2848
- ), Ss = Me((t, e) => {
2848
+ ), xs = Me((t, e) => {
2849
2849
  const { children: r, slots: o, icons: n, style: a, className: c, mobileWidth: s, onLoaded: l, cleanupOnLoaded: d } = t, [u, f] = $(null), { setContainer: h, setContentRef: g } = Ie(), { loading: w } = X(), { LoaderImageComponent: b } = dr();
2850
2850
  return O(() => (l && l(), () => {
2851
2851
  d && d();
2852
- }), [l, d]), /* @__PURE__ */ i(Hi, { toolbarRef: u, ref: e, children: /* @__PURE__ */ i(yn, { mobileWidth: s, children: /* @__PURE__ */ i(Cn, { slots: o, children: /* @__PURE__ */ i(Tn, { icons: n, children: /* @__PURE__ */ z(Pn, { getContainerRef: h, style: a, className: c, children: [
2852
+ }), [l, d]), /* @__PURE__ */ i(Wi, { toolbarRef: u, ref: e, children: /* @__PURE__ */ i(yn, { mobileWidth: s, children: /* @__PURE__ */ i(Cn, { slots: o, children: /* @__PURE__ */ i(Tn, { icons: n, children: /* @__PURE__ */ z(Pn, { getContainerRef: h, style: a, className: c, children: [
2853
2853
  /* @__PURE__ */ z(Sn, { children: [
2854
2854
  /* @__PURE__ */ z("div", { className: we["rp-layout"], children: [
2855
- /* @__PURE__ */ i(Di, { ref: f }),
2855
+ /* @__PURE__ */ i(Oi, { ref: f }),
2856
2856
  /* @__PURE__ */ z("div", { className: we["rp-content"], children: [
2857
- /* @__PURE__ */ i("div", { className: we["rp-sidebar"], children: /* @__PURE__ */ i(Wi, {}) }),
2857
+ /* @__PURE__ */ i("div", { className: we["rp-sidebar"], children: /* @__PURE__ */ i(Mi, {}) }),
2858
2858
  /* @__PURE__ */ i("div", { ref: g, className: we["rp-pages"], children: r })
2859
2859
  ] })
2860
2860
  ] }),
@@ -2891,47 +2891,47 @@ const Se = {
2891
2891
  ] }) }) }) }) });
2892
2892
  });
2893
2893
  export {
2894
- To as A,
2895
- Di as B,
2896
- _o as C,
2897
- Go as D,
2898
- zi as E,
2894
+ Co as A,
2895
+ Oi as B,
2896
+ vo as C,
2897
+ Vo as D,
2898
+ Di as E,
2899
2899
  Gr as F,
2900
- ki as G,
2901
- Wi as H,
2902
- Hi as I,
2903
- Oi as L,
2904
- Ti as M,
2905
- Pi as O,
2906
- vs as P,
2907
- Cs as R,
2908
- bs as S,
2909
- ws as T,
2910
- Li as Z,
2911
- _s as a,
2912
- Ss as b,
2900
+ Fi as G,
2901
+ Mi as H,
2902
+ Wi as I,
2903
+ Ei as L,
2904
+ Ci as M,
2905
+ Ti as O,
2906
+ _s as P,
2907
+ Ts as R,
2908
+ Cs as S,
2909
+ bs as T,
2910
+ Ri as Z,
2911
+ ws as a,
2912
+ xs as b,
2913
2913
  Hr as c,
2914
2914
  et as d,
2915
2915
  Tr as e,
2916
2916
  gr as f,
2917
- mo as g,
2917
+ ho as g,
2918
2918
  vr as h,
2919
- fo as i,
2919
+ mo as i,
2920
2920
  _r as j,
2921
- go as k,
2921
+ fo as k,
2922
2922
  wr as l,
2923
2923
  br as m,
2924
- vo as n,
2924
+ go as n,
2925
2925
  Cr as o,
2926
- wo as p,
2927
- Po as q,
2926
+ _o as p,
2927
+ To as q,
2928
2928
  It as r,
2929
- Ho as s,
2930
- qo as t,
2929
+ Wo as s,
2930
+ Go as t,
2931
2931
  ce as u,
2932
- jo as v,
2933
- ui as w,
2932
+ Bo as v,
2933
+ di as w,
2934
2934
  Zr as x,
2935
- Si as y,
2936
- Ni as z
2935
+ Pi as y,
2936
+ Li as z
2937
2937
  };