@pdf-viewer/react 1.7.4-rc.1 → 1.7.4-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 (44) hide show
  1. package/dist/{RPDefaultLayout-95bbd8aa.js → RPDefaultLayout-30af7aab.js} +173 -173
  2. package/dist/assets/RPDefaultLayout.css +1 -1
  3. package/dist/components/RPController.js +1 -1
  4. package/dist/components/RPPages.js +1 -1
  5. package/dist/components/RPProvider.js +1 -1
  6. package/dist/components/layout/LayoutContainer.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/MostPageTool.js +1 -1
  14. package/dist/components/layout/toolbar/OtherTool.js +1 -1
  15. package/dist/components/layout/toolbar/Paginate.js +1 -1
  16. package/dist/components/layout/toolbar/PrintTool.js +1 -1
  17. package/dist/components/layout/toolbar/RPToolbar.js +1 -1
  18. package/dist/components/layout/toolbar/RPToolbarEnd.js +1 -1
  19. package/dist/components/layout/toolbar/SearchResultNavigator.js +1 -1
  20. package/dist/components/layout/toolbar/SearchTool.js +1 -1
  21. package/dist/components/layout/toolbar/ZoomTool.js +1 -1
  22. package/dist/components/page/AnnotationLayer.js +1 -1
  23. package/dist/components/page/CanvasLayer.js +1 -1
  24. package/dist/components/page/DualPage.js +1 -1
  25. package/dist/components/page/RPPage.js +1 -1
  26. package/dist/components/page/SinglePage.js +1 -1
  27. package/dist/components/page/TextHighlightLayer.js +1 -1
  28. package/dist/components/page/TextLayer.js +1 -1
  29. package/dist/components/ui/LoadingIndicator.js +1 -1
  30. package/dist/contexts/PaginationContext.js +1 -1
  31. package/dist/contexts/PrintContext.js +1 -1
  32. package/dist/contexts/SearchContext.js +1 -1
  33. package/dist/contexts/ThumbnailsContext.js +1 -1
  34. package/dist/main.js +1 -1
  35. package/dist/utils/hooks/useFileDownload.js +1 -1
  36. package/dist/utils/hooks/useLicense.js +1 -1
  37. package/dist/utils/hooks/usePaginate.js +1 -1
  38. package/dist/utils/hooks/usePresentPage.js +1 -1
  39. package/dist/utils/hooks/usePrint.js +1 -1
  40. package/dist/utils/hooks/useScrollToPage.js +1 -1
  41. package/dist/utils/hooks/useSearch.js +1 -1
  42. package/dist/utils/hooks/useThumbnail.js +1 -1
  43. package/dist/utils/hooks/useVirtualReactWindow.js +1 -1
  44. package/package.json +1 -1
@@ -43,8 +43,8 @@ import { Container as br } from "./components/layout/Container.js";
43
43
  import { WrapperLayout as Cr } from "./components/layout/WrapperLayout.js";
44
44
  import { RPDropFileZone as Pr } from "./components/RPDropFileZone.js";
45
45
  import { useViewportContext as Ce, ViewportProvider as Tr } from "./contexts/ViewportContext.js";
46
- import { useThemeContext as yr } from "./contexts/ThemeContext.js";
47
- import * as Sr from "pdfjs-dist";
46
+ import { useThemeContext as Sr } from "./contexts/ThemeContext.js";
47
+ import * as yr from "pdfjs-dist";
48
48
  import { PixelsPerInch as xr, AnnotationMode as Ir, RenderingCancelledException as Rr, AnnotationLayer as Lr } from "pdfjs-dist";
49
49
  import { SimpleLinkService as Er } from "./utils/link_service.js";
50
50
  import { annotationsEvents as Nr, annotationEventsHandler as Or, handleClick as At, handleAnnotationWidget as zr, handleAnnotationLink as Dr, bindLayerEvents as Ar, unbindLayerEvents as Ft } from "./utils/annotations.js";
@@ -65,7 +65,7 @@ import { FileUploadTool as fn } from "./components/layout/toolbar/FileUploadTool
65
65
  import { DarkModeTool as Kr } from "./components/layout/toolbar/DarkModeTool.js";
66
66
  import { ThreeDotIcon as Xr } from "./components/icons/ThreeDotIcon.js";
67
67
  import { UIDropDown as mn } from "./components/ui/DropDown.js";
68
- import { e as Yr, a as Tt, P as Ve, c as Me, g as yt, i as Jr, k as Qr, f as eo } from "./index-1cb41342.js";
68
+ import { e as Yr, a as Tt, P as Ve, c as Me, g as St, i as Jr, k as Qr, f as eo } from "./index-1cb41342.js";
69
69
  import { D as to, u as ct } from "./index-aa2d3884.js";
70
70
  import { a as no, u as ro, F as oo, b as io, G as Ke } from "./index-7279fb4e.js";
71
71
  import { h as ao } from "./component-1da194e8.js";
@@ -77,7 +77,7 @@ import { DocumentProperties as po } from "./components/layout/toolbar/DocumentPr
77
77
  import { RotateTool as ho } from "./components/layout/toolbar/RotateTool.js";
78
78
  import { ViewModeTool as fo } from "./components/layout/toolbar/ViewModeTool.js";
79
79
  import { ScrollModeTool as mo } from "./components/layout/toolbar/ScrollModeTool.js";
80
- import { MenuSeparator as St } from "./components/layout/toolbar/MenuSeparator.js";
80
+ import { MenuSeparator as yt } from "./components/layout/toolbar/MenuSeparator.js";
81
81
  import { FileDownloadDefaultIcon as go } from "./components/icons/FileDownloadDefaultIcon.js";
82
82
  import { MenuItem as be } from "./components/layout/toolbar/MenuItem.js";
83
83
  import { PrintDefaultTool as vo } from "./components/icons/PrintDefaultIcon.js";
