@prose-reader/react-reader 1.275.0 → 1.277.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,20 +1,20 @@
1
- import { jsx as a, jsxs as x, Fragment as et } from "react/jsx-runtime";
2
- import { c as y } from "react/compiler-runtime";
3
- import { Presence as tt, Button as re, IconButton as ee, Drawer as fe, Portal as ct, Box as he, Stack as J, Text as q, Textarea as en, Dialog as ie, List as me, Link as Ct, Tabs as ue, createToaster as tn, Toaster as nn, Toast as Ne, Spinner as on, RadioGroup as Qe, Slider as ae, HStack as ge, For as ln, Fieldset as Se, Heading as mt, Kbd as zt, Popover as He, Progress as Ze, chakra as sn, Collapsible as gt, Field as je, Input as an } from "@chakra-ui/react";
1
+ import { jsx as r, jsxs as C, Fragment as et } from "react/jsx-runtime";
2
+ import { c as x } from "react/compiler-runtime";
3
+ import { Presence as tt, Button as re, IconButton as ee, Drawer as fe, Portal as ct, Box as he, Stack as J, Text as q, Textarea as en, Dialog as ie, List as me, Link as Ct, Tabs as ue, createToaster as tn, Toaster as nn, Toast as Ne, Spinner as on, RadioGroup as Qe, Slider as ae, HStack as ge, For as ln, Fieldset as Se, Heading as mt, Kbd as zt, Popover as He, Progress as Ze, chakra as sn, Collapsible as gt, Field as Ue, Input as an } from "@chakra-ui/react";
4
4
  import * as se from "react";
5
- import rn, { createContext as cn, useContext as At, memo as w, useState as le, useEffect as ce, useLayoutEffect as fn, useRef as dn } from "react";
5
+ import rn, { createContext as cn, useContext as At, memo as M, useState as le, useEffect as ce, useLayoutEffect as fn, useRef as dn } from "react";
6
6
  import { FaEdit as un } from "react-icons/fa";
7
7
  import { LuNotebookPen as Ke, LuX as hn, LuBookmark as mn, LuCheck as gn, LuArrowBigRight as pn, LuArrowBigLeft as bn, LuChevronDown as Sn, LuCircleHelp as _n, LuTableOfContents as vn, LuSearch as Cn, LuZoomOut as xn, LuZoomIn as yn, LuGalleryHorizontal as kn, LuCircleCheck as Rt } from "react-icons/lu";
8
- import { signal as Ve, useObserve as j, useSignalValue as bt, useSubscribe as pe, isDefined as Et, useConstant as at, useMemoCompare as In, useLiveRef as $n, useSignalState as On } from "reactjrx";
9
- import { Subject as Tn, EMPTY as St, switchMap as be, map as ne, startWith as Bt, tap as xt, filter as Xe, of as _t, NEVER as ft, withLatestFrom as yt, distinctUntilChanged as rt, combineLatest as Dt, throttleTime as Ft, first as Lt, mergeMap as zn, Observable as Rn, skip as wn, merge as Nt, timer as Ht, finalize as Mn, BehaviorSubject as Pn, animationFrameScheduler as An } from "rxjs";
8
+ import { signal as Ve, useObserve as U, useSignalValue as bt, useSubscribe as pe, isDefined as Et, useConstant as at, useMemoCompare as $n, useLiveRef as In, useSignalState as On } from "reactjrx";
9
+ import { Subject as Tn, EMPTY as St, switchMap as be, map as ne, startWith as Bt, tap as xt, filter as Xe, of as _t, NEVER as ft, withLatestFrom as yt, distinctUntilChanged as rt, combineLatest as Dt, throttleTime as Ft, first as Lt, mergeMap as zn, Observable as Rn, skip as Mn, merge as Nt, timer as Ht, finalize as wn, BehaviorSubject as Pn, animationFrameScheduler as An } from "rxjs";
10
10
  import { pick as En, watchKeys as Bn, isShallowEqual as Vt, observeIntersection as Dn, isHtmlTagElement as Fn } from "@prose-reader/core";
11
11
  import { createPortal as Ln } from "react-dom";
12
12
  import { isPositionInArea as Nn } from "@prose-reader/enhancer-gestures";
13
13
  import { isShallowEqual as Hn } from "@prose-reader/shared";
14
14
  import { BiFontSize as Vn } from "react-icons/bi";
15
15
  import { BsBookmarks as Wn } from "react-icons/bs";
16
- import { MdOutlineFitScreen as Gn, MdFullscreenExit as qn, MdFullscreen as jn } from "react-icons/md";
17
- import { RiGalleryView2 as Un } from "react-icons/ri";
16
+ import { MdOutlineFitScreen as Gn, MdFullscreenExit as qn, MdFullscreen as Un } from "react-icons/md";
17
+ import { RiGalleryView2 as jn } from "react-icons/ri";
18
18
  import { RxDoubleArrowUp as Qn, RxDoubleArrowLeft as Yn, RxDoubleArrowDown as Zn, RxDoubleArrowRight as Kn } from "react-icons/rx";
19
19
  import { HiOutlineInformationCircle as Xn } from "react-icons/hi";
20
20
  import Jn from "rc-slider";
@@ -42,7 +42,7 @@ const no = "data-bookmark-area", Wt = 5, Gt = () => ({
42
42
  }), kt = cn(Ve({
43
43
  default: Gt()
44
44
  })), oe = (t) => {
45
- const e = y(9), o = At(kt);
45
+ const e = x(9), o = At(kt);
46
46
  let n;
47
47
  e[0] !== o || e[1] !== t ? (n = () => o.pipe(Bn(t)), e[0] = o, e[1] = t, e[2] = n) : n = e[2];
48
48
  let l;
@@ -53,9 +53,9 @@ const no = "data-bookmark-area", Wt = 5, Gt = () => ({
53
53
  defaultValue: l
54
54
  }, e[6] = l, e[7] = i) : i = e[7];
55
55
  let s;
56
- return e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = [], e[8] = s) : s = e[8], j(n, i, s).data;
57
- }, We = () => At(kt), oo = 24, qt = w((t) => {
58
- const e = y(9);
56
+ return e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = [], e[8] = s) : s = e[8], U(n, i, s).data;
57
+ }, We = () => At(kt), oo = 24, qt = M((t) => {
58
+ const e = x(9);
59
59
  let o, n;
60
60
  e[0] !== t ? ({
61
61
  children: o,
@@ -65,29 +65,29 @@ const no = "data-bookmark-area", Wt = 5, Gt = () => ({
65
65
  e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = ["quickMenuBottomBarBoundingBoxSignal", "zoomMaxScale"], e[3] = l) : l = e[3];
66
66
  const {
67
67
  quickMenuBottomBarBoundingBoxSignal: i
68
- } = oe(l), r = bt(i)?.borderBoxSize?.[0]?.blockSize || oo;
68
+ } = oe(l), a = bt(i)?.borderBoxSize?.[0]?.blockSize || oo;
69
69
  let c;
70
70
  e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = {
71
71
  _open: "fade-in",
72
72
  _closed: "fade-out"
73
73
  }, e[4] = c) : c = e[4];
74
- const f = `calc(${r}px + var(--chakra-spacing-4))`;
74
+ const f = `calc(${a}px + var(--chakra-spacing-4))`;
75
75
  let u;
76
- return e[5] !== o || e[6] !== n || e[7] !== f ? (u = /* @__PURE__ */ a(tt, { animationName: c, animationDuration: "moderate", position: "absolute", bottom: f, right: 4, backgroundColor: "bg.panel", shadow: "sm", borderRadius: "md", p: 2, display: "flex", flexDirection: "row", gap: 2, ...n, children: o }), e[5] = o, e[6] = n, e[7] = f, e[8] = u) : u = e[8], u;
77
- }), U = () => {
78
- const t = y(1);
76
+ return e[5] !== o || e[6] !== n || e[7] !== f ? (u = /* @__PURE__ */ r(tt, { animationName: c, animationDuration: "moderate", position: "absolute", bottom: f, right: 4, backgroundColor: "bg.panel", shadow: "sm", borderRadius: "md", p: 2, display: "flex", flexDirection: "row", gap: 2, ...n, children: o }), e[5] = o, e[6] = n, e[7] = f, e[8] = u) : u = e[8], u;
77
+ }), j = () => {
78
+ const t = x(1);
79
79
  let e;
80
80
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["reader"], t[0] = e) : e = t[0];
81
81
  const {
82
82
  reader: o
83
83
  } = oe(e);
84
84
  return o;
