@react-pdf-kit/viewer 2.7.1-rc.1 → 2.7.2-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/dist/{AnnotationLayer-CAIvKf_O.js → AnnotationLayer-SQbmx6wX.js} +1 -1
  2. package/dist/{Button-DBu3SaMk.js → Button-BNlmxWrV.js} +1 -1
  3. package/dist/{Checkbox-Cl-BpoFJ.js → Checkbox-Brta-YKG.js} +4 -4
  4. package/dist/{Combination-11kyhTGt.js → Combination-DqNkTtir.js} +15 -15
  5. package/dist/{Container-BuamPhw4.js → Container-BxNZX82X.js} +1 -1
  6. package/dist/{DocumentDialog-cRr9sSSH.js → DocumentDialog-C9G7lVTh.js} +4 -4
  7. package/dist/{DropDown-D6c4mnJL.js → DropDown-DikL-krI.js} +2 -2
  8. package/dist/{Input-Dpo1Xfxe.js → Input-DjSWOjCI.js} +1 -1
  9. package/dist/{LoaderIcon-B3ddfd0D.js → LoaderIcon-D9YjinGf.js} +1 -1
  10. package/dist/{LoadingIndicator-Bzzf28Xv.js → LoadingIndicator-B_Jsf8No.js} +8 -8
  11. package/dist/{MenuItem-BP_RjUuW.js → MenuItem-BJDWfzAw.js} +2 -2
  12. package/dist/{MenuSeparator-Df2Dzzea.js → MenuSeparator-D1H5l8Ej.js} +1 -1
  13. package/dist/{PaginationContext-Cwf8sCpK.js → PaginationContext-B3qzCYJu.js} +46 -53
  14. package/dist/{PasswordModal-BtHVvrMg.js → PasswordModal-CB9Rd2zJ.js} +1 -1
  15. package/dist/{RPDropFileZone-Bq1bzWmO.js → RPDropFileZone-D1C3ouep.js} +1 -1
  16. package/dist/RPLayout.module-CkUgQ1Fi.js +14 -0
  17. package/dist/{RPPage-C_r8aeTc.js → RPPage-BdoE0RrK.js} +1 -1
  18. package/dist/{RPPages-DeA52_rv.js → RPPages-Ct1XvFTS.js} +12 -12
  19. package/dist/RPTooltip-ZZoFqP7C.js +381 -0
  20. package/dist/SearchTool.module-F4m4ggTb.js +17 -0
  21. package/dist/{Thumbnail-DyRfHsAh.js → Thumbnail-BNpCO-jm.js} +3 -3
  22. package/dist/{Thumbnails-Cbr54TOa.js → Thumbnails-DYvhzEUD.js} +2 -2
  23. package/dist/assets/LoadingIndicator.css +1 -1
  24. package/dist/assets/RPLayout.css +1 -1
  25. package/dist/assets/SearchTool.css +1 -1
  26. package/dist/assets/style.js +1 -1
  27. package/dist/{clsx-DSGuh5YW.js → clsx-B7LyVm5O.js} +1 -1
  28. package/dist/components/RPController.js +1 -1
  29. package/dist/components/RPDropFileZone.js +1 -1
  30. package/dist/components/RPPages.js +1 -1
  31. package/dist/components/RPProvider.js +1 -1
  32. package/dist/components/icons/LoaderIcon.js +1 -1
  33. package/dist/components/layout/Container.js +1 -1
  34. package/dist/components/layout/LayoutContainer.js +2 -2
  35. package/dist/components/layout/LayoutWrapper.js +1 -1
  36. package/dist/components/layout/RPDefaultLayout.js +3 -3
  37. package/dist/components/layout/RPLayout.js +3 -3
  38. package/dist/components/layout/sidebar/RPSidebar.js +3 -3
  39. package/dist/components/layout/sidebar/Thumbnail.js +1 -1
  40. package/dist/components/layout/sidebar/Thumbnails.js +1 -1
  41. package/dist/components/layout/toolbar/DarkModeTool.js +2 -2
  42. package/dist/components/layout/toolbar/DocumentDialog.js +1 -1
  43. package/dist/components/layout/toolbar/DocumentProperties.js +3 -3
  44. package/dist/components/layout/toolbar/FileDownloadTool.js +3 -3
  45. package/dist/components/layout/toolbar/FileUploadTool.js +3 -3
  46. package/dist/components/layout/toolbar/FullScreenTool.js +3 -3
  47. package/dist/components/layout/toolbar/MenuItem.js +1 -1
  48. package/dist/components/layout/toolbar/MenuSeparator.js +1 -1
  49. package/dist/components/layout/toolbar/MostPageTool.js +5 -5
  50. package/dist/components/layout/toolbar/OtherTool.js +6 -6
  51. package/dist/components/layout/toolbar/Paginate.js +4 -4
  52. package/dist/components/layout/toolbar/PrintTool.js +3 -3
  53. package/dist/components/layout/toolbar/RPMenuItem.js +3 -3
  54. package/dist/components/layout/toolbar/RPMoreOptions.js +6 -6
  55. package/dist/components/layout/toolbar/RPToolbar.js +1 -1
  56. package/dist/components/layout/toolbar/RotateTool.js +4 -4
  57. package/dist/components/layout/toolbar/ScrollModeTool.js +3 -3
  58. package/dist/components/layout/toolbar/SearchCloseButton.js +3 -3
  59. package/dist/components/layout/toolbar/SearchResultNavigator.js +3 -3
  60. package/dist/components/layout/toolbar/SearchTool.js +134 -122
  61. package/dist/components/layout/toolbar/SelectionModeTool.js +4 -4
  62. package/dist/components/layout/toolbar/ThumbnailTool.js +2 -2
  63. package/dist/components/layout/toolbar/ToolbarCustom.js +2 -2
  64. package/dist/components/layout/toolbar/ToolbarDefault.js +2 -2
  65. package/dist/components/layout/toolbar/ViewModeTool.js +4 -4
  66. package/dist/components/layout/toolbar/ZoomTool.js +7 -7
  67. package/dist/components/layout/toolbar/tools/DocumentPropertiesTool.js +3 -3
  68. package/dist/components/layout/toolbar/tools/DualPageTool.js +2 -2
  69. package/dist/components/layout/toolbar/tools/DualPageWithCoverTool.js +1 -1
  70. package/dist/components/layout/toolbar/tools/FileDownloadTool.js +2 -2
  71. package/dist/components/layout/toolbar/tools/FileUploadTool.js +2 -2
  72. package/dist/components/layout/toolbar/tools/FirstPageTool.js +1 -1
  73. package/dist/components/layout/toolbar/tools/FullScreenTool.js +2 -2
  74. package/dist/components/layout/toolbar/tools/HorizontalScrollingTool.js +2 -2
  75. package/dist/components/layout/toolbar/tools/InputPageTool.js +3 -3
  76. package/dist/components/layout/toolbar/tools/LastPageTool.js +1 -1
  77. package/dist/components/layout/toolbar/tools/NextPageTool.js +3 -3
  78. package/dist/components/layout/toolbar/tools/PageScrollingTool.js +2 -2
  79. package/dist/components/layout/toolbar/tools/PreviousPageTool.js +3 -3
  80. package/dist/components/layout/toolbar/tools/PrintTool.js +2 -2
  81. package/dist/components/layout/toolbar/tools/RotateClockwiseTool.js +2 -2
  82. package/dist/components/layout/toolbar/tools/RotateCounterclockwiseTool.js +2 -2
  83. package/dist/components/layout/toolbar/tools/SelectionModeSwitcherTool.js +2 -2
  84. package/dist/components/layout/toolbar/tools/SinglePageTool.js +2 -2
  85. package/dist/components/layout/toolbar/tools/ThemeSwitcherTool.js +2 -2
  86. package/dist/components/layout/toolbar/tools/ThumbnailTool.js +2 -2
  87. package/dist/components/layout/toolbar/tools/VerticalScrollingTool.js +2 -2
  88. package/dist/components/layout/toolbar/tools/ZoomInTool.js +2 -2
  89. package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +6 -6
  90. package/dist/components/layout/toolbar/tools/ZoomOutTool.js +2 -2
  91. package/dist/components/layout/toolbar/tools/more-options/DocumentProperties.js +2 -2
  92. package/dist/components/layout/toolbar/tools/more-options/FileDownloadTool.js +2 -2
  93. package/dist/components/layout/toolbar/tools/more-options/FileUploadTool.js +2 -2
  94. package/dist/components/layout/toolbar/tools/more-options/FullScreenTool.js +2 -2
  95. package/dist/components/layout/toolbar/tools/more-options/MostPageTool.js +5 -5
  96. package/dist/components/layout/toolbar/tools/more-options/PrintTool.js +2 -2
  97. package/dist/components/layout/toolbar/tools/more-options/RotateTool.js +4 -4
  98. package/dist/components/layout/toolbar/tools/more-options/ScrollModeTool.js +3 -3
  99. package/dist/components/layout/toolbar/tools/more-options/SelectionModeTool.js +4 -4
  100. package/dist/components/layout/toolbar/tools/more-options/ViewModeTool.js +4 -4
  101. package/dist/components/page/AnnotationLayer.js +1 -1
  102. package/dist/components/page/DualPage.js +2 -2
  103. package/dist/components/page/DualPageWithCover.js +2 -2
  104. package/dist/components/page/RPPage.js +1 -1
  105. package/dist/components/page/SinglePage.js +2 -2
  106. package/dist/components/ui/Button.js +1 -1
  107. package/dist/components/ui/Checkbox.js +1 -1
  108. package/dist/components/ui/DropDown.js +1 -1
  109. package/dist/components/ui/Input.js +1 -1
  110. package/dist/components/ui/LoadingIndicator.js +1 -1
  111. package/dist/components/ui/PasswordModal.js +1 -1
  112. package/dist/components/ui/RPTooltip.js +1 -1
  113. package/dist/contexts/ElementThumbnailContext.js +1 -1
  114. package/dist/contexts/LoaderContext.js +1 -1
  115. package/dist/contexts/PaginationContext.js +1 -1
  116. package/dist/contexts/RenderQueueProvider.js +1 -1
  117. package/dist/{de_DE-DwUvXUWH.js → de_DE-C1OrwQKj.js} +18 -0
  118. package/dist/dist-7FA4Do6I.js +1286 -0
  119. package/dist/{dist-BfuBBQ14.js → dist-BRVqFn7R.js} +6 -6
  120. package/dist/{dist-CHiIt8ey.js → dist-C3WNMuW2.js} +2 -2
  121. package/dist/dist-CKteKPPA.js +947 -0
  122. package/dist/{dist-CgoP608h.js → dist-bK-AHWLF.js} +7 -7
  123. package/dist/icons.js +1 -1
  124. package/dist/{main-BVY8P7qz.js → main-CnL3zQcy.js} +3 -3
  125. package/dist/main.js +5 -5
  126. package/dist/style-DCakeEMr.js +5 -0
  127. package/dist/types/locales/de_DE.json.d.ts +3 -0
  128. package/dist/types/locales/en_US.json.d.ts +3 -0
  129. package/dist/types/locales/it_IT.json.d.ts +3 -0
  130. package/dist/types/locales/pt_PT.json.d.ts +3 -0
  131. package/dist/types/locales/th_TH.json.d.ts +3 -0
  132. package/dist/types/locales/zh_CN.json.d.ts +3 -0
  133. package/dist/types/utils/types.d.ts +5 -0
  134. package/dist/utils/hooks/useLicense.js +1 -1
  135. package/dist/utils/hooks/useLocalization.js +1 -1
  136. package/dist/utils/hooks/usePaginate.js +1 -1
  137. package/dist/utils/hooks/usePresentPage.js +23 -19
  138. package/dist/utils/hooks/useScrollToPage.js +1 -1
  139. package/dist/utils/hooks/useSearch.js +1 -1
  140. package/dist/utils/types.js +2 -2
  141. package/package.json +1 -1
  142. package/dist/RPLayout.module-Vc3h4xxS.js +0 -14
  143. package/dist/RPTooltip-B4KrW-_f.js +0 -568
  144. package/dist/SearchTool.module-DUkVXfOn.js +0 -16
  145. package/dist/dist-Ch2NetCM.js +0 -1134
  146. package/dist/floating-ui.react-dom-DWNOhDoc.js +0 -1096
  147. package/dist/style-C8T5x1fE.js +0 -5
