@pdf-viewer/react 1.3.0-rc.0 → 1.3.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/Popover-aaa4344e.js +1445 -0
  2. package/dist/{RPDefaultLayout-6fe6be3d.js → RPDefaultLayout-19259aa7.js} +319 -327
  3. package/dist/component-1da194e8.js +337 -0
  4. package/dist/components/RPController.js +1 -1
  5. package/dist/components/RPPages.js +1 -1
  6. package/dist/components/RPProvider.js +1 -1
  7. package/dist/components/layout/RPDefaultLayout.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/MenuItem.js +1 -1
  14. package/dist/components/layout/toolbar/MenuSeparator.js +1 -1
  15. package/dist/components/layout/toolbar/MostPageTool.js +2 -2
  16. package/dist/components/layout/toolbar/OtherTool.js +2 -2
  17. package/dist/components/layout/toolbar/Paginate.js +1 -1
  18. package/dist/components/layout/toolbar/PrintTool.js +1 -1
  19. package/dist/components/layout/toolbar/RPToolbar.js +1 -1
  20. package/dist/components/layout/toolbar/RPToolbarEnd.js +1 -1
  21. package/dist/components/layout/toolbar/RotateTool.js +1 -1
  22. package/dist/components/layout/toolbar/ScrollModeTool.js +1 -1
  23. package/dist/components/layout/toolbar/SearchTool.js +2 -2
  24. package/dist/components/layout/toolbar/SelectionModeTool.js +1 -1
  25. package/dist/components/layout/toolbar/ViewModeTool.js +1 -1
  26. package/dist/components/layout/toolbar/ZoomTool.js +2 -2
  27. package/dist/components/page/AnnotationLayer.js +1 -1
  28. package/dist/components/page/CanvasLayer.js +1 -1
  29. package/dist/components/page/DualPage.js +1 -1
  30. package/dist/components/page/RPPage.js +1 -1
  31. package/dist/components/page/SinglePage.js +1 -1
  32. package/dist/components/page/TextLayer.js +1 -1
  33. package/dist/components/ui/Checkbox.js +14 -13
  34. package/dist/components/ui/DropDown.js +1 -1
  35. package/dist/components/ui/LoadingIndicator.js +1 -1
  36. package/dist/components/ui/Popover.js +4 -3058
  37. package/dist/components/ui/RPTooltip.js +687 -328
  38. package/dist/contexts/PaginationContext.js +1 -1
  39. package/dist/contexts/PrintContext.js +1 -1
  40. package/dist/contexts/SearchContext.js +1 -1
  41. package/dist/contexts/ThumbnailsContext.js +1 -1
  42. package/dist/floating-ui.react-dom-15b9b819.js +1310 -0
  43. package/dist/index-2e540713.js +23 -0
  44. package/dist/index-353ec0a6.js +172 -0
  45. package/dist/index-5ff5dbd0.js +1675 -0
  46. package/dist/index-71898eb9.js +139 -0
  47. package/dist/main.js +1 -1
  48. package/dist/utils/hooks/useFileDownload.js +1 -1
  49. package/dist/utils/hooks/useLicense.js +71 -62
  50. package/dist/utils/hooks/usePaginate.js +1 -1
  51. package/dist/utils/hooks/usePrint.js +1 -1
  52. package/dist/utils/hooks/useScrollToPage.js +1 -1
  53. package/dist/utils/hooks/useSearch.js +1 -1
  54. package/dist/utils/hooks/useThumbnail.js +1 -1
  55. package/dist/utils/hooks/useVirtualReactWindow.js +1 -1
  56. package/package.json +1 -1
  57. package/dist/floating-ui.react-dom-88a86594.js +0 -1447
  58. package/dist/index-48ca3f30.js +0 -307
  59. package/dist/index-4ba3ab9a.js +0 -1877
@@ -1,89 +1,91 @@
1
1
  import { jsx as i, jsxs as A, Fragment as Fe } from "react/jsx-runtime";
2
2
  import * as U from "react";
3
- import { useRef as W, useEffect as z, useCallback as L, useState as M, createContext as Ze, useContext as je, useMemo as k, forwardRef as Be, useImperativeHandle as en, createElement as Me, PureComponent as Xn, Component as Jn, memo as Yn } from "react";
3
+ import { useRef as W, useEffect as z, useCallback as L, useState as M, createContext as Ze, useContext as je, useMemo as k, forwardRef as Be, useImperativeHandle as Qt, createElement as Me, PureComponent as Kn, Component as Xn, memo as Jn } from "react";
4
4
  import { ChevronUpIcon as ke } from "./components/icons/ChevronUpIcon.js";
5
5
  import { UIButton as ee } from "./components/ui/Button.js";
6
- import { UIInput as tn } from "./components/ui/Input.js";
6
+ import { UIInput as en } from "./components/ui/Input.js";
7
7
  import { useScrollModeContext as Ee } from "./contexts/ScrollModeContext.js";
8
8
  import { useDocumentContext as Q } from "./contexts/RPDocumentContext.js";
9
9
  import "./contexts/DarkModeContext.js";
10
- import { ViewMode as Ve, ScrollMode as X, AnnotationSubType as Lt, SelectionMode as Qn, ZoomLevel as nt } from "./utils/types.js";
10
+ import { ViewMode as Ve, ScrollMode as X, AnnotationSubType as Rt, SelectionMode as Yn, ZoomLevel as nt } from "./utils/types.js";
11
11
  import { useRotationContext as Ke } from "./contexts/RotationContext.js";
12
- import { useLayerContext as er } from "./contexts/LayerContext.js";
12
+ import { useLayerContext as Qn } from "./contexts/LayerContext.js";
13
13
  import { useZoomContext as Xe } from "./contexts/ZoomContext.js";
14
14
  import { useViewModeContext as Je } from "./contexts/ViewModeContext.js";
15
15
  import { useVirtualScrollContext as Ye } from "./contexts/VirtualScrollContext.js";
16
- import { useVirtualGridContext as nn } from "./contexts/VirtualGridContext.js";
16
+ import { useVirtualGridContext as tn } from "./contexts/VirtualGridContext.js";
17
17
  import { useScrollStateContext as Qe } from "./contexts/ScrollStateContext.js";
18
- import { useSelectionModeContext as tr } from "./contexts/SelectionModeContext.js";
19
- import { useInitialStateContext as nr } from "./contexts/InitialStateContext.js";
20
- import { useFullScreenContext as rr } from "./contexts/FullScreenContext.js";
18
+ import { useSelectionModeContext as er } from "./contexts/SelectionModeContext.js";
19
+ import { useInitialStateContext as tr } from "./contexts/InitialStateContext.js";
20
+ import { useFullScreenContext as nr } from "./contexts/FullScreenContext.js";
21
21
  import "./contexts/FileInputContext.js";
22
22
  import "./contexts/DropFileZoneContext.js";
23
23
  import { renderPage as ht } from "./utils/renderPage.js";
24
- import { highlightMatches as rn, findMatches as or, resetDivs as ir } from "./utils/highlight.js";
25
- import * as on from "pdfjs-dist";
26
- import { PixelsPerInch as ar, AnnotationMode as sr, RenderingCancelledException as cr, AnnotationLayer as lr } from "pdfjs-dist";
24
+ import { highlightMatches as nn, findMatches as rr, resetDivs as or } from "./utils/highlight.js";
25
+ import * as rn from "pdfjs-dist";
26
+ import { PixelsPerInch as ir, AnnotationMode as ar, RenderingCancelledException as sr, AnnotationLayer as cr } from "pdfjs-dist";
27
27
  import { useLayoutContainer as Se } from "./contexts/LayoutContainerContext.js";
28
- import { useDimensionPagesContext as wt } from "./contexts/DimensionPagesContext.js";
28
+ import { useDimensionPagesContext as _t } from "./contexts/DimensionPagesContext.js";
29
29
  import { useLocalizationContext as pe } from "./contexts/LocalizationContext.js";
30
- import { useLoaderContext as an } from "./contexts/LoaderContext.js";
30
+ import { useLoaderContext as on } from "./contexts/LoaderContext.js";
31
31
  import "./components/RPConfig.js";
32
- import { ThumbnailIcon as ur } from "./components/icons/Thumbnail.js";
32
+ import { ThumbnailIcon as lr } from "./components/icons/Thumbnail.js";
33
33
  import { c as oe } from "./clsx-0c6e471a.js";
34
- import { LoaderIcon as bt } from "./components/icons/LoaderIcon.js";
35
- import { useInfiniteScroll as dr } from "./utils/hooks/useInfiniteScroll.js";
36
- import { RPSplitter as pr } from "./components/layout/sidebar/RPSplitter.js";
37
- import { useToolbarComponentContext as ve, ToolbarComponentProvider as hr } from "./contexts/ToolbarComponentContext.js";
38
- import { useIconContext as he, IconProvider as mr } from "./contexts/IconContext.js";
34
+ import { LoaderIcon as wt } from "./components/icons/LoaderIcon.js";
35
+ import { useInfiniteScroll as ur } from "./utils/hooks/useInfiniteScroll.js";
36
+ import { RPSplitter as dr } from "./components/layout/sidebar/RPSplitter.js";
37
+ import { useToolbarComponentContext as ve, ToolbarComponentProvider as pr } from "./contexts/ToolbarComponentContext.js";
38
+ import { useIconContext as he, IconProvider as hr } from "./contexts/IconContext.js";
39
39
  import q from "./components/ui/RPTooltip.js";
40
- import { c as Ce, C as fr } from "./Container-8fea0875.js";
41
- import { WrapperLayout as gr } from "./components/layout/WrapperLayout.js";
42
- import { RPDropFileZone as vr } from "./components/RPDropFileZone.js";
43
- import { useViewportContext as Ie, ViewportProvider as _r } from "./contexts/ViewportContext.js";
40
+ import { c as Ce, C as mr } from "./Container-8fea0875.js";
41
+ import { WrapperLayout as fr } from "./components/layout/WrapperLayout.js";
42
+ import { RPDropFileZone as gr } from "./components/RPDropFileZone.js";
43
+ import { useViewportContext as Ie, ViewportProvider as vr } from "./contexts/ViewportContext.js";
44
44
  import "./contexts/ThemeContext.js";
45
- import { SimpleLinkService as wr } from "./utils/link_service.js";
46
- import { annotationsEvents as br, annotationEventsHandler as Cr, handleClick as Nt, handleAnnotationWidget as Tr, handleAnnotationLink as Pr, bindLayerEvents as Sr, unbindLayerEvents as Et } from "./utils/annotations.js";
47
- import { useWatermark as Ir } from "./utils/hooks/useWatermark.js";
48
- import { useMousePressed as yr } from "./utils/hooks/useMousePressed.js";
49
- import { useGrabScroll as xr } from "./utils/hooks/useGrabScroll.js";
50
- import { usePinch as Rr } from "./utils/hooks/usePinch.js";
45
+ import { SimpleLinkService as _r } from "./utils/link_service.js";
46
+ import { annotationsEvents as wr, annotationEventsHandler as br, handleClick as Lt, handleAnnotationWidget as Cr, handleAnnotationLink as Tr, bindLayerEvents as Pr, unbindLayerEvents as Nt } from "./utils/annotations.js";
47
+ import { useWatermark as Sr } from "./utils/hooks/useWatermark.js";
48
+ import { _ as Ir, U as yr } from "./Popover-aaa4344e.js";
49
+ import { useMousePressed as xr } from "./utils/hooks/useMousePressed.js";
50
+ import { useGrabScroll as Rr } from "./utils/hooks/useGrabScroll.js";
51
+ import { usePinch as Lr } from "./utils/hooks/usePinch.js";
51
52
  import { useDebounce as mt } from "./utils/hooks/useDebounce.js";
52
- import { getThumbnailViewport as Ot } from "./utils/getThumbnailViewport.js";
53
- import { smoothScrollTo as Dt } from "./utils/smoothScrollTo.js";
54
- import { appConsole as Lr } from "./utils/appConsole.js";
55
- import { FileUploadTool as sn } from "./components/layout/toolbar/FileUploadTool.js";
56
- import { DarkModeTool as Nr } from "./components/layout/toolbar/DarkModeTool.js";
57
- import { ThreeDotIcon as Er } from "./components/icons/ThreeDotIcon.js";
58
- import { UIDropDown as cn } from "./components/ui/DropDown.js";
59
- import { c as Or, u as Ct, P as We, b as Ae, d as Tt, i as Dr, k as zr, a as Ar } from "./index-48ca3f30.js";
60
- import { D as Fr, d as rt } from "./floating-ui.react-dom-88a86594.js";
61
- import { a as kr, h as Wr, u as Mr, F as Hr, b as $r, G as Ue } from "./index-4ba3ab9a.js";
62
- import { CloseIcon as ln } from "./components/icons/CloseIcon.js";
63
- import { dateFormatter as zt } from "./utils/dateFormatter.js";
64
- import { PropertyItem as Gr } from "./components/layout/toolbar/PropertyItem.js";
65
- import { useOtherToolContext as Vr, OtherToolProvider as Ur } from "./contexts/OtherToolContext.js";
66
- import { DocumentProperties as qr } from "./components/layout/toolbar/DocumentProperties.js";
67
- import { RotateTool as Zr } from "./components/layout/toolbar/RotateTool.js";
68
- import { ScrollModeTool as jr } from "./components/layout/toolbar/ScrollModeTool.js";
69
- import { MenuSeparator as Pt } from "./components/layout/toolbar/MenuSeparator.js";
70
- import { FileDownloadDefaultIcon as Br } from "./components/icons/FileDownloadDefaultIcon.js";
53
+ import { getThumbnailViewport as Et } from "./utils/getThumbnailViewport.js";
54
+ import { smoothScrollTo as Ot } from "./utils/smoothScrollTo.js";
55
+ import { appConsole as Nr } from "./utils/appConsole.js";
56
+ import { FileUploadTool as an } from "./components/layout/toolbar/FileUploadTool.js";
57
+ import { DarkModeTool as Er } from "./components/layout/toolbar/DarkModeTool.js";
58
+ import { ThreeDotIcon as Or } from "./components/icons/ThreeDotIcon.js";
59
+ import { UIDropDown as sn } from "./components/ui/DropDown.js";
60
+ import { u as bt, P as We, c as Ae, a as Ct, S as Dr } from "./index-353ec0a6.js";
61
+ import { c as zr, e as Ar, b as Fr } from "./index-71898eb9.js";
62
+ import { a as rt } from "./index-2e540713.js";
63
+ import { a as kr, u as Wr, F as Mr, D as Hr, b as $r, G as Ue } from "./index-5ff5dbd0.js";
64
+ import { h as Gr } from "./component-1da194e8.js";
65
+ import { CloseIcon as cn } from "./components/icons/CloseIcon.js";
66
+ import { dateFormatter as Dt } from "./utils/dateFormatter.js";
67
+ import { PropertyItem as Vr } from "./components/layout/toolbar/PropertyItem.js";
68
+ import { useOtherToolContext as Ur, OtherToolProvider as qr } from "./contexts/OtherToolContext.js";
69
+ import { DocumentProperties as Zr } from "./components/layout/toolbar/DocumentProperties.js";
70
+ import { RotateTool as jr } from "./components/layout/toolbar/RotateTool.js";
71
+ import { ScrollModeTool as Br } from "./components/layout/toolbar/ScrollModeTool.js";
72
+ import { MenuSeparator as Tt } from "./components/layout/toolbar/MenuSeparator.js";
73
+ import { FileDownloadDefaultIcon as Kr } from "./components/icons/FileDownloadDefaultIcon.js";
71
74
  import { MenuItem as we } from "./components/layout/toolbar/MenuItem.js";
