@nulib/clover 4.4.1 → 4.5.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 (353) hide show
  1. package/README.md +4 -3
  2. package/dist/components/Annotations/Annotations.mjs +11 -5
  3. package/dist/components/Body/Caption.mjs +1 -1
  4. package/dist/components/Canvas/AnnotationMenu.mjs +16 -2
  5. package/dist/components/Canvas/AnnotationState.mjs +27 -23
  6. package/dist/components/Canvas/ControlMenu.mjs +9 -0
  7. package/dist/components/Canvas/PlaceBox.mjs +8 -0
  8. package/dist/components/Canvas/media/Transport.mjs +32 -18
  9. package/dist/components/Items/CountMenu.mjs +13 -1
  10. package/dist/components/Items/Items.mjs +24 -7
  11. package/dist/components/Items/PagerLayout.mjs +1 -0
  12. package/dist/components/Map/MapView.mjs +31 -19
  13. package/dist/components/Panel/About.mjs +16 -5
  14. package/dist/components/Panel/AboutActions.mjs +10 -16
  15. package/dist/components/Panel/LanguageToggle.mjs +69 -0
  16. package/dist/components/Panel/Panel.mjs +9 -1
  17. package/dist/components/Panel/ReadingLanguages.mjs +2 -16
  18. package/dist/components/Panel/sections.mjs +6 -1
  19. package/dist/components/Root/useRootState.mjs +43 -4
  20. package/dist/components/Search/Search.mjs +10 -7
  21. package/dist/components/Transcript/Transcript.mjs +42 -33
  22. package/dist/core/image-service-content.mjs +108 -0
  23. package/dist/core/load.mjs +38 -1
  24. package/dist/core/value.mjs +1 -1
  25. package/dist/i18n/config.mjs +88 -14
  26. package/dist/i18n/direction.mjs +2 -2
  27. package/dist/i18n/languages.mjs +42 -8
  28. package/dist/i18n/locales/index.mjs +4 -1
  29. package/dist/i18n/locales/ja.json.mjs +5 -0
  30. package/dist/i18n/locales/zh-Hans.json.mjs +5 -0
  31. package/dist/i18n/locales/zh-Hant.json.mjs +5 -0
  32. package/dist/index.d.mts +109 -24
  33. package/dist/lib/renderer/CanvasRenderer.mjs +20 -5
  34. package/dist/map/index.d.mts +3 -2
  35. package/dist/react/readingLanguages.mjs +15 -2
  36. package/dist/styles/core.css +1 -1
  37. package/dist/styles/default.css +1 -1
  38. package/dist/styles/items.css +1 -1
  39. package/dist/styles/map.css +1 -1
  40. package/dist/styles/media.css +1 -1
  41. package/dist/styles/panel.css +1 -1
  42. package/dist/styles.css +1 -1
  43. package/dist/templates/default/Default.mjs +3 -0
  44. package/dist/templates/document/Document.mjs +6 -1
  45. package/dist/templates/gallery/Gallery.mjs +2 -0
  46. package/dist/templates/index.d.mts +56 -11
  47. package/dist/templates/shared/LightboxView.mjs +3 -0
  48. package/dist/templates/shared/useDrawer.mjs +14 -2
  49. package/dist/ui/ErrorBoundary.mjs +19 -5
  50. package/dist/ui/FieldPill.mjs +2 -0
  51. package/dist/ui/GlobeGlyph.mjs +26 -0
  52. package/dist/ui/LanguageChoice.mjs +87 -20
  53. package/dist/ui/LanguageMenu.mjs +94 -0
  54. package/dist/ui/Sections.mjs +18 -5
  55. package/dist/ui/Tip.mjs +4 -2
  56. package/dist/ui/sheets/map.mjs +1 -1
  57. package/dist/ui/sheets/media.mjs +1 -1
  58. package/dist/ui/useScrollTrack.mjs +34 -19
  59. package/dist/web-components/About-BklM8JA9.mjs +1 -0
  60. package/dist/web-components/AnnotationItems-4mbvOrhN.mjs +1 -0
  61. package/dist/web-components/AnnotationMenu-DtMaxXf5.mjs +1 -0
  62. package/dist/web-components/AnnotationState-BuEpq99k.mjs +1 -0
  63. package/dist/web-components/Annotations-Dyg-RAdd.mjs +2 -0
  64. package/dist/web-components/{Annotations-oXpa3fvs.mjs → Annotations-oPabBO7j.mjs} +1 -1
  65. package/dist/web-components/{Body-BNLhtQi3.mjs → Body-CD7AtOPv.mjs} +1 -1
  66. package/dist/web-components/{BodyAlert-B0AblEtp.mjs → BodyAlert-DzW4__bK.mjs} +1 -1
  67. package/dist/web-components/{Button-0dU8Owcz.mjs → Button-1To2Pwuz.mjs} +1 -1
  68. package/dist/web-components/{Camera-BS8iIH74.mjs → Camera-B82ZMekU.mjs} +1 -1
  69. package/dist/web-components/{Canvas2DBackend-U4BLi8EN.mjs → Canvas2DBackend-Ds-qoQ0W.mjs} +1 -1
  70. package/dist/web-components/CanvasView-B4fnYim4.mjs +2 -0
  71. package/dist/web-components/{CaptionDetails-CtRzBSwh.mjs → CaptionDetails-TTAEPH02.mjs} +1 -1
  72. package/dist/web-components/{ChaptersMenu-DJRfJSwC.mjs → ChaptersMenu-DhbAktrS.mjs} +1 -1
  73. package/dist/web-components/{Chevron-BJFhP5wm.mjs → Chevron-Br3zRRMX.mjs} +1 -1
  74. package/dist/web-components/{ChoiceMenu-Cfjnk3NG.mjs → ChoiceMenu-B4_doj7b.mjs} +1 -1
  75. package/dist/web-components/{Collection-C2ji8AVd.mjs → Collection-DrMfq53r.mjs} +1 -1
  76. package/dist/web-components/{CollectionSelect-CSTSqjG3.mjs → CollectionSelect-PP7IEcwu.mjs} +1 -1
  77. package/dist/web-components/{Connected-B42WdjMx.mjs → Connected-BOPNEv3j.mjs} +1 -1
  78. package/dist/web-components/{Connected-D2y_qBDh.mjs → Connected-BguZSgy4.mjs} +1 -1
  79. package/dist/web-components/{Connected-C-Ars8eC.mjs → Connected-CN94wOYw.mjs} +1 -1
  80. package/dist/web-components/{Contents-BLbU9Qvc.mjs → Contents-Dn7MutL9.mjs} +1 -1
  81. package/dist/web-components/ControlMenu-DlP3JsqV.mjs +1 -0
  82. package/dist/web-components/ControlsFade-Cuh5Mqe7.mjs +1 -0
  83. package/dist/web-components/CountMenu-Aoott7Hu.mjs +1 -0
  84. package/dist/web-components/Cue-BAj92VWz.mjs +1 -0
  85. package/dist/web-components/Document-BjTWX_7P.mjs +1 -0
  86. package/dist/web-components/{DomLayers-DDRNVemT.mjs → DomLayers-GnBlZ7yI.mjs} +1 -1
  87. package/dist/web-components/{Download-VPFf23Kw.mjs → Download-C1RNBLdn.mjs} +1 -1
  88. package/dist/web-components/{EntryBodies-CKgmBQCk.mjs → EntryBodies-BG4F8uub.mjs} +1 -1
  89. package/dist/web-components/{EntryThumbnail-CgukpUtr.mjs → EntryThumbnail-BJPQwkQw.mjs} +1 -1
  90. package/dist/web-components/FieldPill-CgMPW9BB.mjs +1 -0
  91. package/dist/web-components/{FrameAnimation-C2EFrQl0.mjs → FrameAnimation-DWd0yBuN.mjs} +1 -1
  92. package/dist/web-components/Gallery-DpJqgaft.mjs +1 -0
  93. package/dist/web-components/GlobeGlyph-CLM28n1E.mjs +1 -0
  94. package/dist/web-components/{HideToggle-HVrk9D6t.mjs → HideToggle-C4mW4-CK.mjs} +1 -1
  95. package/dist/web-components/{ImageControls-BsGWsB_S.mjs → ImageControls-B36Hng03.mjs} +1 -1
  96. package/dist/web-components/Items-BApzELFW.mjs +1 -0
  97. package/dist/web-components/Label-CRTQApU-.mjs +1 -0
  98. package/dist/web-components/LanguageChoice-B1941Wuu.mjs +1 -0
  99. package/dist/web-components/LanguageMenu-yWDzK3U0.mjs +1 -0
  100. package/dist/web-components/LightboxView-BLHI5EIj.mjs +1 -0
  101. package/dist/web-components/{ListEnd-BPSaqeEg.mjs → ListEnd-CIiLZZzc.mjs} +1 -1
  102. package/dist/web-components/{Loaded-vg9q9y73.mjs → Loaded-X_Pr53fq.mjs} +1 -1
  103. package/dist/web-components/{LoadedCanvas-BtNg_QnI.mjs → LoadedCanvas-1Bi6-QtF.mjs} +1 -1
  104. package/dist/web-components/LoadedMap-58bpxj_6.mjs +1 -0
  105. package/dist/web-components/{Loading-DnCFXiNy.mjs → Loading-CyoVEwax.mjs} +1 -1
  106. package/dist/web-components/{Map-CIGzy4XB.mjs → Map-2oeDIJzq.mjs} +1 -1
  107. package/dist/web-components/MapView-DX3ZLqmp.mjs +3 -0
  108. package/dist/web-components/{Markup-Csh1bNkq.mjs → Markup-B2GbrisO.mjs} +1 -1
  109. package/dist/web-components/{MediaBody-CRJFBpMk.mjs → MediaBody-DZ9JgkKF.mjs} +1 -1
  110. package/dist/web-components/{MediaBody-CeEWPIDp.mjs → MediaBody-eFAZIyGv.mjs} +1 -1
  111. package/dist/web-components/{NavDate-qoFXy3Ou.mjs → NavDate-BwV4kPl-.mjs} +1 -1
  112. package/dist/web-components/{Navigator-9n2yLQdc.mjs → Navigator-CTrfNuwj.mjs} +1 -1
  113. package/dist/web-components/{Pager-4rZjWBna.mjs → Pager-BGjj90LQ.mjs} +1 -1
  114. package/dist/web-components/PagerLayout-Ce7zW_yB.mjs +1 -0
  115. package/dist/web-components/Panel-77xi6y2C.mjs +1 -0
  116. package/dist/web-components/PanelPart-Cm9VykIu.mjs +1 -0
  117. package/dist/web-components/{PanelToggle-0K2YTp6k.mjs → PanelToggle-Cj_FjIgS.mjs} +1 -1
  118. package/dist/web-components/{PartOfManifest-ZUGZW86B.mjs → PartOfManifest-B0RwR4iy.mjs} +1 -1
  119. package/dist/web-components/{Pending-lpHOVvqE.mjs → Pending-s7yYnZzR.mjs} +1 -1
  120. package/dist/web-components/PlaceBox-pt7Vmrs1.mjs +1 -0
  121. package/dist/web-components/{Placeholder-ChFeaw7a.mjs → Placeholder-BK-eqSCl.mjs} +1 -1
  122. package/dist/web-components/{Position-C2Hm7tJZ.mjs → Position-CKsSKMgZ.mjs} +1 -1
  123. package/dist/web-components/Primitives-T7usOLie.mjs +1 -0
  124. package/dist/web-components/Provider-B2k1G-E0.mjs +1 -0
  125. package/dist/web-components/{ReadMore-DsthjUIZ.mjs → ReadMore-Cs2t9xkI.mjs} +1 -1
  126. package/dist/web-components/Root-D942bSXu.mjs +1 -0
  127. package/dist/web-components/Scene-Cwzisn4E.mjs +1 -0
  128. package/dist/web-components/SceneView-_CNm8cGL.mjs +1 -0
  129. package/dist/web-components/Search-u43mfzT8.mjs +1 -0
  130. package/dist/web-components/Sections-CPU5bGvk.mjs +2 -0
  131. package/dist/web-components/{SeekMarks-DNHLgUaX.mjs → SeekMarks-CnqVS-ym.mjs} +1 -1
  132. package/dist/web-components/StandaloneItems-D9Og9pdI.mjs +1 -0
  133. package/dist/web-components/{Status-DLZANUzF.mjs → Status-Cxev3WuC.mjs} +1 -1
  134. package/dist/web-components/{Steps-BigQvWNW.mjs → Steps-l7_NsIBr.mjs} +1 -1
  135. package/dist/web-components/{TargetItems-DzNzoEeh.mjs → TargetItems-nP3Oa9hh.mjs} +1 -1
  136. package/dist/web-components/Timeline-C1g1MXp5.mjs +1 -0
  137. package/dist/web-components/{Tip-CoSRaKjm.mjs → Tip-D2pR3HW4.mjs} +1 -1
  138. package/dist/web-components/Transcript-D_a9jio-.mjs +1 -0
  139. package/dist/web-components/Transport-CowDRPK7.mjs +1 -0
  140. package/dist/web-components/Transport-uqpqUIKE.mjs +1 -0
  141. package/dist/web-components/{annotation-collection-DwJ2R8tG.mjs → annotation-collection-d6JyHnML.mjs} +1 -1
  142. package/dist/web-components/{annotation-name-2rUtUYsN.mjs → annotation-name-BWTrB9nK.mjs} +1 -1
  143. package/dist/web-components/{annotations-content-fTNYRgN_.mjs → annotations-content-Bomfao_5.mjs} +1 -1
  144. package/dist/web-components/{body-qFClz6nF.mjs → body-Dfn0GJa2.mjs} +1 -1
  145. package/dist/web-components/{canvas-DqmG6v1g.mjs → canvas-DHIn2DIV.mjs} +1 -1
  146. package/dist/web-components/{cloverEngine-BBfVDNbE.mjs → cloverEngine-DDVOcZTv.mjs} +1 -1
  147. package/dist/web-components/{content-state-reader-DYXL5lFa.mjs → content-state-reader-CyNkhTZY.mjs} +1 -1
  148. package/dist/web-components/{controlGlyphs-DqZmaT9n.mjs → controlGlyphs-Dymy1PkA.mjs} +1 -1
  149. package/dist/web-components/{controls-BvC6zo32.mjs → controls-CIkf2UoE.mjs} +1 -1
  150. package/dist/web-components/custom-elements.json +35 -3
  151. package/dist/web-components/downloads-DCsDCcA8.mjs +1 -0
  152. package/dist/web-components/{dragToClose-wFiErDub.mjs → dragToClose-BKcu5guw.mjs} +1 -1
  153. package/dist/web-components/{engine-B0W3FXuQ.mjs → engine-BhdQsvOB.mjs} +1 -1
  154. package/dist/web-components/{engines-DVRUnyFv.mjs → engines-pnfVMoUH.mjs} +1 -1
  155. package/dist/web-components/{fetchManifest-f8gYlPDK.mjs → fetchManifest-QmVIeaHo.mjs} +1 -1
  156. package/dist/web-components/{fromManifest-BmpOsc5g.mjs → fromManifest-CvXwGGRI.mjs} +1 -1
  157. package/dist/web-components/{glyphs-oAgi4Au0.mjs → glyphs-BAh9Lia0.mjs} +1 -1
  158. package/dist/web-components/hooks-CTqjdpYl.mjs +1 -0
  159. package/dist/web-components/{image-layers-CndzdWOW.mjs → image-layers-Dp2qOSA5.mjs} +1 -1
  160. package/dist/web-components/image-service-content-B5ICMeIO.mjs +1 -0
  161. package/dist/web-components/{imageService-DTp1mc0F.mjs → imageService-XKWMYAcG.mjs} +1 -1
  162. package/dist/web-components/index-BuoWCrun.mjs +1 -0
  163. package/dist/web-components/index.mjs +1 -1
  164. package/dist/web-components/items-8ZEJCxWU.mjs +1 -0
  165. package/dist/web-components/items-DjpIYUxD.mjs +1 -0
  166. package/dist/web-components/ja-Cg1enUhM.mjs +1 -0
  167. package/dist/web-components/label-BWHRHAY2.mjs +1 -0
  168. package/dist/web-components/layout-B3HyDCsP.mjs +1 -0
  169. package/dist/web-components/{link-CEfxl5hU.mjs → link-Mnt5GrKM.mjs} +1 -1
  170. package/dist/web-components/logo-YR9jXUE4.mjs +1 -0
  171. package/dist/web-components/{models-B-kri8Ov.mjs → models-NfaX6B8u.mjs} +1 -1
  172. package/dist/web-components/{nodes-BKoxD-el.mjs → nodes-CRrc5Svn.mjs} +1 -1
  173. package/dist/web-components/{overlayImage-Dp8CjA_L.mjs → overlayImage-D7Knsh4X.mjs} +1 -1
  174. package/dist/web-components/{panel-ldBDfuIV.mjs → panel-DUMFdAc8.mjs} +1 -1
  175. package/dist/web-components/part-C_V28rvN.mjs +1 -0
  176. package/dist/web-components/{playerSurface-CLWTmyt1.mjs → playerSurface-CF5g-4Po.mjs} +1 -1
  177. package/dist/web-components/pointer-PJLHbbSD.mjs +1 -0
  178. package/dist/web-components/{provider-D24Pm3a1.mjs → provider-b4id5kCa.mjs} +1 -1
  179. package/dist/web-components/{range-regions-9vY5ikPm.mjs → range-regions-DCY76ydS.mjs} +1 -1
  180. package/dist/web-components/{read-more-CoOeWZOF.mjs → read-more-UM90-AEc.mjs} +1 -1
  181. package/dist/web-components/readingLanguages-Qdn21-7Q.mjs +1 -0
  182. package/dist/web-components/rendererSurface-PZlq-wa_.mjs +22 -0
  183. package/dist/web-components/{renderers-BXcv_AqV.mjs → renderers-DIHonXTq.mjs} +1 -1
  184. package/dist/web-components/resource-BlU2Ese6.mjs +1 -0
  185. package/dist/web-components/{save-file-Dj3MRR7Y.mjs → save-file-GI0ekTmd.mjs} +1 -1
  186. package/dist/web-components/{search-C9OyY1qk.mjs → search-CHjjiXkB.mjs} +1 -1
  187. package/dist/web-components/shared-DgJ0bXca.mjs +1 -0
  188. package/dist/web-components/{show-link-4mlfdoeo.mjs → show-link-BlLkTYtm.mjs} +1 -1
  189. package/dist/web-components/{sizedImage-COfCkv_8.mjs → sizedImage-BoGT1x5n.mjs} +1 -1
  190. package/dist/web-components/{split-Ci426kxC.mjs → split-OO6-WiG3.mjs} +1 -1
  191. package/dist/web-components/{status-CzasXLV8.mjs → status-CSenPCO4.mjs} +1 -1
  192. package/dist/web-components/styles-Bvw9LFU7.mjs +1 -0
  193. package/dist/web-components/three.mjs +1 -1
  194. package/dist/web-components/{thumbnail-ByuoouMG.mjs → thumbnail-DYJHCrW_.mjs} +1 -1
  195. package/dist/web-components/{tip-CQEGLOst.mjs → tip-Dr1mfd4o.mjs} +1 -1
  196. package/dist/web-components/{toggle-Dro_EmUU.mjs → toggle-86lqpaU9.mjs} +1 -1
  197. package/dist/web-components/{useContainerName-CUP-TlA5.mjs → useContainerName-BfNL6p3O.mjs} +1 -1
  198. package/dist/web-components/{useControlsVisibility-DeI3NHWp.mjs → useControlsVisibility-C3LCnrb7.mjs} +1 -1
  199. package/dist/web-components/useNearViewport-Dk5q1rzk.mjs +1 -0
  200. package/dist/web-components/useScrollTrack-B_yYmQDS.mjs +1 -0
  201. package/dist/web-components/viewer/{AnnotationItems-ByWBkMRd.mjs → AnnotationItems-BbPnS9EE.mjs} +1 -1
  202. package/dist/web-components/viewer/AnnotationMenu-BGv-HimF.mjs +1 -0
  203. package/dist/web-components/viewer/AnnotationState-uRm7bEwg.mjs +1 -0
  204. package/dist/web-components/viewer/{Annotations-CJRF_IwO.mjs → Annotations-_2PMmUfu.mjs} +1 -1
  205. package/dist/web-components/viewer/Annotations-reaO1ILe.mjs +2 -0
  206. package/dist/web-components/viewer/{Canvas2DBackend-DPDF0a8D.mjs → Canvas2DBackend-Dru1ImJh.mjs} +1 -1
  207. package/dist/web-components/viewer/CaptionDetails-3OlEaKmX.mjs +1 -0
  208. package/dist/web-components/viewer/{ChaptersMenu-D7b9t6bm.mjs → ChaptersMenu-kchuXDZy.mjs} +1 -1
  209. package/dist/web-components/viewer/{ChoiceMenu-f2774ZaY.mjs → ChoiceMenu-C8pEoSC6.mjs} +1 -1
  210. package/dist/web-components/viewer/{Collection-D1E6A8es.mjs → Collection-B4LN_80C.mjs} +1 -1
  211. package/dist/web-components/viewer/{Connected-BLeqNIOf.mjs → Connected-80hCJuhg.mjs} +1 -1
  212. package/dist/web-components/viewer/{Connected-DfqFYcTn.mjs → Connected-CzPY2rgu.mjs} +1 -1
  213. package/dist/web-components/viewer/{Contents-DvmP8OGy.mjs → Contents-D4jw_lGe.mjs} +1 -1
  214. package/dist/web-components/viewer/ControlMenu-C3Jh10iR.mjs +1 -0
  215. package/dist/web-components/viewer/ControlsFade-BKkJ95B5.mjs +1 -0
  216. package/dist/web-components/viewer/CountMenu-Blz1oHgs.mjs +1 -0
  217. package/dist/web-components/viewer/Cue-BnC9XuZp.mjs +1 -0
  218. package/dist/web-components/viewer/Document-BG0F97nL.mjs +1 -0
  219. package/dist/web-components/viewer/{DomLayers-CD56oMcR.mjs → DomLayers-BL6vNcmI.mjs} +1 -1
  220. package/dist/web-components/viewer/{Download-DAOzY3Nu.mjs → Download-B0BD_SzR.mjs} +1 -1
  221. package/dist/web-components/viewer/{EntryBodies-0A0uyEwC.mjs → EntryBodies-Cbmr-Eg4.mjs} +1 -1
  222. package/dist/web-components/viewer/{EntryThumbnail-fBaBZJGd.mjs → EntryThumbnail-DAdEyIuL.mjs} +1 -1
  223. package/dist/web-components/viewer/FieldPill-DNL96sDW.mjs +1 -0
  224. package/dist/web-components/viewer/{FrameAnimation-kba5V4Vk.mjs → FrameAnimation-BO3QVSUw.mjs} +1 -1
  225. package/dist/web-components/viewer/Gallery-DN7ajF4i.mjs +1 -0
  226. package/dist/web-components/viewer/GlobeGlyph-B-Wd0AkW.mjs +1 -0
  227. package/dist/web-components/viewer/{HideToggle-D8c_7URN.mjs → HideToggle-DH0u1wFC.mjs} +1 -1
  228. package/dist/web-components/viewer/{ImageControls-C_C0LSj7.mjs → ImageControls-Lz-ESk1X.mjs} +1 -1
  229. package/dist/web-components/viewer/LanguageChoice-BkQkSsPE.mjs +1 -0
  230. package/dist/web-components/viewer/LanguageMenu-gIJHQiBc.mjs +1 -0
  231. package/dist/web-components/viewer/LightboxView-D066VR5m.mjs +1 -0
  232. package/dist/web-components/viewer/{ListEnd-B2hnHrcl.mjs → ListEnd-D4nNouKZ.mjs} +1 -1
  233. package/dist/web-components/viewer/{MapView-Cr3RiB1K.mjs → MapView-C_8iciAK.mjs} +3 -3
  234. package/dist/web-components/viewer/{MediaBody-4ZFKNnr3.mjs → MediaBody-BgBDbfHg.mjs} +1 -1
  235. package/dist/web-components/viewer/{MediaBody-xjpo27Vw.mjs → MediaBody-D4hiLqhm.mjs} +1 -1
  236. package/dist/web-components/viewer/{NavDate-Dz5eW2XY.mjs → NavDate-BMVT6UwB.mjs} +1 -1
  237. package/dist/web-components/viewer/{Navigator-DNZcaADs.mjs → Navigator-DbBBbDZn.mjs} +1 -1
  238. package/dist/web-components/viewer/PagerLayout-D771pC5E.mjs +1 -0
  239. package/dist/web-components/viewer/PanelPart-2H7jd6PS.mjs +1 -0
  240. package/dist/web-components/viewer/{PartOfManifest-BHpVLJOn.mjs → PartOfManifest-BMaH_tsn.mjs} +1 -1
  241. package/dist/web-components/viewer/PlaceBox-OytRM9_s.mjs +1 -0
  242. package/dist/web-components/viewer/{Placeholder-CLITKdu6.mjs → Placeholder-BWuq47Sw.mjs} +1 -1
  243. package/dist/web-components/viewer/Search-Bmz7mUbA.mjs +1 -0
  244. package/dist/web-components/viewer/{SeekMarks-B8cuyVgz.mjs → SeekMarks-CAsMUj2N.mjs} +1 -1
  245. package/dist/web-components/viewer/{StandaloneItems-Cu0aBqAo.mjs → StandaloneItems-BCHhR9sF.mjs} +1 -1
  246. package/dist/web-components/viewer/{Steps-DqszSHcR.mjs → Steps-BDT2W9QN.mjs} +1 -1
  247. package/dist/web-components/viewer/{TargetItems-DN8ebfbK.mjs → TargetItems-CkZbD8GE.mjs} +1 -1
  248. package/dist/web-components/viewer/Transcript-BbFXEJSc.mjs +1 -0
  249. package/dist/web-components/viewer/Transport-CI5UkA3K.mjs +1 -0
  250. package/dist/web-components/viewer/Transport-PgBpf33S.mjs +1 -0
  251. package/dist/web-components/viewer/{annotation-collection-Drwfws4R.mjs → annotation-collection-l4zuf56A.mjs} +1 -1
  252. package/dist/web-components/viewer/{annotation-name-Bp2GHdpi.mjs → annotation-name-CRl0w7NR.mjs} +1 -1
  253. package/dist/web-components/viewer/annotations-content-CYjPRTZn.mjs +1 -0
  254. package/dist/web-components/viewer/{cloverEngine-BmUppb5Y.mjs → cloverEngine-2b_guC4P.mjs} +2 -2
  255. package/dist/web-components/viewer/{content-state-reader-B9u1vc3t.mjs → content-state-reader-Cm-rvusT.mjs} +1 -1
  256. package/dist/web-components/viewer/{dragToClose-C9KwbQpA.mjs → dragToClose-DXXIWV62.mjs} +1 -1
  257. package/dist/web-components/viewer/{fetchManifest-gl9fyg7D.mjs → fetchManifest-DorkDXGC.mjs} +1 -1
  258. package/dist/web-components/viewer/{host-D3tVEhAD.mjs → host-DscGC2S0.mjs} +1 -1
  259. package/dist/web-components/viewer/{image-layers-DSehEFmU.mjs → image-layers-CZ9-efD2.mjs} +1 -1
  260. package/dist/web-components/viewer/image-service-content-C60w8IZm.mjs +1 -0
  261. package/dist/web-components/viewer/index.mjs +1 -1
  262. package/dist/web-components/viewer/{link-BYKFtAno.mjs → link-CysSctMX.mjs} +1 -1
  263. package/dist/web-components/viewer/overlayImage-CwPnVnIi.mjs +1 -0
  264. package/dist/web-components/viewer/{range-regions-CEM4sQKi.mjs → range-regions-C7ZBtSyb.mjs} +1 -1
  265. package/dist/web-components/viewer/{renderers-BiDrFLxn.mjs → renderers-D4wJiQYv.mjs} +1 -1
  266. package/dist/web-components/viewer/{save-file-CzYUFJNg.mjs → save-file-uqsNOVPU.mjs} +1 -1
  267. package/dist/web-components/viewer/{search-Dr6AQ3Lb.mjs → search-CWuD5EZA.mjs} +1 -1
  268. package/dist/web-components/viewer/styles-BjjJM8OS.mjs +1 -0
  269. package/dist/web-components/viewer/{useControlsVisibility-CP5m7oBd.mjs → useControlsVisibility-KTxa_3yJ.mjs} +1 -1
  270. package/dist/web-components/viewer/viewer-C3d_TgAI.mjs +29 -0
  271. package/dist/web-components/viewer/{vtt-CDqR3lHn.mjs → vtt-DqtJ20x0.mjs} +1 -1
  272. package/dist/web-components/viewer-BoyWG64n.mjs +1 -0
  273. package/dist/web-components/{vtt-DHZRkZ_P.mjs → vtt-BNuRzGap.mjs} +1 -1
  274. package/dist/web-components/zh-Hans-DnYm6PWu.mjs +1 -0
  275. package/dist/web-components/zh-Hant-DsxnuLPZ.mjs +1 -0
  276. package/package.json +1 -1
  277. package/dist/web-components/About-DgBOPS3N.mjs +0 -1
  278. package/dist/web-components/AnnotationItems-CBEb7Cew.mjs +0 -1
  279. package/dist/web-components/AnnotationMenu-DiQyu45i.mjs +0 -1
  280. package/dist/web-components/AnnotationState-DemGGP7N.mjs +0 -1
  281. package/dist/web-components/Annotations-CDVyd69_.mjs +0 -2
  282. package/dist/web-components/CanvasView-DeM04pm-.mjs +0 -2
  283. package/dist/web-components/ControlMenu-CJtszzgx.mjs +0 -1
  284. package/dist/web-components/ControlsFade-Pye8AyCz.mjs +0 -1
  285. package/dist/web-components/CountMenu-3-t8974M.mjs +0 -1
  286. package/dist/web-components/Cue-eTms5gbr.mjs +0 -1
  287. package/dist/web-components/Document-CkKoLQ51.mjs +0 -1
  288. package/dist/web-components/FieldPill-M9u0eLtz.mjs +0 -1
  289. package/dist/web-components/Gallery-mqXXjGtK.mjs +0 -1
  290. package/dist/web-components/Items-BoFm0Hlx.mjs +0 -1
  291. package/dist/web-components/Label-GTBsGDCC.mjs +0 -1
  292. package/dist/web-components/LanguageChoice-BEiskuVG.mjs +0 -1
  293. package/dist/web-components/LightboxView-Daz0RCee.mjs +0 -1
  294. package/dist/web-components/LoadedMap-D9Z3zl12.mjs +0 -1
  295. package/dist/web-components/MapView-CExlNO5E.mjs +0 -3
  296. package/dist/web-components/PagerLayout-l6UNSoQ1.mjs +0 -1
  297. package/dist/web-components/Panel-ikILE92M.mjs +0 -1
  298. package/dist/web-components/PanelPart-VPAwSoQZ.mjs +0 -1
  299. package/dist/web-components/PlaceBox-D73C--SU.mjs +0 -1
  300. package/dist/web-components/Primitives-CBRreXtS.mjs +0 -1
  301. package/dist/web-components/Provider-HPVBNZPr.mjs +0 -1
  302. package/dist/web-components/Root-BJwk-F1e.mjs +0 -1
  303. package/dist/web-components/Scene-DC7ofvsK.mjs +0 -1
  304. package/dist/web-components/SceneView-C53yZtMZ.mjs +0 -1
  305. package/dist/web-components/Search-Cd0xLU3y.mjs +0 -1
  306. package/dist/web-components/Sections-Cf3JDxnz.mjs +0 -2
  307. package/dist/web-components/StandaloneItems-DEchYe7Y.mjs +0 -1
  308. package/dist/web-components/Timeline--uq4-_TD.mjs +0 -1
  309. package/dist/web-components/Transcript-Dex719tP.mjs +0 -1
  310. package/dist/web-components/Transport-BV0Rg5Ym.mjs +0 -1
  311. package/dist/web-components/Transport-CHkvmPbN.mjs +0 -1
  312. package/dist/web-components/downloads-CFz0RnMz.mjs +0 -1
  313. package/dist/web-components/hooks-uer3ZRx7.mjs +0 -1
  314. package/dist/web-components/index-BkADsP3U.mjs +0 -1
  315. package/dist/web-components/items-BWG13qDG.mjs +0 -1
  316. package/dist/web-components/items-SD92pRMN.mjs +0 -1
  317. package/dist/web-components/label-Bw9SwLh8.mjs +0 -1
  318. package/dist/web-components/layout-DrVnUBcm.mjs +0 -1
  319. package/dist/web-components/logo-Dzr2M4F7.mjs +0 -1
  320. package/dist/web-components/part-dr-d1XPo.mjs +0 -1
  321. package/dist/web-components/pointer-IZcH8rZy.mjs +0 -1
  322. package/dist/web-components/readingLanguages-Bd4MD2DP.mjs +0 -1
  323. package/dist/web-components/rendererSurface-Ox625xUL.mjs +0 -22
  324. package/dist/web-components/resource-DmK-8hJ-.mjs +0 -1
  325. package/dist/web-components/shared-BmkV0s_d.mjs +0 -1
  326. package/dist/web-components/styles-On1ck1Ob.mjs +0 -1
  327. package/dist/web-components/useNearViewport-yyUYq47j.mjs +0 -1
  328. package/dist/web-components/useScrollTrack-CcFLYR4o.mjs +0 -1
  329. package/dist/web-components/viewer/AnnotationMenu-C-9tbH4G.mjs +0 -1
  330. package/dist/web-components/viewer/AnnotationState-CV4g-WUB.mjs +0 -1
  331. package/dist/web-components/viewer/Annotations-t1K8U5Kp.mjs +0 -2
  332. package/dist/web-components/viewer/CaptionDetails-xzvdqP5N.mjs +0 -1
  333. package/dist/web-components/viewer/ControlMenu-DIfN3xYJ.mjs +0 -1
  334. package/dist/web-components/viewer/ControlsFade-sckPhZ4x.mjs +0 -1
  335. package/dist/web-components/viewer/CountMenu-BQVCtVfu.mjs +0 -1
  336. package/dist/web-components/viewer/Cue-DQ8q-fgb.mjs +0 -1
  337. package/dist/web-components/viewer/Document-B-nJpfDh.mjs +0 -1
  338. package/dist/web-components/viewer/FieldPill-BQcDb4xM.mjs +0 -1
  339. package/dist/web-components/viewer/Gallery-_0dEBq2w.mjs +0 -1
  340. package/dist/web-components/viewer/LanguageChoice-0UWQ5V-y.mjs +0 -1
  341. package/dist/web-components/viewer/LightboxView-Dnlf7m8l.mjs +0 -1
  342. package/dist/web-components/viewer/PagerLayout-PYWFPFSJ.mjs +0 -1
  343. package/dist/web-components/viewer/PanelPart-Bd0JqUwF.mjs +0 -1
  344. package/dist/web-components/viewer/PlaceBox-Bh9V3RLS.mjs +0 -1
  345. package/dist/web-components/viewer/Search-C0B5Jh9V.mjs +0 -1
  346. package/dist/web-components/viewer/Transcript-D3mKmdQY.mjs +0 -1
  347. package/dist/web-components/viewer/Transport-9f_lhebG.mjs +0 -1
  348. package/dist/web-components/viewer/Transport-BudReE7Y.mjs +0 -1
  349. package/dist/web-components/viewer/annotations-content-Ci-orrao.mjs +0 -1
  350. package/dist/web-components/viewer/overlayImage-CdgpMutd.mjs +0 -1
  351. package/dist/web-components/viewer/styles-DvZTMHkr.mjs +0 -1
  352. package/dist/web-components/viewer/viewer-DaG51iO3.mjs +0 -29
  353. package/dist/web-components/viewer-DeAUI9Fi.mjs +0 -1
