@prose-reader/react-reader 1.297.0 → 1.299.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,32 +1,33 @@
1
- import { jsx as a, jsxs as y, Fragment as ve } from "react/jsx-runtime";
2
- import { c as x } from "react/compiler-runtime";
3
- import { Presence as Ze, Button as ue, IconButton as te, Drawer as he, Portal as bt, Box as le, Stack as ee, Text as U, Textarea as vn, Dialog as ae, List as ge, Link as Mt, Tabs as me, useBreakpointValue as Cn, createToaster as xn, Toaster as yn, Toast as je, Spinner as In, RadioGroup as nt, Slider as fe, HStack as ce, For as Tn, Fieldset as xe, Heading as xt, Kbd as Ft, chakra as kn, Popover as qe, Progress as lt, Collapsible as yt, Field as et, Input as $n } from "@chakra-ui/react";
1
+ import { jsx as a, jsxs as y, Fragment as xe } from "react/jsx-runtime";
2
+ import { c as C } from "react/compiler-runtime";
3
+ import { Presence as Qe, Button as he, IconButton as te, Drawer as me, Portal as St, Box as oe, Stack as ee, Text as U, Textarea as Cn, Dialog as ae, List as pe, Link as Ot, Tabs as ge, useBreakpointValue as yn, createToaster as In, Toaster as Tn, Toast as qe, Spinner as kn, RadioGroup as ot, Slider as ue, HStack as ce, For as $n, Fieldset as ye, Heading as yt, Kbd as Lt, chakra as Rn, Popover as Ke, Progress as st, Collapsible as It, Field as tt, Input as Mn } from "@chakra-ui/react";
4
4
  import * as de from "react";
5
- import Rn, { createContext as Mn, useContext as Xt, memo as N, useState as ne, useEffect as oe, useRef as _e, useLayoutEffect as On } from "react";
6
- import { FaEdit as An } from "react-icons/fa";
7
- import { LuNotebookPen as st, LuX as wn, LuBookmark as zn, LuCheck as Pn, LuArrowBigRight as En, LuArrowBigLeft as Dn, LuPause as Bn, LuPlay as Fn, LuChevronDown as Ln, LuCircleHelp as Nn, LuTableOfContents as Hn, LuSearch as Vn, LuZoomOut as Wn, LuZoomIn as Gn, LuGalleryHorizontal as Un, LuCircleCheck as Lt } from "react-icons/lu";
8
- import { signal as Ke, useObserve as H, useSignalValue as Tt, useSubscribe as pe, isDefined as Jt, useConstant as it, useMemoCompare as jn, useLiveRef as qn, useSignalState as Kn } from "reactjrx";
9
- import { Subject as Yn, EMPTY as kt, switchMap as Ce, map as J, startWith as $t, tap as Ot, filter as gt, of as pt, NEVER as Ye, withLatestFrom as At, distinctUntilChanged as be, combineLatest as at, throttleTime as en, debounceTime as Zn, shareReplay as Qn, mergeMap as Xn, Observable as Jn, skip as eo, merge as tn, timer as nn, first as to, finalize as no, BehaviorSubject as on, animationFrameScheduler as oo } from "rxjs";
10
- import { pick as io, watchKeys as ln, isShallowEqual as sn, setPropertyIfChanged as Nt, setStylePropertyIfChanged as Ht, observeIntersection as lo, shouldUseComputedSpreadModeForViewport as so, isHtmlTagElement as ro } from "@prose-reader/core";
11
- import { createPortal as wt } from "react-dom";
12
- import { isShallowEqual as ao } from "@prose-reader/shared";
13
- import { MdScreenRotation as co, MdOutlineFitScreen as fo, MdFullscreenExit as uo, MdFullscreen as ho } from "react-icons/md";
14
- import { BiFontSize as mo } from "react-icons/bi";
15
- import { BsBookmarks as go } from "react-icons/bs";
16
- import { RiGalleryView2 as po } from "react-icons/ri";
17
- import { RxDoubleArrowUp as bo, RxDoubleArrowLeft as So, RxDoubleArrowDown as _o, RxDoubleArrowRight as vo } from "react-icons/rx";
18
- import Co from "rc-slider";
5
+ import On, { createContext as An, useContext as en, memo as N, useState as ne, useEffect as ie, useRef as ve, useLayoutEffect as wn, useCallback as Nt } from "react";
6
+ import { FaEdit as zn } from "react-icons/fa";
7
+ import { LuNotebookPen as rt, LuX as Pn, LuBookmark as En, LuCheck as Dn, LuArrowBigRight as Bn, LuArrowBigLeft as Fn, LuPause as Ln, LuPlay as Nn, LuChevronDown as Hn, LuCircleHelp as Vn, LuTableOfContents as Wn, LuSearch as Gn, LuZoomOut as Un, LuZoomIn as jn, LuGalleryHorizontal as qn, LuCircleCheck as Ht } from "react-icons/lu";
8
+ import { signal as Ye, useObserve as H, useSignalValue as kt, useSubscribe as be, isDefined as tn, useConstant as lt, useMemoCompare as Kn, useLiveRef as Yn, useSignalState as Zn } from "reactjrx";
9
+ import { Subject as Qn, EMPTY as $t, switchMap as Ce, map as J, startWith as Rt, tap as At, filter as pt, of as bt, NEVER as Ze, withLatestFrom as wt, distinctUntilChanged as Se, combineLatest as ct, throttleTime as nn, debounceTime as Xn, shareReplay as Jn, mergeMap as eo, Observable as to, skip as no, merge as on, timer as ln, first as oo, finalize as io, BehaviorSubject as sn, animationFrameScheduler as lo } from "rxjs";
10
+ import { pick as so, watchKeys as rn, isShallowEqual as an, setPropertyIfChanged as Vt, setStylePropertyIfChanged as Wt, observeIntersection as ro, shouldUseComputedSpreadModeForViewport as ao, isHtmlTagElement as co } from "@prose-reader/core";
11
+ import { createPortal as zt } from "react-dom";
12
+ import { isShallowEqual as fo } from "@prose-reader/shared";
13
+ import { MdScreenRotation as uo, MdOutlineFitScreen as ho, MdFullscreenExit as mo, MdFullscreen as go } from "react-icons/md";
14
+ import { BiFontSize as po } from "react-icons/bi";
15
+ import { BsBookmarks as bo } from "react-icons/bs";
16
+ import { RiGalleryView2 as So } from "react-icons/ri";
17
+ import { RxDoubleArrowUp as _o, RxDoubleArrowLeft as vo, RxDoubleArrowDown as xo, RxDoubleArrowRight as Co } from "react-icons/rx";
18
+ import yo from "rc-slider";
19
19
  import "rc-slider/assets/index.css";
