@readium/navigator 2.4.0-beta.9 → 2.5.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/dist/ReadiumCSS-after-B_e3a-PY.js +592 -0
  2. package/dist/ReadiumCSS-after-C-T_0paD.js +530 -0
  3. package/dist/ReadiumCSS-after-lr-n3fz2.js +475 -0
  4. package/dist/ReadiumCSS-after-mXeKKPap.js +490 -0
  5. package/dist/ReadiumCSS-before-Bjd3POej.js +426 -0
  6. package/dist/ReadiumCSS-before-CfXPAGaQ.js +425 -0
  7. package/dist/ReadiumCSS-before-CrNWvuyE.js +425 -0
  8. package/dist/ReadiumCSS-before-KVen5ceo.js +425 -0
  9. package/dist/ReadiumCSS-default-BKAG5pGU.js +162 -0
  10. package/dist/ReadiumCSS-default-C63bYOYF.js +183 -0
  11. package/dist/ReadiumCSS-default-CclvbeNC.js +162 -0
  12. package/dist/ReadiumCSS-default-DnlgDaBu.js +180 -0
  13. package/dist/ReadiumCSS-ebpaj_fonts_patch-Dt2XliTg.js +82 -0
  14. package/dist/index.js +2642 -3430
  15. package/dist/index.umd.cjs +4407 -995
  16. package/package.json +2 -2
  17. package/src/audio/AudioNavigator.ts +155 -42
  18. package/src/audio/AudioPoolManager.ts +27 -14
  19. package/src/audio/engine/AudioEngine.ts +4 -3
  20. package/src/audio/engine/PreservePitchProcessor.js +166 -101
  21. package/src/audio/engine/PreservePitchWorklet.ts +2 -17
  22. package/src/audio/engine/WebAudioEngine.ts +138 -160
  23. package/src/audio/engine/index.ts +2 -2
  24. package/src/audio/index.ts +3 -3
  25. package/src/audio/preferences/AudioDefaults.ts +2 -2
  26. package/src/audio/preferences/AudioPreferences.ts +11 -11
  27. package/src/audio/preferences/AudioPreferencesEditor.ts +13 -13
  28. package/src/audio/preferences/AudioSettings.ts +3 -3
  29. package/src/audio/preferences/index.ts +4 -4
  30. package/src/audio/protection/AudioNavigatorProtector.ts +4 -4
  31. package/src/css/index.ts +1 -1
  32. package/src/epub/EpubNavigator.ts +113 -78
  33. package/src/epub/css/Properties.ts +15 -15
  34. package/src/epub/css/ReadiumCSS.ts +43 -43
  35. package/src/epub/css/index.ts +2 -2
  36. package/src/epub/frame/FrameBlobBuilder.ts +31 -31
  37. package/src/epub/frame/FrameComms.ts +1 -1
  38. package/src/epub/frame/FrameManager.ts +13 -9
  39. package/src/epub/frame/FramePoolManager.ts +13 -13
  40. package/src/epub/frame/index.ts +4 -4
  41. package/src/epub/fxl/FXLCoordinator.ts +3 -3
  42. package/src/epub/fxl/FXLFrameManager.ts +8 -8
  43. package/src/epub/fxl/FXLFramePoolManager.ts +18 -14
  44. package/src/epub/fxl/FXLPeripherals.ts +4 -4
  45. package/src/epub/fxl/index.ts +5 -5
  46. package/src/epub/helpers/scriptMode.ts +45 -0
  47. package/src/epub/index.ts +6 -5
  48. package/src/epub/preferences/EpubDefaults.ts +23 -23
  49. package/src/epub/preferences/EpubPreferences.ts +16 -16
  50. package/src/epub/preferences/EpubPreferencesEditor.ts +53 -53
  51. package/src/epub/preferences/EpubSettings.ts +101 -101
  52. package/src/epub/preferences/index.ts +4 -4
  53. package/src/helpers/index.ts +2 -2
  54. package/src/index.ts +8 -8
  55. package/src/injection/Injector.ts +42 -42
  56. package/src/injection/epubInjectables.ts +86 -17
  57. package/src/injection/index.ts +2 -2
  58. package/src/injection/webpubInjectables.ts +2 -2
  59. package/src/preferences/Configurable.ts +2 -2
  60. package/src/preferences/PreferencesEditor.ts +2 -2
  61. package/src/preferences/guards.ts +2 -2
  62. package/src/preferences/index.ts +5 -5
  63. package/src/protection/CopyProtector.ts +5 -1
  64. package/src/protection/DevToolsDetector.ts +16 -16
  65. package/src/protection/DragAndDropProtector.ts +14 -1
  66. package/src/protection/NavigatorProtector.ts +6 -6
  67. package/src/webpub/WebPubBlobBuilder.ts +1 -1
  68. package/src/webpub/WebPubFrameManager.ts +8 -8
  69. package/src/webpub/WebPubFramePoolManager.ts +7 -7
  70. package/src/webpub/WebPubNavigator.ts +27 -27
  71. package/src/webpub/css/Properties.ts +3 -3
  72. package/src/webpub/css/WebPubCSS.ts +11 -11
  73. package/src/webpub/css/index.ts +2 -2
  74. package/src/webpub/index.ts +6 -6
  75. package/src/webpub/preferences/WebPubDefaults.ts +12 -12
  76. package/src/webpub/preferences/WebPubPreferences.ts +8 -8
  77. package/src/webpub/preferences/WebPubPreferencesEditor.ts +31 -31
  78. package/src/webpub/preferences/WebPubSettings.ts +45 -45
  79. package/src/webpub/preferences/index.ts +4 -4
  80. package/types/src/audio/AudioNavigator.d.ts +34 -5
  81. package/types/src/audio/AudioPoolManager.d.ts +7 -4
  82. package/types/src/audio/engine/AudioEngine.d.ts +4 -3
  83. package/types/src/audio/engine/PreservePitchWorklet.d.ts +1 -4
  84. package/types/src/audio/engine/WebAudioEngine.d.ts +15 -9
  85. package/types/src/audio/engine/index.d.ts +2 -2
  86. package/types/src/audio/index.d.ts +3 -3
  87. package/types/src/audio/preferences/AudioPreferences.d.ts +9 -9
  88. package/types/src/audio/preferences/AudioPreferencesEditor.d.ts +4 -4
  89. package/types/src/audio/preferences/AudioSettings.d.ts +3 -3
  90. package/types/src/audio/preferences/index.d.ts +4 -4
  91. package/types/src/audio/protection/AudioNavigatorProtector.d.ts +2 -2
  92. package/types/src/css/index.d.ts +1 -1
  93. package/types/src/epub/EpubNavigator.d.ts +15 -14
  94. package/types/src/epub/css/Properties.d.ts +2 -2
  95. package/types/src/epub/css/ReadiumCSS.d.ts +3 -3
  96. package/types/src/epub/css/index.d.ts +2 -2
  97. package/types/src/epub/frame/FrameBlobBuilder.d.ts +1 -1
  98. package/types/src/epub/frame/FrameComms.d.ts +1 -1
  99. package/types/src/epub/frame/FrameManager.d.ts +3 -2
  100. package/types/src/epub/frame/FramePoolManager.d.ts +3 -3
  101. package/types/src/epub/frame/index.d.ts +4 -4
  102. package/types/src/epub/fxl/FXLFrameManager.d.ts +3 -3
  103. package/types/src/epub/fxl/FXLFramePoolManager.d.ts +5 -5
  104. package/types/src/epub/fxl/FXLPeripherals.d.ts +2 -2
  105. package/types/src/epub/fxl/index.d.ts +5 -5
  106. package/types/src/epub/helpers/scriptMode.d.ts +16 -0
  107. package/types/src/epub/index.d.ts +6 -5
  108. package/types/src/epub/preferences/EpubDefaults.d.ts +1 -1
  109. package/types/src/epub/preferences/EpubPreferences.d.ts +2 -2
  110. package/types/src/epub/preferences/EpubPreferencesEditor.d.ts +5 -5
  111. package/types/src/epub/preferences/EpubSettings.d.ts +4 -4
  112. package/types/src/epub/preferences/index.d.ts +4 -4
  113. package/types/src/helpers/index.d.ts +2 -2
  114. package/types/src/index.d.ts +8 -8
  115. package/types/src/injection/Injector.d.ts +1 -1
  116. package/types/src/injection/epubInjectables.d.ts +5 -3
  117. package/types/src/injection/index.d.ts +2 -2
  118. package/types/src/injection/webpubInjectables.d.ts +1 -1
  119. package/types/src/preferences/Configurable.d.ts +1 -1
  120. package/types/src/preferences/PreferencesEditor.d.ts +1 -1
  121. package/types/src/preferences/guards.d.ts +1 -1
  122. package/types/src/preferences/index.d.ts +5 -5
  123. package/types/src/protection/CopyProtector.d.ts +1 -0
  124. package/types/src/protection/DragAndDropProtector.d.ts +2 -0
  125. package/types/src/protection/NavigatorProtector.d.ts +1 -1
  126. package/types/src/webpub/WebPubBlobBuilder.d.ts +1 -1
  127. package/types/src/webpub/WebPubFrameManager.d.ts +2 -2
  128. package/types/src/webpub/WebPubFramePoolManager.d.ts +3 -3
  129. package/types/src/webpub/WebPubNavigator.d.ts +10 -10
  130. package/types/src/webpub/css/Properties.d.ts +2 -2
  131. package/types/src/webpub/css/WebPubCSS.d.ts +2 -2
  132. package/types/src/webpub/css/index.d.ts +2 -2
  133. package/types/src/webpub/index.d.ts +6 -6
  134. package/types/src/webpub/preferences/WebPubDefaults.d.ts +1 -1
  135. package/types/src/webpub/preferences/WebPubPreferences.d.ts +2 -2
  136. package/types/src/webpub/preferences/WebPubPreferencesEditor.d.ts +5 -5
  137. package/types/src/webpub/preferences/WebPubSettings.d.ts +4 -4
  138. package/types/src/webpub/preferences/index.d.ts +4 -4
