@nulib/clover 4.5.0 → 4.5.2

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 (229) hide show
  1. package/dist/components/Root/useRootState.mjs +9 -6
  2. package/dist/i18n/locales/index.mjs +1 -0
  3. package/dist/i18n/locales/it.json.mjs +5 -0
  4. package/dist/web-components/{About-BklM8JA9.mjs → About-CQxtgS3v.mjs} +1 -1
  5. package/dist/web-components/{AnnotationItems-4mbvOrhN.mjs → AnnotationItems-CcK8lOdr.mjs} +1 -1
  6. package/dist/web-components/{AnnotationMenu-DtMaxXf5.mjs → AnnotationMenu-Byf1nA-O.mjs} +1 -1
  7. package/dist/web-components/{AnnotationState-BuEpq99k.mjs → AnnotationState-idcYZf3N.mjs} +1 -1
  8. package/dist/web-components/{Annotations-Dyg-RAdd.mjs → Annotations-0gzRTwNG.mjs} +1 -1
  9. package/dist/web-components/{Annotations-oPabBO7j.mjs → Annotations-BznHfXJT.mjs} +1 -1
  10. package/dist/web-components/{Body-CD7AtOPv.mjs → Body-Do9PiELy.mjs} +1 -1
  11. package/dist/web-components/{BodyAlert-DzW4__bK.mjs → BodyAlert-CpsyVtYl.mjs} +1 -1
  12. package/dist/web-components/{Button-1To2Pwuz.mjs → Button-DqfkGSl5.mjs} +1 -1
  13. package/dist/web-components/{Camera-B82ZMekU.mjs → Camera-bs3W3OK0.mjs} +1 -1
  14. package/dist/web-components/{Canvas2DBackend-Ds-qoQ0W.mjs → Canvas2DBackend-9VTWQiW6.mjs} +1 -1
  15. package/dist/web-components/{CanvasView-B4fnYim4.mjs → CanvasView-m9ooNUhD.mjs} +2 -2
  16. package/dist/web-components/{CaptionDetails-TTAEPH02.mjs → CaptionDetails-yyxvF-_h.mjs} +1 -1
  17. package/dist/web-components/{ChaptersMenu-DhbAktrS.mjs → ChaptersMenu-DCyICayx.mjs} +1 -1
  18. package/dist/web-components/{Chevron-Br3zRRMX.mjs → Chevron-DpLzbCaE.mjs} +1 -1
  19. package/dist/web-components/{ChoiceMenu-B4_doj7b.mjs → ChoiceMenu-_z-WmYj6.mjs} +1 -1
  20. package/dist/web-components/{Collection-DrMfq53r.mjs → Collection-Kwdu1S-6.mjs} +1 -1
  21. package/dist/web-components/{CollectionSelect-PP7IEcwu.mjs → CollectionSelect-vO2qCVbK.mjs} +1 -1
  22. package/dist/web-components/{Connected-BOPNEv3j.mjs → Connected-1kdGMIWC.mjs} +1 -1
  23. package/dist/web-components/{Connected-CN94wOYw.mjs → Connected-DdmRznGj.mjs} +1 -1
  24. package/dist/web-components/{Connected-BguZSgy4.mjs → Connected-wXkAqvjL.mjs} +1 -1
  25. package/dist/web-components/{Contents-Dn7MutL9.mjs → Contents-Bfmghfq-.mjs} +1 -1
  26. package/dist/web-components/{ControlMenu-DlP3JsqV.mjs → ControlMenu-BaBwqPBx.mjs} +1 -1
  27. package/dist/web-components/ControlsFade-BJe8pU1f.mjs +1 -0
  28. package/dist/web-components/{CountMenu-Aoott7Hu.mjs → CountMenu-mvPiRqfS.mjs} +1 -1
  29. package/dist/web-components/Cue-DKACn0J1.mjs +1 -0
  30. package/dist/web-components/{Document-BjTWX_7P.mjs → Document-CPD-9KDe.mjs} +1 -1
  31. package/dist/web-components/{DomLayers-GnBlZ7yI.mjs → DomLayers-B4wyEylP.mjs} +1 -1
  32. package/dist/web-components/{Download-C1RNBLdn.mjs → Download-DPJ0jEM8.mjs} +1 -1
  33. package/dist/web-components/{EntryBodies-BG4F8uub.mjs → EntryBodies-BeD_WacH.mjs} +1 -1
  34. package/dist/web-components/{EntryThumbnail-BJPQwkQw.mjs → EntryThumbnail-Cs_9m02f.mjs} +1 -1
  35. package/dist/web-components/{FieldPill-CgMPW9BB.mjs → FieldPill-3OFVRLOg.mjs} +1 -1
  36. package/dist/web-components/{FrameAnimation-DWd0yBuN.mjs → FrameAnimation-2B6rRU4W.mjs} +1 -1
  37. package/dist/web-components/{Gallery-DpJqgaft.mjs → Gallery-Bt8ZE7KN.mjs} +1 -1
  38. package/dist/web-components/{GlobeGlyph-CLM28n1E.mjs → GlobeGlyph-BcR00ptO.mjs} +1 -1
  39. package/dist/web-components/{HideToggle-C4mW4-CK.mjs → HideToggle-CzoPlLH7.mjs} +1 -1
  40. package/dist/web-components/{ImageControls-B36Hng03.mjs → ImageControls-6aS0WiPB.mjs} +1 -1
  41. package/dist/web-components/{Items-BApzELFW.mjs → Items-Cylhcqm3.mjs} +1 -1
  42. package/dist/web-components/{Label-CRTQApU-.mjs → Label-DHHchol3.mjs} +1 -1
  43. package/dist/web-components/{LanguageChoice-B1941Wuu.mjs → LanguageChoice-I2zbqR8s.mjs} +1 -1
  44. package/dist/web-components/{LanguageMenu-yWDzK3U0.mjs → LanguageMenu-D7wMhxR_.mjs} +1 -1
  45. package/dist/web-components/{LightboxView-BLHI5EIj.mjs → LightboxView-P-bt35KW.mjs} +1 -1
  46. package/dist/web-components/{ListEnd-CIiLZZzc.mjs → ListEnd-Ch79vv6H.mjs} +1 -1
  47. package/dist/web-components/{Loaded-X_Pr53fq.mjs → Loaded-nfW9JcE1.mjs} +1 -1
  48. package/dist/web-components/{LoadedCanvas-1Bi6-QtF.mjs → LoadedCanvas-Bfrvk-Yt.mjs} +1 -1
  49. package/dist/web-components/LoadedMap-BaakosFd.mjs +1 -0
  50. package/dist/web-components/{Loading-CyoVEwax.mjs → Loading-27_CRfmr.mjs} +1 -1
  51. package/dist/web-components/{Map-2oeDIJzq.mjs → Map-VBS7o7LM.mjs} +1 -1
  52. package/dist/web-components/{MapView-DX3ZLqmp.mjs → MapView-D-RJ69f2.mjs} +2 -2
  53. package/dist/web-components/{Markup-B2GbrisO.mjs → Markup-zy52Xoel.mjs} +1 -1
  54. package/dist/web-components/{MediaBody-eFAZIyGv.mjs → MediaBody-Bh8301OV.mjs} +1 -1
  55. package/dist/web-components/{MediaBody-DZ9JgkKF.mjs → MediaBody-CMOc8TAG.mjs} +1 -1
  56. package/dist/web-components/{NavDate-BwV4kPl-.mjs → NavDate-Hjz-ZUV8.mjs} +1 -1
  57. package/dist/web-components/{Navigator-CTrfNuwj.mjs → Navigator-B-vYs2Cu.mjs} +1 -1
  58. package/dist/web-components/{Pager-BGjj90LQ.mjs → Pager-DtwQLNol.mjs} +1 -1
  59. package/dist/web-components/{PagerLayout-Ce7zW_yB.mjs → PagerLayout-D10GPTRD.mjs} +1 -1
  60. package/dist/web-components/{Panel-77xi6y2C.mjs → Panel-DrIRuV4y.mjs} +1 -1
  61. package/dist/web-components/PanelPart-xW94FuNJ.mjs +1 -0
  62. package/dist/web-components/{PanelToggle-Cj_FjIgS.mjs → PanelToggle-CXt2QzGI.mjs} +1 -1
  63. package/dist/web-components/{PartOfManifest-B0RwR4iy.mjs → PartOfManifest-D5WYs-Kh.mjs} +1 -1
  64. package/dist/web-components/{Pending-s7yYnZzR.mjs → Pending-DRm1E_06.mjs} +1 -1
  65. package/dist/web-components/{PlaceBox-pt7Vmrs1.mjs → PlaceBox-tTnsemz1.mjs} +1 -1
  66. package/dist/web-components/{Placeholder-BK-eqSCl.mjs → Placeholder-B8Y0k5OK.mjs} +1 -1
  67. package/dist/web-components/{Position-CKsSKMgZ.mjs → Position-bBjejirV.mjs} +1 -1
  68. package/dist/web-components/{Primitives-T7usOLie.mjs → Primitives-PRo4k-fb.mjs} +1 -1
  69. package/dist/web-components/{Provider-B2k1G-E0.mjs → Provider-CrpDmnzZ.mjs} +1 -1
  70. package/dist/web-components/{ReadMore-Cs2t9xkI.mjs → ReadMore-EjrUmbD0.mjs} +1 -1
  71. package/dist/web-components/{Root-D942bSXu.mjs → Root-DK9ssTa2.mjs} +1 -1
  72. package/dist/web-components/Scene-DYbvcQXW.mjs +1 -0
  73. package/dist/web-components/{SceneView-_CNm8cGL.mjs → SceneView-B38QNUQr.mjs} +1 -1
  74. package/dist/web-components/{Search-u43mfzT8.mjs → Search-D5f3L4Mi.mjs} +1 -1
  75. package/dist/web-components/{Sections-CPU5bGvk.mjs → Sections-kRJ1okE8.mjs} +1 -1
  76. package/dist/web-components/{SeekMarks-CnqVS-ym.mjs → SeekMarks-DqKFHbLX.mjs} +1 -1
  77. package/dist/web-components/{StandaloneItems-D9Og9pdI.mjs → StandaloneItems-C2e9PPxg.mjs} +1 -1
  78. package/dist/web-components/{Status-Cxev3WuC.mjs → Status-CjtyBONJ.mjs} +1 -1
  79. package/dist/web-components/{Steps-l7_NsIBr.mjs → Steps-BEkT1NQg.mjs} +1 -1
  80. package/dist/web-components/{TargetItems-nP3Oa9hh.mjs → TargetItems-Itkqt2Tb.mjs} +1 -1
  81. package/dist/web-components/Timeline-g0fwghKo.mjs +1 -0
  82. package/dist/web-components/{Tip-D2pR3HW4.mjs → Tip-ByWHicZ5.mjs} +1 -1
  83. package/dist/web-components/{Transcript-D_a9jio-.mjs → Transcript-CsQ9bYfS.mjs} +1 -1
  84. package/dist/web-components/{Transport-CowDRPK7.mjs → Transport-C1bwJBQM.mjs} +1 -1
  85. package/dist/web-components/{Transport-uqpqUIKE.mjs → Transport-DXc48Ck8.mjs} +1 -1
  86. package/dist/web-components/{annotation-collection-d6JyHnML.mjs → annotation-collection-x1YCBmx8.mjs} +1 -1
  87. package/dist/web-components/{annotation-name-BWTrB9nK.mjs → annotation-name-dLmSFXbG.mjs} +1 -1
  88. package/dist/web-components/{annotations-content-Bomfao_5.mjs → annotations-content-C0p3XB-1.mjs} +1 -1
  89. package/dist/web-components/{body-Dfn0GJa2.mjs → body-DhIi0tSa.mjs} +1 -1
  90. package/dist/web-components/{canvas-DHIn2DIV.mjs → canvas-BMBhMAO5.mjs} +1 -1
  91. package/dist/web-components/{cloverEngine-DDVOcZTv.mjs → cloverEngine-CgwMyPTV.mjs} +1 -1
  92. package/dist/web-components/{content-state-reader-CyNkhTZY.mjs → content-state-reader-DYl2djp5.mjs} +1 -1
  93. package/dist/web-components/{controlGlyphs-Dymy1PkA.mjs → controlGlyphs-CAs5NitM.mjs} +1 -1
  94. package/dist/web-components/{controls-CIkf2UoE.mjs → controls-BFETnZ7b.mjs} +1 -1
  95. package/dist/web-components/{downloads-DCsDCcA8.mjs → downloads-Dxku671h.mjs} +1 -1
  96. package/dist/web-components/{dragToClose-BKcu5guw.mjs → dragToClose-BJ07Mayh.mjs} +1 -1
  97. package/dist/web-components/{engine-BhdQsvOB.mjs → engine-zjivMDZQ.mjs} +1 -1
  98. package/dist/web-components/{engines-pnfVMoUH.mjs → engines-DdvyIGhW.mjs} +1 -1
  99. package/dist/web-components/{fetchManifest-QmVIeaHo.mjs → fetchManifest-J64cuwEZ.mjs} +1 -1
  100. package/dist/web-components/{fromManifest-CvXwGGRI.mjs → fromManifest-BByCRrb9.mjs} +1 -1
  101. package/dist/web-components/{glyphs-BAh9Lia0.mjs → glyphs-3j_wsdG0.mjs} +1 -1
  102. package/dist/web-components/{hooks-CTqjdpYl.mjs → hooks-uHKfYuKB.mjs} +1 -1
  103. package/dist/web-components/{image-layers-Dp2qOSA5.mjs → image-layers-BCWDCZEA.mjs} +1 -1
  104. package/dist/web-components/{image-service-content-B5ICMeIO.mjs → image-service-content-BzLp6nth.mjs} +1 -1
  105. package/dist/web-components/{imageService-XKWMYAcG.mjs → imageService-BIVE0K1I.mjs} +1 -1
  106. package/dist/web-components/{index-BuoWCrun.mjs → index-CjNkvvfl.mjs} +1 -1
  107. package/dist/web-components/index.mjs +1 -1
  108. package/dist/web-components/it-UWaPOPDN.mjs +1 -0
  109. package/dist/web-components/items-Bc1JPQjI.mjs +1 -0
  110. package/dist/web-components/{items-DjpIYUxD.mjs → items-DDv9RUBA.mjs} +1 -1
  111. package/dist/web-components/label-CS0CGhZ5.mjs +1 -0
  112. package/dist/web-components/{layout-B3HyDCsP.mjs → layout-CdBuqKxn.mjs} +1 -1
  113. package/dist/web-components/{link-Mnt5GrKM.mjs → link-BiM9KdpG.mjs} +1 -1
  114. package/dist/web-components/logo-CFz7_HVm.mjs +1 -0
  115. package/dist/web-components/{models-NfaX6B8u.mjs → models-CObUKgMl.mjs} +1 -1
  116. package/dist/web-components/{nodes-CRrc5Svn.mjs → nodes-BJ4P1NTa.mjs} +1 -1
  117. package/dist/web-components/{overlayImage-D7Knsh4X.mjs → overlayImage-lYLaIThc.mjs} +1 -1
  118. package/dist/web-components/{panel-DUMFdAc8.mjs → panel-CoYAVlbj.mjs} +1 -1
  119. package/dist/web-components/part-cbvAb44O.mjs +1 -0
  120. package/dist/web-components/{playerSurface-CF5g-4Po.mjs → playerSurface-DuHYLLBb.mjs} +1 -1
  121. package/dist/web-components/{pointer-PJLHbbSD.mjs → pointer--iHWeLVV.mjs} +1 -1
  122. package/dist/web-components/{provider-b4id5kCa.mjs → provider-DcsevgMJ.mjs} +1 -1
  123. package/dist/web-components/{range-regions-DCY76ydS.mjs → range-regions-Bnyl9SWk.mjs} +1 -1
  124. package/dist/web-components/{read-more-UM90-AEc.mjs → read-more-C9PqroD1.mjs} +1 -1
  125. package/dist/web-components/{readingLanguages-Qdn21-7Q.mjs → readingLanguages-BB0nHlI0.mjs} +1 -1
  126. package/dist/web-components/{rendererSurface-PZlq-wa_.mjs → rendererSurface-BAvGJcFy.mjs} +2 -2
  127. package/dist/web-components/{renderers-DIHonXTq.mjs → renderers-DGfMWk93.mjs} +1 -1
  128. package/dist/web-components/{resource-BlU2Ese6.mjs → resource-Dt6dILeb.mjs} +1 -1
  129. package/dist/web-components/{save-file-GI0ekTmd.mjs → save-file-DzI4VfDl.mjs} +1 -1
  130. package/dist/web-components/{search-CHjjiXkB.mjs → search-DLXYDW3B.mjs} +1 -1
  131. package/dist/web-components/shared-DJyYaNgB.mjs +1 -0
  132. package/dist/web-components/{show-link-BlLkTYtm.mjs → show-link-DRW4U86r.mjs} +1 -1
  133. package/dist/web-components/{sizedImage-BoGT1x5n.mjs → sizedImage-Bb488in6.mjs} +1 -1
  134. package/dist/web-components/{split-OO6-WiG3.mjs → split-BSvilwgY.mjs} +1 -1
  135. package/dist/web-components/{status-CSenPCO4.mjs → status-DCylOE_H.mjs} +1 -1
  136. package/dist/web-components/{styles-Bvw9LFU7.mjs → styles-Cm1KSkd5.mjs} +1 -1
  137. package/dist/web-components/three.mjs +1 -1
  138. package/dist/web-components/{thumbnail-DYJHCrW_.mjs → thumbnail-IWjwr85c.mjs} +1 -1
  139. package/dist/web-components/{tip-Dr1mfd4o.mjs → tip-XxruPb74.mjs} +1 -1
  140. package/dist/web-components/{toggle-86lqpaU9.mjs → toggle-Bm06TZio.mjs} +1 -1
  141. package/dist/web-components/{useContainerName-BfNL6p3O.mjs → useContainerName-jjktq7OB.mjs} +1 -1
  142. package/dist/web-components/{useControlsVisibility-C3LCnrb7.mjs → useControlsVisibility-K1HUKs93.mjs} +1 -1
  143. package/dist/web-components/{useNearViewport-Dk5q1rzk.mjs → useNearViewport-DpYbV4NQ.mjs} +1 -1
  144. package/dist/web-components/{useScrollTrack-B_yYmQDS.mjs → useScrollTrack-Cy6z-b7G.mjs} +1 -1
  145. package/dist/web-components/viewer/{AnnotationItems-BbPnS9EE.mjs → AnnotationItems-BnihkLNH.mjs} +1 -1
  146. package/dist/web-components/viewer/{AnnotationMenu-BGv-HimF.mjs → AnnotationMenu-Dha0gE5m.mjs} +1 -1
  147. package/dist/web-components/viewer/{AnnotationState-uRm7bEwg.mjs → AnnotationState-fj1N93ri.mjs} +1 -1
  148. package/dist/web-components/viewer/{Annotations-_2PMmUfu.mjs → Annotations-CW-BFATW.mjs} +1 -1
  149. package/dist/web-components/viewer/{Annotations-reaO1ILe.mjs → Annotations-DuWIPFH3.mjs} +1 -1
  150. package/dist/web-components/viewer/{Canvas2DBackend-Dru1ImJh.mjs → Canvas2DBackend-mmhuXqdi.mjs} +1 -1
  151. package/dist/web-components/viewer/{CaptionDetails-3OlEaKmX.mjs → CaptionDetails-DA6_oiQF.mjs} +1 -1
  152. package/dist/web-components/viewer/{ChaptersMenu-kchuXDZy.mjs → ChaptersMenu-C2WL8jFt.mjs} +1 -1
  153. package/dist/web-components/viewer/{ChoiceMenu-C8pEoSC6.mjs → ChoiceMenu-QB_5keQb.mjs} +1 -1
  154. package/dist/web-components/viewer/{Collection-B4LN_80C.mjs → Collection-D5a6WYZI.mjs} +1 -1
  155. package/dist/web-components/viewer/{Connected-CzPY2rgu.mjs → Connected-C1NtY97-.mjs} +1 -1
  156. package/dist/web-components/viewer/{Connected-80hCJuhg.mjs → Connected-Di1-LIOg.mjs} +1 -1
  157. package/dist/web-components/viewer/{Contents-D4jw_lGe.mjs → Contents-BzTwcDZy.mjs} +1 -1
  158. package/dist/web-components/viewer/{ControlMenu-C3Jh10iR.mjs → ControlMenu-CxmfQ8Cm.mjs} +1 -1
  159. package/dist/web-components/viewer/ControlsFade-BVpQ-3q7.mjs +1 -0
  160. package/dist/web-components/viewer/{CountMenu-Blz1oHgs.mjs → CountMenu-CgQWpBDd.mjs} +1 -1
  161. package/dist/web-components/viewer/{Cue-BnC9XuZp.mjs → Cue-DuP2wssL.mjs} +1 -1
  162. package/dist/web-components/viewer/{Document-BG0F97nL.mjs → Document-DId3Ww6w.mjs} +1 -1
  163. package/dist/web-components/viewer/{DomLayers-BL6vNcmI.mjs → DomLayers-D6T0qkEm.mjs} +1 -1
  164. package/dist/web-components/viewer/{Download-B0BD_SzR.mjs → Download-Cj4jZnPF.mjs} +1 -1
  165. package/dist/web-components/viewer/{EntryBodies-Cbmr-Eg4.mjs → EntryBodies-JslI0mKb.mjs} +1 -1
  166. package/dist/web-components/viewer/{EntryThumbnail-DAdEyIuL.mjs → EntryThumbnail-CHc7jDuf.mjs} +1 -1
  167. package/dist/web-components/viewer/{FieldPill-DNL96sDW.mjs → FieldPill-CeO1-KpF.mjs} +1 -1
  168. package/dist/web-components/viewer/{FrameAnimation-BO3QVSUw.mjs → FrameAnimation-CCXxhEGY.mjs} +1 -1
  169. package/dist/web-components/viewer/{Gallery-DN7ajF4i.mjs → Gallery-CLw13i4w.mjs} +1 -1
  170. package/dist/web-components/viewer/{GlobeGlyph-B-Wd0AkW.mjs → GlobeGlyph-XyW874Xa.mjs} +1 -1
  171. package/dist/web-components/viewer/{HideToggle-DH0u1wFC.mjs → HideToggle-CbduRY6y.mjs} +1 -1
  172. package/dist/web-components/viewer/{ImageControls-Lz-ESk1X.mjs → ImageControls-BlpTLXbh.mjs} +1 -1
  173. package/dist/web-components/viewer/{LanguageChoice-BkQkSsPE.mjs → LanguageChoice-D26bb87S.mjs} +1 -1
  174. package/dist/web-components/viewer/{LanguageMenu-gIJHQiBc.mjs → LanguageMenu-ECLF6mSI.mjs} +1 -1
  175. package/dist/web-components/viewer/{LightboxView-D066VR5m.mjs → LightboxView-CFvsyP57.mjs} +1 -1
  176. package/dist/web-components/viewer/{ListEnd-D4nNouKZ.mjs → ListEnd-BbZ0cF34.mjs} +1 -1
  177. package/dist/web-components/viewer/{MapView-C_8iciAK.mjs → MapView-DJ0uaPAX.mjs} +2 -2
  178. package/dist/web-components/viewer/{MediaBody-D4hiLqhm.mjs → MediaBody-CSzkjuJn.mjs} +1 -1
  179. package/dist/web-components/viewer/{NavDate-BMVT6UwB.mjs → NavDate-1vpKxZK1.mjs} +1 -1
  180. package/dist/web-components/viewer/{Navigator-DbBBbDZn.mjs → Navigator-CSlUlVI-.mjs} +1 -1
  181. package/dist/web-components/viewer/{PagerLayout-D771pC5E.mjs → PagerLayout-CeqR69iN.mjs} +1 -1
  182. package/dist/web-components/viewer/PanelPart-BCQo2YZ-.mjs +1 -0
  183. package/dist/web-components/viewer/{PartOfManifest-BMaH_tsn.mjs → PartOfManifest-BBTld3mZ.mjs} +1 -1
  184. package/dist/web-components/viewer/{PlaceBox-OytRM9_s.mjs → PlaceBox-jyu7a0on.mjs} +1 -1
  185. package/dist/web-components/viewer/{Placeholder-BWuq47Sw.mjs → Placeholder-CedWZbsU.mjs} +1 -1
  186. package/dist/web-components/viewer/{Search-Bmz7mUbA.mjs → Search-D_hveAZH.mjs} +1 -1
  187. package/dist/web-components/viewer/{SeekMarks-CAsMUj2N.mjs → SeekMarks-YIQFWYfI.mjs} +1 -1
  188. package/dist/web-components/viewer/{StandaloneItems-BCHhR9sF.mjs → StandaloneItems-DcLGj-VV.mjs} +1 -1
  189. package/dist/web-components/viewer/{Steps-BDT2W9QN.mjs → Steps-BLXeVvHo.mjs} +1 -1
  190. package/dist/web-components/viewer/{TargetItems-CkZbD8GE.mjs → TargetItems-BNor7HFs.mjs} +1 -1
  191. package/dist/web-components/viewer/{Transcript-BbFXEJSc.mjs → Transcript-Crl3zPhV.mjs} +1 -1
  192. package/dist/web-components/viewer/{Transport-PgBpf33S.mjs → Transport-C_pFOBzJ.mjs} +1 -1
  193. package/dist/web-components/viewer/{Transport-CI5UkA3K.mjs → Transport-DFssphP9.mjs} +1 -1
  194. package/dist/web-components/viewer/{annotation-collection-l4zuf56A.mjs → annotation-collection-BLtyEjru.mjs} +1 -1
  195. package/dist/web-components/viewer/{annotation-name-CRl0w7NR.mjs → annotation-name-mRcTA1c1.mjs} +1 -1
  196. package/dist/web-components/viewer/{annotations-content-CYjPRTZn.mjs → annotations-content-DBQgx1j7.mjs} +1 -1
  197. package/dist/web-components/viewer/{cloverEngine-2b_guC4P.mjs → cloverEngine-BF_4X8lm.mjs} +1 -1
  198. package/dist/web-components/viewer/{content-state-reader-Cm-rvusT.mjs → content-state-reader-Bmd-lwNd.mjs} +1 -1
  199. package/dist/web-components/viewer/{dragToClose-DXXIWV62.mjs → dragToClose-aeU6bjg0.mjs} +1 -1
  200. package/dist/web-components/viewer/{fetchManifest-DorkDXGC.mjs → fetchManifest-D3mfpSBh.mjs} +1 -1
  201. package/dist/web-components/viewer/{host-DscGC2S0.mjs → host-DKJIdeDV.mjs} +1 -1
  202. package/dist/web-components/viewer/{image-layers-CZ9-efD2.mjs → image-layers-CwutsuDL.mjs} +1 -1
  203. package/dist/web-components/viewer/{image-service-content-C60w8IZm.mjs → image-service-content-DUG6BXnh.mjs} +1 -1
  204. package/dist/web-components/viewer/index.mjs +1 -1
  205. package/dist/web-components/viewer/{link-CysSctMX.mjs → link-BUSPRbyE.mjs} +1 -1
  206. package/dist/web-components/viewer/{overlayImage-CwPnVnIi.mjs → overlayImage-D8N9rwQF.mjs} +1 -1
  207. package/dist/web-components/viewer/{range-regions-C7ZBtSyb.mjs → range-regions-D4lx-cRg.mjs} +1 -1
  208. package/dist/web-components/viewer/{renderers-D4wJiQYv.mjs → renderers-CFKRycnu.mjs} +1 -1
  209. package/dist/web-components/viewer/{save-file-uqsNOVPU.mjs → save-file-D8fcn3qy.mjs} +1 -1
  210. package/dist/web-components/viewer/{search-CWuD5EZA.mjs → search-CXoMviyv.mjs} +1 -1
  211. package/dist/web-components/viewer/{useControlsVisibility-KTxa_3yJ.mjs → useControlsVisibility-nGLR8EFY.mjs} +1 -1
  212. package/dist/web-components/viewer/{viewer-C3d_TgAI.mjs → viewer-4EayGlH3.mjs} +5 -5
  213. package/dist/web-components/viewer/{vtt-DqtJ20x0.mjs → vtt-CMfIBDAL.mjs} +1 -1
  214. package/dist/web-components/{viewer-BoyWG64n.mjs → viewer-FSKFHjRd.mjs} +1 -1
  215. package/dist/web-components/{vtt-BNuRzGap.mjs → vtt-COiqtr-4.mjs} +1 -1
  216. package/package.json +1 -1
  217. package/dist/web-components/ControlsFade-Cuh5Mqe7.mjs +0 -1
  218. package/dist/web-components/Cue-BAj92VWz.mjs +0 -1
  219. package/dist/web-components/LoadedMap-58bpxj_6.mjs +0 -1
  220. package/dist/web-components/PanelPart-Cm9VykIu.mjs +0 -1
  221. package/dist/web-components/Scene-Cwzisn4E.mjs +0 -1
  222. package/dist/web-components/Timeline-C1g1MXp5.mjs +0 -1
  223. package/dist/web-components/items-8ZEJCxWU.mjs +0 -1
  224. package/dist/web-components/label-BWHRHAY2.mjs +0 -1
  225. package/dist/web-components/logo-YR9jXUE4.mjs +0 -1
  226. package/dist/web-components/part-C_V28rvN.mjs +0 -1
  227. package/dist/web-components/shared-DgJ0bXca.mjs +0 -1
  228. package/dist/web-components/viewer/ControlsFade-BKkJ95B5.mjs +0 -1
  229. package/dist/web-components/viewer/PanelPart-2H7jd6PS.mjs +0 -1