20
- import { HiOutlineInformationCircle as xo } from "react-icons/hi";
21
- import { IoIosArrowBack as yo, IoMdMore as Io } from "react-icons/io";
22
- const To = "data-bookmark-area", rn = 5, an = () => ({
20
+ import { HiOutlineInformationCircle as Io } from "react-icons/hi";
21
+ import { IoIosArrowBack as To, IoMdMore as ko } from "react-icons/io";
22
+ import fe from "screenfull";
23
+ const $o = "data-bookmark-area", cn = 5, dn = () => ({
23
24
  _quickMenuOpen: !1,
24
25
  _onQuickMenuOpenChange: (t) => t,
25
26
  reader: void 0,
26
- quickMenuBottomBarBoundingBoxSignal: Ke({
27
+ quickMenuBottomBarBoundingBoxSignal: Ye({
27
28
  default: void 0
28
29
  }),
29
- notificationsSubject: new Yn(),
30
+ notificationsSubject: new Qn(),
30
31
  refitMenuOpen: !1,
31
32
  onRefitMenuOpenChange: () => {
32
33
  },
@@ -38,23 +39,23 @@ const To = "data-bookmark-area", rn = 5, an = () => ({
38
39
  uncontrolledFontSize: 1,
39
40
  enableFloatingProgress: !0,
40
41
  selectedHighlight: void 0
41
- }), zt = Mn(Ke({
42
- default: an()
43
- })), ie = (t) => {
44
- const e = x(9), o = Xt(zt);
42
+ }), Pt = An(Ye({
43
+ default: dn()
44
+ })), le = (t) => {
45
+ const e = C(9), o = en(Pt);
45
46
  let n;
46
- e[0] !== o || e[1] !== t ? (n = () => o.pipe(ln(t)), e[0] = o, e[1] = t, e[2] = n) : n = e[2];
47
+ e[0] !== o || e[1] !== t ? (n = () => o.pipe(rn(t)), e[0] = o, e[1] = t, e[2] = n) : n = e[2];
47
48
  let i;
48
- e[3] !== o.value || e[4] !== t ? (i = io(o.value, t), e[3] = o.value, e[4] = t, e[5] = i) : i = e[5];
49
+ e[3] !== o.value || e[4] !== t ? (i = so(o.value, t), e[3] = o.value, e[4] = t, e[5] = i) : i = e[5];
49
50
  let l;
50
51
  e[6] !== i ? (l = {
51
- compareFn: sn,
52
+ compareFn: an,
52
53
  defaultValue: i
53
54
  }, e[6] = i, e[7] = l) : l = e[7];
54
55
  let s;
55
56
  return e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = [], e[8] = s) : s = e[8], H(n, l, s).data;
56
- }, Qe = () => Xt(zt), ko = 24, cn = N((t) => {
57
- const e = x(9);
57
+ }, Xe = () => en(Pt), Ro = 24, fn = N((t) => {
58
+ const e = C(9);
58
59
  let o, n;
59
60
  e[0] !== t ? ({
60
61
  children: o,
@@ -64,7 +65,7 @@ const To = "data-bookmark-area", rn = 5, an = () => ({
64
65
  e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = ["quickMenuBottomBarBoundingBoxSignal", "zoomMaxScale"], e[3] = i) : i = e[3];
65
66
  const {
66
67
  quickMenuBottomBarBoundingBoxSignal: l
67
- } = ie(i), r = Tt(l)?.borderBoxSize?.[0]?.blockSize || ko;
68
+ } = le(i), r = kt(l)?.borderBoxSize?.[0]?.blockSize || Ro;
68
69
  let c;
69
70
  e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = {
70
71
  _open: "fade-in",
@@ -72,28 +73,28 @@ const To = "data-bookmark-area", rn = 5, an = () => ({
72
73
  }, e[4] = c) : c = e[4];
73
74
  const d = `calc(${r}px + var(--chakra-spacing-4))`;
74
75
  let u;
75
- return e[5] !== o || e[6] !== n || e[7] !== d ? (u = /* @__PURE__ */ a(Ze, { animationName: c, animationDuration: "moderate", position: "absolute", bottom: d, 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] = d, e[8] = u) : u = e[8], u;
76
+ return e[5] !== o || e[6] !== n || e[7] !== d ? (u = /* @__PURE__ */ a(Qe, { animationName: c, animationDuration: "moderate", position: "absolute", bottom: d, 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] = d, e[8] = u) : u = e[8], u;
76
77
  }), j = () => {
77
- const t = x(1);
78
+ const t = C(1);
78
79
  let e;
79
80
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["reader"], t[0] = e) : e = t[0];
80
81
  const {
81
82
  reader: o
82
- } = ie(e);
83
+ } = le(e);
83
84
  return o;
84
- }, dn = (t) => !!t && "__PROSE_READER_ENHANCER_SEARCH" in t, $o = (t) => !!t && "__PROSE_READER_ENHANCER_AUDIO" in t, rt = (t) => !!t && "__PROSE_READER_ENHANCER_ANNOTATIONS" in t, fn = (t) => !!t && "__PROSE_READER_ENHANCER_GALLERY" in t, un = (t) => !!t && "__PROSE_READER_ENHANCER_REFIT" in t, ct = () => {
85
- const t = x(2), e = j();
85
+ }, un = (t) => !!t && "__PROSE_READER_ENHANCER_SEARCH" in t, Mo = (t) => !!t && "__PROSE_READER_ENHANCER_AUDIO" in t, at = (t) => !!t && "__PROSE_READER_ENHANCER_ANNOTATIONS" in t, hn = (t) => !!t && "__PROSE_READER_ENHANCER_GALLERY" in t, mn = (t) => !!t && "__PROSE_READER_ENHANCER_REFIT" in t, dt = () => {
86
+ const t = C(2), e = j();
86
87
  let o;
87
- return t[0] !== e ? (o = rt(e) ? e : void 0, t[0] = e, t[1] = o) : o = t[1], o;
88
- }, Ro = () => {
89
- const t = x(16), e = ct(), o = Qe();
88
+ return t[0] !== e ? (o = at(e) ? e : void 0, t[0] = e, t[1] = o) : o = t[1], o;
89
+ }, Oo = () => {
90
+ const t = C(16), e = dt(), o = Xe();
90
91
  let n;
91
92
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = ["selectedHighlight"], t[0] = n) : n = t[0];
92
93
  const {
93
94
  selectedHighlight: i
94
- } = ie(n);
95
+ } = le(n);
95
96
  let l;
96
- t[1] !== e ? (l = () => e?.selection.selectionOver$.pipe(Ce(() => e.selection.selectionEnd$.pipe(J(Mo), $t(!0)))) ?? kt, t[1] = e, t[2] = l) : l = t[2];
97
+ t[1] !== e ? (l = () => e?.selection.selectionOver$.pipe(Ce(() => e.selection.selectionEnd$.pipe(J(Ao), Rt(!0)))) ?? $t, t[1] = e, t[2] = l) : l = t[2];
97
98
  let s;
98
99
  t[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = {
99
100
  defaultValue: !1
@@ -114,34 +115,34 @@ const To = "data-bookmark-area", rn = 5, an = () => ({
114
115
  }));
115
116
  }, t[6] = o, t[7] = e?.selection, t[8] = u) : u = t[8];
116
117
  let f;
117
- t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(An, {}), t[9] = f) : f = t[9];
118
+ t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(zn, {}), t[9] = f) : f = t[9];
118
119
  let h;
119
- t[10] !== u ? (h = /* @__PURE__ */ y(ue, { variant: "outline", size: "sm", onClick: u, children: [
120
+ t[10] !== u ? (h = /* @__PURE__ */ y(he, { variant: "outline", size: "sm", onClick: u, children: [
120
121
  f,
121
122
  "Annotate"
122
123
  ] }), t[10] = u, t[11] = h) : h = t[11];
123
124
  let m;
124
- t[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ y(ue, { variant: "outline", size: "sm", disabled: !0, children: [
125
- /* @__PURE__ */ a(st, {}),
125
+ t[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ y(he, { variant: "outline", size: "sm", disabled: !0, children: [
126
+ /* @__PURE__ */ a(rt, {}),
126
127
  "Bookmark"
127
128
  ] }), t[12] = m) : m = t[12];
128
129
  let g;
129
- return t[13] !== d || t[14] !== h ? (g = /* @__PURE__ */ y(cn, { present: d, children: [
130
+ return t[13] !== d || t[14] !== h ? (g = /* @__PURE__ */ y(fn, { present: d, children: [
130
131
  h,
131
132
  m
132
133
  ] }), t[13] = d, t[14] = h, t[15] = g) : g = t[15], g;
133
134
  };
134
- function Mo() {
135
+ function Ao() {
135
136
  return !1;
136
137
  }
137
- const Oo = (t, e = 50) => t.length <= e ? t : `${t.slice(0, e)}...`, hn = de.forwardRef(function(e, o) {
138
- const n = x(6);
138
+ const wo = (t, e = 50) => t.length <= e ? t : `${t.slice(0, e)}...`, gn = de.forwardRef(function(e, o) {
139
+ const n = C(6);
139
140
  let i;
140
- n[0] !== e.children ? (i = e.children ?? /* @__PURE__ */ a(wn, {}), n[0] = e.children, n[1] = i) : i = n[1];
141
+ n[0] !== e.children ? (i = e.children ?? /* @__PURE__ */ a(Pn, {}), n[0] = e.children, n[1] = i) : i = n[1];
141
142
  let l;
142
143
  return n[2] !== e || n[3] !== o || n[4] !== i ? (l = /* @__PURE__ */ a(te, { variant: "ghost", "aria-label": "Close", ref: o, ...e, children: i }), n[2] = e, n[3] = o, n[4] = i, n[5] = l) : l = n[5], l;
143
- }), Ao = de.forwardRef(function(e, o) {
144
- const n = x(17);
144
+ }), zo = de.forwardRef(function(e, o) {
145
+ const n = C(17);
145
146
  let i, l, s, r, c;
146
147
  n[0] !== e ? ({
147
148
  children: i,
@@ -152,27 +153,27 @@ const Oo = (t, e = 50) => t.length <= e ? t : `${t.slice(0, e)}...`, hn = de.for
152
153
  } = e, n[0] = e, n[1] = i, n[2] = l, n[3] = s, n[4] = r, n[5] = c) : (i = n[1], l = n[2], s = n[3], r = n[4], c = n[5]);
153
154
  const u = !(c === void 0 ? !0 : c);
154
155
  let f;
155
- n[6] !== i || n[7] !== o || n[8] !== r ? (f = /* @__PURE__ */ a(he.Content, { ref: o, ...r, asChild: !1, children: i }), n[6] = i, n[7] = o, n[8] = r, n[9] = f) : f = n[9];
156
+ n[6] !== i || n[7] !== o || n[8] !== r ? (f = /* @__PURE__ */ a(me.Content, { ref: o, ...r, asChild: !1, children: i }), n[6] = i, n[7] = o, n[8] = r, n[9] = f) : f = n[9];
156
157
  let h;
157
- n[10] !== l || n[11] !== f ? (h = /* @__PURE__ */ a(he.Positioner, { padding: l, children: f }), n[10] = l, n[11] = f, n[12] = h) : h = n[12];
158
+ n[10] !== l || n[11] !== f ? (h = /* @__PURE__ */ a(me.Positioner, { padding: l, children: f }), n[10] = l, n[11] = f, n[12] = h) : h = n[12];
158
159
  let m;
159
- return n[13] !== s || n[14] !== u || n[15] !== h ? (m = /* @__PURE__ */ a(bt, { 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__ */ a(St, { disabled: u, container: s, children: h }), n[13] = s, n[14] = u, n[15] = h, n[16] = m) : m = n[16], m;
160
161
  });
161
162
  de.forwardRef(function(e, o) {
162
- const n = x(5);
163
+ const n = C(5);
163
164
  let i;
164
- n[0] !== o ? (i = /* @__PURE__ */ a(hn, { size: "sm", ref: o }), n[0] = o, n[1] = i) : i = n[1];
165
+ n[0] !== o ? (i = /* @__PURE__ */ a(gn, { size: "sm", ref: o }), n[0] = o, n[1] = i) : i = n[1];
165
166
  let l;
166
- return n[2] !== e || n[3] !== i ? (l = /* @__PURE__ */ a(he.CloseTrigger, { position: "absolute", top: "2", insetEnd: "2", ...e, asChild: !0, children: i }), n[2] = e, n[3] = i, n[4] = l) : l = n[4], l;
167
+ return n[2] !== e || n[3] !== i ? (l = /* @__PURE__ */ a(me.CloseTrigger, { position: "absolute", top: "2", insetEnd: "2", ...e, asChild: !0, children: i }), n[2] = e, n[3] = i, n[4] = l) : l = n[4], l;
167
168
  });
168
- he.Trigger;
169
- const wo = he.Root;
170
- he.Footer;
171
- const zo = he.Header, Po = he.Body, Eo = he.Backdrop;
172
- he.Description;
173
- he.Title;
174
- he.ActionTrigger;
175
- const It = [
169
+ me.Trigger;
170
+ const Po = me.Root;
171
+ me.Footer;
172
+ const Eo = me.Header, Do = me.Body, Bo = me.Backdrop;
173
+ me.Description;
174
+ me.Title;
175
+ me.ActionTrigger;
176
+ const Tt = [
176
177
  "rgba(216, 191, 216, 1)",
177
178
  // Light purple
178
179
  "rgba(255, 225, 125, 1)",
@@ -183,8 +184,8 @@ const It = [
183
184
  // Light blue
184
185
  "rgba(255, 182, 193, 1)"
185
186
  // Light pink
186
- ], Do = N(() => {
187
- const t = x(58), e = ct();
187
+ ], Fo = N(() => {
188
+ const t = C(58), e = dt();
188
189
  let o;
189
190
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = ["selectedHighlight", "onAnnotationCreate", "onAnnotationUpdate", "onAnnotationDelete"], t[0] = o) : o = t[0];
190
191
  const {
@@ -192,33 +193,33 @@ const It = [
192
193
  onAnnotationCreate: i,
193
194
  onAnnotationUpdate: l,
194
195
  onAnnotationDelete: s
195
- } = ie(o), r = Qe(), {
196
+ } = le(o), r = Xe(), {
196
197
  highlight: c,
197
198
  selection: d
198
- } = n ?? {}, [u, f] = ne(It[0]), [h, m] = ne(""), g = !!(d ?? c);
199
+ } = n ?? {}, [u, f] = ne(Tt[0]), [h, m] = ne(""), g = !!(d ?? c);
199
200
  let p;
200
201
  t[1] !== r ? (p = () => {
201
- r.update(Bo);
202
+ r.update(Lo);
202
203
  }, t[1] = r, t[2] = p) : p = t[2];
203
204
  const b = p;
204
- let S;
205
- t[3] !== b ? (S = (B) => {
205
+ let _;
206
+ t[3] !== b ? (_ = (B) => {
206
207
  B.open || b();
207
- }, t[3] = b, t[4] = S) : S = t[4];
208
- const _ = S, v = c?.highlightColor, C = c?.notes;
208
+ }, t[3] = b, t[4] = _) : _ = t[4];
209
+ const S = _, v = c?.highlightColor, x = c?.notes;
209
210
  let T;
210
211
  t[5] !== m ? (T = () => {
211
212
  m("");
212
213
  }, t[5] = m, t[6] = T) : T = t[6];
213
214
  let I;
214
- t[7] !== g ? (I = [g], t[7] = g, t[8] = I) : I = t[8], oe(T, I), oe(() => {
215
- m(C ?? "");
216
- }, [C]), oe(() => {
217
- f(v || It[0]);
215
+ t[7] !== g ? (I = [g], t[7] = g, t[8] = I) : I = t[8], ie(T, I), ie(() => {
216
+ m(x ?? "");
217
+ }, [x]), ie(() => {
218
+ f(v || Tt[0]);
218
219
  }, [v, g]);
219
220
  let k;
220
221
  t[9] !== r || t[10] !== e?.annotations.highlightTap$ ? (k = function() {
221
- return e?.annotations.highlightTap$.pipe(Ot((se) => {
222
+ return e?.annotations.highlightTap$.pipe(At((se) => {
222
223
  const {
223
224
  highlight: L
224
225
  } = se;
@@ -229,15 +230,15 @@ const It = [
229
230
  }
230
231
  }));
231
232
  }));
232
- }, t[9] = r, t[10] = e?.annotations.highlightTap$, t[11] = k) : k = t[11], pe(k);
233
- const P = wo, E = "bottom";
233
+ }, t[9] = r, t[10] = e?.annotations.highlightTap$, t[11] = k) : k = t[11], be(k);
234
+ const P = Po, E = "bottom";
234
235
  let M;
235
- t[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ a(Eo, {}), t[12] = M) : M = t[12];
236
- const A = Ao, w = zo, $ = "1px", O = c ? "Highlight" : `Selection: "${Oo(d?.selection?.toString() ?? "", 10)}"`;
236
+ t[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ a(Bo, {}), t[12] = M) : M = t[12];
237
+ const A = zo, w = Eo, $ = "1px", O = c ? "Highlight" : `Selection: "${wo(d?.selection?.toString() ?? "", 10)}"`;
237
238
  let z;
238
239
  t[13] !== w || t[14] !== O ? (z = /* @__PURE__ */ a(w, { borderBottomWidth: $, children: O }), t[13] = w, t[14] = O, t[15] = z) : z = t[15];
239
240
  let D;
240
- t[16] !== u || t[17] !== f ? (D = It.map((B) => /* @__PURE__ */ a(le, { bgColor: B, height: 10, width: 10, borderRadius: "50%", cursor: "pointer", ...u === B && {
241
+ t[16] !== u || t[17] !== f ? (D = Tt.map((B) => /* @__PURE__ */ a(oe, { bgColor: B, height: 10, width: 10, borderRadius: "50%", cursor: "pointer", ...u === B && {
241
242
  border: "4px solid white"
242
243
  }, onClick: () => f(B) }, B)), t[16] = u, t[17] = f, t[18] = D) : D = t[18];
243
244
  let F;
@@ -247,7 +248,7 @@ const It = [
247
248
  let V;
248
249
  t[22] !== m ? (V = (B) => m(B.target.value), t[22] = m, t[23] = V) : V = t[23];
249
250
  let W;
250
- t[24] !== h || t[25] !== V ? (W = /* @__PURE__ */ a(vn, { value: h, onChange: V }), t[24] = h, t[25] = V, t[26] = W) : W = t[26];
251
+ t[24] !== h || t[25] !== V ? (W = /* @__PURE__ */ a(Cn, { value: h, onChange: V }), t[24] = h, t[25] = V, t[26] = W) : W = t[26];
251
252
  let G;
252
253
  t[27] !== F || t[28] !== W ? (G = /* @__PURE__ */ y(ee, { children: [
253
254
  F,
@@ -255,7 +256,7 @@ const It = [
255
256
  W
256
257
  ] }), t[27] = F, t[28] = W, t[29] = G) : G = t[29];
257
258
  let q;
258
- t[30] !== h || t[31] !== i || t[32] !== b || t[33] !== e?.annotations || t[34] !== u || t[35] !== d ? (q = !!d && /* @__PURE__ */ a(ue, { onClick: () => {
259
+ t[30] !== h || t[31] !== i || t[32] !== b || t[33] !== e?.annotations || t[34] !== u || t[35] !== d ? (q = !!d && /* @__PURE__ */ a(he, { onClick: () => {
259
260
  b();
260
261
  const B = e?.annotations.createAnnotation({
261
262
  ...d,
@@ -266,19 +267,19 @@ const It = [
266
267
  }, children: "Highlight" }), t[30] = h, t[31] = i, t[32] = b, t[33] = e?.annotations, t[34] = u, t[35] = d, t[36] = q) : q = t[36];
267
268
  let Y;
268
269
  t[37] !== h || t[38] !== c || t[39] !== s || t[40] !== l || t[41] !== b || t[42] !== u ? (Y = !!c && /* @__PURE__ */ y(ee, { direction: "row", children: [
269
- /* @__PURE__ */ a(ue, { flex: 1, onClick: () => {
270
+ /* @__PURE__ */ a(he, { flex: 1, onClick: () => {
270
271
  b(), l?.({
271
272
  id: c.id,
272
273
  highlightColor: u,
273
274
  notes: h
274
275
  });
275
276
  }, children: "Update" }),
276
- /* @__PURE__ */ a(ue, { flex: 1, variant: "surface", onClick: () => {
277
+ /* @__PURE__ */ a(he, { flex: 1, variant: "surface", onClick: () => {
277
278
  b(), s?.(c.id);
278
279
  }, children: "Remove" })
279
280
  ] }), t[37] = h, t[38] = c, t[39] = s, t[40] = l, t[41] = b, t[42] = u, t[43] = Y) : Y = t[43];
280
281
  let K;
281
- t[44] !== G || t[45] !== q || t[46] !== Y ? (K = /* @__PURE__ */ y(Po, { gap: 4, display: "flex", flexDirection: "column", pb: 4, children: [
282
+ t[44] !== G || t[45] !== q || t[46] !== Y ? (K = /* @__PURE__ */ y(Do, { gap: 4, display: "flex", flexDirection: "column", pb: 4, children: [
282
283
  G,
283
284
  q,
284
285
  Y
@@ -289,19 +290,19 @@ const It = [
289
290
  K
290
291
  ] }), t[48] = A, t[49] = z, t[50] = K, t[51] = Z) : Z = t[51];
291
292
  let X;
292
- return t[52] !== P || t[53] !== g || t[54] !== _ || t[55] !== Z || t[56] !== M ? (X = /* @__PURE__ */ y(P, { placement: E, onOpenChange: _, open: g, children: [
293
+ return t[52] !== P || t[53] !== g || t[54] !== S || t[55] !== Z || t[56] !== M ? (X = /* @__PURE__ */ y(P, { placement: E, onOpenChange: S, open: g, children: [
293
294
  M,
294
295
  Z
295
- ] }), t[52] = P, t[53] = g, t[54] = _, t[55] = Z, t[56] = M, t[57] = X) : X = t[57], X;
296
+ ] }), t[52] = P, t[53] = g, t[54] = S, t[55] = Z, t[56] = M, t[57] = X) : X = t[57], X;
296
297
  });
297
- function Bo(t) {
298
+ function Lo(t) {
298
299
  return {
299
300
  ...t,
300
301
  selectedHighlight: void 0
301
302
  };
302
303
  }
303
- const Ie = de.forwardRef(function(e, o) {
304
- const n = x(17);
304
+ const Te = de.forwardRef(function(e, o) {
305
+ const n = C(17);
305
306
  let i, l, s, r, c;
306
307
  n[0] !== e ? ({
307
308
  children: i,
@@ -316,38 +317,38 @@ const Ie = de.forwardRef(function(e, o) {
316
317
  let m;
317
318
  n[8] !== i || n[9] !== o || n[10] !== s ? (m = /* @__PURE__ */ a(ae.Positioner, { children: /* @__PURE__ */ a(ae.Content, { ref: o, ...s, asChild: !1, children: i }) }), n[8] = i, n[9] = o, n[10] = s, n[11] = m) : m = n[11];
318
319
  let g;
319
- return n[12] !== l || n[13] !== f || n[14] !== h || n[15] !== m ? (g = /* @__PURE__ */ y(bt, { disabled: f, container: l, children: [
320
+ return n[12] !== l || n[13] !== f || n[14] !== h || n[15] !== m ? (g = /* @__PURE__ */ y(St, { disabled: f, container: l, children: [
320
321
  h,
321
322
  m
322
323
  ] }), n[12] = l, n[13] = f, n[14] = h, n[15] = m, n[16] = g) : g = n[16], g;
323
- }), Te = de.forwardRef(function(e, o) {
324
- const n = x(6);
324
+ }), ke = de.forwardRef(function(e, o) {
325
+ const n = C(6);
325
326
  let i;
326
- n[0] !== e.children || n[1] !== o ? (i = /* @__PURE__ */ a(hn, { size: "sm", ref: o, children: e.children }), n[0] = e.children, n[1] = o, n[2] = i) : i = n[2];
327
+ n[0] !== e.children || n[1] !== o ? (i = /* @__PURE__ */ a(gn, { size: "sm", ref: o, children: e.children }), n[0] = e.children, n[1] = o, n[2] = i) : i = n[2];
327
328
  let l;
328
329
  return n[3] !== e || n[4] !== i ? (l = /* @__PURE__ */ a(ae.CloseTrigger, { position: "absolute", top: "2", insetEnd: "2", ...e, asChild: !0, children: i }), n[3] = e, n[4] = i, n[5] = l) : l = n[5], l;
329
- }), ke = ae.Root, $e = ae.Footer, Re = ae.Header, Me = ae.Body;
330
+ }), $e = ae.Root, Re = ae.Footer, Me = ae.Header, Oe = ae.Body;
330
331
  ae.Backdrop;
331
- const Oe = ae.Title;
332
+ const Ae = ae.Title;
332
333
  ae.Description;
333
334
  ae.Trigger;
334
- const Ae = ae.ActionTrigger, Fo = (t) => {
335
- const e = x(7), o = j();
335
+ const we = ae.ActionTrigger, No = (t) => {
336
+ const e = C(7), o = j();
336
337
  let n;
337
- e[0] !== o ? (n = rt(o) ? o : void 0, e[0] = o, e[1] = n) : n = e[1];
338
+ e[0] !== o ? (n = at(o) ? o : void 0, e[0] = o, e[1] = n) : n = e[1];
338
339
  const i = n;
339
340
  let l;
340
- e[2] !== t || e[3] !== i ? (l = () => i?.annotations.annotations$.pipe(J((r) => r.find((c) => c.id === t)), gt(Jt), Ce((r) => i.locateResource(r))), e[2] = t, e[3] = i, e[4] = l) : l = e[4];
341
+ e[2] !== t || e[3] !== i ? (l = () => i?.annotations.annotations$.pipe(J((r) => r.find((c) => c.id === t)), pt(tn), Ce((r) => i.locateResource(r))), e[2] = t, e[3] = i, e[4] = l) : l = e[4];
341
342
  let s;
342
343
  return e[5] !== i ? (s = [i], e[5] = i, e[6] = s) : s = e[6], H(l, s);
343
- }, mn = (t) => {
344
- const e = x(22), {
344
+ }, pn = (t) => {
345
+ const e = C(22), {
345
346
  id: o,
346
347
  onNavigate: n,
347
348
  allowLeftIcon: i
348
349
  } = t, l = i === void 0 ? !0 : i, s = j(), {
349
350
  data: r
350
- } = Fo(o);
351
+ } = No(o);
351
352
  let c;
352
353
  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
354
  const d = c;
@@ -356,7 +357,7 @@ const Ae = ae.ActionTrigger, Fo = (t) => {
356
357
  n(), s?.navigation.goToCfi(r?.meta.cfi ?? "");
357
358
  }, e[3] = r?.meta, e[4] = n, e[5] = s?.navigation, e[6] = u) : u = e[6];
358
359
  let f;
359
- e[7] !== l || e[8] !== r?.resource?.notes ? (f = r?.resource?.notes ? /* @__PURE__ */ a(ge.Indicator, { asChild: !0, children: /* @__PURE__ */ a(st, {}) }) : l ? /* @__PURE__ */ a(ge.Indicator, { asChild: !0, visibility: "hidden", children: /* @__PURE__ */ a(st, {}) }) : null, e[7] = l, e[8] = r?.resource?.notes, e[9] = f) : f = e[9];
360
+ e[7] !== l || e[8] !== r?.resource?.notes ? (f = r?.resource?.notes ? /* @__PURE__ */ a(pe.Indicator, { asChild: !0, children: /* @__PURE__ */ a(rt, {}) }) : l ? /* @__PURE__ */ a(pe.Indicator, { asChild: !0, visibility: "hidden", children: /* @__PURE__ */ a(rt, {}) }) : null, e[7] = l, e[8] = r?.resource?.notes, e[9] = f) : f = e[9];
360
361
  let h;
361
362
  e[10] !== r?.meta || e[11] !== d ? (h = d ? /* @__PURE__ */ a(U, { lineClamp: 2, fontSize: "md", children: d }) : /* @__PURE__ */ y(U, { lineClamp: 2, fontSize: "md", fontStyle: "italic", children: [
362
363
  "Page ",
@@ -371,98 +372,98 @@ const Ae = ae.ActionTrigger, Fo = (t) => {
371
372
  g
372
373
  ] }), e[15] = h, e[16] = g, e[17] = p) : p = e[17];
373
374
  let b;
374
- return e[18] !== u || e[19] !== f || e[20] !== p ? (b = /* @__PURE__ */ a(ge.Item, { children: /* @__PURE__ */ y(Mt, { href: "#", onClick: u, children: [
375
+ return e[18] !== u || e[19] !== f || e[20] !== p ? (b = /* @__PURE__ */ a(pe.Item, { children: /* @__PURE__ */ y(Ot, { href: "#", onClick: u, children: [
375
376
  f,
376
377
  p
377
378
  ] }) }), e[18] = u, e[19] = f, e[20] = p, e[21] = b) : b = e[21], b;
378
- }, St = () => {
379
- const t = x(5), e = j();
379
+ }, _t = () => {
380
+ const t = C(5), e = j();
380
381
  let o;
381
- t[0] !== e ? (o = rt(e) ? e : void 0, t[0] = e, t[1] = o) : o = t[1];
382
+ t[0] !== e ? (o = at(e) ? e : void 0, t[0] = e, t[1] = o) : o = t[1];
382
383
  const n = o;
383
384
  let i, l;
384
385
  return t[2] !== n ? (i = () => n?.annotations.annotations$.pipe(Ce((s) => n.locateResource(s))), l = [n], t[2] = n, t[3] = i, t[4] = l) : (i = t[3], l = t[4]), H(i, l);
385
- }, Lo = () => {
386
- const t = x(4), {
386
+ }, Ho = () => {
387
+ const t = C(4), {
387
388
  data: e
388
- } = St();
389
+ } = _t();
389
390
  let o;
390
- t[0] !== e ? (o = e?.filter(No), t[0] = e, t[1] = o) : o = t[1];
391
+ t[0] !== e ? (o = e?.filter(Vo), t[0] = e, t[1] = o) : o = t[1];
391
392
  let n;
392
393
  return t[2] !== o ? (n = {
393
394
  data: o
394
395
  }, t[2] = o, t[3] = n) : n = t[3], n;
395
396
  };
396
- function No(t) {
397
+ function Vo(t) {
397
398
  return t.meta.isCfiRange;
398
399
  }
399
- const Ho = (t) => {
400
- const e = x(5), {
400
+ const Wo = (t) => {
401
+ const e = C(5), {
401
402
  onNavigate: o
402
403
  } = t, {
403
404
  data: n
404
- } = Lo();
405
+ } = Ho();
405
406
  let i;
406
- e[0] !== n || e[1] !== o ? (i = n?.map((s) => /* @__PURE__ */ a(mn, { id: s.resource.id, onNavigate: o }, s.resource.id)), e[0] = n, e[1] = o, e[2] = i) : i = e[2];
407
+ e[0] !== n || e[1] !== o ? (i = n?.map((s) => /* @__PURE__ */ a(pn, { id: s.resource.id, onNavigate: o }, s.resource.id)), e[0] = n, e[1] = o, e[2] = i) : i = e[2];
407
408
  let l;
408
- return e[3] !== i ? (l = /* @__PURE__ */ a(ge.Root, { overflowY: "auto", gap: 3, pt: 4, variant: "plain", children: i }), e[3] = i, e[4] = l) : l = e[4], l;
409
- }, Vo = () => {
410
- const t = x(4), {
409
+ return e[3] !== i ? (l = /* @__PURE__ */ a(pe.Root, { overflowY: "auto", gap: 3, pt: 4, variant: "plain", children: i }), e[3] = i, e[4] = l) : l = e[4], l;
410
+ }, Go = () => {
411
+ const t = C(4), {
411
412
  data: e
412
- } = St();
413
+ } = _t();
413
414
  let o;
414
- t[0] !== e ? (o = e?.filter(Wo), t[0] = e, t[1] = o) : o = t[1];
415
+ t[0] !== e ? (o = e?.filter(Uo), t[0] = e, t[1] = o) : o = t[1];
415
416
  let n;
416
417
  return t[2] !== o ? (n = {
417
418
  data: o
418
419
  }, t[2] = o, t[3] = n) : n = t[3], n;
419
420
  };
420
- function Wo(t) {
421
+ function Uo(t) {
421
422
  return !t.meta.isCfiRange && !t.resource.notes;
422
423
  }
423
- const Go = (t) => {
424
- const e = x(5), {
424
+ const jo = (t) => {
425
+ const e = C(5), {
425
426
  onNavigate: o
426
427
  } = t, {
427
428
  data: n
428
- } = Vo();
429
+ } = Go();
429
430
  let i;
430
- e[0] !== n || e[1] !== o ? (i = n?.map((s) => /* @__PURE__ */ a(mn, { id: s.resource.id, onNavigate: o, allowLeftIcon: !1 }, s.resource.id)), e[0] = n, e[1] = o, e[2] = i) : i = e[2];
431
+ e[0] !== n || e[1] !== o ? (i = n?.map((s) => /* @__PURE__ */ a(pn, { id: s.resource.id, onNavigate: o, allowLeftIcon: !1 }, s.resource.id)), e[0] = n, e[1] = o, e[2] = i) : i = e[2];
431
432
  let l;
432
- return e[3] !== i ? (l = /* @__PURE__ */ a(ge.Root, { overflowY: "auto", gap: 3, pt: 4, variant: "plain", children: i }), e[3] = i, e[4] = l) : l = e[4], l;
433
- }, Uo = N((t) => {
434
- const e = x(11), {
433
+ return e[3] !== i ? (l = /* @__PURE__ */ a(pe.Root, { overflowY: "auto", gap: 3, pt: 4, variant: "plain", children: i }), e[3] = i, e[4] = l) : l = e[4], l;
434
+ }, qo = N((t) => {
435
+ const e = C(11), {
435
436
  onNavigate: o,
436
437
  defaultTab: n
437
438
  } = t, [i, l] = ne(n ?? "bookmarks");
438
439
  let s;
439
440
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = (h) => l(h.value), e[0] = s) : s = e[0];
440
441
  let r;
441
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ y(me.Trigger, { value: "bookmarks", children: [
442
- /* @__PURE__ */ a(zn, {}),
442
+ e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ y(ge.Trigger, { value: "bookmarks", children: [
443
+ /* @__PURE__ */ a(En, {}),
443
444
  "Bookmarks"
444
445
  ] }), e[1] = r) : r = e[1];
445
446
  let c;
446
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ y(me.List, { children: [
447
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ y(ge.List, { children: [
447
448
  r,
448
- /* @__PURE__ */ y(me.Trigger, { value: "annotations", children: [
449
- /* @__PURE__ */ a(st, {}),
449
+ /* @__PURE__ */ y(ge.Trigger, { value: "annotations", children: [
450
+ /* @__PURE__ */ a(rt, {}),
450
451
  "Annotations"
451
452
  ] }),
452
- /* @__PURE__ */ a(me.Indicator, {})
453
+ /* @__PURE__ */ a(ge.Indicator, {})
453
454
  ] }), e[2] = c) : c = e[2];
454
455
  let d;
455
- e[3] !== o ? (d = /* @__PURE__ */ a(me.Content, { value: "bookmarks", children: /* @__PURE__ */ a(Go, { onNavigate: o }) }), e[3] = o, e[4] = d) : d = e[4];
456
+ e[3] !== o ? (d = /* @__PURE__ */ a(ge.Content, { value: "bookmarks", children: /* @__PURE__ */ a(jo, { onNavigate: o }) }), e[3] = o, e[4] = d) : d = e[4];
456
457
  let u;
457
- e[5] !== o ? (u = /* @__PURE__ */ a(me.Content, { value: "annotations", children: /* @__PURE__ */ a(Ho, { onNavigate: o }) }), e[5] = o, e[6] = u) : u = e[6];
458
+ e[5] !== o ? (u = /* @__PURE__ */ a(ge.Content, { value: "annotations", children: /* @__PURE__ */ a(Wo, { onNavigate: o }) }), e[5] = o, e[6] = u) : u = e[6];
458
459
  let f;
459
- return e[7] !== d || e[8] !== u || e[9] !== i ? (f = /* @__PURE__ */ y(me.Root, { value: i, onValueChange: s, children: [
460
+ return e[7] !== d || e[8] !== u || e[9] !== i ? (f = /* @__PURE__ */ y(ge.Root, { value: i, onValueChange: s, children: [
460
461
  c,
461
462
  d,
462
463
  u
463
464
  ] }), e[7] = d, e[8] = u, e[9] = i, e[10] = f) : f = e[10], f;
464
- }), jo = N((t) => {
465
- const e = x(15), {
465
+ }), Ko = N((t) => {
466
+ const e = C(15), {
466
467
  openWith: o,
467
468
  setOpen: n,
468
469
  onNavigate: i
@@ -475,29 +476,29 @@ const Go = (t) => {
475
476
  md: "lg"
476
477
  }, e[2] = r) : r = e[2];
477
478
  let c;
478
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(Oe, { children: "Annotations" }) }), e[3] = c) : c = e[3];
479
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ a(Me, { children: /* @__PURE__ */ a(Ae, { children: "Annotations" }) }), e[3] = c) : c = e[3];
479
480
  let d;
480
- e[4] !== i || e[5] !== o ? (d = /* @__PURE__ */ a(Me, { flex: 1, children: /* @__PURE__ */ a(Uo, { onNavigate: i, defaultTab: o }) }), e[4] = i, e[5] = o, e[6] = d) : d = e[6];
481
+ e[4] !== i || e[5] !== o ? (d = /* @__PURE__ */ a(Oe, { flex: 1, children: /* @__PURE__ */ a(qo, { onNavigate: i, defaultTab: o }) }), e[4] = i, e[5] = o, e[6] = d) : d = e[6];
481
482
  let u, f;
482
- e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(Ae, { asChild: !0, children: /* @__PURE__ */ a(ue, { variant: "outline", children: "Cancel" }) }) }), f = /* @__PURE__ */ a(Te, {}), e[7] = u, e[8] = f) : (u = e[7], f = e[8]);
483
+ e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(we, { asChild: !0, children: /* @__PURE__ */ a(he, { variant: "outline", children: "Cancel" }) }) }), f = /* @__PURE__ */ a(ke, {}), e[7] = u, e[8] = f) : (u = e[7], f = e[8]);
483
484
  let h;
484
- e[9] !== d ? (h = /* @__PURE__ */ y(Ie, { height: "100%", children: [
485
+ e[9] !== d ? (h = /* @__PURE__ */ y(Te, { height: "100%", children: [
485
486
  c,
486
487
  d,
487
488
  u,
488
489
  f
489
490
  ] }), e[9] = d, e[10] = h) : h = e[10];
490
491
  let m;
491
- return e[11] !== l || e[12] !== s || e[13] !== h ? (m = /* @__PURE__ */ a(ke, { lazyMount: !0, placement: "center", open: l, onOpenChange: s, size: r, scrollBehavior: "inside", children: h }), e[11] = l, e[12] = s, e[13] = h, e[14] = m) : m = e[14], m;
492
- }), qo = (t) => {
493
- const e = x(5), {
492
+ return e[11] !== l || e[12] !== s || e[13] !== h ? (m = /* @__PURE__ */ a($e, { lazyMount: !0, placement: "center", open: l, onOpenChange: s, size: r, scrollBehavior: "inside", children: h }), e[11] = l, e[12] = s, e[13] = h, e[14] = m) : m = e[14], m;
493
+ }), Yo = (t) => {
494
+ const e = C(5), {
494
495
  absolutePageIndex: o,
495
496
  itemIndex: n
496
497
  } = t, i = j();
497
498
  let l, s;
498
- return e[0] !== o || e[1] !== n || e[2] !== i ? (l = () => i ? n !== void 0 ? pt(i.spine.spineItemsManager.get(n)) : o !== void 0 ? i.spine.pages.observeFromAbsolutePageIndex(o).pipe(J((r) => i.spine.spineItemsManager.get(r?.itemIndex))) : kt : kt, s = [n, o, i], e[0] = o, e[1] = n, e[2] = i, e[3] = l, e[4] = s) : (l = e[3], s = e[4]), H(l, s);
499
- }, Ko = (t) => {
500
- const e = x(9), {
499
+ return e[0] !== o || e[1] !== n || e[2] !== i ? (l = () => i ? n !== void 0 ? bt(i.spine.spineItemsManager.get(n)) : o !== void 0 ? i.spine.pages.observeFromAbsolutePageIndex(o).pipe(J((r) => i.spine.spineItemsManager.get(r?.itemIndex))) : $t : $t, s = [n, o, i], e[0] = o, e[1] = n, e[2] = i, e[3] = l, e[4] = s) : (l = e[3], s = e[4]), H(l, s);
500
+ }, Zo = (t) => {
501
+ const e = C(9), {
501
502
  absolutePageIndex: o,
502
503
  itemIndex: n
503
504
  } = t;
@@ -508,9 +509,9 @@ const Go = (t) => {
508
509
  }, e[0] = o, e[1] = n, e[2] = i) : i = e[2];
509
510
  const {
510
511
  data: l
511
- } = qo(i);
512
+ } = Yo(i);
512
513
  let s, r;
513
- e[3] !== l ? (s = () => l ? l.isReady$ : Ye, r = [l], e[3] = l, e[4] = s, e[5] = r) : (s = e[4], r = e[5]);
514
+ e[3] !== l ? (s = () => l ? l.isReady$ : Ze, r = [l], e[3] = l, e[4] = s, e[5] = r) : (s = e[4], r = e[5]);
514
515
  const {
515
516
  data: c
516
517
  } = H(s, r);
@@ -519,8 +520,8 @@ const Go = (t) => {
519
520
  spineItem: l,
520
521
  isReady: c
521
522
  }, e[6] = c, e[7] = l, e[8] = d) : d = e[8], d;
522
- }, Yo = N((t) => {
523
- const e = x(17), {
523
+ }, Qo = N((t) => {
524
+ const e = C(17), {
524
525
  absolutePageIndex: o,
525
526
  left: n,
526
527
  top: i,
@@ -532,11 +533,11 @@ const Go = (t) => {
532
533
  }, e[0] = o, e[1] = s) : s = e[1];
533
534
  const {
534
535
  isReady: r
535
- } = Ko(s), {
536
+ } = Zo(s), {
536
537
  data: c
537
- } = St();
538
+ } = _t();
538
539
  let d;
539
- e[2] !== o || e[3] !== c ? (d = c?.find((C) => C?.meta?.absolutePageIndex === o && !C.meta.isCfiRange), e[2] = o, e[3] = c, e[4] = d) : d = e[4];
540
+ e[2] !== o || e[3] !== c ? (d = c?.find((x) => x?.meta?.absolutePageIndex === o && !x.meta.isCfiRange), e[2] = o, e[3] = c, e[4] = d) : d = e[4];
540
541
  const u = d;
541
542
  if (!r)
542
543
  return null;
@@ -547,8 +548,8 @@ const Go = (t) => {
547
548
  _closed: "fade-out"
548
549
  }, e[5] = m) : m = e[5];
549
550
  const g = n + l, p = `${f}px solid #03030373`, b = `${f}px solid transparent`;
550
- let S;
551
- e[6] !== p || e[7] !== b ? (S = {
551
+ let _;
552
+ e[6] !== p || e[7] !== b ? (_ = {
552
553
  content: '""',
553
554
  position: "absolute",
554
555
  top: 0,
@@ -557,13 +558,13 @@ const Go = (t) => {
557
558
  height: 0,
558
559
  borderTop: p,
559
560
  borderLeft: b
560
- }, e[6] = p, e[7] = b, e[8] = S) : S = e[8];
561
- let _;
562
- e[9] !== f || e[10] !== g || e[11] !== S || e[12] !== i ? (_ = /* @__PURE__ */ a(le, { "data-bookmark-area": To, position: "absolute", left: g, transform: "translateX(-100%)", pointerEvents: "none", top: i, width: f, height: f, _before: S }), e[9] = f, e[10] = g, e[11] = S, e[12] = i, e[13] = _) : _ = e[13];
561
+ }, e[6] = p, e[7] = b, e[8] = _) : _ = e[8];
562
+ let S;
563
+ e[9] !== f || e[10] !== g || e[11] !== _ || e[12] !== i ? (S = /* @__PURE__ */ a(oe, { "data-bookmark-area": $o, position: "absolute", left: g, transform: "translateX(-100%)", pointerEvents: "none", top: i, width: f, height: f, _before: _ }), e[9] = f, e[10] = g, e[11] = _, e[12] = i, e[13] = S) : S = e[13];
563
564
  let v;
564
- return e[14] !== h || e[15] !== _ ? (v = /* @__PURE__ */ a(Ze, { present: h, lazyMount: !0, animationName: m, animationDuration: "moderate", children: _ }), e[14] = h, e[15] = _, e[16] = v) : v = e[16], v;
565
- }), Zo = N(() => {
566
- const t = x(8), e = j();
565
+ return e[14] !== h || e[15] !== S ? (v = /* @__PURE__ */ a(Qe, { present: h, lazyMount: !0, animationName: m, animationDuration: "moderate", children: S }), e[14] = h, e[15] = S, e[16] = v) : v = e[16], v;
566
+ }), Xo = N(() => {
567
+ const t = C(8), e = j();
567
568
  let o;
568
569
  t[0] !== e?.layoutInfo$ ? (o = () => e?.layoutInfo$, t[0] = e?.layoutInfo$, t[1] = o) : o = t[1];
569
570
  let n;
@@ -572,11 +573,11 @@ const Go = (t) => {
572
573
  data: i
573
574
  } = H(o, n);
574
575
  let l;
575
- t[4] !== i?.pages ? (l = i?.pages.map(Qo), t[4] = i?.pages, t[5] = l) : l = t[5];
576
+ t[4] !== i?.pages ? (l = i?.pages.map(Jo), t[4] = i?.pages, t[5] = l) : l = t[5];
576
577
  let s;
577
- return t[6] !== l ? (s = /* @__PURE__ */ a(ve, { children: l }), t[6] = l, t[7] = s) : s = t[7], s;
578
+ return t[6] !== l ? (s = /* @__PURE__ */ a(xe, { children: l }), t[6] = l, t[7] = s) : s = t[7], s;
578
579
  });
579
- function Qo(t, e) {
580
+ function Jo(t, e) {
580
581
  const {
581
582
  absoluteLayout: o
582
583
  } = t, {
@@ -584,100 +585,100 @@ function Qo(t, e) {
584
585
  top: i,
585
586
  width: l
586
587
  } = o;
587
- return /* @__PURE__ */ a(Yo, { absolutePageIndex: e, left: n, top: i, width: l }, e);
588
+ return /* @__PURE__ */ a(Qo, { absolutePageIndex: e, left: n, top: i, width: l }, e);
588
589
  }
589
- const tt = !0, Xo = 10, Jo = ({
590
+ const nt = !0, ei = 10, ti = ({
590
591
  position: t,
591
592
  containerSize: e,
592
593
  sizePercent: o
593
594
  }) => {
594
595
  const n = Math.min(e.width, e.height) * (o / 100);
595
596
  return t.x > e.width - n && t.y < n;
596
- }, ei = () => {
597
- const t = x(5), e = ct(), {
597
+ }, ni = () => {
598
+ const t = C(5), e = dt(), {
598
599
  data: o
599
- } = St(), n = Qe();
600
+ } = _t(), n = Xe();
600
601
  let i, l;
601
602
  t[0] !== o || t[1] !== e || t[2] !== n ? (i = () => e ? e.gestures.hooks.register("beforeTapGesture", (r) => {
602
603
  const {
603
604
  event$: c
604
605
  } = r;
605
- return c.pipe(At(e?.annotations.candidates$), J((d) => {
606
+ return c.pipe(wt(e?.annotations.candidates$), J((d) => {
606
607
  const [u, f] = d;
607
608
  if (!u.page)
608
- return tt;
609
+ return nt;
609
610
  const {
610
611
  spineItem: h,
611
612
  spineItemPageIndex: m,
612
613
  spineItemPagePosition: g,
613
614
  pageSize: p
614
615
  } = u.page;
615
- if (Jo({
616
+ if (ti({
616
617
  position: g,
617
618
  containerSize: p,
618
- sizePercent: Xo
619
+ sizePercent: ei
619
620
  })) {
620
- const S = e.spine.pages.fromSpineItemPageIndex(h, m);
621
- if (!S)
622
- return tt;
623
- const _ = o?.find((C) => C?.meta?.absolutePageIndex === S.absolutePageIndex && C.meta.range === void 0);
624
- if (_)
625
- return n.value.onAnnotationDelete?.(_.resource.id), !tt;
626
- if (f?.[S.absolutePageIndex]) {
627
- const C = e?.annotations.createAnnotation({
628
- absolutePageIndex: S.absolutePageIndex
621
+ const _ = e.spine.pages.fromSpineItemPageIndex(h, m);
622
+ if (!_)
623
+ return nt;
624
+ const S = o?.find((x) => x?.meta?.absolutePageIndex === _.absolutePageIndex && x.meta.range === void 0);
625
+ if (S)
626
+ return n.value.onAnnotationDelete?.(S.resource.id), !nt;
627
+ if (f?.[_.absolutePageIndex]) {
628
+ const x = e?.annotations.createAnnotation({
629
+ absolutePageIndex: _.absolutePageIndex
629
630
  });
630
- return C && n.value.onAnnotationCreate?.(C), !tt;
631
+ return x && n.value.onAnnotationCreate?.(x), !nt;
631
632
  }
632
633
  }
633
- return tt;
634
+ return nt;
634
635
  }));
635
- }) : void 0, l = [e, o, n], t[0] = o, t[1] = e, t[2] = n, t[3] = i, t[4] = l) : (i = t[3], l = t[4]), oe(i, l);
636
- }, ti = () => {
637
- const t = x(2), e = ct();
636
+ }) : void 0, l = [e, o, n], t[0] = o, t[1] = e, t[2] = n, t[3] = i, t[4] = l) : (i = t[3], l = t[4]), ie(i, l);
637
+ }, oi = () => {
638
+ const t = C(2), e = dt();
638
639
  let o;
639
640
  t[0] !== e ? (o = () => e?.gestures.hooks.register("beforeTapGesture", (i) => {
640
641
  const {
641
642
  event$: l
642
643
  } = i;
643
- return l.pipe(At(e.selection.lastSelectionOnPointerdown$), J((s) => {
644
+ return l.pipe(wt(e.selection.lastSelectionOnPointerdown$), J((s) => {
644
645
  const [r, c] = s, {
645
646
  event: d
646
647
  } = r, u = d.event.target;
647
648
  return !(u && e.annotations.isTargetWithinHighlight(u) || c);
648
649
  }));
649
- }), t[0] = e, t[1] = o) : o = t[1], pe(o);
650
- }, ni = () => {
651
- const t = x(3), e = ct(), o = Qe();
650
+ }), t[0] = e, t[1] = o) : o = t[1], be(o);
651
+ }, ii = () => {
652
+ const t = C(3), e = dt(), o = Xe();
652
653
  let n;
653
654
  t[0] !== o || t[1] !== e ? (n = () => {
654
655
  if (e) {
655
- const l = o.pipe(J(oi), be()), s = o.pipe(J(ii), be()), r = at([s, l]).pipe(J(li));
656
+ const l = o.pipe(J(li), Se()), s = o.pipe(J(si), Se()), r = ct([s, l]).pipe(J(ri));
656
657
  e.annotations.update({
657
658
  annotations$: r
658
659
  });
659
660
  }
660
- }, t[0] = o, t[1] = e, t[2] = n) : n = t[2], pe(n);
661
+ }, t[0] = o, t[1] = e, t[2] = n) : n = t[2], be(n);
661
662
  };
662
- function oi(t) {
663
+ function li(t) {
663
664
  return t.selectedHighlight?.highlight?.id;
664
665
  }
665
- function ii(t) {
666
+ function si(t) {
666
667
  return t.annotations ?? [];
667
668
  }
668
- function li(t) {
669
+ function ri(t) {
669
670
  const [e, o] = t;
670
671
  return e.map((n) => ({
671
672
  ...n,
672
673
  selected: n.id === o
673
674
  }));
674
675
  }
675
- const Xe = () => {
676
- const t = x(2), e = j();
676
+ const Je = () => {
677
+ const t = C(2), e = j();
677
678
  let o;
678
- return t[0] !== e ? (o = $o(e) ? e : void 0, t[0] = e, t[1] = o) : o = t[1], o;
679
- }, si = (t) => {
680
- const e = x(6), o = t === void 0 ? !0 : t, n = Xe();
679
+ return t[0] !== e ? (o = Mo(e) ? e : void 0, t[0] = e, t[1] = o) : o = t[1], o;
680
+ }, ai = (t) => {
681
+ const e = C(6), o = t === void 0 ? !0 : t, n = Je();
681
682
  let i;
682
683
  e[0] !== n?.audio || e[1] !== o ? (i = () => o ? n?.audio.visualizer$ : void 0, e[0] = n?.audio, e[1] = o, e[2] = i) : i = e[2];
683
684
  let l;
@@ -686,43 +687,43 @@ const Xe = () => {
686
687
  data: s
687
688
  } = H(i, l);
688
689
  return s;
689
- }, ri = (t) => {
690
- const e = x(8), {
690
+ }, ci = (t) => {
691
+ const e = C(8), {
691
692
  enabled: o,
692
693
  trackId: n
693
- } = t, i = o === void 0 ? !0 : o, l = Xe();
694
+ } = t, i = o === void 0 ? !0 : o, l = Je();
694
695
  let s;
695
- e[0] !== l?.audio || e[1] !== i || e[2] !== n ? (s = () => i ? l?.audio.state$.pipe(J((u) => u.currentTrack?.id === n), be()) : void 0, e[0] = l?.audio, e[1] = i, e[2] = n, e[3] = s) : s = e[3];
696
+ e[0] !== l?.audio || e[1] !== i || e[2] !== n ? (s = () => i ? l?.audio.state$.pipe(J((u) => u.currentTrack?.id === n), Se()) : void 0, e[0] = l?.audio, e[1] = i, e[2] = n, e[3] = s) : s = e[3];
696
697
  let r;
697
698
  e[4] !== l || e[5] !== i || e[6] !== n ? (r = [i, n, l], e[4] = l, e[5] = i, e[6] = n, e[7] = r) : r = e[7];
698
699
  const {
699
700
  data: c
700
701
  } = H(s, r);
701
702
  return c === void 0 ? !1 : c;
702
- }, ai = "#93c5fd", Vt = "#3b82f6", Wt = 1, ci = 0.1, di = 0.08, Gt = 0.25, Ut = 0.15, fi = 0.02, ui = 0.145, hi = 0.52, mi = 0.16, gi = 0.5, jt = 0.34, ye = (t, e, o) => Math.min(Math.max(t, e), o), mt = (t, e, o) => {
703
+ }, di = "#93c5fd", Gt = "#3b82f6", Ut = 1, fi = 0.1, ui = 0.08, jt = 0.25, qt = 0.15, hi = 0.02, mi = 0.145, gi = 0.52, pi = 0.16, bi = 0.5, Kt = 0.34, Ie = (t, e, o) => Math.min(Math.max(t, e), o), gt = (t, e, o) => {
703
704
  if (t === e) return +(o >= e);
704
- const n = ye((o - t) / (e - t), 0, 1);
705
+ const n = Ie((o - t) / (e - t), 0, 1);
705
706
  return n * n * (3 - 2 * n);
706
- }, pi = (t) => {
707
+ }, Si = (t) => {
707
708
  const e = Math.sin(t * Math.PI * 6 + 0.8), o = Math.sin(t * Math.PI * 14 + 1.7);
708
- return ye(0.5 + e * 0.3 + o * 0.2, 0, 1);
709
- }, bi = (t) => Array.from({
709
+ return Ie(0.5 + e * 0.3 + o * 0.2, 0, 1);
710
+ }, _i = (t) => Array.from({
710
711
  length: t
711
712
  }, (e, o) => {
712
- const n = t === 1 ? 0.5 : o / (t - 1), i = Math.abs(n - 0.5) * 2, l = 1 - mt(hi, 1, i), s = pi(n), r = l * (1 - jt + s * jt);
713
- return ye(fi + ui * r, 0, 1);
714
- }), Si = (t) => t.length === 0 ? 0 : t.reduce((e, o) => e + o, 0) / t.length, _i = (t) => t.some((e) => e > 1e-3), gn = (t) => {
713
+ const n = t === 1 ? 0.5 : o / (t - 1), i = Math.abs(n - 0.5) * 2, l = 1 - gt(gi, 1, i), s = Si(n), r = l * (1 - Kt + s * Kt);
714
+ return Ie(hi + mi * r, 0, 1);
715
+ }), vi = (t) => t.length === 0 ? 0 : t.reduce((e, o) => e + o, 0) / t.length, xi = (t) => t.some((e) => e > 1e-3), bn = (t) => {
715
716
  const e = Math.max(1, Math.floor(t));
716
717
  return e % 2 === 0 ? e + 1 : e;
717
- }, vi = (t, e) => {
718
- const o = gn(e), n = Math.floor(o / 2) + 1, i = Array.from({
718
+ }, Ci = (t, e) => {
719
+ const o = bn(e), n = Math.floor(o / 2) + 1, i = Array.from({
719
720
  length: n
720
721
  }, (r, c) => {
721
- const d = Math.floor(c * t.length / n), u = Math.max(d + 1, Math.floor((c + 1) * t.length / n)), f = Si(t.slice(d, u));
722
- return ye(f, 0, 1);
723
- }), l = i[0] ?? di, s = i.slice(1);
722
+ const d = Math.floor(c * t.length / n), u = Math.max(d + 1, Math.floor((c + 1) * t.length / n)), f = vi(t.slice(d, u));
723
+ return Ie(f, 0, 1);
724
+ }), l = i[0] ?? ui, s = i.slice(1);
724
725
  return [...s.slice().reverse(), l, ...s];
725
- }, Ci = (t, {
726
+ }, yi = (t, {
726
727
  topVariable: e,
727
728
  topFallback: o,
728
729
  bottomVariable: n,
@@ -733,7 +734,7 @@ const Xe = () => {
733
734
  topColor: s,
734
735
  bottomColor: r
735
736
  };
736
- }, xi = ({
737
+ }, Ii = ({
737
738
  canvas: t,
738
739
  size: e,
739
740
  visualizer: o,
@@ -747,43 +748,43 @@ const Xe = () => {
747
748
  } = e;
748
749
  if (!s || r <= 0 || c <= 0) return i;
749
750
  s.clearRect(0, 0, r, c);
750
- const d = _i(o.levels), u = !o.isActive && !d, f = u ? bi(n) : vi(o.levels, n), h = i.length !== f.length ? Array.from({
751
+ const d = xi(o.levels), u = !o.isActive && !d, f = u ? _i(n) : Ci(o.levels, n), h = i.length !== f.length ? Array.from({
751
752
  length: f.length
752
- }, () => 0) : i, m = o.isActive ? h.map((C, T) => {
753
+ }, () => 0) : i, m = o.isActive ? h.map((x, T) => {
753
754
  const I = f[T] ?? 0;
754
- return C + (I - C) * 0.28;
755
- }) : [...f], g = Math.round(ye(r / Math.max(m.length, 1) / 2.8, 1, 4)), p = Math.max(2, Math.floor((r - g * (m.length - 1)) / m.length)), b = p * m.length + g * (m.length - 1), S = Math.max(0, (r - b) / 2), _ = c / 2, v = Math.max(Wt, c * (u ? mi : ci));
755
+ return x + (I - x) * 0.28;
756
+ }) : [...f], g = Math.round(Ie(r / Math.max(m.length, 1) / 2.8, 1, 4)), p = Math.max(2, Math.floor((r - g * (m.length - 1)) / m.length)), b = p * m.length + g * (m.length - 1), _ = Math.max(0, (r - b) / 2), S = c / 2, v = Math.max(Ut, c * (u ? pi : fi));
756
757
  s.fillStyle = l;
757
- for (const [C, T] of m.entries()) {
758
- const I = ye(T, 0, 1), k = m.length === 1 ? 0.5 : C / (m.length - 1), R = Math.abs(k - 0.5) * 2, P = 1 - mt(0, 1, R), E = I * (1 + Ut * P) / (1 + Ut * P * I), M = u ? I : E ** 1.15, A = Math.max(Wt, M * v), w = Math.min(p / 2, A / 2), $ = Math.round(S + C * (p + g)), O = _ - A / 2, z = mt(0, Gt, k) * (1 - mt(1 - Gt, 1, k));
759
- s.globalAlpha = ye((u ? gi : o.isActive ? 0.95 : 0.75) * z, 0, 1), s.beginPath(), s.roundRect($, O, p, A, w), s.fill();
758
+ for (const [x, T] of m.entries()) {
759
+ const I = Ie(T, 0, 1), k = m.length === 1 ? 0.5 : x / (m.length - 1), R = Math.abs(k - 0.5) * 2, P = 1 - gt(0, 1, R), E = I * (1 + qt * P) / (1 + qt * P * I), M = u ? I : E ** 1.15, A = Math.max(Ut, M * v), w = Math.min(p / 2, A / 2), $ = Math.round(_ + x * (p + g)), O = S - A / 2, z = gt(0, jt, k) * (1 - gt(1 - jt, 1, k));
760
+ s.globalAlpha = Ie((u ? bi : o.isActive ? 0.95 : 0.75) * z, 0, 1), s.beginPath(), s.roundRect($, O, p, A, w), s.fill();
760
761
  }
761
762
  return s.globalAlpha = 1, m;
762
- }, qt = {
763
+ }, Yt = {
763
764
  levels: [],
764
765
  isActive: !1,
765
766
  trackId: void 0
766
- }, yi = (t) => {
767
- const e = x(21), {
767
+ }, Ti = (t) => {
768
+ const e = C(21), {
768
769
  visualizer: o
769
- } = t, n = Cn({
770
+ } = t, n = yn({
770
771
  base: 29,
771
772
  md: 35,
772
773
  lg: 41,
773
774
  xl: 49
774
775
  }) ?? 29;
775
776
  let i;
776
- e[0] !== n ? (i = gn(n), e[0] = n, e[1] = i) : i = e[1];
777
- const l = i, s = _e(null), r = _e(null), c = _e(void 0), d = _e(o ?? qt);
777
+ e[0] !== n ? (i = bn(n), e[0] = n, e[1] = i) : i = e[1];
778
+ const l = i, s = ve(null), r = ve(null), c = ve(void 0), d = ve(o ?? Yt);
778
779
  let u;
779
780
  e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = [], e[2] = u) : u = e[2];
780
- const f = _e(u), h = _e(Vt);
781
+ const f = ve(u), h = ve(Gt);
781
782
  let m;
782
783
  e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = {
783
784
  width: 0,
784
785
  height: 0
785
786
  }, e[3] = m) : m = e[3];
786
- const g = _e(m);
787
+ const g = ve(m);
787
788
  let p;
788
789
  e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = () => {
789
790
  const $ = s.current;
@@ -795,22 +796,22 @@ const Xe = () => {
795
796
  const {
796
797
  topColor: z,
797
798
  bottomColor: D
798
- } = Ci($, {
799
+ } = yi($, {
799
800
  topVariable: "--audio-wave-top-color",
800
- topFallback: ai,
801
+ topFallback: di,
801
802
  bottomVariable: "--audio-wave-bottom-color",
802
- bottomFallback: Vt
803
+ bottomFallback: Gt
803
804
  }), F = O.createLinearGradient(0, 0, 0, g.current.height);
804
805
  F.addColorStop(0, z), F.addColorStop(1, D), h.current = F;
805
806
  }, e[4] = p) : p = e[4];
806
807
  const b = p;
807
- let S;
808
- e[5] !== l ? (S = () => {
808
+ let _;
809
+ e[5] !== l ? (_ = () => {
809
810
  const $ = s.current;
810
811
  if (!$)
811
812
  return;
812
813
  const O = d.current;
813
- f.current = xi({
814
+ f.current = Ii({
814
815
  canvas: $,
815
816
  size: g.current,
816
817
  visualizer: O,
@@ -818,29 +819,29 @@ const Xe = () => {
818
819
  displayedBars: f.current,
819
820
  fillStyle: h.current
820
821
  });
821
- }, e[5] = l, e[6] = S) : S = e[6];
822
- const _ = S;
822
+ }, e[5] = l, e[6] = _) : _ = e[6];
823
+ const S = _;
823
824
  let v;
824
825
  e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = () => {
825
826
  c.current !== void 0 && (cancelAnimationFrame(c.current), c.current = void 0);
826
827
  }, e[7] = v) : v = e[7];
827
- const C = v;
828
+ const x = v;
828
829
  let T;
829
- e[8] !== _ ? (T = () => {
830
+ e[8] !== S ? (T = () => {
830
831
  if (c.current !== void 0)
831
832
  return;
832
833
  const $ = () => {
833
834
  if (!d.current.isActive) {
834
- c.current = void 0, _();
835
+ c.current = void 0, S();
835
836
  return;
836
837
  }
837
- _(), c.current = requestAnimationFrame($);
838
+ S(), c.current = requestAnimationFrame($);
838
839
  };
839
840
  c.current = requestAnimationFrame($);
840
- }, e[8] = _, e[9] = T) : T = e[9];
841
+ }, e[8] = S, e[9] = T) : T = e[9];
841
842
  const I = T;
842
843
  let k;
843
- e[10] !== _ ? (k = () => {
844
+ e[10] !== S ? (k = () => {
844
845
  const $ = s.current, O = r.current;
845
846
  if (!$ || !O)
846
847
  return;
@@ -848,19 +849,19 @@ const Xe = () => {
848
849
  g.current = {
849
850
  width: z,
850
851
  height: D
851
- }, Nt($, "width", Q), Nt($, "height", V), Ht($.style, "width", `${z}px`), Ht($.style, "height", `${D}px`);
852
+ }, Vt($, "width", Q), Vt($, "height", V), Wt($.style, "width", `${z}px`), Wt($.style, "height", `${D}px`);
852
853
  const W = $.getContext("2d");
853
- W && W.setTransform(F, 0, 0, F, 0, 0), b(), _();
854
- }, e[10] = _, e[11] = k) : k = e[11];
854
+ W && W.setTransform(F, 0, 0, F, 0, 0), b(), S();
855
+ }, e[10] = S, e[11] = k) : k = e[11];
855
856
  const R = k;
856
857
  let P, E;
857
- e[12] !== _ || e[13] !== I || e[14] !== o ? (P = () => {
858
- if (d.current = o ?? qt, d.current.isActive) {
858
+ e[12] !== S || e[13] !== I || e[14] !== o ? (P = () => {
859
+ if (d.current = o ?? Yt, d.current.isActive) {
859
860
  I();
860
861
  return;
861
862
  }
862
- C(), _();
863
- }, E = [_, I, C, o], e[12] = _, e[13] = I, e[14] = o, e[15] = P, e[16] = E) : (P = e[15], E = e[16]), oe(P, E);
863
+ x(), S();
864
+ }, E = [S, I, x, o], e[12] = S, e[13] = I, e[14] = o, e[15] = P, e[16] = E) : (P = e[15], E = e[16]), ie(P, E);
864
865
  let M, A;
865
866
  e[17] !== R ? (M = () => {
866
867
  const $ = r.current;
@@ -871,21 +872,21 @@ const Xe = () => {
871
872
  R();
872
873
  });
873
874
  return O.observe($), () => {
874
- C(), O.disconnect();
875
+ x(), O.disconnect();
875
876
  };
876
- }, A = [R, C], e[17] = R, e[18] = M, e[19] = A) : (M = e[18], A = e[19]), oe(M, A);
877
+ }, A = [R, x], e[17] = R, e[18] = M, e[19] = A) : (M = e[18], A = e[19]), ie(M, A);
877
878
  let w;
878
- return e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ a(le, { ref: r, position: "absolute", inset: 0, display: "flex", alignItems: "center", justifyContent: "center", px: 8, py: 12, pointerEvents: "none", css: {
879
+ return e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ a(oe, { ref: r, position: "absolute", inset: 0, display: "flex", alignItems: "center", justifyContent: "center", px: 8, py: 12, pointerEvents: "none", css: {
879
880
  "--audio-wave-top-color": "colors.colorPalette.emphasized",
880
881
  "--audio-wave-bottom-color": "colors.colorPalette.solid"
881
882
  }, style: {
882
883
  WebkitMaskImage: "linear-gradient(to right, transparent 0%, black 25%, black 75%, transparent 100%)",
883
884
  maskImage: "linear-gradient(to right, transparent 0%, black 25%, black 75%, transparent 100%)"
884
885
  }, children: /* @__PURE__ */ a("canvas", { ref: s }) }), e[20] = w) : w = e[20], w;
885
- }, Ii = (t) => {
886
- const e = x(16), {
886
+ }, ki = (t) => {
887
+ const e = C(16), {
887
888
  item: o
888
- } = t, n = Xe();
889
+ } = t, n = Je();
889
890
  let i;
890
891
  e[0] !== n?.audio || e[1] !== o.renderer ? (i = n?.audio.isAudioRenderer(o.renderer), e[0] = n?.audio, e[1] = o.renderer, e[2] = i) : i = e[2];
891
892
  const l = i, s = l ? o.renderer : void 0;
@@ -901,26 +902,26 @@ const Xe = () => {
901
902
  enabled: u,
902
903
  trackId: o.item.id
903
904
  }, e[8] = o.item.id, e[9] = u, e[10] = f) : f = e[10];
904
- const h = ri(f), m = si(h);
905
+ const h = ci(f), m = ai(h);
905
906
  if (!d)
906
907
  return null;
907
908
  const g = h ? m : void 0;
908
909
  let p;
909
- e[11] !== g ? (p = /* @__PURE__ */ a(yi, { visualizer: g }), e[11] = g, e[12] = p) : p = e[12];
910
+ e[11] !== g ? (p = /* @__PURE__ */ a(Ti, { visualizer: g }), e[11] = g, e[12] = p) : p = e[12];
910
911
  let b;
911
- return e[13] !== d || e[14] !== p ? (b = wt(p, d), e[13] = d, e[14] = p, e[15] = b) : b = e[15], b;
912
- }, Ti = N((t) => {
913
- const e = x(7), {
912
+ return e[13] !== d || e[14] !== p ? (b = zt(p, d), e[13] = d, e[14] = p, e[15] = b) : b = e[15], b;
913
+ }, $i = N((t) => {
914
+ const e = C(7), {
914
915
  item: o
915
916
  } = t, n = o.containerElement;
916
917
  let i;
917
- e[0] !== o ? (i = /* @__PURE__ */ a(Ii, { item: o }), e[0] = o, e[1] = i) : i = e[1];
918
+ e[0] !== o ? (i = /* @__PURE__ */ a(ki, { item: o }), e[0] = o, e[1] = i) : i = e[1];
918
919
  let l;
919
- e[2] !== n || e[3] !== i ? (l = wt(i, n), e[2] = n, e[3] = i, e[4] = l) : l = e[4];
920
+ e[2] !== n || e[3] !== i ? (l = zt(i, n), e[2] = n, e[3] = i, e[4] = l) : l = e[4];
920
921
  let s;
921
- return e[5] !== l ? (s = /* @__PURE__ */ a(ve, { children: l }), e[5] = l, e[6] = s) : s = e[6], s;
922
- }), ki = N((t) => {
923
- const e = x(18), {
922
+ return e[5] !== l ? (s = /* @__PURE__ */ a(xe, { children: l }), e[5] = l, e[6] = s) : s = e[6], s;
923
+ }), Ri = N((t) => {
924
+ const e = C(18), {
924
925
  children: o
925
926
  } = t, n = j();
926
927
  let i;
@@ -940,56 +941,56 @@ const Xe = () => {
940
941
  if (!s)
941
942
  return null;
942
943
  let u;
943
- e[8] !== d ? (u = d?.map($i), e[8] = d, e[9] = u) : u = e[9];
944
+ e[8] !== d ? (u = d?.map(Mi), e[8] = d, e[9] = u) : u = e[9];
944
945
  let f;
945
- e[10] !== o || e[11] !== u ? (f = /* @__PURE__ */ y(ve, { children: [
946
+ e[10] !== o || e[11] !== u ? (f = /* @__PURE__ */ y(xe, { children: [
946
947
  o,
947
948
  u
948
949
  ] }), e[10] = o, e[11] = u, e[12] = f) : f = e[12];
949
950
  let h;
950
- e[13] !== s || e[14] !== f ? (h = wt(f, s), e[13] = s, e[14] = f, e[15] = h) : h = e[15];
951
+ e[13] !== s || e[14] !== f ? (h = zt(f, s), e[13] = s, e[14] = f, e[15] = h) : h = e[15];
951
952
  let m;
952
- return e[16] !== h ? (m = /* @__PURE__ */ a(ve, { children: h }), e[16] = h, e[17] = m) : m = e[17], m;
953
+ return e[16] !== h ? (m = /* @__PURE__ */ a(xe, { children: h }), e[16] = h, e[17] = m) : m = e[17], m;
953
954
  });
954
- function $i(t) {
955
- return /* @__PURE__ */ a(Ti, { item: t }, t.index);
955
+ function Mi(t) {
956
+ return /* @__PURE__ */ a($i, { item: t }, t.index);
956
957
  }
957
- const Rt = xn({
958
+ const Mt = In({
958
959
  placement: "bottom-end",
959
960
  pauseOnPageIdle: !0
960
- }), Ri = () => {
961
- const t = x(1);
961
+ }), Oi = () => {
962
+ const t = C(1);
962
963
  let e;
963
- return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ a(bt, { children: /* @__PURE__ */ a(yn, { toaster: Rt, insetInline: {
964
+ return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ a(St, { children: /* @__PURE__ */ a(Tn, { toaster: Mt, insetInline: {
964
965
  mdDown: "4"
965
- }, children: Mi }) }), t[0] = e) : e = t[0], e;
966
+ }, children: Ai }) }), t[0] = e) : e = t[0], e;
966
967
  };
967
- function Mi(t) {
968
- return /* @__PURE__ */ y(je.Root, { width: {
968
+ function Ai(t) {
969
+ return /* @__PURE__ */ y(qe.Root, { width: {
969
970
  md: "sm"
970
971
  }, children: [
971
- t.type === "loading" ? /* @__PURE__ */ a(In, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ a(je.Indicator, {}),
972
+ t.type === "loading" ? /* @__PURE__ */ a(kn, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ a(qe.Indicator, {}),
972
973
  /* @__PURE__ */ y(ee, { gap: "1", flex: "1", maxWidth: "100%", children: [
973
- t.title && /* @__PURE__ */ a(je.Title, { children: t.title }),
974
- t.description && /* @__PURE__ */ a(je.Description, { children: t.description })
974
+ t.title && /* @__PURE__ */ a(qe.Title, { children: t.title }),
975
+ t.description && /* @__PURE__ */ a(qe.Description, { children: t.description })
975
976
  ] }),
976
- t.action && /* @__PURE__ */ a(je.ActionTrigger, { children: t.action.label }),
977
- t.meta?.closable && /* @__PURE__ */ a(je.CloseTrigger, {})
977
+ t.action && /* @__PURE__ */ a(qe.ActionTrigger, { children: t.action.label }),
978
+ t.meta?.closable && /* @__PURE__ */ a(qe.CloseTrigger, {})
978
979
  ] });
979
980
  }
980
- const Oi = (t) => {
981
- const e = x(25);
981
+ const wi = (t) => {
982
+ const e = C(25);
982
983
  let o, n;
983
984
  e[0] !== t ? ({
984
985
  children: o,
985
986
  ...n
986
987
  } = t, e[0] = t, e[1] = o, e[2] = n) : (o = e[1], n = e[2]);
987
- const i = it(wi);
988
+ const i = lt(Pi);
988
989
  let l;
989
- e[3] !== i.value.fontSizeMenuOpen ? (l = () => Ke({
990
+ e[3] !== i.value.fontSizeMenuOpen ? (l = () => Ye({
990
991
  default: i.value.fontSizeMenuOpen
991
992
  }), e[3] = i.value.fontSizeMenuOpen, e[4] = l) : l = e[4];
992
- const s = it(l), r = Tt(s);
993
+ const s = lt(l), r = kt(s);
993
994
  let c;
994
995
  e[5] !== s ? (c = (T) => {
995
996
  s.update(T);
@@ -1004,46 +1005,46 @@ const Oi = (t) => {
1004
1005
  }, e[7] = i, e[8] = u) : u = e[8];
1005
1006
  const f = u;
1006
1007
  let h;
1007
- e[9] !== i.value.refitMenuOpen ? (h = () => Ke({
1008
+ e[9] !== i.value.refitMenuOpen ? (h = () => Ye({
1008
1009
  default: i.value.refitMenuOpen
1009
1010
  }), e[9] = i.value.refitMenuOpen, e[10] = h) : h = e[10];
1010
- const m = it(h);
1011
+ const m = lt(h);
1011
1012
  let g;
1012
1013
  e[11] !== m ? (g = (T) => {
1013
1014
  m.update(T);
1014
1015
  }, e[11] = m, e[12] = g) : g = e[12];
1015
- const p = g, b = Tt(m), S = jn(n, ao);
1016
- let _, v;
1017
- e[13] !== f || e[14] !== S || e[15] !== r || e[16] !== d || e[17] !== p || e[18] !== b || e[19] !== i ? (_ = () => {
1016
+ const p = g, b = kt(m), _ = Kn(n, fo);
1017
+ let S, v;
1018
+ e[13] !== f || e[14] !== _ || e[15] !== r || e[16] !== d || e[17] !== p || e[18] !== b || e[19] !== i ? (S = () => {
1018
1019
  i.update((T) => ({
1019
1020
  ...T,
1020
- ...S,
1021
+ ..._,
1021
1022
  onFontSizeMenuOpenChange: d,
1022
1023
  fontSizeMenuOpen: r,
1023
1024
  onRefitMenuOpenChange: p,
1024
1025
  refitMenuOpen: b,
1025
1026
  _onQuickMenuOpenChange: f
1026
1027
  }));
1027
- }, v = [S, f, i, r, d, b, p], e[13] = f, e[14] = S, e[15] = r, e[16] = d, e[17] = p, e[18] = b, e[19] = i, e[20] = _, e[21] = v) : (_ = e[20], v = e[21]), oe(_, v);
1028
- let C;
1029
- return e[22] !== o || e[23] !== i ? (C = /* @__PURE__ */ a(zt.Provider, { value: i, children: o }), e[22] = o, e[23] = i, e[24] = C) : C = e[24], C;
1030
- }, Ai = N((t) => {
1031
- const e = x(6);
1028
+ }, v = [_, f, i, r, d, b, p], e[13] = f, e[14] = _, e[15] = r, e[16] = d, e[17] = p, e[18] = b, e[19] = i, e[20] = S, e[21] = v) : (S = e[20], v = e[21]), ie(S, v);
1029
+ let x;
1030
+ return e[22] !== o || e[23] !== i ? (x = /* @__PURE__ */ a(Pt.Provider, { value: i, children: o }), e[22] = o, e[23] = i, e[24] = x) : x = e[24], x;
1031
+ }, zi = N((t) => {
1032
+ const e = C(6);
1032
1033
  let o, n;
1033
1034
  e[0] !== t ? ({
1034
1035
  children: o,
1035
1036
  ...n
1036
1037
  } = t, e[0] = t, e[1] = o, e[2] = n) : (o = e[1], n = e[2]);
1037
1038
  let i;
1038
- return e[3] !== o || e[4] !== n ? (i = /* @__PURE__ */ a(Oi, { ...n, children: o }), e[3] = o, e[4] = n, e[5] = i) : i = e[5], i;
1039
+ return e[3] !== o || e[4] !== n ? (i = /* @__PURE__ */ a(wi, { ...n, children: o }), e[3] = o, e[4] = n, e[5] = i) : i = e[5], i;
1039
1040
  });
1040
- function wi() {
1041
- return Ke({
1042
- default: an()
1041
+ function Pi() {
1042
+ return Ye({
1043
+ default: dn()
1043
1044
  });
1044
1045
  }
1045
- const ot = de.forwardRef(function(e, o) {
1046
- const n = x(16);
1046
+ const it = de.forwardRef(function(e, o) {
1047
+ const n = C(16);
1047
1048
  let i, l, s, r;
1048
1049
  n[0] !== e ? ({
1049
1050
  children: i,
@@ -1052,24 +1053,24 @@ const ot = de.forwardRef(function(e, o) {
1052
1053
  ...s
1053
1054
  } = e, n[0] = e, n[1] = i, n[2] = l, n[3] = s, n[4] = r) : (i = n[1], l = n[2], s = n[3], r = n[4]);
1054
1055
  let c;
1055
- n[5] !== l || n[6] !== o ? (c = /* @__PURE__ */ a(nt.ItemHiddenInput, { ref: o, ...l }), n[5] = l, n[6] = o, n[7] = c) : c = n[7];
1056
+ n[5] !== l || n[6] !== o ? (c = /* @__PURE__ */ a(ot.ItemHiddenInput, { ref: o, ...l }), n[5] = l, n[6] = o, n[7] = c) : c = n[7];
1056
1057
  let d;
1057
- n[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ a(nt.ItemIndicator, {}), n[8] = d) : d = n[8];
1058
+ n[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ a(ot.ItemIndicator, {}), n[8] = d) : d = n[8];
1058
1059
  let u;
1059
- n[9] !== i ? (u = i && /* @__PURE__ */ a(nt.ItemText, { children: i }), n[9] = i, n[10] = u) : u = n[10];
1060
+ n[9] !== i ? (u = i && /* @__PURE__ */ a(ot.ItemText, { children: i }), n[9] = i, n[10] = u) : u = n[10];
1060
1061
  let f;
1061
- return n[11] !== s || n[12] !== r || n[13] !== c || n[14] !== u ? (f = /* @__PURE__ */ y(nt.Item, { ref: r, ...s, children: [
1062
+ return n[11] !== s || n[12] !== r || n[13] !== c || n[14] !== u ? (f = /* @__PURE__ */ y(ot.Item, { ref: r, ...s, children: [
1062
1063
  c,
1063
1064
  d,
1064
1065
  u
1065
1066
  ] }), n[11] = s, n[12] = r, n[13] = c, n[14] = u, n[15] = f) : f = n[15], f;
1066
- }), pn = nt.Root, Pt = de.memo(function(e) {
1067
- const o = x(29);
1067
+ }), Sn = ot.Root, Et = de.memo(function(e) {
1068
+ const o = C(29);
1068
1069
  let n, i, l, s, r, c, d;
1069
1070
  if (o[0] !== e) {
1070
1071
  const {
1071
1072
  ref: v,
1072
- ...C
1073
+ ...x
1073
1074
  } = e;
1074
1075
  l = v;
1075
1076
  const {
@@ -1077,76 +1078,76 @@ const ot = de.forwardRef(function(e, o) {
1077
1078
  label: I,
1078
1079
  showValue: k,
1079
1080
  ...R
1080
- } = C;
1081
- n = I, r = k, s = R, d = C.defaultValue ?? C.value, i = T?.map(Di), c = i?.some(Bi), o[0] = e, o[1] = n, o[2] = i, o[3] = l, o[4] = s, o[5] = r, o[6] = c, o[7] = d;
1081
+ } = x;
1082
+ n = I, r = k, s = R, d = x.defaultValue ?? x.value, i = T?.map(Fi), c = i?.some(Li), o[0] = e, o[1] = n, o[2] = i, o[3] = l, o[4] = s, o[5] = r, o[6] = c, o[7] = d;
1082
1083
  } else
1083
1084
  n = o[1], i = o[2], l = o[3], s = o[4], r = o[5], c = o[6], d = o[7];
1084
1085
  const u = !!c;
1085
1086
  let f;
1086
- o[8] !== n || o[9] !== r ? (f = n && !r && /* @__PURE__ */ a(fe.Label, { children: n }), o[8] = n, o[9] = r, o[10] = f) : f = o[10];
1087
+ o[8] !== n || o[9] !== r ? (f = n && !r && /* @__PURE__ */ a(ue.Label, { children: n }), o[8] = n, o[9] = r, o[10] = f) : f = o[10];
1087
1088
  let h;
1088
1089
  o[11] !== n || o[12] !== r ? (h = n && r && /* @__PURE__ */ y(ce, { justify: "space-between", children: [
1089
- /* @__PURE__ */ a(fe.Label, { children: n }),
1090
- /* @__PURE__ */ a(fe.ValueText, {})
1090
+ /* @__PURE__ */ a(ue.Label, { children: n }),
1091
+ /* @__PURE__ */ a(ue.ValueText, {})
1091
1092
  ] }), o[11] = n, o[12] = r, o[13] = h) : h = o[13];
1092
1093
  const m = u || void 0;
1093
1094
  let g;
1094
- o[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ a(fe.Track, { children: /* @__PURE__ */ a(fe.Range, {}) }), o[14] = g) : g = o[14];
1095
+ o[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ a(ue.Track, { children: /* @__PURE__ */ a(ue.Range, {}) }), o[14] = g) : g = o[14];
1095
1096
  let p;
1096
- o[15] !== d ? (p = /* @__PURE__ */ a(zi, { value: d }), o[15] = d, o[16] = p) : p = o[16];
1097
+ o[15] !== d ? (p = /* @__PURE__ */ a(Ei, { value: d }), o[15] = d, o[16] = p) : p = o[16];
1097
1098
  let b;
1098
- o[17] !== i ? (b = /* @__PURE__ */ a(Ei, { marks: i }), o[17] = i, o[18] = b) : b = o[18];
1099
- let S;
1100
- o[19] !== m || o[20] !== p || o[21] !== b ? (S = /* @__PURE__ */ y(fe.Control, { "data-has-mark-label": m, children: [
1099
+ o[17] !== i ? (b = /* @__PURE__ */ a(Bi, { marks: i }), o[17] = i, o[18] = b) : b = o[18];
1100
+ let _;
1101
+ o[19] !== m || o[20] !== p || o[21] !== b ? (_ = /* @__PURE__ */ y(ue.Control, { "data-has-mark-label": m, children: [
1101
1102
  g,
1102
1103
  p,
1103
1104
  b
1104
- ] }), o[19] = m, o[20] = p, o[21] = b, o[22] = S) : S = o[22];
1105
- let _;
1106
- return o[23] !== l || o[24] !== s || o[25] !== f || o[26] !== h || o[27] !== S ? (_ = /* @__PURE__ */ y(fe.Root, { ref: l, thumbAlignment: "center", ...s, children: [
1105
+ ] }), o[19] = m, o[20] = p, o[21] = b, o[22] = _) : _ = o[22];
1106
+ let S;
1107
+ return o[23] !== l || o[24] !== s || o[25] !== f || o[26] !== h || o[27] !== _ ? (S = /* @__PURE__ */ y(ue.Root, { ref: l, thumbAlignment: "center", ...s, children: [
1107
1108
  f,
1108
1109
  h,
1109
- S
1110
- ] }), o[23] = l, o[24] = s, o[25] = f, o[26] = h, o[27] = S, o[28] = _) : _ = o[28], _;
1110
+ _
1111
+ ] }), o[23] = l, o[24] = s, o[25] = f, o[26] = h, o[27] = _, o[28] = S) : S = o[28], S;
1111
1112
  });
1112
- function zi(t) {
1113
- const e = x(2), {
1113
+ function Ei(t) {
1114
+ const e = C(2), {
1114
1115
  value: o
1115
1116
  } = t;
1116
1117
  let n;
1117
- return e[0] !== o ? (n = /* @__PURE__ */ a(Tn, { each: o, children: Pi }), e[0] = o, e[1] = n) : n = e[1], n;
1118
+ return e[0] !== o ? (n = /* @__PURE__ */ a($n, { each: o, children: Di }), e[0] = o, e[1] = n) : n = e[1], n;
1118
1119
  }
1119
- function Pi(t, e) {
1120
- return /* @__PURE__ */ a(fe.Thumb, { index: e, children: /* @__PURE__ */ a(fe.HiddenInput, {}) }, e);
1120
+ function Di(t, e) {
1121
+ return /* @__PURE__ */ a(ue.Thumb, { index: e, children: /* @__PURE__ */ a(ue.HiddenInput, {}) }, e);
1121
1122
  }
1122
- const Ei = de.forwardRef(function(e, o) {
1123
- const n = x(5), {
1123
+ const Bi = de.forwardRef(function(e, o) {
1124
+ const n = C(5), {
1124
1125
  marks: i
1125
1126
  } = e;
1126
1127
  if (!i?.length)
1127
1128
  return null;
1128
1129
  let l;
1129
- n[0] !== i ? (l = i.map(Fi), n[0] = i, n[1] = l) : l = n[1];
1130
+ n[0] !== i ? (l = i.map(Ni), n[0] = i, n[1] = l) : l = n[1];
1130
1131
  let s;
1131
- return n[2] !== o || n[3] !== l ? (s = /* @__PURE__ */ a(fe.MarkerGroup, { ref: o, children: l }), n[2] = o, n[3] = l, n[4] = s) : s = n[4], s;
1132
+ return n[2] !== o || n[3] !== l ? (s = /* @__PURE__ */ a(ue.MarkerGroup, { ref: o, children: l }), n[2] = o, n[3] = l, n[4] = s) : s = n[4], s;
1132
1133
  });
1133
- function Di(t) {
1134
+ function Fi(t) {
1134
1135
  return typeof t == "number" ? {
1135
1136
  value: t,
1136
1137
  label: void 0
1137
1138
  } : t;
1138
1139
  }
1139
- function Bi(t) {
1140
+ function Li(t) {
1140
1141
  return t.label;
1141
1142
  }
1142
- function Fi(t, e) {
1143
+ function Ni(t, e) {
1143
1144
  const o = typeof t == "number" ? t : t.value, n = typeof t == "number" ? void 0 : t.label;
1144
- return /* @__PURE__ */ y(fe.Marker, { value: o, children: [
1145
- /* @__PURE__ */ a(fe.MarkerIndicator, {}),
1145
+ return /* @__PURE__ */ y(ue.Marker, { value: o, children: [
1146
+ /* @__PURE__ */ a(ue.MarkerIndicator, {}),
1146
1147
  n
1147
1148
  ] }, e);
1148
1149
  }
1149
- const Et = [{
1150
+ const Dt = [{
1150
1151
  value: "global",
1151
1152
  references: ["global"]
1152
1153
  }, {
@@ -1155,11 +1156,11 @@ const Et = [{
1155
1156
  }, {
1156
1157
  value: "screen",
1157
1158
  references: ["mobile", "tablet", "desktop"]
1158
- }], Li = Et.map((t) => t.value), Kt = Et.flatMap((t) => t.references), Ni = (t) => {
1159
+ }], Hi = Dt.map((t) => t.value), Zt = Dt.flatMap((t) => t.references), Vi = (t) => {
1159
1160
  if (t)
1160
- return Et.find((e) => e.references.includes(t))?.value;
1161
- }, Hi = N(() => {
1162
- const t = x(52), e = Qe();
1161
+ return Dt.find((e) => e.references.includes(t))?.value;
1162
+ }, Wi = N(() => {
1163
+ const t = C(52), e = Xe();
1163
1164
  let o;
1164
1165
  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];
1165
1166
  const {
@@ -1173,18 +1174,18 @@ const Et = [{
1173
1174
  fontSizeValues: u,
1174
1175
  onFontSizeChange: f,
1175
1176
  onFontSizeScopeChange: h
1176
- } = ie(o), m = s === void 0 ? l : s, g = qn(f), [p, b] = ne(d ?? "global");
1177
- let S;
1178
- t[1] !== e || t[2] !== g ? (S = (L, re) => {
1179
- g.current ? g.current(L, re) : e.update((Se) => ({
1180
- ...Se,
1177
+ } = le(o), m = s === void 0 ? l : s, g = Yn(f), [p, b] = ne(d ?? "global");
1178
+ let _;
1179
+ t[1] !== e || t[2] !== g ? (_ = (L, re) => {
1180
+ g.current ? g.current(L, re) : e.update((_e) => ({
1181
+ ..._e,
1181
1182
  uncontrolledFontSize: re
1182
1183
  }));
1183
- }, t[1] = e, t[2] = g, t[3] = S) : S = t[3];
1184
- const _ = S;
1184
+ }, t[1] = e, t[2] = g, t[3] = _) : _ = t[3];
1185
+ const S = _;
1185
1186
  let v;
1186
1187
  t[4] !== m || t[5] !== u ? (v = (L) => u?.[L] ?? m, t[4] = m, t[5] = u, t[6] = v) : v = t[6];
1187
- const C = v;
1188
+ const x = v;
1188
1189
  let T;
1189
1190
  t[7] !== h ? (T = (L) => {
1190
1191
  const re = L.value;
@@ -1197,43 +1198,43 @@ const Et = [{
1197
1198
  }, t[9] = k) : k = t[9];
1198
1199
  const R = k;
1199
1200
  let P;
1200
- t[10] !== _ || t[11] !== p ? (P = (L) => {
1201
+ t[10] !== S || t[11] !== p ? (P = (L) => {
1201
1202
  const re = L.value[0] ?? 0;
1202
- _(p, re / 100);
1203
- }, t[10] = _, t[11] = p, t[12] = P) : P = t[12];
1203
+ S(p, re / 100);
1204
+ }, t[10] = S, t[11] = p, t[12] = P) : P = t[12];
1204
1205
  const E = P;
1205
1206
  let M, A;
1206
1207
  t[13] !== d ? (M = function() {
1207
1208
  b(d ?? "global");
1208
- }, A = [d], t[13] = d, t[14] = M, t[15] = A) : (M = t[14], A = t[15]), oe(M, A);
1209
+ }, A = [d], t[13] = d, t[14] = M, t[15] = A) : (M = t[14], A = t[15]), ie(M, A);
1209
1210
  let w;
1210
1211
  t[16] !== i ? (w = (L) => {
1211
1212
  i(L.open);
1212
1213
  }, t[16] = i, t[17] = w) : w = t[17];
1213
1214
  let $;
1214
- t[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(Oe, { children: "Font size" }) }), t[18] = $) : $ = t[18];
1215
+ t[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ a(Me, { children: /* @__PURE__ */ a(Ae, { children: "Font size" }) }), t[18] = $) : $ = t[18];
1215
1216
  let O, z;
1216
- t[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ a(xe.Legend, { children: "Scope" }), z = /* @__PURE__ */ a(xe.HelperText, { children: "The scope to which apply the font size for this book." }), t[19] = O, t[20] = z) : (O = t[19], z = t[20]);
1217
+ t[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ a(ye.Legend, { children: "Scope" }), z = /* @__PURE__ */ a(ye.HelperText, { children: "The scope to which apply the font size for this book." }), t[19] = O, t[20] = z) : (O = t[19], z = t[20]);
1217
1218
  let D;
1218
- t[21] !== d ? (D = Ni(d) ?? "global", t[21] = d, t[22] = D) : D = t[22];
1219
+ t[21] !== d ? (D = Vi(d) ?? "global", t[21] = d, t[22] = D) : D = t[22];
1219
1220
  const F = !h;
1220
1221
  let Q;
1221
- t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = /* @__PURE__ */ a(ce, { gap: 2, children: Li.map(Vi) }), t[23] = Q) : Q = t[23];
1222
+ t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = /* @__PURE__ */ a(ce, { gap: 2, children: Hi.map(Gi) }), t[23] = Q) : Q = t[23];
1222
1223
  let V;
1223
- t[24] !== I || t[25] !== D || t[26] !== F ? (V = /* @__PURE__ */ y(xe.Root, { children: [
1224
+ t[24] !== I || t[25] !== D || t[26] !== F ? (V = /* @__PURE__ */ y(ye.Root, { children: [
1224
1225
  O,
1225
1226
  z,
1226
- /* @__PURE__ */ a(xe.Content, { children: /* @__PURE__ */ a(pn, { onValueChange: I, value: D, disabled: F, children: Q }) })
1227
+ /* @__PURE__ */ a(ye.Content, { children: /* @__PURE__ */ a(Sn, { onValueChange: I, value: D, disabled: F, children: Q }) })
1227
1228
  ] }), t[24] = I, t[25] = D, t[26] = F, t[27] = V) : V = t[27];
1228
1229
  let W;
1229
- t[28] !== d ? (W = Kt.map((L) => /* @__PURE__ */ y(me.Trigger, { value: L, textTransform: "capitalize", disabled: L !== "global" && !d, children: [
1230
- d === L && /* @__PURE__ */ a(Pn, {}),
1230
+ t[28] !== d ? (W = Zt.map((L) => /* @__PURE__ */ y(ge.Trigger, { value: L, textTransform: "capitalize", disabled: L !== "global" && !d, children: [
1231
+ d === L && /* @__PURE__ */ a(Dn, {}),
1231
1232
  L
1232
1233
  ] }, L)), t[28] = d, t[29] = W) : W = t[29];
1233
1234
  let G;
1234
- t[30] !== W ? (G = /* @__PURE__ */ a(me.List, { children: W }), t[30] = W, t[31] = G) : G = t[31];
1235
+ t[30] !== W ? (G = /* @__PURE__ */ a(ge.List, { children: W }), t[30] = W, t[31] = G) : G = t[31];
1235
1236
  let q;
1236
- t[32] !== c || t[33] !== r || t[34] !== C || t[35] !== E ? (q = Kt.map((L) => /* @__PURE__ */ a(me.Content, { value: L, children: /* @__PURE__ */ a(Pt, { label: "%", value: [(C(L) ?? 1) * 100], onValueChange: E, showValue: !0, marks: [{
1237
+ t[32] !== c || t[33] !== r || t[34] !== x || t[35] !== E ? (q = Zt.map((L) => /* @__PURE__ */ a(ge.Content, { value: L, children: /* @__PURE__ */ a(Et, { label: "%", value: [(x(L) ?? 1) * 100], onValueChange: E, showValue: !0, marks: [{
1237
1238
  value: 100,
1238
1239
  label: "Publisher"
1239
1240
  }, {
@@ -1242,40 +1243,40 @@ const Et = [{
1242
1243
  }, {
1243
1244
  value: c * 100,
1244
1245
  label: `${c * 100}%`
1245
- }], max: c * 100, min: r * 100, width: "100%", step: 10 }) }, L)), t[32] = c, t[33] = r, t[34] = C, t[35] = E, t[36] = q) : q = t[36];
1246
+ }], max: c * 100, min: r * 100, width: "100%", step: 10 }) }, L)), t[32] = c, t[33] = r, t[34] = x, t[35] = E, t[36] = q) : q = t[36];
1246
1247
  let Y;
1247
- t[37] !== G || t[38] !== q || t[39] !== p ? (Y = /* @__PURE__ */ y(me.Root, { value: p, onValueChange: R, fitted: !1, size: "sm", children: [
1248
+ t[37] !== G || t[38] !== q || t[39] !== p ? (Y = /* @__PURE__ */ y(ge.Root, { value: p, onValueChange: R, fitted: !1, size: "sm", children: [
1248
1249
  G,
1249
1250
  q
1250
1251
  ] }), t[37] = G, t[38] = q, t[39] = p, t[40] = Y) : Y = t[40];
1251
1252
  let K;
1252
- t[41] !== V || t[42] !== Y ? (K = /* @__PURE__ */ a(Me, { children: /* @__PURE__ */ y(ee, { gap: 4, flex: 1, children: [
1253
+ t[41] !== V || t[42] !== Y ? (K = /* @__PURE__ */ a(Oe, { children: /* @__PURE__ */ y(ee, { gap: 4, flex: 1, children: [
1253
1254
  V,
1254
1255
  Y
1255
1256
  ] }) }), t[41] = V, t[42] = Y, t[43] = K) : K = t[43];
1256
1257
  let Z, X;
1257
- t[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(Ae, { asChild: !0, children: /* @__PURE__ */ a(ue, { variant: "outline", children: "Close" }) }) }), X = /* @__PURE__ */ a(Te, {}), t[44] = Z, t[45] = X) : (Z = t[44], X = t[45]);
1258
+ t[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(we, { asChild: !0, children: /* @__PURE__ */ a(he, { variant: "outline", children: "Close" }) }) }), X = /* @__PURE__ */ a(ke, {}), t[44] = Z, t[45] = X) : (Z = t[44], X = t[45]);
1258
1259
  let B;
1259
- t[46] !== K ? (B = /* @__PURE__ */ y(Ie, { maxH: "40vh", overflow: "auto", children: [
1260
+ t[46] !== K ? (B = /* @__PURE__ */ y(Te, { maxH: "40vh", overflow: "auto", children: [
1260
1261
  $,
1261
1262
  K,
1262
1263
  Z,
1263
1264
  X
1264
1265
  ] }), t[46] = K, t[47] = B) : B = t[47];
1265
1266
  let se;
1266
- return t[48] !== n || t[49] !== B || t[50] !== w ? (se = /* @__PURE__ */ a(ke, { lazyMount: !0, open: n, onOpenChange: w, placement: "center", children: B }), t[48] = n, t[49] = B, t[50] = w, t[51] = se) : se = t[51], se;
1267
+ return t[48] !== n || t[49] !== B || t[50] !== w ? (se = /* @__PURE__ */ a($e, { lazyMount: !0, open: n, onOpenChange: w, placement: "center", children: B }), t[48] = n, t[49] = B, t[50] = w, t[51] = se) : se = t[51], se;
1267
1268
  });
1268
- function Vi(t) {
1269
- return /* @__PURE__ */ a(ot, { value: t, children: t }, t);
1269
+ function Gi(t) {
1270
+ return /* @__PURE__ */ a(it, { value: t, children: t }, t);
1270
1271
  }
1271
- const Wi = () => {
1272
- const t = x(8), e = j(), o = Qe();
1272
+ const Ui = () => {
1273
+ const t = C(8), e = j(), o = Xe();
1273
1274
  let n;
1274
1275
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = ["fontSize", "uncontrolledFontSize", "onFontSizeChange"], t[0] = n) : n = t[0];
1275
1276
  const {
1276
1277
  fontSize: i,
1277
1278
  uncontrolledFontSize: l
1278
- } = ie(n), s = i ?? l;
1279
+ } = le(n), s = i ?? l;
1279
1280
  let r, c;
1280
1281
  t[1] !== s || t[2] !== e ? (r = function() {
1281
1282
  if (e && s) {
@@ -1286,22 +1287,22 @@ const Wi = () => {
1286
1287
  }, 200);
1287
1288
  return () => clearTimeout(h);
1288
1289
  }
1289
- }, c = [e, s], t[1] = s, t[2] = e, t[3] = r, t[4] = c) : (r = t[3], c = t[4]), oe(r, c);
1290
+ }, c = [e, s], t[1] = s, t[2] = e, t[3] = r, t[4] = c) : (r = t[3], c = t[4]), ie(r, c);
1290
1291
  let d;
1291
1292
  return t[5] !== o || t[6] !== e?.settings.values$ ? (d = function() {
1292
- return e?.settings.values$.pipe(J(Gi)).subscribe((h) => {
1293
+ return e?.settings.values$.pipe(J(ji)).subscribe((h) => {
1293
1294
  const m = o.value.fontSize ?? o.value.uncontrolledFontSize;
1294
1295
  h !== m && (o.value.onFontSizeChange?.("internal", h), o.update((g) => ({
1295
1296
  ...g,
1296
1297
  uncontrolledFontSize: h
1297
1298
  })));
1298
1299
  });
1299
- }, t[5] = o, t[6] = e?.settings.values$, t[7] = d) : d = t[7], pe(d), null;
1300
+ }, t[5] = o, t[6] = e?.settings.values$, t[7] = d) : d = t[7], be(d), null;
1300
1301
  };
1301
- function Gi(t) {
1302
+ function ji(t) {
1302
1303
  return t.fontScale;
1303
1304
  }
1304
- const Ui = {
1305
+ const qi = {
1305
1306
  x: 0,
1306
1307
  y: 0,
1307
1308
  width: 0,
@@ -1311,8 +1312,8 @@ const Ui = {
1311
1312
  bottom: 0,
1312
1313
  right: 0
1313
1314
  };
1314
- function ji() {
1315
- const t = x(7), [e, o] = ne(null), [n, i] = ne(Ui);
1315
+ function Ki() {
1316
+ const t = C(7), [e, o] = ne(null), [n, i] = ne(qi);
1316
1317
  let l;
1317
1318
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = new ResizeObserver((u) => {
1318
1319
  if (u[0]) {
@@ -1323,8 +1324,8 @@ function ji() {
1323
1324
  height: g,
1324
1325
  top: p,
1325
1326
  left: b,
1326
- bottom: S,
1327
- right: _
1327
+ bottom: _,
1328
+ right: S
1328
1329
  } = u[0].contentRect;
1329
1330
  i({
1330
1331
  x: f,
@@ -1333,8 +1334,8 @@ function ji() {
1333
1334
  height: g,
1334
1335
  top: p,
1335
1336
  left: b,
1336
- bottom: S,
1337
- right: _
1337
+ bottom: _,
1338
+ right: S
1338
1339
  });
1339
1340
  }
1340
1341
  }), t[0] = l) : l = t[0];
@@ -1345,40 +1346,40 @@ function ji() {
1345
1346
  return s.observe(e), () => {
1346
1347
  s.disconnect();
1347
1348
  };
1348
- }, c = [e, s], t[1] = e, t[2] = r, t[3] = c) : (r = t[2], c = t[3]), On(r, c);
1349
+ }, c = [e, s], t[1] = e, t[2] = r, t[3] = c) : (r = t[2], c = t[3]), wn(r, c);
1349
1350
  let d;
1350
1351
  return t[4] !== e || t[5] !== n ? (d = [o, n, e], t[4] = e, t[5] = n, t[6] = d) : d = t[6], d;
1351
1352
  }
1352
- const qi = (t, e, o) => {
1353
- const n = x(7), i = j();
1353
+ const Yi = (t, e, o) => {
1354
+ const n = C(7), i = j();
1354
1355
  let l;
1355
- n[0] !== i ? (l = fn(i) ? i : void 0, n[0] = i, n[1] = l) : l = n[1];
1356
+ n[0] !== i ? (l = hn(i) ? i : void 0, n[0] = i, n[1] = l) : l = n[1];
1356
1357
  const s = l;
1357
1358
  let r;
1358
1359
  n[2] !== t || n[3] !== e || n[4] !== o || n[5] !== s ? (r = () => {
1359
1360
  if (!s || !t)
1360
- return Ye;
1361
- const d = e.didLayout$.pipe($t(e.layoutInfo), be(sn), en(100, void 0, {
1361
+ return Ze;
1362
+ const d = e.didLayout$.pipe(Rt(e.layoutInfo), Se(an), nn(100, void 0, {
1362
1363
  trailing: !0
1363
- })), u = lo(t).pipe(J(Yi), $t(!1), be());
1364
- return at([d, u]).pipe(Ce((f) => {
1364
+ })), u = ro(t).pipe(J(Qi), Rt(!1), Se());
1365
+ return ct([d, u]).pipe(Ce((f) => {
1365
1366
  const [, h] = f;
1366
- return h ? (t.innerHTML = "", s.gallery.snapshot(e, t, o)) : (t.innerHTML = "", Ye);
1367
+ return h ? (t.innerHTML = "", s.gallery.snapshot(e, t, o)) : (t.innerHTML = "", Ze);
1367
1368
  }));
1368
- }, n[2] = t, n[3] = e, n[4] = o, n[5] = s, n[6] = r) : r = n[6], pe(r);
1369
+ }, n[2] = t, n[3] = e, n[4] = o, n[5] = s, n[6] = r) : r = n[6], be(r);
1369
1370
  };
1370
- function Ki(t) {
1371
+ function Zi(t) {
1371
1372
  return t.isIntersecting;
1372
1373
  }
1373
- function Yi(t) {
1374
- return t.some(Ki);
1374
+ function Qi(t) {
1375
+ return t.some(Zi);
1375
1376
  }
1376
- const Zi = N((t) => {
1377
- const e = x(16), {
1377
+ const Xi = N((t) => {
1378
+ const e = C(17), {
1378
1379
  item: o,
1379
1380
  onNavigated: n
1380
- } = t, [i, l, s] = ji(), r = j();
1381
- qi(s, o, l);
1381
+ } = t, [i, l, s] = Ki(), r = j();
1382
+ Yi(s, o, l);
1382
1383
  let c, d;
1383
1384
  e[0] !== o || e[1] !== r ? (c = () => r?.locateResource(o, {
1384
1385
  mode: "shallow"
@@ -1393,20 +1394,23 @@ const Zi = N((t) => {
1393
1394
  });
1394
1395
  }, e[4] = o, e[5] = n, e[6] = r?.navigation, e[7] = f) : f = e[7];
1395
1396
  let h;
1396
- e[8] !== i ? (h = /* @__PURE__ */ a(le, { height: "100%", width: "100%", overflow: "hidden", pointerEvents: "none", ref: i }), e[8] = i, e[9] = h) : h = e[9];
1397
- const m = (u?.meta?.absolutePageIndex ?? 0) + 1;
1398
- let g;
1399
- e[10] !== m ? (g = /* @__PURE__ */ y(U, { position: "absolute", bottom: 0, left: "0", right: "0", textAlign: "center", bgColor: "bg.panel", color: "fg", p: 4, fontSize: "xs", children: [
1400
- "Page ",
1401
- m
1402
- ] }), e[10] = m, e[11] = g) : g = e[11];
1397
+ e[8] !== i ? (h = /* @__PURE__ */ a(oe, { height: "100%", width: "100%", overflow: "hidden", pointerEvents: "none", ref: i }), e[8] = i, e[9] = h) : h = e[9];
1398
+ let m;
1399
+ e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ a(oe, { position: "absolute", inset: 0, zIndex: 1, "aria-hidden": "true" }), e[10] = m) : m = e[10];
1400
+ const g = (u?.meta?.absolutePageIndex ?? 0) + 1;
1403
1401
  let p;
1404
- return e[12] !== f || e[13] !== h || e[14] !== g ? (p = /* @__PURE__ */ y(le, { width: "100%", aspectRatio: "2/3", border: "1px solid", borderColor: "border", borderRadius: "md", "data-grid-item": !0, cursor: "pointer", position: "relative", overflow: "hidden", onClick: f, children: [
1405
- h,
1402
+ e[11] !== g ? (p = /* @__PURE__ */ y(U, { position: "absolute", bottom: 0, left: "0", right: "0", zIndex: 2, textAlign: "center", bgColor: "bg.panel", color: "fg", p: 4, fontSize: "xs", children: [
1403
+ "Page ",
1406
1404
  g
1407
- ] }), e[12] = f, e[13] = h, e[14] = g, e[15] = p) : p = e[15], p;
1408
- }), Qi = N((t) => {
1409
- const e = x(23), {
1405
+ ] }), e[11] = g, e[12] = p) : p = e[12];
1406
+ let b;
1407
+ return e[13] !== f || e[14] !== h || e[15] !== p ? (b = /* @__PURE__ */ y(oe, { width: "100%", aspectRatio: "2/3", border: "1px solid", borderColor: "border", borderRadius: "md", "data-grid-item": !0, cursor: "pointer", position: "relative", overflow: "hidden", onClick: f, children: [
1408
+ h,
1409
+ m,
1410
+ p
1411
+ ] }), e[13] = f, e[14] = h, e[15] = p, e[16] = b) : b = e[16], b;
1412
+ }), Ji = N((t) => {
1413
+ const e = C(23), {
1410
1414
  open: o,
1411
1415
  setOpen: n
1412
1416
  } = t, i = j();
@@ -1425,46 +1429,46 @@ const Zi = N((t) => {
1425
1429
  md: "lg"
1426
1430
  }, e[6] = d) : d = e[6];
1427
1431
  let u;
1428
- e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(Oe, { children: "Gallery" }) }), e[7] = u) : u = e[7];
1432
+ e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ a(Me, { children: /* @__PURE__ */ a(Ae, { children: "Gallery" }) }), e[7] = u) : u = e[7];
1429
1433
  let f;
1430
1434
  e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = ["repeat(2, minmax(0, 1fr))", "repeat(3, minmax(0, 1fr))"], e[8] = f) : f = e[8];
1431
1435
  let h;
1432
1436
  e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = [2, 4], e[9] = h) : h = e[9];
1433
1437
  let m;
1434
- e[10] !== r || e[11] !== n ? (m = r?.map((v) => /* @__PURE__ */ a(Zi, { item: v, onNavigated: () => {
1438
+ e[10] !== r || e[11] !== n ? (m = r?.map((v) => /* @__PURE__ */ a(Xi, { item: v, onNavigated: () => {
1435
1439
  n(!1);
1436
1440
  } }, v.item.id)), e[10] = r, e[11] = n, e[12] = m) : m = e[12];
1437
1441
  let g;
1438
- e[13] !== m ? (g = /* @__PURE__ */ a(Me, { children: /* @__PURE__ */ a(le, { gridTemplateColumns: f, display: "grid", gap: h, pt: 2, "data-grid": !0, children: m }) }), e[13] = m, e[14] = g) : g = e[14];
1442
+ e[13] !== m ? (g = /* @__PURE__ */ a(Oe, { children: /* @__PURE__ */ a(oe, { gridTemplateColumns: f, display: "grid", gap: h, pt: 2, "data-grid": !0, children: m }) }), e[13] = m, e[14] = g) : g = e[14];
1439
1443
  let p, b;
1440
- e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(Ae, { asChild: !0, children: /* @__PURE__ */ a(ue, { variant: "outline", children: "Cancel" }) }) }), b = /* @__PURE__ */ a(Te, {}), e[15] = p, e[16] = b) : (p = e[15], b = e[16]);
1441
- let S;
1442
- e[17] !== g ? (S = /* @__PURE__ */ y(Ie, { height: "100%", children: [
1444
+ e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(we, { asChild: !0, children: /* @__PURE__ */ a(he, { variant: "outline", children: "Cancel" }) }) }), b = /* @__PURE__ */ a(ke, {}), e[15] = p, e[16] = b) : (p = e[15], b = e[16]);
1445
+ let _;
1446
+ e[17] !== g ? (_ = /* @__PURE__ */ y(Te, { height: "100%", children: [
1443
1447
  u,
1444
1448
  g,
1445
1449
  p,
1446
1450
  b
1447
- ] }), e[17] = g, e[18] = S) : S = e[18];
1448
- let _;
1449
- return e[19] !== o || e[20] !== S || e[21] !== c ? (_ = /* @__PURE__ */ a(ke, { lazyMount: !0, placement: "center", open: o, onOpenChange: c, size: d, scrollBehavior: "inside", children: S }), e[19] = o, e[20] = S, e[21] = c, e[22] = _) : _ = e[22], _;
1450
- }), Xi = "@prose-reader/react-reader", Ji = "1.296.0", el = N((t) => {
1451
- const e = x(16), {
1451
+ ] }), e[17] = g, e[18] = _) : _ = e[18];
1452
+ let S;
1453
+ return e[19] !== o || e[20] !== _ || e[21] !== c ? (S = /* @__PURE__ */ a($e, { lazyMount: !0, placement: "center", open: o, onOpenChange: c, size: d, scrollBehavior: "inside", children: _ }), e[19] = o, e[20] = _, e[21] = c, e[22] = S) : S = e[22], S;
1454
+ }), el = "@prose-reader/react-reader", tl = "1.298.0", nl = N((t) => {
1455
+ const e = C(16), {
1452
1456
  open: o,
1453
1457
  setOpen: n
1454
1458
  } = t;
1455
1459
  let i;
1456
- e[0] !== n ? (i = (S) => n(S.open), e[0] = n, e[1] = i) : i = e[1];
1460
+ e[0] !== n ? (i = (_) => n(_.open), e[0] = n, e[1] = i) : i = e[1];
1457
1461
  let l;
1458
1462
  e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = {
1459
1463
  mdDown: "full",
1460
1464
  md: "lg"
1461
1465
  }, e[2] = l) : l = e[2];
1462
1466
  let s;
1463
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(Oe, { children: "Help" }) }), e[3] = s) : s = e[3];
1467
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ a(Me, { children: /* @__PURE__ */ a(Ae, { children: "Help" }) }), e[3] = s) : s = e[3];
1464
1468
  let r;
1465
- e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ a(xt, { mb: 2, as: "h3", size: "lg", children: "Shortcuts" }), e[4] = r) : r = e[4];
1469
+ e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ a(yt, { mb: 2, as: "h3", size: "lg", children: "Shortcuts" }), e[4] = r) : r = e[4];
1466
1470
  let c;
1467
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ a(Ft, { children: /* @__PURE__ */ a(En, {}) }), e[5] = c) : c = e[5];
1471
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ a(Lt, { children: /* @__PURE__ */ a(Bn, {}) }), e[5] = c) : c = e[5];
1468
1472
  let d;
1469
1473
  e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ y(ce, { mb: 1, children: [
1470
1474
  c,
@@ -1472,7 +1476,7 @@ const Zi = N((t) => {
1472
1476
  /* @__PURE__ */ a(U, { children: "Navigate to right page" })
1473
1477
  ] }), e[6] = d) : d = e[6];
1474
1478
  let u;
1475
- e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ a(Ft, { children: /* @__PURE__ */ a(Dn, {}) }), e[7] = u) : u = e[7];
1479
+ e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ a(Lt, { children: /* @__PURE__ */ a(Fn, {}) }), e[7] = u) : u = e[7];
1476
1480
  let f;
1477
1481
  e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ y(ee, { children: [
1478
1482
  r,
@@ -1484,72 +1488,72 @@ const Zi = N((t) => {
1484
1488
  ] })
1485
1489
  ] }), e[8] = f) : f = e[8];
1486
1490
  let h;
1487
- e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ a(xt, { mb: 2, as: "h3", size: "lg", children: "Bookmarks" }), e[9] = h) : h = e[9];
1491
+ e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ a(yt, { mb: 2, as: "h3", size: "lg", children: "Bookmarks" }), e[9] = h) : h = e[9];
1488
1492
  let m;
1489
1493
  e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ y(ee, { children: [
1490
1494
  h,
1491
1495
  /* @__PURE__ */ a(ce, { mb: 1, children: /* @__PURE__ */ a(U, { children: "Tap on the top right corner of a page bookmark it" }) })
1492
1496
  ] }), e[10] = m) : m = e[10];
1493
1497
  let g;
1494
- e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ y(Me, { overflowY: "auto", flex: 1, display: "flex", flexDirection: "column", gap: 4, children: [
1498
+ e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ y(Oe, { overflowY: "auto", flex: 1, display: "flex", flexDirection: "column", gap: 4, children: [
1495
1499
  f,
1496
1500
  m,
1497
1501
  /* @__PURE__ */ y(ee, { children: [
1498
- /* @__PURE__ */ a(xt, { mb: 2, as: "h3", size: "lg", children: "About" }),
1502
+ /* @__PURE__ */ a(yt, { mb: 2, as: "h3", size: "lg", children: "About" }),
1499
1503
  /* @__PURE__ */ y(U, { children: [
1500
- Xi,
1504
+ el,
1501
1505
  " version: ",
1502
- Ji
1506
+ tl
1503
1507
  ] })
1504
1508
  ] })
1505
1509
  ] }), e[11] = g) : g = e[11];
1506
1510
  let p;
1507
- e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ y(Ie, { children: [
1511
+ e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ y(Te, { children: [
1508
1512
  s,
1509
1513
  g,
1510
- /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(Ae, { asChild: !0, children: /* @__PURE__ */ a(ue, { variant: "outline", children: "Cancel" }) }) }),
1511
- /* @__PURE__ */ a(Te, {})
1514
+ /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(we, { asChild: !0, children: /* @__PURE__ */ a(he, { variant: "outline", children: "Cancel" }) }) }),
1515
+ /* @__PURE__ */ a(ke, {})
1512
1516
  ] }), e[12] = p) : p = e[12];
1513
1517
  let b;
1514
- return e[13] !== o || e[14] !== i ? (b = /* @__PURE__ */ a(ke, { lazyMount: !0, placement: "center", open: o, onOpenChange: i, size: l, scrollBehavior: "inside", children: p }), e[13] = o, e[14] = i, e[15] = b) : b = e[15], b;
1515
- }), Je = () => {
1516
- const t = x(3), e = j();
1518
+ return e[13] !== o || e[14] !== i ? (b = /* @__PURE__ */ a($e, { lazyMount: !0, placement: "center", open: o, onOpenChange: i, size: l, scrollBehavior: "inside", children: p }), e[13] = o, e[14] = i, e[15] = b) : b = e[15], b;
1519
+ }), et = () => {
1520
+ const t = C(3), e = j();
1517
1521
  let o, n;
1518
- return t[0] !== e ? (o = () => e ? at([e.pagination.state$, e.context]).pipe(J(nl)) : Ye, n = [e], t[0] = e, t[1] = o, t[2] = n) : (o = t[1], n = t[2]), H(o, n).data;
1522
+ return t[0] !== e ? (o = () => e ? ct([e.pagination.state$, e.context]).pipe(J(il)) : Ze, n = [e], t[0] = e, t[1] = o, t[2] = n) : (o = t[1], n = t[2]), H(o, n).data;
1519
1523
  };
1520
- function tl(t) {
1524
+ function ol(t) {
1521
1525
  return t.mediaType?.startsWith("image/");
1522
1526
  }
1523
- function nl(t) {
1524
- const [e, o] = t, n = o.manifest?.spineItems.every(tl);
1527
+ function il(t) {
1528
+ const [e, o] = t, n = o.manifest?.spineItems.every(ol);
1525
1529
  return {
1526
1530
  ...e,
1527
1531
  hasChapters: !o.isFullyPrePaginated && !n
1528
1532
  };
1529
1533
  }
1530
- const ol = {
1534
+ const ll = {
1531
1535
  _open: "fade-in",
1532
1536
  _closed: "fade-out"
1533
- }, il = () => {
1534
- const t = x(6);
1537
+ }, sl = () => {
1538
+ const t = C(6);
1535
1539
  let e;
1536
1540
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["enableFloatingProgress", "quickMenuOpen"], t[0] = e) : e = t[0];
1537
1541
  const {
1538
1542
  enableFloatingProgress: o,
1539
1543
  quickMenuOpen: n
1540
- } = ie(e), i = Je(), l = Math.floor((i?.percentageEstimateOfBook ?? 0) * 100), s = l > 0 ? l : 1;
1544
+ } = le(e), i = et(), l = Math.floor((i?.percentageEstimateOfBook ?? 0) * 100), s = l > 0 ? l : 1;
1541
1545
  if (i?.percentageEstimateOfBook === void 0 || !o)
1542
1546
  return null;
1543
1547
  const r = !n;
1544
1548
  let c;
1545
- t[1] !== s ? (c = /* @__PURE__ */ a(le, { position: "absolute", right: 0, bottom: 0, p: 2, WebkitTextStroke: "2px black", paintOrder: "stroke fill", pointerEvents: "none", letterSpacing: 1, color: "white", children: /* @__PURE__ */ y(U, { fontSize: "sm", children: [
1549
+ t[1] !== s ? (c = /* @__PURE__ */ a(oe, { position: "absolute", right: 0, bottom: 0, p: 2, WebkitTextStroke: "2px black", paintOrder: "stroke fill", pointerEvents: "none", letterSpacing: 1, color: "white", children: /* @__PURE__ */ y(U, { fontSize: "sm", children: [
1546
1550
  s,
1547
1551
  " %"
1548
1552
  ] }) }), t[1] = s, t[2] = c) : c = t[2];
1549
1553
  let d;
1550
- return t[3] !== r || t[4] !== c ? (d = /* @__PURE__ */ a(Ze, { present: r, animationName: ol, animationDuration: "moderate", children: c }), t[3] = r, t[4] = c, t[5] = d) : d = t[5], d;
1551
- }, ll = () => {
1552
- const t = x(3);
1554
+ return t[3] !== r || t[4] !== c ? (d = /* @__PURE__ */ a(Qe, { present: r, animationName: ll, animationDuration: "moderate", children: c }), t[3] = r, t[4] = c, t[5] = d) : d = t[5], d;
1555
+ }, rl = () => {
1556
+ const t = C(3);
1553
1557
  let e;
1554
1558
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ new Date(), t[0] = e) : e = t[0];
1555
1559
  const [o, n] = ne(e);
@@ -1559,9 +1563,9 @@ const ol = {
1559
1563
  n(/* @__PURE__ */ new Date());
1560
1564
  }, 6e4);
1561
1565
  return () => clearInterval(s);
1562
- }, l = [], t[1] = i, t[2] = l) : (i = t[1], l = t[2]), oe(i, l), o;
1563
- }, sl = (t) => {
1564
- const e = x(5), o = ll();
1566
+ }, l = [], t[1] = i, t[2] = l) : (i = t[1], l = t[2]), ie(i, l), o;
1567
+ }, al = (t) => {
1568
+ const e = C(5), o = rl();
1565
1569
  let n;
1566
1570
  e[0] !== o ? (n = o.toLocaleTimeString(navigator.language, {
1567
1571
  hour: "2-digit",
@@ -1569,12 +1573,12 @@ const ol = {
1569
1573
  }), e[0] = o, e[1] = n) : n = e[1];
1570
1574
  let i;
1571
1575
  return e[2] !== t || e[3] !== n ? (i = /* @__PURE__ */ a(U, { fontSize: "sm", ...t, children: n }), e[2] = t, e[3] = n, e[4] = i) : i = e[4], i;
1572
- }, rl = N(() => {
1573
- const t = x(1);
1576
+ }, cl = N(() => {
1577
+ const t = C(1);
1574
1578
  let e;
1575
- return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ a(le, { position: "absolute", left: 0, bottom: 0, p: 2, color: "white", WebkitTextStroke: "2px black", paintOrder: "stroke fill", pointerEvents: "none", letterSpacing: 1, children: /* @__PURE__ */ a(sl, {}) }), t[0] = e) : e = t[0], e;
1576
- }), al = (t, e) => {
1577
- const o = x(4), [n, i] = ne();
1579
+ return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ a(oe, { position: "absolute", left: 0, bottom: 0, p: 2, color: "white", WebkitTextStroke: "2px black", paintOrder: "stroke fill", pointerEvents: "none", letterSpacing: 1, children: /* @__PURE__ */ a(al, {}) }), t[0] = e) : e = t[0], e;
1580
+ }), dl = (t, e) => {
1581
+ const o = C(4), [n, i] = ne();
1578
1582
  let l, s;
1579
1583
  return o[0] !== e || o[1] !== t ? (l = () => {
1580
1584
  if (t === void 0) {
@@ -1588,98 +1592,98 @@ const ol = {
1588
1592
  return () => {
1589
1593
  window.clearTimeout(r);
1590
1594
  };
1591
- }, s = [e, t], o[0] = e, o[1] = t, o[2] = l, o[3] = s) : (l = o[2], s = o[3]), oe(l, s), n;
1592
- }, cl = "_pulse_1detk_1", dl = {
1593
- pulse: cl
1594
- }, fl = 100, ul = 900, hl = {
1595
+ }, s = [e, t], o[0] = e, o[1] = t, o[2] = l, o[3] = s) : (l = o[2], s = o[3]), ie(l, s), n;
1596
+ }, fl = "_pulse_1detk_1", ul = {
1597
+ pulse: fl
1598
+ }, hl = 100, ml = 900, gl = {
1595
1599
  _open: "fade-in",
1596
1600
  _closed: "fade-out",
1597
1601
  _motionReduce: "none"
1598
- }, ml = {
1602
+ }, pl = {
1599
1603
  base: "moderate",
1600
1604
  _motionReduce: "0ms"
1601
- }, gl = ({
1605
+ }, bl = ({
1602
1606
  manifest: t,
1603
1607
  viewport: e
1604
- }) => e.width === e.height ? !1 : so({
1608
+ }) => e.width === e.height ? !1 : ao({
1605
1609
  manifest: t,
1606
1610
  viewport: {
1607
1611
  height: e.width,
1608
1612
  width: e.height
1609
1613
  }
1610
- }), pl = ({
1614
+ }), Sl = ({
1611
1615
  manifest: t,
1612
1616
  pagination: e,
1613
1617
  computedSpreadMode: o,
1614
1618
  viewportState: n,
1615
1619
  viewport: i
1616
1620
  }) => {
1617
- if (!(n !== "free" || o || !gl({
1621
+ if (!(n !== "free" || o || !bl({
1618
1622
  manifest: t,
1619
1623
  viewport: i
1620
1624
  }) || !(e.beginHasAdjacentSpreadPage || e.endHasAdjacentSpreadPage)))
1621
1625
  return [e.beginSpineItemIndex, e.beginPageIndexInSpineItem, e.endSpineItemIndex, e.endPageIndexInSpineItem].map((s) => s ?? "none").join(":");
1622
- }, bl = (t) => t.pagination.state$.pipe(ln(["beginHasAdjacentSpreadPage", "beginPageIndexInSpineItem", "beginSpineItemIndex", "endHasAdjacentSpreadPage", "endPageIndexInSpineItem", "endSpineItemIndex"]), Qn({
1626
+ }, _l = (t) => t.pagination.state$.pipe(rn(["beginHasAdjacentSpreadPage", "beginPageIndexInSpineItem", "beginSpineItemIndex", "endHasAdjacentSpreadPage", "endPageIndexInSpineItem", "endSpineItemIndex"]), Jn({
1623
1627
  bufferSize: 1,
1624
1628
  refCount: !0
1625
- })), Sl = ({
1629
+ })), vl = ({
1626
1630
  pagination$: t,
1627
1631
  reader: e
1628
- }) => at([t, e.spineItemsManager.items$]).pipe(J(([{
1632
+ }) => ct([t, e.spineItemsManager.items$]).pipe(J(([{
1629
1633
  beginSpineItemIndex: o
1630
- }, n]) => o === void 0 ? void 0 : n[o]), be(), Ce((o) => o?.isReady$ ?? pt(!1))), _l = (t) => {
1631
- const e = bl(t), o = Sl({
1634
+ }, n]) => o === void 0 ? void 0 : n[o]), Se(), Ce((o) => o?.isReady$ ?? bt(!1))), xl = (t) => {
1635
+ const e = _l(t), o = vl({
1632
1636
  pagination$: e,
1633
1637
  reader: t
1634
1638
  });
1635
- return at([e, t.context.manifest$, t.settings.watch(["computedSpreadMode"]), t.viewportState$, t.viewport.watch(["width", "height"]), o]).pipe(Zn(fl), J(([n, i, l, s, r, c]) => {
1639
+ return ct([e, t.context.manifest$, t.settings.watch(["computedSpreadMode"]), t.viewportState$, t.viewport.watch(["width", "height"]), o]).pipe(Xn(hl), J(([n, i, l, s, r, c]) => {
1636
1640
  if (c)
1637
- return pl({
1641
+ return Sl({
1638
1642
  manifest: i,
1639
1643
  pagination: n,
1640
1644
  computedSpreadMode: l.computedSpreadMode ?? !1,
1641
1645
  viewportState: s,
1642
1646
  viewport: r
1643
1647
  });
1644
- }), be());
1645
- }, vl = () => {
1646
- const t = x(3), e = j();
1648
+ }), Se());
1649
+ }, Cl = () => {
1650
+ const t = C(3), e = j();
1647
1651
  let o, n;
1648
- return t[0] !== e ? (o = () => e ? _l(e) : Ye, n = [e], t[0] = e, t[1] = o, t[2] = n) : (o = t[1], n = t[2]), H(o, n).data;
1649
- }, Cl = N(() => {
1650
- const t = x(6), e = vl(), o = al(e, ul), n = o !== void 0;
1652
+ return t[0] !== e ? (o = () => e ? xl(e) : Ze, n = [e], t[0] = e, t[1] = o, t[2] = n) : (o = t[1], n = t[2]), H(o, n).data;
1653
+ }, yl = N(() => {
1654
+ const t = C(6), e = Cl(), o = dl(e, ml), n = o !== void 0;
1651
1655
  let i;
1652
- t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ a(le, { alignItems: "center", bg: "bg.inverted/72", borderRadius: "full", className: dl.pulse, color: "fg.inverted", display: "flex", height: "68px", justifyContent: "center", width: "68px", children: /* @__PURE__ */ a(co, { focusable: !1, size: 34 }) }), t[0] = i) : i = t[0];
1656
+ t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ a(oe, { alignItems: "center", bg: "bg.inverted/72", borderRadius: "full", className: ul.pulse, color: "fg.inverted", display: "flex", height: "68px", justifyContent: "center", width: "68px", children: /* @__PURE__ */ a(uo, { focusable: !1, size: 34 }) }), t[0] = i) : i = t[0];
1653
1657
  let l;
1654
- t[1] !== o ? (l = /* @__PURE__ */ a(le, { "aria-hidden": !0, position: "absolute", left: "50%", top: "50%", transform: "translate(-50%, -50%)", pointerEvents: "none", zIndex: 2, "data-spread-rotation-hint": "true", children: i }, o), t[1] = o, t[2] = l) : l = t[2];
1658
+ t[1] !== o ? (l = /* @__PURE__ */ a(oe, { "aria-hidden": !0, position: "absolute", left: "50%", top: "50%", transform: "translate(-50%, -50%)", pointerEvents: "none", zIndex: 2, "data-spread-rotation-hint": "true", children: i }, o), t[1] = o, t[2] = l) : l = t[2];
1655
1659
  let s;
1656
- return t[3] !== n || t[4] !== l ? (s = /* @__PURE__ */ a(Ze, { present: n, lazyMount: !0, animationName: hl, animationDuration: ml, children: l }), t[3] = n, t[4] = l, t[5] = s) : s = t[5], s;
1657
- }), xl = () => {
1658
- const t = x(2), e = j();
1660
+ return t[3] !== n || t[4] !== l ? (s = /* @__PURE__ */ a(Qe, { present: n, lazyMount: !0, unmountOnExit: !0, animationName: gl, animationDuration: pl, children: l }), t[3] = n, t[4] = l, t[5] = s) : s = t[5], s;
1661
+ }), Il = () => {
1662
+ const t = C(2), e = j();
1659
1663
  let o;
1660
- t[0] !== e?.links$ ? (o = () => e?.links$.subscribe(yl), t[0] = e?.links$, t[1] = o) : o = t[1], pe(o);
1664
+ t[0] !== e?.links$ ? (o = () => e?.links$.subscribe(Tl), t[0] = e?.links$, t[1] = o) : o = t[1], be(o);
1661
1665
  };
1662
- function yl(t) {
1663
- if (t.type === "click" && ro(t.target, "a")) {
1666
+ function Tl(t) {
1667
+ if (t.type === "click" && co(t.target, "a")) {
1664
1668
  if (!t.target.href)
1665
1669
  return;
1666
1670
  const e = new URL(t.target.href);
1667
1671
  window.location.host !== e.host && confirm("You are going to be redirected to external link") && window.open(t.target.href, "__blank");
1668
1672
  }
1669
1673
  }
1670
- const Il = () => {
1671
- const t = x(3);
1674
+ const kl = () => {
1675
+ const t = C(3);
1672
1676
  let e;
1673
1677
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["notificationsSubject"], t[0] = e) : e = t[0];
1674
1678
  const {
1675
1679
  notificationsSubject: o
1676
- } = ie(e);
1680
+ } = le(e);
1677
1681
  let n;
1678
- t[1] !== o ? (n = () => o.pipe(gt(Jt), Xn((l) => {
1679
- const s = l.duration ?? 3e3, r = new Jn((d) => {
1682
+ t[1] !== o ? (n = () => o.pipe(pt(tn), eo((l) => {
1683
+ const s = l.duration ?? 3e3, r = new to((d) => {
1680
1684
  try {
1681
1685
  queueMicrotask(() => {
1682
- const u = Rt.create({
1686
+ const u = Mt.create({
1683
1687
  title: l.title,
1684
1688
  description: l.description,
1685
1689
  duration: s
@@ -1690,15 +1694,15 @@ const Il = () => {
1690
1694
  const f = u;
1691
1695
  d.error(f);
1692
1696
  }
1693
- }), c = o.pipe(eo(1), gt((d) => !!l.key && d?.key === l.key));
1694
- return r.pipe(Ce((d) => tn(nn(s), l.abort ?? Ye, c).pipe(to(), no(() => {
1697
+ }), c = o.pipe(no(1), pt((d) => !!l.key && d?.key === l.key));
1698
+ return r.pipe(Ce((d) => on(ln(s), l.abort ?? Ze, c).pipe(oo(), io(() => {
1695
1699
  queueMicrotask(() => {
1696
- Rt.dismiss(d);
1700
+ Mt.dismiss(d);
1697
1701
  });
1698
1702
  }))));
1699
- })), t[1] = o, t[2] = n) : n = t[2], pe(n);
1700
- }, Tl = kn(Co), bn = N((t) => {
1701
- const e = x(10);
1703
+ })), t[1] = o, t[2] = n) : n = t[2], be(n);
1704
+ }, $l = Rn(yo), _n = N((t) => {
1705
+ const e = C(10);
1702
1706
  let o;
1703
1707
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = {
1704
1708
  "--bg": "colors.bg",
@@ -1759,9 +1763,9 @@ const Il = () => {
1759
1763
  }
1760
1764
  }, e[5] = r, e[6] = c) : c = e[6];
1761
1765
  let d;
1762
- return e[7] !== t || e[8] !== c ? (d = /* @__PURE__ */ a(le, { display: "contents", css: o, children: /* @__PURE__ */ a(Tl, { keyboard: !1, style: n, css: i, styles: c, ...t }) }), e[7] = t, e[8] = c, e[9] = d) : d = e[9], d;
1763
- }), kl = () => {
1764
- const t = x(4), e = Xe();
1766
+ return e[7] !== t || e[8] !== c ? (d = /* @__PURE__ */ a(oe, { display: "contents", css: o, children: /* @__PURE__ */ a($l, { keyboard: !1, style: n, css: i, styles: c, ...t }) }), e[7] = t, e[8] = c, e[9] = d) : d = e[9], d;
1767
+ }), Rl = () => {
1768
+ const t = C(4), e = Je();
1765
1769
  let o;
1766
1770
  t[0] !== e?.audio.state$ ? (o = () => e?.audio.state$, t[0] = e?.audio.state$, t[1] = o) : o = t[1];
1767
1771
  let n;
@@ -1770,27 +1774,27 @@ const Il = () => {
1770
1774
  data: i
1771
1775
  } = H(o, n);
1772
1776
  return i;
1773
- }, Yt = (t) => {
1777
+ }, Qt = (t) => {
1774
1778
  if (!Number.isFinite(t) || t < 0) return "00:00";
1775
1779
  const e = Math.floor(t), o = Math.floor(e / 3600), n = Math.floor(e % 3600 / 60), i = e % 60;
1776
1780
  return o > 0 ? [o, n, i].map((l) => String(l).padStart(2, "0")).join(":") : [n, i].map((l) => String(l).padStart(2, "0")).join(":");
1777
- }, $l = (t) => {
1778
- const e = x(42), o = Xe(), n = kl(), i = !!n?.currentTrack || (n?.tracks.length ?? 0) > 0, l = n?.duration, s = Math.max(0, l ?? 0), r = typeof l == "number" && l > 0 ? l : void 0, c = r !== void 0, d = r ?? 1, u = c ? Math.min(Math.max(0, n?.currentTime ?? 0), r) : 0, f = !i || !!n?.isLoading || !c, [h, m] = ne(u), g = it(Rl);
1781
+ }, Ml = (t) => {
1782
+ const e = C(42), o = Je(), n = Rl(), i = !!n?.currentTrack || (n?.tracks.length ?? 0) > 0, l = n?.duration, s = Math.max(0, l ?? 0), r = typeof l == "number" && l > 0 ? l : void 0, c = r !== void 0, d = r ?? 1, u = c ? Math.min(Math.max(0, n?.currentTime ?? 0), r) : 0, f = !i || !!n?.isLoading || !c, [h, m] = ne(u), g = lt(Ol);
1779
1783
  let p;
1780
- if (e[0] !== o?.audio.state$ || e[1] !== g ? (p = () => o?.audio.state$.pipe(J(Ml), Ot((z) => {
1784
+ if (e[0] !== o?.audio.state$ || e[1] !== g ? (p = () => o?.audio.state$.pipe(J(Al), At((z) => {
1781
1785
  g.value || (m(z), g.next(!1));
1782
- })), e[0] = o?.audio.state$, e[1] = g, e[2] = p) : p = e[2], pe(p), !n)
1786
+ })), e[0] = o?.audio.state$, e[1] = g, e[2] = p) : p = e[2], be(p), !n)
1783
1787
  return null;
1784
- const S = n.isPlaying ? "Pause audio" : "Play audio";
1785
- let _;
1786
- e[3] !== o?.audio ? (_ = () => {
1788
+ const _ = n.isPlaying ? "Pause audio" : "Play audio";
1789
+ let S;
1790
+ e[3] !== o?.audio ? (S = () => {
1787
1791
  o?.audio.toggle();
1788
- }, e[3] = o?.audio, e[4] = _) : _ = e[4];
1792
+ }, e[3] = o?.audio, e[4] = S) : S = e[4];
1789
1793
  const v = !i || n.isLoading;
1790
- let C;
1791
- e[5] !== n.isPlaying ? (C = n.isPlaying ? /* @__PURE__ */ a(Bn, {}) : /* @__PURE__ */ a(Fn, {}), e[5] = n.isPlaying, e[6] = C) : C = e[6];
1794
+ let x;
1795
+ e[5] !== n.isPlaying ? (x = n.isPlaying ? /* @__PURE__ */ a(Ln, {}) : /* @__PURE__ */ a(Nn, {}), e[5] = n.isPlaying, e[6] = x) : x = e[6];
1792
1796
  let T;
1793
- e[7] !== S || e[8] !== _ || e[9] !== v || e[10] !== C ? (T = /* @__PURE__ */ a(te, { "aria-label": S, size: "sm", variant: "ghost", onClick: _, disabled: v, children: C }), e[7] = S, e[8] = _, e[9] = v, e[10] = C, e[11] = T) : T = e[11];
1797
+ e[7] !== _ || e[8] !== S || e[9] !== v || e[10] !== x ? (T = /* @__PURE__ */ a(te, { "aria-label": _, size: "sm", variant: "ghost", onClick: S, disabled: v, children: x }), e[7] = _, e[8] = S, e[9] = v, e[10] = x, e[11] = T) : T = e[11];
1794
1798
  let I;
1795
1799
  e[12] !== g ? (I = (z) => {
1796
1800
  const D = Array.isArray(z) ? z[0] : z;
@@ -1806,13 +1810,13 @@ const Il = () => {
1806
1810
  m(D), o?.audio.setCurrentTime(D), g.next(!1);
1807
1811
  }, e[14] = o?.audio, e[15] = g, e[16] = k) : k = e[16];
1808
1812
  let R;
1809
- e[17] !== h || e[18] !== f || e[19] !== d || e[20] !== I || e[21] !== k ? (R = /* @__PURE__ */ a(bn, { value: h, min: 0, max: d, disabled: f, onChange: I, onChangeComplete: k }), e[17] = h, e[18] = f, e[19] = d, e[20] = I, e[21] = k, e[22] = R) : R = e[22];
1813
+ e[17] !== h || e[18] !== f || e[19] !== d || e[20] !== I || e[21] !== k ? (R = /* @__PURE__ */ a(_n, { value: h, min: 0, max: d, disabled: f, onChange: I, onChangeComplete: k }), e[17] = h, e[18] = f, e[19] = d, e[20] = I, e[21] = k, e[22] = R) : R = e[22];
1810
1814
  let P;
1811
- e[23] !== n.isLoading || e[24] !== h ? (P = n.isLoading ? "Loading audio..." : Yt(h), e[23] = n.isLoading, e[24] = h, e[25] = P) : P = e[25];
1815
+ e[23] !== n.isLoading || e[24] !== h ? (P = n.isLoading ? "Loading audio..." : Qt(h), e[23] = n.isLoading, e[24] = h, e[25] = P) : P = e[25];
1812
1816
  let E;
1813
1817
  e[26] !== P ? (E = /* @__PURE__ */ a(U, { fontSize: "xs", color: "fg.muted", children: P }), e[26] = P, e[27] = E) : E = e[27];
1814
1818
  let M;
1815
- e[28] !== s ? (M = Yt(s), e[28] = s, e[29] = M) : M = e[29];
1819
+ e[28] !== s ? (M = Qt(s), e[28] = s, e[29] = M) : M = e[29];
1816
1820
  let A;
1817
1821
  e[30] !== M ? (A = /* @__PURE__ */ a(U, { fontSize: "xs", color: "fg.muted", children: M }), e[30] = M, e[31] = A) : A = e[31];
1818
1822
  let w;
@@ -1831,16 +1835,16 @@ const Il = () => {
1831
1835
  $
1832
1836
  ] }), e[38] = t, e[39] = $, e[40] = T, e[41] = O) : O = e[41], O;
1833
1837
  };
1834
- function Rl() {
1835
- return new on(!1);
1838
+ function Ol() {
1839
+ return new sn(!1);
1836
1840
  }
1837
- function Ml(t) {
1841
+ function Al(t) {
1838
1842
  return t.currentTime;
1839
1843
  }
1840
- const Ol = () => {
1841
- const t = x(4), e = Xe();
1844
+ const wl = () => {
1845
+ const t = C(4), e = Je();
1842
1846
  let o;
1843
- t[0] !== e?.audio.visibleTrackIds$ ? (o = () => e?.audio.visibleTrackIds$.pipe(J(Al), be()), t[0] = e?.audio.visibleTrackIds$, t[1] = o) : o = t[1];
1847
+ t[0] !== e?.audio.visibleTrackIds$ ? (o = () => e?.audio.visibleTrackIds$.pipe(J(zl), Se()), t[0] = e?.audio.visibleTrackIds$, t[1] = o) : o = t[1];
1844
1848
  let n;
1845
1849
  t[2] !== e ? (n = [e], t[2] = e, t[3] = n) : n = t[3];
1846
1850
  const {
@@ -1848,11 +1852,11 @@ const Ol = () => {
1848
1852
  } = H(o, n);
1849
1853
  return i === void 0 ? !1 : i;
1850
1854
  };
1851
- function Al(t) {
1855
+ function zl(t) {
1852
1856
  return t.length > 0;
1853
1857
  }
1854
- const wl = de.forwardRef(function(e, o) {
1855
- const n = x(26);
1858
+ const Pl = de.forwardRef(function(e, o) {
1859
+ const n = C(26);
1856
1860
  let i, l, s, r, c, d;
1857
1861
  n[0] !== e ? ({
1858
1862
  showArrow: c,
@@ -1869,42 +1873,42 @@ const wl = de.forwardRef(function(e, o) {
1869
1873
  gutter: 4
1870
1874
  }, n[7] = r.positioning, n[8] = f) : f = n[8];
1871
1875
  let h;
1872
- n[9] !== i ? (h = /* @__PURE__ */ a(qe.Trigger, { asChild: !0, children: i }), n[9] = i, n[10] = h) : h = n[10];
1876
+ n[9] !== i ? (h = /* @__PURE__ */ a(Ke.Trigger, { asChild: !0, children: i }), n[9] = i, n[10] = h) : h = n[10];
1873
1877
  const m = !u;
1874
1878
  let g;
1875
- n[11] !== c ? (g = c && /* @__PURE__ */ a(qe.Arrow, { children: /* @__PURE__ */ a(qe.ArrowTip, {}) }), n[11] = c, n[12] = g) : g = n[12];
1879
+ n[11] !== c ? (g = c && /* @__PURE__ */ a(Ke.Arrow, { children: /* @__PURE__ */ a(Ke.ArrowTip, {}) }), n[11] = c, n[12] = g) : g = n[12];
1876
1880
  let p;
1877
- n[13] !== l || n[14] !== o || n[15] !== g ? (p = /* @__PURE__ */ a(qe.Positioner, { children: /* @__PURE__ */ y(qe.Content, { width: "auto", px: "2", py: "1", textStyle: "xs", rounded: "sm", ref: o, children: [
1881
+ n[13] !== l || n[14] !== o || n[15] !== g ? (p = /* @__PURE__ */ a(Ke.Positioner, { children: /* @__PURE__ */ y(Ke.Content, { width: "auto", px: "2", py: "1", textStyle: "xs", rounded: "sm", ref: o, children: [
1878
1882
  g,
1879
1883
  l
1880
1884
  ] }) }), n[13] = l, n[14] = o, n[15] = g, n[16] = p) : p = n[16];
1881
1885
  let b;
1882
- n[17] !== s || n[18] !== m || n[19] !== p ? (b = /* @__PURE__ */ a(bt, { disabled: m, container: s, children: p }), n[17] = s, n[18] = m, n[19] = p, n[20] = b) : b = n[20];
1883
- let S;
1884
- return n[21] !== r || n[22] !== f || n[23] !== h || n[24] !== b ? (S = /* @__PURE__ */ y(qe.Root, { ...r, positioning: f, children: [
1886
+ n[17] !== s || n[18] !== m || n[19] !== p ? (b = /* @__PURE__ */ a(St, { disabled: m, container: s, children: p }), n[17] = s, n[18] = m, n[19] = p, n[20] = b) : b = n[20];
1887
+ let _;
1888
+ return n[21] !== r || n[22] !== f || n[23] !== h || n[24] !== b ? (_ = /* @__PURE__ */ y(Ke.Root, { ...r, positioning: f, children: [
1885
1889
  h,
1886
1890
  b
1887
- ] }), n[21] = r, n[22] = f, n[23] = h, n[24] = b, n[25] = S) : S = n[25], S;
1888
- }), zl = de.forwardRef(function(e, o) {
1889
- const n = x(8);
1891
+ ] }), n[21] = r, n[22] = f, n[23] = h, n[24] = b, n[25] = _) : _ = n[25], _;
1892
+ }), El = de.forwardRef(function(e, o) {
1893
+ const n = C(8);
1890
1894
  let i, l;
1891
1895
  n[0] !== e ? ({
1892
1896
  children: i,
1893
1897
  ...l
1894
1898
  } = e, n[0] = e, n[1] = i, n[2] = l) : (i = n[1], l = n[2]);
1895
1899
  let s;
1896
- n[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ a(te, { variant: "ghost", "aria-label": "info", size: "2xs", colorPalette: "gray", children: /* @__PURE__ */ a(xo, {}) }), n[3] = s) : s = n[3];
1900
+ n[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ a(te, { variant: "ghost", "aria-label": "info", size: "2xs", colorPalette: "gray", children: /* @__PURE__ */ a(Io, {}) }), n[3] = s) : s = n[3];
1897
1901
  let r;
1898
- return n[4] !== i || n[5] !== o || n[6] !== l ? (r = /* @__PURE__ */ a(wl, { content: i, ...l, ref: o, children: s }), n[4] = i, n[5] = o, n[6] = l, n[7] = r) : r = n[7], r;
1899
- }), Pl = de.forwardRef(function(e, o) {
1900
- const n = x(4);
1902
+ return n[4] !== i || n[5] !== o || n[6] !== l ? (r = /* @__PURE__ */ a(Pl, { content: i, ...l, ref: o, children: s }), n[4] = i, n[5] = o, n[6] = l, n[7] = r) : r = n[7], r;
1903
+ }), Dl = de.forwardRef(function(e, o) {
1904
+ const n = C(4);
1901
1905
  let i;
1902
- n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ a(lt.Range, {}), n[0] = i) : i = n[0];
1906
+ n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ a(st.Range, {}), n[0] = i) : i = n[0];
1903
1907
  let l;
1904
- return n[1] !== e || n[2] !== o ? (l = /* @__PURE__ */ a(lt.Track, { ...e, ref: o, children: i }), n[1] = e, n[2] = o, n[3] = l) : l = n[3], l;
1908
+ return n[1] !== e || n[2] !== o ? (l = /* @__PURE__ */ a(st.Track, { ...e, ref: o, children: i }), n[1] = e, n[2] = o, n[3] = l) : l = n[3], l;
1905
1909
  });
1906
1910
  de.forwardRef(function(e, o) {
1907
- const n = x(11);
1911
+ const n = C(11);
1908
1912
  let i, l, s;
1909
1913
  n[0] !== e ? ({
1910
1914
  children: i,
@@ -1912,15 +1916,15 @@ de.forwardRef(function(e, o) {
1912
1916
  ...s
1913
1917
  } = e, n[0] = e, n[1] = i, n[2] = l, n[3] = s) : (i = n[1], l = n[2], s = n[3]);
1914
1918
  let r;
1915
- n[4] !== l ? (r = l && /* @__PURE__ */ a(zl, { children: l }), n[4] = l, n[5] = r) : r = n[5];
1919
+ n[4] !== l ? (r = l && /* @__PURE__ */ a(El, { children: l }), n[4] = l, n[5] = r) : r = n[5];
1916
1920
  let c;
1917
- return n[6] !== i || n[7] !== o || n[8] !== s || n[9] !== r ? (c = /* @__PURE__ */ y(lt.Label, { ...s, ref: o, children: [
1921
+ return n[6] !== i || n[7] !== o || n[8] !== s || n[9] !== r ? (c = /* @__PURE__ */ y(st.Label, { ...s, ref: o, children: [
1918
1922
  i,
1919
1923
  r
1920
1924
  ] }), n[6] = i, n[7] = o, n[8] = s, n[9] = r, n[10] = c) : c = n[10], c;
1921
1925
  });
1922
- const El = lt.Root, Dl = lt.ValueText, Dt = () => {
1923
- const t = Je(), e = t?.numberOfTotalPages === 1, o = (t?.beginNumberOfPagesInSpineItem ?? 0) > 1, n = (t?.endNumberOfPagesInSpineItem ?? 0) > 1, i = (t?.hasChapters ? t?.beginPageIndexInSpineItem : t?.beginAbsolutePageIndex) ?? 0, l = (t?.hasChapters ? t?.endPageIndexInSpineItem : t?.endAbsolutePageIndex) ?? 0, [s = 0, r = 0] = [i, l].sort((u, f) => u - f), c = t?.beginPageIndexInSpineItem !== t?.endPageIndexInSpineItem || t?.beginSpineItemIndex !== t?.endSpineItemIndex, d = t?.hasChapters ? t?.beginNumberOfPagesInSpineItem : t?.numberOfTotalPages;
1926
+ const Bl = st.Root, Fl = st.ValueText, Bt = () => {
1927
+ const t = et(), e = t?.numberOfTotalPages === 1, o = (t?.beginNumberOfPagesInSpineItem ?? 0) > 1, n = (t?.endNumberOfPagesInSpineItem ?? 0) > 1, i = (t?.hasChapters ? t?.beginPageIndexInSpineItem : t?.beginAbsolutePageIndex) ?? 0, l = (t?.hasChapters ? t?.endPageIndexInSpineItem : t?.endAbsolutePageIndex) ?? 0, [s = 0, r = 0] = [i, l].sort((u, f) => u - f), c = t?.beginPageIndexInSpineItem !== t?.endPageIndexInSpineItem || t?.beginSpineItemIndex !== t?.endSpineItemIndex, d = t?.hasChapters ? t?.beginNumberOfPagesInSpineItem : t?.numberOfTotalPages;
1924
1928
  return {
1925
1929
  hasOnlyOnePage: e,
1926
1930
  beginPageIndex: i,
@@ -1932,41 +1936,41 @@ const El = lt.Root, Dl = lt.ValueText, Dt = () => {
1932
1936
  leftPageIndex: s,
1933
1937
  rightPageIndex: r
1934
1938
  };
1935
- }, Bl = () => {
1936
- const t = x(24), e = Je(), {
1939
+ }, Ll = () => {
1940
+ const t = C(24), e = et(), {
1937
1941
  hasOnlyOnePage: o,
1938
1942
  leftPageIndex: n,
1939
1943
  rightPageIndex: i,
1940
1944
  totalApproximatePages: l,
1941
1945
  beginAndEndAreDifferent: s
1942
- } = Dt();
1946
+ } = Bt();
1943
1947
  let r;
1944
1948
  t[0] !== e?.percentageEstimateOfBook ? (r = Math.round((e?.percentageEstimateOfBook ?? 0) * 100), t[0] = e?.percentageEstimateOfBook, t[1] = r) : r = t[1];
1945
1949
  const c = r;
1946
1950
  let d;
1947
1951
  if (t[2] !== e?.beginChapterInfo) {
1948
- const v = (C) => C?.subChapter ? `${C.title} / ${v(C.subChapter)}` : C?.title || "";
1952
+ const v = (x) => x?.subChapter ? `${x.title} / ${v(x.subChapter)}` : x?.title || "";
1949
1953
  d = v(e?.beginChapterInfo), t[2] = e?.beginChapterInfo, t[3] = d;
1950
1954
  } else
1951
1955
  d = t[3];
1952
1956
  const u = d;
1953
1957
  let f;
1954
- t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(Pl, { width: 110 }), t[4] = f) : f = t[4];
1958
+ t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(Dl, { width: 110 }), t[4] = f) : f = t[4];
1955
1959
  const h = `${c}%`;
1956
1960
  let m;
1957
1961
  t[5] !== h ? (m = /* @__PURE__ */ y(ce, { justifyContent: "space-between", children: [
1958
1962
  f,
1959
- /* @__PURE__ */ a(Dl, { children: h })
1963
+ /* @__PURE__ */ a(Fl, { children: h })
1960
1964
  ] }), t[5] = h, t[6] = m) : m = t[6];
1961
1965
  let g;
1962
- t[7] !== c || t[8] !== m ? (g = /* @__PURE__ */ a(El, { value: c, size: "xs", width: 150, children: m }), t[7] = c, t[8] = m, t[9] = g) : g = t[9];
1966
+ t[7] !== c || t[8] !== m ? (g = /* @__PURE__ */ a(Bl, { value: c, size: "xs", width: 150, children: m }), t[7] = c, t[8] = m, t[9] = g) : g = t[9];
1963
1967
  const p = u ? `Chapter: ${u}` : " ";
1964
1968
  let b;
1965
1969
  t[10] !== p ? (b = /* @__PURE__ */ a(U, { truncate: !0, maxWidth: "100%", fontSize: "sm", mt: 1, children: p }), t[10] = p, t[11] = b) : b = t[11];
1966
- let S;
1967
- t[12] !== s || t[13] !== o || t[14] !== n || t[15] !== e?.beginAbsolutePageIndex || t[16] !== e?.hasChapters || t[17] !== i || t[18] !== l ? (S = !o && /* @__PURE__ */ y(ce, { children: [
1970
+ let _;
1971
+ t[12] !== s || t[13] !== o || t[14] !== n || t[15] !== e?.beginAbsolutePageIndex || t[16] !== e?.hasChapters || t[17] !== i || t[18] !== l ? (_ = !o && /* @__PURE__ */ y(ce, { children: [
1968
1972
  /* @__PURE__ */ a(U, { fontSize: "xs", children: s ? `${n + 1} - ${i + 1} of ${l}` : `${n + 1} of ${l}` }),
1969
- !!e?.hasChapters && /* @__PURE__ */ y(ve, { children: [
1973
+ !!e?.hasChapters && /* @__PURE__ */ y(xe, { children: [
1970
1974
  /* @__PURE__ */ a(U, { children: "-" }),
1971
1975
  /* @__PURE__ */ y(U, { fontSize: "xs", children: [
1972
1976
  "(",
@@ -1974,15 +1978,15 @@ const El = lt.Root, Dl = lt.ValueText, Dt = () => {
1974
1978
  ")"
1975
1979
  ] })
1976
1980
  ] })
1977
- ] }), t[12] = s, t[13] = o, t[14] = n, t[15] = e?.beginAbsolutePageIndex, t[16] = e?.hasChapters, t[17] = i, t[18] = l, t[19] = S) : S = t[19];
1978
- let _;
1979
- return t[20] !== g || t[21] !== b || t[22] !== S ? (_ = /* @__PURE__ */ y(ee, { alignItems: "center", gap: 1, maxW: "100%", overflow: "auto", children: [
1981
+ ] }), t[12] = s, t[13] = o, t[14] = n, t[15] = e?.beginAbsolutePageIndex, t[16] = e?.hasChapters, t[17] = i, t[18] = l, t[19] = _) : _ = t[19];
1982
+ let S;
1983
+ return t[20] !== g || t[21] !== b || t[22] !== _ ? (S = /* @__PURE__ */ y(ee, { alignItems: "center", gap: 1, maxW: "100%", overflow: "auto", children: [
1980
1984
  g,
1981
1985
  b,
1982
- S
1983
- ] }), t[20] = g, t[21] = b, t[22] = S, t[23] = _) : _ = t[23], _;
1984
- }, Sn = N((t) => {
1985
- const e = x(12);
1986
+ _
1987
+ ] }), t[20] = g, t[21] = b, t[22] = _, t[23] = S) : S = t[23], S;
1988
+ }, vn = N((t) => {
1989
+ const e = C(12);
1986
1990
  let o, n, i;
1987
1991
  e[0] !== t ? ({
1988
1992
  children: o,
@@ -2002,21 +2006,21 @@ const El = lt.Root, Dl = lt.ValueText, Dt = () => {
2002
2006
  _closed: "slide-to-top, fade-out"
2003
2007
  }, e[4] = n, e[5] = l, e[6] = s) : (l = e[5], s = e[6]);
2004
2008
  let r;
2005
- return e[7] !== o || e[8] !== i || e[9] !== l || e[10] !== s ? (r = /* @__PURE__ */ a(Ze, { display: "flex", flexDirection: "row", width: "100%", position: "absolute", ...l, animationName: s, animationDuration: "moderate", bgColor: "bg.panel", alignItems: "center", justifyContent: "center", shadow: "md", p: 4, ...i, children: o }), e[7] = o, e[8] = i, e[9] = l, e[10] = s, e[11] = r) : r = e[11], r;
2006
- }), Fl = () => {
2007
- const t = x(10), o = Je()?.isUsingSpread, {
2009
+ return e[7] !== o || e[8] !== i || e[9] !== l || e[10] !== s ? (r = /* @__PURE__ */ a(Qe, { display: "flex", flexDirection: "row", width: "100%", position: "absolute", ...l, animationName: s, animationDuration: "moderate", bgColor: "bg.panel", alignItems: "center", justifyContent: "center", shadow: "md", p: 4, ...i, children: o }), e[7] = o, e[8] = i, e[9] = l, e[10] = s, e[11] = r) : r = e[11], r;
2010
+ }), Nl = () => {
2011
+ const t = C(10), o = et()?.isUsingSpread, {
2008
2012
  beginPageIndex: n,
2009
2013
  totalApproximatePages: i
2010
- } = Dt(), l = i === void 0 ? 0 : i, s = o ? Math.floor((n || 0) / 2) : n;
2014
+ } = Bt(), l = i === void 0 ? 0 : i, s = o ? Math.floor((n || 0) / 2) : n;
2011
2015
  let r;
2012
- t[0] !== s ? (r = () => Ke({
2016
+ t[0] !== s ? (r = () => Ye({
2013
2017
  default: s || 0
2014
2018
  }), t[0] = s, t[1] = r) : r = t[1];
2015
- const [c, d] = Kn(r), u = Math.max(0, o ? Math.floor((l - 1) / 2) : l - 1);
2019
+ const [c, d] = Zn(r), u = Math.max(0, o ? Math.floor((l - 1) / 2) : l - 1);
2016
2020
  let f, h;
2017
2021
  t[2] !== s || t[3] !== d ? (f = () => {
2018
2022
  d.update(s || 0);
2019
- }, h = [s, d], t[2] = s, t[3] = d, t[4] = f, t[5] = h) : (f = t[4], h = t[5]), oe(f, h);
2023
+ }, h = [s, d], t[2] = s, t[3] = d, t[4] = f, t[5] = h) : (f = t[4], h = t[5]), ie(f, h);
2020
2024
  let m;
2021
2025
  return t[6] !== u || t[7] !== c || t[8] !== d ? (m = {
2022
2026
  value: c,
@@ -2024,8 +2028,8 @@ const El = lt.Root, Dl = lt.ValueText, Dt = () => {
2024
2028
  min: 0,
2025
2029
  max: u
2026
2030
  }, t[6] = u, t[7] = c, t[8] = d, t[9] = m) : m = t[9], m;
2027
- }, Ll = (t) => {
2028
- const e = x(21), o = j(), n = Je(), {
2031
+ }, Hl = (t) => {
2032
+ const e = C(21), o = j(), n = et(), {
2029
2033
  data: i
2030
2034
  } = H(() => o?.context, [o]) ?? {};
2031
2035
  let l;
@@ -2035,14 +2039,14 @@ const El = lt.Root, Dl = lt.ValueText, Dt = () => {
2035
2039
  } = l, r = s?.readingDirection === "rtl", c = n?.isUsingSpread, {
2036
2040
  totalApproximatePages: d,
2037
2041
  isBeginWithinChapter: u
2038
- } = Dt(), f = d === void 0 ? 0 : d, h = u, {
2042
+ } = Bt(), f = d === void 0 ? 0 : d, h = u, {
2039
2043
  value: m,
2040
2044
  valueSignal: g,
2041
2045
  min: p,
2042
2046
  max: b
2043
- } = Fl();
2044
- let S;
2045
- e[2] !== h || e[3] !== c || e[4] !== o || e[5] !== g ? (S = (R) => {
2047
+ } = Nl();
2048
+ let _;
2049
+ e[2] !== h || e[3] !== c || e[4] !== o || e[5] !== g ? (_ = (R) => {
2046
2050
  const [P] = Array.isArray(R) ? R : [R], E = P === void 0 ? 0 : P;
2047
2051
  g.update(E);
2048
2052
  const M = c ? Math.floor(E) * 2 : Math.floor(E);
@@ -2054,32 +2058,32 @@ const El = lt.Root, Dl = lt.ValueText, Dt = () => {
2054
2058
  absolutePageIndex: M,
2055
2059
  animation: !1
2056
2060
  });
2057
- }, e[2] = h, e[3] = c, e[4] = o, e[5] = g, e[6] = S) : S = e[6];
2058
- const _ = S;
2061
+ }, e[2] = h, e[3] = c, e[4] = o, e[5] = g, e[6] = _) : _ = e[6];
2062
+ const S = _;
2059
2063
  let v;
2060
2064
  if (e[7] !== o?.navigation || e[8] !== g.subject ? (v = () => o?.navigation.throttleLock({
2061
2065
  duration: 100,
2062
2066
  trigger: g.subject
2063
- }), e[7] = o?.navigation, e[8] = g.subject, e[9] = v) : v = e[9], pe(v), f === 1 || c && f === 2) {
2067
+ }), e[7] = o?.navigation, e[8] = g.subject, e[9] = v) : v = e[9], be(v), f === 1 || c && f === 2) {
2064
2068
  let R;
2065
- return e[10] !== t.style ? (R = /* @__PURE__ */ a(le, { style: t.style }), e[10] = t.style, e[11] = R) : R = e[11], R;
2069
+ return e[10] !== t.style ? (R = /* @__PURE__ */ a(oe, { style: t.style }), e[10] = t.style, e[11] = R) : R = e[11], R;
2066
2070
  }
2067
2071
  let I;
2068
2072
  e[12] !== m ? (I = [m], e[12] = m, e[13] = I) : I = e[13];
2069
2073
  let k;
2070
- return e[14] !== b || e[15] !== p || e[16] !== _ || e[17] !== t || e[18] !== r || e[19] !== I ? (k = /* @__PURE__ */ a(bn, { value: I, max: b, min: p, reverse: r, step: 1, onChange: _, ...t }), e[14] = b, e[15] = p, e[16] = _, e[17] = t, e[18] = r, e[19] = I, e[20] = k) : k = e[20], k;
2071
- }, Nl = N((t) => {
2072
- const e = x(109), {
2074
+ return e[14] !== b || e[15] !== p || e[16] !== S || e[17] !== t || e[18] !== r || e[19] !== I ? (k = /* @__PURE__ */ a(_n, { value: I, max: b, min: p, reverse: r, step: 1, onChange: S, ...t }), e[14] = b, e[15] = p, e[16] = S, e[17] = t, e[18] = r, e[19] = I, e[20] = k) : k = e[20], k;
2075
+ }, Vl = N((t) => {
2076
+ const e = C(109), {
2073
2077
  open: o,
2074
2078
  onItemClick: n
2075
- } = t, i = _e(null), l = j();
2079
+ } = t, i = ve(null), l = j();
2076
2080
  let s;
2077
2081
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = ["quickMenuBottomBarBoundingBoxSignal", "onFontSizeMenuOpenChange", "onRefitMenuOpenChange"], e[0] = s) : s = e[0];
2078
2082
  const {
2079
2083
  quickMenuBottomBarBoundingBoxSignal: r,
2080
2084
  onFontSizeMenuOpenChange: c,
2081
2085
  onRefitMenuOpenChange: d
2082
- } = ie(s);
2086
+ } = le(s);
2083
2087
  let u;
2084
2088
  e[1] !== l?.navigation.state$ ? (u = () => l?.navigation.state$, e[1] = l?.navigation.state$, e[2] = u) : u = e[2];
2085
2089
  let f;
@@ -2095,39 +2099,39 @@ const El = lt.Root, Dl = lt.ValueText, Dt = () => {
2095
2099
  data: p
2096
2100
  } = H(m, g);
2097
2101
  let b;
2098
- e[9] !== l?.zoom.state$ ? (b = () => l?.zoom.state$.pipe(J(Hl)), e[9] = l?.zoom.state$, e[10] = b) : b = e[10];
2099
- let S;
2100
- e[11] !== l ? (S = [l], e[11] = l, e[12] = S) : S = e[12];
2102
+ e[9] !== l?.zoom.state$ ? (b = () => l?.zoom.state$.pipe(J(Wl)), e[9] = l?.zoom.state$, e[10] = b) : b = e[10];
2103
+ let _;
2104
+ e[11] !== l ? (_ = [l], e[11] = l, e[12] = _) : _ = e[12];
2101
2105
  const {
2102
- data: _
2103
- } = H(b, S), v = _ === "in", C = _ === "out", T = p?.computedPageTurnMode === "scrollable", I = p?.computedPageTurnDirection === "vertical", k = Ol(), [R, P] = ne(!0);
2106
+ data: S
2107
+ } = H(b, _), v = S === "in", x = S === "out", T = p?.computedPageTurnMode === "scrollable", I = p?.computedPageTurnDirection === "vertical", k = wl(), [R, P] = ne(!0);
2104
2108
  let E, M;
2105
2109
  e[13] !== r ? (E = () => {
2106
2110
  if (!i.current)
2107
2111
  return;
2108
- const ht = new ResizeObserver((Ct) => {
2109
- for (const _n of Ct)
2110
- r.update(_n);
2112
+ const mt = new ResizeObserver((Ct) => {
2113
+ for (const xn of Ct)
2114
+ r.update(xn);
2111
2115
  });
2112
- return ht.observe(i.current), () => {
2113
- ht.disconnect();
2116
+ return mt.observe(i.current), () => {
2117
+ mt.disconnect();
2114
2118
  };
2115
- }, M = [r], e[13] = r, e[14] = E, e[15] = M) : (E = e[14], M = e[15]), oe(E, M);
2119
+ }, M = [r], e[13] = r, e[14] = E, e[15] = M) : (E = e[14], M = e[15]), ie(E, M);
2116
2120
  let A;
2117
- e[16] !== k ? (A = k && /* @__PURE__ */ a(ce, { px: 4, justifyContent: "center", width: "100%", children: /* @__PURE__ */ a($l, { maxW: 400 }) }), e[16] = k, e[17] = A) : A = e[17];
2121
+ e[16] !== k ? (A = k && /* @__PURE__ */ a(ce, { px: 4, justifyContent: "center", width: "100%", children: /* @__PURE__ */ a(Ml, { maxW: 400 }) }), e[16] = k, e[17] = A) : A = e[17];
2118
2122
  let w;
2119
2123
  e[18] !== l?.navigation ? (w = () => l?.navigation.goToLeftOrTopSpineItem(), e[18] = l?.navigation, e[19] = w) : w = e[19];
2120
2124
  const $ = !h?.canGoLeftSpineItem && !h?.canGoTopSpineItem;
2121
2125
  let O;
2122
- e[20] !== I ? (O = I ? /* @__PURE__ */ a(bo, {}) : /* @__PURE__ */ a(So, {}), e[20] = I, e[21] = O) : O = e[21];
2126
+ e[20] !== I ? (O = I ? /* @__PURE__ */ a(_o, {}) : /* @__PURE__ */ a(vo, {}), e[20] = I, e[21] = O) : O = e[21];
2123
2127
  let z;
2124
2128
  e[22] !== w || e[23] !== $ || e[24] !== O ? (z = /* @__PURE__ */ a(te, { "aria-label": "left", size: "lg", variant: "ghost", flexShrink: 0, onClick: w, disabled: $, children: O }), e[22] = w, e[23] = $, e[24] = O, e[25] = z) : z = e[25];
2125
2129
  let D;
2126
- e[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ a(Bl, {}), e[26] = D) : D = e[26];
2130
+ e[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ a(Ll, {}), e[26] = D) : D = e[26];
2127
2131
  let F;
2128
2132
  e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ y(ee, { flex: 1, maxW: 400, gap: 2, alignItems: "center", overflow: "auto", px: 4, children: [
2129
2133
  D,
2130
- /* @__PURE__ */ a(Ll, { style: {
2134
+ /* @__PURE__ */ a(Hl, { style: {
2131
2135
  width: "100%",
2132
2136
  maxWidth: "300px",
2133
2137
  height: "35px"
@@ -2139,7 +2143,7 @@ const El = lt.Root, Dl = lt.ValueText, Dt = () => {
2139
2143
  l?.navigation.goToRightOrBottomSpineItem();
2140
2144
  }, e[28] = l?.navigation, e[29] = V) : V = e[29];
2141
2145
  let W;
2142
- e[30] !== I ? (W = I ? /* @__PURE__ */ a(_o, {}) : /* @__PURE__ */ a(vo, {}), e[30] = I, e[31] = W) : W = e[31];
2146
+ e[30] !== I ? (W = I ? /* @__PURE__ */ a(xo, {}) : /* @__PURE__ */ a(Co, {}), e[30] = I, e[31] = W) : W = e[31];
2143
2147
  let G;
2144
2148
  e[32] !== Q || e[33] !== V || e[34] !== W ? (G = /* @__PURE__ */ a(te, { "aria-label": "right", size: "lg", flexShrink: 0, variant: "ghost", disabled: Q, onClick: V, children: W }), e[32] = Q, e[33] = V, e[34] = W, e[35] = G) : G = e[35];
2145
2149
  let q;
@@ -2149,132 +2153,141 @@ const El = lt.Root, Dl = lt.ValueText, Dt = () => {
2149
2153
  G
2150
2154
  ] }), e[36] = z, e[37] = G, e[38] = q) : q = e[38];
2151
2155
  let Y;
2152
- e[39] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = (ht) => {
2156
+ e[39] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = (mt) => {
2153
2157
  const {
2154
2158
  open: Ct
2155
- } = ht;
2159
+ } = mt;
2156
2160
  P(Ct);
2157
2161
  }, e[39] = Y) : Y = e[39];
2158
2162
  const K = R ? "rotate(0deg)" : "rotate(180deg)";
2159
2163
  let Z;
2160
- e[40] !== K ? (Z = /* @__PURE__ */ a(yt.Trigger, { paddingY: "3", width: "100%", display: "flex", justifyContent: "center", children: /* @__PURE__ */ a(Ln, { style: {
2164
+ e[40] !== K ? (Z = /* @__PURE__ */ a(It.Trigger, { paddingY: "3", width: "100%", display: "flex", justifyContent: "center", children: /* @__PURE__ */ a(Hn, { style: {
2161
2165
  transform: K
2162
2166
  } }) }), e[40] = K, e[41] = Z) : Z = e[41];
2163
2167
  let X;
2164
2168
  e[42] !== n ? (X = () => n("help"), e[42] = n, e[43] = X) : X = e[43];
2165
2169
  let B;
2166
- e[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ a(Nn, {}), e[44] = B) : B = e[44];
2170
+ e[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ a(Vn, {}), e[44] = B) : B = e[44];
2167
2171
  let se;
2168
2172
  e[45] !== X ? (se = /* @__PURE__ */ a(te, { "aria-label": "Help", size: "lg", variant: "ghost", onClick: X, children: B }), e[45] = X, e[46] = se) : se = e[46];
2169
2173
  let L;
2170
2174
  e[47] !== n ? (L = () => n("toc"), e[47] = n, e[48] = L) : L = e[48];
2171
2175
  let re;
2172
- e[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (re = /* @__PURE__ */ a(Hn, {}), e[49] = re) : re = e[49];
2173
- let Se;
2174
- e[50] !== L ? (Se = /* @__PURE__ */ a(te, { "aria-label": "Table of contents", size: "lg", variant: "ghost", onClick: L, children: re }), e[50] = L, e[51] = Se) : Se = e[51];
2175
- let we;
2176
- e[52] !== n || e[53] !== l ? (we = dn(l) && /* @__PURE__ */ a(te, { "aria-label": "Search", size: "lg", variant: "ghost", onClick: () => n("search"), children: /* @__PURE__ */ a(Vn, {}) }), e[52] = n, e[53] = l, e[54] = we) : we = e[54];
2177
- const _t = v ? "solid" : "ghost";
2176
+ e[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (re = /* @__PURE__ */ a(Wn, {}), e[49] = re) : re = e[49];
2177
+ let _e;
2178
+ e[50] !== L ? (_e = /* @__PURE__ */ a(te, { "aria-label": "Table of contents", size: "lg", variant: "ghost", onClick: L, children: re }), e[50] = L, e[51] = _e) : _e = e[51];
2178
2179
  let ze;
2179
- e[55] !== v || e[56] !== l?.zoom ? (ze = () => {
2180
+ e[52] !== n || e[53] !== l ? (ze = un(l) && /* @__PURE__ */ a(te, { "aria-label": "Search", size: "lg", variant: "ghost", onClick: () => n("search"), children: /* @__PURE__ */ a(Gn, {}) }), e[52] = n, e[53] = l, e[54] = ze) : ze = e[54];
2181
+ const vt = v ? "solid" : "ghost";
2182
+ let Pe;
2183
+ e[55] !== v || e[56] !== l?.zoom ? (Pe = () => {
2180
2184
  v ? l?.zoom.exit({
2181
2185
  animate: !0
2182
2186
  }) : l?.zoom.enter({
2183
2187
  animate: !0,
2184
2188
  scale: 2
2185
2189
  });
2186
- }, e[55] = v, e[56] = l?.zoom, e[57] = ze) : ze = e[57];
2187
- let Pe;
2188
- e[58] !== v ? (Pe = v ? /* @__PURE__ */ a(Wn, {}) : /* @__PURE__ */ a(Gn, {}), e[58] = v, e[59] = Pe) : Pe = e[59];
2190
+ }, e[55] = v, e[56] = l?.zoom, e[57] = Pe) : Pe = e[57];
2189
2191
  let Ee;
2190
- e[60] !== _t || e[61] !== ze || e[62] !== Pe ? (Ee = /* @__PURE__ */ a(te, { "aria-label": "Zoom", size: "lg", variant: _t, onClick: ze, children: Pe }), e[60] = _t, e[61] = ze, e[62] = Pe, e[63] = Ee) : Ee = e[63];
2192
+ e[58] !== v ? (Ee = v ? /* @__PURE__ */ a(Un, {}) : /* @__PURE__ */ a(jn, {}), e[58] = v, e[59] = Ee) : Ee = e[59];
2191
2193
  let De;
2192
- e[64] !== c ? (De = () => {
2193
- c(!0);
2194
- }, e[64] = c, e[65] = De) : De = e[65];
2195
- let dt;
2196
- e[66] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (dt = /* @__PURE__ */ a(mo, {}), e[66] = dt) : dt = e[66];
2194
+ e[60] !== vt || e[61] !== Pe || e[62] !== Ee ? (De = /* @__PURE__ */ a(te, { "aria-label": "Zoom", size: "lg", variant: vt, onClick: Pe, children: Ee }), e[60] = vt, e[61] = Pe, e[62] = Ee, e[63] = De) : De = e[63];
2197
2195
  let Be;
2198
- e[67] !== De ? (Be = /* @__PURE__ */ a(te, { "aria-label": "font size", size: "lg", onClick: De, variant: "ghost", children: dt }), e[67] = De, e[68] = Be) : Be = e[68];
2196
+ e[64] !== c ? (Be = () => {
2197
+ c(!0);
2198
+ }, e[64] = c, e[65] = Be) : Be = e[65];
2199
+ let ft;
2200
+ e[66] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ft = /* @__PURE__ */ a(po, {}), e[66] = ft) : ft = e[66];
2199
2201
  let Fe;
2200
- e[69] !== n || e[70] !== l ? (Fe = rt(l) && /* @__PURE__ */ a(te, { "aria-label": "Bookmarks", size: "lg", variant: "ghost", onClick: () => n("bookmarks"), children: /* @__PURE__ */ a(go, {}) }), e[69] = n, e[70] = l, e[71] = Fe) : Fe = e[71];
2202
+ e[67] !== Be ? (Fe = /* @__PURE__ */ a(te, { "aria-label": "font size", size: "lg", onClick: Be, variant: "ghost", children: ft }), e[67] = Be, e[68] = Fe) : Fe = e[68];
2201
2203
  let Le;
2202
- e[72] !== n || e[73] !== l ? (Le = rt(l) && /* @__PURE__ */ a(te, { "aria-label": "Annotations", size: "lg", variant: "ghost", onClick: () => n("annotations"), children: /* @__PURE__ */ a(st, {}) }), e[72] = n, e[73] = l, e[74] = Le) : Le = e[74];
2204
+ e[69] !== n || e[70] !== l ? (Le = at(l) && /* @__PURE__ */ a(te, { "aria-label": "Bookmarks", size: "lg", variant: "ghost", onClick: () => n("bookmarks"), children: /* @__PURE__ */ a(bo, {}) }), e[69] = n, e[70] = l, e[71] = Le) : Le = e[71];
2203
2205
  let Ne;
2204
- e[75] !== T || e[76] !== d || e[77] !== l ? (Ne = un(l) && /* @__PURE__ */ a(te, { "aria-label": "Refit", size: "lg", variant: "ghost", onClick: () => {
2205
- d(!0);
2206
- }, disabled: !T, children: /* @__PURE__ */ a(fo, {}) }), e[75] = T, e[76] = d, e[77] = l, e[78] = Ne) : Ne = e[78];
2207
- const vt = C ? "solid" : "ghost";
2206
+ e[72] !== n || e[73] !== l ? (Ne = at(l) && /* @__PURE__ */ a(te, { "aria-label": "Annotations", size: "lg", variant: "ghost", onClick: () => n("annotations"), children: /* @__PURE__ */ a(rt, {}) }), e[72] = n, e[73] = l, e[74] = Ne) : Ne = e[74];
2208
2207
  let He;
2209
- e[79] !== C || e[80] !== l?.zoom ? (He = () => {
2210
- C ? l?.zoom.exit({
2208
+ e[75] !== T || e[76] !== d || e[77] !== l ? (He = mn(l) && /* @__PURE__ */ a(te, { "aria-label": "Refit", size: "lg", variant: "ghost", onClick: () => {
2209
+ d(!0);
2210
+ }, disabled: !T, children: /* @__PURE__ */ a(ho, {}) }), e[75] = T, e[76] = d, e[77] = l, e[78] = He) : He = e[78];
2211
+ const xt = x ? "solid" : "ghost";
2212
+ let Ve;
2213
+ e[79] !== x || e[80] !== l?.zoom ? (Ve = () => {
2214
+ x ? l?.zoom.exit({
2211
2215
  animate: !0
2212
2216
  }) : l?.zoom.enter({
2213
2217
  animate: !0,
2214
2218
  scale: 0.5
2215
2219
  });
2216
- }, e[79] = C, e[80] = l?.zoom, e[81] = He) : He = e[81];
2217
- let ft;
2218
- e[82] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ft = /* @__PURE__ */ a(Un, {}), e[82] = ft) : ft = e[82];
2219
- let Ve;
2220
- e[83] !== vt || e[84] !== He ? (Ve = /* @__PURE__ */ a(te, { "aria-label": "Thumbnails", size: "lg", variant: vt, onClick: He, children: ft }), e[83] = vt, e[84] = He, e[85] = Ve) : Ve = e[85];
2220
+ }, e[79] = x, e[80] = l?.zoom, e[81] = Ve) : Ve = e[81];
2221
+ let ut;
2222
+ e[82] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ut = /* @__PURE__ */ a(qn, {}), e[82] = ut) : ut = e[82];
2221
2223
  let We;
2222
- e[86] !== n || e[87] !== l ? (We = fn(l) && /* @__PURE__ */ a(te, { "aria-label": "Gallery", size: "lg", variant: "ghost", onClick: () => n("gallery"), children: /* @__PURE__ */ a(po, {}) }), e[86] = n, e[87] = l, e[88] = We) : We = e[88];
2224
+ e[83] !== xt || e[84] !== Ve ? (We = /* @__PURE__ */ a(te, { "aria-label": "Thumbnails", size: "lg", variant: xt, onClick: Ve, children: ut }), e[83] = xt, e[84] = Ve, e[85] = We) : We = e[85];
2223
2225
  let Ge;
2224
- e[89] !== se || e[90] !== Se || e[91] !== we || e[92] !== Ee || e[93] !== Be || e[94] !== Fe || e[95] !== Le || e[96] !== Ne || e[97] !== Ve || e[98] !== We ? (Ge = /* @__PURE__ */ a(yt.Content, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ y(le, { display: "flex", overflowX: "auto", px: 4, pb: 1, children: [
2226
+ e[86] !== n || e[87] !== l ? (Ge = hn(l) && /* @__PURE__ */ a(te, { "aria-label": "Gallery", size: "lg", variant: "ghost", onClick: () => n("gallery"), children: /* @__PURE__ */ a(So, {}) }), e[86] = n, e[87] = l, e[88] = Ge) : Ge = e[88];
2227
+ let Ue;
2228
+ e[89] !== se || e[90] !== _e || e[91] !== ze || e[92] !== De || e[93] !== Fe || e[94] !== Le || e[95] !== Ne || e[96] !== He || e[97] !== We || e[98] !== Ge ? (Ue = /* @__PURE__ */ a(It.Content, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ y(oe, { display: "flex", overflowX: "auto", px: 4, pb: 1, children: [
2225
2229
  se,
2226
- Se,
2227
- we,
2228
- Ee,
2229
- Be,
2230
+ _e,
2231
+ ze,
2232
+ De,
2230
2233
  Fe,
2231
2234
  Le,
2232
2235
  Ne,
2233
- Ve,
2234
- We
2235
- ] }) }), e[89] = se, e[90] = Se, e[91] = we, e[92] = Ee, e[93] = Be, e[94] = Fe, e[95] = Le, e[96] = Ne, e[97] = Ve, e[98] = We, e[99] = Ge) : Ge = e[99];
2236
- let Ue;
2237
- e[100] !== R || e[101] !== Z || e[102] !== Ge ? (Ue = /* @__PURE__ */ a(ce, { alignSelf: "stretch", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ y(yt.Root, { open: R, flex: 1, onOpenChange: Y, width: "100%", children: [
2238
- Z,
2236
+ He,
2237
+ We,
2239
2238
  Ge
2240
- ] }) }), e[100] = R, e[101] = Z, e[102] = Ge, e[103] = Ue) : Ue = e[103];
2241
- let ut;
2242
- return e[104] !== o || e[105] !== A || e[106] !== q || e[107] !== Ue ? (ut = /* @__PURE__ */ y(Sn, { present: o, position: "bottom", display: "flex", flexDirection: "column", overflow: "auto", pb: 8, px: 0, ref: i, gap: 4, children: [
2239
+ ] }) }), e[89] = se, e[90] = _e, e[91] = ze, e[92] = De, e[93] = Fe, e[94] = Le, e[95] = Ne, e[96] = He, e[97] = We, e[98] = Ge, e[99] = Ue) : Ue = e[99];
2240
+ let je;
2241
+ e[100] !== R || e[101] !== Z || e[102] !== Ue ? (je = /* @__PURE__ */ a(ce, { alignSelf: "stretch", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ y(It.Root, { open: R, flex: 1, onOpenChange: Y, width: "100%", children: [
2242
+ Z,
2243
+ Ue
2244
+ ] }) }), e[100] = R, e[101] = Z, e[102] = Ue, e[103] = je) : je = e[103];
2245
+ let ht;
2246
+ return e[104] !== o || e[105] !== A || e[106] !== q || e[107] !== je ? (ht = /* @__PURE__ */ y(vn, { present: o, position: "bottom", display: "flex", flexDirection: "column", overflow: "auto", pb: 8, px: 0, ref: i, gap: 4, children: [
2243
2247
  A,
2244
2248
  q,
2245
- Ue
2246
- ] }), e[104] = o, e[105] = A, e[106] = q, e[107] = Ue, e[108] = ut) : ut = e[108], ut;
2249
+ je
2250
+ ] }), e[104] = o, e[105] = A, e[106] = q, e[107] = je, e[108] = ht) : ht = e[108], ht;
2247
2251
  });
2248
- function Hl(t) {
2252
+ function Wl(t) {
2249
2253
  return t.currentScale > 1 ? "in" : t.currentScale < 1 ? "out" : void 0;
2250
2254
  }
2251
- const Vl = () => {
2252
- const t = x(5), [e, o] = ne(!1);
2253
- let n;
2254
- t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = () => document.fullscreenElement ? document.exitFullscreen().catch(console.error).then(() => {
2255
- o(!1);
2256
- }) : document.documentElement.requestFullscreen({
2257
- navigationUI: "hide"
2258
- }).catch(console.error).then(() => {
2259
- o(!0);
2260
- }), t[0] = n) : n = t[0];
2261
- const i = n;
2262
- let l, s;
2263
- t[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = () => {
2264
- const c = function() {
2265
- o(!!document.fullscreenElement);
2266
- };
2267
- return document.addEventListener("fullscreenchange", c), () => {
2268
- document.removeEventListener("fullscreenchange", c);
2269
- };
2270
- }, s = [], t[1] = l, t[2] = s) : (l = t[1], s = t[2]), oe(l, s);
2271
- let r;
2272
- return t[3] !== e ? (r = {
2273
- isFullscreen: e,
2274
- onToggleFullscreenClick: i
2275
- }, t[3] = e, t[4] = r) : r = t[4], r;
2276
- }, Wl = N((t) => {
2277
- const e = x(29), {
2255
+ const Gl = () => fe.isEnabled, Ul = () => fe.isEnabled ? fe.isFullscreen : !1, jl = () => {
2256
+ const [t, e] = ne(!1), [o, n] = ne(!1), i = Nt(() => {
2257
+ e((s) => {
2258
+ const r = Ul();
2259
+ return s === r ? s : r;
2260
+ }), n((s) => {
2261
+ const r = Gl();
2262
+ return s === r ? s : r;
2263
+ });
2264
+ }, []), l = Nt(async () => {
2265
+ if (!fe.isEnabled) {
2266
+ i();
2267
+ return;
2268
+ }
2269
+ try {
2270
+ fe.isFullscreen ? await fe.exit() : await fe.request(document.documentElement, {
2271
+ navigationUI: "hide"
2272
+ });
2273
+ } catch (s) {
2274
+ console.error(s);
2275
+ } finally {
2276
+ i();
2277
+ }
2278
+ }, [i]);
2279
+ return ie(() => {
2280
+ if (i(), !!fe.isEnabled)
2281
+ return fe.on("change", i), fe.on("error", i), () => {
2282
+ fe.off("change", i), fe.off("error", i);
2283
+ };
2284
+ }, [i]), {
2285
+ isFullscreen: t,
2286
+ isFullscreenSupported: o,
2287
+ onToggleFullscreenClick: l
2288
+ };
2289
+ }, ql = N((t) => {
2290
+ const e = C(28), {
2278
2291
  open: o,
2279
2292
  onItemClick: n
2280
2293
  } = t, i = j();
@@ -2286,40 +2299,39 @@ const Vl = () => {
2286
2299
  data: r
2287
2300
  } = H(l, s), {
2288
2301
  isFullscreen: c,
2289
- onToggleFullscreenClick: d
2290
- } = Vl();
2291
- let u;
2292
- e[4] !== n ? (u = () => n("back"), e[4] = n, e[5] = u) : u = e[5];
2302
+ isFullscreenSupported: d,
2303
+ onToggleFullscreenClick: u
2304
+ } = jl();
2293
2305
  let f;
2294
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(yo, {}), e[6] = f) : f = e[6];
2306
+ e[4] !== n ? (f = () => n("back"), e[4] = n, e[5] = f) : f = e[5];
2295
2307
  let h;
2296
- e[7] !== u ? (h = /* @__PURE__ */ a(te, { "aria-label": "left", size: "lg", variant: "ghost", flexShrink: 0, onClick: u, children: f }), e[7] = u, e[8] = h) : h = e[8];
2297
- const m = r?.title;
2298
- let g;
2299
- e[9] !== m ? (g = /* @__PURE__ */ a(ee, { flex: 1, maxW: 600, gap: 1, alignItems: "center", overflow: "auto", px: 4, children: /* @__PURE__ */ a(U, { truncate: !0, maxWidth: "100%", children: m }) }), e[9] = m, e[10] = g) : g = e[10];
2308
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ a(To, {}), e[6] = h) : h = e[6];
2309
+ let m;
2310
+ e[7] !== f ? (m = /* @__PURE__ */ a(te, { "aria-label": "left", size: "lg", variant: "ghost", flexShrink: 0, onClick: f, children: h }), e[7] = f, e[8] = m) : m = e[8];
2311
+ const g = r?.title;
2300
2312
  let p;
2301
- e[11] !== n ? (p = () => n("more"), e[11] = n, e[12] = p) : p = e[12];
2313
+ e[9] !== g ? (p = /* @__PURE__ */ a(ee, { flex: 1, maxW: 600, gap: 1, alignItems: "center", overflow: "auto", px: 4, children: /* @__PURE__ */ a(U, { truncate: !0, maxWidth: "100%", children: g }) }), e[9] = g, e[10] = p) : p = e[10];
2302
2314
  let b;
2303
- e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ a(Io, {}), e[13] = b) : b = e[13];
2304
- let S;
2305
- e[14] !== p ? (S = /* @__PURE__ */ a(te, { "aria-label": "right", size: "lg", flexShrink: 0, variant: "ghost", onClick: p, children: b }), e[14] = p, e[15] = S) : S = e[15];
2315
+ e[11] !== n ? (b = () => n("more"), e[11] = n, e[12] = b) : b = e[12];
2306
2316
  let _;
2307
- e[16] !== c ? (_ = c ? /* @__PURE__ */ a(uo, {}) : /* @__PURE__ */ a(ho, {}), e[16] = c, e[17] = _) : _ = e[17];
2317
+ e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ a(ko, {}), e[13] = _) : _ = e[13];
2318
+ let S;
2319
+ e[14] !== b ? (S = /* @__PURE__ */ a(te, { "aria-label": "right", size: "lg", flexShrink: 0, variant: "ghost", onClick: b, children: _ }), e[14] = b, e[15] = S) : S = e[15];
2308
2320
  let v;
2309
- e[18] !== d || e[19] !== _ ? (v = /* @__PURE__ */ a(te, { "aria-label": "right", size: "lg", flexShrink: 0, variant: "ghost", onClick: d, children: _ }), e[18] = d, e[19] = _, e[20] = v) : v = e[20];
2310
- let C;
2311
- e[21] !== S || e[22] !== v ? (C = /* @__PURE__ */ y(ce, { children: [
2321
+ e[16] !== c || e[17] !== d || e[18] !== u ? (v = d && /* @__PURE__ */ a(te, { "aria-label": c ? "Exit fullscreen" : "Enter fullscreen", size: "lg", flexShrink: 0, variant: "ghost", onClick: u, children: c ? /* @__PURE__ */ a(mo, {}) : /* @__PURE__ */ a(go, {}) }), e[16] = c, e[17] = d, e[18] = u, e[19] = v) : v = e[19];
2322
+ let x;
2323
+ e[20] !== S || e[21] !== v ? (x = /* @__PURE__ */ y(ce, { children: [
2312
2324
  S,
2313
2325
  v
2314
- ] }), e[21] = S, e[22] = v, e[23] = C) : C = e[23];
2326
+ ] }), e[20] = S, e[21] = v, e[22] = x) : x = e[22];
2315
2327
  let T;
2316
- return e[24] !== o || e[25] !== C || e[26] !== h || e[27] !== g ? (T = /* @__PURE__ */ y(Sn, { present: o, position: "top", height: "80px", justifyContent: "space-between", children: [
2317
- h,
2318
- g,
2319
- C
2320
- ] }), e[24] = o, e[25] = C, e[26] = h, e[27] = g, e[28] = T) : T = e[28], T;
2321
- }), Bt = () => {
2322
- const t = x(4);
2328
+ return e[23] !== o || e[24] !== x || e[25] !== m || e[26] !== p ? (T = /* @__PURE__ */ y(vn, { present: o, position: "top", height: "80px", justifyContent: "space-between", children: [
2329
+ m,
2330
+ p,
2331
+ x
2332
+ ] }), e[23] = o, e[24] = x, e[25] = m, e[26] = p, e[27] = T) : T = e[27], T;
2333
+ }), Ft = () => {
2334
+ const t = C(4);
2323
2335
  let e;
2324
2336
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["quickMenuOpen", "onQuickMenuOpenChange", "_quickMenuOpen", "_onQuickMenuOpenChange"], t[0] = e) : e = t[0];
2325
2337
  const {
@@ -2327,46 +2339,46 @@ const Vl = () => {
2327
2339
  onQuickMenuOpenChange: n,
2328
2340
  _quickMenuOpen: i,
2329
2341
  _onQuickMenuOpenChange: l
2330
- } = ie(e), s = o ?? i, r = n ?? l;
2342
+ } = le(e), s = o ?? i, r = n ?? l;
2331
2343
  let c;
2332
2344
  return t[1] !== s || t[2] !== r ? (c = [s, r], t[1] = s, t[2] = r, t[3] = c) : c = t[3], c;
2333
- }, Gl = N((t) => {
2334
- const e = x(10), {
2345
+ }, Kl = N((t) => {
2346
+ const e = C(10), {
2335
2347
  onItemClick: o
2336
- } = t, [n] = Bt();
2348
+ } = t, [n] = Ft();
2337
2349
  let i;
2338
2350
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = ["refitMenuOpen", "fontSizeMenuOpen", "selectedHighlight"], e[0] = i) : i = e[0];
2339
2351
  const {
2340
2352
  refitMenuOpen: l,
2341
2353
  fontSizeMenuOpen: s,
2342
2354
  selectedHighlight: r
2343
- } = ie(i), c = n && !l && !s && !r;
2355
+ } = le(i), c = n && !l && !s && !r;
2344
2356
  let d;
2345
- e[1] !== o || e[2] !== c ? (d = /* @__PURE__ */ a(Wl, { open: c, onItemClick: o }), e[1] = o, e[2] = c, e[3] = d) : d = e[3];
2357
+ e[1] !== o || e[2] !== c ? (d = /* @__PURE__ */ a(ql, { open: c, onItemClick: o }), e[1] = o, e[2] = c, e[3] = d) : d = e[3];
2346
2358
  const u = n && !l && !s;
2347
2359
  let f;
2348
- e[4] !== o || e[5] !== u ? (f = /* @__PURE__ */ a(Nl, { open: u, onItemClick: o }), e[4] = o, e[5] = u, e[6] = f) : f = e[6];
2360
+ e[4] !== o || e[5] !== u ? (f = /* @__PURE__ */ a(Vl, { open: u, onItemClick: o }), e[4] = o, e[5] = u, e[6] = f) : f = e[6];
2349
2361
  let h;
2350
- return e[7] !== d || e[8] !== f ? (h = /* @__PURE__ */ y(ve, { children: [
2362
+ return e[7] !== d || e[8] !== f ? (h = /* @__PURE__ */ y(xe, { children: [
2351
2363
  d,
2352
2364
  f
2353
2365
  ] }), e[7] = d, e[8] = f, e[9] = h) : h = e[9], h;
2354
- }), Ul = () => {
2355
- const t = x(3), [, e] = Bt(), o = j();
2366
+ }), Yl = () => {
2367
+ const t = C(3), [, e] = Ft(), o = j();
2356
2368
  let n;
2357
- t[0] !== e || t[1] !== o ? (n = () => o?.gestures.gestures$.pipe(gt(jl), At(o.selection.selection$, o.selection.lastSelectionOnPointerdown$), Ot((l) => {
2369
+ t[0] !== e || t[1] !== o ? (n = () => o?.gestures.gestures$.pipe(pt(Zl), wt(o.selection.selection$, o.selection.lastSelectionOnPointerdown$), At((l) => {
2358
2370
  const [, s, r] = l;
2359
- e(s || r ? !1 : ql);
2360
- })), t[0] = e, t[1] = o, t[2] = n) : n = t[2], pe(n);
2371
+ e(s || r ? !1 : Ql);
2372
+ })), t[0] = e, t[1] = o, t[2] = n) : n = t[2], be(n);
2361
2373
  };
2362
- function jl(t) {
2374
+ function Zl(t) {
2363
2375
  return t.type === "tap" && !t.handled;
2364
2376
  }
2365
- function ql(t) {
2377
+ function Ql(t) {
2366
2378
  return !t;
2367
2379
  }
2368
- const Kl = de.forwardRef(function(e, o) {
2369
- const n = x(21);
2380
+ const Xl = de.forwardRef(function(e, o) {
2381
+ const n = C(21);
2370
2382
  let i, l, s, r, c, d;
2371
2383
  n[0] !== e ? ({
2372
2384
  label: r,
@@ -2377,31 +2389,31 @@ const Kl = de.forwardRef(function(e, o) {
2377
2389
  ...d
2378
2390
  } = e, n[0] = e, n[1] = i, n[2] = l, n[3] = s, n[4] = r, n[5] = c, n[6] = d) : (i = n[1], l = n[2], s = n[3], r = n[4], c = n[5], d = n[6]);
2379
2391
  let u;
2380
- n[7] !== r || n[8] !== c ? (u = r && /* @__PURE__ */ y(et.Label, { children: [
2392
+ n[7] !== r || n[8] !== c ? (u = r && /* @__PURE__ */ y(tt.Label, { children: [
2381
2393
  r,
2382
- /* @__PURE__ */ a(et.RequiredIndicator, { fallback: c })
2394
+ /* @__PURE__ */ a(tt.RequiredIndicator, { fallback: c })
2383
2395
  ] }), n[7] = r, n[8] = c, n[9] = u) : u = n[9];
2384
2396
  let f;
2385
- n[10] !== s ? (f = s && /* @__PURE__ */ a(et.HelperText, { children: s }), n[10] = s, n[11] = f) : f = n[11];
2397
+ n[10] !== s ? (f = s && /* @__PURE__ */ a(tt.HelperText, { children: s }), n[10] = s, n[11] = f) : f = n[11];
2386
2398
  let h;
2387
- n[12] !== l ? (h = l && /* @__PURE__ */ a(et.ErrorText, { children: l }), n[12] = l, n[13] = h) : h = n[13];
2399
+ n[12] !== l ? (h = l && /* @__PURE__ */ a(tt.ErrorText, { children: l }), n[12] = l, n[13] = h) : h = n[13];
2388
2400
  let m;
2389
- return n[14] !== i || n[15] !== o || n[16] !== d || n[17] !== u || n[18] !== f || n[19] !== h ? (m = /* @__PURE__ */ y(et.Root, { ref: o, ...d, children: [
2401
+ return n[14] !== i || n[15] !== o || n[16] !== d || n[17] !== u || n[18] !== f || n[19] !== h ? (m = /* @__PURE__ */ y(tt.Root, { ref: o, ...d, children: [
2390
2402
  u,
2391
2403
  i,
2392
2404
  f,
2393
2405
  h
2394
2406
  ] }), n[14] = i, n[15] = o, n[16] = d, n[17] = u, n[18] = f, n[19] = h, n[20] = m) : m = n[20], m;
2395
- }), Yl = N(() => {
2396
- const t = x(39);
2407
+ }), Jl = N(() => {
2408
+ const t = C(39);
2397
2409
  let e;
2398
2410
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["refitMenuOpen", "onRefitMenuOpenChange"], t[0] = e) : e = t[0];
2399
2411
  const {
2400
2412
  refitMenuOpen: o,
2401
2413
  onRefitMenuOpenChange: n
2402
- } = ie(e), i = j();
2414
+ } = le(e), i = j();
2403
2415
  let l;
2404
- t[1] !== i ? (l = un(i) ? i : void 0, t[1] = i, t[2] = l) : l = t[2];
2416
+ t[1] !== i ? (l = mn(i) ? i : void 0, t[1] = i, t[2] = l) : l = t[2];
2405
2417
  const s = l;
2406
2418
  let r;
2407
2419
  t[3] !== s?.refit.settings$ ? (r = () => s?.refit.settings$, t[3] = s?.refit.settings$, t[4] = r) : r = t[4];
@@ -2413,9 +2425,9 @@ const Kl = de.forwardRef(function(e, o) {
2413
2425
  let u;
2414
2426
  t[7] !== n ? (u = ($) => n($.open), t[7] = n, t[8] = u) : u = t[8];
2415
2427
  let f;
2416
- t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(Oe, { children: "Viewport fit" }) }), t[9] = f) : f = t[9];
2428
+ t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(Me, { children: /* @__PURE__ */ a(Ae, { children: "Viewport fit" }) }), t[9] = f) : f = t[9];
2417
2429
  let h;
2418
- t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ a(xe.HelperText, { children: "Adjust the viewport for a more comfortable reading experience." }), t[10] = h) : h = t[10];
2430
+ t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ a(ye.HelperText, { children: "Adjust the viewport for a more comfortable reading experience." }), t[10] = h) : h = t[10];
2419
2431
  let m;
2420
2432
  t[11] !== s?.refit ? (m = ($) => {
2421
2433
  const O = $.value;
@@ -2426,21 +2438,21 @@ const Kl = de.forwardRef(function(e, o) {
2426
2438
  }, t[11] = s?.refit, t[12] = m) : m = t[12];
2427
2439
  const g = d?.viewportFit ?? "fit";
2428
2440
  let p;
2429
- t[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ a(ot, { value: "desktop", children: "Desktop" }), t[13] = p) : p = t[13];
2441
+ t[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ a(it, { value: "desktop", children: "Desktop" }), t[13] = p) : p = t[13];
2430
2442
  let b;
2431
- t[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ a(ot, { value: "tablet", children: "Tablet" }), t[14] = b) : b = t[14];
2432
- let S;
2433
- t[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ a(ot, { value: "fit", children: "Full width (default)" }), t[15] = S) : S = t[15];
2443
+ t[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ a(it, { value: "tablet", children: "Tablet" }), t[14] = b) : b = t[14];
2434
2444
  let _;
2435
- t[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ y(ee, { gap: 2, children: [
2445
+ t[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ a(it, { value: "fit", children: "Full width (default)" }), t[15] = _) : _ = t[15];
2446
+ let S;
2447
+ t[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ y(ee, { gap: 2, children: [
2436
2448
  p,
2437
2449
  b,
2438
- S,
2439
- /* @__PURE__ */ a(ot, { value: "custom", children: "Custom" })
2440
- ] }), t[16] = _) : _ = t[16];
2450
+ _,
2451
+ /* @__PURE__ */ a(it, { value: "custom", children: "Custom" })
2452
+ ] }), t[16] = S) : S = t[16];
2441
2453
  let v;
2442
- t[17] !== m || t[18] !== g ? (v = /* @__PURE__ */ a(Kl, { label: "Profile", children: /* @__PURE__ */ a(pn, { defaultValue: "fit", onValueChange: m, value: g, children: _ }) }), t[17] = m, t[18] = g, t[19] = v) : v = t[19];
2443
- const C = d?.viewportFit !== "custom", T = d?.customWidth ?? 60;
2454
+ t[17] !== m || t[18] !== g ? (v = /* @__PURE__ */ a(Xl, { label: "Profile", children: /* @__PURE__ */ a(Sn, { defaultValue: "fit", onValueChange: m, value: g, children: S }) }), t[17] = m, t[18] = g, t[19] = v) : v = t[19];
2455
+ const x = d?.viewportFit !== "custom", T = d?.customWidth ?? 60;
2444
2456
  let I;
2445
2457
  t[20] !== T ? (I = [T], t[20] = T, t[21] = I) : I = t[21];
2446
2458
  let k;
@@ -2451,28 +2463,28 @@ const Kl = de.forwardRef(function(e, o) {
2451
2463
  });
2452
2464
  }, t[22] = s?.refit, t[23] = k) : k = t[23];
2453
2465
  let R;
2454
- t[24] !== C || t[25] !== I || t[26] !== k ? (R = /* @__PURE__ */ a(Pt, { label: "Maximum width (%)", showValue: !0, max: 100, min: 10, step: 1, disabled: C, value: I, onValueChange: k }), t[24] = C, t[25] = I, t[26] = k, t[27] = R) : R = t[27];
2466
+ t[24] !== x || t[25] !== I || t[26] !== k ? (R = /* @__PURE__ */ a(Et, { label: "Maximum width (%)", showValue: !0, max: 100, min: 10, step: 1, disabled: x, value: I, onValueChange: k }), t[24] = x, t[25] = I, t[26] = k, t[27] = R) : R = t[27];
2455
2467
  let P;
2456
- t[28] !== v || t[29] !== R ? (P = /* @__PURE__ */ a(Me, { children: /* @__PURE__ */ y(xe.Root, { children: [
2468
+ t[28] !== v || t[29] !== R ? (P = /* @__PURE__ */ a(Oe, { children: /* @__PURE__ */ y(ye.Root, { children: [
2457
2469
  h,
2458
- /* @__PURE__ */ y(xe.Content, { children: [
2470
+ /* @__PURE__ */ y(ye.Content, { children: [
2459
2471
  v,
2460
2472
  R
2461
2473
  ] })
2462
2474
  ] }) }), t[28] = v, t[29] = R, t[30] = P) : P = t[30];
2463
2475
  let E, M;
2464
- t[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(Ae, { asChild: !0, children: /* @__PURE__ */ a(ue, { variant: "outline", children: "Close" }) }) }), M = /* @__PURE__ */ a(Te, {}), t[31] = E, t[32] = M) : (E = t[31], M = t[32]);
2476
+ t[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(we, { asChild: !0, children: /* @__PURE__ */ a(he, { variant: "outline", children: "Close" }) }) }), M = /* @__PURE__ */ a(ke, {}), t[31] = E, t[32] = M) : (E = t[31], M = t[32]);
2465
2477
  let A;
2466
- t[33] !== P ? (A = /* @__PURE__ */ y(Ie, { children: [
2478
+ t[33] !== P ? (A = /* @__PURE__ */ y(Te, { children: [
2467
2479
  f,
2468
2480
  P,
2469
2481
  E,
2470
2482
  M
2471
2483
  ] }), t[33] = P, t[34] = A) : A = t[34];
2472
2484
  let w;
2473
- return t[35] !== o || t[36] !== A || t[37] !== u ? (w = /* @__PURE__ */ a(ke, { lazyMount: !0, open: o, onOpenChange: u, placement: "center", children: A }), t[35] = o, t[36] = A, t[37] = u, t[38] = w) : w = t[38], w;
2474
- }), Zl = N((t) => {
2475
- const e = x(26), {
2485
+ return t[35] !== o || t[36] !== A || t[37] !== u ? (w = /* @__PURE__ */ a($e, { lazyMount: !0, open: o, onOpenChange: u, placement: "center", children: A }), t[35] = o, t[36] = A, t[37] = u, t[38] = w) : w = t[38], w;
2486
+ }), es = N((t) => {
2487
+ const e = C(26), {
2476
2488
  contextText: o,
2477
2489
  startOffset: n,
2478
2490
  text: i,
@@ -2495,44 +2507,44 @@ const Kl = de.forwardRef(function(e, o) {
2495
2507
  e[8] !== u || e[9] !== s ? (b = (R) => {
2496
2508
  R.preventDefault(), s(u);
2497
2509
  }, e[8] = u, e[9] = s, e[10] = b) : b = e[10];
2498
- let S;
2499
- e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = {
2500
- display: "block"
2501
- }, e[11] = S) : S = e[11];
2502
2510
  let _;
2503
- e[12] !== i ? (_ = /* @__PURE__ */ a("b", { children: i }), e[12] = i, e[13] = _) : _ = e[13];
2511
+ e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = {
2512
+ display: "block"
2513
+ }, e[11] = _) : _ = e[11];
2514
+ let S;
2515
+ e[12] !== i ? (S = /* @__PURE__ */ a("b", { children: i }), e[12] = i, e[13] = S) : S = e[13];
2504
2516
  let v;
2505
- e[14] !== g || e[15] !== h || e[16] !== _ ? (v = /* @__PURE__ */ y(U, { lineClamp: 1, as: "cite", style: S, children: [
2517
+ e[14] !== g || e[15] !== h || e[16] !== S ? (v = /* @__PURE__ */ y(U, { lineClamp: 1, as: "cite", style: _, children: [
2506
2518
  '"',
2507
2519
  h,
2508
- _,
2520
+ S,
2509
2521
  g,
2510
2522
  '"'
2511
- ] }), e[14] = g, e[15] = h, e[16] = _, e[17] = v) : v = e[17];
2512
- let C;
2513
- e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = {
2523
+ ] }), e[14] = g, e[15] = h, e[16] = S, e[17] = v) : v = e[17];
2524
+ let x;
2525
+ e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = {
2514
2526
  textDecoration: "none"
2515
- }, e[18] = C) : C = e[18];
2527
+ }, e[18] = x) : x = e[18];
2516
2528
  const T = `Book page: ${r !== void 0 ? r + 1 : "unknown (not loaded)"}`;
2517
2529
  let I;
2518
- e[19] !== T ? (I = /* @__PURE__ */ a(U, { fontSize: "sm", color: "gray.500", style: C, children: T }), e[19] = T, e[20] = I) : I = e[20];
2530
+ e[19] !== T ? (I = /* @__PURE__ */ a(U, { fontSize: "sm", color: "gray.500", style: x, children: T }), e[19] = T, e[20] = I) : I = e[20];
2519
2531
  let k;
2520
- return e[21] !== u || e[22] !== v || e[23] !== I || e[24] !== b ? (k = /* @__PURE__ */ y(Mt, { href: u, style: p, onClick: b, display: "flex", flexDirection: "column", alignItems: "flex-start", gap: 0, children: [
2532
+ return e[21] !== u || e[22] !== v || e[23] !== I || e[24] !== b ? (k = /* @__PURE__ */ y(Ot, { href: u, style: p, onClick: b, display: "flex", flexDirection: "column", alignItems: "flex-start", gap: 0, children: [
2521
2533
  v,
2522
2534
  I
2523
2535
  ] }), e[21] = u, e[22] = v, e[23] = I, e[24] = b, e[25] = k) : k = e[25], k;
2524
- }), Ql = 500, Xl = () => {
2525
- const t = x(13), e = it(Jl), {
2536
+ }), ts = 500, ns = () => {
2537
+ const t = C(13), e = lt(os), {
2526
2538
  data: o
2527
2539
  } = H(e), n = j();
2528
2540
  let i;
2529
- t[0] !== n ? (i = dn(n) ? n : void 0, t[0] = n, t[1] = i) : i = t[1];
2541
+ t[0] !== n ? (i = un(n) ? n : void 0, t[0] = n, t[1] = i) : i = t[1];
2530
2542
  const l = i;
2531
2543
  let s, r;
2532
- t[2] !== l || t[3] !== e ? (s = () => e.pipe(be(), Ce((m) => m === "" || !l ? pt(void 0) : tn(pt({
2544
+ t[2] !== l || t[3] !== e ? (s = () => e.pipe(Se(), Ce((m) => m === "" || !l ? bt(void 0) : on(bt({
2533
2545
  type: "start",
2534
2546
  data: void 0
2535
- }), nn(Ql).pipe(Ce(() => l.search.search(m)), J(es))))), r = [l, e], t[2] = l, t[3] = e, t[4] = s, t[5] = r) : (s = t[4], r = t[5]);
2547
+ }), ln(ts).pipe(Ce(() => l.search.search(m)), J(is))))), r = [l, e], t[2] = l, t[3] = e, t[4] = s, t[5] = r) : (s = t[4], r = t[5]);
2536
2548
  const {
2537
2549
  data: c
2538
2550
  } = H(s, r);
@@ -2547,24 +2559,24 @@ const Kl = de.forwardRef(function(e, o) {
2547
2559
  data: f
2548
2560
  }, t[8] = o, t[9] = d, t[10] = u, t[11] = f, t[12] = h) : h = t[12], h;
2549
2561
  };
2550
- function Jl() {
2551
- return new on("");
2562
+ function os() {
2563
+ return new sn("");
2552
2564
  }
2553
- function es(t) {
2565
+ function is(t) {
2554
2566
  return {
2555
2567
  type: "end",
2556
2568
  data: t
2557
2569
  };
2558
2570
  }
2559
- const ts = N((t) => {
2560
- const e = x(31), {
2571
+ const ls = N((t) => {
2572
+ const e = C(31), {
2561
2573
  onNavigate: o
2562
2574
  } = t, n = j(), {
2563
2575
  value: i,
2564
2576
  setValue: l,
2565
2577
  status: s,
2566
2578
  data: r
2567
- } = Xl();
2579
+ } = ns();
2568
2580
  let c;
2569
2581
  e[0] !== l ? (c = (I) => {
2570
2582
  l(I.target.value);
@@ -2583,37 +2595,37 @@ const ts = N((t) => {
2583
2595
  data: g
2584
2596
  } = H(h, m);
2585
2597
  let p;
2586
- e[10] !== d || e[11] !== i ? (p = /* @__PURE__ */ a($n, { placeholder: "Type something...", value: i, onChange: d, flexShrink: 0, variant: "subtle", name: "search", focusRing: "none", focusVisibleRing: "none", outline: "none", focusRingColor: "transparent" }), e[10] = d, e[11] = i, e[12] = p) : p = e[12];
2598
+ e[10] !== d || e[11] !== i ? (p = /* @__PURE__ */ a(Mn, { placeholder: "Type something...", value: i, onChange: d, flexShrink: 0, variant: "subtle", name: "search", focusRing: "none", focusVisibleRing: "none", outline: "none", focusRingColor: "transparent" }), e[10] = d, e[11] = i, e[12] = p) : p = e[12];
2587
2599
  let b;
2588
2600
  e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = {
2589
2601
  overflow: "hidden",
2590
2602
  overflowY: "auto"
2591
2603
  }, e[13] = b) : b = e[13];
2592
- let S;
2593
- e[14] !== s ? (S = s === "start" && /* @__PURE__ */ a(U, { children: "Searching ..." }), e[14] = s, e[15] = S) : S = e[15];
2594
2604
  let _;
2595
- e[16] !== r?.length ? (_ = r?.length === 0 && /* @__PURE__ */ a(U, { children: "No results" }), e[16] = r?.length, e[17] = _) : _ = e[17];
2605
+ e[14] !== s ? (_ = s === "start" && /* @__PURE__ */ a(U, { children: "Searching ..." }), e[14] = s, e[15] = _) : _ = e[15];
2606
+ let S;
2607
+ e[16] !== r?.length ? (S = r?.length === 0 && /* @__PURE__ */ a(U, { children: "No results" }), e[16] = r?.length, e[17] = S) : S = e[17];
2596
2608
  let v;
2597
2609
  e[18] !== g || e[19] !== r?.length || e[20] !== f || e[21] !== i || e[22] !== s ? (v = s === "end" && (r?.length ?? 0) > 0 && /* @__PURE__ */ y(ee, { children: [
2598
2610
  /* @__PURE__ */ y(U, { fontSize: "md", children: [
2599
2611
  r?.length,
2600
2612
  " result(s)"
2601
2613
  ] }),
2602
- /* @__PURE__ */ a(ee, { gap: 0, children: g?.map((I, k) => /* @__PURE__ */ a(Zl, { contextText: I.meta?.range?.startContainer.parentElement?.textContent ?? "", pageIndex: I.meta?.itemPageIndex, startOffset: I.meta?.range?.startOffset ?? 0, text: i, cfi: I.meta.cfi, onClick: f, absolutePageIndex: I.meta?.absolutePageIndex }, k)) })
2614
+ /* @__PURE__ */ a(ee, { gap: 0, children: g?.map((I, k) => /* @__PURE__ */ a(es, { contextText: I.meta?.range?.startContainer.parentElement?.textContent ?? "", pageIndex: I.meta?.itemPageIndex, startOffset: I.meta?.range?.startOffset ?? 0, text: i, cfi: I.meta.cfi, onClick: f, absolutePageIndex: I.meta?.absolutePageIndex }, k)) })
2603
2615
  ] }), e[18] = g, e[19] = r?.length, e[20] = f, e[21] = i, e[22] = s, e[23] = v) : v = e[23];
2604
- let C;
2605
- e[24] !== S || e[25] !== _ || e[26] !== v ? (C = /* @__PURE__ */ y(ee, { style: b, overflow: "auto", px: 4, flex: 1, children: [
2606
- S,
2616
+ let x;
2617
+ e[24] !== _ || e[25] !== S || e[26] !== v ? (x = /* @__PURE__ */ y(ee, { style: b, overflow: "auto", px: 4, flex: 1, children: [
2607
2618
  _,
2619
+ S,
2608
2620
  v
2609
- ] }), e[24] = S, e[25] = _, e[26] = v, e[27] = C) : C = e[27];
2621
+ ] }), e[24] = _, e[25] = S, e[26] = v, e[27] = x) : x = e[27];
2610
2622
  let T;
2611
- return e[28] !== C || e[29] !== p ? (T = /* @__PURE__ */ y(ee, { flex: 1, height: "100%", gap: 2, children: [
2623
+ return e[28] !== x || e[29] !== p ? (T = /* @__PURE__ */ y(ee, { flex: 1, height: "100%", gap: 2, children: [
2612
2624
  p,
2613
- C
2614
- ] }), e[28] = C, e[29] = p, e[30] = T) : T = e[30], T;
2615
- }), ns = N((t) => {
2616
- const e = x(14), {
2625
+ x
2626
+ ] }), e[28] = x, e[29] = p, e[30] = T) : T = e[30], T;
2627
+ }), ss = N((t) => {
2628
+ const e = C(14), {
2617
2629
  open: o,
2618
2630
  setOpen: n,
2619
2631
  onNavigate: i
@@ -2626,22 +2638,22 @@ const ts = N((t) => {
2626
2638
  md: "lg"
2627
2639
  }, e[2] = s) : s = e[2];
2628
2640
  let r;
2629
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(Oe, { children: "Search" }) }), e[3] = r) : r = e[3];
2641
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ a(Me, { children: /* @__PURE__ */ a(Ae, { children: "Search" }) }), e[3] = r) : r = e[3];
2630
2642
  let c;
2631
- e[4] !== i ? (c = /* @__PURE__ */ a(Me, { flex: 1, p: 0, children: /* @__PURE__ */ a(ts, { onNavigate: i }) }), e[4] = i, e[5] = c) : c = e[5];
2643
+ e[4] !== i ? (c = /* @__PURE__ */ a(Oe, { flex: 1, p: 0, children: /* @__PURE__ */ a(ls, { onNavigate: i }) }), e[4] = i, e[5] = c) : c = e[5];
2632
2644
  let d, u;
2633
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(Ae, { asChild: !0, children: /* @__PURE__ */ a(ue, { variant: "outline", children: "Cancel" }) }) }), u = /* @__PURE__ */ a(Te, {}), e[6] = d, e[7] = u) : (d = e[6], u = e[7]);
2645
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(we, { asChild: !0, children: /* @__PURE__ */ a(he, { variant: "outline", children: "Cancel" }) }) }), u = /* @__PURE__ */ a(ke, {}), e[6] = d, e[7] = u) : (d = e[6], u = e[7]);
2634
2646
  let f;
2635
- e[8] !== c ? (f = /* @__PURE__ */ y(Ie, { height: "100%", children: [
2647
+ e[8] !== c ? (f = /* @__PURE__ */ y(Te, { height: "100%", children: [
2636
2648
  r,
2637
2649
  c,
2638
2650
  d,
2639
2651
  u
2640
2652
  ] }), e[8] = c, e[9] = f) : f = e[9];
2641
2653
  let h;
2642
- return e[10] !== o || e[11] !== l || e[12] !== f ? (h = /* @__PURE__ */ a(ke, { lazyMount: !0, placement: "center", open: o, onOpenChange: l, size: s, scrollBehavior: "inside", children: f }), e[10] = o, e[11] = l, e[12] = f, e[13] = h) : h = e[13], h;
2643
- }), os = N((t) => {
2644
- const e = x(5), {
2654
+ return e[10] !== o || e[11] !== l || e[12] !== f ? (h = /* @__PURE__ */ a($e, { lazyMount: !0, placement: "center", open: o, onOpenChange: l, size: s, scrollBehavior: "inside", children: f }), e[10] = o, e[11] = l, e[12] = f, e[13] = h) : h = e[13], h;
2655
+ }), rs = N((t) => {
2656
+ const e = C(5), {
2645
2657
  onNavigate: o
2646
2658
  } = t, n = j(), {
2647
2659
  data: i
@@ -2649,7 +2661,7 @@ const ts = N((t) => {
2649
2661
  manifest: l
2650
2662
  } = i === void 0 ? {} : i, {
2651
2663
  nav: s
2652
- } = l ?? {}, r = Je();
2664
+ } = l ?? {}, r = et();
2653
2665
  s?.toc;
2654
2666
  const c = r?.beginAbsolutePageIndex;
2655
2667
  let d;
@@ -2659,26 +2671,26 @@ const ts = N((t) => {
2659
2671
  e[0] = r?.beginChapterInfo, e[1] = d;
2660
2672
  } else
2661
2673
  d = e[1];
2662
- const u = (_, v, C) => /* @__PURE__ */ y(Rn.Fragment, { children: [
2663
- /* @__PURE__ */ a(ge.Item, { pl: 4 * (C + 1), style: {
2674
+ const u = (S, v, x) => /* @__PURE__ */ y(On.Fragment, { children: [
2675
+ /* @__PURE__ */ a(pe.Item, { pl: 4 * (x + 1), style: {
2664
2676
  display: "flex",
2665
2677
  alignItems: "center"
2666
- }, children: /* @__PURE__ */ y(Mt, { onClick: () => {
2667
- o(), n?.navigation.goToUrl(_.href);
2678
+ }, children: /* @__PURE__ */ y(Ot, { onClick: () => {
2679
+ o(), n?.navigation.goToUrl(S.href);
2668
2680
  }, href: "#", children: [
2669
- d?.path === _.path && /* @__PURE__ */ a(ge.Indicator, { asChild: !0, children: /* @__PURE__ */ a(Lt, {}) }),
2670
- d?.path !== _.path && /* @__PURE__ */ a(ge.Indicator, { asChild: !0, visibility: "hidden", children: /* @__PURE__ */ a(Lt, {}) }),
2681
+ d?.path === S.path && /* @__PURE__ */ a(pe.Indicator, { asChild: !0, children: /* @__PURE__ */ a(Ht, {}) }),
2682
+ d?.path !== S.path && /* @__PURE__ */ a(pe.Indicator, { asChild: !0, visibility: "hidden", children: /* @__PURE__ */ a(Ht, {}) }),
2671
2683
  /* @__PURE__ */ y(ee, { gap: 0, children: [
2672
- /* @__PURE__ */ a(U, { fontSize: "md", children: _.title || _.path }),
2673
- d?.path === _.path && c !== void 0 && /* @__PURE__ */ a(U, { fontStyle: "italic", fontWeight: "bold", fontSize: "sm", children: `Currently on page ${c + 1}` })
2684
+ /* @__PURE__ */ a(U, { fontSize: "md", children: S.title || S.path }),
2685
+ d?.path === S.path && c !== void 0 && /* @__PURE__ */ a(U, { fontStyle: "italic", fontWeight: "bold", fontSize: "sm", children: `Currently on page ${c + 1}` })
2674
2686
  ] })
2675
2687
  ] }) }),
2676
- _.contents.length > 0 && /* @__PURE__ */ a(ge.Root, { as: "div", gap: 2, children: _.contents.map((T, I) => u(T, I, C + 1)) })
2677
- ] }, v), f = ge, h = 3, m = "auto", g = 4, p = 1, b = s?.toc.map((_, v) => u(_, v, 0));
2678
- let S;
2679
- return e[2] !== f.Root || e[3] !== b ? (S = /* @__PURE__ */ a(f.Root, { gap: h, overflowY: m, py: g, flex: p, children: b }), e[2] = f.Root, e[3] = b, e[4] = S) : S = e[4], S;
2680
- }), is = N((t) => {
2681
- const e = x(14), {
2688
+ S.contents.length > 0 && /* @__PURE__ */ a(pe.Root, { as: "div", gap: 2, children: S.contents.map((T, I) => u(T, I, x + 1)) })
2689
+ ] }, v), f = pe, h = 3, m = "auto", g = 4, p = 1, b = s?.toc.map((S, v) => u(S, v, 0));
2690
+ let _;
2691
+ return e[2] !== f.Root || e[3] !== b ? (_ = /* @__PURE__ */ a(f.Root, { gap: h, overflowY: m, py: g, flex: p, children: b }), e[2] = f.Root, e[3] = b, e[4] = _) : _ = e[4], _;
2692
+ }), as = N((t) => {
2693
+ const e = C(14), {
2682
2694
  open: o,
2683
2695
  setOpen: n,
2684
2696
  onNavigate: i
@@ -2691,49 +2703,49 @@ const ts = N((t) => {
2691
2703
  md: "lg"
2692
2704
  }, e[2] = s) : s = e[2];
2693
2705
  let r;
2694
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(Oe, { children: "Table of Contents" }) }), e[3] = r) : r = e[3];
2706
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ a(Me, { children: /* @__PURE__ */ a(Ae, { children: "Table of Contents" }) }), e[3] = r) : r = e[3];
2695
2707
  let c;
2696
- e[4] !== i ? (c = /* @__PURE__ */ a(Me, { overflowY: "auto", flex: 1, children: /* @__PURE__ */ a(os, { onNavigate: i }) }), e[4] = i, e[5] = c) : c = e[5];
2708
+ e[4] !== i ? (c = /* @__PURE__ */ a(Oe, { overflowY: "auto", flex: 1, children: /* @__PURE__ */ a(rs, { onNavigate: i }) }), e[4] = i, e[5] = c) : c = e[5];
2697
2709
  let d, u;
2698
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(Ae, { asChild: !0, children: /* @__PURE__ */ a(ue, { variant: "outline", children: "Cancel" }) }) }), u = /* @__PURE__ */ a(Te, {}), e[6] = d, e[7] = u) : (d = e[6], u = e[7]);
2710
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(we, { asChild: !0, children: /* @__PURE__ */ a(he, { variant: "outline", children: "Cancel" }) }) }), u = /* @__PURE__ */ a(ke, {}), e[6] = d, e[7] = u) : (d = e[6], u = e[7]);
2699
2711
  let f;
2700
- e[8] !== c ? (f = /* @__PURE__ */ y(Ie, { children: [
2712
+ e[8] !== c ? (f = /* @__PURE__ */ y(Te, { children: [
2701
2713
  r,
2702
2714
  c,
2703
2715
  d,
2704
2716
  u
2705
2717
  ] }), e[8] = c, e[9] = f) : f = e[9];
2706
2718
  let h;
2707
- return e[10] !== o || e[11] !== l || e[12] !== f ? (h = /* @__PURE__ */ a(ke, { lazyMount: !0, placement: "center", open: o, onOpenChange: l, size: s, scrollBehavior: "inside", children: f }), e[10] = o, e[11] = l, e[12] = f, e[13] = h) : h = e[13], h;
2708
- }), ls = () => {
2709
- const t = x(7), e = j();
2719
+ return e[10] !== o || e[11] !== l || e[12] !== f ? (h = /* @__PURE__ */ a($e, { lazyMount: !0, placement: "center", open: o, onOpenChange: l, size: s, scrollBehavior: "inside", children: f }), e[10] = o, e[11] = l, e[12] = f, e[13] = h) : h = e[13], h;
2720
+ }), cs = () => {
2721
+ const t = C(7), e = j();
2710
2722
  let o;
2711
2723
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = ["zoomMaxScale"], t[0] = o) : o = t[0];
2712
2724
  const {
2713
2725
  zoomMaxScale: n
2714
- } = ie(o);
2726
+ } = le(o);
2715
2727
  let i;
2716
2728
  t[1] !== e?.gestures.settings || t[2] !== n ? (i = function() {
2717
2729
  e?.gestures.settings.update({
2718
- zoomMaxScale: n ?? rn
2730
+ zoomMaxScale: n ?? cn
2719
2731
  });
2720
2732
  }, t[1] = e?.gestures.settings, t[2] = n, t[3] = i) : i = t[3];
2721
2733
  let l;
2722
- t[4] !== e || t[5] !== n ? (l = [e, n], t[4] = e, t[5] = n, t[6] = l) : l = t[6], oe(i, l);
2723
- }, Zt = 0.5, Qt = 1, ss = (t, e, o, n) => {
2734
+ t[4] !== e || t[5] !== n ? (l = [e, n], t[4] = e, t[5] = n, t[6] = l) : l = t[6], ie(i, l);
2735
+ }, Xt = 0.5, Jt = 1, ds = (t, e, o, n) => {
2724
2736
  if (t > e && t < e + n)
2725
2737
  return e + n;
2726
2738
  const i = Math.min(Math.max(t, e), o), l = Math.round((i - e) / n) * n + e;
2727
2739
  return Math.round(l * 100) / 100;
2728
- }, rs = N(() => {
2729
- const t = x(23);
2740
+ }, fs = N(() => {
2741
+ const t = C(23);
2730
2742
  let e;
2731
2743
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["zoomMaxScale"], t[0] = e) : e = t[0];
2732
2744
  const {
2733
2745
  zoomMaxScale: o
2734
- } = ie(e), n = o === void 0 ? rn : o, i = j();
2746
+ } = le(e), n = o === void 0 ? cn : o, i = j();
2735
2747
  let l;
2736
- t[1] !== i?.zoom.state$ ? (l = () => i?.zoom.state$.pipe(J(as), en(100, oo, {
2748
+ t[1] !== i?.zoom.state$ ? (l = () => i?.zoom.state$.pipe(J(us), nn(100, lo, {
2737
2749
  leading: !0,
2738
2750
  trailing: !0
2739
2751
  })), t[1] = i?.zoom.state$, t[2] = l) : l = t[2];
@@ -2743,48 +2755,48 @@ const ts = N((t) => {
2743
2755
  data: r
2744
2756
  } = H(l, s), c = r === void 0 ? 1 : r;
2745
2757
  let d;
2746
- t[5] !== i?.zoom.state$ ? (d = () => i?.zoom.state$.pipe(J(cs)), t[5] = i?.zoom.state$, t[6] = d) : d = t[6];
2758
+ t[5] !== i?.zoom.state$ ? (d = () => i?.zoom.state$.pipe(J(hs)), t[5] = i?.zoom.state$, t[6] = d) : d = t[6];
2747
2759
  let u;
2748
2760
  t[7] !== i ? (u = [i], t[7] = i, t[8] = u) : u = t[8];
2749
2761
  const {
2750
2762
  data: f
2751
2763
  } = H(d, u), h = f === void 0 ? !1 : f;
2752
2764
  let m;
2753
- t[9] !== n || t[10] !== c ? (m = ss(c, Qt, n, Zt), t[9] = n, t[10] = c, t[11] = m) : m = t[11];
2765
+ t[9] !== n || t[10] !== c ? (m = ds(c, Jt, n, Xt), t[9] = n, t[10] = c, t[11] = m) : m = t[11];
2754
2766
  const g = m, p = h && c > 1;
2755
2767
  let b;
2756
2768
  t[12] !== g ? (b = [g], t[12] = g, t[13] = b) : b = t[13];
2757
- let S;
2758
- t[14] !== i?.zoom ? (S = (C) => {
2759
- const T = C.value?.[0] ?? 1;
2769
+ let _;
2770
+ t[14] !== i?.zoom ? (_ = (x) => {
2771
+ const T = x.value?.[0] ?? 1;
2760
2772
  T === 1 ? i?.zoom.exit() : i?.zoom.scaleAt(T, {
2761
2773
  constrain: "within-viewport"
2762
2774
  });
2763
- }, t[14] = i?.zoom, t[15] = S) : S = t[15];
2764
- let _;
2765
- t[16] !== b || t[17] !== S || t[18] !== n ? (_ = /* @__PURE__ */ a(Pt, { value: b, min: Qt, max: n, step: Zt, minWidth: 200, onValueChange: S }), t[16] = b, t[17] = S, t[18] = n, t[19] = _) : _ = t[19];
2775
+ }, t[14] = i?.zoom, t[15] = _) : _ = t[15];
2776
+ let S;
2777
+ t[16] !== b || t[17] !== _ || t[18] !== n ? (S = /* @__PURE__ */ a(Et, { value: b, min: Jt, max: n, step: Xt, minWidth: 200, onValueChange: _ }), t[16] = b, t[17] = _, t[18] = n, t[19] = S) : S = t[19];
2766
2778
  let v;
2767
- return t[20] !== _ || t[21] !== p ? (v = /* @__PURE__ */ a(cn, { present: p, children: _ }), t[20] = _, t[21] = p, t[22] = v) : v = t[22], v;
2779
+ return t[20] !== S || t[21] !== p ? (v = /* @__PURE__ */ a(fn, { present: p, children: S }), t[20] = S, t[21] = p, t[22] = v) : v = t[22], v;
2768
2780
  });
2769
- function as(t) {
2781
+ function us(t) {
2770
2782
  return t.currentScale;
2771
2783
  }
2772
- function cs(t) {
2784
+ function hs(t) {
2773
2785
  return t.isZooming;
2774
2786
  }
2775
- const ds = {
2787
+ const ms = {
2776
2788
  _open: "fade-in",
2777
2789
  _closed: "fade-out"
2778
- }, fs = N(() => (ei(), null)), us = N(() => {
2779
- const t = x(1);
2780
- ls(), xl(), Il(), Ul(), ti(), ni();
2790
+ }, gs = N(() => (ni(), null)), ps = N(() => {
2791
+ const t = C(1);
2792
+ cs(), Il(), kl(), Yl(), oi(), ii();
2781
2793
  let e;
2782
- return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ y(ve, { children: [
2783
- /* @__PURE__ */ a(Wi, {}),
2784
- /* @__PURE__ */ a(fs, {})
2794
+ return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ y(xe, { children: [
2795
+ /* @__PURE__ */ a(Ui, {}),
2796
+ /* @__PURE__ */ a(gs, {})
2785
2797
  ] }), t[0] = e) : e = t[0], e;
2786
- }), hs = N((t) => {
2787
- const e = x(47);
2798
+ }), bs = N((t) => {
2799
+ const e = C(47);
2788
2800
  let o, n;
2789
2801
  e[0] !== t ? ({
2790
2802
  children: o,
@@ -2795,50 +2807,50 @@ const ds = {
2795
2807
  const {
2796
2808
  enableFloatingTime: l,
2797
2809
  onItemClick: s
2798
- } = ie(i), [r, c] = ne(!1), [d, u] = ne(!1), [f, h] = ne(!1), [m, g] = ne(void 0), [p, b] = ne(!1), [S, _] = Bt();
2810
+ } = le(i), [r, c] = ne(!1), [d, u] = ne(!1), [f, h] = ne(!1), [m, g] = ne(void 0), [p, b] = ne(!1), [_, S] = Ft();
2799
2811
  let v;
2800
- e[4] !== _ ? (v = () => {
2801
- c(!1), u(!1), h(!1), g(void 0), _(!1), b(!1);
2802
- }, e[4] = _, e[5] = v) : v = e[5];
2803
- const C = v;
2812
+ e[4] !== S ? (v = () => {
2813
+ c(!1), u(!1), h(!1), g(void 0), S(!1), b(!1);
2814
+ }, e[4] = S, e[5] = v) : v = e[5];
2815
+ const x = v;
2804
2816
  let T;
2805
2817
  e[6] !== s ? (T = (B) => {
2806
2818
  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);
2807
2819
  }, e[6] = s, e[7] = T) : T = e[7];
2808
2820
  const I = T;
2809
2821
  let k;
2810
- e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ a(us, {}), e[8] = k) : k = e[8];
2822
+ e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ a(ps, {}), e[8] = k) : k = e[8];
2811
2823
  let R, P, E;
2812
- e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ a(ki, { children: /* @__PURE__ */ a(Zo, {}) }), P = /* @__PURE__ */ a(il, {}), E = /* @__PURE__ */ a(Cl, {}), e[9] = R, e[10] = P, e[11] = E) : (R = e[9], P = e[10], E = e[11]);
2824
+ e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ a(Ri, { children: /* @__PURE__ */ a(Xo, {}) }), P = /* @__PURE__ */ a(sl, {}), E = /* @__PURE__ */ a(yl, {}), e[9] = R, e[10] = P, e[11] = E) : (R = e[9], P = e[10], E = e[11]);
2813
2825
  let M;
2814
- e[12] !== p ? (M = /* @__PURE__ */ a(Qi, { open: p, setOpen: b }), e[12] = p, e[13] = M) : M = e[13];
2826
+ e[12] !== p ? (M = /* @__PURE__ */ a(Ji, { open: p, setOpen: b }), e[12] = p, e[13] = M) : M = e[13];
2815
2827
  let A;
2816
- e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ a(Yl, {}), e[14] = A) : A = e[14];
2828
+ e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ a(Jl, {}), e[14] = A) : A = e[14];
2817
2829
  let w;
2818
- e[15] !== I ? (w = /* @__PURE__ */ a(Gl, { onItemClick: I }), e[15] = I, e[16] = w) : w = e[16];
2830
+ e[15] !== I ? (w = /* @__PURE__ */ a(Kl, { onItemClick: I }), e[15] = I, e[16] = w) : w = e[16];
2819
2831
  let $, O, z, D;
2820
- e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ a(rs, {}), O = /* @__PURE__ */ a(Ro, {}), z = /* @__PURE__ */ a(Do, {}), D = /* @__PURE__ */ a(Hi, {}), e[17] = $, e[18] = O, e[19] = z, e[20] = D) : ($ = e[17], O = e[18], z = e[19], D = e[20]);
2832
+ e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ a(fs, {}), O = /* @__PURE__ */ a(Oo, {}), z = /* @__PURE__ */ a(Fo, {}), D = /* @__PURE__ */ a(Wi, {}), e[17] = $, e[18] = O, e[19] = z, e[20] = D) : ($ = e[17], O = e[18], z = e[19], D = e[20]);
2821
2833
  let F;
2822
- e[21] !== d ? (F = /* @__PURE__ */ a(el, { open: d, setOpen: u }), e[21] = d, e[22] = F) : F = e[22];
2834
+ e[21] !== d ? (F = /* @__PURE__ */ a(nl, { open: d, setOpen: u }), e[21] = d, e[22] = F) : F = e[22];
2823
2835
  let Q;
2824
- e[23] !== r || e[24] !== C ? (Q = /* @__PURE__ */ a(is, { open: r, setOpen: c, onNavigate: C }), e[23] = r, e[24] = C, e[25] = Q) : Q = e[25];
2836
+ e[23] !== r || e[24] !== x ? (Q = /* @__PURE__ */ a(as, { open: r, setOpen: c, onNavigate: x }), e[23] = r, e[24] = x, e[25] = Q) : Q = e[25];
2825
2837
  let V;
2826
- e[26] !== f || e[27] !== C ? (V = /* @__PURE__ */ a(ns, { open: f, setOpen: h, onNavigate: C }), e[26] = f, e[27] = C, e[28] = V) : V = e[28];
2838
+ e[26] !== f || e[27] !== x ? (V = /* @__PURE__ */ a(ss, { open: f, setOpen: h, onNavigate: x }), e[26] = f, e[27] = x, e[28] = V) : V = e[28];
2827
2839
  let W;
2828
2840
  e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = (B) => g(B ? "annotations" : void 0), e[29] = W) : W = e[29];
2829
2841
  let G;
2830
- e[30] !== m || e[31] !== C ? (G = /* @__PURE__ */ a(jo, { openWith: m, setOpen: W, onNavigate: C }), e[30] = m, e[31] = C, e[32] = G) : G = e[32];
2831
- const q = l || S;
2842
+ e[30] !== m || e[31] !== x ? (G = /* @__PURE__ */ a(Ko, { openWith: m, setOpen: W, onNavigate: x }), e[30] = m, e[31] = x, e[32] = G) : G = e[32];
2843
+ const q = l || _;
2832
2844
  let Y;
2833
- e[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = /* @__PURE__ */ a(rl, {}), e[33] = Y) : Y = e[33];
2845
+ e[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = /* @__PURE__ */ a(cl, {}), e[33] = Y) : Y = e[33];
2834
2846
  let K;
2835
- e[34] !== q ? (K = /* @__PURE__ */ a(Ze, { present: q, animationName: ds, animationDuration: "slow", overflow: "hidden", children: Y }), e[34] = q, e[35] = K) : K = e[35];
2847
+ e[34] !== q ? (K = /* @__PURE__ */ a(Qe, { present: q, animationName: ms, animationDuration: "slow", children: Y }), e[34] = q, e[35] = K) : K = e[35];
2836
2848
  let Z;
2837
- e[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = /* @__PURE__ */ a(Ri, {}), e[36] = Z) : Z = e[36];
2849
+ e[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = /* @__PURE__ */ a(Oi, {}), e[36] = Z) : Z = e[36];
2838
2850
  let X;
2839
- return e[37] !== o || e[38] !== n || e[39] !== w || e[40] !== F || e[41] !== Q || e[42] !== V || e[43] !== G || e[44] !== K || e[45] !== M ? (X = /* @__PURE__ */ y(ve, { children: [
2851
+ return e[37] !== o || e[38] !== n || e[39] !== w || e[40] !== F || e[41] !== Q || e[42] !== V || e[43] !== G || e[44] !== K || e[45] !== M ? (X = /* @__PURE__ */ y(xe, { children: [
2840
2852
  k,
2841
- /* @__PURE__ */ y(le, { position: "absolute", top: 0, left: 0, height: "100%", width: "100%", overflow: "hidden", "data-prose-react-reader": !0, ...n, children: [
2853
+ /* @__PURE__ */ y(oe, { position: "absolute", top: 0, left: 0, height: "100%", width: "100%", overflow: "hidden", "data-prose-react-reader": !0, ...n, children: [
2842
2854
  o,
2843
2855
  R,
2844
2856
  P,
@@ -2858,8 +2870,8 @@ const ds = {
2858
2870
  Z
2859
2871
  ] })
2860
2872
  ] }), e[37] = o, e[38] = n, e[39] = w, e[40] = F, e[41] = Q, e[42] = V, e[43] = G, e[44] = K, e[45] = M, e[46] = X) : X = e[46], X;
2861
- }), Ps = N((t) => {
2862
- const e = x(16);
2873
+ }), Ls = N((t) => {
2874
+ const e = C(16);
2863
2875
  let o, n, i;
2864
2876
  e[0] !== t ? ({
2865
2877
  children: o,
@@ -2880,13 +2892,13 @@ const ds = {
2880
2892
  e[8] !== c ? (d = c === void 0 ? {} : c, e[8] = c, e[9] = d) : d = e[9];
2881
2893
  const u = d;
2882
2894
  let f;
2883
- e[10] !== o || e[11] !== u ? (f = /* @__PURE__ */ a(hs, { ...u, children: o }), e[10] = o, e[11] = u, e[12] = f) : f = e[12];
2895
+ e[10] !== o || e[11] !== u ? (f = /* @__PURE__ */ a(bs, { ...u, children: o }), e[10] = o, e[11] = u, e[12] = f) : f = e[12];
2884
2896
  let h;
2885
- return e[13] !== n || e[14] !== f ? (h = /* @__PURE__ */ a(Ai, { ...n, children: f }), e[13] = n, e[14] = f, e[15] = h) : h = e[15], h;
2897
+ return e[13] !== n || e[14] !== f ? (h = /* @__PURE__ */ a(zi, { ...n, children: f }), e[13] = n, e[14] = f, e[15] = h) : h = e[15], h;
2886
2898
  });
2887
2899
  export {
2888
- To as BOOKMARK_AREA_DATA_ATTRIBUTE,
2889
- rn as MAX_ZOOM_SCALE,
2890
- Ps as ReactReader
2900
+ $o as BOOKMARK_AREA_DATA_ATTRIBUTE,
2901
+ cn as MAX_ZOOM_SCALE,
2902
+ Ls as ReactReader
2891
2903
  };
2892
2904
  //# sourceMappingURL=index.js.map