@@ -147,23 +147,23 @@ import './assets/RPDefaultLayout.css';const wn = () => {
147
147
  const s = o;
148
148
  if (v.current = C, m.current === J.HORIZONTAL_SCROLLING) {
149
149
  g = h;
150
- const y = {
150
+ const S = {
151
151
  left: Ae(d, g),
152
152
  top: 0
153
153
  };
154
154
  return s.scrollTo({
155
- ...y,
155
+ ...S,
156
156
  behavior: T
157
157
  });
158
158
  }
159
159
  if (P.current === Ie.DUAL_PAGE) {
160
160
  g = h % 2, f = Math.floor(h / 2);
161
- const y = {
161
+ const S = {
162
162
  left: Ae(d, g),
163
163
  top: Ae(u, f)
164
164
  };
165
165
  return s.scrollTo({
166
- ...y,
166
+ ...S,
167
167
  behavior: T
168
168
  });
169
169
  }
@@ -186,7 +186,7 @@ import './assets/RPDefaultLayout.css';const wn = () => {
186
186
  d
187
187
  ]
188
188
  ) };
189
- }, yo = (t = 1) => {
189
+ }, So = (t = 1) => {
190
190
  const [e, n] = $(t), [o, r] = $(0), { scrollToPage: a } = wn(), l = H(1), { viewMode: c } = Ee(), { scrollMode: d } = Le(), { widths: u } = Ue(), { pagesRef: m } = ge(), P = Pt(e, 100), p = N(
191
191
  (f) => {
192
192
  if (!/^[0-9]*$/g.test(f.toString()) || !f)
@@ -201,7 +201,7 @@ import './assets/RPDefaultLayout.css';const wn = () => {
201
201
  return g.success && a(g.currentPage), g;
202
202
  },
203
203
  [p, a]
204
- ), S = N((f) => {
204
+ ), y = N((f) => {
205
205
  const g = f % 2 === 1;
206
206
  if (!m || g)
207
207
  return !1;
@@ -209,13 +209,13 @@ import './assets/RPDefaultLayout.css';const wn = () => {
209
209
  return c === Ie.DUAL_PAGE && s + w < m.clientWidth;
210
210
  }, [c, u, m, o]), C = N(() => {
211
211
  let f = e - 1;
212
- S(f) && (f = e - 2), _(f);
213
- }, [_, e, c, d, S]), T = k(() => c === Ie.DUAL_PAGE && d === J.PAGE_SCROLLING ? e === o - 1 : e === o, [e, o, c, d]), h = N(() => {
212
+ y(f) && (f = e - 2), _(f);
213
+ }, [_, e, c, d, y]), T = k(() => c === Ie.DUAL_PAGE && d === J.PAGE_SCROLLING ? e === o - 1 : e === o, [e, o, c, d]), h = N(() => {
214
214
  if (T)
215
215
  return;
216
216
  let f = e + 1;
217
- S(f) && (f = e + 2), _(f);
218
- }, [_, e, S, c, d, T]);
217
+ y(f) && (f = e + 2), _(f);
218
+ }, [_, e, y, c, d, T]);
219
219
  return {
220
220
  focusedPage: P,
221
221
  totalPages: o,
@@ -241,7 +241,7 @@ import './assets/RPDefaultLayout.css';const wn = () => {
241
241
  const t = Je(_n);
242
242
  return typeof (t == null ? void 0 : t.focusedPage) > "u" && jr.error("Please use this hooks inside children component of RPProvider"), t;
243
243
  }, ks = ({ children: t }) => {
244
- const { pdf: e } = Q(), { focusedPage: n, totalPages: o, setFocusedPage: r, setTotalPages: a, goToPage: l, nextPage: c, prevPage: d } = yo();
244
+ const { pdf: e } = Q(), { focusedPage: n, totalPages: o, setFocusedPage: r, setTotalPages: a, goToPage: l, nextPage: c, prevPage: d } = So();
245
245
  return F(() => {
246
246
  e != null && e.numPages && (a(e.numPages), r(1));
247
247
  }, [e, a, r]), /* @__PURE__ */ i(
@@ -260,7 +260,7 @@ import './assets/RPDefaultLayout.css';const wn = () => {
260
260
  }
261
261
  );
262
262
  };
263
- const So = () => {
263
+ const yo = () => {
264
264
  const { pdf: t, pages: e } = Q(), [n, o] = $({
265
265
  loadedPages: 0,
266
266
  totalPages: 0,
@@ -287,7 +287,7 @@ const So = () => {
287
287
  pageNumber: s,
288
288
  viewerPdfPage: w,
289
289
  printResolution: b,
290
- optionalContentConfigPromise: y,
290
+ optionalContentConfigPromise: S,
291
291
  printAnnotationStoragePromise: E
292
292
  }) => {
293
293
  if (m.current) {
@@ -312,7 +312,7 @@ const So = () => {
312
312
  viewport: z.getViewport({ scale: 1, rotation: w.rotation }),
313
313
  intent: "print",
314
314
  annotationMode: Ir.ENABLE_STORAGE,
315
- optionalContentConfigPromise: y,
315
+ optionalContentConfigPromise: S,
316
316
  printAnnotationStorage: D
317
317
  };
318
318
  try {
@@ -320,12 +320,12 @@ const So = () => {
320
320
  } catch (L) {
321
321
  throw L instanceof Rr || console.error(L), L;
322
322
  }
323
- }, S = N(() => {
323
+ }, y = N(() => {
324
324
  const f = window.print;
325
325
  return new Promise((g) => {
326
- const s = (y) => {
326
+ const s = (S) => {
327
327
  setTimeout(() => {
328
- f.call(window), setTimeout(() => y(), 20);
328
+ f.call(window), setTimeout(() => S(), 20);
329
329
  }, 0);
330
330
  };
331
331
  if (document.querySelector(".rp-print-zone")) {
@@ -340,8 +340,8 @@ const So = () => {
340
340
  }, []), C = async (f) => {
341
341
  const g = document.createElement("img"), s = document.createElement("div");
342
342
  return s.classList.add("rp-print-page"), await new Promise((w, b) => {
343
- f.toBlob((y) => {
344
- y ? (g.src = URL.createObjectURL(y), g.onload = () => {
343
+ f.toBlob((S) => {
344
+ S ? (g.src = URL.createObjectURL(S), g.onload = () => {
345
345
  URL.revokeObjectURL(g.src), w();
346
346
  }, g.onerror = b) : b(new Error("Failed to create blob"));
347
347
  });
@@ -352,8 +352,8 @@ const So = () => {
352
352
  s.classList.add("rp-print-zone");
353
353
  const w = document.createElement("style"), b = g.get(1);
354
354
  if (b) {
355
- const { width: y, height: E } = b == null ? void 0 : b.page.getViewport({ scale: 1 });
356
- w.innerHTML = `@page { size: ${y}px ${E}px }`;
355
+ const { width: S, height: E } = b == null ? void 0 : b.page.getViewport({ scale: 1 });
356
+ w.innerHTML = `@page { size: ${S}px ${E}px }`;
357
357
  }
358
358
  return s.appendChild(w), s.append(...f), s;
359
359
  }, h = N(async () => {
@@ -365,7 +365,7 @@ const So = () => {
365
365
  t.isPureXfa && console.warn("[rp] XFA Form is not supported at the moment.");
366
366
  const w = t.getOptionalContentConfig({ intent: "print" }), b = Promise.resolve(
367
367
  t.annotationStorage.print ?? void 0
368
- ), y = e.size;
368
+ ), S = e.size;
369
369
  for (const [x, R] of e) {
370
370
  if (m.current) {
371
371
  p();
@@ -386,10 +386,10 @@ const So = () => {
386
386
  }
387
387
  const D = await C(f);
388
388
  g.push(D);
389
- const A = parseFloat((g.length / y * 100).toFixed(2));
389
+ const A = parseFloat((g.length / S * 100).toFixed(2));
390
390
  o({
391
391
  loadedPages: x,
392
- totalPages: y,
392
+ totalPages: S,
393
393
  percentage: A
394
394
  });
395
395
  }
@@ -398,7 +398,7 @@ const So = () => {
398
398
  return;
399
399
  }
400
400
  const E = T(g, e);
401
- document.body.appendChild(E), document.documentElement.classList.add("rp-print-html-printing"), document.body.classList.add("rp-print-body-printing"), a(!0), await S();
401
+ document.body.appendChild(E), document.documentElement.classList.add("rp-print-html-printing"), document.body.classList.add("rp-print-body-printing"), a(!0), await y();
402
402
  } catch (s) {
403
403
  c(!0), s instanceof Error && u(s);
404
404
  } finally {
@@ -438,7 +438,7 @@ const So = () => {
438
438
  }
439
439
  }
440
440
  }), Ms = ({ children: t }) => {
441
- const [e, n] = $(null), [o, r] = $(null), { print: a, cancel: l, progress: c, isComplete: d, isError: u, error: m } = So(), P = N((C) => {
441
+ const [e, n] = $(null), [o, r] = $(null), { print: a, cancel: l, progress: c, isComplete: d, isError: u, error: m } = yo(), P = N((C) => {
442
442
  C && typeof C == "function" && r(() => C);
443
443
  }, []), p = (C) => {
444
444
  m && C(m);
@@ -459,7 +459,7 @@ const So = () => {
459
459
  }, [c, e]);
460
460
  const _ = () => {
461
461
  o && (o(), r(null));
462
- }, S = {
462
+ }, y = {
463
463
  print: a,
464
464
  cancel: l,
465
465
  setOnProgress: v,
@@ -467,7 +467,7 @@ const So = () => {
467
467
  setOnError: p,
468
468
  progress: c
469
469
  };
470
- return /* @__PURE__ */ i(bn.Provider, { value: S, children: t });
470
+ return /* @__PURE__ */ i(bn.Provider, { value: y, children: t });
471
471
  }, tt = () => {
472
472
  const t = Je(bn);
473
473
  if (!t)
@@ -498,10 +498,10 @@ const So = () => {
498
498
  scale: p.scale,
499
499
  rotate: o + p.defaultRotation
500
500
  }).promise.then(() => {
501
- const S = v.toDataURL();
501
+ const y = v.toDataURL();
502
502
  return {
503
503
  ...p,
504
- thumbnailSrc: S,
504
+ thumbnailSrc: y,
505
505
  loading: !1
506
506
  };
507
507
  });
@@ -509,7 +509,7 @@ const So = () => {
509
509
  }
510
510
  Promise.all(P).then((p) => {
511
511
  const v = p.reduce(
512
- (_, S) => (_[S.page.pageNumber] = S, _),
512
+ (_, y) => (_[y.page.pageNumber] = y, _),
513
513
  {}
514
514
  );
515
515
  e((_) => ({ ..._, ...v }));
@@ -577,7 +577,7 @@ const So = () => {
577
577
  }
578
578
  );
579
579
  }, Io = (t = {}, e = "") => {
580
- const [n, o] = $(e), [r, a] = $(!1), { pdf: l, pages: c } = Q(), { widths: d, heights: u } = Ue(), m = H(!n), { currentZoom: P } = Qe(), [p, v] = $([]), { setFocusedPage: _ } = ie(), { columnCount: S } = Ee(), { rotate: C } = Ge(), [T, h] = $(0), { pageScrollElementRef: f, virtualScrollableElementRef: g } = et(), { scrollMode: s } = Le(), { pagesRef: w } = ge(), [b, y] = $(null), E = H({}), x = k(() => T === 0 ? null : p[T - 1], [T, p]), R = k(() => p.length, [p]);
580
+ const [n, o] = $(e), [r, a] = $(!1), { pdf: l, pages: c } = Q(), { widths: d, heights: u } = Ue(), m = H(!n), { currentZoom: P } = Qe(), [p, v] = $([]), { setFocusedPage: _ } = ie(), { columnCount: y } = Ee(), { rotate: C } = Ge(), [T, h] = $(0), { pageScrollElementRef: f, virtualScrollableElementRef: g } = et(), { scrollMode: s } = Le(), { pagesRef: w } = ge(), [b, S] = $(null), E = H({}), x = k(() => T === 0 ? null : p[T - 1], [T, p]), R = k(() => p.length, [p]);
581
581
  F(() => {
582
582
  if (!x || !c)
583
583
  return;
@@ -589,7 +589,7 @@ const So = () => {
589
589
  return;
590
590
  let O = 0, M = 0;
591
591
  if (s === J.VERTICAL_SCROLLING) {
592
- const ae = x.page - 1, de = S, te = ae % de, Fe = Math.floor(ae / de);
592
+ const ae = x.page - 1, de = y, te = ae % de, Fe = Math.floor(ae / de);
593
593
  O = Ae(u, Fe), M = Ae(d, te);
594
594
  }
595
595
  s === J.HORIZONTAL_SCROLLING && (M = d.slice(0, x.page - 1).reduce((ae, de) => ae + de, 0));
@@ -670,7 +670,7 @@ const So = () => {
670
670
  nextMatch: z,
671
671
  prevMatch: D,
672
672
  currentMatchElement: b,
673
- setCurrentMatchElement: y
673
+ setCurrentMatchElement: S
674
674
  };
675
675
  }, Tn = Ye({
676
676
  search: "",
@@ -784,39 +784,39 @@ const So = () => {
784
784
  d(w);
785
785
  },
786
786
  [p]
787
- ), _ = H(), S = H(!1), C = N(() => Array.from(document.querySelectorAll('[data-rp$="-textLayer"]')), []);
787
+ ), _ = H(), y = H(!1), C = N(() => Array.from(document.querySelectorAll('[data-rp$="-textLayer"]')), []);
788
788
  F(() => ((() => {
789
789
  if (_.current)
790
790
  return;
791
791
  _.current = new AbortController();
792
792
  const { signal: g } = _.current, s = () => {
793
793
  C().forEach((b) => {
794
- const y = b.querySelector(".endOfContent");
795
- y && (b.appendChild(y), y.style.width = "", y.style.height = "", b.classList.remove(he.selecting));
794
+ const S = b.querySelector(".endOfContent");
795
+ S && (b.appendChild(S), S.style.width = "", S.style.height = "", b.classList.remove(he.selecting));
796
796
  });
797
797
  };
798
798
  document.addEventListener(
799
799
  "pointerdown",
800
800
  () => {
801
- S.current = !0;
801
+ y.current = !0;
802
802
  },
803
803
  { signal: g }
804
804
  ), document.addEventListener(
805
805
  "pointerup",
806
806
  () => {
807
- S.current = !1, s();
807
+ y.current = !1, s();
808
808
  },
809
809
  { signal: g }
810
810
  ), window.addEventListener(
811
811
  "blur",
812
812
  () => {
813
- S.current = !1, s();
813
+ y.current = !1, s();
814
814
  },
815
815
  { signal: g }
816
816
  ), document.addEventListener(
817
817
  "keyup",
818
818
  () => {
819
- S.current || s();
819
+ y.current || s();
820
820
  },
821
821
  { signal: g }
822
822
  );
@@ -832,15 +832,15 @@ const So = () => {
832
832
  s();
833
833
  return;
834
834
  }
835
- const y = /* @__PURE__ */ new Set();
835
+ const S = /* @__PURE__ */ new Set();
836
836
  for (let I = 0; I < b.rangeCount; I++) {
837
837
  const O = b.getRangeAt(I);
838
838
  C().forEach((M) => {
839
- O.intersectsNode(M) && !y.has(M) && y.add(M);
839
+ O.intersectsNode(M) && !S.has(M) && S.add(M);
840
840
  });
841
841
  }
842
842
  C().forEach((I) => {
843
- if (y.has(I))
843
+ if (S.has(I))
844
844
  I.classList.add(he.selecting);
845
845
  else {
846
846
  const O = I.querySelector(".endOfContent");
@@ -887,17 +887,17 @@ const So = () => {
887
887
  const g = o.current;
888
888
  return u.current && u.current.cancel(), f.page.getTextContent().then((s) => {
889
889
  const w = f.page.getViewport({ scale: 1 });
890
- return u.current = new Sr.TextLayer({
890
+ return u.current = new yr.TextLayer({
891
891
  viewport: w,
892
892
  textContentSource: s,
893
893
  container: g
894
894
  }), m.current = s, g && (g.innerText = ""), u.current.render();
895
895
  }).then(() => {
896
- var y, E;
896
+ var S, E;
897
897
  [].slice.call(g.children).forEach((x) => {
898
898
  x.classList.add(he["rp-text-layer-text"]), x.setAttribute("data-rp", "rp-text-layer-text");
899
899
  });
900
- const w = (y = u.current) == null ? void 0 : y.textDivs;
900
+ const w = (S = u.current) == null ? void 0 : S.textDivs;
901
901
  w && m.current && v(m.current, w);
902
902
  const b = document.createElement("div");
903
903
  b.className = "endOfContent", (E = o.current) == null || E.appendChild(b);
@@ -936,7 +936,7 @@ const zo = (t) => {
936
936
  a.current = void 0, c(C), n.current && (n.current.innerText = "");
937
937
  });
938
938
  }, [v]);
939
- const S = N(
939
+ const y = N(
940
940
  (C) => {
941
941
  !l || !r || (Nr(C), Or(C, r, l).then((T) => {
942
942
  var h, f;
@@ -978,7 +978,7 @@ const zo = (t) => {
978
978
  structTreeLayer: null,
979
979
  page: v.page,
980
980
  viewport: C.clone({ dontFlip: !0 })
981
- }), n.current && Ft(n.current, S);
981
+ }), n.current && Ft(n.current, y);
982
982
  const g = await (r == null ? void 0 : r.hasJSActions()), s = await (r == null ? void 0 : r.getFieldObjects());
983
983
  if (h.signal.aborted)
984
984
  throw "abort";
@@ -997,14 +997,14 @@ const zo = (t) => {
997
997
  enableScripting: !1
998
998
  });
999
999
  })().then(() => {
1000
- n.current && Ar(n.current, S);
1000
+ n.current && Ar(n.current, y);
1001
1001
  }).catch((g) => {
1002
1002
  if (g !== "abort")
1003
1003
  throw g;
1004
1004
  }), () => {
1005
- h.abort("clear"), n.current && Ft(n.current, S);
1005
+ h.abort("clear"), n.current && Ft(n.current, y);
1006
1006
  };
1007
- }, [r, l, S]), /* @__PURE__ */ i(
1007
+ }, [r, l, y]), /* @__PURE__ */ i(
1008
1008
  "div",
1009
1009
  {
1010
1010
  "data-rp": `page-${e}-annotationLayer`,
@@ -1045,7 +1045,7 @@ const zo = (t) => {
1045
1045
  s(w);
1046
1046
  return;
1047
1047
  }
1048
- new MutationObserver((y, E) => {
1048
+ new MutationObserver((S, E) => {
1049
1049
  const x = h.querySelector(g);
1050
1050
  x && (s(x), E.disconnect());
1051
1051
  }).observe(h, { childList: !0, subtree: !0 });
@@ -1061,20 +1061,20 @@ const zo = (t) => {
1061
1061
  return;
1062
1062
  }
1063
1063
  new MutationObserver((w, b) => {
1064
- const y = h.querySelectorAll(
1064
+ const S = h.querySelectorAll(
1065
1065
  ".rp-text-layer-text"
1066
1066
  );
1067
- y.length && (f(Array.from(y)), b.disconnect());
1067
+ S.length && (f(Array.from(S)), b.disconnect());
1068
1068
  }).observe(h, { childList: !0, subtree: !0 });
1069
1069
  });
1070
1070
  }
1071
- const S = (h, f, g, s) => {
1071
+ const y = (h, f, g, s) => {
1072
1072
  var Z;
1073
1073
  const w = document.createRange(), b = g.firstChild;
1074
1074
  if (!b || b.nodeType !== Node.TEXT_NODE)
1075
1075
  return null;
1076
- const y = ((Z = b.textContent) == null ? void 0 : Z.length) ?? 0, E = s[0].charIdxInSpan, x = s.length === 1 ? E : s[s.length - 1].charIdxInSpan;
1077
- if (E > y || x + 1 > y)
1076
+ const S = ((Z = b.textContent) == null ? void 0 : Z.length) ?? 0, E = s[0].charIdxInSpan, x = s.length === 1 ? E : s[s.length - 1].charIdxInSpan;
1077
+ if (E > S || x + 1 > S)
1078
1078
  return null;
1079
1079
  w.setStart(b, E), w.setEnd(b, x + 1);
1080
1080
  const R = document.createElement("span");
@@ -1096,8 +1096,8 @@ const zo = (t) => {
1096
1096
  return;
1097
1097
  const s = await _(g);
1098
1098
  if (s.length) {
1099
- const w = s.map((y) => y.tagName === "BR" ? " " : y.textContent).reduce(
1100
- (y, E, x) => y.concat(
1099
+ const w = s.map((S) => S.tagName === "BR" ? " " : S.textContent).reduce(
1100
+ (S, E, x) => S.concat(
1101
1101
  E.split("").map((R, z) => ({
1102
1102
  char: R,
1103
1103
  charIdxInSpan: z,
@@ -1119,7 +1119,7 @@ const zo = (t) => {
1119
1119
  const w = f.length;
1120
1120
  if (!s.length || !w)
1121
1121
  return [];
1122
- const b = [], y = s.map((E) => E.char).join("");
1122
+ const b = [], S = s.map((E) => E.char).join("");
1123
1123
  return p.forEach((E) => {
1124
1124
  const { keyword: x, regExp: R, wholeWords: z, color: D } = E, A = x;
1125
1125
  if (!A.trim())
@@ -1127,8 +1127,8 @@ const zo = (t) => {
1127
1127
  const L = R.flags.indexOf("g") === -1 ? new RegExp(R, `${R.flags}g`) : R;
1128
1128
  let I;
1129
1129
  const O = [];
1130
- for (; (I = L.exec(y)) !== null; )
1131
- z && !pr(y, I.index, I[0].length) || O.push({
1130
+ for (; (I = L.exec(S)) !== null; )
1131
+ z && !pr(S, I.index, I[0].length) || O.push({
1132
1132
  keyword: L,
1133
1133
  startIndex: I.index,
1134
1134
  endIndex: L.lastIndex
@@ -1145,7 +1145,7 @@ const zo = (t) => {
1145
1145
  );
1146
1146
  for (const j of Object.values(Z))
1147
1147
  if (j.length !== 1 || j[0].char.trim() !== "") {
1148
- const q = j, ee = g[q[0].spanIdx], X = S(
1148
+ const q = j, ee = g[q[0].spanIdx], X = y(
1149
1149
  h,
1150
1150
  A,
1151
1151
  ee,
@@ -1198,7 +1198,7 @@ const zo = (t) => {
1198
1198
  _(h);
1199
1199
  }
1200
1200
  }, [a, n, l, d]);
1201
- const S = k(() => {
1201
+ const y = k(() => {
1202
1202
  switch (l) {
1203
1203
  case 90:
1204
1204
  return `${v.width / 2}px ${v.width / 2}px`;
@@ -1223,7 +1223,7 @@ const zo = (t) => {
1223
1223
  style: {
1224
1224
  ...o,
1225
1225
  "--rp-rotate": `${l}deg`,
1226
- "--rp-page-rotate-translate": `${S}`,
1226
+ "--rp-page-rotate-translate": `${y}`,
1227
1227
  "--scale-factor": d
1228
1228
  },
1229
1229
  className: lt["rp-page-wrapper"],
@@ -1340,7 +1340,7 @@ var Go = 150, Uo = function(e) {
1340
1340
  }, Be = null, Ze = null, je = null;
1341
1341
  process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (Be = /* @__PURE__ */ new WeakSet(), Ze = /* @__PURE__ */ new WeakSet(), je = /* @__PURE__ */ new WeakSet());
1342
1342
  function Vo(t) {
1343
- var e, n = t.getColumnOffset, o = t.getColumnStartIndexForOffset, r = t.getColumnStopIndexForStartIndex, a = t.getColumnWidth, l = t.getEstimatedTotalHeight, c = t.getEstimatedTotalWidth, d = t.getOffsetForColumnAndAlignment, u = t.getOffsetForRowAndAlignment, m = t.getRowHeight, P = t.getRowOffset, p = t.getRowStartIndexForOffset, v = t.getRowStopIndexForStartIndex, _ = t.initInstanceProps, S = t.shouldResetStyleCacheOnItemSizeChange, C = t.validateProps;
1343
+ var e, n = t.getColumnOffset, o = t.getColumnStartIndexForOffset, r = t.getColumnStopIndexForStartIndex, a = t.getColumnWidth, l = t.getEstimatedTotalHeight, c = t.getEstimatedTotalWidth, d = t.getOffsetForColumnAndAlignment, u = t.getOffsetForRowAndAlignment, m = t.getRowHeight, P = t.getRowOffset, p = t.getRowStartIndexForOffset, v = t.getRowStopIndexForStartIndex, _ = t.initInstanceProps, y = t.shouldResetStyleCacheOnItemSizeChange, C = t.validateProps;
1344
1344
  return e = /* @__PURE__ */ function(T) {
1345
1345
  Fo(h, T);
1346
1346
  function h(g) {
@@ -1353,27 +1353,27 @@ function Vo(t) {
1353
1353
  scrollTop: typeof s.props.initialScrollTop == "number" ? s.props.initialScrollTop : 0,
1354
1354
  scrollUpdateWasRequested: !1,
1355
1355
  verticalScrollDirection: "forward"
1356
- }, s._callOnItemsRendered = void 0, s._callOnItemsRendered = dt(function(w, b, y, E, x, R, z, D) {
1356
+ }, s._callOnItemsRendered = void 0, s._callOnItemsRendered = dt(function(w, b, S, E, x, R, z, D) {
1357
1357
  return s.props.onItemsRendered({
1358
1358
  overscanColumnStartIndex: w,
1359
1359
  overscanColumnStopIndex: b,
1360
- overscanRowStartIndex: y,
1360
+ overscanRowStartIndex: S,
1361
1361
  overscanRowStopIndex: E,
1362
1362
  visibleColumnStartIndex: x,
1363
1363
  visibleColumnStopIndex: R,
1364
1364
  visibleRowStartIndex: z,
1365
1365
  visibleRowStopIndex: D
1366
1366
  });
1367
- }), s._callOnScroll = void 0, s._callOnScroll = dt(function(w, b, y, E, x) {
1367
+ }), s._callOnScroll = void 0, s._callOnScroll = dt(function(w, b, S, E, x) {
1368
1368
  return s.props.onScroll({
1369
- horizontalScrollDirection: y,
1369
+ horizontalScrollDirection: S,
1370
1370
  scrollLeft: w,
1371
1371
  scrollTop: b,
1372
1372
  verticalScrollDirection: E,
1373
1373
  scrollUpdateWasRequested: x
1374
1374
  });
1375
1375
  }), s._getItemStyle = void 0, s._getItemStyle = function(w, b) {
1376
- var y = s.props, E = y.columnWidth, x = y.direction, R = y.rowHeight, z = s._getItemStyleCache(S && E, S && x, S && R), D = w + ":" + b, A;
1376
+ var S = s.props, E = S.columnWidth, x = S.direction, R = S.rowHeight, z = s._getItemStyleCache(y && E, y && x, y && R), D = w + ":" + b, A;
1377
1377
  if (z.hasOwnProperty(D))
1378
1378
  A = z[D];
1379
1379
  else {
@@ -1388,10 +1388,10 @@ function Vo(t) {
1388
1388
  };
1389
1389
  }
1390
1390
  return A;
1391
- }, s._getItemStyleCache = void 0, s._getItemStyleCache = dt(function(w, b, y) {
1391
+ }, s._getItemStyleCache = void 0, s._getItemStyleCache = dt(function(w, b, S) {
1392
1392
  return {};
1393
1393
  }), s._onScroll = function(w) {
1394
- var b = w.currentTarget, y = b.clientHeight, E = b.clientWidth, x = b.scrollLeft, R = b.scrollTop, z = b.scrollHeight, D = b.scrollWidth;
1394
+ var b = w.currentTarget, S = b.clientHeight, E = b.clientWidth, x = b.scrollLeft, R = b.scrollTop, z = b.scrollHeight, D = b.scrollWidth;
1395
1395
  s.setState(function(A) {
1396
1396
  if (A.scrollLeft === x && A.scrollTop === R)
1397
1397
  return null;
@@ -1406,7 +1406,7 @@ function Vo(t) {
1406
1406
  break;
1407
1407
  }
1408
1408
  I = Math.max(0, Math.min(I, D - E));
1409
- var O = Math.max(0, Math.min(R, z - y));
1409
+ var O = Math.max(0, Math.min(R, z - S));
1410
1410
  return {
1411
1411
  isScrolling: !0,
1412
1412
  horizontalScrollDirection: A.scrollLeft < x ? "forward" : "backward",
@@ -1435,32 +1435,32 @@ function Vo(t) {
1435
1435
  var f = h.prototype;
1436
1436
  return f.scrollTo = function(s) {
1437
1437
  var w = s.scrollLeft, b = s.scrollTop;
1438
- w !== void 0 && (w = Math.max(0, w)), b !== void 0 && (b = Math.max(0, b)), this.setState(function(y) {
1439
- return w === void 0 && (w = y.scrollLeft), b === void 0 && (b = y.scrollTop), y.scrollLeft === w && y.scrollTop === b ? null : {
1440
- horizontalScrollDirection: y.scrollLeft < w ? "forward" : "backward",
1438
+ w !== void 0 && (w = Math.max(0, w)), b !== void 0 && (b = Math.max(0, b)), this.setState(function(S) {
1439
+ return w === void 0 && (w = S.scrollLeft), b === void 0 && (b = S.scrollTop), S.scrollLeft === w && S.scrollTop === b ? null : {
1440
+ horizontalScrollDirection: S.scrollLeft < w ? "forward" : "backward",
1441
1441
  scrollLeft: w,
1442
1442
  scrollTop: b,
1443
1443
  scrollUpdateWasRequested: !0,
1444
- verticalScrollDirection: y.scrollTop < b ? "forward" : "backward"
1444
+ verticalScrollDirection: S.scrollTop < b ? "forward" : "backward"
1445
1445
  };
1446
1446
  }, this._resetIsScrollingDebounced);
1447
1447
  }, f.scrollToItem = function(s) {
1448
- var w = s.align, b = w === void 0 ? "auto" : w, y = s.columnIndex, E = s.rowIndex, x = this.props, R = x.columnCount, z = x.height, D = x.rowCount, A = x.width, L = this.state, I = L.scrollLeft, O = L.scrollTop, M = $o();
1449
- y !== void 0 && (y = Math.max(0, Math.min(y, R - 1))), E !== void 0 && (E = Math.max(0, Math.min(E, D - 1)));
1448
+ var w = s.align, b = w === void 0 ? "auto" : w, S = s.columnIndex, E = s.rowIndex, x = this.props, R = x.columnCount, z = x.height, D = x.rowCount, A = x.width, L = this.state, I = L.scrollLeft, O = L.scrollTop, M = $o();
1449
+ S !== void 0 && (S = Math.max(0, Math.min(S, R - 1))), E !== void 0 && (E = Math.max(0, Math.min(E, D - 1)));
1450
1450
  var G = l(this.props, this._instanceProps), Z = c(this.props, this._instanceProps), j = Z > A ? M : 0, q = G > z ? M : 0;
1451
1451
  this.scrollTo({
1452
- scrollLeft: y !== void 0 ? d(this.props, y, b, I, this._instanceProps, q) : I,
1452
+ scrollLeft: S !== void 0 ? d(this.props, S, b, I, this._instanceProps, q) : I,
1453
1453
  scrollTop: E !== void 0 ? u(this.props, E, b, O, this._instanceProps, j) : O
1454
1454
  });
1455
1455
  }, f.componentDidMount = function() {
1456
1456
  var s = this.props, w = s.initialScrollLeft, b = s.initialScrollTop;
1457
1457
  if (this._outerRef != null) {
1458
- var y = this._outerRef;
1459
- typeof w == "number" && (y.scrollLeft = w), typeof b == "number" && (y.scrollTop = b);
1458
+ var S = this._outerRef;
1459
+ typeof w == "number" && (S.scrollLeft = w), typeof b == "number" && (S.scrollTop = b);
1460
1460
  }
1461
1461
  this._callPropsCallbacks();
1462
1462
  }, f.componentDidUpdate = function() {
1463
- var s = this.props.direction, w = this.state, b = w.scrollLeft, y = w.scrollTop, E = w.scrollUpdateWasRequested;
1463
+ var s = this.props.direction, w = this.state, b = w.scrollLeft, S = w.scrollTop, E = w.scrollUpdateWasRequested;
1464
1464
  if (E && this._outerRef != null) {
1465
1465
  var x = this._outerRef;
1466
1466
  if (s === "rtl")
@@ -1478,14 +1478,14 @@ function Vo(t) {
1478
1478
  }
1479
1479
  else
1480
1480
  x.scrollLeft = Math.max(0, b);
1481
- x.scrollTop = Math.max(0, y);
1481
+ x.scrollTop = Math.max(0, S);
1482
1482
  }
1483
1483
  this._callPropsCallbacks();
1484
1484
  }, f.componentWillUnmount = function() {
1485
1485
  this._resetIsScrollingTimeoutId !== null && Zt(this._resetIsScrollingTimeoutId);
1486
1486
  }, f.render = function() {
1487
- var s = this.props, w = s.children, b = s.className, y = s.columnCount, E = s.direction, x = s.height, R = s.innerRef, z = s.innerElementType, D = s.innerTagName, A = s.itemData, L = s.itemKey, I = L === void 0 ? Uo : L, O = s.outerElementType, M = s.outerTagName, G = s.rowCount, Z = s.style, j = s.useIsScrolling, q = s.width, ee = this.state.isScrolling, X = this._getHorizontalRangeToRender(), le = X[0], ae = X[1], de = this._getVerticalRangeToRender(), te = de[0], Fe = de[1], Ne = [];
1488
- if (y > 0 && G)
1487
+ var s = this.props, w = s.children, b = s.className, S = s.columnCount, E = s.direction, x = s.height, R = s.innerRef, z = s.innerElementType, D = s.innerTagName, A = s.itemData, L = s.itemKey, I = L === void 0 ? Uo : L, O = s.outerElementType, M = s.outerTagName, G = s.rowCount, Z = s.style, j = s.useIsScrolling, q = s.width, ee = this.state.isScrolling, X = this._getHorizontalRangeToRender(), le = X[0], ae = X[1], de = this._getVerticalRangeToRender(), te = de[0], Fe = de[1], Ne = [];
1488
+ if (S > 0 && G)
1489
1489
  for (var Pe = te; Pe <= Fe; Pe++)
1490
1490
  for (var we = le; we <= ae; we++)
1491
1491
  Ne.push(qe(w, {
@@ -1524,23 +1524,23 @@ function Vo(t) {
1524
1524
  }
1525
1525
  }));
1526
1526
  }, f._callPropsCallbacks = function() {
1527
- var s = this.props, w = s.columnCount, b = s.onItemsRendered, y = s.onScroll, E = s.rowCount;
1527
+ var s = this.props, w = s.columnCount, b = s.onItemsRendered, S = s.onScroll, E = s.rowCount;
1528
1528
  if (typeof b == "function" && w > 0 && E > 0) {
1529
1529
  var x = this._getHorizontalRangeToRender(), R = x[0], z = x[1], D = x[2], A = x[3], L = this._getVerticalRangeToRender(), I = L[0], O = L[1], M = L[2], G = L[3];
1530
1530
  this._callOnItemsRendered(R, z, I, O, D, A, M, G);
1531
1531
  }
1532
- if (typeof y == "function") {
1532
+ if (typeof S == "function") {
1533
1533
  var Z = this.state, j = Z.horizontalScrollDirection, q = Z.scrollLeft, ee = Z.scrollTop, X = Z.scrollUpdateWasRequested, le = Z.verticalScrollDirection;
1534
1534
  this._callOnScroll(q, ee, j, le, X);
1535
1535
  }
1536
1536
  }, f._getHorizontalRangeToRender = function() {
1537
- var s = this.props, w = s.columnCount, b = s.overscanColumnCount, y = s.overscanColumnsCount, E = s.overscanCount, x = s.rowCount, R = this.state, z = R.horizontalScrollDirection, D = R.isScrolling, A = R.scrollLeft, L = b || y || E || 1;
1537
+ var s = this.props, w = s.columnCount, b = s.overscanColumnCount, S = s.overscanColumnsCount, E = s.overscanCount, x = s.rowCount, R = this.state, z = R.horizontalScrollDirection, D = R.isScrolling, A = R.scrollLeft, L = b || S || E || 1;
1538
1538
  if (w === 0 || x === 0)
1539
1539
  return [0, 0, 0, 0];
1540
1540
  var I = o(this.props, A, this._instanceProps), O = r(this.props, I, A, this._instanceProps), M = !D || z === "backward" ? Math.max(1, L) : 1, G = !D || z === "forward" ? Math.max(1, L) : 1;
1541
1541
  return [Math.max(0, I - M), Math.max(0, Math.min(w - 1, O + G)), I, O];
1542
1542
  }, f._getVerticalRangeToRender = function() {
1543
- var s = this.props, w = s.columnCount, b = s.overscanCount, y = s.overscanRowCount, E = s.overscanRowsCount, x = s.rowCount, R = this.state, z = R.isScrolling, D = R.verticalScrollDirection, A = R.scrollTop, L = y || E || b || 1;
1543
+ var s = this.props, w = s.columnCount, b = s.overscanCount, S = s.overscanRowCount, E = s.overscanRowsCount, x = s.rowCount, R = this.state, z = R.isScrolling, D = R.verticalScrollDirection, A = R.scrollTop, L = S || E || b || 1;
1544
1544
  if (w === 0 || x === 0)
1545
1545
  return [0, 0, 0, 0];
1546
1546
  var I = p(this.props, A, this._instanceProps), O = v(this.props, I, A, this._instanceProps), M = !z || D === "backward" ? Math.max(1, L) : 1, G = !z || D === "forward" ? Math.max(1, L) : 1;
@@ -1569,7 +1569,7 @@ var qo = function(e, n) {
1569
1569
  if (typeof a != "number")
1570
1570
  throw Error('An invalid "height" prop has been specified. Grids must specify a number for height. ' + ('"' + (a === null ? "null" : typeof a) + '" was specified.'));
1571
1571
  }
1572
- }, Kt = 50, yn = function(e, n) {
1572
+ }, Kt = 50, Sn = function(e, n) {
1573
1573
  var o = e.rowCount, r = n.rowMetadataMap, a = n.estimatedRowHeight, l = n.lastMeasuredRowIndex, c = 0;
1574
1574
  if (l >= o && (l = o - 1), l >= 0) {
1575
1575
  var d = r[l];
@@ -1577,7 +1577,7 @@ var qo = function(e, n) {
1577
1577
  }
1578
1578
  var u = o - l - 1, m = u * a;
1579
1579
  return c + m;
1580
- }, Sn = function(e, n) {
1580
+ }, yn = function(e, n) {
1581
1581
  var o = e.columnCount, r = n.columnMetadataMap, a = n.estimatedColumnWidth, l = n.lastMeasuredColumnIndex, c = 0;
1582
1582
  if (l >= o && (l = o - 1), l >= 0) {
1583
1583
  var d = r[l];
@@ -1621,7 +1621,7 @@ var qo = function(e, n) {
1621
1621
  r += c, c *= 2;
1622
1622
  return xn(e, n, o, Math.min(r, l - 1), Math.floor(r / 2), a);
1623
1623
  }, Yt = function(e, n, o, r, a, l, c) {
1624
- var d = e === "column" ? n.width : n.height, u = fe(e, n, o, l), m = e === "column" ? Sn(n, l) : yn(n, l), P = Math.max(0, Math.min(m - d, u.offset)), p = Math.max(0, u.offset - d + c + u.size);
1624
+ var d = e === "column" ? n.width : n.height, u = fe(e, n, o, l), m = e === "column" ? yn(n, l) : Sn(n, l), P = Math.max(0, Math.min(m - d, u.offset)), p = Math.max(0, u.offset - d + c + u.size);
1625
1625
  switch (r === "smart" && (a >= p - d && a <= P + d ? r = "auto" : r = "center"), r) {
1626
1626
  case "start":
1627
1627
  return P;
@@ -1648,8 +1648,8 @@ var qo = function(e, n) {
1648
1648
  getColumnWidth: function(e, n, o) {
1649
1649
  return o.columnMetadataMap[n].size;
1650
1650
  },
1651
- getEstimatedTotalHeight: yn,
1652
- getEstimatedTotalWidth: Sn,
1651
+ getEstimatedTotalHeight: Sn,
1652
+ getEstimatedTotalWidth: yn,
1653
1653
  getOffsetForColumnAndAlignment: function(e, n, o, r, a, l) {
1654
1654
  return Yt("column", e, n, o, r, a, l);
1655
1655
  },
@@ -1721,9 +1721,9 @@ function Xo(t, e) {
1721
1721
  return !Jt(n, r) && !Jt(o, a);
1722
1722
  }
1723
1723
  const Yo = () => {
1724
- const { viewMode: t } = Ee(), { scrollMode: e } = Le(), { setColumnCount: n } = un(), { virtualScrollableElementRef: o } = et(), r = Ue(), a = k(() => r.heights.length, [r.heights]), l = k(() => e === J.HORIZONTAL_SCROLLING ? a : t === Ie.DUAL_PAGE ? 2 : 1, [t, e, e, a, o]), c = k(() => r.widths.reduce((_, S, C) => {
1724
+ const { viewMode: t } = Ee(), { scrollMode: e } = Le(), { setColumnCount: n } = un(), { virtualScrollableElementRef: o } = et(), r = Ue(), a = k(() => r.heights.length, [r.heights]), l = k(() => e === J.HORIZONTAL_SCROLLING ? a : t === Ie.DUAL_PAGE ? 2 : 1, [t, e, e, a, o]), c = k(() => r.widths.reduce((_, y, C) => {
1725
1725
  const T = C % l;
1726
- return (!_[T] || S > _[T]) && (_[T] = S), _;
1726
+ return (!_[T] || y > _[T]) && (_[T] = y), _;
1727
1727
  }, []), [r.widths, l]), d = N(
1728
1728
  (v) => {
1729
1729
  const _ = v % c.length;
@@ -1786,13 +1786,13 @@ function Jo(t) {
1786
1786
  let p = !1, v = "";
1787
1787
  o = "animationstart";
1788
1788
  const _ = "Webkit Moz O ms".split(" ");
1789
- let S = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), C = "";
1789
+ let y = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), C = "";
1790
1790
  {
1791
1791
  const T = document.createElement("fakeelement");
1792
1792
  if (T.style.animationName !== void 0 && (p = !0), p === !1) {
1793
1793
  for (let h = 0; h < _.length; h++)
1794
1794
  if (T.style[_[h] + "AnimationName"] !== void 0) {
1795
- C = _[h], v = "-" + C.toLowerCase() + "-", o = S[h], p = !0;
1795
+ C = _[h], v = "-" + C.toLowerCase() + "-", o = y[h], p = !0;
1796
1796
  break;
1797
1797
  }
1798
1798
  }
@@ -1801,8 +1801,8 @@ function Jo(t) {
1801
1801
  }
1802
1802
  const u = function(p) {
1803
1803
  if (!p.getElementById("detectElementResize")) {
1804
- const v = (e || "") + ".resize-triggers { " + (r || "") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', _ = p.head || p.getElementsByTagName("head")[0], S = p.createElement("style");
1805
- S.id = "detectElementResize", S.type = "text/css", t != null && S.setAttribute("nonce", t), S.styleSheet ? S.styleSheet.cssText = v : S.appendChild(p.createTextNode(v)), _.appendChild(S);
1804
+ const v = (e || "") + ".resize-triggers { " + (r || "") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', _ = p.head || p.getElementsByTagName("head")[0], y = p.createElement("style");
1805
+ y.id = "detectElementResize", y.type = "text/css", t != null && y.setAttribute("nonce", t), y.styleSheet ? y.styleSheet.cssText = v : y.appendChild(p.createTextNode(v)), _.appendChild(y);
1806
1806
  }
1807
1807
  };
1808
1808
  return {
@@ -1811,8 +1811,8 @@ function Jo(t) {
1811
1811
  p.attachEvent("onresize", v);
1812
1812
  else {
1813
1813
  if (!p.__resizeTriggers__) {
1814
- const _ = p.ownerDocument, S = oe.getComputedStyle(p);
1815
- S && S.position === "static" && (p.style.position = "relative"), u(_), p.__resizeLast__ = {}, p.__resizeListeners__ = [], (p.__resizeTriggers__ = _.createElement("div")).className = "resize-triggers";
1814
+ const _ = p.ownerDocument, y = oe.getComputedStyle(p);
1815
+ y && y.position === "static" && (p.style.position = "relative"), u(_), p.__resizeLast__ = {}, p.__resizeListeners__ = [], (p.__resizeTriggers__ = _.createElement("div")).className = "resize-triggers";
1816
1816
  const C = _.createElement("div");
1817
1817
  C.className = "expand-trigger", C.appendChild(_.createElement("div"));
1818
1818
  const T = _.createElement("div");
@@ -1900,12 +1900,12 @@ class Qo extends tr {
1900
1900
  height: p,
1901
1901
  scaledHeight: v,
1902
1902
  scaledWidth: _,
1903
- width: S
1903
+ width: y
1904
1904
  } = this.state, C = {
1905
1905
  overflow: "visible"
1906
1906
  }, T = {};
1907
1907
  let h = !1;
1908
- return r || (p === 0 && (h = !0), C.height = 0, T.height = p, T.scaledHeight = v), a || (S === 0 && (h = !0), C.width = 0, T.width = S, T.scaledWidth = _), l && (h = !1), qe(m, {
1908
+ return r || (p === 0 && (h = !0), C.height = 0, T.height = p, T.scaledHeight = v), a || (y === 0 && (h = !0), C.width = 0, T.width = y, T.scaledWidth = _), l && (h = !1), qe(m, {
1909
1909
  ref: this._setRef,
1910
1910
  style: {
1911
1911
  ...C,
@@ -1960,10 +1960,10 @@ const ei = ln(({ widths: t, heights: e }) => {
1960
1960
  }
1961
1961
  );
1962
1962
  }, ni = (t, e, n) => {
1963
- const o = H(), { contentRef: r } = ge(), { heights: a, widths: l } = Ue(), { setFocusedPage: c } = ie(), [d, u] = $([]), { targetScrollPage: m } = pn(), P = Pt(d, 0, 500), p = k(() => a.map((_, S) => {
1964
- const C = l[S], T = qr(S + 1, t), h = C * T.columnIndex, f = _ * T.rowIndex, g = h + C, s = f + _;
1963
+ const o = H(), { contentRef: r } = ge(), { heights: a, widths: l } = Ue(), { setFocusedPage: c } = ie(), [d, u] = $([]), { targetScrollPage: m } = pn(), P = Pt(d, 0, 500), p = k(() => a.map((_, y) => {
1964
+ const C = l[y], T = qr(y + 1, t), h = C * T.columnIndex, f = _ * T.rowIndex, g = h + C, s = f + _;
1965
1965
  return {
1966
- pageNumber: S + 1,
1966
+ pageNumber: y + 1,
1967
1967
  ...T,
1968
1968
  width: C,
1969
1969
  height: _,
@@ -1974,9 +1974,9 @@ const ei = ln(({ widths: t, heights: e }) => {
1974
1974
  };
1975
1975
  }), [a, l, t, e]);
1976
1976
  F(() => {
1977
- var S;
1977
+ var y;
1978
1978
  P.length > 0 && !m.current && c(P[0].pageNumber);
1979
- let _ = (S = P[0]) == null ? void 0 : S.ratio;
1979
+ let _ = (y = P[0]) == null ? void 0 : y.ratio;
1980
1980
  _ && P.filter((C) => Math.round(C.ratio) === Math.round(_)).some((C) => C.pageNumber === m.current) && setTimeout(() => {
1981
1981
  m.current = void 0;
1982
1982
  }, 500);
@@ -1984,16 +1984,16 @@ const ei = ln(({ widths: t, heights: e }) => {
1984
1984
  const v = N(
1985
1985
  (_) => {
1986
1986
  o.current && cancelAnimationFrame(o.current), o.current = requestAnimationFrame(() => {
1987
- const S = _.target, C = {
1988
- startTop: S.scrollTop,
1989
- startLeft: S.scrollLeft,
1990
- endTop: S.scrollTop + S.clientHeight,
1991
- endLeft: S.scrollLeft + S.clientWidth
1987
+ const y = _.target, C = {
1988
+ startTop: y.scrollTop,
1989
+ startLeft: y.scrollLeft,
1990
+ endTop: y.scrollTop + y.clientHeight,
1991
+ endLeft: y.scrollLeft + y.clientWidth
1992
1992
  }, T = p.filter((h) => {
1993
1993
  const f = h.endX >= C.startLeft && h.endY >= C.startTop, g = h.startX <= C.endLeft && h.startY <= C.endTop;
1994
1994
  return f && g;
1995
1995
  }).map((h) => {
1996
- const f = C.startLeft > h.startX ? C.startLeft : h.startX, g = C.startTop > h.startY ? C.startTop : h.startY, s = C.endLeft < h.endX ? C.endLeft : h.endX, w = C.endTop < h.endY ? C.endTop : h.endY, b = s - f, y = w - g, x = +(b * y / (h.width * h.height) * 100).toFixed(2);
1996
+ const f = C.startLeft > h.startX ? C.startLeft : h.startX, g = C.startTop > h.startY ? C.startTop : h.startY, s = C.endLeft < h.endX ? C.endLeft : h.endX, w = C.endTop < h.endY ? C.endTop : h.endY, b = s - f, S = w - g, x = +(b * S / (h.width * h.height) * 100).toFixed(2);
1997
1997
  return {
1998
1998
  pageNumber: h.pageNumber,
1999
1999
  ratio: x
@@ -2011,16 +2011,16 @@ const ei = ln(({ widths: t, heights: e }) => {
2011
2011
  };
2012
2012
  }, [n, v]);
2013
2013
  }, _e = {
2014
- "rp-layout": "_rp-layout_zudyr_1",
2015
- "rp-content": "_rp-content_zudyr_5",
2016
- "rp-pages": "_rp-pages_zudyr_11",
2017
- "rp-container": "_rp-container_zudyr_16",
2018
- "rp-loader": "_rp-loader_zudyr_20",
2019
- "rp-theme-variables": "_rp-theme-variables_zudyr_24",
2020
- "rp-dark-mode": "_rp-dark-mode_zudyr_135"
2014
+ "rp-layout": "_rp-layout_1g4ff_1",
2015
+ "rp-content": "_rp-content_1g4ff_5",
2016
+ "rp-pages": "_rp-pages_1g4ff_11",
2017
+ "rp-container": "_rp-container_1g4ff_16",
2018
+ "rp-loader": "_rp-loader_1g4ff_20",
2019
+ "rp-theme-variables": "_rp-theme-variables_1g4ff_24",
2020
+ "rp-dark-mode": "_rp-dark-mode_1g4ff_135"
2021
2021
  }, In = $e(
2022
2022
  (t, e) => {
2023
- const { children: n, toolbarRef: o, style: r, className: a, ...l } = t, { customVariables: c, customDarkVariables: d } = yr(), { darkMode: u } = or();
2023
+ const { children: n, toolbarRef: o, style: r, className: a, ...l } = t, { customVariables: c, customDarkVariables: d } = Sr(), { darkMode: u } = or();
2024
2024
  return /* @__PURE__ */ i(
2025
2025
  "div",
2026
2026
  {
@@ -2055,7 +2055,7 @@ const ei = ln(({ widths: t, heights: e }) => {
2055
2055
  virtualScrollableElementRef: P,
2056
2056
  totalInnerDimensions: p,
2057
2057
  pageScrollElementRef: v
2058
- } = et(), _ = H(!0), { nextPage: S, prevPage: C, setFocusedPage: T, focusedPage: h } = ie(), { scrollMode: f } = Le(), { viewMode: g } = Ee(), s = H(null), { loading: w } = Q(), { passwordRequired: b } = rr(), { LoaderImageComponent: y } = hn(), E = H(
2058
+ } = et(), _ = H(!0), { nextPage: y, prevPage: C, setFocusedPage: T, focusedPage: h } = ie(), { scrollMode: f } = Le(), { viewMode: g } = Ee(), s = H(null), { loading: w } = Q(), { passwordRequired: b } = rr(), { LoaderImageComponent: S } = hn(), E = H(
2059
2059
  p
2060
2060
  ), x = H({
2061
2061
  viewMode: g,
@@ -2082,9 +2082,9 @@ const ei = ln(({ widths: t, heights: e }) => {
2082
2082
  }), [O]), Ne = N(
2083
2083
  (U) => {
2084
2084
  const V = document.activeElement !== o;
2085
- !D && V || (["ArrowUp", "ArrowLeft"].includes(U.key) ? (U.preventDefault(), C()) : ["ArrowDown", "ArrowRight"].includes(U.key) && (U.preventDefault(), S()));
2085
+ !D && V || (["ArrowUp", "ArrowLeft"].includes(U.key) ? (U.preventDefault(), C()) : ["ArrowDown", "ArrowRight"].includes(U.key) && (U.preventDefault(), y()));
2086
2086
  },
2087
- [S, C, D, f]
2087
+ [y, C, D, f]
2088
2088
  );
2089
2089
  F(() => (window.addEventListener("keydown", Ne), () => {
2090
2090
  window.removeEventListener("keydown", Ne);
@@ -2102,8 +2102,8 @@ const ei = ln(({ widths: t, heights: e }) => {
2102
2102
  (U, V) => {
2103
2103
  if (!P)
2104
2104
  return { scrollTop: 0, scrollLeft: 0 };
2105
- const Te = ee.current.scrollTop > V, ye = ee.current.scrollLeft > U;
2106
- return Te || ye ? ee.current : {
2105
+ const Te = ee.current.scrollTop > V, Se = ee.current.scrollLeft > U;
2106
+ return Te || Se ? ee.current : {
2107
2107
  scrollTop: P.scrollTop,
2108
2108
  scrollLeft: P.scrollLeft
2109
2109
  };
@@ -2119,14 +2119,14 @@ const ei = ln(({ widths: t, heights: e }) => {
2119
2119
  }, 100);
2120
2120
  return;
2121
2121
  }
2122
- const ye = U.scrollTop, ot = U.scrollLeft;
2122
+ const Se = U.scrollTop, ot = U.scrollLeft;
2123
2123
  if (!V.height || !V.width)
2124
2124
  return;
2125
2125
  R.current = !0;
2126
- const { height: Se, width: it } = V, { height: Ot, width: zt } = E.current;
2127
- if (Ot === Se && zt === it)
2126
+ const { height: ye, width: it } = V, { height: Ot, width: zt } = E.current;
2127
+ if (Ot === ye && zt === it)
2128
2128
  return;
2129
- const Xn = ye / Ot * Se, Yn = ot / zt * it, Jn = Math.round(Math.min(Xn, Se)) || 0, Qn = Math.round(Math.min(Yn, it)) || 0;
2129
+ const Xn = Se / Ot * ye, Yn = ot / zt * it, Jn = Math.round(Math.min(Xn, ye)) || 0, Qn = Math.round(Math.min(Yn, it)) || 0;
2130
2130
  z.current = setTimeout(() => {
2131
2131
  requestAnimationFrame(() => {
2132
2132
  l == null || l.scrollTo({
@@ -2144,10 +2144,10 @@ const ei = ln(({ widths: t, heights: e }) => {
2144
2144
  F(() => {
2145
2145
  clearTimeout(z.current);
2146
2146
  const U = Array.from({ length: L }).reduce(
2147
- (ye, ot, Se) => ye + I(Se),
2147
+ (Se, ot, ye) => Se + I(ye),
2148
2148
  0
2149
2149
  ), V = Array.from({ length: O }).reduce(
2150
- (ye, ot, Se) => ye + M(Se),
2150
+ (Se, ot, ye) => Se + M(ye),
2151
2151
  0
2152
2152
  ), Te = Pe(V, U);
2153
2153
  ee.current = Te, we(Te, { height: U, width: V }), m({
@@ -2237,7 +2237,7 @@ const ei = ln(({ widths: t, heights: e }) => {
2237
2237
  height: "100%",
2238
2238
  width: "100%"
2239
2239
  },
2240
- children: y && /* @__PURE__ */ i(y, {})
2240
+ children: S && /* @__PURE__ */ i(S, {})
2241
2241
  }
2242
2242
  ) }) }) }),
2243
2243
  b && /* @__PURE__ */ i(Vr, {})
@@ -2269,7 +2269,7 @@ const ei = ln(({ widths: t, heights: e }) => {
2269
2269
  }, []), _ = N(async () => {
2270
2270
  const h = a(l);
2271
2271
  h.success || c(h.currentPage.toString());
2272
- }, [a, l, e]), S = N(() => {
2272
+ }, [a, l, e]), y = N(() => {
2273
2273
  c(t.toString());
2274
2274
  }, [t]), C = N(
2275
2275
  (h) => {
@@ -2301,7 +2301,7 @@ const ei = ln(({ widths: t, heights: e }) => {
2301
2301
  dn,
2302
2302
  {
2303
2303
  onKeyDown: C,
2304
- onBlur: S,
2304
+ onBlur: y,
2305
2305
  onChange: v,
2306
2306
  value: l,
2307
2307
  className: ft["rp-page-input"]
@@ -2376,13 +2376,13 @@ var Lt = "DialogPortal", [li, Nn] = Rn(Lt, {
2376
2376
  forceMount: void 0
2377
2377
  }), On = (t) => {
2378
2378
  const { __scopeDialog: e, forceMount: n, children: o, container: r } = t, a = ce(Lt, e);
2379
- return /* @__PURE__ */ i(li, { scope: e, forceMount: n, children: B.Children.map(o, (l) => /* @__PURE__ */ i(yt, { present: n || a.open, children: /* @__PURE__ */ i(io, { asChild: !0, container: r, children: l }) })) });
2379
+ return /* @__PURE__ */ i(li, { scope: e, forceMount: n, children: B.Children.map(o, (l) => /* @__PURE__ */ i(St, { present: n || a.open, children: /* @__PURE__ */ i(io, { asChild: !0, container: r, children: l }) })) });
2380
2380
  };
2381
2381
  On.displayName = Lt;
2382
2382
  var Xe = "DialogOverlay", zn = B.forwardRef(
2383
2383
  (t, e) => {
2384
2384
  const n = Nn(Xe, t.__scopeDialog), { forceMount: o = n.forceMount, ...r } = t, a = ce(Xe, t.__scopeDialog);
2385
- return a.modal ? /* @__PURE__ */ i(yt, { present: o || a.open, children: /* @__PURE__ */ i(di, { ...r, ref: e }) }) : null;
2385
+ return a.modal ? /* @__PURE__ */ i(St, { present: o || a.open, children: /* @__PURE__ */ i(di, { ...r, ref: e }) }) : null;
2386
2386
  }
2387
2387
  );
2388
2388
  zn.displayName = Xe;
@@ -2406,7 +2406,7 @@ var di = B.forwardRef(
2406
2406
  ), Re = "DialogContent", Dn = B.forwardRef(
2407
2407
  (t, e) => {
2408
2408
  const n = Nn(Re, t.__scopeDialog), { forceMount: o = n.forceMount, ...r } = t, a = ce(Re, t.__scopeDialog);
2409
- return /* @__PURE__ */ i(yt, { present: o || a.open, children: a.modal ? /* @__PURE__ */ i(ui, { ...r, ref: e }) : /* @__PURE__ */ i(pi, { ...r, ref: e }) });
2409
+ return /* @__PURE__ */ i(St, { present: o || a.open, children: a.modal ? /* @__PURE__ */ i(ui, { ...r, ref: e }) : /* @__PURE__ */ i(pi, { ...r, ref: e }) });
2410
2410
  }
2411
2411
  );
2412
2412
  Dn.displayName = Re;
@@ -2570,7 +2570,7 @@ const xe = {
2570
2570
  creator: p,
2571
2571
  keywords: v,
2572
2572
  modifiedOn: _,
2573
- pdfProducer: S,
2573
+ pdfProducer: y,
2574
2574
  pdfVersion: C,
2575
2575
  pageCount: T
2576
2576
  } = t;
@@ -2592,7 +2592,7 @@ const xe = {
2592
2592
  value: _ ? kt(_) : ""
2593
2593
  },
2594
2594
  { separate: !0 },
2595
- { label: r == null ? void 0 : r.propertiesPDFProducerLabel, value: S },
2595
+ { label: r == null ? void 0 : r.propertiesPDFProducerLabel, value: y },
2596
2596
  { label: r == null ? void 0 : r.propertiesPDFVersionLabel, value: C },
2597
2597
  { label: r == null ? void 0 : r.propertiesPageCountLabel, value: T }
2598
2598
  ];
@@ -2605,11 +2605,11 @@ const xe = {
2605
2605
  /* @__PURE__ */ i(Pi, { asChild: !0, className: xe["rp-dialog-close"], children: /* @__PURE__ */ i(so, {}) })
2606
2606
  ] })
2607
2607
  ] }) }) });
2608
- }, yi = {
2608
+ }, Si = {
2609
2609
  "rp-other-tool-content": "_rp-other-tool-content_su718_1"
2610
- }, nn = ".pdf", Si = (t) => URL.createObjectURL(t), xi = async (t) => {
2610
+ }, nn = ".pdf", yi = (t) => URL.createObjectURL(t), xi = async (t) => {
2611
2611
  const n = await (await fetch(t)).blob();
2612
- return Si(n);
2612
+ return yi(n);
2613
2613
  }, Gn = () => {
2614
2614
  const { filename: t, pdfSrc: e } = Q(), { downloadFilename: n } = fr(), o = (a) => {
2615
2615
  const l = n || a;
@@ -2672,7 +2672,7 @@ const xe = {
2672
2672
  /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(zi, {}) }),
2673
2673
  /* @__PURE__ */ i("span", { children: r == null ? void 0 : r.lastPageLabel })
2674
2674
  ] }) }) }),
2675
- /* @__PURE__ */ i(St, {})
2675
+ /* @__PURE__ */ i(yt, {})
2676
2676
  ] }) : null;
2677
2677
  }, Ai = () => {
2678
2678
  const { container: t, pagesRef: e } = ge(), { isSmallScreen: n } = Ce(), {
@@ -2685,7 +2685,7 @@ const xe = {
2685
2685
  jumpNavigationTool: u,
2686
2686
  printTool: m,
2687
2687
  fullscreenTool: P
2688
- } = ve(), { localeMessages: p } = se(), [v, _] = $(0), S = H(
2688
+ } = ve(), { localeMessages: p } = se(), [v, _] = $(0), y = H(
2689
2689
  new ResizeObserver((T) => {
2690
2690
  _(T[0].contentRect.height);
2691
2691
  })
@@ -2703,8 +2703,8 @@ const xe = {
2703
2703
  u,
2704
2704
  n
2705
2705
  ]);
2706
- return F(() => (e && S.current.observe(e), () => {
2707
- S.current.disconnect();
2706
+ return F(() => (e && y.current.observe(e), () => {
2707
+ y.current.disconnect();
2708
2708
  }), [e]), C ? /* @__PURE__ */ W(uo, { children: [
2709
2709
  /* @__PURE__ */ i(
2710
2710
  mn,
@@ -2717,7 +2717,7 @@ const xe = {
2717
2717
  "div",
2718
2718
  {
2719
2719
  style: { maxHeight: `${v}px`, overflow: "auto" },
2720
- className: yi["rp-other-tool-content"],
2720
+ className: Si["rp-other-tool-content"],
2721
2721
  "data-rp": "moreOptionsDropdown",
2722
2722
  children: [
2723
2723
  n && /* @__PURE__ */ W(Ke, { children: [
@@ -2725,7 +2725,7 @@ const xe = {
2725
2725
  /* @__PURE__ */ i(qn, {}),
2726
2726
  /* @__PURE__ */ i(jn, {}),
2727
2727
  /* @__PURE__ */ i(gn, {}),
2728
- /* @__PURE__ */ i(St, {})
2728
+ /* @__PURE__ */ i(yt, {})
2729
2729
  ] }),
2730
2730
  /* @__PURE__ */ i(Di, {}),
2731
2731
  /* @__PURE__ */ i(ho, {}),
@@ -2774,7 +2774,7 @@ const xe = {
2774
2774
  const w = Math.floor(s / 25) * 25;
2775
2775
  return Math.min(w + 25, mt);
2776
2776
  });
2777
- }, [e]), S = N(() => {
2777
+ }, [e]), y = N(() => {
2778
2778
  e((s) => {
2779
2779
  const w = Math.ceil(s / 25) * 25;
2780
2780
  return Math.min(w - 25, mt);
@@ -2784,9 +2784,9 @@ const xe = {
2784
2784
  return s ? s.page.getViewport({ scale: 1, rotation: l + s.defaultRotation }) : null;
2785
2785
  }, [c, a, l]), f = N(
2786
2786
  (s) => {
2787
- const w = ((h == null ? void 0 : h.width) || 0) + 2 * Mt, b = ((h == null ? void 0 : h.height) || 0) + 2 * Mt, y = (o == null ? void 0 : o.clientWidth) || 0, E = (o == null ? void 0 : o.clientHeight) || 0, x = Co(
2787
+ const w = ((h == null ? void 0 : h.width) || 0) + 2 * Mt, b = ((h == null ? void 0 : h.height) || 0) + 2 * Mt, S = (o == null ? void 0 : o.clientWidth) || 0, E = (o == null ? void 0 : o.clientHeight) || 0, x = Co(
2788
2788
  s,
2789
- y,
2789
+ S,
2790
2790
  E,
2791
2791
  w,
2792
2792
  b,
@@ -2808,7 +2808,7 @@ const xe = {
2808
2808
  re,
2809
2809
  {
2810
2810
  disabled: C,
2811
- onClick: S,
2811
+ onClick: y,
2812
2812
  "aria-label": u == null ? void 0 : u.zoomOutTooltip,
2813
2813
  children: /* @__PURE__ */ i(Hi, {})
2814
2814
  }
@@ -2844,7 +2844,7 @@ const xe = {
2844
2844
  /* @__PURE__ */ i(be, { onClick: () => g(at.PAGE_FIT), children: u == null ? void 0 : u.zoomPageFit }),
2845
2845
  /* @__PURE__ */ i(be, { onClick: () => g(at.PAGE_WIDTH), children: u == null ? void 0 : u.zoomPageWidth })
2846
2846
  ] }),
2847
- /* @__PURE__ */ i(St, {}),
2847
+ /* @__PURE__ */ i(yt, {}),
2848
2848
  /* @__PURE__ */ i(Ke, { children: ki.map((s) => /* @__PURE__ */ W(be, { onClick: () => g(s), children: [
2849
2849
  s,
2850
2850
  " %"
@@ -2901,7 +2901,7 @@ const xe = {
2901
2901
  nextMatch: p,
2902
2902
  prevMatch: v,
2903
2903
  search: _
2904
- } = xt(), { searchTool: S = !0 } = ve(), [C, T] = $(_), { localeMessages: h } = se(), { isSmallScreen: f } = Ce(), g = N(() => {
2904
+ } = xt(), { searchTool: y = !0 } = ve(), [C, T] = $(_), { localeMessages: h } = se(), { isSmallScreen: f } = Ce(), g = N(() => {
2905
2905
  n(!0);
2906
2906
  }, []), s = N(() => {
2907
2907
  u(""), T(""), n(!1);
@@ -2913,7 +2913,7 @@ const xe = {
2913
2913
  I.key === "Escape" && e && s();
2914
2914
  },
2915
2915
  [e]
2916
- ), y = N(
2916
+ ), S = N(
2917
2917
  (I) => {
2918
2918
  I.shiftKey && I.key === "Enter" ? v() : I.key === "Enter" && _ !== C ? u(C) : I.key === "Enter" && p();
2919
2919
  },
@@ -2941,7 +2941,7 @@ const xe = {
2941
2941
  );
2942
2942
  return F(() => {
2943
2943
  s();
2944
- }, [o, s]), S ? /* @__PURE__ */ i(me, { children: /* @__PURE__ */ i(
2944
+ }, [o, s]), y ? /* @__PURE__ */ i(me, { children: /* @__PURE__ */ i(
2945
2945
  Hr,
2946
2946
  {
2947
2947
  open: e,
@@ -2954,7 +2954,7 @@ const xe = {
2954
2954
  dn,
2955
2955
  {
2956
2956
  value: C,
2957
- onKeyDown: y,
2957
+ onKeyDown: S,
2958
2958
  onChange: E,
2959
2959
  icon: /* @__PURE__ */ i(an, {}),
2960
2960
  placeholder: h == null ? void 0 : h.searchInputPlaceholder,
@@ -3082,11 +3082,11 @@ const xe = {
3082
3082
  return F(() => {
3083
3083
  o > c ? d(o) : n && m.current !== o && (ji(u.current, o), m.current = o);
3084
3084
  }, [o, c, d, n, P]), gr(u.current, p), /* @__PURE__ */ i("div", { ref: u, className: sn["rp-thumbnails-container"], children: /* @__PURE__ */ i("div", { className: sn["rp-thumbnails"], children: n ? P.map((v, _) => {
3085
- var S, C;
3085
+ var y, C;
3086
3086
  return /* @__PURE__ */ i(
3087
3087
  Bi,
3088
3088
  {
3089
- isFocused: o === ((S = v.page) == null ? void 0 : S.pageNumber),
3089
+ isFocused: o === ((y = v.page) == null ? void 0 : y.pageNumber),
3090
3090
  pageNumber: (C = v.page) == null ? void 0 : C.pageNumber,
3091
3091
  thumbnailSrc: v.thumbnailSrc,
3092
3092
  loading: v.loading,
@@ -3144,7 +3144,7 @@ const xe = {
3144
3144
  onLoaded: d,
3145
3145
  cleanupOnLoaded: u,
3146
3146
  onLayoutWidthChange: m
3147
- } = t, [P, p] = $(null), { setContainer: v, setContentRef: _ } = ge(), { loading: S } = Q(), { LoaderImageComponent: C } = hn();
3147
+ } = t, [P, p] = $(null), { setContainer: v, setContentRef: _ } = ge(), { loading: y } = Q(), { LoaderImageComponent: C } = hn();
3148
3148
  return F(() => (d && d(), () => {
3149
3149
  u && u();
3150
3150
  }), [d, u]), /* @__PURE__ */ i(In, { toolbarRef: P, ref: e, children: /* @__PURE__ */ i(Tr, { mobileWidth: c, onLayoutWidthChange: m, children: /* @__PURE__ */ i(wr, { slots: o, children: /* @__PURE__ */ i(_r, { icons: r, children: /* @__PURE__ */ W(br, { getContainerRef: v, style: a, className: l, children: [
@@ -3158,7 +3158,7 @@ const xe = {
3158
3158
  ] }),
3159
3159
  /* @__PURE__ */ i(Pr, {})
3160
3160
  ] }),
3161
- S ? /* @__PURE__ */ i(
3161
+ y ? /* @__PURE__ */ i(
3162
3162
  "div",
3163
3163
  {
3164
3164
  className: _e["rp-loader"],
@@ -3214,9 +3214,9 @@ export {
3214
3214
  tt as d,
3215
3215
  xt as e,
3216
3216
  wn as f,
3217
- yo as g,
3217
+ So as g,
3218
3218
  _n as h,
3219
- So as i,
3219
+ yo as i,
3220
3220
  bn as j,
3221
3221
  xo as k,
3222
3222
  Cn as l,