@nulib/clover 4.0.0 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (386) hide show
  1. package/dist/components/Body/Body.mjs +16 -1
  2. package/dist/components/Body/glyphs.mjs +15 -0
  3. package/dist/components/Body/useControlsVisibility.mjs +35 -13
  4. package/dist/components/Canvas/CanvasView.mjs +116 -12
  5. package/dist/components/Canvas/ChaptersMenu.mjs +105 -0
  6. package/dist/components/Canvas/ControlMenu.mjs +23 -4
  7. package/dist/components/Canvas/Controls.mjs +223 -60
  8. package/dist/components/Canvas/ControlsFade.mjs +16 -0
  9. package/dist/components/Canvas/ImageControls.mjs +209 -0
  10. package/dist/components/Canvas/Placeholder.mjs +44 -12
  11. package/dist/components/Canvas/RowFits.mjs +85 -0
  12. package/dist/components/Canvas/layout.mjs +11 -0
  13. package/dist/components/Canvas/media/MediaBody.mjs +105 -46
  14. package/dist/components/Canvas/media/Player.mjs +0 -55
  15. package/dist/components/Canvas/media/Transport.mjs +14 -23
  16. package/dist/components/Canvas/panClearOfControls.mjs +1 -1
  17. package/dist/components/Collection/Collection.mjs +1 -1
  18. package/dist/components/Items/CountMenu.mjs +1 -0
  19. package/dist/components/Items/Item.mjs +4 -3
  20. package/dist/components/Items/Items.mjs +30 -10
  21. package/dist/components/Items/PagerLayout.mjs +2 -0
  22. package/dist/components/Items/TargetItems.mjs +1 -1
  23. package/dist/components/Items/masonry.mjs +35 -0
  24. package/dist/components/Panel/About.mjs +25 -8
  25. package/dist/components/Panel/Panel.mjs +47 -59
  26. package/dist/components/Panel/sections.mjs +62 -0
  27. package/dist/components/Root/useRootState.mjs +2 -49
  28. package/dist/components/Scene/SceneView.mjs +13 -2
  29. package/dist/components/Scene/cloverEngine.mjs +2 -1
  30. package/dist/components/Timeline/playerSurface.mjs +2 -0
  31. package/dist/core/clover.mjs +7 -4
  32. package/dist/core/content-state.mjs +5 -3
  33. package/dist/i18n/locales/en.json.mjs +1 -1
  34. package/dist/i18n/locales/es.json.mjs +1 -1
  35. package/dist/i18n/locales/fi.json.mjs +1 -1
  36. package/dist/i18n/locales/fr.json.mjs +1 -1
  37. package/dist/i18n/locales/nb.json.mjs +1 -1
  38. package/dist/i18n/locales/nn.json.mjs +1 -1
  39. package/dist/i18n/locales/no.json.mjs +1 -1
  40. package/dist/i18n/locales/pt.json.mjs +1 -1
  41. package/dist/index.d.mts +178 -56
  42. package/dist/index.mjs +2 -0
  43. package/dist/lib/gltf/load.mjs +26 -6
  44. package/dist/lib/pointer.mjs +1 -1
  45. package/dist/lib/renderer/CanvasRenderer.mjs +44 -32
  46. package/dist/lib/renderer/camera/Camera.mjs +1 -1
  47. package/dist/react/useContentStateOutput.mjs +71 -0
  48. package/dist/styles.css +1 -1
  49. package/dist/templates/default/Default.mjs +42 -128
  50. package/dist/templates/document/Document.mjs +51 -65
  51. package/dist/templates/document/Sheets.mjs +13 -5
  52. package/dist/templates/gallery/Gallery.mjs +94 -18
  53. package/dist/templates/index.d.mts +364 -17
  54. package/dist/templates/shared/Lightbox.mjs +161 -69
  55. package/dist/templates/shared/LightboxView.mjs +123 -0
  56. package/dist/templates/shared/PanelPane.mjs +116 -0
  57. package/dist/templates/{document/DocumentPanel.mjs → shared/PanelPart.mjs} +2 -2
  58. package/dist/templates/shared/dragToClose.mjs +51 -8
  59. package/dist/templates/shared/givenAnnotations.mjs +13 -0
  60. package/dist/templates/shared/useDragToClose.mjs +6 -3
  61. package/dist/templates/shared/useLazyPanelPane.mjs +16 -0
  62. package/dist/templates/shared/useSlide.mjs +6 -0
  63. package/dist/templates.css +1 -1
  64. package/dist/ui/ControlCluster.mjs +15 -17
  65. package/dist/ui/Sections.mjs +3 -3
  66. package/dist/ui/mediaIcons.mjs +35 -8
  67. package/dist/ui/useScrollTrack.mjs +2 -1
  68. package/dist/web-components/About-D1TBGGPL.mjs +1 -0
  69. package/dist/web-components/AnnotationItems-DTacmRA9.mjs +1 -0
  70. package/dist/web-components/{AnnotationMenu-BCwwwfbb.mjs → AnnotationMenu-DYc9ekWS.mjs} +1 -1
  71. package/dist/web-components/{AnnotationState-CavxnAAq.mjs → AnnotationState--5ghW0C2.mjs} +1 -1
  72. package/dist/web-components/{Annotations-rBmeI5sR.mjs → Annotations-BG8lPjk1.mjs} +1 -1
  73. package/dist/web-components/{Annotations-DDjSrBL5.mjs → Annotations-Bvc_FmJ5.mjs} +1 -1
  74. package/dist/web-components/Body-QQ1DmnbP.mjs +1 -0
  75. package/dist/web-components/{BodyAlert-COKp19lq.mjs → BodyAlert-A4xRjOKr.mjs} +1 -1
  76. package/dist/web-components/{Button-DLFYqtz9.mjs → Button-Cx6VE_UW.mjs} +1 -1
  77. package/dist/web-components/{Camera-Cp5ma-6C.mjs → Camera-DqT_1MgD.mjs} +1 -1
  78. package/dist/web-components/{Canvas2DBackend-3PToh87Z.mjs → Canvas2DBackend-TZtR3zHf.mjs} +1 -1
  79. package/dist/web-components/CanvasView-DxZASM9E.mjs +2 -0
  80. package/dist/web-components/CaptionDetails-DMRWmtaY.mjs +1 -0
  81. package/dist/web-components/ChaptersMenu-BAZVVDrK.mjs +1 -0
  82. package/dist/web-components/{Chevron-r-_hUPn8.mjs → Chevron-DFGbSGPI.mjs} +1 -1
  83. package/dist/web-components/ChoiceMenu-C80kdxvq.mjs +1 -0
  84. package/dist/web-components/Collection-B4CxBsFL.mjs +1 -0
  85. package/dist/web-components/{CollectionSelect-CBWUbqQi.mjs → CollectionSelect-DO8YO2p7.mjs} +1 -1
  86. package/dist/web-components/{Connected-BnpxYeJN.mjs → Connected-CcbVqzmj.mjs} +1 -1
  87. package/dist/web-components/{Connected-B2d6EoFl.mjs → Connected-DthCPaHl.mjs} +1 -1
  88. package/dist/web-components/{Connected-BSRM9FJY.mjs → Connected-sYBn_9MK.mjs} +1 -1
  89. package/dist/web-components/{Contents-D7FPxSH-.mjs → Contents-AVPYYXht.mjs} +1 -1
  90. package/dist/web-components/ControlMenu-BjJsWnuZ.mjs +1 -0
  91. package/dist/web-components/ControlsFade-C-6WhSxB.mjs +1 -0
  92. package/dist/web-components/{CountMenu-DyTp_J4k.mjs → CountMenu-Dx8D_RJZ.mjs} +1 -1
  93. package/dist/web-components/Cue-xuo5dgKE.mjs +1 -0
  94. package/dist/web-components/Document-BWdafeEi.mjs +1 -0
  95. package/dist/web-components/{DomLayers-CTGub6wo.mjs → DomLayers-DlRapZ1u.mjs} +1 -1
  96. package/dist/web-components/{Download-BOYNIb7C.mjs → Download-Ci_JUTVd.mjs} +1 -1
  97. package/dist/web-components/{EntryBodies-Bfd2Z42z.mjs → EntryBodies-C0ICfS2R.mjs} +1 -1
  98. package/dist/web-components/{EntryThumbnail-DQE8ajI9.mjs → EntryThumbnail-DxHhfRo_.mjs} +1 -1
  99. package/dist/web-components/{FieldPill-D5DNJWLy.mjs → FieldPill-CVfeeafm.mjs} +1 -1
  100. package/dist/web-components/FrameAnimation-AZpVvu0R.mjs +1 -0
  101. package/dist/web-components/Gallery-C2PTJmvN.mjs +1 -0
  102. package/dist/web-components/{HideToggle-DL911R1Z.mjs → HideToggle-0nlIo-f8.mjs} +1 -1
  103. package/dist/web-components/ImageControls-tKVAMpaj.mjs +1 -0
  104. package/dist/web-components/Items-Drd82_Jj.mjs +1 -0
  105. package/dist/web-components/Label-BIjqJ-_T.mjs +1 -0
  106. package/dist/web-components/{LanguageChoice-DT1UPiDn.mjs → LanguageChoice-DkSc-n6g.mjs} +1 -1
  107. package/dist/web-components/LightboxView-Cuqx2H1m.mjs +1 -0
  108. package/dist/web-components/ListEnd-pq-BgaDI.mjs +1 -0
  109. package/dist/web-components/{Loaded-BWfEBJyg.mjs → Loaded-CSO5NFhm.mjs} +1 -1
  110. package/dist/web-components/LoadedCanvas-DK6xMmM1.mjs +1 -0
  111. package/dist/web-components/LoadedMap-DmPH-LKY.mjs +1 -0
  112. package/dist/web-components/{Loading-zw74TdAz.mjs → Loading-CoJLSRkv.mjs} +1 -1
  113. package/dist/web-components/{Map--dJhk0_0.mjs → Map-BEVtD52O.mjs} +1 -1
  114. package/dist/web-components/MapView-DHJcn9gW.mjs +3 -0
  115. package/dist/web-components/Markup-Hm6bWOjm.mjs +2 -0
  116. package/dist/web-components/MediaBody-BpgNtpKZ.mjs +1 -0
  117. package/dist/web-components/MediaBody-Co23JjUJ.mjs +1 -0
  118. package/dist/web-components/{NavDate-BQHuyLOC.mjs → NavDate-CYNK0Qmp.mjs} +1 -1
  119. package/dist/web-components/{Navigator-B3U21_ti.mjs → Navigator-DrYPepzN.mjs} +1 -1
  120. package/dist/web-components/{Pager-DnJknq92.mjs → Pager-CN4lHURv.mjs} +1 -1
  121. package/dist/web-components/PagerLayout-DeqnSQcF.mjs +1 -0
  122. package/dist/web-components/Panel-CFYUlXup.mjs +1 -0
  123. package/dist/web-components/PanelPart-CpUIRbxr.mjs +1 -0
  124. package/dist/web-components/{PanelToggle-CFtWIeWv.mjs → PanelToggle-9ud55NNI.mjs} +1 -1
  125. package/dist/web-components/{PartOfManifest-F87jIrf9.mjs → PartOfManifest-KUHUq-6q.mjs} +1 -1
  126. package/dist/web-components/{Pending-CYAQajKu.mjs → Pending-mcmdyZPA.mjs} +1 -1
  127. package/dist/web-components/PlaceBox-DX4ZLDat.mjs +1 -0
  128. package/dist/web-components/Placeholder-0hE8q-SY.mjs +1 -0
  129. package/dist/web-components/{Position-BkWBRBfW.mjs → Position-DO5qg5Sp.mjs} +1 -1
  130. package/dist/web-components/{Primitives-BmODPlnK.mjs → Primitives-c9sIz0oQ.mjs} +1 -1
  131. package/dist/web-components/Provider-a3xY016W.mjs +1 -0
  132. package/dist/web-components/{ReadMore-BwGFsLS2.mjs → ReadMore-D_WmmKEP.mjs} +1 -1
  133. package/dist/web-components/Root-CU1o0wje.mjs +1 -0
  134. package/dist/web-components/Scene-CboEeptc.mjs +1 -0
  135. package/dist/web-components/SceneView-hcc78jQT.mjs +1 -0
  136. package/dist/web-components/{Search-CbmK9vLp.mjs → Search-BgxEW1UT.mjs} +1 -1
  137. package/dist/web-components/{Sections-Dy5_pkyQ.mjs → Sections-DZVrhoAC.mjs} +2 -2
  138. package/dist/web-components/{StandaloneItems-BmUnBp0H.mjs → StandaloneItems-6cSw7nbF.mjs} +1 -1
  139. package/dist/web-components/{Status-Dww3Pyf4.mjs → Status-DHTzuTkh.mjs} +1 -1
  140. package/dist/web-components/{Steps-o_UprQfZ.mjs → Steps-Dkpy9KiJ.mjs} +1 -1
  141. package/dist/web-components/{TargetItems-BBOGDubv.mjs → TargetItems-CyOI9_Z4.mjs} +1 -1
  142. package/dist/web-components/Timeline-B9tD3Rar.mjs +1 -0
  143. package/dist/web-components/{Tip-BbexILXs.mjs → Tip-nJSTYquc.mjs} +1 -1
  144. package/dist/web-components/{Transcript-ZVXM3ZDA.mjs → Transcript-WvFFAJQM.mjs} +1 -1
  145. package/dist/web-components/Transport-FxLp_bdW.mjs +1 -0
  146. package/dist/web-components/Transport-VUxSEIQO.mjs +1 -0
  147. package/dist/web-components/{annotation-collection-7SS1ELcO.mjs → annotation-collection-BkC3nBPA.mjs} +1 -1
  148. package/dist/web-components/{annotation-name-CYkZopdd.mjs → annotation-name-Du2KAWoD.mjs} +1 -1
  149. package/dist/web-components/{annotations-content-Bdtn50sf.mjs → annotations-content-CEzAS-P2.mjs} +1 -1
  150. package/dist/web-components/{body-CkOBHlJ0.mjs → body-DPlfbLt3.mjs} +1 -1
  151. package/dist/web-components/canvas-BUwBftJW.mjs +1 -0
  152. package/dist/web-components/cloverEngine-UNw5K4Xg.mjs +164 -0
  153. package/dist/web-components/{content-state-reader-Ahh6artg.mjs → content-state-reader-GgQF2MvJ.mjs} +1 -1
  154. package/dist/web-components/{controls-BJrZVQkS.mjs → controls-CC9G5LxK.mjs} +1 -1
  155. package/dist/web-components/custom-elements.json +191 -45
  156. package/dist/web-components/{downloads-CqVWo-yn.mjs → downloads-CmAYeEIz.mjs} +1 -1
  157. package/dist/web-components/dragToClose-DK-eM097.mjs +1 -0
  158. package/dist/web-components/{engine-B-sscpLa.mjs → engine-Dok0z8WP.mjs} +1 -1
  159. package/dist/web-components/{engines-DfCHjbt3.mjs → engines-BD2IfwQF.mjs} +1 -1
  160. package/dist/web-components/es-B1NvdYp-.mjs +1 -0
  161. package/dist/web-components/{fetchManifest-BIzne1Pj.mjs → fetchManifest-tQXcfFiz.mjs} +1 -1
  162. package/dist/web-components/fi-BjtYZNLo.mjs +1 -0
  163. package/dist/web-components/fr-Cd22Lziw.mjs +1 -0
  164. package/dist/web-components/fromManifest-BwQdeAuL.mjs +1 -0
  165. package/dist/web-components/glyphs-dp_HK3Ja.mjs +1 -0
  166. package/dist/web-components/hooks-C4dJ5K_D.mjs +1 -0
  167. package/dist/web-components/image-layers-xcBsiad9.mjs +1 -0
  168. package/dist/web-components/{imageService-0eTvQ-3h.mjs → imageService-4sFnmAFX.mjs} +1 -1
  169. package/dist/web-components/index-DspT4wUm.mjs +1 -0
  170. package/dist/web-components/index.d.mts +5 -5
  171. package/dist/web-components/index.mjs +1 -1
  172. package/dist/web-components/items-BUmOy2QY.mjs +1 -0
  173. package/dist/web-components/items-CWMI53aN.mjs +1 -0
  174. package/dist/web-components/label-BGjL7I4b.mjs +1 -0
  175. package/dist/web-components/layout-B29v2RKK.mjs +1 -0
  176. package/dist/web-components/{link-GEdiEwlR.mjs → link-Ct5PpHEY.mjs} +1 -1
  177. package/dist/web-components/logo-BFstM-0a.mjs +1 -0
  178. package/dist/web-components/masonry-0QfzOgbB.mjs +1 -0
  179. package/dist/web-components/{models-59cEeiAA.mjs → models-BXcT4ijX.mjs} +1 -1
  180. package/dist/web-components/nb-CEwZDBiR.mjs +1 -0
  181. package/dist/web-components/nn-jYQhr9RI.mjs +1 -0
  182. package/dist/web-components/no-CEwZDBiR.mjs +1 -0
  183. package/dist/web-components/{nodes-CTw9OqlA.mjs → nodes-BleXuYE6.mjs} +1 -1
  184. package/dist/web-components/{overlayImage-BMt4UTlR.mjs → overlayImage-BJtfot4Y.mjs} +1 -1
  185. package/dist/web-components/panClearOfControls-Cn2ZXsZi.mjs +1 -0
  186. package/dist/web-components/{panel-C17Rl9Ya.mjs → panel-BxxV_JkD.mjs} +1 -1
  187. package/dist/web-components/part-D4gjnYmT.mjs +1 -0
  188. package/dist/web-components/playerSurface-BXNLaFk0.mjs +1 -0
  189. package/dist/web-components/pointer-CJELU3gI.mjs +1 -0
  190. package/dist/web-components/{provider-BpxorEiq.mjs → provider-CPp0Sgr_.mjs} +1 -1
  191. package/dist/web-components/pt-CWR30SzS.mjs +1 -0
  192. package/dist/web-components/{range-regions-BGQy4E9U.mjs → range-regions-DAaOu0IS.mjs} +1 -1
  193. package/dist/web-components/{read-more-BDM_6CVc.mjs → read-more-lcqGslUd.mjs} +1 -1
  194. package/dist/web-components/readingLanguages-FyVsSWJ8.mjs +1 -0
  195. package/dist/web-components/rendererSurface-nh6-EfuZ.mjs +22 -0
  196. package/dist/web-components/{renderers-CiB74bQh.mjs → renderers-BFS7hFVU.mjs} +1 -1
  197. package/dist/web-components/{resource-CRbpf9pX.mjs → resource-Bufu7lAr.mjs} +1 -1
  198. package/dist/web-components/{save-file-CCuZEuQr.mjs → save-file-CoknKOPz.mjs} +1 -1
  199. package/dist/web-components/search-5ocrsYmT.mjs +1 -0
  200. package/dist/web-components/shared-DFAX0n3B.mjs +1 -0
  201. package/dist/web-components/{show-link-BXm7SNIC.mjs → show-link-DBaJj4s_.mjs} +1 -1
  202. package/dist/web-components/{sizedImage-k4Q-eyOB.mjs → sizedImage-jnOGcIIZ.mjs} +1 -1
  203. package/dist/web-components/{split-Hp6z-v4h.mjs → split-P6J0qqf5.mjs} +1 -1
  204. package/dist/web-components/{status-BmtuKfAG.mjs → status-honoOMNx.mjs} +1 -1
  205. package/dist/web-components/styles-BwkYiCLC.mjs +1 -0
  206. package/dist/web-components/three.mjs +1 -1
  207. package/dist/web-components/{thumbnail-Dp7a8oom.mjs → thumbnail-EbURh-UM.mjs} +1 -1
  208. package/dist/web-components/{tip-C-oovDZK.mjs → tip-BhNI83aT.mjs} +1 -1
  209. package/dist/web-components/{toggle-C7ODWDEZ.mjs → toggle-CJKdi5KH.mjs} +1 -1
  210. package/dist/web-components/{useContainerName-CrOmY-km.mjs → useContainerName-_48Cdi0m.mjs} +1 -1
  211. package/dist/web-components/useControlsVisibility-CieBxGnK.mjs +1 -0
  212. package/dist/web-components/useLazyPanelPane-Da3kJiOt.mjs +1 -0
  213. package/dist/web-components/{useNearViewport-BqXi9Gn4.mjs → useNearViewport-B34ebmIW.mjs} +1 -1
  214. package/dist/web-components/useScrollTrack-DgRGFeP5.mjs +1 -0
  215. package/dist/web-components/viewer/AnnotationItems-BNA_92Dv.mjs +1 -0
  216. package/dist/web-components/viewer/{AnnotationMenu-DPOSehBo.mjs → AnnotationMenu-BIQYVR4N.mjs} +1 -1
  217. package/dist/web-components/viewer/AnnotationState-BbwQqA1U.mjs +1 -0
  218. package/dist/web-components/viewer/Annotations-CZzOZAFP.mjs +2 -0
  219. package/dist/web-components/viewer/Annotations-P4XzAlNc.mjs +1 -0
  220. package/dist/web-components/viewer/{Canvas2DBackend-BTK6ZJh0.mjs → Canvas2DBackend-DFfCzyjL.mjs} +1 -1
  221. package/dist/web-components/viewer/CaptionDetails-DPtE-RQQ.mjs +1 -0
  222. package/dist/web-components/viewer/ChaptersMenu-D6Jmujag.mjs +1 -0
  223. package/dist/web-components/viewer/{ChoiceMenu-DQ1x572Y.mjs → ChoiceMenu-GkqyTQRQ.mjs} +1 -1
  224. package/dist/web-components/viewer/Collection-DjY_6qa6.mjs +1 -0
  225. package/dist/web-components/viewer/Connected-D5T-mtiy.mjs +1 -0
  226. package/dist/web-components/viewer/Connected-DIOuI3Mv.mjs +1 -0
  227. package/dist/web-components/viewer/Contents-DV-VxXuf.mjs +1 -0
  228. package/dist/web-components/viewer/ControlMenu-BsEpff6N.mjs +1 -0
  229. package/dist/web-components/viewer/ControlsFade-BowtN96W.mjs +1 -0
  230. package/dist/web-components/viewer/{CountMenu-4u6U6yqb.mjs → CountMenu-DCmA6HdK.mjs} +1 -1
  231. package/dist/web-components/viewer/Cue-BjbVzrpl.mjs +1 -0
  232. package/dist/web-components/viewer/Document-4ZQd3W3o.mjs +1 -0
  233. package/dist/web-components/viewer/{DomLayers-CGkDtemL.mjs → DomLayers-BCwCxPDU.mjs} +1 -1
  234. package/dist/web-components/viewer/Download-CL4IClAD.mjs +1 -0
  235. package/dist/web-components/viewer/EntryBodies-e40y47bl.mjs +1 -0
  236. package/dist/web-components/viewer/EntryThumbnail-B_dP3w4o.mjs +1 -0
  237. package/dist/web-components/viewer/{FieldPill-DFXGWrvB.mjs → FieldPill-Hse1cDBE.mjs} +1 -1
  238. package/dist/web-components/viewer/FrameAnimation-CE218DCr.mjs +1 -0
  239. package/dist/web-components/viewer/Gallery-F2sVj4ph.mjs +1 -0
  240. package/dist/web-components/viewer/{HideToggle-DP5kHzWM.mjs → HideToggle-CYoqe_ez.mjs} +1 -1
  241. package/dist/web-components/viewer/ImageControls-C2G4x2Es.mjs +1 -0
  242. package/dist/web-components/viewer/LanguageChoice-BmO-322r.mjs +1 -0
  243. package/dist/web-components/viewer/LightboxView-DKR8dXcg.mjs +1 -0
  244. package/dist/web-components/viewer/ListEnd-DX1jsvJk.mjs +1 -0
  245. package/dist/web-components/viewer/{MapView-BN9wXQKV.mjs → MapView-Df0wZjCh.mjs} +2 -2
  246. package/dist/web-components/viewer/MediaBody-CataNonO.mjs +1 -0
  247. package/dist/web-components/viewer/MediaBody-SkIgrEMj.mjs +1 -0
  248. package/dist/web-components/viewer/{NavDate-C2-wwLuB.mjs → NavDate-BZgeaMG9.mjs} +1 -1
  249. package/dist/web-components/viewer/{Navigator-C3jghOd3.mjs → Navigator-Co76p-1n.mjs} +1 -1
  250. package/dist/web-components/viewer/PagerLayout-tUkN1-FV.mjs +1 -0
  251. package/dist/web-components/viewer/PanelPart-Cl4Sst60.mjs +1 -0
  252. package/dist/web-components/viewer/{PartOfManifest-D22yMgCf.mjs → PartOfManifest-DXnbEPzS.mjs} +1 -1
  253. package/dist/web-components/viewer/PlaceBox-xrJ4CGdN.mjs +1 -0
  254. package/dist/web-components/viewer/Placeholder-B1AcizHL.mjs +1 -0
  255. package/dist/web-components/viewer/Search-DTg1cHZ3.mjs +1 -0
  256. package/dist/web-components/viewer/StandaloneItems-BpBEQG8i.mjs +1 -0
  257. package/dist/web-components/viewer/{Steps-Bw32X5xO.mjs → Steps-SpwMQdCL.mjs} +1 -1
  258. package/dist/web-components/viewer/{TargetItems-DLhUH1Gq.mjs → TargetItems-B6Icep5k.mjs} +1 -1
  259. package/dist/web-components/viewer/Transcript-rTAhuXCF.mjs +1 -0
  260. package/dist/web-components/viewer/Transport-vKIDALE-.mjs +1 -0
  261. package/dist/web-components/viewer/Transport-z_kdVisw.mjs +1 -0
  262. package/dist/web-components/viewer/annotation-collection-B7pZiLVk.mjs +1 -0
  263. package/dist/web-components/viewer/annotation-name-BKj1O9lA.mjs +1 -0
  264. package/dist/web-components/viewer/{annotations-content-CbA3eOIC.mjs → annotations-content-9AtLlPNn.mjs} +1 -1
  265. package/dist/web-components/viewer/cloverEngine-jRrYLrWa.mjs +164 -0
  266. package/dist/web-components/viewer/{content-state-reader-C7UBMOq3.mjs → content-state-reader-CPvkju6Q.mjs} +1 -1
  267. package/dist/web-components/viewer/dragToClose-Co9kGk9q.mjs +1 -0
  268. package/dist/web-components/viewer/{fetchManifest-C2Yxg3x9.mjs → fetchManifest-D7N9WhhF.mjs} +1 -1
  269. package/dist/web-components/viewer/{host-CZeyjCKR.mjs → host-DMD9LE4H.mjs} +1 -1
  270. package/dist/web-components/viewer/image-layers-x_shzPvu.mjs +1 -0
  271. package/dist/web-components/viewer/index.mjs +1 -1
  272. package/dist/web-components/viewer/{link-DssZ0Z2N.mjs → link-DikPGzNO.mjs} +1 -1
  273. package/dist/web-components/viewer/overlayImage-33kKKB0T.mjs +1 -0
  274. package/dist/web-components/viewer/range-regions-TH6WWGTT.mjs +1 -0
  275. package/dist/web-components/viewer/{renderers-DLoqv3QO.mjs → renderers-BxePmixF.mjs} +1 -1
  276. package/dist/web-components/viewer/{save-file-CJT5p5Hg.mjs → save-file-QXKiPlST.mjs} +1 -1
  277. package/dist/web-components/viewer/{search-PhOwMKHi.mjs → search-B_NePyas.mjs} +1 -1
  278. package/dist/web-components/viewer/styles-Bedyz7_l.mjs +1 -0
  279. package/dist/web-components/viewer/useControlsVisibility-Cu-jTDzs.mjs +1 -0
  280. package/dist/web-components/viewer/useLazyPanelPane-BhLtRixT.mjs +1 -0
  281. package/dist/web-components/viewer/viewer-nfPJPwwt.mjs +29 -0
  282. package/dist/web-components/viewer/{vtt-1Pk7Dhsj.mjs → vtt-CUn4h5JB.mjs} +1 -1
  283. package/dist/web-components/viewer-DN2Mo3vc.mjs +1 -0
  284. package/dist/web-components/{vtt-CacHieeN.mjs → vtt-C5M5WPSG.mjs} +1 -1
  285. package/package.json +1 -1
  286. package/dist/templates/shared/LightboxBody.mjs +0 -9
  287. package/dist/web-components/About-DhOGPFaI.mjs +0 -1
  288. package/dist/web-components/AnnotationItems-CNP4CJiT.mjs +0 -1
  289. package/dist/web-components/Body-DaY1UJIy.mjs +0 -1
  290. package/dist/web-components/BodyUnloadable-DcTM7hHF.mjs +0 -1
  291. package/dist/web-components/CanvasView-BWQ4SK2b.mjs +0 -2
  292. package/dist/web-components/CaptionDetails-DSziiuQV.mjs +0 -1
  293. package/dist/web-components/ChoiceMenu-DTuEEUeM.mjs +0 -1
  294. package/dist/web-components/Collection-B9swJtPW.mjs +0 -1
  295. package/dist/web-components/ControlMenu-Crtho2cs.mjs +0 -1
  296. package/dist/web-components/Cue-CbZaGwZh.mjs +0 -1
  297. package/dist/web-components/Document-BfltLWZZ.mjs +0 -1
  298. package/dist/web-components/DocumentPanel-ZSe40cV4.mjs +0 -1
  299. package/dist/web-components/FrameAnimation-IfR1czfc.mjs +0 -1
  300. package/dist/web-components/Gallery-DD06BDQo.mjs +0 -1
  301. package/dist/web-components/Items-BHzT9A73.mjs +0 -1
  302. package/dist/web-components/Label-KabnxuMN.mjs +0 -1
  303. package/dist/web-components/LightboxBody-BhRhdXo6.mjs +0 -1
  304. package/dist/web-components/ListEnd-CbwNlty-.mjs +0 -1
  305. package/dist/web-components/LoadedCanvas-CdZ5WOWz.mjs +0 -1
  306. package/dist/web-components/LoadedMap-DQyQVRVQ.mjs +0 -1
  307. package/dist/web-components/MapView-duA5WGsu.mjs +0 -3
  308. package/dist/web-components/Markup-D-kioDf9.mjs +0 -2
  309. package/dist/web-components/MediaBody-CoOiVXcv.mjs +0 -1
  310. package/dist/web-components/MediaBody-d8ErTuwT.mjs +0 -1
  311. package/dist/web-components/PagerLayout-CvOmKtSW.mjs +0 -1
  312. package/dist/web-components/Panel-CIdjOznL.mjs +0 -1
  313. package/dist/web-components/PlaceBox-BtIbIotm.mjs +0 -1
  314. package/dist/web-components/Placeholder-TIyj4ZjR.mjs +0 -1
  315. package/dist/web-components/Provider-C8se8i4I.mjs +0 -1
  316. package/dist/web-components/Root-CAJB0-Mh.mjs +0 -1
  317. package/dist/web-components/Scene-Ctcdt7CD.mjs +0 -1
  318. package/dist/web-components/SceneView-B6bEx_7x.mjs +0 -1
  319. package/dist/web-components/Timeline-CfIF4APc.mjs +0 -1
  320. package/dist/web-components/canvas-CWf_Fag8.mjs +0 -1
  321. package/dist/web-components/cloverEngine-6djEHNCD.mjs +0 -164
  322. package/dist/web-components/dragToClose-C-Pf1IeO.mjs +0 -1
  323. package/dist/web-components/es-BYfHUZ7P.mjs +0 -1
  324. package/dist/web-components/fi-B5y2qr8T.mjs +0 -1
  325. package/dist/web-components/fr-ChezCx6V.mjs +0 -1
  326. package/dist/web-components/fromManifest-gg5Wx14y.mjs +0 -1
  327. package/dist/web-components/glyphs-JYl2STEr.mjs +0 -1
  328. package/dist/web-components/hooks-x7rO95CS.mjs +0 -1
  329. package/dist/web-components/image-layers-BjbeyHBS.mjs +0 -1
  330. package/dist/web-components/index-BZ7b9k0N.mjs +0 -1
  331. package/dist/web-components/items-CnAIl9fS.mjs +0 -1
  332. package/dist/web-components/items-F6hJgdAS.mjs +0 -1
  333. package/dist/web-components/label-CI88KH2_.mjs +0 -1
  334. package/dist/web-components/layout-De1MOSYe.mjs +0 -1
  335. package/dist/web-components/logo-Ckwj7FlP.mjs +0 -1
  336. package/dist/web-components/nb-8J22f9Td.mjs +0 -1
  337. package/dist/web-components/nn-Dv1EvzI1.mjs +0 -1
  338. package/dist/web-components/no-8J22f9Td.mjs +0 -1
  339. package/dist/web-components/panClearOfControls-ac9uf-Qs.mjs +0 -1
  340. package/dist/web-components/part-CXts97_M.mjs +0 -1
  341. package/dist/web-components/playerSurface-HYwEwPK6.mjs +0 -1
  342. package/dist/web-components/pt-DWYQkATt.mjs +0 -1
  343. package/dist/web-components/readingLanguages-fs_HqvqQ.mjs +0 -1
  344. package/dist/web-components/rendererSurface-C0aKlE0v.mjs +0 -22
  345. package/dist/web-components/search-CkM0O0Z1.mjs +0 -1
  346. package/dist/web-components/shared-MTsMddHx.mjs +0 -1
  347. package/dist/web-components/styles-CZV1nbBQ.mjs +0 -1
  348. package/dist/web-components/useScrollTrack-CEsOU2yT.mjs +0 -1
  349. package/dist/web-components/viewer/AnnotationItems-CyhVcRFc.mjs +0 -1
  350. package/dist/web-components/viewer/AnnotationState-Bjztkobn.mjs +0 -1
  351. package/dist/web-components/viewer/Annotations-Dh_8Tzi0.mjs +0 -2
  352. package/dist/web-components/viewer/Annotations-wwuOCxzI.mjs +0 -1
  353. package/dist/web-components/viewer/CaptionDetails-BwCTovy_.mjs +0 -1
  354. package/dist/web-components/viewer/Collection-DSBxCmXw.mjs +0 -1
  355. package/dist/web-components/viewer/Connected-CL3N8F2J.mjs +0 -1
  356. package/dist/web-components/viewer/Connected-DTk1jlyI.mjs +0 -1
  357. package/dist/web-components/viewer/Contents-DrXckx7d.mjs +0 -1
  358. package/dist/web-components/viewer/ControlMenu-Bp91s-g_.mjs +0 -1
  359. package/dist/web-components/viewer/Cue-C-aF8peC.mjs +0 -1
  360. package/dist/web-components/viewer/Document-BN1rICu3.mjs +0 -1
  361. package/dist/web-components/viewer/DocumentPanel-CEesxdeY.mjs +0 -1
  362. package/dist/web-components/viewer/Download-CawEl9MN.mjs +0 -1
  363. package/dist/web-components/viewer/EntryBodies-nYHMwSSM.mjs +0 -1
  364. package/dist/web-components/viewer/EntryThumbnail-DrO_0SzR.mjs +0 -1
  365. package/dist/web-components/viewer/FrameAnimation-CZfzpxaD.mjs +0 -1
  366. package/dist/web-components/viewer/Gallery-MWHtvjti.mjs +0 -1
  367. package/dist/web-components/viewer/LanguageChoice-C50T7dPI.mjs +0 -1
  368. package/dist/web-components/viewer/LightboxBody-C2T7IC29.mjs +0 -1
  369. package/dist/web-components/viewer/ListEnd-BDuOx__m.mjs +0 -1
  370. package/dist/web-components/viewer/MediaBody-CEyswliX.mjs +0 -1
  371. package/dist/web-components/viewer/MediaBody-Dw3DWDjc.mjs +0 -1
  372. package/dist/web-components/viewer/PagerLayout-Cg2NpqoD.mjs +0 -1
  373. package/dist/web-components/viewer/PlaceBox-Dckw4Sfk.mjs +0 -1
  374. package/dist/web-components/viewer/Placeholder-NYVWYg5Q.mjs +0 -1
  375. package/dist/web-components/viewer/Search-DC259m4f.mjs +0 -1
  376. package/dist/web-components/viewer/StandaloneItems-E4kpMne9.mjs +0 -1
  377. package/dist/web-components/viewer/Transcript-D_VGJQxn.mjs +0 -1
  378. package/dist/web-components/viewer/annotation-collection-DZHa18ir.mjs +0 -1
  379. package/dist/web-components/viewer/annotation-name-BaNdW2Xk.mjs +0 -1
  380. package/dist/web-components/viewer/cloverEngine-C04bCSFR.mjs +0 -164
  381. package/dist/web-components/viewer/image-layers-B09fporZ.mjs +0 -1
  382. package/dist/web-components/viewer/overlayImage-BR3eJCKq.mjs +0 -1
  383. package/dist/web-components/viewer/range-regions-By6L5JOK.mjs +0 -1
  384. package/dist/web-components/viewer/styles-NZLnZPAC.mjs +0 -1
  385. package/dist/web-components/viewer/viewer-D30YHqyF.mjs +0 -29
  386. package/dist/web-components/viewer-CH7re5OO.mjs +0 -1