@@ -0,0 +1,530 @@
1
+ const n = `/*!
2
+ * Readium CSS v.2.0.1
3
+ * Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
4
+ * Use of this source code is governed by a BSD-style license which is detailed in the
5
+ * LICENSE file present in the project repository where this source code is maintained.
6
+ * Core maintainer: Jiminy Panoz <jiminy.panoz@edrlab.org>
7
+ * Contributors:
8
+ * Daniel Weck
9
+ * Hadrien Gardeur
10
+ * Innovimax
11
+ * L. Le Meur
12
+ * Mickaël Menu
13
+ * k_taka
14
+ */
15
+
16
+ @namespace url("http://www.w3.org/1999/xhtml");
17
+
18
+ @namespace epub url("http://www.idpf.org/2007/ops");
19
+
20
+ @namespace m url("http://www.w3.org/1998/Math/MathML");
21
+
22
+ @namespace svg url("http://www.w3.org/2000/svg");
23
+
24
+ :root{
25
+
26
+ --RS__viewportWidth:100%;
27
+
28
+ --RS__pageGutter:0;
29
+
30
+ --RS__defaultLineLength:100%;
31
+
32
+ --RS__colGap:0;
33
+
34
+ --RS__colCount:1;
35
+
36
+ --RS__colWidth:100vw;
37
+ }
38
+
39
+ @page{
40
+ margin:0 !important;
41
+ }
42
+
43
+ :root{
44
+ position:relative;
45
+
46
+ -webkit-column-width:var(--RS__colWidth);
47
+ -moz-column-width:var(--RS__colWidth);
48
+ column-width:var(--RS__colWidth);
49
+ -webkit-column-count:var(--RS__colCount);
50
+ -moz-column-count:var(--RS__colCount);
51
+ column-count:var(--RS__colCount);
52
+
53
+ -webkit-column-gap:var(--RS__colGap);
54
+ -moz-column-gap:var(--RS__colGap);
55
+ column-gap:var(--RS__colGap);
56
+ -moz-column-fill:auto;
57
+ column-fill:auto;
58
+ width:var(--RS__viewportWidth);
59
+ height:100vh;
60
+ max-width:var(--RS__viewportWidth);
61
+ max-height:100vh;
62
+ min-width:var(--RS__viewportWidth);
63
+ min-height:100vh;
64
+ padding:0 !important;
65
+ margin:0 !important;
66
+ font-size:1rem !important;
67
+ box-sizing:border-box;
68
+ -webkit-touch-callout:none;
69
+ }
70
+
71
+ body{
72
+ width:100%;
73
+ max-width:var(--RS__defaultLineLength) !important;
74
+ margin:0 auto !important;
75
+ box-sizing:border-box;
76
+ }
77
+
78
+ :root:not([style*="readium-scroll-on"]) body{
79
+ padding:0 var(--RS__pageGutter) !important;
80
+ }
81
+
82
+ :root:not([style*="readium-noOverflow-on"]) body{
83
+ overflow:hidden;
84
+ }
85
+
86
+ @supports (overflow: clip){
87
+
88
+ :root:not([style*="readium-noOverflow-on"]){
89
+ overflow:clip;
90
+ }
91
+
92
+ :root:not([style*="readium-noOverflow-on"]) body{
93
+ overflow:clip;
94
+ overflow-clip-margin:content-box;
95
+ }
96
+ }
97
+
98
+ :root[style*="readium-scroll-on"]{
99
+ -webkit-columns:auto auto !important;
100
+ -moz-columns:auto auto !important;
101
+ columns:auto auto !important;
102
+ width:auto !important;
103
+ height:auto !important;
104
+ max-width:none !important;
105
+ max-height:none !important;
106
+ min-width:0 !important;
107
+ min-height:0 !important;
108
+ }
109
+
110
+ :root[style*="readium-scroll-on"] body{
111
+ max-width:var(--RS__defaultLineLength) !important;
112
+ box-sizing:border-box !important;
113
+ }
114
+
115
+ :root[style*="readium-scroll-on"]:not([style*="readium-noOverflow-on"]) body{
116
+ overflow:auto;
117
+ }
118
+
119
+ @supports (overflow: clip){
120
+
121
+ :root[style*="readium-scroll-on"]:not([style*="readium-noOverflow-on"]){
122
+ overflow:auto;
123
+ }
124
+
125
+ :root[style*="readium-scroll-on"]:not([style*="readium-noOverflow-on"]) body{
126
+ overflow:clip;
127
+ }
128
+ }
129
+
130
+ :root[style*="readium-scroll-on"][style*="--RS__scrollPaddingTop"] body{
131
+ padding-top:var(--RS__scrollPaddingTop) !important;
132
+ }
133
+
134
+ :root[style*="readium-scroll-on"][style*="--RS__scrollPaddingBottom"] body{
135
+ padding-bottom:var(--RS__scrollPaddingBottom) !important;
136
+ }
137
+
138
+ :root[style*="readium-scroll-on"][style*="--RS__scrollPaddingLeft"] body{
139
+ padding-left:var(--RS__scrollPaddingLeft) !important;
140
+ }
141
+
142
+ :root[style*="readium-scroll-on"][style*="--RS__scrollPaddingRight"] body{
143
+ padding-right:var(--RS__scrollPaddingRight) !important;
144
+ }
145
+
146
+ :root[style*="--USER__backgroundColor"]{
147
+ background-color:var(--USER__backgroundColor) !important;
148
+ }
149
+
150
+ :root[style*="--USER__backgroundColor"] *{
151
+ background-color:transparent !important;
152
+ }
153
+
154
+ :root[style*="--USER__textColor"]{
155
+ color:var(--USER__textColor) !important;
156
+ }
157
+
158
+ :root[style*="--USER__textColor"] *:not(a){
159
+ color:inherit !important;
160
+ background-color:transparent !important;
161
+ border-color:currentcolor !important;
162
+ }
163
+
164
+ :root[style*="--USER__textColor"] svg text{
165
+ fill:currentcolor !important;
166
+ stroke:none !important;
167
+ }
168
+
169
+ :root[style*="--USER__linkColor"] a:link,
170
+ :root[style*="--USER__linkColor"] a:link *{
171
+ color:var(--USER__linkColor) !important;
172
+ }
173
+
174
+ :root[style*="--USER__visitedColor"] a:visited,
175
+ :root[style*="--USER__visitedColor"] a:visited *{
176
+ color:var(--USER__visitedColor) !important;
177
+ }
178
+
179
+ :root[style*="--USER__selectionBackgroundColor"][style*="--USER__selectionTextColor"] ::-moz-selection{
180
+ color:var(--USER__selectionTextColor) !important;
181
+ background-color:var(--USER__selectionBackgroundColor) !important;
182
+ }
183
+
184
+ :root[style*="--USER__selectionBackgroundColor"][style*="--USER__selectionTextColor"] ::selection{
185
+ color:var(--USER__selectionTextColor) !important;
186
+ background-color:var(--USER__selectionBackgroundColor) !important;
187
+ }
188
+
189
+ :root[style*="--USER__colCount"]{
190
+ -webkit-column-count:var(--USER__colCount);
191
+ -moz-column-count:var(--USER__colCount);
192
+ column-count:var(--USER__colCount);
193
+
194
+ --RS__colWidth:auto;
195
+ }
196
+
197
+ :root[style*="--USER__colCount: 0"],
198
+ :root[style*="--USER__colCount:0"]{
199
+ -webkit-column-count:1;
200
+ -moz-column-count:1;
201
+ column-count:1;
202
+ }
203
+
204
+ :root[style*="--USER__colCount: 0"],
205
+ :root[style*="--USER__colCount:0"],
206
+ :root[style*="--USER__colCount: 1"],
207
+ :root[style*="--USER__colCount:1"]{
208
+ --RS__colWidth:100vw;
209
+ }
210
+
211
+ :root[style*="--USER__lineLength"] body{
212
+ max-width:var(--USER__lineLength) !important;
213
+ }
214
+
215
+ :root[style*="--USER__textAlign"]{
216
+ text-align:var(--USER__textAlign);
217
+ }
218
+
219
+ :root[style*="--USER__textAlign"] body,
220
+ :root[style*="--USER__textAlign"] p:not(
221
+ blockquote p,
222
+ figcaption p,
223
+ header p,
224
+ hgroup p,
225
+ :root[style*="readium-experimentalHeaderFiltering-on"] p[class*="title"],
226
+ :root[style*="readium-experimentalHeaderFiltering-on"] div:has(+ *) > h1 + p,
227
+ :root[style*="readium-experimentalHeaderFiltering-on"] div:has(+ *) > p:has(+ h1)
228
+ ),
229
+ :root[style*="--USER__textAlign"] li,
230
+ :root[style*="--USER__textAlign"] dd{
231
+ text-align:var(--USER__textAlign) !important;
232
+ -moz-text-align-last:auto !important;
233
+ -epub-text-align-last:auto !important;
234
+ text-align-last:auto !important;
235
+ }
236
+
237
+ :root[style*="--USER__fontFamily"]{
238
+ font-family:var(--USER__fontFamily) !important;
239
+ }
240
+
241
+ :root[style*="--USER__fontFamily"] *{
242
+ font-family:revert !important;
243
+ }
244
+
245
+ :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] body{
246
+ zoom:var(--USER__fontSize) !important;
247
+ }
248
+
249
+ :root:not([style*="readium-deprecatedFontSize-on"])[style*="readium-iOSPatch-on"][style*="--USER__fontSize"] body{
250
+ -webkit-text-size-adjust:var(--USER__fontSize) !important;
251
+ }
252
+
253
+ @supports selector(figure:has(> img)){
254
+
255
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> img),
256
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> video),
257
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> svg),
258
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> canvas),
259
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> iframe),
260
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> audio),
261
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> img:only-child),
262
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> video:only-child),
263
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> svg:only-child),
264
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> canvas:only-child),
265
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> iframe:only-child),
266
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> audio:only-child),
267
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] table{
268
+ zoom:calc(100% / var(--USER__fontSize)) !important;
269
+ }
270
+
271
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figcaption,
272
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] caption,
273
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] td,
274
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] th{
275
+ zoom:var(--USER__fontSize) !important;
276
+ }
277
+ }
278
+
279
+ @supports not (zoom: 1){
280
+
281
+ :root[style*="--USER__fontSize"]{
282
+ font-size:var(--USER__fontSize) !important;
283
+ }
284
+ }
285
+
286
+ :root[style*="readium-deprecatedFontSize-on"][style*="--USER__fontSize"]{
287
+ font-size:var(--USER__fontSize) !important;
288
+ }
289
+
290
+ :root[style*="--USER__lineHeight"]{
291
+ line-height:var(--USER__lineHeight) !important;
292
+ }
293
+
294
+ :root[style*="--USER__lineHeight"] body,
295
+ :root[style*="--USER__lineHeight"] p,
296
+ :root[style*="--USER__lineHeight"] li,
297
+ :root[style*="--USER__lineHeight"] div{
298
+ line-height:inherit;
299
+ }
300
+
301
+ :root[style*="--USER__paraSpacing"] p{
302
+ margin-top:var(--USER__paraSpacing) !important;
303
+ margin-bottom:var(--USER__paraSpacing) !important;
304
+ }
305
+
306
+ :root[style*="--USER__paraIndent"] p:not(
307
+ blockquote p,
308
+ figcaption p,
309
+ header p,
310
+ hgroup p,
311
+ :root[style*="readium-experimentalHeaderFiltering-on"] p[class*="title"],
312
+ :root[style*="readium-experimentalHeaderFiltering-on"] div:has(+ *) > h1 + p,
313
+ :root[style*="readium-experimentalHeaderFiltering-on"] div:has(+ *) > p:has(+ h1)
314
+ ){
315
+ text-indent:var(--USER__paraIndent) !important;
316
+ }
317
+
318
+ :root[style*="--USER__paraIndent"] p *{
319
+ text-indent:0 !important;
320
+ }
321
+
322
+ :root[style*="--USER__wordSpacing"] h1,
323
+ :root[style*="--USER__wordSpacing"] h2,
324
+ :root[style*="--USER__wordSpacing"] h3,
325
+ :root[style*="--USER__wordSpacing"] h4,
326
+ :root[style*="--USER__wordSpacing"] h5,
327
+ :root[style*="--USER__wordSpacing"] h6,
328
+ :root[style*="--USER__wordSpacing"] p,
329
+ :root[style*="--USER__wordSpacing"] li,
330
+ :root[style*="--USER__wordSpacing"] div,
331
+ :root[style*="--USER__wordSpacing"] dt,
332
+ :root[style*="--USER__wordSpacing"] dd{
333
+ word-spacing:var(--USER__wordSpacing);
334
+ }
335
+
336
+ :root[style*="--USER__ligatures"]{
337
+ font-variant-ligatures:var(--USER__ligatures) !important;
338
+ }
339
+
340
+ :root[style*="--USER__ligatures"] *{
341
+ font-variant-ligatures:inherit !important;
342
+ }
343
+
344
+ :root[style*="--USER__fontWeight"] body{
345
+ font-weight:var(--USER__fontWeight) !important;
346
+ }
347
+
348
+ :root[style*="--USER__fontWeight"] b,
349
+ :root[style*="--USER__fontWeight"] strong{
350
+ font-weight:bolder;
351
+ }
352
+
353
+ :root[style*="--USER__fontWidth"] body{
354
+ font-stretch:var(--USER__fontWidth) !important;
355
+ }
356
+
357
+ :root[style*="--USER__fontOpticalSizing"] body{
358
+ font-optical-sizing:var(--USER__fontOpticalSizing) !important;
359
+ }
360
+
361
+ :root[style*="readium-blend-on"] svg,
362
+ :root[style*="readium-blend-on"] img{
363
+ background-color:transparent !important;
364
+ mix-blend-mode:multiply !important;
365
+ }
366
+
367
+ :root[style*="--USER__darkenImages"] img{
368
+ -webkit-filter:brightness(var(--USER__darkenImages)) !important;
369
+ filter:brightness(var(--USER__darkenImages)) !important;
370
+ }
371
+
372
+ :root[style*="readium-darken-on"] img{
373
+ -webkit-filter:brightness(80%) !important;
374
+ filter:brightness(80%) !important;
375
+ }
376
+
377
+ :root[style*="--USER__invertImages"] img{
378
+ -webkit-filter:invert(var(--USER__invertImages)) !important;
379
+ filter:invert(var(--USER__invertImages)) !important;
380
+ }
381
+
382
+ :root[style*="readium-invert-on"] img{
383
+ -webkit-filter:invert(100%) !important;
384
+ filter:invert(100%) !important;
385
+ }
386
+
387
+ :root[style*="--USER__darkenImages"][style*="--USER__invertImages"] img{
388
+ -webkit-filter:brightness(var(--USER__darkenImages)) invert(var(--USER__invertImages)) !important;
389
+ filter:brightness(var(--USER__darkenImages)) invert(var(--USER__invertImages)) !important;
390
+ }
391
+
392
+ :root[style*="readium-darken-on"][style*="--USER__invertImages"] img{
393
+ -webkit-filter:brightness(80%) invert(var(--USER__invertImages)) !important;
394
+ filter:brightness(80%) invert(var(--USER__invertImages)) !important;
395
+ }
396
+
397
+ :root[style*="--USER__darkenImages"][style*="readium-invert-on"] img{
398
+ -webkit-filter:brightness(var(--USER__darkenImages)) invert(100%) !important;
399
+ filter:brightness(var(--USER__darkenImages)) invert(100%) !important;
400
+ }
401
+
402
+ :root[style*="readium-darken-on"][style*="readium-invert-on"] img{
403
+ -webkit-filter:brightness(80%) invert(100%) !important;
404
+ filter:brightness(80%) invert(100%) !important;
405
+ }
406
+
407
+ :root[style*="--USER__invertGaiji"] img[class*="gaiji"]{
408
+ -webkit-filter:invert(var(--USER__invertGaiji)) !important;
409
+ filter:invert(var(--USER__invertGaiji)) !important;
410
+ }
411
+
412
+ :root[style*="readium-invertGaiji-on"] img[class*="gaiji"]{
413
+ -webkit-filter:invert(100%) !important;
414
+ filter:invert(100%) !important;
415
+ }
416
+
417
+ :root[style*="readium-normalize-on"]{
418
+ --USER__typeScale:1.2;
419
+ }
420
+
421
+ :root[style*="readium-normalize-on"] p,
422
+ :root[style*="readium-normalize-on"] li,
423
+ :root[style*="readium-normalize-on"] div,
424
+ :root[style*="readium-normalize-on"] pre,
425
+ :root[style*="readium-normalize-on"] dd{
426
+ font-size:1rem !important;
427
+ }
428
+
429
+ :root[style*="readium-normalize-on"] h1{
430
+ font-size:1.75rem !important;
431
+ font-size:calc(((1rem * var(--USER__typeScale)) * var(--USER__typeScale)) * var(--USER__typeScale)) !important;
432
+ }
433
+
434
+ :root[style*="readium-normalize-on"] h2{
435
+ font-size:1.5rem !important;
436
+ font-size:calc((1rem * var(--USER__typeScale)) * var(--USER__typeScale)) !important;
437
+ }
438
+
439
+ :root[style*="readium-normalize-on"] h3{
440
+ font-size:1.25rem !important;
441
+ font-size:calc(1rem * var(--USER__typeScale)) !important;
442
+ }
443
+
444
+ :root[style*="readium-normalize-on"] h4,
445
+ :root[style*="readium-normalize-on"] h5,
446
+ :root[style*="readium-normalize-on"] h6{
447
+ font-size:1rem !important;
448
+ }
449
+
450
+ :root[style*="readium-normalize-on"] small{
451
+ font-size:smaller !important;
452
+ }
453
+
454
+ :root[style*="readium-normalize-on"] sub,
455
+ :root[style*="readium-normalize-on"] sup{
456
+ font-size:67.5% !important;
457
+ }
458
+
459
+ :root[style*="readium-normalize-on"][style*="--USER__typeScale"] h1{
460
+ font-size:calc(((1rem * var(--USER__typeScale)) * var(--USER__typeScale)) * var(--USER__typeScale)) !important;
461
+ }
462
+
463
+ :root[style*="readium-normalize-on"][style*="--USER__typeScale"] h2{
464
+ font-size:calc((1rem * var(--USER__typeScale)) * var(--USER__typeScale)) !important;
465
+ }
466
+
467
+ :root[style*="readium-normalize-on"][style*="--USER__typeScale"] h3{
468
+ font-size:calc(1rem * var(--USER__typeScale)) !important;
469
+ }
470
+
471
+ :root[style*="readium-iPadOSPatch-on"] body{
472
+ -webkit-text-size-adjust:none;
473
+ }
474
+
475
+ :root[style*="readium-iPadOSPatch-on"] p,
476
+ :root[style*="readium-iPadOSPatch-on"] h1,
477
+ :root[style*="readium-iPadOSPatch-on"] h2,
478
+ :root[style*="readium-iPadOSPatch-on"] h3,
479
+ :root[style*="readium-iPadOSPatch-on"] h4,
480
+ :root[style*="readium-iPadOSPatch-on"] h5,
481
+ :root[style*="readium-iPadOSPatch-on"] h6,
482
+ :root[style*="readium-iPadOSPatch-on"] li,
483
+ :root[style*="readium-iPadOSPatch-on"] th,
484
+ :root[style*="readium-iPadOSPatch-on"] td,
485
+ :root[style*="readium-iPadOSPatch-on"] dt,
486
+ :root[style*="readium-iPadOSPatch-on"] dd,
487
+ :root[style*="readium-iPadOSPatch-on"] pre,
488
+ :root[style*="readium-iPadOSPatch-on"] address,
489
+ :root[style*="readium-iPadOSPatch-on"] details,
490
+ :root[style*="readium-iPadOSPatch-on"] summary,
491
+ :root[style*="readium-iPadOSPatch-on"] figcaption,
492
+ :root[style*="readium-iPadOSPatch-on"] div:not(:has(p, h1, h2, h3, h4, h5, h6, li, th, td, dt, dd, pre, address, aside, details, figcaption, summary)),
493
+ :root[style*="readium-iPadOSPatch-on"] aside:not(:has(p, h1, h2, h3, h4, h5, h6, li, th, td, dt, dd, pre, address, aside, details, figcaption, summary)){
494
+ -webkit-text-zoom:reset;
495
+ }
496
+
497
+ :root[style*="readium-iPadOSPatch-on"] abbr,
498
+ :root[style*="readium-iPadOSPatch-on"] b,
499
+ :root[style*="readium-iPadOSPatch-on"] bdi,
500
+ :root[style*="readium-iPadOSPatch-on"] bdo,
501
+ :root[style*="readium-iPadOSPatch-on"] cite,
502
+ :root[style*="readium-iPadOSPatch-on"] code,
503
+ :root[style*="readium-iPadOSPatch-on"] dfn,
504
+ :root[style*="readium-iPadOSPatch-on"] em,
505
+ :root[style*="readium-iPadOSPatch-on"] i,
506
+ :root[style*="readium-iPadOSPatch-on"] kbd,
507
+ :root[style*="readium-iPadOSPatch-on"] mark,
508
+ :root[style*="readium-iPadOSPatch-on"] q,
509
+ :root[style*="readium-iPadOSPatch-on"] rp,
510
+ :root[style*="readium-iPadOSPatch-on"] rt,
511
+ :root[style*="readium-iPadOSPatch-on"] ruby,
512
+ :root[style*="readium-iPadOSPatch-on"] s,
513
+ :root[style*="readium-iPadOSPatch-on"] samp,
514
+ :root[style*="readium-iPadOSPatch-on"] small,
515
+ :root[style*="readium-iPadOSPatch-on"] span,
516
+ :root[style*="readium-iPadOSPatch-on"] strong,
517
+ :root[style*="readium-iPadOSPatch-on"] sub,
518
+ :root[style*="readium-iPadOSPatch-on"] sup,
519
+ :root[style*="readium-iPadOSPatch-on"] time,
520
+ :root[style*="readium-iPadOSPatch-on"] u,
521
+ :root[style*="readium-iPadOSPatch-on"] var{
522
+ -webkit-text-zoom:normal;
523
+ }
524
+
525
+ :root[style*="readium-iPadOSPatch-on"] p:not(:has(b, cite, em, i, q, s, small, span, strong)):first-line{
526
+ -webkit-text-zoom:normal;
527
+ }`;
528
+ export {
529
+ n as default
530
+ };