@@ -2,7 +2,7 @@ import { AnnotationSubType as e } from "./utils/types.js";
2
2
  import { useDocumentContext as t } from "./contexts/RPDocumentContext.js";
3
3
  import { useInitialStateContext as n } from "./contexts/InitialStateContext.js";
4
4
  import { useScrollModeContext as r } from "./contexts/ScrollModeContext.js";
5
- import { r as i } from "./PaginationContext-Cwf8sCpK.js";
5
+ import { r as i } from "./PaginationContext-B3qzCYJu.js";
6
6
  import { usePrintContext as a } from "./contexts/PrintContext.js";
7
7
  import { SimpleLinkService as o } from "./utils/link_service.js";
8
8
  import { annotationEventsHandler as s, bindLayerEvents as c, enhanceLinkAccessibility as l, fixTabIndexAccessibility as u, handleAnnotationWidget as d, insertDateText as f, unbindLayerEvents as p } from "./utils/annotations.js";
@@ -1,4 +1,4 @@
1
- import { t as e } from "./clsx-DSGuh5YW.js";
1
+ import { t as e } from "./clsx-B7LyVm5O.js";
2
2
  import { withRef as t } from "./utils/withRef.js";
3
3
  import { jsx as n } from "react/jsx-runtime";
4
4
  import './assets/Button.css';//#region lib/components/ui/Button.module.css