72
- import { PrintDefaultTool as Kr } from "./components/icons/PrintDefaultIcon.js";
73
- import { FullScreenTool as un } from "./components/layout/toolbar/FullScreenTool.js";
74
- import { GoToDownIcon as dn } from "./components/icons/GoToDownIcon.js";
75
- import { SelectionModeTool as Xr } from "./components/layout/toolbar/SelectionModeTool.js";
76
- import { ZoomInIcon as Jr } from "./components/icons/ZoomInIcon.js";
77
- import { ZoomOutIcon as Yr } from "./components/icons/ZoomOutIcon.js";
78
- import { PAGE_PADDING as At } from "./utils/constants.js";
79
- import { getZoomLevel as Qr } from "./utils/getZoomLevel.js";
80
- import { SearchIcon as eo } from "./components/icons/SearchIcon.js";
81
- import { UICheckbox as Ft } from "./components/ui/Checkbox.js";
82
- import { ClearIcon as to } from "./components/icons/ClearIcon.js";
83
- import { InfoIcon as kt } from "./components/icons/InfoIcon.js";
84
- import { UIPopOver as no } from "./components/ui/Popover.js";
85
- import './assets/RPDefaultLayout.css';const pn = () => {
86
- const { viewMode: t } = Je(), { scrollMode: e } = Ee(), { virtualScrollRef: n, virtualScrollableElementRef: o, pageScrollElementRef: r } = Ye(), { setFocusedPage: a } = se(), s = W(), { columnCount: c } = nn(), { widths: l, heights: u } = wt(), h = W(e), f = W(t), p = W(c);
75
+ import { PrintDefaultTool as Xr } from "./components/icons/PrintDefaultIcon.js";
76
+ import { FullScreenTool as ln } from "./components/layout/toolbar/FullScreenTool.js";
77
+ import { GoToDownIcon as un } from "./components/icons/GoToDownIcon.js";
78
+ import { SelectionModeTool as Jr } from "./components/layout/toolbar/SelectionModeTool.js";
79
+ import { ZoomInIcon as Yr } from "./components/icons/ZoomInIcon.js";
80
+ import { ZoomOutIcon as Qr } from "./components/icons/ZoomOutIcon.js";
81
+ import { PAGE_PADDING as zt } from "./utils/constants.js";
82
+ import { getZoomLevel as eo } from "./utils/getZoomLevel.js";
83
+ import { SearchIcon as to } from "./components/icons/SearchIcon.js";
84
+ import { UICheckbox as At } from "./components/ui/Checkbox.js";
85
+ import { ClearIcon as no } from "./components/icons/ClearIcon.js";
86
+ import { InfoIcon as Ft } from "./components/icons/InfoIcon.js";
87
+ import './assets/RPDefaultLayout.css';const dn = () => {
88
+ const { viewMode: t } = Je(), { scrollMode: e } = Ee(), { virtualScrollRef: n, virtualScrollableElementRef: o, pageScrollElementRef: r } = Ye(), { setFocusedPage: a } = se(), s = W(), { columnCount: c } = tn(), { widths: l, heights: u } = _t(), h = W(e), f = W(t), p = W(c);
87
89
  z(() => {
88
90
  n != null && n.scrollToItem && (s.current = n);
89
91
  }, [n]), z(() => {
@@ -106,7 +108,7 @@ import './assets/RPDefaultLayout.css';const pn = () => {
106
108
  }), g();
107
109
  });
108
110
  },
109
- [r, l, Dt]
111
+ [r, l, Ot]
110
112
  );
111
113
  return z(() => {
112
114
  h.current = e, f.current = t;
@@ -159,13 +161,13 @@ import './assets/RPDefaultLayout.css';const pn = () => {
159
161
  c,
160
162
  v,
161
163
  a,
162
- Dt,
164
+ Ot,
163
165
  u,
164
166
  l
165
167
  ]
166
168
  ) };
