@pdf-viewer/react 0.0.0-experimental.5 → 0.0.0-experimental.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. package/dist/{LayoutWrapper-6224491f.js → LayoutWrapper-e310e12f.js} +10 -2
  2. package/dist/{SearchCloseButton-08d57275.js → SearchCloseButton-52d8ac31.js} +16 -8
  3. package/dist/ToolbarLayout.module-d74981d1.js +4270 -0
  4. package/dist/assets/style.css +1 -1
  5. package/dist/assets/style.js +11 -11
  6. package/dist/classof-56f81803.js +76 -0
  7. package/dist/components/RPConfig.js +32 -1483
  8. package/dist/components/RPController.js +136 -89
  9. package/dist/components/RPDropFileZone.js +43 -20
  10. package/dist/components/RPPages.js +26 -16
  11. package/dist/components/RPProvider.js +71 -40
  12. package/dist/components/RPTheme.js +17 -10
  13. package/dist/components/icons/CheckIcon.js +12 -18
  14. package/dist/components/icons/ChevronDownIcon.js +15 -19
  15. package/dist/components/icons/ChevronUpIcon.js +12 -18
  16. package/dist/components/icons/ClearIcon.js +24 -21
  17. package/dist/components/icons/ClockwiseIcon.js +12 -18
  18. package/dist/components/icons/CloseIcon.js +12 -18
  19. package/dist/components/icons/DarkPdfIcon.js +5 -8
  20. package/dist/components/icons/DualPageIcon.js +14 -20
  21. package/dist/components/icons/FileDownloadDefaultIcon.js +16 -19
  22. package/dist/components/icons/FileUploadDefaultIcon.js +16 -19
  23. package/dist/components/icons/FullScreenIcon.js +12 -18
  24. package/dist/components/icons/GoToDownIcon.js +12 -18
  25. package/dist/components/icons/HandModeDefaultIcon.js +12 -18
  26. package/dist/components/icons/HorizontalScrollingIcon.js +14 -20
  27. package/dist/components/icons/InfoIcon.js +12 -18
  28. package/dist/components/icons/LightPdfIcon.js +5 -8
  29. package/dist/components/icons/LoaderIcon.js +9 -9
  30. package/dist/components/icons/MoonIcon.js +12 -18
  31. package/dist/components/icons/PageScrollingIcon.js +14 -20
  32. package/dist/components/icons/PrintDefaultIcon.js +16 -19
  33. package/dist/components/icons/SearchIcon.js +12 -18
  34. package/dist/components/icons/SinglePageIcon.js +14 -20
  35. package/dist/components/icons/SunIcon.js +24 -21
  36. package/dist/components/icons/TextSelectionDefaultIcon.js +16 -19
  37. package/dist/components/icons/ThreeDotIcon.js +12 -18
  38. package/dist/components/icons/Thumbnail.js +30 -50
  39. package/dist/components/icons/VerticalScrollingIcon.js +14 -20
  40. package/dist/components/icons/WrappedScrollingIcon.js +14 -20
  41. package/dist/components/icons/ZoomInIcon.js +12 -18
  42. package/dist/components/icons/ZoomOutIcon.js +12 -18
  43. package/dist/components/layout/Container.js +14 -12
  44. package/dist/components/layout/LayoutContainer.js +25 -15
  45. package/dist/components/layout/LayoutWrapper.js +1 -1
  46. package/dist/components/layout/RPDefaultLayout.js +22 -12
  47. package/dist/components/layout/RPLayout.js +96 -76
  48. package/dist/components/layout/WrapperLayout.js +32 -7
  49. package/dist/components/layout/sidebar/RPSidebar.js +22 -12
  50. package/dist/components/layout/sidebar/RPSplitter.js +23 -22
  51. package/dist/components/layout/sidebar/Thumbnail.js +26 -16
  52. package/dist/components/layout/sidebar/Thumbnails.js +22 -12
  53. package/dist/components/layout/toolbar/DarkModeTool.js +42 -6
  54. package/dist/components/layout/toolbar/DocumentDialog.js +26 -16
  55. package/dist/components/layout/toolbar/DocumentProperties.js +43 -15
  56. package/dist/components/layout/toolbar/FileDownloadTool.js +22 -12
  57. package/dist/components/layout/toolbar/FileUploadTool.js +80 -11
  58. package/dist/components/layout/toolbar/FullScreenTool.js +73 -35
  59. package/dist/components/layout/toolbar/MenuItem.js +28 -10
  60. package/dist/components/layout/toolbar/MenuSeparator.js +16 -5
  61. package/dist/components/layout/toolbar/MostPageTool.js +25 -15
  62. package/dist/components/layout/toolbar/OtherTool.js +22 -12
  63. package/dist/components/layout/toolbar/Paginate.js +22 -12
  64. package/dist/components/layout/toolbar/PrintTool.js +22 -12
  65. package/dist/components/layout/toolbar/PropertyItem.js +13 -4
  66. package/dist/components/layout/toolbar/RPMenuItem.js +30 -16
  67. package/dist/components/layout/toolbar/RPMoreOptions.js +113 -118
  68. package/dist/components/layout/toolbar/RPToolbar.js +22 -12
  69. package/dist/components/layout/toolbar/RPToolbarEnd.js +22 -12
  70. package/dist/components/layout/toolbar/RotateTool.js +69 -26
  71. package/dist/components/layout/toolbar/ScrollModeTool.js +83 -33
  72. package/dist/components/layout/toolbar/SearchCloseButton.js +3 -3
  73. package/dist/components/layout/toolbar/SearchResultNavigator.js +22 -12
  74. package/dist/components/layout/toolbar/SearchTool.js +25 -15
  75. package/dist/components/layout/toolbar/SelectionModeTool.js +63 -21
  76. package/dist/components/layout/toolbar/ThumbnailTool.js +50 -15
  77. package/dist/components/layout/toolbar/ToolbarCustom.js +91 -56
  78. package/dist/components/layout/toolbar/ToolbarDefault.js +92 -58
  79. package/dist/components/layout/toolbar/ToolbarLayout.js +33 -15
  80. package/dist/components/layout/toolbar/ViewModeTool.js +74 -28
  81. package/dist/components/layout/toolbar/ZoomTool.js +22 -12
  82. package/dist/components/layout/toolbar/tools/DocumentPropertiesTool.js +41 -22
  83. package/dist/components/layout/toolbar/tools/DualPageTool.js +177 -0
  84. package/dist/components/layout/toolbar/tools/FileDownloadTool.js +46 -15
  85. package/dist/components/layout/toolbar/tools/FileUploadTool.js +36 -6
  86. package/dist/components/layout/toolbar/tools/FullScreenTool.js +25 -9
  87. package/dist/components/layout/toolbar/tools/InputPageTool.js +43 -31
  88. package/dist/components/layout/toolbar/tools/NextPageTool.js +55 -27
  89. package/dist/components/layout/toolbar/tools/PreviousPageTool.js +42 -23
  90. package/dist/components/layout/toolbar/tools/PrintTool.js +46 -15
  91. package/dist/components/layout/toolbar/tools/RotateClockwiseTool.js +31 -6
  92. package/dist/components/layout/toolbar/tools/RotateCounterclockwiseTool.js +31 -11
  93. package/dist/components/layout/toolbar/tools/SelectionModeSwitcherTool.js +43 -0
  94. package/dist/components/layout/toolbar/tools/SinglePageTool.js +177 -0
  95. package/dist/components/layout/toolbar/tools/ThemeSwitcherTool.js +19 -5
  96. package/dist/components/layout/toolbar/tools/ThumbnailTool.js +42 -23
  97. package/dist/components/layout/toolbar/tools/ZoomInTool.js +31 -14
  98. package/dist/components/layout/toolbar/tools/ZoomLevelDisplay.js +26 -16
  99. package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +84 -60
  100. package/dist/components/layout/toolbar/tools/ZoomOutTool.js +31 -14
  101. package/dist/components/layout/toolbar/tools/defaults/RPHorizontalBar.js +70 -28
  102. package/dist/components/layout/toolbar/tools/defaults/RPVerticalBar.js +42 -17
  103. package/dist/components/layout/toolbar/tools/more-options/DocumentProperties.js +36 -11
  104. package/dist/components/layout/toolbar/tools/more-options/FileDownloadTool.js +44 -18
  105. package/dist/components/layout/toolbar/tools/more-options/FileUploadTool.js +47 -21
  106. package/dist/components/layout/toolbar/tools/more-options/FullScreenTool.js +38 -11
  107. package/dist/components/layout/toolbar/tools/more-options/MostPageTool.js +78 -28
  108. package/dist/components/layout/toolbar/tools/more-options/PrintTool.js +44 -18
  109. package/dist/components/layout/toolbar/tools/more-options/RotateTool.js +57 -20
  110. package/dist/components/layout/toolbar/tools/more-options/ScrollModeTool.js +70 -29
  111. package/dist/components/layout/toolbar/tools/more-options/SelectionModeTool.js +58 -22
  112. package/dist/components/layout/toolbar/tools/more-options/ViewModeTool.js +63 -23
  113. package/dist/components/page/AnnotationLayer.js +26 -16
  114. package/dist/components/page/CanvasLayer.js +26 -16
  115. package/dist/components/page/CustomElement.js +38 -8
  116. package/dist/components/page/DualPage.js +22 -12
  117. package/dist/components/page/RPPage.js +26 -16
  118. package/dist/components/page/SinglePage.js +22 -12
  119. package/dist/components/page/TextHighlightLayer.js +35 -25
  120. package/dist/components/page/TextLayer.js +32 -22
  121. package/dist/components/ui/Button.js +13 -11
  122. package/dist/components/ui/Checkbox.js +23 -15
  123. package/dist/components/ui/DropDown.js +40 -18
  124. package/dist/components/ui/Input.js +18 -14
  125. package/dist/components/ui/LoadingIndicator.js +22 -12
  126. package/dist/components/ui/PasswordModal.js +33 -24
  127. package/dist/components/ui/RPTooltip.js +29 -11
  128. package/dist/contexts/ConfigContext.js +8 -2
  129. package/dist/contexts/DarkModeContext.js +11 -2
  130. package/dist/contexts/DimensionPagesContext.js +89 -28
  131. package/dist/contexts/DocumentPasswordContext.js +4 -1
  132. package/dist/contexts/DownloadContext.js +9 -9
  133. package/dist/contexts/DropFileZoneContext.js +45 -34
  134. package/dist/contexts/ElementPageContext.js +111 -80
  135. package/dist/contexts/EventCallbackContext.js +8 -11
  136. package/dist/contexts/FileInputContext.js +39 -22
  137. package/dist/contexts/FullScreenContext.js +18 -3
  138. package/dist/contexts/GlobalCurrentPage.js +15 -3
  139. package/dist/contexts/HighlightContext.js +32 -7
  140. package/dist/contexts/IconContext.js +4 -1
  141. package/dist/contexts/IconToolContext.js +12 -2
  142. package/dist/contexts/InitialStateContext.js +4 -1
  143. package/dist/contexts/LayerContext.js +11 -1
  144. package/dist/contexts/LicenseContext.js +17 -8
  145. package/dist/contexts/LoaderContext.js +10 -10
  146. package/dist/contexts/LocalizationContext.js +6 -9
  147. package/dist/contexts/OtherToolContext.js +7 -2
  148. package/dist/contexts/PageViewportContext.js +6 -1
  149. package/dist/contexts/PagesRotateContext.js +45 -13
  150. package/dist/contexts/PaginationContext.js +24 -14
  151. package/dist/contexts/PrintContext.js +24 -14
  152. package/dist/contexts/RPDocumentContext.js +54 -29
  153. package/dist/contexts/RenderQueueProvider.js +24 -14
  154. package/dist/contexts/RenderedPagesCache.js +23 -8
  155. package/dist/contexts/RotationContext.js +33 -16
  156. package/dist/contexts/ScrollModeContext.js +13 -3
  157. package/dist/contexts/SearchContext.js +24 -14
  158. package/dist/contexts/SelectionModeContext.js +7 -1
  159. package/dist/contexts/SmoothScrollContext.js +12 -3
  160. package/dist/contexts/ThumbnailsContext.js +24 -14
  161. package/dist/contexts/ToolComponentContext.js +10 -2
  162. package/dist/contexts/ToolbarComponentContext.js +8 -2
  163. package/dist/contexts/ViewModeContext.js +15 -3
  164. package/dist/contexts/ViewportContext.js +7 -2
  165. package/dist/contexts/VirtualGridContext.js +10 -2
  166. package/dist/contexts/VirtualScrollContext.js +18 -19
  167. package/dist/contexts/ZoomContext.js +196 -84
  168. package/dist/es.iterator.constructor-05468e3d.js +126 -0
  169. package/dist/es.iterator.filter-1ddb1471.js +37 -0
  170. package/dist/es.iterator.for-each-ed4cb4aa.js +34 -0
  171. package/dist/es.iterator.map-635f6e20.js +157 -0
  172. package/dist/es.iterator.reduce-969434f1.js +31 -0
  173. package/dist/esnext.json.parse-3bf99e2e.js +152 -0
  174. package/dist/esnext.map.delete-all-fa83df07.js +401 -0
  175. package/dist/function-uncurry-this-accessor-efc140e6.js +17 -0
  176. package/dist/{index-808ea7bf.js → index-1d695410.js} +1 -1
  177. package/dist/{index-c9a2990a.js → index-7ca3764b.js} +3 -3
  178. package/dist/index-922e8d58.js +2545 -0
  179. package/dist/is-pure-db2321f6.js +886 -0
  180. package/dist/iterate-1672c441.js +110 -0
  181. package/dist/iterator-helper-without-closing-on-early-error-a6637535.js +69 -0
  182. package/dist/main.js +134 -118
  183. package/dist/types/components/icons/DualPageIcon.d.ts +1 -1
  184. package/dist/types/components/icons/SinglePageIcon.d.ts +1 -1
  185. package/dist/types/components/layout/toolbar/tools/DualPageTool.d.ts +3 -0
  186. package/dist/types/components/layout/toolbar/tools/SelectionModeSwitcherTool.d.ts +3 -0
  187. package/dist/types/components/layout/toolbar/tools/SinglePageTool.d.ts +3 -0
  188. package/dist/types/contexts/RenderQueueProvider.d.ts +2 -2
  189. package/dist/types/main.d.ts +4 -4
  190. package/dist/types/utils/annotations.d.ts +1 -2
  191. package/dist/types/utils/getElementPositionInPage.d.ts +2 -2
  192. package/dist/types/utils/hooks/useCopyText.d.ts +1 -0
  193. package/dist/types/utils/hooks/usePrint.d.ts +3 -2
  194. package/dist/types/utils/hooks/useSearch.d.ts +1 -2
  195. package/dist/types/utils/link_service.d.ts +3 -9
  196. package/dist/types/utils/renderPage.d.ts +2 -2
  197. package/dist/types/utils/types.d.ts +27 -4
  198. package/dist/utils/Queue.js +60 -18
  199. package/dist/utils/annotations.js +129 -106
  200. package/dist/utils/calculatePage.js +23 -11
  201. package/dist/utils/convertPdfDate.js +1 -3
  202. package/dist/utils/elementPagePosition.js +8 -1
  203. package/dist/utils/getElementPositionInPage.js +16 -44
  204. package/dist/utils/getScrollDistance.js +5 -2
  205. package/dist/utils/getThumbnailViewport.js +10 -2
  206. package/dist/utils/getWordPositionInPage.js +5 -5
  207. package/dist/utils/getZoomLevel.js +1 -4
  208. package/dist/utils/highlight.js +232 -160
  209. package/dist/utils/hooks/useCopyText.js +37 -0
  210. package/dist/utils/hooks/useDarkModeProps.js +4 -1
  211. package/dist/utils/hooks/useElementSize.js +25 -10
  212. package/dist/utils/hooks/useFileDownload.js +26 -16
  213. package/dist/utils/hooks/useFullScreen.js +6 -1
  214. package/dist/utils/hooks/useGrabScroll.js +17 -16
  215. package/dist/utils/hooks/useHighlight.js +25 -22
  216. package/dist/utils/hooks/useInfiniteScroll.js +8 -8
  217. package/dist/utils/hooks/useLicense.js +1174 -55
  218. package/dist/utils/hooks/useLoadPdf.js +94 -52
  219. package/dist/utils/hooks/useLoadWorker.js +8 -8
  220. package/dist/utils/hooks/useMousePressed.js +8 -2
  221. package/dist/utils/hooks/usePageRotateContext.js +33 -18
  222. package/dist/utils/hooks/usePaginate.js +26 -16
  223. package/dist/utils/hooks/usePinch.js +49 -39
  224. package/dist/utils/hooks/usePresentPage.js +35 -25
  225. package/dist/utils/hooks/usePrint.js +26 -16
  226. package/dist/utils/hooks/useRequestAnimationFrame.js +9 -9
  227. package/dist/utils/hooks/useRotate.js +17 -4
  228. package/dist/utils/hooks/useScrollToPage.js +26 -16
  229. package/dist/utils/hooks/useSearch.js +26 -16
  230. package/dist/utils/hooks/useThumbnail.js +26 -16
  231. package/dist/utils/hooks/useVirtualReactWindow.js +26 -16
  232. package/dist/utils/hooks/useWatermark.js +55 -42
  233. package/dist/utils/injectPrintCSS.js +1 -1
  234. package/dist/utils/link_service.js +33 -19
  235. package/dist/utils/renderPage.js +20 -11
  236. package/dist/utils/smoothScrollTo.js +4 -1
  237. package/dist/utils/withRef.js +4 -1
  238. package/dist/web.url-search-params.delete-c65de04d.js +51 -0
  239. package/package.json +9 -7
  240. package/dist/ToolbarLayout.module-fa6c85c9.js +0 -3546
  241. package/dist/index-a48ec088.js +0 -1672
  242. package/dist/types/utils/approximateFragtion.d.ts +0 -9
  243. package/dist/utils/approximateFragtion.js +0 -22