85
- }, jt = (t) => !!t && "__PROSE_READER_ENHANCER_SEARCH" in t, Je = (t) => !!t && "__PROSE_READER_ENHANCER_ANNOTATIONS" in t, Ut = (t) => !!t && "__PROSE_READER_ENHANCER_GALLERY" in t, Qt = (t) => !!t && "__PROSE_READER_ENHANCER_REFIT" in t, nt = () => {
86
- const t = y(2), e = U();
85
+ }, Ut = (t) => !!t && "__PROSE_READER_ENHANCER_SEARCH" in t, Je = (t) => !!t && "__PROSE_READER_ENHANCER_ANNOTATIONS" in t, jt = (t) => !!t && "__PROSE_READER_ENHANCER_GALLERY" in t, Qt = (t) => !!t && "__PROSE_READER_ENHANCER_REFIT" in t, nt = () => {
86
+ const t = x(2), e = j();
87
87
  let o;
88
88
  return t[0] !== e ? (o = Je(e) ? e : void 0, t[0] = e, t[1] = o) : o = t[1], o;
89
89
  }, lo = () => {
90
- const t = y(16), e = nt(), o = We();
90
+ const t = x(16), e = nt(), o = We();
91
91
  let n;
92
92
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = ["selectedHighlight"], t[0] = n) : n = t[0];
93
93
  const {
@@ -99,35 +99,35 @@ const no = "data-bookmark-area", Wt = 5, Gt = () => ({
99
99
  t[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = {
100
100
  defaultValue: !1
101
101
  }, t[3] = s) : s = t[3];
102
- let r;
103
- t[4] !== e ? (r = [e], t[4] = e, t[5] = r) : r = t[5];
102
+ let a;
103
+ t[4] !== e ? (a = [e], t[4] = e, t[5] = a) : a = t[5];
104
104
  const {
105
105
  data: c
106
- } = j(i, s, r), f = c && !l;
106
+ } = U(i, s, a), f = c && !l;
107
107
  let u;
108
108
  t[6] !== o || t[7] !== e?.selection ? (u = () => {
109
- const p = e?.selection.getSelection();
110
- p && o.update((b) => ({
111
- ...b,
109
+ const b = e?.selection.getSelection();
110
+ b && o.update((p) => ({
111
+ ...p,
112
112
  selectedHighlight: {
113
- selection: p
113
+ selection: b
114
114
  }
115
115
  }));
116
116
  }, t[6] = o, t[7] = e?.selection, t[8] = u) : u = t[8];
117
117
  let d;
118
- t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ a(un, {}), t[9] = d) : d = t[9];
118
+ t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ r(un, {}), t[9] = d) : d = t[9];
119
119
  let h;
120
- t[10] !== u ? (h = /* @__PURE__ */ x(re, { variant: "outline", size: "sm", onClick: u, children: [
120
+ t[10] !== u ? (h = /* @__PURE__ */ C(re, { variant: "outline", size: "sm", onClick: u, children: [
121
121
  d,
122
122
  "Annotate"
123
123
  ] }), t[10] = u, t[11] = h) : h = t[11];
124
124
  let m;
125
- t[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ x(re, { variant: "outline", size: "sm", disabled: !0, children: [
126
- /* @__PURE__ */ a(Ke, {}),
125
+ t[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ C(re, { variant: "outline", size: "sm", disabled: !0, children: [
126
+ /* @__PURE__ */ r(Ke, {}),
127
127
  "Bookmark"
128
128
  ] }), t[12] = m) : m = t[12];
129
129
  let g;
130
- return t[13] !== f || t[14] !== h ? (g = /* @__PURE__ */ x(qt, { present: f, children: [
130
+ return t[13] !== f || t[14] !== h ? (g = /* @__PURE__ */ C(qt, { present: f, children: [
131
131
  h,
132
132
  m
133
133
  ] }), t[13] = f, t[14] = h, t[15] = g) : g = t[15], g;
@@ -136,35 +136,35 @@ function io() {
136
136
  return !1;
137
137
  }
138
138
  const so = (t, e = 50) => t.length <= e ? t : `${t.slice(0, e)}...`, Yt = se.forwardRef(function(e, o) {
139
- const n = y(6);
139
+ const n = x(6);
140
140
  let l;
141
- n[0] !== e.children ? (l = e.children ?? /* @__PURE__ */ a(hn, {}), n[0] = e.children, n[1] = l) : l = n[1];
141
+ n[0] !== e.children ? (l = e.children ?? /* @__PURE__ */ r(hn, {}), n[0] = e.children, n[1] = l) : l = n[1];
142
142
  let i;
143
- return n[2] !== e || n[3] !== o || n[4] !== l ? (i = /* @__PURE__ */ a(ee, { variant: "ghost", "aria-label": "Close", ref: o, ...e, children: l }), n[2] = e, n[3] = o, n[4] = l, n[5] = i) : i = n[5], i;
143
+ return n[2] !== e || n[3] !== o || n[4] !== l ? (i = /* @__PURE__ */ r(ee, { variant: "ghost", "aria-label": "Close", ref: o, ...e, children: l }), n[2] = e, n[3] = o, n[4] = l, n[5] = i) : i = n[5], i;
144
144
  }), ao = se.forwardRef(function(e, o) {
145
- const n = y(17);
146
- let l, i, s, r, c;
145
+ const n = x(17);
146
+ let l, i, s, a, c;
147
147
  n[0] !== e ? ({
148
148
  children: l,
149
149
  portalled: c,
150
150
  portalRef: s,
151
151
  offset: i,
152
- ...r
153
- } = e, n[0] = e, n[1] = l, n[2] = i, n[3] = s, n[4] = r, n[5] = c) : (l = n[1], i = n[2], s = n[3], r = n[4], c = n[5]);
152
+ ...a
153
+ } = e, n[0] = e, n[1] = l, n[2] = i, n[3] = s, n[4] = a, n[5] = c) : (l = n[1], i = n[2], s = n[3], a = n[4], c = n[5]);
154
154
  const u = !(c === void 0 ? !0 : c);
155
155
  let d;
156
- n[6] !== l || n[7] !== o || n[8] !== r ? (d = /* @__PURE__ */ a(fe.Content, { ref: o, ...r, asChild: !1, children: l }), n[6] = l, n[7] = o, n[8] = r, n[9] = d) : d = n[9];
156
+ n[6] !== l || n[7] !== o || n[8] !== a ? (d = /* @__PURE__ */ r(fe.Content, { ref: o, ...a, asChild: !1, children: l }), n[6] = l, n[7] = o, n[8] = a, n[9] = d) : d = n[9];
157
157
  let h;
158
- n[10] !== i || n[11] !== d ? (h = /* @__PURE__ */ a(fe.Positioner, { padding: i, children: d }), n[10] = i, n[11] = d, n[12] = h) : h = n[12];
158
+ n[10] !== i || n[11] !== d ? (h = /* @__PURE__ */ r(fe.Positioner, { padding: i, children: d }), n[10] = i, n[11] = d, n[12] = h) : h = n[12];
159
159
  let m;
160
- return n[13] !== s || n[14] !== u || n[15] !== h ? (m = /* @__PURE__ */ a(ct, { disabled: u, container: s, children: h }), n[13] = s, n[14] = u, n[15] = h, n[16] = m) : m = n[16], m;
160
+ return n[13] !== s || n[14] !== u || n[15] !== h ? (m = /* @__PURE__ */ r(ct, { disabled: u, container: s, children: h }), n[13] = s, n[14] = u, n[15] = h, n[16] = m) : m = n[16], m;
161
161
  });
162
162
  se.forwardRef(function(e, o) {
163
- const n = y(5);
163
+ const n = x(5);
164
164
  let l;
165
- n[0] !== o ? (l = /* @__PURE__ */ a(Yt, { size: "sm", ref: o }), n[0] = o, n[1] = l) : l = n[1];
165
+ n[0] !== o ? (l = /* @__PURE__ */ r(Yt, { size: "sm", ref: o }), n[0] = o, n[1] = l) : l = n[1];
166
166
  let i;
167
- return n[2] !== e || n[3] !== l ? (i = /* @__PURE__ */ a(fe.CloseTrigger, { position: "absolute", top: "2", insetEnd: "2", ...e, asChild: !0, children: l }), n[2] = e, n[3] = l, n[4] = i) : i = n[4], i;
167
+ return n[2] !== e || n[3] !== l ? (i = /* @__PURE__ */ r(fe.CloseTrigger, { position: "absolute", top: "2", insetEnd: "2", ...e, asChild: !0, children: l }), n[2] = e, n[3] = l, n[4] = i) : i = n[4], i;
168
168
  });
169
169
  fe.Trigger;
170
170
  const ro = fe.Root;
@@ -184,8 +184,8 @@ const pt = [
184
184
  // Light blue
185
185
  "rgba(255, 182, 193, 1)"
186
186
  // Light pink
187
- ], ho = w(() => {
188
- const t = y(60), e = nt();
187
+ ], ho = M(() => {
188
+ const t = x(58), e = nt();
189
189
  let o;
190
190
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = ["selectedHighlight", "onAnnotationCreate", "onAnnotationUpdate", "onAnnotationDelete"], t[0] = o) : o = t[0];
191
191
  const {
@@ -193,109 +193,107 @@ const pt = [
193
193
  onAnnotationCreate: l,
194
194
  onAnnotationUpdate: i,
195
195
  onAnnotationDelete: s
196
- } = oe(o), r = We(), {
196
+ } = oe(o), a = We(), {
197
197
  highlight: c,
198
198
  selection: f
199
199
  } = n ?? {}, [u, d] = le(pt[0]), [h, m] = le(""), g = !!(f ?? c);
200
- let p;
201
- t[1] !== r ? (p = () => {
202
- r.update(mo);
203
- }, t[1] = r, t[2] = p) : p = t[2];
204
- const b = p;
200
+ let b;
201
+ t[1] !== a ? (b = () => {
202
+ a.update(mo);
203
+ }, t[1] = a, t[2] = b) : b = t[2];
204
+ const p = b;
205
205
  let S;
206
- t[3] !== b ? (S = (D) => {
207
- D.open || b();
208
- }, t[3] = b, t[4] = S) : S = t[4];
209
- const _ = S, v = c?.highlightColor, C = c?.notes;
210
- let I;
211
- t[5] !== m ? (I = () => {
206
+ t[3] !== p ? (S = (B) => {
207
+ B.open || p();
208
+ }, t[3] = p, t[4] = S) : S = t[4];
209
+ const _ = S, v = c?.highlightColor, y = c?.notes;
210
+ let $;
211
+ t[5] !== m ? ($ = () => {
212
212
  m("");
213
- }, t[5] = m, t[6] = I) : I = t[6];
213
+ }, t[5] = m, t[6] = $) : $ = t[6];
214
214
  let k;
215
- t[7] !== g ? (k = [g], t[7] = g, t[8] = k) : k = t[8], ce(I, k), ce(() => {
216
- m(C ?? "");
217
- }, [C]), ce(() => {
215
+ t[7] !== g ? (k = [g], t[7] = g, t[8] = k) : k = t[8], ce($, k), ce(() => {
216
+ m(y ?? "");
217
+ }, [y]), ce(() => {
218
218
  d(v || pt[0]);
219
219
  }, [v, g]);
220
- let $;
221
- t[9] !== r || t[10] !== e?.annotations.highlightTap$ ? ($ = function() {
220
+ let I;
221
+ t[9] !== a || t[10] !== e?.annotations.highlightTap$ ? (I = function() {
222
222
  return e?.annotations.highlightTap$.pipe(xt((de) => {
223
223
  const {
224
- highlight: R
224
+ highlight: T
225
225
  } = de;
226
- r.update((te) => ({
226
+ a.update((te) => ({
227
227
  ...te,
228
228
  selectedHighlight: {
229
- highlight: R
229
+ highlight: T
230
230
  }
231
231
  }));
232
232
  }));
233
- }, t[9] = r, t[10] = e?.annotations.highlightTap$, t[11] = $) : $ = t[11];
233
+ }, t[9] = a, t[10] = e?.annotations.highlightTap$, t[11] = I) : I = t[11], pe(I);
234
+ const z = ro, L = "bottom";
234
235
  let O;
235
- t[12] !== e ? (O = [e], t[12] = e, t[13] = O) : O = t[13], pe($, O);
236
- const z = ro, E = "bottom";
237
- let T;
238
- t[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = /* @__PURE__ */ a(uo, {}), t[14] = T) : T = t[14];
239
- const N = ao, M = co, H = "1px", Q = c ? "Highlight" : `Selection: "${so(f?.selection?.toString() ?? "", 10)}"`;
236
+ t[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ r(uo, {}), t[12] = O) : O = t[12];
237
+ const N = ao, w = co, H = "1px", Q = c ? "Highlight" : `Selection: "${so(f?.selection?.toString() ?? "", 10)}"`;
240
238
  let K;
241
- t[15] !== M || t[16] !== Q ? (K = /* @__PURE__ */ a(M, { borderBottomWidth: H, children: Q }), t[15] = M, t[16] = Q, t[17] = K) : K = t[17];
239
+ t[13] !== w || t[14] !== Q ? (K = /* @__PURE__ */ r(w, { borderBottomWidth: H, children: Q }), t[13] = w, t[14] = Q, t[15] = K) : K = t[15];
242
240
  let V;
243
- t[18] !== u || t[19] !== d ? (V = pt.map((D) => /* @__PURE__ */ a(he, { bgColor: D, height: 10, width: 10, borderRadius: "50%", cursor: "pointer", ...u === D && {
241
+ t[16] !== u || t[17] !== d ? (V = pt.map((B) => /* @__PURE__ */ r(he, { bgColor: B, height: 10, width: 10, borderRadius: "50%", cursor: "pointer", ...u === B && {
244
242
  border: "4px solid white"
245
- }, onClick: () => d(D) }, D)), t[18] = u, t[19] = d, t[20] = V) : V = t[20];
243
+ }, onClick: () => d(B) }, B)), t[16] = u, t[17] = d, t[18] = V) : V = t[18];
246
244
  let W;
247
- t[21] !== V ? (W = /* @__PURE__ */ a(J, { gap: 2, flexDirection: "row", children: V }), t[21] = V, t[22] = W) : W = t[22];
245
+ t[19] !== V ? (W = /* @__PURE__ */ r(J, { gap: 2, flexDirection: "row", children: V }), t[19] = V, t[20] = W) : W = t[20];
248
246
  let G;
249
- t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ a(q, { children: "Annotation:" }), t[23] = G) : G = t[23];
250
- let F;
251
- t[24] !== m ? (F = (D) => m(D.target.value), t[24] = m, t[25] = F) : F = t[25];
247
+ t[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ r(q, { children: "Annotation:" }), t[21] = G) : G = t[21];
248
+ let D;
249
+ t[22] !== m ? (D = (B) => m(B.target.value), t[22] = m, t[23] = D) : D = t[23];
252
250
  let P;
253
- t[26] !== h || t[27] !== F ? (P = /* @__PURE__ */ a(en, { value: h, onChange: F }), t[26] = h, t[27] = F, t[28] = P) : P = t[28];
251
+ t[24] !== h || t[25] !== D ? (P = /* @__PURE__ */ r(en, { value: h, onChange: D }), t[24] = h, t[25] = D, t[26] = P) : P = t[26];
254
252
  let Y;
255
- t[29] !== W || t[30] !== P ? (Y = /* @__PURE__ */ x(J, { children: [
253
+ t[27] !== W || t[28] !== P ? (Y = /* @__PURE__ */ C(J, { children: [
256
254
  W,
257
255
  G,
258
256
  P
259
- ] }), t[29] = W, t[30] = P, t[31] = Y) : Y = t[31];
257
+ ] }), t[27] = W, t[28] = P, t[29] = Y) : Y = t[29];
260
258
  let Z;
261
- t[32] !== h || t[33] !== l || t[34] !== b || t[35] !== e?.annotations || t[36] !== u || t[37] !== f ? (Z = !!f && /* @__PURE__ */ a(re, { onClick: () => {
262
- b();
263
- const D = e?.annotations.createAnnotation({
259
+ t[30] !== h || t[31] !== l || t[32] !== p || t[33] !== e?.annotations || t[34] !== u || t[35] !== f ? (Z = !!f && /* @__PURE__ */ r(re, { onClick: () => {
260
+ p();
261
+ const B = e?.annotations.createAnnotation({
264
262
  ...f,
265
263
  highlightColor: u,
266
264
  notes: h
267
265
  });
268
- D && l?.(D);
269
- }, children: "Highlight" }), t[32] = h, t[33] = l, t[34] = b, t[35] = e?.annotations, t[36] = u, t[37] = f, t[38] = Z) : Z = t[38];
266
+ B && l?.(B);
267
+ }, children: "Highlight" }), t[30] = h, t[31] = l, t[32] = p, t[33] = e?.annotations, t[34] = u, t[35] = f, t[36] = Z) : Z = t[36];
270
268
  let A;
271
- t[39] !== h || t[40] !== c || t[41] !== s || t[42] !== i || t[43] !== b || t[44] !== u ? (A = !!c && /* @__PURE__ */ x(J, { direction: "row", children: [
272
- /* @__PURE__ */ a(re, { flex: 1, onClick: () => {
273
- b(), i?.({
269
+ t[37] !== h || t[38] !== c || t[39] !== s || t[40] !== i || t[41] !== p || t[42] !== u ? (A = !!c && /* @__PURE__ */ C(J, { direction: "row", children: [
270
+ /* @__PURE__ */ r(re, { flex: 1, onClick: () => {
271
+ p(), i?.({
274
272
  id: c.id,
275
273
  highlightColor: u,
276
274
  notes: h
277
275
  });
278
276
  }, children: "Update" }),
279
- /* @__PURE__ */ a(re, { flex: 1, variant: "surface", onClick: () => {
280
- b(), s?.(c.id);
277
+ /* @__PURE__ */ r(re, { flex: 1, variant: "surface", onClick: () => {
278
+ p(), s?.(c.id);
281
279
  }, children: "Remove" })
282
- ] }), t[39] = h, t[40] = c, t[41] = s, t[42] = i, t[43] = b, t[44] = u, t[45] = A) : A = t[45];
283
- let L;
284
- t[46] !== Y || t[47] !== Z || t[48] !== A ? (L = /* @__PURE__ */ x(fo, { gap: 4, display: "flex", flexDirection: "column", pb: 4, children: [
280
+ ] }), t[37] = h, t[38] = c, t[39] = s, t[40] = i, t[41] = p, t[42] = u, t[43] = A) : A = t[43];
281
+ let F;
282
+ t[44] !== Y || t[45] !== Z || t[46] !== A ? (F = /* @__PURE__ */ C(fo, { gap: 4, display: "flex", flexDirection: "column", pb: 4, children: [
285
283
  Y,
286
284
  Z,
287
285
  A
288
- ] }), t[46] = Y, t[47] = Z, t[48] = A, t[49] = L) : L = t[49];
286
+ ] }), t[44] = Y, t[45] = Z, t[46] = A, t[47] = F) : F = t[47];
289
287
  let X;
290
- t[50] !== N || t[51] !== K || t[52] !== L ? (X = /* @__PURE__ */ x(N, { children: [
288
+ t[48] !== N || t[49] !== K || t[50] !== F ? (X = /* @__PURE__ */ C(N, { children: [
291
289
  K,
292
- L
293
- ] }), t[50] = N, t[51] = K, t[52] = L, t[53] = X) : X = t[53];
294
- let B;
295
- return t[54] !== z || t[55] !== g || t[56] !== _ || t[57] !== X || t[58] !== T ? (B = /* @__PURE__ */ x(z, { placement: E, onOpenChange: _, open: g, children: [
296
- T,
290
+ F
291
+ ] }), t[48] = N, t[49] = K, t[50] = F, t[51] = X) : X = t[51];
292
+ let E;
293
+ return t[52] !== z || t[53] !== g || t[54] !== _ || t[55] !== X || t[56] !== O ? (E = /* @__PURE__ */ C(z, { placement: L, onOpenChange: _, open: g, children: [
294
+ O,
297
295
  X
298
- ] }), t[54] = z, t[55] = g, t[56] = _, t[57] = X, t[58] = T, t[59] = B) : B = t[59], B;
296
+ ] }), t[52] = z, t[53] = g, t[54] = _, t[55] = X, t[56] = O, t[57] = E) : E = t[57], E;
299
297
  });
300
298
  function mo(t) {
301
299
  return {
@@ -304,89 +302,89 @@ function mo(t) {
304
302
  };
305
303
  }
306
304
  const _e = se.forwardRef(function(e, o) {
307
- const n = y(17);
308
- let l, i, s, r, c;
305
+ const n = x(17);
306
+ let l, i, s, a, c;
309
307
  n[0] !== e ? ({
310
308
  children: l,
311
- portalled: r,
309
+ portalled: a,
312
310
  portalRef: i,
313
311
  backdrop: c,
314
312
  ...s
315
- } = e, n[0] = e, n[1] = l, n[2] = i, n[3] = s, n[4] = r, n[5] = c) : (l = n[1], i = n[2], s = n[3], r = n[4], c = n[5]);
316
- const f = r === void 0 ? !0 : r, u = c === void 0 ? !0 : c, d = !f;
313
+ } = e, n[0] = e, n[1] = l, n[2] = i, n[3] = s, n[4] = a, n[5] = c) : (l = n[1], i = n[2], s = n[3], a = n[4], c = n[5]);
314
+ const f = a === void 0 ? !0 : a, u = c === void 0 ? !0 : c, d = !f;
317
315
  let h;
318
- n[6] !== u ? (h = u && /* @__PURE__ */ a(ie.Backdrop, {}), n[6] = u, n[7] = h) : h = n[7];
316
+ n[6] !== u ? (h = u && /* @__PURE__ */ r(ie.Backdrop, {}), n[6] = u, n[7] = h) : h = n[7];
319
317
  let m;
320
- n[8] !== l || n[9] !== o || n[10] !== s ? (m = /* @__PURE__ */ a(ie.Positioner, { children: /* @__PURE__ */ a(ie.Content, { ref: o, ...s, asChild: !1, children: l }) }), n[8] = l, n[9] = o, n[10] = s, n[11] = m) : m = n[11];
318
+ n[8] !== l || n[9] !== o || n[10] !== s ? (m = /* @__PURE__ */ r(ie.Positioner, { children: /* @__PURE__ */ r(ie.Content, { ref: o, ...s, asChild: !1, children: l }) }), n[8] = l, n[9] = o, n[10] = s, n[11] = m) : m = n[11];
321
319
  let g;
322
- return n[12] !== i || n[13] !== d || n[14] !== h || n[15] !== m ? (g = /* @__PURE__ */ x(ct, { disabled: d, container: i, children: [
320
+ return n[12] !== i || n[13] !== d || n[14] !== h || n[15] !== m ? (g = /* @__PURE__ */ C(ct, { disabled: d, container: i, children: [
323
321
  h,
324
322
  m
325
323
  ] }), n[12] = i, n[13] = d, n[14] = h, n[15] = m, n[16] = g) : g = n[16], g;
326
324
  }), ve = se.forwardRef(function(e, o) {
327
- const n = y(6);
325
+ const n = x(6);
328
326
  let l;
329
- n[0] !== e.children || n[1] !== o ? (l = /* @__PURE__ */ a(Yt, { size: "sm", ref: o, children: e.children }), n[0] = e.children, n[1] = o, n[2] = l) : l = n[2];
327
+ n[0] !== e.children || n[1] !== o ? (l = /* @__PURE__ */ r(Yt, { size: "sm", ref: o, children: e.children }), n[0] = e.children, n[1] = o, n[2] = l) : l = n[2];
330
328
  let i;
331
- return n[3] !== e || n[4] !== l ? (i = /* @__PURE__ */ a(ie.CloseTrigger, { position: "absolute", top: "2", insetEnd: "2", ...e, asChild: !0, children: l }), n[3] = e, n[4] = l, n[5] = i) : i = n[5], i;
329
+ return n[3] !== e || n[4] !== l ? (i = /* @__PURE__ */ r(ie.CloseTrigger, { position: "absolute", top: "2", insetEnd: "2", ...e, asChild: !0, children: l }), n[3] = e, n[4] = l, n[5] = i) : i = n[5], i;
332
330
  }), Ce = ie.Root, xe = ie.Footer, ye = ie.Header, ke = ie.Body;
333
331
  ie.Backdrop;
334
- const Ie = ie.Title;
332
+ const $e = ie.Title;
335
333
  ie.Description;
336
334
  ie.Trigger;
337
- const $e = ie.ActionTrigger, go = (t) => {
338
- const e = y(7), o = U();
335
+ const Ie = ie.ActionTrigger, go = (t) => {
336
+ const e = x(7), o = j();
339
337
  let n;
340
338
  e[0] !== o ? (n = Je(o) ? o : void 0, e[0] = o, e[1] = n) : n = e[1];
341
339
  const l = n;
342
340
  let i;
343
- e[2] !== t || e[3] !== l ? (i = () => l?.annotations.annotations$.pipe(ne((r) => r.find((c) => c.id === t)), Xe(Et), be((r) => l.locateResource(r))), e[2] = t, e[3] = l, e[4] = i) : i = e[4];
341
+ e[2] !== t || e[3] !== l ? (i = () => l?.annotations.annotations$.pipe(ne((a) => a.find((c) => c.id === t)), Xe(Et), be((a) => l.locateResource(a))), e[2] = t, e[3] = l, e[4] = i) : i = e[4];
344
342
  let s;
345
- return e[5] !== l ? (s = [l], e[5] = l, e[6] = s) : s = e[6], j(i, s);
343
+ return e[5] !== l ? (s = [l], e[5] = l, e[6] = s) : s = e[6], U(i, s);
346
344
  }, Zt = (t) => {
347
- const e = y(22), {
345
+ const e = x(22), {
348
346
  id: o,
349
347
  onNavigate: n,
350
348
  allowLeftIcon: l
351
- } = t, i = l === void 0 ? !0 : l, s = U(), {
352
- data: r
349
+ } = t, i = l === void 0 ? !0 : l, s = j(), {
350
+ data: a
353
351
  } = go(o);
354
352
  let c;
355
- e[0] !== r?.meta.node?.textContent || e[1] !== r?.meta.range ? (c = r?.meta.range?.toString() || r?.meta.node?.textContent, e[0] = r?.meta.node?.textContent, e[1] = r?.meta.range, e[2] = c) : c = e[2];
353
+ e[0] !== a?.meta.node?.textContent || e[1] !== a?.meta.range ? (c = a?.meta.range?.toString() || a?.meta.node?.textContent, e[0] = a?.meta.node?.textContent, e[1] = a?.meta.range, e[2] = c) : c = e[2];
356
354
  const f = c;
357
355
  let u;
358
- e[3] !== r?.meta || e[4] !== n || e[5] !== s?.navigation ? (u = () => {
359
- n(), s?.navigation.goToCfi(r?.meta.cfi ?? "");
360
- }, e[3] = r?.meta, e[4] = n, e[5] = s?.navigation, e[6] = u) : u = e[6];
356
+ e[3] !== a?.meta || e[4] !== n || e[5] !== s?.navigation ? (u = () => {
357
+ n(), s?.navigation.goToCfi(a?.meta.cfi ?? "");
358
+ }, e[3] = a?.meta, e[4] = n, e[5] = s?.navigation, e[6] = u) : u = e[6];
361
359
  let d;
362
- e[7] !== i || e[8] !== r?.resource?.notes ? (d = r?.resource?.notes ? /* @__PURE__ */ a(me.Indicator, { asChild: !0, children: /* @__PURE__ */ a(Ke, {}) }) : i ? /* @__PURE__ */ a(me.Indicator, { asChild: !0, visibility: "hidden", children: /* @__PURE__ */ a(Ke, {}) }) : null, e[7] = i, e[8] = r?.resource?.notes, e[9] = d) : d = e[9];
360
+ e[7] !== i || e[8] !== a?.resource?.notes ? (d = a?.resource?.notes ? /* @__PURE__ */ r(me.Indicator, { asChild: !0, children: /* @__PURE__ */ r(Ke, {}) }) : i ? /* @__PURE__ */ r(me.Indicator, { asChild: !0, visibility: "hidden", children: /* @__PURE__ */ r(Ke, {}) }) : null, e[7] = i, e[8] = a?.resource?.notes, e[9] = d) : d = e[9];
363
361
  let h;
364
- e[10] !== r?.meta || e[11] !== f ? (h = f ? /* @__PURE__ */ a(q, { lineClamp: 2, fontSize: "md", children: f }) : /* @__PURE__ */ x(q, { lineClamp: 2, fontSize: "md", fontStyle: "italic", children: [
362
+ e[10] !== a?.meta || e[11] !== f ? (h = f ? /* @__PURE__ */ r(q, { lineClamp: 2, fontSize: "md", children: f }) : /* @__PURE__ */ C(q, { lineClamp: 2, fontSize: "md", fontStyle: "italic", children: [
365
363
  "Page ",
366
- (r?.meta.absolutePageIndex ?? 0) + 1
367
- ] }), e[10] = r?.meta, e[11] = f, e[12] = h) : h = e[12];
368
- const m = `Book page: ${r?.meta?.absolutePageIndex !== void 0 ? r.meta.absolutePageIndex + 1 : "unknown (not loaded)"}`;
364
+ (a?.meta.absolutePageIndex ?? 0) + 1
365
+ ] }), e[10] = a?.meta, e[11] = f, e[12] = h) : h = e[12];
366
+ const m = `Book page: ${a?.meta?.absolutePageIndex !== void 0 ? a.meta.absolutePageIndex + 1 : "unknown (not loaded)"}`;
369
367
  let g;
370
- e[13] !== m ? (g = /* @__PURE__ */ a(q, { fontStyle: "italic", fontWeight: "bold", fontSize: "sm", children: m }), e[13] = m, e[14] = g) : g = e[14];
371
- let p;
372
- e[15] !== h || e[16] !== g ? (p = /* @__PURE__ */ x(J, { gap: 0, children: [
368
+ e[13] !== m ? (g = /* @__PURE__ */ r(q, { fontStyle: "italic", fontWeight: "bold", fontSize: "sm", children: m }), e[13] = m, e[14] = g) : g = e[14];
369
+ let b;
370
+ e[15] !== h || e[16] !== g ? (b = /* @__PURE__ */ C(J, { gap: 0, children: [
373
371
  h,
374
372
  g
375
- ] }), e[15] = h, e[16] = g, e[17] = p) : p = e[17];
376
- let b;
377
- return e[18] !== u || e[19] !== d || e[20] !== p ? (b = /* @__PURE__ */ a(me.Item, { children: /* @__PURE__ */ x(Ct, { href: "#", onClick: u, children: [
373
+ ] }), e[15] = h, e[16] = g, e[17] = b) : b = e[17];
374
+ let p;
375
+ return e[18] !== u || e[19] !== d || e[20] !== b ? (p = /* @__PURE__ */ r(me.Item, { children: /* @__PURE__ */ C(Ct, { href: "#", onClick: u, children: [
378
376
  d,
379
- p
380
- ] }) }), e[18] = u, e[19] = d, e[20] = p, e[21] = b) : b = e[21], b;
377
+ b
378
+ ] }) }), e[18] = u, e[19] = d, e[20] = b, e[21] = p) : p = e[21], p;
381
379
  }, dt = () => {
382
- const t = y(5), e = U();
380
+ const t = x(5), e = j();
383
381
  let o;
384
382
  t[0] !== e ? (o = Je(e) ? e : void 0, t[0] = e, t[1] = o) : o = t[1];
385
383
  const n = o;
386
384
  let l, i;
387
- return t[2] !== n ? (l = () => n?.annotations.annotations$.pipe(be((s) => n.locateResource(s))), i = [n], t[2] = n, t[3] = l, t[4] = i) : (l = t[3], i = t[4]), j(l, i);
385
+ return t[2] !== n ? (l = () => n?.annotations.annotations$.pipe(be((s) => n.locateResource(s))), i = [n], t[2] = n, t[3] = l, t[4] = i) : (l = t[3], i = t[4]), U(l, i);
388
386
  }, po = () => {
389
- const t = y(4), {
387
+ const t = x(4), {
390
388
  data: e
391
389
  } = dt();
392
390
  let o;
@@ -400,17 +398,17 @@ function bo(t) {
400
398
  return t.meta.isCfiRange;
401
399
  }
402
400
  const So = (t) => {
403
- const e = y(5), {
401
+ const e = x(5), {
404
402
  onNavigate: o
405
403
  } = t, {
406
404
  data: n
407
405
  } = po();
408
406
  let l;
409
- e[0] !== n || e[1] !== o ? (l = n?.map((s) => /* @__PURE__ */ a(Zt, { id: s.resource.id, onNavigate: o }, s.resource.id)), e[0] = n, e[1] = o, e[2] = l) : l = e[2];
407
+ e[0] !== n || e[1] !== o ? (l = n?.map((s) => /* @__PURE__ */ r(Zt, { id: s.resource.id, onNavigate: o }, s.resource.id)), e[0] = n, e[1] = o, e[2] = l) : l = e[2];
410
408
  let i;
411
- return e[3] !== l ? (i = /* @__PURE__ */ a(me.Root, { overflowY: "auto", gap: 3, pt: 4, variant: "plain", children: l }), e[3] = l, e[4] = i) : i = e[4], i;
409
+ return e[3] !== l ? (i = /* @__PURE__ */ r(me.Root, { overflowY: "auto", gap: 3, pt: 4, variant: "plain", children: l }), e[3] = l, e[4] = i) : i = e[4], i;
412
410
  }, _o = () => {
413
- const t = y(4), {
411
+ const t = x(4), {
414
412
  data: e
415
413
  } = dt();
416
414
  let o;
@@ -424,100 +422,100 @@ function vo(t) {
424
422
  return !t.meta.isCfiRange && !t.resource.notes;
425
423
  }
426
424
  const Co = (t) => {
427
- const e = y(5), {
425
+ const e = x(5), {
428
426
  onNavigate: o
429
427
  } = t, {
430
428
  data: n
431
429
  } = _o();
432
430
  let l;
433
- e[0] !== n || e[1] !== o ? (l = n?.map((s) => /* @__PURE__ */ a(Zt, { id: s.resource.id, onNavigate: o, allowLeftIcon: !1 }, s.resource.id)), e[0] = n, e[1] = o, e[2] = l) : l = e[2];
431
+ e[0] !== n || e[1] !== o ? (l = n?.map((s) => /* @__PURE__ */ r(Zt, { id: s.resource.id, onNavigate: o, allowLeftIcon: !1 }, s.resource.id)), e[0] = n, e[1] = o, e[2] = l) : l = e[2];
434
432
  let i;
435
- return e[3] !== l ? (i = /* @__PURE__ */ a(me.Root, { overflowY: "auto", gap: 3, pt: 4, variant: "plain", children: l }), e[3] = l, e[4] = i) : i = e[4], i;
436
- }, xo = w((t) => {
437
- const e = y(11), {
433
+ return e[3] !== l ? (i = /* @__PURE__ */ r(me.Root, { overflowY: "auto", gap: 3, pt: 4, variant: "plain", children: l }), e[3] = l, e[4] = i) : i = e[4], i;
434
+ }, xo = M((t) => {
435
+ const e = x(11), {
438
436
  onNavigate: o,
439
437
  defaultTab: n
440
438
  } = t, [l, i] = le(n ?? "bookmarks");
441
439
  let s;
442
440
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = (h) => i(h.value), e[0] = s) : s = e[0];
443
- let r;
444
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ x(ue.Trigger, { value: "bookmarks", children: [
445
- /* @__PURE__ */ a(mn, {}),
441
+ let a;
442
+ e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ C(ue.Trigger, { value: "bookmarks", children: [
443
+ /* @__PURE__ */ r(mn, {}),
446
444
  "Bookmarks"
447
- ] }), e[1] = r) : r = e[1];
445
+ ] }), e[1] = a) : a = e[1];
448
446
  let c;
449
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ x(ue.List, { children: [
450
- r,
451
- /* @__PURE__ */ x(ue.Trigger, { value: "annotations", children: [
452
- /* @__PURE__ */ a(Ke, {}),
447
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ C(ue.List, { children: [
448
+ a,
449
+ /* @__PURE__ */ C(ue.Trigger, { value: "annotations", children: [
450
+ /* @__PURE__ */ r(Ke, {}),
453
451
  "Annotations"
454
452
  ] }),
455
- /* @__PURE__ */ a(ue.Indicator, {})
453
+ /* @__PURE__ */ r(ue.Indicator, {})
456
454
  ] }), e[2] = c) : c = e[2];
457
455
  let f;
458
- e[3] !== o ? (f = /* @__PURE__ */ a(ue.Content, { value: "bookmarks", children: /* @__PURE__ */ a(Co, { onNavigate: o }) }), e[3] = o, e[4] = f) : f = e[4];
456
+ e[3] !== o ? (f = /* @__PURE__ */ r(ue.Content, { value: "bookmarks", children: /* @__PURE__ */ r(Co, { onNavigate: o }) }), e[3] = o, e[4] = f) : f = e[4];
459
457
  let u;
460
- e[5] !== o ? (u = /* @__PURE__ */ a(ue.Content, { value: "annotations", children: /* @__PURE__ */ a(So, { onNavigate: o }) }), e[5] = o, e[6] = u) : u = e[6];
458
+ e[5] !== o ? (u = /* @__PURE__ */ r(ue.Content, { value: "annotations", children: /* @__PURE__ */ r(So, { onNavigate: o }) }), e[5] = o, e[6] = u) : u = e[6];
461
459
  let d;
462
- return e[7] !== f || e[8] !== u || e[9] !== l ? (d = /* @__PURE__ */ x(ue.Root, { value: l, onValueChange: s, children: [
460
+ return e[7] !== f || e[8] !== u || e[9] !== l ? (d = /* @__PURE__ */ C(ue.Root, { value: l, onValueChange: s, children: [
463
461
  c,
464
462
  f,
465
463
  u
466
464
  ] }), e[7] = f, e[8] = u, e[9] = l, e[10] = d) : d = e[10], d;
467
- }), yo = w((t) => {
468
- const e = y(15), {
465
+ }), yo = M((t) => {
466
+ const e = x(15), {
469
467
  openWith: o,
470
468
  setOpen: n,
471
469
  onNavigate: l
472
470
  } = t, i = !!o;
473
471
  let s;
474
472
  e[0] !== n ? (s = (g) => n(g.open), e[0] = n, e[1] = s) : s = e[1];
475
- let r;
476
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = {
473
+ let a;
474
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
477
475
  mdDown: "full",
478
476
  md: "lg"
479
- }, e[2] = r) : r = e[2];
477
+ }, e[2] = a) : a = e[2];
480
478
  let c;
481
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ a(ye, { children: /* @__PURE__ */ a(Ie, { children: "Annotations" }) }), e[3] = c) : c = e[3];
479
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ r(ye, { children: /* @__PURE__ */ r($e, { children: "Annotations" }) }), e[3] = c) : c = e[3];
482
480
  let f;
483
- e[4] !== l || e[5] !== o ? (f = /* @__PURE__ */ a(ke, { flex: 1, children: /* @__PURE__ */ a(xo, { onNavigate: l, defaultTab: o }) }), e[4] = l, e[5] = o, e[6] = f) : f = e[6];
481
+ e[4] !== l || e[5] !== o ? (f = /* @__PURE__ */ r(ke, { flex: 1, children: /* @__PURE__ */ r(xo, { onNavigate: l, defaultTab: o }) }), e[4] = l, e[5] = o, e[6] = f) : f = e[6];
484
482
  let u, d;
485
- e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ a(xe, { children: /* @__PURE__ */ a($e, { asChild: !0, children: /* @__PURE__ */ a(re, { variant: "outline", children: "Cancel" }) }) }), d = /* @__PURE__ */ a(ve, {}), e[7] = u, e[8] = d) : (u = e[7], d = e[8]);
483
+ e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ r(xe, { children: /* @__PURE__ */ r(Ie, { asChild: !0, children: /* @__PURE__ */ r(re, { variant: "outline", children: "Cancel" }) }) }), d = /* @__PURE__ */ r(ve, {}), e[7] = u, e[8] = d) : (u = e[7], d = e[8]);
486
484
  let h;
487
- e[9] !== f ? (h = /* @__PURE__ */ x(_e, { height: "100%", children: [
485
+ e[9] !== f ? (h = /* @__PURE__ */ C(_e, { height: "100%", children: [
488
486
  c,
489
487
  f,
490
488
  u,
491
489
  d
492
490
  ] }), e[9] = f, e[10] = h) : h = e[10];
493
491
  let m;
494
- return e[11] !== i || e[12] !== s || e[13] !== h ? (m = /* @__PURE__ */ a(Ce, { lazyMount: !0, placement: "center", open: i, onOpenChange: s, size: r, scrollBehavior: "inside", children: h }), e[11] = i, e[12] = s, e[13] = h, e[14] = m) : m = e[14], m;
495
- }), ko = w((t) => {
496
- const e = y(9), {
492
+ return e[11] !== i || e[12] !== s || e[13] !== h ? (m = /* @__PURE__ */ r(Ce, { lazyMount: !0, placement: "center", open: i, onOpenChange: s, size: a, scrollBehavior: "inside", children: h }), e[11] = i, e[12] = s, e[13] = h, e[14] = m) : m = e[14], m;
493
+ }), ko = M((t) => {
494
+ const e = x(9), {
497
495
  children: o
498
- } = t, n = U();
496
+ } = t, n = j();
499
497
  let l;
500
498
  e[0] !== n?.spine.element$ ? (l = () => n?.spine.element$, e[0] = n?.spine.element$, e[1] = l) : l = e[1];
501
499
  let i;
502
500
  e[2] !== n ? (i = [n], e[2] = n, e[3] = i) : i = e[3];
503
501
  const {
504
502
  data: s
505
- } = j(l, i);
503
+ } = U(l, i);
506
504
  if (!s)
507
505
  return null;
508
- let r;
509
- e[4] !== o || e[5] !== s ? (r = Ln(o, s), e[4] = o, e[5] = s, e[6] = r) : r = e[6];
506
+ let a;
507
+ e[4] !== o || e[5] !== s ? (a = Ln(o, s), e[4] = o, e[5] = s, e[6] = a) : a = e[6];
510
508
  let c;
511
- return e[7] !== r ? (c = /* @__PURE__ */ a(et, { children: r }), e[7] = r, e[8] = c) : c = e[8], c;
512
- }), Io = (t) => {
513
- const e = y(5), {
509
+ return e[7] !== a ? (c = /* @__PURE__ */ r(et, { children: a }), e[7] = a, e[8] = c) : c = e[8], c;
510
+ }), $o = (t) => {
511
+ const e = x(5), {
514
512
  absolutePageIndex: o,
515
513
  itemIndex: n
516
- } = t, l = U();
514
+ } = t, l = j();
517
515
  let i, s;
518
- return e[0] !== o || e[1] !== n || e[2] !== l ? (i = () => l ? n !== void 0 ? _t(l.spine.spineItemsManager.get(n)) : o !== void 0 ? l.spine.pages.observeFromAbsolutePageIndex(o).pipe(ne((r) => l.spine.spineItemsManager.get(r?.itemIndex))) : St : St, s = [n, o, l], e[0] = o, e[1] = n, e[2] = l, e[3] = i, e[4] = s) : (i = e[3], s = e[4]), j(i, s);
519
- }, $o = (t) => {
520
- const e = y(9), {
516
+ return e[0] !== o || e[1] !== n || e[2] !== l ? (i = () => l ? n !== void 0 ? _t(l.spine.spineItemsManager.get(n)) : o !== void 0 ? l.spine.pages.observeFromAbsolutePageIndex(o).pipe(ne((a) => l.spine.spineItemsManager.get(a?.itemIndex))) : St : St, s = [n, o, l], e[0] = o, e[1] = n, e[2] = l, e[3] = i, e[4] = s) : (i = e[3], s = e[4]), U(i, s);
517
+ }, Io = (t) => {
518
+ const e = x(9), {
521
519
  absolutePageIndex: o,
522
520
  itemIndex: n
523
521
  } = t;
@@ -528,19 +526,19 @@ const Co = (t) => {
528
526
  }, e[0] = o, e[1] = n, e[2] = l) : l = e[2];
529
527
  const {
530
528
  data: i
531
- } = Io(l);
532
- let s, r;
533
- e[3] !== i ? (s = () => i ? i.isReady$ : ft, r = [i], e[3] = i, e[4] = s, e[5] = r) : (s = e[4], r = e[5]);
529
+ } = $o(l);
530
+ let s, a;
531
+ e[3] !== i ? (s = () => i ? i.isReady$ : ft, a = [i], e[3] = i, e[4] = s, e[5] = a) : (s = e[4], a = e[5]);
534
532
  const {
535
533
  data: c
536
- } = j(s, r);
534
+ } = U(s, a);
537
535
  let f;
538
536
  return e[6] !== c || e[7] !== i ? (f = {
539
537
  spineItem: i,
540
538
  isReady: c
541
539
  }, e[6] = c, e[7] = i, e[8] = f) : f = e[8], f;
542
- }, Oo = w((t) => {
543
- const e = y(17), {
540
+ }, Oo = M((t) => {
541
+ const e = x(17), {
544
542
  absolutePageIndex: o,
545
543
  left: n,
546
544
  top: l,
@@ -551,14 +549,14 @@ const Co = (t) => {
551
549
  absolutePageIndex: o
552
550
  }, e[0] = o, e[1] = s) : s = e[1];
553
551
  const {
554
- isReady: r
555
- } = $o(s), {
552
+ isReady: a
553
+ } = Io(s), {
556
554
  data: c
557
555
  } = dt();
558
556
  let f;
559
- e[2] !== o || e[3] !== c ? (f = c?.find((C) => C?.meta?.absolutePageIndex === o && !C.meta.isCfiRange), e[2] = o, e[3] = c, e[4] = f) : f = e[4];
557
+ e[2] !== o || e[3] !== c ? (f = c?.find((y) => y?.meta?.absolutePageIndex === o && !y.meta.isCfiRange), e[2] = o, e[3] = c, e[4] = f) : f = e[4];
560
558
  const u = f;
561
- if (!r)
559
+ if (!a)
562
560
  return null;
563
561
  const d = i * 0.1 / 2, h = !!u;
564
562
  let m;
@@ -566,35 +564,35 @@ const Co = (t) => {
566
564
  _open: "fade-in",
567
565
  _closed: "fade-out"
568
566
  }, e[5] = m) : m = e[5];
569
- const g = n + i, p = `${d}px solid #03030373`, b = `${d}px solid transparent`;
567
+ const g = n + i, b = `${d}px solid #03030373`, p = `${d}px solid transparent`;
570
568
  let S;
571
- e[6] !== p || e[7] !== b ? (S = {
569
+ e[6] !== b || e[7] !== p ? (S = {
572
570
  content: '""',
573
571
  position: "absolute",
574
572
  top: 0,
575
573
  left: 0,
576
574
  width: 0,
577
575
  height: 0,
578
- borderTop: p,
579
- borderLeft: b
580
- }, e[6] = p, e[7] = b, e[8] = S) : S = e[8];
576
+ borderTop: b,
577
+ borderLeft: p
578
+ }, e[6] = b, e[7] = p, e[8] = S) : S = e[8];
581
579
  let _;
582
- e[9] !== d || e[10] !== g || e[11] !== S || e[12] !== l ? (_ = /* @__PURE__ */ a(he, { "data-bookmark-area": no, position: "absolute", left: g, transform: "translateX(-100%)", pointerEvents: "none", top: l, width: d, height: d, _before: S }), e[9] = d, e[10] = g, e[11] = S, e[12] = l, e[13] = _) : _ = e[13];
580
+ e[9] !== d || e[10] !== g || e[11] !== S || e[12] !== l ? (_ = /* @__PURE__ */ r(he, { "data-bookmark-area": no, position: "absolute", left: g, transform: "translateX(-100%)", pointerEvents: "none", top: l, width: d, height: d, _before: S }), e[9] = d, e[10] = g, e[11] = S, e[12] = l, e[13] = _) : _ = e[13];
583
581
  let v;
584
- return e[14] !== h || e[15] !== _ ? (v = /* @__PURE__ */ a(tt, { present: h, lazyMount: !0, animationName: m, animationDuration: "moderate", children: _ }), e[14] = h, e[15] = _, e[16] = v) : v = e[16], v;
585
- }), To = w(() => {
586
- const t = y(8), e = U();
582
+ return e[14] !== h || e[15] !== _ ? (v = /* @__PURE__ */ r(tt, { present: h, lazyMount: !0, animationName: m, animationDuration: "moderate", children: _ }), e[14] = h, e[15] = _, e[16] = v) : v = e[16], v;
583
+ }), To = M(() => {
584
+ const t = x(8), e = j();
587
585
  let o;
588
586
  t[0] !== e?.layoutInfo$ ? (o = () => e?.layoutInfo$, t[0] = e?.layoutInfo$, t[1] = o) : o = t[1];
589
587
  let n;
590
588
  t[2] !== e ? (n = [e], t[2] = e, t[3] = n) : n = t[3];
591
589
  const {
592
590
  data: l
593
- } = j(o, n);
591
+ } = U(o, n);
594
592
  let i;
595
593
  t[4] !== l?.pages ? (i = l?.pages.map(zo), t[4] = l?.pages, t[5] = i) : i = t[5];
596
594
  let s;
597
- return t[6] !== i ? (s = /* @__PURE__ */ a(ko, { children: i }), t[6] = i, t[7] = s) : s = t[7], s;
595
+ return t[6] !== i ? (s = /* @__PURE__ */ r(ko, { children: i }), t[6] = i, t[7] = s) : s = t[7], s;
598
596
  });
599
597
  function zo(t, e) {
600
598
  const {
@@ -604,74 +602,74 @@ function zo(t, e) {
604
602
  top: l,
605
603
  width: i
606
604
  } = o;
607
- return /* @__PURE__ */ a(Oo, { absolutePageIndex: e, left: n, top: l, width: i }, e);
605
+ return /* @__PURE__ */ r(Oo, { absolutePageIndex: e, left: n, top: l, width: i }, e);
608
606
  }
609
- const Ue = !0, Ro = () => {
610
- const t = y(5), e = nt(), {
607
+ const je = !0, Ro = () => {
608
+ const t = x(5), e = nt(), {
611
609
  data: o
612
610
  } = dt(), n = We();
613
611
  let l, i;
614
- t[0] !== o || t[1] !== e || t[2] !== n ? (l = () => e ? e.gestures.hooks.register("beforeTapGesture", (r) => {
612
+ t[0] !== o || t[1] !== e || t[2] !== n ? (l = () => e ? e.gestures.hooks.register("beforeTapGesture", (a) => {
615
613
  const {
616
614
  event$: c
617
- } = r;
615
+ } = a;
618
616
  return c.pipe(yt(e?.annotations.candidates$), ne((f) => {
619
617
  const [u, d] = f;
620
618
  if (!u.page)
621
- return Ue;
619
+ return je;
622
620
  const {
623
621
  spineItem: h,
624
622
  spineItemPageIndex: m,
625
623
  spineItemPagePosition: g,
626
- pageSize: p
624
+ pageSize: b
627
625
  } = u.page;
628
626
  if (Nn(g, {
629
627
  type: "corner",
630
628
  corner: "top-right",
631
629
  size: 10,
632
630
  unit: "%"
633
- }, p)) {
631
+ }, b)) {
634
632
  const S = e.spine.pages.fromSpineItemPageIndex(h, m);
635
633
  if (!S)
636
- return Ue;
637
- const _ = o?.find((C) => C?.meta?.absolutePageIndex === S.absolutePageIndex && C.meta.range === void 0);
634
+ return je;
635
+ const _ = o?.find((y) => y?.meta?.absolutePageIndex === S.absolutePageIndex && y.meta.range === void 0);
638
636
  if (_)
639
- return n.value.onAnnotationDelete?.(_.resource.id), !Ue;
637
+ return n.value.onAnnotationDelete?.(_.resource.id), !je;
640
638
  if (d?.[S.absolutePageIndex]) {
641
- const C = e?.annotations.createAnnotation({
639
+ const y = e?.annotations.createAnnotation({
642
640
  absolutePageIndex: S.absolutePageIndex
643
641
  });
644
- return C && n.value.onAnnotationCreate?.(C), !Ue;
642
+ return y && n.value.onAnnotationCreate?.(y), !je;
645
643
  }
646
644
  }
647
- return Ue;
645
+ return je;
648
646
  }));
649
647
  }) : void 0, i = [e, o, n], t[0] = o, t[1] = e, t[2] = n, t[3] = l, t[4] = i) : (l = t[3], i = t[4]), ce(l, i);
650
- }, wo = () => {
651
- const t = y(3), e = nt();
652
- let o, n;
648
+ }, Mo = () => {
649
+ const t = x(2), e = nt();
650
+ let o;
653
651
  t[0] !== e ? (o = () => e?.gestures.hooks.register("beforeTapGesture", (l) => {
654
652
  const {
655
653
  event$: i
656
654
  } = l;
657
655
  return i.pipe(yt(e.selection.lastSelectionOnPointerdown$), ne((s) => {
658
- const [r, c] = s, {
656
+ const [a, c] = s, {
659
657
  event: f
660
- } = r, u = f.event.target;
658
+ } = a, u = f.event.target;
661
659
  return !(u && e.annotations.isTargetWithinHighlight(u) || c);
662
660
  }));
663
- }), n = [e], t[0] = e, t[1] = o, t[2] = n) : (o = t[1], n = t[2]), pe(o, n);
664
- }, Mo = () => {
665
- const t = y(4), e = nt(), o = We();
666
- let n, l;
661
+ }), t[0] = e, t[1] = o) : o = t[1], pe(o);
662
+ }, wo = () => {
663
+ const t = x(3), e = nt(), o = We();
664
+ let n;
667
665
  t[0] !== o || t[1] !== e ? (n = () => {
668
666
  if (e) {
669
- const i = o.pipe(ne(Po), rt()), s = o.pipe(ne(Ao), rt()), r = Dt([s, i]).pipe(ne(Eo));
667
+ const i = o.pipe(ne(Po), rt()), s = o.pipe(ne(Ao), rt()), a = Dt([s, i]).pipe(ne(Eo));
670
668
  e.annotations.update({
671
- annotations$: r
669
+ annotations$: a
672
670
  });
673
671
  }
674
- }, l = [e, o], t[0] = o, t[1] = e, t[2] = n, t[3] = l) : (n = t[2], l = t[3]), pe(n, l);
672
+ }, t[0] = o, t[1] = e, t[2] = n) : n = t[2], pe(n);
675
673
  };
676
674
  function Po(t) {
677
675
  return t.selectedHighlight?.highlight?.id;
@@ -690,27 +688,27 @@ const vt = tn({
690
688
  placement: "bottom-end",
691
689
  pauseOnPageIdle: !0
692
690
  }), Bo = () => {
693
- const t = y(1);
691
+ const t = x(1);
694
692
  let e;
695
- return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ a(ct, { children: /* @__PURE__ */ a(nn, { toaster: vt, insetInline: {
693
+ return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ r(ct, { children: /* @__PURE__ */ r(nn, { toaster: vt, insetInline: {
696
694
  mdDown: "4"
697
695
  }, children: Do }) }), t[0] = e) : e = t[0], e;
698
696
  };
699
697
  function Do(t) {
700
- return /* @__PURE__ */ x(Ne.Root, { width: {
698
+ return /* @__PURE__ */ C(Ne.Root, { width: {
701
699
  md: "sm"
702
700
  }, children: [
703
- t.type === "loading" ? /* @__PURE__ */ a(on, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ a(Ne.Indicator, {}),
704
- /* @__PURE__ */ x(J, { gap: "1", flex: "1", maxWidth: "100%", children: [
705
- t.title && /* @__PURE__ */ a(Ne.Title, { children: t.title }),
706
- t.description && /* @__PURE__ */ a(Ne.Description, { children: t.description })
701
+ t.type === "loading" ? /* @__PURE__ */ r(on, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ r(Ne.Indicator, {}),
702
+ /* @__PURE__ */ C(J, { gap: "1", flex: "1", maxWidth: "100%", children: [
703
+ t.title && /* @__PURE__ */ r(Ne.Title, { children: t.title }),
704
+ t.description && /* @__PURE__ */ r(Ne.Description, { children: t.description })
707
705
  ] }),
708
- t.action && /* @__PURE__ */ a(Ne.ActionTrigger, { children: t.action.label }),
709
- t.meta?.closable && /* @__PURE__ */ a(Ne.CloseTrigger, {})
706
+ t.action && /* @__PURE__ */ r(Ne.ActionTrigger, { children: t.action.label }),
707
+ t.meta?.closable && /* @__PURE__ */ r(Ne.CloseTrigger, {})
710
708
  ] });
711
709
  }
712
710
  const Fo = (t) => {
713
- const e = y(25);
711
+ const e = x(25);
714
712
  let o, n;
715
713
  e[0] !== t ? ({
716
714
  children: o,
@@ -721,17 +719,17 @@ const Fo = (t) => {
721
719
  e[3] !== l.value.fontSizeMenuOpen ? (i = () => Ve({
722
720
  default: l.value.fontSizeMenuOpen
723
721
  }), e[3] = l.value.fontSizeMenuOpen, e[4] = i) : i = e[4];
724
- const s = at(i), r = bt(s);
722
+ const s = at(i), a = bt(s);
725
723
  let c;
726
- e[5] !== s ? (c = (I) => {
727
- s.update(I);
724
+ e[5] !== s ? (c = ($) => {
725
+ s.update($);
728
726
  }, e[5] = s, e[6] = c) : c = e[6];
729
727
  const f = c;
730
728
  let u;
731
- e[7] !== l ? (u = (I) => {
729
+ e[7] !== l ? (u = ($) => {
732
730
  l.update((k) => ({
733
731
  ...k,
734
- _quickMenuOpen: typeof I == "function" ? I(k._quickMenuOpen) : I
732
+ _quickMenuOpen: typeof $ == "function" ? $(k._quickMenuOpen) : $
735
733
  }));
736
734
  }, e[7] = l, e[8] = u) : u = e[8];
737
735
  const d = u;
@@ -741,33 +739,33 @@ const Fo = (t) => {
741
739
  }), e[9] = l.value.refitMenuOpen, e[10] = h) : h = e[10];
742
740
  const m = at(h);
743
741
  let g;
744
- e[11] !== m ? (g = (I) => {
745
- m.update(I);
742
+ e[11] !== m ? (g = ($) => {
743
+ m.update($);
746
744
  }, e[11] = m, e[12] = g) : g = e[12];
747
- const p = g, b = bt(m), S = In(n, Hn);
745
+ const b = g, p = bt(m), S = $n(n, Hn);
748
746
  let _, v;
749
- e[13] !== d || e[14] !== S || e[15] !== r || e[16] !== f || e[17] !== p || e[18] !== b || e[19] !== l ? (_ = () => {
750
- l.update((I) => ({
751
- ...I,
747
+ e[13] !== d || e[14] !== S || e[15] !== a || e[16] !== f || e[17] !== b || e[18] !== p || e[19] !== l ? (_ = () => {
748
+ l.update(($) => ({
749
+ ...$,
752
750
  ...S,
753
751
  onFontSizeMenuOpenChange: f,
754
- fontSizeMenuOpen: r,
755
- onRefitMenuOpenChange: p,
756
- refitMenuOpen: b,
752
+ fontSizeMenuOpen: a,
753
+ onRefitMenuOpenChange: b,
754
+ refitMenuOpen: p,
757
755
  _onQuickMenuOpenChange: d
758
756
  }));
759
- }, v = [S, d, l, r, f, b, p], e[13] = d, e[14] = S, e[15] = r, e[16] = f, e[17] = p, e[18] = b, e[19] = l, e[20] = _, e[21] = v) : (_ = e[20], v = e[21]), ce(_, v);
760
- let C;
761
- return e[22] !== o || e[23] !== l ? (C = /* @__PURE__ */ a(kt.Provider, { value: l, children: o }), e[22] = o, e[23] = l, e[24] = C) : C = e[24], C;
762
- }, Lo = w((t) => {
763
- const e = y(6);
757
+ }, v = [S, d, l, a, f, p, b], e[13] = d, e[14] = S, e[15] = a, e[16] = f, e[17] = b, e[18] = p, e[19] = l, e[20] = _, e[21] = v) : (_ = e[20], v = e[21]), ce(_, v);
758
+ let y;
759
+ return e[22] !== o || e[23] !== l ? (y = /* @__PURE__ */ r(kt.Provider, { value: l, children: o }), e[22] = o, e[23] = l, e[24] = y) : y = e[24], y;
760
+ }, Lo = M((t) => {
761
+ const e = x(6);
764
762
  let o, n;
765
763
  e[0] !== t ? ({
766
764
  children: o,
767
765
  ...n
768
766
  } = t, e[0] = t, e[1] = o, e[2] = n) : (o = e[1], n = e[2]);
769
767
  let l;
770
- return e[3] !== o || e[4] !== n ? (l = /* @__PURE__ */ a(Fo, { ...n, children: o }), e[3] = o, e[4] = n, e[5] = l) : l = e[5], l;
768
+ return e[3] !== o || e[4] !== n ? (l = /* @__PURE__ */ r(Fo, { ...n, children: o }), e[3] = o, e[4] = n, e[5] = l) : l = e[5], l;
771
769
  });
772
770
  function No() {
773
771
  return Ve({
@@ -775,92 +773,92 @@ function No() {
775
773
  });
776
774
  }
777
775
  const Ye = se.forwardRef(function(e, o) {
778
- const n = y(16);
779
- let l, i, s, r;
776
+ const n = x(16);
777
+ let l, i, s, a;
780
778
  n[0] !== e ? ({
781
779
  children: l,
782
780
  inputProps: i,
783
- rootRef: r,
781
+ rootRef: a,
784
782
  ...s
785
- } = e, n[0] = e, n[1] = l, n[2] = i, n[3] = s, n[4] = r) : (l = n[1], i = n[2], s = n[3], r = n[4]);
783
+ } = e, n[0] = e, n[1] = l, n[2] = i, n[3] = s, n[4] = a) : (l = n[1], i = n[2], s = n[3], a = n[4]);
786
784
  let c;
787
- n[5] !== i || n[6] !== o ? (c = /* @__PURE__ */ a(Qe.ItemHiddenInput, { ref: o, ...i }), n[5] = i, n[6] = o, n[7] = c) : c = n[7];
785
+ n[5] !== i || n[6] !== o ? (c = /* @__PURE__ */ r(Qe.ItemHiddenInput, { ref: o, ...i }), n[5] = i, n[6] = o, n[7] = c) : c = n[7];
788
786
  let f;
789
- n[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(Qe.ItemIndicator, {}), n[8] = f) : f = n[8];
787
+ n[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ r(Qe.ItemIndicator, {}), n[8] = f) : f = n[8];
790
788
  let u;
791
- n[9] !== l ? (u = l && /* @__PURE__ */ a(Qe.ItemText, { children: l }), n[9] = l, n[10] = u) : u = n[10];
789
+ n[9] !== l ? (u = l && /* @__PURE__ */ r(Qe.ItemText, { children: l }), n[9] = l, n[10] = u) : u = n[10];
792
790
  let d;
793
- return n[11] !== s || n[12] !== r || n[13] !== c || n[14] !== u ? (d = /* @__PURE__ */ x(Qe.Item, { ref: r, ...s, children: [
791
+ return n[11] !== s || n[12] !== a || n[13] !== c || n[14] !== u ? (d = /* @__PURE__ */ C(Qe.Item, { ref: a, ...s, children: [
794
792
  c,
795
793
  f,
796
794
  u
797
- ] }), n[11] = s, n[12] = r, n[13] = c, n[14] = u, n[15] = d) : d = n[15], d;
798
- }), Kt = Qe.Root, It = se.memo(function(e) {
799
- const o = y(29);
800
- let n, l, i, s, r, c, f;
795
+ ] }), n[11] = s, n[12] = a, n[13] = c, n[14] = u, n[15] = d) : d = n[15], d;
796
+ }), Kt = Qe.Root, $t = se.memo(function(e) {
797
+ const o = x(29);
798
+ let n, l, i, s, a, c, f;
801
799
  if (o[0] !== e) {
802
800
  const {
803
801
  ref: v,
804
- ...C
802
+ ...y
805
803
  } = e;
806
804
  i = v;
807
805
  const {
808
- marks: I,
806
+ marks: $,
809
807
  label: k,
810
- showValue: $,
811
- ...O
812
- } = C;
813
- n = k, r = $, s = O, f = C.defaultValue ?? C.value, l = I?.map(Go), c = l?.some(qo), o[0] = e, o[1] = n, o[2] = l, o[3] = i, o[4] = s, o[5] = r, o[6] = c, o[7] = f;
808
+ showValue: I,
809
+ ...R
810
+ } = y;
811
+ n = k, a = I, s = R, f = y.defaultValue ?? y.value, l = $?.map(Go), c = l?.some(qo), o[0] = e, o[1] = n, o[2] = l, o[3] = i, o[4] = s, o[5] = a, o[6] = c, o[7] = f;
814
812
  } else
815
- n = o[1], l = o[2], i = o[3], s = o[4], r = o[5], c = o[6], f = o[7];
813
+ n = o[1], l = o[2], i = o[3], s = o[4], a = o[5], c = o[6], f = o[7];
816
814
  const u = !!c;
817
815
  let d;
818
- o[8] !== n || o[9] !== r ? (d = n && !r && /* @__PURE__ */ a(ae.Label, { children: n }), o[8] = n, o[9] = r, o[10] = d) : d = o[10];
816
+ o[8] !== n || o[9] !== a ? (d = n && !a && /* @__PURE__ */ r(ae.Label, { children: n }), o[8] = n, o[9] = a, o[10] = d) : d = o[10];
819
817
  let h;
820
- o[11] !== n || o[12] !== r ? (h = n && r && /* @__PURE__ */ x(ge, { justify: "space-between", children: [
821
- /* @__PURE__ */ a(ae.Label, { children: n }),
822
- /* @__PURE__ */ a(ae.ValueText, {})
823
- ] }), o[11] = n, o[12] = r, o[13] = h) : h = o[13];
818
+ o[11] !== n || o[12] !== a ? (h = n && a && /* @__PURE__ */ C(ge, { justify: "space-between", children: [
819
+ /* @__PURE__ */ r(ae.Label, { children: n }),
820
+ /* @__PURE__ */ r(ae.ValueText, {})
821
+ ] }), o[11] = n, o[12] = a, o[13] = h) : h = o[13];
824
822
  const m = u || void 0;
825
823
  let g;
826
- o[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ a(ae.Track, { children: /* @__PURE__ */ a(ae.Range, {}) }), o[14] = g) : g = o[14];
827
- let p;
828
- o[15] !== f ? (p = /* @__PURE__ */ a(Ho, { value: f }), o[15] = f, o[16] = p) : p = o[16];
824
+ o[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ r(ae.Track, { children: /* @__PURE__ */ r(ae.Range, {}) }), o[14] = g) : g = o[14];
829
825
  let b;
830
- o[17] !== l ? (b = /* @__PURE__ */ a(Wo, { marks: l }), o[17] = l, o[18] = b) : b = o[18];
826
+ o[15] !== f ? (b = /* @__PURE__ */ r(Ho, { value: f }), o[15] = f, o[16] = b) : b = o[16];
827
+ let p;
828
+ o[17] !== l ? (p = /* @__PURE__ */ r(Wo, { marks: l }), o[17] = l, o[18] = p) : p = o[18];
831
829
  let S;
832
- o[19] !== m || o[20] !== p || o[21] !== b ? (S = /* @__PURE__ */ x(ae.Control, { "data-has-mark-label": m, children: [
830
+ o[19] !== m || o[20] !== b || o[21] !== p ? (S = /* @__PURE__ */ C(ae.Control, { "data-has-mark-label": m, children: [
833
831
  g,
834
- p,
835
- b
836
- ] }), o[19] = m, o[20] = p, o[21] = b, o[22] = S) : S = o[22];
832
+ b,
833
+ p
834
+ ] }), o[19] = m, o[20] = b, o[21] = p, o[22] = S) : S = o[22];
837
835
  let _;
838
- return o[23] !== i || o[24] !== s || o[25] !== d || o[26] !== h || o[27] !== S ? (_ = /* @__PURE__ */ x(ae.Root, { ref: i, thumbAlignment: "center", ...s, children: [
836
+ return o[23] !== i || o[24] !== s || o[25] !== d || o[26] !== h || o[27] !== S ? (_ = /* @__PURE__ */ C(ae.Root, { ref: i, thumbAlignment: "center", ...s, children: [
839
837
  d,
840
838
  h,
841
839
  S
842
840
  ] }), o[23] = i, o[24] = s, o[25] = d, o[26] = h, o[27] = S, o[28] = _) : _ = o[28], _;
843
841
  });
844
842
  function Ho(t) {
845
- const e = y(2), {
843
+ const e = x(2), {
846
844
  value: o
847
845
  } = t;
848
846
  let n;
849
- return e[0] !== o ? (n = /* @__PURE__ */ a(ln, { each: o, children: Vo }), e[0] = o, e[1] = n) : n = e[1], n;
847
+ return e[0] !== o ? (n = /* @__PURE__ */ r(ln, { each: o, children: Vo }), e[0] = o, e[1] = n) : n = e[1], n;
850
848
  }
851
849
  function Vo(t, e) {
852
- return /* @__PURE__ */ a(ae.Thumb, { index: e, children: /* @__PURE__ */ a(ae.HiddenInput, {}) }, e);
850
+ return /* @__PURE__ */ r(ae.Thumb, { index: e, children: /* @__PURE__ */ r(ae.HiddenInput, {}) }, e);
853
851
  }
854
852
  const Wo = se.forwardRef(function(e, o) {
855
- const n = y(5), {
853
+ const n = x(5), {
856
854
  marks: l
857
855
  } = e;
858
856
  if (!l?.length)
859
857
  return null;
860
858
  let i;
861
- n[0] !== l ? (i = l.map(jo), n[0] = l, n[1] = i) : i = n[1];
859
+ n[0] !== l ? (i = l.map(Uo), n[0] = l, n[1] = i) : i = n[1];
862
860
  let s;
863
- return n[2] !== o || n[3] !== i ? (s = /* @__PURE__ */ a(ae.MarkerGroup, { ref: o, children: i }), n[2] = o, n[3] = i, n[4] = s) : s = n[4], s;
861
+ return n[2] !== o || n[3] !== i ? (s = /* @__PURE__ */ r(ae.MarkerGroup, { ref: o, children: i }), n[2] = o, n[3] = i, n[4] = s) : s = n[4], s;
864
862
  });
865
863
  function Go(t) {
866
864
  return typeof t == "number" ? {
@@ -871,14 +869,14 @@ function Go(t) {
871
869
  function qo(t) {
872
870
  return t.label;
873
871
  }
874
- function jo(t, e) {
872
+ function Uo(t, e) {
875
873
  const o = typeof t == "number" ? t : t.value, n = typeof t == "number" ? void 0 : t.label;
876
- return /* @__PURE__ */ x(ae.Marker, { value: o, children: [
877
- /* @__PURE__ */ a(ae.MarkerIndicator, {}),
874
+ return /* @__PURE__ */ C(ae.Marker, { value: o, children: [
875
+ /* @__PURE__ */ r(ae.MarkerIndicator, {}),
878
876
  n
879
877
  ] }, e);
880
878
  }
881
- const $t = [{
879
+ const It = [{
882
880
  value: "global",
883
881
  references: ["global"]
884
882
  }, {
@@ -887,11 +885,11 @@ const $t = [{
887
885
  }, {
888
886
  value: "screen",
889
887
  references: ["mobile", "tablet", "desktop"]
890
- }], Uo = $t.map((t) => t.value), wt = $t.flatMap((t) => t.references), Qo = (t) => {
888
+ }], jo = It.map((t) => t.value), Mt = It.flatMap((t) => t.references), Qo = (t) => {
891
889
  if (t)
892
- return $t.find((e) => e.references.includes(t))?.value;
893
- }, Yo = w(() => {
894
- const t = y(52), e = We();
890
+ return It.find((e) => e.references.includes(t))?.value;
891
+ }, Yo = M(() => {
892
+ const t = x(52), e = We();
895
893
  let o;
896
894
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = ["fontSizeMenuOpen", "onFontSizeMenuOpenChange", "fontSize", "fontSizeMin", "fontSizeMax", "fontSizeScope", "onFontSizeChange", "onFontSizeScopeChange", "uncontrolledFontSize", "fontSizeValues"], t[0] = o) : o = t[0];
897
895
  const {
@@ -899,117 +897,117 @@ const $t = [{
899
897
  onFontSizeMenuOpenChange: l,
900
898
  uncontrolledFontSize: i,
901
899
  fontSize: s,
902
- fontSizeMin: r,
900
+ fontSizeMin: a,
903
901
  fontSizeMax: c,
904
902
  fontSizeScope: f,
905
903
  fontSizeValues: u,
906
904
  onFontSizeChange: d,
907
905
  onFontSizeScopeChange: h
908
- } = oe(o), m = s === void 0 ? i : s, g = $n(d), [p, b] = le(f ?? "global");
906
+ } = oe(o), m = s === void 0 ? i : s, g = In(d), [b, p] = le(f ?? "global");
909
907
  let S;
910
- t[1] !== e || t[2] !== g ? (S = (R, te) => {
911
- g.current ? g.current(R, te) : e.update((qe) => ({
908
+ t[1] !== e || t[2] !== g ? (S = (T, te) => {
909
+ g.current ? g.current(T, te) : e.update((qe) => ({
912
910
  ...qe,
913
911
  uncontrolledFontSize: te
914
912
  }));
915
913
  }, t[1] = e, t[2] = g, t[3] = S) : S = t[3];
916
914
  const _ = S;
917
915
  let v;
918
- t[4] !== m || t[5] !== u ? (v = (R) => u?.[R] ?? m, t[4] = m, t[5] = u, t[6] = v) : v = t[6];
919
- const C = v;
920
- let I;
921
- t[7] !== h ? (I = (R) => {
922
- const te = R.value;
923
- h?.(te);
924
- }, t[7] = h, t[8] = I) : I = t[8];
925
- const k = I;
916
+ t[4] !== m || t[5] !== u ? (v = (T) => u?.[T] ?? m, t[4] = m, t[5] = u, t[6] = v) : v = t[6];
917
+ const y = v;
926
918
  let $;
927
- t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = (R) => {
928
- b(R.value);
929
- }, t[9] = $) : $ = t[9];
930
- const O = $;
919
+ t[7] !== h ? ($ = (T) => {
920
+ const te = T.value;
921
+ h?.(te);
922
+ }, t[7] = h, t[8] = $) : $ = t[8];
923
+ const k = $;
924
+ let I;
925
+ t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = (T) => {
926
+ p(T.value);
927
+ }, t[9] = I) : I = t[9];
928
+ const R = I;
931
929
  let z;
932
- t[10] !== _ || t[11] !== p ? (z = (R) => {
933
- const te = R.value[0] ?? 0;
934
- _(p, te / 100);
935
- }, t[10] = _, t[11] = p, t[12] = z) : z = t[12];
936
- const E = z;
937
- let T, N;
938
- t[13] !== f ? (T = function() {
939
- b(f ?? "global");
940
- }, N = [f], t[13] = f, t[14] = T, t[15] = N) : (T = t[14], N = t[15]), ce(T, N);
941
- let M;
942
- t[16] !== l ? (M = (R) => {
943
- l(R.open);
944
- }, t[16] = l, t[17] = M) : M = t[17];
930
+ t[10] !== _ || t[11] !== b ? (z = (T) => {
931
+ const te = T.value[0] ?? 0;
932
+ _(b, te / 100);
933
+ }, t[10] = _, t[11] = b, t[12] = z) : z = t[12];
934
+ const L = z;
935
+ let O, N;
936
+ t[13] !== f ? (O = function() {
937
+ p(f ?? "global");
938
+ }, N = [f], t[13] = f, t[14] = O, t[15] = N) : (O = t[14], N = t[15]), ce(O, N);
939
+ let w;
940
+ t[16] !== l ? (w = (T) => {
941
+ l(T.open);
942
+ }, t[16] = l, t[17] = w) : w = t[17];
945
943
  let H;
946
- t[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = /* @__PURE__ */ a(ye, { children: /* @__PURE__ */ a(Ie, { children: "Font size" }) }), t[18] = H) : H = t[18];
944
+ t[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = /* @__PURE__ */ r(ye, { children: /* @__PURE__ */ r($e, { children: "Font size" }) }), t[18] = H) : H = t[18];
947
945
  let Q, K;
948
- t[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = /* @__PURE__ */ a(Se.Legend, { children: "Scope" }), K = /* @__PURE__ */ a(Se.HelperText, { children: "The scope to which apply the font size for this book." }), t[19] = Q, t[20] = K) : (Q = t[19], K = t[20]);
946
+ t[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = /* @__PURE__ */ r(Se.Legend, { children: "Scope" }), K = /* @__PURE__ */ r(Se.HelperText, { children: "The scope to which apply the font size for this book." }), t[19] = Q, t[20] = K) : (Q = t[19], K = t[20]);
949
947
  let V;
950
948
  t[21] !== f ? (V = Qo(f) ?? "global", t[21] = f, t[22] = V) : V = t[22];
951
949
  const W = !h;
952
950
  let G;
953
- t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ a(ge, { gap: 2, children: Uo.map(Zo) }), t[23] = G) : G = t[23];
954
- let F;
955
- t[24] !== k || t[25] !== V || t[26] !== W ? (F = /* @__PURE__ */ x(Se.Root, { children: [
951
+ t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ r(ge, { gap: 2, children: jo.map(Zo) }), t[23] = G) : G = t[23];
952
+ let D;
953
+ t[24] !== k || t[25] !== V || t[26] !== W ? (D = /* @__PURE__ */ C(Se.Root, { children: [
956
954
  Q,
957
955
  K,
958
- /* @__PURE__ */ a(Se.Content, { children: /* @__PURE__ */ a(Kt, { onValueChange: k, value: V, disabled: W, children: G }) })
959
- ] }), t[24] = k, t[25] = V, t[26] = W, t[27] = F) : F = t[27];
956
+ /* @__PURE__ */ r(Se.Content, { children: /* @__PURE__ */ r(Kt, { onValueChange: k, value: V, disabled: W, children: G }) })
957
+ ] }), t[24] = k, t[25] = V, t[26] = W, t[27] = D) : D = t[27];
960
958
  let P;
961
- t[28] !== f ? (P = wt.map((R) => /* @__PURE__ */ x(ue.Trigger, { value: R, textTransform: "capitalize", disabled: R !== "global" && !f, children: [
962
- f === R && /* @__PURE__ */ a(gn, {}),
963
- R
964
- ] }, R)), t[28] = f, t[29] = P) : P = t[29];
959
+ t[28] !== f ? (P = Mt.map((T) => /* @__PURE__ */ C(ue.Trigger, { value: T, textTransform: "capitalize", disabled: T !== "global" && !f, children: [
960
+ f === T && /* @__PURE__ */ r(gn, {}),
961
+ T
962
+ ] }, T)), t[28] = f, t[29] = P) : P = t[29];
965
963
  let Y;
966
- t[30] !== P ? (Y = /* @__PURE__ */ a(ue.List, { children: P }), t[30] = P, t[31] = Y) : Y = t[31];
964
+ t[30] !== P ? (Y = /* @__PURE__ */ r(ue.List, { children: P }), t[30] = P, t[31] = Y) : Y = t[31];
967
965
  let Z;
968
- t[32] !== c || t[33] !== r || t[34] !== C || t[35] !== E ? (Z = wt.map((R) => /* @__PURE__ */ a(ue.Content, { value: R, children: /* @__PURE__ */ a(It, { label: "%", value: [(C(R) ?? 1) * 100], onValueChange: E, showValue: !0, marks: [{
966
+ t[32] !== c || t[33] !== a || t[34] !== y || t[35] !== L ? (Z = Mt.map((T) => /* @__PURE__ */ r(ue.Content, { value: T, children: /* @__PURE__ */ r($t, { label: "%", value: [(y(T) ?? 1) * 100], onValueChange: L, showValue: !0, marks: [{
969
967
  value: 100,
970
968
  label: "Publisher"
971
969
  }, {
972
- value: r * 100,
973
- label: `${r * 100}%`
970
+ value: a * 100,
971
+ label: `${a * 100}%`
974
972
  }, {
975
973
  value: c * 100,
976
974
  label: `${c * 100}%`
977
- }], max: c * 100, min: r * 100, width: "100%", step: 10 }) }, R)), t[32] = c, t[33] = r, t[34] = C, t[35] = E, t[36] = Z) : Z = t[36];
975
+ }], max: c * 100, min: a * 100, width: "100%", step: 10 }) }, T)), t[32] = c, t[33] = a, t[34] = y, t[35] = L, t[36] = Z) : Z = t[36];
978
976
  let A;
979
- t[37] !== Y || t[38] !== Z || t[39] !== p ? (A = /* @__PURE__ */ x(ue.Root, { value: p, onValueChange: O, fitted: !1, size: "sm", children: [
977
+ t[37] !== Y || t[38] !== Z || t[39] !== b ? (A = /* @__PURE__ */ C(ue.Root, { value: b, onValueChange: R, fitted: !1, size: "sm", children: [
980
978
  Y,
981
979
  Z
982
- ] }), t[37] = Y, t[38] = Z, t[39] = p, t[40] = A) : A = t[40];
983
- let L;
984
- t[41] !== F || t[42] !== A ? (L = /* @__PURE__ */ a(ke, { children: /* @__PURE__ */ x(J, { gap: 4, flex: 1, children: [
985
- F,
980
+ ] }), t[37] = Y, t[38] = Z, t[39] = b, t[40] = A) : A = t[40];
981
+ let F;
982
+ t[41] !== D || t[42] !== A ? (F = /* @__PURE__ */ r(ke, { children: /* @__PURE__ */ C(J, { gap: 4, flex: 1, children: [
983
+ D,
986
984
  A
987
- ] }) }), t[41] = F, t[42] = A, t[43] = L) : L = t[43];
988
- let X, B;
989
- t[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = /* @__PURE__ */ a(xe, { children: /* @__PURE__ */ a($e, { asChild: !0, children: /* @__PURE__ */ a(re, { variant: "outline", children: "Close" }) }) }), B = /* @__PURE__ */ a(ve, {}), t[44] = X, t[45] = B) : (X = t[44], B = t[45]);
990
- let D;
991
- t[46] !== L ? (D = /* @__PURE__ */ x(_e, { maxH: "40vh", overflow: "auto", children: [
985
+ ] }) }), t[41] = D, t[42] = A, t[43] = F) : F = t[43];
986
+ let X, E;
987
+ t[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = /* @__PURE__ */ r(xe, { children: /* @__PURE__ */ r(Ie, { asChild: !0, children: /* @__PURE__ */ r(re, { variant: "outline", children: "Close" }) }) }), E = /* @__PURE__ */ r(ve, {}), t[44] = X, t[45] = E) : (X = t[44], E = t[45]);
988
+ let B;
989
+ t[46] !== F ? (B = /* @__PURE__ */ C(_e, { maxH: "40vh", overflow: "auto", children: [
992
990
  H,
993
- L,
991
+ F,
994
992
  X,
995
- B
996
- ] }), t[46] = L, t[47] = D) : D = t[47];
993
+ E
994
+ ] }), t[46] = F, t[47] = B) : B = t[47];
997
995
  let de;
998
- return t[48] !== n || t[49] !== D || t[50] !== M ? (de = /* @__PURE__ */ a(Ce, { lazyMount: !0, open: n, onOpenChange: M, placement: "center", children: D }), t[48] = n, t[49] = D, t[50] = M, t[51] = de) : de = t[51], de;
996
+ return t[48] !== n || t[49] !== B || t[50] !== w ? (de = /* @__PURE__ */ r(Ce, { lazyMount: !0, open: n, onOpenChange: w, placement: "center", children: B }), t[48] = n, t[49] = B, t[50] = w, t[51] = de) : de = t[51], de;
999
997
  });
1000
998
  function Zo(t) {
1001
- return /* @__PURE__ */ a(Ye, { value: t, children: t }, t);
999
+ return /* @__PURE__ */ r(Ye, { value: t, children: t }, t);
1002
1000
  }
1003
1001
  const Ko = () => {
1004
- const t = y(11), e = U(), o = We();
1002
+ const t = x(8), e = j(), o = We();
1005
1003
  let n;
1006
1004
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = ["fontSize", "uncontrolledFontSize", "onFontSizeChange"], t[0] = n) : n = t[0];
1007
1005
  const {
1008
1006
  fontSize: l,
1009
1007
  uncontrolledFontSize: i
1010
1008
  } = oe(n), s = l ?? i;
1011
- let r, c;
1012
- t[1] !== s || t[2] !== e ? (r = function() {
1009
+ let a, c;
1010
+ t[1] !== s || t[2] !== e ? (a = function() {
1013
1011
  if (e && s) {
1014
1012
  const h = setTimeout(() => {
1015
1013
  e.settings.update({
@@ -1018,9 +1016,9 @@ const Ko = () => {
1018
1016
  }, 200);
1019
1017
  return () => clearTimeout(h);
1020
1018
  }
1021
- }, c = [e, s], t[1] = s, t[2] = e, t[3] = r, t[4] = c) : (r = t[3], c = t[4]), ce(r, c);
1019
+ }, c = [e, s], t[1] = s, t[2] = e, t[3] = a, t[4] = c) : (a = t[3], c = t[4]), ce(a, c);
1022
1020
  let f;
1023
- t[5] !== o || t[6] !== e?.settings.values$ ? (f = function() {
1021
+ return t[5] !== o || t[6] !== e?.settings.values$ ? (f = function() {
1024
1022
  return e?.settings.values$.pipe(ne(Xo)).subscribe((h) => {
1025
1023
  const m = o.value.fontSize ?? o.value.uncontrolledFontSize;
1026
1024
  h !== m && (o.value.onFontSizeChange?.("internal", h), o.update((g) => ({
@@ -1028,9 +1026,7 @@ const Ko = () => {
1028
1026
  uncontrolledFontSize: h
1029
1027
  })));
1030
1028
  });
1031
- }, t[5] = o, t[6] = e?.settings.values$, t[7] = f) : f = t[7];
1032
- let u;
1033
- return t[8] !== o || t[9] !== e ? (u = [e, o], t[8] = o, t[9] = e, t[10] = u) : u = t[10], pe(f, u), null;
1029
+ }, t[5] = o, t[6] = e?.settings.values$, t[7] = f) : f = t[7], pe(f), null;
1034
1030
  };
1035
1031
  function Xo(t) {
1036
1032
  return t.fontScale;
@@ -1046,7 +1042,7 @@ const Jo = {
1046
1042
  right: 0
1047
1043
  };
1048
1044
  function el() {
1049
- const t = y(7), [e, o] = le(null), [n, l] = le(Jo);
1045
+ const t = x(7), [e, o] = le(null), [n, l] = le(Jo);
1050
1046
  let i;
1051
1047
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = new ResizeObserver((u) => {
1052
1048
  if (u[0]) {
@@ -1055,8 +1051,8 @@ function el() {
1055
1051
  y: h,
1056
1052
  width: m,
1057
1053
  height: g,
1058
- top: p,
1059
- left: b,
1054
+ top: b,
1055
+ left: p,
1060
1056
  bottom: S,
1061
1057
  right: _
1062
1058
  } = u[0].contentRect;
@@ -1065,31 +1061,31 @@ function el() {
1065
1061
  y: h,
1066
1062
  width: m,
1067
1063
  height: g,
1068
- top: p,
1069
- left: b,
1064
+ top: b,
1065
+ left: p,
1070
1066
  bottom: S,
1071
1067
  right: _
1072
1068
  });
1073
1069
  }
1074
1070
  }), t[0] = i) : i = t[0];
1075
1071
  const s = i;
1076
- let r, c;
1077
- t[1] !== e ? (r = () => {
1072
+ let a, c;
1073
+ t[1] !== e ? (a = () => {
1078
1074
  if (e)
1079
1075
  return s.observe(e), () => {
1080
1076
  s.disconnect();
1081
1077
  };
1082
- }, c = [e, s], t[1] = e, t[2] = r, t[3] = c) : (r = t[2], c = t[3]), fn(r, c);
1078
+ }, c = [e, s], t[1] = e, t[2] = a, t[3] = c) : (a = t[2], c = t[3]), fn(a, c);
1083
1079
  let f;
1084
1080
  return t[4] !== e || t[5] !== n ? (f = [o, n, e], t[4] = e, t[5] = n, t[6] = f) : f = t[6], f;
1085
1081
  }
1086
1082
  const tl = (t, e, o) => {
1087
- const n = y(8), l = U();
1083
+ const n = x(7), l = j();
1088
1084
  let i;
1089
- n[0] !== l ? (i = Ut(l) ? l : void 0, n[0] = l, n[1] = i) : i = n[1];
1085
+ n[0] !== l ? (i = jt(l) ? l : void 0, n[0] = l, n[1] = i) : i = n[1];
1090
1086
  const s = i;
1091
- let r, c;
1092
- n[2] !== t || n[3] !== e || n[4] !== o || n[5] !== s ? (r = () => {
1087
+ let a;
1088
+ n[2] !== t || n[3] !== e || n[4] !== o || n[5] !== s ? (a = () => {
1093
1089
  if (!s || !t)
1094
1090
  return ft;
1095
1091
  const f = e.didLayout$.pipe(Bt(e.layoutInfo), rt(Vt)), u = Dn(t).pipe(ne(ol));
@@ -1098,7 +1094,7 @@ const tl = (t, e, o) => {
1098
1094
  }), be(() => u.pipe(xt((d) => {
1099
1095
  d || (t.innerHTML = "");
1100
1096
  }), Xe(ll), Lt()).pipe(be(() => (t.innerHTML = "", s?.gallery.snapshot(e, t, o))))));
1101
- }, c = [s, e, o, t], n[2] = t, n[3] = e, n[4] = o, n[5] = s, n[6] = r, n[7] = c) : (r = n[6], c = n[7]), pe(r, c);
1097
+ }, n[2] = t, n[3] = e, n[4] = o, n[5] = s, n[6] = a) : a = n[6], pe(a);
1102
1098
  };
1103
1099
  function nl(t) {
1104
1100
  return t.isIntersecting;
@@ -1109,50 +1105,50 @@ function ol(t) {
1109
1105
  function ll(t) {
1110
1106
  return t;
1111
1107
  }
1112
- const il = w((t) => {
1113
- const e = y(16), {
1108
+ const il = M((t) => {
1109
+ const e = x(16), {
1114
1110
  item: o,
1115
1111
  onNavigated: n
1116
- } = t, [l, i, s] = el(), r = U();
1112
+ } = t, [l, i, s] = el(), a = j();
1117
1113
  tl(s, o, i);
1118
1114
  let c, f;
1119
- e[0] !== o || e[1] !== r ? (c = () => r?.locateResource(o, {
1115
+ e[0] !== o || e[1] !== a ? (c = () => a?.locateResource(o, {
1120
1116
  mode: "shallow"
1121
- }), f = [r, o], e[0] = o, e[1] = r, e[2] = c, e[3] = f) : (c = e[2], f = e[3]);
1117
+ }), f = [a, o], e[0] = o, e[1] = a, e[2] = c, e[3] = f) : (c = e[2], f = e[3]);
1122
1118
  const {
1123
1119
  data: u
1124
- } = j(c, f);
1120
+ } = U(c, f);
1125
1121
  let d;
1126
- e[4] !== o || e[5] !== n || e[6] !== r?.navigation ? (d = () => {
1127
- n(), r?.navigation.goToSpineItem({
1122
+ e[4] !== o || e[5] !== n || e[6] !== a?.navigation ? (d = () => {
1123
+ n(), a?.navigation.goToSpineItem({
1128
1124
  indexOrId: o
1129
1125
  });
1130
- }, e[4] = o, e[5] = n, e[6] = r?.navigation, e[7] = d) : d = e[7];
1126
+ }, e[4] = o, e[5] = n, e[6] = a?.navigation, e[7] = d) : d = e[7];
1131
1127
  let h;
1132
- e[8] !== l ? (h = /* @__PURE__ */ a(he, { height: "100%", width: "100%", overflow: "hidden", pointerEvents: "none", ref: l }), e[8] = l, e[9] = h) : h = e[9];
1128
+ e[8] !== l ? (h = /* @__PURE__ */ r(he, { height: "100%", width: "100%", overflow: "hidden", pointerEvents: "none", ref: l }), e[8] = l, e[9] = h) : h = e[9];
1133
1129
  const m = (u?.meta?.absolutePageIndex ?? 0) + 1;
1134
1130
  let g;
1135
- e[10] !== m ? (g = /* @__PURE__ */ x(q, { position: "absolute", bottom: 0, left: "0", right: "0", textAlign: "center", bgColor: "white", p: 4, fontSize: "xs", children: [
1131
+ e[10] !== m ? (g = /* @__PURE__ */ C(q, { position: "absolute", bottom: 0, left: "0", right: "0", textAlign: "center", bgColor: "white", p: 4, fontSize: "xs", children: [
1136
1132
  "Page ",
1137
1133
  m
1138
1134
  ] }), e[10] = m, e[11] = g) : g = e[11];
1139
- let p;
1140
- return e[12] !== d || e[13] !== h || e[14] !== g ? (p = /* @__PURE__ */ x(he, { width: "100%", aspectRatio: "2/3", border: "1px solid", borderColor: "border", borderRadius: "md", "data-grid-item": !0, cursor: "pointer", position: "relative", overflow: "hidden", onClick: d, children: [
1135
+ let b;
1136
+ return e[12] !== d || e[13] !== h || e[14] !== g ? (b = /* @__PURE__ */ C(he, { width: "100%", aspectRatio: "2/3", border: "1px solid", borderColor: "border", borderRadius: "md", "data-grid-item": !0, cursor: "pointer", position: "relative", overflow: "hidden", onClick: d, children: [
1141
1137
  h,
1142
1138
  g
1143
- ] }), e[12] = d, e[13] = h, e[14] = g, e[15] = p) : p = e[15], p;
1144
- }), sl = w((t) => {
1145
- const e = y(23), {
1139
+ ] }), e[12] = d, e[13] = h, e[14] = g, e[15] = b) : b = e[15], b;
1140
+ }), sl = M((t) => {
1141
+ const e = x(23), {
1146
1142
  open: o,
1147
1143
  setOpen: n
1148
- } = t, l = U();
1144
+ } = t, l = j();
1149
1145
  let i;
1150
1146
  e[0] !== l?.spineItemsManager.items$ ? (i = () => l?.spineItemsManager.items$, e[0] = l?.spineItemsManager.items$, e[1] = i) : i = e[1];
1151
1147
  let s;
1152
1148
  e[2] !== l ? (s = [l], e[2] = l, e[3] = s) : s = e[3];
1153
1149
  const {
1154
- data: r
1155
- } = j(i, s);
1150
+ data: a
1151
+ } = U(i, s);
1156
1152
  let c;
1157
1153
  e[4] !== n ? (c = (v) => n(v.open), e[4] = n, e[5] = c) : c = e[5];
1158
1154
  let f;
@@ -1161,30 +1157,30 @@ const il = w((t) => {
1161
1157
  md: "lg"
1162
1158
  }, e[6] = f) : f = e[6];
1163
1159
  let u;
1164
- e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ a(ye, { children: /* @__PURE__ */ a(Ie, { children: "Gallery" }) }), e[7] = u) : u = e[7];
1160
+ e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ r(ye, { children: /* @__PURE__ */ r($e, { children: "Gallery" }) }), e[7] = u) : u = e[7];
1165
1161
  let d;
1166
1162
  e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = ["repeat(2, minmax(0, 1fr))", "repeat(3, minmax(0, 1fr))"], e[8] = d) : d = e[8];
1167
1163
  let h;
1168
1164
  e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = [2, 4], e[9] = h) : h = e[9];
1169
1165
  let m;
1170
- e[10] !== r || e[11] !== n ? (m = r?.map((v) => /* @__PURE__ */ a(il, { item: v, onNavigated: () => {
1166
+ e[10] !== a || e[11] !== n ? (m = a?.map((v) => /* @__PURE__ */ r(il, { item: v, onNavigated: () => {
1171
1167
  n(!1);
1172
- } }, v.item.id)), e[10] = r, e[11] = n, e[12] = m) : m = e[12];
1168
+ } }, v.item.id)), e[10] = a, e[11] = n, e[12] = m) : m = e[12];
1173
1169
  let g;
1174
- e[13] !== m ? (g = /* @__PURE__ */ a(ke, { children: /* @__PURE__ */ a(he, { gridTemplateColumns: d, display: "grid", gap: h, pt: 2, "data-grid": !0, children: m }) }), e[13] = m, e[14] = g) : g = e[14];
1175
- let p, b;
1176
- e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ a(xe, { children: /* @__PURE__ */ a($e, { asChild: !0, children: /* @__PURE__ */ a(re, { variant: "outline", children: "Cancel" }) }) }), b = /* @__PURE__ */ a(ve, {}), e[15] = p, e[16] = b) : (p = e[15], b = e[16]);
1170
+ e[13] !== m ? (g = /* @__PURE__ */ r(ke, { children: /* @__PURE__ */ r(he, { gridTemplateColumns: d, display: "grid", gap: h, pt: 2, "data-grid": !0, children: m }) }), e[13] = m, e[14] = g) : g = e[14];
1171
+ let b, p;
1172
+ e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ r(xe, { children: /* @__PURE__ */ r(Ie, { asChild: !0, children: /* @__PURE__ */ r(re, { variant: "outline", children: "Cancel" }) }) }), p = /* @__PURE__ */ r(ve, {}), e[15] = b, e[16] = p) : (b = e[15], p = e[16]);
1177
1173
  let S;
1178
- e[17] !== g ? (S = /* @__PURE__ */ x(_e, { height: "100%", children: [
1174
+ e[17] !== g ? (S = /* @__PURE__ */ C(_e, { height: "100%", children: [
1179
1175
  u,
1180
1176
  g,
1181
- p,
1182
- b
1177
+ b,
1178
+ p
1183
1179
  ] }), e[17] = g, e[18] = S) : S = e[18];
1184
1180
  let _;
1185
- return e[19] !== o || e[20] !== S || e[21] !== c ? (_ = /* @__PURE__ */ a(Ce, { lazyMount: !0, placement: "center", open: o, onOpenChange: c, size: f, scrollBehavior: "inside", children: S }), e[19] = o, e[20] = S, e[21] = c, e[22] = _) : _ = e[22], _;
1186
- }), al = "@prose-reader/react-reader", rl = "1.274.0", cl = w((t) => {
1187
- const e = y(16), {
1181
+ return e[19] !== o || e[20] !== S || e[21] !== c ? (_ = /* @__PURE__ */ r(Ce, { lazyMount: !0, placement: "center", open: o, onOpenChange: c, size: f, scrollBehavior: "inside", children: S }), e[19] = o, e[20] = S, e[21] = c, e[22] = _) : _ = e[22], _;
1182
+ }), al = "@prose-reader/react-reader", rl = "1.276.0", cl = M((t) => {
1183
+ const e = x(16), {
1188
1184
  open: o,
1189
1185
  setOpen: n
1190
1186
  } = t;
@@ -1196,62 +1192,62 @@ const il = w((t) => {
1196
1192
  md: "lg"
1197
1193
  }, e[2] = i) : i = e[2];
1198
1194
  let s;
1199
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ a(ye, { children: /* @__PURE__ */ a(Ie, { children: "Help" }) }), e[3] = s) : s = e[3];
1200
- let r;
1201
- e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ a(mt, { mb: 2, as: "h3", size: "lg", children: "Shortcuts" }), e[4] = r) : r = e[4];
1195
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(ye, { children: /* @__PURE__ */ r($e, { children: "Help" }) }), e[3] = s) : s = e[3];
1196
+ let a;
1197
+ e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ r(mt, { mb: 2, as: "h3", size: "lg", children: "Shortcuts" }), e[4] = a) : a = e[4];
1202
1198
  let c;
1203
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ a(zt, { children: /* @__PURE__ */ a(pn, {}) }), e[5] = c) : c = e[5];
1199
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ r(zt, { children: /* @__PURE__ */ r(pn, {}) }), e[5] = c) : c = e[5];
1204
1200
  let f;
1205
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ x(ge, { mb: 1, children: [
1201
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ C(ge, { mb: 1, children: [
1206
1202
  c,
1207
1203
  " ",
1208
- /* @__PURE__ */ a(q, { children: "Navigate to right page" })
1204
+ /* @__PURE__ */ r(q, { children: "Navigate to right page" })
1209
1205
  ] }), e[6] = f) : f = e[6];
1210
1206
  let u;
1211
- e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ a(zt, { children: /* @__PURE__ */ a(bn, {}) }), e[7] = u) : u = e[7];
1207
+ e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ r(zt, { children: /* @__PURE__ */ r(bn, {}) }), e[7] = u) : u = e[7];
1212
1208
  let d;
1213
- e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ x(J, { children: [
1214
- r,
1209
+ e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ C(J, { children: [
1210
+ a,
1215
1211
  f,
1216
- /* @__PURE__ */ x(ge, { mb: 1, children: [
1212
+ /* @__PURE__ */ C(ge, { mb: 1, children: [
1217
1213
  u,
1218
1214
  " ",
1219
- /* @__PURE__ */ a(q, { children: "Navigate to left page" })
1215
+ /* @__PURE__ */ r(q, { children: "Navigate to left page" })
1220
1216
  ] })
1221
1217
  ] }), e[8] = d) : d = e[8];
1222
1218
  let h;
1223
- e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ a(mt, { mb: 2, as: "h3", size: "lg", children: "Bookmarks" }), e[9] = h) : h = e[9];
1219
+ e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ r(mt, { mb: 2, as: "h3", size: "lg", children: "Bookmarks" }), e[9] = h) : h = e[9];
1224
1220
  let m;
1225
- e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ x(J, { children: [
1221
+ e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ C(J, { children: [
1226
1222
  h,
1227
- /* @__PURE__ */ a(ge, { mb: 1, children: /* @__PURE__ */ a(q, { children: "Tap on the top right corner of a page bookmark it" }) })
1223
+ /* @__PURE__ */ r(ge, { mb: 1, children: /* @__PURE__ */ r(q, { children: "Tap on the top right corner of a page bookmark it" }) })
1228
1224
  ] }), e[10] = m) : m = e[10];
1229
1225
  let g;
1230
- e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ x(ke, { overflowY: "auto", flex: 1, display: "flex", flexDirection: "column", gap: 4, children: [
1226
+ e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ C(ke, { overflowY: "auto", flex: 1, display: "flex", flexDirection: "column", gap: 4, children: [
1231
1227
  d,
1232
1228
  m,
1233
- /* @__PURE__ */ x(J, { children: [
1234
- /* @__PURE__ */ a(mt, { mb: 2, as: "h3", size: "lg", children: "About" }),
1235
- /* @__PURE__ */ x(q, { children: [
1229
+ /* @__PURE__ */ C(J, { children: [
1230
+ /* @__PURE__ */ r(mt, { mb: 2, as: "h3", size: "lg", children: "About" }),
1231
+ /* @__PURE__ */ C(q, { children: [
1236
1232
  al,
1237
1233
  " version: ",
1238
1234
  rl
1239
1235
  ] })
1240
1236
  ] })
1241
1237
  ] }), e[11] = g) : g = e[11];
1242
- let p;
1243
- e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ x(_e, { children: [
1238
+ let b;
1239
+ e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ C(_e, { children: [
1244
1240
  s,
1245
1241
  g,
1246
- /* @__PURE__ */ a(xe, { children: /* @__PURE__ */ a($e, { asChild: !0, children: /* @__PURE__ */ a(re, { variant: "outline", children: "Cancel" }) }) }),
1247
- /* @__PURE__ */ a(ve, {})
1248
- ] }), e[12] = p) : p = e[12];
1249
- let b;
1250
- return e[13] !== o || e[14] !== l ? (b = /* @__PURE__ */ a(Ce, { lazyMount: !0, placement: "center", open: o, onOpenChange: l, size: i, scrollBehavior: "inside", children: p }), e[13] = o, e[14] = l, e[15] = b) : b = e[15], b;
1242
+ /* @__PURE__ */ r(xe, { children: /* @__PURE__ */ r(Ie, { asChild: !0, children: /* @__PURE__ */ r(re, { variant: "outline", children: "Cancel" }) }) }),
1243
+ /* @__PURE__ */ r(ve, {})
1244
+ ] }), e[12] = b) : b = e[12];
1245
+ let p;
1246
+ return e[13] !== o || e[14] !== l ? (p = /* @__PURE__ */ r(Ce, { lazyMount: !0, placement: "center", open: o, onOpenChange: l, size: i, scrollBehavior: "inside", children: b }), e[13] = o, e[14] = l, e[15] = p) : p = e[15], p;
1251
1247
  }), Ge = () => {
1252
- const t = y(3), e = U();
1248
+ const t = x(3), e = j();
1253
1249
  let o, n;
1254
- return t[0] !== e ? (o = () => e ? Dt([e.pagination.state$, e.context]).pipe(ne(dl)) : ft, n = [e], t[0] = e, t[1] = o, t[2] = n) : (o = t[1], n = t[2]), j(o, n).data;
1250
+ return t[0] !== e ? (o = () => e ? Dt([e.pagination.state$, e.context]).pipe(ne(dl)) : ft, n = [e], t[0] = e, t[1] = o, t[2] = n) : (o = t[1], n = t[2]), U(o, n).data;
1255
1251
  };
1256
1252
  function fl(t) {
1257
1253
  return t.mediaType?.startsWith("image/");
@@ -1267,7 +1263,7 @@ const ul = {
1267
1263
  _open: "fade-in",
1268
1264
  _closed: "fade-out"
1269
1265
  }, hl = () => {
1270
- const t = y(6);
1266
+ const t = x(6);
1271
1267
  let e;
1272
1268
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["enableFloatingProgress", "quickMenuOpen"], t[0] = e) : e = t[0];
1273
1269
  const {
@@ -1276,16 +1272,16 @@ const ul = {
1276
1272
  } = oe(e), l = Ge(), i = Math.floor((l?.percentageEstimateOfBook ?? 0) * 100), s = i > 0 ? i : 1;
1277
1273
  if (l?.percentageEstimateOfBook === void 0 || !o)
1278
1274
  return null;
1279
- const r = !n;
1275
+ const a = !n;
1280
1276
  let c;
1281
- t[1] !== s ? (c = /* @__PURE__ */ a(he, { position: "absolute", right: 0, bottom: 0, p: 2, WebkitTextStroke: "2px black", paintOrder: "stroke fill", pointerEvents: "none", letterSpacing: 1, color: "white", children: /* @__PURE__ */ x(q, { fontSize: "sm", children: [
1277
+ t[1] !== s ? (c = /* @__PURE__ */ r(he, { position: "absolute", right: 0, bottom: 0, p: 2, WebkitTextStroke: "2px black", paintOrder: "stroke fill", pointerEvents: "none", letterSpacing: 1, color: "white", children: /* @__PURE__ */ C(q, { fontSize: "sm", children: [
1282
1278
  s,
1283
1279
  " %"
1284
1280
  ] }) }), t[1] = s, t[2] = c) : c = t[2];
1285
1281
  let f;
1286
- return t[3] !== r || t[4] !== c ? (f = /* @__PURE__ */ a(tt, { present: r, animationName: ul, animationDuration: "moderate", children: c }), t[3] = r, t[4] = c, t[5] = f) : f = t[5], f;
1282
+ return t[3] !== a || t[4] !== c ? (f = /* @__PURE__ */ r(tt, { present: a, animationName: ul, animationDuration: "moderate", children: c }), t[3] = a, t[4] = c, t[5] = f) : f = t[5], f;
1287
1283
  }, ml = () => {
1288
- const t = y(3);
1284
+ const t = x(3);
1289
1285
  let e;
1290
1286
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ new Date(), t[0] = e) : e = t[0];
1291
1287
  const [o, n] = le(e);
@@ -1297,24 +1293,22 @@ const ul = {
1297
1293
  return () => clearInterval(s);
1298
1294
  }, i = [], t[1] = l, t[2] = i) : (l = t[1], i = t[2]), ce(l, i), o;
1299
1295
  }, gl = (t) => {
1300
- const e = y(5), o = ml();
1296
+ const e = x(5), o = ml();
1301
1297
  let n;
1302
1298
  e[0] !== o ? (n = o.toLocaleTimeString(navigator.language, {
1303
1299
  hour: "2-digit",
1304
1300
  minute: "2-digit"
1305
1301
  }), e[0] = o, e[1] = n) : n = e[1];
1306
1302
  let l;
1307
- return e[2] !== t || e[3] !== n ? (l = /* @__PURE__ */ a(q, { fontSize: "sm", ...t, children: n }), e[2] = t, e[3] = n, e[4] = l) : l = e[4], l;
1308
- }, pl = w(() => {
1309
- const t = y(1);
1303
+ return e[2] !== t || e[3] !== n ? (l = /* @__PURE__ */ r(q, { fontSize: "sm", ...t, children: n }), e[2] = t, e[3] = n, e[4] = l) : l = e[4], l;
1304
+ }, pl = M(() => {
1305
+ const t = x(1);
1310
1306
  let e;
1311
- return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ a(he, { position: "absolute", left: 0, bottom: 0, p: 2, color: "white", WebkitTextStroke: "2px black", paintOrder: "stroke fill", pointerEvents: "none", letterSpacing: 1, children: /* @__PURE__ */ a(gl, {}) }), t[0] = e) : e = t[0], e;
1307
+ return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ r(he, { position: "absolute", left: 0, bottom: 0, p: 2, color: "white", WebkitTextStroke: "2px black", paintOrder: "stroke fill", pointerEvents: "none", letterSpacing: 1, children: /* @__PURE__ */ r(gl, {}) }), t[0] = e) : e = t[0], e;
1312
1308
  }), bl = () => {
1313
- const t = y(4), e = U();
1309
+ const t = x(2), e = j();
1314
1310
  let o;
1315
- t[0] !== e?.links$ ? (o = () => e?.links$.subscribe(Sl), t[0] = e?.links$, t[1] = o) : o = t[1];
1316
- let n;
1317
- t[2] !== e ? (n = [e], t[2] = e, t[3] = n) : n = t[3], pe(o, n);
1311
+ t[0] !== e?.links$ ? (o = () => e?.links$.subscribe(Sl), t[0] = e?.links$, t[1] = o) : o = t[1], pe(o);
1318
1312
  };
1319
1313
  function Sl(t) {
1320
1314
  if (t.type === "click" && Fn(t.target, "a")) {
@@ -1325,15 +1319,15 @@ function Sl(t) {
1325
1319
  }
1326
1320
  }
1327
1321
  const _l = () => {
1328
- const t = y(4);
1322
+ const t = x(3);
1329
1323
  let e;
1330
1324
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["notificationsSubject"], t[0] = e) : e = t[0];
1331
1325
  const {
1332
1326
  notificationsSubject: o
1333
1327
  } = oe(e);
1334
- let n, l;
1328
+ let n;
1335
1329
  t[1] !== o ? (n = () => o.pipe(Xe(Et), zn((i) => {
1336
- const s = i.duration ?? 3e3, r = new Rn((f) => {
1330
+ const s = i.duration ?? 3e3, a = new Rn((f) => {
1337
1331
  try {
1338
1332
  queueMicrotask(() => {
1339
1333
  const u = vt.create({
@@ -1347,83 +1341,83 @@ const _l = () => {
1347
1341
  const d = u;
1348
1342
  f.error(d);
1349
1343
  }
1350
- }), c = o.pipe(wn(1), Xe((f) => !!i.key && f?.key === i.key));
1351
- return r.pipe(be((f) => Nt(Ht(s), i.abort ?? ft, c).pipe(Lt(), Mn(() => {
1344
+ }), c = o.pipe(Mn(1), Xe((f) => !!i.key && f?.key === i.key));
1345
+ return a.pipe(be((f) => Nt(Ht(s), i.abort ?? ft, c).pipe(Lt(), wn(() => {
1352
1346
  queueMicrotask(() => {
1353
1347
  vt.dismiss(f);
1354
1348
  });
1355
1349
  }))));
1356
- })), l = [o], t[1] = o, t[2] = n, t[3] = l) : (n = t[2], l = t[3]), pe(n, l);
1350
+ })), t[1] = o, t[2] = n) : n = t[2], pe(n);
1357
1351
  }, vl = se.forwardRef(function(e, o) {
1358
- const n = y(26);
1359
- let l, i, s, r, c, f;
1352
+ const n = x(26);
1353
+ let l, i, s, a, c, f;
1360
1354
  n[0] !== e ? ({
1361
1355
  showArrow: c,
1362
1356
  children: l,
1363
1357
  portalled: f,
1364
1358
  content: i,
1365
1359
  portalRef: s,
1366
- ...r
1367
- } = e, n[0] = e, n[1] = l, n[2] = i, n[3] = s, n[4] = r, n[5] = c, n[6] = f) : (l = n[1], i = n[2], s = n[3], r = n[4], c = n[5], f = n[6]);
1360
+ ...a
1361
+ } = e, n[0] = e, n[1] = l, n[2] = i, n[3] = s, n[4] = a, n[5] = c, n[6] = f) : (l = n[1], i = n[2], s = n[3], a = n[4], c = n[5], f = n[6]);
1368
1362
  const u = f === void 0 ? !0 : f;
1369
1363
  let d;
1370
- n[7] !== r.positioning ? (d = {
1371
- ...r.positioning,
1364
+ n[7] !== a.positioning ? (d = {
1365
+ ...a.positioning,
1372
1366
  gutter: 4
1373
- }, n[7] = r.positioning, n[8] = d) : d = n[8];
1367
+ }, n[7] = a.positioning, n[8] = d) : d = n[8];
1374
1368
  let h;
1375
- n[9] !== l ? (h = /* @__PURE__ */ a(He.Trigger, { asChild: !0, children: l }), n[9] = l, n[10] = h) : h = n[10];
1369
+ n[9] !== l ? (h = /* @__PURE__ */ r(He.Trigger, { asChild: !0, children: l }), n[9] = l, n[10] = h) : h = n[10];
1376
1370
  const m = !u;
1377
1371
  let g;
1378
- n[11] !== c ? (g = c && /* @__PURE__ */ a(He.Arrow, { children: /* @__PURE__ */ a(He.ArrowTip, {}) }), n[11] = c, n[12] = g) : g = n[12];
1379
- let p;
1380
- n[13] !== i || n[14] !== o || n[15] !== g ? (p = /* @__PURE__ */ a(He.Positioner, { children: /* @__PURE__ */ x(He.Content, { width: "auto", px: "2", py: "1", textStyle: "xs", rounded: "sm", ref: o, children: [
1372
+ n[11] !== c ? (g = c && /* @__PURE__ */ r(He.Arrow, { children: /* @__PURE__ */ r(He.ArrowTip, {}) }), n[11] = c, n[12] = g) : g = n[12];
1373
+ let b;
1374
+ n[13] !== i || n[14] !== o || n[15] !== g ? (b = /* @__PURE__ */ r(He.Positioner, { children: /* @__PURE__ */ C(He.Content, { width: "auto", px: "2", py: "1", textStyle: "xs", rounded: "sm", ref: o, children: [
1381
1375
  g,
1382
1376
  i
1383
- ] }) }), n[13] = i, n[14] = o, n[15] = g, n[16] = p) : p = n[16];
1384
- let b;
1385
- n[17] !== s || n[18] !== m || n[19] !== p ? (b = /* @__PURE__ */ a(ct, { disabled: m, container: s, children: p }), n[17] = s, n[18] = m, n[19] = p, n[20] = b) : b = n[20];
1377
+ ] }) }), n[13] = i, n[14] = o, n[15] = g, n[16] = b) : b = n[16];
1378
+ let p;
1379
+ n[17] !== s || n[18] !== m || n[19] !== b ? (p = /* @__PURE__ */ r(ct, { disabled: m, container: s, children: b }), n[17] = s, n[18] = m, n[19] = b, n[20] = p) : p = n[20];
1386
1380
  let S;
1387
- return n[21] !== r || n[22] !== d || n[23] !== h || n[24] !== b ? (S = /* @__PURE__ */ x(He.Root, { ...r, positioning: d, children: [
1381
+ return n[21] !== a || n[22] !== d || n[23] !== h || n[24] !== p ? (S = /* @__PURE__ */ C(He.Root, { ...a, positioning: d, children: [
1388
1382
  h,
1389
- b
1390
- ] }), n[21] = r, n[22] = d, n[23] = h, n[24] = b, n[25] = S) : S = n[25], S;
1383
+ p
1384
+ ] }), n[21] = a, n[22] = d, n[23] = h, n[24] = p, n[25] = S) : S = n[25], S;
1391
1385
  }), Cl = se.forwardRef(function(e, o) {
1392
- const n = y(8);
1386
+ const n = x(8);
1393
1387
  let l, i;
1394
1388
  n[0] !== e ? ({
1395
1389
  children: l,
1396
1390
  ...i
1397
1391
  } = e, n[0] = e, n[1] = l, n[2] = i) : (l = n[1], i = n[2]);
1398
1392
  let s;
1399
- n[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ a(ee, { variant: "ghost", "aria-label": "info", size: "2xs", colorPalette: "gray", children: /* @__PURE__ */ a(Xn, {}) }), n[3] = s) : s = n[3];
1400
- let r;
1401
- return n[4] !== l || n[5] !== o || n[6] !== i ? (r = /* @__PURE__ */ a(vl, { content: l, ...i, ref: o, children: s }), n[4] = l, n[5] = o, n[6] = i, n[7] = r) : r = n[7], r;
1393
+ n[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(ee, { variant: "ghost", "aria-label": "info", size: "2xs", colorPalette: "gray", children: /* @__PURE__ */ r(Xn, {}) }), n[3] = s) : s = n[3];
1394
+ let a;
1395
+ return n[4] !== l || n[5] !== o || n[6] !== i ? (a = /* @__PURE__ */ r(vl, { content: l, ...i, ref: o, children: s }), n[4] = l, n[5] = o, n[6] = i, n[7] = a) : a = n[7], a;
1402
1396
  }), xl = se.forwardRef(function(e, o) {
1403
- const n = y(4);
1397
+ const n = x(4);
1404
1398
  let l;
1405
- n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ a(Ze.Range, {}), n[0] = l) : l = n[0];
1399
+ n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ r(Ze.Range, {}), n[0] = l) : l = n[0];
1406
1400
  let i;
1407
- return n[1] !== e || n[2] !== o ? (i = /* @__PURE__ */ a(Ze.Track, { ...e, ref: o, children: l }), n[1] = e, n[2] = o, n[3] = i) : i = n[3], i;
1401
+ return n[1] !== e || n[2] !== o ? (i = /* @__PURE__ */ r(Ze.Track, { ...e, ref: o, children: l }), n[1] = e, n[2] = o, n[3] = i) : i = n[3], i;
1408
1402
  });
1409
1403
  se.forwardRef(function(e, o) {
1410
- const n = y(11);
1404
+ const n = x(11);
1411
1405
  let l, i, s;
1412
1406
  n[0] !== e ? ({
1413
1407
  children: l,
1414
1408
  info: i,
1415
1409
  ...s
1416
1410
  } = e, n[0] = e, n[1] = l, n[2] = i, n[3] = s) : (l = n[1], i = n[2], s = n[3]);
1417
- let r;
1418
- n[4] !== i ? (r = i && /* @__PURE__ */ a(Cl, { children: i }), n[4] = i, n[5] = r) : r = n[5];
1411
+ let a;
1412
+ n[4] !== i ? (a = i && /* @__PURE__ */ r(Cl, { children: i }), n[4] = i, n[5] = a) : a = n[5];
1419
1413
  let c;
1420
- return n[6] !== l || n[7] !== o || n[8] !== s || n[9] !== r ? (c = /* @__PURE__ */ x(Ze.Label, { ...s, ref: o, children: [
1414
+ return n[6] !== l || n[7] !== o || n[8] !== s || n[9] !== a ? (c = /* @__PURE__ */ C(Ze.Label, { ...s, ref: o, children: [
1421
1415
  l,
1422
- r
1423
- ] }), n[6] = l, n[7] = o, n[8] = s, n[9] = r, n[10] = c) : c = n[10], c;
1416
+ a
1417
+ ] }), n[6] = l, n[7] = o, n[8] = s, n[9] = a, n[10] = c) : c = n[10], c;
1424
1418
  });
1425
1419
  const yl = Ze.Root, kl = Ze.ValueText, Ot = () => {
1426
- const t = Ge(), e = t?.numberOfTotalPages === 1, o = (t?.beginNumberOfPagesInSpineItem ?? 0) > 1, n = (t?.endNumberOfPagesInSpineItem ?? 0) > 1, l = (t?.hasChapters ? t?.beginPageIndexInSpineItem : t?.beginAbsolutePageIndex) ?? 0, i = (t?.hasChapters ? t?.endPageIndexInSpineItem : t?.endAbsolutePageIndex) ?? 0, [s = 0, r = 0] = [l, i].sort((u, d) => u - d), c = t?.beginPageIndexInSpineItem !== t?.endPageIndexInSpineItem || t?.beginSpineItemIndex !== t?.endSpineItemIndex, f = t?.hasChapters ? t?.beginNumberOfPagesInSpineItem : t?.numberOfTotalPages;
1420
+ const t = Ge(), e = t?.numberOfTotalPages === 1, o = (t?.beginNumberOfPagesInSpineItem ?? 0) > 1, n = (t?.endNumberOfPagesInSpineItem ?? 0) > 1, l = (t?.hasChapters ? t?.beginPageIndexInSpineItem : t?.beginAbsolutePageIndex) ?? 0, i = (t?.hasChapters ? t?.endPageIndexInSpineItem : t?.endAbsolutePageIndex) ?? 0, [s = 0, a = 0] = [l, i].sort((u, d) => u - d), c = t?.beginPageIndexInSpineItem !== t?.endPageIndexInSpineItem || t?.beginSpineItemIndex !== t?.endSpineItemIndex, f = t?.hasChapters ? t?.beginNumberOfPagesInSpineItem : t?.numberOfTotalPages;
1427
1421
  return {
1428
1422
  hasOnlyOnePage: e,
1429
1423
  beginPageIndex: l,
@@ -1433,45 +1427,45 @@ const yl = Ze.Root, kl = Ze.ValueText, Ot = () => {
1433
1427
  beginAndEndAreDifferent: c,
1434
1428
  totalApproximatePages: f,
1435
1429
  leftPageIndex: s,
1436
- rightPageIndex: r
1430
+ rightPageIndex: a
1437
1431
  };
1438
- }, Il = () => {
1439
- const t = y(24), e = Ge(), {
1432
+ }, $l = () => {
1433
+ const t = x(24), e = Ge(), {
1440
1434
  hasOnlyOnePage: o,
1441
1435
  leftPageIndex: n,
1442
1436
  rightPageIndex: l,
1443
1437
  totalApproximatePages: i,
1444
1438
  beginAndEndAreDifferent: s
1445
1439
  } = Ot();
1446
- let r;
1447
- t[0] !== e?.percentageEstimateOfBook ? (r = Math.round((e?.percentageEstimateOfBook ?? 0) * 100), t[0] = e?.percentageEstimateOfBook, t[1] = r) : r = t[1];
1448
- const c = r;
1440
+ let a;
1441
+ t[0] !== e?.percentageEstimateOfBook ? (a = Math.round((e?.percentageEstimateOfBook ?? 0) * 100), t[0] = e?.percentageEstimateOfBook, t[1] = a) : a = t[1];
1442
+ const c = a;
1449
1443
  let f;
1450
1444
  if (t[2] !== e?.beginChapterInfo) {
1451
- const v = (C) => C?.subChapter ? `${C.title} / ${v(C.subChapter)}` : C?.title || "";
1445
+ const v = (y) => y?.subChapter ? `${y.title} / ${v(y.subChapter)}` : y?.title || "";
1452
1446
  f = v(e?.beginChapterInfo), t[2] = e?.beginChapterInfo, t[3] = f;
1453
1447
  } else
1454
1448
  f = t[3];
1455
1449
  const u = f;
1456
1450
  let d;
1457
- t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ a(xl, { width: 110 }), t[4] = d) : d = t[4];
1451
+ t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ r(xl, { width: 110 }), t[4] = d) : d = t[4];
1458
1452
  const h = `${c}%`;
1459
1453
  let m;
1460
- t[5] !== h ? (m = /* @__PURE__ */ x(ge, { justifyContent: "space-between", children: [
1454
+ t[5] !== h ? (m = /* @__PURE__ */ C(ge, { justifyContent: "space-between", children: [
1461
1455
  d,
1462
- /* @__PURE__ */ a(kl, { children: h })
1456
+ /* @__PURE__ */ r(kl, { children: h })
1463
1457
  ] }), t[5] = h, t[6] = m) : m = t[6];
1464
1458
  let g;
1465
- t[7] !== c || t[8] !== m ? (g = /* @__PURE__ */ a(yl, { value: c, size: "xs", width: 150, children: m }), t[7] = c, t[8] = m, t[9] = g) : g = t[9];
1466
- const p = u ? `Chapter: ${u}` : " ";
1467
- let b;
1468
- t[10] !== p ? (b = /* @__PURE__ */ a(q, { truncate: !0, maxWidth: "100%", fontSize: "sm", mt: 1, children: p }), t[10] = p, t[11] = b) : b = t[11];
1459
+ t[7] !== c || t[8] !== m ? (g = /* @__PURE__ */ r(yl, { value: c, size: "xs", width: 150, children: m }), t[7] = c, t[8] = m, t[9] = g) : g = t[9];
1460
+ const b = u ? `Chapter: ${u}` : " ";
1461
+ let p;
1462
+ t[10] !== b ? (p = /* @__PURE__ */ r(q, { truncate: !0, maxWidth: "100%", fontSize: "sm", mt: 1, children: b }), t[10] = b, t[11] = p) : p = t[11];
1469
1463
  let S;
1470
- t[12] !== s || t[13] !== o || t[14] !== n || t[15] !== e?.beginAbsolutePageIndex || t[16] !== e?.hasChapters || t[17] !== l || t[18] !== i ? (S = !o && /* @__PURE__ */ x(ge, { children: [
1471
- /* @__PURE__ */ a(q, { fontSize: "xs", children: s ? `${n + 1} - ${l + 1} of ${i}` : `${n + 1} of ${i}` }),
1472
- !!e?.hasChapters && /* @__PURE__ */ x(et, { children: [
1473
- /* @__PURE__ */ a(q, { children: "-" }),
1474
- /* @__PURE__ */ x(q, { fontSize: "xs", children: [
1464
+ t[12] !== s || t[13] !== o || t[14] !== n || t[15] !== e?.beginAbsolutePageIndex || t[16] !== e?.hasChapters || t[17] !== l || t[18] !== i ? (S = !o && /* @__PURE__ */ C(ge, { children: [
1465
+ /* @__PURE__ */ r(q, { fontSize: "xs", children: s ? `${n + 1} - ${l + 1} of ${i}` : `${n + 1} of ${i}` }),
1466
+ !!e?.hasChapters && /* @__PURE__ */ C(et, { children: [
1467
+ /* @__PURE__ */ r(q, { children: "-" }),
1468
+ /* @__PURE__ */ C(q, { fontSize: "xs", children: [
1475
1469
  "(",
1476
1470
  (e?.beginAbsolutePageIndex ?? 0) + 1,
1477
1471
  ")"
@@ -1479,13 +1473,13 @@ const yl = Ze.Root, kl = Ze.ValueText, Ot = () => {
1479
1473
  ] })
1480
1474
  ] }), t[12] = s, t[13] = o, t[14] = n, t[15] = e?.beginAbsolutePageIndex, t[16] = e?.hasChapters, t[17] = l, t[18] = i, t[19] = S) : S = t[19];
1481
1475
  let _;
1482
- return t[20] !== g || t[21] !== b || t[22] !== S ? (_ = /* @__PURE__ */ x(J, { alignItems: "center", gap: 1, maxW: "100%", overflow: "auto", children: [
1476
+ return t[20] !== g || t[21] !== p || t[22] !== S ? (_ = /* @__PURE__ */ C(J, { alignItems: "center", gap: 1, maxW: "100%", overflow: "auto", children: [
1483
1477
  g,
1484
- b,
1478
+ p,
1485
1479
  S
1486
- ] }), t[20] = g, t[21] = b, t[22] = S, t[23] = _) : _ = t[23], _;
1487
- }, Xt = w((t) => {
1488
- const e = y(12);
1480
+ ] }), t[20] = g, t[21] = p, t[22] = S, t[23] = _) : _ = t[23], _;
1481
+ }, Xt = M((t) => {
1482
+ const e = x(12);
1489
1483
  let o, n, l;
1490
1484
  e[0] !== t ? ({
1491
1485
  children: o,
@@ -1504,10 +1498,10 @@ const yl = Ze.Root, kl = Ze.ValueText, Ot = () => {
1504
1498
  _open: "slide-from-top, fade-in",
1505
1499
  _closed: "slide-to-top, fade-out"
1506
1500
  }, e[4] = n, e[5] = i, e[6] = s) : (i = e[5], s = e[6]);
1507
- let r;
1508
- return e[7] !== o || e[8] !== l || e[9] !== i || e[10] !== s ? (r = /* @__PURE__ */ a(tt, { display: "flex", flexDirection: "row", width: "100%", position: "absolute", ...i, animationName: s, animationDuration: "moderate", bgColor: "bg.panel", alignItems: "center", justifyContent: "center", shadow: "md", p: 4, ...l, children: o }), e[7] = o, e[8] = l, e[9] = i, e[10] = s, e[11] = r) : r = e[11], r;
1509
- }), $l = sn(Jn), Ol = w((t) => {
1510
- const e = y(10);
1501
+ let a;
1502
+ return e[7] !== o || e[8] !== l || e[9] !== i || e[10] !== s ? (a = /* @__PURE__ */ r(tt, { display: "flex", flexDirection: "row", width: "100%", position: "absolute", ...i, animationName: s, animationDuration: "moderate", bgColor: "bg.panel", alignItems: "center", justifyContent: "center", shadow: "md", p: 4, ...l, children: o }), e[7] = o, e[8] = l, e[9] = i, e[10] = s, e[11] = a) : a = e[11], a;
1503
+ }), Il = sn(Jn), Ol = M((t) => {
1504
+ const e = x(10);
1511
1505
  let o;
1512
1506
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = {
1513
1507
  "--bg": "colors.bg",
@@ -1538,9 +1532,9 @@ const yl = Ze.Root, kl = Ze.ValueText, Ot = () => {
1538
1532
  transform: "translateY(-50%)",
1539
1533
  backgroundColor: "var(--color-solid)"
1540
1534
  }, e[1] = n, e[2] = l, e[3] = i, e[4] = s) : (n = e[1], l = e[2], i = e[3], s = e[4]);
1541
- const r = `translate(${t.reverse ? "50%" : "-50%"}, -50%)`;
1535
+ const a = `translate(${t.reverse ? "50%" : "-50%"}, -50%)`;
1542
1536
  let c;
1543
- e[5] !== r ? (c = {
1537
+ e[5] !== a ? (c = {
1544
1538
  rail: i,
1545
1539
  track: s,
1546
1540
  handle: {
@@ -1548,23 +1542,23 @@ const yl = Ze.Root, kl = Ze.ValueText, Ot = () => {
1548
1542
  height: "24px",
1549
1543
  top: "50%",
1550
1544
  borderColor: "var(--color-solid)",
1551
- transform: r,
1545
+ transform: a,
1552
1546
  backgroundColor: "var(--bg)",
1553
1547
  marginTop: "0px"
1554
1548
  }
1555
- }, e[5] = r, e[6] = c) : c = e[6];
1549
+ }, e[5] = a, e[6] = c) : c = e[6];
1556
1550
  let f;
1557
- return e[7] !== t || e[8] !== c ? (f = /* @__PURE__ */ a(he, { display: "contents", css: o, children: /* @__PURE__ */ a($l, { keyboard: !1, style: n, css: l, styles: c, ...t }) }), e[7] = t, e[8] = c, e[9] = f) : f = e[9], f;
1551
+ return e[7] !== t || e[8] !== c ? (f = /* @__PURE__ */ r(he, { display: "contents", css: o, children: /* @__PURE__ */ r(Il, { keyboard: !1, style: n, css: l, styles: c, ...t }) }), e[7] = t, e[8] = c, e[9] = f) : f = e[9], f;
1558
1552
  }), Tl = () => {
1559
- const t = y(10), o = Ge()?.isUsingSpread, {
1553
+ const t = x(10), o = Ge()?.isUsingSpread, {
1560
1554
  beginPageIndex: n,
1561
1555
  totalApproximatePages: l
1562
1556
  } = Ot(), i = l === void 0 ? 0 : l, s = o ? Math.floor((n || 0) / 2) : n;
1563
- let r;
1564
- t[0] !== s ? (r = () => Ve({
1557
+ let a;
1558
+ t[0] !== s ? (a = () => Ve({
1565
1559
  default: s || 0
1566
- }), t[0] = s, t[1] = r) : r = t[1];
1567
- const [c, f] = On(r), u = Math.max(0, o ? Math.floor((i - 1) / 2) : i - 1);
1560
+ }), t[0] = s, t[1] = a) : a = t[1];
1561
+ const [c, f] = On(a), u = Math.max(0, o ? Math.floor((i - 1) / 2) : i - 1);
1568
1562
  let d, h;
1569
1563
  t[2] !== s || t[3] !== f ? (d = () => {
1570
1564
  f.update(s || 0);
@@ -1577,60 +1571,58 @@ const yl = Ze.Root, kl = Ze.ValueText, Ot = () => {
1577
1571
  max: u
1578
1572
  }, t[6] = u, t[7] = c, t[8] = f, t[9] = m) : m = t[9], m;
1579
1573
  }, zl = (t) => {
1580
- const e = y(24), o = U(), n = Ge(), {
1574
+ const e = x(21), o = j(), n = Ge(), {
1581
1575
  data: l
1582
- } = j(() => o?.context, [o]) ?? {};
1576
+ } = U(() => o?.context, [o]) ?? {};
1583
1577
  let i;
1584
1578
  e[0] !== l ? (i = l === void 0 ? {} : l, e[0] = l, e[1] = i) : i = e[1];
1585
1579
  const {
1586
1580
  manifest: s
1587
- } = i, r = s?.readingDirection === "rtl", c = n?.isUsingSpread, {
1581
+ } = i, a = s?.readingDirection === "rtl", c = n?.isUsingSpread, {
1588
1582
  totalApproximatePages: f,
1589
1583
  isBeginWithinChapter: u
1590
1584
  } = Ot(), d = f === void 0 ? 0 : f, h = u, {
1591
1585
  value: m,
1592
1586
  valueSignal: g,
1593
- min: p,
1594
- max: b
1587
+ min: b,
1588
+ max: p
1595
1589
  } = Tl();
1596
1590
  let S;
1597
- e[2] !== h || e[3] !== c || e[4] !== o || e[5] !== g ? (S = (O) => {
1598
- const [z] = Array.isArray(O) ? O : [O], E = z === void 0 ? 0 : z;
1599
- g.update(E);
1600
- const T = c ? Math.floor(E) * 2 : Math.floor(E);
1591
+ e[2] !== h || e[3] !== c || e[4] !== o || e[5] !== g ? (S = (R) => {
1592
+ const [z] = Array.isArray(R) ? R : [R], L = z === void 0 ? 0 : z;
1593
+ g.update(L);
1594
+ const O = c ? Math.floor(L) * 2 : Math.floor(L);
1601
1595
  h ? o?.navigation.goToPageOfSpineItem({
1602
- pageIndex: T,
1596
+ pageIndex: O,
1603
1597
  spineItemId: o.pagination.state.beginSpineItemIndex ?? 0,
1604
1598
  animation: !1
1605
1599
  }) : o?.navigation.goToAbsolutePageIndex({
1606
- absolutePageIndex: T,
1600
+ absolutePageIndex: O,
1607
1601
  animation: !1
1608
1602
  });
1609
1603
  }, e[2] = h, e[3] = c, e[4] = o, e[5] = g, e[6] = S) : S = e[6];
1610
1604
  const _ = S;
1611
1605
  let v;
1612
- e[7] !== o?.navigation || e[8] !== g.subject ? (v = () => o?.navigation.throttleLock({
1606
+ if (e[7] !== o?.navigation || e[8] !== g.subject ? (v = () => o?.navigation.throttleLock({
1613
1607
  duration: 100,
1614
1608
  trigger: g.subject
1615
- }), e[7] = o?.navigation, e[8] = g.subject, e[9] = v) : v = e[9];
1616
- let C;
1617
- if (e[10] !== o || e[11] !== g ? (C = [o, g], e[10] = o, e[11] = g, e[12] = C) : C = e[12], pe(v, C), d === 1 || c && d === 2) {
1618
- let O;
1619
- return e[13] !== t.style ? (O = /* @__PURE__ */ a(he, { style: t.style }), e[13] = t.style, e[14] = O) : O = e[14], O;
1609
+ }), e[7] = o?.navigation, e[8] = g.subject, e[9] = v) : v = e[9], pe(v), d === 1 || c && d === 2) {
1610
+ let R;
1611
+ return e[10] !== t.style ? (R = /* @__PURE__ */ r(he, { style: t.style }), e[10] = t.style, e[11] = R) : R = e[11], R;
1620
1612
  }
1621
1613
  let k;
1622
- e[15] !== m ? (k = [m], e[15] = m, e[16] = k) : k = e[16];
1623
- let $;
1624
- return e[17] !== b || e[18] !== p || e[19] !== _ || e[20] !== t || e[21] !== r || e[22] !== k ? ($ = /* @__PURE__ */ a(Ol, { value: k, max: b, min: p, reverse: r, step: 1, onChange: _, ...t }), e[17] = b, e[18] = p, e[19] = _, e[20] = t, e[21] = r, e[22] = k, e[23] = $) : $ = e[23], $;
1625
- }, Rl = w((t) => {
1626
- const e = y(106), {
1614
+ e[12] !== m ? (k = [m], e[12] = m, e[13] = k) : k = e[13];
1615
+ let I;
1616
+ return e[14] !== p || e[15] !== b || e[16] !== _ || e[17] !== t || e[18] !== a || e[19] !== k ? (I = /* @__PURE__ */ r(Ol, { value: k, max: p, min: b, reverse: a, step: 1, onChange: _, ...t }), e[14] = p, e[15] = b, e[16] = _, e[17] = t, e[18] = a, e[19] = k, e[20] = I) : I = e[20], I;
1617
+ }, Rl = M((t) => {
1618
+ const e = x(106), {
1627
1619
  open: o,
1628
1620
  onItemClick: n
1629
- } = t, l = dn(null), i = U();
1621
+ } = t, l = dn(null), i = j();
1630
1622
  let s;
1631
1623
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = ["quickMenuBottomBarBoundingBoxSignal", "onFontSizeMenuOpenChange", "onRefitMenuOpenChange"], e[0] = s) : s = e[0];
1632
1624
  const {
1633
- quickMenuBottomBarBoundingBoxSignal: r,
1625
+ quickMenuBottomBarBoundingBoxSignal: a,
1634
1626
  onFontSizeMenuOpenChange: c,
1635
1627
  onRefitMenuOpenChange: f
1636
1628
  } = oe(s);
@@ -1640,46 +1632,46 @@ const yl = Ze.Root, kl = Ze.ValueText, Ot = () => {
1640
1632
  e[3] !== i ? (d = [i], e[3] = i, e[4] = d) : d = e[4];
1641
1633
  const {
1642
1634
  data: h
1643
- } = j(u, d);
1635
+ } = U(u, d);
1644
1636
  let m;
1645
1637
  e[5] !== i?.settings.values$ ? (m = () => i?.settings.values$, e[5] = i?.settings.values$, e[6] = m) : m = e[6];
1646
1638
  let g;
1647
1639
  e[7] !== i ? (g = [i], e[7] = i, e[8] = g) : g = e[8];
1648
1640
  const {
1649
- data: p
1650
- } = j(m, g);
1651
- let b;
1652
- e[9] !== i?.zoom.state$ ? (b = () => i?.zoom.state$.pipe(ne(wl)), e[9] = i?.zoom.state$, e[10] = b) : b = e[10];
1641
+ data: b
1642
+ } = U(m, g);
1643
+ let p;
1644
+ e[9] !== i?.zoom.state$ ? (p = () => i?.zoom.state$.pipe(ne(Ml)), e[9] = i?.zoom.state$, e[10] = p) : p = e[10];
1653
1645
  let S;
1654
1646
  e[11] !== i ? (S = [i], e[11] = i, e[12] = S) : S = e[12];
1655
1647
  const {
1656
1648
  data: _
1657
- } = j(b, S), v = _ === "in", C = _ === "out", I = p?.computedPageTurnMode === "scrollable", k = p?.computedPageTurnDirection === "vertical", [$, O] = le(!0);
1658
- let z, E;
1659
- e[13] !== r ? (z = () => {
1649
+ } = U(p, S), v = _ === "in", y = _ === "out", $ = b?.computedPageTurnMode === "scrollable", k = b?.computedPageTurnDirection === "vertical", [I, R] = le(!0);
1650
+ let z, L;
1651
+ e[13] !== a ? (z = () => {
1660
1652
  if (!l.current)
1661
1653
  return;
1662
1654
  const st = new ResizeObserver((ht) => {
1663
1655
  for (const Jt of ht)
1664
- r.update(Jt);
1656
+ a.update(Jt);
1665
1657
  });
1666
1658
  return st.observe(l.current), () => {
1667
1659
  st.disconnect();
1668
1660
  };
1669
- }, E = [r], e[13] = r, e[14] = z, e[15] = E) : (z = e[14], E = e[15]), ce(z, E);
1670
- let T;
1671
- e[16] !== i?.navigation ? (T = () => i?.navigation.goToLeftOrTopSpineItem(), e[16] = i?.navigation, e[17] = T) : T = e[17];
1661
+ }, L = [a], e[13] = a, e[14] = z, e[15] = L) : (z = e[14], L = e[15]), ce(z, L);
1662
+ let O;
1663
+ e[16] !== i?.navigation ? (O = () => i?.navigation.goToLeftOrTopSpineItem(), e[16] = i?.navigation, e[17] = O) : O = e[17];
1672
1664
  const N = !h?.canGoLeftSpineItem && !h?.canGoTopSpineItem;
1673
- let M;
1674
- e[18] !== k ? (M = k ? /* @__PURE__ */ a(Qn, {}) : /* @__PURE__ */ a(Yn, {}), e[18] = k, e[19] = M) : M = e[19];
1665
+ let w;
1666
+ e[18] !== k ? (w = k ? /* @__PURE__ */ r(Qn, {}) : /* @__PURE__ */ r(Yn, {}), e[18] = k, e[19] = w) : w = e[19];
1675
1667
  let H;
1676
- e[20] !== T || e[21] !== N || e[22] !== M ? (H = /* @__PURE__ */ a(ee, { "aria-label": "left", size: "lg", variant: "ghost", flexShrink: 0, onClick: T, disabled: N, children: M }), e[20] = T, e[21] = N, e[22] = M, e[23] = H) : H = e[23];
1668
+ e[20] !== O || e[21] !== N || e[22] !== w ? (H = /* @__PURE__ */ r(ee, { "aria-label": "left", size: "lg", variant: "ghost", flexShrink: 0, onClick: O, disabled: N, children: w }), e[20] = O, e[21] = N, e[22] = w, e[23] = H) : H = e[23];
1677
1669
  let Q;
1678
- e[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = /* @__PURE__ */ a(Il, {}), e[24] = Q) : Q = e[24];
1670
+ e[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = /* @__PURE__ */ r($l, {}), e[24] = Q) : Q = e[24];
1679
1671
  let K;
1680
- e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (K = /* @__PURE__ */ x(J, { flex: 1, maxW: 400, gap: 2, alignItems: "center", overflow: "auto", px: 4, children: [
1672
+ e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (K = /* @__PURE__ */ C(J, { flex: 1, maxW: 400, gap: 2, alignItems: "center", overflow: "auto", px: 4, children: [
1681
1673
  Q,
1682
- /* @__PURE__ */ a(zl, { style: {
1674
+ /* @__PURE__ */ r(zl, { style: {
1683
1675
  width: "100%",
1684
1676
  maxWidth: "300px",
1685
1677
  height: "35px"
@@ -1691,41 +1683,41 @@ const yl = Ze.Root, kl = Ze.ValueText, Ot = () => {
1691
1683
  i?.navigation.goToRightOrBottomSpineItem();
1692
1684
  }, e[26] = i?.navigation, e[27] = W) : W = e[27];
1693
1685
  let G;
1694
- e[28] !== k ? (G = k ? /* @__PURE__ */ a(Zn, {}) : /* @__PURE__ */ a(Kn, {}), e[28] = k, e[29] = G) : G = e[29];
1695
- let F;
1696
- e[30] !== V || e[31] !== W || e[32] !== G ? (F = /* @__PURE__ */ a(ee, { "aria-label": "right", size: "lg", flexShrink: 0, variant: "ghost", disabled: V, onClick: W, children: G }), e[30] = V, e[31] = W, e[32] = G, e[33] = F) : F = e[33];
1686
+ e[28] !== k ? (G = k ? /* @__PURE__ */ r(Zn, {}) : /* @__PURE__ */ r(Kn, {}), e[28] = k, e[29] = G) : G = e[29];
1687
+ let D;
1688
+ e[30] !== V || e[31] !== W || e[32] !== G ? (D = /* @__PURE__ */ r(ee, { "aria-label": "right", size: "lg", flexShrink: 0, variant: "ghost", disabled: V, onClick: W, children: G }), e[30] = V, e[31] = W, e[32] = G, e[33] = D) : D = e[33];
1697
1689
  let P;
1698
- e[34] !== H || e[35] !== F ? (P = /* @__PURE__ */ x(ge, { flex: 1, alignItems: "center", justifyContent: "center", maxWidth: "100%", px: 4, children: [
1690
+ e[34] !== H || e[35] !== D ? (P = /* @__PURE__ */ C(ge, { flex: 1, alignItems: "center", justifyContent: "center", maxWidth: "100%", px: 4, children: [
1699
1691
  H,
1700
1692
  K,
1701
- F
1702
- ] }), e[34] = H, e[35] = F, e[36] = P) : P = e[36];
1693
+ D
1694
+ ] }), e[34] = H, e[35] = D, e[36] = P) : P = e[36];
1703
1695
  let Y;
1704
1696
  e[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = (st) => {
1705
1697
  const {
1706
1698
  open: ht
1707
1699
  } = st;
1708
- O(ht);
1700
+ R(ht);
1709
1701
  }, e[37] = Y) : Y = e[37];
1710
- const Z = $ ? "rotate(0deg)" : "rotate(180deg)";
1702
+ const Z = I ? "rotate(0deg)" : "rotate(180deg)";
1711
1703
  let A;
1712
- e[38] !== Z ? (A = /* @__PURE__ */ a(gt.Trigger, { paddingY: "3", width: "100%", display: "flex", justifyContent: "center", children: /* @__PURE__ */ a(Sn, { style: {
1704
+ e[38] !== Z ? (A = /* @__PURE__ */ r(gt.Trigger, { paddingY: "3", width: "100%", display: "flex", justifyContent: "center", children: /* @__PURE__ */ r(Sn, { style: {
1713
1705
  transform: Z
1714
1706
  } }) }), e[38] = Z, e[39] = A) : A = e[39];
1715
- let L;
1716
- e[40] !== n ? (L = () => n("help"), e[40] = n, e[41] = L) : L = e[41];
1707
+ let F;
1708
+ e[40] !== n ? (F = () => n("help"), e[40] = n, e[41] = F) : F = e[41];
1717
1709
  let X;
1718
- e[42] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = /* @__PURE__ */ a(_n, {}), e[42] = X) : X = e[42];
1710
+ e[42] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = /* @__PURE__ */ r(_n, {}), e[42] = X) : X = e[42];
1711
+ let E;
1712
+ e[43] !== F ? (E = /* @__PURE__ */ r(ee, { "aria-label": "Help", size: "lg", variant: "ghost", onClick: F, children: X }), e[43] = F, e[44] = E) : E = e[44];
1719
1713
  let B;
1720
- e[43] !== L ? (B = /* @__PURE__ */ a(ee, { "aria-label": "Help", size: "lg", variant: "ghost", onClick: L, children: X }), e[43] = L, e[44] = B) : B = e[44];
1721
- let D;
1722
- e[45] !== n ? (D = () => n("toc"), e[45] = n, e[46] = D) : D = e[46];
1714
+ e[45] !== n ? (B = () => n("toc"), e[45] = n, e[46] = B) : B = e[46];
1723
1715
  let de;
1724
- e[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (de = /* @__PURE__ */ a(vn, {}), e[47] = de) : de = e[47];
1725
- let R;
1726
- e[48] !== D ? (R = /* @__PURE__ */ a(ee, { "aria-label": "Table of contents", size: "lg", variant: "ghost", onClick: D, children: de }), e[48] = D, e[49] = R) : R = e[49];
1716
+ e[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (de = /* @__PURE__ */ r(vn, {}), e[47] = de) : de = e[47];
1717
+ let T;
1718
+ e[48] !== B ? (T = /* @__PURE__ */ r(ee, { "aria-label": "Table of contents", size: "lg", variant: "ghost", onClick: B, children: de }), e[48] = B, e[49] = T) : T = e[49];
1727
1719
  let te;
1728
- e[50] !== n || e[51] !== i ? (te = jt(i) && /* @__PURE__ */ a(ee, { "aria-label": "Search", size: "lg", variant: "ghost", onClick: () => n("search"), children: /* @__PURE__ */ a(Cn, {}) }), e[50] = n, e[51] = i, e[52] = te) : te = e[52];
1720
+ e[50] !== n || e[51] !== i ? (te = Ut(i) && /* @__PURE__ */ r(ee, { "aria-label": "Search", size: "lg", variant: "ghost", onClick: () => n("search"), children: /* @__PURE__ */ r(Cn, {}) }), e[50] = n, e[51] = i, e[52] = te) : te = e[52];
1729
1721
  const qe = v ? "solid" : "ghost";
1730
1722
  let Oe;
1731
1723
  e[53] !== v || e[54] !== i?.zoom ? (Oe = () => {
@@ -1737,70 +1729,70 @@ const yl = Ze.Root, kl = Ze.ValueText, Ot = () => {
1737
1729
  });
1738
1730
  }, e[53] = v, e[54] = i?.zoom, e[55] = Oe) : Oe = e[55];
1739
1731
  let Te;
1740
- e[56] !== v ? (Te = v ? /* @__PURE__ */ a(xn, {}) : /* @__PURE__ */ a(yn, {}), e[56] = v, e[57] = Te) : Te = e[57];
1732
+ e[56] !== v ? (Te = v ? /* @__PURE__ */ r(xn, {}) : /* @__PURE__ */ r(yn, {}), e[56] = v, e[57] = Te) : Te = e[57];
1741
1733
  let ze;
1742
- e[58] !== qe || e[59] !== Oe || e[60] !== Te ? (ze = /* @__PURE__ */ a(ee, { "aria-label": "Zoom", size: "lg", variant: qe, onClick: Oe, children: Te }), e[58] = qe, e[59] = Oe, e[60] = Te, e[61] = ze) : ze = e[61];
1734
+ e[58] !== qe || e[59] !== Oe || e[60] !== Te ? (ze = /* @__PURE__ */ r(ee, { "aria-label": "Zoom", size: "lg", variant: qe, onClick: Oe, children: Te }), e[58] = qe, e[59] = Oe, e[60] = Te, e[61] = ze) : ze = e[61];
1743
1735
  let Re;
1744
1736
  e[62] !== c ? (Re = () => {
1745
1737
  c(!0);
1746
1738
  }, e[62] = c, e[63] = Re) : Re = e[63];
1747
1739
  let ot;
1748
- e[64] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ot = /* @__PURE__ */ a(Vn, {}), e[64] = ot) : ot = e[64];
1749
- let we;
1750
- e[65] !== Re ? (we = /* @__PURE__ */ a(ee, { "aria-label": "font size", size: "lg", onClick: Re, variant: "ghost", children: ot }), e[65] = Re, e[66] = we) : we = e[66];
1740
+ e[64] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ot = /* @__PURE__ */ r(Vn, {}), e[64] = ot) : ot = e[64];
1751
1741
  let Me;
1752
- e[67] !== n || e[68] !== i ? (Me = Je(i) && /* @__PURE__ */ a(ee, { "aria-label": "Bookmarks", size: "lg", variant: "ghost", onClick: () => n("bookmarks"), children: /* @__PURE__ */ a(Wn, {}) }), e[67] = n, e[68] = i, e[69] = Me) : Me = e[69];
1742
+ e[65] !== Re ? (Me = /* @__PURE__ */ r(ee, { "aria-label": "font size", size: "lg", onClick: Re, variant: "ghost", children: ot }), e[65] = Re, e[66] = Me) : Me = e[66];
1743
+ let we;
1744
+ e[67] !== n || e[68] !== i ? (we = Je(i) && /* @__PURE__ */ r(ee, { "aria-label": "Bookmarks", size: "lg", variant: "ghost", onClick: () => n("bookmarks"), children: /* @__PURE__ */ r(Wn, {}) }), e[67] = n, e[68] = i, e[69] = we) : we = e[69];
1753
1745
  let Pe;
1754
- e[70] !== n || e[71] !== i ? (Pe = Je(i) && /* @__PURE__ */ a(ee, { "aria-label": "Annotations", size: "lg", variant: "ghost", onClick: () => n("annotations"), children: /* @__PURE__ */ a(Ke, {}) }), e[70] = n, e[71] = i, e[72] = Pe) : Pe = e[72];
1746
+ e[70] !== n || e[71] !== i ? (Pe = Je(i) && /* @__PURE__ */ r(ee, { "aria-label": "Annotations", size: "lg", variant: "ghost", onClick: () => n("annotations"), children: /* @__PURE__ */ r(Ke, {}) }), e[70] = n, e[71] = i, e[72] = Pe) : Pe = e[72];
1755
1747
  let Ae;
1756
- e[73] !== I || e[74] !== f || e[75] !== i ? (Ae = Qt(i) && /* @__PURE__ */ a(ee, { "aria-label": "Refit", size: "lg", variant: "ghost", onClick: () => {
1748
+ e[73] !== $ || e[74] !== f || e[75] !== i ? (Ae = Qt(i) && /* @__PURE__ */ r(ee, { "aria-label": "Refit", size: "lg", variant: "ghost", onClick: () => {
1757
1749
  f(!0);
1758
- }, disabled: !I, children: /* @__PURE__ */ a(Gn, {}) }), e[73] = I, e[74] = f, e[75] = i, e[76] = Ae) : Ae = e[76];
1759
- const ut = C ? "solid" : "ghost";
1750
+ }, disabled: !$, children: /* @__PURE__ */ r(Gn, {}) }), e[73] = $, e[74] = f, e[75] = i, e[76] = Ae) : Ae = e[76];
1751
+ const ut = y ? "solid" : "ghost";
1760
1752
  let Ee;
1761
- e[77] !== C || e[78] !== i?.zoom ? (Ee = () => {
1762
- C ? i?.zoom.exit({
1753
+ e[77] !== y || e[78] !== i?.zoom ? (Ee = () => {
1754
+ y ? i?.zoom.exit({
1763
1755
  animate: !0
1764
1756
  }) : i?.zoom.enter({
1765
1757
  animate: !0,
1766
1758
  scale: 0.5
1767
1759
  });
1768
- }, e[77] = C, e[78] = i?.zoom, e[79] = Ee) : Ee = e[79];
1760
+ }, e[77] = y, e[78] = i?.zoom, e[79] = Ee) : Ee = e[79];
1769
1761
  let lt;
1770
- e[80] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (lt = /* @__PURE__ */ a(kn, {}), e[80] = lt) : lt = e[80];
1762
+ e[80] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (lt = /* @__PURE__ */ r(kn, {}), e[80] = lt) : lt = e[80];
1771
1763
  let Be;
1772
- e[81] !== ut || e[82] !== Ee ? (Be = /* @__PURE__ */ a(ee, { "aria-label": "Thumbnails", size: "lg", variant: ut, onClick: Ee, children: lt }), e[81] = ut, e[82] = Ee, e[83] = Be) : Be = e[83];
1764
+ e[81] !== ut || e[82] !== Ee ? (Be = /* @__PURE__ */ r(ee, { "aria-label": "Thumbnails", size: "lg", variant: ut, onClick: Ee, children: lt }), e[81] = ut, e[82] = Ee, e[83] = Be) : Be = e[83];
1773
1765
  let De;
1774
- e[84] !== n || e[85] !== i ? (De = Ut(i) && /* @__PURE__ */ a(ee, { "aria-label": "Gallery", size: "lg", variant: "ghost", onClick: () => n("gallery"), children: /* @__PURE__ */ a(Un, {}) }), e[84] = n, e[85] = i, e[86] = De) : De = e[86];
1766
+ e[84] !== n || e[85] !== i ? (De = jt(i) && /* @__PURE__ */ r(ee, { "aria-label": "Gallery", size: "lg", variant: "ghost", onClick: () => n("gallery"), children: /* @__PURE__ */ r(jn, {}) }), e[84] = n, e[85] = i, e[86] = De) : De = e[86];
1775
1767
  let Fe;
1776
- e[87] !== B || e[88] !== R || e[89] !== te || e[90] !== ze || e[91] !== we || e[92] !== Me || e[93] !== Pe || e[94] !== Ae || e[95] !== Be || e[96] !== De ? (Fe = /* @__PURE__ */ a(gt.Content, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ x(he, { display: "flex", overflowX: "auto", px: 4, pb: 1, children: [
1777
- B,
1778
- R,
1768
+ e[87] !== E || e[88] !== T || e[89] !== te || e[90] !== ze || e[91] !== Me || e[92] !== we || e[93] !== Pe || e[94] !== Ae || e[95] !== Be || e[96] !== De ? (Fe = /* @__PURE__ */ r(gt.Content, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ C(he, { display: "flex", overflowX: "auto", px: 4, pb: 1, children: [
1769
+ E,
1770
+ T,
1779
1771
  te,
1780
1772
  ze,
1781
- we,
1782
1773
  Me,
1774
+ we,
1783
1775
  Pe,
1784
1776
  Ae,
1785
1777
  Be,
1786
1778
  De
1787
- ] }) }), e[87] = B, e[88] = R, e[89] = te, e[90] = ze, e[91] = we, e[92] = Me, e[93] = Pe, e[94] = Ae, e[95] = Be, e[96] = De, e[97] = Fe) : Fe = e[97];
1779
+ ] }) }), e[87] = E, e[88] = T, e[89] = te, e[90] = ze, e[91] = Me, e[92] = we, e[93] = Pe, e[94] = Ae, e[95] = Be, e[96] = De, e[97] = Fe) : Fe = e[97];
1788
1780
  let Le;
1789
- e[98] !== $ || e[99] !== A || e[100] !== Fe ? (Le = /* @__PURE__ */ a(ge, { alignSelf: "stretch", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ x(gt.Root, { open: $, flex: 1, onOpenChange: Y, width: "100%", children: [
1781
+ e[98] !== I || e[99] !== A || e[100] !== Fe ? (Le = /* @__PURE__ */ r(ge, { alignSelf: "stretch", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ C(gt.Root, { open: I, flex: 1, onOpenChange: Y, width: "100%", children: [
1790
1782
  A,
1791
1783
  Fe
1792
- ] }) }), e[98] = $, e[99] = A, e[100] = Fe, e[101] = Le) : Le = e[101];
1784
+ ] }) }), e[98] = I, e[99] = A, e[100] = Fe, e[101] = Le) : Le = e[101];
1793
1785
  let it;
1794
- return e[102] !== o || e[103] !== P || e[104] !== Le ? (it = /* @__PURE__ */ x(Xt, { present: o, position: "bottom", display: "flex", flexDirection: "column", overflow: "auto", pb: 8, px: 0, ref: l, children: [
1786
+ return e[102] !== o || e[103] !== P || e[104] !== Le ? (it = /* @__PURE__ */ C(Xt, { present: o, position: "bottom", display: "flex", flexDirection: "column", overflow: "auto", pb: 8, px: 0, ref: l, children: [
1795
1787
  P,
1796
1788
  Le
1797
1789
  ] }), e[102] = o, e[103] = P, e[104] = Le, e[105] = it) : it = e[105], it;
1798
1790
  });
1799
- function wl(t) {
1791
+ function Ml(t) {
1800
1792
  return t.currentScale > 1 ? "in" : t.currentScale < 1 ? "out" : void 0;
1801
1793
  }
1802
- const Ml = () => {
1803
- const t = y(5), [e, o] = le(!1);
1794
+ const wl = () => {
1795
+ const t = x(5), [e, o] = le(!1);
1804
1796
  let n;
1805
1797
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = () => document.fullscreenElement ? document.exitFullscreen().catch(console.error).then(() => {
1806
1798
  o(!1);
@@ -1819,58 +1811,58 @@ const Ml = () => {
1819
1811
  document.removeEventListener("fullscreenchange", c);
1820
1812
  };
1821
1813
  }, s = [], t[1] = i, t[2] = s) : (i = t[1], s = t[2]), ce(i, s);
1822
- let r;
1823
- return t[3] !== e ? (r = {
1814
+ let a;
1815
+ return t[3] !== e ? (a = {
1824
1816
  isFullscreen: e,
1825
1817
  onToggleFullscreenClick: l
1826
- }, t[3] = e, t[4] = r) : r = t[4], r;
1827
- }, Pl = w((t) => {
1828
- const e = y(29), {
1818
+ }, t[3] = e, t[4] = a) : a = t[4], a;
1819
+ }, Pl = M((t) => {
1820
+ const e = x(29), {
1829
1821
  open: o,
1830
1822
  onItemClick: n
1831
- } = t, l = U();
1823
+ } = t, l = j();
1832
1824
  let i;
1833
1825
  e[0] !== l?.context.manifest$ ? (i = () => l?.context.manifest$, e[0] = l?.context.manifest$, e[1] = i) : i = e[1];
1834
1826
  let s;
1835
1827
  e[2] !== l ? (s = [l], e[2] = l, e[3] = s) : s = e[3];
1836
1828
  const {
1837
- data: r
1838
- } = j(i, s), {
1829
+ data: a
1830
+ } = U(i, s), {
1839
1831
  isFullscreen: c,
1840
1832
  onToggleFullscreenClick: f
1841
- } = Ml();
1833
+ } = wl();
1842
1834
  let u;
1843
1835
  e[4] !== n ? (u = () => n("back"), e[4] = n, e[5] = u) : u = e[5];
1844
1836
  let d;
1845
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ a(eo, {}), e[6] = d) : d = e[6];
1837
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ r(eo, {}), e[6] = d) : d = e[6];
1846
1838
  let h;
1847
- e[7] !== u ? (h = /* @__PURE__ */ a(ee, { "aria-label": "left", size: "lg", variant: "ghost", flexShrink: 0, onClick: u, children: d }), e[7] = u, e[8] = h) : h = e[8];
1848
- const m = r?.title;
1839
+ e[7] !== u ? (h = /* @__PURE__ */ r(ee, { "aria-label": "left", size: "lg", variant: "ghost", flexShrink: 0, onClick: u, children: d }), e[7] = u, e[8] = h) : h = e[8];
1840
+ const m = a?.title;
1849
1841
  let g;
1850
- e[9] !== m ? (g = /* @__PURE__ */ a(J, { flex: 1, maxW: 600, gap: 1, alignItems: "center", overflow: "auto", px: 4, children: /* @__PURE__ */ a(q, { truncate: !0, maxWidth: "100%", children: m }) }), e[9] = m, e[10] = g) : g = e[10];
1851
- let p;
1852
- e[11] !== n ? (p = () => n("more"), e[11] = n, e[12] = p) : p = e[12];
1842
+ e[9] !== m ? (g = /* @__PURE__ */ r(J, { flex: 1, maxW: 600, gap: 1, alignItems: "center", overflow: "auto", px: 4, children: /* @__PURE__ */ r(q, { truncate: !0, maxWidth: "100%", children: m }) }), e[9] = m, e[10] = g) : g = e[10];
1853
1843
  let b;
1854
- e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ a(to, {}), e[13] = b) : b = e[13];
1844
+ e[11] !== n ? (b = () => n("more"), e[11] = n, e[12] = b) : b = e[12];
1845
+ let p;
1846
+ e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ r(to, {}), e[13] = p) : p = e[13];
1855
1847
  let S;
1856
- e[14] !== p ? (S = /* @__PURE__ */ a(ee, { "aria-label": "right", size: "lg", flexShrink: 0, variant: "ghost", onClick: p, children: b }), e[14] = p, e[15] = S) : S = e[15];
1848
+ e[14] !== b ? (S = /* @__PURE__ */ r(ee, { "aria-label": "right", size: "lg", flexShrink: 0, variant: "ghost", onClick: b, children: p }), e[14] = b, e[15] = S) : S = e[15];
1857
1849
  let _;
1858
- e[16] !== c ? (_ = c ? /* @__PURE__ */ a(qn, {}) : /* @__PURE__ */ a(jn, {}), e[16] = c, e[17] = _) : _ = e[17];
1850
+ e[16] !== c ? (_ = c ? /* @__PURE__ */ r(qn, {}) : /* @__PURE__ */ r(Un, {}), e[16] = c, e[17] = _) : _ = e[17];
1859
1851
  let v;
1860
- e[18] !== f || e[19] !== _ ? (v = /* @__PURE__ */ a(ee, { "aria-label": "right", size: "lg", flexShrink: 0, variant: "ghost", onClick: f, children: _ }), e[18] = f, e[19] = _, e[20] = v) : v = e[20];
1861
- let C;
1862
- e[21] !== S || e[22] !== v ? (C = /* @__PURE__ */ x(ge, { children: [
1852
+ e[18] !== f || e[19] !== _ ? (v = /* @__PURE__ */ r(ee, { "aria-label": "right", size: "lg", flexShrink: 0, variant: "ghost", onClick: f, children: _ }), e[18] = f, e[19] = _, e[20] = v) : v = e[20];
1853
+ let y;
1854
+ e[21] !== S || e[22] !== v ? (y = /* @__PURE__ */ C(ge, { children: [
1863
1855
  S,
1864
1856
  v
1865
- ] }), e[21] = S, e[22] = v, e[23] = C) : C = e[23];
1866
- let I;
1867
- return e[24] !== o || e[25] !== C || e[26] !== h || e[27] !== g ? (I = /* @__PURE__ */ x(Xt, { present: o, position: "top", height: "80px", justifyContent: "space-between", children: [
1857
+ ] }), e[21] = S, e[22] = v, e[23] = y) : y = e[23];
1858
+ let $;
1859
+ return e[24] !== o || e[25] !== y || e[26] !== h || e[27] !== g ? ($ = /* @__PURE__ */ C(Xt, { present: o, position: "top", height: "80px", justifyContent: "space-between", children: [
1868
1860
  h,
1869
1861
  g,
1870
- C
1871
- ] }), e[24] = o, e[25] = C, e[26] = h, e[27] = g, e[28] = I) : I = e[28], I;
1862
+ y
1863
+ ] }), e[24] = o, e[25] = y, e[26] = h, e[27] = g, e[28] = $) : $ = e[28], $;
1872
1864
  }), Tt = () => {
1873
- const t = y(4);
1865
+ const t = x(4);
1874
1866
  let e;
1875
1867
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["quickMenuOpen", "onQuickMenuOpenChange", "_quickMenuOpen", "_onQuickMenuOpenChange"], t[0] = e) : e = t[0];
1876
1868
  const {
@@ -1878,11 +1870,11 @@ const Ml = () => {
1878
1870
  onQuickMenuOpenChange: n,
1879
1871
  _quickMenuOpen: l,
1880
1872
  _onQuickMenuOpenChange: i
1881
- } = oe(e), s = o ?? l, r = n ?? i;
1873
+ } = oe(e), s = o ?? l, a = n ?? i;
1882
1874
  let c;
1883
- return t[1] !== s || t[2] !== r ? (c = [s, r], t[1] = s, t[2] = r, t[3] = c) : c = t[3], c;
1884
- }, Al = w((t) => {
1885
- const e = y(10), {
1875
+ return t[1] !== s || t[2] !== a ? (c = [s, a], t[1] = s, t[2] = a, t[3] = c) : c = t[3], c;
1876
+ }, Al = M((t) => {
1877
+ const e = x(10), {
1886
1878
  onItemClick: o
1887
1879
  } = t, [n] = Tt();
1888
1880
  let l;
@@ -1890,27 +1882,25 @@ const Ml = () => {
1890
1882
  const {
1891
1883
  refitMenuOpen: i,
1892
1884
  fontSizeMenuOpen: s,
1893
- selectedHighlight: r
1894
- } = oe(l), c = n && !i && !s && !r;
1885
+ selectedHighlight: a
1886
+ } = oe(l), c = n && !i && !s && !a;
1895
1887
  let f;
1896
- e[1] !== o || e[2] !== c ? (f = /* @__PURE__ */ a(Pl, { open: c, onItemClick: o }), e[1] = o, e[2] = c, e[3] = f) : f = e[3];
1888
+ e[1] !== o || e[2] !== c ? (f = /* @__PURE__ */ r(Pl, { open: c, onItemClick: o }), e[1] = o, e[2] = c, e[3] = f) : f = e[3];
1897
1889
  const u = n && !i && !s;
1898
1890
  let d;
1899
- e[4] !== o || e[5] !== u ? (d = /* @__PURE__ */ a(Rl, { open: u, onItemClick: o }), e[4] = o, e[5] = u, e[6] = d) : d = e[6];
1891
+ e[4] !== o || e[5] !== u ? (d = /* @__PURE__ */ r(Rl, { open: u, onItemClick: o }), e[4] = o, e[5] = u, e[6] = d) : d = e[6];
1900
1892
  let h;
1901
- return e[7] !== f || e[8] !== d ? (h = /* @__PURE__ */ x(et, { children: [
1893
+ return e[7] !== f || e[8] !== d ? (h = /* @__PURE__ */ C(et, { children: [
1902
1894
  f,
1903
1895
  d
1904
1896
  ] }), e[7] = f, e[8] = d, e[9] = h) : h = e[9], h;
1905
1897
  }), El = () => {
1906
- const t = y(5), [, e] = Tt(), o = U();
1898
+ const t = x(3), [, e] = Tt(), o = j();
1907
1899
  let n;
1908
1900
  t[0] !== e || t[1] !== o ? (n = () => o?.gestures.gestures$.pipe(Xe(Bl), yt(o.selection.selection$, o.selection.lastSelectionOnPointerdown$), xt((i) => {
1909
- const [, s, r] = i;
1910
- e(s || r ? !1 : Dl);
1911
- })), t[0] = e, t[1] = o, t[2] = n) : n = t[2];
1912
- let l;
1913
- t[3] !== o ? (l = [o], t[3] = o, t[4] = l) : l = t[4], pe(n, l);
1901
+ const [, s, a] = i;
1902
+ e(s || a ? !1 : Dl);
1903
+ })), t[0] = e, t[1] = o, t[2] = n) : n = t[2], pe(n);
1914
1904
  };
1915
1905
  function Bl(t) {
1916
1906
  return t.type === "tap" && !t.handled;
@@ -1919,56 +1909,56 @@ function Dl(t) {
1919
1909
  return !t;
1920
1910
  }
1921
1911
  const Fl = se.forwardRef(function(e, o) {
1922
- const n = y(21);
1923
- let l, i, s, r, c, f;
1912
+ const n = x(21);
1913
+ let l, i, s, a, c, f;
1924
1914
  n[0] !== e ? ({
1925
- label: r,
1915
+ label: a,
1926
1916
  children: l,
1927
1917
  helperText: s,
1928
1918
  errorText: i,
1929
1919
  optionalText: c,
1930
1920
  ...f
1931
- } = e, n[0] = e, n[1] = l, n[2] = i, n[3] = s, n[4] = r, n[5] = c, n[6] = f) : (l = n[1], i = n[2], s = n[3], r = n[4], c = n[5], f = n[6]);
1921
+ } = e, n[0] = e, n[1] = l, n[2] = i, n[3] = s, n[4] = a, n[5] = c, n[6] = f) : (l = n[1], i = n[2], s = n[3], a = n[4], c = n[5], f = n[6]);
1932
1922
  let u;
1933
- n[7] !== r || n[8] !== c ? (u = r && /* @__PURE__ */ x(je.Label, { children: [
1934
- r,
1935
- /* @__PURE__ */ a(je.RequiredIndicator, { fallback: c })
1936
- ] }), n[7] = r, n[8] = c, n[9] = u) : u = n[9];
1923
+ n[7] !== a || n[8] !== c ? (u = a && /* @__PURE__ */ C(Ue.Label, { children: [
1924
+ a,
1925
+ /* @__PURE__ */ r(Ue.RequiredIndicator, { fallback: c })
1926
+ ] }), n[7] = a, n[8] = c, n[9] = u) : u = n[9];
1937
1927
  let d;
1938
- n[10] !== s ? (d = s && /* @__PURE__ */ a(je.HelperText, { children: s }), n[10] = s, n[11] = d) : d = n[11];
1928
+ n[10] !== s ? (d = s && /* @__PURE__ */ r(Ue.HelperText, { children: s }), n[10] = s, n[11] = d) : d = n[11];
1939
1929
  let h;
1940
- n[12] !== i ? (h = i && /* @__PURE__ */ a(je.ErrorText, { children: i }), n[12] = i, n[13] = h) : h = n[13];
1930
+ n[12] !== i ? (h = i && /* @__PURE__ */ r(Ue.ErrorText, { children: i }), n[12] = i, n[13] = h) : h = n[13];
1941
1931
  let m;
1942
- return n[14] !== l || n[15] !== o || n[16] !== f || n[17] !== u || n[18] !== d || n[19] !== h ? (m = /* @__PURE__ */ x(je.Root, { ref: o, ...f, children: [
1932
+ return n[14] !== l || n[15] !== o || n[16] !== f || n[17] !== u || n[18] !== d || n[19] !== h ? (m = /* @__PURE__ */ C(Ue.Root, { ref: o, ...f, children: [
1943
1933
  u,
1944
1934
  l,
1945
1935
  d,
1946
1936
  h
1947
1937
  ] }), n[14] = l, n[15] = o, n[16] = f, n[17] = u, n[18] = d, n[19] = h, n[20] = m) : m = n[20], m;
1948
- }), Ll = w(() => {
1949
- const t = y(39);
1938
+ }), Ll = M(() => {
1939
+ const t = x(39);
1950
1940
  let e;
1951
1941
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["refitMenuOpen", "onRefitMenuOpenChange"], t[0] = e) : e = t[0];
1952
1942
  const {
1953
1943
  refitMenuOpen: o,
1954
1944
  onRefitMenuOpenChange: n
1955
- } = oe(e), l = U();
1945
+ } = oe(e), l = j();
1956
1946
  let i;
1957
1947
  t[1] !== l ? (i = Qt(l) ? l : void 0, t[1] = l, t[2] = i) : i = t[2];
1958
1948
  const s = i;
1959
- let r;
1960
- t[3] !== s?.refit.settings$ ? (r = () => s?.refit.settings$, t[3] = s?.refit.settings$, t[4] = r) : r = t[4];
1949
+ let a;
1950
+ t[3] !== s?.refit.settings$ ? (a = () => s?.refit.settings$, t[3] = s?.refit.settings$, t[4] = a) : a = t[4];
1961
1951
  let c;
1962
1952
  t[5] !== s ? (c = [s], t[5] = s, t[6] = c) : c = t[6];
1963
1953
  const {
1964
1954
  data: f
1965
- } = j(r, c);
1955
+ } = U(a, c);
1966
1956
  let u;
1967
1957
  t[7] !== n ? (u = (H) => n(H.open), t[7] = n, t[8] = u) : u = t[8];
1968
1958
  let d;
1969
- t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ a(ye, { children: /* @__PURE__ */ a(Ie, { children: "Viewport fit" }) }), t[9] = d) : d = t[9];
1959
+ t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ r(ye, { children: /* @__PURE__ */ r($e, { children: "Viewport fit" }) }), t[9] = d) : d = t[9];
1970
1960
  let h;
1971
- t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ a(Se.HelperText, { children: "Adjust the viewport for a more comfortable reading experience." }), t[10] = h) : h = t[10];
1961
+ t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ r(Se.HelperText, { children: "Adjust the viewport for a more comfortable reading experience." }), t[10] = h) : h = t[10];
1972
1962
  let m;
1973
1963
  t[11] !== s?.refit ? (m = (H) => {
1974
1964
  const Q = H.value;
@@ -1978,60 +1968,60 @@ const Fl = se.forwardRef(function(e, o) {
1978
1968
  });
1979
1969
  }, t[11] = s?.refit, t[12] = m) : m = t[12];
1980
1970
  const g = f?.viewportFit ?? "fit";
1981
- let p;
1982
- t[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ a(Ye, { value: "desktop", children: "Desktop" }), t[13] = p) : p = t[13];
1983
1971
  let b;
1984
- t[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ a(Ye, { value: "tablet", children: "Tablet" }), t[14] = b) : b = t[14];
1972
+ t[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ r(Ye, { value: "desktop", children: "Desktop" }), t[13] = b) : b = t[13];
1973
+ let p;
1974
+ t[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ r(Ye, { value: "tablet", children: "Tablet" }), t[14] = p) : p = t[14];
1985
1975
  let S;
1986
- t[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ a(Ye, { value: "fit", children: "Full width (default)" }), t[15] = S) : S = t[15];
1976
+ t[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ r(Ye, { value: "fit", children: "Full width (default)" }), t[15] = S) : S = t[15];
1987
1977
  let _;
1988
- t[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ x(J, { gap: 2, children: [
1989
- p,
1978
+ t[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ C(J, { gap: 2, children: [
1990
1979
  b,
1980
+ p,
1991
1981
  S,
1992
- /* @__PURE__ */ a(Ye, { value: "custom", children: "Custom" })
1982
+ /* @__PURE__ */ r(Ye, { value: "custom", children: "Custom" })
1993
1983
  ] }), t[16] = _) : _ = t[16];
1994
1984
  let v;
1995
- t[17] !== m || t[18] !== g ? (v = /* @__PURE__ */ a(Fl, { label: "Profile", children: /* @__PURE__ */ a(Kt, { defaultValue: "fit", onValueChange: m, value: g, children: _ }) }), t[17] = m, t[18] = g, t[19] = v) : v = t[19];
1996
- const C = f?.viewportFit !== "custom", I = f?.customWidth ?? 60;
1985
+ t[17] !== m || t[18] !== g ? (v = /* @__PURE__ */ r(Fl, { label: "Profile", children: /* @__PURE__ */ r(Kt, { defaultValue: "fit", onValueChange: m, value: g, children: _ }) }), t[17] = m, t[18] = g, t[19] = v) : v = t[19];
1986
+ const y = f?.viewportFit !== "custom", $ = f?.customWidth ?? 60;
1997
1987
  let k;
1998
- t[20] !== I ? (k = [I], t[20] = I, t[21] = k) : k = t[21];
1999
- let $;
2000
- t[22] !== s?.refit ? ($ = (H) => {
1988
+ t[20] !== $ ? (k = [$], t[20] = $, t[21] = k) : k = t[21];
1989
+ let I;
1990
+ t[22] !== s?.refit ? (I = (H) => {
2001
1991
  const Q = H.value[0] ?? 0;
2002
1992
  s?.refit.update({
2003
1993
  customWidth: Q
2004
1994
  });
2005
- }, t[22] = s?.refit, t[23] = $) : $ = t[23];
2006
- let O;
2007
- t[24] !== C || t[25] !== k || t[26] !== $ ? (O = /* @__PURE__ */ a(It, { label: "Maximum width (%)", showValue: !0, max: 100, min: 10, step: 1, disabled: C, value: k, onValueChange: $ }), t[24] = C, t[25] = k, t[26] = $, t[27] = O) : O = t[27];
1995
+ }, t[22] = s?.refit, t[23] = I) : I = t[23];
1996
+ let R;
1997
+ t[24] !== y || t[25] !== k || t[26] !== I ? (R = /* @__PURE__ */ r($t, { label: "Maximum width (%)", showValue: !0, max: 100, min: 10, step: 1, disabled: y, value: k, onValueChange: I }), t[24] = y, t[25] = k, t[26] = I, t[27] = R) : R = t[27];
2008
1998
  let z;
2009
- t[28] !== v || t[29] !== O ? (z = /* @__PURE__ */ a(ke, { children: /* @__PURE__ */ x(Se.Root, { children: [
1999
+ t[28] !== v || t[29] !== R ? (z = /* @__PURE__ */ r(ke, { children: /* @__PURE__ */ C(Se.Root, { children: [
2010
2000
  h,
2011
- /* @__PURE__ */ x(Se.Content, { children: [
2001
+ /* @__PURE__ */ C(Se.Content, { children: [
2012
2002
  v,
2013
- O
2003
+ R
2014
2004
  ] })
2015
- ] }) }), t[28] = v, t[29] = O, t[30] = z) : z = t[30];
2016
- let E, T;
2017
- t[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ a(xe, { children: /* @__PURE__ */ a($e, { asChild: !0, children: /* @__PURE__ */ a(re, { variant: "outline", children: "Close" }) }) }), T = /* @__PURE__ */ a(ve, {}), t[31] = E, t[32] = T) : (E = t[31], T = t[32]);
2005
+ ] }) }), t[28] = v, t[29] = R, t[30] = z) : z = t[30];
2006
+ let L, O;
2007
+ t[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ r(xe, { children: /* @__PURE__ */ r(Ie, { asChild: !0, children: /* @__PURE__ */ r(re, { variant: "outline", children: "Close" }) }) }), O = /* @__PURE__ */ r(ve, {}), t[31] = L, t[32] = O) : (L = t[31], O = t[32]);
2018
2008
  let N;
2019
- t[33] !== z ? (N = /* @__PURE__ */ x(_e, { children: [
2009
+ t[33] !== z ? (N = /* @__PURE__ */ C(_e, { children: [
2020
2010
  d,
2021
2011
  z,
2022
- E,
2023
- T
2012
+ L,
2013
+ O
2024
2014
  ] }), t[33] = z, t[34] = N) : N = t[34];
2025
- let M;
2026
- return t[35] !== o || t[36] !== N || t[37] !== u ? (M = /* @__PURE__ */ a(Ce, { lazyMount: !0, open: o, onOpenChange: u, placement: "center", children: N }), t[35] = o, t[36] = N, t[37] = u, t[38] = M) : M = t[38], M;
2027
- }), Nl = w((t) => {
2028
- const e = y(26), {
2015
+ let w;
2016
+ return t[35] !== o || t[36] !== N || t[37] !== u ? (w = /* @__PURE__ */ r(Ce, { lazyMount: !0, open: o, onOpenChange: u, placement: "center", children: N }), t[35] = o, t[36] = N, t[37] = u, t[38] = w) : w = t[38], w;
2017
+ }), Nl = M((t) => {
2018
+ const e = x(26), {
2029
2019
  contextText: o,
2030
2020
  startOffset: n,
2031
2021
  text: l,
2032
2022
  cfi: i,
2033
2023
  onClick: s,
2034
- absolutePageIndex: r
2024
+ absolutePageIndex: a
2035
2025
  } = t, c = o === void 0 ? "" : o, f = n === void 0 ? 0 : n, u = i === void 0 ? "#" : i;
2036
2026
  let d;
2037
2027
  e[0] !== c || e[1] !== f ? (d = c.substring(Math.max(f - 15, 0), Math.max(f, 0)), e[0] = c, e[1] = f, e[2] = d) : d = e[2];
@@ -2039,56 +2029,56 @@ const Fl = se.forwardRef(function(e, o) {
2039
2029
  let m;
2040
2030
  e[3] !== c || e[4] !== f || e[5] !== l.length ? (m = c.substring(Math.min(f + l.length, c.length - 1), Math.min(f + l.length + 15, c.length - 1)), e[3] = c, e[4] = f, e[5] = l.length, e[6] = m) : m = e[6];
2041
2031
  const g = m;
2042
- let p;
2043
- e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = {
2032
+ let b;
2033
+ e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = {
2044
2034
  margin: 5,
2045
2035
  overflow: "hidden"
2046
- }, e[7] = p) : p = e[7];
2047
- let b;
2048
- e[8] !== u || e[9] !== s ? (b = (O) => {
2049
- O.preventDefault(), s(u);
2050
- }, e[8] = u, e[9] = s, e[10] = b) : b = e[10];
2036
+ }, e[7] = b) : b = e[7];
2037
+ let p;
2038
+ e[8] !== u || e[9] !== s ? (p = (R) => {
2039
+ R.preventDefault(), s(u);
2040
+ }, e[8] = u, e[9] = s, e[10] = p) : p = e[10];
2051
2041
  let S;
2052
2042
  e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = {
2053
2043
  display: "block"
2054
2044
  }, e[11] = S) : S = e[11];
2055
2045
  let _;
2056
- e[12] !== l ? (_ = /* @__PURE__ */ a("b", { children: l }), e[12] = l, e[13] = _) : _ = e[13];
2046
+ e[12] !== l ? (_ = /* @__PURE__ */ r("b", { children: l }), e[12] = l, e[13] = _) : _ = e[13];
2057
2047
  let v;
2058
- e[14] !== g || e[15] !== h || e[16] !== _ ? (v = /* @__PURE__ */ x(q, { lineClamp: 1, as: "cite", style: S, children: [
2048
+ e[14] !== g || e[15] !== h || e[16] !== _ ? (v = /* @__PURE__ */ C(q, { lineClamp: 1, as: "cite", style: S, children: [
2059
2049
  '"',
2060
2050
  h,
2061
2051
  _,
2062
2052
  g,
2063
2053
  '"'
2064
2054
  ] }), e[14] = g, e[15] = h, e[16] = _, e[17] = v) : v = e[17];
2065
- let C;
2066
- e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = {
2055
+ let y;
2056
+ e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = {
2067
2057
  textDecoration: "none"
2068
- }, e[18] = C) : C = e[18];
2069
- const I = `Book page: ${r !== void 0 ? r + 1 : "unknown (not loaded)"}`;
2058
+ }, e[18] = y) : y = e[18];
2059
+ const $ = `Book page: ${a !== void 0 ? a + 1 : "unknown (not loaded)"}`;
2070
2060
  let k;
2071
- e[19] !== I ? (k = /* @__PURE__ */ a(q, { fontSize: "sm", color: "gray.500", style: C, children: I }), e[19] = I, e[20] = k) : k = e[20];
2072
- let $;
2073
- return e[21] !== u || e[22] !== v || e[23] !== k || e[24] !== b ? ($ = /* @__PURE__ */ x(Ct, { href: u, style: p, onClick: b, display: "flex", flexDirection: "column", alignItems: "flex-start", gap: 0, children: [
2061
+ e[19] !== $ ? (k = /* @__PURE__ */ r(q, { fontSize: "sm", color: "gray.500", style: y, children: $ }), e[19] = $, e[20] = k) : k = e[20];
2062
+ let I;
2063
+ return e[21] !== u || e[22] !== v || e[23] !== k || e[24] !== p ? (I = /* @__PURE__ */ C(Ct, { href: u, style: b, onClick: p, display: "flex", flexDirection: "column", alignItems: "flex-start", gap: 0, children: [
2074
2064
  v,
2075
2065
  k
2076
- ] }), e[21] = u, e[22] = v, e[23] = k, e[24] = b, e[25] = $) : $ = e[25], $;
2066
+ ] }), e[21] = u, e[22] = v, e[23] = k, e[24] = p, e[25] = I) : I = e[25], I;
2077
2067
  }), Hl = 500, Vl = () => {
2078
- const t = y(13), e = at(Wl), {
2068
+ const t = x(13), e = at(Wl), {
2079
2069
  data: o
2080
- } = j(e), n = U();
2070
+ } = U(e), n = j();
2081
2071
  let l;
2082
- t[0] !== n ? (l = jt(n) ? n : void 0, t[0] = n, t[1] = l) : l = t[1];
2072
+ t[0] !== n ? (l = Ut(n) ? n : void 0, t[0] = n, t[1] = l) : l = t[1];
2083
2073
  const i = l;
2084
- let s, r;
2074
+ let s, a;
2085
2075
  t[2] !== i || t[3] !== e ? (s = () => e.pipe(rt(), be((m) => m === "" || !i ? _t(void 0) : Nt(_t({
2086
2076
  type: "start",
2087
2077
  data: void 0
2088
- }), Ht(Hl).pipe(be(() => i.search.search(m)), ne(Gl))))), r = [i, e], t[2] = i, t[3] = e, t[4] = s, t[5] = r) : (s = t[4], r = t[5]);
2078
+ }), Ht(Hl).pipe(be(() => i.search.search(m)), ne(Gl))))), a = [i, e], t[2] = i, t[3] = e, t[4] = s, t[5] = a) : (s = t[4], a = t[5]);
2089
2079
  const {
2090
2080
  data: c
2091
- } = j(s, r);
2081
+ } = U(s, a);
2092
2082
  let f;
2093
2083
  t[6] !== e ? (f = e.next.bind(e), t[6] = e, t[7] = f) : f = t[7];
2094
2084
  const u = c?.type ?? "idle", d = c?.data;
@@ -2109,14 +2099,14 @@ function Gl(t) {
2109
2099
  data: t
2110
2100
  };
2111
2101
  }
2112
- const ql = w((t) => {
2113
- const e = y(31), {
2102
+ const ql = M((t) => {
2103
+ const e = x(31), {
2114
2104
  onNavigate: o
2115
- } = t, n = U(), {
2105
+ } = t, n = j(), {
2116
2106
  value: l,
2117
2107
  setValue: i,
2118
2108
  status: s,
2119
- data: r
2109
+ data: a
2120
2110
  } = Vl();
2121
2111
  let c;
2122
2112
  e[0] !== i ? (c = (k) => {
@@ -2129,44 +2119,44 @@ const ql = w((t) => {
2129
2119
  }, e[2] = o, e[3] = n?.navigation, e[4] = u) : u = e[4];
2130
2120
  const d = u;
2131
2121
  let h;
2132
- e[5] !== r || e[6] !== n ? (h = () => n?.locateResource(r?.slice(0, 100) ?? []), e[5] = r, e[6] = n, e[7] = h) : h = e[7];
2122
+ e[5] !== a || e[6] !== n ? (h = () => n?.locateResource(a?.slice(0, 100) ?? []), e[5] = a, e[6] = n, e[7] = h) : h = e[7];
2133
2123
  let m;
2134
- e[8] !== r ? (m = [r], e[8] = r, e[9] = m) : m = e[9];
2124
+ e[8] !== a ? (m = [a], e[8] = a, e[9] = m) : m = e[9];
2135
2125
  const {
2136
2126
  data: g
2137
- } = j(h, m);
2138
- let p;
2139
- e[10] !== f || e[11] !== l ? (p = /* @__PURE__ */ a(an, { placeholder: "Type something...", value: l, onChange: f, flexShrink: 0, variant: "subtle", name: "search", focusRing: "none", focusVisibleRing: "none", outline: "none", focusRingColor: "transparent" }), e[10] = f, e[11] = l, e[12] = p) : p = e[12];
2127
+ } = U(h, m);
2140
2128
  let b;
2141
- e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = {
2129
+ e[10] !== f || e[11] !== l ? (b = /* @__PURE__ */ r(an, { placeholder: "Type something...", value: l, onChange: f, flexShrink: 0, variant: "subtle", name: "search", focusRing: "none", focusVisibleRing: "none", outline: "none", focusRingColor: "transparent" }), e[10] = f, e[11] = l, e[12] = b) : b = e[12];
2130
+ let p;
2131
+ e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = {
2142
2132
  overflow: "hidden",
2143
2133
  overflowY: "auto"
2144
- }, e[13] = b) : b = e[13];
2134
+ }, e[13] = p) : p = e[13];
2145
2135
  let S;
2146
- e[14] !== s ? (S = s === "start" && /* @__PURE__ */ a(q, { children: "Searching ..." }), e[14] = s, e[15] = S) : S = e[15];
2136
+ e[14] !== s ? (S = s === "start" && /* @__PURE__ */ r(q, { children: "Searching ..." }), e[14] = s, e[15] = S) : S = e[15];
2147
2137
  let _;
2148
- e[16] !== r?.length ? (_ = r?.length === 0 && /* @__PURE__ */ a(q, { children: "No results" }), e[16] = r?.length, e[17] = _) : _ = e[17];
2138
+ e[16] !== a?.length ? (_ = a?.length === 0 && /* @__PURE__ */ r(q, { children: "No results" }), e[16] = a?.length, e[17] = _) : _ = e[17];
2149
2139
  let v;
2150
- e[18] !== g || e[19] !== r?.length || e[20] !== d || e[21] !== l || e[22] !== s ? (v = s === "end" && (r?.length ?? 0) > 0 && /* @__PURE__ */ x(J, { children: [
2151
- /* @__PURE__ */ x(q, { fontSize: "md", children: [
2152
- r?.length,
2140
+ e[18] !== g || e[19] !== a?.length || e[20] !== d || e[21] !== l || e[22] !== s ? (v = s === "end" && (a?.length ?? 0) > 0 && /* @__PURE__ */ C(J, { children: [
2141
+ /* @__PURE__ */ C(q, { fontSize: "md", children: [
2142
+ a?.length,
2153
2143
  " result(s)"
2154
2144
  ] }),
2155
- /* @__PURE__ */ a(J, { gap: 0, children: g?.map((k, $) => /* @__PURE__ */ a(Nl, { contextText: k.meta?.range?.startContainer.parentElement?.textContent ?? "", pageIndex: k.meta?.itemPageIndex, startOffset: k.meta?.range?.startOffset ?? 0, text: l, cfi: k.meta.cfi, onClick: d, absolutePageIndex: k.meta?.absolutePageIndex }, $)) })
2156
- ] }), e[18] = g, e[19] = r?.length, e[20] = d, e[21] = l, e[22] = s, e[23] = v) : v = e[23];
2157
- let C;
2158
- e[24] !== S || e[25] !== _ || e[26] !== v ? (C = /* @__PURE__ */ x(J, { style: b, overflow: "auto", px: 4, flex: 1, children: [
2145
+ /* @__PURE__ */ r(J, { gap: 0, children: g?.map((k, I) => /* @__PURE__ */ r(Nl, { contextText: k.meta?.range?.startContainer.parentElement?.textContent ?? "", pageIndex: k.meta?.itemPageIndex, startOffset: k.meta?.range?.startOffset ?? 0, text: l, cfi: k.meta.cfi, onClick: d, absolutePageIndex: k.meta?.absolutePageIndex }, I)) })
2146
+ ] }), e[18] = g, e[19] = a?.length, e[20] = d, e[21] = l, e[22] = s, e[23] = v) : v = e[23];
2147
+ let y;
2148
+ e[24] !== S || e[25] !== _ || e[26] !== v ? (y = /* @__PURE__ */ C(J, { style: p, overflow: "auto", px: 4, flex: 1, children: [
2159
2149
  S,
2160
2150
  _,
2161
2151
  v
2162
- ] }), e[24] = S, e[25] = _, e[26] = v, e[27] = C) : C = e[27];
2163
- let I;
2164
- return e[28] !== C || e[29] !== p ? (I = /* @__PURE__ */ x(J, { flex: 1, height: "100%", gap: 2, children: [
2165
- p,
2166
- C
2167
- ] }), e[28] = C, e[29] = p, e[30] = I) : I = e[30], I;
2168
- }), jl = w((t) => {
2169
- const e = y(14), {
2152
+ ] }), e[24] = S, e[25] = _, e[26] = v, e[27] = y) : y = e[27];
2153
+ let $;
2154
+ return e[28] !== y || e[29] !== b ? ($ = /* @__PURE__ */ C(J, { flex: 1, height: "100%", gap: 2, children: [
2155
+ b,
2156
+ y
2157
+ ] }), e[28] = y, e[29] = b, e[30] = $) : $ = e[30], $;
2158
+ }), Ul = M((t) => {
2159
+ const e = x(14), {
2170
2160
  open: o,
2171
2161
  setOpen: n,
2172
2162
  onNavigate: l
@@ -2178,66 +2168,60 @@ const ql = w((t) => {
2178
2168
  mdDown: "full",
2179
2169
  md: "lg"
2180
2170
  }, e[2] = s) : s = e[2];
2181
- let r;
2182
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ a(ye, { children: /* @__PURE__ */ a(Ie, { children: "Search" }) }), e[3] = r) : r = e[3];
2171
+ let a;
2172
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ r(ye, { children: /* @__PURE__ */ r($e, { children: "Search" }) }), e[3] = a) : a = e[3];
2183
2173
  let c;
2184
- e[4] !== l ? (c = /* @__PURE__ */ a(ke, { flex: 1, p: 0, children: /* @__PURE__ */ a(ql, { onNavigate: l }) }), e[4] = l, e[5] = c) : c = e[5];
2174
+ e[4] !== l ? (c = /* @__PURE__ */ r(ke, { flex: 1, p: 0, children: /* @__PURE__ */ r(ql, { onNavigate: l }) }), e[4] = l, e[5] = c) : c = e[5];
2185
2175
  let f, u;
2186
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(xe, { children: /* @__PURE__ */ a($e, { asChild: !0, children: /* @__PURE__ */ a(re, { variant: "outline", children: "Cancel" }) }) }), u = /* @__PURE__ */ a(ve, {}), e[6] = f, e[7] = u) : (f = e[6], u = e[7]);
2176
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ r(xe, { children: /* @__PURE__ */ r(Ie, { asChild: !0, children: /* @__PURE__ */ r(re, { variant: "outline", children: "Cancel" }) }) }), u = /* @__PURE__ */ r(ve, {}), e[6] = f, e[7] = u) : (f = e[6], u = e[7]);
2187
2177
  let d;
2188
- e[8] !== c ? (d = /* @__PURE__ */ x(_e, { height: "100%", children: [
2189
- r,
2178
+ e[8] !== c ? (d = /* @__PURE__ */ C(_e, { height: "100%", children: [
2179
+ a,
2190
2180
  c,
2191
2181
  f,
2192
2182
  u
2193
2183
  ] }), e[8] = c, e[9] = d) : d = e[9];
2194
2184
  let h;
2195
- return e[10] !== o || e[11] !== i || e[12] !== d ? (h = /* @__PURE__ */ a(Ce, { lazyMount: !0, placement: "center", open: o, onOpenChange: i, size: s, scrollBehavior: "inside", children: d }), e[10] = o, e[11] = i, e[12] = d, e[13] = h) : h = e[13], h;
2196
- }), Ul = w((t) => {
2197
- const e = y(7), {
2185
+ return e[10] !== o || e[11] !== i || e[12] !== d ? (h = /* @__PURE__ */ r(Ce, { lazyMount: !0, placement: "center", open: o, onOpenChange: i, size: s, scrollBehavior: "inside", children: d }), e[10] = o, e[11] = i, e[12] = d, e[13] = h) : h = e[13], h;
2186
+ }), jl = M((t) => {
2187
+ const e = x(5), {
2198
2188
  onNavigate: o
2199
- } = t, n = U(), {
2189
+ } = t, n = j(), {
2200
2190
  data: l
2201
- } = j(() => n?.context, [n]) ?? {}, {
2202
- manifest: i,
2203
- assumedRenditionLayout: s
2191
+ } = U(() => n?.context, [n]) ?? {}, {
2192
+ manifest: i
2204
2193
  } = l === void 0 ? {} : l, {
2205
- nav: r
2206
- } = i ?? {}, c = Ge();
2207
- r?.toc;
2194
+ nav: s
2195
+ } = i ?? {}, a = Ge();
2196
+ s?.toc;
2197
+ const c = a?.beginAbsolutePageIndex;
2208
2198
  let f;
2209
- e[0] !== c ? (f = c ?? {}, e[0] = c, e[1] = f) : f = e[1];
2210
- const {
2211
- beginSpineItemIndex: u,
2212
- beginPageIndexInSpineItem: d
2213
- } = f, h = (s === "reflowable" ? d : u) || 0;
2214
- let m;
2215
- if (e[2] !== c?.beginChapterInfo) {
2216
- for (m = c?.beginChapterInfo; m?.subChapter; )
2217
- m = m?.subChapter;
2218
- e[2] = c?.beginChapterInfo, e[3] = m;
2199
+ if (e[0] !== a?.beginChapterInfo) {
2200
+ for (f = a?.beginChapterInfo; f?.subChapter; )
2201
+ f = f?.subChapter;
2202
+ e[0] = a?.beginChapterInfo, e[1] = f;
2219
2203
  } else
2220
- m = e[3];
2221
- const g = (k, $, O) => /* @__PURE__ */ x(rn.Fragment, { children: [
2222
- /* @__PURE__ */ a(me.Item, { pl: 4 * (O + 1), style: {
2204
+ f = e[1];
2205
+ const u = (_, v, y) => /* @__PURE__ */ C(rn.Fragment, { children: [
2206
+ /* @__PURE__ */ r(me.Item, { pl: 4 * (y + 1), style: {
2223
2207
  display: "flex",
2224
2208
  alignItems: "center"
2225
- }, children: /* @__PURE__ */ x(Ct, { onClick: () => {
2226
- o(), n?.navigation.goToUrl(k.href);
2209
+ }, children: /* @__PURE__ */ C(Ct, { onClick: () => {
2210
+ o(), n?.navigation.goToUrl(_.href);
2227
2211
  }, href: "#", children: [
2228
- m?.path === k.path && /* @__PURE__ */ a(me.Indicator, { asChild: !0, children: /* @__PURE__ */ a(Rt, {}) }),
2229
- m?.path !== k.path && /* @__PURE__ */ a(me.Indicator, { asChild: !0, visibility: "hidden", children: /* @__PURE__ */ a(Rt, {}) }),
2230
- /* @__PURE__ */ x(J, { gap: 0, children: [
2231
- /* @__PURE__ */ a(q, { fontSize: "md", children: k.title || k.path }),
2232
- m?.path === k.path && /* @__PURE__ */ a(q, { fontStyle: "italic", fontWeight: "bold", fontSize: "sm", children: `Currently on page ${h + 1}` })
2212
+ f?.path === _.path && /* @__PURE__ */ r(me.Indicator, { asChild: !0, children: /* @__PURE__ */ r(Rt, {}) }),
2213
+ f?.path !== _.path && /* @__PURE__ */ r(me.Indicator, { asChild: !0, visibility: "hidden", children: /* @__PURE__ */ r(Rt, {}) }),
2214
+ /* @__PURE__ */ C(J, { gap: 0, children: [
2215
+ /* @__PURE__ */ r(q, { fontSize: "md", children: _.title || _.path }),
2216
+ f?.path === _.path && c !== void 0 && /* @__PURE__ */ r(q, { fontStyle: "italic", fontWeight: "bold", fontSize: "sm", children: `Currently on page ${c + 1}` })
2233
2217
  ] })
2234
2218
  ] }) }),
2235
- k.contents.length > 0 && /* @__PURE__ */ a(me.Root, { as: "div", gap: 2, children: k.contents.map((z, E) => g(z, E, O + 1)) })
2236
- ] }, $), p = me, b = 3, S = "auto", _ = 4, v = 1, C = r?.toc.map((k, $) => g(k, $, 0));
2237
- let I;
2238
- return e[4] !== p.Root || e[5] !== C ? (I = /* @__PURE__ */ a(p.Root, { gap: b, overflowY: S, py: _, flex: v, children: C }), e[4] = p.Root, e[5] = C, e[6] = I) : I = e[6], I;
2239
- }), Ql = w((t) => {
2240
- const e = y(14), {
2219
+ _.contents.length > 0 && /* @__PURE__ */ r(me.Root, { as: "div", gap: 2, children: _.contents.map(($, k) => u($, k, y + 1)) })
2220
+ ] }, v), d = me, h = 3, m = "auto", g = 4, b = 1, p = s?.toc.map((_, v) => u(_, v, 0));
2221
+ let S;
2222
+ return e[2] !== d.Root || e[3] !== p ? (S = /* @__PURE__ */ r(d.Root, { gap: h, overflowY: m, py: g, flex: b, children: p }), e[2] = d.Root, e[3] = p, e[4] = S) : S = e[4], S;
2223
+ }), Ql = M((t) => {
2224
+ const e = x(14), {
2241
2225
  open: o,
2242
2226
  setOpen: n,
2243
2227
  onNavigate: l
@@ -2249,23 +2233,23 @@ const ql = w((t) => {
2249
2233
  mdDown: "full",
2250
2234
  md: "lg"
2251
2235
  }, e[2] = s) : s = e[2];
2252
- let r;
2253
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ a(ye, { children: /* @__PURE__ */ a(Ie, { children: "Table of Contents" }) }), e[3] = r) : r = e[3];
2236
+ let a;
2237
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ r(ye, { children: /* @__PURE__ */ r($e, { children: "Table of Contents" }) }), e[3] = a) : a = e[3];
2254
2238
  let c;
2255
- e[4] !== l ? (c = /* @__PURE__ */ a(ke, { overflowY: "auto", flex: 1, children: /* @__PURE__ */ a(Ul, { onNavigate: l }) }), e[4] = l, e[5] = c) : c = e[5];
2239
+ e[4] !== l ? (c = /* @__PURE__ */ r(ke, { overflowY: "auto", flex: 1, children: /* @__PURE__ */ r(jl, { onNavigate: l }) }), e[4] = l, e[5] = c) : c = e[5];
2256
2240
  let f, u;
2257
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(xe, { children: /* @__PURE__ */ a($e, { asChild: !0, children: /* @__PURE__ */ a(re, { variant: "outline", children: "Cancel" }) }) }), u = /* @__PURE__ */ a(ve, {}), e[6] = f, e[7] = u) : (f = e[6], u = e[7]);
2241
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ r(xe, { children: /* @__PURE__ */ r(Ie, { asChild: !0, children: /* @__PURE__ */ r(re, { variant: "outline", children: "Cancel" }) }) }), u = /* @__PURE__ */ r(ve, {}), e[6] = f, e[7] = u) : (f = e[6], u = e[7]);
2258
2242
  let d;
2259
- e[8] !== c ? (d = /* @__PURE__ */ x(_e, { children: [
2260
- r,
2243
+ e[8] !== c ? (d = /* @__PURE__ */ C(_e, { children: [
2244
+ a,
2261
2245
  c,
2262
2246
  f,
2263
2247
  u
2264
2248
  ] }), e[8] = c, e[9] = d) : d = e[9];
2265
2249
  let h;
2266
- return e[10] !== o || e[11] !== i || e[12] !== d ? (h = /* @__PURE__ */ a(Ce, { lazyMount: !0, placement: "center", open: o, onOpenChange: i, size: s, scrollBehavior: "inside", children: d }), e[10] = o, e[11] = i, e[12] = d, e[13] = h) : h = e[13], h;
2250
+ return e[10] !== o || e[11] !== i || e[12] !== d ? (h = /* @__PURE__ */ r(Ce, { lazyMount: !0, placement: "center", open: o, onOpenChange: i, size: s, scrollBehavior: "inside", children: d }), e[10] = o, e[11] = i, e[12] = d, e[13] = h) : h = e[13], h;
2267
2251
  }), Yl = () => {
2268
- const t = y(7), e = U();
2252
+ const t = x(7), e = j();
2269
2253
  let o;
2270
2254
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = ["zoomMaxScale"], t[0] = o) : o = t[0];
2271
2255
  const {
@@ -2279,18 +2263,18 @@ const ql = w((t) => {
2279
2263
  }, t[1] = e?.gestures.settings, t[2] = n, t[3] = l) : l = t[3];
2280
2264
  let i;
2281
2265
  t[4] !== e || t[5] !== n ? (i = [e, n], t[4] = e, t[5] = n, t[6] = i) : i = t[6], ce(l, i);
2282
- }, Mt = 0.5, Pt = 1, Zl = (t, e, o, n) => {
2266
+ }, wt = 0.5, Pt = 1, Zl = (t, e, o, n) => {
2283
2267
  if (t > e && t < e + n)
2284
2268
  return e + n;
2285
2269
  const l = Math.min(Math.max(t, e), o), i = Math.round((l - e) / n) * n + e;
2286
2270
  return Math.round(i * 100) / 100;
2287
- }, Kl = w(() => {
2288
- const t = y(23);
2271
+ }, Kl = M(() => {
2272
+ const t = x(23);
2289
2273
  let e;
2290
2274
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["zoomMaxScale"], t[0] = e) : e = t[0];
2291
2275
  const {
2292
2276
  zoomMaxScale: o
2293
- } = oe(e), n = o === void 0 ? Wt : o, l = U();
2277
+ } = oe(e), n = o === void 0 ? Wt : o, l = j();
2294
2278
  let i;
2295
2279
  t[1] !== l?.zoom.state$ ? (i = () => l?.zoom.state$.pipe(ne(Xl), Ft(100, An, {
2296
2280
  leading: !0,
@@ -2299,31 +2283,31 @@ const ql = w((t) => {
2299
2283
  let s;
2300
2284
  t[3] !== l ? (s = [l], t[3] = l, t[4] = s) : s = t[4];
2301
2285
  const {
2302
- data: r
2303
- } = j(i, s), c = r === void 0 ? 1 : r;
2286
+ data: a
2287
+ } = U(i, s), c = a === void 0 ? 1 : a;
2304
2288
  let f;
2305
2289
  t[5] !== l?.zoom.state$ ? (f = () => l?.zoom.state$.pipe(ne(Jl)), t[5] = l?.zoom.state$, t[6] = f) : f = t[6];
2306
2290
  let u;
2307
2291
  t[7] !== l ? (u = [l], t[7] = l, t[8] = u) : u = t[8];
2308
2292
  const {
2309
2293
  data: d
2310
- } = j(f, u), h = d === void 0 ? !1 : d;
2294
+ } = U(f, u), h = d === void 0 ? !1 : d;
2311
2295
  let m;
2312
- t[9] !== n || t[10] !== c ? (m = Zl(c, Pt, n, Mt), t[9] = n, t[10] = c, t[11] = m) : m = t[11];
2313
- const g = m, p = h && c > 1;
2314
- let b;
2315
- t[12] !== g ? (b = [g], t[12] = g, t[13] = b) : b = t[13];
2296
+ t[9] !== n || t[10] !== c ? (m = Zl(c, Pt, n, wt), t[9] = n, t[10] = c, t[11] = m) : m = t[11];
2297
+ const g = m, b = h && c > 1;
2298
+ let p;
2299
+ t[12] !== g ? (p = [g], t[12] = g, t[13] = p) : p = t[13];
2316
2300
  let S;
2317
- t[14] !== l?.zoom ? (S = (C) => {
2318
- const I = C.value?.[0] ?? 1;
2319
- I === 1 ? l?.zoom.exit() : l?.zoom.scaleAt(I, {
2301
+ t[14] !== l?.zoom ? (S = (y) => {
2302
+ const $ = y.value?.[0] ?? 1;
2303
+ $ === 1 ? l?.zoom.exit() : l?.zoom.scaleAt($, {
2320
2304
  constrain: "within-viewport"
2321
2305
  });
2322
2306
  }, t[14] = l?.zoom, t[15] = S) : S = t[15];
2323
2307
  let _;
2324
- t[16] !== b || t[17] !== S || t[18] !== n ? (_ = /* @__PURE__ */ a(It, { value: b, min: Pt, max: n, step: Mt, minWidth: 200, onValueChange: S }), t[16] = b, t[17] = S, t[18] = n, t[19] = _) : _ = t[19];
2308
+ t[16] !== p || t[17] !== S || t[18] !== n ? (_ = /* @__PURE__ */ r($t, { value: p, min: Pt, max: n, step: wt, minWidth: 200, onValueChange: S }), t[16] = p, t[17] = S, t[18] = n, t[19] = _) : _ = t[19];
2325
2309
  let v;
2326
- return t[20] !== _ || t[21] !== p ? (v = /* @__PURE__ */ a(qt, { present: p, children: _ }), t[20] = _, t[21] = p, t[22] = v) : v = t[22], v;
2310
+ return t[20] !== _ || t[21] !== b ? (v = /* @__PURE__ */ r(qt, { present: b, children: _ }), t[20] = _, t[21] = b, t[22] = v) : v = t[22], v;
2327
2311
  });
2328
2312
  function Xl(t) {
2329
2313
  return t.currentScale;
@@ -2334,16 +2318,16 @@ function Jl(t) {
2334
2318
  const ei = {
2335
2319
  _open: "fade-in",
2336
2320
  _closed: "fade-out"
2337
- }, ti = w(() => (Ro(), null)), ni = w(() => {
2338
- const t = y(1);
2339
- Yl(), bl(), _l(), El(), wo(), Mo();
2321
+ }, ti = M(() => (Ro(), null)), ni = M(() => {
2322
+ const t = x(1);
2323
+ Yl(), bl(), _l(), El(), Mo(), wo();
2340
2324
  let e;
2341
- return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ x(et, { children: [
2342
- /* @__PURE__ */ a(Ko, {}),
2343
- /* @__PURE__ */ a(ti, {})
2325
+ return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ C(et, { children: [
2326
+ /* @__PURE__ */ r(Ko, {}),
2327
+ /* @__PURE__ */ r(ti, {})
2344
2328
  ] }), t[0] = e) : e = t[0], e;
2345
- }), oi = w((t) => {
2346
- const e = y(46);
2329
+ }), oi = M((t) => {
2330
+ const e = x(46);
2347
2331
  let o, n;
2348
2332
  e[0] !== t ? ({
2349
2333
  children: o,
@@ -2354,58 +2338,58 @@ const ei = {
2354
2338
  const {
2355
2339
  enableFloatingTime: i,
2356
2340
  onItemClick: s
2357
- } = oe(l), [r, c] = le(!1), [f, u] = le(!1), [d, h] = le(!1), [m, g] = le(void 0), [p, b] = le(!1), [S, _] = Tt();
2341
+ } = oe(l), [a, c] = le(!1), [f, u] = le(!1), [d, h] = le(!1), [m, g] = le(void 0), [b, p] = le(!1), [S, _] = Tt();
2358
2342
  let v;
2359
2343
  e[4] !== _ ? (v = () => {
2360
- c(!1), u(!1), h(!1), g(void 0), _(!1), b(!1);
2344
+ c(!1), u(!1), h(!1), g(void 0), _(!1), p(!1);
2361
2345
  }, e[4] = _, e[5] = v) : v = e[5];
2362
- const C = v;
2363
- let I;
2364
- e[6] !== s ? (I = (B) => {
2365
- B === "annotations" ? g("annotations") : B === "search" ? h(!0) : B === "help" ? u(!0) : B === "toc" ? c(!0) : B === "bookmarks" ? g("bookmarks") : B === "gallery" && b(!0), s?.(B);
2366
- }, e[6] = s, e[7] = I) : I = e[7];
2367
- const k = I;
2346
+ const y = v;
2368
2347
  let $;
2369
- e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ a(ni, {}), e[8] = $) : $ = e[8];
2370
- let O;
2371
- e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ a(hl, {}), e[9] = O) : O = e[9];
2348
+ e[6] !== s ? ($ = (E) => {
2349
+ E === "annotations" ? g("annotations") : E === "search" ? h(!0) : E === "help" ? u(!0) : E === "toc" ? c(!0) : E === "bookmarks" ? g("bookmarks") : E === "gallery" && p(!0), s?.(E);
2350
+ }, e[6] = s, e[7] = $) : $ = e[7];
2351
+ const k = $;
2352
+ let I;
2353
+ e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ r(ni, {}), e[8] = I) : I = e[8];
2354
+ let R;
2355
+ e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ r(hl, {}), e[9] = R) : R = e[9];
2372
2356
  let z;
2373
- e[10] !== p ? (z = /* @__PURE__ */ a(sl, { open: p, setOpen: b }), e[10] = p, e[11] = z) : z = e[11];
2374
- let E;
2375
- e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ a(Ll, {}), e[12] = E) : E = e[12];
2376
- let T;
2377
- e[13] !== k ? (T = /* @__PURE__ */ a(Al, { onItemClick: k }), e[13] = k, e[14] = T) : T = e[14];
2378
- let N, M, H, Q, K;
2379
- e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (K = /* @__PURE__ */ a(Kl, {}), N = /* @__PURE__ */ a(lo, {}), M = /* @__PURE__ */ a(ho, {}), H = /* @__PURE__ */ a(Yo, {}), Q = /* @__PURE__ */ a(To, {}), e[15] = N, e[16] = M, e[17] = H, e[18] = Q, e[19] = K) : (N = e[15], M = e[16], H = e[17], Q = e[18], K = e[19]);
2357
+ e[10] !== b ? (z = /* @__PURE__ */ r(sl, { open: b, setOpen: p }), e[10] = b, e[11] = z) : z = e[11];
2358
+ let L;
2359
+ e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ r(Ll, {}), e[12] = L) : L = e[12];
2360
+ let O;
2361
+ e[13] !== k ? (O = /* @__PURE__ */ r(Al, { onItemClick: k }), e[13] = k, e[14] = O) : O = e[14];
2362
+ let N, w, H, Q, K;
2363
+ e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (K = /* @__PURE__ */ r(Kl, {}), N = /* @__PURE__ */ r(lo, {}), w = /* @__PURE__ */ r(ho, {}), H = /* @__PURE__ */ r(Yo, {}), Q = /* @__PURE__ */ r(To, {}), e[15] = N, e[16] = w, e[17] = H, e[18] = Q, e[19] = K) : (N = e[15], w = e[16], H = e[17], Q = e[18], K = e[19]);
2380
2364
  let V;
2381
- e[20] !== f ? (V = /* @__PURE__ */ a(cl, { open: f, setOpen: u }), e[20] = f, e[21] = V) : V = e[21];
2365
+ e[20] !== f ? (V = /* @__PURE__ */ r(cl, { open: f, setOpen: u }), e[20] = f, e[21] = V) : V = e[21];
2382
2366
  let W;
2383
- e[22] !== r || e[23] !== C ? (W = /* @__PURE__ */ a(Ql, { open: r, setOpen: c, onNavigate: C }), e[22] = r, e[23] = C, e[24] = W) : W = e[24];
2367
+ e[22] !== a || e[23] !== y ? (W = /* @__PURE__ */ r(Ql, { open: a, setOpen: c, onNavigate: y }), e[22] = a, e[23] = y, e[24] = W) : W = e[24];
2384
2368
  let G;
2385
- e[25] !== d || e[26] !== C ? (G = /* @__PURE__ */ a(jl, { open: d, setOpen: h, onNavigate: C }), e[25] = d, e[26] = C, e[27] = G) : G = e[27];
2386
- let F;
2387
- e[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (F = (B) => g(B ? "annotations" : void 0), e[28] = F) : F = e[28];
2369
+ e[25] !== d || e[26] !== y ? (G = /* @__PURE__ */ r(Ul, { open: d, setOpen: h, onNavigate: y }), e[25] = d, e[26] = y, e[27] = G) : G = e[27];
2370
+ let D;
2371
+ e[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = (E) => g(E ? "annotations" : void 0), e[28] = D) : D = e[28];
2388
2372
  let P;
2389
- e[29] !== m || e[30] !== C ? (P = /* @__PURE__ */ a(yo, { openWith: m, setOpen: F, onNavigate: C }), e[29] = m, e[30] = C, e[31] = P) : P = e[31];
2373
+ e[29] !== m || e[30] !== y ? (P = /* @__PURE__ */ r(yo, { openWith: m, setOpen: D, onNavigate: y }), e[29] = m, e[30] = y, e[31] = P) : P = e[31];
2390
2374
  const Y = i || S;
2391
2375
  let Z;
2392
- e[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = /* @__PURE__ */ a(pl, {}), e[32] = Z) : Z = e[32];
2376
+ e[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = /* @__PURE__ */ r(pl, {}), e[32] = Z) : Z = e[32];
2393
2377
  let A;
2394
- e[33] !== Y ? (A = /* @__PURE__ */ a(tt, { present: Y, animationName: ei, animationDuration: "slow", overflow: "hidden", children: Z }), e[33] = Y, e[34] = A) : A = e[34];
2395
- let L;
2396
- e[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ a(Bo, {}), e[35] = L) : L = e[35];
2378
+ e[33] !== Y ? (A = /* @__PURE__ */ r(tt, { present: Y, animationName: ei, animationDuration: "slow", overflow: "hidden", children: Z }), e[33] = Y, e[34] = A) : A = e[34];
2379
+ let F;
2380
+ e[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ r(Bo, {}), e[35] = F) : F = e[35];
2397
2381
  let X;
2398
- return e[36] !== o || e[37] !== n || e[38] !== V || e[39] !== W || e[40] !== G || e[41] !== P || e[42] !== A || e[43] !== z || e[44] !== T ? (X = /* @__PURE__ */ x(et, { children: [
2399
- $,
2400
- /* @__PURE__ */ x(he, { position: "absolute", top: 0, left: 0, height: "100%", width: "100%", overflow: "hidden", "data-prose-react-reader": !0, ...n, children: [
2382
+ return e[36] !== o || e[37] !== n || e[38] !== V || e[39] !== W || e[40] !== G || e[41] !== P || e[42] !== A || e[43] !== z || e[44] !== O ? (X = /* @__PURE__ */ C(et, { children: [
2383
+ I,
2384
+ /* @__PURE__ */ C(he, { position: "absolute", top: 0, left: 0, height: "100%", width: "100%", overflow: "hidden", "data-prose-react-reader": !0, ...n, children: [
2401
2385
  o,
2402
- O,
2386
+ R,
2403
2387
  z,
2404
- E,
2405
- T,
2388
+ L,
2389
+ O,
2406
2390
  K,
2407
2391
  N,
2408
- M,
2392
+ w,
2409
2393
  H,
2410
2394
  Q,
2411
2395
  V,
@@ -2413,11 +2397,11 @@ const ei = {
2413
2397
  G,
2414
2398
  P,
2415
2399
  A,
2416
- L
2400
+ F
2417
2401
  ] })
2418
- ] }), e[36] = o, e[37] = n, e[38] = V, e[39] = W, e[40] = G, e[41] = P, e[42] = A, e[43] = z, e[44] = T, e[45] = X) : X = e[45], X;
2419
- }), Ii = w((t) => {
2420
- const e = y(16);
2402
+ ] }), e[36] = o, e[37] = n, e[38] = V, e[39] = W, e[40] = G, e[41] = P, e[42] = A, e[43] = z, e[44] = O, e[45] = X) : X = e[45], X;
2403
+ }), $i = M((t) => {
2404
+ const e = x(16);
2421
2405
  let o, n, l;
2422
2406
  e[0] !== t ? ({
2423
2407
  children: o,
@@ -2429,22 +2413,22 @@ const ei = {
2429
2413
  const {
2430
2414
  container: s
2431
2415
  } = i;
2432
- let r;
2433
- e[6] !== s ? (r = s === void 0 ? {} : s, e[6] = s, e[7] = r) : r = e[7];
2416
+ let a;
2417
+ e[6] !== s ? (a = s === void 0 ? {} : s, e[6] = s, e[7] = a) : a = e[7];
2434
2418
  const {
2435
2419
  props: c
2436
- } = r;
2420
+ } = a;
2437
2421
  let f;
2438
2422
  e[8] !== c ? (f = c === void 0 ? {} : c, e[8] = c, e[9] = f) : f = e[9];
2439
2423
  const u = f;
2440
2424
  let d;
2441
- e[10] !== o || e[11] !== u ? (d = /* @__PURE__ */ a(oi, { ...u, children: o }), e[10] = o, e[11] = u, e[12] = d) : d = e[12];
2425
+ e[10] !== o || e[11] !== u ? (d = /* @__PURE__ */ r(oi, { ...u, children: o }), e[10] = o, e[11] = u, e[12] = d) : d = e[12];
2442
2426
  let h;
2443
- return e[13] !== n || e[14] !== d ? (h = /* @__PURE__ */ a(Lo, { ...n, children: d }), e[13] = n, e[14] = d, e[15] = h) : h = e[15], h;
2427
+ return e[13] !== n || e[14] !== d ? (h = /* @__PURE__ */ r(Lo, { ...n, children: d }), e[13] = n, e[14] = d, e[15] = h) : h = e[15], h;
2444
2428
  });
2445
2429
  export {
2446
2430
  no as BOOKMARK_AREA_DATA_ATTRIBUTE,
2447
2431
  Wt as MAX_ZOOM_SCALE,
2448
- Ii as ReactReader
2432
+ $i as ReactReader
2449
2433
  };
2450
2434
  //# sourceMappingURL=index.js.map