@@ -0,0 +1 @@
1
+ import{a as ee,c as ae,d as te,A as S,T as oe,y as j,_ as le,e as J,u as o,B as ce,s as ie,r as se,t as de,f as re,R as me,g as ue,h as ve,i as pe,j as he,l as V,m as fe,v as be,P as ge,o as we,L as ye,p as xe,w as Se,S as Ee,z as Le,D as Z,E as Te,F as ke,G as Ne,H as ze,k as Ae,J as De}from"./viewer-nfPJPwwt.mjs";import{u as Pe}from"./useLazyPanelPane-BhLtRixT.mjs";import{a as Me}from"./styles-Bedyz7_l.mjs";import{Download as qe}from"./Download-CL4IClAD.mjs";const Fe=1600,Oe=200,Q=.25,Re=1500,X=typeof window>"u"?j:le,ne=n=>{const s=Number(n==null?void 0:n.width),r=Number(n==null?void 0:n.height);return s>0&&r>0?s/r:void 0};function Be({collapseControls:n,children:s}){const{clover:r}=ee("Document"),d=ae(),p=te(),c=S(null),E=S(null),w=S(null),L=d.direction==="right-to-left"||d.direction==="bottom-to-top",m=oe(()=>d.views.map(e=>{var k;const t=e.map(x=>d.canvases[x]),a=L?[...t].reverse():t,i=a.map(ne);return{key:t.map(x=>x.id).join("|"),first:(k=t[0])==null?void 0:k.id,canvases:a,ratio:i.every(Boolean)?i.reduce((x,R)=>x+R,0):void 0}}),[d,L]),v=Math.max(0,p.position),h=S({sheets:m,position:v});h.current={sheets:m,position:v};const f=S(null),y=S(null),N=S(0),b=S(()=>{}),K=S(false),q=e=>{var t;return(t=E.current)==null?void 0:t.children[e]},z=e=>{const t=c.current,a=q(e);return!t||!a||a===w.current?0:Math.min(a.offsetTop,t.scrollHeight-t.clientHeight)},C=()=>{const e=w.current,t=q(h.current.position);if(e){if(!t||t===e){e.style.top="0px",e.style.height="100%";return}e.style.top=`${t.offsetTop}px`,e.style.height=`${t.offsetHeight}px`}};function l(){const e=c.current;if(!e||e.hasAttribute("data-scrolling")||y.current!==null)return;const t=z(h.current.position);N.current=t,!(Math.abs(e.scrollTop-t)<=1)&&(K.current=true,e.scrollTop=t,requestAnimationFrame(()=>requestAnimationFrame(()=>K.current=false)))}X(C),j(()=>{const e=new ResizeObserver(()=>{C(),l()});return E.current&&e.observe(E.current),c.current&&e.observe(c.current),()=>e.disconnect()},[]);const A=()=>{b.current();for(const[e,t]of[[c.current,"data-scrolling"],[w.current,"data-moved"]])e&&!e.hasAttribute(t)&&e.setAttribute(t,"")},D=()=>{const e=c.current,t=w.current;if(!e||!t)return;b.current(),N.current=e.scrollTop;const a=()=>{const I=t.querySelector(".clover-canvas");return!I||I.getAttribute("data-status")!=="loading"||I.getAttribute("data-placeholder")==="true"};let i=0;const k=new MutationObserver(()=>a()&&B()),x=setTimeout(()=>B(),Re),R=()=>{cancelAnimationFrame(i),clearTimeout(x),k.disconnect()},B=()=>{R(),t.removeAttribute("data-moved"),e.removeAttribute("data-scrolling")};b.current=R,i=requestAnimationFrame(()=>{i=requestAnimationFrame(()=>{if(a())return B();k.observe(t,{attributes:true,subtree:true,attributeFilter:["data-status","data-placeholder"]})})})},T=(e,t=false)=>{var x;const a=c.current;if(!a)return;const i=z(e);if(Math.abs(a.scrollTop-i)<=1)return D();A(),y.current=e;const k=t||((x=window.matchMedia)==null?void 0:x.call(window,"(prefers-reduced-motion: reduce)").matches);a.scrollTo({top:i,behavior:k?"auto":"smooth"})},G=S(null);X(()=>{const e=G.current!==m;if(G.current=m,O(false),f.current===v&&!e){f.current=null;return}f.current=null,T(v,e)},[v,m]),j(()=>{const e=c.current;if(!e)return;let t=0,a,i=false;const k=u=>{const P=h.current.sheets.length;if(P<2)return 0;let g=0;for(let W=0;W<P&&z(W)<=u+.5;W++)g=W;if(g>=P-1)return P-1;const _=z(g),M=(u-_)/Math.max(1,z(g+1)-_);return u>=N.current?M>Q?g+1:g:M<1-Q?g:g+1},x=()=>{if(t=0,y.current!==null)return;const u=k(e.scrollTop),{sheets:P,position:g}=h.current;u===g||!P[u]||(A(),O(false),f.current=u,r.goTo(P[u].first))},R=()=>{if(i)return;const{sheets:u,position:P}=h.current,g=e.scrollTop,_=y.current;y.current=null;const M=_!==null&&Math.abs(g-z(_))<=1?_:k(g);if(!u[M])return D();M!==P&&(A(),O(false),f.current=M,r.goTo(u[M].first)),T(M)},B=()=>{clearTimeout(a),a=setTimeout(R,Oe)},I=()=>{K.current||(A(),B(),t||(t=requestAnimationFrame(x)))},$=u=>{y.current=null,(u.type==="touchstart"||u.type==="pointerdown"&&u.target===e)&&(i=true)},H=()=>{i&&(i=false,B())};return e.addEventListener("scroll",I,{passive:true}),e.addEventListener("wheel",$,{passive:true}),e.addEventListener("touchstart",$,{passive:true}),e.addEventListener("pointerdown",$),window.addEventListener("touchend",H),window.addEventListener("touchcancel",H),window.addEventListener("pointerup",H),()=>{cancelAnimationFrame(t),clearTimeout(a),b.current(),e.removeEventListener("scroll",I),e.removeEventListener("wheel",$),e.removeEventListener("touchstart",$),e.removeEventListener("pointerdown",$),window.removeEventListener("touchend",H),window.removeEventListener("touchcancel",H),window.removeEventListener("pointerup",H)}},[r]);const[F,U]=J(null);function O(e){const t=c.current;!t||t.hasAttribute("data-zoomed")===e||(t.toggleAttribute("data-zoomed",e),e&&l())}return j(()=>{if(F)return F.on("viewport",()=>O(!F.atHome))},[F]),o("div",{ref:c,className:"clover-template-document-column",onKeyDown:e=>{if(!(e.defaultPrevented||e.altKey||e.ctrlKey)){if(e.key==="PageDown"&&p.hasNext)p.next();else if(e.key==="PageUp"&&p.hasPrevious)p.previous();else return;e.preventDefault()}},children:o("div",{ref:E,className:"clover-template-document-sheets","data-single":m.length<2||void 0,children:[m.map((e,t)=>o("div",{"aria-hidden":"true",className:"clover-template-document-sheet","data-active":t===v||void 0,"data-fill":e.ratio===void 0||void 0,onClick:()=>t!==v&&r.goTo(e.first),style:e.ratio===void 0?void 0:{"--ratio":e.ratio},children:e.canvases.map(a=>o($e,{canvas:a},a.id))},e.key)),o("div",{ref:w,className:"clover-template-document-live",children:o(ce,{className:"clover-template-document-body",collapseControls:n,onReady:U,children:s})})]})})}function Ie(n){const[s,r]=J(()=>typeof IntersectionObserver>"u");return j(()=>{if(s||!n)return;const d=new IntersectionObserver(p=>{p.some(c=>c.isIntersecting)&&(r(true),d.disconnect())},{root:n.closest(".clover-template-document-column"),rootMargin:"100% 0px"});return d.observe(n),()=>d.disconnect()},[n,s]),s}function $e({canvas:n}){const{clover:s}=ee("Document"),r=oe(()=>ie(n),[n]),[d,p]=J(null),c=Ie(d),[E,w]=J(r==null?void 0:r.src);j(()=>{if(!r||r.src)return w(r==null?void 0:r.src);if(!c)return;let v=true;return se(r,Fe,s.request).then(h=>v&&w(h)),()=>{v=false}},[r,s,c]);const L=ne(n),m=L?{aspectRatio:String(L)}:void 0;return E?o("img",{alt:"",decoding:"async",loading:"lazy",src:E,style:m}):o("span",{ref:p,style:m})}Me(46,"templates/document/Document","@layer clover{.clover-template-document{--clover-template-document-height: min(85vh, 56rem);display:flex;flex-direction:column;height:var(--clover-template-document-height);min-height:min-content;overflow:hidden;background-color:var(--clover-color-secondary, #fff);color:var(--clover-color-primary, #1a1d1e)}@supports (height: 1svh){.clover-template-document{--clover-template-document-height: min(85svh, 56rem)}}.clover-template-document-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--clover-space-s);padding:var(--clover-space-m) var(--clover-inset);border-bottom:1px solid var(--clover-color-secondary-muted, #e6e8eb)}.clover-template-document-provider{max-width:100%;margin-inline-start:auto}.clover-template-document-toolbar .clover-download-groups{flex-direction:row;flex-wrap:wrap;column-gap:var(--clover-space-m)}.clover-template-document-toolbar .clover-download-group{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:var(--clover-space-s)}.clover-template-document-toolbar .clover-download-title{margin:0}.clover-template-document-toolbar .clover-download-list{display:flex;flex-wrap:wrap;column-gap:var(--clover-space-s)}.clover-template-document-title{flex:1 1 6rem;min-width:0}button.clover-template-document-sidebar-toggle{display:inline-flex;flex:none;align-items:center;gap:var(--clover-space-xs);min-height:var(--clover-control);padding-block:0;padding-inline:var(--clover-space-s) calc(var(--clover-space-xs) + var(--clover-space-3xs));border:0;border-radius:var(--clover-radius-pill, 2rem);background-color:var(--clover-color-control, #1a1d1e);color:var(--clover-color-control-glyph, #fff);cursor:pointer;transition:var(--clover-transition, all .2s cubic-bezier(.16, 1, .3, 1))}button.clover-template-document-sidebar-toggle:is(:hover,:focus-visible){background-color:var(--clover-color-accent, #0065c3)}:where([data-high-contrast]) button.clover-template-document-sidebar-toggle:is(:hover,:focus-visible){background-color:var(--clover-accent-fill)}:where([data-high-contrast]) button.clover-template-document-sidebar-toggle:hover:not(:focus-visible){outline:var(--clover-accent-ring-hover);outline-offset:1px}button.clover-template-document-sidebar-toggle:focus-visible{outline:2px solid var(--clover-color-accent, #0065c3);outline-offset:2px}.clover-template-document-sidebar-toggle .clover-template-document-position{color:inherit;font-size:var(--clover-text-xs);white-space:nowrap}.clover-template-document-sidebar-toggle .clover-template-document-position>.clover-pager-room[hidden]{display:none}.clover-template-document-panes{position:relative;flex:1 1 auto;min-height:16rem}.clover-template-document-panes:is([data-panel=over],[data-narrow])>.clover-template-document-main{isolation:isolate}.clover-template-document-sidebar{contain:size;overflow-y:auto;overscroll-behavior:contain;padding:var(--clover-inset);scroll-padding-top:calc(2 * var(--clover-inset) + var(--clover-control));background-color:var(--clover-color-secondary, #fff)}.clover-template-document-sidebar-closed{position:absolute;top:var(--clover-inset);inset-inline-start:var(--clover-inset);z-index:3}@media (width < 31rem){.clover-template-document-toolbar,.clover-template-document-sidebar-closed,.clover-template-document-spine{--clover-inset: var(--clover-space-m)}}.clover-template-document-sidebar[hidden]{display:none}.clover-template-document-sidebar+.clover-split-handle:before{inset-inline-start:0;inset-inline-end:calc(3px - var(--clover-space-l))}.clover-template-document-sidebar .clover-items[data-layout] .clover-items-figure{grid-template-columns:repeat(var(--parts, 1),minmax(0,1fr));gap:var(--clover-space-xs) 0}.clover-template-document-sidebar .clover-items[data-layout] :is(.clover-items-pictures,.clover-items-caption){grid-column:1 / -1;grid-template-columns:subgrid}.clover-template-document-sidebar .clover-items[data-layout] .clover-items-label{contain:inline-size}.clover-template-document-sidebar .clover-items[data-layout] .clover-items-picture[data-empty],.clover-template-document-sidebar .clover-items[data-layout] .clover-items-picture img{width:100%;height:auto;max-height:20rem;aspect-ratio:var(--clover-items-ratio, auto);object-fit:contain}.clover-template-document-sidebar .clover-items[data-layout] .clover-items-caption{font-size:var(--clover-text-s)}.clover-template-document-main{position:relative;overflow:hidden;background-color:var(--clover-color-secondary-muted, #e6e8eb)}.clover-template-document-column{position:absolute;inset:0;overflow-x:hidden;overflow-y:auto;container-type:size}.clover-template-document-sheets{position:relative}.clover-template-document-sheet{--clover-template-document-tease: calc(2 * var(--clover-inset));display:flex;justify-content:center;box-sizing:border-box;height:min(100cqh - var(--clover-template-document-tease),(100cqw - 2 * var(--clover-inset)) / var(--ratio) + 2 * var(--clover-inset));padding:var(--clover-inset);transition:opacity .2s ease,height .24s cubic-bezier(.16,1,.3,1)}.clover-template-document-sheet[data-fill]{height:calc(100cqh - var(--clover-template-document-tease))}.clover-template-document-column[data-zoomed] .clover-template-document-sheet[data-active]{height:100cqh}.clover-template-document-column[data-zoomed] .clover-template-document-sheet[data-active]>*{visibility:hidden}.clover-template-document-column[data-zoomed] .clover-template-document-sheet:not([data-active]){--clover-template-document-muted: 0;pointer-events:none}.clover-template-document-sheet:not([data-active]){--clover-template-document-muted: .618;cursor:pointer;opacity:var(--clover-template-document-muted)}.clover-template-document-sheet:not([data-active]):hover{--clover-template-document-muted: .809}@media (prefers-reduced-motion: reduce){.clover-template-document-sheet{transition:none}}.clover-template-document-sheets[data-single]>.clover-template-document-sheet{--clover-template-document-tease: 0px}.clover-template-document-sheet>*{display:block;height:100%;min-width:0}.clover-template-document-sheet[data-fill]>*{object-fit:contain}.clover-template-document-live{--clover-body-height: 100%;position:absolute;inset-inline:0;top:0;height:100%;transition:opacity .16s ease}.clover-template-document-body .clover-canvas{--clover-canvas-inset: var(--clover-inset);background-color:transparent}.clover-template-document-live[data-moved]:not(:focus-within){opacity:0;pointer-events:none}.clover-template-document-column[data-scrolling] .clover-template-document-live:not(:focus-within) .clover-canvas-controls>*{--clover-controls-shown: 0;--clover-controls-events: none}.clover-template-document-column:not([data-zoomed]) :not(.clover-scene)>.clover-canvas-viewport{touch-action:pan-y}.clover-template-document-scrim[data-for=sidebar]{z-index:2}.clover-template-document-panes[data-narrow]{--clover-template-sidebar-width: min(14rem, 80%)}.clover-template-document-panes[data-narrow]>.clover-template-document-sidebar{position:absolute;inset-block:0;inset-inline-start:0;z-index:3;width:var(--clover-template-sidebar-width);border-inline-end:1px solid var(--clover-color-secondary-muted, #e6e8eb);--clover-template-inner: right;--clover-template-toward: 1}.clover-template-document-panes[data-narrow]>.clover-template-document-sidebar:dir(rtl){--clover-template-inner: left;--clover-template-toward: -1}.clover-template-document-spine{position:relative;z-index:4;flex:none;width:0}.clover-template-document-spine>*{position:absolute;top:var(--clover-inset);inset-inline-start:-1.5px;translate:-50%}.clover-template-document-spine:dir(rtl)>*{translate:50%}.clover-template-document-spine[data-for=sidebar]>*{inset-inline:auto calc(1.5px - var(--clover-control) / 2);translate:none}.clover-template-document-panes[data-narrow]>.clover-template-document-spine[data-for=sidebar]{inset-inline-start:var(--clover-template-sidebar-width)}.clover-template-document-panes[data-narrow]>.clover-template-document-spine[data-for=sidebar]>*{inset-inline-end:calc(var(--clover-control) / -2)}}");function We({className:n,defaultSidebarOpen:s,singleItem:r=false,defaultPanelOpen:d=false,panelLayout:p="accordion",panelSections:c,panelLabels:E,download:w=true,languages:L=true,headingLevel:m=2,storageKey:v="clover-template-document",collapseControls:h,...f}){const y=de(m,`${re().replace(/:/g,"")}-title`);return o(me,{className:["clover-template-document",n].filter(Boolean).join(" "),...y.group,...f,children:o(je,{title:y,defaultSidebarOpen:s,singleItem:r,defaultPanelOpen:d,panelLayout:p,panelSections:c,panelLabels:E,download:w,languages:L,headingLevel:m,storageKey:v,collapseControls:h})})}const Y=n=>n+1,He=9,_e=40;function je({defaultSidebarOpen:n,singleItem:s,defaultPanelOpen:r,download:d,languages:p,headingLevel:c=2,storageKey:E,panelLayout:w,panelSections:L,panelLabels:m,collapseControls:v,title:h}){const f=ue(),y=ve(),N=y("templateSidebar"),b=re().replace(/:/g,""),K=te(),q=S(null),z=S(null),C=pe(),l=he({id:`${b}-sidebar`,beside:V(q,_e),defaultOpen:n??true,side:"start",focus:t=>t.querySelector('[role="option"][aria-selected="true"]'),slides:false,alongside:z,followFocus:C}),A=K.total>(s?0:1),D=A&&l.open,T=Pe({id:`${b}-panel`,beside:V(q,fe+(D?He:0)),defaultOpen:!!r,followFocus:C,sections:L}),G=t=>{var a,i;l.over&&((i=(a=t.target).closest)!=null&&i.call(a,`[aria-controls~="${b}-sidebar"]`))&&De()},F=()=>{l.over&&l.close()},U=T.docked,O=T.toggle,e=A&&o("button",{type:"button",className:"clover-template-document-sidebar-toggle","aria-expanded":l.open,"aria-controls":`${b}-sidebar`,lang:y("templateSidebarToggle"),onClick:()=>l.setOpen(!l.open),children:[o("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16",fill:l.open?"currentColor":"none",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round",children:[o("rect",{x:"1.5",y:"2",width:"5.5",height:"4.5",rx:"1"}),o("rect",{x:"1.5",y:"9.5",width:"5.5",height:"4.5",rx:"1"}),o("path",{d:"M9.5 4.25h5M9.5 11.75h5",fill:"none"})]}),o("span",{style:be,children:f("templateSidebarToggle")}),o(ge,{className:"clover-template-document-position"}),o(we,{label:f("templateSidebarToggle")})]});return o(Ae,{children:[o("header",{className:"clover-template-document-toolbar",children:[o(ye,{as:h.as,className:"clover-template-document-title clover-template-title clover-title",...h.title}),d&&o(qe,{headingLevel:Y(c)}),o(xe,{className:"clover-template-document-provider",children:o(Se,{})})]}),o(Ee,{loading:false}),o(Le,{ref:q,className:"clover-template-document-panes clover-template-panes","data-sidebar":D?"open":"closed","data-narrow":l.over||void 0,"data-panel":T.splitProps["data-panel"],storageKey:E||void 0,onKeyDown:t=>{T.onKeyDown(t),l.onKeyDown(t)},onPointerOver:t=>{T.splitProps.onPointerOver(t),G(t)},onFocus:t=>{T.splitProps.onFocus(t),G(t)},children:[o(Z,{ref:l.pane,as:"aside",id:`${b}-sidebar`,name:"sidebar",className:["clover-template-document-sidebar",l.over&&"clover-template-float"].filter(Boolean).join(" "),"aria-label":N?void 0:f("templateSidebar"),"aria-labelledby":N?`${b}-sidebar-name`:void 0,size:"13rem",min:l.over?void 0:"8rem",max:"24rem",hidden:!D,children:[N&&o("span",{hidden:true,id:`${b}-sidebar-name`,lang:N,children:f("templateSidebar")}),o(Te,{layout:"list",singleItem:s,"aria-label":N?void 0:f("templateSidebar"),thumbnailSize:320,onSelect:F})]}),D&&!l.over&&o(ke,{"aria-controls":`${b}-sidebar`}),D&&o("div",{ref:z,className:"clover-template-document-spine","data-for":"sidebar",children:e}),o(Z,{className:"clover-template-document-main",min:D&&!l.over||U?Ne:void 0,children:[A&&!l.open&&o("div",{className:"clover-template-document-sidebar-closed",children:e}),o(Be,{collapseControls:v,children:!U&&O})]}),o(ze,{pane:T,className:"clover-template-document-panel",layout:w,sections:L,labels:m,headingLevel:Y(c),download:false,languages:p}),A&&l.scrim&&o("div",{className:"clover-template-document-scrim clover-template-scrim","data-for":"sidebar",...l.scrim})]})]})}export{We as Document};
@@ -1 +1 @@
1
- var c=Object.defineProperty;var h=(o,t,e)=>t in o?c(o,t,{enumerable:true,configurable:true,writable:true,value:e}):o[t]=e;var l=(o,t,e)=>h(o,typeof t!="symbol"?t+"":t,e);import{ca as d,cb as p,cc as x}from"./viewer-D30YHqyF.mjs";class f{constructor(t){l(this,"container");l(this,"boxes",new Map);const e=document.createElement("div");e.className="clover-canvas-dom-layer",Object.assign(e.style,{position:"absolute",inset:"0",overflow:"hidden",pointerEvents:"none"}),t.appendChild(e),this.container=e}sync(t){const e=new Set;t.forEach((s,i)=>{e.add(s.key);const a=this.boxFor(s),n=s.crop??{x:0,y:0,width:s.width,height:s.height};a.style.width=`${n.width}px`,a.style.height=`${n.height}px`,a.style.transform=d(p(s.transform,x(n.x,n.y))),a.style.opacity=String(s.opacity),a.style.zIndex=String(i);const r=s.element;r.style.width=`${s.width}px`,r.style.height=`${s.height}px`,r.style.transform=`translate(${-n.x}px, ${-n.y}px)`});for(const[s,i]of this.boxes)e.has(s)||(i.remove(),this.boxes.delete(s))}dispose(){this.boxes.clear(),this.container.remove()}boxFor(t){let e=this.boxes.get(t.key);return e&&e.firstChild!==t.element&&(e.remove(),e=void 0),e||(e=document.createElement("div"),e.className="clover-canvas-dom-item",e.dataset.key=t.key,Object.assign(e.style,{position:"absolute",top:"0",left:"0",overflow:"hidden",transformOrigin:"0 0"}),t.element.classList.add("clover-canvas-dom-media"),Object.assign(t.element.style,{position:"absolute",top:"0",left:"0",maxWidth:"none",maxHeight:"none",transformOrigin:"0 0"}),e.appendChild(t.element),this.container.appendChild(e),this.boxes.set(t.key,e)),e}}export{f as DomLayers};
1
+ var c=Object.defineProperty;var h=(o,t,e)=>t in o?c(o,t,{enumerable:true,configurable:true,writable:true,value:e}):o[t]=e;var l=(o,t,e)=>h(o,typeof t!="symbol"?t+"":t,e);import{cg as d,ch as p,ci as x}from"./viewer-nfPJPwwt.mjs";class f{constructor(t){l(this,"container");l(this,"boxes",new Map);const e=document.createElement("div");e.className="clover-canvas-dom-layer",Object.assign(e.style,{position:"absolute",inset:"0",overflow:"hidden",pointerEvents:"none"}),t.appendChild(e),this.container=e}sync(t){const e=new Set;t.forEach((s,i)=>{e.add(s.key);const a=this.boxFor(s),n=s.crop??{x:0,y:0,width:s.width,height:s.height};a.style.width=`${n.width}px`,a.style.height=`${n.height}px`,a.style.transform=d(p(s.transform,x(n.x,n.y))),a.style.opacity=String(s.opacity),a.style.zIndex=String(i);const r=s.element;r.style.width=`${s.width}px`,r.style.height=`${s.height}px`,r.style.transform=`translate(${-n.x}px, ${-n.y}px)`});for(const[s,i]of this.boxes)e.has(s)||(i.remove(),this.boxes.delete(s))}dispose(){this.boxes.clear(),this.container.remove()}boxFor(t){let e=this.boxes.get(t.key);return e&&e.firstChild!==t.element&&(e.remove(),e=void 0),e||(e=document.createElement("div"),e.className="clover-canvas-dom-item",e.dataset.key=t.key,Object.assign(e.style,{position:"absolute",top:"0",left:"0",overflow:"hidden",transformOrigin:"0 0"}),t.element.classList.add("clover-canvas-dom-media"),Object.assign(t.element.style,{position:"absolute",top:"0",left:"0",maxWidth:"none",maxHeight:"none",transformOrigin:"0 0"}),e.appendChild(t.element),this.container.appendChild(e),this.boxes.set(t.key,e)),e}}export{f as DomLayers};
@@ -0,0 +1 @@
1
+ import{ae as m,a as D,f as y,u as l,a8 as $,a9 as g,bv as k,ag as C}from"./viewer-nfPJPwwt.mjs";import"./styles-Bedyz7_l.mjs";const h=new Set,w=o=>{var n;try{return new URL(o,(n=globalThis.location)==null?void 0:n.href).origin}catch{return o}};function K(o,n){import("./save-file-QXKiPlST.mjs").then(({saveFile:r})=>r(o,n)).then(r=>{r||(h.add(w(o)),window.open(o,"_blank","noopener,noreferrer"))})}function L({page:o,all:n,headingLevel:r=3,inPopover:e=false}){const{t:s,langOf:p}=m(),{clover:v}=D("Download"),c=y(),b=e?"span":$(r),N=e?"div":"section",t=(i,u,f)=>u.length>0&&l(N,{className:"clover-download-group",role:e?"group":void 0,"aria-labelledby":`${c}-${f}`,children:[l(b,{className:"clover-download-title",id:`${c}-${f}`,...g(p(i)),children:s(i)}),l("ul",{className:"clover-download-list",children:u.map(a=>l("li",{children:l("a",{className:"clover-download-link",href:a.id,target:"_blank",rel:"noopener noreferrer",download:"",hrefLang:a.hrefLang,...g(a.lang),onClick:d=>{d.button!==0||d.metaKey||d.ctrlKey||d.shiftKey||d.altKey||h.has(w(a.id))||(d.preventDefault(),K(a.id,v.request))},children:[a.label,a.format&&a.format!==a.label&&l("span",{className:"clover-download-format",children:[" ","(",a.format,")"]})]})},a.id))})]});return l("div",{className:"clover-download-groups",children:[t("downloadPage",o,"page"),t("downloadAll",n,"all")]})}function G({className:o,headingLevel:n=3,...r}){const{page:e,all:s}=k();return!e.length&&!s.length?null:l("div",{...r,className:C("clover-download",o),children:l(L,{page:e,all:s,headingLevel:n})})}export{G as Download,L as DownloadGroups,k as useDownloads};
@@ -0,0 +1 @@
1
+ import{ae as f,u as r,bN as m,a9 as h,k as v,a7 as g}from"./viewer-nfPJPwwt.mjs";import{b as p}from"./annotation-name-BKj1O9lA.mjs";const x=o=>o.some(n=>{var e;return(e=n.value)==null?void 0:e.trim()}),w=(o,n)=>{const e=new Map;for(const t of o)t.choice!==void 0&&e.set(t.choice,[...e.get(t.choice)??[],t]);if(!e.size)return o;const i=new Set([...e.values()].map(t=>p(t,n)));return o.filter(t=>t.choice===void 0||i.has(t))};function z({bodies:o,language:n,headingLevel:e}){const{t:i,langOf:t}=f(),l=w(o,n),u=a=>{if(x(l))return{text:""};const s=g(a.label,n);return s.text?s:{text:i("annotationsImage"),lang:t("annotationsImage")}};return r(v,{children:l.map((a,s)=>{if(a.place)return r(m,{as:"div",markup:a.label,language:n,className:"clover-annotations-text"},s);if(!a.image)return r(m,{as:"div",markup:{[a.language??"none"]:[a.value??""]},format:a.format,headingLevel:e,language:n,className:"clover-annotations-text"},s);const c=u(a);return r("img",{src:a.image,alt:c.text,...h(c.text?c.lang:void 0),width:200,loading:"lazy",className:"clover-annotations-image"},s)})})}export{z as E};
@@ -0,0 +1 @@
1
+ import{u as e,ag as h,e as y,y as v,r as E}from"./viewer-nfPJPwwt.mjs";import"./styles-Bedyz7_l.mjs";const s=52,T=336;function g(n,i,t,l=false){const[a,r]=y(n==null?void 0:n.src),d=n?JSON.stringify(n):"";return v(()=>{if(!n||n.src)return r(n==null?void 0:n.src);l||r(void 0);let f=true;return E(n,i,t).then(m=>f&&r(m)),()=>{f=false}},[d,i]),a}function I({source:n,request:i,large:t=false,className:l}){const a=g(n,t?T:s,i);return a?e("img",{className:h("clover-entry-thumbnail",l),"data-large":t?"":void 0,src:a,alt:"",...!t&&{width:s/2,height:s/2},loading:"lazy",decoding:"async"}):null}export{I as E,T as P,g as u};
@@ -1 +1 @@
1
- import{ag as g,ac as y,u as e,ae as t,a7 as n,v as c,o as p}from"./viewer-D30YHqyF.mjs";import{S as k}from"./Steps-Bw32X5xO.mjs";import"./styles-NZLnZPAC.mjs";const x=g(function({id:s,value:h,onChange:m,onSubmit:f,onClear:b,results:o,size:S="large",classes:a={}},v){const{t:l,langOf:r}=y(),d=l("commonSearch"),u=l("contentSearchClear");return e("form",{role:"search",className:t("clover-field-pill",a.form),"data-size":S,onSubmit:i=>{i.preventDefault(),f()},children:[e("label",{htmlFor:s,style:c,...n(r("informationPanelTabsSearch")),children:l("informationPanelTabsSearch")}),e("input",{ref:v,id:s,type:"search",className:t("clover-field-pill-query",a.query),value:h,placeholder:l("contentSearchPlaceholder"),lang:r("contentSearchPlaceholder"),onChange:i=>m(i.target.value)}),o&&(o.total?e(k,{steps:o,sentence:"contentSearchPosition"}):e("span",{className:"clover-field-pill-note","aria-hidden":"true",...n(r("contentSearchResultsNone")),children:l("contentSearchResultsNone")})),h&&e("button",{type:"button",className:t("clover-field-pill-clear",a.clear),...n(r("contentSearchClear")),onClick:b,children:[e("svg",{"aria-hidden":"true",focusable:"false",width:"12",height:"12",viewBox:"0 0 16 16",children:e("path",{d:"M4 4l8 8M12 4l-8 8",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})}),e("span",{style:c,children:u}),e(p,{label:u})]}),e("button",{type:"submit",className:t("clover-field-pill-submit",a.submit),...n(r("commonSearch")),children:[e("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16",children:[e("circle",{cx:"7",cy:"7",r:"4.5",fill:"none",stroke:"currentColor",strokeWidth:"2"}),e("path",{d:"M10.5 10.5L14 14",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),e("span",{style:c,children:d}),e(p,{label:d})]})]})});export{x as F};
1
+ import{ai as g,ae as y,u as e,ag as t,a9 as n,v as c,o as p}from"./viewer-nfPJPwwt.mjs";import{S as k}from"./Steps-SpwMQdCL.mjs";import"./styles-Bedyz7_l.mjs";const x=g(function({id:s,value:h,onChange:m,onSubmit:f,onClear:b,results:o,size:S="large",classes:a={}},v){const{t:l,langOf:r}=y(),d=l("commonSearch"),u=l("contentSearchClear");return e("form",{role:"search",className:t("clover-field-pill",a.form),"data-size":S,onSubmit:i=>{i.preventDefault(),f()},children:[e("label",{htmlFor:s,style:c,...n(r("informationPanelTabsSearch")),children:l("informationPanelTabsSearch")}),e("input",{ref:v,id:s,type:"search",className:t("clover-field-pill-query",a.query),value:h,placeholder:l("contentSearchPlaceholder"),lang:r("contentSearchPlaceholder"),onChange:i=>m(i.target.value)}),o&&(o.total?e(k,{steps:o,sentence:"contentSearchPosition"}):e("span",{className:"clover-field-pill-note","aria-hidden":"true",...n(r("contentSearchResultsNone")),children:l("contentSearchResultsNone")})),h&&e("button",{type:"button",className:t("clover-field-pill-clear",a.clear),...n(r("contentSearchClear")),onClick:b,children:[e("svg",{"aria-hidden":"true",focusable:"false",width:"12",height:"12",viewBox:"0 0 16 16",children:e("path",{d:"M4 4l8 8M12 4l-8 8",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})}),e("span",{style:c,children:u}),e(p,{label:u})]}),e("button",{type:"submit",className:t("clover-field-pill-submit",a.submit),...n(r("commonSearch")),children:[e("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16",children:[e("circle",{cx:"7",cy:"7",r:"4.5",fill:"none",stroke:"currentColor",strokeWidth:"2"}),e("path",{d:"M10.5 10.5L14 14",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),e("span",{style:c,children:d}),e(p,{label:d})]})]})});export{x as F};
@@ -0,0 +1 @@
1
+ import{bM as J,T as V,e as P,y as I,A as F,u as a,v as ee,bN as Z,q as X,ae as te,f as ne,bH as oe,_ as Y,o as ae,bO as se,aw as re,bP as ie,bs as ce,$ as le,bQ as de,b4 as ue,r as he}from"./viewer-nfPJPwwt.mjs";import pe from"./ChoiceMenu-GkqyTQRQ.mjs";import{g as me,a as fe,u as ve,b as ge,p as ye,s as be,T as z,P as ke,c as we,V as xe,d as Me}from"./Transport-z_kdVisw.mjs";import"./MediaBody-SkIgrEMj.mjs";import"./styles-Bedyz7_l.mjs";const R=(e,l)=>l<10?`${J(e)}.${Math.min(9,Math.floor((e||0)%1*10))}`:J(e),Te=e=>{try{return e.matches(":focus-visible")}catch{return false}},Ce=50,Ne=250,Ae=(e,l)=>{let u=0;return e.forEach((d,c)=>{d.start<=l&&(u=c)}),u};function U(e,l,u){const d=Math.min(l,u),c=[];return e.forEach((p,b)=>{p.start<=d&&(d<p.end||d>=u&&p.end>=u)&&c.push(b)}),c}const Pe=(e,l,u)=>{let d=u;for(const c of e)c.start>l&&c.start<d&&(d=c.start),c.end>l&&c.end<d&&(d=c.end);return d},$e=128;function Se(e,l){const[u,d]=P([]);return I(()=>{let c=true;return Promise.all(e.map(p=>{const{body:b}=p.annotation,i=de(Array.isArray(b)?b[0]:b),t=(i==null?void 0:i.body.type)==="Image"?ue(i.body,i.region):void 0;return t?he(t,$e,l):void 0})).then(p=>c&&d(p)),()=>{c=false}},[e,l]),u}function Be(e,l,{autoplay:u=false,loop:d=false,duration:c,isReady:p,onEnded:b}){const i=V(()=>{if(c&&Number.isFinite(c)&&c>0)return c;const r=e.map(m=>m.end).filter(Number.isFinite);return r.length?Math.max(...r):0},[e,c]),[t,v]=P(0),[g,f]=P(false),[k,h]=P(d),[H,x]=P(0),M=F(0),w=F(p);w.current=p;const C=F(b);C.current=b;const N=X(r=>{const m=Math.max(0,Math.min(i,r));M.current=m,v(m),x(S=>S+1)},[i]);I(()=>{M.current=0,v(0),h(d);const r=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion: reduce)").matches;f(u&&e.length>1&&!r)},[l]),I(()=>{if(!g||e.length<2||!(i>0))return;let r={at:Date.now(),time:M.current>=i?0:M.current},m;const S=A=>{M.current=A,v(A)},L=A=>Math.max(0,Math.min(Ne,(Pe(e,A,i)-A)*1e3)),E=()=>{var j;const A=M.current;let B=r.time+(Date.now()-r.at)/1e3;if(B>=i){if(!k){S(i),f(false),(j=C.current)==null||j.call(C);return}B=0,r={at:Date.now(),time:0}}const D=U(e,A,i),W=U(e,B,i).filter(O=>!D.includes(O));if(w.current&&W.some(O=>!w.current(O))){r={at:Date.now(),time:A},m=setTimeout(E,Ce);return}S(B),m=setTimeout(E,L(B))};return r.time!==M.current&&S(r.time),m=setTimeout(E,L(r.time)),()=>clearTimeout(m)},[g,e,i,k,H]);const $=Ae(e,t),T=U(e,t,i).join(","),s=V(()=>T?T.split(",").map(Number):[],[T]),n=X(r=>{var m;return N(((m=e[r])==null?void 0:m.start)??0)},[e,N]);return{frame:$,shown:s,time:t,total:i,playing:g,repeat:k,setFrame:n,seek:N,setPlaying:f,setRepeat:h}}function Ie({frames:e,animation:l,language:u,sound:d}){var G;const{t:c,langOf:p}=te(),{frame:b,time:i,total:t,playing:v,repeat:g,setFrame:f,seek:k,setPlaying:h,setRepeat:H}=l,x=V(()=>[...new Set(e.map(o=>o.start))].sort((o,y)=>o-y),[e]);let M=0;x.forEach((o,y)=>{o<=i&&(M=y)});const w=t>0?Math.min(i,t)/t*100:0,C=V(()=>{const o=me(e,t);return o.length?fe(o):void 0},[e,t]),N=`${ne().replace(/:/g,"")}-frames`,$=`${N}-menu`,[T,s]=P(false),n=F(null);ve(n);const r=X(o=>{var y;s(false),o&&((y=document.getElementById(N))==null||y.focus())},[N]),m=Se(e,(G=oe())==null?void 0:G.clover.request),S=V(()=>({key:"frame",items:e.map((o,y)=>({label:o.annotation.label,id:o.annotation.id,image:m[y]}))}),[e,m]),[L,E]=P(null),[A,B]=P(false),D=F(null),W=`${b+1} / ${e.length}`;Y(()=>{var o;L===null&&((o=D.current)==null||o.style.setProperty("--clover-transport-preview",ge(w)))},[L,w]);const j=F(null);Y(()=>{const o=j.current,y=o==null?void 0:o.querySelector(".clover-canvas-menu"),q=o==null?void 0:o.closest(".clover-canvas-transport"),K=o==null?void 0:o.closest(".clover-canvas-media");if(!T||!o||!y||!q||!K)return;const Q=()=>ye(y,o,q,K);Q();const _=new ResizeObserver(Q);return _.observe(K),_.observe(q),_.observe(y),()=>_.disconnect()},[T]);const O=o=>{const y=x[M+o];y!==void 0&&(h(false),f(e.findIndex(q=>q.start===y)))};return a("div",{className:"clover-canvas-transport","data-kind":"frames","data-testid":"clover-canvas-frames",children:[a("div",{className:"clover-canvas-transport-seek-area",onPointerMove:o=>{if(!t||o.target.closest(".clover-tip"))return;const y=o.currentTarget.getBoundingClientRect();E(R(be(o.currentTarget,o.clientX)*t,t)),o.currentTarget.style.setProperty("--clover-transport-preview",`${(o.clientX-y.left)/y.width*100}%`)},onPointerLeave:()=>E(null),ref:D,children:[(L!==null||A)&&a(ae,{label:"",lead:L??R(i,t)}),a("input",{"aria-label":c("playerSeek"),"aria-valuetext":`${R(i,t)} / ${R(t,t)}, ${W}`,onFocus:o=>B(Te(o.currentTarget)),onBlur:()=>B(false),lang:p("playerSeek"),className:"clover-canvas-transport-seek",max:t,min:0,step:"any",type:"range",value:Math.min(i,t),onChange:o=>k(Number(o.target.value)),"data-gaps":C?"":void 0,style:{"--clover-transport-progress":`${w}%`,...C&&{"--clover-transport-gaps":C,"--clover-transport-at":w/100}}})]}),a("div",{className:"clover-canvas-transport-bar",ref:n,children:[a(z,{words:v?"playerPause":"playerPlay",button:v?"pause":"play",onClick:()=>{!v&&i>=t&&k(0),h(!v)},children:v?a(ke,{}):a(we,{})}),a(z,{words:"frameRepeat",button:"repeat",pressed:g,onClick:()=>H(!g),children:a("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16",children:a("path",{d:"M3 7V6a2 2 0 0 1 2-2h7l-2-2M13 9v1a2 2 0 0 1-2 2H4l2 2",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})})}),d&&a(z,{words:d.muted?"playerUnmute":"playerMute",button:"mute",onClick:d.toggle,children:d.muted?a(xe,{}):a(Me,{})}),a("span",{className:"clover-canvas-transport-status","aria-hidden":"true",children:a("span",{className:"clover-canvas-transport-time",children:[R(i,t)," / ",R(t,t)]})}),a("div",{className:"clover-canvas-transport-end",children:[a("span",{className:"clover-canvas-transport-frames",ref:j,children:[a("button",{type:"button",id:N,className:"clover-canvas-transport-time","aria-controls":T?$:void 0,"aria-expanded":T,onClick:()=>{T||h(false),s(!T)},children:[a("span",{className:"clover-canvas-transport-place","aria-live":"off",children:[a("span",{children:W}),a("span",{className:"clover-canvas-transport-place-room","aria-hidden":"true",hidden:true,children:[e.length," / ",e.length]})]}),a("svg",{"aria-hidden":"true",focusable:"false",width:"12",height:"12",viewBox:"0 0 12 12",children:a("path",{d:"M3 7.5l3-3 3 3",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),T&&a(pe,{id:$,triggerId:N,label:c("playerChapters"),labelLang:p("playerChapters"),language:u,choices:[S],selections:{frame:b},onSelect:(o,y)=>{h(false),f(y)},onClose:r})]}),a(z,{words:"commonPrevious",disabled:M===0,onClick:()=>O(-1),children:a("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16",children:a("path",{d:"M10 3L5 8l5 5",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),a(z,{words:"commonNext",disabled:M===x.length-1,onClick:()=>O(1),children:a("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16",children:a("path",{d:"M6 3l5 5-5 5",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]})]})}function Le(e,l,u){const d=se(l),c=u.width/(d.width||1),p=u.height/(d.height||1);return e.flatMap((b,i)=>{var h;const t=re(b.annotation)[0],v=t==null?void 0:t.type,g=v==="Video"?"video":ie(v)?"audio":v==="TextualBody"&&typeof(t==null?void 0:t.value)=="string"?"text":null;if(!g||!t||g!=="text"&&typeof t.id!="string")return[];const f=(h=ce(b.annotation.target))==null?void 0:h.rect,k=f?{x:f.x,y:f.y,width:f.w,height:f.h}:{x:0,y:0,width:d.width,height:d.height};return[{index:i,id:`${b.annotation.id??i}#${g}`,kind:g,body:t,placement:{x:u.x+k.x*c,y:u.y+k.y*p,width:k.width*c,height:k.height*p}}]})}function Fe({host:e,item:l,shown:u,language:d}){return I(()=>{if(!u||e.dataset.fitted)return;let c=0;const p=()=>{if(!e.isConnected){c=requestAnimationFrame(p);return}const{width:b,height:i}=l.placement,t=f=>(e.style.fontSize=`${f}px`,e.scrollWidth<=b+1&&e.scrollHeight<=i+1);let v=1,g=i*.8;if(t(g))v=g;else for(let f=0;f<16;f+=1){const k=(v+g)/2;t(k)?v=k:g=k}e.style.fontSize=`${v}px`,e.dataset.fitted=""};return c=requestAnimationFrame(p),()=>cancelAnimationFrame(c)},[e,l,u]),le(a(Z,{as:"div",markup:{[l.body.language??"none"]:[l.body.value]},format:l.body.format,language:d}),e)}function je({renderer:e,frames:l,byFrame:u,animationKey:d,sceneVersion:c,autoplay:p,loop:b,onEnded:i,language:t,duration:v,canvas:g,place:f,onItems:k}){const h=Be(l,d,{autoplay:p,loop:b,duration:v,onEnded:i,isReady:s=>(u[s]??[]).every(n=>e.isReady(n))}),H=V(()=>g&&f?Le(l,g,f):[],[l,g,f]),[x,M]=P([]);I(()=>{const s=H.map(n=>{if(n.kind==="text"){const m=document.createElement("div");return m.className="clover-canvas-painted-text",m.setAttribute("aria-hidden","true"),{item:n,element:m}}const r=document.createElement(n.kind);return r.preload="auto",r.playsInline=true,r.src=n.body.id,{item:n,element:r}});return M(s),()=>{for(const{element:n}of s)n instanceof HTMLMediaElement&&(n.pause(),n.removeAttribute("src"),n.load())}},[H]);const w=F(k);w.current=k,I(()=>{var s;return(s=w.current)==null||s.call(w,x.filter(({item:n})=>n.kind!=="audio").map(({item:n,element:r})=>({id:n.id,placement:n.placement,width:n.placement.width,height:n.placement.height,media:{element:r},hidden:true}))),()=>{var n;return(n=w.current)==null?void 0:n.call(w,[])}},[x]);const[C,N]=P(!!p);I(()=>{var s;for(const{item:n,element:r}of x){if(!(r instanceof HTMLMediaElement))continue;if(r.muted=C,!h.shown.includes(n.index)){r.paused||r.pause();continue}const m=Math.max(0,h.time-l[n.index].start);if(Math.abs(r.currentTime-m)>(h.playing?1:.1))try{r.currentTime=m}catch{}h.playing&&r.paused?(s=r.play())==null||s.catch(()=>{}):!h.playing&&!r.paused&&r.pause()}},[x,l,h.shown,h.time,h.playing,C]),I(()=>{const s=new Set([...h.shown.flatMap(n=>u[n]??[]),...x.filter(({item:n})=>h.shown.includes(n.index)).map(({item:n})=>n.id)]);e.setHidden([...u.flat(),...x.map(({item:n})=>n.id)].filter(n=>!s.has(n)))},[e,u,x,h.shown,c]);const $=x.filter(({item:s})=>s.kind==="text"),T=x.some(({item:s})=>s.kind!=="text");return a("div",{className:"clover-canvas-media","data-kind":"frames",children:[$.some(({item:s})=>h.shown.includes(s.index))&&a("div",{style:ee,children:$.filter(({item:s})=>h.shown.includes(s.index)).map(({item:s})=>a(Z,{as:"p",markup:{[s.body.language??"none"]:[s.body.value]},format:s.body.format,language:t},s.id))}),$.map(({item:s,element:n})=>a(Fe,{host:n,item:s,shown:h.shown.includes(s.index),language:t},s.id)),a(Ie,{frames:l,animation:h,language:t,sound:T?{muted:C,toggle:()=>N(s=>!s)}:void 0})]})}export{Ie as FrameControls,R as clockTime,je as default,U as framesAt,Be as useAnimation};
@@ -0,0 +1 @@
1
+ import{K as I,N as U,g as T,h as $,A as S,f as q,O as D,Q as P,y as F,u as e,L as O,t as V,o as W,U as Q,V as X,e as H,q as J,R as Y,W as Z,S as _,E as ee,k as te}from"./viewer-nfPJPwwt.mjs";import{a as K}from"./styles-Bedyz7_l.mjs";function E(){const t=I(c=>c.addedSets.some(i=>!!i.content)),o=U();return t?o:null}K(45,"templates/shared/Lightbox","@layer clover{.clover-template-lightbox{position:absolute;inset:0;z-index:10;padding:var(--clover-template-lightbox-inset, 0);background:var(--clover-template-lightbox-backdrop, transparent)}.clover-template-lightbox[hidden]{display:none}.clover-template-lightbox-content{position:sticky;top:calc(var(--clover-template-lightbox-top, 0px) + var(--clover-template-lightbox-inset, 0px));box-sizing:border-box;display:flex;flex-direction:column;gap:var(--clover-space-m);height:min(100%,calc(100vh - var(--clover-template-lightbox-top, 0px) - 2 * var(--clover-template-lightbox-inset, 0px)));padding:var(--clover-inset);border-radius:var(--clover-template-lightbox-radius, 0);background:var(--clover-color-secondary, #fff);color:var(--clover-color-primary, #1a1d1e);--clover-body-height: min(70vh, 48rem)}@supports (height: 1svh){.clover-template-lightbox-content{height:min(100%,calc(100svh - var(--clover-template-lightbox-top, 0px) - 2 * var(--clover-template-lightbox-inset, 0px)));--clover-body-height: min(70svh, 48rem)}}.clover-template-lightbox-content>.clover-template-lightbox-panes{flex:1 1 auto;min-height:0}.clover-template-lightbox-main{display:flex;flex-direction:column;gap:var(--clover-space-m);min-height:0}.clover-template-lightbox-main>.clover-template-lightbox-body{flex:1 1 auto;min-height:0}.clover-template-lightbox-main>.clover-items[data-layout=slider]{flex:none;--clover-items-height: 4rem;--clover-items-lines: 1}.clover-template-lightbox-pending{height:var(--clover-body-height, 60vh);background-color:#0001}.clover-template-lightbox-header{display:flex;align-items:center;gap:var(--clover-space-m)}.clover-template-lightbox-title{flex:1 1 auto;min-width:0}.clover-template-lightbox-caption{flex:none;margin:calc(var(--clover-space-xs) - var(--clover-space-m)) 0 0;overflow-wrap:anywhere}.clover-template-lightbox-back:dir(rtl) svg{transform:scaleX(-1)}button:is(.clover-template-lightbox-back,.clover-template-lightbox-close){flex:none;display:inline-flex;align-items:center;justify-content:center;width:var(--clover-control);height:var(--clover-control);padding:0;border:0;border-radius:var(--clover-radius-pill, 2rem);background:transparent;color:inherit;cursor:pointer}button:is(.clover-template-lightbox-back,.clover-template-lightbox-close):is(:hover,:focus-visible){background:var(--clover-color-accent, #0065c3);color:var(--clover-color-control-glyph, #fff)}:where([data-high-contrast]) button:is(.clover-template-lightbox-back,.clover-template-lightbox-close):is(:hover,:focus-visible){background:var(--clover-accent-fill)}:where([data-high-contrast]) button:is(.clover-template-lightbox-back,.clover-template-lightbox-close):hover:not(:focus-visible){outline:var(--clover-accent-ring-hover);outline-offset:1px}}");const R=()=>import("./LightboxView-DKR8dXcg.mjs"),le=X(R),A=()=>void R();function oe({open:t,onClose:o,headingLevel:c=3,items:i="slider",className:s,...l}){var w;const a=T(),n=$(),v=S(null),m=S(null),x=S(null),d=q().replace(/:/g,""),u=`${d}-title`,b=`${d}-view`,f=D((w=P())==null?void 0:w.label).text?u:b,y=!!E(),k=S(o);return k.current=o,F(()=>{var p,C,G,j;const r=v.current,L=r==null?void 0:r.parentElement;if(!t||!r||!L)return;const h=r.ownerDocument.activeElement,N=Array.from(L.children).filter(g=>g!==r&&!g.classList.contains("clover-announcer"));return N.forEach(g=>g.inert=true),(C=(p=m.current)==null?void 0:p.scrollIntoView)==null||C.call(p,{block:"nearest"}),(j=((G=m.current)==null?void 0:G.querySelector('[role="listbox"] [role="option"][aria-selected="true"]'))??x.current)==null||j.focus({preventScroll:true}),()=>{N.forEach(g=>g.inert=false),h!=null&&h.isConnected&&h.focus({preventScroll:true})}},[t]),e("div",{ref:v,className:["clover-template-lightbox",s].filter(Boolean).join(" "),hidden:!t,onClick:r=>{r.target===v.current&&o()},onKeyDown:r=>{r.key!=="Escape"||r.defaultPrevented||(r.preventDefault(),k.current())},children:t&&e("div",{ref:m,role:"dialog","aria-modal":"true","aria-labelledby":f,className:"clover-template-lightbox-content",children:[e("header",{className:"clover-template-lightbox-header",children:[e(re,{onOut:o}),e(O,{as:V(c,u).as,id:u,className:"clover-template-lightbox-title clover-template-title clover-title"}),f===b&&e(O,{of:"canvas",id:b,hidden:true}),e("button",{ref:x,type:"button",className:"clover-template-lightbox-close","aria-label":a("commonClose"),lang:n("commonClose"),onClick:o,children:[e("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16",children:e("path",{d:"M3 3l10 10M13 3L3 13",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})}),e(W,{label:a("commonClose")})]})]}),e(Q,{fallback:e("div",{className:"clover-template-lightbox-body clover-template-lightbox-pending","aria-busy":"true"}),children:e(le,{id:d,annotations:y,items:i,headingLevel:c,...l})})]})})}function re({onOut:t}){const o=T(),c=$(),i=I(m=>m.throughCollection?m.collection:null),s=E(),l=P(),a=D(s?s.label:(i==null?void 0:i.label)??(l==null?void 0:l.label)),n=a.text?"templateBackTo":"templateBack",v=o(n,{label:a.text});return e("button",{type:"button",className:"clover-template-lightbox-back","aria-label":v,lang:c(n),onClick:t,children:[e("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16",children:e("path",{d:"M10 3L5 8l5 5",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),e(W,{label:v,lang:c(n)})]})}K(47,"templates/gallery/Gallery","@layer clover{.clover-template-gallery{position:relative;isolation:isolate;display:flex;flex-direction:column;gap:var(--clover-space-l);padding:var(--clover-inset);color:var(--clover-color-primary, #1a1d1e)}.clover-template-gallery[data-height=fixed]{box-sizing:border-box;height:var(--clover-template-gallery-height)}.clover-template-gallery[data-height=fixed]>.clover-items{flex:1 1 auto;min-height:0;overflow:auto;margin:calc(-1 * var(--clover-items-ring-room, 4px));padding:var(--clover-items-ring-room, 4px)}.clover-template-gallery-header{flex:none;display:flex;flex-direction:column;gap:var(--clover-space-2xs)}.clover-template-gallery-summary{margin:0;--clover-summary-lines: 2}.clover-template-gallery .clover-items{--clover-items-gap: var(--clover-template-gallery-gap, var(--clover-inset));--clover-items-lines: none}}");const ae=t=>t+1,M=t=>typeof t=="number"?`${t}px`:t;function se({className:t,size:o,height:c="auto",gap:i,items:s="grid",secondary:l,summary:a=true,lightboxItems:n="slider",panel:v=true,defaultPanelOpen:m=true,panelLayout:x="accordion",panelSections:d,panelLabels:u,download:b=true,languages:z=true,storageKey:f="clover-template-gallery",headingLevel:y=2,collapseControls:k,style:w,...r}){const[L,h]=H(false),N=J(()=>h(false),[]),B=V(y,`${q().replace(/:/g,"")}-title`),p=c!=="auto",C={...o&&{"--clover-items-size":o},...p&&{"--clover-template-gallery-height":M(c)},...i!=null&&{"--clover-template-gallery-gap":M(i)}};return e(Y,{className:["clover-template-gallery",t].filter(Boolean).join(" "),style:{...w,...C},"data-height":p?"fixed":"auto",onPointerOver:A,onFocus:A,...B.group,...r,children:[e(ce,{title:B,layout:s==="masonry"?"masonry":"grid",secondary:l,summary:a,onOpen:()=>h(true)}),e(oe,{open:L,onClose:N,headingLevel:ae(y),items:n,panel:v,defaultPanelOpen:m,panelLayout:x,panelSections:d,panelLabels:u,download:b,languages:z,storageKey:f,collapseControls:k})]})}function ce({title:t,layout:o,secondary:c,summary:i,onOpen:s}){const l=I(n=>n.throughCollection?n.collection:null),a=E();return e(te,{children:[e("header",{className:"clover-template-gallery-header",children:[e(O,{as:t.as,className:"clover-template-gallery-title clover-template-title clover-title",label:a?a.label:l==null?void 0:l.label,...t.title}),i&&!a&&e(Z,{className:"clover-template-gallery-summary",value:l==null?void 0:l.summary})]}),e(_,{loading:l||a?false:void 0}),e(ee,{layout:o,secondary:c,of:a?"annotations":l?"members":"views",singleItem:true,onSelect:s})]})}export{se as Gallery};
@@ -1 +1 @@
1
- import{ac as c,h as d,u as e,a7 as h,o as p}from"./viewer-D30YHqyF.mjs";import"./styles-NZLnZPAC.mjs";function k({hidden:i,onChange:s,of:n}){const{t,langOf:o}=c(),a=d(),r=n?"annotationsHideTip":"annotationsHide";return e("label",{className:"clover-hide",children:[e("input",{type:"checkbox",checked:i,"aria-labelledby":n?`${a} ${n}`:a,onChange:l=>s(l.target.checked)}),e("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,viewBox:"0 0 512 512","aria-hidden":"true",focusable:"false",fill:"none",stroke:"currentColor",strokeWidth:40,strokeLinecap:"round",strokeLinejoin:"round",children:[e("path",{d:"M32 256s80-144 224-144 224 144 224 144-80 144-224 144S32 256 32 256z"}),e("circle",{cx:256,cy:256,r:72}),i&&e("path",{d:"M80 80l352 352"})]}),e("span",{id:a,hidden:true,...h(o(r)),children:t(r)}),e(p,{label:t("annotationsHideTip"),lang:o("annotationsHideTip")})]})}export{k as H};
1
+ import{ae as c,f as d,u as e,a9 as h,o as p}from"./viewer-nfPJPwwt.mjs";import"./styles-Bedyz7_l.mjs";function k({hidden:i,onChange:s,of:n}){const{t,langOf:o}=c(),a=d(),r=n?"annotationsHideTip":"annotationsHide";return e("label",{className:"clover-hide",children:[e("input",{type:"checkbox",checked:i,"aria-labelledby":n?`${a} ${n}`:a,onChange:l=>s(l.target.checked)}),e("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,viewBox:"0 0 512 512","aria-hidden":"true",focusable:"false",fill:"none",stroke:"currentColor",strokeWidth:40,strokeLinecap:"round",strokeLinejoin:"round",children:[e("path",{d:"M32 256s80-144 224-144 224 144 224 144-80 144-224 144S32 256 32 256z"}),e("circle",{cx:256,cy:256,r:72}),i&&e("path",{d:"M80 80l352 352"})]}),e("span",{id:a,hidden:true,...h(o(r)),children:t(r)}),e(p,{label:t("annotationsHideTip"),lang:o("annotationsHideTip")})]})}export{k as H};
@@ -0,0 +1 @@
1
+ import{ae as N,A as O,af as V,c0 as W,_ as P,u as a,ay as j,ca as z,c9 as K,aR as $,a9 as H,o as _}from"./viewer-nfPJPwwt.mjs";function D(c){var d,u;const e=c.getBoundingClientRect(),g=parseFloat(getComputedStyle(c).paddingLeft)||0,i=(d=c.firstElementChild)==null?void 0:d.getBoundingClientRect(),p=(u=c.lastElementChild)==null?void 0:u.getBoundingClientRect();return{box:e,ring:g,left:i?e.left-(i.left-g):0,right:p?p.right+g-e.right:0}}function G({instance:c,open:e,onOpenChange:g,toggle:i,children:p}){const{t:d,langOf:u}=N(),C=`more-${c}`,w=`${C}-list`,x=O(null),B=e?"canvasCollapseControls":"canvasExpandControls",k=V(d("canvasViewerControls"),u("canvasViewerControls"));W(e&&!i,()=>{});const M=O(false),R=(t,r)=>{M.current=r,g(t)};P(()=>{var t;M.current&&(M.current=false,(t=document.getElementById(C))==null||t.focus())},[e,C]),P(()=>{const t=x.current;if(!e||!t)return;const r=()=>D(t),o=()=>{t.scrollTop&&(t.scrollTop=0);const{box:l,left:n,right:s}=r(),m=t.scrollLeft<0||t.scrollLeft>t.scrollWidth-t.clientWidth;if(t.dataset.past&&!m&&s<-.5&&n>.5){t.scrollLeft-=Math.min(-s,n);return}if(t.dataset.past&&!m&&n<-.5&&s>.5){t.scrollLeft+=Math.min(-n,s);return}const E=[n>1&&"left",s>1&&"right"].filter(Boolean).join(" ");E?t.dataset.past=E:delete t.dataset.past;const y=parseFloat(getComputedStyle(t).scrollPaddingLeft)||0;for(const f of Array.from(t.children)){const h=f.getBoundingClientRect(),v=n>1&&h.left<l.left+y-.5||s>1&&h.right>l.right-y+.5;v!==f.hasAttribute("data-partial")&&f.toggleAttribute("data-partial",v)}},L=l=>{const n=l.target;if(!(n instanceof HTMLElement)||n.parentElement!==t)return;o();const{box:s,ring:m,left:E,right:y}=r(),f=n.getBoundingClientRect(),h=parseFloat(getComputedStyle(t).scrollPaddingLeft)||0,v=f.right-(s.right-(n.nextElementSibling?h:m)),T=s.left+(n.previousElementSibling?h:m)-f.left;v>0?t.scrollLeft+=Math.min(v,Math.max(y,0)):T>0&&(t.scrollLeft-=Math.min(T,Math.max(E,0))),o()};o(),t.addEventListener("scroll",o,{passive:true}),t.addEventListener("focusin",L),t.addEventListener("animationend",o);const b=new ResizeObserver(()=>o());return b.observe(t),()=>{t.removeEventListener("scroll",o),t.removeEventListener("focusin",L),t.removeEventListener("animationend",o),b.disconnect(),delete t.dataset.past;for(const l of Array.from(t.children))l.removeAttribute("data-partial")}},[e]);const S=i?a(j.Fragment,{children:i},"more"):a($,{id:C,label:d(B),lang:u(B),expanded:e,controls:w,onClick:t=>R(!e,document.activeElement===t.currentTarget),children:e?a(z,{}):a(K,{})},"more"),I=t=>{const r=x.current;if(!r)return;const{box:o,left:L,right:b}=D(r),l=getComputedStyle(r),n=o.width-2*(parseFloat(l.scrollPaddingLeft)||0),s=t!==(l.direction==="rtl");r.scrollBy({left:s?Math.min(n,b):-Math.min(n,L),behavior:matchMedia("(prefers-reduced-motion: reduce)").matches?"instant":"smooth"})},A=t=>{const r=t?"canvasScrollForward":"canvasScrollBack";return a("button",{type:"button",className:"clover-steps-step clover-canvas-more-step","data-step":t?"next":"prev","aria-hidden":"true",tabIndex:-1,...H(u(r)),onMouseDown:o=>o.preventDefault(),onClick:()=>I(t),children:[a("svg",{"aria-hidden":"true",focusable:"false",width:"12",height:"12",viewBox:"0 0 16 16",children:a("path",{d:t?"M6 3l5 5-5 5":"M10 3L5 8l5 5",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),a(_,{label:d(r)})]},r)},F=a("div",{className:"clover-canvas-more-list",hidden:!e,id:w,ref:x,role:"group",...k.props,children:p},"list");return a("div",{className:"clover-canvas-more","data-open":e||void 0,onKeyDown:t=>{i||!e||t.key!=="Escape"||t.defaultPrevented||(t.preventDefault(),R(false,true))},children:[e?[F,S]:[S,F],k.node,e&&[A(false),A(true)]]})}export{G as ImageControls};
@@ -0,0 +1 @@
1
+ import{ae as m,f as p,af as g,u as n,a9 as f,v as h,o as y,k as C}from"./viewer-nfPJPwwt.mjs";import{l as N}from"../languageCode-cCpiU0b0.mjs";function $(a){try{return new Intl.DisplayNames([a],{type:"language"}).of(a)??a}catch{return a}}function k({languages:a,chosen:u,onChange:i,nameKey:l,part:s}){const{t:c,langOf:d}=m(),t=p(),o=g(c(l),d(l));return n(C,{children:[o.node,n("fieldset",{...o.props,className:`${s}-languages`,children:a.map(e=>{const r=$(e);return n("label",{className:`${s}-language`,children:[n("input",{type:"radio",name:`${t}-language`,checked:e===u,onChange:()=>i(e)}),n("span",{className:`${s}-language-code`,children:N(e)})," ",n("span",{style:h,...f(e),children:r}),n(y,{label:r,lang:e})]},e)})})]})}export{k as LanguageChoice};
@@ -0,0 +1 @@
1
+ import{A as P,y as w,i as L,l as N,m as S,u as t,D as B,G as D,B as F,L as I,E as M,H as q,z}from"./viewer-nfPJPwwt.mjs";import{u as A}from"./useLazyPanelPane-BhLtRixT.mjs";function _({id:p,annotations:m,items:c,headingLevel:b,panel:l=true,defaultPanelOpen:g=true,panelLayout:v="accordion",panelSections:i,panelLabels:h,download:f=true,languages:y=true,storageKey:x,collapseControls:E}){const r=P(null);w(()=>{var d;const e=(d=r.current)==null?void 0:d.closest('[role="dialog"]');if(!e||c==="pager")return;const s=()=>{var o;return(o=e.ownerDocument.activeElement)==null?void 0:o.matches(".clover-template-lightbox-close")},u=()=>{const o=e.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');return o&&s()&&o.focus({preventScroll:true}),!!o};if(u()||!s())return;const n=new MutationObserver(()=>{(u()||!s())&&n.disconnect()});return n.observe(e,{childList:true,subtree:true}),()=>n.disconnect()},[]);const a=A({id:`${p}-panel`,beside:N(r,S),defaultOpen:g,followFocus:L(),sections:i,body:()=>{var e;return(e=r.current)==null?void 0:e.querySelector(".clover-template-lightbox-body")}});return t(z,{ref:r,className:"clover-template-lightbox-panes clover-template-panes",storageKey:x||void 0,...l?a.splitProps:{"data-panel":"beside"},children:[t(B,{className:"clover-template-lightbox-main",min:l&&a.over?void 0:D,children:[t(F,{className:"clover-template-lightbox-body",collapseControls:E,children:l&&!a.docked&&a.toggle}),t(I,{of:"canvas",as:"p",className:"clover-template-lightbox-caption"}),t(M,{layout:c==="pager"?"pager":"slider",...m&&{of:"annotations"}})]}),l&&t(q,{pane:a,layout:v,sections:i,labels:h,download:f,languages:y,headingLevel:(b??3)+1})]})}export{_ as default};
@@ -0,0 +1 @@
1
+ import{a as x,K as u,bk as y,bq as g,bb as P,e as k,y as h,q as A,A as f,u as C}from"./viewer-nfPJPwwt.mjs";function p(n){const{clover:s}=x("Annotations"),o=u(e=>{var t;return e.annotationId?(t=y(g(e.manifest),e.annotationId))==null?void 0:t.setId:void 0}),c=u(e=>P(e.manifest,e.canvasId)),[r,d]=k(0),i=n.findIndex(e=>!e.fetched),a=i===-1?n.length:i,v=n.reduce((e,t,b)=>c.some(I=>I.id===t.canvasId)?b:e,-1),l=Math.max(r,n.findIndex(e=>e.id===o),v,0);h(()=>{const e=n.slice(0,l+1).filter(t=>!t.fetched).map(t=>t.id);e.length&&s.fetchAnnotationPages(e)},[s,n,l]);const m=A(()=>d(e=>Math.max(e,a)),[a]);return{loaded:a,more:a<n.length,reachNext:m}}function q({onReached:n}){const s=f(null),o=f(n);return o.current=n,h(()=>{const c=s.current;if(!c||typeof IntersectionObserver>"u")return;const r=new IntersectionObserver(d=>{d.some(i=>i.isIntersecting)&&o.current()});return r.observe(c),()=>r.disconnect()},[]),C("span",{ref:s,className:"clover-list-end","aria-hidden":"true",style:{display:"block",height:1}})}export{q as L,p as u};