@@ -1 +1 @@
1
- import{bx as _}from"./viewer-C3d_TgAI.mjs";const k=1/3,Y=.5,P=8,z="translate 240ms cubic-bezier(0.16, 1, 0.3, 1)",D=[120,_],A="cubic-bezier(0.33, 0.67, 0.67, 1)",E=new WeakMap;function O(t,n){let o=null,i="idle",a=0,S=0,s=0,d=1,e=1,c=[];const f=()=>{var r;return[t,(r=n.current.alongside)==null?void 0:r.current]},M=r=>{if(r.pointerType==="mouse"||!r.isPrimary||!n.current.enabled)return;o=r.pointerId,i="pending",a=r.clientX,S=r.clientY,s=0,d=t.getBoundingClientRect().width||1;const p=getComputedStyle(t).direction==="rtl";e=n.current.side==="end"!==p?1:-1,c=[[r.timeStamp,0]]},$=r=>{var g,v;if(r.pointerId!==o||i==="idle"||i==="scroll")return;const p=(r.clientX-a)*e,y=r.clientY-S;if(i==="pending"){if(Math.abs(y)>P&&Math.abs(y)>Math.abs(p)){i="scroll";return}if(p<P)return;i="drag",a=r.clientX,c=[[r.timeStamp,0]];try{(g=t.setPointerCapture)==null||g.call(t,r.pointerId)}catch{}u(f(),void 0,"none")}s=Math.max(0,(r.clientX-a)*e),u(f(),`${s*e}px 0`);const h=(v=n.current.scrim)==null?void 0:v.current;h&&(h.style.transition="none",h.style.opacity=String(1-s/d)),c.push([r.timeStamp,s]),c.length>5&&c.shift(),r.preventDefault()},m=r=>{var X,C,T;if(r.pointerId!==o)return;const p=i==="drag";if(i="idle",o=null,!p)return;t.addEventListener("click",b,{capture:true,once:true}),setTimeout(()=>t.removeEventListener("click",b,true),0);const[y,h]=c[0],[g,v]=c[c.length-1],I=g>y?(v-h)/(g-y):0,l=(X=n.current.scrim)==null?void 0:X.current,x=(C=window.matchMedia)==null?void 0:C.call(window,"(prefers-reduced-motion: reduce)").matches;if(s>d*k||I>Y){const L=x?0:Math.min(D[1],Math.max(D[0],2*(d-s)/Math.max(I,.001))),w=`${L}ms ${A}`;if(l&&(l.style.transition=`opacity ${w}`,l.style.opacity="0"),n.current.exits){u(f(),`${d*e}px 0`,`translate ${w}`),setTimeout(()=>n.current.onClose(),L);return}t.style.transition="none",t.style.translate="",t.style.transform=`translateX(${s*e}px)`,t.getBoundingClientRect(),t.style.transition=`transform ${w}`,t.style.transform=`var(--clover-template-out, translateX(${e*100}%))`,u([(T=n.current.alongside)==null?void 0:T.current],`${d*e}px 0`,`translate ${w}`),E.set(t,setTimeout(()=>R(t,n),L)),n.current.onClose();return}u(f(),"",x?"none":z),l&&(l.style.transition=x?"none":"opacity 240ms ease",l.style.opacity=""),setTimeout(()=>{i==="idle"&&!E.has(t)&&u(f(),void 0,"")},240)},b=r=>{r.stopPropagation(),r.preventDefault()};return t.addEventListener("pointerdown",M),t.addEventListener("pointermove",$,{passive:false}),t.addEventListener("pointerup",m),t.addEventListener("pointercancel",m),()=>{t.removeEventListener("pointerdown",M),t.removeEventListener("pointermove",$),t.removeEventListener("pointerup",m),t.removeEventListener("pointercancel",m)}}function F(t,n){E.has(t)&&!n.current.enabled||R(t,n)}function R(t,n){var i,a;clearTimeout(E.get(t)),E.delete(t),u([t,(i=n.current.alongside)==null?void 0:i.current],"",""),t.style.transform="";const o=(a=n.current.scrim)==null?void 0:a.current;o&&(o.style.opacity="",o.style.transition="")}function u(t,n,o){for(const i of t)i&&(o!==void 0&&(i.style.transition=o),n!==void 0&&(i.style.translate=n))}export{O as attach,F as reset};
1
+ import{bx as _}from"./viewer-4EayGlH3.mjs";const k=1/3,Y=.5,P=8,z="translate 240ms cubic-bezier(0.16, 1, 0.3, 1)",D=[120,_],A="cubic-bezier(0.33, 0.67, 0.67, 1)",E=new WeakMap;function O(t,n){let o=null,i="idle",a=0,S=0,s=0,d=1,e=1,c=[];const f=()=>{var r;return[t,(r=n.current.alongside)==null?void 0:r.current]},M=r=>{if(r.pointerType==="mouse"||!r.isPrimary||!n.current.enabled)return;o=r.pointerId,i="pending",a=r.clientX,S=r.clientY,s=0,d=t.getBoundingClientRect().width||1;const p=getComputedStyle(t).direction==="rtl";e=n.current.side==="end"!==p?1:-1,c=[[r.timeStamp,0]]},$=r=>{var g,v;if(r.pointerId!==o||i==="idle"||i==="scroll")return;const p=(r.clientX-a)*e,y=r.clientY-S;if(i==="pending"){if(Math.abs(y)>P&&Math.abs(y)>Math.abs(p)){i="scroll";return}if(p<P)return;i="drag",a=r.clientX,c=[[r.timeStamp,0]];try{(g=t.setPointerCapture)==null||g.call(t,r.pointerId)}catch{}u(f(),void 0,"none")}s=Math.max(0,(r.clientX-a)*e),u(f(),`${s*e}px 0`);const h=(v=n.current.scrim)==null?void 0:v.current;h&&(h.style.transition="none",h.style.opacity=String(1-s/d)),c.push([r.timeStamp,s]),c.length>5&&c.shift(),r.preventDefault()},m=r=>{var X,C,T;if(r.pointerId!==o)return;const p=i==="drag";if(i="idle",o=null,!p)return;t.addEventListener("click",b,{capture:true,once:true}),setTimeout(()=>t.removeEventListener("click",b,true),0);const[y,h]=c[0],[g,v]=c[c.length-1],I=g>y?(v-h)/(g-y):0,l=(X=n.current.scrim)==null?void 0:X.current,x=(C=window.matchMedia)==null?void 0:C.call(window,"(prefers-reduced-motion: reduce)").matches;if(s>d*k||I>Y){const L=x?0:Math.min(D[1],Math.max(D[0],2*(d-s)/Math.max(I,.001))),w=`${L}ms ${A}`;if(l&&(l.style.transition=`opacity ${w}`,l.style.opacity="0"),n.current.exits){u(f(),`${d*e}px 0`,`translate ${w}`),setTimeout(()=>n.current.onClose(),L);return}t.style.transition="none",t.style.translate="",t.style.transform=`translateX(${s*e}px)`,t.getBoundingClientRect(),t.style.transition=`transform ${w}`,t.style.transform=`var(--clover-template-out, translateX(${e*100}%))`,u([(T=n.current.alongside)==null?void 0:T.current],`${d*e}px 0`,`translate ${w}`),E.set(t,setTimeout(()=>R(t,n),L)),n.current.onClose();return}u(f(),"",x?"none":z),l&&(l.style.transition=x?"none":"opacity 240ms ease",l.style.opacity=""),setTimeout(()=>{i==="idle"&&!E.has(t)&&u(f(),void 0,"")},240)},b=r=>{r.stopPropagation(),r.preventDefault()};return t.addEventListener("pointerdown",M),t.addEventListener("pointermove",$,{passive:false}),t.addEventListener("pointerup",m),t.addEventListener("pointercancel",m),()=>{t.removeEventListener("pointerdown",M),t.removeEventListener("pointermove",$),t.removeEventListener("pointerup",m),t.removeEventListener("pointercancel",m)}}function F(t,n){E.has(t)&&!n.current.enabled||R(t,n)}function R(t,n){var i,a;clearTimeout(E.get(t)),E.delete(t),u([t,(i=n.current.alongside)==null?void 0:i.current],"",""),t.style.transform="";const o=(a=n.current.scrim)==null?void 0:a.current;o&&(o.style.opacity="",o.style.transition="")}function u(t,n,o){for(const i of t)i&&(o!==void 0&&(i.style.transition=o),n!==void 0&&(i.style.translate=n))}export{O as attach,F as reset};
@@ -1 +1 @@
1
- import{az as h,ax as x,bu as m,bv as I,bw as q}from"./viewer-C3d_TgAI.mjs";function S(e,i,n){for(const s of h(e==null?void 0:e.items))for(const o of h(s==null?void 0:s.items)){if(!x(o))continue;const l=h(o==null?void 0:o.body).flatMap(t=>(t==null?void 0:t.type)==="Choice"?h(t.items).filter((r,f)=>n?(r==null?void 0:r.id)===n:f===0):n&&(t==null?void 0:t.id)!==n?[]:[t]);for(const t of l){if((t==null?void 0:t.type)!=="Image"||!t.width||!t.height)continue;const r=m(t.service);if(!r)continue;const f=I(h(o.target)[0]).rect??{x:0,y:0,w:e.width,h:e.height},a=(i.x-f.x)/f.w,c=(i.y-f.y)/f.h,u=Math.max(0,a),w=Math.max(0,c),M=Math.min(1,a+i.w/f.w)-u,g=Math.min(1,c+i.h/f.h)-w;if(M>0&&g>0)return{service:r,region:{x:u,y:w,width:M,height:g}}}}return null}const p=new WeakMap;function k(e,i){let n=p.get(e);n||p.set(e,n=new Map);let s=n.get(i);return s||(s=q({id:i,type:"Manifest"},{request:e.request}).catch(()=>null),n.set(i,s)),s}export{k as f,S as r};
1
+ import{az as h,ax as x,bu as m,bv as I,bw as q}from"./viewer-4EayGlH3.mjs";function S(e,i,n){for(const s of h(e==null?void 0:e.items))for(const o of h(s==null?void 0:s.items)){if(!x(o))continue;const l=h(o==null?void 0:o.body).flatMap(t=>(t==null?void 0:t.type)==="Choice"?h(t.items).filter((r,f)=>n?(r==null?void 0:r.id)===n:f===0):n&&(t==null?void 0:t.id)!==n?[]:[t]);for(const t of l){if((t==null?void 0:t.type)!=="Image"||!t.width||!t.height)continue;const r=m(t.service);if(!r)continue;const f=I(h(o.target)[0]).rect??{x:0,y:0,w:e.width,h:e.height},a=(i.x-f.x)/f.w,c=(i.y-f.y)/f.h,u=Math.max(0,a),w=Math.max(0,c),M=Math.min(1,a+i.w/f.w)-u,g=Math.min(1,c+i.h/f.h)-w;if(M>0&&g>0)return{service:r,region:{x:u,y:w,width:M,height:g}}}}return null}const p=new WeakMap;function k(e,i){let n=p.get(e);n||p.set(e,n=new Map);let s=n.get(i);return s||(s=q({id:i,type:"Manifest"},{request:e.request}).catch(()=>null),n.set(i,s)),s}export{k as f,S as r};
@@ -1 +1 @@
1
- var R=Object.defineProperty;var k=(s,t,e)=>t in s?R(s,t,{enumerable:true,configurable:true,writable:true,value:e}):s[t]=e;var l=(s,t,e)=>k(s,typeof t!="symbol"?t+"":t,e);import{b as x,n as E,u as r,M as p,k as O,q as M,C as m,I as g,$ as C,x as D}from"./viewer-C3d_TgAI.mjs";import"./styles-BjjJM8OS.mjs";function N(s){return{render:function(t){E(t,s)},unmount:function(){x(s)}}}const $="clover-root",b=Symbol("roots"),A=[];class F{constructor(t){l(this,"entries",new Map);l(this,"lists",new Map);l(this,"listeners",new Map);l(this,"languages",new I(t2=>this.entries.has(t2)));this.count=t}list(t){return this.lists.get(t)??A}subscribe(t,e){let n=this.listeners.get(t);return n||this.listeners.set(t,n=new Set),n.add(e),()=>{n.delete(e)}}connect(t){var i;const e=t.kind==="part"?((i=t.element.parentElement)==null?void 0:i.closest($))??null:null,n=this.entries.get(t.element);if(n&&n.root===e)return;const o={hosted:t,key:(n==null?void 0:n.key)??++this.count.made,root:e};this.entries.set(t.element,o),n&&this.change(h(n),a=>a.filter(c=>c!==n)),this.change(h(o),a=>[...a,o]),t.needsRoot&&!e&&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"||!e)&&this.languages.watch(t.element)}disconnect(t){const e=this.entries.get(t);e&&(this.entries.delete(t),this.change(h(e),n=>n.filter(o=>o!==e)))}change(t,e){var n;this.lists.set(t,e(this.list(t))),(n=this.listeners.get(t))==null||n.forEach(o=>o())}}const h=s=>s.hosted.kind==="root"?b:s.root;class I{constructor(t){l(this,"observer",null);l(this,"tags",new Set);this.isElement=t}draws(t){this.tags.add(t)}watch(t){this.observer??(this.observer=new MutationObserver(e=>{const n=[...this.tags,".clover-announcer"].join(",");for(const{target:o}of e){const i=o;i.getAttribute("lang")!==""||this.isElement(i)||i.closest(n)&&i.removeAttribute("lang")}})),this.observer.observe(t,{subtree:true,attributes:true,attributeFilter:["lang"]})}}function d(s,t){const e=M(o=>s.subscribe(t,o),[s,t]);return m(e,()=>s.list(t))}function w(s){return m(s.subscribe,s.getProps,s.getProps)}function L({registry:s}){const t=d(s,b),e=d(s,null);return r(O,{children:[t.map(n=>r(W,{entry:n,registry:s},n.key)),e.map(n=>r(S,{entry:n},n.key))]})}const v=s=>`clover-${s.key}-`,W=p(function({entry:t,registry:e}){const{hosted:n}=t,o=d(e,n.element),i=w(n),a=n.Component;return r(P,{hosted:n,props:i,children:r(g.Provider,{value:v(t),children:r(a,{hosted:n,props:i,children:o.map(c=>r(S,{entry:c},c.key))})})})}),S=p(function({entry:t}){const{hosted:e}=t,n=w(e);if(e.needsRoot&&!t.root)return null;const o=e.Component;return C(r(P,{hosted:e,props:n,children:r(g.Provider,{value:v(t),children:r(o,{hosted:e,props:n})})}),e.element)});class P extends D{constructor(){super(...arguments);l(this,"state",{failed:false})}static getDerivedStateFromError(){return{failed:true}}componentDidCatch(e,n){console.error(`<${this.props.hosted.element.localName}>:`,e)}componentDidUpdate(e){this.state.failed&&e.props!==this.props.props&&this.setState({failed:false})}render(){return this.state.failed?null:this.props.children}}const f=new WeakMap,u=Symbol.for("clover.elements");function H(s){let t=f.get(s);if(!t){const e=s;e[u]&&console.warn("Clover is loaded twice on this page: load one entry."),t=new F(e[u]??(e[u]={made:0})),f.set(s,t),N(s.createElement("div")).render(r(L,{registry:t}))}return t}export{F as Registry,H as hostOf};
1
+ var R=Object.defineProperty;var k=(s,t,e)=>t in s?R(s,t,{enumerable:true,configurable:true,writable:true,value:e}):s[t]=e;var l=(s,t,e)=>k(s,typeof t!="symbol"?t+"":t,e);import{b as x,n as E,u as r,M as p,k as O,q as M,C as m,I as g,$ as C,x as D}from"./viewer-4EayGlH3.mjs";import"./styles-BjjJM8OS.mjs";function N(s){return{render:function(t){E(t,s)},unmount:function(){x(s)}}}const $="clover-root",b=Symbol("roots"),A=[];class F{constructor(t){l(this,"entries",new Map);l(this,"lists",new Map);l(this,"listeners",new Map);l(this,"languages",new I(t2=>this.entries.has(t2)));this.count=t}list(t){return this.lists.get(t)??A}subscribe(t,e){let n=this.listeners.get(t);return n||this.listeners.set(t,n=new Set),n.add(e),()=>{n.delete(e)}}connect(t){var i;const e=t.kind==="part"?((i=t.element.parentElement)==null?void 0:i.closest($))??null:null,n=this.entries.get(t.element);if(n&&n.root===e)return;const o={hosted:t,key:(n==null?void 0:n.key)??++this.count.made,root:e};this.entries.set(t.element,o),n&&this.change(h(n),a=>a.filter(c=>c!==n)),this.change(h(o),a=>[...a,o]),t.needsRoot&&!e&&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"||!e)&&this.languages.watch(t.element)}disconnect(t){const e=this.entries.get(t);e&&(this.entries.delete(t),this.change(h(e),n=>n.filter(o=>o!==e)))}change(t,e){var n;this.lists.set(t,e(this.list(t))),(n=this.listeners.get(t))==null||n.forEach(o=>o())}}const h=s=>s.hosted.kind==="root"?b:s.root;class I{constructor(t){l(this,"observer",null);l(this,"tags",new Set);this.isElement=t}draws(t){this.tags.add(t)}watch(t){this.observer??(this.observer=new MutationObserver(e=>{const n=[...this.tags,".clover-announcer"].join(",");for(const{target:o}of e){const i=o;i.getAttribute("lang")!==""||this.isElement(i)||i.closest(n)&&i.removeAttribute("lang")}})),this.observer.observe(t,{subtree:true,attributes:true,attributeFilter:["lang"]})}}function d(s,t){const e=M(o=>s.subscribe(t,o),[s,t]);return m(e,()=>s.list(t))}function w(s){return m(s.subscribe,s.getProps,s.getProps)}function L({registry:s}){const t=d(s,b),e=d(s,null);return r(O,{children:[t.map(n=>r(W,{entry:n,registry:s},n.key)),e.map(n=>r(S,{entry:n},n.key))]})}const v=s=>`clover-${s.key}-`,W=p(function({entry:t,registry:e}){const{hosted:n}=t,o=d(e,n.element),i=w(n),a=n.Component;return r(P,{hosted:n,props:i,children:r(g.Provider,{value:v(t),children:r(a,{hosted:n,props:i,children:o.map(c=>r(S,{entry:c},c.key))})})})}),S=p(function({entry:t}){const{hosted:e}=t,n=w(e);if(e.needsRoot&&!t.root)return null;const o=e.Component;return C(r(P,{hosted:e,props:n,children:r(g.Provider,{value:v(t),children:r(o,{hosted:e,props:n})})}),e.element)});class P extends D{constructor(){super(...arguments);l(this,"state",{failed:false})}static getDerivedStateFromError(){return{failed:true}}componentDidCatch(e,n){console.error(`<${this.props.hosted.element.localName}>:`,e)}componentDidUpdate(e){this.state.failed&&e.props!==this.props.props&&this.setState({failed:false})}render(){return this.state.failed?null:this.props.children}}const f=new WeakMap,u=Symbol.for("clover.elements");function H(s){let t=f.get(s);if(!t){const e=s;e[u]&&console.warn("Clover is loaded twice on this page: load one entry."),t=new F(e[u]??(e[u]={made:0})),f.set(s,t),N(s.createElement("div")).render(r(L,{registry:t}))}return t}export{F as Registry,H as hostOf};
@@ -1 +1 @@
1
- import{ac as C,az as u,ax as I,bv as $,bC as L,bD as P}from"./viewer-C3d_TgAI.mjs";function q(t){const c=new Map;for(const e of C(t).canvases)S(e,c);return[...c.values()]}function S(t,c){u(t.items).forEach((e,r)=>u(e==null?void 0:e.items).forEach((d,f)=>{if(!I(d))return;const a=$(u(d.target)[0]).rect??{x:0,y:0,w:Number(t.width)||0,h:Number(t.height)||0};u(d.body).forEach((s,y)=>{const w=(s==null?void 0:s.type)==="Choice";(w?u(s.items):[s]).forEach((o,x)=>{for(const n of u(o==null?void 0:o.annotations)){if(!Array.isArray(n==null?void 0:n.items)||typeof(o==null?void 0:o.id)!="string")continue;const l=n.id??`${o.id}#annotations`,p=w?{key:L(t.id,d.id,r,f,y),item:x,image:o.id}:void 0,A=P(n,l,t.id).map(b=>{const h=j(b.annotation,o),N=Math.round(a.x+h.x*(a.w/h.width)),E=Math.round(a.y+h.y*(a.h/h.height)),g=Math.round(h.w*(a.w/h.width)),v=Math.round(h.h*(a.h/h.height)),M=`${t.id}#xywh=${N},${E},${g},${v}`;return{...b,canvasId:t.id,target:$(M),annotation:{...b.annotation,target:M},...p?{layer:p}:{}}});if(!A.length)continue;let m=c.get(l);m||(m={id:l,label:n.label??o.label,source:"manifest",entries:[]},c.set(l,m)),m.entries.push(...A)}})})}))}function j(t,c){const e=Number(c.width)||1,r=Number(c.height)||1,d={x:0,y:0,w:e,h:r,width:e,height:r},f=u(t==null?void 0:t.target)[0],s=(typeof f=="object"?u(f==null?void 0:f.selector):[]).find(i=>(i==null?void 0:i.type)==="ImageApiSelector"),y=typeof(s==null?void 0:s.region)=="string"?s.region:void 0;if(y){const i=/^(pct:)?([\d.]+),([\d.]+),([\d.]+),([\d.]+)$/.exec(y);if(!i)return d;const[o,x,n,l]=i.slice(2).map(Number);return i[1]?{x:o/100*e,y:x/100*r,w:n/100*e,h:l/100*r,width:e,height:r}:{x:o,y:x,w:n,h:l,width:e,height:r}}const w=$(f).rect;return w?{...w,width:e,height:r}:d}export{q as imageLayers};
1
+ import{ac as C,az as u,ax as I,bv as $,bC as L,bD as P}from"./viewer-4EayGlH3.mjs";function q(t){const c=new Map;for(const e of C(t).canvases)S(e,c);return[...c.values()]}function S(t,c){u(t.items).forEach((e,r)=>u(e==null?void 0:e.items).forEach((d,f)=>{if(!I(d))return;const a=$(u(d.target)[0]).rect??{x:0,y:0,w:Number(t.width)||0,h:Number(t.height)||0};u(d.body).forEach((s,y)=>{const w=(s==null?void 0:s.type)==="Choice";(w?u(s.items):[s]).forEach((o,x)=>{for(const n of u(o==null?void 0:o.annotations)){if(!Array.isArray(n==null?void 0:n.items)||typeof(o==null?void 0:o.id)!="string")continue;const l=n.id??`${o.id}#annotations`,p=w?{key:L(t.id,d.id,r,f,y),item:x,image:o.id}:void 0,A=P(n,l,t.id).map(b=>{const h=j(b.annotation,o),N=Math.round(a.x+h.x*(a.w/h.width)),E=Math.round(a.y+h.y*(a.h/h.height)),g=Math.round(h.w*(a.w/h.width)),v=Math.round(h.h*(a.h/h.height)),M=`${t.id}#xywh=${N},${E},${g},${v}`;return{...b,canvasId:t.id,target:$(M),annotation:{...b.annotation,target:M},...p?{layer:p}:{}}});if(!A.length)continue;let m=c.get(l);m||(m={id:l,label:n.label??o.label,source:"manifest",entries:[]},c.set(l,m)),m.entries.push(...A)}})})}))}function j(t,c){const e=Number(c.width)||1,r=Number(c.height)||1,d={x:0,y:0,w:e,h:r,width:e,height:r},f=u(t==null?void 0:t.target)[0],s=(typeof f=="object"?u(f==null?void 0:f.selector):[]).find(i=>(i==null?void 0:i.type)==="ImageApiSelector"),y=typeof(s==null?void 0:s.region)=="string"?s.region:void 0;if(y){const i=/^(pct:)?([\d.]+),([\d.]+),([\d.]+),([\d.]+)$/.exec(y);if(!i)return d;const[o,x,n,l]=i.slice(2).map(Number);return i[1]?{x:o/100*e,y:x/100*r,w:n/100*e,h:l/100*r,width:e,height:r}:{x:o,y:x,w:n,h:l,width:e,height:r}}const w=$(f).rect;return w?{...w,width:e,height:r}:d}export{q as imageLayers};
@@ -1 +1 @@
1
- import{bJ as c,bK as d,bL as l}from"./viewer-C3d_TgAI.mjs";function m(i){const{width:e,height:t,maxWidth:n,maxHeight:r,maxArea:o}=i,g=(s,p)=>(!n||s<=n)&&(!r||p<=r)&&(!o||s*p<=o);if(g(e,t))return{width:e,height:t};const h=i.sizes.filter(s=>g(s.width,s.height));if(h.length)return h[h.length-1];if(!i.sizeByW)return{width:e,height:t};const a=Math.min(n?n/e:1,r?r/t:1,o?Math.sqrt(o/(e*t)):1);return{width:Math.max(1,Math.floor(e*a)),height:Math.max(1,Math.floor(t*a))}}function u(i,e=200){return i.sizes.find(t=>Math.max(t.width,t.height)>=e)??m(i)}const y={jpg:"image/jpeg",png:"image/png",webp:"image/webp",gif:"image/gif"};function f(i,e,t){const n={x:0,y:0,width:i.width,height:i.height};return{id:l(i,n,t.width,t.height),type:"Image",format:y[i.format]??"image/jpeg",width:t.width,height:t.height,service:[e]}}function w(i,e){if(e.version===3)return{id:e.id,type:"ImageService3",profile:typeof i.profile=="string"?i.profile:"level0"};const t=[].concat(i.profile??[]).find(n=>typeof n=="string");return{"@id":e.id,"@type":"ImageService2",profile:t??"http://iiif.io/api/image/2/level0.json"}}async function x(i,e){const t=c(i,e),n=w(i,t),r=`${t.id}/canvas`,o=[i.rights,i.license].flat().find(a=>typeof a=="string"),g=i.attribution,h={"@context":"http://iiif.io/api/presentation/3/context.json",id:t.id,type:"Manifest",label:{none:[""]},thumbnail:[f(t,n,u(t))],items:[{id:r,type:"Canvas",width:t.width,height:t.height,items:[{id:`${r}/page`,type:"AnnotationPage",items:[{id:`${r}/page/image`,type:"Annotation",motivation:"painting",body:f(t,n,m(t)),target:r}]}]}]};return o&&(h.rights=o),g&&(h.requiredStatement={label:{en:["Attribution"]},value:{none:[].concat(g).map(a=>typeof a=="string"?a:String((a==null?void 0:a["@value"])??"")).filter(Boolean)}}),{manifest:await d(h)}}export{m as fittedSize,x as imageServiceContent};
1
+ import{bJ as c,bK as d,bL as l}from"./viewer-4EayGlH3.mjs";function m(i){const{width:e,height:t,maxWidth:n,maxHeight:r,maxArea:o}=i,g=(s,p)=>(!n||s<=n)&&(!r||p<=r)&&(!o||s*p<=o);if(g(e,t))return{width:e,height:t};const h=i.sizes.filter(s=>g(s.width,s.height));if(h.length)return h[h.length-1];if(!i.sizeByW)return{width:e,height:t};const a=Math.min(n?n/e:1,r?r/t:1,o?Math.sqrt(o/(e*t)):1);return{width:Math.max(1,Math.floor(e*a)),height:Math.max(1,Math.floor(t*a))}}function u(i,e=200){return i.sizes.find(t=>Math.max(t.width,t.height)>=e)??m(i)}const y={jpg:"image/jpeg",png:"image/png",webp:"image/webp",gif:"image/gif"};function f(i,e,t){const n={x:0,y:0,width:i.width,height:i.height};return{id:l(i,n,t.width,t.height),type:"Image",format:y[i.format]??"image/jpeg",width:t.width,height:t.height,service:[e]}}function w(i,e){if(e.version===3)return{id:e.id,type:"ImageService3",profile:typeof i.profile=="string"?i.profile:"level0"};const t=[].concat(i.profile??[]).find(n=>typeof n=="string");return{"@id":e.id,"@type":"ImageService2",profile:t??"http://iiif.io/api/image/2/level0.json"}}async function x(i,e){const t=c(i,e),n=w(i,t),r=`${t.id}/canvas`,o=[i.rights,i.license].flat().find(a=>typeof a=="string"),g=i.attribution,h={"@context":"http://iiif.io/api/presentation/3/context.json",id:t.id,type:"Manifest",label:{none:[""]},thumbnail:[f(t,n,u(t))],items:[{id:r,type:"Canvas",width:t.width,height:t.height,items:[{id:`${r}/page`,type:"AnnotationPage",items:[{id:`${r}/page/image`,type:"Annotation",motivation:"painting",body:f(t,n,m(t)),target:r}]}]}]};return o&&(h.rights=o),g&&(h.requiredStatement={label:{en:["Attribution"]},value:{none:[].concat(g).map(a=>typeof a=="string"?a:String((a==null?void 0:a["@value"])??"")).filter(Boolean)}}),{manifest:await d(h)}}export{m as fittedSize,x as imageServiceContent};
@@ -1 +1 @@
1
- import{cv as e}from"./viewer-C3d_TgAI.mjs";export{e as initCloverI18n};
1
+ import{cv as e}from"./viewer-4EayGlH3.mjs";export{e as initCloverI18n};
@@ -1 +1 @@
1
- import{az as n,ay as p,bv as c}from"./viewer-C3d_TgAI.mjs";function g(r){if(n(r==null?void 0:r.motivation).includes("linking"))for(const i of p(r)){if((i==null?void 0:i.type)==="TextualBody"||typeof(i==null?void 0:i.value)=="string")continue;const t=(i==null?void 0:i.type)==="SpecificResource"?i.source:i,e=typeof t=="string"?t:t==null?void 0:t.id;if(!(typeof e!="string"||!e)){if((t==null?void 0:t.type)==="Canvas"){const f=n(t.partOf).find(s=>(s==null?void 0:s.id)&&(!s.type||s.type==="Manifest")),u=c(e).id;return{id:e,canvasId:u,...f?{manifestId:f.id}:{}}}if((t==null?void 0:t.type)==="Manifest"||(t==null?void 0:t.type)==="Collection")return{id:e,manifestId:e};if(/^https?:\/\//i.test(e))return{id:e}}}}function v(r){const i=n(r==null?void 0:r.motivation);if(!(!i.includes("tagging")&&!i.includes("identifying")))for(const t of p(r)){if((t==null?void 0:t.type)==="TextualBody"||typeof(t==null?void 0:t.value)=="string")continue;const e=(t==null?void 0:t.type)==="SpecificResource"?t.source:t,f=typeof e=="string"?e:e==null?void 0:e.id;if(typeof f=="string"&&/^https?:\/\//i.test(f))return{id:f}}}export{v as a,g as r};
1
+ import{az as n,ay as p,bv as c}from"./viewer-4EayGlH3.mjs";function g(r){if(n(r==null?void 0:r.motivation).includes("linking"))for(const i of p(r)){if((i==null?void 0:i.type)==="TextualBody"||typeof(i==null?void 0:i.value)=="string")continue;const t=(i==null?void 0:i.type)==="SpecificResource"?i.source:i,e=typeof t=="string"?t:t==null?void 0:t.id;if(!(typeof e!="string"||!e)){if((t==null?void 0:t.type)==="Canvas"){const f=n(t.partOf).find(s=>(s==null?void 0:s.id)&&(!s.type||s.type==="Manifest")),u=c(e).id;return{id:e,canvasId:u,...f?{manifestId:f.id}:{}}}if((t==null?void 0:t.type)==="Manifest"||(t==null?void 0:t.type)==="Collection")return{id:e,manifestId:e};if(/^https?:\/\//i.test(e))return{id:e}}}}function v(r){const i=n(r==null?void 0:r.motivation);if(!(!i.includes("tagging")&&!i.includes("identifying")))for(const t of p(r)){if((t==null?void 0:t.type)==="TextualBody"||typeof(t==null?void 0:t.value)=="string")continue;const e=(t==null?void 0:t.type)==="SpecificResource"?t.source:t,f=typeof e=="string"?e:e==null?void 0:e.id;if(typeof f=="string"&&/^https?:\/\//i.test(f))return{id:f}}}export{v as a,g as r};
@@ -1 +1 @@
1
- import{bu as o,cs as s,ct as a}from"./viewer-C3d_TgAI.mjs";async function d(r,c,n){const t=typeof r.id=="string"?r.id:void 0,e=o(r.service);if(!e)return t;try{const i=await s(e,{request:n});return a(i,c)??t}catch{return t}}export{d as overlayImageUrl};
1
+ import{bu as o,cs as s,ct as a}from"./viewer-4EayGlH3.mjs";async function d(r,c,n){const t=typeof r.id=="string"?r.id:void 0,e=o(r.service);if(!e)return t;try{const i=await s(e,{request:n});return a(i,c)??t}catch{return t}}export{d as overlayImageUrl};
@@ -1 +1 @@
1
- import{az as c,bA as l,bv as g,bB as v,ba as A}from"./viewer-C3d_TgAI.mjs";const E=t=>t&&typeof t=="object"?Object.entries(t).flatMap(([i,r])=>c(r).filter(s=>typeof s=="string").map(s=>({value:s,...i!=="none"?{language:i}:{}}))):typeof t=="string"?[{value:t}]:[],a=new WeakMap;function j(t){if(!t)return null;if(a.has(t))return a.get(t);const i=[],r=new Set,s=n=>{if(!n||r.has(n.id??n))return;r.add(n.id??n);const b=typeof n.id=="string"&&!c(n.behavior).includes("no-nav"),d=E(n.label),h=c(n.items).filter(o=>(o==null?void 0:o.type)!=="Range"&&g(v(o)).id).length;let w=0;for(const o of c(n.items)){if((o==null?void 0:o.type)==="Range"){s(o);continue}const e=g(v(o));if(!e.id)continue;const f=w++;if(!b||!e.rect)continue;const{x,y:T,w:I,h:S}=e.rect,u=A(n.id,f);i.push({id:u,setId:l,canvasId:e.id,target:{id:e.id,rect:e.rect},motivation:["highlighting"],bodies:d,...h>1?{place:{index:f+1,total:h}}:{},annotation:{id:u,type:"Annotation",motivation:["highlighting"],...d.length&&{body:d.map(({value:$,language:y})=>({type:"TextualBody",value:$,...y?{language:y}:{}}))},target:`${e.id}#xywh=${x},${T},${I},${S}`}})}};c(t.structures).forEach(s);const p=i.length?{id:l,source:"contents",entries:i}:null;return a.set(t,p),p}export{j as contentsSet};
1
+ import{az as c,bA as l,bv as g,bB as v,ba as A}from"./viewer-4EayGlH3.mjs";const E=t=>t&&typeof t=="object"?Object.entries(t).flatMap(([i,r])=>c(r).filter(s=>typeof s=="string").map(s=>({value:s,...i!=="none"?{language:i}:{}}))):typeof t=="string"?[{value:t}]:[],a=new WeakMap;function j(t){if(!t)return null;if(a.has(t))return a.get(t);const i=[],r=new Set,s=n=>{if(!n||r.has(n.id??n))return;r.add(n.id??n);const b=typeof n.id=="string"&&!c(n.behavior).includes("no-nav"),d=E(n.label),h=c(n.items).filter(o=>(o==null?void 0:o.type)!=="Range"&&g(v(o)).id).length;let w=0;for(const o of c(n.items)){if((o==null?void 0:o.type)==="Range"){s(o);continue}const e=g(v(o));if(!e.id)continue;const f=w++;if(!b||!e.rect)continue;const{x,y:T,w:I,h:S}=e.rect,u=A(n.id,f);i.push({id:u,setId:l,canvasId:e.id,target:{id:e.id,rect:e.rect},motivation:["highlighting"],bodies:d,...h>1?{place:{index:f+1,total:h}}:{},annotation:{id:u,type:"Annotation",motivation:["highlighting"],...d.length&&{body:d.map(({value:$,language:y})=>({type:"TextualBody",value:$,...y?{language:y}:{}}))},target:`${e.id}#xywh=${x},${T},${I},${S}`}})}};c(t.structures).forEach(s);const p=i.length?{id:l,source:"contents",entries:i}:null;return a.set(t,p),p}export{j as contentsSet};
@@ -1 +1 @@
1
- import{Y as f,u as r,A as u,Z as p,_ as d,k as m}from"./viewer-C3d_TgAI.mjs";import"./styles-BjjJM8OS.mjs";const v=f(null),l=new WeakMap;function y(t){let n=l.get(t);if(!n){const{render:o}=t;n={canvasId:t.canvasId,format:t.format,match:t.match,component:c=>r(A,{...c,render:o})},l.set(t,n)}return n}function h(t){if(Array.isArray(t))return t.filter(n=>typeof n=="object"&&n!==null&&typeof n.render=="function").map(y)}function A({render:t,canvases:n,bodies:o,children:c}){const a=u(null),s=p(v);return d(()=>{const e=a.current;if(!e)return;const i=t(e,{canvases:n,bodies:o,clover:s});return()=>{typeof i=="function"&&i(),e.replaceChildren()}},[t,n,o,s]),r(m,{children:[r("div",{ref:a,className:"clover-body-renderer",style:{position:"absolute",inset:0}}),c&&r("div",{className:"clover-canvas-controls",children:c})]})}export{h as toRenderers};
1
+ import{Y as f,u as r,A as u,Z as p,_ as d,k as m}from"./viewer-4EayGlH3.mjs";import"./styles-BjjJM8OS.mjs";const v=f(null),l=new WeakMap;function y(t){let n=l.get(t);if(!n){const{render:o}=t;n={canvasId:t.canvasId,format:t.format,match:t.match,component:c=>r(A,{...c,render:o})},l.set(t,n)}return n}function h(t){if(Array.isArray(t))return t.filter(n=>typeof n=="object"&&n!==null&&typeof n.render=="function").map(y)}function A({render:t,canvases:n,bodies:o,children:c}){const a=u(null),s=p(v);return d(()=>{const e=a.current;if(!e)return;const i=t(e,{canvases:n,bodies:o,clover:s});return()=>{typeof i=="function"&&i(),e.replaceChildren()}},[t,n,o,s]),r(m,{children:[r("div",{ref:a,className:"clover-body-renderer",style:{position:"absolute",inset:0}}),c&&r("div",{className:"clover-canvas-controls",children:c})]})}export{h as toRenderers};
@@ -1 +1 @@
1
- import{bZ as a}from"./viewer-C3d_TgAI.mjs";function c(t){try{const o=new URL(t).pathname.split("/").filter(Boolean).pop();return o?decodeURIComponent(o):"download"}catch{return"download"}}async function i(t,o){try{const r=await a(o,t,{referrerPolicy:"no-referrer"});if(!r.ok)return false;const n=URL.createObjectURL(await r.blob()),e=document.createElement("a");return e.href=n,e.download=c(t),document.body.append(e),e.click(),e.remove(),setTimeout(()=>URL.revokeObjectURL(n),1e4),true}catch{return false}}export{c as fileName,i as saveFile};
1
+ import{bZ as a}from"./viewer-4EayGlH3.mjs";function c(t){try{const o=new URL(t).pathname.split("/").filter(Boolean).pop();return o?decodeURIComponent(o):"download"}catch{return"download"}}async function i(t,o){try{const r=await a(o,t,{referrerPolicy:"no-referrer"});if(!r.ok)return false;const n=URL.createObjectURL(await r.blob()),e=document.createElement("a");return e.href=n,e.download=c(t),document.body.append(e),e.click(),e.remove(),setTimeout(()=>URL.revokeObjectURL(n),1e4),true}catch{return false}}export{c as fileName,i as saveFile};
@@ -1 +1 @@
1
- import{bE as b,az as f,bv as w,bF as S}from"./viewer-C3d_TgAI.mjs";const x=10;async function R(r,t,s,o,e){var n,d;const i=(n=r.get().manifest)==null?void 0:n.id;try{const{hits:c,set:u}=await A(t,s,{request:o,signal:e});if(e.aborted||((d=r.get().manifest)==null?void 0:d.id)!==i)return;r.set({search:{query:s,status:"ready",hits:c,set:u}})}catch{if(e.aborted)return;r.set({search:{query:s,status:"error",hits:[],set:null}})}}async function A(r,t,{request:s,signal:o}={}){const e=new URL(r.id);e.searchParams.set("q",t);const i=[];let n=e.toString();const d=new Set;for(;n&&i.length<x&&!d.has(n);){d.add(n);const c=await b(s,n,o);i.push(c),n=T(c)}return $(i,t)}function E(r){var e;const t=f(r)[0];if(typeof t=="string"||!t)return t;const s=t.full??t["@id"],o=(e=f(t.selector)[0])==null?void 0:e.value;return typeof o=="string"&&typeof s=="string"?`${s}#${o}`:s}function T(r){var o;const t=r.next??((o=r.within)==null?void 0:o.next),s=typeof t=="string"?t:(t==null?void 0:t.id)??(t==null?void 0:t["@id"]);return typeof s=="string"?s:null}function $(r,t){var e,i;const s=[],o=[];for(const n of r){const d=Array.isArray(n.resources),c=d?n.resources:f(n.items),u=new Map;for(const a of c){const p=a.id??a["@id"],m=d?E(a.on):f(a.target)[0],v=w(m);if(!p||!v.id)continue;const y=d?(e=a.resource)==null?void 0:e.chars:f(a.body).map(l=>l==null?void 0:l.value).find(l=>typeof l=="string"),I={id:p,setId:S,canvasId:v.id,target:v,motivation:["highlighting"],bodies:[{value:String(y??t)}],annotation:{id:p,type:"Annotation",motivation:["highlighting"],body:{type:"TextualBody",value:String(y??t)},target:m}};u.set(p,I),s.push(I)}const g=d?H(n,u):M(n,u),h=new Set(g.flatMap(a=>a.entryIds));o.push(...g);for(const a of u.values())h.has(a.id)||o.push({id:a.id,canvasId:a.canvasId,entryIds:[a.id],match:((i=a.bodies[0])==null?void 0:i.value)??t})}return{query:t,hits:o,set:{id:S,label:{none:[t]},source:"search",entries:s}}}function H(r,t){var o;const s=[];for(const e of f(r.hits)){const i=f(e.annotations).filter(n=>t.has(n));i.length&&s.push({id:i.join(" "),canvasId:t.get(i[0]).canvasId,entryIds:i,before:e.before,match:String(e.match??((o=t.get(i[0]).bodies[0])==null?void 0:o.value)??""),after:e.after})}return s}function M(r,t){var o,e;const s=[];for(const i of f(r.annotations))for(const n of f(i==null?void 0:i.items))if(f(n==null?void 0:n.motivation).includes("contextualizing"))for(const c of f(n.target)){const u=typeof(c==null?void 0:c.source)=="string"?c.source:(o=c==null?void 0:c.source)==null?void 0:o.id,g=u?t.get(u):void 0;if(!g)continue;const h=f(c.selector).find(a=>(a==null?void 0:a.type)==="TextQuoteSelector");s.push({id:`${n.id??u}#${u}`,canvasId:g.canvasId,entryIds:[g.id],before:h==null?void 0:h.prefix,match:String((h==null?void 0:h.exact)??((e=g.bodies[0])==null?void 0:e.value)??""),after:h==null?void 0:h.suffix})}return s}export{$ as readResults,A as search,R as searchInto};
1
+ import{bE as b,az as f,bv as w,bF as S}from"./viewer-4EayGlH3.mjs";const x=10;async function R(r,t,s,o,e){var n,d;const i=(n=r.get().manifest)==null?void 0:n.id;try{const{hits:c,set:u}=await A(t,s,{request:o,signal:e});if(e.aborted||((d=r.get().manifest)==null?void 0:d.id)!==i)return;r.set({search:{query:s,status:"ready",hits:c,set:u}})}catch{if(e.aborted)return;r.set({search:{query:s,status:"error",hits:[],set:null}})}}async function A(r,t,{request:s,signal:o}={}){const e=new URL(r.id);e.searchParams.set("q",t);const i=[];let n=e.toString();const d=new Set;for(;n&&i.length<x&&!d.has(n);){d.add(n);const c=await b(s,n,o);i.push(c),n=T(c)}return $(i,t)}function E(r){var e;const t=f(r)[0];if(typeof t=="string"||!t)return t;const s=t.full??t["@id"],o=(e=f(t.selector)[0])==null?void 0:e.value;return typeof o=="string"&&typeof s=="string"?`${s}#${o}`:s}function T(r){var o;const t=r.next??((o=r.within)==null?void 0:o.next),s=typeof t=="string"?t:(t==null?void 0:t.id)??(t==null?void 0:t["@id"]);return typeof s=="string"?s:null}function $(r,t){var e,i;const s=[],o=[];for(const n of r){const d=Array.isArray(n.resources),c=d?n.resources:f(n.items),u=new Map;for(const a of c){const p=a.id??a["@id"],m=d?E(a.on):f(a.target)[0],v=w(m);if(!p||!v.id)continue;const y=d?(e=a.resource)==null?void 0:e.chars:f(a.body).map(l=>l==null?void 0:l.value).find(l=>typeof l=="string"),I={id:p,setId:S,canvasId:v.id,target:v,motivation:["highlighting"],bodies:[{value:String(y??t)}],annotation:{id:p,type:"Annotation",motivation:["highlighting"],body:{type:"TextualBody",value:String(y??t)},target:m}};u.set(p,I),s.push(I)}const g=d?H(n,u):M(n,u),h=new Set(g.flatMap(a=>a.entryIds));o.push(...g);for(const a of u.values())h.has(a.id)||o.push({id:a.id,canvasId:a.canvasId,entryIds:[a.id],match:((i=a.bodies[0])==null?void 0:i.value)??t})}return{query:t,hits:o,set:{id:S,label:{none:[t]},source:"search",entries:s}}}function H(r,t){var o;const s=[];for(const e of f(r.hits)){const i=f(e.annotations).filter(n=>t.has(n));i.length&&s.push({id:i.join(" "),canvasId:t.get(i[0]).canvasId,entryIds:i,before:e.before,match:String(e.match??((o=t.get(i[0]).bodies[0])==null?void 0:o.value)??""),after:e.after})}return s}function M(r,t){var o,e;const s=[];for(const i of f(r.annotations))for(const n of f(i==null?void 0:i.items))if(f(n==null?void 0:n.motivation).includes("contextualizing"))for(const c of f(n.target)){const u=typeof(c==null?void 0:c.source)=="string"?c.source:(o=c==null?void 0:c.source)==null?void 0:o.id,g=u?t.get(u):void 0;if(!g)continue;const h=f(c.selector).find(a=>(a==null?void 0:a.type)==="TextQuoteSelector");s.push({id:`${n.id??u}#${u}`,canvasId:g.canvasId,entryIds:[g.id],before:h==null?void 0:h.prefix,match:String((h==null?void 0:h.exact)??((e=g.bodies[0])==null?void 0:e.value)??""),after:h==null?void 0:h.suffix})}return s}export{$ as readResults,A as search,R as searchInto};
@@ -1 +1 @@
1
- import{e as j,y as G,aq as Q,ar as z,at as J,aw as M,bQ as K,as as V}from"./viewer-C3d_TgAI.mjs";const W=3e3,Z=1e3,B=1e3,$=[":scope > .clover-canvas-controls > *",":scope > .clover-canvas-navigator",":scope > .clover-canvas-media > .clover-canvas-transport > *"].join(", ");function rt(r,d=W,y){const[R,U]=j(false);return G(()=>{if(!r)return;const v=r.ownerDocument;let c,l=false,E=false,g=false,D=false,I=-1/0,Y=false,L=null,u=false,T,e=null,s=null,o=null;const f=t=>{l=t,U(t)},A=()=>{g||f(false)},n=()=>{c&&clearTimeout(c),c=void 0},m=()=>{o&&clearTimeout(o.timer),o=null},b=()=>{f(true),n(),Number.isFinite(d)&&(c=setTimeout(A,d))},p=t=>z(t.pointerType,D),w=t=>{E=t.type==="keydown",!E&&(f(true),n(),Number.isFinite(d)&&(c=setTimeout(A,d)))},k=()=>{f(true),n(),c=setTimeout(A,Z)},x=t=>{m(),o={...t,timer:setTimeout(()=>{o=null,t.onPicture&&l?(n(),f(false)):b()},V)}},C=t=>{if(Q(t)&&(D=true),!p(t))return w(t);(e==null?void 0:e.id)===t.pointerId&&Math.hypot(t.clientX-e.x,t.clientY-e.y)>J&&(e=null)},_=t=>{const a=y==null?void 0:y.current;return!!(a&&t instanceof Node&&a.contains(t))},X=t=>{if(!p(t))return w(t);E=false,n(),s=M(t.target,r)&&!_(t.target)?{id:t.pointerId,inSight:l||getComputedStyle(r).getPropertyValue("--clover-controls-shown").trim()==="1"}:null,s&&m(),e=t.isPrimary===false?null:{id:t.pointerId,x:t.clientX,y:t.clientY,target:t.target}},P=t=>{if(!p(t)||((s==null?void 0:s.id)===t.pointerId?(s.inSight&&b(),s=null):l&&t.isPrimary!==false&&b(),(e==null?void 0:e.id)!==t.pointerId))return;const{target:a}=e;if(e=null,t.type!=="pointerup"||M(a,r))return;const i=_(a);if(i&&(o!=null&&o.onPicture)&&Math.hypot(t.clientX-o.x,t.clientY-o.y)<K){m();return}x({x:t.clientX,y:t.clientY,onPicture:i})},q=t=>_(t.target)?Array.from(r.querySelectorAll($)).some(a=>{const i=a.getBoundingClientRect();return i.width>0&&i.height>0&&t.clientX>=i.left&&t.clientX<=i.right&&t.clientY>=i.top&&t.clientY<=i.bottom}):false,h=t=>{if(t.type==="pointerdown"){if(L!==null||(clearTimeout(T),u=false,!q(t)))return;L=t.pointerId,u=true,p(t)?(E=false,n()):w(t)}else if(t.pointerId!==L)return;t.stopPropagation(),t.preventDefault(),t.type==="pointercancel"?(L=null,u=false):t.type==="pointerup"&&(L=null,p(t)&&x({x:t.clientX,y:t.clientY,onPicture:false}),clearTimeout(T),T=setTimeout(()=>u=false,V))},F=t=>{u&&(u=false,t.stopPropagation(),t.preventDefault())},S=t=>{I=Date.now(),Y=r.contains(t.target),t.type==="pointerdown"&&(g=false)},O=()=>{Date.now()-I<B||(g=true,n(),f(true))},N=t=>{p(t)||l&&k()},H=t=>{r.contains(t.relatedTarget)||(g=false,!(Y&&Date.now()-I<B)&&(l||E)&&k())};v.addEventListener("pointerdown",S,true),v.addEventListener("pointerup",S,true);for(const t of["pointerdown","pointermove","pointerup"])r.addEventListener(t,h,true);return r.addEventListener("pointercancel",h,true),r.addEventListener("click",F,true),r.addEventListener("pointermove",C),r.addEventListener("pointerdown",X),r.addEventListener("pointerup",P),r.addEventListener("pointercancel",P),r.addEventListener("pointerleave",N),r.addEventListener("focusin",O),r.addEventListener("focusout",H),r.addEventListener("keydown",w),()=>{n(),m(),clearTimeout(T),v.removeEventListener("pointerdown",S,true),v.removeEventListener("pointerup",S,true);for(const t of["pointerdown","pointermove","pointerup"])r.removeEventListener(t,h,true);r.removeEventListener("pointercancel",h,true),r.removeEventListener("click",F,true),r.removeEventListener("pointermove",C),r.removeEventListener("pointerdown",X),r.removeEventListener("pointerup",P),r.removeEventListener("pointercancel",P),r.removeEventListener("pointerleave",N),r.removeEventListener("focusin",O),r.removeEventListener("focusout",H),r.removeEventListener("keydown",w)}},[r,d,y]),R}export{rt as u};
1
+ import{e as j,y as G,aq as Q,ar as z,at as J,aw as M,bQ as K,as as V}from"./viewer-4EayGlH3.mjs";const W=3e3,Z=1e3,B=1e3,$=[":scope > .clover-canvas-controls > *",":scope > .clover-canvas-navigator",":scope > .clover-canvas-media > .clover-canvas-transport > *"].join(", ");function rt(r,d=W,y){const[R,U]=j(false);return G(()=>{if(!r)return;const v=r.ownerDocument;let c,l=false,E=false,g=false,D=false,I=-1/0,Y=false,L=null,u=false,T,e=null,s=null,o=null;const f=t=>{l=t,U(t)},A=()=>{g||f(false)},n=()=>{c&&clearTimeout(c),c=void 0},m=()=>{o&&clearTimeout(o.timer),o=null},b=()=>{f(true),n(),Number.isFinite(d)&&(c=setTimeout(A,d))},p=t=>z(t.pointerType,D),w=t=>{E=t.type==="keydown",!E&&(f(true),n(),Number.isFinite(d)&&(c=setTimeout(A,d)))},k=()=>{f(true),n(),c=setTimeout(A,Z)},x=t=>{m(),o={...t,timer:setTimeout(()=>{o=null,t.onPicture&&l?(n(),f(false)):b()},V)}},C=t=>{if(Q(t)&&(D=true),!p(t))return w(t);(e==null?void 0:e.id)===t.pointerId&&Math.hypot(t.clientX-e.x,t.clientY-e.y)>J&&(e=null)},_=t=>{const a=y==null?void 0:y.current;return!!(a&&t instanceof Node&&a.contains(t))},X=t=>{if(!p(t))return w(t);E=false,n(),s=M(t.target,r)&&!_(t.target)?{id:t.pointerId,inSight:l||getComputedStyle(r).getPropertyValue("--clover-controls-shown").trim()==="1"}:null,s&&m(),e=t.isPrimary===false?null:{id:t.pointerId,x:t.clientX,y:t.clientY,target:t.target}},P=t=>{if(!p(t)||((s==null?void 0:s.id)===t.pointerId?(s.inSight&&b(),s=null):l&&t.isPrimary!==false&&b(),(e==null?void 0:e.id)!==t.pointerId))return;const{target:a}=e;if(e=null,t.type!=="pointerup"||M(a,r))return;const i=_(a);if(i&&(o!=null&&o.onPicture)&&Math.hypot(t.clientX-o.x,t.clientY-o.y)<K){m();return}x({x:t.clientX,y:t.clientY,onPicture:i})},q=t=>_(t.target)?Array.from(r.querySelectorAll($)).some(a=>{const i=a.getBoundingClientRect();return i.width>0&&i.height>0&&t.clientX>=i.left&&t.clientX<=i.right&&t.clientY>=i.top&&t.clientY<=i.bottom}):false,h=t=>{if(t.type==="pointerdown"){if(L!==null||(clearTimeout(T),u=false,!q(t)))return;L=t.pointerId,u=true,p(t)?(E=false,n()):w(t)}else if(t.pointerId!==L)return;t.stopPropagation(),t.preventDefault(),t.type==="pointercancel"?(L=null,u=false):t.type==="pointerup"&&(L=null,p(t)&&x({x:t.clientX,y:t.clientY,onPicture:false}),clearTimeout(T),T=setTimeout(()=>u=false,V))},F=t=>{u&&(u=false,t.stopPropagation(),t.preventDefault())},S=t=>{I=Date.now(),Y=r.contains(t.target),t.type==="pointerdown"&&(g=false)},O=()=>{Date.now()-I<B||(g=true,n(),f(true))},N=t=>{p(t)||l&&k()},H=t=>{r.contains(t.relatedTarget)||(g=false,!(Y&&Date.now()-I<B)&&(l||E)&&k())};v.addEventListener("pointerdown",S,true),v.addEventListener("pointerup",S,true);for(const t of["pointerdown","pointermove","pointerup"])r.addEventListener(t,h,true);return r.addEventListener("pointercancel",h,true),r.addEventListener("click",F,true),r.addEventListener("pointermove",C),r.addEventListener("pointerdown",X),r.addEventListener("pointerup",P),r.addEventListener("pointercancel",P),r.addEventListener("pointerleave",N),r.addEventListener("focusin",O),r.addEventListener("focusout",H),r.addEventListener("keydown",w),()=>{n(),m(),clearTimeout(T),v.removeEventListener("pointerdown",S,true),v.removeEventListener("pointerup",S,true);for(const t of["pointerdown","pointermove","pointerup"])r.removeEventListener(t,h,true);r.removeEventListener("pointercancel",h,true),r.removeEventListener("click",F,true),r.removeEventListener("pointermove",C),r.removeEventListener("pointerdown",X),r.removeEventListener("pointerup",P),r.removeEventListener("pointercancel",P),r.removeEventListener("pointerleave",N),r.removeEventListener("focusin",O),r.removeEventListener("focusout",H),r.removeEventListener("keydown",w)}},[r,d,y]),R}export{rt as u};