167
169
  }, ro = (t = 1) => {
168
- const [e, n] = M(t), [o, r] = M(0), { scrollToPage: a } = pn(), s = W(1), { isScrolling: c } = Qe(), { viewMode: l } = Je(), { scrollMode: u } = Ee(), h = mt(e, 100), f = L(
170
+ const [e, n] = M(t), [o, r] = M(0), { scrollToPage: a } = dn(), s = W(1), { isScrolling: c } = Qe(), { viewMode: l } = Je(), { scrollMode: u } = Ee(), h = mt(e, 100), f = L(
169
171
  (w) => {
170
172
  if (!/^[0-9]*$/g.test(w.toString()) || !w)
171
173
  return { success: !1, currentPage: s.current };
@@ -197,7 +199,7 @@ import './assets/RPDefaultLayout.css';const pn = () => {
197
199
  prevPage: _,
198
200
  goToPage: v
199
201
  };
200
- }, hn = Ze({
202
+ }, pn = Ze({
201
203
  focusedPage: 0,
202
204
  setFocusedPage: (t) => {
203
205
  },
@@ -210,14 +212,14 @@ import './assets/RPDefaultLayout.css';const pn = () => {
210
212
  nextPage: () => {
211
213
  }
212
214
  }), se = () => {
213
- const t = je(hn);
214
- return typeof (t == null ? void 0 : t.focusedPage) > "u" && Lr.error("Please use this hooks inside children component of RPProvider"), t;
215
- }, rs = ({ children: t }) => {
215
+ const t = je(pn);
216
+ return typeof (t == null ? void 0 : t.focusedPage) > "u" && Nr.error("Please use this hooks inside children component of RPProvider"), t;
217
+ }, is = ({ children: t }) => {
216
218
  const { pdf: e } = Q(), { focusedPage: n, totalPages: o, setFocusedPage: r, setTotalPages: a, goToPage: s, nextPage: c, prevPage: l } = ro();
217
219
  return z(() => {
218
220
  e != null && e.numPages && a(e.numPages);
219
221
  }, [e, a]), /* @__PURE__ */ i(
220
- hn.Provider,
222
+ pn.Provider,
221
223
  {
222
224
  value: {
223
225
  focusedPage: n,
@@ -266,7 +268,7 @@ const oo = () => {
266
268
  p();
267
269
  return;
268
270
  }
269
- const x = C / ar.PDF;
271
+ const x = C / ir.PDF;
270
272
  P.width = Math.floor(T.width * x), P.height = Math.floor(T.height * x);
271
273
  const D = P.getContext("2d");
272
274
  D.save(), D.fillStyle = "rgb(255, 255, 255)", D.fillRect(0, 0, P.width, P.height), D.restore();
@@ -283,14 +285,14 @@ const oo = () => {
283
285
  transform: [x, 0, 0, x, 0, 0],
284
286
  viewport: R.getViewport({ scale: 1, rotation: T.rotation }),
285
287
  intent: "print",
286
- annotationMode: sr.ENABLE_STORAGE,
288
+ annotationMode: ar.ENABLE_STORAGE,
287
289
  optionalContentConfigPromise: S,
288
290
  printAnnotationStorage: F
289
291
  };
290
292
  try {
291
293
  return R.render(N).promise;
292
294
  } catch (y) {
293
- throw y instanceof cr || console.error(y), y;
295
+ throw y instanceof sr || console.error(y), y;
294
296
  }
295
297
  }, b = L(() => {
296
298
  const P = window.print;
@@ -392,7 +394,7 @@ const oo = () => {
392
394
  isError: s,
393
395
  error: l
394
396
  };
395
- }, mn = Ze({
397
+ }, hn = Ze({
396
398
  print: () => {
397
399
  },
398
400
  cancel: () => {
@@ -409,7 +411,7 @@ const oo = () => {
409
411
  console.error("Error in setOnError callback:", e);
410
412
  }
411
413
  }
412
- }), os = ({ children: t }) => {
414
+ }), as = ({ children: t }) => {
413
415
  const [e, n] = M(null), [o, r] = M(null), { print: a, cancel: s, progress: c, isComplete: l, isError: u, error: h } = oo(), f = L((w) => {
414
416
  w && typeof w == "function" && r(() => w);
415
417
  }, []), p = (w) => {
@@ -439,9 +441,9 @@ const oo = () => {
439
441
  setOnError: p,
440
442
  progress: c
441
443
  };
442
- return /* @__PURE__ */ i(mn.Provider, { value: b, children: t });
444
+ return /* @__PURE__ */ i(hn.Provider, { value: b, children: t });
443
445
  }, et = () => {
444
- const t = je(mn);
446
+ const t = je(hn);
445
447
  if (!t)
446
448
  throw new Error("usePrintContext must be used within a PrintProvider");
447
449
  return t;
@@ -451,7 +453,7 @@ const oo = () => {
451
453
  if (!n.size)
452
454
  return;
453
455
  const l = Array.from(n.values()).slice(0, c).map((f) => {
454
- const { thumbnailViewport: p, scale: v } = Ot(f.page, o);
456
+ const { thumbnailViewport: p, scale: v } = Et(f.page, o);
455
457
  return {
456
458
  scale: v,
457
459
  page: f.page,
@@ -506,7 +508,7 @@ const oo = () => {
506
508
  }));
507
509
  const u = document.createElement("canvas");
508
510
  ht(l.page, u, { scale: l.thumbnailScale, rotate: o }).promise.then(() => {
509
- const h = u.toDataURL(), { thumbnailViewport: f, scale: p } = Ot(l.page, o);
511
+ const h = u.toDataURL(), { thumbnailViewport: f, scale: p } = Et(l.page, o);
510
512
  return {
511
513
  scale: p,
512
514
  thumbnailSrc: h,
@@ -521,7 +523,7 @@ const oo = () => {
521
523
  [n, o]
522
524
  );
523
525
  return { thumbnailPages: t, addPage: s, addToPage: a, thumbnailLength: r };
524
- }, fn = Ze({
526
+ }, mn = Ze({
525
527
  thumbnailPages: {},
526
528
  addPage: (t) => {
527
529
  },
@@ -531,20 +533,20 @@ const oo = () => {
531
533
  setActive: (t) => {
532
534
  },
533
535
  active: !1
534
- }), gn = () => je(fn), is = ({
536
+ }), fn = () => je(mn), ss = ({
535
537
  children: t,
536
538
  initialThumbnailsVisible: e
537
539
  }) => {
538
540
  const { thumbnailPages: n, addPage: o, addToPage: r, thumbnailLength: a } = io(), [s, c] = M(e);
539
541
  return /* @__PURE__ */ i(
540
- fn.Provider,
542
+ mn.Provider,
541
543
  {
542
544
  value: { thumbnailPages: n, addPage: o, addToPage: r, thumbnailLength: a, active: s, setActive: c },
543
545
  children: t
544
546
  }
545
547
  );
546
548
  }, ao = (t = {}, e = "") => {
547
- const [n, o] = M(e), [r, a] = M(!1), { pdf: s, pages: c } = Q(), l = wt(), u = W(!n), { currentZoom: h } = Xe(), [f, p] = M([]), { setFocusedPage: v } = se(), [_, b] = M(0), { pageScrollElementRef: w, virtualScrollableElementRef: g } = Ye(), { scrollMode: m } = Ee(), { pagesRef: P } = Se(), [I, d] = M(null), T = W({}), C = k(() => _ === 0 ? null : f[_ - 1], [_, f]), S = k(() => f.length, [f]);
549
+ const [n, o] = M(e), [r, a] = M(!1), { pdf: s, pages: c } = Q(), l = _t(), u = W(!n), { currentZoom: h } = Xe(), [f, p] = M([]), { setFocusedPage: v } = se(), [_, b] = M(0), { pageScrollElementRef: w, virtualScrollableElementRef: g } = Ye(), { scrollMode: m } = Ee(), { pagesRef: P } = Se(), [I, d] = M(null), T = W({}), C = k(() => _ === 0 ? null : f[_ - 1], [_, f]), S = k(() => f.length, [f]);
548
550
  z(() => {
549
551
  if (!C || !c)
550
552
  return;
@@ -558,12 +560,12 @@ const oo = () => {
558
560
  if (!F)
559
561
  return;
560
562
  const Z = T.current[C.page], J = F.page.getViewport({ scale: 1 });
561
- H = new on.TextLayer({
563
+ H = new rn.TextLayer({
562
564
  viewport: J,
563
565
  textContentSource: Z,
564
566
  container: document.createElement("div")
565
567
  }), H.render().then(() => {
566
- const j = H.textDivs[C.start.idx], [B] = rn([C], Z, H.textDivs), te = l.widths[C.page - 1], le = l.heights[C.page - 1], K = document.createElement("div"), ne = document.createElement("div");
568
+ const j = H.textDivs[C.start.idx], [B] = nn([C], Z, H.textDivs), te = l.widths[C.page - 1], le = l.heights[C.page - 1], K = document.createElement("div"), ne = document.createElement("div");
567
569
  j.style.position = "absolute", j.style.color = "transparent", ne.style.position = "absolute", ne.style.top = "0", ne.style.setProperty("--scale-factor", `${h}`), K.style.position = "relative", K.style.width = `${te}px`, K.style.height = `${le}px`, K.style.zIndex = "-1", K.appendChild(j), ne.appendChild(K), P.prepend(ne);
568
570
  const ue = B.element.getBoundingClientRect(), ye = ne.getBoundingClientRect(), me = ue.top - ye.top, be = ue.left - ye.left, fe = E + me - N + ue.height / 2, ae = G + be - y + ue.width / 2, Oe = {
569
571
  left: Math.max(ae, 0),
@@ -607,7 +609,7 @@ const oo = () => {
607
609
  u.current = !1, a(!0), p([]), b(0), D(s).then((R) => {
608
610
  T.current = R;
609
611
  const N = Object.keys(R).reduce((y, E) => {
610
- const G = or(
612
+ const G = rr(
611
613
  [n],
612
614
  R[E],
613
615
  Number(E) - 1,
@@ -632,7 +634,7 @@ const oo = () => {
632
634
  currentMatchElement: I,
633
635
  setCurrentMatchElement: d
634
636
  };
635
- }, vn = Ze({
637
+ }, gn = Ze({
636
638
  search: "",
637
639
  setSearch: (t) => {
638
640
  },
@@ -650,7 +652,7 @@ const oo = () => {
650
652
  currentMatchElement: null,
651
653
  setCurrentMatchElement: (t) => {
652
654
  }
653
- }), as = ({
655
+ }), cs = ({
654
656
  children: t,
655
657
  initialSearch: e
656
658
  }) => {
@@ -668,7 +670,7 @@ const oo = () => {
668
670
  setCurrentMatchElement: _
669
671
  } = ao(n, e);
670
672
  return /* @__PURE__ */ i(
671
- vn.Provider,
673
+ gn.Provider,
672
674
  {
673
675
  value: {
674
676
  searchOptions: n,
@@ -688,7 +690,7 @@ const oo = () => {
688
690
  children: t
689
691
  }
690
692
  );
691
- }, _n = () => je(vn), de = {
693
+ }, vn = () => je(gn), de = {
692
694
  "rp-pages": "_rp-pages_1776r_1",
693
695
  "rp-pages-horizontal-scroll": "_rp-pages-horizontal-scroll_1776r_7",
694
696
  "rp-pages-container": "_rp-pages-container_1776r_11",
@@ -727,15 +729,15 @@ const oo = () => {
727
729
  "rp-text-layer": "_rp-text-layer_kwwfn_1",
728
730
  "rp-text-layer-text": "_rp-text-layer-text_kwwfn_9"
729
731
  }, co = (t) => {
730
- const { pageNumber: e } = t, { pages: n } = Q(), o = W(null), { matches: r, currentMatch: a, setCurrentMatchElement: s } = _n(), [c, l] = M(
732
+ const { pageNumber: e } = t, { pages: n } = Q(), o = W(null), { matches: r, currentMatch: a, setCurrentMatchElement: s } = vn(), [c, l] = M(
731
733
  []
732
734
  ), u = W(), h = W(), f = W(), p = k(() => r.filter((_) => _.pageIndex === e - 1), [r, e]), v = L(
733
735
  (_, b, w = !1) => {
734
- if (w && ir(_, b), !p.length) {
736
+ if (w && or(_, b), !p.length) {
735
737
  f.current = void 0, l([]);
736
738
  return;
737
739
  }
738
- const g = rn(p, _, b);
740
+ const g = nn(p, _, b);
739
741
  l(g);
740
742
  },
741
743
  [p]
@@ -756,7 +758,7 @@ const oo = () => {
756
758
  if (!(!_ || !o.current))
757
759
  return u.current && u.current.cancel(), _.page.getTextContent().then((b) => {
758
760
  const w = _.page.getViewport({ scale: 1 });
759
- return u.current = new on.TextLayer({
761
+ return u.current = new rn.TextLayer({
760
762
  viewport: w,
761
763
  textContentSource: b,
762
764
  container: o.current
@@ -793,7 +795,7 @@ const oo = () => {
793
795
  };
794
796
  let uo = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
795
797
  const po = (t) => {
796
- const { pageNumber: e } = t, n = W(null), { pages: o, pdf: r } = Q(), a = W(), [s, c] = M(), { setFocusedPage: l, goToPage: u } = se(), { scrollMode: h } = Ee(), { print: f } = et(), { download: p } = Fn(), v = k(() => o.get(e), [o, e]), _ = k(() => v == null ? void 0 : v.page.getViewport(), [v]);
798
+ const { pageNumber: e } = t, n = W(null), { pages: o, pdf: r } = Q(), a = W(), [s, c] = M(), { setFocusedPage: l, goToPage: u } = se(), { scrollMode: h } = Ee(), { print: f } = et(), { download: p } = An(), v = k(() => o.get(e), [o, e]), _ = k(() => v == null ? void 0 : v.page.getViewport(), [v]);
797
799
  z(() => {
798
800
  a.current && (a.current.div.replaceChildren(), a.current = void 0);
799
801
  }, [r]), z(() => {
@@ -803,10 +805,10 @@ const po = (t) => {
803
805
  }, [v]);
804
806
  const b = L(
805
807
  (w) => {
806
- !s || !r || (br(w), Cr(w, r, s).then((g) => {
808
+ !s || !r || (wr(w), br(w, r, s).then((g) => {
807
809
  var m, P;
808
810
  ((m = g == null ? void 0 : g.data) == null ? void 0 : m.action) === "Print" ? f() : ((P = g == null ? void 0 : g.data) == null ? void 0 : P.action) === "SaveAs" && p();
809
- }), h === X.PAGE_SCROLLING ? Nt(w, s, r, (g) => l(g.pageIndex + 1)) : Nt(w, s, r, (g) => u(g.pageIndex + 1)));
811
+ }), h === X.PAGE_SCROLLING ? Lt(w, s, r, (g) => l(g.pageIndex + 1)) : Lt(w, s, r, (g) => u(g.pageIndex + 1)));
810
812
  },
811
813
  [r, s, u, l, h, f, p]
812
814
  );
@@ -824,17 +826,17 @@ const po = (t) => {
824
826
  for (const I of s) {
825
827
  const { annotationType: d } = I;
826
828
  switch (d) {
827
- case Lt.Link:
828
- Pr(I);
829
+ case Rt.Link:
830
+ Tr(I);
829
831
  break;
830
- case Lt.Widget:
831
- Tr(I, w, g);
832
+ case Rt.Widget:
833
+ Cr(I, w, g);
832
834
  break;
833
835
  }
834
836
  }
835
837
  const m = new AbortController();
836
838
  return (async () => {
837
- a.current && (a.current.div.replaceChildren(), a.current = void 0), n.current && (n.current.innerText = ""), a.current = new lr({
839
+ a.current && (a.current.div.replaceChildren(), a.current = void 0), n.current && (n.current.innerText = ""), a.current = new cr({
838
840
  div: n.current,
839
841
  accessibilityManager: void 0,
840
842
  annotationCanvasMap: void 0,
@@ -842,7 +844,7 @@ const po = (t) => {
842
844
  structTreeLayer: null,
843
845
  page: v.page,
844
846
  viewport: w.clone({ dontFlip: !0 })
845
- }), n.current && Et(n.current, b);
847
+ }), n.current && Nt(n.current, b);
846
848
  const I = await (r == null ? void 0 : r.hasJSActions()), d = await (r == null ? void 0 : r.getFieldObjects());
847
849
  if (m.signal.aborted)
848
850
  throw "abort";
@@ -856,17 +858,17 @@ const po = (t) => {
856
858
  page: v.page,
857
859
  imageResourcesPath: uo,
858
860
  renderForms: !0,
859
- linkService: new wr(),
861
+ linkService: new _r(),
860
862
  downloadManager: null,
861
863
  enableScripting: !1
862
864
  });
863
865
  })().then(() => {
864
- n.current && Sr(n.current, b);
866
+ n.current && Pr(n.current, b);
865
867
  }).catch((I) => {
866
868
  if (I !== "abort")
867
869
  throw I;
868
870
  }), () => {
869
- m.abort("clear"), n.current && Et(n.current, b);
871
+ m.abort("clear"), n.current && Nt(n.current, b);
870
872
  };
871
873
  }, [r, s, b]), /* @__PURE__ */ i(
872
874
  "div",
@@ -877,12 +879,12 @@ const po = (t) => {
877
879
  ref: n
878
880
  }
879
881
  );
880
- }, ho = Array.from({ length: 21 }, (t, e) => Number((e * 0.05).toFixed(2))), St = Be((t, e) => {
881
- const { pageNumber: n, style: o, onIntersectRatioChange: r, ...a } = t, { pages: s } = Q(), { rotate: c } = Ke(), { textLayer: l } = er(), { currentZoom: u } = Xe(), h = W(s.get(n)), [f, p] = M(!1), v = W(null), [_, b] = M({
882
+ }, ho = Array.from({ length: 21 }, (t, e) => Number((e * 0.05).toFixed(2))), Pt = Be((t, e) => {
883
+ const { pageNumber: n, style: o, onIntersectRatioChange: r, ...a } = t, { pages: s } = Q(), { rotate: c } = Ke(), { textLayer: l } = Qn(), { currentZoom: u } = Xe(), h = W(s.get(n)), [f, p] = M(!1), v = W(null), [_, b] = M({
882
884
  width: 0,
883
885
  height: 0
884
886
  });
885
- en(e, () => v.current), z(() => {
887
+ Qt(e, () => v.current), z(() => {
886
888
  if (s && (h.current = s.get(n), h.current)) {
887
889
  const P = h.current.page.getViewport({ scale: u, rotation: c });
888
890
  b(P);
@@ -937,7 +939,7 @@ const po = (t) => {
937
939
  className: ot["rp-page"],
938
940
  children: [
939
941
  /* @__PURE__ */ i(so, { onLoading: g, onLoaded: m, pageNumber: n }),
940
- f && /* @__PURE__ */ i("div", { className: ot["rp-loader-wrapper"], children: /* @__PURE__ */ i(bt, {}) }),
942
+ f && /* @__PURE__ */ i("div", { className: ot["rp-loader-wrapper"], children: /* @__PURE__ */ i(wt, {}) }),
941
943
  l && /* @__PURE__ */ i(co, { pageNumber: n }),
942
944
  /* @__PURE__ */ i(po, { pageNumber: n })
943
945
  ]
@@ -946,34 +948,24 @@ const po = (t) => {
946
948
  }
947
949
  );
948
950
  });
949
- function ft() {
950
- return ft = Object.assign ? Object.assign.bind() : function(t) {
951
- for (var e = 1; e < arguments.length; e++) {
952
- var n = arguments[e];
953
- for (var o in n)
954
- ({}).hasOwnProperty.call(n, o) && (t[o] = n[o]);
955
- }
956
- return t;
957
- }, ft.apply(null, arguments);
958
- }
959
- function Wt(t) {
951
+ function kt(t) {
960
952
  if (t === void 0)
961
953
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
962
954
  return t;
963
955
  }
964
- function gt(t, e) {
965
- return gt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, o) {
956
+ function ft(t, e) {
957
+ return ft = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, o) {
966
958
  return n.__proto__ = o, n;
967
- }, gt(t, e);
959
+ }, ft(t, e);
968
960
  }
969
961
  function mo(t, e) {
970
- t.prototype = Object.create(e.prototype), t.prototype.constructor = t, gt(t, e);
962
+ t.prototype = Object.create(e.prototype), t.prototype.constructor = t, ft(t, e);
971
963
  }
972
- var Mt = Number.isNaN || function(e) {
964
+ var Wt = Number.isNaN || function(e) {
973
965
  return typeof e == "number" && e !== e;
974
966
  };
975
967
  function fo(t, e) {
976
- return !!(t === e || Mt(t) && Mt(e));
968
+ return !!(t === e || Wt(t) && Wt(e));
977
969
  }
978
970
  function go(t, e) {
979
971
  if (t.length !== e.length)
@@ -993,7 +985,7 @@ function at(t, e) {
993
985
  }
994
986
  return s;
995
987
  }
996
- function Ht(t, e) {
988
+ function Mt(t, e) {
997
989
  if (t == null)
998
990
  return {};
999
991
  var n = {};
@@ -1005,18 +997,18 @@ function Ht(t, e) {
1005
997
  }
1006
998
  return n;
1007
999
  }
1008
- var vo = typeof performance == "object" && typeof performance.now == "function", $t = vo ? function() {
1000
+ var vo = typeof performance == "object" && typeof performance.now == "function", Ht = vo ? function() {
1009
1001
  return performance.now();
1010
1002
  } : function() {
1011
1003
  return Date.now();
1012
1004
  };
1013
- function Gt(t) {
1005
+ function $t(t) {
1014
1006
  cancelAnimationFrame(t.id);
1015
1007
  }
1016
1008
  function _o(t, e) {
1017
- var n = $t();
1009
+ var n = Ht();
1018
1010
  function o() {
1019
- $t() - n >= e ? t.call(null) : r.id = requestAnimationFrame(o);
1011
+ Ht() - n >= e ? t.call(null) : r.id = requestAnimationFrame(o);
1020
1012
  }
1021
1013
  var r = {
1022
1014
  id: requestAnimationFrame(o)
@@ -1032,7 +1024,7 @@ function wo(t) {
1032
1024
  return st;
1033
1025
  }
1034
1026
  var Re = null;
1035
- function Vt(t) {
1027
+ function Gt(t) {
1036
1028
  if (t === void 0 && (t = !1), Re === null || t) {
1037
1029
  var e = document.createElement("div"), n = e.style;
1038
1030
  n.width = "50px", n.height = "50px", n.overflow = "scroll", n.direction = "rtl";
@@ -1054,8 +1046,8 @@ function To(t) {
1054
1046
  mo(m, g);
1055
1047
  function m(I) {
1056
1048
  var d;
1057
- return d = g.call(this, I) || this, d._instanceProps = _(d.props, Wt(d)), d._resetIsScrollingTimeoutId = null, d._outerRef = void 0, d.state = {
1058
- instance: Wt(d),
1049
+ return d = g.call(this, I) || this, d._instanceProps = _(d.props, kt(d)), d._resetIsScrollingTimeoutId = null, d._outerRef = void 0, d.state = {
1050
+ instance: kt(d),
1059
1051
  isScrolling: !1,
1060
1052
  horizontalScrollDirection: "forward",
1061
1053
  scrollLeft: typeof d.props.initialScrollLeft == "number" ? d.props.initialScrollLeft : 0,
@@ -1106,7 +1098,7 @@ function To(t) {
1106
1098
  return null;
1107
1099
  var y = d.props.direction, E = x;
1108
1100
  if (y === "rtl")
1109
- switch (Vt()) {
1101
+ switch (Gt()) {
1110
1102
  case "negative":
1111
1103
  E = -x;
1112
1104
  break;
@@ -1129,7 +1121,7 @@ function To(t) {
1129
1121
  var C = d.props.outerRef;
1130
1122
  d._outerRef = T, typeof C == "function" ? C(T) : C != null && typeof C == "object" && C.hasOwnProperty("current") && (C.current = T);
1131
1123
  }, d._resetIsScrollingDebounced = function() {
1132
- d._resetIsScrollingTimeoutId !== null && Gt(d._resetIsScrollingTimeoutId), d._resetIsScrollingTimeoutId = _o(d._resetIsScrolling, bo);
1124
+ d._resetIsScrollingTimeoutId !== null && $t(d._resetIsScrollingTimeoutId), d._resetIsScrollingTimeoutId = _o(d._resetIsScrolling, bo);
1133
1125
  }, d._resetIsScrolling = function() {
1134
1126
  d._resetIsScrollingTimeoutId = null, d.setState({
1135
1127
  isScrolling: !1
@@ -1173,7 +1165,7 @@ function To(t) {
1173
1165
  if (O && this._outerRef != null) {
1174
1166
  var x = this._outerRef;
1175
1167
  if (d === "rtl")
1176
- switch (Vt()) {
1168
+ switch (Gt()) {
1177
1169
  case "negative":
1178
1170
  x.scrollLeft = -C;
1179
1171
  break;
@@ -1191,7 +1183,7 @@ function To(t) {
1191
1183
  }
1192
1184
  this._callPropsCallbacks();
1193
1185
  }, P.componentWillUnmount = function() {
1194
- this._resetIsScrollingTimeoutId !== null && Gt(this._resetIsScrollingTimeoutId);
1186
+ this._resetIsScrollingTimeoutId !== null && $t(this._resetIsScrollingTimeoutId);
1195
1187
  }, P.render = function() {
1196
1188
  var d = this.props, T = d.children, C = d.className, S = d.columnCount, O = d.direction, x = d.height, D = d.innerRef, R = d.innerElementType, F = d.innerTagName, N = d.itemData, y = d.itemKey, E = y === void 0 ? Co : y, G = d.outerElementType, H = d.outerTagName, Z = d.rowCount, J = d.style, j = d.useIsScrolling, B = d.width, te = this.state.isScrolling, le = this._getHorizontalRangeToRender(), K = le[0], ne = le[1], ue = this._getVerticalRangeToRender(), ye = ue[0], me = ue[1], be = [];
1197
1189
  if (S > 0 && Z)
@@ -1214,7 +1206,7 @@ function To(t) {
1214
1206
  className: C,
1215
1207
  onScroll: this._onScroll,
1216
1208
  ref: this._outerRefSetter,
1217
- style: ft({
1209
+ style: Ir({
1218
1210
  position: "relative",
1219
1211
  height: x,
1220
1212
  width: B,
@@ -1255,7 +1247,7 @@ function To(t) {
1255
1247
  var E = p(this.props, N, this._instanceProps), G = v(this.props, E, N, this._instanceProps), H = !R || F === "backward" ? Math.max(1, y) : 1, Z = !R || F === "forward" ? Math.max(1, y) : 1;
1256
1248
  return [Math.max(0, E - H), Math.max(0, Math.min(x - 1, G + Z)), E, G];
1257
1249
  }, m;
1258
- }(Xn), e.defaultProps = {
1250
+ }(Kn), e.defaultProps = {
1259
1251
  direction: "ltr",
1260
1252
  itemData: void 0,
1261
1253
  useIsScrolling: !1
@@ -1278,7 +1270,7 @@ var Po = function(e, n) {
1278
1270
  if (typeof a != "number")
1279
1271
  throw Error('An invalid "height" prop has been specified. Grids must specify a number for height. ' + ('"' + (a === null ? "null" : typeof a) + '" was specified.'));
1280
1272
  }
1281
- }, Ut = 50, wn = function(e, n) {
1273
+ }, Vt = 50, _n = function(e, n) {
1282
1274
  var o = e.rowCount, r = n.rowMetadataMap, a = n.estimatedRowHeight, s = n.lastMeasuredRowIndex, c = 0;
1283
1275
  if (s >= o && (s = o - 1), s >= 0) {
1284
1276
  var l = r[s];
@@ -1286,7 +1278,7 @@ var Po = function(e, n) {
1286
1278
  }
1287
1279
  var u = o - s - 1, h = u * a;
1288
1280
  return c + h;
1289
- }, bn = function(e, n) {
1281
+ }, wn = function(e, n) {
1290
1282
  var o = e.columnCount, r = n.columnMetadataMap, a = n.estimatedColumnWidth, s = n.lastMeasuredColumnIndex, c = 0;
1291
1283
  if (s >= o && (s = o - 1), s >= 0) {
1292
1284
  var l = r[s];
@@ -1312,12 +1304,12 @@ var Po = function(e, n) {
1312
1304
  e === "column" ? r.lastMeasuredColumnIndex = o : r.lastMeasuredRowIndex = o;
1313
1305
  }
1314
1306
  return a[o];
1315
- }, qt = function(e, n, o, r) {
1307
+ }, Ut = function(e, n, o, r) {
1316
1308
  var a, s;
1317
1309
  e === "column" ? (a = o.columnMetadataMap, s = o.lastMeasuredColumnIndex) : (a = o.rowMetadataMap, s = o.lastMeasuredRowIndex);
1318
1310
  var c = s > 0 ? a[s].offset : 0;
1319
- return c >= r ? Cn(e, n, o, s, 0, r) : So(e, n, o, Math.max(0, s), r);
1320
- }, Cn = function(e, n, o, r, a, s) {
1311
+ return c >= r ? bn(e, n, o, s, 0, r) : So(e, n, o, Math.max(0, s), r);
1312
+ }, bn = function(e, n, o, r, a, s) {
1321
1313
  for (; a <= r; ) {
1322
1314
  var c = a + Math.floor((r - a) / 2), l = ge(e, n, c, o).offset;
1323
1315
  if (l === s)
@@ -1328,9 +1320,9 @@ var Po = function(e, n) {
1328
1320
  }, So = function(e, n, o, r, a) {
1329
1321
  for (var s = e === "column" ? n.columnCount : n.rowCount, c = 1; r < s && ge(e, n, r, o).offset < a; )
1330
1322
  r += c, c *= 2;
1331
- return Cn(e, n, o, Math.min(r, s - 1), Math.floor(r / 2), a);
1332
- }, Zt = function(e, n, o, r, a, s, c) {
1333
- var l = e === "column" ? n.width : n.height, u = ge(e, n, o, s), h = e === "column" ? bn(n, s) : wn(n, s), f = Math.max(0, Math.min(h - l, u.offset)), p = Math.max(0, u.offset - l + c + u.size);
1323
+ return bn(e, n, o, Math.min(r, s - 1), Math.floor(r / 2), a);
1324
+ }, qt = function(e, n, o, r, a, s, c) {
1325
+ var l = e === "column" ? n.width : n.height, u = ge(e, n, o, s), h = e === "column" ? wn(n, s) : _n(n, s), f = Math.max(0, Math.min(h - l, u.offset)), p = Math.max(0, u.offset - l + c + u.size);
1334
1326
  switch (r === "smart" && (a >= p - l && a <= f + l ? r = "auto" : r = "center"), r) {
1335
1327
  case "start":
1336
1328
  return f;
@@ -1347,7 +1339,7 @@ var Po = function(e, n) {
1347
1339
  return ge("column", e, n, o).offset;
1348
1340
  },
1349
1341
  getColumnStartIndexForOffset: function(e, n, o) {
1350
- return qt("column", e, o, n);
1342
+ return Ut("column", e, o, n);
1351
1343
  },
1352
1344
  getColumnStopIndexForStartIndex: function(e, n, o, r) {
1353
1345
  for (var a = e.columnCount, s = e.width, c = ge("column", e, n, r), l = o + s, u = c.offset + c.size, h = n; h < a - 1 && u < l; )
@@ -1357,13 +1349,13 @@ var Po = function(e, n) {
1357
1349
  getColumnWidth: function(e, n, o) {
1358
1350
  return o.columnMetadataMap[n].size;
1359
1351
  },
1360
- getEstimatedTotalHeight: wn,
1361
- getEstimatedTotalWidth: bn,
1352
+ getEstimatedTotalHeight: _n,
1353
+ getEstimatedTotalWidth: wn,
1362
1354
  getOffsetForColumnAndAlignment: function(e, n, o, r, a, s) {
1363
- return Zt("column", e, n, o, r, a, s);
1355
+ return qt("column", e, n, o, r, a, s);
1364
1356
  },
1365
1357
  getOffsetForRowAndAlignment: function(e, n, o, r, a, s) {
1366
- return Zt("row", e, n, o, r, a, s);
1358
+ return qt("row", e, n, o, r, a, s);
1367
1359
  },
1368
1360
  getRowOffset: function(e, n, o) {
1369
1361
  return ge("row", e, n, o).offset;
@@ -1372,7 +1364,7 @@ var Po = function(e, n) {
1372
1364
  return o.rowMetadataMap[n].size;
1373
1365
  },
1374
1366
  getRowStartIndexForOffset: function(e, n, o) {
1375
- return qt("row", e, o, n);
1367
+ return Ut("row", e, o, n);
1376
1368
  },
1377
1369
  getRowStopIndexForStartIndex: function(e, n, o, r) {
1378
1370
  for (var a = e.rowCount, s = e.height, c = ge("row", e, n, r), l = o + s, u = c.offset + c.size, h = n; h < a - 1 && u < l; )
@@ -1382,8 +1374,8 @@ var Po = function(e, n) {
1382
1374
  initInstanceProps: function(e, n) {
1383
1375
  var o = e, r = o.estimatedColumnWidth, a = o.estimatedRowHeight, s = {
1384
1376
  columnMetadataMap: {},
1385
- estimatedColumnWidth: r || Ut,
1386
- estimatedRowHeight: a || Ut,
1377
+ estimatedColumnWidth: r || Vt,
1378
+ estimatedRowHeight: a || Vt,
1387
1379
  lastMeasuredColumnIndex: -1,
1388
1380
  lastMeasuredRowIndex: -1,
1389
1381
  rowMetadataMap: {}
@@ -1415,7 +1407,7 @@ var Po = function(e, n) {
1415
1407
  }
1416
1408
  });
1417
1409
  process.env.NODE_ENV;
1418
- function jt(t, e) {
1410
+ function Zt(t, e) {
1419
1411
  for (var n in t)
1420
1412
  if (!(n in e))
1421
1413
  return !0;
@@ -1426,11 +1418,11 @@ function jt(t, e) {
1426
1418
  }
1427
1419
  var yo = ["style"], xo = ["style"];
1428
1420
  function Ro(t, e) {
1429
- var n = t.style, o = Ht(t, yo), r = e.style, a = Ht(e, xo);
1430
- return !jt(n, r) && !jt(o, a);
1421
+ var n = t.style, o = Mt(t, yo), r = e.style, a = Mt(e, xo);
1422
+ return !Zt(n, r) && !Zt(o, a);
1431
1423
  }
1432
1424
  const Lo = () => {
1433
- const { viewMode: t } = Je(), { scrollMode: e } = Ee(), { setColumnCount: n } = nn(), { virtualScrollableElementRef: o } = Ye(), r = wt(), a = L(
1425
+ const { viewMode: t } = Je(), { scrollMode: e } = Ee(), { setColumnCount: n } = tn(), { virtualScrollableElementRef: o } = Ye(), r = _t(), a = L(
1434
1426
  (v) => r.widths[v] || 0,
1435
1427
  [r.widths]
1436
1428
  ), s = L(
@@ -1453,18 +1445,18 @@ const Lo = () => {
1453
1445
  };
1454
1446
  let ie;
1455
1447
  typeof window < "u" ? ie = window : typeof self < "u" ? ie = self : ie = global;
1456
- let vt = null, _t = null;
1457
- const Bt = 20, ct = ie.clearTimeout, Kt = ie.setTimeout, lt = ie.cancelAnimationFrame || ie.mozCancelAnimationFrame || ie.webkitCancelAnimationFrame, Xt = ie.requestAnimationFrame || ie.mozRequestAnimationFrame || ie.webkitRequestAnimationFrame;
1458
- lt == null || Xt == null ? (vt = ct, _t = function(e) {
1459
- return Kt(e, Bt);
1460
- }) : (vt = function([e, n]) {
1448
+ let gt = null, vt = null;
1449
+ const jt = 20, ct = ie.clearTimeout, Bt = ie.setTimeout, lt = ie.cancelAnimationFrame || ie.mozCancelAnimationFrame || ie.webkitCancelAnimationFrame, Kt = ie.requestAnimationFrame || ie.mozRequestAnimationFrame || ie.webkitRequestAnimationFrame;
1450
+ lt == null || Kt == null ? (gt = ct, vt = function(e) {
1451
+ return Bt(e, jt);
1452
+ }) : (gt = function([e, n]) {
1461
1453
  lt(e), ct(n);
1462
- }, _t = function(e) {
1463
- const n = Xt(function() {
1454
+ }, vt = function(e) {
1455
+ const n = Kt(function() {
1464
1456
  ct(o), e();
1465
- }), o = Kt(function() {
1457
+ }), o = Bt(function() {
1466
1458
  lt(n), e();
1467
- }, Bt);
1459
+ }, jt);
1468
1460
  return [n, o];
1469
1461
  });
1470
1462
  function No(t) {
@@ -1480,7 +1472,7 @@ function No(t) {
1480
1472
  if (g.target.className && typeof g.target.className.indexOf == "function" && g.target.className.indexOf("contract-trigger") < 0 && g.target.className.indexOf("expand-trigger") < 0)
1481
1473
  return;
1482
1474
  const m = this;
1483
- s(this), this.__resizeRAF__ && vt(this.__resizeRAF__), this.__resizeRAF__ = _t(function() {
1475
+ s(this), this.__resizeRAF__ && gt(this.__resizeRAF__), this.__resizeRAF__ = vt(function() {
1484
1476
  a(m) && (m.__resizeLast__.width = m.offsetWidth, m.__resizeLast__.height = m.offsetHeight, m.__resizeListeners__.forEach(function(d) {
1485
1477
  d.call(m, g);
1486
1478
  }));
@@ -1539,7 +1531,7 @@ function No(t) {
1539
1531
  }
1540
1532
  };
1541
1533
  }
1542
- class Eo extends Jn {
1534
+ class Eo extends Xn {
1543
1535
  constructor(...e) {
1544
1536
  super(...e), this.state = {
1545
1537
  height: this.props.defaultHeight || 0,
@@ -1645,7 +1637,7 @@ const Oo = ({ widths: t, heights: e }) => {
1645
1637
  r.current = !1;
1646
1638
  }, [n]);
1647
1639
  const c = k(() => s.reduce((l, u) => l + Number(u.width || 0), 0), [s]);
1648
- return /* @__PURE__ */ i("div", { style: { width: c, position: "relative" }, children: a.map((l, u) => /* @__PURE__ */ i(St, { onIntersectRatioChange: () => {
1640
+ return /* @__PURE__ */ i("div", { style: { width: c, position: "relative" }, children: a.map((l, u) => /* @__PURE__ */ i(Pt, { onIntersectRatioChange: () => {
1649
1641
  }, style: s[u], pageNumber: l }, l)) });
1650
1642
  }, Do = ({ widths: t, heights: e }) => {
1651
1643
  const { focusedPage: n } = se(), { isScrolling: o } = Qe(), r = k(() => ({
@@ -1665,7 +1657,7 @@ const Oo = ({ widths: t, heights: e }) => {
1665
1657
  position: "relative"
1666
1658
  },
1667
1659
  children: /* @__PURE__ */ i(
1668
- St,
1660
+ Pt,
1669
1661
  {
1670
1662
  style: r,
1671
1663
  onIntersectRatioChange: () => {
@@ -1676,10 +1668,10 @@ const Oo = ({ widths: t, heights: e }) => {
1676
1668
  )
1677
1669
  }
1678
1670
  );
1679
- }, zo = Yn(({ columnIndex: t, rowIndex: e, data: n, style: o }) => {
1671
+ }, zo = Jn(({ columnIndex: t, rowIndex: e, data: n, style: o }) => {
1680
1672
  const r = t + 1 + e * n.columnCount;
1681
1673
  return /* @__PURE__ */ i(
1682
- St,
1674
+ Pt,
1683
1675
  {
1684
1676
  style: o,
1685
1677
  onIntersectRatioChange: n.handleIntersectRatioChange,
@@ -1687,10 +1679,10 @@ const Oo = ({ widths: t, heights: e }) => {
1687
1679
  },
1688
1680
  r
1689
1681
  );
1690
- }, Ro), ss = () => {
1691
- const { initialPage: t = 1, initialScrollMode: e } = nr(), { pagesRef: n, setPagesRef: o } = Se();
1692
- Ir(n);
1693
- const { scrollToPage: r } = pn(), {
1682
+ }, Ro), ls = () => {
1683
+ const { initialPage: t = 1, initialScrollMode: e } = tr(), { pagesRef: n, setPagesRef: o } = Se();
1684
+ Sr(n);
1685
+ const { scrollToPage: r } = dn(), {
1694
1686
  virtualScrollRef: a,
1695
1687
  getVirtualScrollRef: s,
1696
1688
  getPageScrollElementRef: c,
@@ -1698,12 +1690,12 @@ const Oo = ({ widths: t, heights: e }) => {
1698
1690
  setTotalInnerDimensions: u,
1699
1691
  totalInnerDimensions: h,
1700
1692
  pageScrollElementRef: f
1701
- } = Ye(), p = W(!0), { nextPage: v, prevPage: _, setFocusedPage: b, focusedPage: w } = se(), { scrollMode: g } = Ee(), { viewMode: m } = Je(), P = W(null), { loading: I } = Q(), { LoaderImageComponent: d } = an(), T = W(
1693
+ } = Ye(), p = W(!0), { nextPage: v, prevPage: _, setFocusedPage: b, focusedPage: w } = se(), { scrollMode: g } = Ee(), { viewMode: m } = Je(), P = W(null), { loading: I } = Q(), { LoaderImageComponent: d } = on(), T = W(
1702
1694
  h
1703
1695
  ), C = W({
1704
1696
  viewMode: m,
1705
1697
  scrollMode: g
1706
- }), S = W(!1), O = W(), { isFullScreen: x } = rr(), {
1698
+ }), S = W(!1), O = W(), { isFullScreen: x } = nr(), {
1707
1699
  pageDimension: D,
1708
1700
  rowCount: R,
1709
1701
  rowHeight: F,
@@ -1715,10 +1707,10 @@ const Oo = ({ widths: t, heights: e }) => {
1715
1707
  scrollTop: 0,
1716
1708
  scrollLeft: 0
1717
1709
  });
1718
- Rr(n);
1719
- const { isPressed: K } = yr(), { selectionMode: ne } = tr(), { initializeGrabScroll: ue, resetGrabState: ye } = xr({
1710
+ Lr(n);
1711
+ const { isPressed: K } = xr(), { selectionMode: ne } = er(), { initializeGrabScroll: ue, resetGrabState: ye } = Rr({
1720
1712
  isPressed: K
1721
- }), me = k(() => ne === Qn.HAND, [ne]), be = L(($, V) => {
1713
+ }), me = k(() => ne === Yn.HAND, [ne]), be = L(($, V) => {
1722
1714
  J((Y) => V > -1 ? { ...Y, [$]: Math.round(V * 100) } : (delete Y[$], Y));
1723
1715
  }, []), fe = k(() => ({
1724
1716
  columnCount: N,
@@ -1774,10 +1766,10 @@ const Oo = ({ widths: t, heights: e }) => {
1774
1766
  const V = le.current.scrollTop, Y = le.current.scrollLeft;
1775
1767
  if (H.height && H.width) {
1776
1768
  S.current = !0;
1777
- const { height: _e, width: xe } = H, { height: Un, width: qn } = T.current, Zn = V / Un * _e, jn = Y / qn * xe, Bn = Math.min(Zn, _e) || 0, Kn = Math.min(jn, xe) || 0;
1769
+ const { height: _e, width: xe } = H, { height: Vn, width: Un } = T.current, qn = V / Vn * _e, Zn = Y / Un * xe, jn = Math.min(qn, _e) || 0, Bn = Math.min(Zn, xe) || 0;
1778
1770
  a == null || a.scrollTo({
1779
- scrollTop: Bn,
1780
- scrollLeft: Kn
1771
+ scrollTop: jn,
1772
+ scrollLeft: Bn
1781
1773
  }), T.current = {
1782
1774
  height: H.height,
1783
1775
  width: H.width
@@ -1799,7 +1791,7 @@ const Oo = ({ widths: t, heights: e }) => {
1799
1791
  const tt = k(() => oe(de["rp-pages-container"], {
1800
1792
  [de["rp-cursor-grab"]]: me && !K,
1801
1793
  [de["rp-cursor-grabbing"]]: me && K
1802
- }), [me, K]), Vn = L(
1794
+ }), [me, K]), Gn = L(
1803
1795
  ($) => {
1804
1796
  if (me && $) {
1805
1797
  const V = oe(de["rp-pages"]), Y = document.querySelector(`.${V}`);
@@ -1842,7 +1834,7 @@ const Oo = ({ widths: t, heights: e }) => {
1842
1834
  f,
1843
1835
  b,
1844
1836
  H
1845
- ]), /* @__PURE__ */ i("div", { ref: o, tabIndex: -1, className: tt, children: /* @__PURE__ */ i(Eo, { style: { minHeight: "50px" }, children: ({ width: $, height: V }) => /* @__PURE__ */ i("div", { "data-rp": "pages", ref: Vn, style: { width: $, height: V }, children: g === X.PAGE_SCROLLING ? /* @__PURE__ */ i(
1837
+ ]), /* @__PURE__ */ i("div", { ref: o, tabIndex: -1, className: tt, children: /* @__PURE__ */ i(Eo, { style: { minHeight: "50px" }, children: ({ width: $, height: V }) => /* @__PURE__ */ i("div", { "data-rp": "pages", ref: Gn, style: { width: $, height: V }, children: g === X.PAGE_SCROLLING ? /* @__PURE__ */ i(
1846
1838
  "div",
1847
1839
  {
1848
1840
  ref: c,
@@ -1942,7 +1934,7 @@ const Oo = ({ widths: t, heights: e }) => {
1942
1934
  }
1943
1935
  ) }),
1944
1936
  /* @__PURE__ */ i(q, { content: h == null ? void 0 : h.currentPageTooltip, children: /* @__PURE__ */ i(
1945
- tn,
1937
+ en,
1946
1938
  {
1947
1939
  onKeyDown: _,
1948
1940
  onBlur: v,
@@ -1966,7 +1958,7 @@ const Oo = ({ widths: t, heights: e }) => {
1966
1958
  ) })
1967
1959
  ] }) : null;
1968
1960
  };
1969
- var It = "Dialog", [Tn, cs] = Or(It), [Wo, ce] = Tn(It), Pn = (t) => {
1961
+ var St = "Dialog", [Cn, us] = zr(St), [Wo, ce] = Cn(St), Tn = (t) => {
1970
1962
  const {
1971
1963
  __scopeDialog: e,
1972
1964
  children: n,
@@ -1974,7 +1966,7 @@ var It = "Dialog", [Tn, cs] = Or(It), [Wo, ce] = Tn(It), Pn = (t) => {
1974
1966
  defaultOpen: r,
1975
1967
  onOpenChange: a,
1976
1968
  modal: s = !0
1977
- } = t, c = U.useRef(null), l = U.useRef(null), [u = !1, h] = Ar({
1969
+ } = t, c = U.useRef(null), l = U.useRef(null), [u = !1, h] = Fr({
1978
1970
  prop: o,
1979
1971
  defaultProp: r,
1980
1972
  onChange: a
@@ -1996,10 +1988,10 @@ var It = "Dialog", [Tn, cs] = Or(It), [Wo, ce] = Tn(It), Pn = (t) => {
1996
1988
  }
1997
1989
  );
1998
1990
  };
1999
- Pn.displayName = It;
2000
- var Sn = "DialogTrigger", Mo = U.forwardRef(
1991
+ Tn.displayName = St;
1992
+ var Pn = "DialogTrigger", Mo = U.forwardRef(
2001
1993
  (t, e) => {
2002
- const { __scopeDialog: n, ...o } = t, r = ce(Sn, n), a = Ct(e, r.triggerRef);
1994
+ const { __scopeDialog: n, ...o } = t, r = ce(Pn, n), a = bt(e, r.triggerRef);
2003
1995
  return /* @__PURE__ */ i(
2004
1996
  We.button,
2005
1997
  {
@@ -2007,7 +1999,7 @@ var Sn = "DialogTrigger", Mo = U.forwardRef(
2007
1999
  "aria-haspopup": "dialog",
2008
2000
  "aria-expanded": r.open,
2009
2001
  "aria-controls": r.contentId,
2010
- "data-state": Rt(r.open),
2002
+ "data-state": xt(r.open),
2011
2003
  ...o,
2012
2004
  ref: a,
2013
2005
  onClick: Ae(t.onClick, r.onOpenToggle)
@@ -2015,21 +2007,21 @@ var Sn = "DialogTrigger", Mo = U.forwardRef(
2015
2007
  );
2016
2008
  }
2017
2009
  );
2018
- Mo.displayName = Sn;
2019
- var yt = "DialogPortal", [Ho, In] = Tn(yt, {
2010
+ Mo.displayName = Pn;
2011
+ var It = "DialogPortal", [Ho, Sn] = Cn(It, {
2020
2012
  forceMount: void 0
2021
- }), yn = (t) => {
2022
- const { __scopeDialog: e, forceMount: n, children: o, container: r } = t, a = ce(yt, e);
2023
- return /* @__PURE__ */ i(Ho, { scope: e, forceMount: n, children: U.Children.map(o, (s) => /* @__PURE__ */ i(Tt, { present: n || a.open, children: /* @__PURE__ */ i($r, { asChild: !0, container: r, children: s }) })) });
2013
+ }), In = (t) => {
2014
+ const { __scopeDialog: e, forceMount: n, children: o, container: r } = t, a = ce(It, e);
2015
+ return /* @__PURE__ */ i(Ho, { scope: e, forceMount: n, children: U.Children.map(o, (s) => /* @__PURE__ */ i(Ct, { present: n || a.open, children: /* @__PURE__ */ i($r, { asChild: !0, container: r, children: s }) })) });
2024
2016
  };
2025
- yn.displayName = yt;
2026
- var qe = "DialogOverlay", xn = U.forwardRef(
2017
+ In.displayName = It;
2018
+ var qe = "DialogOverlay", yn = U.forwardRef(
2027
2019
  (t, e) => {
2028
- const n = In(qe, t.__scopeDialog), { forceMount: o = n.forceMount, ...r } = t, a = ce(qe, t.__scopeDialog);
2029
- return a.modal ? /* @__PURE__ */ i(Tt, { present: o || a.open, children: /* @__PURE__ */ i($o, { ...r, ref: e }) }) : null;
2020
+ const n = Sn(qe, t.__scopeDialog), { forceMount: o = n.forceMount, ...r } = t, a = ce(qe, t.__scopeDialog);
2021
+ return a.modal ? /* @__PURE__ */ i(Ct, { present: o || a.open, children: /* @__PURE__ */ i($o, { ...r, ref: e }) }) : null;
2030
2022
  }
2031
2023
  );
2032
- xn.displayName = qe;
2024
+ yn.displayName = qe;
2033
2025
  var $o = U.forwardRef(
2034
2026
  (t, e) => {
2035
2027
  const { __scopeDialog: n, ...o } = t, r = ce(qe, n);
@@ -2039,7 +2031,7 @@ var $o = U.forwardRef(
2039
2031
  /* @__PURE__ */ i(kr, { as: Dr, allowPinchZoom: !0, shards: [r.contentRef], children: /* @__PURE__ */ i(
2040
2032
  We.div,
2041
2033
  {
2042
- "data-state": Rt(r.open),
2034
+ "data-state": xt(r.open),
2043
2035
  ...o,
2044
2036
  ref: e,
2045
2037
  style: { pointerEvents: "auto", ...o.style }
@@ -2047,22 +2039,22 @@ var $o = U.forwardRef(
2047
2039
  ) })
2048
2040
  );
2049
2041
  }
2050
- ), Pe = "DialogContent", Rn = U.forwardRef(
2042
+ ), Pe = "DialogContent", xn = U.forwardRef(
2051
2043
  (t, e) => {
2052
- const n = In(Pe, t.__scopeDialog), { forceMount: o = n.forceMount, ...r } = t, a = ce(Pe, t.__scopeDialog);
2053
- return /* @__PURE__ */ i(Tt, { present: o || a.open, children: a.modal ? /* @__PURE__ */ i(Go, { ...r, ref: e }) : /* @__PURE__ */ i(Vo, { ...r, ref: e }) });
2044
+ const n = Sn(Pe, t.__scopeDialog), { forceMount: o = n.forceMount, ...r } = t, a = ce(Pe, t.__scopeDialog);
2045
+ return /* @__PURE__ */ i(Ct, { present: o || a.open, children: a.modal ? /* @__PURE__ */ i(Go, { ...r, ref: e }) : /* @__PURE__ */ i(Vo, { ...r, ref: e }) });
2054
2046
  }
2055
2047
  );
2056
- Rn.displayName = Pe;
2048
+ xn.displayName = Pe;
2057
2049
  var Go = U.forwardRef(
2058
2050
  (t, e) => {
2059
- const n = ce(Pe, t.__scopeDialog), o = U.useRef(null), r = Ct(e, n.contentRef, o);
2051
+ const n = ce(Pe, t.__scopeDialog), o = U.useRef(null), r = bt(e, n.contentRef, o);
2060
2052
  return U.useEffect(() => {
2061
2053
  const a = o.current;
2062
2054
  if (a)
2063
- return Wr(a);
2055
+ return Gr(a);
2064
2056
  }, []), /* @__PURE__ */ i(
2065
- Ln,
2057
+ Rn,
2066
2058
  {
2067
2059
  ...t,
2068
2060
  ref: r,
@@ -2087,7 +2079,7 @@ var Go = U.forwardRef(
2087
2079
  (t, e) => {
2088
2080
  const n = ce(Pe, t.__scopeDialog), o = U.useRef(!1), r = U.useRef(!1);
2089
2081
  return /* @__PURE__ */ i(
2090
- Ln,
2082
+ Rn,
2091
2083
  {
2092
2084
  ...t,
2093
2085
  ref: e,
@@ -2106,12 +2098,12 @@ var Go = U.forwardRef(
2106
2098
  }
2107
2099
  );
2108
2100
  }
2109
- ), Ln = U.forwardRef(
2101
+ ), Rn = U.forwardRef(
2110
2102
  (t, e) => {
2111
- const { __scopeDialog: n, trapFocus: o, onOpenAutoFocus: r, onCloseAutoFocus: a, ...s } = t, c = ce(Pe, n), l = U.useRef(null), u = Ct(e, l);
2112
- return Mr(), /* @__PURE__ */ A(Fe, { children: [
2103
+ const { __scopeDialog: n, trapFocus: o, onOpenAutoFocus: r, onCloseAutoFocus: a, ...s } = t, c = ce(Pe, n), l = U.useRef(null), u = bt(e, l);
2104
+ return Wr(), /* @__PURE__ */ A(Fe, { children: [
2113
2105
  /* @__PURE__ */ i(
2114
- Hr,
2106
+ Mr,
2115
2107
  {
2116
2108
  asChild: !0,
2117
2109
  loop: !0,
@@ -2119,13 +2111,13 @@ var Go = U.forwardRef(
2119
2111
  onMountAutoFocus: r,
2120
2112
  onUnmountAutoFocus: a,
2121
2113
  children: /* @__PURE__ */ i(
2122
- Fr,
2114
+ Hr,
2123
2115
  {
2124
2116
  role: "dialog",
2125
2117
  id: c.contentId,
2126
2118
  "aria-describedby": c.descriptionId,
2127
2119
  "aria-labelledby": c.titleId,
2128
- "data-state": Rt(c.open),
2120
+ "data-state": xt(c.open),
2129
2121
  ...s,
2130
2122
  ref: u,
2131
2123
  onDismiss: () => c.onOpenChange(!1)
@@ -2139,23 +2131,23 @@ var Go = U.forwardRef(
2139
2131
  ] })
2140
2132
  ] });
2141
2133
  }
2142
- ), xt = "DialogTitle", Nn = U.forwardRef(
2134
+ ), yt = "DialogTitle", Ln = U.forwardRef(
2143
2135
  (t, e) => {
2144
- const { __scopeDialog: n, ...o } = t, r = ce(xt, n);
2136
+ const { __scopeDialog: n, ...o } = t, r = ce(yt, n);
2145
2137
  return /* @__PURE__ */ i(We.h2, { id: r.titleId, ...o, ref: e });
2146
2138
  }
2147
2139
  );
2148
- Nn.displayName = xt;
2149
- var En = "DialogDescription", Uo = U.forwardRef(
2140
+ Ln.displayName = yt;
2141
+ var Nn = "DialogDescription", Uo = U.forwardRef(
2150
2142
  (t, e) => {
2151
- const { __scopeDialog: n, ...o } = t, r = ce(En, n);
2143
+ const { __scopeDialog: n, ...o } = t, r = ce(Nn, n);
2152
2144
  return /* @__PURE__ */ i(We.p, { id: r.descriptionId, ...o, ref: e });
2153
2145
  }
2154
2146
  );
2155
- Uo.displayName = En;
2156
- var On = "DialogClose", Dn = U.forwardRef(
2147
+ Uo.displayName = Nn;
2148
+ var En = "DialogClose", On = U.forwardRef(
2157
2149
  (t, e) => {
2158
- const { __scopeDialog: n, ...o } = t, r = ce(On, n);
2150
+ const { __scopeDialog: n, ...o } = t, r = ce(En, n);
2159
2151
  return /* @__PURE__ */ i(
2160
2152
  We.button,
2161
2153
  {
@@ -2167,16 +2159,16 @@ var On = "DialogClose", Dn = U.forwardRef(
2167
2159
  );
2168
2160
  }
2169
2161
  );
2170
- Dn.displayName = On;
2171
- function Rt(t) {
2162
+ On.displayName = En;
2163
+ function xt(t) {
2172
2164
  return t ? "open" : "closed";
2173
2165
  }
2174
- var zn = "DialogTitleWarning", [ls, An] = zr(zn, {
2166
+ var Dn = "DialogTitleWarning", [ds, zn] = Ar(Dn, {
2175
2167
  contentName: Pe,
2176
- titleName: xt,
2168
+ titleName: yt,
2177
2169
  docsSlug: "dialog"
2178
2170
  }), qo = ({ titleId: t }) => {
2179
- const e = An(zn), n = `\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
2171
+ const e = zn(Dn), n = `\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
2180
2172
 
2181
2173
  If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
2182
2174
 
@@ -2185,13 +2177,13 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
2185
2177
  t && (document.getElementById(t) || console.error(n));
2186
2178
  }, [n, t]), null;
2187
2179
  }, Zo = "DialogDescriptionWarning", jo = ({ contentRef: t, descriptionId: e }) => {
2188
- const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${An(Zo).contentName}}.`;
2180
+ const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${zn(Zo).contentName}}.`;
2189
2181
  return U.useEffect(() => {
2190
2182
  var a;
2191
2183
  const r = (a = t.current) == null ? void 0 : a.getAttribute("aria-describedby");
2192
2184
  e && r && (document.getElementById(e) || console.warn(o));
2193
2185
  }, [o, t, e]), null;
2194
- }, Bo = Pn, Ko = yn, Xo = xn, Jo = Rn, Yo = Nn, Qo = Dn;
2186
+ }, Bo = Tn, Ko = In, Xo = yn, Jo = xn, Yo = Ln, Qo = On;
2195
2187
  const Te = {
2196
2188
  "rp-dialog-wrapper": "_rp-dialog-wrapper_slqo7_1",
2197
2189
  "rp-dialog-overlay": "_rp-dialog-overlay_slqo7_7",
@@ -2201,7 +2193,7 @@ const Te = {
2201
2193
  "rp-dialog-close": "_rp-dialog-close_slqo7_47",
2202
2194
  "rp-properties-divider": "_rp-properties-divider_slqo7_55"
2203
2195
  }, ei = () => {
2204
- const { pdfProperties: t } = Q(), { container: e } = Se(), { activeDocumentProperties: n, setActiveDocumentProperties: o } = Vr(), { localeMessages: r } = pe(), a = k(() => {
2196
+ const { pdfProperties: t } = Q(), { container: e } = Se(), { activeDocumentProperties: n, setActiveDocumentProperties: o } = Ur(), { localeMessages: r } = pe(), a = k(() => {
2205
2197
  if (!t)
2206
2198
  return [];
2207
2199
  const {
@@ -2229,11 +2221,11 @@ const Te = {
2229
2221
  { label: r == null ? void 0 : r.propertiesCreatorLabel, value: p },
2230
2222
  {
2231
2223
  label: r == null ? void 0 : r.propertiesCreateOnLabel,
2232
- value: f ? zt(f) : ""
2224
+ value: f ? Dt(f) : ""
2233
2225
  },
2234
2226
  {
2235
2227
  label: r == null ? void 0 : r.propertiesModifiedOnLabel,
2236
- value: _ ? zt(_) : ""
2228
+ value: _ ? Dt(_) : ""
2237
2229
  },
2238
2230
  { separate: !0 },
2239
2231
  { label: r == null ? void 0 : r.propertiesPDFProducerLabel, value: b },
@@ -2245,8 +2237,8 @@ const Te = {
2245
2237
  /* @__PURE__ */ i(Xo, { className: Te["rp-dialog-overlay"] }),
2246
2238
  /* @__PURE__ */ A(Jo, { className: Te["rp-document-dialog"], children: [
2247
2239
  /* @__PURE__ */ i(Yo, { className: Te["rp-dialog-title"], children: r == null ? void 0 : r.documentPropertiesLabel }),
2248
- /* @__PURE__ */ i("div", { className: Te["rp-document-properties"], children: a.map((s, c) => /* @__PURE__ */ i("div", { children: s.separate ? /* @__PURE__ */ i("div", { className: Te["rp-properties-divider"] }) : /* @__PURE__ */ i(Gr, { label: s.label, value: s.value }) }, c)) }),
2249
- /* @__PURE__ */ i(Qo, { asChild: !0, className: Te["rp-dialog-close"], children: /* @__PURE__ */ i(ln, {}) })
2240
+ /* @__PURE__ */ i("div", { className: Te["rp-document-properties"], children: a.map((s, c) => /* @__PURE__ */ i("div", { children: s.separate ? /* @__PURE__ */ i("div", { className: Te["rp-properties-divider"] }) : /* @__PURE__ */ i(Vr, { label: s.label, value: s.value }) }, c)) }),
2241
+ /* @__PURE__ */ i(Qo, { asChild: !0, className: Te["rp-dialog-close"], children: /* @__PURE__ */ i(cn, {}) })
2250
2242
  ] })
2251
2243
  ] }) }) });
2252
2244
  }, ti = {
@@ -2254,7 +2246,7 @@ const Te = {
2254
2246
  }, ni = (t) => URL.createObjectURL(t), ri = async (t) => {
2255
2247
  const n = await (await fetch(t)).blob();
2256
2248
  return ni(n);
2257
- }, Fn = () => {
2249
+ }, An = () => {
2258
2250
  const { filename: t, pdfSrc: e } = Q();
2259
2251
  return { download: L(async () => {
2260
2252
  if (!t || !e)
@@ -2262,22 +2254,22 @@ const Te = {
2262
2254
  const o = document.createElement("a");
2263
2255
  o.href = await ri(e), o.download = t, document.body.appendChild(o), o.click(), document.body.removeChild(o);
2264
2256
  }, [t, e]) };
2265
- }, kn = () => {
2257
+ }, Fn = () => {
2266
2258
  const { downloadIcon: t } = he();
2267
- return t || /* @__PURE__ */ i(Br, {});
2268
- }, Wn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(q, { className: e, content: n == null ? void 0 : n.downloadFileTooltip, children: t }), oi = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(Wn, { localeMessages: e, children: /* @__PURE__ */ i(ee, { onClick: t, "aria-label": e == null ? void 0 : e.downloadFileTooltip, children: /* @__PURE__ */ i(kn, {}) }) }), ii = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(we, { onClick: t, children: /* @__PURE__ */ A(Wn, { className: "rp-menu-item", localeMessages: e, children: [
2269
- /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(kn, {}) }),
2259
+ return t || /* @__PURE__ */ i(Kr, {});
2260
+ }, kn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(q, { className: e, content: n == null ? void 0 : n.downloadFileTooltip, children: t }), oi = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(kn, { localeMessages: e, children: /* @__PURE__ */ i(ee, { onClick: t, "aria-label": e == null ? void 0 : e.downloadFileTooltip, children: /* @__PURE__ */ i(Fn, {}) }) }), ii = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(we, { onClick: t, children: /* @__PURE__ */ A(kn, { className: "rp-menu-item", localeMessages: e, children: [
2261
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Fn, {}) }),
2270
2262
  e == null ? void 0 : e.downloadFileLabel
2271
- ] }) }), Mn = () => {
2272
- const { download: t } = Fn(), { downloadTool: e = !0 } = ve(), { isSmallScreen: n } = Ie(), { localeMessages: o } = pe();
2263
+ ] }) }), Wn = () => {
2264
+ const { download: t } = An(), { downloadTool: e = !0 } = ve(), { isSmallScreen: n } = Ie(), { localeMessages: o } = pe();
2273
2265
  return e ? n ? /* @__PURE__ */ i(ii, { download: t, localeMessages: o }) : typeof e == "function" ? /* @__PURE__ */ i(e, { download: t }) : e ? /* @__PURE__ */ i(oi, { download: t, localeMessages: o }) : null : null;
2274
- }, Hn = () => {
2266
+ }, Mn = () => {
2275
2267
  const { printIcon: t } = he();
2276
- return t || /* @__PURE__ */ i(Kr, {});
2277
- }, $n = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(q, { className: e, content: n == null ? void 0 : n.printTooltip, children: t }), ai = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i($n, { localeMessages: e, children: /* @__PURE__ */ i(ee, { onClick: t, "aria-label": e == null ? void 0 : e.printTooltip, children: /* @__PURE__ */ i(Hn, {}) }) }), si = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(we, { onClick: t, children: /* @__PURE__ */ A($n, { className: "rp-menu-item", localeMessages: e, children: [
2278
- /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Hn, {}) }),
2268
+ return t || /* @__PURE__ */ i(Xr, {});
2269
+ }, Hn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(q, { className: e, content: n == null ? void 0 : n.printTooltip, children: t }), ai = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(Hn, { localeMessages: e, children: /* @__PURE__ */ i(ee, { onClick: t, "aria-label": e == null ? void 0 : e.printTooltip, children: /* @__PURE__ */ i(Mn, {}) }) }), si = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(we, { onClick: t, children: /* @__PURE__ */ A(Hn, { className: "rp-menu-item", localeMessages: e, children: [
2270
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Mn, {}) }),
2279
2271
  e == null ? void 0 : e.printLabel
2280
- ] }) }), Gn = () => {
2272
+ ] }) }), $n = () => {
2281
2273
  const { print: t, cancel: e, setOnProgress: n, setOnComplete: o, setOnError: r, progress: a } = et(), { printTool: s = !0 } = ve(), { isSmallScreen: c } = Ie(), { localeMessages: l } = pe();
2282
2274
  return s ? c ? /* @__PURE__ */ i(si, { print: t, localeMessages: l }) : typeof s == "function" ? /* @__PURE__ */ i(
2283
2275
  s,
@@ -2294,26 +2286,26 @@ const Te = {
2294
2286
  "rp-go-to-Top": "_rp-go-to-Top_4e0yd_1"
2295
2287
  }, li = () => {
2296
2288
  const { goToFirstPageIcon: t } = he();
2297
- return t || /* @__PURE__ */ i(dn, { className: ci["rp-go-to-Top"] });
2289
+ return t || /* @__PURE__ */ i(un, { className: ci["rp-go-to-Top"] });
2298
2290
  }, ui = () => {
2299
2291
  const { goToLastPageIcon: t } = he();
2300
- return t || /* @__PURE__ */ i(dn, {});
2301
- }, Jt = { width: "100%" }, di = () => {
2292
+ return t || /* @__PURE__ */ i(un, {});
2293
+ }, Xt = { width: "100%" }, di = () => {
2302
2294
  const { goToPage: t, totalPages: e, focusedPage: n } = se(), { jumpNavigationTool: o = !0 } = ve(), { localeMessages: r } = pe(), a = k(() => n === 1, [n]), s = k(() => n === e, [n, e]), c = L(() => {
2303
2295
  t(1);
2304
2296
  }, [t]), l = L(() => {
2305
2297
  t(e);
2306
2298
  }, [t, e]);
2307
2299
  return o ? /* @__PURE__ */ A(Ue, { children: [
2308
- /* @__PURE__ */ i(we, { onClick: c, children: /* @__PURE__ */ i(q, { content: r == null ? void 0 : r.firstPageTooltip, style: Jt, children: /* @__PURE__ */ A("div", { className: "rp-menu-item", "aria-disabled": a, children: [
2300
+ /* @__PURE__ */ i(we, { onClick: c, children: /* @__PURE__ */ i(q, { content: r == null ? void 0 : r.firstPageTooltip, style: Xt, children: /* @__PURE__ */ A("div", { className: "rp-menu-item", "aria-disabled": a, children: [
2309
2301
  /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(li, {}) }),
2310
2302
  /* @__PURE__ */ i("span", { children: r == null ? void 0 : r.firstPageLabel })
2311
2303
  ] }) }) }),
2312
- /* @__PURE__ */ i(we, { onClick: l, children: /* @__PURE__ */ i(q, { content: r == null ? void 0 : r.lastPageTooltip, style: Jt, children: /* @__PURE__ */ A("div", { className: "rp-menu-item", "aria-disabled": s, children: [
2304
+ /* @__PURE__ */ i(we, { onClick: l, children: /* @__PURE__ */ i(q, { content: r == null ? void 0 : r.lastPageTooltip, style: Xt, children: /* @__PURE__ */ A("div", { className: "rp-menu-item", "aria-disabled": s, children: [
2313
2305
  /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(ui, {}) }),
2314
2306
  /* @__PURE__ */ i("span", { children: r == null ? void 0 : r.lastPageLabel })
2315
2307
  ] }) }) }),
2316
- /* @__PURE__ */ i(Pt, {})
2308
+ /* @__PURE__ */ i(Tt, {})
2317
2309
  ] }) : null;
2318
2310
  }, pi = () => {
2319
2311
  const { container: t } = Se(), { isSmallScreen: e } = Ie(), {
@@ -2340,25 +2332,25 @@ const Te = {
2340
2332
  c,
2341
2333
  l,
2342
2334
  e
2343
- ]) ? /* @__PURE__ */ A(Ur, { children: [
2335
+ ]) ? /* @__PURE__ */ A(qr, { children: [
2344
2336
  /* @__PURE__ */ i(
2345
- cn,
2337
+ sn,
2346
2338
  {
2347
2339
  container: t,
2348
- triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(q, { content: f == null ? void 0 : f.moreOptionTooltip, children: /* @__PURE__ */ i(ee, { "aria-label": f == null ? void 0 : f.moreOptionTooltip, children: /* @__PURE__ */ i(Er, {}) }) }) }),
2340
+ triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(q, { content: f == null ? void 0 : f.moreOptionTooltip, children: /* @__PURE__ */ i(ee, { "aria-label": f == null ? void 0 : f.moreOptionTooltip, children: /* @__PURE__ */ i(Or, {}) }) }) }),
2349
2341
  children: /* @__PURE__ */ A("div", { className: ti["rp-other-tool-content"], "data-rp": "moreOptionsDropdown", children: [
2350
2342
  e && /* @__PURE__ */ A(Ue, { children: [
2351
- /* @__PURE__ */ i(sn, {}),
2352
- /* @__PURE__ */ i(Mn, {}),
2353
- /* @__PURE__ */ i(Gn, {}),
2354
- /* @__PURE__ */ i(un, {}),
2355
- /* @__PURE__ */ i(Pt, {})
2343
+ /* @__PURE__ */ i(an, {}),
2344
+ /* @__PURE__ */ i(Wn, {}),
2345
+ /* @__PURE__ */ i($n, {}),
2346
+ /* @__PURE__ */ i(ln, {}),
2347
+ /* @__PURE__ */ i(Tt, {})
2356
2348
  ] }),
2357
2349
  /* @__PURE__ */ i(di, {}),
2358
- /* @__PURE__ */ i(Zr, {}),
2359
- /* @__PURE__ */ i(Xr, {}),
2360
2350
  /* @__PURE__ */ i(jr, {}),
2361
- /* @__PURE__ */ i(qr, {})
2351
+ /* @__PURE__ */ i(Jr, {}),
2352
+ /* @__PURE__ */ i(Br, {}),
2353
+ /* @__PURE__ */ i(Zr, {})
2362
2354
  ] })
2363
2355
  }
2364
2356
  ),
@@ -2367,12 +2359,12 @@ const Te = {
2367
2359
  }, hi = () => {
2368
2360
  const { isSmallScreen: t } = Ie();
2369
2361
  return /* @__PURE__ */ A(Fe, { children: [
2370
- /* @__PURE__ */ i(Nr, {}),
2362
+ /* @__PURE__ */ i(Er, {}),
2371
2363
  !t && /* @__PURE__ */ A(Fe, { children: [
2372
- /* @__PURE__ */ i(sn, {}),
2373
- /* @__PURE__ */ i(Mn, {}),
2374
- /* @__PURE__ */ i(Gn, {}),
2375
- /* @__PURE__ */ i(un, {})
2364
+ /* @__PURE__ */ i(an, {}),
2365
+ /* @__PURE__ */ i(Wn, {}),
2366
+ /* @__PURE__ */ i($n, {}),
2367
+ /* @__PURE__ */ i(ln, {})
2376
2368
  ] }),
2377
2369
  /* @__PURE__ */ i(pi, {})
2378
2370
  ] });
@@ -2384,10 +2376,10 @@ const Te = {
2384
2376
  "rp-zoom-dropdown-content": "_rp-zoom-dropdown-content_cocqs_20"
2385
2377
  }, mi = 25, dt = 1e3, fi = [50, 75, 100, 125, 150, 200, 300, 400], gi = () => {
2386
2378
  const { zoomInIcon: t } = he();
2387
- return t || /* @__PURE__ */ i(Jr, {});
2379
+ return t || /* @__PURE__ */ i(Yr, {});
2388
2380
  }, vi = () => {
2389
2381
  const { zoomOutIcon: t } = he();
2390
- return t || /* @__PURE__ */ i(Yr, {});
2382
+ return t || /* @__PURE__ */ i(Qr, {});
2391
2383
  }, _i = () => {
2392
2384
  const { zoomLevel: t, setZoomLevel: e } = Xe(), { container: n, contentRef: o } = Se(), { zoomTool: r = !0 } = ve(), { focusedPage: a } = se(), { rotate: s } = Ke(), { pages: c } = Q(), { isSmallScreen: l } = Ie(), { localeMessages: u } = pe(), h = L(() => {
2393
2385
  e((g) => {
@@ -2404,7 +2396,7 @@ const Te = {
2404
2396
  return (g = c.get(a)) == null ? void 0 : g.page.getViewport({ scale: 1, rotation: s });
2405
2397
  }, [c, a, s]), b = L(
2406
2398
  (g) => {
2407
- const m = ((_ == null ? void 0 : _.width) || 0) + 2 * At, P = ((_ == null ? void 0 : _.height) || 0) + 2 * At, I = (o == null ? void 0 : o.clientWidth) || 0, d = (o == null ? void 0 : o.clientHeight) || 0, T = Qr(g, I, d, m, P);
2399
+ const m = ((_ == null ? void 0 : _.width) || 0) + 2 * zt, P = ((_ == null ? void 0 : _.height) || 0) + 2 * zt, I = (o == null ? void 0 : o.clientWidth) || 0, d = (o == null ? void 0 : o.clientHeight) || 0, T = eo(g, I, d, m, P);
2408
2400
  e(T);
2409
2401
  },
2410
2402
  [e, _]
@@ -2425,7 +2417,7 @@ const Te = {
2425
2417
  }
2426
2418
  ) }),
2427
2419
  !l && /* @__PURE__ */ i(
2428
- cn,
2420
+ sn,
2429
2421
  {
2430
2422
  container: n,
2431
2423
  triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(q, { content: u == null ? void 0 : u.zoomSelectTooltip, children: /* @__PURE__ */ A(
@@ -2448,7 +2440,7 @@ const Te = {
2448
2440
  /* @__PURE__ */ i(we, { onClick: () => w(nt.PAGE_FIT), children: u == null ? void 0 : u.zoomPageFit }),
2449
2441
  /* @__PURE__ */ i(we, { onClick: () => w(nt.PAGE_WIDTH), children: u == null ? void 0 : u.zoomPageWidth })
2450
2442
  ] }),
2451
- /* @__PURE__ */ i(Pt, {}),
2443
+ /* @__PURE__ */ i(Tt, {}),
2452
2444
  /* @__PURE__ */ i(Ue, { children: fi.map((g) => /* @__PURE__ */ A(we, { onClick: () => w(g), children: [
2453
2445
  g,
2454
2446
  " %"
@@ -2476,9 +2468,9 @@ const Te = {
2476
2468
  "rp-search-tool-input-clear": "_rp-search-tool-input-clear_jvchu_43",
2477
2469
  "rp-search-input": "_rp-search-input_jvchu_57",
2478
2470
  "rp-search-icon-info": "_rp-search-icon-info_jvchu_62"
2479
- }, Yt = () => {
2471
+ }, Jt = () => {
2480
2472
  const { searchIcon: t } = he();
2481
- return t || /* @__PURE__ */ i(eo, {});
2473
+ return t || /* @__PURE__ */ i(to, {});
2482
2474
  }, wi = () => {
2483
2475
  const { container: t } = Se(), [e, n] = M(!1), { pdf: o } = Q(), [r, a] = M(null), {
2484
2476
  searchOptions: s,
@@ -2490,7 +2482,7 @@ const Te = {
2490
2482
  nextMatch: p,
2491
2483
  prevMatch: v,
2492
2484
  search: _
2493
- } = _n(), { searchTool: b = !0 } = ve(), [w, g] = M(_), { localeMessages: m } = pe(), P = L(() => {
2485
+ } = vn(), { searchTool: b = !0 } = ve(), [w, g] = M(_), { localeMessages: m } = pe(), P = L(() => {
2494
2486
  n(!0);
2495
2487
  }, []), I = L(() => {
2496
2488
  u(""), g(""), n(!1);
@@ -2531,34 +2523,34 @@ const Te = {
2531
2523
  return z(() => {
2532
2524
  I();
2533
2525
  }, [o, I]), b ? /* @__PURE__ */ i(Fe, { children: /* @__PURE__ */ i(
2534
- no,
2526
+ yr,
2535
2527
  {
2536
2528
  open: e,
2537
2529
  container: t,
2538
- triggerComponent: /* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchButtonTooltip, children: /* @__PURE__ */ i(ee, { onClick: P, "aria-label": m == null ? void 0 : m.searchButtonTooltip, children: /* @__PURE__ */ i(Yt, {}) }) }),
2530
+ triggerComponent: /* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchButtonTooltip, children: /* @__PURE__ */ i(ee, { onClick: P, "aria-label": m == null ? void 0 : m.searchButtonTooltip, children: /* @__PURE__ */ i(Jt, {}) }) }),
2539
2531
  children: /* @__PURE__ */ A("div", { className: re["rp-search-tool-content"], children: [
2540
2532
  /* @__PURE__ */ A("div", { className: re["rp-search-tool-input-wrapper"], children: [
2541
2533
  /* @__PURE__ */ A("div", { className: re["rp-search-tool-input"], children: [
2542
2534
  /* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchInputTooltip, children: /* @__PURE__ */ i(
2543
- tn,
2535
+ en,
2544
2536
  {
2545
2537
  value: w,
2546
2538
  onKeyDown: C,
2547
2539
  onChange: S,
2548
- icon: /* @__PURE__ */ i(Yt, {}),
2540
+ icon: /* @__PURE__ */ i(Jt, {}),
2549
2541
  placeholder: m == null ? void 0 : m.searchInputPlaceholder,
2550
2542
  className: re["rp-search-input"],
2551
2543
  ref: a,
2552
- children: !!w && /* @__PURE__ */ i("span", { className: re["rp-search-tool-input-clear"], onClick: O, children: /* @__PURE__ */ i(to, {}) })
2544
+ children: !!w && /* @__PURE__ */ i("span", { className: re["rp-search-tool-input-clear"], onClick: O, children: /* @__PURE__ */ i(no, {}) })
2553
2545
  }
2554
2546
  ) }),
2555
- l ? /* @__PURE__ */ i("span", { children: /* @__PURE__ */ i(bt, {}) }) : /* @__PURE__ */ i("span", { children: x })
2547
+ l ? /* @__PURE__ */ i("span", { children: /* @__PURE__ */ i(wt, {}) }) : /* @__PURE__ */ i("span", { children: x })
2556
2548
  ] }),
2557
2549
  /* @__PURE__ */ A("div", { className: re["rp-search-tool-input-checkboxes"], children: [
2558
- /* @__PURE__ */ i(Ft, { name: "matchCase", value: R, onChange: F, children: m == null ? void 0 : m.searchMatchCaseLabel }),
2559
- /* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchMatchCaseTooltip, children: /* @__PURE__ */ i("div", { className: re["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ i(kt, {}) }) }),
2560
- /* @__PURE__ */ i(Ft, { name: "wholeWord", value: D, onChange: N, children: m == null ? void 0 : m.searchWholeWordsLabel }),
2561
- /* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchWholeWordsTooltip, children: /* @__PURE__ */ i("div", { className: re["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ i(kt, {}) }) })
2550
+ /* @__PURE__ */ i(At, { name: "matchCase", value: R, onChange: F, children: m == null ? void 0 : m.searchMatchCaseLabel }),
2551
+ /* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchMatchCaseTooltip, children: /* @__PURE__ */ i("div", { className: re["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ i(Ft, {}) }) }),
2552
+ /* @__PURE__ */ i(At, { name: "wholeWord", value: D, onChange: N, children: m == null ? void 0 : m.searchWholeWordsLabel }),
2553
+ /* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchWholeWordsTooltip, children: /* @__PURE__ */ i("div", { className: re["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ i(Ft, {}) }) })
2562
2554
  ] })
2563
2555
  ] }),
2564
2556
  /* @__PURE__ */ A("div", { className: re["rp-search-tool-controls"], children: [
@@ -2582,7 +2574,7 @@ const Te = {
2582
2574
  {
2583
2575
  onKeyDown: d,
2584
2576
  "aria-label": m == null ? void 0 : m.searchCloseButtonTooltip,
2585
- children: /* @__PURE__ */ i(ln, { onClick: I, className: re["rp-search-tool-input-icon"] })
2577
+ children: /* @__PURE__ */ i(cn, { onClick: I, className: re["rp-search-tool-input-icon"] })
2586
2578
  }
2587
2579
  ) })
2588
2580
  ] })
@@ -2667,29 +2659,29 @@ const Te = {
2667
2659
  width: `${c.width}px`,
2668
2660
  height: `${c.height}px`
2669
2661
  },
2670
- children: /* @__PURE__ */ i(bt, {})
2662
+ children: /* @__PURE__ */ i(wt, {})
2671
2663
  }
2672
2664
  ) }),
2673
2665
  /* @__PURE__ */ i("div", { className: ze["rp-thumbnail-text"], children: n })
2674
2666
  ]
2675
2667
  }
2676
2668
  );
2677
- }, Qt = {
2669
+ }, Yt = {
2678
2670
  "rp-thumbnails-container": "_rp-thumbnails-container_16vqr_1",
2679
2671
  "rp-thumbnails": "_rp-thumbnails_16vqr_1"
2680
2672
  }, Si = 16, Ii = (t, e) => {
2681
2673
  const n = t == null ? void 0 : t.querySelector(`#page-${e}`);
2682
2674
  t && (n != null && n.offsetTop) && (t.scrollTop = (n == null ? void 0 : n.offsetTop) - Si);
2683
2675
  }, yi = Be((t, e) => {
2684
- const { show: n } = t, { focusedPage: o, totalPages: r } = se(), { thumbnailPages: a, addPage: s, thumbnailLength: c, addToPage: l } = gn(), u = W(null), h = W(1);
2685
- en(e, () => u.current);
2676
+ const { show: n } = t, { focusedPage: o, totalPages: r } = se(), { thumbnailPages: a, addPage: s, thumbnailLength: c, addToPage: l } = fn(), u = W(null), h = W(1);
2677
+ Qt(e, () => u.current);
2686
2678
  const f = k(() => Object.values(a), [a]), p = L(() => {
2687
2679
  const v = c + 1;
2688
2680
  v <= r && s(v);
2689
2681
  }, [s, r, c]);
2690
2682
  return z(() => {
2691
2683
  o > c ? l(o) : n && h.current !== o && (Ii(u.current, o), h.current = o);
2692
- }, [o, c, l, n, f]), dr(u.current, p), /* @__PURE__ */ i("div", { ref: u, className: Qt["rp-thumbnails-container"], children: /* @__PURE__ */ i("div", { className: Qt["rp-thumbnails"], children: n ? f.map((v, _) => {
2684
+ }, [o, c, l, n, f]), ur(u.current, p), /* @__PURE__ */ i("div", { ref: u, className: Yt["rp-thumbnails-container"], children: /* @__PURE__ */ i("div", { className: Yt["rp-thumbnails"], children: n ? f.map((v, _) => {
2693
2685
  var b, w;
2694
2686
  return /* @__PURE__ */ i(
2695
2687
  Pi,
@@ -2705,9 +2697,9 @@ const Te = {
2705
2697
  }) : null }) });
2706
2698
  }), xi = () => {
2707
2699
  const { thumbnailIcon: t } = he();
2708
- return t || /* @__PURE__ */ i(ur, {});
2700
+ return t || /* @__PURE__ */ i(lr, {});
2709
2701
  }, Ri = () => {
2710
- const { active: t, setActive: e } = gn(), [n, o] = M(200), r = W(null), { thumbnailTool: a } = ve(), { localeMessages: s } = pe(), c = L(() => {
2702
+ const { active: t, setActive: e } = fn(), [n, o] = M(200), r = W(null), { thumbnailTool: a } = ve(), { localeMessages: s } = pe(), c = L(() => {
2711
2703
  e((u) => !u);
2712
2704
  }, []), l = k(() => typeof a != "boolean" && a ? /* @__PURE__ */ i(a, { onClick: c, active: t }) : a ? /* @__PURE__ */ i(q, { content: s == null ? void 0 : s.thumbnailTooltip, children: /* @__PURE__ */ i(
2713
2705
  ee,
@@ -2728,24 +2720,24 @@ const Te = {
2728
2720
  /* @__PURE__ */ i("div", { className: pt["rp-sidebar-content"], children: l }),
2729
2721
  /* @__PURE__ */ A("div", { "data-rp": "thumbnailSidebar", hidden: !t, className: pt["rp-thumbnails-wrapper"], children: [
2730
2722
  /* @__PURE__ */ i(yi, { show: t, ref: r }),
2731
- /* @__PURE__ */ i(pr, { onWidthChange: o, thumbnailRef: r })
2723
+ /* @__PURE__ */ i(dr, { onWidthChange: o, thumbnailRef: r })
2732
2724
  ] })
2733
2725
  ]
2734
2726
  }
2735
2727
  );
2736
- }, us = Be((t, e) => {
2737
- const { children: n, slots: o, icons: r, style: a, className: s, mobileWidth: c, onLoaded: l, cleanupOnLoaded: u } = t, [h, f] = M(null), { setContainer: p, setContentRef: v } = Se(), { loading: _ } = Q(), { LoaderImageComponent: b } = an();
2728
+ }, ps = Be((t, e) => {
2729
+ const { children: n, slots: o, icons: r, style: a, className: s, mobileWidth: c, onLoaded: l, cleanupOnLoaded: u } = t, [h, f] = M(null), { setContainer: p, setContentRef: v } = Se(), { loading: _ } = Q(), { LoaderImageComponent: b } = on();
2738
2730
  return z(() => (l && l(), () => {
2739
2731
  u && u();
2740
- }), [l, u]), /* @__PURE__ */ i("div", { ref: e, className: oe(Ce["rp-theme-variables"], Ce["rp-container"]), children: /* @__PURE__ */ i(_r, { mobileWidth: c, children: /* @__PURE__ */ i(hr, { slots: o, children: /* @__PURE__ */ i(mr, { icons: r, children: /* @__PURE__ */ A(
2741
- fr,
2732
+ }), [l, u]), /* @__PURE__ */ i("div", { ref: e, className: oe(Ce["rp-theme-variables"], Ce["rp-container"]), children: /* @__PURE__ */ i(vr, { mobileWidth: c, children: /* @__PURE__ */ i(pr, { slots: o, children: /* @__PURE__ */ i(hr, { icons: r, children: /* @__PURE__ */ A(
2733
+ mr,
2742
2734
  {
2743
2735
  getContainerRef: p,
2744
2736
  toolbarRef: h,
2745
2737
  style: a,
2746
2738
  className: s,
2747
2739
  children: [
2748
- /* @__PURE__ */ A(gr, { children: [
2740
+ /* @__PURE__ */ A(fr, { children: [
2749
2741
  /* @__PURE__ */ A("div", { className: Ce["rp-layout"], children: [
2750
2742
  /* @__PURE__ */ i(Ti, { ref: f }),
2751
2743
  /* @__PURE__ */ A("div", { className: Ce["rp-content"], children: [
@@ -2753,7 +2745,7 @@ const Te = {
2753
2745
  /* @__PURE__ */ i("div", { ref: v, className: Ce["rp-pages"], children: n })
2754
2746
  ] })
2755
2747
  ] }),
2756
- /* @__PURE__ */ i(vr, {})
2748
+ /* @__PURE__ */ i(gr, {})
2757
2749
  ] }),
2758
2750
  _ ? /* @__PURE__ */ i(
2759
2751
  "div",
@@ -2793,39 +2785,39 @@ export {
2793
2785
  so as C,
2794
2786
  Oo as D,
2795
2787
  yi as E,
2796
- Mn as F,
2788
+ Wn as F,
2797
2789
  Ri as G,
2798
2790
  Ci as L,
2799
2791
  di as M,
2800
2792
  pi as O,
2801
- rs as P,
2802
- ss as R,
2803
- as as S,
2804
- is as T,
2793
+ is as P,
2794
+ ls as R,
2795
+ cs as S,
2796
+ ss as T,
2805
2797
  _i as Z,
2806
- os as a,
2807
- us as b,
2808
- Fn as c,
2798
+ as as a,
2799
+ ps as b,
2800
+ An as c,
2809
2801
  et as d,
2810
- _n as e,
2811
- pn as f,
2802
+ vn as e,
2803
+ dn as f,
2812
2804
  ro as g,
2813
- hn as h,
2805
+ pn as h,
2814
2806
  oo as i,
2815
- mn as j,
2807
+ hn as j,
2816
2808
  io as k,
2817
- fn as l,
2818
- gn as m,
2809
+ mn as l,
2810
+ fn as m,
2819
2811
  ao as n,
2820
- vn as o,
2812
+ gn as o,
2821
2813
  co as p,
2822
- St as q,
2814
+ Pt as q,
2823
2815
  Lo as r,
2824
2816
  Do as s,
2825
2817
  ko as t,
2826
2818
  se as u,
2827
2819
  ei as v,
2828
- Gn as w,
2820
+ $n as w,
2829
2821
  hi as x,
2830
2822
  wi as y,
2831
2823
  Ti as z