@@ -1 +0,0 @@
1
- var $=Object.defineProperty;var U=(e,t,o)=>t in e?$(e,t,{enumerable:true,configurable:true,writable:true,value:o}):e[t]=o;var p=(e,t,o)=>U(e,typeof t!="symbol"?t+"":t,o);let z;function V(e){z=e}function Ke(){return z}function H(e={}){return import("./shared-BmkV0s_d.mjs").then(t=>t.aI).then(t=>t.initCloverI18n(e))}const A=new Map,L=new Set;function Qe(e,t,o,n=false){if(!A.has(t)){A.set(t,{index:e,css:o,unlayered:n});for(const l of L)l.place(t,e,o,n)}}const W=e=>`@layer clover,maplibre;@layer maplibre{${e}}`;function B(e){var t,o;return((t=e.querySelector('meta[property="csp-nonce"]'))==null?void 0:t.nonce)||((o=e.querySelector("script[nonce]"))==null?void 0:o.nonce)||""}class F{constructor(t){p(this,"injected",new Set);p(this,"unlayered",new Set);p(this,"nonce");p(this,"adopted",null);this.doc=t,this.nonce=B(t),L.add(this),A.forEach(({index:o,css:n,unlayered:l},a)=>this.place(a,o,n,l))}inject(t,o){if(this.injected.has(t))return;if(this.injected.add(t),this.adopted)return this.adopt(-1,t,o);const n=this.style(t,o);this.doc.head.prepend(n),this.check(n)}place(t,o,n,l=false){if(this.injected.has(t))return;if(this.injected.add(t),l&&this.unlayered.add(t),this.adopted)return this.adopt(o,t,n);const a=this.style(t,n);a.dataset.cloverIndex=String(o);const u=[...this.doc.head.querySelectorAll("style[data-clover-index]")],m=u.filter(g=>Number(g.dataset.cloverIndex)<o).at(-1),y=u.find(g=>Number(g.dataset.cloverIndex)>o),r=this.doc.head.querySelectorAll("style[data-clover]");m?m.after(a):y?y.before(a):r.length?r[r.length-1].after(a):this.doc.head.prepend(a),this.check(a)}style(t,o){const n=this.doc.createElement("style");return n.dataset.clover=t,this.nonce&&(n.nonce=this.nonce),n.textContent=o,n}check(t){if(!(t.sheet||!("adoptedStyleSheets"in this.doc))){this.adopted=[];for(const o of this.doc.head.querySelectorAll("style[data-clover]"))this.adopt(Number(o.dataset.cloverIndex??-1),o.dataset.clover??"",o.textContent??""),o.remove()}}adopt(t,o,n){const l=this.doc.defaultView??window,a=new l.CSSStyleSheet;a.replaceSync(this.unlayered.has(o)?W(n):n);const u=this.adopted,m=u.findIndex(r=>r.index>t);u.splice(m===-1?u.length:m,0,{index:t,sheet:a});const y=new Set(u.map(r=>r.sheet));this.doc.adoptedStyleSheets=[...u.map(r=>r.sheet),...this.doc.adoptedStyleSheets.filter(r=>!y.has(r))]}}const P=new WeakMap;function T(e){let t=P.get(e);return t||P.set(e,t=new F(e)),t}const q="@layer clover{:is(clover-root,clover-items,clover-viewer,clover-panel,clover-read-more):not([hidden]){display:block}:is(clover-body,clover-canvas,clover-timeline,clover-scene):not([hidden]){display:block;height:var(--clover-body-height,60vh)}clover-split:not([hidden]){display:flex}:is(clover-label,clover-panel-toggle):not([hidden]){display:contents}clover-tab,clover-tip,clover-status>[slot]{display:none}}";let J=null,k=null;const _=()=>J??(J=import("./shared-BmkV0s_d.mjs").then(e=>e.aJ).then(e=>k=e)),K=e=>e.trim().toLowerCase()==="false";function Q(e,{type:t,min:o},n){if(e===null)return;if(t==="string")return e;if(t==="boolean")return!K(e);if(t==="number"){const a=Number(e);if(e.trim()===""||!Number.isFinite(a)){n("is not a number");return}if(o!==void 0&&a<o){n(`is less than ${o}`);return}return a}if(t==="data"){const a=e.trim();if(!/^[[{"]/.test(a))return e;try{return JSON.parse(a)}catch{n("is not JSON");return}}const l=e.trim().toLowerCase();if(t.includes(l))return l==="false"?false:l;n(`is not ${t.join(", ")}`)}const G=(e,t)=>{const o=Object.keys(e);return o.length===Object.keys(t).length&&o.every(n=>Object.is(e[n],t[n]))};function Y(e){class t extends HTMLElement{constructor(){super(...arguments);p(this,"kind",e.kind)}static get observedAttributes(){return Object.keys(e.attributes)}connectedCallback(){T(this.ownerDocument).inject("elements",q)}}customElements.define(e.tag,t)}function Z(e,t){if(typeof customElements>"u"||customElements.get(e.tag))return;if(e.kind==="config"||!t)return Y(e);const o=e.kind,n=e.properties??[],l=Object.entries(e.events??{});let a=null,u=null;const m=()=>u??(u=Promise.all([t().then(r=>a=r),_()]));class y extends HTMLElement{constructor(){super(...arguments);p(this,"kind",o);p(this,"needsRoot",!!e.needsRoot);p(this,"values",{});p(this,"kept",{});p(this,"props",{});p(this,"listeners",new Set);p(this,"warned",new Set);p(this,"handlers",Object.fromEntries(l.map(([i,s])=>[s.prop,(...h)=>{var C;if(s.keeps&&(this.kept[s.keeps]=h[0]??null,h[0]==null))return true;const f=s.detail==="first"?h[0]:Object.fromEntries(s.detail.map((b,N)=>[b,h[N]])),S=new CustomEvent(i,{detail:f,bubbles:!s.keeps,composed:!s.keeps,cancelable:!!s.cancelable}),E=this.dispatchEvent(S);if(!E&&s.cancelable){const b=h[h.length-1];(C=b==null?void 0:b.preventDefault)==null||C.call(b)}return E}])));p(this,"getProps",()=>this.props);p(this,"subscribe",i=>(this.listeners.add(i),()=>{this.listeners.delete(i)}))}static get observedAttributes(){return Object.keys(e.attributes)}get element(){return this}get Component(){return a}connectedCallback(){for(const i of n){if(!Object.prototype.hasOwnProperty.call(this,i))continue;const s=this[i];delete this[i],s!=null&&(this.values[i]=s)}this.update(),this.warnOfAria(),T(this.ownerDocument).inject("elements",q),m().then(()=>{this.isConnected&&k.hostOf(this.ownerDocument).connect(this)})}disconnectedCallback(){queueMicrotask(()=>{this.isConnected||k==null||k.hostOf(this.ownerDocument).disconnect(this)})}attributeChangedCallback(){this.update()}warnOfAria(){if(!e.native)for(const i of["aria-label","aria-labelledby","role"])!this.hasAttribute(i)||this.warned.has(i)||(this.warned.add(i),console.warn(`<${e.tag}>: ${i} names the element, a box no reader is told of; Clover names what it draws itself.`))}update(){const i={...this.handlers,...this.values};for(const[s,h]of Object.entries(e.attributes)){if(h.prop in this.values)continue;const f=this.getAttribute(s),S=Q(f,h,E=>{const C=`${s}=${f}`;this.warned.has(C)||(this.warned.add(C),console.warn(`<${e.tag}>: ${s}="${f}" ${E}; ignored.`))});S!==void 0&&(i[h.prop]=S)}G(i,this.props)||(this.props=i,this.listeners.forEach(s=>s()))}}p(y,"initCloverI18n",H);for(const r of n)Object.defineProperty(y.prototype,r,{configurable:true,enumerable:true,get(){return r in this.values?this.values[r]:this.getProps()[r]},set(g){g==null?delete this.values[r]:this.values[r]=g,this.update()}});for(const[,r]of l){if(!r.keeps)continue;const g=r.keeps;Object.defineProperty(y.prototype,g,{configurable:true,enumerable:true,get(){return this.kept[g]??null}})}customElements.define(e.tag,y)}const X={tag:"clover-panel",kind:"part",needsRoot:true,attributes:{layout:{prop:"layout",type:["tabs","accordion"]},value:{prop:"value",type:"string"},"heading-level":{prop:"headingLevel",type:"number",min:1},download:{prop:"download",type:"boolean"},languages:{prop:"languages",type:"boolean"},sections:{prop:"sections",type:"data"},labels:{prop:"labels",type:"data"},closable:{prop:"closable",type:"boolean"},"close-on-escape":{prop:"closeOnEscape",type:"boolean"},as:{prop:"as",type:["aside","div"]}},events:{"clover-value-change":{prop:"onValueChange",detail:["value"]},"clover-close":{prop:"onClose",detail:[],cancelable:true}}},ee={tag:"clover-tab",kind:"config",attributes:{value:{prop:"value",type:"string"},label:{prop:"label",type:"string"}},slots:["label"]},te={tag:"clover-panel-toggle",kind:"part",attributes:{controls:{prop:"controls",type:"string"},side:{prop:"side",type:["start","end"]}},events:{"clover-open-change":{prop:"onOpenChange",detail:["open"],cancelable:true}}},oe={tag:"clover-split",kind:"part",native:true,attributes:{"storage-key":{prop:"storageKey",type:"string"}}},ne={tag:"clover-split-pane",kind:"part",native:true,attributes:{size:{prop:"size",type:"string"},min:{prop:"min",type:"string"},max:{prop:"max",type:"string"},name:{prop:"name",type:"string"}}},re={tag:"clover-split-handle",kind:"part",native:true,attributes:{}},M={"clover-ready":{prop:"onReady",detail:["handle"],keeps:"handle"}},O={"clover-content-state-change":{prop:"onContentStateChange",detail:"first"}},ae={tag:"clover-canvas",kind:"part",attributes:{"iiif-content":{prop:"iiifContent",type:"string"},src:{prop:"src",type:"string"},tiled:{prop:"isTiledImage",type:"boolean"},label:{prop:"label",type:"string"},language:{prop:"language",type:"string"},"high-contrast":{prop:"highContrast",type:"boolean"},controls:{prop:"controls",type:"boolean"},"collapse-controls":{prop:"collapseControls",type:["auto","always"]},navigator:{prop:"navigator",type:"boolean"},placeholder:{prop:"placeholder",type:"boolean"},"viewing-direction":{prop:"viewingDirection",type:["left-to-right","right-to-left","top-to-bottom","bottom-to-top"]},"animate-annotations":{prop:"animateAnnotations",type:"boolean"}},properties:["iiifContent","canvases","src","annotations","options","controlButtons","controls"],events:{...M,...O,"clover-annotation-select":{prop:"onAnnotationSelect",detail:["id"]},"clover-annotation-active":{prop:"onAnnotationActive",detail:["id"]},"clover-caption-change":{prop:"onCaptionChange",detail:["caption"]},"clover-ended":{prop:"onEnded",detail:[]}}},ie={tag:"clover-timeline",kind:"part",attributes:{"iiif-content":{prop:"iiifContent",type:"string"},label:{prop:"label",type:"string"},language:{prop:"language",type:"string"},"high-contrast":{prop:"highContrast",type:"boolean"},controls:{prop:"controls",type:"boolean"},placeholder:{prop:"placeholder",type:"boolean"}},properties:["iiifContent","timeline","annotations","options","controls"],events:{...O,"clover-caption-change":{prop:"onCaptionChange",detail:["caption"]},"clover-ended":{prop:"onEnded",detail:[]}}},se={tag:"clover-scene",kind:"part",attributes:{"iiif-content":{prop:"iiifContent",type:"string"},label:{prop:"label",type:"string"},language:{prop:"language",type:"string"},"high-contrast":{prop:"highContrast",type:"boolean"},controls:{prop:"controls",type:"boolean"},engine:{prop:"engine",type:["clover","three"]}},properties:["iiifContent","scene","options","controls"],events:{...O}},pe={tag:"clover-body",kind:"part",needsRoot:true,attributes:{controls:{prop:"controls",type:"boolean"},"collapse-controls":{prop:"collapseControls",type:["auto","always"]},navigator:{prop:"navigator",type:"boolean"},placeholder:{prop:"placeholder",type:"boolean"},"animate-annotations":{prop:"animateAnnotations",type:"boolean"}},properties:["controls","options","controlButtons","renderers"],events:{...M,...O,"clover-annotation-active":{prop:"onAnnotationActive",detail:["id"]},"clover-caption-change":{prop:"onCaptionChange",detail:["caption"]},"clover-ended":{prop:"onEnded",detail:[]}}},le={tag:"clover-items",kind:"part",attributes:{layout:{prop:"layout",type:["slider","list","grid","masonry","pager"]},secondary:{prop:"secondary",type:["summary","navDate","none"]},labels:{prop:"labels",type:"boolean"},size:{prop:"size",type:["large","small"]},of:{prop:"of",type:["views","members","targets","annotations"]},navigation:{prop:"navigation",type:["id","homepage"]},"iiif-content":{prop:"iiifContent",type:"string"},header:{prop:"header",type:"boolean"},"heading-level":{prop:"headingLevel",type:"number",min:2},"thumbnail-size":{prop:"thumbnailSize",type:"number",min:1},"single-item":{prop:"singleItem",type:"boolean"},language:{prop:"language",type:"string"},"high-contrast":{prop:"highContrast",type:"boolean"}},properties:["iiifContent","items","request","renderItem"],events:{"clover-select":{prop:"onSelect",detail:["item"],cancelable:true}}},ce=["h1","h2","h3","h4","h5","h6","span","label","figcaption","p","strong","em","div"],de={tag:"clover-label",kind:"part",attributes:{of:{prop:"of",type:["manifest","canvas"]},as:{prop:"as",type:ce},label:{prop:"label",type:"data"}},properties:["label"]},ue={prop:"of",type:["manifest","canvas"]},D={prop:"value",type:"data"},d=(e,t={})=>({tag:e,kind:"part",attributes:{of:ue,value:D,...t},properties:["value"]}),ge=d("clover-summary",{as:{prop:"as",type:["p","div","span"]}}),he={...d("clover-metadata"),properties:["value","renderValue"]},ve=d("clover-required-statement"),ye=d("clover-rights"),me=d("clover-id"),be=d("clover-homepage"),fe=d("clover-rendering"),Ce=d("clover-see-also"),ke=d("clover-part-of"),we=d("clover-thumbnail",{size:{prop:"size",type:"number",min:1},alt:{prop:"alt",type:"string"}}),Se=d("clover-provider",{link:{prop:"link",type:["false"]}}),Ee=d("clover-logo",{alt:{prop:"alt",type:"string"}}),Oe={tag:"clover-value",kind:"part",attributes:{value:D,format:{prop:"format",type:"string"},"heading-level":{prop:"headingLevel",type:"number",min:1},as:{prop:"as",type:["span","p","div"]}},properties:["value"]},Re={tag:"clover-root",kind:"root",attributes:{"iiif-content":{prop:"iiifContent",type:"string"},"canvas-id":{prop:"canvasId",type:"string"},"manifest-id":{prop:"manifestId",type:"string"},language:{prop:"language",type:"string"},"high-contrast":{prop:"highContrast",type:"boolean"},"search-query":{prop:"searchQuery",type:"string"},annotations:{prop:"annotations",type:"data"},"annotation-pages":{prop:"annotationPages",type:["view","all"]},lang:{prop:"lang",type:"string"}},properties:["iiifContent","annotations","request","renderers"],events:{"clover-ready":{prop:"onReady",detail:["clover"],keeps:"clover"},"clover-canvas-change":{prop:"onCanvasChange",detail:["canvasId"]},"clover-manifest-change":{prop:"onManifestChange",detail:["manifestId"]},"clover-status-change":{prop:"onStatusChange",detail:["status","error"]},"clover-content-state-change":{prop:"onContentStateChange",detail:"first"}}},w={"heading-level":{prop:"headingLevel",type:"number",min:1}},I={of:{prop:"of",type:["views","members","targets"]}},Ae={tag:"clover-status",kind:"part",needsRoot:true,attributes:{loading:{prop:"loading",type:["false"]}},slots:["loading","error"]},Ie={tag:"clover-position",kind:"part",needsRoot:true,attributes:{...I,as:{prop:"as",type:["span","p","div"]}}},Pe={tag:"clover-next",kind:"part",needsRoot:true,attributes:I},je={tag:"clover-previous",kind:"part",needsRoot:true,attributes:I},xe={tag:"clover-download",kind:"part",needsRoot:true,attributes:w},ze={tag:"clover-search",kind:"part",needsRoot:true,attributes:{...w,sticky:{prop:"sticky",type:"boolean"},size:{prop:"size",type:["large","small"]}}},Le={tag:"clover-contents",kind:"part",needsRoot:true,attributes:{}},Te={tag:"clover-transcript",kind:"part",needsRoot:true,attributes:{follow:{prop:"follow",type:"boolean"},find:{prop:"find",type:"boolean"},sticky:{prop:"sticky",type:"boolean"},size:{prop:"size",type:["large","small"]}}},qe={tag:"clover-annotations",kind:"part",needsRoot:true,attributes:{scope:{prop:"scope",type:["view","all"]},...w},properties:["renderEntry"]},Me={tag:"clover-collection",kind:"part",needsRoot:true,attributes:w},De={tag:"clover-collection-select",kind:"part",needsRoot:true,attributes:{},events:{"clover-change":{prop:"onChange",detail:["manifestId"]}}},Ne={tag:"clover-about",kind:"part",needsRoot:true,attributes:{"canvas-summary":{prop:"canvasSummary",type:"boolean"},download:{prop:"download",type:"boolean"},languages:{prop:"languages",type:"boolean"},thumbnail:{prop:"thumbnail",type:"boolean"},label:{prop:"label",type:"boolean"},...w}},$e={tag:"clover-map",kind:"part",attributes:{"iiif-content":{prop:"iiifContent",type:"string"},overlay:{prop:"overlay",type:"boolean"},"overlay-opacity":{prop:"overlayOpacity",type:"number",min:0},"style-url":{prop:"styleUrl",type:"string"},"scroll-zoom":{prop:"scrollZoom",type:"boolean"},zoom:{prop:"zoom",type:"number",min:0},credits:{prop:"credits",type:"boolean"},language:{prop:"language",type:"string"},"high-contrast":{prop:"highContrast",type:"boolean"}},properties:["iiifContent","navPlace","georeferences","request"],events:{"clover-select":{prop:"onSelect",detail:["feature"]}}},Ue={tag:"clover-read-more",kind:"part",attributes:{}},Ve={tag:"clover-tip",kind:"part",attributes:{label:{prop:"label",type:"string"},lang:{prop:"lang",type:"string"},keys:{prop:"keys",type:"string"},glyph:{prop:"glyph",type:"string"}},properties:["shortcut"]},He={tag:"clover-viewer",kind:"alone",attributes:{template:{prop:"template",type:["default","document","gallery"]},"iiif-content":{prop:"iiifContent",type:"string"},"canvas-id":{prop:"defaultCanvasId",type:"string"},"manifest-id":{prop:"defaultManifestId",type:"string"},language:{prop:"language",type:"string"},"high-contrast":{prop:"highContrast",type:"boolean"},"search-query":{prop:"searchQuery",type:"string"},annotations:{prop:"annotations",type:"data"},"heading-level":{prop:"headingLevel",type:"number",min:2},items:{prop:"items",type:["slider","list","grid","masonry","false"]},"single-item":{prop:"singleItem",type:"boolean"},header:{prop:"header",type:"boolean"},panel:{prop:"panel",type:"boolean"},download:{prop:"download",type:"boolean"},languages:{prop:"languages",type:"boolean"},"panel-open":{prop:"defaultPanelOpen",type:"boolean"},"panel-layout":{prop:"panelLayout",type:["accordion","tabs"]},"panel-sections":{prop:"panelSections",type:"data"},"panel-labels":{prop:"panelLabels",type:"data"},"sidebar-open":{prop:"defaultSidebarOpen",type:"boolean"},"storage-key":{prop:"storageKey",type:"string"},fill:{prop:"fill",type:"boolean"},"collapse-controls":{prop:"collapseControls",type:["auto","always"]},size:{prop:"size",type:"string"},height:{prop:"height",type:"string"},gap:{prop:"gap",type:"string"},secondary:{prop:"secondary",type:["summary","navDate","none"]},summary:{prop:"summary",type:"boolean"},"lightbox-items":{prop:"lightboxItems",type:["slider","pager"]}},properties:["iiifContent","annotations","request","renderers","canvasOptions"],events:{"clover-canvas-change":{prop:"onCanvasChange",detail:["canvasId"]},"clover-manifest-change":{prop:"onManifestChange",detail:["manifestId"]},"clover-status-change":{prop:"onStatusChange",detail:["status","error"]},"clover-content-state-change":{prop:"onContentStateChange",detail:"first"}}},j=[He,Re,pe,de,le,Ie,je,Pe,Ae,we,ge,he,ve,ye,be,Ce,fe,ke,me,Se,Ee,Oe,Ne,qe,Me,De,Le,ze,Te,xe,$e,X,ee,te,oe,ne,re,ae,ie,se,Ve,Ue],c=(e,t,o)=>()=>Promise.all([e(),import("./part-dr-d1XPo.mjs")]).then(([n,{drawn:l}])=>l(n[t],o)),R=e=>()=>import("./split-Ci426kxC.mjs").then(t=>t[e]),v=e=>c(()=>import("./Primitives-CBRreXtS.mjs"),e),x=e=>c(()=>import("./Pager-4rZjWBna.mjs"),e),We={"clover-viewer":()=>import("./viewer-DeAUI9Fi.mjs").then(e=>e.v).then(e=>e.ViewerElement),"clover-root":()=>import("./shared-BmkV0s_d.mjs").then(e=>e.aM).then(e=>e.RootElement),"clover-label":()=>import("./label-Bw9SwLh8.mjs").then(e=>e.LabelElement),"clover-body":()=>import("./body-qFClz6nF.mjs").then(e=>e.BodyElement),"clover-items":()=>import("./items-BWG13qDG.mjs").then(e=>e.ItemsElement),"clover-position":c(()=>import("./Position-C2Hm7tJZ.mjs"),"Position"),"clover-previous":x("Previous"),"clover-next":x("Next"),"clover-status":()=>import("./status-CzasXLV8.mjs").then(e=>e.StatusElement),"clover-thumbnail":v("Thumbnail"),"clover-summary":v("Summary"),"clover-metadata":c(()=>import("./Primitives-CBRreXtS.mjs"),"Metadata",["renderValue"]),"clover-required-statement":v("RequiredStatement"),"clover-rights":v("Rights"),"clover-homepage":v("Homepage"),"clover-see-also":v("SeeAlso"),"clover-rendering":v("Rendering"),"clover-part-of":v("PartOf"),"clover-id":v("Id"),"clover-provider":()=>import("./provider-D24Pm3a1.mjs").then(e=>e.ProviderElement),"clover-logo":()=>import("./logo-Dzr2M4F7.mjs").then(e=>e.LogoElement),"clover-value":v("Value"),"clover-about":c(()=>import("./About-DgBOPS3N.mjs").then(e=>e.a),"About"),"clover-annotations":c(()=>import("./Annotations-CDVyd69_.mjs"),"Annotations",["renderEntry"]),"clover-collection":c(()=>import("./Collection-C2ji8AVd.mjs"),"Collection"),"clover-collection-select":c(()=>import("./CollectionSelect-CSTSqjG3.mjs"),"CollectionSelect"),"clover-contents":c(()=>import("./Contents-BLbU9Qvc.mjs"),"Contents"),"clover-search":c(()=>import("./Search-Cd0xLU3y.mjs"),"Search"),"clover-transcript":c(()=>import("./Transcript-Dex719tP.mjs"),"Transcript"),"clover-download":c(()=>import("./Download-VPFf23Kw.mjs"),"Download"),"clover-map":c(()=>import("./Map-CIGzy4XB.mjs"),"CloverMap"),"clover-panel":()=>import("./panel-ldBDfuIV.mjs").then(e=>e.PanelElement),"clover-panel-toggle":()=>import("./toggle-Dro_EmUU.mjs").then(e=>e.PanelToggleElement),"clover-split":R("SplitElement"),"clover-split-pane":R("SplitPaneElement"),"clover-split-handle":R("SplitHandleElement"),"clover-canvas":()=>import("./canvas-DqmG6v1g.mjs").then(e=>e.CanvasElement),"clover-timeline":c(()=>import("./Timeline--uq4-_TD.mjs"),"Timeline"),"clover-scene":c(()=>import("./Scene-DC7ofvsK.mjs"),"Scene"),"clover-tip":()=>import("./tip-CQEGLOst.mjs").then(e=>e.TipElement),"clover-read-more":()=>import("./read-more-CoOeWZOF.mjs").then(e=>e.ReadMoreElement)};function Be(e,t=j.map(({tag:o})=>o)){e.mapWorkerUrl&&V(e.mapWorkerUrl);for(const o of j)t.includes(o.tag)&&Z(o,We[o.tag])}const Fe=""+new URL("assets/maplibre-gl-worker-kTz9OPxr.js",import.meta.url).href,Je={mapWorkerUrl:Fe};Be(Je);export{Qe as a,Be as d,Ke as g,H as i};
@@ -1 +0,0 @@
1
- import{T as m,u as r}from"./shared-BmkV0s_d.mjs";import{I as o}from"./Items-BoFm0Hlx.mjs";import{w as n}from"./nodes-BKoxD-el.mjs";function I({props:t}){const e=m(()=>n(t,["renderItem"]),[t]);return r(o,{...e})}export{I as ItemsElement};
@@ -1 +0,0 @@
1
- import{S as p,Y as l,F as g,t as r,ac as v}from"./shared-BmkV0s_d.mjs";function h(t){var i;return(i=v(t).find(({body:a})=>a.type))==null?void 0:i.body.type}function y(t){const i=h(t)??(t.type==="Timeline"?"Sound":void 0);return{id:t.id,type:t.type,label:t.label,resource:t,duration:Number(t.duration)||void 0,media:i}}const f=new WeakMap;function w(t){if(!t)return[];let i=f.get(t);if(!i){const{canvases:a,views:e}=g(t);i=e.map(u=>{const n=u.map(s=>y(a[s]));return{id:n[0].id,parts:n,label:n.length===1?n[0].label:{none:[n.map(s=>r(s.label).text).filter(Boolean).join(" \u2013 ")]}}}),f.set(t,i)}return i}const d=new WeakMap;function o(t){if(!t)return[];let i=d.get(t);return i||(i=p(t.items).filter(a=>a==null?void 0:a.id).map(a=>{var e;return{id:a.id,parts:[y(a)],label:a.label,summary:a.summary,...typeof a.navDate=="string"?{navDate:a.navDate}:{},href:((e=p(a.homepage)[0])==null?void 0:e.id)??a.id,...l(p(a.homepage)[0])?{hrefLang:l(p(a.homepage)[0])}:{}}}),d.set(t,i)),i}function A(t){return t?Array.isArray(t)?o({items:t}):t.type==="Collection"?o(t):w(t):[]}export{w as a,A as b,o as i};
@@ -1 +0,0 @@
1
- import{u as e}from"./shared-BmkV0s_d.mjs";import{L as o}from"./Label-GTBsGDCC.mjs";function n({props:r}){return e(o,{...r})}export{n as LabelElement};
@@ -1 +0,0 @@
1
- import{a7 as L,a8 as j,S as p,a9 as H,aa as E,B as G}from"./shared-BmkV0s_d.mjs";import{b as O}from"./imageService-DTp1mc0F.mjs";import{c as J}from"./choice-key-BUNebLKe.mjs";const Q=/^((application|audio|video)\/)?(vnd\.apple\.|x-)?mpegurl$/i,U=(t,o)=>!!(t&&/\.m3u8$/i.test(t.split(/[?#]/)[0]))||!!(o&&Q.test(o)),X={width:1600,height:900};function tt(t,o){const e=new Array(t.length);if(!t.length)return e;const n=t.map(N),i=o==="left-to-right"||o==="right-to-left",s=o==="right-to-left"||o==="bottom-to-top",u=i?n[0].height:n[0].width,r=t.map((a,h)=>h);s&&r.reverse();let c=0;for(const a of r){const h=n[a],f=u/(i?h.height:h.width),y=h.width*f,g=h.height*f;e[a]=i?{x:c,y:0,width:y,height:g}:{x:0,y:c,width:y,height:g},c+=i?y:g}return e}function N(t){var s,u;if(t.width&&t.height)return{width:t.width,height:t.height};const o=R(t);if(o!=null&&o.width&&o.height)return{width:o.width,height:o.height};const e=((s=k(t)[0])==null?void 0:s.body)??((u=D(t)[0])==null?void 0:u.body),n=Number(e==null?void 0:e.width),i=Number(e==null?void 0:e.height);return n>0&&i>0?{width:n,height:i}:X}function R(t){return t.accompanyingContainer??t.placeholderContainer}function ot(t,o,e,n,i){return J(t.id,o.id,e,n,i)}function gt(t){const o=[];for(const e of t)W(e,(n,i)=>{const s=n;if((s==null?void 0:s.type)!=="Choice")return;const u=p(s.items).filter(r=>!!r&&typeof r=="object");u.length>1&&o.push({key:i,canvasId:e.id,label:s.label,items:u.map(r=>({label:r.label,id:r.id,...typeof r.type=="string"?{type:r.type}:{},...typeof r.format=="string"?{format:r.format}:{}}))})});return o}const F={};function et(t){if(t.type!=="Video"&&!E(t.type)||!t.format||U(t.id,t.format)||typeof document>"u")return true;const o=t.type==="Video"?"video":"audio",e=F[o]??(F[o]=document.createElement(o));return typeof e.canPlayType!="function"?true:e.canPlayType(t.format)!==""}function lt(t){const o={};for(const e of t){const n=e.items.findIndex(et);n>0&&(o[e.key]=n)}return o}const V=new WeakMap,z=[];function nt(t){return H(t).some(o=>((o==null?void 0:o.type)==="Choice"?p(o.items):[o]).some(n=>(n==null?void 0:n.type)==="Video"||E(n==null?void 0:n.type)))}function it(t){var u;const o=V.get(t);if(o)return o;const e=[];for(const r of t.items??[])for(const c of r.items??[]){if(!L(c))continue;const a=c.target?(u=j(c.target))==null?void 0:u.t:void 0;if(!a)continue;const[h,f]=a.split(",").map(Number);Number.isFinite(h)&&e.push({annotation:c,start:h,end:Number.isFinite(f)?f:NaN})}if(e.every(r=>nt(r.annotation)))return V.set(t,z),z;e.sort((r,c)=>r.start-c.start);const n=Number(t.duration),i=Number.isFinite(n)&&n/e.length||.5;e.forEach((r,c)=>{var h;const a=(h=e[c+1])==null?void 0:h.start;r.end>r.start||(a!=null?r.end=a>r.start?a:r.start+i:Number.isFinite(n)&&n>r.start?r.end=n:r.end>r.start||(r.end=r.start+i))});const s=e.length>1?e:z;return V.set(t,s),s}const A=t=>`frame:${t.id}`;function W(t,o){(t.items??[]).forEach((e,n)=>{(e.items??[]).forEach((i,s)=>{L(i)&&H(i).forEach((u,r)=>o(u,ot(t,i,n,s,r),i))})})}function k(t,o={},{allFrames:e=false}={}){const n=[];return M(t,o,(i,s,u)=>{i.body.type==="Image"&&n.push({body:i.body,region:i.region,...i.rotation?{rotation:i.rotation}:{},target:s,...u>=0?{frame:u}:{}})},e),n}function yt(t,o={}){for(const e of t){let n;if(M(e,o,i=>{n??(n=i.body.type)}),typeof n=="string")return n.toLowerCase()}}function D(t,o={}){const e=[];return M(t,o,(n,i,s,u)=>{const r=n.body.type;if(r!=="Video"&&!E(r))return;const c=G(u);e.push({kind:r==="Video"?"video":"audio",body:n.body,target:i,...c?{time:c}:{}})}),e}function rt(t){const o=t.filter(n=>n.time&&typeof n.body.id=="string"),e=new Set(o.map(n=>n.time.start));if(!(o.length<2||e.size!==o.length))return o.sort((n,i)=>n.time.start-i.time.start).map(n=>{const i=Number(n.body.duration)||(n.time.end!==void 0?n.time.end-n.time.start:void 0);return{src:n.body.id,...n.body.format?{format:n.body.format}:{},start:n.time.start,...i?{duration:i}:{}}})}function M(t,o,e,n=false){const i=t.width??0,s=t.height??0,u=it(t),r=Math.min(o[A(t)]??0,Math.max(0,u.length-1));W(t,(c,a,h)=>{const f=u.findIndex(x=>x.annotation===h);if(!n&&f>=0&&f!==r)return;const y=B(c,o[a]??0);if(!y)return;const g=h.target?j(h.target):void 0,b=g==null?void 0:g.rect;e(y,b?{x:b.x,y:b.y,width:b.w,height:b.h}:{x:0,y:0,width:i||Number(y.body.width)||0,height:s||Number(y.body.height)||0},f,g==null?void 0:g.t)})}function st(t){return ut(t).filter(o=>o.kind!=="transcript")}function ct(t){const o=p(t.provides);return o.includes("closedCaptions")?"captions":o.includes("subtitles")||o.includes("translation")?"subtitles":o.includes("transcript")?"transcript":"captions"}function ut(t){const o=[],e=[...t.annotations??[],...t.items??[]];for(const n of e)for(const i of n.items??[])if(p(i.motivation).includes("supplementing"))for(const s of p(i.body)){const u=s,r=(u==null?void 0:u.type)==="Choice"?p(u.items):[u];for(const c of r){const a=c==null?void 0:c.id;!((c==null?void 0:c.format)==="text/vtt"||typeof a=="string"&&/\.vtt(\?|$)/i.test(a))||typeof a!="string"||o.push({id:a,label:c.label,language:p(c.language)[0],kind:ct(i)})}}return o}function mt(t){const o=[],e=i=>{const s=i,u=s==null?void 0:s.id;if(typeof u!="string"||o.some(c=>c.id===u))return;const r=s==null?void 0:s.format;(r?r!=="text/plain":!/\.txt(\?|$)/i.test(u))||o.push({id:u,label:s==null?void 0:s.label,language:p(s==null?void 0:s.language)[0]})},n=[...t.annotations??[],...t.items??[]];for(const i of n)for(const s of i.items??[])if(p(s.motivation).includes("supplementing"))for(const u of p(s.body)){const r=u;((r==null?void 0:r.type)==="Choice"?p(r.items):[r]).forEach(e)}return p(t.rendering).forEach(e),o}function B(t,o=0){if(!t||typeof t!="object")return null;const e=t;if(e.type==="Choice"){const n=p(e.items);return B(n[o]??n[0])}if(e.type==="SpecificResource"&&e.source){const n=typeof e.source=="string"?{id:e.source}:e.source,i=p(e.selector).find(r=>(r==null?void 0:r.type)==="ImageApiSelector"),s=B({type:"Image",...n});if(!s)return null;const u=(i==null?void 0:i.rotation)!=null?String(i.rotation):void 0;return{...s,region:(i==null?void 0:i.region)||s.region,...u?{rotation:u}:{}}}return e.type!=="Image"&&e.type!=="Video"&&!E(e.type)?null:{body:e,region:typeof e.region=="string"?e.region:void 0}}function bt(t,o,e={},{standIns:n=true}={}){const i=tt(t,o),s=[],u=[],r={};return t.forEach((c,a)=>{const h=i[a],f=N(c),y=h.width/f.width,g=h.height/f.height,b=d=>({x:h.x+d.x*y,y:h.y+d.y*g,width:d.width*y,height:d.height*g}),x=D(c,e),T=k(c,e,{allFrames:true}).map(d=>({...d,canvas:c})),S=R(c);if(n&&!T.length&&x.some(d=>d.kind==="audio")&&S){const d=N(S);for(const l of k(S))T.push({...l,canvas:S,target:{x:l.target.x/d.width*f.width,y:l.target.y/d.height*f.height,width:l.target.width/d.width*f.width,height:l.target.height/d.height*f.height}})}const Y=e[A(c)]??0;T.forEach(({body:d,target:l,region:I,rotation:$,frame:w,canvas:Z},q)=>{var K;const C=O(d.service);if(!C&&!d.id)return;const _=`${Z.id}|${q}|${d.id??C}|${I??""}|${$??""}`,P=!(C&&I);if(s.push({id:_,service:C,url:d.id,width:P&&Number(d.width)||void 0,height:P&&Number(d.height)||void 0,region:I,...$?{rotation:$}:{},placement:b(l),...w!=null&&w!==Y?{hidden:true}:{}}),w!=null){const v=r[K=A(c)]??(r[K]=[]);(v[w]??(v[w]=[])).push(_)}});const[m]=x;if(m!=null&&m.body.id){const d=rt(x),l=d?d[0]:void 0;u.push({id:`${c.id}|media|${m.body.id}`,kind:m.kind,src:(l==null?void 0:l.src)??m.body.id,format:l?l.format:m.body.format,placement:b(m.target),duration:d?Number(c.duration)||void 0:Number(m.body.duration??c.duration)||void 0,...d?{segments:d}:{},poster:dt(c),captions:st(c)})}}),{images:s,media:u,placements:i,frames:r}}function dt(t){var o;return(o=ht(t))==null?void 0:o.source}const wt=1280;function ht(t){var c;const o=t.placeholderContainer;if(!o)return;const e=(c=k(o)[0])==null?void 0:c.body;if(!e)return;const n=O(e.service),i=typeof e.id=="string"?e.id:void 0,s=n?{service:n,fallback:i}:i?{src:i}:void 0;if(!s)return;const{width:u,height:r}=N(o);return{source:s,width:u,height:r}}function xt(t,o,e){const n=N(t),i=o.width/n.width,s=o.height/n.height;return{x:o.x+e.x*i,y:o.y+e.y*s,width:e.width*i,height:e.height*s}}export{wt as S,mt as a,it as b,ut as c,bt as d,ht as e,gt as f,A as g,xt as h,N as i,D as j,st as k,U as l,et as m,yt as p,B as r,lt as s};
@@ -1 +0,0 @@
1
- import{u as t}from"./shared-BmkV0s_d.mjs";import{L as n}from"./Provider-HPVBNZPr.mjs";function i({hosted:o,props:r}){var e;return((e=o.element.parentElement)==null?void 0:e.localName)==="clover-provider"?null:t(n,{...r})}export{i as LogoElement};
@@ -1 +0,0 @@
1
- import{T as i,u as e}from"./shared-BmkV0s_d.mjs";import{w as u}from"./nodes-BKoxD-el.mjs";function a(r,t=[]){return function({props:n}){const o=i(()=>u(n,t),[n]);return e(r,{...o})}}export{a as drawn};
@@ -1 +0,0 @@
1
- var T=Object.defineProperty;var x=(e,t,n)=>t in e?T(e,t,{enumerable:true,configurable:true,writable:true,value:n}):e[t]=n;var L=(e,t,n)=>x(e,typeof t!="symbol"?t+"":t,n);import{a as E,A as M,d as v,ab as N,y as m,u as c,t as S,l as p,P as O,z as B,_ as I,q as H,C as P,R as A}from"./shared-BmkV0s_d.mjs";import{C as D}from"./glyphs-oAgi4Au0.mjs";import{B as w}from"./Button-0dU8Owcz.mjs";import"./styles-On1ck1Ob.mjs";import{T as W}from"./Tip-CoSRaKjm.mjs";import{e as _}from"./controlGlyphs-DqZmaT9n.mjs";const q=B(()=>import("./CaptionDetails-CtRzBSwh.mjs"));function re(e){var t;return!!e.summary||!!((t=e.metadata)!=null&&t.length)}const U=(e,t)=>`${e}-label-${t}`,oe=({id:e,canvases:t,comments:n,open:s,onClose:r,language:o})=>{const{t:u,langOf:a}=E(),i=M(null),[f,h]=v(s);return s&&!f&&h(true),N(s,()=>r(false)),m(()=>{var l;s&&((l=i.current)==null||l.focus())},[s]),c("figcaption",{className:"clover-canvas-caption","data-open":s,"data-testid":"clover-canvas-caption",id:e,onKeyDown:l=>{l.key==="Escape"&&(l.preventDefault(),l.stopPropagation(),r(true))},ref:i,tabIndex:-1,children:[c(w,{className:"clover-canvas-caption-close",id:`close-${e}`,label:u("commonClose"),lang:a("commonClose"),onClick:()=>r(true),children:c(D,{})}),t.map((l,g)=>{const d=S(l.label,o);return c("section",{className:"clover-canvas-caption-canvas",children:[d.text&&c("p",{className:"clover-canvas-caption-label",id:U(e,g),...p(d.lang),children:d.text}),f&&c(O,{fallback:null,children:c(q,{summary:l.summary,metadata:l.metadata,comments:n==null?void 0:n.get(l.id),language:o})})]},l.id)})]})},$=112,z=128;function j(e){I(()=>{const t=e==null?void 0:e.closest(".clover-canvas");if(!e||!t)return;const n=(o=false)=>{let u=e.offsetWidth,a=0;for(const d of o?[]:Array.from(e.children))!(d instanceof HTMLElement)||!d.offsetParent||(u=Math.min(u,d.offsetLeft),a=Math.max(a,d.offsetTop+d.offsetHeight));const i={width:e.offsetWidth-u,height:a};for(const[d,C]of Object.entries(i)){const y=`--clover-canvas-controls-${d}`;a?t.style.setProperty(y,`${C}px`):t.style.removeProperty(y)}const f=e.offsetTop,h=t.querySelector(":scope > .clover-canvas-media > .clover-canvas-transport"),l=t.clientHeight-2*f-i.height-((h==null?void 0:h.offsetHeight)??0),g=e.offsetLeft+u-f;a&&l<$&&g>=z?t.dataset.popups="beside":delete t.dataset.popups};n();const s=new ResizeObserver(()=>n());s.observe(e),s.observe(t);const r=new MutationObserver(()=>n());return r.observe(e,{childList:true}),r.observe(t,{childList:true}),()=>{s.disconnect(),r.disconnect(),n(true)}},[e])}const b=()=>{if(typeof document>"u")return null;const e=document;return e.fullscreenElement??e.webkitFullscreenElement??null},k=()=>{if(typeof document>"u")return false;const e=document;return!!(e.fullscreenEnabled??e.webkitFullscreenEnabled)},F=e=>{const t=e==null?void 0:e.closest(".clover-root"),n=e==null?void 0:e.closest("dialog");return t&&!(n&&t.contains(n))?t:(e==null?void 0:e.closest(".clover-canvas"))??null},K=(e,t)=>{if(typeof e.webkitEnterFullscreen!="function")return;const n=t.closest(".clover-canvas"),s=!e.isConnected&&!!n;if(s&&n){const o=e.getAttribute("style");e.style.cssText="position:absolute;inset:0;z-index:-1;width:100%;height:100%;object-fit:contain;pointer-events:none",n.prepend(e),e.addEventListener("webkitendfullscreen",()=>{e.remove(),o===null?e.removeAttribute("style"):e.setAttribute("style",o)},{once:true})}const r=()=>{var o;try{(o=e.webkitEnterFullscreen)==null||o.call(e)}catch{}};s?requestAnimationFrame(r):r()},Y=async(e,t)=>{var s,r,o,u;const n=F(e);if(n)try{if(b()){const i=document;await(((s=i.exitFullscreen)==null?void 0:s.call(i))??((r=i.webkitExitFullscreen)==null?void 0:r.call(i)));return}if(!k()){t&&e&&K(t,e);return}const a=n;await(((o=a.requestFullscreen)==null?void 0:o.call(a))??((u=a.webkitRequestFullscreen)==null?void 0:u.call(a)))}catch{}};function R(e){const[t,n]=v(false);return m(()=>{if(!e)return;const s=()=>{var r;return n(!!((r=b())!=null&&r.contains(e)))};return s(),document.addEventListener("fullscreenchange",s),document.addEventListener("webkitfullscreenchange",s),()=>{document.removeEventListener("fullscreenchange",s),document.removeEventListener("webkitfullscreenchange",s)}},[e]),t}function ae({key:e,id:t,label:n,glyph:s,onClick:r,expanded:o,controls:u,shortcut:a,lang:i,unavailable:f},h){const l=h==null?void 0:h[e];return l?c(l,{buttonProps:{id:t,type:"button","aria-label":n,...i&&{lang:i},...a&&{"aria-keyshortcuts":a.keys},onClick:f?void 0:r,...f&&{"aria-disabled":true},...o!==void 0&&{"aria-expanded":o,"aria-controls":u}},icon:c(_,{label:n,children:s}),label:n,tip:c(W,{label:n,shortcut:a})},e):c(w,{id:t,label:n,onClick:f?void 0:r,unavailable:f,expanded:o,controls:u,shortcut:a,lang:i,children:s},e)}const ce=({fit:e=false,clusterRef:t,children:n})=>{const[s,r]=v(null),o=R(s);j(s);const u=H(a=>{r(a),t==null||t(a)},[t]);return c("div",{className:"clover-canvas-controls","data-fit":e||void 0,"data-fullscreen":o,"data-testid":"clover-canvas-controls",ref:u,children:n})},V=()=>()=>{};function le(){return P(V,k)}const ie=({hidden:e})=>{const{t,langOf:n}=E(),s=t("imageExitFullScreen");return c("button",{"aria-label":s,...p(n("imageExitFullScreen")),className:"clover-canvas-exit-full-screen",hidden:e,onClick:r=>void Y(r.currentTarget),type:"button",children:[c("svg",{viewBox:"0 0 512 512",width:"20",height:"20","aria-hidden":"true",focusable:"false",children:c("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"45",d:"M244 400L100 256l144-144M120 256h292"})}),s]})};function ue(e){const[t,n]=v(false);return m(()=>{if(!e)return;const s=()=>n(b()===e);return s(),document.addEventListener("fullscreenchange",s),document.addEventListener("webkitfullscreenchange",s),()=>{document.removeEventListener("fullscreenchange",s),document.removeEventListener("webkitfullscreenchange",s)}},[e]),t}function de(e){const[t,n]=v(false);return m(()=>{if(!e)return;const s=()=>{const r=b();n(r===e||!!r&&F(e)===r&&(r==null?void 0:r.querySelector(".clover-canvas"))===e)};return s(),document.addEventListener("fullscreenchange",s),document.addEventListener("webkitfullscreenchange",s),()=>{document.removeEventListener("fullscreenchange",s),document.removeEventListener("webkitfullscreenchange",s)}},[e]),t}class fe extends A.Component{constructor(){super(...arguments);L(this,"state",{error:null})}static getDerivedStateFromError(n){return{error:n}}render(){const{error:n}=this.state;return n?c("div",{className:"clover-canvas-error",role:"alert",lang:"en",children:[c("p",{className:"clover-canvas-error-headline","data-testid":"headline",children:"Something went wrong"}),n.message&&c("span",{className:"clover-canvas-error-body",children:`Error message: ${n.message}`})]}):this.props.children}}const G={image:"bodyUnloadableImage",video:"bodyUnloadableVideo",audio:"bodyUnloadableAudio",model:"bodyUnloadableModel"};function he({kind:e,shown:t,room:n=false}){const{t:s,langOf:r}=E(),o=G[e];return c("div",{className:"clover-body-unloadable","data-room":n||void 0,role:"status",children:t&&c("p",{...p(r(o)),children:s(o)})})}function ve({text:e,lang:t}){return c("div",{className:"clover-body-note","aria-hidden":"true",children:c("p",{...p(t),children:e})})}const J=5,me=300,pe=J*4;function be(e,t=false){return e==="touch"||e==="pen"&&!t}function ge(e){return e.pointerType==="pen"&&e.buttons===0}function Ee(e,t,n){for(let s=e;s&&s!==t;s=s.parentElement)if((n>0?s.scrollHeight-s.clientHeight-s.scrollTop:s.scrollTop)>=1&&/auto|scroll/.test(getComputedStyle(s).overflowY))return true;return false}function ye(e,t){var s;let n=e;for(;n&&n!==t;){if(n instanceof HTMLButtonElement||n instanceof HTMLAnchorElement||n instanceof HTMLInputElement||n instanceof HTMLLabelElement||n instanceof HTMLSelectElement||((s=n.dataset)==null?void 0:s.cloverCanvasInteractive)!==void 0)return true;n=n.parentElement}return false}export{he as B,ce as C,pe as D,fe as E,J as T,ge as a,me as b,be as c,R as d,ue as e,de as f,U as g,re as h,ye as i,ie as j,ve as k,oe as l,ae as r,Ee as s,Y as t,le as u};
@@ -1 +0,0 @@
1
- import{V as a,t as c,e as u,c as l,T as g}from"./shared-BmkV0s_d.mjs";function f(e,t,o){if(o&&e.includes(o))return o;if(!e.length)return;const s=a(e,t);return s==="none"?e[0]:s}const y=e=>e&&typeof e=="object"&&!Array.isArray(e)?Object.keys(e).filter(t=>t!=="none"&&t!=="@none"&&c({[t]:e[t]}).text):[];function i(e){if(!e)return[];const t=[...Array.isArray(e.metadata)?e.metadata:[],e.requiredStatement].filter(Boolean),s=[e.label,e.summary,...t.flatMap(n=>[n==null?void 0:n.label,n==null?void 0:n.value])].map(y).filter(n=>n.length>1);return[...new Set(s.flat())]}function d(){const{language:e,chooseLanguage:t}=u("About"),o=l(r=>r.manifest),s=g(()=>i(o),[o]),n=f(s,e);return n&&t?{languages:s,chosen:n,onChange:t}:null}export{f as s,d as u};
@@ -1,22 +0,0 @@
1
- var Et=Object.defineProperty;var kt=(n,t,e)=>t in n?Et(n,t,{enumerable:true,configurable:true,writable:true,value:e}):n[t]=e;var h=(n,t,e)=>kt(n,typeof t!="symbol"?t+"":t,e);import{c as Lt,r as $}from"./contexts-ByL3eA_T.mjs";import{c as k,s as L,t as _,a as _t,u as mt,i as Pt,b as pt,d as gt,e as At,r as It,f as I,g as St}from"./CanvasView-DeM04pm-.mjs";import{a as S,w as Rt,v as N,f as Bt,s as Q,b as j,c as Ot}from"./Camera-BS8iIH74.mjs";import{i as J,a as Ct,T as zt,b as tt,c as et,D as Ut,s as Dt}from"./pointer-IZcH8rZy.mjs";import{a0 as Wt,a1 as Ft}from"./shared-BmkV0s_d.mjs";import{a as Ht,i as it,f as Nt}from"./imageService-DTp1mc0F.mjs";function Gt(n){return typeof HTMLImageElement<"u"&&n instanceof HTMLImageElement?n.complete&&n.naturalWidth>0:true}function Xt(n,t){if(!n.bleed)return{x:0,y:0};const e=n.transform,i=Math.hypot(e.a,e.b)*t,s=Math.hypot(e.c,e.d)*t;return{x:n.bleed.right&&i>0?1/i:0,y:n.bleed.bottom&&s>0?1/s:0}}const Zt=`#version 300 es
2
- in vec2 a_position;
3
- uniform mat3 u_matrix;
4
- uniform vec4 u_crop;
5
- out vec2 v_uv;
6
-
7
- void main() {
8
- vec3 clip = u_matrix * vec3(a_position, 1.0);
9
- gl_Position = vec4(clip.xy, 0.0, 1.0);
10
- v_uv = u_crop.xy + a_position * u_crop.zw;
11
- }
12
- `,Kt=`#version 300 es
13
- precision highp float;
14
- in vec2 v_uv;
15
- uniform sampler2D u_texture;
16
- uniform float u_opacity;
17
- out vec4 outColor;
18
-
19
- void main() {
20
- outColor = texture(u_texture, v_uv) * u_opacity;
21
- }
22
- `;class R{constructor(t,e,i){h(this,"kind","webgl2");h(this,"canvas");h(this,"maxTextureSize");h(this,"gl");h(this,"program",null);h(this,"vao",null);h(this,"uniforms",{matrix:null,crop:null,opacity:null,texture:null});h(this,"textures",new Map);h(this,"cssWidth",1);h(this,"cssHeight",1);h(this,"pixelRatio",1);h(this,"matrixScratch",new Float32Array(9));h(this,"isLost",false);h(this,"callbacks");h(this,"handleLost",()=>{var t2,e2;this.isLost=true,this.textures.clear(),(e2=(t2=this.callbacks).onLost)==null||e2.call(t2)});this.canvas=t,this.gl=e,this.callbacks=i,this.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE)||4096;const s=Vt(e,Zt,Kt);this.program=s,this.uniforms={matrix:e.getUniformLocation(s,"u_matrix"),crop:e.getUniformLocation(s,"u_crop"),opacity:e.getUniformLocation(s,"u_opacity"),texture:e.getUniformLocation(s,"u_texture")};const r=e.createVertexArray();e.bindVertexArray(r);const o=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,o),e.bufferData(e.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,1,1]),e.STATIC_DRAW);const a=e.getAttribLocation(s,"a_position");e.enableVertexAttribArray(a),e.vertexAttribPointer(a,2,e.FLOAT,false,0,0),e.bindVertexArray(null),this.vao=r,e.enable(e.BLEND),e.blendFunc(e.ONE,e.ONE_MINUS_SRC_ALPHA),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,true),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,false),e.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,e.BROWSER_DEFAULT_WEBGL),t.addEventListener("webglcontextlost",this.handleLost)}static create(t,e={}){let i=null;try{i=t.getContext("webgl2",{alpha:true,premultipliedAlpha:true,antialias:false,depth:false,stencil:false,preserveDrawingBuffer:false})}catch{i=null}if(!i||typeof i.createShader!="function")return null;try{return new R(t,i,e)}catch{return null}}resize(t,e,i){this.cssWidth=Math.max(1,t),this.cssHeight=Math.max(1,e),this.pixelRatio=i;const s=Math.max(1,Math.round(t*i)),r=Math.max(1,Math.round(e*i));this.canvas.width!==s&&(this.canvas.width=s),this.canvas.height!==r&&(this.canvas.height=r)}begin(){if(this.isLost)return;const t=this.gl;t.viewport(0,0,this.canvas.width,this.canvas.height),t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT),t.useProgram(this.program),t.bindVertexArray(this.vao),t.activeTexture(t.TEXTURE0),t.uniform1i(this.uniforms.texture,0)}draw(t){if(this.isLost||!Gt(t.source))return"skipped";const e=this.gl,i=this.upload(t);if(i==="tainted")return"tainted";if(!i)return"skipped";const s=t.crop??{x:0,y:0,width:t.width,height:t.height},r=Xt(t,this.pixelRatio),o=k(t.transform,_(s.x,s.y),L(s.width+r.x,s.height+r.y));return e.uniformMatrix3fv(this.uniforms.matrix,false,_t(o,this.cssWidth,this.cssHeight,this.matrixScratch)),e.uniform4f(this.uniforms.crop,s.x/t.width,s.y/t.height,s.width/t.width,s.height/t.height),e.uniform1f(this.uniforms.opacity,t.opacity),e.bindTexture(e.TEXTURE_2D,i.texture),e.drawArrays(e.TRIANGLE_STRIP,0,4),"drawn"}end(){this.isLost||this.gl.bindVertexArray(null)}has(t){return!this.isLost&&this.textures.has(t)}release(t){const e=this.textures.get(t);e&&(this.isLost||this.gl.deleteTexture(e.texture),this.textures.delete(t))}dispose(){var t;if(this.canvas.removeEventListener("webglcontextlost",this.handleLost),!this.isLost){for(const e of[...this.textures.keys()])this.release(e);this.program&&this.gl.deleteProgram(this.program),this.vao&&this.gl.deleteVertexArray(this.vao)}this.textures.clear(),(t=this.gl.getExtension("WEBGL_lose_context"))==null||t.loseContext(),this.isLost=true}upload(t){const e=this.gl,i=this.textures.get(t.key);if(i&&i.width===t.width&&i.height===t.height)return i;const s=(i==null?void 0:i.texture)??e.createTexture();if(!s)return null;e.bindTexture(e.TEXTURE_2D,s);try{e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,t.source)}catch(o){if(i||e.deleteTexture(s),qt(o))return"tainted";throw o}e.generateMipmap(e.TEXTURE_2D),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE);const r={texture:s,width:t.width,height:t.height};return this.textures.set(t.key,r),r}}function Vt(n,t,e){const i=st(n,n.VERTEX_SHADER,t),s=st(n,n.FRAGMENT_SHADER,e),r=n.createProgram();if(!r)throw new Error("Could not create WebGL program");if(n.attachShader(r,i),n.attachShader(r,s),n.linkProgram(r),n.deleteShader(i),n.deleteShader(s),!n.getProgramParameter(r,n.LINK_STATUS)){const o=n.getProgramInfoLog(r);throw n.deleteProgram(r),new Error(`Could not link WebGL program: ${o}`)}return r}function st(n,t,e){const i=n.createShader(t);if(!i)throw new Error("Could not create WebGL shader");if(n.shaderSource(i,e),n.compileShader(i),!n.getShaderParameter(i,n.COMPILE_STATUS)){const s=n.getShaderInfoLog(i);throw n.deleteShader(i),new Error(`Could not compile WebGL shader: ${s}`)}return i}function qt(n){return typeof n=="object"&&n!==null&&n.name==="SecurityError"}const Yt=.09,$t=1e-4,nt=.05,Qt=1e-4;class jt{constructor(t,e=Yt,i){h(this,"current");h(this,"target",null);h(this,"timeConstant");h(this,"spring");h(this,"start");h(this,"elapsed",0);this.current={...t},this.start={...t},this.timeConstant=e,this.spring=i}get destination(){return this.target?{...this.target.state}:{...this.current}}set(t){this.current={...t},this.target=null}animateTo(t,e,i=false){const s=this.spring?this.spring.duration<=0:this.timeConstant===0;if(i||s){this.set(t.state);return}let r=t.anchor;if(r){const o=S(r.world,r.screen,t.state.zoom,t.state.rotation,e);Math.hypot(o.x-t.state.x,o.y-t.state.y)*t.state.zoom>nt&&(r=void 0)}this.start={...this.current},this.elapsed=0,this.target={state:{...t.state},anchor:r}}stop(){this.target=null}step(t,e){const i=this.target;if(!i)return false;const s=i.state;let r,o;if(this.spring){this.elapsed+=Math.max(t,0);const m=this.elapsed/this.spring.duration;if(m>=1)return this.current={...s},this.target=null,false;const c=this.spring.stiffness;r=this.start,o=(1-Math.exp(-c*m))/(1-Math.exp(-c))}else r=this.current,o=1-Math.exp(-Math.max(t,0)/this.timeConstant);const a=Math.exp(Math.log(r.zoom)+(Math.log(s.zoom)-Math.log(r.zoom))*o),d=r.rotation+(s.rotation-r.rotation)*o,l=i.anchor?S(i.anchor.world,i.anchor.screen,a,d,e):{x:r.x+(s.x-r.x)*o,y:r.y+(s.y-r.y)*o};return this.current={x:l.x,y:l.y,zoom:a,rotation:d},this.spring?true:Math.abs(Math.log(s.zoom/a))<$t&&Math.abs(s.rotation-d)<Qt&&Math.hypot(s.x-l.x,s.y-l.y)*a<nt?(this.current={...s},this.target=null,false):true}}const G={clickToZoom:true,dblClickToZoom:true,pinchToZoom:true,scrollToZoom:false,navigable:true,flickEnabled:true,flickMinSpeed:200,flickMomentum:.25},z=2,rt=1.5,ot=.1,Jt=100,te=.002,ee=.01;class ie{constructor(t,e,i=G){h(this,"pointers",new Map);h(this,"samples",[]);h(this,"down",null);h(this,"pinch",null);h(this,"lastTap",null);h(this,"lastPointerType","");h(this,"penHovers",false);h(this,"onPointerDown",t2=>{var i2,s;if(this.lastPointerType=t2.pointerType,t2.pointerType==="mouse"&&t2.button!==0||J(t2.target,this.element))return;(s=(i2=this.element).setPointerCapture)==null||s.call(i2,t2.pointerId);const e2=this.local(t2);this.pointers.set(t2.pointerId,e2),this.pointers.size===1?(this.down={x:e2.x,y:e2.y,t:t2.timeStamp,moved:false},this.samples=[{x:e2.x,y:e2.y,t:t2.timeStamp}],this.target.setInteracting(true)):this.pointers.size===2&&(this.pinch=this.pinchState(),this.down&&(this.down.moved=true))});h(this,"onPointerMove",t2=>{var s;Ct(t2)&&(this.penHovers=true);const e2=this.pointers.get(t2.pointerId);if(!e2)return;const i2=this.local(t2);if(this.pointers.set(t2.pointerId,i2),this.pointers.size===1){const r=i2.x-e2.x,o=i2.y-e2.y;this.down&&Math.hypot(i2.x-this.down.x,i2.y-this.down.y)>zt&&(this.down.moved=true),(s=this.down)!=null&&s.moved&&this.options.navigable&&this.target.panBy(r,o,!this.tracksPointer(t2.pointerType)),this.samples.push({x:i2.x,y:i2.y,t:t2.timeStamp});const a=t2.timeStamp-Jt;for(;this.samples.length>2&&this.samples[0].t<a;)this.samples.shift()}else if(this.pointers.size===2&&this.pinch&&this.options.navigable){const r=this.pinchState();this.options.pinchToZoom&&this.pinch.distance>0&&this.target.zoomBy(r.distance/this.pinch.distance,r.mid,false),this.target.panBy(r.mid.x-this.pinch.mid.x,r.mid.y-this.pinch.mid.y,false),this.pinch=r}});h(this,"onPointerUp",t2=>{var d,l,f,m,c,u;if(!this.pointers.has(t2.pointerId))return;if(this.pointers.delete(t2.pointerId),(l=(d=this.element).releasePointerCapture)==null||l.call(d,t2.pointerId),this.pointers.size===1){this.pinch=null;const[p]=this.pointers.values();this.samples=[{...p,t:t2.timeStamp}];return}if(this.pointers.size>0)return;const e2=this.down;if(this.down=null,this.pinch=null,this.target.setInteracting(false),!e2)return;const i2=this.local(t2);if(!e2.moved&&t2.type==="pointerup"&&t2.timeStamp-e2.t<tt){if((m=(f=this.target).dismiss)!=null&&m.call(f)){this.lastTap=null;return}if(et(t2.pointerType,this.penHovers)){const p=this.lastTap;this.options.navigable&&(this.options.clickToZoom||this.options.dblClickToZoom)&&p&&t2.timeStamp-p.t<tt&&Math.hypot(i2.x-p.x,i2.y-p.y)<Ut?(this.lastTap=null,this.zoomIn(i2)):this.lastTap={x:i2.x,y:i2.y,t:t2.timeStamp};return}this.options.clickToZoom&&this.options.navigable?t2.shiftKey?this.target.zoomBy(1/z,i2,true):this.zoomIn(i2):(u=(c=this.target).tap)==null||u.call(c,i2);return}if(!this.options.navigable||!this.tracksPointer(t2.pointerType))return;const r=this.samples[0],o=this.samples[this.samples.length-1],a=((o==null?void 0:o.t)??0)-((r==null?void 0:r.t)??0);if(r&&o&&a>0&&t2.timeStamp-o.t<50){const p=(o.x-r.x)/a*1e3,y=(o.y-r.y)/a*1e3,g=this.options.flickMomentum;g>0&&Math.hypot(p,y)>this.options.flickMinSpeed&&this.target.panBy(p*g,y*g,true)}});h(this,"onDoubleClick",t2=>{this.options.navigable&&(this.options.clickToZoom||!this.options.dblClickToZoom||et(this.lastPointerType,this.penHovers)||J(t2.target,this.element)||(t2.shiftKey?this.target.zoomBy(1/z,this.local(t2),true):this.zoomIn(this.local(t2))))});h(this,"onWheel",t2=>{const e2=t2.ctrlKey;if(!this.options.navigable||!e2&&!this.options.scrollToZoom||!e2&&Dt(t2.target,this.element,t2.deltaY))return;t2.preventDefault();const i2=se(t2),s=e2?ee:te;this.target.zoomBy(Math.exp(-i2*s),this.local(t2),!e2)});h(this,"onKeyDown",t2=>{if(t2.target!==this.element||!this.options.navigable||t2.altKey||t2.metaKey||t2.ctrlKey)return;const e2=this.element.getBoundingClientRect(),i2=e2.width*ot*(t2.shiftKey?3:1),s=e2.height*ot*(t2.shiftKey?3:1);switch(t2.key){case"ArrowLeft":this.target.panBy(i2,0,true);break;case"ArrowRight":this.target.panBy(-i2,0,true);break;case"ArrowUp":this.target.panBy(0,s,true);break;case"ArrowDown":this.target.panBy(0,-s,true);break;case"+":case"=":this.target.zoomBy(rt,void 0,true);break;case"-":case"_":this.target.zoomBy(1/rt,void 0,true);break;case"0":this.target.home();break;case"r":this.target.rotateBy(90);break;case"R":this.target.rotateBy(-90);break;default:return}t2.preventDefault()});this.element=t,this.target=e,this.options=i,t.addEventListener("pointerdown",this.onPointerDown),t.addEventListener("pointermove",this.onPointerMove),t.addEventListener("pointerup",this.onPointerUp),t.addEventListener("pointercancel",this.onPointerUp),t.addEventListener("dblclick",this.onDoubleClick),t.addEventListener("wheel",this.onWheel,{passive:false}),t.addEventListener("keydown",this.onKeyDown)}setOptions(t){this.options=t}dispose(){const t=this.element;t.removeEventListener("pointerdown",this.onPointerDown),t.removeEventListener("pointermove",this.onPointerMove),t.removeEventListener("pointerup",this.onPointerUp),t.removeEventListener("pointercancel",this.onPointerUp),t.removeEventListener("dblclick",this.onDoubleClick),t.removeEventListener("wheel",this.onWheel),t.removeEventListener("keydown",this.onKeyDown)}local(t){const e=this.element.getBoundingClientRect();return{x:t.clientX-e.left,y:t.clientY-e.top}}zoomIn(t){var e,i;(i=(e=this.target).atMaxZoom)!=null&&i.call(e)?this.target.home():this.target.zoomBy(z,t,true)}tracksPointer(t){return t==="touch"||this.options.flickEnabled}pinchState(){const[t,e]=[...this.pointers.values()];return{distance:Math.hypot(e.x-t.x,e.y-t.y),mid:{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}}}function se(n){return n.deltaMode===1?n.deltaY*16:n.deltaMode===2?n.deltaY*400:n.deltaY}class wt extends Error{constructor(t,e,i){super(t),this.url=e,this.status=i,this.name="ImageLoadError"}}const at=new Set;async function ne(n,t={}){const{signal:e,maxTextureSize:i,request:s}=t,r=Wt(s),o=oe(n);if(typeof createImageBitmap!="function"||typeof fetch!="function")return U(n,{signal:e,cors:true,withCredentials:r});if(o&&at.has(o))return U(n,{signal:e,cors:false,withCredentials:r});let a;try{a=await Ft(s,n,{mode:"cors",signal:e})}catch(c){if(ae(c,e))throw c;const u=await U(n,{signal:e,cors:false,withCredentials:r});return o&&at.add(o),u}if(!a.ok)throw new wt(`Image request failed with ${a.status}`,n,a.status);const d=await a.blob();let l=await re(d);const f=l.width,m=l.height;if(i&&(l.width>i||l.height>i)){const c=i/Math.max(l.width,l.height),u=await createImageBitmap(l,{resizeWidth:Math.max(1,Math.floor(l.width*c)),resizeHeight:Math.max(1,Math.floor(l.height*c)),resizeQuality:"high"});l.close(),l=u}if(e!=null&&e.aborted)throw l.close(),X();return{kind:"bitmap",source:l,width:l.width,height:l.height,naturalWidth:f,naturalHeight:m,opaque:false}}async function re(n){const t={imageOrientation:"from-image",premultiplyAlpha:"premultiply",colorSpaceConversion:"default"};try{return await createImageBitmap(n,t)}catch(e){if(e instanceof TypeError)return createImageBitmap(n);throw e}}function U(n,{signal:t,cors:e,withCredentials:i}){return new Promise((s,r)=>{if(t!=null&&t.aborted){r(X());return}const o=new Image;o.decoding="async",e&&(o.crossOrigin=i?"use-credentials":"anonymous");const a=()=>{o.onload=null,o.onerror=null,t==null||t.removeEventListener("abort",d)},d=()=>{a(),o.src="",r(X())};t==null||t.addEventListener("abort",d),o.onload=()=>{a();const l=()=>s({kind:"element",source:o,width:o.naturalWidth,height:o.naturalHeight,naturalWidth:o.naturalWidth,naturalHeight:o.naturalHeight,opaque:!e});typeof o.decode=="function"?o.decode().then(l,l):l()},o.onerror=()=>{a(),r(new wt("Image failed to load",n))},o.src=n})}function oe(n){var t;try{return new URL(n,(t=globalThis.location)==null?void 0:t.href).origin}catch{return null}}function ae(n,t){return!!(t!=null&&t.aborted)||typeof n=="object"&&n!==null&&n.name==="AbortError"}function X(){const n=new Error("Aborted");return n.name="AbortError",n}function ht(n){n.kind==="bitmap"&&n.source.close()}const he=192*1024*1024,ce=6,le=2;class de{constructor(t){h(this,"entries",new Map);h(this,"inFlight",0);h(this,"frame",0);h(this,"bytes",0);h(this,"wanted",[]);h(this,"disposed",false);h(this,"budget");h(this,"maxInFlight");this.options=t,this.budget=t.byteBudget??he,this.maxInFlight=t.maxInFlight??ce}get(t){const e=this.entries.get(t);if((e==null?void 0:e.state)==="ready")return e.lastUsed=this.frame,e.image}has(t){var e;return((e=this.entries.get(t))==null?void 0:e.state)==="ready"}failed(t){var e;return((e=this.entries.get(t))==null?void 0:e.state)==="failed"}get byteSize(){return this.bytes}get pending(){return this.inFlight}seed(t,e){var s;const i=this.entries.get(t);(i==null?void 0:i.state)!=="ready"&&((s=i==null?void 0:i.controller)==null||s.abort(),this.entries.set(t,{url:t,state:"ready",image:e,bytes:D(e),lastUsed:this.frame,attempts:0,pinned:false,waiters:(i==null?void 0:i.waiters)??[]}),this.bytes+=D(e),this.flushWaiters(t))}prefetch(t){return Promise.all(t.map(e=>new Promise(i=>{const s=this.entries.get(e.url);if(s&&s.state!=="loading")return i();if(s){s.waiters.push(i);return}this.start({...e,priority:-1},i)}))).then(()=>{})}update(t){if(this.disposed)return;this.frame++;const e=new Set(t.map(i=>i.url));this.wanted=[...t].sort((i,s)=>i.priority-s.priority);for(const i of this.entries.values())i.state==="loading"&&!i.pinned&&!e.has(i.url)&&i.controller&&(i.controller.abort(),this.entries.delete(i.url),this.inFlight--);for(const i of this.wanted){const s=this.entries.get(i.url);s&&(s.lastUsed=this.frame)}this.pump(),this.evict(e)}dispose(){var t;this.disposed=true;for(const e of this.entries.values())(t=e.controller)==null||t.abort(),this.flushWaiters(e.url);this.entries.clear(),this.bytes=0}forEachReady(t){for(const e of this.entries.values())e.state==="ready"&&e.image&&t(e.url,e.image)}pump(){for(const t of this.wanted){if(this.inFlight>=this.maxInFlight)break;this.entries.has(t.url)||this.start(t)}}start(t,e){const i=new AbortController,s={url:t.url,state:"loading",bytes:0,lastUsed:this.frame,attempts:0,controller:i,pinned:!!e,waiters:e?[e]:[]};this.entries.set(t.url,s),this.inFlight++,this.attempt(s,t,i,t.url)}attempt(t,e,i,s){t.attempts++,this.options.load(s,i.signal).then(r=>{if(this.disposed||this.entries.get(t.url)!==t){ht(r);return}t.state="ready",t.image=r,t.bytes=D(r),t.controller=void 0,t.pinned=false,this.bytes+=t.bytes,this.settle(t)},r=>{if(!(i.signal.aborted||this.disposed)&&this.entries.get(t.url)===t){if(t.attempts<le&&!ue(r,e)){this.attempt(t,e,i,e.fallbackUrl??e.url);return}t.state="failed",t.controller=void 0,t.pinned=false,this.settle(t)}})}settle(t){this.inFlight--,this.flushWaiters(t.url),this.options.onSettled(),this.pump()}flushWaiters(t){const e=this.entries.get(t);if(!e)return;const i=e.waiters;e.waiters=[],i.forEach(s=>s())}evict(t){if(this.bytes<=this.budget)return;const e=[...this.entries.values()].filter(i=>i.state==="ready"&&!t.has(i.url)).sort((i,s)=>i.lastUsed-s.lastUsed);for(const i of e){if(this.bytes<=this.budget)break;this.entries.delete(i.url),this.bytes-=i.bytes,i.image&&ht(i.image),this.options.onEvict(i.url)}}}function D(n){return n.width*n.height*4}function ue(n,t){if(t.fallbackUrl)return false;const e=n==null?void 0:n.status;return typeof e=="number"&&e>=400&&e<500&&e!==408&&e!==429}const fe=.1;class me{constructor(t,e=s=>requestAnimationFrame(s),i=s=>cancelAnimationFrame(s)){h(this,"handle",0);h(this,"last",0);h(this,"disposed",false);h(this,"frame",t2=>{if(this.handle=0,this.disposed)return;const e2=this.last?Math.min((t2-this.last)/1e3,fe):1/60;this.last=t2,this.tick(e2,t2)?this.invalidate():this.last=0});this.tick=t,this.raf=e,this.caf=i}invalidate(){this.disposed||this.handle||(this.handle=this.raf(this.frame))}drawNow(){this.disposed||(this.handle&&this.caf(this.handle),this.frame(performance.now()))}dispose(){this.disposed=true,this.handle&&this.caf(this.handle),this.handle=0}}const pe=2*1024*1024;function ge(n,t,e=pe){const i=new Set;let s=e,r=false;return{get deferred(){return r},getTile(o){const a=n(o);if(!a||a.kind==="media"||a.opaque||i.has(o)||t(o))return a;const d=a.width*a.height*4;if(i.size>0&&d>s){r=true;return}return s-=d,i.add(o),a}}}function we(n){const t=/^(!)?(\d+(?:\.\d+)?)$/.exec((n==null?void 0:n.trim())??"");if(!t)return null;const e=Number(t[2]);if(e>360)return null;const i=e%360,s=!!t[1];return i||s?{degrees:i,mirror:s}:null}function ye(n,t,e){if(!n)return null;let i=n.trim().replace(/^xywh=/,""),s=false;i.startsWith("pct:")?(s=true,i=i.slice(4)):i.startsWith("pixel:")&&(i=i.slice(6));const r=i.split(",").map(Number);if(r.length!==4||r.some(p=>!Number.isFinite(p)))return null;let[o,a,d,l]=r;s&&(o=o/100*t,a=a/100*e,d=d/100*t,l=l/100*e);const f=Math.max(0,o),m=Math.max(0,a),c=Math.min(t,o+d),u=Math.min(e,a+l);return c<=f||u<=m?null:{x:f,y:m,width:c-f,height:u-m}}const W=512,xe=16e6;function yt(n,t,e){return{width:t,height:e,levels:[{scaleFactor:1,width:t,height:e,tileWidth:t,tileHeight:e,cols:1,rows:1}],tile:s=>({...s,url:n,region:{x:0,y:0,width:t,height:e}})}}function ve(n){const{width:t,height:e}=n,i=[],s=n.regionByPx&&n.sizeByW,r=(c,u,p)=>{const y=Math.ceil(t/c),g=Math.ceil(e/c);return{scaleFactor:c,width:y,height:g,tileWidth:u,tileHeight:p,cols:Math.ceil(y/u),rows:Math.ceil(g/p)}},o=(c,u)=>({scaleFactor:t/c,width:c,height:u,tileWidth:c,tileHeight:u,cols:1,rows:1,whole:true}),a=n.tiles[0];if(a)for(const c of a.scaleFactors)i.push(r(c,a.width,a.height));else if(s)for(let c=1;;c*=2){const u=r(c,W,W);if(i.push(u),u.cols===1&&u.rows===1)break}const d=Math.max(0,...i.map(c=>c.scaleFactor));for(const c of n.sizes){const u=t/c.width;be(n,c.width,c.height)&&u>d+1e-9&&i.push(o(c.width,c.height))}const l=i.reduce((c,u)=>!c||u.scaleFactor>c.scaleFactor?u:c,null);if(l&&l.cols*l.rows>1&&n.sizeByW){const c=Math.max(t,e)/W;i.push(o(Math.ceil(t/c),Math.ceil(e/c)))}(!i.length||!a&&!s&&t*e<=xe)&&(i.some(c=>c.scaleFactor===1)||i.push(o(t,e)));const f=Te(i).sort((c,u)=>u.scaleFactor-c.scaleFactor),m=Ht(n);return{width:t,height:e,levels:f,tile(c){const u=f[c.level],p=u.scaleFactor,y=u.cols===1&&u.rows===1;let g,v,b;if(y)g={x:0,y:0,width:t,height:e},v=u.width,b=u.height;else{const A=Math.round(c.col*u.tileWidth*p),M=Math.round(c.row*u.tileHeight*p);g={x:A,y:M,width:Math.min(Math.round(u.tileWidth*p),t-A),height:Math.min(Math.round(u.tileHeight*p),e-M)},v=Math.ceil(g.width/p),b=Math.ceil(g.height/p)}return{...c,region:g,url:it(n,g,v,b),fallbackUrl:m?it(n,g,v,b,m):void 0}}}}function be(n,t,e){return!(n.maxWidth&&t>n.maxWidth||n.maxHeight&&e>n.maxHeight||n.maxArea&&t*e>n.maxArea)}function Te(n){const t=new Map;for(const e of n){const i=`${e.width}x${e.height}`,s=t.get(i);(!s||s.cols*s.rows<e.cols*e.rows)&&t.set(i,e)}return[...t.values()]}function Me(n,t){const e=n.levels;for(let i=0;i<e.length;i++)if(e[i].scaleFactor<=t*(1+1e-6))return i;return e.length-1}function T(n,t,e){const i=n.levels[t],s=i.tileWidth*i.scaleFactor,r=i.tileHeight*i.scaleFactor,o=Math.max(0,e.x),a=Math.max(0,e.y),d=Math.min(n.width,e.x+e.width),l=Math.min(n.height,e.y+e.height);if(d<=o||l<=a)return[];const f=Math.max(0,Math.floor(o/s)),m=Math.min(i.cols-1,Math.floor((d-1e-9)/s)),c=Math.max(0,Math.floor(a/r)),u=Math.min(i.rows-1,Math.floor((l-1e-9)/r)),p=[];for(let y=c;y<=u;y++)for(let g=f;g<=m;g++)p.push({level:t,col:g,row:y});return p}async function Ee(n,t){if(n.media)return ke(n,n.media);let e=null,i=null;if(n.service)try{e=ve(await Nt(n.service,t.infoOptions))}catch(c){i=c}if(!e){if(!n.url)throw i??new Error("Image has no source");const c=await t.loadStatic(n.url);t.cache.seed(n.url,c),e=yt(n.url,c.naturalWidth,c.naturalHeight)}const s=n.width&&n.height&&n.width>0&&n.height>0?{width:n.width,height:n.height}:{width:e.width,height:e.height},r=ye(n.region,s.width,s.height)??{x:0,y:0,width:s.width,height:s.height},o=e.width/s.width,a=e.height/s.height,d={x:r.x*o,y:r.y*a,width:r.width*o,height:r.height*a},l=we(n.rotation),f=l?Le(d,l):void 0,m={id:n.id,spec:n,pyramid:e,size:s,clip:d,contentClip:r,rect:{x:0,y:0,width:r.width,height:r.height},...f?{turn:f}:{}};return await t.cache.prefetch(T(e,0,d).map(c=>{const u=e.tile(c);return{url:u.url,fallbackUrl:u.fallbackUrl}})),m}const xt="media:";function ke(n,t){var a,d;const e=n.width||((a=n.placement)==null?void 0:a.width)||t.element.videoWidth||1600,i=n.height||((d=n.placement)==null?void 0:d.height)||t.element.videoHeight||900,s=`${xt}${n.id}`,r={width:e,height:i},o={x:0,y:0,width:e,height:i};return{id:n.id,spec:n,pyramid:yt(s,e,i),media:{kind:"media",source:t.element,width:e,height:i,naturalWidth:e,naturalHeight:i},size:r,clip:o,contentClip:o,rect:{...o}}}function Le(n,{degrees:t,mirror:e}){const i=t*Math.PI/180,s=f=>Math.abs(f)<1e-12?0:f,r=s(Math.cos(i)),o=s(Math.sin(i)),a=Math.abs(n.width*r)+Math.abs(n.height*o),d=Math.abs(n.width*o)+Math.abs(n.height*r),l=k(_(a/2,d/2),{a:r,b:o,c:-o,d:r,e:0,f:0},L(e?-1:1,1),_(-(n.x+n.width/2),-(n.y+n.height/2)));return{orient:l,unorient:Pt(l),width:a,height:d}}function vt(n){var t;return((t=n.turn)==null?void 0:t.orient)??_(-n.clip.x,-n.clip.y)}function _e(n,t){const{turn:e,clip:i}=n;if(!e)return{...t,x:i.x+t.x,y:i.y+t.y};const s=gt(e.unorient,t),r=Math.max(s.x,i.x),o=Math.max(s.y,i.y);return{x:r,y:o,width:Math.max(0,Math.min(s.x+s.width,i.x+i.width)-r),height:Math.max(0,Math.min(s.y+s.height,i.y+i.height)-o)}}function Pe(n,t){const{turn:e,clip:i}=n;return e?pt(e.unorient,t):{x:i.x+t.x,y:i.y+t.y}}function ct(n){const{turn:t,clip:e,contentClip:i}=n;return t?{width:t.width*i.width/e.width,height:t.height*i.height/e.height}:i}function Ae(n){if(!n.length)return null;if(n.every(i=>i.spec.placement)){for(const i of n)i.rect={...i.spec.placement};return mt(n.map(i=>i.rect))}const t=ct(n[0]).height;let e=0;for(const i of n){const s=ct(i),r=s.width*t/s.height;i.rect={x:e,y:0,width:r,height:t},e+=r}return{x:0,y:0,width:e,height:t}}function B(n){const t=n.turn??n.clip;return{x:n.rect.width/t.width,y:n.rect.height/t.height}}function Ie(n){const t=B(n);return k(_(n.rect.x,n.rect.y),L(t.x,t.y),vt(n))}function Se(n,t){var e,i;return n.service===t.service&&n.url===t.url&&n.width===t.width&&n.height===t.height&&n.region===t.region&&n.rotation===t.rotation&&((e=n.media)==null?void 0:e.element)===((i=t.media)==null?void 0:i.element)&&JSON.stringify(n.placement)===JSON.stringify(t.placement)}const Re=1e7,Be=15e6,Oe=2e7,Ce=2;function ze(n){const{items:t,camera:e,viewport:i,pixelRatio:s,getTile:r,destination:o}=n,a=Rt(e,i),d=[],l=[],f=[],m=(c,u,p)=>{const y=c.tile(u);l.push({url:y.url,fallbackUrl:y.fallbackUrl,priority:p})};for(const c of t){const{pyramid:u,clip:p,rect:y}=c,g=B(c);if(n.wantOverview)for(const w of T(u,0,p))m(u,w,Oe);const v=lt(c,e,i,s),b=o?lt(c,o,i,s):v;if(f.push((v==null?void 0:v.target)??-1),!v&&!b)continue;const A=w=>x=>{const P=u.tile(x).region;return Math.hypot(P.x+P.width/2-w.x,P.y+P.height/2-w.y)};if(b){const w=A(b.center);for(const x of T(u,0,b.area))m(u,x,w(x)/1e3);if(b.target>0)for(const x of T(u,b.target,b.area))m(u,x,Re+w(x))}if(!v)continue;const{area:M,target:E}=v,K=A(v.center),O=T(u,0,M),V=E===0?[]:T(u,E,M);if(b!==v){for(const x of O)m(u,x,K(x)/1e3);const w=E-Ce;if(w>0)for(const x of T(u,w,M))m(u,x,Be+K(x))}if(c.spec.hidden)continue;const bt=(E===0?O:V).every(w=>r(u.tile(w).url)!==void 0)?[E]:Array.from({length:E+1},(w,x)=>x),Tt=k(a,_(y.x,y.y),L(g.x,g.y),vt(c));for(const w of bt){const x=w===0?O:w===E?V:T(u,w,M),P=u.levels[w].cols*u.levels[w].rows>1;for(const Mt of x){const C=u.tile(Mt),q=r(C.url);if(!q)continue;const Y=Ue(c,C.region,q,Tt,P);Y&&d.push({...Y,url:C.url})}}}return l.sort((c,u)=>c.priority-u.priority),{draws:d,wants:De(l),levels:f}}function lt(n,t,e,i){const{pyramid:s,rect:r}=n,o=N(t,e);if(!At(o,r))return null;const a=B(n),d=Math.max(o.x,r.x),l=Math.max(o.y,r.y),f=Math.min(o.x+o.width,r.x+r.width),m=Math.min(o.y+o.height,r.y+r.height),c=1/(a.x*t.zoom*i);return{area:_e(n,{x:(d-r.x)/a.x,y:(l-r.y)/a.y,width:(f-d)/a.x,height:(m-l)/a.y}),center:Pe(n,{x:(t.x-r.x)/a.x,y:(t.y-r.y)/a.y}),target:Me(s,c)}}function Ue(n,t,e,i,s){const{clip:r}=n,o=Math.max(t.x,r.x),a=Math.max(t.y,r.y),d=Math.min(t.x+t.width,r.x+r.width),l=Math.min(t.y+t.height,r.y+r.height);if(d<=o||l<=a)return null;const f=e.width/t.width,m=e.height/t.height,c=1e-6;return{item:n,image:e,transform:k(i,_(t.x,t.y),L(1/f,1/m)),crop:{x:(o-t.x)*f,y:(a-t.y)*m,width:(d-o)*f,height:(l-a)*m},bleed:{right:s&&d<r.x+r.width-c,bottom:s&&l<r.y+r.height-c}}}function De(n){const t=new Set;return n.filter(e=>t.has(e.url)?false:(t.add(e.url),true))}const We={maxZoomPixelRatio:1.1,minZoomImageRatio:.9,animationTime:.09,animationDuration:void 0,springStiffness:6.5,constrainDuringPan:true,request:void 0,byteBudget:192*1024*1024,maxInFlight:6,releaseAfterMs:2e3},Fe=2,He=3,Ne=.1,F=1e-6,Z={top:0,right:0,bottom:0,left:0};function dt(n,t="padding"){if(!n||typeof getComputedStyle!="function")return Z;const e=getComputedStyle(n),i=s=>parseFloat(e.getPropertyValue(`${t}-${s}`))||0;return{top:i("top"),right:i("right"),bottom:i("bottom"),left:i("left")}}const Ge=(n,t)=>n.top===t.top&&n.right===t.right&&n.bottom===t.bottom&&n.left===t.left;let Xe;class Ze{constructor(t,e={}){h(this,"host");h(this,"overlays",null);h(this,"options");h(this,"backend",null);h(this,"backendPreference");h(this,"contextLosses",0);h(this,"holder",{hiddenSince:null,release:()=>this.giveBack()});h(this,"visible",true);h(this,"dom",null);h(this,"domAsked",false);h(this,"pending",null);h(this,"camera");h(this,"loop");h(this,"gestures");h(this,"gestureOptions",{});h(this,"cache");h(this,"navigator",null);h(this,"navigatorAsked",0);h(this,"viewport",{width:1,height:1});h(this,"inset",Z);h(this,"pixelRatio",1);h(this,"items",[]);h(this,"worldBounds",null);h(this,"contentVersion",0);h(this,"opaqueUrls",new Set);h(this,"mediaByKey",new Map);h(this,"detachMedia",[]);h(this,"opened",false);h(this,"atHome",true);h(this,"interacting",false);h(this,"lastEmitted",null);h(this,"generation",0);h(this,"listeners",new Map);h(this,"unloadable",false);h(this,"resizeObserver",null);h(this,"intersectionObserver",null);h(this,"releaseTimer",null);h(this,"dprQuery",null);h(this,"disposed",false);h(this,"dismisser",null);h(this,"tick",t2=>{var d,l;if(this.disposed)return false;const e2=this.camera.step(t2,this.viewport),i2=this.camera.current,s2=this.backend,r=ge(this.getTile,f=>s2?s2.has(f):true),o=ze({items:this.items,camera:i2,viewport:this.viewport,pixelRatio:this.pixelRatio,getTile:r.getTile,wantOverview:!!this.navigator,destination:e2?this.camera.destination:void 0}),a=o.wants.filter(f=>!f.url.startsWith(xt));return this.cache.update(a),o.draws.length?this.setUnloadable(false):a.length&&a.every(f=>this.cache.failed(f.url))&&this.setUnloadable(true),this.paint(o.draws),(d=this.overlays)==null||d.position(i2,this.viewport),(l=this.navigator)==null||l.render(this.items.filter(f=>!f.spec.hidden),this.worldBounds,N(i2,this.viewport),this.pixelRatio,this.getTile,this.contentVersion),(!this.lastEmitted||!j(this.lastEmitted,i2))&&(this.lastEmitted={...i2},this.opened&&this.emit("viewport")),e2||r.deferred});h(this,"getTile",t2=>this.mediaByKey.get(t2)??this.cache.get(t2));h(this,"onContextLost",()=>{this.contextLosses+=1,this.releaseBackend(),this.visible?this.acquireBackend(false):this.host.dataset.backend="released"});h(this,"onPixelRatioChange",()=>{this.measure(),this.watchPixelRatio()});this.host=t,this.backendPreference=e.backend??"auto",this.options={...We,...H(e)},ft()&&(this.options.animationTime=0,this.options.animationDuration!==void 0&&(this.options.animationDuration=0));const{animationDuration:i,springStiffness:s}=this.options;this.camera=new jt({x:0,y:0,zoom:1,rotation:0},this.options.animationTime,i===void 0?void 0:{duration:i,stiffness:s}),this.loop=new me(this.tick),this.gestureOptions=H(e.gestures??{}),ft()&&(this.gestureOptions.flickMomentum=0),this.gestures=new ie(t,this,{...G,...this.gestureOptions}),this.cache=new de({load:(r,o)=>this.loadTile(r,o),onSettled:()=>{this.contentVersion++,this.invalidate()},onEvict:r=>{var o;return(o=this.backend)==null?void 0:o.release(r)},byteBudget:this.options.byteBudget,maxInFlight:this.options.maxInFlight}),this.visible=Ke(t),this.visible?this.acquireBackend():this.holder.hiddenSince=ut(),this.measure(),this.observe()}get backendKind(){var t;return((t=this.backend)==null?void 0:t.kind)??"none"}get isOpen(){return this.opened}get isAtHome(){return this.atHome}on(t,e){let i=this.listeners.get(t);return i||(i=new Set,this.listeners.set(t,i)),i.add(e),()=>i==null?void 0:i.delete(e)}async setImages(t,{world:e,fit:i=false}={}){const s=++this.generation,r=new Map(this.items.map(f=>[f.id,f])),o=await Promise.allSettled(t.map(f=>{const m=r.get(f.id);return m&&Se(m.spec,f)?(m.spec=f,Promise.resolve(m)):Ee(f,{cache:this.cache,loadStatic:c=>this.loadTile(c),infoOptions:{request:this.options.request}})}));if(s!==this.generation||this.disposed)return;const a=o.filter(f=>f.status==="fulfilled").map(f=>f.value),d=o.filter(f=>f.status==="rejected").map(f=>f.reason);this.items=a,this.watchMedia(a);const l=Ae(a);if(this.worldBounds=e?l?mt([e,l]):e:l,this.contentVersion++,d.length&&this.emit("error",d),this.setUnloadable(t.length>0&&!a.length&&d.length>0),!this.worldBounds){this.invalidate();return}this.opened?i?(this.home(true),this.emit("change")):(this.camera.set(this.constrain(this.camera.current)),this.emit("change")):(this.opened=true,this.home(true),this.emit("open")),this.invalidate()}clear(){this.setUnloadable(false),this.generation++,this.items=[],this.watchMedia([]),this.worldBounds=null,this.contentVersion++,this.invalidate()}setHidden(t){const e=new Set(t);let i=false;for(const s of this.items){const r=e.has(s.id);!!s.spec.hidden!==r&&(s.spec={...s.spec,hidden:r},i=true)}i&&this.invalidate()}isReady(t){const e=this.items.find(s=>s.id===t);if(!e)return false;if(e.spec.media)return true;const i=e.pyramid.levels[0];if(!i)return false;for(let s=0;s<i.rows;s++)for(let r=0;r<i.cols;r++)if(!this.getTile(e.pyramid.tile({level:0,col:r,row:s}).url))return false;return true}fitBounds(t,e=false,i=Z){const s=this.fit(t,this.camera.destination.rotation,i);this.atHome=false,this.animateTo(this.constrain(s,{allowBeyondLimits:true}),e)}fit(t,e,{top:i,right:s,bottom:r,left:o}){const{width:a,height:d}=this.viewport,{zoom:l}=Bt(t,{width:Math.max(1,a-o-s),height:Math.max(1,d-i-r)},e);return{...S(It(t),{x:(a+o-s)/2,y:(d+i-r)/2},l,e,this.viewport),zoom:l,rotation:e}}fitItemRect(t,e,i=false){const s=this.itemRectToWorld(t,e);s&&this.fitAnnotation(s,i)}fitAnnotation(t,e=false){var r;const i=this.items[0];if(!i)return;const s=i.rect.width*Ne;this.fitBounds({x:t.x-s,y:t.y-s,width:t.width+s*2,height:t.height+s*2},e,dt((r=this.overlays)==null?void 0:r.container,"scroll-padding"))}getBounds(){return N(this.camera.current,this.viewport)}getHomeBounds(){return this.worldBounds?{...this.worldBounds}:null}getCamera(){return{...this.camera.current}}getZoomLimits(){var i;const t=((i=this.homeCamera())==null?void 0:i.zoom)??1,e=this.items.length?Math.min(...this.items.map(s=>B(s).x)):1;return{home:t,min:t*this.options.minZoomImageRatio,max:Math.max(t,this.options.maxZoomPixelRatio/e)}}home(t=false){const e=this.homeCamera();if(!e)return;const i=this.atHome;this.atHome=true,this.animateTo(e,t),!i&&this.opened&&this.emit("viewport")}atMaxZoom(){return this.camera.destination.zoom>=this.getZoomLimits().max*(1-F)}viewLimits(){const{zoom:t,x:e,y:i,rotation:s}=this.camera.destination,{min:r,max:o}=this.getZoomLimits(),a=this.atHome?this.homeCamera():null;return{atMax:t>=o*(1-F),atMin:t<=r*(1+F),atHome:this.atHome&&(!a||Math.abs(t/a.zoom-1)<.001&&Math.hypot(e-a.x,i-a.y)*t<.5&&Math.abs(s-a.rotation)<.001)}}zoomBy(t,e,i=true){const s=i?this.camera.destination:this.camera.current,r=e??{x:this.viewport.width/2,y:this.viewport.height/2},o=Q(s,this.viewport,r),{min:a,max:d}=this.getZoomLimits(),l=I(s.zoom*t,a,d),f=S(o,r,l,s.rotation,this.viewport),m=this.constrain({...s,...f,zoom:l});this.atHome=false,i?this.camera.animateTo({state:m,anchor:{world:o,screen:r}},this.viewport):this.camera.set(m),this.invalidate()}panBy(t,e,i=false){const s=i?this.camera.destination:this.camera.current,r=pt(k(L(1/s.zoom),St(-s.rotation)),{x:t,y:e}),o=this.constrain({...s,x:s.x-r.x,y:s.y-r.y});this.atHome=false,i?this.camera.animateTo({state:o},this.viewport):this.camera.set(o),this.invalidate()}panTo(t,e=false){const i=e?this.camera.current:this.camera.destination;this.atHome=false,this.animateTo(this.constrain({...i,...t}),e)}rotateBy(t){const e=this.camera.destination;this.setRotation(e.rotation*180/Math.PI+t)}setRotation(t,e=false){const i=this.camera.destination,s=t*Math.PI/180;this.animateTo(this.constrain({...i,rotation:s}),e)}getRotation(){return this.camera.destination.rotation*180/Math.PI}tap(t){this.emit("tap",t)}setDismiss(t){this.dismisser=t}dismiss(){var t;return((t=this.dismisser)==null?void 0:t.call(this))??false}setGestures(t){this.gestures.setOptions({...G,...this.gestureOptions,...H(t)})}setInteracting(t){if(this.interacting=t,t){this.camera.stop();return}if(this.options.constrainDuringPan)return;const e=this.camera.destination,i=this.constrain(e);j(e,i)||this.animateTo(i,false)}worldToScreenPoint(t){return Ot(this.camera.current,this.viewport,t)}screenToWorldPoint(t){return Q(this.camera.current,this.viewport,t)}itemRectToWorld(t,e){const i=this.items[t];if(!i)return null;const{contentClip:s,clip:r}=i;if(i.turn)return gt(k(Ie(i),L(r.width/s.width,r.height/s.height)),e);const o=i.rect.width/s.width,a=i.rect.height/s.height;return{x:i.rect.x+(e.x-s.x)*o,y:i.rect.y+(e.y-s.y)*a,width:e.width*o,height:e.height*a}}attachNavigator(t){var r;(r=this.navigator)==null||r.dispose(),this.navigator=null;const e=++this.navigatorAsked;let i=null,s=false;return import("./Navigator-9n2yLQdc.mjs").then(o=>{s||this.disposed||e!==this.navigatorAsked||(i=new o.Navigator(t,(a,d)=>this.panTo(a,d)),this.navigator=i,this.invalidate())}),()=>{s=true,i==null||i.dispose(),i&&this.navigator===i&&(this.navigator=null)}}invalidate(){this.loop.invalidate()}dispose(){var t,e,i,s,r,o,a;this.disposed||(this.disposed=true,this.generation++,this.loop.dispose(),this.gestures.dispose(),(t=this.resizeObserver)==null||t.disconnect(),(e=this.intersectionObserver)==null||e.disconnect(),(s=(i=this.dprQuery)==null?void 0:i.removeEventListener)==null||s.call(i,"change",this.onPixelRatioChange),this.releaseTimer&&clearTimeout(this.releaseTimer),(r=this.navigator)==null||r.dispose(),this.navigator=null,this.releaseBackend(),this.cache.dispose(),(o=this.dom)==null||o.dispose(),(a=this.overlays)==null||a.dispose(),this.items=[],this.detachMedia.forEach(d=>d()),this.mediaByKey.clear(),this.listeners.clear(),delete this.host.dataset.backend)}watchMedia(t){this.detachMedia.forEach(e=>e()),this.detachMedia=[],this.mediaByKey.clear();for(const e of t){if(!e.media||e.media.kind!=="media")continue;const i=e.pyramid.tile({level:0,col:0,row:0}).url;this.mediaByKey.set(i,e.media);const s=e.media.source,r=()=>this.invalidate(),o=["play","seeked","loadeddata","resize"];o.forEach(a=>s.addEventListener(a,r)),this.detachMedia.push(()=>o.forEach(a=>s.removeEventListener(a,r)))}}paint(t){const e=this.backend,i=[],s=(e==null?void 0:e.kind)==="webgl2";e==null||e.begin();for(const r of t){const{image:o}=r;if(!(o.kind==="media"||o.kind==="element"&&s&&(o.opaque||this.opaqueUrls.has(r.url)))&&e){if(e.draw({key:r.url,source:o.source,width:o.width,height:o.height,transform:r.transform,crop:r.crop,opacity:1,bleed:r.bleed})!=="tainted"||o.kind==="bitmap")continue;this.opaqueUrls.add(r.url)}(o.kind==="element"||o.kind==="media")&&i.push({key:`${r.item.id}|${r.url}`,element:o.source,width:o.width,height:o.height,transform:r.transform,crop:r.crop,opacity:1})}e==null||e.end(),this.dom?this.dom.sync(i):i.length&&!this.domAsked&&(this.domAsked=true,import("./DomLayers-DDRNVemT.mjs").then(({DomLayers:r})=>{if(this.disposed)return;const o=new r(this.host);this.overlays&&this.host.insertBefore(o.container,this.overlays.container),this.dom=o,this.invalidate()}))}loadTile(t,e){return ne(t,{signal:e,request:this.options.request,maxTextureSize:this.backend instanceof R?this.backend.maxTextureSize:void 0})}animateTo(t,e){this.camera.animateTo({state:t},this.viewport,e),this.invalidate()}homeCamera(){if(!this.worldBounds)return null;const t=2*Math.PI,e=Math.round(this.camera.destination.rotation/t)*t||0;return this.fit(this.worldBounds,e,this.inset)}constrain(t,{allowBeyondLimits:e=false}={}){const i=this.worldBounds;if(!i)return t;const{min:s,max:r}=this.getZoomLimits(),o=e?I(t.zoom,s,Math.max(r,t.zoom)):I(t.zoom,s,r);return this.interacting&&!this.options.constrainDuringPan?{...t,zoom:o}:{...t,zoom:o,x:I(t.x,i.x,i.x+i.width),y:I(t.y,i.y,i.y+i.height)}}acquireBackend(t=true){var r,o;if(this.backend||this.pending||this.disposed)return;const e=document.createElement("canvas");e.className="clover-canvas-surface",e.setAttribute("aria-hidden","true"),Object.assign(e.style,{position:"absolute",inset:"0",width:"100%",height:"100%",display:"block",pointerEvents:"none"}),this.host.insertBefore(e,((r=this.dom)==null?void 0:r.container)??((o=this.overlays)==null?void 0:o.container)??null);const i=t&&(this.backendPreference==="webgl2"||this.backendPreference==="auto"&&this.contextLosses<He);let s=null;i&&(Lt(this.holder)||this.backendPreference==="webgl2")&&(s=R.create(e,{onLost:this.onContextLost}),s||$(this.holder)),s?this.install(s):this.backendPreference==="webgl2"?this.none(e):(this.pending=e,(Xe??(Xe=import("./Canvas2DBackend-U4BLi8EN.mjs"))).then(({Canvas2DBackend:a})=>{if(this.pending!==e)return;this.pending=null;const d=a.create(e);d?this.install(d):this.none(e)}))}none(t){t.remove(),this.host.dataset.backend="none"}install(t){this.backend=t,this.host.dataset.backend=t.kind,t.resize(this.viewport.width,this.viewport.height,this.pixelRatio),t.kind==="canvas2d"&&this.opaqueUrls.clear(),this.emit("backend",t.kind),this.invalidate()}releaseBackend(){var e;if($(this.holder),(e=this.pending)==null||e.remove(),this.pending=null,!this.backend)return;const t=this.backend.canvas;this.backend.dispose(),t.remove(),this.backend=null}giveBack(){this.releaseTimer&&clearTimeout(this.releaseTimer),this.releaseTimer=null,this.releaseBackend(),this.host.dataset.backend="released"}observe(){typeof ResizeObserver<"u"&&(this.resizeObserver=new ResizeObserver(()=>this.measure(true)),this.resizeObserver.observe(this.host)),typeof IntersectionObserver<"u"&&(this.intersectionObserver=new IntersectionObserver(t=>{const e=t.some(i=>i.isIntersecting);this.setVisible(e)}),this.intersectionObserver.observe(this.host)),this.watchPixelRatio()}setVisible(t){var e;if(this.visible=t,t){this.holder.hiddenSince=null,this.releaseTimer&&clearTimeout(this.releaseTimer),this.releaseTimer=null,this.backend||this.acquireBackend();return}(e=this.holder).hiddenSince??(e.hiddenSince=ut()),!(!this.backend||this.releaseTimer)&&(this.releaseTimer=setTimeout(()=>this.giveBack(),this.options.releaseAfterMs))}measure(t=false){var d;const e=this.host.getBoundingClientRect(),i=Math.max(1,e.width),s=Math.max(1,e.height),r=dt(this.host),o=Math.min(typeof window<"u"&&window.devicePixelRatio||1,Fe);if(i===this.viewport.width&&s===this.viewport.height&&o===this.pixelRatio&&Ge(r,this.inset))return;const a=this.viewport;if(this.viewport={width:i,height:s},this.inset=r,this.pixelRatio=o,(d=this.backend)==null||d.resize(i,s,o),this.opened){if(this.atHome)this.home(true);else{const l=this.camera.current,f=i/Math.max(a.width,1);this.camera.set(this.constrain({...l,zoom:l.zoom*f}))}this.emit("viewport")}t?this.loop.drawNow():this.invalidate()}watchPixelRatio(){var t,e,i,s;typeof window>"u"||typeof window.matchMedia!="function"||((e=(t=this.dprQuery)==null?void 0:t.removeEventListener)==null||e.call(t,"change",this.onPixelRatioChange),this.dprQuery=window.matchMedia(`(resolution: ${window.devicePixelRatio||1}dppx)`),(s=(i=this.dprQuery).addEventListener)==null||s.call(i,"change",this.onPixelRatioChange))}setUnloadable(t){t!==this.unloadable&&(this.unloadable=t,this.emit("unloadable",t))}emit(t,e){var i;(i=this.listeners.get(t))==null||i.forEach(s=>s(e))}}const ut=()=>typeof performance<"u"?performance.now():Date.now();function Ke(n){if(typeof IntersectionObserver>"u"||typeof window>"u")return true;const{top:t,left:e,width:i,height:s}=n.getBoundingClientRect();return t+s>=0&&e+i>=0&&t<=window.innerHeight&&e<=window.innerWidth}function ft(){return typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}function H(n){return Object.fromEntries(Object.entries(n).filter(([,t])=>t!==void 0))}const ii=(n,t)=>new Ze(n,t);export{Xt as b,Gt as h,ze as p,ii as r};
@@ -1 +0,0 @@
1
- import{x as n,Z as o,Q as r}from"./shared-BmkV0s_d.mjs";const t=(s,a)=>a==="canvas"?o(s.manifest,s.canvasId):s.manifest,e=r(null),i=()=>n(e);export{e as P,t as r,i as u};
@@ -1 +0,0 @@
1
- var Ko=Object.defineProperty;var Go=(e,t,n)=>t in e?Ko(e,t,{enumerable:true,configurable:true,writable:true,value:n}):e[t]=n;var oe=(e,t,n)=>Go(e,typeof t!="symbol"?t+"":t,n);import{a as Ce}from"./index-BkADsP3U.mjs";const Zo=JSON.parse('{"commonClose":"Close","commonNext":"Next","commonPrevious":"Previous","commonSearch":"Search","commonViewAll":"View all","controlShortcut":"{{label}} ({{shortcut}})","contentSearchLoading":"Loading...","contentSearchPlaceholder":"Search","contentSearchResultsNone":"No results","contentSearchResult":"1 result","contentSearchResults":"{{count}} results","contentSearchError":"The search could not be completed.","contentSearchPosition":"Result {{index}} of {{total}}","contentSearchClear":"Clear search","canvasPosition":"Item {{index}} of {{total}}","canvasImage":"Image","bodyUnloadableImage":"This image could not be loaded.","bodyUnloadableVideo":"This video could not be loaded.","bodyUnloadableAudio":"This audio could not be loaded.","bodyUnloadableModel":"This model could not be loaded.","canvasRoleDescription":"zoomable image","canvasKeysImage":"Use the arrow keys to pan, with Shift for larger steps, plus and minus to zoom, 0 to reset the view, and R or Shift+R to rotate.","canvasKeysMedia":"Press Space or K to play or pause, J or L to skip ten seconds back or forward, and M to mute or unmute.","canvasKeysAnnotations":"Press Escape to clear the selected annotation.","sceneModel":"3D model","sceneRoleDescription":"rotatable 3D model","sceneKeys":"Use the arrow keys to rotate the model, with Shift for larger steps, plus and minus to zoom, 0 to reset the view, and R or Shift+R to rotate it right or left.","sceneRotateUp":"Rotate up","sceneRotateDown":"Rotate down","sceneRotate":"Rotate","sceneResetView":"Reset view","statusLoading":"Loading\u2026","statusError":"This could not be loaded.","itemsLabel":"Items","download":"Download","downloadPage":"This page","downloadAll":"All pages","templateSidebar":"Items","templateSidebarToggle":"Show items","templateBack":"Back","templateBackTo":"Back to {{label}}","collectionLabel":"Collection","itemsScrollBack":"Show previous items","itemsScrollForward":"Show more items","aboutRights":"Rights","aboutDate":"Date","aboutHomepage":"Homepage","aboutSeeAlso":"See also","aboutProvider":"Provider","logo":"Logo","aboutManifest":"IIIF Manifest","aboutCanvas":"IIIF Canvas","aboutPartOf":"Part of","aboutOpenManifest":"Open the full Manifest","aboutCollection":"IIIF Collection","readingLanguage":"Language","annotationsHide":"Hide annotations","annotationsHideTip":"Hide","readMore":"Read more","readLess":"Read less","annotationsShow":"Find on the image","annotationsShowTime":"Find in the recording","annotationsImage":"Image","annotationsLanguage":"Language","annotationsOpenLink":"Open the link","transcriptLabel":"Transcript","imageViewerOpen":"Open image viewer","imageViewerClose":"Close image viewer","canvasChoice":"Choice","canvasViewerControls":"Viewer controls","canvasExpandControls":"Expand viewer controls","canvasCollapseControls":"Collapse viewer controls","canvasScrollBack":"Show previous controls","canvasScrollForward":"Show more controls","imageFullScreen":"Full screen","imageExitFullScreen":"Exit full screen","imageResetZoom":"Reset zoom","imageRotateLeft":"Rotate left","imageRotateRight":"Rotate right","imageZoomIn":"Zoom in","imageZoomOut":"Zoom out","informationPanelTabs":"Information panel","sectionsScrollBack":"Show previous tabs","sectionsScrollForward":"Show more tabs","informationPanelClose":"Close information panel","informationPanelTabsAbout":"About","informationPanelTabsAnnotations":"Annotations","informationPanelTabsSearch":"Search","informationPanelTabsContents":"Contents","contentsSectionsIn":"Sections in","informationPanelTabsMap":"Map","informationPanelTabsCollection":"Collection","informationPanelTabsTargets":"Views","mapUnavailable":"The map could not be shown.","mapLabel":"Map","mapAttribution":"Map credits","mapPlaceUntitled":"Place {{number}}","mapOverlay":"Georeferenced image","mapPlacesListed":"Places listed after the map: {{count}}","informationPanelToggle":"More information","playerPlay":"Play","playerPause":"Pause","playerMute":"Mute","playerUnmute":"Unmute","playerVolume":"Volume","playerSeek":"Seek","playerCaptions":"Captions","playerCaptionsOff":"Off","playerChapters":"Chapters","playerFill":"Fill frame","playerFit":"Fit to frame","frameRepeat":"Repeat","playerCurrentTime":"Current time","playerDuration":"Duration","splitHandle":"Resize panels"}'),Dn={es:()=>import("./es-B1NvdYp-.mjs"),fi:()=>import("./fi-BjtYZNLo.mjs"),fr:()=>import("./fr-Cd22Lziw.mjs"),nb:()=>import("./nb-CEwZDBiR.mjs"),nn:()=>import("./nn-jYQhr9RI.mjs"),no:()=>import("./no-CEwZDBiR.mjs"),pt:()=>import("./pt-CWR30SzS.mjs")};function jn(){const e=[];return typeof document<"u"&&e.push(document.documentElement.lang),typeof navigator<"u"&&e.push(...navigator.languages??[],navigator.language),e.filter(Boolean)}const Ze=e=>e.split("-")[0];function Yo(e,t){return Ze(e).toLowerCase()===Ze(t).toLowerCase()}const ot=e=>e.includes("-")?Ze(e):null;function Xo(e,t,n=[]){if(!t.length)return;if(t.length===1)return t[0];const o=()=>t.includes("none")?"none":t.includes("@none")?"@none":t[0];if(!e)return t.includes("none")?"none":t[0];if(t.includes(e))return e;const r=ot(e);if(r&&t.includes(r))return r;const s=n.find(a=>t.includes(a));if(s)return s;const i=t.findIndex(a=>ot(a)===e);if(i!==-1)return t[i];for(const a of n){const c=ot(a);if(c&&t.includes(c))return c}return o()}function Qo(e,t){const[n,...o]=t?[t]:jn();return Xo(n,e,o)??e[0]}const K="clover",J={en:{[K]:{...Zo}}};let ye,Bn=[],Ye=0;const ft=new Set;function Ct(){Ye++,ft.forEach(e=>e())}function er(e){const t=Ze(e);return t&&t!==e?[e,t]:[e]}const Vt=new Map,tr=e=>Object.prototype.hasOwnProperty.call(Dn,e);function nr(e){let t=Vt.get(e);return t||(t=Dn[e]().then(({default:n})=>{var o;J[e]={...J[e],[K]:{...n,...(o=J[e])==null?void 0:o[K]}},Ct()},()=>{}),Vt.set(e,t)),t}function Wn(e){const t=e.find(n=>n==="en"||tr(n));return t&&t!=="en"?nr(t):Promise.resolve()}let We=[],zt="";function Ie(){const e=ye?`${Ye}`:`${Ye} ${typeof document<"u"?document.documentElement.lang:""} ${typeof navigator<"u"?navigator.languages:""}`;if(e===zt)return We;zt=e;const t=ye?[ye]:jn();return We=[...new Set([...t,...Bn].flatMap(er).concat("en"))],Wn(We),We}function Vn(e,t){if(e)return Yo(e,t||j.resolvedLanguage)?void 0:e}const j={get language(){return ye??Ie().find(e=>J[e])??"en"},get resolvedLanguage(){return Ie().find(e=>{var t;return Object.keys(((t=J[e])==null?void 0:t[K])??{}).length>0})??"en"},changeLanguage(e){ye=e,Ct()},resolve(e,t,n=K){var r,s;let o={text:e};for(const i of Ie()){const a=(s=(r=J[i])==null?void 0:r[n])==null?void 0:s[e];if(a!==void 0){o={text:a,lang:i};break}}return t?{...o,text:o.text.replace(/\{\{(\w+)\}\}/g,(i,a)=>a in t?String(t[a]):i)}:o},t(e,t,n=K){return j.resolve(e,t,n).text},langOf(e,t,n=K){return Vn(j.resolve(e,void 0,n).lang,t)},ready(){return Wn(Ie())},subscribe(e){return ft.add(e),()=>{ft.delete(e)}},getSnapshot(){return Ye}};typeof document<"u"&&Ie();function or(e={}){for(const[t,n]of Object.entries(e.resources??{}))for(const[o,r]of Object.entries(n??{}))J[t]??(J[t]={}),J[t][o]={...J[t][o],...r};return e.fallbackLng!==void 0&&(Bn=e.fallbackLng===false?[]:[e.fallbackLng].flat()),e.lng&&(ye=e.lng),Ct(),j}const yi=Object.freeze(Object.defineProperty({__proto__:null,CLOVER_I18N_NAMESPACE:K,cloverI18n:j,initCloverI18n:or,langWithin:Vn},Symbol.toStringTag,{value:"Module"}));var Re,w,zn,de,qt,qn,Jn,Kn,xt,dt,_t,Gn,Te={},Zn=[],rr=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Le=Array.isArray;function Q(e,t){for(var n in t)e[n]=t[n];return e}function kt(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function se(e,t,n){var o,r,s,i={};for(s in t)s=="key"?o=t[s]:s=="ref"?r=t[s]:i[s]=t[s];if(arguments.length>2&&(i.children=arguments.length>3?Re.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)i[s]===void 0&&(i[s]=e.defaultProps[s]);return Ae(e,i,o,r,null)}function Ae(e,t,n,o,r){var s={type:e,props:t,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:r??++zn,__i:-1,__u:0};return r==null&&w.vnode!=null&&w.vnode(s),s}function sr(){return{current:null}}function Z(e){return e.children}function G(e,t){this.props=e,this.context=t}function be(e,t){if(t==null)return e.__?be(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?be(e):null}function Yn(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Yn(e)}}function pt(e){(!e.__d&&(e.__d=true)&&de.push(e)&&!Xe.__r++||qt!=w.debounceRendering)&&((qt=w.debounceRendering)||qn)(Xe)}function Xe(){for(var e,t,n,o,r,s,i,a=1;de.length;)de.length>a&&de.sort(Jn),e=de.shift(),a=de.length,e.__d&&(n=void 0,o=void 0,r=(o=(t=e).__v).__e,s=[],i=[],t.__P&&((n=Q({},o)).__v=o.__v+1,w.vnode&&w.vnode(n),Ot(t.__P,n,o,t.__n,t.__P.namespaceURI,32&o.__u?[r]:null,s,r??be(o),!!(32&o.__u),i),n.__v=o.__v,n.__.__k[n.__i]=n,eo(s,n,i),o.__e=o.__=null,n.__e!=r&&Yn(n)));Xe.__r=0}function Xn(e,t,n,o,r,s,i,a,c,l,d){var u,_,v,m,P,k,C,b=o&&o.__k||Zn,S=t.length;for(c=ir(n,t,b,c,S),u=0;u<S;u++)(v=n.__k[u])!=null&&(_=v.__i==-1?Te:b[v.__i]||Te,v.__i=u,k=Ot(e,v,_,r,s,i,a,c,l,d),m=v.__e,v.ref&&_.ref!=v.ref&&(_.ref&&Pt(_.ref,null,v),d.push(v.ref,v.__c||m,v)),P==null&&m!=null&&(P=m),(C=!!(4&v.__u))||_.__k===v.__k?c=Qn(v,c,e,C):typeof v.type=="function"&&k!==void 0?c=k:m&&(c=m.nextSibling),v.__u&=-7);return n.__e=P,c}function ir(e,t,n,o,r){var s,i,a,c,l,d=n.length,u=d,_=0;for(e.__k=new Array(r),s=0;s<r;s++)(i=t[s])!=null&&typeof i!="boolean"&&typeof i!="function"?(c=s+_,(i=e.__k[s]=typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?Ae(null,i,null,null,null):Le(i)?Ae(Z,{children:i},null,null,null):i.constructor==null&&i.__b>0?Ae(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,a=null,(l=i.__i=ar(i,n,c,u))!=-1&&(u--,(a=n[l])&&(a.__u|=2)),a==null||a.__v==null?(l==-1&&(r>d?_--:r<d&&_++),typeof i.type!="function"&&(i.__u|=4)):l!=c&&(l==c-1?_--:l==c+1?_++:(l>c?_--:_++,i.__u|=4))):e.__k[s]=null;if(u)for(s=0;s<d;s++)(a=n[s])!=null&&!(2&a.__u)&&(a.__e==o&&(o=be(a)),no(a,a));return o}function Qn(e,t,n,o){var r,s;if(typeof e.type=="function"){for(r=e.__k,s=0;r&&s<r.length;s++)r[s]&&(r[s].__=e,t=Qn(r[s],t,n,o));return t}e.__e!=t&&(o&&(t&&e.type&&!t.parentNode&&(t=be(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function re(e,t){return t=t||[],e==null||typeof e=="boolean"||(Le(e)?e.some(function(n){re(n,t)}):t.push(e)),t}function ar(e,t,n,o){var r,s,i,a=e.key,c=e.type,l=t[n],d=l!=null&&(2&l.__u)==0;if(l===null&&e.key==null||d&&a==l.key&&c==l.type)return n;if(o>(d?1:0)){for(r=n-1,s=n+1;r>=0||s<t.length;)if((l=t[i=r>=0?r--:s++])!=null&&!(2&l.__u)&&a==l.key&&c==l.type)return i}return-1}function Jt(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||rr.test(t)?n:n+"px"}function Ve(e,t,n,o,r){var s,i;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof o=="string"&&(e.style.cssText=o=""),o)for(t in o)n&&t in n||Jt(e.style,t,"");if(n)for(t in n)o&&n[t]==o[t]||Jt(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")s=t!=(t=t.replace(Kn,"$1")),i=t.toLowerCase(),t=i in e||t=="onFocusOut"||t=="onFocusIn"?i.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?o?n.u=o.u:(n.u=xt,e.addEventListener(t,s?_t:dt,s)):e.removeEventListener(t,s?_t:dt,s);else{if(r=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===false&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Kt(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=xt++;else if(t.t<n.u)return;return n(w.event?w.event(t):t)}}}function Ot(e,t,n,o,r,s,i,a,c,l){var d,u,_,v,m,P,k,C,b,S,I,M,F,ie,B,Y,X,H=t.type;if(t.constructor!=null)return null;128&n.__u&&(c=!!(32&n.__u),s=[a=t.__e=n.__e]),(d=w.__b)&&d(t);e:if(typeof H=="function")try{if(C=t.props,b="prototype"in H&&H.prototype.render,S=(d=H.contextType)&&o[d.__c],I=d?S?S.props.value:d.__:o,n.__c?k=(u=t.__c=n.__c).__=u.__E:(b?t.__c=u=new H(C,I):(t.__c=u=new G(C,I),u.constructor=H,u.render=lr),S&&S.sub(u),u.props=C,u.state||(u.state={}),u.context=I,u.__n=o,_=u.__d=true,u.__h=[],u._sb=[]),b&&u.__s==null&&(u.__s=u.state),b&&H.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Q({},u.__s)),Q(u.__s,H.getDerivedStateFromProps(C,u.__s))),v=u.props,m=u.state,u.__v=t,_)b&&H.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),b&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(b&&H.getDerivedStateFromProps==null&&C!==v&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(C,I),!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(C,u.__s,I)===false||t.__v==n.__v){for(t.__v!=n.__v&&(u.props=C,u.state=u.__s,u.__d=false),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(W){W&&(W.__=t)}),M=0;M<u._sb.length;M++)u.__h.push(u._sb[M]);u._sb=[],u.__h.length&&i.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(C,u.__s,I),b&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(v,m,P)})}if(u.context=I,u.props=C,u.__P=e,u.__e=false,F=w.__r,ie=0,b){for(u.state=u.__s,u.__d=false,F&&F(t),d=u.render(u.props,u.state,u.context),B=0;B<u._sb.length;B++)u.__h.push(u._sb[B]);u._sb=[]}else do u.__d=false,F&&F(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++ie<25);u.state=u.__s,u.getChildContext!=null&&(o=Q(Q({},o),u.getChildContext())),b&&!_&&u.getSnapshotBeforeUpdate!=null&&(P=u.getSnapshotBeforeUpdate(v,m)),Y=d,d!=null&&d.type===Z&&d.key==null&&(Y=to(d.props.children)),a=Xn(e,Le(Y)?Y:[Y],t,n,o,r,s,i,a,c,l),u.base=t.__e,t.__u&=-161,u.__h.length&&i.push(u),k&&(u.__E=u.__=null)}catch(W){if(t.__v=null,c||s!=null)if(W.then){for(t.__u|=c?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;s[s.indexOf(a)]=null,t.__e=a}else{for(X=s.length;X--;)kt(s[X]);vt(t)}else t.__e=n.__e,t.__k=n.__k,W.then||vt(t);w.__e(W,t,n)}else s==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):a=t.__e=cr(n.__e,t,n,o,r,s,i,c,l);return(d=w.diffed)&&d(t),128&t.__u?void 0:a}function vt(e){e&&e.__c&&(e.__c.__e=true),e&&e.__k&&e.__k.forEach(vt)}function eo(e,t,n){for(var o=0;o<n.length;o++)Pt(n[o],n[++o],n[++o]);w.__c&&w.__c(t,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(s){s.call(r)})}catch(s){w.__e(s,r.__v)}})}function to(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Le(e)?e.map(to):Q({},e)}function cr(e,t,n,o,r,s,i,a,c){var l,d,u,_,v,m,P,k=n.props,C=t.props,b=t.type;if(b=="svg"?r="http://www.w3.org/2000/svg":b=="math"?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),s!=null){for(l=0;l<s.length;l++)if((v=s[l])&&"setAttribute"in v==!!b&&(b?v.localName==b:v.nodeType==3)){e=v,s[l]=null;break}}if(e==null){if(b==null)return document.createTextNode(C);e=document.createElementNS(r,b,C.is&&C),a&&(w.__m&&w.__m(t,s),a=false),s=null}if(b==null)k===C||a&&e.data==C||(e.data=C);else{if(s=s&&Re.call(e.childNodes),k=n.props||Te,!a&&s!=null)for(k={},l=0;l<e.attributes.length;l++)k[(v=e.attributes[l]).name]=v.value;for(l in k)if(v=k[l],l!="children"){if(l=="dangerouslySetInnerHTML")u=v;else if(!(l in C)){if(l=="value"&&"defaultValue"in C||l=="checked"&&"defaultChecked"in C)continue;Ve(e,l,null,v,r)}}for(l in C)v=C[l],l=="children"?_=v:l=="dangerouslySetInnerHTML"?d=v:l=="value"?m=v:l=="checked"?P=v:a&&typeof v!="function"||k[l]===v||Ve(e,l,v,k[l],r);if(d)a||u&&(d.__html==u.__html||d.__html==e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),Xn(t.type=="template"?e.content:e,Le(_)?_:[_],t,n,o,b=="foreignObject"?"http://www.w3.org/1999/xhtml":r,s,i,s?s[0]:n.__k&&be(n,0),a,c),s!=null)for(l=s.length;l--;)kt(s[l]);a||(l="value",b=="progress"&&m==null?e.removeAttribute("value"):m!=null&&(m!==e[l]||b=="progress"&&!m||b=="option"&&m!=k[l])&&Ve(e,l,m,k[l],r),l="checked",P!=null&&P!=e[l]&&Ve(e,l,P,k[l],r))}return e}function Pt(e,t,n){try{if(typeof e=="function"){var o=typeof e.__u=="function";o&&e.__u(),o&&t==null||(e.__u=e(t))}else e.current=t}catch(r){w.__e(r,n)}}function no(e,t,n){var o,r;if(w.unmount&&w.unmount(e),(o=e.ref)&&(o.current&&o.current!=e.__e||Pt(o,null,t)),(o=e.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(s){w.__e(s,t)}o.base=o.__P=null}if(o=e.__k)for(r=0;r<o.length;r++)o[r]&&no(o[r],t,n||typeof e.type!="function");n||kt(e.__e),e.__c=e.__=e.__e=void 0}function lr(e,t,n){return this.constructor(e,n)}function Ne(e,t,n){var o,r,s,i;t==document&&(t=document.documentElement),w.__&&w.__(e,t),r=(o=typeof n=="function")?null:n&&n.__k||t.__k,s=[],i=[],Ot(t,e=(!o&&n||t).__k=se(Z,null,[e]),r||Te,Te,t.namespaceURI,!o&&n?[n]:r?null:t.firstChild?Re.call(t.childNodes):null,s,!o&&n?n:r?r.__e:t.firstChild,o,i),eo(s,e,i)}function oo(e,t){Ne(e,t,oo)}function ur(e,t,n){var o,r,s,i,a=Q({},e.props);for(s in e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)s=="key"?o=t[s]:s=="ref"?r=t[s]:a[s]=t[s]===void 0&&i!=null?i[s]:t[s];return arguments.length>2&&(a.children=arguments.length>3?Re.call(arguments,2):n),Ae(e.type,a,o||e.key,r||e.ref,null)}function Ue(e){function t(n){var o,r;return this.getChildContext||(o=new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(s){this.props.value!=s.value&&o.forEach(function(i){i.__e=true,pt(i)})},this.sub=function(s){o.add(s);var i=s.componentWillUnmount;s.componentWillUnmount=function(){o&&o.delete(s),i&&i.call(s)}}),n.children}return t.__c="__cC"+Gn++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,o){return n.children(o)}).contextType=t,t}Re=Zn.slice,w={__e:function(e,t,n,o){for(var r,s,i;t=t.__;)if((r=t.__c)&&!r.__)try{if((s=r.constructor)&&s.getDerivedStateFromError!=null&&(r.setState(s.getDerivedStateFromError(e)),i=r.__d),r.componentDidCatch!=null&&(r.componentDidCatch(e,o||{}),i=r.__d),i)return r.__E=r}catch(a){e=a}throw e}},zn=0,G.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Q({},this.state),typeof e=="function"&&(e=e(Q({},n),this.props)),e&&Q(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),pt(this))},G.prototype.forceUpdate=function(e){this.__v&&(this.__e=true,e&&this.__h.push(e),pt(this))},G.prototype.render=Z,de=[],qn=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Jn=function(e,t){return e.__v.__b-t.__v.__b},Xe.__r=0,Kn=/(PointerCapture)$|Capture$/i,xt=0,dt=Kt(false),_t=Kt(true),Gn=0;var fr=0;function $(e,t,n,o,r,s){t||(t={});var i,a,c=t;if("ref"in c)for(a in c={},t)a=="ref"?i=t[a]:c[a]=t[a];var l={type:e,props:c,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--fr,__i:-1,__u:0,__source:r,__self:s};if(typeof e=="function"&&(i=e.defaultProps))for(a in i)c[a]===void 0&&(c[a]=i[a]);return w.vnode&&w.vnode(l),l}var le,A,rt,Gt,we=0,ro=[],N=w,Zt=N.__b,Yt=N.__r,Xt=N.diffed,Qt=N.__c,en=N.unmount,tn=N.__;function xe(e,t){N.__h&&N.__h(A,e,we||t),we=0;var n=A.__H||(A.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ee(e){return we=1,It(ao,e)}function It(e,t,n){var o=xe(le++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):ao(void 0,t),function(a){var c=o.__N?o.__N[0]:o.__[0],l=o.t(c,a);c!==l&&(o.__N=[l,o.__[1]],o.__c.setState({}))}],o.__c=A,!A.__f)){var r=function(a,c,l){if(!o.__c.__H)return true;var d=o.__c.__H.__.filter(function(_){return!!_.__c});if(d.every(function(_){return!_.__N}))return!s||s.call(this,a,c,l);var u=o.__c.props!==a;return d.forEach(function(_){if(_.__N){var v=_.__[0];_.__=_.__N,_.__N=void 0,v!==_.__[0]&&(u=true)}}),s&&s.call(this,a,c,l)||u};A.__f=true;var s=A.shouldComponentUpdate,i=A.componentWillUpdate;A.componentWillUpdate=function(a,c,l){if(this.__e){var d=s;s=void 0,r(a,c,l),s=d}i&&i.call(this,a,c,l)},A.shouldComponentUpdate=r}return o.__N||o.__}function L(e,t){var n=xe(le++,3);!N.__s&&At(n.__H,t)&&(n.__=e,n.u=t,A.__H.__h.push(n))}function te(e,t){var n=xe(le++,4);!N.__s&&At(n.__H,t)&&(n.__=e,n.u=t,A.__h.push(n))}function U(e){return we=5,_e(function(){return{current:e}},[])}function so(e,t,n){we=6,te(function(){if(typeof e=="function"){var o=e(t());return function(){e(null),o&&typeof o=="function"&&o()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function _e(e,t){var n=xe(le++,7);return At(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function pe(e,t){return we=8,_e(function(){return e},t)}function ue(e){var t=A.context[e.__c],n=xe(le++,9);return n.c=e,t?(n.__==null&&(n.__=true,t.sub(A)),t.props.value):e.__}function io(e,t){N.useDebugValue&&N.useDebugValue(t?t(e):e)}function Mt(){var e=xe(le++,11);if(!e.__){for(var t=A.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function dr(){for(var e;e=ro.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ke),e.__H.__h.forEach(ht),e.__H.__h=[]}catch(t){e.__H.__h=[],N.__e(t,e.__v)}}N.__b=function(e){A=null,Zt&&Zt(e)},N.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),tn&&tn(e,t)},N.__r=function(e){Yt&&Yt(e),le=0;var t=(A=e.__c).__H;t&&(rt===A?(t.__h=[],A.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(Ke),t.__h.forEach(ht),t.__h=[],le=0)),rt=A},N.diffed=function(e){Xt&&Xt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ro.push(t)!==1&&Gt===N.requestAnimationFrame||((Gt=N.requestAnimationFrame)||_r)(dr)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),rt=A=null},N.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Ke),n.__h=n.__h.filter(function(o){return!o.__||ht(o)})}catch(o){t.some(function(r){r.__h&&(r.__h=[])}),t=[],N.__e(o,n.__v)}}),Qt&&Qt(e,t)},N.unmount=function(e){en&&en(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(o){try{Ke(o)}catch(r){t=r}}),n.__H=void 0,t&&N.__e(t,n.__v))};var nn=typeof requestAnimationFrame=="function";function _r(e){var t,n=function(){clearTimeout(o),nn&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(n,35);nn&&(t=requestAnimationFrame(n))}function Ke(e){var t=A,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),A=t}function ht(e){var t=A;e.__c=e.__(),A=t}function At(e,t){return!e||e.length!==t.length||t.some(function(n,o){return n!==e[o]})}function ao(e,t){return typeof t=="function"?t(e):t}function co(e,t){for(var n in t)e[n]=t[n];return e}function mt(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return true;for(var o in t)if(o!=="__source"&&e[o]!==t[o])return true;return false}function fe(e,t){var n=t(),o=ee({t:{__:n,u:t}}),r=o[0].t,s=o[1];return te(function(){r.__=n,r.u=t,st(r)&&s({t:r})},[e,n,t]),L(function(){return st(r)&&s({t:r}),e(function(){st(r)&&s({t:r})})},[e]),n}function st(e){var t,n,o=e.u,r=e.__;try{var s=o();return!((t=r)===(n=s)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return true}}function lo(e){e()}function uo(e){return e}function fo(){return[false,lo]}var _o=te;function gt(e,t){this.props=e,this.context=t}function Et(e,t){function n(r){var s=this.props.ref,i=s==r.ref;return!i&&s&&(s.call?s(null):s.current=null),t?!t(this.props,r)||!i:mt(this.props,r)}function o(r){return this.shouldComponentUpdate=n,se(e,r)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=true,o.__f=true,o.type=e,o}(gt.prototype=new G).isPureReactComponent=true,gt.prototype.shouldComponentUpdate=function(e,t){return mt(this.props,e)||mt(this.state,t)};var on=w.__b;w.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),on&&on(e)};var pr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function vr(e){function t(n){var o=co({},n);return delete o.ref,e(o,n.ref||null)}return t.$$typeof=pr,t.render=e,t.prototype.isReactComponent=t.__f=true,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var rn=function(e,t){return e==null?null:re(re(e).map(t))},hr={map:rn,forEach:rn,count:function(e){return e?re(e).length:0},only:function(e){var t=re(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:re},mr=w.__e;w.__e=function(e,t,n,o){if(e.then){for(var r,s=t;s=s.__;)if((r=s.__c)&&r.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t)}mr(e,t,n,o)};var sn=w.unmount;function po(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(o){typeof o.__c=="function"&&o.__c()}),e.__c.__H=null),(e=co({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=true,e.__c=null),e.__k=e.__k&&e.__k.map(function(o){return po(o,t,n)})),e}function vo(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(o){return vo(o,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=true,e.__c.__P=n)),e}function Ge(){this.__u=0,this.o=null,this.__b=null}function ho(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function gr(e){var t,n,o;function r(s){if(t||(t=e()).then(function(i){n=i.default||i},function(i){o=i}),o)throw o;if(!n)throw t;return se(n,s)}return r.displayName="Lazy",r.__f=true,r}function Me(){this.i=null,this.l=null}w.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),sn&&sn(e)},(Ge.prototype=new G).__c=function(e,t){var n=t.__c,o=this;o.o==null&&(o.o=[]),o.o.push(n);var r=ho(o.__v),s=false,i=function(){s||(s=true,n.__R=null,r?r(a):a())};n.__R=i;var a=function(){if(!--o.__u){if(o.state.__a){var c=o.state.__a;o.__v.__k[0]=vo(c,c.__c.__P,c.__c.__O)}var l;for(o.setState({__a:o.__b=null});l=o.o.pop();)l.forceUpdate()}};o.__u++||32&t.__u||o.setState({__a:o.__b=o.__v.__k[0]}),e.then(i,i)},Ge.prototype.componentWillUnmount=function(){this.o=[]},Ge.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=po(this.__b,n,o.__O=o.__P)}this.__b=null}var r=t.__a&&se(Z,null,e.fallback);return r&&(r.__u&=-33),[se(Z,null,t.__a?null:e.children),r]};var an=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function yr(e){return this.getChildContext=function(){return e.context},e.children}function br(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){Ne(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var o=t.__v;o!==null&&!o.__m&&o.__!==null;)o=o.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:o.__m},contains:function(){return true},insertBefore:function(r,s){this.childNodes.push(r),t.h.insertBefore(r,s)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.h.removeChild(r)}}}Ne(se(yr,{context:t.context},e.__v),t.v)}function Tt(e,t){var n=se(br,{__v:e,h:t});return n.containerInfo=t,n}(Me.prototype=new G).__a=function(e){var t=this,n=ho(t.__v),o=t.l.get(e);return o[0]++,function(r){var s=function(){t.props.revealOrder?(o.push(r),an(t,e,o)):r()};n?n(s):s()}},Me.prototype.render=function(e){this.i=null,this.l=new Map;var t=re(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},Me.prototype.componentDidUpdate=Me.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){an(e,n,t)})};var mo=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,wr=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Sr=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Cr=/[A-Z0-9]/g,xr=typeof document<"u",kr=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function go(e,t,n){return t.__k==null&&(t.textContent=""),Ne(e,t),typeof n=="function"&&n(),e?e.__c:null}function Or(e,t,n){return oo(e,t),typeof n=="function"&&n(),e?e.__c:null}G.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(G.prototype,e,{configurable:true,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:true,writable:true,value:t})}})});var cn=w.event;function Pr(){}function Ir(){return this.cancelBubble}function Mr(){return this.defaultPrevented}w.event=function(e){return cn&&(e=cn(e)),e.persist=Pr,e.isPropagationStopped=Ir,e.isDefaultPrevented=Mr,e.nativeEvent=e};var Nt,Ar={enumerable:false,configurable:true,get:function(){return this.class}},ln=w.vnode;w.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,o=t.type,r={},s=o.indexOf("-")===-1;for(var i in n){var a=n[i];if(!(i==="value"&&"defaultValue"in n&&a==null||xr&&i==="children"&&o==="noscript"||i==="class"||i==="className")){var c=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&a===true?a="":c==="translate"&&a==="no"?a=false:c[0]==="o"&&c[1]==="n"?c==="ondoubleclick"?i="ondblclick":c!=="onchange"||o!=="input"&&o!=="textarea"||kr(n.type)?c==="onfocus"?i="onfocusin":c==="onblur"?i="onfocusout":Sr.test(i)&&(i=c):c=i="oninput":s&&wr.test(i)?i=i.replace(Cr,"-$&").toLowerCase():a===null&&(a=void 0),c==="oninput"&&r[i=c]&&(i="oninputCapture"),r[i]=a}}o=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=re(n.children).forEach(function(l){l.props.selected=r.value.indexOf(l.props.value)!=-1})),o=="select"&&r.defaultValue!=null&&(r.value=re(n.children).forEach(function(l){l.props.selected=r.multiple?r.defaultValue.indexOf(l.props.value)!=-1:r.defaultValue==l.props.value})),n.class&&!n.className?(r.class=n.class,Object.defineProperty(r,"className",Ar)):(n.className&&!n.class||n.class&&n.className)&&(r.class=r.className=n.className),t.props=r}(e),e.$$typeof=mo,ln&&ln(e)};var un=w.__r;w.__r=function(e){un&&un(e),Nt=e.__c};var fn=w.diffed;w.diffed=function(e){fn&&fn(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),Nt=null};var Er={ReactCurrentDispatcher:{current:{readContext:function(e){return Nt.__n[e.__c].props.value},useCallback:pe,useContext:ue,useDebugValue:io,useDeferredValue:uo,useEffect:L,useId:Mt,useImperativeHandle:so,useInsertionEffect:_o,useLayoutEffect:te,useMemo:_e,useReducer:It,useRef:U,useState:ee,useSyncExternalStore:fe,useTransition:fo}}};function Tr(e){return se.bind(null,e)}function Qe(e){return!!e&&e.$$typeof===mo}function Nr(e){return Qe(e)&&e.type===Z}function $r(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Rr(e){return Qe(e)?ur.apply(null,arguments):e}function yo(e){return!!e.__k&&(Ne(null,e),true)}function Lr(e){return e&&(e.base||e.nodeType===1&&e)||null}var Ur=function(e,t){return e(t)},Fr=function(e,t){return e(t)},Hr=Z,Dr=Qe,bi={useState:ee,useId:Mt,useReducer:It,useEffect:L,useLayoutEffect:te,useInsertionEffect:_o,useTransition:fo,useDeferredValue:uo,useSyncExternalStore:fe,startTransition:lo,useRef:U,useImperativeHandle:so,useMemo:_e,useCallback:pe,useContext:ue,useDebugValue:io,version:"18.3.1",Children:hr,render:go,hydrate:Or,unmountComponentAtNode:yo,createPortal:Tt,createElement:se,createContext:Ue,createFactory:Tr,cloneElement:Rr,createRef:sr,Fragment:Z,isValidElement:Qe,isElement:Dr,isFragment:Nr,isMemo:$r,findDOMNode:Lr,Component:G,PureComponent:gt,memo:Et,forwardRef:vr,flushSync:Fr,unstable_batchedUpdates:Ur,StrictMode:Hr,Suspense:Ge,SuspenseList:Me,lazy:gr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Er};function jr(e){return{render:function(t){go(t,e)},unmount:function(){yo(e)}}}const $t=Ue("");function Br(){return ue($t)+Mt()}Ce(1,"styles/scale","@layer clover{:root{--clover-space-3xs: .146rem;--clover-space-2xs: .236rem;--clover-space-xs: .382rem;--clover-space-s: .618rem;--clover-space-m: 1rem;--clover-space-l: 1.618rem;--clover-space-xl: 2.618rem;--clover-space-2xl: 4.236rem;--clover-text-xs: .764rem;--clover-text-s: .854rem;--clover-text-m: 1.146rem;--clover-text-l: 1.236rem;--clover-control: calc(1rem + 2 * var(--clover-space-s));--clover-inset: var(--clover-space-l);--clover-picture: calc(4 * var(--clover-space-xl))}:where(.clover-title){margin:0;font-weight:var(--clover-title-weight, 400);line-height:1.25;overflow-wrap:anywhere}:where(.clover-root,.clover-canvas,.clover-items,.clover-geomap) :where(button,input,select,textarea){font:inherit}:where(.clover-field-pill-query,.clover-collection-select-control){box-sizing:border-box;padding:var(--clover-space-xs) var(--clover-space-s);border:1px solid var( --clover-field-edge, color-mix( in srgb, var(--clover-color-primary-muted, #26292b) 80%, var(--clover-color-secondary, #fff) ) );border-radius:var(--clover-radius, 3px);background-color:var(--clover-color-secondary, #fff);color:var(--clover-color-primary, #1a1d1e)}:where(.clover-field-pill-query,.clover-collection-select-control):focus-visible{outline:2px solid var(--clover-color-accent, #0065c3);outline-offset:1px}:where(.clover-field-pill-query)::placeholder{color:color-mix(in srgb,var(--clover-color-primary, #1a1d1e) 65%,var(--clover-color-secondary, #fff));opacity:1}}");Ce(2,"styles/contrast","@layer clover{:where([data-high-contrast]){--clover-accent-fill: var(--clover-color-control, #1a1d1e);--clover-accent-ring: 3px solid var(--clover-color-accent, #0065c3);--clover-accent-ring-hover: 3px solid color-mix(in srgb, var(--clover-color-accent, #0065c3) 50%, transparent);--clover-accent-text-fallback: var(--clover-color-primary, #1a1d1e);--clover-transition: none}}");const Wr="clover-root",bo=Symbol("roots"),Vr=[];class wo{constructor(t){oe(this,"entries",new Map);oe(this,"lists",new Map);oe(this,"listeners",new Map);oe(this,"languages",new zr(t2=>this.entries.has(t2)));this.count=t}list(t){return this.lists.get(t)??Vr}subscribe(t,n){let o=this.listeners.get(t);return o||this.listeners.set(t,o=new Set),o.add(n),()=>{o.delete(n)}}connect(t){var s;const n=t.kind==="part"?((s=t.element.parentElement)==null?void 0:s.closest(Wr))??null:null,o=this.entries.get(t.element);if(o&&o.root===n)return;const r={hosted:t,key:(o==null?void 0:o.key)??++this.count.made,root:n};this.entries.set(t.element,r),o&&this.change(it(o),i=>i.filter(a=>a!==o)),this.change(it(r),i=>[...i,r]),t.needsRoot&&!n&&console.warn(`<${t.element.localName}> shows a <clover-root>'s state: put it inside one.`),t.kind!=="root"&&this.languages.draws(t.element.localName),(t.kind!=="part"||!n)&&this.languages.watch(t.element)}disconnect(t){const n=this.entries.get(t);n&&(this.entries.delete(t),this.change(it(n),o=>o.filter(r=>r!==n)))}change(t,n){var o;this.lists.set(t,n(this.list(t))),(o=this.listeners.get(t))==null||o.forEach(r=>r())}}const it=e=>e.hosted.kind==="root"?bo:e.root;class zr{constructor(t){oe(this,"observer",null);oe(this,"tags",new Set);this.isElement=t}draws(t){this.tags.add(t)}watch(t){this.observer??(this.observer=new MutationObserver(n=>{const o=[...this.tags,".clover-announcer"].join(",");for(const{target:r}of n){const s=r;s.getAttribute("lang")!==""||this.isElement(s)||s.closest(o)&&s.removeAttribute("lang")}})),this.observer.observe(t,{subtree:true,attributes:true,attributeFilter:["lang"]})}}function yt(e,t){const n=pe(r=>e.subscribe(t,r),[e,t]);return fe(n,()=>e.list(t))}function So(e){return fe(e.subscribe,e.getProps,e.getProps)}function qr({registry:e}){const t=yt(e,bo),n=yt(e,null);return $(Z,{children:[t.map(o=>$(Jr,{entry:o,registry:e},o.key)),n.map(o=>$(xo,{entry:o},o.key))]})}const Co=e=>`clover-${e.key}-`,Jr=Et(function({entry:t,registry:n}){const{hosted:o}=t,r=yt(n,o.element),s=So(o),i=o.Component;return $(ko,{hosted:o,props:s,children:$($t.Provider,{value:Co(t),children:$(i,{hosted:o,props:s,children:r.map(a=>$(xo,{entry:a},a.key))})})})}),xo=Et(function({entry:t}){const{hosted:n}=t,o=So(n);if(n.needsRoot&&!t.root)return null;const r=n.Component;return Tt($(ko,{hosted:n,props:o,children:$($t.Provider,{value:Co(t),children:$(r,{hosted:n,props:o})})}),n.element)});class ko extends G{constructor(){super(...arguments);oe(this,"state",{failed:false})}static getDerivedStateFromError(){return{failed:true}}componentDidCatch(n,o){console.error(`<${this.props.hosted.element.localName}>:`,n)}componentDidUpdate(n){this.state.failed&&n.props!==this.props.props&&this.setState({failed:false})}render(){return this.state.failed?null:this.props.children}}const dn=new WeakMap,ze=Symbol.for("clover.elements");function Kr(e){let t=dn.get(e);if(!t){const n=e;n[ze]&&console.warn("Clover is loaded twice on this page: load one entry."),t=new wo(n[ze]??(n[ze]={made:0})),dn.set(e,t),jr(e.createElement("div")).render($(qr,{registry:t}))}return t}const wi=Object.freeze(Object.defineProperty({__proto__:null,Registry:wo,hostOf:Kr},Symbol.toStringTag,{value:"Module"})),Rt=Ue(void 0);function Oo(e=K,t){const n=fe(j.subscribe,j.getSnapshot,j.getSnapshot),o=ue(Rt),r=t??o,s=pe((a,c)=>j.t(a,c,e),[e,n]),i=pe(a=>j.langOf(a,r,e),[e,n,r]);return{t:s,langOf:i,hostLanguage:r,i18n:j}}const Gr=/^(ar|arc|ckb|dv|fa|he|iw|ks|ps|sd|syr|ug|ur|yi)$/,Zr=/^(adlm|arab|hebr|nkoo|rohg|syrc|thaa)$/;function Yr(e){if(!e)return;const[t,...n]=e.toLowerCase().split(/[-_]/),o=n.find(r=>r.length===4);return(o?Zr.test(o):Gr.test(t))?"rtl":void 0}function _n(e){return e?{lang:e,dir:Yr(e)}:{}}function Xr(e,t,n={}){return((e==null?void 0:e.fetch)??globalThis.fetch)(t,{credentials:(e==null?void 0:e.credentials)??"same-origin",...n,headers:{...n.headers,...e==null?void 0:e.headers}})}const Si=e=>(e==null?void 0:e.credentials)==="include",Qr=e=>JSON.stringify([e==null?void 0:e.credentials,e==null?void 0:e.headers]);class es extends Error{constructor(t,n,o){super(t),this.url=n,this.status=o,this.name="CloverRequestError"}}async function Se(e,t,n){const o=await Xr(e,t,{signal:n,headers:{Accept:"application/ld+json, application/json"}});if(!o.ok)throw new es(`${t} answered ${o.status}`,t,o.status);return o.json()}const x=e=>Array.isArray(e)?e:e==null?[]:[e],Po=["Independents","Composite","List"];function Io(e){return x(e==null?void 0:e.body).flatMap(t=>Po.includes(t==null?void 0:t.type)?x(t.items):[t])}function ts(e){const t=x(e==null?void 0:e.motivation);return!t.length||t.includes("painting")}function ns(e){const t=[];for(const n of x(e==null?void 0:e.items))for(const o of x(n==null?void 0:n.items))if(ts(o))for(let r of Io(o))(r==null?void 0:r.type)==="Choice"&&(r=x(r.items)[0]),(r==null?void 0:r.type)==="SpecificResource"&&(r=typeof r.source=="string"?{id:r.source}:r.source),r&&t.push({body:r,annotation:o});return t}function Mo(e,t,n=", "){if(!e)return{text:""};if(typeof e=="string")return{text:e};const o=Object.keys(e).filter(a=>{var c;return(c=e[a])==null?void 0:c.length});if(!o.length)return{text:""};const r=Qo(o,t),s=e[r];return{text:Array.isArray(s)?s.join(n):String(s),lang:r==="none"?void 0:r}}const os=/^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$/;function Ci(e){const t=e==null?void 0:e.language,n=(Array.isArray(t)?t:[t]).filter(o=>typeof o=="string"&&os.test(o));return n.length===1?n[0]:void 0}const et=Ue(null);function xi(){return ue(et)}function rs(e="This part"){const t=ue(et);if(!t)throw new Error(`${e} must be rendered inside <Clover.Root>.`);return t}function ki(e,t=Object.is,n){const{clover:o}=rs(n),r=U(null),s=()=>{const i=e(o.store.get());return r.current&&t(r.current.value,i)?r.current.value:(r.current={value:i},i)};return fe(o.store.subscribe,s)}const ss={subscribe:()=>()=>{}};function Oi(e,t){const n=ue(et),o=n==null?void 0:n.clover.store,r=()=>o?e(o.get()):t;return fe(o?o.subscribe:ss.subscribe,r)}function is(e,t){const n=ue(Rt),o=U(null),[r,s]=ee(""),i=pe(d=>{o.current=d,typeof e=="function"?e(d):e&&(e.current=d)},[e]);L(()=>{var u,_;const d=(u=o.current)==null?void 0:u.parentElement;t!==void 0||n!==void 0||!d||s(((_=d.closest("[lang]"))==null?void 0:_.getAttribute("lang"))??"")});const c=t??n??r,{langOf:l}=Oo(void 0,c);return{ref:i,hostLanguage:c,langOf:l}}Ce(23,"ui/ReadMore","@layer clover{.clover-read-more{display:flex;flex-direction:column;align-items:flex-start;gap:var(--clover-space-xs);min-width:0}button.clover-read-more-button{margin:0;padding:0;border:0;background:none;color:var( --clover-color-accent-text, var(--clover-accent-text-fallback, var(--clover-color-accent, #0065c3)) );font-size:var(--clover-text-s);text-decoration:underline 1px;text-decoration-color:color-mix(in srgb,currentColor 20%,transparent);text-underline-offset:var(--clover-space-3xs);cursor:pointer}button.clover-read-more-button:hover{text-decoration-color:currentColor}button.clover-read-more-button:focus-visible{outline:2px solid var(--clover-color-accent, #0065c3);outline-offset:2px;border-radius:var(--clover-radius, 3px)}}");const as=["left-to-right","right-to-left","top-to-bottom","bottom-to-top"];function cs(e){return as.includes(e)?e:"left-to-right"}const ls=["individuals","paged","continuous","unordered"];function us(e){return x(e).find(n=>ls.includes(n))??"individuals"}function fs(e,t){if(!e.length)return[];if(t==="continuous")return[e.map((a,c)=>c)];if(t!=="paged")return e.map((a,c)=>[c]);const n=[];let o=[],r=0,s=false;const i=()=>{o.length&&n.push(o),o=[]};return e.forEach((a,c)=>{const l=x(a.behavior);if(l.includes("non-paged")){c===r&&r++,i(),n.push([c]);return}if(c===r||l.includes("facing-pages")){o.length&&(s=true),i(),n.push([c]);return}if(o.push(c),s){i(),s=false;return}o.length>1&&i()}),i(),n}function ds(e,t){const n=e.findIndex(o=>o.includes(t));return n===-1?0:n}function Ao(e,t){const n=/(?:^|[#&])t=([^&]+)/.exec(t),o=n&&{t:n[1]},r=/(?:^|[#&])xywh=(?:pixel:)?([^&]+)/.exec(t);if(r){const[s,i,a,c]=r[1].split(",").map(Number);if([s,i,a,c].every(Number.isFinite))return{id:e,rect:{x:s,y:i,w:a,h:c},...o}}return o&&{id:e,...o}}function qe(e){const t=e.indexOf("#");if(t>=0){const o=e.slice(0,t);return Ao(o,e.slice(t))??{id:o}}const n=e.indexOf("&t=");return n>=0?{id:e.slice(0,n),t:e.slice(n+3)}:{id:e}}const bt=e=>{var t;return Array.isArray(e)?bt(e[0]):Po.includes(e==null?void 0:e.type)?bt((t=e.items)==null?void 0:t[0]):e};function tt(e){return _s(bt(e))}function _s(e){var n;if(typeof e=="string")return qe(e);if(!e||typeof e!="object")return{id:""};if(e.type!=="SpecificResource"||e.source===void 0)return qe(e.id??"");const t=typeof e.source=="string"?qe(e.source):qe(((n=e.source)==null?void 0:n.id)??"");for(const o of x(e.selector)){const r=o;if((r==null?void 0:r.type)==="PointSelector"){const[s,i,a]=[r.x,r.y,r.instant??r.t].map(Number),c=Number.isFinite(s)&&Number.isFinite(i);return{id:t.id,...c?{point:{x:s,y:i}}:{},...Number.isFinite(a)?{t:String(a)}:{}}}if((r==null?void 0:r.type)==="SvgSelector"&&r.value)return{id:t.id,svg:String(r.value)};if((r==null?void 0:r.type)==="FragmentSelector"&&r.value){const s=Ao(t.id,String(r.value));if(s)return s}}return t}const Pi=e=>e==="Audio"||e==="Sound",ps=e=>{const t=x(e);return t.length>0&&t.every(n=>n==="supplementing")},vs=(e,t)=>ps(e)&&!!(t.rect||t.svg||t.point)&&!t.t,pn=new WeakMap,hs={canvases:[],views:[],direction:"left-to-right"};function D(e){if(!e)return hs;let t=pn.get(e);if(!t){const n=(e.items??[]).filter(o=>(o==null?void 0:o.type)==="Canvas"||(o==null?void 0:o.type)==="Timeline"||(o==null?void 0:o.type)==="Scene");t={canvases:n,views:fs(n,us(e.behavior)),direction:cs(e.viewingDirection)},pn.set(e,t)}return t}const vn=new WeakMap;function Fe(e,t){if(!t)return null;const n=D(e);let o=vn.get(n);if(!o){o=new Map;for(const r of n.canvases)o.has(r.id)||o.set(r.id,r);vn.set(n,o)}return o.get(t)??null}function nt(e,t){const{canvases:n,views:o}=D(e),r=n.findIndex(s=>s.id===t);return r===-1?0:ds(o,r)}const hn=new WeakMap,ms=[];function Ee(e,t){if(!e)return ms;const n=nt(e,t);let o=hn.get(e);o||hn.set(e,o=new Map);let r=o.get(n);if(!r){const s=D(e);r=(s.views[n]??[]).map(i=>s.canvases[i]),o.set(n,r)}return r}function gs(e,t){var s,i;const{canvases:n,views:o}=D(e),r=(s=o[t])==null?void 0:s[0];return r===void 0?null:((i=n[r])==null?void 0:i.id)??null}function ys(e){const t=e==null?void 0:e.start;if(!t)return null;const n=tt(t);if(!n.id)return null;const o={canvasId:n.id};n.rect&&(o.region=n.rect);const r=n.t?Number(n.t.split(",")[0]):NaN;return Number.isFinite(r)&&(o.time=r),o}const Ii=(e,t)=>{const n=e==null?void 0:e.behavior;return Array.isArray(n)?n.includes(t):n===t},Mi=e=>[(e==null?void 0:e.partOf)??[]].flat().find(t=>(t==null?void 0:t.id)&&t.type==="Collection");function Ai(e,t,n,o){const r=e==null?void 0:e.items;if(!(r!=null&&r.length)||!n)return-1;const s=Ee(n,o),i=a=>{const c=r[a];return((c==null?void 0:c.manifestId)===n.id||(c==null?void 0:c.manifestAs)===n.id)&&(!c.canvasId||s.some(l=>l.id===c.canvasId))};return t!==null&&i(t)?t:r.findIndex((a,c)=>i(c))}Ce(29,"components/Primitives/Primitives","@layer clover{.clover-summary:not([data-read-more=open]){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--clover-summary-lines, 5);overflow:hidden}:is(.clover-metadata,.clover-required-statement){display:flex;flex-direction:column;gap:var(--clover-space-s);margin:0}:is(.clover-metadata,.clover-required-statement) dt{margin:0;font-weight:500}:is(.clover-metadata,.clover-required-statement) dd{margin:0}.clover-summary,:is(.clover-metadata,.clover-required-statement) :is(dt,dd){overflow-wrap:anywhere}:is(.clover-about,.clover-canvas-caption,.clover-annotations-body,.clover-metadata,.clover-required-statement,.clover-summary) a:not([class]){text-decoration-line:underline;text-underline-offset:var(--clover-space-3xs)}:is(.clover-homepage,.clover-rendering,.clover-see-also,.clover-part-of)>li{min-block-size:24px}:is(.clover-homepage,.clover-rendering,.clover-see-also,.clover-part-of) a,a:is(.clover-id,.clover-rights){color:var( --clover-color-accent-text, var(--clover-accent-text-fallback, var(--clover-color-accent, #0065c3)) );overflow-wrap:anywhere;text-decoration-line:underline;text-underline-offset:var(--clover-space-3xs)}.clover-link-format{color:var(--clover-color-primary-muted, #26292b);font-size:var(--clover-text-s)}}");const bs={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",whiteSpace:"nowrap",border:0},ws=e=>(e==null?void 0:e.format)==="text/vtt"||typeof(e==null?void 0:e.id)=="string"&&/\.vtt(\?|$)/i.test(e.id);function Ss(e){const t=[];let n=0;const o=(r,s)=>{var a;if(!r||ws(r))return;if(r.type==="SpecificResource"){r.source&&typeof r.source=="object"&&o(r.source,s);return}const i=s===void 0?{}:{choice:s};if(r.type==="TextualBody"||typeof r.value=="string")t.push({value:String(r.value??""),format:r.format,language:x(r.language)[0],...i});else if(r.type==="Image"&&r.id){const c=r.label??e.label;t.push({image:r.id,format:r.format,...c?{label:c}:{},...i})}else if(r.type==="Feature"){const c=((a=r.properties)==null?void 0:a.label)??e.label;c&&typeof c=="object"&&t.push({label:c,place:true,...i})}};for(const r of Io(e))if((r==null?void 0:r.type)!=="Choice")o(r);else{const s=n++;for(const i of x(r.items))o(i,s)}return t}const Eo="content-search",mn=/\/search\/([0-2])\//;function Cs(e){if(!e)return null;let t=null;for(const n of x(e.service)){const o=(n==null?void 0:n.id)??(n==null?void 0:n["@id"]);if(typeof o!="string")continue;const r=String(n.type??n["@type"]??""),s=[n.profile,n["@context"]].flat().map(a=>String(a??"")).join(" "),i=r==="SearchService2"?2:r==="SearchService1"?1:mn.test(s)?Number(mn.exec(s)[1])>=2?2:1:null;if(i===2)return{id:o,version:i};i===1&&(t??(t={id:o,version:i}))}return t}const xs="contents",Ei=(e,t)=>`${e}#region-${t+1}`,ks=e=>x(e==null?void 0:e.motivation).includes("linking");function To(e,t,n){const o=[];for(const r of x(e==null?void 0:e.items)){const s=x(r==null?void 0:r.motivation);if(s.includes("painting"))continue;const i=Ss(r);if(!i.length&&!ks(r))continue;const a=tt(x(r.target)[0]),c=a.id||n;!c||!r.id||o.push({id:r.id,setId:t,canvasId:c,target:a,motivation:s,bodies:i,annotation:r})}return o}const Os=e=>D(e).canvases.some(t=>x(t.items).some(n=>x(n==null?void 0:n.items).some(o=>x(o==null?void 0:o.body).some(r=>[r,...x(r==null?void 0:r.items)].some(s=>x(s==null?void 0:s.annotations).length>0)))));function Ps(e,t){for(const n of[e,t])if(n!=null&&n.label)return n.label;for(const n of[e,t]){const o=x(n==null?void 0:n.partOf).find(r=>/AnnotationCollection/.test(String((r==null?void 0:r.type)??(r==null?void 0:r["@type"])))&&r.label);if(o)return o.label}}const No=e=>x(e==null?void 0:e.partOf).filter(t=>(t==null?void 0:t.id)&&/AnnotationCollection/.test(String((t==null?void 0:t.type)??(t==null?void 0:t["@type"])))),gn=new WeakMap;function $o(e){var n;if(!e)return[];let t=gn.get(e);if(!t){const o=new Map;for(const r of D(e).canvases)for(const s of x(r.annotations)){if(!Array.isArray(s==null?void 0:s.items))continue;const i=s.id??`${r.id}#annotations`;let a=o.get(i);if(!a){const c=(n=No(s)[0])==null?void 0:n.id;a={id:i,label:Ps(s),source:"manifest",entries:[],...c?{collection:c}:{}},o.set(i,a)}a.entries.push(...To(s,i,r.id))}t=[...o.values()].filter(r=>r.entries.length),gn.set(e,t)}return t}const yn=new WeakMap,Ro=[];function Ti(e){if(!e)return Ro;let t=yn.get(e);return t||(t=D(e).canvases.flatMap(n=>x(n.annotations).filter(o=>o==null?void 0:o.id).map(o=>({id:String(o.id),canvasId:String(n.id),fetched:Array.isArray(o.items)}))),yn.set(e,t)),t}const at=new WeakMap,ct=new WeakMap;function Is(e,t=Ms){var n;if(!ct.has(t)){const o=t.filter(s=>s.content),r=(n=o[0])==null?void 0:n.content;ct.set(t,r?{id:r.id,type:r.type,...r.label?{label:r.label}:{},pages:Ro,entries:o.flatMap(s=>s.entries)}:null)}return ct.get(t)??As(e)}const Ms=[];function As(e){var r;if(!e)return null;if(at.has(e))return at.get(e);const t=D(e).canvases.flatMap(s=>x(s.annotations).flatMap(i=>No(i).map(a=>({part:a,page:i,canvas:s})))),n=(r=t[0])==null?void 0:r.part.id,o=n?(()=>{var l,d;const s=t.filter(({part:u})=>u.id===n),i=(l=s.find(({part:u})=>u.label))==null?void 0:l.part.label,a=Number((d=s.find(({part:u})=>u.total))==null?void 0:d.part.total),c=$o(e);return{id:n,type:"AnnotationCollection",...i?{label:i}:{},...a>0?{total:a}:{},pages:s.map(({page:u,canvas:_})=>({id:String(u.id),canvasId:String(_.id),fetched:Array.isArray(u.items)})),entries:s.flatMap(({page:u})=>{var _;return((_=c.find(v=>v.id===u.id))==null?void 0:_.entries)??[]})}})():null;return at.set(e,o),o}const bn=new WeakMap,wn=[];function $e(e,t){const n=$o(e);if(!t.length)return n.length?n:wn;const o=e??wn;let r=bn.get(o);r||bn.set(o,r=new Map);let s=r.get(t);if(!s){const i=new Set(n.map(a=>a.id));s=[...n,...t.filter(a=>!i.has(a.id)&&!!i.add(a.id))],r.set(t,s)}return s}const Sn=new WeakMap;function Es(e,t,n,o=null){const r=$e(e,t),s=n!=null&&n.entries.length?n:null;if(!o&&!s)return r;let i=Sn.get(r);i||Sn.set(r,i=new Map);let a=i.get(o);a||i.set(o,a=new Map);let c=a.get(s);return c||(c=[...r,...o?[o]:[],...s?[s]:[]],a.set(s,c)),c}const Ts=e=>Number(e==null?void 0:e.duration)>0;function Lo(e,t){return e.source==="search"||!e.entries.length?false:e.entries.every(n=>vs(n.motivation,n.target)&&!Ts(t(n.canvasId)))}const Cn=new WeakMap;function Ni(e,t){const n=$e(e,t);let o=Cn.get(n);if(!o){const r=n.filter(s=>!Lo(s,i=>Fe(e,i)??void 0));o=r.length===n.length?n:r,Cn.set(n,o)}return o}const xn=new WeakMap;function Uo(e,t,n,o){const r=$e(e,t),s=xn.get(r);if(s&&s.hidden===n&&s.shown===o)return s.ids;const i=r.filter(c=>!n.includes(c.id)&&!o.includes(c.id)&&Lo(c,l=>Fe(e,l)??void 0)).map(c=>c.id),a=i.length?[...n,...i]:n;return xn.set(r,{hidden:n,shown:o,ids:a}),a}const kn=new WeakMap;function $i(e,t,n,o){const r=Uo(e,t,n,o),s=kn.get(r);if(s&&s.hidden===n)return s.ids;const i=[Eo,xs,...r.filter(a=>!n.includes(a))];return kn.set(r,{hidden:n,ids:i}),i}function Ns(e){for(const t of x(e==null?void 0:e.target)){const n=(t==null?void 0:t.type)==="SpecificResource"?t.source:t,o=x(n==null?void 0:n.partOf).find(r=>(r==null?void 0:r.id)&&(!r.type||r.type==="Manifest"));if(o)return o.id}}function lt(e,t){if(!t)return null;for(const n of e){const o=n.entries.find(r=>r.id===t);if(o)return o}return null}function Fo(e){return btoa(encodeURIComponent(JSON.stringify(e))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function Ho({manifestId:e,canvasId:t,type:n="Canvas",region:o,time:r}){const s={id:t,type:n,...e&&e!==t?{partOf:[{id:e,type:"Manifest"}]}:{}},i=r!=null&&r>0?`t=${Math.round(r*100)/100}`:o?`xywh=${[o.x,o.y,o.w,o.h].map(Math.round).join(",")}`:null,a={"@context":`http://iiif.io/api/presentation/${n==="Canvas"?3:4}/context.json`,id:`${t}#content-state`,type:"Annotation",motivation:["contentState"],target:i?{type:"SpecificResource",source:s,selector:{type:"FragmentSelector",value:i}}:s};return{json:a,encoded:Fo(a)}}const Ri=Object.freeze(Object.defineProperty({__proto__:null,buildContentState:Ho,encodeContentState:Fo},Symbol.toStringTag,{value:"Module"})),$s=/iiif\.io\/api\/presentation\/4\/context\.json/;function Do(e){const t=e==null?void 0:e["@context"];return(Array.isArray(t)?t:[t]).some(o=>typeof o=="string"&&$s.test(o))}let On=null,Pn=null;function Lt(){return Pn??(Pn=import("./upgrade-eNW0DPXq.mjs")),On??(On=import("./upgrader-BlbMUEH6.mjs").then(({upgradePresentation3To4:e})=>e)),Promise.all([On,Pn])}async function ve(e){if(Do(e))return e;const[t,{upgrade:n}]=await Lt();return await n(e,t)}const In=()=>import("./content-state-reader-DYXL5lFa.mjs");function Mn(e){const t=e;return!t||typeof t!="object"?false:t.type==="Annotation"?x(t.motivation).includes("contentState"):t.type==="SpecificResource"}const Rs=["summary","metadata","requiredStatement","rights","provider","homepage","seeAlso","rendering","thumbnail","navDate","partOf"];function Ls(e){const t={"@context":Fs,id:e.id,type:"Manifest",label:e.label??{none:[""]},items:[e]};for(const n of Rs)e[n]!==void 0&&n!=="label"&&(t[n]=e[n]);return t}const Li=e=>{var t,n;return!!e&&((n=(t=e.items)==null?void 0:t[0])==null?void 0:n.id)===e.id},Us=/^(oa:)?Annotation(Page|Collection)$/;class Je extends Error{constructor(){super(...arguments);oe(this,"name","CloverContentError")}}const Fs="http://iiif.io/api/presentation/4/context.json",Hs=e=>/^https?:\/\//i.test(e);async function wt(e,{request:t,signal:n}){return Array.isArray(e.items)&&e.items.length>0||!e.id?e:await Se(t,e.id,n)}const Ds=50;async function Ut(e,t){const n=e;if(Array.isArray(n.items)&&n.items.length||!n.first)return e;const o=[],r=new Set;let s=n.first;for(let i=0;s&&i<Ds;i++){const a=typeof s=="string"?{id:s}:s;if(r.has(a.id??a))break;r.add(a.id??a);const c=a.items?a:await Se(t.request,a.id,t.signal),l=await ve({"@context":c["@context"]??n["@context"],...c,type:"Collection"});o.push(...l.items??[]),s=c.next}return{...n,items:o}}async function jo(e,t={}){return ve(await wt(e,t))}async function Bo(e,t,n=0){for(const o of e.items??[]){if(o.type==="Manifest")return ve(await wt(o,t));if(o.type==="Collection"&&n<8){const r=await Ut(await ve(await wt(o,t)),t),s=await Bo(r,t,n+1);if(s)return s}}return null}async function js(e,{request:t,signal:n}={}){Lt();const o=typeof e=="string"?await Se(t,e.trim(),n):e,r=await ve(o);return r.type==="Collection"?Ut(r,{request:t,signal:n}):r}async function Bs(e,t={}){var u;const{request:n,signal:o}=t;Lt();let r,s,i,a,c;const l=async _=>{const{resolveContentState:v}=await In(),m=v(_);if(!m)throw new Je("Unreadable content state");return r=m.target??r,s=m.manifestId??s,i=m.annotation??i,a=m.targets??a,Se(n,m.id,o)};if(typeof e=="string")if(Hs(e.trim()))c=await Se(n,e.trim(),o);else{const{decodeContentState:_}=await In(),v=_(e);if(!v)throw new Je("Unreadable iiifContent");c=Mn(v)?await l(v):v}else c=e;if(Mn(c)&&(c=await l(c)),Us.test(String((c==null?void 0:c.type)??""))){const{annotationsContent:_}=await import("./annotations-content-fTNYRgN_.mjs");return _(c,t)}const d=await ve(c);switch((u=o==null?void 0:o.throwIfAborted)==null||u.call(o),d.type){case"Manifest":return{manifest:d,target:r,annotation:i,targets:a};case"Collection":{const _=await Ut(d,t),v=t.manifestId??s,m=v?(_.items??[]).find(k=>k.id===v&&k.type==="Manifest"):void 0,P=m?await jo(m,t):await Bo(_,t);if(!P)throw new Je("The Collection holds no Manifest");return{manifest:P,collection:_,target:r,annotation:i,targets:a}}case"Canvas":case"Timeline":case"Scene":{const _=d;return r??(r={canvasId:_.id}),{manifest:Ls(_),target:r,annotation:i}}default:throw new Je(`Cannot show a ${String(d.type??"resource without a type")}`)}}const Wo=e=>!!(e!=null&&e.id)&&e.type==="AnnotationPage"&&!e.items;function An(e){const t=[];for(const n of e)for(const o of["items","annotations"])for(const r of n[o]??[])Wo(r)&&t.push([n.id,o,r.id]);return t}async function Ws(e,t,n,o){return Vs(await Se(n,e,o),t)}async function Vs(e,t="urn:clover:annotation-page"){var r;const n=e;return Do(n)?n:((r=(await ve({"@context":n["@context"]??"http://iiif.io/api/presentation/3/context.json",id:t,type:"Canvas",items:[{...n,"@context":void 0}]})).items)==null?void 0:r[0])??n}function zs(e,t){const n=e,o=t,r=c=>Array.isArray(c)?c:c?[c]:[],s=r(n.partOf),i=r(o.partOf),a=[...s.map(c=>({...i.find(l=>l.id&&l.id===c.id),...c})),...i.filter(c=>!s.some(l=>l.id===c.id))];return{...e,...n.label===void 0&&o.label!==void 0&&{label:o.label},...a.length&&{partOf:a}}}function qs(e,t,n,o){let r=false;const s=(e.items??[]).map(i=>{if(i.id!==t||!Array.isArray(i[n]))return i;const a=i[n].map(c=>c.id!==o.id||!Wo(c)?c:(r=true,zs(o,c)));return r?{...i,[n]:a}:i});return r?{...e,items:s}:e}function Js(e){let t=e;const n=new Set;return{get:()=>t,set(o){const r=typeof o=="function"?o(t):o;Object.keys(r).some(i=>!Object.is(r[i],t[i]))&&(t={...t,...r},n.forEach(i=>i()))},subscribe(o){return n.add(o),()=>n.delete(o)}}}function ge(e){let t=e;const n=new Set;return{get:()=>t,emit(o){t=o,n.forEach(r=>r(o))},subscribe(o){return n.add(o),()=>n.delete(o)}}}function Ks(e,t,n){return{position:t,total:n,hasPrevious:t>0,hasNext:t+1<n,previous:()=>e.previous(),next:()=>e.next(),first:()=>e.first(),last:()=>e.last(),goTo:o=>e.goTo(o)}}const St={query:"",status:"idle",hits:[],set:null},En={status:"idle",error:null,manifest:null,collection:null,throughCollection:false,canvasId:null,target:null,annotationId:null,hiddenSets:[],shownSets:[],addedSets:[],search:St,regions:null,targets:null,targetIndex:null};function Gs(e={}){const t=Js(En),n=ge(null),o=ge(null),r=ge(null),s=ge(null),i=ge(null),a=ge(null);let c=null,l=null,d=[],u=[],_=[],v=0,m=null,P=null,k=null;const C=(f,p)=>{!P||f===p||(P={...P,items:P.items.map(h=>h.manifestId===f&&h.manifestAs!==p?{...h,manifestAs:p}:h)})},b=f=>{var h;const p=(h=t.get().manifest)==null?void 0:h.id;return!!p&&(p===f.manifestId||p===f.manifestAs)},S=()=>d.length||u.length||_.length?[...d,...u,..._]:En.addedSets;let I=e.request,M=null;const F=new Set;let ie="view",B=0;const Y=(f,p,h)=>{if(F.has(h))return;F.add(h);const g=M==null?void 0:M.signal;Ws(h,f,I,g).then(y=>{g!=null&&g.aborted||t.set(O=>O.manifest?{manifest:qs(O.manifest,f,p,y)}:{})}).catch(()=>F.delete(h))},X=()=>{const{manifest:f,canvasId:p}=t.get();if(f)for(const[h,g,y]of An(ie==="all"||B>0?D(f).canvases:Ee(f,p)))Y(h,g,y)};t.subscribe(X);const H=(f,p,h,g,y)=>{var jt,Bt,Wt;const{canvases:O}=D(f),E=me=>!!me&&O.some(Jo=>Jo.id===me),T=ys(f),z=E(h==null?void 0:h.canvasId)?h:E(T==null?void 0:T.canvasId)?T:null,q=E(g.canvasId)?g.canvasId:(z==null?void 0:z.canvasId)??(E(g.defaultCanvasId)?g.defaultCanvasId:null)??((jt=O[0])==null?void 0:jt.id)??null;l==null||l.abort();const ne=y&&((Bt=lt(_,y))==null?void 0:Bt.canvasId)===q?y:null,he=z&&ne?{...z,region:void 0}:z,Be=++v;d=[],t.set({status:"ready",search:St,regions:null,manifest:f,collection:p,canvasId:q,target:he&&he.canvasId===q?he:null,addedSets:S(),annotationId:ne,targets:P});const Dt=f==null?void 0:f.structures;Array.isArray(Dt)&&JSON.stringify(Dt).includes("xywh=")&&import("./range-regions-9vY5ikPm.mjs").then(({contentsSet:me})=>{v===Be&&t.set({regions:me(f)})}),Os(f)&&import("./image-layers-CndzdWOW.mjs").then(({imageLayers:me})=>{v===Be&&(d=me(f),t.set({addedSets:S()}))}),q&&q!==g.canvasId&&((Wt=e.onCanvasChange)==null||Wt.call(e,q))},W=(f,p)=>t.set(h=>{const g=h.hiddenSets.filter(O=>O!==f),y=h.shownSets.filter(O=>O!==f);return p?{hiddenSets:g,shownSets:[...y,f]}:{hiddenSets:[...g,f],shownSets:y}}),ae=(f,p)=>{var g,y,O;if(!f)return;if((g=e.isControlled)!=null&&g.call(e)){p&&t.set({target:p}),(y=e.onCanvasChange)==null||y.call(e,f);return}const h=t.get().canvasId!==f;t.set({canvasId:f,target:p}),h&&((O=e.onCanvasChange)==null||O.call(e,f))},ce=(f,p=false)=>{const{manifest:h}=t.get(),g=gs(h,f);ae(g,g&&p?{canvasId:g,autoplay:p}:null)},ke=()=>{const{manifest:f,canvasId:p}=t.get();return{at:nt(f,p),total:D(f).views.length}},Oe=()=>{M==null||M.abort();const f=new AbortController;return M=f,F.clear(),t.set({status:"loading",error:null,annotationId:null}),f.signal},He=f=>t.set({status:"error",error:f instanceof Error?f:new Error(String(f))});async function De(f,p={}){var g;const h=Oe();try{const y=await Bs(f,{request:I,signal:h,manifestId:p.manifestId??void 0});if(h.aborted)return;const O=y.annotation,E=O?To({items:[O]},`${O.id}#content-state`):[];_=E.length?[{id:`${O.id}#content-state`,source:"added",entries:E}]:y.annotationSets??[];const T=m??((g=E[0])==null?void 0:g.id)??y.pick;m=null,t.set({throughCollection:!!y.collection}),P=y.targets??null,P&&C(P.items[0].manifestId,y.manifest.id),t.set({targetIndex:P?0:null}),H(y.manifest,y.collection??null,y.target,p,T)}catch(y){h.aborted||He(y)}}const Pe=f=>{const{manifest:p,collection:h}=t.get();return(p==null?void 0:p.id)===f||(h==null?void 0:h.id)===f},je=f=>{var p;return(((p=t.get().collection)==null?void 0:p.items)??[]).find(h=>h.id===f)??{id:f,type:"Manifest"}},V=(f,p)=>{var h,g;if(m=p,(h=e.isManifestControlled)!=null&&h.call(e)){(g=e.onManifestChange)==null||g.call(e,f);return}R({id:f,type:"Manifest"}).then(y=>{var O;return y&&((O=e.onManifestChange)==null?void 0:O.call(e,f))})},R=async(f,p)=>{if(f.type==="Collection")return await De(f.id),t.get().status==="ready";const{collection:h}=t.get(),g=Oe(),y=m;m=null;const O=y?lt(_,y):null,E=typeof p=="string"?{canvasId:p}:p??k;k=null;try{const T=await jo(f,{request:I,signal:g});return g.aborted?false:(C(f.id,T.id),H(T,h,O?{canvasId:O.canvasId}:E??void 0,{},y),true)}catch(T){return g.aborted||He(T),false}};return{store:t,viewport:n,media:o,captions:r,highlight:s,chapter:i,found:a,get request(){return I},setRequest(f){I=f},load:De,async openCollection(f){var h;const p=t.get().manifest;if(!(!p||((h=t.get().collection)==null?void 0:h.id)===f))try{const g=await js(f,{request:I});if(g.type!=="Collection"||t.get().manifest!==p)return;t.set({collection:g})}catch{}},async goToManifest(f,p){var g,y,O;if(Pe(f))return;const h=je(f);if(h.type!=="Collection"&&((g=e.isManifestControlled)!=null&&g.call(e))){(y=e.onManifestChange)==null||y.call(e,f);return}await R(h,p)&&((O=e.onManifestChange)==null||O.call(e,t.get().manifest.id))},goToTarget(f){var g,y,O;const p=(g=t.get().targets)==null?void 0:g.items[f];if(!p)return;t.set({targetIndex:f});const h=p.canvasId?{canvasId:p.canvasId,...p.region&&{region:p.region},...p.time!==void 0&&{time:p.time}}:null;if(b(p)){h&&ae(h.canvasId,h);return}if((y=e.isManifestControlled)!=null&&y.call(e)){k=h,(O=e.onManifestChange)==null||O.call(e,p.manifestId);return}R(je(p.manifestId),h??void 0).then(E=>{var T;return E&&((T=e.onManifestChange)==null?void 0:T.call(e,p.manifestId))})},async syncManifest(f){!f||Pe(f)||t.get().status!=="ready"||await R(je(f))},goTo(f,p){ae(f,p?{...p,canvasId:f}:null)},next({autoplay:f=false,wrap:p=false}={}){const{at:h,total:g}=ke();h+1<g?ce(h+1,f):p&&g>1&&ce(0,f)},previous(){const{at:f}=ke();f>0&&ce(f-1)},first(){ce(0)},last(){ce(ke().total-1)},consumeTarget(){t.set({target:null})},syncCanvas(f){f&&t.set({canvasId:f})},selectAnnotation(f){const{manifest:p,addedSets:h,canvasId:g,search:y,regions:O}=t.get(),E=lt(Es(p,h,y.set,O),f);if(t.set({annotationId:E?f:null}),!E)return;a.emit(f);const{hiddenSets:T,shownSets:z}=t.get();E.setId!==Eo&&Uo(p,h,T,z).includes(E.setId)&&W(E.setId,true);const q=Ee(p,g).some(Be=>Be.id===E.canvasId),ne=Fe(p,E.canvasId)!==null;!q&&ne&&ae(E.canvasId,null);const he=ne?void 0:Ns(E.annotation);he&&V(he,E.id)},async search(f){l==null||l.abort();const p=Cs(t.get().manifest),h=f.trim();if(!h||!p){l=null,t.set({search:St,annotationId:null});return}const g=new AbortController;l=g,t.set(y=>({search:{...y.search,query:h,status:"loading"}}));try{const{searchInto:y}=await import("./search-C9OyY1qk.mjs");await y(t,p,h,I,g.signal)}catch{t.set({search:{query:h,status:"error",hits:[],set:null}})}},setSetVisible(f,p){W(f,p)},async loadAnnotations(f){if(c==null||c.abort(),!f){u=[],t.set({addedSets:S()});return}const p=new AbortController;c=p;try{const{loadAnnotationSets:h}=await import("./annotation-collection-DwJ2R8tG.mjs"),g=await h(f,{request:I,signal:p.signal});if(p.signal.aborted)return;u=g,t.set({addedSets:S()})}catch{}},getContentState(){var q;const{manifest:f,canvasId:p}=t.get();if(!f||!p)return null;const h=n.get(),g=o.get(),y=g&&g.currentTime>0?g.currentTime:null,O=Ee(f,p),T=h&&O.some(ne=>ne.id===h.canvasId)&&!y?h:null,z=(T==null?void 0:T.canvasId)??p;return Ho({manifestId:f.id,canvasId:z,type:(q=O.find(ne=>ne.id===z))==null?void 0:q.type,region:T==null?void 0:T.region,time:y})},setAnnotationPages(f){f!==ie&&(ie=f,X())},fetchAnnotationPages(f){const{manifest:p}=t.get();if(!p||!f.length)return;const h=new Set(f);for(const[g,y,O]of An(D(p).canvases))h.has(O)&&Y(g,y,O)},holdAllAnnotationPages(){B++,X();let f=true;return()=>{f&&B--,f=false}},dispose(){M==null||M.abort(),c==null||c.abort(),l==null||l.abort()}}}function Zs({clover:e,language:t}){const{t:n,langOf:o}=Oo(),[r,s]=ee(null),i=U(n);return i.current=n,L(()=>{let a=null;return e.store.subscribe(()=>{const{manifest:c,canvasId:l,status:d}=e.store.get();if(d!=="ready"||l===a)return;const u=a===null;if(a=l,u)return;const _=Fe(c,l),v=Mo(_==null?void 0:_.label,t),m=i.current("canvasPosition",{index:nt(c,l)+1,total:D(c).views.length});s({label:v.text,lang:v.lang,position:m})})},[e,t]),$("div",{className:"clover-announcer",role:"status","aria-live":"polite","aria-atomic":"true",style:bs,children:[r!=null&&r.label?$(Z,{children:[$("span",{..._n(r.lang),children:r.label}),","," "]}):null,r&&$("span",{..._n(o("canvasPosition")),children:r.position})]})}const Ys=100;function Xs(e,t){const n=U({read:e,onChange:t});n.current={read:e,onChange:t};const o=U(void 0),r=U("");return L(()=>()=>{clearTimeout(o.current),o.current=void 0},[]),pe(()=>{!n.current.onChange||o.current!==void 0||(o.current=setTimeout(()=>{var i,a;o.current=void 0;const s=n.current.read();!s||s.encoded===r.current||(r.current=s.encoded,(a=(i=n.current).onChange)==null||a.call(i,s))},Ys))},[])}function Tn(e,t){return e==null||e.addEventListener("pause",t),e==null||e.addEventListener("seeked",t),()=>{e==null||e.removeEventListener("pause",t),e==null||e.removeEventListener("seeked",t)}}function Qs(e,t){const n=Xs(()=>e.getContentState(),t),o=!!t;L(()=>{if(!o)return;let r=e.store.get().canvasId;const s=e.store.subscribe(()=>{const l=e.store.get().canvasId;l!==r&&(r=l,n())}),i=e.viewport.subscribe(n);let a=Tn(e.media.get(),n);const c=e.media.subscribe(l=>{a(),a=Tn(l,n)});return n(),()=>{s(),i(),c(),a()}},[e,o,n])}function Ui(e){return e.flatMap(t=>ns(t).map(({body:n})=>n))}function Fi(e,t){if(!(e!=null&&e.length)||!t.canvases.length)return null;const n=t.canvases.map(r=>r.id),o=t.bodies.map(r=>r==null?void 0:r.format).filter(Boolean);return e.find(r=>{var s,i,a;return((s=r.canvasId)==null?void 0:s.some(c=>n.includes(c)))||((i=r.format)==null?void 0:i.some(c=>o.includes(c)))||!!((a=r.match)!=null&&a.call(r,t))})??null}function ei(e,t){return e===t?true:!e||!t||e.length!==t.length?false:e.every((n,o)=>n.component===t[o].component&&n.match===t[o].match&&JSON.stringify([n.canvasId,n.format])===JSON.stringify([t[o].canvasId,t[o].format]))}function ti({iiifContent:e,canvasId:t,defaultCanvasId:n,onCanvasChange:o,onStatusChange:r,manifestId:s,defaultManifestId:i,onManifestChange:a,searchQuery:c,request:l,language:d,renderers:u,annotations:_,annotationPages:v="view",onContentStateChange:m,...P}){const k=t!==void 0,C=s!==void 0,b=U({controlled:k,manifestControlled:C,onCanvasChange:o,onStatusChange:r,onManifestChange:a});b.current={controlled:k,manifestControlled:C,onCanvasChange:o,onStatusChange:r,onManifestChange:a};const[S]=ee(()=>Gs({request:l,onCanvasChange:V=>{var R,f;return(f=(R=b.current).onCanvasChange)==null?void 0:f.call(R,V)},onManifestChange:V=>{var R,f;return(f=(R=b.current).onManifestChange)==null?void 0:f.call(R,V)},isControlled:()=>b.current.controlled,isManifestControlled:()=>b.current.manifestControlled}));S.setRequest(l);const I=U({});I.current={canvasId:t,defaultCanvasId:n,manifestId:s??i};const M=Qr(l),F=U(e);F.current=e;const ie=ri(e);L(()=>(S.load(F.current,I.current),()=>S.dispose()),[S,ie,M]),L(()=>{k&&S.syncCanvas(t??null)},[S,k,t]);const[B,Y]=ee(S.store.get().status);L(()=>{let V=S.store.get().status;return S.store.subscribe(()=>{var p,h;const{status:R,error:f}=S.store.get();R!==V&&(V=R,Y(R),(h=(p=b.current).onStatusChange)==null||h.call(p,R,f))})},[S]);const X=U(_);X.current=_;const H=oi(_);L(()=>{S.loadAnnotations(X.current??null)},[S,H,M]),L(()=>{S.setAnnotationPages(v)},[S,v]),Qs(S,m),L(()=>{C&&B==="ready"&&S.syncManifest(s??null)},[S,C,s,B]);const W=ni(S,V=>{var R;return V.status==="ready"?((R=V.manifest)==null?void 0:R.id)??null:null});L(()=>{c&&W&&S.search(c)},[S,c,W]);const ae=U(u);ei(ae.current,u)||(ae.current=u);const ce=ae.current,[ke,Oe]=ee(),[He,De]=ee(d);He!==d&&(De(d),Oe(void 0));const Pe=ke??d;return[_e(()=>({clover:S,language:Pe,renderers:ce,chooseLanguage:Oe}),[S,Pe,ce]),B,P]}function ni(e,t){return fe(e.store.subscribe,()=>t(e.store.get()))}function oi(e){const t=Array.isArray(e)?e:e?[e]:[];return JSON.stringify(t.map(n=>typeof n=="string"?n:(n==null?void 0:n.id)??"object"))}function ri(e){return typeof e=="string"?e:e.id??e["@id"]??e}const ut=new Map;function Hi(e,t){const n=Br(),o=U(t);o.current=t,L(()=>e?Vo(n,o):void 0,[e,n])}function Vo(e,t){for(const[n,o]of[...ut])n!==e&&o.current();return ut.set(e,t),()=>{ut.delete(e)}}let si=0;const ii=e=>Vo(`page-${si+=1}`,{current:e}),Nn=new WeakMap;function ai(e,t){const[n,o]=ee(()=>Nn.get(e)??null);return L(()=>{if(!t||n)return;let r=true;return e().then(s=>{Nn.set(e,s),r&&o(()=>s)},()=>{}),()=>{r=false}},[e,t,n]),n}function Di(e){const t=Math.max(0,Math.floor(e||0)),n=Math.floor(t/3600),o=Math.floor(t%3600/60),r=String(t%60).padStart(2,"0");return n?`${n}:${String(o).padStart(2,"0")}:${r}`:`${o}:${r}`}function ji(e,t){var n;if(e.currentTime=t,!!e.paused)try{(n=e.play())==null||n.catch(()=>{})}catch{}}function Ft(e){if(!e)return;const[t,n]=e.split(","),o=Number(t);if(t===""||Number.isNaN(o))return;if(n===void 0||n==="")return{start:o};const r=Number(n);return Number.isNaN(r)?{start:o}:{start:o,end:r}}function Ht(e){if(typeof e=="string")return $n(e);const t=e;return(t==null?void 0:t.type)==="SpecificResource"?t:typeof(t==null?void 0:t.id)=="string"?$n(t.id):t}const $n=e=>e.replace(/\/((?:t|xywh)=[^/#]*)$/,"#$1");function zo(e){const t=x(e.thumbnail)[0];return t&&typeof t=="object"?{thumbnail:t}:{}}const Rn=new WeakMap,Ln=[];function ci(e,t,n){if(!e||!t)return Ln;let o=Rn.get(e);o||Rn.set(e,o=new Map);const r=`${t}|${n??""}`,s=o.get(r);if(s)return s;const i=[],a=new Set,c=d=>{if(!d||a.has(d.id??d))return;a.add(d.id??d);const u=!x(d.behavior).includes("no-nav");for(const _ of x(d.items)){if((_==null?void 0:_.type)==="Range"){c(_);continue}if(!u)continue;const v=tt(Ht(_));if(v.id.split("#")[0]!==t)continue;const m=Ft(v.t);m&&i.push({...d.id?{id:d.id}:{},label:d.label,...m,...zo(d)})}};for(const d of x(e.structures))c(d);i.sort((d,u)=>d.start-u.start);const l=i.length?i.map((d,u)=>{var _;return{...d,end:d.end??((_=i[u+1])==null?void 0:_.start)??n}}):Ln;return o.set(r,l),l}const Un=new WeakMap,Fn=[];function qo(e){if(!e)return Fn;const t=Un.get(e);if(t)return t;const n=new Map(x(e.items).map((c,l)=>[c==null?void 0:c.id,l])),o=new Set,r=c=>{var b,S;if(!c||o.has(c.id??c))return[];o.add(c.id??c);const l=[],d=[],u=[];let _;for(const I of x(c.items))if((I==null?void 0:I.type)==="Range"){const M=r(I);l.push(...M),M.forEach(F=>d.push(...F.canvasIds))}else{const M=tt(Ht(I));if(!M.id)continue;_??(_=M),d.push(M.id),u.push(M)}const v=x(c.behavior);if(v.includes("no-nav"))return l;const m=_??void 0,P={id:c.id??`range-${o.size}`,label:c.label,canvasId:(m==null?void 0:m.id)??((b=l[0])==null?void 0:b.canvasId),canvasIds:[...new Set(d)],...v.includes("sequence")?{sequence:true}:{},...zo(c),children:l},k=Ft(m==null?void 0:m.t);return k?P.time=k:!m&&((S=l[0])!=null&&S.time)&&(P.time=l[0].time),m!=null&&m.rect&&(P.region=m.rect),(v.includes("sequence")&&u.length>1&&!u.some(I=>I.t)||li(u,n))&&(P.parts=u.map(I=>({canvasId:I.id,...I.rect?{region:I.rect}:{}}))),[P]},s=x(e.structures).flatMap(r),i=s.length===1&&s[0].children.length?s[0].children:s,a=i.length?i:Fn;return Un.set(e,a),a}function li(e,t){return!e.length||e.some(n=>n.t)?false:e.some(n=>n.rect)?true:e.some((n,o)=>o>0&&t.get(n.id)!==(t.get(e[o-1].id)??NaN)+1)}function ui(e,t,n,o){let r=null,s=null;const i=(l,d,u)=>!l||u>l.depth||u===l.depth&&!(l.sequence&&d.sequence),a=(l,d,u)=>{const _=u||l.id===o;if(t&&l.canvasIds.includes(t)&&(!l.time||n!==void 0&&n>=l.time.start&&(l.time.end===void 0||n<l.time.end))){const m={id:l.id,depth:d,...l.sequence?{sequence:true}:{}};i(r,l,d)&&(r=m),_&&i(s,l,d)&&(s=m)}l.children.forEach(v=>a(v,d+1,_))};e.forEach(l=>a(l,0,false));const c=s??r;return c?c.id:null}const Bi=Object.freeze(Object.defineProperty({__proto__:null,chaptersOf:ci,currentContents:ui,parseTime:Ft,rangeItemTarget:Ht,tableOfContents:qo},Symbol.toStringTag,{value:"Module"}));Ce(31,"components/Label/Label","@layer clover{.clover-label{text-wrap:balance}}");Ce(32,"components/Status/Status","@layer clover{.clover-status{margin:0;padding:var(--clover-space-m);color:var(--clover-color-primary-muted, #26292b)}.clover-status[data-status=loading]{display:flex}.clover-status[data-status=error] p{margin:0}.clover-status-detail{font-size:var(--clover-text-s)}}");const Wi=()=>import("./controls-BvC6zo32.mjs"),fi=()=>import("./renderers-BXcv_AqV.mjs");function Vi(e){te(()=>()=>e==null?void 0:e(null),[e])}function di(e,t,n){const o=()=>e.store.get();return{get state(){return o()},subscribe(r){return e.store.subscribe(()=>r(o()))},get language(){return t()},status(){const{status:r,error:s}=o();return{status:r,error:s}},manifest(){return o().manifest},sequence(){return D(o().manifest)},visibleCanvases(){return Ee(o().manifest,o().canvasId)},activeCanvas(){return Fe(o().manifest,o().canvasId)},navigation(){const{manifest:r,canvasId:s}=o();return Ks(e,nt(r,s),D(r).views.length)},annotationPages(){return $e(o().manifest,o().addedSets)},annotationSets(){return $e(o().manifest,o().addedSets)},annotationCollection(){return Is(o().manifest,o().addedSets)},contents(){return qo(o().manifest)},localize(r){return Mo(r,t())},t(r,s){return j.t(r,s,K)},langOf(r){return j.langOf(r,n(),K)},oneOpen(r){return ii(r)}}}function _i(e,t,n){return Object.defineProperties(Object.create(e),Object.getOwnPropertyDescriptors(di(e,t,n)))}const pi=Ue(null);function vi({hosted:e,props:t,children:n}){const o=ai(fi,!!t.renderers);return!t.iiifContent||t.renderers&&!o?null:$(hi,{element:e.element,props:t,toRenderers:o==null?void 0:o.toRenderers,children:n})}function hi({element:e,props:t,toRenderers:n,children:o}){const{canvasId:r,manifestId:s,lang:i,onReady:a,renderers:c,...l}=t,d=is(void 0,i);d.ref(e);const u=_e(()=>n==null?void 0:n(c),[n,c]),[_,v]=ti({...l,defaultCanvasId:r,defaultManifestId:s,renderers:u}),{clover:m,language:P}=_,k=U({language:P,host:d.hostLanguage});k.current={language:P,host:d.hostLanguage};const C=_e(()=>_i(m,()=>k.current.language,()=>k.current.host),[m]);return te(()=>(a==null||a(C),()=>a==null?void 0:a(null)),[C,a]),Hn(m,r,b=>m.goTo(b)),Hn(m,s,b=>void m.goToManifest(b)),te(()=>(e.classList.add("clover-root"),()=>e.classList.remove("clover-root")),[e]),te(()=>{e.setAttribute("data-status",v)},[e,v]),te(()=>()=>e.removeAttribute("data-status"),[e]),$(et.Provider,{value:_,children:$(Rt.Provider,{value:d.hostLanguage,children:$(pi.Provider,{value:C,children:[o,Tt($(Zs,{clover:m,language:P}),e)]})})})}function Hn(e,t,n){const o=U(t);L(()=>{t&&t!==o.current&&n(t),o.current=t},[e,t])}const zi=Object.freeze(Object.defineProperty({__proto__:null,RootElement:vi},Symbol.toStringTag,{value:"Module"}));export{Tt as $,U as A,Ft as B,fe as C,vr as D,ji as E,D as F,Ns as G,Vn as H,Mi as I,qo as J,ui as K,Ei as L,Cs as M,Yo as N,xi as O,Ge as P,Ue as Q,bi as R,x as S,_e as T,Eo as U,Qo as V,Li as W,Oi as X,Ci as Y,Fe as Z,te as _,Oo as a,Si as a0,Xr as a1,is as a2,cs as a3,Xs as a4,Tn as a5,Rt as a6,ts as a7,tt as a8,Io as a9,Ps as aA,Je as aB,pi as aC,js as aD,vs as aE,Po as aF,Ss as aG,Bs as aH,yi as aI,wi as aJ,Ri as aK,Bi as aL,zi as aM,Pi as aa,Hi as ab,ns as ac,Ai as ad,Ks as ae,Is as af,nt as ag,Di as ah,ti as ai,Zs as aj,et as ak,Ii as al,Es as am,ci as an,$i as ao,$o as ap,jo as aq,j as ar,Yr as as,Ho as at,Qr as au,xs as av,Ht as aw,To as ax,Se as ay,Vs as az,Br as b,ki as c,ee as d,rs as e,ai as f,fi as g,Vi as h,Wi as i,Qs as j,Z as k,_n as l,Fi as m,Ee as n,Uo as o,Ui as p,pe as q,Ti as r,Ni as s,Mo as t,$ as u,bs as v,lt as w,ue as x,L as y,gr as z};