@ankhorage/zora 23.4.3 → 24.0.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 (268) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/dist/constants/authoring.d.ts +3 -3
  4. package/dist/constants/authoring.d.ts.map +1 -1
  5. package/dist/constants/authoring.js +1 -1
  6. package/dist/constants/authoring.js.map +1 -1
  7. package/dist/features/accordion/accordionItemMeta.d.ts +1 -1
  8. package/dist/features/bottom-sheet/bottomSheetMeta.d.ts +1 -1
  9. package/dist/features/card/cardMeta.d.ts +1 -1
  10. package/dist/features/card/mediaCardMeta.d.ts +1 -1
  11. package/dist/features/card/postCardMeta.d.ts +1 -1
  12. package/dist/features/chat/messageBubbleMeta.d.ts +1 -1
  13. package/dist/features/dialog/dialogMeta.d.ts +2 -2
  14. package/dist/features/gradient/gradientMeta.d.ts +1 -1
  15. package/dist/features/keyboard-avoiding-view/keyboardAvoidingViewMeta.d.ts +1 -1
  16. package/dist/features/layout/gridMeta.d.ts +1 -1
  17. package/dist/features/layout/screenMeta.d.ts +1 -1
  18. package/dist/features/layout/scrollViewMeta.d.ts +1 -1
  19. package/dist/features/layout/viewMeta.d.ts +1 -1
  20. package/dist/features/list/flatListMeta.d.ts +1 -1
  21. package/dist/features/list/sectionListMeta.d.ts +1 -1
  22. package/dist/features/reader/adapters/inbound/Reader.d.ts +9 -0
  23. package/dist/features/reader/adapters/inbound/Reader.d.ts.map +1 -0
  24. package/dist/features/reader/adapters/inbound/{ReaderSurface.js → Reader.js} +33 -9
  25. package/dist/features/reader/adapters/inbound/Reader.js.map +1 -0
  26. package/dist/features/reader/composition/useReaderController.d.ts +24 -0
  27. package/dist/features/reader/composition/useReaderController.d.ts.map +1 -0
  28. package/dist/features/reader/composition/useReaderController.js +73 -0
  29. package/dist/features/reader/composition/useReaderController.js.map +1 -0
  30. package/dist/features/reader/meta.d.ts +5 -9
  31. package/dist/features/reader/meta.d.ts.map +1 -1
  32. package/dist/features/reader/meta.js +3 -7
  33. package/dist/features/reader/meta.js.map +1 -1
  34. package/dist/features/reader/public.d.ts +2 -2
  35. package/dist/features/reader/public.d.ts.map +1 -1
  36. package/dist/features/reader/public.js +1 -1
  37. package/dist/features/reader/public.js.map +1 -1
  38. package/dist/features/registry/ZORA_COMPONENT_REGISTRY.js +2 -2
  39. package/dist/features/registry/ZORA_COMPONENT_REGISTRY.js.map +1 -1
  40. package/dist/features/registry/bindableComponentMeta.d.ts +5 -9
  41. package/dist/features/registry/bindableComponentMeta.d.ts.map +1 -1
  42. package/dist/features/registry/bindableComponentMeta.js +4 -4
  43. package/dist/features/registry/bindableComponentMeta.js.map +1 -1
  44. package/dist/features/registry/componentMeta.js +2 -2
  45. package/dist/features/registry/componentMeta.js.map +1 -1
  46. package/dist/features/scanner/meta.d.ts +2 -2
  47. package/dist/features/section/screenSectionMeta.d.ts +1 -1
  48. package/dist/features/surface/surfaceMeta.d.ts +1 -1
  49. package/dist/features/tabs/tabPanelMeta.d.ts +1 -1
  50. package/dist/index.d.ts +2 -2
  51. package/dist/index.d.ts.map +1 -1
  52. package/dist/index.js +1 -1
  53. package/dist/index.js.map +1 -1
  54. package/dist/types/reader.d.ts +3 -21
  55. package/dist/types/reader.d.ts.map +1 -1
  56. package/dist/types/reader.js.map +1 -1
  57. package/package.json +4 -3
  58. package/src/constants/authoring.ts +1 -1
  59. package/src/features/reader/adapters/inbound/{ReaderSurface.test.ts → Reader.test.ts} +6 -5
  60. package/src/features/reader/adapters/inbound/{ReaderSurface.tsx → Reader.tsx} +67 -33
  61. package/src/features/reader/composition/useReaderController.ts +110 -0
  62. package/src/features/reader/meta.ts +3 -8
  63. package/src/features/reader/public.ts +2 -2
  64. package/src/features/reader/utils/resolveReaderProgress.test.ts +1 -1
  65. package/src/features/registry/ZORA_COMPONENT_REGISTRY.ts +2 -2
  66. package/src/features/registry/bindableComponentMeta.test.ts +2 -2
  67. package/src/features/registry/bindableComponentMeta.ts +4 -4
  68. package/src/features/registry/componentMeta.test.ts +5 -5
  69. package/src/features/registry/componentMeta.ts +2 -2
  70. package/src/index.ts +2 -2
  71. package/src/interactionPolicy.test.ts +3 -3
  72. package/src/showcaseCoverage.test.ts +1 -1
  73. package/src/types/reader.ts +16 -29
  74. package/web-dist/chunks/{Accordion-ct805sm7.js → Accordion-0acrkcyd.js} +3 -3
  75. package/web-dist/chunks/{Accordion-m4brcz8v.js → Accordion-122fdtp0.js} +6 -6
  76. package/web-dist/chunks/{Accordion-6xrse5my.js → Accordion-1dah5bqg.js} +1 -1
  77. package/web-dist/chunks/{Accordion-yae3m7g7.js → Accordion-2afa2z5x.js} +4 -4
  78. package/web-dist/chunks/{Accordion-0047zyx7.js → Accordion-2bsecqwf.js} +4 -4
  79. package/web-dist/chunks/{Accordion-basd2gyf.js → Accordion-2csc57rv.js} +2 -2
  80. package/web-dist/chunks/{Accordion-73x0gt11.js → Accordion-2d3hbryv.js} +7 -7
  81. package/web-dist/chunks/{Accordion-8fne0gf9.js → Accordion-2q6p67xe.js} +5 -5
  82. package/web-dist/chunks/{Accordion-axxgq453.js → Accordion-3f5vnfk8.js} +7 -7
  83. package/web-dist/chunks/{Accordion-gkx1kszz.js → Accordion-3hg1wprb.js} +2 -2
  84. package/web-dist/chunks/{Accordion-d24n7srd.js → Accordion-3rv8psbv.js} +4 -4
  85. package/web-dist/chunks/{Accordion-8z7naxj2.js → Accordion-74rt38d4.js} +1 -1
  86. package/web-dist/chunks/{Accordion-2dqpjya2.js → Accordion-7bb37pdc.js} +7 -7
  87. package/web-dist/chunks/{Accordion-adc7k14q.js → Accordion-7q1qf7c0.js} +5 -5
  88. package/web-dist/chunks/{Accordion-zgzrah0a.js → Accordion-7rvtpcwt.js} +6 -6
  89. package/web-dist/chunks/{Accordion-a1ervhyg.js → Accordion-9rhbc32v.js} +14 -14
  90. package/web-dist/chunks/{Accordion-37n4bt3g.js → Accordion-ae7m1dkn.js} +2 -2
  91. package/web-dist/chunks/{Accordion-ekjwm5dw.js → Accordion-ansfkmye.js} +4 -4
  92. package/web-dist/chunks/{Accordion-qyssgtwe.js → Accordion-apwk2wjr.js} +2 -2
  93. package/web-dist/chunks/{Accordion-vjgk1sz7.js → Accordion-avnt7nkz.js} +2 -2
  94. package/web-dist/chunks/{Accordion-wxbh98kp.js → Accordion-brt4drx3.js} +9 -9
  95. package/web-dist/chunks/{Accordion-6ytrt7xj.js → Accordion-cs8k948c.js} +6 -6
  96. package/web-dist/chunks/{Accordion-693gvpde.js → Accordion-egq42kdy.js} +4 -4
  97. package/web-dist/chunks/{Accordion-8bxy3g7a.js → Accordion-fvkwq99h.js} +4 -4
  98. package/web-dist/chunks/{Accordion-mbqtk7y0.js → Accordion-g0c439br.js} +2 -2
  99. package/web-dist/chunks/{Accordion-3m6de80j.js → Accordion-h46676ex.js} +2 -2
  100. package/web-dist/chunks/{Accordion-7y9wt946.js → Accordion-hwd5ntgm.js} +2 -2
  101. package/web-dist/chunks/{Accordion-k6dg8zd2.js → Accordion-jdwwf626.js} +3 -3
  102. package/web-dist/chunks/{Accordion-q9zge7kd.js → Accordion-jkhq422b.js} +2 -2
  103. package/web-dist/chunks/{Accordion-p0fh69qq.js → Accordion-jtrpmvzs.js} +6 -6
  104. package/web-dist/chunks/{Accordion-tdjh81ax.js → Accordion-k8tfv274.js} +6 -6
  105. package/web-dist/chunks/{Accordion-1xpq9bxk.js → Accordion-kcwdwd5z.js} +8 -8
  106. package/web-dist/chunks/{Accordion-v4n4ygwn.js → Accordion-kpap0trj.js} +1 -1
  107. package/web-dist/chunks/{Accordion-rmp9sfra.js → Accordion-kpxyryke.js} +2 -2
  108. package/web-dist/chunks/{Accordion-wgesygtk.js → Accordion-mdc214tk.js} +11 -11
  109. package/web-dist/chunks/{Accordion-nkd7nhyx.js → Accordion-nanvzve9.js} +5 -5
  110. package/web-dist/chunks/{Accordion-ph15h010.js → Accordion-nay7yexy.js} +11 -11
  111. package/web-dist/chunks/{Accordion-9qvmwkxe.js → Accordion-nh0cs9hq.js} +31 -1
  112. package/web-dist/chunks/{Accordion-snyacfyh.js → Accordion-nj9g6p48.js} +9 -9
  113. package/web-dist/chunks/{Accordion-dbxpv5eq.js → Accordion-q1mnv5g8.js} +4 -4
  114. package/web-dist/chunks/{Accordion-1e1nfhtc.js → Accordion-qj4qxx1p.js} +6 -6
  115. package/web-dist/chunks/{Accordion-bz2dzbad.js → Accordion-qsxx5q34.js} +10 -10
  116. package/web-dist/chunks/{Accordion-ancjf7q8.js → Accordion-rg763dfb.js} +4 -4
  117. package/web-dist/chunks/{Accordion-g2d4fskg.js → Accordion-rkt7qdmj.js} +2 -2
  118. package/web-dist/chunks/{Accordion-pvz3r99n.js → Accordion-sek2q4r1.js} +1 -1
  119. package/web-dist/chunks/{Accordion-0yhkg017.js → Accordion-sxfqnnx6.js} +10 -10
  120. package/web-dist/chunks/{Accordion-wytj5wwc.js → Accordion-sxzax4x4.js} +4 -4
  121. package/web-dist/chunks/{Accordion-e2kr1z3g.js → Accordion-t3hm5tcv.js} +6 -6
  122. package/web-dist/chunks/{Accordion-0yvepteg.js → Accordion-vewrj1kr.js} +6 -6
  123. package/web-dist/chunks/Accordion-vgkvvdvg.js +4295 -0
  124. package/web-dist/chunks/{Accordion-kxa15n19.js → Accordion-x3tphbvw.js} +1 -1
  125. package/web-dist/chunks/{Accordion-ebw6xj6x.js → Accordion-x5v1p4df.js} +5 -5
  126. package/web-dist/chunks/{Accordion-70g7n6tk.js → Accordion-y2eyyqrk.js} +9 -9
  127. package/web-dist/chunks/ReadiumCSS-after.css-2389epxb.js +477 -0
  128. package/web-dist/chunks/ReadiumCSS-after.css-8se5z2w3.js +492 -0
  129. package/web-dist/chunks/ReadiumCSS-after.css-x15y26r7.js +532 -0
  130. package/web-dist/chunks/ReadiumCSS-after.css-z23c32jh.js +594 -0
  131. package/web-dist/chunks/ReadiumCSS-before.css-1t98py7y.js +531 -0
  132. package/web-dist/chunks/ReadiumCSS-before.css-hszzyv5p.js +531 -0
  133. package/web-dist/chunks/ReadiumCSS-before.css-mjvegqjq.js +532 -0
  134. package/web-dist/chunks/ReadiumCSS-before.css-pnpxcrwx.js +531 -0
  135. package/web-dist/chunks/ReadiumCSS-default.css-8gxjy9na.js +185 -0
  136. package/web-dist/chunks/ReadiumCSS-default.css-m8ts96nj.js +182 -0
  137. package/web-dist/chunks/ReadiumCSS-default.css-rg94gstv.js +164 -0
  138. package/web-dist/chunks/ReadiumCSS-default.css-y8p5hk56.js +164 -0
  139. package/web-dist/chunks/ReadiumCSS-ebpaj_fonts_patch.css-50yy1az9.js +84 -0
  140. package/web-dist/chunks/zip-reader-f0yphjb9.js +103 -0
  141. package/web-dist/components/accordion/Accordion.js +12 -12
  142. package/web-dist/components/accordion-item/AccordionItem.js +12 -12
  143. package/web-dist/components/activity-indicator/ActivityIndicator.js +4 -4
  144. package/web-dist/components/app-bar/AppBar.js +19 -19
  145. package/web-dist/components/app-header/AppHeader.js +19 -19
  146. package/web-dist/components/app-shell/AppShell.js +6 -6
  147. package/web-dist/components/auth-screen/AuthScreen.js +21 -21
  148. package/web-dist/components/avatar/Avatar.js +12 -12
  149. package/web-dist/components/avatar-group/AvatarGroup.js +12 -12
  150. package/web-dist/components/badge/Badge.js +7 -7
  151. package/web-dist/components/barcode-scanner-view/BarcodeScannerView.js +20 -20
  152. package/web-dist/components/bottom-sheet/BottomSheet.js +8 -8
  153. package/web-dist/components/bottom-sheet-flat-list/BottomSheetFlatList.js +8 -8
  154. package/web-dist/components/bottom-sheet-scroll-view/BottomSheetScrollView.js +8 -8
  155. package/web-dist/components/bottom-sheet-section-list/BottomSheetSectionList.js +8 -8
  156. package/web-dist/components/bottom-sheet-view/BottomSheetView.js +8 -8
  157. package/web-dist/components/bottom-sheet-virtualized-list/BottomSheetVirtualizedList.js +8 -8
  158. package/web-dist/components/breadcrumbs/Breadcrumbs.js +14 -14
  159. package/web-dist/components/button/Button.js +12 -12
  160. package/web-dist/components/button-group/ButtonGroup.js +12 -12
  161. package/web-dist/components/camera-permission-view/CameraPermissionView.js +20 -20
  162. package/web-dist/components/card/Card.js +19 -19
  163. package/web-dist/components/card-back/CardBack.js +4 -4
  164. package/web-dist/components/card-hand/CardHand.js +4 -4
  165. package/web-dist/components/chat-list-item/ChatListItem.js +16 -16
  166. package/web-dist/components/checkbox/Checkbox.js +12 -12
  167. package/web-dist/components/checkbox-group/CheckboxGroup.js +12 -12
  168. package/web-dist/components/chess-board/ChessBoard.js +4 -4
  169. package/web-dist/components/chip/Chip.js +13 -13
  170. package/web-dist/components/chip-group/ChipGroup.js +13 -13
  171. package/web-dist/components/collection-editor/CollectionEditor.js +19 -19
  172. package/web-dist/components/content-rail/ContentRail.js +14 -14
  173. package/web-dist/components/data-table/DataTable.js +27 -27
  174. package/web-dist/components/date-picker/DatePicker.js +17 -17
  175. package/web-dist/components/dialog/Dialog.js +12 -12
  176. package/web-dist/components/divider/Divider.js +6 -6
  177. package/web-dist/components/empty-state/EmptyState.js +20 -20
  178. package/web-dist/components/field/Field.js +12 -12
  179. package/web-dist/components/flat-list/FlatList.js +13 -13
  180. package/web-dist/components/forgot-password-form/ForgotPasswordForm.js +21 -21
  181. package/web-dist/components/form/Form.js +16 -16
  182. package/web-dist/components/form-actions/FormActions.js +16 -16
  183. package/web-dist/components/form-error/FormError.js +16 -16
  184. package/web-dist/components/game/Game.js +7 -7
  185. package/web-dist/components/game-entity/GameEntity.js +7 -7
  186. package/web-dist/components/game-field/GameField.js +7 -7
  187. package/web-dist/components/game-input-zone/GameInputZone.js +7 -7
  188. package/web-dist/components/game-measurement-probe/GameMeasurementProbe.js +7 -7
  189. package/web-dist/components/game-overlay/GameOverlay.js +7 -7
  190. package/web-dist/components/gradient/Gradient.js +7 -7
  191. package/web-dist/components/gradient-renderer-provider/GradientRendererProvider.js +7 -7
  192. package/web-dist/components/graph-view/GraphView.js +1 -1
  193. package/web-dist/components/grid/Grid.js +6 -6
  194. package/web-dist/components/heading/Heading.js +6 -6
  195. package/web-dist/components/hero/Hero.js +19 -19
  196. package/web-dist/components/icon/Icon.js +4 -4
  197. package/web-dist/components/icon-button/IconButton.js +12 -12
  198. package/web-dist/components/image/Image.js +10 -10
  199. package/web-dist/components/keyboard-avoiding-view/KeyboardAvoidingView.js +3 -3
  200. package/web-dist/components/list/List.js +13 -13
  201. package/web-dist/components/list-item/ListItem.js +13 -13
  202. package/web-dist/components/list-section/ListSection.js +13 -13
  203. package/web-dist/components/media-card/MediaCard.js +19 -19
  204. package/web-dist/components/message-bubble/MessageBubble.js +16 -16
  205. package/web-dist/components/metric-card/MetricCard.js +19 -19
  206. package/web-dist/components/missing-element/MissingElement.js +12 -12
  207. package/web-dist/components/o-auth-provider-button/OAuthProviderButton.js +21 -21
  208. package/web-dist/components/o-auth-provider-list/OAuthProviderList.js +21 -21
  209. package/web-dist/components/opening-book/OpeningBook.js +4 -4
  210. package/web-dist/components/otp-form/OtpForm.js +21 -21
  211. package/web-dist/components/pagination/Pagination.js +13 -13
  212. package/web-dist/components/palette-item/PaletteItem.js +19 -19
  213. package/web-dist/components/playing-card/PlayingCard.js +4 -4
  214. package/web-dist/components/poker-training-table/PokerTrainingTable.js +4 -4
  215. package/web-dist/components/popover-menu/PopoverMenu.js +14 -14
  216. package/web-dist/components/post-card/PostCard.js +19 -19
  217. package/web-dist/components/product-card/ProductCard.js +19 -19
  218. package/web-dist/components/progress/Progress.js +10 -10
  219. package/web-dist/components/progress-ring/ProgressRing.js +10 -10
  220. package/web-dist/components/radio/Radio.js +14 -14
  221. package/web-dist/components/radio-group/RadioGroup.js +14 -14
  222. package/web-dist/components/rating/Rating.js +9 -9
  223. package/web-dist/components/reader/Reader.d.ts +3 -0
  224. package/web-dist/components/reader/Reader.js +38562 -0
  225. package/web-dist/components/reader/index.d.ts +1 -0
  226. package/web-dist/components/reader/index.js +2 -0
  227. package/web-dist/components/scan-overlay/ScanOverlay.js +20 -20
  228. package/web-dist/components/screen/Screen.js +6 -6
  229. package/web-dist/components/screen-section/ScreenSection.js +10 -10
  230. package/web-dist/components/scroll-view/ScrollView.js +6 -6
  231. package/web-dist/components/search-input/SearchInput.js +13 -13
  232. package/web-dist/components/section-header/SectionHeader.js +10 -10
  233. package/web-dist/components/section-list/SectionList.js +13 -13
  234. package/web-dist/components/select/Select.js +16 -16
  235. package/web-dist/components/selectable-item/SelectableItem.js +6 -6
  236. package/web-dist/components/selection-provider/SelectionProvider.js +6 -6
  237. package/web-dist/components/sign-in-form/SignInForm.js +21 -21
  238. package/web-dist/components/sign-up-form/SignUpForm.js +21 -21
  239. package/web-dist/components/skeleton/Skeleton.js +22 -22
  240. package/web-dist/components/skeleton-card/SkeletonCard.js +22 -22
  241. package/web-dist/components/skeleton-list/SkeletonList.js +22 -22
  242. package/web-dist/components/skeleton-text/SkeletonText.js +22 -22
  243. package/web-dist/components/surface/Surface.js +7 -7
  244. package/web-dist/components/switch/Switch.js +7 -7
  245. package/web-dist/components/tab/Tab.js +7 -7
  246. package/web-dist/components/tab-list/TabList.js +7 -7
  247. package/web-dist/components/tab-panel/TabPanel.js +7 -7
  248. package/web-dist/components/tabletop-table/TabletopTable.js +4 -4
  249. package/web-dist/components/tabs/Tabs.js +7 -7
  250. package/web-dist/components/text/Text.js +6 -6
  251. package/web-dist/components/text-input/TextInput.js +13 -13
  252. package/web-dist/components/time-picker/TimePicker.js +18 -18
  253. package/web-dist/components/timeline/Timeline.js +11 -11
  254. package/web-dist/components/toast/Toast.js +9 -9
  255. package/web-dist/components/toast-provider/ToastProvider.js +9 -9
  256. package/web-dist/components/toolbar/Toolbar.js +19 -19
  257. package/web-dist/components/tree-item/TreeItem.js +18 -18
  258. package/web-dist/components/uploader/Uploader.js +22 -22
  259. package/web-dist/components/view/View.js +6 -6
  260. package/web-dist/manifest.json +1615 -1601
  261. package/web-dist/runtime/ZoraProvider.js +9 -9
  262. package/dist/features/reader/adapters/inbound/ReaderSurface.d.ts +0 -11
  263. package/dist/features/reader/adapters/inbound/ReaderSurface.d.ts.map +0 -1
  264. package/dist/features/reader/adapters/inbound/ReaderSurface.js.map +0 -1
  265. package/web-dist/components/reader-surface/ReaderSurface.d.ts +0 -3
  266. package/web-dist/components/reader-surface/ReaderSurface.js +0 -360
  267. package/web-dist/components/reader-surface/index.d.ts +0 -1
  268. package/web-dist/components/reader-surface/index.js +0 -2