@@ -1,9 +1,9 @@
1
- import { d as e, f as t, i as n, l as r, n as i, t as a } from "./dist-CgoP608h.js";
2
- import { t as o } from "./dist-CHiIt8ey.js";
1
+ import { d as e, f as t, i as n, l as r, n as i, t as a } from "./dist-bK-AHWLF.js";
2
+ import { t as o } from "./dist-C3WNMuW2.js";
3
3
  import { CheckIcon as s } from "./components/icons/CheckIcon.js";
4
4
  import * as c from "react";
5
5
  import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
6
- import './assets/Checkbox.css';//#region node_modules/@radix-ui/react-use-previous/dist/index.mjs
6
+ import './assets/Checkbox.css';//#region node_modules/.pnpm/@radix-ui+react-use-previous@1.1.1_@types+react@18.3.27_react@19.2.0/node_modules/@radix-ui/react-use-previous/dist/index.mjs
7
7
  function f(e) {
8
8
  let t = c.useRef({
9
9
  value: e,
@@ -12,7 +12,7 @@ function f(e) {
12
12
  return c.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
13
13
  }
14
14
  //#endregion
15
- //#region node_modules/@radix-ui/react-checkbox/dist/index.mjs
15
+ //#region node_modules/.pnpm/@radix-ui+react-checkbox@1.3.3_@types+react-dom@18.3.7_@types+react@18.3.27__@types+rea_cb5de23141bd54a8bfa4180b5db14bd0/node_modules/@radix-ui/react-checkbox/dist/index.mjs
16
16
  var p = "Checkbox", [m, h] = r(p), [g, _] = m(p);
17
17
  function v(e) {
18
18
  let { __scopeCheckbox: t, checked: n, children: r, defaultChecked: i, disabled: o, form: s, name: l, onCheckedChange: d, required: f, value: m = "on", internal_do_not_use_render: h } = e, [_, v] = a({
@@ -1,9 +1,9 @@
1
- import { d as e, i as t } from "./dist-CgoP608h.js";
2
- import { i as n } from "./dist-BfuBBQ14.js";
1
+ import { d as e, i as t } from "./dist-bK-AHWLF.js";
2
+ import { i as n } from "./dist-BRVqFn7R.js";
3
3
  import * as r from "react";
4
4
  import { useState as i } from "react";
5
5
  import { jsx as a } from "react/jsx-runtime";
6
- //#region node_modules/@radix-ui/react-focus-guards/dist/index.mjs
6
+ //#region node_modules/.pnpm/@radix-ui+react-focus-guards@1.1.3_@types+react@18.3.27_react@19.2.0/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
7
7
  var o = 0;
8
8
  function s() {
9
9
  r.useEffect(() => {
@@ -18,7 +18,7 @@ function c() {
18
18
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
19
19
  }
20
20
  //#endregion
21
- //#region node_modules/@radix-ui/react-focus-scope/dist/index.mjs
21
+ //#region node_modules/.pnpm/@radix-ui+react-focus-scope@1.1.7_@types+react-dom@18.3.7_@types+react@18.3.27__@types+_c9bbb58fdda48c8c67e5a2aa62d74a2f/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
22
22
  var l = "focusScope.autoFocusOnMount", u = "focusScope.autoFocusOnUnmount", d = {
23
23
  bubbles: !1,
24
24
  cancelable: !0
@@ -157,7 +157,7 @@ function w(e) {
157
157
  return e.filter((e) => e.tagName !== "A");
158
158
  }
159
159
  //#endregion
160
- //#region node_modules/aria-hidden/dist/es2015/index.js
160
+ //#region node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js
161
161
  var T = function(e) {
162
162
  return typeof document > "u" ? null : (Array.isArray(e) ? e[0] : e).ownerDocument.body;
163
163
  }, E = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap(), O = {}, k = 0, A = function(e) {
@@ -217,15 +217,15 @@ function re(e, t, n) {
217
217
  return e.concat(a || Array.prototype.slice.call(t));
218
218
  }
219
219
  //#endregion
220
- //#region node_modules/react-remove-scroll-bar/dist/es2015/constants.js
220
+ //#region node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@18.3.27_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.js
221
221
  var N = "right-scroll-bar-position", P = "width-before-scroll-bar", ie = "with-scroll-bars-hidden", ae = "--removed-body-scroll-bar-size";
222
222
  //#endregion
223
- //#region node_modules/use-callback-ref/dist/es2015/assignRef.js
223
+ //#region node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@18.3.27_react@19.2.0/node_modules/use-callback-ref/dist/es2015/assignRef.js
224
224
  function F(e, t) {
225
225
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
226
226
  }
227
227
  //#endregion
228
- //#region node_modules/use-callback-ref/dist/es2015/useRef.js
228
+ //#region node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@18.3.27_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useRef.js
229
229
  function oe(e, t) {
230
230
  var n = i(function() {
231
231
  return {
@@ -245,7 +245,7 @@ function oe(e, t) {
245
245
  return n.callback = t, n.facade;
246
246
  }
247
247
  //#endregion
248
- //#region node_modules/use-callback-ref/dist/es2015/useMergeRef.js
248
+ //#region node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@18.3.27_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.js
249
249
  var se = typeof window < "u" ? r.useLayoutEffect : r.useEffect, ce = /* @__PURE__ */ new WeakMap();
250
250
  function le(e, t) {
251
251
  var n = oe(t || null, function(t) {
@@ -267,7 +267,7 @@ function le(e, t) {
267
267
  }, [e]), n;
268
268
  }
269
269
  //#endregion
270
- //#region node_modules/use-sidecar/dist/es2015/medium.js
270
+ //#region node_modules/.pnpm/use-sidecar@1.1.3_@types+react@18.3.27_react@19.2.0/node_modules/use-sidecar/dist/es2015/medium.js
271
271
  function ue(e) {
272
272
  return e;
273
273
  }
@@ -334,7 +334,7 @@ function fe(e) {
334
334
  }, e), t;
335
335
  }
336
336
  //#endregion
337
- //#region node_modules/use-sidecar/dist/es2015/exports.js
337
+ //#region node_modules/.pnpm/use-sidecar@1.1.3_@types+react@18.3.27_react@19.2.0/node_modules/use-sidecar/dist/es2015/exports.js
338
338
  var I = function(e) {
339
339
  var t = e.sideCar, n = M(e, ["sideCar"]);
340
340
  if (!t) throw Error("Sidecar: please provide `sideCar` property to import the right car");
@@ -347,7 +347,7 @@ function pe(e, t) {
347
347
  return e.useMedium(t), I;
348
348
  }
349
349
  //#endregion
350
- //#region node_modules/react-remove-scroll/dist/es2015/medium.js
350
+ //#region node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@18.3.27_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/medium.js
351
351
  var L = fe(), R = function() {}, z = r.forwardRef(function(e, t) {
352
352
  var n = r.useRef(null), i = r.useState({
353
353
  onScrollCapture: R,
@@ -393,13 +393,13 @@ z.defaultProps = {
393
393
  zeroRight: N
394
394
  };
395
395
  //#endregion
396
- //#region node_modules/get-nonce/dist/es2015/index.js
396
+ //#region node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js
397
397
  var B, me = function() {
398
398
  if (B) return B;
399
399
  if (typeof __webpack_nonce__ < "u") return __webpack_nonce__;
400
400
  };
401
401
  //#endregion
402
- //#region node_modules/react-style-singleton/dist/es2015/singleton.js
402
+ //#region node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@18.3.27_react@19.2.0/node_modules/react-style-singleton/dist/es2015/singleton.js
403
403
  function he() {
404
404
  if (!document) return null;
405
405
  var e = document.createElement("style");
@@ -683,7 +683,7 @@ function Be(e) {
683
683
  return t;
684
684
  }
685
685
  //#endregion
686
- //#region node_modules/react-remove-scroll/dist/es2015/sidecar.js
686
+ //#region node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@18.3.27_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/sidecar.js
687
687
  var Ve = pe(L, ze), He = r.forwardRef(function(e, t) {
688
688
  return r.createElement(z, j({}, e, {
689
689
  ref: t,
@@ -1,5 +1,5 @@
1
1
  import { useLocalizationContext as e } from "./contexts/LocalizationContext.js";
2
- import { t } from "./clsx-DSGuh5YW.js";
2
+ import { t } from "./clsx-B7LyVm5O.js";
3
3
  import { jsx as n } from "react/jsx-runtime";
4
4
  import './assets/Container.css';//#region lib/components/layout/Container.module.css
5
5
  var r = { "rp-container": "_rp-container_f63gc_1" }, i = (e) => e.replace(/_/g, "-"), a = (a) => {
@@ -3,15 +3,15 @@ import { useLayoutContainer as t } from "./contexts/LayoutContainerContext.js";
3
3
  import { useLocalizationContext as n } from "./contexts/LocalizationContext.js";
4
4
  import { useOtherToolContext as r } from "./contexts/OtherToolContext.js";
5
5
  import { dateFormatter as i } from "./utils/dateFormatter.js";
6
- import { c as a, d as o, f as s, i as c, l, n as u, o as d, t as f } from "./dist-CgoP608h.js";
7
- import { n as p, r as m, t as h } from "./dist-BfuBBQ14.js";
8
- import { i as g, n as ee, r as _, t as v } from "./Combination-11kyhTGt.js";
6
+ import { c as a, d as o, f as s, i as c, l, n as u, o as d, t as f } from "./dist-bK-AHWLF.js";
7
+ import { n as p, r as m, t as h } from "./dist-BRVqFn7R.js";
8
+ import { i as g, n as ee, r as _, t as v } from "./Combination-DqNkTtir.js";
9
9
  import { CloseIcon as te } from "./components/icons/CloseIcon.js";
10
10
  import { t as y } from "./PropertyItem-evJWWmWZ.js";
11
11
  import * as b from "react";
12
12
  import { useMemo as x } from "react";
13
13
  import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
14
- import './assets/DocumentDialog.css';//#region node_modules/@radix-ui/react-dialog/dist/index.mjs
14
+ import './assets/DocumentDialog.css';//#region node_modules/.pnpm/@radix-ui+react-dialog@1.1.15_@types+react-dom@18.3.7_@types+react@18.3.27__@types+reac_2e279b9f45eaccf149bfa3a9b35ce50c/node_modules/@radix-ui/react-dialog/dist/index.mjs
15
15
  var T = "Dialog", [E, ne] = l(T), [D, O] = E(T), k = (e) => {
16
16
  let { __scopeDialog: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: o = !0 } = e, s = b.useRef(null), c = b.useRef(null), [l, u] = f({
17
17
  prop: r,
@@ -1,5 +1,5 @@
1
- import { t as e } from "./clsx-DSGuh5YW.js";
2
- import { a as t, i as n, s as r, t as i } from "./dist-Ch2NetCM.js";
1
+ import { t as e } from "./clsx-B7LyVm5O.js";
2
+ import { a as t, i as n, s as r, t as i } from "./dist-CKteKPPA.js";
3
3
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
4
4
  import './assets/DropDown.css';var s = {
5
5
  "rp-dropdown-content": "_rp-dropdown-content_1vzkq_1",
@@ -1,4 +1,4 @@
1
- import { t as e } from "./clsx-DSGuh5YW.js";
1
+ import { t as e } from "./clsx-B7LyVm5O.js";
2
2
  import { withRef as t } from "./utils/withRef.js";
3
3
  import { useId as n } from "react";
4
4
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as e } from "./clsx-DSGuh5YW.js";
1
+ import { t as e } from "./clsx-B7LyVm5O.js";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
3
  import './assets/LoaderIcon.css';//#region lib/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v+DRRCzWJWkgTjembHDNv/u3P0GBrySoD77xoYMZvGWhODBStmT7SSLXqA9HenDetlQLuJycCI2T3yBY2kjPx7EwseeKcHRwo7dtP3trBKZBTBmCtdLzq+X0MCwmT26thTk2iMW0Kg+BU0oK+OBEwixevMqve2WtgeAfOuqI12ja8H6GBtCc/lRwJORMCEZIR2jsXNdNxUUNTZd+0ZOhEwpLjlZNiA48mXdfh0zR5umOd74iGoZ1und/P0O7lhY4hvKnphkiPC6/Xo8+TlIMiFb4YMG7a72GYVhab/NRdu2FPcwPtdo6FZptAWyEZXHlPOcsenQY5LQwcTwjQtuIIzCPdaqfFEgUYsynEoCAP+TWjbZiFMZ2mnWDvnc42+5MAV9Dev37Rw1szPfQss6cTsLHyG7LNE1I07Q7WAAAAAElFTkSuQmCC", r = {
@@ -1,15 +1,15 @@
1
1
  import { useLocalizationContext as e } from "./contexts/LocalizationContext.js";
2
2
  import { usePrintContext as t } from "./contexts/PrintContext.js";
3
- import { t as n } from "./clsx-DSGuh5YW.js";
3
+ import { t as n } from "./clsx-B7LyVm5O.js";
4
4
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
5
  import './assets/LoadingIndicator.css';var a = {
6
- "rp-loading-overlay": "_rp-loading-overlay_wazy2_1",
7
- "rp-loading-modal": "_rp-loading-modal_wazy2_14",
8
- "rp-loading-title": "_rp-loading-title_wazy2_27",
9
- "rp-loading-progress-bar": "_rp-loading-progress-bar_wazy2_35",
10
- "rp-loading-progress": "_rp-loading-progress_wazy2_35",
11
- "rp-loading-cancel-button": "_rp-loading-cancel-button_wazy2_55",
12
- loading: "_loading_wazy2_1"
6
+ "rp-loading-overlay": "_rp-loading-overlay_8gxoj_1",
7
+ "rp-loading-modal": "_rp-loading-modal_8gxoj_14",
8
+ "rp-loading-title": "_rp-loading-title_8gxoj_27",
9
+ "rp-loading-progress-bar": "_rp-loading-progress-bar_8gxoj_35",
10
+ "rp-loading-progress": "_rp-loading-progress_8gxoj_35",
11
+ "rp-loading-cancel-button": "_rp-loading-cancel-button_8gxoj_55",
12
+ loading: "_loading_8gxoj_1"
13
13
  }, o = ({ percentage: o }) => {
14
14
  let { cancel: s } = t(), { localeMessages: c } = e();
15
15
  return o < 1 ? null : /* @__PURE__ */ r("div", {
@@ -1,5 +1,5 @@
1
- import { t as e } from "./clsx-DSGuh5YW.js";
2
- import { r as t } from "./dist-Ch2NetCM.js";
1
+ import { t as e } from "./clsx-B7LyVm5O.js";
2
+ import { r as t } from "./dist-CKteKPPA.js";
3
3
  import { jsx as n } from "react/jsx-runtime";
4
4
  import './assets/MenuItem.css';//#region lib/components/layout/toolbar/MenuItem.module.css
5
5
  var r = { "rp-menu-item": "_rp-menu-item_cu12j_1" }, i = (i) => {
@@ -1,4 +1,4 @@
1
- import { o as e } from "./dist-Ch2NetCM.js";
1
+ import { o as e } from "./dist-CKteKPPA.js";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
3
  import './assets/MenuSeparator.css';//#region lib/components/layout/toolbar/MenuSeparator.module.css
4
4
  var n = { "rp-menu-separator": "_rp-menu-separator_17dlz_1" }, r = () => /* @__PURE__ */ t(e, { className: n["rp-menu-separator"] });
@@ -14,22 +14,22 @@ import { useDimensionPagesContext as p } from "./contexts/DimensionPagesContext.
14
14
  import { useSmoothScrollContext as m } from "./contexts/SmoothScrollContext.js";
15
15
  import { getScrollDistance as h } from "./utils/getScrollDistance.js";
16
16
  import { getGridDimension as g, getPositionFromPage as _ } from "./utils/calculatePage.js";
17
- import { createContext as v, useCallback as y, useContext as b, useEffect as x, useMemo as S, useRef as C, useState as w } from "react";
18
- import { jsx as T } from "react/jsx-runtime";
17
+ import { createContext as v, useCallback as y, useContext as b, useEffect as x, useRef as S, useState as C } from "react";
18
+ import { jsx as w } from "react/jsx-runtime";
19
19
  //#region lib/utils/hooks/useScrollToPage.ts
20
- var E = () => {
21
- let { viewMode: n } = o(), { scrollMode: r } = a(), { virtualScrollRef: i, virtualScrollableElementRef: u, pageScrollElementRef: d } = s(), { setFocusedPage: f } = k(), v = C(), { columnCount: b } = c(), { widths: S, heights: w } = p(), T = C(r), E = C(n), D = C(b), { targetScrollPage: O, scrollBehavior: A } = m(), j = C(null);
20
+ var T = () => {
21
+ let { viewMode: n } = o(), { scrollMode: r } = a(), { virtualScrollRef: i, virtualScrollableElementRef: u, pageScrollElementRef: d } = s(), { setFocusedPage: f } = O(), v = S(), { columnCount: b } = c(), { widths: C, heights: w } = p(), T = S(r), E = S(n), D = S(b), { targetScrollPage: k, scrollBehavior: A } = m(), j = S(null), M = S();
22
22
  x(() => {
23
23
  i?.scrollToItem && (v.current = i);
24
24
  }, [i]), x(() => {
25
25
  T.current = r, E.current = n;
26
26
  }, [r, n]);
27
- let M = y((e, t) => {
27
+ let N = y((e, t) => {
28
28
  if (!d) return;
29
29
  let n = Math.ceil(e / 2) * 2 - 1;
30
30
  if (e === n + 1) {
31
31
  let e = {
32
- left: S[n],
32
+ left: C[n],
33
33
  top: 0
34
34
  };
35
35
  return new Promise((t) => l(d, e, t));
@@ -41,7 +41,7 @@ var E = () => {
41
41
  });
42
42
  }, [
43
43
  d,
44
- S,
44
+ C,
45
45
  l
46
46
  ]);
47
47
  x(() => {
@@ -49,11 +49,13 @@ var E = () => {
49
49
  }, [r, n]), x(() => {
50
50
  D.current = b;
51
51
  }, [b]);
52
- let N = y((n, r = A) => {
53
- f(n);
52
+ let P = y((n, r = A) => {
53
+ f(n), k.current = n, clearTimeout(M.current), M.current = setTimeout(() => {
54
+ k.current === n && (k.current = void 0);
55
+ }, 3e3);
54
56
  let i = n - 1, a = i, o = 0;
55
57
  if (E.current === t.DUAL_PAGE && T.current === e.PAGE_SCROLLING) {
56
- M(n, r);
58
+ N(n, r);
57
59
  return;
58
60
  }
59
61
  if (T.current === e.PAGE_SCROLLING) {
@@ -68,10 +70,8 @@ var E = () => {
68
70
  return;
69
71
  }
70
72
  j.current = null;
71
- let s = u;
72
- r === "smooth" && (O.current = n);
73
- let c = E.current === t.DUAL_PAGE_WITH_COVER, { columnsWidth: l, rowsHeight: d } = g({
74
- widths: S,
73
+ let s = u, c = E.current === t.DUAL_PAGE_WITH_COVER, { columnsWidth: l, rowsHeight: d } = g({
74
+ widths: C,
75
75
  heights: w
76
76
  }, b, c);
77
77
  if (T.current === e.HORIZONTAL_SCROLLING) {
@@ -117,20 +117,22 @@ var E = () => {
117
117
  }, [
118
118
  u,
119
119
  b,
120
- M,
120
+ N,
121
121
  f,
122
122
  l,
123
123
  w,
124
- S,
124
+ C,
125
125
  A
126
126
  ]);
127
- return x(() => {
127
+ return x(() => () => {
128
+ clearTimeout(M.current);
129
+ }, []), x(() => {
128
130
  if (!u || !j.current) return;
129
131
  let { page: e, behavior: t } = j.current;
130
- j.current = null, N(e, t);
131
- }, [u, N]), { scrollToPage: N };
132
- }, D = (n = 1) => {
133
- let [r, i] = w(n), [s, c] = w(0), { scrollToPage: l } = E(), d = C(n), { viewMode: m } = o(), { scrollMode: h } = a(), { widths: g } = p(), { pagesRef: _ } = u(), v = f(r, 100), b = y((e) => {
132
+ j.current = null, P(e, t);
133
+ }, [u, P]), { scrollToPage: P };
134
+ }, E = (n = 1) => {
135
+ let [r, i] = C(n), [s, c] = C(0), { scrollToPage: l } = T(), d = S(n), { viewMode: m } = o(), { scrollMode: h } = a(), { widths: g } = p(), { pagesRef: _ } = u(), v = f(r, 100), b = y((e) => {
134
136
  if (!/^[0-9]*$/g.test(e.toString()) || !e) return {
135
137
  success: !1,
136
138
  currentPage: d.current
@@ -143,12 +145,12 @@ var E = () => {
143
145
  success: !0,
144
146
  currentPage: +e
145
147
  });
146
- }, [s]), x = y(b, [b]), T = y((e) => {
148
+ }, [s]), x = y(b, [b]), w = y((e) => {
147
149
  i(e), d.current = e;
148
- }, []), D = y((e, t) => {
150
+ }, []), E = y((e, t) => {
149
151
  let n = b(e);
150
152
  return n.success && l(n.currentPage, t), n;
151
- }, [b, l]), O = y((e) => {
153
+ }, [b, l]), D = y((e) => {
152
154
  let n = e % 2 == 1;
153
155
  if (!_ || n) return !1;
154
156
  let r = n ? g[e] : g[e - 1], i = n ? g[e + 1] : g[e];
@@ -158,43 +160,34 @@ var E = () => {
158
160
  g,
159
161
  _,
160
162
  s
161
- ]), k = y(() => {
162
- let e = r - 1;
163
- O(e) && (e = r - 2), D(e);
164
- }, [
165
- D,
166
- r,
167
- m,
168
- h,
169
- O
170
- ]), A = S(() => m === t.DUAL_PAGE && h === e.PAGE_SCROLLING ? r === s - 1 : r === s, [
171
- r,
163
+ ]), O = y((n) => m === t.DUAL_PAGE && h === e.PAGE_SCROLLING ? n >= s - 1 : n >= s, [
172
164
  s,
173
165
  m,
174
166
  h
175
- ]);
167
+ ]), k = y(() => {
168
+ let e = d.current, t = e - 1;
169
+ D(t) && (t = e - 2), E(t);
170
+ }, [E, D]);
176
171
  return {
177
172
  focusedPage: v,
178
173
  totalPages: s,
179
174
  setFocusedPage: x,
180
- resetPage: T,
175
+ resetPage: w,
181
176
  setTotalPages: c,
182
177
  nextPage: y(() => {
183
- if (A) return;
184
- let e = r + 1;
185
- O(e) && (e = r + 2), D(e);
178
+ let e = d.current;
179
+ if (O(e)) return;
180
+ let t = e + 1;
181
+ D(t) && (t = e + 2), E(t);
186
182
  }, [
183
+ E,
187
184
  D,
188
- r,
189
- O,
190
- m,
191
- h,
192
- A
185
+ O
193
186
  ]),
194
187
  prevPage: k,
195
- goToPage: D
188
+ goToPage: E
196
189
  };
197
- }, O = v({
190
+ }, D = v({
198
191
  focusedPage: 0,
199
192
  setFocusedPage: (e) => {},
200
193
  goToPage: (e, t) => ({
@@ -205,11 +198,11 @@ var E = () => {
205
198
  setTotalPages: (e) => {},
206
199
  prevPage: () => {},
207
200
  nextPage: () => {}
208
- }), k = () => {
209
- let e = b(O);
201
+ }), O = () => {
202
+ let e = b(D);
210
203
  return e?.focusedPage === void 0 && n.error("Please use this hooks inside children component of RPProvider"), e;
211
- }, A = ({ children: e }) => {
212
- let { pdf: t } = r(), { setCurrentPage: n } = d(), { initialPage: a = 1 } = i(), { focusedPage: o, totalPages: s, setFocusedPage: c, resetPage: l, setTotalPages: u, goToPage: f, nextPage: p, prevPage: m } = D(a), h = C(!0);
204
+ }, k = ({ children: e }) => {
205
+ let { pdf: t } = r(), { setCurrentPage: n } = d(), { initialPage: a = 1 } = i(), { focusedPage: o, totalPages: s, setFocusedPage: c, resetPage: l, setTotalPages: u, goToPage: f, nextPage: p, prevPage: m } = E(a), h = S(!0);
213
206
  return x(() => {
214
207
  if (!t) {
215
208
  h.current || (u(0), l(1));
@@ -225,7 +218,7 @@ var E = () => {
225
218
  l
226
219
  ]), x(() => {
227
220
  n(o);
228
- }, [o, n]), /* @__PURE__ */ T(O.Provider, {
221
+ }, [o, n]), /* @__PURE__ */ w(D.Provider, {
229
222
  value: {
230
223
  focusedPage: o,
231
224
  totalPages: s,
@@ -239,4 +232,4 @@ var E = () => {
239
232
  });
240
233
  };
241
234
  //#endregion
242
- export { E as a, D as i, A as n, k as r, O as t };
235
+ export { T as a, E as i, k as n, O as r, D as t };
@@ -1,6 +1,6 @@
1
1
  import { useDocumentPasswordContext as e } from "./contexts/DocumentPasswordContext.js";
2
2
  import { useLocalizationContext as t } from "./contexts/LocalizationContext.js";
3
- import { t as n } from "./clsx-DSGuh5YW.js";
3
+ import { t as n } from "./clsx-B7LyVm5O.js";
4
4
  import { useState as r } from "react";
5
5
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
6
  import './assets/PasswordModal.css';//#region lib/components/ui/PasswordModal.module.css
@@ -1,7 +1,7 @@
1
1
  import { useDarkModeContext as e } from "./contexts/DarkModeContext.js";
2
2
  import { useLocalizationContext as t } from "./contexts/LocalizationContext.js";
3
3
  import { useDropFileZoneContext as n } from "./contexts/DropFileZoneContext.js";
4
- import { t as r } from "./clsx-DSGuh5YW.js";
4
+ import { t as r } from "./clsx-B7LyVm5O.js";
5
5
  import { t as i } from "./LightPdfIcon-DL8MYtWQ.js";
6
6
  import { t as a } from "./DarkPdfIcon-B5ehd9CV.js";
7
7
  import { useDropFileZone as o } from "./utils/hooks/useDropFileZone.js";
@@ -0,0 +1,14 @@
1
+ import './assets/RPLayout.css';//#region lib/components/layout/RPLayout.module.css
2
+ var e = {
3
+ "rp-layout": "_rp-layout_x5f86_1",
4
+ "rp-layout-wrapper": "_rp-layout-wrapper_x5f86_5",
5
+ "rp-content": "_rp-content_x5f86_11",
6
+ "rp-sidebar": "_rp-sidebar_x5f86_18",
7
+ "rp-pages": "_rp-pages_x5f86_23",
8
+ "rp-container": "_rp-container_x5f86_29",
9
+ "rp-loader": "_rp-loader_x5f86_33",
10
+ "rp-theme-variables": "_rp-theme-variables_x5f86_37",
11
+ "rp-dark-mode": "_rp-dark-mode_x5f86_158"
12
+ };
13
+ //#endregion
14
+ export { e as t };
@@ -5,7 +5,7 @@ import { useLayerContext as r } from "./contexts/LayerContext.js";
5
5
  import { useLoaderContext as i } from "./contexts/LoaderContext.js";
6
6
  import { CanvasLayer as a } from "./components/page/CanvasLayer.js";
7
7
  import { t as o } from "./TextLayer-DWGFN9SF.js";
8
- import { t as s } from "./AnnotationLayer-CAIvKf_O.js";
8
+ import { t as s } from "./AnnotationLayer-SQbmx6wX.js";
9
9
  import { t as c } from "./TextHighlightLayer-BSVgBxR3.js";
10
10
  import { CustomElement as l } from "./components/page/CustomElement.js";
11
11
  import { withRef as u } from "./utils/withRef.js";
@@ -9,12 +9,12 @@ import { useLayoutContainer as u } from "./contexts/LayoutContainerContext.js";
9
9
  import { useEventCallbackContext as d } from "./contexts/EventCallbackContext.js";
10
10
  import { useDebounce as f } from "./utils/hooks/useDebounce.js";
11
11
  import { getPageFromPosition as p } from "./utils/calculatePage.js";
12
- import { a as m, r as h } from "./PaginationContext-Cwf8sCpK.js";
12
+ import { a as m, r as h } from "./PaginationContext-B3qzCYJu.js";
13
13
  import { useSelectionModeContext as g } from "./contexts/SelectionModeContext.js";
14
14
  import { useFullScreenContext as _ } from "./contexts/FullScreenContext.js";
15
- import { t as v } from "./clsx-DSGuh5YW.js";
15
+ import { t as v } from "./clsx-B7LyVm5O.js";
16
16
  import { useLoaderContext as ee } from "./contexts/LoaderContext.js";
17
- import { t as y } from "./RPPage-C_r8aeTc.js";
17
+ import { t as y } from "./RPPage-BdoE0RrK.js";
18
18
  import { useVirtualReactWindow as te } from "./utils/hooks/useVirtualReactWindow.js";
19
19
  import { DualPage as ne } from "./components/page/DualPage.js";
20
20
  import { DualPageWithCover as re } from "./components/page/DualPageWithCover.js";
@@ -22,7 +22,7 @@ import { SinglePage as ie } from "./components/page/SinglePage.js";
22
22
  import { useMousePressed as ae } from "./utils/hooks/useMousePressed.js";
23
23
  import { useGrabScroll as oe } from "./utils/hooks/useGrabScroll.js";
24
24
  import { usePinch as se } from "./utils/hooks/usePinch.js";
25
- import { t as b } from "./PasswordModal-BtHVvrMg.js";
25
+ import { t as b } from "./PasswordModal-CB9Rd2zJ.js";
26
26
  import { usePresentPage as x } from "./utils/hooks/usePresentPage.js";
27
27
  import { LayoutContainer as ce } from "./components/layout/LayoutContainer.js";
28
28
  import { LayoutWrapper as le } from "./components/layout/LayoutWrapper.js";
@@ -49,7 +49,7 @@ var O = {
49
49
  "rp-load-error-message": "_rp-load-error-message_fn8tz_116"
50
50
  };
51
51
  //#endregion
52
- //#region node_modules/@babel/runtime/helpers/esm/extends.js
52
+ //#region node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/extends.js
53
53
  function k() {
54
54
  return k = Object.assign ? Object.assign.bind() : function(e) {
55
55
  for (var t = 1; t < arguments.length; t++) {
@@ -60,25 +60,25 @@ function k() {
60
60
  }, k.apply(null, arguments);
61
61
  }
62
62
  //#endregion
63
- //#region node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
63
+ //#region node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
64
64
  function A(e) {
65
65
  if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
66
66
  return e;
67
67
  }
68
68
  //#endregion
69
- //#region node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
69
+ //#region node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
70
70
  function be(e, t) {
71
71
  return be = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
72
72
  return e.__proto__ = t, e;
73
73
  }, be(e, t);
74
74
  }
75
75
  //#endregion
76
- //#region node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
76
+ //#region node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
77
77
  function xe(e, t) {
78
78
  e.prototype = Object.create(t.prototype), e.prototype.constructor = e, be(e, t);
79
79
  }
80
80
  //#endregion
81
- //#region node_modules/memoize-one/dist/memoize-one.esm.js
81
+ //#region node_modules/.pnpm/memoize-one@5.2.1/node_modules/memoize-one/dist/memoize-one.esm.js
82
82
  var Se = Number.isNaN || function(e) {
83
83
  return typeof e == "number" && e !== e;
84
84
  };
@@ -100,7 +100,7 @@ function M(e, t) {
100
100
  return o;
101
101
  }
102
102
  //#endregion
103
- //#region node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
103
+ //#region node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
104
104
  function N(e, t) {
105
105
  if (e == null) return {};
106
106
  var n = {};
@@ -111,7 +111,7 @@ function N(e, t) {
111
111
  return n;
112
112
  }
113
113
  //#endregion
114
- //#region node_modules/react-window/dist/index.esm.js
114
+ //#region node_modules/.pnpm/react-window@1.8.11_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-window/dist/index.esm.js
115
115
  var P = typeof performance == "object" && typeof performance.now == "function" ? function() {
116
116
  return performance.now();
117
117
  } : function() {
@@ -519,7 +519,7 @@ function q(e, t) {
519
519
  return !W(n, i) && !W(r, a);
520
520
  }
521
521
  //#endregion
522
- //#region node_modules/react-virtualized-auto-sizer/dist/react-virtualized-auto-sizer.esm.js
522
+ //#region node_modules/.pnpm/react-virtualized-auto-sizer@1.0.26_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-virtualized-auto-sizer/dist/react-virtualized-auto-sizer.esm.js
523
523
  var J = typeof window < "u" ? window : typeof self < "u" ? self : global, Y = null, X = null, Le = 20, Z = J.clearTimeout, Re = J.setTimeout, Q = J.cancelAnimationFrame || J.mozCancelAnimationFrame || J.webkitCancelAnimationFrame, $ = J.requestAnimationFrame || J.mozRequestAnimationFrame || J.webkitRequestAnimationFrame;
524
524
  Q == null || $ == null ? (Y = Z, X = function(e) {
525
525
  return Re(e, Le);