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