@@ -0,0 +1,492 @@
1
+ 'use client';
2
+ // node_modules/@readium/navigator/dist/node_modules/.pnpm/@readium_css@2.0.5/node_modules/@readium/css/css/dist/cjk-horizontal/ReadiumCSS-after.css.js
3
+ var t = `/*!
4
+ * Readium CSS v.2.0.5
5
+ * Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
6
+ * Use of this source code is governed by a BSD-style license which is detailed in the
7
+ * LICENSE file present in the project repository where this source code is maintained.
8
+ * Core maintainer: Jiminy Panoz <jiminy.panoz@edrlab.org>
9
+ * Contributors:
10
+ * Daniel Weck
11
+ * Hadrien Gardeur
12
+ * Innovimax
13
+ * L. Le Meur
14
+ * Mickaël Menu
15
+ * k_taka
16
+ */
17
+
18
+ @namespace url("http://www.w3.org/1999/xhtml");
19
+
20
+ @namespace epub url("http://www.idpf.org/2007/ops");
21
+
22
+ @namespace m url("http://www.w3.org/1998/Math/MathML");
23
+
24
+ @namespace svg url("http://www.w3.org/2000/svg");
25
+
26
+ :root{
27
+
28
+ --RS__viewportWidth:100%;
29
+
30
+ --RS__pageGutter:0;
31
+
32
+ --RS__defaultLineLength:100%;
33
+
34
+ --RS__colGap:0;
35
+
36
+ --RS__colCount:1;
37
+
38
+ --RS__colWidth:100vw;
39
+ }
40
+
41
+ @page{
42
+ margin:0 !important;
43
+ }
44
+
45
+ :root{
46
+ position:relative;
47
+
48
+ -webkit-column-width:var(--RS__colWidth);
49
+ -moz-column-width:var(--RS__colWidth);
50
+ column-width:var(--RS__colWidth);
51
+ -webkit-column-count:var(--RS__colCount);
52
+ -moz-column-count:var(--RS__colCount);
53
+ column-count:var(--RS__colCount);
54
+
55
+ -webkit-column-gap:var(--RS__colGap);
56
+ -moz-column-gap:var(--RS__colGap);
57
+ column-gap:var(--RS__colGap);
58
+ -moz-column-fill:auto;
59
+ column-fill:auto;
60
+ width:var(--RS__viewportWidth);
61
+ height:100vh;
62
+ max-width:var(--RS__viewportWidth);
63
+ max-height:100vh;
64
+ min-width:var(--RS__viewportWidth);
65
+ min-height:100vh;
66
+ padding:0 !important;
67
+ margin:0 !important;
68
+ font-size:1rem !important;
69
+ box-sizing:border-box;
70
+ -webkit-touch-callout:none;
71
+ }
72
+
73
+ body{
74
+ width:100%;
75
+ max-width:var(--RS__defaultLineLength) !important;
76
+ margin:0 auto !important;
77
+ box-sizing:border-box;
78
+ }
79
+
80
+ :root:not([style*="readium-scroll-on"]) body{
81
+ padding:0 var(--RS__pageGutter) !important;
82
+ }
83
+
84
+ :root:not([style*="readium-noOverflow-on"]) body{
85
+ overflow:hidden;
86
+ }
87
+
88
+ @supports (overflow: clip){
89
+
90
+ :root:not([style*="readium-noOverflow-on"]){
91
+ overflow:clip;
92
+ }
93
+
94
+ :root:not([style*="readium-noOverflow-on"]) body{
95
+ overflow:clip;
96
+ overflow-clip-margin:content-box;
97
+ }
98
+ }
99
+
100
+ :root[style*="readium-scroll-on"]{
101
+ -webkit-columns:auto auto !important;
102
+ -moz-columns:auto auto !important;
103
+ columns:auto auto !important;
104
+ width:auto !important;
105
+ height:auto !important;
106
+ max-width:none !important;
107
+ max-height:none !important;
108
+ min-width:0 !important;
109
+ min-height:0 !important;
110
+ }
111
+
112
+ :root[style*="readium-scroll-on"] body{
113
+ max-width:var(--RS__defaultLineLength) !important;
114
+ box-sizing:border-box !important;
115
+ }
116
+
117
+ :root[style*="readium-scroll-on"]:not([style*="readium-noOverflow-on"]) body{
118
+ overflow:auto;
119
+ }
120
+
121
+ @supports (overflow: clip){
122
+
123
+ :root[style*="readium-scroll-on"]:not([style*="readium-noOverflow-on"]){
124
+ overflow:auto;
125
+ }
126
+
127
+ :root[style*="readium-scroll-on"]:not([style*="readium-noOverflow-on"]) body{
128
+ overflow:clip;
129
+ }
130
+ }
131
+
132
+ :root[style*="readium-scroll-on"][style*="--RS__scrollPaddingTop"] body{
133
+ padding-top:var(--RS__scrollPaddingTop) !important;
134
+ }
135
+
136
+ :root[style*="readium-scroll-on"][style*="--RS__scrollPaddingBottom"] body{
137
+ padding-bottom:var(--RS__scrollPaddingBottom) !important;
138
+ }
139
+
140
+ :root[style*="readium-scroll-on"][style*="--RS__scrollPaddingLeft"] body{
141
+ padding-left:var(--RS__scrollPaddingLeft) !important;
142
+ }
143
+
144
+ :root[style*="readium-scroll-on"][style*="--RS__scrollPaddingRight"] body{
145
+ padding-right:var(--RS__scrollPaddingRight) !important;
146
+ }
147
+
148
+ :root[style*="--USER__backgroundColor"]{
149
+ background-color:var(--USER__backgroundColor) !important;
150
+ }
151
+
152
+ :root[style*="--USER__backgroundColor"] *{
153
+ background-color:transparent !important;
154
+ }
155
+
156
+ :root[style*="--USER__textColor"]{
157
+ color:var(--USER__textColor) !important;
158
+ }
159
+
160
+ :root[style*="--USER__textColor"] *:not(a){
161
+ color:inherit !important;
162
+ background-color:transparent !important;
163
+ border-color:currentcolor !important;
164
+ }
165
+
166
+ :root[style*="--USER__textColor"] svg text{
167
+ fill:currentcolor !important;
168
+ stroke:none !important;
169
+ }
170
+
171
+ :root[style*="--USER__linkColor"] a:link,
172
+ :root[style*="--USER__linkColor"] a:link *{
173
+ color:var(--USER__linkColor) !important;
174
+ }
175
+
176
+ :root[style*="--USER__visitedColor"] a:visited,
177
+ :root[style*="--USER__visitedColor"] a:visited *{
178
+ color:var(--USER__visitedColor) !important;
179
+ }
180
+
181
+ :root[style*="--USER__selectionBackgroundColor"][style*="--USER__selectionTextColor"] ::-moz-selection{
182
+ color:var(--USER__selectionTextColor) !important;
183
+ background-color:var(--USER__selectionBackgroundColor) !important;
184
+ }
185
+
186
+ :root[style*="--USER__selectionBackgroundColor"][style*="--USER__selectionTextColor"] ::selection{
187
+ color:var(--USER__selectionTextColor) !important;
188
+ background-color:var(--USER__selectionBackgroundColor) !important;
189
+ }
190
+
191
+ :root[style*="--USER__colCount"]{
192
+ -webkit-column-count:var(--USER__colCount);
193
+ -moz-column-count:var(--USER__colCount);
194
+ column-count:var(--USER__colCount);
195
+
196
+ --RS__colWidth:auto;
197
+ }
198
+
199
+ :root[style*="--USER__colCount: 0"],
200
+ :root[style*="--USER__colCount:0"]{
201
+ -webkit-column-count:1;
202
+ -moz-column-count:1;
203
+ column-count:1;
204
+ }
205
+
206
+ :root[style*="--USER__colCount: 0"],
207
+ :root[style*="--USER__colCount:0"],
208
+ :root[style*="--USER__colCount: 1"],
209
+ :root[style*="--USER__colCount:1"]{
210
+ --RS__colWidth:100vw;
211
+ }
212
+
213
+ :root[style*="--USER__lineLength"] body{
214
+ max-width:var(--USER__lineLength) !important;
215
+ }
216
+
217
+ :root[style*="--USER__fontFamily"]{
218
+ font-family:var(--USER__fontFamily) !important;
219
+ }
220
+
221
+ :root[style*="--USER__fontFamily"] *{
222
+ font-family:revert !important;
223
+ }
224
+
225
+ :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] body{
226
+ zoom:var(--USER__fontSize) !important;
227
+ }
228
+
229
+ :root:not([style*="readium-deprecatedFontSize-on"])[style*="readium-iOSPatch-on"][style*="--USER__fontSize"] body{
230
+ -webkit-text-size-adjust:var(--USER__fontSize) !important;
231
+ }
232
+
233
+ @supports selector(figure:has(> img)){
234
+
235
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> img),
236
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> video),
237
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> svg),
238
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> canvas),
239
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> iframe),
240
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> audio),
241
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> img:only-child),
242
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> video:only-child),
243
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> svg:only-child),
244
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> canvas:only-child),
245
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> iframe:only-child),
246
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> audio:only-child),
247
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] table{
248
+ zoom:calc(100% / var(--USER__fontSize)) !important;
249
+ }
250
+
251
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figcaption,
252
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] caption,
253
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] td,
254
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] th{
255
+ zoom:var(--USER__fontSize) !important;
256
+ }
257
+ }
258
+
259
+ @supports not (zoom: 1){
260
+
261
+ :root[style*="--USER__fontSize"]{
262
+ font-size:var(--USER__fontSize) !important;
263
+ }
264
+ }
265
+
266
+ :root[style*="readium-deprecatedFontSize-on"][style*="--USER__fontSize"]{
267
+ font-size:var(--USER__fontSize) !important;
268
+ }
269
+
270
+ :root[style*="--USER__lineHeight"]{
271
+ line-height:var(--USER__lineHeight) !important;
272
+ }
273
+
274
+ :root[style*="--USER__lineHeight"] body,
275
+ :root[style*="--USER__lineHeight"] p,
276
+ :root[style*="--USER__lineHeight"] li,
277
+ :root[style*="--USER__lineHeight"] div{
278
+ line-height:var(--USER__lineHeight) !important;
279
+ }
280
+
281
+ :root[style*="--USER__paraSpacing"] p{
282
+ margin-top:var(--USER__paraSpacing) !important;
283
+ margin-bottom:var(--USER__paraSpacing) !important;
284
+ }
285
+
286
+ :root[style*="--USER__fontWeight"] body{
287
+ font-weight:var(--USER__fontWeight) !important;
288
+ }
289
+
290
+ :root[style*="--USER__fontWeight"] b,
291
+ :root[style*="--USER__fontWeight"] strong{
292
+ font-weight:bolder;
293
+ }
294
+
295
+ :root[style*="--USER__fontWidth"] body{
296
+ font-stretch:var(--USER__fontWidth) !important;
297
+ }
298
+
299
+ :root[style*="--USER__fontOpticalSizing"] body{
300
+ font-optical-sizing:var(--USER__fontOpticalSizing) !important;
301
+ }
302
+
303
+ :root[style*="--USER__letterSpacing"] h1,
304
+ :root[style*="--USER__letterSpacing"] h2,
305
+ :root[style*="--USER__letterSpacing"] h3,
306
+ :root[style*="--USER__letterSpacing"] h4,
307
+ :root[style*="--USER__letterSpacing"] h5,
308
+ :root[style*="--USER__letterSpacing"] h6,
309
+ :root[style*="--USER__letterSpacing"] p,
310
+ :root[style*="--USER__letterSpacing"] li,
311
+ :root[style*="--USER__letterSpacing"] div,
312
+ :root[style*="--USER__letterSpacing"] dt,
313
+ :root[style*="--USER__letterSpacing"] dd{
314
+ letter-spacing:var(--USER__letterSpacing) !important;
315
+ font-variant:none !important;
316
+ }
317
+
318
+ :root[style*="readium-noRuby-on"] body rt,
319
+ :root[style*="readium-noRuby-on"] body rp{
320
+ display:none;
321
+ }
322
+
323
+ :root[style*="readium-blend-on"] svg,
324
+ :root[style*="readium-blend-on"] img{
325
+ background-color:transparent !important;
326
+ mix-blend-mode:multiply !important;
327
+ }
328
+
329
+ :root[style*="--USER__darkenImages"] img{
330
+ -webkit-filter:brightness(var(--USER__darkenImages)) !important;
331
+ filter:brightness(var(--USER__darkenImages)) !important;
332
+ }
333
+
334
+ :root[style*="readium-darken-on"] img{
335
+ -webkit-filter:brightness(80%) !important;
336
+ filter:brightness(80%) !important;
337
+ }
338
+
339
+ :root[style*="--USER__invertImages"] img{
340
+ -webkit-filter:invert(var(--USER__invertImages)) !important;
341
+ filter:invert(var(--USER__invertImages)) !important;
342
+ }
343
+
344
+ :root[style*="readium-invert-on"] img{
345
+ -webkit-filter:invert(100%) !important;
346
+ filter:invert(100%) !important;
347
+ }
348
+
349
+ :root[style*="--USER__darkenImages"][style*="--USER__invertImages"] img{
350
+ -webkit-filter:brightness(var(--USER__darkenImages)) invert(var(--USER__invertImages)) !important;
351
+ filter:brightness(var(--USER__darkenImages)) invert(var(--USER__invertImages)) !important;
352
+ }
353
+
354
+ :root[style*="readium-darken-on"][style*="--USER__invertImages"] img{
355
+ -webkit-filter:brightness(80%) invert(var(--USER__invertImages)) !important;
356
+ filter:brightness(80%) invert(var(--USER__invertImages)) !important;
357
+ }
358
+
359
+ :root[style*="--USER__darkenImages"][style*="readium-invert-on"] img{
360
+ -webkit-filter:brightness(var(--USER__darkenImages)) invert(100%) !important;
361
+ filter:brightness(var(--USER__darkenImages)) invert(100%) !important;
362
+ }
363
+
364
+ :root[style*="readium-darken-on"][style*="readium-invert-on"] img{
365
+ -webkit-filter:brightness(80%) invert(100%) !important;
366
+ filter:brightness(80%) invert(100%) !important;
367
+ }
368
+
369
+ :root[style*="--USER__invertGaiji"] img[class*="gaiji"]{
370
+ -webkit-filter:invert(var(--USER__invertGaiji)) !important;
371
+ filter:invert(var(--USER__invertGaiji)) !important;
372
+ }
373
+
374
+ :root[style*="readium-invertGaiji-on"] img[class*="gaiji"]{
375
+ -webkit-filter:invert(100%) !important;
376
+ filter:invert(100%) !important;
377
+ }
378
+
379
+ :root[style*="readium-normalize-on"]{
380
+ --USER__typeScale:1.2;
381
+ }
382
+
383
+ :root[style*="readium-normalize-on"] p,
384
+ :root[style*="readium-normalize-on"] li,
385
+ :root[style*="readium-normalize-on"] div,
386
+ :root[style*="readium-normalize-on"] pre,
387
+ :root[style*="readium-normalize-on"] dd{
388
+ font-size:1rem !important;
389
+ }
390
+
391
+ :root[style*="readium-normalize-on"] h1{
392
+ font-size:1.75rem !important;
393
+ font-size:calc(((1rem * var(--USER__typeScale)) * var(--USER__typeScale)) * var(--USER__typeScale)) !important;
394
+ }
395
+
396
+ :root[style*="readium-normalize-on"] h2{
397
+ font-size:1.5rem !important;
398
+ font-size:calc((1rem * var(--USER__typeScale)) * var(--USER__typeScale)) !important;
399
+ }
400
+
401
+ :root[style*="readium-normalize-on"] h3{
402
+ font-size:1.25rem !important;
403
+ font-size:calc(1rem * var(--USER__typeScale)) !important;
404
+ }
405
+
406
+ :root[style*="readium-normalize-on"] h4,
407
+ :root[style*="readium-normalize-on"] h5,
408
+ :root[style*="readium-normalize-on"] h6{
409
+ font-size:1rem !important;
410
+ }
411
+
412
+ :root[style*="readium-normalize-on"] small{
413
+ font-size:smaller !important;
414
+ }
415
+
416
+ :root[style*="readium-normalize-on"] sub,
417
+ :root[style*="readium-normalize-on"] sup{
418
+ font-size:67.5% !important;
419
+ }
420
+
421
+ :root[style*="readium-normalize-on"][style*="--USER__typeScale"] h1{
422
+ font-size:calc(((1rem * var(--USER__typeScale)) * var(--USER__typeScale)) * var(--USER__typeScale)) !important;
423
+ }
424
+
425
+ :root[style*="readium-normalize-on"][style*="--USER__typeScale"] h2{
426
+ font-size:calc((1rem * var(--USER__typeScale)) * var(--USER__typeScale)) !important;
427
+ }
428
+
429
+ :root[style*="readium-normalize-on"][style*="--USER__typeScale"] h3{
430
+ font-size:calc(1rem * var(--USER__typeScale)) !important;
431
+ }
432
+
433
+ :root[style*="readium-iPadOSPatch-on"] body{
434
+ -webkit-text-size-adjust:none;
435
+ }
436
+
437
+ :root[style*="readium-iPadOSPatch-on"] p,
438
+ :root[style*="readium-iPadOSPatch-on"] h1,
439
+ :root[style*="readium-iPadOSPatch-on"] h2,
440
+ :root[style*="readium-iPadOSPatch-on"] h3,
441
+ :root[style*="readium-iPadOSPatch-on"] h4,
442
+ :root[style*="readium-iPadOSPatch-on"] h5,
443
+ :root[style*="readium-iPadOSPatch-on"] h6,
444
+ :root[style*="readium-iPadOSPatch-on"] li,
445
+ :root[style*="readium-iPadOSPatch-on"] th,
446
+ :root[style*="readium-iPadOSPatch-on"] td,
447
+ :root[style*="readium-iPadOSPatch-on"] dt,
448
+ :root[style*="readium-iPadOSPatch-on"] dd,
449
+ :root[style*="readium-iPadOSPatch-on"] pre,
450
+ :root[style*="readium-iPadOSPatch-on"] address,
451
+ :root[style*="readium-iPadOSPatch-on"] details,
452
+ :root[style*="readium-iPadOSPatch-on"] summary,
453
+ :root[style*="readium-iPadOSPatch-on"] figcaption,
454
+ :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)),
455
+ :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)){
456
+ -webkit-text-zoom:reset;
457
+ }
458
+
459
+ :root[style*="readium-iPadOSPatch-on"] abbr,
460
+ :root[style*="readium-iPadOSPatch-on"] b,
461
+ :root[style*="readium-iPadOSPatch-on"] bdi,
462
+ :root[style*="readium-iPadOSPatch-on"] bdo,
463
+ :root[style*="readium-iPadOSPatch-on"] cite,
464
+ :root[style*="readium-iPadOSPatch-on"] code,
465
+ :root[style*="readium-iPadOSPatch-on"] dfn,
466
+ :root[style*="readium-iPadOSPatch-on"] em,
467
+ :root[style*="readium-iPadOSPatch-on"] i,
468
+ :root[style*="readium-iPadOSPatch-on"] kbd,
469
+ :root[style*="readium-iPadOSPatch-on"] mark,
470
+ :root[style*="readium-iPadOSPatch-on"] q,
471
+ :root[style*="readium-iPadOSPatch-on"] rp,
472
+ :root[style*="readium-iPadOSPatch-on"] rt,
473
+ :root[style*="readium-iPadOSPatch-on"] ruby,
474
+ :root[style*="readium-iPadOSPatch-on"] s,
475
+ :root[style*="readium-iPadOSPatch-on"] samp,
476
+ :root[style*="readium-iPadOSPatch-on"] small,
477
+ :root[style*="readium-iPadOSPatch-on"] span,
478
+ :root[style*="readium-iPadOSPatch-on"] strong,
479
+ :root[style*="readium-iPadOSPatch-on"] sub,
480
+ :root[style*="readium-iPadOSPatch-on"] sup,
481
+ :root[style*="readium-iPadOSPatch-on"] time,
482
+ :root[style*="readium-iPadOSPatch-on"] u,
483
+ :root[style*="readium-iPadOSPatch-on"] var{
484
+ -webkit-text-zoom:normal;
485
+ }
486
+
487
+ :root[style*="readium-iPadOSPatch-on"] p:not(:has(b, cite, em, i, q, s, small, span, strong)):first-line{
488
+ -webkit-text-zoom:normal;
489
+ }`;
490
+ export {
491
+ t as default
492
+ };