@@ -0,0 +1,31 @@
1
+ import "./es.iterator.constructor-05468e3d.js";
2
+ var c = require("../internals/export"), v = require("../internals/iterate"), f = require("../internals/a-callable"), s = require("../internals/an-object"), h = require("../internals/get-iterator-direct"), d = require("../internals/iterator-close"), q = require("../internals/iterator-helper-without-closing-on-early-error"), E = require("../internals/function-apply"), I = require("../internals/fails"), u = TypeError, n = I(function() {
3
+ [].keys().reduce(function() {
4
+ }, void 0);
5
+ }), i = !n && q("reduce", u);
6
+ c({
7
+ target: "Iterator",
8
+ proto: !0,
9
+ real: !0,
10
+ forced: n || i
11
+ }, {
12
+ reduce: function(t) {
13
+ s(this);
14
+ try {
15
+ f(t);
16
+ } catch (a) {
17
+ d(this, "throw", a);
18
+ }
19
+ var r = arguments.length < 2, e = r ? void 0 : arguments[1];
20
+ if (i)
21
+ return E(i, this, r ? [t] : [t, e]);
22
+ var l = h(this), o = 0;
23
+ if (v(l, function(a) {
24
+ r ? (r = !1, e = a) : e = t(e, a, o), o++;
25
+ }, {
26
+ IS_RECORD: !0
27
+ }), r)
28
+ throw new u("Reduce of empty iterator with no initial value");
29
+ return e;
30
+ }
31
+ });
@@ -0,0 +1,152 @@
1
+ import "./is-pure-db2321f6.js";
2
+ var C = require("../internals/export"), U = require("../internals/descriptors"), I = require("../internals/global-this"), $ = require("../internals/get-built-in"), p = require("../internals/function-uncurry-this"), B = require("../internals/function-call"), m = require("../internals/is-callable"), D = require("../internals/is-object"), J = require("../internals/is-array"), F = require("../internals/has-own-property"), L = require("../internals/to-string"), P = require("../internals/length-of-array-like"), g = require("../internals/create-property"), A = require("../internals/fails"), M = require("../internals/parse-json-string"), j = require("../internals/symbol-constructor-detection"), N = I.JSON, z = I.Number, o = I.SyntaxError, q = N && N.parse, G = $("Object", "keys"), V = Object.getOwnPropertyDescriptor, s = p("".charAt), w = p("".slice), k = p(/./.exec), R = p([].push), O = /^\d$/, H = /^[1-9]$/, K = /^[\d-]$/, h = /^[\t\n\r ]$/, S = 0, T = 1, W = function(t, r) {
3
+ t = L(t);
4
+ var e = new y(t, 0), a = e.parse(), i = a.value, n = e.skip(h, a.end);
5
+ if (n < t.length)
6
+ throw new o('Unexpected extra character: "' + s(t, n) + '" after the parsed data at: ' + n);
7
+ return m(r) ? b({
8
+ "": i
9
+ }, "", r, a) : i;
10
+ }, b = function(t, r, e, a) {
11
+ var i = t[r], n = a && i === a.value, f = n && typeof a.source == "string" ? {
12
+ source: a.source
13
+ } : {}, v, x, l, u, c;
14
+ if (D(i)) {
15
+ var E = J(i), d = n ? a.nodes : E ? [] : {};
16
+ if (E)
17
+ for (v = d.length, l = P(i), u = 0; u < l; u++)
18
+ _(i, u, b(i, "" + u, e, u < v ? d[u] : void 0));
19
+ else
20
+ for (x = G(i), l = P(x), u = 0; u < l; u++)
21
+ c = x[u], _(i, c, b(i, c, e, F(d, c) ? d[c] : void 0));
22
+ }
23
+ return B(e, t, r, i, f);
24
+ }, _ = function(t, r, e) {
25
+ if (U) {
26
+ var a = V(t, r);
27
+ if (a && !a.configurable)
28
+ return;
29
+ }
30
+ e === void 0 ? delete t[r] : g(t, r, e);
31
+ }, Y = function(t, r, e, a) {
32
+ this.value = t, this.end = r, this.source = e, this.nodes = a;
33
+ }, y = function(t, r) {
34
+ this.source = t, this.index = r;
35
+ };
36
+ y.prototype = {
37
+ fork: function(t) {
38
+ return new y(this.source, t);
39
+ },
40
+ parse: function() {
41
+ var t = this.source, r = this.skip(h, this.index), e = this.fork(r), a = s(t, r);
42
+ if (k(K, a))
43
+ return e.number();
44
+ switch (a) {
45
+ case "{":
46
+ return e.object();
47
+ case "[":
48
+ return e.array();
49
+ case '"':
50
+ return e.string();
51
+ case "t":
52
+ return e.keyword(!0);
53
+ case "f":
54
+ return e.keyword(!1);
55
+ case "n":
56
+ return e.keyword(null);
57
+ }
58
+ throw new o('Unexpected character: "' + a + '" at: ' + r);
59
+ },
60
+ node: function(t, r, e, a, i) {
61
+ return new Y(r, a, t ? null : w(this.source, e, a), i);
62
+ },
63
+ object: function() {
64
+ for (var t = this.source, r = this.index + 1, e = !1, a = {}, i = {}; r < t.length; ) {
65
+ if (r = this.until(['"', "}"], r), s(t, r) === "}" && !e) {
66
+ r++;
67
+ break;
68
+ }
69
+ var n = this.fork(r).string(), f = n.value;
70
+ r = n.end, r = this.until([":"], r) + 1, r = this.skip(h, r), n = this.fork(r).parse(), g(i, f, n), g(a, f, n.value), r = this.until([",", "}"], n.end);
71
+ var v = s(t, r);
72
+ if (v === ",")
73
+ e = !0, r++;
74
+ else if (v === "}") {
75
+ r++;
76
+ break;
77
+ }
78
+ }
79
+ return this.node(T, a, this.index, r, i);
80
+ },
81
+ array: function() {
82
+ for (var t = this.source, r = this.index + 1, e = !1, a = [], i = []; r < t.length; ) {
83
+ if (r = this.skip(h, r), s(t, r) === "]" && !e) {
84
+ r++;
85
+ break;
86
+ }
87
+ var n = this.fork(r).parse();
88
+ if (R(i, n), R(a, n.value), r = this.until([",", "]"], n.end), s(t, r) === ",")
89
+ e = !0, r++;
90
+ else if (s(t, r) === "]") {
91
+ r++;
92
+ break;
93
+ }
94
+ }
95
+ return this.node(T, a, this.index, r, i);
96
+ },
97
+ string: function() {
98
+ var t = this.index, r = M(this.source, this.index + 1);
99
+ return this.node(S, r.value, t, r.end);
100
+ },
101
+ number: function() {
102
+ var t = this.source, r = this.index, e = r;
103
+ if (s(t, e) === "-" && e++, s(t, e) === "0")
104
+ e++;
105
+ else if (k(H, s(t, e)))
106
+ e = this.skip(O, e + 1);
107
+ else
108
+ throw new o("Failed to parse number at: " + e);
109
+ if (s(t, e) === "." && (e = this.skip(O, e + 1)), s(t, e) === "e" || s(t, e) === "E") {
110
+ e++, (s(t, e) === "+" || s(t, e) === "-") && e++;
111
+ var a = e;
112
+ if (e = this.skip(O, e), a === e)
113
+ throw new o("Failed to parse number's exponent value at: " + e);
114
+ }
115
+ return this.node(S, z(w(t, r, e)), r, e);
116
+ },
117
+ keyword: function(t) {
118
+ var r = "" + t, e = this.index, a = e + r.length;
119
+ if (w(this.source, e, a) !== r)
120
+ throw new o("Failed to parse value at: " + e);
121
+ return this.node(S, t, e, a);
122
+ },
123
+ skip: function(t, r) {
124
+ for (var e = this.source; r < e.length && k(t, s(e, r)); r++)
125
+ ;
126
+ return r;
127
+ },
128
+ until: function(t, r) {
129
+ r = this.skip(h, r);
130
+ for (var e = s(this.source, r), a = 0; a < t.length; a++)
131
+ if (t[a] === e)
132
+ return r;
133
+ throw new o('Unexpected character: "' + e + '" at: ' + r);
134
+ }
135
+ };
136
+ var Z = A(function() {
137
+ var t = "9007199254740993", r;
138
+ return q(t, function(e, a, i) {
139
+ r = i.source;
140
+ }), r !== t;
141
+ }), Q = j && !A(function() {
142
+ return 1 / q("-0 ") !== -1 / 0;
143
+ });
144
+ C({
145
+ target: "JSON",
146
+ stat: !0,
147
+ forced: Z
148
+ }, {
149
+ parse: function(r, e) {
150
+ return Q && !m(e) ? q(r) : W(r, e);
151
+ }
152
+ });
@@ -0,0 +1,401 @@
1
+ var me = (t, r) => () => (r || t((r = { exports: {} }).exports, r), r.exports);
2
+ import { b as m, s as ue, e as ie, a as $ } from "./is-pure-db2321f6.js";
3
+ import { a as h, r as de } from "./iterate-1672c441.js";
4
+ import "./es.iterator.constructor-05468e3d.js";
5
+ import "./es.iterator.for-each-ed4cb4aa.js";
6
+ var Fe = me((De, b) => {
7
+ var R = {}, I = {}, O;
8
+ function le() {
9
+ if (O)
10
+ return I;
11
+ O = 1;
12
+ var t = m(), r = d(), n = g, a = n.get, v = n.has, s = n.set;
13
+ return t({
14
+ target: "Map",
15
+ proto: !0,
16
+ real: !0,
17
+ forced: !0
18
+ }, {
19
+ emplace: function(p, i) {
20
+ var e = r(this), o, f;
21
+ return v(e, p) ? (o = a(e, p), "update" in i && (o = i.update(o, p, e), s(e, p, o)), o) : (f = i.insert(p, e), s(e, p, f), f);
22
+ }
23
+ }), I;
24
+ }
25
+ le();
26
+ var y = {}, se = require("../internals/function-uncurry-this"), _e = require("../internals/iterate-simple"), pe = require("../internals/map-helpers"), ce = pe.Map, oe = pe.proto, ge = se(oe.forEach), ve = se(oe.entries), he = ve(new ce()).next;
27
+ b.exports = function(t, r, n) {
28
+ return n ? _e({
29
+ iterator: ve(t),
30
+ next: he
31
+ }, function(a) {
32
+ return r(a[1], a[0]);
33
+ }) : ge(t, r);
34
+ };
35
+ const Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
36
+ __proto__: null
37
+ }, Symbol.toStringTag, { value: "Module" })), c = /* @__PURE__ */ ue(Me);
38
+ var w;
39
+ function xe() {
40
+ if (w)
41
+ return y;
42
+ w = 1;
43
+ var t = m(), r = h(), n = d(), a = c;
44
+ return t({
45
+ target: "Map",
46
+ proto: !0,
47
+ real: !0,
48
+ forced: !0
49
+ }, {
50
+ every: function(s) {
51
+ var u = n(this), p = r(s, arguments.length > 1 ? arguments[1] : void 0);
52
+ return a(u, function(i, e) {
53
+ if (!p(i, e, u))
54
+ return !1;
55
+ }, !0) !== !1;
56
+ }
57
+ }), y;
58
+ }
59
+ xe();
60
+ var S = {}, A;
61
+ function qe() {
62
+ if (A)
63
+ return S;
64
+ A = 1;
65
+ var t = m(), r = h(), n = d(), a = g, v = c, s = a.Map, u = a.set;
66
+ return t({
67
+ target: "Map",
68
+ proto: !0,
69
+ real: !0,
70
+ forced: !0
71
+ }, {
72
+ filter: function(i) {
73
+ var e = n(this), o = r(i, arguments.length > 1 ? arguments[1] : void 0), f = new s();
74
+ return v(e, function(l, _) {
75
+ o(l, _, e) && u(f, _, l);
76
+ }), f;
77
+ }
78
+ }), S;
79
+ }
80
+ qe();
81
+ var C = {}, K;
82
+ function Ee() {
83
+ if (K)
84
+ return C;
85
+ K = 1;
86
+ var t = m(), r = h(), n = d(), a = c;
87
+ return t({
88
+ target: "Map",
89
+ proto: !0,
90
+ real: !0,
91
+ forced: !0
92
+ }, {
93
+ find: function(s) {
94
+ var u = n(this), p = r(s, arguments.length > 1 ? arguments[1] : void 0), i = a(u, function(e, o) {
95
+ if (p(e, o, u))
96
+ return {
97
+ value: e
98
+ };
99
+ }, !0);
100
+ return i && i.value;
101
+ }
102
+ }), C;
103
+ }
104
+ Ee();
105
+ var H = {}, T;
106
+ function $e() {
107
+ if (T)
108
+ return H;
109
+ T = 1;
110
+ var t = m(), r = h(), n = d(), a = c;
111
+ return t({
112
+ target: "Map",
113
+ proto: !0,
114
+ real: !0,
115
+ forced: !0
116
+ }, {
117
+ findKey: function(s) {
118
+ var u = n(this), p = r(s, arguments.length > 1 ? arguments[1] : void 0), i = a(u, function(e, o) {
119
+ if (p(e, o, u))
120
+ return {
121
+ key: o
122
+ };
123
+ }, !0);
124
+ return i && i.key;
125
+ }
126
+ }), H;
127
+ }
128
+ $e();
129
+ var V = {}, F;
130
+ function be() {
131
+ if (F)
132
+ return V;
133
+ F = 1;
134
+ var t = m(), r = d(), n = g, a = ie(), v = n.get, s = n.has, u = n.set;
135
+ return t({
136
+ target: "Map",
137
+ proto: !0,
138
+ real: !0,
139
+ forced: a
140
+ }, {
141
+ getOrInsert: function(i, e) {
142
+ return s(r(this), i) ? v(this, i) : (u(this, i, e), e);
143
+ }
144
+ }), V;
145
+ }
146
+ be();
147
+ var P = {}, j;
148
+ function Re() {
149
+ if (j)
150
+ return P;
151
+ j = 1;
152
+ var t = m(), r = $(), n = d(), a = g, v = ie(), s = a.get, u = a.has, p = a.set;
153
+ return t({
154
+ target: "Map",
155
+ proto: !0,
156
+ real: !0,
157
+ forced: v
158
+ }, {
159
+ getOrInsertComputed: function(e, o) {
160
+ if (n(this), r(o), u(this, e))
161
+ return s(this, e);
162
+ e === 0 && 1 / e === -1 / 0 && (e = 0);
163
+ var f = o(e);
164
+ return p(this, e, f), f;
165
+ }
166
+ }), P;
167
+ }
168
+ Re();
169
+ var Z = {}, q, U;
170
+ function Ie() {
171
+ return U || (U = 1, q = function(t, r) {
172
+ return t === r || t !== t && r !== r;
173
+ }), q;
174
+ }
175
+ var z;
176
+ function Oe() {
177
+ if (z)
178
+ return Z;
179
+ z = 1;
180
+ var t = m(), r = Ie(), n = d(), a = c;
181
+ return t({
182
+ target: "Map",
183
+ proto: !0,
184
+ real: !0,
185
+ forced: !0
186
+ }, {
187
+ includes: function(s) {
188
+ return a(n(this), function(u) {
189
+ if (r(u, s))
190
+ return !0;
191
+ }, !0) === !0;
192
+ }
193
+ }), Z;
194
+ }
195
+ Oe();
196
+ var D = {}, N;
197
+ function ye() {
198
+ if (N)
199
+ return D;
200
+ N = 1;
201
+ var t = m(), r = d(), n = c;
202
+ return t({
203
+ target: "Map",
204
+ proto: !0,
205
+ real: !0,
206
+ forced: !0
207
+ }, {
208
+ keyOf: function(v) {
209
+ var s = n(r(this), function(u, p) {
210
+ if (u === v)
211
+ return {
212
+ key: p
213
+ };
214
+ }, !0);
215
+ return s && s.key;
216
+ }
217
+ }), D;
218
+ }
219
+ ye();
220
+ var B = {}, L;
221
+ function we() {
222
+ if (L)
223
+ return B;
224
+ L = 1;
225
+ var t = m(), r = h(), n = d(), a = g, v = c, s = a.Map, u = a.set;
226
+ return t({
227
+ target: "Map",
228
+ proto: !0,
229
+ real: !0,
230
+ forced: !0
231
+ }, {
232
+ mapKeys: function(i) {
233
+ var e = n(this), o = r(i, arguments.length > 1 ? arguments[1] : void 0), f = new s();
234
+ return v(e, function(l, _) {
235
+ u(f, o(l, _, e), l);
236
+ }), f;
237
+ }
238
+ }), B;
239
+ }
240
+ we();
241
+ var G = {}, J;
242
+ function Se() {
243
+ if (J)
244
+ return G;
245
+ J = 1;
246
+ var t = m(), r = h(), n = d(), a = g, v = c, s = a.Map, u = a.set;
247
+ return t({
248
+ target: "Map",
249
+ proto: !0,
250
+ real: !0,
251
+ forced: !0
252
+ }, {
253
+ mapValues: function(i) {
254
+ var e = n(this), o = r(i, arguments.length > 1 ? arguments[1] : void 0), f = new s();
255
+ return v(e, function(l, _) {
256
+ u(f, _, o(l, _, e));
257
+ }), f;
258
+ }
259
+ }), G;
260
+ }
261
+ Se();
262
+ var Q = {}, W;
263
+ function Ae() {
264
+ if (W)
265
+ return Q;
266
+ W = 1;
267
+ var t = m(), r = d(), n = de(), a = g.set;
268
+ return t({
269
+ target: "Map",
270
+ proto: !0,
271
+ real: !0,
272
+ arity: 1,
273
+ forced: !0
274
+ }, {
275
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
276
+ merge: function(s) {
277
+ for (var u = r(this), p = arguments.length, i = 0; i < p; )
278
+ n(arguments[i++], function(e, o) {
279
+ a(u, e, o);
280
+ }, {
281
+ AS_ENTRIES: !0
282
+ });
283
+ return u;
284
+ }
285
+ }), Q;
286
+ }
287
+ Ae();
288
+ var X = {}, Y;
289
+ function Ce() {
290
+ if (Y)
291
+ return X;
292
+ Y = 1;
293
+ var t = m(), r = $(), n = d(), a = c, v = TypeError;
294
+ return t({
295
+ target: "Map",
296
+ proto: !0,
297
+ real: !0,
298
+ forced: !0
299
+ }, {
300
+ reduce: function(u) {
301
+ var p = n(this), i = arguments.length < 2, e = i ? void 0 : arguments[1];
302
+ if (r(u), a(p, function(o, f) {
303
+ i ? (i = !1, e = o) : e = u(e, o, f, p);
304
+ }), i)
305
+ throw new v("Reduce of empty map with no initial value");
306
+ return e;
307
+ }
308
+ }), X;
309
+ }
310
+ Ce();
311
+ var k = {}, ee;
312
+ function Ke() {
313
+ if (ee)
314
+ return k;
315
+ ee = 1;
316
+ var t = m(), r = h(), n = d(), a = c;
317
+ return t({
318
+ target: "Map",
319
+ proto: !0,
320
+ real: !0,
321
+ forced: !0
322
+ }, {
323
+ some: function(s) {
324
+ var u = n(this), p = r(s, arguments.length > 1 ? arguments[1] : void 0);
325
+ return a(u, function(i, e) {
326
+ if (p(i, e, u))
327
+ return !0;
328
+ }, !0) === !0;
329
+ }
330
+ }), k;
331
+ }
332
+ Ke();
333
+ var re = {}, te;
334
+ function He() {
335
+ if (te)
336
+ return re;
337
+ te = 1;
338
+ var t = m(), r = $(), n = d(), a = g, v = TypeError, s = a.get, u = a.has, p = a.set;
339
+ return t({
340
+ target: "Map",
341
+ proto: !0,
342
+ real: !0,
343
+ forced: !0
344
+ }, {
345
+ update: function(e, o) {
346
+ var f = n(this), l = arguments.length;
347
+ r(o);
348
+ var _ = u(f, e);
349
+ if (!_ && l < 3)
350
+ throw new v("Updating absent value");
351
+ var fe = _ ? s(f, e) : r(l > 2 ? arguments[2] : void 0)(e, f);
352
+ return p(f, e, o(fe, e, f)), f;
353
+ }
354
+ }), re;
355
+ }
356
+ He();
357
+ var x = require("../internals/function-uncurry-this"), M = Map.prototype;
358
+ b.exports = {
359
+ // eslint-disable-next-line es/no-map -- safe
360
+ Map,
361
+ set: x(M.set),
362
+ get: x(M.get),
363
+ has: x(M.has),
364
+ remove: x(M.delete),
365
+ proto: M
366
+ };
367
+ const Te = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
368
+ __proto__: null
369
+ }, Symbol.toStringTag, { value: "Module" })), g = /* @__PURE__ */ ue(Te);
370
+ var E, ae;
371
+ function d() {
372
+ if (ae)
373
+ return E;
374
+ ae = 1;
375
+ var t = g.has;
376
+ return E = function(r) {
377
+ return t(r), r;
378
+ }, E;
379
+ }
380
+ var ne;
381
+ function Ve() {
382
+ if (ne)
383
+ return R;
384
+ ne = 1;
385
+ var t = m(), r = d(), n = g.remove;
386
+ return t({
387
+ target: "Map",
388
+ proto: !0,
389
+ real: !0,
390
+ forced: !0
391
+ }, {
392
+ deleteAll: function() {
393
+ for (var v = r(this), s = !0, u, p = 0, i = arguments.length; p < i; p++)
394
+ u = n(v, arguments[p]), s = s && u;
395
+ return !!s;
396
+ }
397
+ }), R;
398
+ }
399
+ Ve();
400
+ });
401
+ export default Fe();
@@ -0,0 +1,17 @@
1
+ import { r as s, a } from "./is-pure-db2321f6.js";
2
+ var r, e;
3
+ function y() {
4
+ if (e)
5
+ return r;
6
+ e = 1;
7
+ var c = s(), n = a();
8
+ return r = function(u, i, t) {
9
+ try {
10
+ return c(n(Object.getOwnPropertyDescriptor(u, i)[t]));
11
+ } catch {
12
+ }
13
+ }, r;
14
+ }
15
+ export {
16
+ y as r
17
+ };
@@ -1,6 +1,6 @@
1
1
  import * as w from "react";
2
2
  import { useLayoutEffect as ke } from "react";
3
- import { u as mt, P as it, a as bt, g as We, h as Pt, c as $e, d as Be } from "./index-c9a2990a.js";
3
+ import { u as mt, P as it, a as bt, g as We, h as Pt, c as $e, d as Be } from "./index-7ca3764b.js";
4
4
  import { jsx as _ } from "react/jsx-runtime";
5
5
  import * as _e from "react-dom";
6
6
  function gt(t) {
@@ -325,8 +325,8 @@ export {
325
325
  q as f,
326
326
  J as g,
327
327
  N as h,
328
- O as i,
329
- P as j,
330
- B as k,
328
+ B as i,
329
+ O as j,
330
+ P as k,
331
331
  x as u
332
332
  };