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