@readium/navigator 2.4.0-alpha.3 → 2.4.0-alpha.4
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 +230 -237
- package/dist/index.umd.cjs +14 -14
- package/package.json +1 -1
- package/src/epub/frame/FrameBlobBuilder.ts +25 -9
- package/src/epub/frame/FramePoolManager.ts +18 -23
- package/src/epub/fxl/FXLFramePoolManager.ts +11 -12
- package/src/injection/Injector.ts +5 -5
- package/types/src/epub/frame/FrameBlobBuilder.d.ts +4 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const w = class w {
|
|
2
2
|
constructor(t) {
|
|
3
3
|
this.uri = t;
|
|
4
4
|
}
|
|
@@ -7,7 +7,7 @@ const v = class v {
|
|
|
7
7
|
*/
|
|
8
8
|
static deserialize(t) {
|
|
9
9
|
if (!(!t || typeof t != "string"))
|
|
10
|
-
return new
|
|
10
|
+
return new w(t);
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* Serializes an [AccessibilityProfile] to its RWPM JSON representation.
|
|
@@ -19,23 +19,23 @@ const v = class v {
|
|
|
19
19
|
* Returns true if the profile is a WCAG Level A profile.
|
|
20
20
|
*/
|
|
21
21
|
get isWCAGLevelA() {
|
|
22
|
-
return this ===
|
|
22
|
+
return this === w.EPUB_A11Y_10_WCAG_20_A || this === w.EPUB_A11Y_11_WCAG_20_A || this === w.EPUB_A11Y_11_WCAG_21_A || this === w.EPUB_A11Y_11_WCAG_22_A;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* Returns true if the profile is a WCAG Level AA profile.
|
|
26
26
|
*/
|
|
27
27
|
get isWCAGLevelAA() {
|
|
28
|
-
return this ===
|
|
28
|
+
return this === w.EPUB_A11Y_10_WCAG_20_AA || this === w.EPUB_A11Y_11_WCAG_20_AA || this === w.EPUB_A11Y_11_WCAG_21_AA || this === w.EPUB_A11Y_11_WCAG_22_AA;
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
31
|
* Returns true if the profile is a WCAG Level AAA profile.
|
|
32
32
|
*/
|
|
33
33
|
get isWCAGLevelAAA() {
|
|
34
|
-
return this ===
|
|
34
|
+
return this === w.EPUB_A11Y_10_WCAG_20_AAA || this === w.EPUB_A11Y_11_WCAG_20_AAA || this === w.EPUB_A11Y_11_WCAG_21_AAA || this === w.EPUB_A11Y_11_WCAG_22_AAA;
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
|
-
|
|
38
|
-
let De =
|
|
37
|
+
w.EPUB_A11Y_10_WCAG_20_A = new w("http://www.idpf.org/epub/a11y/accessibility-20170105.html#wcag-a"), w.EPUB_A11Y_10_WCAG_20_AA = new w("http://www.idpf.org/epub/a11y/accessibility-20170105.html#wcag-aa"), w.EPUB_A11Y_10_WCAG_20_AAA = new w("http://www.idpf.org/epub/a11y/accessibility-20170105.html#wcag-aaa"), w.EPUB_A11Y_11_WCAG_20_A = new w("https://www.w3.org/TR/epub-a11y-11#wcag-2.0-a"), w.EPUB_A11Y_11_WCAG_20_AA = new w("https://www.w3.org/TR/epub-a11y-11#wcag-2.0-aa"), w.EPUB_A11Y_11_WCAG_20_AAA = new w("https://www.w3.org/TR/epub-a11y-11#wcag-2.0-aaa"), w.EPUB_A11Y_11_WCAG_21_A = new w("https://www.w3.org/TR/epub-a11y-11#wcag-2.1-a"), w.EPUB_A11Y_11_WCAG_21_AA = new w("https://www.w3.org/TR/epub-a11y-11#wcag-2.1-aa"), w.EPUB_A11Y_11_WCAG_21_AAA = new w("https://www.w3.org/TR/epub-a11y-11#wcag-2.1-aaa"), w.EPUB_A11Y_11_WCAG_22_A = new w("https://www.w3.org/TR/epub-a11y-11#wcag-2.2-a"), w.EPUB_A11Y_11_WCAG_22_AA = new w("https://www.w3.org/TR/epub-a11y-11#wcag-2.2-aa"), w.EPUB_A11Y_11_WCAG_22_AAA = new w("https://www.w3.org/TR/epub-a11y-11#wcag-2.2-aaa");
|
|
38
|
+
let De = w;
|
|
39
39
|
const E = class E {
|
|
40
40
|
constructor(t) {
|
|
41
41
|
this.value = t;
|
|
@@ -154,7 +154,7 @@ x.NONE = new x("none"), x.DOCUMENTED = new x("documented"), x.LEGAL = new x("leg
|
|
|
154
154
|
let Be = x;
|
|
155
155
|
const Ve = ["en", "ar", "da", "fr", "it", "pt_PT", "sv"], un = /* @__PURE__ */ JSON.parse(`{"format":{"audiobook":"Audiobook","audiobookJSON":"Audiobook Manifest","cbz":"Comic Book Archive","divina":"Divina Publication","divinaJSON":"Divina Publication Manifest","epub":"EPUB","lcpa":"LCP Protected Audiobook","lcpdf":"LCP Protected PDF","lcpl":"LCP License Document","pdf":"PDF","rwp":"Readium Web Publication","rwpm":"Readium Web Publication Manifest","zab":"Audiobook Archive","zip":"ZIP Archive"},"kind":{"audiobook_one":"audiobook","audiobook_other":"audiobooks","book_one":"book","book_other":"books","comic_one":"comic","comic_other":"comics","document_one":"document","document_other":"documents"},"metadata":{"accessibility":{"display-guide":{"accessibility-summary":{"no-metadata":"No information is available","publisher-contact":"For more information about the accessibility of this product, please contact the publisher: ","title":"Accessibility summary"},"additional-accessibility-information":{"aria":{"compact":"ARIA roles included","descriptive":"Content is enhanced with ARIA roles to optimize organization and facilitate navigation"},"audio-descriptions":"Audio descriptions","braille":"Braille","color-not-sole-means-of-conveying-information":"Color is not the sole means of conveying information","dyslexia-readability":"Dyslexia readability","full-ruby-annotations":"Full ruby annotations","high-contrast-between-foreground-and-background-audio":"High contrast between foreground and background audio","high-contrast-between-text-and-background":"High contrast between foreground text and background","large-print":"Large print","page-breaks":{"compact":"Page breaks included","descriptive":"Page breaks included from the original print source"},"ruby-annotations":"Some Ruby annotations","sign-language":"Sign language","tactile-graphics":{"compact":"Tactile graphics included","descriptive":"Tactile graphics have been integrated to facilitate access to visual elements for blind people"},"tactile-objects":"Tactile 3D objects","text-to-speech-hinting":"Text-to-speech hinting provided","title":"Additional accessibility information","ultra-high-contrast-between-text-and-background":"Ultra high contrast between text and background","visible-page-numbering":"Visible page numbering","without-background-sounds":"Without background sounds"},"conformance":{"a":{"compact":"This publication meets minimum accessibility standards","descriptive":"The publication contains a conformance statement that it meets the EPUB Accessibility and WCAG 2 Level A standard"},"aa":{"compact":"This publication meets accepted accessibility standards","descriptive":"The publication contains a conformance statement that it meets the EPUB Accessibility and WCAG 2 Level AA standard"},"aaa":{"compact":"This publication exceeds accepted accessibility standards","descriptive":"The publication contains a conformance statement that it meets the EPUB Accessibility and WCAG 2 Level AAA standard"},"certifier":"The publication was certified by ","certifier-credentials":"The certifier's credential is ","details":{"certification-info":"The publication was certified on ","certifier-report":"For more information refer to the certifier's report","claim":"This publication claims to meet","epub-accessibility-1-0":"EPUB Accessibility 1.0","epub-accessibility-1-1":"EPUB Accessibility 1.1","level-a":"Level A","level-aa":"Level AA","level-aaa":"Level AAA","wcag-2-0":{"compact":"WCAG 2.0","descriptive":"Web Content Accessibility Guidelines (WCAG) 2.0"},"wcag-2-1":{"compact":"WCAG 2.1","descriptive":"Web Content Accessibility Guidelines (WCAG) 2.1"},"wcag-2-2":{"compact":"WCAG 2.2","descriptive":"Web Content Accessibility Guidelines (WCAG) 2.2"}},"details-title":"Detailed conformance information","no":"No information is available","title":"Conformance","unknown-standard":"Conformance to accepted standards for accessibility of this publication cannot be determined"},"hazards":{"flashing":{"compact":"Flashing content","descriptive":"The publication contains flashing content that can cause photosensitive seizures"},"flashing-none":{"compact":"No flashing hazards","descriptive":"The publication does not contain flashing content that can cause photosensitive seizures"},"flashing-unknown":{"compact":"Flashing hazards not known","descriptive":"The presence of flashing content that can cause photosensitive seizures could not be determined"},"motion":{"compact":"Motion simulation","descriptive":"The publication contains motion simulations that can cause motion sickness"},"motion-none":{"compact":"No motion simulation hazards","descriptive":"The publication does not contain motion simulations that can cause motion sickness"},"motion-unknown":{"compact":"Motion simulation hazards not known","descriptive":"The presence of motion simulations that can cause motion sickness could not be determined"},"no-metadata":"No information is available","none":{"compact":"No hazards","descriptive":"The publication contains no hazards"},"sound":{"compact":"Sounds","descriptive":"The publication contains sounds that can cause sensitivity issues"},"sound-none":{"compact":"No sound hazards","descriptive":"The publication does not contain sounds that can cause sensitivity issues"},"sound-unknown":{"compact":"Sound hazards not known","descriptive":"The presence of sounds that can cause sensitivity issues could not be determined"},"title":"Hazards","unknown":"The presence of hazards is unknown"},"legal-considerations":{"exempt":{"compact":"Claims an accessibility exemption in some jurisdictions","descriptive":"This publication claims an accessibility exemption in some jurisdictions"},"no-metadata":"No information is available","title":"Legal considerations"},"navigation":{"index":{"compact":"Index","descriptive":"Index with links to referenced entries"},"no-metadata":"No information is available","page-navigation":{"compact":"Go to page","descriptive":"Page list to go to pages from the print source version"},"structural":{"compact":"Headings","descriptive":"Elements such as headings, tables, etc for structured navigation"},"title":"Navigation","toc":{"compact":"Table of contents","descriptive":"Table of contents to all chapters of the text via links"}},"rich-content":{"accessible-chemistry-as-latex":{"compact":"Chemical formulas in LaTeX","descriptive":"Chemical formulas in accessible format (LaTeX)"},"accessible-chemistry-as-mathml":{"compact":"Chemical formulas in MathML","descriptive":"Chemical formulas in accessible format (MathML)"},"accessible-math-as-latex":{"compact":"Math as LaTeX","descriptive":"Math formulas in accessible format (LaTeX)"},"accessible-math-described":"Text descriptions of math are provided","closed-captions":{"compact":"Videos have closed captions","descriptive":"Videos included in publications have closed captions"},"extended-descriptions":"Information-rich images are described by extended descriptions","math-as-mathml":{"compact":"Math as MathML","descriptive":"Math formulas in accessible format (MathML)"},"open-captions":{"compact":"Videos have open captions","descriptive":"Videos included in publications have open captions"},"title":"Rich content","transcript":"Transcript(s) provided","unknown":"No information is available"},"ways-of-reading":{"nonvisual-reading":{"alt-text":{"compact":"Has alternative text","descriptive":"Has alternative text descriptions for images"},"no-metadata":"No information about nonvisual reading is available","none":{"compact":"Not readable in read aloud or dynamic braille","descriptive":"The content is not readable as read aloud speech or dynamic braille"},"not-fully":{"compact":"Not fully readable in read aloud or dynamic braille","descriptive":"Not all of the content will be readable as read aloud speech or dynamic braille"},"readable":{"compact":"Readable in read aloud or dynamic braille","descriptive":"All content can be read as read aloud speech or dynamic braille"}},"prerecorded-audio":{"complementary":{"compact":"Prerecorded audio clips","descriptive":"Prerecorded audio clips are embedded in the content"},"no-metadata":"No information about prerecorded audio is available","only":{"compact":"Prerecorded audio only","descriptive":"Audiobook with no text alternative"},"synchronized":{"compact":"Prerecorded audio synchronized with text","descriptive":"All the content is available as prerecorded audio synchronized with text"}},"title":"Ways of reading","visual-adjustments":{"modifiable":{"compact":"Appearance can be modified","descriptive":"Appearance of the text and page layout can be modified according to the capabilities of the reading system (font family and font size, spaces between paragraphs, sentences, words, and letters, as well as color of background and text)"},"unknown":"No information about appearance modifiability is available","unmodifiable":{"compact":"Appearance cannot be modified","descriptive":"Text and page layout cannot be modified as the reading experience is close to a print version, but reading systems can still provide zooming options"}}}}},"altIdentifier_one":"alternate identifier","altIdentifier_other":"alternate identifiers","artist_one":"artist","artist_other":"artists","author_one":"author","author_other":"authors","collection_one":"editorial collection","collection_other":"editorial collections","colorist_one":"colorist","colorist_other":"colorists","contributor_one":"contributor","contributor_other":"contributors","description":"description","duration":"duration","editor_one":"editor","editor_other":"editors","identifier_one":"identifier","identifier_other":"identifiers","illustrator_one":"illustrator","illustrator_other":"illustrators","imprint_one":"imprint","imprint_other":"imprints","inker_one":"inker","inker_other":"inkers","language_one":"language","language_other":"languages","letterer_one":"letterer","letterer_other":"letterers","modified":"modification date","narrator_one":"narrator","narrator_other":"narrators","numberOfPages":"print length","penciler_one":"penciler","penciler_other":"pencilers","published":"publication date","publisher_one":"publisher","publisher_other":"publishers","series_one":"series","series_other":"series","subject_one":"subject","subject_other":"subjects","subtitle":"subtitle","title":"title","translator_one":"translator","translator_other":"translators"}}`), pn = {
|
|
156
156
|
publication: un
|
|
157
|
-
},
|
|
157
|
+
}, Ge = {
|
|
158
158
|
fr: () => import("./fr-C5HEel98.js"),
|
|
159
159
|
ar: () => import("./ar-DyHX_uy2.js"),
|
|
160
160
|
da: () => import("./da-Dct0PS3E.js"),
|
|
@@ -165,10 +165,10 @@ const Ve = ["en", "ar", "da", "fr", "it", "pt_PT", "sv"], un = /* @__PURE__ */ J
|
|
|
165
165
|
sv: () => import("./sv-BfzAFsVN.js")
|
|
166
166
|
// 'tr': () => import('@edrlab/thorium-locales/publication-metadata/tr.json'),
|
|
167
167
|
// 'uk': () => import('@edrlab/thorium-locales/publication-metadata/uk.json')
|
|
168
|
-
},
|
|
168
|
+
}, je = pn?.publication?.metadata?.accessibility?.["display-guide"] || {};
|
|
169
169
|
class dt {
|
|
170
170
|
constructor() {
|
|
171
|
-
this.currentLocaleCode = "en", this.locale =
|
|
171
|
+
this.currentLocaleCode = "en", this.locale = je, this.loadedLocales = {}, this.loadedLocales.en = je;
|
|
172
172
|
}
|
|
173
173
|
static getInstance() {
|
|
174
174
|
return dt.instance || (dt.instance = new dt()), dt.instance;
|
|
@@ -184,9 +184,9 @@ class dt {
|
|
|
184
184
|
if (t in this.loadedLocales)
|
|
185
185
|
return !0;
|
|
186
186
|
try {
|
|
187
|
-
if (!(t in
|
|
187
|
+
if (!(t in Ge))
|
|
188
188
|
return console.warn(`Locale file not found for: ${t}`), !1;
|
|
189
|
-
const n = (await
|
|
189
|
+
const n = (await Ge[t]()).default?.publication?.metadata?.accessibility?.["display-guide"];
|
|
190
190
|
return n ? (this.loadedLocales[t] = n, !0) : (console.warn(`No accessibility strings found in locale ${t}`), !1);
|
|
191
191
|
} catch (e) {
|
|
192
192
|
return console.warn(`Failed to load locale ${t}:`, e), !1;
|
|
@@ -272,8 +272,8 @@ class Ce {
|
|
|
272
272
|
return this.compression !== void 0 && (t.compression = this.compression), this.originalLength !== void 0 && (t.originalLength = this.originalLength), this.profile !== void 0 && (t.profile = this.profile), this.scheme !== void 0 && (t.scheme = this.scheme), t;
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
|
-
var
|
|
276
|
-
let
|
|
275
|
+
var G = /* @__PURE__ */ ((s) => (s.left = "left", s.right = "right", s.center = "center", s))(G || {});
|
|
276
|
+
let j = class ce {
|
|
277
277
|
constructor(t) {
|
|
278
278
|
this.otherProperties = t;
|
|
279
279
|
}
|
|
@@ -303,7 +303,7 @@ let G = class ce {
|
|
|
303
303
|
return new ce(e);
|
|
304
304
|
}
|
|
305
305
|
};
|
|
306
|
-
Object.defineProperty(
|
|
306
|
+
Object.defineProperty(j.prototype, "encryption", {
|
|
307
307
|
get: function() {
|
|
308
308
|
return Ce.deserialize(this.otherProperties.encrypted);
|
|
309
309
|
}
|
|
@@ -810,7 +810,7 @@ class Xe {
|
|
|
810
810
|
return this.uri.replace(/\{(\??)([^}]+)\}/g, (...n) => n[1] ? i(n[2]) : e(n[2]));
|
|
811
811
|
}
|
|
812
812
|
}
|
|
813
|
-
class
|
|
813
|
+
class O {
|
|
814
814
|
/**
|
|
815
815
|
* Creates a [Locations].
|
|
816
816
|
*/
|
|
@@ -831,7 +831,7 @@ class k {
|
|
|
831
831
|
]);
|
|
832
832
|
return Object.entries(t).forEach(([a, l]) => {
|
|
833
833
|
o.has(a) || r.set(a, l);
|
|
834
|
-
}), new
|
|
834
|
+
}), new O({
|
|
835
835
|
fragments: Li(t.fragments || t.fragment),
|
|
836
836
|
progression: e !== void 0 && e >= 0 && e <= 1 ? e : void 0,
|
|
837
837
|
totalProgression: i !== void 0 && i >= 0 && i <= 1 ? i : void 0,
|
|
@@ -878,7 +878,7 @@ class H {
|
|
|
878
878
|
* Creates a [Locator].
|
|
879
879
|
*/
|
|
880
880
|
constructor(t) {
|
|
881
|
-
this.href = t.href, this.type = t.type, this.title = t.title, this.locations = t.locations ? t.locations : new
|
|
881
|
+
this.href = t.href, this.type = t.type, this.title = t.title, this.locations = t.locations ? t.locations : new O({}), this.text = t.text;
|
|
882
882
|
}
|
|
883
883
|
/**
|
|
884
884
|
* Parses a [Link] from its RWPM JSON representation.
|
|
@@ -889,7 +889,7 @@ class H {
|
|
|
889
889
|
href: t.href,
|
|
890
890
|
type: t.type,
|
|
891
891
|
title: t.title,
|
|
892
|
-
locations:
|
|
892
|
+
locations: O.deserialize(t.locations),
|
|
893
893
|
text: rt.deserialize(t.text)
|
|
894
894
|
});
|
|
895
895
|
}
|
|
@@ -909,7 +909,7 @@ class H {
|
|
|
909
909
|
type: this.type,
|
|
910
910
|
title: this.title,
|
|
911
911
|
text: this.text,
|
|
912
|
-
locations: new
|
|
912
|
+
locations: new O({ ...this.locations, ...t })
|
|
913
913
|
});
|
|
914
914
|
}
|
|
915
915
|
}
|
|
@@ -931,7 +931,7 @@ class B {
|
|
|
931
931
|
type: t.type,
|
|
932
932
|
title: t.title,
|
|
933
933
|
rels: t.rel ? Array.isArray(t.rel) ? new Set(t.rel) : /* @__PURE__ */ new Set([t.rel]) : void 0,
|
|
934
|
-
properties:
|
|
934
|
+
properties: j.deserialize(t.properties),
|
|
935
935
|
height: W(t.height),
|
|
936
936
|
width: W(t.width),
|
|
937
937
|
size: W(t.size),
|
|
@@ -980,7 +980,7 @@ class B {
|
|
|
980
980
|
*/
|
|
981
981
|
addProperties(t) {
|
|
982
982
|
const e = B.deserialize(this.serialize());
|
|
983
|
-
return e.properties = e.properties ? e.properties?.add(t) : new
|
|
983
|
+
return e.properties = e.properties ? e.properties?.add(t) : new j(t), e;
|
|
984
984
|
}
|
|
985
985
|
/**
|
|
986
986
|
* Creates a [Locator] from a reading order [Link].
|
|
@@ -991,7 +991,7 @@ class B {
|
|
|
991
991
|
href: t.length > 0 && t[0] !== void 0 ? t[0] : this.href,
|
|
992
992
|
type: this.type ?? "",
|
|
993
993
|
title: this.title,
|
|
994
|
-
locations: new
|
|
994
|
+
locations: new O({
|
|
995
995
|
fragments: t.length > 1 && t[1] !== void 0 ? [t[1]] : []
|
|
996
996
|
})
|
|
997
997
|
});
|
|
@@ -1092,7 +1092,7 @@ class Ft {
|
|
|
1092
1092
|
}
|
|
1093
1093
|
}
|
|
1094
1094
|
var Oi = /* @__PURE__ */ ((s) => (s.EPUB = "https://readium.org/webpub-manifest/profiles/epub", s.AUDIOBOOK = "https://readium.org/webpub-manifest/profiles/audiobook", s.DIVINA = "https://readium.org/webpub-manifest/profiles/divina", s.PDF = "https://readium.org/webpub-manifest/profiles/pdf", s))(Oi || {}), F = /* @__PURE__ */ ((s) => (s.ltr = "ltr", s.rtl = "rtl", s))(F || {});
|
|
1095
|
-
|
|
1095
|
+
j.prototype.getContains = function() {
|
|
1096
1096
|
return new Set(this.otherProperties.contains || []);
|
|
1097
1097
|
};
|
|
1098
1098
|
class Dt {
|
|
@@ -1154,16 +1154,16 @@ class xe {
|
|
|
1154
1154
|
return this.end && (t.end = this.end.serialize()), t;
|
|
1155
1155
|
}
|
|
1156
1156
|
}
|
|
1157
|
-
|
|
1157
|
+
O.prototype.getCssSelector = function() {
|
|
1158
1158
|
return this.otherLocations?.get("cssSelector");
|
|
1159
1159
|
};
|
|
1160
|
-
|
|
1160
|
+
O.prototype.getPartialCfi = function() {
|
|
1161
1161
|
return this.otherLocations?.get("partialCfi");
|
|
1162
1162
|
};
|
|
1163
|
-
|
|
1163
|
+
O.prototype.getDomRange = function() {
|
|
1164
1164
|
return xe.deserialize(this.otherLocations?.get("domRange"));
|
|
1165
1165
|
};
|
|
1166
|
-
|
|
1166
|
+
O.prototype.fragmentParameters = function() {
|
|
1167
1167
|
return new Map(
|
|
1168
1168
|
this.fragments.map((s) => s.startsWith("#") ? s.slice(1) : s).join("&").split("&").filter((s) => !s.startsWith("#")).map((s) => s.split("=")).filter((s) => s.length === 2).map((s) => [
|
|
1169
1169
|
s[0].trim().toLowerCase(),
|
|
@@ -1171,7 +1171,7 @@ k.prototype.fragmentParameters = function() {
|
|
|
1171
1171
|
])
|
|
1172
1172
|
);
|
|
1173
1173
|
};
|
|
1174
|
-
|
|
1174
|
+
O.prototype.htmlId = function() {
|
|
1175
1175
|
if (!this.fragments.length) return;
|
|
1176
1176
|
let s = this.fragments.find((t) => t.length && !t.includes("="));
|
|
1177
1177
|
if (!s) {
|
|
@@ -1180,22 +1180,22 @@ k.prototype.htmlId = function() {
|
|
|
1180
1180
|
}
|
|
1181
1181
|
return s?.startsWith("#") ? s.slice(1) : s;
|
|
1182
1182
|
};
|
|
1183
|
-
|
|
1183
|
+
O.prototype.page = function() {
|
|
1184
1184
|
const s = parseInt(this.fragmentParameters().get("page"));
|
|
1185
1185
|
if (!isNaN(s) && s >= 0) return s;
|
|
1186
1186
|
};
|
|
1187
|
-
|
|
1187
|
+
O.prototype.time = function() {
|
|
1188
1188
|
const s = parseInt(this.fragmentParameters().get("t"));
|
|
1189
1189
|
if (!isNaN(s)) return s;
|
|
1190
1190
|
};
|
|
1191
|
-
|
|
1191
|
+
O.prototype.space = function() {
|
|
1192
1192
|
const s = this.fragmentParameters();
|
|
1193
1193
|
if (!s.has("xywh")) return;
|
|
1194
1194
|
const t = s.get("xywh").split(",").map((e) => parseInt(e));
|
|
1195
1195
|
if (t.length === 4 && !t.some(isNaN))
|
|
1196
1196
|
return t;
|
|
1197
1197
|
};
|
|
1198
|
-
|
|
1198
|
+
O.prototype.text = function() {
|
|
1199
1199
|
const s = this.fragmentParameters();
|
|
1200
1200
|
console.log(s);
|
|
1201
1201
|
};
|
|
@@ -1320,27 +1320,27 @@ class ke {
|
|
|
1320
1320
|
return this.since !== void 0 && (t.since = this.since.toISOString()), this.until !== void 0 && (t.until = this.until.toISOString()), t;
|
|
1321
1321
|
}
|
|
1322
1322
|
}
|
|
1323
|
-
|
|
1323
|
+
j.prototype.getNumberOfItems = function() {
|
|
1324
1324
|
return W(this.otherProperties.numberOfItems);
|
|
1325
1325
|
};
|
|
1326
|
-
|
|
1326
|
+
j.prototype.getPrice = function() {
|
|
1327
1327
|
return Re.deserialize(this.otherProperties.price);
|
|
1328
1328
|
};
|
|
1329
|
-
|
|
1329
|
+
j.prototype.getIndirectAcquisitions = function() {
|
|
1330
1330
|
const s = this.otherProperties.indirectAcquisition;
|
|
1331
1331
|
if (s && Array.isArray(s))
|
|
1332
1332
|
return s.map((t) => St.deserialize(t)).filter((t) => t !== void 0);
|
|
1333
1333
|
};
|
|
1334
|
-
|
|
1334
|
+
j.prototype.getHolds = function() {
|
|
1335
1335
|
return Le.deserialize(this.otherProperties.holds);
|
|
1336
1336
|
};
|
|
1337
|
-
|
|
1337
|
+
j.prototype.getCopies = function() {
|
|
1338
1338
|
return Oe.deserialize(this.otherProperties.copies);
|
|
1339
1339
|
};
|
|
1340
|
-
|
|
1340
|
+
j.prototype.getAvailability = function() {
|
|
1341
1341
|
return ke.deserialize(this.otherProperties.availability);
|
|
1342
1342
|
};
|
|
1343
|
-
|
|
1343
|
+
j.prototype.getAuthenticate = function() {
|
|
1344
1344
|
return B.deserialize(this.otherProperties.authenticate);
|
|
1345
1345
|
};
|
|
1346
1346
|
const fn = "CssSelectorGenerator";
|
|
@@ -1515,10 +1515,10 @@ function ki(s, t, e) {
|
|
|
1515
1515
|
for (let p = 0; p <= r; p += 1) {
|
|
1516
1516
|
d[p] = 0;
|
|
1517
1517
|
for (let b = 0; b < n; b += 1) {
|
|
1518
|
-
const
|
|
1519
|
-
if (
|
|
1518
|
+
const _ = p * n + b;
|
|
1519
|
+
if (_ >= t.length)
|
|
1520
1520
|
continue;
|
|
1521
|
-
t.charCodeAt(
|
|
1521
|
+
t.charCodeAt(_) === y && (d[p] |= 1 << b);
|
|
1522
1522
|
}
|
|
1523
1523
|
}
|
|
1524
1524
|
}
|
|
@@ -1540,8 +1540,8 @@ function ki(s, t, e) {
|
|
|
1540
1540
|
h += 1, o.P[h] = -1, o.M[h] = 0;
|
|
1541
1541
|
let b;
|
|
1542
1542
|
if (h === r) {
|
|
1543
|
-
const
|
|
1544
|
-
b =
|
|
1543
|
+
const _ = t.length % n;
|
|
1544
|
+
b = _ === 0 ? n : _;
|
|
1545
1545
|
} else
|
|
1546
1546
|
b = n;
|
|
1547
1547
|
u[h] = u[h - 1] + b - p + Ze(o, d, h, p);
|
|
@@ -2329,14 +2329,14 @@ class Nn {
|
|
|
2329
2329
|
), r = i / (n || 1), o = this.wnd.document.scrollingElement, a = o.scrollLeft, l = o.scrollTop, c = (d, p, b) => {
|
|
2330
2330
|
if (d.style.position = "absolute", t.decoration?.style?.width === "viewport") {
|
|
2331
2331
|
d.style.width = `${i}px`, d.style.height = `${p.height}px`;
|
|
2332
|
-
let
|
|
2333
|
-
d.style.left = `${
|
|
2332
|
+
let _ = Math.floor(p.left / i) * i;
|
|
2333
|
+
d.style.left = `${_ + a}px`, d.style.top = `${p.top + l}px`;
|
|
2334
2334
|
} else if (t.decoration?.style?.width === "bounds")
|
|
2335
2335
|
d.style.width = `${b.width}px`, d.style.height = `${p.height}px`, d.style.left = `${b.left + a}px`, d.style.top = `${p.top + l}px`;
|
|
2336
2336
|
else if (t.decoration?.style?.width === "page") {
|
|
2337
2337
|
d.style.width = `${r}px`, d.style.height = `${p.height}px`;
|
|
2338
|
-
let
|
|
2339
|
-
d.style.left = `${
|
|
2338
|
+
let _ = Math.floor(p.left / r) * r;
|
|
2339
|
+
d.style.left = `${_ + a}px`, d.style.top = `${p.top + l}px`;
|
|
2340
2340
|
} else
|
|
2341
2341
|
d.style.width = `${p.width}px`, d.style.height = `${p.height}px`, d.style.left = `${p.left + a}px`, d.style.top = `${p.top + l}px`;
|
|
2342
2342
|
}, h = t.range.getBoundingClientRect();
|
|
@@ -2534,7 +2534,7 @@ function Ii(s) {
|
|
|
2534
2534
|
function Fn(s) {
|
|
2535
2535
|
return s < 0.5 ? 2 * s * s : -1 + (4 - 2 * s) * s;
|
|
2536
2536
|
}
|
|
2537
|
-
function
|
|
2537
|
+
function T(s) {
|
|
2538
2538
|
const t = s.getSelection();
|
|
2539
2539
|
t && t.removeAllRanges();
|
|
2540
2540
|
}
|
|
@@ -2562,7 +2562,7 @@ function Ae(s, t) {
|
|
|
2562
2562
|
return new H({
|
|
2563
2563
|
href: "#",
|
|
2564
2564
|
type: "application/xhtml+xml",
|
|
2565
|
-
locations: new
|
|
2565
|
+
locations: new O({
|
|
2566
2566
|
otherLocations: /* @__PURE__ */ new Map([
|
|
2567
2567
|
["cssSelector", i]
|
|
2568
2568
|
])
|
|
@@ -2667,7 +2667,7 @@ class ze {
|
|
|
2667
2667
|
this.history = [], this.consistentScrollCount = 0;
|
|
2668
2668
|
}
|
|
2669
2669
|
}
|
|
2670
|
-
const hi = "readium-column-snapper-style",
|
|
2670
|
+
const hi = "readium-column-snapper-style", Gn = 200, U = class U extends Et {
|
|
2671
2671
|
constructor() {
|
|
2672
2672
|
super(...arguments), this.isSnapProtectionEnabled = !1, this.patternAnalyzer = null, this.lastTurnTime = 0, this.shakeTimeout = 0, this.snappingCancelled = !1, this.alreadyScrollLeft = 0, this.overscroll = 0, this.cachedScrollWidth = 0, this.touchState = 0, this.startingX = void 0, this.endingX = void 0, this.onTouchStarter = this.onTouchStart.bind(this), this.onTouchEnder = this.onTouchEnd.bind(this), this.onWidthChanger = this.onWidthChange.bind(this), this.onTouchMover = this.onTouchMove.bind(this);
|
|
2673
2673
|
}
|
|
@@ -2711,16 +2711,16 @@ const hi = "readium-column-snapper-style", jn = 200, U = class U extends Et {
|
|
|
2711
2711
|
), h = this.snapOffset(a + c), u = h > this.scrollOffset() ? "right" : "left";
|
|
2712
2712
|
if (this.checkSuspiciousSnap(u, Math.abs(h - this.scrollOffset())), t && h !== this.scrollOffset()) {
|
|
2713
2713
|
this.snappingCancelled = !1;
|
|
2714
|
-
const m = (b,
|
|
2714
|
+
const m = (b, _, z, Q) => z > Q ? _ : b + (_ - b) * Fn(z / Q), y = (
|
|
2715
2715
|
/*Math.abs(startX - (this.useTransform ? currentOffset : 0)) < 10 ? 1 : */
|
|
2716
|
-
|
|
2716
|
+
Gn * o
|
|
2717
2717
|
);
|
|
2718
2718
|
let d;
|
|
2719
2719
|
const p = (b) => {
|
|
2720
2720
|
if (this.snappingCancelled) return;
|
|
2721
2721
|
d || (d = b);
|
|
2722
|
-
const
|
|
2723
|
-
n.scrollLeft = Q, this.overscroll !== 0 && (n.style.transform = `translate3d(${-
|
|
2722
|
+
const _ = b - d, z = m(this.overscroll, 0, _, y), Q = m(i, h, _, y);
|
|
2723
|
+
n.scrollLeft = Q, this.overscroll !== 0 && (n.style.transform = `translate3d(${-z}px, 0px, 0px)`), _ < y ? this.wnd.requestAnimationFrame(p) : (this.clearTouches(), n.style.removeProperty("transform"), n.scrollLeft = h, e || this.reportProgress());
|
|
2724
2724
|
};
|
|
2725
2725
|
this.wnd.requestAnimationFrame(p);
|
|
2726
2726
|
} else
|
|
@@ -2760,7 +2760,7 @@ const hi = "readium-column-snapper-style", jn = 200, U = class U extends Et {
|
|
|
2760
2760
|
}
|
|
2761
2761
|
onTouchMove(t) {
|
|
2762
2762
|
if (this.touchState === 0) return;
|
|
2763
|
-
this.touchState === 1 && (this.touchState = 2,
|
|
2763
|
+
this.touchState === 1 && (this.touchState = 2, T(this.wnd)), this.endingX = t.touches[0].clientX;
|
|
2764
2764
|
const e = this.dragOffset(), i = this.alreadyScrollLeft + e;
|
|
2765
2765
|
i < 0 ? (this.overscroll = i, this.doc().style.transform = `translate3d(${-this.overscroll}px, 0px, 0px)`) : i + this.wnd.innerWidth > this.cachedScrollWidth ? (this.overscroll = i, this.doc().style.transform = `translate3d(${-i}px, 0px, 0px)`) : (this.overscroll = 0, this.doc().style.removeProperty("transform"), this.doc().scrollLeft = this.alreadyScrollLeft + e);
|
|
2766
2766
|
}
|
|
@@ -2856,7 +2856,7 @@ const hi = "readium-column-snapper-style", jn = 200, U = class U extends Et {
|
|
|
2856
2856
|
this.wnd.requestAnimationFrame(() => {
|
|
2857
2857
|
this.cachedScrollWidth = this.doc().scrollWidth;
|
|
2858
2858
|
const l = this.cachedScrollWidth, c = nt(t) ? -1 : 1, h = l * a * c;
|
|
2859
|
-
this.doc().scrollLeft = this.snapOffset(h), this.reportProgress(),
|
|
2859
|
+
this.doc().scrollLeft = this.snapOffset(h), this.reportProgress(), T(this.wnd), o(!0);
|
|
2860
2860
|
});
|
|
2861
2861
|
}), e.register("go_id", U.moduleName, (r, o) => {
|
|
2862
2862
|
const a = t.document.getElementById(r);
|
|
@@ -2865,7 +2865,7 @@ const hi = "readium-column-snapper-style", jn = 200, U = class U extends Et {
|
|
|
2865
2865
|
return;
|
|
2866
2866
|
}
|
|
2867
2867
|
this.wnd.requestAnimationFrame(() => {
|
|
2868
|
-
this.doc().scrollLeft = this.snapOffset(a.getBoundingClientRect().left + t.scrollX), this.reportProgress(),
|
|
2868
|
+
this.doc().scrollLeft = this.snapOffset(a.getBoundingClientRect().left + t.scrollX), this.reportProgress(), T(this.wnd), o(!0);
|
|
2869
2869
|
});
|
|
2870
2870
|
}), e.register("go_text", U.moduleName, (r, o) => {
|
|
2871
2871
|
let a;
|
|
@@ -2874,7 +2874,7 @@ const hi = "readium-column-snapper-style", jn = 200, U = class U extends Et {
|
|
|
2874
2874
|
href: t.location.href,
|
|
2875
2875
|
type: "text/html",
|
|
2876
2876
|
text: l,
|
|
2877
|
-
locations: a ? new
|
|
2877
|
+
locations: a ? new O({
|
|
2878
2878
|
otherLocations: /* @__PURE__ */ new Map([
|
|
2879
2879
|
["cssSelector", a]
|
|
2880
2880
|
])
|
|
@@ -2885,7 +2885,7 @@ const hi = "readium-column-snapper-style", jn = 200, U = class U extends Et {
|
|
|
2885
2885
|
return;
|
|
2886
2886
|
}
|
|
2887
2887
|
this.wnd.requestAnimationFrame(() => {
|
|
2888
|
-
this.doc().scrollLeft = this.snapOffset(c.getBoundingClientRect().left + t.scrollX), this.reportProgress(),
|
|
2888
|
+
this.doc().scrollLeft = this.snapOffset(c.getBoundingClientRect().left + t.scrollX), this.reportProgress(), T(this.wnd), o(!0);
|
|
2889
2889
|
});
|
|
2890
2890
|
}), e.register("go_end", U.moduleName, (r, o) => {
|
|
2891
2891
|
const a = nt(t) ? -1 : 1;
|
|
@@ -2893,27 +2893,27 @@ const hi = "readium-column-snapper-style", jn = 200, U = class U extends Et {
|
|
|
2893
2893
|
this.cachedScrollWidth = this.doc().scrollWidth;
|
|
2894
2894
|
const l = this.cachedScrollWidth * a;
|
|
2895
2895
|
if (this.doc().scrollLeft === l) return o(!1);
|
|
2896
|
-
this.doc().scrollLeft = this.snapOffset(l), this.reportProgress(),
|
|
2896
|
+
this.doc().scrollLeft = this.snapOffset(l), this.reportProgress(), T(this.wnd), o(!0);
|
|
2897
2897
|
});
|
|
2898
2898
|
}), e.register("go_start", U.moduleName, (r, o) => {
|
|
2899
2899
|
this.wnd.requestAnimationFrame(() => {
|
|
2900
2900
|
if (this.doc().scrollLeft === 0) return o(!1);
|
|
2901
|
-
this.doc().scrollLeft = 0, this.reportProgress(),
|
|
2901
|
+
this.doc().scrollLeft = 0, this.reportProgress(), T(this.wnd), o(!0);
|
|
2902
2902
|
});
|
|
2903
2903
|
}), e.register("go_prev", U.moduleName, (r, o) => {
|
|
2904
2904
|
this.wnd.requestAnimationFrame(() => {
|
|
2905
2905
|
this.cachedScrollWidth = this.doc().scrollWidth;
|
|
2906
2906
|
const a = t.scrollX - t.innerWidth, l = nt(t) ? -(this.cachedScrollWidth - t.innerWidth) : 0, c = n(Math.max(a, l));
|
|
2907
|
-
c && (this.reportProgress(),
|
|
2907
|
+
c && (this.reportProgress(), T(this.wnd), this.checkSuspiciousSnap("left", this.wnd.innerWidth)), o(c);
|
|
2908
2908
|
});
|
|
2909
2909
|
}), e.register("go_next", U.moduleName, (r, o) => {
|
|
2910
2910
|
this.wnd.requestAnimationFrame(() => {
|
|
2911
2911
|
this.cachedScrollWidth = this.doc().scrollWidth;
|
|
2912
2912
|
const a = t.scrollX + t.innerWidth, l = nt(t) ? 0 : this.cachedScrollWidth - t.innerWidth, c = n(Math.min(a, l));
|
|
2913
|
-
c && (this.reportProgress(),
|
|
2913
|
+
c && (this.reportProgress(), T(this.wnd), this.checkSuspiciousSnap("right", this.wnd.innerWidth)), o(c);
|
|
2914
2914
|
});
|
|
2915
2915
|
}), e.register("unfocus", U.moduleName, (r, o) => {
|
|
2916
|
-
this.snappingCancelled = !0,
|
|
2916
|
+
this.snappingCancelled = !0, T(this.wnd), o(!0);
|
|
2917
2917
|
}), e.register("shake", U.moduleName, (r, o) => {
|
|
2918
2918
|
this.shake(), o(!0);
|
|
2919
2919
|
}), e.register("focus", U.moduleName, (r, o) => {
|
|
@@ -3008,7 +3008,7 @@ const ci = "readium-scroll-snapper-style", D = class D extends Et {
|
|
|
3008
3008
|
return;
|
|
3009
3009
|
}
|
|
3010
3010
|
this.wnd.requestAnimationFrame(() => {
|
|
3011
|
-
this.doc().scrollTop = this.doc().offsetHeight * o, this.reportProgress(),
|
|
3011
|
+
this.doc().scrollTop = this.doc().offsetHeight * o, this.reportProgress(), T(this.wnd), r(!0);
|
|
3012
3012
|
});
|
|
3013
3013
|
}), e.register("go_id", D.moduleName, (n, r) => {
|
|
3014
3014
|
const o = t.document.getElementById(n);
|
|
@@ -3017,7 +3017,7 @@ const ci = "readium-scroll-snapper-style", D = class D extends Et {
|
|
|
3017
3017
|
return;
|
|
3018
3018
|
}
|
|
3019
3019
|
this.wnd.requestAnimationFrame(() => {
|
|
3020
|
-
this.doc().scrollTop = o.getBoundingClientRect().top + t.scrollY - t.innerHeight / 2, this.reportProgress(),
|
|
3020
|
+
this.doc().scrollTop = o.getBoundingClientRect().top + t.scrollY - t.innerHeight / 2, this.reportProgress(), T(this.wnd), r(!0);
|
|
3021
3021
|
});
|
|
3022
3022
|
}), e.register("go_text", D.moduleName, (n, r) => {
|
|
3023
3023
|
let o;
|
|
@@ -3026,7 +3026,7 @@ const ci = "readium-scroll-snapper-style", D = class D extends Et {
|
|
|
3026
3026
|
href: t.location.href,
|
|
3027
3027
|
type: "text/html",
|
|
3028
3028
|
text: a,
|
|
3029
|
-
locations: o ? new
|
|
3029
|
+
locations: o ? new O({
|
|
3030
3030
|
otherLocations: /* @__PURE__ */ new Map([
|
|
3031
3031
|
["cssSelector", o]
|
|
3032
3032
|
])
|
|
@@ -3037,7 +3037,7 @@ const ci = "readium-scroll-snapper-style", D = class D extends Et {
|
|
|
3037
3037
|
return;
|
|
3038
3038
|
}
|
|
3039
3039
|
this.wnd.requestAnimationFrame(() => {
|
|
3040
|
-
this.doc().scrollTop = l.getBoundingClientRect().top + t.scrollY - t.innerHeight / 2, this.reportProgress(),
|
|
3040
|
+
this.doc().scrollTop = l.getBoundingClientRect().top + t.scrollY - t.innerHeight / 2, this.reportProgress(), T(this.wnd), r(!0);
|
|
3041
3041
|
});
|
|
3042
3042
|
}), e.register("go_start", D.moduleName, (n, r) => {
|
|
3043
3043
|
if (this.doc().scrollTop === 0) return r(!1);
|
|
@@ -3046,7 +3046,7 @@ const ci = "readium-scroll-snapper-style", D = class D extends Et {
|
|
|
3046
3046
|
if (this.doc().scrollTop === this.doc().scrollHeight - this.doc().offsetHeight) return r(!1);
|
|
3047
3047
|
this.doc().scrollTop = this.doc().scrollHeight - this.doc().offsetHeight, this.reportProgress(), r(!0);
|
|
3048
3048
|
}), e.register("unfocus", D.moduleName, (n, r) => {
|
|
3049
|
-
|
|
3049
|
+
T(this.wnd), r(!0);
|
|
3050
3050
|
}), e.register("scroll_protection", D.moduleName, (n, r) => {
|
|
3051
3051
|
this.enableScrollProtection(), r(!0);
|
|
3052
3052
|
}), e.register([
|
|
@@ -3131,7 +3131,7 @@ const I = class I extends Et {
|
|
|
3131
3131
|
return;
|
|
3132
3132
|
}
|
|
3133
3133
|
this.wnd.requestAnimationFrame(() => {
|
|
3134
|
-
this.doc().scrollTop = this.doc().offsetHeight * r, this.reportProgress(),
|
|
3134
|
+
this.doc().scrollTop = this.doc().offsetHeight * r, this.reportProgress(), T(this.wnd), n(!0);
|
|
3135
3135
|
});
|
|
3136
3136
|
}), e.register("go_id", I.moduleName, (i, n) => {
|
|
3137
3137
|
const r = t.document.getElementById(i);
|
|
@@ -3140,7 +3140,7 @@ const I = class I extends Et {
|
|
|
3140
3140
|
return;
|
|
3141
3141
|
}
|
|
3142
3142
|
this.wnd.requestAnimationFrame(() => {
|
|
3143
|
-
this.doc().scrollTop = r.getBoundingClientRect().top + t.scrollY - t.innerHeight / 2, this.reportProgress(),
|
|
3143
|
+
this.doc().scrollTop = r.getBoundingClientRect().top + t.scrollY - t.innerHeight / 2, this.reportProgress(), T(this.wnd), n(!0);
|
|
3144
3144
|
});
|
|
3145
3145
|
}), e.register("go_text", I.moduleName, (i, n) => {
|
|
3146
3146
|
let r;
|
|
@@ -3149,7 +3149,7 @@ const I = class I extends Et {
|
|
|
3149
3149
|
href: t.location.href,
|
|
3150
3150
|
type: "text/html",
|
|
3151
3151
|
text: o,
|
|
3152
|
-
locations: r ? new
|
|
3152
|
+
locations: r ? new O({
|
|
3153
3153
|
otherLocations: /* @__PURE__ */ new Map([
|
|
3154
3154
|
["cssSelector", r]
|
|
3155
3155
|
])
|
|
@@ -3160,7 +3160,7 @@ const I = class I extends Et {
|
|
|
3160
3160
|
return;
|
|
3161
3161
|
}
|
|
3162
3162
|
this.wnd.requestAnimationFrame(() => {
|
|
3163
|
-
this.doc().scrollTop = a.getBoundingClientRect().top + t.scrollY - t.innerHeight / 2, this.reportProgress(),
|
|
3163
|
+
this.doc().scrollTop = a.getBoundingClientRect().top + t.scrollY - t.innerHeight / 2, this.reportProgress(), T(this.wnd), n(!0);
|
|
3164
3164
|
});
|
|
3165
3165
|
}), e.register("go_start", I.moduleName, (i, n) => {
|
|
3166
3166
|
if (this.doc().scrollTop === 0) return n(!1);
|
|
@@ -3169,7 +3169,7 @@ const I = class I extends Et {
|
|
|
3169
3169
|
if (this.doc().scrollTop === this.doc().scrollHeight - this.doc().offsetHeight) return n(!1);
|
|
3170
3170
|
this.doc().scrollTop = this.doc().scrollHeight - this.doc().offsetHeight, this.reportProgress(), n(!0);
|
|
3171
3171
|
}), e.register("unfocus", I.moduleName, (i, n) => {
|
|
3172
|
-
|
|
3172
|
+
T(this.wnd), n(!0);
|
|
3173
3173
|
}), e.register("scroll_protection", I.moduleName, (i, n) => {
|
|
3174
3174
|
this.enableScrollProtection(), n(!0);
|
|
3175
3175
|
}), e.register([
|
|
@@ -3188,7 +3188,7 @@ const I = class I extends Et {
|
|
|
3188
3188
|
};
|
|
3189
3189
|
I.moduleName = "webpub_snapper";
|
|
3190
3190
|
let Se = I;
|
|
3191
|
-
class
|
|
3191
|
+
class jn {
|
|
3192
3192
|
constructor(t, e) {
|
|
3193
3193
|
this.window = t, this.copyHistory = [], this.lastSelectionLength = 0, this.lastSelectionTime = 0, this.options = e;
|
|
3194
3194
|
}
|
|
@@ -3270,7 +3270,7 @@ class $n {
|
|
|
3270
3270
|
this.events = [], this.selectionStartTime = 0, this.lastSelectionTime = 0, this.lastSelectionPosition = 0, this.selectionPatterns = [], this.lastSelectedText = "";
|
|
3271
3271
|
}
|
|
3272
3272
|
}
|
|
3273
|
-
class
|
|
3273
|
+
class Gi {
|
|
3274
3274
|
/**
|
|
3275
3275
|
* Checks if the given keyboard event matches any of the provided key combinations
|
|
3276
3276
|
*/
|
|
@@ -3350,7 +3350,7 @@ class ji {
|
|
|
3350
3350
|
}
|
|
3351
3351
|
const ut = class ut extends ft {
|
|
3352
3352
|
constructor() {
|
|
3353
|
-
super(...arguments), this.configApplied = !1, this.cleanupCallbacks = [], this.pointerMoved = !1, this.isContextMenuEnabled = !1, this.isDragAndDropEnabled = !1, this.isSelectionMonitoringEnabled = !1, this.isBulkCopyProtectionEnabled = !1, this.selectionAnalyzer = null, this.currentSelection = null, this.bulkCopyProtector = null, this.keyManager = new
|
|
3353
|
+
super(...arguments), this.configApplied = !1, this.cleanupCallbacks = [], this.pointerMoved = !1, this.isContextMenuEnabled = !1, this.isDragAndDropEnabled = !1, this.isSelectionMonitoringEnabled = !1, this.isBulkCopyProtectionEnabled = !1, this.selectionAnalyzer = null, this.currentSelection = null, this.bulkCopyProtector = null, this.keyManager = new Gi(), this.keyDownHandler = null, this.preventBulkCopy = (t) => {
|
|
3354
3354
|
if (!this.isBulkCopyProtectionEnabled || !this.bulkCopyProtector)
|
|
3355
3355
|
return !0;
|
|
3356
3356
|
if (!this.bulkCopyProtector.shouldAllowCopy(t)) {
|
|
@@ -3472,7 +3472,7 @@ const ut = class ut extends ft {
|
|
|
3472
3472
|
addBulkCopyProtection(t = {}) {
|
|
3473
3473
|
if (this.isBulkCopyProtectionEnabled || !this.wnd) return;
|
|
3474
3474
|
const e = Vn, i = t ? { ...e, ...t } : e;
|
|
3475
|
-
this.bulkCopyProtector = new
|
|
3475
|
+
this.bulkCopyProtector = new jn(this.wnd, i), this.wnd.document.addEventListener("copy", this.preventBulkCopy, !0), this.wnd.document.addEventListener("cut", this.preventBulkCopy, !0), this.isBulkCopyProtectionEnabled = !0;
|
|
3476
3476
|
}
|
|
3477
3477
|
removeBulkCopyProtection() {
|
|
3478
3478
|
!this.isBulkCopyProtectionEnabled || !this.wnd || (this.wnd.document.removeEventListener("copy", this.preventBulkCopy, !0), this.wnd.document.removeEventListener("cut", this.preventBulkCopy, !0), this.bulkCopyProtector?.destroy(), this.bulkCopyProtector = null, this.isBulkCopyProtectionEnabled = !1);
|
|
@@ -3622,7 +3622,7 @@ const _t = class _t extends ft {
|
|
|
3622
3622
|
), Reflect.defineProperty(t.navigator, "epubReadingSystem", {
|
|
3623
3623
|
value: {
|
|
3624
3624
|
name: "readium-ts-toolkit",
|
|
3625
|
-
version: "2.4.0-alpha.
|
|
3625
|
+
version: "2.4.0-alpha.4",
|
|
3626
3626
|
hasFeature: (n, r = "") => {
|
|
3627
3627
|
switch (n) {
|
|
3628
3628
|
case "dom-manipulation":
|
|
@@ -3726,7 +3726,7 @@ const ui = "readium-fixed-style", $ = class $ extends Ht {
|
|
|
3726
3726
|
}), e.register("remove_property", $.moduleName, (n, r) => {
|
|
3727
3727
|
te(t, n), r(!0);
|
|
3728
3728
|
}), e.register("first_visible_locator", $.moduleName, (n, r) => r(!1)), e.register("unfocus", $.moduleName, (n, r) => {
|
|
3729
|
-
|
|
3729
|
+
T(t), r(!0);
|
|
3730
3730
|
}), e.register([
|
|
3731
3731
|
"focus",
|
|
3732
3732
|
"go_next",
|
|
@@ -3979,7 +3979,7 @@ class er {
|
|
|
3979
3979
|
return i;
|
|
3980
3980
|
}
|
|
3981
3981
|
}
|
|
3982
|
-
class
|
|
3982
|
+
class ji extends er {
|
|
3983
3983
|
/**
|
|
3984
3984
|
* Moves to the left content portion (eg. page) relative to the reading progression direction.
|
|
3985
3985
|
*/
|
|
@@ -4243,7 +4243,7 @@ class ar extends Yi {
|
|
|
4243
4243
|
return /\(iPad;/.test(e) || t && /^iPad(OS)?$/.test(t.platform) ? "mobile" : "desktop";
|
|
4244
4244
|
}
|
|
4245
4245
|
}
|
|
4246
|
-
const Y = new Yi(),
|
|
4246
|
+
const Y = new Yi(), L = new ar();
|
|
4247
4247
|
class lr {
|
|
4248
4248
|
constructor(t, e = {}, i = []) {
|
|
4249
4249
|
this.hidden = !0, this.destroyed = !1, this.currModules = [], this.frame = document.createElement("iframe"), this.frame.classList.add("readium-navigator-iframe"), this.frame.style.visibility = "hidden", this.frame.style.setProperty("aria-hidden", "true"), this.frame.style.opacity = "0", this.frame.style.position = "absolute", this.frame.style.pointerEvents = "none", this.frame.style.transition = "visibility 0s, opacity 0.1s linear", this.frame.style.backgroundColor = "#FFFFFF", this.source = t, this.contentProtectionConfig = { ...e }, this.keyboardPeripheralsConfig = [...i];
|
|
@@ -4371,22 +4371,22 @@ class hr {
|
|
|
4371
4371
|
}), this.blobs.clear()), this.currentBaseURL = t.baseURL;
|
|
4372
4372
|
const m = async (d) => {
|
|
4373
4373
|
if (this.pendingUpdates.has(d) && this.pendingUpdates.get(d)?.inPool === !1) {
|
|
4374
|
-
const
|
|
4375
|
-
|
|
4374
|
+
const _ = this.blobs.get(d);
|
|
4375
|
+
_ && (this.injector?.releaseBlobUrl?.(_), URL.revokeObjectURL(_), this.blobs.delete(d), this.pendingUpdates.delete(d));
|
|
4376
4376
|
}
|
|
4377
4377
|
if (this.pool.has(d)) {
|
|
4378
|
-
const
|
|
4378
|
+
const _ = this.pool.get(d);
|
|
4379
4379
|
if (!this.blobs.has(d))
|
|
4380
|
-
await
|
|
4380
|
+
await _.destroy(), this.pool.delete(d), this.pendingUpdates.delete(d);
|
|
4381
4381
|
else {
|
|
4382
|
-
await
|
|
4382
|
+
await _.load(i);
|
|
4383
4383
|
return;
|
|
4384
4384
|
}
|
|
4385
4385
|
}
|
|
4386
4386
|
const p = t.readingOrder.findWithHref(d);
|
|
4387
4387
|
if (!p) return;
|
|
4388
4388
|
if (!this.blobs.has(d)) {
|
|
4389
|
-
const
|
|
4389
|
+
const z = await new ir(
|
|
4390
4390
|
t,
|
|
4391
4391
|
this.currentBaseURL || "",
|
|
4392
4392
|
p,
|
|
@@ -4395,7 +4395,7 @@ class hr {
|
|
|
4395
4395
|
injector: this.injector
|
|
4396
4396
|
}
|
|
4397
4397
|
).build();
|
|
4398
|
-
this.blobs.set(d,
|
|
4398
|
+
this.blobs.set(d, z);
|
|
4399
4399
|
}
|
|
4400
4400
|
const b = new lr(this.blobs.get(d), this.contentProtectionConfig, this.keyboardPeripheralsConfig);
|
|
4401
4401
|
d !== o && await b.hide(), this.container.appendChild(b.iframe), await b.load(i), this.pool.set(d, b);
|
|
@@ -4536,15 +4536,15 @@ function cr() {
|
|
|
4536
4536
|
} else c > y && (r.charCodeAt(a + p) === 47 ? d = p : p === 0 && (d = 0));
|
|
4537
4537
|
break;
|
|
4538
4538
|
}
|
|
4539
|
-
var b = r.charCodeAt(a + p),
|
|
4540
|
-
if (b !==
|
|
4539
|
+
var b = r.charCodeAt(a + p), _ = o.charCodeAt(h + p);
|
|
4540
|
+
if (b !== _)
|
|
4541
4541
|
break;
|
|
4542
4542
|
b === 47 && (d = p);
|
|
4543
4543
|
}
|
|
4544
|
-
var
|
|
4544
|
+
var z = "";
|
|
4545
4545
|
for (p = a + d + 1; p <= l; ++p)
|
|
4546
|
-
(p === l || r.charCodeAt(p) === 47) && (
|
|
4547
|
-
return
|
|
4546
|
+
(p === l || r.charCodeAt(p) === 47) && (z.length === 0 ? z += ".." : z += "/..");
|
|
4547
|
+
return z.length > 0 ? z + o.slice(h + d) : (h += d, o.charCodeAt(h) === 47 && ++h, o.slice(h));
|
|
4548
4548
|
},
|
|
4549
4549
|
_makeLong: function(r) {
|
|
4550
4550
|
return r;
|
|
@@ -4648,13 +4648,13 @@ var J = /* @__PURE__ */ ((s) => (s.start = "start", s.left = "left", s.right = "
|
|
|
4648
4648
|
const ot = {
|
|
4649
4649
|
range: [0, 100],
|
|
4650
4650
|
step: 1
|
|
4651
|
-
},
|
|
4651
|
+
}, Gt = {
|
|
4652
4652
|
range: [0.7, 4],
|
|
4653
4653
|
step: 0.05
|
|
4654
4654
|
}, it = {
|
|
4655
4655
|
range: [100, 1e3],
|
|
4656
4656
|
step: 100
|
|
4657
|
-
},
|
|
4657
|
+
}, jt = {
|
|
4658
4658
|
range: [50, 250],
|
|
4659
4659
|
step: 10
|
|
4660
4660
|
}, $t = {
|
|
@@ -4771,7 +4771,7 @@ function ie(s, t) {
|
|
|
4771
4771
|
function pt(s) {
|
|
4772
4772
|
return typeof s == "boolean" || typeof s == "number" && s >= 0 ? s : s === null ? null : void 0;
|
|
4773
4773
|
}
|
|
4774
|
-
function
|
|
4774
|
+
function v(s) {
|
|
4775
4775
|
if (s !== void 0)
|
|
4776
4776
|
return s === null ? null : s < 0 ? void 0 : s;
|
|
4777
4777
|
}
|
|
@@ -4792,7 +4792,7 @@ function Ki(s) {
|
|
|
4792
4792
|
}
|
|
4793
4793
|
class xt {
|
|
4794
4794
|
constructor(t = {}) {
|
|
4795
|
-
this.fontFamily = N(t.fontFamily), this.fontWeight = q(t.fontWeight, it.range), this.hyphens = P(t.hyphens), this.iOSPatch = P(t.iOSPatch), this.iPadOSPatch = P(t.iPadOSPatch), this.letterSpacing =
|
|
4795
|
+
this.fontFamily = N(t.fontFamily), this.fontWeight = q(t.fontWeight, it.range), this.hyphens = P(t.hyphens), this.iOSPatch = P(t.iOSPatch), this.iPadOSPatch = P(t.iPadOSPatch), this.letterSpacing = v(t.letterSpacing), this.ligatures = P(t.ligatures), this.lineHeight = v(t.lineHeight), this.noRuby = P(t.noRuby), this.paragraphIndent = v(t.paragraphIndent), this.paragraphSpacing = v(t.paragraphSpacing), this.textAlign = ie(t.textAlign, J), this.textNormalization = P(t.textNormalization), this.wordSpacing = v(t.wordSpacing), this.zoom = q(t.zoom, Zt.range);
|
|
4796
4796
|
}
|
|
4797
4797
|
static serialize(t) {
|
|
4798
4798
|
const { ...e } = t;
|
|
@@ -4815,15 +4815,15 @@ class xt {
|
|
|
4815
4815
|
}
|
|
4816
4816
|
class Sr {
|
|
4817
4817
|
constructor(t) {
|
|
4818
|
-
this.fontFamily = N(t.fontFamily) || null, this.fontWeight = q(t.fontWeight, it.range) || null, this.hyphens = P(t.hyphens) ?? null, this.iOSPatch = t.iOSPatch === !1 ? !1 : (
|
|
4818
|
+
this.fontFamily = N(t.fontFamily) || null, this.fontWeight = q(t.fontWeight, it.range) || null, this.hyphens = P(t.hyphens) ?? null, this.iOSPatch = t.iOSPatch === !1 ? !1 : (L.OS.iOS || L.OS.iPadOS) && L.iOSRequest === "mobile", this.iPadOSPatch = t.iPadOSPatch === !1 ? !1 : L.OS.iPadOS && L.iOSRequest === "desktop", this.letterSpacing = v(t.letterSpacing) || null, this.ligatures = P(t.ligatures) ?? null, this.lineHeight = v(t.lineHeight) || null, this.noRuby = P(t.noRuby) ?? !1, this.paragraphIndent = v(t.paragraphIndent) ?? null, this.paragraphSpacing = v(t.paragraphSpacing) ?? null, this.textAlign = ie(t.textAlign, J) || null, this.textNormalization = P(t.textNormalization) ?? !1, this.wordSpacing = v(t.wordSpacing) || null, this.zoom = q(t.zoom, Zt.range) || 1, this.experiments = Ki(t.experiments) ?? null;
|
|
4819
4819
|
}
|
|
4820
4820
|
}
|
|
4821
4821
|
class gi {
|
|
4822
4822
|
constructor(t, e, i) {
|
|
4823
|
-
this.fontFamily = null, this.fontWeight = null, this.hyphens = null, this.iOSPatch = null, this.iPadOSPatch = null, this.letterSpacing = null, this.ligatures = null, this.lineHeight = null, this.noRuby = null, this.paragraphIndent = null, this.paragraphSpacing = null, this.textAlign = null, this.textNormalization = null, this.wordSpacing = null, i && (this.fontFamily = t.fontFamily || e.fontFamily || null, this.fontWeight = t.fontWeight !== void 0 ? t.fontWeight : e.fontWeight !== void 0 ? e.fontWeight : null, this.hyphens = typeof t.hyphens == "boolean" ? t.hyphens : e.hyphens ?? null, this.iOSPatch = t.iOSPatch === !1 ? !1 : t.iOSPatch === !0 ? (
|
|
4823
|
+
this.fontFamily = null, this.fontWeight = null, this.hyphens = null, this.iOSPatch = null, this.iPadOSPatch = null, this.letterSpacing = null, this.ligatures = null, this.lineHeight = null, this.noRuby = null, this.paragraphIndent = null, this.paragraphSpacing = null, this.textAlign = null, this.textNormalization = null, this.wordSpacing = null, i && (this.fontFamily = t.fontFamily || e.fontFamily || null, this.fontWeight = t.fontWeight !== void 0 ? t.fontWeight : e.fontWeight !== void 0 ? e.fontWeight : null, this.hyphens = typeof t.hyphens == "boolean" ? t.hyphens : e.hyphens ?? null, this.iOSPatch = t.iOSPatch === !1 ? !1 : t.iOSPatch === !0 ? (L.OS.iOS || L.OS.iPadOS) && L.iOSRequest === "mobile" : e.iOSPatch, this.iPadOSPatch = t.iPadOSPatch === !1 ? !1 : t.iPadOSPatch === !0 ? L.OS.iPadOS && L.iOSRequest === "desktop" : e.iPadOSPatch, this.letterSpacing = t.letterSpacing !== void 0 ? t.letterSpacing : e.letterSpacing !== void 0 ? e.letterSpacing : null, this.ligatures = typeof t.ligatures == "boolean" ? t.ligatures : e.ligatures ?? null, this.lineHeight = t.lineHeight !== void 0 ? t.lineHeight : e.lineHeight !== void 0 ? e.lineHeight : null, this.noRuby = typeof t.noRuby == "boolean" ? t.noRuby : e.noRuby ?? null, this.paragraphIndent = t.paragraphIndent !== void 0 ? t.paragraphIndent : e.paragraphIndent !== void 0 ? e.paragraphIndent : null, this.paragraphSpacing = t.paragraphSpacing !== void 0 ? t.paragraphSpacing : e.paragraphSpacing !== void 0 ? e.paragraphSpacing : null, this.textAlign = t.textAlign || e.textAlign || null, this.textNormalization = typeof t.textNormalization == "boolean" ? t.textNormalization : e.textNormalization ?? null, this.wordSpacing = t.wordSpacing !== void 0 ? t.wordSpacing : e.wordSpacing !== void 0 ? e.wordSpacing : null), this.zoom = t.zoom !== void 0 ? t.zoom : e.zoom !== void 0 ? e.zoom : null, this.experiments = e.experiments || null;
|
|
4824
4824
|
}
|
|
4825
4825
|
}
|
|
4826
|
-
class
|
|
4826
|
+
class k {
|
|
4827
4827
|
constructor({
|
|
4828
4828
|
initialValue: t = null,
|
|
4829
4829
|
effectiveValue: e,
|
|
@@ -4848,7 +4848,7 @@ class T {
|
|
|
4848
4848
|
this._value = null;
|
|
4849
4849
|
}
|
|
4850
4850
|
}
|
|
4851
|
-
class
|
|
4851
|
+
class A extends k {
|
|
4852
4852
|
set value(t) {
|
|
4853
4853
|
this._value = t, this._onChange(this._value);
|
|
4854
4854
|
}
|
|
@@ -4868,7 +4868,7 @@ class z extends T {
|
|
|
4868
4868
|
this._value = !this._value, this._onChange(this._value);
|
|
4869
4869
|
}
|
|
4870
4870
|
}
|
|
4871
|
-
class Zi extends
|
|
4871
|
+
class Zi extends k {
|
|
4872
4872
|
constructor({
|
|
4873
4873
|
initialValue: t = null,
|
|
4874
4874
|
effectiveValue: e,
|
|
@@ -4899,7 +4899,7 @@ class Zi extends T {
|
|
|
4899
4899
|
this._value = null;
|
|
4900
4900
|
}
|
|
4901
4901
|
}
|
|
4902
|
-
class R extends
|
|
4902
|
+
class R extends k {
|
|
4903
4903
|
constructor({
|
|
4904
4904
|
initialValue: t = null,
|
|
4905
4905
|
effectiveValue: e,
|
|
@@ -4965,7 +4965,7 @@ class fi {
|
|
|
4965
4965
|
) ?? !1;
|
|
4966
4966
|
}
|
|
4967
4967
|
get fontFamily() {
|
|
4968
|
-
return new
|
|
4968
|
+
return new k({
|
|
4969
4969
|
initialValue: this.preferences.fontFamily,
|
|
4970
4970
|
effectiveValue: this.settings.fontFamily || null,
|
|
4971
4971
|
isEffective: this.isDisplayTransformable,
|
|
@@ -4987,7 +4987,7 @@ class fi {
|
|
|
4987
4987
|
});
|
|
4988
4988
|
}
|
|
4989
4989
|
get hyphens() {
|
|
4990
|
-
return new
|
|
4990
|
+
return new A({
|
|
4991
4991
|
initialValue: this.preferences.hyphens,
|
|
4992
4992
|
effectiveValue: this.settings.hyphens || !1,
|
|
4993
4993
|
isEffective: this.isDisplayTransformable,
|
|
@@ -4997,7 +4997,7 @@ class fi {
|
|
|
4997
4997
|
});
|
|
4998
4998
|
}
|
|
4999
4999
|
get iOSPatch() {
|
|
5000
|
-
return new
|
|
5000
|
+
return new A({
|
|
5001
5001
|
initialValue: this.preferences.iOSPatch,
|
|
5002
5002
|
effectiveValue: this.settings.iOSPatch || !1,
|
|
5003
5003
|
isEffective: !0,
|
|
@@ -5007,7 +5007,7 @@ class fi {
|
|
|
5007
5007
|
});
|
|
5008
5008
|
}
|
|
5009
5009
|
get iPadOSPatch() {
|
|
5010
|
-
return new
|
|
5010
|
+
return new A({
|
|
5011
5011
|
initialValue: this.preferences.iPadOSPatch,
|
|
5012
5012
|
effectiveValue: this.settings.iPadOSPatch || !1,
|
|
5013
5013
|
isEffective: !0,
|
|
@@ -5029,7 +5029,7 @@ class fi {
|
|
|
5029
5029
|
});
|
|
5030
5030
|
}
|
|
5031
5031
|
get ligatures() {
|
|
5032
|
-
return new
|
|
5032
|
+
return new A({
|
|
5033
5033
|
initialValue: this.preferences.ligatures,
|
|
5034
5034
|
effectiveValue: this.settings.ligatures || !0,
|
|
5035
5035
|
isEffective: this.isDisplayTransformable,
|
|
@@ -5051,7 +5051,7 @@ class fi {
|
|
|
5051
5051
|
});
|
|
5052
5052
|
}
|
|
5053
5053
|
get noRuby() {
|
|
5054
|
-
return new
|
|
5054
|
+
return new A({
|
|
5055
5055
|
initialValue: this.preferences.noRuby,
|
|
5056
5056
|
effectiveValue: this.settings.noRuby || !1,
|
|
5057
5057
|
isEffective: this.isDisplayTransformable,
|
|
@@ -5096,7 +5096,7 @@ class fi {
|
|
|
5096
5096
|
});
|
|
5097
5097
|
}
|
|
5098
5098
|
get textNormalization() {
|
|
5099
|
-
return new
|
|
5099
|
+
return new A({
|
|
5100
5100
|
initialValue: this.preferences.textNormalization,
|
|
5101
5101
|
effectiveValue: this.settings.textNormalization || !1,
|
|
5102
5102
|
isEffective: this.isDisplayTransformable,
|
|
@@ -6007,7 +6007,7 @@ class rn {
|
|
|
6007
6007
|
const Lt = "readium:navigator:keyboardPeripheral";
|
|
6008
6008
|
class sn {
|
|
6009
6009
|
constructor(t = {}) {
|
|
6010
|
-
this.keyManager = new
|
|
6010
|
+
this.keyManager = new Gi(), this.setupKeyboardPeripherals(t.keyboardPeripherals || []);
|
|
6011
6011
|
}
|
|
6012
6012
|
setupKeyboardPeripherals(t) {
|
|
6013
6013
|
if (t.length > 0) {
|
|
@@ -6053,7 +6053,7 @@ const Mr = (s) => ({
|
|
|
6053
6053
|
peripheral: s.peripheral || (() => {
|
|
6054
6054
|
})
|
|
6055
6055
|
});
|
|
6056
|
-
class Ur extends
|
|
6056
|
+
class Ur extends ji {
|
|
6057
6057
|
constructor(t, e, i, n = void 0, r = { preferences: {}, defaults: {} }) {
|
|
6058
6058
|
super(), this.currentIndex = 0, this._preferencesEditor = null, this._injector = null, this._navigatorProtector = null, this._keyboardPeripheralsManager = null, this._suspiciousActivityListener = null, this._keyboardPeripheralListener = null, this.webViewport = {
|
|
6059
6059
|
readingOrder: [],
|
|
@@ -6355,7 +6355,7 @@ class Ur extends Gi {
|
|
|
6355
6355
|
return this.pub.manifest.locatorFromLink(e) || new H({
|
|
6356
6356
|
href: e.href,
|
|
6357
6357
|
type: e.type || "text/html",
|
|
6358
|
-
locations: new
|
|
6358
|
+
locations: new O({
|
|
6359
6359
|
fragments: [],
|
|
6360
6360
|
progression: n,
|
|
6361
6361
|
position: this.currentIndex + 1
|
|
@@ -6392,29 +6392,37 @@ class on {
|
|
|
6392
6392
|
constructor(t, e, i, n) {
|
|
6393
6393
|
this.pub = t, this.baseURL = e, this.item = i, this.injector = null, this.item = i, this.cssProperties = n.cssProperties, this.injector = n.injector ?? null;
|
|
6394
6394
|
}
|
|
6395
|
+
reset() {
|
|
6396
|
+
this.currentUrl && URL.revokeObjectURL(this.currentUrl), this.currentUrl = void 0, this.currentResource?.close(), this.currentResource = void 0;
|
|
6397
|
+
}
|
|
6395
6398
|
async build(t = !1) {
|
|
6396
|
-
|
|
6397
|
-
|
|
6398
|
-
|
|
6399
|
-
if (e.mediaType.
|
|
6400
|
-
|
|
6401
|
-
|
|
6399
|
+
if (this.currentUrl) return this.currentUrl;
|
|
6400
|
+
this.currentResource = this.pub.get(this.item);
|
|
6401
|
+
const e = await this.currentResource.link();
|
|
6402
|
+
if (e.mediaType.isHTML) {
|
|
6403
|
+
const i = await this.buildHtmlFrame(t);
|
|
6404
|
+
return this.currentUrl = i, i;
|
|
6405
|
+
} else if (e.mediaType.isBitmap || e.mediaType.equals(g.SVG)) {
|
|
6406
|
+
const i = await this.buildImageFrame();
|
|
6407
|
+
return this.currentUrl = i, i;
|
|
6408
|
+
} else
|
|
6409
|
+
throw Error("Unsupported frame mediatype " + e.mediaType.string);
|
|
6402
6410
|
}
|
|
6403
6411
|
async buildHtmlFrame(t = !1) {
|
|
6404
|
-
const e = this.
|
|
6405
|
-
if (!
|
|
6406
|
-
const
|
|
6407
|
-
|
|
6408
|
-
|
|
6409
|
-
),
|
|
6410
|
-
if (
|
|
6411
|
-
const
|
|
6412
|
-
throw new Error(`Failed parsing item ${
|
|
6412
|
+
const e = await this.currentResource.link(), i = await this.currentResource.readAsString();
|
|
6413
|
+
if (!i) throw new Error(`Failed reading item ${e.href}`);
|
|
6414
|
+
const n = new DOMParser().parseFromString(
|
|
6415
|
+
i,
|
|
6416
|
+
e.mediaType.string
|
|
6417
|
+
), r = n.querySelector("parsererror");
|
|
6418
|
+
if (r) {
|
|
6419
|
+
const o = r.querySelector("div");
|
|
6420
|
+
throw new Error(`Failed parsing item ${e.href}: ${o?.textContent || r.textContent}`);
|
|
6413
6421
|
}
|
|
6414
|
-
return this.injector && await this.injector.injectForDocument(
|
|
6422
|
+
return this.injector && await this.injector.injectForDocument(n, e), this.finalizeDOM(n, this.pub.baseURL, e.toURL(this.baseURL) || "", e.mediaType, t, this.cssProperties);
|
|
6415
6423
|
}
|
|
6416
6424
|
async buildImageFrame() {
|
|
6417
|
-
const t = await this.
|
|
6425
|
+
const t = await this.currentResource.link(), e = t.toURL(this.baseURL) || "", i = document.implementation.createHTMLDocument(t.title || t.href);
|
|
6418
6426
|
if ((t?.height || 0) > 0 && (t?.width || 0) > 0) {
|
|
6419
6427
|
const o = i.createElement("meta");
|
|
6420
6428
|
o.name = "viewport", o.content = `width=${t.width}, height=${t.height}`, o.dataset.readium = "true", i.head.appendChild(o);
|
|
@@ -6578,9 +6586,7 @@ class Dr {
|
|
|
6578
6586
|
let n = this.pool.values(), r = n.next();
|
|
6579
6587
|
for (; r.value; )
|
|
6580
6588
|
await r.value.destroy(), r = n.next();
|
|
6581
|
-
this.pool.clear(), this.blobs.forEach((o) => {
|
|
6582
|
-
this.injector?.releaseBlobUrl?.(o), URL.revokeObjectURL(o);
|
|
6583
|
-
}), this.injector?.dispose(), this.container.childNodes.forEach((o) => {
|
|
6589
|
+
this.pool.clear(), this.blobs.forEach((o) => o.reset()), this.blobs.clear(), this.injector?.dispose(), this.container.childNodes.forEach((o) => {
|
|
6584
6590
|
(o.nodeType === Node.ELEMENT_NODE || o.nodeType === Node.TEXT_NODE) && o.remove();
|
|
6585
6591
|
});
|
|
6586
6592
|
}
|
|
@@ -6595,40 +6601,33 @@ class Dr {
|
|
|
6595
6601
|
(p > r + wi || p < r - wi) && (h.includes(d.href) || h.push(d.href)), p < r + vi && p > r - vi && (u.includes(d.href) || u.push(d.href));
|
|
6596
6602
|
}), h.forEach(async (d) => {
|
|
6597
6603
|
u.includes(d) || this.pool.has(d) && (await this.pool.get(d)?.destroy(), this.pool.delete(d), this.pendingUpdates.has(d) && this.pendingUpdates.set(d, { inPool: !1 }));
|
|
6598
|
-
}), this.currentBaseURL !== void 0 && t.baseURL !== this.currentBaseURL && (this.blobs.forEach((d) =>
|
|
6599
|
-
this.injector?.releaseBlobUrl?.(d), URL.revokeObjectURL(d);
|
|
6600
|
-
}), this.blobs.clear()), this.currentBaseURL = t.baseURL;
|
|
6604
|
+
}), this.currentBaseURL !== void 0 && t.baseURL !== this.currentBaseURL && (this.blobs.forEach((d) => d.reset()), this.blobs.clear()), this.currentBaseURL = t.baseURL;
|
|
6601
6605
|
const m = async (d) => {
|
|
6602
|
-
if (n && (this.blobs.forEach((
|
|
6603
|
-
this.
|
|
6604
|
-
|
|
6605
|
-
const w = this.blobs.get(d);
|
|
6606
|
-
w && (this.injector?.releaseBlobUrl?.(w), URL.revokeObjectURL(w), this.blobs.delete(d), this.pendingUpdates.delete(d));
|
|
6606
|
+
if (n && (this.blobs.forEach((_) => _.reset()), this.blobs.clear(), this.pendingUpdates.clear()), this.pendingUpdates.has(d) && this.pendingUpdates.get(d)?.inPool === !1) {
|
|
6607
|
+
const _ = this.blobs.get(d);
|
|
6608
|
+
_ && (_.reset(), this.blobs.delete(d), this.pendingUpdates.delete(d));
|
|
6607
6609
|
}
|
|
6608
6610
|
if (this.pool.has(d)) {
|
|
6609
|
-
const
|
|
6611
|
+
const _ = this.pool.get(d);
|
|
6610
6612
|
if (!this.blobs.has(d))
|
|
6611
|
-
await
|
|
6613
|
+
await _.destroy(), this.pool.delete(d), this.pendingUpdates.delete(d);
|
|
6612
6614
|
else {
|
|
6613
|
-
await
|
|
6615
|
+
await _.load(i);
|
|
6614
6616
|
return;
|
|
6615
6617
|
}
|
|
6616
6618
|
}
|
|
6617
6619
|
const p = t.readingOrder.findWithHref(d);
|
|
6618
6620
|
if (!p) return;
|
|
6619
|
-
|
|
6620
|
-
|
|
6621
|
-
|
|
6622
|
-
|
|
6623
|
-
|
|
6624
|
-
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
|
|
6628
|
-
|
|
6629
|
-
this.blobs.set(d, L);
|
|
6630
|
-
}
|
|
6631
|
-
const b = new Fr(this.blobs.get(d), this.contentProtectionConfig, this.keyboardPeripheralsConfig);
|
|
6621
|
+
this.blobs.has(d) || this.blobs.set(d, new on(
|
|
6622
|
+
t,
|
|
6623
|
+
this.currentBaseURL || "",
|
|
6624
|
+
p,
|
|
6625
|
+
{
|
|
6626
|
+
cssProperties: this.currentCssProperties,
|
|
6627
|
+
injector: this.injector
|
|
6628
|
+
}
|
|
6629
|
+
));
|
|
6630
|
+
const b = new Fr(await this.blobs.get(d).build(), this.contentProtectionConfig, this.keyboardPeripheralsConfig);
|
|
6632
6631
|
d !== o && await b.hide(), this.container.appendChild(b.iframe), await b.load(i), this.pool.set(d, b);
|
|
6633
6632
|
};
|
|
6634
6633
|
try {
|
|
@@ -6744,10 +6743,10 @@ class Ir {
|
|
|
6744
6743
|
const i = Math.min(this.wrapper.clientWidth / e.width, this.wrapper.clientHeight / e.height);
|
|
6745
6744
|
this.frame.style.transform = `scale(${i})`;
|
|
6746
6745
|
const n = this.frame.getBoundingClientRect(), r = this.wrapper.clientHeight - n.height;
|
|
6747
|
-
if (this.frame.style.top = `${r / 2}px`, t ===
|
|
6746
|
+
if (this.frame.style.top = `${r / 2}px`, t === G.left) {
|
|
6748
6747
|
const o = this.wrapper.clientWidth - n.width;
|
|
6749
6748
|
this.frame.style.left = `${o}px`;
|
|
6750
|
-
} else if (t ===
|
|
6749
|
+
} else if (t === G.center) {
|
|
6751
6750
|
const o = this.wrapper.clientWidth - n.width;
|
|
6752
6751
|
this.frame.style.left = `${o / 2}px`;
|
|
6753
6752
|
} else
|
|
@@ -6916,7 +6915,7 @@ class Vr {
|
|
|
6916
6915
|
}
|
|
6917
6916
|
}
|
|
6918
6917
|
const _i = 6, he = 1.02, Pi = 50;
|
|
6919
|
-
class
|
|
6918
|
+
class Gr {
|
|
6920
6919
|
constructor(t, e = !1) {
|
|
6921
6920
|
this.dragState = 0, this.minimumMoved = !1, this.pan = {
|
|
6922
6921
|
startX: 0,
|
|
@@ -7137,7 +7136,7 @@ Overscroll: ${this.pan.overscrollX.toFixed(2)},${this.pan.overscrollY.toFixed(2)
|
|
|
7137
7136
|
}
|
|
7138
7137
|
}
|
|
7139
7138
|
var Pe = /* @__PURE__ */ ((s) => (s.auto = "auto", s.landscape = "landscape", s.portrait = "portrait", s))(Pe || {}), Ee = /* @__PURE__ */ ((s) => (s.auto = "auto", s.both = "both", s.none = "none", s.landscape = "landscape", s))(Ee || {});
|
|
7140
|
-
class
|
|
7139
|
+
class jr {
|
|
7141
7140
|
// TODO getter
|
|
7142
7141
|
constructor(t) {
|
|
7143
7142
|
this.shift = !0, this.spreads = [], this.nLandscape = 0, this.index(t), this.testShift(t), console.log(`Indexed ${this.spreads.length} spreads for ${t.readingOrder.items.length} items`);
|
|
@@ -7166,13 +7165,13 @@ class Gr {
|
|
|
7166
7165
|
if (i.length > 1)
|
|
7167
7166
|
return;
|
|
7168
7167
|
const r = i[0], o = r.properties?.otherProperties.orientation;
|
|
7169
|
-
n === 0 && (o === "landscape" || o !== "portrait" && ((r.width || 0) > (r.height || 0) || r.properties?.otherProperties.spread === "both")) && (this.shift = !1), e && r.properties?.page ===
|
|
7168
|
+
n === 0 && (o === "landscape" || o !== "portrait" && ((r.width || 0) > (r.height || 0) || r.properties?.otherProperties.spread === "both")) && (this.shift = !1), e && r.properties?.page === G.center && this.spreads[n - 1][0].addProperties({ addBlank: !0 }), o === "portrait" && r.properties?.page !== "center" && r.properties?.otherProperties.number > 1 ? e = !0 : e = !1;
|
|
7170
7169
|
}), this.shift || this.index(t, !0);
|
|
7171
7170
|
}
|
|
7172
7171
|
buildSpreads(t) {
|
|
7173
7172
|
let e = [];
|
|
7174
7173
|
t.items.forEach((i, n) => {
|
|
7175
|
-
!n && this.shift ? this.spreads.push([i]) : i.properties?.page ===
|
|
7174
|
+
!n && this.shift ? this.spreads.push([i]) : i.properties?.page === G.center ? (e.length > 0 && this.spreads.push(e), this.spreads.push([i]), e = []) : e.length >= 2 ? (this.spreads.push(e), e = [i]) : e.push(i);
|
|
7176
7175
|
}), e.length > 0 && this.spreads.push(e);
|
|
7177
7176
|
}
|
|
7178
7177
|
currentSpread(t, e) {
|
|
@@ -7187,7 +7186,7 @@ class Zr {
|
|
|
7187
7186
|
constructor(t, e, i, n, r, o) {
|
|
7188
7187
|
if (this.pool = /* @__PURE__ */ new Map(), this.blobs = /* @__PURE__ */ new Map(), this.inprogress = /* @__PURE__ */ new Map(), this.delayedShow = /* @__PURE__ */ new Map(), this.delayedTimeout = /* @__PURE__ */ new Map(), this.previousFrames = [], this.injector = null, this.width = 0, this.height = 0, this.transform = "", this.currentSlide = 0, this.spread = !0, this.orientationInternal = -1, this.container = t, this.positions = e, this.pub = i, this.injector = n ?? null, this.contentProtectionConfig = r || {}, this.keyboardPeripheralsConfig = o || [], this.spreadPresentation = i.metadata.otherMetadata?.spread || Ee.auto, this.pub.metadata.effectiveReadingProgression !== F.rtl && this.pub.metadata.effectiveReadingProgression !== F.ltr)
|
|
7189
7188
|
throw Error("Unsupported reading progression for EPUB");
|
|
7190
|
-
this.spreader = new
|
|
7189
|
+
this.spreader = new jr(this.pub), this.containerHeightCached = t.clientHeight, this.bookElement = document.createElement("div"), this.bookElement.ariaLabel = "Book", this.bookElement.tabIndex = -1, this.updateBookStyle(!0), this.spineElement = document.createElement("div"), this.spineElement.ariaLabel = "Spine", this.bookElement.appendChild(this.spineElement), this.container.appendChild(this.bookElement), this.updateSpineStyle(!0), this.peripherals = new Gr(this), this.pub.readingOrder.items.forEach((a) => {
|
|
7191
7190
|
const l = new Ir(this.peripherals, this.pub.metadata.effectiveReadingProgression, a.href, this.contentProtectionConfig, this.keyboardPeripheralsConfig);
|
|
7192
7191
|
this.spineElement.appendChild(l.element), this.pool.set(a.href, l), l.width = 100 / this.length * (a.properties?.otherProperties.orientation === Pe.landscape || a.properties?.otherProperties.addBlank ? this.perPage : 1), l.height = this.height;
|
|
7193
7192
|
});
|
|
@@ -7364,7 +7363,7 @@ class Zr {
|
|
|
7364
7363
|
let n = this.pool.values(), r = n.next();
|
|
7365
7364
|
for (; r.value; )
|
|
7366
7365
|
await r.value.destroy(), r = n.next();
|
|
7367
|
-
this.pool.clear(), this.blobs.forEach((o) =>
|
|
7366
|
+
this.pool.clear(), this.blobs.forEach((o) => o.reset()), this.blobs.clear(), this.injector?.dispose(), this.container.childNodes.forEach((o) => {
|
|
7368
7367
|
(o.nodeType === Node.ELEMENT_NODE || o.nodeType === Node.TEXT_NODE) && o.remove();
|
|
7369
7368
|
});
|
|
7370
7369
|
}
|
|
@@ -7375,7 +7374,7 @@ class Zr {
|
|
|
7375
7374
|
return t % 2 && !this.single && t++, t;
|
|
7376
7375
|
}
|
|
7377
7376
|
spreadPosition(t, e) {
|
|
7378
|
-
return this.perPage < 2 || t.length < 2 ?
|
|
7377
|
+
return this.perPage < 2 || t.length < 2 ? G.center : e.href === t[0].href ? this.rtl ? G.right : G.left : this.rtl ? G.left : G.right;
|
|
7379
7378
|
}
|
|
7380
7379
|
async waitForItem(t) {
|
|
7381
7380
|
if (this.inprogress.has(t) && await this.inprogress.get(t), this.delayedShow.has(t)) {
|
|
@@ -7402,34 +7401,28 @@ class Zr {
|
|
|
7402
7401
|
this.positions.forEach((d, p) => {
|
|
7403
7402
|
(p > r + Ei || p < r - Ei) && (h.includes(d.href) || h.push(d.href)), p < r + Ci && p > r - Ci && (u.includes(d.href) || u.push(d.href));
|
|
7404
7403
|
}), h.forEach(async (d) => {
|
|
7405
|
-
u.includes(d) || this.pool.has(d) && (this.cancelShowing(d), await this.pool.get(d)?.unload());
|
|
7406
|
-
}), this.currentBaseURL !== void 0 && t.baseURL !== this.currentBaseURL && (this.blobs.forEach((d) =>
|
|
7404
|
+
u.includes(d) || this.pool.has(d) && (this.cancelShowing(d), await this.pool.get(d)?.unload(), this.blobs.get(d)?.reset());
|
|
7405
|
+
}), this.currentBaseURL !== void 0 && t.baseURL !== this.currentBaseURL && (this.blobs.forEach((d) => d.reset()), this.blobs.clear()), this.currentBaseURL = t.baseURL;
|
|
7407
7406
|
const m = async (d) => {
|
|
7408
7407
|
const p = t.readingOrder.findIndexWithHref(d), b = t.readingOrder.items[p];
|
|
7409
|
-
|
|
7410
|
-
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
|
|
7415
|
-
{
|
|
7416
|
-
injector: this.injector
|
|
7417
|
-
}
|
|
7418
|
-
).build(!0);
|
|
7419
|
-
this.blobs.set(d, L);
|
|
7408
|
+
b && (this.blobs.has(d) || this.blobs.set(d, new on(
|
|
7409
|
+
t,
|
|
7410
|
+
this.currentBaseURL || "",
|
|
7411
|
+
b,
|
|
7412
|
+
{
|
|
7413
|
+
injector: this.injector
|
|
7420
7414
|
}
|
|
7421
|
-
|
|
7422
|
-
|
|
7423
|
-
|
|
7424
|
-
|
|
7425
|
-
|
|
7426
|
-
|
|
7427
|
-
|
|
7428
|
-
|
|
7429
|
-
|
|
7430
|
-
|
|
7431
|
-
|
|
7432
|
-
}
|
|
7415
|
+
)), this.delayedShow.has(d) || this.delayedShow.set(d, new Promise((_, z) => {
|
|
7416
|
+
let Q = !1;
|
|
7417
|
+
const hn = window.setTimeout(async () => {
|
|
7418
|
+
this.delayedTimeout.set(d, 0);
|
|
7419
|
+
const cn = this.makeSpread(this.reAlign(p)), dn = this.spreadPosition(cn, b), Fe = this.pool.get(d);
|
|
7420
|
+
await Fe.load(i, await this.blobs.get(d).build(!0)), this.peripherals.isScaled || await Fe.show(dn), this.delayedShow.delete(d), Q = !0, _();
|
|
7421
|
+
}, $r);
|
|
7422
|
+
setTimeout(() => {
|
|
7423
|
+
!Q && this.delayedShow.has(d) && z(`Offscreen load timeout: ${d}`);
|
|
7424
|
+
}, Xr), this.delayedTimeout.set(d, hn);
|
|
7425
|
+
})));
|
|
7433
7426
|
};
|
|
7434
7427
|
try {
|
|
7435
7428
|
await Promise.all(u.map((d) => m(d)));
|
|
@@ -7439,7 +7432,7 @@ class Zr {
|
|
|
7439
7432
|
const y = [];
|
|
7440
7433
|
for (const d of o) {
|
|
7441
7434
|
const p = this.pool.get(d.href), b = this.blobs.get(d.href);
|
|
7442
|
-
b && (this.cancelShowing(d.href), await p.load(i, b), await p.show(this.spreadPosition(o, d)), this.previousFrames.push(p), await p.activate(), y.push(p));
|
|
7435
|
+
b && (this.cancelShowing(d.href), await p.load(i, await b.build(!0)), await p.show(this.spreadPosition(o, d)), this.previousFrames.push(p), await p.activate(), y.push(p));
|
|
7443
7436
|
}
|
|
7444
7437
|
for (; this.previousFrames.length > 0; ) {
|
|
7445
7438
|
const d = this.previousFrames.shift();
|
|
@@ -7505,7 +7498,7 @@ class Zr {
|
|
|
7505
7498
|
}
|
|
7506
7499
|
class Ot {
|
|
7507
7500
|
constructor(t = {}) {
|
|
7508
|
-
this.backgroundColor = N(t.backgroundColor), this.blendFilter = P(t.blendFilter), this.constraint =
|
|
7501
|
+
this.backgroundColor = N(t.backgroundColor), this.blendFilter = P(t.blendFilter), this.constraint = v(t.constraint), this.columnCount = v(t.columnCount), this.darkenFilter = pt(t.darkenFilter), this.deprecatedFontSize = P(t.deprecatedFontSize), this.fontFamily = N(t.fontFamily), this.fontSize = q(t.fontSize, Gt.range), this.fontSizeNormalize = P(t.fontSizeNormalize), this.fontOpticalSizing = P(t.fontOpticalSizing), this.fontWeight = q(t.fontWeight, it.range), this.fontWidth = q(t.fontWidth, jt.range), this.hyphens = P(t.hyphens), this.invertFilter = pt(t.invertFilter), this.invertGaijiFilter = pt(t.invertGaijiFilter), this.iOSPatch = P(t.iOSPatch), this.iPadOSPatch = P(t.iPadOSPatch), this.letterSpacing = v(t.letterSpacing), this.ligatures = P(t.ligatures), this.lineHeight = v(t.lineHeight), this.linkColor = N(t.linkColor), this.noRuby = P(t.noRuby), this.pageGutter = v(t.pageGutter), this.paragraphIndent = v(t.paragraphIndent), this.paragraphSpacing = v(t.paragraphSpacing), this.scroll = P(t.scroll), this.scrollPaddingTop = v(t.scrollPaddingTop), this.scrollPaddingBottom = v(t.scrollPaddingBottom), this.scrollPaddingLeft = v(t.scrollPaddingLeft), this.scrollPaddingRight = v(t.scrollPaddingRight), this.selectionBackgroundColor = N(t.selectionBackgroundColor), this.selectionTextColor = N(t.selectionTextColor), this.textAlign = ie(t.textAlign, J), this.textColor = N(t.textColor), this.textNormalization = P(t.textNormalization), this.visitedColor = N(t.visitedColor), this.wordSpacing = v(t.wordSpacing), this.optimalLineLength = v(t.optimalLineLength), this.maximalLineLength = v(t.maximalLineLength), this.minimalLineLength = v(t.minimalLineLength);
|
|
7509
7502
|
}
|
|
7510
7503
|
static serialize(t) {
|
|
7511
7504
|
const { ...e } = t;
|
|
@@ -7528,7 +7521,7 @@ class Ot {
|
|
|
7528
7521
|
}
|
|
7529
7522
|
class Jr {
|
|
7530
7523
|
constructor(t) {
|
|
7531
|
-
this.backgroundColor = N(t.backgroundColor) || null, this.blendFilter = P(t.blendFilter) ?? !1, this.constraint =
|
|
7524
|
+
this.backgroundColor = N(t.backgroundColor) || null, this.blendFilter = P(t.blendFilter) ?? !1, this.constraint = v(t.constraint) || 0, this.columnCount = v(t.columnCount) || null, this.darkenFilter = pt(t.darkenFilter) ?? !1, this.deprecatedFontSize = P(t.deprecatedFontSize), (this.deprecatedFontSize === !1 || this.deprecatedFontSize === null) && (this.deprecatedFontSize = !CSS.supports("zoom", "1")), this.fontFamily = N(t.fontFamily) || null, this.fontSize = q(t.fontSize, Gt.range) || 1, this.fontSizeNormalize = P(t.fontSizeNormalize) ?? !1, this.fontOpticalSizing = P(t.fontOpticalSizing) ?? null, this.fontWeight = q(t.fontWeight, it.range) || null, this.fontWidth = q(t.fontWidth, jt.range) || null, this.hyphens = P(t.hyphens) ?? null, this.invertFilter = pt(t.invertFilter) ?? !1, this.invertGaijiFilter = pt(t.invertGaijiFilter) ?? !1, this.iOSPatch = t.iOSPatch === !1 ? !1 : (L.OS.iOS || L.OS.iPadOS) && L.iOSRequest === "mobile", this.iPadOSPatch = t.iPadOSPatch === !1 ? !1 : L.OS.iPadOS && L.iOSRequest === "desktop", this.letterSpacing = v(t.letterSpacing) || null, this.ligatures = P(t.ligatures) ?? null, this.lineHeight = v(t.lineHeight) || null, this.linkColor = N(t.linkColor) || null, this.noRuby = P(t.noRuby) ?? !1, this.pageGutter = le(v(t.pageGutter), 20), this.paragraphIndent = v(t.paragraphIndent) ?? null, this.paragraphSpacing = v(t.paragraphSpacing) ?? null, this.scroll = P(t.scroll) ?? !1, this.scrollPaddingTop = v(t.scrollPaddingTop) ?? null, this.scrollPaddingBottom = v(t.scrollPaddingBottom) ?? null, this.scrollPaddingLeft = v(t.scrollPaddingLeft) ?? null, this.scrollPaddingRight = v(t.scrollPaddingRight) ?? null, this.selectionBackgroundColor = N(t.selectionBackgroundColor) || null, this.selectionTextColor = N(t.selectionTextColor) || null, this.textAlign = ie(t.textAlign, J) || null, this.textColor = N(t.textColor) || null, this.textNormalization = P(t.textNormalization) ?? !1, this.visitedColor = N(t.visitedColor) || null, this.wordSpacing = v(t.wordSpacing) || null, this.optimalLineLength = v(t.optimalLineLength) || 65, this.maximalLineLength = le(yr(t.maximalLineLength, this.optimalLineLength), 80), this.minimalLineLength = le(fr(t.minimalLineLength, this.optimalLineLength), 40), this.experiments = Ki(t.experiments) || null;
|
|
7532
7525
|
}
|
|
7533
7526
|
}
|
|
7534
7527
|
const Qr = "#FFFFFF", ts = "#121212", es = "#0000EE", is = "#551A8B", ns = "#b4d8fe", rs = "inherit", lt = {
|
|
@@ -7550,7 +7543,7 @@ class xi {
|
|
|
7550
7543
|
this.preferences[t] = e;
|
|
7551
7544
|
}
|
|
7552
7545
|
get backgroundColor() {
|
|
7553
|
-
return new
|
|
7546
|
+
return new k({
|
|
7554
7547
|
initialValue: this.preferences.backgroundColor,
|
|
7555
7548
|
effectiveValue: this.settings.backgroundColor || lt.RS__backgroundColor,
|
|
7556
7549
|
isEffective: this.preferences.backgroundColor !== null,
|
|
@@ -7560,7 +7553,7 @@ class xi {
|
|
|
7560
7553
|
});
|
|
7561
7554
|
}
|
|
7562
7555
|
get blendFilter() {
|
|
7563
|
-
return new
|
|
7556
|
+
return new A({
|
|
7564
7557
|
initialValue: this.preferences.blendFilter,
|
|
7565
7558
|
effectiveValue: this.settings.blendFilter || !1,
|
|
7566
7559
|
isEffective: this.preferences.blendFilter !== null,
|
|
@@ -7570,7 +7563,7 @@ class xi {
|
|
|
7570
7563
|
});
|
|
7571
7564
|
}
|
|
7572
7565
|
get columnCount() {
|
|
7573
|
-
return new
|
|
7566
|
+
return new k({
|
|
7574
7567
|
initialValue: this.preferences.columnCount,
|
|
7575
7568
|
effectiveValue: this.settings.columnCount || null,
|
|
7576
7569
|
isEffective: this.layout !== S.fixed && !this.settings.scroll,
|
|
@@ -7580,7 +7573,7 @@ class xi {
|
|
|
7580
7573
|
});
|
|
7581
7574
|
}
|
|
7582
7575
|
get constraint() {
|
|
7583
|
-
return new
|
|
7576
|
+
return new k({
|
|
7584
7577
|
initialValue: this.preferences.constraint,
|
|
7585
7578
|
effectiveValue: this.preferences.constraint || 0,
|
|
7586
7579
|
isEffective: !0,
|
|
@@ -7602,7 +7595,7 @@ class xi {
|
|
|
7602
7595
|
});
|
|
7603
7596
|
}
|
|
7604
7597
|
get deprecatedFontSize() {
|
|
7605
|
-
return new
|
|
7598
|
+
return new A({
|
|
7606
7599
|
initialValue: this.preferences.deprecatedFontSize,
|
|
7607
7600
|
effectiveValue: CSS.supports("zoom", "1") ? this.settings.deprecatedFontSize || !1 : !0,
|
|
7608
7601
|
isEffective: this.layout !== S.fixed,
|
|
@@ -7612,7 +7605,7 @@ class xi {
|
|
|
7612
7605
|
});
|
|
7613
7606
|
}
|
|
7614
7607
|
get fontFamily() {
|
|
7615
|
-
return new
|
|
7608
|
+
return new k({
|
|
7616
7609
|
initialValue: this.preferences.fontFamily,
|
|
7617
7610
|
effectiveValue: this.settings.fontFamily || null,
|
|
7618
7611
|
isEffective: this.layout !== S.fixed,
|
|
@@ -7629,12 +7622,12 @@ class xi {
|
|
|
7629
7622
|
onChange: (t) => {
|
|
7630
7623
|
this.updatePreference("fontSize", t || null);
|
|
7631
7624
|
},
|
|
7632
|
-
supportedRange:
|
|
7633
|
-
step:
|
|
7625
|
+
supportedRange: Gt.range,
|
|
7626
|
+
step: Gt.step
|
|
7634
7627
|
});
|
|
7635
7628
|
}
|
|
7636
7629
|
get fontSizeNormalize() {
|
|
7637
|
-
return new
|
|
7630
|
+
return new A({
|
|
7638
7631
|
initialValue: this.preferences.fontSizeNormalize,
|
|
7639
7632
|
effectiveValue: this.settings.fontSizeNormalize || !1,
|
|
7640
7633
|
isEffective: this.layout !== S.fixed && this.preferences.fontSizeNormalize !== null,
|
|
@@ -7644,7 +7637,7 @@ class xi {
|
|
|
7644
7637
|
});
|
|
7645
7638
|
}
|
|
7646
7639
|
get fontOpticalSizing() {
|
|
7647
|
-
return new
|
|
7640
|
+
return new A({
|
|
7648
7641
|
initialValue: this.preferences.fontOpticalSizing,
|
|
7649
7642
|
effectiveValue: this.settings.fontOpticalSizing || !0,
|
|
7650
7643
|
isEffective: this.layout !== S.fixed && this.preferences.fontOpticalSizing !== null,
|
|
@@ -7673,12 +7666,12 @@ class xi {
|
|
|
7673
7666
|
onChange: (t) => {
|
|
7674
7667
|
this.updatePreference("fontWidth", t || null);
|
|
7675
7668
|
},
|
|
7676
|
-
supportedRange:
|
|
7677
|
-
step:
|
|
7669
|
+
supportedRange: jt.range,
|
|
7670
|
+
step: jt.step
|
|
7678
7671
|
});
|
|
7679
7672
|
}
|
|
7680
7673
|
get hyphens() {
|
|
7681
|
-
return new
|
|
7674
|
+
return new A({
|
|
7682
7675
|
initialValue: this.preferences.hyphens,
|
|
7683
7676
|
effectiveValue: this.settings.hyphens || !1,
|
|
7684
7677
|
isEffective: this.layout !== S.fixed && this.metadata?.effectiveReadingProgression === F.ltr && this.preferences.hyphens !== null,
|
|
@@ -7712,7 +7705,7 @@ class xi {
|
|
|
7712
7705
|
});
|
|
7713
7706
|
}
|
|
7714
7707
|
get iOSPatch() {
|
|
7715
|
-
return new
|
|
7708
|
+
return new A({
|
|
7716
7709
|
initialValue: this.preferences.iOSPatch,
|
|
7717
7710
|
effectiveValue: this.settings.iOSPatch || !1,
|
|
7718
7711
|
isEffective: this.layout !== S.fixed,
|
|
@@ -7722,7 +7715,7 @@ class xi {
|
|
|
7722
7715
|
});
|
|
7723
7716
|
}
|
|
7724
7717
|
get iPadOSPatch() {
|
|
7725
|
-
return new
|
|
7718
|
+
return new A({
|
|
7726
7719
|
initialValue: this.preferences.iPadOSPatch,
|
|
7727
7720
|
effectiveValue: this.settings.iPadOSPatch || !1,
|
|
7728
7721
|
isEffective: this.layout !== S.fixed,
|
|
@@ -7744,7 +7737,7 @@ class xi {
|
|
|
7744
7737
|
});
|
|
7745
7738
|
}
|
|
7746
7739
|
get ligatures() {
|
|
7747
|
-
return new
|
|
7740
|
+
return new A({
|
|
7748
7741
|
initialValue: this.preferences.ligatures,
|
|
7749
7742
|
effectiveValue: this.settings.ligatures || !0,
|
|
7750
7743
|
isEffective: (() => {
|
|
@@ -7771,7 +7764,7 @@ class xi {
|
|
|
7771
7764
|
});
|
|
7772
7765
|
}
|
|
7773
7766
|
get linkColor() {
|
|
7774
|
-
return new
|
|
7767
|
+
return new k({
|
|
7775
7768
|
initialValue: this.preferences.linkColor,
|
|
7776
7769
|
effectiveValue: this.settings.linkColor || lt.RS__linkColor,
|
|
7777
7770
|
isEffective: this.layout !== S.fixed && this.preferences.linkColor !== null,
|
|
@@ -7805,7 +7798,7 @@ class xi {
|
|
|
7805
7798
|
});
|
|
7806
7799
|
}
|
|
7807
7800
|
get noRuby() {
|
|
7808
|
-
return new
|
|
7801
|
+
return new A({
|
|
7809
7802
|
initialValue: this.preferences.noRuby,
|
|
7810
7803
|
effectiveValue: this.settings.noRuby || !1,
|
|
7811
7804
|
isEffective: this.layout !== S.fixed && this.metadata?.languages?.includes("ja") || !1,
|
|
@@ -7827,7 +7820,7 @@ class xi {
|
|
|
7827
7820
|
});
|
|
7828
7821
|
}
|
|
7829
7822
|
get pageGutter() {
|
|
7830
|
-
return new
|
|
7823
|
+
return new k({
|
|
7831
7824
|
initialValue: this.preferences.pageGutter,
|
|
7832
7825
|
effectiveValue: this.settings.pageGutter,
|
|
7833
7826
|
isEffective: this.layout !== S.fixed && !this.settings.scroll,
|
|
@@ -7861,7 +7854,7 @@ class xi {
|
|
|
7861
7854
|
});
|
|
7862
7855
|
}
|
|
7863
7856
|
get scroll() {
|
|
7864
|
-
return new
|
|
7857
|
+
return new A({
|
|
7865
7858
|
initialValue: this.preferences.scroll,
|
|
7866
7859
|
effectiveValue: this.settings.scroll || !1,
|
|
7867
7860
|
isEffective: this.layout !== S.fixed,
|
|
@@ -7871,7 +7864,7 @@ class xi {
|
|
|
7871
7864
|
});
|
|
7872
7865
|
}
|
|
7873
7866
|
get scrollPaddingTop() {
|
|
7874
|
-
return new
|
|
7867
|
+
return new k({
|
|
7875
7868
|
initialValue: this.preferences.scrollPaddingTop,
|
|
7876
7869
|
effectiveValue: this.settings.scrollPaddingTop || 0,
|
|
7877
7870
|
isEffective: this.layout !== S.fixed && !!this.settings.scroll && this.preferences.scrollPaddingTop !== null,
|
|
@@ -7881,7 +7874,7 @@ class xi {
|
|
|
7881
7874
|
});
|
|
7882
7875
|
}
|
|
7883
7876
|
get scrollPaddingBottom() {
|
|
7884
|
-
return new
|
|
7877
|
+
return new k({
|
|
7885
7878
|
initialValue: this.preferences.scrollPaddingBottom,
|
|
7886
7879
|
effectiveValue: this.settings.scrollPaddingBottom || 0,
|
|
7887
7880
|
isEffective: this.layout !== S.fixed && !!this.settings.scroll && this.preferences.scrollPaddingBottom !== null,
|
|
@@ -7891,7 +7884,7 @@ class xi {
|
|
|
7891
7884
|
});
|
|
7892
7885
|
}
|
|
7893
7886
|
get scrollPaddingLeft() {
|
|
7894
|
-
return new
|
|
7887
|
+
return new k({
|
|
7895
7888
|
initialValue: this.preferences.scrollPaddingLeft,
|
|
7896
7889
|
effectiveValue: this.settings.scrollPaddingLeft || 0,
|
|
7897
7890
|
isEffective: this.layout !== S.fixed && !!this.settings.scroll && this.preferences.scrollPaddingLeft !== null,
|
|
@@ -7901,7 +7894,7 @@ class xi {
|
|
|
7901
7894
|
});
|
|
7902
7895
|
}
|
|
7903
7896
|
get scrollPaddingRight() {
|
|
7904
|
-
return new
|
|
7897
|
+
return new k({
|
|
7905
7898
|
initialValue: this.preferences.scrollPaddingRight,
|
|
7906
7899
|
effectiveValue: this.settings.scrollPaddingRight || 0,
|
|
7907
7900
|
isEffective: this.layout !== S.fixed && !!this.settings.scroll && this.preferences.scrollPaddingRight !== null,
|
|
@@ -7911,7 +7904,7 @@ class xi {
|
|
|
7911
7904
|
});
|
|
7912
7905
|
}
|
|
7913
7906
|
get selectionBackgroundColor() {
|
|
7914
|
-
return new
|
|
7907
|
+
return new k({
|
|
7915
7908
|
initialValue: this.preferences.selectionBackgroundColor,
|
|
7916
7909
|
effectiveValue: this.settings.selectionBackgroundColor || lt.RS__selectionBackgroundColor,
|
|
7917
7910
|
isEffective: this.layout !== S.fixed && this.preferences.selectionBackgroundColor !== null,
|
|
@@ -7921,7 +7914,7 @@ class xi {
|
|
|
7921
7914
|
});
|
|
7922
7915
|
}
|
|
7923
7916
|
get selectionTextColor() {
|
|
7924
|
-
return new
|
|
7917
|
+
return new k({
|
|
7925
7918
|
initialValue: this.preferences.selectionTextColor,
|
|
7926
7919
|
effectiveValue: this.settings.selectionTextColor || lt.RS__selectionTextColor,
|
|
7927
7920
|
isEffective: this.layout !== S.fixed && this.preferences.selectionTextColor !== null,
|
|
@@ -7942,7 +7935,7 @@ class xi {
|
|
|
7942
7935
|
});
|
|
7943
7936
|
}
|
|
7944
7937
|
get textColor() {
|
|
7945
|
-
return new
|
|
7938
|
+
return new k({
|
|
7946
7939
|
initialValue: this.preferences.textColor,
|
|
7947
7940
|
effectiveValue: this.settings.textColor || lt.RS__textColor,
|
|
7948
7941
|
isEffective: this.layout !== S.fixed && this.preferences.textColor !== null,
|
|
@@ -7952,7 +7945,7 @@ class xi {
|
|
|
7952
7945
|
});
|
|
7953
7946
|
}
|
|
7954
7947
|
get textNormalization() {
|
|
7955
|
-
return new
|
|
7948
|
+
return new A({
|
|
7956
7949
|
initialValue: this.preferences.textNormalization,
|
|
7957
7950
|
effectiveValue: this.settings.textNormalization || !1,
|
|
7958
7951
|
isEffective: this.layout !== S.fixed,
|
|
@@ -7962,7 +7955,7 @@ class xi {
|
|
|
7962
7955
|
});
|
|
7963
7956
|
}
|
|
7964
7957
|
get visitedColor() {
|
|
7965
|
-
return new
|
|
7958
|
+
return new k({
|
|
7966
7959
|
initialValue: this.preferences.visitedColor,
|
|
7967
7960
|
effectiveValue: this.settings.visitedColor || lt.RS__visitedColor,
|
|
7968
7961
|
isEffective: this.layout !== S.fixed && this.preferences.visitedColor !== null,
|
|
@@ -7986,7 +7979,7 @@ class xi {
|
|
|
7986
7979
|
}
|
|
7987
7980
|
class Ri {
|
|
7988
7981
|
constructor(t, e) {
|
|
7989
|
-
this.backgroundColor = t.backgroundColor || e.backgroundColor || null, this.blendFilter = typeof t.blendFilter == "boolean" ? t.blendFilter : e.blendFilter ?? null, this.columnCount = t.columnCount !== void 0 ? t.columnCount : e.columnCount !== void 0 ? e.columnCount : null, this.constraint = t.constraint || e.constraint, this.darkenFilter = typeof t.darkenFilter == "boolean" ? t.darkenFilter : e.darkenFilter ?? null, this.deprecatedFontSize = typeof t.deprecatedFontSize == "boolean" ? t.deprecatedFontSize : e.deprecatedFontSize ?? null, this.fontFamily = t.fontFamily || e.fontFamily || null, this.fontSize = t.fontSize !== void 0 ? t.fontSize : e.fontSize !== void 0 ? e.fontSize : null, this.fontSizeNormalize = typeof t.fontSizeNormalize == "boolean" ? t.fontSizeNormalize : e.fontSizeNormalize ?? null, this.fontOpticalSizing = typeof t.fontOpticalSizing == "boolean" ? t.fontOpticalSizing : e.fontOpticalSizing ?? null, this.fontWeight = t.fontWeight !== void 0 ? t.fontWeight : e.fontWeight !== void 0 ? e.fontWeight : null, this.fontWidth = t.fontWidth !== void 0 ? t.fontWidth : e.fontWidth !== void 0 ? e.fontWidth : null, this.hyphens = typeof t.hyphens == "boolean" ? t.hyphens : e.hyphens ?? null, this.invertFilter = typeof t.invertFilter == "boolean" ? t.invertFilter : e.invertFilter ?? null, this.invertGaijiFilter = typeof t.invertGaijiFilter == "boolean" ? t.invertGaijiFilter : e.invertGaijiFilter ?? null, this.iOSPatch = this.deprecatedFontSize || t.iOSPatch === !1 ? !1 : t.iOSPatch === !0 ? (
|
|
7982
|
+
this.backgroundColor = t.backgroundColor || e.backgroundColor || null, this.blendFilter = typeof t.blendFilter == "boolean" ? t.blendFilter : e.blendFilter ?? null, this.columnCount = t.columnCount !== void 0 ? t.columnCount : e.columnCount !== void 0 ? e.columnCount : null, this.constraint = t.constraint || e.constraint, this.darkenFilter = typeof t.darkenFilter == "boolean" ? t.darkenFilter : e.darkenFilter ?? null, this.deprecatedFontSize = typeof t.deprecatedFontSize == "boolean" ? t.deprecatedFontSize : e.deprecatedFontSize ?? null, this.fontFamily = t.fontFamily || e.fontFamily || null, this.fontSize = t.fontSize !== void 0 ? t.fontSize : e.fontSize !== void 0 ? e.fontSize : null, this.fontSizeNormalize = typeof t.fontSizeNormalize == "boolean" ? t.fontSizeNormalize : e.fontSizeNormalize ?? null, this.fontOpticalSizing = typeof t.fontOpticalSizing == "boolean" ? t.fontOpticalSizing : e.fontOpticalSizing ?? null, this.fontWeight = t.fontWeight !== void 0 ? t.fontWeight : e.fontWeight !== void 0 ? e.fontWeight : null, this.fontWidth = t.fontWidth !== void 0 ? t.fontWidth : e.fontWidth !== void 0 ? e.fontWidth : null, this.hyphens = typeof t.hyphens == "boolean" ? t.hyphens : e.hyphens ?? null, this.invertFilter = typeof t.invertFilter == "boolean" ? t.invertFilter : e.invertFilter ?? null, this.invertGaijiFilter = typeof t.invertGaijiFilter == "boolean" ? t.invertGaijiFilter : e.invertGaijiFilter ?? null, this.iOSPatch = this.deprecatedFontSize || t.iOSPatch === !1 ? !1 : t.iOSPatch === !0 ? (L.OS.iOS || L.OS.iPadOS) && L.iOSRequest === "mobile" : e.iOSPatch, this.iPadOSPatch = this.deprecatedFontSize || t.iPadOSPatch === !1 ? !1 : t.iPadOSPatch === !0 ? L.OS.iPadOS && L.iOSRequest === "desktop" : e.iPadOSPatch, this.letterSpacing = t.letterSpacing !== void 0 ? t.letterSpacing : e.letterSpacing !== void 0 ? e.letterSpacing : null, this.ligatures = typeof t.ligatures == "boolean" ? t.ligatures : e.ligatures ?? null, this.lineHeight = t.lineHeight !== void 0 ? t.lineHeight : e.lineHeight !== void 0 ? e.lineHeight : null, this.linkColor = t.linkColor || e.linkColor || null, this.maximalLineLength = t.maximalLineLength === null ? null : t.maximalLineLength || e.maximalLineLength || null, this.minimalLineLength = t.minimalLineLength === null ? null : t.minimalLineLength || e.minimalLineLength || null, this.noRuby = typeof t.noRuby == "boolean" ? t.noRuby : e.noRuby ?? null, this.optimalLineLength = t.optimalLineLength || e.optimalLineLength, this.pageGutter = t.pageGutter !== void 0 ? t.pageGutter : e.pageGutter !== void 0 ? e.pageGutter : null, this.paragraphIndent = t.paragraphIndent !== void 0 ? t.paragraphIndent : e.paragraphIndent !== void 0 ? e.paragraphIndent : null, this.paragraphSpacing = t.paragraphSpacing !== void 0 ? t.paragraphSpacing : e.paragraphSpacing !== void 0 ? e.paragraphSpacing : null, this.scroll = typeof t.scroll == "boolean" ? t.scroll : e.scroll ?? null, this.scrollPaddingTop = t.scrollPaddingTop !== void 0 ? t.scrollPaddingTop : e.scrollPaddingTop !== void 0 ? e.scrollPaddingTop : null, this.scrollPaddingBottom = t.scrollPaddingBottom !== void 0 ? t.scrollPaddingBottom : e.scrollPaddingBottom !== void 0 ? e.scrollPaddingBottom : null, this.scrollPaddingLeft = t.scrollPaddingLeft !== void 0 ? t.scrollPaddingLeft : e.scrollPaddingLeft !== void 0 ? e.scrollPaddingLeft : null, this.scrollPaddingRight = t.scrollPaddingRight !== void 0 ? t.scrollPaddingRight : e.scrollPaddingRight !== void 0 ? e.scrollPaddingRight : null, this.selectionBackgroundColor = t.selectionBackgroundColor || e.selectionBackgroundColor || null, this.selectionTextColor = t.selectionTextColor || e.selectionTextColor || null, this.textAlign = t.textAlign || e.textAlign || null, this.textColor = t.textColor || e.textColor || null, this.textNormalization = typeof t.textNormalization == "boolean" ? t.textNormalization : e.textNormalization ?? null, this.visitedColor = t.visitedColor || e.visitedColor || null, this.wordSpacing = t.wordSpacing !== void 0 ? t.wordSpacing : e.wordSpacing !== void 0 ? e.wordSpacing : null, this.experiments = e.experiments || null;
|
|
7990
7983
|
}
|
|
7991
7984
|
}
|
|
7992
7985
|
function Ut(s) {
|
|
@@ -9468,7 +9461,7 @@ const us = (s) => ({
|
|
|
9468
9461
|
peripheral: s.peripheral || (() => {
|
|
9469
9462
|
})
|
|
9470
9463
|
});
|
|
9471
|
-
class ln extends
|
|
9464
|
+
class ln extends ji {
|
|
9472
9465
|
constructor(t, e, i, n = [], r = void 0, o = { preferences: {}, defaults: {} }) {
|
|
9473
9466
|
super(), this._preferencesEditor = null, this._injector = null, this._navigatorProtector = null, this._keyboardPeripheralsManager = null, this._suspiciousActivityListener = null, this._keyboardPeripheralListener = null, this.reflowViewport = {
|
|
9474
9467
|
readingOrder: [],
|
|
@@ -10078,7 +10071,7 @@ class ms {
|
|
|
10078
10071
|
}
|
|
10079
10072
|
}
|
|
10080
10073
|
export {
|
|
10081
|
-
|
|
10074
|
+
A as BooleanPreference,
|
|
10082
10075
|
Zi as EnumPreference,
|
|
10083
10076
|
Jr as EpubDefaults,
|
|
10084
10077
|
ln as EpubNavigator,
|
|
@@ -10089,8 +10082,8 @@ export {
|
|
|
10089
10082
|
Br as FXLCoordinator,
|
|
10090
10083
|
Ir as FXLFrameManager,
|
|
10091
10084
|
Zr as FXLFramePoolManager,
|
|
10092
|
-
|
|
10093
|
-
|
|
10085
|
+
Gr as FXLPeripherals,
|
|
10086
|
+
jr as FXLSpreader,
|
|
10094
10087
|
Ct as FrameComms,
|
|
10095
10088
|
Fr as FrameManager,
|
|
10096
10089
|
Dr as FramePoolManager,
|
|
@@ -10099,7 +10092,7 @@ export {
|
|
|
10099
10092
|
bt as LineLengths,
|
|
10100
10093
|
er as Navigator,
|
|
10101
10094
|
Pe as Orientation,
|
|
10102
|
-
|
|
10095
|
+
k as Preference,
|
|
10103
10096
|
ee as Properties,
|
|
10104
10097
|
ss as RSProperties,
|
|
10105
10098
|
R as RangePreference,
|
|
@@ -10108,7 +10101,7 @@ export {
|
|
|
10108
10101
|
J as TextAlignment,
|
|
10109
10102
|
an as UserProperties,
|
|
10110
10103
|
Hr as VerticalThird,
|
|
10111
|
-
|
|
10104
|
+
ji as VisualNavigator,
|
|
10112
10105
|
ms as WebAudioEngine,
|
|
10113
10106
|
ir as WebPubBlobBuilder,
|
|
10114
10107
|
gr as WebPubCSS,
|
|
@@ -10127,21 +10120,21 @@ export {
|
|
|
10127
10120
|
pt as ensureFilter,
|
|
10128
10121
|
fr as ensureLessThanOrEqual,
|
|
10129
10122
|
yr as ensureMoreThanOrEqual,
|
|
10130
|
-
|
|
10123
|
+
v as ensureNonNegative,
|
|
10131
10124
|
N as ensureString,
|
|
10132
10125
|
q as ensureValueInRange,
|
|
10133
10126
|
Me as experiments,
|
|
10134
10127
|
ot as filterRangeConfig,
|
|
10135
|
-
|
|
10128
|
+
Gt as fontSizeRangeConfig,
|
|
10136
10129
|
it as fontWeightRangeConfig,
|
|
10137
|
-
|
|
10130
|
+
jt as fontWidthRangeConfig,
|
|
10138
10131
|
$t as letterSpacingRangeConfig,
|
|
10139
10132
|
Xt as lineHeightRangeConfig,
|
|
10140
10133
|
at as lineLengthRangeConfig,
|
|
10141
10134
|
Yt as paragraphIndentRangeConfig,
|
|
10142
10135
|
qt as paragraphSpacingRangeConfig,
|
|
10143
10136
|
Y as sML,
|
|
10144
|
-
|
|
10137
|
+
L as sMLWithRequest,
|
|
10145
10138
|
le as withFallback,
|
|
10146
10139
|
Kt as wordSpacingRangeConfig,
|
|
10147
10140
|
Zt as zoomRangeConfig
|